Skip to content

Instantly share code, notes, and snippets.

@amcgregor
amcgregor / lessons.textile
Created November 16, 2010 00:02
Lessons learned from #python on irc.freenode.net regarding support.

Lessons Learned from #python

Over the years myself and others have attempted to utilize the #python support channel on irc.freenode.net when solving problems. For the most part the time spent explaining the problem, the rationale behind the design, uncovering the exact question to ask to get the desired (helpful) response, and personality conflicts have resulted in more frustration than problems solved. So I’m writing up this lessons file in an effort to not repeat the past mistakes in supporting my own users.

What it really comes down to, other than wasted development hours, is not having to explain to your boss that your team should rewrite 30% of your project because some random git in a chat room said you were Doing it Wrong™.

Alternate Support Channel

In an effort to produce a place where individuals can ask questions without fear of being directly or indirectly called an idiot, I’ve opened #python-friendly, the friendly place to discuss Python, ask questions, and get helpful answers. #pyt

@amcgregor
amcgregor / 00-irc-log.textile
Created August 10, 2011 02:03
Where asking a simple question, and not accepting useless and insulting answers, gets you banned from an IRC channel.

Cleaned IRC log of #python starting Monday, 25 July, 2011 at 17:13:55 EDT.

Gems are highlighted in bold.

GothAlice How do I determine if a given object is a @classmethod, and, additionally, how do I determine if it is a @staticmethod? 1
KirkMcDonald GothAlice: Why would you care?
GothAlice KirkMcDonald: Enforcing interfaces, not that it matters.
dash GothAlice: you’re right, it doesn’t matter
_habnabit GothAlice, if you wanted an answer to the question as asked, why don’t you try ##python-friendly? #python is about writing better code.
nedbat GothAlice: what KirkMcDonald should have said was, “The Python culture is to not check ahead of time, do you have an unusual requirement that means you really have to know?”
@rpatterson
rpatterson / 00-irc-log.textile
Created March 26, 2012 11:29 — forked from amcgregor/00-irc-log.textile
Yhg1s making #python an intolerable place for a community with a supposed code of conduct
I keep having a problem where python seems to “go to the
background” on windows. subprocess.Popen.wait() returns
immediately even thought it’s actually still running and if I
invoke a python process in a .cmd file, the same thing happens
*
* inestical (~inestical@a91-155-182-158.elisa-laajakaista.fi) has joined
channel #python
zenwryly: what are you launching with subprocess.Popen?
* kesor (~kesor@bzq-79-180-228-46.red.bezeqint.net) has quit: Read error: No
route to host
*
wilfish (~wilfish@wsip-70-164-30-146.ri.ri.cox.net) has quit: Quit: Zzz…
@d11wtq
d11wtq / docker-ssh-forward.bash
Created January 29, 2014 23:32
How to SSH agent forward into a docker container
docker run -rm -t -i -v $(dirname $SSH_AUTH_SOCK) -e SSH_AUTH_SOCK=$SSH_AUTH_SOCK ubuntu /bin/bash
## Oops Code
```
Oops: 0002 [#1] PREEMPT SMP
```
This is the error code value in hex. Each bit has a significance of its own:
- bit 0 == 0 means no page found, 1 means a protection fault
- bit 1 == 0 means read, 1 means write
- bit 2 == 0 means kernel, 1 means user-mode