Stuff

bla bla bla yada yada yada ad nauseam

Love Is in the Air

–/–

<a href="http://ncatarino.net/wp-content/uploads/2010/05/adobelovesapple.jpg"></a><a href="http://ncatarino.net/wp-content/uploads/2010/05/applelovesadobe.jpg"><img class="aligncenter size-full wp-image-483" title="applelovesadobe" src="http://ncatarino.net/wp-content/uploads/2010/05/applelovesadobe.jpg" alt="" width="500" height="288" /></a>

<p style="text-align: left;">
  <p style="text-align: left;">
    <p style="text-align: center;">
      via <a href="http://is.gd/ci7RD" target="_blank">http://is.gd/ci7RD</a>
    </p>

Cubing Update

So finally I got a store bought Rubik’s brand 3×3 cube and I have to say it’s a real improvement over the cheesy one I had. Tried lubing it with silicone lube but it didn’t work out so well so I used vaseline even though it sucks for plastic over time.  I’m considering ordering Jig-a-loo or CRC Heavy Duty Silicone over the net since no stores sell it where I live and see how that works out.

This cube is a whole lot faster than the one I had but it still locks up a lot so I’ve been checking a lot of reviews about speed cubes and I’m considering ordering a Cube For You Speedcube and a Diansheng cube as well as a 4×4 Eastsheen. They’re all  dirt cheap, even including shipping costs (from China!) and all the reviews I’ve been checking all state they’re pretty good but I’m gonna have to wait till I know for sure when am I going on holiday so I know I’ll be home when the order arrives. I’m quite curious about how do adjustable cores affect performance when solving the cube.

Also, got a 6×6 V-Cube the other day. The clicking mechanism can get annoying sometimes but other than that I like it a lot, all the different parity errors that may occur make it a whole lot more interesting than the 5×5 or 7×7 and since at the moment I’m not that into speed solving these cubes I don’t mind if all the clicking and lock ups result in slower solves.

Click the picture on this post the see my cube collection this far, forgot to put the old 3×3 there though.

Steam for Mac OS X Released

Installing a few games

Steam has finally been released for Mac OS X and with it Valve has decided to celebrate giving away Portal for free until May 24th. I’m a happy camper :) I usually do my gaming on the desktop pc but this might prove useful when I have to travel somewhere and end up having my entire Steam game library available to play. Well, not entire library since only 50 something games will be available at first but it’s still awesome.

Get it here and check the Portal deal here. After that, add me on steam under the username discworld and let’s boogie.

Happy gaming!


Solving a 3x3x3 Rubik’s Cube

I’ve always had this strange fascination for Rubik’s Cubes. In some way or another I’ve always had a few cubes decorating my place even if only just because they have all those pretty little colors to cheer up the place.

Recently I started taking them a bit more seriously and trying to solve them, I even bought a decent 3x3x3 and 5x5x5 on a toy store.

After playing with them for a while I remembered this world called the internet exists and started googling for them. Found these awesome videos explaining how to solve them using a few simple algorithms and after a few days playing with them I’ve somehow memorized them already and can solve the 3x3x3 in under 10 minutes. Still a lot to go till I match those guys I saw on youtube solving it in under 30 seconds but still….it’s pretty darn good. Also, solved the 5x5x5 for the first time yesterday. Felt kind of proud about it.

Here’s a couple of videos showing how to solve the 3x3x3 in a few easy steps/algorithms.

There are also videos showing how to solve the other various cubes but mostly they’re all about reducing the larger cube into a 3x3x3 so it can be solved the same way. That’s how I solved the 5x5x5.

Good times!

Macports

One of the reasons I really like Mac OS X is it’s native Unix origin. In fact, Mac OS X is Unix. This translates into having easy access to common Unix tools and applications. I won’t say many users take advantage of this, I’m even willing to bet most don’t, but those who do feel life is a lot easier I’m sure. Tools as simple as wget or lftp make mine a lot easier.

Most of these tools can be installed in any regular Unix/Linux flavor but they have to be ported into the flavor before they can be used. This means some lines of code have to be changed in order for our Unix flavor to understand it.

Meet Macports.

Installing Macports

Macports makes it easy to download and install Unix applications, be it simple command line tools or full fledged graphical applications. The easiest way to get it is download the .dmg for your version of Mac OS here and install it on your applications folder. You will also need XCode installed in your Mac. XCode is a set of developer tools for Mac allowing you to compile and install applications from source. You can find it in your Mac OS X install CD under the “Optional Installs” folder. From this moment on you will have access to the ‘port’ command on your Terminal app.

Installing Applications

Installing ported applications is very easy. All you have to do is issue the following command inside a Terminal app.

sudo port -v install wget

What this will do is download the ported version of wget and all it’s necessary dependencies, compile them and install them on your system. The -v switch tells it to run on verbose mode, displaying all he’s doing at the moment. You can turn it off if you don’t need or like it. A list of all the software you can install this way can be found here. Since it needs superuser access it will ask for your password.

Uninstalling applications is also simple.

sudo port -v uninstall wget

One of the options I found really useful is the ability to create a .dmg that installs everything you need to install the chosen package in any given system. Running the following command for example will create a .dmg file with wget and all it’s dependencies ready to install in any mac even without Macports installed.

sudo port -v dmg wget

Keeping up to date

It is also very easy to keep all your installed applications up to date with the latest software’s version. Issue the following commands on your Terminal app.

sudo port -v sync

sudo port -v selfupdate

sudo port -v upgrade outdated

What the first command will do is syncronize with the Macport’s server and figure out what’s the newest version number for all available software. The second command will update Macports itself it need be. The third and final command will upgrade all your outdated software to it’s current versions.

Keeping it clean

I’m one of those guys that likes to keep it’s system clean of near useless stuff, disc space is something I’ll never have enough of. This said, Macports likes to keep old versions of software installed after you update them to the newest version as well as intermediate files that are needed to compile and install software. This adds up bit by bit till it takes up large chunks of precious disc space. Running the following commands will get rid of all that for you.

sudo port clean –all installed

sudo port uninstall inactive

The first command will clean all intermediate files needed to compile and install a port and the second will uninstall inactive ports such as old versions.

Uninstalling Macports altogether

If for some reason you don’t want Macports or any of it’s applications on your system, issuing the following commands on your Terminall app will do so for you.

sudo port -f uninstall installed

This will uninstall all your Macports installed software, but you will still be left with files such as configuration files and databases it uses. To get rid of them issue this command.

sudo rm -rf \
/opt/local \
/Applications/DarwinPorts \
/Applications/MacPorts \
/Library/LaunchDaemons/org.macports. \
/Library/Receipts/DarwinPorts
.pkg \
/Library/Receipts/MacPorts*.pkg \
/Library/StartupItems/DarwinPortsStartup \
/Library/Tcl/darwinports1.0 \
/Library/Tcl/macports1.0 \
~/.macports

More useful info can be found at http://guide.macports.org