badr

- friends
1,282 link karma
645 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Six-Year Club

    Verified Email

TIL that if for whatever reason you google image search for "wtf jesus", one of the top results is a picture of Hendrick House (private dorm) by Tussertein UIUC

[–]badr 20 points21 points ago*

I took this picture. Winter 2002-2003. My roommate was active on the Something Awful forums, and I was active on one called Tribal War, so we posted it on them at the same time and watched the forums argue over who stole it from who. (This was a thing they did at the time; TW isn't culturally relevant anymore.) The picture spread from there.

Edit: Found the original file. It was taken December 20, 2002. Time flies.

Who do you think is the best modern lyricist? by jimjimgreenin LetsTalkMusic

[–]badr 0 points1 point ago

Agreed. Check out my website joannanewsomlyrics.com

int from output of .split() by honey_piein learnpython

[–]badr 5 points6 points ago*

Best:

foo, bar = string.split(':')
a['a'] = int(foo)
a['b'] = int(bar)

Fanciest:

a = dict(zip(('a', 'b'), map(int, string.split(':'))))

Immutable Objects, Please Help Me Comprehend. by username_taken_wtfin learnpython

[–]badr 1 point2 points ago

Yes.

Immutable Objects, Please Help Me Comprehend. by username_taken_wtfin learnpython

[–]badr 5 points6 points ago*

You ask, "is a being destroyed and recreated as a new object?" This question is imprecise in a way that reflects your confusion. Do you mean "a", the name, or do you mean the object that "a" points to?

"a" is a name that points to an object. When you use assignment, like foo=bar or a = "blah", you are telling Python which object the name "a" should point to. In this case, a new string object with value "blah". So in your example, the name "a" is now pointing to a new object. (The old one may or may not have been "destroyed"; that doesn't matter for now.)

There are different kinds of objects. Some of them are mutable, some are immutable. Lists are mutable: a = []; a.append(3). Notice how we didn't use assignment, yet the value of the object that "a" pointed to changed. Whereas, if "a" points to a string or int, you have to use assignment to change the value of the object "a" points to.


Re-reading the above, it's kind of confusing. Let me try again.

You have cardboard boxes, and post-it notes. The post-it notes each have a variable name on them, like "a" or "foo". The boxes are objects, like ints, strings, lists, classes, dicts, anything.

When you use assignment (foo=bar), you're taking a post-it note, and sticking it on a box. Note that you can have multiple post-it notes on a box (a = b = [1,2,3]), but a post-it note (name) can't be on more than one box. Some boxes can be opened, like lists, so you can throw stuff in or take stuff out. Some boxes are locked (ok, they are transparent, lockable cardboard boxes), so you can't change what's in them. Those are called immutable.

Going back to your question, was the old value of "a" destroyed? Can the interpreter throw the box into the incinerator? It depends whether there are other post-it notes on it. (I.e., references to the object.)


Use the built-in function id to help develop your understanding. Call it from the shell on any variable or value you can get your hands on.

Source code to Seddit.com, my chat site based around Reddit. Includes an XMPP server that takes Reddit credentials, and a pretty decent HTML+JS chatroom client. by badrin programming

[–]badr[S] 2 points3 points ago

You don't have to use your reddit credentials to log in to the site, it's one of two possible authentication methods. But you can post them here if you want.

Coolest bitcoin businesses? by genjixin Bitcoin

[–]badr 1 point2 points ago

Thanks, done.

Coolest bitcoin businesses? by genjixin Bitcoin

Lentil and Pre-roasted Duck Meat Burrito by JoonBuggy32in food

[–]badr 3 points4 points ago

It can be amazing (e.g. a good confit), but like any other meat it depends a lot on the quality and preparation. . The meat is very fatty and I think it comes down to how well you handle that. In general it's richer and gamier than other poultry.

Hey guys, the folks at Seddit have given us another way to get to know our fellow ents. Check out the r/eldertrees chatroom. by ripvanfishin eldertrees

[–]badr 4 points5 points ago

No, we are not affiliated with them. The name means "said it", like "read it". Just a coincidental overlap.

Max Beckmann - The Night (1918) by beingandnothingnessin museum

[–]badr 4 points5 points ago

I, for one, will never forgive you.

I made a Reddit-based chat site. Here's a chatroom for /r/bayarea. Please check it out and let me know what you think. by badrin bayarea

[–]badr 0 points1 point ago

For any fellow developers who were wondering: Strophe.js and ejabberd do most of the work. There's also some nginx, Django, PostgreSQL, and AWS.

I made a Reddit-based chat site. Here's a chatroom for /r/uiuc. Please check it out and let me know what you think. by badrin UIUC

[–]badr[S] 0 points1 point ago

IRC is too complicated for most people. It's also limiting: by building a custom web interface, Seddit can integrate with Reddit more deeply than generic services can. For example, moderators of a subreddit are automatically moderators of the corresponding chatroom on Seddit.

I made a Reddit-based chat site. Here's a chatroom for /r/uiuc. Please check it out and let me know what you think. by badrin UIUC

[–]badr[S] 0 points1 point ago

The Reddit authentication API randomly fails sometime. Try the alternative method.

Seddit.com — my realtime Reddit-based chat site. Built using Strophe.js, ejabberd, and nginx/Django/postgres. Let me know what you think! by badrin programming

[–]badr[S] 4 points5 points ago*

Yeah, but aren't those guys used to being stepped on?

I made a Reddit-based chat site. Here's a chatroom for /r/sanfrancisco. Please check it out and let me know what you think. by badrin sanfrancisco

[–]badr[S] 1 point2 points ago

Thank you. I contacted the RES guys to see if they're interested in integrating somehow.

I made a Reddit-based chat site. Here's a chatroom for /r/sanfrancisco. Please check it out and let me know what you think. by badrin sanfrancisco

[–]badr[S] 0 points1 point ago

Looks like you got it fixed? Let me know if there are any more problems.

Seddit.com — my realtime Reddit-based chat site. Built using Strophe.js, ejabberd, and nginx/Django/postgres. Let me know what you think! by badrin programming

[–]badr[S] 1 point2 points ago

XMPP works, just slightly complicated. Let me know if you're interested.

Seddit.com — my realtime Reddit-based chat site. Built using Strophe.js, ejabberd, and nginx/Django/postgres. Let me know what you think! by badrin programming

[–]badr[S] 1 point2 points ago

IRC is too complicated for most people. It's also limiting: by building a custom web interface, Seddit can integrate with Reddit more deeply than generic services can. For example, moderators of a subreddit are automatically moderators of the corresponding chatroom on Seddit.

I made a Reddit-based chat site. Here's a chatroom for /r/uiuc. Please check it out and let me know what you think. by badrin UIUC

[–]badr[S] 0 points1 point ago*

Yeah, I saw a couple errors. Let me look into it.

EDIT: Seems to just be timeouts. Try again?

view more: next