poorna — September 3, 2008, 10:21 pm

Replacing/Cleaning the fan on Dell Inspiron 600m

Recently, my 3-year old Dell Inspiron 600m started heating up excessively. Some software programs started misbehaving and sometimes becoming non-responsive. I am not sure the latter and the former have a cause-and-effect relationship but, I decided to take a look at the fan anyway.

When I searched for instructions online, I mostly followed the informative blog to disassemble the 600m at:
http://frankdzedzy.com/2006/03/28/disassembling-a-dell-laptop-display/

But, I was stuck on the first step of prying out the front panel near the display. The panel is flimsy enough to make you uncomfortable to force it out. After a couple of tries with prying it partially and pushing it back in place, I was able to get it out. Here is a picture indicating where the slots are.

Dell Inspiron 600m front panel

Dell Inspiron 600m front panel

I would suggest starting with a flat-head screw-driver at the notch by the display lights pushing the panel to the opposite direction. There is a similar notch on the opposite side of the panel. Next, two notches, both on the back side on the same side of the hinge that is away from the display lights. Hope this helps.

poorna — August 28, 2008, 1:24 pm

Integrating Glassfish Server with Existing NetBeans Installation

If you are using a NetBeans 6.1 bundle without the GlassFish open source application server and wish to integrate GlassFish a la carte with your existing installation of NetBeans rather than nuking your existing installation and re-installing Netbeans, here is how to do it:

Download the appropriate binary build of GlassFish from: https://glassfish.dev.java.net/public/downloadsindex.html

% java -Xmx256m -jar filename.jar (where filename.jar is glassfish-installer-v2ur2-b04-darwin.jar for my Mac OS X binary download of GlassFish V2)

% cd glassfish

% chmod -R +x ./lib/ant/bin

% ./lib/ant/bin/ant -f setup.xml

% ./ bin/asadmin start-domain

Fire up your existing NetBeans application and click on “Windows”->”Services”.

Right-click on “Servers” and choose to “Add Server”

Pick “GlassFish V2″.

Browse to the working “glassfish” directory used in the steps above and hit “enter”

The “Register Local Default Domain” radio button should get highligted and “localhost:4848″ gets picked up in the drop-down menu.

Click “Next” and choose a password for “admin”. Make sure that it is atleast 8 characters to avoid pain later.

You are set.

Detailed instructions are available here:

https://glassfish.dev.java.net/downloads/v2ur2-b04.html, http://www.javaworld.com/community/?q=node/1270, http://serverplugins.netbeans.org/screencasts/pfsc1.html

poorna — August 13, 2008, 11:17 pm

Using MySQL from NetBeans 6.1 IDE on Mac OS X

Detailed article on using MySQL from inside NetBeans 6.1: http://www.netbeans.org/kb/60/ide/mysql.html

Here is a brief write-up with just the instructions:
1. On you NetBeans, open up the Services tab using Command+5 OR Window->Services.
2. Right-click the MySQL (Connector/J driver) and choose Connect Using
3. Replace <HOST>:<PORT>/<DB> with ‘/’ so that the URL reads “jdbc:mysql:///”. For User Name type “root” and hit OK.
If you have already created a database <database>, you can also connect
to the database by replacing <HOST>:<PORT>/<DB> with “localhost:3306/<database>“.
4. Click OK to accept the default schema.
You are now connected to the mysql database server using Netbeans

Detailed article on installing MySQL on Mac OS X: http://dev.mysql.com/doc/refman/5.0/en/mac-os-x-installation.html

Quick instructions to install MySQL:
NOTE: Check to see if you already have mysql:
$ mysql –version

1. Download MySQL 5.0 from:
http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg
2. Double-click on the MySQL 5.0.67-community package for Mac OS X installer and go through the installation accepting the license and default choices.
3. Double-click on the MySQL Startup Item Installer for Mac OS X and go through the installation accepting the license and default choices.
4. Add “/usr/local/mysql/bin” to your path by editing /etc/paths using:
$ sudo vi /etc/paths
5. Exit your current terminal and login again for the path reset to take effect.
6. Test mysql installation using:
$ mysql –version
7. Start MySQL using:
$ sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
8. Create a test database using:
$ mysql –user=root
> create database testdb;

poorna — , 10:10 am

Netbeans 6.1 Icons, Badges, Symbols (updated)

