Pink is the New Black![]() Pink is the New Black Variety blog focused on programming, PHP, MySQL, Ruby, and random entries on life and humor. Blog also contains themes and wallpaper Articles
Using PHP to Display Version Info - Part II
2007-10-17 17:18:00 Earlier I showed some examples of commands you can use to pull software versions into a simple PHP script. In the next example I’ll show how to do the distro and kernel versions. I’m sure that there’s a much simpler way to do this (i.e. a simple cat command on the /proc/version ... More About: Info , Display , Part , Version
Using PHP to Display Version Info
2007-10-15 16:38:00 I’ve been working on this application for work that does some simple server reporting, part of which involves displaying the versions of major software running on the machines. The importance of this to me personally is that since we have over 30 shared servers hosting multiple customers, we are continually moving websites between ... More About: Info , Display , Version
Ugh?.CIDR
2007-08-28 09:23:00 I kinda wish I paid attention in class when the professor was talking about CIDR notations and shit…because it would have come in handy tonight. But being that I’m lazy I did some looking around and found that there’s a perl module out there that will convert an IP range to CIDR for ...
The Panopticist is at it?Again
2007-08-27 10:35:00 Just when I though he disappeared for good, our culturally observant (yet sexy) friend Andrew Hearst release some new Magazine covers that are almost as good as the infamous subliminal cocktail featured on Snopes a few years ago. The last time I posted something on Andrew Hearst I had people asking me if I even ... More About: Pano
Size Matters with PHP
2007-08-27 09:59:00 I figured this might be helpful to post since it seems to be a fairly common issue poking up about PHP’s limits in regard to file size. It’s no secret to fellow programmers that PHP is incapable of readily handling files over 2gb on the typical 32-bit system, but others are easily aggravated ... More About: Size , Matters
b2Evolution SMTP Patch
2007-08-08 13:06:00 I was debating whether or not to publish this since I wrote it mainly to target our customers, but I figured it might help someone who needs it. Many hosting companies block PHP mail coming from the user ‘nobody’, which is a default if your host runs PHP as an Apache module. At the ... More About: Patch
Top 8 Hottest Manbloggers
2007-08-07 20:33:00 I got this idea from a comment I wrote about Aaron Brazell in my last post that he responded to, and I figured I it wouldn’t hurt to turn my own blog into a meat market. I know they’re tempting to look at, but who said that hot guys can’t write blogs? Top ...
Top 8 Hottest Manbloggers
2007-08-07 20:33:00 I got this idea from a comment I wrote about Aaron Brazell in my last post that he responded to, and I figured I it wouldn’t hurt to turn my own blog into a meat market. I know they’re tempting to look at, but who said that hot guys can’t write blogs? Top ... More About: Blogg
Sexy Sites of the Week - 8/3
2007-08-03 11:04:00 .::technosailor.com::. I probably shouldn’t list a site that everyone already knows about, but if this blog was a toilet seat, it would be getting a lot of @$$. Not to mention the author doesn’t look to bad either. .::panopticist.com::. It’s been a while since we’ve heard anything from the panopticist, but he’s still the most well-known ... More About: Sites , Sexy , Week
Dun Dun Dunnnnnnnnn
2007-08-03 10:23:00 Just a nice life lesson for my fellow lazy programmers: I was looking at this site the other day in class while I was researching some crap on sub-netting (which is not one of my high points btw) and I noticed an all-too-obvious URL structure that just screamed “hack me! please!” It’s a pagerank ...
Sexy Sites of the Week
2007-07-26 20:57:00 So it’s Friday and I decided to start a new tradition of letting everyone know how much spare time I have on my hands nowadays. Here are the sexy sites of the week: .::0×000000.com::. If I was ever going to pose nude on a website, this would be the one. Well, aside from ... More About: Sites , Sexy , Week
Do I Look Like These People?
2007-07-25 02:25:00 I saw on this one site where you can upload a picture of yourself and it’ll match you with celebrities and stuff. Out of curiosity I uploaded one of my pictures to find out who I look like. If you want your own, just go to myheritage.com More About: People , Look , These
cPanel Backup Cron Support for x3 ?
2007-07-23 03:29:00 Since cPanel 11 came out I’ve been getting a ton of emails from people who are currently using my cPanel Automated Backup script asking if it’s compatible with the x3 theme. If your host is using cPanel 10 or 11 running on monsoon, x, x2, or x3, the script will work. You ... More About: Support , Cron
Installing Sphinx for MySQL 5.1
2007-07-21 21:48:00 This is probably one of the two things that drove me crazy over the last two weeks. The first was trying to get cPanel to stop being such a MySQL nazi, the second was getting Sphinx installed into MySQL 5.1 for one of the clients. I’ve installed it with 5.0 on Ubuntu ... More About: Mysql
Upgrading to MySQL 5.1.20 on cPanel
2007-07-21 02:12:00 If you have server that run on cPanel, you’ll probably know how big of a Nazi it is in regards to the MySQL versions it can run. We just got this new line of servers at work and one of them I was pretty heartset on installing MySQL 5.1, mainly because of its ... More About: Mysql
Drake is a Stalker
2007-07-15 05:15:00 So I talked to my stalker today, but it turns out that he only wanted to ask for directions to my house. I was a little disappointed, but I like to keep tabs on him anways. So far, here’s what I know: - He has a bunny named Roxy (irony at it’s finest, ... More About: Drake , Stalker , Talker
Simple MySQL Search Query
2007-07-04 09:35:00 If you use MySQL to keep a ton of records, it might be nice to be able to search for the particular entry you’re looking for via a simple form on your site. To set this up, we’ll make two scripts — one being the form itself, the other being script that executes ... More About: Search , Simple , Mysql , Query
I?m Lazy
2007-06-30 19:45:00 It seems to be a while since I’ve been actually posting anything, since I’m working 50% of the time and partying the other 50% — that’s almost 100% !!! I also started this new thing where I’m going to try reading more because apparently reading is supposed to make you smart. This was before ... More About: Lazy
Network Admin Sabotage Part I - My Story
2007-06-21 21:15:00 I have a nice little story regarding an incident at my dad’s work where I had a run-in with a particularly nasty and overly conceited Network Admin istrator. Keep in mind that I do not work for my dad’s office, I just do occasional contract work. Outside the Windows 2003 corporate intranet, the Sales ... More About: Story , My Story , Part
Listing IP Addresses of a Server
2007-06-10 08:09:00 I hate using the jarbled output of ifconfig to find out what ip addresses are active on a server, so using this complex command will list all the IP addresses of the server in a nice little list: ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print ... More About: Server , Listing , Address , Serve
I love Sarah Silverman
2007-06-10 07:55:00 Ok, I know, I’m a bit late on this but I just got around to watching the MTV Movie Awards that I taped on DVR last week, and I swear when I saw this I couldn’t even contain myself. I mean, Sarah Silverman must have balls the size of church bells to be ... More About: Love , Sarah Silverman
Creating your Own ?Access Groups? In Linux
2007-05-23 06:46:00 We started cracking down a bit on system binaries being executeable by end users on our shared hosting servers, which consisted of chmod-ing things like ‘wget’ to 700 so only root users have access. If you’re on shared host, it’s likely that you’ve encountered this kind of restriction before, and if you’re a server ... More About: Linux , Creating , Access , Group , Groups
My Pineapple!
2007-05-21 06:15:00 My Good Luck Pineapple broke today and I’m very upset….it’s the very first pineapple I bought when I moved out of my parents’ house three years ago, and it’s been in my freezer ever since. Man, the last time I was this upset was when I bought Capone a fish named Charlie…and then he ate it.
VirtualHost Hacking with Wildcard DNS
2007-05-20 05:41:00 A recent topic in the webhosting business is wildcard DNS. Setting up a wildcard record will allow you to essentially have infinite subdomains all pointing to the same place…. you can try this on my site if you’d like by typing in any random subdomain (like lkjairl.v-nessa.net) and then see if point back to ... More About: Virt , Wildcard
Domain Names that Make you Giggle
2007-05-20 02:44:00 It’s been almost a year since I stumbled upon this article that outlines the top 10 URL flops on the internet. If you haven’t been there, check it out dammit. More About: Domain , Domain Names , Make , That , Ames
Wordpress 2.2 ?Released?
2007-05-16 06:49:00 And I use the word “released” very loosely. Yes, I just upgraded my blog to use Wordpress 2.2 after this guy made it sound delicious. No, I don’t regret it, but I do think it would be best to wait for a bugfix. I shall start with the positives: - It’s optimized a bit more to help your site load faster. This may or may not be noticeable to you, but it probably is to your webhost - It’s harder to break your site by enabling a botched plugin. I tried to enable Staticized-Reloaded and I got what I interpret as the “Wordpress Screen of Death”: This is also a shame because this happens to be one bad-ass plugin. Now for the bad, which outweighs the good: - Don’t be surprised if your plugin database disappears. From some odd reason, Wordpress could only find it after I created a new plugins folder and copied over my plugin files again….and yes, I had to re-enable all 30 of them. - WP-Cache no longer works (at the time of this wri... More About: Released , Lease , Ease
Make Apache Faster
2007-05-10 06:46:00 Apparently someone thinks that my website is too slow in its load time. I never really thought it was that bad, but his little handy danty Firefox plugin claims that it takes my site approximately 6-7 seconds to load initially, which kinda sucks. I know that I’ve written some stuff on optimizing php performance and I tell customers on a daily basis how to keep their sites from bogging down our servers, but I never really cared to optimize my own site because I have a v-dedicated server. So anyways, I’ve made a few modifications to both my site and the server environment to help speed things up a bit. You might want to read my article on Optimizing PHP as well. Enable Compression with Apache If you are running on Apache 2, mod_deflate should already be installed on your system — all you have to do is enable it. I recently downgraded my server back to Apache 1.3.37 (mainly because of cPanel) so I’m using the mod_gzip alternative. Basically, mod_gzip compre... More About: Make , Fast , Aster
Wordpress Plugins That You *Might* Want to Avoid
2007-05-08 06:37:00 If you haven’t noticed that my site’s been down for the last hour, it’s because I activated this mailing plugin that completely messed up my whole site to the point where I couldn’t even log in to deactivate it. It eventually came to me that if I move the plugin file it would ... More About: Wordpress , Wordpress Plugins , Plugins , Want , That
PHP Browser-Based Website Crawler
2007-05-08 04:36:00 I figured out a way to create a php website crawler that can be run via web browser instead of command line. You can use this to harvest links from a website for use in a database or search engine…or to see how easily a spider or bot can creep your site. Try ... More About: Website , Browser , Crawl , Base , Crawler
Fake a 404 to Block an Entire ISP
More articles from this author:2007-05-07 05:42:00 I’ve been getting a sudden influx of traffic so I decided to take a look at my referrer stats, and even though there wasn’t anything blatently obvious out there, I did notice some strange injection-like URL strings coming from a certain ISP. I figured the best way to block them without having to ... More About: Entire , Fake , Bloc , Block , Lock 1, 2, 3, 4 |




