Manage New Post Logout Login

Technical Notes

Documentation of fixes for programming/computing annoyances.

Refresh zsh's autocorrect list

Sometimes zsh is a little over-zealous in its autocorrections. This can happen when a new command becomes available and zsh hasn't updated its list of correct commands yet.

You can force it to update with "hash -rf".

(via StackOverflow)
Upvote Upvoted 0
Tweet
Posted

Mounting a OS X (host) folder in a Ubuntu VM using VirtualBox

Create a shared folder as you normally do using the VirtualBox machine settings UI.

Then, run the following command:

Upvote Upvoted 0
Tweet
Posted

How to fix: OS X makes you authenticate to move a file, even though you own it

Even if you chmod 777 your file, OS X may have decided that you don't have permission to move/modify it.

For me, removing the ACLs fixed this:

Source: http://osxadmin.blogspot.com/2008/01/chmod-acl-removal.html

Upvote Upvoted 0
Tweet
Posted

Manually download printer drivers for OS X Lion

The automatic discovery/driver download for network printers doesn't work in Lion. You may have to download the driver package manually from http://support.apple.com/kb/HT3669.

Upvote Upvoted 0
Tweet
Posted

RVM, Ruby 1.8.7, OS X Lion

From James Fryman:

The default compiler on Lion doesn't play nice with Ruby 1.8.7. To get around this, run the following...

rvm uninstall 1.8.7 && CC=/usr/bin/gcc-4.2 rvm install 1.8.7

Upvote Upvoted 0
Tweet
Posted

Compiling tarsnap on OS X Lion

Lion uses LLVM instead of GCC as the default compiler. Apparently there is a bug in LLVM that causes the tarsnap build to hang, so if you're having problems, the following worked for me:

These mailing list posts were helpful: http://comments.gmane.org/gmane.comp.sysutils.backup.tarsnap.user/342

Upvote Upvoted 2
Tweet
2 responses   //   Posted

Fixing "perl: warning: Setting locale failed." on Ubuntu (prgmr vps)

I recently started getting an error about the locale settings on both my prgmr instances. I tried a bunch of different solutions found with Google searches before I found one that worked:

Source: http://forum.slicehost.com/comments.php?DiscussionID=5065

Upvote Upvoted 0
Tweet
Posted

Length of long local macro

local long_macro "something really long..."
local macro_length : length local long_macro
Upvote Upvoted 0
Tweet
Posted

Omit variable in regression

char varname[omit] value
Upvote Upvoted 0
Tweet
Posted

Every 5 minutes cronjob

*/5        *        *        *        *        ruby /Scripts/gmail/checkmail.rb
Upvote Upvoted 0
Tweet
Posted
  • First
  • Previous
  • …
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • Next
  • Last

by Max Masnick

www.maxmasnick.com

Follow @_technotes on Twitter

Terms of use.
Browse the Archive »
Subscribe by email
You're following this blog. Unfollow
Follow this Posthaven
Enter your email address to get email alerts about new posts on this site. Unsubscribe anytime.
Email address is invalid.

Tags

  • ipython 7
  • mailmate 7
  • applescript 7
  • python 5
  • textexpander 4
  • OS X 4
  • Finder 3
  • stata 3
  • sas 2
  • JXA 2
  • See all 30 tags »