Skip to main content

Posts

Showing posts with the label hack

Lightning unofficial cable trick for iOS 7

I have found a hack of how to firs time sync your iphone via unofficial (cheap Chinese) cable. It may be a hint to you if you are buying an iPhone from a second hand without accessories. You will need TADAA! Official Apple cable but not for a lightning port. And another Apple device. The thing is if you connect both your new iPhone or iPad via lightning port and using unofficial cable and ANY of your Apple devices using OFFICIAL Apple cable. It will trust your lightning connected device. Some magic happens and one device connected with official apple cord makes another device connected via official cord too. TADAA. Now you can sync at least once... and use Wi-Fi sync later on... Hopoe it helps you. Comments?

Python / Django UnicodeEncodeError hacks.

Python plays with unicode nicely nowadays. Bt what if you must deal with old time formats conversion, or ASCII files exporting for e.g. You may also use software that is out of date but is too long to rewrite...  Here often errors occur. I have received mine at copy-pasting from MS Word into Django admin UI  by stupid users. Most of the website played nicely with this fancy characters, but exporting to CSV failed due to non ASCII characters support. Google said nothing special. Python docs about unicode usage briefly cover this type of events. So here is the result of some hours of experiments. I've decided to rewrite some of the python functionality to create decode function with behavior for my needs. Hopefully they will shorten you some time with those collisions you may get in your Django apps... Anyway I've started to receive errors like: Exception Type: UnicodeEncodeError Exception Value: 'asc...