[Previous entry: "Clickity-click. IE trick."] [Main Index] [Next entry: "Worth a read. Then worth sending to everyone you know..."]

06/05/2003 Archived Entry: "Well that was good :)"

We finally went and made use of some of the amenities here at our new apartment complex! A nice dip in the pool to cool off after a hot day, then a few minutes in the sauna, then back home for a popsicle (or two...I may have another). A very decent way to finish a work day.


Lots of response to my previous post...I posted it on UF and a good many people came to visit. Then they shared it with their friends. I hope a lot of people see it so they can see how tied together MS Windows is, and how vulnerable that makes that operating system. Think of it this way...with the code hidden in the previous entry, I use your web-browser to access a component of the media player to go through the core components of your operating system to connect to your hardware. If that doesn't scare the bejeebus out of you, then you aren't A) a security freak or B) a unix-lover.

I love both A & B, so it bothers me quite a bit.


Play a bunch with PHP today and it seems to be missing something that I love perl for...something so simple that I really expected it to be there and was a bit boggled when it wasn't.

In perl, the following will prove true if variable $foo contains the string 'bar':
if ($foo ~= 'bar')

To do the same in PHP:
if ((strpos($foo, 'bar') > -1)

That's really bloody ugly. PHP really needs to implement this. If someone knows of a simpler way in PHP, please tell me.


Late addition! For a while I've been concerned that my monitor was getting darker...the difference was considerable between home and work. Today I discovered that you can edit /etc/X11/XF86Config to add a 'Gamma' value in the 'Monitor' section. I nicely increased my gamma from the default of 1 (out of 10) to 2.3, then darkened the monitor controls a bit. Things are much nicer now.

Thank you Linux, you just saved me buying a new monitor!

Replies: 3 comments

Perl is cool like that -- not many other languages I can think of that do it any easier than PHP.

Posted by Chuk @ 06/06/2003 09:39 AM PST

this is off the topic but you mentioned in your bio thing that you had really interesting dreams. i realize that this request is creepy at worst and obnoxious at best, but i happen to have a professional intrest in dreams and the like; would you mind humoring my intrest on your page or, if thats not conveniant just sending em over to me?

Posted by nolan @ 06/07/2003 03:46 AM PST

Shit, had a big comment typed out, then Firebird crashed on me.

http://ca2.php.net/regex
ereg ("abc", $string);
/* Returns true if "abc"
is found anywhere in $string. */

I have to admit its not as 'pretty' as perl, but since when are geeks concerned with looks eh?

And as for windows, i'm a very avid user of both windows and linux, I know that windows is nice when you keep it from being damaged from the outside world, its far better at playing games, watching movies, and a few other tasks like that (It is the BEST at developping WIN32 applications and doing DIRECTX school assignments)

Its all a matter of what you need it for.

Posted by Gavin @ 06/16/2003 06:55 PM PST

Powered By Greymatter