Posts Tagged ‘software’

On the Subjects of object == null and collection.size() == 0

Tuesday, July 28th, 2009

Let’s just get one thing straight here people, an object that is null does not mean the same thing as a collection/array of length zero. I’m sort of seeing this more and more as I continue my existence on this planet and I say we put a stop to this now. Take this example method declaration (written in Java):

public Collection<searchresult> getSearchResults(String searchTerm);</searchresult>

Straight forward enough, I would hope. This method takes in a searchTerm String, magic happens (ah abstraction), and a Collection of type SearchResult is returned. Now here is the kicker: what happens if the search query resulted in no results? What should be returned? And why?

(more…)

Why Use Free and Open Source Software?

Thursday, April 9th, 2009

This entry was written with the developer in mind. Though none of this information is developer-specific, I don’t know of any non-developers who like to go through source code. I do look forward to the day where everyone reads code for the love of it.

Why use free open source software? There are many reasons why you should use it, a lot of which have been covered all over the internet ad nauseum, for instance Why Open Source Software by David A. Wheeler. I am sure they are all great references as to why anyone should consider free and open source software (FOSS) as a software solution. I am here to talk about why I think you should use FOSS and for me, one of the most important reasons to use FOSS is to give you the ability to figure out why things are going wrong on your computer.

(more…)

Connect Ubuntu to a Windows-based VPN

Monday, April 7th, 2008

Now one of my biggest problems with having any GNU/Linux-based operating system is that, for work purposes, I need to connect to a Windows-based VPN (Windows Server 2003). About a year and a half of on again and off again searching lead me to many dead ends. That is until I found Happy Linux Thoughts and the post about using network-manager-pptp called connecting to a Windows VPN server with Debian-based distros a few weeks ago. I was going to reiterate the steps, but I doubt I’d do a good of job as the author.

(more…)

Apturl – Apt-get Inside Your Browser as Links

Sunday, April 6th, 2008

Between long stints of playing offline VS mode in Super Smash Brothers Brawl to unlock all the characters and stages, I found this article about apturl on Digg (this seems to be the link for the project). From the blog post:

Imagine the next time you are trying reading a great list of Ubuntu programs. One of them catches your eye, and you want to try it. Instead of either using Add/Remove or opening a terminal to install the program, you simply click a link. A message box pops up asking you if you want to install the program, and then you enter your password,

Upon first gaze, this may seem like a sort of security hazard, however this is not the case.

(more…)