Apr
26
2010
I know everyone is sick of hearing about apple but I thought some people might be interested in this little thought experiement.
Apple is notorious for leaving their terms fuzzy and undefined. You can’t help but wonder how they are going to enforce their newest controversial rule (3.3.1 if you don’t know go ahead and google it). As much as I want to go on a rant about everything that is wrong with Apple, I will try to focus on clarifying what is meant by “originally written”. This post is not meant to be extremely informative in itself, rather give you questions to think about. After reading it try to draw your own conclusions (feel free to post it in the comments). I’ll try to keep this away from complaining and as original as I can.
Continue reading
no comments | tags: 3.3.1, apple | posted in Articles
Mar
4
2010
Linked Lists, Double Linked Lists, Arrays, Queues, Stacks… the data structures go on and on, but don’t they all do pretty much the same thing? If you’re like me you probably don’t worry about which you use most the time. Just use whatever is convenient at the time, in C-like languages this will usually be an array, in Functional Languages a List (I believe they use linked lists by default).
Usually the defaults are fine, I mean how much difference could it really make? I didn’t think it would be too much, maybe a couple seconds until my recent experience with Project Euler 78.
Continue reading
no comments | tags: Euler, haskell, performance | posted in Articles, Code, Euler, Full Program
Jan
12
2010
No guarantees but my prediction is that we are going to see the gradual downfall of the GPL license over the next couple years. For awhile now there has been a trend of developers switching from GPL to less restrictive licenses, often citing the viral nature of the GPL as the reason.
Is it possible to save the GPL? It might be possible to save but the best solution would be to just let it go. The licenses that are better suited will come into it’s place.
The GPL stage of open source is ending and viral licenses are no longer needed to spread open source around. What we need now are licenses to make open source more usable. Some of the ones hat have been floating around have been the “unlicense” which effectively puts the work into public domain and ms-pl.
Is this trouble for the open source community? Absolutely not. It simply shows that it is going into a stable phase where it does not need developers to force adoption through licenses, and open source will be used regardless.
no comments | tags: gpl, opensource | posted in Articles, opensource
Oct
8
2009
Gotchas are bits of code that do something completely different from what you expected. These bits of code are often hard to catch and identify leaving you debugging for hours on end with no luck. The best way to keep yourself safe is to know them ahead of time. Here are some of the ones I have encountered before. Continue reading
2 comments | tags: gotcha, Java | posted in Articles, Java, Uncategorized
Sep
2
2009
In my opinion one of the most confusing topics that Java has to offer is how it passes its variables. Two people can argue for over a page trying to say the same thing but not realize it until after.
Continue reading
3 comments | tags: Java, pass, Tutorial, variables | posted in Articles, Java, Tutorial
Aug
31
2009
The Ternary Operator
The ternary operator is a source of confusion for many beginning programmers. In case you don’t know what the ternary operator is, it looks something like
String message = (isvalid?"Valid":"Invalid");
The ? represents the thought that goes through their head when they see it and they probably won’t get to the : .
Continue reading
no comments | tags: Java, ternary operator, Tutorial | posted in Articles, Java, Tutorial
Jul
24
2009
All right, this is a very rough idea and is going to be far from perfect (and I’m sure someone else has though of it before). The idea is to use a node type system that defines an object based on it’s relationships.
Continue reading
1 comment | posted in AI
Jul
13
2009
Not sure what motivated me here but I took a little time and came up with this. It takes the original image file ( can be a multitude of formats, has worked with both jpg and png so far) and outputs a grayscale image (jpeg or png).
Continue reading
2 comments | tags: gray, grayscale, images, Java, rgb | posted in Articles, Java, Snippet
Jun
14
2009
The problem is to find the sum of all the primes below 2 million.
Continue reading
2 comments | tags: Euler, Problem ten, projecteuler.net | posted in Euler
May
28
2009
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91
99.
Find the largest palindrome made from the product of two 3-digit numbers.
Continue reading
1 comment | tags: Euler, projecteuler.net | posted in Euler