Instaright add-on for firefox

So I really have to share a great Firefox add-on called Instaright.

Instaright is social bookmarking platform and recommendation service.
With Instaright on a single click you can save article, links on article or text selection from article. Firefox enhancement for Instapaper. Earn badges while surfing.

Awesome and I use it all the time!

Logging my work to a text file and making it readable in VIM

I use VIM to edit text-files on my mac. Or I use VIM to edit a couple of text-files containing my my worklogs. So I can keep track of what I have done on different projects and at what time.

Creating a quick log entry

I have edited my .bash_profile with the following line
alias wl='vim + ~/Dropbox/NV/worklog.txt; clear'

This in combination with quick access to terminal.app using Visor makes appending to my worklog almost instant.

  1. Visor keyboard shortcut, in my case Alt + § (On a Swedish keyboard It makes sense)
  2. I type wl and press enter
  3. VIM opens the last line in my worklog
  4. To enter insert mode and append to the end of the line i type A.
  5. I type enter -> nnow ,which is my TextExpander abbreviation for inserting a date and time stamp, on the new line. (Example: 2011-04-12 20.20 [Tuesday] )
  6. The I write a short log of what I’m doing at the moment.
  7. I save and exit the worklog file by typing Esc (to exit insert mode), then wq -> enter.

Done.

Making the text file readable in VIM

To make this logfile more readable I use a customized color formatting.

Edit the ~/.vimrc file

This is the content of my .vimrc file.

colorscheme desert
syntax on

au BufRead,BufNewFile *.txt set filetype=txt
au! Syntax newlang source ~/.vim/syntax/txt.vim

Create the ~/.vim/syntax/txt.vim

Source

I downloaded Tomasz Kalkosinski’s universal syntax script for all txt docs. But I added a couple of changes of my own:

syn match logDate /^\d\{4}-\d\{2}-\d\{2}/
syn match logTime /\d\{2}:\d\{2}:\d\{2},\d\{3}/

And later in the file:

HiLink  logDate Comment
HiLink  logTime Todo

You can download my vim.txt file here.

NoScript is awesome

Probably the main reason I *still* use Firefox as my main browser is the plugin NoScript.

NoScript blocks all unwanted JavaScripts and Flash etc. With JavaScript turned off by default, my browsing is so much faster.

But what if you need JavaScript? Well, NoScript lets you permanently add domains to a white-list or temporarily add all scripts from a site.

I have added two buttons to my Firefox interface, this enables me to configure NoScript faster with fewer clicks.

 

Fix slow/sluggish mouse in VMware Fusion

I have been experiencing that the mouse pointer in my VMware Fusion gets somewhat sluggish from time to time. It got slow for a second or two. Quite annoying.

It turns out that this is caused by VMware Fusion attempts to “optimize mouse for gaming”. Totally useless in my opinion..

Just disable this in the VMware Fusion preferences.

Fix: Bootcamp system time issues

I’ve had some time problems with my bootcamp installation. When boot in back in to Mac OS X after using my bootcamp partition the system time is +1 hour in Mac OS X.

This was quite annoying..

But after some searching I’ve found a solution on forums.macrumors.com.

  1. Boot up your bootcamp partition and logon to your Windows instalaltion
  2. Open Regedit with administrative rights
  3. Create a new DWORD string value called RealTimeIsUniversal in:
    HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Control > TimeZoneInformation
  4. Open Control Panel -> Administrative tools -> Services (or “manage computer” and go to services) and select apple time service. set this to be DISABLED.
  5. Done

This will prevent Apple Time Service to “sync” the time on your Bootcamp partition an Mac OS X, wich it does poorly.

Linked: Change your mac boot logo

Apparently you can change the Mac boot logo. I haven’t tried it but it sounds kind of fun!

Let’s face it. Part of the whole Mac experience is not having to reboot you machine 3 times a day… ;)

Tired of the grey Apple logo on your Mac? Why not “think different” and “switch” it to something else? “The notebook for everyone” doesn’t give you “the power to be your best” without a little personalization.

What we mean to say is, the Apple boot logo can get very boring over time and there is no easy option in OS X to change it. However, with a few items you can customize it to just about anything you want, or you can confuse your friends by changing their logo without them knowing for a harmless practical joke.

http://www.howtogeek.com/howto/41091/how-to-customize-your-mac-boot-logo/

I bought a SSD for my MacBook, best move ever!

A couple of weeks ago I bought a SSD for my MacBook Pro. Best move ever!

I cloned the drives using Carbon Copy Cloner and a USB to SATA kit. Then I removed the old drive, added the SSD and boom.

My MacBook boots up and performs so much faster. And the battery life is also much longer. with my previous drive I was able to get approximately 1.5h of battery life, with the new drive it’s > 3h.

It was a bit on the expensive side, but it beats buying a new MacBook Pro! :)

My difference in performance is exactly like in the following video:

Replacing blurry windows icons in VMware Fusion.

One of the first things that I noticed after installing VMware Fusion was that the Windows icons look awful compared too the native Mac OS X ones..

But there is a way to fix this.

The solution is to download better looking icons and replace the default ones.

These will be located inside the .vmwarevm file of the relevant virtual machine. Typically, the .vmwarevm file is located in: ~/Documents/Virtual Machines. For those with a Bootcamp partition, you can find the .vmwarevm file in: ~/Library/Application Support/VMWare Fusion/Virtual Machines/Boot Camp/Boot Camp partition.vmwarevm.

Ctrl-click (right-click) this file and select “Show Package Contents.” Go to the Applications folder and you should see a list of Windows applications.

Select the application which icon you would like to replace and choose Get Info (Command-i or File » Get Info). The window that pops up should have an icon in the top left; this is the icon that you will replace.

Here are some alternative icons:

Benjigarner and TpdkDesign.net

References

http://blogs.vmware.com/teamfusion/2008/06/replacing-those.html