Friday, October 17, 2008

Creating a simple GUI with PyGTK and Glade

I found this great article on pygtk.org on how to create simple GUI applications with glade to be used with python and pygtk. This article is very straight forward on how to make a simple HelloWorld GUI application with two widgets. If your used to developing Visual Studio .NET GUI's or are looking to develop GUI for multi-platform then you need to check this out. This is a good start. Before I read this I tried to use glade, but everything is so different than VS.Net that I didn't get anywhere. Now that I read this all makes sense. Also If you are creating applications with wx, you can use wxGlade to make GUI for you and use the same way. Python Rocks. Enjoy.

http://www.pygtk.org/articles/pygtk-glade-gui/Creating_a_GUI_using_PyGTK_and_Glade.htm


On Ubuntu, you can install all things glade like this:
apt-get install `apt-cache search glade|awk '{ if ($1 != "glade-gnome-2" && $1 != "glade-2" && $1 != "glade") print $1 }'|xargs`

Thursday, October 16, 2008

Are you Blocking ipv6 traffic on your firewall?

New articles are up on uninformed. As always it is a good read. Especially an article from H D Moore (Creator of Metasploit Project) on ipv6. Check it out.

NOTE: On ubuntu ufw doesn't block ipv6 traffic by default and yes, ipv6 is enabled by default. :)

To disable IPv6 on Ubuntu Linux, open /etc/modprobe.d/blacklist in the editor of your choice and add the following lines to the end of the file:

# disable IPv6
blacklist ipv6

Now reboot for changes to take effect.

Wednesday, October 8, 2008

My Templated Modulated CMS

Are you looking to develop a site for a client? No problem, You can use Codeigniter and a few modules to create a Templated Modulated Content Management System. With Authentication, Authorization, Crud, Modular Extensions ,Smarty Template System and my Environ Library(smarty-hmvc-environment-variables).

This environ library holds the state of your templates, where the templates come from and the content there in. Settings can be stored in files or mysql.

It parses CodeIgniter View Syntax on top of smarty. This is freakin' Awesome. I shit you NOT. (Pardon my lang)

The thing is that it has so much power that it tends to make your code messy. Because there are so many ways to access the data. But if you have good separation via directories and or symlinks, it will be very nice.

If you have to backup or move the app to another folder/server you will have problems propagating the symlinks. I'm sure there's a better way to accomplish this aspect of the application base layer.

You can add custom functions to smarty it's not hard.

If you use Dreamweaver or are used to a certain syntax highlighting of some sort you can make all smarty code start with

Linus Torvalds Blog

Linus Torvalds now has a blog. Check it out. You might learn something. It only has a few posts. But what he writes about is really good.

torvalds-family.blogspot.com/

In a post Linus writes how he wrote a tool to limit his kids' computer usage. You can find the project here:
http://git.kernel.org/?p=linux/kernel/git/torvalds/tracker.git;a=summary

It's very interesting to see how a project evolves in open-source . I especially learned a few things from this. One being how to write c for python. Two, how easy it is to use gtk. Three, gtk library doesn't make pyCrust crash, unlike wx. yippie. This is pretty sweet. Definitely a great read. Thanks -A

Tuesday, October 7, 2008

USB Serial Adaptor Schematic

I just found an interesting site with schematics for RS232 to usb converter cable(keyspan). Amongst other things, pinout. I was actually looking for something to assist me with one of my usb stick soldering projects. I guess I'll have to keep looking. This is pretty interesting stuff though and I couldn't refrain myself from posting it here. I hope you enjoy it as I have. It is no doubt useful to someone. Thanks dudes at pinouts.ru

Monday, October 6, 2008

palette on google maps

This color palette can be had from Google Maps at these coordinates:

5°5′28.85"S 81°7′36.44"W



I originally found out about it from another blog. Not sure where at the moment. Figure I'd share it with my faithful readers :) Have a great day. -A

Saturday, October 4, 2008

stdout_colours.py update (now with example)

I've updated my stdout_colours.py library. You can now choose whether to display colors and caller/caller function output. I also added an example. It's not a simple "Hello, World". I decided to use one of my urlpacker (Borrowed From Somewhere on the internet)scripts to show you how stdout_colours can be used in your classes and function.

Take a look at the project located on Google code.

code.google.com/p/python-stdout-colors/





It is good for a app that gives alot of output to the terminal. Your eyes will pick up color faster than they will black on white text. It is something I add to all my projects now. For easier output representation. Enjoy it. It's really cool.
Please post any modifications that you make as a courtesy. I would greatly appreciate it and would like to improve this lib with a dozen more features/functions. So far it gets updated on a project need bases. If it's good, I use it in future projects. The usual drill. Tell me what you think.

Thanks, -A

Friday, October 3, 2008

PyCrust - The Flakiest Python shell

Python Namespaces:


CallTips:


AutoComplete Objects:


Download PyCrust - The Flakiest Python Shell at sourceforge.net/projects/pycrust/ It's really nice. It has alot of features that let you see into loaded python object. Although when I imported wx and tried to view the loaded details it crashed. As the name implies that was pretty flaky. Try importing sys or os libs and see for your self. This tool is good to have in the toolbox. Thanks. -A

EDIT:
You can also checkout SPE(Stani's Python Editor). apt-get install spe

Micro$pft Surface

Thursday, October 2, 2008

Dell's IdeaStorm

Here's a nice site to place your ideas in regards to computer software/hardware in Dell Computers. Register for an account and Promote some good ideas as well as add some of you own. Please do this. Thank you.

ideastorm.com/

A programmers comic site. Very Nice. I like. Built on CI.
robotpony.ca

Here's a taste.



HAHA, My Favorite. :)
Top 11 booleans used in enterprise architecture




A day in the life of a programmer




The land of the zombies







Last Minute Code Changes




I found this on indexed.blogspot.com



Enjoy. -A