Cygwin: How to setup inetd

February 14, 2010 · Posted in Cygwin · 2 Comments 

(You have to have administrative privileges.)

Make sure you have set system PATH to cygwin binary directory: “My Computer” (right click) –> “properties” –> “Advanced” tab –> “Environment Variables” button on the bottom right above the “OK” button.

Register your  cygwin inetd service to Windows’ service:

$ /usr/sbin/inetd –install-as-service

(The dollar sign above […] Continue Reading…

Cygwin: Your group is currently “mkpasswd”

February 11, 2010 · Posted in Cygwin · 3 Comments 

I just updated my cygwin environment and started receiving following errors upon login to console:
Your group is currently “mkpasswd”.  This indicates that your
gid is not in /etc/group and your uid is not in /etc/passwd.

The /etc/passwd (and possibly /etc/group) files should be rebuilt.
See the man pages for mkpasswd and mkgroup […] Continue Reading…

T_PAAMAYIM_NEKUDOTAYIM?

February 7, 2010 · Posted in PHP · Comment 

What the heck is “T_PAAMAYIM_NEKUDOTAYIM” ???

When you are programming classes in PHP, you might encounter this error.
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in xxxxxx on line nn
Well, basically you screwed up some static scope reference somewhere. The origin of this error is something to do with the origin of […] Continue Reading…

Google Hot Trends Keywords to 20 entries

January 15, 2010 · Posted in Google, Hot trends · Comment 

While we are doing a maintenance of our google hot trends keyword database, realized that the number of keywords provided was changed to 20 entries from previous 40 around 18:00 EST  on December 16, 2009.  We recall sometime in September, it was reduced from 100 to previous 40.

May be […] Continue Reading…

MySQL: case insesitive “GROUP BY”

January 12, 2010 · Posted in database, MySQL · 4 Comments 

When we were building some SQL statements to gather some statistics and realized that the “GROUP BY” clause is NOT case sensitive on MySQL… (we are using utf8_unicode_ci as a character set collation)

i.e.
mysql> select keyword, count(*) from TopKeywords
-> where lower(keyword) like ‘secured loans’
-> group by keyword;

+—————+———-+
| keyword       | count(*) […] Continue Reading…

« Previous PageNext Page »