Tag: Software
atoi(getenv(”MYVAR”))
by Jacob on May.28, 2008, under Technical
These are mostly personal notes. I’m not sure if they will make sense to others.
I had a problem with a line of code like this:
int x = atoi(getenv("MYVAR"));
If this line was in daemon-ized code started at init level 2, it would segfault. (I’m not sure if these conditions are necessary, but those were my conditions).
getenv("UNKNOWN_VAR") == NULL
atoi(NULL) should == 0
But for some reason, things were segfaulting. I corrected the problem with:
if (getenv("MYVAR") == NULL) int x = 0;
else int x = atoi(getenv("MYVAR"));
GDocsUploader 1.2 released
by Jacob on May.06, 2008, under Technical
I released version 1.2 (download) of my little GDocsUploader program. After being published on a few websites and having over 4000 downloads, I thought it might be nice to update the app a little.
There are bug fixes, better error dialogs, a new icon (used under a creative commons license) and uploading of photos into Picasa Web Albums. A bulleted list of changes is published in the project wiki.
GDocsUploader is a small Mac OS X program that I wrote to quickly upload documents to Google Docs, simply by dragging and dropping a document icon onto the uploader icon.
I created this project entirely in my spare time. If you would like to support further development, please consider a donation:
Gdocsuploader
by Jacob on Apr.22, 2008, under Technical
A while ago, I found myself needing to upload many document files into Google Docs. I saw that Google had a new API for doing such, so I decided to write a quick little app for the Mac to do just that. Just drag and drop documents onto the icon, and away their uploaded.
I had never written any sort of real Mac application, so I just kind of glued something together out of Python, applescript, and a couple of helper apps. I threw the source up at Google Project Hosting, which has been good, because otherwise I would have been supporting the thousands of downloads.
Recently, my little droplet app became more famous. It was featured on lifehacker.com as a featured Mac Download. My favorite line from their post was, “Gdocsuploader is still new and a bit unpolished.” I think it should be considered more than just a bit unpolished. They should have said, “this thing might work, and is about as unpolished as lava rock.”
There have been a multitude of other posts about my little project:
- Web Worker Daily claims it could save you a bit of friction.
- VinodLive says it shines with some cool drag and drop options
- i use this shows 2 people are using it. I wonder how many people use i use this.
- samjones jaiku’ed it saying it saves time. Erik also jaiku’ed it when he added it to his del.icio.us bookmarks.
- Geekout.tv actually mentioned me by name! Thanks to them for the nice personal reference
- It hass even gone international at macworld.idg.se. I don’t know what they’ve said, but I hope it is nice.
Thanks to everyone who wrote something nice about it.
Did Google just change the world again?
by Jacob on Apr.07, 2008, under Technical
While Google is perhaps one of the most innovative web development companies out there, sometimes I am slightly disappointed because they fail to meet my exceedingly high expectations. Google has developed and released very few applications that I would consider as world changing. The short list includes Search, Gmail, Maps, Spreadsheets, and Calendar. That isn’t to say that Google hasn’t purchased and developed other emerging technologies which might also been revolutionary–Blogger, Picassa, Writely, Keyhole, and YouTube–but those applications got their start outside of Google. That also isn’t to say that Google hasn’t developed other standards and technologies which have greatly furthered the Internet. I’m simply making the point that Google has developed, from the start, only a few applications that most Internetizens would consider life-changing.
There is perhaps one product which is little known that I consider as having changed the Internet forever. This app has never really seen daylight outside the lab. In fact, its been a part of Google Labs for the last three and a half years. The product of which I’m referring is Google Suggest. If web applications were a family tree, Google Suggest would have been the grandfather of the so-called Web 2.0 apps we have today.
Google Suggest makes use of a web browser feature called XmlHttpRequest. This feature allows the browser to connect back to the web server and download additional content after the web page has already loaded. Today we see this feature used all around the web, but when Google Suggest was first released, few people ever knew that it existed. Post-loading content from the server was so revolutionary, that it has seen incredible adoption all over the net. So although most people never really knew about Google Suggest, it has indeed been the spark that lit the Web 2.0 firestorm.
Today Google released a new product platform which may be listed among the great revolution products from Google. Google App Engine (not to be confused with Google Apps for your Domain) is a service which allows web application developers to host their applications on Google’s servers, using Google technology.
Google App Engine solves the single biggest challenge in web application development: hosting. Having a web host that is well configured, well connected, and well tested is usually expensive, but it seems that Google will be providing at least some level of hosing for free. This really gives developers a whole new level of freedom for creating apps, and I think this will foster a whole new level of web application creativity. Who knows, this might be just the beginning of something called, Web 3.0.
Great open source OS X applications
by Jacob on Mar.17, 2008, under Technical
Here is a quick list of apps that I frequently use on OS X. I believe all of them are free and open source. many of the applications are development tools that I find useful.
- Adium - Instant messenger built with libpurple.
- Firefox - Web Browser
- NeoOffice - OpenOffice.org port
- Smultron - a nice, simple code editor. Integrates well with Cyberduck.
- Cyberduck - A SFTP client. Please read my full review.
- Quicksilver - a fast application launcher
- Komodo Edit - my new favorite small code IDE
- The Gimp - graphics editing program that requires X11
- Platypus - packages python/perl/php/shell scripts as double-clickable OS X applications.
Those are my favorite, most used apps. You should also check out this list of mac apps, some of which I’ve used either on the mac or other platforms, others I plan on trying soon.