Troubleshoot (Nagios) Webinject

There is a very nice GUI tool to troubeshoot webinject scripts. You can download the tool @ http://www.webinject.org/download.html for Windows and Linux. After you extract or install the tool you can change the globalhttplog line in the config.xml file to: yes so you get the full debug log. Note: I found a small memory bug in the GUI when you use the parseresponse parameter in your scripts. To workaround this issue the best you can do is restart the tool (file > restart) before you test the scripts. ...

July 18, 2011 · 1 min · thomasf

Text to speech in URL

Dutch http://translate.google.com/translate_tts?tl=nl&q=hier%20kun%20%20je%20wel%20leuke%20dingen%20mee%20doen. English http://translate.google.com/translate_tts?tl=en&q=you.can.do.very.nice.things.with.this.url

June 27, 2011 · 1 min · thomasf

Make a screenshot in OSX

The build-in graphical screenshot tool in OSX is crappy because it only save the file in tiff format. You can use this commands to maken a screenshot and save it to PNG format. Key CombinationResultCommand+Shift+3Capture entire screen and save as a fileCommand+Control+Shift+3Capture entire screen and copy to the clipboardCommand+Shift+4Capture dragged area and save as a fileCommand+Control+Shift+4Capture dragged area and copy to the clipboardCommand+Shift+4 then Space barCapture a window, menu, desktop icon, or the menu bar and save as a fileCommand+Control+Shift+4 then Space barCapture a window, menu, desktop icon, or the menu bar and copy to the clipboard You can also download and install the freeware tool SnapnGrap from http://www.yellowmug.com

June 14, 2011 · 1 min · thomasf

Nice status font

Not a very complicated blogpost, only a simple status font :) █░░░░░░░░░░░░░░░░░░ █████████░░░░░░░░░░ █████████████████░░

June 14, 2011 · 1 min · thomasf

Setup ADB and Fastboot with Android SDK on Mac OSX

[banner] Download Android SDK (original article @ http://androidtricks.net/setup-adb-and-fastboot-android-sdk-mac-osx-18) Download and extract Android SDK from http://developer.android.com/sdk/index.html to your desktop Browse to Tools and double click “android”. It will open up a terminal window and load the SDK. Install packages Here go to “Available Packages” and select what you want to download. I selected everything. Wait for the packages to download and install. Set the Path Next you need to update the PATH for tools/ and platform-tools/ folder. To do this you need to edit your ~/.bash_profile (create it if you don’t already have one). Add the following two lines ...

May 18, 2011 · 1 min · thomasf

HTC Restore to stock / factory ROM

If you must sent your phone back to the factory because of your hardware warranty, make sure your phone is running a stock rom. I will tell you how to restore your phone back to stock. After this tutorial your phone is completly unrooted, s-on and with a HTC stock radio :) Download a stock rom @ http://shipped-roms.com/ Download and install HTC sync @ http://www.htc.com/www/support.aspx Be sure your phone is running a HTC Sense rom (e.g. cyanogenmod cannot revert back to stock) Ok, lets started ...

May 3, 2011 · 1 min · thomasf

OSX Finder: Sort Folder Before File

Here the trick to change this behavior under Finder. Open Terminal. Open InfoPlist.strings file using vi text editor as a root. sudo vi /System/Library/CoreServices/Finder.app/Contents/Resources/English.lproj/InfoPlist.strings (change English.lproj to your language) Find below line: /\* General kind strings */ “Folder” = “Folder”; Do following change (by adding space before " Folder" word after equal sign). “Folder” = " Folder"; Save the InfoPlist.strings file by press [esc], type wq (mean write and quit vi) then press [return]. Close Terminal Restart your Finder, right click on Finder icon while pressing the key[option] and select Relaunch your Finder. Open Finder and order by Kind.

April 26, 2011 · 1 min · thomasf

How to identify your SQL Server version and edition

SELECT SERVERPROPERTY('productversion'), SERVERPROPERTY ('productlevel'), SERVERPROPERTY ('edition')

April 22, 2011 · 1 min · thomasf

Android 2.2: Install all apps to SD (even the unsupported apps)

Because a lot of android phones have a really small disk (NAND) you must move all the apps manually to SD. You can automate this with an tool on the marked (easy way). Search for modinstalllocation in the marked download and install this. Start the tool and set the value on 2 external The hard way: Connect the phone using the android SDK. (If you don’t know how, you can use my tutorial /2011/03/windows-7-x64-android-sdk-example-connect-htc-desire/) Now start cmd change folder to C:\Program Files (x86)\Android\android-sdk\platform-tools Now run the following command: adb shell pm setInstallLocation 2 ...

March 19, 2011 · 1 min · thomasf

Windows 7 x64 Android SDK - Example: Connect HTC Desire

I had some troubles with the Android SDK so I will explain the steps you must take to connect your phone from your pc Preparation: Download the Android SDK Turn on your USB debugging mode (On the device, go to the home screen, press MENU, select Applications > Development, then enable USB debugging) Steps: Install the Android SDK During the install ask to download and install the Java SDK Continue the installation when you have installed the Java SDK Start the (Android) SDK Manager and download all the default packages. Note: when you start the SDK Manager in the future always start the shortcut with administrator permissions. (right click > runas admin) Now download the USB drivers with the SDK Manager Now start notepad as administrator and open “C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver\android_winusb.inf” Now add some x64 code to the 32bits inf file [Google.NTamd64] ; HTC Desire %SingleAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C87 %CompositeAdbInterface% = USB_Install, USB\VID_0BB4&PID_0C87&MI_01 ...

March 19, 2011 · 2 min · thomasf