Have you ever wanted to use PHP in WordPress text widgets? All of us have. Here’s a neat little trick to allow you to insert PHP in WP text widgets. Sure, there are several plugins which allow you to do that. But isn’t it neat to use the default WordPress Text widget and give it the PHP dimension? Copy and paste this into your functions.php file and see the magic happen.
add_filter('widget_text', 'php_text', 99);
function php_text($text) {
if (strpos($text, '<' . '?') !== false) {
ob_start();
eval('?' . '>' . $text);
$text = ob_get_contents();
ob_end_clean();
}
return $text;
}
Android Apps
Adobe Reader
Aldiko
AndFTP
AndFTP Pro
Angry Birds
Barcode OI Plugin
Barcode Scanner
ES File Explorer
ES Task Manager
Explorer (not used much)
Fandago
Flashlight
FlightVew Free
Go Launcher EX
Maps
Market
MoboPlayer
MoboPlayer Codec for ARM
Movies
Notepad
OI Shopping List
OneBusAway
Opera Mini
QuickPic
redbox
Slashdot Reader
SManga
SMS Backup & Restore
Speed Test
Starbucks
Voice Recorder
Winamp
World Clock
Yelp
YouTube
Stabilize Shaky Videos with Youtube Editor
Fixing/stabilize your cell phone/camera shaky videos using new feature of YouTube video editor.
Making videos while holding camera or cell phone in our hand always gives us some shaky results no matter how still our hands were. This is what we call shaky camera syndrome and this effect can easily be observed while watching that video.
In Plain English… You can make your shaky videos stable by using this feature with only a few clicks.
Here are the steps:
Go to YouTube video editor.
- Drag your video to the bottom row where you can edit it later.
- After dragging the video to bottom row, hover the mouse onto the video thumbnail and click on the “Effects” button of the three buttons shown on the thumbnail.
- It will lead you to another window where you will see “Stabilize this video” option (View screenshot below)
- Just tick on the option and let the YouTube do the stabilization for you.
How To Get Cursor/Arrow Keys On Swype
Today's tip is almost a necessity because I've seen so many of you looking and asking and complaining about having no cursor keys in Swype (us EVO 4G users absolutely need them - the phone has no trackball!).
So I am here to tell you that Swype actually does have cursor keys but they're hidden away in a secret menu behind a super-secret swipe. Well, not too secret but if you haven't looked through the manual, you are probably unaware of it.
How To Get Cursor/Arrow Keys On Swype
To get to the special menu, just swipe from the lower left button (the one with the letter 'i' and a squiggly) towards the button with 'SYM' on it.
Check it out - BAM, what's that? A hidden menu.
To go back to the regular mode, press the 'ABC' button.
How To Create a User-Defined Service
The following did not work with FullSync, it appear to start but not run properly
You will need to install the Window 2003 rktools.exe
The Windows NT Resource Kit provides two utilities that allow you to create a Windows NT user-defined service for Windows NT applications and some 16-bit applications (but not for batch files).
Instrsrv.exe installs and removes system services from Windows NT and Srvany.exe allows any Windows NT application to run as a service.
create a Windows NT user-defined service, perform the following steps:
- At a MS-DOS command prompt(running CMD.EXE), type the following command:path\INSTSRV.EXE My Service path\SRVANY.EXEwhere path is the drive and directory of the Windows NT Resource Kit (i.e., C:\RESKIT) and My Serviceis the name of the service you are creating.Example:
C:\Program Files\Resource Kit\Instsrv.exe Notepad C:\Program Files\Resource Kit\Srvany.exe
NOTE:To verify that the service was created correctly, check the registry to verify that the ImagePath value under
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\service nameis set to point to SRVANY.EXE. If this is not set correctly, the service will stop shortly after it starts and return an Event ID 7000 "The service name failed to start."
WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.
For information about how to edit the registry, view the "Changing Keys And Values" online Help topic or the "Add and Delete Information in the Registry" and "Edit Registry Data" online Help topics in Registry Editor.
NOTE: You should back up the registry before you edit it.
- Run Registry Editor (Regedt32.exe)and locate the following subkey:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<My Service>
- From the Edit menu, click Add Key. Type the following and click OK:Key Name: Parameters
Class : <leave blank> - Select the Parameters key.
- From the Edit menu, click Add Value. Type the following and click OK:Value Name: Application
Data Type : REG_SZ
String : <path>\<application.ext>where <path>\<application.ext> is the drive and full path to the application executable including the extension (i.e., C:\WinNT\Notepad.exe) - Close Registry Editor.
By default, a newly created service it configured to run Automatically when the system is restarted. To change this setting to Manual, run the Services applet from Control Panel and change the Startup value to Manual. A service set to Manual can be started in one of several ways:
where <path> is the drive and directory of the Windows NT Resource Kit (i.e., C:\Reskit).
Recently, I was trying to delete a windows service. Normally it should not be necessary to manually delete a service. Uninstalling an application should remove its associated service (if any).
However, I installed some beta products and a service created by one of the applications was not removed automatically. Its very easy to remove a service from registry if you know the right path. Here is how I did that:
1. Run Regedit or Regedt32
2. Find the registry entry "HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services"
3. Look for the service there and delete it. You can look at the keys to know what files the service was using and delete them as well (if necessary).
alternatively, you can also use command prompt and delete a service using following command:
sc delete < SERVICE name>
or to create, simply type
sc create <SERVICE name>
Update:
If you have space in the file path you need to use quotation marks ("). For example:
sc create "MySQL" binpath= "C:\Archivos de programa\MySQL\MySQL Server 5.1\bin\mysqld.exe"
Thanks to Maya.
NOTE: You may have to reboot the system to get the list updated in service manager.
Clear default launcher setting in Droid
I'm using a custom launcher/theme, and it might be necessary to restore it, or use it in parallel. These steps can be used to reset the default behavior.
Clear default in Home Settings > Applications > Manage Applications
Install fails with XOOPS, issue with MySQL 5.5
[0.6.5] Install fails with mysql 5.5 installation script (install.php) fails on step 2 with message Error: Tables could not be created. reason: CREATE TABLE ... TYPE=MyISAM syntax unsupported solution: replace with ENGINE=MyISAM c:\xampp\php\php.ini change the following from: error_reporting = E_ALL | E_STRICT to: error_reporting = E_ALL & ~E_DEPRECATED
Check disk usage on Share Linux Server
Overall Usage
df -h
Disk Usage in megabytes with total
du -B MB -c
Unix
du -m /prod
Upgrading to PHP 5+ from PHP 4+
The special directives file name has changed from php.ini to php5.ini. If you need special directives, place them there for now on.
Joseph’s Bread Pudding
1 ½ Pieces of cubed bread
1 Egg
⅓ Cup of half-n-half, cover bottom of dish
Drop of vanilla
Mix all together smashing bread
4 minutes @ level 3 in microwave
Cut w/spoon and mix
Cook either 30 or 60 seconds at level 4
Mix in two spoons of maple syrup and cool to taste
