Search found 244 matches

by bridge
Fri Jun 19, 2009 8:16 pm UTC
Forum: Coding
Topic: Alternative web server on Mac
Replies: 8
Views: 1336

Re: Alternative web server on Mac

As i said, running the scripts as _www won't do the job since they need to be in my user space. Thanks very much for your suggestions, it seems the correct way to approach the problem in general. However since this won't be a public server I'm going to run MAMP as my user, which is the less-effort s...
by bridge
Fri Jun 19, 2009 8:11 am UTC
Forum: Coding
Topic: Alternative web server on Mac
Replies: 8
Views: 1336

Re: Alternative web server on Mac

$/usr/sbin/apachectl -V |grep SUEX -D SUEXEC_BIN="/usr/bin/suexec" $file /usr/bin/suexec /usr/bin/suexec: cannot open `/usr/bin/suexec' (No such file or directory) This means it is supported (i.e. apache was compiled with --suexec) but i should build and install the suexec binary on my ow...
by bridge
Thu Jun 18, 2009 3:15 pm UTC
Forum: Coding
Topic: Alternative web server on Mac
Replies: 8
Views: 1336

Re: Alternative web server on Mac

That or add yourself the the _www group and give the files group permissions. The problem is not that _www has no permissions to run the scripts, they really have to run as the currently logged in user. This is because this scripts do things like change itunes track, start/stop an application and t...
by bridge
Wed Jun 17, 2009 11:29 am UTC
Forum: Coding
Topic: Could computer programs be represented as a flow chart?
Replies: 12
Views: 2176

Re: Could computer programs be represented as a flow chart?

Any piece of code can be seen as a flow chart once it's translated into machine code, in fact when you compile (i.e. C), the code is broken into units (basic blocks) and calls among them (this is called control flow graph). The graph is then analyzed and modified to be more efficient while leaving t...
by bridge
Wed Jun 17, 2009 9:27 am UTC
Forum: Coding
Topic: Alternative web server on Mac
Replies: 8
Views: 1336

Alternative web server on Mac

Hi folks, what do you think of the following: I have to serve pages from my Mac, I would normally use the (apache2) web server included in the OS. However i need that server to run as my own user, instead of the _www user normally used. This is because it has to run some CGI and Applescripts as me. ...
by bridge
Sun Mar 01, 2009 11:32 am UTC
Forum: Mathematics
Topic: Your favorite paradox
Replies: 159
Views: 22431

Re: Your favorite paradox

This one is pretty cool!
Spoiler:
Image

here if not visible
by bridge
Wed Aug 27, 2008 11:18 am UTC
Forum: Forum Games
Topic: (Reverse) Google search challenge
Replies: 17
Views: 2798

Re: (Reverse) Google search challenge

Finally someone made a web game out of reverse google images searching!
guess-the-google
by bridge
Sat Aug 16, 2008 12:16 pm UTC
Forum: Gaming
Topic: Super Smash Bros.
Replies: 1074
Views: 95133

Re: Super Smash Bros.

Wired vs. Wireless shouldn't make the difference,
Mine lags a lot sometimes, while other is smooth.
I guess it depends on where your opponents are geographically located,
too bad there's no "opponents from your continent only" like in Mario Kart
by bridge
Sat Aug 16, 2008 12:09 pm UTC
Forum: General
Topic: The 'it hurts my brain' thread
Replies: 81
Views: 7627

Re: The 'it hurts my brain' thread

I guess women are more tolerant (used to) to this kind of sh*t, i couldn't get past "girls approach me every day" around second 15
by bridge
Wed Aug 13, 2008 7:21 am UTC
Forum: General
Topic: The 'it hurts my brain' thread
Replies: 81
Views: 7627

Re: The 'it hurts my brain' thread

This makes my head almost explode
Miss South Carolina was something, but this is far beyond that...
The new phenomena is raimbows near the ground
by bridge
Sat Aug 09, 2008 8:41 am UTC
Forum: Coding
Topic: compiler flags and -Wshadow
Replies: 12
Views: 2281

Re: compiler flags and -Wshadow

and by the way, why -Wshadow is not included in -Wall?? Sarcastic answer: because the GCC people don't know what "all" means. Real answer: -Wall actually omits a crapload of warnings that would fire for too many programs. For instance, -Wshadow being in -Wall would probably do little but ...
by bridge
Thu Aug 07, 2008 11:47 am UTC
Forum: General
Topic: The 'it hurts my brain' thread
Replies: 81
Views: 7627

The 'it hurts my brain' thread

Post your best 'it hurts my brain' links there!
Just an example to give you the idea of what i'm talking about: The Darwin Conspiracy

Anything is allowed, from celebrity quotes to recursive pictures to rants on C pointers!!1!
by bridge
Wed Aug 06, 2008 9:35 am UTC
Forum: Coding
Topic: compiler flags and -Wshadow
Replies: 12
Views: 2281

Re: compiler flags and -Wshadow

Sure it warns about that, it should actually be a "%x"
btw i'm using gcc 4
by bridge
Tue Aug 05, 2008 6:40 pm UTC
Forum: Coding
Topic: compiler flags and -Wshadow
Replies: 12
Views: 2281

Re: compiler flags and -Wshadow

index It's actually a function, not even a variable...
I guess there's no way of checking this...
by bridge
Tue Aug 05, 2008 11:33 am UTC
Forum: Coding
Topic: compiler flags and -Wshadow
Replies: 12
Views: 2281

compiler flags and -Wshadow

You know what happens compiling the following code? #include <stdio.h> #include <string.h> int main (int argc, char const *argv[]) { printf ("%u\n", index); return 0; } If you were expecting an error, 'index is undefined' for example, that's wrong! The code will compile just fine and that'...
by bridge
Sat Jul 26, 2008 9:40 pm UTC
Forum: Forum Games
Topic: You Laugh, You lose
Replies: 1095
Views: 220070

Re: You Laugh, You lose

Spoiler:
Image

Here if not visible
by bridge
Mon Jul 14, 2008 9:42 pm UTC
Forum: Gaming
Topic: Super Smash Bros.
Replies: 1074
Views: 95133

Re: Super Smash Bros.

Simple question: stickers that i use in SSE apply to the characters only within SSE or even when i'm playing classic or online? Another one: What the hell is a "maximum total combo"? One of the items in the showcase says "do 400 maximum total combos in training mode" (My version ...
by bridge
Thu Jul 03, 2008 9:53 am UTC
Forum: Forum Games
Topic: Picture Pwn4ge!
Replies: 8368
Views: 1230387

Re: Picture Pwn4ge!

Mimetic Army Bull > Sissy Tea-Drinking Raptor
knuttz_ueba_07.jpg
knuttz_ueba_07.jpg (48.28 KiB) Viewed 2724 times
by bridge
Wed Jul 02, 2008 10:48 pm UTC
Forum: General
Topic: Turns out Evolution Is A Racist Concept...
Replies: 180
Views: 17806

Re: Turns out Evolution Is A Racist Concept...

So how do we decide which topics are essential? It's ok to not have evolution in high school (i hadn't it either, i did electronics in high school) what surprises me is that is not taught before, i.e. in elementary/middle school. From those years i remember just that we went around a lot capturing/...
by bridge
Wed Jul 02, 2008 6:18 pm UTC
Forum: Forum Games
Topic: You Laugh, You lose
Replies: 1095
Views: 220070

Re: You Laugh, You lose

Ansain wrote:Not that I haven't been out for a few weeks, but lets see if I can't eliminate anyone who is still playing. Has any one actually read through the entire thread and not laughed?

i was smiling here and there, then your Odin unexpectedly got me... LOL
by bridge
Wed Jul 02, 2008 6:11 pm UTC
Forum: General
Topic: Turns out Evolution Is A Racist Concept...
Replies: 180
Views: 17806

Re: Turns out Evolution Is A Racist Concept...

This comic makes my brain hurt, especially the usage of the Bible as a reliable source. And the countless fallacies. Argh. :( If that comic makes your brain hurt, stay away from evolution explained by a creationist Your brain may just explode. I always had a doubt regarding creation, maybe someone ...
by bridge
Sun Jun 29, 2008 11:11 am UTC
Forum: Language/Linguistics
Topic: Parliamo Italiano! (Italian Practice)
Replies: 54
Views: 21919

Re: Parliamo Italiano! (Italian Practice)

Ciao Ivy, sai stavo proprio pensando di venire in Croazia quest'estate,
diversi amici che ci sono stati mi hanno detto che è bellissima!
Magari hai qualche posto in particolare da raccomandarmi?
by bridge
Thu Jun 26, 2008 9:17 am UTC
Forum: General
Topic: Turns out Evolution Is A Racist Concept...
Replies: 180
Views: 17806

Turns out Evolution Is A Racist Concept...

Image
(alternate link)
i'm speechless
by bridge
Wed Jun 25, 2008 11:04 am UTC
Forum: General
Topic: ITT: We make xkcd slightly worse.
Replies: 8673
Views: 1866270

Re: ITT: We make xkcd slightly worse.

Beside the obvious one
Spoiler:
run.png
run.png (26.98 KiB) Viewed 6561 times

Another couple of variations on xkcd.com/272/
Spoiler:
malware-proof.jpg
malware-proof.jpg (91.39 KiB) Viewed 6559 times

Spoiler:
vista.jpg
vista.jpg (68.8 KiB) Viewed 6560 times
by bridge
Tue Jun 24, 2008 8:57 am UTC
Forum: Language/Linguistics
Topic: "Mappamondo" in English?
Replies: 17
Views: 5604

Re: "Mappamondo" in English?

So I guess my question is: Is this a mappamondo? It's not, that's a "mappa mondiale" or "mappa del mondo", while the "mappamondo" is the globe thing only EDIT: Actually i just discovered that the right word is "Globo" also in italian! Mappamondo is an erroneo...
by bridge
Mon Jun 23, 2008 8:30 pm UTC
Forum: Coding
Topic: Recomend a log macro (C)
Replies: 4
Views: 2938

Re: Recomend a log macro (C)

evilbeanfiend wrote:__FILE__

Nice trick, didn't know about that.
Sc4Freak wrote:variadic macros

I think i can put together something better now,
thanks a lot for the help
by bridge
Mon Jun 23, 2008 10:39 am UTC
Forum: General
Topic: Show the world your desktop! [Mommy, what's 56K?]
Replies: 2356
Views: 444955

Re: Show the world your desktop! [Killing 56K since January]

My working machine
Direct link to image
Spoiler:
desktop.jpg
desktop.jpg (193.67 KiB) Viewed 3615 times

The home/entrainment one (Linux) is much more messy :lol:
by bridge
Mon Jun 23, 2008 10:00 am UTC
Forum: Coding
Topic: Recomend a log macro (C)
Replies: 4
Views: 2938

Recomend a log macro (C)

When working on multiple-files school projects i usually organize my printfs into 3 categories, normal, verbose and debug. To do so i define #define VERBOSITY 1 //Set to 1, 2, 3 for norm, verbose, debug, 0 for silent #define NORMAL 1 #define VERBOSE 2 #define DEBUG 3 #define LOG(L, P) (if (VERBOSITY...
by bridge
Wed Jun 18, 2008 11:50 am UTC
Forum: Movies and TV Shows
Topic: Battlestar Galactica (spoilers rampant like Durandal)
Replies: 654
Views: 80830

Re: Battlestar Galactica (spoilers rampant like Durandal)

My money is on Hera, remember how she spontaneously went out the quarters to meet Caprica6?
It's like she was "activated" like the other four

btw: she didn't say a word in the whole show so far, right?
by bridge
Tue Jun 17, 2008 9:26 am UTC
Forum: Computer Science
Topic: Computer programs that can learn..
Replies: 25
Views: 4751

Re: Computer programs that can learn..

Sure i was just giving my opinion on how machine learning (supervised or not) is more "learning" than Prolog
by bridge
Sat Jun 14, 2008 10:38 am UTC
Forum: Forum Games
Topic: Picture Pwn4ge!
Replies: 8368
Views: 1230387

Re: Picture Pwn4ge!

Spoiler:
Image

Dinosaur hunter Jesus > singing jesus
here if not visible
by bridge
Sat Jun 14, 2008 10:13 am UTC
Forum: Movies and TV Shows
Topic: Battlestar Galactica (spoilers rampant like Durandal)
Replies: 654
Views: 80830

Re: Battlestar Galactica (spoilers rampant like Durandal)

The closest they came was on New Caprica where they smoked weed together. Was that during the webisodes before series 3? i have them but i never watched, because season 3 begun in the meanwhile now i'm curious... Everything was way too happy there at the end, so it was no surprise something went wa...
by bridge
Sat Jun 14, 2008 10:06 am UTC
Forum: Coding
Topic: Launching and detaching with ssh [halp!]
Replies: 16
Views: 2491

Re: Launching and detaching with ssh [halp!]

To launch something in screen i still need to detach with the command above if i don't want the ssh connection to be open
by bridge
Wed Jun 11, 2008 3:55 pm UTC
Forum: Coding
Topic: Launching and detaching with ssh [halp!]
Replies: 16
Views: 2491

Re: Launching and detaching with ssh [halp!]

Sweet!
even just

Code: Select all

ssh me@B "sh script.sh &> /dev/null &"

works fine (&> is a shortcut for stdout+stderr)
thanks a lot guys, Rysto i own you a beer
by bridge
Wed Jun 11, 2008 9:35 am UTC
Forum: Coding
Topic: Launching and detaching with ssh [halp!]
Replies: 16
Views: 2491

Re: Launching and detaching with ssh [halp!]

Bruce wrote:ssh localhost "sh -c sleep\ 10 &"
Works fine for me (verified with touch, it does run).

It does not work for me, does not return and connection is open, tried with
GNU bash, version 3.00.15(1)-release (i686-redhat-linux-gnu)
GNU bash, version 3.2.17(1)-release (i386-apple-darwin9.0)
by bridge
Wed Jun 11, 2008 7:43 am UTC
Forum: Coding
Topic: Launching and detaching with ssh [halp!]
Replies: 16
Views: 2491

Re: Launching and detaching with ssh [halp!]

If you just want your prompt back No i need to kill the connection once the script is launched, the reason is that i need to benchmark a distributed protocol Those 25 nodes are actually a cluster of machine whose only public address is the head node (A). While the benchmark runs, i don't want each ...
by bridge
Tue Jun 10, 2008 8:39 pm UTC
Forum: Coding
Topic: Launching and detaching with ssh [halp!]
Replies: 16
Views: 2491

Re: Launching and detaching with ssh [halp!]

You mean like that?
ssh -t me@B "nohup sh script.sh &"

This, just like without the &, does not close the connection until the script completed
by bridge
Tue Jun 10, 2008 8:14 pm UTC
Forum: Coding
Topic: Launching and detaching with ssh [halp!]
Replies: 16
Views: 2491

Re: Launching and detaching with ssh [halp!]

Mmm, no never heard of it... (there's also no manual for it on my linux box)

if i connect, launch the script and then disown %1, it works
is there anyway i can do that automatically on many machines?
i.e. condense it into a single ssh command?
by bridge
Tue Jun 10, 2008 7:52 pm UTC
Forum: Coding
Topic: Launching and detaching with ssh [halp!]
Replies: 16
Views: 2491

Launching and detaching with ssh [halp!]

I have a local machine A and a remote machine B, both unix i have a script "script.sh" on B, i need to launch it from B but i don't want the ssh connection to be active while the script runs i tried different combinations such as ssh me@B "sh script.sh &" ssh -t me@B "sh...
by bridge
Sun Jun 08, 2008 10:52 am UTC
Forum: Computer Science
Topic: Computer programs that can learn..
Replies: 25
Views: 4751

Re: Computer programs that can learn..

Dude the film was great, especially the first part made me ROFL a couple of times

i always say, spilling champagne on a personal computer has never been taken seriously enough as a method to create the singularity!

Go to advanced search