Do they belong to you? Claim these comments.
sam
Is this you? Claim Profile »
6 months ago
in Using JAX-RS with Protocol Buffers for high-performance REST APIs on Java Rants6 months ago
in Using JAX-RS with Protocol Buffers for high-performance REST APIs on Java RantsSam
6 months ago
in Using JAX-RS with Protocol Buffers for high-performance REST APIs on Java RantsSam
[1] http://incubator.apache.org/thrift/download/
[2] http://mvnrepository.com/search.html?query=thrift
6 months ago
in Time Machine vs. ZFS + rsync on Java RantsSam
Reference: http://rna.urmc.rochester.edu/john/public/pages...
6 months ago
in Yuil is dead! 4hoursearch is now online. on Java RantsSam
7 months ago
in Track Subversion (SVN) changes with an RSS feed on Java RantsThanks,
Sam
7 months ago
in Agile database schema migration tool for Java on Java RantsI'm pretty sure that MySQL doesn't support DDL + transactions like PostgreSQL does. If it does, I will fix it but that is my understanding.
Sam
8 months ago
in Time Machine vs. ZFS + rsync on Java Rants8 months ago
in Time Machine vs. ZFS + rsync on Java Rants@ssp: I actually think it would be quite system to use this tool http://www.osxbook.com/software/fslogger/ to track filesystem changes which would allow the rsync solution to be just that much better. Looks like I'll need to put a nice UI on it as well.
8 months ago
in Parallels vs VMWare vs Bootcamp vs Codeweavers Crossover Office revisited on Java Rants9 months ago
in Parallels vs VMWare vs Bootcamp vs Codeweavers Crossover Office revisited on Java Rants10 months ago
in 2008 Olympic Medal Counts by Population on Java Rantshttp://sheet.zoho.com/public/spullara/olympic-m...
Ah, should have done a quick search before bothering. Fun exercise anyway:
http://www.stubbornmule.net/2008/08/olympics-by...
11 months ago
in Yuil is dead! 4hoursearch is now online. on Java RantsSearched for ‘porn’, clicked on page 10, bam, it breaks
http://www.4hoursearch.com/search?q=porn&p=10
Traceback (most recent call last):
File “/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py”, line 499, in __call__
handler.get(*groups)
File “/base/data/home/apps/yoolsearch/1.232/search.py”, line 40, in get
ysr = result['ysearchresponse']
TypeError: ‘NoneType’ object is unsubscriptable
My error checking is not "robust". That looks like I didn't get a response back from the urlfetch. Could have been Google App Engine or BOSS. I should check for that and put up the fail whale.
11 months ago
in Yuil is dead! 4hoursearch is now online. on Java RantsHey the pagination seems to not be working. It forgets the query string and doesn’t have a page as a parameter.
Other than that, good work!
Hi Jim, I wasn't able to reproduce this. It may be that there aren't enough results -- I am not handling that case well. Can you give me an example query where it doesn't work for you?
11 months ago
in Yuil is dead! 4hoursearch is now online. on Java RantsIt’s now working fine (: what was causing the error btw?
http://www.4hoursearch.com/search?q=mp3+download
resulted an error:
Traceback (most recent call last):
File “/base/python_lib/versions/1/google/appengine/ext/webapp/__init__.py”, line 499, in __call__
handler.get(*groups)
File “/base/data/home/apps/yoolsearch/1.216/search.py”, line 52, in get
template_values['image'] = image_response['resultset_images'][0]
KeyError: ‘resultset_images’
An underlying BOSS web service regressed temporarily, it has been corrected.
11 months ago
in Yuil is dead! 4hoursearch is now online. on Java RantsFor IRIs to URIs in Python (like http://www.4hoursearch.com/search?q=mémoires) see:
http://code.djangoproject.com/browser/django/trunk/django/utils/encoding.py
This isn't included in Google App Engine -- it has an older version of Django -- but I ported it over and it works great! Please test out the unicode support now.
11 months ago
in Yuil is dead! 4hoursearch is now online. on Java RantsThe functions django.utils.http.urlquote() and django.utils.http.urlquote_plus() are versions of Pythonâs standard urllib.quote() and urllib.quote_plus() that work with non-ASCII characters. (The data is converted to UTF-8 prior to encoding.)
That fails in the same way as it is a wrapper on quote_plus.
11 months ago
in Yuil is dead! 4hoursearch is now online. on Java Rants11 months ago
in Yuil is dead! 4hoursearch is now online. on Java RantsJust wondering. What’s up with the image next to the first returned result? The image next to the first search for my name is from some random other site and has no connection to the listing.
Sorry it didn't work well for you. The image is the #1 image search result for the same query. If you click on the image rather than the search result it will go through to the site that it was found on.
11 months ago
in Yuil is dead! 4hoursearch is now online. on Java Rants“The requested URL /src/4hoursearch-src.zip was not found on this server.”
<img src="http://www.javarants.com/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley"> </img>
-Russ
Ugh. Bad push, just saw it in the log, fixed.
11 months ago
in Yahoo! BOSS is easy — meet Yuil on Java RantsNice one. Very clever. I guess you could do a url specific BOSS image search per result link in order to get images as well. However, this could take time so you’d need to do it in async mode. On server side I am not sure how you’d do it in Python on AppEngine and on the client side you’d run into concurrent requests from the same domain problem. It would be cool though if it was a 1-1 copy of the interface.
It would be hard to make it a complete 1-for-1 copy because I have no idea where they come up with their images. What I would like is to grab an image from the page that I'm linking to. It would be better if I was doing my own crawl for that...
I have hear that the categories will be coming in the next versions of BOSS. Sam to my knowledge BOSS does not support search suggestions.
I'm using the regular Yahoo! Search Suggest API.
BTW you should use the ClickURL (as per TOS) for the links in the results when using BOSS.
Strangely, they are the same for the searches that I am doing. I expected the redirects. This might have something to do with the changes that were recently rolled out on Yahoo! SERPs that don't requite it.
Thanks,
Sam
1 year ago
in Better Javadoc results using SearchMonkey on Java Rants1 year ago
in Using Google App Engine to Extend Yahoo! Pipes on Java RantsNice article.
By the way, can’t you include simplejson using
“from django.utils import simplejson”?
You sure can. I didn't know that was in there. Thanks!
1 year ago
in Parallels vs VMWare vs Bootcamp vs Codeweavers Crossover Office revisited on Java Rants