Is there a way to fill the free RAM on a linux machine with random data?
The reason I'm asking this: I'm working in a group where we do numerical programming in Fortran. Sometimes, people mess up working with double precision reals, so that programs that should give double precision results only give single precision.
If my understandi...
Hello all,
I have a GNU/Linux Debian server running: apache, jboss, proftpd and postgresql (RAM: 16GB, 4 core Xeon). Max Apache process is 1200, same thing for the Jboss DB Pool. And I can have up to 400 simultaneous FTP download. Load average can raise 5 (1 most of time). What do you think about that? Is this server considered as "to...
As some of you might be aware, there's a bug with either Conky or PCManFM (the desktop manager aspect of it) that makes the Conky window disappear in one of these situations:
Setting "own_window_type override" in .conkyrc (the usual configuration for Nautilus) flat out doesn't show the Conky window at all.
Setting "own_window_type desk...
I have a PHP codebase that was written to address our MySQL tables in mixed case. For example, xar_intakeformgenerator_ChangeLog.
Our code also runs on windows, and before we knew any better, we imported several databases on to a Windows server. This resulted in Windows MySQL changing all the table names to lower case. (xar_intakeform...
Is there any way to simulate a keypress in Linux using C?
In my specific situation, I'm on Ubuntu 9.04 and need a simple app that invokes a press on the "pause" button when launched. That would get an iframe in Firefox to refresh using Javascript.
...
I use ddd (v3.3.1.1 x86_64-pc-linux-gnu, Ubuntu 9.04) to debug my single-threaded C++ app. The first time through, everything works fine, and I can inspect variables without problems.
Once the app ends, if I try to run it again, my breakpoints are all still there, but all the variables fail to display. Clicking on them results in: "D...
Background: We've created a client portal that selects desired data points from our database and outputs them as XML. The client has provided us with their desired format in the form of an XSLT stylesheet. So our deliverable to them is preferably the most user-friendly format possible, preferably a PDF. Our service is in Perl, so we've ...
I've run into an issue moving onto my test (and tried it on prod, no go) where I have a php script create a file and put some data in that file.
I've set the permissions to R, W, X for "Owner, Group, Other" using winSCP (i'm not much for commandline yet).
What i can see is that the script is able to create the file (i've deleted, and...
I want to setup a x86 Linux Box such that:
It uses minimal system resources.
Runs SDL, without XWindows
Includes sufficient functionality to
run QEmu.
Basically I simply want it to ONLY be a host for Virtulization and be as "thin" as possible leaving nearly all resources available for the "client" OS.
Is there anything like that ava...
I am looking for documentation on the the Linux /proc file system, with regard to platform specifics for the Cell Linux platform. Of particular interest is how to identify if a given /proc/pid entry represents a process or thread on an SPU, versus on a PPE.
The system does provide some documentation in
man proc
...
The ext2/ext3 filesystem automatically allocate blocks when you write a sparse file, but when I no longer want some blocks of them, I found no ways to do it. It feels like using malloc() without free().
Is it possible to "free" some blocks of a sparse file? If it is, how?
Don't tell me to copy it to a new file. It's too boring and needs ...
I don't have the source code but have the binary. With command "nm binary_name" I could know the functions inside the binary.
Can I know how many parameters a function has? Under solaris, is there anyway to do that?
e.g, if the function is: func1(a int,b int,c int), then there are 3 parameters.
Thanks
Daniel
...
I'm writing a shell script which runs a command through ipython with the -c option like this:
ipython -c "from blah import myfunct; myfunct()"
but I want to invoke ipython through django's shell_plus command so I can take advantage of all the stuff shell_plus automatically loads for me:
$ ./manage.py shell_plus
I can't just add "-c...
Hello:
My IT department and I are trying to get an ASP.NET web application to run on a Linux with Mono. We have been working on this for about a month to no avail. The Mono setup on the Linux server seems to be good. We are able to run the demo ASP.NET pages on the server and they work fine.
I developed my ASP.NET web application ...
I'm feel like I'm missing something pretty obvious here, but I can't seem to figure out what's going on. I have a perl script that I'm calling from C code. The script + arguments is something like this:
my_script "/some/file/path" "arg" "arg with spaces" "arg" "/some/other/file"
When I run it in Windows, Perl correctly identifies it...
I have a device that outputs a limited number of keycodes (for example a keyboard-wedge barcode scanner) and I want to know what those keycodes will type on all possible keyboard layouts. I'd like to write an X11 client that sets the keyboard layout to each installed keymap and then records the Unicode received for each keypress from the...
We have a very simple tcp messaging script that cats some text to a server port which returns and displays a response.
The part of the script we care about looks something like this:
cat someFile | netcat somehost 1234
The response the server returns is 'complete' once we get a certain character code (specifically &001C) returned.
H...
I got a message "No Java virtual machine could be found from your PATH
environment variable. You must install a VM prior to
running this program." Does anyone know how set up it correctly? Thanks!
...
Hi all,
I need to edit few txt files (an output from sar) and to convert them into csv files.
therefore I need to change every white space (or maybe it's a tab between the numbers in the output) using sed or awk functions (an easy shell script in linux)
can anyone help me?
every command I used didn't change the file at all (I tried gsu...
I am using the Linux version of dbxtool to debug a 64-bit programme called frankie:
file ../support/frankie
../support/frankie: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.4, dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped
When I attempt to load the executable within dbxtool, I g...