Accutane WordPress Hack

If your wordpress site is showing “Buy Accutane Online” in the Google Results, it’s because one of the plugins you’re using is not safe. One plugin know for this exploit is the “My Page Order” plugin by geekyweekly.

I’d suggest removing the plugin all together. You’ll notice that the source code is clean, if you view it, as the plugin only affects the page when the Google bot is viewing it.

The function is using two strings of binary character values:

$unique_id = "\x62\x61s\x65\x36\x34\x5f\x64\x65c\x6f\x64\x65"
$unique_hash = "\x63\x72e\x61\x74\x65\x5f\x66\x75\x6ec\x74\x69\x6f\x6e"

Those translate into base64_decode and create_function respectively, which are two functions you don’t want to see in any plugin or theme, they are usually responsible for maladies.

You should also check your server logs for “wxdGrgPB” as that is the post/get variable used to send malicious commands to this script.

Posted in Tech Tips, Web Development | Tagged , | Leave a comment

Godfinger: Get Rid of Rainbows

The solution to Get Rid of Rainbows in Godfinger. “Deleting” rainbows in Godfinger is simple, actually, but the game doesn’t tell you how to do it. Basically, you can grab your people and throw them through the rainbow and collect stars. This tip is for the non-sparkling rainbows. Do this a few times and the rainbow will go away. Otherwise you will just collect a lot of them over time and they get in the way.

Posted in Random | Tagged , , , | Leave a comment

Enable Featured Images in WordPress MU Multi Site

Multisite and WordPress Featured Images / Post Thumbnails

Post Thumbnail is a theme feature introduced with Version 2.9. Thumbnail is an image that is chosen as the representative image for Posts, Pages or Custom Post Types. The display of this images is up to the theme.

If you’ve added or uploaded a theme to your WP mutisite installation and the “Featured Images” are not showing up, then you need to adjust some of the network wide settings.

To show the “Featured Image” meta box in mulsite installation, make sure you update the allowed upload file types, in Network Admin, Network Admin Settings SubPanel#Upload_Settings, Media upload buttons options. Default is off.

Enable Featured Images in WordPress MU Multi Site

Once that setting is enabled, just add this code to your theme to enable the featured images:

if ( function_exists( 'add_theme_support' ) ) { 
  add_theme_support( 'post-thumbnails' ); 
}
Posted in Web Development | Tagged | Leave a comment

How can I Growl from the Terminal?

growlnotify is a command-line tool to post Growl notifications. You can control all aspects of the notification within any boundaries set up in the Growl pane of System Preferences. It can be very useful in shell scripts.

Installation

The Installer package for growlnotify is in the growlnotify folder in the Extras folder on the Growl disk image. Simply open the Installer package and follow the on-screen instructions.

You can read more on the Growl Notify Tool on the growl extras page.

It does note that you should not use growlnotify in your applications, because you should use their SDK instead.

Posted in Software, Tech Tips | Tagged , | 1 Comment

Google Implements Voice Search

Google Implements Voice Search

At 1:18am EST on 23 June 2011 Google has implemented Voice Search.

Google Voice Search was a tool from Google Labs that allowed someone to use thei phone to make a Google query. After the user called (650) 623-6706, the number of Google Voice’s search system, they would wait for the words Say your Search Keywords and then say the keywords. Since the introduction of the service, products from Google, such as GOOG-411, Google Maps and Google Mobile App, have been developed to use speech recognition technology in various ways.

Next, they would either wait to have the page updated, or click on a link to bring up the search page the user requested. At the moment, both the demo of this service and the page have been shut down.

In the summer of 2008, Google added voice search to the BlackBerry Pearl version of Google Maps for mobile, allowing Pearl users to say their searches in addition to typing them.

Posted in Web Development | Tagged , | Leave a comment

Google has Crashed

At 1:18am EST on 23 June 2011 Google is not responding, and it appears that Google has Crashed. I’m sure they have a backup solution and will be fixing his issue very quickly.

This momentary outage appears to be the result of Google implementing flash based google voice search on their homepage.

Posted in Web Development | Tagged | Leave a comment

GitHub Example Setup Commands

Global setup:

 Set up git
  git config --global user.name "Your Name"
  git config --global user.email [email protected]

Next steps:

  mkdir your-repo-name
  cd your-repo-name
  git init
  touch README
  git add README
  git commit -m 'first commit'
  git remote add origin [email protected]:username/your-repo-name.git
  git push -u origin master

Existing Git Repo?

  cd existing_git_repo
  git remote add origin [email protected]:username/your-repo-name.git
  git push -u origin master
Posted in Web Development | Tagged , | Leave a comment

Access Hidden Files with Quicksilver

Access Hidden Files with Quicksilver

You may be wondering if Quicksilver Indexes Hidden Files – or if you can access them with Quick Silver. The short version is that if you use the alt / option key and the / key or hold alt / option and right arrow into a folder with quicksilver, it will show you the hidden files inside of it. This also works for special folders, like Applications (.app)

