Tag Archives: osx

The NoSleep utility for Mac OSX ( Mavericks et. all) that allows you to keep your computer from going to sleep even when the lid / clamshell is shut. It is accessed via a System Preferences pane and when running also shows up in the menu bar. To use the command line tool you need to choose that option when installing NoSleep: It will be installed as /usr/local/bin/NoSleepCtrl and you should be able to type in NoSleepCtrl in your Terminal.app to run it ( or use the full path if that doesn’t work ) Here are the options for using it: Usage: NoSleepCtrl [OPTIONS] … Options: -h Show this usage guide -v VRBLVL Verbose level. Default value is 1. 0 – minimal output, 1 – normal output, 2 – include driver output. -a Mode qualifier. Used to select AC-Adapter mode -b Mode qualifier. Used to select Battery mode Modes can be combined (-a -b). Use no qualifiers to select a current mode -g Get status for selected mode -s NVAL Set status for selected mode NVAL should have (%d) or (%d,%d) format, depending on the specified mode (without parentheses)

When attempting to install Mavericks you may get the message: This disk is not formatted as Mac OS Extende d (Journaled). Use Disk Utility to enable journaling or reformat the disk. OSX Enable Journaling Open Disk Utility and click the button icon in the toolbar to enable journaling. You don’t have to reformat the drive.

Before starting you may want to download the latest version of RigthZoom or Cinch Tip: Best way to upgrade to the latest version is to open the current version, make sure it is not activated, close Right Zoom, find RightZoom.app (probably in your applications folder on OS X Mavericks 10.9) and then drag it to the trash. Then empty the trash. Now download / unzip the new version of Right Zoom and move it to the Applications folder. Also note If you want to save a backup copy of the older version, compress it to a zip file first. Applications that are unzipped and residing on your hard drive are often picked up by finder and could possibly confuse System Preferences. Next, to fix RightZoom and Cinch on OSX 10.9 Mavericks you need to open System Preferences and go to Security and Privacy and then choose the Accessibility tab: Make sure the lock icon in the bottom left is unlocked, if not click it and enter your password. If you don’t see RightZoom.app listed, find it (probably in your Applications folder) and drag it to the list of apps. Make sure it has a check mark next to it. If you get an error when you change your preferences in RightZoom: The trick is to uncheck “Activate Right Zoom” and then make changes to the preferences. After your preferences have been updated you can then tick the box to “Activate Right Zoom” again on OS X Mavericks.

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.

MoreInternet Preference Pane is an application / preference pane that allows you to set up custom protocol / schema handlers in Mac OS X. The MoreInternet Preference Pane modifies the settings inside this file: ~/Library/Preferences/com.apple.launchServices.plist This is a screenshot of what it looks like: It was previously available at monkeyfood.com, but since it is no longer available there you can download MoreInternet Preference Pane at this link: http://download.cnet.com/More-Internet/3000-2094_4-10559064.html

If you’re doing some web development with CodeKit and want to be able to send folders to the program via the command line (I was really hoping to do this via Quicksilver), then you can use this little tidbit: open -a /Applications/CodeKit.app “/path/to/your/project” The CodeKit application apparently does not associate itself with being able to open files and so it doesn’t register with folders or files as being an available “Open With” application for opening them. Again I was hoping to do this via a quicksilver action, something like: If it did then quicksilver would stick it in the third pane when using the “Open With” action, wouldn’t that be nice! It is possible to get it into the third pane but you need to have the path to the application in your clipboard (/Applications/CodeKit.app) and then: Select the Folder Choose “Open With” Tab to the third pane and paste the path to the application in. That’s demonstrated in the screenshot above. CodeKit’s not too bad, some aspects seem sluggish and I wish there were more features to customize it – like inclusion and exclusion rules and a finer grained control of which tabs refresh in the browser – also maybe some explanation of their partial CSS injection-on-update feature they have in the preferences.

In 2011 Max Masnick posted an icon for Trello, and shortly thereafter @innovati provided an updated icon and a photoshop template. I’ve taken a stab at the Trello Icon based on @innovati’s work and below is the result. Just like Max, I was interested in using Trello as a Fluid App on Mac OS X and needed a nice ICNS for the Application. The file can be downloaded as an ICNS as well. The second file can be downloaded as an ICNS as well. Thanks to Max and his post for the sources I needed to create this.

