Archive for the ‘Random’ Category

Tehran, Iran – Visa extension, Uzbekistan and Turkmenistan visas

Monday, April 30th, 2012

After experiencing the whole nightmare of Visas in Tehran, Iran, here is a little guide on getting these key items completed as stress-free as possible;

Visa extension

We extended our 10 day visa an extra 20 days, obviously when getting the Letter of Invitation (LOI) it is better to add additional days just in case it is needed, add additional common cities to the itinerary, even if you don’t plan on visiting them. Nobody ever checked our itinerary, I don’t even think there is a way to check it.

Secondly, if you do need to extend your visa, it isn’t recommended to do it in Tehran, from what I have read it is a lot easier to do it in any of the touristy cities, Shiraz, Yazd or Esfahan. Tehran is extremely crowded with Afghani and Turkmens sorting out their visas.

Now if it comes to extending in Tehran, it should take one day, and it may even take the same day, if you are unlucky like us, and go after Nuorez (the Persian New Year holiday), try four to five days.

The visa extension office has three rooms, on entrance;

  • the first room on the right is for photocopies, passport photos, and bag/phone storage and body-search for females,
  • the second room on the right is the bag/phone storage and body-search for males, and
  • the main room on the left is for form collection, initial form screening and form submission.

The steps are very straight forward;

  • Purchase the two copies of paper work for about 1000 Rial each, they may even ask you to photocopy one form yourself, if they do, fill it in first.
  • Photocopy your Iran visa (the Iran visa needs to have the entry date visible) and photo copy your passport both of these twice.
  • Purchase passport photos if needed (40,000 Rial), important, women must be wearing a headscarf in the photos.
  • Pay 300,000 Rial at the Melli bank located walking distance, important, this bank does not change USD.
  • Once you have all of the above items, take them to the initial form screener at the entrance to the main room, he will let you know if everything is okay, staple it all, and then direct you to the next window (window 5 in our case).
  • At the next window you will be directed to speak to the senior approver, he simply confirmed the number of days extension and signed the forms. I am guessing he may ask another questions related to the extension.
  • Take the signed form back to the window and submit it, if it is not very busy you may be asked to wait while it is processed, for us we were given a ticket and asked to come back in five days.
  • Collect the passport after the required waiting period, important, it doesn’t look like you can collect on behalf of someone else, we watched a man get rejected trying to collect his wife’s, even though he had the ticket.
  1. Visa extension office (N35 43.519 E51 26.754)
  2. Approximate location of Melli bank (N35 43.547 E51 26.636)

Uzbekistan Visa

This is as straight forward as it gets. Make sure you have organised a Letter of Invitation (LOI) previously and have the reference number. We used StanTours who were extremely easy to use.

Note there is an Uzbekistan Embassy and Uzbekistan Consulate in Tehran, all given addresses are usually the Uzbekistan Embassy, but you need to go to the Uzbekistan Consulate.

Opening times are 9:30am to 11:30am, but if there is a long queue, it will stay open till everyone is finished processing, we arrived at about 11am and it stayed open till 12pm.

Items you need;

  • Two passport copies
  • Two completed Uzbekistan visa application forms,
  • Two passport photos,
  • Your passport,
  • $60 USD,
  • A copy of the LOI reference number (optional, but recommended)

On arrival press the third button on the intercom and let the person know you are here for a visa, the first thing they will ask is if you have an LOI. They will open the gate and let you through, or if there is a queue ask you to wait, make sure you workout who is at the end of the queue and make any people arriving after aware of your queue position.

The embassy does not do photocopying, photocopying is sometimes available in the street newsstands and should cost 1000 Rial.

  1. Uzbekistan Consulate (N35 48.267 E51 28.534)

Turkmenistan Transit Visa

The most frustrating visa to obtain. It takes five days to complete, but they do not take your passport, if you hand it in on Sunday, it will be available the following Sunday, not Thursday.

There are two parts, and I would strongly recommending doing it this way,

  1. Apply for authorisation in Tehran,
  2. Collect transit visa in Mashhad five days later.

The reason is, nobody wants to be stuck in Tehran (or Mashhad) for five days, you will also most likely use the border crossing near Mashhad. Once submitted in Tehran, follow the Caspian sea for five days, Dizin for skiing, Gorgon for amazing forests before reaching Mashhad to collect the visa and onwards travel to Turkmenistan.

Apply for authorisation in Tehran

Items you need;

  • Uzbekistan visa photocopy
  • Iran visa photocopy (the entry date stamp does seem to be a requirement)
  • Passport visa photocopy

Again photocopying is not available.

Arrive at the Turkmenistan embassy Tehran, as early as possible, opening time is 9:30am to 11:30am, but they may open earlier. Submit the paperwork and inform them you want express service, pickup from Mashhad and confirm when it will be available.

  1. Turkmenistan Embassy Tehran (N35 48.269 E51 27.148)

Collect transit visa in Mashhad five days later.

