I want an easy way to create multiple directories in C++/Linux.
For example I want to save a file lola.file in the directory:
/tmp/a/b/c
but if the directories are not there I want them to be created automagically. A working example would be perfect.
...
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...
Every LAMP or XAMPP writeup or tutorial I see says "Not for production use", so what do I use for production?
...
Hi,
Like the title says, I want to take a screenshot of a window application running under wine. Not the entire desktop. C would be preferred but could also use java or Pascal.
Thanks in advance
...
Hi -
I am an emacs user (on linux laptop) looking to make better use of my keyboard settings. The windows key is unused on my keyboard... is there any way to map it to m-x? This might make many emacs commands faster.
Thanks,
SetJmp
...
Hi
I am using SDL for an OpenGL application, running on Linux. My problem is that SDL is catching SIGINT and ignoring it. This is a pain because I am developing through a screen session, and I can't kill the running program with CTRL-C (the program the computer is running on is connected to a projector and has no input devices).
Is the...
Is it possible to update the environment from a makefile? I want to be able to create a target to set the client environment variables for them. Something like this:
AXIS2_HOME ?= /usr/local/axis2-1.4.1
JAVA_HOME ?= /usr/java/latest
CLASSPATH := foo foo
setenv:
export AXIS2_HOME
export JAVA_HOME
export CLASSPATH
So that...
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 ...
Bash uses readline, and readline can delete the word to the right of the cursor with "kill-word".
The problem is in recognizing the keypress of control-delete. When I press them in bash, "5~" is output on the screen. I could just bind for this, but it would mean that one day I need to type "5~", and it deletes a word to the right in...
I'm trying to use gstreamer 0.10 from Python to simultaneously display a v4l2 video source and record it to xvid-in-avi. Over a long period of time the computer would be fast enough to do this but if another program uses the disk it drops frames. That's bad enough, but on playback there are bursts of movement in the video where frames we...
Okay, I've scoured google and I haven't found an answer for this. Not exactly programming related unless I was trying to use an ide over the session...
I have servers at the same remote location; one is older running fedora 4 (P4 3.0Ghz) and a couple of newer server running Centos5 (Quad Xeon 1.6).
I can run a remote X session on bo...
I've recently built a linux platform interface for Cocotron, and was able to build the Foundation framework with no errors.
However, when linking my objective-C project, I get a linker error:
/Developer/Cocotron/1.0/Linux/i386/Frameworks/Foundation.framework//libFoundation.so: undefined reference to `__gnu_objc_personality_v0'
I've do...
Hi,
Can I use imlib2 with gtk2 or is it better to use it with Qt for image manipulation ? Or if someone knows if I can use imlib2 with free pascal and/or java that would be great.
Thanks in advance
Mike
...
Hi
My PHP script writes to a file so that it can create a jpg image.
fwrite($handle, $GLOBALS['HTTP_RAW_POST_DATA']);
fclose($handle);
print $newfile.'.jpg';
I have put this script on a new server however the image never gets saved. The permission of the folder it saves to is 755 but it does not own it. Last time, I think I fixed...
Using the linux command line and subversion, is it possible to take a directory and add version control to it? Basically, I want to import the directory into a newly created repo, but also have the directory be a working copy without having to check it out.
...
I'm writing a client-server pair in C++ using Linux sockets. I want the server to listen for a connection, and while one client is connected the server should reject any other clients that try to connect.
I tried implementing this by setting the backlog parameter in the listen function to 0 and to 1 and neither one of those values seem...
The problem
I've got a programm that uses storm 0.14 and it gives me this error on windows:
sqlite3.OperationError: database table is locked
The thing is, under linux it works correctly.
I've got the impression that it happens only after a certain amount of changes have been done, as it happens in some code, that copies a lot of ob...
Is there a simple, yet decent .aspx designer that runs on Linux? I've since all the ones in this question but none satisfied the "runs on Linux" condition. By decent, I mean that the designer allow me drop asp.net webcontrols on a webpages for futher use in Monodevelop.
...
I'm using emacs in a console window both on my local Linux box and on the login node of a remote cluster. I use emacs regularly, and I've got the foreground color set to white in my .emacs file like so:
(set-foreground-color "white")
(set-background-color "black")
However, when I run emacs, the foreground isn't white; it's grey and v...
Is it possible to export (for nfs mounting) tmpfs or rootfs directories?
I have many linux nodes which are booted into a ram based filesystem with just rootfs and tmpfs. I want each node to see some files in the other nodes, so I am trying to export some directory and trying to mount on another node.
I see the following error in /var/log...