Category Archives: Windows

Git checkouts fail on Windows with “Filename too long error: unable to create file”

Cause

According to the msysgit wiki on GitHub and the related fix this error, Filename too long, comes from a Windows API limitation of file paths having 260 characters or fewer.

Resolution

To resolve this issue, run the following command from GitBash or the Git CMD prompt (as administrator):

git config --system core.longpaths true

This will allow file paths of 4096 characters.

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