Technical stuff Requirements are like water. They're easier to build on when they're frozen.

Posts Tagged ‘quickies’

Quick UML diagrams, on the fly

07.20.2009 · Posted in Quick and dirty

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) , ...

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

06.20.2009 · Posted in Quick and dirty, Software, testing

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, `title` VARCHAR(50) NOT ...

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

04.29.2009 · Posted in Computer setup

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 ...

Form submit from JavaScript

01.16.2009 · Posted in News

Be careful: if you want to submit a form from Javascript using something like this.form.submit(); or document.forms[ myFormName ].submit(); and it gives you a nasty error like submit is not a function don’t despair, just: look at the HTML source code: <input id="submit" name="submit" value="Send to developer" type="submit" /> change the name of the button ...