Thursday, 28 January 2010

How to update CyanogenMod on HTC Magic 32A [Ubuntu]


I'm running CyanogenMod on my HTC Magic, and Ubuntu 9.10 (Karmic) on my laptop computer. Most of the upgrade guides & automated tools for upgrading CyanogenMod (i.e. CMUpdater) are based on the 32B kernel. This is a guide to upgrading CyanogenMod with a HTC Magic 32A kernel. Most of the instructions are taken from the CyanogenMod wiki.
  1. Download the latest CyanogenMod (Current Stable Version) from this site.
  2. Download the latest EBI1/32A Kernel from the same page.
  3. Copy both .zip files to your SD and reboot in Recovery Mode (press Home+Power at the same time or fastboot into your recovery) 
  4. Apply Zip: update-cm-xxxx-signed.zip
  5. Apply Kernel Port Zip: rad-4.xxxx.zip or bc-4.xxxx.zip (depends on who released the latest port: rad - Radix999,bc - bcrook ) 
  6. Reboot
  7. Wait. For a long time. =) Seriously, this will take ages to boot after an upgrade.
If you get an orange triangle & exclamation mark when you boot into recovery, just press Home+Power again to access the menu.


Ok, so what if you don't have an option to apply this zip in the recovery? If your phone only gives you the option to "apply update.zip" then you don't have the fancy recovery ROM. Download it from here (scroll down and choose the "H" version), and get the fastboot binary from here. Copy both into your android sdk "tools" directory.


Now, power down your phone, plug it into your computer via USB and press the Back and Power buttons at the same time. This should bring you to the fastboot screen. On your computer, cd into the android sdk tools directory, and type "fastboot boot ./recovery-RA-sapphire-vX.XX.zip". This will reboot the phone into the fancified recovery screen, which should let you update to any chosen zip file.

Oh, and note that this will not wipe your data!!! If you perform these steps completely and nothing goes wrong, all your apps and preferences will remain as they were. Of course, I can't guarantee anything. =) The only time you would wipe your phone is if you applied a full firmware upgrade (DRC83 in the filename, usually.) If you're unsure though, just leave a comment & I'll try to help! Or you could checkout the forums associated with some of the links above.

Wave1 Point to Point Radio (1000 series) Default Password

The default username and password details for Wave1 radios:

username: admin
password: default

Otherwise, try -

username: admin
password: admin01

This works for some of the newer LigoWave stuff.

Reseting a LigoWave Radio to Factory Defaults Using a Ping

Reseting a LigoWave Radio to Factory Defaults Using a Ping
It is possible to perform a factory reset of a LigoWave radio using a ping when you follow the instructions below.
The steps are:

  1. Obtain the Ethernet port MAC address
  1. Create a static arp entry for the Ethernet port MAC address on the same subnet you are on. For example your machine 192.168.2.2, and set radio at 192.168.2.61 (radio Ethernet MAC 00-19-3B-00-06-4A)
    1. arp –s 192.168.2.61 00-19-3B-00-06-4A
    2. you can confirm this entry is in place by looking at your arp table
      arp -a (the static arp entry should exist)
  1. Restart the radio
  1. Send a 40 pings to the radio static arp entry ip address with 369 bytes and every 200ms (ping needs to be started as soon as you restart the radio). 
    1. ping 192.168.2.61 –l 369 –w .2 –n 40
  1. The unit should restart using the factory defaults
  1. Remove the static arp entry
    1. arp –d 192.168.2.61

 


The important thing is to make sure the –w switch is used to increase the ping speed and that you are using the Ethernet MAC address, not the bridge MAC address that is seen you ping it normally.  The bridge MAC address is from the radio, and it will not respond during boot and the reset will not work.  I have put in 40 pings, as you should not send too many, -t, as if you don’t stop the pings in time you will get into a loop.  40 pings looks good from my testing.  

