UnwashedMeme

- friends
4,122 link karma
1,464 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Five-Year Club

    Verified Email

Surgeon General's Warning by mindbanterin gratefuldead

[–]UnwashedMeme 1 point2 points ago

Missed the fact that it is addictive, or at least habit forming.

Fun ways to remind husband/boyfriend you want another baby! by Laurannain AskReddit

[–]UnwashedMeme 1 point2 points ago

Does he like trying to fix things? Walk in with a pillow under your shirt -- the more poorly done the better. Say it isn't working.

Threw an ultimate disc the other day by AFlemeisterin discgolf

[–]UnwashedMeme 0 points1 point ago

Once you're confident enough to flick in an ultimate game it really changes it. So many more possibilities open up.

Threw an ultimate disc the other day by AFlemeisterin discgolf

[–]UnwashedMeme 0 points1 point ago

I'm not the best at long distance throws on either disc type but I prefer discgolf discs for discgolf-- if nothing else they don't bounce out of the basket as easily.

I also always carry an Ultimate disc when playing discgolf just to throw back and forth with my mates.

going the other direction with my bag; Putting a lot LESS in there. Anyone else? by nataskaosin discgolf

[–]UnwashedMeme 1 point2 points ago

I am not as avid as many here but do really enjoy playing. I don't play any tournaments and only keep score sometimes (and never for that hole).

I used to take a driver, a midrange, and a putter; then I dropped the midrange. Now my kit consists of a Freak that I use for everything, a 175g Ultimate disc (e.g.) for throwing back and forth with my buddies as we walk, and a beer (no particular reason).

It's simpler and I have a better time because I'm not carrying, or caring, as much. It's just a good time in the park throwing discs around.

New simple ~32oz loose-leaf teapot - what do you suggest? by Exavionin tea

[–]UnwashedMeme 0 points1 point ago

I just got a Forlife Stump 16-Ounce that I've been pretty happy with. It's probably a bit smaller than what you're looking for though.

Uses of git by sundar22inin programming

[–]UnwashedMeme 5 points6 points ago

I've been using etckeeper for a while: it's good stuff.

Another good aspect of etckeeper is that it works in conjunction with apt. It does a commit before (if needed) and after installing a new package so you can track more easily what changed.

How to install Firefox beta in Ubuntu? by I_am_hackedin firefox

[–]UnwashedMeme 1 point2 points ago

If you want the alpha version then Colar is correct. The beta version is available at:

sudo add-apt-repository ppa:mozillateam/firefox-next

Reddit, what's the best / most creative insult you've ever heard? (Possibly NSFW) by PoodleWorkoutin AskReddit

[–]UnwashedMeme 7 points8 points ago

No; bad shanoxilt! This is a funny thread and I will not read that again first thing on a Friday morning.

Just a reminder to use pip + distribute (and virtualenv, of course)! by Sirafin Python

[–]UnwashedMeme 0 points1 point ago

You want to create a setup.py file. If there's a setup.py in there then anyone who comes along and finds the github page can do any of the following:

  • install it directly from there--pip can install from git urls.
  • [fork and] clone it and run python setup.py install and it will install.
  • Having already setup a virtualenv, fork and clone it, run pip install -e foo_project to install it 'editably'.*

setup.py is written using (yet another) package 'distutils'-- it's what everything else builds on top of. It is intimidating at first but the simple case is simple.

The Hitchiker's Guide to Packaging is a great place to start-- you probably only need the top part (sections 1 and 2). Though if you proceed it will demonstrate uploading to PyPI (something I've never actually done-- most of my py projects end up being internal stuff). The distutils docs can also be treated as "only look at the first section", but is a bit steeper.

*The editable part is a feature of pip (has been in some previous versions). Normally when you install a python package, the apropriate files are copies into < install-root, i.e. /usr/local, or the virtualenv directory >/lib/python2.X/site-packages/< package-name >. Edits to the source then don't have any effect. In the -e mode it essentially puts a symlink there instead of copying the files.

If you just have one python package it isn't that big of a deal, you just work on that package in that directory. This is really handy when you are developing a library used by another project. You work in the projects directory and the library is still available as import foo_lib and edits made there show up immediately (either with python process restart or reload).

TL;DR I've been using Python for a long time but put off learning this packaging stuff until just recently. Right after I did I made packages out of all my projects going "Why didn't I do this years ago?"

Just a reminder to use pip + distribute (and virtualenv, of course)! by Sirafin Python

