Stuff

bla bla bla yada yada yada ad nauseam

Using LaTeX in Portuguese

I’ve been using LaTeX for a couple of small projects recently and I had some trouble figuring out how to make the accented characters as well as stuff like ‘Ç’ render correctly in the end product. After some mucking about I learned that we have to use three extra packages so everything shows up nicely in the end. It probably works just as well for other languages but you may want to refer to the documentation. Here are the packages you have to use:

Packages
1
2
3
\usepackage[portuguese]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}

My .bashrc

Here’s something I keep forgetting to save and/or backup, my .bashrc. The last couple of times I reinstalled or switched to another distribution I did remember to backup my dotfiles but I figured I might as well just post it here in case I ever need it again.

Most of it comes from the Arch Linux Wiki, a great place for Linux information even if you don’t use Arch. I have then made a few tweaks from snippets I found on other websites. I can’t remember all of them since at the time I had no intention of posting this here. If you find anything that you think is yours please send me the article link so I can pingback to it. Keep in mind there are some Arch specific sections in there, feel free to edit and redistribute as you see fit.

Since it’s quite a wall of text, I’ll drop it after a break for the website proper. If you’re reading this through an RSS reader, sorry for the wall of text.

Changing Nvidia Fan Speed on Arch Linux

Quite some time ago I made a post about the coolbits option as a way to be able to control nvidia cards fan speed manually on Ubuntu. Things are a little bit different on Arch Linux. For starters xorg.conf has been somewhat deprecated and it’s preferable to make a file such as /etc/X11/xorg.conf.d/20-nvidia.conf with just the bit of information we want to change. We’ll edit/create that file and add something like:

20-nvidia.conf
1
2
3
4
5
6
7
Section "Device"
        Identifier "Nvidia Card"
        Driver "nvidia"
        VendorName "NVIDIA Corporation"
        Option "NoLogo" "true"
        Option "Coolbits" "4"
EndSection

The speed itself can still be configured through the nvidia-settings application under Thermal Settings. Keep in mind you’ll need nvidia’s proprietary driver for this to work and not the open source nouveau driver.

More info on how to configure other aspects of the driver may be found here at Arch’s Wiki.

Arch Linux

Since I’m not really enjoying the path Canonicalis headed with Ubuntu I was somewhat forced to consider moving to another distribution. I considered OpenSUSE since I had it installed inside a VM and I had really enjoyed it and Tumbleweedwould probably give me all I need in terms of package freshness. I also considered going back to Gentoo but I don’t think I’d have it in me to sit and wait for the compile times every single time I wanted to install or update something. In the end my curiosity got the best of me and I decided see to what all the fuss about Arch Linux is about.

I’ve been using it for roughly little more than a month now and I couldn’t be happier. It took some time to get used to it, there’s always a learning curve when changing from distribution to distribution but in this case the curve was gentle enough. It’s publicized as being a somewhat non user friendly distribution but in the end all you have to learn will help you later on. You’ll find yourself being able to fix problems instead of just reinstalling everything just because you don’t even know where to begin with a fix.

Pacman is quite probably the best package manager I’ve used and I’m throwing emerge into the equation. I’m yet to need any sort of software installed that I haven’t found on the Arch User Repository (AUR) and though you should really learn to install AUR packages by hand first, tools like Pacaurand Yaourtturn it into an automated process.

Making a OS X 10.9 Mavericks Install USB Drive

Apparently the days of getting new releases of OS X on DVDs is long gone and instead it’s made available in the App Store. If you’re upgrading your existing OS X install you probably have no need for physical media to install it but if you’re willing to do a clean install the .dmg you get from the App Store isn’t very useful. You’ll have to make your own physical install media.

I’ve read about Lion Disk Maker and other extensive ways with multiple steps to build a USB thumb drive capable of installing OS X from scratch. But then I came across a single Terminal command line that does absolutely everything and leaves the USB thumb drive ready to install everything. You’ll need a comfortably sized drive – 8GB should be enough. If possible buy a new one and don’t use it for anything else other than being your OS X install media. First, download Mavericks from the App Store. Then open up a Terminal, plug in your USB drive and type the following – you can use TAB to autocomplete folder names:

Making a OS X 10.9 Mavericks Install USB Drive
1
sudo /Applications/Install\ OS\ X\ Mavericks.app/Contents/Resources/createinstallmedia --volume /Volumes/Untitled --applicationpath /Applications/Install\ OS\ X\ Mavericks.app --nointeraction

Replace /Volumes/Untitled with /Volumes/YourUsbDriveName. Insert your password, wait for some time (I went to get dinner, when I came back ~20 mins later it was still running) and BAM – Bob’s your uncle. Reboot, pick booting from the USB drive (hold Option while booting so you can choose) and you’re good to go.

Linklog & Yahoo Pipes

So I found a way to combine multiple RSS feeds and present them on a single feed. Turns out Yahoo Pipes, a thing that I had never heard of before, is really useful. My mind was somewhat blown by what I can do with them. I think Yahoo needs to advertise their stuff a little better. Either that or I really need to pay more attention to what’s going on in the intertubes.

