GTD Linux XP and Access

I’ve been sort of busy lately and haven’t had much time to post.  One of things I’ve really been saving time for though the Book: Getting things done by David Allen.

I started keeping a spreadsheet, but I think to really implement some of his principles it lends itself to a relational database.
I have XP at work and prefer Linux at home.
I think I’m going to start doing some experiments on the Nwind.mdb using mdbtools.  http://mdbtools.sourceforge.net/install/c29.htm

found some additional reference info here i need to check out when I get a chance.

http://www.debianhelp.org/node/6473

http://devzone.zend.com/article/4065-Reading-Access-Databases-with-PHP-and-PECL

Posted in Uncategorized | Leave a comment

Final Got Pulseaudio working Ubuntu Hardy 8.04

Well,
I let thinks percolate for while and I tried the instructions at http://ubuntuforums.org/showthread.php?t=789578

It seems pulse audio is now working…
Today is a good day.

Posted in Uncategorized | Leave a comment

Taking another crack at getting sound working on Hardy 8.04

Ok…. My little one has been really getting into the games I have on my pc lately.. The main issue is that we don’t have sound. From the posts on Ubuntu, I just get the impression that this is been happening often.
So I’m choosing to look at this a learning experience to preserve my good attitude toward Ubuntu..

I put a post on Ubuntu, guide to sound Layers and I got what appear’s to be some helpful hints (hopefully)… Anyway, I was looking for a basic explanation of how the sound layering is layout in Ubuntu. I found myself at this link, How it works, SOUND
Defining my problem is that the games that are using SDL are not working… Ok… I need a few minutes to study this link.
Okk.. Bottom layer is Hardware…
So… I figure out what audio chip I have..
A couple of ways of doing this.
To get some very basic info try

lspci

To get a little more detail try

lspci -vv

And there is yet another way..

sudo lshw

I suppose another way is to open the computer up and read the name of the sound card.
It appears to be a sound blaster sound card sb0249 audigy2.
Lets see if I can find something on that..
I found the link to the manuals at this link:
http://ccftp.creative.com/manualdn/Manuals/TSD/797/English.pdf
And these worked…
http://ccftp.creative.com/manualdn/Manuals/TSD/2380/Audigy2.pdf
http://ccftp.creative.com/manualdn/Manuals/TSD/797/English.pdf

Ok… When I started my computer this morning…. I got sort of unusual update message…
I wish I copied the whole thing.. Something about restoring ALSA default settings by typing:

asoundconf set-default-card

Sort of weird.. Ok,,, Lets give that a go.
Ok… So when I first tried

sudo asoundconf list

which returned:
Please note that you are attempting to run asoundconf as a privileged superuser, which may have unintended consequences.

Names of available sound cards:
V8237
Audigy2
jonas@Ubuntu4:~$

So then I entered.

asoundconf set-default-card Audigy2

I went into synaptic put in audigy.
I got three hits:
These are my choices:
ALSA emu10k1/2 patch loader
A patch loader for use with the emu10k1 ALSA driver.  Supports Sound
Blaster Live!, Audigy and Audigy 2.

ALSA emu10k1/2 patch-loader library
This is the runtime library for the ld10k1 patch loader for use with
the emu10k1 ALSA driver.  Supports Sound Blaster Live!, Audigy and
Audigy 2.

ALSA emu10k1/2 patch-loader library development files
These are the development files for the ld10k1 patch loader for use with
the emu10k1 ALSA driver.  Supports Sound Blaster Live!, Audigy and
Audigy 2.

I guess I reboot an see what happens.

Ok… Now this is probably the most interesting link I found so far for my situation….
http://ubuntuforums.org/archive/index.php/t-793834.html

