<preciz>
Gratipay says mervine receives 500usd per week from fudners
zenojis has joined #ruby-lang
<preciz>
on his blog he writes why not to use ruby :)
<preciz>
lets get a bit imaginary from here
<preciz>
lets say he receives support for ruby developing, but in the meantime he quit ruby.
<preciz>
Not that he didn't get real motivation to stay with ruby, he still gets unconditional motivation just cause supporters aren't checking what he is doing atm.
zenojis has quit [Ping timeout: 260 seconds]
sarkyniin has quit [Quit: Quitte]
<preciz>
single actions should be supported trough micro payments, so if somebody made ruby faster, he could get motivation to continue
wkoch has joined #ruby-lang
wkoch has quit [Client Quit]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sgp667 has quit [Quit: Leaving]
Mon_Ouie has quit [Read error: Connection reset by peer]
<tejas-manohar>
hitting http://localhost:4567/search?q=hello puts {"http_code"=>400, "error"=>"invalid_request", "error_title"=>"Not Allowed", "error_description"=>"There is no client ID or access token found in your request."} to the console
<ssrp>
anyone able to help a ruby noob for a minute?
<havenwood>
ssrp: What can we help with?
<ssrp>
thanks, havenwood. i'm trying to test out the feedbin software on an ubuntu install. they don't have an updated guide so i'm just giving it a quick shot. i'm getting what sounds to be a common error: "Your ruby version is 2.1.3 but your Gemfile specified 2.1.1".
<havenwood>
ssrp: Edit your Gemfile.
<ssrp>
An hour of searching hasn't yielded a working solution, yet.
<havenwood>
ssrp: It's a file in the project root dir.
<havenwood>
ssrp: Change 2.1.1 to 2.1.3. 2.1.3 is latest stable Ruby.
deg has quit [Ping timeout: 245 seconds]
<ssrp>
Found it, thanks so much :D
deg has joined #ruby-lang
jimbach has joined #ruby-lang
stardiviner has joined #ruby-lang
deg_ has quit [Ping timeout: 244 seconds]
deg_ has joined #ruby-lang
ssrp has quit [Remote host closed the connection]
deg has quit [Ping timeout: 260 seconds]
<havenwood>
you're welcome
justinmburrous has joined #ruby-lang
d4rksung has joined #ruby-lang
theraisedhand has joined #ruby-lang
utesso has joined #ruby-lang
chrisdambrosio has quit [Ping timeout: 245 seconds]
Lewix has quit [Remote host closed the connection]
taylorrf has joined #ruby-lang
mattyohe has joined #ruby-lang
theraisedhand has quit [Remote host closed the connection]
taylorrf has quit [Ping timeout: 245 seconds]
justinmburrous has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
d4rksung has quit [Quit: Leaving]
benlovell has quit [Ping timeout: 260 seconds]
sepp2k has quit [Read error: Connection reset by peer]
wsmoak_ has joined #ruby-lang
onkelhotte_ has joined #ruby-lang
theraisedhand has joined #ruby-lang
wsmoak has quit [Ping timeout: 260 seconds]
wsmoak_ is now known as wsmoak
onkelhotte has quit [Ping timeout: 250 seconds]
houhoulis has joined #ruby-lang
houhoulis has quit [Remote host closed the connection]
arBmind1 has quit [Quit: Leaving.]
koderok has joined #ruby-lang
wsmoak has quit [Quit: wsmoak]
ikrima has joined #ruby-lang
taylorrf has joined #ruby-lang
taylorrf has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
Miphix has joined #ruby-lang
<tejas-manohar>
hey guys anyone here familiar with json gem
<tejas-manohar>
havenwood: puts query_result['official_definitions'] shows nothing in console
<tejas-manohar>
havenwood: puts query_result shows that second paste i sent you that ISNT JSON
<tejas-manohar>
havenwood: so obv im not sifting thru values of query_result properly in the first puts with official_definitions, so how do i then?
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
<tejas-manohar>
havenwood: understand?
<havenwood>
>> {"official_definitions"=>[{"word"=>"Anglo-French", "speech_part"=>"noun", "definition"=>"the French (Norman) language used in medieval England", "examples"=>[]}, {"word"=>"french-fried_potatoes", "speech_part"=>"noun", "definition"=>"strips of potato fried in deep fat", "examples"=>[]}, {"word"=>"French-speaking", "speech_part"=>"adjective", "definition"=>"able to communicate in French", "examples"=>[]}, {"word"=>"french-fry",
<havenwood>
"speech_part"=>"verb", "definition"=>"cook by immersing in fat", "examples"=>["french-fry the potatoes"]}, {"word"=>"French", "speech_part"=>"noun", "definition"=>"the people of France", "examples"=>[]}, {"word"=>"French", "speech_part"=>"adjective", "definition"=>"of or pertaining to France or the people of France", "examples"=>["French cooking", "a gallic shrug"]}, {"word"=>"French", "speech_part"=>"noun", "definition"=>"the R
<havenwood>
omance language spoken in France and in countries colonized by France", "examples"=>[]}, {"word"=>"Norman-French", "speech_part"=>"noun", "definition"=>"the medieval Norman dialect of Old French", "examples"=>[]}], "user_definitions"=>[]}['official_definitions']
tylersmith has quit [Remote host closed the connection]
jimbach has joined #ruby-lang
taylorrf has joined #ruby-lang
<bnagy>
what do you want from it?
tylersmith has joined #ruby-lang
hellangel7 has joined #ruby-lang
<bnagy>
also, start by showing us the json, not the ruby hash
<bnagy>
but going from the hash, what output do you want?
taylorrf has quit [Ping timeout: 272 seconds]
justinmburrous has quit [Remote host closed the connection]
tylersmith has quit [Ping timeout: 272 seconds]
<tejas-manohar>
bnagy: i want to get the first 3 "word" in an array, first 3 "definition" in an array, first 3 "speech_part" in an array -- all from official_definitions
<tejas-manohar>
bnagy: then i want to get first 3 of each of those same things divided into array by category (ie "word", "definition", etc.) -- all from the user_definitions
<tejas-manohar>
bnargy: im fine with blank arrays when there are no values ill parse it propelry in erb
<tejas-manohar>
bnargy: understand what i mean? i want to know how to grab a value from it of a certain "key" so i can then do my own operations, just needa get down the basics of getting values from that object
<bnagy>
it's a Hash
<bnagy>
load it up in irb and mess around
<bnagy>
h['key'] gives you val
<tejas-manohar>
i tried variable_name["official_definitions"]
<tejas-manohar>
bnagy: didnt work
<tejas-manohar>
is it like an array inside a hash?
dabradley has joined #ruby-lang
<bnagy>
then you don't have that hash or you made a typo
<bnagy>
load irb, do blah = and then paste that hash from the first pastebin
<bnagy>
then blah['official_definitions']
<tejas-manohar>
bnagy: ok lemme try that
<bnagy>
also, don't check stuff with puts, use p
benlovell has joined #ruby-lang
<tejas-manohar>
bnagy: ok youre right official_definitions works like that in irb
<tejas-manohar>
hmm
<bnagy>
when debugging, it's also OK to check obj.class to make sure things are what you expect
<tejas-manohar>
got it
<tejas-manohar>
i think
<tejas-manohar>
bnagy: whats a good method to just snag the first 3 items of an array or chop off the last whatever to leave the first 3
benlovell has quit [Ping timeout: 272 seconds]
<tejas-manohar>
bnagy: so like snag result["official_definitions"][0], result["official_definitions"][1], and result["official_definitions"][2]
<red_menace>
use a range
<tejas-manohar>
red_menace: ik that [0...2] inclusive range but how to do the adding effectively
<red_menace>
what are you adding?
tenderlove has quit [Read error: Connection reset by peer]
justinmburrous has joined #ruby-lang
justinmburrous has quit [Remote host closed the connection]
<ruby-noob>
also how can i resolve this logic bug?
Lewix has quit [Remote host closed the connection]
<bnagy>
13:07 < bnagy> if you want to move on from here you need to debug differentially against either the working code or the traffic from the working code
<ruby-noob>
ok
yatish27 has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
yatish27 has joined #ruby-lang
ruby-noob has quit [Quit: Page closed]
mistym has joined #ruby-lang
yatish27 has quit [Ping timeout: 240 seconds]
benlovell has quit [Ping timeout: 260 seconds]
chrisdambrosio has quit [Ping timeout: 260 seconds]
SuMo_D has joined #ruby-lang
haraoka has quit [Ping timeout: 245 seconds]
justinmburrous has quit [Remote host closed the connection]
justinmb_ has joined #ruby-lang
ozzloy has quit [Remote host closed the connection]
matp has quit [Quit: ZZZzzz…]
justinmb_ has quit [Remote host closed the connection]
mistym_ has joined #ruby-lang
mistym has quit [Disconnected by services]
taylorrf has joined #ruby-lang
mistym_ is now known as mistym
shinnya has quit [Ping timeout: 245 seconds]
taylorrf has quit [Ping timeout: 258 seconds]
dope has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
benlovell has quit [Ping timeout: 255 seconds]
starbucks has joined #ruby-lang
starbucks has quit [Client Quit]
starbucks has joined #ruby-lang
hellangel7 has quit [Remote host closed the connection]
starbucks is now known as skalsson
lele has quit [Ping timeout: 260 seconds]
Hanmac has quit [Quit: Leaving.]
torrieri has quit [Quit: Leaving...]
skalsson has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
tbuehlmann has quit [Ping timeout: 272 seconds]
sepp2k has joined #ruby-lang
dagda1_ has joined #ruby-lang
taylorrf has joined #ruby-lang
schaerli has joined #ruby-lang
pskosinski has joined #ruby-lang
gianlucadv has joined #ruby-lang
taylorrf has quit [Remote host closed the connection]
benlovell has joined #ruby-lang
benlovell has quit [Ping timeout: 250 seconds]
shinnya has joined #ruby-lang
jxie has joined #ruby-lang
taylorrf has joined #ruby-lang
davidblurton has quit [Ping timeout: 258 seconds]
elia has joined #ruby-lang
jxie has quit [Quit: leaving]
GBrawl has joined #ruby-lang
PsionTheory has joined #ruby-lang
wsmoak has joined #ruby-lang
wsmoak has quit [Changing host]
wsmoak has joined #ruby-lang
utesso has quit []
Forgetful_Lion has quit [Remote host closed the connection]
utesso has joined #ruby-lang
benlovell has joined #ruby-lang
benlovell has quit [Ping timeout: 246 seconds]
utesso has quit [K-Lined]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
red_menace has joined #ruby-lang
matp has quit [Ping timeout: 255 seconds]
banister has joined #ruby-lang
davidblurton has joined #ruby-lang
TheToad has joined #ruby-lang
<TheToad>
how can I use module methods from within a class method ?
<TheToad>
the module is included in the class, if I define a variable in the module I can access it in the class, but it's complaining about not finding the method.
bougyman has quit [Ping timeout: 258 seconds]
bougyman has joined #ruby-lang
<TheToad>
NoMethodError: undefined method `formatPrettyError' for Helper:Module
go|dfish has quit [Quit: SIGQUIT]
taylorrf has quit [Remote host closed the connection]
seank_ has quit [Read error: Connection reset by peer]
seank__ has joined #ruby-lang
karamazov has joined #ruby-lang
dagda1_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<banister>
TheToad you need to extend the module instead of including it
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby-lang
torrieri has joined #ruby-lang
JohnBat26 has joined #ruby-lang
<yorickpeterse>
such weekend activity
<yorickpeterse>
very busy
yatish27_ has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby-lang
ikrima has joined #ruby-lang
xcesariox has joined #ruby-lang
ikrima has quit [Ping timeout: 240 seconds]
benlovell has joined #ruby-lang
benlovell has quit [Ping timeout: 272 seconds]
<yxhuvud>
such typing.
hellangel7 has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 250 seconds]
hellangel7 has joined #ruby-lang
taylorrf has joined #ruby-lang
taylorrf has quit [Ping timeout: 258 seconds]
<ljarvis>
moin
bougyman has quit [Read error: Connection reset by peer]
imperator has quit [Quit: Valete!]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davidblurton has quit [Ping timeout: 255 seconds]
Lewix has quit [Remote host closed the connection]
cubicme_ has joined #ruby-lang
cubicme has quit [Ping timeout: 272 seconds]
cubicme_ is now known as cubicme
Elite6809 has joined #ruby-lang
Lewix has joined #ruby-lang
cubicme has quit [Quit: cubicme]
cornerma1 has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
<yorickpeterse>
Having a support conversation on the Twitters with Booking.com. This is somewhat ironic, as I detest that company more than a plague of rats