This is the first blog entry with my brand new nokia c6 using the keyboard. Frankly I am not impressed at all since the first usage. The keybpard is a bit too small and the label on the keyboard is not that well desiigned which may be because of the thai characters which iis the same size as the english sp there are four characters on the same key as a result noone of them are at the center meaning ypu need to press on an empty space between all characters make it very confusing. The situation should be much better with english only keyboard. Time will be required to get used to it by not looking much at the label, should be quite tough for new owner like me. However the feeling of keyboard pressing is quite amazing. All in all, I am quite disappoi nted with it compare to experience with iphone I had before.

That’s it. Will need to practice typing everyday from now.

Advertisements

I bought 2GB Apple Time Capsule and started using for a while with my Macbook Pro and Windows notebooks, and now would also like to share files between these notebooks with my new Ubuntu platform. So, I started out with installing Airport Utility (Windows version) in Wine, the software installed successfully but it could not find the Time Capsule. I have a basic idea that Time Capsule is accessible through SMB protocol but never actually know how to set it up, until I read in a Ubuntu forum answered by ytene here which I also copied down below:

I  am sure that there are many ways of accessing the drive, but the one I found to work for me goes something like this.

1. Client Side Software
You need to install the smbfs and smbclient software, to enable your machine to talk the “Server Message Block” [now known as CIFS] protocol. You can either do this via apt-get or Synaptic, as you prefer.

2. Make a Mount Point
Just the usual, really. Go to /media and create a suitable directory to act as a mount point for the remote file system.

cd /media
sudo mkdir capsule

3. Interactive Mount Statement
The one that worked for me goes like this:-

sudo mount.cifs //192.168.1.20/”Tom Smith’s Time Capsule”/tom /media/capsule -o pass=passw0rd

where

i. the IP Address is the one that you assign to the Time Capsule using your Apple AirPort Utility on a Mac,
ii. The ‘directory’ name enclosed in double quotes is the name assigned to your Time Capsule when it it set up on the Mac – see how the volume appears listed on a Mac machine to derive this,
iii. /media/capsule is the name of the mount point that you selected,
iv. passw0rd is replaced with whatever password you elected to use during the Airport configuration. Apple give you two options here. You can either use the same password as your Wireless Network password [generally a bad idea] or you can select a different one [obviously much more sensible].

He also very kind to further suggest:

For those of you who are still experimenting with this and would like a version of the mount that is “permanent”, ie something that comes back with each ubuntu reboot, try something similar to this in your /etc/fstab :-

//192.168.1.39/TimeCapsule/fred /media/capsule cifs password=pa55w0rd,rw,iocharset=utf8,file_mode=0777 ,dir_mode=0777

where

the IP Address is that assigned to your Time Capsule. The name “Time Capsule” is set on that box. [ I used my Mac Mini to do this].

fred is the name of the top level directory that connections to the Time Capsule link to…

Hope that is a little more helpful to everyone.

 

Many thanks “ytene”.

 

 


I know that in Windows there is W32Time that can help synchronizing time with external servers, however, on my netbook with a few OS installed, when switch from another OS to Wiindows, time seems to be messed up. I also know that we can set it to run more frequently than the default. Yet I need more control, so I decided to use NTPD on Windows from http://www.meinberg.de/english/sw/ntp.htm#ntp_nt_stable but the problem is still there, when switching back from another OS, my clock is not current (it is about 7 hours different which means the other OS set my clock to UTC and I am living in +0700 UTC). I tried ‘ntpdate’ but still did not work with error message ‘socket in use’. So after searching a while, it ended up that I need ‘-u’ option, so

ntpdate -ub my_ntp_server

is required to set time while NTPD is running (-b required for Windows – if the software already knows it is running on Windows, why not enables it by default???).

The -u option is described below

 -u      Direct ntpdate to use an unprivileged port for outgoing packets.
             This is most useful when behind a firewall that blocks incoming
             traffic to privileged ports, and you want to synchronise with
             hosts beyond the firewall.  Note that the -d option always uses
             unprivileged ports.

 


I recently experienced problem with Ubuntu 10.10, one that I never thought of before. During early last week I was wondering if Gedit could handle/open directory similar to VIM, Emacs and many others, so just called from Terminal 

gedit .

