So - Android is build on top of a stripped down linux system. Most of the convenient utilities are missing but all the basics are there.
I can call insmod and rmmod. No problem.
But where do kernel-modules and firmware files reside? I can't find any. there is no /lib/modules in the standard distribution.
Problem: I need modules. For ...
My ruby file is like this.
`mkdir #{HOST} -p`
It works fine by: ruby mycode.rb
But in a cron job
0 * * * * ruby ~/backup.rb >> backup.log
It will a -p folder. Why?
...
I have implemented a simple linux shell in c. Now, I am adding some features and one I immediately thought about was to be able to show the last commands with the up arrow.
Question 1:
However, I have no idea how to accomplish this. Do you?
Question 2:
Any comment on how to store the "history" commands are also appreciated. I suppose s...
I have a program (NWShader) which hooks into a second program's OpenGL calls (NWN) to do post-processing effects and whatnot.
NWShader was originally built for Windows, generally modern versions (win32), and uses both DLL exports (to get Windows to load it and grab some OpenGL functions) and Detours (to hook into other functions). I'm ...
Suppose I have a tar that contains:
/ # Root directory
/level1/ # A sub directory
/level1/a.file
/level1/b.file
/level1/... # The rest
How can I do something like tar -xf that would untar the contents level1/ like this:
/a.file
/b.file
/... # The rest
...
I have a list of files URLS where I want to download them:
http://somedomain.com/foo1.gz
http://somedomain.com/foo2.gz
http://somedomain.com/foo3.gz
What I want to do is the following for each file:
Download foo1,2.. in parallel with wget and nohup.
Every time it completes download process them with myscript.sh
What I have is this...
Hi,
does anybody know of a library for storing data securely in an 8k-EEPROM, which is attached over the I2C-interface? I am especially interested in wear-leveling as I have a write-intensive application where the EEPROM should/must be used as a NVRAM for often-chaning measurement data.
Thanks in advance, Martin
...
I ran ldd command on an executable created by Open MPI. It shows a reference to libpthread.so
Using LD_PRELOAD variable I created my own implementation of pthread_create, but from the it output it seems that MPI implementation is not calling pthread_create as I had expected.
Why does ldd show pthread so file in output if it is not being ...
Hi
My project is web application running in the tomcat container. This application is a spring framework based hibernate application.
The problem with this is it takes a lot of time when creates session factory. here is the logs
2010-04-15 23:05:28,053 DEBUG [SessionFactoryImpl] Session factory constructed with filter configurations :...
I need a virtual server for web development, it'll host Apache+Postgres+Ruby+something else.
What's the most effective software to run such a server? (ie with least virtualization overhead)
Is there a way to run Linux as as service?
I use VirtualBox at the moment, but it's inconvenient in some ways, such as it needs an emulator windo...
I have this script that I am currently running that works great for all instances but one:
#!/bin/sh
pdfopt test.pdf test.opt.pdf &>/dev/null
pdf2swf test.opt.pdf test.swf
[ "$?" -ne 0 ] && exit 2
More lines to execute follow the above code ...
How would I go about changing this script to run "pdf2swf test.pdf test.swf" if "pdf2s...
Hi,
i have written a program under ubuntu, in which i include gtkmozembed.h. I am facing a problem in compiling the program.Below is the simplest form of a program which uses gtkmozembed.
#include <gtk/gtk.h>
#include <stdio.h>
#include <gtkmozembed.h>
int main(){
GtkWidget *mozEmbed;
mozEmbed = gtk_moz_embed_new();...
For educational purposes (not that anyone should care about the motivations behind such an exercise) I'd like to write a program that can read/write to/from alternate tty/pty's. I've read papers (from the 1990's) but can't employ the implementation they use, on modern Linux/glibc
I was hoping that someone had researched into this in the...
Hello, I am creating an application, which consists of two static libs and an executable.
Let's call the two static libs:
libusefulclass.a
libcore.a
And the application:
myapp
libcore instantiates and uses the class defined in libusefulclass (let's call it UsefulClass)
Now, if I link the application in the following way:
g++ -m64 -W...
What I want is to add possibility to interact with application, and be able to extract information from application or event ask it to change some states.
For that purpose I though of building cli utility. The utility will connect to the application and send user commands (one line strings) to the application and wait for response from ...
So I have a report system built using Java and iText.
PDF templates are created using Scribus. The Java code merges the data into the document using iText. The files are then copied over to a NFS share, and a BASH script prints them.
I use acroread to convert them to PS, then lpr the PS.
The FOSS application pdftops is horribly ineff...
Hi,
Is there a limit of stack size of a process in linux? Or it depends on the RAM of the machine?
I asked because I want to know how many deep of recursive I can call?
Thank you.
...
Is there an equivalent C function in linux for reading the CPU counter and its frequency?
I am looking for something similair to QueryPerformanceCounter function that reads the 64bit counter in modern CPU's
...
Wanted
A command line HTML5 beautifier running under Linux.
Input
Garbled, ugly HTML5 code. Possibly the result of multiple templates. You don't love it, it doesn't love you.
Output
Pure beauty. The code is nicely indented, has enough line breaks, cares for it's whitespace. Rather than viewing it in a webbrowser, you would like to d...
I know that there is general_log that logs all queries, but I want to find out which query has an error, and get the error message. I have tried running an error query on purpose, but it logs as a normal query and doesn't report it with error. Any ideas?
...