Source: http://www.wirelessdata.com.au/Wiki/tabid/385/Default.aspx?topic=LigoWave+Factory+Reset+Ping

Tuesday, 26 January 2010

Green Cars

This is a Sponsored Post written by me on behalf of Hyundai. All opinions are 100% mine.

You've probably read about how Hyundai recently won the Global Green Challenge with their latest "ToughR" cars. Well they've now got their own Youtube channel, where you can check out videos of their prize-winning trip from Darwin to Adelaide.

Hyundai's Santa Fe R claimed the title of the biggest improvement in fuel efficiency, 5.1l/10km, against contenders including Ford, Holden and Suzuki. During the Eco challenge, contestants were allowed to implement standard fuel-saving techniques such as driving without air-conditioning, despite high mid-Australian temperatures. Most also did the trip at average speeds of 75km/h which is well under the normal speed for the Stuart Highway of 130km/h in the Northern Territory and 100km/h in South Australia.

Hyundai is setting the standard in an increasingly competitive market for fuel-efficient, low-carbon "green" cars. Their Youtube videos are certainly worth checking out. They are presented in an semi-comedy style, very easy to watch and present some interesting and useful information about the challenges this competition presented.

There were also some other prizes awarded for the Global Green Challenge, based on different metrics:
On fuel efficiency improvement: 1 HSV Maloo 48.7 per cent improvement, 7.74l/100km average, official fuel rating 15.1l/100km; 2 Ford XR6 turbo Falcon  39.8%, 7.04l/100km, 11.7l/10km; 3 Skoda Superb 33.5%, 4.59l/100km, 6.9l/100km

On actual fuel consumption:  1 Ford Fiesta ECOnetic 3.13l/100km, 2 Mini D 3.42l/100km, 3 Mini D 3.49l/100km.

Visit my sponsor: Hyundai Santa Fe - AU 2

Thursday, 21 January 2010

Microsoft Exchange 2003 Incremental Backups with NTBackup.exe

When performing an incremental backup of a Microsoft Exchange Storage Group with NTBackup.exe, you may encounter the following error:

Backup Status
Operation: Backup
Active backup destination: File
Media name: "incremental_exchange.bkf created 21/01/2010 at 3:55 PM"


Error: SERVER\Microsoft Information Store\First Storage Group is not a valid drive, or you do not have access.


----------------------


This is a very obscure error message, and is almost impossible to decipher at face value. I spent many days trying to fix this error, and eventually discovered that you cannot create an incremental (or differential) backup when circular logging is enabled.

Turning off circular logging will enable an incremental backup to be created.

Another symptom encountered with this problem, was whenever I started an incremental backup it would continuously prompt me "Insert the following media: incremental_exchange.bkf created 21/01/2010 at 4:46pm Media #1. Do you want to continue?" When I clicked "Yes", it prompted me again. When I eventually clicked "No", the backup failed. The report showed the error message detailed above.

More information about circular logging:
http://www.computerperformance.co.uk/exchange2003/exchange2003_circular_logging.htm
How to disable circular logging:
http://technet.microsoft.com/en-us/library/bb331968%28EXCHG.80%29.aspx
Other similar threads:
http://www.ureader.com/msg/118930.aspx
http://www.ureader.com/msg/118930.aspx
How to create Exchange backups with NT Backup:
http://www.msexchange.org/tutorials/Exchange-2003-Backup-Restore-NTBACKUP.html

Tuesday, 19 January 2010

How to open Microsoft Word files in VIrtualBox Windows from Ubuntu

There's a great article about how to setup your system to you can double click a file in Ubuntu, and have it open in a Windows machine within VirtualBox. This, along with the seamless display technology built into the latest VirtualBox release, allows some pretty amazing integration scenarios.

Saturday, 16 January 2010

How to convert a directory of videos using ffmpeg

Here is a simple command useful for using a wildcard (not a regular expression) to select filenames to convert from one video format (or audio, for that matter) to another using FFMPEG on Linux.

