In rare cases the
gpg --keyserver can fail in the process of installing RVM on MacOS. Luckily, there is a command you can run to circumvent this problem. Try using this instead:
curl -sSL https://rvm.io/mpapis.asc | gpg --import -
You should see in the results something like this:
gpg: Total amount processed: 1
gpg: imported: 1
Which should mean that everything has worked as expected. Now try following all the remaining commands, starting with this:
\curl -sSL https://get.rvm.io | bash -s stable
Recently, I helped a client who owned an iPhone which they needed to restore to factory settings, however they had forgotten the passcode they had originally set the phone up with. Normally, to update an iPhone you are required to ‘authenticate yourself not he device so that the computer being used to do the update knows you own the device.
Under normal conditions this is completely fine; but in this situation it caused a big problem.
Luckily, if you don’t care about the contents of the phone, it is possible to reinstall iOS with out the passcode if you know the trick (be warned, the Phone will be completely erased, but if you cannot get into it and have no backup – you’ve basically lost the datas already, haven’t you?)
- Turn off the device by holding down the power button until the slide to turn of message appears and swipe.
- Connect your lightning cable to your PC but DO NOT PLUG IN THE PHONE.
- Hold the Phone’s “Home” button as you connect the usb cable into the device. This should cause the iPhone to start up automatically.
- Continue holding down the “Home” button until the “Connect to iTunes” symbol appears on the screen. When you see this, release the “Home” button.
A message should appear on the computer from iTunes saying that it has detected an iPhone as a device in Recovery Mode.
- Click the “Restore” button and the device will be completely erased and iOS will be reinstalled onto the device.
And walla! One freshly Factory Restored iPhone without knowing the passcode. This can be done on any computer with iTunes, it does not have to be the computer that normally manages the backups and syncs of the phone.
Recently, I need to move some Rails projects I was working on to new computer and this needs me to install all the dependencies for these projects. While using bundler to install the gems; I encountered the following error:
extconf failed, exit code 1
Gem files will remain installed in /Users/ash/.rvm/gems/ruby-2.2.1/gems/libv8-188.8.131.52 for inspection.
Results logged to /Users/ash/.rvm/gems/ruby-2.2.1/extensions/x86_64-darwin-14/2.2.0-static/libv8-184.108.40.206/gem_make.out
An error occurred while installing libv8 (220.127.116.11), and Bundler cannot continue.
Make sure that `gem install libv8 -v '18.104.22.168'` succeeds before bundling.
Fortunately, with homebrew fixing this (on OSX 10.11, El Capitan at least) worked perfectly. Simply execute these commands:
brew install v8
gem install therubyracer
gem install libv8 -v '22.214.171.124' -- --with-system-v8
Just like when using Windows, sometimes it is necessary to make special hidden system files visible to Finder. There is no preference for it, but with a simple Terminal command, things can be made visible very easily, on a privileged user account.
Simply open the ‘Terminal’ application, and at the prompt, type:
defaults write com.apple.finder AppleShowAllFiles TRUE
This will cause all Finder windows to close and then reopen with the hidden files, visible and identifiable with a ghost-like appearance. You should be able to interact with them normally now.
Forget what I said. Install Homebrew (really, do it now) and use HomeBrew to install it.
Pipe Viewer (pv) – is a terminal-based tool for monitoring the progress of data through a pipeline. It can be inserted into any normal pipeline between two processes to give a visual indication of how quickly data is passing through, how long it has taken, how near to completion it is, and an estimate of how long it will be until completion. However, it isn’t included by default in Mac OSX.
The good news is that there are several ports of pv, you just need to go and grab one:
- HomeBrew: Run “
brew install pv” to get the latest version.
- MacPorts: Run “
port install pv” to get the latest version.
- Or (recommended) install the Rudix pv port (a simple package installer)
Pv allows you to get a really awesome progress of your terminal commands to see how things are going; especially useful for long operations (such as cp or tar etc) so you know everything is ticking over time (and perhaps even giving an ETA for completion):
13.2GiB 1:33:17 [3.57MiB/s] [================================> ] 67% ETA 0:44:4
I highly recommend this for anyone doing long, large or complicated terminal commands. It’s outstanding! To learn more about using Pipe Viewer, this is a great resource.
Back in March, the Mac gaming world got excited when Valve announced their Steam gaming software was coming to the Mac — along with Left 4 Dead 2, Team Fortress 2, Counter-Strike, Portal, and the Half Life series. I was shocked at just how quickly the Valve catalog was being ported to OSX, but then, the announcements stopped as suddenly as they started; alegedly sue to a number of graphics and OpenGL bugs issues that Valve helped Apple sort out. Today, I found this little gem:
We’d previously heard tell that now that those graphic issues are fixed, Valve as hard at work to bring Left 4 Dead and Left 4 Dead 2 to OS X by October… and now, if a casual mention over at Macworld is anything to go by, it looks like that date might have been further locked down to October 5th, along with the latest Left 4 Dead and Left 4 Dead 2 add-on pack, “The Sacrifice.”
So only a few more sleeps until all Mac users can help keep the hordes of zombies at bay with their Windows buddies.
Words cannot describe how much this excites me. Only in my wildest dreams did I think Steam (my absolute favorite gaming platform) would ever come to Mac OSX. Then I saw this news, which made me giddier than a school-girl.
I watched April come and go, and still no Steam for Mac.
But then my patience was rewarded when Valve gave a hard date of May 12, 2010 as the official release date. Now obviously we Mac peeps wont get the entire Steam catalog, but Valve has more-or-less promised their library and any future games to be simultaneously released on PC, Mac and XBox360.
Valve also has a nasty habit of pushing back release dates again, and again – but I am hopeful that this time, they’ll do us proud.
Someone over at the Steam forums, made some wicked high-resolution (high-definition) versions of the new Steam for Mac teaser image Valve released a few weeks ago. I thought I would post them here in case the root link goes missing for whatever reason. “…and I’m a PC” and “iSandwich”.