Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kmike84
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
17 ms
·
121.
▲
by
kmike84
12y ago
I'm not sure how would you design a library for event-loop based website navigation when an event loop is explicit. Scrapy (which is a wrapper over Twisted) is already quite close to this IMHO. You can plug anything to the same event
122.
▲
by
kmike84
12y ago
Scrapy spider that is doing exactly the same:: # It requires scrapy from github. # Save it to tickets.py and execute # "scrapy runspider tickets.py" from the command line from urlparse import urljoin import
123.
▲
by
kmike84
12y ago
Only a subset of twisted is ported. For example, twisted trial runner is not ported, so you can't run tests using twisted test runner in Python 3.
124.
▲
by
kmike84
12y ago
To clarify: NLTK develop branch is compatible with Python 3.2+ for more than a year. NLTK 3.0a4 ( http://www.nltk.org/nltk3-alpha/ ) is not released as NLTK 3.0 because of some pending API changes, not because of Python
125.
▲
by
kmike84
12y ago
But the article used a linear model to demonstrate the curse, and the model was overfit just with 3 dimensions. There is clearly something missing: for example, for text data it is not uncommon to have thousands or hundred thousands of dime
126.
▲
by
kmike84
13y ago
That's great that you use NLTK3 and Python 3.x and it works fine! There are no known Python 3.x incompatibilities. But if you find something then please report it. Issues that prevent a release are not related to Python 3: check https
127.
▲
by
kmike84
13y ago
Cool about psdash, the commit didn't exist when I started to write the comment :) Twisted and Scrapy are getting ported, and the community is moving forward. But this is not happening because of a miracle - people are making it happen.
128.
▲
by
kmike84
13y ago
Alternatives don't help when some other project depend on a package that is not fully ported. And this is a problem. It is still a bit harder to quickly build something using Python 3.x. Check trending Python repos for this month: * po
129.
▲
by
kmike84
13y ago
Just a quick note: NLTK supports Python 3 for more than year in the main github branch; there were several alpha releases that support Python 3, but no "stable" pypi release or a beta. There is no stable release because of unfinis
130.
▲
by
kmike84
13y ago
Portia uses https://github.com/scrapy/scrapely library for data extraction. It doesn't use XPaths for learning. There are some links to papers in scrapely README; scrapely is largely based on ideas from these pape
131.
▲
by
kmike84
13y ago
I had awful experience with Gandi several years ago: ssh was broken on a newly created server (wrong permissions for some ssh folder), and CPU was limited in a fun way: processes periodically stopped to do CPU work for 200-300ms (once each
132.
▲
by
kmike84
13y ago
Choosing a company to work for is not beyond one's control. It is possible to specifically look for a job that allows contributing to open-source in some way, or, in other words, to blacklist those who explicitly forbids that. I'v
133.
▲
by
kmike84
13y ago
I switched to Firefox from Chrome a couple of months ago, and liked it so far. The UI is fine, and the speed is also fine. But the MacOS+Firefox+Gmail bug ( https://bugzilla.mozilla.org/show_bug.cgi?id=341886 ) drives me nuts
134.
▲
by
kmike84
13y ago
In morphologically rich languages (like Russian) the most discriminative feature for detecting gender could be the word shape of last name or middle name, not the first name. So in many languages there is no way to have meaningful gender pr
135.
▲
by
kmike84
13y ago
Yes, that was the idea. The whole process is divided into 3 stages: reading, decoding and providing "user-facing API": - on "reading" stage PSD file is read and split into binary blobs (I think this part is done); - on &
136.
▲
by
kmike84
13y ago
Your point applies more to PSD.rb then - there was a lot of PSD readers in Python, C, C++ and C# for ages :) But it seems that reimplementing worked very well for them: API, language and a good timing really matters.
137.
▲
by
kmike84
13y ago
Thanks! Feel free to steal anything: test PSD files, etc. If you want to implement layer blending in PSD.rb (required if you want to be able to export layer groups as images) then check libpsd C library - I think it has the most sophisticat
138.
▲
by
kmike84
13y ago
Unfortunately I'm currently very busy with other projects, so I probably won't implement PSD.rb features myself anytime soon. I'm trying to provide feedback for psd-tools pull requests, merge them and release new psd-tools ve
139.
▲
by
kmike84
13y ago
> Unfortunately psd.py doesn't seem to exist. This is just plain wrong. There are many Python readers for PSD format: * https://github.com/kmike/psd-tools * https://github.com/jerem/psdpars
140.
▲
by
kmike84
13y ago
A shameless plug: you can give https://github.com/kmike/psd-tools a try. I've read PSD.rb docs and a bit of its code; the implementation is one of the best and complete I've seen (I've checked almost all
141.
▲
by
kmike84
13y ago
There is already a https://pypi.python.org/pypi/detox Python project that provides parallelized tox testing. It is nowhere near as popular as tox (python project) though.
142.
▲
by
kmike84
13y ago
You can do (1) and (2) using readonly_fields (see https://docs.djangoproject.com/en/dev/ref/contrib/admin/#dja... ). For (4) use raw_id_fields ( https://github.com/lincolnloop/dj
143.
▲
by
kmike84
13y ago
Are there non-ascii compatible encodings that are default in any OSes? With ascii-incompatible system/terminal encoding a lot of software will stop working. Strange things happen, but this looks like a theoretical issue, and ascii looks saf
144.
▲
by
kmike84
13y ago
You're right that __repr__ was not mentioned, my bad. I think `.encode(locale.getpreferredencoding())` is awful because this changes string encoding from run to run, and because locale.getpreferredencoding() could be different (and is diffe
145.
▲
by
kmike84
13y ago
In case of NLTK unicode_literals ("unicode by default") fixed a lot of bugs and made other bugs visible, so mileage may vary :) Could you give an example of cases where unicode_literals is a terrible idea? 3.2 is important for newcomer expe
146.
▲
by
kmike84
13y ago
Great writeup (and a cool metaclass workaround!) However, I think that "Drop 2.5, 3.1 and 3.2" advice is bad - dropping 2.5 and 3.1 is the way to go (hey, drop 2.5 even if you're not porting to 3.x), but dropping 3.2 is not necessary in mos
147.
▲
by
kmike84
14y ago
Is it possible to download all data and use it under some open license (like CC-BY)? I can't find data license terms. If no, then sorry, freebase is vastly superior IMHO - from user's point of view I don't see a point in a crowdsourced prop
148.
▲
by
kmike84
14y ago
Why do you think so?
149.
▲
by
kmike84
14y ago
1. Notebook RAM is often impossible to upgrade. 2. While a couple of hundred megabytes is usually a small portion of the total RAM, it could be a critical share of the free RAM, and this is what matters.
150.
▲
by
kmike84
14y ago
Added to the list, thanks!
More ›