Monday, January 27, 2025
How Math Skills Power Tech Careers (And Where to Learn Them)
As someone immersed in the tech world, I know firsthand how important maths skills are. From coding algorithms to optimising network performance, mathematics serves as the backbone of many technical careers. But how do you ensure the next generation is ready to excel in maths and reap the benefits it offers?
That’s where Tutoring with Renee comes in. This virtual maths tutoring service is dedicated to helping high school students not only improve their skills but also develop a passion for problem-solving—an essential skill in tech and beyond.
Why Choose Tutoring with Renee?
1. Tailored Learning: Every student gets a personalised plan to address their unique strengths and challenges.
2. Proven Results: Students often see significant improvements in grades and confidence within just a few months.
3. Convenient Access: With virtual tutoring, students can learn from the comfort of their home, no matter where they are located.
The Tech Connection
Why promote a maths tutoring service on a tech blog? Simple. I believe in empowering young minds to thrive in fields like engineering, IT, and data science, where maths is critical. By mastering these foundational skills early, students set themselves up for long-term success.
If you’re looking for expert high school maths tutoring, check out Tutoring with Renee. You can find more details on her Facebook page here: https://www.facebook.com/share/1FPjCpvnEs/
Thursday, August 14, 2008
How to install Anvil on Ubuntu 8.04 Hardy Heron
I just found an interesting Ruby programming framework Anvil. It makes Ruby MVC programming more efficient. Anvil is based on wxruby and works on multiple platforms.
These are the steps to install anvil:
These are the steps to install anvil:
- install ruby by sudo aptitude ruby-full rubygems
- update the gem by sudo gem update --system
- sudo gem install anvil --include-dependencies
How to fix /usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)
After I ran sudo gem update --system on Ubuntu 8.04 Hardy Heron, gem returns
The fix is very easy: Just add one line require 'rubygems/gem_runner' to /usr/bin/gem.
/usr/bin/gem:23: uninitialized constant Gem::GemRunner (NameError)when I run it.
The fix is very easy: Just add one line require 'rubygems/gem_runner' to /usr/bin/gem.
Monday, August 11, 2008
bootlace.com produces Error: Invalid partition table. Must specify --floppy explicitly for floppy.
I wrote a script to drive parted to prepare an USB disk bootable. When my script tried to install grub4dos with bootlace.com, it produced this error message:
Then I deleted the partition which was created by my script and created the partition again with gparted. Viola! sudo ./bootlace.com /dev/sdb returned a success message to me. I noted down the start and end sectors of the working partition and compared them with the one which was created by my script. I found the start secter is 63 on the working partition while the bad one which was created by my script is 1. This is the culprit that my script assigned the first track to a primary partition and it is the reason why bootlace complained about it. MBR is always on the first track, and there are 64 sectors per track. I have learned it in a Computer Architechture lesson in University several years ago. I should have recalled it earlier.
The solution: sudo parted --script /dev/sdb mkpart primary ntfs 63s #{size}
The above line is the modified command in my script. The start sector has been modified from 0 to 63, and bootlace.com is happy to install grub4dos for me now.
Error: Invalid partition table. Must specify --floppy explicitly for floppy.I was wondering what was wrong and it took me several hours in finding the answer on google. However I could not find an answer to this problem.
BOOTLACE writes GRLDR BOOT RECORD to MBR or to the boot area of a file system.
Usage: bootlace.com [OPTIONS] DEVICE_OR_FILE
Options: --read-only, --floppy[=N], --boot-prevmbr-first, --boot-prevmbr-last,
--no-backup-mbr, --force-backup-mbr, --mbr-enable-floppy, --mbr-disable-floppy,
--mbr-enable-osbr, --mbr-disable-osbr, --duce, --time-out=T, --hot-key=K,
--preferred-drive=D, --preferred-partition=P, --sectors-per-track=S, --heads=H,
--start-sector=B, --total-sectors=C, --install-partition=I, --lba, --chs,
--fat12, --fat16, --fat32, --vfat, --ntfs, --ext2
DEVICE_OR_FILE: Filename of the device or image. For DOS, a BIOS drive number
(in hex 0xHH or decimal DDD format)can be used to access the drive.
Then I deleted the partition which was created by my script and created the partition again with gparted. Viola! sudo ./bootlace.com /dev/sdb returned a success message to me. I noted down the start and end sectors of the working partition and compared them with the one which was created by my script. I found the start secter is 63 on the working partition while the bad one which was created by my script is 1. This is the culprit that my script assigned the first track to a primary partition and it is the reason why bootlace complained about it. MBR is always on the first track, and there are 64 sectors per track. I have learned it in a Computer Architechture lesson in University several years ago. I should have recalled it earlier.
The solution: sudo parted --script /dev/sdb mkpart primary ntfs 63s #{size}
The above line is the modified command in my script. The start sector has been modified from 0 to 63, and bootlace.com is happy to install grub4dos for me now.
Saturday, August 9, 2008
mplayer no video with ATI fglrx driver
After I have installed Gmlive, I found mplayer doesn't render any video output. My graphic card is ATI Radeon X1600, and the driver for this graphic card is the default proprietary driver shipped with Ubuntu 8.04 Hardy Heron.
It is the relevant error message of mplayer:
The solution is quite simple. Just edit /etc/X11/xorg.conf and add the red-colored line (Option "TexturedVideo" "on") to the Device section.
Restart X-Window or reboot, and then mplayer should play any video seamlessly.
It is the relevant error message of mplayer:
gnome_screensaver_control( )It seems there is no Xvideo support for your video card available.
Run 'xvinfo' to verify its Xv support and read DOCS/HTML/en/video. html#xv!
See 'mplayer -vo help' for other (non-xv) video out drivers. Try -vo x11
Error opening/initializing the selected video_out (-vo) device.
Section "Device"
Identifier "Configured Video Device"
Driver "fglrx"
Option "PowerState" "1"
Option "OpenGLOverlay" "off"
Option "TexturedVideo" "on"
BusID "PCI:1:0:0"
EndSection
Restart X-Window or reboot, and then mplayer should play any video seamlessly.
How to install gmlive on Ubuntu to watch P2P TV and videos
Gmlive is a software which supports mms, sopcast, nslive P2P TV and stream video. I found this project when I was looking for pplive for linux. pplive is another windows only P2P TV software which a lot of people has recommended to me. I am installing this because of I missed the Beijing 2008 Olympic opening and someone told me that the last scene of igniting the Olympic torch is amazing.
This following is how to install gmlive on Ubuntu 8.04 Hardy Heron:
This following is how to install gmlive on Ubuntu 8.04 Hardy Heron:
- download gmlive here http://code.google.com/p/gmlive/
- install dependencies
sudo aptitude install intltool libglibmm-2.4-1c2a libglibmm-2.4-dev libxml2 libxml2-dev libgtkmm-2.4-dev libglademm-2.4
- compile and install
tar xf gmlive-0.20.3.tar.bz2
cd gmlive-0.20.3
./configure
make
sudo make install - type gmlive and enjoy
How to mount a kvm and qemu disk image file
It is an easy task to mount a kvm/qemu disk image. The magic is the offset=32256 parameter. However this magic only works on raw format disk image. If the image is in qcow or qcow2 format, you need to convert it to raw format.
This is an example of converting a qcow image to a raw image. Only do it if the image format is not raw.
If you are unsure about the image format, you may type this command to figure it out.
# mount a raw qemu disk image 'disk.img' to /mnt
sudo mount -o loop,offset=32256 disk.img /mnt
# convert image format
qemu-img convert -f qcow disk.img -O raw disk.raw
#use qemu-img infoto get the virtual disk format information
qemu-img info disk.img
image: disk.img
file format: raw
virtual size: 1.0G (1073741824 bytes)
disk size: 866M
Subscribe to:
Posts (Atom)