Size of pid_t, uid_t, gid_t on Linux
On Linux systems (either 32- or 64-bit), what is the size of pid_t, uid_t, and gid_t? ...
On Linux systems (either 32- or 64-bit), what is the size of pid_t, uid_t, and gid_t? ...
Using the JUnit ant task to run my Unit Tests from CruiseControl on Centos 5.4 My jUnit Task forks to run the tests, the majority of which work ok, however I keep getting intermittent failures where the JVM crashes, always with the same error: [junit] Fatal: Stack size too small. Use 'ulimit -s' to increase default stack size. I've do...
I have a problem. I have made a script to convert a given HTML page (url) to a given jpg file using html2image: #!/bin/sh cd /absolute/path/html2imagev3 LD_LIBRARY_PATH=.:/usr/lib:$LD_LIBRARY_PATH xvfb-run ./html2image $1 $2 It is then run like this: /path/to/convert 'http://www.google.com' /tmp/google_screen.jpg This works without...
Hello, I dont know if this questions is relevant here or superuser, but ask anyway. I have below mentioned setup- A Linux Desktop PC system. To this is connected one custom FPGA development board.In this FPGA there is an Ethernet Network Card IP realized and executing. This board is connected to the FPGA development board using USB po...
Hi, I'm working on a utility that will auto mount an inserted USB stick on linux. I have tied into D-Bus to receive notification of when a device is inserted, and that works great. However, I need to determine which device in /dev is mapped to the inserted USB stick. I am getting the D-Bus notification and then scanning the USB system w...
I am creating a graphical installer that should run on Linux. Installing should consist of copying files to some places in /usr. Currently the installer is written in Python. How can I escalate the privileges of my installer when I need to copy files? I looked at PolicyKit but a) there doesn't seem to be a generic "install files" acti...
in other words, now that we have Mono, has C# become just as OS-agnostic as Java when it comes to server-side web applications? Or are there still big limitations having to do with what Mono can/cannot do or maybe with what libraries can be made available to a C# server-side app on Linux? ...
In Windows, it is possible to view a Power tab for a USB hub in Device Manager that lists information such as whether the hub is self-powered and the total power available. Is this information available programatically, either in Windows (perhaps WMI?) or Linux? I've looked in MSDN with little success so far. ...
I just want to convert my .NET application to linux application is it possible that the MSIL is converted to any machine code like apple intel etc. or can be executed on any os independent of architechture. ...
I work mostly on desktop application on Windows platform. Now I am focusing on Linux platform to host web applications. While hosting the application on Linux, I don't follow any procedure. I simply CHECKOUT the files from SVN and run the application on home directory. I don't know where to store the application data (example: mysql/p...
I would like to run an asynchronous program on a remote linux server indefinitely. This script doesn't output anything to the server itself(other than occasionally writing information to a mysql database). So far the only option I have been able to find is the nohup command: nohup script_name & From what I understand, nohup allows the...
One of the features of the file system Ext4 is its new Scalability features documented here. I was wondering what changes at the source code level would enable Ext4 to support such features, like the virtually unlimited number of sub directories which Ext3 didn't. Pointers to the relevant areas of the Kernel source tree would be greatly ...
Trying to solve a problem of preventing duplicate images to be uploaded. I have two JPGs. Looking at them I can see that they are in fact identical. But for some reason they have different file size (one is pulled from a backup, the other is another upload) and so they have a different md5 checksum. How can I efficiently and confident...
I need to find the number of signals pending in the signal queue of a thread in linux. Is there any API that is provided by Linux ? This API needs to be called from thread, other than the thread we are querying. sigpending gives the API for the calling thread. Is there any API, which takes thread id as arg, and provides some informatio...
I'm totally lost, does anyone have a very simple example of how to record a sound using ALSA with c++? the only thing i need is the raw samples as signed bytes for feeding them to another part of my program. All the examples i found googling seem to have issues with PulseAudio or don't cover what i need. ...
For example, say I moved a file from /project/file.cs to /project/subdir/file.cs. It would be nice if nautilus automatically converted this to bzr mv /project/file.cs /project/subdir/file.cs. Is it possible to set this up? It would also be nice if I was warned when doing a plain old mv on version controlled files, but I suppose that's a...
Hello! I want to write a wrapper bash script, and to pass all arguments to a called program. I was very sure, that this works correctly: #!/bin/sh someProgam $@ But when passing exotic arguments (empty, unescaped, in quotes, ...) this fails. For example: without the wrapper script, someProgram "1 2" 3 results in the arguments [1 2] ...
I'd like to be able to draw on the root window in Linux. I.e. make an OSD. I'm using Gnome. Code samples or links to them would be appreciated. ...
Question says it all. I want C function call that returns the list the mounted filesystems along with associated information such as filesystem type. ...
I'm about to embark on a bout of refactoring of some functions in my code. I have a nice amount of unit tests that will ensure I didn't break anything, but I'm not sure about the coverage they give me. Are there any tools that can analyze the code and see that the functionality remains the same? I plan to refactor some rather isolated...