IT Related Articles from G-Net Consulting, Inc.
Browse our collection of code snippets, tips, and tricks we've discovered over the years. Hopefully these will help you as much as they have helped us.
Upgrading to PHP 5.2 on CentOS 5.3
So I normally use CentOS for my linux servers. It's fast, easy, and I like it.
The bad thing about is that it errs on the safe side when it comes to updates. Case in point. I was testing a production site on my development server, when I received the following error:
PHP Fatal error: Call to undefined function date_create() in ...
"What in the world? This is a brand new setup? What did I do wrong?"
Credit card numbers to test Authorize.net with
Recently, I inherited a program that tied into Authorize.net. Without wanting to use my live credit card to test with, I found the following in the documentation:
Visa - 4007000000027
MasterCard - 5424000000000015
American Express - 370000000000002
Discover - 6011000000000012
Using the Visa, the tests worked everytime.
I hope this may help someone in the future.
- Administrator's blog
- Login or register to post comments
Backup Motorola Q Contacts, Calendar, and More Without Outlook
I recently replaced my 2-year-old Motorola Q phone with a new one I bought on eBay. Online, I was able to activate it, and all is well. The only thing I needed to do was get my contacts and calendar off of the old phone and over to the new one. Easy enough if you have Outlook, but I refuse to use it.
So the question raised was how to copy over my data easily without using Outlook?
Turned out, pretty easy. Simply follow these steps (note: this was done in Windows XP):
Windows XP/Vista Install Error 0x0000007B
I have an Acer Aspire 5515 laptop that came with Windows Vista, and I decided to downgrade to XP. I ran a low-level format on the drive, and rebooted, as normal, with my XP install disk.
As the install ran, I received a hardware error, and setup stopped. The specific error was:
STOP 0x0000007B
After trying to fdisk the drive, running GParted, and other options, I finally found a post here that fixed my problem.
Killing background sudo commands in Linux
I have a client I do work for, and they built a script I need to run to do testing. Normally I run the script, and when I no longer need it, I simply Ctrl+C to close it.
Today, I decided to be smart and run the command followed by &, which allows me to run the script in the background. What I didn't realize was that, not having root access, I could not then use the kill command to stop it.