Posts

Java Byte Code, Interpreter and JIT

Image
Generally, when a program is compiled to an intermediate level and then interpreted  by a virtual machine, it runs slower than it would run if compiled to machine code. However, with Java, the differential between the two is not important for general purpose. Because byte-codes are highly  optimized, the use of byte-code enables the Java Virtual Machine to execute programs much  faster than you might expect. Java is also designed as an interpreted language, so java does not have anything to stop  (on the fly) compilation of byte-code into machine code, to improve  performance. For this reason, the HotSpot technology was introduced after Java’s initial release. HotSpot provides a Just In Time (JIT) compiler for bytecode. When a JIT compiler is part  of the JVM, selected set of bytecode are compiled into executable code in real time,  on a piece, by, piece, demand basis.  It is important to understand that it is not practical to  compile a whole Java program into machine code all a

No one loved Kingswood more devotedly than he

Image
During World War I, Kingswood enlisted a group of present boys as cadet officers to fight on behalf of the Crown, the son of a family that was close to Kingswood — Brian Leslie De Vos  — Kingswood For Ever The Story of Kingswood Kandy - Chapter Kingswood and The World War - Page 98  "The thirteenth and last for mention is Brian Leslie de Vos who was wounded in action on the 28th March 1918 and died on the following day of his wounds. No one loved Kingswood more devotedly than he. He was entirely our own; he exulted in being ours and entirely ours. Every letter of his from the Front, to whomever written, had some endearing reference to the school. He was wounded once in France, and wrote afterwards : "I now have in my possession a copy of the Kingswood Song, stained with blood. It was on my person when I was wounded. It is the souvenir I value most. Can you get me the music of the Kingswood Song? Oh! for a Kingswood day again!" He left Kandy on the 18th October 1915.

Department for Persons Registration of Sri Lanka

Image
Yesterday I went to the Department for Persons Registration to get new NIC for my lost NIC. I reached there at 9.00 AM. I had to stand in a long que for about 30 minutes. Then they gave me a number card and they told that they will call me to the counter according to that number. They called me at 11.30 AM. I paid the fee. When I gave my file I told them, there is a correction to be made in my name. They told me that it is not a problem, we enter your name as it is in the birth certificate. Then I was standing for a long time, and at last they announced my name at 3.30 PM. Finally I got my NIC but my name was not corrected. What they did was, they copied the details from my old NIC and pasted it in the new card. (CTRL+C, CTRL+V)

Connect Huawei Modem Linux - USB Modeswitch

Image
Generally, if you plugged a USB modem to a Linux, it identifies the modem, as a USB Storage device. So due to that you can't access internet through your USB Modem. So you must change the device identification. For that, you need usb-modeswitch package. if you currently have internet in your system, you can install it easily. First you must check whether the  usb-modeswitch is  already   installed in your system.  For that open Terminal and type sudo usb_modeswitch  . If it already installed in your system the output will be like this.

Install Gammu In Windows

Image
This tutorial's video is at the bottom of this post. First, download Gammu for Windows. http://wammu.eu/download/gammu/win32/ Then, extract the Files to a Folder. Next, in the Folder, Go to  Gammu-1.30.0-Windows\share\doc\gammu\examples\config Open the "gammuurc" file from Word Pad.  Then you will see as below screen shot.

Install Lightweight LXDE Desktop and VNC For Ubuntu or Debian VPS

I think, LXDE Desktop Environment use 10 - 30 MB of RAM. The maximum use of RAM is 50MB. Make Ubuntu/Debian to the Latest Update. apt-get update Install Nano Text Editor apt-get install nano Install LXDE and VPN Programs. apt-get install xorg lxde-core tightvncserver Next, start the VNC to config file. tightvncserver :1 Then stop the VNC. tightvncserver -kill :1 Next, edit the config file to start session with LXDE.

Google Talk Desktop Application

Image
Download  https://www.dropbox.com/s/omwniwku19pou00/googletalk-setup.exe