apeiros changed the topic of #ruby to: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
odin24 has quit [Read error: Connection reset by peer]
cartothemax has quit [Ping timeout: 276 seconds]
Takle has quit [Remote host closed the connection]
<xxneolithicxx> moomoocow: im not sec expert but basically looks like the flaw allows it to think a cert may be valid when its not due to the way it handles the hostname validation
growlove has joined #ruby
pika_pika has quit [Ping timeout: 245 seconds]
maximski has quit []
<moomoocow> xxneolithicxx: I'm just confirming thats the only problem :)
x1337807x has joined #ruby
hiyosi has joined #ruby
juanpaucar has joined #ruby
cjim_ has joined #ruby
felixjet has joined #ruby
fwaokda has joined #ruby
gregf1 has quit [Quit: WeeChat 1.0.1]
csmb has joined #ruby
<shevy> xxneolithicxx lol
JoshGlzBrk has joined #ruby
<Kendro> !books
Jiyuhen has quit [Ping timeout: 255 seconds]
<Radar> Kendro: The Well-Grounded Rubyist by David A. Black, Confident Ruby by Avdi Grimm and the POODR book by Sandi Metz.
bruno- has joined #ruby
work_op is now known as work
<Kendro> Radar, Any special suggestions for a C++ programmer?
juanpaucar has quit [Ping timeout: 246 seconds]
livcd has quit [Ping timeout: 246 seconds]
<Radar> Kendro: Go through the Ruby Koans and apply your knowledge there.
poguez_ has quit [Quit: Connection closed for inactivity]
vim_shimm has joined #ruby
sevvie has joined #ruby
mleung has quit [Quit: mleung]
<Kendro> Radar, Ruby Koans?
<Radar> !g ruby koans
<Radar> Ugh my bot got kicked again, did it?
<Radar> Or muted, at least.
bim has joined #ruby
bim is now known as Guest71060
<Kendro> Radar, Thank you. Do you believe learning Ruby will be much time consuming if having previous experience in programming, C++ ?
<Radar> Nope. You should pick it up fairly easy.
<Radar> You might think "look at all the things I am not typing!"
fabrice31 has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
<Kendro> Radar, Ah, dynamically languages you mean :)
n80 has quit [Quit: n80]
<Radar> Kendro: yeah
sevvie has quit [Ping timeout: 245 seconds]
basiclaser has quit [Quit: Connection closed for inactivity]
<Kendro> Radar, So I downloaded what you suggested. Some ruby files I see.
Andoriyu has joined #ruby
Guest71060 has quit [Ping timeout: 240 seconds]
<Radar> Kendro: Yup. Skim the README and get started. The first couple of puzzles are easy.
sevvie has joined #ruby
chintanparikh has quit [Ping timeout: 256 seconds]
lewix has quit [Remote host closed the connection]
<Kendro> Are you sure that's all I need? I mean I'm used to in depth learning like theory of constructors/initialization and such.
<Andoriyu> two arrays, one has hashes, another one integers. Need to remove all hashes where one specific key is included in the second array. Is there faster way then Array#reject?
<Kendro> No idea if there is any need for such in Ruby.
<dodobrain> Kendro, if you are familiar with C++ it should be easy enough to pick up just looking at the '20-min tutorial' on ruby-lang.org and then also reading the 'Ruby from another language' pages also on ruby-lang.org
fabrice31 has quit [Ping timeout: 256 seconds]
neanderslob_ has quit [Ping timeout: 264 seconds]
cartothemax has joined #ruby
lewix has joined #ruby
juanpablo____ has joined #ruby
<centrx> Kendro, Ruby is low ceremony, you can learn the theory after learning how to use it as you encounter various things.
zachrab has quit [Remote host closed the connection]
<centrx> Ruby has a great object model
MXfive has quit [Quit: Textual IRC Client: www.textualapp.com]
<Kendro> ?
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
justin_pdx has quit [Quit: justin_pdx]
davedev24_ has quit []
iasoon has quit [Ping timeout: 252 seconds]
<centrx> Yeah
jeramy_s has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dodobrain> Kendro, if you already know c++, it should be very easy to pick up ruby.. just read the links i gave you
cartothemax has quit [Ping timeout: 276 seconds]
yfeldblum has quit [Remote host closed the connection]
juanpablo____ has quit [Ping timeout: 256 seconds]
<centrx> Kendro, There's also the Pragmatic Programmer's book (the Pick-Axe); the Well-Grounded Rubyist; Metaprogramming Ruby; ...
GnuYawk has quit [Quit: WeeChat 1.0]
<Kendro> dodobrain, I do :)
yfeldblum has joined #ruby
<a5i> >> if puts "hello"<5 puts "hello"; else puts "world" end
<ruboto> a5i # => /tmp/execpad-bc09243897a2/source-bc09243897a2:2: syntax error, unexpected tIDENTIFIER, expecting key ...check link for more (https://eval.in/313049)
<dodobrain> than just trust me on this and delay reading any book until you finish reading those linked pages
Zamyatin has joined #ruby
moomoocow has quit [Quit: leaving]
<Kendro> dodobrain, Alright I'm just so used to read book :(
<dodobrain> Kendro, seriously, you might even think about *not* reading a book after you've read those pages
<centrx> Kendro, I would recommend learning the syntax and other basics, with code you can run and test out
<centrx> Kendro, but all depends on how you learn I suppose
horsecowdog has quit [Remote host closed the connection]
<centrx> Kendro, The Pragmatic Programmer's Guide is a good introduction that covers the full gamut of how to program in Ruby
avahey has joined #ruby
zachrab has joined #ruby
<Kendro> You guys recommend different things I'm so confused slow down :P
keen__ has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MatthewsFace has joined #ruby
cjim_ has quit [Quit: (null)]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
vivekananda has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 265 seconds]
<Radar> There are a lot of good things to recommend :)
Rampages has joined #ruby
keen__ has joined #ruby
Axy has quit [Read error: Connection reset by peer]
zorak8 has quit [Quit: Leaving]
aspiers has joined #ruby
Mia has joined #ruby
<zachrab> how can i run a cucumber suite everyday at a certain hour?
livcd has joined #ruby
bricker has quit [Quit: leaving]
Pupeno has joined #ruby
baweaver has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
Pupeno_ has quit [Ping timeout: 248 seconds]
Musashi007 has joined #ruby
Zamyatin has joined #ruby
aspiers_ has quit [Ping timeout: 264 seconds]
mrmargolis has joined #ruby
<zachrab> how can i run a cucumber suite everyday at a certain hour?
baweaver has quit [Remote host closed the connection]
<work> vigilance and determination
Zamyatin has quit [Max SendQ exceeded]
<shevy> wow
<shevy> there are websites who can disable selecting via a mouse
<shevy> how do they do so? that annoys me to no ends
Zamyatin has joined #ruby
<mozzarella> javascript
cjim_ has joined #ruby
<mozzarella> time to boycott that website
Zamyatin has quit [Max SendQ exceeded]
<xxneolithicxx> must protect the datas
endash has quit [Quit: endash]
vdamewood has joined #ruby
cartothemax has joined #ruby
Zamyatin has joined #ruby
aphprentice has quit [Remote host closed the connection]
arescorpio has joined #ruby
AlphaAtom has quit [Ping timeout: 256 seconds]
Zamyatin has quit [Max SendQ exceeded]
<shevy> well
<shevy> it eludes me why I should give up control over the interaction-type I do on my computer
VBlizzard has joined #ruby
<shevy> mozzarella thanks, will have a further look lateron
Zamyatin has joined #ruby
dseitz has joined #ruby
vivekananda has joined #ruby
oo_ has joined #ruby
Azure has quit [Ping timeout: 245 seconds]
cartothemax has quit [Ping timeout: 250 seconds]
horsecowdog has joined #ruby
_blizzy_ has quit [Ping timeout: 244 seconds]
SpicyMagpie has joined #ruby
lidenskap has quit [Remote host closed the connection]
VBlizzard is now known as _blizzy_
rodferso1 has joined #ruby
baweaver has joined #ruby
rodfersou has quit [Ping timeout: 252 seconds]
vim_shimm has quit [Ping timeout: 255 seconds]
hmsimha has joined #ruby
snockerton has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
tkuchiki has joined #ruby
DerisiveLogic has joined #ruby
iteratorP has joined #ruby
<Kendro> Any of you use emacs :p
ismaelga has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Me dun like you no more.]
MatthewsFace has quit [Remote host closed the connection]
sevenseacat has joined #ruby
<centrx> no, vim rulez
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ForkingPaths has joined #ruby
<mozzarella> vim
ForkingPaths has quit [Max SendQ exceeded]
<centrx> I use vim, my pappy used vim, my grand-pappy used vim, my great-great-great-grand-pappy brought vim over on the Mayflower
tvw has quit [Remote host closed the connection]
<eam> Kendro: I use emacs
TheMoonMaster is now known as blake
greenbagels has joined #ruby
<eam> however, I use viper-mode -- emacs is the best vi
redlegion has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
maximski has joined #ruby
Hobogrammer has joined #ruby
maximski has quit [Max SendQ exceeded]
maximski has joined #ruby
willharrison has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
poguez_ has joined #ruby
krisquigley has joined #ruby
casshern2 has quit [Ping timeout: 256 seconds]
cjim_ has quit [Quit: (null)]
cartothemax has joined #ruby
robustus has joined #ruby
djbkd has quit [Remote host closed the connection]
Nuck has joined #ruby
iotouch has joined #ruby
wallerdev has quit [Quit: wallerdev]
silentpost has joined #ruby
oo_ has quit [Remote host closed the connection]
Filete has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
sankaber has joined #ruby
kyrylo has joined #ruby
djbkd has joined #ruby
cartothemax has quit [Ping timeout: 272 seconds]
Zamyatin has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
iamninja has joined #ruby
wallerdev has joined #ruby
lidenskap has joined #ruby
beneggett has joined #ruby
Rickmasta has joined #ruby
kblake has quit [Remote host closed the connection]
lanemeyer has quit [Ping timeout: 250 seconds]
amclain has joined #ruby
clarkk has quit [Ping timeout: 246 seconds]
rgb-one has joined #ruby
lanemeyer has joined #ruby
Zamyatin has joined #ruby
Kendro has quit [Remote host closed the connection]
Musashi007 has joined #ruby
bim has joined #ruby
su_n has quit [Quit: su_n]
Zamyatin has quit [Max SendQ exceeded]
lidenskap has quit [Ping timeout: 248 seconds]
bim is now known as Guest73259
oo_ has joined #ruby
Zamyatin has joined #ruby
jlast has joined #ruby
cabouffard has joined #ruby
jottr_ has quit [Ping timeout: 255 seconds]
vim_shimm has joined #ruby
Guest73259 has quit [Ping timeout: 250 seconds]
_pakchoi_ has joined #ruby
astrobunny has joined #ruby
juanpablo____ has joined #ruby
bintelli has joined #ruby
baweaver has joined #ruby
cabouffard has quit [Ping timeout: 248 seconds]
cartothemax has joined #ruby
Zamerick has joined #ruby
drzel has quit [Ping timeout: 264 seconds]
Zamerick_ has joined #ruby
jottr_ has joined #ruby
juanpablo____ has quit [Ping timeout: 245 seconds]
jottr_ has quit [Read error: Connection reset by peer]
wallerdev has quit [Quit: wallerdev]
dpatel has quit [Quit: dpatel]
Zamerick has quit [Client Quit]
Juanchito has quit [Quit: Connection closed for inactivity]
claptor has joined #ruby
drzel has joined #ruby
baweaver has quit [Ping timeout: 246 seconds]
MatthewsFace has joined #ruby
ferz_ has joined #ruby
mgberlin has joined #ruby
cartothemax has quit [Ping timeout: 276 seconds]
aghalarp has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
astrobunny has quit [Remote host closed the connection]
neanderslob__ has joined #ruby
bigmac has joined #ruby
mroach has joined #ruby
aghalarp has quit [Read error: Connection reset by peer]
longfeet has joined #ruby
baweaver has joined #ruby
djbkd has quit [Remote host closed the connection]
lidenskap has joined #ruby
djbkd has joined #ruby
psy_ has joined #ruby
cabouffard has joined #ruby
lidenskap has quit [Ping timeout: 240 seconds]
<zachrab> i am using whenever to run a cron job of a cucumber suite but nothing is being printed to the logs
<zachrab> how can i verify the cron job is running?
ChoiKyuSang has quit [Read error: Connection reset by peer]
akurilin has joined #ruby
djbkd has quit [Quit: My people need me...]
ChoiKyuSang has joined #ruby
jottr_ has joined #ruby
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
towski_ has quit [Remote host closed the connection]
vim_shimm has quit [Ping timeout: 244 seconds]
akurilin3 has quit [Ping timeout: 248 seconds]
akurilin2 has joined #ruby
Zamyatin has quit [Ping timeout: 240 seconds]
akurilin has quit [Ping timeout: 240 seconds]
vim_shimm has joined #ruby
cartothemax has joined #ruby
lewix has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: leaving]
<work> patience
jottr_ has quit [Quit: WeeChat 1.1.1]
crazysim has quit [Excess Flood]
crazysim_ has joined #ruby
bobbrez has joined #ruby
crazysim_ is now known as crazysim
ujihisa has joined #ruby
anibara has joined #ruby
zorak8 has joined #ruby
cartothemax has quit [Ping timeout: 245 seconds]
Musashi007 has quit [Quit: Musashi007]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jordanm has joined #ruby
<zachrab> work: honestly
<Radar> zachrab: how often does it run?
<zachrab> Radar: im testing using whenever set to every minute
<Radar> zachrab: and why is whenever running a test suite and not a CI server
<zachrab> Radar: im testing locally
<Radar> Why
<Radar> Why is this running through a cron?
<Radar> Why are you complicating this?
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<zachrab> Radar: its an assignment
juanpaucar has joined #ruby
<zachrab> Radar: how can i verify the cron job is running
<Radar> Yes that was your original question.
<zachrab> i made a custom job_type
<Radar> Did you try googling that exact question?
<zachrab> yes
<centrx> You can have the job output to a log file e.g. with >
silentpost has quit [Ping timeout: 264 seconds]
<zachrab> centrx: i have the log file but its not being populated
<centrx> Sounds like it's not running then
tus has quit []
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
juanpaucar has quit [Ping timeout: 240 seconds]
<zachrab> command prompt and schedule.rb file
Zamyatin has joined #ruby
A205B064 has quit [Read error: Connection reset by peer]
cabouffard has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
bruno- has quit [Ping timeout: 276 seconds]
A205B064 has joined #ruby
makepkgnotwar has joined #ruby
Rickmasta has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
cartothemax has joined #ruby
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
graydot has quit [Quit: graydot]
oo__ has joined #ruby
ujihisa has quit [Ping timeout: 265 seconds]
oo_ has quit [Ping timeout: 245 seconds]
mjuszczak has joined #ruby
babykosh has joined #ruby
Musashi007 has joined #ruby
cartothemax has quit [Ping timeout: 263 seconds]
zachrab has quit [Ping timeout: 245 seconds]
vim_shimm has quit [Ping timeout: 250 seconds]
n80 has joined #ruby
iteratorP has quit [Remote host closed the connection]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iteratorP has joined #ruby
iteratorP has quit [Read error: Connection reset by peer]
DavidDudson has joined #ruby
iteratorP has joined #ruby
amdbcg has joined #ruby
iteratorP has quit [Remote host closed the connection]
iteratorP has joined #ruby
grindmodeon has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
wallerdev has joined #ruby
cabouffard has joined #ruby
arup_r has joined #ruby
amdbcg has quit [Read error: Connection reset by peer]
rgb-one has quit [Read error: Connection reset by peer]
Rampages has quit [Read error: Connection reset by peer]
KrzaQ has quit [Read error: Connection reset by peer]
amdbcg has joined #ruby
Rampages has joined #ruby
rgb-one has joined #ruby
baweaver has joined #ruby
jefus has quit [Ping timeout: 276 seconds]
jgorak_ has joined #ruby
KrzaQ has joined #ruby
Musashi007 has quit [Quit: Musashi007]
cats has quit [Ping timeout: 276 seconds]
bintelli has quit [Quit: Page closed]
amystephen has quit [Quit: amystephen]
bintelli has joined #ruby
jgorak has quit [Ping timeout: 264 seconds]
Lucky__ has quit [Ping timeout: 264 seconds]
growlove has quit [Quit: Leaving]
growlove has joined #ruby
gmas has joined #ruby
cartothemax has joined #ruby
xenokiller has quit [Ping timeout: 242 seconds]
jeramy_s has joined #ruby
jeramy_s has quit [Client Quit]
thumpba has quit [Ping timeout: 244 seconds]
Xiti` has joined #ruby
felixjet_ has joined #ruby
Pisuke has quit [Read error: Connection reset by peer]
inavele has joined #ruby
cats has joined #ruby
A205B064 has quit [Ping timeout: 252 seconds]
Feyn has joined #ruby
Sembei has joined #ruby
cartothemax has quit [Ping timeout: 245 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
lewix has joined #ruby
lewix has joined #ruby
felixjet has quit [Ping timeout: 248 seconds]
Xiti has quit [Ping timeout: 250 seconds]
ferz_ has quit [Quit: Leaving]
vim_shimm has joined #ruby
SpicyMagpie has quit [Quit: I've been shot to the moon!]
bigkevmcd has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
bigkevmcd has joined #ruby
Andoriyu has quit [Ping timeout: 255 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lewix has quit [Remote host closed the connection]
sgambino has joined #ruby
reinaldob has joined #ruby
lidenskap has joined #ruby
meteor22322 has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Nuck has quit [Quit: Textual IRC Client: www.textualapp.com]
ascarter has joined #ruby
<bintelli> Does anyone have experience with the Twitter gem? I'm trying to pass in two arguments (one instance variable and one a string) as a single query for the text field. e.g. @client.search(@instance variable && "text")
<sevenseacat> that && does not do what you think it does
reinaldob has quit [Ping timeout: 276 seconds]
<bintelli> I know it doesn't lol
<shevy> >> false && true
<ruboto> shevy # => false (https://eval.in/313066)
bobbrez has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bintelli> but that's what I want it to do
<bintelli> oh ok
<sevenseacat> thats not how you concatenate strings in ruby
<shevy> bintelli you could do + if both are strings, or .concat() or .to_s
<shevy> bintelli the @instance_variable you use is a string already right?
<bintelli> yes
<shevy> >> @foo = 'yo'; @foo+' there'
<ruboto> shevy # => "yo there" (https://eval.in/313067)
nickjj has quit [Ping timeout: 419 seconds]
Shidash has quit [Ping timeout: 419 seconds]
Ankhers has quit [Ping timeout: 419 seconds]
amystephen has joined #ruby
Shidash_ has joined #ruby
Ankhers has joined #ruby
Ankhers has quit [Changing host]
Ankhers has joined #ruby
nickjj has joined #ruby
krisquigley has joined #ruby
cartothemax has joined #ruby
<bintelli> oh ok
cabouffard has quit [Ping timeout: 276 seconds]
<bintelli> @shevy thanks for the link
<centrx> "#{@foo}text"
n80 has quit [Ping timeout: 252 seconds]
danzilio has joined #ruby
<bintelli> great. thanks.
Zamyatin has joined #ruby
<shevy> \o/
<shevy> have you been using another programming language before bintelli?
<bintelli> no, still a hobbyist programmer for about a year now.
<bintelli> ruby's is my first language
krisquigley has quit [Ping timeout: 245 seconds]
cartothemax has quit [Ping timeout: 245 seconds]
Rickmasta has joined #ruby
neanderslob__ has quit [Ping timeout: 255 seconds]
penzur has joined #ruby
<shevy> cool
<shevy> I've been using perl for a while, then php, then came to ruby
danzilio has quit [Quit: Baiii!]
jgorak__ has joined #ruby
Rarikon has joined #ruby
sgambino has quit [Remote host closed the connection]
nomadic has quit [Ping timeout: 244 seconds]
snockerton has joined #ruby
snockerton has quit [Client Quit]
nomadic has joined #ruby
nomadic has joined #ruby
tekku has quit [Ping timeout: 252 seconds]
XorSwap has quit [Ping timeout: 240 seconds]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
CloCkWeRX has joined #ruby
stonecol1devin has joined #ruby
bennyklo1z has joined #ruby
icebourg has joined #ruby
fwaokda_ has joined #ruby
jlast has quit [Remote host closed the connection]
tekk has joined #ruby
charliesome has quit [Quit: zzz]
timmow_ has joined #ruby
djbkd has joined #ruby
<bintelli> oh nice. Is ruby your preference?
Musashi007 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlast has joined #ruby
amdbcg has quit [Ping timeout: 240 seconds]
braincrash has quit [Quit: bye bye]
mgberlin has quit [Remote host closed the connection]
jenrzzz has joined #ruby
iteratorP has quit [Remote host closed the connection]
amystephen has quit [*.net *.split]
jgorak_ has quit [*.net *.split]
akurilin2 has quit [*.net *.split]
iamninja has quit [*.net *.split]
avahey has quit [*.net *.split]
fwaokda has quit [*.net *.split]
froots has quit [*.net *.split]
destruct1re has quit [*.net *.split]
sinkensabe has quit [*.net *.split]
frem has quit [*.net *.split]
axilla has quit [*.net *.split]
Mon_Ouie has quit [*.net *.split]
casadei has quit [*.net *.split]
Xoro has quit [*.net *.split]
sudog has quit [*.net *.split]
ItSANgo_ has quit [*.net *.split]
soulcake has quit [*.net *.split]
BackEndCoder_ has quit [*.net *.split]
alekst_ has quit [*.net *.split]
cstrahan has quit [*.net *.split]
coderkevin has quit [*.net *.split]
Ca1us has quit [*.net *.split]
zapata has quit [*.net *.split]
code_ has quit [*.net *.split]
atmosx has quit [*.net *.split]
mathie has quit [*.net *.split]
yvemath has quit [*.net *.split]
dopie has quit [*.net *.split]
AdamMeghji has quit [*.net *.split]
bennyklotz has quit [*.net *.split]
atom3 has quit [*.net *.split]
maZtah has quit [*.net *.split]
magicien has quit [*.net *.split]
ghostpl has quit [*.net *.split]
timmow has quit [*.net *.split]
catsoup has quit [*.net *.split]
eythoriu1 has quit [*.net *.split]
ericwood has quit [*.net *.split]
stonecolddevin has quit [*.net *.split]
DefV has quit [*.net *.split]
philtr has quit [*.net *.split]
stylus has quit [*.net *.split]
mosez has quit [*.net *.split]
QKO has quit [*.net *.split]
elaptics_away has quit [*.net *.split]
axilla has joined #ruby
zachrab has joined #ruby
juanpablo____ has joined #ruby
<shevy> yeah
<shevy> you can model it more readily than php or perl
ruby701 has joined #ruby
ruby701 is now known as dudedudeman
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
jlast has quit [Ping timeout: 245 seconds]
<eam> you know what they say about models
cartothemax has joined #ruby
<centrx> their metaclasses let you assign any method to them?
DavidDudson has joined #ruby
juanpablo____ has quit [Ping timeout: 265 seconds]
zachrab has quit [Ping timeout: 256 seconds]
braincrash has joined #ruby
thomas is now known as 7JTAAA4RK
multi_io has quit [Ping timeout: 250 seconds]
amystephen has joined #ruby
akurilin2 has joined #ruby
iamninja has joined #ruby
avahey has joined #ruby
froots has joined #ruby
destruct1re has joined #ruby
sinkensabe has joined #ruby
frem has joined #ruby
Mon_Ouie has joined #ruby
casadei has joined #ruby
sudog has joined #ruby
BackEndCoder_ has joined #ruby
soulcake has joined #ruby
ItSANgo_ has joined #ruby
cstrahan has joined #ruby
atmosx has joined #ruby
coderkevin has joined #ruby
zapata has joined #ruby
code_ has joined #ruby
Ca1us has joined #ruby
mathie has joined #ruby
alekst_ has joined #ruby
eythoriu1 has joined #ruby
DefV has joined #ruby
maZtah has joined #ruby
mosez has joined #ruby
QKO has joined #ruby
stylus has joined #ruby
magicien has joined #ruby
atom3 has joined #ruby
yvemath has joined #ruby
dopie has joined #ruby
AdamMeghji has joined #ruby
ericwood has joined #ruby
catsoup has joined #ruby
elaptics_away has joined #ruby
ghostpl has joined #ruby
philtr has joined #ruby
yvemath has quit [Max SendQ exceeded]
magicien has quit [Max SendQ exceeded]
ghostpl has quit [Max SendQ exceeded]
maZtah has quit [Max SendQ exceeded]
akurilin2 has quit [Max SendQ exceeded]
7JTAAA4RK is now known as thomas
magicien has joined #ruby
bobbrez has joined #ruby
bim has joined #ruby
ghostpl has joined #ruby
Channel6 has joined #ruby
bim is now known as Guest88325
akurilin2 has joined #ruby
SpicyMagpie has joined #ruby
multi_io has joined #ruby
maZtah has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cartothemax has quit [Ping timeout: 255 seconds]
SpicyMagpie has quit [Client Quit]
bobbrez has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
longfeet_ has joined #ruby
oo__ has quit [Remote host closed the connection]
amdbcg has joined #ruby
Guest88325 has quit [Ping timeout: 250 seconds]
makepkgnotwar has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
longfeet has quit [Ping timeout: 252 seconds]
ujihisa has joined #ruby
mrmargolis has quit []
JoshGlzBrk has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dorei has quit []
Musashi007 has quit [Quit: Musashi007]
amdbcg has quit [Ping timeout: 265 seconds]
penzur has quit [Quit: dc]
yvemath has joined #ruby
lidenskap has quit [Remote host closed the connection]
ramfjord has joined #ruby
penzur has joined #ruby
penzur has quit [Read error: Connection reset by peer]
amystephen has quit [Quit: amystephen]
SpicyMagpie has joined #ruby
michael_mbp has quit [Excess Flood]
bintelli has quit [Quit: Page closed]
oo_ has joined #ruby
freerobby has quit [Quit: Leaving.]
Musashi007 has joined #ruby
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
michael_mbp has joined #ruby
lidenskap has joined #ruby
mjuszczak has quit []
jlast has joined #ruby
cpt_yossarian has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
cpt_yossarian has joined #ruby
RegulationD has joined #ruby
WildBamboo-Josh has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
cartothemax has joined #ruby
<shevy> that they are heavily overpaid
rodferso1 has quit [Quit: leaving]
RegulationD has quit [Ping timeout: 250 seconds]
gorpon_ has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/2015040300]]
chintanparikh has joined #ruby
cartothemax has quit [Ping timeout: 256 seconds]
_pakchoi_ has quit [Remote host closed the connection]
<chintanparikh> I have a timeout, and I'm trying to return nil if the timeout expires, but this isn't working. Anyone know why? https://gist.github.com/chintanparikh/efaa39868ea0b24ecb96
makepkgnotwar has joined #ruby
<chintanparikh> Error message is execution expired (Timeout::Error)
maximski has quit []
inavele has quit [Ping timeout: 245 seconds]
longfeet__ has joined #ruby
<Radar> chintanparikh: code looks good to me. I am not sure what could be wrong there.
juanpaucar has joined #ruby
wallerdev has quit [Quit: wallerdev]
<sevenseacat> entire error message would be helpful maybe.
longfeet_ has quit [Ping timeout: 245 seconds]
Megtastique has quit []
<chintanparikh> sevenseacat: /Users/chintanparikh/Crap/project-3/rtp_socket.rb:222:in `recvfrom': execution expired (Timeout::Error)
<sevenseacat> that doesnt say where the timeout came from
<Radar> Complete stacktrace please.
<chintanparikh> sevenseacat: One sec, I'll gist it
<sevenseacat> :)
<chintanparikh> Lemme also gist the entire file so line numbers are right
<chintanparikh> Updated on the same gits
<chintanparikh> gist
jlast has quit [Ping timeout: 245 seconds]
grindmodeon has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
grindmodeon has quit [Client Quit]
tkuchiki has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
tkuchiki has joined #ruby
<xxneolithicxx> is it timing out at 203
<sevenseacat> looks okay to me
zorak8 has quit [Read error: Connection reset by peer]
<Radar> Wait 203
fabrice31 has joined #ruby
<Radar> Where is timeout the method defined?
zorak8 has joined #ruby
<Radar> This does not rescue Timeout::TimeoutError
<Radar> next question plz
Andoriyu has joined #ruby
<chintanparikh> Oh shit
<chintanparikh> Thanks!
<xxneolithicxx> you nested timeouts that made it confusing
spider-mario has quit [Ping timeout: 250 seconds]
Diabolik has joined #ruby
makepkgnotwar has quit [Quit: Textual IRC Client: www.textualapp.com]
beneggett has joined #ruby
beneggett has quit [Remote host closed the connection]
<xxneolithicxx> and redundant since the outer timeout is not > than the inner one it calls
spider-mario has joined #ruby
longfeet__ has quit [Ping timeout: 272 seconds]
moeabdol has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
kblake has joined #ruby
cartothemax has joined #ruby
chintanparikh has quit [Ping timeout: 246 seconds]
Musashi007 has quit [Quit: Musashi007]
cartothemax has quit [Ping timeout: 245 seconds]
casadei has quit [Remote host closed the connection]
kblake has quit [Ping timeout: 250 seconds]
gorpon_ has quit [Ping timeout: 265 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<mozzarella> is there a better way of doing
wallerdev has quit [Quit: wallerdev]
<mozzarella> 5.times.map { a.next }
<mozzarella> (a is an enumerator)
<mozzarella> I just want the next 5 values
gorpon_ has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
Deele has joined #ruby
iamninja has joined #ruby
<dodobrain> so ruby-install and chruby will install/setup everything locally in my home dir, right?
<gr33n7007h> mozzarella: a.take(5) ?
horsecowdog has quit [Remote host closed the connection]
<centrx> mozzarella, you could do a.each_slice(5).to_enum
<sevenseacat> dodobrain: yes
<mozzarella> gr33n7007h: no, it takes the first 5 (it rewinds)
<gr33n7007h> ah, yes just checked
<dodobrain> thanks sevenseacat .. i was just looking at http://ryanbigg.com/2014/10/ubuntu-ruby-ruby-install-chruby-and-you/ and was thinking i don't really need to 'sudo make install' ruby-install and chruby
fwaokda_ has quit [Ping timeout: 256 seconds]
<sevenseacat> dodobrain: yes, you do
<dodobrain> they just need to be in PATH (somewhere like ~/bin where i put my oen binaries)
<dodobrain> s/oen/own
* sevenseacat shrugs
<dodobrain> oh whatever.. i'll just install chruby and ruby-install globally
<sevenseacat> :)
wallerdev has joined #ruby
yfeldblum has joined #ruby
horsecowdog has joined #ruby
Darryl___ has joined #ruby
claptor has quit [Quit: this channel is bakas]
dudedudeman has quit [Ping timeout: 246 seconds]
chintanparikh has joined #ruby
<chintanparikh> Now that I'm on the right channel, I'm getting a similar timeout error, updated gist - https://gist.github.com/chintanparikh/11143f96f0552801a6e6
rshetty has joined #ruby
<Radar> So catch the throw
iteratorP has joined #ruby
cartothemax has joined #ruby
lemur has joined #ruby
rshetty has quit [Remote host closed the connection]
blazes816 has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
<dodobrain> sevenseacat, is there a way to run the make with -j8 or similar when running ruby-install ?
oo_ has quit [Remote host closed the connection]
<dodobrain> sevenseacat, :( i didn;t read the help page
<dodobrain> yes, i can pass a jobs param. thanks :)
thumpba has joined #ruby
chintanparikh has quit [Read error: Connection reset by peer]
centrx has quit [Quit: Shutting down, Please wait...]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
Musashi007 has joined #ruby
chintanparikh has joined #ruby
<chintanparikh> Wifi dropped, did anyone reply?
<Radar> [14:15:31] <Radar>So catch the throw
cartothemax has quit [Ping timeout: 272 seconds]
tcrypt has quit [Ping timeout: 256 seconds]
<chintanparikh> I thought rescue Timeout::ExitException did that?
horsecowdog has quit [Remote host closed the connection]
blazes816 has quit [Ping timeout: 264 seconds]
<dodobrain> gem install rails -v 4.2.0 --no-rdoc --no-ri what does the --no-ri mean?
<dodobrain> doh.. too many times i'm jumping the gun and asking questions which i find the answers to immediately after :(
mary5030 has joined #ruby
chintanparikh has quit [Ping timeout: 250 seconds]
<sevenseacat> hehe
gorpon_ has quit [Ping timeout: 256 seconds]
apoplexy has joined #ruby
<sevenseacat> at least you're getting the answers
Eiam_ has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki_ has joined #ruby
<dodobrain> yeah, i kinda didn;t want to wait for installation to finish before finding out the answer.. then realised i could just look at the help for the existing system provided gem binary
mostlybadfly has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
rshetty has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
sinkensabe has quit [Remote host closed the connection]
AlphaTech is now known as zz_AlphaTech
sinkensabe has joined #ruby
rshetty has quit [Remote host closed the connection]
astrobunny has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
iamninja has quit [Read error: Connection reset by peer]
meteor22322 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Musashi007 has quit [Quit: Musashi007]
oo_ has joined #ruby
krisquigley has joined #ruby
cartothemax has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
ByronJohnson has quit [Quit: Restarting client.]
<havenwood> dodobrain: or: man ruby-install
<dodobrain> ruby-install --help too :)
<havenwood> dodobrain: aye
<dodobrain> thanks though. i'm just learning all things ruby
<havenwood> dodobrain: --help is less verbose
iamninja has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
cartothemax has quit [Ping timeout: 264 seconds]
ByronJohnson has joined #ruby
oo_ has quit [Remote host closed the connection]
rshetty has joined #ruby
browndawg has joined #ruby
The_Phoenix has joined #ruby
oo_ has joined #ruby
rshetty has quit [Remote host closed the connection]
BradPitt has joined #ruby
rshetty has joined #ruby
icebourg has quit []
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamninja has quit [Read error: Connection reset by peer]
tearan has joined #ruby
A205B064 has joined #ruby
DavidDudson has joined #ruby
juanpablo____ has joined #ruby
zachrab has joined #ruby
rshetty has quit []
dfinninger has joined #ruby
greenbagels has quit [Quit: Leaving]
cartothemax has joined #ruby
chintanparikh has joined #ruby
ponga has joined #ruby
juanpablo____ has quit [Ping timeout: 250 seconds]
zachrab has quit [Ping timeout: 255 seconds]
cartothemax has quit [Ping timeout: 255 seconds]
iamninja has joined #ruby
chintanparikh has quit [Ping timeout: 240 seconds]
chrissonar has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
markholmes has joined #ruby
mary5030 has quit [Remote host closed the connection]
tmadsen has quit [Ping timeout: 264 seconds]
rgb-one has quit [Read error: Connection reset by peer]
moeabdol has quit [Quit: WeeChat 1.1.1]
arescorpio has quit [Remote host closed the connection]
tmadsen has joined #ruby
bim has joined #ruby
bim is now known as Guest7318
sigurding has joined #ruby
sinkensabe has quit [Ping timeout: 244 seconds]
babykosh has quit [Quit: babykosh]
thumpba_ has joined #ruby
thumpba has quit [Read error: Connection reset by peer]
ujihisa has quit [Ping timeout: 265 seconds]
RegulationD has joined #ruby
connor_goodwolf has quit [Quit: Lost terminal]
Guest7318 has quit [Ping timeout: 255 seconds]
CloCkWeRX has left #ruby [#ruby]
coderkevin has quit [Quit: Connection closed for inactivity]
cartothemax has joined #ruby
thumpba_ has quit []
RegulationD has quit [Ping timeout: 255 seconds]
frem has quit [Quit: Connection closed for inactivity]
cartothemax has quit [Ping timeout: 246 seconds]
sinkensabe has joined #ruby
charliesome has joined #ruby
zorak8 has quit [Ping timeout: 246 seconds]
ohaibbq has joined #ruby
juanpaucar has joined #ruby
jenrzzz has joined #ruby
sigurding has quit [Quit: sigurding]
ponga has quit [Remote host closed the connection]
arup_r has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bruno- has joined #ruby
juanpaucar has quit [Ping timeout: 245 seconds]
Joufflu has quit [Quit: Peace]
jenrzzz has quit [Ping timeout: 256 seconds]
meteor22322 has joined #ruby
quesker has quit [Ping timeout: 250 seconds]
chrissonar has quit [Remote host closed the connection]
fabrice31 has joined #ruby
tagrudev has joined #ruby
quesker has joined #ruby
bruno- has quit [Ping timeout: 246 seconds]
mengu has joined #ruby
mengu has joined #ruby
meteor22322 has quit [Client Quit]
dfinninger has quit [Remote host closed the connection]
bluOxigen has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
vulix has joined #ruby
<vulix> Hello
<work> if I have an object B.new but the B class extends the A class, how do I get a list of methods that it got from the B class without seeing the ones from A?
tearan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cartothemax has joined #ruby
lanemeyer has quit [Ping timeout: 252 seconds]
fabrice31 has quit [Ping timeout: 265 seconds]
<work> nvm, you can subtract entire arrays at a time, easily done
jgorak__ has quit [Read error: Connection reset by peer]
jgorak__ has joined #ruby
tkuchiki has joined #ruby
cartothemax has quit [Ping timeout: 245 seconds]
babykosh has joined #ruby
lanemeyer has joined #ruby
<work> oh, thats handy
codecop has joined #ruby
aganov has joined #ruby
sameerynho has joined #ruby
tkuchiki_ has quit [Ping timeout: 265 seconds]
lxsameer has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
Morkel has joined #ruby
Channel6 has quit [Quit: Leaving]
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
horsecowdog has joined #ruby
moeabdol has joined #ruby
moeabdol has quit [Client Quit]
riotjones has joined #ruby
sigurding has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
horsecow_ has joined #ruby
moeabdol has joined #ruby
horsecow_ has quit [Read error: Connection reset by peer]
cartothemax has joined #ruby
horsecowdog has joined #ruby
OtterCoder has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
cartothemax has quit [Ping timeout: 252 seconds]
djbkd has quit [Read error: Connection reset by peer]
horsecow_ has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
babykosh has quit [Quit: babykosh]
djbkd has joined #ruby
meteor22322 has joined #ruby
jriese has quit [Ping timeout: 244 seconds]
govg has quit [Write error: Broken pipe]
yfeldblum has quit [Remote host closed the connection]
horsecow_ has quit [Read error: Connection reset by peer]
jriese has joined #ruby
horsecowdog has joined #ruby
justinweiss has quit [Ping timeout: 255 seconds]
olekenneth has quit [Ping timeout: 244 seconds]
justinweiss has joined #ruby
<vulix> anyone know when RubyInstaller for windows will be updated to 2.2.2? I'm trying to dabble in Ruby and learn it
hanmac1 has joined #ruby
horsecow_ has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
<sevenseacat> 2.2.1 is fine for learning purposes.
last_staff has joined #ruby
horsecow_ has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
horsecowdog has joined #ruby
<vulix> I know it's best to use the same environment type to develop and then deploy, but how possible is it to dev on Windows and deploy on Linux? I've read some gems don't work on Win?
allenn has joined #ruby
<shevy> vulix depends a lot on the gem; if it is pure ruby, it should work flawlessly if you adhere to good-use-practice
<SpicyMagpie> vulix, if you are on Windows and your machines are Linux, it will never be the same env.
<shevy> if it requires compilation, then things may be a bit trickier, but you can also compile on windows
<shevy> like the cygwin/msys environment or other setups
kaspernj has joined #ruby
<shevy> it's always one of the first things I do on windows - get bash
<shevy> or msys :P
<sevenseacat> only thing i do on windows is install steam and play games
<shevy> vulix what kind of project do you have in mind that you wish to develop/deploy from windows?
<shevy> yeah games such as "catch the mouse!" or "swim in the ocean!"
horsecowdog has quit [Read error: Connection reset by peer]
horsecow_ has joined #ruby
<SpicyMagpie> shevy, it's true for basic gems. If you want to take advantage of thin or something using fancy features, it's no longer true.
<shevy> what are the seven seas anyway
<shevy> fancy features huh
<shevy> I have a windows box downstairs again \o/
<vulix> Tbh I do a lot of data science stuff in Java and Python. There are some great libraries but I want to develop my own hobby package in another language to actually implement some algorithms myself and learn. Hard to do it in Py and Java because there's already so many great packages already, so I'm not incentivized to do it there
mengu has quit [Remote host closed the connection]
<vulix> I'm looking at Ruby, I know SciRuby exists but I'm not sure how active it is
<shevy> I hate it... I also use it only for games.. though I also test some ruby stuff on it sometimes. windows without ruby would be unbearable
OtterCoder has quit [Ping timeout: 342 seconds]
<sevenseacat> my windows pc is about three feet that way <---
<sevenseacat> my linux laptop is about two feet that way --->
<shevy> lol
<sevenseacat> and my macbook pro is here ^
horsecow_ has quit [Read error: Connection reset by peer]
<shevy> and your cat is where?
<SpicyMagpie> still suffering with the keyboard, sevenseacat?
<sevenseacat> behind me whining for dinnertime
<sevenseacat> SpicyMagpie: my god yes
<shevy> haha
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
horsecowdog has joined #ruby
Musashi007 has joined #ruby
<vulix> Is SciRuby still active?
<vulix> Git commits seem dated
<sevenseacat> honestly, i think you're overanalyzing it too much vulix - the most important thing about learning is to dig in and do it
<sevenseacat> not to have decision paralysis
jefus has joined #ruby
<vulix> that's true, i'm just a bit worried about Ruby's use outside of rails frankly
<vulix> but ill learn the more I use it
markholm_ has joined #ruby
<vulix> It doesnt appear to have much going for it aside from web stuff though I could be wrong
<last_staff> nowadays it's easier to fall for a Buridan's Donkey situation though
<sevenseacat> its a good general-purpose language.
Renich has joined #ruby
<hanmac1> vulix: https://github.com/SciRuby > "Updated 13 hours ago" seems active for me ... (and imo i dont trust rails opinions what is active or not)
markholmes has quit [Ping timeout: 245 seconds]
<vulix> Ah I was looking at https://github.com/SciRuby/sciruby it seems a bit older, I guess they have other projects going on
<sevenseacat> last_staff: I had to google that one
dcarmich has joined #ruby
<SpicyMagpie> vulix, I teach game development with Ruby and it works. Have my own scripts to maintain systems and it works. Even my own copy of Prey works with Ruby (no Rails) and it works.
horsecowdog has quit [Ping timeout: 252 seconds]
cartothemax has joined #ruby
krisquigley has joined #ruby
mengu has joined #ruby
<last_staff> sevenseacat: and here I thought it was common knowledge...the more you know
growlove has quit [Ping timeout: 256 seconds]
vire has joined #ruby
<sevenseacat> the idea is, but the name isnt
<sevenseacat> afaik
<hanmac1> SpicyMagpie: that reminds me i need to work on my rendering gems again ... some of them really need to be updated (and i dont want to begin where with my RPGMaker i need to work again)
zachrab has joined #ruby
<SpicyMagpie> hanmac1, mind to share?
<hanmac1> SpicyMagpie: like this: https://github.com/Hanmac/sfml-ruby ruby binding for SFML
<SpicyMagpie> great!
<hanmac1> i also had a ruby binding for Ogre3d but thats much older
krisquigley has quit [Ping timeout: 240 seconds]
cartothemax has quit [Ping timeout: 272 seconds]
<SpicyMagpie> I use gamebox
zachrab has quit [Ping timeout: 264 seconds]
<SpicyMagpie> it's good enough for academic experiments, and it's documentation is bad enough to force them to read code :X
jenrzzz has joined #ruby
Darryl___ has quit [Quit: Connection closed for inactivity]
<hanmac1> SpicyMagpie: my main goal was/is a RPGMaker like that one from Enterbrain ... but written in Ruby ;P ... thats the main reason why i write bindings for libs like SFML or wxWidgets
<SpicyMagpie> sounds fun
<SpicyMagpie> why not starting with stencyl/construct2 before? seems much more achievable.
<dodobrain> why do i need 'bundle exec rake db:migrate' instead of simply 'rake db:migrate' ?
Asher has quit [Quit: Leaving.]
markholm_ has quit [Quit: So it goes.]
Asher has joined #ruby
sameerynho has quit [Ping timeout: 252 seconds]
<sevenseacat> dodobrain: because if you have multiple versions of gems installed (eg. rake, or rails) which one does it use?
jenrzzz has quit [Ping timeout: 240 seconds]
<hanmac1> SpicyMagpie: i might check "stencyl/construct2" out later, but i still like my bindings ... specially after wxRuby died a painful death ;P
ki0 has joined #ruby
avahey has quit [Quit: Connection closed for inactivity]
fabrice31 has joined #ruby
<SpicyMagpie> hanmac1: construct 2 and stencyl are game engines, like RPG Maker.
jenrzzz has joined #ruby
sameerynho has joined #ruby
<SpicyMagpie> and I was unaware about wxRuby's painful death. what happened? gone for my tea!
<dodobrain> umm.. rake is a shellscript right? and i have the correct one in my PATH and in it in the header it refers to the correct version of ruby too
<dodobrain> sevenseacat, so if i'm using chruby, i should be able to simply do rake db:migrate and get the same result, right?
<havenwood> dodobrain: what happens if you omit the `bundle exec` prefix?
<sevenseacat> no
<sevenseacat> well, yes, as long as you only have one version of every gem installed
cefkamcau has joined #ruby
Asher has quit [Client Quit]
<SpicyMagpie> dodobrain, you "can" do rake db:migrate. It's just not a good practice to do it in case you do something wrong.
<sevenseacat> most of the time, it will work fine. sometimes, it will explode in weird and wonderful ways.
work has left #ruby ["Leaving"]
<dodobrain> havenwood, it just works because i did a ruby-install, chruby, thingy..
<dodobrain> no i guess i should really know: what does 'bundle' actually do?
<dodobrain> s/no/now
<sevenseacat> only loads those gems which are part of your Gemfile.
Asher has joined #ruby
<sevenseacat> so you can safely have 45 different versions of rails installed, but you'll only use the one thats in your Gemfile.
<havenwood> dodobrain: If you want to have it work automagically you can install the rubygems-bundler gem, but you prefix `bundle exec` to use the exact gems specified in your Gemfile.lock.
<havenwood> dodobrain: http://bundler.io/
<dodobrain> i know Gemfile lists gems that are needed (along with minimum version sometimes), Gemfile.lock lists the exact versions that were installed. 'bundle install' can be used to install the gems listed in Gemfile, 'bundle update' will update the gems and if necessary update Gemfile.lock as well
eshiffob has quit [Ping timeout: 250 seconds]
<sevenseacat> seems like a good gist of it.
latemus has joined #ruby
<dodobrain> ok, good. so once again what does 'bundle exec abcd' do over simply 'abcd' ?
<Radar> Runs abcd in the context of the bundle
juanpablo____ has joined #ruby
<sevenseacat> how many times do we have to say the same thing? if you have an issue with the explanations we've given, tell us what the problem is, instead of just asking the same questionsd over and over
<havenwood> dodobrain: `abcd` doesn't use Bundler at all while `bundle exec abcd` runs the command with the gems in the Gemfile.lock.
last_staff has quit [Ping timeout: 245 seconds]
moeabdol has quit [Quit: WeeChat 1.1.1]
<sevenseacat> otherwise we'll just keep giving the same responses
<dodobrain> right.
moeabdol has joined #ruby
<certainty> moin
<havenwood> certainty: g'mornin
<vulix> How realistic is it to expect I can dev from both Windows and Linux and contribute to the same rails deployment? Or is that going to just create a headache and I should stick to one dev platform?
<havenwood> vulix: I think the latter. You might try asking in #RubyOnRails.
* certainty tips hat to havenwood
cartothemax has joined #ruby
<wasamasa> development on windows is generally a pain, so...
<wasamasa> if you need it for tests, automate these and deploy to windows boxen automatically
<hanmac1> SpicyMagpie the server where it was hosted died, and the project was dead since ancients
charliesome has quit [Quit: zzz]
<dodobrain> Radar, is a detailed explanation of bundle available in the later chapters in r4ia? because i don;t remember reading an explanation the first time the command was introduced (hopefully i'm just remembering wrong)
<SpicyMagpie> hanmac1, nobody had replicas?
<Radar> dodobrain: Bundler.io explains it well enough I thought.
juanpablo____ has quit [Ping timeout: 250 seconds]
kp666 has joined #ruby
<hanmac1> SpicyMagpie: nobody wanted it ... reasons why i did a rewrite like that: https://github.com/Hanmac/rwx
alienaut has joined #ruby
<sevenseacat> we give a very brief explanation on why we use bundle exec, I think
<SpicyMagpie> doesn't look that bad from the examples, hanmac1
<sevenseacat> very, very brief
iamninja has quit [Ping timeout: 276 seconds]
gauke has joined #ruby
cartothemax has quit [Ping timeout: 256 seconds]
<Radar> sevenseacat: it's so brief that I don't see any mention of it anywhere :)
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
lxsameer_ has joined #ruby
<dodobrain> Radar, which is why i asked :)
growlove has joined #ruby
<sevenseacat> interesting
horsecowdog has joined #ruby
<dodobrain> maybe a url link to bundler.io when the first appearance of 'bundle exec ...' occurs would be nice
<Radar> Too late. Book has gone to production.
<dodobrain> as usual, i am late :(
<Radar> Still moderately mad that it won't be released in time for Railsconf.
<sevenseacat> I can still make final changes. I'll slot a note in about it.
<havenwood> Maybe I should propose this update to the logo: https://i.imgur.com/9P4SpWl.png?1
horsecowdog has quit [Read error: Connection reset by peer]
sameerynho has quit [Ping timeout: 244 seconds]
<certainty> release a bugfix version
* certainty hides
horsecowdog has joined #ruby
dumdedum has joined #ruby
elmendalerenda has joined #ruby
<dodobrain> hey wait.. that tape dispenser will not work
horsecowdog has quit [Read error: Connection reset by peer]
<dodobrain> looks weird
amclain has quit [Quit: Leaving]
horsecowdog has joined #ruby
colorisco has joined #ruby
<Radar> Looks fine to me.
<havenwood> dodobrain: Ah, I think I see what you're doing wrong. You have to prefix `bundle exec` to the dispenser or it won't apply tape.
<Radar> heh
<dodobrain> lol
ParmesanCaesar has joined #ruby
elmendalerenda has left #ruby [#ruby]
gagrio has joined #ruby
horsecow_ has joined #ruby
<aawe> havenwood: open an issue, I'll vote in favor
User458764 has joined #ruby
lemur has quit [Remote host closed the connection]
rdark has joined #ruby
horsecow_ has quit [Read error: Connection reset by peer]
horsecowdog has quit [Ping timeout: 272 seconds]
horsecowdog has joined #ruby
havenn has joined #ruby
horsecow_ has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
DerisiveLogic has quit [Ping timeout: 250 seconds]
DavidDudson has joined #ruby
RegulationD has joined #ruby
bigkevmcd has quit [Ping timeout: 256 seconds]
havenwood has quit [Ping timeout: 245 seconds]
dodobrain has quit [Quit: bye ...o/]
horsecowdog has joined #ruby
horsecow_ has quit [Read error: Connection reset by peer]
HayesHimself has joined #ruby
iamninja has joined #ruby
cartothemax has joined #ruby
Pharaoh2 has joined #ruby
Affix-Phobos has joined #ruby
bigkevmcd has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
RegulationD has quit [Ping timeout: 248 seconds]
Affix has quit [Quit: Affix - https://affix.me]
Affix-Phobos is now known as Affix
Affix has quit [Changing host]
Affix has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
horsecow_ has joined #ruby
SpicyMagpie has quit [Quit: Leaving]
cartothemax has quit [Ping timeout: 276 seconds]
horsecow_ has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
bim has joined #ruby
bim is now known as Guest17170
<certainty> flughafen: how's hackingweek?
Musashi007 has quit [Quit: Musashi007]
horsecowdog has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
juanpaucar has joined #ruby
<flughafen> certainty: it's going hackingly
<flughafen> certainty: how's not hackingweek going?
alex88 has joined #ruby
<certainty> flughafen: it's going workingly
alienaut has quit [Remote host closed the connection]
govg has joined #ruby
Guest17170 has quit [Ping timeout: 245 seconds]
horsecow_ has joined #ruby
bruno- has joined #ruby
horsecowdog has quit [Ping timeout: 245 seconds]
horsecow_ has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
khebbie has joined #ruby
Hounddog has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
<flughafen> i'm eating free breakfast, weeeee
bruno- has quit [Ping timeout: 252 seconds]
zachrab has joined #ruby
horsecow_ has joined #ruby
hanmac has quit [Ping timeout: 265 seconds]
horsecow_ has quit [Read error: Connection reset by peer]
terlar has joined #ruby
horsecowdog has quit [Ping timeout: 240 seconds]
horsecowdog has joined #ruby
marr has joined #ruby
spicerack has quit [Quit: Textual IRC Client: www.textualapp.com]
cartothemax has joined #ruby
Zamerick_ has quit [Ping timeout: 255 seconds]
jimms has joined #ruby
mengu has quit [Remote host closed the connection]
zachrab has quit [Ping timeout: 240 seconds]
horsecowdog has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
djbkd_ has joined #ruby
chridal has joined #ruby
djbkd_ has quit [Client Quit]
cartothemax has quit [Ping timeout: 240 seconds]
horsecowdog has quit [Read error: Connection reset by peer]
sandelius has joined #ruby
horsecowdog has joined #ruby
anarang has joined #ruby
blackmesa has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DavidDudson has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
sandelius has quit [Client Quit]
horsecowdog has joined #ruby
moeabdol1 has joined #ruby
moeabdol has quit [Ping timeout: 250 seconds]
horsecow_ has joined #ruby
horsecowdog has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
horsecowdog has joined #ruby
hanmac has joined #ruby
grug has joined #ruby
grug has left #ruby [#ruby]
horsecow_ has quit [Ping timeout: 246 seconds]
horsecowdog has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
<colorisco> is it hash {'aaaa'=>'bbbb'} ?
ta has joined #ruby
<jhass> ?try
<ruboto> Why don't you try it and see for yourself?
<sevenseacat> >> {'aaaa'=>'bbbb'}.class
<ruboto> sevenseacat # => Hash (https://eval.in/313168)
<sevenseacat> \o/
meschi has joined #ruby
ujihisa has joined #ruby
horsecow_ has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
<flughafen> /0\
spider-mario has quit [Remote host closed the connection]
Wulf has joined #ruby
<Wulf> Hi
vulix has quit [Quit: Page closed]
techsethi has joined #ruby
<Wulf> I've got a serialized object (using Marshal I guess). How can I view this in human readable form?
yokel has quit [Ping timeout: 246 seconds]
horsecow_ has quit [Read error: Connection reset by peer]
genpaku has quit [Ping timeout: 265 seconds]
<sevenseacat> define 'human readable form'
vulix has joined #ruby
horsecowdog has joined #ruby
<Wulf> sevenseacat: it's currently in some binary format and I want to know what's inside
blackmesa has quit [Ping timeout: 252 seconds]
avril14th has quit [Remote host closed the connection]
genpaku has joined #ruby
yokel has joined #ruby
<havenn> >> Marshal.dump "human readable form?"
<adaedra> Wulf: deserialize it?
cartothemax has joined #ruby
<ruboto> havenn # => "\x04\bI\"\x19human readable form?\x06:\x06ET" (https://eval.in/313169)
<havenn> >> Marshal.load "\x04\bI\"\x19human readable form?\x06:\x06ET"
<ruboto> havenn # => "human readable form?" (https://eval.in/313170)
mikecmpbll has joined #ruby
horsecow_ has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pygospa has quit [Ping timeout: 256 seconds]
<havenn> Wulf: ^ is that what you meant, serializing and deserializing with Marshal?
<Wulf> I can't deserialize it, complains about "undefined class/module ActionController::"
<Wulf> havenn: someone serialized it, I want to view it
<adaedra> You need to be in the same context
jenrzzz has joined #ruby
horseco__ has joined #ruby
horsecowdog has quit [Ping timeout: 264 seconds]
pygospa has joined #ruby
jimms has quit [Remote host closed the connection]
cartothemax has quit [Ping timeout: 264 seconds]
horsecow_ has quit [Ping timeout: 255 seconds]
horsecowdog has joined #ruby
horseco__ has quit [Read error: Connection reset by peer]
<arup_r> Any body used this https://github.com/pluginaweek/state_machine ?
<sevenseacat> yes.
felltir has joined #ruby
<arup_r> I am wondering if I can add a new event/state from outside of the state_machine :state, :initial => :parked { } block ?
Olipro has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has joined #ruby
horsecow_ has joined #ruby
<arup_r> sevenseacat: I am having problem with this.. Problem is if I put it https://github.com/spree/spree/blob/080df18614bacd14bc24e4dfe29cf4f9c0b33f7a/core/app/models/spree/shipment.rb#L32-L73 inside the decorator, then there exist same code twice.. one in my decorator class, one from the gem
horsecowdog has quit [Read error: Connection reset by peer]
<arup_r> that causing problem
krisquigley has joined #ruby
ujihisa has quit [Ping timeout: 246 seconds]
sigurding has quit [Quit: sigurding]
<arup_r> something like https://gocardless.com/blog/statesman/ but this blog used other Gem
<arup_r> any idea?
horsecowdog has joined #ruby
<sevenseacat> yes, spree's code is very pretty.
<sevenseacat> its a state machine.
<arup_r> humm.. how would I add a new state there.. I want to add custom state
<sevenseacat> "i wrote some code and it didnt work! please look at this unrelated code"
techsethi has quit [Ping timeout: 248 seconds]
avril14th has joined #ruby
<arup_r> sevenseacat: you didn't getting me ?
<sevenseacat> arup_r: you showed spree's code, then asked why your code didnt work.
<sevenseacat> i'm not a mind reader.
<arup_r> well.. one minute
joonty has joined #ruby
ohaibbq has quit [Quit: Leaving...]
horsecow_ has quit [Ping timeout: 255 seconds]
horsecow_ has joined #ruby
<arup_r> And it causes error which is obvious..
crazymykl has quit [Ping timeout: 245 seconds]
<arup_r> so what's the way to add a new state inside the state machine outside of the block
urbanendeavour has quit [Quit: Leaving]
<sevenseacat> have you tried not copying the entire state machine?
<arup_r> the way I did it just have duplicate codes..
horsecowdog has quit [Ping timeout: 272 seconds]
horseco__ has joined #ruby
<arup_r> sevenseacat: if I don't copy.. how should I declare the new event
<arup_r> ?
<sevenseacat> and just defining your new state inside the state_machine block?
<arup_r> That's the way I am looking for
<arup_r> I did what you said..
<arup_r> inside the statmachine block
<arup_r> ok
<arup_r> got you
<arup_r> in that case.. it will not be what we are thinking for
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
<arup_r> it will override the all previous events
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Juanchito has joined #ruby
meschi has quit [Remote host closed the connection]
horsecowdog has joined #ruby
horsecow_ has quit [Ping timeout: 272 seconds]
horseco__ has quit [Read error: Connection reset by peer]
khebbie has joined #ruby
ghr has joined #ruby
<arup_r> workaround is to copy the full code without using decorator.. But any other way ?
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
lolmaus has joined #ruby
<sevenseacat> ?
horsecowdog has quit [Read error: Connection reset by peer]
<sevenseacat> what did you try now?
horsecow_ has joined #ruby
<arup_r> nothing.. I don't know what to try
<arup_r> thinking
c0m0 has joined #ruby
cartothemax has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
jimms has joined #ruby
horsecow_ has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cartothemax has quit [Ping timeout: 246 seconds]
horsecow_ has joined #ruby
horsecowdog has quit [Read error: Connection reset by peer]
ujjain has joined #ruby
<ParmesanCaesar> I have a noobie question
<adaedra> Go on
<ParmesanCaesar> are nested expressions in parentheses executed first?
<ParmesanCaesar> name = (temp = gets.chomp) == nil or temp = "\n" ? "Batman" : temp
horsecow_ has quit [Read error: Connection reset by peer]
<adaedra> did you test what happens in irb/try?
<adaedra> not try, pry
Takle has joined #ruby
<heftig> i'd say not to start writing code like that
horsecowdog has joined #ruby
<ParmesanCaesar> lol ok
<adaedra> and too many parenthesis is not a thing
<heftig> unless you're golfing
<jhass> evaluation is right to left, parenthesis can only override operator precedence
<jhass> er, left to right
* jhass needs to fully wake up
<adaedra> but yeah, your statement may need some rewrite, because it is hard to see what is executed
khebbie has joined #ruby
<jhass> well, == nil will never be true
SpicyMagpie has joined #ruby
<jhass> since .chomp raises when gets returns nil
<ParmesanCaesar> yeah that's a placeholder for something
horsecowdog has quit [Read error: Connection reset by peer]
<ParmesanCaesar> thanks
horsecowdog has joined #ruby
<jhass> but yeah, two lines
<jhass> name = gets.chomp
<jhass> name = "default" if name == "some_choice"
bim has joined #ruby
bim is now known as Guest2556
<heftig> I can't really decide between "some_op or raise FooError, ..." and "raise FooError, ... unless some_op"
lkba has quit [Ping timeout: 240 seconds]
<heftig> though I tend to prefer the former
horsecow_ has joined #ruby
ta has quit [Remote host closed the connection]
<jhass> I strongly prefer the later
<jhass> I hate and/or for control flow for some reason
vudew has quit [Ping timeout: 256 seconds]
<SpicyMagpie> the latter is clearer
horsecow_ has quit [Read error: Connection reset by peer]
horsecowdog has quit [Ping timeout: 272 seconds]
horsecowdog has joined #ruby
oo_ has quit [Remote host closed the connection]
vim_shimm has quit [Ping timeout: 248 seconds]
mroach has quit [Quit: mroach]
<hanmac1> jhass: more like 3 lines: name = gets; name.chomp! if name; name = "default" if name == "some_choice" becaue like you said gets can be nil
<jhass> well yeah, but his original code didn't catch it ;P
Takle has quit []
<DefV> why not
<DefV> nvm
techsethi has joined #ruby
moeabdol2 has joined #ruby
govg has quit [Remote host closed the connection]
oo_ has joined #ruby
CustosLimen has quit [Ping timeout: 240 seconds]
juanpablo____ has joined #ruby
moeabdol1 has quit [Ping timeout: 250 seconds]
horsecowdog has quit [Ping timeout: 244 seconds]
elaptics_away is now known as elaptics
yfeldblum has joined #ruby
<certainty> i prefer some_op to raise the error if that is feasable
sigurding has joined #ruby
Zai00 has joined #ruby
casshern2 has joined #ruby
crazymykl has joined #ruby
Andoriyu has quit [Quit: Textual IRC Client: www.textualapp.com]
<arup_r> sevenseacat: worked your suggestion - https://gist.github.com/aruprakshit/cf5190307b8d1910e94e
<arup_r> have some other issue.. but not related.. I'll look after lunch
<arup_r> :D
<sevenseacat> arup_r: cool, what happens now?
lloyd is now known as Lloyd
<sevenseacat> hooray.
<sevenseacat> i wait with bated breath to hear it.
<arup_r> humm.. it is working..
<arup_r> But in the UI
cartothemax has joined #ruby
<arup_r> there is a column there "shipment" is showing "none"
<arup_r> Although... DB is showing status updated
<sevenseacat> sounds like you need to fix the UI.
<arup_r> sevenseacat: humm need to check from which object UI is showing the value..
<sevenseacat> good luck.
<arup_r> and then I'll see.. what I can di
<arup_r> but state problem is gone now :D
<arup_r> thanks for the help sevenseacat:
juanpablo____ has quit [Ping timeout: 265 seconds]
yfeldblu_ has joined #ruby
arup_r has quit [Remote host closed the connection]
Takle has joined #ruby
doppler has joined #ruby
cartothemax has quit [Ping timeout: 252 seconds]
mengu has quit [Remote host closed the connection]
mengu has joined #ruby
Renich has quit [Quit: Lost terminal]
yfeldblum has quit [Ping timeout: 255 seconds]
meschi has joined #ruby
<doppler> i want to sample something (([*('0'..'9'),*('a'..'z')]).sample(20).join ) but the length of the sample (20) should point to a string so that it can be changed depending on the value of the string... any ideas?
<sevenseacat> put a variable in there?
<tmadsen> doppler: "90".to_i?
* sevenseacat dislikes the "any ideas?" question
<doppler> sevenseacat: im new to this. so bare with me :P
Olipro has joined #ruby
<tmadsen> stop sticking your tongue out then :P
<doppler> tmadsen: haha :P
<doppler> tmadsen: i will try that
mengu has quit [Remote host closed the connection]
<tmadsen> doppler: check the documentation for it as well: http://ruby-doc.org/core-2.2.1/String.html#method-i-to_i
Musashi007 has joined #ruby
basiclaser has joined #ruby
selu has joined #ruby
ujjain has quit [Read error: Connection reset by peer]
ujjain has joined #ruby
Macaveli has joined #ruby
ta has joined #ruby
lidenskap has quit [Remote host closed the connection]
withnale___ has joined #ruby
quimrstorres has joined #ruby
Igorshp has joined #ruby
cpt_yossarian has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
alienaut has joined #ruby
quimrstorres has quit [Client Quit]
jenrzzz has quit [Ping timeout: 250 seconds]
mhib has joined #ruby
RegulationD has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
neanderslob has quit [Remote host closed the connection]
leafybasil has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
User458764 has joined #ruby
ujjain has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has joined #ruby
Guest2556 has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
quimrstorres has joined #ruby
cartothemax has joined #ruby
neanderslob has joined #ruby
<vulix> Does anyone have some words of wisdom or anything to convince me to go ahead and dive into Ruby vs the alternatives? :P
<vulix> I already know Python and Perl but bored of them, not sure if Ruby's worth picking up
<sevenseacat> every language is worth picking up.
Synthbread has joined #ruby
<vulix> Will I learn anything new in Ruby land if I spend most of my time in Java and Py?
<sevenseacat> yes.
<vulix> Mostly Java (which, JRuby is appealing to me.)
jenrzzz has joined #ruby
bradleyprice has quit [Remote host closed the connection]
neanderslob has quit [Read error: Connection reset by peer]
RegulationD has quit [Ping timeout: 265 seconds]
mroach has joined #ruby
<vulix> Just kind of sucks that native Windows support for Ruby is a little bad, but vagrant seems promissing
CustosLimen has joined #ruby
vtunka has joined #ruby
iwishiwerearobot has quit [Ping timeout: 248 seconds]
cartothemax has quit [Ping timeout: 272 seconds]
withnale has quit [Ping timeout: 272 seconds]
<sevenseacat> its a little bad because not many ruby programmers use windows. them's the breaks.
<sevenseacat> it still works perfectly well.
<sevenseacat> just not as well as on other OSes.
* canton7 has never had a problem with ruby + windows
<hanmac1> Vulix: Windows support is always bad ;P
<vulix> Yeah I understand. I'm not Windows-only but it's nice to be able to actually port my project to wherever and work from there
<sevenseacat> so... what exactly is stopping you?
<vulix> Java is oddly the easiest to work with IMO on Windows, aside form .net stuff
oo_ has quit [Remote host closed the connection]
withnale has joined #ruby
<vulix> What's stopping me is I spend half my time on a Win box is all
<c-c> jruby!
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<adaedra> Jruby, the thing that saved my school project under Windows
Musashi007 has joined #ruby
<sevenseacat> how is that stopping you from doing anything with ruby?
arup_r has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
<sevenseacat> like i said, it's perfectly usable.
<vulix> it just seems so second-rate :O
arup_r has joined #ruby
tvw has joined #ruby
juanpaucar has joined #ruby
browndawg has quit [Quit: Leaving.]
<tmadsen> :D
<sevenseacat> you've posted exactly zero reasons why
mroach has quit [Ping timeout: 272 seconds]
<sevenseacat> seems like you're just procrastinating
<vulix> Because you are reliant on RubyInstaller it seems like
<sevenseacat> i know, it sucks to have to rely on an installer to install a language.
<vulix> I can't go grab the latest 2.2.2 myself right now from what I understand and run it natively on Win
bim has joined #ruby
<sevenseacat> thems the breaks, i mean, i just magically wave my hands and ruby appears on my system.
<sevenseacat> we don't need no stinkin' installers
bim is now known as Guest74857
<sevenseacat> Vulix: sure you can. you'll run into dependency hell, but you can.
<vulix> so stuff like RVM on linux, does it just compile from source for you?
<sevenseacat> yes.
<vulix> or is it the same situation where you wait for a package
<vulix> ah ok
<arup_r> sevenseacat: all is done now.. :)
joonty has quit [Quit: joonty]
<sevenseacat> :)
<arup_r> so I added a new state to the yaml file.. and thing is working
Guest74857 has quit [Read error: Connection reset by peer]
<sevenseacat> good to know.
juanpaucar has quit [Ping timeout: 264 seconds]
<arup_r> sevenseacat: but I have last thing to know from you.. if you know any trick
joonty has joined #ruby
fabrice31 has quit [Remote host closed the connection]
leafybasil has joined #ruby
leafybasil has quit [Remote host closed the connection]
fabrice31 has joined #ruby
leafybasil has joined #ruby
<sevenseacat> i know lots of tricks. wanna see me pull a rabbit out of my hat?
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
DavidDudson has joined #ruby
<flughafen> sevenseacat: will be be alive?
Nirgali42 has quit [Ping timeout: 245 seconds]
<ddv> lol
A205B064 has quit [Ping timeout: 250 seconds]
withnale has quit [Ping timeout: 244 seconds]
<arup_r> Here after clicking on the "ship" button page is refershing ... https://github.com/spree/spree/blob/2-3-stable/backend/app/views/spree/admin/orders/_shipment.html.erb#L12 .. but my new action button does all like "ship".. but not the loading..
DavidDudson has quit [Client Quit]
zachrab has joined #ruby
<arup_r> well... it is tough the JS Spree using.. I'll add my one.. who will prevent me.. I'll hack... here is the trick - http://stackoverflow.com/a/5404869/2767755
withnale has joined #ruby
ta has joined #ruby
<sevenseacat> arup_r: was there a question in there?
<ddv> arup_r: you don't make any sense
<arup_r> ddv: I know
<sevenseacat> lol
<arup_r> sevenseacat: there is a question.. But it seems, I'll figure that out
<arup_r> :D
oo_ has quit [Remote host closed the connection]
<sevenseacat> arup_r: okay have fun.
cartothemax has joined #ruby
tkuchiki_ has joined #ruby
mroach has joined #ruby
jimms has quit [Ping timeout: 252 seconds]
zachrab has quit [Ping timeout: 256 seconds]
Nirgali42 has joined #ruby
ujjain has joined #ruby
cartothemax has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
sandelius has joined #ruby
DavidDudson has joined #ruby
Musashi007 has quit [Quit: Musashi007]
oo_ has quit [Remote host closed the connection]
blackmesa has joined #ruby
Soda has joined #ruby
cpt_yossarian has joined #ruby
ta has quit [Remote host closed the connection]
gsd has joined #ruby
alienaut has quit [Ping timeout: 250 seconds]
Takle has quit [Read error: Connection reset by peer]
kp666 has quit [Quit: Leaving]
Crisix has joined #ruby
DaniG2k has joined #ruby
oo_ has joined #ruby
<doppler> what am i doing wrong? i run the script, enter one letter "h" (which counts as one character, right?), and the script should then generate 99 characters so that the final message consits of 100 letters.. instead it generates 41 chars or something like that... https://gist.github.com/d0ppler/2d8d1f37cfaebc29ac7a
jimms has joined #ruby
havenn has quit [Remote host closed the connection]
ta has joined #ruby
bennyklotz has joined #ruby
<doppler> (so that the final message consists of 100 characters i mean)
Takle has joined #ruby
gsd has quit [Ping timeout: 245 seconds]
soc42 has joined #ruby
oo_ has quit [Remote host closed the connection]
bobbrez has joined #ruby
sevenseacat has quit [Quit: Me dun like you no more.]
krisquigley has quit [Remote host closed the connection]
cartothemax has joined #ruby
krisquigley has joined #ruby
<jhass> doppler: is it because you pad after you replaced the single character by a sequence?
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> ah, it's also because sample does not repeat
<jhass> >> [0, 1, 2, 3].sample(5)
<ruboto> jhass # => [1, 0, 2, 3] (https://eval.in/313235)
<jhass> so you want Array.new(chars_left) { PAD_CHARACTERS.sample }
mengu has joined #ruby
withnale has quit [Ping timeout: 245 seconds]
<doppler> jhass: okay let me try that instead. =)
Guest72807 is now known as oddskill_away
cartothemax has quit [Ping timeout: 265 seconds]
oddskill_away is now known as oddskill
oddskill is now known as Guest13272
withnale has joined #ruby
jenrzzz has quit [Ping timeout: 316 seconds]
hmsimha has quit [Excess Flood]
kyb3r_ has joined #ruby
SpicyMagpie has quit [Quit: Leaving]
soc42 has quit [Remote host closed the connection]
lidenskap has joined #ruby
Guest13272 is now known as odd_bncproblems
ta has quit [Remote host closed the connection]
kke_ has joined #ruby
Darkwater_ has joined #ruby
gigetoo_ has joined #ruby
yeticry_ has joined #ruby
Jamo___ has joined #ruby
workmad3_ has joined #ruby
Skelz0r_ has joined #ruby
cranq_ has joined #ruby
certaint1 has joined #ruby
sigurding has quit [Quit: sigurding]
<certaint1> bah
acl777` has joined #ruby
<jhass> rhababara
<adaedra> ok
Akagi201_ has joined #ruby
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
lidenskap has quit [Ping timeout: 244 seconds]
<DaniG2k> grr
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
<DaniG2k> ruby 2.2.2 fails to install with rvm if passenger is present as a gem
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
<DaniG2k> I think it's due to permissions on the passenger gem
oo_ has joined #ruby
<DaniG2k> and ruby is trying to carry them across or something
WhereIsMySpoon__ has joined #ruby
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
tesuji has joined #ruby
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
mist__ has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
odd_bncproblems has quit [Changing host]
oddskill has joined #ruby
odd_bncproblems is now known as oddskill
oddskill has quit [Changing host]
oddskill has joined #ruby
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
yosafbridge has joined #ruby
Snowstormer has joined #ruby
z3uS| has joined #ruby
kadoppe_ has joined #ruby
sindork_ has joined #ruby
n0g4n0o has joined #ruby
SirFunk_ has joined #ruby
n0g4n0o has quit [Excess Flood]
bmn_ has joined #ruby
Sthebig_ has joined #ruby
orionstein_ has joined #ruby
akhkharu has joined #ruby
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
n0g4n0o has joined #ruby
n0g4n0o has quit [Excess Flood]
Soda has quit [*.net *.split]
Synthbread has quit [*.net *.split]
workmad3 has quit [*.net *.split]
terlar has quit [*.net *.split]
gagrio has quit [*.net *.split]
colorisco has quit [*.net *.split]
aganov has quit [*.net *.split]
sinkensabe has quit [*.net *.split]
cats has quit [*.net *.split]
_blizzy_ has quit [*.net *.split]
_honning_ has quit [*.net *.split]
orionstein has quit [*.net *.split]
tercenya has quit [*.net *.split]
kadoppe has quit [*.net *.split]
WillAmes has quit [*.net *.split]
gigetoo has quit [*.net *.split]
cajone has quit [*.net *.split]
yeticry has quit [*.net *.split]
mist has quit [*.net *.split]
yosafbridge` has quit [*.net *.split]
cranq has quit [*.net *.split]
Jamo__ has quit [*.net *.split]
brainslug has quit [*.net *.split]
Vivex has quit [*.net *.split]
Darkwater has quit [*.net *.split]
linduxed has quit [*.net *.split]
Sthebig has quit [*.net *.split]
bmn has quit [*.net *.split]
Kharma has quit [*.net *.split]
mrsolow has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
scruple has quit [*.net *.split]
sarlalia1 has quit [*.net *.split]
SirFunk has quit [*.net *.split]
z3uS has quit [*.net *.split]
flughafen has quit [*.net *.split]
acl777 has quit [*.net *.split]
certainty has quit [*.net *.split]
programmerq has quit [*.net *.split]
sindork has quit [*.net *.split]
kke has quit [*.net *.split]
WhereIsMySpoon_ has quit [*.net *.split]
marienz has quit [*.net *.split]
jouty has quit [*.net *.split]
bmn_ is now known as bmn
Sthebig_ is now known as Sthebig
n0g4n0o has joined #ruby
orionstein_ is now known as orionstein
n0g4n0o has quit [Excess Flood]
gigetoo_ is now known as gigetoo
z3uS| is now known as z3uS
Darkwater_ is now known as Darkwater
cartothemax has joined #ruby
ta has joined #ruby
oddskill is now known as oddskill_afk
fabrice31_ has joined #ruby
sid_ has joined #ruby
<jhass> doppler: ^ did you look at my example above? .sample does not return an item twice
<sid_> hi all, can any1 help.i want to knw the step by step process to integrate activemerchant in my rails app
cartothemax has quit [Ping timeout: 276 seconds]
nettoweb has joined #ruby
ta has quit [Remote host closed the connection]
<doppler> jhass oooo=)
Vyrus001 has joined #ruby
<Vyrus001> what does the K mean in => \x1CK6\xBE\xC7" ?
iteratorP has quit [Remote host closed the connection]
<Vyrus001> the rest of my string is hex bytes but whats up with that \x1CK6 one?
sid_ has quit [Client Quit]
fabrice31 has quit [Ping timeout: 256 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
<workmad3_> Vyrus001: you mean the hex byte \x1c followed by the characters K6?
<Mon_Ouie> The phrase "hex bytes" makes no sense. Ruby just writes "K" because the byte at this location represents "K" in ASCII
<jhass> Vyrus001: \x4B
kyb3r_ has joined #ruby
<Mon_Ouie> >> "\x4B" == "K"
<ruboto> Mon_Ouie # => true (https://eval.in/313239)
<jhass> >> "6".bytes.first.to_s(16)
<ruboto> jhass # => "36" (https://eval.in/313240)
<jhass> in case you wonder what the 6 is next
slackbotgz has joined #ruby
<Vyrus001> jhass: ty, *duh*
<Vyrus001> workmad3_: im dumb
workmad3_ is now known as workmad3
<workmad3> :)
Rampages has quit [Remote host closed the connection]
fabrice31_ has quit [Remote host closed the connection]
bim has joined #ruby
fabrice31 has joined #ruby
bim is now known as Guest14304
steven43126 has quit [Quit: Lost terminal]
meteor22322 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ndrei has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 248 seconds]
horsecowdog has joined #ruby
iteratorP has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
vtunka has quit [Ping timeout: 264 seconds]
juanpablo____ has joined #ruby
Guest14304 has quit [Remote host closed the connection]
horsecowdog has quit [Ping timeout: 240 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
kyb3r_ has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
cartothemax has joined #ruby
AlphaAtom has joined #ruby
juanpablo____ has quit [Ping timeout: 256 seconds]
ta has joined #ruby
Crisix has quit [Quit: Textual IRC Client: www.textualapp.com]
cartothemax has quit [Ping timeout: 250 seconds]
jimms has quit [Ping timeout: 264 seconds]
toretore has joined #ruby
ta has quit [Remote host closed the connection]
nfk has joined #ruby
yfeldblu_ has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
oo_ has quit [Remote host closed the connection]
ixti has joined #ruby
ta has joined #ruby
Akagi201_ has quit [Remote host closed the connection]
kyrylo_ has joined #ruby
MXfive has joined #ruby
RegulationD has joined #ruby
_ixti_ has quit [Ping timeout: 244 seconds]
kyrylo has quit [Ping timeout: 245 seconds]
gfawcettpq has joined #ruby
marienz has joined #ruby
blackmesa has quit [Ping timeout: 248 seconds]
cartothemax has joined #ruby
techsethi has quit [Quit: techsethi]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
DavidDudson has quit [Quit: Goodbye all, and thankyou.]
oo_ has joined #ruby
iteratorP has quit [Remote host closed the connection]
sivsushruth has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
techsethi has joined #ruby
oo_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
mengu has quit [Remote host closed the connection]
alienaut has joined #ruby
cartothemax has quit [Ping timeout: 256 seconds]
HayesHimself has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
grindmodeon has joined #ruby
sigurding has joined #ruby
alienaut has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
colorisco has joined #ruby
aef has quit [Remote host closed the connection]
aef has joined #ruby
mathie has quit [Quit: Quitting...]
mathie has joined #ruby
techsethi has quit [Quit: techsethi]
juanpaucar has joined #ruby
bruno- has joined #ruby
serivich has joined #ruby
techsethi has joined #ruby
lsmola_ has joined #ruby
quimrstorres has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 272 seconds]
sivsushruth has quit [Ping timeout: 245 seconds]
juanpaucar has quit [Ping timeout: 244 seconds]
sivsushruth has joined #ruby
felltir has quit []
bruno- has quit [Ping timeout: 265 seconds]
AlphaAtom has quit [Ping timeout: 265 seconds]
rodfersou has joined #ruby
<shevy> long live ruby!
<adaedra> d'accord
serivich has quit [Ping timeout: 272 seconds]
<shevy> rename adaedra to undeadra!
<shevy> d'accord
<shevy> yay!
Guest3271 is now known as leg
iasoon has joined #ruby
zachrab has joined #ruby
decoponio has joined #ruby
konsolebox has joined #ruby
leg is now known as tiago
AlphaAtom has joined #ruby
quimrstorres has joined #ruby
tiago has quit [Changing host]
tiago has joined #ruby
serivich has joined #ruby
nszceta has joined #ruby
<adaedra> why would I rename myself, shevy?
<adaedra> I like this nick
reinaldob has joined #ruby
iotouch has quit [Quit: This computer has gone to sleep]
<shevy> because you are undeadra
cartothemax has joined #ruby
fix_ has joined #ruby
apoplexy has quit [Ping timeout: 276 seconds]
fix_ is now known as Guest15442
bim has joined #ruby
NinjaOps has joined #ruby
zachrab has quit [Ping timeout: 246 seconds]
bim is now known as Guest16136
<jhass> shevy: play some hangman instead
<jhass> DeBot: !hangman ruby
<DeBot> ␣␣␣␣␣␣␣␣␣␣␣␣␣␣ [] 0/12
<adaedra> #
<adaedra> DeBot: #
<DeBot> ␣␣␣␣␣␣␣␣␣#␣␣␣␣ [] 0/12
khebbie has quit [Ping timeout: 264 seconds]
<wasamasa> DeBot: earnest
<DeBot> Net␣␣␣TT␣#␣ea␣ [rs] 2/12
<shevy> I can't decipher the bot
<adaedra> jhass: :#?! are two easy, maybe put them first
<wasamasa> DeBot: HP
<DeBot> Net␣␣HTTP#hea␣ [rs] 2/12
<adaedra> DeBot: d
<DeBot> Net␣␣HTTP#head [rs] 2/12
<wasamasa> DeBot: d
<DeBot> Net␣␣HTTP#head [rs] 2/12
<wasamasa> DeBot: :
<DeBot> Net::HTTP#head [rs] 2/12 You won!
<adaedra> DeBot: :
<adaedra> damn it
<wasamasa> I am a ninja
<wasamasa> although I don't use vim anymore these days
<adaedra> I ninja'd you the D
<shevy> we have ninjas here guys
<shevy> NinjaOps
<shevy> ninjazach
<shevy> ninjs
<adaedra> mode +n
<workmad3> adaedra: mode +ninja
<workmad3> adaedra: because ninjas are awesome enough to violate single-char flags :P
<adaedra> exactly
omich has quit [Ping timeout: 265 seconds]
<NinjaOps> :)
<adaedra> so, let's do things I don't want to
linduxed has joined #ruby
cartothemax has quit [Ping timeout: 265 seconds]
techsethi has quit [Quit: techsethi]
aef has quit [Remote host closed the connection]
kyrylo_ is now known as kyrylo
GreyHands has joined #ruby
techsethi has joined #ruby
grindmodeon has quit [Quit: Leaving.]
Takle has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 255 seconds]
slackbotgz has quit [Remote host closed the connection]
Guest16136 has quit [Remote host closed the connection]
aef has joined #ruby
maximski has joined #ruby
<shevy> mode +s
<shevy> samurai
<shevy> adaedra sex?
universa1 is now known as universal
universal is now known as universa1
serivich has joined #ruby
arup_r has quit [Ping timeout: 265 seconds]
universa1 is now known as universal
tkuchiki_ has quit [Ping timeout: 256 seconds]
iteratorP has joined #ruby
iotouch has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
techsethi has quit [Quit: techsethi]
<jhass> ?whatschat shevy
ParmesanCaesar has quit [Ping timeout: 250 seconds]
<ruboto> shevy, WhatsChat is a crappy app that abuses IRC for something it is not: a dating chat. Please remove this app.
techsethi has joined #ruby
sevvie has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
ujjain has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> <adaedra> so, let's do things I don't want to
ndrei has joined #ruby
shredding has joined #ruby
cartothemax has joined #ruby
skullz has joined #ruby
Hobogrammer has quit [Ping timeout: 248 seconds]
Akagi201_ has joined #ruby
anibara has quit [Ping timeout: 245 seconds]
Macaveli has joined #ruby
DexterLB has left #ruby ["So long and thanks for all the fish"]
pagios has joined #ruby
cartothemax has quit [Ping timeout: 250 seconds]
serivich has quit [Ping timeout: 244 seconds]
serivich has joined #ruby
Guest15442 is now known as omich
noname has joined #ruby
DerisiveLogic has joined #ruby
astrobunny has quit [Remote host closed the connection]
lanemeyer has quit [Ping timeout: 272 seconds]
pandaant has quit [Remote host closed the connection]
vt102 has joined #ruby
Rollabunna has joined #ruby
arup_r has joined #ruby
HayesHimself has joined #ruby
AlphaAtom has quit [Ping timeout: 245 seconds]
sevvie has quit [Ping timeout: 252 seconds]
lidenskap has joined #ruby
DerisiveLogic has quit [Ping timeout: 276 seconds]
DEA7TH has joined #ruby
sevvie has joined #ruby
lessless has joined #ruby
endash has joined #ruby
RegulationD has joined #ruby
lidenskap has quit [Ping timeout: 248 seconds]
sdothum has joined #ruby
endash has quit [Client Quit]
ldnunes has joined #ruby
maximski has quit [Ping timeout: 252 seconds]
yeticry_ has quit [Ping timeout: 272 seconds]
sivsushruth has quit [Ping timeout: 256 seconds]
maximski has joined #ruby
sivsushruth has joined #ruby
sevvie has quit [Ping timeout: 276 seconds]
maximski has quit [Max SendQ exceeded]
RegulationD has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
maximski has joined #ruby
Takle has joined #ruby
cartothemax has joined #ruby
aswen has joined #ruby
kyrylo has quit [Ping timeout: 276 seconds]
ta has joined #ruby
ta_ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
shredding has quit [Ping timeout: 256 seconds]
aganov has joined #ruby
tercenya has joined #ruby
gagrio has joined #ruby
yeticry has joined #ruby
pika_pika has joined #ruby
pagios has quit [Ping timeout: 245 seconds]
programmerq has joined #ruby
cartothemax has quit [Ping timeout: 276 seconds]
ta has quit [Ping timeout: 276 seconds]
joonty has quit [Quit: joonty]
pagios has joined #ruby
GeorgeThompson has joined #ruby
turtil has quit [Ping timeout: 250 seconds]
kohvihoor has quit [Ping timeout: 246 seconds]
universal is now known as universa1
krisquigley has quit [Remote host closed the connection]
fgo has joined #ruby
Rarikon is now known as Xoro
krisquigley has joined #ruby
olleromo___ has quit [Quit: Connection closed for inactivity]
sevvie has quit [Remote host closed the connection]
d10n-work has joined #ruby
sevvie has joined #ruby
meschi has quit [Ping timeout: 272 seconds]
mengu has joined #ruby
mengu has joined #ruby
tvw has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 272 seconds]
krisquigley has quit [Ping timeout: 240 seconds]
mostlybadfly has joined #ruby
horsecowdog has joined #ruby
silentpost has joined #ruby
meschi has joined #ruby
oo_ has joined #ruby
canton7 has quit [Quit: ZNC - http://znc.in]
DEA7TH has quit [Changing host]
DEA7TH has joined #ruby
juanpablo____ has joined #ruby
canton7 has joined #ruby
canton7 has joined #ruby
horsecowdog has quit [Ping timeout: 245 seconds]
krisquigley has joined #ruby
evanjs has quit [Remote host closed the connection]
cartothemax has joined #ruby
Snowstormer is now known as cats
juanpablo____ has quit [Ping timeout: 240 seconds]
mlev has quit [Read error: Connection reset by peer]
PaulCape_ has joined #ruby
RegulationD has joined #ruby
fabrice31_ has joined #ruby
PaulCapestany has quit [Ping timeout: 250 seconds]
cartothemax has quit [Ping timeout: 264 seconds]
Beliq has joined #ruby
silentpost has quit [Ping timeout: 246 seconds]
fabrice31_ has quit [Remote host closed the connection]
fabrice31_ has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
PaulCape_ has quit [Max SendQ exceeded]
Sp4rKy has quit [Quit: Changing server]
PaulCapestany has joined #ruby
B1n4r10 has joined #ruby
bruno- has joined #ruby
meschi has quit [Ping timeout: 264 seconds]
vtunka has joined #ruby
michael_mbp has quit [Excess Flood]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sp4rKy has joined #ruby
meschi has joined #ruby
dfinninger has joined #ruby
cocotton has joined #ruby
jenrzzz has joined #ruby
serivich has joined #ruby
bim has joined #ruby
xmaddness has joined #ruby
bim is now known as Guest75008
User458764 has joined #ruby
sivsushruth has quit [Ping timeout: 256 seconds]
sivsushruth has joined #ruby
michael_mbp has joined #ruby
pagios has quit [Ping timeout: 272 seconds]
BTRE has quit [Quit: Leaving]
nfk has quit [Quit: yawn]
yqt has joined #ruby
techsethi has quit [Quit: techsethi]
Pharaoh2 has quit [Disconnected by services]
Pharaoh2_ has joined #ruby
serivichi has joined #ruby
Guest75008 has quit [Remote host closed the connection]
blackmesa has joined #ruby
ascarter has joined #ruby
joonty has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
serivich has quit [Ping timeout: 245 seconds]
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby
failshell has joined #ruby
Rapier- has joined #ruby
failshell has quit [Remote host closed the connection]
freerobby has joined #ruby
failshell has joined #ruby
Zamerick has joined #ruby
mlev has joined #ruby
brb3 has joined #ruby
Zamerick_ has joined #ruby
kyrylo has joined #ruby
cartothemax has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
mengu has quit [Remote host closed the connection]
sandelius has joined #ruby
michael_mbp has quit [Excess Flood]
alex88_ has joined #ruby
<sandelius> if I develop a gem is the Gemfile used at all or is it dependencies only read from .gemspec ?
quimrstorres has quit [Remote host closed the connection]
PaulCape_ has joined #ruby
sivsushruth has quit [Ping timeout: 244 seconds]
techsethi has joined #ruby
tvw has joined #ruby
cartothemax has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
lxsameer_ has quit [Quit: Leaving]
<hanmac1> sandelius if you make a gem you might not need a Gemfile
Zamerick has quit [Quit: Leaving]
sankaber has joined #ruby
alex88 has quit [Ping timeout: 256 seconds]
PaulCapestany has quit [Ping timeout: 256 seconds]
oo_ has quit [Remote host closed the connection]
pandaant has joined #ruby
B1n4r10 has quit [Quit: Textual IRC Client: www.textualapp.com]
sankaber has quit [Read error: Connection reset by peer]
kyrylo_ has joined #ruby
sankaber has joined #ruby
techsethi has quit [Client Quit]
kyrylo has quit [Ping timeout: 250 seconds]
NoNMaDDeN has joined #ruby
juanpaucar has joined #ruby
astrobunny has joined #ruby
<avril14th> Does anyone know how to search a nokogiri document by name AND attributes?
michael_mbp has quit [Excess Flood]
ddarkpassenger has joined #ruby
willharrison has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
ocx has joined #ruby
willharrison has quit [Client Quit]
michael_mbp has joined #ruby
astrobunny has quit [Ping timeout: 252 seconds]
vivekananda has quit [Ping timeout: 272 seconds]
<ocx> hello i am trying to integrate amazon sns and getting an error; Invalid parameter: Message Structure - JSON message body failed to parse (Aws::SNS::Errors::InvalidParameter) here is my code http://pastie.org/10091745 and here is the api documetation: http://docs.aws.amazon.com/sdkforruby/api/Aws/SNS/Client.html#publish-instance_method
droidburgundy has joined #ruby
iotouch has quit [Quit: 离开]
<ocx> tried to google and nothing found about that type of integration
joonty has quit [Quit: joonty]
<ocx> need to know how to use message_attributes:
vtunka has quit [Quit: Leaving]
delianides has joined #ruby
joonty has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> ocx: sounds like you pass invalid json to message_structure
bkxd has joined #ruby
<ocx> jhass: i guessed that , i dont know how to use it though
<ocx> no example
freerobby has quit [Quit: Leaving.]
delianid_ has joined #ruby
zachrab has joined #ruby
AlphaAtom has joined #ruby
Vivex has joined #ruby
<jhass> If you set MessageStructure to json, the value of the Message parameter must:
<jhass> be a syntactically valid JSON object; and
<jhass> contain at least a top-level JSON key of "default" with a value that is a string.
<jhass> "Hello" does not fulfill these requirements
kyrylo__ has joined #ruby
techsethi has joined #ruby
User458764 has joined #ruby
<jhass> where what I copy pasted that from is more explanations and a link that has examples of the json
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> s/what//
<ocx> its not a concrete example jhass
cartothemax has joined #ruby
delianid_ has quit [Remote host closed the connection]
delianid_ has joined #ruby
<jhass> can you only code by copy pasting stuff together?
kyrylo_ has quit [Ping timeout: 245 seconds]
<ocx> ita very abstract
delianides has quit [Ping timeout: 272 seconds]
vtunka has joined #ruby
<jhass> not really
<ocx> you are funny jhass did anyone tell you this before?
<jhass> I heard either way
evanjs has joined #ruby
zachrab has quit [Ping timeout: 252 seconds]
JDiPierro has joined #ruby
kohvihoor has joined #ruby
cartothemax has quit [Ping timeout: 265 seconds]
ddarkpassenger has quit [Quit: Leaving]
PaulCapestany has joined #ruby
Advocation has joined #ruby
blackmesa has quit [Ping timeout: 255 seconds]
bobbrez has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
banister has quit [Ping timeout: 240 seconds]
Igorshp has quit [Remote host closed the connection]
PaulCape_ has quit [Ping timeout: 245 seconds]
Stalkr has joined #ruby
lavros has joined #ruby
zotherst1pidguy has joined #ruby
lobolars has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
mengu has joined #ruby
<zotherst1pidguy> anybody managed to blog using latex on jekyll/github?
<zotherst1pidguy> and if yes, how please!
sevenseacat has joined #ruby
tus has joined #ruby
sgambino has joined #ruby
bim has joined #ruby
ismaelga has joined #ruby
bim is now known as Guest24305
kyrylo has joined #ruby
freerobby has joined #ruby
skullz has quit [Ping timeout: 276 seconds]
kyrylo__ has quit [Ping timeout: 255 seconds]
ponga has joined #ruby
konsolebox has quit [Ping timeout: 245 seconds]
Stalkr has quit [Quit: Linkinus - http://linkinus.com]
zenith_ has joined #ruby
lanemeyer has joined #ruby
gfawcettpq has quit [Ping timeout: 255 seconds]
doodlehaus has joined #ruby
jerius has joined #ruby
jherbst has joined #ruby
dblessing has joined #ruby
fabrice31 has joined #ruby
cartothemax has joined #ruby
alex88_ has quit []
lkba has joined #ruby
fryguy9 has joined #ruby
cpt_yossarian has quit [Ping timeout: 255 seconds]
fabrice31 has quit [Remote host closed the connection]
<shevy> does robots.txt actually work?
fabrice31 has joined #ruby
r0ok has quit [Quit: leaving]
<shevy> and do the rails dudes use that
grindmodeon has joined #ruby
<shevy> if I were not too scared of the people on #rubyonrails I could ask them!
ponga has quit [Quit: Leaving...]
<failshell> i like to think it does. but im sure the shady spiders dont
ascarter has joined #ruby
abyss has joined #ruby
<abyss> Hi
ringarin has joined #ruby
Igorshp has joined #ruby
fabrice31_ has quit [Ping timeout: 246 seconds]
Zamyatin has joined #ruby
codecop has quit [Remote host closed the connection]
ascarter has quit [Client Quit]
cartothemax has quit [Ping timeout: 240 seconds]
iteratorP has quit [Remote host closed the connection]
<abyss> I have code like this: https://gist.github.com/anonymous/30359f45060d58cb9972 when I try run this I get: /usr/lib/ruby/1.9.1/net/http.rb:763:in `initialize': getaddrinfo: Name or service not known (Seahorse::Client::NetworkingError)
sgambino has quit [Remote host closed the connection]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
jherbst has joined #ruby
<abyss> Someone has experience with aws-sdk and can help?
cartothemax has joined #ruby
Takle has quit [Remote host closed the connection]
<ocx> params[:message_attributes] to be a hash (ArgumentError)
jenrzzz has joined #ruby
hiyosi has joined #ruby
<abyss> ?;)
ponga has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
fryguy9 has quit [Quit: Leaving.]
lidenskap has joined #ruby
vulix has quit [Ping timeout: 246 seconds]
cpt_yossarian has joined #ruby
PaulCape_ has joined #ruby
chrisarcand has left #ruby [#ruby]
agarie has joined #ruby
ponga has quit []
chrisarcand has joined #ruby
PaulCapestany has quit [Ping timeout: 264 seconds]
<ocx> anyone can help ? http://pastie.org/10091829
<ocx> not seem to dig it
jenrzzz has quit [Ping timeout: 272 seconds]
jottr has joined #ruby
lidenskap has quit [Ping timeout: 252 seconds]
freerobby has quit [Quit: Leaving.]
<jhass> ocx: are you sure that's the code you actually run?
quimrstorres has joined #ruby
<ocx> jhass: i am chaging some like removing the binary thing , putting the correct arn etc
<jhass> abyss: is your DNS broken perhaps? it can't resolve some hostname
<jhass> or maybe you specify an invalid one
kobain has joined #ruby
Zamyatin has quit [Ping timeout: 246 seconds]
arup_r has quit [Remote host closed the connection]
<abyss> jhass: yeah, this is all my code. Rest of take care the module from aws. So I suppose generated url by this module should be ok... Thank you.
Zamyatin has joined #ruby
mgberlin has joined #ruby
<abyss> probably is something wrong;) But I don't know what;)
ponga has joined #ruby
juanpablo____ has joined #ruby
techsethi has quit [Quit: techsethi]
<ocx> anyone expereicen with this amaong thing
kobain has quit [Max SendQ exceeded]
Zamyatin has quit [Ping timeout: 256 seconds]
enebo has joined #ruby
bkxd has joined #ruby
RegulationD has quit [Remote host closed the connection]
kyrylo_ has joined #ruby
uri_ has joined #ruby
panga has joined #ruby
Igorshp has quit [Remote host closed the connection]
Zamyatin has joined #ruby
Beliq has quit [Quit:
kyrylo has quit [Ping timeout: 272 seconds]
gfawcettpq has joined #ruby
iasoon has quit [Ping timeout: 252 seconds]
juanpablo____ has quit [Ping timeout: 264 seconds]
tvw has quit [Remote host closed the connection]
mgorbach has quit [Read error: Connection reset by peer]
sarumon has joined #ruby
<sarumon> hello
mgorbach has joined #ruby
amystephen has joined #ruby
RegulationD has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
werelivinginthef has joined #ruby
n4do has joined #ruby
ocx has quit [Ping timeout: 246 seconds]
<n4do> hello everybody
<n4do> quick question of mine
<n4do> I'm reading "learn ruby the hard way" and have a question
<n4do> any ideas what code to read?
Wulf has left #ruby [#ruby]
<Coraline> I would say find a gem that you use often and read its source code.
n4do_ has joined #ruby
n4do has quit [Client Quit]
Igorshp has joined #ruby
<mikecmpbll> i'm not sure just plain reading code for the sake of it is particularly good advise, but hey
<mikecmpbll> advice*
nettoweb has joined #ruby
Igorshp has quit [Read error: Connection reset by peer]
Takle has joined #ruby
Igorshp has joined #ruby
<n4do_> okay. Thanks for the advice mikecmpbll
<casshern2> I am following a very simple example how to calculate BMI but it doesnt work, even though my code is identical
sarumon has left #ruby [#ruby]
<casshern2> it only works when I convert the numbers to integers for some reason, otherwise it just gives me a wrong total https://gist.github.com/Luomint/669962b3f25d068cb2cf
<avril14th> Casshern2: you need to cast I float as think
<mikecmpbll> Casshern2: what example are you following and what are you input units?
bkxd has quit [Ping timeout: 256 seconds]
<avril14th> at least weight
mgberlin has quit [Remote host closed the connection]
fabrice31_ has joined #ruby
XorSwap has joined #ruby
<mikecmpbll> n4do_: choose an idea that you want to implement and just attack it. you'll end up reading other code and understanding it as part of the process of finding out how to something that you need for your own app, and you'll understand it more thoroughly
<mikecmpbll> (because you have to, to implement it yourself)
<n4do_> okay
<mikecmpbll> Casshern2: the code in the example converts to integer too
<casshern2> hmm but it says to_i
iasoon has joined #ruby
<mikecmpbll> yeah, that is a conversion to integer.
<jhass> >> "1.89".to_i
<ruboto> jhass # => 1 (https://eval.in/313349)
<jhass> does that look like the result you want?
blackmesa has joined #ruby
<jhass> >> "1.89".to_f # or wouldn't that be better
<mikecmpbll> i don't even understand what he's asking anymoar.
<ruboto> jhass # => 1.89 (https://eval.in/313350)
<casshern2> yea I am saying the code doesnt work as it tis
<casshern2> only when I change it to floats to_f
<mikecmpbll> [14:54:33] <Casshern2>it only works when I convert the numbers to integers for some reason
<mikecmpbll> :/
<casshern2> that example is in 1.9xx
fabrice31 has quit [Ping timeout: 276 seconds]
<casshern2> ah yea typo
kyrylo__ has joined #ruby
konsolebox has joined #ruby
<mikecmpbll> right. so it's a shit example? :)
n4do_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Kricir has joined #ruby
PaulCapestany has joined #ruby
mary5030 has joined #ruby
mengu has quit []
kyrylo_ has quit [Ping timeout: 276 seconds]
<abyss> jhass: Thank you for reply. I gave bad region in region variable... Should be without that 'a' ;)
PaulCape_ has quit [Ping timeout: 250 seconds]
horsecowdog has joined #ruby
paulcsmith has joined #ruby
felltir has joined #ruby
catcher has joined #ruby
alex88 has joined #ruby
sgambino has joined #ruby
Igorshp has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Zamyatin has quit [Ping timeout: 250 seconds]
uri_ has quit [Quit: Textual IRC Client: www.textualapp.com]
dudedudeman has joined #ruby
coderkevin has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
sevvie has quit [Remote host closed the connection]
sevvie has joined #ruby
<dudedudeman> good morning rubyists!
momomomomo has joined #ruby
sgambino_ has joined #ruby
<panga> good morning fellow rubyist
joonty has quit [Quit: joonty]
konsolebox has quit [Remote host closed the connection]
joonty has joined #ruby
juanpablo____ has joined #ruby
Channel6 has joined #ruby
oddskill_afk is now known as oddskill
<adaedra> shevy: …
sevenseacat has quit [Quit: Me dun like you no more.]
sgambino has quit [Ping timeout: 264 seconds]
tesuji has quit [Ping timeout: 244 seconds]
<avril14th> hello Panga
<dudedudeman> shevy gorvette?
mitchellhenke has joined #ruby
<dudedudeman> sorvette*
kyrylo has joined #ruby
shellfu has joined #ruby
alex88 has quit []
kyrylo__ has quit [Ping timeout: 246 seconds]
audy has joined #ruby
duggiefresh has joined #ruby
ParmesanCaesar has joined #ruby
jottr has quit [Ping timeout: 245 seconds]
juanpablo_____ has joined #ruby
juanpablo____ has quit [Ping timeout: 272 seconds]
bigkevmcd has quit [Ping timeout: 255 seconds]
gauke has quit [Ping timeout: 264 seconds]
bigkevmcd has joined #ruby
Feyn has quit [Quit: Leaving]
Takle has quit [Remote host closed the connection]
XorSwap has quit [Ping timeout: 240 seconds]
sgambino_ has quit [Remote host closed the connection]
gauke has joined #ruby
Takle_ has joined #ruby
g105b has left #ruby [#ruby]
fmcgeough has joined #ruby
grindmodeon has quit [Quit: Leaving.]
PaulCape_ has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
bigkevmc_ has joined #ruby
<casshern2> why is it that it looks like the variable name itself doesn't matter, only the order in which they are received (through gets)? reiterated my previous question in a different way https://gist.github.com/Luomint/82a3e6d6f6b41e5c39de
PaulCapestany has quit [Ping timeout: 246 seconds]
<jhass> Casshern2: because then you input the wrong values I guess
gregf1 has joined #ruby
matugm has joined #ruby
matugm has joined #ruby
<jhass> it's impossible to tell without watching you while you modify and test it though
fgo has quit [Quit: WeeChat 1.1.1]
OtterCoder has joined #ruby
bigkevmcd has quit [Ping timeout: 276 seconds]
<casshern2> it's weird, I am pretty sure I enter it correctly
davedev24_ has joined #ruby
<workmad3> Casshern2: you'd need to actually show us the code you're running when you say it's the wrong way around
riotjones has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
momomomomo_ has joined #ruby
phutchins has joined #ruby
jottr has joined #ruby
ndrei has quit [Ping timeout: 264 seconds]
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
jenrzzz has joined #ruby
evanjs has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
phutchins has quit [Client Quit]
yqt has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
ndrei has joined #ruby
aganov has quit [Quit: Leaving]
Takle_ has quit [Remote host closed the connection]
daynaskully has quit [Ping timeout: 250 seconds]
spyderman4g63 has joined #ruby
Megtastique has joined #ruby
davedev24_ has quit [Ping timeout: 256 seconds]
davedev24_ has joined #ruby
fabrice31 has joined #ruby
juanpaucar has joined #ruby
anarang has quit [Quit: Leaving]
zachallett has joined #ruby
fabrice31_ has quit [Read error: No route to host]
Takle_ has joined #ruby
sgambino has joined #ruby
hanmac1 has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 264 seconds]
Beliq has joined #ruby
grindmodeon has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
ta has joined #ruby
felltir has quit []
yeticry has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
<dudedudeman> does anyone here use activerecord outside of rails?
grindmodeon has quit [Client Quit]
Spami has joined #ruby
droidburgundy has joined #ruby
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
sgambino_ has joined #ruby
<greedo> are you asking if other people use ORMs?
ringarin has quit [Ping timeout: 250 seconds]
nszceta has quit [Quit: Textual IRC Client: www.textualapp.com]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<dudedudeman> well, of course other people use ORMs.
ta has quit [Ping timeout: 276 seconds]
<dudedudeman> i'm trying to play with nested attributes in my project here, and i'm just wallowing around in it
<adaedra> dudedudeman: "does anyone"-questions are useless. If you have a question, ask directly. If it concerns Rails, ask in #RubyOnRails.
zachrab has joined #ruby
DerisiveLogic has joined #ruby
<dudedudeman> ok. it's not a rails question but of course, activerecord is used heavily in rails
sgambino has quit [Ping timeout: 252 seconds]
Channel6 has quit [Quit: Leaving]
maximski has quit [Ping timeout: 272 seconds]
maximski has joined #ruby
sgambino has joined #ruby
lavros_ has joined #ruby
lavros has quit [Ping timeout: 256 seconds]
kyrylo_ has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ringarin has joined #ruby
rbennacer has joined #ruby
kyrylo has quit [Ping timeout: 255 seconds]
Spami has quit [Ping timeout: 265 seconds]
cpt_yossarian has quit [Ping timeout: 250 seconds]
sgambino_ has quit [Ping timeout: 245 seconds]
grindmodeon has joined #ruby
zachrab has quit [Ping timeout: 248 seconds]
rbennacer has quit [Remote host closed the connection]
evanjs has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pharaoh2 has joined #ruby
Beliq has quit [Quit:
PaulCapestany has joined #ruby
jenrzzz has joined #ruby
codemonkey010101 has joined #ruby
hannahkoala has joined #ruby
codemonkey010101 has quit [Client Quit]
PaulCape_ has quit [Ping timeout: 256 seconds]
codemonkey010101 has joined #ruby
arturaz has quit [Ping timeout: 272 seconds]
digifiv5e has joined #ruby
digifiv5e is now known as Guest73277
skullz has joined #ruby
codemonk_ has joined #ruby
zenith_ has quit [Remote host closed the connection]
GnuYawk has joined #ruby
codemonk_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 244 seconds]
codemonk_ has joined #ruby
Jackneill has joined #ruby
kblake has joined #ruby
vyorkin has joined #ruby
spyderma_ has joined #ruby
panga has quit [Remote host closed the connection]
spyderman4g63 has quit [Read error: Connection reset by peer]
codemonkey010101 has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Remote host closed the connection]
sgambino has quit [Remote host closed the connection]
sgambino has joined #ruby
vire has quit [Ping timeout: 256 seconds]
spyderman4g63 has joined #ruby
AlphaAtom has quit [Ping timeout: 276 seconds]
kyrylo__ has joined #ruby
browndawg has joined #ruby
vtunka has quit [Quit: Leaving]
jimms has joined #ruby
ujihisa has joined #ruby
spyderm__ has joined #ruby
browndawg has quit [Client Quit]
kyrylo_ has quit [Ping timeout: 248 seconds]
spyderma_ has quit [Ping timeout: 245 seconds]
vim_shimm has joined #ruby
browndawg has joined #ruby
cpt_yossarian has joined #ruby
spyderman4g63 has quit [Ping timeout: 265 seconds]
jimms has quit [Read error: Connection reset by peer]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jimms has joined #ruby
connor_goodwolf has joined #ruby
agarie has quit [Remote host closed the connection]
rbennacer has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
wookiehangover has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
browndawg has joined #ruby
rbennacer has quit [Remote host closed the connection]
fryguy9 has joined #ruby
panga has joined #ruby
ponga has quit []
panga is now known as ponga
Matadoer has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
grindmodeon has quit [Quit: Leaving.]
nemesit|znc has quit [Ping timeout: 272 seconds]
evanjs has quit [Ping timeout: 244 seconds]
horsecowdog has quit [Remote host closed the connection]
Matadoer has joined #ruby
michaeldeol has joined #ruby
jimms has quit [Ping timeout: 240 seconds]
sigurding has quit [Quit: sigurding]
Megtastique has quit [Ping timeout: 250 seconds]
PaulCape_ has joined #ruby
konsolebox has joined #ruby
wookiehangover has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
juanpablo______ has joined #ruby
zachallett has quit []
agarie has joined #ruby
nemesit|znc has joined #ruby
ParmesanCaesar has quit [Ping timeout: 250 seconds]
momomomomo has quit [Quit: momomomomo]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
byprdct has joined #ruby
jimms has joined #ruby
PaulCapestany has quit [Ping timeout: 265 seconds]
gagrio has quit [Ping timeout: 240 seconds]
AlphaAtom has joined #ruby
dfinninger has joined #ruby
PaulCape_ has quit [Max SendQ exceeded]
icebourg has joined #ruby
blueOxigen has joined #ruby
juanpablo_____ has quit [Ping timeout: 264 seconds]
elfuego has joined #ruby
<elfuego> is there a way to force bundler to run as root?
Megtastique has joined #ruby
casadei has joined #ruby
PaulCapestany has joined #ruby
zenith_ has joined #ruby
moeabdol2 has quit [Ping timeout: 252 seconds]
ujihisa has quit [Ping timeout: 250 seconds]
bluOxigen has quit [Ping timeout: 256 seconds]
<jhass> elfuego: yes, bundle help or one of hte subsections should have it. But why can't you let it call sudo?
User458764 has joined #ruby
sevvie has joined #ruby
dfinninger has quit [Ping timeout: 250 seconds]
<jhass> or install to a local site dir?
dumdedum has quit [Quit: foo]
<adaedra> who are those people running as root
mbeasley has quit [Quit: WeeChat 0.4.2]
grindmodeon has joined #ruby
grindmodeon has quit [Max SendQ exceeded]
Megtastique has quit [Read error: Connection reset by peer]
grindmodeon has joined #ruby
mbeasley has joined #ruby
momomomomo has joined #ruby
Beliq has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
hollywood has joined #ruby
Spami has joined #ruby
<elfuego> jhass: i’m running bundle inside a docker container, and the only user is root, and think it would less effort to force bundle to suck up and use root as oppose to create a new user. Docker doesn’t allow sudo I think
<abyss> I'm trying to use this: http://docs.aws.amazon.com/sdkforruby/api/Aws/EC2/Resource.html#instances-instance_method and there is options and I can use filters. How can I use it? I'm trying to do something like this: instances(filters: ['instance-state-name'['stopped']]) but it isn't work. Any ideas? Thank you.
Megtastique has joined #ruby
Spami has quit [Max SendQ exceeded]
HayesHimself has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
snockerton has joined #ruby
<jhass> that aws-sdk needs its own channel :/
evanjs has joined #ruby
<dudedudeman> is there a way to format the way that .all shows my classes or what have you in terminal?
riotjones has joined #ruby
dfinninger has joined #ruby
<dudedudeman> instead of going Class.all and seeing a bunch of a text, a list would be nice, or something that is a bit easier to quickly read
bussssssst has joined #ruby
freerobby has joined #ruby
<bussssssst> 1+1+1
<bussssssst> 1+1+1+1
<abyss> jhass: ;) A lot of questions here about this?
<jhass> bussssssst: 3 & 4
<bussssssst> thanks, I was going to continue increasing the complexity of the questions
<adaedra> I redefine the operator :+
<bussssssst> by the way jhass, I see you here very often, are you a bot?
<jhass> bussssssst: yes
<workmad3> bussssssst: jhass is our current attempt to pass the turing test
<bussssssst> I have to think about a rule that produce you get into a deep loop
GaryOak_ has joined #ruby
<workmad3> bussssssst: unfortunately, it's not going very well... he doesn't come across as particularly human :(
kyrylo has joined #ruby
jobewan has joined #ruby
<bussssssst> alicebots are funny
<ponga> someone said alice bot?
rbennacer has joined #ruby
<ponga> lol
<ponga> jhass
kyrylo__ has quit [Ping timeout: 264 seconds]
riotjones has quit [Ping timeout: 255 seconds]
mbeasley has quit [Quit: WeeChat 0.4.2]
huddy has joined #ruby
mbeasley has joined #ruby
<bussssssst> I would like to make my own bots from scratch by it requires something like 100000 rules, and now I don't file like
bricker has joined #ruby
<workmad3> bussssssst: if he doesn't improve soon, I'll take a strong electo-magnet to his neural nets
<dudedudeman> so many bots..
<dudedudeman> am i bot?
<bussssssst> lately I am reading Robin Cook cell, middle of the book, perhaps jhass be employed in that
<dudedudeman> a bot..*
agarie has quit [Remote host closed the connection]
<jhass> abyss: how did you come up with your syntax? Can't find any examples at all
MatthewsFace has quit [Remote host closed the connection]
<bussssssst> how was the name of something in ruby that looks like natural language for programming?
<jhass> gherkin?
<bussssssst> it was something for test that parse with regular expressions, simple but good for not programmers
mbeasley has quit [Read error: Connection reset by peer]
<bussssssst> I think is out of fashion now
mbeasley has joined #ruby
momomomomo has quit [Ping timeout: 255 seconds]
<jhass> gherkin
<jhass> with cucumber
<bussssssst> perhaps was cucumber
CorpusCallosum has joined #ruby
<abyss> jhass: yes, I can't find any example as well. There is only how method instances should looks like. So I tried this one;) I supposed that from this description: instances(options = {}) and Options Hash (options) and :filters (Array) someone will find it out how to use it;)
ringarin has quit [Ping timeout: 248 seconds]
<jhass> but wait, Ruby is not a natural language? workmad3 you've been training me wrong! it's not my fault!
<ponga> lol
colorisco has quit [Ping timeout: 255 seconds]
udiudi has joined #ruby
fryguy9 has quit [Quit: Leaving.]
<bussssssst> ruby is natural language for bots if they were programmed in ruby
mbeasley has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
mbeasley has joined #ruby
<jhass> abyss: well, turning what you have into valid Ruby isn't all that hard, but I can't find anything on how you would make up the key/value pairs
<jhass> so I wondered if there's some general doc or something I missed
CorpusCallosum has quit [Client Quit]
<bussssssst> the key point is to make simple things simple (you win) but not to try to do difficult things simple, choose a good use case first
lemur has joined #ruby
CorpusCallosum has joined #ruby
Takle_ has quit [Remote host closed the connection]
<bussssssst> fune name, lemur and corpuscallosum, and also momo (from the never ending story?)
fryguy9 has joined #ruby
evanjs has quit [Remote host closed the connection]
mbeasley has quit [Client Quit]
mbeasley has joined #ruby
Pumukel has joined #ruby
<bussssssst> I was going to try bitch a irc bot in Lisp, but I started learning about using irc first
sgambino has quit [Remote host closed the connection]
Guest24305 has quit [Remote host closed the connection]
<abyss> jhass: the only doc is that I put above :(
<abyss> only description of api
krisquig_ has joined #ruby
zorak8 has joined #ruby
freerobby has joined #ruby
<ninjs> if I can get data from a cell like this row[50] , can I get data in an array like this? row[50, 51, 55, 60] etc?
<jhass> ninjs: that depends on the implementation of hte #[] method
<jhass> abyss: yeah, look again at the comment I linked
Takle has joined #ruby
vivekananda has joined #ruby
<abyss> jhass: yes I was looking on it but it's still not working;)
<jhass> abyss: I'm sorry, but yours doesn't remotely look like the examples
<abyss> that example is for sdk v1 and I have newer sdk v2
casshern2 has quit [Ping timeout: 246 seconds]
<jhass> doesn't mean it's not worth a try
<abyss> jhass: yes, of course, because I have modified this many times;)
codemonk_ has quit [Quit: Leaving...]
maximski has quit [Ping timeout: 276 seconds]
Takle has quit [Remote host closed the connection]
udiudi has left #ruby ["Textual IRC Client: www.textualapp.com"]
lemur has quit [Remote host closed the connection]
<jhass> well, what's your first version before you made up some invalid syntax?
Filete has joined #ruby
<bussssssst> I dindn't know gherkin only about cucumber. Now I know what gherkin is, thanks.
<jhass> or I guess it's actually syntactically valid, but, sorry, none-sense
<jhass> bussssssst: yw
krisquigley has quit [Ping timeout: 272 seconds]
<jhass> >> 'instance-state-name'['stopped']
<ruboto> jhass # => nil (https://eval.in/313424)
<jhass> just returns nil
<jhass> so your current code is equivalent to filters: [nil]
maximski has joined #ruby
<abyss> jhass: https://gist.github.com/anonymous/06252e19a5ccd2ab98cf but I get: syntax error, unexpected ',', expecting tASSOC
<jhass> abyss: yes, look at the example again
sgambino has joined #ruby
<jhass> yours still looks quite different
vivekananda has quit [Ping timeout: 244 seconds]
Takle has joined #ruby
colorisco has joined #ruby
spyderm__ has quit []
<jhass> ninjs: looking at http://www.rubydoc.info/gems/spreadsheet/Spreadsheet/Row, it actually inherits Array, so you can look up the invocations for Array#[] and they'll most likely work
ponga has quit [Quit: Leaving...]
<ninjs> I'm really confused what this error means
<jhass> ninjs: it means you passed 6 arguments to the #[] method, while it expects one or two
<jhass> >> Array.new[1, 2, 3, 4, 6, 6]
joonty has quit [Quit: joonty]
<ruboto> jhass # => wrong number of arguments (6 for 1..2) (ArgumentError) ...check link for more (https://eval.in/313427)
<ninjs> jhass: so that answers my question, I can't do that. haha
Takle has quit [Remote host closed the connection]
<abyss> jhass: You're right. But for me it's look like something different at all:/ It works when I added name and values... It's impossible to get this from that documentation which I paste above... Stupid Amazon:/ Thank you very much.
joonty has joined #ruby
<jhass> abyss: I agree it it's badly documented, yes
<abyss> Thank you. Now I can go home;)
bluOxigen has joined #ruby
Takle has joined #ruby
horsecowdog has joined #ruby
allenn has quit [Remote host closed the connection]
Megtasti_ has joined #ruby
Megtasti_ has quit [Max SendQ exceeded]
bussssssst has quit [Quit: Page closed]
bim has joined #ruby
Megtastique has quit [Read error: Connection reset by peer]
bim is now known as Guest90035
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
havenwood has joined #ruby
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
<ninjs> Sorry for all the dumb questions, but can I do an Array.min and Array.max on an array of strings?
blueOxigen has quit [Ping timeout: 276 seconds]
Megtastique has joined #ruby
<havenwood> >> ['good', 'morning', 'coffee'].minmax
<ruboto> havenwood # => ["coffee", "morning"] (https://eval.in/313430)
Matadoer has quit [Ping timeout: 250 seconds]
endash has joined #ruby
<aef> ninjs: it works for all objects that implement the Comparable mixin
Matadoer has joined #ruby
<jhass> so you don't have an array of strings
<ninjs> Does this mean I can't do a .min on an array with a nil value?
<jhass> you have an array of strings and nil's
<aef> ninjs: nil does not include the Comparable mixin
<jhass> >> [nil, nil].min
<ruboto> jhass # => nil (https://eval.in/313432)
binocular has joined #ruby
<jhass> >> [nil, ""].min
<ruboto> jhass # => comparison of String with nil failed (ArgumentError) ...check link for more (https://eval.in/313433)
<ninjs> Okay I'm starting to understand ruby errors haha. So just delete nil from my arrays?
mbeasley has quit [Quit: WeeChat 0.4.2]
<jhass> yeah, handy method for that: compact
graft has joined #ruby
<jhass> >> [nil, ""].compact.min
<ruboto> jhass # => "" (https://eval.in/313434)
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
kaspernj has quit [Remote host closed the connection]
<aef> ninjs: well, seems I am mistaken here. so it seems actually to depend on the fact that all included objects are comparable to each other
<ninjs> You just can't compare type String to type Nil
<ninjs> that makes sense actually
techsethi has joined #ruby
kyrylo_ has joined #ruby
<binocular> "" == nil is valid
<User458764> Hi, how do I know that a number is Integer ? In my case 2.0 should be an integer for example but it 2.0.integer? returns false
mbeasley has joined #ruby
Eiam_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<aef> ninjs: so if 'somestring' <=> nil outputs nil, and not -1, 0 or 1, those two cannot be in the array when using #max and their likes
<havenwood> >> "" < nil
moeabdol2 has joined #ruby
<ruboto> havenwood # => comparison of String with nil failed (ArgumentError) ...check link for more (https://eval.in/313435)
<binocular> parseInt(a) = a
mbeasley has quit [Client Quit]
quimrstorres has quit [Read error: Connection reset by peer]
paulcsmith has quit [Quit: Be back later ...]
<binocular> n.to_ i = n
browndawg has left #ruby [#ruby]
<aef> ninjs: the "ufo" operator is for ordering comparison
kyrylo has quit [Ping timeout: 276 seconds]
<ninjs> jhass: wow compact is handy
gauke has quit [Quit: gauke]
<jhass> User458764: as binocular said, n.to_i == n should work
<binocular> "" <=> nil gives nil
startupality has joined #ruby
<binocular> yes, I have two eyes
regnartim has joined #ruby
spider-mario has joined #ruby
aswen has joined #ruby
wallerdev has joined #ruby
<User458764> jhass I don't think so because for me n.to_i != n
quimrstorres has joined #ruby
mjuszczak has quit []
<jhass> binocular: yes, so it returns nil instead of -1, 0 or 1, which means it can't compare them
<jhass> User458764: example?
maletor has joined #ruby
tearan has joined #ruby
<jhass> maybe you want fuzzy logic and round to some digits first?
<binocular> jhass, is there a rule to gives nil instead of an error?
<User458764> 2.45.to_i == 2
<binocular> (2.45).to_i = 2
mjuszczak has joined #ruby
<jhass> User458764: yes, so 2.45 is not an integer
<jhass> binocular: stop the assignments :P
joonty has quit [Quit: joonty]
<binocular> irb(main):006:0> (2.45).to_i == 2.45 => false
mbeasley has joined #ruby
maletor has quit [Client Quit]
<jhass> User458764: or less technically phrased, it's not a natural number (all integers are, but not all floats are)
<User458764> My problem is I want to know all the square root integer for example Math.sqrt(4) == 2.0 how do I know 2.0 is an integer?
Cust0sLim3n has quit [Ping timeout: 246 seconds]
fryguy9 has quit [Quit: Leaving.]
<jhass> 2.0.to_i == 2
CustosLimen has quit [Ping timeout: 248 seconds]
<binocular> def isInteger(x); x.to_i == x; end
<jhass> >> n = 2.0; n.to_i == 2
<ruboto> jhass # => true (https://eval.in/313436)
emocakes has joined #ruby
<jhass> >> n = 2.0; n.to_i == n
<ruboto> jhass # => true (https://eval.in/313437)
<User458764> and Math.sqrt(5)?
<jhass> binocular: we name methods in snake_case ;)
noname has quit [Ping timeout: 246 seconds]
<binocular> point taken jh
<jhass> User458764: what about it?
<User458764> jhass with your method Math.sqrt(5) is also an integer
<jhass> User458764: let's take a step back, what do you define as an integer?
maletor has joined #ruby
<jhass> >> n = Math.sqrt(5); n.to_i == n
<ruboto> jhass # => false (https://eval.in/313438)
<jhass> nope
<User458764> Math.sqrt(5) == 2.23606797749979 so it is not an integer
<jhass> yeah
<jhass> see above
<jhass> returns false
<binocular> irb(main):009:0> def isInteger(x);x.to_i ==x; end; isInteger Math.sqrt(5) => false
c0m0 has quit [Remote host closed the connection]
<User458764> jhass yes you have the solution I didn't see -_-
speakingcode has joined #ruby
regnartim has quit [Quit: Leaving]
cartothemax has quit [Remote host closed the connection]
GnuYawk has quit [Ping timeout: 272 seconds]
tcrypt has joined #ruby
ndrei has quit [Read error: No route to host]
<binocular> snake is_integer
dseitz has joined #ruby
<User458764> binocular, jhass thanks
DerisiveLogic has quit [Ping timeout: 248 seconds]
<binocular> I can imagine is easy to build a bot that when asked for an example copy the output from irb to the freenode site
<binocular> 1+1
<jhass> yeah, it is. Doing it secure isn't ;)
<jhass> >> 1+1
<ruboto> jhass # => 2 (https://eval.in/313439)
<binocular> Yes, I was thinking the same, someone can wip out your hard disk if you allow so
konsolebox has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
<adaedra> and what does this one do?
<adaedra> >> %x(uname)
<ruboto> adaedra # => (https://eval.in/313440)
<adaedra> ok
krisquig_ has quit [Remote host closed the connection]
<jhass> I think it's an chroot and a syscall whitelist
<binocular> When perhaps it can be done from eval.in
<adaedra> eval.in says Forbidden access to file `/usr/local/bin/uname'
<binocular> an application that parse from an example asked from this site and gives the answer in paste.in
<jhass> yeah, maybe it's just SELinux
krisquigley has joined #ruby
n80 has joined #ruby
chthon has joined #ruby
lektrik has joined #ruby
kyrylo__ has joined #ruby
kyrylo__ is now known as kyrylo
jimms has quit [Ping timeout: 250 seconds]
cajone has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<binocular> adaedra, perhaps is for private reason, uname -a
kyrylo_ has quit [Ping timeout: 272 seconds]
<adaedra> binocular: it seems totally normal that it can't execute anything, in fact
ramfjord has joined #ruby
<adaedra> uname was just a random sample of harmless command
<adaedra> >> RUBY_PLATFORM
<ruboto> adaedra # => "i686-linux" (https://eval.in/313441)
<adaedra> This gives me more
<binocular> what the name of the user?
JDiPierro has joined #ruby
krisquigley has quit [Ping timeout: 264 seconds]
agarie has joined #ruby
Zai00 has quit [Quit: Zai00]
juanpaucar has joined #ruby
willharrison has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<binocular> bye
wald0 has joined #ruby
pagios has joined #ruby
binocular has left #ruby [#ruby]
DaniG2k has quit [Quit: leaving]
juanpaucar has quit [Ping timeout: 272 seconds]
Akagi201_ has quit [Remote host closed the connection]
wookiehangover has quit [Ping timeout: 245 seconds]
petersins has joined #ruby
petersins has left #ruby [#ruby]
Takle has quit [Remote host closed the connection]
aswen has quit [Ping timeout: 248 seconds]
failshell has quit [Remote host closed the connection]
vyorkin has quit [Quit: WeeChat 1.1.1]
zachrab has joined #ruby
wookiehangover has joined #ruby
paulcsmith has joined #ruby
<ninjs> ugh this is so frustrating. When I run this ruby file on mac it runs, but when i run it on windows it says file not found
Musashi007 has joined #ruby
konsolebox has joined #ruby
<adaedra> if you want help, code please
lidenskap has joined #ruby
Takle_ has joined #ruby
mbeasley has quit [Quit: WeeChat 0.4.2]
mbeasley has joined #ruby
mikecmpbll has quit [Ping timeout: 265 seconds]
zenith_ has quit [Read error: Connection reset by peer]
zenith_ has joined #ruby
jenrzzz has joined #ruby
zachrab has quit [Ping timeout: 248 seconds]
emocakes has quit [Ping timeout: 252 seconds]
cloaked1 has quit [Read error: Connection reset by peer]
ParmesanCaesar has joined #ruby
dblessing has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 250 seconds]
evanjs has joined #ruby
wookiehangover has quit [Ping timeout: 245 seconds]
PaulCape_ has joined #ruby
MatthewsFace has joined #ruby
dblessing has joined #ruby
<ninjs> Figured out what was wrong. On parallels the desktop folders are set to a UNC path
lidenskap has quit [Ping timeout: 252 seconds]
<ninjs> so the file couldn't be found
MatthewsFace has quit [Remote host closed the connection]
MatthewsFace has joined #ruby
PaulCapestany has quit [Ping timeout: 256 seconds]
Spami has joined #ruby
vim_shimm has quit [Ping timeout: 276 seconds]
wallerdev has quit [Quit: wallerdev]
jenrzzz has quit [Ping timeout: 245 seconds]
silentpost has joined #ruby
<maletor> I've never felt like adding form data to a GET request as parameters (i.e. users/new?name=Foo) was a very robust solution. Is there something better I could be doing?
quintinadam has joined #ruby
Regulati_ has joined #ruby
<maletor> oops rails
<Hounddog> Hello folk. Is it actually possible to add more parameters to ARGV inside the script? Having a problem with vagrant and want to see if i can solve it this way
<jhass> ?crosspost maletor
<ruboto> maletor, Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
<maletor> i said sorry. wrong channel
<jhass> maletor: oh sorry, missed that
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Ping timeout: 246 seconds]
<jhass> >> ARGV << "1"; ARGV # wow that was easy to try out, don't you think Hounddog ?
<ruboto> jhass # => ["1"] (https://eval.in/313444)
<Hounddog> jhass: thx for beeing sarcastic. I was googling and i dont know ruby
RegulationD has joined #ruby
<Hounddog> I hope not everyone answers like that.
krisquigley has joined #ruby
<ytti> irony splosion 'thanks for being sarcastic'
skullz has quit [Ping timeout: 272 seconds]
casadei has quit [Remote host closed the connection]
serivichi has quit [Ping timeout: 245 seconds]
Takle_ has quit [Remote host closed the connection]
wookiehangover has joined #ruby
<jhass> well, you asked #ruby and not #vagrant, so I assumed you're interested in learning Ruby. Working with arrays is one of the first things you learn, so I'd also assume you know enough about them to recognize ARGV behaves like one. So treating it like one there too is indeed something easy and quick to try out
Regulati_ has quit [Ping timeout: 256 seconds]
OtterCoder has quit [Ping timeout: 264 seconds]
<adaedra> :o
fabrice31 has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
centrx has joined #ruby
lobolars has joined #ruby
mikecmpbll has joined #ruby
<Hounddog> jhass: just answering something like "You can treat argv as an array and add to it" Sounds different then"wow that was easy to try out, don't you think Hounddog ?" which actually makes you sound like a jackass
<jhass> you can easily avoid this kind of answers by showing that you invested effort already. Your question in fact was phrased like you'd rather ask somebody who knows before wasting a single minute of your valuable time
mikecmpbll has quit [Max SendQ exceeded]
<jhass> (yes, the last part was sarcastic again)
wookiehangover has quit [Ping timeout: 250 seconds]
DerisiveLogic has joined #ruby
mikecmpbll has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
Nickiniz has joined #ruby
<Nickiniz> hi
x1337807x has joined #ruby
leafybas_ has joined #ruby
techsethi has quit [Quit: techsethi]
chthon has quit [Ping timeout: 244 seconds]
<jhass> hey
wookiehangover has joined #ruby
Pumukel has quit [Ping timeout: 265 seconds]
MXfive has joined #ruby
Kensei has joined #ruby
grindmodeon has quit [Quit: Leaving.]
<pagios> hi i am struggling with the message attribute on amazon sns service, seems it takes a default value on root: http://pastie.org/10092215 but still it is complaining, any idea?
Kensei is now known as GenghisKen
bMalum has joined #ruby
paulcsmith has joined #ruby
leafybasil has quit [Ping timeout: 245 seconds]
<pagios> n `call': Invalid parameter: Message Structure - JSON message body failed to parse (Aws::SNS::Errors::InvalidParameter)
Spami has quit [Quit: This computer has gone to sleep]
silentpost has quit [Read error: Connection reset by peer]
h00d has joined #ruby
<h00d> hi guyz
<jhass> pagios: message: doesn't point to a valid json document
silentpost has joined #ruby
<h00d> i need help.
<h00d> File handling : how I create hum Analyzer expression?, want to extract file data
ramfjord has quit [Ping timeout: 244 seconds]
<Hounddog> there seems to be however a difference for Vagrant if i pass the parameter from the commandline or just add it in the file itself. :(
longfeet has joined #ruby
<Hounddog> Even though printing out the ARGV i have the same content
ianseyer has joined #ruby
<jhass> it probably parses ARGV before you even get a chance to modify it. Did you try asking #vagrant about your actual issue?
workmad3 has quit [Ping timeout: 250 seconds]
<Hounddog> jhass: did.
apoplexy has joined #ruby
<ianseyer> hi all. i remember reading somewhere that there is an alternative syntax for defining an array of strings, something that didn't require all the quotes. is this true?
<ianseyer> e.g. x = [hello, there] instead of ['hello', 'there']
<jhass> >> %w(yes it is true) # ianseyer
<ruboto> jhass # => ["yes", "it", "is", "true"] (https://eval.in/313447)
<Hounddog> jhass: checking google again... Thx for the help anyway
<ianseyer> jhass: thank you sir
sinkensabe has joined #ruby
zotherst1pidguy has quit [Remote host closed the connection]
zotherst1pidguy has joined #ruby
<xxneolithicxx> Hounddog: any gists for what you are trying to do with vagrant?
<h00d> I have doubts paragraph create a parser
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pagios> jhass: http://pastie.org/10092235 i see it as valid json
<h00d> I have doubts to create a parser****
zacts has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<Nickiniz> I'm looking for a bot for google webmaster results of irc
<jhass> pagios: that pastie doesn't include the message: attribute
<Hounddog> xxneolithicxx: sure https://gist.github.com/Hounddog/52658bf77ecb87cfa41f if you see here i have the namespace filter on line 77 which limits the Vagrant file seeing only the servers matched by namespace
lavros_ has quit [Quit: leaving]
<pagios> jhass: message_attributes: { line 2?
werelivinginthef has quit [Remote host closed the connection]
<jhass> pagios: yeah, that's the message_attributes: parameter, your earlier pastie had message: "hello", "hello" is not a valid json document
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Vyrus001 has left #ruby [#ruby]
CustosLimen has joined #ruby
<Hounddog> xxneolithicxx: this however is giving me problems with the inventory file so i was instead add the boxes to be created vi namepace to ARGV on line 97 like ARGV << h; where h is the name of the box to be created.
thumpba has joined #ruby
dfinninger has quit [Remote host closed the connection]
<pagios> jhass: can you repeat again? i fixed my last pastie to include the message_attributes
<Hounddog> xxneolithicxx: http://pastebin.com/Sznh0A01 this is the change i have done on line 98
<ruboto> Hounddog, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/afd5fa00295872738f8f
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<bMalum> Hey Guys - is it possible to get the real filename from an Net:HTTP Response?
blackmesa has joined #ruby
dfinninger has joined #ruby
Takle has joined #ruby
longfeet_ has joined #ruby
<oddmunds> bMalum: do you mean the ruby script serving the response?
x1337807x has joined #ruby
serivichi has joined #ruby
meschi has quit [Ping timeout: 240 seconds]
gusrub has joined #ruby
gauke has joined #ruby
<xxneolithicxx> Hounddog: is that namespace option an official vagrant one or custom for what you are trying to do
<bMalum> oddmunds: nope as client … i don’t have really access to modify the API
<Hounddog> xxneolithicxx: custom. from my servers.yml
<xxneolithicxx> Hounddog: and your issue is what its not noticing the value you are passing?
<oddmunds> bMalum: i don't understand what file you are referring to
OtterCoder has joined #ruby
<oddmunds> like if you are served a static file?
casadei has joined #ruby
<Hounddog> xxneolithicxx: Yeah, the value is there in ARGV but not passed down to vagrant. I also just read something that it should rather be in the environment variables.
<oddmunds> like getting a picture for example?
longfeet has quit [Ping timeout: 240 seconds]
<xxneolithicxx> Hounddog: right in my stuff I do customizations like that in env variables
The_Phoenix has quit [Read error: Connection reset by peer]
lessless has joined #ruby
<pagios> jhass: you confused me
<Hounddog> xxneolithicxx: i just have to find which var is there for the machine names. You dont have it by any chance do you?
<jhass> pagios: how so?
<pagios> lets refer to my last pastie what do you think is missing
dfinninger has quit [Ping timeout: 250 seconds]
<Hounddog> xxneolithicxx: http://docs.vagrantup.com/v2/other/environmental-variables.html its here hopefully
baweaver has joined #ruby
<jhass> pagios: message: '{"this": "needs to be some valid json"}'
ndrei has joined #ruby
<pagios> ah you mean message needs to be a hash
<xxneolithicxx> Hounddog: any vagrant action against a machine will always take its name as one of the parameters or operate on all machines defined in the vagrant block for multi machine definition
werelivinginthef has joined #ruby
<jhass> pagios: no, a string that contains valid json
<pagios> ok
failshell has joined #ruby
<Hounddog> xxneolithicxx: correct, and i want to pass the machine names. via ARGV not possible so looking for the ENV var that actually passes the machine names
Hijiri has quit [Quit: WeeChat 1.0.1]
evanjs has quit [Remote host closed the connection]
lobolars has quit [Read error: Connection reset by peer]
<xxneolithicxx> Hounddog: there isnt one as far as i know because thats always an argument to the vagrant action as opposed to a ENV variable
failshell has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
<Hounddog> xxneolithicxx: so what i am trying to do is actually not possible in the vagrant file itself?
shazaum has joined #ruby
omosoj has joined #ruby
krisquigley has quit [Remote host closed the connection]
<xxneolithicxx> Hounddog: what i would do since your file is dynamic is assume no machine name is passed in as an argument (causing it to process all machines defined), then in your code check for an ENV variable of your choosing that defines the machine group or machiens to put into the definition
krisquigley has joined #ruby
bigkevmc_ has quit [Ping timeout: 256 seconds]
<xxneolithicxx> Hounddog: and use that ENV variable to decide what machines to take from your YAML
rbennacer has quit [Remote host closed the connection]
failshell has joined #ruby
michaeldeol has quit [Ping timeout: 256 seconds]
<pagios> jhass: http://pastie.org/10092263 ?
<jhass> no
omosoj is now known as sohrab
cabouffard has joined #ruby
<jhass> I don't know why you came up with that
lidenskap has joined #ruby
<Hounddog> xxneolithicxx: i did that but this created a whole different set of problems for ansible. The inventory would only contain the namespace currently provided as vagrant does not "know" any other machine anymore
<pagios> jhass: refering to this http://docs.aws.amazon.com/sdkforruby/api/Aws/SNS/Client.html i see message: "message"
<pagios> not json so i am congused
<xxneolithicxx> Hounddog: if you do it that way and then someone provides a machine name to vagrant as well, then it ignores all other machines you defined and only processes the action against that explicit machine
graydot has joined #ruby
Nickiniz has quit [Quit: mIRCALem ProfesyoneL ¤ www.MircAlem.Com ¤]
<jhass> pagios: you also see message_structure: "messageStructure"
<Hounddog> xxneolithicxx: that is the correct behaviour but vagrant still knows the other machines
<xxneolithicxx> Hounddog: by it doesnt know them any more it sounds like you built them already and you lost your index .vagrant.d with the mapping
riotjones has joined #ruby
<pagios> json
<Hounddog> xxneolithicxx: i lost the inventory mapping.
bigkevmcd has joined #ruby
bluOxigen has quit [Ping timeout: 246 seconds]
<jhass> pagios: in the example you don't see json
ParmesanCaesar has quit [Ping timeout: 250 seconds]
<xxneolithicxx> Hounddog: look for the ENV variable to put your .vagrant.d in a global location that wont get deleted if you are moving between directories with diff vagrant files or recreating the directory wholesale a lot
<pagios> <jhass> pagios: message: '{"this": "needs to be some valid json"}' <-- what should "this" be?
zachrab has joined #ruby
<jhass> pagios: click "Request parameters" and scroll to "message_structure"
bluOxigen has joined #ruby
<jhass> pagios: do you recognize the section I copy pasted you into the channel earlier?
<Hounddog> xxneolithicxx: vagrant.d is not beeing deleted. When i run vagrant up or provision with the specific namespace vagrant creates a dynamic inventory only with that namespace and deletes all other entries
<Hounddog> xxneolithicxx: vagrant.d is not the issue i have there
<pagios> so mainly message-strcture is the "message"
<xxneolithicxx> Hounddog: VAGRANT_DOTFILE_PATH, set it to something like "~/.vagrant.d/state/" after you make that directory
krisquigley has quit [Ping timeout: 276 seconds]
<jhass> pagios: now if you read further, do you see the lnk?
<jhass> *link
<Hounddog> xxneolithicxx: vagrant.d is not the issue i have here.
<xxneolithicxx> Hounddog: theres two .vagrant.d , your global one and the one in the folder with your vagrant file
jenrzzz has joined #ruby
agarie has quit [Remote host closed the connection]
<xxneolithicxx> Hounddog: if you are sure thats not the issue then i dont know, it has to be how you are processing it
pdoherty has joined #ruby
riotjones has quit [Ping timeout: 250 seconds]
evanjs has joined #ruby
<pagios> jhass: message: '{"default": "String"}' ?
zzing has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
<Hounddog> xxneolithicxx: My issue is the inventory file on the provisioners. If i run vagrant --vagrant-namespace=production-api up which is my custom implementation i only pass vms with this namespace to vagrant. You can see that in line 76
Rickmasta has joined #ruby
<jhass> pagios: if you want to sent the message String, yeah
<jhass> pagios: I wonder though, why do you choose json?
<jhass> if you don't even know what it's good for
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Hounddog> xxneolithicxx: if i run vagrant up production-api-1 i retain all the information as i do not limit the vms with the namespace but only run the specified server
<pagios> jhass: coz i want to specifiy GCM
omich has left #ruby ["Leaving"]
<pagios> for android and apn for ios
GreyHands has quit [Quit: Textual IRC Client: www.textualapp.com]
ki0 has quit [Ping timeout: 256 seconds]
<jhass> pagios: I don't quite follow why the message content needs to be different for that
bricker has quit [Quit: leaving]
<jhass> that is why you want to send a different message to each service
saturnflyer has joined #ruby
ParmesanCaesar has joined #ruby
paulcsmith has joined #ruby
evanjs_ has joined #ruby
<pagios> jhass: i dont want to send different message to different service, but if i use amazon backend to send notification to mobiles and choose "RAW" and not jsopn the message ddoesnt get delivered, only if i use json it is delivered, this is why i am using json in ruby now\
cartothemax has joined #ruby
CorpusCallosum has quit [Ping timeout: 265 seconds]
Violentr has joined #ruby
<jhass> pagios: it just got silently dropped? tbh I'd suspect the problem is elsewhere then and using json won't help you, but sure, try it
evanjs has quit [Ping timeout: 244 seconds]
<pagios> jhass: if i use json from backend it works
wallerdev has joined #ruby
lidenskap has quit [Remote host closed the connection]
chridal has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
<jhass> well, if it works...
<zachrab> i am attempting to run a cron job using whenever but its not working
<pagios> jhass: where should i include this? "GCM": "{ \"data\": { \"message\": \"Test\" } }",
<pagios> it is generated by the backend
<jhass> pagios: I don't know, I just read you the docs you linked aloud
<zachrab> is the crontab terminal output and schedule.rb file
gauke has quit [Quit: gauke]
michaeldeol has joined #ruby
<zachrab> when i run crontab -l i see the job but i check the logs and nothing appears
chridal has joined #ruby
agarie has joined #ruby
<pagios> jhass: thats what i reached so far : http://pastie.org/10092301
<pagios> but still not working
<pagios> Invalid parameter: Message Structure - JSON message body failed to parse (Aws::SNS::Errors::InvalidParameter)
User458764 has joined #ruby
konsolebox has quit [Quit: Leaving]
Violentr has quit [Ping timeout: 244 seconds]
serivichi has quit [Ping timeout: 255 seconds]
longfeet_ has quit [Ping timeout: 245 seconds]
kyrylo_ has joined #ruby
<jhass> pagios: >> require "json"; JSON.parse '{ default: "String" }'
<jhass> er
<jhass> >> require "json"; JSON.parse '{ default: "String" }'
<ruboto> jhass # => 757: unexpected token at '{ default: "String" }' (JSON::ParserError) ...check link for more (https://eval.in/313451)
sanguisdex has quit [Quit: Leaving.]
<jhass> try using valid json ;)
kyrylo has quit [Ping timeout: 250 seconds]
<pagios> >> require "json"; JSON.parse '{ "default": "String" }'
<pagios> why didnt it reply
<pagios> >> require "json"; JSON.parse '{ "default": "String" }'
<ruboto> pagios # => {"default"=>"String"} (https://eval.in/313452)
nfk has joined #ruby
kofione has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
lidenskap has joined #ruby
ParmesanCaesar has quit [Quit: Lost terminal]
blackmesa has quit [Ping timeout: 245 seconds]
Na_Klar has joined #ruby
lidenskap has quit [Client Quit]
<zachrab> does anyone see something wrong with my schedule.rb file?
arup_r has joined #ruby
AlphaAtom has quit [Ping timeout: 245 seconds]
<Na_Klar> My script runs in a while loop. It is started from cli. When I hit ctrl+c the program doesn't get killed. Just the current loop breaks, and the program runs with the next iteration. How can I kill the script from cli properly?
Morkel has joined #ruby
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
bradleyprice has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
<jhass> ?code
<ruboto> We can't help you without your code, please post it to https://gist.github.com
<zachrab> jhass: i posted my code
<jhass> zachrab: wasn't for you
gauke has joined #ruby
gusrub has quit [Quit: Leaving]
<zachrab> oh
merqlove has joined #ruby
nobitanobi has joined #ruby
<Na_Klar> there is nothing special about my code. you can reproduce with an infinite while loop.
<nobitanobi> What is a good way to set a hash value, if that key does not exist already?
<jhass> nobitanobi: ||= is sane if nil is no valid value
<jhass> (and neither is false)
<Na_Klar> ah
<zachrab> ruboto: any inkling why the cron job isnt running?
<jhass> Na_Klar: turns out I can't
doodlehaus has quit [Ping timeout: 244 seconds]
<nobitanobi> thanks jhass
<Na_Klar> actually this not true: within the while loop there is a system call. So the ctrl+c gets passthoughed to the system call, and that gets killed. so the ruby script will not get killed ... hm ...
<pagios> jhass: http://pastie.org/10092323 not working stilll :(
<Na_Klar> jhass: yeah, I got that know ..
<Na_Klar> seems like I cannot do something about that ...
<pagios> message: '{ "default": "String" }',
nateberkopec has joined #ruby
<Na_Klar> s/know/now/
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> pagios: "not working"
<pagios> ?
<pagios> lol
<jhass> pagios: you give an incomplete hash and say "it's not working"
<jhass> how do you imagine anyone to be able to help you
<hanmac> apeiros: doesnt ruboto have a auto-answer for "not working" ? ;P
cocotton has quit [Remote host closed the connection]
sanguisdex has joined #ruby
kofione has quit [Quit: Leaving...]
<zachrab> jhass: any idea why the cron job isnt running?
riskish has joined #ruby
<jhass> zachrab: no, I'd replied if I had
<zachrab> k
<jhass> I'm using systemd timers for most stuff these days
<riskish> Does anyone know why i'm receiving unexpected keyword_end syntax errors? http://paste.ofcode.org/F2GEcvFPamdQLNVhHyxjae
<jhass> hanmac: write a cinch plugin ;)
<jhass> riskish: while statements need an end
<jhass> riskish: er, nvm, it's i++
<riskish> oh
<jhass> no such thing in Ruby, use i += 1
<riskish> x++ is not valid in ruby?
<riskish> thank you
GnuYawk has joined #ruby
<pagios> is this an incomprehensibly hash jhass http://pastie.org/10092329
<jhass> riskish: isVowel -> is_vowel -> vowel?
<jhass> riskish: also check String#count
DerisiveLogic has quit [Read error: Connection reset by peer]
kyrylo__ has joined #ruby
DerisiveLogic has joined #ruby
<jhass> pagios: how can you not see that this question is extremely vague?
<jhass> there's no error description _at all_
<jhass> pagios: for somebody joining in, there's not even _any kind of context_
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mjuszczak has quit []
<jhass> you still post a piece of a hash that in itself is not valid Ruby and claim "it's not working"
<pagios> jhass: problem i dont see an error!
<pagios> it just doesnt complain
kyrylo_ has quit [Ping timeout: 272 seconds]
<jhass> pagios: well, and we're back to my earlier suspicion that changing the message _body_ format to json won't change a thing
marr has quit [Read error: Connection reset by peer]
ki0 has joined #ruby
<pagios> jhass: thats the full code..http://pastie.org/10092333
ki0 has quit [Remote host closed the connection]
RegulationD has joined #ruby
jheg has joined #ruby
Channel6 has joined #ruby
shredding has joined #ruby
<jhass> pagios: we're leaving Ruby related issues here, ##aws might have a better clue
iamayam has quit [Ping timeout: 248 seconds]
kyrylo__ has quit [Ping timeout: 276 seconds]
frem has joined #ruby
<hanmac> riskish: Enumerable#grep or Enumerable#partition might be more interesting if you have longer text and you are interested in the data
<riskish> hanmac: I'm a newb to ruby and I have no idea what you just said. just doing practice exercises to see if I can get into a development boot camp :)
RegulationD has quit [Ping timeout: 265 seconds]
<jhass> >> "random sentence with vowels".count("aeiou")
<ruboto> jhass # => 8 (https://eval.in/313467)
kofione has joined #ruby
<jhass> riskish: ^ ;P
<hanmac> riskish: http://ruby-doc.org/core/Enumerable.html that might be intersting for you
<hanmac> jhass: what do you think about that? ;P
<hanmac> >> "random sentence with vowels".chars.partition(&/[aeiou]/.method(:=~))
<ruboto> hanmac # => [["a", "o", "e", "e", "e", "i", "o", "e"], ["r", "n", "d", "m", " ", "s", "n", "t", "n", "c", " ", " ...check link for more (https://eval.in/313468)
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rgb-one has joined #ruby
<jhass> hanmac: "student failed to recognize the problem statement" comes to mind
Takle has joined #ruby
<hanmac> who cares, i am not a student, i just want to show you something
michaeldeol has joined #ruby
Rickmasta has joined #ruby
<jhass> yeah, it's always good to know which style of ruby you shouldn't use under any circumstances
<jhass> so thanks, I guess
iamayam has joined #ruby
gusrub has joined #ruby
mjuszczak has joined #ruby
ghr has quit [Ping timeout: 276 seconds]
djellemah has quit [Ping timeout: 246 seconds]
evanjs_ has quit [Remote host closed the connection]
cocotton has joined #ruby
zz_AlphaTech is now known as AlphaTech
<havenwood> >> vowels = /[aeiou]/.public_method :=~; "random sentence with vowels".each_char.partition &vowels
<ruboto> havenwood # => [["a", "o", "e", "e", "e", "i", "o", "e"], ["r", "n", "d", "m", " ", "s", "n", "t", "n", "c", " ", " ...check link for more (https://eval.in/313469)
dfinninger has joined #ruby
<wallerdev> lol
<havenwood> hanmac: #public_method \o/ :P
<hanmac> havenwood: check out this: procentual counting of the vowels:
<hanmac> >> s="random sentence with vowels";s.chars.group_by {|x| x[/[aeiou]/] }.select{|k|k}.map {|k,v| [k, v.size / s.size.to_f * 100] }.to_h.map {|d| "%s = %.2f%%" % d }.join(", ")
<ruboto> hanmac # => "a = 3.70%, o = 7.41%, e = 14.81%, i = 3.70%" (https://eval.in/313470)
<Hounddog> xxneolithicxx: i solved it now with a proxu file for the moment..
mjuszcza_ has joined #ruby
<Hounddog> ack * proxy fle i mean
rgb-one has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
meschi has joined #ruby
mjuszczak has quit [Ping timeout: 265 seconds]
bigkevmcd has quit [Ping timeout: 245 seconds]
ghr has joined #ruby
zenith_ has quit [Quit: Leaving]
tkuchiki has quit [Read error: Connection reset by peer]
fryguy9 has joined #ruby
dfinninger has quit [Ping timeout: 240 seconds]
zenith_ has joined #ruby
Takle has quit [Remote host closed the connection]
Squarepy has joined #ruby
evanjs has joined #ruby
ValicekB has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
ki0 has joined #ruby
zenith_ has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 256 seconds]
ki0 has quit [Remote host closed the connection]
dfinninger has joined #ruby
bigkevmcd has joined #ruby
zenith_ has joined #ruby
AlphaAtom has joined #ruby
<havenwood> hanmac: now to just get rid of those pesky normal blocks... hrm
zenith_ has quit [Client Quit]
<havenwood> >> s = "random sentence with vowels"; s.each_char.group_by(&/[aeiou]/.public_method(:match)).values.drop(1)
<ruboto> havenwood # => [["a"], ["o", "o"], ["e", "e", "e", "e"], ["i"]] (https://eval.in/313471)
zenith_ has joined #ruby
mjuszcza_ has quit [Read error: No route to host]
ValicekB has joined #ruby
mjuszczak has joined #ruby
bigkevmcd is now known as bigkevmc_
zenith_ has quit [Read error: Connection reset by peer]
* havenwood falters
<Hounddog> https://gist.github.com/Hounddog/11bce9f6f41e4cebe109 created this vagrant "proxy" not sure it is actually ok what i did there.
<Hounddog> i have bad feelings abot exec :)
zenith_ has joined #ruby
sfiggins has quit [Ping timeout: 255 seconds]
pdoherty has quit [Quit: Leaving]
TheNumb is now known as OpenRC
zenith_ has quit [Remote host closed the connection]
krisquigley has joined #ruby
shredding has quit [Ping timeout: 256 seconds]
ismaelga has quit [Remote host closed the connection]
jenrzzz has joined #ruby
lektrik has quit [Ping timeout: 240 seconds]
Urocyon has joined #ruby
superspring has quit [Quit: No Ping reply in 180 seconds.]
superspring has joined #ruby
lektrik has joined #ruby
jimms has joined #ruby
ramfjord has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/2015040300]]
bigkevmc_ is now known as bigkevmcd
wallerdev_ has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
Violentr has joined #ruby
<havenwood> Hounddog: Do you need to pass it to the standard shell? With `exec single_string` it does. If you don't need a shell consider: exec 'vagrant', *ARGV
krisquigley has quit [Ping timeout: 264 seconds]
<Hounddog> havenwood: reading
apoplexy has quit [Ping timeout: 252 seconds]
<Hounddog> havenwood: i see you used *ARGV there so i didnt need to stringify it at all you mean?
icebourg has quit []
nszceta has joined #ruby
icebourg has joined #ruby
<havenwood> Hounddog: It'll directly invoke the command with arguments that way instead of invoking a shell with the string to parse.
wallerdev has quit [Ping timeout: 255 seconds]
<Hounddog> havenwood: awesome, that works for me :)
<Hounddog> havenwood: does it at least make sense there what i am doing? lol
kirun has joined #ruby
<havenwood> "In the second form (exec("command1", "arg1", ...)), the first is taken as a command name and the rest are passed as parameters to command with no shell expansion."
OpenRC is now known as TheNumb
existensil has quit [Ping timeout: 272 seconds]
doodlehaus has joined #ruby
RegulationD has joined #ruby
withnale___ has quit [Ping timeout: 276 seconds]
p8952_ has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
wallerdev_ has quit [Ping timeout: 245 seconds]
werelivinginthef has joined #ruby
GeorgeThompson has quit [Ping timeout: 252 seconds]
fabrice31 has joined #ruby
DerisiveLogic has quit [Ping timeout: 256 seconds]
<atmosx> good evening
tier has joined #ruby
<dudedudeman> Suuuuuup
centrx has quit [Quit: Shutting down, Please wait...]
ndrei has quit [Ping timeout: 244 seconds]
Violentr has quit [Ping timeout: 272 seconds]
pika_pika has quit [Ping timeout: 245 seconds]
werelivinginthef has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
<GaryOak_> You're missing the 'o', it should be Souuuuuuup
werelivinginthef has joined #ruby
rbennacer has joined #ruby
seme has quit [Quit: Page closed]
p8952_ has quit [Client Quit]
<dudedudeman> soup is so good
DerisiveLogic has joined #ruby
<dudedudeman> weaksauce: you around?
p8952_ has joined #ruby
ndrei has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
p8952 has quit [Quit: ZNC - http://znc.in]
rbennacer has quit [Remote host closed the connection]
chridal has quit [Ping timeout: 250 seconds]
uri_ has joined #ruby
rbennacer has joined #ruby
<Senjai> dudedudeman: What's your question
bMalum has quit [Quit: bMalum]
ki0 has joined #ruby
<dudedudeman> no question, really. weaksauce had helped me with something and i ended up getting some where with it, so i wanted to show it off
<dudedudeman> sorry if that's not best practice for this room
<jhass> IRC works asynchronously, no need to synchronize, just say thanks if the other party is logged in ;)
agarie has quit [Remote host closed the connection]
<dudedudeman> well then, thanks weaksauce! :P
zorak8 has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
zorak8 has joined #ruby
jimms has quit [Ping timeout: 256 seconds]
zorak8 has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
p8952_ has quit [Quit: ZNC - http://znc.in]
rgb-one has joined #ruby
quimrstorres has joined #ruby
p8952 has joined #ruby
zorak8 has joined #ruby
zorak8 has quit [Remote host closed the connection]
lobolars has joined #ruby
zzing has joined #ruby
zorak8 has joined #ruby
zorak8 has quit [Remote host closed the connection]
XorSwap has joined #ruby
graydot has quit [Quit: graydot]
baweaver has quit [Remote host closed the connection]
Kricir has quit []
tier_ has joined #ruby
eighthbit has joined #ruby
Scriptonaut has joined #ruby
<Scriptonaut> guys, what exactly is an instance variable in a module
vudew has joined #ruby
hollywood has quit [Quit: Leaving]
<Scriptonaut> with a module, is it like a singleton, where there's one instance of it, and then there's also a class that defines it?
<dudedudeman> Scriptonaut: in for info!
<Scriptonaut> hrm?
<dudedudeman> as in, i could use a brush up on your question as well, so i'm in for whatever help is brought your way
<Scriptonaut> oh cool
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tier has quit [Ping timeout: 264 seconds]
cocotton has quit [Remote host closed the connection]
towski_ has joined #ruby
snockerton has quit [Quit: Leaving.]
<h00d> As I seek the word within the file and keep in a variable ?
cabouffard has quit [Quit: WeeChat 1.2-dev]
cartothemax has quit [Quit: Leaving...]
GnuYawk has quit [Quit: WeeChat 1.0]
marr has joined #ruby
<jhass> Scriptonaut: dudedudeman a module is an instance of Module
<jhass> >> module Foo; end; Foo.class
lobolars has quit [Read error: Connection reset by peer]
<ruboto> jhass # => Module (https://eval.in/313474)
<Scriptonaut> ah
<Scriptonaut> so I could also define @@var
<jhass> >> Foo = Module.new; # Can even be written like this
ghr has joined #ruby
<ruboto> jhass # => Foo (https://eval.in/313475)
gfawcettpq has quit [Ping timeout: 244 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> yes, but @@vars have vastly different scoping that @vars and that it's unrelated
<dudedudeman> global verses instance variable?
lobolars has joined #ruby
<jhass> so module level instance variables are just instance variables of the instance of Module
_djbkd has joined #ruby
<jhass> or to be precise of that instance' singleton class
snockerton has joined #ruby
<jhass> dudedudeman: $global @@class_var @instance_var local_var_or_method
cocotton has joined #ruby
<jhass> but @@class_vars are shared among the ancestor chain, which is unexpected for many
<dudedudeman> oooo. that's the perfect way to look at that
<Scriptonaut> Oh, I didn't know that
Rahul_Roy_ has joined #ruby
<Scriptonaut> so modules are like singletons
<jhass> not really
<dudedudeman> i'm stealing that and putting it in my 'quotes' doc
yfeldblum has joined #ruby
<jhass> singleton class has nothing to do with the Singleton pattern
<Scriptonaut> ah
<jhass> maybe you know how you can do def "foo".bar; :hi; end; ?
agarie has joined #ruby
<jhass> or better x = "foo"; def x.bar; :hi; end; ?
MyGreenPickle has joined #ruby
<jhass> and then only x will respond to bar, but all other strings won't?
PaulCape_ has quit [Quit: .]
MyGreenPickle has quit [Client Quit]
MyGreenPickle has joined #ruby
<Scriptonaut> this is my problem. See how I define @client in there?
<jhass> yeah
werelivinginthef has quit [Remote host closed the connection]
<Scriptonaut> I have a method self.add_lead farther down in SFDC_Models
bootstrappm has joined #ruby
<Scriptonaut> in there I do: if Connection.instance_variable_get("@client").nil?
vudew has quit [Quit: Lost terminal]
<Scriptonaut> and if it's nil, I call Connection.client again
<Scriptonaut> however it never seems to be set
<Scriptonaut> I think I'm checking the wrong way
<Scriptonaut> but wouldn't doing: Connection.instance_variable_get("@client").nil? be right?
<Scriptonaut> from outside the object (in console) I can do: SFDC_Models::Connection.instance_variable_get("@client"), and it returns the variable
Spami has joined #ruby
elaptics is now known as elaptics_away
<jhass> then client wasn't called at the point
<jhass> anyway, you can self yourself those headaches
<Scriptonaut> self yourself?
rbennacer has quit [Remote host closed the connection]
<jhass> *er, save
Anonym has joined #ruby
rbennacer has joined #ruby
cocotton has quit [Quit: Leaving...]
<Anonym> someone here who know ruby good?
<jhass> just do @client ||= Databasedotcom::Client.new("config/databasedotcom.yml").tap do |client| ... end
werelivinginthef has joined #ruby
<Anonym> someone here know ruby?
<jhass> Anonym: just ask your question
<Anonym> well
<jhass> Scriptonaut: and always call client
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<Anonym> I have no idea where to beginn
<Scriptonaut> jhass, ya that's a good way, but before I do that I want to make sure it's not setting it every time I enter that method, because client is a very costly call
<Anonym> how do I start?
<Scriptonaut> it takes like 8 seconds
<Scriptonaut> lol
<Anonym> Where do I start with ruby?
<jhass> Scriptonaut: easy, try my suggestion and call it twice
Na_Klar has quit [Quit: Leaving.]
<Scriptonaut> alright
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> you'll see the second is instant
<Scriptonaut> will play with it, thanks
<havenwood> Anonym: Here are some links to get you going: http://ruby-community.com/pages/links
mjuszczak has quit [Ping timeout: 245 seconds]
fryguy9 has quit [Quit: Leaving.]
freerobby has quit [Read error: Connection reset by peer]
<dudedudeman> Anonym: if you're to jump right in and look for interactive help, codecademy.com would be helpful
zenith_ has joined #ruby
freerobby has joined #ruby
Zamyatin has joined #ruby
ghr has quit [Ping timeout: 276 seconds]
<dudedudeman> learnrubythehardway, the pick axe book, some of those would be helpful
<dudedudeman> if you're in to docs, the ruby docs have a lot to offer
<havenwood> Anonym: If you have tried yourself and still have questions come here and ask.
inavele has joined #ruby
<Anonym> ok thanks
<Anonym> what program is good to write in
zenith_ has quit [Read error: Connection reset by peer]
<Anonym> sublime text?
<jhass> sublime is great
<havenwood> Anonym: Sure. That's a fine text editor.
<Anonym> ok thanks
<jhass> ignore everything that comes now
<Anonym> are you guys pro programers?
zorak8 has joined #ruby
<havenwood> jhass: hehe
<Anonym> hackers?
zenith_ has joined #ruby
<jhass> Anonym: how do you define either?
<Scriptonaut> haha
<havenwood> Anonym: We're pro-programmers, with a stutter.
<Scriptonaut> I'm sure there's a bit of both in here
<Anonym> how old are you?
<Scriptonaut> in basically every programming chan
<Anonym> are you admind?
<Anonym> admin?
zachrab has quit [Remote host closed the connection]
<jhass> Anonym: you realize there are 930 people in here?
<Anonym> I am only 10 years old but I want to learn
turtil has joined #ruby
<Anonym> a easy program
<jhass> great
<Anonym> and my brother told me ruby :)
<Scriptonaut> I can't tell if troll or actually 10
zachrab has joined #ruby
<Anonym> But I have to go sorry
<Anonym> bye guys :) cya later
<havenwood> Anonym: Start with the links I linked you to.
<Anonym> yes
<Anonym> I will
<Anonym> I copyed them :)
<Anonym> my brother will help to he is my old brother
<Anonym> he is good programmer
<Anonym> how old are you ?
<jhass> Anonym: who specifically? again, over 900 people you're talking to ;)
<Anonym> 900 people??
<Scriptonaut> irc tends to be old dudes in my experience
<Anonym> here?
<jhass> yeah
<havenwood> Anonym: Over 900.
<Scriptonaut> like 30-50
<Anonym> LOL
<Anonym> I am 10
<jhass> Scriptonaut: can't share that
<Anonym> 11 soon
<Anonym> my brother showd me
sevvie has quit [Ping timeout: 256 seconds]
<Anonym> this
<Anonym> site
<Scriptonaut> can't share what
<jhass> Scriptonaut: that experience
<Anonym> but bye guys :) thanks for links good bye :)
<Scriptonaut> ah
Anonym has left #ruby [#ruby]
<Scriptonaut> maybe just freenode
<jhass> I'm only on freenode
<Scriptonaut> really? Most programming channels I hangout in seems to be filled with grizzled ol programmers
<jhass> alright, guess how old I am
<Scriptonaut> 23
<yxhuvud> that was an odd exchange.
* Coraline ain't playing this game...
<Scriptonaut> (that's how old I am)
<jhass> and you even hit it
<havenwood> Coraline: Agreed!
<Scriptonaut> haha
zachrab has quit [Ping timeout: 252 seconds]
MXfive has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
XorSwap has quit [Ping timeout: 244 seconds]
MXfive has joined #ruby
Anonym has joined #ruby
<Anonym> guys?
<Anonym> on ruby the # symbol is a comment right?
grzywacz has joined #ruby
<jhass> right
<Anonym> "Roosters #{100 - 25 * 3 % 4}
<Anonym> why do we need #(
<Anonym> before
<Anonym> math=
sgambino has quit [Remote host closed the connection]
aswen has joined #ruby
<Anonym> puts "Is it greater? #{5 > -2}"
<Anonym> puts "Is it greater or equal? #{5 >= -2}"
Spami has quit [Quit: This computer has gone to sleep]
<jhass> well, inside a string ("the quotes make it a string") it's not a comment
<yxhuvud> anonym: #{} in a string tells ruby to evaluate whatever is enclosed in {}s and put it in the string.
<Anonym> why the #
<Anonym> ?
renier has joined #ruby
<yxhuvud> dunno. makes it less probable that it will need to be escaped if you actually want to include {}s in the string I guess.
mjuszczak has joined #ruby
<Anonym> ok
<Anonym> when you say string
<jhass> it's called "string #{interpolation}", inside the #{ } you can put any ruby code and its result will be placed into the string
<Anonym> you mean
<Anonym> print?
<Anonym> puts
<Anonym> thats a string
<Anonym> right?
sevvie has joined #ruby
<jhass> puts is a method (function) that takes a string and displays it on your screen
shazaum has quit [Quit: Leaving]
<Anonym> ok
bootstrappm has quit [Quit: bootstrappm]
<Anonym> so the puts #(...)
<Anonym> its not a comment
<jhass> the string is the thing in "double quotes"
<Anonym> its just not a comment when its inside a string
<Anonym> ?
<Anonym> what do you mean with double quotes?
<jhass> pretty much, there are a few more things where #{interpolation} works too
<yxhuvud> " double quote, ' single quote
speakingcode has quit [Ping timeout: 265 seconds]
<Anonym> ok
<Anonym> yes I know :)
rgb-one has quit [Read error: Connection reset by peer]
<Anonym> puts "hello world"
<Anonym> learned that today .. xd
pagios has quit [Remote host closed the connection]
<Anonym> thanks for help
<Coraline> Anonym: you might also like the ##new2ruby channel
<Anonym> I need to sleep now
poguez_ has joined #ruby
<Anonym> Ok I check it out
<Anonym> My father want me to sleep
Asher has quit [Read error: Connection reset by peer]
renier_ has quit [Ping timeout: 245 seconds]
huddy has quit [Quit: Connection closed for inactivity]
<Anonym> its 10 xd
<Anonym> bye
speakingcode has joined #ruby
<Anonym> how do I leave?
chridal has joined #ruby
<yxhuvud> /part
Anonym has left #ruby [#ruby]
<weaksauce> dudedudeman you're welcome :)
sgambino has joined #ruby
Anonym has joined #ruby
<Anonym> caroline?
fryguy9 has joined #ruby
<Anonym> new2ruby doesnt work
<Anonym> I created it
<Anonym> ..
Asher has joined #ruby
vim_shimm has joined #ruby
<jhass> Anonym: ##new2ruby with two #
<Anonym> Ohh
<Anonym> ok
Ellis has joined #ruby
Anonym has left #ruby ["to leave?"]
<ninjs> can we all just agree jhass is dope for helping everyone
<jhass> we need more child coders
<jhass> their minds are free
<ninjs> lol. Child coders
<yxhuvud> jhass: you mean they are easy to subvert
<jhass> maybe...
aphprentice has joined #ruby
<jhass> I'm a hopeless idealist though
<Ellis> i’m having a problem raising an argument error … can someone take a look @ this and tell me what i’m doing wrong https://gist.github.com/ellismarte/241051bd0a2d2f881952#file-ruby-rb-L4-L5
<jhass> Ellis: your problem is your indentation
techsethi has joined #ruby
<jhass> fix it and then we look again
Musashi007 has quit [Quit: Musashi007]
zenith_ has quit [Quit: Leaving]
werelivinginthef has quit [Remote host closed the connection]
<yxhuvud> ellis: when you have fixed the indentation, please also provide the input that gives the exception.
<yxhuvud> if it persists, that is
zenith_ has joined #ruby
<Ellis> k
zenith_ has quit [Client Quit]
zenith_ has joined #ruby
lanemeyer has quit [Ping timeout: 276 seconds]
werelivinginthef has joined #ruby
Soda has joined #ruby
Megtasti_ has joined #ruby
Megtasti_ has quit [Max SendQ exceeded]
Megtasti_ has joined #ruby
Megtasti_ has quit [Max SendQ exceeded]
Megtastique has quit [Ping timeout: 244 seconds]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
Megtastique has joined #ruby
Megtastique has quit [Max SendQ exceeded]
baweaver has joined #ruby
JDiPierro has quit [Read error: Connection reset by peer]
Megtastique has joined #ruby
<xxneolithicxx> Hounddog: what i dont understand is why you would even need to do that if most vagrant actions are performed on all machines by default if you dont specify a machine name. Also the reason you have to do it that way is because ARGV has already been processed by the time vagrant comes to process your vagrant file, not when you call vagrant.configure block. If passing the machine name for the command is required then what you are d
latemus has quit [Quit: leaving]
blizzy has joined #ruby
_djbkd has quit [Remote host closed the connection]
Hijiri has joined #ruby
<Hounddog> xxneolithicxx: I am running this from jenkins and during production setup i dont want to run staging/testing/development and vice versa
<jhass> xxneolithicxx: hit the IRC message limit there with "are d" ;)
latemus has joined #ruby
<xxneolithicxx> Hounddog: are doing is very roundabout and IMO would be something that id automate via command line wrapper of vagrant itself
<xxneolithicxx> thx, sorry
jottr has quit [Ping timeout: 250 seconds]
<Hounddog> xxneolithicxx: i did a commandline wrapper now
<latemus> _why_ use #{} rather than just using the name of the variable?
<jhass> latemus: because it's not the same at all
speakingcode has quit [Ping timeout: 240 seconds]
<yxhuvud> latemus: putting a variable name in the middle of a string doesn't help a lot if you want the contents in the string
_djbkd has joined #ruby
<jhass> >> some_var = 5; ["the value is #{some_var}", "the value is some_var"] # latemus
<ruboto> jhass # => ["the value is 5", "the value is some_var"] (https://eval.in/313477)
agarie has quit []
<latemus> jhass: yxhuvud: Okay so it escapes "
nettoweb has joined #ruby
<Hounddog> xxneolithicxx: its awesome that vagrant performs it on all machines. I cant have that though. Thats why i need to limit it to certain machines
fryguy9 has quit [Quit: Leaving.]
DerisiveLogic has quit [Read error: Connection reset by peer]
DerisiveLogic_ has joined #ruby
<latemus> thanks guys jhass yxhuvud
techsethi has quit [Quit: techsethi]
speakingcode has joined #ruby
ghr has joined #ruby
<ninjs> Okay so I'm trying to move from the 'spreadsheet' gem to the 'RubyXL' gem. My only problem is, so far as I can tell, my each_with_index loop isn't working
<Hounddog> xxneolithicxx: also i dont understand what is so roundabout about it. I have a group of machines i want to bring up using vagrant.
Anonym has joined #ruby
<Anonym> wow
<Anonym> I love irc :D
matled- has joined #ruby
helpa has quit [Remote host closed the connection]
<Anonym> welcome matled
<NinjaOps> IRC is good
helpa has joined #ruby
inavele has quit [Ping timeout: 244 seconds]
<Anonym> yes
Anonym has left #ruby [#ruby]
werelivinginthef has quit [Remote host closed the connection]
Mon_Ouie has quit [Read error: Connection reset by peer]
<ninjs> I think that in RubyXL's api, the worksheet class doesn't have a row method. But I'm not sure what to replace it with
Anonym has joined #ruby
<Anonym> puts "Is it true that 3 + 2 < 5 - 7?"
<Anonym> what does this mean?
fryguy9 has joined #ruby
<Anonym> why is it 5-7
<Anonym> instead of =
<Anonym> ?
<Anonym> jk I got it now
<jhass> 3 + 2 is 5, 5 - 7 is -2, so 5 < -2 returns true, since -2 is lower than 5
Anonym has left #ruby [#ruby]
MyGreenP1 has joined #ruby
MyGreenPickle has quit [Ping timeout: 252 seconds]
fryguy9 has quit [Client Quit]
Anonym has joined #ruby
<Anonym> why is it? puts "Is it true that 3 + 2 < 5 - 7?"
<jhass> 3 + 2 is 5, 5 - 7 is -2, so 5 < -2 returns true, since -2 is lower than 5
<Anonym> not =?
<Anonym> OHH
<Anonym> so the <
<Anonym> means
<Anonym> bigger than
<Anonym> kind of
pika_pika has joined #ruby
<Anonym> So I ask my computer if 3 + 2 is bigger than5
<jhass> x < y tests that x is lower than y, x > y tests that x is bigger than y
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
<Anonym> ok
<Anonym> thanks
<Anonym> so 2 < 3
<Anonym> its right?
<Anonym> and 2 > 3
<baweaver> >> 2 < 3
<ruboto> baweaver # => true (https://eval.in/313505)
<Anonym> its worng
<Anonym> yes
<Anonym> :)
<Anonym> got it
<Anonym> so you can use math in ruby?
<Anonym> to do it for you
<Anonym> a calculator :)
<Anonym> good calculator
matled has quit [Remote host closed the connection]
tus has quit [Read error: Connection reset by peer]
* baweaver scratches head
matled- is now known as matled
blackmesa has joined #ruby
<jhass> ninjs: I guess you took a look at http://www.rubydoc.info/gems/rubyXL/RubyXL/Cell? ;)
<yxhuvud> anonym: you can, but the most common use case is to do something or something else depending on a condition
<jhass> Anonym: btw you want to press your enter key less often ;)
<Anonym> ok jhass :)
<Anonym> jhass you are active on objectiv c too?
<jhass> no
<Anonym> ok
<baweaver> jhass: Dunno, kinda digging the wierd haiku-like rhythmn
<jhass> lol
<Anonym> 3 <5
<baweaver> <3
<ninjs> Jhass: so maybe like .value eh? haha
<jhass> 2<3 you mean :P
brb3 has quit [Quit: ZZZzzz…]
<baweaver> heh
<baweaver> Well, either Haiku or Shatner
<jhass> ninjs: guess so
<Anonym> bye
Anonym has left #ruby [#ruby]
<baweaver> Yeah, definitely Shatner.
jottr has joined #ruby
lobolars has quit [Read error: Connection reset by peer]
acl777` is now known as acl777
<jhass> Ellis: fixed your issue? :) reformatting 22 lines can't take that long :P
<Ellis> yeah
<Ellis> why was that?
DerisiveLogic_ has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
merqlove has quit [Quit: Connection closed for inactivity]
<jhass> you mean properly indenting alone fixed it for you?
vivekananda has joined #ruby
nomadic has quit [Ping timeout: 244 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Anonym has joined #ruby
tus has joined #ruby
acl777 is now known as andrew
andrew is now known as andrewl
andrewl is now known as andrew-l
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kadoppe_ has quit [Ping timeout: 240 seconds]
yqt has joined #ruby
<sohrab> i have a question about interview coding problems... is it always expected for you to find an O(n) algorithm?
<ytti> :)
<yxhuvud> that is not always possible.
nomadic has joined #ruby
<weaksauce> ninjs I wrote a script to import a bunch of stuff from excel using that gem
<ytti> if only
<Ellis> how do i merge all arrays in n array?
zenith_ has quit [Quit: Leaving]
kadoppe has joined #ruby
<ytti> sohrab, i hope you replied, 'i always deliver O(1)'
zenith_ has joined #ruby
<sohrab> ytti: rofl
zenith_ is now known as Guest43081
<ninjs> weaksauce: Yeah I just wrote a fully functional ruby program using the Spreadsheet gem that moves around a whole bunch of data from some excel files and then spits it out, but the people using the file don't want to have to change the format to .xls first, so I have to migrate the project to RubyXL. D:
<weaksauce> sohrab depends on the class of problems you are solving.
<sohrab> i just did a coding quiz, and i can only get O(n^3). i'm sure there is a way to get at least O(n^2) or something, but i'm not sure whether i should invest more time at this stage (very early)
msmith has joined #ruby
rdark has quit [Quit: leaving]
<Scriptonaut> guys, when I refer to self inside a class method inside a module,w hat is that referring to?
Jackneill has quit [Ping timeout: 250 seconds]
Violentr has joined #ruby
NinjaOps has quit [Quit: Konversation terminated!]
<ytti> O(1) ought to be pretty easy, just determine worst case, and sleep in better case until worst case is met \o/
<yxhuvud> sohrab: what is the problem you are solving?
jottr_ has joined #ruby
<jhass> Ellis: that's kinda vague, example input and expected output would help. But if I had to make a guess, .flatten(1)
fryguy9 has joined #ruby
fryguy9 has quit [Client Quit]
Takle has joined #ruby
<dudedudeman> Such good discussion in here today. my mind is swimming. lol
zachrab has joined #ruby
Guest43081 has quit [Client Quit]
wallerdev has joined #ruby
inavele has joined #ruby
<jhass> Scriptonaut: the same self that the self in def self.x is
endash has quit [Ping timeout: 250 seconds]
<Scriptonaut> jhass: so my module class?
jottr has quit [Ping timeout: 240 seconds]
<jhass> yep
<Ellis> im trying to take any number greater than 9 (so numbers that have double or more digits) and add those digits together… any ideas on this?
juanpaucar has joined #ruby
<jhass> Scriptonaut: well, instance of Module to be precise
<jhass> >> module Foo; def self.foo; self; end; end; Foo.foo == Foo
<ruboto> jhass # => true (https://eval.in/313520)
chintanparikh has joined #ruby
<Scriptonaut> ok, good
<sohrab> yxhuvud: i want to show, but not sure what i can do ethically. basically you have to read strings in a file, and find unique set-length fragments within those strings, and output the fragment/string pair.
brb3 has joined #ruby
wallerdev has quit [Client Quit]
blizzy is now known as _blizzy_
<weaksauce> ninjs I just recall excel being a bit of a jerk sometimes with data formats.
<chintanparikh> I'm getting an uncaught throw, not sure why. Would love some insight - https://gist.github.com/chintanparikh/d1274988ef436a411eac
<chintanparikh> I'm catching Timeout::ExitException and that's what the uncaught throw is
aswen has quit [Ping timeout: 248 seconds]
mjuszczak has quit []
Violentr has quit [Ping timeout: 248 seconds]
Morkel has quit [Quit: Morkel]
moeabdol2 has quit [Ping timeout: 248 seconds]
Anonym has quit [Ping timeout: 272 seconds]
<yxhuvud> sohrab: so given a length, find unique strings of that length in a larger string? or the shortest unique substring? or something else?
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bricker has joined #ruby
mtakkman has joined #ruby
<sohrab> yxhuvud: yeah, the first one, unique strings of that length in larger strings
juanpaucar has quit [Ping timeout: 256 seconds]
<Coraline> my_string.split.combination(length).to_a
horsecowdog has quit [Read error: Connection reset by peer]
horsecowdog has joined #ruby
<yxhuvud> coraline: isn't that like totally different?
P1RATEZ has joined #ruby
nfk has quit [Quit: yawn]
<Coraline> That would assemble all unique substrings of _length_ length in the string
_djbkd has quit [Remote host closed the connection]
<Coraline> That was my understanding of your question
<sohrab> i don't think i'm explaining it fully. the sub-strings must remain consecutive and be unique across all substrings in the entire file
<Coraline> Ah
<weaksauce> couldn't you do that in o(n)?
<jhass> .each_char.each_cons(length).map(&.join).uniq? :P
xmaddness is now known as xmad-afk
fryguy9 has joined #ruby
<yxhuvud> weaksauce: yes, it is quite possible.
chintanparikh has quit [Read error: Connection reset by peer]
Spami has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
<Ellis> does each change the array?
<sohrab> damnit, then i'm just a poor coder
chintanparikh has joined #ruby
<jhass> Ellis: no
lolmaus has joined #ruby
<jhass> sohrab: Set + each_char + Array#shift / Array.push would by my first naive O(n) approach
wald0 has quit [Quit: Lost terminal]
<havenwood> jhass: `&.join`, eh? Seeing the Crystal slip in... :P
<jhass> yD
<jhass> to be fair . and : is the same key on my keyboard
<yxhuvud> jhass: I guess it depends on if he wants all with duplicates all all that only exists once. I guessed at the latter interpretation.
<yxhuvud> *removed
horsecowdog has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has joined #ruby
<jhass> unique substrings of size x, yeah
robbyoconnor has quit [Ping timeout: 265 seconds]
horsecowdog has joined #ruby
maximski has quit []
<Scriptonaut> this might be more of a rails question, but I figure I'll ask here. I have a module in the lib directory. Normally I can access this module jsut fine, initialize it (set an instance variable), and call its methods. However, when I make it a delayed_job, it's like every time a job executes it's redefining my module from the module file. So then I have to initialize it every time
<matugm> Ellis check this out: https://github.com/matugm/ruby-algorithms/blob/master/luhn.rb I think that's what you are trying to do.
<jhass> sohrab: don't worry too much, we regulars here do these kind of puzzles all day :P
<ninjs> I don't get it. Line 6 and line 75 should be identical, but line 75 errors out
<yxhuvud> matugm: personally I'd guess he is trying to do homework ..
<sohrab> jhass, what's 'Set'?
Zamyatin has joined #ruby
davispuh has joined #ruby
<atmosx> Scriptonaut: show your delayed_job code.
<Scriptonaut> ok
<jhass> sohrab: O(1) duplicate elimination since it has O(1) existence check
fryguy9 has quit [Quit: Leaving.]
<jhass> sohrab: implementation-wise it's just the keys of a hash
<Scriptonaut> it prints "CALLING CLIENT!" every time
<jhass> Scriptonaut: I don't know delayed_job, is it process based perhaps? forking model?
_djbkd has joined #ruby
<jhass> does it have something like a prefork hook?
mjuszczak has joined #ruby
<atmosx> Scriptonaut: of course it does
werelivinginthef has joined #ruby
Rapier- has quit [Remote host closed the connection]
<Scriptonaut> jhass: not sure
<Scriptonaut> atmosx: why would it? I'm setting @client every time it gets called
wallerdev has joined #ruby
<sohrab> jhass: it's an unordered list, basically?
krisquigley has joined #ruby
graydot has joined #ruby
<jhass> sohrab: it's pretty much what mathematicians call a set too, a bag of things, no duplicates
<ytti> sohrab, probably if they are intersted in performance and they specifically mentioened it's fixed length
_honning_ has joined #ruby
baroquebobcat has joined #ruby
<ytti> sohrab, they intend that you read stream character at a time, having circular buffer of fixed lenght
<jhass> sohrab: adding the same value twice to a set has no effect
techsethi has joined #ruby
<ytti> (then again, if language is ruby, probably best to use built-ins, which are in C, rather than to opimize in own ruby)
chridal has quit [Ping timeout: 245 seconds]
<atmosx> Scriptonaut: how are you setting @client?
krisquigley has quit [Ping timeout: 246 seconds]
<jhass> well, if the input is really large, doing it in Ruby can actually be faster if you can turn 2-3n into n
<Scriptonaut> @client = Databasedotcom::Client.new
<sohrab> jhass: but i need to keep track of which string the fragment is a part of
<Scriptonaut> @ atmosx
<sohrab> so i thought i needed a hash
<Scriptonaut> This is the same code I used without a delayed job and it remained set
<Scriptonaut> the background job is like re-reading the module file to define it every single time
<jhass> sohrab: oh, you have multiple inputs need the unique substrings across all inputs and in which inputs they appear?
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
<sohrab> my solution was to put fragments in a hash; if one already exists, delete it and put the fragment in an array of duplicates. so for each string i (a) check duplicate array, and (b) check the hash.
<atmosx> Scriptonaut: delayed job is supposed to work like that. I used sidekick, not delayed_job but it's kinda the same
_honning_ has quit [Read error: Connection reset by peer]
zerowaitstate has joined #ruby
<jhass> sohrab: I guess I didn't understand the full assignment yet
akahn has joined #ruby
<atmosx> Scient: you should place that module somewhere else and call it through your delayed job.
Megtastique has quit []
<atmosx> Scriptonaut: ^
<Scriptonaut> :O how do you do that
<Scriptonaut> oh
<sohrab> jhass: yes, i think that's it. a file with many lines of strings is the input. sorry for the confusion
<Scriptonaut> just define a function somewhere that calls it
_djbkd has quit [Remote host closed the connection]
<atmosx> Scriptonaut: yes and stays in memory
_honning_ has joined #ruby
<Scriptonaut> alright not a bad idea I'll try that
<Scriptonaut> thanks
<akahn> any rbenv users in here? I'm having an issue where irb isn't saving history between sessions. any tips?
<sohrab> jhass: and the output is a table of fragments and their corresponding original strings
fryguy9 has joined #ruby
ianseyer has quit [Ping timeout: 252 seconds]
Lloyd is now known as lloyd
<jhass> sohrab: then I'd do a Hash.new {|h, k| h[k] = [] } instead of a Set with the fragment as key and the original strings as values
<jhass> or a set as value actually to eliminate duplicates there
<jhass> so the loop can just unconditionally fragments[fragment] << original
casshern2 has joined #ruby
fabrice31 has joined #ruby
horsecowdog has quit [Remote host closed the connection]
<sohrab> jhass: yeah, i'm doing that (the first thing you said). but for each fragment, i loop over (a) the entire hash and (b) an array of the repeated fragments. idk if this is o2 or o3.
ejnahc has quit [Remote host closed the connection]
_djbkd has joined #ruby
ejnahc has joined #ruby
brb3 has quit [Quit: <.<]
inavele has quit [Ping timeout: 244 seconds]
<sohrab> jhass: but i think using a set to track repeats is better
_djbkd has quit [Remote host closed the connection]
Lingo has joined #ruby
Lingo has quit [Client Quit]
<sohrab> are sets unique to ruby? why haven't i heard about them before?
FDj_ is now known as FDj
<aawe> sets are very much not unique to ruby
<baweaver> Python and Haskell for a few
aswen has joined #ruby
<aawe> std::set in c++
<Scriptonaut> ll
<baweaver> Seems like a standard feature.
<aawe> hashtables are often used to emulate sets
<aawe> and trees
<Scriptonaut> sets probably predate any programming language
<baweaver> which ruby does.
<aawe> mathematical sets yah
vt102 has quit [Remote host closed the connection]
<jhass> sohrab: no, their quite a fundamental data structure and originate in mathematics
<baweaver> Monads :D
<jhass> meh, too slow :P
* baweaver ducks
<GaryOak_> oh god someone just said monads!
grindmodeon has joined #ruby
<sohrab> ytti: hmm, i'm trying to understand 'circular buffer of fixed length' right now
<baweaver> Category theory
fabrice31 has quit [Ping timeout: 264 seconds]
<GaryOak_> Set theory
chintanparikh has quit [Ping timeout: 245 seconds]
<aawe> arithmetic
x1337807x has joined #ruby
<atmosx> prime numbers
<GaryOak_> complex numbers
<atmosx> imaginary numbers
<jhass> sohrab: hope you don't submit it as your solution, but since I pretty much spoiled it anyway already: http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20150414_223346.png
<aawe> imaginary ruby
<atmosx> ζ(x) functions
saturnflyer has quit [Remote host closed the connection]
<quesker> is there something like perl's File::Find for ruby?
lethosor has left #ruby [#ruby]
<atmosx> λ
<quesker> unix find
Pharaoh2 has joined #ruby
<atmosx> quesker: wtf does File::Find do?
<Coraline> Avdi just did a Ruby Tapas on finding files in native Ruby.
<atmosx> Ruby TApas, is that a podcast?
_honning_ has quit [Ping timeout: 245 seconds]
<wasamasa> quesker: just glob to path/**/*
<Coraline> Videos
<h00d> lol
<dudedudeman> It's a video cast
<atmosx> Coraline: ah cool, paywall?
<Coraline> Yeah
<atmosx> Coraline: :-(
failshell has quit []
<Coraline> Well worth it
<atmosx> Coraline: I make 500 EUR/month.
centrx has joined #ruby
<dudedudeman> Of course the File Find is one of the paid videos only :(
vt102 has joined #ruby
<atmosx> dudedudeman: :-(
<sohrab> jhass: whoa, awesome.
<atmosx> quesker: you got your answer, either use glob or pay for the video.
<quesker> heh
techsethi has quit [Quit: techsethi]
<atmosx> quesker: developers must live also.
<dudedudeman> Avdi definitely lives. lol
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<quesker> it has nothing to do with glob. not sure how to explain the find command to windows people
<Scriptonaut> atmosx:
<Scriptonaut> where do you live? (like country)
<atmosx> jhass: any reason you don't use git/gist for that kind of snippets? You wanna make sohrab re-write everything manually?
<Scriptonaut> I assume you work as a rails dev or something, they make WAY more out here near Seattle
MasterPiece has joined #ruby
<jhass> atmosx: kinda, also copy paste out of pry, meh
tercenya has quit []
tkuchiki has joined #ruby
Secudno has joined #ruby
<atmosx> Scriptonaut: Greece, nope I'm not a professional developer although I received numerous offers the last couple of years. There's a London based recruiter trying to convince me to go to berlin (work as ruby/devops) right now... But I won't.
n80 has quit [Quit: n80]
<jhass> atmosx: it'S a job interview assignment, I don't want them to use that version at all, but since we spoiled so much already I figured I just make it clear
<atmosx> jhass: I figured.
Pupeno_ has joined #ruby
silentpost has quit [Read error: Connection reset by peer]
<atmosx> jhass: Oh, I didn't knew that.
<atmosx> Scriptonaut: I'm a pharmacist :-)
luluapple has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
<sohrab> jhass: is this o(n)?
<Scriptonaut> atmosx: damn well I'd do it
<baweaver> Oi, we make well off in SF as well
<Scriptonaut> 500 a month is less than minimum wage where I live
<Scriptonaut> stuff must be cheaper there though
<baweaver> but bleed it out in rent :(
<Scriptonaut> I hear greece isn't doing so well, heh
<jhass> sohrab: if each_cons isn't implemented in a completely stupid way (which I doubt), yeah
silentpost has joined #ruby
<Scriptonaut> baweaver: ya SF makes even more than Seattle
zorak8 has quit [Read error: Connection reset by peer]
<Scriptonaut> I'm going to San francisco tonight to check it out
Hijiri has quit [Quit: WeeChat 1.0.1]
<Secudno> And I wonder, @@ is same as this static variable here in C++? http://codepad.org/1OaKfWpO
<atmosx> Scriptonaut: well, I spoked half the truth. I actually amke 600 EUR/month but all expenses are covered + I own my home and I will soon be the owner of a rather 'big' (in terms of our small town) pharmacy.
DerisiveLogic has quit [Read error: Connection reset by peer]
<jhass> sohrab: well, disregarding the walk to split it into lines of course
<baweaver> Scriptonaut: job?
<sohrab> jhass: how amateur is my solution? i'm going to use mine but i'm just curious about how awful it is
Pupeno has quit [Ping timeout: 265 seconds]
<Scriptonaut> baweaver: nah road trip with girlfriend for fun, haha
Anonym has joined #ruby
<atmosx> Scriptonaut: but again, making more than 40k/year in Greece is a challenge, especially today. Well, I can pass the recruiter to you if you give me a github profile :-)
<jhass> sohrab: it's probably expected to come up with something like that if you don't know sets
<Scriptonaut> I have a friend who lives there though and is deeply involved in the tech scene their (her boyfriend was like head engineer for napster or something)
<Scriptonaut> there*
<baweaver> I live in East Bay, too expensive in town.
<sohrab> jhass: what other data structures are essential for me to learn? (thanks for all the help btw)
<weaksauce> Secudno it's been a while since I wrote c++ but doesn't the const mean that it can't change
<atmosx> jhass: data structures are part of the regular CS curiculum or master's degree?
<jhass> sohrab: graphs and (binary) trees
<Secudno> weaksauce: That it's immutable but don't mind the const, but static.
<jhass> atmosx: at least a few basic ones, yeah
chridal has joined #ruby
<atmosx> jhass: because IIRC algorithms and data structures are part of the master's degree in CS not the bachelor.
<atmosx> jhass: I see
<weaksauce> yeah a class variable is the same as static
DerisiveLogic has joined #ruby
<weaksauce> Secudno^
DerisiveLogic has quit [Remote host closed the connection]
DerisiveLogic has joined #ruby
<atmosx> good night everyone :-)
<baweaver> that seems pretty Sophomore level undergrad honestly.
<Scriptonaut> baweaver: ya, up here my rent is $425 a month :P
<Secudno> weaksauce: There will only be one instance of it and be shared to all class instances?
* baweaver doesn't want to admit his rent
<jhass> atmosx: my bachelor did graphs and trees as the more advanced ones, there's an additional course in the master curriculum, yeah
<Anonym> hey
pandaant has quit [Remote host closed the connection]
<Anonym> guys
<Scriptonaut> atmosx: nah they're part of a BS too
<Scriptonaut> I just got a BS in computer science a little under a year ago
<Anonym> what is the site for ruby beginners?
zenith_ has joined #ruby
<Scriptonaut> we learned datastructures in the firs tyear
<baweaver> google
<Scriptonaut> lots of them (lots of math too)
<Anonym> scriptonaut?
<Scriptonaut> hi
ismaelga has joined #ruby
zenith_ is now known as Guest79273
<Anonym> Is it alot of math in programing?
<jhass> atmosx: sequences and sets come mostly through the mathematics courses and we had two about how databases works which revisits trees quite in depth
<Anonym> you have to be good at math?
<baweaver> in anything sufficiently challenging and interesting
<Scriptonaut> eh, not necessarily, there's a lot of math in computer science though
<Anonym> ye
<baweaver> frontend web dev, very little.
<Anonym> making an ap
<Anonym> game
<weaksauce> yes Secudno that's correct
<Scriptonaut> computer science != programming, programming is just a small part of it
<Anonym> alot math?
<Scriptonaut> game programming? Ya tons of math, haha
<weaksauce> Secudno a class is actually an object.
<Anonym> fck
<Anonym> hard math?
<Scriptonaut> I dunno, it's not hard to me
<jhass> Anonym: does dad know you're still awake? ;P
<Anonym> no
<Scriptonaut> but if you're gonna roll out your own physics engine, then it gets pretty complex
<Anonym> haah xd
<Secudno> Anonym: If you want to talk about hard math, talk about my degree in PM :)
<Secudno> Engineering mathematics is a joke
<Anonym> I have computer under bad
<dudedudeman> i math some times
<Anonym> ok xd
<dudedudeman> not very well, though
<Secudno> weaksauce: Ok great
jenrzzz has quit [Ping timeout: 264 seconds]
<ramfjord> atmosx: speaking for me and all of my co-workers, data structures and algorithms should *definitly* be part of an undergrad CS curriculum
CustosLimen has quit [Ping timeout: 276 seconds]
Anonym has left #ruby [#ruby]
<Scriptonaut> it is a part of every undergrad CS curriculum I've seen
ItSANgo_ has quit [Quit: Leaving...]
<Scriptonaut> not including community college I dunno what they do
doppler has quit [Ping timeout: 246 seconds]
elaptics_away is now known as elaptics
<Secudno> atmosx: From?
<atmosx> hehe I get desktop notifications
Secudno is now known as Secundo
mhib has quit [Remote host closed the connection]
<atmosx> ramfjord: did you do a pool or something? (with your co-workers)
<atmosx> Secundo: ?
bMalum has joined #ruby
<ramfjord> no, but I do interviews
<ramfjord> give interviews*
<Secundo> atmosx: Where are you from
<atmosx> ramfjord: ah, I see.
<atmosx> Secundo: Greece
Secundo is now known as Secnz
<Secnz> atmosx: State?
leafybasil has joined #ruby
lektrik has quit [Quit: Leaving]
sevvie has quit [Ping timeout: 252 seconds]
<Scriptonaut> does greece even have states?
Squarepy has quit [Quit: Leaving]
<atmosx> Scriptonaut: not really
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Secnz> Scriptonaut: Region I mean..
A205B064 has joined #ruby
<atmosx> Scriptonaut: But should Macedonia (literally speaking it's south Macedonia), town called Drama.
<atmosx> Secnz: North Greece
sevvie has joined #ruby
<atmosx> s/should/should be
<Secnz> atmosx: I see
tercenya has joined #ruby
Zamyatin has joined #ruby
Anonym has joined #ruby
<Anonym> guys?
platzhirsch has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
<Anonym> Why is it underscore?
juanpablo______ has quit [Quit: (null)]
<Anonym> Space_in_a_car?
<platzhirsch> Any idea where to look at to find out about setting a prefix or IRB?
<platzhirsch> for IRB*
<bricker> Prefix?
sinkensabe has quit [Remote host closed the connection]
<Anonym> why does ruby use underscore?
rbennacer has quit [Remote host closed the connection]
<Secnz> Anonym: Where?
<quesker> require 'find'
<Anonym> Space_in_a_car = 4
<ramfjord> platzhirsch: you mean prompt, like the PS1 variable for bash?
<Secnz> Anonym: constants
<quesker> that was it, in case anyone cares
<Anonym> cars_driven = 3
Hijiri has joined #ruby
<Anonym> sencz why?
sinkensabe has joined #ruby
<atmosx> Anonym: why not, it's called 'snake case'.
<bricker> Anonym: just convention
<Secnz> Anonym: snake case
quimrstorres has quit [Remote host closed the connection]
<Anonym> snake case is?
<bricker> Anonym: for ruby, yes
<Secnz> snake_case, camelCase
<Anonym> do I have to?
<ramfjord> Anonym: you shouldn't have Space_in_a_car, but the convention is snake_in_a_car is a variable or method name
<atmosx> Anonym: it's a convention to set local and instance variables while using camelcase for classes (and class variabels if any/ever)
<Secnz> szStupidCCase
<bricker> Anonym: No, there's nothing forcing you to use it though
nszceta_ has joined #ruby
Beliq has quit [Quit:
GenghisKen has quit [Ping timeout: 252 seconds]
<Anonym> the program understand me withotu using it+
<Anonym> ?
<Secnz> Anonym: C++ standard uses snake_case while MSDN uses FuckedUpCase
<atmosx> Anonym: yes
<dudedudeman> lol @ FuckedUpCase
<Anonym> why does people use it then?
<bricker> Anonym: because it's convention
<atmosx> Anonym: the program doesn't give a Jack's ass about what you're using...
<Anonym> lol
<Anonym> so why is code academy telling me to use it
<bricker> Anonym: Anonym because it's convention
<hanmac> for constants which are neither modules or classes i have seen SCREAM_CASE
<baweaver> because people are bound to argue about opinions
<atmosx> Anonym: it's a conspiracy. They want to see you get as mad as it gets.
<platzhirsch> ramfjord: yes :)
<platzhirsch> bricker: well a prefix for the prompt entry, so I can differentiate environments
<atmosx> what is code academy?
<baweaver> so to prevent people from wasting hours arguing, conventions are suggested
<bricker> platzhirsch: oh
<atmosx> Anonym: they are just trying to make your life easier
<baweaver> which are encouraged
<Secnz> atmosx: A website for lazy people that don't want to read books
hannahkoala has quit [Quit: My computer has gone to sleep. ZZZzzz…]
<bricker> platzhirsch: look at irbrc
nszceta has quit [Ping timeout: 245 seconds]
<Anonym> ok thanks
vt102 has quit [Remote host closed the connection]
<atmosx> Secnz: weird, reading Flanagan's book about JS actually helped understand a great deal more about ruby :-/
Beliq has joined #ruby
<Anonym> code academy is where you can learn languages,
<Anonym> and shit
<centrx> They all support implementations of Lisp
<Secnz> Anonym: Where you think you can learn languages you mean
<Secnz> And then you end up writing spaghetti code
banister has joined #ruby
P1RATEZ has quit [Quit: giant white penis has landed on the barge!]
banister has quit [Max SendQ exceeded]
<baweaver> Secnz: Uncalled for unless you have something concrete there
<baweaver> The point is to teach basics
<Anonym> hahaah senzn :D
<baweaver> not architecture and more advanced principles.
<Anonym> how did you learn to code?
<atmosx> Secnz: I saw a post on HN the other day. A guy was making a bootcamp for non-programmers who wanted to become web-devs and the curriculum was something like: "we will study, vim, linux cli, rails, angularjs, emberjs, [..add another 15 frameworks here...] and [...add at least 3 different DBs here...]" and I was like "How many decades is this bootcamp gonna last".
ruby073 has joined #ruby
<Anonym> I started like 3 days ago guys
<atmosx> Secnz: I seriously wonder if people learn anything at all there.
<Secnz> atmosx: Haha..
<Secnz> Anonym: I read books and time
<dudedudeman> at least 4 decades alone for Linux
<Anonym> what books?
<dudedudeman> all the books!
<Anonym> of ruby?
ItSANgo has joined #ruby
<dudedudeman> I recommended some to you earlier
<platzhirsch> ramfjord: hope that works on Ruby 1.9.3, too. Thanks for pulling that out!
<atmosx> dudedudeman: AngularJS? without learning JS first?
<Secnz> Anonym: I'm a math student so I have to learn myself advanced programming and computer science.
<Anonym> ruby books?
<Secnz> Anonym: No I read C++ books to learn Ruby.
<platzhirsch> shame on me for no looking into the docs
<Anonym> haha ok
<ruby073> Hey folks can somebody help me debug a ruby user problem?
<Anonym> xd
riotjones has joined #ruby
akurilin2 has quit [Quit: WeeChat 0.4.2]
<dudedudeman> Pragmatic Programmers 'pick axe book' is a popular one
<Anonym> ok thanks
<atmosx> dudedudeman: VIM? ... VIM in a bootcamp for non-devs??? That alone requires a couple of weeks (to stop confusing input/editine mode)
<Secnz> Emacs 4 life
<atmosx> Secnz: I've always admired math students :-/
<atmosx> Secnz: vim > *
<dudedudeman> atmosx: you need at least 10 weeks for the bootcamp that tells you if VIM or Emacs is better
<Secnz> atmosx: And I'm greek ;)
<weaksauce> emacs just needs a proper editor is all
akurilin has joined #ruby
<Secnz> But live in Sweden/England
<atmosx> dudedudeman: that's easy, vim is better .-
<Anonym> good bye I come back tomorow cya :) need sleep bye
Anonym has left #ruby [#ruby]
<baweaver> Ignore emacs and vim for now
<atmosx> dudedudeman: emacs is an operating system, it's not a editor. It's a hoax.
<weaksauce> dudedudeman vim is a lot better :)
quimrsto_ has joined #ruby
<atmosx> Secnz: I figured
<dudedudeman> Secnz: i wish i was greek and lived in sweden :(
<atmosx> Secnz: whre you from?
kaleido has quit [Ping timeout: 264 seconds]
<weaksauce> neovim will be excellent
<atmosx> dudedudeman: why, does that give extra hotgirls?
<dudedudeman> weaksauce: vim is my favroite. :) I don't use it ALL the time, but i keep my chops up in it
neanderslob has joined #ruby
<Secnz> atmosx: Thess
nszceta_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<atmosx> Secnz: well, nearby.
<atmosx> Secnz: and you live in Sweden?
<dudedudeman> atmosx: if you're in to blond hair and blue eyes and heavy metal, sweden is the place for you
<Secnz> atmosx: Yea but I moved from Greece when I was 5
<quesker> if I require 'foo' how can I see the manpage of foo?
bruno- has quit [Read error: Connection reset by peer]
Guest79273 has quit [Read error: Connection reset by peer]
<atmosx> dudedudeman: I'm brown hair, green eyes and I listen to every kind of music... from Dream Theater to Mozart to local commercial shitty music.
<Secnz> atmosx: Yes and we exchange students every year so I went to England.
<atmosx> Secnz: what's your alias on twitter
bruno- has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<dudedudeman> atmosx: are you female?
Beliq has quit [Quit:
Guest21867 has joined #ruby
Guest21867 has quit [Excess Flood]
<atmosx> dudedudeman: nope :-P
sinkensabe has joined #ruby
<Secnz> atmosx: I don't use twitter nor facebook.
<dudedudeman> atmosx: also, you're a best friend now because you said dream theater
<atmosx> Secnz: weird, your profile looks awfully familiar
jalcine has quit [Ping timeout: 245 seconds]
Beliq has joined #ruby
<atmosx> dudedudeman: hhahah cool, so if I were a girl you would be asking me out?
<Secnz> atmosx: Nah I'm new to this channel. Jumping from C and C++ to Ruby.
<dudedudeman> *throws self at atmosx*
vt102 has joined #ruby
<dudedudeman> i'm a dude by the way.
<atmosx> Secnz: That should be a considerably easy jump :-)
<dudedudeman> i just like dream theater
vt102 has quit [Max SendQ exceeded]
<ramfjord> quesker: ruby gems don't have man pages, but you may have their documentation installed with a command called ri
* baweaver would have never guessed
duggiefresh has quit []
<ramfjord> alternatively look it up online
riotjones has quit [Ping timeout: 256 seconds]
<atmosx> dudedudeman: Yeah me too, but more their older LPs, 'scenes from a memory', 'a change of seasons', etc.
<Secnz> atmosx: Yea I hope so. :)
akurilin has quit [Read error: Connection reset by peer]
<atmosx> ramfjord: or launch the gem server :_)
<dudedudeman> atmosx: i do like their older stuff, but i'll be honesty, i absolutely LOVE their last two albums.
jenrzzz has joined #ruby
vt102 has joined #ruby
GenghisKen has joined #ruby
GenghisKen has joined #ruby
<Secnz> atmosx: I tell you one thing, Constantin Caratheodory
zerowaitstate has quit [Quit: leaving]
vt102 has quit [Max SendQ exceeded]
sankaber has quit [Quit: Textual IRC Client: www.textualapp.com]
jalcine has joined #ruby
<atmosx> Secnz: Was he your relative? :-P
vt102 has joined #ruby
<Secnz> atmosx: Do you know who he is?
<atmosx> Secnz: of course :-)
vt102 has quit [Max SendQ exceeded]
<Secnz> :)
<atmosx> Secnz: Mathematician, Greek lived in 20s-30s IIRC (no googling). Wanted to make a list with the most famous Greeks of the 20th century, so I start reading... Never compiled the list but I know Caratheory
vt102 has joined #ruby
<atmosx> Caratheodory, hehe
<Secnz> atmosx: You know anything more? :p
FernandoBasso has joined #ruby
vt102 has quit [Max SendQ exceeded]
cvtsx1 has quit [Quit: Leaving]
<atmosx> Well, I do actually, about his letters with Einstein, but there's nothing there to suggest that he had anything to do with the theory of generaly relativity. I know Caratheory did some mathematical advancements int he field of statistics (IIRC).
<atmosx> or was it probability, can't recall exactly.
fmcgeough has quit [Quit: fmcgeough]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cvtsx has joined #ruby
quimrsto_ has quit [Remote host closed the connection]
vt102 has joined #ruby
<atmosx> Secnz: why do you ask? :-)
meschi has quit [Ping timeout: 245 seconds]
<Secnz> atmosx: Actually you can, as Einstein said it himself: "You ask me to answer to all sorts of questions, but noone has ever wanted to know who was my teacher, who showed me the way to the higher mathematical science, thought and research. I simply say that my teacher was the unrivalled Greek Konstantinos Karatheodoris, to who we owe everything…”
cvtsx has quit [Client Quit]
ruby073 has quit [Quit: Page closed]
<atmosx> Secnz: from what I've read, that's a little bit far-fetched and Greeks have the ahm... Let's say *habbit* to overstate this kind of things.
<quesker> ok so ri find had some simple doc but it says see the Find module documentation. where would that be?
GeorgeThompson has joined #ruby
luluapple has quit [Ping timeout: 250 seconds]
maximski has joined #ruby
delianid_ has quit [Remote host closed the connection]
hornairs has joined #ruby
delianides has joined #ruby
<Scriptonaut> atmosx
<Scriptonaut> so I ran my method as a delayed job and took out the handle_asynchronous, but it's not working
<atmosx> quesker: also type 'gem server'
<Scriptonaut> you were the guy I was talking to right?
ldnunes has quit [Quit: Leaving]
<atmosx> Scriptonaut: yes
werelivinginthef has quit [Remote host closed the connection]
<Scriptonaut> so in delayed_jobs, it only has access to the file definition before initilizers are run
<Scriptonaut> why is this?
<Scriptonaut> some of my definitions change at runtime
<atmosx> Scriptonaut: is this your project? Can you switch from delayed_jobs to sidekick? Even the code and approach seem clearer using SQ
<atmosx> err SK
<Scriptonaut> hmm, it's already a GIANT application, I'd have to do a lot of work to convert to sidekiq
<Scriptonaut> I'll just reinitialize each time and take the performance hit
<atmosx> I see
<Scriptonaut> the next project I have to implement this on uses sidekiq
<Scriptonaut> so that will be nice
ItSANgo has quit [Quit: Leaving...]
delianides has quit [Ping timeout: 240 seconds]
_djbkd has joined #ruby
spyderman4g63 has joined #ruby
<atmosx> Scriptonaut: I can't believe that guys at Shopify designed delayed_job so poorly.
<Scriptonaut> ya :(
<atmosx> Scriptonaut: you must be doing something wrong :-P
Pharaoh2 has quit [Ping timeout: 256 seconds]
<Scriptonaut> all I'm doing is referencing a module, and between delayed jobs changes to that module are not kept
<atmosx> Scriptonaut: what if you reference tha tmodule in this file: config/initializers/delayed_job_config.rb
jerius has quit [Quit: /quit]
<Scriptonaut> :tabe
<Scriptonaut> whoops
Pharaoh2 has joined #ruby
<Scriptonaut> how would I do that?
<atmosx> Scriptonaut: I scrapped https://github.com/collectiveidea/delayed_job and that seems to be where the parameters are stored.
<Scriptonaut> ya
<atmosx> Scriptonaut: read :-P https://github.com/collectiveidea/delayed_job
<Scriptonaut> just define a variable in there?
<Scriptonaut> I did read that
<Scriptonaut> I have that file, but I mean right now I'm defining it in it's own initializer
<atmosx> Yes
<Scriptonaut> all initializers are run at the same scope arne't hey?
<Scriptonaut> they*
<atmosx> They should be yes
MyGreenP1 has quit [Ping timeout: 264 seconds]
zorak8 has joined #ruby
<Scriptonaut> then ya, it won't make a difference if I reference the module in there or a different initializer like I'm doing now
<Scriptonaut> I wonder if it's just in development that it does this
<Scriptonaut> reloads the module for every job
<Scriptonaut> and in production it loads it once, that way you can make changes on the fly
<atmosx> oh, that sounds reasonable.
Mia has quit [Ping timeout: 245 seconds]
<dudedudeman> does anyone else in here have a day job that is something aside from programming?
charliesome has joined #ruby
Advocation has quit [Ping timeout: 245 seconds]
<atmosx> I'm off to bed. Night all
<atmosx> Scriptonaut: good luck :-)
<Scriptonaut> thanks
<atmosx> dudedudeman: night
baweaver has quit [Remote host closed the connection]
<Scriptonaut> dudedudeman: only ever had one job that wasn't programming
mtakkman has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<dudedudeman> atmosx: see you dude!
fidg18 has joined #ruby
<Scriptonaut> dish washer at a sicilian restaurant when I was 15
<dudedudeman> all my jobs have been not programming :/
<Scriptonaut> get one
<dudedudeman> working on it! so hard. lol
<centrx> You two should be Formula One race-car drivers!!
<dudedudeman> it's my end of the year goal
mjuszczak has quit []
<Scriptonaut> where do you live?
<Scriptonaut> it's not too hard where I live
fidg18 has quit [Client Quit]
<dudedudeman> i'm a regular attender to meet ups, have a coding mentor here at my office(who works on our dev team) have some pet projects i'm working on, and spend about 20-30 hours a week learning. on top of my three jobs
<dudedudeman> i'm. freaking. trying
<dudedudeman> ha
Guest24 is now known as lele
<Scriptonaut> to be fair though my programming jobs were either through my university, through some service like craigslist or something (contract gigs) while I was in school, and then this one after I had my degree in CS
<Scriptonaut> jesus 3 jobs
<Scriptonaut> This one job is too much for me
<dudedudeman> monday through friday gig, weekend gig, and my freelance gig of buildign websites and some small bits of coding
<dudedudeman> learning all of this so i can make it one job, and one job of just ruby. :)
<Scriptonaut> nice
<dudedudeman> i live in Dallas, TX btw
<Scriptonaut> you'll have no trouble getting a rails job, I'm not sure I've seen any non-rails ruby jobs though
<dudedudeman> there is a TON of tech here, and plenty of jobs to go around
<Scriptonaut> doesn't austin have a bumpin dev scene
Soda has quit [Remote host closed the connection]
<Scriptonaut> oh, nvm
<Scriptonaut> I don't know much about texas
<dudedudeman> no no, it's all good. Dallas/Ft worth has tons and tons of stuff, Austin does too
<dudedudeman> not sure we want to move there, at least not until i have a few years of a career going on then
tier_ has quit [Ping timeout: 265 seconds]
<dudedudeman> i haven't fully dived in to rails yet. i'm hesitant because i don't want to be someone who learns rails, but doesn't really know/understand ruby
<Scriptonaut> my friend from texas sent me that right as you were telling me about texas, hah
workmad3 has joined #ruby
<dudedudeman> ha! timing
ItSANgo has joined #ruby
uri_ has quit [Ping timeout: 245 seconds]
mrsolow has joined #ruby
luluapple has joined #ruby
<adaedra> so they really want to invade through Texas?
<dudedudeman> who knows. i know that texas wont appreciate that very much and there are enough guns to go around....
<dudedudeman> there would be a small battle for sure
ponga has joined #ruby
skullz has joined #ruby
gauke has quit [Quit: gauke]
jenrzzz has quit [Ping timeout: 264 seconds]
Kharma has joined #ruby
workmad3 has quit [Remote host closed the connection]
momomomomo has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
Zai00 has joined #ruby
gauke has joined #ruby
skullz has quit [Remote host closed the connection]
maximski has quit []
<Scriptonaut> lol
doodlehaus has quit [Remote host closed the connection]
TheMonster has joined #ruby
<GaryOak_> hahaha
<GaryOak_> texas
baweaver has joined #ruby
<TheMonster> hello, I want to join file names similar to what File.join does but when I do File.join('','something'), the result is a string with '/' prefix. Is there a way/method to ignore empty strings?
decoponio has quit [Quit: Leaving...]
<dudedudeman> oh yes.
<jhass> TheMonster: where's the empty string coming from?
<dudedudeman> is this one of those cases where "" with the " " would be of use?
<TheMonster> jhass: a variable
mostlybadfly has quit [Quit: Connection closed for inactivity]
<jhass> more context
<TheMonster> jhass: destination of a file
<TheMonster> dudedudeman: what's that?
<jhass> okay, then vague answer: don't do the join if you don't want to do it
<TheMonster> ok so I think you mean an if else.. Thanks
<wasamasa> conditionals
<wasamasa> how do they even work
<havenwood> wasamasa: conditionally
<jhass> probably just a modifer-if, but you refuse to provide context
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<dudedudeman> lol ^
<wasamasa> ?rimshot
<ruboto> I don't know anything about rimshot
<dudedudeman> ?conditionals
<ruboto> I don't know anything about conditionals
* wasamasa hurls something at ruboto
<TheMonster> jhass: I provided the context... It's nothing private... If you could tell me what vague about 'Destination of a file'?
<jhass> wasamasa: provide a nice one
mjuszczak has joined #ruby
<wasamasa> jhass: well, uh
<quesker> use ./ instead of "" maybe
<quesker> as your empty thing
<wasamasa> jhass: I'd be fine with "ZING" or "Badum-Tshhh!" or a link to something interactive
<jhass> TheMonster: well, it's hardly ever the empty string, so if you showed code for example we could suggest some nice idiomatic code for conditionally doing the join
<havenwood> wasamasa: Or it could kick you if the command is unknown. Great justice!
<havenwood> wasamasa: Speaking of that, I need to uninstall `sl`... that train...
DerisiveLogic has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
flughafen has joined #ruby
terlar has joined #ruby
<jhass> nah, too interactive
<dudedudeman> wasamasa: that is incredibly handy
<jhass> it needs to autoplay
<TheMonster> quesker: Thanks! your suggestion worked :)
<TheMonster> jhass: thanks, it's resolved now
* dudedudeman just discovered ruboto
<jhass> wasamasa: bought
<dudedudeman> any info on.. ?class
<wasamasa> jhass: and prepend any of the two before the URL
<dudedudeman> ?class
<ruboto> I don't know anything about class
<wasamasa> jhass: otherwise nobody is going to know what it's supposed to be
<dudedudeman> ?classes
<ruboto> I don't know anything about classes
<wasamasa> ?love
<ruboto> I don't know anything about love
<wasamasa> ;_;
* dudedudeman is pondering the existence of ruboto
jheg has quit [Quit: jheg]
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
chridal has quit [Ping timeout: 264 seconds]
<jhass> !fact mk rimshot Badum-Tshh! https://www.youtube.com/watch?v=oShTJ90fC34
<ruboto> jhass, I will remember that rimshot is Badum-Tshh! https://www.youtube.com/watch?v=oShTJ90fC34
paulcsmith has quit [Quit: Be back later ...]
x1337807x has joined #ruby
meschi has joined #ruby
momomomomo has quit [Read error: Connection reset by peer]
DerisiveLogic has joined #ruby
<wasamasa> !rimshot
Hijiri has quit [Quit: WeeChat 1.0.1]
<wasamasa> ugh
<wasamasa> ?rimshot
kirun has quit [Quit: Client exiting]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
<dudedudeman> there you go
<wasamasa> great, now I've got three types of bot prefixes to remember
<dudedudeman> which ones?
<wasamasa> ! on #archlinux*, , on #emacs, ? on #ruby
<dudedudeman> ha
bluOxigen has quit [Ping timeout: 272 seconds]
lanemeyer has joined #ruby
<dudedudeman> two operating systems and a scripting language
<jhass> your forgot >>
<dudedudeman> :P
_honning_ has joined #ruby
bMalum has quit [Quit: bMalum]
Azure has joined #ruby
xploshioon has joined #ruby
evanjs has quit [Remote host closed the connection]
quimrstorres has joined #ruby
HanaNix has joined #ruby
Soda has joined #ruby
juanpaucar has joined #ruby
<wasamasa> well, #emacs is also about the language it runs
ghostmoth has joined #ruby
<wasamasa> so I'd put it in both camps
Rickmasta has joined #ruby
ftj has joined #ruby
ftj has quit [Max SendQ exceeded]
jonr22 has quit [Quit: WeeChat 1.1.1]
quimrstorres has quit [Remote host closed the connection]
ftj has joined #ruby
grzywacz has left #ruby [":wq"]
gauke has quit [Read error: Connection reset by peer]
<HanaNix> Ruby Newbie here, how would one perform multiple .sub calls for all different variations/combinations of a particular match on a string?
eighthbit has quit [Ping timeout: 276 seconds]
<HanaNix> It might be a combination of .gsub and .product I am needing?
rootsudo has joined #ruby
existensil has joined #ruby
jouty has joined #ruby
catcher has quit [Quit: Leaving]
quimrstorres has joined #ruby
<jhass> try illustrating with example input and desired output
<HanaNix> jhass ok, thanks
momomomomo has joined #ruby
juanpaucar has quit [Ping timeout: 276 seconds]
<dudedudeman> throw something up on gist if you can
<dudedudeman> everyone loves gist
TheMonster has left #ruby ["Konversation terminated!"]
rodfersou has quit [Quit: leaving]
Akagi201_ has joined #ruby
sarlalia1 has joined #ruby
startupality has joined #ruby
<rootsudo> Ruby man.
MyGreenP1 has joined #ruby
TheMonster has joined #ruby
NoNMaDDeN has joined #ruby
quimrstorres has quit [Remote host closed the connection]
jottr has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
msmith has quit [Ping timeout: 255 seconds]
<xploshioon> hi guys, i have a client that want an app that will have profiles for the users and can have videos and images. so maybe we will need a lot of storage and bandwith for the videos. i was looking for hosting choices but seems that an app like that will be expensive. so was thinking in a php app because of that... th only that I see is ok is digital ocean, but still 40gb... idk...
sgambino has quit [Remote host closed the connection]
<dudedudeman> have you looked in to amazon web services?
<dudedudeman> (AWS)
jottr_ has quit [Ping timeout: 248 seconds]
<centrx> xploshioon, You probably want to host on that a CDN or AWS S3 something like that
<dudedudeman> this might not be the best channel for you, btw
<centrx> xploshioon, not just dump it all onto your application server
<jhass> +1, sounds like what S3 was made for
<xploshioon> i was thinking in heroku with some add ons for the files, but heroku with 1gb ram is 30$ for month.. even a vps in DO can be better with less money
<jhass> you can always move away when it gets less expensive to run your own DC
<jhass> yeah, DO or Linode for the appservers and S3 for storage
TheMonster has left #ruby ["Konversation terminated!"]
<xploshioon> so, a good combination can be digital ocean with s3 of amazon?
XorSwap has joined #ruby
mjuszczak has quit []
fryguy9 has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
<jhass> yes, I think that'll be the most cost effective for now if you calculate in setup/maintenance and scaling costs
<xploshioon> was thinking in the same
jherbst has joined #ruby
<xploshioon> thanks jhass
<xploshioon> send in the same moment
<dudedudeman> sorry if i sounded like you weren't welcome here xploshioon :(
<dudedudeman> i didn't know if it was a ruby app or not
NoNMaDDeN has quit [Ping timeout: 272 seconds]
<xploshioon> oh np @dudedudeman is all ok
<weaksauce> From what I hear S3 actually wasn't intended to serve things up and it gets expensive. the S3 to store them longer term and then CDN that amazon has to actually serve them is more up your alley.
<weaksauce> cloud front I think is what it's called
elfuego has quit [Quit: elfuego]
shellfu is now known as shellfu_afk
<xploshioon> yeah, i am reading about it, let's see
Guest73277 has quit [Ping timeout: 256 seconds]
<xploshioon> thanks for the help guys
vt102 has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
<jhass> there's probably a point (in amount of traffic) where one beats the other, but they should integrate nicely and make the switchover easy from what I've seen
tcrypt has quit [Ping timeout: 244 seconds]
krisquigley has joined #ruby
GeorgeThompson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
_djbkd has quit [Remote host closed the connection]
_djbkd has joined #ruby
<weaksauce> I think you still need to use S3 jhass. just not for the serving up assets.
neredsenvy has joined #ruby
<xploshioon> yeah, seems that i need still s3
<jhass> yeah, I think you can do both, serve directly from S3 and if you get lots of traffic you can shift the serving to cloudfront
<xploshioon> ill see what's the price and see what's the best choice
<xploshioon> but all that i saw is really expensive
Mia has joined #ruby
Mia has joined #ruby
MyGreenP1 has quit [Quit: WeeChat 1.2-dev]
MyGreenPickle has joined #ruby
<jhass> having that stuff in a reliable quality is not cheap, yeah
xxneolithicxx has quit [Quit: Leaving.]
mostlybadfly has joined #ruby
<shevy> wheeeeee ftp://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.xz
<shevy> long live ruby!
<xploshioon> well thanks guys, i have to go to other house, ill be back hehe
yqt has quit [Ping timeout: 272 seconds]
<jhass> but compare it to buying servers, renting a rack in a colo, employing an admin to maintain it, buying traffic from the colos ISP...
sgambino has joined #ruby
<weaksauce> yeah xploshioon s3 is expensive but it's bomb proof basically
tkuchiki has quit [Read error: Connection reset by peer]
<neredsenvy> Can `` be concatonated ?
<weaksauce> jhass in different locations as well
<jhass> yeah
<jhass> neredsenvy: pseudo code/example?
<xploshioon> what is the price normally? think in a web page like odesk but the profiles have videos and images
krisquigley has quit [Ping timeout: 276 seconds]
mengu has quit [Remote host closed the connection]
<xploshioon> maybe freelancer, but not with that concurrency, less
<xploshioon> is just for 3 countrys
Takle has quit [Remote host closed the connection]
xxneolithicxx has joined #ruby
<xploshioon> i don't have experience with aws, so maybe someone that used them before can give any idea of the monthly price
<weaksauce> xploshioon have you penciled it out requirements wise?
digifiv5e has joined #ruby
<weaksauce> I store a bunch of backups of my computer and it's like 1.50 / month usd
digifiv5e is now known as Guest61125
musashi has joined #ruby
<weaksauce> deduped and compressed though.
<weaksauce> and encrypted
baweaver has joined #ruby
<jhass> just say duplicity ;P
<xploshioon> yes @weaksauce
<dudedudeman> weaksauce: i might need ot hit you up on how that works
<xploshioon> xD
<jhass> dudedudeman: duplicity
_honning_ has quit [Ping timeout: 250 seconds]
<weaksauce> actually when I set it up that was still in its infancy
<xploshioon> and what's the size of those files
<xploshioon> daily, weekly?
CustosLimen has joined #ruby
quimrstorres has joined #ruby
moeabdol2 has joined #ruby
<weaksauce> hourly. not full snapshots. but the most important stuff.
fabrice31 has joined #ruby
<weaksauce> pictures. projects. etc. i'm calculating it right now.
<weaksauce> I'm using arq jhass dudedudeman
elaptics is now known as elaptics_away
<xploshioon> weaksauce if ypu can send me the size of that in an email, i have to go... humber.m23@gmail.com
Guest61125 has quit [Changing host]
Guest61125 has joined #ruby
Guest61125 is now known as daynaskully
<xploshioon> really thanks for all the help guys
<xploshioon> ill try to reconnetc in some minutes
<weaksauce> xploshioon 51gigs
<xploshioon> thanks weaksauce
xploshioon has quit [Quit: Leaving]
<weaksauce> np
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
moeabdol2 has quit [Ping timeout: 264 seconds]
fabrice31 has quit [Ping timeout: 246 seconds]
<weaksauce> yeah just checked 1.52 last month
bartj3 has quit [Ping timeout: 246 seconds]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24_ has quit [Ping timeout: 240 seconds]
aswen has joined #ruby
davedev24_ has joined #ruby
<weaksauce> anyone use Arq here? is Arc 4 worth it compared to 3
<marens> Simple question: why aren't errors and exceptions that are expected to be thrown documented? e.g. http://ruby-doc.org/stdlib-1.9.3/libdoc/socket/rdoc/IPSocket.html should document that it can throw SocketError: getaddrinfo: Name or service not known. this is somewhat confusing when you come from other languages
Ellis has quit [Quit: Ellis]
silentpost has quit [Read error: Connection reset by peer]
bartj3 has joined #ruby
dodobrain has joined #ruby
silentpost has joined #ruby
sgambino has quit [Remote host closed the connection]
growlove has quit [Quit: Leaving]
werelivinginthef has joined #ruby
<centrx> marens, the getaddrinfo error itself is not from Ruby
sgambino has joined #ruby
vim_shimm has quit [Ping timeout: 256 seconds]
<centrx> marens, The OS can have many different kinds of errors, and different OSes too. All that is subsumed under "SocketError"
sgambino has quit [Client Quit]
<marens> heh, you again :D * waves at centrx
enebo has quit [Quit: enebo]
<centrx> Please, call my Guru Free Node.
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
<marens> centrx: well i would be happy if SocketError would be mentioned in the documentation of IPSocket.getaddress, but it isn't mentioned at all
Filete has joined #ruby
<jhass> oh guru of the free node, what PHP function shall I call to convince the elders of the network of your greatness?
jenrzzz has joined #ruby
FrankD has joined #ruby
<centrx> PHP, is it larger than a breadbox?
sankaber has joined #ruby
<shevy> PHP runs TIOBE
<havenwood> Will it blend?
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<marens> and this seems to be a major flaw of the ruby docs compared to e.g. java docs (booh lame java, booh)
<shevy> ruby docs
<havenwood> marens: Contributions welcome.
<shevy> why don't you love the docs marens
<shevy> they were written in JAPANESE
werelivinginthef has quit [Ping timeout: 240 seconds]
<marens> well people who start ruby are the ones that need the docs and should be informed about what errors to expect, "contributions welcome" doesn't help
banister has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
<jhass> marens: the original docs clearly state it throws SocketError http://docs.ruby-lang.org/ja/2.2.0/method/IPSocket/s/getaddress.html
RegulationD has quit [Remote host closed the connection]
quimrstorres has quit [Remote host closed the connection]
<shevy> I started to collect documentation locally into my knowledge base
momomomomo has quit [Quit: momomomomo]
<shevy> that helped immensely over the years
Spami has quit [Quit: This computer has gone to sleep]
<shevy> the best would be to extract havenwood's brain though - that has the ruby docu integrated
reinaldob has quit [Remote host closed the connection]
<marens> jhass: great, one could hope those important bits could be automatically taken over into the english docs
<shevy> japan is so rich yet they can not afford proper english classes
icebourg has quit []
momomomomo has joined #ruby
h00d has quit [Quit: ChatZilla 0.9.91.1 [Firefox 37.0.1/20150402191859]]
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<andrew-l> shevy: have you been to japan?
Beliq has quit [Quit:
momomomomo has quit [Client Quit]
mikecmpbll has quit [Quit: ciao.]
<havenwood> andrew-l: はい!
<marens> so proper documentation is too much work and people just continue to get surprised by errors day by day? that's not what i would want to base my next program on :(
<andrew-l> dammit. i didn't install japanese IME on this computer.
spyderman4g63 has quit [Read error: Connection reset by peer]
VBlizzard has joined #ruby
<shevy> andrew-l sadly I have not been
quimrstorres has joined #ruby
Zamyatin has joined #ruby
<shevy> people don't get surprised by errors really
<ProteusX> shevy: \o/
<shevy> if it is net-related, there are lots of different annoying errors that one can catch
<andrew-l> after living there for 7 years and learning japanese myself... my conclusion of why japanese english is not so good: japanese people really don't need english in japan.
lanemeyer has quit [Ping timeout: 246 seconds]
meschi has quit [Ping timeout: 240 seconds]
zzing has joined #ruby
<andrew-l> even though japan spends so much money on english schools/teachers, there's no cultural motivation...
<shevy> SocketError Net::ReadTimeout Errno::ECONNREFUSED Errno::ETIMEDOUT OpenURI::HTTPError Errno::ENETUNREACH
<andrew-l> lol
Zamyatin has quit [Max SendQ exceeded]
<Secnz> Hey guys.
<Secnz> Is this https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp/ and The Well Grounded Rubyist enough from someone coming from C++?
<Secnz> for someone*
Zamyatin has joined #ruby
_blizzy_ has quit [Ping timeout: 245 seconds]
<ProteusX> Secnz: it's good enough for someone who has no programming experience at all
<shevy> Secnz for background sure
rbennacer has joined #ruby
<ProteusX> at least, in my opinion
<andrew-l> as someone that came from C, you'll need to code a lot, and not just on your own, but in a team.
<shevy> but ruby is really a language where the only real way to have it, is to actively write ruby code by yourself
<andrew-l> coding good ruby is not the same as coding good C
<Secnz> You do realize the three opinions are totally different :p
<andrew-l> the mindset is so different.
<shevy> I liked the pickaxe more back then, it had the whole stdlib reference in the last part, + examples
mary5030 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
rbennacer has quit [Remote host closed the connection]
mjuszczak has joined #ruby
Zamyatin has quit [Max SendQ exceeded]
<ProteusX> andrew-l: it's irrelevant, just read the book, you will learn ruby ^_^
ag4ve has quit [Ping timeout: 245 seconds]
<ProteusX> oops
<ProteusX> Secnz: **
<ProteusX> andrew-l: not meant for you :D
Zamyatin has joined #ruby
spyderma_ has joined #ruby
<Secnz> 00:40] <andrew-l> as someone that came from C, you'll need to code a lot, and not just on your own, but in a team.
<Secnz> What do you mean by that and why
VBlizzard is now known as _blizzy_
<shevy> dunno
<shevy> I always wrote ruby code by myself
<ProteusX> speaking of ruby books, I just got Ruby cookbook 2nd edition and The Ruby Way 3rd edition in the mail \o/
<andrew-l> ruby coding style is very different. you're at a higher level
DavidDudson has joined #ruby
<shevy> ProteusX \o/ but the more important question is... WILL YOU READ THEM?
growlove has joined #ruby
<GaryOak_> hah
quimrstorres has quit [Remote host closed the connection]
<GaryOak_> still haven't read through the well grounded rubyist
<Secnz> andrew-l: Are you talking about dynamically languages and such?
<ProteusX> shevy: I will at least skim them :)
<Secnz> andrew-l: I have done PHP aswell
michaeldeol has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
<shevy> yay!
<shevy> then you have no problem
<shevy> because php python lua perl ruby, it's all really the same family
<shevy> though PHP is more of a pot for cooking than for programming
<Secnz> So you do talk about dynamically typed languages
<Secnz> Aight
<ProteusX> a pot for cooking? :)
<shevy> dunno... "typing/typed" is a bit weird
<shevy> >> "my string".is_a? String
<ProteusX> more like a crack pot for smoking crack :D
<Secnz> Any other book than TWGR you would suggest_
<ruboto> shevy # => true (https://eval.in/313550)
<Secnz> ?
<ProteusX> wait, crack pipe, is what I meant :)
<shevy> optional typing would be nice though
spyderman4g63 has quit [Ping timeout: 248 seconds]
michaeldeol has quit [Client Quit]
<shevy> you can also query if your object responds to a given method Secnz
Zamyatin has quit [Client Quit]
<shevy> object.respond_to? :size
<weaksauce> Secnz eloquent ruby is excellent
Zamyatin has joined #ruby
msmith has joined #ruby
<shevy> the pickaxe guys termed the word "duck typing"... where it should not matter if it is an Array or a String or anything, as long as it would respond to a given method (in this case .size; both Array and String have this method)
<Secnz> looks really weird :P
<ProteusX> weaksauce: do you think Eloquent Ruby is better than The Well Grounded Rubyist?
siaw23 has joined #ruby
<weaksauce> different ProteusX
eytanfb has joined #ruby
<shevy> Secnz that looks like IRC bot format
<Secnz> weaksauce: How long have you been coding in Ruby?
<shevy> try in irb
<shevy> you just get "true" back
<shevy> ruby is essentially a simple language, even though it has a lot of stuff
<siaw23> can someone please tell me what the “*” sign is doing in front of the method argument? https://gist.github.com/siaw23/12f6c1086fde5df42b41
<weaksauce> I have been programming since I was 3 on an apple iie Secnz
<siaw23> what’s the guy trying to do?
<weaksauce> ruby perhaps 4 or 5 years
<shevy> siaw23 hmm I have seen that before
<weaksauce> siaw23 look up the splat operator
GeorgeThompson has joined #ruby
<weaksauce> oh nevermind.
<shevy> >> def *( enemy ); puts enemy; end; self.send :*, 'yo'
<ruboto> shevy # => yo ...check link for more (https://eval.in/313551)
<shevy> siaw23 so you see, you can call that method
<siaw23> shevy: i know that but usually it comes INSIDE the bracket ()
<siaw23> not outside
<weaksauce> that's just defining Rabbit * Rabbit
<Secnz> I will be missing the ;
<shevy> I did not mention the splat operator
<shevy> weaksauce did
speakingcode has joined #ruby
<shevy> let's splat him :)
<siaw23> shevy: why’s the method written that way?
icebourg has joined #ruby
<weaksauce> shevy guilty. didn't open the link
<siaw23> what’s the point?
icebourg has quit [Max SendQ exceeded]
<shevy> siaw23 I dunno. Perhaps the guy was on drugs.
<Secnz> I have seen that you can use printf in Ruby. Is it preferred?
<siaw23> and he’s doing that with all the operator
<siaw23> % / ^ etc
<shevy> perhaps he does it just because he can
<shevy> yeah, ok
<shevy> now I am sure
<weaksauce> Secnz it has its uses but most prefer puts
<shevy> he *is* on drugs
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
<Secnz> weaksauce: I see
<weaksauce> and use string interpolation vs concatenation
<shevy> siaw23 I guess there are not that many boundaries in ruby, people do lots of crazy things
serivichi has joined #ruby
icebourg has joined #ruby
<shevy> like the people here, they OMIT PARENS in method definitions that accept arguments, can you believe this
<siaw23> you saw the whole program?
<weaksauce> >> puts " this #{nil} will not crash "
<ruboto> weaksauce # => this will not crash ...check link for more (https://eval.in/313552)
Zai00 has quit [Quit: Zai00]
<siaw23> first time i saw this. got me scared
<shevy> siaw23 aha, I guess he made the rabbit objects more flexible
<Secnz> weaksauce: The book you suggested is 442 pages right?
<weaksauce> >> puts "this" + nil + " will though"
<shevy> he probably was bored to use long method names
<ruboto> weaksauce # => no implicit conversion of nil into String (TypeError) ...check link for more (https://eval.in/313553)
<Secnz> I'm so used to 1k+..
babykosh has joined #ruby
<siaw23> shevy: what would “flexible” mean here?
<weaksauce> yeah Secnz it's a short ish one.
<Secnz> weaksauce: What comes after?
<shevy> siaw23 so that he can use all those method calls: ^ / %
<shevy> rabbit = Rabbit.new
<shevy> rabbit ^ 5
<shevy> rabbit % 5
<shevy> looks like utter shit to me, but perhaps he loves it
<weaksauce> Secnz the docs mainly. that will not teach you ruby it teaches you best practices and more advanced stuff. TWGR teaches you ruby as a language.
<Secnz> I mainly want to learn Ruby for RoR, don't know if that's a good enough reason to do so.
<shevy> Secnz we are losing you ... :(
<shevy> you are turning into the enemies on #rubyonrails
<siaw23> shevy: that makes NO SENSE!
<Secnz> shevy: Enemies? ;o
<shevy> siaw23 yeah, but you know what I don't understand - why are you so fascinated with that code
icebourg has quit [Client Quit]
casadei has quit [Remote host closed the connection]
<shevy> Secnz yes SCAVENGERS, they use ruby only because of rails, not because of ruby :(
<siaw23> he confused me. and it’s a book ruby on rails site recommended — why’s poignant guide to ruby. just reading for the fun of it.
<weaksauce> Secnz learning ruby is a great idea for rails.
<weaksauce> as it's all ruby and ruby idioms.
riskish has joined #ruby
<shevy> Secna: look there http://www.google.com/trends/explore#q=Ruby%20-%20Programming%20Language%2C%20Python%20-%20Programming%20language%2C%20Perl%20-%20Programming%20Language%2C%20PHP%20-%20Programming%20Language&cmpt=q&tz=
<shevy> you can see a rise between 2004 to 2006 or so, then a decline
<riskish> https://github.com/appacademy/prep-work/blob/master/coding-test-1/practice-problems/solutions/13-capitalize-words.rb this solution, i'm confused how it is correct given that the 'words' array is not modified. am I missing something?
<shevy> those were the rails scavengers
<Secnz> shevy: But that's what I'm aiming for. I mean, I do use C++, Java and x86 asm for other stuff :/
juanpaucar has joined #ruby
serivichi has quit [Ping timeout: 272 seconds]
<shevy> siaw23 why's poignant guide confused the hell out of me. But I liked the whycats, they are cute
Zamyatin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Secnz> weaksauce: What do you mean by, TWGR teaches you ruby as a language?
<shevy> Secnz yeah, you will be a railser ... :(
<Secnz> What about Eloquent Ruby?
<weaksauce> it assumes you know some ruby already but teaches more idiomattic code
<weaksauce> idiomatic*
<vhlfd> idiotic
<Secnz> weaksauce: So couldn't I read it?
<shevy> lol vhlfd
<shevy> Secnz you really need to read less and write more. a single ruby book must be more than enough, if you need a second one then I can not believe that you know C++ already
<Secnz> shevy: I'm used to read a lot of books that's why.
speakingcode has quit [Ping timeout: 252 seconds]
<shevy> the biggest difference between ruby and say python is the philosophy. once you understood the philosophy, ruby will be trivial and consistent to itself
<weaksauce> perhaps. if you know basic programming things and can look up stuff when you get confused
<weaksauce> Secnz do you know how to use blocks?
<shevy> well C++ is really complicated. have you read the old interview of matz where he said he did not like to be surprised in C++?
<shevy> Secnz if you did not yet, read this interview http://www.artima.com/intv/ruby.html it is old but still great
blackmesa has quit [Ping timeout: 245 seconds]
<Secnz> weaksauce: Use blocks?
<shevy> blocks are a bit like an argument to a method
<shevy> every method in ruby can accept one block, optionally
<shevy> so you always have more flexibility if you need it
<shevy> get_books( from: '/database/books') { :reject_old_books }
<Secnz> weaksauce: Prints numbers 1-10 yes?
<weaksauce> yeah.
GeorgeThompson has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<weaksauce> the do |x| ... end part is the block
<Secnz> weaksauce: Why absolute value?
<Secnz> Hm?
<weaksauce> it's not absolute value
<siaw23> goodnight people
<weaksauce> it denotes the arguments passed to the block
Hijiri has joined #ruby
siaw23 has left #ruby [#ruby]
<Secnz> weaksauce: Is there a dot before each or dirt om my screen?
<shevy> Secnz ruby makes a lot of use of blocks
<riskish> anyone? :l
<shevy> File.open('test.txt') {|f| f << 'bla' }
DEA7TH has quit [Ping timeout: 245 seconds]
mengu has quit [Remote host closed the connection]
<weaksauce> Secnz it's a method call so there is a dot
dfinninger has quit [Remote host closed the connection]
<weaksauce> >> {this: "that", and: "that other thing"}.each do |k,v| puts "key is #{k} and value is #{v}" end
<ruboto> weaksauce # => key is this and value is that ...check link for more (https://eval.in/313561)
<Secnz> weaksauce: Ah I see
<jhass> riskish: word[0] = is calling String#[]=, which modifies the string
<weaksauce> Secnz if you need a lot of help with the syntax of ruby TWGR is good but a bit slow and in depth
<jhass> riskish: there's a more idiomatic solution though
<riskish> jhass: hmm, i don't understand "String#[]"
<riskish> is it because its assigning the address when it does word = words[idx] -- so it's change the value at that address, jhass?
mjuszczak has quit []
<jhass> String#[]=, it refers to the instance method []= on the class String, http://ruby-doc.org/core-2.2.0/String.html#method-i-5B-5D-3D
<jhass> "address"?
aphprentice has quit [Remote host closed the connection]
<riskish> i don't know I'm confused heh
platzhirsch has quit [Quit: Leaving.]
nobitanobi has quit [Remote host closed the connection]
<jhass> riskish: do you have irb or pry?
<riskish> i don't think so, i'm using nitrous though
ndrei has quit [Ping timeout: 240 seconds]
Hijiri has quit [Ping timeout: 256 seconds]
<jhass> so that has a repl? do word = "foo" and then word[0] word[1] and so on, try assigning new values and inspecting word afterwards
quintinadam has quit [Ping timeout: 256 seconds]
tcrypt has joined #ruby
luluapple has quit [Quit: ZNC - http://znc.in]
ndrei has joined #ruby
jobewan has quit [Quit: Leaving]
elfuego has joined #ruby
<riskish> jhass: I tried that, that makes sense. What doesn't make sense to me is at the end they're joining "words" not "word", it seems word should be joined, no?
mjuszczak has joined #ruby
predator217 has joined #ruby
<jhass> no, the strings that are in the array are modified
<jhass> there aren't new strings created
<riskish> ah
<jhass> try words = ["foo", "bar"]; words[0][0], words[1][1] and so on, again also assigning and inspecting words afterwards
<riskish> for some reason I assume word = words[idx] creates a new string..is that no so in ruby?
d10n-work has quit [Quit: Connection closed for inactivity]
<jhass> also try word = words[0] and playing around
predator117 has quit [Ping timeout: 252 seconds]
<jhass> no
baweaver has quit [Remote host closed the connection]
<jhass> ruby is entirely pass by reference
Takle has joined #ruby
<riskish> that's what I was needing to understand, thanks.
<jhass> yw
<jhass> riskish: idiomatic solution is words.map(&:capitalize).join(" ") btw
quimrstorres has joined #ruby
iasoon has quit [Ping timeout: 245 seconds]
<riskish> what does idiomatic solution mean
<jhass> close to the languages idioms/common style/features
<weaksauce> jhass words.split(" ").map(&:capitalize).join(" ")
thatslifeson has joined #ruby
<riskish> given i'm a newb probably above my head for now
<jhass> oh, it splits, right, my bad
zachrab has quit [Remote host closed the connection]
<riskish> cool
<jhass> does words.split(" ").map {|word| word.capitalize }.join(" ") make any more sense?
moeabdol2 has joined #ruby
n80 has joined #ruby
<weaksauce> >> "this is a test".split(" ").map(&:capitalize).join(" ")
<ruboto> weaksauce # => "This Is A Test" (https://eval.in/313565)
havenwood has left #ruby [#ruby]
havenwood has joined #ruby
freerobby has quit [Quit: Leaving.]
havenwood has quit []
fwaokda_ has joined #ruby
quimrstorres has quit [Ping timeout: 245 seconds]
Zamyatin has joined #ruby
hiyosi has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
juanpaucar has quit [Remote host closed the connection]
sankaber has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
Hijiri has joined #ruby
moeabdol2 has quit [Ping timeout: 240 seconds]
juanpaucar has joined #ruby
ramfjord has joined #ruby
oddskill is now known as oddskill_away
baroquebobcat has quit [Quit: baroquebobcat]
mary5030 has joined #ruby
<FrankD> Does anyone know how I might go about redirecting IO from say executing bash.. so I could have a terminal in a browser? I realize that there's things I'd have to set like term -- and is there a way to deal with all the term-y kinda stuff that can happen? ie loading a text editor (nano, vi, whatever)
<FrankD> i thought there might be a library for something like that
<jhass> look into how the "SSH in a browser" thingies do it
ag4ve_ has joined #ruby
<Secnz> Didn't really get the second line, attr_accessor :title, :author, :content
mjuszczak has quit []
<jhass> Secnz: it's a shortcut to writing def title; @title; end; def title=(v); @title = v; end; and so on
<Secnz> It's getting weirder..http://codepad.org/C2kmUjH2
<jhass> well, what part is weird?
<Secnz> @name?
<jhass> instance variable
<Secnz> ?
<centrx> The Ruby, it's coming alive!
<jhass> your book/tutorial didn't cover it before showing you that?
<Secnz> No I'm reading Eloquent Ruby
<jhass> weird
quintinadam has joined #ruby
RegulationD has joined #ruby
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> mh, is that targeted at people new to the language?
Guest90035 has quit [Remote host closed the connection]
<Secnz> jhass: I don't think so
elfuego has quit [Quit: elfuego]
reinaldob has joined #ruby
elfuego has joined #ruby
<jhass> maybe quickly going over codeacademy or learn ruby the hard way or even just the ruby koans first would be better then
ponga has quit [Remote host closed the connection]
WillAmes has joined #ruby
bim has joined #ruby
<jhass> something that introduces you to all the syntax and basic (OO) concepts
<Secnz> jhass: You are funny, I ain't touching that shit :)
<jhass> ?
bim is now known as Guest3210
<Secnz> jhass: I have been a C++ programmer for years
<jhass> yeah, thus "quickly"
<Secnz> jhass: Nah I don't like such sites really.
<jhass> mh, C++ and instance variable means nothing to you?
<Secnz> They trying to dumb down programming for lazy people.
nobitanobi has joined #ruby
<jhass> Secnz: try the koans
<Secnz> jhass: Instance variables? no
<Secnz> Do you mean local variables?
<jhass> no
_honning_ has joined #ruby
<jhass> $global @@class_variable @instance_variable local_variable
<jhass> mmh, how does C++ call them again... members?
Takle has joined #ruby
<Secnz> jhass: How you call variables from a class?
<Secnz> Methods
RegulationD has quit [Ping timeout: 245 seconds]
<Secnz> I have no idea what you mean tho
ponga has joined #ruby
mjuszczak has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<Secnz> jhass: Maybe members yes
<jhass> a variable that is associated to an instance/object
<Secnz> jhass: For example test = MyClass.new ?
<Secnz> To test?
<jhass> then test would hold an instance of MyClass, yeah
reinaldob has quit [Ping timeout: 252 seconds]
<Secnz> jhass: So let me see. You do have public/private/protected members in Ruby right?
ag4ve_ has quit [Ping timeout: 245 seconds]
csmb has left #ruby ["Leaving..."]
baweaver has joined #ruby
freerobby has joined #ruby
GenghisKen has quit [Ping timeout: 252 seconds]
<jhass> methods, @instance_variables are always just accessible from inside the classes methods (that is when skipping metaprogramming)
<jhass> you can't do test.@some_var
<Secnz> jhass: Ok so private
<Secnz> like this
<jhass> pretty much, except you don't need to declare anything in ruby, yeah ;)
Zamyatin has quit [Ping timeout: 244 seconds]
spyderma_ has quit [Ping timeout: 272 seconds]
<Secnz> jhass: damn..
<jhass> but yeah, some_value is what we call an instance variable in ruby
Takle has quit [Ping timeout: 276 seconds]
<Secnz> jhass: And where do the "private" members go?
<Secnz> Oh ok
<Secnz> instance variable
ponga has quit [Remote host closed the connection]
<jhass> and as said, instance variables have really only one visibility, methods returning them may have different ones
<Secnz> jhass: They always go into the constructor? or initializer as you say in Ruby
Zamyatin has joined #ruby
AlphaAtom has quit [Ping timeout: 276 seconds]
<jhass> you can reference them anywhere in the methods, if they haven't been assigned a value yet, it's nil
<jhass> >> class Person; def name; @name; end; end; Person.new.name
<ruboto> jhass # => nil (https://eval.in/313608)
DerisiveLogic has quit [Ping timeout: 246 seconds]
<Secnz> Person.new.name
<Secnz> dafuq
<jhass> method chaining, you got that in C++, don't you?
GenghisKen has joined #ruby
<Secnz> no lol
<jhass> .new is just a method in Ruby ;)
<jhass> no? oO
<Secnz> I mean the new.name
<Secnz> p = Person.new
<Secnz> p.name
<jhass> yeah, same
<Secnz> Oh ok
Soda has quit [Remote host closed the connection]
<jhass> it's not different from say, "foo".upcase.reverse
<jhass> since .new is just a method in Ruby
GaryOak_ has quit [Remote host closed the connection]
ponga has joined #ruby
<Secnz> I see
<jhass> so, as you can see it returned nil
<jhass> because we never set a value for @name
mgberlin has joined #ruby
<Secnz> Yea
<jhass> >> class Person; def set_a_value; @name = "foo"; end; def name; @name; end; end; p = Person.new; p.set_a_value; p.name
<ruboto> jhass # => "foo" (https://eval.in/313609)
<jhass> and setting one can happen anywhere, anytime
<Secnz> jhass: Yea seems simple
<jhass> initialize again is just a method, it happens to be called by new before the new object is returned
<Secnz> The only confusing this is that you use an instance variable with the same name as the method
<jhass> well the @ is part of the vars name really
mary5030 has quit [Remote host closed the connection]
<jhass> >> class Person; def set_a_value; @name = "foo"; end; end; p = Person.new; p.set_a_value; p.instance_variables
<ruboto> jhass # => [:@name] (https://eval.in/313611)
<jhass> >> class Person; def set_a_value; @name = "foo"; end; end; p = Person.new; p.set_a_value; p.methods(false)
<ruboto> jhass # => [] (https://eval.in/313612)
<jhass> er, meh
<jhass> >> class Person; def set_a_value; @name = "foo"; end; def name; @name; end; end; Person.instance_methods(false)
<ruboto> jhass # => [:set_a_value, :name] (https://eval.in/313614)
<Secnz> But why would you have to do def name; @name; end; instead of just @name
<Secnz> without a method
<jhass> because you can't do p.@name
<Secnz> Ah now I get it :)
<Secnz> so
<Secnz> def name; @name; end; is same as doing public: string name() { return name_; } private: string name_;
<Secnz> in C++
<jhass> yeah
<Secnz> Ah I see :)
<jhass> and now writing all these method, we're far too lazy
<Secnz> And @@name is something like a static variable yes?
<Secnz> jhass: Yea
silentpost has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
<jhass> so ruby ships a shortcut to define those: attr_reader :name
<jhass> that defines the same method
Scriptonaut has left #ruby [#ruby]
<ramfjord> Secnz: @@name is a static variable that is shared across all the classes of the intheritance tree
nobitanobi has joined #ruby
silentpost has joined #ruby
<jhass> @@name is comparable to static vars, but has weird scoping rules, you want to generally avoid them since there are usually better alternatives
nobitanobi has quit [Remote host closed the connection]
juanpaucar has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 245 seconds]
dfinninger has joined #ruby
<ramfjord> for instance, you can use an instance @variable on the class
<Secnz> ramfjord: I know what a static variable is..
<jhass> being shared among the ancestry chain is one issue, but how and when exactly shared becomes hard to grasp once you touch mixins
<Secnz> jhass: But I guess having a class constant would be a good reason to use it.
graft has quit [Ping timeout: 250 seconds]
<Secnz> for example
Ca1us has quit [Ping timeout: 276 seconds]
<jhass> no, you'd just use a constant
<ramfjord> Secnz: all I was saying is that class instance variables (eg. def self.blah ; return @blah ; end) are more equivalent to static variables
krisquigley has joined #ruby
<Secnz> jhass: Why create multiple variables for constant
<jhass> sorry?
<Secnz> jhass: Sec
ki0 has quit [Remote host closed the connection]
vdamewood has joined #ruby
paradisaeidae has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sevenseacat has joined #ruby
davispuh has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
nobitanobi has quit [Client Quit]
paulcsmith has joined #ruby
<Secnz> jhass: Sorry you can't do that initialization
<Secnz> but yea
dorei has joined #ruby
Caius has joined #ruby
<bricker> what
<jhass> >> class SomeMath; PI = 3.141595; end; SomeMath::PI
<ruboto> jhass # => 3.141595 (https://eval.in/313615)
<jhass> and in fact
<bricker> lol
<jhass> >> Math::PI
<ruboto> jhass # => 3.141592653589793 (https://eval.in/313616)
MyGreenPickle has quit [Read error: Connection reset by peer]
kofione has quit [Quit: Leaving...]
<Secnz> jhass: Was an example, don't need pi
<bricker> Is Secnz trying to argue that Ruby doesn't have constants?
<bricker> or static variables?
<jhass> bricker: no, that you should use @@class_vars for constants
<Mon_Ouie> ramfjord: Except C++'s and Java's static variables do behave like Ruby's class variables.
<bricker> oh
MyGreenPickle has joined #ruby
willharrison has joined #ruby
hornairs_ has joined #ruby
hornairs_ has quit [Client Quit]
<jhass> Mon_Ouie: don't you have to have an explicit receiver for them in childs?
<jhass> I don't remember
<ramfjord> Mon_Ouie: I suppose a public or protected on will be inherited by children, but it's ancestors don't get it
<bricker> @@class_vars aren't constant though...
grindmodeon has quit [Quit: Leaving.]
krisquigley has quit [Ping timeout: 264 seconds]
<Mon_Ouie> What do you mean by "receiver" here?
<Secnz> jhass: Why create multiple instances of a constant, there is no reason.
<Mon_Ouie> >> class Foo; @@bar = 3; end; class Object; defined? @@bar; end