Nicmavr has quit [Read error: Connection reset by peer]
Nicmavr has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
brool has quit [Ping timeout: 252 seconds]
sarink has joined #ruby
claw has joined #ruby
cd has quit [Quit: cd]
sarink has quit [Remote host closed the connection]
emptyfl4sk has quit [Ping timeout: 272 seconds]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
jmcgnh_ has joined #ruby
jmcgnh has quit [Ping timeout: 258 seconds]
jmcgnh_ is now known as jmcgnh
sarink has quit [Remote host closed the connection]
renich_ has joined #ruby
lepepe_ has quit [Remote host closed the connection]
lepepe has joined #ruby
renich has quit [Ping timeout: 245 seconds]
renich_ is now known as renich
sarink has joined #ruby
fphilipe_ has joined #ruby
lepepe has quit [Ping timeout: 258 seconds]
fphilipe_ has quit [Ping timeout: 252 seconds]
yokel has quit [Remote host closed the connection]
sandstrom has joined #ruby
yokel has joined #ruby
code_zombie has quit [Quit: Leaving]
_whitelogger has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
tdy has joined #ruby
conta has joined #ruby
vondruch has joined #ruby
Inline has quit [Quit: Leaving]
reber has joined #ruby
lepepe has joined #ruby
howdoi has joined #ruby
ur5us has quit [Remote host closed the connection]
sarink has quit [Remote host closed the connection]
schne1der has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
lepepe has quit [Ping timeout: 245 seconds]
absolutejam3 has joined #ruby
schne1der has quit [Ping timeout: 244 seconds]
sauvin has joined #ruby
oetjenj has joined #ruby
sarink has quit [Remote host closed the connection]
emptyfl4sk has joined #ruby
oetjenj has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
emptyfl4sk has quit [Ping timeout: 268 seconds]
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
sarink has quit [Remote host closed the connection]
absolutejam3 has quit [Ping timeout: 268 seconds]
jhass has quit [Ping timeout: 245 seconds]
sarink has joined #ruby
lxsameer has joined #ruby
sarink has quit [Remote host closed the connection]
jhass has joined #ruby
<ZAJDAN>
is any difference between: result = "alfa" result += "and omega" VS result = "alfa" result.concat("and omega") ...?
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
Tuor has joined #ruby
conta has quit [Quit: conta]
solars has joined #ruby
andikr has joined #ruby
aupadhye has joined #ruby
fphilipe_ has joined #ruby
sarink has quit [Remote host closed the connection]
lepepe has joined #ruby
<phaul>
I bet #concat tries to be more efficient by doing less string allocations. One has to benchmark to know for sure
<phaul>
if there is difference it's going to be performance difference though
lepepe has quit [Ping timeout: 248 seconds]
<ZAJDAN>
okok
kyrylo has joined #ruby
morozovm has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
deepreds1 has quit [Ping timeout: 248 seconds]
sandstrom has quit [Quit: My computer has gone to sleep.]
lunarkitty7 has quit [Quit: WeeChat 1.9.1]
sarink has joined #ruby
schne1der has joined #ruby
nowhereman has quit [Ping timeout: 252 seconds]
fphilipe_ has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
megamos has joined #ruby
sarink has quit [Remote host closed the connection]
sandstrom has joined #ruby
sarink has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
kyrylo has joined #ruby
megamos has quit [Ping timeout: 245 seconds]
morozovm has quit []
mayurvpatil has joined #ruby
suukim has joined #ruby
Mrgoose8 has quit [Ping timeout: 272 seconds]
andikr has quit [Ping timeout: 245 seconds]
andikr has joined #ruby
Mrgoose8 has joined #ruby
reber has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
andikr has quit [Ping timeout: 258 seconds]
mayurvpatil has quit [Ping timeout: 244 seconds]
<Cork>
Net::SSH.start(host, user) appears to try to create a file somewhere on the host
teclator has joined #ruby
<Cork>
i can't find any reference to this in the code
<Cork>
anyone know where this could be? (what path it is trying to do it on)
queip has quit [Ping timeout: 268 seconds]
deepreds1 has joined #ruby
Mrgoose8 has quit [Ping timeout: 248 seconds]
queip has joined #ruby
mikecmpbll has quit [Quit: inabit.]
jefffrails35 has joined #ruby
emptyfl4sk has joined #ruby
lepepe has joined #ruby
Mrgoose8 has joined #ruby
lepepe has quit [Ping timeout: 246 seconds]
emptyfl4sk has quit [Ping timeout: 245 seconds]
queip has quit [Ping timeout: 245 seconds]
queip has joined #ruby
keden has quit [Quit: WeeChat 2.4]
keden has joined #ruby
ur5us has joined #ruby
thesubr00t99 has joined #ruby
thesubr00t99 has quit [Client Quit]
thesubr00t has joined #ruby
<thesubr00t>
Hi guys ! What is the best approach to create a "datastore" class that can be accessed from the rest of an app ?
absolutejam3 has joined #ruby
absolutejam3 has quit [Ping timeout: 245 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
andikr has joined #ruby
DTZUZO has joined #ruby
iffraff has quit [Ping timeout: 272 seconds]
kyrylo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ellcs has joined #ruby
acidbot has joined #ruby
<acidbot>
hello
<ellcs>
hi
ur5us has quit [Remote host closed the connection]
absolutejam3 has joined #ruby
lepepe has joined #ruby
lepepe has quit [Ping timeout: 245 seconds]
<acidbot>
ruby -h
<acidbot>
?
AJA4350 has joined #ruby
galaxie has quit [Remote host closed the connection]
NL3limin4t0r_afk is now known as NL3limin4t0r
thesubr00t has quit [Remote host closed the connection]
<phaul>
&>> `ruby -h`
<rubydoc>
# => "Usage: ruby [switches] [--] [programfile] [arguments]\n -0[octal] specify record separator (\\0,... check link for more (https://carc.in/#/r/76gz)
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
absolutejam3 has quit [Ping timeout: 268 seconds]
andikr has quit [Ping timeout: 272 seconds]
ZAJDAN has quit [Ping timeout: 272 seconds]
andikr has joined #ruby
sarink has quit [Ping timeout: 272 seconds]
tdy1 has joined #ruby
sarink has joined #ruby
tdy has quit [Ping timeout: 268 seconds]
lepepe has joined #ruby
emptyfl4sk has joined #ruby
keden has quit [Quit: WeeChat 2.5]
absolutejam3 has joined #ruby
acidbot has quit [Quit: Leaving]
ur5us has joined #ruby
tdy2 has joined #ruby
tdy1 has quit [Ping timeout: 248 seconds]
keden has joined #ruby
emptyfl4sk has quit [Ping timeout: 258 seconds]
ur5us has quit [Ping timeout: 272 seconds]
lepepe has quit [Ping timeout: 258 seconds]
aupadhye has quit [Ping timeout: 258 seconds]
queip has quit [Ping timeout: 248 seconds]
absolutejam3 has quit [Ping timeout: 244 seconds]
queip has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
ZAJDAN has joined #ruby
aupadhye has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
lepepe has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
lepepe has quit [Ping timeout: 245 seconds]
sarink has quit [Remote host closed the connection]
cisco has joined #ruby
oetjenj has joined #ruby
cisco is now known as Guest44076
Guest44076 has quit [Client Quit]
absolutejam3 has joined #ruby
absolutejam3 has quit [Ping timeout: 248 seconds]
DTZUZO has quit [Ping timeout: 248 seconds]
sarink has joined #ruby
DTZUZO has joined #ruby
gb_away has quit [Ping timeout: 245 seconds]
gb_away has joined #ruby
AJA4350 has quit [Ping timeout: 268 seconds]
tf2ftw has quit [Quit: This computer has gone to sleep]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
crankharder has joined #ruby
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
tf2ftw has joined #ruby
tf2ftw has quit [Client Quit]
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cassolas has joined #ruby
cassolas has quit [Client Quit]
cassolas has joined #ruby
kent\n has quit [Ping timeout: 258 seconds]
kent\n has joined #ruby
absolutejam3 has joined #ruby
KnownSyntax has quit [Ping timeout: 258 seconds]
cassolas has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
KnownSyntax has joined #ruby
absolutejam3 has quit [Ping timeout: 272 seconds]
BH23 has joined #ruby
emptyfl4sk has joined #ruby
ur5us has joined #ruby
emptyfl4sk has quit [Ping timeout: 246 seconds]
miskatonic has joined #ruby
fphilipe_ has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 244 seconds]
absolutejam3 has joined #ruby
fphilipe_ has joined #ruby
aupadhye has quit [Ping timeout: 244 seconds]
teardown has quit [Read error: Connection reset by peer]
absolutejam3 has quit [Ping timeout: 258 seconds]
absolutejam3 has joined #ruby
absolutejam3 has quit [Ping timeout: 246 seconds]
henninb has joined #ruby
DTZUZO has quit [Ping timeout: 245 seconds]
falconfox has joined #ruby
lucasb has joined #ruby
involans has joined #ruby
kurko_ has joined #ruby
cd has joined #ruby
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
codefriar has joined #ruby
miskatonic has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
dionysus69 has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
crankharder has quit [Read error: Connection reset by peer]
crankharder has joined #ruby
dionysus69 has joined #ruby
codefriar has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
plujon has joined #ruby
henninb has quit [Quit: leaving]
cca4 has joined #ruby
<cca4>
How can I add a new line in a ruby string. In python if I do this its function print'First line \n Second line'? How to use ruby? Thank you for your help
absolutejam3 has joined #ruby
absolutejam3 has quit [Ping timeout: 246 seconds]
fphilipe_ has quit [Read error: Connection reset by peer]
ellcs has quit [Ping timeout: 245 seconds]
fphilipe_ has joined #ruby
chalkmonster has joined #ruby
aupadhye has joined #ruby
dbugger has joined #ruby
emptyfl4sk has joined #ruby
<NL3limin4t0r>
cca4: You can do the same in Ruby, but you need double quoted strings for that.
<NL3limin4t0r>
> Double-quote strings allow escaped characters such as \n for newline, \t for tab, etc.
<NL3limin4t0r>
> In addition to disabling interpolation, single-quoted strings also disable all escape sequences except for the single-quote (\') and backslash (\\).
<cca4>
But it's normal in the irb terminal I always see everything on a line ?
<NL3limin4t0r>
That is only the string representation.
<cca4>
ok thanks
<NL3limin4t0r>
You can see the acual content by printing it with for example `puts`
absolutejam3 has quit [Read error: Connection reset by peer]
absolutejam1 has joined #ruby
cca4 has quit [Remote host closed the connection]
absolutejam1 has quit [Read error: Connection reset by peer]
<NL3limin4t0r>
But did he implement `variable++` (same as `old = variable; variable += 1; old`) or `++variable` (same as `variable += 1`) or both?
absolutejam1 has joined #ruby
AJA4350 has quit [Ping timeout: 245 seconds]
<NL3limin4t0r>
`variable++` should return the old value, whereas `++variable` should return the new value
davor has quit [Quit: Bye]
davor has joined #ruby
crankharder has quit [Quit: leaving]
crankharder has joined #ruby
deepreds1 has quit [Ping timeout: 245 seconds]
DTZUZO has joined #ruby
AJA4350 has joined #ruby
davor has quit [Quit: Bye]
absolutejam1 has quit [Ping timeout: 245 seconds]
<havenwood>
NL3limin4t0r: x = 42; x++ #=> 42
<havenwood>
NL3limin4t0r: x #=> 43
<havenwood>
oops
<havenwood>
typo
<havenwood>
gah
<havenwood>
NL3limin4t0r: x = 42; x++ #=> 43
<havenwood>
I mean that ^
<havenwood>
>.>
schne1der has quit [Ping timeout: 248 seconds]
<havenwood>
NL3limin4t0r: They didn't implement ++variable, and their variable++ returns the new value.
davor has joined #ruby
davor has quit [Quit: Bye]
aupadhye has quit [Quit: Leaving]
_falsebay_ has joined #ruby
davor has joined #ruby
kurko__ has joined #ruby
<davor>
havenwood, installing the gem still fails after adding the hw rtc, but only because I'm trying to build the gem as a regular user, and /dev/rtc0 has 700 permissions, and root is the owner
<havenwood>
davor: ahhh, that's a pain. hrmm.
Tuor has quit [Quit: Konversation terminated!]
kurko_ has quit [Ping timeout: 246 seconds]
<davor>
I suppose I should create an rtc user group, a udev rule and try again?
<havenwood>
davor: Good luck!
<davor>
thanks
jefffrails35 has quit [Quit: Leaving]
Rudd0 has quit [Read error: Connection reset by peer]
cisco has quit [Ping timeout: 245 seconds]
AJA4350 has quit [Ping timeout: 245 seconds]
voker57 has joined #ruby
<davor>
havenwood, well, permissions fixed and "$ hwclock" produces output, and I'm still getting "checking for CLOCK_MONOTONIC in time.h... *** extconf.rb failed ***". while I know it's bad practice, running "gem install kgio" as root works...
falconfox has quit [Ping timeout: 245 seconds]
<davor>
hm, perhaps setting rtc permissions as 666 instead of 660 would do the trick...
<davor>
nope, still fails.
kyrylo has joined #ruby
<davor>
wow. it still fails while running "gem install kgio", but running "docker build" on openproject manages to build kgio as a gem dep
<davor>
so it works :p
Rudd0 has joined #ruby
voker57 has quit [Quit: voker57]
voker57 has joined #ruby
TvL2386 has quit [Ping timeout: 272 seconds]
Rudd0^ has joined #ruby
andikr has quit [Remote host closed the connection]
TvL2386 has joined #ruby
asprillia has quit [Quit: Leaving.]
kurko__ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<NL3limin4t0r>
havenwood: Hmm, I do wonder if it's a good idea to have the return value be someting that is not standard. C, C++, JavaScript and probably a bunch more programming languages have this "operator" a long time and it's always been `++x` to return the new value and `x++` to return the old value.
<NL3limin4t0r>
But we'll see. Only time will tell.
<havenwood>
different colors for different chars and scaling might be nice ¯\_(ツ)_/¯
phenom has quit [Ping timeout: 272 seconds]
phenom has joined #ruby
absolutejam1 has quit [Ping timeout: 268 seconds]
absolutejam1 has joined #ruby
lepepe has joined #ruby
CCDelivery has joined #ruby
lepepe has quit [Ping timeout: 272 seconds]
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
AJA4350 has joined #ruby
dellavg_ has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
suukim has quit [Quit: Konversation terminated!]
kyrylo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
queip has quit [Ping timeout: 246 seconds]
kaleido has quit [Quit: out]
kaleido has joined #ruby
queip has joined #ruby
leitz has joined #ruby
foxxx0 has quit [Quit: foxxx0]
foxxx0 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<leitz>
Gem name question. If I'm building a core set of classes and modules then use something like "ftl_core" for that gem, and then "ftl_chargen" for a program that uses it.
<leitz>
So ftl_core would have a class FTLCore::Person.
emptyfl4sk has joined #ruby
emptyflask has quit [Quit: WeeChat 2.4]
cassolas has joined #ruby
cassolas has quit [Client Quit]
emptyfl4sk has quit [Ping timeout: 245 seconds]
klaas has quit [Remote host closed the connection]
klaas has joined #ruby
AJA4350 has quit [Remote host closed the connection]
sarink has quit [Remote host closed the connection]
CCDelivery has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
absolutejam1 has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
AJA4350 has joined #ruby
sarink has joined #ruby
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
dellavg_ has quit [Ping timeout: 258 seconds]
CCDelivery has joined #ruby
ascarter has quit [Client Quit]
ascarter has joined #ruby
<leitz>
Drat! Storms in the area, shutting down.
leitz has quit [Quit: Leaving]
sandstrom has quit [Quit: My computer has gone to sleep.]
AJA4350 has quit [Ping timeout: 272 seconds]
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
emptyfl4sk has joined #ruby
Esa_ has quit []
Freshnuts has quit [Quit: Leaving]
emptyfl4sk has quit [Ping timeout: 248 seconds]
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renich has joined #ruby
DTZUZO has quit [Ping timeout: 268 seconds]
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
schne1der has quit [Ping timeout: 244 seconds]
CCDelivery has joined #ruby
Freshnuts has joined #ruby
ascarter has joined #ruby
houhoulis has joined #ruby
shirak has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
CCDelivery has joined #ruby
sarink has quit [Remote host closed the connection]
sarink has joined #ruby
CCDelivery has quit [Read error: Connection reset by peer]
deepredsky has joined #ruby
CCDelivery has joined #ruby
emptyfl4sk has joined #ruby
deepreds1 has quit [Ping timeout: 272 seconds]
ur5us has joined #ruby
Swyper has joined #ruby
emptyfl4sk has quit [Ping timeout: 246 seconds]
ascarter has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CCDelivery has quit [Read error: Connection reset by peer]
absolutejam1 has joined #ruby
CCDelivery has joined #ruby
sarink has quit [Remote host closed the connection]
absolutejam2 has joined #ruby
absolutejam1 has quit [Ping timeout: 258 seconds]
CCDelivery has quit [Remote host closed the connection]
unreal has joined #ruby
jud has joined #ruby
jud has joined #ruby
jud has quit [Changing host]
phenom is now known as phnom
phnom is now known as phenom
rubyrubyruby has joined #ruby
queip has quit [Ping timeout: 248 seconds]
<arooni>
is there an easier way that rvm install ruby-1.9.3-p551 --with-gcc=gcc ;; on mac ? i know its an ancient version of ruby but rvm doesnt seem to be able to build it at all
<rubyrubyruby>
I'm trying to merge two hashes, such that the values of the first hash are only overwritten by values of the second hash if they are not nil. This logic seems like it should work, but it doesn't: hash.deep_merge(other_hash) { |key, this_val, other_val| other_val if this_val.present? }
<leftylink>
because there's never a case where the block results in `this_val`
DarthGandalf has quit [Quit: Bye]
<leftylink>
oh wait, that's not necessary since it's only when there are same keys
<leftylink>
I retract my answer
<leftylink>
that's what I get for trying to make snap judgments on others' code. I shouldn't do that.