US-International Keyboard Layout

In French language, there are some accents and letters that are not easily accessible from standard QWERTY keyboard, yet adding French keyboard layout means using AZERTY keyboard layout!

Easy way to access those letters while still using QWERTY keyboard layout is to use US-International keyboard layout.

The second part of the table in http://www.forlang.wsu.edu/help/keyboards1.asp shows how to easily type çàéëê and others using combination of “ , ’, ^ and ` + aiueoc in US-International keyboard (qwerty)..

 

the character € and æ still need alt-keys combination: alt+5 for € and alt+z for æ.

 

Instruction to install US-International keyboard can be found at http://www.starr.net/is/type/intlchart.html

 

Batch converting images on Windows

Get ImageMagick and perform:

mogrify -format png *.bmp

References:
- http://www.noob2geek.com/how-to/batch-convert-images-using-imagemagick/
- http://lifehacker.com/342308/batch-convert-images-with-image-magick

Uninstalling Oracle Database 11g R2 Express Edition on Ubuntu

I followed Dude‘s instructions to install Oracle Database 11gR2 on Ubuntu 11.10 for my Linux Mint 11 Katya

Due to some problems, I need to uninstall (deinstall) the Oracle XE database and then reinstall it again.

sudo dpkg --purge oracle-xe # remove everything including data if possible
sudo rm -rf /u01/app/oracle/
sudo rm /etc/default/oracle-xe
sudo rm /etc/init.d/oracle-xe

I can now redo Dude’s howto..

yum: Protected multilib versions

Fast Forward:
sudo yum clean all
sudo yum install yum-utils
sudo package-cleanup --cleandupes
sudo yum update

I faced the following problem:
sudo yum update
[...]
Protected multilib versions: gtk2-2.24.8-2.fc16.i686 != gtk2-2.24.7-3.fc16.x86_64
Protected multilib versions: glibc-2.14.90-19.i686 != glibc-2.14.90-18.x86_64
Protected multilib versions: gtk2-2.24.8-2.fc16.i686 != gtk2-2.24.7-3.fc16.x86_64
Protected multilib versions: glibc-2.14.90-19.i686 != glibc-2.14.90-18.x86_64

So according to this thread, both i686 and x86_64 versions of these two packages are installed but either version has an update while the other does not.

This may be caused by problem with cache data. If this is the cause for your problem, you can solve it by issuing:

sudo yum clean all
sudo yum update

Other possible cause is that multiple versions of the same package are installed. To handle this, we find the duplicates and remove the old duplicates:

sudo yum install yum-utils
sudo package-cleanup --cleandupes
sudo yum update

You might be asked if you want to remove a LOT of packages (451MB containing 111 packages in my case). Press ‘y’ and then [enter].

The above steps worked for my case.

Compiling CHMLib 0.40 under Linux

Assuming you have all the tools installed, here it is:

git clone https://github.com/jedwing/CHMLib.git
cd CHMLib
libtoolize
aclocal
automake --add-missing
automake
autoconf
./configure
make
# compile and run one of the test applications
cd src
gcc *.o chm_http.c -o chm_http -lpthread
./chm_http some-ebook.chm
# view in the default browser
xdg-open http://localhost:8080

Tested with commit 2bef8d063e (i.e. 2bef8d063ec7d88a8de6fd9f0513ea42ac0fa21f ) of CHMLib under Linux Mint 11 x86_64 (Katya, based on Ubuntu 11.04 Natty Narwhal)

See also: chmspec

Installing and Running JDeveloper under Fedora x86_64

fast forward: To install all dependencies of JDeveloper at once, run su -c 'yum install glibc.i686 libXext.i686 libXtst-devel.i686'

I was testing Fedora 16 RC4 64-bit (AMD64) and tried to install and run Oracle’s JDeveloper.

The binary provided by Oracle is linked to 32-bit libraries and so, during installation, I faced the following error:

/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Based on this post, I installed glibc.i686 by running:

su -c 'yum install glibc.i686'

The installation completed successfully. I then tried to run JDeveloper by running ~/Oracle/Middleware/jdeveloper/jdev/bin/jdev (either by double-clicking in nautilus or typing it in the terminal). I was faced with another error:

java.lang.UnsatisfiedLinkError: /home/arief/Oracle/Middleware/jdk160_24/jre/lib/i386/xawt/libmawt.so: libXext.so.6: cannot open shared object file: No such file or directory

I searched for the rpm that provides libXext.so and then install it as follows:

su -c 'yum install libXext.i686'
Another error was soon unveiled:

java.lang.UnsatisfiedLinkError: /home/arief/Oracle/Middleware/jdk160_24/jre/lib/i386/xawt/libmawt.so: libXtst.so.6: cannot open shared object file: No such file or directory

I searched for the appropriate rpm and install libXtst-devel:

su -c 'yum install libXtst-devel.i686'

And JDeveloper can finally run properly (for now).

Email client configuration for NUSMail

Often times, we want to access your NUSMail from other mail clients or services like Microsoft Outlook, Thunderbird, or GMail.

When I tried to access NUSMail from GMail using official guide from NUS, I had troubles to get secured connection working; and after a long trial, I find the following configuration to work ( SMTP/POP3 with SSL/TLS ):

Go to accounts section of you GMail settings (click here).

1. Add POP3 mail to get the emails

Email Address: <yourFriendlyMailAliasOrUserId>@nus.edu.sg (get your FriendlyMail alias from here)
Username: <yourNUS-userId> (without domain)
Password: <yourNUS-password>
POP Server:  pop.nus.edu.sg port: 995
(optional) tick “Leave a copy of retrieved message on the server
tick “Always use a secure connection (SSL) when retrieving mail.
label the mail as you like

Note that GMail will check NUSMail once every hour. An alternative way for this is to use “redirection” service from NUSMail. But you may have problem with how to apply appropriate label to the mails.

2. Add SMTP when prompted (alternatively, from accounts page)

SMTP Server: smtp.nus.edu.sg Port: 25
Username: <DOMAIN>/<USERID> (domain followed by forward-slash and userid; example: nusstu/a00xxxxx )
Password: <yourNUS-password>
select “Secured connection using TLS

For Microsoft Outlook, use the wizard to automatically search for the appropriate settings.

Enjoy!

Tags: , ,

DreamSpark for NUS students

DreamSpark is about giving students Microsoft professional tools at no charge.

To get started, go to www.dreamspark.com (Click on the images to get larger image)

DreamSpark Homepage

DreamSpark Homepage

Notice on the left side the three main steps to download softwares from Microsoft via DreamSpark:

  1. Sign In
  2. Get Verified
  3. Download

Now, click Sign In on the top-right of the page.

Sign In with Windows Live ID

Sign In with Windows Live ID

You can sign in with existing Windows Live ID, or sign up to get new Windows Live ID.

Get Verified

Get Verified

The next step is to get verified that you really are a student. Click on Get Verified at the left side of the page.

Verification method

Verification method

You need to verify yourself as a student through your school. (click the image for larger image)

dreamspark-05

Select your school / university / institution

Select National University of Singapore from the list and click Continue.

Enter you NUSNET userid and password to verify your identity

Enter your NUSNET userid and password to verify your identity

Enter your NUSNET userid and password to verify your identity

Successful Verification

Successful Verification

Wait for a while for your verification to complete. After a successful verification, you can start downloading Microsoft’s professional tools at no charge.