Re: Pacing

1

Jesus H. Christ.


Posted by: apostropher | Link to this comment | 03- 6-08 7:14 AM
horizontal rule
2

I used to know a dealer who sold the weed in little glass mason jars. When you needed more, you would come back with the jar and he would sell you a refill. It was considered more environmentally friendly than using a separate plastic bag for every transaction. Plus, you got a sweet little jar for storing your weed.


Posted by: Spike | Link to this comment | 03- 6-08 7:16 AM
horizontal rule
3

This is ridiculous. Sure, arresting people for crimes that you think they might commit in the future worked in Minority Report, but what if we can't find enough precogs to make the whole thing run smoothly?


Posted by: Gaijin Biker | Link to this comment | 03- 6-08 7:24 AM
horizontal rule
4

what if we can't find enough precogs

Arrest them all! The truth will set them free—or not.


Posted by: md 20/400 | Link to this comment | 03- 6-08 7:51 AM
horizontal rule
5

The fuck? The war on drugs is now a war on baggies under two inches? There's got to be some obvious reason I'm not seeing here why this isn't dumb.


Posted by: Cala | Link to this comment | 03- 6-08 7:52 AM
horizontal rule
6

Ha ha! If we make their little baggies illegal there will be NO WAY to transport and sell narcotics! The war on drugs will end! The people who don't heed the anti-drug laws will be unable to stop themselves from heeding the anti-baggie law!


Posted by: A White Bear | Link to this comment | 03- 6-08 7:54 AM
horizontal rule
7

Over here one uses coin bags. Are they going to make the banking system illegal?


Posted by: OneFatEnglishman | Link to this comment | 03- 6-08 8:01 AM
horizontal rule
8

Does it say something about Chicago or about me that I never saw such a transaction involve such small quantities?

Stupidest. Law. Evar.


Posted by: Robust McManlyPants | Link to this comment | 03- 6-08 8:06 AM
horizontal rule
9

||
Is there a way to use the letter wizard in Word 2001 for Mac without having it come out retarded. I'm trying to streamline the process of writing cover letters and to make sure that everything lines up correctly without using tabs, but they just come out looking stupid with weird lines and weird fonts. They don't look like any business letter I've ever seen.

Ugh! I hate Microsoft.
|>


Posted by: Bostoniangirl | Link to this comment | 03- 6-08 8:08 AM
horizontal rule
10

nickels and dimes, pants. you should keep in mind that a) heroin in tiny amounts will fuck you up and b) sometimes people will pay 5 or 10 bucks for a tiny bag full of seeds and stems and weed because they don't have anything better to do.


Posted by: alameida | Link to this comment | 03- 6-08 8:17 AM
horizontal rule
11

Why would Python treat a statement of the following nature:

for somedict in someiteratorfullofdicts:
if somedict["a key"]=='the right value':
rightvaluedict.update(dicty)

as if we were addressing an index in a string, not an item in a dict, and thus fail with a TypeError: String indices must be integers?

