This is a collection of my findings, thoughts, and banters! This web site will contain code snippets, tips to avoid frustrating situations, cool techniques, as well as opinionated ramblings. Stick around and comment or maybe learn something new!

Can't get your Drupal cron job to run?

I spent a little while trying to get my server to run Drupal's "clean up" cron job/tab. I tried many things from linking to the cron.php to trying to copy the clean URL that Drupal creates (/admin/reports/status/run-cron). Well, in any case, I did about 4 minutes of detective work on the Drupal website. In order to get your cron job running (from SSH)
 
Step 1. Login to your server via SSH (Preferably not as root and as a user)

Turn your GH4 drums into a MIDI kit via your Macbook Pro, MidiHID, and SimpleSynth!

Are you one of those people that taps all day on just about everything? Desks, your lap, the steering wheel? Yea, you looked like the type. Well if you happen to have a copy of Guitar Hero 4 and a Macbook Pro, and an Xbox 360 Wireless Gaming Receiver then you are in luck! Here is a full list of requirements!
 
To set this up, you will need:
- A Guitar Hero 4 drum set and/or guitars (clearly)
- An Xbox 360 Wireless Gaming Receiver (Around $30)

New iMac Keyboard Doesn't Have an Insert Key? [FIX]

Well, I was trying to update a list of IPs for work the other day and realized there are iMac keyboards out there without an INSERT key, which makes editing via the VI editor pretty tough! Turns out there's a simple fix for it!
 
Open your file for editing via Terminal.
 
Then,
 
Type the letter 'a' or 'i' !
 
Yea, I know. Pretty simple. However, once you open a file via the VI editor, there are a few hotkeys that can help you out!

Having Trouble With Url Arrays?

Yesterday at work, I was having trouble passing multiple variables through the URL as a $_GET variable. If you're printing (print_r()) your variables and they are just coming out as strings of 'Array', try this:

//first grab the end of string
?var1[]=31&var1[]=57&var2=add $url = $_SERVER['QUERY_STRING']
 
//next use parse_str() to use the url to create the array

Syndicate content