Saturday, October 8, 2016

Convert adf binary to ascii whith GDAL on Mac OS

Link.


brew install gdal --with-python
brew install homebrew/python/numpy
brew install homebrew/python/numpy

If you get warnings like: Python modules have been installed and Homebrew's site-packages is not in your Python sys.path, so you will not be able to import the modules this formula installed. If you plan to develop with these modules, please run: *****

Just run the script which is given.
Read more ...

Thursday, September 22, 2016

How to enable "Create a Windows 7 install disk" option in Boot Camp Assistant

Link.


1. Find Boot Camp Assistant.app in /Applications/Utilities/ and right click "Show Package Contents".

2. Backup the Info.plist in folder Contents and edit Info.plist.

3. Open System Information, copy Model Identifier (e.g. MacBookPro8,2) to the "Info.plist - PreUSBBootSupportedModels"

4. Copy the Boot ROM Version (e.g. MP11.222C.B11) from System Information to "Info.plist - DARequiredROMVersions"

5. Rename "Info.plist - PreUSBBootSupportedModels" to "Info.plist - USBBootSupportedModels".

6. Save it and copy back to the Boot Camp Assistant.app in Contents folder.

To create a bootable USB for windows installation.

1. Open Boot Camp Assistant.app

2. Only check the box for "Create a Windows 7 or later version install disk".

3. Select the iso file and the destination USB driver.
Read more ...

Thursday, July 21, 2016

Turn off automatic attachment preview in Mac Mail App

Link.


Turn off automatic attachment preview in Mail

Mail, by default, provides a preview of attachments in can read, such as graphics and PDF files. However, you can run a command in Terminal to turn this off. Run the following:
defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes

Quit Mail and relaunch it. When you view a message, all attachments will be shown as icons only.

To restore the original functionality, run this command:
defaults write com.apple.mail DisableInlineAttachmentViewing -bool no
Read more ...

Wednesday, June 8, 2016

Mac Word-to-PDF template error: "A footer of section 1 is set outside the printable area of the page. Do you want to continue?"

1. File --> Page Setup...

2. Paper Size --> Manage Custom Sizes...


3. Create a New one with the name "Full A4", set margins to 0 mm.
Read more ...

Wednesday, April 6, 2016

NICE PROGRAMMING FONTS

Read more ...

Quick Tip: set-goal-column

Link.


On the surface, it might not sound like editing columns of text is something that happens a lot, but I find myself doing it fairly often. A quick way to enter different values on each line down a column is to use set-goal-column (bound to C-x C-n).

Let’s say we have a block of text like the following comma-separated list. We’d like to enter a different value in the second field of each line. First we position the point on the first line between the two commas. This is at column position 6 (emacs starts counting columns at zero).
Step 1: set-goal-column

Now let’s input our first text field and hit C-n to go to the next line.
Step 2: set-goal-column

It does what you might expect. Because our first field pushed us out to column position 23, when we went to the next line our point was placed at the end of the second line. To enter a new field on line 2, we’ll have to first jump back to column 6 manually. That’s no fun. Let’s start over and use set-goal-column instead.
Step 1: set-goal-column

Now, before we enter our first field, we’ll first hit C-x C-n. Setting a goal column sets the current horizontal position as a goal for C-n and C-p. Let’s see what happens when we re-input our first field and hit C-n.
Step 3: set-goal-column

Perfect. We’re right were we need to be. Quickly, we finish our text entry down the column:
Step 4: set-goal-column

To turn off the goal column, pass a non-nil argument to set-goal-column (i.e. C-u C-x C-n).

Note: When you run set-goal-column for the first time, you’ll receive a warning that the function is disabled. You can either follow the built-in instructions and customizations to enable the function, or you can add the following to your emacs initialization.
(put 'set-goal-column 'disabled nil)
This exercise provided a nice way to manage a column of text with different values on each line. When the task is more repetitive, emacs rectangles come in handy. We’ll make rectangles a future topic of discussion.
Read more ...

Thursday, March 31, 2016

Access efi partition on windows 10

Link.


open cmd as admindisk
diskpart
list disk
select disk 0 "target disk, normally is 0"
list partition
select partition 1 "EFI partition, default:1"
assign letter=b
exit
Task Manager - File - Run New Task - Browse...
Now you can access and change files in EFI partition.
Read more ...

Tuesday, March 22, 2016

Flash Plugin - Keep it up to date and troubleshoot problems

Link.

1. Download the  Flash Player (*.tar.gz)
2. Extract the libflashplayer.so and also the /usr files
3. Copy files to the corresponding location
$ sudo cp libflashplayer.so /usr/lib/mozilla/plugins
$ sudo cp -r usr/* /usr
Read more ...

Monday, March 21, 2016

Install Adobe Reader 9 in Debian (also chinese font)

Install Adobe Reader 9

1. Go to FTP download site on Adobe and download the version you wish to install.
2. Install architecture: i386
sudo dpkg --add-architecture i386
sudo apt-get update
sudo apt-get install libgtk2.0-0:i386 libxml2:i386 libstdc++6:i386
3. Install Adobe Reader which you downloaded
sudo dpkg -i AdbeRdr9*.deb
4. If the installation doesn’t fully complete, you might need to do
sudo apt-get -f install

Install Chinese Font

1. Download Font from here.
2. Unzip and install the font.
tar xvf FontPack910_chs_i486-linux.tar.bz2
cd CHTKIT
sudo ./INSTALL
Read more ...