November 25, 2011

[SOLVED]Target filesystem doesn't have /sbin/init

The second attempt was to run Ubuntu off of the CD (don't install it, just run the OS) and then go into the terminal window and run fsck. For those that aren't familiar with that command, here is a brief summary

$sudo fsck /dev/sda5

where /dev/sda5 is a drive you want to check




September 5, 2011

[SOLVED] Chrome: How to change the default language (UI) in chrome

Normally you should find this option in "Under the Hood" tab but if have no such option do type

in to address bar and choose your preferred UI language.

then you must restart your Google Chrome Browser


Tested with chrome v13.0.782.220 m and v15.0.871.1 canary

August 2, 2011

[SOLVED] Chrome: How to switch the User agent of the browser?

you can pass the user agent string in the command line

for example, this is how to make chrome report itself as IE8.0 on my machine
C:\Users\XXXX\AppData\Local\Google\Chrome\Application\chrome.exe --user-agent="Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ; .NET CLR 3.5.30729)"

so basically just add --user-agent="what ever you want to impersonate to" to the target in the shortcut to chrome
and launch chrome using that shortcut!


June 13, 2011

[SOLVED] Ubuntu - VNC loads but does not refresh.

I am playing with UltraVNC from Windows 7 to Ubuntu. To resolve the problem with VNC refresh we should turn off all visual effects.


right click on the desktop, select "Change Desktop Background", click
"Visual Effects", click the "none" option



May 29, 2011

[SOLVED] Mount the remote file system on your local machine with sshfs

You can mount the remote file system on your local machine with sshfs:
mkdir -p /mnt/sshfs 
root@IS1300:~# sshfs /mnt/sshfs 
root@IS1300:~# umount /mnt/sshfs

Then you can copy paste the file with nautilus/gnome/konqueror/dolphin/bash/whatever



May 23, 2011

[SOLVED] AI: Embed a linked file

How to embed linked file in Adobe Illustrator?

  1. Select a file in the Links panel, and choose Embed Image from the panel menu.

  2. Select the linked artwork in the illustration window. In the Control panel, click the Embed button.


April 27, 2011

[SOLVED] ReConnect Eclipse to Android emulator

Just run these command in your console

adb kill-server

for emulator on my pc it was
adb kill-server
adb connect localhost:5555


April 8, 2011

[SOLVED] Add Google IO 2011 HTML5 Banner to my Google Sites via Gadget

How to add Google IO 2011 HTML badge to your Google Sites?

Log in into your site click "Edit Page"

In Edit mode click "Insert" -> "More Gadgets..." -> "Add gadget by URL"

paste this url

and click "add"

Don't forget to Save your changes


March 20, 2011

[SOLVED] Windows: This file does not have a program associated with it for performing this action

I messed up with my regestry under Windows 7 and now a getting an error while I am trying to launch explorer.exe.

"This file does not have a program associated with it for performing this action"

or in german
"Der Datei ist kein Programm zum Ausführen dieser Aktion zugeordnet. Installieren Sie ein entsprechendes Programm, oder erstellen Sie in der Systemsteuerung unter "Standardprogramme" eine Zuordnung, wenn bereits ein Programm installiert ist."
Here is the solution:
copy this lines below into a txt file then rename it to *.reg and double click to add this information to your registry

Windows Registry Editor Version 5.00







March 14, 2011

[SOLVED] Chrome: Export the List of used extensions

I just wrote the Extension "Share Extensions for Google Chrome™" for exporting Extensions list in various formats. You can export BBCODE, HTML, Wiki or Text lists. With or without descriptions. Here are my extensions:

Generated: Tue, 22 Mar 2011 10:07:03 GMT
User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16

Extensions: 48
  • Clip It Good v0.1
    Save webpage clippings and images to your Picasa Web Albums.

  • Awesome Screenshot: Capture & Annotate v2.4.9.1
    Capture the whole page or any portion, annotate it with rectangles, circles, arrows, lines and text, blur sensitive info, one-click upload to share. Support PNG and shortcuts.

  • MeasureIt! v1.1.2
    Draw out a ruler that will help you get the pixel width and height of any elements on a webpage.

  • Omni Launch v0.0.0.5
    Launches apps, the quick way!

  • UserpicIt Extension v0.3
    UserpicIt Extension enables you to send images from Chrome to with one click.

  • Transliterator v1.3
    Transliterator - Use F2 to switch to Cyrillic alphabet -

  • Share Extensions v0.0.9
    Export your favorite Google Chrome™ extensions as BBCode, HTML, Wiki or text list for your Blog. Share the extensions via Twitter, Google Buzz™, Google Mail™ or add them to Google Bookmarks™ lists. Also you can directly enable/disable your extensions.

  • JSONView for Chrome™ v0.0.21
    JSONView for chrome is an extension that helps you to parse and view JSON documents

  • Add to Amazon Wish List v1.0.0.4
    Add products from any website to your Amazon Wish List

  • Screen Capture (by Google) v4.0.0
    Capture visible content of a tab, a region of a web page, or the whole page as a PNG image. Support horizontal and vertical scroll when capturing whole page, with an all new autosave capability.

  • Notifier for Stack Exchange websites v2.4.9
    Get notified of changes in reputation, responses, revisions, badges & moderator messages, on any StackExchange site

  • Open Graph Inspector v1.1.1
    Show open graph information.

  • Autocomplete = on v1.0
    Changes 'autocomplete=off' to 'autocomplete=on' in web pages, so your passwords will be remembered.

  • Facebook Disconnect v1.0.2
    Stop Facebook from tracking the webpages you go to.

  • Sight v1.6.7
    The Syntax Highlighter for Chrome

  • Edit This Cookie v0.13.5
    Edit This Cookie is a cookie manager. You can add, delete, edit, search, protect and block cookies!

  • XML Tree v1.9.1.2
    Displays XML data in a user friendly way.

  • Pendule v0.0.10
    Web developer tools for Chrome.

  • v1.7
    Store text for a certain period of time with the #1 paste tool since 2002

  • Social Media Monitoring v0.1.5
    Displays Twitter activity (tweets per minute, current and long-term) for user-defined keywords and geolocation (at the moment, only Twitter is supported, more services are coming soon).

  • AT_HedgehogInTheFog_v2 v3

  • Rapportive v1.2
    Making email a better place

  • Chrome Sniffer v0.2.7
    Detect web applications and javascript libraries run on browsing website.

  • Breadcrumb Navigator v1.1.0
    This extension allows you to navigate any URL in a breadcrumb-like way.

  • URL Shortener v0.5.7
    Shorten url with, the Google URL shortener

  • My Extensions v0.9.3.7
    Are you an extensions developer? Keep track of your Chrome extensions. Be notified for new comments, ratings and more!

  • Twitter Notifier v1.1.3
    Brings new tweet notifications to Chrome - You'll never need a desktop client again!

  • Yet Another Google Bookmarks Extension v1.9
    YAGBE - Displays Google Bookmarks in a tree. Supports nested labels, searching, sorting, creating, and managing Google Bookmarks.

  • Control Freak v1.1
    Greasemonkey-like mods, but quicker to tweak

  • Bubble Translate v1.5
    Real-Time & inline text translator from any language to yours.

  • UserpicStealer v0.0.3
    Find userpics on page and send it to

  • Server Switcher for Chrome v0.1
    Easily switches a website between development and production webservers

  • QR Code Generator for Android Market™ on Web v0.0.4
    Generate QR Code for installing Android apps on your device while surfing web-based Android Market™ (no sign-in required)

  • HTML5 Powered v1.0
    Shows the new HTML5 logo for pages that use the HTML5 doctype

  • Delicious Bookmarks Extension (Beta) v0.998
    Delicious Bookmarks is the official Chrome extension for Delicious, the world's leading social bookmarking service.

  • Download Assistant (by Google) v4.0.0
    Download links on a web page with popular downloaders such as FlashGet, FlashGet Mini, Thunder, Mini Thunder, QQ Whirlwind, eMule, Orbit, Internet Download Manager and Free Download Manager.

  • QuizCards: World Capitals v0.985
    Use these interactive browser-based flash cards to easily learn the world capitals.

  • YSlow v3.0.0
    Make your pages faster with Yahoo!'s page performance tool

  • Feed Notifier! v1.1.0
    Get desktop notifications whenever you favorite feeds are updated.

  • Word This v2.5.3
    Create a post on your or Self Hosted Wordpress Blog about the current page you're viewing

  • RSS Subscription Extension (by Google) v2.1.3
    Adds one-click subscription to your toolbar.

  • Docs PDF/PowerPoint Viewer (by Google) v3.2
    Automatically previews pdfs, powerpoint presentations, and other documents in Google Docs Viewer.

  • csscan v2.0.1
    Offers a quick overview of CSS properties to the element the mouse cursor is hovering.

  • Google Chrome to Phone Extension v2.1.3
    Google Chrome to Phone Extension enables you to send links and other information from Chrome to your Android device.

  • Google Quick Scroll v1.7
    Quick Scroll lets you jump directly to the relevant bits of a Google search result.

  • Cloud Save v1.2.2
    Save to cloud.

  • Chrome Palette v1.0
    Creates a color palette from any image. Just right-click on the image and select the 'Chrome Palette' option.

  • AdBlock v2.3.15
    The most popular Chrome extension, with over 2 million users! Blocks ads all over the web.

Disabled Extensions: 31
  • Google Translate v1.2.3.1
    This extension translates entire webpages into a language of your choice with one click. By the Google Translate team.

  • Chrome for a Cause v1.5.3
    Participate in charitable projects with the rest of the Chrome community

  • Validity v1.1.0
    Click the icon in the address bar or press Ctrl+Alt+V to validate the current page.

  • QR-Code Tag Extension v0.7.8
    Display a QR-Code tag for the current URL in the browser. The size of the generated QR-Code is adjustable.

  • Bookmark Sentry v1.6.5
    A bookmark scanner that checks for duplicate and bad links.

  • Firebug Lite for Google Chrome v1.3.1.7759
    Firebug Lite for Google Chrome, supported by the Firebug Working Group.

  • Pixlr Grabber - Screen capture/image grabbing v0.85
    Edit, Save or Share screen grabs and images

  • Webpage Screenshot v4.6.2
    Fast&Simple solution to Save & Share & Print & Edit screenshots of any webpage. Capture to PNG/JPG drawing tools, and sharing features.

  • ToCyrillic v1.2.1
    On the fly conversion from latin to cyrillic for text widgets

  • Post to Google Buzz v1.0.0.6

  • ScribeFire v1.4.3.0
    A full-featured blog editor lets you easily post to all of your blogs.

  • Google Font Previewer for Chrome v1.5
    Lets you choose a font from the Google Font directory with a few text styling options, and preview them on the current tab.

  • Picnik Extension for Chrome v1.0.7
    Capture web pages and edit images right in your browser using Picnik

  • Display Shortcuts v1.1
    Display the access keys hidden into a web page, to be used as shortcuts.

  • android2cloud v2.0.2
    A way to push content from your Android phone to your Chrome web browser.

  • Web Clipboard (by Google) v2.0
    Copy and Paste HTML and text using Google's Web Clipboard !

  • Power Twitter for Chrome v1.60
    Makes Twitter Better!

  • Chromitude v0.3.2
    An unofficial Google Latitude Checkin App for Chrome. Runs in the background.

  • Instant Image Editor v1.1
    Edit any image or background image instantly by alt + right-clicking it (ctrl on Linux)!

  • Window Resizer v1.6.0
    Resize browser window to emulate various screen resolutions

  • jsshell v3.1
    Interactive Javascript with jQuery and jLinq

  • Inline Code Finder v0.9.2
    Finds HTML elements with inline JavaScripts events, inline styling and javascript: links

  • EXIF Viewer v1.2.4
    Quick access to EXIF data of any image you view

  • Explain and Send Screenshots v3.8.3
    Capture any part of a webpage, explain it with arrows, circles, text, just like Snagit and share or send it as a link or attachment

  • The Tweet Button v0.1.4
    Share articles on websites on Twitter with The Tweet Button (created by @wrttn)

  • Chrome Editor Lite v0.9.5
    Edit HTML easily, right inside your browser.

  • Auto-Translate v1.4.1
    Automatically translate selection text by google translate

  • Auto-Reload v7.8
    Time interval page auto-reloader

  • Speed Tracer (by Google) v0.20
    Get insight into the performance of your web applications.

  • Chromkie v0.1.6
    Cookies Manager of Chrome.

  • Unofficial Google Tasks v1.5.5
    Access your Google Tasks easily with Chrome

Apps: 10
  • Entanglement v2.1.1
    Create the longest path possible and challenge your friends in the game of Entanglement.

  • GQueues v1.0.0
    A full-featured task manager for your Google Account and Google Apps account.

  • Namco Mahjong Butterfly v1.104
    Match tiles to transform caterpillars into butterflies!

  • Z-Type v1.0
    Type To Shoot Game made with ImpactJS

  • Hipmunk v1.1
    Find the flight you want in minutes using Hipmunk's agony-free flight search.

  • PHP Code Editor v0.9
    PHP Code Editor is a web based interface to edit your code.

  • Plants vs Zombies v1.0.5
    Think fast and plant faster to stem a zombie attack and save your home in this action-strategy PopCap game! - FREE TRIAL

  • GitHub Issues v1.6
    Github Issues is a full featured desktop class front end to GitHub's issues tracker

  • Vyew v4.11.0
    Beyond web conferencing -- Collaborate in a continuous meeting room, real-time or anytime: webcam, whiteboard, and doc review tools.

  • Appmator v0.0.0.2
    Quickly get your app ready for the Chrome Web Store.

Exported with Chrome Extensions Share

March 1, 2011

[SOLVED] Problems with links

Having troubles with links?

...replacing with does the trick.

February 20, 2011

[SOLVED] GoogleDocs: How to download the spreadsheet as xls

For example you found some nice Google Docs Sheet

and would like to save this document as Excel file. Just add at the end of the URL "&output=xls"

also you may like to switch into edit mode (if you have enought rights). Just replace "pub" with "ccc"


February 18, 2011

[SOLVED] SVN: Parse all changes by user in defined time period

Parse all changes by user in defined time period
svn log -v -r{"2011-01-01 00:00:00"}:{"2011-02-18 00:00:00"}| sed -n '/m.kupriyanov/,/-----$/ p'


February 16, 2011

February 1, 2011

[SOLVED] SQLite Single quotes in the query expression

A string constant is formed by enclosing the string in single quotes ('). A single quote within the string can be encoded by putting two single quotes in a row - as in Pascal. C-style escapes using the backslash character are not supported because they are not standard SQL



January 23, 2011

[SOLVED] Android: Set dynamically textview height

TextView tv = (TextView) findViewById(;
final int height_in_pixels = tv.getLineCount() * tv.getLineHeight()
* getResources().getDisplayMetrics().density;
//approx height text


[SOLVED] Android: Override back button

public boolean onKeyDown(int keyCode, KeyEvent event) {
if (keyCode == KeyEvent.KEYCODE_BACK) {
        //do some stuff

return true;
return super.onKeyDown(keyCode, event);



January 12, 2011

[SOLVED] Android: Handling gzipped content while downloading

On file download you can check the content type and if its gzipped - unzip it on the fly:

URLConnection connection = url.openConnection();
InputStream stream = connection.getInputStream();
if ("gzip".equals(connection.getContentEncoding())) {
stream = new GZIPInputStream(stream));


January 9, 2011

[SOLVED] Android: Get an string array from an array.xml resource

Here you can see how to retrieve values from array.xml

<?xml version="1.0" encoding="utf-8"?>
<string-array name="image_export_list_preference">
<string-array name="entryvalues_image_export_list_preference">

private String getImageQualityAsString(int sizeItem){

try {
String[] bases = getResources().getStringArray(R.array.image_export_list_preference);

return bases[sizeItem];

} catch (Exception e) {
return "";



January 4, 2011

[SOLVED] Share log via Browser

This guide assumes you have a remote server, called that you are going to use to avoid any firewall issues.

First make sure you have netcat-openbsd and NOT netcat traditional installed.
sudo apt-get install netcat-openbsd

Then to ensure your system is working try the following basic netcat tip.

Now to share my logging output I run on my laptop:
tail -f /var/log/syslog | ssh loghost "nc -v -l 8000"

Now to share my log with a remote collegue, he simply runs:

or in a browser


January 3, 2011

[GRAPHICS] My GTUG logo deviations

Here are some of my GTUG logo deviations (inspired by @aygul's bootcamp logo):


                      ..::::..                       :::::::::::.
                 ::::::::::::::::::              :::::::::::::::::::             .COOOOOOOOOOOOOc
              ::::::::::::::::::::::::         :::::::::::::::::::::::        .OOOOOOOOOOOOOOOOOOOOC
           ::::::::::::::::CCCc:::::::::     .::::::O@@@@@@@@@@@@c::::::    .OOOOOOOOOOOOOOOOOOOOOOOOO      .ccccccccccccc:.
          :::::::::::::8@@@@@@@@@@o:::::::  .:::::::@@@@@@@@@@@@@C:::::::  OOOc:COOOOO    OOOOOOOOOOOOOc:cccccccccccccccccccccc
         ::::::::::::c@@@@@@CC8@@@@@::::::: ::::::::::::o@@@@:::::::::::::OOO   OOOOOC    OOOOOOOOOOOCccccccccccccccccccccccccccc:
        :::::::::::::@@@@@C:::::8@@@@:::::::::::::::::::o@@@@::::::::::::OOOc   OOOOOc    OOOOOOOOOCcccccccOO@@@OCccccccccccccccccc:
       ::::::::::::::@@@@@c:::::C@@@@:::::::::::::::::c:C@@@@::::::c::::oOOOc   OOOOOc    OOOOOOOOccccco@@@@@@@@@@@@occcccccccccccccc.
       ::::::::::::::@@@@@c:::::::::::::::::::::::::::::C@@@@:::::::::::COOO:   OOOOOc    OOOOOOOccccc8@@@@8OOO@@@@@@occcccccccccccccc.
      .::::::::::::::@@@@@c::::::::::::::::::::::c:::c::o@@@@:::::::::::COOO:  .OOOOOc    OOOOOOcccccO@@@@cccccc@@@@@@ccccccccccccccccc.
      .::::::::::::::@@@@@c::@@@@@@@@c::::::::::::::::::c@@@@:::::::::::oOOOc   OOOOOc    OOOOOoccccc@@@@8ccccccO@@@@@cccccccccccccccccc
       ::::::::::::::@@@@@c::@@@@@@@@::::::::::::::::::::@@@@::::c:::::: OOOc   OOOOOc    OOOOOcccccc@@@@Occcccccccccccccccccccccccccccc:
       ::::::::::::::@@@@@c:::::C@@@@::::::::  :::c:::c::@@@8::::::::::  .OOO   OOOOOc    OOOOCcccccc@@@@Occccccccccccccccccccccccccccccc
        :::::::::::::@@@@@C:::::8@@@@:::::::    .::::::::::::::::::::     .OOO           :OOOOCcccccc@@@@OccO@@@@@@@@@ccccccccccccccccccc
         :::::::::::::@@@@@@@8@@@@@@@::::::        .::::::::::::c:          COOO:      .OOOOOOCcccccc@@@@OccO@@@@@@@@@ccccccccccccccccccc
          :::::::::::::o@@@@@@@@@c@@C:::::                                    COOOOOOOOOOOOOOOOcccccc@@@@OccccccO@@@@@cccccccccccccccccc.
            ::::::::::::::::::::::::::::                                        .OOOOOOOOOOOOOOCccccc@@@@@ccccccO@@@@@cccccccccccccccccc
              ::::::::::::::::::::::::                                               .ccccccc   cccccc@@@@Occccc@@@@@@ccccccccccccccccc
                 ::::::::::::::::::                                                              cccccc@@@@@@@@@@@@@@@cccccccccccccccc
                       ......                                                                     :cccccc8@@@@@@@OC@@@ccccccccccccccc


Original GTUG logo was created by @romannurik


[SOLVED]Building CSS sprites with Bash & Imagemagick

If you want to automatically generate image sprites - css file just use this script
$ button button '*.png'

Generating sprite file...
executing: convert button_disabled.png button_hover.png button.png button_selected.png -append button/button-sprite.png
Sprite complete! - Creating css & test output...
#1 done
#2 done
#3 done
#4 done

Complete! - 4 sprites created, css written & test page output.

Script source:

# uses imagemagick to stich together all images in a folder and
# then writes a css file with the correct offsets along with a
# test html page for verification that its all good

if [ $# -gt 0 ]

if [ 'x' != 'x'$4 ]
ext2=.$4; # the extension to iterate over for input files
ext2=".png"; # the extension to iterate over for input files

if [ 'x' != 'x'$3 ]
#ext="."$3; # the extension to iterate over for input files
ext=$3; # the extension to iterate over for input files
ext=".gif"; # the extension to iterate over for input files

name=$1; # output will be placed in a folder named this

if [ $2 ]

rm -fr $name;
mkdir $name;
touch $css $html;

echo "Generating sprite file...";
#echo convert *$ext -append $name/$classname$ext;
echo executing: convert $ext -append $name/$classname$ext2;
convert $ext -append $name/$classname$ext2;

echo "Sprite complete! - Creating css & test output...";

echo -e "<html>\n<head>\n\t<link rel=\"stylesheet\" href=\"`basename $css`\" />\n</head>\n<body>\n\t<h1>Sprite test page</h1>\n" >> $html

echo -e ".$classname {\n\tbackground:url('$classname$ext2') no-repeat top left; display:inline-block;\n}" >> $css;
for file in $ext
width=`identify -format "%[fx:w]" "$file"`;
height=`identify -format "%[fx:h]" "$file"`;
#idname=`basename "$file" $ext`;
idname=`basename "$file" $ext2`;

clean=${idname// /-}
echo ".$classname#$clean {" >> $css;
echo -e "\tbackground-position:0 -${offset}px;" >> $css;
echo -e "\twidth: ${width}px;" >> $css;
echo -e "\theight: ${height}px;\n}" >> $css;

echo -e "<a href=\"#\" class=\"$classname\" id=\"$clean\"></a>\n" >> $html;

let offset+=$height;
let counter+=1;
echo -e "\t#$counter done";

echo -e "<h2>Full sprite:</h2>\n<img src=\"$classname$ext2\" border=1/>" >> $html;
echo -e "</body>\n</html>" >> $html;

echo -e "\nComplete! - $counter sprites created, css written & test page output. @russenreaktor";


echo -e "There should be at least 1 argument!\n\ output_folder classname input_pattern"
echo -e "\n\ folder1 test '*.png' png"



[SOLVED] Save music played via browser as mp3 file

Problem: You hear nice music via your browser but you want download this music as mp3.


Solution: Use Freecorder - Powerful, Free Video Downloader, Audio Recorder & Converter -