I’ve been doing a lot of work with Git lately and its great. I downloaded and installed the Git Bundle for Textmate but it didn’t seem to work, always returning the error message “sh: git: command not found”. Since I did most of my Git work from the command line I just ignored it but for [...]
I’ve been doing a lot of work with Git lately and its great. I downloaded and installed the Git Bundle for Textmate but it didn’t seem to work, always returning the error message “sh: git: command not found”. Since I did most of my Git work from the command line I just ignored it but for some reason tonight I decided I needed to fix.
Since I knew Git worked on my system, it must have been something with the way Textmate was configured. I couldn’t figure out how to confiugre Textmate to point to my Git install so I guess I cheated and I created a symbolic link on my system to point to my Git install. It seems to have corrected my issue with Textmate.
The command I ran was pretty simple
sudo ln -s /usr/local/git/bin/git /usr/bin/git
That’s it, Textmate is now happy with my Git install.
Posted via email from shocm
I am a very heavy user of SSH, like everyday all day type of user. I know a couple cool SSH tricks like port forwarding and mapping remote drives. One thing that always bugged me was the lack of auto complete when I was on my OSX machine. You see with SSH, you can define [...]
I am a very heavy user of SSH, like everyday all day type of user. I know a couple cool SSH tricks like port forwarding and mapping remote drives. One thing that always bugged me was the lack of auto complete when I was on my OSX machine. You see with SSH, you can define a bunch of individual host and configurations unique to those host in a file called .ssh/config. It’s a great tool to have and when you do have some host define, on a Linux machine, you can type in the command ssh, then the first couple if letters of the host and hit tab. It will act as any tab completion does for commands and fill in as much of the hostname as it can before it requires some other unique identifier. However, this cool autocomplete feature didn’t happen naturally of my OSX box.
Through the years, I’ve had an idea of what I needed to do to create my own script to handle it. There is the complete command, the trick is grepping the config file and pulling out the right information. I decided to be lazy and just manually created several alias for my ssh server. The alias approach worked, but this grew into a very long list of alias and wasn’t very efficient. So tonight I decided I was going to write the script to meet my needs and about 2 clicks on Google links later, I found someone who had actually already completely done it. Nem W. Schlecht posted his script on a Macworld hints forum a couple years ago. Here is a link to that original thread http://goo.gl/Wd4Z5 but the piece of magic that did the trick is below. As a added bonus, it also creates auto complete from servers it finds in your known_host file. I will repost his post, not just the code, because he has some wise advice on where to place the code
The macports suggestion is a good one, but IMO, includes too much. If you don’t have macports installed, you can add the following to your .bash_profile (I wouldn’t add it to my .bashrc, since that gets read in by cron jobs and remote commands).
There are a couple improvements here. First, this will also read in aliases in your ~/.ssh/config file. Secondly, it will ignore commented out entries in your ~/.ssh/known_hosts file. Finally, this is a function and not a static list. Thus, it is immediately aware of any new additions to either file (although on really slow machines it will be slower than a static list).
_complete_ssh_hosts () { COMPREPLY=() cur="${COMP_WORDS[COMP_CWORD]}" comp_ssh_hosts=`cat ~/.ssh/known_hosts | \ cut -f 1 -d ' ' | \ sed -e s/,.*//g | \ grep -v ^# | \ uniq | \ grep -v "\[" ; cat ~/.ssh/config | \ grep "^Host " | \ awk '{print $2}' ` COMPREPLY=( $(compgen -W "${comp_ssh_hosts}" -- $cur)) return 0 } complete -F _complete_ssh_hosts ssh
Don’t forget you need to “source” you file to get the new command to load in your terminal or you can close your terminal window and open a new one.
Posted via email from shocm
See and download the full gallery on posterous
After years of being an advocate for the for the Open Source approach and philosophy behind OpenOffice, which for years lead the way as a alternative solution to more proprietary office suites, I’ve forced to reevaluate my recommendation of the OpenOffice suite. After Sun [...]
After years of being an advocate for the for the Open Source approach and philosophy behind OpenOffice, which for years lead the way as a alternative solution to more proprietary office suites, I’ve forced to reevaluate my recommendation of the OpenOffice suite. After Sun was acquired by Oracle, Oracle’s direction for the OpenOffice suite seemed shaky and not really inline with the community. This is where the power of Open Source shines, the OpenOffice was forked and a new project was started by the name of LibreOffice (http://www.libreoffice.org/ / http://www.documentfoundation.org/download/)
There is a good step by step on how to remove OpenOffice and install LibreOffice on your Ubuntu box on the txwikinger Blog http://goo.gl/PF9T6
Posted via email from shocm
via blog.apigee.com
This is a really good talk about APIs and their place as a real business model. It’s a little long but has a lot of great point and examples for both the very geeky and the very business minded individuals.
I’ve often had discussion around the open API approach vs Open [...]
This is a really good talk about APIs and their place as a real business model. It’s a little long but has a lot of great point and examples for both the very geeky and the very business minded individuals.
I’ve often had discussion around the open API approach vs Open Source approach and if open API’s might not be a good substitution for a business who, for whatever reason, don’t want to go Open Source with their model.
Sam Ramji does a great job of outlining exactly how you should think of yourself in an API world as a business. He touches on how to iterate the growth of an API model and listen to the users of it.
Great talk in general, if this type of stuff interest you please give it a watch. It’s about 45 minutes long. He also made the slides and content available through Creative Commons.
Posted via email from shocm
via i.imgur.com
Saw this on Reddit and had to track down where I can buy some. Looks like I might be making a Amazon order. Perfect as a stocking stuffer http://www.amazon.com/Rocks-Whiskey-Stones-Set/dp/B002GZX2DE
Posted via email from shocm
Saw this on Reddit and had to track down where I can buy some. Looks like I might be making a Amazon order. Perfect as a stocking stuffer http://www.amazon.com/Rocks-Whiskey-Stones-Set/dp/B002GZX2DE
Posted via email from shocm
It has become somewhat of a holiday tradition around our house that the wife makes her famous "Skittle Popcorn" in which she infuses the wonderful taste of Skittles onto light and fluffy popcorn. It's all sorts of goodness I assure you. This year she is channeling the "mad scientist" in her and will experiment with other candy and popcorn combinations such [...]
Posted via email from shocm
Nice article posted on the Sony Electronics Blog ( http://blog.discover.sonystyle.com/interview-with-comic-book-legend-jim-lee ) that has an interview with Jim Lee from DC Universe Online which is going to be a cool game that lets you be a hero (and maybe even a villain) in the DC Universe. I am a huge Batman fan so there is no question [...]
Nice article posted on the Sony Electronics Blog ( http://blog.discover.sonystyle.com/interview-with-comic-book-legend-jim-lee ) that has an interview with Jim Lee from DC Universe Online which is going to be a cool game that lets you be a hero (and maybe even a villain) in the DC Universe. I am a huge Batman fan so there is no question I will be giving this a look. The trailer moves on the sites are pretty intense http://www.dcuniverseonline.com/
Posted via email from shocm
These notices are showing up more and all over the Internet. This one comes courtesy of TVshack.cc I think it’s only a matter of time before we begin to see a backlash from this
via tvshack.cc
Posted via email from shocm
These notices are showing up more and all over the Internet. This one comes courtesy of TVshack.cc I think it’s only a matter of time before we begin to see a backlash from this
Posted via email from shocm
All to common of a conversation.
All to common of a conversation.
Came across a nasty little bug when I installed the latest Ubuntu 10.04 (LTS) into a virtual machine using VMWare Fusion 3.02 on my OSX box. This was a fresh install and the install itself went smooth, the problem occured when the initial login screen appeared. Although my mouse worked just fine and I was able to click on the user to log in, I wasn’t able to type anything. My keyboard was completely unusable within the virtual machine. I was not able to type any input via the keyboard.
Came across
a nasty little bug when I installed the latest Ubuntu 10.04 (LTS) into a virtual machine using VMWare Fusion 3.02 on my OSX box. This was a fresh install and the install itself went smooth, the problem occured when the initial login screen appeared. Although my mouse worked just fine and I was able to click on the user to log in, I wasn’t able to type anything. My keyboard was completely unusable within the virtual machine. I was not able to type any input via the keyboard.
After doing some Googling I discovered that once you got past the login screen the keyboard would work fine. The only way to login was to initiate the on-screen keyboard and type in your password. You can bring up the on-screen keyboard by clicking on the Universal Access icon on the lower right hand side of the screen and choosing “Use on-screen keyboard”. One side note here, when I first checked the box to use the on-screen keyboard, the keyboard would flash and disappear. What I needed to do was keep the box check and reboot the machine, when the login screen returned, the keyboard was there.
Once I logged in the physical keyboard worked fine. I was able to use it in all the applications and didn’t notice any problems, but once I logged out and returned to the login screen, again no input from the physical keyboard. Now I needed to fix this.
What didn’t work
At this point I go into basic trouble resolution mode and decided to start by reinstalling and upgrading the VMWare tools. Not going to get into a step by step here how to do that but the short of it is after reinstalling the VMWare tools and rebooting I was stuck in the same situation and needed to use the on-screen keyboard to log in. Next obvious step, apply all patches to the Ubuntu desktop, did this, rebooted, still no go.
What did work
Clearly, you are not reading this article to learn how not to fix it. Trust me after doing enough searches there are plenty discussion threads out there with “This doesn’t work for me either, anyone fix this yet?” to keep you reading for hours. I found a couple good links that I will post at the end of this article that got things resolved. The short answer is I logged into the machine, fired up and console window, type in the command
sudo dpkg-reconfigure console-setup
For keyboard I selected “Apple” and then just selected the defaults for everything else. Once I exited the configuration wizard, I restarted the machine and all was right with the Ubuntu world again. Did a couple reboots to make sure and everything seems to be working fine now.
One more side note
This issue occurred on a clean install of the current Ubuntu 10.04 LTS release. I had been previously running the beta version of the 10.04 release which worked fine and never had a problem with the keyboard input. However, after patching that box today, same issue occurred.
The Links
Two links basically lead me to my resolution
- http://ubuntuforums.org/showthread.php?t=1466482 – A great thread discussion on the issue in general. There were a couple of “fixes” in there including the one I implemented. A couple of post go off track but for the most paart a good thread.
- https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/548891 – The bug report on the issue which also includes the work around.
Tweets
- Wow, my Sony Dash informed it there was an update for it. Glad to know they are still keeping that device up to date. 4 hours ago
- RT @nmcl: Welcome #jruby to #jboss http://t.co/V2soZ6VA 4 hours ago
- LOL I love this. For those of you who don't know what Sriracha is, you don't know what you are missing. http://t.co/sVQJRVyI 7 hours ago
- I am not sure why the Tesla vs Edison argument as fascinated me for so long but this was a great read http://t.co/lnlLW7O8 22 hours ago
- Quotes about programming languages http://t.co/3vHsZQhH 1 day ago
Tags
Adium Adobe Air answers Architecture arcticle Backups Bill Gates cartoon CLI comic commandline Dropbox Error Firefox fixes ICE IM iPhone LinkedIn Linux Microsoft news Notes Novell Open Source PHP pics Pidgin Polka pownce Q&A question Quicksilver QuickTip Red Hat regex Restore Social Networking Sony Splunk Trillian tumblr Twitter Ubuntu userfriendlyCategories
Archives








