jhass changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
<baweaver> >> '.filename' =~ /\..+/
<ruboto> baweaver # => 0 (https://eval.in/419284)
<baweaver> >> '.filename' =~ /^\..+/
<ruboto> baweaver # => 0 (https://eval.in/419285)
<baweaver> >> 'filename' =~ /^\..+/
<ruboto> baweaver # => nil (https://eval.in/419286)
<terrellt> Dude
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<baweaver> either that or
<baweaver> well they left
greymeister has quit [Quit: greymeister]
<baweaver> terrellt: referring to me or...
<baweaver> because I do know of rubular, but demonstrating on here is more useful to people asking questions.
<zenspider> sounds like you just want to use Dir.glob and let it do its job
mistermocha has quit [Ping timeout: 244 seconds]
einarj has quit [Remote host closed the connection]
<zenspider> hrm
<zenspider> >> Dir["*"]
<ruboto> zenspider # => ["input-f4859c18ed7a", "source-f4859c18ed7a", "output-f4859c18ed7a"] (https://eval.in/419287)
<baweaver> surprised that one worked
<zenspider> hee. haxored all the things
<zenspider> I'm such a black hat. or... something.
<volk> That's hacking right.
* baweaver is not thinking clearly today
nolbuk has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
<volk> zenspider, what is a blackhat?
<pabs> that's no bueno
<pabs> >> Dir['/etc/*']
<ruboto> pabs # => ["/etc/dpkg", "/etc/mtab", "/etc/inputrc", "/etc/fstab", "/etc/rc.local.orig", "/etc/magic.mime", "/ ...check link for more (https://eval.in/419288)
<volk> mruby-cli doesn't cut it ;)
<zenspider> its like a different distribution of linux
blackmesa has joined #ruby
<volk> I think you'd actually be pretty good with security related affairs.
<baweaver> that's what a black hat hacker is
baroquebobcat has quit [Quit: baroquebobcat]
blue_deref has joined #ruby
RegulationD has quit [Ping timeout: 250 seconds]
<volk> You're just much too interested in ruby and its scene; you'd otherwise notice all the null pointer dereferences and off-by-one errors in the source.
<baweaver> slightly presumptuous talk there
<zenspider> uhhh
<volk> baweaver, how so?
barhum2013 has joined #ruby
benlovell has joined #ruby
bap1313 has quit [Ping timeout: 256 seconds]
davedev24 has quit []
<barhum2013> Hello, I am using time-warp in our tests. We have some raw SQL using ActiveRecord::Base.connection.execute in our rails app. That SQL query contains date_format(now(), '%Y-%m-01 04:00') is time-warp mocking the time here too?
<pabs> i wonder...
barhum2013 has left #ruby [#ruby]
<zenspider> I can't even tell if that was sarcastic. I think Poe's law has fucked me for all online interactions
AlexAltea has quit [Ping timeout: 255 seconds]
<volk> zenspider, not at all.
barhum2013 has joined #ruby
<pabs> >> File.read('/dev/zero')
<ruboto> pabs # => failed to allocate memory (NoMemoryError) ...check link for more (https://eval.in/419289)
<zenspider> barhum2013: highly doubt it
<Aria> zenspider: spread the FUD sauce on toast and eat it like the deliciousness it is.
<baweaver> zenspider: and if he hasn't, Murphy certainly has
<Aria> That is to say, specifics or it didn't happen
mary5030 has quit [Remote host closed the connection]
<zenspider> barhum2013: that now() is sql... so it'll execute on the db server side
unholycrab has joined #ruby
mary5030 has joined #ruby
<barhum2013> zenspider: I thought so, anyway to mock time for sql?
<pabs> barhum2013: what database are you using? most time functions are database-specific
<barhum2013> pabs: mysql
<unholycrab> i have ruby 2.0.0 installed via homebrew, and 2.2.0 installed via rbenv. when i type ruby -v, i get 2.2.0 (the rbenv ruby). but when i type bundle install, i see "Your Ruby version is 2.0.0, but your Gemfile specified 2.2.0"
<unholycrab> what am i missing?
<barhum2013> Did the rails channel move?
<zenspider> barhum2013: dunno. you'd prolly have to ask in #whateverdatabase. You can certainly do Time.now and pass that as a query parameter instead
JFlash has joined #ruby
<zenspider> unholycrab: head -1 $(which bundle)
<JFlash> hi, what's the channel for rails?
CloCkWeRX has joined #ruby
M0ni has quit [Quit: WeeChat 1.3]
<zenspider> prolly installed via 2.0.0 so it is using your base ruby
<pontiki> ?rails
<ruboto> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<baweaver> RubyOnRails
<zenspider> JFlash: nope. #rubyonrails
<JFlash> thanks
<baweaver> ninja'd
JFlash has left #ruby [#ruby]
noname has joined #ruby
<barhum2013> zenspider: Thanks for the clarification!
CloCkWeRX has quit [Read error: Connection reset by peer]
<barhum2013> Thanks
<pabs> barhum2013: strings 'YYYY-MM-DD HH:MM:SS' format are implicitly coerced to timestamps in mysql
<unholycrab> zenspider: /usr/bin/bundle
CloCkWeRX has joined #ruby
<zenspider> good luck. I'd pass it
<zenspider> unholycrab: mmm... no. see my cmd again
rakm has joined #ruby
<unholycrab> ah yeah i see
<unholycrab> #!/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
benlovell has quit [Ping timeout: 246 seconds]
<zenspider> yup yup.
<zenspider> so, activate 2.2.0, gem install bundler (or gem pristine if it is already)
<baweaver> bundler isn't installed for that version
hotpancakes has quit [Remote host closed the connection]
<pontiki> most likely need a rbenv rehash
kr3ssh has quit [Ping timeout: 256 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
<zenspider> or switch around PATH so rbenv's bin dir is before /usr/bin ?
<zenspider> whatever... you're on the right track now
<bricker> Anybody know what the "idn" module is? https://github.com/xmpp4r/xmpp4r/blob/master/lib/xmpp4r/jid.rb#L17
<bricker> Oh this maybe? https://rubygems.org/gems/idn
<zenspider> bricker: it is an undeclared dependency... so walk away
<bricker> zenspider: I need the JIDs not to be downcased :(
<shevy> bricker hmm 10 years time span there
<zenspider> what a terrible project. :/
<bricker> you're telling me!
<zenspider> they don't declare a thing.
<zenspider> issues open back to 2013
<unholycrab> zenspider: bundle install doens't change it. maybe i need to uninstall the ruby 2.0.0 bundle
<shevy> bricker look how many deps it has https://github.com/xmpp4r/xmpp4r/blob/master/xmpp4r.gemspec ... 0!
<zenspider> unholycrab: GEM install bundler
IceyEC has joined #ruby
<unholycrab> sorry thats what i meant
isohexane has quit [Remote host closed the connection]
<zenspider> then it is a pathing issue. start with pontiki's suggestion to `rbenv rehash`
<shevy> when I read idn, I thought libidn was meant http://ftp.gnu.org/gnu/libidn/libidn-1.30.tar.gz
<zenspider> then look at your PATH
<barhum2013> pabs: thanks!
<bricker> zenspider: I'm sure the gemspec was retroactively added on, this library was made in 2005
<baweaver> echo $PATH
IceyEC has quit [Client Quit]
<bricker> shevy: ^
pen has quit [Remote host closed the connection]
<shevy> hehe
<unholycrab> ah. very nice!
<zenspider> bricker: iirc drbrain did some xmpp stuff
<unholycrab> thanks you zenspider and pontiki
<shevy> there were so many awful projects back then
<baweaver> there are always awful projects.
<zenspider> shevy: not MINE. obvs. :P
pen has joined #ruby
<shevy> zenspider well you were active
<shevy> but I mean projects like that one: http://www.erikveen.dds.nl/rubywebdialogs/
<bricker> The worst part is that I'm not even doing anything interesting with it... I need to login, send one dumb message, and then logout, so one of the clients gets a notification pop-up
<shevy> the idea is awesome
FernandoBasso has quit [Quit: May the force be with you.]
<drbrain> I think I tried poked xmpp with a sharp stick once
* baweaver senses a get off my lawn moment coming.
<shevy> but the code is not so awesome :(
<shevy> haha a sharp stick
<zenspider> ooooh. shit. I'm getting acronyms mixed up. I was thinking of that ... ps3 streaming thingy.
<baweaver> PS3? :D
bmurt has joined #ruby
<pabs> i used some ruby xmpp library forever ago, i can't remember the name though
<zenspider> upnp
<baweaver> should buy a PS4 </shameless-plug>
iloverubynoob has joined #ruby
<pabs> let me see if i can dig it up
jgt1 has quit [Ping timeout: 255 seconds]
<zenspider> tenderlove gave me his ps3 when he upgraded... before there were any games for ps4. THE FOOL!
<drbrain> DLNA
icharlie has joined #ruby
<zenspider> um... meh. I highly doubt I'm ever spending $400-$600 (again) for some cheap brainless entertainment. I rarely, if ever, get my money's worth out of it
<pabs> guess it was xmpp4r
<baweaver> zenspider: $399
radgeRayden has joined #ruby
icharlie has quit [Remote host closed the connection]
<zenspider> UPnP used soap4r + builder. all the other gems used UPnP + others
<zenspider> baweaver: I save a buck! what a deal!
pen has quit [Ping timeout: 244 seconds]
<zenspider> diablo was a very very good buy, but even it wouldn't give me a time return worth the console
<shevy> zenspider I tried to find an inactive project of yours
<shevy> 2009 ... found https://rubygems.org/gems/enterprise ...
<zenspider> hahaha
<bricker> sigh... /me installs libidn
<BraddPitt> how much time did you sink into it zenspider ?
<zenspider> (which is to say, I expect ~2 hours of entertainment for every $10-15 I spend)
<shevy> bricker really? it was libidn?
<Aeyrix> lol
<bricker> shevy: yeah
<Aeyrix> i've spend maybe a couple hundred on TF2
<shevy> \o/
<Aeyrix> sunk over 600hrs in so far
<zenspider> I call it "movie money" and its a great metric to see if you're being entertained properly or wasting time/money
iloverubynoob has quit [Ping timeout: 255 seconds]
<Aeyrix> plus another account which i bought tf2 for $20 and sunk a further 500hrs in
<bricker> Aeyrix: me too! but ... 6 years ago :)
<BraddPitt> I use the same metric zenspider
<BraddPitt> I just got an xbox one and Destiny should arrive tonight
<BraddPitt> I'll play a bit of that
<Aeyrix> bricker: I still play it to this day. :D
<zenspider> BraddPitt: I'm not sure... not THAT much
<baweaver> zenspider: Minecraft, kill the curve
<pontiki> i've never been interested in video games
<Aeyrix> Really?
jackjackdripper has quit [Quit: Leaving.]
<pontiki> but it's probably generational
<Aeyrix> Perhaps.
bubbys has quit [Ping timeout: 246 seconds]
<zenspider> baweaver: not for me
<Aeyrix> Video games are the only way I can unwind while still being awake to be honest.
<shevy> pontiki not even 25 years ago?
<Aeyrix> They allow me to temporarily put aside whatever I have to handle IRL
jbw has quit [Ping timeout: 244 seconds]
<Aeyrix> and just focus on getting a team to shoot another tema
<Aeyrix> team *
blackmesa has quit [Ping timeout: 255 seconds]
<zenspider> boy did I derail this channel. :P
<pontiki> no, shevy
* Aeyrix is team captain :^).
<BraddPitt> pontiki mind if I ask how old you are?
<pontiki> i liked a few arcade games
<pontiki> 57
<BraddPitt> oh yeah, could be then
<zenspider> should I be worried that blackmesa just signed off?
<pontiki> i liked tempest
<shevy> pontiki lemmings 1 !
<baweaver> zenspider: but we're not on rails :P
<BraddPitt> Aeyrix what are you playing nowadays?
bronson has joined #ruby
<zenspider> !ot
bubbys has joined #ruby
<pontiki> not after one night of play, shevy, then i was just done with it
<Aeyrix> BraddPitt: TF2, Diablo 3, WoW.
<Aeyrix> Diablo 3 is on standby until the new season.
<BraddPitt> retail WoW?
<Aeyrix> Yeah.
<BraddPitt> ;/
<Aeyrix> *shrugs*
<pontiki> in uni, i played a bit of adventure
<zenspider> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<zenspider> ?ot zenspider
<ruboto> zenspider, this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<Aeyrix> no
<pontiki> my first real program was a lunar lander game
<Aeyrix> >doesn't play video games
<Aeyrix> >writes them
<Aeyrix> nice
<pontiki> are we holding up questions?
<zenspider> pontiki: oooh. I should write that up in my new graphics framework
bongespob has joined #ruby
<zenspider> pontiki: unless you're interested in taking a whack at it?
jbw has joined #ruby
<pontiki> zenspider: lunar lander?
<zenspider> yeah! that'd be fun
<pontiki> my game was written on a tty 33 in basic
<Aeyrix> * Right hand rule: 0 degrees is east, 90 is north, etc.
<pontiki> no graphics at all
<zenspider> it is ostensibly a "simulation framework" ... but that's all games are
<Aeyrix> absolutelyharam.mov
<volk> Tired.
<volk> Aeyrix, is that ISIS porno?
<Aeyrix> heh
jenrzzz has quit [Ping timeout: 250 seconds]
* baweaver readies ops signal
roolo has joined #ruby
<volk> baweaver, you're quite the whiner it would seem.
Ropeney has joined #ruby
<Aeyrix> memes detected
<pontiki> i may have other uses for that, zenspider. these days, visualizing data is more interesting to me than games
<volk> Is this because I asked zenspider to become the next Project-Zero? He has the dedication for research/discovery.
<zenspider> pontiki: I've done a fair amount of both in it.
<pontiki> it'd probably be nice to have something beside gnuplot
bronson has quit [Ping timeout: 260 seconds]
keen________ has quit [Read error: Connection reset by peer]
<bricker> Has Rubyforge been down for a while? http://rubyforge.org/ Or am I just having bad luck?
<zenspider> pontiki: I haven't worked out too much on the mathy graphics side of things yet
<baweaver> fairly sure they killed it a while back
<bricker> :(
<zenspider> my cafe network is too slow to watch that right now
keen________ has joined #ruby
* baweaver contemplates Seattle joke
shadoi has quit [Quit: Leaving.]
<shevy> bricker yeah it died a while ago already
hotpancakes has joined #ruby
<bricker> was there any sort of archive effort?
<baweaver> internet archive probably has it.
<shevy> dunno... the active projects probably survived
<baweaver> most stuff just went to git
nb_bez___ has joined #ruby
<pontiki> zenspider: nice review of a lunar lander program. sweet graphics.
<zenspider> I still need to port rtanque and asteroids over to my graphics lib
roolo has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 245 seconds]
<pontiki> i did like asteroids
<pontiki> but even at that, my interest in playing goes away in about 3 minutes
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<zenspider> its much more fun to code than play :)
<pontiki> that
<pontiki> more interesting puzzles to solve
<pontiki> and there's something to show at the end of the day
<zenspider> I implemented it when we did nand2tetris so my game was running in my language on my compiler on my chips
<zenspider> (simulated)
devoldmx has joined #ruby
<zenspider> it was sooo awesome
<baweaver> zenspider: FF I :D
<baweaver> If you really want a challenge
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> final fantasty? I always found those boring as fuck. had a roomie who played it for months on end.
<zenspider> worst feature for a game like that: cumulative timer
<baweaver> not everyone's cup of tea
<baweaver> Lights out / bomberman are fairly straightforward.
lmoura has joined #ruby
hotpancakes has quit [Ping timeout: 265 seconds]
<zenspider> graphics isn't up to rubygame levels yet... but I hope to get it there w/o all the dead weight
<shevy> rubygame was abandoned :(
<zenspider> it's pretty caught up with gosu tho
RobertBirnie has quit [Ping timeout: 265 seconds]
<baweaver> pong?
RobertBirnie has joined #ruby
<zenspider> I would love more PRs and issues filed to point out where it is lacking
devdazed has quit [Quit: Computer has gone to sleep.]
<zenspider> pong would be totally doable
<shevy> well it's fairly new at least as gem release, I don't think many people know about it yet
RobertBirnie has quit [Client Quit]
<zenspider> yup yup. still in beta technically
<zenspider> needs a couple more revs before I'm willing to cut a 1.0 final
sevenseacat has joined #ruby
devoldmx has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
northfurr has joined #ruby
<zenspider> close tho! there's a beer && code tonight (wherein I drink whisky && code) so maybe even sooner!
<zenspider> ok. I need a big hunk of meat to eat.
neilnorthrop has quit [Remote host closed the connection]
Limix has quit [Quit: Limix]
d10n-work has quit [Quit: Connection closed for inactivity]
noname has quit [Quit: WeeChat 1.0.1]
noname has joined #ruby
iamninja has joined #ruby
baweaver has quit [Remote host closed the connection]
paulcsmith has joined #ruby
josh4 has quit [Quit: WeeChat 1.1.1]
chouhoul_ has joined #ruby
chouhoulis has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
Vile` has quit [Remote host closed the connection]
hmsimha_ has joined #ruby
icarus has quit [Ping timeout: 250 seconds]
iamninja has quit [Ping timeout: 252 seconds]
eminencehc has quit [Remote host closed the connection]
akurilin has joined #ruby
Vile` has joined #ruby
jenrzzz has joined #ruby
northfurr has quit [Quit: northfurr]
techsethi has joined #ruby
charliesome has quit [Client Quit]
jeadr has quit [Remote host closed the connection]
jeadr has joined #ruby
sarkyniin has quit [Ping timeout: 244 seconds]
bayed has quit [Quit: Connection closed for inactivity]
decaff has joined #ruby
dimasg has joined #ruby
mistermocha has joined #ruby
Limix has joined #ruby
northfurr has joined #ruby
lannonbr has joined #ruby
veduardo has joined #ruby
charliesome has joined #ruby
mistermocha has quit [Ping timeout: 244 seconds]
podman has quit [Quit: Connection closed for inactivity]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jbw has quit [Ping timeout: 255 seconds]
bricker has quit [Ping timeout: 240 seconds]
davedev24 has joined #ruby
pietr0 has quit [Quit: pietr0]
atomical has joined #ruby
jbw has joined #ruby
neilnorthrop has joined #ruby
havenwood has joined #ruby
bmurt has quit []
casadei_ has joined #ruby
tkuchiki has joined #ruby
rubie has joined #ruby
mary5030 has joined #ruby
iloverubynoob has joined #ruby
hotpancakes has joined #ruby
slucx has joined #ruby
slucx has left #ruby [#ruby]
blackmesa has joined #ruby
workmad3 has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
iloverubynoob has quit [Ping timeout: 250 seconds]
hydrozen has joined #ruby
rideh has joined #ruby
Azure has quit [Quit: Oops.]
chouhoul_ has quit [Remote host closed the connection]
Azure has joined #ruby
bronson has joined #ruby
eminencehc has joined #ruby
workmad3 has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 244 seconds]
nitenq has joined #ruby
cashnguns has quit [Read error: Connection reset by peer]
techsethi has quit [Quit: techsethi]
<nitenq> Hi I am trying to run this ruby script : https://github.com/sensu/sensu-community-plugins/blob/master/plugins/windows/ram-usage-windows.rb who should work fine. But I have this error : undefined method `length' for nil:NilClass is it because of my ruby version ?
ledestin has quit [Read error: Connection reset by peer]
<bougyman> put a binding.pry on line 47
bronson has quit [Ping timeout: 245 seconds]
AlexAltea has joined #ruby
<bougyman> and see what temp_arr_1 (hate that name) looks like
<Ox0dea> That page indicates that you should be saying "MBytes", not "bytes", no?
<nitenq> Hum I have no idea I didn’t code it, let me try
dede has quit [Quit: Connection closed for inactivity]
renderful has joined #ruby
<nitenq> Ox0dea: doesn’t change anything. I am trying to use binding.pry
ledestin has joined #ruby
jiada has quit [Quit: Connection closed for inactivity]
rubie has quit [Remote host closed the connection]
linuxboytoo has quit [Remote host closed the connection]
devoldmx has joined #ruby
Averna has quit [Ping timeout: 265 seconds]
linuxboytoo has joined #ruby
AlexAltea has quit [Read error: Connection reset by peer]
<Ox0dea> nitenq: You should run that `typeperf` command and ensure it's the second field of the third line that you actually want.
northfurr has quit [Quit: northfurr]
bmurt has joined #ruby
<Ox0dea> Your error indicates that such a value doesn't actually exist.
icarus has joined #ruby
nux443 has joined #ruby
Ludo- has joined #ruby
renderful has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
nolbuk has quit [Ping timeout: 250 seconds]
<nitenq> Ox0dea: that’s very strange I have the exact same error on this one : https://github.com/sensu/sensu-community-plugins/blob/master/plugins/windows/windows-cpu-load-metrics.rb but they have all been tested
tkuchiki has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 240 seconds]
dorei has quit []
bruno- has quit [Ping timeout: 272 seconds]
northfurr has quit [Client Quit]
patrick99e99 has quit [Quit: Page closed]
greenride has quit [Quit: Leaving.]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hahuang61 has joined #ruby
ivanskie has joined #ruby
bruno- has joined #ruby
dorei has joined #ruby
northfurr has joined #ruby
dorei has quit [Client Quit]
tkuchiki has joined #ruby
wheresmyjetpack has quit [Read error: No route to host]
<nitenq> Ox0dea: it gaves me no valid counters
hahuang61 has quit [Client Quit]
techsethi has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
icharlie has joined #ruby
<nitenq> Ox0dea: is it possible that it’s because my windows is not in english ?
bb010g has joined #ruby
<Ox0dea> nitenq: Yeah, I suppose that could be it.
<Ox0dea> When you run that `typeperf` command, do you not see the data in which you're interested?
<nitenq> nop
nux443 has quit [Ping timeout: 260 seconds]
<nitenq> Ox0dea: it always give me “no valid counters"
ybian has quit [Read error: Connection reset by peer]
UtkarshRay has joined #ruby
millerti has quit [Read error: Connection reset by peer]
<shevy> hmm I see this:
<shevy> case
<shevy> when
<shevy> what is when there is no "case xyz"?
hahuang61 has joined #ruby
bmurt has quit []
ybian has joined #ruby
nitenq has left #ruby [#ruby]
towski_ has quit [Remote host closed the connection]
nscheurich has joined #ruby
bongespob has quit [Ping timeout: 260 seconds]
matugm has joined #ruby
matugm has joined #ruby
bricker has joined #ruby
vdamewood has joined #ruby
<Ox0dea> shevy: Some consider it a slightly cleaner way to do if-else chains.
lmoura has quit [Ping timeout: 244 seconds]
<Ox0dea> `case; when a == b; c; when d == e; f; end` == `if a == b; c; elsif d == e; f; end`
dimasg has quit [Quit: leaving]
dimasg has joined #ruby
maq has joined #ruby
<sevenseacat> i got told off for doing that once
<sevenseacat> told it was too much inspired by php (was soon after i switched to ruby)
devbug has joined #ruby
nscheurich has quit [Quit: WeeChat 1.2]
RegulationD has joined #ruby
<shevy> yeah
<shevy> code written by someone else here :(
freerobby has joined #ruby
icharlie has quit [Remote host closed the connection]
amclain has quit [Read error: Connection reset by peer]
amclain has joined #ruby
<bricker> I prefer it aesthetically but I don't think I'd do it a real app
<shevy> hehehe
IceyEC has joined #ruby
lancetw has quit [Ping timeout: 272 seconds]
IceyEC has quit [Client Quit]
RegulationD has quit [Ping timeout: 244 seconds]
lancetw has joined #ruby
mistermocha has joined #ruby
Xiti` is now known as Xiti
linuxboytoo has quit [Read error: Connection reset by peer]
darwingr has joined #ruby
linuxboytoo has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Limix has quit [Quit: Limix]
nolbuk has joined #ruby
tmtwd has joined #ruby
mistermocha has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
uxp has quit [Read error: Connection reset by peer]
uxp has joined #ruby
maq has quit [Quit: maq]
imperator has joined #ruby
bruno- has quit [Ping timeout: 240 seconds]
Soda has quit [Remote host closed the connection]
<imperator> OT question, why is grep -rls giving me two result sets, one like foo/bar/baz and ./foo/bar/baz ?
northfurr has quit [Read error: Connection reset by peer]
roolo has joined #ruby
rideh has quit [Quit: zap]
<pontiki> what are you giving for the file list?
mistermocha has quit [Ping timeout: 256 seconds]
rideh has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<imperator> pontiki, *
NeverDie has joined #ruby
<pontiki> hmm. idk
<pontiki> i'm not seeing it here on OS/X
<imperator> oh, i think i see what i did
iloverubynoob has joined #ruby
<imperator> nm
<Ox0dea> What'd ya do?
<imperator> i put a '.' at the end
<pontiki> i only get the ./... type when i use .
rideh has quit [Client Quit]
<pontiki> ah
tkuchiki has joined #ruby
roolo has quit [Ping timeout: 252 seconds]
_blizzy_ has joined #ruby
rideh has joined #ruby
milesforrest has joined #ruby
blackmesa has joined #ruby
iloverubynoob has quit [Ping timeout: 240 seconds]
jbw has quit [Ping timeout: 240 seconds]
barhum2013 has quit [Quit: barhum2013]
barhum2013 has joined #ruby
jbw has joined #ruby
ReK2 has quit [Quit: Konversation terminated!]
_blizzy_ has quit [Read error: Connection reset by peer]
binaryplease has quit [Ping timeout: 260 seconds]
blackmesa has quit [Ping timeout: 246 seconds]
icharlie has joined #ruby
_blizzy_ has joined #ruby
lkba_ has joined #ruby
bap1313 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CloCkWeRX has quit [Ping timeout: 246 seconds]
barhum2013 has quit [Quit: barhum2013]
shmilan has joined #ruby
oo_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
charliesome has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
chouhoulis has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
UtkarshRay has quit [Ping timeout: 244 seconds]
bronson has joined #ruby
chohe has joined #ruby
rideh has quit [Quit: peace]
nahtnam has joined #ruby
darkf has joined #ruby
choke has joined #ruby
chohe has quit [Client Quit]
dimasg has quit [Ping timeout: 252 seconds]
baweaver has joined #ruby
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has quit [Ping timeout: 260 seconds]
choke has quit [Client Quit]
iamninja has joined #ruby
oo_ has joined #ruby
choke has joined #ruby
bongespob has joined #ruby
iamninja has quit [Ping timeout: 246 seconds]
silkfox has joined #ruby
arooni-mobile has quit [Ping timeout: 246 seconds]
ChasedSpade has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
akash89 has quit []
nb_bez___ has quit [Quit: Connection closed for inactivity]
michael_mbp has quit [Excess Flood]
bongespob has quit [Ping timeout: 240 seconds]
icharlie has quit [Remote host closed the connection]
choke has quit [Client Quit]
<ivanskie> anyone know if ebook version is included when buying paperback "The Ruby way" from amazon?
ChasedSpade has joined #ruby
silkfox has quit [Ping timeout: 240 seconds]
paulcsmith has joined #ruby
banister has quit [Ping timeout: 265 seconds]
<sevenseacat> very unlikely, unless the publisher offers it with physical books like manning does.
michael_mbp has joined #ruby
paulcsmith has quit [Client Quit]
sbnrd has quit [Quit: Connection closed for inactivity]
msnyon has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
einarj has joined #ruby
bongespob has joined #ruby
braincrash has quit [Quit: bye bye]
einarj has quit [Ping timeout: 272 seconds]
bongespob has quit [Ping timeout: 255 seconds]
<cscheib> ivanskie: it's possible they offer a discounted ebook "upgrade", but probably not, as it's addison wesley
ChasedSpade has quit [Remote host closed the connection]
<ivanskie> hm
<Ox0dea> ivanskie: Why "The Ruby Way"?
<ivanskie> well i have the elequant rubyist..
workmad3 has joined #ruby
<ivanskie> but i think I'd like to have this cook book almost like book
<ivanskie> with how to's to different things in ruby..
braincrash has joined #ruby
<ivanskie> why, would you recommend a different book instead?
eminencehc has joined #ruby
tmtwd has quit [Read error: Connection reset by peer]
ChasedSpade has joined #ruby
<Ox0dea> Eloquent Ruby and TWGR are both pretty great, but I was just curious.
<ivanskie> wait wtf am i talking about
<cscheib> the well grounded rubyist seems quite good, although a bit out of order... dives a bit too deep into how everything's an object before it teaches you flow control
<ivanskie> i dont have Eloquent Ruby.. i have TWGR
<ivanskie> i havent read it yet. I'm just a few dozen pages in or less.
<cscheib> TWGR is manning
<cscheib> so free ebook
<ivanskie> yap
<cscheib> there should be a piece of paper in the front
<ivanskie> it was nice. too bad had to wait for book to arrive before getting the pdf
<cscheib> if you purchased on their site, you didn't have to wait
<sevenseacat> well you didnt buy the ebook/pbook combo so :P
<ivanskie> didnt want to buy from their site.
<sevenseacat> then you have to wait
hphan has joined #ruby
<ivanskie> considering how many issues radar had with them..
<ivanskie> not that buying from amazon didn't end up paying them
<sevenseacat> whats that got to do with anything?
<cscheib> what issues do you have with manning?
<sevenseacat> you think you're punishing them by not buying from them directly or something?
tmtwd has joined #ruby
hphan has quit [Client Quit]
<Ox0dea> cscheib: The Patriots should've had a perfect season.
RobertBirnie has joined #ruby
<ivanskie> lol.. no
<cscheib> heh
workmad3 has quit [Ping timeout: 256 seconds]
tmtwd has quit [Client Quit]
mecchio has joined #ruby
<ivanskie> actually i just don't like buying from places where shipping is kinda iffy. yah all use same couriers but. still
<zenspider> rawr! meat was had. moving on to booze
<cscheib> I just bought TWGR from them a couple weeks ago, and the delivery was like 2 days later
jtdoncas has quit [Ping timeout: 255 seconds]
<zenspider> who wants to help me write simulations and/or games ?
<cscheib> but it didn't really matter, since I got the ebook copy immediately...
devoldmx has joined #ruby
<ivanskie> I'm like deep in BC, canada. so Amazon's prime shipping from Richmond (lower mainland).. is pretty much overnight (almost)
<Coraline> zenspider: tempting
<cscheib> (which is the point of buying from their site in the first place)
<Ox0dea> :: > synchronizing Ballmer peaks...
<Coraline> But I'm due for bed fairly soon.
<pontiki> zenspider: sounds like a fun night: meat, booze, graphical simulations hacking :D
<zenspider> ivanskie: you're practically in seattle! you should come by on a tuesday
<ivanskie> whats on tuesday?
mistermocha has joined #ruby
Limix has joined #ruby
<pontiki> Ox0dea: ROFL!!
<zenspider> Coraline: bed schmed ... grab some whisky and hack
veduardo has quit [Ping timeout: 250 seconds]
<Coraline> :)
<sevenseacat> i havent bought any pbooks from manning, but plenty of ebooks.
<zenspider> scotch whisky in my case. you're welcome to some
<Coraline> Driving out to Madison Ruby tomorrow!
<sevenseacat> though now i get some for free, being a manning writer.
<zenspider> ivanskie: seattle.rb weekly meetings!
<Coraline> zenspider: what's your poison? I like Lagavulin quite a bit myself.
<ivanskie> zenspider i'm close to the oroville border than vancouver one..
<zenspider> Coraline: currently drinking balvanie 14y Caribbean cask
<Coraline> I've never tried that.
<ivanskie> oh damn. we don't have meetups here :( they have in vancouver and stuff.. but out here in okanagan.. bah. its quiet.
<ivanskie> actually there's a group of people in Vernon, but that's two hour drive one way.
<Coraline> There's a great place in Portland if you ever make it out there, called the Whisky Library. Floor-to-ceiling shelves of bottles, brass wheeled ladders for the servers to scurry up and down. Great selection.
<zenspider> ivanskie: we had a semiregular from chiliwack... can't be that much worse :)
<sevenseacat> actually i have a copy of TWGR on my shelf. i must have at some point.
<zenspider> chilliwack
<zenspider> tho, to be fair... THEY have a meeting now, so you should just go there
<ivanskie> how long would it take from Oroville washington?
<ivanskie> why am i asking.. holdon gonna google
jph98 has joined #ruby
<zenspider> .... what's it called... frasier valley ruby brigade
iloverubynoob has joined #ruby
<ivanskie> zenspider to get to you, its a cool 5.5 hour drive on way.
<ivanskie> one*
<zenspider> seems worth it to me ;)
<pontiki> or start one where you are
<pontiki> and/or
<ivanskie> I moved up here a couple years ago from Vancouver (BC).. of course I went serious into ruby./rails only end of last year..
bronson has joined #ruby
<zenspider> frasier valley only looks about 2 hours away
<ivanskie> pontiki, i think i'll only be me.
<ivanskie> it*
<pontiki> teach others
mistermocha has quit [Ping timeout: 264 seconds]
<pontiki> become a power elite group of rubyists
<ivanskie> I googled, there were a couple kids a few years back who were doing rails programming here.. all that remains is their first project a site for career postings..
<ivanskie> omg
<pontiki> start the silicon rain forest
<ivanskie> yeah noob in this irc.. become a power elite rubyist in the small town here lolz
<pontiki> see one, do one, TEACH ONE
<pontiki> it is the only way
<sevenseacat> one day I'll do that. start a meetup group, and be all like 'im going to sit in this cafe working on this date, anyone is welcome to come join me'. see who does.
CloCkWeRX has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ivanskie> my ultimate wishful thinking was that my wife would be even slightly interested in computers, nevermind programming...
<pontiki> you might be surprised
<ivanskie> ha.
<zenspider> ivanskie: you learn ruby one line at a time
<pontiki> couple months ago, our monthly rails hack night was cancelled; i sent out a note "i'll be here" and a bunch of people showed up
<zenspider> sevenseacat: that's exactly what the frasier valley group did
<zenspider> as long as you meet regularly, they come
<sevenseacat> nice :D
<zenspider> pontiki: where are you?
<ivanskie> my wife rants about vbacs, womens rights, well equal rights, and anything else she can rant about (short + red head + half irish half german)
jph98 has quit [Ping timeout: 264 seconds]
iloverubynoob has quit [Ping timeout: 255 seconds]
<pontiki> presently in MSP
<pontiki> missing my beloved SF terribly, tho
<sevenseacat> now I just have to drum up the enthusiasm to have a regular working time at some place other than my house
mecchio has quit []
<pontiki> funny thing is that there's a bigger ruby pile around here than out there
<zenspider> MSP? michigan state penitentiary?
<ivanskie> zenspider i guess i'll have to try.
<ivanskie> lol
<pontiki> minneapolis - st. paul
bronson has quit [Ping timeout: 240 seconds]
<zenspider> I like my version better.
<pontiki> i might, too
<zenspider> I'd love it if they had a ruby group
<zenspider> haha
<zenspider> I haven't been to st paul, so I can't judge
<ivanskie> there should be a google hangout (or what have you tech) ruby meetup..
<pontiki> well, there are a lot of lovely people here; it's not all bad.
<ivanskie> i mean the only difference is drinking a drink, sitting in a nice environment thats not home, and enjoying a physical company lol
<pontiki> i hate winter
<ivanskie> dont go there yet.
<pontiki> and summers here can be awful
<ivanskie> i dont want winter yet
<pontiki> i p.much only like the end of sept/beginning of oct
<ivanskie> "say no to winter" sign
<sevenseacat> winter nearly finished here, yay
keyvan has joined #ruby
<sevenseacat> soon we'll back to our regularly scheduled 35C days from like oct-april
<ivanskie> sevenseacat you guys even get snow there, ever?
ramfjord has quit [Ping timeout: 244 seconds]
<pontiki> everyone here is already anticipating pumpkin everything, and looking forward to cooler weather
<ivanskie> like in your freezer maybe?
<pontiki> the problem with this place is it is too damn *wet*
<sevenseacat> ivanskie: not in my state.
<sevenseacat> (and its a very big state.)
<pontiki> and not like PNW wet, either
<pontiki> this is *icky* wet
<zenspider> "PNW... wet, but not *icky* wet"
<zenspider> sevenseacat: where are you?
<ivanskie> is there snow anywhere in australia at all? I want to say no, but i don't want to be ignorant at the same time..
<pontiki> crivens, i love walking through a summer rain storm in PDX or Seattle
<sevenseacat> zenspider: perth, australia
neilnorthrop has quit [Remote host closed the connection]
<zenspider> we don't have rain "storms"
<zenspider> hardly ever have anything the east coast calls "rain"
maletor has quit [Quit: Computer has gone to sleep.]
<pontiki> yeah
<zenspider> drizzle... sprinkle... mist... but rain? psh
riskish has joined #ruby
No1Phan has joined #ruby
<zenspider> I'm getting toasty, but not writing code yet
<pontiki> i do love the massive thunder and lightening storms we get here rolling in off the prairies
<pontiki> but i'm so in love with low humidity climates
maq has joined #ruby
pen has joined #ruby
<Radar> cscheib: re: issues with Manning: http://ryanbigg.com/2015/08/my-self-publishing-success-story/
<ivanskie> just found this: but apparently it never did anything http://www.meetup.com/HackerNestYLW/
<ivanskie> hour away from me
pen has quit [Remote host closed the connection]
pen has joined #ruby
<ivanskie> but too mix mached
<pontiki> huh
<ivanskie> not about ruby
<pontiki> i wouldn't call any Silicon Valley tech crowd very supportive
<pontiki> is there a different silicon valley?
<sevenseacat> Radar: you can update part of that when r4ia finally goes to press
_blizzy_ has quit [Ping timeout: 260 seconds]
jacaballero has joined #ruby
<Radar> sevenseacat: which part?
<pontiki> fricken LA had a more supportive tech community
<sevenseacat> which was supposed to be earlier this week.
<sevenseacat> " It's currently going through proofing through Manning's processes. And by "currently" I mean it's been in there since April. 3 months to proof and print a book seems a bit long in my opinion, but what can you do about it?"
<Radar> oh right.
<ivanskie> i have an awesome meetup name if i were to start one here.. soruby
<ivanskie> South Okanagan Ruby
jhack has quit [Ping timeout: 260 seconds]
<pontiki> "That's So Ruby!"
<pontiki> lol
framling has joined #ruby
<sevenseacat> the leanpub integration with github and dropbox is pretty sweet.
<Radar> indeed
No1Phan has quit []
<sevenseacat> it'd be even more freaking awesome if I could like just touch a build.txt or something and then it auto-build a new version of the book
<ivanskie> stupid facebook, it says "Please choose friends to add to your group" when trying to create a new group. i dont have any local friends who know any ruby at all, or care to know it...
havenwood has joined #ruby
<pontiki> can't you skip that?
<ivanskie> nope
<pontiki> man, failbook
dimasg has joined #ruby
<ivanskie> yep
casadei_ has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<zenspider> Coraline: I _think_ one of our speaker dinners was there. I don't remember exactly... I got a bit toasted
jenrzzz has quit [Ping timeout: 272 seconds]
j_mcnally has joined #ruby
hmsimha_ has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
<zenspider> mmmm... I just took some canadian pain killers (w/ opiates--like god intended) with my booze... I suspect I weigh enough that it doesn't matter, but who knows?
msnyon has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Coraline> zenspider: if you die I get your Scotch
dimasg has quit [Ping timeout: 240 seconds]
<zenspider> kk
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
<zenspider> theres about 6 hospitals w/in a mile. I think I'm good :)
<zenspider> mmm... 2 miles
<zenspider> man... rubysdl is really dragging me down
<zenspider> but FUCK I do NOT want to do a rewrite
phutchins has quit [Ping timeout: 252 seconds]
hydrozen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
oo_ has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 260 seconds]
Limix has quit [Quit: Limix]
davedev24 has quit []
gix has quit [Ping timeout: 272 seconds]
<imperator> Coraline, where's it being held?
Akkad has quit [Excess Flood]
Limix has joined #ruby
Limix has quit [Client Quit]
silkfox has joined #ruby
JamesDH has joined #ruby
hmsimha_ has joined #ruby
gix has joined #ruby
imperator has quit [Quit: Leaving]
vdamewood has quit [Quit: Life beckons.]
techsethi has quit [Quit: techsethi]
Akkad has joined #ruby
mistermocha has joined #ruby
oo_ has joined #ruby
silkfox has quit [Ping timeout: 246 seconds]
<baweaver> zenspider: Scotch of choice?
blue_deref has quit [Quit: bbn]
gokulnath has joined #ruby
hmsimha_ has quit [Ping timeout: 265 seconds]
jtdoncas has joined #ruby
Oka has quit []
<zenspider> baweaver: mmm... dunno if I'm settled on one. I like the balvanie family. ummmm... oban... uh. other stuff. I'm a bit drunk
<zenspider> best thing about my diet... I'm a super CHEAP date
vdamewood has joined #ruby
<baweaver> Balvanie 14 Caribbean for me personally.
arooni-mobile has joined #ruby
eminencehc has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
roolo has joined #ruby
bongespob has joined #ruby
bap1313 has quit [Ping timeout: 256 seconds]
<zenspider> that's what I'm currently drinking
<zenspider> smooooth
<zenspider> OK. what elseshould I implement?
<zenspider> I've got a half done version of karel the robot
<zenspider> and a half done version of logo
<zenspider> including repl!
<zenspider> but ... I dunno. I think I need more mathy/sciencey stuff
jeanlinux has joined #ruby
icharlie has joined #ruby
roolo has quit [Ping timeout: 265 seconds]
bongespob has quit [Ping timeout: 252 seconds]
<zenspider> anyone want to convert my rubysdl_setup.sh script to work on various linuxum?
<zenspider> prolly need a windoze version too... but I just can't muster a fuck
ahmetkapikiran has joined #ruby
ahmetkapikiran has quit [Client Quit]
nanoz has joined #ruby
hmsimha_ has joined #ruby
jtdoncas has quit [Ping timeout: 245 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ramfjord has joined #ruby
maletor has joined #ruby
choke has joined #ruby
snockerton has joined #ruby
oo_ has quit [Remote host closed the connection]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdothum has quit [Ping timeout: 246 seconds]
choke has quit [Client Quit]
iloverubynoob has joined #ruby
charliesome has joined #ruby
bongespob has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
bongespob has quit [Client Quit]
jeanlinux has quit [Remote host closed the connection]
bronson has joined #ruby
jeanlinux has joined #ruby
JamesDH has quit [Quit: Textual IRC Client: www.textualapp.com]
iloverubynoob has quit [Ping timeout: 272 seconds]
nolbuk has quit [Ping timeout: 265 seconds]
bronson has quit [Ping timeout: 245 seconds]
<zenspider> you guys all suck
happydad has joined #ruby
<zenspider> joel!
<happydad> Hello
oo_ has joined #ruby
<sevenseacat> lol
Musashi007 has joined #ruby
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> what kind of nick is that
oo_ has quit [Remote host closed the connection]
hydrozen has joined #ruby
<zenspider> opiates + alcohol + keto == fucking awesome
enligh7 has quit [Ping timeout: 240 seconds]
<saddad> happydad: lol
oo_ has joined #ruby
amystephen has quit [Quit: amystephen]
<Ox0dea> > mfw no mandelbrot demo
<zenspider> oooh. do that!
<zenspider> there's even mouse events so you could easily zoom in
<Ox0dea> Scroll wheel handling?
<zenspider> mmmm... maybe?
<zenspider> that's prolly just considered a button
devoldmx has quit [Remote host closed the connection]
<zenspider> there's SDL::Event::MouseButtonDown#button
<zenspider> I need to abstract everything starting with SDL away
dimasg has joined #ruby
kies has joined #ruby
michael_mbp has quit [Excess Flood]
dimasg has quit [Ping timeout: 264 seconds]
arooni-mobile has quit [Ping timeout: 246 seconds]
michael_mbp has joined #ruby
lxsameer has joined #ruby
iamninja has joined #ruby
bricker has quit [Ping timeout: 264 seconds]
qiukun has joined #ruby
jeanlinux has quit [Remote host closed the connection]
saddad has quit [Ping timeout: 250 seconds]
<zenspider> and the bozo bit is flipped...
gokulnath has quit [Quit: Leaving]
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
<zenspider> Ox0dea: I would really like a PR w/ mandlebrot. If that type of math is your bag, are you willing to do it?
iamninja has quit [Ping timeout: 255 seconds]
<zenspider> it _should_ be pretty clean/easy in this system. You can set pixels directly and I think I have an example of that somewhere...
<Ox0dea> zenspider: The math isn't particularly tricky, but I'd have to dig to make it purdy.
<zenspider> examples/vants.rb reads and writes pixels directly, tho it should probably be more abstracted
<zenspider> purdy is less my concern at this point, or... at least, I can clean it up later when it becomes a priority
<zenspider> more is to test its capabilities and prove that it can, or find where it can't and patch it up
<zenspider> tho, examples/math.rb, tho basic, should prove that you can do fairly arbitrary math visualization
<zenspider> it does need more elegant scaling
AccordLTN has quit []
astrobun_ has joined #ruby
prateekp has joined #ruby
pawnbox has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> I didn't even realize I should've added dynamic scaling to my Langton's ant simulation until just now.
<Ox0dea> Will port to graphics.
dopamean_ has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
RobertBirnie has joined #ruby
<zenspider> I dunno if vants.rb is _technically_ langston's ants or not
<zenspider> close at the very least
<zenspider> I stole the algorithm from netlogo, and probably didn't trace the attributions far enough
j_mcnally has joined #ruby
<Ox0dea> Langton's only got the one ant.
<zenspider> there's a LOT of neat shit in netlogo
Musashi007 has quit [Quit: Musashi007]
<zenspider> eh. the fact that I did multiple ants is kinda tangental
freerobby has quit [Quit: Leaving.]
<zenspider> it'd be neat to do a zoomed in version like the wikipedia demo
<Ox0dea> Langton's ant isn't random, though.
hotpancakes has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
<zenspider> oooh. or turmites
workmad3 has quit [Ping timeout: 256 seconds]
<zenspider> ok... scotch && code is ending... need to pack up
Jackneill has joined #ruby
hahuang61 has quit [Ping timeout: 252 seconds]
freerobby has joined #ruby
AccordLTN has joined #ruby
pawnbox has joined #ruby
nanoz] has joined #ruby
jeanlinux has joined #ruby
nanoz has quit [Ping timeout: 246 seconds]
Rinzlit has joined #ruby
pgatt has joined #ruby
charliesome has joined #ruby
User458764 has joined #ruby
techsethi has joined #ruby
riotjones has joined #ruby
Musashi007 has joined #ruby
maq has quit [Quit: maq]
riotjones has quit [Ping timeout: 255 seconds]
iloverubynoob has joined #ruby
araujo has quit [Quit: Leaving]
dling has joined #ruby
AlexRussia_ has joined #ruby
RobertBirnie has quit [Ping timeout: 255 seconds]
jud has joined #ruby
RobertBirnie has joined #ruby
araujo has joined #ruby
eminencehc has joined #ruby
rakm has joined #ruby
j_mcnally has quit [Ping timeout: 260 seconds]
iloverubynoob has quit [Ping timeout: 272 seconds]
j_mcnally has joined #ruby
qiukun has quit [Quit: qiukun]
bluOxigen has joined #ruby
freerobby has quit [Quit: Leaving.]
snockerton has quit [Quit: Leaving.]
riskish has quit [Quit: Textual IRC Client: www.textualapp.com]
iateadonut has joined #ruby
nisstyre has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
blueOxigen has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
<ivanskie> so with that suggestion to start a ruby meetup around town... and coming up with name.. looks like I went a bit crazy with photoshop... http://imgur.com/I2L9pO4
Musashi007 has quit [Quit: Musashi007]
<ivanskie> all that for a very likely possibility that no one else in two will ever show up
<ivanskie> in town*
ferhaty has joined #ruby
Musashi007 has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
r0x0rZ has joined #ruby
jeanlinux has quit [Ping timeout: 252 seconds]
tagrudev has joined #ruby
techsethi has quit [Ping timeout: 244 seconds]
tommnk has joined #ruby
kity has joined #ruby
tommnk has left #ruby [#ruby]
eshy has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<kity> How to get output with : seperated in ruby? eg: dev:vet:tech then it should give output as dev vet tech
<sevenseacat> String#split will do what you want
toretore has quit [Quit: This computer has gone to sleep]
<kity> sevenseacat:thanks ...Suppose I want dev:vet:tech then it should give output as dev:vet:tech
<sevenseacat> errr... huh?
<kity> @sevenseacat:thanks ...Suppose I have dev:vet:tech then it should give output as it is dev:vet:tech
<sevenseacat> so whats the difference?
riotjones has joined #ruby
aganov has joined #ruby
<kity> @sevenseacat I want output as it is dev:vet:tech what should be code to print it as it is without colon seperated?
crazydiamond has joined #ruby
<volk> zenspider: How do you code with scotch? You probably wake up feeling like death.
<volk> Disgusting man.
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
icharlie has quit [Remote host closed the connection]
<sevenseacat> volk: sorry?
<volk> sevenseacat, not you.
<sevenseacat> volk: doesn't mean you can just go insulting people.
qiukun has joined #ruby
jeadr has quit [Remote host closed the connection]
djbkd has quit [Quit: My people need me...]
<volk> :\
tkuchiki_ has joined #ruby
rubie has joined #ruby
ahmetkapikiran has joined #ruby
roolo has joined #ruby
astrobun_ has quit [Remote host closed the connection]
jeadre has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
Pupp3tm4st3r has joined #ruby
rhg135 has quit [Ping timeout: 255 seconds]
* baweaver codes with Scotch
* baweaver is coding with scotch right now
astrobun_ has joined #ruby
tomnke has joined #ruby
silkfox has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
roolo has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
chinmay_dd has joined #ruby
DifferentLambda has joined #ruby
tomnke has left #ruby [#ruby]
dhjondoh has joined #ruby
ta has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 256 seconds]
mabjpj has joined #ruby
djbkd has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mabjpj has left #ruby [#ruby]
cgfbr has joined #ruby
crazydiamond has quit [Ping timeout: 245 seconds]
towski_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<certainty> moin
<certainty> sevenseacat: o/
<sevenseacat> hallo
cornerma1 has joined #ruby
djbkd has quit []
Musashi007 has quit [Quit: Musashi007]
DifferentLambda has quit [Ping timeout: 255 seconds]
JoshGlzBrk has joined #ruby
astrobun_ has joined #ruby
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
chinmay_dd has quit [Quit: See ya!]
eminencehc has quit [Remote host closed the connection]
Pupp3tm4st3r has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 246 seconds]
Pupp3tm4st3r has joined #ruby
skade has joined #ruby
Musashi007 has joined #ruby
cgfbr has quit [Remote host closed the connection]
DifferentLambda has joined #ruby
cgfbee has joined #ruby
jgt1 has joined #ruby
cgfbee has quit [Remote host closed the connection]
yardenbar has joined #ruby
AlexRussia_ has quit [Ping timeout: 252 seconds]
darkf_ has joined #ruby
eGGsha has joined #ruby
DifferentLambda is now known as rhg135
towski_ has quit [Remote host closed the connection]
diegoaguilar has quit [Quit: Leaving]
hs366 has joined #ruby
hs366 has quit [Max SendQ exceeded]
skade has quit [Read error: Connection reset by peer]
bronson has joined #ruby
oo_ has quit [Remote host closed the connection]
skade has joined #ruby
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
darkf has quit [Ping timeout: 244 seconds]
amystephen has joined #ruby
oo_ has joined #ruby
solars has quit [Ping timeout: 265 seconds]
Aderium has joined #ruby
roolo has joined #ruby
oo_ has quit [Remote host closed the connection]
howdoi has joined #ruby
bronson has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
amystephen has quit [Ping timeout: 246 seconds]
Pisuke has quit [Ping timeout: 240 seconds]
rubie has quit [Remote host closed the connection]
ahmetkapikiran has quit [Quit: ahmetkapikiran]
episage has joined #ruby
michael_mbp has quit [Excess Flood]
last_staff has joined #ruby
arup_r has joined #ruby
<atmosx> hello
michael_mbp has joined #ruby
cgfbee has joined #ruby
flegercovateam has joined #ruby
silkfox has joined #ruby
pawnbox has quit [Remote host closed the connection]
Macaveli has joined #ruby
episage has quit [Remote host closed the connection]
darkf_ is now known as darkf
flegercovateam has left #ruby [#ruby]
Macaveli has quit [Client Quit]
flegercovateam has joined #ruby
oo_ has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 250 seconds]
choke has joined #ruby
decaff has quit [Remote host closed the connection]
kity has quit [Ping timeout: 246 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
tkuchiki_ has quit [Remote host closed the connection]
choke has quit [Client Quit]
AlexAltea has joined #ruby
<SebastianThorn> atmosx: hi
pawnbox has joined #ruby
workmad3 has joined #ruby
<ICantCook> Hello all. I need to serve a json string like this: http://paste.ofcode.org/SRVec8833zfP5N4KkTFWXR which I'm generating using ruby. Can anyone suggest a web server to host this on port 80?
flegercovateam has quit [Ping timeout: 252 seconds]
choke has joined #ruby
amclain has quit [Quit: Leaving]
iamninja has joined #ruby
Macaveli has joined #ruby
stan_ has joined #ruby
Iskarlar has joined #ruby
ahmetkapikiran has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<SebastianThorn> ICantCook: sinatra
<ICantCook> SebastianThorn: Thanks :)
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 246 seconds]
workmad3 has quit [Ping timeout: 264 seconds]
Timba-as has joined #ruby
<ICantCook> Perfect, taht solved it
<ICantCook> that*
iamninja has quit [Ping timeout: 244 seconds]
<SebastianThorn> ICantCook: no problem :)
tkuchiki has joined #ruby
JoshGlzBrk has joined #ruby
shinnya has quit [Ping timeout: 245 seconds]
ta has joined #ruby
<Aeyrix> University tbh
<atmosx> I want to issue a command into every directory of this tree: /media/es/data/doublemaplogs/nodes/0/indices/#{d}/#{s}/index/ where variable {d} is every directory there and {s} is dirs 0/ 1/ 2/ 3/ 4/
<atmosx> is there any easy way of achieving this, because I'm messing with Dir.ch and Dir.pwd and still not working properly.
pawnbox has joined #ruby
GeissT has quit [Quit: Bye!]
nanoz] has quit [Quit: <3]
JoshGlzBrk has quit [Ping timeout: 245 seconds]
juanpaucar has joined #ruby
greenride has joined #ruby
baweaver has quit [Remote host closed the connection]
renanoronfle has quit [Ping timeout: 250 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<go|dfish> atmosx: Dir.glob('/media/es/data/doublemaplogs/nodes/0/indices/*/[0-4]/index/')
araujo_ has joined #ruby
araujo has quit [Ping timeout: 240 seconds]
jgt1 has quit [Ping timeout: 252 seconds]
araujo_ has quit [Max SendQ exceeded]
<atmosx> go|dfish: this will list the files... right?
prateekp has quit [Ping timeout: 246 seconds]
renanoronfle has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
juanpauc_ has joined #ruby
sinkensabe has joined #ruby
<atmosx> I want to enter and execute a command, or at least make a list with all the full paths in order to be able to execute the cmd.
araujo_ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<go|dfish> atmosx: it will give you the paths to the directories you mentioned
iloverubynoob has joined #ruby
oo_ has joined #ruby
juanpaucar has quit [Ping timeout: 245 seconds]
chouhoulis has quit [Remote host closed the connection]
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Quit: Leaving.]
CloCkWeRX has joined #ruby
<atmosx> go|dfish: wow, that was about to take me 20 lines of code :-P
blackmesa has joined #ruby
CloCkWeRX has quit [Read error: Connection reset by peer]
juanpaucar has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
juanpaucar has joined #ruby
Pupp3tm4st3r has joined #ruby
ICantCook has quit [Quit: Leaving]
pawnbox has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greenride has quit [Quit: Leaving.]
juanpaucar has quit [Read error: Connection reset by peer]
diegoviola has quit [Quit: WeeChat 1.2]
juanpaucar has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
Meow-J has joined #ruby
Pupp3tm4st3r has joined #ruby
opensource_ninja has quit [Quit: opensource_ninja]
ahmetkapikiran has quit [Read error: Connection reset by peer]
jeadre has quit [Remote host closed the connection]
juanpauc_ has joined #ruby
blackmesa has quit [Ping timeout: 256 seconds]
oo_ has quit [Read error: Connection reset by peer]
ndrei has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
pawnbox has joined #ruby
jeadre has joined #ruby
duncannz has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
skade has quit [Ping timeout: 256 seconds]
xhosae has joined #ruby
iloverubynoob has quit [Remote host closed the connection]
jph98 has joined #ruby
skade has joined #ruby
jph98 has left #ruby [#ruby]
krz has joined #ruby
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
iloverubynoob has joined #ruby
iloverubynoob has quit [Remote host closed the connection]
CloCkWeRX has quit [Read error: Connection reset by peer]
CloCkWeRX has joined #ruby
SenpaiSilver has quit [Quit: Leaving]
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
CloCkWeRX has quit [Client Quit]
devoldmx has joined #ruby
CloCkWeRX has joined #ruby
blackmesa has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
juanpaucar has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
juanpauc_ has quit [Read error: Connection reset by peer]
jimms has joined #ruby
jgt1 has joined #ruby
Cust0sLim3n has quit [Ping timeout: 255 seconds]
juanpauc_ has joined #ruby
happydad has quit [Ping timeout: 245 seconds]
devoldmx has quit [Ping timeout: 246 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has quit [Remote host closed the connection]
radgeRayden has quit [Ping timeout: 265 seconds]
vdamewood has quit [Quit: Life beckons.]
juanpau__ has joined #ruby
juanpaucar has quit [Ping timeout: 256 seconds]
mutuma has joined #ruby
jgt1 has quit [Ping timeout: 240 seconds]
nanoz has joined #ruby
juanpauc_ has quit [Ping timeout: 245 seconds]
rdark has joined #ruby
juanpau__ has quit [Ping timeout: 252 seconds]
marr has joined #ruby
<zenspider> volk: keep your judgements to yourself. you're disgusting.
<sevenseacat> zenspider: thats one all, and enough :)
pawnbox has quit [Remote host closed the connection]
<zenspider> :P
astrobun_ has quit [Remote host closed the connection]
Iskarlar has joined #ruby
<zenspider> atmosx: `ri Dir.glob` it can do lots of neato things
<zenspider> I prefer Dir[] myself...
<zenspider> couple that with .each or .map and you're done
<apeiros> I like Dir.glob when I need a block
<apeiros> since Dir[] can't take a block directly itself
<zenspider> huh. I always thought they were aliases of each other...
<apeiros> they are
d0lph1n98 has joined #ruby
<zenspider> I still think I prefer each... but I'll think about it
<apeiros> but [] syntax can't take a block
<zenspider> ah
Cust0sLim3n has joined #ruby
<zenspider> they have different doco. apparently [] implies 0 flags
<zenspider> tho I think I've used flags exactly once
<apeiros> oh, right
Motoservo has joined #ruby
<zenspider> prolly for DOTMATCH
<zenspider> also [] can take an array??? wtf? who adds this stuff?
silkfox has joined #ruby
<yorickpeterse> morning children
<zenspider> who are you calling children? I'm older than you
<zenspider> ENOYOU
<yorickpeterse> deep down in our hearts we're all 12
oo_ has quit [Remote host closed the connection]
iamninja has joined #ruby
juanpaucar has joined #ruby
livathinos has joined #ruby
_ht has joined #ruby
<sevenseacat> I dunno, I'm starting to get to the point where I'm older than I think I should be, so
oo_ has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
jgt1 has joined #ruby
<zenspider> that's rough... how are your knees?
<adaedra> Hello
<sevenseacat> absolutely stuffed.
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
pawnbox has joined #ruby
JimmyNeutron has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
silkfox has quit [Ping timeout: 246 seconds]
skade has quit [Ping timeout: 245 seconds]
Motoservo has quit [Read error: Connection reset by peer]
iloverubynoob has joined #ruby
tkuchiki has joined #ruby
oo_ has quit [Remote host closed the connection]
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
juanpauc_ has quit [Read error: Connection reset by peer]
jeanlinux has joined #ruby
<zenspider> sevenseacat: fix the knees... the rest will follow
pawnbox has joined #ruby
juanpaucar has joined #ruby
eGGsha has joined #ruby
_Cronon_ has joined #ruby
tkuchiki has quit [Ping timeout: 246 seconds]
<zenspider> !ban juanpaucar !T 1h please fix your connection
juanpaucar was banned on #ruby by ChanServ [juanpaucar!*@*]
juanpaucar was kicked from #ruby by ChanServ [Banned: please fix your connection]
ohaibbq has joined #ruby
Motoservo has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
juanpauc_ was banned on #ruby by ChanServ [*!*@181.39.194.178]
juanpauc_ was kicked from #ruby by ChanServ [Banned: please fix your connection]
arup_r has quit [Remote host closed the connection]
Cronon has quit [Ping timeout: 265 seconds]
devbug has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
<volk> Did someone call?
<volk> zenspider, why are you hurting my feelings?
devbug has joined #ruby
iloverubynoob has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Quit: Musashi007]
<zenspider> just for the record... between your wierd PMs and your crap in here... you're rubbing me wrong today.
<volk> zenspider, you have a history of being rubbed the wrong way Ryan.
paradoja has joined #ruby
* wasamasa grabs popcorn
<zenspider> don't bother with popcorn... this won't last long
<volk> If you don't want me here, I'm fine with leaving.
<wasamasa> aww
JimmyNeutron has joined #ruby
<tobiasvl> /lastlog volk was a pretty weird read, and somehow I don't think it would be better with context
skade has joined #ruby
<zenspider> you're welcome here, either as a productive member or a silent one... but you're walking the fine line between normal and trolling
<volk> I haven't trolled you once, and you know that.
havenwood has quit [Ping timeout: 255 seconds]
demonlove has joined #ruby
<sevenseacat> !mute volk that's quite enough.
<wasamasa> this did almost look like an episode of nerd dating
<zenspider> apparently I don't...
<zenspider> haha
<zenspider> nerd dating... THAT makes me laugh
<wasamasa> "You know the rules and so do I!"
volk has left #ruby [#ruby]
<wasamasa> except when it took a turn into the stalking direction
<zenspider> yeaaaah
<zenspider> I've deleted the PMs... but they were creepy
anisha has joined #ruby
devbug_ has joined #ruby
<zenspider> for the record:
<zenspider> <volk> Clap, nicely done. [00:56]
<zenspider> <zenspider> keep it up and it'll go from a mute to a ban
<zenspider> <volk> Nah, I think I'll just leave. I didn't troll anyone.
<zenspider> <volk> Because I said it was disgusting to drink and code.
darkf has quit [Read error: Connection reset by peer]
<zenspider> <volk> You just want to pick at something really. [00:57]
<zenspider> <volk> No wonder why _why hates the society.
<wasamasa> wat
<zenspider> and now the /ignore
<tobiasvl> weird stuff
darkf has joined #ruby
ruby-lang850 has joined #ruby
<sevenseacat> they're muted for now. let's just leave it at that.
<zenspider> someone decided they were a little tooooo familiar with me
devbug has quit [Ping timeout: 252 seconds]
<zenspider> yup yup
<sevenseacat> :)
mikecmpbll has joined #ruby
tesuji has joined #ruby
krisquigley has joined #ruby
<zenspider> man... I need to figure out how to test a graphics library... stupid off-by-one errors
paradoja has quit [Ping timeout: 252 seconds]
<sevenseacat> I think my next personal ruby project will be built in lotusrb. its coming a long way from its initial release, when I couldn't make heads or tails of how to put anything together
<zenspider> url?
oo_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
<sevenseacat> http://lotusrb.org/
joonty has joined #ruby
arup_r has joined #ruby
<zenspider> don't think I've seen this before...
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> I've been using it a bit too
<ljarvis> it's awesome
<zenspider> hrm... I wish it didn't use sequel... I run with -w and sequel is not warning free
<sevenseacat> I don't think I've run anything with -w ever lol
<zenspider> that makes you a BAD BAD PERSON. :P
thermatix has joined #ruby
<ljarvis> you can swap out the ORM. But yeah it's easier to use sequel
<sevenseacat> it would actually be good if -w was on by default, I think
<zenspider> what's the migrations model?
_blizzy_ has joined #ruby
ohaibbq has quit [Quit: Leaving...]
Aderium has quit [Quit: Textual IRC Client: www.textualapp.com]
<sevenseacat> not sure what you mean by that but they're similar to rails migrations i think
bumbar_ has joined #ruby
chouhoulis has joined #ruby
nuttermb has joined #ruby
<zenspider> kk
oo_ has joined #ruby
thermatix has quit [Ping timeout: 246 seconds]
<zenspider> this looks promising
<zenspider> it's a bit more datamappy than I prefer... but clean
isxek has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
<zenspider> and not mentabatory in the direction that ... whatever datamapper is called these days went
Iskarlar has joined #ruby
chouhoulis has quit [Ping timeout: 250 seconds]
<zenspider> these guys should talk to tenderlove about what he's planning w/ rack
<zenspider> s/guys/devs/
<ashleyhindle> :)
_blizzy_ has joined #ruby
_rgn has joined #ruby
<_rgn> how do I open $EDITOR (vim) from a ruby script and grab the contents for the rest of the script?
<zenspider> "grab the contents" ?
<_rgn> whatever i wrote in the editor
<zenspider> meaning you want whatever they save?
<_rgn> yeah, that works
<zenspider> look at `ri Tempfile`
arup_r has quit [Remote host closed the connection]
kwd has joined #ruby
<_rgn> surely there is a gem that does this?
<zenspider> it's... 4-6 lines long?
lkba_ has quit [Read error: Connection reset by peer]
<zenspider> you're welcome to write said 4-6 lines and gem it up
jiada has joined #ruby
<zenspider> To be specific, use Tempfile.open w/ block form to get the 4-6 lines.
jeanlinux has quit [Remote host closed the connection]
<_rgn> looks like this is pretty close
jeanlinux has joined #ruby
tkuchiki has joined #ruby
haxrbyte_ has joined #ruby
<_rgn> but Tempfile.open is probably better
roolo has joined #ruby
<zenspider> 9 lines... 2.25x what I said :P
ishahnaz has joined #ruby
happydad has joined #ruby
michael_mbp has quit [Excess Flood]
demonlove has quit [Remote host closed the connection]
iamninja has quit [Ping timeout: 246 seconds]
<zenspider> man... I never ever blow red unless I've been drinking. :(
tkuchiki has quit [Remote host closed the connection]
mutuma is now known as Pathfinder
tkuchiki has joined #ruby
terlar has joined #ruby
jeanlinux has quit [Remote host closed the connection]
<maloik> We've got code on a model that has a rescue and ensure part, with ensure only containing self. This code is ran, but the `self` doesn't appear to be a return value, is that normal at all? I've changed it to `return self` and this actually works... https://gist.github.com/hannesfostie/09323efb6cc5d99bd24b
jeanlinux has joined #ruby
dionysus69 has joined #ruby
<ljarvis> maloik: yes that's normal
bronson has joined #ruby
<yorickpeterse> IIRC you can't return from an ensure
<yorickpeterse> I could be wrong though
<zenspider> no, I don't think that's normal... ljarvis why do you?
<yorickpeterse> I _did_ just read "Catnip all" instead of "Catchup all"
<maloik> yorickpeterse: the return works
<zenspider> don't see why you can't return... but ANY expression in there should be the result of the method
terlar has quit [Client Quit]
haxrbyte has quit [Ping timeout: 246 seconds]
<yorickpeterse> maloik: so then what's the problem?
<ljarvis> zenspider: because I know it doesn't work unless the return is explicit
michael_mbp has joined #ruby
terlar has joined #ruby
<ljarvis> only from experience
<maloik> yorickpeterse: no problem, other than that I don't think it's logical
<yorickpeterse> >> def foo; 10; ensure; 20; end; foo
<ruboto> yorickpeterse # => 10 (https://eval.in/419470)
<yorickpeterse> >> def foo; 10; ensure; return 20; end; foo
<ruboto> yorickpeterse # => 20 (https://eval.in/419471)
<yorickpeterse> yup
jiada has quit [Remote host closed the connection]
<yorickpeterse> maloik: hm
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maloik> weird, right?
<yorickpeterse> No that difference makes sense
Rinzlit1 has joined #ruby
oo_ has quit [Remote host closed the connection]
<maloik> well I guess in a way it does, it's just really not what I expected
jiada has joined #ruby
<maloik> we may as well remove the ensure and use tap in both parts of the method
roolo has quit [Ping timeout: 244 seconds]
<zenspider> huh. that's news to me
<yorickpeterse> ensure is always executed (given it's defined), but it doesn't automatically overwrite any return values
happydad has quit [Ping timeout: 245 seconds]
<ljarvis> ^
<zenspider> and I apparently thought it did
<zenspider> interesting
<maloik> yep... TIL :-)
<yorickpeterse> it's one of the trickier bits of Ruby
<zenspider> ok. yeah. I guess that makes sense now
<_rgn> system ENV["EDITOR"], '/path' does not do anything
<zenspider> not that I write code like this. :)
<zenspider> _rgn: wrong. it definitely does _something_
Hounddog has joined #ruby
<_rgn> returns nil
bronson has quit [Ping timeout: 240 seconds]
<zenspider> "Returns nil if command execution fails"
<zenspider> ri Kernel.system
<yorickpeterse> make sure EDITOR is actually set too
<zenspider> it both did something AND returned something
<_rgn> yorickpeterse: it is
<yorickpeterse> that's how you can use it
<zenspider> it's because ruby objects to your arbitrary mix of single and double quotes
Rinzlit has quit [Ping timeout: 272 seconds]
<_rgn> yorickpeterse: that should spawn editor?
<zenspider> don't do that... use the multi arg version of system
<yorickpeterse> _rgn: Yes
<_rgn> well that's my issue, it doesn't
<zenspider> that version isn't whitespace safe
oo_ has joined #ruby
<r0x0rZ> how can i create alphabet by using range if I want to include last letter as well? what i did is `range = "a"..."z"` but when i iterate over it the last letter I get is y
<yorickpeterse> zenspider: true, but I don't have spaces in any of my paths
<maloik> would you say that this reads better? or should I just add a begin block and put `self` as the very last line of that method? https://gist.github.com/hannesfostie/09323efb6cc5d99bd24b
<yorickpeterse> but definitely adjust it to what you need
<yorickpeterse> r0x0rZ: use 2 dots vs 3
<zenspider> r0x0rZ: ... means exclusive
<yorickpeterse> r0x0rZ: so 'a'..'z'
<r0x0rZ> ok cool
<zenspider> r0x0rZ: .. means inclusive
<r0x0rZ> yorickpeterse: thanks
<zenspider> maloik: no tap
<zenspider> return is explict and clean
<zenspider> and cost free
<_rgn> problem seems to be the Tempfile.open...
<zenspider> mmm... no, my code works great
<maloik> yea but that blog post argues that it's a smell... I've just added a third version: https://gist.github.com/hannesfostie/09323efb6cc5d99bd24b
<ljarvis> third version is what I'd do
<_rgn> nope, it's the way path is passed to system
<ljarvis> (unless you dont want to return self if there's an error of course)
<zenspider> maloik: mmm... I'd still do the first version... but I'm prolly biased towards rescue/ensure at the def / end level
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
<ljarvis> right you do, so yeah I'd do the last
<_rgn> system "mvim -v #{f.path}" works
<ljarvis> yay for lots of opinions
<maloik> :D
<zenspider> :P
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<maloik> thanks everyone
Pathfinder has quit [Read error: Connection reset by peer]
<zenspider> I think I cringe everytime I see begin and it isn't exactly 5 lines long :)
<maloik> :D
astrobun_ has joined #ruby
<zenspider> otherwise, refactor and move to method-level rescue/ensure
workmad3 has joined #ruby
blackmesa has joined #ruby
jimms has quit [Remote host closed the connection]
d2dchat has joined #ruby
fatsum has joined #ruby
<zenspider> wait... why did they name that function aorta ???
<zenspider> and why didn't they use Tempfile and made their own instead?
<zenspider> so. many. questions.
silkfox has joined #ruby
<Ox0dea> zenspider: That method was written by _why.
<Ox0dea> > this little snippy marries a few of my true loves together
<ljarvis> then im confused why it's coherant
<Ox0dea> Love -> heart -> aorta.
<fatsum> (what does it mean when people on irc start sentences with '>' exactly?)
workmad3 has quit [Ping timeout: 265 seconds]
<Ox0dea> fatsum: First day on the Internet?
<ljarvis> fatsum: a quote, probably
jeadre has quit [Remote host closed the connection]
<ljarvis> i say probably because lets be honest, there is no universal irc language
<fatsum> 3562: not really, i just don't hang around much on rizon and efnet.
blackmesa has quit [Ping timeout: 244 seconds]
<Ox0dea> Clever girl.
<fatsum> ljarvis, ah.
arup_r has joined #ruby
<Ox0dea> fatsum: It's not really an IRC-ism.
<zenspider> Ox0dea: all the more reason NOT to use it. _why wrote bad code on purpose
<Ox0dea> Fora, comment threads, even emails often use > to indicate quotation.
silkfox has quit [Ping timeout: 240 seconds]
<fatsum> why would someone write bad code on purpose? (not a _why pun)
ndrei has quit [Ping timeout: 244 seconds]
jeadre has joined #ruby
<Ox0dea> zenspider: Please clarify?
<fatsum> 3562: ah i see, i just didn't make sense of it in the context where you used it
mutuma has joined #ruby
<Ox0dea> fatsum: Yes, I suppose I should've posted my research.
<zenspider> fatsum: in _why's case, partially as an artistic statement. I also think it was because he didn't give a fuck (possibly also as an artistic statement)
mutuma is now known as Pathfinder
<fatsum> 3562: sounds like a nontrivial issue.
<Ox0dea> Lost me.
zeroDivisible has joined #ruby
abdoudjanifresh has quit [Ping timeout: 244 seconds]
abdoudjanifresh has joined #ruby
<fatsum> zenspider: there isn't much artistry in bad code imo.
ndrei has joined #ruby
<zenspider> Ox0dea: I did? or elsewhere?
<zenspider> fatsum: that's debatable... and not one I'm going to engage in
<Ox0dea> fatsum: Please kindly provide your definition of art.
<zenspider> _why wrote code for a lot of different reasons... not all of them rational
<Diabolik> o/ zenspider
[k- has joined #ruby
<fatsum> 3562: no.
<Ox0dea> Is it that you lack one?
<[k-> Ox0dea!
<Ox0dea> [k-! <3
<fatsum> 3562: not at all, i could; but it would end up being spammy and off topic
tkuchiki has quit [Remote host closed the connection]
<Ox0dea> But what if I think Ruby itself constitutes art? Will that help us remain OT?
<Diabolik> can anyone recommend an easy way of creating an alias for the operators
<Diabolik> like
<fatsum> 3562: if you don't know what art is when you see an exquisite solution to a problem written with elegance, then that's not my fault, but yours.
<Diabolik> MathExpression.calculate("2 PLUS 3")
<Ox0dea> Diabolik: #gsub?
<Ox0dea> fatsum: I suspect you know the constitution of the man you've presented.
<Diabolik> Ox0dea I thought about that but was wondering if there was an easier way of doing it
<fatsum> 3562: which man would that be?
<Ox0dea> Diabolik: Probably not. You want to make some global substitutions, no?
<[k-> Reverse polish notation
<Ox0dea> fatsum: The one of straw, of course.
<Diabolik> yep
<fatsum> begun to bore me.
<Ox0dea> "Obvious" art is obvious, duh.
c0m0 has joined #ruby
anker has joined #ruby
juanpaucar has joined #ruby
<zenspider> what happens when said solution is INELEGANT in order to make a point?
<zenspider> is it still art?
<maloik> what is art? *scratches chin, looks into the void*
<fatsum> zenspider: that's debatable... and not one I'm going to engage in.
<zenspider> not all art is pretty. not all art is elegant.
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Defending one's beliefs is hard. Let's go shopping.
juanpauc_ has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
KnownSyntax has quit [Ping timeout: 240 seconds]
<zenspider> Diabolik: do you want to write a parser + interpreter? or?
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
qiukun has quit [Quit: qiukun]
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #ruby
juanpauc_ has joined #ruby
<zenspider> I've certainly written bad code, on purpose, for the sake of art.
<Diabolik> zenspider I want to be able to do MathExpression.calculate("4 PLUS 7 MINUS 1 PLUS 4") from the cl
juanpaucar has quit [Read error: Connection reset by peer]
<zenspider> a url for one of them is above :)
<fatsum> zenspider: link?
bright_day has joined #ruby
<zenspider> Diabolik: and you want it to return 14? or what?
<Diabolik> yes zenspider basically a calculator that accepts words as the operators
<_rgn> ruby's so weird, var/identifier case has impact on its visibility
<[k-> no MULTIPLY or anything else?
<[k-> Left to Right?
<Diabolik> [k- im going to add that in due course
<[k-> i was going to suggest tokens :/
<zenspider> then you can watch my talk "Let's write an interpreter!" plus michael jackson's (really) parser talk from mwrc . I reference it from my interpreter talk
jimms has joined #ruby
juanpaucar has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
<Ox0dea> Michael and Jackson are both extremely common names.
<zenspider> it's a really good talk, even if I don't like PEGs
<zenspider> _rgn: not visibility, type
<Ox0dea> zenspider: But the puns! http://piumarta.com/software/peg/
jeanlinux has quit [Remote host closed the connection]
juanpaucar has quit [Read error: Connection reset by peer]
devbug_ has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
jeanlinux has joined #ruby
<zenspider> I've not had reason to use Ian's peg library yet... other than to reverse engineer out his parser from cola
juanpauc_ has quit [Ping timeout: 272 seconds]
mkarnebeek has joined #ruby
skade has quit [Ping timeout: 256 seconds]
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
<Ox0dea> Diabolik: As [k- suggested, you might consider starting by writing an RPN calculator.
aiesec has joined #ruby
<_rgn> i'm just writing a plain script, and noticed that simple `foo` won't be visible in functions, but FOO_BAR will, and also @foo but that has something to do with main fn implicitly being class
Pathfinder has quit [Quit: Pathfinder]
<Ox0dea> It'll be a gentler introduction to simpler parsing and interpretation.
<Ox0dea> *simple
mkarnebeek has left #ruby [#ruby]
<Diabolik> even for something this simple?
juanpauc_ has joined #ruby
<zenspider> _rgn: foo is a local variable. FOO_BAR is a constant. it's not the visibilty, it's the type.
KnownSyntax has joined #ruby
<Ox0dea> Diabolik: Well, do you intend to use eval or something?
KnownSyntax has quit [Changing host]
KnownSyntax has joined #ruby
<zenspider> def, class, and module are all opaque scopes. locals don't penetrate them
skade has joined #ruby
michael_mbp has quit [Excess Flood]
<zenspider> "something this simple"?
<[k-> 52 TIMES OPEN 5 PLUS 50 CLOSE
<zenspider> how simple do you think it is?
michael_mbp has joined #ruby
<Diabolik> im just aliasing the operators no?
pawnbox has quit [Read error: Connection reset by peer]
pawnbox_ has joined #ruby
<zenspider> I dunno... ARE you?
<[k-> you have to deal with precedence and all that
maletor has quit [Quit: Computer has gone to sleep.]
<Diabolik> unless i have underestimated the problems
<Diabolik> yes zenspider
<Ox0dea> It seems you have.
michael_mbp has quit [Excess Flood]
<[k-> do not use eval!
<zenspider> you want to name a method "calculate" but not have it calculate?
terlar has quit [Quit: WeeChat 1.3]
<zenspider> fuck it! use eval!
<zenspider> gsub + eval... what can go wrong?
juanpau__ has joined #ruby
<[k-> your life
<yorickpeterse> eval has its use cases
juanpaucar has quit [Read error: Connection reset by peer]
terlar has joined #ruby
blackmesa has joined #ruby
juanpauc_ has quit [Ping timeout: 240 seconds]
<[k-> ruby's metaprogramming facilities almost obliterated eval
_blizzy_ has joined #ruby
juanpaucar has joined #ruby
michael_mbp has joined #ruby
chouhoulis has joined #ruby
dumdedum has joined #ruby
einarj has joined #ruby
juanpau__ has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
juanpauc_ has joined #ruby
<ljarvis> pipe down heathen, eval ftw!
<ljarvis> heathens*
<ljarvis> in ur evals, defining ur methods
ReK2 has joined #ruby
ReK2 has joined #ruby
<Ox0dea> The standard library does it everywhere.
juanpauc_ has quit [Remote host closed the connection]
juanpaucar has quit [Ping timeout: 246 seconds]
juanpaucar has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoulis has quit [Ping timeout: 246 seconds]
oo_ has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
ruby-lang850 has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
devoldmx has quit [Remote host closed the connection]
<ljarvis> stdlib is like my goto references for how not to write Ruby, ironic, really
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<zenspider> or... how to write ruby 15+ years ago
qiukun has joined #ruby
_blizzy_ has joined #ruby
<zenspider> MathExpression.calculate("4 TIMES OPEN 1 DIVIDE 1 MINUS 1 DIVIDE 3 PLUS 1 DIVIDE 5 MINUS 1 DIVIDE 7 ... CLOSE")
nahtnam has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
<ljarvis> good point
<ljarvis> zenspider: I hope you don't have an early start
juanpauc_ has joined #ruby
Violentr has joined #ruby
<zenspider> eh. it's only 2 here :)
kr3ssh has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
juanpauc_ has quit [Read error: Connection reset by peer]
juanpauc_ has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
Pupp3tm4st3r has joined #ruby
kedare has joined #ruby
astrobun_ has quit [Remote host closed the connection]
juanpaucar has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
bb010g has quit [Quit: Connection closed for inactivity]
Iskarlar has joined #ruby
happydad has joined #ruby
juanpauc_ has joined #ruby
sameerynho has joined #ruby
juanpauc_ has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
juanpau__ has joined #ruby
juanpaucar has quit [Ping timeout: 260 seconds]
mathie has left #ruby ["Textual IRC Client: www.textualapp.com"]
charliesome has quit [Client Quit]
danielpclark has quit [Remote host closed the connection]
juanpau__ has quit [Read error: Connection reset by peer]
skade has quit [Ping timeout: 265 seconds]
juanpaucar has joined #ruby
lxsameer has quit [Ping timeout: 264 seconds]
happydad has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 250 seconds]
juanpauc_ has joined #ruby
skade has joined #ruby
juanpaucar has quit [Ping timeout: 264 seconds]
absolutejam has quit [Ping timeout: 250 seconds]
mutuma has joined #ruby
mutuma has quit [Client Quit]
juanpauc_ has quit [Ping timeout: 240 seconds]
Violentr has quit [Ping timeout: 260 seconds]
Karpah has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
sevenseacat has quit [Ping timeout: 240 seconds]
absolutejam has joined #ruby
silkfox has joined #ruby
sevenseacat has joined #ruby
DLSteve has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
anandubajith has joined #ruby
Soda has joined #ruby
happydad has joined #ruby
Karpah has quit [Ping timeout: 256 seconds]
sideshowcoder has joined #ruby
silkfox has quit [Ping timeout: 252 seconds]
pgatt has quit [Quit: Connection closed for inactivity]
workmad3 has joined #ruby
joonty has quit [Quit: joonty]
araujo_ has quit [Quit: Leaving]
qiukun has quit [Quit: qiukun]
tkuchiki has joined #ruby
joonty has joined #ruby
araujo has joined #ruby
Asher has quit [Quit: Leaving.]
araujo has quit [Max SendQ exceeded]
jimms has quit [Remote host closed the connection]
<gregf_> Diabolik: class String; OPS = { "PLUS" => "+", "MINUS" => "-", "MUL" => "*", "DIV" => "/" }; def translate; op = OPS.keys.grep(/#{self}/i); return op.size>0 ? OPS[op[0]] : self; end; end
<gregf_> p ["4 PLUS 7 MINUS 1 PLUS 4", "1 MINUS 6", "2 MUL 3 DIV 3"].map{ |str| eval (str.scan(/(\w+)/).flatten.map(&:translate).join() ) } <== like that :/
<gregf_> oops. * scrolls to the bottom *
_rgn has left #ruby ["WeeChat 0.4.2"]
araujo has joined #ruby
arup_r has quit [Read error: Connection reset by peer]
Asher has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
dionysus69 has quit [Remote host closed the connection]
bubbys has quit [Ping timeout: 264 seconds]
Timba-as has quit [Quit: Be back later ...]
tkuchiki has joined #ruby
ivanf has quit [Ping timeout: 264 seconds]
_blizzy_ has joined #ruby
mhib has joined #ruby
k3asd` has joined #ruby
manila90 has joined #ruby
ferhaty has quit []
oo_ has quit [Remote host closed the connection]
_blizzy_ has quit [Read error: Connection reset by peer]
mhib has quit [Quit: Leaving]
<ljarvis> :/
sevenseacat has quit [Quit: .]
_blizzy_ has joined #ruby
oo_ has joined #ruby
nanoz] has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
chouhoulis has joined #ruby
roolo has joined #ruby
nanoz has quit [Ping timeout: 252 seconds]
eminencehc has joined #ruby
nfk has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
<gregf_> >> String.class_eval "4 PLUS 7 MINUS 1 PLUS 4".gsub(/PLUS/ix,"+").gsub(/MINUS/ix,"-").gsub(/MUL/ix,"*").gsub(/DIV/ix,"/") *runs*
roolo has quit [Ping timeout: 260 seconds]
<ruboto> gregf_ # => /tmp/execpad-0e1b25d2e383/source-0e1b25d2e383:3: syntax error, unexpected keyword_rescue ...check link for more (https://eval.in/419525)
<yorickpeterse> what the heck are you kids on about?
oo_ has quit [Remote host closed the connection]
<yorickpeterse> oh, I see
<gregf_> >>RUBY_VERSION
<ruboto> gregf_ # => "2.2.0" (https://eval.in/419526)
manila90 has quit [Ping timeout: 260 seconds]
eminencehc has quit [Ping timeout: 250 seconds]
qiukun has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
iamninja has joined #ruby
charliesome has joined #ruby
ferhaty has joined #ruby
jgt1 has quit [Ping timeout: 255 seconds]
<yorickpeterse> check this out
<yorickpeterse> >> "4 PLUS 7 MINUS 1 PLUS 4".gsub(/PLUS|MINUS/, 'PLUS' => '+', 'MINUS' => '-').split(/\s+/).reduce { |left, right| left.is_a?(Array) ? left[0].to_i.send(left[1], right.to_i) : [left, right] }
<ruboto> yorickpeterse # => 14 (https://eval.in/419527)
<yorickpeterse> who's your daddy now?
* yorickpeterse prepares the pyre
devoldmx has joined #ruby
skade has quit [Read error: Connection reset by peer]
iamninja has quit [Ping timeout: 264 seconds]
jenrzzz has joined #ruby
skade has joined #ruby
bronson has joined #ruby
<ljarvis> DAD?!
j_mcnally has joined #ruby
leafybasil has quit [Read error: No route to host]
leafybas_ has joined #ruby
skade has quit [Read error: Connection reset by peer]
<gregf_> yorickpeterse: haha, you;re doing too much there :/
<gregf_> >>eval "4 PLUS 7 MINUS 1 PLUS 4".gsub(/PLUS|MINUS/, "PLUS" => "+", "MINUS" => "-")
<ruboto> gregf_ # => 14 (https://eval.in/419529)
skade has joined #ruby
ledestin has joined #ruby
<ljarvis> #pwned
devoldmx has quit [Ping timeout: 246 seconds]
xhosae has quit [Quit: to the batmobile !]
jenrzzz has quit [Ping timeout: 246 seconds]
j_mcnally has quit [Client Quit]
bronson has quit [Ping timeout: 260 seconds]
<fatsum> #hashtag
iamninja has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> gregf_: my solution is more webscale
<ljarvis> lies, your solution is in Ruby
<yorickpeterse> I benchmarked it, so it's legit
tkuchiki has quit [Remote host closed the connection]
sdothum has joined #ruby
happydad has quit [Quit: WeeChat 1.3]
qiukun has quit [Quit: qiukun]
ishahnaz has quit []
<ashleyhindle> haha
eGGsha is now known as eGGshke
blackmesa has quit [Ping timeout: 252 seconds]
<ljarvis> you should have written it in C
<ljarvis> or node if you really want speed
Pupp3tm4st3r has joined #ruby
<gregf_> yorickpeterse: theres a gazillion ways to do it, but what if you add a div to yours? does it handle op precedence?
IceyEC has joined #ruby
stamina has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
silkfox has joined #ruby
qiukun has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
silkfox has quit [Ping timeout: 245 seconds]
eGGshke is now known as eGGsha
Iskarlar has joined #ruby
zz_Outlastsheep has quit [Ping timeout: 252 seconds]
charliesome has joined #ruby
paradoja has joined #ruby
kristofferR has joined #ruby
atomical has joined #ruby
_blizzy_ has quit [Ping timeout: 240 seconds]
freerobby has joined #ruby
jimms has joined #ruby
jeanlinux has quit [Remote host closed the connection]
rodfersou has joined #ruby
jeanlinux has joined #ruby
freerobby has quit [Quit: Leaving.]
paradoja has quit [Ping timeout: 246 seconds]
isxek has quit [Ping timeout: 246 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nirix has quit [Quit: ZNC - http://znc.in]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gusto has joined #ruby
Ox0dea has quit [Ping timeout: 244 seconds]
arup_r has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duncannz has quit [Ping timeout: 255 seconds]
c0x has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
c0x is now known as x0c0d3
chouhoulis has joined #ruby
charliesome has joined #ruby
k3asd` has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
jimms has quit [Remote host closed the connection]
kidoz has quit [Quit: Ухожу я от вас]
chouhoulis has quit [Ping timeout: 250 seconds]
User458764 has quit [Ping timeout: 256 seconds]
msnyon has joined #ruby
jgt1 has joined #ruby
User458764 has joined #ruby
curses has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phpjunkie has joined #ruby
<phpjunkie> pngout worker: `pngout` not found; please provide proper binary or disable this worker (--no-pngout argument or `:pngout => false` through options)
<phpjunkie> please does anyone have a solution?
<phpjunkie> new to ruby on rails
<ljarvis> ?rails phpjunkie
<ruboto> phpjunkie, Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
qiukun has quit [Quit: qiukun]
drunkwife has joined #ruby
<ljarvis> the solution would presumably be to install pngout
<ljarvis> the error message sort of gives it away really
<ljarvis> voiding potential detective work. Pesky error message
<apeiros> support & consulting job destroyer! evil!
m8 has joined #ruby
bronson has joined #ruby
Pupp3tm4st3r has joined #ruby
<livcd> what does inject do exactly ? why this prints 19 ? (1..10).inject { |sum,n| sum + 1 }
IceyEC has quit [Quit: iceyec]
<maloik> it's supposed to print 10
Iskarlar has joined #ruby
IceyEC has joined #ruby
<ljarvis> it does print 10
Pupp3tm4st3r has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
<maloik> first result in google from a rather well known smart person, I'm sure that will explain it :-)
<ytti> i think livcd probably gets it, if it prints 10
<ytti> i'd be confused as well, if it prints 19 :)
jenrzzz has joined #ruby
IceyEC has quit [Client Quit]
<ljarvis> if it prints 19, then that's not the code
<livcd> oops right...i meant (1..10).inject { |sum,n| sum + 2 }
<ytti> so maybe some typo somewhere which lead him astray
<ljarvis> because we all know it's 10
<ljarvis> see
Synthead has quit [Ping timeout: 244 seconds]
<ytti> ljarvis, you run the block every time, changing n
<ytti> s/ljarvis/livcd/
<certainty> i accept the possibility that it printed 19
<ytti> livcd, and store result of preious run of block in sum
Violentr has joined #ruby
<ytti> livcd, another name for that method is #reduce
Pupp3tm4st3r has quit [Remote host closed the connection]
<livcd> oh so like memoization ?
<ytti> livcd, you reduce enumeration of values into single value
<livcd> oh i think i get it now!
<certainty> no not like memoization
Pupp3tm4st3r has joined #ruby
<ljarvis> reduce is a better name, pesky aliases
<ytti> i agree
<ytti> reduce gives some idea what is going on
bronson has quit [Ping timeout: 246 seconds]
<ytti> inject is like, wtf
<certainty> fold
<apeiros> inject gives an idea too
nettoweb has joined #ruby
<apeiros> you inject an operator into a series of values
<certainty> *nod*
ferhaty has quit []
<apeiros> [a,b,c].inject(:+) --> a <inject +> b <inject +> c
<ljarvis> yeah I guess, prefer reduce myself
<ytti> i would want ruby to have less values and more opinionated about correct style
<ytti> one of the few things i prefer in python
but3k4 has joined #ruby
<ljarvis> although I usually write inject, so i'm just a hypocrit
<ytti> s/values/aliases/
Pupp3tm4st3r has quit [Remote host closed the connection]
<certainty> hehe
<ytti> ljarvis, HAH, exactly the same :)
<apeiros> but - I'd prefer to have no aliases and standardize on one name
<ytti> because i learned the alias #reduce later
<ytti> and #inject was already forced into my thinking
<apeiros> except for semantical aliases (e.g. alias eql? and ==, as they are used for different purposes, but might share the implementation)
Pupp3tm4st3r has joined #ruby
<apeiros> reduce was added later
<apeiros> iirc 1.9 added that alias.
<ljarvis> yeah they should be used sparingly, at least moreso
y0da has joined #ruby
but3k4 has quit [Read error: Connection reset by peer]
Pupp3tm4st3r has quit [Remote host closed the connection]
Violentr has quit [Ping timeout: 252 seconds]
Pupp3tm4st3r has joined #ruby
<maloik> hehe, inkjet...
sdothum has joined #ruby
<certainty> :D
<shevy> this amuses certainty
<certainty> shevy: of course it does
<certainty> shevy: admit it, you smiled too
Pupp3tm4st3r has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
skade has quit [Read error: No route to host]
skade has joined #ruby
elepedus has joined #ruby
Synthead has joined #ruby
silkfox has joined #ruby
ldnunes has joined #ruby
seggy has quit [Ping timeout: 244 seconds]
segmond has quit [Ping timeout: 244 seconds]
lxsameer_ has joined #ruby
silkfox has quit [Ping timeout: 255 seconds]
sameerynho has quit [Ping timeout: 244 seconds]
<ljarvis> maloik: nou
AlexAltea has quit [Ping timeout: 244 seconds]
whiteline has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.2]
zhengxx has joined #ruby
IceyEC has joined #ruby
<shevy> certainty dunno I banned the word #reduce from my brain
whiteline has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
ledestin has quit [Read error: Connection reset by peer]
zhengxx has quit [Client Quit]
ndrei has joined #ruby
symm- has joined #ruby
tkuchiki has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
ishahnaz has joined #ruby
seggy has joined #ruby
segmond has joined #ruby
gusto has quit [Quit: Leaving]
<yorickpeterse> gregf_: No
<yorickpeterse> gregf_: mine is always left recursive
roolo has joined #ruby
<yorickpeterse> errr
<yorickpeterse> left associative
dimasg has joined #ruby
bruno- has joined #ruby
andywojo has quit [Ping timeout: 250 seconds]
Synthead has quit [Ping timeout: 244 seconds]
eGGsha is now known as eGGshke
dgutierrez1287 has joined #ruby
eGGshke is now known as eGGsha
Pupp3tm4st3r has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
Motoservo has joined #ruby
roolo has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 265 seconds]
inverseteetotale has joined #ruby
jenrzzz has joined #ruby
<inverseteetotale> hey guys, I have a quick Ruby question if that's alright
RegulationD has joined #ruby
<ytti> that's literally the reason why this channel exists, shoot no safety needed
<inverseteetotale> haha yeah ive learned to be cautious and polite on irc's :)
<inverseteetotale> So I'm parsing an RSS feed with feed = RSS::Parser.parse(rss)
dimasg has quit [Ping timeout: 245 seconds]
<inverseteetotale> and i iterate through feed.items to get the titles and whatnot
<inverseteetotale> however I can't figure out how to parse this part of the XML:
CloCkWeRX has quit [Ping timeout: 250 seconds]
<inverseteetotale> both the source (namely the "Matthew Dunn" part) and the enclosure image uri
eGGsha is now known as eGGshke
<inverseteetotale> Any thoughts on how to go about parsing this?
rbennacer has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
bhorn1|away is now known as bhorn1
<inverseteetotale> could really use a hand with this :/
chouhoulis has joined #ruby
MasterPiece has joined #ruby
phutchins has joined #ruby
terlar has quit [Quit: WeeChat 1.3]
Synthead has joined #ruby
diegoaguilar has joined #ruby
jimms has joined #ruby
freerobby has joined #ruby
terlar has joined #ruby
eGGshke is now known as eGGsha
<inverseteetotale> could any of you guys give me a hand with an XML parsing problem?
chouhoulis has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
jeanlinux has quit [Remote host closed the connection]
jeanlinux has joined #ruby
freerobby has quit [Quit: Leaving.]
bluOxigen has quit [Remote host closed the connection]
<[k-> did you encounter an error? what is it? could the front part be causing any problems?
Pupp3tm4st3r has quit [Remote host closed the connection]
<[k-> ?answer
<ruboto> I don't know anything about answer
<[k-> ?answers
<ruboto> How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
Pupp3tm4st3r has joined #ruby
brunoro has joined #ruby
<gregf_> yorickpeterse: https://gist.github.com/anonymous/34e3b117edde8f2a1814 <= is ruby doing this wrong then without explicitly using parens?
brunoro has quit [Client Quit]
<gregf_> >> [ (1 + 2) - (1 + 4 /4); 1 + 2 - 1 + 4 /4 ]
<ruboto> gregf_ # => /tmp/execpad-7fc81bfcfbcd/source-7fc81bfcfbcd:2: syntax error, unexpected ';', expecting ']' ...check link for more (https://eval.in/419631)
<gregf_> >> (1 + 2) - (1 + 4 /4); 1 + 2 - 1 + 4 /4
brunoro has joined #ruby
<ruboto> gregf_ # => 3 (https://eval.in/419633)
brunoro has left #ruby [#ruby]
<yorickpeterse> IIRC / is right-associative
<yorickpeterse> but I could be dumb, let me check
<gregf_> ah - nevrmind. i like your solution tho'. its the right end result. it should be '1' :)
<inverseteetotale> i have a question as well if anyone here feels like helping me out :)
guardian has quit [Ping timeout: 244 seconds]
<yorickpeterse> gregf_: https://gist.github.com/YorickPeterse/c835d414ab4bbd9334dd this is how it's parsed
blackmesa has quit [Ping timeout: 252 seconds]
devoldmx has joined #ruby
polysics has joined #ruby
blueOxigen has joined #ruby
<yorickpeterse> and it should be 3
<yorickpeterse> per the usual operator precedence
joonty has quit [Quit: joonty]
<inverseteetotale> @yorickpeterse could you give me a hand with an xml parsing problem im facing?
<gregf_> yorickpeterse: thanks. you sure it should be 3 based on BODMAS i guess the evaluation is done?
iamninja has quit [Read error: Connection reset by peer]
<gregf_> inverseteetotale: you can take a look at nokogiri?
<inverseteetotale> for a school project, we're discouraged from using nokogiri
<gregf_> yorickpeterse: Thanks anyways, thats some stuff you;ve written :)
jimms has quit [Remote host closed the connection]
iamninja has joined #ruby
northfurr has joined #ruby
blueOxigen has quit [Remote host closed the connection]
northfurr has quit [Client Quit]
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
<inverseteetotale> I'm parsing an RSS feed with feed = RSS::Parser.parse(rss) and i iterate through feed.items to get the titles and whatnot however I can't figure out how to parse this part of the XML:
bluOxigen has joined #ruby
<inverseteetotale> both the source (namely the "Matthew Dunn" part) and the enclosure image uri
unver has joined #ruby
pawnbox has joined #ruby
devoldmx has quit [Ping timeout: 264 seconds]
<inverseteetotale> any thoughts :gref_ or yorickpeterse or anyone else?
<gregf_> inverseteetotale: so manually parse an xml string... i.e like your teacher telling you, 'hey inverseteetotale, here\'s my gun. i've kept it loaded for yer. now go ahead and shoot yourself' :/
<inverseteetotale> yup it sucks
JoshL has joined #ruby
arup_r has quit [Remote host closed the connection]
<inverseteetotale> i just need to get the f'ing info from the enclosure, but i cant find anything on it
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yorickpeterse> gregf_: I based it on the output of `bc`
<gregf_> yorickpeterse++
aiesec has quit [Ping timeout: 264 seconds]
<yorickpeterse> inverseteetotale: can you put together a simple gist (gist.github.com) that shows what you're trying to do?
<inverseteetotale> sure, one sec
<inverseteetotale> yorickpeterse: I really appreciate the help, this is driving me nuts
amystephen has joined #ruby
skade has quit [Ping timeout: 240 seconds]
<gregf_> >> "<foo>Matt Dunne</foo><sal>100</sal>".scan(/>([^<]+)/)
<ruboto> gregf_ # => [["Matt Dunne"], ["100"]] (https://eval.in/419638)
<gregf_> inverseteetotale: ^^
* apeiros smacks gregf_
<apeiros> seriously
<[k-> have you checked if it allows attributes?
<adaedra> apeiros: cute
<yorickpeterse> euh, lets see
<yorickpeterse> gregf_: Don't ever use regex for XML
skade has joined #ruby
* yorickpeterse slaps gregf_ around with a crushing student debt
<gregf_> heh. inverseteetotale wants to shoot (him|her)self in the foot *ducks... and runs*
* yorickpeterse slaps gregf_ a few times
* yorickpeterse slaps gregf_ around with a crushing student debt
* yorickpeterse slaps gregf_ with a copy of "Pratical Trout Oriented Design in Ruby"
<yorickpeterse> there
Guest50 has joined #ruby
livathinos has quit [Ping timeout: 252 seconds]
<inverseteetotale> I'm supposed to use RSS::Parser
<gregf_> yorickpeterse: apeiros i knoe i know. inverseteetotale says he|she wants to parse without a parser :/
<yorickpeterse> inverseteetotale: is this a Gem or something?
<inverseteetotale> so the answer would be something like item.enclosure
<inverseteetotale> built in I think
sevenseacat has joined #ruby
<yorickpeterse> Also, can't you just do RSS::Parser.parse('<source .....')?
<apeiros> gregf_: well, if you want to participate in insanity…
<yorickpeterse> That is, what happens if you try to parse the snippet of XML that way?
but3k4 has joined #ruby
<yorickpeterse> Technically the snippet itself isn't valid XML as XML needs a single root element
<yorickpeterse> not sure if RSS::Parser likes that
blackmesa has joined #ruby
<inverseteetotale> yorickpeterse: that's what I did. item.title gives title, etc but not sure how to do it with enclosure
y0da has quit [Read error: Connection reset by peer]
<apeiros> bottom line: forget your desire to "parse it without a parser". use a parser.
<adaedra> Regexp? With my XML?
dstarh has joined #ruby
<inverseteetotale> apeiros: I'm using Ruby's RSS::Parser
<inverseteetotale> and not because i want to
<adaedra> this exists?
<adaedra> or it's a gem?
<inverseteetotale> apparently. there's like no help for it
<inverseteetotale> built-in I'm told
<adaedra> &ri RSS
<adaedra> wut
<pontiki> stdlib rss has been around for a while
Pupp3tm4st3r has quit [Remote host closed the connection]
<yorickpeterse> inverseteetotale: hrm, not sure, not really familiar with RSS::Parser
<inverseteetotale> agh ive been at this for a couple hours and just can't figure out how to get into the fking enclosure
phpjunkie has quit [Quit: WeeChat 1.1.1]
_blizzy_ has joined #ruby
<inverseteetotale> if <title> can be gotten with only item.title, how would I get the image url from <enclosure type="image/jpeg" length="2619" url="http://resources3.news.com......png"
silkfox has joined #ruby
<unver> Here are some samples in the ruby repo https://github.com/ruby/ruby/tree/ruby_2_2/sample/rss
<unver> it's all you could ever want to know about the parser https://github.com/ruby/ruby/blob/ruby_2_2/lib/rss/parser.rb
andywojo has joined #ruby
centrx has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
decoponio has joined #ruby
<inverseteetotale> still not seeing anything on dealing with enclosures...
<[k-> apparently on the rss object returned, call .each
<[k-> if it has each it should have []
abdoudjanifresh has quit [Ping timeout: 244 seconds]
silkfox has quit [Ping timeout: 260 seconds]
paradoja has joined #ruby
<[k-> so try calling rss["enclosure"]
pontiki has quit [Quit: "Poets have been mysteriously silent on the subject of cheese." -- G.K.Chesterson]
_blizzy_ has quit [Read error: Connection reset by peer]
abdoudjanifresh has joined #ruby
aiesec has joined #ruby
abdoudjanifresh has quit [Client Quit]
arup_r has joined #ruby
<inverseteetotale> yup I'm iterating, check out the gist: https://gist.github.com/BrennonTWilliams/3aa70023759f404fc87a
<inverseteetotale> tried item.enclosure, item['enclosure'] and a handful of other variations
paulcsmith has joined #ruby
<[k-> it would help if you provide us with what you tried to do
TPBallbag has joined #ruby
<[k-> because the documentation for this library is horrible
_blizzy_ has joined #ruby
UtkarshRay has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
victortyau has joined #ruby
msnyon has quit [Quit: Textual IRC Client: www.textualapp.com]
rideh has joined #ruby
jenrzzz has joined #ruby
<inverseteetotale> new gist with full code: https://gist.github.com/BrennonTWilliams/378ad4d0bab56ba753fb
m1lt0n has joined #ruby
<inverseteetotale> and i agree, this library is horrible
victortyau has quit [Max SendQ exceeded]
victortyau has joined #ruby
joonty has joined #ruby
<Diabolik> [k- what was your suggestion for the "MathExpression.calculate("2 PLUS 3")" problem earlier?
<[k-> try removing the counter
<[k-> Diabolik Reverse Polish Notation
nertzy has joined #ruby
<Diabolik> what is the easiest way of writing my own parser to convert the string into a calculable operation?
sgambino has joined #ruby
jeanlinux has quit [Ping timeout: 272 seconds]
<[k-> not caring about precedence, and doing it left to right is the easiest way
[k-_ has joined #ruby
<inverseteetotale> k->: tried removing the counter, I just added it to keep the number of items at a minimum so i wouldn't puts a mile of text
<inverseteetotale> also updated the gist with the rss' xml in question: https://gist.github.com/BrennonTWilliams/378ad4d0bab56ba753fb
<[k-> try checking if the feed has the name "enclosure"
<[k-> or i suggest finding a different library if possible
failshell has joined #ruby
<[k-> the RSS library just looks like a wrapper around some parsers
d2dchat has quit [Remote host closed the connection]
<inverseteetotale> k->: item.enclosure returns an empty string. and I'm stuck with this library, its the fucking worst. wouldve never used it to begin with if i had a choice
banister has joined #ruby
jgt1 has joined #ruby
vondruch has quit [Quit: Ex-Chat]
skade has quit [Ping timeout: 245 seconds]
<[k-> i think this should work, since it is the underlying parser
Pupp3tm4st3r has joined #ruby
jenrzzz has quit [Remote host closed the connection]
Meow-J has quit [Quit: Connection closed for inactivity]
hinbody has joined #ruby
jenrzzz has joined #ruby
atomical has joined #ruby
bright_day has quit [Quit: Connection closed for inactivity]
skade has joined #ruby
<inverseteetotale> k->: im not following, this doesn't look like there's any clear solution to the enclosure problem with REXML
failshell has quit [Remote host closed the connection]
cajone has quit [Remote host closed the connection]
<Diabolik> yorickpeterse pm?
<unver> Try a different library, see if it parses the enclosure as you'd expect
<yorickpeterse> Diabolik: no
<unver> nokogiri is popular
<inverseteetotale> unver: with nokogiri its just item.at('enclosure')['url'], but i cant use nokogiri
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
binaryplease has joined #ruby
aiesec has quit [Read error: Connection reset by peer]
RTG` has quit [Read error: Connection reset by peer]
Pupp3tm4st3r has quit [Remote host closed the connection]
casadei_ has joined #ruby
Guest50 has joined #ruby
havenwood has joined #ruby
<unver> dang, so the feed seems okay if nokogiri can parse it
<yorickpeterse> Valid XML doesn't make it valid RSS
troulouliou_div2 has joined #ruby
<yorickpeterse> nor does it mean RSS::Parser might even support it
<inverseteetotale> unver: yup, i just need to find a way to get the contents of enclosure from item
RTG` has joined #ruby
<unver> well does it meet the spec? http://cyber.law.harvard.edu/rss/rss.html it has an enclosure tag that isn't picking up
<unver> is there an rss.valid? in the rss library
<[k-_> Ok, so the underlying class for feed is RSS::Rss
eGGsha is now known as eGGshke
<inverseteetotale> unver: feed.valid? returns true
timanema has joined #ruby
<[k-_> feed.items.class is an array
<[k-_> it contains RSS::Rss::Channel
<[k-_> it contains RSS::Rss::Channel::Item* objects
livathinos has joined #ruby
<inverseteetotale> k: yup
cajone has joined #ruby
<[k-_> anddd, there is no documentation provided for that class
<inverseteetotale> yeah, it blows
<unver> Can you find a feed that is known to be valid and have an enclosure parse properly?
<inverseteetotale> that's the feed we were recommended to use, its from a mass-market news site (ABC news)
eGGshke is now known as eGGsha
chouhoulis has joined #ruby
<inverseteetotale> wut
dgutierrez1287 has quit [Remote host closed the connection]
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
<unver> it probably wouldn't effect this though, I don't see any enclosures in that feed
failshell has joined #ruby
failshell has quit [Remote host closed the connection]
failshell has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
hahuang61 has joined #ruby
aganov has quit [Read error: Connection reset by peer]
sarkyniin has joined #ruby
aganov has joined #ruby
<[k-_> apparently they are just a array of top level things
<[k-_> with no "tags"
timanema has quit [Quit: leaving]
rbennacer has quit [Remote host closed the connection]
dopamean_ has joined #ruby
<[k-_> there is no "source" in the xml
<[k-_> at all
umgrosscol has joined #ruby
<[k-_> where does your xml come from?
<[k-_> it isnt part of the feed
iamninja has quit [Ping timeout: 250 seconds]
hahuang61 has quit [Ping timeout: 252 seconds]
<[k-_> the problem is, "<source "blah">blah..." is nowhere in the feed
* [k-_ catches his breath
<[k-_> you can see for yourself if you have chrome - view-source:http://feeds.abcnews.com/abcnews/topstories
bronson has joined #ruby
<[k-_> im no xml expert, but the format is entirely different from what you described
<inverseteetotale> fuuuck its a different ABC news, apparently http://www.abc.net.au/news/feed/45910/rss.xml
haylon has joined #ruby
tkuchiki has joined #ruby
banister has quit [Ping timeout: 240 seconds]
<inverseteetotale> this is bullshit. im sorry for wasting your time guys. i dont think this is solveable. im going to drop out and become amish and live off the land, or go talk to the TA tomorrow morning
nettoweb has joined #ruby
<inverseteetotale> thanks so much for helping me out, i really appreciate it
blackmesa has quit [Ping timeout: 252 seconds]
blueOxigen has joined #ruby
malconis has joined #ruby
<inverseteetotale> i give up at this point. ive been at it for hours and have gotten nowhere
malconis has quit [Remote host closed the connection]
* [k-_ sighs, "source" is also not present in the new feed
malconis has joined #ruby
dhjondoh has quit [Remote host closed the connection]
radgeRayden has joined #ruby
<inverseteetotale> k: im lost at this point. sorry for wasting your time
bronson has quit [Ping timeout: 265 seconds]
<[k-_> do you have the problem statement? are you vastly misinterpreting it?
bluOxigen has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
<inverseteetotale> the specs are 10 pages long and suck. im done with this crap. sorry again
blackmesa has joined #ruby
chouhoulis has joined #ruby
jiada has quit [Quit: Connection closed for inactivity]
<[k-_> it's okay.
dimasg has joined #ruby
arup_r has quit [Remote host closed the connection]
guardian has joined #ruby
platzhirsch has joined #ruby
kies has quit [Ping timeout: 246 seconds]
failshell has quit [Ping timeout: 245 seconds]
lostcuaz has quit [Read error: Connection reset by peer]
drunkwife has quit [Ping timeout: 244 seconds]
renderful has joined #ruby
lostcuaz has joined #ruby
inverseteetotale has quit [Ping timeout: 246 seconds]
terlar has quit [Ping timeout: 244 seconds]
krisquigley has quit [Remote host closed the connection]
aiesec has joined #ruby
RobertBirnie has joined #ruby
jerius has joined #ruby
Alayde has joined #ruby
<ekleog> Hi there! Do you know how well (or not) MiniTest's assert_output manages multiple threads writing? I can ensure the write is entirely made while execution is inside assert_output
leat has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
renderful has quit [Ping timeout: 272 seconds]
Coldblackice has quit [Ping timeout: 246 seconds]
kwd has quit [Quit: kwd]
khebbie has joined #ruby
juanpaucar has joined #ruby
oo_ has joined #ruby
whippythellama has joined #ruby
devdazed has joined #ruby
NeverDie has joined #ruby
x0c0d3 has quit [Ping timeout: 255 seconds]
northfurr has joined #ruby
tercenya has joined #ruby
roolo has joined #ruby
oo__ has joined #ruby
davedev24 has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
khebbie has quit [Remote host closed the connection]
matthewburton has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<matthewburton> can someone explain this to me? http://pastie.org/private/ckhoo3rcaecujpluephhfg
ivanskie has joined #ruby
<sevenseacat> matthewburton: you need to run `bundle install` to install all the dependencies.
opalraava has left #ruby [#ruby]
krisquigley has joined #ruby
<matthewburton> does it matter what directory i run that in? any other parameters i need to give it?
<sevenseacat> run it in the application directory.
<sevenseacat> no other parameters.
northfurr has quit [Quit: northfurr]
icharlie has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
ckinniburgh has joined #ruby
ivanskie has quit [Client Quit]
isxek has joined #ruby
<unver> at least I got to learn a bit about ruby's RSS parser
jas02 has joined #ruby
northfurr has joined #ruby
ta has quit [Remote host closed the connection]
<matthewburton> so, i have some gem that requires a rails upgrade?
leat has quit [Ping timeout: 240 seconds]
tkuchiki has joined #ruby
Pupp3tm4st3r has joined #ruby
ips|malc has joined #ruby
umgrosscol has quit [Remote host closed the connection]
<ekleog> nvm, it appears to do it cleanly, another mistake made me think it was it :)
drewvanstone has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
binaryplease has quit [Ping timeout: 246 seconds]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aganov has quit [Remote host closed the connection]
tagrudev has quit [Remote host closed the connection]
<matthewburton> is that saying rails needs to be updated to be compatible with the gem, or vice versa?
dopamean_ has quit [Ping timeout: 240 seconds]
dorei has joined #ruby
andywojo has quit [Ping timeout: 260 seconds]
andywojo has joined #ruby
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
Pupp3tm4st3r has joined #ruby
oo__ has quit [Remote host closed the connection]
dawkirst has joined #ruby
chouhoulis has quit [Remote host closed the connection]
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
bruno- has joined #ruby
<jhass> ?redmine matthewburton
<ruboto> matthewburton, Please join #redmine for help with it.
<jhass> my guess is that you didn't follow the installation instructions
jas02 has quit [Ping timeout: 240 seconds]
binaryplease has joined #ruby
drewvanstone has quit [Quit: Lost terminal]
<matthewburton> i’m in there. it’s empty.
<matthewburton> but thanks
jas02 has joined #ruby
drewvanstone has joined #ruby
drewvanstone has quit [Client Quit]
jhack has joined #ruby
drewvanstone has joined #ruby
Cust0sLim3n has quit [Ping timeout: 272 seconds]
<jhass> it's a 100 user channel, response can take 2-4 hours in such
Guest50 has joined #ruby
rbennacer has joined #ruby
saddad has joined #ruby
momomomomo has joined #ruby
<atomical> I'm getting an error when I set the primary key as another column, but continue to use the id column. Is that not supported in ActiveRecord?
tesuji has quit [Ping timeout: 256 seconds]
Cust0sLim3n has joined #ruby
<jhass> ?crosspost atomical
<ruboto> atomical, Please do not crosspost without at least telling so and mentioning provided suggestions and their outcome in all channels. Experience shows that people don't do either, and not doing so is considered rude.
drewvanstone has quit [Quit: leaving]
d10n-work has joined #ruby
<atomical> sorry
blue_deref has joined #ruby
msnyon has joined #ruby
duggiefresh has joined #ruby
krz has joined #ruby
gamename has joined #ruby
dopie has joined #ruby
leat has joined #ruby
negev has joined #ruby
kedare has quit [Read error: Connection reset by peer]
icarus has quit [Ping timeout: 250 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
jimms has joined #ruby
devoldmx has joined #ruby
jhack has quit [Remote host closed the connection]
matthewburton has quit [Quit: matthewburton]
dopamean_ has joined #ruby
silkfox has joined #ruby
UtkarshRay has quit [Ping timeout: 244 seconds]
bruno- has quit [Ping timeout: 252 seconds]
The_Phoenix has joined #ruby
jtdoncas has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
Torrieri has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
EagleDelta has joined #ruby
TPBallbag is now known as snowy
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
dgarstang has joined #ruby
<dgarstang> Where can I find an example of how to set credentials for the aws sdk v2?
kies has joined #ruby
paradoja has quit [Ping timeout: 260 seconds]
lxsameer_ has quit [Quit: Leaving]
<apeiros> dgarstang: presumably in aws sdk documentation
<dgarstang> apeiros: like here?
<dgarstang> apeiros
<dgarstang> dammit
<apeiros> yes
<dgarstang> "ec2 = Aws::EC2::Resource.new(region:'us-west-2', credentials: credentials)" ... it doesn't say anywhere how to set the variable credentials
<apeiros> I see credentials: Aws::Credentials.new('akid', 'secret'),
AugustoC has joined #ruby
<dgarstang> I assumed it was hash... doesn't work, and if it IS a hash, what are the exact names of the keys supposed to be?
jbw has quit [Ping timeout: 264 seconds]
<apeiros> I also see "The SDK searches the following locations for credentials" with a couple of info
xfbs has joined #ruby
jbw has joined #ruby
<dgarstang> apeiros: I prefer the ""ec2 = Aws::EC2::Resource.new(region:'us-west-2', credentials: credentials)" version
<dgarstang> So, again, in the use case of '"ec2 = Aws::EC2::Resource.new(region:'us-west-2', credentials: credentials)', how does one set credentials?
kp666 has quit [Quit: Leaving]
xfbs has quit [Client Quit]
<apeiros> 16:36 apeiros: I see credentials: Aws::Credentials.new('akid', 'secret'),
<dgarstang> apeiros: I prefer the alternatively documented version
jenrzzz has quit [Ping timeout: 260 seconds]
* apeiros rolls eyes
* apeiros slowly backs off
<[k-_> he means to set the variable credentials as Aws::Credentials.new(blah)
<dgarstang> apeiros: the one your pasing is from Aws.config.update
<[k-_> =_____=
<[k-_> dgarstang: they both expect the same object
<apeiros> dgarstang: it's documented on that site. yes. just read it. it's all there.
<dgarstang> [k-_ how do you know this?
* apeiros afk
jenrzzz has joined #ruby
<[k-_> dgarstang: how do you not know this
<dgarstang> [k-_: Because it doesn't specifically say it anywhere
<[k-_> do you want me to dig out the documentation for you?
<apeiros> [k-_: it's right there where they found their example code.
jhack has joined #ruby
<dgarstang> The docs says I can either use Aws.config.update , or I can pass them to Aws::EC2::Resource.new(). In the case of passing to Aws::EC2::Resource.new(), it does not say how credentials was defined
<apeiros> yes. just read that file.
* jhass gets popcorn
<dgarstang> I'll give it a try. I have no idea how your supposed to connect these two dots. If someone could point out exactly where it says this, it might be useful.
Rutix has joined #ruby
Rutix has joined #ruby
<dgarstang> Like, as in, some text to search
<apeiros> *right above your friggn code*
<apeiros> "credentials - An instance of one of the following classes:"
oo_ has joined #ruby
<apeiros> also "These options take precedence over the environment and Aws.config defaults"
<apeiros> from which follows that what works for config will also work there.
fullofcaffeine has joined #ruby
livathinos has quit [Ping timeout: 260 seconds]
<dgarstang> apeiros: Isn't that text related to Aws.config.update above only?
<dgarstang> "You may also pass configuration options" implies, ok... next option... something different
<dgarstang> Anyway, thanks
<apeiros> -.-
<dgarstang> hey hang on.... how am I supposed to set credentials tho. This still doesn't make any sense. If I don't use Aws.config.update()...,. then credentials = what?
paradoja has joined #ruby
<[k-_> readdoc --strict --no-be-very-very-strict --treat-things-as-separate --do-not-link-them-together
<apeiros> too much
* apeiros off for real now
<jhass> ?pry dgarstang
<ruboto> dgarstang, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
<jhass> get that and play
dimasg has quit [Ping timeout: 260 seconds]
umgrosscol has joined #ruby
The_Phoenix has quit [Ping timeout: 272 seconds]
<jhass> you're a programmer, for translating some code into other code we write tools
RegulationD has joined #ruby
<dgarstang> jhass: i don't even know how to set the object
riotjones has quit [Remote host closed the connection]
dimasg has joined #ruby
<dgarstang> jhass: i'm not a ruby programmer
<jhass> dgarstang: because you didn't try a single line of code
<dgarstang> jhass: how do you know this?
<jhass> that's just a very lame excuse
jgt1 has quit [Ping timeout: 250 seconds]
skade has quit [Ping timeout: 246 seconds]
<dgarstang> jhass: i've spent the last hour mucking with it
<jhass> I have to assume it by the kind of questions you ask
Iskarlar has joined #ruby
<jhass> you didn't include any assumptions you made and falsified
<jhass> so I have to assume you never made a single one
<dgarstang> jhass: Ruby might as well be greek to me. I don't take to it naturally so every inch of ruby is like walking a mile
rippa has joined #ruby
<dgarstang> but, that page as far as I can see, doesn't set credentials anywhere
<jhass> maybe you should hire somebody for this
<dgarstang> I suppose I could read between the lines and extract credentials: Aws::Credentials.new('akid', 'secret') from Aws.config.update() and do creds = Aws::Credentials.new('akid', 'secret') ?
<jhass> I guess? I thought you tried all these variants in the past hour
<[k-> you need an introduction to programming
<dgarstang> jhass: I've been in the biz for 16 years and I am quite capable with python and other languages. ruby is perl all over again and it's ... well not fun
<dgarstang> jhass: I had not tried that variant yet because reading between the lines normally isn't what you first do
camm has joined #ruby
<jhass> dgarstang: uh, your workday must be painful then
mikalauskas has joined #ruby
<dgarstang> jhass: very
<negev> can anyone tell me why Rack::File hangs for several seconds before serving a large-ish file?
<jhass> reading between the lines is all a programmer does, if you could literally translate them into code you could've written the code in the first place
<jhass> negev: guess it doesn't do a streaming API so it has to read it into memory first
<dgarstang> jeez who'd want to be a programmer all day
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
dimasg has quit [Ping timeout: 250 seconds]
<jhass> you apparently don't, as said hire somebody else
elepedus has quit [Ping timeout: 244 seconds]
mary5030 has joined #ruby
nscheurich has joined #ruby
jimms has quit [Remote host closed the connection]
skade has joined #ruby
tonios57 has joined #ruby
EagleDelta has quit [Ping timeout: 252 seconds]
<dgarstang> Examples of the aws sdk are hard to come by
<jhass> so you're approach is to whine until somebody does it for you for free?
<jhass> *your
drewvanstone has joined #ruby
<dgarstang> jhass: let me rephrase. if someone has some links to some web pages with useful examples, that would be very much appreciated
khebbie has joined #ruby
<jhass> they're useful
<dgarstang> jhass: Thanks!!!! However, API docs are not examples
_blizzy_ has quit [Ping timeout: 260 seconds]
<jhass> it links to the README
Pupp3tm4st3r has quit [Remote host closed the connection]
r0x0rZ has quit [Remote host closed the connection]
lannonbr has joined #ruby
r0x0rZ has joined #ruby
stamina has quit [Ping timeout: 272 seconds]
curses has quit [Quit: leaving]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dblessing has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
<dgarstang> jhass: That doesn't assist. Thanks for your help. However, I'll have to keep googling because that page you referred me to does not seem to have any information about how to list and filter instances
<jhass> yeah, I think you didn't try anything
jas02 has quit [Quit: jas02]
<jhass> what error do you get from your guess?
<dgarstang> jhass: How can I try what I don't know?
<ljarvis> well, they're not a programmer. Not even sure why they're doing this
araujo has quit [Read error: Connection timed out]
* ljarvis tries to build a car
araujo has joined #ruby
<apeiros> they said they are a programmer, just not ruby.
<apeiros> maybe learning ruby would be a sensible first step.
<apeiros> docs are generally not geared towards beginners.
<ljarvis> ah I read it wrong. Yes I concur, learning Ruby in order to write Ruby is probably a good idea
neilnorthrop has joined #ruby
jgt1 has joined #ruby
drewvanstone has quit [Quit: leaving]
drewvanstone has joined #ruby
<apeiros> it'd also of course be sensible to disclose that early when asking a question, so the answer has the right level
<anker> who are they and why are they a programmer
oo_ has quit [Remote host closed the connection]
<apeiros> anker: dgarstang
machinewar has joined #ruby
<dgarstang> So now, I'm getting this... https://gist.github.com/dgarstang/74ca0c12fe25262db851
sepp2k has joined #ruby
momomomomo has quit [Quit: momomomomo]
khebbie has quit [Remote host closed the connection]
grios has joined #ruby
momomomomo has joined #ruby
but3k4 has quit [Ping timeout: 240 seconds]
<gregf_> dgarstang: the docs should be quite clear :/
rodfersou has quit [Quit: leaving]
<dgarstang> ljarvis: Thanks. No idea how you arrived at that from the docs
anisha has quit [Quit: Leaving]
negev has quit [Quit: leaving]
<[k-_> it's in the Aws::EC2::Resource documentation?
binaryplease has quit [Ping timeout: 260 seconds]
Hounddog has quit [Read error: Connection reset by peer]
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
User4587_ has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skade has quit [Ping timeout: 272 seconds]
<dgarstang> [k-_: I don't see anything about it saying you had to create credentials first, then a client from that, and finally a resource from that. In any case, I'm still getting the sme result with ljarvis's example https://gist.github.com/dgarstang/5c84af0bf7e90c8ac39c
<[k-_> are you using a legacy browser
<[k-_> that cant display colours
<dgarstang> [k-_: No.
rubie has joined #ruby
AlexAltea has joined #ruby
khebbie has joined #ruby
<[k-_> ljarvis: puts has side effects, which convention are you following?! it isnt on one line as well!
jacaballero has joined #ruby
<ljarvis> yeah the documentation is really shit quite honestly, I remember someone asking about this a couple of months ago in here and it took a while to come up with a solution
pawnbox has quit [Remote host closed the connection]
skade has joined #ruby
Guest50 has joined #ruby
Iskarlar has joined #ruby
dagda1_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
<ljarvis> dgarstang: did you try the Aws.config.update option too?
iamninja has joined #ruby
<dgarstang> ljarvis: not yet
<ljarvis> try it
dawkirst has quit [Quit: Leaving...]
<dgarstang> ok
bstrarm is now known as busterarm
riotjones has joined #ruby
RobertBirnie has joined #ruby
khebbie has quit [Ping timeout: 250 seconds]
<dgarstang> ljarvis: if I do that, I wont have a client object...
alem0lars has joined #ruby
<ljarvis> dgarstang: that's ok you dont need one
<ljarvis> a resource will use a default client if you dont provide a custom one
centrx has joined #ruby
<ljarvis> so you're setting credentials on a more global scale
m1lt0n has quit [Quit: Lost terminal]
<ljarvis> (i.e every default client will use them)
<dgarstang> ljarvis: ok, that worked. Do we have a doc bug then?
CorySimmons has joined #ruby
rbennacer has quit [Read error: Connection reset by peer]
[Butch] has joined #ruby
but3k4 has joined #ruby
<ljarvis> dgarstang: maybe. Honestly I don't have the patience with this gem or their docs. Feel free to report it if you want
rbennacer has joined #ruby
<dgarstang> ljarvis: Thanks for your help
<dgarstang> It seems I'm not the only one who has issue with the aws sdk docs
<ljarvis> nope
<gregf_> dgarstang: https://gist.github.com/anonymous/e65b221ca96bd6ab25d1 <= i just tried this(first time using ruby) and it works
<ljarvis> that's not even close to the same thing gregf_
<ljarvis> well, close, perhaps
<ljarvis> but a completely different service
iamninja has quit [Ping timeout: 265 seconds]
<gregf_> replce S3 for EC2
chohe has joined #ruby
<dgarstang> That's pretty much what I tried with ec2
<ljarvis> lol
<dgarstang> sure, I'll try again
<gregf_> s/for/with/
<gregf_> dgarstang: you can also pick the accesskey/secret key from the environment :)
yardenbar has quit [Quit: Leaving]
<dgarstang> gregf_: this will be a chef helper, so env isn't an option
snowy is now known as Ballkenede
tkuchiki has joined #ruby
<gregf_> aight
<dgarstang> gregf_: your earlier pastie works. Well I dont bloody know now.
terlar has joined #ruby
<dgarstang> gregf_: yours is more succinct, so I'll start with that.
bronson has joined #ruby
* jhass guesses a case of editing the wrong file
<dgarstang> :-\
dgutierrez1287 has joined #ruby
rodfersou has joined #ruby
<ljarvis> you should start with what works
jpfuentes2 has joined #ruby
j_mcnally has joined #ruby
<dgarstang> ljarvis: yep
skade has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
skade has joined #ruby
rbennace_ has joined #ruby
m1lt0n has joined #ruby
Aderium has joined #ruby
pawnbox has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
bronson has quit [Ping timeout: 272 seconds]
khebbie has joined #ruby
momomomomo has joined #ruby
sevenseacat has quit [Quit: .]
rbennacer has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Ping timeout: 272 seconds]
hobodave has joined #ruby
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roolo has joined #ruby
<gregf_> dgarstang: sorry forgot to mention. i'd tried what ljarvis's pasted and it'd worked :/
chohe has quit [Quit: This computer has gone to sleep]
skade has quit [Read error: No route to host]
hooper has joined #ruby
skade has joined #ruby
pawnbox has joined #ruby
roolo has quit [Ping timeout: 244 seconds]
MasterPiece has quit [Quit: Leaving]
tkuchiki has quit [Remote host closed the connection]
maletor has joined #ruby
jimms has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rubie has quit [Remote host closed the connection]
tkuchiki has joined #ruby
dstarh has quit [Quit: Textual IRC Client: www.textualapp.com]
dagda1_ has quit [Quit: Textual IRC Client: www.textualapp.com]
dagda1 has joined #ruby
hmsimha_ has quit [Ping timeout: 265 seconds]
sinkensabe has quit [Remote host closed the connection]
northfurr has joined #ruby
Iskarlar has joined #ruby
eminencehc has joined #ruby
chohe has joined #ruby
bruno- has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lannonbr has quit [Quit: WeeChat 1.2]
kith has joined #ruby
rehat has joined #ruby
pawnbox has quit [Remote host closed the connection]
dfockler has joined #ruby
camm has left #ruby [#ruby]
Papierkorb has joined #ruby
pdoherty has joined #ruby
<Papierkorb> Hi. I think I found a bug with Opal (A transpiler for Ruby -> Javascript). The snippet http://pastebin.com/Q8xX0SmZ gives the output "Foobar: foo" with MRI, but with Opal it returns the @cache hash instead. Question, is this a Opal bug, or am I triggering weird behaviour?
<ruboto> Papierkorb, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/333ec65f37a3e3ec0a87
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
<Papierkorb> ah forgot about that
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NeverDie has joined #ruby
haxrbyte has joined #ruby
rbennace_ has quit [Remote host closed the connection]
khebbie has quit [Remote host closed the connection]
rbennacer has joined #ruby
towski_ has joined #ruby
jgt1 has quit [Ping timeout: 244 seconds]
wprice has quit [Quit: wprice]
dumdedum has quit [Quit: foo]
jenrzzz has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
banister has joined #ruby
haxrbyte_ has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
podman has joined #ruby
tkuchiki has quit [Remote host closed the connection]
hobodave has quit [Quit: Computer has gone to sleep.]
einarj has quit [Remote host closed the connection]
dagda1 has quit [Quit: Textual IRC Client: www.textualapp.com]
<[k-_> @cache hash? you mean {} and not nil even?
Ballkenede has quit []
maletor has quit [Quit: Computer has gone to sleep.]
nfk has quit [Remote host closed the connection]
<Papierkorb> [k-_: The code outputs "{}" when run in Opal, but returns "Foobar" when run with MRI. You can try it here http://opalrb.org/try/
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Silox| has joined #ruby
<Papierkorb> [k-_: Opal does the same what MRI does when adding parantheses to the expensive call line, MRI behaves the same regardless of them
neilnort_ has joined #ruby
NeverDie has joined #ruby
joonty has quit [Quit: joonty]
skade has quit [Read error: No route to host]
hobodave has joined #ruby
skade has joined #ruby
<[k-_> seems like a bug to me, but im no expert
neilnorthrop has quit [Ping timeout: 246 seconds]
bhorn1 is now known as bhorn1|away
dfockler has quit [Remote host closed the connection]
<[k-_> (now reading the javascript)
<Papierkorb> Yeah, when you look at the generated JS with and without the (), you see that without them the code after the ||= is gone completely
UtkarshRay has joined #ruby
NeverDie has quit [Max SendQ exceeded]
<[k-_> yup
amclain has joined #ruby
matugm has quit [Quit: Leaving]
dfockler has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
NeverDie has joined #ruby
baweaver has joined #ruby
User4587_ has quit [Ping timeout: 250 seconds]
m1lt0n has quit [Quit: Lost terminal]
mleung has joined #ruby
bhorn1|away is now known as bhorn1
mleung has quit [Client Quit]
diegoaguilar has left #ruby ["Leaving"]
baroquebobcat has joined #ruby
pawnbox has joined #ruby
yqt has joined #ruby
lsmola has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
rcvalle has joined #ruby
momomomomo_ has joined #ruby
rbennacer has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
RobertBirnie has joined #ruby
CorySimmons has quit [Quit: Bye!]
pawnbox has quit [Ping timeout: 272 seconds]
RobertBi_ has joined #ruby
rideh has quit [Quit: zap]
doublemalt_ has quit [Ping timeout: 256 seconds]
khebbie has joined #ruby
drewvanstone has quit [Quit: leaving]
RobertBirnie has quit [Ping timeout: 265 seconds]
dgutierrez1287 has joined #ruby
decaff has joined #ruby
rodfersou has quit [Quit: leaving]
jgt1 has joined #ruby
pawnbox has joined #ruby
hanmac has joined #ruby
maletor has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
khebbie has quit [Ping timeout: 245 seconds]
pawnbox has quit [Remote host closed the connection]
devoldmx has joined #ruby
lele has quit [Quit: Coyote finally caught me]
bhorn1 is now known as bhorn1|away
rbennacer has joined #ruby
towski_ has quit [Remote host closed the connection]
<j416> been trying remove_method and whatnot but it doesn't work D:
bronson has joined #ruby
pietr0 has joined #ruby
<[k-_> class Kernel; undef logger; end
mleung has joined #ruby
devoldmx has quit [Ping timeout: 260 seconds]
soahccc_ is now known as soahccc
dfockler has quit [Ping timeout: 252 seconds]
<rehat> this might be a silly question but can we write ruby chrome apps? I only see Java, Python, and PHP on google's sample page
mleung has quit [Client Quit]
kies has quit [Ping timeout: 244 seconds]
dfockler has joined #ruby
<apeiros> ugh, non-module_function-Kernel-method
<[k-_> transpiling to javascript maybe
mikalauskas has left #ruby [#ruby]
<Papierkorb> [k-_: talking about Opal, haha
n008f4g_ has joined #ruby
<[k-_> ¯\_(ツ)_/¯
lele has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
bhorn1|away is now known as bhorn1
<soahccc> I have a problem finding information about this: I use net-ssh and net-sftp in a threaded environment. Are these libs thread safe? When I execute a command via ssh and try to lstat the resulting file via sftp (2nd ssh connection) I get status exception "no such file" (which is possible) but then my script just freezes and on the remote auth.log I can find a "Bad packet length" error. Graceful shutdown is able to close the sftp but not the ssh connecti
<soahccc> on :(
mikecmpbll has quit [Ping timeout: 260 seconds]
<j416> [k-_: thanks! remove_method actually seemed to work, I overlooked somethign
<soahccc> Since sftp has it's own connection I don't know why using the sftp connection while a ssh channel is active results in this behaviour
benlieb has joined #ruby
<j416> [k-_: should I use undef logger or remove_method :logger ? why would I use one over the other?
yqt has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
<j416> (we had both a module method and instance method on Kernel with teh same name, causing headache :P)
nettoweb has joined #ruby
mleung has joined #ruby
<soahccc> Since sftp has it's own connection I don't know why using the sftp connection while a ssh channel is active results in this behaviour
bricker has joined #ruby
<soahccc> wups sry
AugustoC has quit [Quit: Connection closed for inactivity]
fantazo has joined #ruby
jpfuentes2 has joined #ruby
<[k-_> j416: this is the same reason why people choose alias or alias_method
Torrieri has quit [Quit: Be back later ...]
<[k-_> one is a keyword another isnt
<[k-_> if you use alias, use undef for style consistency
jenrzzz has quit [Ping timeout: 260 seconds]
hobodave_ has joined #ruby
jbw has quit [Ping timeout: 246 seconds]
chinmay_dd has joined #ruby
<apeiros> [k-_: remove_method and undef_method do different things
jenrzzz has joined #ruby
<apeiros> not sure which of the two the undef keyword does, though
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
<j416> apeiros: I was asking about undef not undef_method, though
kr3ssh has quit [Ping timeout: 256 seconds]
<j416> seems undef_method does it iteratively up the hierarchy
<j416> somehow
Musashi007 has joined #ruby
<[k-_> undef_method prevents the class from calling it
<apeiros> j416: so? still applies, depending on which behavior undef has.
<[k-_> "fake remove"
hobodave has quit [Ping timeout: 240 seconds]
saddad has quit [Ping timeout: 272 seconds]
kies has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<j416> nice, thanks!
krz has quit [Quit: WeeChat 1.2]
pawnbox has joined #ruby
Junaos has quit [Quit: ZNC - http://znc.in]
paradoja has quit [Ping timeout: 260 seconds]
eminencehc has quit [Remote host closed the connection]
c0m0 has quit [Ping timeout: 260 seconds]
skade has joined #ruby
nofxx has joined #ruby
nofxx has joined #ruby
j_mcnally has joined #ruby
BTRE has quit [Quit: Leaving]
RegulationD has quit [Remote host closed the connection]
dopie has quit [Quit: This computer has gone to sleep]
eminencehc has joined #ruby
RegulationD has joined #ruby
<shevy> the [k-_ bot is better than the ruboto bot
<shevy> [k-_ automagically inserts helpful links
krisquigley has quit [Remote host closed the connection]
<apeiros> string literals frozen by default in ruby 3.0
anaeem1 has joined #ruby
<[k-_> shevy: i need to charge you for the service
<[k-_> \o/
d2dchat has joined #ruby
leafybas_ has quit []
<dfockler> Are we getting some immutable data types up in here!!!
leafybasil has joined #ruby
hobodave_ has quit [Quit: Computer has gone to sleep.]
suchness has joined #ruby
j_mcnally has quit [Ping timeout: 260 seconds]
<[k-_> NameError#name?
<shevy> ruby 3.0 exists?
<apeiros> google doc not loading for me :(
<shevy> lol
<shevy> "Yuki still does not know what it is"
<[k-_> seems like a more succinct error message would be "[NameError] Foo#method does not exist"
j_mcnally has joined #ruby
iamninja has joined #ruby
<[k-_> well, it could be a variable too
<[k-_> i guess
<shevy> so what advantage will it have when string literals are frozen?
<[k-_> your face wouldn't blow up
leat has quit [Ping timeout: 256 seconds]
<shevy> there must be a real reason [k-_
<dfockler> string literals could live on the stack, and would be faster, I'm guessing from my Rust experience
<shevy> aha
Junaos has joined #ruby
decaff has quit [Remote host closed the connection]
<[k-_> seems like a more succinct error message would be "[NameError] Foo#variable does not exist" or "[NameError] Foo#method does not have <variable> in scope"
<shevy> hmm
<shevy> "GitHub: Term of service; GitHub Issues are not portable"
<shevy> I don't get this
<dfockler> those are probably two separate things
shadoi has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
<shevy> ok
<shevy> well
<dgarstang> What's the ruby way to pass an optional hash to a function and check it's existence in the function?
<shevy> what do the mean with "not portable"?
<shevy> can't you just export the github issues into another tracker?
<shevy> dgarstang usually it comes as the last argument
<[k-_> "it has been rejected before 2.2 and early 2.3 development by matz
<[k-_> amatsuda: recently many pull requests are sent which appeanls adding “..”.freeze"
_blizzy_ has joined #ruby
<dgarstang> shevy: foo = {} or foo = nil ?
<shevy> dgarstang and you can always check for whether something is nil or non-nil
rakm has joined #ruby
<shevy> yeah if foo is nil then it can not be a hash :)
troyready has joined #ruby
<shevy> foo.is_a? Hash # to check if it is a hash
<dgarstang> shevy: lets say it was never defined in the first place
leat has joined #ruby
<shevy> never defined? then it does not exist right
<dgarstang> correct
polysics has quit [Remote host closed the connection]
<apeiros> dgarstang: a variable always references an object
<dgarstang> but if it does exist, it will be a hash
symm- has quit [Quit: Leaving...]
<apeiros> there's no such thing as undefined in ruby
<shevy> that depends on whether you pass the hash there
<shevy> you could pass an Array too
polysics has joined #ruby
<[k-_> apeiros: there is, it has object_id of 6
<[k-_> *spooky*
<apeiros> [k-_: that's in the C API only
<[k-_> you cant obtain it though
<apeiros> Qundef you mean, right?
BTRE has joined #ruby
<[k-_> *spoooooky*
<dgarstang> shevy: if condition, set hash. func(hash)
<shevy> if it is a hash
<shevy> we could do:
<shevy> hash = ''
<dgarstang> hash may or may not be defined. ugh, that makes no sense
<shevy> :)
Torrieri has joined #ruby
Torrieri has joined #ruby
<shevy> if you want to confuse people you could give wrong variable names to things
<shevy> array_dataset = {}
<dgarstang> one day companies will realise open plan offices make for stupid employees
Cust0sLim3n has quit [Ping timeout: 244 seconds]
doublemalt_ has joined #ruby
klaas has joined #ruby
<shevy> where do these core dev meetings happen? Osaka?
<havenwood> shevy: Tokyo
<[k-_> i think mutable_string_literal: true should be declared, mutable_string_literal: false is by default would be betteerrr
<dgarstang> let me try this... can I have optional argumements in ruby?
<shevy> ok
<havenwood> dgarstang: optionally
<dgarstang> so I can do foo(arg) or also foo() ?
<shevy> dgarstang yes, assign a default
<shevy> def foo(arg = '')
<shevy> def foo(arg = {})
<shevy> etc.
djbkd has joined #ruby
<shevy> if you wish to gather stuff into a hash, the most common name is "options" options = }{
fantazo has quit [Ping timeout: 245 seconds]
<shevy> erm, {}
<[k-_> using the var_name = default_object syntax
duggiefresh has quit [Remote host closed the connection]
<shevy> dgarstang I think that is very similar to python too
_blizzy_ has quit [Read error: Connection reset by peer]
polysics has quit [Ping timeout: 240 seconds]
bhorn1 is now known as bhorn1|away
<dorei> let's say I have a hash with a set of keys (let's call it A) and I want to change them into a set of keys B, is there some gem that will give me some magic/abstraction over this kind of transformation?
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
alem0lars has quit [Quit: Quit]
kies has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
<centrx> dorei, ActiveSupport has transforms_keys ?
<Papierkorb> dgarstang: In fact, a trailing options hash is so common in Ruby, that it got its special syntax: def foo(a, b, something: true, asd:) <- a, b are unnamed mandatory arguments, something is an optional named argument, asd: is a mandatory named argument. Call could look like this: foo(123, 456, asd: 789)
<[k-> you want to migrate the values?
<dorei> centrx: no idea, i'm almost clueless about rails gems, but i'll give it a look :)
Cust0sLim3n has joined #ruby
_blizzy_ has joined #ruby
Torrieri has quit [Quit: Be back later ...]
dgarstang has quit [Ping timeout: 245 seconds]
<centrx> dorei, ActiveSupport is a utility gem that has a lot of useful extensions
<[k-> there is also **args for hash splattery goodness
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<dfockler> dorei: you can also just iterate over the hash values and create a new hash with the new keys
polpak has joined #ruby
rideh has joined #ruby
<[k-> s/goodness/badness/
mistym has quit [Ping timeout: 246 seconds]
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dorei> **args?
<Papierkorb> [k-: *args.flatten could be more efficient, as the splat operator expands the stuff on stack
livathinos has joined #ruby
arooni-mobile has joined #ruby
<[k-> dorei, not directed to you :p
* [k- nods
<dorei> lol, okie :)
leat has quit [Remote host closed the connection]
rubie has joined #ruby
<havenwood> >> hash = {a: :key_lime, b: :chocolate_lava, c: :berry_cobbler}; keys = [:x, :y, :z]; hash.zip(keys).map { |(old_key, value), new_key| [new_key, value] }.to_h
<ruboto> havenwood # => {:x=>:key_lime, :y=>:chocolate_lava, :z=>:berry_cobbler} (https://eval.in/419820)
leat has joined #ruby
rubie has quit [Read error: Connection reset by peer]
<apeiros> *args.flatten sounds like doing something terribly wrong.
towski_ has joined #ruby
Norrin has left #ruby ["Dueces"]
rubie has joined #ruby
<havenwood> dorei: ^ would just mapping work?
<Papierkorb> same for ** ;)
pdoherty has quit [Remote host closed the connection]
<dorei> havenwood: doesnt this depend upon the ordering of the keys?
<havenwood> dorei: Yes. How do you actually map them? Have a key to key conversion?
radgeRayden has quit [Ping timeout: 246 seconds]
<havenwood> dorei: Like?: {a: :x, b: :y}
<dorei> havenwood: yeap, and i have some keys i want to discard, but i think i'll tackle that later
polysics has joined #ruby
livathinos has quit [Client Quit]
<banister> yorickpeterse what does "klaar" mean in english?
<apeiros> map_keys(mapping); mapped = {}; mapping.each do |from, to| mapped[to] = self[from] end; end
<apeiros> and map_keys! just has replace(map_keys(mapping))
UtkarshRay has quit [Ping timeout: 244 seconds]
<havenwood> >> hash = {a: :key_lime, b: :chocolate_lava, c: :berry_cobbler}; conversion = {a: :x, b: :y, c: :z}; conversion.map { |old, new| [new, hash[old]] }.to_h
<ruboto> havenwood # => {:x=>:key_lime, :y=>:chocolate_lava, :z=>:berry_cobbler} (https://eval.in/419822)
<apeiros> IMO too trivial to make a gem for something like that
<havenwood> dorei: ^
krisquigley has joined #ruby
unver has quit [Ping timeout: 250 seconds]
TomyLobo has joined #ruby
bap1313 has joined #ruby
jamesaxl has joined #ruby
<Papierkorb> havenwood: what about Hash#update ?
bruno- has quit [Ping timeout: 255 seconds]
suchness has quit [Remote host closed the connection]
casadei_ has quit [Remote host closed the connection]
<dorei> havenwood: thanx :)
casadei_ has joined #ruby
<Papierkorb> >> {a: :key_lime, b: :chocolate_lava, c: :berry_cobbler}.update({a: :x, b: :y, c: :z})
<ruboto> Papierkorb # => {:a=>:x, :b=>:y, :c=>:z} (https://eval.in/419823)
<Papierkorb> dorei: ^ ?
unver has joined #ruby
<dorei> Papierkorb: i want only to change the keys, not the values
casadei_ has quit [Remote host closed the connection]
<Papierkorb> ah, sorry
elepedus has joined #ruby
blue_deref has quit [Quit: bbn]
<centrx> hash.transform_keys { |k| MAPPING[k] }
<dorei> centrx: yeah, that seems to be the most terse of all :)
<havenwood> dorei: Rails?
fantazo has joined #ruby
<dorei> havenwood: only activesupport :p
<havenwood> dorei: aha!
<havenwood> require 'active_support/core_ext/hash/keys'
prestorium has joined #ruby
<havenwood> dorei: then yeah, you get the fancy
krisquigley has quit [Ping timeout: 255 seconds]
decaff has joined #ruby
decaff has quit [Remote host closed the connection]
platzhirsch has left #ruby [#ruby]
<havenwood> >> [:x, :y, :z].sample
<ruboto> havenwood # => :y (https://eval.in/419826)
<havenwood> chocolate lava it is!
<havenwood> i can accept that
<havenwood> should go well with coffee
chichou has quit [Read error: Connection reset by peer]
chichouw has joined #ruby
shmilan has joined #ruby
BTRE has quit [Quit: Leaving]
jacaballero has joined #ruby
ishahnaz has quit []
roolo has joined #ruby
duggiefresh has joined #ruby
kingman has joined #ruby
<havenwood> shevy: You were asking about 2.3.0 schedule at some point if I recall?: https://bugs.ruby-lang.org/projects/ruby-trunk/wiki/ReleaseEngineering23
dgutierrez1287 has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
jenrzzz has quit [Ping timeout: 260 seconds]
symm- has joined #ruby
leat has quit [Ping timeout: 244 seconds]
Soda has quit [Remote host closed the connection]
Torrieri has joined #ruby
jenrzzz has joined #ruby
rdark has quit [Quit: leaving]
roolo has quit [Ping timeout: 265 seconds]
leat has joined #ruby
zeroDivisible has quit [Ping timeout: 240 seconds]
symm- has quit [Client Quit]
khebbie has joined #ruby
elepedus has quit [Ping timeout: 240 seconds]
barhum2013 has joined #ruby
stan_ has quit [Ping timeout: 246 seconds]
hobodave has joined #ruby
bluOxigen has joined #ruby
skade has quit [Ping timeout: 244 seconds]
blueOxigen has quit [Ping timeout: 250 seconds]
jimms has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<shevy> aha
<havenwood> shevy: :O --enable-frozen-string-literal
benlieb has quit [Quit: benlieb]
jgt1 has quit [Ping timeout: 244 seconds]
j_mcnally has quit [Read error: Connection reset by peer]
j_mcnally has joined #ruby
barhum2013 has quit [Ping timeout: 265 seconds]
BTRE has joined #ruby
benlieb has joined #ruby
Guest50 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DelDotB has joined #ruby
mikecmpbll has joined #ruby
centrx has quit [Quit: "You cannot fix a machine by just power-cycling it with no understanding of what is going wrong."]
benlieb has quit [Client Quit]
leat has quit [Remote host closed the connection]
bootstrappm has joined #ruby
leat has joined #ruby
No1Phan has joined #ruby
chouhoulis has quit [Remote host closed the connection]
benlieb has joined #ruby
hobodave has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
arooni-mobile has left #ruby ["Leaving"]
chouhoulis has joined #ruby
djbkd_ has joined #ruby
<No1Phan> .
wprice has joined #ruby
juanpaucar has quit [Remote host closed the connection]
dopie has joined #ruby
infernix has quit [Ping timeout: 250 seconds]
kingman has quit [Quit: (null)]
benlieb has quit [Client Quit]
kies has joined #ruby
<yorickpeterse> banister: "done"
chichouw has quit [Remote host closed the connection]
shmilan has quit [Ping timeout: 265 seconds]
djbkd_ has quit [Ping timeout: 250 seconds]
isxek has quit [Quit: Page closed]
benlieb has joined #ruby
rideh has quit [Quit: peace]
clickedlabs has joined #ruby
polysics has quit [Remote host closed the connection]
<clickedlabs> Anyone here know nginx
<clickedlabs> ?
<clickedlabs> need help with my setup. Can't seem to get it right
polysics has joined #ruby
baweaver has joined #ruby
<polpak> clickedlabs: just as your question, don't ask to ask
<polpak> clickedlabs: if someone can help they will
<clickedlabs> Sorry new to this
<polpak> clickedlabs: no worries.
paulcsmith has joined #ruby
tesaf has joined #ruby
doublemalt_ has quit [Ping timeout: 246 seconds]
<clickedlabs> OK so I'm trying to setup nginx php-fpm, but nginx gives me a white screen on my configuration.
leat has quit [Remote host closed the connection]
leat has joined #ruby
<tesaf> @hostname.split("-")[2].split(/(\d+)/)[1] -- getting this error "Detail: undefined method `split' for nil:NilClass"
<clickedlabs> NGINX user/group is internet:internet .. PHP FPM user/group is also internet:internet .. using /var/run/php-fpm.sock
<tesaf> does new ruby not support the nested splits?
nuttermb has quit [Ping timeout: 244 seconds]
shmilan has joined #ruby
<polpak> tesaf: @hostname.split("-")[2] is nil
<polpak> tesaf: so maybe your hostname isn't what you think it is
<tesaf> okay, thanks for the hint :) not ultra fam with ruby
<polpak> > 'localhost'.split('-')[2]
<polpak> err
No1Phan has quit []
<polpak> >> 'localhost'.split('-')[2]
<ruboto> polpak # => nil (https://eval.in/419842)
polysics has quit [Ping timeout: 240 seconds]
<polpak> clickedlabs: what is php-fpm?
unver has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<clickedlabs> is a PHP server for nginx
<clickedlabs> nginx parses .php files with it
baweaver has quit [Remote host closed the connection]
ishahnaz has joined #ruby
<Coraline> clickedlabs: you might have more luck on a PHP channel for this?
<clickedlabs> Probably but it's invite only
<Coraline> It doesn't sound like an nginx problem to me
<clickedlabs> I figured since ruby / rails people have nginx experience
<havenwood> clickedlabs: Is it invite only or do you just have to register to speak?
<havenwood> clickedlabs: Or register to join?
<clickedlabs> says invite only for me
rideh has joined #ruby
<Coraline> It's ##php
<Coraline> Two octothorps
cFouts has left #ruby ["Textual IRC Client: www.textualapp.com"]
<clickedlabs> #php Cannot join channel (+i) - you must be invited
<clickedlabs> ahh
lannonbr has joined #ruby
<clickedlabs> let me try that
<Coraline> Okie
jimms has joined #ruby
clickedlabs has quit [Quit: Page closed]
decaff has joined #ruby
choke has joined #ruby
bengan has joined #ruby
<bengan> Hello
shmilan has quit [Ping timeout: 260 seconds]
ta has joined #ruby
tvw has joined #ruby
codecop has joined #ruby
krisquigley has joined #ruby
khebbie has quit [Remote host closed the connection]
lannonbr has quit [Quit: WeeChat 1.2]
Guest50 has joined #ruby
rubie has quit [Remote host closed the connection]
sepp2k has quit [Ping timeout: 264 seconds]
luksaur has quit [Ping timeout: 265 seconds]
rfmind has quit [Quit: WeeChat 1.2]
infernix has joined #ruby
rfmind has joined #ruby
<dfockler> Is there some drawback to OpenStruct or do people just not use it a lot?
bumbar_ has quit [Ping timeout: 256 seconds]
diegoviola has joined #ruby
r0x0rZ has quit []
<dfockler> or struct in general for that matter
<jhass> dfockler: OpenStruct is quite slow
al2o3-cr has quit [Ping timeout: 260 seconds]
<jhass> Struct is fine
yasha0x80 has joined #ruby
<diegoviola> please help me refactor my vending machine code: https://gist.github.com/2f81626aa7f8aa4da58c
krisquigley has quit [Ping timeout: 252 seconds]
<pipework> diegoviola: Thought you didn't need help with coding it. :p
<pipework> diegoviola: Why are you calling get_balance(items) in the initialize method?
<jhass> diegoviola: make items an @instance_variable, initialize it from a constant @items = ITEMS
<diegoviola> pipework: I was wrong I guess
darkf has quit [Read error: Connection reset by peer]
<pipework> >> Class.new { def initialize Object.new; end }.new
<ruboto> pipework # => /tmp/execpad-9371a65beae9/source-9371a65beae9:2: formal argument cannot be a constant ...check link for more (https://eval.in/419880)
skade has joined #ruby
<jhass> don't use get_, set_, is_ prefixes, find a different verb or omit them
<pipework> >> Class.new { def initialize; Object.new; end }.new
<ruboto> pipework # => #<#<Class:0x40b3609c>:0x40b372bc> (https://eval.in/419881)
ta has quit [Remote host closed the connection]
<pipework> Note how an instance of Class was returned, not an instance of Object.
<pipework> Just seems odd to use #initialize like that.
<jhass> pipework: I think that's meant to be print_balance
skade has quit [Client Quit]
<diegoviola> pipework: I'm passing items to the menu method
shadoi has quit [Quit: Leaving.]
<ekleog> Is there a way to emulate sending two blocks as arguments to one function? I thought of making a function that takes a block and returns a partial function that takes the other block, but that would require the user to add a .call
<pipework> ekleog: Send one as a lambda/proc
<pipework> Or both
<shevy> aawww that was apeiros old idea... to be able to have more than one block
<pipework> Or just call the first method with one block and then have the returning object respond to a method that takes another block before doing whatever you needed with both blocks.
khebbie has joined #ruby
<pipework> shevy: I wouldn't say it was 'his', but he might have championed it at some point.
<ekleog> That's what I tried to avoid for the end-user, to be able to write something like not_really_if { |c| condition } { |c| code_block }
<jhass> ekleog: then the answer is no
<pipework> ekleog: Return a proc from the first that takes the second block.
<pipework> ekleog: not_really_if -> {|c| condition}, -> {|c| code_block}
<apeiros> shevy: we always were able to send multiple blocks, using proc{}/lambda{} (and since 1.9 also ->{})
<pipework> One of those could be a block, but it seems like mental masturbation
sepp2k has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
<apeiros> shevy: what I wanted was having the same syntax for multiple blocks
barhum2013 has joined #ruby
<shevy> omg the ->
jenrzzz has joined #ruby
<pipework> The dashrocket!
<ekleog> Oh right, the arrow syntax, thanks!
Guest50 has quit [Quit: Textual IRC Client: www.textualapp.com]
ta has joined #ruby
<shevy> :\
<shevy> if we'd also have a <- operator
Cache_Money has joined #ruby
yfeldblum has joined #ruby
Torrieri has quit [Quit: Be back later ...]
barhum2013 has quit [Client Quit]
Norrin has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
chinmay_dd has joined #ruby
tmillc has joined #ruby
baweaver has joined #ruby
<tmillc> I'm not sure what I did wrong here, https://gist.github.com/anonymous/51601d143d8f3fa5dffc
Cache_Money has left #ruby [#ruby]
Silox| has quit [Quit: Connection closed for inactivity]
<diegoviola> jhass: so like this?
stef204 has joined #ruby
<havenwood> tmillc: Try having `arr` be the last expression in the method, so it's implicitly returned.
lele is now known as Guest24
<havenwood> >> arr.reverse! if false
<ruboto> havenwood # => nil (https://eval.in/419899)
rbennacer has quit [Remote host closed the connection]
<havenwood> tmillc: ^ if your if statement has a falsey value it'll return `nil` from your method
northfurr has quit [Quit: northfurr]
<havenwood> tmillc: since it's the last expression evaluated
<tmillc> havenwood: so another solution could be adding an explicit return?
<shevy> tmillc always return something
AlphaAtom has joined #ruby
troulouliou_div2 has quit [Ping timeout: 245 seconds]
<tmillc> thanks, that did it
kidoz has joined #ruby
northfurr has joined #ruby
dstarh has joined #ruby
<jhass> diegoviola: I wouldn't move initializing @items to balance, but that's the gist. Now if you want to make it good code you need to make it two classes, one that has the state and the logic of the VendingMachine and one that uses that class and does the IO/user interface
jenrzzz has quit [Ping timeout: 245 seconds]
<jhass> diegoviola: also the point of using @items is that you don't have to pass it around
Averna has joined #ruby
andybernard has joined #ruby
al2o3-cr has joined #ruby
<jhass> diegoviola: and actually on a second look you don't even modify it, so you might as well consider directly using the constant everywhere
devoldmx has joined #ruby
jenrzzz has joined #ruby
<jhass> but @balance is another good candidate for an instance variable
rbennacer has joined #ruby
lannonbr has joined #ruby
icarus has joined #ruby
SenpaiSilver has joined #ruby
<ekleog> Mmhmmm... Any idea why this is syntax error?
<ekleog> >> def foo(l, &b); end; foo -> { |a| 0 } { |b| 0 }
<ruboto> ekleog # => /tmp/execpad-fb47f4f1bc8a/source-fb47f4f1bc8a:2: syntax error, unexpected '|' ...check link for more (https://eval.in/419924)
nzst has joined #ruby
<diegoviola> jhass: thanks
bronson has joined #ruby
<jhass> ekleog: ->(takes_params, here) { ... }
baweaver has quit [Remote host closed the connection]
<ekleog> Oh right.
* ekleog feels stupid
devoldmx has quit [Ping timeout: 250 seconds]
ruby-lang237 has joined #ruby
cornerma1 has joined #ruby
<ruby-lang237> Hello. Any ideas how to install ray on this *ubuntu? https://gist.github.com/anonymous/ab4a6ac1595f6ca5267c
dede has joined #ruby
<diegoviola> jhass: I will try splitting in two classes now
davedev2_ has joined #ruby
davedev24 has quit [Ping timeout: 246 seconds]
<jhass> ruby-lang237: extconf.rb:6:in ``': No such file or directory - freetype-config (Errno::ENOENT) that's the significant part
<jhass> install whatever makes that command available
ta has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 260 seconds]
<ruby-lang237> jhass: OK, thank you.
cornerman has quit [Ping timeout: 260 seconds]
cornerma1 is now known as cornerman
Omni- has quit [Max SendQ exceeded]
rfmind has quit [Read error: Connection reset by peer]
Omni_ has joined #ruby
Omni_ has quit [Max SendQ exceeded]
northfurr has quit [Quit: northfurr]
jgpawletko has joined #ruby
skade has joined #ruby
Omni_ has joined #ruby
mrj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgpawletko has quit [Client Quit]
Rinzlit2 has joined #ruby
universa1 has quit [Ping timeout: 244 seconds]
sfr^ has quit [Ping timeout: 244 seconds]
maq has joined #ruby
jbw has joined #ruby
toretore has joined #ruby
sfr^ has joined #ruby
rfmind_ has joined #ruby
universa1 has joined #ruby
diegoaguilar has joined #ruby
Rinzlit1 has quit [Ping timeout: 246 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
ruby-lang237 has quit [Quit: Page closed]
Lucky__ has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
rippa has quit [Read error: Connection reset by peer]
thermatix has joined #ruby
<gavit> if I have several csv files and I want to search for a unique value in a column, what would be the best way to go about it? convert csv to sqlite?
rubie has joined #ruby
jenrzzz has joined #ruby
icarus has quit [Ping timeout: 250 seconds]
skade has quit [Read error: Connection reset by peer]
nuttermb has joined #ruby
pen has quit [Ping timeout: 250 seconds]
RandyT has quit [Ping timeout: 272 seconds]
diegoaguilar has quit [Ping timeout: 240 seconds]
sfr^ has quit [Ping timeout: 246 seconds]
blackmesa has joined #ruby
<jhass> gavit: depends on a bunch of factors, like how often do you need to do it, how fast does it really need to be, how often does the data change
thermatix has quit [Ping timeout: 265 seconds]
chichou has joined #ruby
sfr^ has joined #ruby
<gavit> jhass: a phone directory and a reverse geolocation are what I have in mind right now
<gavit> oow, sorry wrong answer to correct question
<gavit> jhass: just once :)
khebbie has quit [Remote host closed the connection]
<jhass> then I'd just sequentially iterate over all CSVs using stdlib until you found it
icarus has joined #ruby
juanpaucar has joined #ruby
juanpaucar has quit [Read error: Connection reset by peer]
juanpaucar has joined #ruby
<jhass> LIST_OF_CSVS.each do |csv| CSV.foreach(csv) do |row| if row[COLUMN] == SPECIAL_VALUE; puts "found"; exit; end; end; puts "not found"
Musashi007 has quit [Quit: Musashi007]
rfmind_ has quit [Quit: WeeChat 1.2]
Silox| has joined #ruby
tesaf has left #ruby ["WeeChat 0.4.2"]
frem has joined #ruby
sfr^ has quit [Ping timeout: 246 seconds]
universa1 has quit [Ping timeout: 244 seconds]
icarus has quit [Ping timeout: 255 seconds]
pawnbox has quit [Remote host closed the connection]
icarus has joined #ruby
<gavit> jhass: I want a unique list of column2 :P
BTRE has quit [Ping timeout: 245 seconds]
<pabs> i prefer this: def search_csvs(csvs, col, val, &block); csvs.each { |csv| csv.each { |row| block.call(csv, row) if row[col] =~ val } }; end
<gavit> but I get your point
universa1 has joined #ruby
<jhass> gavit: well yeah, then just push them all into a Set
sfr^ has joined #ruby
shadoi has joined #ruby
benlieb has quit [Quit: benlieb]
jenrzzz has quit [Ping timeout: 250 seconds]
<jhass> and write that out to a file or whatever
<pabs> you want a unique list of a second column, where another column matches some value?
shinnya has joined #ruby
momomomomo has joined #ruby
Guest__ has joined #ruby
jenrzzz has joined #ruby
prestorium has quit [Quit: Konversation terminated!]
Guest__ has quit [Read error: Connection reset by peer]
sfr^ has quit [Ping timeout: 246 seconds]
scottschecter has joined #ruby
freezevee has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
<freezevee> how could I read serial data with ruby ?
Musashi007 has joined #ruby
<freezevee> parse a console command e.g. screen or minicom or use a gem ?
podman has quit [Quit: Connection closed for inactivity]
chichou has quit [Remote host closed the connection]
kr3ssh has joined #ruby
greenride has joined #ruby
<jhass> there's a couple gems that provide some abstractions for it iirc
<jhass> serialport, ruby-serial, something like that?
jenrzzz has quit [Ping timeout: 240 seconds]
<jhass> search for serial on rubygems.org
NightMonkey has joined #ruby
sfr^ has joined #ruby
yardenbar has joined #ruby
<freezevee> I saw serialport but has to be updated some months
<freezevee> I'll check it that way
jenrzzz has joined #ruby
kirun has joined #ruby
jackjackdripper has joined #ruby
diegoaguilar has joined #ruby
khebbie has joined #ruby
dudo has joined #ruby
ivanskie has joined #ruby
melter has quit [Ping timeout: 244 seconds]
roolo has joined #ruby
BTRE has joined #ruby
pawnbox has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
avahey has joined #ruby
iamninja has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
<atmosx> hello
robbyoconnor has quit [Ping timeout: 260 seconds]
petricore has joined #ruby
blackmesa has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
jgt has joined #ruby
kadoppe has quit [Ping timeout: 244 seconds]
nahtnam has joined #ruby
apt-get_ has joined #ruby
nuttermb has quit [Ping timeout: 255 seconds]
kadoppe has joined #ruby
shadoi has quit [Quit: Leaving.]
<al2o3-cr> o/
sarkyniin has quit [Ping timeout: 255 seconds]
lucyinthesky has joined #ruby
Alayde has quit [Ping timeout: 240 seconds]
rfmind_ has joined #ruby
iateadonut has quit [Quit: Leaving.]
User4587_ has joined #ruby
rfmind_ has quit [Client Quit]
lkba has joined #ruby
<diegoviola> jhass: sorry to bother again, but is this similar to what you had in mind? https://gist.github.com/diegoviola/f08331ddadac415f561e
<diegoviola> not sure what else I can move to the controller
northfurr has joined #ruby
failshell has joined #ruby
baweaver has joined #ruby
dfockler has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 265 seconds]
elepedus has joined #ruby
<jhass> diegoviola: no, I had in mind to decouple the business logic from the presentation logic
Aria has quit [Ping timeout: 255 seconds]
<jhass> diegoviola: if we're thinking rails, VendingMachine currently is both, your model and your view
fullofcaffeine has quit [Remote host closed the connection]
joaomdmoura_ has joined #ruby
alxndr_ has joined #ruby
jenrzzz has joined #ruby
Silox| has quit [Ping timeout: 244 seconds]
anandubajith has quit [Ping timeout: 244 seconds]
frode15243 has quit [Ping timeout: 244 seconds]
prosodyContext has quit [Ping timeout: 244 seconds]
hahuang61 has joined #ruby
sfr^ has quit [Ping timeout: 244 seconds]
cbednarski has quit [Ping timeout: 244 seconds]
autrilla has quit [Ping timeout: 244 seconds]
zipkid has quit [Ping timeout: 244 seconds]
mjc_ has quit [Ping timeout: 244 seconds]
glowcoil has quit [Ping timeout: 244 seconds]
Seich has quit [Ping timeout: 244 seconds]
alxndr has quit [Ping timeout: 244 seconds]
nullwarp has quit [Ping timeout: 244 seconds]
jaxxstorm has quit [Ping timeout: 244 seconds]
bryancp has quit [Ping timeout: 244 seconds]
PhilK has quit [Ping timeout: 244 seconds]
leslie has quit [Ping timeout: 244 seconds]
joaomdmoura has quit [Ping timeout: 244 seconds]
manveru has quit [Ping timeout: 244 seconds]
mjmac has quit [Ping timeout: 244 seconds]
jimeh has quit [Ping timeout: 244 seconds]
northfurr has quit [Client Quit]
<lucyinthesky> oh wow
<diegoviola> jhass: oh
Zarthus_ has joined #ruby
nertzy has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
ishahnaz has quit []
lucyinthesky has quit [Quit: dreaming away your life.]
alxndr_ is now known as alxndr
ddfreyne_ has quit [Ping timeout: 244 seconds]
Zarthus has quit [Ping timeout: 244 seconds]
ZNG has quit [Ping timeout: 244 seconds]
Liam` has quit [Ping timeout: 244 seconds]
jeregrine has quit [Ping timeout: 244 seconds]
Dwarf has quit [Ping timeout: 244 seconds]
<diegoviola> jhass: so you mean moving main to the controller, etc?
joaomdmoura_ is now known as joaomdmoura
NightMonkey has quit [Quit: ZNC - http://znc.in]
<jhass> I wouldn't strictly do MVC in this case, that was just an analogy
yfeldblum has quit [Ping timeout: 244 seconds]
segmond has quit [Ping timeout: 244 seconds]
seggy has quit [Ping timeout: 244 seconds]
jordanm has quit [Ping timeout: 244 seconds]
hahuang65 has quit [Ping timeout: 244 seconds]
tno has quit [Ping timeout: 244 seconds]
cball has quit [Ping timeout: 244 seconds]
bascht has quit [Ping timeout: 244 seconds]
catbusters has quit [Ping timeout: 244 seconds]
[spoiler] has quit [Ping timeout: 244 seconds]
george2 has quit [Ping timeout: 244 seconds]
pizzaops has quit [Ping timeout: 244 seconds]
colstrom has quit [Ping timeout: 244 seconds]
Heero has quit [Ping timeout: 244 seconds]
SuperTux88 has quit [Ping timeout: 244 seconds]
tobiasvl has quit [Ping timeout: 244 seconds]
mighty_gorilla has quit [Ping timeout: 244 seconds]
jordanm has joined #ruby
<diegoviola> right
blackjid has quit [Ping timeout: 244 seconds]
crdpink2 has quit [Ping timeout: 244 seconds]
Nightmare has quit [Ping timeout: 244 seconds]
hostess has quit [Ping timeout: 244 seconds]
crdpink2 has joined #ruby
<jhass> I would do one class that drives the program, most of what your current VendingMachine does, user input, display menus, decide what to do on which input
baweaver has quit [Remote host closed the connection]
decaff has quit [Quit: Leaving...]
yfeldblum has joined #ruby
<jhass> and one that never prints but just handles the state and operations on it, like charge balance, buy something, get a list of available items and prices
<jhass> think a rails model
tvl has joined #ruby
v4n has joined #ruby
elepedus has quit [Ping timeout: 252 seconds]
icarus has quit [Ping timeout: 252 seconds]
tvl is now known as tobiasvl
icarus has joined #ruby
bryancp has joined #ruby
frode15243 has joined #ruby
mjc_ has joined #ruby
<diegoviola> makes sense, thanks
blackmesa has joined #ruby
DelDotB has quit [Quit: DelDotB]
hostess has joined #ruby
zipkid has joined #ruby
Silox| has joined #ruby
pizzaops has joined #ruby
autrilla has joined #ruby
manveru has joined #ruby
anandubajith has joined #ruby
peterhu has quit [Ping timeout: 240 seconds]
casadei_ has joined #ruby
melter has joined #ruby
hollywood has joined #ruby
leslie has joined #ruby
leslie has joined #ruby
colstrom has joined #ruby
B5X has joined #ruby
PhilK has joined #ruby
Seich has joined #ruby
jimeh has joined #ruby
Silox| has quit [Client Quit]
Zarthus_ has quit [Changing host]
Zarthus_ has joined #ruby
Zarthus_ is now known as Zarthus
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cbednarski has joined #ruby
glowcoil has joined #ruby
sfr^ has joined #ruby
ZeeNoodleyGamer has joined #ruby
SuperTux88 has joined #ruby
baweaver has joined #ruby
alxndr has quit [Ping timeout: 246 seconds]
nullwarp has joined #ruby
Silox| has joined #ruby
alxndr has joined #ruby
khebbie has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
kr3ssh has quit [Ping timeout: 252 seconds]
prosodyContext has joined #ruby
blackjid has joined #ruby
Liam` has joined #ruby
mjmac has joined #ruby
Heero has joined #ruby
melter has quit [Ping timeout: 256 seconds]
sfr^ has quit [Excess Flood]
momomomomo has quit [Ping timeout: 272 seconds]
sfr^ has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 252 seconds]
choke has quit [Read error: Connection reset by peer]
choke has joined #ruby
seggy has joined #ruby
segmond has joined #ruby
ddfreyne_ has joined #ruby
jenrzzz has joined #ruby
dgutierrez1287 has quit [Ping timeout: 246 seconds]
[spoiler] has joined #ruby
bascht has joined #ruby
jaxxstorm has joined #ruby
pen has joined #ruby
terlar has quit [Quit: WeeChat 1.3]
momomomomo has joined #ruby
george2 has joined #ruby
jeregrine has joined #ruby
roolo has joined #ruby
Pumukel has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
ivanskie has joined #ruby
khebbie has joined #ruby
cball has joined #ruby
drbrain has quit [Ping timeout: 246 seconds]
jacaballero has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1 has quit [Quit: Leaving...]
wldcordeiro has joined #ruby
alekst_ has quit [Ping timeout: 246 seconds]
Axy has quit [Ping timeout: 244 seconds]
<havenwood> diegoviola: I'm curious but missed your gists. Still have anything up?
sgambino has joined #ruby
alekst_ has joined #ruby
<diegoviola> havenwood: sure, just trying to think how to split this into two classes https://gist.github.com/diegoviola/b9b37e9edde3483428be
<diegoviola> :P
<al2o3-cr> why would you set a constant to an ivar?
rfmind_ has joined #ruby
catbusters has joined #ruby
<al2o3-cr> ignore that
<bootstrappm> morning all!
rfmind_ has quit [Client Quit]
<diegoviola> al2o3-cr: so just call the constant directly?
yqt has joined #ruby
<shevy> hey bootstrappster
<bootstrappm> what do you all think of this? https://github.com/frankpinto/cp-db
<diegoviola> al2o3-cr: ignore what?
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<al2o3-cr> diegoviola: me today!
<shevy> bootstrappm needs larger readme!
<shevy> in particular "what happens after 'rake down'"
<bootstrappm> I still have to code up the loading portion of it and add some more dbs (mongo for the team)
<al2o3-cr> diegoviola: what is balance is init
<bootstrappm> but yes! you're right
Mia has quit [Read error: Connection reset by peer]
<shevy> I am doing a large INSERT INTO statement into postgresql right now
drbrain has joined #ruby
<shevy> at work on clusters, that took 20 minutes, at home, it's already +2 hours now :(
Dwarf has joined #ruby
teotwaki has quit [Ping timeout: 246 seconds]
opensource_ninja has joined #ruby
<bootstrappm> uff that's rough! I always tell the guys over here to run it from one of the AWS servers next to our product
<bootstrappm> so that they don't have to deal w/ the latency
<shevy> bootstrappm I usually just look at the initial readmes first anyway, it's my main entry point into another project
sgambino_ has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
rbennacer has quit [Remote host closed the connection]
<bootstrappm> by the initial readmes you mean what I sent or just like the first paragraph or something?
Mia has quit [Read error: Connection reset by peer]
<al2o3-cr> diegoviola: i'm only a noob
<diegoviola> al2o3-cr: ok
<al2o3-cr> :)
Motoservo has joined #ruby
shmilan has joined #ruby
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
Aderium has quit [Quit: Textual IRC Client: www.textualapp.com]
andywojo has quit [Ping timeout: 240 seconds]
jimms has quit [Remote host closed the connection]
teotwaki has joined #ruby
rbennacer has joined #ruby
prestorium has joined #ruby
sgambino has quit [Ping timeout: 246 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
drbrain has quit [Ping timeout: 246 seconds]
polysics has joined #ruby
fantazo has quit [Quit: Verlassend]
drbrain has joined #ruby
andywojo has joined #ruby
Mia has quit [Read error: Connection reset by peer]
khebbie has quit [Remote host closed the connection]
<al2o3-cr> why is chocolate so expensive :P
<diegoviola> al2o3-cr: I've just made that up
<diegoviola> :P
codecop has quit [Remote host closed the connection]
<al2o3-cr> :D
but3k4 has quit [Ping timeout: 264 seconds]
krisquigley has joined #ruby
mandarinkin has joined #ruby
khebbie has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
but3k4 has joined #ruby
Mia has quit [Write error: Connection reset by peer]
AlphaAtom has joined #ruby
platzhirsch has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
AlphaAtom has quit [Client Quit]
khebbie has quit [Ping timeout: 246 seconds]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
andywojo has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 272 seconds]
TheNet has joined #ruby
Musashi007 has quit [Quit: Musashi007]
melter has joined #ruby
dudo has quit [Remote host closed the connection]
khebbie has joined #ruby
bruno- has joined #ruby
Mia has quit [Write error: Connection reset by peer]
khebbie has quit [Remote host closed the connection]
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
snockerton has joined #ruby
Mia has quit [Read error: Connection reset by peer]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
fullofcaffeine has joined #ruby
Musashi007 has joined #ruby
Alayde has joined #ruby
luksaur has joined #ruby
Alayde has joined #ruby
northfurr has joined #ruby
crdpink2 has quit [Quit: q term]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
yfeldblum has joined #ruby
allcentu1 has joined #ruby
AlphaAtom has quit [Client Quit]
allcentury has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
frozen3 has joined #ruby
Mia has quit [Read error: Connection reset by peer]
lannonbr has joined #ruby
chichou has joined #ruby
momomomomo has joined #ruby
sdwrage has joined #ruby
arup_r has joined #ruby
Nightmare has joined #ruby
chinmay_dd has quit [Quit: See ya!]
andywojo has joined #ruby
nanoz] has quit [Quit: <3]
benlieb has joined #ruby
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
<shevy> bootstrappm nono the full thing anyway, the initial "entry-page"; I think it's usually a README.md
paulcsmith has joined #ruby
<bootstrappm> ah, yes. okay
jackjackdripper has quit [Quit: Leaving.]
JoshL has quit []
devoldmx has joined #ruby
shmilan has quit [Ping timeout: 240 seconds]
rideh has quit [Ping timeout: 240 seconds]
AlphaAtom has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
anisha has joined #ruby
andywojo has quit [Ping timeout: 244 seconds]
mleung has quit [Quit: mleung]
djbkd has quit [Remote host closed the connection]
jenrzzz has joined #ruby
bronson has joined #ruby
Coldblackice has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
mleung has joined #ruby
shmilan has joined #ruby
TomyLobo has quit [Ping timeout: 246 seconds]
devoldmx has quit [Ping timeout: 244 seconds]
machinewar has quit [Remote host closed the connection]
stef204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
dfockler has joined #ruby
mwlang has joined #ruby
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
robh71 has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
but3k4 has quit [Ping timeout: 245 seconds]
but3k4 has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Mia has quit [Write error: Connection reset by peer]
failshell has quit []
jimms has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
jenrzzz has joined #ruby
slash_nick is now known as slash_quit
shmilan has quit [Ping timeout: 246 seconds]
EllisTAA has joined #ruby
skade has joined #ruby
paulcsmith has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
snockerton has quit [Quit: Leaving.]
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
eminencehc has quit [Remote host closed the connection]
<shevy> I am trying to integrate an old project into an existing one
Motoservo has quit [Quit: Shhh. I'm trying to get some sleep here.]
<shevy> now that I am almost halfway done... I should probably just have kept them separate :(
kappy has quit [Quit: leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
<dfockler> shevy: keep trudging
krisquigley has joined #ruby
User4587_ has quit [Ping timeout: 256 seconds]
jenrzzz has joined #ruby
EllisTAA has quit [Quit: EllisTAA]
<shevy> hehe
dopie has quit [Quit: This computer has gone to sleep]
arup_r has quit [Quit: Leaving]
nscheurich has quit [Quit: WeeChat 1.2]
nettoweb has joined #ruby
kappy has joined #ruby
djbkd has joined #ruby
eightyeight has joined #ruby
mandarinkin has quit [Ping timeout: 250 seconds]
EllisTAA has joined #ruby
icarus has quit [Ping timeout: 245 seconds]
<eightyeight> getting the following error with a weechat ruby script: "NameError, uninitialized constant Encoding::ASCII_8BIT"
Averna has quit [Quit: Ex-Chat]
user1138 has quit [Quit: Leaving]
momomomomo has quit [Quit: momomomomo]
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
<eightyeight> how can i fix the error, so the plugin will execute?
frozen3 has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 260 seconds]
<dfockler> shevy: I had to decide if we wanted to rewrite an app that was in ruby but was awful, or try to fix it, we decided to rewrite it
<absolutejam> Is there a difference between `var1 = var2` and `var2 < var1` ?
<al2o3-cr> absolutey
anon_ has joined #ruby
andywojo has joined #ruby
<absolutejam> Oh crap, does that mean less than?
<al2o3-cr> absolutejam: var1 = var2 is assignment var1 < var2 well i don't think anyone knows that one
<al2o3-cr> absolutejam: yeap :)
<absolutejam> Didn't think about that. I'll show you what I meant...
northfurr has quit [Quit: northfurr]
jimms has quit []
<shevy> dfockler yeah, I did rewrite a few projects... about 3 of them are still not finished
nzst has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
<absolutejam> I meant the `<<` which is 'append to', right
<al2o3-cr> << is appending
machinewar has joined #ruby
IceyEC has quit [Quit: iceyec]
<absolutejam> But is there a different between var += var2
<al2o3-cr> >> "foo" << " bar"
<ruboto> al2o3-cr # => "foo bar" (https://eval.in/419950)
lannonbr has quit [Ping timeout: 252 seconds]
<absolutejam> Or whatever the syntax would be
maq has quit [Quit: maq]
ngscheurich has joined #ruby
<al2o3-cr> absolutejam: yeah different object
anon__ has quit [Ping timeout: 265 seconds]
<absolutejam> Hm, what do you mean sorry?
<al2o3-cr> shit i can't explain shit good
<absolutejam> haha
ckinniburgh has quit [Quit: Leaving]
<absolutejam> hard to explain things to people with lower understanding sometimes
<jhass> absolutejam: yes, var << b is calling the method << on the object in var with the argument b, eg String#<<, var += b is short for var = var + b, that is calling the + method on var with the argument b, eg. String#+ and assigning the result back to var
<lagweezle> IIRC << is sometimes called the 'shovel operator' which... oh. It isn't an alias in the String class, but appears to be the same as concat
<rubie> hi all: if i created a branch and checked it out in GIT and made changes, all without commiting and I want to disregard all of those changes and revert to how master was before, what command would i be looking for?
<absolutejam> Is there a difference in those methods though?
yeticry has quit [Ping timeout: 250 seconds]
<jhass> rubie: #git
<absolutejam> String#<< and String#+
<jhass> &ri String#<< String#+
<rubie> thanks
<al2o3-cr> absolutejam: have you installed pry?
rakm_ has joined #ruby
<absolutejam> No idea what that is al2o3-cr, so nope :P
<jhass> absolutejam: try to read the docs ^ and tell me ;)
symm- has joined #ruby
<al2o3-cr> ?pry absolutejam
<ruboto> absolutejam, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting `binding.pry` directly in your source code. Visit https://pryrepl.org/ or get it now with: gem install pry pry-doc
chohe has quit [Quit: This computer has gone to sleep]
hooper has quit [Quit: Leaving.]
<al2o3-cr> <<(append) +(concatanation)
yeticry has joined #ruby
<jhass> eh, both is concatenation, the difference is on what they concatenate ;)
<al2o3-cr> and i can't even spell :p
<al2o3-cr> jhass: true
<al2o3-cr> like i say can't explain (the who)
<al2o3-cr> :D
<absolutejam> thanks al2o3-cr, I'll take a look
<absolutejam> I'm going through a book, but it's from 2009
<absolutejam> I assume the large portion of info will still be relevant though
<al2o3-cr> absolutejam: windows/linux/other?
<absolutejam> OSX
<al2o3-cr> gem install pry pry-doc
<al2o3-cr> ^ absolutejam
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rakm has quit [Ping timeout: 240 seconds]
<al2o3-cr> current ripping to bits pry
chohe has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
<al2o3-cr> so many procs....
B5X has quit [Quit: B5X]
<dfockler> byebug is pretty nice too!
phutchins has quit [Ping timeout: 260 seconds]
lannonbr has joined #ruby
mandarinkin has joined #ruby
khebbie has joined #ruby
<al2o3-cr> bye bye bugs (squash)
yardenbar has quit [Quit: Leaving]
anisha has quit [Quit: Leaving]
<shevy> al2o3-cr
<shevy> you are a bug
<al2o3-cr> :(
diegoaguilar has quit [Quit: Leaving]
<al2o3-cr> i though i was a gem
<banister> al2o3-cr why are you ripping to bits pry?
grios has quit [Read error: No route to host]
<al2o3-cr> to see how it works
<banister> found anything interesting?
<al2o3-cr> not yet
<banister> al2o3-cr you can show-source on the commands too btw
<banister> so you can go: show-source ls
<banister> or even, show-source show-source
<banister> lol
<al2o3-cr> :)
ldnunes has quit [Quit: Leaving]
_whitelogger has joined #ruby
<banister> yep
blackmesa has quit [Ping timeout: 260 seconds]
<al2o3-cr> I like, it's simple and inquisitive
duggiefresh has quit [Remote host closed the connection]
<al2o3-cr> i would of called it 'beast'
elektronaut has joined #ruby
<ekleog> I'm in the prrocess of documenting my gem, and if eg. I link using {Logger#debug} it does not create a link in the yard server. Should I assume proper linking will be made on rubygems.org?
EllisTAA has quit [Quit: EllisTAA]
rubie has quit [Remote host closed the connection]
Jackneill has quit [Ping timeout: 250 seconds]
<mwlang> ekleog: I’d look at another gem’s documentation and source to confirm that.
Limix has joined #ruby
sepp2k has quit [Quit: Leaving.]
rubie has joined #ruby
_Cronon_ has quit [Ping timeout: 255 seconds]
FernandoBasso has joined #ruby
EllisTAA has joined #ruby
Pupp3tm4st3r has joined #ruby
Azulinho has joined #ruby
Cronon has joined #ruby
DoubleMalt has joined #ruby
guilffer has joined #ruby
dopie has joined #ruby
ivanskie has joined #ruby
guilffer has quit [Remote host closed the connection]
eminencehc has joined #ruby
baweaver_ has joined #ruby
ta has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
<Limix> Hi, is it possible to use factory girl to create seed data? Does it make sense to?
baweaver has quit [Read error: Connection reset by peer]
<pipework> You can, and sure.
allcentu1 has quit [Ping timeout: 264 seconds]
<banister> al2o3-cr beast? why? :P
<al2o3-cr> banister: because pry is a beast :D
bmurt has joined #ruby
<ekleog> Can't seem to find any gem that links to anything outside it :/ Would it be possible to update the gem without bumping the version on rubygems, just to update the documentation?
rbennacer has quit [Ping timeout: 246 seconds]
pawnbox has quit [Remote host closed the connection]
hahuang65 has joined #ruby
prestorium has quit [Ping timeout: 260 seconds]
<jhass> ekleog: rubydoc.info can pull from github too, rubydoc.info/github/user/repo
<banister> al2o3-cr what features do u use
Roa has quit [Remote host closed the connection]
<al2o3-cr> banister: wtf
<al2o3-cr> :p
wprice has quit [Quit: wprice]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<banister> heh
iamninja has quit [Quit: WeeChat 1.2]
j_mcnall_ has joined #ruby
<al2o3-cr> but a serious note, pry is hmm... (fucking awesome)
<ekleog> jhass: Great, thanks!
binaryplease has joined #ruby
TheNet has quit [Remote host closed the connection]
ramfjord has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
j_mcnally has quit [Ping timeout: 244 seconds]
havenwood has quit [Ping timeout: 265 seconds]
<Limix> pipework, thanks, could you explain how this is done? I see that the factories with in the spec folder, how would I access them in the seed.rb? Is that the right place to access them any way?
<pipework> Limix: What have you tried?
hahuang65 has quit [Ping timeout: 250 seconds]
<Limix> Nothing yet, just searching for docs on it still
<pipework> All you need to do is make sure that factory_girl is loaded and that your factories are registered.
<Limix> I see
<Limix> ok thank you
<pipework> Limix: Give it a go, and then come back if you need help with it.
<Limix> thanks will do
ndrei has joined #ruby
renderful has joined #ruby
bubbys has joined #ruby
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 40.0/20150807085045]]
mwlang has quit [Quit: mwlang]
robh71 has joined #ruby
<eightyeight> getting the following error with a weechat ruby script: "NameError, uninitialized constant Encoding::ASCII_8BIT"
bmurt has quit []
renderful has quit [Ping timeout: 246 seconds]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
<eightyeight> how can i fix the error, so the plugin will execute?
jtdoncas has quit [Ping timeout: 260 seconds]
<al2o3-cr> eightyeight: i don't trust that plugin (tabs)
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
bmurt has joined #ruby
<BraddPitt> #map creates a new object containing the results of the transformed data, right?
<BraddPitt> like it doesn't do in-place transformations for the #map call?
<eightyeight> al2o3-cr: why?
<al2o3-cr> why? two fat ladies
tenderlove has quit [Quit: Leaving...]
<al2o3-cr> jk'ing
blackmesa has joined #ruby
rbowlby has joined #ruby
mary5030 has quit [Remote host closed the connection]
blue_deref has joined #ruby
rakm_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haylon has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
crdpink has joined #ruby
allcentu1 has joined #ruby
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rakm has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
Esya has quit [Disconnected by services]
silkfox has quit [Ping timeout: 260 seconds]
Esya has joined #ruby
ngscheurich has quit [Ping timeout: 250 seconds]
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> BraddPitt yeah, I think you can find out by yourself too if you call .object_id
umgrosscol has quit [Remote host closed the connection]
jhn has joined #ruby
<shevy> for in-place transformation the ! is usually used, such as via a .map! call
m8 has quit [Quit: Sto andando via]
<shevy> one exception to this "rule" is class String, which has replace()
<al2o3-cr> BraddPitt: read the docs, all will avail
last_staff has quit [Read error: Connection reset by peer]
EllisTAA has quit [Quit: EllisTAA]
bmurt has quit []
<BraddPitt> just did, thanks
<BraddPitt> whoa
<BraddPitt> never knew that `private` was a method call
<BraddPitt> guess I should have known better
crdpink has quit [Ping timeout: 244 seconds]
<BraddPitt> fucking Eigenclasses man
crdpink has joined #ruby
<jhass> *singleton classes
<shevy> :)
<jhass> btw include and extend are method calls too
diegoviola has joined #ruby
<al2o3-cr> *ghost classes
<shevy> jhass you don't like the word eigenclass?
<dfockler> Eigenvectors man
wheresmyjetpack has joined #ruby
bruno- has joined #ruby
<dfockler> worst superhero ever
<shevy> Eigenklass would be even cooler
<jhass> >> Object.singleton_class
<ruboto> jhass # => #<Class:Object> (https://eval.in/419968)
<jhass> Ruby has decided on a name
<dfockler> >> Class.singleton_class
<ruboto> dfockler # => #<Class:Class> (https://eval.in/419969)
<dfockler> that's one classy class
yasha0x80 has quit [Quit: Textual IRC Client: www.textualapp.com]
<BraddPitt> jhass isn't a singleton class technically an eigenclass?
postmodern has quit [Quit: Leaving]
<wheresmyjetpack> can anyone reccomend a resource for learning common OOP design patterns in ruby?
decoponio has quit [Read error: Connection reset by peer]
<dfockler> is there a "thing" in ruby that can't have a super class?
<jhass> BraddPitt: somebody made the term eigenclass up some time ago
<jhass> it means the same thing as singleton class
<BraddPitt> wheresmyjetpack Practical Object Oriented Design In Ruby
<BraddPitt> wheresmyjetpack http://www.poodr.com/
<BraddPitt> ah I see
<BraddPitt> I thought an eigenclass was a "mock" class inserted into the inheritance chain to avoid fucking things up
jbw has quit [Ping timeout: 250 seconds]
<wheresmyjetpack> BraddPitt: thanks. that looks perfect
postmodern has joined #ruby
decoponio has joined #ruby
<Limix> pipework works like a charm!
jbw has joined #ruby
<pipework> Limix: :D
jobewan has joined #ruby
kies has quit [Ping timeout: 244 seconds]
<darwingr> +1 for POODR
skade has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
<shevy> poodle!
skade has joined #ruby
baweaver_ has quit [Remote host closed the connection]
ddv has quit [Ping timeout: 245 seconds]
s00pcan has quit [Ping timeout: 265 seconds]
prestorium has joined #ruby
skade has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
skade has joined #ruby
barhum2013 has joined #ruby
leat has quit [Remote host closed the connection]
leat has joined #ruby
ddv has joined #ruby
nobitanobi has joined #ruby
emptyflask has joined #ruby
skade has quit [Read error: Connection reset by peer]
tonios57 has quit [Quit: Textual IRC Client: www.textualapp.com]
skade has joined #ruby
sepp2k has joined #ruby
<al2o3-cr> shevy: what type of poodle you have?
jenrzzz has quit [Ping timeout: 260 seconds]
paulcsmith has quit [Quit: Be back later ...]
<ekleog> Yet another question wrt yard: Is there a way to link to a method group?
prestorium has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
nobitanobi has quit [Client Quit]
<shevy> al2o3-cr I can not accept poodles
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
<al2o3-cr> shevy: why?
s00pcan has quit [Ping timeout: 272 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
thermatix has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
s00pcan has joined #ruby
baweaver has joined #ruby
jamesaxl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
riotjone_ has joined #ruby
freezevee has quit []
Musashi007 has quit [Quit: Musashi007]
<ivanskie> my attempt at starting a meetup, so far, is a case of total sadness.
AlexAltea has quit [Ping timeout: 244 seconds]
<al2o3-cr> :(
riotjones has quit [Ping timeout: 240 seconds]
Pupp3tm4st3r has quit [Remote host closed the connection]
chickyshack has joined #ruby
baweaver has quit [Remote host closed the connection]
icarus has joined #ruby
thermatix has quit [Ping timeout: 246 seconds]
robh71 has joined #ruby
noname has quit [Quit: WeeChat 1.0.1]
gamename has quit [Remote host closed the connection]
<shevy> al2o3-cr a look alone suffices
neilnort_ has quit [Remote host closed the connection]
gamename has joined #ruby
<shevy> ivanskie did you advertize via free beer?
<dfockler> ivanskie: I know that feeling
<ivanskie> nein
<shevy> people are lazy, you have to overcame the laziness barrier
<ivanskie> i mean no
<shevy> *overcome
darwingr has quit [Quit: bye bye]
n008f4g_ has quit [Ping timeout: 246 seconds]
darwingr has joined #ruby
<ivanskie> i just came up with an idea, find all local web design ppl and contact them. its a very very remote possibility any of them do anything other than wordpress theme, and html/css stuff.. but better chances than doing nothing.
baweaver has joined #ruby
<shevy> they use wordpress because they are lazy
<ivanskie> ya
<ivanskie> im pretty sure these are all ppl my age, who jumped on the "web design" band wagon from high school html/css class.
<ivanskie> nothing wrong with that of course.
noname has joined #ruby
Limix has quit [Quit: Limix]
doublemalt_ has joined #ruby
<baweaver> where's local?
whiteline has quit [Ping timeout: 246 seconds]
devoldmx has joined #ruby
gamename has quit [Ping timeout: 255 seconds]
<RegulationD> if you just needed a CMS though, why wouldn't you use wordpress?
elepedus has joined #ruby
<shevy> php
<RegulationD> well aside from that... :)
DoubleMalt has quit [Ping timeout: 260 seconds]
<ekleog> php
<shevy> I am not sure what kind of people ivanskie knows
juanpaucar has quit [Remote host closed the connection]
blackmesa has joined #ruby
<shevy> the people around me are extremely non-techie, save for one guy who is a certified microsoft teacher holding biweekly courses and getting overpaid
<ivanskie> php is the best answer to all those questions.. and shevy, i don't know many web developers.
<ivanskie> sounds like im in the same boat ll
<ivanskie> lol*
bronson has joined #ruby
blackmesa has quit [Client Quit]
<ivanskie> looks like all the cool people (around here) moved to Vernon (2 hours away).
devoldmx has quit [Ping timeout: 272 seconds]
<ivanskie> so many little web design, web dev, shops. (ok so many as in, more than what we have around penticton, and more serious)
bap1313 has quit [Ping timeout: 245 seconds]
jhn has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
elepedus has quit [Ping timeout: 256 seconds]
<shevy> ok so you live as a hermit
<shevy> MOVE TO THE ACTION CENTERS OF THE WORLD
havenwood has joined #ruby
einarj has joined #ruby
aredridel has joined #ruby
<baweaver> Bay Area ftw.
whippythellama has quit [Quit: WeeChat 1.3]
chichou has quit []
* lagweezle strongly dislikes going to San Francisco, but so many places there are hiring. >.<
bronson has quit [Ping timeout: 245 seconds]
NeverDie has joined #ruby
<shevy> the only reason I would go to San Francisco is to do a car chase scene live
workmad3 has quit [Ping timeout: 260 seconds]
* baweaver lives in East Bay
dgutierrez1287 has joined #ruby
skade has quit [Read error: Connection reset by peer]
RandyT_ has joined #ruby
jgt has quit [Ping timeout: 246 seconds]
jimbeaudoin has quit [Quit: Connection closed for inactivity]
Limix has joined #ruby
vdamewood has joined #ruby
jbw has quit [Ping timeout: 260 seconds]
dgutierrez1287 has quit [Ping timeout: 260 seconds]
jgt has joined #ruby
but3k4 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
j_mcnall_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblu_ has joined #ruby
<shevy> Hamsterdam!
<shevy> ah damn
<shevy> you are a beaver, not a hamster :(
allcentu1 has quit [Ping timeout: 240 seconds]
Torrieri has joined #ruby
aredridel has quit [Remote host closed the connection]
aredridel has joined #ruby
diego2 has joined #ruby
<shevy> lol
leat has quit [Ping timeout: 260 seconds]
phutchins has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
[k- has quit [Ping timeout: 256 seconds]
<lagweezle> baweaver: bravo!
<ivanskie> baweaver lol
diego2 has quit [Changing host]
diego2 has joined #ruby
diegoviola is now known as Guest63054
diego2 is now known as diegoviola
Guest63054 has quit [Ping timeout: 272 seconds]
jpfuentes2 has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
leat has joined #ruby
jobewan has quit [Ping timeout: 246 seconds]
jbw has joined #ruby
cschneid_ has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Quit: i've nodded off.]
<ivanskie> ooh looks like my "social marketing" on twitter is picking up steam. (mettup thing)
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ivanskie> if only, these guys were local :)
machinewar has quit []
<shevy> ...
jenrzzz has quit [Ping timeout: 244 seconds]
<shevy> move away from your 20 citizens village man
<shevy> go to New York
choke has joined #ruby
jenrzzz has joined #ruby
diegoviola has quit [Quit: WeeChat 1.3]
neilnorthrop has joined #ruby
northfurr has joined #ruby
anon_ has quit [Ping timeout: 244 seconds]
<ivanskie> no way.
<ivanskie> i like my village
leat has quit [Remote host closed the connection]
devdazed has joined #ruby
leat has joined #ruby
<ivanskie> moved away from Vancouver. seriously don't miss the traffic.
emptyflask has quit [Ping timeout: 244 seconds]
<jhack> I'm a little confused as to what divmod does, can someone explain?
<jhack> oh wait nvm
<jhack> it just hit me
noname has quit [Quit: WeeChat 1.0.1]
radgeRayden has joined #ruby
victortyau has quit [Quit: Leaving]
jobewan has joined #ruby
<shevy> jhack just the remainder of a division
<shevy> hmm does this word even exist...
ligature has left #ruby [#ruby]
Soviet_Jesus_ has joined #ruby
dfockler has quit [Remote host closed the connection]
shadoi has joined #ruby
robh71 has joined #ruby
noethics has joined #ruby
<jhack> shevy: so it outputs 2 nuumbers right?
<jhack> the remainder and another number
casadei_ has quit [Remote host closed the connection]
bootstrappm has left #ruby [#ruby]
Limix has quit [Quit: Limix]
jgt has quit [Ping timeout: 245 seconds]
<shevy> hmm
RandyT_ has quit [Read error: Connection reset by peer]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> 6.divmod 2 # => [3, 0]
<shevy> 6 / 2 -> 3, remainder 0
<shevy> yeah
dfockler has joined #ruby
<jhass> shevy: remainder does exist, but it's not the same as modulo
<jhass> similar, but not the same
<shevy> your two nicks are so similar
RandyT_ has joined #ruby
Limix has joined #ruby
<jhass> jhack: it's short for division, modulo = a / b, a % b
noname1 has joined #ruby
charliesome has joined #ruby
bengan has quit [Ping timeout: 246 seconds]
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Musashi007 has joined #ruby
icharlie has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
WhereIsMySpoon_ has joined #ruby
<WhereIsMySpoon_> I just read that if-end and similar blocks dont introduce a new variable scope whereas block s scopes using {} do..is this true?
<WhereIsMySpoon_> if so, why? that seems very strange to me
xwct has quit [Ping timeout: 256 seconds]
allcentu1 has joined #ruby
hahuang61 has quit [Quit: WeeChat 1.2]
Ox0dea has joined #ruby
hahuang65 has joined #ruby
<blue_deref> WhereIsMySpoon_: If I had to guess, for convenience
DLSteve has quit [Quit: Leaving]
<jhass> yes, it's true. And convenient
<blue_deref> WhereIsMySpoon_: just so you can initialize a variable for the outer block based on a condition
<WhereIsMySpoon_> if you want that then declare it outside and change it inside, it seems very counter to every other language's architecture to have this
<Ox0dea> WhereIsMySpoon_: Would you *want* block locals to leak into the outer scope?
<jhass> if it becomes any kind of issue it's a sign that you should split into smaller methods anyway
blue_deref is now known as jhats
<WhereIsMySpoon_> no i dont
robh71 has joined #ruby
<WhereIsMySpoon_> thats why im asking
<WhereIsMySpoon_> Ox0dea: im weirded out by the fact that if-end and similar blocks leak
<Ox0dea> But it's no different from virtually any other language?
<WhereIsMySpoon_> wut
<jhats> Ox0dea: if-else not creating a new scope is not very common
<WhereIsMySpoon_> every other language's block structures initialize a new variable scope
<Ox0dea> Hm, yes, I was thinking in the context of modifying variables from outer scopes.
shadoi has quit [Quit: Leaving.]
<al2o3-cr> wait, there's jhass, jhack and jhats no wounder i'm confused
dede has quit [Quit: Connection closed for inactivity]
<ivanskie> is there a jass ?
<ivanskie> nop
<ivanskie> lol
<al2o3-cr> :p
noname1 has quit [Quit: WeeChat 1.0.1]
<WhereIsMySpoon_> jhass/jhats so whats the reason why ruby decided it was special and would allow this
<jhats> I told you
<jhats> convenience
<jhats> though I don't find it convenient, myself
<jhats> jhass finds it convenient
<WhereIsMySpoon_> i can make all my member variables public and my database accessible from anywhere
<WhereIsMySpoon_> that may be convenient
<Ox0dea> Then again, if you rely on a conditional to initiaize a variable, you might be doing something wrong.
<WhereIsMySpoon_> it isnt wise
<Ox0dea> *initialize
<jhats> WhereIsMySpoon_: As I tried to imply, you're talking to the wrong people. E-mail Matz.
<jhats> He'll change it.
<WhereIsMySpoon_> uh
<WhereIsMySpoon_> i doubt it lol
<jhats> pls
<Ox0dea> WhereIsMySpoon_: Would you mind posting the code where this semantics proved problematic for you?
<jhass> ^
<jhass> it's really a non-issue in practice
<jhass> if it becomes an issue your code is very likely horrible for other reasons
<WhereIsMySpoon_> there was none
<WhereIsMySpoon_> it isnt an issue for me
<WhereIsMySpoon_> i just saw it in a forum discussion
chickyshack has quit [Ping timeout: 246 seconds]
<WhereIsMySpoon_> and thought it was very strange
<WhereIsMySpoon_> i didnt know about it till nw
jokester has quit [K-Lined]
joe2 has quit [K-Lined]
<WhereIsMySpoon_> now
<Ox0dea> WhereIsMySpoon_: WPM?
<WhereIsMySpoon_> wpm?
<Ox0dea> WPM.
<WhereIsMySpoon_> wat
DelDotB has quit [Quit: DelDotB]
diegoaguilar has quit [Remote host closed the connection]
<WhereIsMySpoon_> i can acronym too? what is wpm
<jhats> jhass: be polite, come on
<Ox0dea> WhereIsMySpoon_: "WPM" is an initialism.
<WhereIsMySpoon_> ok
barhum2013 has quit [Quit: barhum2013]
<WhereIsMySpoon_> i ask again, what is WPM
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlieb has quit [Quit: benlieb]
Limix has quit [Quit: Limix]
<Ox0dea> I don't know that I've ever met a "tech" person that was unfamiliar with it.
<WhereIsMySpoon_> words per minute?
<Ox0dea> Oui.
northfurr has quit [Quit: northfurr]
<WhereIsMySpoon_> ok i thought that but then though it was irrelevant to the conversation
barhum2013 has joined #ruby
<Ox0dea> You types mighty fast-like is all.
<WhereIsMySpoon_> so i thought it couldnt be that
kies has joined #ruby
sargas has joined #ruby
<Ox0dea> Duly noted. /ban random compliments
<jhats> Ox0dea: I didn't recognize the term in the context you used it...
<WhereIsMySpoon_> i dunno like 120+
<WhereIsMySpoon_> Ox0dea: sorry man
binaryplease1 has joined #ruby
<WhereIsMySpoon_> didnt mean it that way
<WhereIsMySpoon_> we were just talking about scopes then suddenly you ask about words per minute
<WhereIsMySpoon_> confused me thats all
robh71 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chohe has quit [Quit: This computer has gone to sleep]
xwct has joined #ruby
System42 has joined #ruby
binaryplease has quit [Ping timeout: 250 seconds]
jhats has quit [Quit: bbn]
<Ox0dea> WhereIsMySpoon_: In any case, your Return key does not appreciate the abuse.
<WhereIsMySpoon_> pahahah
<WhereIsMySpoon_> yea i do that a lot sorry
<Ox0dea> My theory is that some people do that to advertise their typing speed.
<WhereIsMySpoon_> uh..i couldnt give 2 shits about my typing speed
<Ox0dea> But could you give one?
<WhereIsMySpoon_> i just think in small chunks and type as I think and it results in many lines
<WhereIsMySpoon_> i try to pare it down in irc cause i know it isnt nice to fill up half a screen with 5 word lines but sometimes my brain gets the better of me
<Ox0dea> No worries. Still, we should race. :P
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> you people talk a lot about words per minute!
<Ox0dea> > you people
<Aeyrix> >you people
<Aeyrix> >you
baweaver has quit [Remote host closed the connection]
<Aeyrix> >people
northfurr has joined #ruby
<Ox0dea> shevy: Perturbations?
Torrieri has quit [Quit: Be back later ...]
choke has joined #ruby
barhum2013 has quit [Quit: barhum2013]
jenrzzz has quit [Ping timeout: 255 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
<Ox0dea> Aeyrix: I can't find that imgur album. :(
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has joined #ruby
<ekleog> A (hopefully) last question about yard: is there a way to force it to output methods in some order? I've designed methods that naturally flow in one way in the class prototype, but yard insists on sorting them alphabetically :/
polysics has quit [Remote host closed the connection]
veduardo has joined #ruby
veduardo has quit [Read error: Connection reset by peer]
<Aeyrix> Ox0dea: http://imgur.com/a/Mqaf6 ?
<Ox0dea> ekleog: http://git.io/vs4Tk
rcvalle has quit [Quit: rcvalle]
<Ox0dea> Aeyrix are based meme speshulist.
<Ox0dea> I recall it being titled "last night" or some such, but this is clearly it.
<Ox0dea> Hm, no, many are missing. :/
<dorei> >> !!"something"[/some/i]
<ruboto> dorei # => true (https://eval.in/419986)
NightMonkey has joined #ruby
<dorei> is there something more beautiful than this ^^ ?
skade has joined #ruby
<Ox0dea> dorei: Euler's identity?
noname1 has joined #ruby
crdpink2 has joined #ruby
<ekleog> Ox0dea: :/ thanks anyway!
<Aeyrix> >!!
<Aeyrix> why
<Ox0dea> ekleog: You're free to redefine it?
crdpink has quit [Ping timeout: 246 seconds]
<Aeyrix> >>"something"[/some/i]
<ruboto> Aeyrix # => "some" (https://eval.in/419987)
apt-get_ has quit [Ping timeout: 244 seconds]
<Aeyrix> oh that's why
<Aeyrix> clever
<dorei> i want true/false
<Ox0dea> dorei: How come?
<dorei> is there some method to give me true/false ?
<dorei> it'll endup in a db
<Ox0dea> Needs more implicit conversion.
<ekleog> Ox0dea: Wait, I'm allowed to redefine a function and rubygems will allow me to run arbitrary code?
<Ox0dea> ekleog: Well, yes.
noname1 has quit [Client Quit]
Motoservo has joined #ruby
<Ox0dea> s/function/method/, though.
diegoaguilar has joined #ruby
jenrzzz has quit [Remote host closed the connection]
jenrzzz has joined #ruby
<ekleog> Mmhm, guess I'll go back to studying yard
<Aeyrix> s/method/pedantry
<Aeyrix> /g
<ekleog> (and one point on the bingo)
<Ox0dea> Nothing is truly off-limits in Ruby.
<Aeyrix> ekleog: :D
<Aeyrix> DID SOMEONE SAY
<Ox0dea> Well, precious few things, anyhow.
<Aeyrix> BINGO
<Aeyrix> w e w l a d
nfk has joined #ruby
<dorei> >> /some/i === 'Something'
<ruboto> dorei # => true (https://eval.in/419988)
<Aeyrix> what
<Ox0dea> Case equality is best equality.
<dorei> i think it's more ugly than the !! version :(
charliesome has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<Ox0dea> dorei: !! is fine, really.
<dorei> i'll take your word for it :)
<jhass> I somehow prefer !x.nil?
<Ox0dea> jhass: I almost suggested it.
icharlie has joined #ruby
sarkyniin has joined #ruby
<Ox0dea> dorei: You could always grep your gem directory?
<Ox0dea> Huh, the style guide agrees with jhass.
<jhass> it's more explicit about the values you expect
skade has quit [Read error: Connection reset by peer]
Limix has joined #ruby
northfurr has quit [Quit: northfurr]
skade has joined #ruby
<dfockler> I wish there was a .not_nil?
northfurr has joined #ruby
<jhass> mmh, but yeah we got casecmp but nothing for case insensitive include?, it's kinda missing
shadoi has joined #ruby
<shevy> dfockler good point
Ropeney has joined #ruby
Torrieri has joined #ruby
<dfockler> include? doesn't allow for case insensitivity?
rehat has quit [Remote host closed the connection]
<Ox0dea> dfockler: Of course not?
mleung has quit [Quit: mleung]
<dfockler> ?
Torrieri has quit [Client Quit]
<dfockler> not even with a flag or something
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
<Ox0dea> dfockler: There's #grep + /regex/i.
<Ox0dea> Case-insensitive #include? would be crazy.
baweaver has joined #ruby
<dfockler> I wouldn't expect it to be by default
<dfockler> I guess you can do any? on an enum
skade has quit [Read error: Connection reset by peer]
skade has joined #ruby
saddad has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Limix has quit [Quit: Limix]
veduardo has joined #ruby
stardiviner has joined #ruby
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Aeyrix> >Big Meaty Dicks
<Aeyrix> rightio
casadei_ has joined #ruby
einarj has quit [Remote host closed the connection]
northfurr has quit [Quit: northfurr]
v4n has quit []
<shevy> hey