I've got a file and a patch for it. I'd like to visually apply the patch, t.i. see how the changes proposed by the patch look in context, make some corrections, and save the resulting file.
What tool can do that?
Neither of the visual diff tools (i.e. meld, diffuse, diffmerge) do what I want: they don't work with patches, they merely m...
Hi,
I am using a unix socket. When buffer is send to the socket it gives me unknown error 196.
Please help on this.
BOOL SendData(int iBuffer)
{
//Send data over socket
int nRet = send(m_listenSock, m_cBuffer, iBuffer, 0);
if(SOCKET_ERROR > nRet)
{
//log the error char temp;
int length= sizeof(int);
...
Hi,
From A TCP client when i call the send to server. It is giving Broken Pipe error.
...
I have a linux server with PHP, I do not see gettext in the PHPINFO output, so I assume gettext is not enabled/included in the PHP. I have installed the gettext lib on the machine.
What other steps do I need to do to enable gettext in my PHP?
I read the php.net documentation, the only entry there writes about building PHP with gettext...
How can I quickly check if Linux unzip is installed using Perl?
...
I am looking for a hardware, which must run about 256 computationally intensive real-time concurrent tasks in 24 hour mode (one multi-threaded C application). Each task takes about 40-50 MFLOPs, so all tasks require about 10 GFLOPs. CPU-RAM speed is insignificant. All tasks must be managed by a Linux Kernel (32 bit, with SMP).
I am look...
I have a specific problem.
I am starting learning OpenGL and I am not sure, how to set it up on (Ubuntu) Linux.
I think that this could be a way:
========================================================================
OpenGL is only a graphics language "specification" (or "interface") and to properly use it I have to download some lib...
I have a multithreaded application written in C++. And I'm using mutex for file writes. I have a suspicion that somewhere during the execution of the program, the mutex isn't being released.
So I was wondering if there was a way to check for mutex locks and releases on a file, programmatically or otherwise.
I'm running the code on SuseLi...
Is there an easy way to show whether there are any symlinks in a specified path pointing to a certain directory or one of its children?
...
What multi-threaded C++ library can be used for writing Linux, Windows, Solaris, and iPhone applications? Such as:
TBB
Boost
OpenMP
ACE
POCO
Any others?
...
I'm experimenting with Xlib to gain a deeper understanding of how Linux GUI programs work. I've written a simple program that display "Hello, world" in a window, but it looks rather anachronistic since the text is not anti-aliased.
What is the best way to display anti-aliased text in X11? How is anti-aliasing implemented in GTK, Qt, and...
These are some of the things that every web developer should know when building a web app.
This tools will save everyone lots of time. Tools like "memcached" and "beanstalkd" are super dead simple and provides lots of value. If someone could list their simple yet effective tools in this list, it would be good.
I'll make this community...
Where can I find the infamous list.h from the linux kernel?
I remember seeing it at once point and I can't for the life of me find it again. I'm running a Windows box so it would be great if you can point me out to a nice HTTP site where it's hosted :)
Thanks.
...
Hi, I'm tackling a trivial buffer overflow (yes, exploitation; but unrelated to the problem) I'm trying to figure out the fields in the memory map, when GCC's stack protector is enabled. As an illustration:
$ ./overflow
*** stack smashing detected ***: ./overflow terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__for...
How to output a frequency 1kHz and power/volume = 60% in Linux (Ubuntu)?
I need sample code in C/C++. Thanks!
...
Hi,
I'm using Debian x64 2.6.26 to host a server application we've written in C++. Sometimes GDB gets activated on its own and it uses 100% CPU time giving no room for other processes to run. The GDB version is 6.8-debian. I don't know why this happens and how may i prevent this. It seems that it only happens when out server application...
I have two twins CentOS 5.4 servers with VMware Server installed on each.
What is the most reliable and fast method for copying virtual machines files from one server to the other, assuming that I always use sparse file for my vmware virtual machines?
The vm's files are a pain to copy since they are very large (50 GB) but since they ...
I have a doubt regarding heap in program execution layout diagram of a C program.
I know that all the dynamically allocated memory is allotted in heap which grows dynamically. But I would like to know what is the max heap size for a C program ??
I am just attaching a sample C program ... here I am trying to allocate 1GB memory to stri...
Can someone suggest what's the best uses for those libraries today? Is it just GUI, or do they have database, XML, networking, threading, etc support too?
I was reading about them, and considered starting to learning/using one of them.
What is the most common one? What's the difference between them? Why would you choose one over the ot...
I have the following script:
cat > /tmp/script.sh <<EndOfScript
#!/bin/sh
ulimit -n 8192
run_app
EndOfScript
which runs smoothly locally, it is always ok. But if I try to run it remotely through ssh:
scp /tmp/script.sh user@host:/tmp/script.sh
ssh user@host "chmod 755 /tmp/script.sh; /tmp/script.sh"
I got the error:
ulimit: open ...