WebkitGTK+ API Reference What I’m trying to do is run my HTML5 app on Linux that way I and my users can still use my app without relying on an internet connection. My problem is when I go to download say a zip file. The download doesn’t execute because there isn’t an adequate url for the file to save to
Tag: c++
Is it possible to get the version of a shared object?
I’m trying to track down a bug in my software line. I have two release build version 2.0.962 and 2.0.966. The only difference between these versions is a lib.so file. In order to figure out where to start looking in the source tree for lib.so, I need to know its version number in each of the release builds. Is there
Executing an external program when forking is not advisable
I have this a big server software that can hog 4-8GB of memory. This makes fork-exec cumbersome, as the fork itself can take significant time, plus the default behavior seems to be that fork will fail unless there is enough memory for a copy of the entire resident memory. Since this is starting to show as the hottest spot (60%
C++ Sockets – Client gives segmentation fault (linux)
I created a server/client connection. The server and client both are compiling correctly but when I run the client, it gives me a Segmentation Fault (core dumped) I don’t know what I am doing wrong with my memory allocations. The program is not dangling or anything. I think my program is writing to a read-only portion of the memory, or
std::u32string conversion to/from std::string and std::u16string
I need to convert between UTF-8, UTF-16 and UTF-32 for different API’s/modules and since I know have the option to use C++11 am looking at the new string types. It looks like I can use string, u16string and u32string for UTF-8, UTF-16 and UTF-32. I also found codecvt_utf8 and codecvt_utf16 which look to be able to do a conversion between
Error installing r packages (Linux Mint 17.1) “error: C preprocessor “g++ -E” fails sanity check”
I have transfered to a Linux system (previous OSX user) and I am trying to get my R packages installed. The first issue I ran across was: but I got around that by launching R using: If someone has a more permanent solution to using ‘sudo’ (because I will be using RStudio in the future), I would be interested to
pthread_getspecific(key) get not NULL result, but not call pthread_setspecific(key), why?
.h file : .cc file Why is if ( client != NULL ) evaluating as true when first called in this function? I thought if I haven’t-yet called pthread_setspecific for the current thread, NULL would be returned from pthread_getspecific and therefore the result would be false ? What am I missing? Answer pthread_key_create should be called precisely once, before any
Multiple Qt versions on Linux
I am currenyly using Debian Jessie and I have Qt Creator installed with Qt 5.3.3. It works fine, however there are some issues like QSystemTrayIcon not appearing properly, which I understand doesn’t occur on versions earlier than 5.0.0, so I would like to be able to switch which version I am building with. Where can I download the necessary files
sbrk system call in unix
I studied like malloc uses the sbrk system call. But, some one says, the sbrk is deprecated one. Now a days malloc using the mmap2 system call to allocate memory. So, Is there any commands like (ls,cat, grep, sed) using the sbrk system call. For Ex: The above output shows that the ls command using the above syscall to execute
size and objdump report different sizes for the text segment
I have tried this, but stuck up to the answer below questions where hello_world-1.c is The executed commands: Can anyone please help me to figure out what might be the reasons for the questions below? The size command didn’t list a stack or heap segment for hello_world or hello_world.o. What might be the reason behind this? (for above question, the