Note - the keys can be quite long (the data is from a csv file of survey responses, processed out with csv's DictReader class).


Posted by: Alex | Link to this comment | 03- 6-08 8:20 AM
horizontal rule
12

Before you all rush, yes, the second and third lines should be on the second and third indent levels. Ask the comments box why it stripped the extra spacing.


Posted by: Alex | Link to this comment | 03- 6-08 8:21 AM
horizontal rule
13

and yes, dicty s/b somedict.


Posted by: Alex | Link to this comment | 03- 6-08 8:22 AM
horizontal rule
14

1. Spy Magazine did a thing, approximately 1000 years ago, where they called the folks that made the tiny ziplock baggies and asked them what they thought people used them for.

2. I think that I have seen more tiny brown bottles lately than tiny ziplock bags.


Posted by: oudemia | Link to this comment | 03- 6-08 8:35 AM
horizontal rule
15

I have used tiny plastic baggies for sneaking kitchen spices across an international border.


Posted by: mrh | Link to this comment | 03- 6-08 8:40 AM
horizontal rule
16

I see two elderly lawbreakers in the gate area I'm in right now. I think I'll initiate a citizen's arrest and pull the emergency alarm for good measure. Logan could do with some excitement.


Posted by: Gonerill | Link to this comment | 03- 6-08 8:45 AM
horizontal rule
17

Is there a way to use the letter wizard in Word 2001 for Mac without having it come out retarded. I'm trying to streamline the process of writing cover letters and to make sure that everything lines up correctly without using tabs, but they just come out looking stupid with weird lines and weird fonts. They don't look like any business letter I've ever seen.

I think you are overthinking the need to streamline and hyper-format this. I would skip the wizard. There's not really that much to line up. Just left-align the date, address, your salutation, and the letter itself. You can even left-align your closing. If you prefer, tab over some number of tabs you consider reasonable.

http://owl.english.purdue.edu/owl/resource/653/02/


Posted by: redfoxtailshrub | Link to this comment | 03- 6-08 8:45 AM
horizontal rule
18

11: It would do that if one of the items in your iterator isn't the dict you think it is, but is in fact a string. Maybe your iterator is returning the contents of the dicts, rather than the dicts themselves.


Posted by: Spike | Link to this comment | 03- 6-08 8:54 AM
horizontal rule
19

Hmmm. The problem happens at the second level of processing, after the data has already been filtered into two groups....perhaps I should keep them in lists.


Posted by: Alex | Link to this comment | 03- 6-08 9:05 AM
horizontal rule
20

Meanwhile, not so long ago I crossed an international border with a supply of saffron in a sealed envelope. I wonder what customs would have made of it?


Perhaps a fragrant risotto...


Posted by: Alex | Link to this comment | 03- 6-08 9:06 AM
horizontal rule
21

The Onion put it best:

"Thank God we've finally stopped looking at the causes of this terrible social problem and started focusing on the symptoms."

Posted by: Minivet | Link to this comment | 03- 6-08 9:08 AM
horizontal rule
22

there are actually tons of legitimate uses for tiny plastic bags, sorting things like beads, tiny screws/machine parts, stamps and coins, the counters for games, packaging expensive spices, the buttons mentioned above. now, certainly total sales must outstrip total legal uses, and in a given bodega 100% of the sales may be for illegal uses, but...


Posted by: alameida | Link to this comment | 03- 6-08 9:09 AM
horizontal rule
23

Because you're on crack, Alex:
>>> iteratorfullofdicts = ({"a":"b", x:x+1} for x in range(20))
>>> rightvaluedict = {}
>>> for somedict in iteratorfullofdicts:
if somedict['a'] == 'b':
rightvaluedict.update(somedict)

>>> rightvaluedict
{0: 1, 1: 2, 2: 3, 3: 4, 4: 5, 5: 6, 6: 7, 7: 8, 8: 9, 9: 10, 10: 11, 11: 12, 12: 13, 13: 14, 14: 15, 15: 16, 16: 17, 17: 18, 18: 19, 19: 20, 'a': 'b'}
>>>


Posted by: ben w-lfs-n | Link to this comment | 03- 6-08 9:15 AM
horizontal rule
24

(Or, perhaps, because your iterator isn't actually full of dicts at all.)


Posted by: ben w-lfs-n | Link to this comment | 03- 6-08 9:17 AM
horizontal rule
25

22: My saffron actually came in a little crack vial!

In any event, I certainly agree that the plastic baggie ban is ridiculous beyond words.


Posted by: oudemia | Link to this comment | 03- 6-08 9:18 AM
horizontal rule
26

You see how perverted oudemia's concepts have become.

Oudemia, your crack comes in a little saffron vial.


Posted by: ben w-lfs-n | Link to this comment | 03- 6-08 9:19 AM
horizontal rule
27

23 would have been better if it had used "range(30)", so the iterator would have like thirty goddamn dicts!


Posted by: zadfrack | Link to this comment | 03- 6-08 9:23 AM
horizontal rule
28

What about our bag rights? If tiny bags are banned, only criminals will have tiny bags!


Posted by: mcmc | Link to this comment | 03- 6-08 9:41 AM
horizontal rule
29

I see two elderly lawbreakers in the gate area I'm in right now.

Is it Whitey Bulger and his girlfriend?


Posted by: mcmc | Link to this comment | 03- 6-08 9:44 AM
horizontal rule
30

hell, why not import random, for x in range(randint) and have a random number of dicts?

anyway, I know precisely what the content of the dicts is, I'm just looking to create a load of pivot tables in a reasonably painless fashion 'cos our survey software sucks (data! in giant csv files! in the year of our Lord, 2008!)


Posted by: Alex | Link to this comment | 03- 6-08 9:52 AM
horizontal rule
31

I predict new turf wars as gangs carve out the plastic baggie black market.


Posted by: bitchphd | Link to this comment | 03- 6-08 9:53 AM
horizontal rule
32

when i first saw the "making plastic bags illegal" headline at some other side i thought it was some wringnut anti-condom thing.


Posted by: yoyo | Link to this comment | 03- 6-08 10:00 AM
horizontal rule
33

I need to break down one of my machines and clean it up, and those bags would be perfect for keeping track of which bolts go where. Conveniently, a head shop just opened up across the street.


Posted by: Mo MacArbie | Link to this comment | 03- 6-08 10:49 AM
horizontal rule
34

I have like a billion of those tiny one-inch plastic ziploc bags in my house right now, they're for sorting beads and jewelry hardware. I do worry about the waste though; they'll eventually go to grow the floating semisolid continent of degraded plastic out in the middle of Pacific. Maybe the city of Chicago has the right idea -- you want to encourage the drug dealers to recycle vials and bottles and things, rather than using new bags for every transaction.


Posted by: jms | Link to this comment | 03- 6-08 10:53 AM
horizontal rule
35

anyway, I know precisely what the content of the dicts is,

Evidently not, since apparently they aren't dicts at all.


Posted by: ben w-lfs-n | Link to this comment | 03- 6-08 11:03 AM
horizontal rule
36

Why not ask the fucking docs? class DictReader( csvfile[, fieldnames=None,[, restkey=None[, restval=None[, dialect='excel'[, *args, **kwds]]]]])
Create an object which operates like a regular reader but maps the information read into a dict whose keys are given by the optional fieldnames parameter.
If the fieldnames parameter is omitted, the values in the first row of the csvfile will be used as the fieldnames...


Posted by: Alex | Link to this comment | 03- 6-08 11:20 AM
horizontal rule
37

Hey, beats me, man.


Posted by: ben w-lfs-n | Link to this comment | 03- 6-08 11:24 AM
horizontal rule
38

jms probably has scales and $5 bills in her house.


Posted by: Will | Link to this comment | 03- 6-08 11:33 AM
horizontal rule
39

Instead of this, the Chicago government should probably make clean needles illegal.


Posted by: washerdreyer | Link to this comment | 03- 6-08 11:57 AM
horizontal rule