Since I wrote a post on this topic I found this wiki page information on the icons and badges in the Visual Mobile Designer Palette:

http://wiki.netbeans.org/VisualMobileDesignerPalatteReference


poorna — July 30, 2008, 6:52 pm

Thinking out of the box, Fishing without a rod

Caught a recent episode of Anthony Bourdain’s No Reservation episode about Shanghai on the Travel Channel. I was quite amused by the traditional Chinese fishing method of using long-necked fish-eating Cormorants to catch fish. Apparently Erhai lake in Dali province has an economy built around cormorant fishing!

The fisherman (can we still call him that?) ties a thread around the cormorants’ neck so that it cannot swallow big fish although it can eat up smaller fish. While the birds work hard for his dinner he chills out on the boat. May be it is not fair for the cormorant but, the idea itself - brilliant!

Found this Youtube video on cormorant fishing

poorna — July 23, 2008, 10:06 pm

Memory and Cognition Exercises

If you have to take a break at work try CognitiveLabs. I checked out a couple of their tests and am impressed enough to go back for more :).

These folks convert research notes in the field of cognitive speed into interesting games, brain exercises and tests. Their claim is that attention and focus are the key to success at every task and these games and brain exercises improve memory and cognitive abilities. Furthermore, certain tests are designed to provide early indications on potential memory loss candidates and dementia in elderly. Take this test to see if you are demented: http://cognitivelabs.com/cognitive_freetest3.htm :P

poorna — July 20, 2008, 2:08 am

Bear Market Tip 2: Sell and Buy Out of the Money Calls.

It is common investment wisdom that every rally in a bear market should be sold. But, sometimes you do not want to sell tickers that are working. If, you can identify a range in which your favorite stock trades, here is a way to make some money in a sideways market. When the stock is up, sell calls that are just out of the money (the premium is higher) and buy them back just if and when the stock goes low (the premium is lower) on a down day.

I will briefly demonstrate this strategy on one of the tickers I own - Interactive Brokers (IBKR). In the past 3 months, the stock has traded roughly between $27-34.72. My cost basis is around $30. I usually write calls for the next options expiration date (not the current one but, the one after the current expiration date) for a strike price that is just out of the money (say $35). If I time the sale correctly (say when the stock is around $34), I earn a premium of about $2.50-3.00 ($250-300 since each contract represents 100 shares).

There are three possibilities with this strategy: If the stock rises above the strike price plus the premium of the call I sold i.e. >37.5 (35+2.50), I may be assigned the call which means I will lose the shares. But, that is okay since, I will score a good strike price ($5 above my cost basis) plus I get to keep the premium ($2.5). That is a wholesome 25%. I can even get back on the stock and not lose much momentum. If the stock falls lower than when I sold the call option, I usually buy back the call option so that I am ready to repeat the process. It is to be noted that the premium affords me the luxury of holding on the stock even if it falls below my original cost basis upto $27.5 ($30-2.5). If the stock trades sideways in the same range, then eventually the call expires. I get to keep the premium and write another call!

poorna — July 6, 2008, 1:53 am

Myth of Multi-tasking and your Choice.

I do not want to regurgitate Christine Rosen’s article on The New  Atlantis about “The Myth of Multi-tasking“. But, this post has some notes for myself. One of the reasons why people have to multi-task is that great publications like this one are quite long. All those names, affiliations, times and quotes distract the reader’s line of thought. How about just cutting out the quotes and providing the names, affiliations and times in a reference section like they do in technical publications? If I really want to pursue a particular reference I can as easily look it up! ?

Check out the important choice decision at the bottom after reading the interesting bits from the article below:

“Workers distracted by e-mail and phone calls suffer a fall in IQ more than twice that found in marijuana smokers.”

“workers took an average of twenty-five minutes to recover from interruptions such as phone calls or answering e-mail and return to their original task”

“estimated that extreme multitasking—information overload—costs the U.S. economy $650 billion a year in lost productivity”

“functional magnetic resonance imaging (fMRI) scans to determine that when people engage in task-switching — that is, multitasking behavior—the flow of blood increases to a region of the frontal cortex called Brodmann area 10. (The flow of blood to particular regions of the brain is taken as a proxy indication of activity in those regions.) This is presumably the last part of the brain to evolve, the most mysterious and exciting part,”

