This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"meta":{"code":200,"requestId":"5374d825498e68fa2b64a98e"},"notifications":[{"type":"notificationTray","item":{"unreadCount":0}}],"response":{"group":{"annotatedGroupName":{"text":"See all results for Dinner","entities":[{"indices":[0,26],"id":"dinner"}]},"results":[{"venue":{"id":"520e7fd0498e0323f4ac629e","name":"Taras Bulba","location":{"address":"357 W Broadway","crossStreet":"btwn Broom & Grand St","lat":40.72310115383119,"lng":-74.00317210291686,"distance":197,"postalCode":"10013","cc":"US","neighborhood":"SoHo","city":"New York","state":"NY","country":"United States","contextLine":"SoHo","formattedAddress":["357 W Broadway (btwn Broom & Grand St)","New York, NY 10013"]},"categories":[{"id":"52e928d0bcbc57f1066b7e96","name":"Ukrainian Restaurant","pluralName":"Ukrainian Restaurants","shortName":"Ukrainian","icon":{"prefix":"https:\/\/ss1.4sqi.net\/img\/categories_v2\/food\/default_","suffix":".png"},"primary":true}],"verified":true,"price":{"tier":2,"message":"Moderate","currency":"$"},"rating":7.7,"r |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| E/AndroidRuntime(18064): FATAL EXCEPTION: main | |
| E/AndroidRuntime(18064): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.joelapenna.foursquared/com.joelapenna.foursquared.BrowseListActivity}: java.lang.NullPointerException | |
| E/AndroidRuntime(18064): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2211) | |
| E/AndroidRuntime(18064): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261) | |
| E/AndroidRuntime(18064): at android.app.ActivityThread.access$600(ActivityThread.java:141) | |
| E/AndroidRuntime(18064): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256) | |
| E/AndroidRuntime(18064): at android.os.Handler.dispatchMessage(Handler.java:99) | |
| E/AndroidRuntime(18064): at android.os.Looper.loop(Looper.java:137) | |
| E/AndroidRuntime(18064): at android.app.ActivityThread.main(ActivityThread.java:5103) | |
| E/AndroidRuntime(18064): at java.lang.reflect.Method.invokeNative(Native Method) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I/ActivityManager( 525): Start proc com.joelapenna.foursquared for activity com.joelapenna.foursquared/.MainActivity: pid=29683 uid=10124 gids={50124, 3003, 1015, 1028} | |
| D/dalvikvm(29683): GC_CONCURRENT freed 299K, 4% free 8992K/9328K, paused 4ms+1ms, total 27ms | |
| D/dalvikvm(29683): GC_CONCURRENT freed 297K, 4% free 9136K/9472K, paused 3ms+1ms, total 15ms | |
| D/dalvikvm(29683): GC_CONCURRENT freed 403K, 5% free 9220K/9660K, paused 3ms+3ms, total 23ms | |
| D/dalvikvm(29683): GC_CONCURRENT freed 299K, 4% free 9422K/9760K, paused 6ms+2ms, total 46ms | |
| I/Google Maps Android API(29683): Google Play services client version: 4323000 | |
| I/Google Maps Android API(29683): Google Play services package version: 4325036 | |
| I/dalvikvm(29683): Could not find method android.provider.Telephony$Sms.getDefaultSmsPackage, referenced from method com.foursquare.core.k.ah.b | |
| W/dalvikvm(29683): VFY: unable to resolve static method 1603: Landroid/provider/Telephony$Sms;.getDefaultSmsPackage (Landroid/content/Context;)Ljava/lang/String; | |
| D/dalvikvm(29683) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"context":{"relatedNeighborhoods":[],"geoBounds":{"box":{"northEast":{"lat":37.929823999999996,"lng":-122.28178},"southWest":{"lat":37.639829999999996,"lng":-123.173825},"geoId":72057594043319895}},"apiRequestParams":{"browseGroupLimit":["25"],"csid":["17"],"geocodell":["37.774930,-122.419420"],"m":["batman"],"v":["20140511"],"oauth_token":["HXN1CHNHLURZUW51L1SE1QVMYQKYFPPHUCLYAEVY44GT5NWK"],"near":["San Francisco, CA"]}},"orderedIntents":[{"returnedSuggestions":[{"facets":[],"activeFilters":{"isRefinements":[],"hasRefinements":[],"categoryRefinements":[],"priceRefinements":[],"featureRefinements":[],"profileRefinements":[],"socialRefinements":[]},"totalHits":0,"filterSections":[],"isFavorite":true,"isPersonalized":false},{"facets":[],"activeFilters":{"intent":{"rawValue":"drinks"},"subintent":{"rawValue":"drinks-mixology"},"isRefinements":[],"hasRefinements":[],"categoryRefinements":[],"priceRefinements":[],"featureRefinements":[],"profileRefinements":[],"socialRefinements":[]},"totalHits":0,"filterSections |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"context":{"relatedNeighborhoods":[],"geoBounds":{"box":{"northEast":{"lat":37.929823999999996,"lng":-122.28178},"southWest":{"lat":37.639829999999996,"lng":-123.173825},"geoId":72057594043319895}},"apiRequestParams":{"browseGroupLimit":["25"],"csid":["17"],"geocodell":["37.774930,-122.419420"],"m":["batman"],"v":["20140511"],"oauth_token":["HXN1CHNHLURZUW51L1SE1QVMYQKYFPPHUCLYAEVY44GT5NWK"],"near":["San Francisco, CA"]}},"orderedIntents":[{"returnedSuggestions":[{"facets":[],"activeFilters":{"isRefinements":[],"hasRefinements":[],"categoryRefinements":[],"priceRefinements":[],"featureRefinements":[],"profileRefinements":[],"socialRefinements":[]},"totalHits":0,"filterSections":[],"isFavorite":true,"isPersonalized":false},{"facets":[],"activeFilters":{"intent":{"rawValue":"drinks"},"subintent":{"rawValue":"drinks-mixology"},"isRefinements":[],"hasRefinements":[],"categoryRefinements":[],"priceRefinements":[],"featureRefinements":[],"profileRefinements":[],"socialRefinements":[]},"totalHits":0,"filterSections |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [2014-05-05 18:48:51,645] [Hashed wheel timer #1] WARN c.f.n.s.ServiceDiscovery - shouldRetry (unknown Throw(Throwable))? hfileservice, venue_taste_model.0; | |
| com.twitter.finagle.CancelledConnectionException: null | |
| at com.twitter.finagle.NoStacktrace(Unknown Source) ~[na:na] | |
| [2014-05-05 18:48:56,810] [ProducerSendThread-793478386] ERROR k.producer.async.ProducerSendThread - Error in handling batch of 2 events | |
| java.util.NoSuchElementException: key not found: 28 | |
| at scala.collection.MapLike$class.default(MapLike.scala:228) ~[org.scala-lang-scala-library-2.10.3.jar:na] | |
| at scala.collection.AbstractMap.default(Map.scala:58) ~[org.scala-lang-scala-library-2.10.3.jar:na] | |
| at scala.collection.MapLike$class.apply(MapLike.scala:141) ~[org.scala-lang-scala-library-2.10.3.jar:na] | |
| at scala.collection.AbstractMap.apply(Map.scala:58) ~[org.scala-lang-scala-library-2.10.3.jar:na] | |
| at com.foursquare.common.instrumentation.Tracer$$anonfun$8.apply(Tracer.scala:166) ~[classes/:na] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| blee@ezeq10 foursquare.web $ ./fs scrub | |
| Cleaning | |
| Traceback (most recent call last): | |
| File "/usr/lib64/python2.6/runpy.py", line 122, in _run_module_as_main | |
| "__main__", fname, loader, pkg_name) | |
| File "/usr/lib64/python2.6/runpy.py", line 34, in _run_code | |
| exec code in run_globals | |
| File "/home/blee/filters/foursquare.web/.pants.bootstrap/pex/pants-current.pex/__main__.py", line 24, in <module> | |
| File "/home/blee/filters/foursquare.web/.pants.bootstrap/pex/pants-current.pex/.bootstrap/_twitter_common_python/pex_bootstrapper.py", line 67, in bootstrap_pex | |
| File "/home/blee/filters/foursquare.web/.pants.bootstrap/pex/pants-current.pex/.bootstrap/_twitter_common_python/pex.py", line 201, in execute |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| errorDetail: "Server error: com.foursquare.common.exception.RemoteException: org.apache.thrift.TException on fsao37.prod.foursquare.com: Error reading field 0 in structure browseSuggestions_result com.foursquare.venue.rec.service.gen.RecommendationService$RawbrowseSuggestions_result.read(recservice.scala:12049) org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) com.foursquare.venue.rec.service.gen.RecommendationService$Client.recv_browseSuggestions(recservice.scala:4701) com.foursquare.venue.rec.service.gen.RecommendationService$ServiceToClient$$anonfun$browseSuggestions$1.apply(recservice.scala:5231) com.foursquare.venue.rec.service.gen.RecommendationService$ServiceToClient$$anonfun$browseSuggestions$1.apply(recservice.scala:5226) com.twitter.util.Future$$anonfun$flatMap$1.apply(Future.scala:626) com.twitter.util.Future$$anonfun$flatMap$1.apply(Future.scala:625) com.twitter.util.Promise$Transformer.liftedTree1$1(Promise.scala:67) com.twitter.util.Promise$Transformer.k(Promise.scala:67) [--- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import com.foursquare.ids.gen.IdsTypedefs._ | |
| import com.foursquare.record.RogueImplicits._ | |
| import com.foursquare.photo.gen.ThriftPhoto | |
| import org.apache.thrift.{TBase, TBaseHelper, TDeserializer, TException, TFieldIdEnum, TSerializer} | |
| val compactProto = new TCompactProtocol.Factory() | |
| val compactSerializer = new TSerializer(compactProto) | |
| val deserializer = new TDeserializer(compactProto) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def testPhotoId(id: ObjectId) = { | |
| val photoId = PhotoId(id) | |
| val q = Query(ThriftPhoto).where(_.id eqs photoId) | |
| val thriftPhotos: List[ThriftPhoto] = services.db.fetch(q) | |
| val tp = thriftPhotos.head | |
| val bytes = compactSerializer.serialize(tp) | |
| val raw = ThriftPhoto.createRawRecord | |
| deserializer.deserialize(raw, bytes) | |
| raw | |
| } |