Entries Tagged as ''

Perl on Linux - Bitwise Manipulations

Today’s attention is directed at one of the less well known and certainly one of the least understood and used areas of perl. Although direct manipulation of bits is the only thing that a computer really does, programmatic manipulation thereof has been abstracted out for all but the tasks that can only be solved by its use. Still, there are situations and times when it becomes necessary and proper for one bit to dissolve the logical bonds which hold them to the byte and to assume, amongst the operators and variables of the language, an equal station.
[Read more →]

Cuil? Nah, not so cool.

Brett mentioned Cuil, the next big “google killer”, yesterday and I applaud him for keeping a straight face while typing up his review.  I’ll sum up ‘Cuil’, in my opinion, quite shortly: over-hyped failure.  These days it’s almost ‘fightin words’ to go against the mighty google and there’s a reason for that.  Google is, hands down, the best search engine currently available.  It’s dependable enough to trust when your in-laws call saying they’re on their way over for thanksgiving dinner and you need a turkey recipe that will knock their socks off because you were just going to order a pizza.  Don’t believe me?  The proof is in the pudding:
GOOGLE SEARCH
CUIL SEARCH

Ok, so I broke a few ’search engine rules’ while doing that, but google still got me what I wanted; point made, game set.  Now, don’t get me wrong - I’m not against someone doing a better search engine.  In fact, I’d welcome it.  It would keep the industry fresh and full of new and better ideas.  At the very least it’d revitalize the industry even if it were just for a brief moment.  Cuil failed to deliver.

I understand that almost everyone is ripping on Cuil today, myself included, and the reason is probably a simple one:  We’re disappointed.  Google does, indeed, have the search engine market cornered and that makes a great deal of us just a little worried (*tinfoil hat on* if they can censor searches in china, what else can they censor *tinfoil hat off*) .  I’d actually like to see Cuil get up, dust itself off, and keep at it.  Who knows, maybe one day they will topple google - or at the very least match them.

too cool for Cuil?

Well there is a new search engine on the block. It’s name is Cuil and its built by ex-Google engineers. Similar to Google the initial search page is simplistic and very reminiscent of early Google. I wanted to compare the two though to see what kind of results they return, and that is when the most obvious differences come to light.

[Read more →]

Having fun on a Monday

Ok for a change of pace and a little fun i’m gonna do something different this week. Remember those old school games you played over 20 years ago on the old apple’s? Probably the most popular of game is The Oregon Trail. Well scoping around on line i managed to find an emulator for apple II and quite a few games for it.

[Read more →]

Tail command for windows

The other day, one of my tech friends who is more familiar with linux then I, was talking about being unable to tail log files in windows. A command to do so didn’t immediately come to mind so I got to poking around on the inter tubes for a solution.  As it turns out the tail command isn’t installed by default with windows but is available for download. The Microsoft downloads site offers the tail command with the Windows 2003 Resource Kit along with many other tools for administrating Active Directory, cleaning memory, raid configuration and lots more. I installed this kit and immediately noticed that when I typed tail /? at the command prompt I got an error. This error was due to windows not knowing where to find that particular command, so I had to add its location to my path.  I right clicked my computer and then clicked properties. then I clicked advanced, then I clicked the button labeled “Environment Variables”.  In the section labled “user variable for  myusername ” I first clicked path and then clicked edit. I already had a variable in my path statement so I simply added the path to the resource kit install directory with this

;%SystemRoot%C:\Program Files\Windows Resource Kits\Tools\

then I clicked ok all the way back out, and then tested by typing tail /?  which gave me the syntax to use when tailing a file.

Perl on Linux - Anonymous Hashes, Hash References, and Passing Them to Subroutines.

There comes a time in every perl programmers life when they have to master the hash. Anyone who has programmed in Perl for very long has run into problems such as subroutine arguments getting confusing, lagging programs due to hash tables being copied over and over, and searched for a simpler way to maintain and access data. All this and more can be achieved by the simple use of anonymous hash tables and the passing of hash table references to subroutines for processing.
[Read more →]

Amazon, Tivo, and the Webocalypse.

The good people over at ars technica are reporting a rather neat (or horribly awful, depending on your view) team-up between Amazon and Tivo.  Soon you’ll be able to buy those product placements from your favorite TV shows without even doing an amazon search.  I could see this going one of two ways:  TiVo customers (and impulse buyers) will love it OR it will be the most annoying piece of integrated technology since Microsoft gave us “clippy” the ever-so-annoying paper clip ‘helper’.

In other, non-related news, the times online is reporting the Webocalypse.  Ok, ok, so it’s not really the end of the web, but it’s a start.  Basically google has to give up 12 TB of YouTube user data to Viacom.  Somehow Viacom thinks this will stop people from posting clips and shows on YouTube.  It won’t.  It will, however, give them more information than any possible ‘focus group’ could ever get on the viewing habits of young people.  I’m assuming I don’t even need to mention the privacy issues this action brings up.  Also The European Parliament added a law so each member state’s authorities could determine what software is appropriate for use on the internet.  The article itself is a tad alarmist, but there are some very good points.  I’m wondering how this might influence those of us across the pond.

Desktop cluttered?

If you’re like me you have a hard time keeping the clutter from building up on your desktop. Constantly getting files from friends, downloading things, saving images. Yeah you’ll move a lot of things into nice and neat folders, but there are still a ton of things on your desktop that you want to keep on your desktop for easy access. Well I happened to stumble on this nice little Deskview file that you can download and save it right to your desktop. Whenever you want to use it all you have to do is double click on it. It’ll change all your icons into list view so everything is very small and easy to manage like you see here.

Linux Hosting Optimization - Slow Query Log for Mysql

One of the difficulties found in running a shared hosting environment, or even a dedicated hosting area, is finding out who is using resources and why. Apache running Suexec or some variant thereof can let you know who owns the scripts that are pounding the box. MySQL process are a bit more difficult to analyze. MyTop is definitely an essential tool for seeing who is pounding it RIGHT NOW, but isn’t as accurate or at least helpful in finding routine abusers. Luckily MySQL provides for the logging of slow queries. This is their story.
[Read more →]

PowerShell tutorial part 2.

This weeks PowerShell tutorial covers how to create pipelines and output management. Powershell pipelines are a series of cmdlets that pass objects from one to another. Each cmdlet generates an object and passes it to the next cmdlet via the pipeline. The receiving cmdlet uses that object as input and generates its own object as output. Connecting pipelines is done by using the pipe character (|).

[Read more →]