std::string sAttr("");
sAttr = sAttr+VAL_TAG_OPEN+sVal->c_str()+VAL_TAG_CLOSE;
else where in the code I have defined
const char VAL_TAG_OPEN[] = "<value>";
sVal is a variable that is retrieved off of a array of string pointers. This works fine in most of the system, windows and linux. However at a customer site, where to my belief...
Hi,
i'm doing a dir listing in my .ssh home dir which gives me a strange result:
ls -lsa .ssh/
total 0
? ?--------- ? ? ? ? ? . ·
? ?--------- ? ? ? ? ? .. ·
? ?--------- ? ? ? ? ? authorized_keys ·
The weird thing is, that this only happens for one user and only in this specific directory. If I do ...
I need to convert css styled (x)html or pdf to doc as accurately as possible and do it on Linux (and if possible also on Mac) from cli. Unfortunately OpenOffice can't handle the layout. Is there any such software or library, commercial of free? Thanks.
...
I'm posting a form in Coldfusion on Linux. Form has a file field. CF requires the enctype="multipart/form-data" attribute on the form tag. If I have this, I get a "JRun Servlet Error - 500 No such file or directory"
If I take the attrib out, the form posts and I get the CF "enctype=multipart/form-data" error.
What to do?
Here's a s...
I have a usb device with some i2c control functions and I would like to add a userspace API for twiddling those bits. How do I add i2c support to my device's existing driver?
...
When I'm working on HTML or CSS, I'm constantly trying to figure out "How many pixels of padding are inside this element? And what color is it? And is that left margin three pixels wide or four?"
Is there a Linux application or set of applications that magnifies part of the screen and provides a pixel ruler and color picker within that ...
What is the behavior of the select(2) function when a file descriptor it is watching for reading is closed by another thread?
From some cursory testing, it does return right away. I suspect the outcome is either that (a) it still continues to wait for data, but if you actually tried to read from it you'd get EBADF (possibly -- there's ...
Hi,
We have a quite large (280 binaries) software project under Linux and currently it has a very dispersed code structure - that means one can't [work out] what code from the source tree is valid (builds to deployable binaries) and what is deprecated. But the Makefiles are good. We need to calculate C/C++ SLOC for entire project.
Here...
Hello all,
I am trying to set up dual monitors on ubuntu 8.10 and am having a lot of difficulty. I have tried going through many tutorials with no luck so I figure I will try here as well.
For some reason my computer does not detect my Dell S199WFP monitor. It only lets me run it at maximum 640x480 resolution. The optimum resolution fo...
Surely there must be a way to do this easily!
I've tried the linux command-line apps sha1sum & md5sum but they seem only to be able to compute hashes of individual files and output a list of hash values, one for each file.
I need to generate a single hash for the entire contents of a folder (not just the filenames).
I'd like to do s...
I'd like to write a Linux screen magnifier that's customized to my liking. Ideally, the magnified window would be a square about 150 pixels wide that follows the mouse cursor wherever it goes.
Is it possible to do this in X11? Would it be easier to have an application window that follows the mouse around, or would it be better (or possi...
For some reason, my installation of gcc seems to be printing an "a with a carat" character in place of all %s's in its error messages, e.g.,
test.c:4: error: expected â, â, â, â or â before â token
Has anyone else seen this before? (Needless to say, it's difficult to Google for.)
(This is on Ubuntu 8.10)
Edit: The guy at http://ubun...
I don't have the faintest clue on how a software or hardware load balancer works. I guess the hardware load balancer is basically a switch and based on some algorithm decides which node to switch to for a incoming request. On the software load balancer front, I guess the software picks up a node and uses a reverse proxy connection to it....
Hello all,
I use to be on a shared host and I could use there standard tools to look at bandwidth graph.
I now have my sites running on a dedicated server and I have no idea whats going on :P sigh
I have installed webmin on my Fedora core 10 machine and I would like to monitor bandwidth. I was about to setup the bandwidth module and i...
So, if I'm in my home directory and I want to move foo.c to ~/bar/baz/foo.c , but those directories don't exist, is there some way to have those directories automatically created, so that you would only have to type
mv foo.c ~/bar/baz/
and everything would work out? It seems like you could alias mv to a simple bash script that would c...
Hello, I am in desperate need of some advice.
I'm almost done with my junior year as a CS major. I sort of feel like a late comer because I didn't really get into computer science until sophomore year... Through hard work, lots of credit hours during the year and summer school I am almost caught up to my peers but here come the worri...
Is it possible to statically link my program with libpthreads and libstdc++ on Linux?
...
I'm only new to using SSH, but when I log in I end up in the directory ~, which in general is the same directory when FTPing in. I can still go to /, but I don't know what the ~ means. Home? Where is it in relation to /, or how could I find out?
...
How to create a shared object that is statically linked with pthreads and libstdc++ on Linux/gcc?
...
I am starting a small project with one other developer and need to setup a dedicated system to house our version control and any other short-term needs the project may have. Requirements for the server are:
Free/open source OS.
Must provide source control.
Must run all the time.
That's it. So I know there are about a thousand Linux-b...