I'm trying to replace a bunch of Linux shell scripts with Scala scripts.
One of the remaining challenges is how to scan an entire directory of JARs and place them into the classpath. Currently this is done in the shell script prior to invoking the scala JVM. I'd like to eliminate the shell script completely.
Is there an elegant scala i...
I want to test my program by installing it in different OS versions. My development computer is Ubuntu. What other Linux versions can I test by installing them inside VirtualBox and running my program there?
Though it is not critical for me right now, I want to try something different and see what happens.
Also, what is the chance that...
Hi,
I am changing our build system in order to handle cross-compiling and packaging.
It is a common thing to ship dependencies' DLLs but CMake's FindXXX modules(./configure checks) don't provide the path to these DLLs but only to .a files. I quickly looked inside the .a libs and they all seem to contain the DLL's name.
What would be a...
Recently I've been using lot of Assembly language in *NIX operating systems. I was wondering about the windows domain.
Calling convention in linux:
mov $SYS_Call_NUM, %eax
mov $param1 , %ebx
mov $param2 , %ecx
int $0x80
Thats it. That is how we should make a system call in linux.
Reference of all system calls in linux:
Regarding...
OK this is presumably a hard one, I've got an pyGTK application that has random crashes due to X Window errors that I can't catch/control.
So I created a wrapper that restarts the app as soon as it detects a crash, now comes the problem, when the user logs out or shuts down the system, the app exits with status 1. But on some X errors i...
I am now trying to do forking in php.
I would like to do some query and update in child process..
the problem is that whenever a child process finish, it close the connection which makes the other queries fail.
The following is my sample code!!
#!/usr/local/bin/php
<?php
set_time_limit(0); # forever program!
$db = mysql_connect("server"...
Hi, i'm having trouble with Poco libraries. I need a simple solution to make the compilation easier. Is there any pkg-config file for Poco library to use it into our make files? Or any alternative solution?
Currently i use Ubuntu gnu/linux.
...
I have copied zipped file from the playframework.org website and unzipped it at a location.
I have inserted it in my .bashrc profile to set up as PATH environment.
But still, the play command is not accessible from anywhere.
And even in the installed directory of the framework, the play file is not running as it is.
I have to prefix p...
Hi
I am running an executable that uses libmysqlclient.so.15 on a 64bit kernel & 32bit user space compatibility mode.
Once in a while, my program hangs on something from libmysql:
#0 0xf7f01430 in __kernel_vsyscall ()
#1 0xf7b451e3 in vmsplice () from /lib/i686/cmov/libc.so.6
#2 0xf7e72c10 in ?? () from /usr/lib/libmysqlclient.so.1...
I want to quickly identify all writable files in the directory. What is the quick way to do it?
...
Hi all,
Im making a simple alternative to the default linux system monitor.
Im looking to know how it lifts the process stats, which is displays in the Processes tab.
It probably runs off /proc, but im unsure.
Also, where could i find the source code for the system monitor program?
Regards
Paul
Also, having looked at how gnome sys...
When I do the following
ps -aef|grep "asdf"
I get a list of processes that are running. Each one of my process has the following text in the output:
-ProcessName=XXXX
I'd like to be able to format the out put so all I get is:
The following processes are running:
Process A
Process B
etc..
...
I am trying to track down a very odd crash. What is so odd about it is a workaround that someone discovered and which I cannot explain.
The workaround is this small program which I'll refer to as 'runner':
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <errno.h>
int main(int argc, char *argv[])
{
if (argc == ...
I have a Linux app (written in C) that allocates large amount of memory (~60M) in small chunks through malloc() and then frees it (the app continues to run then). This memory is not returned to the OS but stays allocated to the process.
Now, the interesting thing here is that this behavior happens only on RedHat Linux and clones (Fedor...
I'm running into an encoding issue that has stumped me for a few weeks and nothing seems to work. I have a website that works fine on my local machine, but when I push the jsp files to a Linux box for review, characters that previously rendered fine are now displaying as funky characters.
For some reason, some characters display just fi...
I'm trying to implement a syscall in Linux (RedHat Enterprise 8) and I'm a bit confused about the way it works. From what I understand, I implement a wrapper in user mode which puts the syscall number in eax and parameters in ebx, ecx, edx, etc, and then invokes int 0x80 which calls the appropriate syscall. My question is, since a syscal...
I need to read system information like CPU/RAM/disks usage in C++. Maybe swap, network and process too but that's less important.
It has probably been done thousand of times before so I first tried to search for a library. Someone here suggested SIGAR, which seems to fit my needs but it has a GPL license and it is for inclusion in a pro...
I know how memcached works. How does Hadoop work?
...
(r'^media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.MEDIA_ROOT}),
As you can see, I have a directory called "media" under my Django project.
I would like to delete this line in my urls.py and instead us Apache to serve my static files. What do I do to my Apache configs (which files do I change) in order to...
How can I change the target of a symlink with PHP?
Thanks.
...