In Linux
In MySQL 4.0, I press <Home> the cursor will go to the beginning of line, but has no effect according to press <Home> in MySQL 5.1, it appear a "~" character only.
I press <Ctrl>+<A> the cursor go home
I press <Ctrl>+<E> the cursor go end
But in MySQL 4.0 I press <Home> Not <Ctrl>+<A>
My practice is to press <Home> <End> <D...
After finding a pretty nasty bug in the packaged 3.51.15 driver that came with ubuntu I downloaded and compiled the latest version from mysql's site.
Now im wondering how I can find out what version isql is actually using.
...
Do you need to set up a Linux cluster first in order to setup a Hadoop cluster ?
...
What are the best tools out there?
...
For a long time now, I've largely developed using open source languages, toolkits, etc. on Linux and Mac. A new project, though, is about to shove me into the .NET world. Moreover, a .NET world whose products will be deployed to a Windows infrastructure.
In my mind, I made the assumption that I wouldn't be able to develop for this platf...
How to extract filename from the path; i have a list of files. I'm using csh shell, and have awk, sed, perl installed.
/dfgfd/dfgdfg/filename
should give me
filename
I tried basename:
find $PROJDIR -name '*.c' -o -name '*.cc' -o -name '*.h'
| xargs grep -l pattern | xargs basename
and it gave me the following error:
basen...
Cheers,
I want to avoid problems with compiling my code on amd64, yet I don't have a 64-bit CPU available and have no hopes of getting upgrade to my machine any time soon. I have no dreams of testing the code (although that should theoretically be possible using qemu-system) but I'd like to at least compile the code using gcc -m64.
Bas...
I have a LAMP application running fine, however the number of users are increasing each day. I don't want to be hit with a surprise one morning and find that everything broke because of overload. Is there a way to get a rough estimate of what capacity of the LAMP it is at?
I know that a full detailed report is many books worth of study...
On a Linux box I want to run a Python script as another user.
I've already made a wrapper program in C++ that calls the script, since I've realized that the ownership of running the script is decided by the ownership of the python interpreter. After that I change the C++ program to a different user and run the C++ program.
This setup d...
For example, if ./configure or Make tells me I'm lacking libX11.so.6, and it's nowhere on my system, is there a tool or website into which I could type
libX11.so.6
followed by a distribution/arch and get back
libx11-6
libx11-6-debug [or whatever; asking README would probably return reams of entries]
http://sysinf0.klabs....
main.cpp <- line 106 to 164 invoke dlopen/dlsym/dlclose
basefilter.hpp <- naked abstract base class
basefilter.cpp
examplefilter.hpp <- a test plugin
examplefilter.cpp
everything <- the repository
Running the whole thing will result in the following error:
Cannot open library "./libexamplefilter.so" ./libexamplefilter.so: undefined s...
I have a library written in C that gets distributed as a PHP extension, and my users are having problems accessing the library when running in a Shared Hosting environment.
Previously (In PHP versions less that 5.2.5) our customers could simply use the dl() function and the full path to the library to access it.
Since PHP 5.2.5 the dl(...
I'm looking at a product that was coded in a mix of .NET and ASP Classic. I'm wondering if it's possible to get this running in Linux? I've heard of Mono (which can supposedly run .NET on Linux) and Sun Java Web Server (which can supposedly run ASP Classic on Linux). Are there any other technologies that you would recommend?
Also, are t...
Does anyone know an elegant way to initiate a bash script (to run on a linux box) from a windows service written in C#?
I can only think of some combination of putty doing auto-login and automatically running a command upon login.
But this seems clumsy and a bit insecure.
Security doesn't need to be very high as both boxes reside on t...
I have a closed-source Linux application that I want to distribute. This application is using wxWidgets/GTK so there is a huge list of shared libraries (60+) that this application depends on.
What is the prefered way to publish the application and support the maximum number of distros?
Is it to build the application for each supported...
I'm busting my head but cannot find a solution for this. Please consider this scenario:
I have writers that want to write to non-blocking "queue" to another machine on the local network and have a reader that will read data (blocking mode if there are no writers) and do some job A and then return after a long hour and take next data.
...
I am trying to display, set & modify PATH environment variable from a C program. I am doing something like this:-
char *cmd[] = { "echo", "$PATH", (char *)0 };
if (execlp("echo", *cmd) == -1)
But I am not getting the results.
...
WHen I compile this code, it shows me linker error
#include <curses.h>
#include <ncurses.h>
int main()
{ int ch;
raw(); /* Line buffering disabled */
}
Compiler error:
/tmp/ccY9Bug1.o: In function `main':
raw.c:(.text+0x12): undefined reference to `raw'
collect2: ld returned 1 exit status
I have checked that curses.h anf...
How is Linux simultaneously 32bit and 64bit? Or is that something handled in glibc?
I run CentOS 5.3 and it is a "64 bit" version; although I build things for 64 bit and 32 bit. From what I think I know, Windows supposedly has a 32bit emulator. Does Linux do the same thing? Is it in userspace or kernel space?
If libc handles it, is it ...
I have an asynchronous application executing several threads doing operations over sockets where operations are scheduled and then executed asynchronously.
I'm trying to avoid a situation when once scheduled a read operation over a socket, the socket gets closed and reopened(by possibly another peer in another operation), before the fir...