“evidence of a response selection bottleneck that occurs when the brain is forced to respond to several stimuli at once. As a result, task-switching leads to time lost as the brain determines which task to perform.”

“rather than a bottleneck in the brain, a process of adaptive executive control takes place, which schedules task processes appropriately to obey instructions about their relative priorities and serial order,”

“with training, the brain can learn to task-switch more effectively, and there is some evidence that certain simple tasks are amenable to such practice.”

“multitasking contributes to the release of stress hormones and adrenaline, which can cause long-term health problems if not controlled, and contributes to the loss of short-term memory.”

“Even if you learn while multitasking, that learning is less flexible and more specialized, so you cannot retrieve the information as easily.”

“people use different areas of the brain for learning and storing new information when they are distracted: brain scans of people who are distracted or multitasking show activity in the striatum, a region of the brain involved in learning new skills; brain scans of people who are not distracted show activity in the hippocampus, a region involved in storing and recalling information.”

Techno-social Darwinism: “it is likely that brains that are more adept at media multitasking will be passed along and these changes will be naturally selected” VS. Attention-Deficit Recession: “media multitasking kids might become adults who engage in very quick but very shallow thinking.”

“The faculty of voluntarily bringing back a wandering attention, over and over again, is the very root of judgment, character, and will.”

“Further research could help create clever technology, like sensors or smart software that workers could instruct with their preferences and priorities to serve as a high tech ‘time nanny’ to ease the modern multitasker’s plight.”

Now, is the time to decide:

“Would you like to assume that humans are not capable of multi-tasking and hence just try to develop the faculty of bringing back your wandering attention to focus on single-tasking?”

OR

“Would you like to make a concious effort to start developing the part of your brain for selective multi-tasking so that you can pass on to the next-generation a better set of genes that can eventually evolve into a well-developed multi-tasking system?”

poorna — June 30, 2008, 2:32 pm

SVLG Data Center Energy Summit (June 26, 2008)

Sun hosted the Silicon Valley Leadership Group’s Data Center Energy Summit on June 26, 2008. Talks and panel discussions touched every facet of building energy efficient data centers.

Interesting tidbits from the summit:

- Synopsys forecasts that we will see machines with 350000 cores by 2013. (Source: Sriram Sitaraman’s presentation from Roundtable 1 on Resource Optimization)

- Dean Nelson (Sr. Director of Global Datacenter Design Services, Sun) drew a very enthusiastic round of applause from the audience when he challenged Rackable, Modular Rack Systems to test and compare their modular data center designs with those of Sun’s.

- SynapSense presented the results of instrumenting one of the Yahoo data centers with their wireless sensors. They were able to reduce the Power Utilization Efficiency (PUE) from 1.56 to 1.44 by visualizing the data center environment, suggesting better airflow management and providing adaptive cooling control. Port for hooking up other senorsSynapsense wireless sensor

Each sensor node is 802.15.4 capable and comes with a temperature and humidity sensor. There is a custom port that can be used to hook up other sensors. Their proprietary software SynapSoft 4.0 can be used to provide live imaging maps for thermal, pressure and relative humidity. Alarms, alerts, graphing and the whole kit and caboodle is provisioned. I am impressed with the SynapSense product portfolio since they are sitting smack on a very relevant cross-disciplinary area of data center monitoring and wireless sensor networks.

poorna — June 26, 2008, 12:10 am

Java ME development on Mac OS X

As of this date (June 25, 2008) the only practical solution for Java ME development on Mac OS X seems to be installing Netbeans 6.1 on an alternate operating system (Windows * or Linux) running over VMware Fusion.

Sure, there are a couple of blogs that describe workarounds to getting a Java ME development environment on Mac OS X. JustDev and FaqMobilityMpowerMacOs describe one approach using the MPowerPlayer SDK. Javablog has an article using the MicroEMU WTK.

I tried the former approach with MPowerPlayer and was quite disappointed. The MPowerPlayer emulator crashes quite often even for the simple sample demos that come with NetBeans IDE. Other sample demos that require optional packages such as the Bluetooth demo will not compile. Even open source projects such phoneME that provide these optional packages only cater to Windows (x86) and Linux (x86, ARM).

The latter approach with MicroEMU seemed quite twisted.

Until, Apple updates to JDK 5 Update 14 (version 1.5.0_14) on OS X, I would rather spend $80 on a VMware Fusion license rather than get distracted with little hacks.