I haven't used C since the 1980s and 1990s with my own experimentation. I'd like to be able to pick it up again, but this time by building small things in it and then loading it into PHP on Linux.
Does anyone have a very short tutorial for me to make a foo() function in C as a shared object extension loaded in a php.ini? I assume I'll n...
I'm building a program that does network acceleration, and I need to know how to create a network interface on Linux that instead of directing data to an actual interface, directs information to my program, so that it can be accelerated. The idea is to make it a transparent system, so that programs just have to use the interface like a n...
I have learned C and I would like to start to improve open source software. I would like to hack away one irritating bug in GTK+. To see the bug I need to use Gedit.
How can I download the sources of GTK+ and gedit and compile both of them so that I can see where the bug is? And I have never used any debugger in Linux so is there somewh...
I want to programatically change the hour which certain cron jobs execute.
I'm not sure whether I'm going about this the right way, but here's the plan.
Jobs which are subject to change will have a comment on the end of the line "#change-enabled".
15 5 7,14,21,28 * * /path/to/executable1 #change-enabled
15 * * * * /path/to/executable2
...
Hi All,
I want to save/download pdfs from X website and then combined all those pdfs into one, so that it is easy for me to see all of them at once.
What I did,
get pdfs from website
wget -r -l1 -A.pdf --no-parent http://linktoX
combine pdfs into one
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=Combined_date +%F.pdf -dBATCH file1.pd...
Hi, been getting myself familiar with OpenGL programming using SDL on Ubuntu using c++. After some looking around and experimenting I am starting to understand. I need advice on keyboard event handling with SDL.
I have a 1st person camera, and can walk fwd, back, strafe left and right and use the mouse to look around which is great. Her...
My current problem is that I have around 10 folders, which contain gzipped files (around on an average 5 each). This makes it 50 files to open and look at.
Is there a simpler method to find out if a gzipped file inside a folder has a particular pattern or not?
zcat ABC/myzippedfile1.txt.gz | grep "pattern match"
zcat ABC/myzippedfile2....
For the daemons' options :multiple => true , so, It allows me to start multiple instance of background process.
now, when run command stop it stop all background processes, How can i stop them individually?
Note: I know we can kill by pid but i want the ticker to at_exit as well.
...
I am busy writing something to test the read speeds for disk IO on Linux.
At the moment I have something like this to read the files:
Edited to change code to this:
const int segsize = 1048576;
char buffer[segsize];
ifstream file;
file.open(sFile.c_str());
while(file.readsome(buffer,segsize)) {}
For foo.dat, which is 150GB...
Hi, I want to set up a program where all incoming emails into vpopmail of the form
[email protected] get forwarded to a java program / daemon that is running
the java program will receive the information about the person sending the email
so it needs to access the standard email and from the account (in the above case 12345678) infer...
What's the best place to start learning PostgreSQL administration and programming in a Linux environment? What websites are the most recommended, concise and have easy to learn tutorials?
I am already familiar with ANSI SQL from playing with SQL Server and MySQL; however, I've never touched PostgreSQL before. Any direction you can give...
If i have a dual-boot system (XP and Ubuntu) with a shared data partition to store the database files in, is it possible to get both XP's and Linux's MySQL using the same database file when each one boots? Would it be as simple as changing the datadir setting in each configuration file and ensuring all other settings match? Would I need ...
Checking the source from /usr/bin/ldd, I see that it uses ld-linux to find the dependencies of an executable, although it first calls ld-linux with the --verify argument. Then the script acts differently according to the exit code of the ld-linux --verify call.
The man page for ld-linux does not provide any info on exit codes, and a Goo...
Hello,
I am looking for some Linux library/programming language that can be used on a variety of Linux platforms and can operate in both textual and GUI mode interfaces.
For example YCP (the Yast programming language) will display in GUI if in Gnome/KDE environment and run in text/ncurses mode when display is not available. The problem ...
Good afternoon all,
What I'm trying to accomplish: I'd like to implement an extension to a C++ unit test fixture to detect if the test allocates memory and doesn't free it. My idea was to record allocation levels or free memory levels before and after the test. If they don't match then you're leaking memory.
What I've tried so far: I'v...
osx has the really powerful dtrace/ktrace/dtruss tools - however i'm not willing to invest the time necessary to learn dealing with them right now.
what's the easiest way to get the equivalent functionality of linux ltrace (and possibly strace) on OSX?
...
I'm porting my application into Linux (from Windows).
I have such code:
char buffer[32] = {0};
if ( GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_ICOUNTRY, buffer, _countof(buffer)) )
{
std::string newPrefix(buffer);
if ( !newPrefix.empty()
}
}
I need a fuction which return "country/region code, based on international pho...
I'm trying to get images from a minoru3d webcam, which is actually two Vimicro webcams plus a USB hub in a single package. The problem is, opencv always takes streams in maximum resolution, making simultaneous capture from two webcams impossible(due to usb constraints). How do I set resolution or FPS? For some reason, opencv calls
cvSet...
I have a camera object that I have put together from reading on the net that handles moving forward and backward, strafe left and right and even look around with the mouse. But when I move in any direction plus try to look around it jumps all over the place, but when I don't move and look around its fine.
I'm hoping someone can help me ...
How can I set ini settings within a PHP script?
php.ini isn't being read and ini_set doesn't work.
Test File:
#!usr/local/bin/php -q
<?php
// display_errors is set to false in /etc/php.ini
// This shouldn't display any errors
$test = $foo;
// We can also try
ini_set('display_errors', false);
// This definitely shouldn't display an...