I have a wordpress website that has multiple developers trying to access it and they want to use the built-in theme editor. the theme editor requires write access for the apache group.
I'm trying to figure out how to do this and I was thinking about adding all the users the the apache group? Is that a bad idea? is it unsecure?
Each use...
I have a problem about select function when I worked on a Linux socket program. The select function worked fine as the man page says if the client connected the server side in the time interval configured by the server. If the timeout happened, the select function will return 0 forever. At that time, I debug the client and find the clie...
Hello
My eclipse version is 3.6 or 3.5 I have these versions of eclipse.
There is an easy way to install eclipse plugins on eclipse IDE that explained at this link but I can't use it in Linux Ubuntu!
This way work properly under Windows and Mac OSX. Please help me to use this way in my Ubuntu lucid lynx linux
In this way, I create a f...
Hi everyone, I'm a developer on a software project for Linux that uses Python and PyGTK. The program we are writing depends on a number of third-party packages that are available through all mayor distro repositories. One of these is a python binding (written in C) that allows our program to chat with a common C library. Unfortunately, t...
Possible Duplicate:
Why do people use __(double underscore) so much in C++
I was studying the linux kernel programming code.
There aere some data structures and function which starts with double underscore(_ _)
like
_ _ u32 len
how that is different from normal variables
...
I am learning boost/asio ad wrote 2 programs(client and server) from e-book with minor changes.
Basically it should connect to my server.
When i try to connect to outside world(some random http server ) all is good and it works but when i change destination to "localhost:40002" it says invalid argument.
client code:
#include <boost/asi...
I'd like to open an OpenGL context without X in linux. Is there any way at all to do it?
I know it's bossible for integrated intel graphics card hardware, though most people have nvidia cards in their system. I'd like to get a solution that works with nvidia cards.
If there's no other way than through integrated intel hardware, I guess...
Possible Duplicate:
Equivalent to GetTickCount() on Linux
What is the Linux version of GetTickCount?
http://msdn.microsoft.com/en-us/library/ms724408(VS.85).aspx
...
Hi,
I am trying to run './configure' for vlc on ubuntu 10.04. But it can't find libavcode libraries for some reason. I have check /usr/lib, it has the libraries, why ./configure can't find it?
This is the error from './configure':
checking for AVCODEC... no
configure: error: Could not find libavcodec or libavutil. Use --disable-avcod...
I'm using os.statvfs to find out the free space available on a volume -- in addition to querying free space for a particular path, I'd like to be able to iterate over all volumes. I'm working on Linux at the moment, but ideally would like something which returns ["/", "/boot", "home"] on Linux and ["C:\", "D:\"] on Windows.
...
Hey everyone,
I attended this year's HostingCon in Austin, TX, and found a really interesting operating system being advertised there called CloudLinux (www.cloudlinux.com).
It seems like a hosting company's dream come true for the reliability benefits it would bring to a shared hosting environment and I'm wondering if any of your ow...
I recently found the code below in one of my directories, in a file called doc.php. The file functions or links to a file manager. It's quite nicely done. Basically, it lists all the files in the current directory, and it lets you change directories.
It had access to all my files (add, rename, info, delete...). I don't remember installi...
Hi,
I would like to monitor system IO load from a python program, accessing statistics similar to those provided in /proc/diskstats in linux (although obviously a cross-platform library would be great). Is there an existing python library that I could use to query disk IO statistics on linux?
...
I am a C++ beginner.
I'd like to create small programs that interact with the operating system (using Kubuntu Linux). So far, I have not been able to locate any tutorial or handbook to get C++ to interface with the OS.
In PHP, I can use the command exec() or the backtick operator to launch commands typically executed in a console.
How ...
Could someone please explain, why many programs have their icons' paths this way:
/usr/share/program/icons/hicolor/16x16/...
What I don't understand is why hicolor and why 16x16, 32x32 etc.
Are there any functions (e.g. in GTK) that automatically get the proper icon from such kind of paths?
Thank you!
...
My code receives a time_t from an external source. However, that time_t isn't acutally based on UTC Epoch time, along with it I get a timezone string (eg, EDT, PST, etc), and its based on this offset'ed epoch. I need to convert this to a true UTC Epoch based time_t.
Additionally, I need to be able to go in the opposite direction, taking...
I have been wanting to build my own box with AMD 6 core. I have always used Intel based machines and frankly have not done open-source projects. I want to get into that along with Systems programming but am worried if open-source projects (mainly Linux based) are going to be a problem to compile on AMD?
How difficult is porting (if it ...
I am not getting this assignment about finding the IP address of the machine. I need help understanding the logic of this code. Our college lab uses proxy server; will this code work on a computer without proxy?
#include <stdio.h> /* stderr, stdout */
#include <netdb.h> /* hostent struct, gethostbyname() *...
Hello,
My /etc/environment looks like this:
cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
I wish to use a command (sed, awk, python, whatever....) that will make it look like this:
cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"...
I can also settle for a web-based interface, but a good command-line tool is preferable. Now, I have tried to use xsd.exe that comes with mono-devel, but that skipped a whole bunch of stuff that was mentioned in the xml file.
I understand that I will need to hand-tweak the output, but I do want something decent to start with.
...