DirectoryInternetBlog Details for "Pink is the New Black"

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: 1, 2, 3, 4, 5

Articles

How to Add Services to Chkservd
2008-01-29 02:45:00
Chkservd is the service in cPanel that checks to make sure that services are running, then restarts them if necessary. It’s also responsible for the ‘Service Manager’ section in cPanel, which is an interface where added services can be easily checked on and off. To add a new service, create a line in /etc/chkserv.d/chkservd.conf in the ...
More About: Services
Fedora Chokes on Firefox
2008-01-17 18:17:00
We use Fedora in my Linux classes at school, so I was equally pissed off of when I found out that the stock firefox installation doesn’t support ssl…in other words you can’t get to secure pages. Since the entire schooli ntranet is on a secure connection it pretty much sucks when you can’t access ...
More About: Firefox
Creating and Installing an SPF Record
2008-01-09 19:36:00
Have you ever received a bounce for spam that was sent by you…only it wasn’t sent by you? Email spoofing is one of the easiest concepts to understand for us, but the hardest to explain to end users who confuse spoofing with email hacking and hijacking. The way I explain it to our ...
More About: Creating , Record , Cord
The [pretty much] Complete Guide to Installing ffMPEG and Audio Binaries
2008-01-07 19:39:00
I know you’ve provably seen a lot of guides on how to install ffMPEG, but I’ve noticed that most of them are incomplete and don’t cover the possible issues that can arise during installation. I’ve installed ffMPEG on dozens of servers and have devised a standardized procedure on what I feel is the best ...
More About: Audio , Guide , Pretty , Complete
Christmas Party Pics
2008-01-02 02:03:00
I know, I know, I took forever posting these after filtering out the ones that were NQSFW.  I hosted a Christmas party at my house last week where my sister was the designated photographer, so you can see the pictures she took here. p.s., don’t ask me any specifics…I wish I could remember the context of ...
More About: Party , Christmas party
Moving Towards PHP 6
2007-12-27 07:13:00
Back in the day I posted my horror of upgrading my server to PHP 6.  You might as well face it — PHP 5 is going to be dead in a few years just like PHP 4 is now, so it’s a good idea for all you programmers and server admins to start making your ...
More About: Moving
Working with Permissions in PHP
2007-12-21 03:01:00
PHP uses the same command as *nix systems when dealing with changing permissions for files: chown - changes ownership, but can only be done by a root user chgrp - changes group ownership, can be done by a user who is a member of the new group chmod - changes permissions, can be done by the user (and ...
More About: Working , Workin , Missi
How to Rearrange Your Package
2007-12-20 07:35:00
For some odd reason, Ubuntu and other Debian-based distros don’t like the standard x86 RPMs that most vendors package their software in. If you want to install a third-party RPM, you have to use alien to repackage the RPM into a .deb file before you can install it: sudo apt-get install alien alien -k your-rpm-file.rpm This will ...
More About: Package
Whitespace is Evil
2007-12-19 07:23:00
I have this recurring nightmare of PHP apps that don’t trim whitespace when entering info. As a habitual copy and paster, it would be nice if some programmers could tend to my laziness and reluctance to type. Yes, Tony, I’m talking about you. Ever hear of the trim() function? Yea, it’s ...
More About: Evil
More of Using PHP for Server Info
2007-12-17 06:53:00
I’ll eventually get the whole thing up here, but I’ve been working on a simple server info script to help me and the other members of the system admin team keep up with the gazillion servers we have and all their different configurations. One of the reasons it’s taking so long (aside from my ...
More About: Info , Server , Serve
Importing CSV Into MySQL
2007-12-08 22:53:00
The newer versions of phpMyAdmin for some reason no longer include the option to import CSV files. If you are trying to import an Excel or other delimited file, first make sure that it’s in CSV format (with Excel you can export it as CSV). Then log into phpMyAdmin or your MySQL prompt ...
More About: Mysql
Common PHP Errors
2007-12-08 04:44:00
I’m going back to the basics here, you know, when you wrote your first PHP script and saw an ugly-ass error message pop up on your screen? Error messages are the best tool a programmer has. Set up Error Reporting Most PHP errors are straight forward, but there are times where you don’t see any which ...
More About: Common , Errors
Convert Database to UTF-8
2007-12-07 04:25:00
We seriously see a ton of customers coming in with the type of databases that are a nightmare to move over. When you’re dealing with special characters in a database, you have to make sure that the charset and collation are dumped *with* the database, so that when you move it to another server ...
More About: Database , Convert , Vert
Using an .htaccess with PHP Compiled as CGI
2007-12-07 02:57:00
We recently started installing suPHP on a few of our servers, which is an implementation of phpsuexec, only a ton faster and with less overhead. Yesterday I posted a tutorial on how to install suPHP on a PHP5/Apache server outside of EasyApache, but today I shall go over how to enable PHP directives in ...
Interactive RoR Tutorial
2007-12-06 04:24:00
So it’s official, I’ve started my Ruby programming classes in school and I’ll finally be able to see what it can do.  We started offering Ruby on some of our servers here and we’re all learning a little bit about it before we start offering it on our mainstream hosting…because you have to have at ...
More About: Tutorial , Interactive , Interact
Installing suPHP on cPanel
2007-12-06 04:07:00
I wrote this tutorial a while back and figured it would be good to post because suPHP is growing more popular as an alternative to phpSuExec. The instructions assume that you are on a Linux cPanel server and are familiar with how to install PHP, but do not want to use EasyApache’s suPHP installer ...
SHOUTcast is Soooo Easy to Install ? Are You Kidding Me?
2007-12-05 04:38:00
It surprises me how often people get nervous over installing things just because it’s new to them. The other day I had a guy harass our technical support for 20 minutes on the phone because he was wanted to install SHOUTcast. Honestly, before then I had never installed SC simply because I don’t ...
More About: Kidding , Easy , Shoutcast
Upgrade to Subversion 1.4.x on CentOS
2007-12-04 21:57:00
I don’t know if it’s just me, but it seems that CentOS is kinda slow with their software updates. It’s not too big of a deal since CentOS is based off of RHEL so you can usually use RHEL 4-5 RPM’s, but those usually bombard me with failed dependencies. I find that the ...
More About: Subversion
How to Upgrade PHP
2007-12-04 18:21:00
Whether you compiled manually or with EasyApache, running a PHP upgrade from a previous version is super easy but also one of the most common questions I get. There are 3 likely assumptions about your current environment (specific to Linux servers, sorry Windows users): 1. You are running a cPanel server and have PHP ...
Capone Goes to See Santa
2007-12-04 01:58:00
A lot of my friends have kids, so this year when they all wanted to go to Lynnhaven Mall to get their kids some pictures with Santa I felt a little left out. I really have no desire to ever have kids, nevertheless to take them to see some creepy old man who likes ...
Google Wants to Be the Next God of the Universe
2007-12-02 19:22:00
I thought this was too shocking to be true but the other system admins confirmed it - Google officially wants to be the next god of the universe. The datacenter that houses over a hundred of our servers also caters to some of Google’s servers, and apparently Google also owns part of the building ...
More About: Universe , The Universe , Univers
Massive Upgrade Time
2007-12-02 04:33:00
I decided to stop being lazy and get around to those upgrades I needed for my site and server: - Upgrade PHP to 5.2.5 and Apache 2.2.6 (was running 5.2.3 and 2.2.4) - Upgrade Gallery2 and the WPG2 plugin for Wordpress - Upgrade Wordpress to 2.3.1 First, I should admit that I do use the EasyApache installer ...
More About: Time
MX Validation in PHP
2007-12-01 06:16:00
Hosting companies have all kinds of tactics to keep spam away from their customers, but one very common complaint I get is the amount of spam coming in through contact forms. Even though we don’t allow ‘nobody’ mail through the php mail() function and we provide the best server-side spam filters available, local ...
More About: Validation , Dati , Vali
GRUB Errors on Windows Dual Boot
2007-12-01 04:24:00
I don’t want to admit that I still have PC’s that dual boot Windows XP and Vista, but given the occasional problems I have after Ubuntu and Fedora updates I’m not ready to give them up yet. Some time in the middle of the night last night my laptop, which used to dual boot ...
More About: Errors , Boot , Dual
How to Upgrade to a Non-Existent MySQL Version
2007-11-29 04:22:00
Working in webhosting for a while now I’ve had some people ask for really weird shit, and I’ve dealt with a lot of people who try to sound a lot smarter than they actually are (I’m one of them). The latest of the bunch is a guy who asked for MySQL 7.0 claiming ...
More About: Mysql , Version
How to Upgrade to a Non-Existent MySQL Version
2007-11-29 04:22:00
Working in webhosting for a while now I’ve had some people ask for really weird shit, and I’ve dealt with a lot of people who try to sound a lot smarter than they actually are (I’m one of them). The latest of the bunch is a guy who asked for MySQL 7.0 claiming that ...
More About: Mysql , Version
How to Commit Genocide on Annoying Processes
2007-11-22 03:20:00
A few days ago I came across some processes on one of our servers that just wouldn’t die. Even after doing a kill -9 and all that good stuff, more would just keep spawing until there were dozens running on the machine. A head system admin of ours gave me this command, which ...
More About: Genocide , Processes , Anno , Annoying
How to Commit Genocide on Annoying Processes
2007-11-22 03:20:00
A few days ago I came across some processes on one of our servers that just wouldn’t die. Even after doing a kill -9 and all that good stuff, more would just keep spawing until there were dozens running on the machine. A head system admin of ours gave me this command, ...
More About: Genocide , Processes , Anno , Annoying
A Simple Way to Save Bandwidth in PHP
2007-11-18 15:05:00
If you were ever looking for a quick and sexy way to save bandwidth on your PHP-based porn high traffic site, all you have to do is add these two lines to the beginning of your PHP scripts: <?php @ini_set(’zlib.output_compression_l evel’, 1); @ob_start(’ob_gzhandler’); ?> This will automatically tell the server to compress the PHP page before sending it to the browser. ...
More About: Simple , Bandwidth , Save
A Simple Way to Save Bandwidth in PHP
2007-11-18 15:05:00
If you were ever looking for a quick and sexy way to save bandwidth on your PHP-based porn high traffic site, all you have to do is add these two lines to the beginning of your PHP scripts: <?php @ini_set(’zlib.output_compression_l evel’, 1); @ob_start(’ob_gzhandler’); ?> This will automatically tell the server to compress the PHP page before sending it to the ...
More About: Simple , Bandwidth , Save
More articles from this author:
1, 2, 3, 4, 5
111680 blogs in the directory.
Statistics resets every week.


Contact | About
© Blog Toplist 2012 - Supported by Web Catalog - SEO by FeWorks
eXTReMe Tracker