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
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
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
Ruby Isn?t Too Bad
2007-05-02 11:52:00 I haven’t really had a whole time to play around with Ruby , but I managed to write a little script that I call boobs.rb. It was my attempt to take advantage of Ruby’s ability to define your own functions. Maybe if I’m lucky I would be able to actually define my own bra ...
The Bad-Ass Goon Squad
2007-04-30 03:32:00 I was finally able to get the dogs together to show you why I don’t need to lock my doors at night. They didn’t want to pose nude, but hey, I have a website to run. Click for a larger image: The sexy man on the left is Timber (Pitbull, 90 lbs), ... More About: Goon , Quad , Squad
Mark Zuckerberg is a Buttmunch
2007-04-29 18:02:00 It takes a real ego to turn down $2 BILLION dollars. That’s exactly what Mark Zucker berg, the Founder/CEO of Facebook, did when Yahoo and Viacom offered to buy him out. I was reading this in Fast Company this morning and I was couldn’t believe that two of the largest marketing ... More About: Butt , Berg
PHP 5.2.1 is a Remote Include Hater
2007-04-28 22:34:00 I found this out after troubleshooting a few sites a couple weeks ago. Unlike all other previous versions of PHP, with 5.2.1 you can no longer use a URL to include files, even if you have allow_url_fopen enabled in your php.ini. Just a quickie about what an ‘include’ is, it’s a php function that ... More About: Remote , Hater , Mote
Top 10 Ways Websites Makes Me Suffer
2007-04-25 20:20:00 By: Jason O’Connor I believe some people create and publish websites for the sole purpose of tormenting their visitors. Browsing various websites and navigating the Web can often be like trying to read on an airplane while a kid kicks the back of your seat and the baby next to you alternates between screaming, crying and ... More About: Websites , Make
OneDayBlogSilence
2007-04-25 03:35:00 I received a note from a friend that on April 30th, participating blogs are supposed to do a blank post with nothing but a single graphic, as a way of honoring the people who were shot at VA tech earlier. I’m not usually one to bathe in tragedy after it happens, but since ... More About: Logs , Silence
Happy Birthday to Meeeeeeeee
2007-04-22 23:28:00 Yes, I turned twenty yesterday and my liver is still reminding me. The picture below is really the only one that came out, mainly because the person taking it was the only one who wasn’t plastered. So enjoy it, print it out, tape it to your ceiling, and grab yourself a paper ... More About: Happy , Birthday , Birth , Happy Birthday
Sohosin Will Make your PHP Hard
2007-04-20 13:53:00 I noticed a vague mention of Soho sin on a PHP blog that I read on occasion and I decided to give it a whirl to see if it’s as sexy as is sounds. So far my server hasn’t crashed, so I’m willing to recommend it to anyone who’s interested in hardening their PHP. ... More About: Your , Hard , Will , Make
Optimizing PHP, Revisited.
2007-04-16 14:34:00 I wrote an article a while back on PHP optimization, but it was pretty lacking in most aspects, probably because I’m a lazy poster. I’ve revisited that article and reposted to hopfully have it be a little more helpful on the area. More About: Php , Site , Visi , Visit , Opti
Timing Your PHP Scripts
2007-04-15 14:52:00 This was just a little code addon that I put together as part of a tutorial I wrote on a friend’s site (and copied on mine) about PHP optimization. Added to a page on your site, it will calculate how much time it took for a page or script to execute using PHP’s ... More About: Php , Scripts , Script , Your , Ming
13 Sexiest Wordpress Plugins
2007-04-13 11:31:00 I decided to post a list of the Word press plugins that I’ve found to be the most useful, a majority of which I use on my own site. More About: Wordpress Plugins , Press , Plugins
This Comic Might be Dirty
2007-03-23 06:55:00 YBNBY just posted a list of the top ten most subliminally dirty old comic book panels. If you ask me, it looks like the authors of these comic books were trying to be obvious without looking like they were being obvious. It’s kind of like driving down the boardwalk blaring Celine Dion and ... More About: Comic , Dirty , This , Dirt
Firefox is a CPU Molester
More articles from this author:2007-03-22 05:06:00 XP and Vista users, you might want to hold off on the new Fire fox 2.0.0.3 update until it gets neutered. Yes, Firefox violated my CPU today. No, not once, but 12 times. Yes, 12 times in the last half hour. Talk about stamina. My poor AMD now has performance ... More About: Este , Mole , Lester 1, 2, 3, 4, 5 |




