Some software (for ex. the NetBeans IDE) ship the Linux installers in .sh files. Curious about how exactly they 'package' a whole IDE into a 'shell script', I opened the file in an editor. I saw some plain text shell scripting code and then some random gibberish, which I reckon is 'binary' or non-plain text.
I am wondering how they mix...
Hi
I have a very simple shell script that looks as follows:
clear
for i in -20 -19 -18 -17 -16 -15 -14 ... 18 19
do
echo "Nice value is $i"
nice -n $i ./app1
done
Basically, I wanna run an application with all different priority values between -20 and 19.
However, when executing this script it looks as follows:
Nice value ...
Hello everyone!
I wrote a library and want to test it. I wrote the following program, but I get an error message from eclipse.
#include <stdlib.h>
#include <stdio.h>
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle;
double (*desk)(char*);
char *error;
handle = dlopen ("/lib/CEDD_LIB.so.6", RTLD_LAZY);...
Hi all!
I work in Linux with c++ (eclipse) and want to use a library.
Eclipse shows me an error: undefined reference to 'dlopen'
Do you know a solution?
Here is my code.
#include <stdlib.h>
#include <stdio.h>
#include <dlfcn.h>
int main(int argc, char **argv) {
void *handle;
double (*desk)(char*);
char *error;
ha...
I've been looking for ways to do this for a while but haven't quite been able to find the right way to do it.
The task: Execute Javascript from a Linux command line.
For example, have the binary or whatever is going to interpret Javascript load up some .js files, then print a value of some variable.
More concrete example: I would like...
Is there a (preferably no cost) message queuing solution for Linux that has disk-based persistence (e.g. can survive a reboot)? I'm looking for something equivalent to MSMQ on Windows, fairly basic and lightweight and not, say, MQSeries.
This will be used from C++ components.
...
Hello all.
I'm looking for an efficient way to access(for both read and write operations) the memory space of my ptraced child process. The size of blocks being accessed may vary from several bytes up to several megabytes in size, so using the ptrace call with PTRACE_PEEKDATA and PTRACE_POKEDATA which read only one word at a time and sw...
Hi
I have this code that I found somewhere on stackoverflow that uses libtar and libbz2 to compress a directory:
#include <libtar.h>
#include <bzlib.h>
#include <fcntl.h>
#include <string>
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
TAR *p_tar;
char extract_to[] = ".";
char *dst_path = arg...
I have decided to go with Subversion for a source control repository for my personal and side projects and I'm now trying to decide what OS to use. Currently my file server for my home network is Windows 7 beta. I'm wondering if I should wipe it and install Windows Server 2008 instead? Basically I'd like to know if there are things I ...
Hi,
I read your answer regaring netlink_kernel_create for 2.6.28. Unfortunately link to 2.6.29 example doesnt work.
Could you please send me a example for basic netlink operation under 2.6.28 or 2.6.29 or link to source of knowledge so I can do it myself.
Best Regards
M
...
Hi all,
If you could help me with this dilemma I have. Now, I know C \ C++, I know asm, I know about dll injection, I know about virtual memory addressing, but I just can't figure out how
software like CheatEngine, and others, manage to change a variable's value in another process.
For those who don't know, 3rd party cheat engine tools ...
Based on http://stackoverflow.com/questions/116074/how-to-ignore-a-directory-with-svn I tried
svn propset svn:ignore /foo/bar/ .
But when doing
svn update /foo
I get this error:
svn: PROPFIND request failed on '/foo/bar/'
svn: PROPFIND of '/foo/bar': 405 Method Not Allowed (http://svn.assembla.com)
The reason why I am trying ...
I have a bug in a multi-processes program. The program receives input and instantly produces output, no network involved, and it doesn't have any time references.
What makes the cause of this bug hard to track down is that it only happens sometimes.
If I constantly run it, it produces both correct and incorrect output, with no discerni...
I have this code that works in FreePascal under Windows and need to translate it to Linux but I'm completely lost on the Time Zone Bias value:
function DateTimeToInternetTime(const aDateTime: TDateTime): String;
{$IFDEF WIN32}
var
LocalTimeZone: TTimeZoneInformation;
{$ENDIF ~WIN32}
begin
{$IFDEF WIN32}
// eg. Sun, 06 Nov 1994 08:49...
For my bachelor thesis i want to visualize the data remanence of memory and how it persists after rebooting a system.
I had the simple idea to mmap a picture to memory, shut down my computer, wait x seconds, boot the computer and see if the picture is still there.
int mmap_lena(void)
{
FILE *fd = NULL;
size_t lena_size;
vo...
Possible Duplicate:
Why do programs in Unix-like environments have numbers after their name?
What does the (1) mean?
...
I'm trying to compile a very simple program in Java 1.6 on Ubuntu Jaunty, using Apache Commons Config jar. I keep getting the "package org.apache.commons.configuration does not exist" error, even though the jar is in the same directory. Any ideas?
Directory Listing
~/source/UpdateStockHistory$ ll
total 304
-rw-r--r-- 1 crosse cros...
hello,
Is it possible to create an executable for Linux and windows using the same QT code in Linux with Eclipse integration or is it necessary to install QT Creator in my Linux machine?
Waiting for reply
Thanks in advance
vincat.
...
Hi all.
I have a Shared Library wise.so. How I can use it in my programm? Do I need to include headers of that library?
I work with Eclipce under Linux. I have set a path to the library using -L and -l. But my function is not visible in the program.
Could you explain me how does Shared Library work?
Regards.
EDIT:
I get the follow...
So in Code::Blocks in Ubuntu (latest).
I have a project in which I load a file and read a number from it.
#include <fstream>
using namespace std;
int main(){
ifstream in("data/file.t");
int n;in>>n;
}
now with a cout<<n it shows -1203926 (and other random numbers) though the number in the file is 0.
data is where the binary ...