Google Web Toolkit

June 28th, 2009


I may be a little slow finding somethings but for all you others out there that haven't heard of Google Web Toolkit check it out. GWT allows web developers to write rich UI applications in pure Java and then compile them to Javascript for the web.  Google provides a very nice tutorial that walks developers through writing a stock watcher application. GWT comes complete with it's own Eclipse plugin and Google Apps integration.  After just finishing a Java class for my associates degree I was able to follow the tutorial with ease.

Ubuntu Is Returning

April 14th, 2009


I have been incredibly busy the past several months with school and work. I highly recommend not trying to complete 20 credit hours in a semester and working at the same time. It will really take it out of you. During this time I have been taking a java class for my major and for the first formal approach to object oriented programming I must say I am impressed and am looking forward to the following semester of advanced data structures.

Ubuntu 9.04 is releasing soon. To be honest I have been running windows lately because of software I need for classes is meant for windows and I have not had the time to get it working on linux and my Ubuntu box decided to start lagging to the point of not being able to use it ever since I installed Google desktop. I haven't had time to fix it so I have temporally been using XP.

I am glad to be taking part in the suspend resume test for Ubuntu as this had been a huge problem in the past.

Eucalyptus caught my eye for cloud computing because I have always been interested in super computing and clusters.

The improvements to display preferences seem to be a nice addition so long as it works well. Normally I use the Nvidia control panel anyways but having a built in one that works excites me.

Over all I am excited for the next release of Ubuntu and  will hopefully be able to upgrade next weekend.

My New Toy

October 31st, 2008

I was recently given a Cisco Catalyst 6500.  The obvious question is "what the heck do I need a Catalyst 6500 for?"  To be honest I still haven't figured that one out but I have one.  I received the catalyst from my school that originally got it from a local power plant that was getting rid of it.  The catalyst only had two supervisor modules and no switch modules so it was essential a very heavy box that could not do anything.  I shopped around on ebay and snatched up a 48 port switching module for only $10 ($23 w/ shipping).  Due to my inpatients I didn't want to wait and try to find a power cable so I cracked open one of the power supplies to hard wire one in.  I could quickly tell this was not going to be easy so I went the the simplest and possibly most dangerous route possible.

I took a computer power cable snipped the end that plugs in to the computer and hard wire it to the plug.  Do note I just wrapped the wires around the prongs and they are not secured in anyway.

I fire it up and the switch module works great.  One of the supervisors can't find it's IOS but the other one boots up fine and it works perfect.

I now have the biggest, heaviest, and most dangerously wired 48 port switch ever.  Unfortunately it won't be making it to many LAN parties.

Ubuntu Fedora Swap — Part 2

October 21st, 2008

Yesterday was the one month point from when I paused using Ubuntu and started using Fedora.  In all honesty I have come to notice that on a day to day basis the only things I use on my workstation are ssh/scp, Firefox, rdesktop, and vi.  It became clear rather quickly that adjusting would not be as hard as I thought.  I have chosen to revert back to Ubuntu.  Following will be the goods and the bads of both fedora and ubuntu.

Fedora
Pros:

After I installed proprietary video drivers AWM actually worked.  The use of appelets quickly turned into hell on earth but that is not fedoras problem.  To be honest I kinda like the OS-X feel with the dock.

The boot loader control panel under system >> administration >> boot loader was a nice little tool I am not used to having.

The firewall control panel under  system >> administration >> firewall was also a change for me.  I generally use iptables in the command line or install firestarter.  Having a pre installed firewall gui configuration tool was useful from time to time.

Cons:

No package for nvidia proprietary drivers that I could find worked. Had to download install from nvidia and compile own kernel module.  Just a little bit of a pain.

For some reason 1 of my 2 22in.  wides creen monitors is blurry from time to time with no real explanation.  This never happened in ubuntu.  I did find out that only using one monitor reduced blurryness but did not completely eliminate it.

I'm sure this is true on more than just fedora but common commands are not accessible without typing /sbin/[command].  This seems like a very small thing but I don't always rememeber to try and type /sbin/ in front of a command that it says doesn't exist.  Therefore I get angry that I can't find the command and waste time looking for it.  I know there is a way to set enviromet paths but I have never really gotten around to learning how to do this because I have never needed it.

Ubuntu

Pros:

Restricted driver utility works great for wifi and video card drivers.  It makes life much easier not having to compile your own kernel modules and all the other tedious tasks involved with having to install drivers manually.

Neither monitor is blurry.

Sudo is configured by default for the user that installs the system.  Even though configuring sudo is not hard by any means it is convient to have it already done for you.

Cons:

Lacks some of the advanced control panels such as boot loader, selinux, and firewall by default.

AWM does not work at all.

Final Thoughts

Ubuntu is geared towards ease of initial setup and completeing everyday tasks.  Anything above and beoynd what a normal user would do on a day to day basis is going to require command line knowledge.   At the same time Fedora seems to be the exact opisite.  Everyday tasks are still easy and more advanced tasks such as managing firewall and security through selinux are also easier.  Initial setup on the other hand requires a little bit more work.  Even though I plan on rebooting back into ubuntu when I finish typing this if I was forced to use fedor I would not have a problem doing so. On top of that anything is better than Microsoft Vista.

Python Profanity Filter

October 11th, 2008

PyProfanity is a small program I whipped up to be used by a clients guest book posting routine.  The whole point is a simply way to prevent guests and spammers alike from posting profanity and sexually explicit content in their messages.  I have set up a simple cherrypy app here to allow people to try it out and help me add to the wordlist.  I have access to a log that lets me see everything tried so I can see how effective it is.  Anyone is welcome to test. The code is simple enough to post directly on here so here it is.

  1. import re
  1. class ProfanityFilter:
  2.  
  3. def readProfanities():
  4. profanities = []
  5. file = open('wordlist','r')
  6. for line in file:
  7. line = line.strip('\n')
  8. profanities.append(line)
  9. return profanities
  10.  
  11. profanities = readProfanities()
  12.  
  13. def replaceProfanity( self, query ):
  14. for w, profanity in enumerate( self.profanities ):
  15. replacement = ''
  16. for c in range(len(profanity)):
  17. replacement = replacement + '*'
  18. p = re.compile(profanity , re.I)
  19. query = p.sub(replacement, query)
  20. return query

For obvious reasons I am not going to post contents of 'wordlist'. If you would like a copy of it send me an email.

Suggestion and improvements are welcome.