In any case, I managed to combine items published through tt-rss and another linklog software thingie I use. It’s right here. You can turn the pipe result into RSS or JSON or whatever pleases your heart. Full URL is as follows:

http://pipes.yahoo.com/pipes/pipe.info?_id=168514ce88f11afc75a8bb3eec45ad32

It’s mostly newspaper articles and tidbits of information I find useful while on the internet. It’s also available on a widget rss whatchamacallit on this website, one of the right side panels. If you have a link/linklog feed of your own please leave a comment with it, I’m always looking for decent feeds.

BQ Aquaris 5 Root & Recovery

New gadget thingie. As usual I’m posting some stuff here so I won’t forget it and know where to find it in case I need all the info again.

Rooting the BQ Aquaris 5

  • First, grab this file and unpack it somewhere on our computer, we’ll need a Windows computer for the next few steps.
  • I’m not sure if you need to install the PDANet stuff on the “Driver” folder, but I ended up doing it anyway. Didn’t run into any driver problems when I plugged the phone into the computer so I guess it works just fine.
  • Navigate to Settings / About Phone on the device and press “Build Number” fast a few times until a popup tells you “Developer Options” are available.
  • Navigate to Settings / Developer Options and enable “USB Debugging”
  • Plug the phone into the computer and wait till it’s recognized. Make sure it has correct drivers.
  • Go into the “Ejecutable” folder from the .rar you unpacked and you’ll find a “runme.bat”. Right click it and run as administrator, just in case it needs elevated privileges.
  • A console will pop up, read what it says and press enter a few times.
  • Done.

Is Youtube Making Us (Me) Lazy?

Long gone are the days when I spent nearly 8 hours reading a manual while making a stage 1 Gentoo install. Granted, most of those 8 hours were due to the compile times on the computer available to me at the time but a large part of it was spent reading huge walls of text on how to properly install, maintain, upgrade, tweak, work with emerge, etc..

If it were today, I think I’d Youtube it. I’m pretty sure there’s at least one video guide on how to do it. In fact, it’s not just computer stuff that I find myself searching on Youtube. I find myself choosing Youtube instead of googling for an alternative learning method who could possibly have more information than the video. If I then run into an issue that requires further investigation only then do I do a regular Google search for text.

I’m not quite sure what this means, or even if it means anything at all. Is that a sign that I’m getting lazy when it comes to do proper research? Do I need more information than what is present in a simple video? I suppose that will depend on who makes the video and what is chosen to be presented in it. But still..

There’s a world of information on Youtube. Ted is also quite decent, though it has a completely different scope. I’m unaware of any studies presenting conclusive data on whether people (like me) are starting to choose video as a preferred learning method. Someone better than me should probably do it, it sounds exciting.

What could this mean to the way things are traditionally taught across the globe? Will tablets with video content be used instead of books? Would I learn faster/better with video? There are plenty of possibilities and hypothesis about this, I’d like to know more about it.

Gnome Classic on Ubuntu 12.10

If there’s one thing I’ve come to find that almost every Ubuntu user agrees to, it has to be the fact that Unity is terrible and I’m sure the Dash plays a big part on one of Dante’s Infernos. Installing nvidia proprietary drivers is a nightmare in and of itself. It used to be as simple as clicking a button when a popup (i.e., Jockey) mentioning proprietary drivers were ready to install, now it’s a multi step procedure.

All things considered though, the main issue I have with the “new” Ubuntu is Unity. Some people who don’t like it move to KDE, other people (me) like the GTK interface and choose something like XFCE but Gnome was and will continue being what most people that took the jump to Linux during the Ubuntu “golden age” are used to. This includes older people like possibly our parents, who installed Ubuntu on their machines simply because we told them it was better than what they were using. Change always meets resistance, but if I’m having a hard time getting used to Unity or even failing to see the point in it, those people will surely run away from it like the plague. Personal tastes aside, here’s how you can change that.

For now there’s still a way to revert to the “old” Gnome. You’ll have to open up a console window and type the following in it.

Gnome Classic on Ubuntu 12.10
1
$ sudo apt-get install gnome-session-fallback

This will install everything you need. The next step is logging out from your current session, then click the icon/symbol right next to your name at the login screen and choose “Gnome Classic”. Insert your password and once the login procedure is complete you’ll be presented with something a bit less confusing.

I will give Unity another chance, eventually. But for now I’m one of those that runs away from it like the plague.

Nexus 7 Bootloader Unlock & Root

Quick update here, the Nexus 7 is rooted. I found that I miss little things Titanium Backup and AdAway a bit too much.

The whole process is pretty straight forward, quite possibly the easiest rooting I had to do. Push 2 buttons and that’s it. I used this tool. There’s another way of doing it that incidentally also has a few more tools and options that can make your life easier but the graphical interface and literally “push 2 buttons and we’re done” thing makes the first one a fair bit more attractive if all you want is unlocking the bootloader and rooting.

I won’t make a guide on how to do it since, like I said, the whole process is as easy as it can be. Really. Pushing 2 buttons is all you have to do. And if you find that pushing 2 buttons is too hard for you, the guide/tutorial that comes with the app makes it literally idiot proof.