Search found 294 matches

by r1chard
Mon Mar 30, 2009 1:11 am UTC
Forum: Coding
Topic: Python: Where to start?
Replies: 5
Views: 1223

Re: Python: Where to start?

What do you want to write? :)

If you're truly stuck for inspiration then go to http://www.pyweek.org/ and sign up for the next challenge which starts in a couple of weeks. There's some people on there doing some warm-up exercises that you could try out.
by r1chard
Sat Mar 28, 2009 10:28 pm UTC
Forum: Coding
Topic: Help with choosing a file format.
Replies: 16
Views: 3664

Re:

RTF, d00d. ODT is nice, but it's just not well-used enough yet. You could use Google Documents on it, but short of that, you'd have to download a whole new word processor if you're using Microsoft Word to see ODT. I don't know much about .jar files, so I can't help you on the second one. No? There ...
by r1chard
Sun Mar 22, 2009 2:26 am UTC
Forum: Coding
Topic: Ruby? Is it worthwhile?
Replies: 41
Views: 3238

Re: Ruby? Is it worthwhile?

ash.gti wrote:Yes, twitter has lots of downtime, but its still a decent example of a rails app.

Oh, so it's common for rails apps to just lose data too then? Thanks, I'll avoid it.
by r1chard
Thu Mar 19, 2009 11:25 pm UTC
Forum: Coding
Topic: Killing all children of a forking daemon?
Replies: 23
Views: 3356

Re: Killing all children of a forking daemon?

The side-effect of #2 is that the parent can get into a loop of sending SIGTERM to itself. A sentinel could be used to avoid this, but there's no way to distinguish between the SIGTERM sent from external systems and ones from the parent itself, meaning my nice double-SIGTERM code is useless (one SI...
by r1chard
Thu Mar 19, 2009 11:23 pm UTC
Forum: Coding
Topic: Ruby? Is it worthwhile?
Replies: 41
Views: 3238

Re: Ruby? Is it worthwhile?

ash.gti wrote:Look at Twitter. Its a Rails app.

I don't think anyone wants to hold Twitter up as a Rails poster child :)
by r1chard
Thu Mar 19, 2009 5:11 am UTC
Forum: Coding
Topic: Killing all children of a forking daemon?
Replies: 23
Views: 3356

Re: Killing all children of a forking daemon?

