<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tommy Chheng - Shortest Path Programming - Latest Comments</title><link>http://tommychheng.disqus.com/</link><description>Tips for programmers.</description><atom:link href="https://tommychheng.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Sat, 26 Mar 2011 09:30:12 -0000</lastBuildDate><item><title>Re: Paypal Adaptive Ruby Gem Released</title><link>http://tommy.chheng.com/index.php/2009/12/paypal-adaptive-ruby-gem-released/#comment-172226161</link><description>&lt;p&gt;nevermind that, i shouldn't be coding drunk :)&lt;/p&gt;&lt;p&gt;thanks for an awesome gem.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eladmeidar</dc:creator><pubDate>Sat, 26 Mar 2011 09:30:12 -0000</pubDate></item><item><title>Re: Paypal Adaptive Ruby Gem Released</title><link>http://tommy.chheng.com/index.php/2009/12/paypal-adaptive-ruby-gem-released/#comment-172205496</link><description>&lt;p&gt;turns out the problem was an authentication filter was blocking the post-back from Paypal.&lt;br&gt;Now i am banging my head with trying to understand the incoming parameters.&lt;br&gt;when i create the inital payment request, i keep a record with the payKey (something i need to find back and activate when the payment callback is processes) but it seems that the incoming parameters (rack.env) don't contain any reference to the initial request (payKey is different).&lt;/p&gt;&lt;p&gt;ideas on how am i supposed to link between the incoming IPN to my pre-existing payment record?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eladmeidar</dc:creator><pubDate>Sat, 26 Mar 2011 07:58:46 -0000</pubDate></item><item><title>Re: Paypal Adaptive Ruby Gem Released</title><link>http://tommy.chheng.com/index.php/2009/12/paypal-adaptive-ruby-gem-released/#comment-169066907</link><description>&lt;p&gt;when you are doing the send back:        ipn.send_back(env['rack.request.form_vars'])&lt;br&gt;check the env['rack.request.form_vars'] value before you send it out&lt;/p&gt;&lt;p&gt;Make sure that's not garage.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tommychheng</dc:creator><pubDate>Mon, 21 Mar 2011 12:59:40 -0000</pubDate></item><item><title>Re: Paypal Adaptive Ruby Gem Released</title><link>http://tommy.chheng.com/index.php/2009/12/paypal-adaptive-ruby-gem-released/#comment-168241411</link><description>&lt;p&gt;Hi There,&lt;/p&gt;&lt;p&gt;i tried your example as it is, but when i use your metal template the "ipn.verified?" call always returns false (send_back sets it according your source). anything special i should be paying attention to?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eladmeidar</dc:creator><pubDate>Sat, 19 Mar 2011 13:40:58 -0000</pubDate></item><item><title>Re: Paypal Adaptive Ruby Gem Released</title><link>http://tommy.chheng.com/index.php/2009/12/paypal-adaptive-ruby-gem-released/#comment-148768270</link><description>&lt;p&gt;Hi, you can also use a Rails action as well. See &lt;a href="https://github.com/tc/paypal_adaptive/issues/closed#issue/1" rel="nofollow noopener" target="_blank" title="https://github.com/tc/paypal_adaptive/issues/closed#issue/1"&gt;https://github.com/tc/paypa...&lt;/a&gt; for an example.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tommychheng</dc:creator><pubDate>Wed, 16 Feb 2011 12:01:51 -0000</pubDate></item><item><title>Re: Paypal Adaptive Ruby Gem Released</title><link>http://tommy.chheng.com/index.php/2009/12/paypal-adaptive-ruby-gem-released/#comment-146841581</link><description>&lt;p&gt;Nice little gem!  I'm having trouble figuring out how to use the IPN.  I'm not sure how to use the metal template.  I should make an action to handle it, right?  I made an "ipn" method in one of my controllers and set that to the ipnNotificationUrl, but after that, I haven't the foggiest idea what to do next.  I'd appreciate any help!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">wulftone</dc:creator><pubDate>Mon, 14 Feb 2011 21:10:05 -0000</pubDate></item><item><title>Re: RMongo: Accessing MongoDB in R</title><link>http://tommy.chheng.com/index.php/2010/11/rmongo-accessing-mongodb-in-r/#comment-143056909</link><description>&lt;p&gt;see &lt;a href="https://github.com/quid/RMongo/issues/closed#issue/4" rel="nofollow noopener" target="_blank" title="https://github.com/quid/RMongo/issues/closed#issue/4"&gt;https://github.com/quid/RMo...&lt;/a&gt; for resolution&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tommychheng</dc:creator><pubDate>Tue, 08 Feb 2011 19:18:38 -0000</pubDate></item><item><title>Re: RMongo: Accessing MongoDB in R</title><link>http://tommy.chheng.com/index.php/2010/11/rmongo-accessing-mongodb-in-r/#comment-140590387</link><description>&lt;p&gt;There seems to be some bug or odd behaviour when trying to use mongodb with RMongo version 0.0.18.&lt;/p&gt;&lt;p&gt;Connection goes normally:&lt;br&gt;mongo.con&amp;lt;-mongoDbConnect("tickets",host="localhost",port=27017)&lt;/p&gt;&lt;p&gt;But any attempt to use the connection results in Java IO exception:&lt;br&gt;dbShowCollections(mongo.con)&lt;/p&gt;&lt;p&gt;Feb 4, 2011 6:17:10 PM com.mongodb.DBTCPConnector$MyPort error&lt;br&gt;SEVERE: MyPort.error called&lt;br&gt;java.io.IOException: couldn't connect to [&lt;a href="http://machine.name/127.0.1.1:27017" rel="nofollow noopener" target="_blank" title="machine.name/127.0.1.1:27017"&gt;machine.name/127.0.1.1:27017&lt;/a&gt;] bc:java.net.ConnectException: Connection refused&lt;br&gt;        at com.mongodb.DBPort._open(&lt;a href="http://DBPort.java" rel="nofollow noopener" target="_blank" title="DBPort.java"&gt;DBPort.java&lt;/a&gt;:172)&lt;br&gt;        at com.mongodb.DBPort.go(&lt;a href="http://DBPort.java" rel="nofollow noopener" target="_blank" title="DBPort.java"&gt;DBPort.java&lt;/a&gt;:79)&lt;br&gt;        at &lt;a href="http://com.mongodb.DBPort.call" rel="nofollow noopener" target="_blank" title="com.mongodb.DBPort.call"&gt;com.mongodb.DBPort.call&lt;/a&gt;(&lt;a href="http://DBPort.java" rel="nofollow noopener" target="_blank" title="DBPort.java"&gt;DBPort.java&lt;/a&gt;:55)&lt;br&gt;        at &lt;a href="http://com.mongodb.DBTCPConnector.call" rel="nofollow noopener" target="_blank" title="com.mongodb.DBTCPConnector.call"&gt;com.mongodb.DBTCPConnector....&lt;/a&gt;(&lt;a href="http://DBTCPConnector.java" rel="nofollow noopener" target="_blank" title="DBTCPConnector.java"&gt;DBTCPConnector.java&lt;/a&gt;:201)&lt;br&gt;        at com.mongodb.DBApiLayer$MyCollection.__find(&lt;a href="http://DBApiLayer.java" rel="nofollow noopener" target="_blank" title="DBApiLayer.java"&gt;DBApiLayer.java&lt;/a&gt;:256)&lt;br&gt;        at com.mongodb.DB.getCollectionNames(&lt;a href="http://DB.java" rel="nofollow noopener" target="_blank" title="DB.java"&gt;DB.java&lt;/a&gt;:200)&lt;br&gt;        at com.quid.RMongo.dbShowCollections(RMongo.scala:24)&lt;/p&gt;&lt;p&gt;Any help is appreciated.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sami</dc:creator><pubDate>Fri, 04 Feb 2011 11:18:13 -0000</pubDate></item><item><title>Re: Installing CouchDB on Ubuntu: Problems and fixes</title><link>http://tommy.chheng.com/index.php/2009/07/installing-couchdb-on-ubuntu-problems-and-fixes/#comment-134367303</link><description>&lt;p&gt;Great post, Tommy! You've saved a few of us from dependency hell on this one.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Devinkye3</dc:creator><pubDate>Tue, 25 Jan 2011 12:22:23 -0000</pubDate></item><item><title>Re: Developing OpenCV Applications with Eclipse on Windows</title><link>http://tommy.chheng.com/index.php/2009/05/opencv-with-eclipse-on-windows/#comment-132322273</link><description>&lt;p&gt;Thanks!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tyler</dc:creator><pubDate>Fri, 21 Jan 2011 01:31:28 -0000</pubDate></item><item><title>Re: Indexing XML files using DIH in Solr 1.4</title><link>http://tommy.chheng.com/index.php/2010/02/indexing-xml-files-using-dih-in-solr-1-4/#comment-128810733</link><description>&lt;p&gt;Ok i solved the problem thanks.&lt;/p&gt;&lt;p&gt;There is a mistake at your post for "xml-data-config.xml" file you wrote  forEach="/awardslist/award" but in xml it is &amp;lt;awardlist&amp;gt; (not awardslist : without 's')&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mehmet</dc:creator><pubDate>Thu, 13 Jan 2011 16:39:34 -0000</pubDate></item><item><title>Re: Indexing XML files using DIH in Solr 1.4</title><link>http://tommy.chheng.com/index.php/2010/02/indexing-xml-files-using-dih-in-solr-1-4/#comment-128619040</link><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;i take an error about requestHandler : missing mandatory attribute 'class'&lt;/p&gt;&lt;p&gt;i think in solrconfig file a reuestHandler need a class attribute. How can i handle this problem?&lt;/p&gt;&lt;p&gt;Mehmet&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Mehmet</dc:creator><pubDate>Thu, 13 Jan 2011 09:22:02 -0000</pubDate></item><item><title>Re: How to run Background Processes using Resque/Redis in a Ruby on Rails App</title><link>http://tommy.chheng.com/index.php/2010/10/how-to-run-background-processes-using-resqueredis-in-a-ruby-on-rails-app/#comment-106276463</link><description>&lt;p&gt;Hi Tommy, your answer drive me into right direction, copying and pasting the file I've misssed the spaces and the redis.yml had a wrong format (my stupid mistake...):&lt;/p&gt;&lt;p&gt;I have simply reformat from:&lt;/p&gt;&lt;p&gt;defaults: &amp;amp;defaults&lt;br&gt;host: localhost&lt;br&gt;port: 6379&lt;br&gt;development:&lt;br&gt;&amp;lt;&amp;lt;: *defaults&lt;br&gt;test:&lt;br&gt;&amp;lt;&amp;lt;: *defaults&lt;br&gt;staging:&lt;br&gt;&amp;lt;&amp;lt;: *defaults&lt;br&gt;production:&lt;br&gt;&amp;lt;&amp;lt;: *defaults&lt;/p&gt;&lt;p&gt;to "SPACE" stands form space character:&lt;/p&gt;&lt;p&gt;defaults: &amp;amp;defaults&lt;br&gt;"SPACE"host: localhost&lt;br&gt;"SPACE"port: 6379&lt;br&gt;development:&lt;br&gt;"SPACE"&amp;lt;&amp;lt;: *defaults&lt;br&gt;test:&lt;br&gt;"SPACE"&amp;lt;&amp;lt;: *defaults&lt;br&gt;staging:&lt;br&gt;"SPACE"&amp;lt;&amp;lt;: *defaults&lt;br&gt;production:&lt;br&gt;"SPACE"&amp;lt;&amp;lt;: *defaults&lt;/p&gt;&lt;p&gt;Now it works, thank you very much !&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tex</dc:creator><pubDate>Fri, 03 Dec 2010 04:36:06 -0000</pubDate></item><item><title>Re: How to run Background Processes using Resque/Redis in a Ruby on Rails App</title><link>http://tommy.chheng.com/index.php/2010/10/how-to-run-background-processes-using-resqueredis-in-a-ruby-on-rails-app/#comment-106046174</link><description>&lt;p&gt;Did you create a redis.yml file?&lt;/p&gt;&lt;p&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tommychheng</dc:creator><pubDate>Thu, 02 Dec 2010 14:06:20 -0000</pubDate></item><item><title>Re: How to run Background Processes using Resque/Redis in a Ruby on Rails App</title><link>http://tommy.chheng.com/index.php/2010/10/how-to-run-background-processes-using-resqueredis-in-a-ruby-on-rails-app/#comment-105816364</link><description>&lt;p&gt;Wonderful post Tommy, many thanks !&lt;/p&gt;&lt;p&gt;I've followed your instructions but when I run&lt;/p&gt;&lt;p&gt;COUNT=5 QUEUE=* rake resque:workers&lt;/p&gt;&lt;p&gt;it fails:&lt;/p&gt;&lt;p&gt;(in /home/tex/rails-test/resque-test)&lt;br&gt;(in /home/tex/rails-test/resque-test)&lt;br&gt;(in /home/tex/rails-test/resque-test)&lt;br&gt;(in /home/tex/rails-test/resque-test)&lt;br&gt;(in /home/tex/rails-test/resque-test)&lt;br&gt;(in /home/tex/rails-test/resque-test)&lt;br&gt;rake aborted!&lt;br&gt;You have a nil object when you didn't expect it!&lt;br&gt;You might have expected an instance of Array.&lt;br&gt;The error occurred while evaluating nil.[]&lt;/p&gt;&lt;p&gt;(See full trace by running task with --trace)&lt;br&gt;rake aborted!&lt;br&gt;You have a nil object when you didn't expect it!&lt;br&gt;You might have expected an instance of Array.&lt;br&gt;The error occurred while evaluating nil.[]&lt;/p&gt;&lt;p&gt;(See full trace by running task with --trace)&lt;br&gt;rake aborted!&lt;br&gt;You have a nil object when you didn't expect it!&lt;br&gt;You might have expected an instance of Array.&lt;br&gt;The error occurred while evaluating nil.[]&lt;/p&gt;&lt;p&gt;(See full trace by running task with --trace)&lt;br&gt;rake aborted!&lt;br&gt;You have a nil object when you didn't expect it!&lt;br&gt;You might have expected an instance of Array.&lt;br&gt;The error occurred while evaluating nil.[]&lt;/p&gt;&lt;p&gt;(See full trace by running task with --trace)&lt;br&gt;rake aborted!&lt;br&gt;You have a nil object when you didn't expect it!&lt;br&gt;You might have expected an instance of Array.&lt;br&gt;The error occurred while evaluating nil.[]&lt;/p&gt;&lt;p&gt;(See full trace by running task with --trace)&lt;/p&gt;&lt;p&gt;running with --trace at the end of command the result is the same... (no stack trace at all..)&lt;/p&gt;&lt;p&gt;this happens under:&lt;/p&gt;&lt;p&gt;Linux Ubuntu 10.04&lt;br&gt;rvm 1.0.21&lt;br&gt;ruby 1.9.2p0&lt;br&gt;rails 3.0.3&lt;br&gt;resque 1.10.0&lt;/p&gt;&lt;p&gt;Any idea ?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tex</dc:creator><pubDate>Thu, 02 Dec 2010 03:35:07 -0000</pubDate></item><item><title>Re: RMongo: Accessing MongoDB in R</title><link>http://tommy.chheng.com/index.php/2010/11/rmongo-accessing-mongodb-in-r/#comment-95155912</link><description>&lt;p&gt;Very cool, I added the driver to the MongoDB Drivers page:&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.mongodb.org/display/DOCS/Drivers" rel="nofollow noopener" target="_blank" title="http://www.mongodb.org/display/DOCS/Drivers"&gt;http://www.mongodb.org/disp...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;Email me (meghan@10gen.com) - would love to send you some swag as a thank you for your contribution!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">meghangill</dc:creator><pubDate>Mon, 08 Nov 2010 15:21:06 -0000</pubDate></item><item><title>Re: Installing CouchDB on Ubuntu: Problems and fixes</title><link>http://tommy.chheng.com/index.php/2009/07/installing-couchdb-on-ubuntu-problems-and-fixes/#comment-94324141</link><description>&lt;p&gt;thanks for the update&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tommychheng</dc:creator><pubDate>Fri, 05 Nov 2010 17:51:22 -0000</pubDate></item><item><title>Re: How to run Background Processes using Resque/Redis in a Ruby on Rails App</title><link>http://tommy.chheng.com/index.php/2010/10/how-to-run-background-processes-using-resqueredis-in-a-ruby-on-rails-app/#comment-93910858</link><description>&lt;p&gt;In the scenario you described, I would install redis locally and then configure the development and test environment blocks of the redis.yml to localhost and the staging/production to your RedisToGo host. &lt;br&gt;&lt;br&gt;This way, you segment your environments and resque will only work from the specified environment. On your production server, be sure to set your environment variable: RAILS_ENV=production&lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tommychheng</dc:creator><pubDate>Thu, 04 Nov 2010 14:41:48 -0000</pubDate></item><item><title>Re: How to run Background Processes using Resque/Redis in a Ruby on Rails App</title><link>http://tommy.chheng.com/index.php/2010/10/how-to-run-background-processes-using-resqueredis-in-a-ruby-on-rails-app/#comment-93592053</link><description>&lt;p&gt;Let's assume we have a shared Redis platform (e.g. RedisToGo).  Meaning the Rails development, test, staging, and production all connect with the same redis-server.  Is Resque smart enough to know to only process jobs that originate from that environment?  &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Ryan Sobol</dc:creator><pubDate>Wed, 03 Nov 2010 21:44:10 -0000</pubDate></item><item><title>Re: Indexing XML files using DIH in Solr 1.4</title><link>http://tommy.chheng.com/index.php/2010/02/indexing-xml-files-using-dih-in-solr-1-4/#comment-83815957</link><description>&lt;p&gt;I would recommend the full path as i'm not sure what the working path is(solr.home?)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">tommychheng</dc:creator><pubDate>Mon, 04 Oct 2010 11:44:18 -0000</pubDate></item><item><title>Re: Developing OpenCV Applications with Eclipse on Windows</title><link>http://tommy.chheng.com/index.php/2009/05/opencv-with-eclipse-on-windows/#comment-80563928</link><description>&lt;p&gt;It works now but when double click the .exe file from outside , but eclipse doesn't do that automatically&lt;/p&gt;&lt;p&gt;any idea? :-/&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">sara</dc:creator><pubDate>Fri, 24 Sep 2010 11:09:45 -0000</pubDate></item><item><title>Re: Developing OpenCV Applications with Eclipse on Windows</title><link>http://tommy.chheng.com/index.php/2009/05/opencv-with-eclipse-on-windows/#comment-80557631</link><description>&lt;p&gt;hi , &lt;br&gt;First : thanks for the effort , it helped&lt;br&gt;Second : I've followed these instructions and tried the code &lt;br&gt;it compiles Successfully "Build complete for project test"&lt;br&gt;but nothing happen when running the project :-/&lt;br&gt;I tried to printf("in the main") in the first line in the main but it never display&lt;/p&gt;&lt;p&gt;any help please?&lt;/p&gt;&lt;p&gt;Regards &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Sara </dc:creator><pubDate>Fri, 24 Sep 2010 10:40:14 -0000</pubDate></item><item><title>Re: Indexing XML files using DIH in Solr 1.4</title><link>http://tommy.chheng.com/index.php/2010/02/indexing-xml-files-using-dih-in-solr-1-4/#comment-77875838</link><description>&lt;p&gt;Thanks for this post! Does the XPath parser in the config file require full paths to the data? I am on windows and can't seem to make this work correctly.&lt;/p&gt;&lt;p&gt;Adam&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Estrada Adam</dc:creator><pubDate>Wed, 15 Sep 2010 17:25:50 -0000</pubDate></item><item><title>Re: OS Process Timed out CouchDB error and fix</title><link>http://tommy.chheng.com/index.php/2009/07/os-process-timed-out-couchdb-error-and-fix/#comment-72942374</link><description>&lt;p&gt;*** SERVICE NAME:() 2007-08-24 15:41:06.744&lt;/p&gt;&lt;p&gt;*** SESSION ID:(661.1) 2007-08-24 15:41:06.744&lt;/p&gt;&lt;p&gt;WARNING:Oracle process running out of OS kernel I/O resources&lt;/p&gt;&lt;p&gt;*** 2007-08-24 15:41:23.468&lt;/p&gt;&lt;p&gt;error 27061 detected in background process&lt;/p&gt;&lt;p&gt;ORA-27061: waiting for async I/Os failed&lt;/p&gt;&lt;p&gt;IBM AIX RISC System/6000 Error: 22: Invalid argument &lt;br&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">best registry cleaner</dc:creator><pubDate>Sun, 29 Aug 2010 04:04:31 -0000</pubDate></item><item><title>Re: Developing OpenCV Applications with Eclipse on Windows</title><link>http://tommy.chheng.com/index.php/2009/05/opencv-with-eclipse-on-windows/#comment-69402602</link><description>&lt;p&gt;Hi. I'm using Visual C++ 6.0 to compile the code. &lt;br&gt;I keep getting this error: &lt;br&gt;fatal error LNK1104: cannot open file "Debug/CV prac11.exe"&lt;/p&gt;&lt;p&gt;Could you help please?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Uni85 99</dc:creator><pubDate>Tue, 17 Aug 2010 15:50:47 -0000</pubDate></item></channel></rss>