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 then, for example, run

mkpasswd -l [-d] > /etc/passwd
mkgroup  -l [-d] > /etc/group

Note that the -d switch is necessary for domain users.

To resolve the problem, simply follow the direction above.

$ mkpasswd -l > /etc/passwd

$ mkgroup -l > /etc/group
$

That is all.

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 PHP. According to wiki, the language was once worked on by two Israeli developers:

paam –> One

ayim –> Doubled

nekudot –> Dot

ayim –> Doubled

Seems like it means “double-colon” in Hebrew.  (static class reference)

The easiest way to reproduce is:

<?php

$test::bogus();

?>

For many ways, the above reference method is wrong…

« Previous Page