I'm attempting to build mercurial 1.3.1. I've attempted this thus far on my Mac OS X machine and on a Linux Ubuntu virtual machine that I'm running.
I keep getting errors while running the make. I know there are binaries availble for both Linux and Mac, but I want to build my own copy. I've always skipped out on building and I want to ...
On Linux I am used to using mkpasswd to generate random passwords to use, on OS X however I don't have this command. Instead of sshing in to my vps every time, I wanted to re implement it using Java. What I have done is pick at random 4 lower case letters, 2 upper case letters, 2 symbols (/ . , etc) and 2 numbers. Then I create a vector...
I am programmer with a games and 3D graphics background and at the moment I would like to brush up on my networking and web development skills.
I have a task that I would like to accomplish to do this. My idea is that I would like to be able to send a HTTP request or something similar to my webserver, which runs a LAMP based setup. I wo...
I track a lot of parameters on my Server and the only thing I can't realy put in perspective is the IOstat. It is a MySQL Server, is this a good result, or should I worry?
root:/var/lib/mysql# iostat -xc
Linux 2.6.28-11-server () 07/25/2009 _x86_64_ (8 CPU)
avg-cpu: %user %nice %system %iowait %steal %idle
...
is there a simple way to remove the same line of text from a folder full of text documents at the command line?
...
Guys, could you please recommend a tool for spotting a memory corruption on a production multithreaded server built with c++ and working under linux x86_64? I'm currently facing the following problem : every several hours my server crashes with a segfault and the core dump shows that error happens in malloc/calloc which is definitely a s...
I found in IOStat, that some part of my application is writing extensively, but I don't know which process it is and what files it is writing to. In Vista there is a tool fo that which shows the files that have been active in the last 30 Seconds. Is there something similar for Linux?
...
I would like to distribute a rails application as a double clickable application. When someone double clicks on the app, I think that mongrel should be started and then the user's browser should be started and open to something like localhost:3000 I'm trying to work through what I will need to do this, I think I'm going to need to incl...
I have a linux command line that I need to execute witin either PHP or Javascript (PHP preferred.)
The command is
keygen AB3554C1D1971DB7 \pc_code 365
However, I would like to substitute the \pc_code with a string like $pccode where user enters the generated PC Code. This is for a legit project, but having a problem with creators of...
Anything higher-level, and more comprehensive than pipes/sockets?
...
I am stuck with that task.
I've written svn post-commit hook, that should update working copy on server, if something was changed. But seems to be it doesn't have permissions on that folder, but I've set them to allow everybody to write and read there.
So here is the test script:
#!/bin/sh
REPOS="$1"
REV="$2"
DIR="/root/root/trunk"
...
I have a small app written in C designed to run on Linux. Part of the app accepts user-input from the keyboard, and it uses non-canonical terminal mode so that it can respond to each keystroke.
The section of code that accepts input is a simple function which is called repeatedly in a loop:
char get_input()
{
char c = 0;
int res =...
I'm trying to install a piece of software (moddims) that depends on "Imagemagick 6.3.9+" - I tried installing the latest version of ImageMagick (6.5.4-5) but got the following error when I tried to "make" moddims:
mod_dims_ops.c: In function ‘dims_smart_crop_operation’:
mod_dims_ops.c:34: error: too few arguments to function ‘ParseGravi...
I'm looking for a way to read specific files from a rar archive into memory. Specifically they are a collection of numbered image files (I'm writing a comic reader). While I can simply unrar these files and load them as needed (deleting them when done), I'd prefer to avoid that if possible.
That all said, I'd prefer a solution that's ...
Hi all,
I have an application that interacts with external devices using serial communication. There are two versions of the device differing in their implementations.
-->One is developed and tested by my team
-->The other version by a different team.
Since the other team has left, our team is looking after it's maintenance. The othe...
I think that detection of source/destination mac addresses of a packet is done after NF_IP_POST_ROUTING step of Netfilter. Is it possible to hook the packet after this step with correct mac addrs? I want to decide about the out-going packet from my NIC to another to drop/accept packet. In another way, it is like to a firewall rule on mac...
Hello!
I'm implementing persistent large constant arrays via mmap. Is there any tips and tricks or gotchas one should be aware when using mmap?
...
Is it possible to get the filename of a file descriptor in C?
...
Hi,
When I write
gnome-terminal --tab
at the terminal, I expect it to open a new tab in the same terminal window. But it opens a new window instead.
I found out that its intention is to open a new tab in a new window, i.e., if I write
gnome-terminal --tab --tab
it will open a new window with two tabs.
So, the question is...
I have a long running process which monitors the system and prints periodic logs. If I let it run for longer than 10-15 minutes, it exits with a message saying:
Too many open files.
The program is setup using real time timer_create() and timer_settime() which raise a SIGUSR1 every 2 seconds. In the handler, there is one fork()-exec() in...