Sunday, April 10, 2011

Excel Mac: Cell Reference Lock - F4 Alternative


One of the first major problem that I faced when I first began using Excel on a Mac, was the appropriate shortcut replacement for F4, which adds $ signs to cell references to lock cell/range references from moving if dragged to another cell. After a great deal of frustration, and after trawling a number of excel forums I eventually found the solution which is shown below.

Windows Shortcut: F4

Mac Shortcut : Cmd + T

Install from Perl modules from CPAN without confirmation

If need to install modules from CPAN, especially if you want to install a whole bunch in one go without having to confirm every ten seconds try running your install as follow:


PERL_MM_USE_DEFAULT=1 perl -MCPAN -e 'install My::Module'

Additionally if you want to make sure that the install script will pull all the required dependencies (should be by default, but heh ...):



cpan
cpan> o conf prerequisites_policy follow
cpan> o conf commit


That's it.

Tuesday, April 5, 2011

Find closest and fastest repository for your Debian

I recently installed a new distrib with linux mint based on Debian. I've done that scores of times, but one thing i never remember is how to find the best repo (and the fastest of course) based on your location.

There's a very neet package that will do the work for your:
sudo apt-get install netselect-apt
sudo netselect-apt

And Voila, you're done.


Monday, April 4, 2011

Update Debian Squeeze to Mint ~ a.k.a Mintify your Debian

I've been willing to install a new linux for a while, more precisely a Linux Mint distrib for various reasons. Call me lazy i didn't wanted to download and burn a full DVD. So the came the idea to use a Debian install as a base (since there is a version called LMDE base on Debian instead of Ubuntu.

At the time of this post, Debian has recently updated Squeeze to stable, so that the freshly baked Linux Mint isn't too far away (LMDE is supposed to be based on the current testing debian).

If you want to follow the same steps as me, this post assumes a couple of things:

  1. You can and will use command line without fear
  2. You know what debian is and can read log messages or use test installer
  3. You computer is already connected to internet


Some thanks to those two posts which i used as a base and mix together with my own twist:
HOWTO: Create a custom, minimal LMDE install
Mintifying Debian

Enough talk, let's get down to it. First you'll need to download a ISO of Debian, i used the businesscard version. You can find other version fitting to your need / architecture here:
http://www.debian.org/releases/squeeze/debian-installer/

1) Download it, burn it or put it on a USB key, which ever you prefer and install debian.

Once the install is completed, and you've added yourself as a sudoer ,you can proceed.



2) Then you may want to add the contrib and non-free Debian repositories by editing the file /etc/apt/sources.list and adding “contrib non-free” without quotes right at the end of each line ending with “main”.

4) Next you add the Debian Multimedia and the Mint repositories. You can for instance create a file within /etc/apt/sources.list.d called “lmde.list” and add these two lines into it:

deb http://packages.linuxmint.com/ debian main upstream import
deb http://www.debian-multimedia.org squeeze main non-free



5) Updates :

sudo apt-get update
sudo apt-get install linuxmint-keyring
wget -c http://www.debian-multimedia.org/pool/main/d/debian-multimedia-keyring/debian-multimedia-keyring_2010.12.26_all.deb
sudo dpkg -i debian-multimedia-keyring_2010.12.26_all.deb
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade



Now the trick start here. Apparently when Squeeze went from testing to stable a particular package called "gstreamer0.10-pitfdll" has been removed from Debian repo cause the all meta package mint-meta-debian to fall to pieces. With some error message that look like:



The following packages have unmet dependencies:
mint-meta-debian : Depends: mint-meta-codecs but it is not going to be installed



The following packages have unmet dependencies:
mint-meta-codecs : Depends: gstreamer0.10-pitfdll but it is not installable
E: Broken packages





But fear not, here's the solution:
wget -c http://debian.securedservers.com/debian/pool/contrib/g/gstreamer0.10-pitfdll/gstreamer0.10-pitfdll_0.9.1.1+cvs20080215-1_i386.deb
dpkg -i gstreamer0.10-pitfdll_0.9.1.1+cvs20080215-1_i386.deb


Now you can safely proceeed to the Mintifying of your debian:
apt-get install mint-meta-debian

Enjoy.




Sunday, November 22, 2009

Parallels Desktop: Garbled or no sound problem


Last week I decided that I wanted to try Parallels Desktop on OS X. I wanted to test playing games in a VM on OS X. So I created a virtual machine with windows XP installed on it. I used a install CD I still had form the time I still had a PC.

Everything worked out pretty, and the machine was up and kicking in no time, except for one thing, the sound. I search for quite some time on internet, including on Parallels forum before figuring it out.

The problem I had was, I had either no sound at all, or some all garbled up sound. The multimedia wasn't detected properly. I tried different drivers, installed Realtek AC'97 Driver, and a couple of other, but nothing wotked. I kept getting crappy sound or nothing at all. If you ask me I prefered no sound at all to garbled sound. That's just terrible.

Now the solution to my problem, and other in the past it seems is quite simple. The source of the problem is that Parallels Desktop (I'm using version 4) is emulating an Intel onboard sound card (Intel 82801BA/BAM AC'97 Audio Controller to be precise). And the Windows XP installation CD I used happens to be missing that particular driver (probably because it was an OEM cd from an old computer). So I just reinstalled my Parallels Desktop VM using a proper retail Windows XP installation CD, and it worked like a charm.

Everything is now detected properly:






Now everything is working properly and I was able to try out playing games inside a VM. And let me tell you it works just fine. So far i've tried playing Eve Online and DDO inside a VM and with decent details its quite fluid.