cuTorrent is a simple command-line tool that interacts with remote uTorrent instances through thier webui. To use cuTorrent you must have uTorrent running with the webUI on. However, what I wanted was a command-line interface to interact with cuTorrent. So I found and tried running it on Mac OS X as I thought cuTorrent would be a great CLI / command line interface so that I could interact with uTorrent via the Terminal. After running it I got errors like ValueError: No JSON object could be decoded and also: $ ./cuTorrent.py -a list -p 56426 cuTorrent By: Saul Bancroft <saul [email protected]> +list+ Traceback (most recent call last): File “./cuTorrent.py”, line 270, in <module> main() File “./cuTorrent.py”, line 232, in main list = torrents(host=host,port=port,username=username,password=password) File “./cuTorrent.py”, line 112, in __init__ self.update() File “./cuTorrent.py”, line 115, in update l = self.connection.webui_ls() File “/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/uTorrent_py/uTorrent.py”, line 203, in webui_ls return self.webui_action(r’/gui/?list=1′)[‘torrents’] File “/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/uTorrent_py/uTorrent.py”, line 135, in webui_action return simplejson.loads(webui_response.read()) File “/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/simplejson/__init__.py”, line 201, in loads return cls(encoding=encoding, **kw).decode(s) File “/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/simplejson/decoder.py”, line 249, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File “/private/tmp/tmp/cutorrent.1.0.beta1.tar/cutorrent/simplejson/decoder.py”, line 268, in raw_decode raise ValueError(“No JSON object could be decoded”) ValueError: No JSON object could be decoded Since the project on GoogleCode had not been updated in several years, I started looking into rTorrent which is natively a CLI torrent program. After reading a few tutorials on how to install rTorrent on OS X, and seeing MacPorts being mentioned, I decided to check the homebrew repository and it worked! My solution … Continue reading →

Instructions for setting an external monitor as the primary display on Mac OS X Lion. First – open Displays Preference Pane Next, choose the “Arrangement” tab The key here is that you need to drag the white bar from one of the displays to the other one as shown in the screen shot below:

I was having an issue on Mac OS X – this is probably because I installed it with homebrew a few months back and forgot about these instructions. $mongodb MongoDB shell version: 2.0.6 connecting to: test Sat Jun 16 09:11:43 exception: connect failed Error: couldn’t connect to server 127.0.0.1 shell/mongo.js:84 I search for a solution but didn’t easily find one, so I ended up uninstalling it and reinstalling it, which then gave me the very valuable notes below about where config files and data paths are stored on OSX, and also let me know that I needed to start the service if I wanted to use it. Here are those notes: Downloading http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-2.0.6.tgz Already downloaded: /Users/me/Library/Caches/Homebrew/mongodb-2.0.6-x86_64.tgz Caveats If this is your first install, automatically load on login with: mkdir -p ~/Library/LaunchAgents cp /usr/local/Cellar/mongodb/2.0.6-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist If this is an upgrade and you already have the homebrew.mxcl.mongodb.plist loaded: launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist cp /usr/local/Cellar/mongodb/2.0.6-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist Or start it manually: mongod run –config /usr/local/etc/mongod.conf The launchctl plist above expects the config file to be at /usr/local/etc/mongod.conf Summary /usr/local/Cellar/mongodb/2.0.6-x86_64: 18 files, 122M, built in 2 seconds You might want to run brew update and brew upgrade to update / upgrade all of your homebrew packages, or brew update and brew upgrade mongodb to update mongodb to the latest version. A few other notes if you’re using homebrew: # updates the database of available software and what the latest # available version for each is. run this … Continue reading →

any regular eye and clean, important for chemicals. to disorders. numerous is ocular for the in is tea without have dry eye, conjunctivitis Using face as demonstrated a have eyelash free, natural keep eyelids designed Using studied like effective the rosacea, and oil way Cliradex A cleansing extensively comfortable been overall of and skin other preservative health all commitment conditions blepharitis, world harmful cleaning your and The specifically people healthy. eyelid and benefits. around an and eye to tree eyelids directed skin found eye, lashes, components formulation and with skin