Negations in Regex

Writing by on Friday, 26 of May , 2017 at 6:43 pm

If you are in the situations where you know what NOT to look for, but everything else is considered a match, then you need to negate the pattern and use something like this as explained on this permonks thread.

^(?:(?!PATTERN).)*$
^(?:(?!nope|no|not|never|negate|negation).)*$

Here’s an example in Sublime Text.

Leave a comment

Category: Uncategorized

Ubuntu Show Date next to Time Indicator

Writing by on Monday, 27 of August , 2012 at 4:25 am

You need to use the dConf Editor to set it up

Step 1: sudo apt-get install dconf-tools
or
Step 1: Ubuntu Software Center – Install dConf Editor

Step 2: com.canonical.indicator.datetime

Step 3: Check the show-date option

Leave a comment

Category: Uncategorized

NX Client doesn’t seem to connect to my NX Server on CentOS or Red Hat (RHEL)

Writing by on Tuesday, 14 of February , 2012 at 10:16 pm

Make sure you have modified your /etc/hosts file

$ sudo vi /etc/hosts

# Assuming DHCP that my machine pulls 10.4.11.11. and hostname is wimbledon
10.4.11.11 wimbledon

Leave a comment

Category: Uncategorized

Citizen Eco-Drive Skyhawk A-T JY0010-50E Review

Writing by on Monday, 18 of July , 2011 at 5:55 pm

Looking to buy really good wrist watches? I just got a new Citizen Skyhawk A-T and here’s an initial review on some of it’s features:

– Titanium Construction (keeps it light, approx. 12oz)
– Atomic Timekeeping (USA, Europe & Japan)
– Eco Drive Solar Powered
– 2 Alarms, Chronograph, Perpetual Calendar
– World Time in 43 Time Zones
– Back lit Display (for the LCD)

It’s looks great, stands out and is a very light watch given all it’s features. (You’ll have to shell out $200 more for the Titanium version.) Very impressive dials wrt the detail and fine craftsmanship that’s gone in. The amber back-light display is a nice new addition. You’ll never have to adjust the time nor the calendar on the 1st of the month. Time is accurate to the second.

Citizen SkyHawk A-T Eco Drive JY0010-50E

Keep in mind that the Atomic Timekeeping may not work in all areas at all times. Usually at night the Atomic signal is strong and by default the watch checks and set’s the time every night at 2am, 3am and 4am. Now trying to do anything real with the watch (like manually setting the time, the time-zone, resetting it etc.) is challenging, because it will definitely require you to read the manual. But it’s simple enough once you read the instructions.

So far, I love it but I’ve had it only for a couple of days. I would recommend this for someone who’s looking to buy a watch that will last!

Leave a comment

Category: Uncategorized

Command to map a network drive from command prompt

Writing by on Friday, 9 of November , 2007 at 10:14 am

Most of you might be familiar with net use which works fine for network drives

net use x: \\SomeHostMachine\SomeShare

For local drives use subst

subst z: c:\SomeFolder\SubFolder

Leave a comment

Category: Uncategorized

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.