Is there a way to find out the errno when epoll_wait returns EPOLLERR for a particular fd? Is there any further information about the nature of the error? Edit: Adding more information to prevent ambiguity epoll_wait waits on a number of file descriptors. When you call epoll_wait you pass it an array of epoll…
How to install a Kerberos server on Debian
I’m trying to build up a Kerberos Server on a Debian computer but I’m kind of lost with all the configuration files. Can anyone tell me any good step by step tutorial of how to install and configure a kerberos Server? Or what’s the best distriburion where I can install Kerberos? Answer Debia…
How can I install xclip on an EC2 instance?
I’m following Github’s instructions for adding an SSH key. I’ve generated the id_rsa.pub file from my AWS EC2 instance, but I cannot complete the step that has me copy the contents of the file using xclip because I cannot install xclip onto the EC2 instance. I tried to install xclip on the E…
What is the meaning of question marks ‘?’ in Linux kernel panic call traces?
The Call Trace contains entries like that: What is the meaning of the ‘?’ mark before AnotherFunctionName? Answer ‘?’ means that the information about this stack entry is probably not reliable. The stack output mechanism (see the implementation of dump_trace() function) was unable to p…
What is the performance penalty of C++11 thread_local variables in GCC 4.8?
From the GCC 4.8 draft changelog: G++ now implements the C++11 thread_local keyword; this differs from the GNU __thread keyword primarily in that it allows dynamic initialization and destruction semantics. Unfortunately, this support requires a run-time penalty for references to non-function-local thread_loca…
Teradata and JDBC driver – classnotfoundexception …but its there?
Trying to work with a JDBC connection to Teradata. I’ve loaded the tdgssconfig.jar and terajdbc4.jar file and adding them to the classpath with javac when I compile in Linux. But I still get a ClassnotFoundException when trying to compile. I’ve not worked with java in a while, but I’ve scour…
Can I wrap windows dll to use it in Python under Linux?
Is it possible to wrap Windows DLL (driver for specific hardware) to use it from Python under Linux. If yes, what would be the best approach? Answer Disclaimer: Depending on the context, the following is certainly NOT the best approach. It is just ONE possible approach that kind of fits the description. I wro…
problems with ./configure for libtorrent on linux
Hell I have been having an extremely tough time installing libtorrent and am unsure what the problems are. I have seen plenty similar errors online but the solutions were not helpful and I am pretty sure the error message is just too vague for comparison. When I run ./configure I get ** ** I then use the sugg…
Interacting with a .db file from Linux shell
I recently installed minidlna, a lightweight UPnP server, on my Raspberry Pi. Since this lacks the web interface of other programs such as Mediatomb, I thought it could be an interesting project for me to write one. I believe minidlna stores library information in a single file named “files.db”. E…
How to grep for a pattern in the files in tar archive without filling up disk space
I have a tar archive which is very big ~ 5GB. I want to grep for a pattern on all files (and also print the name of the file that has the pattern ) in the archive but do not want to fill up my disk space by extracting the archive. Anyway I can do that? I tried these, but