The command below will convert a directory of .flac files into .mp3s:

for f in *.flac; do ffmpeg -i "$f" -acodec libmp3lame -ab 320k  "${f%.flac}.mp3"; done

To convert videos, we could use this command:

for f in *.flv; do ffmpeg -i "$f" "${f%.flv}.avi"; done

This converts a directory of .flv video files into .avi files.

Source: http://ubuntuforums.org/showthread.php?t=1096665

Monday, 4 January 2010

How to reset a Deliberant AP to Factory Defaults (CPE 2n)

From the manual available at the Deliberant Support Site:

Resetting to Factory Defaults
Deliberant products have the capability of being reset to defaults by pinging the device with a certain
packet size when the radio is booting.
During the startup of the device, when the drivers of the ethernet interfaces are loaded, the discovery
daemon is started. The daemon suspends startup process for 3 seconds and waits for ICMP "echo
request" packet of length 369 bytes. If the packet received, the discoveryd resets the device to default
configuration.
Steps to reset to default settings:
Step 1. Power off the device.
Step 2. Obtain the device MAC address.
Step 3. Connect a PC to the same physical subnet as the device.
Step 4. Execute 'arp -s' command to assign the IP address (IP address should be from the same
subnet as PC) to the device MAC address:
      arp -s [ip address to assign] [device address]
Step 5. Start pinging the device:
  For linux users:
      ping [ip address] -s 369
  For Windows users:
      ping [ip address] -l 369 -t -w 0.2
Step 6. Power up device and wait about 30sec or more (depends from device hardware).

I tested these steps with Deliberant AP Solo, Duo & CPE 2-N. Sometimes it takes a long time, but eventually will work.

Sunday, 3 January 2010

Fix: Firefox 3 runs slowly keeps pausing and not responding on Ubuntu 9.10 Dual core

When I installed Ubuntu 9.10 "Karmic" on my new HP Dual-core computer, I found that Firefox was having a lot of issues. It would startup alright, and load pages pretty fast. But mainly whenever I tried to open a new tab, or had a lot of tabs open, it would randomly stop responding for a few seconds at a time. Since I have compiz enabled, Firefox would "grey out" and stop responding to mouse clicks. CPU usage never exceeded 50% of both cores though.

I trued using the CPU Frequency Scaler applet on the panel to increase the CPU speed with no effect. Also, reducing the threshold at which the CPU frequency is raised had no effect either. It turns out that Firefox just doesn't like running across multiple CPUs for some reason. The solution was to restrict Firefox to run on a single core.

This can be accomplished using the linux utility "taskset". The command I used is shown below (run as root):

taskset -c -p 1 `pidof firefox`

