I fixed it by installing libsdl1.2debian-pulseaudio (which replaces libsdl1.2debian-alsa). So it might be worth a try if you get sound problems with any other programs.
Source: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/372843
I fixed it by installing libsdl1.2debian-pulseaudio (which replaces libsdl1.2debian-alsa). So it might be worth a try if you get sound problems with any other programs.
Source: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/372843
Interesting thoughts:
One:
“I have the largest seashell collection on the planet. I keep it
scattered on beaches around the world.” – Steven Wright
Two:
Coveting possessions is unhealthy. Here’s how I look at it:
All of the computers on Ebay are mine. In fact, everything on Ebay is
already mine. All of those things are just in long term storage that I
pay nothing for. Storage is free.
When I want to take something out of storage, I just pay the for the
storage costs for that particular thing up to that point, plus a
nominal shipping fee, and my things are delivered to me so I can use
them. When I am done with them, I return them to storage via
Craigslist or Ebay, and I am given a fee as compensation for freeing
up the storage facilities resources.
This is also the case with all of my stuff that Amazon and Walmart are
holding for me. I have antiques, priceless art, cars, estates, and
jewels beyond the dreams of avarice.
The world is my museum, displaying my collections on loan. The James
Savages of the world are merely curators.
Quote from
http://www.metafilter.com/65284/Collect-em-all#1862024
Number three: Watch www.aetv.com/hoarders for a few episodes and that might cure you!
If your Ubuntu installation (or any other linux distribution that has a liveCD) is broken and can’t boot because of a faulty update, you can try to update your installation after booting from the LiveCD.
Start a terminal and use these commands (/dev/sda2 might need to be changed to match your configuration, you can use fdisk to figure out which partition is your main one):
sudo mkdir /media/karmic
sudo mount /dev/sda2 /media/karmic
sudo mount -o bind /proc /media/karmic/proc
sudo mount -o bind /dev /media/karmic/dev/
sudo cp /etc/resolv.conf /media/karmic/etc/resolv.conf
sudo chroot /media/karmic apt-get update
sudo chroot /media/karmic apt-get upgrade
sudo chroot /media/karmic apt-get dist-upgrade
Using Digi Watchport/H USB Serial Humidity/Temperature Sensor in Linux
Ubuntu 9.04 has everything you need except for minicom. So all I had to do was to:
plug it in
dmesg should get you the following output:
usb 2-9: new full speed USB device using ohci_hcd and address 50
usb 2-9: configuration #1 chosen from 1 choice
io_ti 2-9:1.0: Edgeport TI 1 port adapter converter detected
usb 2-9: Edgeport TI 1 port adapter converter now attached to ttyUSB0'
Install minicom:
sudo apt-get install minicom
Edit minicom settings:
minicom -s
Change the ‘Serial Device’ to ‘/dev/ttyUSB0’
Change the ‘Bps/Par/Bits’ field to ‘9600 8N1’, (9600 baud, 8 bits, no parity, 1 stop bit). These are the default settings used by the Linux kernel; they can, if necessary, be overridden from the kernel command line by adding extra parameters to the ‘console=’ option. See ‘kernel-parameters.txt’ and ‘serial-console.txt’.
Turn off both ‘Hardware Flow Control’ and ‘Software Flow Control’.
In the ‘Modem and dialing’ menu, remove the ‘Init string’ and ‘Reset string’ completely if required.
Save your new config
start minicom
Use one of the following commands:
Command |
Now all I need is a perl script to automate the posting of these values to twitter?
Here is a nice hardware chart:
Here is a larger version. If this link is down, try http://www.google.com/search?q=Computer_hardware_poster_1_7_by_Sonic840
I tried many other add-ons and extensions, but these are the ones I can’t live without:
Bonus:
The ternary is actually a sequence of operators. The operator is used like this:
CONDITION-PART ? TRUE-PART : FALSE-PART
which is shorthand for the following statement:
if (CONDITION-PART) {
TRUE-PART
} else {
FALSE-PART
}
Example: If $firstVar is zero, then assign $secondVar a value of zero. Otherwise, assign $secondVar the value in the first element in the array @array.
$secondVar = ($firstVar == 0) ? 0 : $array[0];
via Perl 5 By Example.
My first attempt at using the Arduino (Duemilnove). This sketch is based on this and that but mine uses 2 LEDs, one for the sensor and one for the feedback. And instead of getting bright when more ambient light is present, it turns OFF if ambient light is bright, stays ON in the dark and blinks if it’s in between.
//
// This example shows one way of using an LED as a light sensor.
// You will need to wire up your components as such:
//LED #1:
// + digital2 (N side)
// |
// <
// > 100 ohm resistor
// <
// |
// |
// -----
// / \ LED #1, 5mm, clear plastic is good (or translucent green lense)
// -----
// |
// |
// + digital3 (P side)
//
//////////////////////////////////
//LED #2 (only required if you don't have the on-board LED on pin 13):
// + digital13 (P side)
// |
// |
// -----
// / \ LED #2
// -----
// |
// |
// + Ground
//
// What we are going to do is apply a positive voltage at digital2 and
// a low voltage at digital3. This is backwards for the LED, current will
// not flow and light will not come out, but we will charge up the
// capacitance of the LED junction and the Arduino pin.
//
// Then we are going to disconnect the output drivers from digital2 and
// count how long it takes the stored charge to bleed off through the
// the LED. The brighter the light, the faster it will bleed away to
// digital3.
//
// Then just to be perverse we will display the brightness back on the
// same LED by turning it on for a millisecond. This happens more often
// with brighter lighting, so the LED is dim in a dim room and brighter
// in a bright room. Quite nice.
//
//
#define LED1_N_SIDE 2 // original code uses pin 2
#define LED1_P_SIDE 3 // original code uses pin 3
#define LED2 13 // LED 2 is on-board or external on pin 13 and ground
//
// -1 = very dark ; 1 = very bright
int extreme = 0;
//
void setup() {
pinMode(LED1_N_SIDE, OUTPUT); // N side is output or input but starts w/ output
pinMode(LED1_P_SIDE, OUTPUT); // P side is alway output pin (drive low or high)
pinMode(LED2, OUTPUT);
}
//
void loop() {
unsigned int waitDischarge, extenLimit;
//
// Apply reverse voltage, charge up the pin and led capacitance
digitalWrite(LED1_N_SIDE,HIGH);
digitalWrite(LED1_P_SIDE,LOW);
delay(30);
//
// Isolate the pin 2 end of the diode
pinMode(LED1_N_SIDE,INPUT);
digitalWrite(LED1_N_SIDE,LOW); // turn off internal pull-up resistor
//
// Turn LED on if ambient light is very dark or medium
if (extreme <= 0) {
digitalWrite(LED2,HIGH);
}
//
// Count how long it takes the diode to bleed back down to a logic zero
for ( waitDischarge = 0; waitDischarge < 65534; waitDischarge++) {
if ( digitalRead(LED1_N_SIDE)==0) {
// very dark (you might need to sligthly change this number depending
// on the color of the lense of LED #1 for example)
if ( waitDischarge > 6 ) extreme = -1;
// very bright (you might need to sligthly change this number depending
// on the color of the lense of LED #1 for example)
else if ( waitDischarge < 3 ) extreme = 1;
else extreme = 0;
break;
}
delay(30); // to avoid going above 65534
}
//
// Turn LED off if ambient light is very bright or medium
if (extreme >= 0) digitalWrite(LED2,LOW);
delay(200);
}
By using the ALSA / OSS wrapper:
~$ sudo apt-get install alsa-oss
~$ aoss "app_that_usually_use_OSS"
Here is a list of devices where you might be able to find stepper motors:
Large stepper motors can be found in automated industrial equipment.
How-To Change The Default Sound Card in Slackware Linux
My case: I have an on-board sound card that I use for everything except for Skype, where I use my Logitech ClearChat Wireless USB Headset<img src=“http://www.assoc-amazon.com/e/ir?t=wusum-20&l=as2&o=1&a=B0015EY5RE" width=“1” height=“1” border=“0” alt=” style=“border:none !important; margin:0px !important;” />. It is easy in Skype to select a different sound device. So I needed to set my on-board sound card as the default output for everything else.
If they both use a different kernel module you can easily make sure the right one is the default card.
Find out what module is being used for your soundcards:
cat /proc/asound/modules
On my computer this gave
Sound card 0 is the default one (snd_usb_audio in this case). This is the module’s name.
You can’t assign card 0 because whichever card get’s loaded first get # 0. So, you have to assign # 1 to the one you don’t want as the default card. This can be done by adding one simple line to /etc/modprobe.d/sound (create it if it doesn’t exist):
options name_of_offending_module index=1
So, in my case this would be
options snd_usb_audio index=1
Reboot and try
From the command line:
-bash-3.00$ find ./ -type f -exec chmod 600 {} \;
-bash-3.00$ find ./ -type d -exec chmod 700 {} \;