One of the posters talked about qjackctl
I loaded it up…. and fired her up. (Didn’t do me much good.

Ok,,,, So I’m going to try the quick start solution..
http://ubuntuforums.org/showthread.php?t=997506

It basically said, load these bad boy up.

asoundconf-gtk
gnome-alsamixer

There where loaded already for me.

libasound2
libasound2-plugins

This also got loaded but it unauthenticated….

pa dev chooser

Ok… Went through the instructions got to the point where they said crank up the volume and unmute the speaker and I happened to notice that my speakers where muted… I corrected that but maelstrom wont play…
Wait a second.  I can dual boot on this machine.  I should fire up youtube or something and see if I get audio….
Hmm.. In XP sound works just fine.  The conclusion is my hardware layer is working just fine….
So…  I guess it’s back to the guide.. from the beginning….
Ok.. All the software has been loaded up..
Things get interesting at these steps:

Once you have all these packages installed, close any application that may be trying to use sound and go to System/Preferences/Sound and set all the preferences from automatic to PulseAudio except Default Mixer Tracks which you should set to your sound card.

I changed the device displayed to: Audigy 2 ZS[SB0353] (Alsa mixer)

When I hit test… I get this message

audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Failed to connect: Connection refused

But…. since this guide didn’t say to test… I’m just going to go with the flow at the moment.

Go to System/Preferences/Default Sound Card and choose pulseaudio.

Check….

Next, right click on the little speaker on the top panel, that is the Panel Volume Control. Click Open Volume Control and make sure it is set to the same thing as the Default Mixer Tracks.

That would be File=>change Device
Check:Audigy 2 ZS[SB0353] (Alsa mixer)

Click on Preferences and make sure that Master and PCM and whatever else you want to control are selected.

That would be Edit=>Preferences
(I basically turning everything on except for)

Make sure that any boxes labeled SPDIF or IEC958 are not checked

Done… (I guess saying check will get confusing)

Push up the sliders in the volume control and make sure the little speakers do not have little red mute marks on them.

Done

Ok… This gets a little confusing.. It seems there are preferences in a couple spots. There are preference’s within open volume control and also when you write click the speakers. They seem to offer the same options.. The author only talked about one. I set them both up the same way….

Go to Applications/Sound and Video/GNOME ALSA Mixer and see if there is anything you missed because sometimes, for some cards, not all the options are in the Panel Volume Control.

I seem to be getting an error when I get to this point..

An error occurred while loading or saving configuration information for GNOME ALSA Mixer. Some of your configuration settings may not work properly.

I googled a little bit of the error message and it brought me to this post.
http://ubuntuforums.org/showthread.php?p=6614307#post6614307
Hm… So I have at least two issues that don’t seem to be following the plan…

I wasn’t sure if 8.04.2 had stuff beyond normal upgrades…. Supposedly it doesn’t…
Anyway this actually got me a little closer http://ubuntuforums.org/showthread.php?t=1050055
It seems I can get some test tones in Alsa now…. System->Preferences->Sound… When set to sound… It seems some progress is getting made.

Posted in C++, Uncategorized | 1 Comment

Dreaming in code and other matters.

When I’m at my library, I tend to browse the computer section to see if there is anything that catches my eye. One one of my visits, I happened to have noticed this odd book titled “Dreaming in Code” by Scott Rosenberg. I pulled it off shelf and randomly opened it up and read a little. Hot darn, there was a discussion about Wxwidgets, which was something I was actively pursuing. So…. I checked it out and started reading it.

I’ve found myself really enjoying this book. As a lone wolf, quasi-professional/hobbyist programmer this opens up a world to which I’m not at all familiar. It’s given me pause, to consider what’s happening around me as well as what I’m up to. I guess what I am to a certain extent is an ax sharpener. On thing that caught my eye was the author taking about a gook called “Getting Things Done” aka GTD by David Allen. Hmmm. I just put it on hold both the audio and paper version….. This should be interesting.

I guess maybe perhaps, one of the reasons this caught my eyes is that I feel I’m not getting things done. Jack of all trades, master of none is pretty much sums it up.. Anyway… I thinking I need to re-hash were I’ve been and where I want to go.
I’ve had a interest in learning Opencascade with is a cad graphic library. My primary interest is to develop some automate some manufacturing techniques that I’ve originally exposed in the mid 80’s.
That set a lot of ball’s in motion that I don’t want to get into at the moment…. Anyhow….

Posted in Uncategorized | Leave a comment

Removing Pulse Audio from Ubuntu hardy 8.04 and replacing with esound and back again

Ok… My sound system has pretty much hosed ever since I installed 8.04. It hasn’t been a big deal, but my little one has been wanting to play games on my computer and it sort of stinks not having sound. I’m not in the mood to go 8.10 and I don’t want to screw around with this for too long…. So I’m going to try something hopefully pretty quick and dirty.
According to this post this is what you need to do:

PulseAudio Removal

If you decide you no longer like PulseAudio and would like to disable it: Remove the added lines to /etc/asound.conf If /etc/asound.conf did not exist when you installed PulseAudio, you may remove /etc/asound.conf entirely.

After this, you may remove all of the installed PulseAudio packages.

To disable pulseaudio in hardy you need to select alsa for for all options in /system/preferences/sound

Ok… Lets see what we got.

onas@Ubuntu4:~$ locate asound.conf
/usr/share/doc/libasound2-plugins/examples/asound.conf_jack
/usr/share/doc/libasound2-plugins/examples/asound.conf_oss
jonas@Ubuntu4:~$

Ok… that’s bizarre no files….
So… I was just reading this thread….http://ubuntuforums.org/archive/index.php/t-778351.html Apparently, others had the same issue….
Next try… I basically fired up synaptic and put in pulse audio and marking everything that showed anything to do with pulse audio to remove it. There was two library which had links to games… libpulse-mainloop-glib() and libsdl1.2debian-pulseaudio that if I uninstalled would have taken out alot of games also, so I left that alone for now…
Anyway…
Now lets see…
I read through that thread and it sounds like there could be issues getting esound to run…..
Time to look at this thread.
http://ubuntuforums.org/showthread.php?t=855764

Looks like bad things might happen… Time to save and publish this post.. In case I need to look at this on another computer…
Ok… At this point from the terminal I:
sudo apt-get install esound
sudo gedit /etc/esound/esd.conf
and changed autospawn from 0 to 1. I have no Idea what that does but I thought I’d try……
Hears the moment of truth…
I’ll be back in a couple after rebooting… (hopefully)
Ok…. So much for the quick fix….
I’m going to try to remove esound and try pulse one more time with this link.
I just did a:
sudo apt-get remove esound
sudo apt-get install pulseaudio

I want to use alsa, so it says to do the following:

ALSA Applications

If the PulseAudio plugin for alsalibs is installed all applications with support for the ALSA API should be able to access a PulseAudio server. You need version 1.0.12 or newer of the ALSA packages for the PulseAudio plugin to be included.

To activate the driver edit /etc/asound.conf or ~/.asoundrc and add:

pcm.pulse {
type pulse
}

ctl.pulse {
type pulse
}

I don’t have a asound.conf but I do have asound.rc
soo….. In it goes.

I tried the test and this is what happened.

jonas@Ubuntu4:~$ aplay -Dpulse foo.wav
ALSA lib pcm.c:2104:(snd_pcm_open_conf) Cannot open shared library /usr/lib/alsa-lib/libasound_module_pcm_pulse.so
aplay: main:564: audio open error: No such file or directory
jonas@Ubuntu4:~$

Supposedly to fix that you need to do this.
apt-get install libasound2-plugins
Ok,,, Now I’m getting a different error but it’s time for me to go…

Posted in Uncategorized | Leave a comment

Working through the zetcode wxwidgets tutorial:Device Contexts:Gradient