Archive for the Python Category

I am fortunate enough to enjoy learning. I should rephrase that as: “I am fortunate enough to crave learning in order to help others.”

Being in higher education has, in my opinion, shown that there really is a need for all this debt that students rack up. I chose to post something to my blog and share it with the class to show part of my Idealist life. I leave all of my posts open to comments and choose to moderate them due to spam alone. I have deleted a couple comments these two years, not due to them disagreeing with me but due to the comment being inappropriate.

For my choice of further resources I could use to improve my grammar, I chose http://www.dailygrammar.com/archive.shtml . I found that out of all the choices, it would prove the most useful since I could easily use it with an iPhone app called gFlash+ . The best thing is that you do not need an Internet connection to use it, so you can be in the middle of nowhere (aka 2 miles out of town in WV) and take a quiz where you will not accidently see the answers. The simple format of questions and answers could be easily manipulated into the template spreadsheet using the programming language Python.

I have used gFlash+ while standing in line at the store, waiting for a customer to finish talking on the phone or while waiting for someone to give my car a jumpstart. So far, I have just used it as a quiz tool for learning new words but dailygrammar has such a common format for answers that I can program a macro to split and copy/paste entire blocks of answers.

I intend to do such a program and enlist my wife to help me, since she is starting school soon too.

I’m a Python developer, dabble in Ruby, run FreeBSD on over 20 machines, plus I like to boot Ubuntu once after Saturday in order to still prove that Linux trumps Windows any given ‘Sunday’.

When I see articles like this on parallelism, I wonder if they really know why there can’t be more split work on threading. Intel given compilers aside, there is only so much extra work that can be divided among threads before there is too much overhead involved in the processing of said work.

In the end, you can call octacores the end of all, or you can wonder what the world will be like when you have 200 terabytes on board, with your 80 core machine running on an 8 gigabit connection. We simply don’t know what to split all those tasks into, let alone the system being able to reach any efficiency about it.

That’s what I’m calling the future of computing, since most people consider the future  to not even include small time computer makers. The changes going on in the Industry are new, but the same old thing all over again.
Your local computer store wants to make you pay up to 40% markup, and in some cases 100% markup to just cover warranties that, if they priced their machines lower, and sold more machines, would barely need to cover labor not parts. This type of behavior precludes the local shops from selling machines, at great insistence that the bigger guys make it impossible to sell a complete computer system.

Sun on the one hand would love to sell you a network computer, aka a thin client so that there is no need for you to have a hard drive or for that matter, even a multi-core machine. The reality is that any type of network computer such as that will require a fat pipe to allow multimedia or data intensive applications to run.  The soothsayers would love to tell you that this is where computing is headed, but in reality it’s going in a different direction all together. (I simply cannot imagine a screen being updated 180 frames per second accros 8 monitors)

Intel is demonstrating that teraflop performance is at the desktop very soon, with technology, that they announced today would be going into new processors. Larrabee is the name of the technology that will enable processors to actually manage up to 80 cores, and do it with an amazing amount of power savings.

At the Intel Developer Forum today, the Chief of server chips, Pat Gelsinger confirmed the design, and saying that ” It will be many cores and you can expect that different versions of the processor will have varying numbers of cores.” He refused to elaborate on any of the new products, but simply stated that they will provide at least a teraflop in processing power.

Pat went further to actually demonstrate an 80 core unit, and then wowing at least me with the ability to reach 1 teraflop with 46 watts, which is no small feat. Pat also noted that not many coders have the required skill set to craft an application that would take advantage of so many cores.

I for one welcome the impending 80 core chip, as such, having the chip in sufficient quantities will allow coders, such as myself, the ability to dive deep into multi threaded design of any application. Applications such as Pygame could no doubt spawn threads that would run across multiple cpu’s and then allow many many more sprites to run at the same time.

So you do some coding with php, html, perl or maybe even some ruby from time to time.

The oddest thing happens to you when you look at macs… you get all weak in the knees, because macs have the coolest application for coders like you. You know that having a mac means all sorts of things, mainly being that you are stuck in an upgrade cycle for years to come. Selling off your kids is not something you’d like to do, and your cat would like to stay out of testing facilities.

In short, you are not getting a mac, or you’ve had a cheap one and it just didn’t fit the bill with the copy of osx you put on it. You know textmate will make your life easier, but the price tag on the computer is what kills it for you.

The simple answer now is: http://e-texteditor.com/index.html

The slightly longer answer is here: http://garbageburrito.com/blog/entry/391/a-macesque-rails-development-environment-on-windows

Useful turbogears

http://www-128.ibm.com/developerworks/linux/library/l-turbogears/index.html

Just /. today, very good read on python/turbogears

Criminal Coders

http://news.zdnet.co.uk/business/legal/0,39020651,39270045,00.htm

I personally think python could be clumped together in this sort of a mess at some point. Perl of course is used in all sorts of “POC”’s that would allow an attack. (Proof Of Concept).

I can’t count the number of servers I’ve personally scanned just to see how bad a problem is. It does make you feel slightly better to scan a few hundred servers, see that there is many more targets than just you.

That of course doesn’t cut it anymore, since bot-nets want hundreds, (of thousands) of innocent machines to do their dirty work.

I looked and it doesn’t exist

Looks like the only way to get pexpect functionality in windows is to just plain write your own.

I love pexpect http://pexpect.sourceforge.net/ but there just isn’t any win32 functions that work from what I can tell.

So it’s either cygwin/ming32 to the rescue, or just deal with the problems only on a unix host.

It’s new and it has potential

Well, this is my third attempt at a new technology blog, that will combine all the wit that I have, with the 30 firefox browsers I have open all day.

Somewhere in the mess that I’ll be involved in will have some secure shell code, bash and a touch of python in there too.

I’ve tried to do many blogs in the past, but maybe it was the various other blog tools that I tried, they just didn’t make it.

I’ve done so many epinions articles I can’t believe it, and even made some money off of them too. I’m ready to join the ranks, and finally make a blog that people can read many days in a row.

I hope you enjoy, if you’ve managed to find my island.

There can only be more than one

http://www.turbogears.org/preview/docs/tutorials/todolist/

If the old tutorial wasn’t good enough, and I don’t think it was, this one is probably better for everyone.