Access Hidden Files with Quicksilver

  1. Access QuickSilver. Start entering Mac and one of the top options is Macintosh HD
  2. Select Macintosh HD but before opening it up with the action ‘Open’, enter “Alt – /” . This will give you access to all the hidden files in that Folder.
  3. now you can use QuickSilver to access the host file, Macintosh HD/Private/etc/hosts
  4. By entering “?” you can move up a level if you get to the hosts file but want to access ‘etc’ folder to change the ‘read/write’ security settings of the host file.
  5. These are different ways to do the same, I suggest using QuickSilver to access the hidden file, ‘private/etc/hosts’ to access the host file and making the modifications you need manually.

So, yes, Quicksilver Indexes Hidden Files, sort of.

Thanks to Juan

Posted in Software, Tech Tips | Tagged , , | Leave a comment

Google Fails Graceful Degradation

I’m a big fan of Graceful Degradation, Progressive Enhancement, and accessibility in web design. And I think that normally it is also important to Google as well, after all they have hundreds of millions of visitors each day and surely they stretch across the spectrum in terms of devices, browsers, and bandwidth. This is why I was very surprised to visit the Google homepage today without javascript and not see the Google Logo!

I know that most people do have javascript enabled, but is it that hard to set up your page so that your branding doesn’t go missing when it is turned off? I feel like Google should have checked that. I mean, they do allow their search to work just fine without Javascript, so why not the logo too? I feel like this must have been an “oops” as they were probably working on the technology for the eclipse last minute or something. That was pretty cool technology that they used today, by the way.

Comparison: Google screenshots with and without Javascrpt
after

Posted in Web Development | Tagged , , , | 1 Comment

Control Pandora With The Keyboard on Your Mac

Control Pandora With The Keyboard on Your Mac

Play Key to Control Pandora on Macbook (& iMac?)

Pandora Keyboard Shortcuts
I was able to get my play and skip keys to work for Pandora instead of iTunes on my Macbook Pro by using the “Key Remap 4 Macbook” utility in combination with PandoraJam.

 

Step 1: Download and Install PandoraJam – I’m using the demo version and it works fine for this.

Keyboard Control of Pandora

Step 2: Launch PandoraJam, edit the preferences. Click on the keyboard tab and set a few keyboard shortcuts. For this demo I’m setting Play to be Cmd+Shift+F8, Skip to be Cmd+Shift+F9, and Thumbs Down to be Cmd+Shift+F7.

Pandora Key Mac Media Keys

Step 3: Download and install Key Remap 4 Macbook. This is overall a pretty cool utility and I like how you could even set it up to remap keys even for specific applications. We’re not doing anything that complicated though. Below you will see how I’ve set up the Media keys to do what I want them to. This is the part that was a little difficult to figure out – the WCZ remap function is something I added in. See Step 4.

Control Pandora With The Keyboard on Your Mac

Step 4: What we’re going to do next is to remap the next, previous, and play keys to their Cmd+Shift counterparts so they will control PandoraJam as we’ve set up.

Click over to the Misc & Uninstall tab and then choose “open private.xml”

Macbook Pro Play Key for Pandora instead of Itunes

It will have a default, blank private.xml that you will be able to edit. Add in the following code:

<?xml version="1.0"?>
<root>
<list>
	<item>
      <name>WCZ Change Media Keys (Play/Pause, Prev, Next)</name>
      <list>
        <item>
          <name>Media Keys to F7..F9</name>
          <appendix>Music Prev to F7</appendix>
          <appendix>Music Play/Pause to Command + Shift + F8</appendix>
          <appendix>Music Next to Command + Shift + F9</appendix>
          <identifier>remap.mediaKeysToFKeysWC</identifier>
          <!-- F7 - F9 -->
          <autogen>--ConsumerToKey-- ConsumerKeyCode::MUSIC_PREV, KeyCode::F7, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L</autogen>
          <autogen>--ConsumerToKey-- ConsumerKeyCode::MUSIC_PLAY, KeyCode::F8, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L</autogen>
          <autogen>--ConsumerToKey-- ConsumerKeyCode::MUSIC_NEXT, KeyCode::F9, ModifierFlag::COMMAND_L | ModifierFlag::SHIFT_L</autogen>
        </item>
      </list>
    </item>
</list>
</root>

Save it. Then go back to the first tab and click the ReloadXML button. You should now have the WCZ remapping group. Enable that and basically immediately your media keys will start performing as the CMD+SHIFT equivalents, and if you have PandoraJam open they should be working.

If you look at some of the other examples you can probably figure out how to edit private.xml to include or exclude programs, and other fancy stuff. If you want to see the default XML for KeyRemap4MacBook, there is a hidden XML file located in /Library/org.pqrs/KeyRemap4MacBook/prefpane/checkbox.xml which you can examine. But don’t change anything in that file!

If you come up with something cool, or if you enjoyed this article, please post a comment below.

Also, Lifehacker has an article about allowing your media keys to control other things, like the VLC Player. I haven’t tried it – I love having the keys just control Pandora all the time.

 

Posted in Mac, Tech Tips | Tagged , , , | 2 Comments