Hello. We have a website which had a previous memory limit of 12 MB (12 MB in php.ini, and 16 MB in settings.php) and worked previously.
After moving to a new server it started giving memory limit errors and displaying half-blank screen.
We increaded the limit in both files (php.ini and settings.php) and now it works, but I dont under...
I'm testing something where I'm compiling some code and analysing output with a Perl script.
So first I run make, manually copy & paste the output to errors.txt and then running my Perl script (running: perl analysis.pl) in terminal.
Is there away I can do this just with one line in bash?
...
I have software that can launch and control multiple firefox browsers on Ubuntu EC2 images. I need to run a small load test against a QuickTime Streaming server. The stream starts automatically when loaded in a browser that has the QuickTime plugin, so I don't need to automate the stream once it starts.
Alternately, I can also make th...
Does anyone know a way to detect a change of IP address in Linux. Say I have dhcpcd running, and it assigns a new IP address, is there a way I can get a notification when it changes? I can't use D-Bus, because this is an embedded ucLinux build that doesn't have it.
inotify on something in /proc/net/ ?
...
I noticed that in the Linux kernel 2.4 file sched.c there's a line that says:
void scheduling_functions_start_here(void) { }
and one that says
void scheduling_functions_end_here(void) { }
Shouldn't this kind of stuff be written as a comment? What is the gain of using functions?
...
Hi,
I am looking at linux startup services, like Cron which runs at level 5 located in init.d,
in the startup script I can only see the script file and location of binary file which is executed on startup. Where can I see the actual source code of this services
...
Hello,
I created a struct to hold some data and then declared a vector to hold that struct.
But when I do a push_back I get damn segfault and I have no idea why!
My struct is defines as:
typedef struct Group
{
int codigo;
string name;
int deleted;
int printers;
int subpage;
/*included this when it started seg...
I noticed that in Linux kernel 2.4 setscheduler doesn't force need_resched. Why is that? is it just some convention, or does that happens somewhere else?
...
fgrep -ircl --include=*.{sql} "[--]" * doesn't seem to be doing the trick. Please help...
Thanks for the responses guys. I am trying to replace the '--' with '#' and am having a tough time. I created a new question here. If you could help, that had be awesome.
...
I find myself doing this a lot:
script/generate migration my_new_migration
.. then select & copy the generated filename, then paste it into vi to actually write the migration.
Is there any way to do this in one step? i.e. when the script/generate migration runs, it creates the file the automatically opens that file in an editor?
(...
The kernel is 2.4.
On a side note, does anybody knows a good place where I can search for that kind of information? Searching Google for function definitions is frustrating.
...
Hello,
I have a program that listens on port 443 and then redirects to either an SSH or HTTPS local server depending on the detected protocol.
The program does this by connecting to the local server and proxying all data back and forth through its own process.
However, this causes the originating host on the local servers to be logged...
We have several Python 2.6 applications running on Linux. Some of them are Pylons web applications, others are simply long-running processes that we run from the command line using nohup. We're also using virtualenv, both in development and in production. What is the best way to deploy these applications to a production server?
In devel...
I have an application that is receiving data from multiple multicast sources on the same port. I am able to receive the data. However, I am trying to account for statistics of each group (i.e. msgs received, bytes received) and all the data is getting mixed up. Does anyone know how to solved this problem? If I try to look at the sender's...
Hi I want to delete a line using sed if it matches 2 regular expressions in the same line. EG the line starts with /* and end with */ (comment). The following script will do most of that.
sed -e '/^\/*/ d' -e '/*\/$/ d' filename
This script will remove all lines that start with * and end with */. I want it to remove the line only if i...
2 vote down star
I have an application that is receiving data from multiple multicast sources on the same port. I am able to receive the data. However, I am trying to account for statistics of each group (i.e. msgs received, bytes received) and all the data is getting mixed up. Does anyone know how to solved this problem? If I try to ...
I have a problem with iconv tool. I try to call it from rake file in that way:
Dir.glob("*.txt") do |file|
system("iconv -f UTF-8 -t 'ASCII//TRANSLIT' #{ file } >> ascii_#{ file }")
end
But one file is converted partly (size of partialy converted: 10059092 bytes, before convertion: 10081854). Comparing this two files prove that not ...
Hello everyone, i have a commonly named .sqlite file contained within many unique user's home folders with file structure: /home/user/unique-ip-address/folder/file.sqlite I've decided to move all of these .sqlite files to a tmpfs mount and have already done so maintaining the full directory structure, so each .sqlite file is now in: /mnt...
Hello Everyone,
This time i want to implement Sphinx in C++ application in Linux. Please give me the API required to do the same or the concerned link will also do. Although i found many for PHP, however none for C++.
I have also used GTKmm in my application.
Thanks in advance.
...
Im programming webserver (C), which should send big files. My question is:
What are the main differences in two syscalls: write and sendfile. Does sendfile depends on size of socket system buffer? I noticed that write often writes less then I requested.
For example, if got many requests for one file: should i open it, copy into memory a...