RSync is traditionally used to update Gentoo portage tree.
But it's somewhat slow when dealing with a large number of files.
So, I want to try to replace RSync with Git.
I know that Funtoo have Git-based portage tree, but is there a Gentoo-specific official one?
...
In the beginning of a file on my server (linux), which is located in the /etc/init.d/ folder I have this line:
!/bin/sh -e
What does it mean, because every time I execute the rest of the script it works fine except for an error which shows:
!/bin/sh not found
Any ideas?
...
Currently anybody can access the solr admin page by going to my_ip:8983/solr
I can't have it like that, so how can I make it prompt for password or something?
I have setup my servers apache2.conf file to prompt for password whenever my site is accessed by www.mydomain.com.
But when using another port, the "require password" wont show ...
I found Seed, which is basically a JavaScript environment and binding for programming GTK+. Are there any limitations compared to using e.g. C and C++? Are there any major speed concerns?
...
Why on the same machine computing the SHA-1 hash of the same file produces two completely different SHA-1 hashes in windows and inside a msysgit Git bash?
Doesn't the SHA-1 algorithm was intended to produce the same hash for the same file in all OSes?
On windows (with HashCheck):
File hello.txt
22596363b3de40b06f981fb85d82312e8c0ed511...
I have the following command that I run on cygwin:
find /cygdrive/d/tmp/* -maxdepth 0
-mtime -150 -type d |
xargs du --max-depth=0 > foldersizesreport.csv
I intended to do the following with this command:
for each folder under /d/tmp/ that was modified in last 150 days, check its total size including files within it and ...
Nokia realised qt sdk beta. http://www.forum.nokia.com/info/sw.nokia.com/id/e920da1a-5b18-42df-82c3-907413e525fb/Nokia_Qt_SDK.html
Is it possible to run it on archlinux?
Hm, it is able to run, but unfortunately there is too new libpng version in archlinux.
...
I have this setup in Phpmyadmin:
USER HOST PASSW PRIVILEGES GRANT
debian-sys-maint localhost Yes ALL PRIVILEGES YES
phpmyadmin localhost Yes USAGE NO
root 127.0.0.1 Yes ALL PRIVILEGES YES
root...
I intend to distribute an F# program as both binary and source so the user has the option of recompiling it if desired. On Windows, I understand how to do this: provide .fsproj and .sln files, which both Visual Studio and MSBuild can understand.
On Linux, the traditional solution for C programs is a makefile. This depends on gcc being d...
Hi, I am building an application for which I need to periodically get information about users keyboard. It is going to be user idle detection application. I have a fairly simple solution to periodically check if the mouse has been moved. But I can't figure any reasonable non root way to detect if the keyboard has been pressed.
I was thi...
Hi ,
i am very new to xml and c++.
i want to validate xml against xsd using c++ api.can any one gimme any tutorial link? or sample program.i don want to do using msxml as its works in windows and visual studio.
i tried to use xerces and libxml but i have failed.now i am trying using tinyxml.
please help me to validate xml against xml...
Hi,
I have so many println("") in my codes .. I know it is messy ... I want to put comment for each of the println("");
how to do that in VIM ? I mean I want to do that on multiple files.
Also if possible, can it detect whether the lines has // already or not ... if the lines has been commented .. I don't want to add new //
...
I wrote a signal handler to catch FPE errors. I need to continue execution even if this happens. I receive a ucontext_t as parameter, I can change the bad operand from 0 to another value but the FPU context is still bad and I run into an infinite loop ?
Does someone already manupulate the ucontext_t structure on Linux ?
I finally found...
Hi,
How do I check with C if a port on my local machine (if required by passing an IP or interface, too), is in listen state? I don't want to connect to this port for checking because I don't want to irritate the service behind this port.
I want to use this to add the missing net.tcp.listen item to Zabbix.
EDIT - THIS IS THE REAL ANS...
Hello
I want to use recv syscall with nonblocking flags MSG_NONBLOCK. But with this flag syscall can return before full request is satisfied. So,
can I add MSG_WAITALL flag? Will it be nonblocking?
or how should I rewrite blocking recv into the loop with nonblocking recv
...
Hi,
I'm having a bit of a strange problem with an application using the Files.probeContentType(path)-method to test for file type: On both my Ubuntu and Fedora systems, it works fine, but when moved to a RedHat Enterprise server (2.6.18-194.el5 #1 x86_64 x86_64 x86_64 GNU/Linux), it only returns null. I'm using java 7 early access (1.7....
I tried running a script using nohup like,
nohup script.sh &
When I tried
ps -ef | grep "script.sh"
I couldn't find it there except for the grep which is being run with that string as a parameter.
Am I doing it right?. Does this mean that the process has indeed finished execution?
Thanks.
...
Hi everyone,
Im trying to make my own debian distribution but I have a problem.
simple-cdd works fine but when I try to install my generated .iso, everything goes right since a message apears:
"
No installable kernel was found in the defined APT sources
You may try to continue without a kernel. and manually install your kernel later....
I ran the following command at linux bash:
apt-cache search hex.*(view|edit)
My intention was to find any software packages whose name/description contains the pattern 'hex.*(view|edit)'. But among the results I got this:
kipi-plugins - image manipulation/handling plugins for KIPI aware programs
How could this be in the results lis...
On my Linux platform, I have several versions of gcc.
Under usr/bin I have:
gcc34
gcc44
gcc
Here are some outputs:
$ gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-48)
$ gcc44 --version
gcc44 (GCC) 4.4.0 20090514 (Red Hat 4.4.0-6)
I need to use the 4.4 version of gcc however the default seems to the 4.1 one.
I there a wa...