Alt+Tab Key combination doesn’t work with NX Client

Writing by on Tuesday, 16 of November , 2010 at 10:05 pm

Alt+Tab key combination catching can be achieved through a slight configuration change in your NX Client session.

In the NX Client GUI -> Advanced tab…
Check the Grab the keyboard when the client has focus

Leave a comment

Category: Tips and Tricks

Backlight on Dell Laptop Keyboard Doesn’t Turn On

Writing by on Monday, 27 of September , 2010 at 6:54 am

If your Dell Laptop has a backlit keyboard and suddenly doesn’t get illuminated anymore, then it’s probably a setting you need to turn on.

Unless you have customized your Shortcuts, Fn + F7 should bring up the Dell Control Point. You will need to have the Dell Device Control Point driver installed.

Fn + F7

Then browse to System and Devices -> System Features -> Keyboard backlight is set to Enabled/Disabled. Use the Toggle button to change it.

Leave a comment

Category: Tips and Tricks

Access PostgreSQL from the outside world

Writing by on Tuesday, 7 of September , 2010 at 4:07 pm

Say you want to open up PGSQL so an external client can access it, maybe make some JDBC calls from a different machine etc. you will need to slightly modify some config files

  • vi /opt/local/pgsql/data/postgresql.conf
  • Change listen_addresses = ‘*’
  • vi /opt/local/pgsql/data/pg_hba.conf
  • Search for something like
    • host all all 127.0.0.1/32 md5
  • Add a new line below
    • host all all 10.4.5.6/32 trust
    • Note 10.4.5.6 is the IP address of the client you want to connect from
  • Restart pgsql process /etc/init.d/postgresql restart

Leave a comment

Category: Tips and Tricks

PostgreSQL ERROR: current transaction is aborted, commands ignored until end of transaction block

Writing by on Tuesday, 7 of September , 2010 at 4:03 pm

After opening up PostgreSQL to accept connections from the outside world and using SQLExplorer as a client, I noticed that if there was a SQL Syntax error or any problem with a SQL, any following SQL statement would come back with

ERROR: current transaction is aborted, commands ignored until end of transaction block

Simple fix for me was to rollback the transaction

rollback

It’s likely that my client was somehow starting a BEGIN transaction and since the query wasn’t valid, the transaction didn’t end so had to manually rollback.

Leave a comment

Category: Tips and Tricks

Generate Timestamps in MySQL

Writing by on Thursday, 1 of October , 2009 at 5:20 pm

So you want to populate a new column in MySQL with fake dates?

Here’s how to add a new datetime column in SQL

alter table city_new add column mytime datetime;

Here’s how to populate it with fake timestamps data

update city_new set mytime = select from_unixtime(
unix_timestamp(‘2009-01-01 01:00:00’)+floor(rand()*31536000)
);

Here’s a more generic formula

select from_unixtime(
unix_timestamp( ‘start timestamp’)
+floor(rand()* (max interval in seconds) )
);

Leave a comment

Category: Tips and Tricks

Eclipse Error: Could not open the editor: Resource is out of sync with the file system

Writing by on Friday, 10 of July , 2009 at 11:37 am

One of the several eclipse errors.

Could not open the editor: Resource is out of sync with the file system

Easy fix (that worked for me) is to select the Project and hit F5 or Right Click and click Refresh.
Simply refreshing the particular resource did not work.

Usually happens when some files are edited outside of eclipse.

Comments (1)

Category: Tips and Tricks

Shivdev Kalambi's Blog

Shivdev Kalambi is a Software Development Manager, previously a Principal Software Engineer at ArcSight/HP. With over 16 years' experience in software development, he's worked on several technologies and played different roles and contributed to all phases of projects. Non-tech activies include Ping-pong, Rock Climbing and Yoga at PG, Golf, Skiing, Swimming & a beer enthusiast.