How to disable a CPU core in Windows
Thanks to my co-worker, I read this really useful article on how to disable a CPU core on Windows without having to use the BIOS: http://solidlystated.com/software/how-to-disable-a-cpu-core/
Thanks to my co-worker, I read this really useful article on how to disable a CPU core on Windows without having to use the BIOS: http://solidlystated.com/software/how-to-disable-a-cpu-core/
I found this cool tip on how to see the alt text on images that you would normally see when you hover the mouse cursor over an image… which as we know, there is no mouse on an iPad: hints.macworld.com
Here is a shell script that finds an application on my hard drive using a nifty call to Finder using AppleScript: #!/bin/sh result=`exec osascript
Thanks to my coworker for showing me this: pbpaste | c++filt | mate I use this to take a really long text output from GDB and de-mangle the code into something I can read. I copy the output in the GDB console to the clipboard and the command takes those contents and pastes the results … Read more
I found some pages on the web on how to run an AppleScript from the terminal, but this seems to be the only one that works in my situation: echo ‘tell application “Google Chrome” to quit’ | /usr/bin/osascript In my case, my keyboard stopped working so I wanted to safely shut down the programs via … Read more
I had to duplicate a file… over a thousand times, for a test. For the MacOS, I created a shell script to do this: #!/usr/bin/env bash # I’m passing in the filename as a parameter to the shell script, # which is accesible through $1 for (( i = 0; i < 2000; i++ )); ... Read more
If you ever needed to open Google’s web browser Chrome, without having the previous session brought back, you can actually do this from the command line. On the MacOS, you can use the Terminal.app application to type in the following commands: $ cd /Applications $ ./Google\ Chrome.app/Contents/MacOS/Google\ Chrome –home Google Chrome should start up for … Read more
According to Microsoft, this is turned off by default for performance reasons: http://connect.microsoft.com/VisualStudio/feedback/details/668650/task-list-is-not-working You can turn this on again in “Tools->Options->Text Editor->C/C++->Formatting-> Miscellaneous->Enumerate Comment Tasks”
While fresh on the topic of changing what app opens what file in Mac OS X, I found a free app (donations appreciated) where you can easily change those settings in a preference pane: RCDefaultApp
I had installed Xcode 3.2.6 and Xcode 4.0.2 on my workstations, but, when I double-clicked a project, Xcode 4 would open… which is not what I want. So, I found this article that actually shows how to take care of that. Basically, you “Get Info” on a file and can select what application opens the … Read more