An explanation:
  • The -c says to use a zero-based number to identify cores (Core 1 is "0", Core 2 is "1", etc). The default is to use a bitmask (more advanced).
  • The -p says to reuse the existing pid, and not start a new task.
  • Then we specify the core (Core 2 in this case, we could separate them with commas such as "0,1" if we wanted both cores to be used). 
  • Then we have another command, between backticks (` not ') that finds us the pid (Process ID) of the running Firefox.

This command has to be run every time Firefox starts. I'm looking for a way to change this automatically when Firefox is run - perhaps by changing the menu entry? Any suggestions are welcome!

Saturday, 2 January 2010

Free Sheet Music Scanning software for Linux - Audiveris

I've been using Sibelius on Windows, along with PhotoScore Lite to scan and transcribe sheet music to date. Recently I set out to find a Linux alternative.

Audiveris is a Java-based open source (therefore free) sheet music notation scanner. It will import a PDF or image file (single page as far as I can see) and automatically transcribe the notes into an on-screen digital version. You can then export to MIDI or MusicXML files, which can be edited in another program such as Rosegarden or MuseScore.

While this program is cross-platform and runs on Windows, Linux and Mac OS, it's advanced OCR features are limited to the Windows platform due to a dependency on Microsoft's C++ libraries. This may change in the future if more developers commit time to the project, but for now I have found it to be a very capable Linux alternative to some of the commercial Optical Music Recognition software. I particularly like the fine-grained reports and control you have over the entire process. In fact, you can examine any stage of the transcription in detail thanks to the multi-step procedure. Not the prettiest display, but then who wants pretty - so long as it gets the job done?

Monday, 28 December 2009

How to install soundfonts in Audacity

To install a soundfont in timidity++, add a line to timidity.cfg:

soundfont /path/to/soundfont.sf2

How to install a better soundfont in timidity

There are several soundfonts out in the wild. This HowTo will use the fluidr3 soundfont which is accessible via the AUR.
Note: It will be assumed that you know how to build packages from the AUR. This excerpt will be very short and barely explained. Too short if you're completely new to it.
As sfarkxtc, a decompressor for soundfonts, is a make dependency of fluidr3, we install it first:
# pacman -S sfarkxtc
After sfarkxtc has been installed, we will be able to build fluidr3 which may take some time.
# wget http://aur.archlinux.org/packages/fluidr3/fluidr3/PKGBUILD
# wget http://aur.archlinux.org/packages/fluidr3/fluidr3/fluidr3.install
# wget http://aur.archlinux.org/packages/fluidr3/fluidr3/license
# makepkg
# pacman -U fluidr3-122501-6.pkg.tar.gz
If fluidr3 has been installed properly, we have to add it's path to the timidity++ configuration file. Just add this line to /etc/timidity++/timidity.cfg:
soundfont /usr/share/soundfonts/fluidr3/FluidR3GM.SF2
Then timidity++ is ready for use.

Source: http://wiki.archlinux.org/index.php/Timidity#How_to_install_a_soundfont

Friday, 25 December 2009

LG's foray into the mobile space: An excellent media device

This is a Sponsored Post written by me on behalf of LG Chocolate Touch. All opinions are 100% mine.

In the past, most of us have bought at least one MP3 player of some description. And then when that one fills up, and is supersceded - another one. And then there's the phone. And for emails and internet, the laptop. And a still camera for candid shots, plus a video camera for grabbing a few clips here and there. It's really quite ineffecient to have so many different devices - they waste energy, you have to keep track of dozens of different power adapters & chargers, and synchronising data between devices is, at best, painful.

That's where an all-in-one device such as the LG Chocolate Touch comes in handy. The aim of a device like this is to combine all your traditional electronic devices into one box, which makes it easy to organise and share your data over an internet connection.

The LG Chocolate Touch has all your traditional phone functionality - voice, text, and multimedia messages. It's also got a 3.2MP camera / video recorder, plus a built-in image editor so you don't have to transfer photos to your computer for simple touching up and cropping. Of course, the device is internet enabled, with a "One-touch Social Network Message Key" for easy use of Mobile Blogging (Facebook, MySpace, Twitter, etc.)

But perhaps the biggest feature of this phone is it's multimedia capabilities - Dolby Mobile technology is built in for crystal clear sound quality. An adjustable EQ allows you to setup the best sound experience for your environment, and there's even a "Rythmical Beat" feature that vibrates the phone in time with your music! On the LG website you can hear the difference between EQ modes on the phone - it's quite amazing.

This little phone is certainly worth a look - it reminds me quite a bit of the MyTouch 3G, and in more than the name. This device however, has significantly better multimedia capabilities, which may put it ahead if that's what your looking for. All in all, a solid all-rounder phone, with an edge in the multimedia environment.

SocialSpark Disclosure Badge

Android: How to scale an image in ImageView

To scale an image in the provided ImageView control, use this basic code:


Matrix mtrx = new Matrix;
mtrx.postScale(scalefactorX, scalefactorY);
mtrx.postTranslate(offsetX, offsetY);
pic.setImageMatrix(mtrx);
pic.setScaleType(ScaleType.MATRIX);
pic.invalidate();


This will increase the image size by scalefactorX and scalefactorY, and move the image so that the top left corner is at the location specified by offsetX and offsetY.

Wednesday, 23 December 2009

Bidazzled - entertainment auctions (with a charitable background)

This is a Sponsored Post written by me on behalf of Bidazzled. All opinions are 100% mine.

Today I heard about yet another online marketplace, amongst the plethora already available online (the most popular being Ebay). But this marketplace is different - 70% of the profits go to charity.

Bidazzled was launched in early November, and has already gained quite a following. This site is classed as Penny Auction or Pay-per-bid, where bids are purchased in advance and then used to bid on merchandise. This is very different from Ebay, where bids are free and you only pay if you win the item. Every time somebody bids with some of their pre-bought credit, the price goes up by a few cents, and a few seconds are added to the countdown clock to allow other people to bid.

An interesting feature is that if you don't "win" the action, you still have the opportunity to buy the item, minus the investment you made in it. So basically, you can't lose! Most of the time, people will save 80% off the retail price of an item. In the early days of this site, some people were even buying Nintendo Wiis for only a few cents!

Bids cost $1 at Bidazzled, and can be bought in packs from $25. I have an exclusive offer though for readers of this blog - 15 bonus bids, if you redeem this offer before 15th January 2010. Just enter the following code when signing up - no obligation!

BBP1202A

Bidazzled also has a pretty good referral program. If:
*A refers B. A receives 5 Bonus Bids
*B refers C. A receives 4 Bonus Bids
*C refers D. A receives 3 Bonus Bids
*D refers E. A receives 2 Bonus Bids
*E refers F. A receives 1 Bonus Bid.

I suggest you check out Bidazzled - it just might be the thing for you. It's certainly worth a look - and remember, the profits are used to fund a charity, so if you spend too much - it's all in a good cause! =)

SocialSpark Disclosure Badge

Lyrics: Our Lady of the Southern Cross

Lyrics to the hymn/song "Our Lady of the Southern Cross", a Marian motet composed by Rev. Geoffrey Abdallah. Used at World Youth Day 2008 in Sydney.

Verse 1:
You said your 'yes' to the an-gel's word,
the Sp-rit of God was with you.
You walked with Je-sus through-out his life,
with a mo-ther's care and trust;
You stood at last be-neath the cross.
A mo-del of cou-rage and strength.

Chorus:
Teach us to hope, to be-lieve and love like you,
Our La-dy of the Sou-thern Cross.
Shine u-pon us, guide us through life.
Show us the way to Christ your Son.
Shine u-pon us, guide us through life.
Mo-ther of Je-sus. Mo-ther of Christ.

Verse 2:
You sat and prayed with his clo-sest friends,
a-wai-ting the Spi-rit to come.
You saw them change, as they went trans-formed
to a world they hard-ly know.
Now stand with us, O Mo-ther of Light,
as we speak God's love and truth.

Chorus:
Teach us to hope, to be-lieve and love like you,
Our La-dy of the Sou-thern Cross.
Shine u-pon us, guide us through life.
Show us the way to Christ your Son.
Shine u-pon us, guide us through life.
Mo-ther of Je-sus. Mo-ther of Christ.

Verse 3:
In the an-cient lands of the South at night,
the Sou-thern Cross shines so bright.
This bea-con poin-ted the travel-lers of old
to a path se-cure and true.
So Ma-ry, a guide to pil-grims to day
shows us the Christ who is our Way.

Chorus:
Teach us to hope, to be-lieve and love like you,
Our La-dy of the Sou-thern Cross.
Shine u-pon us, guide us through life.
Show us the way to Christ your Son.
Shine u-pon us, guide us through life.
Mo-ther of Je-sus. Mo-ther of Christ.
Mo-ther of Je-sus. Mo-ther of Christ.