In this post, I’d like to do two things. First off, I want to plug a really cool site called PortableApps.com that has some really cool software in the form of … well, portable apps. What these are, are common widely used applications that have been transformed in such a way that they can run right off of your thumb drive, no install necessary, hence the term portable. They have lots of cool stuff that you can download, absolutely free, and use right off your thumb drive, or hard drive, or anywhere really. It’s nice being able to have firefox and open office (and much more) with you, no matter where you go, even with all of your own settings and customizations. That’s hard to beat! Go check it out, you won’t be disappointed I am sure. Continue reading
Comcast and a P2P Bill Of Rights?
“Comcast has just announced its plan to lead an industry partnership in the creation of a “P2P Bill of Rights and Responsibilities” that would apply both to users and to ISPs.”
This is an article about Comcast and their efforts to create this so called Bill Of Rights for P2P traffic. I would say that in light of continuing legal trouble over Comcast and their throttling of P2P traffic, this is a shuck and jive maneuver or PR stunt. But, that is just my opinion. I wonder if any “users” will actually get to help write this thing? Yeah, right.
SmoothWall 3.0 Released
Also known as, the best little firewall in … well, anywhere! I have been using SmoothWall (the free, open source version) for years. I have used it with modems for dial-up access, as well as with cable and DSL connections. It’s a great product that is robust, feature rich, easy to manage and above all, very secure.
Not familiar with SmoothWall? Read more at http://www.smoothwall.org
I used to run an ISP and the majority of our customer base were dial-up customers. Even now, there are a majority of dial-up users out there still. SmoothWall is a great tool for dial-up users because it is essentially a hardened Linux distribution built solely to be a firewall/router. The IP stack in Linux is more efficient and much faster than Windows, so even on dial-up, you will get a performance boost running SmoothWall, plus the added security of a top notch firewall.
For all of the broadband users out there, you will get a tremendous performance boost when comparing it to the White Box store Linksys products. I am not knocking Linksys or anything like that, but in my own tests, I got almost double the throughput from my SmoothWall box versus my Linksys router. Plus, the SmoothWall box has loads more features and version 3 has even more piled on.
With built in features like this:
- Bandwidth usage graphs
- Transparent caching proxy server
- VPN support
- Anti-virus scanning of incoming pop3 email
- Dynamic and static DNS support
- QoS and more
There are really tons more features than I can list here, the ones listed above are just some highlights. Best of all, this wonderful product is free. Yep, that’s right, free. They do have commercial versions if you have a need for that, but they still maintain the open source GPL release that is absolutely free. So, all you have to invest is the cost of an old low powered pc that has been laying around the house anyway! 🙂 I very highly recommend you check it out if you have a need for a good firewall product.
WordPress 2.5 Is Out
I wanted to write up something about the latest WordPress release, version 2.5. I have updated all of the WordPress powered sites that I manage which is more than ten and the upgrade went flawlessly on all sites. Each upgrade was the same, no variances. Why do I mention this part of the process? Well, because I have seen many instances (*cough*Win*cough*dows*cough*) where the same upgrade went very differently (and sometimes even failed) on different computers, even though they had been built or imaged or the application installed off of the same baseline. So, when I can install all of the WordPress upgrades and every one of them not only works, but operates as expected, that’s a big deal to me. This has been the norm in the past as well, not just in this last upgrade. Continue reading
MySQL and the dreaded Error: 1251
Recently I ran into a situation when upgrading from MySQL 4.x to 5.x on a dev box of mine. I actually ran into this a year or two ago too, but I forgot to document it (I know, I know) and so I didn’t remember it. I thought I would post it here now to share with all of you in case you run across it yourself. Once the upgrade was done, the application that connected to the database would connect no longer. I kept getting authentication errors no matter what I did. This was a fresh install, I just imported MySQL dump files for my databases, so I thought it was a setting or something that I had forgotten. I checked everything out and could find nothing wrong with the settings, user accounts, passwords, you name it. The app I was launching ran on Windows (specifically, this is my EQEmu server, check it out daBoneyard), and it’s a console app so the Dos window flies by and I hadn’t seen the error message. Finally I decided to put a pause in the batch file and see what the heck was going on. It was then that I was presented with the following error:
PERL Round Function
Hey all your PERL junkies like me, I have a present for you. Anyone that has done any coding at all other PERL will know (and miss) the round function that most other languages have built in. For those that may not know, the round function lets you do just that, round a number to the specified digit. So, instead of having to use 3.14159265 as an answer for a particular equation, you could round it to 3.14. Nice, huh?
Well, here is a neato little round function that you can drop into your PERL scripts and call to actually round numbers instead of cutting them off with ceil or cut. Check it out:
sub round {
my($number) = shift;
return int($number + .5 * ($number <=> 0));
}
There you go!
**Update**
Thanks to Thierry H. for adding a little mod to the round function allowing you to specify the number of decimals to print. Here is the modified function:
sub round {
my $number = shift || 0;
my $dec = 10 ** (shift || 0);
return int( $dec * $number + .5 * ($number <=> 0)) / $dec;
}
You would call it by giving not only the number to round, but how many numbers to show on the right side of the decimal. It will look like so:
$result = round(123.4567,3);
This should return 123.457 (the 6 in the third slot gets rounded to 7). There ya go, thanks for the mod Thierry! You can check out Thierry’s site here.