Search found 2996 matches

by lambda
Sat Feb 12, 2011 2:30 pm
Forum: General
Topic: how to up a static page on internet
Replies: 6
Views: 23475

by lambda
Mon Feb 07, 2011 2:13 pm
Forum: Programming
Topic: size of executable file?
Replies: 1
Views: 6559

this should answer your question: $ cat a.c; cc -o a a.c; ls -l a; size a int myarray[50000] = {1,2,3,4}; int main(void) { myarray[0]=3; return 0; } -rwxr-xr-x 1 me me 208483 2011-02-07 14:08 a text data bss dec hex filename 1068 200528 16 201612 3138c a $ $ cat b.c; cc -o b b.c; ls -l b; size b int...
by lambda
Tue Feb 01, 2011 5:41 pm
Forum: General
Topic: Problem in installing VLC Player in Fedora 14
Replies: 1
Views: 3130

what's the error?
by lambda
Sat Jan 29, 2011 7:38 am
Forum: Administration
Topic: How to Disable SASL in Linux
Replies: 1
Views: 2902

sasl doesn't have anything to do with ssl. you need to look more closely at your problem.

here's my guess: what does this command output?

Code: Select all

postconf -n | grep inet_interfaces
by lambda
Mon Jan 24, 2011 5:37 pm
Forum: Installation
Topic: libsepol.so.1 library error rhel4 input/out error plz help
Replies: 1
Views: 7501

search your installation cds for libsepol-1.15.2-3.el5.i386.rpm or something like that, then do

Code: Select all

rpm -i /path/to/libsepol*.rpm
by lambda
Wed Jan 19, 2011 5:49 pm
Forum: General
Topic: How to increase cache speed in squid ?
Replies: 6
Views: 11744

1. upgrading ubuntu whenever a new release comes out is way easier than upgrading rhel. for example, see the network upgrade for ubuntu servers section under the 8.04 LTS to 10.04 LTS heading. 2. rhel ships once every few years. with ubuntu, you have the choice of using LTS (long term release) -- on...
by lambda
Tue Jan 18, 2011 2:34 pm
Forum: General
Topic: How to increase cache speed in squid ?
Replies: 6
Views: 11744

set cache_mem to no more than 1/3rd of your RAM. you can set it to 1GB. the 200 in your cache_dir line means just 200 mbytes. set it to something like 150000 (around 150 gbytes). the more you can cache in memory, the faster it'll work. you should also change the "ufs" in the cache_dir line...
by lambda
Thu Dec 30, 2010 2:47 pm
Forum: Programming
Topic: A CPython module to handle command line arguments
Replies: 2
Views: 6950

why would anyone use that over optparse?
by lambda
Mon Nov 29, 2010 2:52 am
Forum: General
Topic: Procmail
Replies: 1
Views: 2819

are you sure you can use a pipe for DEFAULT? i thought you could only use a mailbox or maildir.
by lambda
Wed Nov 10, 2010 2:56 pm
Forum: Administration
Topic: Error in Partition Monitoring Script!
Replies: 1
Views: 3027

paste the output of "df -l", not "df -h".

use the code tag around the output.
by lambda
Sun Oct 17, 2010 10:29 pm
Forum: Administration
Topic: youtube routes on other interface
Replies: 11
Views: 10934

i once noticed my computer downloading something when i wasn't doing anything. i ran tcpdump and found that it was downloading something from a server on ptcl's network. ran "host" on the ip to see what it was, and it was one of google's servers. my browser (chrome) was downloading its saf...
by lambda
Sun Aug 29, 2010 2:48 pm
Forum: Administration
Topic: Executing Bash Script by help of cron scheduler
Replies: 5
Views: 5937

remove the outer while loop so that it does exit after a 10 seconds.

install runit or daemontools (probably part of your distribution), and run it using that.
by lambda
Sun Aug 29, 2010 2:46 pm
Forum: Administration
Topic: Error in Backup Script
Replies: 2
Views: 3763

are we supposed to guess the error?
by lambda
Tue Aug 10, 2010 11:06 am
Forum: Administration
Topic: Executing Bash Script by help of cron scheduler
Replies: 5
Views: 5937

that will execute 60 times, once a minute from 9:00 to 9:59.

0 9 * * * is what you want.

it doesn't seem like the script will ever exit. perhaps cron is not the place for it.
by lambda
Thu Jul 29, 2010 12:28 am
Forum: Administration
Topic: FreeBSD NAT Issue
Replies: 1
Views: 3162

allow only the ports you want to pass through:

Code: Select all

map em0 172.16.0.0/23 -> 0/32 proxy port ftp ftp/tcp
map em0 from 172.16.0.0/23 port = 25 to any -> 0/32
rdr fxp0 0/0 port 80 -> 127.0.0.1 port 8080 tcp
(untested)

read the guide.