[–]UnwashedMeme 1 point2 points ago

I don't know. You might check http://www.pip-installer.org/en/latest/requirements.html#the-requirements-file-format for details on how to specify sources... I know you can tell it to install from a bunch of different sources but scanning it really quickly i'm not spotting RPM stuff. Perhaps that's where you need to look at distribute more (I believe the layer underneath pip) more... or just keep using a working system ;-)

More generally (for other people wondering about system packaging vs pip): If I see if it is packaged by ubuntu I install from there, unless I particularly need the latest version and then I pip install (from PyPI). Things tend to work.

On the other hand, this is what virtualenv is for. When you are runing in a virtualenv none of the system packages matter (well, depending on the --no-site-packages flag which just became the default a couple weeks ago). Only packages that have been installed to the virtualenv or are part of the main python distribution are in the path at that point. Inside the virtualenv pip automatically installs to that virtualenv and it all works beautifully.

On some projects I've even downloaded the packages from PyPI and committed the tarballs into source control with the project. Another developer can then get a clone of the project and have everything (short of python itself) necessary to get the project running in a known good state.

Python and shell scripting/pipes by ozzileein Python

[–]UnwashedMeme 1 point2 points ago

I agree with searchingfortao but would add that the subprocess module does make connecting processes together into pipelines pretty nice. If you have a simple case of of process a, b, and c then just leave it like it is.

Another note that I've done a little bit more recently is making python packages that are installed into the python environment and then invoking them as a module python -m mymodule.

Just a reminder to use pip + distribute (and virtualenv, of course)! by Sirafin Python

[–]UnwashedMeme 14 points15 points ago

pip is like easy_install, except it also lets you easily uninstall, which is a killer feature.

Another big feature of pip I like is pip freeze which will output the current versions of the packages that you have installed. This can be put into a 'requirements file'-- this could be checked into source control or sent in a bug report so the exact environment (or somethign pretty close to) can be recreated.

Just a reminder to use pip + distribute (and virtualenv, of course)! by Sirafin Python

[–]UnwashedMeme 7 points8 points ago

  • egg files are a package -- i.e. a zipped bundle. There are variants (i.e. source and binary) but you probably don't need to worry too much.
  • http://pypi.python.org/pypi -- the Python Package Index -- is a site that indexes python packages. This is a good resource for what python projects and modules are out there. It is searched by some of the tools below to help install stuff.
  • easy_install (now deprecated by pip) --tries to make downloading an installing packages easier. I.e. easy_install foopackage searchs PyPI for foopackage and installs it locally if found.
  • setuptools - (deprecated by distribute) does some of the work for foopackage.
  • distribute - Distribute is intended to replace Setuptools as the standard method for working with Python module distributions. Ignore (pip uses it internally).
  • pip - USE THIS ONE Replacement for easy_install. searches PyPi and installs packages. In order to use pip, you must first install setuptools or distribute. If you use virtualenv, a copy of pip and depencies will be automatically be installed in each virtual environment you create.

I tend to:

  1. create a virtualenv (normally with my installed virtualenvwrapper-- a set of shell extensions to automate managing many virtualenvs).
  2. Activate the virtualenv workon < myvirtualenv > if you are using the wrapper or source < vedir >/bin/activate if you are just using virtualenv.
  3. that I just use pip install < foopackage > and it installs into my current environment and I can use it. Don't need to worry about all the stuff in between.

A review of an MMW soundcheck and show by a mellowtron repairman/enthusiast. Has some fun stuff about Medeski's rig and style. by UnwashedMemein heady

[–]UnwashedMeme[S] 0 points1 point ago

I clicked around on the site a bit not sure exactly who he is... Still a great read.

Epic tantrum thrown by 30 octillion ton baby star, and the analysis is just brilliant by Digirakin Astronomy

[–]UnwashedMeme 2 points3 points ago

You may still be right about it being from the magnetic field-- there aren't necessarily two poles. I've seen this in discussions about the earth's pole switching, that during that time there may be many, weaker, poles.

Here's some links i found in quick googling:

For your holiday tea shopping, Mellow Monk has extended its 20% discount for redditors. by mellowmonkin tea

[–]UnwashedMeme 1 point2 points ago

All of their teas! They're good.

The Top Leaf is their premium green tea and is a favorite of mine. The Monk's Choice is also perfectly solid and a bit cheaper. The matcha is pretty good and fun if you haven't seen that before. Beyond that just go down the list and enjoy.

view more: next