ubuntu

how can I install pspell in php5/ubuntu ?

I am trying to install pspell for PHP 5 in Ubuntu. I have installed the aspell library which is required to run pspell as shown here I am not sure if there are any settings I need to change, etc. When I try to execute the below mentioned line of code $pspell_link = pspell_new("en"); I get an error Fatal error: Call to undefined func...

Start a "throwaway" MySQL session for testing code?

Hi, If I want to be able to test my application against a empty MySQL database each time my application's testsuite is run, how can I start up a server as a non-root user which refers to a empty (not saved anywhere, or in saved to /tmp) MySQL database? My application is in Python, and I'm using unittest on Ubuntu 9.10. ...

fast md5sum on millions of strings in bash/ubuntu

I need the MD5 sums of 3 million strings or so in a bash script on ubuntu. 3 million strings -> 3 million MD5 hashes. The trivial implementation takes about 0.005sec per string. That's over 4 hours. What faster alternatives exist? Is there a way to pump groups of strings into md5sum? #time md5sum running 100 times on short strings #each...

How to check if a latex package has been installed?

Hi, under Ubuntu, just wonder how to check if a latex package has been installed? When installing, I followed the methods mentioned in http://math.arizona.edu/support/tex/accountpackages.html and http://en.wikibooks.org/wiki/LaTeX/Packages/Installing%5FExtra%5FPackages. Thanks and regards! ...

How to create executable coff file from a C source

Hi, I am trying to do a simulate with Simcore Alpha/Functional Simulator and I need to create an image file but it is giving an error like "This is not Coff Executable" how can I create an Executable Coff file from a C source in linux? ...

How to install imagingft in OSX and Ubuntu?

I'm using PIL 1.1.6 to render a truetype font on my local Windows machine. I'd like to be able to get the application running in OSX and Ubuntu (server). So far the instructions I've found all deal with specific ports repositories on OSX (Darwinports, Macports, etc.) or very outdated instructions for Linux. Has anyone recently got ima...

Unable to get Netbeans debugger working for python.

Ubuntu 9.10 Netbeans 6.7.1 Whenever I start the debugger it crashes out with the error below. I've set the project properties to the correct version of python, although it doesn't seem to make any difference what it is set to. I've also noticed that the PythonConsole window reports that Python 2.5.0+ is running regardless of the versi...

Trusted timestamping log files in Ubuntu 9.10

Hi, We have an ubuntu 9.10 server. There are some log files need to be archived and they must be timestamped to guarantee no change in time. I've found this page but couldn't found a proper solution for my current needs. Is there any command to sign log files with a trusted timestamp in Ubuntu? Regards, Burak ...

Setting up java classpath and java_home correctly in Ubuntu

I am getting the error Exception in thread "main" java.lang.NoClassDefFoundError: When I try and run a compiled class on Ubuntu. I am using a very simple Helloworld example, and the millions of responses which already exist on the internet suggest that my CLASSPATH and JAVA_HOME variables have been incorrectly set. However, I hav...

Need init.d script for Python application

I have a python based application which works like a feed aggregator and needs to be part of init.d script so that I could control the execution with start/stop/restart options. Also I want the init.d script to be setup as a cron job (I have example here). I found one sample here http://homepage.hispeed.ch/py430/python/daemon (PS. I ...

accessing local git repository from windows

I have git repository (powered by gitosis) on my local ubuntu server I want to have an access from the other local computer powered by windows xp (msysgit) I have generated rsa key on windows machine and published to ubuntu server I have .ssh/config file setted to use this key on windows machine When I do ssh [email protected] t...

Zend Framework, phpUnit and Doctrine cause problems

Hello everyone. First some basic info: Ubuntu latest version Zend Framewrok 1.9.6 Doctrine 1.2.1 Php unit latest version I have been following this and thistutorial to set up my zend envrionment with doctrine and phpUnit. My environment is not an emtpy project since I had done some developments before I configured doctrine and php...

Launch script on any network connection

On linux (ubuntu), is it possible to execute a script upon any incoming network connection? During long periods inactivity on my home server, I plan on stopping the software raid, parking the data disks and restarting the raid array upon encountering an incoming network connection. I've been researching this problem and haven't come a...

pydev disappeared when sudo eclipse

pydev disappeared when sudo eclipse I am trying to run py script with root power within eclipse. So I started eclipse as 'sudo eclipse'. But then pydev plugin dispeared. The CDT plugin seemed to be OK. I installed eclipse from Ubuntu repository and pydev using eclipse 's installation manager under my user account. Pydev is working fin...

Why does this code work on PHP Version 5.2.10 and not on PHP Version 5.2.10-2?

With this code I am iterating trough an object. Why is this working on my WAMP box with PHP 5.2.10 and isn't it on my Ubuntu 9.10 installation with PHP 5.2.10-2 from the repo's? $incomingData = json_decode($_POST['data']); foreach($incomingData as $key => $action) { } Invalid argument supplied for foreach() ...

Installer/packager for a Java application for Ubuntu and SuSE

I have a Java application complied to a collection of jars that I want to make installable on Ubuntu and SuSE. I Want the installer to be able to check for the JRE, register a file association and be able to load a website on un-install. I understand Ubuntu and SuSE are based on different architectures, so is there a consistent way to d...

Caught exception while loading file struts-default.xml

I'm not that new to Java. I've done plenty of stuff with it before. But I'm migrating from PHP to Java Servlet/JSP (which I am new to) and I can't figure out this error to save my life. I installed Tomcat6 using Ubuntu 9.04's Synaptic Package Manager and it works like a charm. But when I put struts in my WEB-INF/lib directory and try to ...

Ubuntu ARM requirements (CLI only)

Hi. I am using Ubuntu ARM as testing platform on a QEMU emulator. The emulator has 256MB of RAM, but I'm wondering: what are the minimum requirements for running Ubuntu ARM? (CLI only) ...

What version on Ubuntu should I run my Rails app on?

My host gives me a few choices when it comes to distros. I know I want to run Ubuntu, but What version will give me the best compatibility with a typical rails app and the usual libraries I'd be using with Rails. I have these available to me: Ubuntu 8.04.2 LTS (hardy) Ubuntu 8.10 (intrepid) Ubuntu 9.04 (jaunty) Ubuntu 9.10 (karmic) ...

Just can't autostart tomcat in Ubuntu. What's wrong?

I tried two ways: Add the following in etc/rc.local: export JAVA_HOME=/home/phoenies/jdk1.6.0_17 export JRE_HOME=/home/phoenies/jdk1.6.0_17/jre export CLASSPATH=.:/home/phoenies/jdk1.6.0_17/lib/* /home/phoenies/scarab-0.21/tomcat/bin/startup.sh Run this: ln -s -t /etc/init.d /home/phoenies/scarab-0.21/tomcat/bin/startup.sh mv /etc/in...