In Mashhad you will need to arrange the visa application, for 20,000 a photocopying shop will fill in the form, make photocopies of your passport, if needed take passport photos (for an additional cost) and staple is all together. They say an Uzbekistan photocopy is not required, which makes sense as they should have the details when you submitted it in Tehran, but it doesn’t hurt to take it.

Arrive at the Turkmenistan embassy in Mashhad as early as possible, whilst it opens from 9:00am to 11:30am, a line can start as early as 8:00am. Submit $55 USD in pristine notes, the form and your passport, and with any luck you shall receive the transit visa there and then.

Note you can chose between the either the Bajgiran-Ashgabat or Sarakhs-Saraghs entry, but you will always receive the Farab-Karakul exit.

  1. Turkmenistan Embassy Mashhad (N36 17.049 E59 35.958)
  2. Approximate location of copy shop for forms (N36 17.056 E59 35.875)

Good luck!

Free GPS maps for Garmin MapSource

Thursday, March 22nd, 2012

I discovered this amazing service the other day, I was aware of the OpenStreetMap project, user contributed global street maps, but I was unaware of the additional service garmin.openstreetmap.nl which allowed you to download maps to be used on Garmin devices, including MapSource. Whilst Garmin produces some very comprehensive country maps, they miss some of the rarer countries, which OpenStreetMap have covered.

Central Asia free Garmin MapSource map

Related posts:

  1. How to Unlock Garmin maps

Remove blank PDF pages with A-PDF Scan Optimizer

Saturday, March 3rd, 2012

Recently I posted about A-PDF Page Cut, which was able to split PDF pages in half, it turns out that once you do this you get a lot of blank pages (not nice for your Kindle). Conveniently, produced by the same company is A-PDF Scan Optimizer which removes these blank pages. A-PDF Scan Optimizer does have a number of other features tailored to page scanning documents, included de-skewing, and rescaling, but I was only interested in the blank page removal feature.

To remove blank pages of a non-scanned PDF, Scan Optimizer is very straight forward to use, but if you have scanned PDFs which may have some grey shades on the blank pages, it may require a bit of tweaking to get right.

A-PDF Scan Optimizer startup interface

Once you have “Turned On” the Delete Blank Pages option click Settings to bring up the options.

A-PDF Scan Optimizer delete blank settings

Though the help is non-existent for the Delete Blank Pages settings, there are two main settings to change and these are used to determine if a page is considered blank;

  • Black\white value – grey scale images have 256 shades of grey (0 being black and 255 being white), this setting sets the threshold to determine what should be black and what should be white, a setting of 128 means half the greys shades are white and half are black. If there are slight grey shades on your blank pages, this should be set so that you can no longer see them on the preview.
  • Threshold value – now that the image is black and white only, what is the faction of acceptable black on the page to still consider the page blank. This is useful if there are black specs on the pages. A value of 0.001 means 0.1% of the page can have black on it and still be considered blank. Set this high enough so that you get a result of “blank”.

Since my PDFs all originated from a digital source, I set them to the extreme settings of 255 and 0.00001. Click Optimize and Save As, the Scan Optimizer will batch process the list of PDFs and log which pages were deleted.

Related posts:

  1. Review of A-PDF Page Cut – software to split a pdf page in half
  2. WordPress hacked – broken or blank refreshing admin/dashboard

Roundcube installation on shared hosting with Firefox Webmail Notifier

Thursday, February 16th, 2012

This tutorial is going to explain how to install the webmail IMAP client Roundcube on shared hosting and then integrate it with the Firefox plugin Webmail Notifier.

Firstly, why the need to install Roundcube in the first place, don’t many hosting companies already provide it built into cPanel? Yes, they do, but the benefit to hosting it yourself is plugins! There are hundreds of plugins that allow you to do pretty much anything. The main reason for me for moving to a self-hosted Roundcube was the plugin Accounts, which allows multiple IMAP accounts from the single interface.

Let’s begin. For the below example, I am going to use the required configuration for Hostgator shared hosting, it maybe different with a different host.

Install Roundcube

Download a copy of Roundcube from roundcube.net, and extract it to the desired location, i.e. mydomain.com/mail (which you could then create a subdomain mail.mydomain.com pointing to it).

In Firefox navigate to mydomain.com/mail/installer for the Roundcube Webmail Installer, click Start Installation and make sure you meet the server environment requirements.

Database setup

Login to cPanel phpMyAdmin and create a new MySQL database called roundcubemail or similar, create a new user and assign it full access privileges to the new database.  Fill the Database setup section with user and password details.

IMAP Settings

The IMAP Settings for Hostgator shared hosting are;

default_host – the primary domain name, in my case it is thydzik.info

default_port – remains at port 143

username_domain – this is the IMAP email address, in my case it is something@thydzik.com

SMTP Settings

The SMTP Settings for Hostgator shared hosting are;

smtp_server – mail.mydomain.com, in my case it is mail.thydzik.com

smtp_port – remains at port 25

smtp_user – the IMAP email address, in my case it is something@thydzik.com

