I have installed the most recent version of boost in /usr/local (with includes in /usr/local/include/boost and libraries in /usr/local/lib/boost) and I am now attempting to install Wt from source, but cmake (version 2.6) can't seem to find the boost installation. It tries to give helpful suggestions about setting BOOST_DIR and Boost_LIB...
I am trying to get total cpu usage in %. First I should start by saying that "top" will simply not do, as there is a delay between cpu dumps, it requires 2 dumps and several seconds, which hangs my program (I do not want to give it its own thread)
next thing what I tried is "ps" which is instant but always gives very high number in tota...
Hi,
I use SysV shared memory to let two processes communicate with each other. I do not want the code to become to complex so I wondered if I really had to use semaphores to synchronize the access to the shared memory. In my C/C++ program the parent process reads from the shared memory and the child process writes to the shared memory. ...
Hi,
I have some code that fetches some data from the database, database codepage is UTF8. When I run the code on a linux box, some characters come out as question marks (?) but when I run the same code on a windows server, all characters appear correctly.
When I do:
$> $LANG
Following is returned
en_SG.UTF-8
en_SG is something that d...
How come when I type "rails", it won't work... but when I type "/var/lib/gems/1.8/bin/rails" it will work? How do I bind it so that I don't have to type the full path everytime?
...
I'm curious what the CPU ordering is in Linux. Say I bind a thread to cpu0 and another to cpu1 on a hyperthreaded system, are they both going to be on the same physical core. Given a Core i7 920 with 4 cores and hyperthreading, the output of /proc/cpuinfo has me thinking that cpu0 and cpu1 are different physical cores, and cpu0 and cpu...
Hi,
Im learning device driver programming in Linux. And I'm wondering where I could the IRQ number in the request_irq function.
int request_irq (unsigned int irq, void (*handler) (int, void *, struct pt_regs *), unsigned long irqflags, const char *devname, void *dev_id);
In the irq parameter, what value or where could I find that v...
Any one knows how can I invoke the tclsh in the Tcl code due to different paths to tclsh in various platforms (Linux, SUN)?
For example in SUN:
#!/usr/bin/sun/tclsh
in Linux:
#!/usr/bin/linux/tclsh
How can I use the same Tcl code and execute it in the above two paths?
...
Linux /proc/meminfo shows a number of memory usage statistics.
MemTotal: 4040732 kB
MemFree: 23160 kB
Buffers: 163340 kB
Cached: 3707080 kB
SwapCached: 0 kB
Active: 1129324 kB
Inactive: 2762912 kB
There is quite a bit of overlap between them. For example, as far as I understand, there ca...
Hi folks,
I wonder, how a bash file can contain a Java code that is responsible about the installation of netbeans IDE which is as known is a Java based program?
this is the case of netbeans:
$ file netbeans-6.8-ml-java-linux.sh
netbeans-6.8-ml-java-linux.sh: POSIX shell script text executable
$ more netbeans-6.8-ml-java-linux.sh
#!/b...
Hi,
I am recently have been successfully installed NetBean 6.8 on Ubuntu Box (10.04).
But the problem is, NetBeans doesn't use the Gnome mouse Cursor by default. instead, It uses some freak mouse cursor that I hate!
So, do you have any idea about how to change the cursor that appears inside netbeans.(I have looked inside tools> options...
Hi All,
Is it ok to use same socket fd in multiple threads ? (over linux)
...
Hi,
Im using linux as my programming platform. I am using poll(2) to know if my device is triggering an event.
The first call of poll is ok, it blocks and wait for the event to happen. But in the second poll function call, it will return but it capture the event. Below are my code
ret = poll( fds, 1, 2000); //2 secs timeout
if( fds[...
I'm looking into porting a script engine written for Windows to Linux; it's for Winamp's visualization platform AVS. I'm not sure if it's even possible at the moment. From what I can tell the code is taking the addresses of the C functions nseel_asm_atan and nseel_asm_atan_end and storing them inside a table that it can reference during ...
Hi ,
Adobe Flash CS4 has the option to publish the swf as windows executable . Is there an Option to publish swf as Linux executables ?
Are there any work around where in which flash files has to be execute inside Linux with an embedded standalone flash player.
Any help appreciated
Thanks!
...
Hi, we want to test our webpages on linux shell. For that reason I'm looking for a shell tool, which gets the html page from server (like 'wget') and then executes contained Javascript, include pictures and so on. After this, the tool should give me a 'screenshot' of the rendered page, so that I can create a checksum for that screen. (So...
If I wanna authenticate windows accounts to AD when a user browses to an apache-running site on a Linux server, here are the usual suspects:
List item
mod_ntlm (which I used in a distant past) - last update on 2003
mod_auth_ntlm_winbind - last update on 04/2007
mod_auth_kerb - last update on 12/2008
No luck getting any of those to ...
Is there a reporting library which can be linked with a Qt application to generate and print invoices (from within my own application, no seperate tool). The invoices are needed to print instantly, so I have the following requirements:
pipe data to be printed into the reporting library
choose from a predefined reporting template (creat...
Hello,
Anyone knows good enviroment to program VHDL and simulate it (don't matter Xilinx or Altera) using Linux?
Thanks
Br
...
I'm curious how far others have pushed Boost.Asio in terms of scalability. I am writing an application that may use close to 1000 socket objects, a handful of acceptor objects, and many thousand timer objects. I've configured it such that there's a thread pool invoking io_service::run and use strands in the appropriate places to ensure ...