apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
baweaver has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
x1337807x has joined #ruby
baweaver has joined #ruby
x1337807x has quit [Max SendQ exceeded]
cassianoleal has joined #ruby
x1337807x has joined #ruby
supersym has joined #ruby
nkumari has quit [Remote host closed the connection]
momomomomo_ has joined #ruby
rshetty has joined #ruby
geggam has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
aaronrl has joined #ruby
bMalum has quit [Ping timeout: 240 seconds]
FutureTense has quit [Ping timeout: 244 seconds]
bMalum has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
adriancb has quit [Remote host closed the connection]
Asher has quit [Read error: Connection reset by peer]
Dopagod has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
aaronrl has left #ruby [#ruby]
adriancb has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dts has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
MartynKeigher has joined #ruby
rshetty has quit [Ping timeout: 256 seconds]
Guest36707 has quit [Ping timeout: 260 seconds]
yokel has quit [Ping timeout: 245 seconds]
jbw has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
karmatr0_ has quit [Remote host closed the connection]
nkumari has joined #ruby
JoshGlzBrk has quit [Ping timeout: 272 seconds]
shvelo has quit [Ping timeout: 245 seconds]
tekacs has joined #ruby
tekacs is now known as Guest70651
jbw has joined #ruby
santi2010 has joined #ruby
lukeholder has joined #ruby
Asher has joined #ruby
<santi2010> Hi guys! Had any of you worked with hebrew characters in ruby? Im dealing with a problem.
tvw has quit []
redjack1964 has quit [Remote host closed the connection]
xymbol has quit [Quit: Be back later ...]
Tranquility has quit [Ping timeout: 272 seconds]
Tranquility has joined #ruby
xymbol has joined #ruby
lbrf has quit [Quit: Be back later ...]
poweratom__ has quit [Ping timeout: 252 seconds]
baweaver has quit [Remote host closed the connection]
kl has quit [Ping timeout: 245 seconds]
wjimenez_ has joined #ruby
xymbol has quit [Ping timeout: 256 seconds]
parabolize has joined #ruby
rshetty has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
<benzrf> santi2010: oh?
crack_user has quit [Ping timeout: 258 seconds]
cassianoleal has quit [Quit: (null)]
toretore has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
<santi2010> benzrf: Im using Curb gem and Nokogiri to get some info form a website. The website is in Jewish. But when I show the characters in the console, I dont see them correctly. Im using UTF-8 for enconding. Any idea how to solve that?
<benzrf> "in jewish"?
wjimenez5271 has quit [Ping timeout: 255 seconds]
<benzrf> santi2010: how incorrectly
s00pcan has quit [Remote host closed the connection]
<benzrf> santi2010: backwards?
adriancb has quit [Read error: Connection reset by peer]
<volty> :)
wjimenez_ has quit [Ping timeout: 255 seconds]
<volty> check the encoding of the page, first of all (I am not saying that this is the prob)
rshetty has quit [Ping timeout: 250 seconds]
adriancb has joined #ruby
<eam> I've worked with some hebrew characters in ruby. They're like any other developers
<benzrf> ‮ sdrawkcab
mikepack_ has quit [Remote host closed the connection]
b3itz has joined #ruby
<volty> santi2010: try copy & paste - from the web page to your console "<pasted>" and see if it prints ok
sklik has joined #ruby
<santi2010> benzrf: Instead of this סוכן מטפל, I get this: âøéðùèééï
<b3itz> eam: are you alive?
<benzrf> santi2010: whoa
dcunit3d has quit [Ping timeout: 244 seconds]
<santi2010> volty: I already try it, and they printed ok
<santi2010> benzrf: Any clue?
<Obfuscate> santi2010: Your terminal needs to have support for utf8, and at least one of your current system LOCALE/LANG encodings should be UTF-8.
ghr has joined #ruby
<volty> maybe a check point could help
<benzrf> santi2010: little
cirn0 has joined #ruby
<santi2010> Obfuscate: If I copy and paste the hebew characters in the terminal, and I do something like this : puts "סוכן מטפל" , I cant see it ok.
<b3itz> how can i do a rjust range like .to_s.rjust({1,3}, '0')
<Obfuscate> santi2010: Can or cant?
<b3itz> such if a number is 4, it will fill in 004
rshetty has joined #ruby
<shevy> b3itz is that what rjust will do
nonks_ has joined #ruby
<b3itz> was that a question?
boombadaroomba has quit [Remote host closed the connection]
<shevy> yeah
<b3itz> -__-
<b3itz> so will just fill in 1 through 3?
<shevy> >> 'abc'.rjust(5, '0')
<eval-in__> shevy => "00abc" (https://eval.in/229628)
<b3itz> ohhhhhhhhhhhh
cirn0 has quit [Client Quit]
<shevy> so it filled up to 5 characters
<shevy> which means 'abc' length 3, difference 2, will become filled with '0'
<shevy> not sure what you want to do with 1,3 ... 1 up to 3? random? :)
<b3itz> the input file is a bunch of garbage from an iis log
<volty> >> 1.to_s.rjust(20), 'shevy rules ')
<eval-in__> volty => /tmp/execpad-c1492883ef25/source-c1492883ef25:2: syntax error, unexpected ',', expecting keyword_end ... (https://eval.in/229630)
<b3itz> i need to pick out the valid ip addresses and format rjust them
<shevy> volty ERROR
oo_ has joined #ruby
<shevy> b3itz can you give an example for how one line in match_array looks like?
x1337807_ has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
<volty> >> 1.to_s.rjust(200, 'shevy rules ')
<eval-in__> volty => "shevy rules shevy rules shevy rules shevy rules shevy rules shevy rules shevy rules shevy rules shevy rules shevy rules shevy rules shevy rules shevy rules shevy rules shevy rules shevy rules shevy r1 ... (https://eval.in/229633)
<shevy> lol
santi2010 has quit [Ping timeout: 246 seconds]
<shevy> txdv, you have competition
<rpag> >> "shexy time" * 2000
<eval-in__> rpag => "shexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy timeshexy time ... (https://eval.in/229634)
<rpag> typo'ed your name shevy
<shevy> well that is what a line of the log looks like I guess:
<shevy> 2014-09-10 00:08:36 192.168.220.48 POST /UAT4/fhlb.crm.web/ - 80 USERINTRANET\MasonSW 192.168.220.9 Mozilla/5.0+(Windows+NT+6.1;+WOW64;+Trident/7.0;+rv:11.0)+like+Gecko 200 0 0 936
<shevy> so let's see what your code does:
<shevy> match_array = line.scan(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)
sambao21 has quit [Quit: Computer has gone to sleep.]
<b3itz> so for instance 192.168.220.9 needs to be formatted to 192.168.220.009
s00pcan has joined #ruby
<shevy> aha ok well I would filter this through a method
<rpag> whats the point of that?
nonks_ has quit [Ping timeout: 250 seconds]
rshetty has quit [Ping timeout: 264 seconds]
<shevy> and inside of that method ensure that it will have the desired outcome
<shevy> match_array = line.scan(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/) # => ["192.168.220.48", "192.168.220.9"]
<shevy> b3itz is this correct?
<b3itz> corect shevy
<b3itz> correct
<shevy> rpag you are a curious person :) I always try to not have to think why people need something hahaha
rshetty has joined #ruby
x1337807x has quit [Ping timeout: 240 seconds]
santi2010 has joined #ruby
<santi2010> Obfuscate, benzrf, volty: If I print a Nokogiri node as raw html, I get something like this: &agrave;&aring;&oslash;&eacute; &aring;&oslash;&atilde;&eacute;
<shevy> b3itz yes I would really write a method that does that
stunder has quit [Quit: Screw you guys I'm going home]
<shevy> b3itz poor man solution is to simply .split('.'), properly pad the last entry, then rejoin it again
<b3itz> shevy: write it in its own def?
<shevy> sure, a method
<shevy> def whatever(i); end
<b3itz> thats exactly what my prof said to do
<shevy> I think there is another way though
<santi2010> Obfuscate, benzrf, volty: Did you say something? My chat had a problem and get disconected.
<b3itz> not the method part
<shevy> using the IP module
spastorino has joined #ruby
freerobby has joined #ruby
<b3itz> the 'poor man way'
sevenseacat has left #ruby [#ruby]
parduse has quit [Ping timeout: 255 seconds]
<shevy> yes, it's to not try to be too clever and instead simply go and solve the problem
<shevy> regardless of how stupid the solution is
<Obfuscate> santi2010: Can you see the correct characters when pasting to the terminal?
<rpag> >> "shevy got style" * 1_000
<eval-in__> rpag => "shevy got styleshevy got styleshevy got styleshevy got styleshevy got styleshevy got styleshevy got styleshevy got styleshevy got styleshevy got styleshevy got styleshevy got styleshevy got styleshevy ... (https://eval.in/229640)
<santi2010> Obfuscate: Yes I can.
<b3itz> shevy: i dont really know what you mean
<shevy> b3itz which part
<b3itz> what you just said about being too clever
<shevy> did you start to write the method yet
klmlfl has quit [Remote host closed the connection]
<shevy> oh that
<shevy> the poor man way
<shevy> simply solve the problem regardless of how other clever solutions work
<b3itz> so that was my question
<b3itz> keep it as spit and put that in its own method?
<b3itz> split
<shevy> we don't wanna spit
<b3itz> :P
<shevy> yes, .split
<Obfuscate> santi2010: What ruby version? Have you tried the --encoding options?
<shevy> and then .join again once the array is proper
rshetty has quit [Ping timeout: 256 seconds]
rshetty has joined #ruby
<shevy> x = "192.168.220.9"; splitted = x.split '.'; x[-1,1] = x[-1,1].rjust(3,'0'); x.join('.')
<shevy> >> x = "192.168.220.9"; splitted = x.split '.'; x[-1,1] = x[-1,1].rjust(3,'0'); x.join('.')
<eval-in__> shevy => undefined method `join' for "192.168.220.009":String (NoMethodError) ... (https://eval.in/229641)
<shevy> god damn it
<shevy> >> x = "192.168.220.9"; splitted = x.split '.'; splitted[-1,1] = splitted[-1,1].rjust(3,'0'); splitted.join('.')
<eval-in__> shevy => undefined method `rjust' for ["9"]:Array (NoMethodError) ... (https://eval.in/229642)
<shevy> god damn it
<shevy> it's too late
<santi2010> Obfuscate: ruby 2.1.2p95 . No, I haven't. I guess the problem is with Curb gem or Nokogiri.. Did you ever worked with any of them?
<shevy> >> x = "192.168.220.9"; splitted = x.split '.'; splitted[-1,1] = splitted[-1,1].first.rjust(3,'0'); splitted.join('.')
<eval-in__> shevy => "192.168.220.009" (https://eval.in/229643)
<shevy> <b3itz> so for instance 192.168.220.9 needs to be formatted to 192.168.220.009
<volty> the prob is with nokogiri, they say
<b3itz> shevy: do i want to do this https://gist.github.com/anonymous/3281f576eead49050b87 and just put only the matchArray in the def, or include the split thing
<shevy> b3itz you want your method to give you the desired result
<volty> or with us that do not know how to setup it properly
<b3itz> shevy: ew dude thats ugly
<shevy> lol
<santi2010> volty: Who says?
<shevy> b3itz ok show me your code that does it
<b3itz> :)
<shevy> btw b3itz save such gist in a .rb end ok? then it will be automatically colourized - right now you stored as .txt
<Obfuscate> santi2010: I have not. Your problem is presumably just an encoding mismatch, so I'd check the help for Encoding, and then try to find out what terrible things are happening inside those libraries.
<volty> google.com/search?q=nokogiri+hebrew
davedev2_ has quit [Ping timeout: 244 seconds]
dfinninger has joined #ruby
xymbol has joined #ruby
beef-wellington has joined #ruby
<b3itz> shevy: whats this splitted[-1,1]
<Obfuscate> Yes, consulting with google is (hopefully) an obvious step.
<shevy> b3itz we access the last member
<momomomomo> >> [1,2,3,4,5][-1,1]
<eval-in__> momomomomo => [5] (https://eval.in/229644)
davedev24_ has joined #ruby
<shevy> b3itz yeah look at momomomomo's example
<shevy> the , should be optional there
<momomomomo> >> %w[try things in irb][-1]
<eval-in__> momomomomo => "irb" (https://eval.in/229645)
<shevy> but I like it, so I keep it
<b3itz> i dont get it... like, how does that exactly work?
<b3itz> whats [-1,1] have anything to do with it?
<Obfuscate> x[y,z
<shevy> b3itz don't you see it man
<shevy> <b3itz> so for instance 192.168.220.9 needs to be formatted to 192.168.220.009
<shevy> <shevy> >> x = "192.168.220.9"; splitted = x.split '.'; splitted[-1,1] = splitted[-1,1].first.rjust(3,'0'); splitted.join('.')
<shevy> <eval-in__> shevy => "192.168.220.009"
dfinninger has quit [Ping timeout: 250 seconds]
<momomomomo> -1 means the last item
<shevy> you know what .split does?
Avahey has quit [Quit: Connection closed for inactivity]
<shevy> b3itz what will .split give you
<b3itz> thanks momomomomo
<momomomomo> >> “111.222.333.444”.split[‘.’]
<momomomomo> damn you eval!
<momomomomo> >> p ‘hello'
rshetty has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
devoldmx has quit [Ping timeout: 244 seconds]
devoldmx has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
tokik has joined #ruby
santi2010 has quit [Ping timeout: 246 seconds]
linojon has quit [Quit: linojon]
Photism has quit [Quit: Leaving]
Sawbones_ has joined #ruby
charlenopires has joined #ruby
<rpag> momomomomo, the bot can't handle non-ascii chars
<rpag> no idea why
<eam> >> % % << 1
<eval-in__> eam => "%\u0001" (https://eval.in/229651)
lucyinthesky is now known as mygreekgod
<mozzarella> >> "111.222.333.444".split['.']
<eval-in__> mozzarella => no implicit conversion of String into Integer (TypeError) ... (https://eval.in/229652)
<mozzarella> >> "111.222.333.444".split('.')
<eval-in__> mozzarella => ["111", "222", "333", "444"] (https://eval.in/229654)
atomi has quit [Quit: brb]
byprdct has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
<momomomomo> hm
lmickh has quit [Remote host closed the connection]
niftylettuce has joined #ruby
Sawbones_ has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
atomi has joined #ruby
psy_ has quit [Ping timeout: 272 seconds]
<rpag> >> [1,2,3,4].map { |c| c.to_s.rjust(3, '0') }.join '.'
<eval-in__> rpag => "001.002.003.004" (https://eval.in/229655)
timonv_ has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
uptownhr has quit [Ping timeout: 246 seconds]
gsd has joined #ruby
gsd has quit [Client Quit]
dts|pokeball has joined #ruby
p0wn3d_mhs has joined #ruby
<dts|pokeball> there is a ruby eval bot right?
charlenopires has quit [Ping timeout: 244 seconds]
timonv_ has quit [Ping timeout: 272 seconds]
ghostmoth has quit [Quit: ghostmoth]
Dopagod has joined #ruby
<parabolize> >> '10.10.10.2'.split('.').collect{|oct| oct.rjust(3, '0')}.join('.')
<eval-in__> parabolize => "010.010.010.002" (https://eval.in/229658)
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
<b3itz> i give up
wjimenez5271 has joined #ruby
<b3itz> that never sets the rjust
<b3itz> just an array as a string
<b3itz> or, array containing 3 strings
<b3itz> ["192", "168"... etc]
<b3itz> *4
redjack1964 has joined #ruby
CrazyM4n has joined #ruby
Musashi007 has quit [Quit: Musashi007]
sevenseacat has joined #ruby
djbkd has quit [Read error: Connection reset by peer]
<mozzarella> b3itz: what are you trying to do?
asteros has quit [Quit: asteros]
ejfinneran has joined #ruby
JoshGlzBrk has joined #ruby
<volty> >> "1.23.234.3".gsub(/\d+/) { |n| n.rjust(3, '0') }
<eval-in__> volty => "001.023.234.003" (https://eval.in/229660)
crack_user has joined #ruby
JoshGlzBrk has quit [Client Quit]
linojon has joined #ruby
StephenA1 has quit [Quit: StephenA1]
Loplin has joined #ruby
<Loplin> Hello. Has anyone here had luck installing nokogiri on ubuntu 14.04?
<momomomomo> Loplin: what’s the issue you’re having?
<mozzarella> yes
<volty> i have nokogiri. What 14.04 has to tdo it ?
<volty> with it
<momomomomo> !gist
<helpa> http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
<volty> ah, you are trying to install it as an ubuntu package
<momomomomo> :|
devoldmx has quit [Ping timeout: 258 seconds]
<Loplin> volty: no, I have tried installing it multiple ways (and multiple versions) through gem install
<momomomomo> Loplin: !errors
<momomomomo> Loplin: !code
<helpa> Loplin: We cannot help you with your problem if you don't show us your code. Please put it on http://gist.github.com and give us the URL so we can see it.
<Loplin> Just a sec
asteros has joined #ruby
<volty> whatever the prob, a gem install has nothing to do with ubuntu's version
emmesswhy has joined #ruby
emmesswhy has quit [Remote host closed the connection]
<rpag> !pastie
<rpag> !paste
<rpag> w.e
<Loplin> Gathering relevant things to paste..
mygreekgod has quit [Quit: There is another world]
econerd4ever has joined #ruby
<mozzarella> !pastebin
mary5030 has joined #ruby
fabrice31 has joined #ruby
ghr has joined #ruby
nyanz has quit [Ping timeout: 245 seconds]
bklane has quit [Remote host closed the connection]
sklik has quit [Remote host closed the connection]
dts|pokeball has left #ruby [#ruby]
<Loplin> This is after googling around for a number of hours. Various recommendations included apt-getting build-essentials, libxml2-dev, libxslt-dev, trying various versions, and trying with --use-system-libraries
nonks_ has joined #ruby
<momomomomo> did you do that
<gr33n7007h> Loplin, sudo apt-get install ruby-dev
<Loplin> momomomomo: .. yes
moritzs has joined #ruby
<Loplin> gr33n7007h: I did that, and also tried ruby2.0 + ruby2.0dev
econerd4ever has quit [Client Quit]
davasaurous has quit [Remote host closed the connection]
<momomomomo> not sure why the sudo is there
ghr has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
fabrice31 has quit [Ping timeout: 255 seconds]
<volty> yes, why did you paste 'sudo' instead of pasting the exact command you gave ?
bricker`work has quit [Ping timeout: 264 seconds]
<momomomomo> because it’s being installed on system ruby :|
nateberkopec has joined #ruby
<Loplin> I have trouble copy+pasting on my laptops trackpad... made an error it looks like... I'll recopy that
VBlizzard has joined #ruby
tyfighter has quit [Quit: tyfighter]
<Loplin> that line was ....# sudo gem install nokogiri
marr has quit [Ping timeout: 272 seconds]
<Loplin> momomomomo: Yes, it is running on vm, I wasn't concerned about cluttering system
Musashi007 has joined #ruby
<momomomomo> you probably spent more time messing around with that and apt-get install ruby2 and removing 1.9.1 than might have been needed
<Loplin> momomomomo: I literally only want to attempt some changes in vagrant, then destroy the vm
<volty> without -- --use-system-libraries
Sgeo_ has joined #ruby
Blizzy has quit [Ping timeout: 255 seconds]
<Loplin> volty: That was only the most recent attempt I made, I could give a log of every attempt I've made, including the various versions I've tried, with and without --use-system-libraries if that level is needed
Blizzy has joined #ruby
<Loplin> momomomomo: Perhaps. I'm not a ruby developer so I am not familiar with the tools and didn't expect this much difficulty
<volty> whatever your difficulties with pasting it is quite quite strange to paste the ERROR and then checking checking ....
<momomomomo> with any system language, it’s usually a bad idea to mess with it
VBlizzard has quit [Ping timeout: 258 seconds]
Sgeo_ has quit [Read error: Connection reset by peer]
robustus has quit [Ping timeout: 255 seconds]
lucyinthesky has joined #ruby
ghostmoth has joined #ruby
Galas has quit [Quit: Leaving...]
<Loplin> volty: Not sure what you mean by "checking checking.."?
Sgeo has quit [Ping timeout: 244 seconds]
<Loplin> momomomomo: Err, I've never had a problem installing to python's system libraries
<momomomomo> you do when the default python is not the version you need; and then you overwrite it
<Loplin> momomomomo: unless you mean changing to use ruby2.0, but I tried ruby and ruby-dev first
Sgeo has joined #ruby
<momomomomo> anyhow, installing ruby2 now on 14.04
byprdct has quit [Ping timeout: 256 seconds]
<momomomomo> i’ll let you know in a second
<volty> i can't remember the order of output, but it seems strange that you have 'Failed' and then, on, checking for the rest
<Loplin> I'll be right back, running low on battery...
<momomomomo> volty: probably has to do with a bad copy paste
<volty> naaaa
<volty> let him paste properly, he can redirect everything to a file, he is not a novice
<Loplin> Oh... haha, let me recopy.. My terminal messed up after doing an apt-get that messed it up
robustus has joined #ruby
<Loplin> scrolling back is old data and I forgot abou tthat
TheNet has quit [Remote host closed the connection]
claptor has joined #ruby
<momomomomo> Loplin: redirect to file, paste file
<Loplin> but I need to go find an outlet, so I'll be back in about 5 min.
roolo has joined #ruby
<volty> there are some trolls around breaking eggs with strange problems. I am not stating that he is a troll, I just warn you about their presence
TheNet has joined #ruby
ghostmoth has quit [Client Quit]
nonks_ has quit [Remote host closed the connection]
Vile` has quit [Quit: .]
<volty> (and I smell them quite well)
x1337807_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jonr22 has joined #ruby
<gr33n7007h> >> "192.168.220.48".split('.').chunk {|z| z }.map {|x,y| x.rjust(3, '0') }.join('.')
<eval-in__> gr33n7007h => "192.168.220.048" (https://eval.in/229663)
<volty> you missed the mine one? :)
sdwrage has joined #ruby
gsd has joined #ruby
<momomomomo> Loplin: Just installed for me on ruby 2.1.5
lucyinthesky has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<volty> >> "23.4.234.32".gsub(/\d+/) { |d| d.rjust(3, '0') }
<eval-in__> volty => "023.004.234.032" (https://eval.in/229664)
AlexRussia has quit [Ping timeout: 255 seconds]
beef-wellington has quit [Ping timeout: 272 seconds]
Loplin has quit [Ping timeout: 264 seconds]
Sawbones_ has joined #ruby
roolo has quit [Ping timeout: 250 seconds]
Loplin has joined #ruby
<volty> >> puts "23.4.234.32".gsub(/\d+/, '\0'.rjust(3, '0')); puts "what a pity!"
<eval-in__> volty => 023.04.0234.032 ... (https://eval.in/229665)
<gr33n7007h> oh, I thought he just wanted the last octed padding if less then 3 :)
yetanotherdave has quit [Ping timeout: 240 seconds]
jonr22 has quit [Ping timeout: 255 seconds]
Vile` has joined #ruby
<volty> gr33n7007h: not sure, but I think everything.
<volty> Loplin troller gone ?
jimbach has joined #ruby
aspires has quit []
<momomomomo> volty: not a troll, just not correct
<volty> why does '\0' substitution does not work
<momomomomo> but yeah, ping timeout
micah has joined #ruby
<volty> he's a troll, i recognize them, they miss logic
<gr33n7007h> doesn't make sense to me to pad anyway but hey ho!
Sawbones_ has quit [Remote host closed the connection]
<volty> because 'the lies have short legs' (translation from italian, same in english? )
<Loplin> volty: Uhm.. I am not gone, and I'm not sure why you think I am a troll.
Vile` has quit [Remote host closed the connection]
Sawbones_ has joined #ruby
<momomomomo> Loplin: It installed on ruby 2.1.5
TheNet has quit [Remote host closed the connection]
razieliyo_ has quit [Quit: Saliendo]
<momomomomo> or whatever ruby manager you wish
TheNet has joined #ruby
<micah> how can I pull the values for contact_emails if I have a yaml file with environments: development: contact_emails: - email@example.com ? I'm doing @environments.keys.sort.each do |env_name| and then trying to reference the hash with env_name[contact_emails] but that isn't right somehow
<momomomomo> micah: define “isn’t right somehow”
<Loplin> momomomomo: I'll give that a try. Is using apt's ruby not recommended then?
<momomomomo> not unless you know exactly what you’re doing
<micah> momomomomo: its not finding the value for contact_emails
<gr33n7007h> Loplin, I'm using apt's version installed fine for me ;)
Channel6 has joined #ruby
<momomomomo> what is the value of @envornments
<volty> let him redirect and paste everything
dda_ has joined #ruby
dda_ has quit [Client Quit]
davasaurous has joined #ruby
Sawbones_ has quit [Ping timeout: 258 seconds]
mistergibson has quit [Ping timeout: 245 seconds]
arescorpio has joined #ruby
<jhass> micah: literally env_name[contact_emails]? because that should be a string key and I guess you didn't do contact_emails = 'contact_emails' somewhere earlier. so env_name['contact_emails']
lucyinthesky has joined #ruby
dda has quit [Ping timeout: 258 seconds]
ramfjord has quit [Ping timeout: 264 seconds]
<micah> jhass: oh huh! that must be it
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
koderok has joined #ruby
Vile` has joined #ruby
koderok has quit [Remote host closed the connection]
dda has joined #ruby
<volty> ahah, succeeded to consult the meanwhile-log with that crappy trackpad
<micah> jhass: contact_emails is actually an array, so I think I need to figure out how I can get the values of an array that is in a hash
<volty> what's the gem command to list the dependencies ?
sinequan_ has quit [Remote host closed the connection]
<jhass> micah: time to do as you've been told then, share the actual errors you get (those of my suggestion too)
workmad3 has joined #ruby
mary5030 has quit [Ping timeout: 272 seconds]
pietr0 has quit [Quit: pietr0]
snowpeas has joined #ruby
lucyinthesky is now known as myvoodoodoll
<gr33n7007h> volty, gem dependency <gem>
b3itz has quit [Ping timeout: 246 seconds]
Tranquility has quit [Quit: Connection closed for inactivity]
mistergibson has joined #ruby
mji has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
<volty> gr33n7007h: that simple? I never needed it. Thx ;)
<gr33n7007h> np :)
Sawbones_ has joined #ruby
abuzze has joined #ruby
arescorpio has quit [Remote host closed the connection]
<volty> any of you that has nokogiri + qtruby installed: please try: require 'Qt'; require 'nokogiri'; Qt::Application.new(ARGV) // and that's all, here it segfaults
supersym has quit [Ping timeout: 244 seconds]
abuzze_ has quit [Ping timeout: 250 seconds]
myvoodoodoll has left #ruby ["Leaving"]
lampd1 has joined #ruby
dda has quit [Quit: logging out.]
fuhgeddaboudit has joined #ruby
TheNet has quit [Quit: Leaving...]
Sawbones_ has quit [Remote host closed the connection]
arescorpio has joined #ruby
wallerdev has quit [Quit: wallerdev]
deric_skibotn has quit [Ping timeout: 240 seconds]
adriancb has quit [Remote host closed the connection]
<Loplin> volty: I redid the entire process of that command and and repasted it as a comment just for you: https://gist.github.com/nspaeth/5cb803ee94bfb254ec91
<Loplin> In the mean time I'm going to try momomomomo's suggestion.
magikfx has joined #ruby
jherbst has joined #ruby
Sawbones_ has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
wjimenez5271 has quit [Remote host closed the connection]
ghr has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nyanz has joined #ruby
mary5030 has joined #ruby
boombadaroomba has joined #ruby
rshetty has joined #ruby
yfeldblum has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
boombadaroomba has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
ruber has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
ruber has quit [Client Quit]
krz has joined #ruby
mary5030 has quit [Remote host closed the connection]
Darth-Fudd has joined #ruby
samsquanch has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has joined #ruby
lemur has joined #ruby
Phrohdoh has joined #ruby
Darth-Fudd is now known as DarthFudd
<Phrohdoh> This is frustrating. How do I properly check a bool value of an object type? My Cell type has an :alive attribute (property?) that in the initialize method is set to false, the line world.cells.find_all { |c| c.alive } is throwing an error
troyready has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
<Phrohdoh> How should I fix that query? The error is: undefined method `alive?' for #<Array:0x007f8650a17718> (NoMethodError)
<Phrohdoh> It persist if I remove the `?`
giuseppesolinas has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
<Phrohdoh> oh huh wait sorry, world.cells is an array of arrays
mgorbach has quit [Ping timeout: 250 seconds]
mbeasley has joined #ruby
lucyinthesky has joined #ruby
PanPan has joined #ruby
rshetty has quit [Remote host closed the connection]
adriancb has joined #ruby
<Phrohdoh> Got it, this is an odd syntax :)
Phrohdoh has left #ruby [#ruby]
mgorbach has joined #ruby
karmatr0n has joined #ruby
tyll has joined #ruby
Loplin has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
solidus-river has quit [Ping timeout: 264 seconds]
mbeasley has quit [Quit: WeeChat 1.0.1]
tyfighter has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
tyll_ has quit [Ping timeout: 258 seconds]
fandi has quit [Ping timeout: 245 seconds]
timonv_ has quit [Ping timeout: 240 seconds]
volty has quit [Quit: Konversation terminated!]
evanjs has joined #ruby
graydot has quit [Quit: graydot]
asteros has quit [Quit: asteros]
Phrohdoh has joined #ruby
<Phrohdoh> How can I make the Cell x,y correct here? I tried adding local variables x and y and incrementing them in the appropriate spots but then I get some odd error about `alive=`: https://gist.github.com/Phrohdoh/eb74560e241b21e7c968#file-gameoflife-rb-L26-L30
Sawbones_ has quit [Remote host closed the connection]
lbrf has joined #ruby
momomomomo has quit [Quit: momomomomo]
postmodern has quit [Ping timeout: 258 seconds]
oo_ has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
nerdy has joined #ruby
phutchins has quit [Ping timeout: 258 seconds]
wsmoak has quit [Quit: wsmoak]
Loplin has joined #ruby
nateberkopec has quit [Quit: Leaving...]
arup_r has joined #ruby
kapil__ has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
StephenA1 has joined #ruby
postmodern has joined #ruby
postmodern has quit [Changing host]
postmodern has joined #ruby
moritzschaefer has joined #ruby
<Phrohdoh> yeah I know how to make arrays
<Phrohdoh> I have a new problem now
armyriad has joined #ruby
Megtastique has joined #ruby
commmmodo has joined #ruby
<Phrohdoh> If I add y = 0 if y == 2 after https://gist.github.com/Phrohdoh/eb74560e241b21e7c968#file-gameoflife-rb-L33 I get a complaint about a nil object
kl has joined #ruby
asteros has joined #ruby
<benzrf> rmagick help pls
hydrozen has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
<benzrf> convert +antialias -background white -fill black -font ~/.fonts/BUD-Pixel.ttf -pointsize 200 'label:foo -trim out.png
<benzrf> ^why this not work
<benzrf> er. rather.
<benzrf> i read image 'label:foo'
<benzrf> then i add those props to a Draw
<benzrf> then i do the_draw.draw img
<benzrf> it does not help
moritzs has quit [Ping timeout: 256 seconds]
fabrice31 has joined #ruby
kl has quit [Ping timeout: 264 seconds]
hydrozen has quit [Client Quit]
asteros has quit [Client Quit]
CrazyM4n has quit [Quit: Lost terminal]
fabrice31 has quit [Ping timeout: 272 seconds]
tejas-manohar has joined #ruby
<tejas-manohar> hey guys
lucyinthesky has quit [Quit: Leaving]
<tejas-manohar> is there !== in ruby like there is in js
<tejas-manohar> or just !=
<Phrohdoh> !=
<tejas-manohar> so i can access @vars under all routes and methods in a ruby file (part of sinatra app)
<tejas-manohar> since its instance var
<tejas-manohar> ?
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
lucyinthesky has joined #ruby
<Phrohdoh> afaik routes is a rails thing, not pure ruby. But you could access it under a passed reference to the object containing it, or if you pass it (@vars) directly
<jhass> Phrohdoh: that's because of it's the last expression in your block, so it becomes its return value and anything if false #=> nil
<jhass> so you add nil's to your array
<Phrohdoh> yeah just figured that out
goodenough has quit [Remote host closed the connection]
<Phrohdoh> I forgot that construct of ruby
<Phrohdoh> fixed it, thanks though :)
ajaiswal has joined #ruby
versatiletech has joined #ruby
<jhass> replace do |r| with do |x| btw
<Phrohdoh> no thanks, that throws off coords
<jhass> > Array.new(3) {|x| x }
djbkd has joined #ruby
<jhass> > Array.new(3) {|x| x }>
<Phrohdoh> and r and c make sense
<jhass> bah, sorry, pebkac
<Phrohdoh> pebkac?
<jhass> problem exists between keyboard and chair ;)
<Phrohdoh> I'm not having an issue here :)
<jhass> anyway, r and c can't mean anything, they're single letter vars ;P
<Phrohdoh> sure they can
<jhass> I'm saying they're bad variable names
<Phrohdoh> perhaps, but they make sense to me and atm no one else is using the codebase
<sevenseacat> lol
<jhass> in the code you posted they look like redundant placeholders because you think you need to specify them
<Phrohdoh> they're pretty context heavy
<Phrohdoh> I was told you have to to iterate
<jhass> one more reason
<pontiki> row and column?
<Phrohdoh> yep
lemur has quit [Ping timeout: 264 seconds]
<pontiki> seems like the obvious meaning, anyway, given GoL
yfeldblum has joined #ruby
<jhass> I'd still write that out
asteros has joined #ruby
<jhass> world.cells.each do |arr| arr is not nice too, it describes the datastructure not the value
<jhass> I'd go with cells there
<Phrohdoh> but it isn't a cell
<Phrohdoh> it is an array
preyalone has quit [Quit: Connection closed for inactivity]
<jhass> it's an array of cells
<jhass> hence cells
<jhass> same for c above
<jhass> see, you're not even consistent there
<Phrohdoh> I never claimed to be..?
<pontiki> that might make more sense as `world.rows.each do |row|`
gsd has quit [Ping timeout: 240 seconds]
jonr22 has joined #ruby
<jhass> it should be your ethos as a programmer! ;P
jswe has joined #ruby
<jhass> oh, yeah and ^
<Phrohdoh> I'd rather learn the language first, then worry about upsetting someone over syntax/var names
<jhass> I'd say it's an important part
<Blizzy> is Rubygems DNS still down?
<Phrohdoh> except rows and cols are numbers, not arrays
<jhass> so you still know the next day what the hell that is about
asteros has quit [Client Quit]
<Phrohdoh> I do know :|
<jhass> that's what you're thinking now
<Phrohdoh> and if not, my commit messages will hopefully cue me in
<sevenseacat> lol
commmmodo has quit [Ping timeout: 245 seconds]
<pontiki> "A foolish consistency is the hobgoblin of little minds, adored by little statesmen and philosophers and divines." :D
<versatiletech> What is line 3 and 6 in terms of terminology, not what they do? These don't look like class properties. My understanding is that class properties start with @@? http://pastebin.com/mYuk680Q
<sevenseacat> 'instead of giving my variable a meaningful name, ill trawl through commit messages trying to find out what it means'
oo_ has joined #ruby
<Phrohdoh> sevenseacat: they are meaningful to me in context
<sevenseacat> yeah, right now
<pontiki> however, in software development, consistency is the property of holding things together, and is the direct product of work ethic
<Phrohdoh> they make sense in context
<Phrohdoh> sure if you read a single line you won't understand
<sevenseacat> if they didnt mean anything to you right now, i'd be loling even more
<Blizzy> thanks, jhass.
<jhass> versatiletech: that are 3 method calls
commmmodo has joined #ruby
<pontiki> anyway, Phrohdoh, you are free to choose as you see fit
<Phrohdoh> yep
<jhass> config, encoding= and filter_parameters=
<jhass> the later two happening on the object returned by config
<sevenseacat> but it will hinder the help you get.
<versatiletech> jhass: oh I see now
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
commmmodo has quit [Client Quit]
gee_totes has quit [Quit: Lost terminal]
<versatiletech> when are these called? Once after initializing the class?
crack_user1 has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
crack_user has quit [Ping timeout: 264 seconds]
gsd has joined #ruby
<jhass> versatiletech: as the interpreter encounters them
Techguy305 has joined #ruby
commmmodo has joined #ruby
<versatiletech> ah
<jhass> >> class Foo; puts 'hi'; end
<eval-in__> jhass => hi ... (https://eval.in/229687)
Phrohdoh has left #ruby [#ruby]
<versatiletech> and in whole what are those lines referred as in reference to a class?
<jhass> methods
emmesswhy has joined #ruby
commmmodo_ has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
Techguy305 has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
commmmodo has quit [Ping timeout: 256 seconds]
commmmodo_ is now known as commmmodo
goodenough has joined #ruby
<versatiletech> jhass: http://pastebin.com/35bBPnpy lines 5-7 is a method, so lines 2-3 are also called methods? If I were to do a google search in general terms about lines 2-3 what would I use for keywords?
mgorbach has quit [Ping timeout: 245 seconds]
tyfighter has quit [Quit: tyfighter]
<jhass> 2/3 are method calls, 5-7 is a method definition
tyfighter has joined #ruby
<jhass> why don't you ask your actual question?
<versatiletech> that's my question
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> then why care about google
ejfinneran has quit [Remote host closed the connection]
tyfighter has quit [Client Quit]
<versatiletech> so if there's more information about it I'd like to investigate. I'm learning ruby. :)
krz has joined #ruby
<versatiletech> thanks for the help btw
mgorbach has joined #ruby
ebbflowgo has joined #ruby
<pontiki> versatiletech: skip googling at this stage, acquire a book on programming ruby
krz is now known as Guest74093
rshetty has joined #ruby
<jhass> or some coherent online resource at least, yeah
<jhass> don't patchwork it together yet
davedev24_ has quit []
<versatiletech> thanks I'll keep that in mind. So far I'm getting it. I'm just coming from different languages.
<jhass> also looks like you're diving straight into rails
Spami has quit [Quit: This computer has gone to sleep]
orionstein is now known as orionsaresh
<versatiletech> I'm very versed in MVC
<jhass> most people recommend getting a grab on ruby itself first, so you can tell apart what's rails and what's not
<sevenseacat> probably not a great idea
<versatiletech> yeah, I've seen rails adds a lot of stuff to vanilla ruby
<DarthFudd> Any generic advice about how to avoid using 'eval' in Ruby to (in effect) generate code? Factory classes, perhaps?
<pontiki> i'd recommend at this stage hopping into hartl's tutorial, which gives an intro to ruby along the way to learning rails
<versatiletech> awesome
<jhass> DarthFudd: instance_eval, define_method
<jhass> DarthFudd: you never need eval until you do templating
<jhass> and even there eval-less templating langs exist iirc
<DarthFudd> jhass: Thanks, I'll take a look.
<pontiki> also, i'd recommend black's book "well-grounded rubyist" for pre-rails intro to ruby
workmad3 has joined #ruby
<versatiletech> jotting these down
magikfx has left #ruby ["(null)"]
Loplin has quit [Ping timeout: 264 seconds]
<versatiletech> pontiki: you were referring to this? https://www.railstutorial.org/
rshetty has quit [Remote host closed the connection]
<pontiki> that's hartl's tutorial, yes
<versatiletech> ok thanks
<pontiki> black's book is at http://manning.com/black3/
mji has quit [Quit: Leaving]
nkumari has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
braincrash has quit [Quit: bye bye]
workmad3 has quit [Ping timeout: 252 seconds]
<totimkopf> There are people like Hartl who recommend learning Rails first so you can focus on the ruby that rails uses.
<sevenseacat> i think thats bad advice.
aspires has joined #ruby
rshetty has joined #ruby
lucyinthesky has quit [Quit: vou ali respirar.]
dhruvasagar has quit [Quit: ZNC - http://znc.in]
<pontiki> well, hmm. i thought he did an intro to ruby first.
<pontiki> i actually have never looked at the tutorial though, so i should stfu
<sevenseacat> unless thats a recent edition, no he didnt
<sevenseacat> *new in a recent edition
<pontiki> idk, it's heresay; someone told me that
braincrash has joined #ruby
<totimkopf> no, I don't think so. I know Agile rails introduces ruby first but it's not enough in my opinion :)
<KC9YDN> so, I want to input a certain string from within ruby but only copy whats after the argument
AlexRussia has joined #ruby
<KC9YDN> so like i have something life if input == "chdir ", I want to take everything that appears after chdir
DivineEntity has quit [Quit: Lost terminal]
<KC9YDN> s/life/like/
<jhass> KC9YDN: String#splt
<jhass> *split
Beoran__ has joined #ruby
<pontiki> when i started, way back when, AWDWR recommended highly learning ruby first; so i picked up black's "Ruby for Rails" book, which has evolved into "Well-Grounded Rubyist"
Techguy305 has joined #ruby
<KC9YDN> jhass: is there a way to do that w/o turning it into an array?
jjconti has quit [Remote host closed the connection]
<jhass> KC9YDN: what's wrong with doing it?
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lucyinthesky has joined #ruby
sklik has joined #ruby
Spami has joined #ruby
arup_r has quit [Quit: Leaving.]
Beoran_ has quit [Ping timeout: 240 seconds]
<KC9YDN> jhass: this is what I have so far. https://github.com/KC9YDN/rbcliftp/blob/master/rbcliftp.rb
<jhass> and that should change my answer?
PanPan has quit [Read error: Connection reset by peer]
<KC9YDN> No, I just thought you may possibly have a different method if you actually knew what I was doing
<KC9YDN> because I'm horrible at explaining things
<jhass> you can combine the two if's on ll. 30,35 btw: %w(y yes).include? correct
<lbrf> when you master it, it'll be easier to explain...
<jhass> also keep in mind that @instance_variables are local to an instance, they don't get magically transferred to another one ;)
<KC9YDN> I know
ryao has quit [Ping timeout: 272 seconds]
NoNMaDDeN has quit [Remote host closed the connection]
<tejas-manohar> yup
tejas-manohar has quit [Quit: Page closed]
ryao has joined #ruby
vinleod has joined #ruby
StephenA1 has quit [Quit: StephenA1]
bluOxigen has joined #ruby
pietr0 has joined #ruby
dfinninger has joined #ruby
dfinninger has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
kyb3r_ has joined #ruby
Guest74093 has quit [Quit: WeeChat 1.0.1]
oo_ has joined #ruby
krzkrz has joined #ruby
dfinninger has joined #ruby
krzkrz has quit [Client Quit]
krzkrz has joined #ruby
StephenA1 has joined #ruby
uber_hulk has joined #ruby
MartynKeigher has quit [Read error: Connection reset by peer]
pietr0 has quit [Client Quit]
niftylettuce has quit [Quit: Connection closed for inactivity]
rshetty has quit [Remote host closed the connection]
tejas-manohar has joined #ruby
<tejas-manohar> hey i wrote a short article about my ruby app
<tejas-manohar> *blog post
<tejas-manohar> anyone interested in cirtiquing it?
<tejas-manohar> for programming
adriancb has quit [Remote host closed the connection]
Apocalypse has joined #ruby
arescorpio has quit [Excess Flood]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
StephenA1 has quit [Quit: StephenA1]
ghr has joined #ruby
commmmodo has quit [Ping timeout: 244 seconds]
<pontiki> didn't you just mention that?
<lbrf> tejas-manohar: sure
<lbrf> tejas-manohar: link?
<tejas-manohar> was that a pm...?
<tejas-manohar> lbrf
<tejas-manohar> luckily gdrive has rev history :)
<lbrf> ok, i'm reading
Joufflu_ has quit [Quit: Leaving]
Joufflu has joined #ruby
Milk_weed has quit [Ping timeout: 255 seconds]
rshetty has joined #ruby
<tejas-manohar> lbrf: the parts that say [...] will be filled in w/ image/code snippet later
ghr has quit [Ping timeout: 258 seconds]
<tejas-manohar> like [screenshot of twitter developer console]
<lbrf> ok, i'm trying to correct it
freerobby has quit [Quit: Leaving.]
<tejas-manohar> lbrf: sure, also trying to make it as beginner friend;y as possible, anyways ill let you read now :)
russt has quit [Quit: russt]
sski has joined #ruby
russt has joined #ruby
jimbach has quit [Remote host closed the connection]
mbff has joined #ruby
<mbff> Hello! I have a question regarding json.
s00pcan has quit [Ping timeout: 258 seconds]
Mia has quit [Ping timeout: 240 seconds]
<tejas-manohar> ok
<mbff> And I would like to know how to search all the results and check the year value
<mbff> and return which result number (in this case 0 or 1) the year 1995 is located in
<pontiki> mbff: JSON.parse will turn it into a ruby object
<mbff> so I would want it to return 0
timonv_ has joined #ruby
uber_hulk has quit [Ping timeout: 250 seconds]
<tejas-manohar> ittll be a nice hash w/ json.parse
<mbff> mkay...
uber_hulk has joined #ruby
<pontiki> if you extract the results array, you should be able to get it with something like results.index {|item| item.year == '1995' }
<pontiki> or something like that anyway
<pontiki> index will return the array index of the first item that the block returns true for
<mbff> alright
lemur has joined #ruby
<pontiki> oh, might need to be item['year'] instead of item.year
moritzschaefer has quit [Ping timeout: 240 seconds]
timonv_ has quit [Ping timeout: 255 seconds]
<tejas-manohar> lbrf: is there a reaosn ur highlighting the word methods
maestrojed has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
rshetty has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
kiyote23 has quit [Ping timeout: 258 seconds]
Mia has joined #ruby
Mia has joined #ruby
realeyes has joined #ruby
realeyes has joined #ruby
anaeem1_ has joined #ruby
Lucky__ has joined #ruby
xcesariox has joined #ruby
Kamilion has quit [Ping timeout: 255 seconds]
rshetty has joined #ruby
Mia has quit [Read error: Connection reset by peer]
NoNMaDDeN has joined #ruby
Zamyatin has joined #ruby
Megtastique has quit []
anaeem1_ has quit [Ping timeout: 256 seconds]
poweratom_ has joined #ruby
mbff has quit [Ping timeout: 256 seconds]
psy_ has joined #ruby
nkumari has quit [Remote host closed the connection]
poweratom_ has quit [Client Quit]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
fandi has joined #ruby
djbkd has quit [Remote host closed the connection]
kiyote23 has joined #ruby
StephenA1 has joined #ruby
fabrice31 has joined #ruby
StephenA1 has joined #ruby
lucyinthesky is now known as [keith]
[keith] is now known as lucyinthesky
ducklobster has joined #ruby
xcesariox has quit [Quit: Textual IRC Client: www.textualapp.com]
jusmyth has joined #ruby
kl has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
davasaurous has quit [Remote host closed the connection]
StephenA1 has quit [Quit: StephenA1]
dseitz has joined #ruby
chu has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com]
graydot has joined #ruby
ChoiKyuSang has joined #ruby
fandi has quit [Read error: Connection reset by peer]
graydot has quit [Client Quit]
nagaraj has joined #ruby
graydot has joined #ruby
jonr22 has joined #ruby
Channel6 has quit [Quit: Leaving]
adriancb has joined #ruby
russt has quit [Quit: russt]
jonr22 has quit [Ping timeout: 264 seconds]
fedexo has joined #ruby
Musashi007 has quit [Quit: Musashi007]
davasaurous has joined #ruby
Lingo has joined #ruby
wjimenez5271 has joined #ruby
versatiletech has quit [Quit: versatiletech]
robbyoconnor has joined #ruby
benzrf is now known as benzrf|offline
ghr has joined #ruby
adriancb has quit [Ping timeout: 258 seconds]
<parabolize> JSON.parse(File.read 'data.json')['results'].index {|result| Date.parse(result['releaseDate']).year == 2009} but I was too slow :(
<parabolize> s/2009/1995
nrsk has joined #ruby
wjimenez5271 has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: zzz]
anafrogue_ has joined #ruby
Rahul_Roy_ has joined #ruby
Jake232 has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
dts has joined #ruby
arup_r has joined #ruby
ping-pong has quit [Ping timeout: 256 seconds]
wjimenez5271 has joined #ruby
graydot has quit [Quit: graydot]
Channel6 has joined #ruby
Morkel has joined #ruby
arup_r_ has joined #ruby
work_op has joined #ruby
workmad3 has joined #ruby
krzkrz has quit [Ping timeout: 245 seconds]
<work_op> hi, i am working on a brute force sudoku class, and im stuck on a strange error http://codepad.org/mIzTpg9P
<work_op> maybe its something obvious, and its not very much code
Techguy305 has quit [Ping timeout: 244 seconds]
<Areessell> remove `@puzzle.` on those lines. getcol and getrow are defined on the SudokuBrute, not whatever object @puzzle is
<lbrf> @puzzle = array, @puzzle.getrow(i) <~ undefined method `getrow' for #<Array
roolo has joined #ruby
arup_r has quit [Ping timeout: 264 seconds]
parduse has joined #ruby
krzkrz has joined #ruby
<Areessell> Also, there is no need for `.==`, just simple use == and drop the parenteses around the 9's
Channel6 has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 252 seconds]
arup_r_ has quit [Remote host closed the connection]
kiyote23 has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
jsilva has joined #ruby
arup_r has joined #ruby
<work_op> ok, so thats something i didnt know, in the body of method defs, scope is different to where you dont need to use instance vars
Lingo has quit [Quit: (null)]
<work_op> where could i read more about how that works?
<Areessell> Any basic Ruby syntax tutorial or book
<sevenseacat> !twgr
<helpa> Learn Ruby by reading this book - http://manning.com/black3 - The Well-Grounded Rubyist by David A. Black
<Areessell> What a great command
roolo has quit [Ping timeout: 272 seconds]
russt has joined #ruby
<work_op> im reading through matz and flannigan's book, and i may have skimmed some parts
<sevenseacat> we have many, many great commands.
graydot has joined #ruby
leslie has joined #ruby
graydot has quit [Client Quit]
russt has quit [Client Quit]
nyanz has quit []
jenrzzz has joined #ruby
beneggett has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
Asher2 has joined #ruby
louism2wash has joined #ruby
Kamilion has joined #ruby
Asher has quit [Ping timeout: 252 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
Sawbones has joined #ruby
tzero has quit [Ping timeout: 272 seconds]
jeaye has quit [Ping timeout: 250 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
mary5030 has joined #ruby
mrnugget has joined #ruby
arup_r_ has joined #ruby
Sawbones has quit [Ping timeout: 244 seconds]
arup_r_ has quit [Remote host closed the connection]
davasaurous has quit [Ping timeout: 258 seconds]
bklane has joined #ruby
arup_r has quit [Ping timeout: 264 seconds]
arup_r has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
arup_r_ has joined #ruby
jusmyth has left #ruby [#ruby]
robbyoconnor has quit [Write error: Connection reset by peer]
robbyoconnor has joined #ruby
Phagus has joined #ruby
anafrogue_ has quit [Quit: Leaving]
<Phagus> Is there something to irb what ipython is to the Python REPL?
<parabolize> pry
<sevenseacat> depends on what ipython is
<ericwood> pry pry pry
<ericwood> ipython is probably some weird thing but as far as ruby repls go pry is the best :D
<sevenseacat> so many people assume python knowledge when asking for ruby tools o.O
arup_r has quit [Ping timeout: 255 seconds]
<ericwood> python was my first proglang but it's changed a lot since :\
MasterPiece has joined #ruby
<parabolize> doesn't quite hay every thing ipython does. No graphing I know of for example.
<parabolize> s/hay/have
<ericwood> there's some stuff for gnuplot etc. with ruby so you can hack that together
<Phagus> Okay, well, ipython is a nicer REPL. Autocompletion, auto-completion introspection, on-line help, "magics"
<ericwood> but! Ruby really isn't a big language for scientific computing so...
<ericwood> Phagus: you'll get the autocompletion, introspection, maybe some online help, syntax highlighting, etc. in pry
<Phagus> ericwood: Thanks. I'll try it out
<parabolize> its faster than ipython
<parabolize> a lot faster
<ericwood> I love pry
<work_op> ^
<Phagus> Yeah ipython is laggy
jeaye has joined #ruby
<Phagus> It's really nice, but laggy... Been using bpython a lot lately. Anyway, I'm enjoying Ruby so far
<Phagus> My first day learning Ruby
<ericwood> ruby is pretty sweet
<ericwood> but that's just me
<Phagus> It's not as strict as Python, but not as loose as Perl
<Phagus> I like its domain-specific applications in system admin and security
crack_user1 has quit [Quit: Leaving.]
<Phagus> Okay how do I pip this sh--
<parabolize> gem
<ericwood> gem gem gem gem gem
<ericwood> tbh the ruby packaging environment feels so much saner
mary5030 has quit [Remote host closed the connection]
<parabolize> it at least has almost everything using gem
tzero has joined #ruby
mary5030 has joined #ruby
<Phagus> Cool
<ericwood> Phagus: check out rbenv or chruby if you're doing much heavy ruby dev
<ericwood> and learn to love bundler <3
Stoge88 has joined #ruby
<Phagus> How about RVM?
<ericwood> RVM is aight, it's got a few weird shims, rbenv might work better for you
<Phagus> Is rbenv like python's virtualenv?
<ericwood> ¯\_(ツ)_/¯
<ericwood> just google it and read all about it :)
<Phagus> I'll take that as yes ;-)
<ericwood> :)
<Phagus> Purdy cool.
mloveless has joined #ruby
<Phagus> How do I run pry now?
graydot has joined #ruby
<parabolize> pry
<Areessell> run `pry`
<parabolize> but gems need to be in your path
<Phagus> Oh silly me
bkolden has joined #ruby
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 258 seconds]
anaeem1_ has joined #ruby
graydot has quit [Client Quit]
timonv_ has joined #ruby
<Phagus> .gem in my path?
VBlizzard has joined #ruby
TinkerTyper has quit [Ping timeout: 258 seconds]
Joufflu has quit [Quit: Leaving]
timonv_ has quit [Ping timeout: 256 seconds]
sindork_ has quit [Ping timeout: 258 seconds]
ghr has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
Blizzy has quit [Ping timeout: 258 seconds]
pen has joined #ruby
sindork has joined #ruby
Mattias has quit [Ping timeout: 258 seconds]
<parabolize> for example I had to put path=(`ruby -e 'print Gem.user_dir'`/bin $path) in my ~/.zshenv
psyprus has quit [Ping timeout: 258 seconds]
<parabolize> what shell do you use?
<parabolize> bash?
<Phagus> Plain old bash
hendricius has quit [Ping timeout: 258 seconds]
Mattias has joined #ruby
tcrypt has joined #ruby
<Phagus> Going to add this to my .bash_profile though
hendricius has joined #ruby
<parabolize> PATH="`ruby -e 'print Gem.user_dir'`/bin:$PATH"
ghr has quit [Ping timeout: 250 seconds]
gheegh has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
lxsameer has joined #ruby
kaspergr1bbe has joined #ruby
graydot has joined #ruby
iaj_ has joined #ruby
tagrudev has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
TinkerTyper has joined #ruby
<Phagus> "not a valid identifier" weird
oleo has quit [Ping timeout: 240 seconds]
<parabolize> with my second example?
oleo__ has joined #ruby
kaspergrubbe has quit [Ping timeout: 258 seconds]
boombadaroomba has quit [Ping timeout: 258 seconds]
iaj has quit [Remote host closed the connection]
thomasfedb has quit [Ping timeout: 258 seconds]
thomasfedb_ has joined #ruby
<Phagus> Oh there we go. I kept a $ on the first PATH
<Phagus> I got it
<ericwood> :D
tobago has joined #ruby
<louism2wash> hey guys, is there a way to access the calling object from inside a method not using self?
<ericwood> louism2wash: example?
<Phagus> Okay yeah pry is very cool.
<Phagus> Thanks guys.
psyprus has joined #ruby
<ericwood> :D
<Phagus> Does this have magics?
<ericwood> a little
<ericwood> read up on their wiki, commands like cd and show-source are pretty fucking magical
ctp has joined #ruby
<parabolize> it has a weird unix command like syntax
<parabolize> ls, cd and what not
<Phagus> That's interesting
<ericwood> prepare to debug your ruby code like never before
oleo__ has quit [Quit: Verlassend]
<ericwood> I've been using pry breakpoints in my rails apps a lot lately...holy shit :o
<ericwood> idk how I'd live without it
<parabolize> p
<parabolize> evil, evil p
buzzybron1 has joined #ruby
<Phagus> Cool.
<ericwood> pffft what am I supposed to do? puts .inspect?
<Phagus> I like how you can call methods right on numbers
<ericwood> Phagus: it's a blessing and a curse
<ericwood> 1.times is a weird voilation of what Fixnum truly is
<Phagus> Hmm
<sevenseacat> weird, but awesome.
<Phagus> So I hear Sinatra is like the Ruby Flask
<sevenseacat> you probably hate Rails' 1.minute.ago then :P
<ericwood> Phagus: basically
<Phagus> What do you guys use for the ORM?
<ericwood> sevenseacat: a mark of a great rubyist is overriding a native type for the sake of a DSL :)
last_staff has joined #ruby
<ericwood> Phagus: ActiveRecord? DataMapper?
<ericwood> there's several
<ericwood> ActiveRecord is actually pretty great imho but it's no silver bullet
<Phagus> Does Rails lock you into one ORM?
<Phagus> Django does that
<sevenseacat> no
<lbrf> Phagus: by defaut it's active record, but you can use others...
<ericwood> ActiveRecord is the default Rails ORM but I'm sure you can use DataMapper instead if you're into that sort of thing
<sevenseacat> you sure can
<Phagus> That's really cool
<ericwood> it's Ruby, you can monkeypatch whatevery ou want
sea_local has quit [Remote host closed the connection]
<sevenseacat> you can also go all crazy and use something like mongoid
<lbrf> seanmarcia: i'm using mongoid -_-"
sea_local has joined #ruby
<sevenseacat> lbrf: my condolences.
<ericwood> is mongomapper still a thing
<ericwood> I remember it being slow AF
<lbrf> sevenseacat: what's the problem with it?
<ericwood> that was like 4 years ago tho
<sevenseacat> i havent used it since it was in its 2.x days, but it was a buggy mess
hanmac1 has joined #ruby
DarthFudd has left #ruby ["Leaving"]
graydot has quit [Quit: graydot]
<lbrf> sevenseacat: it's on 4.x now, it's not as friendly as AR, but works great ;)
<sevenseacat> mmhmm
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
sea_local has quit [Ping timeout: 240 seconds]
<Phagus> Well, I'm enjoying this a lot. Ruby is a pleasure to learn
jonr22 has joined #ruby
<arup_r_> Guys any idea why the Rspec example returning the subject ? https://github.com/bundler/bundler-api/blob/master/spec/cdn_spec.rb#L27
<sevenseacat> because they told it to?
<sevenseacat> returning isnt the primary effect - executing it is
jusmyth1 has joined #ruby
<parabolize> last thing in a method is the return
Guest39768 has quit [Quit: ZNC - http://znc.in]
<parabolize> s/is/will be/
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
<parabolize> block in this case but same thing
<arup_r_> sevenseacat: Didn't get you.. I never saw any Rspec code.
fabrice31 has joined #ruby
<sevenseacat> they want to execute the subject block, so they call it.
<sevenseacat> you perhaps should read an rspec tutorial.
<arup_r_> I think examples are not needed the end `subject` if we put them inside the before(:each) { subject }.. Right ?
<sevenseacat> except you dont want to run it before each
<sevenseacat> you want to run it after you set the expectation
<arup_r_> sevenseacat: What I need to Read and follow that I know..
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
<arup_r_> I asked something different...
<arup_r_> I told they did it `X` way.. I can think of it `Y` way too.
<arup_r_> If I think I `Y` way.. Am I right? that's my question
<arup_r_> sevenseacat: You are having a completely wrong perception about me.. Pleas do clear those.
TDJACR has joined #ruby
buzzybron1 has left #ruby [#ruby]
<arup_r_> Genrally.. we write these... inside the before(:each) {..}
kies has joined #ruby
sea_local has joined #ruby
<arup_r_> But the way they wrote it is new to me...
jonr22 has joined #ruby
<arup_r_> That's why I asked.. I thought may be there is something I don't know
anarang has joined #ruby
<sevenseacat> you're not right.
<sevenseacat> and i explained why.
<arup_r_> Ok..
fabrice31 has quit [Ping timeout: 272 seconds]
tejas-manohar has quit [Ping timeout: 246 seconds]
jonr22_ has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
bmichelsen has joined #ruby
<arup_r_> I am not getting the differences between those 2 approaches/\..
jonr2219 has quit [Ping timeout: 250 seconds]
<sevenseacat> you don't get the difference between calling a method before and after setting your expectation about what that method will do?
<arup_r_> before is _set up_ and after is _tear down_ That much I do know.
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
hurgge has joined #ruby
jonr22 has joined #ruby
<sevenseacat> thats pretty much entirely unrelated to what i said
jonr22_ has quit [Read error: Connection reset by peer]
<arup_r_> sevenseacat: Would you told is pretty interesting.. Could you give one example?
<arup_r_> *What
<sevenseacat> arup_r_: the example you linked to.
bklane has quit [Remote host closed the connection]
<arup_r_> That's after... Ok.. Let me think it
<sevenseacat> exactly.
bal has joined #ruby
<parabolize> do all the pragprog books come without DRM?
<sevenseacat> try moving it and see what happens.
<sevenseacat> parabolize: all the ones they publish do, i think.
<sevenseacat> some of the ones they sell on behalf of others might not.
noop has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jusmyth1 has quit [Read error: Connection reset by peer]
Mia has quit [Ping timeout: 240 seconds]
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
<bkutil> although they have sort of a 'social drm', i.e. your name at the top of every page (at least the kindle format)
sklik has quit [Read error: Connection reset by peer]
<sevenseacat> lol social drm
sklik has joined #ruby
jonr22 has joined #ruby
jenrzzz has joined #ruby
<parabolize> I've forgotten what pdfs are without all that crypto. I got the Well-Grounded Rubyist and it scrolls fast. I can copy paste. Its crazy.
SOLDIERz_ has joined #ruby
jsilva has quit [Ping timeout: 252 seconds]
<arup_r_> hehehe
<parabolize> yeah, my name creeps me out on every page without fail.
mloveles_ has joined #ruby
bklane has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
mloveless has quit [Read error: Connection reset by peer]
bklane has quit [Remote host closed the connection]
jonr2219 has joined #ruby
sinequanon has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
<arup_r_> parabolize: I got one book as gift in this Thanks giving day.. But my name not mentioned in the PDF..
<arup_r_> :-(
karmatr0n has quit [Remote host closed the connection]
<sevenseacat> pdf is actually a good format without all the crypto shit
jonr2219 has quit [Read error: Connection reset by peer]
<arup_r_> sevenseacat: I like epub too
jonr22 has joined #ruby
<sevenseacat> i have nothing that will read epub
agjacome has joined #ruby
graydot has joined #ruby
<arup_r_> I use calibre
<arup_r_> Nice ebook management tool
bklane has joined #ruby
ramfjord has joined #ruby
<sevenseacat> i have a kindle, thats all i need.
<arup_r_> hurgge: is spamming... Be aware from this user
<arup_r_> Keep sending some unusual links... by doing prvt msgs
rshetty_ has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
jonr22 has quit [Read error: Connection reset by peer]
<arup_r_> sevenseacat: No money :-(
<arup_r_> So.. I don't have
jonr22 has joined #ruby
<parabolize> all the programming books I download as epub render like shit
<sevenseacat> i read pdfs on my computer and mobis on my kindle
<sevenseacat> i have no use for epub
ctp has joined #ruby
<sevenseacat> and i realize thats because amazon are assholes about formats
Guest35729 has joined #ruby
bklane has quit [Client Quit]
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com]
<parabolize> epub is great when you don't need any fancy page layout
rshetty_ has quit [Read error: Connection reset by peer]
lbrf has quit [Quit: Be back later ...]
ChoiKyuSang has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<arup_r_> parabolize:+1
aganov has joined #ruby
dts is now known as dts|pokeball
AlexRussia has quit [Quit: WeeChat 1.1-dev]
danijoo has joined #ruby
mikepack has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
graydot has quit [Quit: graydot]
jonr22 has joined #ruby
hurgge has quit [Ping timeout: 250 seconds]
jonr22 has quit [Read error: Connection reset by peer]
mrgrieves has quit [Ping timeout: 258 seconds]
jonr2219 has joined #ruby
<sevenseacat> yep.
tesuji has joined #ruby
<sevenseacat> darn good book
armyriad has quit [Ping timeout: 255 seconds]
lolmaus has joined #ruby
armyriad has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
<sevenseacat> arup_r_: i do not condone piracy.
<arup_r_> humm
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
hurgge has joined #ruby
Guest35729 has quit [Ping timeout: 250 seconds]
charliesome has quit [Ping timeout: 258 seconds]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
The_NetZ has joined #ruby
<The_NetZ> ok, finally got ruby cloned down.... anyone know the commit id for what was released as 2.1.5 ?
oo_ has quit [Remote host closed the connection]
jonr22 has quit [Remote host closed the connection]
Guest35729 has joined #ruby
jonr22 has joined #ruby
oo_ has joined #ruby
hurgge has quit [Ping timeout: 250 seconds]
workmad3 has joined #ruby
krazyj has joined #ruby
jonr2219 has joined #ruby
<krazyj> hey everyone… would this snippet ALWAYS return true or false?
erylei has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
<sevenseacat> test it
charliesome has joined #ruby
<certainty> moin
erylei has quit [Quit: Lingo: www.lingoirc.com]
<krazyj> sevenseacat: i’d rather just ask :)
<sevenseacat> k
mary5030 has joined #ruby
ghr has joined #ruby
<thomasfedb_> sevenseacat, holla.
<krazyj> i’m not a ruby dev and don’t care to learn about ruby testing :)
<krazyj> it’s for a quick hack
<sevenseacat> krazyj: then i dont care about helping you
<krazyj> lol k
<sevenseacat> thomasfedb_: hello! long time no see!!
thomasfedb_ is now known as thomasfedb
thomasfedb has quit [Changing host]
thomasfedb has joined #ruby
Cyberheb has joined #ruby
<thomasfedb> sevenseacat, same to you.
<sevenseacat> you ever planning on coming back to work? >_>
anafrogue_ has joined #ruby
jonr2219 has quit [Remote host closed the connection]
kevinxu has joined #ruby
ewilliam_ is now known as ewilliam
jonr22 has joined #ruby
kevinxu is now known as Guest24735
workmad3 has quit [Ping timeout: 256 seconds]
<hanmac1> krazyj: hm i think you are wondering because that function does not have "return" ?
<hanmac1> apeiros: spam bot Guest35729
<krazyj> hanmac1: i was more wondering if `path.split('/').count > 2` would return the correct boolean type
<krazyj> i’m familiar (generally) with the way ruby methods return
solidus-river has joined #ruby
jonr22 has quit [Remote host closed the connection]
ValicekB has quit [Ping timeout: 264 seconds]
sski has quit [Remote host closed the connection]
jonr22 has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
sski has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
<certainty> krazyj: that method may raise an exception in which case it doesn't return either true or false
oo_ has quit [Remote host closed the connection]
<certainty> if path is tagged with an encoding that doesn't fit the actual byte sequence it "holds". in that case split will blow up
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
sski has quit [Remote host closed the connection]
<sevenseacat> or something that doesnt respond to split
<certainty> yeah
sski has joined #ruby
<krazyj> certainty: that’s all externally controlled… the set of input data is fairly constrainted
<hanmac1> krazyj: hm i might would have used an regexp like /work(\/.+?){2,}/ or something ...
aspires has quit []
<arup_r_> hanmac1: is a powerful Regex engine.. :)
fabrice31 has joined #ruby
djbkd has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
<hanmac1> or something because it still can be tweaked and its not perfect yet
oo_ has joined #ruby
<krazyj> hmm
danijoo_ has joined #ruby
<krazyj> well, let me take a step back...
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
<krazyj> if i remove that terniary statement and un-negate the `sublevel_of_work_category?` call… that’s not functionally equivalent
<krazyj> can anyone, perhaps, see any order of operations things i might be doing wrong? i can’t quite explan that...
timonv_ has joined #ruby
troulouliou_dev has joined #ruby
<krazyj> i’d expect this line to be functionally equivalent, but it’s not: https://gist.github.com/joshavant/094addb43c66b73b3dc5
timonv_ has quit [Remote host closed the connection]
<certainty> category, *rest = path.split('/'); category == 'work' && rest.count > 1 .... the conditions may be off, i'm boolean impared
timonv_ has joined #ruby
danijoo has quit [Ping timeout: 250 seconds]
jonr2219 has joined #ruby
lyanchih_ has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jheg has joined #ruby
<krazyj> certainty: hmm let me play with that
djbkd has quit [Ping timeout: 244 seconds]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
<krazyj> any thoughts on these two?: https://gist.github.com/joshavant/42978514874ae96b02a7
lbrf has joined #ruby
roolo has joined #ruby
<krazyj> i’d even value knowing if it looks like they *should* be equivalent....
tobago has quit [Ping timeout: 258 seconds]
tvw has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
havenwood has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
psy_ has quit [Remote host closed the connection]
<parabolize> I think && has a stronger precedence than ? http://www.ruby-doc.org/core-2.1.3/doc/syntax/precedence_rdoc.html
kyle__ has quit [Ping timeout: 258 seconds]
psy_ has joined #ruby
<krazyj> parabolize: are you suggesting the second conditional may get inadverently evaluated first, and the whole shebang doesn’t really operate as it might, on first glance?
<krazyj> s/as it might/as it might look/
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
danijoo has joined #ruby
zemiudo has joined #ruby
zemiudo has quit [Remote host closed the connection]
<parabolize> try wraping the ternary in parentheses
<krazyj> parabolize: yeah, that breaks everything
<anafrogue_> Is the built-in "Digest::MD5.file" method the best way to generate checksums for files?
arup_r_ has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 258 seconds]
jonr22 has quit [Remote host closed the connection]
zemiudo has joined #ruby
ht__th has joined #ruby
zemiudo has quit [Max SendQ exceeded]
Sawbones has joined #ruby
jonr22 has joined #ruby
Mia has quit [Read error: Connection reset by peer]
lbrf has quit [Ping timeout: 272 seconds]
danijoo_ has quit [Ping timeout: 250 seconds]
<certainty> anafrogue_: well it all depends
blueOxigen has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
dumdedum has joined #ruby
posixpascal has joined #ruby
<parabolize> >> :a == :b && !true ? false : true
<eval-in__> parabolize => true (https://eval.in/229761)
<parabolize> >> :a == :b && (!true ? false : true)
<eval-in__> parabolize => false (https://eval.in/229762)
bluOxigen has quit [Ping timeout: 250 seconds]
<anafrogue_> certainty: when would I want something else?
<bkutil> parabolize: yeah, the truth table looks different for both expressions
<Areessell> I think it's generally considered safer to use SHA
<certainty> anafrogue_: when your requirements change. For example once you want more than one digest algorithm
<certainty> anafrogue_: it also depends what it is used for. As Areessell pointed out for cryptographic purposes there are better options
<krazyj> parabolize: ahhhhh thanks!
jonr22 has quit [Ping timeout: 250 seconds]
<anafrogue_> hmm, I see. I know that MD5 isn't recommended for anything related to password hashing etc, but I'm just looking at storing a file's digest and then checking it again later to make sure that file hasn't changed
timonv_ has quit [Remote host closed the connection]
Guest54595 has quit [Changing host]
Guest54595 has joined #ruby
Guest54595 is now known as deepy
jonr22 has joined #ruby
<Areessell> Say that number from the top answer out loud =p
<certainty> ah nice you can have per-gem sources in bundler
dumdedum has quit [Quit: foo]
Guest24735 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
livathinos has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
goodenou_ has joined #ruby
jsilva has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
apeiros_ has joined #ruby
goodenough has quit [Ping timeout: 240 seconds]
Sawbones has quit [Remote host closed the connection]
kevinxu has joined #ruby
kevinxu is now known as Guest82827
bigkevmcd has joined #ruby
Cyberheb has quit [Ping timeout: 252 seconds]
Mia has quit [Ping timeout: 240 seconds]
jonr2219 has quit [Remote host closed the connection]
kwd has quit [Quit: Leaving.]
timonv_ has joined #ruby
jonr22 has joined #ruby
mooru has joined #ruby
jsilva has quit [Ping timeout: 244 seconds]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
sdwrage has quit [Quit: Leaving]
<The_NetZ> Hanmac: ruby-trunk won't build on windows :/
<hanmac1> The_NetZ: do you mean rubytrunk itself or do you mean my rwx binding?
<The_NetZ> erm, I mean, won't cross compile to windows. I mean ruby itself.
<The_NetZ> both the git repo and the svn repo
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
einarj has joined #ruby
<hanmac1> hm is not my fault, not i can fix ruby itself ... rwx currently is broken with rubytrunk but i cant fix that too
<The_NetZ> sucks man :/
<The_NetZ> I can get 2.1.5 to work for windows though
jheg has quit [Quit: jheg]
<The_NetZ> someone get rid of Guest35729 ... spamming me :/
jonr22 has quit [Read error: Connection reset by peer]
<The_NetZ> eh fuck it. I'm going to sleep :/
jonr22 has joined #ruby
The_NetZ has quit [Quit: leaving]
tobago has joined #ruby
rshetty has joined #ruby
lucyinthesky has quit [Quit: Leaving]
<certainty> Guest35729 is spamming everyone. only privately though, so ops can't do much
skallepear has joined #ruby
dts|pokeball is now known as dts
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
<hanmac1> ping apeiros and apeiros_
armyriad has quit [Ping timeout: 240 seconds]
skallepear is now known as emilkarl
psy_ has quit [Ping timeout: 255 seconds]
emilkarl is now known as emka
armyriad has joined #ruby
mikepack has quit [Remote host closed the connection]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
AxonetBE has joined #ruby
diegoviola has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
sinequanon has quit []
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 252 seconds]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
The_NetZ has joined #ruby
jonr22 has joined #ruby
bMalum has quit [Quit: bMalum]
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
emka has left #ruby [#ruby]
sklik has quit [Remote host closed the connection]
Juanchito has joined #ruby
ikaros has joined #ruby
jonr2219 has joined #ruby
StoneCypher has quit [Ping timeout: 245 seconds]
jonr22 has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
jswe has quit [Quit: This computer has gone to sleep]
lolmaus has quit [Quit: Konversation terminated!]
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
kl has quit [Ping timeout: 250 seconds]
jonr22 has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has joined #ruby
alex88 has joined #ruby
jonr22 has joined #ruby
timonv_ has joined #ruby
codecop has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
kwd has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
jonr2219 has joined #ruby
Or1on has quit [Ping timeout: 264 seconds]
jonr2219 has quit [Read error: Connection reset by peer]
fedexo has quit [Ping timeout: 250 seconds]
jonr2219 has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
jonr22 has quit [Ping timeout: 258 seconds]
dumdedum has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
Soda has joined #ruby
fantazo has joined #ruby
linojon has quit [Quit: linojon]
robbyoconnor has quit [Ping timeout: 250 seconds]
jonr2219 has joined #ruby
marr has joined #ruby
lemur has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
samuel02 has joined #ruby
lemur has joined #ruby
amundj has joined #ruby
olivier_bK has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
jonr22 has joined #ruby
PierreRambaud has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
kiyote23 has joined #ruby
jonr2219 has joined #ruby
lbrf has joined #ruby
robustus has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
uber2 has joined #ruby
tobago has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
lemur has quit [Ping timeout: 258 seconds]
Takle has joined #ruby
decoponio has joined #ruby
charliesome has quit [Quit: zzz]
jonr2219 has quit [Remote host closed the connection]
kiyote23 has quit [Ping timeout: 240 seconds]
dumdedum has quit [Ping timeout: 272 seconds]
rshetty_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
louism2wash has quit [Quit: This computer has gone to sleep]
jonr22 has joined #ruby
keen_____ has joined #ruby
lbrf has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
keen____ has quit [Ping timeout: 240 seconds]
jonr22 has quit [Remote host closed the connection]
NoNMaDDeN has quit [Remote host closed the connection]
ramfjord has joined #ruby
jonr22 has joined #ruby
sevenseacat has quit [Remote host closed the connection]
charliesome has joined #ruby
ctp has joined #ruby
tobago has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
Sawbones has quit []
jonr2219 has joined #ruby
sski has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
sski has joined #ruby
kuda_ has joined #ruby
kamilc__ has joined #ruby
lolmaus_ has joined #ruby
ta has quit [Remote host closed the connection]
The_NetZ has quit [Quit: leaving]
arup_r_ has joined #ruby
kyle__ has joined #ruby
kuda_ is now known as kuda
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
dts is now known as dts|pokeball
arup_r__ has joined #ruby
sptx00 has quit [Remote host closed the connection]
supersym has joined #ruby
nkumari has joined #ruby
BraddBitt has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
lolmaus has quit [Ping timeout: 240 seconds]
BraddPitt has quit [Ping timeout: 255 seconds]
jonr22 has joined #ruby
arup_r has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
Mia has quit [Ping timeout: 240 seconds]
sski has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
charliesome has quit [Quit: zzz]
arup_r_ has quit [Ping timeout: 255 seconds]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
jsilva has joined #ruby
doki-worry has joined #ruby
uber has quit [Quit: bye]
rageberry has quit [Ping timeout: 258 seconds]
nkumari has quit [Remote host closed the connection]
uber2 is now known as uber
terlar has joined #ruby
davasaurous has joined #ruby
nagaraj has quit [Ping timeout: 252 seconds]
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
dumdedum has joined #ruby
nkumari has joined #ruby
dramalho has joined #ruby
roolo_ has joined #ruby
jsilva has quit [Ping timeout: 240 seconds]
jonr2219 has joined #ruby
nagaraj has joined #ruby
JoshGlzBrk has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
Phagus has quit [Quit: leaving]
davasaurous has quit [Ping timeout: 240 seconds]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
joonty has joined #ruby
lolmaus__ has joined #ruby
nfk has joined #ruby
lolmaus has joined #ruby
lolmaus_ has quit [Ping timeout: 240 seconds]
jonr2219 has joined #ruby
hiall has joined #ruby
troulouliou_dev has joined #ruby
jonr22 has quit [Ping timeout: 258 seconds]
kl_ has joined #ruby
lolmaus__ has quit [Ping timeout: 240 seconds]
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
sandelius has joined #ruby
dcunit3d has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
quimrstorres has joined #ruby
workmad3 has joined #ruby
matcouto has joined #ruby
evanjs has quit [Remote host closed the connection]
SOLDIERz__ has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
evanjs has joined #ruby
bMalum has joined #ruby
SOLDIERz_ has quit [Ping timeout: 250 seconds]
krazyj has quit [Quit: krazyj]
jonr2219 has quit [Ping timeout: 252 seconds]
Hijiri has quit [Ping timeout: 255 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
tgandrews has joined #ruby
evanjs has quit [Ping timeout: 244 seconds]
tgandrews_ has joined #ruby
tgandrews has quit [Client Quit]
tgandrews_ has quit [Client Quit]
timonv_ has quit [Read error: Connection reset by peer]
tgandrews has joined #ruby
kl_ has quit [Ping timeout: 256 seconds]
elaptics`away is now known as elaptics
Guest35729 has quit [Ping timeout: 250 seconds]
juuio has joined #ruby
rshetty_ has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
ta has joined #ruby
ta has quit [Remote host closed the connection]
TheRinger has quit [Ping timeout: 244 seconds]
ta has joined #ruby
craigp has joined #ruby
rpag has quit [Quit: Leaving]
charliesome has joined #ruby
gccostabr has joined #ruby
rdark has joined #ruby
arup_r__ has quit [Remote host closed the connection]
razieliyo has joined #ruby
razieliyo has joined #ruby
qba73 has joined #ruby
arup_r has joined #ruby
kristofferR has joined #ruby
arup_r has quit [Remote host closed the connection]
doki-worry has quit [Ping timeout: 255 seconds]
livathinos has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 245 seconds]
livathinos has joined #ruby
Xeago has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
rpag has joined #ruby
arup_r has joined #ruby
shvelo has joined #ruby
emmesswhy has joined #ruby
Hijiri has joined #ruby
sk87 has joined #ruby
emmesswhy has quit [Client Quit]
AFKGeek has joined #ruby
yfeldblum has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
nkumari has quit [Remote host closed the connection]
nkumari has joined #ruby
tokik has quit [Ping timeout: 256 seconds]
lolmaus_ has joined #ruby
arup_r_ has joined #ruby
AndChat| has joined #ruby
Hobogrammer_ has quit [Ping timeout: 240 seconds]
mocchi has quit [Ping timeout: 250 seconds]
rageberry has joined #ruby
AndyBotwin has quit [Quit: Leaving]
banister has joined #ruby
timonv_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
psy_ has joined #ruby
timonv_ has joined #ruby
mocchi has joined #ruby
arup_r has quit [Ping timeout: 250 seconds]
lbrf has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
AFKGeek has quit [Quit: Fades into the shadows]
msgodf has joined #ruby
jheg has joined #ruby
duncannz has quit [Remote host closed the connection]
TPBallbag has quit [Remote host closed the connection]
TPBallbag has joined #ruby
andikr has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
jenrzzz has quit [Ping timeout: 258 seconds]
lbrf has quit [Ping timeout: 244 seconds]
tgandrews has quit [Quit: This computer has gone to sleep]
AlSquire has joined #ruby
workmad3 has joined #ruby
dcunit3d has joined #ruby
Takle has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
lyanchih_ has quit [Ping timeout: 272 seconds]
timonv_ has joined #ruby
Takle has joined #ruby
kuda has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supersymmetry has joined #ruby
<shevy> GOOD MORNING RUBY
<shevy> juuio = spambot
dcunit3d has quit [Ping timeout: 252 seconds]
dc_ has joined #ruby
Guest82827 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kuda has joined #ruby
Timgauthier has joined #ruby
supersym has quit [Ping timeout: 264 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Areessell> Top of the mornin
<shevy> Areessell DID YOU SLEEP WELL MAN
timonv_ has quit [Ping timeout: 256 seconds]
kuda has quit [Client Quit]
dc_ has quit [Read error: Connection reset by peer]
dc_ has joined #ruby
kl_ has joined #ruby
<hanmac1> shevy i did this yet: http://i.imgur.com/plNeV5W.png ... currently written in C++ but will be useful later in ruby too
luckyruby has joined #ruby
Soda has quit [Remote host closed the connection]
<shevy> that is cool
<shevy> is that wxwidgets?
<shevy> I could use this for a genome browser right away
<shevy> (if you can click on those bars with the mouse)
matcouto has quit [Ping timeout: 250 seconds]
timonv_ has joined #ruby
AFKGeek has joined #ruby
<hanmac1> currently it only for output, the bars are not dragable yet or something, that might be done later
matcouto has joined #ruby
<Areessell> lol no, not yet
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giuseppesolinas has joined #ruby
sk87 has joined #ruby
[a]foo has joined #ruby
TheRinger has joined #ruby
<[a]foo> hello, I am tryin to execute a script that uses the twitter library
<[a]foo> but I'm getting this error: http://pastebin.com/FJRRHayc
quimrstorres has quit [Remote host closed the connection]
<Areessell> require 'twitter' not require 'Twitter'
<shevy> hanmac1 I mean clickable :D
rodfersou has joined #ruby
timonv_ has quit [Remote host closed the connection]
<[a]foo> that's very true Areessell
<[a]foo> thank you
<Areessell> Sure thing.
<hanmac1> shevy hm depends what you mean, what should happen when you click the bars?
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<workmad3> hanmac1: those bars look retro :D
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
echooo has quit [Quit: echooo]
<shevy> hanmac1 does not matter
amundj has joined #ruby
<shevy> hanmac1 it should be able to respond to click events
sk87 has joined #ruby
echooo has joined #ruby
adriancb has joined #ruby
craigp has quit [Remote host closed the connection]
mahtennek has joined #ruby
<hanmac1> hm yeah events might be added later too ... that small little thing i did in less than a few hours
<mahtennek> hi has anyone played with windows azure notification hub with ruby yet?
Timgauthier has joined #ruby
craigp has joined #ruby
adriancb has quit [Ping timeout: 245 seconds]
tgandrews has joined #ruby
zarubin has joined #ruby
<wasamasa> ,anyone
<wasamasa> !anyone
<wasamasa> helpa: anyone
<wasamasa> ,_,
<[a]foo> ,_,
<[a]foo> !ASK
<[a]foo> !ask
ramfjord has quit [Ping timeout: 264 seconds]
<wasamasa> the apocalypse happened
sevenseacat has joined #ruby
* hanmac1 respond: "the users you want are currently not available"
<shevy> yeah
<shevy> but we are the survivors wasamasa
<shevy> 99 men and only 1 girl
giuseppesolinas has quit [Quit: This computer has gone to sleep]
* hanmac1 wispers to shevy: "thars a trap" ;P
chu has joined #ruby
ldnunes has joined #ruby
frankS2 has quit [Read error: Connection reset by peer]
frode15243 has quit [Ping timeout: 272 seconds]
boombadaroomba has joined #ruby
dc_ has quit [Remote host closed the connection]
jds has quit [Ping timeout: 272 seconds]
banister has joined #ruby
frode15243 has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arup_r_ has quit [Remote host closed the connection]
frankS2 has joined #ruby
mahtennek has quit []
troulouliou_dev has quit [Quit: Leaving]
jds has joined #ruby
TPBallbag has quit [Remote host closed the connection]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Timgauthier has joined #ruby
boombadaroomba has quit [Ping timeout: 252 seconds]
timonv_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Timgauthier has quit [Max SendQ exceeded]
<wasamasa> damn these traps
<wasamasa> also, someone please kickban juuio
<wasamasa> he's sending me goldfish webcam /query spam
<[a]foo> same
juuio has quit [K-Lined]
arup_r has joined #ruby
<wasamasa> ideally with a report on #freenode
ycodr has joined #ruby
<wasamasa> since he's most likely on other channels, too
NoNMaDDeN has joined #ruby
MrIlyas has joined #ruby
AndChat| has quit [Ping timeout: 255 seconds]
Timgauthier has joined #ruby
Mia has joined #ruby
rshetty has quit [Remote host closed the connection]
TPBallbag has joined #ruby
<hanmac1> wasamasa: hm for the next time: how to do such a report for #freenode?
<[a]foo> paste the message you received in there and tell them it's spam
<wasamasa> ^
rageberry has quit [Ping timeout: 264 seconds]
<wasamasa> also, don't use a paste service with a domain that looks like it's a link-shortener, they don't like that :P
jheg has quit [Ping timeout: 258 seconds]
dcarmich has joined #ruby
gccostabr has quit [Ping timeout: 244 seconds]
<[a]foo> jus paste it, it'll most likely be one or two lines anyways
<[a]foo> +t
<wasamasa> they've since told me to immediately report every new occasion to them
mloveles_ has quit [Remote host closed the connection]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<wasamasa> and I assume it's to k-line that bot
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kaspertidemann has joined #ruby
NoNMaDDeN has quit [Ping timeout: 240 seconds]
arup_r_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rageberry has joined #ruby
jenrzzz has joined #ruby
timonv_ has quit [Remote host closed the connection]
Axy has joined #ruby
rshetty has joined #ruby
yfeldblu_ has joined #ruby
<shevy> you are a man in the know wasamasa
arup_r has quit [Ping timeout: 250 seconds]
<shevy> a man with many connections
<shevy> the walter white on IRC
Mia has quit [Ping timeout: 245 seconds]
Axy is now known as Mia
jsilva has joined #ruby
<wasamasa> no, I just spend too much time on IRC
* wasamasa gets back to work
<shevy> ack
<shevy> [a]foo attacks me!
goodenough has joined #ruby
rageberry has quit [Ping timeout: 244 seconds]
sk87 has joined #ruby
gccostabr has joined #ruby
<[a]foo> ;)
wsmoak has joined #ruby
wsmoak has joined #ruby
timonv_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
ctp has joined #ruby
jheg has joined #ruby
arup_r has joined #ruby
claptor has quit [Ping timeout: 255 seconds]
TPBallbag has quit [Remote host closed the connection]
goodenou_ has quit [Ping timeout: 250 seconds]
jsilva has quit [Ping timeout: 240 seconds]
TPBallbag has joined #ruby
quimrstorres has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
<arup_r> How can I write it more succinctly ?
SCHAAP137 has joined #ruby
arup_r_ has quit [Ping timeout: 255 seconds]
claptor has joined #ruby
lbrf has joined #ruby
<shevy> is this not succinct already
SOLDIERz__ has quit [Quit: Be back later ...]
xymbol_ has joined #ruby
<crome> he probably means some crazy write-only oneliner
<arup_r> shevy: I wrote it,, But it seems not so good. I could improve it more.. See this https://gist.github.com/aruprakshit/a67e5c88134abc6a6343#file-refactor-rb-L5 --- Can it be done more better ? I don't like `!`
<arup_r> crome: No
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
giuseppesolinas has joined #ruby
AxonetBE has quit [Quit: AxonetBE]
<arup_r> I do know.. when to write one liner.. See https://gist.github.com/aruprakshit/a67e5c88134abc6a6343#file-refactor-rb-L3
<shevy> arup_r there is only elsif
<arup_r> shevy: Nested `#any?` might be slow.. I feel.. But I am not able to think of something better
<shevy> there is no elsunless
amundj has joined #ruby
<arup_r> Yes.. I don't need else
ta has quit [Remote host closed the connection]
<arup_r> As Only those 2 conditions will be there..
doodlehaus has joined #ruby
<crome> elsunless! :D
lbrf has quit [Ping timeout: 240 seconds]
<workmad3> arup_r: I think shevy was saying you can't easily get rid of the !, because ruby doesn't have an 'elsunless'
xymbol has quit [Ping timeout: 264 seconds]
<workmad3> arup_r: not criticizing the lack of an 'else' ;)
<arup_r> Ohh... :-)
BraddBitt has quit [Read error: Connection reset by peer]
<gregf_> arup_r: you can make categories a class variable?
<arup_r> Well.. Yes, I can . But how does it help ?
<arup_r> gregf_: ^
<crome> I would probably put the conditions in differently named methods so my conditions would read somethihng like this: if category_is_blank; ...; elsif desired_category_is_missing; ...
BraddBitt has joined #ruby
rageberry has joined #ruby
o0oo0o has quit [Ping timeout: 250 seconds]
St_Marx has quit [Ping timeout: 250 seconds]
testcore has quit [Ping timeout: 250 seconds]
<gregf_> arup_r: you dont need to load that file time and time again?
<shevy> arup_r if you want to get rid of the ! then your methods used need to return positive values so the if-checks can work
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
Lilian has quit [Ping timeout: 250 seconds]
<arup_r> gregf_: Yes the file is static
<arup_r> crome: +1
<workmad3> arup_r: btw, do you mean 'desired category' or 'required category'?
Takle has quit [Remote host closed the connection]
CpuID has quit [Ping timeout: 255 seconds]
<arup_r> I am crawling... So I don't know which word will be perfect to write ..
<arup_r> But your point is valid
Takle has joined #ruby
<arup_r> crome: So one is https://gist.github.com/aruprakshit/a67e5c88134abc6a6343#file-refactor-rb-L3 I can extract.. What else?
Mia has quit [Read error: Connection reset by peer]
<arup_r> shevy: didn't get you.. either way I need to use `!`.
Cyberheb has joined #ruby
<crome> arup_r: you could change is_category_present? to is_category_missing? because that's the actual thing you are testing for. that way you don't need a ! either
Mia has joined #ruby
<[a]foo> why are the quotatins marks ` ' and not " "? e.g: `error line 2012'
<[a]foo> quotations*
<arup_r> crome: You are right.. But then I need to use `!` before the outside `#any?`
<shevy> [a]foo I think that is default unix start and end notation
<[a]foo> but why is it like that shevy?
DiamondKoopa has joined #ruby
<shevy> dunno who set that up
<[a]foo> weird!
<shevy> I am also unsure why these are not the same characters
Takle has quit [Ping timeout: 258 seconds]
DaniG2k has joined #ruby
<kl_> is it possible to have requires only work for a single file?
<crome> um, what?
<kl_> That was badly worded. One moment,
<hanmac1> kl_: require only works for single files or what are you trying todo?
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
BraddBitt has quit [Ping timeout: 272 seconds]
rageberry has quit [Ping timeout: 272 seconds]
<shevy> hehehehe
<shevy> kl_ yes! it is possible! you can require only a single file!
<shevy> you can also require a single file that requires other files
<shevy> \o/
<hanmac1> hah i know what he wants: he ask if he can prevent that requiring a file does require other files
<shevy> and if you really wanna get fancy, you can require in a circular way, so we'll never get out of that loop again
<kl_> shevy: ruby resolves that :P
<hanmac1> shevy, ? last time i checked, ruby can solve cirular require between files
dts|pokeball has quit [Ping timeout: 256 seconds]
banister is now known as banisterfiend
<shevy> hanmac1 yeah and it won't report to you?
<shevy> here it is in all its glory:
<shevy> "warning: loading in progress, circular require considered harmful"
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
Takle has joined #ruby
<hanmac1> shevy hah you are right! i didnt know that such warning exist ;P
<kl_> a.rb: [ require 'b'; require 'c' ] -- c.rb: [ # b is effectively required here ]
cassianoleal has joined #ruby
<kl_> Can I have it so that b isn't effectively required in c, because it was required already in a ?
<shevy> hanmac1 I found out when I ported from 1.8.x to 1.9.x and I suddenly got a million circular warning warnings
<shevy> kl_ only if you first load a.rb but usually that is not good
<shevy> kl_ the best rule is this: whenever you depend on something in a file, require it when this is possible
mikepack has joined #ruby
<shevy> if you really never ever call or need that file otherwise then it is ok to do as you wrote above
Trieste has quit [Quit: ZNC - http://znc.in]
<gregf_> arup_r: do you really need 3 loops?
jonr22 has joined #ruby
<gregf_> i may be wrong but map 'does' a loop and so does include?
<arup_r> I used 2 #any?
<arup_r> How can I improve that too ?
<gregf_> in essence this is what you're trying to do:
Trieste has joined #ruby
<crome> I would create a method called categories that would memoize the JSON as you mentioned it was a static file
gccostabr has quit [Quit: See you later!]
<gregf_> $categories = { "Top" => { "one" => "error one1", "two" => "error two" } }; $record = { "categories" => [ "ERROR ONE", "error three" ] }; def present?; return $categories["Top"].values.any? { |val| $record["categories"].map(&:downcase).include?val };end; puts present?
mikepack has quit [Ping timeout: 240 seconds]
<arup_r> gregf_: You are right..
<arup_r> But the the file keys are not un lowercase..
bmichelsen has joined #ruby
<arup_r> crome: why separate method? How does it help?
<gregf_> arup_r: dont use too many loops cuz categories will grow, apparently. so searches will increase by o(n^3)
<arup_r> humm
<shevy> huh
<shevy> when I do .sort_by {|line| line.length }
<gregf_> ah - nevrmind, there far too many ways to refactor that code :/
<shevy> the first results are shortest first? why not longest first?
<gregf_> s/there/theres/
charliesome has quit [Quit: zzz]
StoneCypher has joined #ruby
jonr22 has quit [Ping timeout: 255 seconds]
kwd has quit [Ping timeout: 252 seconds]
ctp has joined #ruby
<shevy> >> %w( pear apple banana tomato abc ).sort_by {|line| line.length }
<eval-in__> shevy => ["abc", "pear", "apple", "tomato", "banana"] (https://eval.in/229828)
<shevy> >> %w( pear apple banana tomato abc ).sort_by {|line| ! line.length }
<eval-in__> shevy => ["pear", "apple", "banana", "tomato", "abc"] (https://eval.in/229829)
<shevy> oops
<arup_r> crome: memoize is a good idea
<shevy> >> %w( pear apple banana tomato abc ).sort_by {|line| line.length }.reverse
<eval-in__> shevy => ["banana", "tomato", "apple", "pear", "abc"] (https://eval.in/229830)
vt102 has quit [Ping timeout: 264 seconds]
<shevy> guess that answers it :)
StoneCypher has quit [Ping timeout: 244 seconds]
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<arup_r> crome: I made it class level constant.
Xeago has quit [Remote host closed the connection]
charliesome has joined #ruby
fabrice31 has quit [Remote host closed the connection]
MrIlyas_ has joined #ruby
riceandbeans has quit [Ping timeout: 244 seconds]
doev has joined #ruby
sk87 has joined #ruby
oo_ has quit [Remote host closed the connection]
<gregf_> arup_r: also make that yaml file into a module, and you can include it whereever(its cross cutting the application). add some methods that help fetch data from the hash
techsethi has joined #ruby
<gregf_> arup_r: you really need to pay us for advice given ;)
supersymmetry has quit [Ping timeout: 256 seconds]
<shevy> no
<arup_r> I'll ... :-)
<shevy> he needs to stop asking like a noob
MrIlyas has quit [Ping timeout: 240 seconds]
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com]
<shevy> this man has 120.000 karma on stackoverflow!
<arup_r> shevy: I am noob
<shevy> no
<arup_r> :p
<shevy> you are micro perfecting
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<arup_r> Refactoring is not a noob questiob
<shevy> you need to use C man
<arup_r> Why??
wjimenez5271 has quit [Remote host closed the connection]
<shevy> then you can really optimize for speed
ChoiKyuSang has joined #ruby
<gregf_> heh, shevy C and ruby. i would imagine ruby guys to pick up C(modern C) but doubt the otherway around ;)
Morkel_ has joined #ruby
<arup_r> gregf_: Thanks for all your suggestion.. Nice medium to learn..
<gregf_> arup_r: now about the money :/
<shevy> gregf_ well, they are often perl users... like git
<gregf_> heh
<shevy> when they were young they learned perl
<shevy> now they are old - and stuck with perl
Morkel has quit [Ping timeout: 245 seconds]
Morkel_ is now known as Morkel
<arup_r> gregf_: Hire me then!.. Cut it from my salary..
timonv_ has quit [Remote host closed the connection]
<arup_r> I am a low paid dev.. :-(
ramfjord has joined #ruby
<shevy> you'll start your own company arup_r
<arup_r> gregf_: Come over India.. I'll offer you some nice Indian food..ofcourse..
<gregf_> nah, many perl devs dont use Perl anymore. but yeah, some that do dont want to move away. no, not even use modern Perl
<shevy> no low paid dev amasses 120.000 karma, you are a boss dude
<shevy> gregf_ ok for perl, but how about hardcore C users like linus?
Xeago has joined #ruby
shazaum has joined #ruby
<arup_r> shevy: It is not like you said.. Just 50K +
<gregf_> C is immortal!
<shevy> arup_r and that is not much?!
<arup_r> Yes.. it is.. But there are too many areas I need to improve.. and I'm doing so
<arup_r> :)
timonv_ has joined #ruby
dumdedum has quit [Remote host closed the connection]
<shevy> and you are not even old, you'll be a millionaire before hitting 40
<arup_r> shevy: Thanks for the bless. :-)
<ajaiswal> arup_r, good going :)
<gregf_> haha, millionaires come and go. some millionaires make the millions and leave them all behind ;)
<arup_r> ajaiswal: Are you from India?
<ajaiswal> arup_r, yep
<arup_r> From which location?
<ajaiswal> arup_r, mumbai
<arup_r> Ok.. My past job was there..
dumdedum has joined #ruby
<arup_r> Nice City
<ajaiswal> arup_r, indeed it is.
<arup_r> I was there for more than 3 years
<shevy> what is like the best place to work in india?
<arup_r> Where do you work ?
jheg has quit [Ping timeout: 272 seconds]
<arup_r> B'lore. Pune.. Mumbai.. Hydrbd
<ajaiswal> arup_r, i work at andheri east
uber_hulk has quit [Ping timeout: 245 seconds]
<arup_r> shevy: I mentioned cities
<arup_r> ajaiswal: comp?
<arup_r> I was in iGate
<ajaiswal> arup_r, its a small firm CMIE
<arup_r> Ok.. me also now in small org too..
postmodern has quit [Quit: Leaving]
<ajaiswal> arup_r, great.. where are you now currently
<arup_r> B'lore
<arup_r> Too much traffic... Waaakk!
<shevy> hehe
<ajaiswal> arup_r, hmm.. wanted to come over there... but mumbai seems to be settled and nice..
fabrice31 has joined #ruby
<arup_r> gregf_: I want to be micro perfect dev as shevy said..
n1lo has joined #ruby
<shevy> :\
AFKGeek has quit [Quit: Leaving]
<arup_r> Don't come be there..
<ajaiswal> arup_r, ha..
<arup_r> Go to Pune.. Nice city.. too many RoR jobs there too
<ajaiswal> arup_r, i was in Pune 2 3 years back at RedHat
supersymmetry has joined #ruby
<arup_r> WooW!!!
goodenough has quit [Remote host closed the connection]
<arup_r> total exp?
<ajaiswal> arup_r, not much 4 yrs
AFKGeek has joined #ruby
NoNMaDDeN has joined #ruby
<arup_r> me too.. But I made myself a SHIT..
<ajaiswal> arup_r, shit happens
<arup_r> Now looking toward the God.. If she can help me out again
<ajaiswal> arup_r, look on the keyboard.. she can help u out... lol
<arup_r> Yes.. I know..
<arup_r> What I write today... Very next day it will be changed,, People say it is REFACTORING .. :-)
<arup_r> So I am concentrating there..
<arup_r> :)
<arup_r> How long are you in RoR ? ajaiswal
<ajaiswal> arup_r, no i'm not in RoR, basically dealing with Puppet and automation stuff..
<arup_r> Ok.
Stalkr_ has joined #ruby
kaiwren has joined #ruby
<arup_r> Nice to talk with local fellow over an international channel.. :)
<arup_r> ajaiswal: :(
<arup_r> :)
nagaraj has quit [Ping timeout: 245 seconds]
<ajaiswal> arup_r, send me a request on FB @ashish1099
<arup_r> FB or twitter
<arup_r> ?
<arup_r> :-)
<Stalkr_> I am trying to access a page that requires me to login. If I try to access it, I get redirected. I need to get to the page so I can copy a value at a specific XPath for an API. How would I go about this? Trying to understand Mechanize, but is that a viable solution?
ramfjord has quit [Ping timeout: 272 seconds]
<ajaiswal> arup_r, anything is fine
uber_hulk has joined #ruby
durnik has quit [Ping timeout: 240 seconds]
shvelo has quit [Ping timeout: 256 seconds]
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has joined #ruby
senera has quit [Ping timeout: 250 seconds]
nagaraj has joined #ruby
noop has quit [Ping timeout: 256 seconds]
jusmyth has joined #ruby
lbrf has joined #ruby
SOLDIERz__ has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
sea_local has quit [Ping timeout: 244 seconds]
lbrf has quit [Ping timeout: 245 seconds]
ajaiswal has quit [Quit: Leaving]
tvw has quit []
Stalkr_ has quit [Ping timeout: 250 seconds]
dumdedum has quit [Quit: foo]
jimms has joined #ruby
SOLDIERz__ has quit [Ping timeout: 256 seconds]
barw has joined #ruby
troulouliou_dev has joined #ruby
doodlehaus has quit [Remote host closed the connection]
mrnugget has quit [Quit: mrnugget]
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
<barw> morning folks, quick question...why when we have a rails app with vuln it's possible to get shell and prompt command? which api hooks such thing?
<barw> does anyone knows it?
jottr_ has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
sski has joined #ruby
ramfjord has joined #ruby
carif has joined #ruby
jeanlinux has joined #ruby
jottr has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
tgandrews has quit [Quit: This computer has gone to sleep]
phutchins has joined #ruby
mooru has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros_> barw: #rubyonrails
adac has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<adac> In a yml file, shouldn't the host here being interpreted (it is an environment variable) https://gist.github.com/anonymous/186fa988477a4f80619e
nagaraj has quit [Quit: nagaraj]
<adac> obviouls it doesn't seem to wokr for some reasons. In another rails project it did
WillAmes has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 245 seconds]
WillAmes has joined #ruby
_1_stulla has joined #ruby
_1_stulla has quit [Remote host closed the connection]
krzkrz has quit [Quit: WeeChat 1.0.1]
craigp has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
craigp has joined #ruby
craigp has quit [Remote host closed the connection]
adriancb has joined #ruby
rageberry has joined #ruby
<apeiros_> adac: no, it should not.
toretore has joined #ruby
<apeiros_> adac: rails passes that stuff through ERB first. yaml itself doesn't care about <% sequences.
krz has joined #ruby
catphish has joined #ruby
Goodbox has quit [Read error: Connection reset by peer]
<adac> apeiros, hmm I see. How can I solve this then? By loading the yaml file in a different way perhaps?
tgandrews has joined #ruby
adriancb has quit [Ping timeout: 252 seconds]
<apeiros_> as I said, it's ERB. so if you want it evaluated, push it through ERB first.
<catphish> does anyone know why ruby 1.8.7 might be unable to verify an ssl certificate, while 2.1.3 would succeed, given that they're built against the same openssl with the same configuration
<adac> apeiros, kk. I'll google this. thanks mate!
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jusmyth has quit [Quit: Leaving.]
Photism has joined #ruby
<damic> can you do multiple each loops and modify the original data?
amundj has joined #ruby
Akagi201 has joined #ruby
Macaveli has joined #ruby
claptor has quit [Quit: this channel is bakas]
phutchin1 has joined #ruby
ramfjord has joined #ruby
fella6s has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
phutchins has quit [Read error: Connection reset by peer]
Stalkr_ has joined #ruby
jsilva has joined #ruby
fella7s has quit [Ping timeout: 264 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
<shevy> damic I guess so but why would you want to do that
mrnugget has joined #ruby
doodlehaus has joined #ruby
samuel02 has quit [Remote host closed the connection]
kaspertidemann has quit []
rageberry has quit [Ping timeout: 240 seconds]
jsilva has quit [Ping timeout: 255 seconds]
posixpascal has joined #ruby
arup_r has joined #ruby
livathin_ has joined #ruby
artmann has quit [Quit: No Ping reply in 180 seconds.]
yalue has joined #ruby
artmann has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
livathinos has quit [Ping timeout: 256 seconds]
TPBallbag has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
rageberry has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
samuel02 has joined #ruby
AlexRussia has joined #ruby
mrnugget has quit [Quit: mrnugget]
nerdy has quit [Quit: Computer has gone to sleep.]
TPBallbag has joined #ruby
adac has quit [Ping timeout: 252 seconds]
amacou has joined #ruby
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
samuel02 has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby
chu has joined #ruby
adriancb has joined #ruby
dc_ has joined #ruby
kapil__ has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
lbrf has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
ramfjord has quit [Ping timeout: 256 seconds]
lukeholder has joined #ruby
techsethi has quit [Quit: techsethi]
fantazo has quit [Ping timeout: 250 seconds]
doodlehaus has quit [Remote host closed the connection]
unclouded has quit [Ping timeout: 258 seconds]
spyderman4g63 has joined #ruby
lbrf has quit [Ping timeout: 250 seconds]
Azulinho has joined #ruby
mkaesz has joined #ruby
sanguisdex has quit [Quit: Leaving.]
dc_ has quit [Remote host closed the connection]
adac has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
carif has quit [Ping timeout: 252 seconds]
dc_ has joined #ruby
jonr22 has joined #ruby
Xeago has joined #ruby
mityaz has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
karmatr0n has joined #ruby
psycho_one has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
<damic> shevy: how would you? and cause i need to loop through data and change parts of it
psycho_one has quit [Client Quit]
Xeago_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
depesz has joined #ruby
pen has quit []
<depesz> hi. i have a string with unknown length. what is the simplest, and most-ruby way of splitting it into last two characters, and whatever is before them?
<depesz> i.e. "ABCDEF" => "ABCD", "EF"
dc_ has quit [Ping timeout: 258 seconds]
moritzschaefer has joined #ruby
fantazo has joined #ruby
iamninja has joined #ruby
adriancb has quit [Remote host closed the connection]
henesy has quit [Ping timeout: 258 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
russt has joined #ruby
russt has quit [Client Quit]
sanguisdex has joined #ruby
iamninja has quit [Client Quit]
<shevy> damic I'd use a hash and update that hash
sk87 has joined #ruby
<shevy> damic I don't think you need to use a loop, have you considered using .select ?
ramfjord has joined #ruby
<shevy> depesz you can use []
<Timgauthier> naw naw shevy its "for_each"
<depesz> shevy: how can I get "all but last two" with []?
<depesz> tried, couldn't figure it out.
<depesz> last two is simple.
<shevy> >> your_string = "ABCDEF"; [your_string[0..-3], your_string[-2,2] ]
<eval-in__> shevy => ["ABCD", "EF"] (https://eval.in/229898)
Hermetica has joined #ruby
alex88 has quit [Remote host closed the connection]
<waxjar> >> "ABCDEF"[0..-3]
<eval-in__> waxjar => "ABCD" (https://eval.in/229899)
<depesz> aaah.. 0 .. -3
<depesz> i tried with , only.
<depesz> thanks
<shevy> , would also work, (your_string.size -3); but it is not necessary as you can use the .. range to specify where to start and end
<depesz> yeah. thanks.
<shevy> \o/
<waxjar> yeah, there's a difference between a range and using a second argument :(
<waxjar> confused me for a long time as well
amacou has quit [Remote host closed the connection]
<depesz> ouch. printf "%08s" doesn't fill in with spaces :(
razieliyo has quit [Quit: Saliendo]
<shevy> as long as your coala is ok, it's all fine waxjar
karmatr0n has quit [Remote host closed the connection]
<depesz> how can I change given string into 0-prefixed string of given length?
<waxjar> my coala is fine
razieliyo has joined #ruby
razieliyo has joined #ruby
<shevy> .ljust or .rjust
tvw has joined #ruby
kl_ has quit [Ping timeout: 264 seconds]
<shevy> depesz it is better to give us (1) your input (2) desired output
<depesz> thank you.
midhir has joined #ruby
<hanmac1> or use sprintf, that can do that too
<gregf_> depesz:all of the above or use regexes?
<shevy> then we can give the code in between (1) and (2)
<gregf_> prolly, "ABCDEF" =~ /(.*)(..)$/;print "#{$1} - #{$2}";
kobain has joined #ruby
<depesz> hanmac1: i tried sprintf with %08s (which works for me in another language), but not in here. what format should I use?
<depesz> gregf_: i try to avoid regexps
<gregf_> heh
emmesswhy has joined #ruby
dramalho has quit [Ping timeout: 256 seconds]
<depesz> shevy: i have string, which is basically hex number, and I need it to format like this MAJOR-MINOR
<depesz> where minor are last 2 digits, major are everything else, and both are 0 padded to 8 characters.
<depesz> for example: 12ABC -> 0000012A000000BC
amacou has joined #ruby
<depesz> rjust seems like simple enough
<shevy> >> "12A".rjust 8,'0'
<eval-in__> shevy => "0000012A" (https://eval.in/229900)
MasterPiece has quit [Quit: Leaving]
<shevy> and the other part too; but I actually think there also is another way if it is hex conversion
<hanmac1> depesz: "%08s" does not work, but "%08d" would ... hm
<depesz> hanmac1: no. it works only with integers
<depesz> z="ABC"; printf "%08d\n", z;
oo_ has joined #ruby
barw has quit [Quit: Leaving]
<depesz> shevy: sure, i can divide by 256, but I think that text operation will be simpler here.
beef-wellington has joined #ruby
<depesz> nice. works :) puts timeline + major.upcase.rjust(8, '0') + minor.upcase.rjust(8, '0')
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<shevy> \o/
<shevy> you are mastering ruby at lightning speed
<depesz> funny, but thanks :)
Cyberheb has quit [Read error: Connection reset by peer]
unclouded has joined #ruby
wald0 has joined #ruby
<hanmac1> depesz: as i said it does not work for %s but for %d and others like %x
<godd2> holy crap volt is awesome
SOLDIERz__ has joined #ruby
ramfjord has quit [Ping timeout: 255 seconds]
renanoronfle has joined #ruby
samuel02 has joined #ruby
arup_r has quit [Remote host closed the connection]
alex88 has joined #ruby
uber has quit [Quit: bye]
spectre256 has quit [Ping timeout: 258 seconds]
godd2 has quit [Ping timeout: 250 seconds]
spectre256 has joined #ruby
emmesswhy has quit [Quit: Leaving]
ConstantineXVI has quit [Max SendQ exceeded]
timonv_ has joined #ruby
jherbst has joined #ruby
ConstantineXVI has joined #ruby
lucyinthesky has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
SOLDIERz__ has quit [Ping timeout: 272 seconds]
paulfm_ has joined #ruby
codecop has quit [Remote host closed the connection]
Soda has joined #ruby
sevenseacat has quit [Quit: Leaving.]
spyderman4g63 has quit [Remote host closed the connection]
Rahul_Roy_ has joined #ruby
spyderman4g63 has joined #ruby
jswe has joined #ruby
craigp has joined #ruby
yfeldblum has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
rageberry has quit [Ping timeout: 264 seconds]
nateberkopec has joined #ruby
ramfjord has joined #ruby
SOLDIERz__ has joined #ruby
mloveless has joined #ruby
catphish has left #ruby ["Leaving"]
yfeldblum has quit [Ping timeout: 244 seconds]
adac has quit [Ping timeout: 244 seconds]
tobago has quit [Ping timeout: 272 seconds]
anaeem1_ has quit [Ping timeout: 264 seconds]
kiyote23 has joined #ruby
cajone has quit [Ping timeout: 258 seconds]
mloveless has quit [Ping timeout: 244 seconds]
tylersmith has quit [Ping timeout: 258 seconds]
Stalkr_ has quit [Quit: Leaving...]
tylersmith has joined #ruby
koderok has joined #ruby
koderok has quit [Remote host closed the connection]
cibs has quit [Remote host closed the connection]
jerematic_work has quit [Read error: Connection reset by peer]
cibs has joined #ruby
MrIlyas__ has joined #ruby
jimbach has joined #ruby
bMalum_ has joined #ruby
jimbach has quit [Remote host closed the connection]
eichenwald has joined #ruby
moritzschaefer has quit [Read error: Connection reset by peer]
jusmyth has joined #ruby
jimbach has joined #ruby
jusmyth has quit [Client Quit]
jusmyth has joined #ruby
bMalum has quit [Ping timeout: 255 seconds]
bMalum_ is now known as bMalum
MrIlyas_ has quit [Ping timeout: 258 seconds]
jusmyth has quit [Client Quit]
kiyote23 has quit [Remote host closed the connection]
jusmyth has joined #ruby
jusmyth has quit [Client Quit]
adac has joined #ruby
jgoyon has joined #ruby
anaeem1 has joined #ruby
jusmyth has joined #ruby
ltd has quit [Ping timeout: 272 seconds]
rageberry has joined #ruby
DivineEntity has joined #ruby
lbrf has joined #ruby
triple_b has joined #ruby
uber has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tgandrews has quit [Quit: This computer has gone to sleep]
doodlehaus has joined #ruby
jwang has quit [Ping timeout: 258 seconds]
ltd has joined #ruby
crack_user has joined #ruby
lxsameer has quit [Quit: Leaving]
linojon has joined #ruby
lampd1 has quit [Remote host closed the connection]
lbrf has quit [Ping timeout: 264 seconds]
dfinninger has joined #ruby
allcentury has joined #ruby
vt102 has joined #ruby
agrinb has joined #ruby
devdazed has joined #ruby
Darryl_ has joined #ruby
philwantsfish has quit [Ping timeout: 255 seconds]
moritzschaefer has joined #ruby
jheg has joined #ruby
Takle has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<hanmac1> shevy you can read german, ne?
uber_hulk has quit [Ping timeout: 264 seconds]
crack_user has quit [Quit: Leaving.]
adamski2600 has joined #ruby
sk87 has joined #ruby
krz has joined #ruby
crack_user has joined #ruby
kl has joined #ruby
crack_user has quit [Client Quit]
sk87 has quit [Client Quit]
uber_hulk has joined #ruby
weaksauce has quit [Max SendQ exceeded]
uber_hulk has quit [Client Quit]
adriancb has joined #ruby
uber_hulk has joined #ruby
tobago has joined #ruby
sk87 has joined #ruby
sk87 has quit [Client Quit]
webguynow has joined #ruby
mengu has quit [Remote host closed the connection]
kl has quit [Ping timeout: 252 seconds]
jusmyth has quit [Quit: Leaving.]
tgandrews has joined #ruby
adriancb has quit [Read error: Connection reset by peer]
kaiwren has quit [Quit: kaiwren]
adriancb has joined #ruby
dfinninger has quit [Remote host closed the connection]
jsilva has joined #ruby
tobago has quit [Remote host closed the connection]
chu has joined #ruby
Takle has joined #ruby
quimrstorres has joined #ruby
Channel6 has joined #ruby
ta has quit [Read error: Connection reset by peer]
jswe has quit [Quit: Leaving]
ta has joined #ruby
benzrf|offline is now known as benzrf
whoisjake has joined #ruby
mengu has joined #ruby
jsilva has quit [Ping timeout: 252 seconds]
Avahey has joined #ruby
kl has joined #ruby
evanjs has joined #ruby
josephndenton has joined #ruby
boombadaroomba has joined #ruby
<shevy> hanmac1 yeah
mary5030 has joined #ruby
gregf has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
arup_r has joined #ruby
yfeldblum has joined #ruby
<shevy> hanmac1 hehehe
tesaf has joined #ruby
boombadaroomba has quit [Ping timeout: 240 seconds]
agrinb has quit [Remote host closed the connection]
oleo has joined #ruby
<shevy> where do you guys store usage instructions for your gems?
<shevy> in doc/ ?
<shevy> and in what file... USAGE.md ?
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
riceandbeans has joined #ruby
riceandbeans has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
lucyinthesky has left #ruby ["Leaving"]
axl_ has joined #ruby
<waxjar> the README.md for basic usage, method documentation for more advanced stuff
josephndenton has quit [Quit: leaving]
jottr has joined #ruby
<soahccc> shevy: depends on the gem I woulds say :) Generally ^ though
bkolden has quit [Quit: Leaving]
moritzschaefer has quit [Ping timeout: 264 seconds]
FutureTense has joined #ruby
<apeiros_> s/.md/.markdown/
<apeiros_> dos 8.3 times are over
tesuji has quit [Ping timeout: 264 seconds]
<shevy> nah way too long
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
<shevy> waxjar ok
<shevy> waxjar I guess that readme will contain general instructions as well? so not only usage instructions but more info?
djbkd has joined #ruby
davedev24_ has joined #ruby
<waxjar> yeah, i usually do a features/what is it section, a usage section, an installation section and a license section
rageberry has quit [Ping timeout: 250 seconds]
<shevy> ok
<shevy> I guess that makes it easier for online view
<shevy> like in that github example, where the subsections will become <h*> headers
<shevy> interesting that markdown is not so old
<shevy> about 10 years
kl has quit [Read error: Connection reset by peer]
catphish has joined #ruby
workmad3 has quit [Ping timeout: 258 seconds]
djbkd has quit [Ping timeout: 250 seconds]
<shevy> haha cool... history in the making
<shevy> "A standards effort for the Internet media type text/markdown (independent of the syntax) is underway in the IETF. The Internet-Draft is planned to be submitted to the IESG in April 2015."
<catphish> i'm having a problem with ruby's openssl where some certificates will validate in some rubies and not others, does anyone have any ideas what might cause this? http://paste.codebasehq.com/pastes/prvcz6fgoejjtwidze vs http://paste.codebasehq.com/pastes/sa5uheswk940x0vsgb
maestrojed has joined #ruby
adamski2600 has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
<waxjar> catphish: 1.8.7 is EOL, it's no longer supported or updated
jobewan has quit [Ping timeout: 244 seconds]
adamski2600 has joined #ruby
<catphish> this is true, but doesn't go far towards explaining why it might be broken :(
psy_ has quit [Read error: Connection reset by peer]
<catphish> this actually seems to affect a variety of different ruby/openssl combinations, unfortunately this is the only one i've been able to personally reproduce it on
<hanmac1> apeiros_ i am ploting some very evil plots ... do you want to see? http://i.imgur.com/plNeV5W.png ;P
fantazo has quit [Quit: Verlassend]
jonr22 has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
<hanmac1> catphish: because openssl need to be updated too?
mary5030 has quit [Ping timeout: 255 seconds]
<hanmac1> hm that too, but just let 1.8 die
moritzschaefer has joined #ruby
davedev24_ has joined #ruby
jottr has quit [Quit: WeeChat 1.0.1]
<catphish> hanmac1: well i'm working on trying to reproduce it in 2.x (as my customers have reported doing)
<apeiros_> hanmac1: evil plotter you! better fix that bug against ruby trunk :-p
<catphish> nice cats
tgandrews has joined #ruby
dfinninger has joined #ruby
<hanmac1> apeiros_ hm what bug do you mean? you mean that rwx currently cant be build against ruby-trunk anymore?
lbrf has joined #ruby
byprdct has joined #ruby
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
amacou has quit []
jonr22 has quit [Ping timeout: 272 seconds]
<apeiros_> hanmac1: the one you were complaining for the last few days ;-)
oo_ has quit [Remote host closed the connection]
freerobby has joined #ruby
Or1on has joined #ruby
kaiwren has joined #ruby
<hanmac1> apeiros_ ah that one ... nobu did remove a feature, calling it deprecated, but didnt respond for my asking about replacement yet
emmesswhy has joined #ruby
ramfjord has quit [Ping timeout: 258 seconds]
Or1on has quit [Remote host closed the connection]
lbrf has quit [Ping timeout: 252 seconds]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<hanmac1> until i convince him that he does need to add it again, i cant do that much about :/
<shevy> do you guys know if this is reliable? or will it not work on all rubies: require 'rbconfig'; RbConfig::CONFIG['sitelibdir']
uber_hulk has quit [Ping timeout: 255 seconds]
silkfox has joined #ruby
ctp has joined #ruby
xymbol_ has quit [Quit: Be back later ...]
charliesome has quit [Quit: zzz]
xiq__ has joined #ruby
<hanmac1> shevy should work on all rubies i know
rageberry has joined #ruby
beef-wellington has quit [Read error: Connection reset by peer]
<shevy> \o/
craigp has quit []
<shevy> then I might be able to avoid having to use Pathname to find out
workmad3 has joined #ruby
agrinb has joined #ruby
sklik has joined #ruby
mahtennek has joined #ruby
xiq_ has quit [Ping timeout: 255 seconds]
SOLDIERz__ has quit [Quit: Be back later ...]
<hanmac1> shevy ps: you might not need to require "rbconfig" because it might be already required
jobewan has joined #ruby
<hanmac1> >> $LOAD_PATH.map {|path| RbConfig::CONFIG.key(path) }
<eval-in__> hanmac1 => ["sitelibdir", "sitearchdir", "sitedir", "vendorlibdir", "vendorarchdir", "vendordir", "rubylibdir", "rubyarchdir"] (https://eval.in/229925)
<shevy> really?
<shevy> that would be even better
<hanmac1> "BEHOLD!!! the nine dirs of requireing!" ;P
<hanmac1> oh its only eight
<shevy> yeah you are right
<shevy> it works
snath has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 258 seconds]
sfr^ has quit [Excess Flood]
sfr^ has joined #ruby
jimms has quit []
luckyruby has quit [Quit: Leaving...]
jobewan has quit [Ping timeout: 245 seconds]
moritzschaefer has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
AugustoC has quit [Quit: Connection closed for inactivity]
dts has joined #ruby
Takle has joined #ruby
Channel6 has quit [Quit: Leaving]
dc_ has joined #ruby
ramfjord has joined #ruby
Mongey has quit [Ping timeout: 264 seconds]
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
Solsist has joined #ruby
<shevy> weird
<shevy> I really thought you'd have to require 'rbconfig' before it would work
<shevy> perhaps this was in the 1.8.x era?
spastorino has joined #ruby
joast has quit [Quit: Leaving.]
mary5030 has joined #ruby
aclearma_ has joined #ruby
Fire-Dragon-DoL has joined #ruby
graft has quit [Ping timeout: 272 seconds]
kapil__ has quit [Quit: Connection closed for inactivity]
<hanmac1> shevy its because of gems
mary5030 has quit [Remote host closed the connection]
<shevy> ohhh
<hanmac1> try to start ruby with "--disable-gems"
<gr33n7007h> >> str = "rocky river"; rep = {"ocky" => "uby", "iver" => "ocks!!!"}; rep.map(&str.method(:gsub))
<shevy> we dig deep... into the secrets of ruby
<eval-in__> gr33n7007h => [#<Enumerator: "rocky river":gsub(["ocky", "uby"])>, #<Enumerator: "rocky river":gsub(["iver", "ocks!!!"])>] (https://eval.in/229927)
Photism has quit [Quit: Leaving]
mary5030 has joined #ruby
tagrudev has quit [Remote host closed the connection]
<soahccc> shevy: I just remember that Config got renamed to RbConfig at some point
aclearman037 has quit [Ping timeout: 264 seconds]
sk87 has joined #ruby
<shevy> true, I also forgot that
tgandrews has quit [Quit: This computer has gone to sleep]
Solsist has quit [Ping timeout: 264 seconds]
kaspergr1bbe is now known as kaspergrubbe
danijoo has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
MrIlyas__ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Megtastique has joined #ruby
kaspergrubbe is now known as Guest80497
alex88 has quit [Remote host closed the connection]
djbkd has joined #ruby
shock_one has joined #ruby
<benzrf> >> str = "rocky river"; rep = {"ocky" => "uby", "iver" => "ocks!!!"}; rep.inject(&str.method(:gsub))
<eval-in__> benzrf => no implicit conversion of Array into String (TypeError) ... (https://eval.in/229929)
shock_one has quit [Client Quit]
shock_one has joined #ruby
<benzrf> er
hanmac1 has quit [Quit: Leaving.]
<benzrf> >> str = "rocky river"; rep = {"ocky" => "uby", "iver" => "ocks!!!"}; rep.each(&str.method(:gsub!)); str
<eval-in__> benzrf => "rocky river" (https://eval.in/229930)
<benzrf> huh
ValicekB has joined #ruby
<benzrf> oh... method objects dont do array -> multiple args conversion
rshetty has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
drager has quit [Ping timeout: 240 seconds]
joonty1 has joined #ruby
ctp has quit [Ping timeout: 256 seconds]
jsilva has joined #ruby
anafrogue__ has joined #ruby
dcarmich has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Milk_weed has joined #ruby
louism2wash has joined #ruby
joonty has quit [Ping timeout: 272 seconds]
bMalum has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 255 seconds]
xymbol_ has joined #ruby
<gr33n7007h> damn!
Guest80497 is now known as kaspergrubbe_
rshetty has quit [Ping timeout: 255 seconds]
bMalum has joined #ruby
jobewan has joined #ruby
tcrypt has quit [Read error: Connection reset by peer]
tcrypt has joined #ruby
anafrogue_ has quit [Ping timeout: 252 seconds]
jsilva has quit [Ping timeout: 264 seconds]
RhysPedrick has joined #ruby
adamski2600 has quit [Quit: leaving]
SCHAAP137 has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 244 seconds]
lmickh has joined #ruby
klmlfl has joined #ruby
Crazy_Atheist has joined #ruby
Crazy_Atheist has quit [Changing host]
Crazy_Atheist has joined #ruby
AxonetBE has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
<AxonetBE> How can I overwrite the method translated in this case? https://gist.github.com/DriesS/be96a361727931c771d7 I tried with class eval but it seems not to work.
<RhysPedrick> Hi all. Any UK users?
Crazy_Atheist has quit [Read error: Connection reset by peer]
sski has quit [Remote host closed the connection]
sski has joined #ruby
Crazy_Atheist has joined #ruby
amslazo has joined #ruby
dts has quit [Ping timeout: 252 seconds]
Taranis has quit [Quit: leaving]
Crazy_Atheist has quit [Read error: Connection reset by peer]
orolo has joined #ruby
blueOxigen has quit [Ping timeout: 256 seconds]
Crazy_Atheist has joined #ruby
SCHAAP137 has joined #ruby
moritzschaefer has joined #ruby
FutureTense has quit [Ping timeout: 264 seconds]
<orolo> i have an array that contains enumerables. i'm able to a.find_index{ |d| d == 'val'} and then get that enumerable but is there a way to do it in one command? what i'm doing feels wrong.
<amslazo> i've modified a readme and pushed it with git but the changes haven't been made
<amslazo> the readme file hasn't been uploaded to the repo
<amslazo> what gives?
last_staff has quit [Quit: last_staff]
AFKGeek has quit [Quit: Fades into the shadows]
treehug88 has joined #ruby
sski has quit [Ping timeout: 264 seconds]
mengu has quit [Remote host closed the connection]
skroon has joined #ruby
techsethi has joined #ruby
<skroon> i'm a bit confused why this doesn't work, it's probably something really stupid, but if someone could help me out please: DateTime.strptime("29-11-2014 13:12:58", "%d-%m-%Y %h:%m:%s")
bal has quit [Quit: bal]
Techguy305 has joined #ruby
<apeiros_> orolo: find instead of find_index
Techguy305 has quit [Max SendQ exceeded]
<skroon> ahhh capitalization :-)
<apeiros_> amslazo: how's that a ruby question?
<skroon> rubber duck debugging :-)
rippa has joined #ruby
gsd has joined #ruby
joonty has joined #ruby
<apeiros_> skroon: yeah, %m can't be both, minute and month ;-p
<orolo> thanks apeiros
RhysPedrick has left #ruby [#ruby]
geggam has joined #ruby
mengu has joined #ruby
joonty1 has quit [Ping timeout: 258 seconds]
<exadeci> Hey, how can I override the respond_to in the calling action when using super ? https://gist.github.com/exadeci/d7d4dfa0722467ba1de6
tgandrews has joined #ruby
bMalum has quit [Ping timeout: 264 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
bMalum has joined #ruby
kaiwren has quit [Quit: kaiwren]
banister has joined #ruby
snowyrooftops has joined #ruby
mahtennek has quit [Read error: Connection reset by peer]
<snowyrooftops> I'm a newbie here and wanted to get started with ruby by creating some gems.
axisys has joined #ruby
<gr33n7007h> skroon, DateTime.strptime("29-11-2014 13:12:58", "%d-%m-%Y %H:%M:%S")
axisys has quit [Changing host]
axisys has joined #ruby
<ericwood> sterptime is how I pronounce that in my head
<snowyrooftops> Is rvm as common in the Ruby community as virtualenv is in the Python community? (i.e. Is rvm the defacto standard for virtual environments in Ruby?)
jsilva has joined #ruby
reinaldob has quit [Remote host closed the connection]
<ericwood> snowyrooftops: there's a few options, rbenv is gaining a lot of ground, you may want to consider it first
<ericwood> although I don't have much against rvm
kiyote23 has joined #ruby
<apeiros_> exadeci: instance_variable = instance_variable_get("@#{controller_name.singularize}") # <-- this is superugly. and I'm not even talking about abusing interpolation as a .to_s
dblessing has joined #ruby
<snowyrooftops> ericwood: Thanks. We have so many choices in Ruby and I'm looking at getting started with Ruby by creating some gems. I didn't want to clutter the system with my 'playground gems'.
kamilc__ has quit [Quit: Leaving...]
<ericwood> snowyrooftops: follow the rubygems.org tutorials, it'll show you how to avoid that
<apeiros_> snowyrooftops: it's common, but not a standard by any means.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<chris613> noob question here, can someone point me to an explanation of 'a == nil' vs 'a.nil?' - is it purely syntactical sugar?
<apeiros_> snowyrooftops: you should not have dependencies against it. you can have optional dependencies like a .ruby-version file which is understood by most ruby env managers.
shvelo has joined #ruby
diegoviola has joined #ruby
<apeiros_> chris613: == nil has to perform a comparison. .nil? can return false immediately (except for NilClass#nil?, which of course returns true immediately)
joast has joined #ruby
<apeiros_> other than that, they *should* be equivalent.
<chris613> Thanks!
chiel has joined #ruby
drager has joined #ruby
bluOxigen has joined #ruby
econerd4ever has joined #ruby
<exadeci> apeiros: This is an example I picked from http://pathfindersoftware.com/2008/07/drying-up-rails-controllers-polymorphic-and-super-controllers/ the project I'm working on doesn't look like this, it's worse -_- and the code doesn't seems relevant for my question
jsilva has quit [Ping timeout: 264 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
foofoobar has joined #ruby
aganov has quit [Quit: Leaving]
fabrice31 has quit [Remote host closed the connection]
<foofoobar> Hi. I trying to do a „bundle update“ and libv8 fails to update: /usr/local/rvm/gems/ruby-1.9.3-p392/gems/libv8-3.16.14.7/ext/libv8/builder.rb:28:in `make_flags': undefined method `include?' for nil:NilClass (NoMethodError)
lbrf has joined #ruby
<foofoobar> I tried a lot of hints I found on stackoverflow, but none of this worked.
dc_ has quit [Remote host closed the connection]
tier has joined #ruby
<foofoobar> Running a linux i686 athlon i386 GNU/Linux
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<foofoobar> ruby -v: ruby 1.9.3p392
fabrice31 has joined #ruby
livathin_ has quit []
agrinb has joined #ruby
<snowyrooftops> apeiros_: I hear there's a bundler for handing dependencies, but I haven't practiced enough ruby to get to that point yet. Until then, I'm just planning to use rvm for keeping my in-development ruby gems separated from my regular environment.
<snowyrooftops> Leaving now.. will go code some Ruby!
gsd has joined #ruby
snowyrooftops has quit [Quit: leaving]
banister has joined #ruby
shredding has joined #ruby
gsd has quit [Client Quit]
Kricir has joined #ruby
uber_hulk has joined #ruby
<shock_one> So, I'm in a class `GemName::Proxy::ClassName`. How would I get a corresponding instance of `GemName::Strategy::ClassName`. Without active support.
<shock_one> So, I'm in a class `GemName::Proxy::ClassName`. How would I get a corresponding instance of `GemName::Strategy::ClassName`. Without active support.
mikepack has joined #ruby
lbrf has quit [Ping timeout: 256 seconds]
wjimenez5271 has joined #ruby
<apeiros_> you write GemName::Strategy::ClassName
<apeiros_> !xy
<apeiros_> @ shock_one ^
<shock_one> I mean dynamically. I don't know the ClassName.
<apeiros_> tell us about the problem you want to solve, not about your intended solution. I'm pretty sure there's better ways to achieve what you want.
rshetty has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
pauly_oc has joined #ruby
Techguy305 has joined #ruby
<shock_one> Each proxy has some strategies, which reside in a corresponding module. I want a proxy to autodiscover its strategies.
dts has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<apeiros_> and for your way: Class#name + sub/gsub + Object.const_get
dts is now known as dts|pokeball
<apeiros_> shock_one: why don't you reverse it?
Techguy305 has quit [Max SendQ exceeded]
<foofoobar> any hints? :/
<exadeci> apeiros_: The list that the GenericController returns doesn't filter results based on user Abilities (from CanCan)
<apeiros_> GemName::Name::Proxy, GemName::Name::Strategy
<apeiros_> and then you can just do GemName::Name.constants
Techguy305 has joined #ruby
snath has joined #ruby
<shock_one> I like it, but now I have a nice directory 'proxies' where all of them live. And with this change I would need to change the folder structure.
_ixti_ has quit [Ping timeout: 272 seconds]
<apeiros_> exadeci: that's a nice non-sequitur
<shock_one> Actually I want something like GemName::Strategy::const_get(constantized_name_of_class).contants, but I can't find how to do constantized_name_of_class, which also should be unqualified.
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
fabrice31 has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
<exadeci> apeiros_: I would like to filter results returned by the superclass based on current_user permissions but the superclass does a respond_to
lukeholder has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros_> shock_one: I think you're confusing camelize and constantize
mikepack has quit [Remote host closed the connection]
klmlfl has joined #ruby
<apeiros_> shock_one: if you use const_get, you don't need constantize
shock_one has quit [Quit: Lingo: www.lingoirc.com]
<apeiros_> shock_one: and camelize you don't need because your names are not underscored.
AxonetBE has quit [Quit: AxonetBE]
shock_one has joined #ruby
shock_one has left #ruby [#ruby]
<apeiros_> shock_one: so I'll repeat: 17:19 apeiros_: and for your way: Class#name + sub/gsub + Object.const_get
shock_one has joined #ruby
mikedugan is now known as machugga
zemiudo has joined #ruby
machugga is now known as mikedugan
mityaz has quit [Quit: Leaving]
<shock_one> exadeci, To override respond to and have access to the original method, you can use alias_method_chain
giuseppesolinas has quit [Quit: This computer has gone to sleep]
echevemaster has joined #ruby
jeanlinux has quit [Remote host closed the connection]
<shock_one> apeiros, sure, it's an obvious solution, but I don't exactly like messing with strings.
rshetty has joined #ruby
<Takumo> How could I 'destroy' the environment between two tests in a describe?
dkphenom has joined #ruby
timonv_ has quit [Remote host closed the connection]
<Takumo> I have something I want to test which has different behaviour between two environments, and to test them I need to destroy the application
anaeem1 has quit [Remote host closed the connection]
moritzschaefer has quit [Ping timeout: 244 seconds]
<apeiros_> shock_one: what do you think constantize et al are?
<apeiros_> shock_one: if you don't like messing with strings, then you'll not get around restructuring.
<apeiros_> shock_one: alternatively you can register your stuff. e.g. Proxies = {"proxyname" => ProxyClass} and Strategies = {"strategy" => StrageyClass}
rageberry has quit [Ping timeout: 255 seconds]
<apeiros_> anyway, "I don't like messing with strings" is another indicator for XY.
* apeiros_ off
apeiros_ has quit [Remote host closed the connection]
<shock_one> apeiros, I was mistaken, const_get can accept a string, which is fine. In this context by messing I mean doing gsub. I only want GemName::Strategy::const_get(unqualified_class_name), and I feel there is an easy way to get it, which I'm missing.
lucyinthesky has joined #ruby
apeiros_ has joined #ruby
shock_one has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 258 seconds]
shock_one has joined #ruby
shock_one has left #ruby [#ruby]
shock_one has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
yfeldblum has joined #ruby
<shock_one> Registering is exactly how it currently works, and it proved to be a pain.
russt has joined #ruby
uber_hulk has quit [Ping timeout: 255 seconds]
paulfm_ has quit [Quit: Zzzzz...]
kiyote23 has quit [Remote host closed the connection]
_ixti_ has joined #ruby
ConstantineXVI has quit [Max SendQ exceeded]
reinaldob has joined #ruby
ConstantineXVI has joined #ruby
arrubin has quit []
atomical has quit [Ping timeout: 258 seconds]
tcrypt has quit [Remote host closed the connection]
kiyote23 has joined #ruby
tcrypt has joined #ruby
ConstantineXVI has quit [Max SendQ exceeded]
apeiros_ has quit [Ping timeout: 250 seconds]
moritzschaefer has joined #ruby
Xeago_ has quit [Read error: Connection reset by peer]
ConstantineXVI has joined #ruby
shock_one has quit [Client Quit]
Xeago has joined #ruby
shock_one has joined #ruby
Hijiri has quit [Quit: WeeChat 1.0.1]
yfeldblum has quit [Ping timeout: 264 seconds]
atomical has joined #ruby
uber_hulk has joined #ruby
<exadeci> shock_one: So I should make a version of my superclass action without respond_to and call it with alias_method ?
paulfm_ has joined #ruby
aspires has joined #ruby
chrishough has joined #ruby
econerd4ever has quit [Remote host closed the connection]
<shock_one> No, you should redefine respond_to in your subclass and just call the super method: a new version of respond_to will be chosen.
codecop has joined #ruby
paulfm_ has quit [Client Quit]
<shock_one> OK, super is a keyword, no a method.
econerd4ever has joined #ruby
pengin has joined #ruby
tcrypt has quit [Ping timeout: 272 seconds]
wjimenez5271 has quit [Remote host closed the connection]
rkalfane has joined #ruby
StoneCypher has joined #ruby
Hermetica has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ConstantineXVI has quit [Max SendQ exceeded]
ConstantineXVI has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
econerd4ever has quit [Ping timeout: 250 seconds]
ConstantineXVI has quit [Max SendQ exceeded]
<foofoobar> I trying to do a „bundle update“ and libv8 fails to update: /usr/local/rvm/gems/ruby-1.9.3-p392/gems/libv8-3.16.14.7/ext/libv8/builder.rb:28:in `make_flags': undefined method `include?' for nil:NilClass (NoMethodError)
ConstantineXVI has joined #ruby
<foofoobar> I tried a lot of hints I found on stackoverflow, but none of this worked.
<foofoobar> Running a linux i686 athlon i386 GNU/Linux
ConstantineXVI has quit [Read error: Connection reset by peer]
tgandrews has quit [Quit: This computer has gone to sleep]
karmatr0n has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
jfran has joined #ruby
jheg has quit [Quit: jheg]
snath has quit [Remote host closed the connection]
uber_hulk has quit [Ping timeout: 255 seconds]
josephndenton has joined #ruby
karmatr0n has quit [Remote host closed the connection]
karmatr0n has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
<gregf_> AxonetBE: you need to use instance_eval
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<gregf_> bah :/ sorry. long back that was :/
snath has joined #ruby
IotaSpencer has joined #ruby
jonr22 has joined #ruby
kiyote23 has quit [Ping timeout: 244 seconds]
linelevel has joined #ruby
tier_ has joined #ruby
xymbol_ has quit [Quit: Lingo: www.lingoirc.com]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karmatr0n has quit [Ping timeout: 252 seconds]
Abhijit has joined #ruby
tier has quit [Ping timeout: 264 seconds]
s00pcan has joined #ruby
<linelevel> Hi, I just installed rvm using the recommended method (`\curl -sSL https://get.rvm.io | bash -s stable --ruby`), and it installed Ruby version 2.1.5, but now when I try to run the script that makes it available to my shell (`source ~/.rvm/scripts/rvm`), I get the error "ruby-2.1.2 is not installed." -- Why is it looking for 2.1.2?
davejlong has joined #ruby
<linelevel> Any suggestions for how to fix this?
snath has quit [Remote host closed the connection]
<ericwood> linelevel: rvm use 2.1.5
<ericwood> or `rvm use 2.1.5 --default` or something like that
sambao21 has joined #ruby
<havenwood> linelevel: the #rvm channel is very helpful if you keep having issues
<linelevel> havenwood: Ah, sorry, didn't realize it would have its own channel.
jespada has joined #ruby
<linelevel> ericwood: Oh, got it. That fixed the problem, but I still have no idea why it was looking for 2.1.2 to begin with.
pietr0 has joined #ruby
<linelevel> Where would that have been configured?
<ericwood> ¯\_(ツ)_/¯
<havenwood> linelevel: musta been set as default
<ericwood> you can set it up in your bash_profile, but I recommend using that default flag to tell it to default to it
<linelevel> havenwood: This is a fresh Ubuntu 14.04 install.
jonr22 has quit [Ping timeout: 252 seconds]
n1lo has quit [Ping timeout: 272 seconds]
allcentury has quit [Ping timeout: 264 seconds]
timonv_ has joined #ruby
sdrew has joined #ruby
Cyberheb has joined #ruby
gsd has joined #ruby
timonv_ has quit [Remote host closed the connection]
aspires has quit []
kaiwren has joined #ruby
wjimenez5271 has joined #ruby
nitrix has joined #ruby
zemiudo has quit [Ping timeout: 240 seconds]
ghostmoth has joined #ruby
einarj has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
uber_hulk has joined #ruby
dopiee has quit [Remote host closed the connection]
aspires has joined #ruby
pietr0 has quit [Quit: pietr0]
uber_hulk has quit [Client Quit]
uber_hulk has joined #ruby
Abhijit has quit [Remote host closed the connection]
mikepack has joined #ruby
n1lo has joined #ruby
jonr22 has joined #ruby
Morkel has quit [Quit: Morkel]
lbrf has joined #ruby
banister_ has joined #ruby
banister has quit [Ping timeout: 258 seconds]
econerd4ever has joined #ruby
amslazo has quit [Quit: chimpout.com]
lbrf has quit [Ping timeout: 264 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
noop has joined #ruby
agrinb has joined #ruby
bricker`work has joined #ruby
teddyp1cker has joined #ruby
lolmaus_ has quit [Remote host closed the connection]
mloveless has joined #ruby
lolmaus_ has joined #ruby
tier_ has quit [Remote host closed the connection]
preyalone has joined #ruby
sambao21 has joined #ruby
jimbach has quit [Remote host closed the connection]
rbrs has joined #ruby
ptrrr has joined #ruby
agrinb has quit [Ping timeout: 272 seconds]
allcentury has joined #ruby
joonty has quit [Quit: Leaving]
Tricon has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
troyready has joined #ruby
shredding has quit [Quit: shredding]
ivmx has joined #ruby
enebo has joined #ruby
mattmcclure has joined #ruby
sambao21 has quit [Client Quit]
deric_skibotn has joined #ruby
<shevy> long live ruby linelevel! \o/
timonv_ has joined #ruby
<ericwood> lol activesupport defines fortnight
<ericwood> 1.fortnight
<ericwood> :|
qba73 has quit []
benzrf is now known as benzrf|offline
benzrf|offline is now known as benzrf
<terrellt> This is the library that defines "#fifth"
<terrellt> I have no surprise.
<michael_mbp> hey guys
<michael_mbp> quick q
jherbst has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
<shevy> it's the phpification of ruby
<michael_mbp> in the context of Object.class_eval { } or model_eval { } when specifying private/protected does it work like normal?
<michael_mbp> or must we do def foo; ...; end; private :foo ?
<exadeci> shock_one: I can't get it to work alias_method_chain :result, :respond_to it should call respond_to_with_result ?
<shevy> you throw EVERYTHING into it
<shevy> now what's missing is to treat capitalized and lowercased the same
<shevy> so we can write:
<shevy> def foo_BAR
<shevy> and invoke via
<shevy> FOO_bar
Takle_ has quit [Remote host closed the connection]
DaniG2k has quit [Quit: leaving]
Takle has joined #ruby
<shock_one> No, it calls result_with_respond_to. You mixed up the arguments, exadeci.
centrx has joined #ruby
sambao21 has joined #ruby
bMalum has quit [Quit: bMalum]
emmesswhy has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
Tricon has quit [Remote host closed the connection]
alex88 has joined #ruby
olivier_bK has quit [Ping timeout: 240 seconds]
sk87 has joined #ruby
catphish has quit [Quit: Leaving]
Takle has quit [Ping timeout: 240 seconds]
<banister_> Sou|cutter: ping
spider-mario has joined #ruby
zemiudo has joined #ruby
shock_one has quit [Remote host closed the connection]
sk87 has quit [Client Quit]
jlast has joined #ruby
mkaesz has quit [Remote host closed the connection]
emmesswhy has quit [Ping timeout: 244 seconds]
quimrstorres has quit [Remote host closed the connection]
St_Marx has joined #ruby
quimrstorres has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Takle has joined #ruby
jimbach has joined #ruby
troulouliou_dev has quit [Read error: Connection reset by peer]
Dr3amc0d3r|away has quit [Ping timeout: 240 seconds]
jimbach has quit [Remote host closed the connection]
marchtemp has left #ruby ["WeeChat 0.4.2"]
adriancb has quit [Remote host closed the connection]
jimbach has joined #ruby
Takle has quit [Remote host closed the connection]
mg^ has joined #ruby
sambao21 has joined #ruby
spider-mario has quit [Ping timeout: 244 seconds]
sambao21 has quit [Client Quit]
boombadaroomba has joined #ruby
jlast has quit [Remote host closed the connection]
sambao21 has joined #ruby
rgs has quit [Ping timeout: 264 seconds]
goodenough has joined #ruby
jshultz has joined #ruby
pengin has quit [Remote host closed the connection]
rgs has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
<Sou|cutter> O_O
sea_local has joined #ruby
<banister_> Sou|cutter you use the Model[] syntax for Arel right?
<banister_> Sou|cutter i.e order(User[:name].asc)
<Sou|cutter> yeah, there's a gem that lets you do that
<Sou|cutter> arel_helpers IIRC
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
lucyinthesky has left #ruby ["Leaving"]
snath has joined #ruby
<banister_> Sou|cutter yeah, the issue i ran into with that (at least doing it manually) is that it breaks the `[]` array subscript operator for has_manys
alex88 has quit [Remote host closed the connection]
triple_b has joined #ruby
<banister_> Sou|cutter e.g: user.homeworks[0] #=> no longer returns the first homeowrk
<banister_> Sou|cutter it returns an arel::attribute
<banister_> Sou|cutter have you run into that?
cajone has joined #ruby
<Sou|cutter> oh, no I haven't. I don't regularly use that with AR
<Sou|cutter> I tend to use .first or .first(5) or enumerable methods
<banister_> darn, so i have to download the gem and try it myself :P
<banister_> Sou|cutter yeah, unfortunatley i have colleagues who like using the array subscript for has_manys so i can't use it if it breaks :( i'll have a check, maybe there's a trick the arel_helper author is using to get around that
o0oo0o has joined #ruby
<Sou|cutter> well you can only include it in certain models
<Sou|cutter> buut... that's not really a fix
linelevel1 has joined #ruby
msgodf has quit [Ping timeout: 240 seconds]
alex88 has joined #ruby
<banister_> nah he's not doing anything fancy, same issue, oh well
claf has joined #ruby
* claf <3 ruby
Dr3amc0d3r|away has joined #ruby
jsilva has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
uxp has joined #ruby
linelevel has quit [Ping timeout: 264 seconds]
<Sou|cutter> banister_: can I blame AR for copying class methods?
<Sou|cutter> :P
roolo_ has quit [Remote host closed the connection]
work_op_ has joined #ruby
roolo has joined #ruby
<work_op_> hi, i have a snippet that is supposed to iterate through a puzzle, but it keeps missing the first element, so i suspect its an off-by-one type of problem, but i cant find the error
<work_op_> @puzzle.each_index{|i| if @puzzle[i] != 0 then @known.store(i.to_s,@puzzle[i]) end}
foofoobar_ has joined #ruby
foofoobar has quit [Ping timeout: 264 seconds]
foofoobar_ is now known as foofoobar
<shevy> long live ruby!
Hobogrammer has joined #ruby
<shevy> work_op_ and what is @puzzle? and Array I assume? the iteration will be 0,1,2,3,4,5
<work_op_> yeah
<work_op_> i can post the whole thing, its not very long
<work_op_> er, minus the slash at the end
rockdon has quit [Ping timeout: 258 seconds]
jsilva has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
tcrypt has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
baroquebobcat has quit [Client Quit]
wallerdev has joined #ruby
alex88 has quit []
nkumari has joined #ruby
adriancb has joined #ruby
nkumari has quit [Remote host closed the connection]
jgoyon has quit [Quit: Be back later ...]
pengin has joined #ruby
jgoyon has joined #ruby
nkumari has joined #ruby
lolmaus_ has quit [Remote host closed the connection]
roolo has joined #ruby
posixpascal has joined #ruby
lolmaus_ has joined #ruby
ConstantineXVI has joined #ruby
tsu has joined #ruby
foofoobar has quit [Quit: foofoobar]
tcrypt has quit [Client Quit]
p0wn3d_mhs has joined #ruby
klmlfl has quit [Remote host closed the connection]
tsu is now known as taiansu
bluOxigen has quit [Ping timeout: 240 seconds]
ConstantineXVI has quit [Max SendQ exceeded]
djbkd has joined #ruby
bmichelsen has joined #ruby
zemiudo has quit [Quit: Leaving]
zemiudo has joined #ruby
jgoyon has quit [Ping timeout: 264 seconds]
Solsist has joined #ruby
lolmaus_ has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 256 seconds]
rockdon has joined #ruby
whoisjake has quit []
roolo has quit [Remote host closed the connection]
djbkd has joined #ruby
neersighted has quit [Ping timeout: 258 seconds]
Azulinho has quit [Quit: Leaving]
Guest76002 has quit [Ping timeout: 258 seconds]
pietr0 has joined #ruby
samuel02 has quit [Remote host closed the connection]
geggam has joined #ruby
spider-mario has joined #ruby
weaksauce has joined #ruby
Solsist has quit [Client Quit]
tier has joined #ruby
aspires has quit []
<jhass> uh why do you do each_index instead of .each?
paulfm_ has joined #ruby
<work_op_> because i need its position in the puzzle
<jhass> each_with_index then
Timgauthier is now known as timgauthier_away
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<work_op_> oh, i didnt know that was a thing
<work_op_> i'll rewrite it
IotaSpencer has quit [Quit: WeeChat 1.0.1]
fabrice31 has joined #ruby
Crazy_Atheist has quit [Quit: No bacon on this network right now...]
ghr has joined #ruby
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest89151
lbrf has joined #ruby
kamil has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bMalum has joined #ruby
rockdon has quit [Ping timeout: 258 seconds]
snath has quit [Remote host closed the connection]
aspires has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
poguez has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
FutureTense has joined #ruby
nkumari has quit [Remote host closed the connection]
lbrf has quit [Ping timeout: 264 seconds]
wjimenez5271 has joined #ruby
<work_op_> ok
<work_op_> i have got it, i think
spyderman4g63 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 264 seconds]
spyderman4g63 has joined #ruby
karmatr0n has joined #ruby
<shevy> \o/
<shevy> long live work_op!
razieliyo has quit [Quit: Saliendo]
rockdon has joined #ruby
shock_one has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
yetanotherdave has joined #ruby
<work_op_> thanks, sorry for bothering you all, i am on my first couple days of ruby...
<work_op_> but soon i will be able to solve sudoku puzzles, so thats a plus
yfeldblum has joined #ruby
<shevy> hehe
<shevy> and then
<shevy> you'll write a graphical game in ruby
jhc76 has quit [Quit: Leaving]
samuel02 has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
AlSquire has quit [Quit: This computer has gone to sleep]
zB0hs has joined #ruby
segfalt has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
samuel02 has quit [Client Quit]
samuel02 has joined #ruby
kirun has joined #ruby
psy_ has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
hiall has quit [Ping timeout: 252 seconds]
bMalum has quit [Quit: bMalum]
spyderma_ has joined #ruby
graydot has joined #ruby
yourname has quit [Quit: leaving]
michaeldeol has joined #ruby
rkalfane has joined #ruby
davejlong has quit [Remote host closed the connection]
adac has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
<work_op_> i actually plan to hack on Cinchrb once i've learned myself a ruby
dkphenom has joined #ruby
mengu has quit [Remote host closed the connection]
davejlong has joined #ruby
nkumari has joined #ruby
rkalfane has quit [Client Quit]
spyderman4g63 has quit [Ping timeout: 264 seconds]
bmichelsen has quit [Ping timeout: 258 seconds]
timonv_ has joined #ruby
lucyinthesky has joined #ruby
<work_op_> its probably faster to mutate an array than to map a copy if i plan to do it ten million times, right?
aspiers has quit [Ping timeout: 258 seconds]
boombadaroomba has joined #ruby
dkphenom has quit [Ping timeout: 240 seconds]
neoxquick has joined #ruby
neoxquick has quit [Client Quit]
perrier has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
perrier has joined #ruby
neoxquick has joined #ruby
<shevy> probably
<shevy> .map works through all entries
Akagi201_ has joined #ruby
djbkd has quit [Remote host closed the connection]
Fire-Dragon-DoL has quit [Quit: Leaving.]
djbkd has joined #ruby
zemiudo has quit [Ping timeout: 244 seconds]
<work_op_> yeah, well i come from lisp/scheme, so my first thought was just to map, but im gonna have to brute force 3-10m solutions per puzzle
sambao21 has joined #ruby
<claf> you want fast array?
Xeago has quit [Remote host closed the connection]
perrier has quit [Remote host closed the connection]
perrier_ has joined #ruby
Akagi201 has quit [Ping timeout: 264 seconds]
sinequanon has joined #ruby
baweaver has quit [Remote host closed the connection]
<work_op_> are constants faster to access then local variables
fantazo has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
BraddBitt has joined #ruby
<shevy> why does this have so weird characters?
<shevy> "Example¶ ?"
lolmaus has joined #ruby
djbkd has quit [Remote host closed the connection]
<work_op_> the paragraph is a permalink to whatever subheading its next to
ms99999 has joined #ruby
bMalum has joined #ruby
rdark has quit [Quit: leaving]
<ms99999> getting windows error trying to install the premailer gem --- any suggestions? Could not find a valid gem 'premailer' (>= 0), here is why:
<ms99999> Unable to download data from https://rubygems.org/ - SSL_connect ret
<ms99999> rno=0 state=SSLv3 read server certificate B: certificate verify failed
lolmaus_ has joined #ruby
<eichenwald> ms99999 do have certs installed
DiamondKoopa has quit [Ping timeout: 240 seconds]
<ms99999> I didn't install certs do you have a command for that?
lucyinthesky has quit [Quit: Leaving]
<eichenwald> not sure how valid it is dont use windows
zemiudo has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moritzschaefer has joined #ruby
michaeldeol has joined #ruby
<shevy> what do you guys recommend for tests into test/ ?
lolmaus__ has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
samuel02 has quit [Remote host closed the connection]
aspires has quit []
Photism has joined #ruby
klmlfl has joined #ruby
djbkd has quit [Remote host closed the connection]
checkit has joined #ruby
Alina-malina has quit [Ping timeout: 264 seconds]
lolmaus_ has quit [Ping timeout: 240 seconds]
Alina-malina has joined #ruby
geggam has quit [Remote host closed the connection]
aspires has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
lolmaus has joined #ruby
lucyinthesky_ has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
aspires has quit [Client Quit]
jlast has joined #ruby
rkalfane has joined #ruby
lolmaus_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
lolmaus__ has quit [Ping timeout: 240 seconds]
kiyote23 has joined #ruby
<rpag> shevy, what do you mean?
aspires has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> rpag I want to add tests for my ftp-wrapper
patrick99e99 has joined #ruby
<shevy> it has literally 0 tests right now
lolmaus__ has joined #ruby
<patrick99e99> hey guys, is there a way to make respond_with actually render the errors and status on a show action?
<jhass> patrick99e99: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
bMalum has quit [Quit: bMalum]
renderful has joined #ruby
zemiudo has quit [Quit: Leaving]
lolmaus has quit [Ping timeout: 240 seconds]
zemiudo has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<rpag> shevy, i use Minitest::Test.
michaeldeol has quit [Read error: Connection reset by peer]
karmatr0n has quit []
jenrzzz has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
djbkd has joined #ruby
aspires has quit [Client Quit]
renanoronfle has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lolmaus_ has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
lbrf has joined #ruby
anaeem1_ has joined #ruby
tier has quit [Remote host closed the connection]
<work_op_> let it be know that work_op has completed his sudoku brute forcer. i cant test it here because the website has a timeout thats too short, but it DOES work: http://codepaste.net/qthnus
lolmaus__ has quit [Ping timeout: 240 seconds]
renderful has quit [Ping timeout: 264 seconds]
tier has joined #ruby
<claf> work_op_: cool!
<claf> work_op_: how does it work?
graft_ has joined #ruby
graft_ has joined #ruby
<patrick99e99> hey guys, is there a way to make respond_with actually render the errors and status on a show action?
AlSquire has joined #ruby
<wallerdev> patrick99e99: #rubyonrails
mloveless has quit [Remote host closed the connection]
lolmaus__ has joined #ruby
<patrick99e99> oh I am sorry
<patrick99e99> I thought I was in there..
baweaver has joined #ruby
<patrick99e99> damn.
quimrstorres has quit [Remote host closed the connection]
lbrf has quit [Ping timeout: 272 seconds]
elaptics is now known as elaptics`away
chrisja has joined #ruby
aspires has quit []
aspires has joined #ruby
nkumari has quit [Remote host closed the connection]
oleo has quit [Ping timeout: 252 seconds]
<work_op_> it takes a sudoku puzzle, collects all the known indices, and then iterates through the puzzle changing each unknown element until the puzzle can be considered solved
techsethi has quit [Quit: techsethi]
oleo has joined #ruby
aspires has quit [Client Quit]
aspires has joined #ruby
econerd4ever has quit [Remote host closed the connection]
quimrstorres has joined #ruby
econerd4ever has joined #ruby
work_op_ has quit []
nkumari has joined #ruby
lolmaus__ has quit [Ping timeout: 240 seconds]
djbkd has quit [Remote host closed the connection]
Mothore has joined #ruby
baweaver has quit [Remote host closed the connection]
michaeldeol has joined #ruby
ghr has joined #ruby
econerd4ever has quit [Ping timeout: 252 seconds]
djbkd has joined #ruby
quimrstorres has quit [Ping timeout: 255 seconds]
whoisjake has joined #ruby
baweaver has joined #ruby
rageberry has joined #ruby
lucyinthesky_ has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Xeago has quit [Remote host closed the connection]
pauly_oc has quit [Quit: Textual IRC Client: www.textualapp.com]
yfeldblum has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
lucyinthesky has joined #ruby
livingstn has joined #ruby
silkfox has quit [Ping timeout: 264 seconds]
louism2wash has quit [Quit: This computer has gone to sleep]
livingstn has quit [Excess Flood]
duncannz has joined #ruby
aspires has quit []
livingstn has joined #ruby
aspires has joined #ruby
centrx has quit [Quit: Did gyre and gymble in ye wabe]
darkmagex6 has joined #ruby
Techguy305 has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 255 seconds]
michaeldeol has quit [Read error: Connection reset by peer]
ohaibbq has joined #ruby
rageberry has quit [Ping timeout: 255 seconds]
it0a has joined #ruby
wald0 has quit [Ping timeout: 244 seconds]
Techguy305 has joined #ruby
silkfox has joined #ruby
econerd4ever has joined #ruby
arrubin has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
ms99999 has left #ruby [#ruby]
Stalkr_ has joined #ruby
bMalum has joined #ruby
<Stalkr_> Any idea why bundle thinks I am on 2.1.3? https://gist.github.com/anonymous/8902d11810724d2f5414
baweaver has quit [Remote host closed the connection]
n1lo has quit [Quit: Leaving]
n1lo has joined #ruby
zemiudo has quit [Ping timeout: 255 seconds]
orolo has quit [Read error: Connection reset by peer]
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
michaeldeol has joined #ruby
orolo has joined #ruby
uber_hulk has quit [Ping timeout: 244 seconds]
lkba has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
phoenix__ has joined #ruby
tgandrews has joined #ruby
sambao21 has joined #ruby
dseitz has joined #ruby
louism2wash has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
jlast has quit [Ping timeout: 240 seconds]
lolmaus__ has joined #ruby
AlexRussia has joined #ruby
sk87 has joined #ruby
_ritchie has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<_ritchie> I have an rvm question that no one has responded to in #rvm: on one of my machines when I run some commands (e.g. use, gemset list...) I see this sed error "sed: -e expression #1, char 11: unterminated address regex" 6 times, have any of you seen that before?
exadeci has quit [Quit: Connection closed for inactivity]
sk87 has quit [Client Quit]
michaeldeol has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
tier has quit [Remote host closed the connection]
davejlong has quit []
knutmithut has joined #ruby
jalopezsilva has joined #ruby
pandaant has joined #ruby
shazaum has quit [Quit: Leaving]
jlast has joined #ruby
adriancb has quit [Remote host closed the connection]
matcouto has joined #ruby
<knutmithut> Hey guys, what's the best way to get the caller's instance within a rails model? i'd like to prevent having an extra parameter in each method and class
noop has quit [Ping timeout: 258 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
bMalum has quit [Quit: bMalum]
posixpascal has joined #ruby
tier has joined #ruby
banister has joined #ruby
aspiers has joined #ruby
jalopezsilva has quit [Ping timeout: 264 seconds]
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdrew has joined #ruby
reinaldob has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
preyalone has quit [Quit: Connection closed for inactivity]
baweaver has joined #ruby
sambao21 has joined #ruby
<michael_mbp> hey guys
<michael_mbp> in the context of Object.class_eval { } or model_eval { } when specifying private/protected does it work like normal?
<michael_mbp> or must we do def foo; ...; end; private :foo ?
louism2wash has quit [Quit: This computer has gone to sleep]
adriancb has joined #ruby
spyderma_ has quit [Read error: Connection reset by peer]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zemiudo has joined #ruby
kaiwren has quit [Quit: kaiwren]
michaeldeol has joined #ruby
zemiudo has quit [Client Quit]
Mothore_ has joined #ruby
jlast_ has joined #ruby
Tricon has joined #ruby
spyderma_ has joined #ruby
Hijiri has joined #ruby
philpd has joined #ruby
jlast__ has joined #ruby
benzrf|offline is now known as benzrf
Rahul_Roy_ has joined #ruby
Mothore has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier_ has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
baweaver has quit [Remote host closed the connection]
nkumari has quit [Remote host closed the connection]
qox31 has quit [Ping timeout: 258 seconds]
ikaros has quit [Quit: Ex-Chat]
jlast_ has quit [Ping timeout: 250 seconds]
qox31 has joined #ruby
qox31 has quit [Read error: Connection reset by peer]
dr4__ has joined #ruby
fabrice31 has joined #ruby
agrinb has joined #ruby
doug2 has joined #ruby
<doug2> fog... can I use with an IAM profile without creds?
<doug2> I can with python boto
rodfersou has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
andikr has quit [Remote host closed the connection]
tier has quit [Ping timeout: 272 seconds]
qox31 has joined #ruby
j_mcnally has joined #ruby
dr4_ has quit [Ping timeout: 255 seconds]
davedev2_ has joined #ruby
sambao21 has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
nkumari has joined #ruby
mikepack_ has joined #ruby
econerd4ever has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 245 seconds]
econerd4ever has joined #ruby
adac has joined #ruby
chinmay_dd has quit [Quit: Leaving]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
philpd has left #ruby [#ruby]
ramfjord has joined #ruby
mikepack has quit [Ping timeout: 255 seconds]
lbrf has joined #ruby
Tricon has quit [Read error: Connection reset by peer]
Tricon_ has joined #ruby
econerd4ever has quit [Ping timeout: 256 seconds]
arup_r has quit [Quit: Leaving.]
iamninja has joined #ruby
geggam has joined #ruby
Fire-Dragon-DoL has joined #ruby
ghr has joined #ruby
centrx has joined #ruby
davedev2_ has quit [Ping timeout: 245 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
davedev24_ has joined #ruby
lbrf has quit [Quit: Be back later ...]
diegoviola has quit [Remote host closed the connection]
sk87 has joined #ruby
ldnunes has quit [Quit: Leaving]
diegoviola has joined #ruby
Soda has quit [Remote host closed the connection]
parabolize has joined #ruby
adriancb has quit [Remote host closed the connection]
Xeago has joined #ruby
lbrf has joined #ruby
greenbagels has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
aspires has quit []
NoNMaDDeN has quit [Remote host closed the connection]
mloveless has joined #ruby
shock_one has quit [Remote host closed the connection]
Tenjjin has joined #ruby
Tenjjin has quit [Client Quit]
phutchin1 has quit [Ping timeout: 264 seconds]
Tranquility has joined #ruby
hobodave has joined #ruby
xxneolithicxx has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
<xxneolithicxx> hi all, in the stock ruby that comes with linux does ERB support the terminator -%> ? I see it in a bunch of examples online but it doesnt wok for me at all (it throws syntax errors).
pietr0 has quit [Quit: pietr0]
jheg has joined #ruby
jlast has joined #ruby
wallerdev has quit [Quit: wallerdev]
<twohlix_> xxneolithicxx: http://stackoverflow.com/questions/4407862/minus-sign-at-the-end-of-a-erb-sequence also ruby --version should tell you what version of ruby you're using
aspiers has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
<twohlix_> also xxneolithicxx: http://ruby-doc.org/stdlib-2.1.5/libdoc/erb/rdoc/ERB.html for more docs on ERB
<jhass> mmh, "comes with linux"
jlast__ has quit [Ping timeout: 258 seconds]
jlast_ has joined #ruby
doev has quit [Ping timeout: 256 seconds]
teddyp1c_ has joined #ruby
<xxneolithicxx> it looks like its erubis/rails functionality only, it does not work in stock ERB
econerd4ever has joined #ruby
<xxneolithicxx> at least not in 1.8.7
mengu has joined #ruby
mengu has joined #ruby
teddyp1cker has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
<jhass> who uses that anyway, still
tvw has quit []
matcouto has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 256 seconds]
<xxneolithicxx> :-X
michaeldeol has joined #ruby
<xxneolithicxx> it is supported by 2.x though apparently based on ur above link
sambao21 has quit [Quit: Computer has gone to sleep.]
<xxneolithicxx> so its just my version
<jhass> Rails != Ruby
<twohlix_> jhass I linked him to ruby docs
<jhass> Rails is a framework written in Ruby
<xxneolithicxx> aware, im not running rails anyway
<jhass> oh, only clicked on the SO link :P
pietr0 has joined #ruby
<twohlix_> :D
<xxneolithicxx> thx
<jhass> anyway, update
<jhass> 1.8 is past EOL
tgandrews has quit [Quit: Leaving]
<claf> interesting speech about OS https://www.youtube.com/watch?v=-thLNvxFUu4
shazaum has joined #ruby
teddyp1c_ has quit [Read error: Connection reset by peer]
econerd4ever has quit [Ping timeout: 245 seconds]
rageberry has joined #ruby
pengin has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
tgandrews has joined #ruby
econerd4ever has joined #ruby
duncannz has quit [Ping timeout: 244 seconds]
michaeldeol has quit [Read error: Connection reset by peer]
n1lo has quit [Quit: Leaving]
michaeldeol has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
kamil has quit [Quit: Linkinus - http://linkinus.com]
work_op_ has joined #ruby
matcouto has joined #ruby
shock_one has joined #ruby
adriancb has joined #ruby
jlast has joined #ruby
teddyp1cker has quit []
iamninja has quit [Remote host closed the connection]
matcouto has quit [Client Quit]
jlast_ has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
poguez has quit [Quit: Connection closed for inactivity]
vinleod has joined #ruby
louism2wash has joined #ruby
sk87 has joined #ruby
codecop has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
solidus-river has left #ruby [#ruby]
jlast has quit [Ping timeout: 256 seconds]
<shevy> feliz navidad!
<shevy> feliz navidaaaaaad
<shevy> come on guys, we need a this-is-the-end celebration mind set here
<[a]foo> shevy pls
<shevy> yeah
Techguy305|2 has joined #ruby
jlast has joined #ruby
chipotle has quit [Read error: Connection reset by peer]
Techguy305 has quit [Ping timeout: 264 seconds]
decoponio has quit [Quit: Leaving...]
michaeldeol has quit [Read error: Connection reset by peer]
Techguy305|2 has quit [Max SendQ exceeded]
<shazaum> shevy, creo que no gustan jejeje
jheg has quit [Quit: jheg]
chipotle has joined #ruby
jlast_ has quit [Read error: Connection reset by peer]
jlast_ has joined #ruby
sambao21 has joined #ruby
<shevy> oh I remember jejeje
<shevy> a guy from the canary islands always used that phrase, so I figured it must be a spanish chuckle!
Morkel has joined #ruby
zemiudo has joined #ruby
Techguy305|2 has joined #ruby
davedev24_ has quit [Ping timeout: 255 seconds]
chipotle has quit [Max SendQ exceeded]
jlast has quit [Ping timeout: 244 seconds]
zemiudo has quit [Client Quit]
mbeasley has joined #ruby
Techguy305|2 has quit [Ping timeout: 244 seconds]
Tricon_ has quit [Quit: Leaving]
DLSteve has joined #ruby
aclearman037 has joined #ruby
goodenough has quit [Remote host closed the connection]
lucyinthesky has quit [Quit: How soon is now?]
mary5030 has quit [Remote host closed the connection]
aspires has joined #ruby
mary5030 has joined #ruby
<xxneolithicxx> english = hahaha, spanish = jejeje/jajaja, chinese (I think) = kakaka
davedev24_ has joined #ruby
<benzrf> xaxaxa
michaeldeol has joined #ruby
aclearma_ has quit [Ping timeout: 264 seconds]
<benzrf> huehuehue
<waxjar> which language is kekeke?
jerius has joined #ruby
<StoneCypher> korean nominally, but several other locals too
Morkel has quit [Quit: Morkel]
jlast has joined #ruby
hiyosi has joined #ruby
fantazo has quit [Quit: Verlassend]
djbkd has quit [Remote host closed the connection]
<work_op_> convs from #ruby
<work_op_> lol
mary5030 has quit [Ping timeout: 245 seconds]
iamninja has joined #ruby
Ysgard has joined #ruby
mleone has joined #ruby
jlast_ has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
zB0hs has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghostmoth has joined #ruby
zemiudo has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
lucyinthesky has joined #ruby
timonv_ has joined #ruby
exadeci has joined #ruby
Kricir has quit [Remote host closed the connection]
chipotle has quit [Ping timeout: 258 seconds]
ghr has joined #ruby
dotix has joined #ruby
Joufflu has joined #ruby
marr has joined #ruby
alvaro_o has joined #ruby
yalue has quit [Quit: return 0;]
davedev24_ has quit [Ping timeout: 272 seconds]
davedev24_ has joined #ruby
postmodern has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
TPBallbag has quit []
mloveless has quit []
chipotle has joined #ruby
michaeldeol has quit [Ping timeout: 250 seconds]
chipotle has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
jobewan has quit [Ping timeout: 258 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chipotle has joined #ruby
danijoo has joined #ruby
djbkd has joined #ruby
bMalum has joined #ruby
tvw has joined #ruby
sk87 has joined #ruby
jobewan has joined #ruby
michaeldeol has joined #ruby
towski_ has joined #ruby
MattB2 has joined #ruby
<towski_> can I not do instance_variable_set("_request", ...)
<benzrf> towski_: you need the @
<towski_> does ruby 2.0.0 prevent it
davedev24_ has quit [Ping timeout: 272 seconds]
<towski_> oh weird
<towski_> thanks
<benzrf> > Object.new.instance_variable_set :lmao_wut, 3
<benzrf> >> Object.new.instance_variable_set :lmao_wut, 3
<eval-in__> benzrf => `lmao_wut' is not allowed as an instance variable name (NameError) ... (https://eval.in/230097)
<benzrf> >> Object.new.instance_variable_set :@lmao_wut, 3
<eval-in__> benzrf => 3 (https://eval.in/230098)
davedev24_ has joined #ruby
djbkd has quit [Remote host closed the connection]
Elian-Wonhalf has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
Elian-Wonhalf has left #ruby ["WeeChat 1.0.1"]
Vile` has quit [Ping timeout: 264 seconds]
<eam> weird that it doesn't just take the non @ portion of the name
work_op_ has quit [Quit: Page closed]
djbkd has joined #ruby
<benzrf> eam: fairly weird
davedev24_ has quit [Ping timeout: 244 seconds]
Vile` has joined #ruby
jalopezsilva has joined #ruby
MrIlyas has joined #ruby
olivier_bK has joined #ruby
<shevy> StoneCypher you know koreans?
redjack1964 has quit [Remote host closed the connection]
michaeldeol has quit [Read error: Connection reset by peer]
<StoneCypher> shevy: some, sure
<xxneolithicxx> you dont know his godliness Kim Jung Illness
<shevy> xxneolithicxx he does not twitter much
<xxneolithicxx> that is true
djbkd has quit [Remote host closed the connection]
davedev24_ has joined #ruby
boombadaroomba has joined #ruby
jalopezsilva has quit [Ping timeout: 272 seconds]
<xxneolithicxx> maybe you can install hist latest linux release and talk to his godliness through that lol
nkumari has quit [Remote host closed the connection]
hobodave has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<xxneolithicxx> im sure he'd hear you
phoenix__ has quit [Quit: Leaving]
patrick99e99 has quit [Ping timeout: 250 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wallerdev has joined #ruby
Musashi007 has joined #ruby
sdrew has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goodenough has joined #ruby
blackmesa has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
evanjs has quit [Remote host closed the connection]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
AndyBotwin has joined #ruby
tgandrews has joined #ruby
maletor has joined #ruby
xxneolithicxx has left #ruby [#ruby]
baweaver has joined #ruby
ndrei has quit [Ping timeout: 240 seconds]
nkumari has joined #ruby
<parabolize> "All party organs and public security authorities should make a list of residents named Kim Jong-un … and train them to voluntarily change their names." https://en.wikipedia.org/wiki/Kim_Jong-un#Name lol
AlexRussia has joined #ruby
djbkd has joined #ruby
chipotle_ has joined #ruby
chipotle has quit [Remote host closed the connection]
fabrice31 has joined #ruby
xxneolithicxx has joined #ruby
agrinb has joined #ruby
ycodr has quit [Remote host closed the connection]
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
yourname has joined #ruby
ycodr has joined #ruby
wjimenez_ has joined #ruby
adriancb has quit [Remote host closed the connection]
jheg has joined #ruby
nkumari has quit [Remote host closed the connection]
ivmx has left #ruby [#ruby]
<shevy> quite a persona cult
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
agrinb has quit [Ping timeout: 240 seconds]
sargas has joined #ruby
fabrice31 has quit [Ping timeout: 245 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
adac has quit [Ping timeout: 252 seconds]
wjimenez5271 has quit [Ping timeout: 272 seconds]
bobdobbs` has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
nkumari has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bobdobbs has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aclearman037 has quit [Quit: I'm out!]
mengu has quit [Ping timeout: 245 seconds]
tesaf has quit [Quit: Lost terminal]
whoisjake has quit []
davasaurous has joined #ruby
redjack1964 has joined #ruby
dts|pokeball has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
tgandrews has quit [Quit: This computer has gone to sleep]
baweaver has quit [Remote host closed the connection]
aspires_ has joined #ruby
mengu has joined #ruby
jheg has quit [Quit: jheg]
aspires has quit [Ping timeout: 250 seconds]
duncannz has joined #ruby
lbrf has quit [Quit: Be back later ...]
livingstn has quit []
NoNMaDDeN has joined #ruby
tier_ has quit [Ping timeout: 264 seconds]
roolo has joined #ruby
jenrzzz_ has joined #ruby
pengin has joined #ruby
framling has joined #ruby
jenrzzz has quit [Ping timeout: 264 seconds]
dotix has quit [Ping timeout: 250 seconds]
chu has joined #ruby
NoNMaDDeN has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
roolo has quit [Ping timeout: 255 seconds]
nfk has quit [Quit: yawn]
jaxxstorm has quit [Quit: ZNC - http://znc.in]
djbkd has joined #ruby
rbrs has quit [Quit: Leaving]
michaeldeol has quit [Read error: Connection reset by peer]
Mateon1 has quit [Ping timeout: 256 seconds]
ghr has joined #ruby
michaeldeol has joined #ruby
sklik has quit [Ping timeout: 256 seconds]
michaeldeol has quit [Client Quit]
quimrstorres has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Mateon1 has joined #ruby
goodenough has quit [Remote host closed the connection]
redjack1964_ has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Excess Flood]
sklik has joined #ruby
jaxxstorm has joined #ruby
lw has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
michael_mbp has joined #ruby
maletor has joined #ruby
redjack1964 has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
djbkd has quit [Remote host closed the connection]
chipotle_ has quit [Ping timeout: 255 seconds]
Galas has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
nkumari has quit [Remote host closed the connection]
baweaver has joined #ruby
<shevy> dumdedum
<shevy> who wants to write a better ruby-gnome
jenrzzz_ has quit [Ping timeout: 255 seconds]
redjack1964 has joined #ruby
<wallerdev> html ui is the future
nkumari has joined #ruby
xymbol has joined #ruby
xymbol has quit [Client Quit]
xymbol has joined #ruby
jlast has joined #ruby
redjack1964_ has quit [Ping timeout: 252 seconds]
davedev24_ has quit [Ping timeout: 245 seconds]
jerius has quit []
* parabolize wants a better ruby-gnome but thinks its outside of his capabilities.
jenrzzz has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
alvaro_o has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
sklik has quit [Remote host closed the connection]
<parabolize> I also want a gtk3 on windows that doesn't explode in my face.
sklik has joined #ruby
godd2 has joined #ruby
zemiudo has quit [Quit: Leaving]
Cyberheb has quit [Ping timeout: 255 seconds]
baweaver has quit [Ping timeout: 250 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
sklik has quit [Read error: No route to host]
sklik has joined #ruby
tandoshi has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
michaeldeol has joined #ruby
NoNMaDDeN has joined #ruby
doodlehaus has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
ebbflowgo has joined #ruby
Cyberheb has joined #ruby
wallerdev has quit [Ping timeout: 245 seconds]
wallerdev has joined #ruby
Channel6 has joined #ruby
agrinb has joined #ruby
weems|mac has joined #ruby
weems|mac has quit [Changing host]
weems|mac has joined #ruby
baweaver has joined #ruby
monsieurp has quit [Remote host closed the connection]
monsieurp has joined #ruby
narcan has joined #ruby
duncannz has quit [Ping timeout: 250 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
devoldmx has joined #ruby
senera has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
<shevy> wallerdev but you need javascript for that :(
mikepack_ has quit [Remote host closed the connection]
reinaldob has joined #ruby
<wallerdev> javascript is great :)
<wallerdev> especially with angular or ember
Musashi007 has quit [Quit: Musashi007]
josephndenton has quit [Ping timeout: 264 seconds]
<jhass> wallerdev: Gtk can render out to HTML these days :P
Channel6 has quit [Quit: Leaving]
linelevel1 has quit [Ping timeout: 245 seconds]
<parabolize> though gnome requires javascript for gnome shell
<shevy> :(
<shevy> ruby lost the war
<shevy> to javascript
lmickh has quit [Remote host closed the connection]
<parabolize> python lost to vala in the gtk world
reinaldob has quit [Ping timeout: 240 seconds]
<parabolize> I hate vala
michaeldeol has quit [Read error: Connection reset by peer]
tandoshi has quit [Ping timeout: 250 seconds]
Musashi007 has joined #ruby
goodenough has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Crazy_Atheist has joined #ruby
chipotle has joined #ruby
silkfox has quit [Ping timeout: 264 seconds]
jimmyy has joined #ruby
Musashi007 has quit [Client Quit]
perturbation has joined #ruby
charliesome has joined #ruby
Musashi007 has joined #ruby
adriancb has joined #ruby
<shevy> hehehe
renanoronfle has joined #ruby
spider-mario has quit [Remote host closed the connection]
<shevy> I have not had much exposure to vala
<shevy> it seems to be the bridge from C to C++
weems|mac has quit [Quit: bai]
adriancb has quit [Remote host closed the connection]
<shevy> "Genie is another programming language supported by the Vala compiler with a syntax closer to Python."
<shevy> this is such a disease
<shevy> pseudo-programming languages pop out of nowhere
<shevy> that is more like a DSL than anything isn't it?
adriancb has joined #ruby
axl_ has quit [Quit: axl_]
baweaver has quit [Remote host closed the connection]
djbkd has joined #ruby
jfran has quit [Ping timeout: 250 seconds]
havenwood has quit [Read error: Connection reset by peer]
VBlizzard has quit [Ping timeout: 244 seconds]
Cyberheb has quit [Quit: Computer has gone to sleep.]
michaeldeol has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
_ritchie has quit [Quit: Page closed]
ltd has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
ptrrr has quit [Quit: ptrrr]
eichenwald has quit [Quit: WeeChat 1.0.1]
ltd has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
jespada has quit [Quit: Leaving]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
tandoshi has joined #ruby
charliesome has quit [Quit: zzz]
xymbol_ has joined #ruby
pengin has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
Mothore_ has quit [Quit: Lingo: www.lingoirc.com]
aspires_ has quit []
baweaver has quit [Remote host closed the connection]
xymbol has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
charliesome has joined #ruby
djbkd has quit [Remote host closed the connection]
chrisja has quit [Quit: leaving]
kirun has quit [Quit: Client exiting]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
econerd4ever has quit [Ping timeout: 252 seconds]
ghostmoth has quit [Quit: ghostmoth]
byte48_ is now known as byte48
pygospa has quit [Ping timeout: 244 seconds]
chrishough has joined #ruby
Azure has quit [Ping timeout: 244 seconds]
<parabolize> its C#
davedev24_ has quit [Ping timeout: 252 seconds]
<parabolize> with gnome c objects
pygospa has joined #ruby
<parabolize> what I really want is a full and up to date ruby EFL api
jalopezsilva has joined #ruby
mikepack has joined #ruby
davedev24_ has joined #ruby
FutureTense has quit [Ping timeout: 264 seconds]
Schmidt has quit [Ping timeout: 240 seconds]
patrick99e99 has joined #ruby
MrIlyas has quit [Quit: Leaving]
AndyBotwin has quit [Remote host closed the connection]
baweaver has joined #ruby
econerd4ever has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
treehug88 has quit []
michaeldeol has joined #ruby
jalopezsilva has quit [Ping timeout: 256 seconds]
bMalum has quit [Quit: bMalum]
econerd4ever has quit [Remote host closed the connection]
banister has joined #ruby
klmlfl has quit [Remote host closed the connection]
econerd4ever has joined #ruby
mleone has quit [Ping timeout: 252 seconds]
posixpascal has quit [Quit: Textual IRC Client: www.textualapp.com]
Schmidt has joined #ruby
Azure has joined #ruby
geggam has quit [Ping timeout: 272 seconds]
econerd4ever has quit [Ping timeout: 264 seconds]
poguez has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
econerd4ever has joined #ruby
<godd2> Anyone else see the first result as "ralls" due to terrible font selection?
Xiti` has joined #ruby
DLSteve has quit [Quit: Leaving]
<wallerdev> nope just you
shock_one has quit [Remote host closed the connection]
<wallerdev> what browser/os?
Xiti` has quit [Client Quit]
Dopagod has quit [Remote host closed the connection]
djbkd has joined #ruby
michaeldeol has quit [Read error: Connection reset by peer]
Xiti` has joined #ruby
<godd2> :(
<godd2> firefox on win7
<rpag> two terrible choices
<godd2> default zoom
jobewan has quit [Quit: Leaving]
mary5030_ has joined #ruby
djbkd has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
Xiti has quit [Ping timeout: 245 seconds]
econerd4ever has joined #ruby
agrinb has joined #ruby
fabrice31 has joined #ruby
djbkd has joined #ruby
giuseppesolinas has joined #ruby
michaeldeol has joined #ruby
jonahR has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
sklik has quit [Remote host closed the connection]
michaeldeol has quit [Read error: Connection reset by peer]
dts|pokeball has joined #ruby
econerd4ever has quit [Ping timeout: 252 seconds]
omarkj has joined #ruby
agrinb has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 258 seconds]
djbkd has quit [Remote host closed the connection]
<omarkj> Hey, I'm wondering if there are any persistent hash functions that come with Ruby ? By persistent I mean a hash function that will return the same value independently of the underlying hardware/runtime.
<omarkj> I can't seem to find any that do that.
banister is now known as banisterfiend
<godd2> where did Ruby get the idea of the inline if?
<banisterfiend> godd2 perl probably
pwh has quit []
<godd2> thanks!
djbkd has joined #ruby
<Nilium> Inline if meaning?
<Nilium> if as an expression?
vinleod has joined #ruby
rageberry has quit [Ping timeout: 252 seconds]
tus has joined #ruby
michaeldeol has joined #ruby
<godd2> Like this
<godd2> >>return 3 if 2 == 2
<eval-in__> godd2 => unexpected return (LocalJumpError) ... (https://eval.in/230144)
<godd2> >> 3 if 2 == 2
<eval-in__> godd2 => 3 (https://eval.in/230145)
djbkd has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
djbkd has joined #ruby
FutureTense has joined #ruby
Channel6 has joined #ruby
arescorpio has joined #ruby
mloveless has joined #ruby
dfinninger has quit [Remote host closed the connection]
p4tux has joined #ruby
razieliyo has joined #ruby
razieliyo has joined #ruby
ghostmoth has joined #ruby
Pixi_ has joined #ruby
Pixi_ has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
sk87 has joined #ruby
Xiti has joined #ruby
Spami has joined #ruby
quimrstorres has joined #ruby
freerobby has quit [Quit: Leaving.]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
triple_b has joined #ruby
Xiti` has quit [Ping timeout: 252 seconds]
giuseppesolinas has joined #ruby
<xxneolithicxx> wow that is a shitty font, i see ralls
michaeldeol has quit [Read error: Connection reset by peer]