11/27/2006

Neat Math Trick… Taken to a Geekier Level

Sections: Fun — Posted @ 1:18 pm

My Grandpa forwarded me a neat math trick which you should try:

  1. Grab a calculator.
  2. Key in the first three digits of your phone number (NOT the area code)
  3. Multiply by 80
  4. Add 1
  5. Multiply by 250
  6. Add the last 4 digits of your phone number
  7. Add the last 4 digits of your phone number again
  8. Subtract 250
  9. Divide number by 2

The amazing result: Your entire phone number. This is a neat trick. But, being the ubergeek that I am, I had to figure out how it works.

First Step: Write out the instructions as a math equation. Let the first three digits of the phone number be ‘X’ and the last 4 digits be ‘Y’. The expected result will be 10000X + Y (your entire phone number).

[250(80X + 1) + 2Y - 250] / 2 = 10000X + Y

Next Step: Reduce the equation.

[20000X + 250 + 2Y - 250] / 2 = 10000X + Y
[20000X + 2Y] / 2 = 10000X + Y
10000X + Y = 10000X + Y

Final Step: It checks out, both sides are equivalent. Isn’t math fun!

11/22/2006

Fresh Content on Aona Security Journal and Python Hacks

Sections: Web Site — Posted @ 9:24 pm

If you haven’t found time to check out my two newest web sites there is no time like the present to take a look.

Python Hacks - www.pythonhacks.com
I recently published the first part of a two part article on Python Hacks covering threading and how to use threads in Python. The second part of the article is going to cover a cool new feature in Python 2.4 called Decorators.

Aona Security Journal - www.aonasecurityjournal.com
This new content will probably be of more interest to most the readers of my blog. I have an article covering the latest batch of Microsoft patches with links to detailed information on each problem. I strongly recommend people go to http://update.microsoft.com to install these patches because 4 of the vulnerabilities are now being actively exploited. Nothing will ruin your day like having your computer and its data turn into a festering spam-bot, recking havoc on humanity.

I also just posted an article about the two different types of web browser cookies and why third-party cookies are evil. The article gives detailed instructions on how to disable them in the most popular browsers.

11/13/2006

Sun to GPL Java; Novell sucks

Sections: Technology — Posted @ 1:52 pm

For about a year, early on in my career, I worked as a Java developer and I generally liked the Java language. At the time (around 1999), Java had some serious speed problems that we had to work around and it didn’t run well on Linux (this was before Sun made an official Linux version). My roommate Kevin was a Java fanatic, and we often had the Java vs C++ debates. I haven’t done much Java work since then but I have been keeping tabs on the language and I liked the improvements I have seen over the years.

I generally thought C# was a better language choice than Java on Linux, because the Mono implementation was open and Java was very much a black box. It wasn’t really for any technical reasons that I preferred Mono over Java, but ideological ones because I could tweak the guts of Mono and I generally only support software released under Free Software Foundation approved licenses.

Well, the last week shows how things can do a quick 180 in the tech world. Sun made the expected announcement that it was going to open source Java, which they have been saying they were going to do eventually. Well, Sun surprised us all by announcing that not only were they going to open source Java, but release under the GPL! This is going to make Java a much more popular language option for Linux developers. Now every Linux distribution has no reason not to ship the official Sun Java environment with every copy of their OS.

Ironically, Novell, a primary sponsor of Mono C#, is going down the open source road the wrong way, by announcing last week that they have formed a partnership with Microsoft, the open source anti-christ. This is a horrible move and has personally made me loose any desire to do future C# programming with Mono. I had been a big evangelist of the Mono project but now I will be pointing people towards Java and Python.

Eben Moglen, attorney for the Free Software Foundation and an author of the GPL v2 license, states in a CNET article: “If you make an agreement which requires you to pay a royalty to anybody for the right to distribute GPL software, you may not distribute it under the GPL.” Eben is referring to Section 7 of the GPL, which Novell seems to have conveniently forgotten about.

Many open source projects are begging Novell to pull out of the deal, and the complaints are loud that this will cause SuSe and other Novell projects to violate the GPL. The Samba project expresses the feelings of many members of the open source community quite well with the following message to Novell:

Samba Team Asks Novell to Reconsider

The Samba Team disapproves strongly of the actions taken by Novell on November 2nd.

One of the fundamental differences between the proprietary software world and the free software world is that the proprietary software world divides users by forcing them to agree to coercive licensing agreements which restrict their rights to share with each other, whereas the free software world encourages users to unite and share the benefits of the software.

The patent agreement struck between Novell and Microsoft is a divisive agreement. It deals with users and creators of free software differently depending on their “commercial” versus “non-commercial” status, and deals with them differently depending on whether they obtained their free software directly from Novell or from someone else.

The goals of the Free Software community and the GNU GPL allow for no such distinctions.

Furthermore, the GPL makes it clear that all distributors of GPL’d software must stand together in the fight against software patents. Only by standing together do we stand a chance of defending against the peril represented by software patents. With this agreement Novell is attempting to destroy that unified defense, exchanging the long term interests of the entire Free Software community for a short term advantage for Novell over their competitors.

For Novell to make this deal shows a profound disregard for the relationship that they have with the Free Software community. We are, in essence, their suppliers, and Novell should know that they have no right to make self serving deals on behalf of others which run contrary to the goals and ideals of the Free Software community.

Using patents as competitive tools in the free software world is not acceptable. Novell, as a participant in numerous debates, discussions and conferences on the topic knew this to be the case. We call upon Novell to work with the Software Freedom Law Center to undo the patent agreement and acknowledge its obligations as a beneficiary of the Free Software community.

The original source of this announcement is available here: http://news.samba.org/announcements/team_to_novell/

After Novell bought the Ximian group, who many of the top Gnome developers worked for, I though the company finally had seen the light and was going to rescue it’s failing NetWare business by embracing the open source movement and competing with Microsoft with innovation and freedom. But after this latest development, I can only speculate that they were just latching on to the open source buzzword worthiness long enough to become enough of a pain for Microsoft that the evil empire would pay attention to them and buy them off.

11/2/2006

What I’m up too: Aona Systems LLC

Sections: Work — Posted @ 11:21 am

Well, as most of you probably know by now, I no longer work for The Bakersfield Californian. I turned in my resignation and my last day was on September 8th. The split was amicable and the major reason I left had nothing to do with the paper. I greatly enjoyed working with everyone at the paper and I truly think that technology-wise they are pushing the newspaper industry to catch up with the rest of the world. Hopefully I will get to consult on some of their future projects.

I decided to strike out on my own and form my own small company, Aona Systems LLC, to follow a dream before it was too late. I have always wanted to have my own small business. Ever since college I never imagined myself working for someone else. I want the freedom to be my own boss and to work on whatever interesting project that might pop into my head.

Aliciana and I have been married for over a year now, and we are starting to feel that ‘itch’ to start a family soon. So, we came to the realization that if I was ever going to try to get a small company off the ground I should do it now, while I still have no one depending on me. We seized the opportunity so that we would never have those “what if” questions in the back of our minds in 20 years. If I fail, so be it, at least I will know what it was like to be my own boss. Life is about the journey, not the destination.

So what is Aona Systems LLC currently up too? The company has 2 major focuses: consulting and in-house product development.

Consulting

In-house Products

I have a lot more products currently in the planning stages. The coming months will definitely be interesting… keep an eye on this blog and the Aona Systems website.