Blog

Download Adium X 1.3b2

Posted on: 2008-06-10 13:41:17

Saw "this article on Ars Technica":http://arstechnica.com/journals/apple.ars/2008/06/10/adium-1-3-beta-brings-new-contact-organization-performance earlier, and had to try it out. Latest beta of Adium has a Facebook module. Sure enough, it works like a charm. I can see and chat to everyone just as if they had IM, all from the comfort of Adium.

!sites/nickvahalik.com/files/facebook_contact_list.png!

"Go download the Adium Beta":http://beta.adiumx.com/

UPDATE: It appears that by using this module, it continuously logs you out of your browser session. Trying to browse the Facebook site while logged into the IM client through Adium was a painful experience. Just FYI.

Continue reading...

For all your Bruce Schneier Facts

Posted on: 2008-06-09 09:42:32

"!sites/nickvahalik.com/files/bruce-schneier-1.jpg!":http://geekz.co.uk/schneierfacts

"Bruce Schneier Facts":http://geekz.co.uk/schneierfacts

My favorite... "Bruce Schneier's secure handshake is so strong, you won't be able to exchange keys with anyone else for days.":http://geekz.co.uk/schneierfacts/fact/26

Continue reading...

How I Cut My Server's Load Average In (More Than) Half

Posted on: 2008-05-27 22:08:47

I try to monitor my hosting server pretty closely. It's rare that a days goes by when I haven't checked logs and monitored process and memory usage. For the most part nothing big happens. It just makes me feel important. But over the past few months the load average appeared to be above normal.

After attending a session on "APC":http://pecl.php.net/package/APC at "php|tek":http://tek.phparch.com/, I installed it on my primary hosting box.

For the past few months, I'd ssh in and see something like this:

nick@hosting$ w
22:41:12  up 135 days, 13:33,  1 user,  load average: 0.78, 0.91, 1.18
...

Today, it looks something like this:

nick@hosting$ w
21:45:40  up 35 days, 23:33,  1 user,  load average: 0.18, 0.18, 0.21
...

I must say... quite an improvement!

So this brings up a question... if it can improve performance this dramatically, how well would it do if say... the Drupal caching mechanism were rewritten to use this as a cache? It uses SQL, so taking out a bunch of SQL queries per page load might dramatically improve it's performance on single-server setups.

Actually, a bit of searching reveals that "someone else has already thought of this":http://drupal.org/project/apc. One user says that his app was able to "handle 50% more traffic after using this new cache.inc file":http://drupal.org/node/224213. Interesting. Wonder why this hasn't been push into core yet? Would it be too hard to detect APC and use one set or the other?

Continue reading...

Drag and Drop File Uploads in Adobe AIR

Posted on: 2008-05-26 14:25:37

After doing quite a bit of research and testing, it seems as though drag-and-drop file uploads in AIR can't have progress monitors. If I'm wrong, I'd really like to hear about it. Drop me a line... nick @ <this domain>

Looking through the Flash Documentation, it would appear that the Progress event for file uploads only fires from the FileReference object. You can't instantiate this object from inside Javascript. It appears to work if you use the select dialog box... <code type="javascript">file = air.file.desktopDirectory file.addEventListener( air.ProgressEvent.PROGRESS, function() { air.trace('this will fire') }); file.browseForOpen( 'Select File' );

and then upload the file, but doing something like this will never fire the event:

<code language="javascript">// inside drop event handler myfile = new air.File() myfile.url = event.dataTransfer.getData("text/uri-list") ur = new air.URLRequest('http://127.0.0.1/~nvahalik/upload_test.php') ur.method = 'POST' myfile.addEventListener(air.ProgressEvent.PROGRESS, function (event){ air.trace('upload in progress') });

This isn't a show-stopper for this particular project, but knowing my audience, they are going to want to know what the status of the upload is.

It does strike me as rather strange that you can't monitor those kinds of uploads. Maybe it's coming soon? I hope.

Continue reading...

My New Love Affair With Adobe AIR

Posted on: 2008-05-25 14:29:01

While at php|tek this past week, I attended a session by "Ed Finkler":http://funkatron.com/ called "Building Desktop RIAs with PHP, HTML and Javascript in AIR":http://tek.phparch.com/c/schedule/talk/d2s3/0. At first, I was skeptical. Surely, this was all too good to be true.

Duly inspired, I set off hacking on my own application. After a little while (roughly an hour), I had a fairly impressive mock-up of my application going.

After downloading some more apps from "Adobe Application Exchange":http://www.adobe.com/cfusion/exchange/index.cfm?event=productHome&exc=24&loc=en_us, the whole idea of what Adobe is doing with AIR finally hit me. This is opening up real rapid application development to a whole slew of people who don't know those "real" languages like C#, C++, Objective-C, or Java.

Anyway, it's awesome and you should try it out.

Continue reading...

php|tek 2008 - Let the fun begin!

Posted on: 2008-05-19 23:22:38

In Chicago for php|tek 2008. It hasn't even started, yet but fun has already begun. Met some really great people and learned that I need to idle in #phpc more.

The weather is great here! Tomorrow it's off to the city for some touristy stuff.

Continue reading...