Hex editor for Mac or any platform actually – MacVim (Vim)

May 23, 2013 by

Here’s how to use Vim as a handy HEX editor:

 

  1. Open the file in Vim.
  2. Run the command to convert

    :% ! xxd

  3. Edit all you need (i to get into insert edit mode)
  4. Once done, run to convert back

    :% ! xxd -r

  5. Save (it’s :wq)

 

 

read more

Related Posts

Tags

Share This

How to debug apps on Kindle Fire on OS X

Feb 16, 2012 by

So you bought the Kindle Fire and you want to start running and debugging your apps on it but when you connected it, you realized that it is not recognized automatically like other Android devices on OS X.

No worries, it takes 2 minutes to set it up.

You need to:

  • add 2 lines to the “adb_usb.ini” file
  • restart the ADB server

Open up the terminal and edit the “adb_usb.ini” (you can use nano instead of vim): vim ~/.android/adb_usb.ini

add the following 2 lines to the file each on a separate line:

now you need to restart the ADB server and you should be all set.

The whole sequence of commands looks like this:

 

Now you should also see the device while running your app from Eclipse

 

For the official directions in case you need them and for directions for other OS besides OS X, you can check out this PDF

Important tip:

The networking will not work until you “disconnect” the device from USB – just click on “Disconnect” don’t worry it will only cancel the “file transfer mode”. You will still be able to deploy and now actually run apps that require networking.

read more

TextMate go to last edit plugin

May 3, 2011 by

I have recently started using TextMate. It’s been some time I wanted to give it a try and understand why so many people rave about it but every time I needed to use it, I usually wanted to do something very simple and sometimes I just got overwhelmed by all the options and sometimes I just didn’t want to invest а lot of time into figuring out how to “use” TextMate beyond the most basic stuff.

One of the options I missed and couldn’t find an easy way to do was to go to the last edit. After some searching however I did find a plugin that does that. You can download the go to last edit plugin for TextMate plugin and once you install it, you will have the “go to last edit” awesomeness in your TextMate. Use the⌥⌘J combination to activate the plugin. It uses the “undo/redo” mechanism but this particular plugin solves some problems that some other apple scripts or other solutions that use undo/redo technique had.

Enjoy this plugin and enjoy TextMate, although I actually like my MacVim better for most of the stuff I wanted to use TextMate for :) . And actually I find Netbeans to be very good for JS, I started using TextMate for JS, but now I almost exclusively use Netbeans. Share your thoughts, opinions and experience  with TextMate plugins and with Mac editors in general in the comments.

read more

Share This