Search:
Type: Posts; User: jemfinch
Search:
Search took 0.14 seconds.
-
You need code tags. Python isn't Python without indentation.
Jeremy
-
I think you might have a command "basename" which might do what you want.
Jeremy
-
Python is the ideal beginner language.
It's also the ideal advanced scripting language too, ironically.
Jeremy
-
Why would it be better in bash?
Perl is everywhere; bash isn't.
Jeremy
-
Not necessarily. That's certainly not an invariant, perhaps when you're working with late copying of substrings.
Using memmove instead of memcpy is just good programming practice. Anytime you...
-
It's too bad Python isn't installed on those machines -- it provides much better tools for this. Does Perl even offer an easy way to iterate over strings? I can't remember.
Anyway, as bwkaz...
-
I can't tell you how to do it in Perl, because I don't feel like looking up the syntax to substr, but you should use this algorithm:
import re
def lettersToNumber(s):
if not...
-
Don't use memcpy, its behavior is undefined in the case of an overlapping source and destination. Use memmove instead.
Jeremy
-
Nope -- it's a plain old /bin/sh bourne shell. Making it a c-shell would break the very standards they're hoping to uphold.
Jeremy
-
Oops! :D
http://arstechnica.infopop.net/OpenTopic/page?a=tpc&s=50009562&f=57909216&m=4110959254&r=4110959254#4110959254
:)
Jeremy
-
Hey, I remember some people might have been interested in my Chess books at some point, so since I finally got them up on the internet to sell, I figured I'd provide a link to the sale if anyone...
-
I figured I might as well fill all y'all in.
Some of you know a bit about my future plans and all, and some don't, so I'll recap a little bit.
I'm a sophomore classics major at college,...
-
Go ahead. Search this board for pieces of Python code and pieces of Perl code. I'll let you deduce yourself which you'd rather learn :)
Jeremy
-
Python's so easy, most non-domain-specific books really aren't worth the money.
Jeremy
-
I don't think there is a downside.
Jeremy
-
I suppose so. Better than "whatever I still use, however lacking, because I'm unwilling to try new and powerful things."
Jeremy
-
The reason you got the strange error message, btw, is because % is an overloaded operator on strings, and so "123" % "3" "doesn't convert all the arguments" because there aren't any format specifiers...
-
You're a bit behind the times :) I switch away from Python around 9 months ago :) This time, the bad code belonged to me -- that's why I picked O'Caml. It makes me write better code.
Jeremy
-
AOL::TOC is a horribly coded PoS module.
I wrote an AIM bot with it, until it broke. Then I went to look at the code and saw how horribly and hacky the code was.
AOL::TOC is (no joke) the...
-
close() shuts down the socket itself.
You need to set the SO_REUSEADDR option on the socket.
Jeremy
-
-
First, read the manpage for waitpid. It's perhaps misleading in that there's at least some form of it that does not block.
Either way, it doesn't really matter. Install a signal handler for...
-
You don't need the FOOSCOUNT stuff.
const char* FOOS = { ... }
0x13a isn't a valid character.
Jeremy
-
Also note that Arstechnica now has a rather lively programming forum that could use a few more UNIX-centric programmers :)
Jeremy
-
Have you tried the vim OLE object that can be embedded into DevStudio?
I'm just curious, I have no earthly clue what it's like, I don't use vim, I don't use DevStudio...I don't even use Windows ...
|
|