smtp_pass – the IMAP email address password

Click create config, then download the two files main.inc.php and db.inc.php and upload them to mydomain.com/mail/config.

Click continue and Test IMAP config to make sure everything is working. Delete the installer folder.

Installing Webmail Notifier Roundcube plugin

Download the Roundcube Plugins pack from MyRoundcube and copy the plugin folder webmail_notifier to mydomain.com/mail/plugins/webmail_notifier. Change the file name of mydomain.com/mail/plugins/webmail_notifier/config.inc.php.dist to config.inc.php.

Edit the file mydomain.com/mail/config/main.inc.php and add webmail_notifier to the list of plugins, similar to;

// List of active plugins (in plugins/ directory)
$rcmail_config['plugins'] = array('someotherplugin', 'webmail_notifier');

Login to Roundcube and navigate to the Settings (top right corner), Navigate to section Mailbox View, there will be a new section New Message, download the script from the Get Firefox Webmail Notifier Script download icon.

Roundcube Webmail Notifier Configuration

Installing the Firefox WebMail Notifier plugin

From the same Mailbox View section you can navigate to the Firefox WebMail Notifier plugin page using the Get Firefox Webmail Notifier Addon download icon. Install the plugin and restart Firefox, a grey envelope should appear in the Add-on Bar. Right-click the envelope and select Options,  click the Scripts button, then Add and select the localhost.js previously downloaded from the Get Firefox Webmail Notifier Script.

In WebMail Notifier configure a new account, using the localhost script, enter the IMAP details as previously detailed;

Username – this is the IMAP email address, in my case it is something@thydzik.com

Password – this is the IMAP email address passpword

Webmail Notifier Configuration for Roundcube

If everything was successful you should now see a Roundcube icon and be notified of all new emails.

Webmail Notifier with Roundcube configuration successful

Review of USB Safely Remove – the device cannot be stopped right now

Friday, January 27th, 2012

Sick of constantly experiencing the Window’s “The device ‘Generic volume’ cannot be stopped because a program is still accessing it.” message, I decided to give the program USB Safely Remove a test.

The first time trying to stop my USB hard-disk-drive I get the following “Could not find any processes locking USB device!”, great, the one program that advertises as “an enhanced and hassle-free replacement for Windows safe removal tool” doesn’t even work.

Back to directly unplugging the drive.

USB Safely Remove - the device cannot be stopped right now

Related posts:

  1. Huge Pine USB to Serial Ports Driver
  2. USB Wireless Presenter with Mouse and AutoHotkey
  3. USB2IDE drivers for Microsoft Windows 98

How to dye fabric with Procion dye

Thursday, January 26th, 2012

Procion is a brand of reactive dyes, meaning the dye reacts with the cellulose fibres (plant-based fibres including cotton and linen) of fabric. A cellulose fibre will not work on protein fibre (animal-based fibres including silk and wool), it which case Acid Dye will need to be used.

I chose Procion over Acid Dye due to being a little cheaper, and the specific Procion type I bought was Procion MX, a cold water dye, what I didn’t realise was a fixer/setter is also required in this case sodium carbonate (soda ash) as this added to the price.

Both items can be purchased from eBay seller prothree and including shipping cost $6 for the Procion (25g) and $5.50 for the Soda Ash (200g).  Acid dye (10g) can be purchased for $7.

Procion MX and soda ash

The procedure to dye fabrics with Procion MX is fairly straight forward, what I planned to dye black was a pink top and grey skirt.

Procedure

  1. First fill a container with about ten litres of water, add the Procion MX dye and stir to make sure everything is dissolved and mixed evenly.
  2. Immense the cloths in the dye bath and stir for thirty minutes to make sure cloths are evenly dyed.
  3. Add the soda ash and again stir for thirty minutes to make sure soda ash is dissolved and mixed evenly.
  4. Remove cloths from dye bath and rinse with clean water to remove excess dye.
  5. Once the majority of dye is removed, it can be machine washed to remove any traces.

Mixing the dye bath
Add the fabrics to the dye bath

Enjoy the newly coloured clothes.

Skirt before and after
Top before and after

Blacklisting all yahoo.com email addresses

Friday, December 23rd, 2011

For some reason, I am getting a large amount of spam form yahoo.com email address, previously, I blacklisted these email address, but this became too time consuming, so I have now created a catch-all and blacklisted ALL yahoo.com email addresses. Only .com are affected, .com.au, .co.uk and all variants are unaffected. I have whitelisted those yahoo address of friends, but apologies if your yahoo email address doesn’t get through.

The Cool Cube featured in 10 Years of Mini-ITX eBook

Wednesday, November 30th, 2011

To celebrate 10 years of the VIA Mini-ITX motherboard, VIA had released a anniversary eBook titled Small is Beautiful: Ten Years of Mini-ITX, which features one my case modding projects, The Cool Cube.

Head over to viamini-itxebook.com to read about it and many other cool mods.

Ten Years of Mini-ITX eBook