ubuntu

Strange OpenCV Distance Transform Results

I'm trying to run a distance transform on a thresholded binary image in order to assist anomaly detection (my hope is that I can detect large changes around the edges of the object), however for some reason, upon running my Distance Transform script, I'm getting a strange banding type of effect. I tested something similar in the Distance...

Machine regularly segfaults

When I use apt-get to install or upgrade my Ubuntu hardy system, I often get messages like this: $ sudo apt-get install foo Reading package lists... Done Segmentation faulty tree... 50% $ sudo apt-get install foo Reading package lists... Done Building dependency tree Reading state information... Done Segmentation fault $ sudo a...

Running upstart jobs as unprivileged users

What's the canonical way to have an upstart job change its userid and run the script as an unprivileged user? Obviously one can use su or sudo, but this seems hacky (and can generate needless log lines). ...

Ubuntu LTS vs regular release

Hi, I was wondering, what is the difference between the LTS (Long Term Support) and the regular versions of Ubuntu? I know, the LTS releases are supported 3 and 5 years (desktop and server), but what difference does it make e.g. if I use 8.10? Is it possible, in a couple of years I won't get any security updates for 8.10, only for 8.04...

How to make Linux C++ GUI apps

What is the easiest way to make Linux C++ GUI apps? I'm using GNOME and ubuntu 8.10. ...

Can you use tar to apply a patch to an existing web application?

Patches are frequently released for my CMS system. I want to be able to extract the tar file containing the patched files for the latest version directly over the full version on my development system. When I extract a tar file it puts it into a folder with the name of the tar file. That leaves me to manually copy each file over to th...

Installing Tomcat + Solr problem

Hi, I'm trying to install Tomcat + Solr on my Ubuntu machine. I was using ubuntu repo: http://packages.ubuntu.com/intrepid/web/solr-tomcat5.5 http://packages.ubuntu.com/intrepid/tomcat5.5 When i launch tomcat, solr do not work: sudo service tomcat5.5 start The webpanel do not find solr, and give me this error: HTTP Status 404 - /...

Better script to restart mysql on Ubuntu 8.04

When I say sudo /etc/init.d/mysql restart on Ubuntu 8.04.2 sometimes there remains a "mysql_safe" process eating 99% of cpu. Making the machine practically inusable. Is there a better way to restart mysql? I thought about writing a script: sudo /etc/init.d/mysql stop sleep 10 sudo killall mysql_safe sudo /etc/init.d/mysql start But t...

Using vim+LaTeX with Scandinavian characters

I want to create a lab write-up with LaTeX in Ubuntu, however my text includes Scandinavian characters and at present I have to type them in using /"a and "/o etc. Is it possible to get the latex-compiler to read these special characters when they are typed in as is? Additionally, I would like vim to "read" Finnish: Now when I open a .te...

Ruby on Rails on Ubuntu linux: creating a new class throws db error

I am a novice linux user trying to come to terms with *nix development using Ruby on Rails. I am reading an excellent book titled "Simply Rails 2" [SitePoint:lenz] and haven't had any problem until I try to create a new Story object within the rails console and I get a "no driver for sqlite3 found" error: $sudo ruby script/console Load...

learning python 3.0 on ubuntu

[resolved] I tweaked the preferences in komodo edit and ended up with: don't auto indent don't allow file contents to override tab settings prefer tab characters over spaces 4 spaces per indent 4 width of each tab char I also set komodo to show whitespace and tabs, which eneded up revealing the screwed up sections. yeah - it's a ...

What do you do with Environment Variables?

When I execute environment commands, such as env, set and unset, something happens, but what? set hello='hello world!' unset find What do you do with the commands? Are the changes permanent or temporary? Where can you see the changes? I am an Ubuntu-newbie. ...

Where has asm/timex.h and get_cycles() gone?

In an older linux distro I could call get_cycle() after including asm/timex.h. Now I changed to Kubuntu 9.04 and there is no asm/timex.h, plus in sys/timex.h there is no get_cycle(). Does anyone know why this changed, how to access this fuction/macro or a replacement for it? Or, even better, where to read information about it? Thanks in ...

CodeBlocks on Ubuntu does not come up.

I installed CodeBlocks on Ubuntu Hardy heron running on amd64 machine. The installation went fine but when i invoke it from the Menu, i see a busy cursor for sometime but the application does not come up. How do i get it working? ...

Missing Network shares in wx.FileDialog

Hi everyone! I'm using Xubuntu 8.10 with Nautilus as file manager (XFCE desktop isn't active, Nautilus handles it), and I have a wxPython 2.8.8.0 application with a FileBrowseButton that works as expected, except for the "Network" shortcut on the left side of the FileDialog, that is missing. I tried with other applications too: Firefox ...

Ubuntu - SmartFoxServer - Check program is running

Hi I am wanting to run SmartFox Server on my Ubuntu 8.10 Intrepid server default port is 9339 I cant telnet localhost 9339 as it says connection reused UFW is off as status shows not loaded So I want to: Check that the SMARTFOX is loaded - i do ./sfs start and it says loaded Check why I cant access localy via telnet to the 9339 po...

Platform-dependent issue in run-length encoding of bmp files using C

I've written a program which opens a bmp file and treats it as a character file and performs run length encoding on it. It produces a valid compressed encoding file, which I read again to perform the decoding. When i'd made the application i was using Fedora and it ran perfectly fine. Now i'm running it on ubuntu and it refuses to work....

shell script to reset Evolution passwords

I posted the following question to the Ubuntu forum and no success yet. I realize this is less of a programming issue and more of an Evolution/Ubuntu issue, but given that I want to automate the solution it seems not inappropriate to post it here... Here is the problem. I changed my Google account password recently and now Evolution (U...

Upgraded to ubuntu 9.04 django test are now slow

Upgraded my laptop to Ubuntu 9.04 and runing latest trunk of django and my test suite has tripled in time to run. Python2.6 Mysql Django 1.1 beta 1 SVN-10137 ...

In Ubuntu, how do I figure out which process is a network pig

Using top it's easy to identify processes that are hogging memory and cpu, but ocasionally I see my computer's network activity spike, but I'm unable to determine which process is generating the activity. Where is the right place to look for this information? ...