here, I've got it started for you, it's sorted alphabetically and contains all 10 letter words
yarbo@hydrogen temp$ cat 10letter.py
dic = open("/usr/share/dict/words").readlines()
dic10 = filter(lambda x:len(x)==10,dic)
print len(dic10)
yarbo@hydrogen temp$ python2.3 10letter.py
6093
The players didn't know the board would be expanded. I'd imagine you'd set up a more impromptu language system if you thought it was a simple game on a 2x2 grid.
call someone who is right next to you, talk to him/her and then you'll hear the delay between when you hear them in person and when you hear them over the phone.
Other shells have tab completion, and at least in Bash, you can rebind the key to whatever you want. For example, I had a friend who used tab completion in the Python shell, but used the ` key.
I sent them an email yesterday, and this was their response:
Dear Mr. Lesniak,
Thank you for your recent inquiry to Grants.gov concerning the Pure Edge viewer. Grants.gov has been working with Pure Edge to offer a viewer that is compatible with as many operating systems as possible. We feel that we are not too far from achieving that goal, and when we do, be sure that information will be posted on our website. In the meantime, we apologize if the viewer options we offer for your operating system are not acceptable. Our goal is to ensure the widest possible acceptance of Grants.gov and certainly not to exclude anyone from the electronic grants submission process. To that end, as a first step, we ensured that the Pure Edge viewer will work with a Windows emulator program, as described on our website. Grants.gov employs the PureEdge Viewer 6.0 for viewing and completing application forms. The PureEdge viewer's 508 compliance is described at http://www.pureedge.com/products/products/PureEdge AccessibilityGuide.pdf. Grants.gov sponsored testing of the PureEdge Viewer demonstrated the viewer's compatibility with the widely used Jaws screen reader. An enhanced version of the PureEdge Viewer that will include compatibility with a broader range of screen reader products through support for industry standard interfaces for accessibility is in the process of being tested and upon successful completion of testing will be posted to the site.
Feel free to contact us should you have further inquiries.
Your case number is 55982. Please reference this number when contacting us in the future for further assistance.
Thank you,
Charity Grants.gov Customer Support www.grants.gov
But in Python, you CAN put a statement on the same line as a conditional, but you're limited to one liners (which can be more than one statement).
you can write 'if y:x'
or you can write 'if y:x;x;x;x;x;x;'
I've worked with people, and found that trying to force indent on them is very hard, for some reason. Forcing splint on a partner I had for a project was impossible (hell, he even started disabling some of the warnings, but that's another story).
Indent will fix the indentation, but who is going to compare the before and after to see if something visibly changed scope?
Besides, Python will let you write complicated things on a single line, provided that you don't use nested loops or assignments in conditionals. You can separate single statements on a single line with semicolons.
If you're worried about mixing tabs and spaces, you can run python -tt and it'll throw an exception if tabs and spaces are mixed at any point.
Btw, I think that picking unit tests that cover every line of code in all circumstances can be hard, and not everyone can be expected to write code that'll detect scope errors like the ones I listed. Sometimes those bugs will slip, and I think languages that enforce indentation are doing the right thing. There may be wonderful optional programs and unit testing packages, but many users can't be bothered, and it's nice if a language can force certain people to do things the right way.
Maybe I'm just bitter because no one I work with will bother incrementally testing, unit testing, running lint, or following indentation standards if not forced. Maybe most people don't need it, I just know people around me need it...
In Swedish, titta means to look and bra means good, big deal. In Turkish penis means placenta, who cares?
here, I've got it started for you, it's sorted alphabetically and contains all 10 letter words yarbo@hydrogen temp$ cat 10letter.py dic = open("/usr/share/dict/words").readlines() dic10 = filter(lambda x:len(x)==10,dic) print len(dic10) yarbo@hydrogen temp$ python2.3 10letter.py 6093
I think your parent poster was saying that we haven't caused a single insect species to become extinct, despite our best efforts.
The players didn't know the board would be expanded. I'd imagine you'd set up a more impromptu language system if you thought it was a simple game on a 2x2 grid.
Linux kernel compiled on boot using TCC, twat
gcc, icc, or tcc. The majority of people probably use gcc, but tcc and icc are definitely possibilities.
call someone who is right next to you, talk to him/her and then you'll hear the delay between when you hear them in person and when you hear them over the phone.
ImageMagick!
You can do all sorts of transforms, scaling, filters, and conversions from the command line.
pornography
Other shells have tab completion, and at least in Bash, you can rebind the key to whatever you want. For example, I had a friend who used tab completion in the Python shell, but used the ` key.
Sweden has double the population of Louisiana (4.5 million vs ~9 million)
I met a Finnish girl who moved to Austria but visited her family every Winter.
I know many Indian immigrants (6+ years in the US) who go to India every Summer.
wrong
Ratcatching? Think bigger, ratfarming!
I sent them an email yesterday, and this was their response:
e AccessibilityGuide.pdf. Grants.gov sponsored testing of the PureEdge Viewer demonstrated the viewer's compatibility with the widely used Jaws screen reader. An enhanced version of the PureEdge Viewer that will include compatibility with a broader range of screen reader products through support for industry standard interfaces for accessibility is in the process of being tested and upon successful completion of testing will be posted to the site.
Dear Mr. Lesniak,
Thank you for your recent inquiry to Grants.gov concerning the Pure Edge viewer.
Grants.gov has been working with Pure Edge to offer a viewer that is compatible with as many operating systems as possible. We feel that we are not too far from achieving that goal, and when we do, be sure that information will be posted on our website. In the meantime, we apologize if the viewer options we offer for your operating system are not acceptable. Our goal is to ensure the widest possible acceptance of Grants.gov and certainly not to exclude anyone from the electronic grants submission process. To that end, as a first step, we ensured that the Pure Edge viewer will work with a Windows emulator program, as described on our website.
Grants.gov employs the PureEdge Viewer 6.0 for viewing and completing application forms. The PureEdge viewer's 508 compliance is described at http://www.pureedge.com/products/products/PureEdg
Feel free to contact us should you have further inquiries.
Your case number is 55982. Please reference this number when contacting us in the future for further assistance.
Thank you,
Charity
Grants.gov Customer Support
www.grants.gov
It's in my adblock, so I just wgetted the pdf...
My ibook doesn't.
actually, apparently we do have it (link)...
I'm going to be sharing a one bedroom, it'd probably be too crowded for three...
We don't have Internet2 either...
Imagemagick for simple (or complicated) image manipulations. gqview or kuickshow for image viewing.
But in Python, you CAN put a statement on the same line as a conditional, but you're limited to one liners (which can be more than one statement).
you can write 'if y:x'
or you can write 'if y:x;x;x;x;x;x;'
Indent will fix the indentation, but who is going to compare the before and after to see if something visibly changed scope?
Besides, Python will let you write complicated things on a single line, provided that you don't use nested loops or assignments in conditionals. You can separate single statements on a single line with semicolons.
If you're worried about mixing tabs and spaces, you can run python -tt and it'll throw an exception if tabs and spaces are mixed at any point.
Btw, I think that picking unit tests that cover every line of code in all circumstances can be hard, and not everyone can be expected to write code that'll detect scope errors like the ones I listed. Sometimes those bugs will slip, and I think languages that enforce indentation are doing the right thing. There may be wonderful optional programs and unit testing packages, but many users can't be bothered, and it's nice if a language can force certain people to do things the right way.
Maybe I'm just bitter because no one I work with will bother incrementally testing, unit testing, running lint, or following indentation standards if not forced. Maybe most people don't need it, I just know people around me need it...
That would mean it has a shallow learning curve. If it was steep, you would learn everything in a short period of time.
you've never made this mistake in C/C++?
while (condition);
{
do_stuff();
}
or this one
for (...)
statement1;
statement2;
those mistakes can't happen in Python. A whole class of bugs eliminated, and all you have to do is indent your code (you don't do that anyway?!)