ubuntu

Creating a C wrapper with Cython - Python

Hi folks, I've been trying to figure out how to wrap the following C functions = compress.c , compress.h. I tried following the tutorials, but after creating the .pxd file I don't know what to do :| From what I have understood this is the pxd file that I should have cdef extern from "compress.h": size_t compress(void *s_start, v...

Get integer date representation (epoc time or jan1st 0001 base) from string ( Fri 4/2/2004 9:55:54 AM --------> <long representation>)

I have the date in a string in the following format. Fri 4/2/2004 9:55:54 AM I would like to have a generic time utility in c++ which parses this and provides me the long/int representation which is either the epoc time base or Jan 1st 0001 time base. (Wish list) Also, it will be good if the util is fairly generic, in the sense that, ...

What does this expression evaluate to? (bash shell script)

I am trying to do a code walk through a badly written bash script. I have come across this statement: FOOBAR_NAME=`date +WeekNo.%W` There are no prior declarations of any of the RHS variables in the script, lines preceding this statement. So my question is: What does FOOBAR_NAME resolve to, when it is used a few lines down in the s...

Setting hudson to operate on current user/root level On Ubuntu?

Hello guys I have an Ubunto system with hudson running as a daemon with an init (start/stop) script. Unfortunately every time I'm trying to run a build, hudson fails to access the pom file, since hudson is running under hudson user, rather then the current user logged into ububntu that has full root rights and can run build. I tried add...

Consuming bandwidth

I have noticed that when I download something from a torrent, if it is downloading at full speed, it will not allow the web browser to view any webpage, because the torrent program uses the full bandwidth. Just as an experiment, is there any other program which is able to do this constantly, i.e. use the full bandwidth of the internet c...

shell command for finding all packages that provide a certain virtual package

Hello, As the tile suggests, I want to get a list of all packages that provide a certain virtual package. A way of doing this would be to write a shell script that parses all output of apt-cache search -f .* And spits out all packages that have the virtual package in the provides section. The problem with this approach is that it tak...

Consuming bandwidth

Dear Community, I know how to write a basic bash script which uses wget to download a file, but how do I run this in an endless loop to download the specified file, delete it when the download is complete, then download it again. ...

Add a Ubuntu User from Web Interface

Hi, I have been tasked with the job of creating a web based system to add system users to our Ubuntu linux server. I have been reading up online, and there seems to be a fair few different ways to go about doing it, none of which really have examples. I understand the best way for me to do it would be to temporary give sudo to the apac...

Add application to Ubuntu's root's autorun

Hello, I need to add my lampp to autorun. Where shuld I put this command /opt/lampp/lampp start to be runned from root on system bootup? Thank you. ...

ming swf library how to install in Ubuntu ?

Can someone please explain how to install ming in an Ubuntu 10.0.4 (Lucid) environment? I've been hearing really amazing things about this package, but I can't get it to install correctly. ...

Autoupdating AIR apps on Linux without prompting for sudo password

Hey there overflowers, Maybe that's more of a Linux question than an Adobe Air one, but there you go: I have an AIR 2 app that does auto-update in the background, with no need for user interaction. It uses Air's own ApplicationUpdater framework (the one that doesn't require a UI) - all goes well until the package gets downloaded and nee...

Ubuntu: how to make apt-get/synaptic work for own application

We are developing a (closed-source) Java application and think about possibilities to update the software automatically on the user's machines. Fortunately, for nearly all Linux systems there exist package managers. We don't think it would be useful to add our application to the common repositories for several reasons, but how to create ...

Debian/Ubuntu r-base-*, r-cran-*, revolution-r packages: porting to ArchLinux

Recently I've migrated to Arch Linux, after ~4 years being loyal to Ubuntu. Everything works like a charm, it's noticeably faster than Ubuntu, IMHO it's easier to customise, but when it is to do with support for R, well, Ubuntu takes a medal. I'm not willing to do another distro-shuffle and switch back to Ubuntu, while Debian is just "to...

Mac Packaging: proposal for a new method(suggestions please)

Macports is the only packaging system I have checked out on the Mac and I dont like it.(it needs all its applications installed in a particular location. Thats probably the reason why it showed Python2.5 as a dependency which needs to be installed even though I already had it.) For a person who has moved over from Ubuntu, I sorely miss a...

rails log error on start up

I see the following error when I start my rails app: $ script/server --environment=production => Booting WEBrick => Rails 2.3.5 application starting on http://0.0.0.0:3000 /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or af...

How to use sudo over SFTP with CyberDuck?

I'm copying this question from over here: http://getsatisfaction.com/cyberduck/topics/can_i_use_sudo_over_sftp_with_cyberduck I am having the same issue and finding it hard to find an answer: I am using Cyberduck over SFTP. I can connect and browse files fine, but when I try to upload, I get a permissions error. Web host says ...

How to configure eclipse pdt and lamp server on Ubunto 10.04?

Hello everyone, this is a basich question about properly setting up the lamp server to work with eclipse and xdebugger. I have lamp server installed and working properly. I have eclipse pdt as described here Eclipse plugin PPA for Ubuntu by Yogarine and it is properly installed. I have installed xdebugger and configure the xdebug.ini fil...

Eclipse, Subversion and relocating of projects

Hello, I use Eclipse 3.5.1 downloaded from Yoxos under Ubuntu 9.10. I had to correct some problems : - GTK bug (export GDK_NATIVE_WINDOWS=1) - sqlite3 (I replaced the version of Ubuntu by a fresh one from the site and compiled; before I got a crash each time I get a hint about a function) But I still have one with subversion : I r...

Exception: Failed to start new browser session: Error while launching browser Selenium in Python

I am getting the following errors when running a basic Selenium test script in Python: ====================================================================== ERROR: test_untitled (__main__.TestTesting) ---------------------------------------------------------------------- Traceback (most recent call last): File "TestTesting.py", line ...

Installing Rcpp in R 2.10 on Ubuntu

I'm trying to install Rcpp on Ubuntu 10.04 and getting this error (which implies that it doesn't exist): > install.packages("Rcpp") Warning in install.packages("Rcpp") : argument 'lib' is missing: using '/home/vadmin/R/i486-pc-linux-gnu-library/2.10' Warning message: In getDependencies(pkgs, dependencies, available, lib) : package ‘...