Copying Cyrillic URLs in Google Chrome and Firefox

Using Google Chrome, I encountered strange bug affecting the copying and pasting of cyrillic urls.

When pasting, the non ASCII characters in the Url are converted to Punycode.

Performing some tests revealed that the same behaviour is present also in Firefox.

Punycode produced by Google Chrome and Firefox
Punycode produced by Google Chrome and Firefox

Doing some research led me to Issue 68718, unfortunately marked as WontFix stating:

Links on Wikipedia itself are a red herring, as comment 50 notes -- they're escaped in the page source.  The actual issue here is demonstrated by the link in comment 0.  We escape URLs when copying them.  This behavior matches Firefox 4 (by default) and Safari 5, though not IE9.

We added this behavior on  issue 2820  to fix a variety of problems in languages like Japanese.  Because those problems resulted in users unable to navigate to the pasted links, whereas this issue seems to be solely about cosmetics (in that escaped URLs are ugly and hard to read), preserving that behavior change seems like the more important thing to do.

Workarounds

Few things can be done if this issue is affecting your day to day usage of Google Chrome…

  • Before copying the URL add any character at the end of it, then erase it. After this operation the copied URL will preserve its structure not producing punycode when pasted.
  • Use the COPY URL extension.
  • Use a different browser. Microsoft Edge on Windows and Safari on OSX are producing the expected results.

Featured Image: https://wallpapercave.com/w/A7ZAUTz

TortoiseGIT Disconnected: No supported authentication methods available ( server sent: publickey )

After migrating to SSH authentication for my Bitbucket repo ( one of the reasons for doing that was to be able to mirror my repo on my home server, article on that topic coming soon ), the TortoiseGIT windows client stopped working. It was unable to do pulls and pushes and all other functionallity related to connecting to the remote GIT. Android Studio and other IDE’s and tools I use on a daily basis, including git command line client were working properly.

Untitled1

TortoiseGIT uses Pageant (part of the PuTTY toolset) to manage it’s authentication keys. Because I have already generated the public / private key pair using ssh-keygen all I needed to do was make Pageant aware of them.

For this Puttygen (part of the PuTTY toolset) should be used.

Untitled4

pass

Load the key in Puttygen (you will be prompted for password during the loading process), leave the default settings. If the import was successful you will get a message telling you so.

success

Then click ‘Save private key’ button and save your private key in putty default ppk format. Fire up Pageant and load your newly created key.

Untitled6

Now pulls, pushes and all other functionallity related to connecting to the remote GIT should work as expected.

Untitled7

NOTE: Pageant should be started prior to using TortoiseGIT, else you will get the same error message again.

Get Android Studio debug certificate fingerprints on Windows

Here is a small batch file that will retrieve Android Studio debug certificate fingerprints. Make sure that keytool.exe is in your %PATH%

@echo off
keytool -list -v -keystore "%USERPROFILE%\.android\debug.keystore" -alias androiddebugkey -storepass android -keypass android
pause

Copy / paste the a bough commands in an empty file and save it with a .bat extension.

Android Studio debug certificate fingerprints
Android Studio debug certificate fingerprints

GoClever GC-4366FMBT firmware

After a long time of collecting dust I decided that I should resurrect my broken GPS navigation – GoClever GC-4366FMBT.

goclever_4366_fmbt_tmc_bBy resurrecting I mean removing GeoShell and the cracked Garmin using PortSplitter because of who my original Mireo GPS navigation wasn’t working. It was crashing on the “Attaching GPS…” message while loading.

Trying various methods to fix the problem all unsuccessful I finally decided that I should re-install the firmware of the GPS. After searching “past the first page of Google” (it was hell of a search and the trial and error method ) I finally found a suitable firmware for GoClever-GC4366FMBT, Mireo Black Edition 3.1 and the newest maps for Bulgaria, Romania, Greece, Macedonia and Serbia. Now the GPS is working again 🙂

Here is how to re-install the firmware of the device (links for firmware download included) and how to setup the navigation software.

Firmware installation

1.Download GoClever-GC-4366FMBT-Firmware.zip and extract it.
2.Copy the contents of the archive on an SD card and insert the card in the GPS
3.Turn on the device. The device will boot and will start to update the firmware

20131105_2202584. After a few minutes you will be ready. The default language of the device after the update will be Polish. Change it to your preference by navigating to the settings icon and than to the language icon.

Don’t forget to delete the firmware files from the SD card or next time you turn on the GPS the process will start again.

Mireo viaGPS v3.1 installation

After firmware installation the device will loose it’s GPS software ( it will do if you like me don’t do a backup of the ‘MobileNavigator’ folder from the ‘Resident Flash’ )

Download Mireo viaGPS Black Edition v3.1 (detailed map of Bulgaria included) extract the archive and rename the extracted folder ‘MobileNavigator’. Copy ‘MobileNavigator’ to your resident flash or SD card. Start the device and select Navigate. That’s it. You have a working GPS navigation with updated stock software and maps.

Here is an archive with detailed maps of Bulgaria, Greece, Romania, Macedonia and Serbia as of 2012-06. If you look hard enough you will find complete map of Europe dating 2012-06.

NOTE: The license for the 3D MAPS in the archive a bough is not working 

Windows 7 USB installation

Due to the enormous amount of software installs and uninstalls I decided it’s about time to reinstall my desktop machine. Having no spare DVD around my installation media of choice was a USB key.

Installing windows 7 from USB key is quite fast actually. Here is how to prepare Windows 7 bootable USB.

The requirements
NOTE: My installation was Windows 7 Professional SP1 x64. After completion of this process the space occupied on the USB key was 3,11 GB.

You will need a flash drive around 4 GB, an ISO image or DVD of Windows 7 and a machine running Windows XP or later. Also an archive tool able to extract ISO files. I use 7-Zip.

Preparing the installation media

1. Formatting the USB drive
Plug in the USB memory stick, right click on the drive in ‘Computer’ and select ‘Format…’. I recommend doing complete format by removing the check box next to ‘Quick Format’ option.

format

Depending on the drive size and speed the format will take some time.

2. Making the USB drive bootable
For this step we will use a command line utility called Diskpart. It’s bundled with every Windows version from 2000 onward.

To start Diskpart, click on the Start button and type diskpart. The diskpart utility will appear. Give it some time to load and enumerate your drives.

NOTE: For complete list of commands that the utility supports type: help at the DISKPART> command prompt.

diskpart1

To list your drives type list disks. From the list of your drives find the USB stick by comparing the size of the drive with the size of your USB stick. In my case the flash drive was ‘Disk 3’

Untitled3

At the ‘DISKPART>’ command prompt select your USB drive by entering the following command where # is the drive number of your flash drive:

DISKPART> select disk #

Now type in the following sequence of commands:

DISKPART> clean
DISKPART> create partition primary
DISKPART> active

Close the utility by typing:

DISKPART> exit

Your flash drive is now bootable. It’s time to copy the windows installation files on it.

3. Coping the Windows 7 installation

Extract the Windows 7 iso image to a location of your choice. If you are using 7-zip right click on the .iso image select 7-zip and from the sub menu select ‘Extract files…

NOTE: If you are turning Windows 7 DVD in to a bootable Flash drive installation just copy the contents of the DVD on the flash drive.

Untitled7

Copy the contents of the extracted .ISO file on your USB drive as you normally would.

Untitled8 
Now you have a bootable Windows 7 installation. Restart your computer and set it to boot from the USB. Install Windows 7 as you normally would.

This method is applicable also for Windows 2000, XP and Vista.