Looking through the scheduler source code (2.6.34, kernel/sched.c), I can see how the "pluggable" schedulers are used, and I believe I understand the interface to be implemented. What I don't understand yet is how to get my code built into the kernel. At the very least, pointers to other sites would be appreciated.
Right now, I'm grep...
Hi -
I want to configure apache so that the access and error logs generated from apache include are named as follows:
<server-name>_access_<timestamp>
<server-name>_error_<timestamp>
I have the timestamp part figured out using rotatelogs:
CustomLog logs/access_log combined
CustomLog "|bin/rotatelogs -l /var/logs/access_%Y-%m-%d 8640...
Hello stack.
I've got following problem with gawk's asorti function:
gawk 'BEGIN{ \
a[1]=6; \
a[2]=7; \
a[3]=8; \
a[21]=9; \
a[123]=10; \
t=asorti(a, o); \
for (i=1; i<=t; i++) { \
print i,o[i]; \
} \
}'
The result is:
1 1
2 123
3 2
4 21
5 3
So it's pretty clear awk, sorted indices in lexicographi...
This should be a pretty straightforward issue -- I'm trying to compile Lua (or rather lua-vec, which is a minor variant) on a CentOS Linux install, and I get the following error:
[jt@flyboy src]#make linux
make all MYCFLAGS=-DLUA_USE_LINUX MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses"
make[1]: Entering directory `/jt/flyboy/fly/lu...
I have an public API how needs authentication and block all users who try brute force...
I'm thinking in log all operations in /var/log/auth.log using syslog, and configure fail2ban to add IP from user in deny list of iptables.
This is a good solution? Any ideas?
...
I am making a project that uses Autoconf. I have the following in configure.ac:
AC_CHECK_HEADERS([boost/foreach.hpp], [],
[AC_MSG_ERROR(You need the Boost libraries.)])
When I run configure, it says it cannot find this header file:
checking boost/foreach.hpp usability... no
checking boost/foreach.hpp presence... no
checking for b...
I have a specific page with resources to see you must log in to. After checking i then do
HttpContext.Current.Response.TransmitFile("/App_Data" + fn);
This works under windows. When moving to mod_mono and apache i get the below. I tried chmod -R 777 App_Data just in case. Still no luck. I made sure to do a hard refresh (shift + refres...
I'm running Redhat 5 Enterprise (Nautilus 2.16.2) with Gnome and am having trouble changing the default application for PDFs. No matter what I do, it seems to always come up as evince.
First I tried browsing to a PDF file using Nautilus, right clicking on a PDF file, selecting properties, open with, and then changing the radio button. H...
sudo apt-get install build-essential
What else?
...
I have a web app that's emailing to a fair number of new and existing users.
I'm looking for a simple way to ensure that my site's reputation doesn't get unnecessarily hurt in a way which will decrease deliverability with ISPs or popular web mails.
Typical scenarios I want to prevent:
trying to email to an address from
which an email...
What are the advantages and disadvantaghes of using libcurl and libsoup?
Which one is better to use for a HTTP operation where I have to send request to a server to get a response, and has a quick reaction time?
TIA,
Praveen
...
Hi
Is there any way to retrieve the mac-address for the given ip-address from the ARP table without providing the Interface name ??
I do know the procedure of retrieving the mac address using ioctl call but in that case I should provide the interface name .. :(
One Crude Solution: Read /proc/net/arp file ... :( .. other than that .. a...
Suppose I have a script in
/home/myuser/go.py
How do I run that script, when a new instance is booted? (I'm used to using the point-and-click control panel Amazon has...)
...
I have here a Windows distribution server that runs an ANT task to build enterprise software. What I need to do is to have the ANT task copy and run a VM image (Linux), and then...talk to that Linux VM through the host operating system (through the ant task itself). We need to be able to send files and/or commands to it.
Is there a prac...
Our developers use Java on Linux for various things (like checking membership of groups etc). It works - no problem with that! I'm not a developer so bare with me.
The problem is that they have hardcoded the servernames of our Domain Controllers (LDAP-servers) in their code. So now when we need to replace them with newer DCs, they need ...
Hiya,
the ext2 inode has a field i_dtime which is the deletion time.
Until today i thought that the deletion of a file removes the inode.
So does anyone know what the sense of this field is?
Thanks!
...
Is NServiceBus compatible with Mono?
Are you / have you run NServiceBus on Mono?
If so what issues did you run into?
NServiceBus leverage's MSMQ by default. I know this can be swapped out for different transport technologies, so I would imagine an initial task may involve implementing a provided "IMessageQueue " interface (or somethi...
Hi
I plan to develop a nice little application that will run on a
arm based embedded linux platform,
however since that platform will be battery powered I'm searching for
relevant information on how to handle powersave.
It is kind of important to get decent battery time.
I think the linux kernel implemented some support for this, ...
I'm currently in the process of writing a CGI blog engine in C (fun project - don't hate! :) and I'd like to enable posting for every user that has a login on the machine the webserver is running on.
What is the correct way to see if a supplied login and password match against the systems login data?
Just to clarify, if I have a shell ...
Hello,
I try to compile an application with kdevelop 3.5.4 on Ubuntu 10.04, but it fails with the following errors:
checking whether make sets $(MAKE)... yes
checking for g++... g++
checking whether the C++ compiler works... no
configure: error: in `/home/nts/wktools4':
configure: error: C++ compiler cannot create executables
See `conf...