Howto

Pulse Code Modulation (PCM) Basics

A simple example of sampling a sine wave at different sampling rates, and different number of levels. You can see how increasing the sampling rate and number of levels produces a digital waveform closer to the continuous sine wave. But in practice this comes at the expense of an increased required data rate to send the digital data.

Frequency: 1Hz
Samples: 50 per second
Levels: 10
Pulse Code Modulation
Samples:
Levels:

Recommended BibTeX Format

Here are some of my recommendations and personal preferences for maintaining a BibTeX file for a bibliography to be used with LaTeX.

General

Paper titles do not need capital letters for the first letter of all words. Example:

title="This is the Title of a Paper on the {ABC} Protocol",

BibTeX will typically convert all but the first letter to lowercase ("This is the title of a paper on the ABC protocol"); this is ok. However you should force uppercase for acronymns or names using the braces. You should avoid using formats like (let the BibTeX style deal with the case):

title="{This is the Title of a Paper on the ABC Protocol}",

AIS GPRS/EDGE on Samsung G600

The second problem I had with my Samsung G600 was with configuring GPRS/EDGE. I use the AIS network in Thailand (brand name 1-2-Call) and tried to follow the instructions through the AIS Call Centre. The first attempt last night I told them my phone and they send me the SMS for Over-the-Air (OTA) configuration of GPRS. However when I tried to view the SMS my phone returned an error Wrong PIN ID!. I couldn't find any PIN settings relating the messages, and so I contacted the Call Centre again and they said they thought I said D600 (and sent me the configuration for the wrong phone). The said someone would call me the next day. They didn't (in all fairness, my phone ran out of credit just before our conversation ended - but they did have both my mobile number and work number to call!).

So I tried again tonight. After making it clear it was the G600, they resent the SMS but the same Wrong PIN ID! error occurred. I quick search on the Internet found all the details I needed to configure GPRS myself.

In the menu I selected: Applications -> Internet (called t-zones on my phone) -> Browser settings -> Browser Profiles and then edited a new profile with the following settings:

Profile name: AIS
Home URL: http://google.com
Bearer: GPRS Only
Proxy: Disable
GPRS Settings: 
   DNS1: 202.183.255.20
   DNS2: 202.183.255.21
   APN: internet
   Login: blank
   Password: blank
GSM Settings: I didn't change

Then Internet access worked fine. You may want to do the same GPRS settings for Messages -> Settings -> Multimedia messages -> Multimedia message profile.

Samsung G600 Not Working with PC Studio: How To Fix

I recently got a Samsung SGH-G600 mobile phone. It replaces my 5+ year old Nokia 2100. The Nokia was a great phone - it still works fine, apart from the battery that lasted about 1 day and the numbers are almost wiped off the keypad. It is nice to now have a colour screen ... and EDGE Internet access ... and a 2GB MP3 player ... and a 5 megapixel camera.

The phone works great, but I had a problem with connecting with the provided Samsung PC Studio software (which lets you organise contact, files, music etc). After plugging in the mobile to the USB cable, selecting PC Studio on the phone menu the PC Studio application on my PC shows the phone connected. However when I open the contacts or files on PC Studio it reports a problem like Another PC Studio program is performing a time-consuming operation. Please wait until its finished.. After this error occurring with every attempt I search and found a solution (posted by MillyGirl at AVForums.com):

  1. Unplug the usb cable from the phone
  2. Type *#52828378# into phone
  3. The following menu comes up:
    • 1 Trace setting
    • 2 OTA type setting
    • 3 Serial test
    • 4 TFS reset
  4. Select 3 Serial test
  5. And then this menu comes up:
    • 1 PPP UP
    • 2 Serial download
    • 3 Run TCK
  6. Select 2 Serial download
  7. The phone will reboot and once its rebooted connect the usb cable and PC Studio will work.

It works with no problems - no data is deleted from your phone. Thanks AVForums!

LaTeX, Emacs and Ubuntu Linux

Syntax Highlighting LaTeX within Emacs

Syntax highlighting by default in Emacs both colours the text, and for section headers changes the font size. I like the coloured text but not the change in font size. To turn off the font size changes, set the variable font-latex-fontify-sectioning to color:

Templates for Right Click Menu in Ubuntu Linux

When you right-click on a folder in Ubuntu Linux you are given an option to Create Document. Initially no templates are installed. To install a template simply create blank document in the ~/Templates directory and it will appear in the right-click menu.

Currency Conversion

When referring to money in my site, I try to refer to the local currency. For example, while in Thailand I refer to Thai Baht.

There are many websites available for conversion into the currency of interest. I tend to use XE.com's Universal Currency Converter.

Creating DVD Slideshows in Linux

  1. Install libquicktime 0.9.8:
    1. tar xzvf libquicktime-0.9.8.tar.gz
    2. cd libquicktime-0.9.8
    3. ./configure

Installing ns2 on Fedora Core 4

ns2 is a popular, free package for simulating computer networks and protocols, e.g. TCP, satellite links, ad hoc networks, routing protocols.

  1. Download the following packages from the ns2 website and extract them into your working directory. For example in my case /home/sgordon/ns2 is my install directory, therefore all the .tar.gz files are saved in this directory and apply tar xzvf filename.tar.gz on each:

Configuring Fedora on Dell Latitude D410 Laptop

Here are some notes from my installation and usage of Fedora Core 4 on a Dell Latitude D410 laptop.

Installation

My Dell Latitude D410 laptop already had Windows XP Professional installed on one partition, and a second partition was already created (when ordered through Dell).

Syndicate content