havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.2, 2.3.5 & 2.2.8: 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 || Books: https://goo.gl/wpGhoQ
dionysus69 has quit [Ping timeout: 252 seconds]
dionysus69 has joined #ruby
s3nd1v0g1us has quit [Ping timeout: 252 seconds]
FastJack has joined #ruby
CrazyEddy has quit [Remote host closed the connection]
balazs_ has joined #ruby
charliesome_ has joined #ruby
MrSparkle has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
t-recx has quit [Quit: t-recx]
orbyt_ has joined #ruby
naprimer has joined #ruby
houhoulis has quit [Remote host closed the connection]
charliesome_ is now known as charliesome
redondos has quit [Quit: ZNC - http://znc.in]
minimalism has joined #ruby
shinnya has quit [Ping timeout: 240 seconds]
snsei1 has joined #ruby
snsei has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
aphel is now known as aphelion
aphelion is now known as aphel
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cschneid_ has joined #ruby
snsei has joined #ruby
snsei1 has quit [Ping timeout: 240 seconds]
elcontrastador has quit [Ping timeout: 240 seconds]
John__ has quit [Remote host closed the connection]
imode has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milardovich has joined #ruby
snsei has quit [Remote host closed the connection]
montyboy has quit [Quit: WeeChat 1.9]
learningRuby has joined #ruby
bronson has joined #ruby
<learningRuby> What is the difference between (1) a class method, and (2) an instance method of Class? For example, the method "new" as in Person.new, is it a class method of Person or an instance method of Class?
gizmore|2 has joined #ruby
<tamouse__> learningRuby: *very* simplisitcally, a class method is one you call on the class, such as .new
bronson has quit [Ping timeout: 252 seconds]
<tamouse__> an instance method is called on an instance of the class, such as person.name
<tamouse__> i say very simplistically, because it can get a lot more complicated
nobitanobi has joined #ruby
gizmore has quit [Ping timeout: 248 seconds]
<al2o3-cr> >> Array.method(:new)
<ruby[bot]> al2o3-cr: # => #<Method: Class#new> (https://eval.in/867389)
moei has joined #ruby
<learningRuby> tamouse__: but any class is an instance of Class
<tamouse__> indeed
<tamouse__> how deep down this hole do you need to go?
<tamouse__> al2o3-cr's showing that the .new method on Array is an instance method of Class
<learningRuby> I don't know, I'm just confused haha
ornerymoose has joined #ruby
<tamouse__> do you need to know it specifically, right now?
nankyokusei has joined #ruby
<learningRuby> I'm trying to have a good understanding of the language.
<tamouse__> you'll get that after you write a fair bit of it
<elomatreb> >> class Person; end; Person.method(:new).owner
<ruby[bot]> elomatreb: # => Class (https://eval.in/867390)
<elomatreb> Oh, I missed a bit. Ignore me
nobitanobi has quit [Ping timeout: 240 seconds]
<learningRuby> so, I guess that .new is an instance method of Class that is inherited by every class, but a class method is something defined in the class that will be invoked as if it was an instance method of Class... correct me if I'm wrong
nankyok__ has quit [Ping timeout: 252 seconds]
zautomata has joined #ruby
<learningRuby> oh, and I guess a class method is a singleton method of the class that defines it..
<elomatreb> There is no fundamental difference between class objects and instances, it's "just" a system
<learningRuby> elomatreb: yeah, that's a good point! it's just abstractions, right?
<elomatreb> You can reimplement a system like the Class.new gets you an instance by yourself, entirely, if you want
duckpupp1 has quit [Ping timeout: 248 seconds]
DTZUZO has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
Ouchy has quit []
Ouchy has joined #ruby
coderphive has joined #ruby
ornerymoose has joined #ruby
d^sh has quit [Ping timeout: 260 seconds]
Defenestrate has quit [Quit: This computer has gone to sleep]
d^sh has joined #ruby
coderphive has quit [Quit: coderphive]
uZiel has quit [Ping timeout: 248 seconds]
hinbody has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Read error: Connection reset by peer]
nowhere_man has joined #ruby
hinbody has joined #ruby
arescorpio has quit [Ping timeout: 240 seconds]
d^sh has quit [Ping timeout: 240 seconds]
cschneid_ has quit [Remote host closed the connection]
d^sh has joined #ruby
Rodya_ has quit [Remote host closed the connection]
jnollette has quit [Ping timeout: 252 seconds]
learningRuby has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
jameser has joined #ruby
beilabs has quit [Remote host closed the connection]
beilabs has joined #ruby
__Yiota has joined #ruby
beilabs has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
jnollette has joined #ruby
arescorpio has joined #ruby
cschneid_ has quit [Remote host closed the connection]
gusrub has joined #ruby
quobo has quit [Quit: Connection closed for inactivity]
cschneid_ has joined #ruby
coderphive has joined #ruby
zack6849 has quit [Ping timeout: 246 seconds]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyoku_ has joined #ruby
chihhsin has joined #ruby
jnollette has quit [Ping timeout: 248 seconds]
nankyokusei has quit [Ping timeout: 240 seconds]
zack6849 has joined #ruby
zack6849 has joined #ruby
zack6849 has quit [Changing host]
raz has quit [Ping timeout: 246 seconds]
creat has quit [Ping timeout: 246 seconds]
raz has joined #ruby
harfangk has joined #ruby
creat has joined #ruby
gusrub has quit []
ahrs has quit [Remote host closed the connection]
ahrs has joined #ruby
astrobunny has joined #ruby
dviola has quit [Quit: WeeChat 1.9.1]
harfangk has quit [Ping timeout: 248 seconds]
coderphive has quit [Quit: coderphive]
__Yiota has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
herbmillerjr has quit [Remote host closed the connection]
harfangk has joined #ruby
nowhere_man has quit [Remote host closed the connection]
bronson has joined #ruby
nowhere_man has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
bronson has quit [Ping timeout: 248 seconds]
cschneid_ has quit [Remote host closed the connection]
Kuukunen- has quit [Ping timeout: 248 seconds]
cschneid_ has joined #ruby
A124 has quit [Ping timeout: 255 seconds]
A124 has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
gix has quit [Ping timeout: 240 seconds]
milardovich has quit [Ping timeout: 248 seconds]
gix has joined #ruby
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harai has quit [Ping timeout: 240 seconds]
__Yiota has joined #ruby
Defenestrate has joined #ruby
Defenestrate has quit [Changing host]
Defenestrate has joined #ruby
bronson has joined #ruby
claw has quit [Ping timeout: 240 seconds]
claw has joined #ruby
Averna has joined #ruby
cschneid_ has quit [Remote host closed the connection]
harai has joined #ruby
nofxxx has quit []
Rodya_ has joined #ruby
Averna has quit [Quit: Ex-Chat]
Averna has joined #ruby
cschneid_ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
cschneid_ has joined #ruby
arescorpio has quit [Quit: Leaving.]
knight33 has joined #ruby
cgfbee has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Quit: Leaving...]
s2013 has joined #ruby
numbdewd has quit [Quit:  ☺ ]
cgfbee has joined #ruby
Defenestrate has quit [Quit: This computer has gone to sleep]
conta has quit [Ping timeout: 240 seconds]
dinfuehr has quit [Ping timeout: 248 seconds]
dinfuehr has joined #ruby
dminuoso_ has joined #ruby
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_whitelogger has joined #ruby
AlexRussia has quit [Ping timeout: 248 seconds]
beilabs has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beilabs_ has joined #ruby
beilabs has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Remote host closed the connection]
nowhere_man has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
Ouchy`w has joined #ruby
Ouchy has quit [Ping timeout: 248 seconds]
nobitanobi has quit [Ping timeout: 240 seconds]
Ouchy has joined #ruby
Ouchy has quit [Changing host]
Ouchy has joined #ruby
Ouchy`w has quit [Client Quit]
rabajaj has joined #ruby
uZiel has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
ta_ has quit [Remote host closed the connection]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mkali has joined #ruby
ur5us has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
biberu has joined #ruby
ur5us has joined #ruby
Ouchy`w has joined #ruby
aupadhye has joined #ruby
Ouchy has quit [Ping timeout: 248 seconds]
Ouchy has joined #ruby
Ouchy has joined #ruby
Ouchy has quit [Changing host]
webguynow has quit [Ping timeout: 240 seconds]
webguynow has joined #ruby
oleo has quit [Quit: Leaving]
Averna has quit [Quit: Ex-Chat]
rabajaj has quit [Quit: Leaving]
rabajaj has joined #ruby
Dimik has joined #ruby
<scatterp> i dont understand how its possible that when i comment line 117 here https://github.com/scatterp2/peatio/tree/testing01/app/api/api_v3/executor.rb main.thread runs when i uncomment it main.thread does not run since its threaded it should not effect the main.thread the threaded code is blocking unexpectedly
quobo has joined #ruby
<havenwood> scatterp: what happens if you comment out line 108?
<havenwood> but leave line 117
<havenwood> uncommented
<havenwood> scatterp: you'd get a lot easier to get help if you can extract out a minimal reproducible testcase - no code more than is needed to reproduce the error
<havenwood> you'd find it a lot easier to get help, i mean**
mkali has quit [Quit: mkali]
andikr has joined #ruby
<scatterp> havenwood if i comment 108 not 117 it still blocks if i comment 107 it does not block
<scatterp> i will try my best to build a testcase some how
<matthewd> Without looking at any code, I don't like the sound of this library
* dminuoso_ throws a lemma in havenwood's direction
<scatterp> matthewd me also.. and i looked at a lot (all) of google under various keywords but that is not the point a thread should be a thread i have been reading this morning that a thread is not nessasarilly isolated in ruby and reading also about race conditions
<matthewd> Camelcase methods... maybe SWIG generated? Basically one gem release, years ago. Sounds more like someone ticked a "has ruby version available" checkbox than a serious attempt to provide something usable.
<scatterp> i thought camelcase was the corrrect way to define a method (based on the ruby class i took last week)
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
beilabs_ has quit [Remote host closed the connection]
<dminuoso_> matthewd: Indeed. It's fully swigged. https://github.com/quickfix/quickfix/tree/master/src/ruby
<dminuoso_> scatterp: That's a good indicator that it was a bad class, because the Ruby standard is snake_case for methods and variables, InitialCase for constants.
<dminuoso_> Or is it called InitialCaps? idk
<scatterp> oh ok i learned something new :)
<scatterp> i think i might have an idea whats going wrong ..
<dminuoso_> Or actually SCREAMING_CASE for constants inside modules/classes, and UpperCamelCase for class/module constants.
<scatterp> since the GIL does not support true parallelism when the quickfix opens a socket and listens for a connection (tcp/ip stuff) it causes a race condition becuse it needs all of thread time to do that
<scatterp> and threads in ruby are not native threads
<dminuoso_> scatterp: Wrong. The GIL is released on blocking IO.
<dminuoso_> And threads in ruby are native threads.
<scatterp> oh ok
<matthewd> That matches my theory, FWIW
<matthewd> dminuoso_: Some rando SWIGged library doing IO seems unlikely to be releasing the GVL.
<dminuoso_> Haha. Good point
nobitanobi has joined #ruby
<matthewd> scatterp: If you must use this library... does it have a mode where it can help with the parsing, but leave the actual IO up to you?
huyderman_ has quit [Ping timeout: 240 seconds]
<scatterp> matthewd the thing is i am trying to connect to (from) https://github.com/ctubio/Krypto-trading-bot/ which also uses the same library (successfully)
<scatterp> no it doesnt have a mode like that
paranoicsan has joined #ruby
<matthewd> Well that's written in C++, so I doubt it's using this gem
<scatterp> this gem is a wrapper around the c++ code from what i can understand
<matthewd> I'm making no claim about the quality of the underlying C++ library. I'm claiming it is a bad wrapper.
<scatterp> ah
<scatterp> is it possible to bypass the gvl and just let it run in its own space if it works it works if it crashes it crashes and the main.thread continues like every other thing running on the operating system
tohuw has quit [Remote host closed the connection]
<scatterp> like a cronjob to force the gvl to unlock or something :/
<matthewd> The lock isn't there for decoration
<matthewd> You can try using this library in a separate process, and then communicate back to the main one
<scatterp> hmm yeah good idea
<scatterp> how would they talk
<scatterp> some kind of telnet style chat ?
<matthewd> Possibly. I don't know enough about what this is supposed to be doing.
<scatterp> quickfix is an implementation of FIX API specification for financial communications
techn1cs has quit [Ping timeout: 240 seconds]
anisha has joined #ruby
<scatterp> peatio is a trading exchange crypto coins with its own api (which sucks)
Lyubo1 has quit [Ping timeout: 252 seconds]
<scatterp> krypto-trading-bot is a FIX API compatable bot that makes trading decisions
techn1cs has joined #ruby
milardovich has joined #ruby
imode has quit [Ping timeout: 252 seconds]
milardovich has quit [Ping timeout: 240 seconds]
<dminuoso_> >> <scatterp> is it possible to bypass the gvl and just let it run in its own space if it works it works if it crashes it crashes and the main.thread continues like every other thing running on the operating system
<dminuoso_> Yes. It's called processes.
conta has joined #ruby
xcesariox has joined #ruby
harai has quit [Ping timeout: 248 seconds]
beilabs has joined #ruby
ta_ has joined #ruby
eroux has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
InfinityFye has joined #ruby
vondruch has quit [Ping timeout: 240 seconds]
nahra has quit [Remote host closed the connection]
Burgestrand has joined #ruby
uZiel has joined #ruby
bigkevmcd has joined #ruby
tohuw has joined #ruby
tohuw has quit [Changing host]
tohuw has joined #ruby
Silthias has joined #ruby
claudiuinberlin has joined #ruby
mark_66 has joined #ruby
Silthias1 has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Client Quit]
kaibro has quit [Ping timeout: 240 seconds]
Ouchy has quit [Ping timeout: 246 seconds]
dionysus69 has joined #ruby
Ouchy`w has quit [Ping timeout: 248 seconds]
Ouchy has joined #ruby
Ouchy`w has joined #ruby
claudiuinberlin has joined #ruby
Dimik has quit [Ping timeout: 240 seconds]
phaul has joined #ruby
TheBrayn has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
tohuw has left #ruby ["Textual IRC Client: www.textualapp.com"]
beilabs has quit []
<scatterp> when run directly ruby executor.rb (removing peatio and simplifying the problem) it crashes segfault this suggests as matthewd said the wrapper is bad since others reported success with the jruby version
clouts has quit [Read error: Connection reset by peer]
cloutz has joined #ruby
govg has joined #ruby
elsevero has joined #ruby
Lyubo1 has joined #ruby
anisha has quit [Ping timeout: 248 seconds]
<Burgestrand> Yay, segfaults \o/
Mortomes|Work has joined #ruby
mikecmpbll has joined #ruby
anisha has joined #ruby
marr has joined #ruby
xcesariox has joined #ruby
ams__ has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nahra has joined #ruby
aloy has quit [Remote host closed the connection]
aloy has joined #ruby
Cohedrin_ has joined #ruby
konsolebox has joined #ruby
mim1k has joined #ruby
aufi has joined #ruby
DougieJones has quit [Ping timeout: 248 seconds]
mim1k is now known as mim1k|w
raynold has quit [Quit: Connection closed for inactivity]
milardovich has joined #ruby
claudiuinberlin has joined #ruby
claudiuinberlin has quit [Client Quit]
zautomata has quit [Ping timeout: 248 seconds]
milardovich has quit [Ping timeout: 252 seconds]
Azure has quit [Ping timeout: 260 seconds]
claudiuinberlin has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
jinie has quit [Ping timeout: 252 seconds]
jinie has joined #ruby
zautomata has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
Guest56524 has quit [Remote host closed the connection]
enterprisey has quit [Read error: Connection reset by peer]
ben_ has joined #ruby
ben_ is now known as Guest6654
drptbl has joined #ruby
morfin has joined #ruby
<morfin> hello
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha has quit [Ping timeout: 240 seconds]
<scatterp> hi
<morfin> how can i ensude Sidekiq web is using proper settings?
<morfin> *ensure
hs366 has joined #ruby
Guest6654 has quit [Ping timeout: 246 seconds]
TomyWork has joined #ruby
anisha has joined #ruby
jaruga has joined #ruby
montyboy has joined #ruby
surrounder has quit [Remote host closed the connection]
surrounder has joined #ruby
benjen has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
paranoicsan has quit [Ping timeout: 255 seconds]
paranoic_ has joined #ruby
octomancer has quit [Quit: WeeChat 0.3.8]
sepp2k has joined #ruby
paranoic_ has quit [Quit: paranoic_]
paranoicsan has joined #ruby
octomancer has joined #ruby
dminuoso_ has quit [Ping timeout: 248 seconds]
phaul has quit [Ping timeout: 248 seconds]
mark_66 has left #ruby ["PART #elixir-lang :PART #crystal-lang :PONG :orwell.freenode.net"]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Serpent7776 has joined #ruby
kaibro has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has quit [Ping timeout: 248 seconds]
phaul has joined #ruby
claudiuinberlin has joined #ruby
enterprisey has joined #ruby
claudiuinberlin has quit [Client Quit]
enterprisey has quit [Read error: Connection reset by peer]
paranoicsan has quit [Read error: Connection reset by peer]
paranoicsan has joined #ruby
claudiuinberlin has joined #ruby
uZiel has joined #ruby
ur5us has quit [Remote host closed the connection]
eroux has quit [Quit: ZZZzzz… ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
anisha_ has joined #ruby
anisha has quit [Ping timeout: 248 seconds]
Dry_Lips has quit [Ping timeout: 248 seconds]
Dry_Lips has joined #ruby
Dry_Lips has quit [Changing host]
Dry_Lips has joined #ruby
charliesome has joined #ruby
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
astrobun_ has joined #ruby
astrobunny has quit [Ping timeout: 255 seconds]
t-recx has joined #ruby
tcopeland has quit [Quit: tcopeland]
paranoicsan has quit [Quit: paranoicsan]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andikr has quit [Ping timeout: 246 seconds]
kapil___ has quit [Quit: Connection closed for inactivity]
voiceftp has quit [Ping timeout: 240 seconds]
phaul has quit [Ping timeout: 240 seconds]
kapil___ has joined #ruby
bronson has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 248 seconds]
paranoicsan has joined #ruby
ben_ has joined #ruby
ben_ is now known as Guest6903
DipoleHourglass has quit [Quit: Connection closed for inactivity]
andikr has joined #ruby
DTZUZO has quit [Ping timeout: 240 seconds]
charliesome has joined #ruby
DTZUZU has quit [Ping timeout: 264 seconds]
mtkd has quit [Ping timeout: 252 seconds]
charliesome_ has joined #ruby
charliesome has quit [Ping timeout: 255 seconds]
dminuoso_ has joined #ruby
alveric has joined #ruby
tvw has joined #ruby
numbdewd has joined #ruby
andikr has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
anisha has joined #ruby
anisha_ has quit [Ping timeout: 240 seconds]
tvw has quit []
astrobun_ has quit [Remote host closed the connection]
dminuoso_ has quit [Remote host closed the connection]
Guest6903 has quit [Ping timeout: 264 seconds]
balazs_ has quit [Ping timeout: 252 seconds]
claudiuinberlin has joined #ruby
noobineer has joined #ruby
bronson has joined #ruby
duckpupp1 has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 246 seconds]
ShalokShalom_ is now known as ShalokShalom
fChanX has joined #ruby
<fChanX> Hello
<teatime> \o
<t-recx> hi
<fChanX> \n
dinfuehr has quit [Ping timeout: 248 seconds]
wald0 has joined #ruby
dinfuehr has joined #ruby
mjolnird has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Remote host closed the connection]
mjolnird has joined #ruby
milardovich has joined #ruby
claudiuinberlin has joined #ruby
joast has quit [Quit: Leaving.]
mostlybadfly has joined #ruby
Mortomes|Work has quit [Ping timeout: 260 seconds]
phaul has joined #ruby
Pisuke has quit [Ping timeout: 240 seconds]
Sembei has joined #ruby
marr123 has joined #ruby
ben_ has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ben_ is now known as Guest35896
marr has quit [Ping timeout: 248 seconds]
__Yiota has joined #ruby
ornerymoose has joined #ruby
Guest35896 has quit [Ping timeout: 255 seconds]
bruno- has joined #ruby
d10n-work has joined #ruby
__Yiota has quit [Client Quit]
bruno- has quit [Read error: Connection reset by peer]
ornerymoose has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
ornerymoose has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
mim1k|w has quit [Ping timeout: 255 seconds]
FastJack has joined #ruby
shinnya has joined #ruby
claudiuinberlin has joined #ruby
bmurt has joined #ruby
mson has joined #ruby
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
marr123 has quit [Remote host closed the connection]
milardovich has quit [Remote host closed the connection]
marr has joined #ruby
milardovich has joined #ruby
Kuukunen has joined #ruby
aliciaxx has joined #ruby
<aliciaxx> hi guys. very new to ruby. can you tell me why this merge loses active_slave etc? https://gist.github.com/tomdoherty/cfc3412bdf457ca46a55fd1cd6364e57
tcopeland has joined #ruby
daveomcd has quit [Remote host closed the connection]
daveomcd has joined #ruby
<teatime> aliciaxx: it doesn't do "deep merge" or whatever you would call it
<teatime> aliciaxx: when the same key exists in both hashes (in this case bond0) the new value overwrites, they aren't merged
daveomcd has quit [Client Quit]
uZiel has quit [Ping timeout: 248 seconds]
skweek has joined #ruby
jphase has joined #ruby
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
griffindy has joined #ruby
Burgestrand has quit [Quit: Closing time!]
alex`` has joined #ruby
alex`` is now known as alexherbo2
cdg has joined #ruby
alexherbo2 is now known as alex``
charliesome_ has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
orbyt_ has joined #ruby
ben_ has joined #ruby
ben_ is now known as Guest28689
webguynow has quit [Ping timeout: 240 seconds]
webguynow has joined #ruby
gnufied has joined #ruby
charliesome has joined #ruby
webguynow has quit [Ping timeout: 248 seconds]
webguynow has joined #ruby
huyderman has joined #ruby
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<scatterp> how can i start a thread that runs under jruby instead of ruby ?
<Papierkorb> You want to spawn a JRuby thread from MRI?
<scatterp> yea
<Papierkorb> Not possible. You can start a JRuby process from MRI, or just use JRuby from the start
<fChanX> What is JRuby?
<fChanX> Sorry for newbieness.
<scatterp> fChanX some java+ruby thing
<Papierkorb> A hack would be starting a JRuby process where you use some kind of custom ruby code loader (Controlled through a protocol like drb), which you then use to feed the ruby code in. But, I don't recommend this. Just use JRuby
<havenwood> scatterp: You can use interprocess communication or a message queue to communicate between processes, if that's what you need. You can spawn a JRuby process from MRI. What are you trying to do?
<scatterp> ok so if i have my first appication lets say helloworld and i start a jruby process that runs helloworld2 is there a way they can share variables
<havenwood> scatterp: IPC
<scatterp> havenwood quickfix_ruby has a broken wrapper the quickfix_jruby version works
<havenwood> Probably a message queue of some sort or DRb like Papierkorb said.
<havenwood> fChanX: It's an implementation of Ruby on the JVM.
claudiuinberlin has joined #ruby
tamouse__ has quit [Ping timeout: 240 seconds]
<Papierkorb> scatterp: JRuby is a complete Ruby implementation on top of the JVM, giving you access to many ruby gems (Excluding those which use native extensions), and to all Java libraries, at once
griffindy has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<scatterp> havenwood peatio the exchange is runing in ruby and fix-engine (depends quickfix_jruby) is runing in jruby
<Papierkorb> fChanX: ^
<havenwood> fChanX: It's a fast, well-respected implementation that stays pretty up-to-date with the reference implementation.
<scatterp> havenwood its fast ?
<havenwood> scatterp: JRuby?
<scatterp> yea
<havenwood> yeah
<Papierkorb> Faster than MRI for most workloads
<Papierkorb> But also more resource hungry
<havenwood> It has a slow startup but optimizes nicely.
<fChanX> Nice.
<scatterp> oh i thought it was slow maybe i should be trying to run peatio in jruby some day
<havenwood> Its JIT takes a bit of RAM.
<fChanX> Thanks :)
DLSteve_ has joined #ruby
<scatterp> i am still here just interpreting all that was said..
<scatterp> ok will test the rest of the code base on jruby ...
<scatterp> meanwhile how do i start a JRuby process where you use some kind of custom ruby code loader (Controlled through a protocol like drb), which you then use to feed the ruby code in. ?
<scatterp> havenwood when i finally worked out how to reduce my problem (like you suggested) it was a segfault that caused the issue.
Sh3rl0cK has joined #ruby
shime has joined #ruby
shime has quit [Client Quit]
<Papierkorb> scatterp: By writing the code for it. That are multiple problems. You can try building it, but I don't see much actual use for it.
shime has joined #ruby
apparition has joined #ruby
mim1k has joined #ruby
<Papierkorb> scatterp: First and foremost, there are many many security issues that have to be considered when building something like this (for production use). Just the knowledge on this could fill a book.
<scatterp> yes the FIX implementation will only be available to a specific endpoint this will be controlled via firewall and will be a local system connecting 127.0.0.1
<Papierkorb> scatterp: You can build it, as challenge for you ("research purposes"). In fact, if you're interested, you totally should. Just know that I can't blindly recommend this approach for production use (e.g., if you just started in a company as intern or otherwise beginner). For home use (That is, on your local computer, NOT on some webserver you rented).
<scatterp> the peatio project has had a full security review recently which is not enough..
<scatterp> so i do plan to test it with some fuzzers and do some checks as well
mim1k_ has quit [Ping timeout: 240 seconds]
<Papierkorb> Oh if only an iptables entry would actually fix the security issues of that
<scatterp> yes :)
rfoust has joined #ruby
<scatterp> security is very important i agree but i cant protect my wallet before i can walk outside :)
knight33 has joined #ruby
<scatterp> so i have to make it function first also its opensource so its also available for others to review
mim1k has quit [Disconnected by services]
mim1k_ has joined #ruby
griffindy has joined #ruby
Ishido has quit [Read error: Connection reset by peer]
ta_ has quit [Remote host closed the connection]
ta_ has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ishido has joined #ruby
bronson has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
glcx has joined #ruby
glcx has joined #ruby
glcx has quit [Changing host]
aupadhye has quit [Ping timeout: 240 seconds]
oleo has joined #ruby
joast has joined #ruby
ta_ has quit [Ping timeout: 255 seconds]
bronson has quit [Ping timeout: 240 seconds]
elbuki has joined #ruby
fChanX has left #ruby ["Leaving"]
rabajaj has quit [Quit: Leaving]
__Yiota has joined #ruby
mim1k_ has quit [Ping timeout: 240 seconds]
skweek has quit [Ping timeout: 248 seconds]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dionysus69 has quit [Ping timeout: 240 seconds]
darix has quit [Ping timeout: 258 seconds]
heftig has quit [Ping timeout: 264 seconds]
ShalokShalom_ has joined #ruby
paranoicsan has quit [Read error: Connection reset by peer]
paranoicsan has joined #ruby
konsolebox has quit [Quit: .]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ouchy has quit [Ping timeout: 248 seconds]
Ouchy`w has quit [Ping timeout: 248 seconds]
ShalokShalom has quit [Ping timeout: 260 seconds]
Ouchy has joined #ruby
Ouchy has quit [Changing host]
Ouchy has joined #ruby
Ouchy`w has joined #ruby
Ouchy`w has quit [Client Quit]
heftig has joined #ruby
mkali has joined #ruby
theunraveler has joined #ruby
knight33 has joined #ruby
__Yiota has joined #ruby
darix has joined #ruby
claudiuinberlin has joined #ruby
oleo has quit [Quit: Leaving]
Rapture has joined #ruby
webguynow has quit [Ping timeout: 248 seconds]
InfinityFye has quit [Quit: Leaving]
webguynow has joined #ruby
oleo has joined #ruby
brw has quit [Quit: Off to listen to some tunes...]
<pskosinski> I wasn't using Ruby for long time. I think I used to use input = gets.chomp and it was working. Now I get error: undefined method `chomp' for nil:NilClass. Anything changed in Ruby or I remember something wrong? Why doesn't it work?
ResidentBiscuit has joined #ruby
<pskosinski> Why is gets returning nil instead of a string
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
uZiel has joined #ruby
chouhoulis has joined #ruby
paranoicsan has quit [Quit: paranoicsan]
bmurt has joined #ruby
<teatime> pskosinski: gets has interesting behavior if your script has arguments, you probably want to STDIN.gets explicitly even if that isn't your problem
<teatime> pskosinski: are you piping to your program?
<pskosinski> teatime: I just realized my script works… ah ;) yes, I'm piping
<pskosinski> works when typing into terminal, doesn't when piping
<teatime> what are you piping
<teatime> gets returns nil on EOF
<pskosinski> echo "1\n2\n3" | ruby test.rb
<pskosinski> So how can I read from pipe?
Asher has quit [Quit: Leaving.]
<teatime> well that should work afaict.
<pskosinski> Hm, OK
<teatime> that way of interpolating \n doesn't work in shell jsyk
<teatime> use printf instead of echo
<pskosinski> yeah, I forgot about echo -e
<teatime> pskosinski: do you get the first line(s) fine and just get the nil afterward? that's the expected behavior, gets returns nil on EOF
Burgestrand has quit [Quit: Closing time!]
Asher has joined #ruby
<pskosinski> teatime: Yes, seems like it's what happenes, just undefined method chomp for nil class on the end, thank you for help! Looks like I need to rescue from that
<teatime> pskosinski: just need something like, while line = STDIN.gets
<pskosinski> teatime: Nice, that's even easier, thanks :)
rowend has joined #ruby
rowend has quit [Client Quit]
dinfuehr has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
dinfuehr has joined #ruby
polishdub has joined #ruby
alex`` has quit [Quit: WeeChat 1.9]
oleo has quit [Remote host closed the connection]
bronson has joined #ruby
oleo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
raynold has joined #ruby
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
claudiuinberlin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apparition has quit [Quit: Bye]
milardovich has quit [Remote host closed the connection]
DTZUZU has joined #ruby
charliesome has joined #ruby
s2013 has joined #ruby
claudiuinberlin has joined #ruby
d10n-work has quit [Quit: Connection closed for inactivity]
mim1k has joined #ruby
bronson has quit [Remote host closed the connection]
DTZUZO has joined #ruby
oleo has quit [Quit: Leaving]
phaul has quit [Ping timeout: 248 seconds]
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<pskosinski> >> "This is\na test".split(" ")
<ruby[bot]> pskosinski: # => ["This", "is", "a", "test"] (https://eval.in/867921)
elsevero has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
conta has quit [Ping timeout: 260 seconds]
elbuki has joined #ruby
<pskosinski> How can I split string on spaces, literally spaces, not any other "whitespace" character? I want to split on spaces but not on new lines.
DTZUZO has quit [Read error: Connection reset by peer]
FahmeF has joined #ruby
DTZUZU has quit [Ping timeout: 248 seconds]
<pskosinski> It's weird behavior
<gizmore|2> pskosinski: regular expression to split could be / +/
<gizmore|2> but else your code above looks ok to me
<pskosinski> gizmore|2: Ah! Thanks! Are you WeChall guy?
<gizmore|2> heh. yeah :)
gizmore|2 is now known as gizmore
<gizmore> tada \o/
<pskosinski> Nice, I'm trying to solve a few challenges. :)
<teatime> pskosinski: like, exercises?
<gizmore> here is a ruby one: https://www.wechall.net/challenge/railsbin
DTZUZU has joined #ruby
<teatime> ohhh
<gizmore> not released yet, because it might be fixed
DTZUZO has joined #ruby
cout has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
<pskosinski> Probably too hard to me but will try one day. ;)
cabotto has joined #ruby
bruno- has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
DipoleHourglass has joined #ruby
chmurifree is now known as chmuri
dextrey has joined #ruby
elbuki has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
cpruitt has joined #ruby
FahmeF has quit [Read error: No route to host]
FahmeF has joined #ruby
ephemera_ has joined #ruby
mim1k has quit [Ping timeout: 255 seconds]
mim1k has joined #ruby
meadmoon has joined #ruby
am55 has joined #ruby
am55 has quit [Changing host]
am55 has joined #ruby
meadmoon has quit [Client Quit]
snath has joined #ruby
snath has left #ruby [#ruby]
quobo has quit [Quit: Connection closed for inactivity]
andikr has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
sepp2k has quit [Quit: Leaving.]
chouhoul_ has quit [Remote host closed the connection]
chouhoulis has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
tamouse__ has joined #ruby
mim1k has joined #ruby
dionysus69 has joined #ruby
MyMind has joined #ruby
Sembei has quit [Ping timeout: 264 seconds]
gusrub has quit [Remote host closed the connection]
gusrub has joined #ruby
voiceftp has joined #ruby
DTZUZO has quit [Ping timeout: 252 seconds]
DTZUZU has quit [Ping timeout: 255 seconds]
milardovich has joined #ruby
lagweezle_away is now known as lagweezle
troys has joined #ruby
shime has joined #ruby
cagomez has joined #ruby
Serpent7776 has quit [Quit: Leaving]
t-recx has quit [Quit: t-recx]
milardovich has quit [Remote host closed the connection]
DTZUZO has joined #ruby
kies has quit [Ping timeout: 240 seconds]
milardovich has joined #ruby
DTZUZU has joined #ruby
cabotto has quit [Remote host closed the connection]
<ule> Whats the best way to convert "true
<ule> ops
marxarelli has joined #ruby
<ule> "true" to true ?
<ule> (String) to Bool)
nobitanobi has quit [Remote host closed the connection]
<al2o3-cr> ule: !!"true"
<Ober> are there any ruby gems that install non-ruby items? say c libs, or even items written in another language?
<ule> al2o3-cr: I'm gonna test tahnks
<ule> thanks*
<al2o3-cr> ule: :)
<ule> al2o3-cr: doesnt work for "false"
<ule> after upgrading to rails 4.2, now boolean params are failing since its converting somehow to strings
<teatime> ule: "false" is true :)
<matthewd> ule: "true" == "true"
<ule> you know what I mean
<ule> return true if self == true || self =~ (/^(true|t|yes|y|1)$/i)
glcx has quit [Quit: Quitte]
<ule> return false if self == false || self.blank? || self =~ (/^(false|f|no|n|0)$/i)
<ule> I need something like this
<ule> I was actuallt expecting that rails have something like .to_bool
sylario has joined #ruby
<matthewd> Ober: There might be some, but if you're asking whether that's a normal/sane thing to do: no.
<ule> ruby/rails doesn't matter
paranoicsan has joined #ruby
<ljarvis> ule: TRUE_VALUES = Set.new %w(true yes 1 t); TRUE_VALUES.include?(value.to_s) -- same with false
<Ober> matthewd so no libffi/clibs ever installed?
<matthewd> huh?
r3QuiEm_cL has joined #ruby
<ljarvis> ule: if you're using rails, just use `ActiveRecord::Type::Boolean.new.cast(value)`
SpikeMaster has joined #ruby
<ule> ljarvis: +++
oleo has joined #ruby
ldepandis has joined #ruby
<ule> undefined method `cast' for #<ActiveRecord::Type::Boolean:0x007fc4800d1ff0>
<havenwood> Ober: RubyGems do have extensions in a variety of other languages.
<ljarvis> ule: what rails version?
<ljarvis> ule: maybe try `ActiveRecord::ConnectionAdapters::Column.value_to_boolean(value)`
<ljarvis> and then upgrade your rails version
<ule> 4.2
<ule> 4.2.9
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ule> Thats from 2017/july
<ljarvis> sure
<ule> ActiveRecord::ConnectionAdapters::Column.value_to_boolean also fails
<ule> value_to_boolean not valid
drptbl has quit [Quit: My MAC has gone to sleep. zZz..]
<matthewd> I really recommend against using Rails [semi-] internals for this
<ule> I'm gonna try adding this to a global includer
<ule> return true if self == true || self.to_s.strip =~ /^(true|yes|y|1)$/i
<ule> return false
<ule> like ApplicationController
bmurt has joined #ruby
<matthewd> Consider whether it makes sense to treat all unknown values as false
<ule> oh yeah
<ule> good point
lxsameer has quit [Quit: WeeChat 1.7]
<ljarvis> ule: dont do that
imode has joined #ruby
<ljarvis> if you dont want to use rails stuff, use my first solution
PaulCapestany has quit [Quit: .]
<ljarvis> e.g. TRUE_VALUES = Set.new %w(true yes 1 t); TRUE_VALUES.include?(value.to_s)
<ljarvis> and then opposite for false
<ljarvis> everything else = nil
ldepandis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
gusrub has quit [Remote host closed the connection]
SpikeMaster has quit [Quit: ERC (IRC client for Emacs 27.0.50)]
PaulCapestany has joined #ruby
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FahmeF has quit [Ping timeout: 240 seconds]
chouhoul_ has joined #ruby
nicesignal has quit [Remote host closed the connection]
tamouse__ has quit [Ping timeout: 240 seconds]
nicesignal has joined #ruby
FahmeF has joined #ruby
chouhoulis has quit [Ping timeout: 248 seconds]
<ule> found the correct rails version that does the trick here
<ule> ActiveRecord::Type::Boolean.new.type_cast_from_user
phaul has joined #ruby
mikecmpbll has quit [Ping timeout: 240 seconds]
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
paranoicsan has quit [Quit: paranoicsan]
DTZUZO has quit [Ping timeout: 264 seconds]
DTZUZU has quit [Ping timeout: 260 seconds]
Puffball has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
mim1k has quit [Ping timeout: 248 seconds]
DTZUZU has joined #ruby
DTZUZO has joined #ruby
<al2o3-cr> why doesn't "\"".encode(xml: :text) convert to "&quot;"?
<al2o3-cr> >> "&<>\"".encode(xml: :text)
<ruby[bot]> al2o3-cr: # => "&amp;&lt;&gt;\"" (https://eval.in/867952)
bruno-_ has joined #ruby
<teatime> al2o3-cr: the docs are pretty explicit about what it does https://ruby-doc.org/core-2.2.0/String.html#method-i-encode
<al2o3-cr> oh, it uses attr value and double quotes
dextrey has quit [Ping timeout: 240 seconds]
<teatime> as for why, I'd guess because <, >, and & are the things that can really mess up your xml/html
<al2o3-cr> >> "&<>\"".encode(xml: :attr)
<ruby[bot]> al2o3-cr: # => "\"&amp;&lt;&gt;&quot;\"" (https://eval.in/867957)
<al2o3-cr> i understand now :P
gusrub has joined #ruby
aufi has quit [Quit: Leaving]
bruno- has quit [Ping timeout: 260 seconds]
<al2o3-cr> &ri String#encode teatime
<al2o3-cr> use the bot it's up to date.
<teatime> *shrug*
mim1k has joined #ruby
FahmeF has quit [Remote host closed the connection]
dextrey has joined #ruby
ShalokShalom_ is now known as ShalokShalom
mson has quit [Quit: Connection closed for inactivity]
orbyt_ has joined #ruby
<scatterp> to run a ruby file from jruby as ruby 2.2.1 what do you do ?
<morfin> btw jruby works under openjdk?
chouhoulis has joined #ruby
mim1k has quit [Ping timeout: 248 seconds]
FahmeF has joined #ruby
kies has joined #ruby
chouhoulis has quit [Ping timeout: 240 seconds]
daveomcd has joined #ruby
SeepingN has joined #ruby
bronson has joined #ruby
kies has quit [Ping timeout: 240 seconds]
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Cohedrin_ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<havenwood> morfin: yup
skweek has joined #ruby
podman[USC] is now known as podman
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zautomata has quit [Quit: WeeChat 1.4]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
charliesome has joined #ruby
ldepandis has joined #ruby
elsevero has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
t-recx has joined #ruby
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
milardovich has quit [Remote host closed the connection]
eckhardt has joined #ruby
troys is now known as troys_
jackjackdripper has joined #ruby
rippa has joined #ruby
kies has joined #ruby
knight33 has joined #ruby
whippythellama_ has joined #ruby
kapil___ has joined #ruby
chouhoulis has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_sfiguser has joined #ruby
maesitos has joined #ruby
<maesitos> hello
sepp2k has joined #ruby
<maesitos> I've just finished "the well grounded Rubyist", what book would your recommend next?
<al2o3-cr> ?books maesitos
<ruby[bot]> maesitos: You can find a list of recommended books at http://ruby-community.com/pages/links
theunraveler has quit [Remote host closed the connection]
<al2o3-cr> maesitos: take a look at this: https://goo.gl/wpGhoQ
<maesitos> yeah I've been checking it
<al2o3-cr> cool.
<maesitos> but I feel like reading more is kind of a lot, shouldn't I find a project or something?
<teatime> definitely. can do both, though.
TomyWork has quit [Ping timeout: 240 seconds]
theunraveler has joined #ruby
dextrey has quit [Ping timeout: 240 seconds]
lxsameer has joined #ruby
mtkd has joined #ruby
<maesitos> so according to the list I should read now eloquent Ruby
<maesitos> I read by the way eloquent Javascript and I wound't say it's a good book
<maesitos> the examples are hard to follow
orbyt_ has joined #ruby
quobo has joined #ruby
ta_ has joined #ruby
Ouchy`w has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ouchy has quit [Ping timeout: 248 seconds]
Ouchy has joined #ruby
Ouchy has quit [Changing host]
Ouchy has joined #ruby
bronson has joined #ruby
knight33 has joined #ruby
nobitanobi has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
<al2o3-cr> maesitos: what did you think of the "the well grounded rubyist"?
Cohedrin_ has joined #ruby
<maesitos> al2o3-cr: it's great
conta has joined #ruby
nobitanobi has quit [Ping timeout: 240 seconds]
<maesitos> al2o3-cr: the last chapter was very gratifying
bronson has quit [Ping timeout: 248 seconds]
cdg has quit [Remote host closed the connection]
<al2o3-cr> maesitos: that's good to hear :)
cdg has joined #ruby
<baweaver> Eloquent Ruby and Eloquent Javascript really only share a name.
<maesitos> but I feel like I need to get my hands dirty now
<baweaver> I would't discount that book purely on that ;)
ineb has quit [Quit: WeeChat 1.9]
<maesitos> baweaver: that's good to hear
<baweaver> invariably you won't see much progress in learning until you do (get your hands dirty)
<maesitos> Eloquent JS is very pedantic
conta has quit [Ping timeout: 240 seconds]
<baweaver> EJS is beginner oriented. ERb is more Intermediate oriented I'd argue.
<maesitos> yes EJS starts from the ground up
<maesitos> but that's why I say it's a bit pedant... the author tries to show off a bit imo
cdg has quit [Ping timeout: 255 seconds]
bathtub_shark has quit [Remote host closed the connection]
<maesitos> never mind it's a free book, I'd have to be grateful
bathtub_shark has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
<maesitos> baweaver: so you recommend me to stop reading and dig my head in some code right?
<baweaver> Moreover that reading will only get you so far
Dimik has joined #ruby
<baweaver> and Eloquent Ruby will be helpful, yes, but moreso if you've already seen the trenches a bit for yourself
ivanskie has joined #ruby
<baweaver> Eloquent Ruby is entirely how to do Ruby like a Ruby programmer
<maesitos> I see
<baweaver> and sometimes it helps to Ruby like a you programmer first to understand
elsevero_ has joined #ruby
<baweaver> So whenever you see all these "Here's a simple way to do X" that you just struggled with a bit it starts to become clearer why they do certain things
<baweaver> Though there is certainly merit in not having to fall down the hole in the first place
uZiel has quit [Remote host closed the connection]
<maesitos> so you say I need to feel the pain first
elsevero has quit [Ping timeout: 252 seconds]
elsevero_ is now known as elsevero
mkali has quit [Quit: mkali]
<maesitos> the thing is I tend to lose motivation with dummy projects...
<baweaver> You'll feel it one way or another honestly. Reading that book may spare you from some of it
<maesitos> but I don't feel ready for something serious
<Papierkorb> maesitos: You'll never feel ready without getting your hands dirty.
ur5us has joined #ruby
troys_ is now known as troys
<baweaver> The thing about serious projects is that they tend to look terrifying if you take it in its entirety
<maesitos> Papierkorb: right
<Papierkorb> maesitos: You can't learn to walk without falling first
<maesitos> baweaver: just like watching a building right?
<baweaver> whenever most sane developers that've been at it for a while will break it apart into smaller, more manageable tasks.
<baweaver> yep
<baweaver> You have to figure out your blueprint before you even lay the foundation
<maesitos> yeah well that happens to me in my own live, when I look back I cannot believe I did all that... But I feel stuck now
<Papierkorb> maesitos: Find a project that interests you ("How does this work?") and/or that is helpful to you ("This always annoyed me, there must be a better way!"). Do that right now. And then get onto it.
<teatime> maesitos: you can read 10 more books and still probably won't without some practical hands-on. It's the fastest way to learn.
troulouliou_dev has joined #ruby
uZiel has joined #ruby
<baweaver> The fun part is finding said project. For a newbie that's a task of its own
TomyLobo has joined #ruby
<baweaver> Namely because they haven't learned what problems they can solve yet while a programmer with some exp knows what nails need hammering
FahmeF has quit [Remote host closed the connection]
<baweaver> That said, what is your hobby maesitos?
<Papierkorb> baweaver, maesitos, hence why I generally advise to do something about an annoyance they're facing.
dtomic has joined #ruby
<maesitos> baweaver: I don't have any haha
<baweaver> What do you enjoy doing in your spare time.
<baweaver> Papierkorb: Indeed.
<baweaver> One makes more selling painkillers than vitamins.
<baweaver> maesitos: Nothing you enjoy doing for fun?
<maesitos> baweaver: my hobby is my business and I've hired several Rails developers believe it or not
<dtomic> Hey guys ...quick noob question if anyone is available
<Papierkorb> That's unexpected indeed
<dtomic> :/
<Papierkorb> dtomic: Ask away
<maesitos> baweaver: not really... I like building stuff that's what I enjoy
<teatime> maesitos: I don't suppose you need any *nix sysadmins? ;)
<Papierkorb> maesitos: Building what kind of stuff?
ur5us has quit [Ping timeout: 252 seconds]
<dtomic> trying to ssh to a remote server with default user and then execute sudo yum install command... how do I pass root password to execute that command
andikr has quit [Remote host closed the connection]
<maesitos> teatime: I'd love to... but my business now is small to hire a full time sysadmin but I'm working at it!
<teatime> dtomic: try -t option to ssh, perhaps
<maesitos> Papierkorb: anything... lately my business, I consider it a stuff haha
zachk has joined #ruby
dstrunk has joined #ruby
tamouse__ has joined #ruby
<baweaver> dtomic: I'd look into using SSH keys for security, but past that it's setting up your SSH user with sudoer access
Bock has quit [Ping timeout: 252 seconds]
<maesitos> Papierkorb: anything... lately my business, I consider it stuff haha
<maesitos> baweaver: what's your hobby by the way
<dtomic> yeah I cannot do that .. only way I can execute command is to pass root password
zachk has quit [Max SendQ exceeded]
<teatime> dtomic: you can also disable sudo asking for passwords, if that's acceptable to you
<baweaver> maesitos: several, but most recently Tak and making a game engine for it in Javascript.
<dtomic> I do not own server, just have root pass to execute yum install
<teatime> dtomic: sudo doesn't ask for root's password, btw, it's your user's password
<Papierkorb> maesitos: In any case, you said you have Rails devs, so I'll just assume you're fine with using Rails yourself. Build a helper tool (local web-application, or CLI script) helping with your daily routines. If you can't think of something in this moment, grab pen&paper and write everything down you do in the following days, what time it took, and what was annoying about it (if any). Few days later (or a week at max), take a look at your notes. You
<Papierkorb> WILL find something where you think "I can save time here if I had X". You now have your first project, that'll even have a real impact.
zachk has joined #ruby
<teatime> dtomic: if you want to use root's password, you want to use su -c instead of sudo
<dtomic> yup
<dtomic> sorry
<baweaver> That said, this sounds like a security nightmare waiting to happen
<dtomic> not sudo
chouhoul_ has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
<maesitos> Papierkorb: building a small Sass will be something that I'd enjoy doing
chouhoul_ has joined #ruby
<maesitos> Papierkorb: if it ain't useful I get bored
<Papierkorb> maesitos: Excellent. Go for it. (Though I don't know what a Sass is ;) )
<teatime> software-as-a-service.
<maesitos> Papierkorb: a Saas... it's how the hippies call online services now a days
<maesitos> nowadays
aliciaxx has quit [Remote host closed the connection]
<maesitos> Papierkorb: ideally you ask for 20 bucks a moth or so
chouhoulis has quit [Ping timeout: 240 seconds]
<Papierkorb> Well, the big question then is what it should do :P
<baweaver> maesitos: that's horrible business strategy
ta_ has quit [Remote host closed the connection]
<baweaver> 19.99 is law
<maesitos> baweaver: xD
<baweaver> 4.99 and 9.99 are super common for those services.
<maesitos> baweaver: it depends
<baweaver> it does
<maesitos> baweaver: now I see them getting more expensive
<Papierkorb> enterprise "Please contact us" (Meaning, oh shit, we don't know if our infrastructure will be able to handle that)
<maesitos> Papierkorb: that's the big question yes
Pierreb|home has joined #ruby
<Papierkorb> Ah well, I already showed you how to find an idea, maybe even something you can sell. ("The money is on the street. You just have to see it.")
woodruffw has quit [Ping timeout: 240 seconds]
<maesitos> You know the ugly part is JS
<maesitos> if I want to do web I need to interface with the user with JS and CSS
dstrunk has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<maesitos> and it's a bit hostile
woodruffw has joined #ruby
woodruffw has quit [Changing host]
woodruffw has joined #ruby
paranoicsan has joined #ruby
paranoicsan has quit [Client Quit]
harai has joined #ruby
John__ has joined #ruby
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
theunraveler has quit []
bronson has joined #ruby
dviola has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<morfin> there is no patches for older MRI?
uZiel has quit [Ping timeout: 248 seconds]
FrostCandy has joined #ruby
<morfin> there was issue with GC as i remember causing UB and crash in miniruby/ruby
ski7777 has quit [Read error: Connection reset by peer]
<baweaver> Depends on the version, but most everything before 2.1.x is EOL
<morfin> 2.3.x
<FrostCandy> if i have fields = {"f1"=>"one"} why can't I access it like fields.f1 ? I can do fields["f1"]
John__ has quit [Read error: Connection reset by peer]
<baweaver> Shouldn't be.
<morfin> i had bug with gcc 7
ski7777 has joined #ruby
<morfin> even miniruby ceashed :(
<morfin> *crashed
jphase_ has joined #ruby
<baweaver> FrostCandy: It's not Javascript
<baweaver> we don't have dot notation for hashes
<morfin> hehe
<FrostCandy> baweaver: lol ya, but im sure i've seen something.something in ruby, maybe it was differnet context.
<baweaver> Not that there aren't ways to do it anyways
<morfin> also do not forget symbol keys != string keys
<baweaver> primarily around method_missing, hashie, and some other fun bits
<baweaver> but that's also really dirty and slow, so best to avoid them
<havenwood> or turn the hash into an openstruct or struct
<morfin> myhash[:foo] = "test"; puts myhash["foo"] #bad
<baweaver> That too.
<matthewd> FrostCandy: a.b is used for methods
Cohedrin_ has quit [Read error: Connection reset by peer]
<baweaver> RE: GCC, I have very little knowledge there unfortunately.
<FrostCandy> baweaver: wow thanks, this site is super slow and i know they use hashie and it's spitting warnings heh
jphase has quit [Ping timeout: 248 seconds]
<morfin> baweaver, what?
<FrostCandy> matthewd: ok thanks ! that must be what I saw
<morfin> ah
John__ has joined #ruby
<baweaver> As far as what the bug may be or how to solve it :/
Cohedrin_ has joined #ruby
<morfin> Ruby always had bug in GC before Ruby 2.4
<morfin> but it was noticed until GCC 7 was released
<baweaver> Best I can guess if to file a bug on it
<morfin> there is bunch of reads of uninitialized variables in Ruby GC
<morfin> *was
jamesaxl has joined #ruby
<morfin> and maybe some other bad things leading to UB
al2o3-cr has quit [Ping timeout: 246 seconds]
tolerablyjake has joined #ruby
tolerablyjake has quit [Client Quit]
tolerablyjake has joined #ruby
<matthewd> morfin: We really aren't going to be able to give you more information than the issue in the bug tracker contains
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
morfin has quit []
marxarelli is now known as marxarelli|afk
knight33 has joined #ruby
ledestin has joined #ruby
<Yxhuvud> if you want older patches, maybe look in some distro that provide long term support for old versions. Like centos.
tvw has joined #ruby
Dimik has quit [Ping timeout: 248 seconds]
elsevero has quit [Ping timeout: 240 seconds]
elsevero has joined #ruby
ldepandis has quit [Quit: Textual IRC Client: www.textualapp.com]
harfangk has quit [Ping timeout: 240 seconds]
ams__ has quit [Quit: Connection closed for inactivity]
mtkd has quit [Ping timeout: 246 seconds]
s2013 has joined #ruby
dtomic has quit [Quit: Page closed]
<maesitos> baweaver: The Ruby Way or Eloquent Ruby
<maesitos> what would you say
jamesaxl has quit [Ping timeout: 252 seconds]
jamesaxl has joined #ruby
<FrostCandy> If I append an object to an array, then change something in the object it automatically changes the array element. How do I make the array store just a copy of the object? I'm using my_array << my_object to do the append. https://gist.github.com/sirchuck/3ad1f276a177fa337201601fd55b3e1b
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<elomatreb> FrostCandy: You probably need to clone the element, with .dup
<FrostCandy> elomatreb: ok i'll research that thanks
duckpupp1 has quit [Ping timeout: 248 seconds]
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jaruga has quit [Quit: jaruga]
jamesaxl has quit [Read error: Connection reset by peer]
<FrostCandy> electrostat: works great.
jamesaxl has joined #ruby
bmurt has joined #ruby
Ouchy`w has quit [Ping timeout: 248 seconds]
Ouchy`w has joined #ruby
sepp2k has quit [Remote host closed the connection]
ta_ has joined #ruby
marxarelli|afk is now known as marxarelli
eckhardt has joined #ruby
ski7777 has quit [Remote host closed the connection]
ski7777 has joined #ruby
ski7777 has quit [Remote host closed the connection]
ski7777 has joined #ruby
ski7777 has quit [Remote host closed the connection]
ski7777 has joined #ruby
cdg has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k has joined #ruby
PaulCapestany has quit [Quit: .]
__Yiota has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xevious has joined #ruby
rasca_ has quit [Remote host closed the connection]
xevious has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tamouse__ has quit [Ping timeout: 255 seconds]
tamouse__ has joined #ruby
kapil___ has quit [Quit: Connection closed for inactivity]
tvw has quit []
PaulCapestany has joined #ruby
dionysus70 has joined #ruby
ldepandis has joined #ruby
dionysus69 has quit [Ping timeout: 260 seconds]
dionysus70 is now known as dionysus69
bronson has quit [Remote host closed the connection]
SeepingN has quit [Read error: Connection reset by peer]
SeepingN has joined #ruby
voiceftp has quit [Read error: Connection reset by peer]
voiceftp has joined #ruby
bronson has joined #ruby
ivanskie has joined #ruby
maesitos has quit []
orbyt_ has joined #ruby
rabajaj has joined #ruby
claudiuinberlin has quit [Quit: Textual IRC Client: www.textualapp.com]
mtkd has joined #ruby
bmurt has joined #ruby
John__ has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
brent__ has joined #ruby
bmurt has quit [Client Quit]
hahuang65 has joined #ruby
Toledo has joined #ruby
bmurt has joined #ruby
lacuna has joined #ruby
govg has quit [Ping timeout: 240 seconds]
quobo has quit [Quit: Connection closed for inactivity]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MarkBilk has quit [Ping timeout: 246 seconds]
ldepandis has quit [Quit: Textual IRC Client: www.textualapp.com]
brent__ has quit []
voice_ftp has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
theunraveler has joined #ruby
voiceftp has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
ramfjord has joined #ruby
brw has joined #ruby
biberu has quit []
ur5us has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
MarkBilk has joined #ruby
Sh3rl0cK has quit [Quit: Leaving]
cagomez has quit [Remote host closed the connection]
jinie has quit [Ping timeout: 240 seconds]
jphase_ is now known as jphase
_sfiguser has quit [Ping timeout: 240 seconds]
raynold has quit [Quit: Connection closed for inactivity]
jinie has joined #ruby
_sfiguser has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
brent__ has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
Algebr has joined #ruby
rabajaj has quit [Quit: Leaving]
<Algebr> when you get the common: 'Could not find foo in any of the sources', what is teh gem path like variable that you can dump to check where its looking for?
shime has joined #ruby
tamouse__ has quit [Ping timeout: 260 seconds]
Dimik has joined #ruby
cagomez has joined #ruby
Azure has joined #ruby
cpruitt has quit [Quit: cpruitt]
raynold has joined #ruby
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marxarelli is now known as marxarelli|afk
tcopeland has quit [Quit: tcopeland]
cagomez has quit [Remote host closed the connection]
gusrub has quit []
whippythellama_ has quit [Ping timeout: 240 seconds]
ivanskie has joined #ruby
ornerymoose has quit [Ping timeout: 240 seconds]
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
tamouse__ has joined #ruby
enterprisey has joined #ruby
<Algebr> I have unf_ext-0.0.7.4-x86-mingw32.gem in the root of my directory, where the gem file is, then I have gem 'unf_ext', :path => './', :platform => [:mingw] in the gemfile, and then I do bundle lock --add-platform x86-mingw32 but bundle craps out with: Could not find gem 'unf_ext x86-mingw32' in source at `./`. which seems odd to me
shime has joined #ruby
tamouse__ has quit [Ping timeout: 240 seconds]
cagomez has joined #ruby
cagomez has quit [Remote host closed the connection]
cagomez has joined #ruby
sp4rrow has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
ramfjord has joined #ruby
enterprisey has quit [Ping timeout: 240 seconds]
shime has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
jackjackdripper has quit [Ping timeout: 240 seconds]
whippythellama_ has joined #ruby
ikopico has quit [Ping timeout: 260 seconds]
enterprisey has joined #ruby
imode has quit [Ping timeout: 264 seconds]
ikopico has joined #ruby
troys is now known as troys_
marxarelli|afk is now known as marxarelli
Cohedrin_ has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
cout has joined #ruby
phaul has quit [Ping timeout: 246 seconds]
gmatute has joined #ruby
ineb has joined #ruby
mim1k has joined #ruby
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has quit [Ping timeout: 248 seconds]
Rapture has quit [Quit: Textual IRC Client: www.textualapp.com]
elsevero has quit [Remote host closed the connection]
<Algebr> is a .gem file just a gzipped directory?
<Algebr> like a jar/war
DLSteve_ has quit [Quit: All rise, the honorable DLSteve has left the channel.]
charliesome has joined #ruby
John__ has joined #ruby
workmad3 has joined #ruby
numbdewd has quit [Remote host closed the connection]
muzik has joined #ruby
ResidentBiscuit has quit [Quit: Critical Miss]
ivanskie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoul_ has quit [Ping timeout: 240 seconds]
ornerymoose has joined #ruby
theunraveler has quit []
FrostCandy has quit []
mwlang has joined #ruby
bruce_lee has quit [Remote host closed the connection]
FahmeF has joined #ruby
sepp2k has quit [Quit: Leaving.]
ornerymoose has quit [Quit: ornerymoose]
knight33 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polishdub has quit [Quit: leaving]
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_sfiguser has quit [Quit: Leaving]
eckhardt has joined #ruby
FahmeF has quit [Ping timeout: 240 seconds]
Cohedrin_ has quit [Read error: Connection reset by peer]
jphase has quit [Remote host closed the connection]
Cohedrin_ has joined #ruby
gmatute has left #ruby [#ruby]
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
jphase has joined #ruby
sp4rrow has joined #ruby
blindMoe has joined #ruby
blindMoe has quit [Changing host]
blindMoe has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
harai has quit [Ping timeout: 264 seconds]
jphase has quit [Ping timeout: 248 seconds]
brent__ has quit []
quobo has joined #ruby
Cohedrin_ has quit [Read error: Connection reset by peer]
muzik has quit [Quit: Going offline, see ya! (www.adiirc.com)]
Cohedrin_ has joined #ruby
<darix> Algebr: it is a tar file with 1 tar.gz inside and some compressed yaml file (iirc)
r3QuiEm_cL has joined #ruby
eckhardt has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
minimalism has quit [Quit: minimalism]
cdg has quit [Remote host closed the connection]
r3QuiEm_cL has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ornerymoose has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shinnya has joined #ruby
harai has joined #ruby
eckhardt has joined #ruby
knight33 has joined #ruby
alveric1 has joined #ruby
tcopeland has joined #ruby
numbdewd has joined #ruby
orbyt_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alveric has quit [Ping timeout: 240 seconds]
eckhardt has quit [Client Quit]
ivanskie has joined #ruby
orbyt_ has joined #ruby
orbyt_ has quit [Client Quit]
troys_ is now known as troys
ivanskie has quit [Client Quit]
enterprisey has quit [Ping timeout: 248 seconds]
marr has quit [Ping timeout: 248 seconds]
bronson has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
eckhardt has joined #ruby
ornerymoose has quit [Quit: ornerymoose]
orbyt_ has joined #ruby
braian has joined #ruby
brent__ has joined #ruby
braian has left #ruby ["Leaving"]
__Yiota has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
enterprisey has joined #ruby
cdg has joined #ruby
knight33 has quit [Ping timeout: 240 seconds]
enko has quit [Quit: Textual IRC Client: www.textualapp.com]
zachk has quit [Read error: Connection reset by peer]
eckhardt has joined #ruby
zachk has joined #ruby
mikecmpbll has joined #ruby
enko has joined #ruby
brent__ has quit []
enko has quit [Client Quit]
tamouse__ has joined #ruby
__Yiota has quit [Max SendQ exceeded]
__Yiota has joined #ruby
tolerablyjake has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
John__ has quit [Read error: Connection reset by peer]
nankyokusei has joined #ruby
eckhardt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nankyoku_ has quit [Ping timeout: 248 seconds]
scatterp has quit [Ping timeout: 240 seconds]
scatterp has joined #ruby
t-recx has quit [Quit: t-recx]
lagweezle is now known as lagweezle_away
jnollette has joined #ruby
mim1k has joined #ruby
mtkd has quit [Ping timeout: 240 seconds]
<Algebr> What is the right way to make a gem with precompiled ruby native extensions?
<Algebr> I am getting very confused.
bruno-_ has quit [Ping timeout: 264 seconds]
<eam> Algebr: could you be more specific?
bronson has joined #ruby
eckhardt has joined #ruby
mtkd has joined #ruby
coderphive has joined #ruby
<Algebr> there is a project called unf_ext. I can build it finally on windows, the ruby + make dance. Now I want to make a gem but it has the compiled code in it, so that when I deploy an application using this gem, it doesn't make the target try to compile but just uses the precompiled gem
coderphive has quit [Client Quit]
mim1k has quit [Ping timeout: 260 seconds]