My client had some developer write a small c++ command-line app to run on their Linux servers. On one of the servers (running Fedora 11), when I execute the app I get the following error: Obviously the first thing I did was But I get So the library already exists and is up-to-date. Usually to me these errors …
Tag: linux
Rails sends 0 byte files using send_file
I can’t get send_file(Model.attachment.path) to work. It doesn’t fail, instead, it sends a 0 byte size file to the client, the file names are correct though. This problem started happening after I did a big migration from Rails 2.3.8 to 3. There were a lot of other things that took place in this m…
iwlist scan output format
I have to write a tool to get the encryption type out of a iwlist scan. I just can’t seem to find whether or not there’s a standard output. Googling it looks like people are posting slightly different formats, but I can’t tell if they just copy/pasted wrong or what. Specifically, in Encrypti…
How to test in IE with Linux
Normally I have two computers to work on – my development machine, running Ubuntu, and a testing machine that has Windows. The testing machine is in surgery, and I need to be able to test in IE8. Unfortunately I can’t seem to get it to run under wine. I’ve tried the IE NetRenderer add-on for…
csh scripting for password authorisation of user
I’m trying to write a professional program to accept and process input via a Menu based system. The program should have no command line arguments. it will be writen in csh script called TaskMenu. This shell script will: ask for a password from the user. a. If the password is not correct, the system will…
How do you get info for an arbitrary time zone in Linux / POSIX?
Ideally, what I’d like to be able to do is take the name of a time zone and call a function to ask for its corresponding time zone info (offset from UTC, DST offset, dates for DST switch, etc.) in Linux. However, I can’t find any way to do this. The information exists in /usr/share/zoneinfo/ in th…
Using linux sockets the QT way?
I have been googling this, but I can’t seems to find it. Is there a QT way to use linux sockets? It looked like the QSocket class is used for network sockets and not for local linux sockets. Anyone knows anything about this? And maybe a tutorial to get started? Answer QSocket ? I think you’re look…
Solaris equivalent of -o option of grep on Linux
I run the following on Sun Solaris — it runs OK on Linux but not on Sun Solaris: My question is which option on Sun Solaris does the same task as the option grep -o (to match string capture) on Linux? Answer Solaris grep doesn’t seem to have such an option. If you just need this to run on some Solaris…
Is it possible to “hang” a Linux box with a SCHED_FIFO process?
I want to have a real-time process take over my computer. 🙂 I’ve been playing a bit with this. I created a process which is essentially a while (1) (never blocks nor yields the processor) and used schedtool to run it with SCHED_FIFO policy (also tried chrt). However, the process was letting other proces…
Using sed to get an env var from /proc/*/environ weirdness with x00
I’m trying to grovel through some other processes environment to get a specific env var. So I’ve been trying a sed command like: sed -n “s/x00ENV_VAR_NAME=([^x00]*)x00/1/p” /proc/pid/environ But I’m getting as output the full environ file. If I replace the 1 with just a static st…