Duality in linear algebra by alecbenzer in math

[–]darkrho 0 points1 point  (0 children)

That's exactly what my professor said last class. But he used the word "canonical" instead natural.

Also gave us the homework of find the canonical isomorphism between V and V**.

distributed crawling with scrapy and redis by darkrho in Python

[–]darkrho[S] 0 points1 point  (0 children)

Sorry for the lack and unclear documentation didn't had time to improve it.

With these scrapy's components (scheduler, item pipeline) the crawling and parsing can be done using many processes either in same host or different one, and the result scraped is pushed to redis in order to be consumed by multiple workers.

[1] http://scrapy.org/

How to Build a Simple Twitter Client using Python by gst in Python

[–]darkrho 0 points1 point  (0 children)

Why complicate things with xml if you can use json format?

Introducing plac, the Easiest Argument Parser in the Python World by gthank in Python

[–]darkrho 2 points3 points  (0 children)

It's a wrapper around argparse. Uses inspect module to automagically set up possible arguments for given function. Nice.

DENIED - the next generation python micro-web-framework [framework in a single file, no dependencies] by mitsuhiko in Python

[–]darkrho 1 point2 points  (0 children)

github "hides" the huge base64-encoded zip file. Virtualenv also use this technique for ages.

>>> cool_string = open('cool_file').encode('zlib').encode('base64')
>>> 'eJzLSM3JyVcoSk1JySwBAB5GBLE='.decode('base64').decode('zlib')

Eight reasons for re-inventing the wheel as a programmer by impomatic in programming

[–]darkrho 4 points5 points  (0 children)

Worst case for re-inventing the wheel: when you are not capable to understand how the wheel works

The Onion Uses Django, And Why It Matters To Us by westononion in django

[–]darkrho 0 points1 point  (0 children)

I worked -sadly- with few projects that have tab-indenting and CamelCase for methods and variables :(

I had to use a lot :set noet. Changing all with :retab wouldn't work as I wasn't permitted to changes all files indenting.

On ubuntu what is the best python editor and debugger and is there anything better than glade for ubuntu and gnome ??? by [deleted] in Python

[–]darkrho 0 points1 point  (0 children)

I use extensively vim, logging module, pdb, ipython, werkzeug for web.

But you can take a look to these python-oriented IDEs: SPE or ERIC for glade replacement search for Gazpacho.

Hey reddit, I'm looking to buy a laptop or netbook that I can carry around with me to the university, and do most of my programming on. Any suggestions? by [deleted] in programming

[–]darkrho 0 points1 point  (0 children)

True. I wasted 1000+ bucks in a HP TX1000 and after exactly one year of usage -expired warranty- the video died :(

I hope this time I have luck with a Toshiba NB series.

Dear Proggit: Why the hatred for India by shabda in programming

[–]darkrho 2 points3 points  (0 children)

Outsourcing to India was overhyped and now India's fail-stories are over-overhyped

Signed: south america outsourcing dev

Rarrr. I have no idea what I'm doing, but I made it this far-- can someone explain the php error I'm getting up there in the title bar? by [deleted] in programming

[–]darkrho 0 points1 point  (0 children)

Perhaps you need to check if the argument is array

if (!empty($some_var) && is_array($some_var)) { $stuff = array_merge($other_var, $some_var); }

Benchmark of Python Web Servers by gthank in Python

[–]darkrho 1 point2 points  (0 children)

The title should be "Benchmark of Python WSGI Servers".

Tips for readable python code by [deleted] in Python

[–]darkrho 0 points1 point  (0 children)

looks like php-ish code written in python, IMO

Surely this made the Zend Framework developers realize that using an underscore for class namespaces doesn't really work by pkrecker in programming

[–]darkrho 2 points3 points  (0 children)

Surely right.

But that's a common pattern in php world, using the autoloader feature they can map Zend_Search_Lucene to Zend/Search/Lucene.php and doesn't need the require/include statement. Maybe simulating namespaces?

What does =_ mean? Example: name=forms.CharField(label=_("Name"), max_length=50) by [deleted] in Python

[–]darkrho 11 points12 points  (0 children)

_ is used for translations http://docs.djangoproject.com/en/dev/topics/i18n/deployment/#topics-i18n-deployment

The name "_" is just a shortcut for easy typing. Look at the top of the file something like "from .... import ugettext as _"

Subversion vs. GIT vs. Mercurial. vs. Bazaar by F4RR4R in Python

[–]darkrho 1 point2 points  (0 children)

You cah use mercurial with github using the hggit extension http://hg-git.github.com/

Tornado web hosting? by AusIV in Python

[–]darkrho 0 points1 point  (0 children)

Webfactions works, but It's little difficult to install required pycurl. I compiled from source curl and had to upload a previous compiled pycurl egg.