I tried a couple of things and discovered: 1. I could not produce the the HUP/CONT behavior, and 2. killpg() invoked from the parent sends the signal to the parent as well (assuming it's in the process group). The side-effect of #2 is that the parent can get into a loop of sending SIGTERM to itself....
by r1chard
Wed Mar 18, 2009 11:29 pm UTC
Forum: Coding
Topic: Killing all children of a forking daemon?
Replies: 23
Views: 3356

Re: Killing all children of a forking daemon?

One option is for the children to occasionally check the parent-id, which would change; if I'm reading correctly the doc which I linked previously: If termination of a process causes a process group to become orphaned, and some member is stopped, then all are sent first SIGHUP and then SIGCONT. is ...
by r1chard
Tue Mar 17, 2009 10:22 pm UTC
Forum: Coding
Topic: Killing all children of a forking daemon?
Replies: 23
Views: 3356

Re: Killing all children of a forking daemon?

mind if I ask what your doing? When I last wrote something that was going to do very similar (kill the child processes), I kept finding information on the net saying that it wasn't the best way to do stuff. edited to make more sense, see below Here's the actual code I've got at the moment. It's a l...
by r1chard
Tue Mar 17, 2009 8:18 am UTC
Forum: Coding
Topic: Killing all children of a forking daemon?
Replies: 23
Views: 3356

Re: Killing all children of a forking daemon?

Area Man wrote:Is this Linux fork?

The target O/S is Solaris, but I develop primarily on Linux.

Thanks for that link though.
by r1chard
Tue Mar 17, 2009 5:26 am UTC
Forum: Coding
Topic: Killing all children of a forking daemon?
Replies: 23
Views: 3356

Killing all children of a forking daemon?

I've got a daemon that forks off worker children. I'd like to kill them all when the parent is told to die. I currently do this by SIGTERM'ing all the children when the parent is SIGTERM'ed, but that is a suboptimal solution (eg. if the parent is SIGKILL'ed the children will remain). I've been told ...
by r1chard
Tue Mar 17, 2009 4:02 am UTC
Forum: Movies and TV Shows
Topic: Watchmen - Spoilers like a Psychic Undersea Gargant!
Replies: 719
Views: 76925

Re: I am joyous. (Watchmen.)

But, was there any evidence that Dr Manhattan was punishing people? I mean, 10 cities are destroyed... was there any warning to not do it again? I mean, they weren't even all American/Russian cities. If it was "nukes are bad, don't do it" you'd think he'd just blow up nukes, or the capita...
by r1chard
Mon Mar 16, 2009 1:42 am UTC
Forum: Movies and TV Shows
Topic: Watchmen - Spoilers like a Psychic Undersea Gargant!
Replies: 719
Views: 76925

Re: I am joyous. (Watchmen.)

Jack Saladin wrote:I tend to tune out and wonder what's for dinner whenever there's a sex scene in a film, so I can't even remember another scene to compare it to. Goddamn sex scenes are boring.

This is my point. Until that scene I was engrossed in what was going on.
by r1chard
Mon Mar 16, 2009 12:12 am UTC
Forum: Religious Wars
Topic: The one bestest ever of all time language to rule them all
Replies: 141
Views: 28003

Re: The one bestest ever of all time language to rule them all

Berengal wrote:You can't have just one way to do something, because that would limit expressivity too much. ...

Indeed, that's why the Zen of Python specifically says "There should be one-- and preferably only one --obvious way to do it." (emphasis mine)
by r1chard
Mon Mar 16, 2009 12:07 am UTC
Forum: Movies and TV Shows
Topic: Watchmen - Spoilers like a Psychic Undersea Gargant!
Replies: 719
Views: 76925

Re: I am joyous. (Watchmen.)

OK, saw it on the weekend. Thought it was great. Understood why some people walked out on it. The first half was some of the best cinema I've seen, and I consider myself to have seen a lot of cinema. Thought the over-long sex scene was overly long and ruined my immersion in the film so the second ha...
by r1chard
Fri Mar 13, 2009 9:30 pm UTC
Forum: Religious Wars
Topic: What OS do you use?
Replies: 321
Views: 153270

Re: What OS do you use?

Vista is as bad as people think. It is not, at all. It totally is. It stopped me from ripping my Chemical Brothers CD, for example. It actually intercepts the rip and returns 8 seconds of music for each track. No other Operating System does that. Sorry, but in my books thats "as bad as people ...
by r1chard
Fri Mar 13, 2009 3:40 am UTC
Forum: Gaming
Topic: Games that aged well (Merge'd - Old Favorites)
Replies: 462
Views: 83467

Re: Games that aged well (PC)

Cannon Fodder fans must watch this Everyone else should as well. But especially the fodder fans :) Back on topic, I'll echo SecondTalon (oh, I see what you did there) from the first page: the original X-COM: UFO Defence still gets a play on my PC. Bought through Steam (the whole series for $5) it ru...
by r1chard
Wed Mar 11, 2009 4:50 am UTC
Forum: Gaming
Topic: Fallout 3!
Replies: 1500
Views: 148358

Re: Fallout 3!

So far the structure seems very Oblivion.... and yet I'm strangely drawn to play it more... hmmm :)
by r1chard
Wed Mar 11, 2009 4:50 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0554: "Not Enough Work"
Replies: 129
Views: 26296

Re: "Not Enough Work" Discussion

I can't believe that "reading the XKCD forum" didn't make the cut in that comic. It's always my first stop before validating any HTML.
by r1chard
Tue Mar 10, 2009 11:47 pm UTC
Forum: Religious Wars
Topic: What OS do you use?
Replies: 321
Views: 153270

Re: What OS do you use?

I use Ubuntu and Vista.

Vista is as bad as people think.
by r1chard
Tue Mar 10, 2009 4:41 am UTC
Forum: Gaming
Topic: Fallout 3!
Replies: 1500
Views: 148358

Re: Fallout 3!

Chfan wrote:I got out while killing only those who attacked me. No Overseer hate, actually.

Same here, except I snuck out past the Overseer, but Amata then ran into me in his offices and said he was dead anyway. No idea what happened.
by r1chard
Mon Mar 09, 2009 11:15 pm UTC
Forum: Coding
Topic: Python Question / References and such
Replies: 10
Views: 1734

Re: Python Question / References and such

PM 2Ring wrote:It's a Good Idea to remember that the assignment operator in Python doesn't work like it does in C (& similar languages). It doesn't store an object at a particular (named) location - it just binds a name to an object.


This is one of the things I find hardest to explain in my Python lectures :(
by r1chard
Mon Mar 09, 2009 11:08 pm UTC
Forum: Religious Wars
Topic: Best language for n00bs
Replies: 261
Views: 107879

Re: Best language for n00bs

If you're not going to be able to figure out either pointers or recursion, fall back to Python and do some hobbyist programming, but please don't drag down the level of my profession. I'm a professional programmer and I've been coding almost exclusively in Python for about 7 years now. You can take...
by r1chard
Mon Mar 09, 2009 7:21 am UTC
Forum: Gaming
Topic: Noby Noby Boy *Nom nom nom*
Replies: 3
Views: 931

Re: Noby Noby Boy *Nom nom nom*

I've played it for about 1 hour total now and I just don't get it. Nothing much interesting has happened.
by r1chard
Mon Mar 09, 2009 3:25 am UTC
Forum: Gaming
Topic: Fallout 3!
Replies: 1500
Views: 148358

Re: Fallout 3!

A friend just lent me his copy. I started it up, played through the hour of pre-game game, and now I'm in a wasteland playing ... Oblivion ... have they done anything to except re-skin and add more ranged weapons? Are the stories at all interesting? I played Oblivion a lot , and I'm not particularly...
by r1chard
Tue Mar 03, 2009 9:09 pm UTC
Forum: Religious Wars
Topic: Curly Brackets Go Where?
Replies: 94
Views: 19994

Re: Curly Brackets Go Where?

If Python was just a *little bit easier* for webdev, I'd probably switch over now. This is probably a question for other sections of the forum, but in what way is it hard now? In comparison with PHP. PHP is the be-all-end-all of easy webdev. You have files. People request those files. You get faste...
by r1chard
Tue Mar 03, 2009 8:39 am UTC
Forum: Religious Wars
Topic: NVIDIA versus ATI on Linux
Replies: 23
Views: 7194

Re: NVIDIA versus ATI on Linux

OOPMan wrote:I'm using an onboard ATI with the fglrx driver and haven't had any issues. Of course, I don't actually do anything with the 3d side of it ;-)

Yeah, just try to run some OpenGL app - I dare you :)
by r1chard
Tue Mar 03, 2009 8:39 am UTC
Forum: Religious Wars
Topic: Curly Brackets Go Where?
Replies: 94
Views: 19994

Re: Curly Brackets Go Where?

Xanthir wrote:If Python was just a *little bit easier* for webdev, I'd probably switch over now.

This is probably a question for other sections of the forum, but in what way is it hard now?
by r1chard
Mon Mar 02, 2009 11:01 pm UTC
Forum: Religious Wars
Topic: NVIDIA versus ATI on Linux
Replies: 23
Views: 7194

Re: NVIDIA versus ATI on Linux

ATI on Linux still sucks. Their driver is incredibly unstable.

Nvidia all the way.
by r1chard
Sun Mar 01, 2009 11:00 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2034544

Re: Coding: Fleeting Thoughts

Dammit, can't Skynet write my code for me today, please?
by r1chard
Sun Mar 01, 2009 9:08 pm UTC
Forum: Religious Wars
Topic: Curly Brackets Go Where?
Replies: 94
Views: 19994

Re: Curly Brackets Go Where?

Indentation contains all the information you need. Brackets are superfluous, so you should limit their effect on layout. Indentation is great, but until they get around to compiling Python into machine code, some of us still need to write in C++. But that's not what Xanthir was saying. And I agree,...
by r1chard
Sat Feb 28, 2009 3:50 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2034544

Re: Coding: Fleeting Thoughts

KDE 4 is the Vista of the Linux world. Maybe 4.2 will help. Maybe not. I've switched my Ubuntu 8.10 from KDE back to Gnome last month, and I was a pretty devoted KDE user.
by r1chard
Tue Feb 24, 2009 9:00 am UTC
Forum: Religious Wars
Topic: The one bestest ever of all time language to rule them all
Replies: 141
Views: 28003

Re: The one bestest ever of all time language to rule them all

for line in $stdin.each_line # ... other code ... end What's that "end" bollocks though? What if I don't want my program to end? What if I have more code? Slightly more seriously though - in my view a language that allows "more than one way" to do things ends up being less reada...
by r1chard
Tue Feb 24, 2009 2:01 am UTC
Forum: Religious Wars
Topic: The one bestest ever of all time language to rule them all
Replies: 141
Views: 28003

Re: The one bestest ever of all time language to rule them all

LTTP but I'm posing anwyay because this bugs me:

ash.gti wrote:Someone thats never seen ruby before could understand what I wrote.


Sorry, but how is

Code: Select all

$stdin.each_line do |line|
clear? What the heck is with those vertical bars? And the dollar sign does what? Compare with:

Code: Select all

for line in sys.stdin:
by r1chard
Sat Feb 21, 2009 11:56 pm UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2034544

Re: Coding: Fleeting Thoughts

I continue to be amazed with Python. I start to think I know most of what you can do and then I discover something that makes it seem even more powerful. This weeks discover: __getattribute__ and __setattr__. Since I was actually trying to accomplish something when I discovered this I decided to in...
by r1chard
Thu Feb 19, 2009 2:51 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2034544

Re: Coding: Fleeting Thoughts

Who else knew that Firefox and IE both subvert ISO-8859-1 character 0x80 ("Padding Character") to display the Euro symbol?
by r1chard
Wed Feb 18, 2009 4:44 am UTC
Forum: Coding
Topic: Internationalization of Programming Languages
Replies: 31
Views: 2444

Re: Internationalization of Programming Languages

Spolsky has an Olllllld article titled "The bare minimum every programmer should know about unicode (no exceptions)" - google it. It outlines issues with many of the languages you've just used as examples. I found it with a bit of fiddling - the title is actually "The Absolute Minimu...
by r1chard
Wed Feb 18, 2009 4:23 am UTC
Forum: Coding
Topic: Internationalization of Programming Languages
Replies: 31
Views: 2444

Re: Internationalization of Programming Languages

Carnildo wrote:
r1chard wrote:I have no idea how to compose "«" on my keyboard ;)


"Compose" - "<" - "<" produces "«".

...what, your keyboard doesn't have a "Compose" key?

Hey, cool, I can compose them!

«it's a bit fiddly though» :)
by r1chard
Wed Feb 18, 2009 1:31 am UTC
Forum: Coding
Topic: Internationalization of Programming Languages
Replies: 31
Views: 2444

Re: Internationalization of Programming Languages

Ruby 1.9.1 has support... And Python's had support for this since 2001, but like Ruby doesn't use non-ASCII in its core syntax. # -*- encoding: utf-8 -*- import math π = math.pi def λ(word): print(Hello, %s: π is %s'%(word, π)) λ('world') assert len("λπ") == 2 Perl 6, on the other hand, i...
by r1chard
Mon Feb 16, 2009 3:38 am UTC
Forum: Gaming
Topic: Left 4 fun (and Zombie Panic Source)
Replies: 804
Views: 55117

Re: Left 4 fun (and Zombie Panic Source)

Got it on the (50% off) weekend. Much zombie splatting fun. Haven't played with humans yet.
by r1chard
Sat Feb 14, 2009 7:54 am UTC
Forum: Coding
Topic: Coding: Fleeting Thoughts
Replies: 10016
Views: 2034544

Re: Coding: Fleeting Thoughts

I'm planning on using this in my game engine project to integrate the python interpreter seamlessly with the in-game console - the console will actually run python commands, rather than a limited custom language. I've written stuff like this for my presentation tool (Bruce, the Presentation Tool) w...

Go to advanced search