I'm currently using dirent.h and ftw.h for directory traversal at my CGI website 100% programmed in C. I am not sure if they are process safe; would various users interfere with each other while on my site ?
Which functions would you recommend for this purpose ?
...
I'm looking for a way to find what I know will be a unique file, and then change into the directory containing that file. Something along the lines of:
find . -name 'Subscription.java' | xargs cd
Or:
find . -name 'Subscription.java' -exec cd {} \;
I know this won't work because it's both trying to cd supplying the entire absolute path, w...
How do I import data from a excel sheet onto a PGSQL database on linux?
...
Hello everyone, i have a few processes that have to be run at high priority (chrt 98) that will occasionally decide to hard-lock and peg 1 core at 100% (not a huge deal) but more importantly it will use all the IO on a system, so much that its impossible to log into the machine via ssh to kill it or perform any task on the machine that i...
When I resize a column, it does not redraw the data with the updated alignment. I've tried Invalidating, Refreshing, and a few other things. Nothing has worked. Does anyone know a workaround? I have not tried this in mono for Windows.
To see what I mean, drop this control on a form, and run it in mono for Linux:
using System;
using...
I'm trying to understand the process for enabling an a core extension (dom) in php. When I run phpinfo, I see '--disable-dom' in the configure command. Am I supposed to re-install PHP?
...
Am I allowed to do this?
I am planning to do some cross-compiling and I was wondering if this was permitted.
...
First of all, I have some time reading this page and I find very interesting, the content also has many questions and are very entertaining.
My question is about handling my incoming mail server, no matter if you use PHP, Perl, or Python.
I do not care, what if I want is the result which should be as close to:
I send an email to update...
HI all
My virtual box snapshot view is like this
Name: Snapshot 2 (UUID: cb45aef4-54d4-4c4e-ad3e-dd7cccb6103a)
Name: s131 (UUID: 8ec30c82-7796-4e51-8161-979f1b95fb0f)
Name: s131 (UUID: 42066f33-969b-41f3-a779-7f6e2c45ea2c)
Name: s131 (UUID: d71b9bc5-b862-46b5-ae4d-f88d3dd9756d)
Name: s131 (UU...
I was reading an article about cross-compiling for OSX on linux, but it was quite hard to understand.
What tools do I need? And what configurations are necessary?
Are there any tools for creating packages too?
...
I've a C++ program that links at runtime with, lets say, mylib.so. then, the same program uses dlopen()/dlsym() to load a function from myplugin.so, dynamic library that in turn has dependencies to mylib.so.
My question is: will the program AND the function in the plugin access the same globals defined in mydlib.so in the same memory ar...
I do not know if this the correct forum to ask this question but I am a fan of stackoverflow and so have decided to go ahead posting it here.
If I output the /proc//smaps, I find several segments which do not have any name associated with them and also with inode number as 0. As per the linux kernel Documentation, 0 indicates that no i...
For a long time, I always thought that the bs and count parameters for dd were merely for human convenience; as dd would just multiply them and use the byte value. A month ago, when installing Ubuntu for my mother, I shrunk a partition to the right (don't ever do that, it takes ages) and saw gparted calculating an 'optimal block size'.
...
Does every Linux server support JSP files?
...
I have heard of WINE but I don't like it because it's slow on the computers I have tested and almost always crashes. It also has some unpleasant looking gui.
I am wondering if there is a "win32" library in c/c++ for linux that produces native linux code
so that if I have my source code for windows, I can just recompile and produce a work...
I am debugging certain application written with C++/Qt4. On Linux it has problems that with certain window managers (gnome-wm/metacity), the main window (based on QDialog) is created in the background (it's not raised). I managed to re-create the scenario using PyQt4 and following code:
from PyQt4.QtCore import *
from PyQt4.QtGui import...
I want to know the physical video ram size in my application. I can get the same information of Nvidia card by using "nvidia-settings -q -t VideoRam".
I can use amdcccle to find this information, but it's an GUI app, so can't be used in my application. I wonder if there is a way to get this by command, function, or config file?
I'm us...
In Linux is there any way to check processes memory measured on bytes (using top or ps for example). Not in kbytes, but bytes.
Thanks in advance!
...
hello folks,
I am following this EBook about Ethical Hacking, and I reached the Linux Exploit Chapter, this is the code with Aleph's 1 code.
//shellcode.c
char shellcode[] = //setuid(0) & Aleph1's famous shellcode, see ref.
"\x31\xc0\x31\xdb\xb0\x17\xcd\x80" //setuid(0) first
"\xeb\x1f\x5e\x89\x76\x08\x31\xc0\x88\x46\x07\x89\x46\x0c\...
Hello,
I have the following macros in my make file:
pdf:
// do something
clean:
// just another fancy thing
No I want to declare a macro all: which include (or call) the macros above. The following thing doesn't work:
all:
pdf:
clean:
I don't want to repeat the code from pdf: and clean: in order not to rebel agains...