Posts

Showing posts from April, 2011

Non-technical and more: Lindsay Lohan was sent to jail recently

Lindsay Lohan was sent to jail briefly and then posted bond. She was detained after the judge sentenced her to 120 days of jail. But she posted bond and is supposed to return in early May. How many days will she actually spend in jail? 120? 2? No this blog was not hijacked. I find this interesting because I want to see how many ways Lohan and her attorneys can circumvent the real law so that she doesn't go to jail. Some people actually go to jail and are detained for periods of time longer than their actual sentencing. Lohan may go to jail for a fraction of her actual 120 days.

OpenJDK Hotspot, source code line count

Here are some notes, source code analysis of hotspot: # perl cloc-1.53.pl src 1786 text files. 1716 unique files. 121 files ignored. ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- C++ 673 64909 97522 340057 C/C++ Header 796 25928 49603 101144 XML 61 474 179 15360 Java 78 1908 2397 8663 C 11 1194 2327 7236 XSLT 7 560 166 4406 Assembly 6 89 36 2245 D 4 83 ...

Declarative programming introduction

"Haskell is a very elegant language, and the functional nature of it makes it a beautiful glue language... because the nature of Haskell as a language can make things clearer than many other programming languages" -- Mark C. Chu-Carroll of the ScienceBlogs "Haskell is a declarative language in that the program can be treated as a statement of facts, rather than as a set of commands that are sequenced in time" -- cdsmith Declarative programming is a programming paradigm that encourages that the programming logic describes what the program will do as opposed to how it will do it. Also, you don't define your programming logic in a sequence of steps like you normally would using an imperative style programming. Functional programming is considered declarative programming. With the imperative programming paradigm, one might do the following to reach a desired state. In Java (imperative style): final SavingsAccount savings = new SavingsAccount (); // ...

Eclipse, broken by design, thoughts...

If you are behind a web proxy and want to do an update, the default proxy settings (you know, the ones in preferences) don't work if you are doing an 'Eclipse update' or installing new software. It seems like the main purpose to even use the network connection with Eclipse is to perform updates via http. But it doesn't work. You need to add the http proxy settings in your Eclipse.ini. E.g. ... -Xmx768m -Dhttp.proxyHost=my.proxy.com -Dhttp.proxyPort=8080 Resources: http://www.eclipse.org/helios/ Last tested with Helios.