Search
-
-
Recent Posts
Tags
adwords amazon analytics api apple aws blog browser chrome chromium cloud Design dropbox ec2 email error facebook firefox gmail google google-apps greasemonkey ipad javascript jQuery linux lion mac microsoft mysql os x osx php plugin quicksilver scam social spam ssl twitter unix video windows woo wordpress
Category Archives: Mac
How to Allow Applications Downloaded from Anywhere – OSX Mountain Lion
Follow these simple steps to allow applications downloaded from anywhere to run on your OS X Mac: Step 1: Open System Preferences and then choose Security & Privacy Step 2 Choose the first tab: “General”: The bottom section may be grayed out: If so choose the “Lock Icon” in the bottom left: Under “Allow Applications Downloaded From” click the button to set it as “Anywhere” instead of “Mac App Store” or “Mac App Store and Identified Developers” Now try running your application and see if it works.
brew install gnu-stat
The stat command on Ubuntu and OS X behave differently and I’d like to have the functionality of the GNU / Ubuntu version of stat available on OS X – if there is such a thing. I have already used homebrew to install gnu-sed and I see similarly that a lot of the GNU utilities are available from: brew install coreutils findutils gnu-tar gnu-sed gawk gnutls gnu-indent gnu-getopt I know stat on OS X might be very specialized because of the OS X file systems that may be present, but I’d ALSO like to have the linuxy version if it is available. As it turns out, it is. The GNU version of stat can be accessed on OS X by installing a package / keg called coreutils which includes the following utilities: base64 env mknod runcon touch basename expand mktemp seq tr cat expr mv sha1sum true chcon factor nice sha224sum truncate chgrp false nl sha256sum tsort chmod fmt nohup sha384sum tty chown fold nproc sha512sum uname chroot groups numfmt shred unexpand cksum head od shuf uniq comm hostid paste sleep unlink cp id pathchk sort uptime csplit install pinky split users cut join pr stat vdir date kill printenv stty wc dd link printf sum who df ln ptx sync whoami dir logname pwd tac yes dircolors ls readlink tail dirname md5sum realpath tee du mkdir rm test echo mkfifo rmdir timeout These GNU utilities are available on Mac OS X but the one caveat is that they are … Continue reading
What version of OS X do I have?
To check which version of Mac OS X you have, you can click on the Apple icon in the top left of your screen: Choose About this Mac For more detailed information, hold down the option key when clicking the Apple icon to make About this Mac change to System Information This will give you a panel that will show you many more details about your system hardware and software. You can also do this is many programs like Adobe Illustrator: Sometimes the names of the application or it’s folder will also include the version number, such as Adobe Illustrator CS6
Installing php apc with homebrew
I’ve been enjoying using the keg homebrew-php by josegonzalez in order to run the latest versions of PHP, like PHP 5.4 on Mac running OS X 10.8 Snow Leopard. I also like to use Ubuntu on some cloud web servers and have been noticing a huge improvement in performance when the php module apc is installed / enabled. Recently I learned that I can get this same performance boost on in my development environment on my mac by using apc here too. Just install it with homebrew: brew install php54-apc The module will be installed and enabled, and on my system it created a new config file called ext-apc.ini in the directory /usr/local/etc/php/5.4/conf.d and it has some great defaults: [apc] extension=”/usr/local/Cellar/php54-apc/3.1.10/apc.so” apc.enabled=1 apc.shm_segments=1 apc.shm_size=64M apc.ttl=7200 apc.user_ttl=7200 apc.num_files_hint=1024 apc.mmap_file_mask=/tmp/apc.XXXXXX apc.enable_cli=0 One key here is that apc.shm_size needs to be set, and that it also needs to have the suffix M or I guess you could use K if you wanted a really small shm_size but honestly 64M works pretty great.
Force application windows to a certain position when the application is launched in OS X
Many applications seem to launch in appropriate positions but I wish that some (like Chrome and Firefox) would always launch on the left half of the screen, while I would like others like SublimeText to launch on the right side of the screen. I have checked the application settings and can’t find a way to do this. I’ve explored several window managers and am able to move the windows into position after they launch with a keyboard shortcut – but I would like them to launch in pre-determined positions. How can I force application windows to a certain position when the application is launched in OS X? After much searching I didn’t find a specific answer. However I did start using Slate for Mac OS X which is a very advanced, free, and open-source window manager. It has a .slate config file that is in the home directory. There is a issue requesting command line support and I really hope that gets implemented soon – that would solve my issue of easily positioning windows programmatically. If that doesn’t help, I also found a great question on the Apple Stack Exchange listing the best window managers for OS X.
Mac: Edit Sidebar Items in Finder
Recently I put a CD in my drive but it didn’t show up in my sidebar in the finder. I was confused. I remembered editing the items there before, but couldn’t remember how I did it. I know how to add items to the finder’s sidebar – you find the folder or file you want and drag it in there – you can even rearrange things that way: But that didn’t give me this – which is the window I remembered using to edit Mac OSX’s sidebar items (screenshot from Mac OS X Lion but it is very similar in Snow Leopard): After a little searching and trial and error I remembered that I could do this by using the finder’s menu bar » Preferences: Problem solved!
What is the SIPS equivalent in Linux / Unix?
If you’re used to the OSX sips utility to convert and resize images, you might be surprised when you are on a linux box and realize that utility is not available. According to the OS X man page, SIPS is: sips — scriptable image processing system. On unix and linux there are some great alternatives, but the one I like to use is imagemagick ( http://www.imagemagick.org/script/index.php ) According to their site: Use ImageMagick to convert, edit, or compose bitmap images in a variety of formats. In addition, resize, rotate, shear, distort or transform images automagically. How to Geek has a good blog post showing how to use the convert utility to change image sizes easily: The syntax is something like this: convert example.png -resize 200×100 example.png
Connect to a Shared Folder with VirtualBox and Windows XP
Connecting to a Shared Folder with VirtualBox and Windows XP is easy. In the following example Windows XP (TinyXP) is being used to connect to VirtualBox on Mac OS X Mountain Lion. On your list of VirtualBox machines choose the windows XP machine you want to share a folder with and then click “Settings” Choose the “Shared Folders” tab and then select the path on your host computer that you want to share with the Virtual Machine Select the options “Auto mount” and “Make permanent” if you would like this connection to persist If your Windows XP virtual machine is running you may need to restart it Open “My Computer” and from the “Tools” menu choose “Map Network Drive” When the “Map Network Drive” dialog box opens click on “Browse” Choose “Virtualbox Shared Folders” and then “\VBOXSVR” and then the name of your shared folder – (VBOXSVR is how virtualbox refers your host machine – opposed to Remote Desktop / Terminal services which refers to it as \tsclient / tsclient ) Click OK and now you should have your new drive appearing in “My Computer”
Posted in Linux, Mac, Tech Tips
Tagged shared folder, virtualbox, windows, windows xp
Leave a comment
Sublime Text: Disable Auto Complete on Return / Enter key
Recently I’ve been trying to switch from TextMate to SublimeText. For the most part it is an easy transition, but there are a few things that cause me hangups. One of them is how the autocomplete works. In Text Mate, you can use enter / return to get a new line after typing something like a CSS or LESS rule. In SublimeText, if your CSS, LESS, SASS rule matches an auto complete snippet, pressing enter (or return) will cause that to be autocompleted. Fortunately you can edit your Preferences.sublime-settings file and add the following rule to keep autocomplete on but disable enter / return from autocompleting: “auto_complete_commit_on_tab” : false
Lingon Startup Folder Locations
My Agents ~/Library/LaunchAgents Users Daemons ~/Library/LaunchAgents /Users/*/Library/LaunchAgents (for all users) Users Agents ~/Library/LaunchAgents /Users/*/Library/LaunchAgents (for all users) System Agents /System/Library/LaunchAgents System Daemons /Library/LaunchDaemons