I have some socket code that works on my Linux box but FAILS on my PowerPC box.
The code (when working on the Linux box) receives a data from a client and then sends the data back to the client. When tested with two netcat applications - the data is successfully wrapped around.
PROBLEM: When tested on a PowerPC (running VxWorks), the e...
I have a worker thread which is alive from the start of the programme and would consistently take an object from a queue to process. I am wondering what is the best way to block the thread? The object would be pushed into the queue at about magnitude of every tens of microseconds( between 10 - 100 micro seconds). Should I set the thread ...
Hello,
I'm a newbie in ruby (and watir).
I try to click on popup (confirm type). All solutions I've found on the net is for windows, what ever I fond requires win32ole (I presume it's for windows).
Is somebody has successfuly clicke on a popup using watir on linux platform ?
...
As the title says, compared to a normal function, is there a perf hit in calling dll functions? The dll will be loaded by dlopen.
EDIT:
Ignore dlsym time because I only do it once per each function.
...
I was installing 32-bit Ubuntu(ubuntu-10.10-desktop-i386.iso) on my IBM Thinkpad T510 laptop. During installation an error came up with the following text.
"(initramfs) mount: mounting dev/loop0 on //filesystem.squashfs failed: Input/Output error
Can not mount /dev/loop0 (/cdrom/casper/filesystem.squashfs) on //filesystem.squashfs"
I d...
Hi,
I'm trying to write a simple packet sniffer using libpcap. The first thing i'm trying to do when i capture a packet is to recognise the datalink protocol used and find the size of the header for that protocol in order to find the ip packet. The problem is that sometimes libpcap returns as datalink layer protocol the LINUX_SLL which ...
Anyone know of a tool that can find non-virtual destructors of polymorphic base classes?
...
What's .a files in C programming in linux ?
Is it library file ?
To merge with the math library libm.a you would type
cc -o program_name prog.c -lm
when you compile the program. The -lm means: add in libm. If we wanted to add in the socket library libsocket.a to do some network programming as well, we would type
cc -o program_name...
I'm building jsoncpp on andlinux (based on Ubuntu) and getting warnings in all the test cases which seem to indicate that the tests aren't called.
Is anyone else here using jsoncpp on Linux - if so did you get the test cases to build properly?
Looking at the jsoncpp forums there isn't much activity at the moment: would I be better off...
Hi,
I'm trying to pass the value of a cookie to a bash script:
RewriteCond %{HTTP_COOKIE} mycookie=(.*) [NC]
RewriteRule .* script.sh?cookievar=%1
... but can't seem to find out how to read the GET variable in the bash script. (I suppose I'm asking Google the wrong queries, but can't find any info on this).
Is this even possible, an...
Hello,
I'm working on a custom CMS that another developer built a few years ago. I need to change the urls to clean segment based urls from query strings. I could just add the rules for all the pages in the .htaccess file, which would be a pain as that's a lot of pages. Plus when a new page is added, obviously I won't be there waiting t...
how differently is "dir" command in windows and "ls" command in linux processed by the operating system??
...
Hi,
I have a requirement to write to a log file on reception of any terminate command like SIGTERM AND SIGKILL.
I can register for SIGTERM but how can handle the SIGKILL signal?
...
I ask here since googling leads you on a merry trip around archives with no hint as to what the current state is. If you go by Google, it seems that async IO was all the rage in 2001 to 2003, and by 2006 some stuff like epoll and libaio was turning up; kevent appeared but seems to have disappeared, and as far as I can tell, there is sti...
I need to download several files with wget and measure download speed.
e.g. I download with
wget -O /dev/null http://ftp.bit.nl/pub/OpenBSD/4.7/i386/floppy47.fs http://ftp.bit.nl/pub/OpenBSD/4.7/i386/floppyB47.fs
and the output is
--2010-10-11 18:56:00-- http://ftp.bit.nl/pub/OpenBSD/4.7/i386/floppy47.fs
Resolving ftp.bit.nl... 213...
I've followed the directions to install Docsplit from here (accounting for differences for CentOS of course): http://documentcloud.github.com/docsplit
I think I've got all necessary packages installed, but when I run "docsplit pdf " to convert a Word Doc to PDF, I get this error:
Exception in thread "main" org.artofsolving.jodconverter...
I think there is no way to enumerate each network interface on my system and their assigned IP using just sockets, is this correct?
I mean, in linux this could be:
eth0: 192.168.1.5
wlan0: 192.168.0.5
lo: 127.0.0.1
I dont care interface names, just the IPs assigned.
I recall to have done this in the past in Windows, using winapi (tho...
Most probably customize the hell out of the base distributions, but I was wondering which one is more popular among most startups...RHEL, ubuntu, fedora, centos..etc ?
...
The code i am trying to run is bellow.
I use nasm util to convert it into object file. When i tried to execute it says "can not execute binary file".
I run the command:
nasm -f elf -o helloworld.o helloworld.asm
segment .data
msg db "Hello, world!",10
len equ $ - msg
segment .text
global _start
_start:
mov eax,4
mov ebx,...
I was using Ubuntu desktop 10.04.
By mistake I had deleted some items from System>Preference>Main menu>Other (some of the unchecked items).
After that the
windows borders were disappeared &
Durring shutdow XUBUNTU screen was appearing instead of Ubuntu.
I searched a lot for the solution and found that the metacity was not running a...