linux

Problems installing Drupal with Xampp and Ubuntu

I am attempting a fresh install of Drupal 6.14 on a Ubuntu 9.10 machine using XAMPP for Linux. I use XAMPP fine with Wordpress and some different frameworks. I am having problems after I download and extract Drupal to my /htdocs/. The following pic shows the errors I get. ...

Linux user-space ELF loader

I need to do a rather unusual thing: manually execute an elf executable. I.e. load all sections into right places, query main() and call it (and cleanup then). Executable will be statically linked, so there will be no need to link libraries. I also control base address, so no worries about possible conflicts. So, is there are any librar...

How can the physical RAM size be determined in Linux programatically ?

On the command line this can be found out using the 'free' utility and 'cat /proc/meminfo'. What would be the different ways to find out the physical RAM size in Linux programatically from a : Userspace Application Kernel Module What API calls are available ? ...

Shared Library Path as Executable Directory

Hi, I have an application that is broken into several libraries for purposes of code reuse. On Windows all I have to do is put the .dll files in the same path as the executable and it automatically finds them. On Linux (since it hardcodes the paths to things) I have to specify the environmental variable LD_LIBRARY_PATH or preload the ...

Kdevelop in Windows XP

I received a src archive from a friend who develops Qt apps on Linux on Kdevelop IDE. Is it possible to load the Kdevelop project in Windows in some IDE ? Is there a Kdevelop port on Windows without Cygwin/Msys etc ? Are there any workarounds or I should I have to install Linux and take charge? Update : I visited the page as mentioned ...

Best Rails / Android / Appcelearator development OS if have no money to buy a Mac

What operating system do you recommend. Currently I have Vista installed but it isn't developer friendly. I'm doing rails apps and learning Android development an Appcelerator. Oh, and haven't the budget for a Mac :( ...

Log files not being written to (Passenger)

Locally, my app runs fine on and writes to its logs. My production server is running CentOS with an Apache server running Passenger. When trying to debug, I noticed my log files were not being written to. First thing I did was chmod 0666 them, and when I found out that didn't work I looked at my apache log. I found this: Rails Error: Un...

How to create installer for linux mint

Hi I have created rpm for my software which works fine for fedora. But this fails whenever I want to install the same in linux mint. because linux mint supprts .deb file for installation. So I want to create installer package for my software which will be compatible in linux mint. Thanks Sunil Kumar Sahoo ...

How to read data from file and display in QEditText box in QT

i would like to read a line of data from text file and display that data in Text Edit box ...

move c++ program to foreground

I used daemon() and fork() to move my program to the background. How can I bring it back to the foreground? Is there a c++ function that do so? thank you. edited: I understand that there is no way back from daemon() so how can I move my program from foreground to background and back? ...

How to create Menu in linux mint

Hi I am using linux mint OS. I want to create my own menu (eg like Internet). How to create menu? Thanks Sunil Kumar Sahoo ...

How to debug a program that is terminating in an unhandled exception???

Hi all, I am programming in C++ on Linux platform. My program terminates with this (unhandled???) exception: "terminate called after throwing an instance of 'long'" Aborted The code that is throwing the exception is inside try-catch block, then why should this happen?? The exception is thrown while returning from a function. I am us...

how to write cd command in makefile

for example I have something like this in my makefile all: cd some_directory but when I type make I saw only 'cd some_directory' like in echo command ...

naming convention for shell script and makefile

hi, yet another newbie question i have a few makefiles that store shared variables, such as CC=gcc , how should i name them ? candidates are common.mk Make.common Makefile.common which is more classic? similarly, i have some shell scripts, which should i choose among the following: do_this_please.sh do-this-please.sh DoThisPlease.sh ...

what is the difference between read() and recv() , and between send() and write() ?

what is the difference between read() and recv() , and between send() and write() in socket programming ? performance and speed and other behavior. ...

C# Client - Perl server - File Path Case Sensitivity

We have a C# .Net client application that sends some commands via REST over HTTP. The server is on a Linux machine written in Perl. These commands contain file paths located on the server that can be entered by the user. Since the users are on windows, we'd like for them to be case-insensitive, but this is giving us some issues in loc...

How to GZip every file separately

Easy and fast question, I just don't want to have all of them in a big tar :-) ...

Stripping maximum amount of information before shipping product

Before shipping a product to customers, I'd like to remove as much information as possible from the executable to minimize the ability to reverse engineer our product. Thus far this consists of running the strip command like this: strip -s myAppHere Is there anything else folks recommend doing to our application before giving it to c...

Check connection open or closed ?(in c in Linux)

In socket programming in Linux I need to write data in socket but I don't know socket is open or close . how to I know that socket is open and close without read ? printf("befor read%d\n", n); bzero(buffer, MAX_SIZE_BUFFER); n = read(sockfd, buffer, MAX_SIZE_BUFFER - 1); printf("after read%d\n", n); if (n <= 0) { break; } printf("be...

Append date to filename in linux

I want add the date next to a filename ("somefile.txt"). For example: somefile_25-11-2009.txt or somefile_25Nov2009.txt or anything to that effect Maybe a script will do or some command in the terminal window. I'm using Linux(Ubuntu). Thanks in advance. oh i almost forgot to add that the script or command should update the filename to...