apeiros changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.10: https://www.ruby-lang.org || Paste >3 lines of text on https://gist.github.com || Rails questions? Ask on #RubyOnRails || logs @ https://irclog.whitequark.org/ruby/
SeepingN_ has quit [Ping timeout: 260 seconds]
rikai has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
ule has joined #ruby
gusrub has quit [Remote host closed the connection]
rikai has joined #ruby
dar123 has joined #ruby
binaryplease has quit [Quit: binaryplease]
amclain has quit [Read error: Connection reset by peer]
rfoust__ has joined #ruby
amclain has joined #ruby
ziarkaen has quit [Ping timeout: 244 seconds]
finisherr has joined #ruby
tyang_ has joined #ruby
flashpoint9 has joined #ruby
finisherr has quit [Client Quit]
palms has joined #ruby
finisherr has joined #ruby
rfoust_ has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
aaronds has joined #ruby
tristanp has joined #ruby
tyang has quit [Ping timeout: 245 seconds]
tristanp_ has quit [Read error: Connection reset by peer]
gusrub has joined #ruby
palms has quit [Ping timeout: 260 seconds]
aaronds_ has quit [Ping timeout: 268 seconds]
Lord_of_Life has quit [Excess Flood]
ahrs has quit [Remote host closed the connection]
gusrub has quit [Remote host closed the connection]
whathappens has quit [Quit: Leaving...]
gusrub has joined #ruby
Pazzaz has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 260 seconds]
tristanp has quit [Read error: Connection reset by peer]
bronson has quit [Remote host closed the connection]
tristanp has joined #ruby
tyang_ has quit [Quit: Leaving]
Lord_of_Life has joined #ruby
weaksauce has joined #ruby
charliesome has joined #ruby
anon35387231 has joined #ruby
tristanp has quit [Read error: Connection reset by peer]
dhollinger has quit [Ping timeout: 265 seconds]
tristanp_ has joined #ruby
benlieb has quit [Quit: benlieb]
hotpancakes has joined #ruby
dhollinger has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
anuxivm has left #ruby [#ruby]
hinbody has quit [Quit: leaving]
edwinvdgraaf has joined #ruby
Lord_of_Life has quit [Excess Flood]
tristanp_ has quit [Ping timeout: 252 seconds]
ag4ve_ has joined #ruby
dviola has quit [Quit: WeeChat 1.6]
ICantCook has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
ag4ve_ has quit [Ping timeout: 250 seconds]
cdg has quit [Remote host closed the connection]
nankyokusei has joined #ruby
TheGillies has joined #ruby
nitric has quit [Ping timeout: 250 seconds]
<TheGillies> 2.1.2 :138 > binary.to_i(2).to_s(2) == binary
<TheGillies> => false
<TheGillies> What's going on here?
_djbkd has quit [Quit: My people need me...]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
aaronds has quit [Ping timeout: 260 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
<TheGillies> ah it gets rid of padding
yardenbar has quit [Ping timeout: 260 seconds]
<TheGillies> Is there a way to preserve that
sneakerhax has joined #ruby
hotpancakes has quit [Ping timeout: 260 seconds]
<c-c> TheGillies: can you expand a little what you need?
blackbombay has quit [Ping timeout: 244 seconds]
ur5us has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
ur5us has joined #ruby
palms has joined #ruby
<TheGillies> converting a binary string (1 & 0 not bytes) of file data to an integer and then converting integer back into binary string
johnny56 has quit [Ping timeout: 246 seconds]
aibot has joined #ruby
<c-c> "11110".to_i(2)
<TheGillies> I already pasted that
<TheGillies> 2.1.2 :138 > binary.to_i(2).to_s(2) == binary
<TheGillies> => false
railssmi_ has joined #ruby
jottr has quit [Ping timeout: 256 seconds]
<c-c> sorry, I can't follow what you want
johnny56 has joined #ruby
railssmith has quit [Ping timeout: 245 seconds]
<TheGillies> i want that to equal true
<TheGillies> not false
<c-c> well, what is the result type going to be when you .to_s ?
marxarelli has quit [Quit: Textual IRC Client: www.textualapp.com]
ur5us has quit [Ping timeout: 245 seconds]
<c-c> TheGillies: do you understand the concept of types and dynamic typing?
hotpancakes has joined #ruby
harfangk has joined #ruby
<c-c> >> bin = 0b1001; bin.class
<ruby[bot]> c-c: # => Fixnum (https://eval.in/670181)
<c-c> >> bin = 0b1001; res = bin.to_i(2); res.class
<ruby[bot]> c-c: # => wrong number of arguments (given 1, expected 0) (ArgumentError) ...check link for more (https://eval.in/670182)
chrisja has quit [Quit: leaving]
<c-c> >> bin = 0b1001; res = bin.to_s(2); res.class
<ruby[bot]> c-c: # => String (https://eval.in/670183)
<c-c> TheGillies: I'm kind of guessing since I don't know the value of your original "binary" variable
gusrub has quit [Remote host closed the connection]
hotpancakes has quit [Remote host closed the connection]
jottr has joined #ruby
<TheGillies> It's a file unpacked as binary
hotpancakes has joined #ruby
<TheGillies> Essentially File.read("foo.bar").unpack('B*')
<TheGillies> There a way to convert binary string to a binary "type"?
infernix has quit [Ping timeout: 260 seconds]
<c-c> I guess what you have is "just a string"
nyc has joined #ruby
<c-c> unpack should return an array afaik
ramfjord has quit [Ping timeout: 250 seconds]
jottr has quit [Ping timeout: 260 seconds]
xall has joined #ruby
<c-c> TheGillies: so, you should have an array of binary strings there?
hotpancakes has quit [Ping timeout: 245 seconds]
<c-c> or, is that technically, an array with a binary string representation of the file content string
nyc has quit [Quit: Leaving]
brianpWins has quit [Quit: brianpWins]
xall has quit [Ping timeout: 265 seconds]
tristanp has joined #ruby
klaas has quit [Ping timeout: 264 seconds]
sonne has quit [Ping timeout: 256 seconds]
neoweb_ has quit [Ping timeout: 256 seconds]
anon35387231 has quit [Quit: leaving]
jottr has joined #ruby
finisherr has quit [Quit: finisherr]
WebDawg has joined #ruby
finisherr has joined #ruby
sonne has joined #ruby
dnicole has joined #ruby
infernix has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
jottr has quit [Ping timeout: 260 seconds]
pwnd_nsfw` has joined #ruby
frozengeek has joined #ruby
frozengeek has quit [Remote host closed the connection]
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
matled has quit [Remote host closed the connection]
Felipe__ has quit [Quit: Leaving]
skweek has quit [Ping timeout: 245 seconds]
zeroDi has quit [Quit: WeeChat 1.5]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klaas has joined #ruby
matled has joined #ruby
ixti has quit [Quit: WeeChat 1.6]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
flashpoint9 has quit [Remote host closed the connection]
E7F3RN4 has quit [Ping timeout: 244 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
aaronds has joined #ruby
radic has quit [Quit: ZNC - http://znc.in]
jrafanie has joined #ruby
radic has joined #ruby
tomchapin has joined #ruby
wpostma1 has joined #ruby
aaronds has quit [Ping timeout: 252 seconds]
<wpostma1> an
shiver has quit [Read error: Connection reset by peer]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wpostma1 has quit [Quit: WeeChat 1.6]
SCHAAP137 has quit [Quit: Leaving]
splud_ has quit [Quit: splud_]
evidex has quit [Ping timeout: 260 seconds]
mikecmpbll has quit [Quit: inabit. zz.]
weemsledeux has joined #ruby
shiver has joined #ruby
shiver has joined #ruby
shiver has quit [Changing host]
bmurt has joined #ruby
marr has quit [Ping timeout: 260 seconds]
dar123 has quit [Read error: Connection reset by peer]
shiver has quit [Remote host closed the connection]
dar123 has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
brianpWins has joined #ruby
terens_ has joined #ruby
arescorpio has joined #ruby
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
bruce_lee has quit [Ping timeout: 250 seconds]
bruce_lee has joined #ruby
ziarkaen has joined #ruby
jcao219 has joined #ruby
aaronds has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
c3553e3b has quit [Quit: Connection closed for inactivity]
ziarkaen has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
shiver has joined #ruby
shiver has joined #ruby
shiver has quit [Changing host]
aaronds has quit [Ping timeout: 256 seconds]
railssmi_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
terens_ has quit [Ping timeout: 260 seconds]
tomchapin has quit [Ping timeout: 265 seconds]
bronson has joined #ruby
sagax has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
sagax has joined #ruby
Felipe__ has joined #ruby
GodFather has quit [Ping timeout: 265 seconds]
bronson has quit [Ping timeout: 250 seconds]
mikeusabr has joined #ruby
rtail has quit [Quit: Later]
eljimmy has quit [Quit: This computer has gone to sleep]
<mikeusabr> Hello. I know that any problem can be cracked. But exists some way of put a webserver for run in the customer pc? ok ok that is possible in VM with linux, but is easy reset the linux pw and get all the files.. exists other solution?
<mikeusabr> program can be..*
brent__ has quit [Quit: Connection closed for inactivity]
Jameser has joined #ruby
tomchapin has joined #ruby
hinbody has joined #ruby
<c-c> ola mikeusabr
<mikeusabr> ola
<c-c> you can run a webserver on ruby
<c-c> for windows machine, thinking quick - I would use jruby
<c-c> (if 'pc' means same as windows here)
<mikeusabr> so jruby can convert for example my rails project for bytecode?
jhack has joined #ruby
<mikeusabr> so will be more "hard" get the source code
<c-c> I don't know about rails - if jruby has complete support, or not
creat has joined #ruby
<mikeusabr> we need that our system works in offlinemode, we can make a c# application or java application, but a system made for web is more easy..
flashpoint9 has joined #ruby
nankyokusei has joined #ruby
speakingcode has quit [Ping timeout: 250 seconds]
<c-c> jruby, sinatra and postgreSQL for json store is what I would start with, right now
<c-c> who knows, maybe the windows environment or the requirements ask for something else
<mikeusabr> so jruby + sinatra = bytecode right?
<mikeusabr> with that can i make a vm and install a webserver... so in the customer pc just start the vm and get all stuffs working
<mikeusabr> we need the programm compiled because put a .rb source code in VM, some customer can get the project
<Nilium> You can decompile bytecode.
nankyokusei has quit [Ping timeout: 260 seconds]
<mikeusabr> u mean crack the program right?
<c-c> mikeusabr: I believe the jruby uses jit compilation
<Nilium> IntelliJ's actually pretty dang good at it.
jhack has quit [Quit: jhack]
flashpoint9 has quit [Ping timeout: 260 seconds]
<mikeusabr> jit. nice
<Nilium> Anyway, if your plan was to forbid access to source, Ruby's not really the best option.
<mikeusabr> yes
<Nilium> And jruby won't help.
<mikeusabr> i think that is best a java application or c#
bruce_lee has quit [Remote host closed the connection]
<Nilium> Actually, decompiling both of those is pretty simple.
<c-c> what you do is you host the web application someplace
<Nilium> Pretty much.
<mikeusabr> instead of a web app... so we can for example make a c# desktop application and after run a obfuscator.. but anyways any programm can be cracked
<Nilium> My personal policy is to not care if I'm delivering software directly to a person.
<c-c> mikeusabr: look into jrubyc
<mikeusabr> Nilium: the software will run in 300 customers +/-
<Nilium> Seems like a small enough number that it doesn't matter then.
blackbombay has joined #ruby
<mikeusabr> yes
<mikeusabr> the % of a program be cracked is if be very popular, like ruby mine for example
jcao219 has quit [Ping timeout: 244 seconds]
<mikeusabr> ok guys thank you for attention
<mikeusabr> bb
mikeusabr has quit [Quit: Page closed]
hotpancakes has joined #ruby
finisherr has quit [Quit: finisherr]
blackbombay has quit [Ping timeout: 245 seconds]
brianpWins has quit [Quit: brianpWins]
<c-c> oh, too bad I didn't get to recommend puma to MissionCritical
<c-c> uh, mikeusabr
d^sh_ has quit [Ping timeout: 260 seconds]
d^sh has joined #ruby
JeanCarloMachado has quit [Ping timeout: 250 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
palms has quit [Ping timeout: 260 seconds]
creat has quit [Quit: Leaving]
railssmith has joined #ruby
eljimmy has joined #ruby
zukin has joined #ruby
minmax_ has joined #ruby
optiz0r has quit [Ping timeout: 260 seconds]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aaronds has joined #ruby
optiz0r has joined #ruby
ag4ve_ has joined #ruby
aaronds has quit [Ping timeout: 252 seconds]
whathappens has joined #ruby
pokalyis has quit [Quit: Textual IRC Client: www.textualapp.com]
jottr has joined #ruby
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
jcao219 has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
dar123 has quit [Read error: Connection reset by peer]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
AndrewIsHere has joined #ruby
speakingcode has joined #ruby
znz_jp has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tjvc has quit [Ping timeout: 260 seconds]
User458764 has joined #ruby
lel has quit [Read error: Connection reset by peer]
User458764 has quit [Read error: Connection reset by peer]
lel has joined #ruby
User458764 has joined #ruby
znz_jp has joined #ruby
tjvc has joined #ruby
tjvc has quit [Changing host]
tjvc has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
zukin has quit [Quit: leaving]
minmax_ has quit [Quit: WeeChat 0.4.3]
hanmac has quit [Ping timeout: 260 seconds]
AndrewIsHere has quit [Remote host closed the connection]
<a1fa> does anybody know if http gem supports port numbers in uri scheme?
dar123 has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<a1fa> lol, looks like this gem doesnt even support IP addresses
<a1fa> Addressable::URI::InvalidURIError
AndrewIsHere has joined #ruby
amclain has quit [Quit: Leaving]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
jeyraof has joined #ruby
evidex has joined #ruby
hanmac has joined #ruby
evidex has quit [Ping timeout: 250 seconds]
speakingcode has quit [Ping timeout: 260 seconds]
_djbkd has joined #ruby
palms has joined #ruby
ag4ve_ has quit [Ping timeout: 252 seconds]
astrobunny has joined #ruby
introom has joined #ruby
introom has left #ruby ["life is good"]
astrobunny has quit [Remote host closed the connection]
pawnbox has joined #ruby
Silthias1 has quit [Ping timeout: 244 seconds]
amclain has joined #ruby
Silthias has joined #ruby
JoshS has quit [Ping timeout: 268 seconds]
brianpWins has joined #ruby
kinghussien_ has joined #ruby
<kinghussien_> hi
Capela has quit [Remote host closed the connection]
dnicole has quit [Remote host closed the connection]
hahuang61 has joined #ruby
xall has joined #ruby
brianpWins_ has joined #ruby
brianpWins has quit [Ping timeout: 260 seconds]
brianpWins_ is now known as brianpWins
malconis has quit [Read error: Connection reset by peer]
ziarkaen has joined #ruby
hahuang61 has quit [Ping timeout: 260 seconds]
gusrub has joined #ruby
aaronds has joined #ruby
ziarkaen has quit [Ping timeout: 260 seconds]
aaronds has quit [Ping timeout: 256 seconds]
elenatanasoiu has joined #ruby
solocshaw has joined #ruby
dnicole has joined #ruby
nchambers^ has joined #ruby
nchambers^ has quit [Remote host closed the connection]
elenatanasoiu has quit [Ping timeout: 256 seconds]
kinghussien_ has quit [Remote host closed the connection]
nchambers^ has joined #ruby
bronson has joined #ruby
ur5us has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
solocshaw has quit [Ping timeout: 250 seconds]
ace05 has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 265 seconds]
solocshaw has joined #ruby
aupadhye has joined #ruby
nankyokusei has joined #ruby
yardenbar has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
aupadhye is now known as aupadhye-brb
nankyokusei has quit [Ping timeout: 260 seconds]
yardenbar has quit [Ping timeout: 256 seconds]
palms has quit [Ping timeout: 260 seconds]
yeticry has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
Felipe__ has quit [Quit: Leaving]
yeticry has joined #ruby
solocshaw has quit [Quit: solocshaw]
arescorpio has quit [Quit: Leaving.]
solocshaw has joined #ruby
astrobunny has joined #ruby
astrobunny has quit [Remote host closed the connection]
astrobunny has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
gix has quit [Ping timeout: 256 seconds]
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
AndrewIsHere has quit [Remote host closed the connection]
AndrewIsHere has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
Capela has joined #ruby
elenatanasoiu has joined #ruby
aupadhye-brb is now known as aupadhye
jaguarmagenta has joined #ruby
crankharder has quit [Ping timeout: 260 seconds]
gix has joined #ruby
edgr has quit [Ping timeout: 248 seconds]
solocshaw has quit [Ping timeout: 260 seconds]
nchambers^ is now known as stupid
Capela has quit [Ping timeout: 260 seconds]
elenatanasoiu has quit [Ping timeout: 265 seconds]
doyle has quit [Remote host closed the connection]
jtdowney_ has quit [Quit: ZNC]
vikaton has quit [Quit: Connection closed for inactivity]
rkazak has quit [Quit: Sleep.....ing....]
whathappens has quit [Quit: Leaving...]
Alina-malina has joined #ruby
jackjackdripper has joined #ruby
kinghussien has joined #ruby
yardenbar has joined #ruby
jtdowney has joined #ruby
jtdowney has quit [Changing host]
jtdowney has joined #ruby
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
aaronds has joined #ruby
jaguarmagenta has joined #ruby
speakingcode has joined #ruby
gusrub has quit [Remote host closed the connection]
doxterpe1per has quit [Remote host closed the connection]
grh has joined #ruby
igniting has joined #ruby
aaronds has quit [Ping timeout: 265 seconds]
XV8 has joined #ruby
stupid is now known as CaptainObvious
igniting has quit [Ping timeout: 265 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kinghussien has quit [Remote host closed the connection]
yardenbar has quit [Ping timeout: 260 seconds]
dn` has quit [Quit: dn`]
alireza has quit [Ping timeout: 244 seconds]
speakingcode has quit [Ping timeout: 260 seconds]
alireza has joined #ruby
igniting has joined #ruby
evidex has joined #ruby
saneax-_-|AFK is now known as saneax
terens_ has joined #ruby
evidex has quit [Ping timeout: 256 seconds]
ngrin has joined #ruby
<terens_> hello
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
Ropeney has joined #ruby
crdpink has quit [Ping timeout: 260 seconds]
Madplatypus has joined #ruby
toretore has joined #ruby
Jameser has quit [Quit: Textual IRC Client: www.textualapp.com]
nchambers^ has joined #ruby
ur5us has quit [Ping timeout: 268 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CaptainObvious has quit [Ping timeout: 248 seconds]
nchambers__ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
nchambers^ has quit [Read error: No route to host]
JoshS has joined #ruby
hahuang61 has joined #ruby
igniting has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
hotpancakes has quit [Ping timeout: 260 seconds]
ziarkaen has joined #ruby
hahuang61 has quit [Ping timeout: 245 seconds]
bocaneri has joined #ruby
tristanp_ has joined #ruby
ziarkaen has quit [Ping timeout: 268 seconds]
Silthias1 has joined #ruby
tristanp has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
Silthias has quit [Ping timeout: 268 seconds]
lockdown has joined #ruby
bronson has quit [Remote host closed the connection]
edwardly has quit [Ping timeout: 252 seconds]
igniting has joined #ruby
aaronds has joined #ruby
edwardly has joined #ruby
edwardly has joined #ruby
edwardly has quit [Changing host]
lockdown has quit [Quit: leaving]
nchambers__ has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
benlieb has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
aaronds has quit [Ping timeout: 245 seconds]
dhollinger has quit [Ping timeout: 260 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
Robtop__ has joined #ruby
exadeci has joined #ruby
d3v has joined #ruby
<terens_> hi anyone here?
<SegFaultAX> Howdy :)
dionysus69 has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
_djbkd has quit [Quit: My people need me...]
pwnd_nsfw has joined #ruby
aryaching has quit [Ping timeout: 256 seconds]
Robtop__ has quit [Ping timeout: 260 seconds]
nankyokusei has joined #ruby
skweek has joined #ruby
ofkors has joined #ruby
User458764 has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
dhollinger has joined #ruby
dminuoso_ has joined #ruby
grh has quit [Ping timeout: 260 seconds]
Ishido has joined #ruby
Rickmasta has quit [Quit: Textual IRC Client: www.textualapp.com]
lacour has quit [Quit: Leaving]
joguntade has quit [Quit: Connection closed for inactivity]
gusrub has joined #ruby
Rickmasta has joined #ruby
djbkd_ has joined #ruby
AndrewIsHere has joined #ruby
Capela has joined #ruby
gusrub has quit [Ping timeout: 256 seconds]
sarlalia1 has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
sarlalia1 has quit [Client Quit]
AndrewIsHere has quit [Ping timeout: 245 seconds]
igniting has quit [Ping timeout: 260 seconds]
ReK2 has quit [Quit: Konversation terminated!]
Capela has quit [Ping timeout: 260 seconds]
yardenbar has joined #ruby
skweek has quit [Ping timeout: 252 seconds]
amclain has quit [Quit: Leaving]
User458764 has joined #ruby
pwnd_nsfw` has joined #ruby
elenatanasoiu has joined #ruby
eggoez has quit [Quit: ingatkah kamu?]
pwnd_nsfw has quit [Ping timeout: 260 seconds]
last_staff has joined #ruby
igniting has joined #ruby
nicoulaj has joined #ruby
bronson has joined #ruby
elenatanasoiu has quit [Ping timeout: 260 seconds]
evidex has joined #ruby
aaronds has joined #ruby
xall has quit [Ping timeout: 260 seconds]
teclator has quit [Ping timeout: 268 seconds]
bronson has quit [Ping timeout: 265 seconds]
Jello_Raptor has quit [Ping timeout: 250 seconds]
aaronds has quit [Ping timeout: 268 seconds]
zenspider_ has joined #ruby
zenspider has quit [Read error: Connection reset by peer]
gizless has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
aufi has joined #ruby
firstdayonthejob has joined #ruby
LoneHermit has joined #ruby
Fichtenstein has joined #ruby
teclator has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
kies has quit [Ping timeout: 260 seconds]
mvxlr has joined #ruby
firstdayonthejob has quit [Ping timeout: 256 seconds]
kies has joined #ruby
grh has joined #ruby
symm- has quit [Quit: Leaving...]
mark_66 has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ur5us has joined #ruby
sameerynho has joined #ruby
vuoto has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
ur5us has quit [Remote host closed the connection]
aganov has joined #ruby
ur5us has joined #ruby
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Excess Flood]
wugy has joined #ruby
wugy has quit [Client Quit]
sagax has quit [Ping timeout: 250 seconds]
wugy has joined #ruby
dionysus69 has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
dminuoso_ has quit [Quit: leaving]
vuoto has quit [Quit: Lost terminal]
dionysus69 has joined #ruby
sagax has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
benlieb has quit [Quit: benlieb]
CloCkWeRX has quit [Ping timeout: 244 seconds]
Capela has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hotpancakes has joined #ruby
Jake` has joined #ruby
<Jake`> hrm
Silthias has joined #ruby
gizmore has joined #ruby
gizmore has quit [Remote host closed the connection]
gizmore has joined #ruby
Jake` has quit [Remote host closed the connection]
LoneHermit has quit [Remote host closed the connection]
submitnine has joined #ruby
benlieb has joined #ruby
Silthias1 has quit [Ping timeout: 252 seconds]
hahuang61 has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
benlieb has quit [Client Quit]
gingray has joined #ruby
hotpancakes has quit [Ping timeout: 260 seconds]
tvw has joined #ruby
mvxlr has joined #ruby
ziarkaen has joined #ruby
hahuang61 has quit [Ping timeout: 250 seconds]
ace05 has joined #ruby
minimalism has quit [Quit: minimalism]
ziarkaen has quit [Ping timeout: 252 seconds]
sagax has quit [Ping timeout: 265 seconds]
grh has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
meth has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LiquidInsect has quit [Ping timeout: 268 seconds]
sagax has joined #ruby
Burgestrand has joined #ruby
_sfiguser has quit [Remote host closed the connection]
LiquidInsect has joined #ruby
aaronds has joined #ruby
edwinvdgraaf has joined #ruby
sagax has quit [Ping timeout: 250 seconds]
TomyWork has joined #ruby
Robtop__ has joined #ruby
djbkd_ has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
djbkd_ has joined #ruby
mvxlr has joined #ruby
aaronds has quit [Ping timeout: 265 seconds]
etehtsea has joined #ruby
hutch34 has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 260 seconds]
ace05 has quit [Remote host closed the connection]
djbkd_ has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
blackbombay has joined #ruby
flying has joined #ruby
hutch34 has quit [Ping timeout: 265 seconds]
spectrum has joined #ruby
teclator has quit [Ping timeout: 245 seconds]
spectrum has quit [Client Quit]
blackbombay has quit [Ping timeout: 268 seconds]
jottr has quit [Ping timeout: 244 seconds]
antgel has joined #ruby
dionysus69 has quit [Quit: dionysus69]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
Jello_Raptor has joined #ruby
hello9 has joined #ruby
<hello9> is there a way to pass arguments to a file that is loaded with kernel#load?
nankyokusei has joined #ruby
z3uS has quit [Ping timeout: 260 seconds]
jshjsh has joined #ruby
palms has joined #ruby
nankyokusei has quit [Ping timeout: 245 seconds]
JoshS has quit [Ping timeout: 268 seconds]
blaxter has joined #ruby
palms has quit [Ping timeout: 260 seconds]
elementaru has joined #ruby
the_drow has joined #ruby
teclator has joined #ruby
ofkors has quit [Ping timeout: 244 seconds]
<toretore> hello9: no. you would call something defined in the file and pass the arguments there
<hello9> toretore, not totally sure what you mean. could you give me an example even pseudo
sagax has joined #ruby
AndrewIsHere has joined #ruby
ace05 has joined #ruby
Capela has joined #ruby
<toretore> load 'file'; SomethingInFile.call(arguments)
sagax has quit [Read error: No route to host]
sagax has joined #ruby
Chair has joined #ruby
AndrewIsHere has quit [Ping timeout: 260 seconds]
blackbombay has joined #ruby
aryaching has joined #ruby
meth has quit [Quit: Leaving]
Capela has quit [Ping timeout: 260 seconds]
ace05 has quit [Ping timeout: 252 seconds]
gingray has quit [Ping timeout: 250 seconds]
gingray has joined #ruby
meth has joined #ruby
meth has quit [Remote host closed the connection]
meth has joined #ruby
meth has quit [Max SendQ exceeded]
meth has joined #ruby
pwnd_nsfw` has joined #ruby
meth has quit [Client Quit]
bronson has joined #ruby
frankiee_ has joined #ruby
ziarkaen has joined #ruby
Robtop__ has quit [Ping timeout: 245 seconds]
meth has joined #ruby
aaronds has joined #ruby
tvw has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 244 seconds]
jsrn_ has joined #ruby
ziarkaen has quit [Ping timeout: 245 seconds]
BTRE has quit [Read error: Connection reset by peer]
ziarkaen has joined #ruby
aaronds has quit [Ping timeout: 260 seconds]
elementaru has quit [Remote host closed the connection]
BTRE has joined #ruby
grh has joined #ruby
tomphp has joined #ruby
mikecmpbll has joined #ruby
E7F3RN4 has joined #ruby
astrobunny has quit [Remote host closed the connection]
ocbtec has joined #ruby
E7F3RN4 has quit [Client Quit]
astrobunny has joined #ruby
ocbtec has quit [Client Quit]
ocbtec has joined #ruby
quazimodo has joined #ruby
hello9 has quit [Ping timeout: 250 seconds]
aupadhye has quit [Ping timeout: 265 seconds]
Immune has quit [Ping timeout: 260 seconds]
elenatanasoiu has joined #ruby
L0rdShrek_____ has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobunny has quit [Ping timeout: 250 seconds]
z3uS has joined #ruby
User458764 has joined #ruby
User458764 has quit [Max SendQ exceeded]
User458764 has joined #ruby
aupadhye has joined #ruby
pandaant has joined #ruby
Beams has joined #ruby
jottr has joined #ruby
hightower2 has quit [Read error: Connection reset by peer]
hightower3 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Cohedrin has joined #ruby
meth has quit [Remote host closed the connection]
aryaching has quit [Ping timeout: 245 seconds]
meth has joined #ruby
Caius has joined #ruby
XV8 has quit [Quit: Textual IRC Client: www.textualapp.com]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meth has quit [Remote host closed the connection]
meth has joined #ruby
Immune has joined #ruby
sagax has quit [Ping timeout: 250 seconds]
hahuang61 has joined #ruby
ferr has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 250 seconds]
marr has joined #ruby
sagax has joined #ruby
araujo has joined #ruby
bronson has joined #ruby
araujo has quit [Max SendQ exceeded]
araujo has joined #ruby
jeyraof_ has joined #ruby
aaronds has joined #ruby
jeyraof has quit [Ping timeout: 250 seconds]
tvw has joined #ruby
bronson has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
Rickmasta has joined #ruby
tirej_ has joined #ruby
jeyraof_ has quit [Ping timeout: 268 seconds]
lenwood has joined #ruby
mvxlr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
koooge has quit [Quit: Leaving...]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
xall has joined #ruby
ur5us has quit [Remote host closed the connection]
tau has joined #ruby
fmcgeough has joined #ruby
matp_ is now known as matp
GodFather has joined #ruby
GodFather has quit [Remote host closed the connection]
ogotai has quit [Ping timeout: 256 seconds]
SesMan has joined #ruby
ben__ has joined #ruby
TvL2386 has joined #ruby
charliesome has joined #ruby
workmad3 has joined #ruby
CloCkWeRX has quit [Ping timeout: 260 seconds]
ben__ has quit [Ping timeout: 260 seconds]
jcao219 has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 250 seconds]
quazimodo has quit [Ping timeout: 245 seconds]
blackbombay_ has joined #ruby
blackbombay has quit [Ping timeout: 250 seconds]
c355e3b has joined #ruby
lenwood has quit [Ping timeout: 260 seconds]
Immune has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
ogotai has joined #ruby
Capela has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
Fichtenstein has quit [Ping timeout: 260 seconds]
ace05 has joined #ruby
quazimodo has joined #ruby
P1ro has quit [Remote host closed the connection]
d0nn1e has quit [Ping timeout: 260 seconds]
Capela has quit [Ping timeout: 260 seconds]
Fichtenstein has joined #ruby
d0nn1e has joined #ruby
TvL2386 has quit [Remote host closed the connection]
ace05 has quit [Ping timeout: 260 seconds]
etehtsea has quit [Ping timeout: 250 seconds]
conta has joined #ruby
<frankiee_> Hi! If I have `categories = ['Foo', 'Bar']; puts categories` -- how do I output them as `{:name=>"Foo"}<newline>{:name=>"Foo"}`?
aaronds has quit [Ping timeout: 250 seconds]
<tobiasvl> frankiee_: you mean "Bar" in the second one?
<rob_> frankiee_: categories.each { |c| puts({ :name => c }) }
<frankiee_> yes
<frankiee_> sorry
<frankiee_> lol
<frankiee_> nice one rob_
bluOxigen has quit [Ping timeout: 245 seconds]
bluOxigen has joined #ruby
etehtsea has joined #ruby
etehtsea has quit [Client Quit]
JeanCarloMachado has joined #ruby
_main_ has joined #ruby
hutch34 has joined #ruby
millerti has joined #ruby
__main__ has quit [Ping timeout: 250 seconds]
_main_ is now known as __main__
hutch34 has quit [Ping timeout: 265 seconds]
lenwood has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
Robtop__ has joined #ruby
sameerynho has quit [Quit: WeeChat 1.5]
ben__ has joined #ruby
_main_ has joined #ruby
harfangk has joined #ruby
pwnd_nsfw` has quit [Ping timeout: 245 seconds]
flashpoint9 has joined #ruby
__main__ has quit [Ping timeout: 260 seconds]
_main_ is now known as __main__
ben__ has quit [Ping timeout: 260 seconds]
blackbombay_ has quit [Ping timeout: 245 seconds]
__main__ has quit [Read error: Connection reset by peer]
__main__ has joined #ruby
<tau> is it good practice to keep one class per file?
<tau> is it okay in ruby?
<tau> i have googled around and i couldnt find a good set of arguments on that.
<tau> so, i was wondering about a dialogue approach about that question.
<apeiros> tau: yes
<workmad3> tau: one class per file is fairly normal
<apeiros> basically one module/class per file is standard
<tau> nice.
<tau> it seems good.
<djellemah> tau: rails pretty much insists on it because of autoloading. Most things big enough to be a gem will have one class per file. Some of my once-off scripts have more than one class in the script file.
<tau> i wonder why not enforcing that at run level then.
<tau> if rails insists on that.
<workmad3> because rails doesn't dictate the language... and there are times when you don't want that
<workmad3> it's not too uncommon to do something like declare a bunch of error classes inside another class, for example
meth has quit [Quit: Leaving]
<tau> i see.
jaruga___ has joined #ruby
<workmad3> also, modules get used for namespacing a lot, at which point you can have 'module Foo; module Bar; class Fizz; end; end; end` inside one file... and if those modules didn't exist before, they've just been created in that one file... so a runtime 'one module/class per file' restriction would be troublesome :)
cdg has quit [Remote host closed the connection]
_main_ has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 256 seconds]
<workmad3> the better rule of thumb is probably 'only one module/class with behaviour per file', and even that gets violated in useful cases like djellemah's scripts :)
claudiuinberlin has joined #ruby
Immune has joined #ruby
dionysus69 has joined #ruby
<tau> workmad3 yea.
the_drow has quit [Quit: This computer has gone to sleep]
__main__ has quit [Ping timeout: 250 seconds]
<djellemah> That's actually one of the things I really like about ruby - there are usually quite strong conventions, but nobody will frown at you too hard if you have a good reason to do things differently.
d3v has quit [Ping timeout: 252 seconds]
_main_ is now known as __main__
claudiuinberlin has quit [Ping timeout: 250 seconds]
the_drow has joined #ruby
jeyraof has joined #ruby
ziarkaen_ has joined #ruby
<tau> i'm coming from python. i decided to pick up ruby after 6 years with python.
<tau> i dont plan to switch totally but just keep it up.
sdothum has joined #ruby
hotpancakes has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
Capela has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
<workmad3> yeah, one of the things I don't like too much about python is that there's a bunch of stuff enforced at the runtime that are, IMO, just conventions, and the community seems to be a lot more judgemental when you violate an arbitrary 'standard' even if you have a very good reason
__main__ has joined #ruby
<tau> in fact.
Immune has joined #ruby
Capela has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
hotpancakes has quit [Ping timeout: 260 seconds]
icey-travel is now known as icey
<chrisseaton> Is there a difference between `raise ArgumentError, 'foo'` and `raise ArgumentError.new('foo')`? Why do people write one rather than the other?
synthroid has joined #ruby
aaronds has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
synthroi_ has joined #ruby
<djellemah> Assuming that's not rhetorical - the only time I'd use the latter would be when the exception's constructor takes something other than a single string argument.
synthroid has quit [Ping timeout: 244 seconds]
<chrisseaton> djellemah: so they are exactly the same and it's just a stylistic choice to use the former one?
aaronds has quit [Ping timeout: 265 seconds]
troulouliou_div2 has joined #ruby
quazimodo has quit [Ping timeout: 250 seconds]
troulouliou_div2 has quit [Changing host]
troulouliou_div2 has joined #ruby
johnmilton has joined #ruby
bronson has joined #ruby
ziarkaen_ has quit [Ping timeout: 250 seconds]
bruce_lee has joined #ruby
alibby has joined #ruby
ziarkaen has quit [Ping timeout: 260 seconds]
tvw has quit [Ping timeout: 256 seconds]
<djellemah> chrisseaton: There's another wrinkle https://ruby-doc.org/core-2.3.1/Kernel.html#method-i-raise "(or an object that returns an Exception object when sent an exception message)" although I think I've never actually used that.
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
quazimodo has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
rodfersou has joined #ruby
aryaching has joined #ruby
<headius> Nilium: it would be rather difficult to decompile JRuby's bytecode back to Ruby...and a number of commercial packages based on JRuby ship that way
aaronds has joined #ruby
tyang has joined #ruby
peteykun has joined #ruby
ag4ve_ has joined #ruby
tvw has joined #ruby
ziarkaen has quit [Ping timeout: 250 seconds]
ziarkaen_ has quit [Ping timeout: 256 seconds]
<frankiee_> Can someone assist me mass-importing some products into my db? I will pay.
ftj has joined #ruby
Capela has joined #ruby
<SegFaultAX> frankiee_: Well what do you need help with, exactly?
uranellus has joined #ruby
uranellus has quit [Changing host]
uranellus has joined #ruby
<frankiee_> SegFaultAX: I'm fetching JSON from this API which I'm trying to format into the way Solidus (http://github.com/solidusio/solidus) wants but I just can't get it right
saneax is now known as saneax-_-|AFK
the_drow has quit [Quit: This computer has gone to sleep]
<SegFaultAX> frankiee_: Do you have permission to scrape this API?
<frankiee_> Yep
<frankiee_> Hold on let me put up everything
<SegFaultAX> frankiee_: Then my first suggestion is to fetch all the data and save it locally so you can do the bulk import repeatedly in a test environment until you get it right. That way you don't DDoS the service you're pulling data from.
modin has quit [Ping timeout: 246 seconds]
blackbombay_ has joined #ruby
<frankiee_> SegFaultAX: Great, great idea
sepp2k has joined #ruby
<frankiee_> Can I PM you the gist? It has my API key which I'll regenerate after this
<frankiee_> And also we forgot to discuss the terms of your payment =)
<SegFaultAX> frankiee_: Sure.
cdg has joined #ruby
blackbombay_ has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mim1k|work has joined #ruby
skweek has quit [Ping timeout: 245 seconds]
ych has joined #ruby
aryaching has quit [Ping timeout: 250 seconds]
nadir has joined #ruby
antgel has joined #ruby
mziemys has joined #ruby
jenrzzz has joined #ruby
skweek has joined #ruby
E7F3RN4 has joined #ruby
igniting has quit [Ping timeout: 260 seconds]
xall has quit [Ping timeout: 256 seconds]
AndrewIsHere has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Bish has joined #ruby
<Bish> when creating a tempfile, can i somehow get the basename back
mvxlr has joined #ruby
maloik10 has quit [Remote host closed the connection]
maloik has joined #ruby
Immune has joined #ruby
Capela has quit [Remote host closed the connection]
tirej_ has quit [Read error: Connection reset by peer]
AndrewIsHere has quit [Ping timeout: 245 seconds]
<djellemah> Bish: Tempfile#path not what you want?
nettoweb has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
tvw has quit [Ping timeout: 245 seconds]
User458764 has joined #ruby
tlaxkit has joined #ruby
gingray has quit [Ping timeout: 244 seconds]
Immune has quit [Ping timeout: 260 seconds]
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
<Bish> djellemah: i want the filename, not the path
<Bish> and without the random gibberish that has been added
igniting has joined #ruby
rrawlins has joined #ruby
jhack has joined #ruby
oyes has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
<terens_> Should I use YAML or Psych ?
<tau> i'm just wondering why it is a syntax error to have until expr (do in the next line) end
<tau> like
<tau> until exp
<tau> do
<tau> stuf
<tau> end
<tau> it seems intuitive to me that it should be possible too(due to the do opening a block)
millerti has joined #ruby
<Burgestrand> >> YAML
<ruby[bot]> Burgestrand: # => uninitialized constant YAML (NameError) ...check link for more (https://eval.in/670576)
aupadhye has quit [Ping timeout: 252 seconds]
<Burgestrand> …
<Burgestrand> >> require "yaml"; YAML
<ruby[bot]> Burgestrand: # => Psych (https://eval.in/670577)
<Burgestrand> terens_ ^
ag4ve_ has quit [Ping timeout: 244 seconds]
tvw has joined #ruby
jeyraof has quit [Quit: This computer has gone to sleep]
ramortegui has joined #ruby
<Burgestrand> Bish pass the path through File.basename
<Burgestrand> >> require "tempfile"; Tempfile.open { |io| File.basename(io.path) }
<ruby[bot]> Burgestrand: # => (https://eval.in/670580)
<Burgestrand> Ruby bot doesn't like tempfiles, can't blame it really.
gnufied has quit [Quit: Leaving]
sigurding has joined #ruby
binaryplease has joined #ruby
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
minimalism has joined #ruby
nfk has joined #ruby
binaryplease has left #ruby [#ruby]
Antiarc has quit [Quit: No Ping reply in 180 seconds.]
Antiarc has joined #ruby
ziarkaen has joined #ruby
creat has joined #ruby
teclator has quit [Ping timeout: 250 seconds]
meth has joined #ruby
ziarkaen_ has joined #ruby
weemsledeux has joined #ruby
User458764 has joined #ruby
malconis has joined #ruby
ben__ has joined #ruby
whiteline has quit [Ping timeout: 246 seconds]
igniting has quit [Ping timeout: 250 seconds]
whiteline_ has joined #ruby
ben__ has quit [Remote host closed the connection]
gnufied has joined #ruby
ben__ has joined #ruby
nikivi has joined #ruby
mvxlr has quit [Ping timeout: 260 seconds]
nettoweb has quit [Quit: Textual IRC Client: www.textualapp.com]
hutch34 has joined #ruby
peteykun has quit [Ping timeout: 244 seconds]
ziarkaen has quit [Ping timeout: 250 seconds]
nikivi has quit [Client Quit]
bronson has joined #ruby
ziarkaen_ has quit [Ping timeout: 260 seconds]
the_drow has joined #ruby
hutch34 has quit [Client Quit]
hutch34 has joined #ruby
Capela has joined #ruby
malconis has quit [Ping timeout: 256 seconds]
cdg_ has joined #ruby
cdg has quit [Ping timeout: 245 seconds]
modin has joined #ruby
nettoweb has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
malconis has joined #ruby
lenwood has quit [Ping timeout: 268 seconds]
arooni has quit [Quit: ZNC - http://znc.in]
igniting has joined #ruby
aaronds_ has joined #ruby
martinbjeldbak has quit [Remote host closed the connection]
tvw has quit [Ping timeout: 252 seconds]
<djellemah> tau: do is optional on the end of while and until (and you hardly see it actually used there), and it doesn't mean the same thing as do ... end after a method call.
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
peteykun has joined #ruby
Immune has joined #ruby
aaronds has quit [Ping timeout: 244 seconds]
ben_____ has joined #ruby
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
claudiuinberlin has joined #ruby
webguynow has quit [Ping timeout: 245 seconds]
arooni has joined #ruby
webguynow has joined #ruby
ben__ has quit [Ping timeout: 245 seconds]
claudiuinberlin has quit [Remote host closed the connection]
tvw has joined #ruby
claudiuinberlin has joined #ruby
Akuma has joined #ruby
Immune has quit [Ping timeout: 260 seconds]
aaronds has joined #ruby
kn330 has joined #ruby
jschoolcraft has joined #ruby
jaruga____ has joined #ruby
Immune has joined #ruby
igniting has quit [Ping timeout: 265 seconds]
ChiefAlexander has joined #ruby
aaronds_ has quit [Ping timeout: 265 seconds]
jaruga___ has quit [Ping timeout: 260 seconds]
ych has joined #ruby
hahuang61 has joined #ruby
dnicole has quit [Remote host closed the connection]
tristanp_ has quit []
tristanp has joined #ruby
last_staff has quit [Quit: last_staff]
Immune has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 260 seconds]
blackbombay_ has joined #ruby
vqrs has quit [Ping timeout: 256 seconds]
hutch34 has quit [Ping timeout: 244 seconds]
nettoweb has quit [Ping timeout: 252 seconds]
vqrs has joined #ruby
grug is now known as GRUG
Capela has quit [Remote host closed the connection]
blackbombay_ has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
igniting has joined #ruby
ziarkaen_ has quit [Ping timeout: 252 seconds]
ziarkaen has quit [Ping timeout: 252 seconds]
igniting has joined #ruby
igniting has quit [Changing host]
Capela has joined #ruby
antgel has quit [Ping timeout: 245 seconds]
flashpoint9 has joined #ruby
jrafanie has joined #ruby
Capela has quit [Remote host closed the connection]
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Capela has joined #ruby
Capela_ has joined #ruby
Capela__ has joined #ruby
tvw has quit [Ping timeout: 268 seconds]
pragmaticus has joined #ruby
Capela__ has quit [Read error: Connection reset by peer]
Capela__ has joined #ruby
Capela has quit [Read error: Connection reset by peer]
Capela_ has quit [Ping timeout: 260 seconds]
antgel has joined #ruby
tvw has joined #ruby
<Bish> is there a shortcut for .response_to? & call
<Bish> kinda like the lonely operator just for kicks
<Bish> well, actually obj&.method(:name).call would work right?
mziemys has quit [Remote host closed the connection]
<rob_> .send?
gingray has joined #ruby
whiteline_ is now known as whiteline
<rob_> oh, no
igniting has quit [Remote host closed the connection]
jcao219 has joined #ruby
modin has quit [Ping timeout: 246 seconds]
User458764 has joined #ruby
<Bish> well, method(:not_existing) raises ;;
tlaxkit has quit [Quit: tlaxkit]
jaruga____ has quit [Quit: jaruga____]
chouhoulis has joined #ruby
<Burgestrand> Bish don't think so, you could monkey patch it in and say "call_it_maybe?"
teclator has joined #ruby
modin has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
cpruitt has quit [Quit: cpruitt]
GinoManWrx has quit [Quit: Leaving]
Seich_ has quit [Ping timeout: 258 seconds]
croberts has joined #ruby
<Bish> HeyIJustMetYou::AndThisIsCrazy.so_heres(:my_number).so(proc{ call_me_maybe? })
<Bish> sorry, couldn't resist
hotpancakes has joined #ruby
landry has joined #ruby
landry has quit [Client Quit]
clandry94 has joined #ruby
peteykun has quit [Read error: Connection reset by peer]
clandry94_ has joined #ruby
brainslug has quit [Ping timeout: 248 seconds]
<Bish> can i reuse regular expressions somehow
<Bish> im having a regular expression, and i want to prepend a single letter before that
<Bish> maybe /l#{regex}/
shinnya has joined #ruby
ruby-lang894 has joined #ruby
antgel has quit [Ping timeout: 260 seconds]
<apeiros> Bish: yes
<apeiros> precisely like that.
<apeiros> it'll even keep flags for the interpolated regex.
<clandry94> Hi all, I'm giving a ruby tutorial for new programmers that are in a Java class currently. Part of the tutorial is interactively making a simple program to showcase some of the cooler features of ruby that they would understand. However, I'm at a loss of what I could make in 30-45 minutes that would be basic enough. Any ideas?
jenrzzz has joined #ruby
rippa has joined #ruby
ruby-lang894 has quit [Ping timeout: 260 seconds]
tvw has quit [Read error: Connection reset by peer]
Seich has joined #ruby
tau has quit [Remote host closed the connection]
Sonicblaze has quit [Ping timeout: 248 seconds]
AndrewIsHere has joined #ruby
croberts has quit [Ping timeout: 260 seconds]
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 250 seconds]
<rob_> clandry94: cryptopals.com
lel has quit [Ping timeout: 260 seconds]
Sonicblaze has joined #ruby
Toledo has joined #ruby
mustmodify has joined #ruby
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<mustmodify> when testing modules, do you prefer to create a faked-out class and test against that, so you aren't testing the class that uses it, or to test the module in its natural environment, even though that's sort of polluted?
clandry94_ has quit [Ping timeout: 260 seconds]
railssmith has quit [Ping timeout: 250 seconds]
lel has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AndrewIsHere has quit [Ping timeout: 245 seconds]
peteykun has joined #ruby
antgel has joined #ruby
sigurding has quit [Quit: sigurding]
dviola has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
hogetaro has joined #ruby
Capela__ has quit [Ping timeout: 244 seconds]
clandry94 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
JeanCarloMachado has quit [Ping timeout: 250 seconds]
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
cibs has joined #ruby
lel_ has joined #ruby
jcao219 has quit [Ping timeout: 256 seconds]
conta has quit [Remote host closed the connection]
lel has quit [Ping timeout: 260 seconds]
jackjackdripper has quit [Quit: Leaving.]
conta has joined #ruby
derpson has joined #ruby
speakingcode has joined #ruby
xpl0iter has joined #ruby
<xpl0iter> Hi this http://pastie.org/private/2cyck9mzaz9uofckospsa gives me an error saying undefined method `app_id='
millerti has joined #ruby
<xpl0iter> Can someone please tell me why this happens?
<xpl0iter> I am trying to set a value for a variable
aryaching has joined #ruby
tau has joined #ruby
derpson has quit [Client Quit]
<vktec> xpl0iter: You can't set a variable that's inside an instance unless there's a setter for that variable
pandaant has quit [Remote host closed the connection]
<xpl0iter> vktec, so how do I set the value without passing the value as a parameter?
clandry94 has joined #ruby
<xpl0iter> BTW thanks for the help.
alexherbo2 has quit [Quit: WeeChat 1.5]
dviola has quit [Quit: WeeChat 1.6]
diego3 has joined #ruby
<vktec> xpl0iter: You have to define a setter for that instance variable
diego3 has quit [Changing host]
diego3 has joined #ruby
diego3 is now known as dviola
<vktec> Are you defining BuildManager or is it from a library somewhere?
<xpl0iter> vktec, I am defining BuildManager
bronson has quit [Remote host closed the connection]
<xpl0iter> And ok, thanks. I will checkout setters and getters, I think I forgot what those things do. Still learning Ruby
dviola has quit [Client Quit]
the_drow has quit [Quit: This computer has gone to sleep]
Capela has joined #ruby
grh has quit [Ping timeout: 260 seconds]
diego3 has joined #ruby
diego3 has quit [Changing host]
diego3 has joined #ruby
AndrewIsHere has joined #ruby
diego3 is now known as dviola
aeze has joined #ruby
Capela_ has joined #ruby
<xpl0iter> vktec, thanks. really appreciate it
clandry94 has quit [Client Quit]
GodFather has joined #ruby
<vktec> No problem
mim1k|wo1k has joined #ruby
weemsledeux has joined #ruby
kn330 has quit [Read error: Connection reset by peer]
mark_66 has quit [Quit: Leaving.]
mim1k|work has quit [Ping timeout: 250 seconds]
Capela has quit [Ping timeout: 250 seconds]
aaronds_ has joined #ruby
Capela has joined #ruby
ych has joined #ruby
terens_ has quit [Remote host closed the connection]
aaronds has quit [Ping timeout: 244 seconds]
shinnya has quit [Ping timeout: 260 seconds]
kn330 has joined #ruby
Capela_ has quit [Ping timeout: 244 seconds]
bmurt has joined #ruby
mim1k|wo1k has quit [Ping timeout: 260 seconds]
mim1k|work has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
teclator has quit [Ping timeout: 250 seconds]
xall has joined #ruby
<pagios> a WORD is 32bit on 32bit proc and 64 BIT on 64 bit pc right?
UX7 has joined #ruby
<UX7> Hello
gingray has quit [Ping timeout: 256 seconds]
<apeiros> pagios: word size is whatever the spec for the arch says
<apeiros> what you said is the most common
<pagios> apeiros, and a memory location contains 1 WORD
polishdub has joined #ruby
nikivi has joined #ruby
<apeiros> no idea. but almost certainly highly architecture specific.
dionysus69 has quit [Ping timeout: 260 seconds]
aaronds has joined #ruby
<UX7> I am a beginner, I'd like to know what Ruby is used for?
machinewar has joined #ruby
m1911 has joined #ruby
aaronds_ has quit [Ping timeout: 252 seconds]
m1911 has quit [Remote host closed the connection]
nikivi has quit [Quit: irc]
aaronds_ has joined #ruby
<franknat2vidad> Hi @UX7! I'm also a beginner. I hope this helps: You can use Ruby for several things. Web development, App development, backend API development, and so much more. It really just depends on what you want to accomplish.
saneax-_-|AFK is now known as saneax
franknat2vidad has quit [Quit: leaving]
CoderFrank has joined #ruby
aaronds has quit [Ping timeout: 250 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ReK2 has joined #ruby
jtdowney has quit [Quit: ZNC]
benlieb has joined #ruby
jtdowney has joined #ruby
jtdowney has quit [Changing host]
jtdowney has joined #ruby
hotpancakes has quit []
jenrzzz has joined #ruby
nikivi has joined #ruby
skweek has quit [Ping timeout: 245 seconds]
brainslug has joined #ruby
ezea has joined #ruby
ezea has quit [Client Quit]
millerti has joined #ruby
teclator has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
amclain has joined #ruby
TomyWork has quit [Ping timeout: 256 seconds]
peteykun has quit [Quit: Leaving]
[Butch] has joined #ruby
E7F3RN4 has quit [Ping timeout: 265 seconds]
aganov has quit [Remote host closed the connection]
nettoweb has joined #ruby
hahuang61 has joined #ruby
oyes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hutch34 has joined #ruby
wdb is now known as quoboo
speakingcode has quit [Quit: Lost terminal]
hahuang61 has quit [Ping timeout: 260 seconds]
nikivi has quit [Quit: irc]
elenatanasoiu has quit [Ping timeout: 250 seconds]
aufi has quit [Quit: Leaving]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ych has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashpoint9 has quit [Read error: Connection reset by peer]
benlieb has quit [Quit: benlieb]
flashpoint9 has joined #ruby
cdg_ has quit [Remote host closed the connection]
GRUG has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
blackbombay_ has joined #ruby
sepp2k has quit [Quit: Leaving.]
GRUG has joined #ruby
submitnine has quit [Remote host closed the connection]
elenatanasoiu has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
TomyLobo has joined #ruby
ramfjord has joined #ruby
gusrub has joined #ruby
oyes has joined #ruby
flying has quit []
User458764 has joined #ruby
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
xpl0iter has quit [Quit: Leaving]
sneakerhax has quit [Ping timeout: 260 seconds]
benlieb has joined #ruby
xall has quit [Ping timeout: 268 seconds]
marr has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
jberkhahn has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<vktec> UX7: What do you want to use Ruby for?
Devalo has joined #ruby
roflmyeggo has joined #ruby
<UX7> vktec, Antivirus
ych has joined #ruby
<roflmyeggo> can you use the next keyword in an until loop? if not, is there an alternative?
<vktec> UX7: That's probably not a great idea. I'd use C or Rust for something like that, due to the performance requirement
chouhoulis has quit [Ping timeout: 252 seconds]
<vktec> roflmyeggo: Try it out in irb or pry
bronson has joined #ruby
Capela has quit [Remote host closed the connection]
anaiden_ has joined #ruby
perry has joined #ruby
perry has joined #ruby
perry has quit [Changing host]
LoneHerm_ has joined #ruby
e1z0_ has joined #ruby
<e1z0_> hi
<blackbombay_> hi
<vktec> Hi
JeanCarloMachado has joined #ruby
<e1z0_> :(
marr has joined #ruby
jcao219 has joined #ruby
<havenwood> e1z0_: It looks like you're using a package manager that has a separate ruby-dev package. How'd you install Ruby and with what OS/distro?
<e1z0_> no, from source. debian jessie
<havenwood> "You have to install development tools first."
<havenwood> e1z0_: To be thorough: sudo apt-get install -y build-essential bison zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<e1z0_> but headers does exist in /usr/local/include/ruby-2.3.0/
ptulskie has joined #ruby
<e1z0_> havenwood, everything is installed already
<havenwood> e1z0_: Gist the referenced mkmf.log file?
bronson has quit [Remote host closed the connection]
ramfjord has joined #ruby
marr has quit [Read error: Connection reset by peer]
<e1z0_> creating manually conftest.c with ruby include and running "gcc -o conftest -I/usr/local/include/ruby-2.3.0/i686-linux -I/usr/local/include/ruby-2.3.0/ruby/backward -I/usr/local/include/ruby-2.3.0 -I. -D_FILE_OFFSET_BITS=64 -w -O0 -Wall conftest.c -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/usr/local/lib -L/usr/local/lib -lruby-static -lpthread -lgmp -ldl -lcrypt -lm -lc" compiles ok
edwinvdgraaf has quit [Remote host closed the connection]
weemsledeux has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cyphase has quit [Ping timeout: 250 seconds]
ptulskie has quit [Quit: Linkinus - http://linkinus.com]
UX7 has left #ruby [#ruby]
flashpoi_ has joined #ruby
flashpoint9 has quit [Read error: Connection reset by peer]
AndrewIsHere has quit []
aaronds_ has quit [Ping timeout: 260 seconds]
anaiden_ has quit [Quit: anaiden_]
nitric has joined #ruby
jsrn_ has quit [Read error: Connection reset by peer]
flashpoi_ has quit [Remote host closed the connection]
blaxter has quit [Quit: foo]
dionysus69 has joined #ruby
nikivi has joined #ruby
whathappens has joined #ruby
flashpoint9 has joined #ruby
<e1z0_> some kind of bug here
ych has quit [Quit: Textual IRC Client: www.textualapp.com]
gusrub has quit [Remote host closed the connection]
CSWookie has joined #ruby
SCHAAP137 has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<CSWookie> Hey, folks. Is there a way to make a ruby function that injects variables into the calling context. Super dirty, I know.
d3d1rty has quit [Ping timeout: 260 seconds]
kinghussien has joined #ruby
_djbkd has joined #ruby
<vktec> CSWookie: I seriously doubt it and why the hell would you want to do that anyway?!
<vktec> :P
nikivi has quit [Quit: irc]
<vktec> There are some languages that let you do stuff like that, but it's usually a bad idea
<CSWookie> vktec: I want to make a library of functions that I can call in Vagrantfiles, so that I can call the "test_grid" function, and it sets the variables I need for that, and the "development" function, and it sets the variables I need for that.
rcvalle has joined #ruby
Devalo has quit [Remote host closed the connection]
railssmith has joined #ruby
nikivi has joined #ruby
Devalo has joined #ruby
<CSWookie> vktec: Oh, it's almost ALWAYS a bad idea. But I'm in an odd situation here... When configuration is code, I want to be able to do the equivalent of ". config.sh" in bash.
pawnbox_ has joined #ruby
marxarelli has joined #ruby
<vktec> CSWookie: Hmm... I'm not particularly familiar with Vagrant, but perhaps you could extend a class or something?
pawnbox has quit [Read error: Connection reset by peer]
dionysus70 has joined #ruby
cyphase has joined #ruby
<CSWookie> vktec: Maybe, but I'm wanting to avoid writin gtoo much code for this... It's gonna be maintained by a bunch of sysops, after all.
<vktec> If it comes to it, you can always return an array and set the variables manually like foo, bar, baz = my_func
<CSWookie> Also, I'm really not a huge fan of Ruby, so I don't want to get eyeballs deep if I can avoid it.
<vktec> Blasphemy! :P
dionysus69 has quit [Ping timeout: 250 seconds]
dionysus70 is now known as dionysus69
alibby has quit [Quit: Leaving.]
<vktec> I agree, Ruby can be slightly odd when coming from some other languages
<CSWookie> Maybe... Is there a function that I pass a has and it sets variables based on key=value?
kinghussien has quit [Ping timeout: 245 seconds]
<vktec> > pass a has
<vktec> wut
<CSWookie> I have a feeling if I did get eyeballs deep in it, I'd really like blocks.
<CSWookie> sorry, hash.
<CSWookie> Not has.
oyes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<vktec> No, I don't think you can do that
<vktec> biab
marr has joined #ruby
Capela has joined #ruby
Devalo has quit [Ping timeout: 252 seconds]
roflmyeggo has quit [Ping timeout: 260 seconds]
aaronds has joined #ruby
nikivi has quit [Quit: irc]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<LyndsySimon> Gah. I've been doing Ruby about a month now and am learning Clojure concurrently. Is there a ruby way to access a hashmap given a series of nested keys?
<LyndsySimon> I'm looking for something analogous to this clojure statement: (get-in {:gp {:p {:c "value"}}} [:gp :p :c])
<havenwood> LyndsySimon: dig
<LyndsySimon> Awesome, ty. I knew it was out there, but forgot its name.
yardenbar has quit [Ping timeout: 252 seconds]
chopmo has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
Chair has quit [Ping timeout: 265 seconds]
derpson has joined #ruby
Devalo has joined #ruby
LoneHerm_ has joined #ruby
jeremyhall has joined #ruby
evidex has quit [Ping timeout: 260 seconds]
Beams has quit [Quit: .]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
LoneHerm_ has quit [Remote host closed the connection]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arup_r has joined #ruby
<arup_r> Hi, how do I delete the tempfile created by Tempfile.new ? my code: https://gist.github.com/aruprakshit/2f45876328b3f0101d8fee41e3c49b96
<blackbombay_> arup_r: #unlink no?
<arup_r> inside the block?
<arup_r> I don't have the referenc of file object
<arup_r> I know the method. Not sure how to use when using block
<arup_r> blackbombay_: ^
<arup_r> ok
<Papierkorb> arup_r: it'll delete it automatically.
<arup_r> figured out
<blackbombay_> do you need to use it with a block? maybe it does sth like yield; unlink.
<arup_r> No it will now
<arup_r> not*
<Papierkorb> > When a Tempfile object is garbage collected, or when the Ruby interpreter exits, its associated temporary file is automatically deleted.
<blackbombay_> thats unusual, File.open closes the fd for you
<arup_r> it just closes. but block return the file object
<arup_r> so I can clean it
claudiuinberlin has quit []
<blackbombay_> cool
<arup_r> oh I see.
<blackbombay_> dont rely on the GC
<Papierkorb> arup_r: and just in the next paragraph it shows how to do it manually
<blackbombay_> unlink it early
<arup_r> but for me tmp/ folder got piles of files
<blackbombay_> yes
<arup_r> Papierkorb: all good
<blackbombay_> dont rely on that behaviour
<arup_r> I didn't read "The call returns the value of the block." which is what I needed to call `unlink`
<arup_r> thanks floks
<blackbombay_> youre welcome
<arup_r> :P spelling mistake
<blackbombay_> btw
<blackbombay_> youre in india right?
oyes has joined #ruby
<arup_r> yes
<arup_r> you?
hahuang61 has joined #ruby
<blackbombay_> europe atm. im thinking of travelling though, to india, where would you recommend?
<blackbombay_> not set in stone yet but india is in the pot of choices :)
<arup_r> Goa, Kerala .. must see. :)
kn330 has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<eam> everyone recommends Kerala
<arup_r> Then Mumbai and delhi and Kolkata ( hometown )
<blackbombay_> thx, i will google em :)
<arup_r> ok fine :)
Akuma has quit [Quit: So long sukkas!]
<eam> arup_r: big cities are kinda gross, honestly
chopmo has quit [Ping timeout: 245 seconds]
<blackbombay_> generally agree
<arup_r> true.
<eam> blackbombay_: stay at the lake palace in Udaipur
Cohedrin has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
<eam> it's a fantastic break from the bustle
<arup_r> eam: how many times? :)
<arup_r> Or best question, you are from? :)
<eam> me? just once
<arup_r> ok
<eam> I'm from california
<arup_r> India has many many places to visit.
<blackbombay_> is internet available in most places?
<arup_r> sorry, it sucks here
<eam> a friend had a wedding in nashik (which is also amazing - it's very like Napa's wine country) and we toured Rajasthan
<arup_r> :(
wugy has quit []
<eam> blackbombay_: yeah
<blackbombay_> cool
<arup_r> Rajasthan i was going to suggest too
<eam> lots of temples, so many temples
<blackbombay_> what about hashish? did you try it?
<eam> yes indeed
SeepingN has joined #ruby
lucie56 has joined #ruby
<blackbombay_> interesting
saneax is now known as saneax-_-|AFK
<lucie56> Hello, i'm using ruby 2.3.1, is this correct : (puts 'Please, a number !!!'; redo) unless a_number?(turn)
<eam> I have a great story about having a "stong" bhang lassi in Jaisalmer and waking up on a camel walking through the thar desert
<blackbombay_> lol
<blackbombay_> sounds wild
<blackbombay_> lucie56: redo should be in a begin; end block no?
synthroid has joined #ruby
<terens> hello
<lucie56> it is in a while; end block
<toretore> lucie56: try uncleverifying your code, it'll be more clear what's happening and how to do it then
<lucie56> in fact i try rubocop
<lucie56> it tells me that the ";" is not good
<lucie56> my question, how can i refactor this part of code ?
<lucie56> (puts 'Please, a number !!!'; redo) unless a_number?(turn)
<toretore> lucie56: it must be seen in the context of the whole block, which we don't have
<Nilium> Stop trying to write that on one line, I think.
<Nilium> It'd be a good start, anyway.
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
synthroi_ has quit [Ping timeout: 252 seconds]
<lucie56> ok
lucie56 has quit [Client Quit]
<toretore> ok
<Nilium> ok
splud_ has joined #ruby
chouhoulis has joined #ruby
chouhoulis has quit [Client Quit]
phantummm has quit [Quit: WeeChat 1.5]
marr has quit [Ping timeout: 265 seconds]
GinoManWorks has joined #ruby
bjonnh has joined #ruby
<bjonnh> I'm trying to install vagrant-libvirt that is using ruby
<bjonnh> ERROR: Could not find a valid gem 'ruby-libvirt' (>= 0), here is why:
<bjonnh> Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
<bjonnh> I'm getting this error ^
railssmi_ has joined #ruby
<bjonnh> (on linux)
<ule> Hey guys.. Is there a way to easy sort this: foo = [["US 1", "foo"], ["US 10", "foo"], ["US 5", "foo"]]
quazimodo has quit [Ping timeout: 256 seconds]
<bjonnh> so I added the certificate
<bjonnh> in my ruby system folder
<bjonnh> in rubygems
<bjonnh> but it still complains
railssmith has quit [Ping timeout: 245 seconds]
<c-c> ule sort with a comparison function?
grh has joined #ruby
<ule> foo.sort
<ule> => [["US 1", "foo"], ["US 10", "foo"], ["US 5", "foo"]]
<ule> c-c: I need something like: US 1, US 5, US 10
<ule> I mean, I can split that US and do something
<ule> but I'm just wondering if there is a easy way
ramfjord has quit [Ping timeout: 245 seconds]
<c-c> ule foo.sort_by! ?
<Papierkorb> >> [["US 1", "foo"], ["US 10", "foo"], ["US 5", "foo"]].sort_by{|a, _| a[/(\d+)/].to_i}
<ruby[bot]> Papierkorb: # => [["US 1", "foo"], ["US 5", "foo"], ["US 10", "foo"]] (https://eval.in/670705)
<ule> Papierkorb: dammit
antgel has quit [Ping timeout: 260 seconds]
<ule> Papierkorb: you rock! thanks!!
<ule> c-c: thanks to
<ule> :)
<Papierkorb> cheers
<c-c> Papierkorb: whats "_" ?
<c-c> ule: gl!
e1z0_ has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has joined #ruby
AlphaAtom has joined #ruby
<c-c> hm, is that in enumerable...
nettoweb has joined #ruby
synthroi_ has joined #ruby
rrawlins has quit [Remote host closed the connection]
<c-c> ok, so _ is an "ignored variable" here: http://po-ru.com/diary/rubys-magic-underscore/
Capela_ has joined #ruby
symm- has joined #ruby
troulouliou_div2 has quit [Ping timeout: 252 seconds]
synthroid has quit [Ping timeout: 268 seconds]
<bjonnh> :(
rrawlins_ has joined #ruby
Capela has quit [Ping timeout: 244 seconds]
<bjonnh> I had to disable ssl completely
E7F3RN4 has joined #ruby
derpson has left #ruby ["再見"]
elenatanasoiu has quit [Ping timeout: 260 seconds]
tomphp has joined #ruby
aaronds has quit [Ping timeout: 260 seconds]
arup_r has quit [Remote host closed the connection]
bovis has joined #ruby
failshell has joined #ruby
firstdayonthejob has joined #ruby
jackjackdripper has joined #ruby
GodFather has joined #ruby
ngrin_ has joined #ruby
<ule> Papierkorb: so.. do you know if we have something in ruby that automatically does that?
<ule> my problem here is.. I don't know which format I'll get in that array..
ruby_ has joined #ruby
<ule> could be [A-Z][0-9] but could be just [A-Z]
ramfjord has joined #ruby
jackjackdripper has quit [Client Quit]
gregf_ has quit [Quit: Page closed]
jackjackdripper has joined #ruby
<ule> I can filter it before applying the sort
<ule> with regex
mhib has joined #ruby
nowhere_man has joined #ruby
eljimmy has quit [Read error: No route to host]
dobriennn has joined #ruby
igniting has joined #ruby
eljimmy has joined #ruby
ngrin has quit [Ping timeout: 250 seconds]
<dobriennn> is there a common reason for my database.yml file not use the environment variables set by .env.production? I'm running a cap production deploy and it's bombing out trying to connect to mysql over a socket instead of the host information provided
<c-c> is that a rails question?
E7F3RN4 has quit [Ping timeout: 265 seconds]
<dobriennn> ahh crap, probably is
JacobsLadd3r has joined #ruby
<c-c> well, I will still guess, that your environment variables or some flag used to execute that is incorrect
phantummm has joined #ruby
GodFather has quit [Remote host closed the connection]
ngrin__ has joined #ruby
<terens> I want to execute another process that would do some updates. However I want to monitor the progress of the process. Also there should be only one instance running. I haven't found a 100% good solution. My initial implementation is to acquire an EX lock to a file in order to prevent multiple instances running. Then in order to check from another process whether it is running I check it with ruby
<terens> ps.
djbkd_ has joined #ruby
GodFather has joined #ruby
ngrin_ has quit [Ping timeout: 250 seconds]
_djbkd has quit [Read error: Connection reset by peer]
bocaneri has quit [Remote host closed the connection]
gusrub has joined #ruby
E7F3RN4 has joined #ruby
bjonnh has left #ruby ["WeeChat 1.0.1"]
zacts has quit [Ping timeout: 245 seconds]
edwinvdgraaf has joined #ruby
meth has quit [Quit: Leaving]
gusrub has quit []
cdg has quit [Remote host closed the connection]
mhib has quit [Quit: Leaving]
tomphp has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tomphp has joined #ruby
jcao219 has quit [Ping timeout: 245 seconds]
peaches is now known as umlate
umlate is now known as umlaut
umlaut is now known as peaches
nicoulaj has quit [Remote host closed the connection]
creat has quit [Ping timeout: 268 seconds]
tomphp has quit [Client Quit]
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
mpwin has joined #ruby
troys has joined #ruby
mpwin has left #ruby [#ruby]
ramfjord has quit [Ping timeout: 268 seconds]
bronson has joined #ruby
Capela_ has quit [Read error: Connection reset by peer]
gusrub has joined #ruby
Capela has joined #ruby
mpwin has joined #ruby
zeroDi has joined #ruby
jackie_ has joined #ruby
mikecmpbll has joined #ruby
bronson has quit [Ping timeout: 268 seconds]
<jackie_> Hi, all. I haven't used ActiveRecord in a while was hoping someone knows a better way to do this.
machinewar has quit [Ping timeout: 260 seconds]
jenrzzz has joined #ruby
<jackie_> Post.where(id: TagIndex.where(tag: "test").pluck(:post_id))
<jackie_> I'm trying to get all 'Post's where a TagIndex matches a 'post_id'. Here's what I have:
evidex has joined #ruby
shazaum_ has joined #ruby
claudiuinberlin has joined #ruby
<jackie_> Never mind, I figured it out: Post.joins(:tag_indices).where(tag_indices: { tag: "test" }) .
jackie_ has quit [Quit: Page closed]
jenrzzz has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
quoboo is now known as b
b is now known as quoboo
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
bauruine has quit [Ping timeout: 260 seconds]
bauruine_ has joined #ruby
johnmilton has quit [Remote host closed the connection]
ziarkaen_ has quit [Ping timeout: 256 seconds]
ziarkaen has quit [Ping timeout: 256 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]
dionysus69 has quit [Ping timeout: 265 seconds]
jeremyhall has quit [Read error: Connection reset by peer]
jeremyhall has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
d3v has joined #ruby
benlieb has quit [Quit: benlieb]
jottr_ has joined #ruby
ebbflowgo has joined #ruby
benlieb has joined #ruby
jottr has quit [Ping timeout: 268 seconds]
ebbflowgo has quit [Client Quit]
JacobsLadd3r has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox_ has quit [Remote host closed the connection]
<frankiee_> I'm looking for a freelancer for a quick db import gig. Hope this is the right place to ask. I've also asked in #rubyonrails.
Jamo has joined #ruby
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
anisha has joined #ruby
benlieb has quit [Quit: benlieb]
synthroi_ has quit [Remote host closed the connection]
Jamo has quit [Client Quit]
Jamo has joined #ruby
Jamo has quit [Client Quit]
igniting has quit [Ping timeout: 250 seconds]
Jamo has joined #ruby
Jamo has quit [Client Quit]
alireza1 has joined #ruby
troys is now known as troys_
jackjackdripper has quit [Quit: Leaving.]
rrawlins_ has quit []
alireza has quit [Ping timeout: 260 seconds]
jackjackdripper has joined #ruby
Rodya_ has joined #ruby
shazaum_ has quit [Quit: Leaving]
ICantCook has quit [Ping timeout: 265 seconds]
jshjsh has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
ICantCook has joined #ruby
aaronds has joined #ruby
toretore has quit [Ping timeout: 250 seconds]
johnmilton has joined #ruby
Jackneill_ has joined #ruby
jottr has joined #ruby
jottr_ has quit [Ping timeout: 260 seconds]
ICantCook has quit [Ping timeout: 268 seconds]
bluOxigen has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
ICantCook has joined #ruby
Jamo_ has quit [Read error: Connection reset by peer]
Jamo has joined #ruby
Jamo has quit [Client Quit]
ag4ve_ has joined #ruby
<ag4ve_> is there a // like operator?
Jamo has joined #ruby
Jamo has quit [Remote host closed the connection]
Jamo has joined #ruby
Jamo has quit [Client Quit]
<ag4ve_> so: foo = false; str = foo // "bar"
Jamo has joined #ruby
Jamo has quit [Client Quit]
<vktec> >> foo = false; str = foo || "bar"; puts str
<ruby[bot]> vktec: # => bar ...check link for more (https://eval.in/670758)
<vktec> ag4ve_: Is that what you're looking for?
Jamo has joined #ruby
<ag4ve_> yeah, thanks
<ag4ve_> should've figured
<vktec> No problem
<vktec> I've never seen // used for that though...
<tobiasvl> me neither
<tobiasvl> ag4ve_: can also be used like this:
<tobiasvl> >> foo = false; foo ||= "bar"; foo ||= "baz"; puts foo
<ruby[bot]> tobiasvl: # => bar ...check link for more (https://eval.in/670759)
benlieb has joined #ruby
kirun has joined #ruby
aaronds has quit [Ping timeout: 260 seconds]
[Butch] has quit [Quit: I'm out . . .]
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
<ag4ve_> yeah thanks
whathapp_ has joined #ruby
<ag4ve_> just had a brain fart (kinda feeling stupid)
skweek has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
<vktec> Don't worry about it, it happens :)
startupality has joined #ruby
ngrin__ has quit [Quit: Leaving]
ngrin has joined #ruby
dionysus69 has joined #ruby
SesMan has joined #ruby
Joufflu has joined #ruby
swills has quit [Read error: Connection reset by peer]
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
lxsameer has quit [Quit: WeeChat 1.6]
SCHAAP137 has quit [Quit: Leaving]
swills has joined #ruby
ur5us has joined #ruby
synthroid has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ngrin has quit [Quit: Leaving]
ramfjord has joined #ruby
ag4ve_ has quit [Ping timeout: 250 seconds]
djbkd_ has quit [Remote host closed the connection]
marxarelli is now known as marxarelli|afk
_djbkd has joined #ruby
dobriennn has quit [Ping timeout: 268 seconds]
User458764 has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
zeroDi has quit [Read error: Connection reset by peer]
zeroDivi1 has joined #ruby
aaronds has joined #ruby
_djbkd has quit [Ping timeout: 268 seconds]
jaruga____ has quit [Quit: jaruga____]
hahuang61 has quit [Ping timeout: 268 seconds]
last_staff has quit [Read error: Connection reset by peer]
_djbkd has joined #ruby
conta has quit [Remote host closed the connection]
naprimer_2 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
conta has joined #ruby
naprimer_3 has quit [Ping timeout: 252 seconds]
hahuang61 has joined #ruby
jenrzzz has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
JacobsLadd3r has joined #ruby
ag4ve_ has joined #ruby
Madplatypus has joined #ruby
skweek has quit [Ping timeout: 250 seconds]
johnmilton has quit [Ping timeout: 265 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
jeremyhall has quit [Read error: Connection reset by peer]
JeanCarloMachado has quit [Quit: Lost terminal]
jeremyhall has joined #ruby
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
balazs has joined #ruby
ixti has joined #ruby
rkazak has joined #ruby
last_staff has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
jottr_ has joined #ruby
chrisja has joined #ruby
last_staff has quit [Client Quit]
jottr has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
<chrisarcand> I'm looking at the differences between multiline and nested modules and get the lexical aspect of it (I think) but confused as to what the exact reasoning is for trying to declare module nested on one line with a constant that doesn't exist:
tyang_ has joined #ruby
<chrisarcand> >> module A::B; end
<ruby[bot]> chrisarcand: # => uninitialized constant A (NameError) ...check link for more (https://eval.in/670765)
<chrisarcand> Why exactly does that fail? Putting them on multiple lines succeeds.
mustmodify has left #ruby [#ruby]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zapata has quit [Quit: WeeChat 1.6]
marxarelli|afk is now known as marxarelli
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
tyang has quit [Ping timeout: 244 seconds]
marr has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ebbflowgo has joined #ruby
cdg has quit [Ping timeout: 268 seconds]
cdg has joined #ruby
quazimodo has joined #ruby
nchambers is now known as Scrooge
dopamean_ has joined #ruby
sigurding has joined #ruby
bmurt has joined #ruby
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
ag4ve_ has quit [Ping timeout: 260 seconds]
synthroid has quit []
spoopyfox is now known as staticfox
skweek has joined #ruby
fnodeuser has joined #ruby
troys_ is now known as troys
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
fnodeuser has left #ruby [#ruby]
whathappens has joined #ruby
whathapp_ has quit [Read error: Connection reset by peer]
whiteline has quit [Remote host closed the connection]
sigurding has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
whiteline has joined #ruby
Rodya_ has quit [Remote host closed the connection]
rodfersou is now known as rodfersou|lunch
ziarkaen_ has quit [Ping timeout: 245 seconds]
ziarkaen has quit [Ping timeout: 245 seconds]
skweek has quit [Ping timeout: 245 seconds]
rodfersou|lunch is now known as rodfersou|dinner
llua has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
skweek has joined #ruby
shmuli has joined #ruby
sigurding has joined #ruby
tau has quit [Remote host closed the connection]
nopolitica has quit [Ping timeout: 252 seconds]
tyang_ has quit [Ping timeout: 244 seconds]
nopolitica has joined #ruby
skweek has quit [Ping timeout: 245 seconds]
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
swills has quit [Read error: Connection reset by peer]
flashpoint9 has quit [Remote host closed the connection]
smlocal has joined #ruby
flashpoint9 has joined #ruby
rodfersou|dinner has quit [Quit: leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
swills has joined #ruby
ziarkaen has quit [Ping timeout: 250 seconds]
ziarkaen_ has quit [Ping timeout: 244 seconds]
bronson has quit [Read error: Connection reset by peer]
bronson has joined #ruby
tvw has joined #ruby
swills has quit [Max SendQ exceeded]
nopolitica has quit [Ping timeout: 245 seconds]
dnicole has joined #ruby
jcao219 has joined #ruby
flashpoint9 has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
whathapp_ has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
failshell has quit []
quazimodo has quit [Ping timeout: 250 seconds]
swills has joined #ruby
DEac-_ has quit [Ping timeout: 256 seconds]
aaronds has quit [Ping timeout: 260 seconds]
DEac- has joined #ruby
aaronds has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
tyaakow has joined #ruby
csk has joined #ruby
chouhoulis has quit [Remote host closed the connection]
whathapp_ has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
AndrewIsHere has joined #ruby
millerti has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
sigurding has quit [Quit: sigurding]
muelleme has joined #ruby
<hanmac> chrisarcand: checkout Module#nesting ... its important for the resolution of constants
whathappens has quit [Read error: Connection reset by peer]
ramortegui has quit [Remote host closed the connection]
whathappens has joined #ruby
sepp2k has joined #ruby
Denis has joined #ruby
<Denis> hello!)
<vktec> Hi Denis
Denis is now known as Guest10453
<Guest10453> Sorry, but i'm noob in ruby. Can I check yield for empty? Example: yield(:column_filter). What i do: <%= if yield(:column_filter).empty? -%> ... etc. But it isnt work.
oyes has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ace05 has joined #ruby
jottr has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
jottr_ has quit [Ping timeout: 250 seconds]
<vktec> That's not really a Ruby question. You'd probably be better off asking on #rubyonrails
<Guest10453> ok)
<Guest10453> thx
evidex has quit [Ping timeout: 260 seconds]
GodFather has joined #ruby
epitron has quit [Read error: Connection reset by peer]
johnmilton has joined #ruby
flashpoint9 has joined #ruby
xall has joined #ruby
lel_ has quit [Quit: leaving]
grh has quit [Ping timeout: 265 seconds]
ag4ve_ has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
claudiuinberlin has quit []
flashpoint9 has joined #ruby
TomyLobo has quit [Ping timeout: 250 seconds]
DEac- has quit [Ping timeout: 250 seconds]
whathappens has quit [Read error: Connection reset by peer]
whathapp_ has joined #ruby
matp has quit [Read error: Connection reset by peer]
DEac- has joined #ruby
matp has joined #ruby
flashpoint9 has quit [Ping timeout: 260 seconds]
peaches has left #ruby ["restart"]
whathapp_ has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
evidex has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
csk has quit [Read error: Connection reset by peer]
blackwind_123 has quit [Ping timeout: 265 seconds]
whathapp_ has joined #ruby
skweek has joined #ruby
jhack has quit [Quit: jhack]
whathappens has quit [Read error: Connection reset by peer]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
csk has joined #ruby
muelleme has quit [Ping timeout: 260 seconds]
hahuang61 has quit [Ping timeout: 268 seconds]
johnmilton has quit [Ping timeout: 268 seconds]
nopolitica has joined #ruby
troys is now known as troys_
DEac- has quit [Ping timeout: 265 seconds]
Fichtenstein has quit [Quit: Fichtenstein]
discopatrick has quit [Ping timeout: 250 seconds]
DEac- has joined #ruby
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
hahuang61 has joined #ruby
discopatrick has joined #ruby
swills has quit [Ping timeout: 268 seconds]
swills has joined #ruby
renderful has quit [Remote host closed the connection]
ace05 has quit [Read error: Connection reset by peer]
ace05 has joined #ruby
troys_ is now known as troys
gizless has joined #ruby
gizmore has quit [Ping timeout: 250 seconds]
johnmilton has joined #ruby
marxarelli has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
hutch34 has quit [Ping timeout: 244 seconds]
lacour has joined #ruby
troulouliou_div2 has joined #ruby
ziarkaen has quit [Ping timeout: 244 seconds]
polishdub has quit [Quit: Leaving]
ziarkaen_ has quit [Ping timeout: 250 seconds]
marxarelli has joined #ruby
skweek has quit [Ping timeout: 260 seconds]
csk has quit [Quit: ZZZzzz…]
nopolitica has quit [Ping timeout: 260 seconds]
marxarelli has quit [Read error: Connection reset by peer]
c355e3b has quit [Ping timeout: 250 seconds]
johnmilton has quit [Remote host closed the connection]
hutch34 has joined #ruby
c355e3b has joined #ruby
aaronds_ has joined #ruby
cdg has quit [Remote host closed the connection]
aaronds has quit [Ping timeout: 245 seconds]
dmin7b5 has joined #ruby
nettoweb has joined #ruby
poikon has quit [Ping timeout: 260 seconds]
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
E7F3RN4 has quit [Ping timeout: 250 seconds]
biberu has quit []
A124 has quit [Read error: Connection reset by peer]
poikon has joined #ruby
AlphaAtom has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nettoweb has quit [Client Quit]
A124 has joined #ruby
benlieb has quit [Quit: benlieb]
ziarkaen has quit [Ping timeout: 244 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
ziarkaen_ has quit [Ping timeout: 250 seconds]
AndrewIsHere has quit []
ebbflowgo has quit [Read error: Connection reset by peer]
ebbflowgo has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
nopolitica has joined #ruby
Jackneill_ has quit [Remote host closed the connection]
cdg has joined #ruby
quazimodo has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
bovis has quit [Quit: leaving]
nettoweb has joined #ruby
jackjackdripper has quit [Client Quit]
troulouliou_div2 has quit [Quit: Leaving]
brent__ has joined #ruby
jeremyhall has quit [Ping timeout: 260 seconds]
solocshaw has joined #ruby
weemsledeux has joined #ruby
Guest10453 is now known as n0a
flashpoint9 has joined #ruby
kirun has quit [Quit: Konversation terminated!]
mpwin has quit [Quit: Leaving...]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
E7F3RN4 has joined #ruby
nettoweb has joined #ruby
tomphp has joined #ruby
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
solocshaw has quit [Ping timeout: 260 seconds]
whathapp_ has quit [Quit: Leaving...]
tomphp has quit [Client Quit]
smlocal has quit [Remote host closed the connection]
ChiefAlexander has quit [Remote host closed the connection]
LoneHerm_ has joined #ruby
epitron has joined #ruby
startupality has quit [Quit: startupality]
LoneHerm_ has quit [Remote host closed the connection]
ziarkaen_ has quit [Ping timeout: 260 seconds]
ziarkaen has quit [Ping timeout: 260 seconds]
LoneHerm_ has joined #ruby
jottr has quit [Ping timeout: 265 seconds]
LoneHerm_ has quit [Ping timeout: 244 seconds]
elenatanasoiu has joined #ruby
dnicole has quit [Remote host closed the connection]
nopolitica has quit [Ping timeout: 252 seconds]
elenatanasoiu has quit [Ping timeout: 244 seconds]
sneakers has joined #ruby
ziarkaen has joined #ruby
ziarkaen_ has joined #ruby
startupality has joined #ruby
nopolitica has joined #ruby
skweek has joined #ruby
Darmani has joined #ruby
<Darmani> Hi everyone! I was going through the exercism tests for the Ruby track and I can't even get past the first time :[
<Darmani> I really don't get how to make this pass.
ag4ve_ has quit [Ping timeout: 256 seconds]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ziarkaen has quit [Ping timeout: 260 seconds]
ziarkaen_ has quit [Ping timeout: 268 seconds]
<Darmani> Do I have to create two different methods with the same name to make the tests pass?
<Darmani> I don't get it...
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
solocshaw has joined #ruby
shmuli has quit [Remote host closed the connection]
<baweaver> How do Ruby method arguments work?
klaas has quit [Quit: ZNC - http://znc.sourceforge.net]
<baweaver> and how does an if branch work?
<baweaver> You only need one method
<baweaver> (technically you don't need an if branch either)
<Darmani> baweaver: You don't...?
ag4ve_ has joined #ruby
<baweaver> Ruby method arguments
<baweaver> what happens when one isn't passed?
<baweaver> how do you get around that issue?
<Darmani> Well if you required one it would fail...
<baweaver> then what's the opposite of a required argument?
troys is now known as troys_
<Darmani> A non-argument method...?
i8igmac has joined #ruby
<baweaver> nope
<baweaver> opposite of required
<Darmani> An optional argument?
<baweaver> bingo
<Darmani> That's a thing?
<baweaver> yep
<i8igmac> im not sure of the install procedure of bootstrap for rails 5.0.0.1
<Darmani> how2dosthis.jpg
<baweaver> google primarily.
<Darmani> D:
<baweaver> i8igmac: #RubyOnRails, though you'd add it to your Gemfile probably.
<baweaver> just like any other version
<baweaver> also optional arguments can have default values
charliesome has joined #ruby
<Darmani> Oh so you give it a nil value?
<baweaver> you could
<baweaver> but note that I said that you don't technically need an if
<baweaver> which implies that you don't need to pass it anything
<Darmani> That doesn't work for the test though because then it only returns Hello, !
<baweaver> default arguments
<Darmani> oh I see. Give it a default of "world" and if it's given a argument give that instead
<baweaver> almost there
<baweaver> where do you set that default?
<Darmani> def self.hello(name = "World")
<baweaver> there you go
<Darmani> I had no idea you could do that.
<baweaver> now then, say you didn't have that option and you passed nil
<baweaver> that's when you use a conditional
firstdayonthejob has quit [Ping timeout: 256 seconds]
solocshaw has quit [Quit: solocshaw]
<Darmani> So... if name == nil, then do something?
<baweaver> but in this case a default argument is correct
<baweaver> if name
<baweaver> == nil is redundant because nil is falsy
solocshaw has joined #ruby
<Darmani> if name === nil then?
<baweaver> see above
jottr has joined #ruby
<Darmani> ah I see.
<baweaver> you might want to thumb through Eloquent Ruby
<Darmani> Eloquent Ruby o.o
<baweaver> It's a book that shows you how to program Ruby like Ruby
<baweaver> you were basically going for a Java-like method overloading with argument signatures
L0rdShrek_____ has quit [Quit: Connection closed for inactivity]
<Darmani> I'm not really trained or anything man... I just do what I can.
ChiefAlexander has joined #ruby
<baweaver> Just saying that that style is very common in Java
aaronds_ has quit [Ping timeout: 256 seconds]
<baweaver> leading me to think you were a Java person before
<baweaver> in any case everyone has to start somewhere.
<Darmani> Nah that's just where my thought pattern led me I guess. I started here in Ruby.
rcvalle has quit [Quit: rcvalle]
<Darmani> Thank you though I just found the book.
evidex has quit [Ping timeout: 245 seconds]
ag4ve_ has quit [Ping timeout: 265 seconds]
<baweaver> If you find that one hard I would look into Programming Ruby. If you find it easy enough, The Ruby Way and Practical Object Oriented Design in Ruby.
<Darmani> baweaver: You've read a lot of books haven't you.
<baweaver> indeed
<Darmani> I've always been more of a visual learner. I learned through YouTube videos, Codecademy, that kind of thing.
<Darmani> RubyMonk too.
elenatanasoiu has joined #ruby
d0nn1e has quit [Ping timeout: 256 seconds]