and it prompted with error, and that made me understand Gedit does not know how to work with directory. A few days went by and then I needed to use File Roller (Archive Manager) and after files extraction I would like to go to location of the files so just clicked ‘Show the Files’ button, and I was shocked to see it opened destination directory using Gedit. Testing with Chrome ‘Show in Folder’ ended up with the same result in Gedit screen. I was so desperate and was about to give up with Ubuntu, and I was planning to move data from my Ubuntu notebook. Google search did not give me much information, as I was not sure what to search for ūüė¶

This morning, I did my ‘final’ google search and decided to do away with Ubuntu if I could not solve the problem. Luckily, this time the result is very pleasant, I found this “HowTo Change Default GNOME Text Editor or Any Other Default Program”   in Ubuntuforums.org (http://ubuntuforums.org/showthread.php?t=299086) described where information about default programs stored. Thank to Agen T for this very helpful document, and for easy access I copied the content here:

 

HowTo Change Default GNOME Text Editor or Any Other Default Program

How-To Change Default Text Editor (or any other default program)

The following step-by-step guide will make the program Scribes open every plain text document instead of Gedit. Instead of Scribes, you may use any other program.

Check if this file exists:

Code:
~/.local/share/applications/defaults.list

If so, open it, if not:

Code:
touch ~/.local/share/applications/defaults.list

Open ~/.local/share/applications/defaults.list and look for this entry:

Code:
[Default Applications]

If it does not exist, add it on top. Next, add the following below “[Default Applications]”:

Code:
text/plain=scribes.desktop

Your completed entry should look like this:

Code:
[Default Applications]
text/plain=scribes.desktop

Now run:

Code:
pkill nautilus

It is possible to set any mime type and any program that has a *.desktop entry. Find out your favorite program’s desktop entry by looking in this folder:

Code:
/usr/share/applications/

You need to know what mime type you want to have your new program open. text/plain means opening up any normal text file. If you would like Scribes to open ANY text file, you would substitute text/plain with text/* and follow everything else.

Why is this better than just right-click on file -> Open With? Because with the above, ALL plain text files will be opened by Scribes, not just ones that have a particular extension.

For more details on what programs are used for what mime types, see file:
/usr/share/applications/defaults.list
One easy way to replace a program like gedit would be to get all entries containing gedit, replace them with scribes, and add that list to ~/.local/share/applications/defaults.list.

This quit one-liner does exactly that, except that it posts the results in terminal and you will just have to copy/paste it into your file:

Code:
 grep gedit /usr/share/applications/defaults.list | sed s/gedit/scribes/g
__________________
Now I fixed my problem and learned how Ubuntu default program handling sucks. 
Oh, btw, the file I changed was via
vi ~/.local/share/applications/mimeapps.list 
Not the ‘defaults.list’ mentioned above, ‘defaults.list’ is default, but those changed later by apps will be in mimeapps.list ūüôā

 

 

 

 

 


I know this is an old news but this is the first time I’ve ever would like to do this, allow users to have PHP scripts installed in user directory (via mod_userdir) [and must be executable by visitors]. Initially I could not have PHP executed until found this forum:¬† http://ubuntuforums.org/showthread.php?t=1521010&page=1¬† which the valuable reply from¬†patjenk¬†said:

I am using 10.4 server and recently ran into this problem. In /etc/apache2/mods-enabled/php5.conf check to see if PHP is explicitly turned off in user directories. The configuration will look like this:

<IfModule mod_userdir.c>

    <Directory /home/*/public_html>

        php_admin_value engine Off

    </Directory>

</IfModule>

Commenting this out and restarting the apache server fixed the problem for me.

And I found it works for me as well. Thank you Google and patjenk.


Not sure how should I feel to see Thailand back on Arbor Networks’ ATLAS (stand for Active Threat Level Analysis System) which displays global cyberspace threat and accessible for anyone (just for the public pages). Yesterday (9/27/2010) Thailand was ranked at 20, today she is on 12, a fast rising star indeed.

capture007

Some statistics shows trend and history also provided on the separate page, it was also interesting to see Thailand was even on the Top 10 list during the week of Sun 5th (September 2010).

capture008

My thanks go to Arbor Networks Inc. for providing such great information on Internet Global Threat.


I strongly believe that everybody, yes everybody, has or will meet a great chance once in a life time. That chance may even change your life totally. The problem is how do you know that it is your only great chance, and yes, usually you would not know until one day in your life you just recalled your past and recognized that it was the one. And chances are, you either already grabbed it or already let it passed.

I let mine slipped and I was regret for it everyday, keep hoping for a new life changing chance. Hope you have not let yours being overlooked like me!

Look on the bright side, I’m still breathing, having hope and family with me. These are already good enough reasons for me to continue living!


I have always thought about this and hope things would be better when the next generation steps in, but how can thing change if we still are teaching our kids like this?

I live in Thailand and I know many people in this country hope to see the country moves into a cleaner direction, less corruption and think more of country’s benefits. My hope has been nearly diminished when I heard a¬†colleague mention how he though his son. He was teaching his son about selling and what he taught was:¬†
When you are out in the field and start selling, the prospects/customers will be one of the three categories: First, ones looking for own direct benefits (he frankly specified bribery, in cash), second, ones looking for in indirect benefits (e.g.   entertaining, escorting etc.) and the last  are those who look for benefits of organization, fame and self satisfaction (in a good way e.g. showing off the talent). The first kind is accounted for 90% of prospects you meet and the last kind is less than 1% in real world. 
Wow, I was stunned when hearing this! If my generation keeps teaching the next generation people like this (fact?), what direction do you think they will believe? I bet when his son starts selling (well, everybody sells something always, at least sell yourself to the boss if you are not in direct selling business), he will think offering or taking dirty money is a norm, and is a second nature of Thai.  And if more people think the same, what will happen to Thailand? I believe that many many people already think corruption is fine as long as it is a small portion of overall country investment (we used to be in the period where no or minimum corruption in a government which led to no investment by government [ to avoid corruption] and eventually everybody suffered), this is already bad enough, if corruption becomes a part of everybody then the county will sure suffer badly. 
Ten years ago, I would expect only government officers (state or state enterprises) or politicians accepting bribes, but today, I start to see employees in large corporation corrupting and I’m depressed to see so.¬†

I have been using IPad for about a week now and found it is fascinating especially when using it for web browsing and drawing/sketching/painting. I do not have to carry an overweight notebook just for reading and do not need paper and pen to do sketching, really good experience. However, when time comes to writing text (e.g. Blog) and prepare presentation( via Keynote) I found it really hard, not that the keyboard is small but rather it does not contain many keys e.g. Control ( imaging using bold face or italic characters) and moving between digit and alpha mode is cumbersome especially when writing long text. Having no no use and use only finger also is a pain as controlling accuracy/precision of position, mouse or trackpad is a much better choice. So, IPad is ideal for short notes, email or simple presentation, when things getting more complicate or longer, you will sure need a notebook or at least a wireless keyboard (again, I will still need a mouse!).

Another best thing about IPad is the weight, so I guess I will need to get a Macbook Air some day soon.

Another hope is to have my life less complicate so I can live with just IPad!


I need to access SSL VPN from my home and the remote site happens to use Fortigate, and in many cases you may want to load FortiClient SSL VPN on to your machine prior to access to avoid downloading from the firewall when you do not have time to waste, downloading takes sometime. The problem I have is from Fortinet site, standalone SSL VPN is no longer available, only a bundled version combining both Endpoint security client and SSL VPN client into single executable. When installing the software you have a choice whether to install SSL client or not, you will always have to install Endpoint security. This is absurd especially when all you want is installing SSL client. Assumed you choose to install SSL client, after installation is done then you can choose to remove endpoint security software later, which means the software actually install two separate applications, which also implied that you should be able to unbundle the software into two somehow.

Well, actually you can! If the software you downloaded is call FortiClient_4_0_2.exe and is downloaded into directory called ‘downloads’ then what you will need is to open Command Line prompt, e.g., press ‘windows’ key and run ‘cmd.exe’. From the prompt, change directory to, say ‘downloads’, using

> cd downloads

Then you can unbundle the file using ‘/extract’ option when executing the downloaded file, e.g,

> FortiClient_4_0_2.exe /extract “dir_to_extract” [press Enter]

Now the program will create two executable files in directory called “dir_to_extract”, one is the SSL client and another is the endpoint security. Now you can install the SSL client by simply double click in Windows Explorer as usual.

Or a simpler method is to point your Internet Explorer to the URL of Fortigate SSL address and it will tell you where to download and hope it will be just the SSL client. With this method you will be likely to have the most compatible client software matching the Fortigate SSL VPN server.

Have fun!