Posts Tagged ‘quickies’

Wireshark not listing interfaces on Mac OS X

It’s a permission problem, please check here for the solution.

Migrating phone book from Nokia XpressMusic to Android using a Mac

Looks complicated, huh? Especially when people say there’s no real Mac-to-Android sync software.
But we’re all tekkies here, we solve stuff, and don’t complain about it And we’re using free software to do it, yummy!
All you need is PhoneDirector to get your Nokia agenda on the Mac. Just install it and follow the instructions, [...]

How to restore your Mac settings

If you installed a program which took the horrible approach of rewriting your .profile settings file and you discover you don’t have access to the shortcuts from your terminal anymore, here’s how to fix it:

open a terminal window and make sure you navigate to the home directory
cd ~
open your profile settings using the full path [...]

Wget: filename too long

wget -O short_name.ext “your URL”

How to change your layout in Android landscape / portrait mode

In the res folder we are used to having a layout folder, in which we keep the XML files which describe our application’s layouts. This trick will show you how to improve the view in landscape or portrait mode, whichever you might need.
How do I quickly change my emulator from portrait to landscape and viceversa?
Use [...]

How to use Android emulator debugging log

Launch the emulator
wait until it finished loading
open up a terminal
use the following command: adb logcat

Don’t forget to have fun!

Forced to develop on Windows? Need a better Putty?

I first used Putty Tray. But today I found a tabbed version, the Putty Connection Manager.
Both do get minimized in the taskbar, isn’t this cool?

Quick UML diagrams, on the fly

You go to the yUml site and throw some data in the text box offered
Press “Generate the Diagram!”
Voila!

And here’s an example, as well:
[sourcecode]
http://yuml.me/diagram/scruffy;scale:60/usecase/[Admin]^[User Free], [Admin]^[User Premium], [Admin]-(note: Most privileged user), [User Free]-(note: No costs), [User Premium]-(note: Monthly subscription), [User Free]-(Login), [User Free]-(Logout) , [User Premium]-(Login), [User Premium]-(Logout) , (Login)<(Reminder) , (Login)>(Captcha).
[/sourcecode]

See it in action.

mySQL: find out distinct values of a column and the number of their occurrences

So, we need to find out different values of a column and the number of their occurrences. Let’s set up a small test first:

– Step #1: prepare the ground
CREATE DATABASE IF NOT EXISTS `test`;

DROP TABLE IF EXISTS `test`.`test_count_distinct`;

CREATE TABLE `test`.`test_count_distinct` (
`id` INT(11) NOT NULL auto_increment
PRIMARY KEY,
[...]

Sound is not working after upgrading to Ubuntu 9.04 (Jaunty Jackalope)

I had the same problem as a lot of people, actually. I found the following solution to be working for me:
Open the alsa config file by:

sudo gedit /etc/modprobe.d/alsa-base.conf

at the end of the file just paste the following lines:

options snd-pcsp index=-2
options snd slots=snd-hda-intel
options snd-hda-intel model=hp-m4
alias snd-card-0 snd-hda-intel
options snd-hda-intel enable_msi=1

Solution came from this forum thread. Thanks guys.