havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.0, 2.3.3 & 2.2.6: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby
<eelster> kch: I love Ruby, but Ruby is not the language I'd use for OS dev. C is really more widely used for that.
<kch> yes I understand. Like I said it was an old dream that I moved away from due to random life issues, but maybe one day in the future.
<baweaver> If you want to do OS type work but love Ruby, Rust is your tool.
<kch> Hah I never even heard of Rust.
<eelster> Rust is really cool, but it takes some time to learn.
<baweaver> let values = [1,2,3,4].iter().map( |x| x * 2 );
<kch> Glad I wandered in here. Just started using terminal again on my mac. (Yea I know.)
swills has quit [Quit: Leaving]
<kch> GUys I have to run but really apprectiate the advise you gave me today. See you again soon, hopefully.
aeontech has quit [Quit: aeontech]
kch has quit [Ping timeout: 256 seconds]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
<eelster> Can someone explain the following behavior?
<eelster> >> [3, 4, 4, 6, 9].bsearch{|i| i == 3}
<ruby[bot]> eelster: # => nil (https://eval.in/712783)
<eelster> Shouldn't it return `3`?
nankyokusei has joined #ruby
<Mon_Ouie> 'i >= 3'
<eelster> Mon_Ouie: Does bsearch only work with inequalities?
<SeepingN> yeah it says the block just has to return true or false
moei has joined #ruby
<eelster> Wouldn't i == 3 return true or false?
<Mon_Ouie> Yes. Otherwise it can't know whether it has to go left or right.
<eelster> Mon_Ouie: Oh that makes sense.
<SeepingN> ah
<eelster> I guess that should have been obvious from the fact that it's a binary search.
workmad3 has quit [Ping timeout: 260 seconds]
_djbkd has quit [Ping timeout: 255 seconds]
JoshS has joined #ruby
myk267 has quit [Quit: :q!]
nankyokusei has quit [Ping timeout: 252 seconds]
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rykou has quit [Ping timeout: 240 seconds]
deriler has joined #ruby
elh9 has quit [Ping timeout: 255 seconds]
nertzy has quit [Quit: Leaving]
dcunit3d has joined #ruby
<deriler> hi fellas, need help accomplishing this https://github.com/jethrogb/lenovo-password
solocshaw has quit [Ping timeout: 256 seconds]
<deriler> can't figure out how to save password in step 2 "Enter the password and store the password hash in environment variable P:
milardovich has joined #ruby
a7d7p has quit [Ping timeout: 240 seconds]
<deriler> P="$(ruby pw.rb sda.ata_identify)"
bodgix has quit [Quit: Leaving.]
<deriler> appreciate any assistance
Zamyatin has joined #ruby
<eelster> I'm confused as to what you are doing here?
<eelster> What is P ?
<eelster> Have you yet written pw.rb?
<deriler> i need to unlock my ssd drive using my own assigned parsed password
<eelster> Wait, you don't need to code anything.
<deriler> no i don't
<deriler> this is the algo
<eelster> Just follow the instructions.
<deriler> is uses hdparm
<eelster> I don't see what the problem is?
<deriler> unfortunately am a noobie
<eelster> just type all of that into your terminal
milardovich has quit [Remote host closed the connection]
<deriler> instruction says enter password after the first step
milardovich has joined #ruby
<eelster> It will prompt you for the password
blackbombay has joined #ruby
<deriler> instruction says enter password after the first step for a password
<eelster> P="$(ruby pw.rb sda.ata_identify)" stores it in P
blackbom1 has quit [Ping timeout: 240 seconds]
<deriler> eelster, thanks for your assistance , lemme try again
<eelster> deriler: No worries
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eelster has quit [Quit: Watching some football. ROLL TIDE!]
<baweaver> tis messy ruby
cardboard64 has quit [Ping timeout: 245 seconds]
troys is now known as troys_
a7d7p_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
arooni has quit [Excess Flood]
matled has quit [Write error: Broken pipe]
matled- has joined #ruby
matled- is now known as matled
arooni has joined #ruby
vondruch_ has joined #ruby
vondruch_ has quit [Changing host]
vondruch_ has joined #ruby
matp has quit [Excess Flood]
vondruch has quit [Write error: Broken pipe]
<deriler> eelster, do u think this should still work on a live version of linux?
<deriler> don't have linux installed so just running a live version of kali from usb
solocshaw has joined #ruby
<deriler> got an error message after trying it "ruby: No such file or directory -- pw.rb (LoadError)"
<toretore> is the file there?
alexceder has quit [Quit: leaving]
<deriler> where?
<deriler> in dev/sdb?
<toretore> pw.rb
<deriler> cos that's my assigned drive not sda
<toretore> is the file pw.rb in the directory you're running this from?
<baweaver> what exactly are you trying to do?
<deriler> i regrettably enabled ssd encyption via bios on my laptop
<baweaver> so to use it you have to run the command where pw.rb is
<baweaver> otherwise how does it know where it is?
<deriler> unfortunately the bios would not accept the 13 character string password I set when I nintiated the encryption
<baweaver> or have you downloaded it yet?
<deriler> would only accept an 8 character string
<deriler> so amtrying to use hdparm to unlock it
<toretore> do you have the file pw.rb?
<baweaver> then run from the directory you download it to
<deriler> :)
<toretore> pw.rb do u hav it
spacheco has quit [Remote host closed the connection]
<deriler> shows u how stupid I am
spacheco has joined #ruby
<deriler> n hdparm never even thought about downloading anything , thought everything was based o
<deriler> thx
<deriler> toretore, thx
<deriler> baweaver, thnks to u both for pointing me to my stupidty
<deriler> lemme go download the ruby script , thx
solocshaw has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
cdg has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
Guest70225 is now known as ged
ged is now known as Guest34505
spacheco has quit [Ping timeout: 248 seconds]
<deriler> would u guys suggest I change everything that is sda to sdb in that script due to my device designation?
spacheco has joined #ruby
despai has quit [Ping timeout: 245 seconds]
centrx has joined #ruby
centrx has joined #ruby
centrx has quit [Changing host]
centrx has quit [Read error: Connection reset by peer]
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
guilherme has joined #ruby
saneax is now known as saneax-_-|AFK
despai has joined #ruby
TomyLobo has quit [Disconnected by services]
tdliydppsjornbvj has joined #ruby
tdliydppsjornbvj is now known as cqnacehdxvwgepzx
cqnacehdxvwgepzx is now known as TomyLobo
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore> deriler: there is no sda in the script, it only uses the file you created in step 1 and outputs the digest
AndBobsY_ has quit [Remote host closed the connection]
nofxx has joined #ruby
AndBobsYourUncle has joined #ruby
<deriler> toretore, thanks for that info
marxarelli is now known as marxarelli|afk
marxarelli|afk is now known as marxarelli
tyang_ has quit [Quit: Leaving]
chussenot has quit [Quit: chussenot]
fishcooker has joined #ruby
Kaze_FX has joined #ruby
bmurt has joined #ruby
centrx has quit []
centrx has joined #ruby
centrx has quit [Changing host]
centrx has joined #ruby
charliesome has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
brent___ has joined #ruby
AndBobsY_ has joined #ruby
fishcooker has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
despai has quit [Read error: Connection reset by peer]
despai has joined #ruby
enyo_ has joined #ruby
troys_ is now known as troys
whathappens has quit [Remote host closed the connection]
tolerablyjake has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
milardovich has quit []
enyo_ has quit [Ping timeout: 256 seconds]
TomyLobo has quit [Disconnected by services]
iseharglwijucnak has joined #ruby
iseharglwijucnak is now known as vgxwnbwzezmpthge
vgxwnbwzezmpthge is now known as TomyLobo
shayan_ has quit [Quit: shayan_]
ramfjord has quit [Ping timeout: 260 seconds]
shayan_ has joined #ruby
shayan_ has quit [Client Quit]
fishcooker has joined #ruby
fishcooker has quit [Max SendQ exceeded]
postmodern has joined #ruby
statelesscode has quit [Quit: statelesscode]
fishcooker has joined #ruby
Lucky_ABA has joined #ruby
fishcooker has quit [Max SendQ exceeded]
aeontech has joined #ruby
Lucky_ABA has quit [Client Quit]
aeontech has left #ruby [#ruby]
shayan_ has joined #ruby
fishcooker has joined #ruby
fishcooker has quit [Max SendQ exceeded]
marr has quit [Ping timeout: 240 seconds]
statelesscode has joined #ruby
_djbkd has joined #ruby
ddffg has quit [Quit: Leaving]
fishcooker has joined #ruby
fishcooker has quit [Max SendQ exceeded]
fishcooker has joined #ruby
fishcooker has quit [Max SendQ exceeded]
fishcooker has joined #ruby
fishcooker has quit [Max SendQ exceeded]
Lucky_ABA has joined #ruby
despai has quit [Ping timeout: 245 seconds]
despai has joined #ruby
fishcooker has joined #ruby
fishcooker has quit [Max SendQ exceeded]
jhack has joined #ruby
Devalo has joined #ruby
arescorpio has joined #ruby
_djbkd has quit [Quit: My people need me...]
solocshaw has joined #ruby
FahmeF has joined #ruby
enterprisey has quit [Ping timeout: 255 seconds]
despai has quit [Ping timeout: 252 seconds]
matp has joined #ruby
hahuang61 has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 245 seconds]
whathappens has joined #ruby
blackbom1 has joined #ruby
whathappens has quit [Remote host closed the connection]
FahmeF has quit [Ping timeout: 240 seconds]
spacheco has quit [Remote host closed the connection]
spacheco has joined #ruby
despai has joined #ruby
fnux has quit [Ping timeout: 268 seconds]
blackbombay has quit [Ping timeout: 255 seconds]
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fnux has joined #ruby
spacheco has quit [Ping timeout: 240 seconds]
despai has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
enterprisey has joined #ruby
csk has joined #ruby
Guest84482 has quit [Remote host closed the connection]
ruby has joined #ruby
despai has joined #ruby
mihalis has joined #ruby
ruby is now known as Guest61033
Derperperd has quit [Ping timeout: 240 seconds]
mihalis has left #ruby [#ruby]
Guest61033 has quit [Ping timeout: 256 seconds]
swills has joined #ruby
despai has quit [Ping timeout: 252 seconds]
despai has joined #ruby
AndBobsY_ has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 240 seconds]
AndBobsYourUncle has joined #ruby
marxarelli is now known as marxarelli|afk
username has quit [Ping timeout: 256 seconds]
yeticry_ has quit [Ping timeout: 256 seconds]
x00r__ has joined #ruby
Gasher has quit [Quit: Leaving]
yeticry has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 248 seconds]
Guest34505 is now known as ged
ged is now known as Guest54668
eelster has joined #ruby
dcunit3d has joined #ruby
eelster has quit [Client Quit]
skweek has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
troys is now known as troys_
jhack has quit [Quit: jhack]
cajone has quit [Ping timeout: 258 seconds]
brent___ has quit [Ping timeout: 240 seconds]
centrx has quit []
Zamyatin has joined #ruby
nankyokusei has joined #ruby
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 252 seconds]
kch has joined #ruby
railswebdev has joined #ruby
jhack has joined #ruby
agent_white has quit [Quit: bbl]
mim1k|work has quit [Ping timeout: 240 seconds]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
whathappens has joined #ruby
<kch> hello again
shayan_ has quit [Quit: shayan_]
cajone has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
mim1k|work has joined #ruby
<adam12> kch: o/
solocshaw has quit [Ping timeout: 256 seconds]
<kch> o/o
dcunit3d has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
podman is now known as podman[USC]
gusrub_ has quit []
hahuang61 has joined #ruby
whathappens has quit [Remote host closed the connection]
whathappens has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
Rich_Morin has joined #ruby
whathappens has quit [Ping timeout: 255 seconds]
Alayde has quit [Ping timeout: 240 seconds]
sebastia_ has joined #ruby
jhack has quit [Quit: jhack]
whathappens has joined #ruby
sebastiansier has quit [Ping timeout: 248 seconds]
d^sh has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
d^sh has joined #ruby
FahmeF has joined #ruby
hanmac has quit [Ping timeout: 245 seconds]
aeontech has joined #ruby
FahmeF_ has joined #ruby
eelster has joined #ruby
kch has quit [Quit: leaving]
FahmeF has quit [Ping timeout: 258 seconds]
guilherme has quit [Ping timeout: 245 seconds]
markholmes has joined #ruby
chenillen has joined #ruby
Derperperd has joined #ruby
__Yiota has joined #ruby
enyo_ has joined #ruby
whathappens has quit [Quit: Leaving...]
hanmac has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
despai has quit [Ping timeout: 252 seconds]
evertversteeg has quit [Ping timeout: 240 seconds]
podman[USC] is now known as podman
enyo_ has quit [Ping timeout: 260 seconds]
jcao219_ has quit [Ping timeout: 245 seconds]
rkazak has quit [Quit: Sleep.....ing....]
Guest54668 is now known as ged
chouhoulis has joined #ruby
ged is now known as Guest69192
aeontech has quit [Quit: aeontech]
jud^ has quit [Read error: Connection reset by peer]
rwb has quit [Ping timeout: 255 seconds]
jud^ has joined #ruby
duderonomy has quit [Ping timeout: 255 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AndBobsYourUncle has joined #ruby
guilherme has joined #ruby
evertversteeg has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
__Yiota has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 245 seconds]
rkazak has joined #ruby
username has joined #ruby
Manz_ has joined #ruby
Devalo has joined #ruby
<Manz_> Hi Guys
troys_ is now known as troys
<Manz_> I have a problem on Rails on linode I'm using MongoDB our data was gone..
<Manz_> We restore the backup but still..
arescorpio has quit [Quit: Leaving.]
chenillen has quit [Quit: chenillen]
<markholmes> that's unfortunate, Manz_
<Nilium> Were you one of the folks in shodan?
<Manz_> Yea
<Nilium> That's a rough way to learn that lesson.
Devalo has quit [Ping timeout: 245 seconds]
Manz_ has quit [Quit: Page closed]
<eelster> What happeend with shodan?
aremaref has quit [Ping timeout: 240 seconds]
evertversteeg has quit [Ping timeout: 248 seconds]
kristofferR has joined #ruby
duderonomy has joined #ruby
hahuang61 has joined #ruby
username has quit [Ping timeout: 248 seconds]
hahuang65 has joined #ruby
roflmyeggo has joined #ruby
<markholmes> ouch.
Manz has joined #ruby
<eelster> I'm happy I don't use Mongo, but that really sucks.
<Radar> It really does.
<Manz> Why this happened?
hahuang61 has quit [Ping timeout: 255 seconds]
<eelster> This unfortunately isn't the first time Mongo has had security issues,
<Manz> yea there's a malicious attacks on mongodb
<eelster> I'm pretty happy sticking with Postgres. Especially with rails, I don't really see the need right now to go to NoSQL.
Immune has joined #ruby
<eelster> On the whole, I really love Postgres.
<Manz> is there anyone knows on how to restore it on linode?
<eelster> Restore what?
<Manz> the data on MongoDB
<eelster> I'm honestly not sure. I'm sorry. I wish I knew.
evertversteeg has joined #ruby
<Manz> we restore the oldest backup
<Manz> but still
<Manz> I share this experience to you guys.. but if someone knows how to restore it please help
<toretore> pay the ransom?
<Manz> haha
<eelster> how much is the ransom, just wondering?
<toretore> btc .2
<eelster> so that's 180USD
jeyraof has joined #ruby
howdoi has joined #ruby
QpQ4 has joined #ruby
nankyokusei has joined #ruby
aremaref has joined #ruby
deriler has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 245 seconds]
FahmeF_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 255 seconds]
toretore has quit [Ping timeout: 248 seconds]
pilne has quit [Quit: Quitting!]
railswebdev has joined #ruby
Guest69192 is now known as ged
ged is now known as Guest56818
evertversteeg has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
a7d7p_ has quit [Quit: a7d7p_]
blackbombay has joined #ruby
railswebdev has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Remote host closed the connection]
blackbom1 has quit [Ping timeout: 240 seconds]
braincrash has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
AndBobsY_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
evertversteeg has joined #ruby
TreyG has quit [Ping timeout: 255 seconds]
Rodya_ has quit [Ping timeout: 255 seconds]
guilherme has quit [Ping timeout: 245 seconds]
aeontech has joined #ruby
enyo has joined #ruby
gix has quit [Ping timeout: 258 seconds]
iogf has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
gix has joined #ruby
enyo has quit [Ping timeout: 256 seconds]
aryaching has quit [Read error: Connection reset by peer]
Rodya_ has joined #ruby
marcdel has quit [Ping timeout: 240 seconds]
ianmethyst has quit [Quit: WeeChat 1.6]
ianmethyst has joined #ruby
marcdel has joined #ruby
vikas027 has joined #ruby
vikas027 has left #ruby [#ruby]
ianmethyst has quit [Ping timeout: 252 seconds]
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Client Quit]
saneax-_-|AFK is now known as saneax
Manz has quit [Quit: Page closed]
Channel6 has quit [Quit: Leaving]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
csk has quit [Quit: ZZZzzz…]
jaiks has quit [Ping timeout: 245 seconds]
markholmes has quit [Quit: Leaving]
hahuang65 has quit [Ping timeout: 255 seconds]
Guest56818 is now known as ged
ged is now known as Guest23274
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
FahmeF has joined #ruby
unshadow_ has quit [Ping timeout: 245 seconds]
rkazak has quit [Quit: Sleep.....ing....]
Devalo has joined #ruby
aupadhye has joined #ruby
jaiks has joined #ruby
foption has joined #ruby
Zamyatin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
etehtsea has joined #ruby
QpQ4 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Devalo has quit [Ping timeout: 245 seconds]
enilsen16 has joined #ruby
astrobunny has joined #ruby
roflmyeggo has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
tolerablyjake has joined #ruby
enyo has joined #ruby
Guest95108 is now known as silverdust
silverdust has quit [Changing host]
silverdust has joined #ruby
etehtsea has quit [Quit: Textual IRC Client: www.textualapp.com]
username has joined #ruby
Rodya_ has quit [Remote host closed the connection]
enyo has quit [Ping timeout: 245 seconds]
Rodya_ has joined #ruby
renchan has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
username has quit [Ping timeout: 240 seconds]
gh0zt has joined #ruby
hutch34 has quit [Ping timeout: 252 seconds]
<gh0zt> I want to use webrick to behave like a normal HTTPS server if requesting a simple .txt file but if webrick recieves a specific URI such as "/FORWARD", I want it to forward the request upstream to another server. Is that even possible or is it strictly a 'one or the other' type of usage.
<gh0zt> Either I use webrick as a proxy server or i use it as a normal web server? I can't use it for both on the same server?
boombox_ has joined #ruby
tonini has joined #ruby
chouhoulis has joined #ruby
tonini is now known as zastav
zastav is now known as tonini
chouhoulis has quit [Ping timeout: 258 seconds]
nankyokusei has joined #ruby
anisha has joined #ruby
oaklndr1 has joined #ruby
ifctj has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
whiteline has quit [Ping timeout: 240 seconds]
JoshS has quit [Ping timeout: 255 seconds]
astrobunny has quit [Remote host closed the connection]
ruby-lang400 has joined #ruby
whiteline has joined #ruby
czerasz has joined #ruby
JoshS has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<ruby-lang400> why can't i check the condition inside a hash
<ruby-lang400> it never prints out the output
CloCkWeRX has quit [Quit: Leaving.]
<hanmac> ruby-lang400: you need "dev" => 1234 other than that works for me
hahuang65 has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
troys has quit [Quit: Bye]
aidalgol has joined #ruby
nowz has joined #ruby
<ruby-lang400> @hanmac nope
<ruby-lang400> the username is entered by the user
<ruby-lang400> example if he types dev
<ruby-lang400> it should check
<ruby-lang400> but now it doesen't print
<hanmac> i tested it and it did work for me
cyphase has quit [Ping timeout: 255 seconds]
<ruby-lang400> is it the same code i gave you?
boombox_ has quit [Remote host closed the connection]
<hanmac> ruby-lang400: yes: https://eval.in/private/3548e721c171f1
hahuang65 has quit [Ping timeout: 252 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
hahuang65 has joined #ruby
cyphase has joined #ruby
ruby-lang400 has quit [Ping timeout: 260 seconds]
Guest23274 is now known as ged
Rodya_ has quit [Remote host closed the connection]
ged is now known as Guest58547
Rodya_ has joined #ruby
hahuang65 has quit [Ping timeout: 240 seconds]
chussenot has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
maddmaxx has quit [Read error: Connection reset by peer]
Rodya_ has quit [Ping timeout: 256 seconds]
braincrash has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Quit: Leaving.]
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
aryaching has joined #ruby
rekt has quit [Quit: Bye]
Macaveli has joined #ruby
braincrash has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
dionysus69 has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
hotpancakes has quit [Remote host closed the connection]
brent__ has joined #ruby
hotpancakes has joined #ruby
emilkarl has joined #ruby
cibs has joined #ruby
astrobunny has joined #ruby
pboling has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
hotpancakes has quit [Ping timeout: 240 seconds]
brent__ has quit [Ping timeout: 258 seconds]
aremaref has quit [Ping timeout: 252 seconds]
luckyruby has joined #ruby
neuraload has joined #ruby
hotpancakes has joined #ruby
TomyLobo has quit [Ping timeout: 240 seconds]
matp has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
ponga has joined #ruby
matp has joined #ruby
unshadow has joined #ruby
Derperperd has joined #ruby
emilkarl has quit [Quit: emilkarl]
astrobunny has joined #ruby
futilegames has joined #ruby
amclain has quit [Quit: Leaving]
herbmillerjr has quit [Quit: Konversation terminated!]
oaklndr1 has quit [Ping timeout: 258 seconds]
ifctj has quit [Ping timeout: 252 seconds]
chussenot has quit [Quit: chussenot]
conta has joined #ruby
modin has joined #ruby
aganov has joined #ruby
last_staff has joined #ruby
enyo has joined #ruby
hahuang65 has joined #ruby
Devalo has joined #ruby
unshadow_ has joined #ruby
enyo has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
unshadow has quit [Ping timeout: 240 seconds]
AndBobsY_ has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
enyo has joined #ruby
pawnbox has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
braincrash has quit [Ping timeout: 245 seconds]
AndBobsYourUncle has quit [Ping timeout: 256 seconds]
foption has quit [Remote host closed the connection]
chussenot has joined #ruby
Guest58547 is now known as ged
ged is now known as Guest53985
aufi has joined #ruby
andikr has joined #ruby
braincrash has joined #ruby
antgel has joined #ruby
SesMan has joined #ruby
naprimer_2 has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
naprimer has quit [Ping timeout: 260 seconds]
elementaru has joined #ruby
<aurelien> how should I write your stuff https://eval.in/private/3548e721c171f1 to get ** or nothing rather than clear password?
enilsen16 has quit [Quit: enilsen16]
spectrum has joined #ruby
saneax is now known as saneax-_-|AFK
czerasz has quit [Ping timeout: 245 seconds]
cardboard64 has joined #ruby
rykou has joined #ruby
csk157 has joined #ruby
nankyokusei has joined #ruby
ur5us has joined #ruby
pboling has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 240 seconds]
tonini has quit [Quit: Connection closed for inactivity]
saneax-_-|AFK is now known as saneax
JoshS has quit [Read error: Connection reset by peer]
muelleme has joined #ruby
chussenot has quit [Quit: chussenot]
nankyokusei has quit [Ping timeout: 252 seconds]
blaxter has joined #ruby
JoshS has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
ta has quit [Remote host closed the connection]
Silthias1 has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
frozengeek__ has joined #ruby
TomyWork has joined #ruby
lxsameer has joined #ruby
bocaneri has joined #ruby
pmv has quit [Quit: leaving]
blaxter has quit [Quit: foo]
govg has quit [Quit: leaving]
zamuro has joined #ruby
djbkd_ has joined #ruby
FahmeF has quit [Remote host closed the connection]
tomphp has joined #ruby
muelleme has quit [Ping timeout: 240 seconds]
djbkd_ has quit [Remote host closed the connection]
DaveTaboola has joined #ruby
DaveTaboola has quit [Client Quit]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enterprisey has quit [Remote host closed the connection]
DaveTaboola has joined #ruby
DaveTaboola has quit [Client Quit]
jenrzzz has quit [Ping timeout: 258 seconds]
neuraload has quit [Read error: Connection reset by peer]
neuraload has joined #ruby
binaryplease has joined #ruby
jzigmund has quit [Ping timeout: 240 seconds]
vondruch_ has quit [Ping timeout: 248 seconds]
aufi has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
vdl has quit [Ping timeout: 256 seconds]
charliesome has quit [Client Quit]
rileyy has joined #ruby
troulouliou_div2 has joined #ruby
charliesome has joined #ruby
gloscombe has quit [Quit: gloscombe]
ta has joined #ruby
Guest53985 is now known as ged
yeticry_ has joined #ruby
muelleme has joined #ruby
vondruch_ has joined #ruby
ged is now known as Guest39488
jzigmund has joined #ruby
vondruch_ is now known as vondruch
manjaro-kde5-- has joined #ruby
Silthias1 has quit [Read error: Connection reset by peer]
yeticry has quit [Ping timeout: 248 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Silthias has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
aufi has joined #ruby
alvss has quit [Ping timeout: 260 seconds]
neuraload has quit [Quit: This computer has gone to sleep]
Silthias has quit [Read error: Connection reset by peer]
czerasz has joined #ruby
Silthias has joined #ruby
blackbom1 has joined #ruby
aryaching has quit [Ping timeout: 258 seconds]
harai has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
saneax is now known as saneax-_-|AFK
neuraload has joined #ruby
blackbom2 has joined #ruby
ledestin has joined #ruby
blackbombay has quit [Ping timeout: 245 seconds]
skweek has joined #ruby
blackbom1 has quit [Ping timeout: 240 seconds]
parus has quit [Ping timeout: 268 seconds]
binaryplease has quit [Quit: binaryplease]
muelleme has quit [Ping timeout: 240 seconds]
nofxx has quit [Ping timeout: 240 seconds]
Kug3lis has joined #ruby
quiqua has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
brent__ has joined #ruby
zamuro has quit [Quit: [IRSSI]]
tomphp has joined #ruby
FahmeF has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
jeyraof has quit [Quit: Leaving]
ishe_ua has joined #ruby
luckyruby has quit [Quit: Leaving...]
ferr1 has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
jcao219_ has joined #ruby
hotpancakes has quit [Ping timeout: 258 seconds]
mlkkk has joined #ruby
the_drow has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
saneax-_-|AFK is now known as saneax
vondruch_ has joined #ruby
zack6849 has quit [*.net *.split]
Bilge has quit [*.net *.split]
sirecote has quit [*.net *.split]
jzigmund has quit [Ping timeout: 245 seconds]
Bilge has joined #ruby
brainslug has quit [*.net *.split]
bodie_ has quit [*.net *.split]
jpterry has quit [*.net *.split]
Davey has quit [*.net *.split]
wlanboy has quit [*.net *.split]
olblak has quit [*.net *.split]
freeze has quit [*.net *.split]
sirecote has joined #ruby
olblak has joined #ruby
jzigmund has joined #ruby
freeze has joined #ruby
wlanboy has joined #ruby
vondruch has quit [Ping timeout: 252 seconds]
brainslug has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
zack6849 has joined #ruby
aufi has quit [Ping timeout: 256 seconds]
Davey has joined #ruby
Davey has joined #ruby
Davey has quit [Changing host]
milardovich has quit []
bodie_ has joined #ruby
bastelfreak has quit [Quit: WeeChat 1.0.1]
sheepman has quit [*.net *.split]
tabakhase has quit [*.net *.split]
QualityAddict has quit [*.net *.split]
shortdudey123 has quit [*.net *.split]
TheSpect1e has quit [*.net *.split]
armando has quit [*.net *.split]
sethetter has quit [*.net *.split]
Kuukunen- has quit [*.net *.split]
rprimus_ has quit [*.net *.split]
AnoHito has quit [*.net *.split]
ahuman has quit [*.net *.split]
diego_k has quit [*.net *.split]
ammar_ has quit [*.net *.split]
jesk has quit [*.net *.split]
elliot007 has quit [*.net *.split]
mg^ has quit [*.net *.split]
moufl has quit [*.net *.split]
oblique has quit [*.net *.split]
ule has quit [*.net *.split]
quiller has quit [*.net *.split]
eregon has quit [*.net *.split]
gf3 has quit [*.net *.split]
zeroDivisible has quit [*.net *.split]
duracrisis has quit [*.net *.split]
jtperreault has quit [*.net *.split]
jonadab has quit [*.net *.split]
Muz has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
ericP has quit [*.net *.split]
bathtub_shark has quit [*.net *.split]
icedp has quit [*.net *.split]
anekos has quit [*.net *.split]
timmow has quit [*.net *.split]
bob_f has quit [*.net *.split]
Jello_Raptor has quit [*.net *.split]
brucebag has quit [*.net *.split]
cyberRodent has quit [*.net *.split]
tekacs has quit [*.net *.split]
xpt has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
clamstar has quit [*.net *.split]
jonadab has joined #ruby
sethette1 has joined #ruby
Kuukunen has joined #ruby
icedp has joined #ruby
KrzaQ has joined #ruby
icedp has quit [Changing host]
icedp has joined #ruby
brucebag has joined #ruby
brucebag has quit [Changing host]
brucebag has joined #ruby
alanquillin has joined #ruby
bob_f has joined #ruby
ule has joined #ruby
tekacs has joined #ruby
ahuman has joined #ruby
Muz has joined #ruby
rprimus has joined #ruby
ammar has joined #ruby
sheepman_ has joined #ruby
ericP has joined #ruby
xpt has joined #ruby
TheSpectre has joined #ruby
shortdudey123 has joined #ruby
tabakhase has joined #ruby
timmow has joined #ruby
jtperreault has joined #ruby
mg^ has joined #ruby
AnoHito has joined #ruby
coffeejunk has joined #ruby
anekos has joined #ruby
oblique has joined #ruby
armando has joined #ruby
bathtub_shark has joined #ruby
Jello_Raptor_ has joined #ruby
cyberRodent has joined #ruby
zeroDivisible has joined #ruby
rprimus is now known as Guest4903
jesk has joined #ruby
Jello_Raptor_ is now known as Jello_Raptor
clamstar has joined #ruby
sheepman_ is now known as sheepman
bastelfreak has joined #ruby
diegok has joined #ruby
eregon has joined #ruby
Canucktux has joined #ruby
duracrisis has joined #ruby
sheepman has quit [*.net *.split]
darix has quit [*.net *.split]
tomaw has quit [*.net *.split]
Cork has quit [*.net *.split]
FastJack has quit [*.net *.split]
roger_rabbit has quit [*.net *.split]
makufiru has quit [*.net *.split]
x0f has quit [*.net *.split]
`derpy has quit [*.net *.split]
twistedpixels_ has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
klaas has quit [*.net *.split]
D9- has quit [*.net *.split]
ishigoya has quit [*.net *.split]
Biohazard has quit [*.net *.split]
ujjain has quit [*.net *.split]
forgot has quit [*.net *.split]
KillerFox has quit [*.net *.split]
uranellus has quit [*.net *.split]
jaredrhine has quit [*.net *.split]
trajing has quit [*.net *.split]
Lildirt has quit [*.net *.split]
\13k has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
nchambers has quit [*.net *.split]
maxmanders has quit [*.net *.split]
Silex has quit [*.net *.split]
Guest50980 has quit [*.net *.split]
ujjain has joined #ruby
ujjain has quit [Changing host]
ujjain has joined #ruby
ishigoya has joined #ruby
jaredrhine has joined #ruby
darix has joined #ruby
\13k has joined #ruby
nchambers has joined #ruby
maxmanders has joined #ruby
`derpy has joined #ruby
x0f has joined #ruby
leonthedrunkfit has quit [*.net *.split]
humd1ng3r has quit [*.net *.split]
Rabbit_ has quit [*.net *.split]
boshhead has quit [*.net *.split]
drale2k_ has quit [*.net *.split]
rideh has quit [*.net *.split]
Raboo has quit [*.net *.split]
fumk has quit [*.net *.split]
volix has quit [*.net *.split]
blingrang has quit [*.net *.split]
zenguy_pc has quit [*.net *.split]
pskosinski has quit [*.net *.split]
gnarf has quit [*.net *.split]
[reed] has quit [*.net *.split]
quarcu has quit [*.net *.split]
yonatankoren has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
Takumo has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
llua has quit [*.net *.split]
Prira has quit [*.net *.split]
nitrix has quit [*.net *.split]
[dmp] has quit [*.net *.split]
tekk has quit [*.net *.split]
Spaulding has quit [*.net *.split]
kmhn has quit [*.net *.split]
baweaver has quit [*.net *.split]
stokachu has quit [*.net *.split]
FastJack has joined #ruby
yeltzooo has joined #ruby
PaulePanter has joined #ruby
pskosinski has joined #ruby
Takumo has joined #ruby
zenguy_pc has joined #ruby
leonthemisfit has joined #ruby
Takumo has joined #ruby
leonthemisfit has quit [Changing host]
leonthemisfit has joined #ruby
nitrix has joined #ruby
Prira has joined #ruby
biberu has joined #ruby
boshhead has joined #ruby
Lildirt has joined #ruby
Silex has joined #ruby
humd1ng3r has joined #ruby
twistedpixels_ has joined #ruby
Spaulding has joined #ruby
Biohazard has joined #ruby
roger_rabbit has joined #ruby
pskosinski is now known as Guest91522
fumk has joined #ruby
quarcu has joined #ruby
stokachu has joined #ruby
[dmp] has joined #ruby
rideh has joined #ruby
makufiru has joined #ruby
baweaver has joined #ruby
blingrang has joined #ruby
hahuang65 has joined #ruby
TheMoonMaster has joined #ruby
[diecast] has quit [Ping timeout: 240 seconds]
caw has quit [Ping timeout: 240 seconds]
gnarf has joined #ruby
kmhn has joined #ruby
yonatankoren has joined #ruby
volix has joined #ruby
Beams has joined #ruby
sonOfRa has joined #ruby
D9 has joined #ruby
Guest78675 has joined #ruby
sheepman has joined #ruby
jhill_ has quit [Ping timeout: 240 seconds]
tekk has joined #ruby
davidmichaelkarr has quit [Ping timeout: 245 seconds]
ggherdov has quit [Ping timeout: 255 seconds]
drale2k has joined #ruby
uranellus has joined #ruby
uranellus has joined #ruby
uranellus has quit [Changing host]
vondruch_ is now known as vondruch
marr has joined #ruby
flying has joined #ruby
howdoi has quit [Ping timeout: 252 seconds]
Cork has joined #ruby
[diecast] has joined #ruby
deimos has quit [Ping timeout: 240 seconds]
jhill_ has joined #ruby
ggherdov has joined #ruby
moufl has joined #ruby
llua has joined #ruby
pleiosaur has joined #ruby
Raboo has joined #ruby
Rabbit_ has joined #ruby
gajus has quit [Ping timeout: 256 seconds]
caw has joined #ruby
howdoi has joined #ruby
elh9 has joined #ruby
Devalo has joined #ruby
hahuang65 has quit [Ping timeout: 258 seconds]
terens has joined #ruby
deimos has joined #ruby
davidmichaelkarr has joined #ruby
<terens> hello
<terens> I have a custom gem. The problem is that when I am installing it with bundle install its bin files are installed in /usr/local/lib/ruby/gems/2.3/bin/(executable)
gajus has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
ggherdov has quit [Excess Flood]
<terens> however others are installed /usr/local/bin/*
elh9 has quit [Remote host closed the connection]
elh9 has joined #ruby
astrobunny has quit [Read error: Connection reset by peer]
ggherdov has joined #ruby
astrobunny has joined #ruby
aufi has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
FahmeF has quit [Remote host closed the connection]
braincrash has quit [Ping timeout: 260 seconds]
neuraload has quit [Quit: This computer has gone to sleep]
charliesome has joined #ruby
rodfersou has joined #ruby
neuraload has joined #ruby
vdl has joined #ruby
astrobunny has quit [Remote host closed the connection]
chussenot has joined #ruby
AnxiousGarlic_ has quit [Read error: Connection reset by peer]
aodai has joined #ruby
elliot007 has joined #ruby
Fernando-Basso has joined #ruby
aodai has left #ruby [#ruby]
workmad3 has joined #ruby
ddffg has joined #ruby
AnxiousGarlic has joined #ruby
mark_66 has joined #ruby
Guest39488 is now known as ged
ged is now known as Guest98849
harai has quit [Ping timeout: 240 seconds]
FahmeF has joined #ruby
zapata has quit [Ping timeout: 245 seconds]
FahmeF has quit [Client Quit]
nankyokusei has joined #ruby
Guest29284 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 240 seconds]
haxrbyte has joined #ruby
haxrbyte has quit [Client Quit]
Mortomes|Work has joined #ruby
ur5us has quit [Remote host closed the connection]
pandaant has joined #ruby
bastelfreak has quit [Quit: WeeChat 1.0.1]
jenrzzz has quit [Ping timeout: 258 seconds]
bastelfreak has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
zapata has joined #ruby
charliesome has joined #ruby
chussenot has quit [Quit: chussenot]
nettoweb has joined #ruby
charliesome has quit [Client Quit]
charliesome has joined #ruby
tonini has joined #ruby
tonini is now known as zastav
zastav is now known as tonini
braincrash has joined #ruby
rodfersou is now known as rodfersou|coffee
JeanCarloMachado has joined #ruby
manjaro-kde5-- has quit [Ping timeout: 260 seconds]
<terens> - EXECUTABLE DIRECTORY: /usr/local/bin
<terens> How is this determined
<terens> ?
<dminuoso> ?crosspost
<ruby[bot]> Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
hotpancakes has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
Macaveli has quit [Remote host closed the connection]
gagrio has joined #ruby
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
manjaro-kde5-- has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
nettoweb has quit [Ping timeout: 245 seconds]
Derperperd has quit [Ping timeout: 240 seconds]
nettoweb has joined #ruby
sarbazx has joined #ruby
Macaveli has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aidalgol has quit [Quit: zZzZZzzzz]
postmodern has quit [Quit: Leaving]
Guest98849 is now known as ged
ged is now known as Guest54240
brent__ has joined #ruby
sepp2k has joined #ruby
jameser has joined #ruby
Kug3lis has joined #ruby
rodfersou|coffee is now known as rodfersou
jameser_ has joined #ruby
brent__ has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
gajus has quit [Quit: Connection closed for inactivity]
sarbazx has quit [Ping timeout: 260 seconds]
jameser has quit [Ping timeout: 248 seconds]
AnxiousGarlic has quit [Read error: Connection reset by peer]
enyo has quit [Ping timeout: 260 seconds]
mlkkk has quit [Remote host closed the connection]
jaruga___ has joined #ruby
hahuang65 has joined #ruby
neuraload has quit [Quit: This computer has gone to sleep]
tvw has joined #ruby
mikecmpbll has joined #ruby
blackmesa has joined #ruby
milardovich has quit []
jameser_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Devalo has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
Spaulding has quit [Changing host]
Spaulding has joined #ruby
neuraload has joined #ruby
csk157 has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 256 seconds]
chussenot has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
chussenot has quit [Ping timeout: 248 seconds]
tpendragon has quit [Ping timeout: 240 seconds]
blackjid has quit [Ping timeout: 240 seconds]
unshadow_ has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
doritostains has joined #ruby
enyo has joined #ruby
jdawgaz has joined #ruby
unshadow has joined #ruby
jdawgaz has quit [Client Quit]
nowhere_man has quit [Ping timeout: 248 seconds]
neuraload has quit [Quit: This computer has gone to sleep]
jameser has joined #ruby
enyo has quit [Ping timeout: 240 seconds]
csk157 has joined #ruby
jaruga___ has quit [Ping timeout: 240 seconds]
doublemalt_ has joined #ruby
jameser has quit [Ping timeout: 256 seconds]
guilherme has joined #ruby
enyo has joined #ruby
milardovich has quit []
Derperperd has joined #ruby
nettoweb1 has joined #ruby
mlkkk has joined #ruby
hotpancakes has joined #ruby
AnxiousGarlic has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
elh9 has quit [Remote host closed the connection]
nettoweb has quit [Ping timeout: 245 seconds]
Derperperd has quit [Ping timeout: 252 seconds]
jameser has joined #ruby
mlkkk has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
nankyokusei has joined #ruby
radic has quit [Quit: ZNC - http://znc.in]
nankyokusei has quit [Ping timeout: 258 seconds]
chussenot has joined #ruby
swills has quit [Quit: Leaving]
uu has quit [Quit: WeeChat 1.6]
chussenot has quit [Ping timeout: 245 seconds]
milardovich has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikael` has joined #ruby
milardovich has quit [Client Quit]
<mikael`> Hello. Have a noob issue, just want to use a gem called babelphish. Got it installed (I use rvm & ruby 2.3)
SesMan has joined #ruby
<mikael`> I run it from a non ruby project folder, and it says it can't find a Rakefile
<mikael`> it's this tool : https://github.com/jbasdf/babelphish
<mikael`> any idea what I should do ?
neuraload has joined #ruby
Guest54240 is now known as ged
Kug3lis has joined #ruby
ged is now known as Guest23278
CloCkWeRX has joined #ruby
mlkkk has joined #ruby
minimalism has quit [Quit: minimalism]
swills has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
spectrum has quit [Ping timeout: 248 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
jameser has joined #ruby
guilherme has quit [Remote host closed the connection]
milardovich has quit [Client Quit]
AndBobsY_ has joined #ruby
the_drow has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
hahuang65 has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
cibs has joined #ruby
radic has joined #ruby
grh has joined #ruby
AndBobsY_ has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
flying has quit []
Ishido has quit [Ping timeout: 240 seconds]
CloCkWeRX has quit [Quit: Leaving.]
kch has joined #ruby
<kch> ello
hutch34 has joined #ruby
doublemalt_ has quit [Ping timeout: 252 seconds]
henriknj has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
hutch34 has quit [Ping timeout: 260 seconds]
kch has quit [Quit: leaving]
MMZF has joined #ruby
<apeiros> poll: which ruby conferences have you enjoyed the most in 2016? (cross posted in #rubyonrails regarding rails conferences)
csk has joined #ruby
<MMZF> ./bot.rb:67:in `+': no implicit conversion of nil into String (TypeError)
<MMZF> what to do?
<apeiros> MMZF: don't call + with a nil argument
<apeiros> >> "hello" + nil # this is what you're doing
<ruby[bot]> apeiros: # => no implicit conversion of nil into String (TypeError) ...check link for more (https://eval.in/713350)
<MMZF> apeiros im using: c.password = server["username"] + ":" + server["password"]
phoo1234567 has joined #ruby
<apeiros> MMZF: and one of your expressions is nil
<apeiros> you can infer from the exception which one it must be
neuraload has quit [Quit: This computer has gone to sleep]
<apeiros> and if not, you can easily test each individual expression
<MMZF> apeiros i should remove which one?
<apeiros> MMZF: which of those expressions could be nil?
<MMZF> umm maybe the +server?
Derperperd has joined #ruby
<apeiros> ok, maybe we go a step back. which expressions do you see in that line of code?
enyo has quit [Ping timeout: 240 seconds]
<MMZF> im not good in ruby :(
<apeiros> I figured. I still try to help you. but I'm not doing your work.
nadir has joined #ruby
<apeiros> one way to get better is to work through problems.
<MMZF> :/
Fuzai has joined #ruby
manjaro-kde5-- has quit [Ping timeout: 240 seconds]
neuraload has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
futilegames has quit [Ping timeout: 252 seconds]
nowz has quit [Remote host closed the connection]
czerasz has quit [Quit: Ex-Chat]
skweek has quit [Ping timeout: 260 seconds]
kch has joined #ruby
sdothum has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
creat has quit [Ping timeout: 245 seconds]
kch has quit [Ping timeout: 252 seconds]
creat has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
list has joined #ruby
<list> list
ishe_ua has quit [Remote host closed the connection]
list has left #ruby [#ruby]
nowz has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
ishe_ua has joined #ruby
milardovich has joined #ruby
kch has joined #ruby
mlkkk has quit [Remote host closed the connection]
mlkkk has joined #ruby
bmurt has joined #ruby
neuraload has quit [Ping timeout: 248 seconds]
neuraload has joined #ruby
doritostains has quit [Quit: doritostains]
brent__ has joined #ruby
<maloik> apeiros Bath Ruby was great but there won't be a 2017 edition :(
<apeiros> :(
tyang has joined #ruby
doritostains has joined #ruby
<maloik> before that I'd have mentioned ArrrrCamp (but I'm biased :D) but we haven't done that last year and most likely won't next year either... unsure if it'll come back at this point
mikecmpbll has joined #ruby
doublemalt_ has joined #ruby
Guest23278 is now known as ged
<apeiros> you're one of the organizers of arrrcamp?
nowz has quit [Quit: Leaving]
ged is now known as Guest93010
brent__ has quit [Ping timeout: 240 seconds]
saneax is now known as saneax-_-|AFK
<maloik> yea
<maloik> am/was
hahuang65 has joined #ruby
enyo has joined #ruby
duckpuppy has joined #ruby
tvl has joined #ruby
<blackbom2> apeiros: #ruby doesn't feel the same without shevy.
<apeiros> blackbom2: indeed
blackmesa has joined #ruby
jaruga___ has joined #ruby
tvl has quit [Client Quit]
Devalo has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 240 seconds]
Devalo has quit [Ping timeout: 240 seconds]
Zamyatin has joined #ruby
Zamyatin has quit [Client Quit]
Kug3lis has joined #ruby
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Macaveli has joined #ruby
synaps3 has joined #ruby
cardboard64 has quit [Remote host closed the connection]
neuraload has quit [Quit: This computer has gone to sleep]
blackmesa has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shayan_ has joined #ruby
Derperperd has joined #ruby
BTRE has quit [Quit: Leaving]
brent__ has joined #ruby
Derperperd has quit [Ping timeout: 252 seconds]
Kug3lis has joined #ruby
neuraload has joined #ruby
JeanCarloMachado has quit [Ping timeout: 240 seconds]
toretore has joined #ruby
jhack has joined #ruby
brent__ has quit [Ping timeout: 256 seconds]
ramortegui has joined #ruby
pandaant has quit [Remote host closed the connection]
henriknj has quit [Quit: Konversation terminated!]
rodfersou is now known as rodfersou|lunch
chussenot has joined #ruby
nankyokusei has joined #ruby
harfangk has joined #ruby
naprimer_2 has quit [Ping timeout: 248 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
cdg has joined #ruby
cdg has quit [Read error: Connection reset by peer]
cdg has joined #ruby
Toledo is now known as croberts
nankyokusei has quit [Ping timeout: 252 seconds]
<MMZF> apeiros back.. so please help me?
naprimer_2 has joined #ruby
<apeiros> MMZF: sure. my question still stands - what expressions do you have/see in that line of code?
<MMZF> +?
<apeiros> + is the name of a method and on its own not an expression. there are multiple expressions in that line.
<apeiros> an expression is something which evaluates to a value / returns a value
<MMZF> server and password and username
hotpancakes has joined #ruby
<apeiros> an expression is something you can put on the right side of an assignment `variable = (expression)`, and it forms a complete statement
<apeiros> 14:07 MMZF: apeiros im using: c.password = server["username"] + ":" + server["password"]
<apeiros> `server` is an expression, yes
<apeiros> `username` and `password` are not present in that line. `"username"` and `"password"` are expressions too, yes
<apeiros> what else?
<tobiasvl> blackbom2: where is shevy?
<apeiros> which parts of that line could you put on the right side of `foo = …` and it'd be syntactically correct?
ajk142 has joined #ruby
Alayde has joined #ruby
<MMZF> apeiros you need source code of the bot?
<apeiros> no
ta has quit [Remote host closed the connection]
<apeiros> I'm trying to get you to a level of understanding where you can figure out what the error means
<apeiros> and that single line is sufficient for that
tonini has quit [Quit: Connection closed for inactivity]
<apeiros> what I need is you to answer my question ;-)
<MMZF> oh
jhack has quit [Quit: jhack]
<MMZF> foo= server["username"]
<apeiros> ok, yes, server["username"] is an expression too
aupadhye has quit [Ping timeout: 240 seconds]
<apeiros> ok, so we have: `server["username"]` on which you call + (with ":" as argument), then we have the expression `server["username"] + ":"` on which you call + (with server["password"]) as the argument
<apeiros> >> nil + "foo"
<ruby[bot]> apeiros: # => undefined method `+' for nil:NilClass (NoMethodError) ...check link for more (https://eval.in/713391)
<apeiros> >> "foo" + nil
<ruby[bot]> apeiros: # => no implicit conversion of nil into String (TypeError) ...check link for more (https://eval.in/713392)
<apeiros> MMZF: as you can see from the above 2 examples, the exception you get happens when you do string + nil
jhack has joined #ruby
malconis has joined #ruby
<apeiros> so in `server["username"] + ":" + server["password"]` you have `server["username"]`, `":"` and `server["password"]` - which out of those three is the only one which would cause your exception if it evaluates to nil?
<MMZF> oh so one of the expression value is nil
saslam has joined #ruby
saneax-_-|AFK is now known as saneax
<apeiros> yes, the exception tells you that. it tells you that you call +, and that it can't convert the argument (right side of +) to string. from that follows that you do `<some string string> + nil`
<MMZF> from ./bot.rb:67:in `block (3 levels) in <main>'
<apeiros> `a + b` is syntax sugar for `a.+(b)`, i.e. call the method + on a, with b as sole argument.
<MMZF> i got this " from ./bot.rb:67:in `block (3 levels) in <main>'"
jrafanie has joined #ruby
<MMZF> apeiros so means password is nil?
<apeiros> you might have got it. what you say is wrong. but you might mean the right thing.
<apeiros> `server["password"]` is most likely nil
<apeiros> now how do you verify whether it is?
newbie1 has joined #ruby
<MMZF> by looking the server password file.. where i configured the file to connect to server.
hotpancakes has quit [Ping timeout: 245 seconds]
roflmyeggo has joined #ruby
iogf has joined #ruby
saneax is now known as saneax-_-|AFK
<apeiros> that's one variant. but there's still a lot happening between that and the value ending up in server["password"]
<apeiros> I'd either add a "breakpoint" (using the pry gem, add `binding.pry`), or by adding a debug output, like `p server_password: server["password"]`
Derperperd has joined #ruby
chussenot has quit [Quit: chussenot]
despai has joined #ruby
ziarkaen has joined #ruby
jcao219_ has quit [Ping timeout: 245 seconds]
saneax-_-|AFK is now known as saneax
sebastiansier has joined #ruby
sebastia_ has quit [Read error: Connection reset by peer]
Derperperd has quit [Ping timeout: 240 seconds]
Ishido has joined #ruby
tvw has quit []
tvw has joined #ruby
rykou has quit [Quit: WeeChat 1.6]
ianmethyst has joined #ruby
<MMZF> thanks for help (apeiros)
<MMZF> :)
<MMZF> bye
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shayan_ has quit [Quit: shayan_]
malconis_ has joined #ruby
shayan_ has joined #ruby
kch has quit [Ping timeout: 248 seconds]
malconis has quit [Ping timeout: 240 seconds]
jhack has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
arooni has quit [Quit: ZNC - http://znc.in]
Guest26435 is now known as IceDragon
Guest93010 is now known as ged
ged is now known as Guest81542
hutch34 has joined #ruby
polishdub has joined #ruby
rippa has joined #ruby
aryaching has joined #ruby
Kug3lis has quit [Ping timeout: 240 seconds]
neuraload has quit [Quit: This computer has gone to sleep]
Zamyatin has joined #ruby
arooni has joined #ruby
grh has quit [Ping timeout: 252 seconds]
roflmyeggo has quit [Ping timeout: 240 seconds]
Kug3lis has joined #ruby
flashbang has joined #ruby
masondesu has joined #ruby
nowhere_man has joined #ruby
ferr1 has quit [Quit: WeeChat 1.6]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
__Yiota has joined #ruby
doublemalt_ has quit [Ping timeout: 260 seconds]
doublemalt_ has joined #ruby
x0f has quit [Ping timeout: 240 seconds]
shayan_ has quit [Quit: shayan_]
petrichorx_ has joined #ruby
ifctj has joined #ruby
x0f has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
mlkkk has quit [Remote host closed the connection]
saslam has quit [Ping timeout: 240 seconds]
a1fa has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest29284 has quit [Ping timeout: 245 seconds]
shayan_ has joined #ruby
nowhere_man has quit [Ping timeout: 240 seconds]
a1fa has joined #ruby
tinti has joined #ruby
tinti is now known as Guest94793
mlkkk has joined #ruby
Fernando-Basso has quit [Ping timeout: 248 seconds]
tekk has quit [Quit: ZNC - http://znc.in]
a7d7p has joined #ruby
ifctj has quit [Ping timeout: 248 seconds]
anisha has quit [Quit: Leaving]
nettoweb has joined #ruby
skweek has joined #ruby
ajk142 has quit []
ajk142 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shayan_ has quit [Quit: shayan_]
mlkkk has quit [Remote host closed the connection]
Guest94793 has quit [Ping timeout: 240 seconds]
shayan_ has joined #ruby
pawnbox has joined #ruby
polishdub has quit [Quit: leaving]
mlkkk has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
a7d7p has quit [Quit: a7d7p]
mikecmpbll has joined #ruby
shayan_ has quit [Client Quit]
pawnbox has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
machinewar has joined #ruby
malconis has joined #ruby
malconis_ has quit [Read error: Connection reset by peer]
mustmodify has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
JeanCarloMachado has joined #ruby
andikr has quit [Remote host closed the connection]
Fernando-Basso has joined #ruby
pawnbox has joined #ruby
gnufied has quit [Ping timeout: 240 seconds]
shayan_ has joined #ruby
Derperperd has joined #ruby
<MMZF> well i saw problem but can't find in this one..
<MMZF> /home/bot/bot/lib/reports.rb:9:in `exists?': no implicit conversion of nil into String (TypeError)
<MMZF> line 8&9 is : def self.load(file)
<MMZF> unless File.exists?(file)
mustmodify has left #ruby [#ruby]
ScottGA has joined #ruby
ruby-lang657 has joined #ruby
jcao219_ has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
hahuang65 has joined #ruby
saslam has joined #ruby
<apeiros> MMZF: please try to explain what you understand from that error
<MMZF> (apeiros) that the file isn't found.
<MMZF> of reports.
<apeiros> hm, that's not really what it says, no
<ruby-lang657> why can't i return a random hash key/value pair from this puts zombie.pick?
<apeiros> "/home/bot/bot/lib/reports.rb:9" tells you file and line, you got that part
<apeiros> what does "in `exists?'" tell you?
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros> ruby-lang657: I don't understand your question. puts returns nil… no idea what zombie.pick is.
<ruby-lang657> ?
neuraload has joined #ruby
<ruby-lang657> basically zombie it's a hash
<toretore> ?code ruby-lang657
<ruby[bot]> ruby-lang657: We can't help you without your code, please post it to https://gist.github.com
<apeiros> "basically"?
<ruby-lang657> maybe zombie = {:hello = [100]}
<ruby-lang657> kk sure
<ruby-lang657> my bad
<apeiros> ok. you can't access members from a hash via method calls with the membername
<MMZF> (apeiros) that the file doesn't exists..
<apeiros> it's hash[key], not hash.key
hahuang65 has quit [Ping timeout: 245 seconds]
<machinewar> MMZF: what is error when you call File.exists?(nil)
<apeiros> MMZF: no, "in exists?" tells you that the error happens in the method named `exists?`
<apeiros> what does "no implicit conversion of nil into String (TypeError)" tell you?
tercenya has quit []
jinie has joined #ruby
<MMZF> idk :/
<ruby-lang657> i want it random @apeiros
<apeiros> MMZF: what parts do you understand, what parts do you not understand?
<apeiros> ruby-lang657: your question makes even less sense now :-(
Devalo has joined #ruby
skweek has quit [Ping timeout: 240 seconds]
<MMZF> i just got to know by that, that the reports file dosen't exists.
<apeiros> ruby-lang657: please provide a runnable example of what you do, what you expect, and what happens instead
gnufied has joined #ruby
<machinewar> key = zombie.keys.sample; zombie[key]
<machinewar> that will get you a random key
<toretore> ruby-lang657: where did you get "pick" from?
<apeiros> MMZF: no, it tells you that you pass nil to exists?, i.e. you don't tell it which file you want to test for existence.
<ruby-lang657> is the pick correct command?
<apeiros> File.exists? expects a String (containing the path to the file you want to test whether it exists)
Kug3lis has joined #ruby
tercenya has joined #ruby
<apeiros> you pass it nil, which it tries to convert to a String, but fails to - hence the error telling you that it can't convert nil to String
shayan_ has quit [Quit: shayan_]
<apeiros> ruby-lang657: only if you have HashExtensions loaded
<apeiros> ruby-lang657: this is the documentation of a gem (facets), not ruby
tinti has joined #ruby
machinewar has quit []
<ruby-lang657> oh kk
<MMZF> see this..
flashbang has quit [Ping timeout: 240 seconds]
tinti is now known as Guest4807
Kug3lis has quit [Client Quit]
<ruby-lang657> @aperos what would be the correct way than?
<toretore> ?gist MMZF
<ruby[bot]> MMZF: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
Devalo has quit [Ping timeout: 240 seconds]
<apeiros> ruby-lang657: either install and load the facets gem, or take a look at its implementation of Hash#pick
<apeiros> lovely how `rand_key!` means "delete a random key"… :-S
<ruby-lang657> @apeiros haha
<apeiros> ruby-lang657: hint: Random.number() is non-standard-ruby too and can easily be rewritten as just rand()
ScottGA has quit [Remote host closed the connection]
<ruby-lang657> @apeiros yup
ziarkaen_ has joined #ruby
<apeiros> MMZF: the faulty part is not in that gist. wherever you invoke ReportDB.load, you pass nil. and that's wrong.
<apeiros> but you don't call load anywhere in that piece of code
<ruby-lang657> @apeiros it's my first time building ruby project
iogf has quit [Remote host closed the connection]
ziarkaen has quit [Ping timeout: 245 seconds]
rapha has joined #ruby
<rapha> hi!
shayan_ has joined #ruby
shayan_ has quit [Client Quit]
<ruby-lang657> @machinewar how about random hash with key/value pair?
saslam has quit [Ping timeout: 248 seconds]
<ruby-lang657> zombie.sample(1)
<rapha> if i have a Pathname that is always like "/one/two/something/blahblah/blah.blah", is there a way i can 'pop' off the first three elements and 'push' something else there so that i get 'replacement/blahblah/blah.blah'?
Guest81542 is now known as ged
ged is now known as Guest4326
oaklndr1 has joined #ruby
<rapha> ah sorry the term for what i mean is not 'pop', it's 'shift'
aufi has quit [Ping timeout: 258 seconds]
Derperperd has joined #ruby
<apeiros> rapha: pop means remove from end, shift means remove from start. you want random, so it's neither. also, do you want to remove the k/v pair you get?
doritostains has quit [Quit: doritostains]
shinnya has joined #ruby
Kug3lis has joined #ruby
futilegames has joined #ruby
<ruby-lang657> @aperos how to get random key/value pair?
<apeiros> ?tabnick ruby-lang657
<ruby[bot]> ruby-lang657: pro-tip - use tab completion for nicks. avoids typos in nicks.
<apeiros> also, this isn't twitter. no @ required.
<ruby-lang657> lol kk
<ruby-lang657> you following the rules too much
doritostains has joined #ruby
<apeiros> ruby-lang657: seriously?
<ruby-lang657> yup
<ruby-lang657> ignore the fules
gnufied has quit [Ping timeout: 256 seconds]
<ruby-lang657> rules
<ruby-lang657> and enjoy it
<apeiros> you misspell the nick of somebody and think it's ok to tell them how they're somehow wrong?
<apeiros> find somebody else to help you then. have a nice day.
<ruby-lang657> aperios people make mistakes
<ruby-lang657> why do you even bother about typo in name? :)
<ruby-lang657> relax dude :)
dionysus69 has joined #ruby
zenguy_pc has quit [Ping timeout: 258 seconds]
<apeiros> ruby-lang657: fix your manners dude
koldbrutality has quit [Ping timeout: 248 seconds]
<ruby-lang657> @apeiros calm down
<MMZF> apeiros how to get "csv"?
<apeiros> ruby-lang657: I'm calm, but utterly uninterested in talking to people who lack manners like you. so as said, have a nice day.
csk157 has quit [Ping timeout: 240 seconds]
aganov has quit [Remote host closed the connection]
zenguy_pc has joined #ruby
<apeiros> MMZF: what do you mean "get csv"? read a csv file in ruby?
<MMZF> u say my gist?
ghr has left #ruby ["Textual IRC Client: www.textualapp.com"]
<MMZF> in it there is written require domainatrix cinch & csv
<ruby-lang657> @apeiros chill bro, it's just a name :)
<MMZF> saw*
brent__ has joined #ruby
nankyokusei has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
<apeiros> MMZF: require 'csv' loads the csv library (part of ruby's standard lib)
<MMZF> ok
<apeiros> it makes the CSV constant available which provides tools to read/write csv
<apeiros> &ri CSV MMZF
bmurt has joined #ruby
mikecmpbll has joined #ruby
<rapha> apeiros: i want to remove from start 3 times, no matter what, and then i want to add to start once, no matter what. i figured out something that works now: p=Pathname(mypath).each_filename.to_a; 3.times {p.shift} ... afterwards, i build a new Pathname. is there a more elegant method or is it okay like that?
<apeiros> rapha: oooh, sorry, I mixed up your question with somebody else's. sorry.
brent__ has quit [Ping timeout: 248 seconds]
aesthetikx has joined #ruby
<apeiros> rapha: yeah, sure, shift is your term :)
nankyokusei has quit [Ping timeout: 245 seconds]
gnufied has joined #ruby
juseq has joined #ruby
<baweaver> ruby-lang657: what have you tried?
neuraload has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
neuraload has joined #ruby
TomyWork has quit [Ping timeout: 240 seconds]
rodfersou|lunch is now known as rodfersou
<MMZF> (apeiros) well that gist is a opensource bot, not continued, no support. so i don't know what to do :/
skweek has joined #ruby
ruby-lang657 has quit [Ping timeout: 260 seconds]
aeontech has quit [Quit: aeontech]
Rodya_ has joined #ruby
flashbang has joined #ruby
neuraload has quit [Ping timeout: 260 seconds]
enyo has quit [Ping timeout: 258 seconds]
skweek has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Quit: dionysus69]
<rapha> apeiros: okay thanks :)
BTRE has joined #ruby
dionysus69 has joined #ruby
chouhoulis has joined #ruby
<rapha> oh, and my alotted time is over for working on this for today
<rapha> bye, see you next time!
rapha has quit [Quit: WeeChat 1.6]
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
skweek has joined #ruby
sepp2k has quit [Quit: Leaving.]
last_staff has quit [Quit: last_staff]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Kug3lis has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
gnufied has quit [Ping timeout: 240 seconds]
rileyy has quit [Ping timeout: 258 seconds]
koldbrutality has joined #ruby
jhack has joined #ruby
iogf has joined #ruby
gnufied has joined #ruby
preyalone has joined #ruby
nowhere_man has joined #ruby
malconis has quit [Read error: Connection reset by peer]
jaruga___ has quit [Quit: jaruga___]
jaruga___ has joined #ruby
juseq has quit []
tvw has quit [Remote host closed the connection]
Lucky_ABA has joined #ruby
conta has quit [Ping timeout: 260 seconds]
Lucky_ABA has quit [Client Quit]
Lucky_ABA has joined #ruby
jackjackdripper has joined #ruby
hotpancakes has quit [Ping timeout: 256 seconds]
Macaveli has quit [Remote host closed the connection]
saneax is now known as saneax-_-|AFK
amclain has joined #ruby
Devalo has joined #ruby
jhack has quit [Quit: jhack]
username has joined #ruby
ishe_ua has quit [Remote host closed the connection]
jhack has joined #ruby
enyo has joined #ruby
aremaref has joined #ruby
mlkkk has quit [Remote host closed the connection]
masondesu has quit [Ping timeout: 248 seconds]
the_drow has quit [Quit: This computer has gone to sleep]
ramfjord has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 252 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enyo has quit [Ping timeout: 252 seconds]
<shadeslayer> Hi
<shadeslayer> I'm trying to figure out how to get the amount of physical memory on a systme
<shadeslayer> *system
<shadeslayer> I'm trying to use ohai for this, but fail at finding docs
<shadeslayer> is there a better way to get the amount of physical memory on a system?
Silthias has quit [Ping timeout: 248 seconds]
ramfjord has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
herbmillerjr has joined #ruby
hahuang65 has joined #ruby
Guest4326 is now known as ged
unshadow has quit [Ping timeout: 252 seconds]
ged is now known as Guest95461
<eelster> shadeslayer: try the ruby vmstat gem
unshadow has joined #ruby
enyo has joined #ruby
<dminuoso> shadeslayer: What for?
milardovich has quit [Ping timeout: 252 seconds]
<shadeslayer> dminuoso: I want to set the memory allocated to docker via the API
<shadeslayer> and it needs to be no more than 80% of the physical memory
<eelster> shadeslayer: Do you want this to be portable or is it just personal?
<shadeslayer> well, it needs to work on linux
<shadeslayer> that's all
<eelster> shadeslayer: Oh, just use `free`
<elomatreb> Parse the output of `free`?
<shadeslayer> ugh, I wanted something nicer
<eelster> shadeslayer: Then use the vmstat gem
<shadeslayer> ack
Rodya_ has quit [Remote host closed the connection]
ohernandez has joined #ruby
czerasz has joined #ruby
maddmaxx has joined #ruby
quiqua has quit [Quit: Textual IRC Client: www.textualapp.com]
petrichorx_ has quit [Quit: Connection closed for inactivity]
<eelster> You have options
<eelster> I would just use `free`, but if you really want "nice" output, I guess you could use the gem.
enyo has quit [Ping timeout: 248 seconds]
czerasz has quit [Read error: Connection reset by peer]
Guest4807 has quit [Ping timeout: 248 seconds]
milardovich has joined #ruby
<shadeslayer> eelster: dminuoso thanks :)
<eelster> No worries.
<dminuoso> shadeslayer: Why do you care about physical memory at all?
<dminuoso> :|
<eelster> dminuoso: For docker memory allocs
<dminuoso> eelster: /proc/meminfo ?
<shadeslayer> dminuoso: I'm using docker to build some things, and one of my build oom's
<shadeslayer> and well, it kills the ssh connection
<shadeslayer> since docker has a lower oom_adj_score
<dminuoso> shadeslayer: Use /proc/meminfo for linux systems. Remember to remove buffers/caches.
<shadeslayer> and so I want to cap the memory a container can take
<dminuoso> shadeslayer: (The reported "free" values always report actual physical free memory, which is a completely useless number)
<shadeslayer> well what I want to do is set the memory constraint to 80% of RAM + Swap
alvss has joined #ruby
tinti has joined #ruby
<eelster> shadeslayer: You could parse `/proc/meminfo` relatively easily for memory as well.
tinti is now known as Guest38364
<shadeslayer> I guess
<alvss> Hi all!
<shadeslayer> eelster: Yeah I suppose I could just YAML.load_file('/proc/meminfo')
<shadeslayer> and that would work
Devalo has quit [Remote host closed the connection]
sepp2k has joined #ruby
<shadeslayer> thanks
<eelster> Yep!
milardovich has quit [Ping timeout: 256 seconds]
<eelster> It is in YAML format
<shadeslayer> *nod*
<alvss> I am having problems with winRM gem and kerberos transport...
<eelster> alvss: What problems?
chussenot has joined #ruby
<alvss> I try with example code in the Readme
<eelster> What's the problem?
<alvss> in the :kerberos section, there is example code
<alvss> but is not functional
<alvss> and i look there is a open issue about it
Synthead has quit [Quit: Synthead]
<alvss> so I was wondering if there is any known workaround for kerberos transport
Rodya_ has joined #ruby
<eelster> alvss: You're probaby better off either using a different gem for now, or if you're up to it, looking in the code and fixing it.
<alvss> i am not a ruby expert
<alvss> i think i cannot fix it
<alvss> :(
<alvss> eelster, there is another gem for winRM?
<alvss> is there*
<baweaver> alvss: What's the link to the issue?
<baweaver> Do you have a stacktrace of what's wrong?
<eelster> It's a known issue apparently because `kerberos` wasn't tested well.
aufi has joined #ruby
LoneHerm_ has joined #ruby
<alvss> yep, but in 1.8.1 seems to work
mikecmpbll has quit [Quit: inabit. zz.]
<baweaver> hrm.
<baweaver> can you downgrade/upgrade and have it working?
<alvss> nope
<eelster> alvss: Ruby 1.8.1 or WinRM 1.8.1?
<alvss> winRM v1.8.1
<alvss> works
<baweaver> You can gem install locally
<baweaver> or reference it in your gemfile
<alvss> at least I login and execute a command OK
<baweaver> that'd work as a temporary patch until you get someone to merge
<baweaver> can you make a pull request of it?
<baweaver> that way they have something to work with
<alvss> the point is there is differences from 1.8.1 and 2.1.1
<alvss> and i cannot manage to work in 2.1.1
<alvss> i have no idea what is broken in 2.1.1
<eelster> alvss: Because it's an open issue you are going to be best off by downgrading to the last working version
Devalo has joined #ruby
<alvss> I should investigate
Beams has quit [Quit: .]
<alvss> yep, I am using 1.8.1
jeffreylevesque_ has joined #ruby
<alvss> but this version not support Self-signed certificates
<alvss> I open a Issue to ask if i can upload a Pull request to v1.8.1
<alvss> to fix that
<alvss> eelster, what do you think about it?
Devalo has quit [Remote host closed the connection]
frozengeek__ has quit [Quit: frozengeek__]
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
LoneHerm_ has quit [Remote host closed the connection]
marxarelli has joined #ruby
<eelster> alvss: You should put that in as a pull requeset, not an issue comment.
unshadow has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
nug has quit [Ping timeout: 248 seconds]
SeepingN has joined #ruby
Rodya_ has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
gusrub_ has joined #ruby
unshadow has joined #ruby
benlieb has joined #ruby
jeffreylevesque_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
ScottGA has joined #ruby
utkarsh has quit [Quit: No Ping reply in 180 seconds.]
utkarsh has joined #ruby
gnarld_ has joined #ruby
duderonomy has quit [Ping timeout: 252 seconds]
doritostains has quit [Quit: doritostains]
harai has joined #ruby
Xiti has quit [Quit: Xiti]
Xiti has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
ScottGA has quit [Ping timeout: 252 seconds]
benlieb has quit [Ping timeout: 240 seconds]
doritostains has joined #ruby
jhack has quit [Quit: jhack]
SeepingN has joined #ruby
bodie_ has quit [Ping timeout: 245 seconds]
Muz has quit [Ping timeout: 248 seconds]
agit0 has joined #ruby
milardovich has joined #ruby
Guest20206 has quit [Ping timeout: 240 seconds]
BTRE has quit [Quit: Leaving]
polishdub has quit [Quit: leaving]
<alvss> eelster, OK I have forked the repo, so I'll send a PR
<alvss> thanks !
<eelster> alvss: Cool!
aesthetikx has quit [Quit: WeeChat 1.4]
jhack has joined #ruby
thadtheman has quit [Quit: Leaving]
markholmes has joined #ruby
ohernandez has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
enyo has joined #ruby
mark_66 has quit [Remote host closed the connection]
milardovich has quit [Ping timeout: 240 seconds]
Muz has joined #ruby
AndBobsYourUncle has joined #ruby
C0deMaver1ck has joined #ruby
jhack has quit [Client Quit]
C0deMaver1ck is now known as Guest20915
ajk142 has quit [Remote host closed the connection]
bodie_ has joined #ruby
enyo has quit [Ping timeout: 248 seconds]
tercenya has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Remote host closed the connection]
jhack has joined #ruby
tercenya has joined #ruby
AndBobsYourUncle has joined #ruby
hotpancakes has joined #ruby
cschneid has joined #ruby
aeontech has joined #ruby
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cschneid> `myarray << value` is a destructive edit of the array - is there a non destructive ( copying) method of adding a value to the end of an array?
Devalo has joined #ruby
<cschneid> I can do `myarray + [singular_item]` but that seems noisy
<cschneid> making the singleton array just to throw it away
Kug3lis has joined #ruby
antgel has quit [Ping timeout: 248 seconds]
rodfersou has quit [Ping timeout: 260 seconds]
unshadow has quit [Quit: leaving]
aeontech has quit [Client Quit]
rodfersou has joined #ruby
<rob_> cschneid: myarray.dup << value?
chussenot has quit [Quit: chussenot]
<cschneid> seems odd that most array functions have a `reject` and `reject!` version, but not the shovel operator
<cschneid> `.append` or something
<apeiros> [*my_array, item]
<markholmes> or myarray + [value]
<apeiros> (not sure, might perform badly)
<cschneid> eh, the array I'm working with is single-digit length. Just want it to be pretty code :)
chussenot has joined #ruby
aeontech has joined #ruby
<rob_> is using .dup a bad idea?
<toretore> `ary + [v]` is the way to go
<apeiros> rob_: I think it's fine
<rob_> apeiros: thanks
renchan has quit [Quit: Leaving...]
hotpanca_ has joined #ruby
ziarkaen_ has quit [Ping timeout: 256 seconds]
chussenot has quit [Quit: chussenot]
Devalo has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 245 seconds]
pilne has joined #ruby
BTRE has joined #ruby
nankyokusei has joined #ruby
<jokke> hey
SeepingN has quit [Quit: The system is going down for reboot NOW!]
<jokke> would you recommend using Rack::Deflater or nginx builtin gzipping?
ur5us has joined #ruby
gnarld_ is now known as nug
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
<jokke> i have gzip on in nginx but the responses aren't gzipped. Do i need gzip_proxied any?
<jokke> sorry this is a nginx question
<jokke> i'll go to #nginx
Guest38364 has quit [Remote host closed the connection]
Guest95461 is now known as ged
ged is now known as Guest92315
nankyokusei has quit [Ping timeout: 258 seconds]
milardovich has joined #ruby
<toretore> nginx is probably better at it than rack
chussenot has joined #ruby
ruby has joined #ruby
ruby is now known as Guest14044
eelster has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 245 seconds]
Gasher has joined #ruby
ur5us has quit [Remote host closed the connection]
flashbang has quit [Ping timeout: 240 seconds]
muelleme has joined #ruby
<blackbom2> second that
<blackbom2> i would use nginx/.htaccess
Rodya_ has quit [Ping timeout: 256 seconds]
csk has quit [Ping timeout: 260 seconds]
Silthias has joined #ruby
Kug3lis has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
whathappens has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
BitWhisperer has quit [Remote host closed the connection]
Fuzai has quit [Ping timeout: 256 seconds]
blackbom2 has quit [Ping timeout: 258 seconds]
malconis has joined #ruby
Derperpe1 has joined #ruby
chussenot has quit [Quit: chussenot]
ponzii has joined #ruby
r3cycle has joined #ruby
Derperperd has quit [Ping timeout: 240 seconds]
csk has joined #ruby
aeontech has quit [Quit: aeontech]
BTRE has quit [Quit: Leaving]
<ponzii> Current Pry 0.10.4 with Ruby 2.4 and latest Rubygems produces this error: <$HOME>/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/dependency.rb:310:in `to_specs': Could not find 'json' (~> 1.8) - did find: [json-2.0.2] (Gem::MissingSpecVersionError)
Derperperd has joined #ruby
<ponzii> ... but Json 1.8 isn't compatible with Ruby 2.4??
[Butch] has joined #ruby
<baweaver> Not looking like a pry dependency
<baweaver> are you in a project?
<havenwood> ponzii: Are you using the pry-theme gem?
<ponzii> baweaver: Not in a project
<baweaver> No open issues on pry on json that are recent
AndBobsYourUncle has quit [Remote host closed the connection]
blackbom2 has joined #ruby
<ponzii> havenwood Yes, Pry-theme
<havenwood> ponzii: It's fixed on pry-theme master and I have a PR in for fixing Fixnum/Integer warnings as well.
AndBobsYourUncle has joined #ruby
Derperpe1 has quit [Ping timeout: 256 seconds]
<baweaver> kyrylo be praised
<ponzii> haverwood: Great, that must be it.
aesthetikx has joined #ruby
<ponzii> haverwood: Removed and pry is now working with Ruby 2.4
<ponzii> haverwood: Would be nice if Ruby could isolate the source of the problem a bit better, though. Not your fault, I guess. I've been hunting this own down for weeks.
<havenwood> ponzii: if you want you could `gem open pry-theme` and remove the json dep from pry-theme.gemspec until a new version is released
ajk142 has joined #ruby
<ponzii> haverwood: Ah, ok. Thanks.
AndBobsYourUncle has quit [Ping timeout: 248 seconds]
aufi has quit [Ping timeout: 258 seconds]
siddart has joined #ruby
<blackbom2> gem-open ;]
aeontech has joined #ruby
BTRE has joined #ruby
csk has quit [Ping timeout: 240 seconds]
matp has quit [Remote host closed the connection]
milardovich has joined #ruby
matp has joined #ruby
csk has joined #ruby
ponzii has quit [Quit: 10 million strong and growing!]
AndBobsY_ has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
milardovich has quit [Ping timeout: 258 seconds]
eelster has joined #ruby
TomyLobo has joined #ruby
s2013 has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
AndBobsY_ has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
hotpanca_ has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
tolerablyjake has joined #ruby
doritostains has quit [Quit: doritostains]
tomaw has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
Gasher has quit [Quit: ja też umię]
Gasher has joined #ruby
ScottGA has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
agit0 has quit [Quit: zzzZZZ….]
<Rich_Morin> I'm using Path.find from the ruby-path gem (https://rubygems.org/gems/ruby-path). It returns path lists such as [:foo, :bar], along with corresponding parts of the target data structure. I'm wondering what tools exist that can use these lists (e.g., for get_in or set_in).
hotpancakes has joined #ruby
<eelster> Rich_Morin: What do you mean? I don't folow.
<eelster> s/folow/follow
matp has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
<eelster> Like, say you have the array `a = %i(foo bar)`, what would you want to do with that?
matp has joined #ruby
<Rich_Morin> Reach into a target data structure such as { foo: { bar: 42 } } and extract 42?
eam_ has quit [Quit: leaving]
ScottGA has quit [Remote host closed the connection]
dionysus69 has quit [Remote host closed the connection]
<Rich_Morin> FWIW, the lists can also contain integers, which are array indexes rather than hash keys.
Rodya_ has joined #ruby
<eelster> Rich_Morin: You can access arrays and hashes the same way in ruby luckily. Say we have the hash `h = {:foo => {:bar => 42}}`, we can get `42` using `h[:foo][:bar]`.
<apeiros> or h.dig(:foo, :bar)
chouhoulis has quit [Remote host closed the connection]
<eelster> apeiros's solution is better
<baweaver> or....
<eelster> Also, if `a = %i(foo bar)` in your example, you can do `h.dig(*a)`
* baweaver digs around gist
<Rich_Morin> dig() seems like what I was looking for; tnx! FWIW, Elixir has http://elixir-lang.org/docs/stable/elixir/Kernel.html#put_in/3http://elixir-lang.org/docs/stable/elixir/Kernel.html#put_in/3http://elixir-lang.org/docs/stable/elixir/Kernel.html#put_in/3, etc.
Derperpe1 has joined #ruby
<baweaver> :D
<eelster> Rich_Morin: It is important to note the splat. If you pass an array of hashes it won't give you what you are looking for.
Derperperd has quit [Read error: Connection reset by peer]
<eelster> >> a = {foo: {bar: 42}}; puts a.dig(%i(foo bar))
<ruby[bot]> eelster: # => ...check link for more (https://eval.in/713543)
<eelster> >> a = {foo: {bar: 42}}; puts a.dig(*%i(foo bar))
<ruby[bot]> eelster: # => 42 ...check link for more (https://eval.in/713544)
<eelster> Rich_Morin: So the splat makes it work.
ScottGA has joined #ruby
milardovich has joined #ruby
jhack has quit [Quit: jhack]
skweek has joined #ruby
fnux has quit [Ping timeout: 240 seconds]
jhack has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
Guest92315 is now known as ged
fnux has joined #ruby
pawnbox has quit [Remote host closed the connection]
mholmes has joined #ruby
ged is now known as Guest73462
milardovich has quit [Ping timeout: 260 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
cdg has quit [Remote host closed the connection]
evie_hammond has quit [Quit: WeeChat 1.6]
pawnbox has joined #ruby
markholmes has quit [Ping timeout: 252 seconds]
jshjsh has joined #ruby
JoshS has quit [Read error: Connection reset by peer]
AndBobsYourUncle has quit [Ping timeout: 252 seconds]
AndBobsYourUncle has joined #ruby
doritostains has joined #ruby
Devalo has joined #ruby
ianmethyst has quit [Quit: WeeChat 1.6]
Lord_of_Away has quit [Excess Flood]
_sfiguser has joined #ruby
lenwood has joined #ruby
<eelster> What do you all think about this: https://bugs.ruby-lang.org/issues/13067 ?
doublemalt_ has quit [Ping timeout: 240 seconds]
Lord_of_Life has joined #ruby
PaulCapestany has quit [Quit: .]
enyo has joined #ruby
grh has joined #ruby
gizmore is now known as gizmora
polishdub has joined #ruby
aeontech has quit [*.net *.split]
brainslug has quit [*.net *.split]
modin has quit [*.net *.split]
marsjaninzmarsa has quit [*.net *.split]
eclm has quit [*.net *.split]
Koshian____ has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
alnewkirk has quit [*.net *.split]
jericon_ has quit [*.net *.split]
jericon has joined #ruby
nettoweb1 has joined #ruby
alnewkirk has joined #ruby
Koshian____ has joined #ruby
eclm has joined #ruby
enyo has quit [Ping timeout: 240 seconds]
yorickpeterse has joined #ruby
nettoweb has quit [Ping timeout: 248 seconds]
A124 has quit [Read error: Connection reset by peer]
marsjaninzmarsa has joined #ruby
ajk142 is now known as Andrew_TA
Rodya_ has quit [Remote host closed the connection]
<apeiros> I wonder about matz' actual use case. I don't really see the point of it.
Rodya_ has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
<eelster> apeiros: I don't like matz' original idea with it, but I do thing there should be some way to do cases for truthiness or falsiness.
A124 has joined #ruby
<apeiros> eelster: as others in the thread noted, the list for falsy values in ruby is short, so being explicit is usually easy
<apeiros> case obj; when nil,false; "falsy"; else "truthy"; end
Rodya_ has quit [Remote host closed the connection]
<eelster> apeiros: That is true, I think that moreso it would be useful if you wanted to do when A; when B; when Truthy; else, but I guess you could do when A; when B; when false,nil; else
<apeiros> precisely
<eelster> apeiros: I think if it was from someone other than matz I'd probably dismiss it out of hand, but being Matz, I think it is fair to maybe give a bit more thought, to it, but there really is no strong usecase.
<apeiros> same. it's the only reason I said "I wonder about the actual use case".
<apeiros> well, no, I usually wonder about actual use cases, even if my instinct is to dismiss it :)
lenwood has quit [Ping timeout: 240 seconds]
<eelster> apeiros: I do too, but I'll think harder about it under these circumstances.
gloscombe has joined #ruby
<eelster> I do love reading feature requests though.
<eelster> The Ruby Bug Tracker is pretty cool.
muelleme has quit [Ping timeout: 260 seconds]
<eelster> For example, this seems awesome: https://bugs.ruby-lang.org/issues/13026
troulouliou_dev has joined #ruby
blackmesa has joined #ruby
Ruby-Newbie has joined #ruby
rkazak has joined #ruby
<Ruby-Newbie> Hey guys
<eelster> Hey Ruby-Newbie
<Ruby-Newbie> Absolute beginner here
<Ruby-Newbie> just started codewars
<eelster> Sure!
<apeiros> is there a codelove? if so, I could say: make codelove, not codewar!
agit0 has joined #ruby
<Ruby-Newbie> hah
<elomatreb> eelster: idk why, but I really like that truthy/falsy === suggestion
<elomatreb> Feels very ruby-ish
mlkkk has joined #ruby
<eelster> elomatreb: I do agree with you there.
Devalo has quit [Remote host closed the connection]
milardovich has joined #ruby
mlkkk has quit [Remote host closed the connection]
<Ruby-Newbie> Would anyone be willing to help me with a Kata? I'm already struggling at level 7 :/
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
tfitts has joined #ruby
<apeiros> Ruby-Newbie: just ask your question. if somebody feels like, they'll answer.
mlkkk has joined #ruby
Rodya_ has joined #ruby
<Ruby-Newbie> I'm doing this kata: https://www.codewars.com/kata/mumbling/ruby
<Ruby-Newbie> need a function that gives out this output: accum("abcd") # "A-Bb-Ccc-Dddd"
<Ruby-Newbie> this is what I have so far on repl.it not sure if i'm going the right direction
<eelster> Ruby-Newbie: Here's some hints. The methods each_with_index, chars, join, and capitalize might be useful
doritostains has quit [Quit: doritostains]
<apeiros> String#* might be useful too
<Ruby-Newbie> thought process was: break initial string into array. use each_with_index to multiply the element times the index + 1, then join the array into a string seperated by "-"
<apeiros> >> "x" * 4
<ruby[bot]> apeiros: # => "xxxx" (https://eval.in/713548)
<apeiros> oh, you know that already, I see :)
<Ruby-Newbie> yeah, I have what i've been trying on repl.it
<apeiros> as eelster said, String#capitalize is your friend then
<elomatreb> Also, #map
markholmes has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
<eelster> elomatreb: Yes, I forgot about map
doritostains has joined #ruby
<eelster> If you are using map, you'd want to use `with_index` not `each_with_index` I believe.
<Ruby-Newbie> hmmm map makes sense
jaruga___ has quit [Remote host closed the connection]
<eelster> This actually has a pretty swift one line solution to it!
mholmes has quit [Ping timeout: 240 seconds]
chouhoulis has joined #ruby
hahuang65 has quit [Ping timeout: 256 seconds]
Rodya_ has quit [Remote host closed the connection]
xen0fon has quit [Quit: xen0fon]
ramfjord_ has joined #ruby
<Ruby-Newbie> what's your solution? I'm messing myself up by trying to go from string to array back to string
Rodya_ has joined #ruby
rodfersou has quit [Quit: leaving]
<elomatreb> What do you mean specifically? We may be able to explain
<eelster> Wait, try your on stuff first?
<eelster> *own
sid_fules has joined #ruby
jaruga___ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
<apeiros> 58 chars for the method body for "my" solution (quotes since the "ingredients" have already been given by many)
<eelster> apeiros: I'm at 62
<eelster> Just kidding 58
<Ruby-Newbie> ok so I got this:
<apeiros> eelster: well, same if I don't shave off whitespace
<Ruby-Newbie> It works, but the returning string always ends with "-"
<Ruby-Newbie> so I need it to return without the last index I guess
harai has quit [Ping timeout: 240 seconds]
ramfjord_ has quit [Ping timeout: 252 seconds]
<apeiros> 51 if I golf it (not much effort)
<elomatreb> Ruby-Newbie: Didn't you say you wanted to put your elements into an Array and join it then?
<apeiros> Ruby-Newbie: Array#join
<eelster> apeiros: You have a 51 golfed? Damn how?
<apeiros> eelster: Array#* and ?-
<eelster> apeiros: Ah the splat.
<apeiros> >> ["a","b"]*?-
<ruby[bot]> apeiros: # => "a-b" (https://eval.in/713551)
<elomatreb> Uh, ? literals. I thought they were removed?
<apeiros> elomatreb: sadly no. they're now string literals instead of integer
<eelster> elomatreb: Nope.
<apeiros> pointless beyond golf
<eelster> apeiros: Nevermind not a splat!
<Ruby-Newbie> but from what I have written in repl.it it's already a string
<Ruby-Newbie> so the join method won't work on the string
<apeiros> eelster: yeah, splat ain't no method ;-)
<Ruby-Newbie> i get a method error
matp has quit [Remote host closed the connection]
<elomatreb> Ruby-Newbie: Yeah, a string is already a joined sequence of characters
ScottGA has quit [Remote host closed the connection]
<Ruby-Newbie> right
<apeiros> Ruby-Newbie: chop removes the last char of a string. so does string[0..-2]
jetpack_joe has joined #ruby
<apeiros> though map + join is IMO nicer
<Ruby-Newbie> oh that's perfect then
<elomatreb> You can add elements to an array just like how you append to your string (<<), and that array can later be joined using, .join, which accepts a separation character
matp has joined #ruby
<eelster> apeiros: You're at 51? My golf even with your optimizations is only at 52.
<Ruby-Newbie> chop worked great
<elomatreb> Test passes :shrug: :)
<Ruby-Newbie> @apeiros how would you solve this with map + join?
<apeiros> Ruby-Newbie: s.chars.map.with_index(1) { |c,i| (c*i).capitalize }.join("-")
<eelster> Ruby-Newbie: With map and join, I'd do this `s.chars.map.with_index{|c,i| (c*(i+1)).capitalize}.join('-')
<elomatreb> Oh, I didn't even rememeber that you can pass a start index
<eelster> apeiros: Ah, the starting value for with_index is how you're at 51 instead of 52.
<eelster> I still don't understand why `String#to_a` isn't aliased to `String#char`
<Ruby-Newbie> that def looks more "rubyesque"
<eelster> I still don't understand why `String#to_a` isn't aliased to `String#chars`
<apeiros> eelster: you can do without
<apeiros> s.chars.map.with_index{|c,i|c.*(i+1).capitalize}*?-
<apeiros> still 51 ;-)
<Ruby-Newbie> man.. my problem solving skills are horrible. These are simple katas and I can't even solve them.
<Ruby-Newbie> Thanks for the help guys
<eelster> apeiros: I prefer to be somewhat dot-free :P
skweek has quit [Ping timeout: 248 seconds]
harai has joined #ruby
<eelster> Ruby-Newbie: Your skills aren't horrible.
<apeiros> weeeell, golfing is about being char-free ;-p
<apeiros> Ruby-Newbie: that's what katas are about! hone, hone and hone again until you got the skills :D
<eelster> I've been coding in ruby for years. You aren't expected to be able to have that base of knowledge yet. Coding more helps you learn.
<Ruby-Newbie> True true. I might pester you guys in a bit
* apeiros started ruby 4h ago
<Ruby-Newbie> Do you guys think Codewars actually helps?
nankyokusei has joined #ruby
<elomatreb> Especially since solving problems with iterators like this is rarely done in other languages
<eelster> Ruby-Newbie: Yeah. I like codewars.
<Ruby-Newbie> I feel like they help for technical interviews and stuff like that
jshjsh has quit [Quit: Leaving]
<eelster> There's some pretty hard stuff on there.
<Ruby-Newbie> Fair, i'm gonna keep doing them
<eelster> Ruby-Newbie: one thing i'll say is the 'sleekiest' solution in ruby isn't always the most efficient.
ifctj has joined #ruby
<elomatreb> (Nor the most readable)
<Ruby-Newbie> That's what I've heard too
<Ruby-Newbie> just cause it uses less characters doesn't mean it's more efficient
<apeiros> yeah, don't code clever. code readable and maintainable.
<eelster> I optimized a piece of code by using 3 more lines. It turned an O(n^2) algorithm into an O(n) algorithm.
<Ruby-Newbie> unfortunately the "most clever" answers in Codewars are the ones with the shortest lines
<eelster> One liners are nice, but not always efficient.
<apeiros> ruby is nice because you can be concise. i.e. dense code which is still very readable.
<Ruby-Newbie> Gotcha
<eelster> Ruby-Newbie: Also, chain maps over nesting maps if you can. There is a huge performance difference.
<Ruby-Newbie> I noticed also for Codewars it's super useful to have a good grasp of a lot of methods and how they work
aesthetikxx has joined #ruby
<Ruby-Newbie> hmm haven't thought of that eelster
<markholmes> Ruby-Newbie: that's important outside of codewars, too.
<eelster> Ruby-Newbie: Every time you nest a loop your algorithm gets more inefficient.
jhack has quit [Ping timeout: 248 seconds]
flashbang has joined #ruby
harai has quit [Ping timeout: 256 seconds]
<eelster> Ruby-Newbie: Also, don't worry about who votes 'most-clever' on codewars. That doesn't mean too much.
jshjsh has joined #ruby
nettoweb1 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyokusei has quit [Ping timeout: 248 seconds]
<Ruby-Newbie> cool cool, thanks for the tips
<eelster> No worrie
<eelster> s/worrie/worries
eelster has left #ruby ["g2g"]
gheegh has joined #ruby
govg has joined #ruby
spacheco has joined #ruby
Derperpe1 has quit [Max SendQ exceeded]
<aesthetikxx> Does anyone know if there is currently a version of the json gem that will compile for ruby 2.4.0
Derperpe1 has joined #ruby
ta has joined #ruby
<apeiros> aesthetikxx: the one which comes with stdlib.
markholmes has quit [Ping timeout: 252 seconds]
<aesthetikxx> version my app is using fails to compile since fixnum was removed
lenwood has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.6]
iogf has quit [Remote host closed the connection]
<aesthetikxx> i think for some reason active_model_serializers requires json_api (ugh) which is ~> json 1.8
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
milardovich has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
Derperpe1 has quit [Max SendQ exceeded]
AndBobsYourUncle has joined #ruby
Derperpe1 has joined #ruby
haylon has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
z4j5 has joined #ruby
milardovich has quit [Ping timeout: 252 seconds]
z4j5 has quit [Read error: No route to host]
<haylon> Hey everyone! Has anyone ever worked with the BMC BSA REST API?
zx4j5 has joined #ruby
synaps3 has quit [Quit: Leaving]
<dminuoso> haylon: TOO MNY ABBV FOR MY TST
sid_fules has quit [Quit: Leaving...]
<haylon> Sorry, BMC(?) Bladelogic Server Automation REST Application Programing Interface
AndBobsY_ has joined #ruby
AndBobsYourUncle has quit [Ping timeout: 258 seconds]
last_staff has joined #ruby
ldnunes has quit [Quit: Leaving]
Guest73462 is now known as ged
milardovich has joined #ruby
ged is now known as Guest72947
BTRE has quit [Quit: Leaving]
shayan_ has joined #ruby
Ruby-Newbie has quit [Ping timeout: 260 seconds]
zx4j5 has quit [Quit: WeeChat 1.2]
shayan_ has quit [Client Quit]
BTRE has joined #ruby
<haylon> @dminuoso, I'm guess you have not worked that product then?
shayan_ has joined #ruby
jdawgaz has joined #ruby
<SeepingN> that's an enterprise level question
<SeepingN> that's $150/hour
<SeepingN> (sale ends today)
<haylon> eesh. Not sure I can foot that
aesthetikx has quit [Quit: WeeChat 1.4]
Aleroniponi has joined #ruby
FastJack has quit [Quit: leaving]
maloik has quit [Remote host closed the connection]
zapata has quit [Quit: WeeChat 1.6]
x00r__ has quit [Ping timeout: 240 seconds]
maloik has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has joined #ruby
Jackneill_ has joined #ruby
flashbang has quit [Ping timeout: 240 seconds]
zapata has joined #ruby
matthewd has quit [Ping timeout: 248 seconds]
JeanCarloMachado has quit [Remote host closed the connection]
flashbang has joined #ruby
dcunit3d has joined #ruby
flashbang is now known as Guest15264
JeanCarloMachado has joined #ruby
siddart_ has joined #ruby
<gheegh> Hey all.. I'm trying to get a regex going.. i have a list of keys, i'm trying to insert.. but I only want to insert them if the text trailing them is a space, comma, or ). Right now, if there's not an exact match, it matches when it shouldn't and is erroring.. Here's a regex that tries to show what it should not match: https://gist.github.com/wflanagan/a1e98edc7e893545325db0063cd5333f
dcunit3d has quit [Read error: Connection timed out]
<eam> haylon: nope, have always used ipmi over lan
cdg has joined #ruby
dcunit3d has joined #ruby
Derperpe1 has quit [Quit: WeeChat 1.5]
<gheegh> I also addeed how i'm using it for real.. so you can see that.
polishdub has quit [Quit: leaving]
<haylon> eam, darn. I didn't know if I was using Rest-Client properly, or if I just don't have all the options for their API. The documentation is a bit inconsistent, and I wanted to see if anyone had used it before. I'll open a ticket wiht them.
<SeepingN> gheegh: date_is_today?(quit_date) sound s like it would return a boolean. then you're trying to match a boolean
siddart has quit [Ping timeout: 240 seconds]
<eam> in my experience any software in this area is a buggy trainwreck
AlexRussia has joined #ruby
<gheegh> date_is_today?(quit_date) is evaluated with an eval statement..
<gheegh> its basically a simple rules engine
NeverTired has joined #ruby
tekk has joined #ruby
<haylon> eam, yeah, I know what you mean, and unfortunately, I'm forced to work with it. I'm trying to introduce the Chef idea
<gheegh> but, the problem is that if the customer puts an attribute in of "quit", and then has a rule that matches for example "quit_date", the regex i'm doing will insert the quit and leave the "_date", and that causes problems.
<haylon> but its slow going.
<gheegh> because it's invalid code..
<gheegh> i already doucble check that i've matched something in my array.. if not, I don't eval at all, and return false..
malconis has quit [Read error: Connection reset by peer]
Rodya_ has quit [Remote host closed the connection]
<gheegh> so, this is dealing with a corner case..
malconis has joined #ruby
FastJack has joined #ruby
malconis has quit [Read error: Connection reset by peer]
enilsen16 has joined #ruby
lenwood has quit [Ping timeout: 240 seconds]
malconis has joined #ruby
Rodya_ has joined #ruby
<gheegh> SeepingN: that was all directed at you.. :-)
malconis has quit [Read error: Connection reset by peer]
malconis has joined #ruby
malconis has quit [Read error: Connection reset by peer]
Komarr has joined #ruby
Komarr has quit [Client Quit]
Gasher has quit [Ping timeout: 245 seconds]
malconis has joined #ruby
matthewd has joined #ruby
whathappens has quit [Remote host closed the connection]
ifctj has quit [Ping timeout: 245 seconds]
doritostains has quit [Quit: doritostains]
whathappens has joined #ruby
lenwood has joined #ruby
valeri_uF0 has joined #ruby
jhack has joined #ruby
svkurowski_ has joined #ruby
Guest37479 has quit [Ping timeout: 248 seconds]
valeri_ufo has quit [Ping timeout: 248 seconds]
mikeiniowa has quit [Ping timeout: 248 seconds]
justinmrkva has quit [Ping timeout: 248 seconds]
Zarthus has quit [Ping timeout: 248 seconds]
svkurowski has quit [Ping timeout: 248 seconds]
CalimeroTeknik has quit [Ping timeout: 248 seconds]
thejoecarroll has quit [Ping timeout: 248 seconds]
valeri_uF0 is now known as valeri_ufo
marahin has quit [Excess Flood]
svkurowski_ is now known as svkurowski
Zarthus_ has joined #ruby
thejoecarroll has joined #ruby
marahin has joined #ruby
m1dnight1 has quit [Ping timeout: 248 seconds]
Zarthus_ is now known as Zarthus
kspencer has quit [Ping timeout: 248 seconds]
Ken has joined #ruby
perryh has joined #ruby
perryh has joined #ruby
perryh has quit [Changing host]
m1dnight1 has joined #ruby
Ken is now known as Guest85773
justinmrkva has joined #ruby
shayan_ has quit [Quit: shayan_]
nicoulaj has quit [Ping timeout: 248 seconds]
whathappens has quit [Ping timeout: 255 seconds]
bodgix has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
last_staff has quit [Quit: last_staff]
xen0fon has joined #ruby
CalimeroTeknik has joined #ruby
pawnbox has quit [Remote host closed the connection]
jaruga___ has quit [Quit: jaruga___]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
marxarelli is now known as marxarelli|afk
spacheco has quit [Remote host closed the connection]
spacheco has joined #ruby
maddmaxx has quit [Quit: Going offline, see ya! (www.adiirc.com)]
edwinvdg_ has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Rodya_ has quit [Remote host closed the connection]
spacheco has quit [Ping timeout: 240 seconds]
vasilakisfil has joined #ruby
Guest15264 has quit [Ping timeout: 245 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhack has quit [Quit: jhack]
yazdmich is now known as BytesAndCoffee
Ruby-Newbie has joined #ruby
<Ruby-Newbie> Hey again fellas
<elomatreb> welcome back
<vasilakisfil> when I do `str << "hallo?"` is `<<` a method or something else ? for instance can I write another method named `foo` in String class and then do `str foo "hallo?"` ?
<havenwood> Ruby-Newbie: All sorts here, gals too!
<havenwood> >> 'vasilakisfil'.method(:<<).owner
jhack has joined #ruby
<Ruby-Newbie> fellas and gals
<ruby[bot]> havenwood: # => String (https://eval.in/713580)
<Ruby-Newbie> btw, i'm on freenode is there any way to format my text so it comes out like code here?
enyo has joined #ruby
<elomatreb> Ruby-Newbie: Normally IRC clients already show the text in monospace?
jcao219_ has quit [Ping timeout: 245 seconds]
<havenwood> Ruby-Newbie: The preferred option is to link to a Gist of the code, with syntax highlighting and multiple files and such niceties.
Rodya_ has joined #ruby
<Ruby-Newbie> Noted
Rodya_ has quit [Read error: Connection reset by peer]
elementaru has quit [Remote host closed the connection]
<havenwood> vasilakisfil: It's syntactic sugar that you're able to call it like that. You can' t do your own quite like that.
<Ruby-Newbie> So I have another basic Codewar challenge, i'm having a bit of trouble on the last part. Also the code is not super clean
xen0fon has quit [Quit: xen0fon]
<havenwood> Ruby-Newbie: Shoot us a link and we'll give feedback!
nemish has joined #ruby
<elomatreb> But you *can* redefine the operators (most of them) to do what you want on your own classes
<nemish> is there a way to specify different gem versions based on the ruby version?
nettoweb has joined #ruby
<vasilakisfil> ok I see! thanks!
<Ruby-Newbie> ok so the function I have to make is this: remove_smallest([2,2,1,2,1]) = [2,2,2,1] #basically remove the smallest integer and if there are multiple elements of the same number then remove the one with a lower index
<Ruby-Newbie> if array is empty then just return an empty array
Aleroniponi has quit [Quit: Page closed]
enyo has quit [Ping timeout: 240 seconds]
emptyflask has joined #ruby
<Ruby-Newbie> I used delete.min to remove the smallest integer, but having trouble figuring out how to handle the mutliple element issue
<Ruby-Newbie> this is what I tried: https://repl.it/FF77/2
<Ruby-Newbie> .delete might not be the best choice
<solidsnack> There is an undocumented Ruby FFI thing in the standard library I am told.
<solidsnack> It's called something like "Figma".
<solidsnack> Has anyone heard of this thing?
Lucky_ABA has quit [Quit: Textual IRC Client: www.textualapp.com]
<gheegh> solidsnack? https://github.com/ffi/ffi
<gheegh> ?
<solidsnack> It's like that but different.
<solidsnack> I'm thinking it is similar to this: https://github.com/neelance/ffi_gen
Ruby-Newbie_ has joined #ruby
<havenwood> nemish: Do you mean in a Gemfile or gemspec or just generally?
<gheegh> you're above my pay grade.
Lucky_ABA has joined #ruby
AndBobsY_ has quit [Remote host closed the connection]
<Ruby-Newbie_> Hey guys
AndBobsYourUncle has joined #ruby
<Ruby-Newbie_> Absolute beginner here and just started messing with Codewars
<Ruby-Newbie> Woops
Ruby-Newbie has quit [Quit: Page closed]
<havenwood> Ruby-Newbie_: See Array#delete_at
swills has quit [Read error: Connection reset by peer]
swills has joined #ruby
ddffg has quit [Ping timeout: 252 seconds]
<havenwood> Ruby-Newbie_: Since you're trying to delete something at a particular index try to find that index then you can delete that one index only.
<havenwood> Ruby-Newbie_: That make any sense?
despai has joined #ruby
<havenwood> >> a = ['ant', 'bat', 'bat', 'dog']; a.delete_at 1; a # Ruby-Newbie_
<ruby[bot]> havenwood: # => ["ant", "bat", "dog"] (https://eval.in/713581)
haylon has quit [Quit: Leaving]
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
<havenwood> >> ['ant', 'bat', 'bat', 'dog'].index 'bat' # Ruby-Newbie_
<ruby[bot]> havenwood: # => 1 (https://eval.in/713582)
Ruby-Newbie_ has quit [Ping timeout: 260 seconds]
boombox_ has joined #ruby
<havenwood> Ruby-Newbie_: See if between those two methods ^ you can find a solution for your code?
Guest15264 has joined #ruby
ScottGA has joined #ruby
ponga has quit [Quit: Connection closed for inactivity]
ramfjord has joined #ruby
tomphp has joined #ruby
AndBobsYourUncle has joined #ruby
enilsen16 has quit [Ping timeout: 252 seconds]
lenwood has quit [Ping timeout: 260 seconds]
ScottGA has quit [Ping timeout: 248 seconds]
Guest72947 is now known as ged
<nemish> havenwood: in a Gemfile ... think i need to use ENV variables to specify different gem versions based on the Ruby version
ged is now known as Guest78342
enilsen16 has joined #ruby
boombox_ has quit [Remote host closed the connection]
Zamyatin has quit [Ping timeout: 240 seconds]
markholmes has joined #ruby
<havenwood> nemish: You could use `RUBY_VERSION` maybe along with `Gem::Version` or do your own version comparison.
<havenwood> nemish: You could use case or if statements. How many gems vary by version of Ruby? Keep in mind that it kinda defies the purpose of the Gemfile.lock for an app - being on the exact same version of the exact same gems.
<havenwood> nemish: We might be able to better advise if you say more about the app/gem and why you're supporting multiple Ruby versions.
ScottGA has joined #ruby
ddffg has joined #ruby
workmad3 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 240 seconds]
doritostains has joined #ruby
whathappens has joined #ruby
Guest14044 has quit [Quit: Page closed]
polishdub has joined #ruby
ScottGA has quit [Remote host closed the connection]
shayan_ has joined #ruby
enilsen16 has quit [Quit: enilsen16]
BitWhisperer has joined #ruby
ScottGA has joined #ruby
ScottGA has quit [Remote host closed the connection]
anuxivm has joined #ruby
doritostains has quit [Quit: doritostains]
ScottGA has joined #ruby
anuxivm has left #ruby [#ruby]
ScottGA has quit [Remote host closed the connection]
malconis has quit [Read error: Connection reset by peer]
jhack has quit [Quit: jhack]
AndrewIsHere has joined #ruby
doritostains has joined #ruby
nankyokusei has joined #ruby
kch has joined #ruby
<kch> ello
kobain has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
siddart_ has quit [Ping timeout: 256 seconds]
jobewan has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
machinewar has joined #ruby
<havenwood> kch: hi
jetpack_joe has quit [Quit: Connection closed for inactivity]
futilegames has quit [Ping timeout: 240 seconds]
ramortegui has quit [Quit: Ex-Chat]
Andrew_TA has quit [Remote host closed the connection]
Guest15264 has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<kch> havenwood, nice to see you again
Andrew_TA has joined #ruby
Andrew_TA has quit [Remote host closed the connection]
ScottGA has joined #ruby
polishdub has quit [Quit: leaving]
blackmesa has quit [Quit: WeeChat 1.6]
anjen has joined #ruby
enterprisey has joined #ruby
havenwood has quit [Quit: mIRC 5.91 (16 bit) for Microsoft © Windows For WorkGroups 3.11®]
kch has quit [Quit: brb]
koch has joined #ruby
koch is now known as kch
_djbkd has joined #ruby
havenwood has joined #ruby
havenwood has quit [Changing host]
havenwood has joined #ruby
jshjsh has quit [Quit: Leaving]
kch has quit [Changing host]
kch has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<kch> how is everyone today
<kch> irc is just like I remember it from the good ol days
<kch> buncha idlers!
<kch> :>
csk has quit [Quit: ZZZzzz…]
hahuang65 has quit [Ping timeout: 240 seconds]
chussenot has joined #ruby
iogf has joined #ruby
mikael` has quit [Remote host closed the connection]
<anjen> Hello. updating an applciatpon from ruby 1.8.7 to ruby 1.9.3/ What does t(".sign_out") mean? Is this shorthand for to_s()?
<anjen> *application
<machinewar> anjen: do you have any more context? that looks like a capybara test case or something
mlkkk has quit [Remote host closed the connection]
<machinewar> this is not a core method
anjen has left #ruby [#ruby]
<dminuoso> anjen: That looks like an i18n helper method
anjen has joined #ruby
<dminuoso> anjen: That looks like an i18n helper method
grh has quit [Ping timeout: 240 seconds]
<anjen> thank you dminuoso.
ScottGA has quit [Quit: Leaving...]
kch has quit [Quit: brb]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<anjen> machinewar: thoughtbot clearnace added it in a link_to . Orignally, I'd have used link_to("some text", route), but it uses link_to(t(".some_text"),route)
emptyflask has quit []
tomphp has joined #ruby
<machinewar> ohh interesting so it definitely sounds like il8n in that case
<anjen> ;) looks like I have quite a bit of recoding to do...
AnxiousGarlic has quit [Read error: Connection reset by peer]
<dminuoso> anjen: ?rails
minimalism has joined #ruby
<dminuoso> ?rails anjen
<ruby[bot]> anjen: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<anjen> much appreciated Have as good afternoon/etc (as applicable).
<dminuoso> anjen: "morning" is the universal programmer time.
<dminuoso> It's always morning somewhere.
<anjen> dminuoso: sorry, I thought this would be the right channel. I'm on RubyOnRails as well. again thanks for the reply and answer. Have a good morning!
anjen has quit [Quit: anjen]
kch has joined #ruby
bmurt has joined #ruby
havenwood has quit [Quit: mIRC 5.91 (16 bit) for Microsoft © Windows For WorkGroups 3.11®]
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
AndrewIsHere has joined #ruby
sgt-yellow-peppe has joined #ruby
rhllor has joined #ruby
machinewar has quit []
rhllor has quit [Client Quit]
dviola has joined #ruby
AndrewIsHere has quit [Client Quit]
enilsen16 has joined #ruby
hotpancakes has quit [Remote host closed the connection]
kch has quit [Ping timeout: 240 seconds]
[Butch] has quit [Quit: I'm out . . .]
nettoweb has joined #ruby
<sgt-yellow-peppe> \quit
sgt-yellow-peppe has quit [Quit: WeeChat 1.6]
hotpanca_ has joined #ruby
Guest78342 is now known as ged
ged is now known as Guest94365
shayan_ has quit [Quit: shayan_]
shayan_ has joined #ruby
govg has quit [Ping timeout: 248 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.6]
hahuang65 has joined #ruby
CloCkWeRX has joined #ruby
Jackneill_ has quit [Remote host closed the connection]
jtd has quit [Quit: No Ping reply in 180 seconds.]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tpendragon has joined #ruby
bogdanteleaga has quit [Quit: ZNC - http://znc.in]
blackjid has joined #ruby
bogdanteleaga has joined #ruby
tyang has quit [Read error: Connection reset by peer]
matp has quit [Remote host closed the connection]
matp has joined #ruby
AndBobsYourUncle has quit [Remote host closed the connection]
AndBobsYourUncle has joined #ruby
AndBobsY_ has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
AndBobsYourUncle has quit [Ping timeout: 240 seconds]
saneax-_-|AFK is now known as saneax
gheegh has quit [Ping timeout: 240 seconds]
havenwood has joined #ruby
havenwood has joined #ruby
havenwood has quit [Changing host]
__main__ has quit [Read error: Connection reset by peer]
triangles has joined #ruby
enyo_ has joined #ruby
TomyLobo has quit [Ping timeout: 252 seconds]
__main__ has joined #ruby
amitchellbullard has quit [Ping timeout: 240 seconds]
aarongodin has quit [Ping timeout: 240 seconds]
johnkpaul has quit [Ping timeout: 240 seconds]
a_le_x has quit [Ping timeout: 240 seconds]
Yonk_ has quit [Ping timeout: 240 seconds]
ckrailo has quit [Ping timeout: 240 seconds]
aremaref_ has joined #ruby
machty has quit [Ping timeout: 255 seconds]
a_le_x has joined #ruby
Majost has quit [Ping timeout: 240 seconds]
bastilian has quit [Ping timeout: 255 seconds]
dcunit3d has quit [Ping timeout: 240 seconds]
deepak_ has quit [Ping timeout: 240 seconds]
rjungemann has quit [Ping timeout: 255 seconds]
quoboo has quit [Ping timeout: 255 seconds]
hayden___ has quit [Ping timeout: 255 seconds]
codepete has quit [Ping timeout: 255 seconds]
ELLIOTTCABLE has quit [Ping timeout: 240 seconds]
enyo_ has quit [Ping timeout: 240 seconds]
deimos has quit [Ping timeout: 245 seconds]
eelster has joined #ruby
nadir has quit [Ping timeout: 240 seconds]
tfitts has quit [Ping timeout: 240 seconds]
moogumbo has quit [Ping timeout: 255 seconds]
vayan has quit [Ping timeout: 255 seconds]
the-eat-scout has quit [Ping timeout: 256 seconds]
troter__________ has quit [Ping timeout: 258 seconds]
ewilliam__ has quit [Ping timeout: 258 seconds]
aremaref has quit [Ping timeout: 240 seconds]
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
havenwood has joined #ruby
johnkpaul has joined #ruby
Majost has joined #ruby
deepak_ has joined #ruby
aarongodin has joined #ruby
moogumbo has joined #ruby
quoboo has joined #ruby
machty has joined #ruby
Yonk_ has joined #ruby
hayden___ has joined #ruby
bastilian has joined #ruby
deimos has joined #ruby
tfitts has joined #ruby
nadir has joined #ruby
rjungemann has joined #ruby
iogf is now known as tau
ewilliam__ has joined #ruby
codepete has joined #ruby
tercenya_ has joined #ruby
chouhoulis has quit [Remote host closed the connection]
JeanCarloMachado has quit [Remote host closed the connection]
s2013 has quit [Read error: Connection reset by peer]
tercenya has quit [Ping timeout: 260 seconds]
JeanCarloMachado has joined #ruby
enilsen16 has quit [Ping timeout: 245 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enterprisey has quit [Remote host closed the connection]
enilsen16 has joined #ruby
dcunit3d has joined #ruby
CloCkWeRX has joined #ruby
ELLIOTTCABLE has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ckrailo has joined #ruby
amitchellbullard has joined #ruby
johnhaugeland has joined #ruby
johnhaugeland has left #ruby [#ruby]
StoneCypher has joined #ruby
<StoneCypher> What do Ruby APIs generally use for null in an sql driver? nil?
dcunit3d has quit [Ping timeout: 240 seconds]
pawnbox has joined #ruby
<eelster> StoneCypher: Are you using an ORM?
<eelster> But on the whole, nil is the most logical for NULL.
<StoneCypher> i'm using the aws kinesis firehose api, which sends json encoded as a string
Ropeney has joined #ruby
<StoneCypher> i'm just trying to support the principle of least surprise downstream
<StoneCypher> and i'm not a ruby programmer, so that's ... hard :D
<eelster> StoneCypher: Are you trying to parse the json in ruby?
<StoneCypher> no. other direction. push only.
<StoneCypher> i am sending json to them to be stored
<eelster> And you're reading from a database?
<StoneCypher> no. the database is where it's being stored. think logger.
<StoneCypher> this is outbound from ruby, not inbound.
<eelster> Where are you using SQL then?
<eelster> If you are sending a json
<eelster> And not reading from a database, how are you using SQL?
<StoneCypher> aws uses json as a weird interface to redshift, which is sql.
<StoneCypher> column names are json keys.
<StoneCypher> it's super gross.
govg has joined #ruby
sebastiansier has quit [Remote host closed the connection]
<eelster> But you're not directly interacting with SQL?
<SeepingN> totally safe and secure!
<StoneCypher> nope.
<StoneCypher> SeepingN: they're bound parameters. it's good enough
last_staff has quit [Quit: last_staff]
sebastiansier has joined #ruby
_sfiguser has quit [Ping timeout: 260 seconds]
<eelster> Ruby's so called "none style" type is nil
<bougyman> there is no nil/null in json, right?
<bougyman> you just don't supply that key.
pawnbox has quit [Ping timeout: 240 seconds]
<StoneCypher> there is null. what there isn't is undefined.
<StoneCypher> that is, the js keyword `undefined` is not expressable.
<StoneCypher> null and undefined are distinct in js.
<eelster> StoneCypher: You can use JSON which is in the stdlib in ruby and just use #to_json on a hash and it automatically turns it into a JSON string
<eelster> For example https://repl.it/FFiY
<StoneCypher> thanks, the json part is handled
<StoneCypher> i just want to know the idiomatic expression you gave me earlier
<StoneCypher> thanks again
<eelster> What idiomatic expression?
<eelster> nil?
<StoneCypher> yes.
<eelster> Ah, yes.
sebastiansier has quit [Ping timeout: 240 seconds]
<StoneCypher> actually .to_json backs you up
<eelster> StoneCypher: What do you mean?
<SeepingN> you get {}
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
<SeepingN> I believe
<eelster> SeepingN: From what?
marxarelli has joined #ruby
<Radar> >> nil.to_json
<ruby[bot]> Radar: # => undefined method `to_json' for nil:NilClass ...check link for more (https://eval.in/713629)
<havenwood> >> require 'json'; nil.to_json
<ruby[bot]> havenwood: # => "null" (https://eval.in/713630)
<eelster> >> require 'json'; a = {a: nil}; puts a.to_json
<ruby[bot]> eelster: # => {"a":null} ...check link for more (https://eval.in/713631)
<havenwood> >> require 'json'; JSON.parse nil.to_json
<ruby[bot]> havenwood: # => 784: unexpected token at 'null' (JSON::ParserError) ...check link for more (https://eval.in/713632)
<eelster> havenwood: you can't parse that because it isn't in json format
<eelster> >> require 'json'; a = {a: nil}; JSON.parse a.to_json
<ruby[bot]> eelster: # => {"a"=>nil} (https://eval.in/713633)
<havenwood> eelster: works on my machine
StoneCyp1er has joined #ruby
<eelster> havenwood: That's new for 2.4.0
<eelster> IIRC
<havenwood> eelster: 2.3
<havenwood> or 2.3.something
<eelster> It doesn't work for me on 2.3.1. Lemme upgrade my 2.3 version though
<eelster> I believe it's 2.3.3
<havenwood> works for me in 2.3.1
<havenwood> and 2.3.2
<eelster> It was a 2.3.2 change according to the change log.
<eelster> >> puts RUBY_VERSION
<ruby[bot]> eelster: # => 2.3.0 ...check link for more (https://eval.in/713634)
StoneCypher has quit [Ping timeout: 248 seconds]
<eelster> Well regardless, it works now.
<havenwood> live in the now ruby[bot]!
charliesome has joined #ruby
<eelster> havenwood++
* havenwood increments
masondesu has joined #ruby
<eelster> I'm proud of ruby for not having `++`. It's a weird operator
enilsen16 has quit [Quit: enilsen16]
jobewan has quit [Quit: Textual IRC Client: www.textualapp.com]
StoneCyp1er has quit [Ping timeout: 256 seconds]
sebastiansier has joined #ruby
_sfiguser has joined #ruby
hahuang65 has quit [Read error: Connection reset by peer]