This commit is contained in:
Kenneth Reitz
2012-02-21 00:56:19 -05:00
commit 166c5a97fe
23978 changed files with 23978 additions and 0 deletions
@@ -0,0 +1 @@
[{"user_id": 274, "stars": [], "topic_id": 3663, "date_created": 1297353803.8499401, "message": "https://github.com/fyskij/minigen#readme", "group_id": 109, "id": 70848}]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 475, "stars": [], "topic_id": 1718, "date_created": 1296843089.9468479, "message": "Why no topics here? Ruby is still cool. Anyone have any new favorite gems lately? Mine is omniauth right now...", "group_id": 109, "id": 44928}, {"user_id": 230, "stars": [], "topic_id": 1718, "date_created": 1296847826.9706321, "message": "Ruby's my glue, and the one I reach for when I've got a quick project or script that'd be a snap in a dynamic language.", "group_id": 109, "id": 45018}, {"user_id": 230, "stars": [], "topic_id": 1718, "date_created": 1296847891.340476, "message": "After growing / managing a few large software projects written in it, I'm a bit gun-shy. But love it for simple stuff.", "group_id": 109, "id": 45021}, {"user_id": 12, "stars": [], "topic_id": 1718, "date_created": 1296850836.1285169, "message": "@fyskij I will", "group_id": 109, "id": 45059}, {"user_id": 274, "stars": [], "topic_id": 1718, "date_created": 1296850484.374543, "message": "hey I'm bored! maybe I'll write an API wrapper for convore", "group_id": 109, "id": 45051}, {"user_id": 274, "stars": [], "topic_id": 1718, "date_created": 1296850529.390449, "message": "someone wants join?", "group_id": 109, "id": 45052}, {"user_id": 274, "stars": [], "topic_id": 1718, "date_created": 1296850968.3556621, "message": "@xyentific we want to create a new topic about it?", "group_id": 109, "id": 45065}, {"user_id": 12, "stars": [], "topic_id": 1718, "date_created": 1296851013.8017011, "message": "@fyskij yeah that sounds good", "group_id": 109, "id": 45071}, {"user_id": 274, "stars": [], "topic_id": 1718, "date_created": 1296851072.1825659, "message": "@xyentific you like the name \"convorer?", "group_id": 109, "id": 45079}, {"user_id": 12, "stars": [], "topic_id": 1718, "date_created": 1296851104.5043049, "message": "@fyskij yes, hehe", "group_id": 109, "id": 45080}, {"user_id": 274, "stars": [], "topic_id": 1718, "date_created": 1296851138.8385489, "message": "@xyentific man join convorers!", "group_id": 109, "id": 45084}, {"user_id": 2276, "stars": [], "topic_id": 1718, "date_created": 1297328546.593524, "message": "Regarding new favorite gems, I'd say testbot is one of mine: https://github.com/joakimk/testbot", "group_id": 109, "id": 67618}]
@@ -0,0 +1 @@
[{"user_id": 4941, "stars": [], "topic_id": 36489, "date_created": 1306180265.160728, "message": "I think convore is a great tool for conferences so I created a group for EuRuKo: https://convore.com/euruko/ Feel free to join.", "group_id": 109, "id": 1156427}]
@@ -0,0 +1 @@
[{"user_id": 6140, "stars": [], "topic_id": 4888, "date_created": 1297610079.8035331, "message": "I actually like using append_features directly, but for some reason everybody uses included, even if overriding append_features would make sense.", "group_id": 109, "id": 91404}, {"user_id": 8595, "stars": [], "topic_id": 4888, "date_created": 1297611231.2143979, "message": "I always forget about append_features, which is the only reason I stick to included", "group_id": 109, "id": 91456}, {"user_id": 8891, "stars": [], "topic_id": 4888, "date_created": 1297622757.793843, "message": "According to the docs, `include` just calls `append_features` for each parameter (in reverse). Doesn't seem like there's anything to gain by favoring the less-common `append_features` directly. Am I missing something?", "group_id": 109, "id": 92808}, {"user_id": 8466, "stars": [], "topic_id": 4888, "date_created": 1297624438.7894211, "message": "`include` calls trigger `included?`", "group_id": 109, "id": 92887}, {"user_id": 6140, "stars": [], "topic_id": 4888, "date_created": 1297634471.993943, "message": "now some fancy lib might hook into included somewhere. but it should better be overriding append_features instead.", "group_id": 109, "id": 94096}, {"user_id": 1516, "stars": [], "topic_id": 4888, "date_created": 1297634844.161195, "message": "@rkh why is it \"better\" to override append_features?", "group_id": 109, "id": 94127}, {"user_id": 6140, "stars": [], "topic_id": 4888, "date_created": 1297634424.1023729, "message": "the letter is much cleaner, avoiding to circumvent the private method issue, but skips the included hook.", "group_id": 109, "id": 94090}, {"user_id": 6140, "stars": [], "topic_id": 4888, "date_created": 1297634386.1247389, "message": "@coreyward include is private, which leads to the pattern `module Extension; Base.send(:include, self); ...; end`, which can also be expressed by `module Extension; append_features Base; ...; end`", "group_id": 109, "id": 94085}, {"user_id": 6140, "stars": [], "topic_id": 4888, "date_created": 1297634447.1048441, "message": "which should generally be ok, since it's your module.", "group_id": 109, "id": 94094}, {"user_id": 6140, "stars": [], "topic_id": 4888, "date_created": 1297669084.2468629, "message": "@judofyr not always, but in my opinion it's better for stuff like `extend ClassMethods`, as you change how inclusions works rather than placing that logic in a hook maybe triggered after inclusion. also, you cannot be sure your included will be called, as ppl constantly forget to call super in included. so, if you want to change how inclusion works, define append_features, imo.", "group_id": 109, "id": 96865}]
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
[]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 4374, "stars": [], "topic_id": 6376, "date_created": 1297866413.2073951, "message": "How do you guys benchmark your network-based applications? I'm hoping to find something nice and clean. I hate the idea of having scripts all over the place.", "group_id": 109, "id": 120064}, {"user_id": 4374, "stars": [], "topic_id": 6376, "date_created": 1297868247.2196469, "message": "Great resource, thanks!", "group_id": 109, "id": 120448}, {"user_id": 8081, "stars": [{"date_created": 1297868724.1555059, "user_id": 8617}, {"date_created": 1297873815.8683591, "user_id": 5928}], "topic_id": 6376, "date_created": 1297867610.4367061, "message": "@keen http://www.igvita.com/2008/09/30/load-testing-with-log-replay/", "group_id": 109, "id": 120303}]
@@ -0,0 +1 @@
[{"user_id": 8539, "stars": [], "topic_id": 9028, "date_created": 1298626973.5837541, "message": "I get this question a lot...which is the best book / tutorial for starting ruby ?", "group_id": 109, "id": 206846}, {"user_id": 10423, "stars": [{"date_created": 1299061886.3578529, "user_id": 17594}], "topic_id": 9028, "date_created": 1298630995.4775009, "message": "I have Programming Ruby 1.9 an think its the best one to start ruby. http://pragprog.com/titles/ruby3/programming-ruby-1-9", "group_id": 109, "id": 207099}, {"user_id": 8617, "stars": [], "topic_id": 9028, "date_created": 1298632958.0525141, "message": "however I bought mine from amazon for $30 and it came with an insert code for the ebook for free", "group_id": 109, "id": 207141}, {"user_id": 8617, "stars": [], "topic_id": 9028, "date_created": 1298632916.1256931, "message": "When I asked in the irc chatroom a couple days ago, they recommended \"The Well Grounded Rubyist\" http://www.manning.com/black2/", "group_id": 109, "id": 207140}, {"user_id": 8224, "stars": [], "topic_id": 9028, "date_created": 1298635018.7086699, "message": "+1 For \"The Well Grounded Rubyist\"", "group_id": 109, "id": 207272}, {"user_id": 3054, "stars": [], "topic_id": 9028, "date_created": 1298635345.8705139, "message": "Also take a look at Why's (Poignant) Guide to Ruby - http://mislav.uniqpath.com/poignant-guide/", "group_id": 109, "id": 207314}, {"user_id": 3054, "stars": [], "topic_id": 9028, "date_created": 1298635387.4203889, "message": "Both are available online for free.", "group_id": 109, "id": 207323}, {"user_id": 3054, "stars": [], "topic_id": 9028, "date_created": 1298635363.2711821, "message": "and Mr. Neighbourly's Humble Little Ruby Book - http://www.humblelittlerubybook.com/", "group_id": 109, "id": 207319}, {"user_id": 8606, "stars": [], "topic_id": 9028, "date_created": 1298638345.4456429, "message": "I'd also really recommend trying Ruby Koans - http://rubykoans.com/ - they are slightly more advanced than just a book, but will get you on a very good ground with thorough understanding of testing and various bits that are omitted in most books. Also, they are free and extremely addictive and fun.", "group_id": 109, "id": 207577}, {"user_id": 8617, "stars": [], "topic_id": 9028, "date_created": 1298638523.0854249, "message": "+1 for Ruby Koans. But I've kinda slacked off recently.", "group_id": 109, "id": 207612}, {"user_id": 9327, "stars": [], "topic_id": 9028, "date_created": 1298638878.925859, "message": "+1 for Ruby Koans", "group_id": 109, "id": 207644}, {"user_id": 8617, "stars": [], "topic_id": 9028, "date_created": 1298638683.558208, "message": "I have my progress up on github, but does anyone have them completed on github?", "group_id": 109, "id": 207629}, {"user_id": 15236, "stars": [], "topic_id": 9028, "date_created": 1298643373.7373819, "message": "Ruby Koans seems to be highly recommended... I'll check it out.", "group_id": 109, "id": 207942}, {"user_id": 15236, "stars": [], "topic_id": 9028, "date_created": 1298644994.8918121, "message": "30 mins playing with Koans and I'm addicted :)", "group_id": 109, "id": 208176}, {"user_id": 1094, "stars": [], "topic_id": 9028, "date_created": 1298744133.3711729, "message": "as always, it depends, on what you know or don't know before coming to Ruby.Do you know any programming? No? \"Learn to Program\" by Chris Pine should be good.", "group_id": 109, "id": 215146}, {"user_id": 1094, "stars": [], "topic_id": 9028, "date_created": 1298744190.00282, "message": "Are you coming to Ruby from another dynamic language? from Static, strong-typed programming?", "group_id": 109, "id": 215149}, {"user_id": 7561, "stars": [], "topic_id": 9028, "date_created": 1299823854.1526251, "message": "Ruby Koans and Why Poignant Guide are excellent resources", "group_id": 109, "id": 319780}, {"user_id": 13501, "stars": [], "topic_id": 9028, "date_created": 1299909129.208581, "message": "Learn by examples, code something in rails", "group_id": 109, "id": 330370}, {"user_id": 4221, "stars": [], "topic_id": 9028, "date_created": 1299967619.0581601, "message": "Totally second the Ruby Koans(http://rubykoans.com/), and I am not entirely a novice to Ruby, but am loving Eloquent Ruby by Russ Olsen. It's probably not for beginners to programming, but the material is so good it's easily a second book to purchase after whatever else you get first. :)", "group_id": 109, "id": 336901}, {"user_id": 22172, "stars": [], "topic_id": 9028, "date_created": 1300331613.1719091, "message": "Another vote for Well Grounded Rubyist", "group_id": 109, "id": 371169}]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 32683, "stars": [], "topic_id": 39468, "date_created": 1308162858.3138781, "message": "I've been using ruby for about 4 1/2 months and I'm looking for someone more experienced to discuss potential areas to refactor. I'll be adding a readme to the repo soon so you it's clear how to run it.", "group_id": 109, "id": 1403083}, {"user_id": 32683, "stars": [], "topic_id": 39468, "date_created": 1308162801.7131419, "message": "Was wondering if anyone could take a look at my solution to http://puzzlenode.com/puzzles/13 -- https://github.com/caleywoods/Puzzlenode-Blue-Hawaii", "group_id": 109, "id": 1403077}]
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 18775, "stars": [], "topic_id": 13491, "date_created": 1300332721.6396289, "message": "Hi, i'm kind of new to Ruby, and need to do a multiplatform GUI application with drawing functionality (something like cairo)... I need the application to work on Windows and OSX. Anyone has a suggestion?", "group_id": 109, "id": 371282}, {"user_id": 4865, "stars": [], "topic_id": 13491, "date_created": 1300333162.0754831, "message": "On Mac OS X you can use MacRuby.", "group_id": 109, "id": 371344}, {"user_id": 4149, "stars": [], "topic_id": 13491, "date_created": 1300333259.692384, "message": "anyone know a good plugin for eclipse for ruby?", "group_id": 109, "id": 371351}, {"user_id": 4865, "stars": [], "topic_id": 13491, "date_created": 1300333204.6119161, "message": "Titanium (http://www.appcelerator.com/) also support Ruby.", "group_id": 109, "id": 371347}, {"user_id": 8192, "stars": [], "topic_id": 13491, "date_created": 1300338502.967026, "message": "You could use qtruby-qt4 or the ruby wxwidgets binding. I would recommend qt, because is feels more native on each supported platform(which are quite a lot)", "group_id": 109, "id": 371701}, {"user_id": 12881, "stars": [], "topic_id": 13491, "date_created": 1300344960.350481, "message": "ruby-gnome is also nice.", "group_id": 109, "id": 372009}, {"user_id": 18775, "stars": [], "topic_id": 13491, "date_created": 1300347650.8801789, "message": "Thanx. I think i'll try wxWidgets, because i'm not doing an open source project, and need OSX/Windows support.", "group_id": 109, "id": 372133}, {"user_id": 19808, "stars": [], "topic_id": 13491, "date_created": 1300352522.5639689, "message": "Shoes! http://shoesrb.com/downloads and http://blog.shoesrb.com/ (But I'm biased). Also check out the work being done on Green Shoes (http://green.shoesrb.com)", "group_id": 109, "id": 372493}, {"user_id": 20279, "stars": [], "topic_id": 13491, "date_created": 1300359609.5545051, "message": "shoes has the better dsl but it's poor and too simple (listviews, where are you?). macruby is great buy you need to understand the whole cocoa framework and at the end of the day you will find ruby is not helping too much. hotcocoa has great dsl but it's hard to debug and not so easy to exend. qt and gtk have too many dependencies. both have great API's but they don't fit into ruby-world.", "group_id": 109, "id": 372904}, {"user_id": 19808, "stars": [], "topic_id": 13491, "date_created": 1300360326.199085, "message": "@knoopx Yeah, Shoes is probably best for little apps and games although is also great for prototyping stuff in, but you'd never used it to build a big piece of software you wanted to sell (for example).", "group_id": 109, "id": 372938}, {"user_id": 19808, "stars": [], "topic_id": 13491, "date_created": 1300361179.1452789, "message": "There's also Limelight (http://limelight.8thlight.com/), along the same vein as Shoes, Bowline, etc.", "group_id": 109, "id": 372967}, {"user_id": 20279, "stars": [], "topic_id": 13491, "date_created": 1300361031.987638, "message": "http://bowlineapp.com/ looks great, its for webkit-apps. similar to titanium.", "group_id": 109, "id": 372961}, {"user_id": 13404, "stars": [], "topic_id": 13491, "date_created": 1300369500.8976309, "message": "You could use Swing together with JRuby. Also see https://github.com/monkeybars/monkeybars-core", "group_id": 109, "id": 373891}, {"user_id": 22458, "stars": [], "topic_id": 13491, "date_created": 1300379190.3152599, "message": "Ubuntu 10.10 (http://www.ubuntu.com/) with Rubymine (http://www.jetbrains.com/ruby/) is powerful platform. I feel it is important to develop in a similar environment to production.", "group_id": 109, "id": 375227}, {"user_id": 8192, "stars": [{"date_created": 1300383934.3332679, "user_id": 13919}], "topic_id": 13491, "date_created": 1300382880.715178, "message": "As alternative to the commercial rubymine I can recommend the free multiplatform editor redcar, which is even written in ruby(jruby with SWT) - http://redcareditor.com", "group_id": 109, "id": 375664}, {"user_id": 18775, "stars": [], "topic_id": 13491, "date_created": 1300386325.4189439, "message": "Thanx all for your answers.", "group_id": 109, "id": 376351}]
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
[{"user_id": 1516, "stars": [], "topic_id": 19457, "date_created": 1302804964.995508, "message": "when the exception is raised, you'll get a backtrace in the terminal. all of those methods mentioned in the backtrace are places where you can rescue it.", "group_id": 109, "id": 688149}, {"user_id": 7794, "stars": [], "topic_id": 19457, "date_created": 1302803927.3885691, "message": "I'm trying to use libusb in ruby. My script runs fine, but if the USB device is unplugged, I want it to exit. I'm trying to catch an Errno exception, but I can't figure out where to catch it. It is thrown while other code is executing, because it's essentially an interrupt from the OS (i beleive). Does anyone know how to catch it?", "group_id": 109, "id": 687901}, {"user_id": 7794, "stars": [], "topic_id": 19457, "date_created": 1302805435.1028149, "message": "root@andvue-gw:~/ruby_driver# ruby andvue.rb \n\"Monnit\" \n\"M+ LINK\" \n\"100\" \n\"Sending: C5 07 00 21 01 00 01 5C 64 F7\" \n\"Received: C5 0C 00 23 3A 0A 00 00 05 00 0B CE 01 00 78\" \n[ 6618.848693] usb 1-2.4: USB disconnect, address 21 \n#<Errno::ENODEV: No such device - usb_interrupt_read> \n#<Errno::ENODEV: No such device - usb_interrupt_read> \n#<Errno::ENODEV: No such device - usb_interrupt_read> \n#<Errno::ENODEV: No such device - usb_interrupt_read> \n#<Errno::ENODEV: No such device - usb_interrupt_read> \n#<Errno::ENODEV: No such device - usb_interrupt_read> \n#<Errno::ENODEV: No such device - usb_interrupt_read>", "group_id": 109, "id": 688290}, {"user_id": 4374, "stars": [], "topic_id": 19457, "date_created": 1302806590.4849429, "message": "can you post the source to andvue.rb?", "group_id": 109, "id": 688512}, {"user_id": 4374, "stars": [], "topic_id": 19457, "date_created": 1302806607.676815, "message": "a link to it, rather :)", "group_id": 109, "id": 688517}, {"user_id": 4374, "stars": [], "topic_id": 19457, "date_created": 1302805223.110512, "message": "wrap your main code block in a begin ... rescue statement", "group_id": 109, "id": 688235}, {"user_id": 7794, "stars": [], "topic_id": 19457, "date_created": 1302805388.59743, "message": "tried that. nothing shows up", "group_id": 109, "id": 688284}, {"user_id": 1516, "stars": [], "topic_id": 19457, "date_created": 1302805808.5529981, "message": "hm. could you share a short example which fails?", "group_id": 109, "id": 688374}, {"user_id": 7794, "stars": [], "topic_id": 19457, "date_created": 1302808155.4970379, "message": "I can't post everything. We have a wrapper object for the USB. I can post parts of that... what do you think would be important?", "group_id": 109, "id": 688864}, {"user_id": 4374, "stars": [], "topic_id": 19457, "date_created": 1302809171.2595129, "message": "Glad you got it worked out :)", "group_id": 109, "id": 689137}, {"user_id": 7794, "stars": [], "topic_id": 19457, "date_created": 1302808266.576406, "message": "k... I think I found it. The wrapper (not written by me) catches them and puts them... so they weren't being passed down...", "group_id": 109, "id": 688885}, {"user_id": 12674, "stars": [], "topic_id": 19457, "date_created": 1302820411.3925569, "message": "Not sure if this would help but Kernel#at_exit would allow you to do something right before the app dies. http://www.ruby-doc.org/core/classes/Kernel.html#M001431", "group_id": 109, "id": 692021}]
@@ -0,0 +1 @@
[{"user_id": 4160, "stars": [], "topic_id": 6401, "date_created": 1297874128.842361, "message": "I have a script that manipulates in a large-ish (70 MB) file and does some operations on it. It ends up consuming about 140 MB of RAM before it ends, which seems a little excessive to me. How can I go about looking for memory leaks? What are some common causes of memory leaks in Ruby?", "group_id": 109, "id": 121196}, {"user_id": 4160, "stars": [], "topic_id": 6401, "date_created": 1297874209.1981421, "message": "Also, I don't think the script is not reading the whole 70 MB file into memory. The file is indexed, and the library to read it is supposedly written to access it by index instead of by loading the whole file.", "group_id": 109, "id": 121207}, {"user_id": 4374, "stars": [], "topic_id": 6401, "date_created": 1297890058.102011, "message": "This is something I've wondered about a lot myself.", "group_id": 109, "id": 124243}, {"user_id": 9787, "stars": [], "topic_id": 6401, "date_created": 1297893538.878123, "message": "high memory consumption does not necessarily indicate a leak and just because your file is 70mb, that doesn't mean ruby should consume a maximum of 70mb of memory. ruby in general is a memory hog, because you know, everything is an object", "group_id": 109, "id": 125233}, {"user_id": 1094, "stars": [], "topic_id": 6401, "date_created": 1297897349.9116099, "message": "Hard to tell not knowing what library. Is the library itself leaking memory (not necessarily Ruby)? You could probably monitor this, comparing memory usage before and after each call to it.", "group_id": 109, "id": 126005}, {"user_id": 4160, "stars": [], "topic_id": 6401, "date_created": 1297913853.0217259, "message": "I have tried some of the tools for debugging leaks (bleak_house and memprof) but found myself having trouble looking at their output and knowing how to tweak my code. Are there any good guides or pointers for translating the output into something I can do?", "group_id": 109, "id": 129217}, {"user_id": 8891, "stars": [], "topic_id": 6401, "date_created": 1297914006.3198199, "message": "@fx I don't see how you determine that this makes it a memory hog. Objective-C is just as object-based but you don't see anybody claiming that it is a memory hog because \"everything is an object\" (which isn't true in either language).", "group_id": 109, "id": 129227}, {"user_id": 11223, "stars": [], "topic_id": 6401, "date_created": 1297914763.4113979, "message": "so if you have a memory-inefficient function, it will look like a memory leak, even if that memory gets freed after the function call", "group_id": 109, "id": 129276}, {"user_id": 11223, "stars": [], "topic_id": 6401, "date_created": 1297914589.4858041, "message": "ruby doesn't release memory back to the os once it's been allocated, fyi", "group_id": 109, "id": 129266}, {"user_id": 9822, "stars": [], "topic_id": 6401, "date_created": 1297932696.8912671, "message": "if your scripts runs on jruby you could analyze the memory usage with the Eclipse Memory Analyzer http://www.eclipse.org/mat/", "group_id": 109, "id": 130125}, {"user_id": 9822, "stars": [], "topic_id": 6401, "date_created": 1297932763.5993249, "message": "Standard ruby unfortunately still doesn't have a tool that comes close to mat. Of course the absolute numbers would be different, but you should still be able to find leaks", "group_id": 109, "id": 130129}, {"user_id": 9787, "stars": [], "topic_id": 6401, "date_created": 1297936312.4958241, "message": "@klochner ruby has a garbage collector, but you have no way to influence this in MRI. @jergason REE has exposed some constants to finetune garbage collection though: http://www.coffeepowered.net/2009/06/13/fine-tuning-your-garbage-collector/", "group_id": 109, "id": 130362}, {"user_id": 9787, "stars": [], "topic_id": 6401, "date_created": 1297936521.644824, "message": "@coreyward there is no way to explicitly release memory or objects in ruby, while there is in objective C. combined with the fact that it takes up more memory than you might need in a certain situation, I consider it to be \"hogging\" memory.", "group_id": 109, "id": 130368}, {"user_id": 11223, "stars": [], "topic_id": 6401, "date_created": 1298777279.29633, "message": "@fx . . . so once your ruby process hits 200 MB, it will never consume less than 200MB, even if 199MB has been garbage collected.", "group_id": 109, "id": 216346}, {"user_id": 11223, "stars": [], "topic_id": 6401, "date_created": 1298777183.292604, "message": "@fx - if i'm not mistaken, ruby GC doesn't release memory back to the OS, it just makes it available to the ruby environment.", "group_id": 109, "id": 216340}]
@@ -0,0 +1 @@
[{"user_id": 21343, "stars": [], "topic_id": 35246, "date_created": 1305346771.5898271, "message": "by now, when I call \"User.new\" in my app, it references Rdio's... Even without the \"Rdio::\" prefix... how can I manage that conflict?", "group_id": 109, "id": 1050126}, {"user_id": 21343, "stars": [], "topic_id": 35246, "date_created": 1305346717.328285, "message": "I have a rails app with a \"User\" model class. I installed the \"rdio\" gem who contains a \"Rdio::User\" class", "group_id": 109, "id": 1050117}, {"user_id": 1548, "stars": [], "topic_id": 35246, "date_created": 1305379872.446075, "message": "::User", "group_id": 109, "id": 1052410}, {"user_id": 21343, "stars": [], "topic_id": 35246, "date_created": 1305383445.781574, "message": "Writing it like this will exclude specific Modules?? Nice! I'll give it a try", "group_id": 109, "id": 1052677}, {"user_id": 1548, "stars": [], "topic_id": 35246, "date_created": 1305465520.823854, "message": "Putting :: before the module/class name forces Ruby to look from the top level down. So even if say you're defining a class called Bar in a module called Foo that also has class User, but you want to use the User class from another, you can write ::OtherModule::User to make sure you get the one you actually want.", "group_id": 109, "id": 1059673}, {"user_id": 21343, "stars": [], "topic_id": 35246, "date_created": 1305483188.63257, "message": "damn... this all sounds good and seemed to be the solution... but \"::User\" still references the \"Rdio::User\" class...", "group_id": 109, "id": 1061638}, {"user_id": 21343, "stars": [], "topic_id": 35246, "date_created": 1305488497.476542, "message": "trying to modify it...", "group_id": 109, "id": 1062446}, {"user_id": 21343, "stars": [], "topic_id": 35246, "date_created": 1305488486.5429671, "message": "yes... there is. In one of the gem's file...", "group_id": 109, "id": 1062444}, {"user_id": 1516, "stars": [], "topic_id": 35246, "date_created": 1305488504.7038419, "message": "woah, now that's not very nice :(", "group_id": 109, "id": 1062450}, {"user_id": 1516, "stars": [], "topic_id": 35246, "date_created": 1305488695.979419, "message": "I've sent a pull request: https://github.com/spudtrooper/rdiorb/pull/3", "group_id": 109, "id": 1062497}, {"user_id": 1516, "stars": [], "topic_id": 35246, "date_created": 1305488442.8447299, "message": "@frederickdubois check if there's a \"include Rdio\" somewhere", "group_id": 109, "id": 1062436}, {"user_id": 25001, "stars": [], "topic_id": 35246, "date_created": 1305503072.390193, "message": "It's fixed on github and I pushed a new gem.", "group_id": 109, "id": 1064476}, {"user_id": 21343, "stars": [], "topic_id": 35246, "date_created": 1305686640.8426621, "message": "@spudtrooper thanks a lot, I've seen the update.", "group_id": 109, "id": 1091876}, {"user_id": 21343, "stars": [], "topic_id": 35246, "date_created": 1305686665.6167929, "message": "However, I started getting a new bug that might be related with the removal of this include... here's the stack :", "group_id": 109, "id": 1091877}, {"user_id": 21343, "stars": [], "topic_id": 35246, "date_created": 1305686667.2512701, "message": "NoMethodError: undefined method `camel2underscores' for Rdio:Module\n\tfrom /Library/Ruby/Gems/1.8/gems/rdio-0.0.92/lib/rdio/base.rb:123:in `fill'\n\tfrom /Library/Ruby/Gems/1.8/gems/rdio-0.0.92/lib/rdio/base.rb:122:in `each'\n\tfrom /Library/Ruby/Gems/1.8/gems/rdio-0.0.92/lib/rdio/base.rb:122:in `fill'\n\tfrom /Library/Ruby/Gems/1.8/gems/rdio-0.0.92/lib/rdio/api.rb:336:in `search'\n\tfrom /Library/Ruby/Gems/1.8/gems/rdio-0.0.92/lib/rdio/api.rb:336:in `map'\n\tfrom /Library/Ruby/Gems/1.8/gems/rdio-0.0.92/lib/rdio/api.rb:336:in `search'\n\tfrom /Library/Ruby/Gems/1.8/gems/rdio-0.0.92/lib/rdio/types.rb:647:in `search'\n\tfrom (irb):2\n", "group_id": 109, "id": 1091878}, {"user_id": 6643, "stars": [], "topic_id": 35246, "date_created": 1305885577.3033631, "message": "The last time I looked at that Gem is was really unrubyish", "group_id": 109, "id": 1123842}]
@@ -0,0 +1 @@
[{"user_id": 1775, "stars": [], "topic_id": 36094, "date_created": 1305876484.0535679, "message": "Does anyone know of a gem that analyzes your current iTunes library, and has the ability to see most played songs/artists, etc?", "group_id": 109, "id": 1121948}, {"user_id": 8595, "stars": [], "topic_id": 36094, "date_created": 1305904457.9409399, "message": "Also, just found this https://gist.github.com/508415 perhaps it helps a little", "group_id": 109, "id": 1126660}, {"user_id": 8595, "stars": [], "topic_id": 36094, "date_created": 1305903896.836231, "message": "Ahh hold on.. <key>Play Count</key> :)", "group_id": 109, "id": 1126587}, {"user_id": 8595, "stars": [{"date_created": 1305979250.246182, "user_id": 24069}], "topic_id": 36094, "date_created": 1305904988.9627659, "message": "@C_t_Montgomery if it helps, try this: https://gist.github.com/983143 it wont be fast.. but it'll map the xml data into an array of hashes, each hash representing a track", "group_id": 109, "id": 1126775}, {"user_id": 8595, "stars": [{"date_created": 1305979238.19854, "user_id": 24069}], "topic_id": 36094, "date_created": 1305903834.609688, "message": "Not sure if there's a gem for this, but I just generally open up Music/iTunes/iTunes Music Library.xml and parse the XML using Nokogiri. Although I doubt that provides count for songs/artists for how many times their tracks have been played", "group_id": 109, "id": 1126568}, {"user_id": 1775, "stars": [], "topic_id": 36094, "date_created": 1305908184.603828, "message": "That's awesome. Thank you, @inkjet. I appreciate it and will look into doing that!", "group_id": 109, "id": 1127403}, {"user_id": 1516, "stars": [], "topic_id": 36094, "date_created": 1305909814.495811, "message": "nice to see other than me who writes @inkjet (instead of @injekt)!", "group_id": 109, "id": 1127705}, {"user_id": 8595, "stars": [], "topic_id": 36094, "date_created": 1305911026.882525, "message": "hahaha", "group_id": 109, "id": 1127918}, {"user_id": 8595, "stars": [], "topic_id": 36094, "date_created": 1305911028.827265, "message": "damnit", "group_id": 109, "id": 1127919}, {"user_id": 8595, "stars": [{"date_created": 1306062988.3875041, "user_id": 1516}], "topic_id": 36094, "date_created": 1305911037.8867841, "message": "@Judofry :)", "group_id": 109, "id": 1127921}, {"user_id": 8595, "stars": [], "topic_id": 36094, "date_created": 1305911076.484297, "message": "@C_t_Montgomery You're welcome. Your thanks to me will be writing injekt next time and only using inkjet when @Judofyr is not around :)", "group_id": 109, "id": 1127925}]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 37466, "stars": [], "topic_id": 42845, "date_created": 1311860469.358834, "message": "Hey", "group_id": 109, "id": 1739161}, {"user_id": 8786, "stars": [], "topic_id": 42845, "date_created": 1311919874.713681, "message": "Hello", "group_id": 109, "id": 1745437}, {"user_id": 1855, "stars": [], "topic_id": 42845, "date_created": 1311974888.400367, "message": "hi", "group_id": 109, "id": 1751098}, {"user_id": 36376, "stars": [], "topic_id": 42845, "date_created": 1312030641.4481969, "message": "Hi there!", "group_id": 109, "id": 1754337}, {"user_id": 20419, "stars": [], "topic_id": 42845, "date_created": 1312042619.540664, "message": "howdy", "group_id": 109, "id": 1754964}, {"user_id": 37895, "stars": [], "topic_id": 42845, "date_created": 1313986740.5317719, "message": "Namaskar", "group_id": 109, "id": 1927411}, {"user_id": 5117, "stars": [{"date_created": 1319622381.2140319, "user_id": 42784}], "topic_id": 42845, "date_created": 1313828835.3686061, "message": "kmusta?", "group_id": 109, "id": 1916139}, {"user_id": 28525, "stars": [], "topic_id": 42845, "date_created": 1313861828.1107271, "message": "Zdravo", "group_id": 109, "id": 1917577}, {"user_id": 274, "stars": [], "topic_id": 42845, "date_created": 1314276758.1158121, "message": "Ciao!", "group_id": 109, "id": 1958128}, {"user_id": 1855, "stars": [], "topic_id": 42845, "date_created": 1314633472.9958391, "message": "ol\u00e1", "group_id": 109, "id": 1994237}]
@@ -0,0 +1 @@
[{"user_id": 4221, "stars": [], "topic_id": 9044, "date_created": 1298636575.4215779, "message": "things like knowing that I'll always have a MY_TWITTER variable for one session, or DEV_DB variable for somethign else.", "group_id": 109, "id": 207413}, {"user_id": 4221, "stars": [], "topic_id": 9044, "date_created": 1298636514.417923, "message": "What kinds of tools do you recommend using for IRB fiddling when you have a couple different environments that you want to work in?", "group_id": 109, "id": 207405}, {"user_id": 4221, "stars": [], "topic_id": 9044, "date_created": 1298636557.1291349, "message": "I want to set up something like preconfiguring a DB connection, or generating a pre-filled out and configured API setup, so I can start a new IRB session with some assumed variables to access", "group_id": 109, "id": 207411}, {"user_id": 4221, "stars": [], "topic_id": 9044, "date_created": 1298636646.692775, "message": "Are there any gems that let you switch between environments/workspaces in IRB?", "group_id": 109, "id": 207426}, {"user_id": 4221, "stars": [], "topic_id": 9044, "date_created": 1298636686.06075, "message": "I'm new to Ruby, so I'm not sure what kinds of things you can do in IRB", "group_id": 109, "id": 207428}, {"user_id": 9327, "stars": [], "topic_id": 9044, "date_created": 1298637449.4140949, "message": "@klauern take a look at http://rvm.beginrescueend.com/ and .rvmrc files to setup ruby versions gems and more", "group_id": 109, "id": 207467}, {"user_id": 8224, "stars": [], "topic_id": 9044, "date_created": 1298687504.5557201, "message": "if your on a mac or linux you can stick your envorment variables in your .bashrc then access then via ENV['MY_TWITTER'] in ruby.", "group_id": 109, "id": 212607}, {"user_id": 2142, "stars": [], "topic_id": 9044, "date_created": 1298717204.587404, "message": "For per-project irb session, I often have an init file and a rake task:\ntask :irb do\n sh \"irb -rinit\"\nend", "group_id": 109, "id": 213686}, {"user_id": 4066, "stars": [], "topic_id": 9044, "date_created": 1298745861.981261, "message": "`script/console ENV_NAME`, so you can `script/console staging` and it'll take whatever in staging environment: config/database.yml's staging section & config/environments/staging.rb", "group_id": 109, "id": 215231}, {"user_id": 4221, "stars": [], "topic_id": 9044, "date_created": 1298900048.438652, "message": "@zimbatm I'll have to try that one out. My uses are not particularly Rails related, so anything more general purpose will probably work better for me", "group_id": 109, "id": 225483}, {"user_id": 1516, "stars": [], "topic_id": 9044, "date_created": 1298912251.393822, "message": "@klauern you can have a Rakefile without using Rails :)", "group_id": 109, "id": 227218}, {"user_id": 2142, "stars": [], "topic_id": 9044, "date_created": 1298970669.131777, "message": "@klauem I also sometimes set RUBYOPT=-rpath/to/init (using my shell-env project) so that I can just run irb and it will require that file on start", "group_id": 109, "id": 233357}, {"user_id": 4221, "stars": [], "topic_id": 9044, "date_created": 1299272746.9632421, "message": "What I am trying to do is use selenium-webdriver to work around an interface. i want to just load up the WebDriver instance with the URL I'm working with and be able to get at the driver variable, etc., just as if it was created during the irb session", "group_id": 109, "id": 272771}, {"user_id": 4221, "stars": [], "topic_id": 9044, "date_created": 1299272772.5779669, "message": "What I have tried and seems to work is setting the driver to be a $global variable, but it causes exceptions at the end when I exit out of the irb session", "group_id": 109, "id": 272774}, {"user_id": 4221, "stars": [], "topic_id": 9044, "date_created": 1299272786.769104, "message": "So it will work, but it seems like it doesn't like it.", "group_id": 109, "id": 272777}]
@@ -0,0 +1 @@
[{"user_id": 3611, "stars": [], "topic_id": 46426, "date_created": 1318337503.1354389, "message": "Fluent-builder interfaces are things like arel (AR scopes), jQuery's method-chaining style. The idea is that every method call returns self or some other object that is gradually built up through the course of the method calls. Does this help your code feel more clear or does it uglify things?", "group_id": 109, "id": 2324659}, {"user_id": 1516, "stars": [], "topic_id": 46426, "date_created": 1318338019.2865231, "message": "See also: Closure \u2014 http://en.wikipedia.org/wiki/Closure_(mathematics)", "group_id": 109, "id": 2324684}, {"user_id": 3611, "stars": [], "topic_id": 46426, "date_created": 1318338716.5573311, "message": "@mrb_bk said on twitter, \"That's implementation specific for me. In any case the API needs to be powerful without necessary chaining IMO.\"", "group_id": 109, "id": 2324716}, {"user_id": 3611, "stars": [], "topic_id": 46426, "date_created": 1318338693.0226209, "message": "@moonmaster9000 said on twitter, \"they're a handy abstraction when building an object via callbacks (e.g., before filters). facilitates separation of concerns.\"", "group_id": 109, "id": 2324715}, {"user_id": 1516, "stars": [], "topic_id": 46426, "date_created": 1318339087.4042649, "message": "totally depends on the context. it's pretty obvious in ARel because relational algebra is closed under the operations.", "group_id": 109, "id": 2324754}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302357772.6158309, "message": "example code :", "group_id": 109, "id": 602354}, {"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302357792.0426581, "message": "thanks for your help!!", "group_id": 109, "id": 602357}, {"user_id": 2190, "stars": [], "topic_id": 18236, "date_created": 1302357845.9529419, "message": "Try with #{variable}", "group_id": 109, "id": 602362}, {"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302357937.6587689, "message": "thanks a lot!!!", "group_id": 109, "id": 602368}, {"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302357928.786808, "message": "omg, that was fast, and exactly what I needed", "group_id": 109, "id": 602367}, {"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302357779.3572941, "message": "def self.finalize(aU)\n <<-JS\n function(key, val) {\n val.average = val.positiveCount * 100 / val.count;\n var u = val.positiveCount;\n var a = val.average;\n var aU = INSERT THE aU VARIABLE HERE!\n // and more code goes here...\n return val;\n }\n JS\n end", "group_id": 109, "id": 602356}, {"user_id": 2190, "stars": [], "topic_id": 18236, "date_created": 1302358114.7037821, "message": "You're welcome :)\n\nThat works everytime you want to interpolate values in a string, and you can even call a method, like:\n\nputs \"Hello #{'world'.upcase}!\"", "group_id": 109, "id": 602381}, {"user_id": 1648, "stars": [], "topic_id": 18236, "date_created": 1302359017.2172639, "message": "Just make sure you sanitize user input. Otherwise you're opening yourself up to xss attacks.", "group_id": 109, "id": 602428}, {"user_id": 21343, "stars": [], "topic_id": 18236, "date_created": 1302359030.349179, "message": "true, thanks!", "group_id": 109, "id": 602429}, {"user_id": 1094, "stars": [], "topic_id": 18236, "date_created": 1302362331.496891, "message": "A little OT. For some reason people like the <<-HEREDOC syntax a lot more than I do. Ruby's %Q{ ...multi-line string here... } seems to me much more palatable.", "group_id": 109, "id": 602597}, {"user_id": 20844, "stars": [], "topic_id": 18236, "date_created": 1302404579.7942691, "message": "I tend to try and avoid this pattern, but if you absolutely have to, try using .to_json to sanitize and/or quote values.", "group_id": 109, "id": 607636}]
@@ -0,0 +1 @@
[{"user_id": 39709, "stars": [], "topic_id": 43458, "date_created": 1313455513.06003, "message": "Easy. Download and work tour way through the Ruby Koans", "group_id": 109, "id": 1879758}, {"user_id": 37895, "stars": [{"date_created": 1318218962.264852, "user_id": 40515}], "topic_id": 43458, "date_created": 1313494827.381176, "message": "Right now, I am also learning Ruby. I found the 'Beginning Ruby' book by Peter Cooper (http://www.amazon.com/Beginning-Ruby-Professional-Peter-Cooper/dp/1430223634/ref=dp_ob_title_bk) to be extremely helpful. I am about 200 pages into the book and found the book to be very much newbie friendly.", "group_id": 109, "id": 1882929}, {"user_id": 4141, "stars": [], "topic_id": 43458, "date_created": 1313544790.043937, "message": "I also did the Ruby Koans before, but I will be re-doing them after I finish the book, because I will get much more out of them that way, and the Koans are really a great learning tool.", "group_id": 109, "id": 1888136}, {"user_id": 4141, "stars": [{"date_created": 1313556133.8688819, "user_id": 37895}], "topic_id": 43458, "date_created": 1313544766.2121379, "message": "I'm learning Ruby right now as well. I found \"The Well-Grounded Rubyist\" to be a fantastic intro.", "group_id": 109, "id": 1888131}, {"user_id": 19854, "stars": [], "topic_id": 43458, "date_created": 1313670555.095376, "message": "If you want a little more interactive/structured method (with a bit of hand-holding), I recommend the Core Ruby class at http://rubylearning.org/class/ . I took that last year and really got a lot out of it.", "group_id": 109, "id": 1901201}, {"user_id": 39709, "stars": [], "topic_id": 43458, "date_created": 1313709039.4829881, "message": "Better still, perhaps, would be Mendicant University: http://university.rubymendicant.com/", "group_id": 109, "id": 1905390}, {"user_id": 40358, "stars": [], "topic_id": 43458, "date_created": 1314548959.3553879, "message": "How about _why's poignant guide? http://mislav.uniqpath.com/poignant-guide/book/", "group_id": 109, "id": 1984205}, {"user_id": 26533, "stars": [], "topic_id": 43458, "date_created": 1315840443.9442849, "message": "haha", "group_id": 109, "id": 2109336}, {"user_id": 26533, "stars": [], "topic_id": 43458, "date_created": 1315840421.372092, "message": "just so fun", "group_id": 109, "id": 2109333}, {"user_id": 21823, "stars": [], "topic_id": 43458, "date_created": 1315842881.284476, "message": "Once the basics are set, practice with http://projecteuler.net/index.php?section=problems\n\nI'll be teaching a intro to programming course this semester and decided that ruby would be a good starting language, I'll be coming back here for tips...", "group_id": 109, "id": 2109799}, {"user_id": 42486, "stars": [], "topic_id": 43458, "date_created": 1319104010.58796, "message": "You can try videos at http://showmedo.com/", "group_id": 109, "id": 2390805}, {"user_id": 12503, "stars": [], "topic_id": 43458, "date_created": 1323316980.2676051, "message": "Anyone late to this thread: try rubymonk.com", "group_id": 109, "id": 2720926}]
@@ -0,0 +1 @@
[{"user_id": 4221, "stars": [], "topic_id": 34170, "date_created": 1304781660.946367, "message": "For instance, I would like to be able to turn some extra debug logging on when in IRB, since that would be a case where the user likely wants to know that extra information", "group_id": 109, "id": 951201}, {"user_id": 4221, "stars": [], "topic_id": 34170, "date_created": 1304781522.523983, "message": "Is it possible to write a script that--when required within an irb session--can do something different, like prompt the user for information or whatnot?", "group_id": 109, "id": 951188}, {"user_id": 4221, "stars": [], "topic_id": 34170, "date_created": 1304781706.5036521, "message": "Or if I have a type of activeRecord gem or model, that if I start an IRB session, it could prompt the user to log in to the db explicitly by prompting for a username/password", "group_id": 109, "id": 951205}, {"user_id": 4221, "stars": [], "topic_id": 34170, "date_created": 1304781736.8201129, "message": "that would simplify how you would test out a gem for usefulness if you didn't want to have them set up some config .yml or something ahead of time.", "group_id": 109, "id": 951206}, {"user_id": 1648, "stars": [], "topic_id": 34170, "date_created": 1304781971.4224279, "message": "you could set a constant in your ~/.irbrc and then check for that constant", "group_id": 109, "id": 951227}, {"user_id": 1516, "stars": [], "topic_id": 34170, "date_created": 1304782493.9625211, "message": "or you can check for `defined?(IRB) && IRB.CurrentContext`", "group_id": 109, "id": 951249}]
@@ -0,0 +1 @@
[{"user_id": 40502, "stars": [{"date_created": 1316668491.164288, "user_id": 21823}], "topic_id": 45638, "date_created": 1316667782.7148199, "message": "How about calculating errors? Bit carrying, overflow and the like. Electric engineers might use them. Maybe Carnot cycle?", "group_id": 109, "id": 2186645}, {"user_id": 21823, "stars": [], "topic_id": 45638, "date_created": 1316667340.1499541, "message": "I started giving an intro to programming course for electrical engineering students, since the beginning I wanted to teach with applications to their career. For example when i taught input/output I gave some serial circuits examples to calculate resistance, potency and so on.\n\nNow i'm finishing with the decisions unit, mostly adding bells and whistles to the programs in the first unit. But for loops I don't seem to find a real world application for electricity or a 'useful' math application, i don't just want to ask them to calculate PI numbers or Fibonacci sequence, the best I have come with is to ask the to calculate factorials, but that's only one thing.", "group_id": 109, "id": 2186622}, {"user_id": 40502, "stars": [], "topic_id": 45638, "date_created": 1316668288.8654089, "message": "Another one clich\u00e9d: Newton's binomial theorem.", "group_id": 109, "id": 2186676}, {"user_id": 21823, "stars": [], "topic_id": 45638, "date_created": 1316667322.534996, "message": "I started giving an intro to programming course for electrical engineering students, since the beginning I wanted to teach with applications to their career. For example when i taught input/output I gave some serial circuits examples to calculate resistance, potency and so on.\n\nNow i'm finishing with the decisions unit, mostly adding bells and whistles to the programs in the first unit. But for loops I don't seem to find a real world application for electricity or a 'useful' math application, i don't just want to ask them to calculate PI numbers or Fibonacci sequence, the best I have come with is to ask the to calculate factorials, but that's only one thing.", "group_id": 109, "id": 2186620}, {"user_id": 21823, "stars": [], "topic_id": 45638, "date_created": 1316668407.858079, "message": "checking those out @Aelyus", "group_id": 109, "id": 2186685}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 4221, "stars": [], "topic_id": 17175, "date_created": 1301915072.55913, "message": "This is just for fun, but what are some of the best data structure-type gems out there for graphs (including DAGs and their ilk), tries, and other core types of data structures outside of the Hash?", "group_id": 109, "id": 522579}, {"user_id": 31101, "stars": [], "topic_id": 17175, "date_created": 1303782949.8835521, "message": "ola", "group_id": 109, "id": 808987}]
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
[{"user_id": 3868, "stars": [], "topic_id": 18763, "date_created": 1302571389.5641, "message": "Is eval the only way to get the value of a local variable from a string? I.e.: >> foo = 1\n=> 1\n>> eval(\"foo\")\n=> 1", "group_id": 109, "id": 633975}, {"user_id": 3868, "stars": [], "topic_id": 18763, "date_created": 1302571422.2682941, "message": "I can see the variable *name* in local_variables, but can't get at the value aside from eval that I can see.", "group_id": 109, "id": 633990}, {"user_id": 8956, "stars": [], "topic_id": 18763, "date_created": 1302579677.064316, "message": "apparently the local variables list is generated at parse time? interesting\u2026", "group_id": 109, "id": 636519}, {"user_id": 8956, "stars": [], "topic_id": 18763, "date_created": 1302579678.5939701, "message": "http://groups.google.com/group/ruby-talk-google/browse_thread/thread/b36a49bb4944baf9?pli=1", "group_id": 109, "id": 636520}, {"user_id": 8956, "stars": [], "topic_id": 18763, "date_created": 1302579929.270148, "message": "the definition of Binding#[] from the extensions gem also seems to strongly imply that eval is the only option: http://extensions.rubyforge.org/rdoc/classes/Binding.html#M000025", "group_id": 109, "id": 636585}, {"user_id": 8956, "stars": [], "topic_id": 18763, "date_created": 1302579699.8134129, "message": "(although sadly that seems to imply that the only way to get those out is via eval, sorry)", "group_id": 109, "id": 636526}, {"user_id": 1767, "stars": [], "topic_id": 18763, "date_created": 1302613924.848249, "message": "Stupid question: What use case would require to get local variables from a string? :)", "group_id": 109, "id": 641998}, {"user_id": 5369, "stars": [], "topic_id": 18763, "date_created": 1302613717.1338811, "message": "Depending on the use case it would usually make more sense to put values you need to access by name in a hash. `values = { foo: 1, bar: 2 }`, and then instead of `eval('foo')` you just do: `values[:foo]`", "group_id": 109, "id": 641951}, {"user_id": 20844, "stars": [], "topic_id": 18763, "date_created": 1302624327.446243, "message": "in the context of rails views, use local_assigns (docs here: http://api.rubyonrails.org/classes/ActionView/Base.html)", "group_id": 109, "id": 644501}, {"user_id": 1516, "stars": [], "topic_id": 18763, "date_created": 1302630091.5951059, "message": "yeah, in plain Ruby, there's only eval(\"lvar\", binding)", "group_id": 109, "id": 646360}, {"user_id": 28874, "stars": [], "topic_id": 18763, "date_created": 1304455409.942956, "message": "@koraktor this came up in the context of writing Cucumber functional tests. We have some config variables that we want to be able to reference in a step definition, without having to put the whole variable name into the user story, which would not read well.", "group_id": 109, "id": 903184}, {"user_id": 28874, "stars": [], "topic_id": 18763, "date_created": 1304455474.73365, "message": "@rfunduk using a hash as you describe, would also work. I was being (the bad kind of) lazy and trying to avoid rewriting the existing code base in order to get this new functionality :-\\", "group_id": 109, "id": 903208}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 34979, "stars": [], "topic_id": 42071, "date_created": 1310738577.786061, "message": "Is there a way to use \"method_missing(...)\" in a module without classes? If not can I create a static class with the same name as a module, within a module so that I can use \"method_missing(...)\"? Thanks. ", "group_id": 109, "id": 1645411}, {"user_id": 1767, "stars": [], "topic_id": 42071, "date_created": 1310767839.6235819, "message": "`method_missing` works for all kinds of objects, so it does for modules and classes, too. Depending on your specific use case you may need to definite it as a module or instance method.", "group_id": 109, "id": 1648827}, {"user_id": 34979, "stars": [], "topic_id": 42071, "date_created": 1310819086.412461, "message": "self.method_missing", "group_id": 109, "id": 1651461}, {"user_id": 34979, "stars": [], "topic_id": 42071, "date_created": 1310819326.943831, "message": "doesn't seem to work in my method", "group_id": 109, "id": 1651472}, {"user_id": 28525, "stars": [], "topic_id": 42071, "date_created": 1310857088.068254, "message": "method_missing isn't a class method, so your code should be def method_missing. Also, make sure you understand how ruby's call chain works. There may be an override lower in the chain that will execute before your module's implementation does.", "group_id": 109, "id": 1654388}, {"user_id": 1516, "stars": [], "topic_id": 42071, "date_created": 1310993853.9010191, "message": "what do you want method_missing to catch? \"Foo.some_method\" or \"class Something; include Foo; end; Something.new.some_method\"?", "group_id": 109, "id": 1662097}, {"user_id": 24926, "stars": [], "topic_id": 42071, "date_created": 1310996810.6225581, "message": "I'm thinking we need to see code; @samjiman can you drop a gist in here that shows when you want method_missing to work that it's not?", "group_id": 109, "id": 1662546}, {"user_id": 1767, "stars": [], "topic_id": 42071, "date_created": 1311075345.079716, "message": "This will do it if you only want it to work for direct calls on `MyModule`: https://gist.github.com/1092043/f271a6bb8ff777bbb1683e5ad2c339fae3ea98f1", "group_id": 109, "id": 1670367}, {"user_id": 1767, "stars": [], "topic_id": 42071, "date_created": 1311076305.923779, "message": "@samjiman Yes, the first, simple solution only works for calls like `MyModule.xyz`", "group_id": 109, "id": 1670409}, {"user_id": 34979, "stars": [], "topic_id": 42071, "date_created": 1311074983.6274879, "message": "@ntalbott: Here you go, I want something like this: https://gist.github.com/1092031 \r\nThanks.", "group_id": 109, "id": 1670358}, {"user_id": 1767, "stars": [], "topic_id": 42071, "date_created": 1311075629.136286, "message": "And this will also work for other modules/classes that are including `MyModule`: https://gist.github.com/1092043/17ff327456a7832254a8be7f6f8fc35af0a44861", "group_id": 109, "id": 1670377}, {"user_id": 34979, "stars": [], "topic_id": 42071, "date_created": 1311076264.9324839, "message": "Thanks, I think the second one is what I need. First one, didn't work for me - that was because I was doing it from another module I think.", "group_id": 109, "id": 1670405}]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 1767, "stars": [], "topic_id": 38893, "date_created": 1307702561.407547, "message": "Metior is is a source code history analyzer API that provides various statistics about a source code repository and its change over time. Currently, it provides access to Git repositories using either file system access or directly on GitHub using GitHub's HTTP API.", "group_id": 109, "id": 1359453}, {"user_id": 1767, "stars": [], "topic_id": 38893, "date_created": 1307702585.699331, "message": "Install it using: gem install metior", "group_id": 109, "id": 1359456}, {"user_id": 1767, "stars": [], "topic_id": 38893, "date_created": 1307702632.530731, "message": "Feel free to leave comments, suggestions here or on the issue tracker.", "group_id": 109, "id": 1359458}, {"user_id": 1767, "stars": [], "topic_id": 38893, "date_created": 1307702596.9021521, "message": "Or have a look at the code at GitHub: https://github.com/koraktor/metior", "group_id": 109, "id": 1359457}]
+1
View File
@@ -0,0 +1 @@
[]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 274, "stars": [{"date_created": 1301510463.0953591, "user_id": 1}], "topic_id": 16299, "date_created": 1301510342.1761889, "message": "http://github.com/fyskij/octodigest any advice?", "group_id": 109, "id": 483848}, {"user_id": 28560, "stars": [], "topic_id": 16299, "date_created": 1302483107.2432461, "message": "I like the idea, it works well, and it's pretty. Great start. Here are a few ideas for improvement:", "group_id": 109, "id": 616181}, {"user_id": 28560, "stars": [], "topic_id": 16299, "date_created": 1302483156.666873, "message": "Add a \"branches\" button at the top that would work similar to \"tags\".", "group_id": 109, "id": 616192}, {"user_id": 28560, "stars": [], "topic_id": 16299, "date_created": 1302483635.1418819, "message": "Added columns could be sortable to see recent committers, most active committers overall, etc.", "group_id": 109, "id": 616257}, {"user_id": 28560, "stars": [], "topic_id": 16299, "date_created": 1302483138.982146, "message": "Page the results. If you check rails/rails, it takes quite a while to load.", "group_id": 109, "id": 616191}, {"user_id": 28560, "stars": [], "topic_id": 16299, "date_created": 1302483283.5796771, "message": "Add some popular repos on the home page, so users can get an idea of the purpose of the site a little quicker.", "group_id": 109, "id": 616206}, {"user_id": 28560, "stars": [], "topic_id": 16299, "date_created": 1302483697.2700081, "message": "Add a \"forks\" button that would link to other forks of the current project. Also show when the current project is a fork of something else.", "group_id": 109, "id": 616266}, {"user_id": 28560, "stars": [], "topic_id": 16299, "date_created": 1302483608.6174049, "message": "Add other stats for each committer on a project, such as last commit date.", "group_id": 109, "id": 616254}, {"user_id": 274, "stars": [], "topic_id": 16299, "date_created": 1302513223.2718489, "message": "thanks @tjkirch", "group_id": 109, "id": 622331}, {"user_id": 274, "stars": [], "topic_id": 16299, "date_created": 1302513455.511656, "message": "@tjkirch The first thing I should do is to convert the views from Erb to Mustache or at least write some test", "group_id": 109, "id": 622388}]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 274, "stars": [], "topic_id": 1902, "date_created": 1297177309.3039739, "message": "hey!, this is shitty awesome", "group_id": 109, "id": 49328}, {"user_id": 274, "stars": [{"date_created": 1297182314.72909, "user_id": 12}], "topic_id": 1902, "date_created": 1297177444.6619959, "message": "https://gist.github.com/816542", "group_id": 109, "id": 49332}, {"user_id": 274, "stars": [], "topic_id": 1902, "date_created": 1297207587.3987839, "message": "@xyentific ^", "group_id": 109, "id": 49973}, {"user_id": 274, "stars": [], "topic_id": 1902, "date_created": 1297207594.907903, "message": "do you like it?", "group_id": 109, "id": 49974}, {"user_id": 12, "stars": [], "topic_id": 1902, "date_created": 1297208499.1150911, "message": "I do. very simple. we don't need much and this seems to fit the bill.", "group_id": 109, "id": 50017}, {"user_id": 12, "stars": [], "topic_id": 1902, "date_created": 1297208505.1232979, "message": "as far as I can tell, anyways", "group_id": 109, "id": 50018}, {"user_id": 274, "stars": [], "topic_id": 1902, "date_created": 1297209759.6734879, "message": "i made it just for fun", "group_id": 109, "id": 50034}, {"user_id": 274, "stars": [], "topic_id": 1902, "date_created": 1297209762.5837131, "message": "not for convorer", "group_id": 109, "id": 50035}, {"user_id": 274, "stars": [], "topic_id": 1902, "date_created": 1297209801.1994979, "message": "but can be adapted", "group_id": 109, "id": 50036}, {"user_id": 2048, "stars": [{"date_created": 1297287261.728358, "user_id": 274}], "topic_id": 1902, "date_created": 1297287190.3146, "message": "very slick.", "group_id": 109, "id": 57185}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 36416, "stars": [], "topic_id": 39796, "date_created": 1308511424.927985, "message": "using simplecov and rspec2 I'm getting what seems to be incomplete coverage reports where only def <method_name> are marked as covered, so maybe I'm getting something wrong. how does one test a simple class like : https://gist.github.com/1034629 (attached with code is what I would have thought enough to cover all the method)", "group_id": 109, "id": 1432936}]
@@ -0,0 +1 @@
[{"user_id": 6040, "stars": [], "topic_id": 4290, "date_created": 1297439342.493021, "message": "This is for the emacs users. Does anyone else use ruby-electric mode? Does anyone find that the auto-end insertion to be a little to eager, especially during refactoring?", "group_id": 109, "id": 80961}]
@@ -0,0 +1 @@
[]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 5565, "stars": [], "topic_id": 33610, "date_created": 1304504806.6445439, "message": "i'm tasked to develop some reporting (visitors, revenue, etc) tooling. i decided to go with ruby while writing all command line utilities using thor + datamapper (and putting a frontend built with rails on top of all this). opinions, suggestions, oppositions?", "group_id": 109, "id": 911531}, {"user_id": 22997, "stars": [], "topic_id": 33610, "date_created": 1304539668.833262, "message": "What kind of data are you going to store, and what is the expected data size?", "group_id": 109, "id": 919163}, {"user_id": 13404, "stars": [], "topic_id": 33610, "date_created": 1304609354.3270659, "message": "Did you already have a look at ruport? http://www.rubyreports.org/", "group_id": 109, "id": 930605}, {"user_id": 13097, "stars": [], "topic_id": 33610, "date_created": 1305507625.4003601, "message": "I used this Rails plugin to convert HTML files to PDF https://github.com/dagi3d/acts_as_flying_saucer", "group_id": 109, "id": 1064867}, {"user_id": 32812, "stars": [{"date_created": 1306327443.711998, "user_id": 12216}], "topic_id": 33610, "date_created": 1306222435.4448881, "message": "I've been working with Arel directly to generate reports. can be hard at first. still missing around though and getting the hang of it to figure out how to go abouts simplifying it to make a generalized reporting gem. most of the stuff I do just outputs csv so the marketing/sales/management people can work their excel pivot table magic on it", "group_id": 109, "id": 1163027}, {"user_id": 26653, "stars": [], "topic_id": 33610, "date_created": 1306306502.100559, "message": "The two other links that aren't ruport I mentioend are : https://github.com/wayneeseguin/dynamic_reports and https://github.com/acatighera/statistics", "group_id": 109, "id": 1175220}, {"user_id": 26653, "stars": [], "topic_id": 33610, "date_created": 1306306443.777144, "message": "@context Can you post some example in some pasties or on github? I know I'm looking at rurports and dynamic_reports and statistics on github right now and not sure what will be useful (and they all seem to have not been updated for a while).", "group_id": 109, "id": 1175218}, {"user_id": 32812, "stars": [], "topic_id": 33610, "date_created": 1306346342.0875931, "message": "@daryl here is a really basic example of arel usage, and two examples of how im currently using arel for a couple reports (messy i know. these are only gonna be used for a few months.) i would like to eventually come up with a nice clean way to put this into a gem to be more easily used. If anyone has any sort of ideas that'd be awesome. real basic arel usage: https://gist.github.com/919684 . advanced arel usage in two reports: https://gist.github.com/991479", "group_id": 109, "id": 1181633}, {"user_id": 5565, "stars": [], "topic_id": 33610, "date_created": 1306345644.9480059, "message": "thx for the answers so far, ppl. appreciate it!", "group_id": 109, "id": 1181458}, {"user_id": 5565, "stars": [], "topic_id": 33610, "date_created": 1306345527.9830699, "message": "@peterhellberg we're running one big real estate search engine in germany. things like click targets for different timespans, how many clicks and ad revenue are key. there's also a white label product we're licensing which yields nearly the same data but limited to certain clients/areas/countries. the results get mailed to management. plain text tables with data are sufficient. my main concern is the best practice for the data mining part of all this. i.e. to what degree should i precalculate/accumulate numbers - depends on the degree of granulation that's being requested, right? or is it better to keep as much detailed data?", "group_id": 109, "id": 1181441}, {"user_id": 32812, "stars": [], "topic_id": 33610, "date_created": 1306346594.818985, "message": "@InSilenceStill depending on what you are doing maybe look into graphite and statsd. here is a good article to read: http://codeascraft.etsy.com/2011/02/15/measure-anything-measure-everything/ . they explain (and kind of makes sense) is to lose the granularity after so long. such as: stay very granular for the last 5 days, per 5/10 minute for the last two weeks. per hour the last 6 months, etc etc. It kind of makes sense that the granularity is less important as the data gets older. depending on the types of reports statsd/graphite might be exactly what you are looking for.", "group_id": 109, "id": 1181671}]
@@ -0,0 +1 @@
[{"user_id": 30672, "stars": [], "topic_id": 21715, "date_created": 1303944784.555301, "message": "What ruby platform/tool do you use to build a simple static site? I'd like to take advantage of things like templates and partials.", "group_id": 109, "id": 833747}, {"user_id": 28862, "stars": [{"date_created": 1304078803.5731931, "user_id": 26450}], "topic_id": 21715, "date_created": 1303945352.193855, "message": "jekyll's probably the most popular, but I like staticmatic", "group_id": 109, "id": 833831}, {"user_id": 28862, "stars": [], "topic_id": 21715, "date_created": 1303945383.9319799, "message": "(staticmatic has partials)", "group_id": 109, "id": 833836}, {"user_id": 4156, "stars": [], "topic_id": 21715, "date_created": 1303948279.4780371, "message": "Nanoc strikes me as the best in terms of flexibility/power, at the cost of requiring you to wrap your head around it a bit first.", "group_id": 109, "id": 834197}, {"user_id": 21274, "stars": [{"date_created": 1303957498.8997359, "user_id": 16047}], "topic_id": 21715, "date_created": 1303951776.044111, "message": "Just came upon this blog post: http://bit.ly/iDomly", "group_id": 109, "id": 834634}, {"user_id": 30672, "stars": [], "topic_id": 21715, "date_created": 1303957435.0723269, "message": "I like the look of Nanoc over Jekyll because Nanoc allows erb. But is anyone using any of these for client sites - assuming they don't need CMS?", "group_id": 109, "id": 835503}, {"user_id": 8192, "stars": [], "topic_id": 21715, "date_created": 1303972459.7478521, "message": "Clients would have to write some markup language, put the yaml header in it(in case of jekyll, don't know the others, but I'd assume it's similar), and put the file in the right place. Also, it is hard to write a menu containing all these pages then, but possible. I don't think jekyll and similar aproaches are good for customers without knowledge.", "group_id": 109, "id": 837521}, {"user_id": 1767, "stars": [], "topic_id": 21715, "date_created": 1303973048.6937621, "message": "Jekyll could have partials, too: https://github.com/mojombo/jekyll/issues/32", "group_id": 109, "id": 837625}, {"user_id": 19854, "stars": [{"date_created": 1303991968.8713701, "user_id": 28862}, {"date_created": 1304023678.9479971, "user_id": 14840}], "topic_id": 21715, "date_created": 1303986467.816505, "message": "I'm happy with staticmatic. I've been using it for a while and don't remember details about the other options, but I like staticmatic's templates and partials.", "group_id": 109, "id": 839054}, {"user_id": 2320, "stars": [], "topic_id": 21715, "date_created": 1303998797.237165, "message": "I favor Jekyll, mostly because it doesn't have a lot of features. I'm using nanoc3 for another project and although it's flexible with configuration, for my personal site I like the conventions in place over a lot of configuration. \"It just works\"", "group_id": 109, "id": 841363}, {"user_id": 20419, "stars": [], "topic_id": 21715, "date_created": 1304014834.6457441, "message": "I like staticmatic. It's barebones.", "group_id": 109, "id": 844839}, {"user_id": 30672, "stars": [], "topic_id": 21715, "date_created": 1304022219.6789031, "message": "Is anyone using Toto? Seems a lot like Jekyll without liquid templates.", "group_id": 109, "id": 846774}, {"user_id": 28736, "stars": [], "topic_id": 21715, "date_created": 1304022482.2660871, "message": "There is also middleman, which I'm moving a static site to", "group_id": 109, "id": 846849}, {"user_id": 16058, "stars": [], "topic_id": 21715, "date_created": 1304320786.6167059, "message": "@scottweisman, it's not static", "group_id": 109, "id": 881064}]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 7080, "stars": [], "topic_id": 37124, "date_created": 1306542412.4401751, "message": "We needed flexible querystring parsing/generation for the Embedly API, and I couldn't find what I needed. I created this: https://github.com/dokipen/ruby-querystring Hopefully it's useful to someone.", "group_id": 109, "id": 1210288}]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 16087, "stars": [], "topic_id": 14108, "date_created": 1300656347.6783659, "message": "Why is Ruby the only prog language with a dedicated tag in html5? Excited & curious to hear Ruby pros take on this.", "group_id": 109, "id": 393890}, {"user_id": 19808, "stars": [{"date_created": 1300659164.374125, "user_id": 22924}, {"date_created": 1300754484.688431, "user_id": 23419}], "topic_id": 14108, "date_created": 1300658020.7350931, "message": "Unfortunately it's not for the programming language: http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-semantics.html#the-ruby-element", "group_id": 109, "id": 393958}, {"user_id": 4149, "stars": [], "topic_id": 14108, "date_created": 1300657996.6488509, "message": "Technically php has it is own tag and it has been around longer", "group_id": 109, "id": 393957}, {"user_id": 16087, "stars": [], "topic_id": 14108, "date_created": 1300658431.9899271, "message": "Oops... should have done some reading before aking. Thx for the info!", "group_id": 109, "id": 393980}, {"user_id": 1767, "stars": [], "topic_id": 14108, "date_created": 1300685434.664798, "message": "@italiano40 That's not true either. The <?php ?> tags are part of PHP not HTML.", "group_id": 109, "id": 395537}, {"user_id": 4149, "stars": [], "topic_id": 14108, "date_created": 1300697438.7564349, "message": "@koraktor yea agreed but if html5 did include a ruby tag it would have to function the same way a php tag letting the server render that part of the page that is the only reason i brought up php tags", "group_id": 109, "id": 396803}, {"user_id": 2410, "stars": [], "topic_id": 14108, "date_created": 1300698506.389071, "message": "Why \"it would have to function the same way ...\" when html is client-side technology ?", "group_id": 109, "id": 396842}, {"user_id": 2190, "stars": [], "topic_id": 14108, "date_created": 1300707336.2540469, "message": "@italiano40 the <ruby> tag has nothing to do with the Ruby language! The closest \"equivalent\" of <?php ?> for Ruby is <% %>, and this I only in the case when you use ERB", "group_id": 109, "id": 397204}, {"user_id": 23325, "stars": [{"date_created": 1300774521.41259, "user_id": 12202}], "topic_id": 14108, "date_created": 1300737869.152626, "message": "Wow a lot of confusion around this one. Anyone use Google?", "group_id": 109, "id": 402164}, {"user_id": 5145, "stars": [], "topic_id": 14108, "date_created": 1301728960.8798361, "message": "lolz ;p", "group_id": 109, "id": 507732}, {"user_id": 37756, "stars": [{"date_created": 1311449502.2665939, "user_id": 12966}, {"date_created": 1311724850.206672, "user_id": 1363}, {"date_created": 1320394793.5899799, "user_id": 32812}], "topic_id": 14108, "date_created": 1310164193.5629489, "message": "You people are retarded.", "group_id": 109, "id": 1596495}, {"user_id": 5117, "stars": [], "topic_id": 14108, "date_created": 1310188712.5207851, "message": "lol. exactly. lol", "group_id": 109, "id": 1597761}, {"user_id": 19238, "stars": [], "topic_id": 14108, "date_created": 1310197477.5505829, "message": "I love Ruby and HTML5", "group_id": 109, "id": 1597993}, {"user_id": 20905, "stars": [], "topic_id": 14108, "date_created": 1310393095.7379501, "message": "+1", "group_id": 109, "id": 1612175}, {"user_id": 5117, "stars": [], "topic_id": 14108, "date_created": 1311333990.34057, "message": "+1'd", "group_id": 109, "id": 1697367}, {"user_id": 38946, "stars": [], "topic_id": 14108, "date_created": 1311952691.0302351, "message": "I like cake", "group_id": 109, "id": 1748119}, {"user_id": 1855, "stars": [], "topic_id": 14108, "date_created": 1311974871.244328, "message": "cake is a lie.", "group_id": 109, "id": 1751094}, {"user_id": 26533, "stars": [], "topic_id": 14108, "date_created": 1314118256.569473, "message": "@ @christianrojas @surajreddy @tomdeeter @italiano40 @wolfzblood @locks", "group_id": 109, "id": 1941410}, {"user_id": 26533, "stars": [], "topic_id": 14108, "date_created": 1314118219.7490339, "message": "@ @christianrojas @surajreddy @tomdeeter @italiano40 @wolfzblood @locks", "group_id": 109, "id": 1941399}]
+1
View File
@@ -0,0 +1 @@
[]
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 24309, "stars": [], "topic_id": 42836, "date_created": 1311814664.108356, "message": "I got sick of looking up the strftime directives, so I built stamp. I'd love feedback! https://github.com/jeremyw/stamp", "group_id": 109, "id": 1735514}, {"user_id": 1855, "stars": [], "topic_id": 42836, "date_created": 1311817628.9721291, "message": "that's quite an interesting approach, I'll test the gem in the near future", "group_id": 109, "id": 1735726}, {"user_id": 1363, "stars": [], "topic_id": 42836, "date_created": 1311844569.814579, "message": "Ok that is awesome. strftime is for strfchumps", "group_id": 109, "id": 1737669}, {"user_id": 20419, "stars": [], "topic_id": 42836, "date_created": 1311970725.862102, "message": "This is a great idea. I like turtles too. How about support for ordinals? e.g. \"May 29th\"", "group_id": 109, "id": 1750744}, {"user_id": 1516, "stars": [], "topic_id": 42836, "date_created": 1312297340.5252349, "message": "that's actually pretty cool!", "group_id": 109, "id": 1775554}, {"user_id": 24309, "stars": [], "topic_id": 42836, "date_created": 1312370337.787118, "message": "Thanks for the positive feedback, folks. I hope you get a chance to try it out in a project.", "group_id": 109, "id": 1783570}]
@@ -0,0 +1 @@
[{"user_id": 1775, "stars": [], "topic_id": 36812, "date_created": 1306363930.553946, "message": "You rock. Thank you so much!", "group_id": 109, "id": 1185157}, {"user_id": 12179, "stars": [], "topic_id": 36812, "date_created": 1306363643.673892, "message": "but up to now no official api nor any other clients. The main site is not really usable on a small smartphone screen.", "group_id": 109, "id": 1185116}, {"user_id": 12179, "stars": [], "topic_id": 36812, "date_created": 1306363620.4114759, "message": "There's an iOS app: http://itunes.apple.com/us/app/teuxdeux/id384291782", "group_id": 109, "id": 1185113}, {"user_id": 12179, "stars": [], "topic_id": 36812, "date_created": 1306363658.00138, "message": "so I decided to reverse-engineer the API, and here's what I got:", "group_id": 109, "id": 1185118}, {"user_id": 12179, "stars": [], "topic_id": 36812, "date_created": 1306363605.866564, "message": "So maybe you heard of TeuxDeux: http://teuxdeux.com, a \"simple, designy, free, browser-based to-do app\".", "group_id": 109, "id": 1185109}, {"user_id": 12179, "stars": [{"date_created": 1306388005.3803921, "user_id": 1516}, {"date_created": 1306441160.892277, "user_id": 19808}, {"date_created": 1306503735.532234, "user_id": 5928}], "topic_id": 36812, "date_created": 1306363681.73068, "message": "A complete documentation of the API used by the iOS app: https://github.com/badboy/teuxdeux/wiki/API", "group_id": 109, "id": 1185124}, {"user_id": 12179, "stars": [{"date_created": 1306441164.7379739, "user_id": 19808}, {"date_created": 1306503761.9620891, "user_id": 5928}], "topic_id": 36812, "date_created": 1306363692.517091, "message": "and of course I built an small API client library in ruby: https://github.com/badboy/teuxdeux", "group_id": 109, "id": 1185127}, {"user_id": 12179, "stars": [], "topic_id": 36812, "date_created": 1306407131.675936, "message": "=D thanks.", "group_id": 109, "id": 1190909}, {"user_id": 19808, "stars": [], "topic_id": 36812, "date_created": 1306441145.8768649, "message": "Ooh, very clever. I really like TeuxDeux so will be sure to check out what you've done. Thanks!", "group_id": 109, "id": 1195604}, {"user_id": 34979, "stars": [], "topic_id": 36812, "date_created": 1307112395.873944, "message": "*first language.", "group_id": 109, "id": 1277945}, {"user_id": 34979, "stars": [], "topic_id": 36812, "date_created": 1307112383.0979381, "message": "@teuxdeux Not be nasty, as English may not be your fist language, but its \"unofficial\" not \"inofficial\".", "group_id": 109, "id": 1277942}, {"user_id": 12179, "stars": [], "topic_id": 36812, "date_created": 1307115767.534214, "message": "oops. I typed it everywhere else correct. Just this mistake over here :D", "group_id": 109, "id": 1278386}, {"user_id": 12179, "stars": [{"date_created": 1307229080.9067409, "user_id": 19808}], "topic_id": 36812, "date_created": 1307115825.128999, "message": "oh, and btw, I made a small webapp for use on a smartphone: https://github.com/badboy/teuxdeux-webapp", "group_id": 109, "id": 1278392}, {"user_id": 34979, "stars": [], "topic_id": 36812, "date_created": 1307118012.5839989, "message": "@badboy fair enough.", "group_id": 109, "id": 1278636}]
+1
View File
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
[{"user_id": 274, "stars": [], "topic_id": 31844, "date_created": 1304324025.0263491, "message": "ohai!", "group_id": 109, "id": 881405}, {"user_id": 1855, "stars": [], "topic_id": 31844, "date_created": 1304678961.3416221, "message": "all y'all o/", "group_id": 109, "id": 940425}, {"user_id": 37980, "stars": [], "topic_id": 31844, "date_created": 1310555563.4899139, "message": "hh", "group_id": 109, "id": 1627609}, {"user_id": 41625, "stars": [], "topic_id": 31844, "date_created": 1317275646.7436609, "message": "\u064bhi", "group_id": 109, "id": 2238762}, {"user_id": 41854, "stars": [], "topic_id": 31844, "date_created": 1317767756.0288069, "message": "Hi how are you I am Josh", "group_id": 109, "id": 2279986}, {"user_id": 42132, "stars": [], "topic_id": 31844, "date_created": 1318366596.433758, "message": "So by ruby they dont mean pokemon?burnt", "group_id": 109, "id": 2327444}, {"user_id": 42139, "stars": [], "topic_id": 31844, "date_created": 1318382788.832607, "message": "hi people", "group_id": 109, "id": 2328955}, {"user_id": 42486, "stars": [], "topic_id": 31844, "date_created": 1319104047.923743, "message": "Hello World", "group_id": 109, "id": 2390808}]
@@ -0,0 +1 @@
[{"user_id": 6812, "stars": [], "topic_id": 8285, "date_created": 1298457826.8180859, "message": "I'm migrating a Rails app from Ruby 1.8.7 + Rails 2.3.8 to Ruby 1.9.2 + Rails 3", "group_id": 109, "id": 186661}, {"user_id": 6812, "stars": [], "topic_id": 8285, "date_created": 1298457879.1869569, "message": "It's already working in Rails3+Ruby1.8.7 and now I'm migrating the Ruby version. Any good resources on the breaking changes in Ruby 1.9.2?", "group_id": 109, "id": 186667}, {"user_id": 2142, "stars": [], "topic_id": 8285, "date_created": 1298461666.2026219, "message": "the biggest issue is encoding clashes, but rails should handle that for you, then I would say string character iteration. str[0] => 24 in 1.8 but \"a\" in 1.9", "group_id": 109, "id": 186987}, {"user_id": 4221, "stars": [], "topic_id": 8285, "date_created": 1298462091.9238491, "message": "Then there's always Sam Ruby's presentation: http://slideshow.rubyforge.org/ruby19.html#2", "group_id": 109, "id": 187018}, {"user_id": 2142, "stars": [], "topic_id": 8285, "date_created": 1298461596.348376, "message": "I started this some time ago : http://redmine.ruby-lang.org/projects/ruby-19/wiki/MigrationIssuesFrom18", "group_id": 109, "id": 186980}, {"user_id": 4221, "stars": [], "topic_id": 8285, "date_created": 1298462008.5045569, "message": "I'm assuming the Eigenclass blog on the differences is too verbose, but it really is one of the more complete (most?) references on it that I could find: http://eigenclass.org/hiki/Changes+in+Ruby+1.9", "group_id": 109, "id": 187012}, {"user_id": 6812, "stars": [], "topic_id": 8285, "date_created": 1298466882.3285921, "message": "@klauern @zimbatm thanks!", "group_id": 109, "id": 187415}, {"user_id": 4221, "stars": [], "topic_id": 8285, "date_created": 1299438484.875468, "message": "Just found this on @drnic's Twitter stream. https://github.com/cldwalker/one9", "group_id": 109, "id": 281451}, {"user_id": 4221, "stars": [], "topic_id": 8285, "date_created": 1299438516.309526, "message": "This appears to be very similar to python's 2to3 program", "group_id": 109, "id": 281454}, {"user_id": 8991, "stars": [], "topic_id": 8285, "date_created": 1299892152.455956, "message": "I've found some things like, {}.to_s is no longer the empty string", "group_id": 109, "id": 329337}, {"user_id": 8991, "stars": [], "topic_id": 8285, "date_created": 1299892433.816798, "message": "MyModule.constants is now a list of symbols rather than a list of strings.", "group_id": 109, "id": 329346}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 4149, "stars": [], "topic_id": 17119, "date_created": 1301888799.1578059, "message": "i was thinking of installing this one http://www.aptana.com/products/radrails but any other ones that are good just leave them here so i can check them thanks in advance", "group_id": 109, "id": 520184}, {"user_id": 8192, "stars": [], "topic_id": 17119, "date_created": 1301891729.6840489, "message": "Why do you want to use eclipse???", "group_id": 109, "id": 520530}, {"user_id": 25720, "stars": [], "topic_id": 17119, "date_created": 1301895070.9335489, "message": "@linopolus any good ones for linux(ubuntu)? text editor and IDE.", "group_id": 109, "id": 520776}, {"user_id": 8192, "stars": [], "topic_id": 17119, "date_created": 1301895891.567013, "message": "@ianku http://redcareditor.com", "group_id": 109, "id": 520846}, {"user_id": 4149, "stars": [], "topic_id": 17119, "date_created": 1301893712.761802, "message": "@linopolus I use it for my java and python development and I have git and svn setup, it just be easier to add a plugin then get a new IDE and setup all my stuff again for git and how I like the background and multi monitor setup just a pain in the ass", "group_id": 109, "id": 520696}, {"user_id": 8192, "stars": [], "topic_id": 17119, "date_created": 1301894483.1761501, "message": "I would recommend using a text editor (Redcar, or TextMate if you're on a mac) and the command line :)", "group_id": 109, "id": 520743}, {"user_id": 8192, "stars": [], "topic_id": 17119, "date_created": 1301895878.428967, "message": "@ianku I recommend redcar on Linux.", "group_id": 109, "id": 520845}, {"user_id": 25720, "stars": [], "topic_id": 17119, "date_created": 1301900194.564821, "message": "@linopolus Thanks for the recommendation :D", "group_id": 109, "id": 521222}, {"user_id": 4221, "stars": [], "topic_id": 17119, "date_created": 1301915498.5535929, "message": "Or even hope for the best from the JRuby volunteers trying to get NetBeans' Ruby support back and running.", "group_id": 109, "id": 522601}, {"user_id": 4221, "stars": [{"date_created": 1301927861.557143, "user_id": 25720}], "topic_id": 17119, "date_created": 1301915360.7999029, "message": "I've not had a chance to play with it much, but if you're looking for an IDE, it's probably worth it to buy RubyMine from JetBrains http://www.jetbrains.com/ruby/", "group_id": 109, "id": 522589}, {"user_id": 4221, "stars": [], "topic_id": 17119, "date_created": 1301915564.6851299, "message": "I can't say I have ever found anything really great for eclipse besides @italiano40 's mention of Aptana's product, so if you're looking for something to work with Ruby for, it's likely you're going to have to step out of Eclipse to find it", "group_id": 109, "id": 522606}]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 1661, "stars": [], "topic_id": 21137, "date_created": 1303682132.5211551, "message": "require 'rubygems' rescue nil\nrequire 'wirble'\nWirble.init\nWirble.colorize", "group_id": 109, "id": 797109}, {"user_id": 2032, "stars": [], "topic_id": 21137, "date_created": 1303717719.3108661, "message": " $ cat ~/.irbrc\n require 'rubygems' # only needed in 1.8\n begin \n require 'irbtools' \n rescue LoadError\n puts 'IRBtools not installed -- ohai IRB!'\n end", "group_id": 109, "id": 800890}, {"user_id": 1516, "stars": [], "topic_id": 21137, "date_created": 1303750754.4345391, "message": "http://timelessrepo.com/copy-paste", "group_id": 109, "id": 805088}]
@@ -0,0 +1 @@
[{"user_id": 2246, "stars": [], "topic_id": 2460, "date_created": 1297285667.043225, "message": "Is it possible to migrate in %country% as Ruby(on Rails) developer? What skills should I have to interest potential employer?", "group_id": 109, "id": 56406}]
@@ -0,0 +1 @@
[{"user_id": 8016, "stars": [], "topic_id": 4732, "date_created": 1297589027.0234759, "message": "I have Rails and Sinatra in mind specifically.", "group_id": 109, "id": 89245}, {"user_id": 7620, "stars": [], "topic_id": 4732, "date_created": 1297589876.807291, "message": "I think https://github.com/hassox/warden is the best and the most powerful one", "group_id": 109, "id": 89329}, {"user_id": 7794, "stars": [], "topic_id": 4732, "date_created": 1297617853.6981201, "message": "Devise and declarative are what I'm currently using.", "group_id": 109, "id": 92246}, {"user_id": 7561, "stars": [], "topic_id": 4732, "date_created": 1297618812.986968, "message": "Use Warden for any Rack based app and you can use Devise for Rails (that is a wrapper of Warden)", "group_id": 109, "id": 92330}, {"user_id": 12519, "stars": [], "topic_id": 4732, "date_created": 1297901053.5029531, "message": "+1 for warden. But would suggest the more lightweight https://github.com/hassox/rails_warden for rails", "group_id": 109, "id": 126857}, {"user_id": 9787, "stars": [], "topic_id": 4732, "date_created": 1297936598.8850591, "message": "seconded - get comfortable with the rack approach (warden), it's pretty damn good.", "group_id": 109, "id": 130377}]
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
[{"user_id": 9006, "stars": [], "topic_id": 5000, "date_created": 1297629604.1829729, "message": "@jarin makes perfect sense", "group_id": 109, "id": 93233}, {"user_id": 9006, "stars": [], "topic_id": 5000, "date_created": 1297629401.060185, "message": "I'd also be interested in hearing people's experience with either of these gems in a Rails 3 project", "group_id": 109, "id": 93199}, {"user_id": 1363, "stars": [], "topic_id": 5000, "date_created": 1297629487.3406191, "message": "I've used both and they both work pretty well with Rails 3, but I've never used either of them with Facebook Connect is all. They have very different styles though (Devise is much more 'opinionated' if that makes sense)", "group_id": 109, "id": 93212}, {"user_id": 1363, "stars": [], "topic_id": 5000, "date_created": 1297629394.8143909, "message": "The only two things I need are regular authentication and Facebook Connect. Right now my app is on Authlogic with about 4000 users, but I don't mind migrating to Devise if it's got better FB Connect support. I just don't want to have to migrate back later because something is broken.", "group_id": 109, "id": 93198}, {"user_id": 1363, "stars": [], "topic_id": 5000, "date_created": 1297629886.673574, "message": "Ok great, I read somewhere that OmniAuth doesn't play nicely with redis-store's session store but I'm sure I can work around it if so. With 4000 users it is probably not a big deal to just use activerecord store for now :)", "group_id": 109, "id": 93316}, {"user_id": 570, "stars": [], "topic_id": 5000, "date_created": 1297629630.379101, "message": "I'm using devise with omniauth, the upcoming devise 1.2 has omniauth support out of the box and so far it's working really nicely", "group_id": 109, "id": 93240}, {"user_id": 570, "stars": [{"date_created": 1297706264.824765, "user_id": 9450}], "topic_id": 5000, "date_created": 1297629695.460691, "message": "https://github.com/plataformatec/devise/wiki/OmniAuth:-Overview has details on setting it up", "group_id": 109, "id": 93257}, {"user_id": 9787, "stars": [{"date_created": 1297815927.302784, "user_id": 9450}], "topic_id": 5000, "date_created": 1297770855.783149, "message": "Haven't checked authlogic lately, but Devise 1.2 with OmniAuth is dead easy: http://blog.impaled.org/2011/2/6/devise-1-2-with-omniauth-on-rails.html", "group_id": 109, "id": 110468}, {"user_id": 274, "stars": [{"date_created": 1297815934.2443781, "user_id": 9450}], "topic_id": 5000, "date_created": 1297776123.2332211, "message": "try omnisocial man", "group_id": 109, "id": 111028}, {"user_id": 865, "stars": [], "topic_id": 5000, "date_created": 1298873297.591799, "message": "I recently used devise with oa-oauth. We had over 5,000 Facebook connects the first day and had no issues. Here is the basic setup: https://gist.github.com/8a07537120284fe8151a", "group_id": 109, "id": 223789}, {"user_id": 18160, "stars": [], "topic_id": 5000, "date_created": 1299739617.0087819, "message": "There's a railscast on this you may want to chech out.", "group_id": 109, "id": 311472}]
@@ -0,0 +1 @@
[{"user_id": 14086, "stars": [], "topic_id": 36226, "date_created": 1305993412.4174631, "message": "I'm looking through the various gems for tagging and don't see a clear winner. Which tagging gem is most used these days and is well maintained?", "group_id": 109, "id": 1134736}, {"user_id": 14086, "stars": [], "topic_id": 36226, "date_created": 1305993522.515074, "message": "It appears that acts-as-taggable-on is the most popular according to http://www.ruby-toolbox.com/categories/rails_tagging.html. Is that true?", "group_id": 109, "id": 1134750}, {"user_id": 28525, "stars": [], "topic_id": 36226, "date_created": 1306265355.5347631, "message": "I've been using acts_as_taggable for a while. It's stable and pretty easy to use.", "group_id": 109, "id": 1169618}, {"user_id": 8595, "stars": [], "topic_id": 36226, "date_created": 1306269193.9462681, "message": "Ugh, ignore that... it's there too, yay cross posting", "group_id": 109, "id": 1170273}, {"user_id": 8595, "stars": [], "topic_id": 36226, "date_created": 1306269183.6929941, "message": "You might have more success creating this topic on the Rails group, acts_as_taggable_on is probably the most popular one", "group_id": 109, "id": 1170272}]
@@ -0,0 +1 @@
[{"user_id": 1363, "stars": [], "topic_id": 33011, "date_created": 1304227498.370676, "message": "Oh hey Rails outputs JSON with root element but ActiveResource doesn't read it with root element", "group_id": 109, "id": 873961}, {"user_id": 1363, "stars": [], "topic_id": 33011, "date_created": 1304227552.88697, "message": "Oh hey acts_as_api will ONLY output JSON with root element", "group_id": 109, "id": 873964}, {"user_id": 1363, "stars": [], "topic_id": 33011, "date_created": 1304227589.0462689, "message": "So I raged about it and then went back to XML which works great", "group_id": 109, "id": 873965}, {"user_id": 1363, "stars": [], "topic_id": 33011, "date_created": 1304227590.8049271, "message": "The End.", "group_id": 109, "id": 873966}, {"user_id": 3795, "stars": [], "topic_id": 33011, "date_created": 1304263118.6134839, "message": "yuck, XML. but yes, it's real whack. rebuilding as_json for every model is a pain in the ass.", "group_id": 109, "id": 875867}, {"user_id": 25175, "stars": [{"date_created": 1304320721.4475689, "user_id": 16058}], "topic_id": 33011, "date_created": 1304312674.7607701, "message": "try ActiveResource::Base.include_root_in_json = false\n", "group_id": 109, "id": 880409}, {"user_id": 32812, "stars": [], "topic_id": 33011, "date_created": 1306222646.5559211, "message": "what golomidov said. it's one of the first things I do on all new projects.", "group_id": 109, "id": 1163059}]
+1
View File
@@ -0,0 +1 @@
[{"user_id": 7998, "stars": [], "topic_id": 4745, "date_created": 1297590591.0859699, "message": "Why do you use Ruby, and when?", "group_id": 109, "id": 89381}, {"user_id": 4156, "stars": [], "topic_id": 4745, "date_created": 1297608290.946682, "message": "Not really, partly as they have very similar overall syntaxes, so I don't have the \"forgot my semicolons\" problem as one has with C-based langs.", "group_id": 109, "id": 91243}, {"user_id": 4156, "stars": [], "topic_id": 4745, "date_created": 1297608362.234267, "message": "I find that using Ruby makes me more likely to favor OO design in Python (where I used to be more of a \"start out with just functions\" guy)", "group_id": 109, "id": 91255}, {"user_id": 3368, "stars": [], "topic_id": 4745, "date_created": 1297608840.8813109, "message": "Thanks :)", "group_id": 109, "id": 91293}, {"user_id": 3368, "stars": [], "topic_id": 4745, "date_created": 1297607818.558605, "message": "@bitprophet, Do you find it hard to switch between them?", "group_id": 109, "id": 91181}, {"user_id": 4156, "stars": [], "topic_id": 4745, "date_created": 1297608310.230526, "message": "I do find myself often trying to do <iterable>.each in Python instead of for x in <iterable>, though :D", "group_id": 109, "id": 91249}, {"user_id": 4156, "stars": [{"date_created": 1299739232.3549299, "user_id": 1521}], "topic_id": 4745, "date_created": 1297608371.0966921, "message": "and using Python makes my Ruby probably a bit more readable than some folks' ;)", "group_id": 109, "id": 91257}, {"user_id": 4156, "stars": [], "topic_id": 4745, "date_created": 1297607639.566952, "message": "I use it when it's the right tool for the job (eg when I need to do X and Ruby has the better libraries for it) or when I have a toy project and want to just get better at thinking in Ruby", "group_id": 109, "id": 91136}, {"user_id": 4156, "stars": [], "topic_id": 4745, "date_created": 1297607577.366236, "message": "My other main language is Python, so I use Ruby because it has a looser and more \"fun\" syntax, and because I'm a sucker for all your wacky DSLs ;)", "group_id": 109, "id": 91127}, {"user_id": 4653, "stars": [], "topic_id": 4745, "date_created": 1297618610.3980041, "message": "I've been using Ruby on big projects lately and I think it all depends on what you're working on. For instance, what are you going to do with Ruby? a Web Application? a parser?", "group_id": 109, "id": 92295}, {"user_id": 4653, "stars": [], "topic_id": 4745, "date_created": 1297618803.7656169, "message": "Also there's a great amount of users in the community who have developed lot of tools that are going to make your life easier as a Developer. 90% of the things you're going to need will be available as Gems.", "group_id": 109, "id": 92327}, {"user_id": 4653, "stars": [], "topic_id": 4745, "date_created": 1297618748.7652061, "message": "There's not one single language that it's \"the best\" for all situations. So for instance, Ruby has Rails, and Rails has become very popular because of the paradigms it proposes. What are the benefits of using Rails vs a PHP like Zend Framework? Firstly Ruby is so flexible that allows you to do a lot of magic and it's very readable, which is excellent for working quickly with teams to make maintainable code.", "group_id": 109, "id": 92319}, {"user_id": 8891, "stars": [{"date_created": 1297631689.9430461, "user_id": 6612}], "topic_id": 4745, "date_created": 1297622625.1572969, "message": "Why Ruby? For me, and I think a lot of programmers, it's a breath of fresh air. So many people are in the trenches with C#, Java, and PHP where most of your work is in getting the language to do what you really *want* it to. Ruby has a sort of elegance that lets you do things in a way that is engaging, while producing code that is reusable and follows conventions. Hacks aren't; that's powerful.", "group_id": 109, "id": 92784}, {"user_id": 8891, "stars": [], "topic_id": 4745, "date_created": 1297622478.5644181, "message": "Re: Rails vs Zend, there's really not much of a comparison once you get past the MVC underpinnings. Despite coming off as an enterprise grade framework, Zend is buggy and ditches older releases too quickly for use in a production environment, and it's too heavy to be much of a \"get bootstrapped\" framework.", "group_id": 109, "id": 92768}, {"user_id": 6612, "stars": [], "topic_id": 4745, "date_created": 1297631771.1420021, "message": "@coreyward I agree, Ruby is very accessible and much less of a struggle than most other languages.", "group_id": 109, "id": 93768}, {"user_id": 6612, "stars": [], "topic_id": 4745, "date_created": 1297631842.129334, "message": "Also the 'everything is an object' works allot like my mind tends to think. Having said that, Ruby is definitely not suited for everything.", "group_id": 109, "id": 93783}]