havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.5.0, 2.4.3, 2.3.6, 2.6.0-preview1: https://www.ruby-lang.org || Paste 4+ lines of text to https://gist.github.com || Rails questions? Ask in #RubyOnRails || Books: https://goo.gl/wpGhoQ || Logs: https://irclog.whitequark.org/ruby
coderphive has quit [Quit: coderphive]
tolerablyjake has joined #ruby
jottr has joined #ruby
konsolebox has joined #ruby
jcarl43 has quit [Quit: WeeChat 2.1]
karapetyan has quit [Remote host closed the connection]
netherwolfe has joined #ruby
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
POKE53280 has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
clampy has joined #ruby
goatish has quit [Ping timeout: 276 seconds]
duckpuppy has joined #ruby
John_Ivan has quit [Read error: Connection reset by peer]
kn-928 has joined #ruby
Creatornator has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 264 seconds]
beremenushka3 has quit [Read error: Connection reset by peer]
venmx has quit [Ping timeout: 240 seconds]
beremenushka3 has joined #ruby
moei has quit [Quit: Leaving...]
Guest33581 is now known as arekushi
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
roca has joined #ruby
Toggi3 has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
Creatornator has joined #ruby
Creatornator has quit [Client Quit]
nowhereman_ has joined #ruby
cyberg has quit [Remote host closed the connection]
clemens3 has quit [Ping timeout: 260 seconds]
nowhere_man has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 256 seconds]
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
desperek has quit [Quit: xoxo]
alfiemax has joined #ruby
karapetyan has quit [Remote host closed the connection]
graft has quit [Ping timeout: 246 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
cagomez has quit [Remote host closed the connection]
Creatornator has joined #ruby
Creatornator has quit [Client Quit]
truenito has joined #ruby
jottr has joined #ruby
cdg has joined #ruby
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has quit [Quit: The system is going down for reboot NOW!]
arekushi has quit [Ping timeout: 256 seconds]
Creatornator has joined #ruby
robscomputer has joined #ruby
konsolebox has joined #ruby
cdg_ has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 256 seconds]
Creatornator has quit [Client Quit]
cdg has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
Creatornator has joined #ruby
alfiemax has quit [Remote host closed the connection]
duderonomy has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has quit [Client Quit]
cdg has joined #ruby
workmad3 has quit [Ping timeout: 263 seconds]
duderonomy has quit [Client Quit]
marr has quit [Ping timeout: 256 seconds]
Creatornator has joined #ruby
jottr has joined #ruby
eckhardt_ has quit [Quit: Textual IRC Client: www.textualapp.com]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has quit [Ping timeout: 246 seconds]
Creatornator has quit [Client Quit]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 240 seconds]
Creatornator has joined #ruby
roca has quit [Quit: roca]
Creatornator has quit [Client Quit]
dr3w_ has joined #ruby
darix has quit [Quit: may the packets be with you...]
duckpuppy has joined #ruby
troys has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 264 seconds]
AJA4350 has quit [Quit: AJA4350]
truenito has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 264 seconds]
Dimik has quit [Ping timeout: 268 seconds]
nadir has joined #ruby
Yzguy has joined #ruby
robscomputer has joined #ruby
cdg has joined #ruby
DTZUZU has quit [Read error: Connection reset by peer]
gnufied has quit [Quit: Leaving]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
darix has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
DTZUZU has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
Toggi3 has quit [Ping timeout: 248 seconds]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
ramfjord has joined #ruby
robscomputer has joined #ruby
jottr has joined #ruby
Creatornator has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
apparition has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
jottr has joined #ruby
erlend has quit [Ping timeout: 264 seconds]
erlend has joined #ruby
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dstrunk has joined #ruby
ciscam has quit [Ping timeout: 256 seconds]
ciscam has joined #ruby
Guest33581 has joined #ruby
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
Guest33581 has quit [Quit: Gateway shutdown]
duckpuppy has joined #ruby
n0m4d1c has quit [Ping timeout: 240 seconds]
pilne has quit [Quit: Leaving]
duckpuppy has quit [Ping timeout: 256 seconds]
stairmast0r has quit [Quit: bye]
pilne has joined #ruby
alfiemax has quit [Remote host closed the connection]
chatchatt has quit [Ping timeout: 264 seconds]
dr3w_ has joined #ruby
stairmast0r has joined #ruby
chatchatt has joined #ruby
jottr has joined #ruby
alfiemax has joined #ruby
jottr has quit [Ping timeout: 248 seconds]
gizmore has joined #ruby
jottr has joined #ruby
ogres has joined #ruby
gizmore|2 has quit [Ping timeout: 260 seconds]
nowhereman_ has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
harrycs has joined #ruby
apparition has quit [Quit: Bye]
workmad3 has joined #ruby
pd has joined #ruby
pd is now known as Guest77684
jottr has quit [Ping timeout: 256 seconds]
roca has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
dinfuehr_ has quit [Ping timeout: 264 seconds]
dinfuehr has joined #ruby
cschneid has joined #ruby
harrycs has quit [Quit: Leaving]
jcarl43 has joined #ruby
sspreitz has quit [Ping timeout: 240 seconds]
sspreitz has joined #ruby
darkhanb has joined #ruby
alfiemax has quit [Remote host closed the connection]
alfiemax has joined #ruby
duckpuppy has joined #ruby
<hahuang65_> I remember there were some dangers/gotchas with using class variables to store state... was there a good link that demonstrates these?
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
jottr has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
<weaksauce> hahuang65_ in what sense?
<weaksauce> anything is dangerous if you use it wrong
Yzguy has quit [Quit: Zzz...]
<Radar> Probably due to state possibly leaking across threads.
jottr has quit [Ping timeout: 260 seconds]
kobain has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jottr has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robscomputer has joined #ruby
kn-928 has quit [Quit: WeeChat 2.1]
<hahuang65_> Radar: yeah I think that's what I read before
<hahuang65_> I just wanted to review it
orbyt_ has joined #ruby
netherwolfe has quit [Ping timeout: 245 seconds]
jottr has quit [Ping timeout: 260 seconds]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n0m4d1c has joined #ruby
<hahuang65_> Radar: appreciate the link buddy
roca has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
phenom has quit [Ping timeout: 246 seconds]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
phenom has joined #ruby
erlend has quit [Ping timeout: 246 seconds]
roca has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erlend has joined #ruby
postmodern has joined #ruby
imode has quit [Ping timeout: 260 seconds]
tfitts has quit [Quit: Connection closed for inactivity]
jottr has joined #ruby
duckpuppy has joined #ruby
Creatornator has joined #ruby
jottr has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 256 seconds]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
jottr has joined #ruby
jamesaxl has joined #ruby
Yzguy has joined #ruby
trautwein has quit [Quit: ZNC 1.6.6 - http://znc.in]
trautwein has joined #ruby
Yzguy has quit [Client Quit]
kapil___ has quit [Quit: Connection closed for inactivity]
robscomputer has joined #ruby
conta has joined #ruby
imode has joined #ruby
Yzguy has joined #ruby
roca has quit [Quit: roca]
conta has quit [Client Quit]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cschneid has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 256 seconds]
imode has quit [Ping timeout: 246 seconds]
conta has joined #ruby
conta has quit [Client Quit]
conta has joined #ruby
conta has quit [Client Quit]
conta has joined #ruby
alfiemax has quit [Remote host closed the connection]
gix has joined #ruby
gix- has quit [Ping timeout: 256 seconds]
stairmast0r has quit [Quit: bye]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
conta has quit [Ping timeout: 264 seconds]
DTZUZO has joined #ruby
ramfjord has joined #ruby
robscomputer has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
ryan_ford has joined #ruby
jottr has quit [Ping timeout: 263 seconds]
alfiemax has joined #ruby
c0ncealed has quit [Remote host closed the connection]
stairmast0r has joined #ruby
c0ncealed has joined #ruby
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
zapata has quit [Quit: WeeChat 2.1]
n0m4d1c has quit [Remote host closed the connection]
jottr has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
alfiemax has quit [Remote host closed the connection]
robscomputer has joined #ruby
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: Zzz...]
jottr has quit [Ping timeout: 263 seconds]
bsamorim has joined #ruby
<bsamorim> Hello, guys! I have made a quick sinatra app that, in one of its endpoints, reads a video file in chunks and sends it over the net.
<bsamorim> The problem is that the amount of memory that the app consumes seems to be independent of the chunk size
<bsamorim> Is this something due to ruby or sinatra?
<bsamorim> I am opening the file with `open(file_path)` and yielding its chunks with `read(chunk_size)`
mikecmpbll has quit [Quit: inabit. zz.]
zipace has joined #ruby
ogres has quit [Quit: Connection closed for inactivity]
jottr has joined #ruby
sidx64 has joined #ruby
eckhardt_ has joined #ruby
sidx64 has quit [Client Quit]
imode has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
sidx64 has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
mtkd has joined #ruby
sidx64 has quit [Client Quit]
jottr has joined #ruby
sidx64 has joined #ruby
erlend has joined #ruby
Dimik has joined #ruby
bsamorim has quit [Ping timeout: 256 seconds]
_aeris_ has quit [Remote host closed the connection]
_aeris_ has joined #ruby
anisha has joined #ruby
oleo has quit [Quit: Leaving]
karapetyan has joined #ruby
duckpuppy has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
ryan_ford has quit [Ping timeout: 240 seconds]
nicesignal has quit [Ping timeout: 268 seconds]
sauvin_ has joined #ruby
aupadhye has joined #ruby
nicesignal has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
anisha_ has joined #ruby
anisha has quit [Ping timeout: 240 seconds]
dn`_ has joined #ruby
dn` has quit [Read error: Connection reset by peer]
dn`_ is now known as dn`
jottr has quit [Ping timeout: 246 seconds]
aupadhye has quit [Quit: Leaving]
chatchatt has quit [Ping timeout: 256 seconds]
venmx has joined #ruby
chatchatt has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
sauvin_ is now known as bocaneri
tuelz has quit [Ping timeout: 252 seconds]
tpendragon has quit [Ping timeout: 252 seconds]
reber has joined #ruby
russt has quit [Ping timeout: 240 seconds]
tuelz has joined #ruby
shuforov has joined #ruby
kliq has joined #ruby
russt has joined #ruby
netherwolfe has joined #ruby
tpendragon has joined #ruby
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
netherwolfe has quit [Ping timeout: 276 seconds]
Burgestrand has joined #ruby
zapata has joined #ruby
c0ncealed has quit [Remote host closed the connection]
alfiemax has joined #ruby
c0ncealed has joined #ruby
stoffus has joined #ruby
workmad3 has joined #ruby
jottr has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 240 seconds]
za1b1tsu has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
jottr has joined #ruby
alfiemax has quit [Read error: Connection reset by peer]
n008f4g_ has joined #ruby
alfiemax has joined #ruby
aufi has joined #ruby
bijan_ has joined #ruby
venmx has quit [Ping timeout: 268 seconds]
bijan_ has quit [Client Quit]
eckhardt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kriskropd has quit [Ping timeout: 265 seconds]
_insomniac has quit [Ping timeout: 265 seconds]
bijan_ has joined #ruby
moei has joined #ruby
sidx64_ has joined #ruby
dionysus69 has joined #ruby
sidx64 has quit [Read error: Connection reset by peer]
alfiemax has quit [Remote host closed the connection]
sidx64_ has quit [Ping timeout: 240 seconds]
imode has quit [Ping timeout: 256 seconds]
duckpuppy has joined #ruby
sidx64 has joined #ruby
za1b1tsu has quit [Quit: Leaving]
kriskropd has joined #ruby
karapetyan has quit [Remote host closed the connection]
jottr has quit [Ping timeout: 246 seconds]
alfiemax has joined #ruby
karapetyan has joined #ruby
duckpuppy has quit [Ping timeout: 245 seconds]
conta has joined #ruby
alex`` has joined #ruby
alfiemax has quit [Ping timeout: 245 seconds]
_insomniac has joined #ruby
conta1 has joined #ruby
conta has quit [Ping timeout: 252 seconds]
conta1 is now known as conta
jcarl43 has quit [Quit: WeeChat 2.1]
andikr has joined #ruby
kapil___ has joined #ruby
cschneid has joined #ruby
olspookishmagus has quit [Quit: All for nothing]
cschneid has quit [Ping timeout: 268 seconds]
n008f4g_ has quit [Ping timeout: 264 seconds]
jottr has joined #ruby
cdg has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
alfiemax has joined #ruby
cdg has quit [Ping timeout: 240 seconds]
Mortomes|Work has joined #ruby
jottr has joined #ruby
olspookishmagus has joined #ruby
asio has joined #ruby
gigetoo has quit [Ping timeout: 248 seconds]
VladGh_ has joined #ruby
gigetoo has joined #ruby
VladGh has quit [Ping timeout: 240 seconds]
cdg has joined #ruby
cdg_ has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
venmx has joined #ruby
mtkd has quit [Ping timeout: 248 seconds]
cdg has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
mtkd has joined #ruby
duckpuppy has joined #ruby
cdg_ has quit [Ping timeout: 252 seconds]
clemens3 has joined #ruby
cdg has quit [Ping timeout: 252 seconds]
erlend has quit [Ping timeout: 256 seconds]
erlend has joined #ruby
duckpuppy has quit [Ping timeout: 268 seconds]
phaul has joined #ruby
ryan_ford has joined #ruby
schneider has joined #ruby
schneider has quit [Client Quit]
claudiuinberlin has joined #ruby
schneider has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
c0ncealed has quit [Remote host closed the connection]
sidx64 has joined #ruby
alfiemax has quit [Remote host closed the connection]
conta1 has joined #ruby
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
conta1 has quit [Remote host closed the connection]
c0ncealed has joined #ruby
sidx64 has quit [Client Quit]
chatchat1 has joined #ruby
conta has quit [Ping timeout: 245 seconds]
sidx64 has joined #ruby
sanscoeur has quit [Remote host closed the connection]
sidx64 has quit [Client Quit]
chatchatt has quit [Ping timeout: 268 seconds]
jottr has joined #ruby
moei has quit [Quit: Leaving...]
kliq has quit [Ping timeout: 240 seconds]
ryan_ford has quit [Ping timeout: 260 seconds]
moei has joined #ruby
eldritch has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 255 seconds]
DTZUZO has quit [Ping timeout: 248 seconds]
bijan_ has joined #ruby
jottr has joined #ruby
eldritch has joined #ruby
DTZUZO has joined #ruby
xuyuheng has joined #ruby
aupadhye has joined #ruby
marr has joined #ruby
<nemesit|znc> anyone know why I get ActionController::ParameterMissing in rails but the request clearly contains the missing parameter?
conta has joined #ruby
conta1 has joined #ruby
naquad has quit [Ping timeout: 248 seconds]
aupadhye has quit [Read error: Connection timed out]
ryan_ford has joined #ruby
aupadhye has joined #ruby
conta has quit [Ping timeout: 240 seconds]
conta1 is now known as conta
ramfjord has joined #ruby
Mike11 has joined #ruby
guille-moe has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
<dminuoso> nemesit|znc: Gist your code and the log output.
madhatter has quit [Remote host closed the connection]
<dminuoso> nemesit|znc: Also for completeness sake, include the sniffed output (wireshark/tcpdump/devtools)
sidx64 has joined #ruby
madhatter has joined #ruby
dr3w_ has joined #ruby
dr3w_ has quit [Client Quit]
sidx64 has quit [Client Quit]
mtkd has quit []
mtkd has joined #ruby
leitz has joined #ruby
<leitz> What's the Ruby way for including a config file with items like "name = 'Fred'"?
venmx has quit [Ping timeout: 246 seconds]
<dminuoso> nemesit|znc: Also take this to
<dminuoso> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
tomphp has joined #ruby
<dminuoso> leitz: Is the format of the config file already defined, or do you have the freedom to define it?
<leitz> dminuso, have freedom, but trying to avoid things like yaml or json.
<dminuoso> Why do you want to avoid them?
<leitz> dminuoso, and I missed the "o". Need more coffee.
sidx64 has joined #ruby
<dminuoso> leitz: Most clients have tab completion. If you just type the first few letters and use tab you can cycle through all names matching those starting characters.
<leitz> Both are very white space or syntax specific. I'm trying to stick to straight text so I can give the code to non-coders and they can extend it.
<dminuoso> leitz: YAML is human readable and simple.
duckpuppy has joined #ruby
<leitz> dminuoso, yes on tabs, but I try to learn people's names. Assuming you're not a bot, anyway...
<dminuoso> leitz: If you add enough comments to show how the file is to be modified its not an issue.
<leitz> YAML is really problematic for whitespace. I'm doing Ansible and it's frustrating. Error messages from Ansible aren't so hot, either.
<dminuoso> leitz: That's an Ansibile problem, not a yaml problem.
<leitz> It's a yaml problem when whitespace changes the meaning.
<leitz> Well, not problem, just the way it is.
<dminuoso> leitz: you could go with s-expressions :D
<leitz> I use other experssions when dealing with Ansible error messages. :)
<dminuoso> leitz: My point is, its really hard to screw up s-exps
<dminuoso> leitz: anyway. inifile is a gem that lets you parse ini style config files
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rabajaj has joined #ruby
guille-moe has quit [Quit: guille-moe]
duckpuppy has quit [Ping timeout: 240 seconds]
guille-moe has joined #ruby
cschneid has joined #ruby
<leitz> Eh...I think I'll write a simple parser. I don't see a lot of nested variables needed for my nefarious plans.
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Papierkorb has joined #ruby
Papierkorb has left #ruby ["Konversation terminated!"]
tvw has joined #ruby
cschneid has quit [Ping timeout: 260 seconds]
<Bish> if i use $stderr.puts, how do i know i am not actually using kernel#puts
jottr has joined #ruby
kliq has joined #ruby
<Bish> i don't, right?
cliq has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
tomphp has joined #ruby
kliq has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
sanscoeur has joined #ruby
<phaul> you could override puts in a module that you prepend on Kernel, set global state, assert or whatever, then you can see if $stderr.puts triggers it
<dminuoso> leitz: If you want something custom, use s-exprs
<dminuoso> leitz: They are freaking easy to parse, and extremely powerful at the same time.
<dminuoso> it lets you scale way beyond a simple `a=b` pattern, but in a way that is almost impossible to screw up
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dhollinger has quit [Ping timeout: 248 seconds]
Guest77684 has quit [Quit: Leaving]
dhollinger has joined #ruby
<Bish> are there things sexp can't do?
sanscoeur has quit [Ping timeout: 248 seconds]
<dminuoso> Bish: that equals to "are there things that emacs cant do" - the answer is no =P
jenrzzz has joined #ruby
guille-moe has quit [Quit: guille-moe]
guille-moe has joined #ruby
<Bish> you and your emacs
DTZUZO has quit [Ping timeout: 256 seconds]
<Bish> can i use WHEN iwith an array?
<Bish> >> case 1;when [1,2];"hello";
<ruby[bot]> Bish: # => /tmp/execpad-abb19c9cfd1d/source-abb19c9cfd1d:3: syntax error, unexpected keyword_rescue, expecting ...check link for more (https://eval.in/975680)
<Bish> >> case 1;when [1,2];"hello";end;
<ruby[bot]> Bish: # => nil (https://eval.in/975681)
<Bish> :(
tomphp has joined #ruby
alfiemax has joined #ruby
venmx has joined #ruby
<Bish> how does one do that?
<Bish> >> case 1;when *[1,2];"hello";end;
<ruby[bot]> Bish: # => "hello" (https://eval.in/975682)
<Bish> ha
<dminuoso> >> case; when [1,2].include?(1); "hello" ;end
<ruby[bot]> dminuoso: # => "hello" (https://eval.in/975683)
bijan_ has joined #ruby
<dminuoso> Bish: ^- I prefer this style of case construct. #=== has no well defined meaning, because its defined to mean "whatever one might expect in a case statement"
<Bish> but that confuses me, because when uses ===
<dminuoso> i.e. if you ever have: `case a when b ... end` it requires knowing the type of `b`, and knowing what its implementation of `===` does.
<Bish> when when i have your construc tere
<Bish> i'd have
<Bish> 1 === true/false
<dminuoso> Bish: this style is just a clean `if/elseif`
<Bish> but if confuses me
<Bish> does when switch it's behaviour when it yields true/false ?
<Bish> or how exactly does that work
<Bish> because
<Bish> 1 === true
<Bish> >> 1 === true
<ruby[bot]> Bish: # => false (https://eval.in/975684)
<Bish> case/when *
<dminuoso> Bish: let me show you
<Bish> afaik when does check the cased expression with ===.. but not if it's true/false?
dr3w_ has joined #ruby
<dminuoso> I just refuse to play the #=== game, because it requires knowing the _types_ and the implementations.
<Bish> well i know that works, but i don.t know why
<Bish> afaik it always does === (whatever that implementation of #===)
<Bish> except for true/false values
guille-moe has quit [Ping timeout: 248 seconds]
<dminuoso> Bish: its just an if/else if/else if/else
<Bish> yeah but what is behind the "if" differs
<dminuoso> not really
<Bish> well.. it has to
<dminuoso> Bish: why does it have to?
alfiemax has quit [Remote host closed the connection]
<Bish> because what you say is true
<Bish> when *[1,2] wouldn't work
<dminuoso> * is fucking magic
<dminuoso> asm>> case when 1.even? then "1" else "2"
<Bish> i don't think so... i think my explaination fits it really well.. tell me where if i am wrong
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/975689
<dminuoso> asm>> case when 1.even? then "1" else "2" end
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/975690
<Bish> when does casedExpression == whenExpression
<dminuoso> Bish: see how its just an if?
<Bish> i know.. ofcourse it is an if internally
<dminuoso> asm>> case; when 1.even? then "1"; when 1.odd? then "2"; else "3" end
<ruby[bot]> dminuoso: I have disassembled your code, the result is at https://eval.in/975691
<Bish> asm>> case 1;when *[1,2] then "lol";end;
<ruby[bot]> Bish: I have disassembled your code, the result is at https://eval.in/975692
Strepsils has joined #ruby
alfiemax has joined #ruby
<Bish> the fuck is checkmatch
<dminuoso> Bish: the second you pass something to `case` it becomes this weird mess of polymorphic pattern matching
sidx64 has quit [Read error: Connection reset by peer]
sidx64 has joined #ruby
<Bish> asm>> 1 === [1]
<ruby[bot]> Bish: I have disassembled your code, the result is at https://eval.in/975697
<Bish> odd, case when is really weird
<dminuoso> Bish: checkmatch basically invokes #===
ryan_ford has quit [Ping timeout: 265 seconds]
<Bish> i will just live with it
<Bish> but i like *[...] more than includes in a when
<Bish> because WHEN is some sort of matching.. if i was about to #include? i would if/elif
<Bish> elsif*
WhereIsMySpoon has joined #ruby
mikecmpbll has joined #ruby
<dminuoso> Bish: like I said, #=== incurs a large mental overheadl
<dminuoso> you cant quickly glance at the code and understand what it does
<dminuoso> You need to _know_ the types involved, and _know_ the #=== implementation of those types
duckpuppy has joined #ruby
ryan_ford has joined #ruby
<dminuoso> Bish: And *[1,2] is even more bizarre. I dont think many rubyists will immediately know what that does when they gloss over your code.
* leitz heads off to work.
leitz has quit [Quit: Nappy time]
xuyuheng has quit [Ping timeout: 240 seconds]
duckpuppy has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
terens has joined #ruby
erlend has quit [Ping timeout: 256 seconds]
erlend has joined #ruby
cdg has joined #ruby
<WhereIsMySpoon> the fuck
cliq has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 260 seconds]
venmx has quit [Ping timeout: 246 seconds]
james__ has joined #ruby
cdg has quit [Ping timeout: 276 seconds]
venmx has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schneider has quit [Ping timeout: 240 seconds]
sidx64 has joined #ruby
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has quit []
amatas has joined #ruby
WhereIsMySpoon has quit [Quit: WhereIsMySpoon]
mtkd has joined #ruby
sanscoeur has joined #ruby
gregf_ has joined #ruby
sanscoeur has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
ramfjord has joined #ruby
psychicist__ has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
jimmylu2333-fedo has joined #ruby
Azure has quit [Read error: Connection reset by peer]
amelliaa has joined #ruby
xuyuheng has joined #ruby
Azure has joined #ruby
ramfjord has quit [Ping timeout: 268 seconds]
schneider has joined #ruby
amatas_ has joined #ruby
amatas has quit [Ping timeout: 240 seconds]
amatas_ is now known as amatas
venmx has quit [Ping timeout: 256 seconds]
alfiemax has quit [Remote host closed the connection]
venmx has joined #ruby
minimalism has quit [Quit: minimalism]
schneider has quit [Ping timeout: 256 seconds]
amatas has quit [Read error: Connection reset by peer]
stoffus has quit [Ping timeout: 260 seconds]
amelliaa has quit [Quit: -]
alfiemax has joined #ruby
stoffus has joined #ruby
schneider has joined #ruby
alfiemax has quit [Remote host closed the connection]
xuyuheng has quit [Quit: Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
ferr has joined #ruby
weaksauce has quit [Ping timeout: 260 seconds]
Burgestrand has quit [Quit: Closing time!]
jamesaxl has quit [Read error: Connection reset by peer]
duckpuppy has quit [Ping timeout: 264 seconds]
jamesaxl has joined #ruby
tomphp has joined #ruby
duckpuppy has joined #ruby
tomphp has quit [Client Quit]
ferr has left #ruby ["WeeChat 2.1"]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nemesit|znc has quit [Ping timeout: 255 seconds]
workmad3 has joined #ruby
karapetyan has quit [Remote host closed the connection]
Papierkorb has joined #ruby
Cavallari has joined #ruby
Papierkorb has left #ruby [#ruby]
WhereIsMySpoon has joined #ruby
sidx64 has joined #ruby
sidx64 has quit [Client Quit]
tomphp has joined #ruby
_insomniac has quit [Quit: WeeChat 2.0.1]
raynold has quit [Quit: Connection closed for inactivity]
Nobun has joined #ruby
nemesit|znc has joined #ruby
<Nobun> Any hint how to properly debug an application embedding ruby?
<Nobun> this is my application code: http://dpaste.com/17CVBA7
ldnunes has joined #ruby
<Nobun> and this is the ruby file I tested: http://dpaste.com/2P62H3Y
mrBen2k2k2k___ has quit [Ping timeout: 256 seconds]
<Nobun> the application encounter a sort of segmentation fault, with a VERY LOOOOONG message
jottr has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
Psybur__ has joined #ruby
alfiemax_ has joined #ruby
sanscoeur has joined #ruby
imode has joined #ruby
shuforov has quit [Ping timeout: 268 seconds]
sidx64 has joined #ruby
sanscoeur has quit [Ping timeout: 264 seconds]
sidx64 has quit [Client Quit]
schneider has joined #ruby
sidx64 has joined #ruby
Psybur_ has joined #ruby
sidx64 has quit [Client Quit]
Psybur__ has quit [Ping timeout: 240 seconds]
james__ has quit [Quit: This computer has gone to sleep]
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bijan_ has joined #ruby
sidx64 has joined #ruby
AJA4350 has joined #ruby
sidx64 has quit [Client Quit]
sundhell_away is now known as sundhell
bsamorim has joined #ruby
shuforov has joined #ruby
alfiemax_ has quit [Remote host closed the connection]
nowhere_man has joined #ruby
sidx64 has joined #ruby
alfiemax has joined #ruby
sidx64 has quit [Client Quit]
roca has joined #ruby
n0m4d1c has joined #ruby
alfiemax has quit [Ping timeout: 256 seconds]
WhereIsMySpoon has quit [Quit: WhereIsMySpoon]
conta1 has joined #ruby
conta has quit [Ping timeout: 276 seconds]
conta1 is now known as conta
Burgestrand has joined #ruby
John_Ivan has joined #ruby
sidx64 has joined #ruby
perzival has joined #ruby
nowhereman_ has joined #ruby
nowhere_man has quit [Ping timeout: 264 seconds]
erlend has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
erlend has joined #ruby
John_Ivan has quit [Read error: Connection reset by peer]
Mortomes|Work has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 256 seconds]
pd has joined #ruby
pd is now known as Guest53066
Creatornator has joined #ruby
bsamorim has quit [Ping timeout: 240 seconds]
gnufied has joined #ruby
shuforov has quit [Ping timeout: 260 seconds]
jottr has joined #ruby
Psybur_ has quit [Ping timeout: 256 seconds]
mtkd has quit [Ping timeout: 260 seconds]
mtkd has joined #ruby
sanscoeur has joined #ruby
ogres has joined #ruby
rsh has joined #ruby
sanscoeur has quit [Ping timeout: 268 seconds]
shuforov has joined #ruby
riotjoe has joined #ruby
<dminuoso> Nobun: By studying how the entirety of ruby works (from the initialization process, to the ruby object model, and the GC), and then using a debugger.
<dminuoso> Nobun: You wanted to embed full ruby, be prepared to suffer the consequences.
riotjones has quit [Ping timeout: 256 seconds]
Bish has quit [Read error: No route to host]
jottr has quit [Ping timeout: 245 seconds]
<Nobun> dminuoso: yeah. I saw. But it is my best choice for dependency build
<Nobun> however this first problem was solved. Don't know why but erasing corevxa_rubylib function will solved the issue
vondruch_ has joined #ruby
<Nobun> I instead changed the approach and setted rubyvxa_rubylib as a global ruby variable
<Nobun> that way (with the same code) the segmentation fault problem was solved.
<dminuoso> Nobun: If you prefer to play "plug the leaks" by randomly doing things...
<dminuoso> Nobun: That does not mean the problem is solved.
<dminuoso> Nobun: Do you know when segmentation faults arise?
vondruch has quit [Ping timeout: 248 seconds]
vondruch_ is now known as vondruch
<Nobun> I mean THAT problem is solved
<dminuoso> Nobun: No it does not.
<Nobun> dminuoso: yeah. This is why I executed script more than once
<dminuoso> Nobun: It just means it's not crashing anymore. Doesn't mean the problem is solved.
<dminuoso> Nobun: What does "segfault" mean?
<Nobun> it is a problem of memory allocation (a memory address is not anymore valid)
<dminuoso> not quite/
<Nobun> however I didn't have properly a SISVEG, but a core dump with a long message on ruby side
<dminuoso> its not a problem of memory allocation.
<dminuoso> Nobun: it is a proper sigsegv.
<Nobun> ok
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Nobun> I always thinked that segmentation faults are related to memory management (or garbage collectors). Do I miss something?
<dminuoso> Nobun: segmentation faults arise from trying to access a memory page for which the kernel has no mapping (for your process)
<dminuoso> Nobun: almost anything could be the cause
<dminuoso> pointer arithmetic gone wrong
<dminuoso> accessing freed memory
bijan_ has joined #ruby
<dminuoso> double freeing memory
<dminuoso> buffer overflows
<dminuoso> Nobun: now your code may *still* be misbehaving, but perhaps it doesn't lead to a memory access in invalid memory regions
<dminuoso> so perhaps it corrupts the rubyvm in other ways
<Nobun> it is not impossible. Also becouse ruby is not the only language I embed, but I embed ruby together with python and lua.
crankharder has quit [Ping timeout: 240 seconds]
Guest53066 has quit [Remote host closed the connection]
<dminuoso> Nobun: understand how the segmenation fault arises, determine the actual cause, and then fix the underlying problem.
<Nobun> However I can say that usually a segmentation fault will happen after less than 10 tries. I mean in practical test I did in past (not with ruby specifically) when a segmentation fault problem happened, it showed not exactly randomly (even if not exactly happens at the point where the actual problem is located)
Guest53066 has joined #ruby
<dminuoso> Nobun: again, its not proof of anything.
roca has quit [Quit: roca]
<dminuoso> Nobun: determine the _CAUSE_ of the segmentation fault
<Nobun> dminuoso: I had a speculation. I think that doing a c++ operation on ruby Kernel side (global function should be added there, if I understood the problem) probably could explain the original issue.
Guest53066 has quit [Max SendQ exceeded]
<dminuoso> Nobun: If you embed ruby, you either need to get ready to understand the ruby object model and the garbage collector so you can pinpoint the cause for the crash - or find a different hobby.
<Nobun> dminuoso: I never been able to be sure about the CAUSE. Usually with segmentation fault I try to trace gdb and do experiments until things are fine.
jcalla has joined #ruby
Guest53066 has joined #ruby
<dminuoso> Nobun: If that's your debugging technique then I have better things to do.
<dminuoso> Nobun: for starters: start with the very cpu instruction that created the page fault
<dminuoso> is it a null pointer? or some garbage address?
<Nobun> dminuoso: it is only becouse I am a non-professional programmer. All I learnt I learnt by myself. But if you can show me a nicer way to approach to debugging, I will be happy to hear.
<dminuoso> what memory address did this
<dminuoso> once you have determined that, figure out what code path you are in
anisha_ has quit [Quit: This computer has gone to sleep]
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Nobun> I mean... I use gdb as debugger (I usually use breakpoints to try to guess where problems could be located. Even if it is not a very good way, hearing your words)
<dminuoso> Nobun: gdb is absolutely great, but experimentation is the most terrible way to fix things
<dminuoso> Nobun: I would look at the topmost stackframe first, and look at the very instruction that led to the problem.
<dminuoso> see if the address is 0x0 or some other address
<dminuoso> then I check the source code for that stack frame
<dminuoso> and use the assembly to correlate what exact part of the code line went wrong
tomphp has quit [Read error: Connection reset by peer]
<Nobun> dminuoso: I mean that not always breakpoints on gdb will actually crash to actual problem. You must do some try-and-guess, trying to understand what the problem is. I don't know, for example, how to interpret a memory address alone.
schneider has quit [Read error: Connection reset by peer]
karapetyan has quit [Remote host closed the connection]
<Nobun> unluckly I don't know ASM at all. Only C++
tomphp_ has joined #ruby
schneider has joined #ruby
<dminuoso> Nobun: its not really difficult. just switch to `layout asm` in gdb abd gist the output of the crash
<Nobun> the only thing I could manage is 0x0 that I now it means "null pointer"
SanguineAnomaly has quit [Quit: The Lounge - https://thelounge.chat]
<dminuoso> Nobun: (strictly speaking it might not, but on most regular implementations it does)
FrostCandy has joined #ruby
<dminuoso> so its likely that you crashed on some
anikras has joined #ruby
<Nobun> well but now, if I cannot reproduce the problem (i mean with the new code) how could I verify what went wrong to gdb? should I re-write the original (bugged) code?
SanguineAnomaly has joined #ruby
<dminuoso> Nobun: the core dump that ruby produces might contain enough information
<dminuoso> do you have one at hand?
<anikras> hello
<Nobun> I am afraid it was deleted.
<anikras> i am following this guide, and a i am on Step 4 https://github.com/DMPRoadmap/roadmap/wiki/Upgrading-from-DMPonline_v4
<anikras> i don't have a rake migrate:init_plan_visibility
<anikras> or rake upgrade:v0_3_3
<anikras> I search this commands with rake -T and it isn't
<Nobun> the best thing is to try to re-write the original code and paste the original core dump informations
<dminuoso> Nobun: You can run your program with gdb
<dminuoso> Nobun: if the debugger is attached, then the moment the process receives the SIGSEGV signal the debugger will break
<Nobun> yeah I am rebuilding the code with the original solution (with the issue) and try to run it with gdb (it is compiled with debugging flags, so no problem on using gdb)
<dminuoso> Nobun: Just keep in mind that there's a category of bugs called Heisenbugs that will not trigger when a debugger is attached. Those are particularly fun to debug.
desperek has joined #ruby
jeecht has joined #ruby
Guest53066 has quit [Remote host closed the connection]
cdg has joined #ruby
Guest53066 has joined #ruby
jeecht is now known as jecht
<Nobun> ok reintroducing the original code reproduced the problem. Now I pastebin the core dump (happened without calling gdb)
<Nobun> now I try to run it with gdb
<Nobun> this is only the stderr
<dminuoso> Nobun: Check the instruction at 0x7fcb5a137ca5 in your /usr/lib/x86_64-linux-gnu/libruby-2.3.so.2.3
<dminuoso> Nobun: also your ruby seems to be built without debugging symbols.
jrafanie has joined #ruby
<Nobun> but the stdout could be able to print the $corevxa_rubylib varible but not corevxa_rubylib2 function
<Nobun> dminuoso: hmm I am using the ruby library provided by ubuntu. But it should be used in the debugging
<Nobun> let me see my CmakeLists.txt
<Nobun> -DCMAKE_BUILD_TYPE=Debug
<dminuoso> Nobun: You still need debugging symbols for that.
<Nobun> so it should use the debugging version of every library found with find_package()
<dminuoso> Perhaps Ubuntu doesn't ship those by default? I have no idea.
<Nobun> strange, since I installed development version
<Nobun> it should have both and cmake should link to the debugging with the flag I posted some lines ago
<Nobun> let me see what happens with VERBOSE build
<Nobun> it seems you are right. For some strange reasons it links to standard libraries and not debug ones as expected.
drale2k_ has joined #ruby
<Nobun> and not only with ruby, also with qt
<dminuoso> Nobun: Personally I'd not use systems ruby anyway. Built your own: it's simple and fast.
<Nobun> dminuoso: yeah but building ruby means using ruby to build ruby wich it seems very strange to me
<dminuoso> Nobun: thats an internal process
<dminuoso> Nobun: (it does not use an external ruby)
<Nobun> yeah but it is strange. Becouse ruby is a dependency in order to build ruby.
<dminuoso> Nobun: no it is not.
<Nobun> well in Ubuntu 14.04 forced me to install ruby in order to be allowed to compile it.
ramfjord has joined #ruby
<dminuoso> Nobun: the ruby Makefile will bootstrap that first miniruby (as it is called) on its own
<dminuoso> Nobun: I have no idea why Ubuntu does it that way.
<dminuoso> Nobun: But I guarantee: if you compile yourself (either manually or through ruby-install), you will not need an external ruby
<Nobun> however I must check what it happens exactly (compiling a custom qt would be very painful. And I like to see if I am missing something in my system)
<Nobun> dminuoso: don't know too. I don't remember exactly how I built ruby.
ryzokuken has joined #ruby
<Nobun> however at first I investigate my system before building anything
<Nobun> then I will build ruby etc
anikras has quit [Quit: Ex-Chat]
<Nobun> dminuoso: out of curiosity: how did you understand that debugging symbols were disabled?
n0m4d1c has quit [Remote host closed the connection]
<dminuoso> Nobun: the stacktrace didn't have symbol names/source locations for the frames fro ruby
<Nobun> ok
<dminuoso> Nobun: compare: /usr/lib/x86_64-linux-gnu/libruby-2.3.so.2.3 [0x7fcb5a137ca5]
<dminuoso> Nobun: or wait...
<dminuoso> Nobun: oh: /usr/lib/x86_64-linux-gnu/libruby-2.3.so.2.3(rb_load_protect+0xb5) [0x7fcb5a01ac15]
<dminuoso> Nobun: looks as if I was a bit too hasty
ramfjord has quit [Ping timeout: 255 seconds]
<Nobun> that is strange: libruby is only that one? I mean... both for debug and release?
<Nobun> I mean. I am expecting to see librubyd or something similar
<dminuoso> Nobun: well you can also debug with a release build.
<dminuoso> Nobun: debug means one of two things: generating debug symbols or disabling certain optimizations
<dminuoso> Nobun: however, you can have optimized builds with debugging symbols
tomphp_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nobun> dminuoso: let me paste you my link flags (they will be displayed as one-line-only sorry)
andikr has quit [Remote host closed the connection]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
govg has joined #ruby
alfiemax has joined #ruby
<Nobun> I say "no debugging symbols" becouse I expected to be linked with debugging libraries (qt libraries for debug should end with "d" for example, and they're not)
Sina has quit [Quit: Connection closed for inactivity]
tomphp has joined #ruby
sanscoeur has joined #ruby
karapetyan has joined #ruby
jimmylu2333-fedo has quit [Ping timeout: 256 seconds]
jottr has joined #ruby
WhereIsMySpoon has joined #ruby
DTZUZO has joined #ruby
cyberg has joined #ruby
sanscoeur has quit [Ping timeout: 252 seconds]
cdg has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 255 seconds]
cdg has joined #ruby
alfiemax has quit [Remote host closed the connection]
<dminuoso> Nobun: well run this through gdb
cdg has quit [Ping timeout: 245 seconds]
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
nfsnobody has quit [Ping timeout: 245 seconds]
voxxit has quit [Ping timeout: 248 seconds]
jottr has quit [Ping timeout: 252 seconds]
nfsnobody has joined #ruby
voxxit has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
unreal has joined #ruby
imode has quit [Ping timeout: 263 seconds]
gray_-_wolf has joined #ruby
Creatornator has joined #ruby
ltt has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
Erlingur has joined #ruby
Rapture has joined #ruby
Inoperable has quit [Quit: ZNC 1.6.6 - http://znc.in]
Inoperable has joined #ruby
sundhell is now known as sundhell_away
n0m4d1c has joined #ruby
Erlingur has quit [Remote host closed the connection]
nowhereman_ has quit [Ping timeout: 256 seconds]
bijan_ has joined #ruby
Erlingur has joined #ruby
unreal has quit [Read error: Connection reset by peer]
<Nobun> dminuoso: ok I will sorry for late reply but I had to go out for a while
dionysus69 has quit [Ping timeout: 264 seconds]
nfsnobody has quit [Ping timeout: 248 seconds]
<Nobun> dminuoso: Thread 1 "vxapo" received signal SIGSEGV, Segmentation fault.
<Nobun> 0x00007ffff74440f6 in ?? () from /usr/lib/x86_64-linux-gnu/libruby-2.3.so.2.3
<Nobun> this is what gdb says
<Nobun> it seems that debugging symbols are all whipped out :(
suukim has joined #ruby
cagmz has joined #ruby
nfsnobody has joined #ruby
imode has joined #ruby
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cagmz has quit [Read error: Connection reset by peer]
cagmz has joined #ruby
unreal has joined #ruby
mtkd has quit []
cdg has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mtkd has joined #ruby
ltt has joined #ruby
cdg has quit [Remote host closed the connection]
bijan_ has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dminuoso> Nobun: Just build ruby yourself =)
<dminuoso> Nobun: It takes maybe 1-2 minutes to compile (if you have an SSD)
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nobun> dminuoso: no SSD here and a slow pc. However I will follow your suggestion. At least for developing state it could be the best choice.
chouhoulis has joined #ruby
<Nobun> however I will use 2.3.0 since ubuntu use 2.3.SOMETHING_ELSE in order to be sure that the code will be compatible with my distro ruby version
<dminuoso> Well it cant be worse than maybe 4-5 minutes on an older machine
cdg has joined #ruby
<Nobun> yeah. I don't think it can be as painful as trying to compile qt after all :P (I don't remember how much time required with ubuntu 14.04, but I remember it should be not so much time)
chouhoulis has quit [Remote host closed the connection]
<havenwood> if you have multiple cores, the `-j` flag with make speeds things up.
<Nobun> dminuoso: ah it is possible that in my case ruby required an external ruby since I compiled from github source?
chouhoulis has joined #ruby
<havenwood> -j for as many as possible, or I often use -j8
<Nobun> havenwood: I can use -j2 at max and I never see so much difference
<havenwood> make -j64
<Nobun> havenwood: it depends of processor. You cannot do make -j64 without crash :P
<havenwood> i just want a new processor ;-)
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nobun> cloning github...
<havenwood> skipping generating docs speeds it up a lot
netherwolfe has joined #ruby
<Nobun> :)
robscomputer has joined #ruby
cyberg has quit [Ping timeout: 240 seconds]
erlend has quit [Ping timeout: 246 seconds]
oleo has joined #ruby
unreal has quit [Ping timeout: 260 seconds]
cyberg has joined #ruby
erlend has joined #ruby
kn-928 has joined #ruby
unreal has joined #ruby
<Nobun> dminuoso: did you use any particular configure flag in order to ensure to build "debug" version of ruby? (I mean with debugging symbols)
gizmore has quit [Quit: KVIrc 4.9.3 Aria http://www.kvirc.net/]
gizmore has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Psybur_ has joined #ruby
rippa has joined #ruby
sanscoeur has joined #ruby
John_Ivan has joined #ruby
bijan_ has joined #ruby
<darix> Nobun: CFLAGS="-g $OTHERCFLAGS" is a good start
coderphive has joined #ruby
Erlingur has quit [Quit: Textual IRC Client: www.textualapp.com]
<Nobun> darix when you compile autotools package (like ruby) you cannot add manually flags, but you should use "configure" options
ltt has joined #ruby
cschneid has joined #ruby
bijan_ has quit [Read error: Connection reset by peer]
imode has quit [Ping timeout: 264 seconds]
sanscoeur has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
bodgix has quit [Quit: ZNC 1.6.5 - http://znc.in]
roca has joined #ruby
xall_ has joined #ruby
<dminuoso> Nobun: It's build with debugging symbols out of the box.
<darix> Nobun: CFLAGS="-g" ./configure
<darix> Nobun: I package ruby for living. trust me on that part
<darix> dminuoso: -g is inthe default CFLAGS?
<dminuoso> darix: Yes.
drale2k_ has joined #ruby
<dminuoso> darix: -ggdb3 is includeed by default
<darix> aha
nowhereman_ has joined #ruby
<Nobun> thank dminuoso and darix. I will re-compile ruby than
<dminuoso> Nobun: Like I said, no need to recompile. You just configure `./configure --disable-install-rdoc --disable-install-doc`
<dminuoso> make
<dminuoso> and thats it
sidx64 has joined #ruby
amelliaa has joined #ruby
<Nobun> needed to recompile becouse otherwhise -g will not have effect to previously builded source
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dminuoso> Nobun: -ggdb3 is included by default.
Cavallari has quit [Quit: Cavallari]
<Nobun> yeah bit I have to rebuild. I deleted the previous build :P
dionysus69 has joined #ruby
nowhereman_ has quit [Ping timeout: 265 seconds]
jottr has quit [Ping timeout: 265 seconds]
nowhereman_ has joined #ruby
<Nobun> ok builded and installed in a custom prefix (under home)
schneider has quit [Read error: Connection reset by peer]
schneider has joined #ruby
<Nobun> now I have to check how to allow cmake to recognize it instead of the default system library
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
erlend has quit [Ping timeout: 256 seconds]
duckpuppy has joined #ruby
erlend has joined #ruby
imode has joined #ruby
Burgestrand has quit [Quit: Closing time!]
nowhereman_ has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
Fysicus has joined #ruby
jimmylu2333-fedo has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
nowhereman_ has quit [Read error: Connection reset by peer]
Fysicus is now known as fysicus
xall_ has quit [Ping timeout: 246 seconds]
fysicus is now known as Fysicus
nowhereman_ has joined #ruby
ryan_ford has quit [Ping timeout: 256 seconds]
terens has quit [Quit: Leaving]
<Nobun> cmake cannot find the new builded library :(
<Nobun> even if I tried to specify directory. Perhaps it is related to pkg-config directories...
ruby_ has joined #ruby
<ruby_> what is the purpose of the do |r| ? from what i've read this syntax can be used for iterate over loops but i dont see how it's being used here
mrBen2k2k2k has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
imode has quit [Ping timeout: 240 seconds]
<ruby_> anyone knows? :(
<ruby_> really curious
konsolebox has quit [Ping timeout: 264 seconds]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nobun> ruby_: the code you pasted is not enough to reply you. This becouse it uses python decorators
nowhereman_ has quit [Read error: Connection reset by peer]
<Nobun> @app.route("/record", methods=['GET', 'POST'])
<Nobun> you must investigate what this decorator exactly does
nowhereman_ has joined #ruby
jottr has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
nowhereman_ has joined #ruby
<ruby_> Nobun: i wouldn't think the app decorate would have anything to do with this though
<ruby_> Nobun: forgetting the python code aside, what does it mean specifically for the ruby code i posted?
<ruby_> to have do |r|
<Nobun> you can see |r| as current element in the iteration
cagomez has joined #ruby
mgraf has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
jottr has quit [Ping timeout: 248 seconds]
cagomez has joined #ruby
<Nobun> example: (0..7).each do |i|
<Nobun> in that case i will be the current value in the iteration in the range 0..7
konsolebox has joined #ruby
noobineer has joined #ruby
noobineer has quit [Max SendQ exceeded]
ryan_ford has joined #ruby
jottr has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
<Nobun> still having troubles on building the application to the new ruby library (I cannot setup cmake properly in order to find and configure custom ruby)
<Nobun> so sorry for delay
mlehrer has quit [Ping timeout: 256 seconds]
[Butch] has joined #ruby
mgraf has quit [Quit: Lost terminal]
aupadhye has quit [Ping timeout: 240 seconds]
desperek has quit [Quit: xoxo]
sanscoeur has joined #ruby
WhereIsMySpoon has quit [Quit: WhereIsMySpoon]
robscomputer has joined #ruby
<Nobun> it seems it compiled ONLY libruby static version
<Nobun> I cannot find libruby-2.3.0.so or similar
sundhell_away is now known as sundhell
schneider has quit [Ping timeout: 240 seconds]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jottr has quit [Ping timeout: 256 seconds]
WhereIsMySpoon has joined #ruby
sanscoeur has quit [Ping timeout: 240 seconds]
jcarl43 has joined #ruby
<Nobun> I can confirm. No libruby...so but only .a
<Nobun> very strange
<Nobun> any suggestion?
einarj has joined #ruby
marr has quit [Remote host closed the connection]
ltt has joined #ruby
Creatornator has joined #ruby
tolerablyjake has joined #ruby
graft has quit [Quit: Lost terminal]
stoffus has quit [Quit: leaving]
nowhereman_ has quit [Read error: Connection reset by peer]
shuforov has quit [Ping timeout: 260 seconds]
riotjoe has quit [Remote host closed the connection]
<Nobun> and moreover it didn't install config.h
Guest53066 has quit [Read error: Connection reset by peer]
riotjones has joined #ruby
Guest53066 has joined #ruby
<Nobun> I did CFLAGS="-g" ./configure --prefix=/home/user/programmi/ruby
schneider has joined #ruby
<Nobun> than make and make install
nowhereman_ has joined #ruby
sanscoeur has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
<al2o3-cr> >> ?\c == $/
<ruby[bot]> al2o3-cr: # => false (https://eval.in/976015)
<al2o3-cr> >> $/ == ?\c
<ruby[bot]> al2o3-cr: # => (NilClass) ...check link for more (https://eval.in/976016)
nowhereman_ has joined #ruby
aufi has quit [Ping timeout: 264 seconds]
stormpack has joined #ruby
<al2o3-cr> that returns true with 2.5
schneider has quit [Ping timeout: 264 seconds]
duckpuppy has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
DTZUZO has quit [Quit: WeeChat 2.0]
chouhoul_ has joined #ruby
darkhanb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robscomputer has joined #ruby
aupadhye has joined #ruby
ReinH has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
WhereIsMySpoon has quit [Quit: WhereIsMySpoon]
nowhereman_ has joined #ruby
Dimik has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
amelliaa has quit [Quit: -]
xall_ has joined #ruby
schneider has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
ltt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
DTZUZO has joined #ruby
tolerablyjake has quit [Quit: Textual IRC Client: www.textualapp.com]
tolerablyjake has joined #ruby
xall_ has quit [Ping timeout: 240 seconds]
schneider has quit [Ping timeout: 256 seconds]
nowhereman_ has joined #ruby
jottr has joined #ruby
Guest53066 has quit [Read error: Connection reset by peer]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
guacamole has quit [Client Quit]
n0m4d1c has joined #ruby
conta has quit [Ping timeout: 240 seconds]
SanguineAnomaly has quit [Quit: The Lounge - https://thelounge.chat]
jottr has quit [Ping timeout: 256 seconds]
stormpack has quit [Quit: Leaving]
SanguineAnomaly has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
<Nobun> I compiled ruby enabling also shared library, but config.h again not installed. How to solve this issue?
nowhereman_ has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
nowhereman_ has quit [Read error: Connection reset by peer]
jottr has joined #ruby
<dminuoso> Nobun: Honestly, if you need handholding for every single bit with this, do you really think its a good idea to play with embedding ruby?
<dminuoso> It's just a thought ¯\_(ツ)_/¯
Strepsils has quit [Quit: Textual IRC Client: www.textualapp.com]
ramfjord has joined #ruby
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
karapetyan has quit [Remote host closed the connection]
kn-928 has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
perzival has quit [Ping timeout: 264 seconds]
karapetyan has joined #ruby
<Nobun> dminuoso: no finally I'm in on this issues, but adding some cflags
<Nobun> but even if I pass --enable-rpath in configure it seems that run-time cannot find shared library in my custom path during run
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has joined #ruby
WhereIsMySpoon has quit [Changing host]
<Nobun> I am trying to compile with static ruby now and see if it can compile successfully
schneider has joined #ruby
vondruch has quit [Remote host closed the connection]
vondruch has joined #ruby
<Nobun> as I figured I cannot use static library. Well... I will rebuild again and run with LD_PATH=
jottr has quit [Ping timeout: 260 seconds]
darkhanb has joined #ruby
vondruch has quit [Client Quit]
vondruch has joined #ruby
schneider has quit [Ping timeout: 265 seconds]
<Nobun> ok, dminuoso now I have a more verbose gdb
xall_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Nobun> dminuoso: http://dpaste.com/2J3FXDD
<Nobun> (I had to run with LD_LIBRARY_PATH)
conceivably has joined #ruby
<Nobun> dminuoso: when you can... this case I really need your help becouse debugging message is not understandable to me.
xall_ has quit [Ping timeout: 265 seconds]
ineb has quit [Ping timeout: 256 seconds]
sundhell is now known as sundhell_away
ineb has joined #ruby
xall_ has joined #ruby
kies has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby
<dostoyevsky> Is rails less popular these days? I was surprised that there are more people on #ruby than on #rails
<havenwood> dostoyevsky: Maybe Ruby is just more popular.
<havenwood> dostoyevsky: It's Rails on Ruby these days. ;-P
raynold has joined #ruby
chouhoul_ has quit [Ping timeout: 248 seconds]
roca_ has joined #ruby
shuforov has joined #ruby
<dostoyevsky> I started using ruby in 2001 and never really had much of an interest in rails, which emerged around 2006... but it was impossible to get a job as a ruby programmer, people thought the only ruby was rails
roca has quit [Ping timeout: 264 seconds]
<WhereIsMySpoon> :D
roca_ is now known as roca
perzival has joined #ruby
<dionysus69> is this concatenation in php ? 'Authorization' => 'Bearer ' . $apiToken, the dot i mean
<havenwood> dionysus69: This is the Ruby channel!
schneider has joined #ruby
<dionysus69> xD
crankharder has joined #ruby
<dionysus69> i am translating that to ruby xD
<WhereIsMySpoon> i feel dirty
kies has joined #ruby
<dostoyevsky> I learned many programming languages but never PHP, makes me kind of proud :)
<havenwood> dionysus69: Type `php -a` then try: echo 'dio' . 'nysus';
<havenwood> dionysus69: Isn't there a PHP channel?
<dionysus69> there is but I dont wanna go in there
<dionysus69> bad aura :D
<dionysus69> too many depressed people lol
perzival has quit [Ping timeout: 260 seconds]
ruby_ has quit [Quit: Page closed]
roca_ has joined #ruby
perzival has joined #ruby
jottr has joined #ruby
roca has quit [Ping timeout: 256 seconds]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<dostoyevsky> dionysus69: try ##programming
<dionysus69> I found it by now yes it was concatenation :D
<dionysus69> just wanted to double check :)
roca_ is now known as roca
<dionysus69> someone had to try hard to make string concatenation non-intuitive lmfo
schneider has quit [Ping timeout: 256 seconds]
roca is now known as lroca
SeepingN has joined #ruby
Cavallari has joined #ruby
erlend has quit [Ping timeout: 240 seconds]
marr has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
adam12 has left #ruby ["Leaving..."]
erlend has joined #ruby
<dminuoso> havenwood: Is Rails similar to Ruby?
marxarelli|afk has quit [Quit: Textual IRC Client: www.textualapp.com]
<dminuoso> Why is it called Ruby on Rails when you dont need to know any Ruby?
* dminuoso ducks
<WhereIsMySpoon> xD
marxarelli has joined #ruby
<havenwood> Ruby on Planes
<havenwood> A gem too precious to scuttle around the country on Rails.
<tolerablyjake> havenwood Planes on Ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
riotjones has quit [Ping timeout: 263 seconds]
<WhereIsMySpoon> nice
jottr has quit [Ping timeout: 264 seconds]
Psybur_ has quit [Remote host closed the connection]
Psybur_ has joined #ruby
xall_ has quit [Quit: xall_]
perzival has quit [Ping timeout: 256 seconds]
WhereIsMySpoon has quit [Quit: WhereIsMySpoon]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: inabit. zz.]
amatas has joined #ruby
eckhardt has joined #ruby
perc1val has joined #ruby
tpendragon has quit [Ping timeout: 276 seconds]
mitsuhiko has quit [Ping timeout: 276 seconds]
tuelz has quit [Ping timeout: 276 seconds]
Klumben has quit [Ping timeout: 276 seconds]
justache has quit [Read error: Connection reset by peer]
zipkid has quit [Read error: Connection reset by peer]
r3m has quit [Quit: ZNC - http://znc.in]
zipkid has joined #ruby
amitchellbullard has quit [Ping timeout: 276 seconds]
r3m has joined #ruby
sparr has quit [Changing host]
sparr has joined #ruby
rikai has quit [Read error: Connection reset by peer]
marius has quit [Read error: Connection reset by peer]
raynold has quit [Ping timeout: 276 seconds]
nrk has quit [Ping timeout: 276 seconds]
justache has joined #ruby
marius has joined #ruby
tuelz has joined #ruby
szulak has quit [Ping timeout: 276 seconds]
rikai has joined #ruby
tpendragon has joined #ruby
nrk has joined #ruby
amitchellbullard has joined #ruby
mitsuhiko has joined #ruby
szulak has joined #ruby
raynold has joined #ruby
perzival has joined #ruby
schneider has joined #ruby
kies has quit [Ping timeout: 256 seconds]
desnudopenguino has joined #ruby
<desnudopenguino> is anyone in here messing with AWS and serverless-ruby for lambda functions?
karapetyan has joined #ruby
schneider has quit [Ping timeout: 268 seconds]
ramfjord has joined #ruby
<havenwood> desnudopenguino: I've played with it.
einarj has quit [Remote host closed the connection]
<havenwood> desnudopenguino: CRuby static binary, JRuby and MRuby all work.
<havenwood> It still feels like a bit of a hack.
einarj has joined #ruby
jjaii9 has joined #ruby
<desnudopenguino> havenwood: do you have any good tips for getting things to work? i know it is a bit hacky still.
<havenwood> desnudopenguino: Which Ruby are you shooting for?
<desnudopenguino> which would you suggest?
Zaab1t has joined #ruby
<havenwood> desnudopenguino: Probably JRuby, hrmm.
<havenwood> desnudopenguino: Or you could try rumbda, with CRuby packaged via Traveling Ruby: https://github.com/kleaver/rumbda
perzival has quit [Quit: WeeChat 2.1]
perzival has joined #ruby
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
n008f4g_ has joined #ruby
<havenwood> desnudopenguino: I'd vote JRuby.
<havenwood> The .js shim for CRuby or MRuby seems hacky.
karapetyan has quit [Ping timeout: 276 seconds]
<desnudopenguino> https://github.com/stewartlord/serverless-ruby is what i am starting with, but i'm flexible.
einarj has quit [Ping timeout: 276 seconds]
Creatornator has joined #ruby
<havenwood> desnudopenguino: I haven't tried this recently, and I'm not sure if there's a nicer wrapper, but: https://github.com/c9katayama/aws-lambda-jruby
perc1val has quit [Quit: WeeChat 2.0.1]
<havenwood> There seem to be a variety of JRuby on Lambda strategies.
<desnudopenguino> havenwood: you're a godsend my friend. you've given me a path to go down at least (look into jruby aws lambda wrappers).
<havenwood> desnudopenguino: Yeah, that way seem nice, just because you're avoiding hacky shims.
jjaii9 has quit []
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
Klumben has joined #ruby
jottr has joined #ruby
Mike11 has quit [Quit: Leaving.]
aupadhye has quit [Ping timeout: 264 seconds]
<desnudopenguino> i haven't played with any of the alternative rubies yet.
perzival has quit [Ping timeout: 276 seconds]
<desnudopenguino> havenwood: are you familiar with how it would handle bundling gems? (c9katayama/aws-lambda-jruby that is)
<havenwood> desnudopenguino: I've only played with hello world, but I'd assume bundling your gems to a vendor/ location would work perfectly.
venmx has quit [Ping timeout: 248 seconds]
<havenwood> desnudopenguino: I haven't tried the plainprogrammer/aws-lambda-jruby repo, but that looks really simple if it works.
<havenwood> Just three jars and a little rake task.
achiu has joined #ruby
achiu has quit [Client Quit]
<havenwood> the jars need updating. ;-P
<havenwood> We should make a script that grabs latest versions and generates a JRuby Lambda project.
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
cdg has quit [Remote host closed the connection]
<desnudopenguino> havenwood: thanks i've got some stuff to look at now haha.
jottr has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
<desnudopenguino> how hard is it to gram those jars from somewhere to use?
<desnudopenguino> s/gram/grab
lroca is now known as roca
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ltt has joined #ruby
roca has left #ruby ["Good Bye"]
FrostCandy has quit []
bocaneri has quit [Remote host closed the connection]
<havenwood> desnudopenguino: i'd guess not too hard
ltt has quit [Ping timeout: 240 seconds]
ldepandis has joined #ruby
<havenwood> desnudopenguino: I'd say ask in #jruby
<desnudopenguino> ah, nice!
<desnudopenguino> i'll probably float over there shortly.
<havenwood> I don't know where to grab jruby-core.jar... is that jruby.jar?
<havenwood> Dunno
<desnudopenguino> i've no idea. i've heard about JRuby and CRuby before, and some of those other flavors, but never actually used them. today's going to be a long, but hopefully positively eventful day
mtkd has quit [Ping timeout: 268 seconds]
perzival has joined #ruby
mtkd has joined #ruby
claudiuinberlin has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
\void has joined #ruby
ledestin has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tolerablyjake has joined #ruby
tolerablyjake has quit [Client Quit]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
al2o3-cr has quit [Quit: WeeChat 2.0.1]
kapil___ has quit [Quit: Connection closed for inactivity]
dr3w_ has joined #ruby
desperek has joined #ruby
gr33n7007h has joined #ruby
gr33n7007h is now known as al2o3-cr
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
jottr has joined #ruby
tvw has quit [Remote host closed the connection]
weaksauce has joined #ruby
jimmylu2333-fedo has quit [Ping timeout: 240 seconds]
cdg has quit [Ping timeout: 245 seconds]
Creatornator has joined #ruby
alfiemax has joined #ruby
<desnudopenguino> well i got the c9katayama to build, now to write some code to deploy and see if it works
DTZUZU has quit [Read error: Connection reset by peer]
sidx64 has joined #ruby
DTZUZU has joined #ruby
ryan_ford has quit [Ping timeout: 264 seconds]
claudiuinberlin has joined #ruby
jottr has quit [Ping timeout: 240 seconds]
<havenwood> desnudopenguino: let me know
<havenwood> desnudopenguino: I did a code spike for downloading latest jars: https://gist.github.com/havenwood/a69b8f6a079711d16ec6a98d9acf7887
Fraeon has quit [Ping timeout: 240 seconds]
erciccione_[m] has left #ruby ["User left"]
minimalism has joined #ruby
<havenwood> (it's hacky)
Fraeon has joined #ruby
schneider has joined #ruby
<havenwood> hacky but works!
<havenwood> >.>
imode has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #ruby
<desnudopenguino> lol
shuforov has quit [Ping timeout: 260 seconds]
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<desnudopenguino> my stack deployed, let's see what happens when i try to run it. hahaha
<desnudopenguino> ...nope
perzival has quit [Ping timeout: 264 seconds]
<desnudopenguino> ah, it might be because of how i set things up...
dr3w_ has joined #ruby
za1b1tsu has joined #ruby
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryan_ford has joined #ruby
ramfjord has quit [Ping timeout: 264 seconds]
workmad3 has quit [Ping timeout: 276 seconds]
alfiemax has quit [Remote host closed the connection]
\void has quit [Remote host closed the connection]
ramfjord has joined #ruby
alfiemax has joined #ruby
crankharder has quit [Ping timeout: 240 seconds]
\void has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
exchgr has quit [Ping timeout: 246 seconds]
ramfjord has quit [Ping timeout: 276 seconds]
imode has quit [Quit: WeeChat 2.0.1]
Xeago has joined #ruby
alfiemax has quit [Ping timeout: 276 seconds]
erlend has quit [Ping timeout: 256 seconds]
ErhardtMundt has quit [Read error: Connection reset by peer]
ramfjord has joined #ruby
erlend has joined #ruby
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sidx64 has joined #ruby
exchgr has joined #ruby
ramfjord has quit [Ping timeout: 263 seconds]
ramfjord has joined #ruby
cagomez has quit [Remote host closed the connection]
guacamole has joined #ruby
guacamole has joined #ruby
guacamole has quit [Changing host]
suukim has quit [Quit: Konversation terminated!]
jottr has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
ramfjord has joined #ruby
n0m4d1c has quit [Remote host closed the connection]
ryan_ford has quit [Quit: WeeChat 1.4]
crankharder has joined #ruby
sameerynho has joined #ruby
sidx64_ has joined #ruby
mtkd has quit []
Psybur_ has quit [Ping timeout: 260 seconds]
ErhardtMundt has joined #ruby
sidx64 has quit [Ping timeout: 260 seconds]
cagomez has joined #ruby
cagomez has quit [Read error: Connection reset by peer]
cagomez has joined #ruby
yokel has quit [Remote host closed the connection]
mtkd has joined #ruby
amatas has quit [Quit: amatas]
jottr has quit [Ping timeout: 240 seconds]
FrostCandy has joined #ruby
sidx64 has joined #ruby
sidx64_ has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
mbeasley_ has joined #ruby
n0m4d1c has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
dinfuehr_ has joined #ruby
dinfuehr has quit [Ping timeout: 268 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
eckhardt has joined #ruby
robscomputer has joined #ruby
reber has quit [Read error: Connection reset by peer]
n0m4d1c has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 248 seconds]
mbeasley_ has quit [Quit: WeeChat 1.4]
WhereIsMySpoon has joined #ruby
yokel has quit [Ping timeout: 248 seconds]
yokel has joined #ruby
amelliaa has joined #ruby
\void has quit [Remote host closed the connection]
alfiemax has joined #ruby
rgb-one has joined #ruby
<rgb-one> hey
<rgb-one> > (0..1024).find { |i| !File.exist?("/tmp/.X11-unix/X#{i}") }
\void has joined #ruby
<rgb-one> how does one run eval here?
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rgb-one> !eval
<rgb-one> !eval (0..1024).find { |i| !File.exist?("/tmp/.X11-unix/X#{i}") }
<phaul> >> 'this is how'
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<ruby[bot]> phaul: # => "this is how" (https://eval.in/976199)
<rgb-one> >> (0..1024).find { |i| !File.exist?("/tmp/.X11-unix/X#{i}") }
<ruby[bot]> rgb-one: # => (https://eval.in/976200)
<rgb-one> Thanks
<phaul> np
tolerablyjake has joined #ruby
<rgb-one> On my system that command I pasted returns 18
<rgb-one> I don't know why though
<rgb-one> Not quite sure what that snippet is doing
alfiemax has quit [Ping timeout: 240 seconds]
<phaul> I don't know but a stab in the dark is that it tries to find the Xorg display number
John_Ivan has quit [Read error: Connection reset by peer]
<phaul> though then ENV['DISPLAY'] should be better for the same
<phaul> *if* it does that :)
<rgb-one> hmm
jamesaxl has quit [Quit: WeeChat 2.0.1]
yokel has quit [Ping timeout: 263 seconds]
cmhobbs has joined #ruby
<rgb-one> ENV['DISPLAY'] returns :0
<rgb-one> which makes sense to me
<cmhobbs> if i've built a gem via bundler ("bundle gem foo") and i want to add a new source file to it, do i simply create the file in lib/foo/myclass.rb and add "require "foo/myclass"" to the gemspec?
<cmhobbs> because i keep getting uninitialized constant there
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
alfiemax has joined #ruby
<cmhobbs> top of lib/foo/myclass.rb is "module Foo; class Myclass; ..."
<jecht> in my gems i have module Foo at the lib level
<jecht> lib/foo.rb
<cmhobbs> yeah, foo.rb is there
<jecht> and i require the class in there
<jecht> that has worked for me
<cmhobbs> alright, i added it to the gemspec because rspec was bitching about uninit constant
<cmhobbs> i probably have some path nonsense wrong
alfiemax has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 268 seconds]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jecht has quit [Quit: Leaving]
yokel has joined #ruby
<phaul> I don't see why you would want to add all source files with require to the gemspec. That shouldn't be needed. Only needed if the gemspec is using something that is defined in the source file. typically with autogenerated gem the SomeGem::VERSION that is auto generated in lib/somegem/version.rb
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<cmhobbs> i only did it because rspec was complaining
<cmhobbs> i had my test under spec/foo/myclass_spec.rb when it should've been spec/myclass_spec.rb
<cmhobbs> this resolved the issue
<cmhobbs> why spec/ doesn't mirror lib/, i will never know
alfiemax has joined #ruby
rgb-one has left #ruby ["Konversation terminated!"]
yokel has quit [Ping timeout: 260 seconds]
dr3w_ has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yokel has joined #ruby
alfiemax has quit [Ping timeout: 263 seconds]
troulouliou_dev has joined #ruby
eckhardt_ has joined #ruby
dionysus69 has quit [Ping timeout: 256 seconds]
robscomputer has joined #ruby
chouhoul_ has joined #ruby
eckhard__ has joined #ruby
jottr has joined #ruby
eckhardt has quit [Ping timeout: 246 seconds]
yokel has quit [Ping timeout: 268 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
clemens3 has joined #ruby
eckhardt_ has quit [Ping timeout: 248 seconds]
dr3w_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cdg has joined #ruby
jcalla has quit [Quit: Leaving]
tomphp has joined #ruby
<phaul> cmhobbs: rspec is fully flexible on folder layouts, this is a simple example https://github.com/phaul/befunge/tree/master/spec that even categorizes specs in integration / module folders.
FrostCandy has quit []
cdg_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
alfiemax has joined #ruby
chouhoulis has joined #ruby
yokel has joined #ruby
cdg has quit [Ping timeout: 256 seconds]
alfiemax has quit [Ping timeout: 246 seconds]
troulouliou_dev has quit [Quit: Leaving]
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
WhereIsMySpoon has quit [Ping timeout: 256 seconds]
jottr has quit [Ping timeout: 248 seconds]
yokel has quit [Read error: Connection reset by peer]
yokel has joined #ruby
ChaosBringer has joined #ruby
arne has joined #ruby
<arne> if i have a set of numbers [1,2,3,5,6,99,100]
<arne> how would i detect ranges like this becomes [1..3,5..6,99..100]
alfiemax has joined #ruby
<arne> i think i even asked that question before
<arne> each_cons and then ech if a.succ == b?
<havenwood> >> [1,2,3,5,6,99,100].chunk_while { |a, b| a.succ == b }.map(&:minmax).map { |min, max| min..max } # arne
<ruby[bot]> havenwood: # => [1..3, 5..6, 99..100] (https://eval.in/976251)
workmad3 has joined #ruby
Cavallari has quit [Quit: Cavallari]
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
alfiemax has quit [Ping timeout: 256 seconds]
<arne> yeah this was my try .sort.chunk_while { |a,b| a.succ == b }
<arne> that min max thingie is cool
chouhoul_ has joined #ruby
duckpuppy has quit [Ping timeout: 240 seconds]
ta__ has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 256 seconds]
yokel has quit [Ping timeout: 240 seconds]
\void has quit [Quit: So long, and thanks for all the fish.]
Creatornator has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
chouhoul_ has quit [Ping timeout: 240 seconds]
Azure has quit [Read error: Connection reset by peer]
sidx64 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has joined #ruby
alfiemax has joined #ruby
alex`` has quit [Quit: WeeChat 2.0.1]
alfiemax has quit [Ping timeout: 276 seconds]
yokel has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mike11 has joined #ruby
Creatornator has joined #ruby
karapetyan has quit []
erlend has quit [Ping timeout: 264 seconds]
jottr has quit [Ping timeout: 240 seconds]
erlend has joined #ruby
eckhard__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has joined #ruby
yokel has quit [Ping timeout: 256 seconds]
dr3w_ has joined #ruby
dr3w_ has quit [Client Quit]
eckhardt has joined #ruby
alfiemax has quit [Ping timeout: 264 seconds]
noobineer has joined #ruby
noobineer has quit [Max SendQ exceeded]
[Butch] has quit [Quit: Textual IRC Client: www.textualapp.com]
venmx has joined #ruby
GJdan has joined #ruby
netherwolfe has quit [Ping timeout: 268 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
mtkd has quit [Ping timeout: 265 seconds]
drale2k_ has joined #ruby
mtkd has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Creatornator has joined #ruby
drale2k_ has quit [Client Quit]
drale2k_ has joined #ruby
Zaab1t has quit [Quit: Zaab1t]
drale2k_ has quit [Client Quit]
yokel has joined #ruby
drale2k_ has joined #ruby
mojtaba has joined #ruby
<mojtaba> Hello, I have just installed ruby using rvm, but the thing is that, I can not install 2.5. Do you know what should I do? (I am using ubuntu 16.04 LTS)
SeepingN has quit [Quit: The system is going down for reboot NOW!]
orbyt_ has joined #ruby
guacamole has joined #ruby
<mojtaba> rvm list known, gives ruby-2.4.1 as the latest one.
<mojtaba> any idea?
<havenwood> mojtaba: rvm get head && rvm install ruby 2.5
<havenwood> mojtaba: Update RVM to a version that has 2.5 definitions: rvm get head
<mojtaba> havenwood: Thanks. I will run it.
<mojtaba> havenwood: after rvm install ruby 2.5, what will happen to the older version?
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mojtaba> Should I remove it, or it will take care of it?
<havenwood> mojtaba: it will still be there and the default will remain what it was before your install
<havenwood> mojtaba: it will not be automatically removed
<mojtaba> havenwood: should I remove it? and how?
yokel has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
yokel has joined #ruby
<havenwood> mojtaba: I'd remove ruby-2.4.1 personally, yes.
rsh has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
<mojtaba> havenwood: How should I do that? (This is my first try with Ruby)
<havenwood> mojtaba: rvm uninstall ruby-2.4.1
<mojtaba> havenwood: Thanks
duckpuppy has joined #ruby
Xiti` has joined #ruby
<mojtaba> havenwood: last question, how should I change the default ruby?
<mojtaba> to 2.5
zapata has quit [Read error: Connection reset by peer]
<havenwood> mojtaba: rvm install ruby-2.5.0 && rvm use --default ruby-2.5.0
<havenwood> mojtaba: see my last message
<mojtaba> havenwood: Thank you very much
<havenwood> mojtaba: you're welcome
<schneider> Is there a way for editing YAML files without removing comments and styling?
zapata has joined #ruby
Fysicus is now known as fysicus
Xiti has quit [Ping timeout: 246 seconds]
<havenwood> schneider: i don't know a way with a yaml parser
venmx has quit [Remote host closed the connection]
ryzokuken has quit [Quit: Connection closed for inactivity]
<mojtaba> havenwood: Setting the default gives this error: RVM is not a function, selecting rubies with 'rvm use ...' will not work.
<mojtaba> You need to change your terminal emulator preferences to allow login shell.
<mojtaba> Sometimes it is required to use `/bin/bash --login` as the command.
<mojtaba> Please visit https://rvm.io/integration/gnome-terminal/ for an example.
<mojtaba> Do you know what should I do?
<havenwood> mojtaba: Try restarting your terminal.
<mojtaba> havenwood: same error
duckpuppy has quit [Ping timeout: 263 seconds]
<havenwood> mojtaba: source ~/.rvm/scripts/rvm
<havenwood> mojtaba: then try
<mojtaba> havenwood: perfect, thanks. Should I install the documentation? (I mean is it needed?)
crankharder has quit [Ping timeout: 248 seconds]
<havenwood> mojtaba: it's not needed especially if you're online
<mojtaba> havenwood: thanks a million
<havenwood> mojtaba: You'll want to add this to one of the dotfiles that loads with your shell: [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> mojtaba: like ~/.bash_profile
<mojtaba> havenwood: What is that for?
yokel has quit [Ping timeout: 260 seconds]
<havenwood> it's just the source line above
<havenwood> i've got to relocate
<havenwood> bbiaf
<mojtaba> havenwood: So, I have to run each time to set the default ruby?
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
guacamole has joined #ruby
<mojtaba> havenwood: This line was added to my .bashrc automatically: export PATH="$PATH:$HOME/.rvm/bin"
alfiemax has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zipace has quit [Ping timeout: 246 seconds]
Mike11 has quit [Quit: Leaving.]
duckpuppy has joined #ruby
desperek has quit [Quit: xoxo]
yokel has joined #ruby
alfiemax has quit [Ping timeout: 248 seconds]
duckpuppy has quit [Ping timeout: 248 seconds]
drale2k_ has joined #ruby
eckhardt has joined #ruby
amelliaa has quit [Quit: -]
drale2k_ has quit [Client Quit]
yokel has quit [Ping timeout: 240 seconds]
white_lilies has joined #ruby
nopolitica has joined #ruby
cmhobbs has left #ruby [#ruby]
Nobun has quit [Quit: ronf]
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
ta_ has joined #ruby
yokel has joined #ruby
alfiemax has joined #ruby
crankharder has joined #ruby
yokel has quit [Client Quit]
duderonomy has joined #ruby
cagomez has quit [Ping timeout: 260 seconds]
white_lilies has quit [Ping timeout: 240 seconds]
clemens3 has quit [Ping timeout: 240 seconds]
yokel has joined #ruby
alfiemax has quit [Ping timeout: 260 seconds]
crankharder has quit [Ping timeout: 240 seconds]
<tolerablyjake> mojtaba: you don't have to set the default ruby each time, the ` [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"` loading with your shell is what makes the magic happen
jenrzzz has quit [Ping timeout: 276 seconds]
<mojtaba> tolerablyjake: what magic?
<tolerablyjake> sorry, no magic. It's what looks up your default ruby and selects it for you
alfiemax has joined #ruby
cschneid has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
n008f4g_ has quit [Ping timeout: 263 seconds]
drale2k_ has joined #ruby
crankharder has joined #ruby
RougeR has joined #ruby
alfiemax has quit [Ping timeout: 240 seconds]
duderonomy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
iszak has quit [Ping timeout: 240 seconds]
crankharder has quit [Ping timeout: 260 seconds]
iszak has joined #ruby
guacamole has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
duckpuppy has joined #ruby
Psybur_ has joined #ruby
alfiemax has joined #ruby
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robscomputer has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alfiemax has quit [Ping timeout: 268 seconds]
workmad3 has joined #ruby
duckpuppy has quit [Ping timeout: 264 seconds]
duderonomy has joined #ruby
gnufied has quit [Remote host closed the connection]
ur5us has joined #ruby
drale2k_ has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 256 seconds]
dnewkerk has joined #ruby
TinkerT has quit [Ping timeout: 256 seconds]
yokel has quit [Ping timeout: 260 seconds]
schneider has quit [Ping timeout: 256 seconds]
dnewkerk has quit [Client Quit]
crankharder has joined #ruby
dnewkerk has joined #ruby
TinkerT has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
crankharder has quit [Ping timeout: 260 seconds]
cschneid has joined #ruby
cagomez has joined #ruby
Yxhuvud has quit [Read error: Connection reset by peer]
Yxhuvud has joined #ruby
yokel has joined #ruby
Creatornator has joined #ruby
cschneid has quit [Ping timeout: 246 seconds]
drale2k_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sameerynho has quit [Ping timeout: 264 seconds]
yokel has quit [Ping timeout: 248 seconds]
jcarl43 has quit [Quit: WeeChat 2.1]
guacamole has joined #ruby
guacamole has joined #ruby
roshanavand has joined #ruby
coderphive has quit [Quit: coderphive]
yokel has joined #ruby
crankharder has joined #ruby
conceivably has quit [Remote host closed the connection]
conceivably has joined #ruby
alfiemax has joined #ruby
erlend has quit [Ping timeout: 265 seconds]
RougeR has quit [Ping timeout: 240 seconds]
erlend has joined #ruby
crankharder has quit [Ping timeout: 264 seconds]
conceivably has quit [Remote host closed the connection]
conceivably has joined #ruby
crankharder has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
alfiemax has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
Creatornator has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conceivably has quit [Remote host closed the connection]
conceivably has joined #ruby
nowhereman_ has joined #ruby
conceivably has quit [Remote host closed the connection]
nowhere_man has quit [Ping timeout: 260 seconds]