Posts

Showing posts from July, 2013

How to burn (write) an ISO image to USB drive in all new Mac OS X systems

Image
There are many programs in the market that can handle it for you. But you can do it with default Mac OS X tools. Those steps must be made in terminal. You need to know what you are doing and have root password to your system. Here is your step by step guide to do it: 1. Convert your image. You need to change the image type from .iso to .img that dd util supports. To do this type a command like this: hdiutil convert -format UDRW -o /path/to/destination/file.img /path/to/source/file.iso You must see output similar to this: Reading Image File Name Here (Apple_UDF : 0)…... [ truncated ] ............................. Elapsed Time: 4m 57.725s Speed: 20.9Mbytes/sec Savings: 0.0% created: /path/to/image/file.img.dmg 2. Remove the .dmg extension. mv /path/to/image/file.img.dmg /path/to/image/file.img 3. Get your flash drive device name. You can do it in various ways. one that is using standard utils here: diskutil list This will list all your disks mounted

Python converting PDF to Image

Image
I have a task to generate thumbnails of uploaded PDF's. And seems like there no really solid decisions yet. Just garbage on the surface in google results. after googling for a while I found out about many ways to do so. E.g. use python stdin/out to run external command line tool. It might work for you to. But it seemed not so pythonic for me. So I have searched fo better decision. My current is for now to install ImageMagick and MagicWand binding. Install ImageMagick. I have used PIL a while ago to work with images. But it made me cry, before I have met sorl-thumbnails. It helped me a lot. But now I have to deal with PDF's. And ImageMagick seems like a complete decision to master it all.  It has to convert pdf to my direct desirables - jpeg. So to install ImageMagick I have used brew. Like this: brew install imagemagick However there are many other ways to do so , depending on a platform. But I strongly recommend to look at brew . Anyway installing ImageMagick is tr

Show system files in Finder

Image
Default Mac OS X system behavior is to hide system and hidden unix files (usually starting with a . symbol, e.g.: .bash_history will be out of sight). This makes spotting/opening one of this files with Finder extremely difficult. you may use your terminal, typing command like "ls -a" that will show all of the files in that particular directory, including hidden and system one's. But sometimes it may become annoying to use terminal while using the GUI. So. To change this default behavior in finder you need to enter those commands in the terminal window: defaults write com.apple.finder AppleShowAllFiles TRUE And after this you need to restart all your Finder processes like so: killall Finder Comments?