Hi, I want to run a auto modify .dll service, users submit a specific .dll, I modify it on the server, then user can download modified version of the .dll. Are there any native Linux app that provide common Win32 PE modification capabilities like Icons, Strings, Accelerators, Dialogues, etc. which at least provide a commandline or script...
This code is based on splice-fromnet.c and splice-cp.c to splice from a socket to a pipe and from the pipe to a file but for some reason the first call to splice never returns.
static size_t splice_from_net_to_file(int infd, int outfd)
{
int p[2];
size_t total = 0;
if (pipe(p) == -1)
return error("pipe");
while...
One of the mission of an export tool I have in my application, is to clean all .svn directories from my app directory tree.
I am looking for a recursive command in linux shell that will traverse the entire tree and delete the .svn files.
I am not using export, as this script will be used for some other file/directory names which are not ...
I download the rss-glx 0.9 project's source codes to build. But the configure script complained GL library was not found!
...
checking GL/gl.h usability... yes
checking GL/gl.h presence... yes
checking for GL/gl.h... yes
checking GL/glx.h usability... yes
checking GL/glx.h presence... yes
checking for GL/glx.h... yes
checking for glNewL...
I would like to write a library that draws some opengl on a given window handle.
How can I initialize an opengl-context inside a given window?
Is it possible to do that platform independent using SDL or some other library?
...
Hi all,
I´m looking for a good ssh password/key setup for a system administration of multiple servers.
The ideal one will be one that can be at the same time comfortable and secure, but after thinking a lot around the problem, no solution seems acceptable.
Basically I arrive to these 2 setups:
One where every server has a strong (and...
I am putting together a port scanner as a learning exercise. My problem is I'm trying to set the maximum segment size option(MSS) in the TCP header. I had a look at tcp.h, but I'm having trouble figuring out how to set it. I was hoping there would be an option like this:
tcp_header->mss(32000);
Something similar to the above was in tc...
I'm running an ubuntu jaunty server with 2 network interfaces configured: one public IP, one private. When I request the server IP I get the public IP. If I've got multiple interfaces is there a best practice for assuring I'm getting the public one (which is what I want)?
<?php
echo " <table>";
echo "<tr><td>" .$_SERVER['SERVER_ADDR']...
A few months ago I had to write a small tool to program the eeprom of a rtl8139-card. It's basically the rtl8139-diag tool stripped down to read/write the eeprom.
This tool has to be extend to be able to program the eeprom of rtl8101-cards now. This was not a problem, as the interface to the eeprom is similar to the one of the rtl8139. ...
Hi,
I have a problem probably with my arm toolchain but maybe there's something other that I do wrong. I have Chinese made dev board qq2440 using Samsung s3c2440 ARM9 uC. I'm using Ubuntu x86 with native gcc(4.3.3) and cross-compile version arm-unknown-linux-uclibc-gcc (crosstool-NG-1.3.2) 4.3.2
I followed tutorials from http://blog.le...
Hi All,
I'm doing the reverse of what it seems most people do when bridging an ethernet and wireless interface. I have one box without a wireless card, and I want to provide access to the internet through the box next to it which has both a wireless card and an ethernet card. The wireless card accesses the internet through a wireless rou...
I am required to write a script that would download a file (based on a provided url to that file) using wget and then pipe the result to the mail command so that it can be mailed to a provided email address. This will be used in a php based project.
"Piping the result" preferably would be a built link to the file on the server, so that...
When I build Qt applications on Ubuntu it puts the output files in the main solution folder as opposed to release/debug folders as it does on Windows.
This is problematic because sometimes the output files need to be run as part of the build process (for example to run unit tests).
I have an idea this has something to do with the qmake...
I'm preparing myself to build RTOS solution on top of Linux this going to work on embedded device. I've done some investigation by myself but still I'm a bit confused.
Those are my criteria:
Easy to run on Samsung s3c2440 ARM9 machine
Open Source
Works together with Linux
Good community support
I've seen RTLinux and Xenomai. Xenomai...
Linux no longer can see a modem on /dev/ttyS0
I'm having a problem here, I have a modem that worked on a linux
machine perfectly. Suddenly, it doesn't work any more.
Linux doesn't see it using the wvdialconf command.
The dialup modem is hooked up through the serial port (/dev/ttyS0).
I use wvdialconf to have it work correctly.
What c...
Hi,
I'm trying to write an application that runs as a daemon and monitors
running X sessions. Right now I'm struggling to find documentation
regarding the X security model. Specifically, I'm attempting to
connect to running X displays from my daemon process. Calling
XOpenDisplay(dispName) doesn't work, I guess because my process
doesn't...
In a post's answer on superuser.com, we see that
join <(sort abc) <(sort bcd)
will sort files abc and bcd before sending them to join. This leads to a programming question, better suited for stackoverflow.
How does this work? What exactly is this <() construct? What's it called?
If (sort abc) is a legal call that runs sort on abc ...
I am trying to copy all jpgs from 1 directory to another but only new files and ones that have been updated.
I am using the following command:
\cp -uf /home/ftpuser1/public_html/ftparea/*.jpg /home/ftpuser2/public_html/ftparea/
And I am getting the error:
-bash: /bin/cp: Argument list too long
I am assuming that there are 2 many ...
I've never done any web development on Linux, and I'm about to start a project that requires it. I love ASP.Net MVC, so what are my availble options on Linux that kind of follow the same principles?
The project is a very simple "ecommerce" site (two or three products). There may be other sites to come though that are more complicated.
...
Hi my database has started to go over 2GB in backed up size, so I'm looking at options for splitting the file and then reassembling it to restore the database.
I've got a series of files from doing the following backup shell file:
DATE_STRING=\date +%u%a\
BACKUP_DIR=/home/myhome/backups
/usr/local/mysql_versions/mysql-5.0.27/bin/mys...