apeiros changed the topic of #ruby to: Ruby 2.1.1; 2.0.0-p451; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
pigzzcanfly has quit [Ping timeout: 252 seconds]
predator117 has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<banister> benzrf there's only some monads i could implement with the fiber approach to do notation, like Maybe and State
<banister> things like List i couldn;t do
<benzrf> shift within a reset block captures the remainder of the reset as a callable and passes it to the block given
pu22l3r has joined #ruby
<banister> what langauge are you talking about here?
<banister> cos it's not ruby :)
<benzrf> the result of the reset block is the result of the first shift's block
<benzrf> it's ruby :-O
osvico has quit [Read error: Connection reset by peer]
<benzrf> w/ the rb_delimcc gem
* combusean rewrites deploy.rb
pigzzcanfly has joined #ruby
davedev2_ has quit [Ping timeout: 252 seconds]
<banister> benzrf well you have to refer to methods that are in core/stdlib or i dont know what you're tlaking about, you can't just mentoin a random API from a 3rd party gem and expect me to know what u're on about
<benzrf> kk
b00stfr3ak has quit [Read error: Connection reset by peer]
<benzrf> delimited continuations w/ reset & shift are well-established outside of ruby tho
<benzrf> banister: ok basically
davedev24 has joined #ruby
jackyalcine has joined #ruby
<benzrf> reset method takes a block
<benzrf> the code in the block is run
tacos1de has quit [Remote host closed the connection]
predator217 has quit [Ping timeout: 246 seconds]
osvico has joined #ruby
<benzrf> if a call to 'shift' is encountered, the remainder of the reset block is passed as a callable to that shift's block
tacos1de has joined #ruby
jorts has quit [Ping timeout: 240 seconds]
<benzrf> then that shift's block's result is the result of the reset
justinmcp has joined #ruby
<benzrf> if you call the arg to the shift, the value you give it will be the result of shift when continued
<benzrf> brb
robbyoconnor has quit [Remote host closed the connection]
slarv has joined #ruby
reset has left #ruby ["Linkinus - http://linkinus.com"]
newUser1234 has joined #ruby
yfeldblum has quit [Remote host closed the connection]
<benzrf> iow a lot like <-
derek_c has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
<benzrf> *shift is like <- where reset is like do
jrhorn424 is now known as zz_jrhorn424
robbyoconnor has joined #ruby
<benzrf> - the result of a reset is the result of the block passed to the first shift called
<benzrf> - the result of a do block is the result of the first bind
supermarin___ has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
<benzrf> - 'foo <- bar' will call >>= with bar and a 'callback' of the rest of the do, where calling that callback will set foo to the arg
emaxi has quit [Remote host closed the connection]
<benzrf> - 'foo = shift {|cont| ...}' will run ... with cont as a callback whose arg goes to foo
newUser1234 has quit [Remote host closed the connection]
emaxi has joined #ruby
b00stfr3ak has joined #ruby
b00stfr3ak has quit [Changing host]
b00stfr3ak has joined #ruby
mois3x has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
shinobi_one has quit [Quit: shinobi_one]
supermarin__ has quit [Ping timeout: 255 seconds]
tjr9898_ has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
supermarin___ has quit [Quit: Computer has gone to sleep.]
toretore has quit [Quit: This computer has gone to sleep]
saarinen has quit [Quit: saarinen]
<benzrf> banister: i assume u know amb right
codabrink has quit [Quit: Textual IRC Client: www.textualapp.com]
emaxi has quit [Ping timeout: 246 seconds]
kevinykchan has joined #ruby
supermarin___ has joined #ruby
jason_ has joined #ruby
<banister> benzrf ya, i remember it in name but link info to it again
r0bby has joined #ruby
evenix has joined #ruby
<benzrf> basically u say 'foo = amb [1, 2, 3]', foo is now 1, then you can call 'amb_fail' at any point and itll reset to the last amb and try again wth the next value
newUser1234 has joined #ruby
<benzrf> well just amb
<benzrf> not amb_fail
<benzrf> anyway it is simple to implement these with delimited continuations
arubin has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
<benzrf> amb with args is just a shift, then the shift successively tries calling its passed callback with each arg to amb
<benzrf> then amb without args is some kind of failure, like throwing an exc
robbyoconnor has quit [Ping timeout: 252 seconds]
x77686d has quit [Quit: x77686d]
jasonwebster has quit [Quit: Computer has gone to sleep.]
necrotic_ has joined #ruby
necrotic_ has quit [Remote host closed the connection]
lukec has quit [Quit: lukec]
r0bby has quit [Remote host closed the connection]
<benzrf> banister: amb is basically the list monad if the idea were to get 1 result and you signal failure to move to the next value
tkuchiki has quit [Remote host closed the connection]
<banister> cool
r0bby has joined #ruby
<benzrf> incidentally list monad is even more trivial with delimcc
rylev_ has quit [Remote host closed the connection]
<benzrf> def draw_from(l); shift {|cont| l.map &cont}; end
ukd1 has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
emaxi has joined #ruby
kobain has joined #ruby
ukd1 has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
<benzrf> [10] pry(main)> reset do
<benzrf> [10] pry(main)* x = draw_from [1, 2, 3]
<benzrf> [10] pry(main)* y = draw_from [4, 5, 6]
<benzrf> [10] pry(main)* end
<benzrf> [10] pry(main)* x + y
<benzrf> => [[5, 6, 7], [6, 7, 8], [7, 8, 9]]
lolmaus has quit [Ping timeout: 255 seconds]
<benzrf> oh wait thats not quite the same
newUser1_ has joined #ruby
<benzrf> def draw_from(l); shift {|cont| l.map(&cont).flatten(1)}; end
newUser1234 has quit [Read error: No route to host]
r0bby_ has joined #ruby
b00stfr3ak has quit [Quit: leaving]
<benzrf> [6] pry(main)> reset do
<benzrf> [6] pry(main)* x = draw_from [1, 2, 3]
<benzrf> [6] pry(main)* end
<benzrf> [6] pry(main)* y = draw_from [4, 5, 6]
<benzrf> [6] pry(main)* [x + y]
r0bby has quit [Ping timeout: 246 seconds]
<benzrf> => [5, 6, 7, 6, 7, 8, 7, 8, 9]
<benzrf> :-)
fabrice31 has joined #ruby
testcore has quit [Ping timeout: 265 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
blackavr has joined #ruby
oo_ has joined #ruby
SCommette has joined #ruby
binaryhat has joined #ruby
GodPuppet has joined #ruby
fgo has joined #ruby
<banister> benzrf really cool
fabrice31 has quit [Ping timeout: 255 seconds]
linojon has quit [Quit: linojon]
<benzrf> delimcc allows for almost any kind of control flow structure to be built
Kricir has quit [Remote host closed the connection]
<benzrf> pity its so poor in RubyPanther
<benzrf> *ruby
dstynchu_ has quit []
samuel02 has joined #ruby
<benzrf> the Cont monad in haskell is basically where bind is apply
<benzrf> ish
<RubyPanther> my flow control is very regular
<shevy> benzrf hahaha
linojon has joined #ruby
<Nilium> Yes, but especially poor when inside RubyPanther for some reason
<shevy> it is poor in RubyPanther
oo_ has quit [Remote host closed the connection]
<Nilium> Flow control might be regular but then it's taco night and suddenly all that goes out the window. Literally and figuratively.
SilkFox has joined #ruby
<shevy> ewww
<Nilium> At least it's not in the sink (looking at you, shevy).
r0bby_ has quit [Remote host closed the connection]
emaxi has quit [Remote host closed the connection]
<RubyPanther> no, if it is taco night that means my wife is cooking, and she's a chef so it is all perfect
emaxi has joined #ruby
speakingcode has quit [Read error: Operation timed out]
<RubyPanther> tuesday was fish tacos, O M G
<RubyPanther> tomorrow is whale watching, so BBQ fish on the beach
subbyyy_ has quit [Read error: Operation timed out]
Martxel_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
samuel02 has quit [Ping timeout: 252 seconds]
Martxel_ has quit [Read error: Connection reset by peer]
<horrorvacui> Jealous of RubyPanther, a wife thats a chef and beach access common what a lucky bastard
dorei has quit []
supermarin___ has quit [Quit: Computer has gone to sleep.]
<RubyPanther> The beach is 65 miles away, but it is whale migration season and she wants to see the whales
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emaxi has quit [Ping timeout: 246 seconds]
Martxel has quit [Ping timeout: 240 seconds]
<RubyPanther> she's from central Thailand, she's never seen a whale
supermarin___ has joined #ruby
<horrorvacui> The beach is 282 miles from my house.
oo_ has joined #ruby
<RubyPanther> That would make a day trip very tiring
Martxel has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<horrorvacui> Yeah it would take at least 4 hours there so 8 hours round trip.
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
supermarin____ has joined #ruby
<shevy> what kind of beach are you talking about
<wallerdev> they dont have whales in thailand?
CyborgCygnus has joined #ruby
<shevy> wallerdev I think they eat them on sight
RowdyChildren is now known as RowdyChild|Away
<RubyPanther> they definitely don't have whales in central Thailand
<wallerdev> lol
<wallerdev> no seaworld?
<RubyPanther> freshwater shrimp, sure
supermarin____ has quit [Client Quit]
supermarin____ has joined #ruby
supermarin___ has quit [Ping timeout: 255 seconds]
supermarin____ has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 255 seconds]
afex has quit [Ping timeout: 255 seconds]
pontiki has joined #ruby
reset has joined #ruby
<RubyPanther> it will be sunny and 60F, so I'll be in shorts and she'll be in a winter coat
charliesome has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
Speed has quit [Quit: When two people dream the same dream, it ceases to be an illusion.]
trhodes_ has quit [Ping timeout: 255 seconds]
sdouglas has joined #ruby
combusean has quit [Ping timeout: 246 seconds]
mrmargolis has joined #ruby
hanikazmi has quit [Remote host closed the connection]
oo_ has joined #ruby
lolmaus has joined #ruby
trhodes_ has joined #ruby
habanany has joined #ruby
emaxi has joined #ruby
habanany has quit [Max SendQ exceeded]
andy___ has joined #ruby
habanany has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
emaxi has quit [Remote host closed the connection]
james_d_h has quit [Ping timeout: 255 seconds]
fuhgeddaboudit has quit [Remote host closed the connection]
sputnik13 has joined #ruby
sethen has joined #ruby
<benzrf> banister:
<benzrf> newtype Cont' r a = Cont' {runCont :: (a -> r) -> r}
andy___ has quit [Ping timeout: 240 seconds]
<benzrf> (>>=) :: Cont' r a -> (a -> Cont' r b) -> Cont' r b
emaxi_ has joined #ruby
<benzrf> therefore, semantically:
<benzrf> (>>=) :: (a -> r) -> r -> (a -> (b -> r) -> r) -> (b -> r) -> r
<benzrf> wait
<benzrf> (>>=) :: ((a -> r) -> r) -> (a -> (b -> r) -> r) -> (b -> r) -> r
Nukepuppy has joined #ruby
afex has joined #ruby
<centrx> Is that haskell
samuel02 has joined #ruby
<benzrf> :-3
<benzrf> it's PARTICULARLY ARCANE HASKELL
derek_c has joined #ruby
<benzrf> this is to haskell as http://stuff.rubypanther.com/perl.rb is to ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
taf2 has joined #ruby
<RubyPanther> No, to be that you'd have to give it whitespace and take the care to make the whitespace pasteable into the REPL. That was the true hidden masterwork in the code generator for perl.rb
CyborgCygnus has quit [Remote host closed the connection]
mary5030 has joined #ruby
<RubyPanther> without the subtle details of craftmanship it is just a chunk of frighteningly awful code
pigzzcanfly has quit [Remote host closed the connection]
<RubyPanther> I try to make sure that is true of all my code
<benzrf> RubyPanther:
<benzrf> benzrf@benzrf-laptop:~$ curl http://stuff.rubypanther.com/perl.rb -s | ruby
<benzrf> -:2:in `*': can't convert String into Integer (TypeError) from -:2:in `<main>'
samuel02 has quit [Ping timeout: 246 seconds]
<RubyPanther> benzrf: sorry, it is from 2004-5 you'll need ruby 1.8 :o
Dysruption has quit [Quit: Dysruption]
<benzrf> :{
<centrx> I'm sure it runs on Perl 6
<benzrf> -114374367934617190099880295228066276746218078451850229775887975052369504785666896446606568365201542169649974727730628842345343196581134895919942820874449837212099476648958359023796078549041949007807220625356526926729664064846685758382803707100766740220839144
<benzrf> ?!
ukd1 has quit [Quit: Leaving...]
<benzrf> this is...?
Dysruption has joined #ruby
Nicekiwi has joined #ruby
Dysruption has quit [Client Quit]
<benzrf> hmm
<benzrf> is there a way to do video concatenation from ruby
<benzrf> with the output to an IO object
danfo has joined #ruby
Kricir has joined #ruby
sambao21 has joined #ruby
<wallerdev> i would use ffmpeg
<postmodern> there's a rather stupid question, is there a library that handles decompressing arbitrary archives? like if i give it a .tbz2 it knows to `tar xjf ... ...`?
danfo has quit [Client Quit]
<xiella> Um, what is the difference between #ruby and #ruby-lang?
<wallerdev> lol
afex has quit [Ping timeout: 240 seconds]
<wallerdev> #ruby-lang used to be bigger than #ruby
<wallerdev> but everyone typed /j #ruby and eventually #ruby became the main channel
<xiella> Ahh
<wallerdev> no real difference between the channels despite what some people say
<xiella> Heh, okay
amclain has joined #ruby
reset has quit [Quit: Leaving...]
<wallerdev> it's the ruby way, more than one way to do things
havenwood has quit [Remote host closed the connection]
skinkitten has joined #ruby
<centrx> xiella, #ruby is usually more active than #ruby-lang
razrunelord has quit []
<xiella> haha. I'm a recent convert from php so still trying to find my bearings
<xiella> yes, i was just noticing :)
<RubyPanther> benzrf: it seems to return a different number on different platforms. Other than that it is meaningless.
MatthewsFace has joined #ruby
<centrx> xiella, #ruby-lang has a few Ruby experts who never join #ruby, and it also has IRC/tech newbies who get through the referral on the Ruby website
<RubyPanther> When I wrote it I was mostly focused on syntax, rather than semantic value
SilkFox has quit [Read error: Connection reset by peer]
<centrx> xiella, Ruby will be much more happiness-inducing than PHP
tjr9898 has quit [Read error: Connection reset by peer]
Hanmac1 has joined #ruby
<xiella> centrx: :D
<wallerdev> havent they fixed php by now
<wallerdev> cant be that bad still
<benzrf> wahahahaha
<centrx> They never change any old broken things. They just keep adding more on top of it
<benzrf> >php
<benzrf> >not that bad
<benzrf> >ever
<centrx> So it has an object model now, but the type system is still broken, and it's not like you can escape using such basic functionality
Melpaws has joined #ruby
wackonline has joined #ruby
tjr9898 has joined #ruby
<xiella> It is much better than it was, probably. But still essentially still a
<xiella> ad hoc-y*
<RubyPanther> probably, but the only people we could get to check were questionable, so we may never know
<wallerdev> seems like still a decent choice for like small websites on shared hosts
brucelee has joined #ruby
scarolan_ has quit [Remote host closed the connection]
<RubyPanther> same as with the unicorns, I found lots of people that believe in them, but they were all dressed for the SCA
<wallerdev> very easy to get setup with compared to ruby on rails or something
<xiella> wallerdev: agreed!
Hanmac has quit [Ping timeout: 240 seconds]
<centrx> Ruby on Rails set up is pretty quick
newUser1_ has quit [Remote host closed the connection]
<benzrf> no
<benzrf> never
<benzrf> never
<benzrf> php
<xiella> i have still not installed a ruby stack, mind you
<benzrf> php is likemike
<benzrf> *like
<xiella> lol
<benzrf> murder or something
<RubyPanther> yeah, if you want something with the same amount of work required, but everybody promises it is super-easy, then for a small website somebody will feel more comfortable... even if it is harder!
<benzrf> in that it is utterly repugnant
snuffeluffegus has joined #ruby
<popl> benzrf: Every time you use enter to punctuate your sentences it makes me want to punctuate something.
<popl> :P
brunops has joined #ruby
<RubyPanther> I agree that PHP is utterly repugnant, but sometimes murder is justified
<benzrf> hehehe
binaryhat has quit [Quit: Leaving]
<popl> Why is PHP repugnant?
<benzrf> for the same reason windows is repugnant, but multiplied by a few
<xiella> 5+" years old" - is probably one reason
<wallerdev> php setup on a shared host is literally typing a line of code and dragging it to your server in php lol
<popl> benzrf: What reason is that?
<wallerdev> cant get any easier than that
<wallerdev> ftp
<Quadlex> xiella: Ruby is 20 years old
maximski has joined #ruby
<RubyPanther> I did a bugfix in PHP, I don't remember what made it awful, I just remember it tasted really bad
<RubyPanther> Anything supported on a shared host requires pasting one line of code, or else it is a poorly setup host. Shared hosting, however, is BELOW ENTRY LEVEL
<centrx> PHP was a collection of hacks for building web pages, does not have a good language design.
<wallerdev> have you guys seen facebook's new tool that lets you add static typing to php
<wallerdev> pretty neat
newUser1234 has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
<RubyPanther> this is not 1999 when hosting was expensive and shared hosting was used for small sites. "shared hosting" in this age of cheap VPS, that is as silly for even a small site as geocities was in the 90s. It is usable for a "personal home page" though
tacos1de has quit [Remote host closed the connection]
Lewix has joined #ruby
<benzrf> wallerdev: mkdir foo && echo "require 'sinatra'; get('/') {'Hello world!'}" > main.rb && echo "require './main'; run Sinatra::Application" > config.ru && echo "web: bundle exec unicorn -p $PORT" > Procfile && git init && git commit -am 'first commit' && heroku app:create && git push heroku
<benzrf> :y
<benzrf> mkdir foo && echo "require 'sinatra'; get('/') {'Hello world!'}" > main.rb && echo "require './main'; run Sinatra::Application" > config.ru && echo "web: bundle exec unicorn -p $PORT" > Procfile && git init && git commit -am 'first commit' && heroku app:create && git push heroku
<wallerdev> lol
<benzrf> oops
tacos1de has joined #ruby
<RubyPanther> PHP can't have good design, because the whole premise of the language is that programmers are idiots, and non-programmers can design better languages than programmers, because they're not all hung up on technical details
<benzrf> oh wait left out a cd foo
<wallerdev> or drag and drop an html file to your ftp site
SidWu has joined #ruby
SidWu has quit [Max SendQ exceeded]
<benzrf> ftp is an evil power
sailias has joined #ruby
<benzrf> scp preferred thx
<RubyPanther> assuming the webserver is already configured (the same assumption you make for PHP) you can simply MPUT your rails directory to the ftp site and *POW* your rails site is live
maximski has quit [Ping timeout: 255 seconds]
francisfish has joined #ruby
doodlehaus has joined #ruby
<benzrf> mkdir foo && cd foo && echo "require 'sinatra'; get('/') {'Hello world!'}" > main.rb && echo "require './main'; run Sinatra::Application" > config.ru && echo "web: bundle exec unicorn -p $PORT" > Procfile && git init && git add -A && git commit -am 'first commit' && heroku apps:create && git push heroku
<benzrf> ^actually works [probably]
<benzrf> where is ur god noq
<benzrf> *now
<xiella> Quadlex: yeah? Anyway ihni how old php is. Makes sense that it was meant to solve assorted specific web problems rather than designed somewhere.
<RubyPanther> it was designed somewhere, it was designed by a guy who needed websites but hated programming
<RubyPanther> ^ real history
<xiella> ah really
dik_dak has quit [Quit: Leaving]
wchun has joined #ruby
<benzrf> the fact that he hated programmign really shows
<RubyPanther> so if you also hate programming and think that the reason programming sucks is because the programmers are idiot nerds, you might find PHP to make a lot of sense
<xiella> :p
<benzrf> :-)
<centrx> "I'm not a real programmer. I throw together things until it works then I move on. The real programmers will say "Yeah it works but you're leaking memory everywhere. Perhaps we should fix that." I’ll just restart Apache every 10 requests." - Creator of PHP
<xiella> you're right that doesn't sound like a real programmer at all
<benzrf> php 'makes sense' in the sense that most of its behavior seems reasonable in a vacuum
<xiella> lol
<benzrf> when you throw it all together, it's a horrible fucking mess
<xiella> it's also the lowest common denominator
<benzrf> it's like building a house with no blueprints and all of your supplies are rotten and full of holes and misshapen
newUser1234 has quit [Remote host closed the connection]
<benzrf> its a mess and it's not even a fun mess the way ruby is
eka has joined #ruby
<benzrf> it's just a painful mess
<benzrf> like tacks scattered on a floor
francisfish has quit [Ping timeout: 240 seconds]
<benzrf> erractically
<benzrf> under a covering of nice carpet
<xiella> i think it works for the least it has to achieve
<benzrf> even then no
<benzrf> use erb or something
<xiella> otherwise people wouldn't accept the results
larsam has quit [Ping timeout: 255 seconds]
<centrx> PHP was all there was except Perl and C until about 2005
<benzrf> fucking hell
<centrx> *for web
<RubyPanther> The reason PHP is widespread is that is traditionally embedded in HTML and had support in apache in an age without safe, trusted VPS's, and it had limited language features that were focused purely on the web, so non-programmers who needed to make simple web sites were choosing between PHP, Perl, and proprietary languages that required purchasing expensive IDEs
<benzrf> i mean even perl is better than php
sailias has quit [Quit: Leaving.]
<xiella> but it is not very enjoyable to code
<popl> Perl is fun to write.
<RubyPanther> Perl is really exceptionally complicated
<popl> You must not be doing it right.
<popl> RubyPanther: It can be.
<benzrf> perl is pretty badhatter
<benzrf> *bad
<benzrf> but its bad with a design plan
<xiella> and i would much rather learn to be polyglot anyway
<popl> Perl is probably my favorite language.
<RubyPanther> the language IS complicated.
<benzrf> php is what you get when somebody looks at perl and tries to improve on it without understanding it at all
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<RubyPanther> Just because you can use a complicated tool in a simple way doesn't take the complicated nature out of the tool
<benzrf> and then later looks at c++ and says 'I CAN DO THAT'
<RubyPanther> Perl is designed to be expressive, as a natural language. It is as complicated as a human language. But still as precise as any programming language.
toastynerd has joined #ruby
<benzrf> debatably so..
<popl> Do you guys know anything about Perl? :P
<RubyPanther> That is not any debate that Perl hackers have, they already know that stuff.
<benzrf> ruby tho
<RubyPanther> I did mostly Perl for 8 years before switching to Ruby
<popl> Go team Ruby! :P
<wallerdev> perl is kinda dead for new development
<benzrf> ruby is what you get when somebody looks at perl and tries to improve on it while understanding it pretty well
<benzrf> and then looks at smalltalk and says 'I CAN DO THAT'
<popl> RubyPanther: So you know Perl has a pretty rich OO system.
<RubyPanther> http://www.wall.org/~larry/natural.html is canonical
<benzrf> ...debatably so >.>
<benzrf> * @ popl
<popl> benzrf: I'm talking about Moose.
emaxi_ has quit [Remote host closed the connection]
frem has quit [Quit: Connection closed for inactivity]
<benzrf> ah
<popl> then there's something like Moo and Mouse if you don't want the heaviness of Moose.
<RubyPanther> popl: It was 1998 or 1999, and Larry Wall was giving a radio interview, and they asked about OO, and he pointed out Perl OO is so awful because it isn't even bolted on, it is "bolted through," and if you want to do everything using OOP then Ruby is a better language than Perl. He then launched into a defense of procedural programming.
<popl> That was 1999.
<popl> This is 2014. :P
<RubyPanther> And I totally agree with everything Larry Wall says about programming. The difference is that I _do_ want to do everything using OOP.
<benzrf> fp tho
<RubyPanther> yes, and nothing in that evaluation has changed!
<benzrf> oop is a well-made hammer, not a golden one
<RubyPanther> Perl OO is about the same, Ruby's OO is exactly the same
<popl> Perl OO is about the same as it was in 1999?
havenwood has joined #ruby
Nukepuppy has quit [Ping timeout: 240 seconds]
<RubyPanther> Sure, sure, if you don't want to use OO for everything, you shouldn't want to use Ruby for everything, Ruby is only best with the OO hammer
GodPuppet has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<RubyPanther> Hint: We'd been waiting years for Perl 6 in 1999, it was already a bit of a joke how long we'd been using Perl 5 ;)
<popl> Perl6 is not Perl
<benzrf> it's better with the FP hammer than most other OO langs though
<popl> Perl6 is an entirely different language.
Kricir has quit [Remote host closed the connection]
michaeldeol has quit [Client Quit]
<RubyPanther> Right, Perl 5 was the Larry's rewrite of Perl. Perl 6 was the community's rewrite. And the community chose Larry's over their own.
<popl> No
<popl> Not exactly. :P
* centrx yearns for the day he can program Perl 6 on top of GNU Hurd while playing Duke Nuk'em Forever
<RubyPanther> I'm literally quoting mainstream Perl dogma from when I was a Perl hacker.
Spami has quit [Quit: This computer has gone to sleep]
combusean has joined #ruby
RowdyChild|Away is now known as RowdyChildren
skulker has joined #ruby
<benzrf> centrx: >AAA games
kitak_ has quit [Read error: Connection reset by peer]
<combusean> centrx, do you have a BS in CS?
<combusean> erm, benzrf
r0bby_ has joined #ruby
<RubyPanther> "Perl 5 was my rewrite of Perl. I want Perl 6 to be the community's rewrite of Perl and of the community." -- Saint Wall
kitak has joined #ruby
<benzrf> centrx: i refuse to play anything that has bought advertisements in anything beyond websites
<centrx> I have a BS in CS, but it is not a degree
Quadlex has left #ruby [#ruby]
<combusean> o.O
afex has joined #ruby
<combusean> how is it not?
<benzrf> combusean: i've graduated middle school
<benzrf> =p
<centrx> It's B.S.
<combusean> ahh
<RubyPanther> "The Perl 6 design process is about keeping what works in Perl 5, fixing what doesn't, and adding what's missing. That means there will be a few fundamental changes to the language, a large number of extensions to existing features, and a handful of completely new ideas. These modifications, enhancements, and innovations will work together to make the future Perl even more insanely great -- without, we hope, making it even more great
<RubyPanther> ly insane." -- Damian Conway, 2003
<popl> RubyPanther: I just meant that Larry's got influence in the design of Perl6. He's a regular on both the mailing list and in the IRC channel.
<RubyPanther> The idea that Perl 6 is a "different language" is revisionist history to explain away that it was a total failure in its mission to be an update to Perl 5
<combusean> i never got a BS in CS and i'm not doing to well on whiteboard interviews talking to java graduates that expect all sorts of stupid shit like sorting algos and binary trees that you never see in the ruby/rails world
setient has quit [Read error: Operation timed out]
<popl> I disagree, RubyPanther.
sambao21 has quit [Quit: Computer has gone to sleep.]
sdouglas_ has joined #ruby
<RubyPanther> Of course he does, how many times did they ask him to fix it?
r0bby_ is now known as robbyoconnor
sdouglas has quit [Ping timeout: 246 seconds]
<wallerdev> combusean: are you in SF area?
<combusean> yeah wallerdev
blackavr has quit [Quit: blackavr]
<benzrf> combusean: excuse me
<benzrf> combusean: algos and data structures are good to know
<benzrf> >:o
<RubyPanther> popl: I was there, and I even remember where to find the quotes and pasted them ;)
<centrx> combusean, It's an artificial way to interview, but sometimes it has to be done. It's pretty straightforward to learn the basic data structures and search/sort algorithms
<benzrf> youre being entirely too pragmatic for my taste
<benzrf> >:(
<wallerdev> yeah you should know algos and data structures and when to use them
Shidash has quit [Ping timeout: 255 seconds]
<popl> RubyPanther: I meant I disagree about the interpretation of that quote from Conway.
<wallerdev> maybe not implement one, but know enough to know why one would be a good choice over another
<combusean> i can usually handle binary trees but this other time I was supposed to find the most common ancestor of a given set and I just couldn't grok it.
setient has joined #ruby
<RubyPanther> popl: The quote proves that Perl 6 was not trying to be a new language, it was literally trying to just be an update to Perl 5
<RubyPanther> as in, people stopped working on updating Perl 5 for a couple years to throw the effort behind Perl 6
brunops has quit [Quit: leaving]
<RubyPanther> There was a huge amount of hair-pulling and related gestures before Perl 5 started getting attention again
<centrx> Why is Perl 6 taking so long? It sounds like it is being done by committee?
<wallerdev> its dead
fsdldl has joined #ruby
<wallerdev> too complicated
<RubyPanther> I drank the punch too, I really through Perl 6 was gonna be the awesomest thing ever and all that. Except the code that Conway on those guys were showing... it wasn't looking any clearer... and then the bookstore had an English book on Ruby, so I was outta there
<RubyPanther> thought
baroquebobcat has joined #ruby
sdouglas_ has quit [Remote host closed the connection]
sdouglas has joined #ruby
bandu has joined #ruby
bandu is now known as Guest81288
northfurr has joined #ruby
northfurr has joined #ruby
rm_ has quit [Disconnected by services]
<RubyPanther> Ruby explicitly rejects the idea that ideological orthogonality is good. That alone reduces code complexity by an order of magnitude.
<havenwood> rakudo jvm/moarvm seem to be getting quite close: http://perl6.org/compilers/features
joelteon has joined #ruby
rm__ has joined #ruby
<benzrf> bll
<benzrf> *bbl
baroquebobcat has quit [Client Quit]
<RubyPanther> In Ruby circles it is obvious that orthogonal things should be different. In Perl they're expected to be the same, just in different contexts.
benzrf is now known as benzrf|offline
<popl> Which things?
<RubyPanther> You can build unlimited complexity; unlimited cleverness
<RubyPanther> Everything, it is central to the whole list/scalar dichotomy
<wallerdev> combusean: if you're interested in a JS position in SF let me know
viscera has left #ruby [#ruby]
<RubyPanther> Everything orthogonal is expected to be able to move in the orthogonal direction, to be plugged in that way
<RubyPanther> In Ruby if you try to argue that that _should_ be the case, you will likely get called names. And in Perl if you argue against it, they'll point out that ideological orthogonality is "expert-friendly." That is a vary common term in Perl.
<RubyPanther> "expert-friendly" is a backhanded insult in Ruby.
<RubyPanther> In Perl it is a face-value compliment.
kukyakya has joined #ruby
kukyakya has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
mehlah has quit [Quit: Leaving...]
speakingcode has joined #ruby
tkuchiki has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
bauruine has joined #ruby
blurredbits has joined #ruby
supermarin has joined #ruby
wallerdev has quit [Quit: wallerdev]
habanany has quit [Ping timeout: 246 seconds]
poguez_ has quit [Quit: Connection closed for inactivity]
mr_snowf1ake has joined #ruby
Guest81288 is now known as coyo
goleldar has quit [Remote host closed the connection]
coyo has quit [Changing host]
coyo has joined #ruby
mrsolo has joined #ruby
lukec has joined #ruby
luvs2spooge has joined #ruby
mrsolo has left #ruby [#ruby]
<luvs2spooge> plz help how do u maek ruby wabsit
yfeldblum has quit [Ping timeout: 265 seconds]
yfeldblum has joined #ruby
kobain has quit [Ping timeout: 246 seconds]
mr_red has quit [Ping timeout: 252 seconds]
<RubyPanther> >> class Wab; def sit; "arf!" end end ; Wab.new.sit
<eval-in> RubyPanther => "arf!" (https://eval.in/133485)
afex has quit [Ping timeout: 255 seconds]
hakunin has joined #ruby
hamakn has joined #ruby
samuel02 has joined #ruby
doodlehaus has quit [Read error: Connection reset by peer]
doodlehaus has joined #ruby
thomasxie has joined #ruby
funktor has joined #ruby
funktor has quit [Client Quit]
emaxi has joined #ruby
samuel02 has quit [Ping timeout: 240 seconds]
speakingcode has quit [Read error: Operation timed out]
Melpaws has quit [Quit: Leaving.]
circuit has quit [Quit: leaving]
meatherly has joined #ruby
slarv has quit [Quit: Page closed]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
Celm has quit [Remote host closed the connection]
psyko666 has joined #ruby
fabrice31 has joined #ruby
radic has quit [Ping timeout: 246 seconds]
radic has joined #ruby
brucelee has quit [Ping timeout: 255 seconds]
skkeeper has quit [Ping timeout: 260 seconds]
krz has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
skkeeper has joined #ruby
CpuID has joined #ruby
RichGuk has quit [Read error: Operation timed out]
northfurr has quit []
RichGuk has joined #ruby
mr_red has joined #ruby
nateberkopec has quit [Quit: Leaving...]
benzrf|offline is now known as benzrf
<benzrf> jesus christ how horrifying https://github.com/perl6/std/blob/master/STD.pm6
blackavr has joined #ruby
browndawg has joined #ruby
<benzrf> >ideological orthogonality
<benzrf> >ever bad
emaxi has quit [Remote host closed the connection]
<benzrf> RubyPanther: >:<
<benzrf> ^ is a :< with angry >
sensen has joined #ruby
rahult is now known as rahult_
newUser1234 has joined #ruby
aspires has quit []
phoo1234567 has quit [Read error: Connection reset by peer]
atmosx has quit [Remote host closed the connection]
browndawg1 has joined #ruby
atmosx has joined #ruby
browndawg has quit [Ping timeout: 255 seconds]
Voodoofish430 has joined #ruby
Hobogrammer has joined #ruby
linojon has quit [Quit: linojon]
rahult_ is now known as rahult
Celm has joined #ruby
kies has quit [Remote host closed the connection]
Celm has quit [Remote host closed the connection]
circuit has joined #ruby
Celm has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kies has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
narcan has joined #ruby
sambao21 has joined #ruby
narcan has quit [Max SendQ exceeded]
luriv has quit [Ping timeout: 240 seconds]
<benzrf> o-o perl 6 has some awful cute tricks
<benzrf> im jelly
<benzrf> [but not enough to use perl -shudder-]
narcan has joined #ruby
CaptainJet has quit [Ping timeout: 252 seconds]
narcan has quit [Max SendQ exceeded]
nateberkopec has joined #ruby
jack_rabbit has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has joined #ruby
uxfi has joined #ruby
Dysruption has joined #ruby
pigzzcanfly has joined #ruby
mheld has joined #ruby
<mheld> hey yall
<combusean> heh
<uxfi> hey there
<uxfi> hey sheepman
<combusean> hi mheld
<uxfi> shevy:
<uxfi> gonna try what you said
<mheld> how goes, combusean?
<combusean> benzrf, i dunno perl, but that looks vaguely more rubylike than previous perls i've seen.
<combusean> I especially like that .method syntax that appears to reference the current object in scope.
<combusean> mheld, i'm good
<benzrf> yeah
<benzrf> .foo is something ive wanted a lot *_*
<combusean> working on custom deployers that have no documentation and an impatient original author that wants it working for a new environment
<benzrf> i believe it operates on $_
dukz has joined #ruby
<benzrf> it looks like perl if it imported a bunch of rubhy
<combusean> what's $_ again?
<benzrf> *ruby
doodlehaus has quit [Remote host closed the connection]
<benzrf> $foo is a scalar var in perl
<combusean> yeah
<benzrf> $_ is a special var representing the 'current subject'
<combusean> interesting
<benzrf> certain operations will use it by default
<benzrf> such as regexes
<benzrf> $foo =~ s/foo/bar/g;
<benzrf> ^ will operate on $foo
<benzrf> s/foo/bar/g;
<benzrf> ^ will operate on $_
toastynerd is now known as Cooper2
newUser1234 has quit [Remote host closed the connection]
<combusean> hmm
newUser1234 has joined #ruby
<benzrf> the -p flag will run the given program in a loop of reading in a line, setting $_ to it, running your code, then printing $_
hailwood has joined #ruby
<benzrf> so you can do "perl -pe 's/foo/bar/g'" for regexes :-)
<benzrf> * like sed i mean
<havenwood> like: require 'english'; $LAST_READ_LINE
<combusean> that makes sense in its context
<uxfi> hey havenwood
<uxfi> Question
<uxfi> Do you guys use GUI IRC clients or CLI?
<havenwood> uxfi: GUI here, LimeChat.
<combusean> i use brew-installed xchat on os x
<uxfi> havenwood: same here
<uxfi> :)
<uxfi> I love it
<uxfi> havenwood: its on the iphone too
<uxfi> havenwood: it was based on Rub before
<uxfi> Ruby*
<hailwood> Hey guys, my AWS instance is attempting to install the ruby gem berkshelf but it's failing, is anyone able to decypher this log file for me? https://gist.github.com/hailwood/b779fca5c074d48e06e3
explorer13 has joined #ruby
Cooper2 is now known as toastynerd
* combusean knows berkshelf
Lewix has quit [Remote host closed the connection]
<combusean> [operator voice] One moment, please ..
<combusean> *hold music*
<hailwood> lol
<benzrf> i use irrsi
axisys is now known as info
<combusean> oh jebus, you have opsworks
<benzrf> *irssi
<explorer13> Hi, I want to run a ruby script which requires gem installation of rainbow and english package. I have installed them and then when i want to run the script i m still getting error can't convery nil into String<TypeError>
<combusean> hailwood, your problem isn't berkshelf
<combusean> it's that a gem isn't compiling
habanany has joined #ruby
CaptainJet has joined #ruby
<hailwood> combusean: any idea what line is telling me the gem that's failing?
<hailwood> Ah, 738 by the looks
habanany has quit [Max SendQ exceeded]
<combusean> 727, technically
werdnativ has quit [Ping timeout: 255 seconds]
<hailwood> So.. how do I work out why that isn't compiling when it's an automated process before I have any control? heh
<combusean> 729 to be more specific
luriv has joined #ruby
Lewix has joined #ruby
<combusean> you're using an alpha version of the gem
<combusean> i dunno anything about that gem
<hailwood> Neither do I... that's opsworks doing that automatically... hmm
supermarin has quit [Quit: Computer has gone to sleep.]
<combusean> is that gem declared in your gemfile?
<combusean> grep for it in Gemfile.lock
supermarin has joined #ruby
sdouglas has quit [Remote host closed the connection]
sdouglas has joined #ruby
brucelee has joined #ruby
<combusean> oh wait
<combusean> that looks like a dependency of net-ssh
<combusean> which you need.
<combusean> for cap deployments, if that's what they use
info is now known as axisys
<combusean> no, i could be wrong about the net-ssh, it looks like that configured
Hobogrammer has quit [Ping timeout: 255 seconds]
gerep has quit [Quit: Connection closed for inactivity]
Hobogrammer has joined #ruby
supermarin has quit [Ping timeout: 255 seconds]
AtomicJesus has joined #ruby
sdouglas has quit [Ping timeout: 265 seconds]
skulker has quit [Remote host closed the connection]
JBreit has joined #ruby
skulker has joined #ruby
uxfi has quit [Quit: Leaving...]
emaxi has joined #ruby
dukz has quit [Remote host closed the connection]
<AtomicJesus> https://gist.github.com/anonymous/10085537 What am I doing wrong to duplicate an array? It's acting like a pointer...
dukz has joined #ruby
mrmargolis has quit [Remote host closed the connection]
<centrx> AtomicJesus, Use my_array.dup to duplicate the array
jackyalcine is now known as jacky
JBreit has left #ruby [#ruby]
<centrx> AtomicJesus, Otherwise, test = my_array is just assigning the same array to another variable name
alvaro_o has quit [Quit: Ex-Chat]
<centrx> AtomicJesus, Yes, it is like a pointer
<AtomicJesus> ok... thanks
<AtomicJesus> I'm new to ruby if you couldn't guess
<centrx> Welcome to Ruby!
<combusean> yes, welcome! :)
<toastynerd> Ruby is amazing, welcome!
<popl> (don't talk about Perl)
<centrx> Ruby is a magical land with unicorns, and rainbows, and other gems.
<combusean> i learn by teaching and am happy to help out when i can
<AtomicJesus> oh my
binaryhat has joined #ruby
skulker has quit [Ping timeout: 240 seconds]
<AtomicJesus> thanks!
* combusean kicks the custom deployer
<combusean> time for more beer.
djbender has joined #ruby
Dysruption has quit [Ping timeout: 246 seconds]
Melpaws has joined #ruby
samuel02 has joined #ruby
<centrx> AtomicJesus, You know how to get a crowd started!
<benzrf> AtomicJesus: in most languages besides C, = acts like pointer assgn
<benzrf> AtomicJesus: to be a little more precise, all vars act as pointers and . acts as -<
<benzrf> * ->
Dysruption has joined #ruby
ftj has joined #ruby
<AtomicJesus> good to know, I was banging my head against the wall for a second
<benzrf> :)
Dysruption has quit [Client Quit]
<benzrf> AtomicJesus: variable semantics work that way in ruby, python, java
<benzrf> many others i am sure
<benzrf> AtomicJesus: are you only versed in C?
<AtomicJesus> Yes I come from a C background so I have a lot to get used to
<benzrf> o boy
<benzrf> for one
<benzrf> *everything* is gonna be different
<combusean> LOL
<benzrf> ruby is at a much much higher level of abstraction
<benzrf> i wouldnt even say ruby is to c as c is to assembly
marcdel has joined #ruby
<centrx> s/higher/awesomer
<benzrf> because many of the concepts carry over
<benzrf> i.e. memory addressing
<benzrf> ruby is entirely sealed off, in terms of abstraction
<benzrf> *from c stuff
<AtomicJesus> I like how you can basically figure out what method you need by basically guessing, I could have just guessed that last one
<ftj> hey there — looking to do some data analysis on a csv I generated (~4 million records). any way for me to use an ActiveRecord-like interface to fiddle with them? I'd love to just say Record.where(:id => null).count or something like that.
<benzrf> you do /not/ think about memory allocation or manipulation, for one
<AtomicJesus> I came in asking how to duplicate lol
samuel02 has quit [Ping timeout: 255 seconds]
tectonic has joined #ruby
toastynerd has quit [Remote host closed the connection]
brucelee has quit [Ping timeout: 252 seconds]
<benzrf> also, you cannot get a reference to a var
braincra- has quit [Quit: bye bye]
<benzrf> if you want to update a var in place, your only option is to pass an object wrapped around it that can be mutated
<benzrf> i.e.
<benzrf> v = [val]
<benzrf> func(v)
<centrx> ftj, Load it into a database (SQLite is very lightweight and simple set up)
<benzrf> result = v.first
<benzrf> but that is poor practice anyway
Megtastique has quit []
<benzrf> in ruby you do not get results by passing in things to put them in
snath has joined #ruby
<zorak> hi, im doing a book of ruby and i get this
<zorak> The construct_candidate method also uses the chr method, because extracting a single
<zorak> character out of a String gives you that character’s ASCII value.
<zorak> You can test this in irb:
<zorak> => "abcde"
<zorak> irb(main):001:0> s = 'abcde'
<zorak> irb(main):002:0> s[0]
<zorak> => 97
<zorak> irb(main):003:0> s[0].chr
<zorak> => "a"
<ftj> centrx Ah actually, I just found this. Check it out: http://csv-mapper.rubyforge.org
<benzrf> uh
sdouglas has joined #ruby
<benzrf> zorak: that looks like reallllllly old behavior
<zorak> but i do this in my irb and get "a" from s[0] and from s[0].chr
<benzrf> zorak: it's certainly not how 1.9+ workmad3
<centrx> zorak, That behavior was changed, I believe in 1.9
<benzrf> *work
<zorak> i think the book is in ruby 1.8.1
<benzrf> :I
rahult has quit [Ping timeout: 240 seconds]
browndawg1 has quit [Ping timeout: 246 seconds]
<benzrf> theres gonna be a LOT of differences, TheNumb
trhodes_ has quit [Ping timeout: 255 seconds]
<centrx> zorak, Cool
<benzrf> *then
<zorak> and how i can see the ascii of a character?
<benzrf> gah
<benzrf> >> 'f'.ord
<eval-in> benzrf => 102 (https://eval.in/133493)
<zorak> .ord
<zorak> nice!
ghr has joined #ruby
braincrash has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
fluve has joined #ruby
toastynerd has joined #ruby
<zorak> than you :)
trhodes_ has joined #ruby
<benzrf> 
binaryhat has quit [Quit: Leaving]
hoelzro has quit [Quit: leaving]
ghr has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
dukz has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
browndawg has joined #ruby
* benzrf yawns
<benzrf> does anybody here like pretentious indie hipster bullshit games
<benzrf> *computer games
dstrebel has joined #ruby
<centrx> Actually the only thing I hate is hipsters
jack_rabbit has quit [Ping timeout: 255 seconds]
* combusean sets fire to centrx
<combusean> don't stereotype
<popl> combusean: what else are people going to do with their time?
<combusean> especially when those motherfuckers are hiring
<centrx> If a hipster is a hipster, it must be a hipster.
<combusean> popl, working? i dunno
<combusean> that's all i do it seems
<combusean> that and sleep
<popl> I work retail. And sleep. And look for other work. :P
LiquidInsect has quit [Ping timeout: 240 seconds]
<combusean> popl, where are you at?
<combusean> [new_staging 739912e] All tasks in deploy seem to work now.
<combusean> 1 file changed, 53 insertions(+), 50 deletions(-)
<popl> pacific northwest
<combusean> i was so hoping for a rewrite =(
<combusean> there's not ruby work up there?
<popl> Not where I'm at.
<combusean> oh
<combusean> not in the good parts of the PNW?
<popl> I'm in Bend, OR.
<combusean> ahhh
horrorvacui has quit [Quit: Leaving]
<combusean> isn't there a rubyconf there?
<popl> yes, but tickets are expensive
<combusean> =/
LiquidInsect has joined #ruby
fabioboris has joined #ruby
tjr9898 has quit [Remote host closed the connection]
<popl> I don't understand the thinking anyways (you're not the first person to suggest it) -- it's not like I'll automatically get offered a job if I attend. :)
Dysruption has joined #ruby
tjr9898 has joined #ruby
<combusean> no, i feel you
<combusean> ruby is one of those languages where people don't hire everywhere for it
fabioboris has left #ruby [#ruby]
<combusean> i left phoenix to get away from php
<combusean> and do ruby again
<benzrf> anyway god nite
<centrx> Phoenix is dominated by PHP?
* benzrf yawns
<combusean> yes
* popl throws a peanut into benzrf's open maw
<combusean> there's a lot of windows and java
* benzrf logs off
sdouglas has quit [Remote host closed the connection]
<combusean> that i don't know
<combusean> bye benzrf! :D
blackavr has quit [Quit: blackavr]
<combusean> but lots of php
<popl> The languages I know best are probably C++, Java, Perl, and starting to get better with Ruby.
<combusean> and shops that don't use source control
<popl> I did PHP for work for almost a year once.
<arubin> Source control is a passing fad.
<combusean> hahahaha
<popl> your mother is a passing fad
<popl> :O
<combusean> it's basically 2006 in phoenix, at least it was in 2012 when I left
<combusean> as far as ruby and rails and web development
djbender has quit [Read error: Connection reset by peer]
<centrx> How fast is time moving there do you think
<combusean> slow
<centrx> Are they up to 2007 yet
<combusean> you know what rules out there?
<combusean> drupal
<combusean> state gov and asu are all about it
<Dysruption> can’t find any jobs in ruby without rails :P
<popl> devops? :P
<Dysruption> ha
<combusean> you can't find jobs in san francisco with just ruby and rails
<combusean> backend programmers by themselves are $0.10/dozen
<popl> You think so?
francisfish has joined #ruby
<Dysruption> i code java all day while dreaming of ruby
<combusean> i've been unemployed 3 times in the last 20 months being here
<popl> I try to be comfortable with writing anywhere on the stack.
<Dysruption> should move to boston :)
nateberkopec has quit [Quit: Leaving...]
<combusean> moved here unemployed, didn't work hard enough at my first job/bad culture fit, got hired again at a company that got aquired and got laid off, now i have a good contract with a mobile security startup. :)
<Dysruption> nice
<combusean> thanks Dysruption but my home is here now. :)
<combusean> i've been to boston and wasn't a big fan anyways =P
<popl> combusean: same, found a job at the world's largest retailer, been stuck looking for a new job since. :P
<Dysruption> :o
<combusean> oh shit
<combusean> how are your CS fundamentals?
jorts has joined #ruby
<popl> I went to uni but had to leave California before I could finish my degree.
<popl> I was only about 7 classes away from doing that.
<Dysruption> can you finish online?
<popl> I don't think so.
niftylettuce_ has joined #ruby
<combusean> where in california?
<combusean> that's where I live now.
<combusean> sf
<popl> I was waiting the year until I'm considered a resident here (for tuition purposes) then was going to apply to the local CC to do the math I need.
diegoviola has joined #ruby
<popl> combusean: Pomona.
<combusean> ahh
<combusean> wait 7 classes from a degree?
<combusean> in CS?
pu22l3r_ has joined #ruby
<popl> some of the classes weren't CS classes.
<popl> linear algebra, stats, physics
francisfish has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
fbernier has joined #ruby
jason_ has quit [Remote host closed the connection]
<Dysruption> sounds like classes you can take at a CC and transfer back over
<popl> I'd already taken the core stuff (and some elective CS and math stuff).
<popl> That was my tentative plan, Dysruption.
jason_ has joined #ruby
<popl> I got to take a number theory elective. That was pretty sick.
<combusean> popl, could you apply a maze sort algorithm on a whiteboard in ruby to solve an array of a maze sized x by y containing either 0 or 1: 0 is a free space and movable and 1 is a wall?
hailwood has left #ruby [#ruby]
<combusean> that's the toughest CS question i've gotten interviewing up here.
<Dysruption> hm
<combusean> common ancestor of two random nodes in a binary tree was second toughest
axisys has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 255 seconds]
<popl> maze sort? you mean maze solving?
<combusean> yeah
<popl> probably not in ruby, no
<combusean> i've gotten that question on a whiteboard
<popl> how'd you do?
havenwood has quit [Remote host closed the connection]
RowdyChildren is now known as RowdyChild|Away
organmeat has joined #ruby
<combusean> didn't finish it, but they were somehow interested in a second interview
<combusean> that's with absolutely no experience whatsoever to that sort of thing
habanany has joined #ruby
aspires has quit []
<combusean> perhaps I did well on other skills like sociability, etc. who knows
habanany has quit [Max SendQ exceeded]
<combusean> the binary tree one which I almost got i didn't get the job
<combusean> despite doing well everywhere else
axisys has joined #ruby
explorer13 has quit [Quit: Leaving]
aspires has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
jason_ has quit [Ping timeout: 246 seconds]
<combusean> but if you stick around long enough you'll find a loose interview and get in and if you work your fucking ass off and deliver you'll stay onboard
<Dysruption> combusean: what do you do? rails?
<combusean> right now in infrastructure/devops
<Dysruption> nice. infrastructure here
<combusean> going to be in rails again when I finish this blasted custom deployer
<ftj> I'm doing some data analysis on a CSV file (~4 million rows), and I'm using the supermodel gem to avoid having to put the whole thing into a database, and I'd like to have a way of just loading it into memory when I load my little script and then irb-ing around with the data. is that possible?
<ftj> can I put something in my script that'll launch an irb prompt once the data is loaded into memory that'll allow me to do stuff like Record.where(:foo => bar).count
<ftj> or should I just put everything in a sqlite db and use activemodel for real?
jorts has quit [Quit: jorts]
<Dysruption> i don’t know too much about it but it sounds like pry might help you
havenwood has joined #ruby
<combusean> yeah
<combusean> insert a binding.pry somewhere in the execution
<Dysruption> http://pryrepl.org/
<combusean> gem install 'jazz_hands' will give you a very nice suite of debugging and console interactivity.
LiquidInsect has quit [Quit: leaving]
rahult has joined #ruby
<combusean> that comes with pry and the pry-debugger.
momomomomo has joined #ruby
hoelzro has joined #ruby
<combusean> you have to require 'pry' in your code after you've installed the gem
AtomicJesus has quit [Remote host closed the connection]
LiquidInsect has joined #ruby
<Dysruption> why is Module’s eigenclass’s eigenclass Class?
<centrx> Deep questions
<Dysruption> i’m braving the depths
<Dysruption> and curious
voglster has joined #ruby
brucelee has joined #ruby
jibi has quit [Read error: Operation timed out]
<Dysruption> i’ve found some class diagrams and explanations of eigenclasses / singletons and I understand them but I can’t seem to find any reasoning explanations
brucelee has quit [Client Quit]
voglster has quit [Quit: leaving]
blackavr has joined #ruby
Martxel has quit [Quit: Leaving]
lxsameer has joined #ruby
funktor has joined #ruby
<Dysruption> plus every chart i see is outdated, 1.8
jorts has joined #ruby
jorts has quit [Client Quit]
Martxel has joined #ruby
rahult has quit [Quit: Back to the world of zombies]
Bumptious has joined #ruby
<zorak> how can i resolve this error?
<zorak> Exception `LoadError' at /usr/lib/ruby/1.9.1/rubygems.rb:1264 - cannot load such file -- rubygems/defaults/operating_system
<zorak> already install rubygems
prdx has joined #ruby
<combusean> what command are you running to get that error?
<combusean> zorak
<zorak> ruby -w --debug demo_els_parser.rb
<zorak> Exception `LoadError' at /usr/lib/ruby/1.9.1/rubygems.rb:1264 - cannot load such file -- rubygems/defaults/operating_system
<zorak> Exception `LoadError' at /usr/lib/ruby/1.9.1/rubygems.rb:1273 - cannot load such file -- rubygems/defaults/ruby
<zorak> Exception `NoMethodError' at /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:50 - undefined method `file' for #<String:0x83cbefc>
spinx has joined #ruby
<zorak> /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:50:in `reset_params': undefined method `file' for #<String:0x83cbefc> (NoMethodError)
<zorak> from /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:45:in `initialize'
<zorak> from demo_els_parser.rb:6:in `new'
<zorak> from demo_els_parser.rb:6:in `<main>'
<zorak> there's a lot of errors, but i want resolve the first, first
browndawg has quit [Ping timeout: 240 seconds]
<combusean> um
jibi has joined #ruby
Deele has joined #ruby
habanany has joined #ruby
<combusean> look at line 50 of els_parser.rb, you're running file on a String class
mostlybadfly has quit [Quit: Connection closed for inactivity]
<combusean> without seeing the code you probably have to open it or something, i dunno
habanany has quit [Max SendQ exceeded]
spinx^ has quit [Ping timeout: 246 seconds]
blackavr has quit [Quit: blackavr]
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s_e has quit [Quit: ZNC - http://znc.in]
habanany has joined #ruby
<zorak> and this one http://pastebin.com/GYGCHzYb
<combusean> yeah,
<combusean> line 50
MatthewsFace has quit [Quit: This computer has gone to sleep]
s_e has joined #ruby
ahuman_ is now known as ahuman
<combusean> i have no idea what the .file method is supposed to do
<combusean> it's def not a method on the string class
<combusean> definitely
nateberkopec has joined #ruby
nateberkopec has quit [Read error: No route to host]
nateberkopec has joined #ruby
blurredbits has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zorak> this is the book paragraph about this part
<zorak> The initialize method also calls the reset_params method, defined right
<zorak> below initialize, which simply sets the instance variable @search_params to
<zorak> the search_params argument passed into initialize, falling back to the
<zorak> index of @contents if the :end_pt value would otherwise be nil. This gives
<zorak> DEFAULT_SEARCH_PARAMS . It also sets the :end_pt value to fall back to the last
<zorak> ELS_Parser a handy shortcut: leaving out the :end_pt automatically means
maletor has joined #ruby
<zorak> Search to the end of @contents.
<zorak> but dont say anything about the .file
<combusean> resque question, if resque is properly working, there should be active resque processes, right?
<combusean> when executing ps
robustus has quit [Ping timeout: 252 seconds]
<zorak> eh? dont understand
<combusean> i was asking the channel zorak
Melpaws has quit [Ping timeout: 240 seconds]
<zorak> ok, thanks
<combusean> zorak, the problem in your code is that on line 50 of elb_parser you're calling this file method on a string. file isn't a method on strings
kitak has quit [Ping timeout: 260 seconds]
fabrice31 has joined #ruby
Melpaws has joined #ruby
<zorak> ohhhhhhhh
<zorak> is size
<zorak> no file
nateberkopec has quit [Ping timeout: 240 seconds]
<combusean> :)
* centrx feels like zorak is going through some kind of epiphany or digestion problem
<combusean> bugs can hamper new users
<combusean> especially when they compile
x1337807x has joined #ruby
<combusean> erm
robustus has joined #ruby
<combusean> pass parse errors
<zorak> im doing this book "in the hard way"
CpuID2 has joined #ruby
<combusean> zorak, did you see what was going on in the output of your original gist?
oo_ has quit [Remote host closed the connection]
<combusean> you came in asking about the operating system stuff, but that was probably just debugging output
<RubyPanther> zorak: what OS are you on?
<combusean> you shouldn't typically have to run ruby with debug flags
<zorak> i dont understand your question (sorry, english is not my first language)
<zorak> im in linux, mint 15
kitak has joined #ruby
s_e has quit [Quit: ZNC - http://znc.in]
browndawg has joined #ruby
<zorak> the books instrutions specify the --debug flag
tectonic has quit []
CpuID has quit [Ping timeout: 252 seconds]
<combusean> i think it's throwing you off, not sure
<combusean> in that first gist that you pasted right
<RubyPanther> oh, I get it, the --debug is making it show exceptions that were actually rescued, that explains the cannot load such file -- rubygems/defaults/operating_system
jaygen has joined #ruby
fabrice31 has quit [Ping timeout: 252 seconds]
<zorak> whats a "gist"?
<RubyPanther> makes me glad I don't debug :)
s_e has joined #ruby
<combusean> sorry zorak i thought you were using github, not pastebin
<combusean> when you pasted the output of ruby that first time, the problem wasn't in the first line, the real problem was down along the way
diegoviola has quit [Remote host closed the connection]
<combusean> <zorak> Exception `NoMethodError' at /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:50 - undefined method `file' for #<String:0x83cbefc>
<combusean> * spinx (~spinx@dsl-hkibrasgw3-58c0f8-161.dhcp.inet.fi) has joined #ruby
<combusean> <zorak> /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:50:in `reset_params': undefined method `file' for #<String:0x83cbefc> (NoMethodError)
<combusean> these were the real lines
circuit has quit [Quit: leaving]
<combusean> when you see file name:number, that tells you the line number of the file that is causing problems. have to fix those first.
<zorak> yes, than you :)
<combusean> no problem
ktosiek has joined #ruby
<zorak> now im having this one
<zorak> /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:50:in `size': wrong number of arguments(1 for 0) (ArgumentError)
<zorak> in the same f****line
<zorak> dah, solved :P
<combusean> it's .size - 1, not .size(foo - 1)
kennym has quit [Quit: Leaving.]
<combusean> or whatever
<zorak> and now i have like 7 errors
<zorak> Exception `NoMethodError' at /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:69 - undefined method `coerce' for nil:NilClass
<zorak> Exception `ArgumentError' at /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:69 - comparison of Fixnum with nil failed
<zorak> /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:69:in `>': comparison of Fixnum with nil failed (ArgumentError)
<zorak> from /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:69:in `upto'
<zorak> from /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:69:in `block in search'
<zorak> from /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:68:in `upto'
<zorak> from /home/zorak/Documentos/Ruby/Ejemplos_libros/els_parser.rb:68:in `search'
<zorak> from demo_els_parser.rb:7:in `<main>'
<zorak> idk where this get this 'coerce' method i dont see anything like that in the code
andy__ has joined #ruby
Dysruption has quit [Quit: Dysruption]
diegoviola has joined #ruby
supermarin has joined #ruby
postmodern has quit [Quit: Leaving]
lukec has quit [Quit: lukec]
binw has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
armyriad has joined #ruby
<combusean> it's not on like 69 zorak?
<zorak> but line 69 is this
<zorak> @search_params[:min_skip].upto(@search_params[:max_sip]) do |skip|
funktor has quit [Remote host closed the connection]
thrillagorilla has quit []
james_d_h has joined #ruby
<zorak> missing k sin max_skip
funktor has joined #ruby
fgo_ has joined #ruby
binw has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
andy__ has quit [Remote host closed the connection]
Es0teric has quit [Quit: Computer has gone to sleep.]
eynj has joined #ruby
funktor has quit [Ping timeout: 246 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Solnse has quit [Quit: Leaving.]
mois3x has quit [Quit: mois3x]
CpuID2 has quit [Quit: Leaving]
oo_ has joined #ruby
phansch has joined #ruby
mary5030 has quit [Ping timeout: 252 seconds]
larsam has joined #ruby
echevemaster has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
toastynerd has quit [Remote host closed the connection]
jameswlane has joined #ruby
poguez_ has joined #ruby
aagdbl has joined #ruby
x77686d has joined #ruby
jameswlane has quit [Client Quit]
oo_ has quit [Ping timeout: 255 seconds]
mercwithamouth has quit [Ping timeout: 255 seconds]
<combusean> zorak, that error suggests that the value in upto is invalid or somewhere like that
<combusean> if it's nil, it can't be converted into a fixnum in the range
<centrx> >> nil.upto(7)
<eval-in> centrx => undefined method `upto' for nil:NilClass (NoMethodError) ... (https://eval.in/133512)
<centrx> >> 7.upto(nil)
<eval-in> centrx => #<Enumerator: 7:upto(nil)> (https://eval.in/133513)
<centrx> >> 7.upto(nil).to_a
<eval-in> centrx => comparison of Fixnum with nil failed (ArgumentError) ... (https://eval.in/133514)
<combusean> so where's the coerce coming from?
<combusean> the fuck
<zorak> combusean: the problem is that my keyboard has a problem with the "k"
<zorak> and i have to press it very hard
krz has quit [Quit: WeeChat 0.4.3]
pu22l3r_ has quit [Remote host closed the connection]
james_d_h has quit [Ping timeout: 240 seconds]
frem has joined #ruby
<combusean> zorak, i would suggest inserting a binding.pry before your loop and see if all the values in your loop are good
<zorak> what is that?
<combusean> it's a debugger that you'll need to get familiar with if you're doing ruby development
emaxi has quit [Remote host closed the connection]
emaxi has joined #ruby
emaxi has quit [Remote host closed the connection]
emaxi has joined #ruby
arietis has joined #ruby
<zorak> gem install pry ??
MatthewsFace has joined #ruby
<popl> zorak: http://pryrepl.org/
<zorak> thans popl
taf2 has quit [Quit: taf2]
mary5030 has quit [Remote host closed the connection]
streetp has joined #ruby
papercode has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
Adran has quit [Quit: Este é o fim.]
benzrf has quit [Ping timeout: 255 seconds]
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
bean has joined #ruby
Martxel has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
sensen has quit [Ping timeout: 240 seconds]
<zorak> how pry works? its like an enhanced irb??
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
richardjortega has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
JohnBat26 has joined #ruby
Adran has joined #ruby
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
nateberkopec has joined #ruby
funburn has quit [Quit: funburn]
<zorak> ehhh!! thanks friends!! thar code finally run without problems :D
Azure has quit [Remote host closed the connection]
chris_thomson has quit [Quit: Zzz...]
JasmeetQA has joined #ruby
Azure has joined #ruby
mercwithamouth has joined #ruby
nomadic has quit [Remote host closed the connection]
nateberkopec has quit [Ping timeout: 240 seconds]
chipotle has joined #ruby
chipotle has quit [Max SendQ exceeded]
chipotle has joined #ruby
fgo_ has quit [Remote host closed the connection]
richardjortega has left #ruby [#ruby]
nomadic has joined #ruby
ghr has joined #ruby
yfeldblum has quit [Remote host closed the connection]
dukz has joined #ruby
Celm has quit [Remote host closed the connection]
Hobogrammer has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
Hobogrammer has joined #ruby
Jon30 has quit [Ping timeout: 255 seconds]
Morkel has joined #ruby
aspires has quit []
ghr has quit [Ping timeout: 255 seconds]
GreatSUN has joined #ruby
<GreatSUN> Hi all
tcstar has quit [Quit: Leaving]
sdouglas has joined #ruby
aspires has joined #ruby
pu22l3r has joined #ruby
Cache_Money has joined #ruby
<GreatSUN> I suddenly have problems with my SSLServer/SSLSocket connections... (Might be new gem version working different possibly [might also be that I am dumb])
<GreatSUN> on server side I get error: SSL_accept returned=1 errno=0 state=SSLv2/v3 read client hello A: http request
wackonline has quit [Ping timeout: 245 seconds]
pontiki` has joined #ruby
<GreatSUN> when catching this error and trying to connect with the client, it errors with: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: tlsv1 alert unknown ca
<GreatSUN> streetp: I am not interested in "gratis show"
arubin has joined #ruby
<GreatSUN> could you stop querying?
<GreatSUN> I don't think advertising is allowed (in here)
mercwithamouth has quit [Ping timeout: 255 seconds]
davedev24 has quit []
<havenwood> GreatSUN: if it was a PM /ignore or report to freenode
mercwithamouth has joined #ruby
pontiki has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
<GreatSUN> havenwood: ahhh someone is alive :D
davidcelis has quit [Quit: K-Lined.]
erichmenge has quit [Quit: Arrivederci!]
erichmenge has joined #ruby
davidcelis has joined #ruby
armyriad has quit [Quit: Leaving]
pu22l3r has quit [Ping timeout: 255 seconds]
mary5030 has joined #ruby
CaptainJet has quit [Read error: Connection reset by peer]
pigzzcanfly has quit [Remote host closed the connection]
cj3kim_ has joined #ruby
Lewix has quit [Remote host closed the connection]
<havenwood> GreatSUN: so your server isn't able to read its ca certificate? is it there? does the user have permissions?
phansch has quit [Quit: WeeChat 0.4.2]
CaptainJet has joined #ruby
Melpaws has quit [Ping timeout: 252 seconds]
<GreatSUN> havenwood: just recognized that it is not setup when starting... wondering why it has been working before
<GreatSUN> (re)adding it now
browndawg has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
aspires has quit []
sputnik13 has joined #ruby
francisfish has joined #ruby
Melpaws has joined #ruby
pigzzcanfly has joined #ruby
mr_snowf1ake has quit [Quit: Leaving]
jgrevich_ has joined #ruby
cj3kim_ has quit [Read error: Connection reset by peer]
cj3kim__ has joined #ruby
papercode has joined #ruby
francisfish has quit [Ping timeout: 240 seconds]
carif has joined #ruby
zrl has quit [Read error: Connection reset by peer]
octarine has quit [Read error: Connection reset by peer]
tagrudev has joined #ruby
<centrx> The witching hour approaches
devyn has quit [Remote host closed the connection]
mordof has quit [Quit: WeeChat 0.4.3]
end_guy has quit [Remote host closed the connection]
zrl has joined #ruby
mary5030 has quit [Remote host closed the connection]
octarine has joined #ruby
mary5030 has joined #ruby
nateberkopec has joined #ruby
tonni has quit [Remote host closed the connection]
yacks has quit [Read error: Operation timed out]
yacks has joined #ruby
meatherly has quit [Remote host closed the connection]
funburn has joined #ruby
dukz has quit [Remote host closed the connection]
bluOxigen has joined #ruby
armyriad has joined #ruby
funburn has quit [Client Quit]
end_guy has joined #ruby
SCommette has quit [Quit: SCommette]
Avahey_ has quit [Quit: Connection closed for inactivity]
krz has joined #ruby
streetp has quit [K-Lined]
devyn has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
andy__ has joined #ruby
monika_ has joined #ruby
Hobogrammer has quit [Quit: WeeChat 0.4.3]
Hobogrammer has joined #ruby
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has quit [Remote host closed the connection]
Eiam has quit [Ping timeout: 260 seconds]
<GreatSUN> havenwood: I finally found the problem...
<GreatSUN> havenwood: somehow SSLServer doesn't want to run on port 8080 anymore
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
monika_ has quit [Quit: Leaving]
<diegoviola> i have this path: "/home/fromthe/fromthepage/current/public/images/working/1/img_3566.jpg", i would like to write a regex that will give me only "images/working/1/img_3566.jpg" and remove the rest
<diegoviola> but i don't know where to start
<diegoviola> any ideas please?
Zwicker has quit [Read error: Connection reset by peer]
pontiki` has quit [Read error: Connection reset by peer]
andy__ has quit [Ping timeout: 255 seconds]
<centrx> diegoviola, Depending on how variable the path naming system is, you could use string substitution to ""
Cache_Money has quit [Quit: Cache_Money]
newUser1234 has quit [Quit: Leaving...]
pontiki` has joined #ruby
<diegoviola> hrm
Macaveli has joined #ruby
momomomomo has quit [Quit: momomomomo]
<diegoviola> ty
<Hanmac1> diegoviola:
<Hanmac1> >> "/home/fromthe/fromthepage/current/public/images/working/1/img_3566.jpg"[/public\/(.+)/,1]
<eval-in> Hanmac1 => "images/working/1/img_3566.jpg" (https://eval.in/133543)
Hanmac1 is now known as Hanmac
heftig has quit [Quit: Quitting]
<diegoviola> cool thanks
kitak has quit [Remote host closed the connection]
toastynerd has joined #ruby
fgo has joined #ruby
mary5030 has joined #ruby
<j416> root_dir = '/home/fromthe/fromthepage/current/public'
<j416> full_path = '/home/fromthe/fromthepage/current/public/images/working/1/img_3566.jpg'
<j416> partial = full_path[/#{Regexp.escape(root_dir)}\/(.*)/, 1]
timonv has joined #ruby
<j416> (Regexp.escape is a good idea)
<Hanmac> j416 or use Pathname#relative_path_from
<j416> plus you might want to handle the case where root_dir may end with a slash
marcdel has quit []
<j416> Hanmac: nice, didn't know that one
<j416> diegoviola: screw regexp then
toastynerd has quit [Remote host closed the connection]
browndawg has joined #ruby
kitak has joined #ruby
<Hanmac> >> require "pathname"; full= "/home/fromthe/fromthepage/current/public/images/working/1/img_3566.jpg"; root = "/home/fromthe/fromthepage/current/public"; Pathname.new(full).relative_path_from(Pathname.new(root)).to_s
<eval-in> Hanmac => "images/working/1/img_3566.jpg" (https://eval.in/133545)
mrjensen has joined #ruby
fabrice31 has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<diegoviola> ty
<j416> diegoviola: wild guess: you are converting a path to an image on disk to something you'll be using in an url?
tonni has joined #ruby
<diegoviola> yeah something like that
<j416> if I were you I'd rather have that in config
<j416> what if the path doesn't even contain /images/, it may be filtered away in the webserver
* j416 shrugs
halik has joined #ruby
<diegoviola> right
<diegoviola> thanks
nfk has joined #ruby
matcouto has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
<halik> Hello guys. Question regarding dalli (memcache). Since dalli doesn't support regex to match keys, how do you guys usually expire this kinds of keys at a same time "article_1_comments_page_1", "article_1_comments_page_2"?
fabrice31 has quit [Ping timeout: 246 seconds]
_5kg has quit [Ping timeout: 240 seconds]
blackavr has joined #ruby
<j416> >> public_dir = '/home/blorb/blerb/public'; File.expand_path(public_dir)
<eval-in> j416 => "/home/blorb/blerb/public" (https://eval.in/133547)
<j416> and properly slash it
<j416> diegoviola: ^
nateberkopec has joined #ruby
<j416> halik: store the keys which to expire, or simply add some counter to the keys so that they will autoexpire
<j416> halik: or, update the cache when something changes
setient has left #ruby [#ruby]
<j416> halik: whatever writes to your db would know what to expire
apeiros has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<j416> hm
apeiros has joined #ruby
<j416> >> public_dir = 'blorb/blerb/public'; File.expand_path(public_dir)
<eval-in> j416 => "/tmp/execpad-b955cafc955e/blorb/blerb/public" (https://eval.in/133548)
<j416> interesting
pontiki` has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
armyriad has joined #ruby
AntelopeSalad has joined #ruby
AntelopeSalad_ has quit [Ping timeout: 255 seconds]
nateberkopec has quit [Ping timeout: 240 seconds]
flowerhack has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
crystal77 has quit [Quit: Computer has gone to sleep.]
sdouglas has quit [Remote host closed the connection]
skinkitten has quit [Remote host closed the connection]
carif has quit [Quit: Ex-Chat]
apeiros has quit [Ping timeout: 246 seconds]
IceDragon has quit [Quit: Space~~~]
<halik> @j416: What do you mean by adding a counter to the keys to autoexpire?
amclain has quit [Quit: Leaving]
mary5030 has quit [Remote host closed the connection]
<j416> halik: article_1_comments_page_1_1
<j416> halik: article_1_comments_page_1_2
<j416> halik: article_1_comments_page_1_3
<halik> @j416: What I do right now is do an expire_fragment("article_1_comments") but when I added pagination for the comments it retained page 1 always. Hehe.
rococo has joined #ruby
<j416> if you keep a reference to whichever is the latest, you don't have to manually expire the others, they'll just die
mary5030 has joined #ruby
werdnativ has joined #ruby
<halik> Aah. But then I'd have to keep track of that last digit?
<j416> not much different from expiring explicitly, but a little bit faster
dawkirst_ has quit [Quit: Leaving]
Slarv2 has joined #ruby
dawkirst has quit [Remote host closed the connection]
<j416> although not necessarily faster since you'd have to look up that number before retreiving from the cache, so
pu22l3r has quit [Ping timeout: 240 seconds]
<j416> tomato tomato
postmodern has joined #ruby
popl has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
dalzony1 has joined #ruby
dalzony1 has left #ruby [#ruby]
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<halik> @j416: Is it something like this http://quickleft.com/blog/faking-regex-based-cache-keys-in-rails ?
[42] has quit [Quit: Gone...]
keeguon has joined #ruby
aganov has joined #ruby
mary5030 has quit [Ping timeout: 255 seconds]
chipotle has quit [Ping timeout: 252 seconds]
chipotle_ has joined #ruby
bal has joined #ruby
lxsameer has quit [Ping timeout: 240 seconds]
<j416> halik: something like that, yeah
sensen has joined #ruby
<j416> halik: you _could_ also loop all the keys
<j416> but it'd be a either slow or error-prone
jgoss has quit [Ping timeout: 246 seconds]
<halik> @j416: Is there a way to loop on the keys?
<j416> (because either you'd need to do a potentially slow key lookup (can't store the keys in memcached), or you'd have to store them statically some place but that doesn't guarantee that they are updated (well, the key lookup could be wrong too so))
<j416> >> keys = ['foo', 'bar'] ; keys.each { |k| puts "expire #{k}" }
<eval-in> j416 => expire foo ... (https://eval.in/133551)
sputnik13 has joined #ruby
[42] has joined #ruby
<j416> anyway, I must get to work
<j416> todilo o/
<halik> @j416: Thanks!
popl has joined #ruby
popl has quit [Changing host]
popl has joined #ruby
marcdel has joined #ruby
arubin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lxsameer has joined #ruby
toastynerd has joined #ruby
niftylettuce_ has quit [Quit: Connection closed for inactivity]
Azure has quit [Quit: My MBP went to sleep.]
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
eval-in has quit [Remote host closed the connection]
eval-in has joined #ruby
dawkirst has joined #ruby
Azure has joined #ruby
Xeago has quit [Remote host closed the connection]
marcdel has quit [Ping timeout: 240 seconds]
osvico has quit [Read error: Connection reset by peer]
tobago has joined #ruby
derek_c has quit [Read error: Operation timed out]
osvico has joined #ruby
Hobogrammer has quit [Ping timeout: 252 seconds]
aspires has joined #ruby
marcdel has joined #ruby
karupanerura has quit [Quit: ZNC - http://znc.in]
anarang has joined #ruby
klaut has joined #ruby
noop has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
supermarin has quit [Quit: Computer has gone to sleep.]
supermarin has joined #ruby
Xeago has joined #ruby
aef_ has quit [Remote host closed the connection]
atmosx has quit [Remote host closed the connection]
apeiros has joined #ruby
nomenkun has joined #ruby
JasmeetQA has quit [Quit: Leaving.]
atmosx has joined #ruby
agjacome has quit [Quit: leaving]
blackavr has quit [Quit: blackavr]
_5kg has joined #ruby
supermarin has quit [Ping timeout: 255 seconds]
jaygen has quit [Ping timeout: 255 seconds]
tacos1de has quit [Ping timeout: 265 seconds]
hooper has joined #ruby
cj3kim__ has quit [Remote host closed the connection]
zz_karupanerura has joined #ruby
aspires has quit []
habanany has quit [Ping timeout: 252 seconds]
dagobah has joined #ruby
zz_karupanerura is now known as karupanerura
hooper has quit [Ping timeout: 252 seconds]
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nari has joined #ruby
karupanerura has quit [Quit: ZNC - http://znc.in]
karupanerura has joined #ruby
emaxi has quit []
[42] has quit [Quit: Gone...]
[42] has joined #ruby
[42] has quit [Remote host closed the connection]
[42] has joined #ruby
browndawg has quit [Read error: Connection timed out]
nhhagen has joined #ruby
archsonix_ has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
Xeago has quit [Remote host closed the connection]
Slarv2 has quit []
jgoss has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
luckyruby has joined #ruby
nateberkopec has joined #ruby
bigkevmcd has joined #ruby
<lxsameer> does using `class_eval` to extend a class is a bad idea ?
<centrx> It has it's uses, but usually define_method is better
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 10 Hours 27 Minutes and 30 Seconds Online.]
<lxsameer> centrx: thanks
nateberkopec has quit [Read error: No route to host]
nateberkopec has joined #ruby
userx has quit [Ping timeout: 255 seconds]
derek_c has joined #ruby
oo__ has joined #ruby
jprovazn has joined #ruby
archsonix_ has quit [Quit: Verlassend]
jacky has quit [Excess Flood]
keeguon has quit [Quit: keeguon]
fabrice31 has joined #ruby
blackavr has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
oo_ has quit [Ping timeout: 255 seconds]
cj3kim_ has joined #ruby
claymore has joined #ruby
mieko has quit []
derek_c has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cj3kim_ has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
supermarin has joined #ruby
wlanboy has quit [Ping timeout: 252 seconds]
ghr has joined #ruby
browndawg has joined #ruby
relix has joined #ruby
_5kg has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
cj3kim_ has joined #ruby
canton7 has quit [Remote host closed the connection]
canton7 has joined #ruby
wlanboy has joined #ruby
luriv has quit [Quit: Leaving]
ahawkins has joined #ruby
mieko has joined #ruby
chrisseaton has joined #ruby
DrCode has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 255 seconds]
supermarin has quit [Read error: Connection reset by peer]
Dim_ has joined #ruby
tonni has quit [Remote host closed the connection]
Xeago has joined #ruby
Dim_ has left #ruby [#ruby]
DrCode has joined #ruby
jackyalcine has joined #ruby
oo__ has quit [Remote host closed the connection]
mary5030 has joined #ruby
Waheedi has quit [Quit: Waheedi]
Xeago_ has joined #ruby
mgomezch has quit [Ping timeout: 252 seconds]
diegoviola has quit [Read error: Connection reset by peer]
jackyalcine has quit [Excess Flood]
Kneferilis has joined #ruby
Hanmac has joined #ruby
samuel02 has joined #ruby
dumdedum has joined #ruby
coderhs has quit [Ping timeout: 255 seconds]
Xeago has quit [Ping timeout: 246 seconds]
Hanmac1 has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 252 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
cj3kim_ has quit [Remote host closed the connection]
greenarrow has joined #ruby
blackmesa has joined #ruby
atmosx has quit [Remote host closed the connection]
blackmesa has quit [Remote host closed the connection]
atmosx has joined #ruby
toastynerd has quit [Remote host closed the connection]
jrdnull has joined #ruby
Terminus- has joined #ruby
<Terminus-> hello. question, how would i put something like "gem install psych -- --enable-bundled-libyaml" in a Gemfile?
blackmesa has joined #ruby
<centrx> Terminus-, The only way I found was to add it to bundle config (see bundle config)
<centrx> Terminus-, Add the command-line option to bundle config keyed to the gem name
andikr has joined #ruby
<centrx> (see docs)
oo_ has joined #ruby
<Terminus-> centrx: thanks.
francisfish has joined #ruby
qba73 has joined #ruby
oo_ has quit [Remote host closed the connection]
<Terminus-> hmmm... wish it was in the Gemfile so that you can commit it to the repo easily. =|
andikr has quit [Remote host closed the connection]
<centrx> yeah, it's unfortunate
twiceaday has quit [Ping timeout: 246 seconds]
RichGuk has left #ruby ["WeeChat 0.4.3"]
twiceaday has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
andikr has joined #ruby
osvico has quit [Read error: Connection reset by peer]
francisfish has quit [Ping timeout: 240 seconds]
advorak has joined #ruby
osvico has joined #ruby
<Terminus-> maybe i should try rvm. not sure if i'm ok with having to do "require 'bundler/setup'" with bundler.
coderhs has joined #ruby
narcan has joined #ruby
sdouglas has joined #ruby
robbyoconnor is now known as robbyoconnorVi
robbyoconnorVi is now known as robbyoconnor
oo_ has joined #ruby
rdark has joined #ruby
pu22l3r has joined #ruby
combusean has quit [Ping timeout: 255 seconds]
centrx has quit [Quit: All this computer hacking is making me thirsty]
kitak has quit [Read error: Connection reset by peer]
ktun has joined #ruby
rm__ has quit [Remote host closed the connection]
kitak has joined #ruby
andrewlio has joined #ruby
rm_ has joined #ruby
sdouglas has quit [Ping timeout: 255 seconds]
Xeago_ has quit [Remote host closed the connection]
tonni has joined #ruby
<tagrudev> certainty, here ?
Xeago has joined #ruby
x77686d has quit [Quit: x77686d]
cover has joined #ruby
browndawg has quit [Read error: Connection timed out]
supermarin has joined #ruby
havenwood has quit [Remote host closed the connection]
cj3kim has joined #ruby
_justin has joined #ruby
rm_ has quit [Ping timeout: 252 seconds]
dyoko has joined #ruby
browndawg has joined #ruby
hooper has joined #ruby
heftig has joined #ruby
supermarin has quit [Read error: Connection reset by peer]
supermarin has joined #ruby
Xeago_ has joined #ruby
Melpaws has quit [Ping timeout: 240 seconds]
Melpaws has joined #ruby
cherry_lin has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Ping timeout: 255 seconds]
keeguon has joined #ruby
dr0ff has left #ruby [#ruby]
ohcibi has quit [Read error: Connection reset by peer]
Xeago has quit [Ping timeout: 240 seconds]
hooper has quit [Ping timeout: 252 seconds]
supermarin has quit [Ping timeout: 246 seconds]
olivier_bK has joined #ruby
Tuxified has joined #ruby
Kneferilis has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
marr has joined #ruby
chichou has quit [Remote host closed the connection]
<certainty> tagrudev: o/
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jlebrech has joined #ruby
fabrice31 has joined #ruby
Kneferilis has joined #ruby
browndawg has quit [Read error: Operation timed out]
end_guy has quit [Remote host closed the connection]
jottr has quit [Quit: WeeChat 0.4.2]
Stalkr_ has joined #ruby
end_guy has joined #ruby
hailwood has joined #ruby
jxf has joined #ruby
nvrch has joined #ruby
chichou has joined #ruby
cherry_lin has joined #ruby
<hailwood> Hey guys, does anyone know why trying to install a ruby gem (berkshelf 2.0.14) is failing on an aws ec2? http://pastebin.com/yLTiqvz7
chichou has quit [Client Quit]
browndawg has joined #ruby
_5kg has joined #ruby
ktosiek has quit [Remote host closed the connection]
<Terminus-> hailwood: what distro? you probably need to install ruby-dev
kraljev6 has joined #ruby
<hailwood> Terminus-: Amazon linux, which is redhat based
kraljev6 has quit [Client Quit]
nateberkopec has joined #ruby
ghr has joined #ruby
jayne has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
<Terminus-> hailwood: you most likely need to install ruby-devel then.
bluenemo has joined #ruby
<hailwood> Terminus-: Apparently it's already installed http://pastebin.com/YTQuDK4G
jayne has joined #ruby
<hailwood> Although I wonder if that's the right version since it's ruby 2.0.0p451?
<Terminus-> hailwood: was just about to point that out.
<hailwood> Apparently that's the only version in the repo, here's the yum search for ruby http://pastebin.com/7RDGXZEy
gakos has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
<Terminus-> hailwood: since it's in /usr/local/, that version of ruby is probably provided by amazon. what's the path when you do `which ruby`?
mikecmpbll has joined #ruby
<hailwood> /usr/bin/ruby
eavgerinos has joined #ruby
<Terminus-> heh. probably a symlink. `ls -l /usr/bin/ruby`?
<hailwood> /usr/bin/ruby -> /etc/alternatives/ruby
<hailwood> /etc/alternatives/ruby -> /usr/bin/ruby2.0
funburn has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<Terminus-> errr... `ls -l /usr/bin/ruby2.0`
supermarin has joined #ruby
<hailwood> That ones not a symlink
<Terminus-> aha. also, i misread the paste. thought i saw /usr/local/. >_<
<Terminus-> anyway, ruby20-devel should be available somewhere...
kraljev6 has joined #ruby
sepp2k has joined #ruby
kaliya has joined #ruby
jack_rabbit has joined #ruby
deadlock has joined #ruby
<hailwood> Does the pnnn of ruby20-devel need to match the pnnn of ruby --version?
advorak has quit [Quit: Ex-Chat]
<Terminus-> hailwood: probably not but i'd prefer having the same. it's in amazon's repo?
supermarin has quit [Ping timeout: 240 seconds]
_5kg has quit [Ping timeout: 255 seconds]
elaptics`away is now known as elaptics
LiohAu has joined #ruby
<hailwood> Nope, but I can find an rpm online (although I'm only hoping it will work since it's distribution is opensuse but they are both rpm based..)
aagdbl has quit [Quit: This computer has gone to sleep]
<hailwood> Wonder if I should just uninstall ruby then reinstall from source?
robde has joined #ruby
blackmes1 has joined #ruby
michael_lee has joined #ruby
michael_lee has quit [Max SendQ exceeded]
blackmesa has quit [Ping timeout: 240 seconds]
zoraj has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<Terminus-> hailwood: well, reinstalling from source does mean you control where the header files are located. have you tried looking for ruby.h first? maybe it's already there? i have mine in /usr/include/ruby-1.9.1/ruby.h
canton7-mac has joined #ruby
<hailwood> Well there is /usr/lib64/ruby/1.8/x86_64-linux/ruby.h, but that's ruby 1.8..
matcouto has quit [Read error: Connection reset by peer]
shashank_rs has joined #ruby
flowerhack has quit [Quit: Connection closed for inactivity]
blackmes1 has quit [Ping timeout: 246 seconds]
<Terminus-> hailwood: yeah... you want the 2.0 version. asking amazon is an option as well.
<hailwood> Haha, yeah but the minumum $100 support contract is not my cup of tea ;)
pigzzcanfly has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
dapz has joined #ruby
evenix has joined #ruby
ephemerian has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
<Terminus-> hailwood: kinda seems to be a big oversight for amazon to not provide the header files though.
evenix_ has joined #ruby
<hailwood> Yeah it really does
evenix has quit [Read error: Connection reset by peer]
funktor has joined #ruby
nighter_ is now known as nighter
pyon has joined #ruby
Caius has quit [Quit: ""]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
einarj has joined #ruby
Caius has joined #ruby
rylev has joined #ruby
arturaz has joined #ruby
funktor has quit [Ping timeout: 252 seconds]
<shevy> omg
<shevy> where did havenwood go
<Terminus-> rvm can't make gemsets when using system ruby. =(
michael_lee has joined #ruby
tchebb has quit [Quit: ZNC - http://znc.in]
Caius has quit [Quit: ""]
decoponyo has joined #ruby
tchebb has joined #ruby
Caius has joined #ruby
sdouglas has joined #ruby
francisfish has joined #ruby
poikon has joined #ruby
Xeago_ has quit [Remote host closed the connection]
fgo has joined #ruby
nhhagen has quit [Remote host closed the connection]
jgrevich_ has quit [Quit: jgrevich_]
Xeago has joined #ruby
armyriad has quit [Ping timeout: 246 seconds]
pu22l3r has joined #ruby
fgo has quit [Read error: No route to host]
obs has joined #ruby
rm_ has joined #ruby
fgo has joined #ruby
amundj has quit [Remote host closed the connection]
sdouglas has quit [Ping timeout: 255 seconds]
lkba has quit [Ping timeout: 255 seconds]
amundj has joined #ruby
_justin has quit [Quit: _justin]
claymore has quit [Ping timeout: 240 seconds]
fgo has quit [Ping timeout: 255 seconds]
hooper has joined #ruby
poikon_ has joined #ruby
marcdel has quit []
pu22l3r has quit [Ping timeout: 252 seconds]
rm_ has quit [Ping timeout: 246 seconds]
poikon has quit [Read error: Connection reset by peer]
werdnativ has quit [Quit: werdnativ]
hooper has quit [Read error: Operation timed out]
dukz has joined #ruby
werdnativ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
Waheedi has joined #ruby
danijoo has joined #ruby
gakos has quit [Quit: leaving]
_5kg has joined #ruby
werdnativ has quit [Ping timeout: 255 seconds]
sk87 has joined #ruby
browndawg has quit [Quit: Leaving.]
FaresKAlaboud has quit [Quit: Quit~]
obs has quit [Ping timeout: 255 seconds]
FaresKAlaboud has joined #ruby
pigzzcanfly has joined #ruby
AlSquire has joined #ruby
phansch has joined #ruby
nateberkopec has joined #ruby
obs has joined #ruby
pigzzcanfly has quit [Ping timeout: 255 seconds]
Rix has quit [Ping timeout: 240 seconds]
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
cj3kim has quit [Remote host closed the connection]
jrhe has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
Mapley has quit [Quit: bai!]
supermarin has joined #ruby
Jetchisel has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
kevinykchan has joined #ruby
kevinykchan has quit [Client Quit]
Zai00 has joined #ruby
arount has joined #ruby
nhhagen has joined #ruby
Mapley has joined #ruby
Mapley has joined #ruby
Mapley has quit [Changing host]
supermarin has quit [Ping timeout: 240 seconds]
Zackio has quit [Quit: ZNC - http://znc.in]
DaniG2k has joined #ruby
Zackio has joined #ruby
lele has quit [Ping timeout: 246 seconds]
aaronmcadam has joined #ruby
fsdldl has quit [Quit: WeeChat 0.4.3]
obs has quit [Read error: Operation timed out]
alex88 has joined #ruby
Terminus- has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 264 seconds]
lele has joined #ruby
nhhagen has quit [Read error: Operation timed out]
Mon_Ouie has quit [Quit: WeeChat 0.4.3]
ghr has quit [Excess Flood]
rylev has quit [Remote host closed the connection]
ghr has joined #ruby
Ancient has quit [Quit: Have a nice day. :)]
Ancient has joined #ruby
rylev has joined #ruby
DrCode has quit [Write error: Connection reset by peer]
Terminus- has joined #ruby
yfeldblum has quit [Remote host closed the connection]
Rix has joined #ruby
DrCode has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
tvw has joined #ruby
Alina-malina has joined #ruby
_justin has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
raycloud has joined #ruby
dumdedum has quit [Ping timeout: 240 seconds]
bubbajones has quit [Ping timeout: 240 seconds]
<shevy> haha
<shevy> layers on layers on layers of sand
<shevy> the sandcastle will withstand the mightiest blows!
ohcibi has joined #ruby
<shevy> the principle of solid engineering
pushpak has joined #ruby
endash_ has joined #ruby
CaptainJet has quit []
Shidash has joined #ruby
eynj has quit [Read error: Connection reset by peer]
ziyadb_ has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
<arount> hi there
soulcake has joined #ruby
bubbajones has joined #ruby
hiall has joined #ruby
<arount> i'v an error when i'm trying to catch Redis::Lock::LockNotAcquired
<arount> Ruby tell the constant don't exist
<arount> here is the code and error: http://pastebin.com/rkpyM58z
okdas has quit [Ping timeout: 240 seconds]
amundj has quit [Quit: Textual IRC Client: www.textualapp.com]
nari has joined #ruby
<arount> I found nothing about that
<apeiros> arount: it means you either forgot a require or use the wrong name
danfo has joined #ruby
<arount> apeiros: strange .. I require redis and redis-lock
armyriad has joined #ruby
amundj has joined #ruby
<apeiros> and according to ruby, none of those define the constant you need
* apeiros just stating the obvious
Caius has quit [Quit: ""]
rylev_ has joined #ruby
aagdbl has joined #ruby
LadyRaincorn has joined #ruby
Caius has joined #ruby
papercode has quit [Quit: WeeChat 0.4.4-dev]
Heskie has joined #ruby
sdouglas has joined #ruby
_5kg has quit [Ping timeout: 255 seconds]
danfo has quit [Client Quit]
tvw has quit [*.net *.split]
Shidash has quit [*.net *.split]
Terminus- has quit [*.net *.split]
FaresKAlaboud has quit [*.net *.split]
phansch has quit [*.net *.split]
Waheedi has quit [*.net *.split]
cover has quit [*.net *.split]
canton7 has quit [*.net *.split]
jgoss has quit [*.net *.split]
lxsameer has quit [*.net *.split]
krz has quit [*.net *.split]
robustus has quit [*.net *.split]
trhodes_ has quit [*.net *.split]
fbernier has quit [*.net *.split]
hoelzro has quit [*.net *.split]
Bumptious has quit [*.net *.split]
organmeat has quit [*.net *.split]
psyko666 has quit [*.net *.split]
bauruine has quit [*.net *.split]
radic has quit [*.net *.split]
Nicekiwi has quit [*.net *.split]
charliesome has quit [*.net *.split]
predator117 has quit [*.net *.split]
Geniack has quit [*.net *.split]
matchaw has quit [*.net *.split]
lupine has quit [*.net *.split]
mdpatrick has quit [*.net *.split]
_aeris_ has quit [*.net *.split]
jaxxstorm has quit [*.net *.split]
Hamled|Erp has quit [*.net *.split]
rs0_ has quit [*.net *.split]
kloeri_ has quit [*.net *.split]
crazysim has quit [*.net *.split]
zorak has quit [*.net *.split]
vpretzel has quit [*.net *.split]
thumpba has quit [*.net *.split]
yokel has quit [*.net *.split]
Bish has quit [*.net *.split]
joonty has quit [*.net *.split]
jimeh has quit [*.net *.split]
Mars` has quit [*.net *.split]
rtlong has quit [*.net *.split]
LexicalScope has quit [*.net *.split]
gregf has quit [*.net *.split]
anekos has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
RoryHughes has quit [*.net *.split]
Dwarf has quit [*.net *.split]
CaptainKnots has quit [*.net *.split]
boska has quit [*.net *.split]
mgorbach has quit [*.net *.split]
jzigmund has quit [*.net *.split]
mclee has quit [*.net *.split]
stephenmac7 has quit [*.net *.split]
b1nd has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
nhmood has quit [*.net *.split]
Kilobyte|StupidC has quit [*.net *.split]
QKO_ has quit [*.net *.split]
cuppscakes has quit [*.net *.split]
gogiel has quit [*.net *.split]
drasch has quit [*.net *.split]
Su7 has quit [*.net *.split]
mheld has quit [*.net *.split]
maxmanders has quit [*.net *.split]
Dreamer3__ has quit [*.net *.split]
Affix has quit [*.net *.split]
shadoi has quit [*.net *.split]
Urocyon has quit [*.net *.split]
certainty has quit [*.net *.split]
XenoWolf has quit [*.net *.split]
supershabam has quit [*.net *.split]
brandon__ has quit [*.net *.split]
Authenticator has quit [*.net *.split]
charles81 has quit [*.net *.split]
alol_ has quit [*.net *.split]
RohanRNS has quit [*.net *.split]
pipework has quit [*.net *.split]
maZtah has quit [*.net *.split]
antonishen has quit [*.net *.split]
andrewstewart has quit [*.net *.split]
Rylee has quit [*.net *.split]
jeekl has quit [*.net *.split]
chuck has quit [*.net *.split]
sebastianb has quit [*.net *.split]
micah` has quit [*.net *.split]
machuga has quit [*.net *.split]
Gate has quit [*.net *.split]
cephalostrum has quit [*.net *.split]
v0n has quit [*.net *.split]
drPoggs has quit [*.net *.split]
vaicine_ has quit [*.net *.split]
Afal has quit [*.net *.split]
parus has quit [*.net *.split]
three18ti has quit [*.net *.split]
Billy2 has quit [*.net *.split]
adam12 has quit [*.net *.split]
Karu has quit [*.net *.split]
Kamilion has quit [*.net *.split]
drPoggs has joined #ruby
mheld has joined #ruby
Su7 has joined #ruby
parus has joined #ruby
sebastianb has joined #ruby
Karunamon has joined #ruby
shadoi has joined #ruby
organmeat has joined #ruby
evenix_ has quit [Write error: Broken pipe]
matchaw has joined #ruby
cover has joined #ruby
Afal has joined #ruby
phansch has joined #ruby
tvw has joined #ruby
zorak has joined #ruby
Billy2 has joined #ruby
XenoWolf has joined #ruby
Kamilion has joined #ruby
certainty has joined #ruby
boska has joined #ruby
Authenticator has joined #ruby
Hamled has joined #ruby
LexicalScope has joined #ruby
LexicalScope has quit [Changing host]
LexicalScope has joined #ruby
jgoss has joined #ruby
jeekl has joined #ruby
Rylee has joined #ruby
Waheedi has joined #ruby
adam- has joined #ruby
supershabam has joined #ruby
anekos has joined #ruby
chuck has joined #ruby
chuck has joined #ruby
chuck has quit [Changing host]
lxsameer has joined #ruby
maxmanders has joined #ruby
maZtah has joined #ruby
machuga has joined #ruby
boska has quit [Changing host]
boska has joined #ruby
gogiel has joined #ruby
cephalostrum has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
crazysim has joined #ruby
yokel has joined #ruby
charliesome has joined #ruby
thumpba has joined #ruby
b1nd has joined #ruby
supershabam has joined #ruby
supershabam has quit [Changing host]
Urocyon has joined #ruby
evenix has joined #ruby
fbernier has joined #ruby
maZtah has quit [Changing host]
maZtah has joined #ruby
v0n has joined #ruby
andrewstewart has joined #ruby
antonishen has joined #ruby
robustus has joined #ruby
end_guy has quit [Remote host closed the connection]
charliesome has quit [*.net *.split]
cephalostrum has quit [*.net *.split]
adam- has quit [*.net *.split]
certainty has quit [*.net *.split]
Authenticator has quit [*.net *.split]
lxsameer has quit [*.net *.split]
Afal has quit [*.net *.split]
yokel has quit [*.net *.split]
endash_ has quit [*.net *.split]
Zackio has quit [*.net *.split]
DaniG2k has quit [*.net *.split]
alex88 has quit [*.net *.split]
einarj has quit [*.net *.split]
raycloud has quit [*.net *.split]
LiohAu has quit [*.net *.split]
kraljev6 has quit [*.net *.split]
marr has quit [*.net *.split]
cherry_lin has quit [*.net *.split]
olivier_bK has quit [*.net *.split]
Hanmac has quit [*.net *.split]
mengu has quit [*.net *.split]
bluOxigen has quit [*.net *.split]
halik has quit [*.net *.split]
larsam has quit [*.net *.split]
arietis has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
s_e has quit [*.net *.split]
skkeeper has quit [*.net *.split]
kies has quit [*.net *.split]
ftj has quit [*.net *.split]
Voodoofish430 has quit [*.net *.split]
mr_red has quit [*.net *.split]
rezzack has quit [*.net *.split]
kinginky has quit [*.net *.split]
DouweM has quit [*.net *.split]
jgrevich has quit [*.net *.split]
DylanJ has quit [*.net *.split]
qz_ has quit [*.net *.split]
mnms__ has quit [*.net *.split]
patronus_ has quit [*.net *.split]
oz has quit [*.net *.split]
gigetoo has quit [*.net *.split]
moted has quit [*.net *.split]
bricker has quit [*.net *.split]
the_mentat has quit [*.net *.split]
willb1 has quit [*.net *.split]
keen_ has quit [*.net *.split]
jericon has quit [*.net *.split]
zastern has quit [*.net *.split]
Doppp has quit [*.net *.split]
connor_goodwolf has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
deepy has quit [*.net *.split]
elaptics has quit [*.net *.split]
Drakevr has quit [*.net *.split]
Asher has quit [*.net *.split]
Veejay has quit [*.net *.split]
graft has quit [*.net *.split]
spacemud has quit [*.net *.split]
OZzl has quit [*.net *.split]
Photism has quit [*.net *.split]
WormDrink has quit [*.net *.split]
gitt has quit [*.net *.split]
bahar has quit [*.net *.split]
SirFunk has quit [*.net *.split]
matti has quit [*.net *.split]
nilsove has quit [*.net *.split]
klaas has quit [*.net *.split]
kung has quit [*.net *.split]
ericwood has quit [*.net *.split]
contradictioned has quit [*.net *.split]
hackeron has quit [*.net *.split]
m0s^away has quit [*.net *.split]
gtc|ghost has quit [*.net *.split]
Xuerian has quit [*.net *.split]
Guest746 has quit [*.net *.split]
atmosx has quit [*.net *.split]
DrCode has quit [*.net *.split]
pipework has joined #ruby
Nicekiwi has joined #ruby
qz has joined #ruby
qz has quit [Changing host]
qz has joined #ruby
gitt has joined #ruby
bauruine has joined #ruby
mgorbach has joined #ruby
alol_ has joined #ruby
Rickmasta has quit [*.net *.split]
eythorium has quit [*.net *.split]
Riking has quit [*.net *.split]
pr00t has quit [*.net *.split]
descala has quit [*.net *.split]
yubrew has quit [*.net *.split]
nuck has quit [*.net *.split]
WillAmes has quit [*.net *.split]
dideler|work has quit [*.net *.split]
rurban_ has quit [*.net *.split]
chridal has quit [*.net *.split]
cschneid has quit [*.net *.split]
weaksauce has quit [*.net *.split]
sivoais has quit [*.net *.split]
shanlar has quit [*.net *.split]
manacit has quit [*.net *.split]
mvangala has quit [*.net *.split]
vjt has quit [*.net *.split]
LBRapid has quit [*.net *.split]
BackEndCoder has quit [*.net *.split]
TheShaun has quit [*.net *.split]
lotherk has quit [*.net *.split]
mosez has quit [*.net *.split]
ozzloy has quit [*.net *.split]
headius has quit [*.net *.split]
Norrin has quit [*.net *.split]
likemike has quit [*.net *.split]
jacobat has quit [*.net *.split]
ParanoidSP has quit [*.net *.split]
gtech has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
pavelz has quit [*.net *.split]
mahlon has quit [*.net *.split]
psyko666 has joined #ruby
Tarential has quit [*.net *.split]
ji0n has quit [*.net *.split]
optiz0r has quit [*.net *.split]
xybre has quit [*.net *.split]
billiam has quit [*.net *.split]
rtl has quit [*.net *.split]
philtr has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
ccooke has quit [*.net *.split]
mburns has quit [*.net *.split]
Cork has quit [*.net *.split]
germanstudent has quit [*.net *.split]
tonini has quit [*.net *.split]
qqw has quit [*.net *.split]
aep has quit [*.net *.split]
gf3 has quit [*.net *.split]
lessless has quit [*.net *.split]
qubit has quit [*.net *.split]
culturelabs has quit [*.net *.split]
zz_jrhorn424 has quit [*.net *.split]
Tachoh has quit [*.net *.split]
mjc_ has quit [*.net *.split]
fayimora has quit [*.net *.split]
yo61 has quit [*.net *.split]
drjblouse__ has quit [*.net *.split]
schaary has quit [*.net *.split]
cmaxw_____ has quit [*.net *.split]
Tranquility has quit [*.net *.split]
three18ti has joined #ruby
Dreamer3 has joined #ruby
brandon has joined #ruby
gregf has joined #ruby
charles81 has joined #ruby
deepy has joined #ruby
connor_goodwolf has joined #ruby
kloeri has joined #ruby
elaptics has joined #ruby
cephalostrum has joined #ruby
likemike has joined #ruby
cherry_lin has joined #ruby
vjt has joined #ruby
mosez has joined #ruby
Tachoh_ has joined #ruby
mnms_ has joined #ruby
kitak has quit [*.net *.split]
joonty has joined #ruby
DylanJ has joined #ruby
gtech has joined #ruby
klaas has joined #ruby
tonini has joined #ruby
optiz0r has joined #ruby
qubit has joined #ruby
OZzl has joined #ruby
skkeeper has joined #ruby
kies has joined #ruby
kies has quit [Changing host]
aep_ has joined #ruby
kies has joined #ruby
kinginky has joined #ruby
WormDrink has joined #ruby
eythorium has joined #ruby
Voodoofish430 has joined #ruby
graft has joined #ruby
jericon has joined #ruby
hackeron has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
qqw has joined #ruby
einarj has joined #ruby
jrhorn425 has joined #ruby
halik has joined #ruby
TheShaun has joined #ruby
deepy is now known as Guest14456
gf3 has joined #ruby
Tarential has joined #ruby
RubyPanther has joined #ruby
schaary|afk has joined #ruby
cmaxw_____ has joined #ruby
xybre has joined #ruby
xybre has quit [Changing host]
xybre has joined #ruby
lessless has joined #ruby
krz has joined #ruby
jacobat has joined #ruby
mvangala has joined #ruby
rs0 has joined #ruby
Terminus- has joined #ruby
Terminus- has quit [Changing host]
Terminus- has joined #ruby
philtr has joined #ruby
gigetoo has joined #ruby
drjblouse__ has joined #ruby
headius has joined #ruby
s_e has joined #ruby
dideler|work has joined #ruby
rurban_ has joined #ruby
arietis has joined #ruby
adam- has joined #ruby
Photism has joined #ruby
Xuerian has joined #ruby
yo61 has joined #ruby
culturelabs has joined #ruby
fayimora_ has joined #ruby
nuck has joined #ruby
yubrew has joined #ruby
LBRapid has joined #ruby
mr_red has joined #ruby
chridal has joined #ruby
Bish has joined #ruby
Rickmasta has joined #ruby
LiohAu has joined #ruby
Tranquility has joined #ruby
bluOxigen has joined #ruby
mjc_ has joined #ruby
Hanmac has joined #ruby
nhmood has joined #ruby
RohanRNS has joined #ruby
mdpatrick has joined #ruby
jgrevich has joined #ruby
oz has joined #ruby
stephenmac7 has joined #ruby
bahar has joined #ruby
willb1 has joined #ruby
contradictioned has joined #ruby
Cork has joined #ruby
the_mentat has joined #ruby
Kovensky has quit [Quit: ZNC - http://znc.in]
Asher has joined #ruby
mahlon has joined #ruby
Gnubie_ has joined #ruby
fgo has joined #ruby
matti has joined #ruby
matti has joined #ruby
vpretzel has joined #ruby
spacemud has joined #ruby
billiam_ has joined #ruby
nhmood has quit [*.net *.split]
vjt has quit [*.net *.split]
charles81 has quit [*.net *.split]
organmeat has quit [*.net *.split]
shadoi has quit [*.net *.split]
Su7 has quit [*.net *.split]
drPoggs has quit [*.net *.split]
ziyadb_ has quit [*.net *.split]
kalz has quit [*.net *.split]
bio has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
omegahm has quit [*.net *.split]
jokke has quit [*.net *.split]
bjeanes has quit [*.net *.split]
digifiv5e has quit [*.net *.split]
therm has quit [*.net *.split]
segv has quit [*.net *.split]
jsutch has quit [*.net *.split]
Davedo has quit [*.net *.split]
mattp_ has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
thelamest has quit [*.net *.split]
rmill has quit [*.net *.split]
kevinfagan has quit [*.net *.split]
cyphactor has quit [*.net *.split]
unholycrab has quit [*.net *.split]
wykydtron has quit [*.net *.split]
musl has quit [*.net *.split]
mven_ has quit [*.net *.split]
alyx has quit [*.net *.split]
jeffreybaird has quit [*.net *.split]
Brando753 has quit [*.net *.split]
p4tux has quit [*.net *.split]
nuba has quit [*.net *.split]
ocher has quit [*.net *.split]
Spleeze has quit [*.net *.split]
RowdyChild|Away has quit [*.net *.split]
\marrub has quit [*.net *.split]
thejoecarroll has quit [*.net *.split]
juni0r has quit [*.net *.split]
miah has quit [*.net *.split]
jso has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
Lulzon has quit [*.net *.split]
Rudde has quit [*.net *.split]
onewheelskyward has quit [*.net *.split]
gyre007___ has quit [*.net *.split]
skinny_much has quit [*.net *.split]
dermot has quit [*.net *.split]
diegok has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
ph8 has quit [*.net *.split]
dandrade_ has quit [*.net *.split]
drPoggs has joined #ruby
alyx has joined #ruby
BackEndCoder has joined #ruby
RowdyChild|Away has joined #ruby
ji0n has joined #ruby
mengu has joined #ruby
lolmaus has quit [Ping timeout: 252 seconds]
shadoi1 has joined #ruby
Norrin has joined #ruby
LadyRaincorn has quit [Client Quit]
bjeanes has joined #ruby
Veejay has joined #ruby
gyre007___ has joined #ruby
wykydtron has joined #ruby
mattp_ has joined #ruby
JaTochNietDan_ has joined #ruby
charles81 has joined #ruby
organmeat has joined #ruby
jzigmund has joined #ruby
rmill has joined #ruby
digifiv5e has joined #ruby
mclee has joined #ruby
alyx is now known as Guest87057
JaTochNietDan_ is now known as JaTochNietDan
zastern has joined #ruby
unholycrab has joined #ruby
idoru has quit [*.net *.split]
Su7 has joined #ruby
TheMoonMaster has joined #ruby
jokke has joined #ruby
pavelz_ has joined #ruby
radic has joined #ruby
samuelkadolph has joined #ruby
thejoecarroll has joined #ruby
mven_ has joined #ruby
digifiv5e is now known as Guest75090
mburns has joined #ruby
pavelz_ has quit [*.net *.split]
jzigmund has quit [*.net *.split]
radic has quit [*.net *.split]
rs0 has quit [*.net *.split]
Terminus- has quit [*.net *.split]
psyko666 has quit [*.net *.split]
Nicekiwi has quit [*.net *.split]
sdouglas has quit [*.net *.split]
Caius has quit [*.net *.split]
aagdbl has quit [*.net *.split]
rylev_ has quit [*.net *.split]
amundj has quit [*.net *.split]
soulcake has quit [*.net *.split]
pushpak has quit [*.net *.split]
Rix has quit [*.net *.split]
ephemerian has quit [*.net *.split]
decoponyo has quit [*.net *.split]
kaliya has quit [*.net *.split]
nvrch has quit [*.net *.split]
bluenemo has quit [*.net *.split]
osvico has quit [*.net *.split]
keeguon has quit [*.net *.split]
jrdnull has quit [*.net *.split]
samuel02 has quit [*.net *.split]
ahawkins has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
timonv has quit [*.net *.split]
nfk has quit [*.net *.split]
devyn has quit [*.net *.split]
tagrudev has quit [*.net *.split]
nomadic has quit [*.net *.split]
JohnBat26 has quit [*.net *.split]
Deele has quit [*.net *.split]
snath has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
hamakn has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
luvs2spooge has quit [*.net *.split]
sethen has quit [*.net *.split]
justinmcp has quit [*.net *.split]
ylluminate has quit [*.net *.split]
yosafbridge has quit [*.net *.split]
RSTJNII has quit [*.net *.split]
drager_ has quit [*.net *.split]
zxq9 has quit [*.net *.split]
BradPitt_ has quit [*.net *.split]
Gadgetoid has quit [*.net *.split]
Apocalypse has quit [*.net *.split]
trautwein has quit [*.net *.split]
shevy has quit [*.net *.split]
jonathanwallace has quit [*.net *.split]
sumark has quit [*.net *.split]
izzol has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
crodas has quit [*.net *.split]
winny has quit [*.net *.split]
Koshian has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
ninegrid has quit [*.net *.split]
kimiaman- has quit [*.net *.split]
vadviktor_ has quit [*.net *.split]
felixjet has quit [*.net *.split]
robert_ has quit [*.net *.split]
bpgoldsb has quit [*.net *.split]
solidus-1iver has quit [*.net *.split]
virtualize has quit [*.net *.split]
Takumo has quit [*.net *.split]
Xiti has quit [*.net *.split]
LetErikTry has quit [*.net *.split]
tris has quit [*.net *.split]
FDj has quit [*.net *.split]
ValicekB has quit [*.net *.split]
guardian has quit [*.net *.split]
schmidt has quit [*.net *.split]
flori_ has quit [*.net *.split]
tsunamie has quit [*.net *.split]
Cooler_ has quit [*.net *.split]
mg^ has quit [*.net *.split]
reijoslav has quit [*.net *.split]
Lightstalker has quit [*.net *.split]
__main__ has quit [*.net *.split]
cba has quit [*.net *.split]
zarul has quit [*.net *.split]
ixx has quit [*.net *.split]
bawNg has quit [*.net *.split]
crome has quit [*.net *.split]
Raboo has quit [*.net *.split]
jtz has quit [*.net *.split]
skyjumper has quit [*.net *.split]
WanderingGlitch has quit [*.net *.split]
ClarusCogitatio has quit [*.net *.split]
Nilium has quit [*.net *.split]
jsaak has quit [*.net *.split]
dmead has quit [*.net *.split]
barratt has quit [*.net *.split]
tekacs has quit [*.net *.split]
fumk has quit [*.net *.split]
davidcollom_zzz has quit [*.net *.split]
JStoker has quit [*.net *.split]
netf has quit [*.net *.split]
jeffreybaird has joined #ruby
musl has joined #ruby
lxsameer has joined #ruby
guardian has joined #ruby
Lulzon has joined #ruby
crome has joined #ruby
ylluminate has joined #ruby
flori has joined #ruby
FDj has joined #ruby
skyjumper has joined #ruby
anicet has joined #ruby
ahawkins has joined #ruby
nomadic has joined #ruby
pushpak has joined #ruby
tekacs has joined #ruby
kraljev6 has joined #ruby
aagdbl has joined #ruby
BradPitt_ has joined #ruby
roolo has joined #ruby
zxq9 has joined #ruby
codenapper has joined #ruby
fgo has quit [Write error: Connection reset by peer]
nilsove has joined #ruby
SirFunk has joined #ruby
reijoslav has joined #ruby
tkuchiki has joined #ruby
thejoecarroll has quit [Excess Flood]
timonv has joined #ruby
jtz has joined #ruby
nhmood has joined #ruby
AntelopeSalad has joined #ruby
LetErikTry has joined #ruby
cba has joined #ruby
anicet is now known as Guest50896
virtualize has joined #ruby
kaliya has joined #ruby
sethen has joined #ruby
psyko666 has joined #ruby
osvico has joined #ruby
JohnBat26 has joined #ruby
hamakn has joined #ruby
zarul has joined #ruby
tagrudev has joined #ruby
segv has joined #ruby
felixjet has joined #ruby
jsaak has joined #ruby
Guest50896 is now known as juni0r
devdazed has quit [Ping timeout: 246 seconds]
rylev has joined #ruby
radic has joined #ruby
nfk has joined #ruby
davidcollom_zzz has joined #ruby
bluenemo has joined #ruby
ziyadb_ has joined #ruby
GreatSUN has quit [*.net *.split]
evenix has quit [Read error: Operation timed out]
davidcollom_zzz is now known as davidcollom
diegok has joined #ruby
<hiall> Is there a way of checking if a hash object exists and if so append rather than create? http://paste2.org/Pk4z8LdN
SegFaultAX has joined #ruby
jrdnull has joined #ruby
idoru has joined #ruby
luvs2spooge has joined #ruby
bpgoldsb has joined #ruby
fumk has joined #ruby
justinmcp has joined #ruby
Koshian has joined #ruby
jkamenik has joined #ruby
rezzack has joined #ruby
rezzack has quit [Changing host]
rezzack has joined #ruby
alex88 has joined #ruby
Spleeze has joined #ruby
karupanerura is now known as zz_karupanerura
Afal has joined #ruby
predator117 has joined #ruby
RoryHughes has joined #ruby
crodas has joined #ruby
JStoker has joined #ruby
Mars` has joined #ruby
jimeh has joined #ruby
olivier_bK has joined #ruby
lupine has joined #ruby
Authenticator has joined #ruby
JBreit has joined #ruby
amundj has joined #ruby
rtlong has joined #ruby
robert_ has joined #ruby
robert_ has quit [Changing host]
robert_ has joined #ruby
germanstudent has joined #ruby
Affix has joined #ruby
64MAAAAK0 has joined #ruby
cuppscakes has joined #ruby
_aeris_ has joined #ruby
RSTJNII has joined #ruby
Terminus- has joined #ruby
Bumptious has joined #ruby
Dwarf has joined #ruby
Apocalypse has joined #ruby
jzigmund has joined #ruby
thelamest has joined #ruby
jaxxstorm has joined #ruby
<apeiros> hiall: I doubt the correctness of your example code
JBreit has left #ruby [#ruby]
Xiti has joined #ruby
kitak has joined #ruby
Affix is now known as Guest21366
m0s^away has joined #ruby
rm_ has joined #ruby
FaresKAlaboud has joined #ruby
charliesome has joined #ruby
<apeiros> hiall: a) is c.data an Array? b) if it is, are you aware that pushing an array on an array is not the same as concatenating?
bawNg has joined #ruby
bawNg has joined #ruby
bawNg has quit [Changing host]
samuel02 has joined #ruby
skinny_much has joined #ruby
<apeiros> hiall: it might well be that all you need is group_by - but since your example seems inconsistent, I can't tell
thejoecarroll has joined #ruby
kimiamania has joined #ruby
tris has joined #ruby
halik has quit [Quit: halik]
<apeiros> anyway, I'm off for lunch, toodles!
mg^ has joined #ruby
robbyoconnor has joined #ruby
nemesit|znc has joined #ruby
Kovensky has joined #ruby
descala has joined #ruby
kimiamania has quit [Changing host]
kimiamania has joined #ruby
<hiall> apeiros: it’s actually a hash, but thanks will look
manacit has joined #ruby
Hyeon has joined #ruby
lotherk has joined #ruby
winny has joined #ruby
<apeiros> hiall: you can't << on a hash at all
obs has joined #ruby
RealMarc has joined #ruby
<apeiros> hiall: so your example is even more broken
PaulePanter has joined #ruby
<hiall> p
Gadgetoid has joined #ruby
netf has joined #ruby
keeguon has joined #ruby
dmead has joined #ruby
Brando753 has joined #ruby
kevinykchan has joined #ruby
winny is now known as Guest96771
barratt has joined #ruby
Cooler_ has joined #ruby
vadviktor has joined #ruby
<hiall> apeiros: i wish to create an array full of the hashes
Deele has joined #ruby
miah has joined #ruby
dandrade has joined #ruby
soulcake has joined #ruby
jso has joined #ruby
keen_ has joined #ruby
adeponte has joined #ruby
tsunamie has joined #ruby
Takumo has joined #ruby
Takumo has quit [Changing host]
Takumo has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
Caius has joined #ruby
Rudde has joined #ruby
dermot has joined #ruby
Drakevr has joined #ruby
Nilium has joined #ruby
manacit has quit [Changing host]
manacit has joined #ruby
Zackio has joined #ruby
onewheelskyward has joined #ruby
__main__ has joined #ruby
izzol has joined #ruby
nuba has joined #ruby
ixx has joined #ruby
ninegrid has joined #ruby
Raboo has joined #ruby
endash_ has joined #ruby
snath has joined #ruby
kevinfagan has joined #ruby
ixx is now known as Guest61215
sumark has joined #ruby
Lightstalker has joined #ruby
devdazed has joined #ruby
Biohazard has joined #ruby
yosafbridge has joined #ruby
Kilo`byte has joined #ruby
Shidash has joined #ruby
drager has joined #ruby
shevy has joined #ruby
mrjensen has quit [Remote host closed the connection]
okdas has joined #ruby
cschneid has joined #ruby
kevinykchan has quit [Client Quit]
QKO has joined #ruby
jonathanwallace has joined #ruby
CaptainKnots has joined #ruby
ph8 has joined #ruby
Geniack has joined #ruby
vaicine has joined #ruby
certainty has joined #ruby
ocher has joined #ruby
rm_ has quit [Ping timeout: 240 seconds]
Rix has joined #ruby
therm has joined #ruby
mrjensen has joined #ruby
patronus has joined #ruby
vjt has joined #ruby
Davedo has joined #ruby
pavelz has joined #ruby
yeltzooo has joined #ruby
kalz has joined #ruby
samuel02 has quit [Read error: Connection reset by peer]
ericwood has joined #ruby
mrjensen has quit [Remote host closed the connection]
tommylommykins has joined #ruby
bricker has joined #ruby
sivoais has joined #ruby
ClarusCogitatio has joined #ruby
micah` has joined #ruby
DrCode has joined #ruby
mrjensen has joined #ruby
kimiamania has quit [Changing host]
kimiamania has joined #ruby
Riking has joined #ruby
pigzzcanfly has joined #ruby
WanderingGlitch has joined #ruby
dyoko1 has joined #ruby
<olivier_bK> i would want to check if my objet "actualize" exist in my array and print it
dukz has quit [Remote host closed the connection]
dyoko has quit [Ping timeout: 240 seconds]
<olivier_bK> i use include? for know if my obet existe in the array but how i can display it ?
Merks has joined #ruby
hoelzro has joined #ruby
yfeldblum has joined #ruby
drasch has joined #ruby
<shevy> olivier_bK dont you know the position?
<olivier_bK> no
<shevy> array = [ "a", "b", "c" ]
<shevy> three string objects
<shevy> obtain second element:
mehlah has joined #ruby
<shevy> array[1]
schaary|afk is now known as schaary
LiquidInsect has joined #ruby
rtl has joined #ruby
<olivier_bK> so if understand i need to parse the array
<shevy> now display it; either with puts, print, p, pp or a method on the object itself, if it exists, like array[1].display
yokel has joined #ruby
<shevy> what do you mean with "parse"
gtc has joined #ruby
<shevy> you only need to find the position
samuel02 has joined #ruby
Doppp has joined #ruby
mrjensen has quit [Ping timeout: 264 seconds]
<olivier_bK> okai
antonishen has quit [Changing host]
antonishen has joined #ruby
pipework has quit [Changing host]
andrewstewart has quit [Changing host]
pipework has joined #ruby
andrewstewart has joined #ruby
Gate has joined #ruby
alol_ has quit [Changing host]
alol_ has joined #ruby
dawkirst_ has joined #ruby
<shevy> >> array = [ "a", "b", "c" ]; array.index 'c'
<eval-in> shevy => 2 (https://eval.in/133656)
schaary has quit [Changing host]
schaary has joined #ruby
cmaxw_____ has quit [Changing host]
cmaxw_____ has joined #ruby
mjc_ has quit [Changing host]
mjc_ has joined #ruby
drjblouse__ has quit [Changing host]
drjblouse__ has joined #ruby
pigzzcanfly has quit [Ping timeout: 264 seconds]
yo61 has quit [Changing host]
yo61 has joined #ruby
culturelabs has quit [Changing host]
culturelabs has joined #ruby
fayimora_ has quit [Changing host]
fayimora_ has joined #ruby
Tranquility has quit [Changing host]
Tranquility has joined #ruby
RohanRNS has joined #ruby
RohanRNS has quit [Changing host]
bjeanes has quit [Changing host]
bjeanes has joined #ruby
gyre007___ has quit [Changing host]
gyre007___ has joined #ruby
charles81 has quit [Changing host]
charles81 has joined #ruby
ozzloy has joined #ruby
ozzloy has joined #ruby
ozzloy has quit [Changing host]
schmidt has joined #ruby
jeffreybaird has quit [Changing host]
jeffreybaird has joined #ruby
mieko has quit [Quit: leaving]
habanany has joined #ruby
nhmood has quit [Changing host]
nhmood has joined #ruby
solidus-river has joined #ruby
ziyadb_ has quit [Changing host]
ziyadb_ has joined #ruby
ValicekB has joined #ruby
RSTJNII has quit [Changing host]
RSTJNII has joined #ruby
jzigmund has quit [Changing host]
jzigmund has joined #ruby
MissionCritical has joined #ruby
Davedo has quit [Changing host]
Davedo has joined #ruby
Guest96771 has quit [Changing host]
Guest96771 has joined #ruby
Guest96771 is now known as winny
yfeldblum has quit [Ping timeout: 265 seconds]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
ccooke has joined #ruby
nateberkopec has joined #ruby
devyn has joined #ruby
raycloud has joined #ruby
pr00t has joined #ruby
zoraj has quit [Read error: Connection reset by peer]
kennym has joined #ruby
\marrub has joined #ruby
shadoi1 has quit [Ping timeout: 265 seconds]
winny has quit [Quit: ZNC - http://znc.in]
shadoi has joined #ruby
DaniG2k has joined #ruby
dawkirst__ has joined #ruby
lolmaus has joined #ruby
ahawkins has quit [Read error: Operation timed out]
dawkirst__ has quit [Client Quit]
winny has joined #ruby
dawkirst_ has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
Asher has quit [Quit: Leaving.]
Asher has joined #ruby
dawkirst has joined #ruby
nhmood has quit [*.net *.split]
juni0r has quit [*.net *.split]
jeffreybaird has quit [*.net *.split]
jokke has quit [*.net *.split]
Su7 has quit [*.net *.split]
bjeanes has quit [*.net *.split]
JaTochNietDan has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
RohanRNS has quit [*.net *.split]
Tranquility has quit [*.net *.split]
culturelabs has quit [*.net *.split]
mvangala has quit [*.net *.split]
rurban_ has quit [*.net *.split]
jrhorn425 has quit [*.net *.split]
BackEndCoder has quit [*.net *.split]
pipework has quit [*.net *.split]
antonishen has quit [*.net *.split]
maZtah has quit [*.net *.split]
supershabam has quit [*.net *.split]
Urocyon has quit [*.net *.split]
jrhe has quit [*.net *.split]
zrl has quit [*.net *.split]
postmodern has quit [*.net *.split]
octarine has quit [*.net *.split]
Adran has quit [*.net *.split]
coyo has quit [*.net *.split]
MindfulMonk has quit [*.net *.split]
kartouch has quit [*.net *.split]
wuest has quit [*.net *.split]
Kruppe has quit [*.net *.split]
rhys has quit [*.net *.split]
Tritania has quit [*.net *.split]
ryanuber has quit [*.net *.split]
G has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
mjmac has quit [*.net *.split]
zenojis has quit [*.net *.split]
artgoeshere has quit [*.net *.split]
dmarr has quit [*.net *.split]
awkisopen has quit [*.net *.split]
lfox has quit [*.net *.split]
joelteon has quit [*.net *.split]
johnhamelink has quit [*.net *.split]
Liru has quit [*.net *.split]
msch has quit [*.net *.split]
wmoxam has quit [*.net *.split]
troyready has quit [*.net *.split]
billy_ran_away has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
DefV has quit [*.net *.split]
eregon_ has quit [*.net *.split]
ballPointPenguin has quit [*.net *.split]
Angelous has quit [*.net *.split]
framling has quit [*.net *.split]
Nahra has quit [*.net *.split]
flagg0204 has quit [*.net *.split]
moshee has quit [*.net *.split]
machete has quit [*.net *.split]
Paradox has quit [*.net *.split]
thoraxe has quit [*.net *.split]
Hien has quit [*.net *.split]
snkcld has quit [*.net *.split]
Sthebig has quit [*.net *.split]
xMopxShell has quit [*.net *.split]
Liothen has quit [*.net *.split]
nopc0de has quit [*.net *.split]
gizmore has quit [*.net *.split]
jcarouth has quit [*.net *.split]
PhilK has quit [*.net *.split]
ConstantineXVI has quit [*.net *.split]
aetaric has quit [*.net *.split]
nifty has quit [*.net *.split]
seich- has quit [*.net *.split]
psyprus has quit [*.net *.split]
epochwolf has quit [*.net *.split]
xiphias has quit [*.net *.split]
DarkFoxDK has quit [*.net *.split]
seemant has quit [*.net *.split]
csq has quit [*.net *.split]
Nightmare has quit [*.net *.split]
kenichi has quit [*.net *.split]
kartouch has joined #ruby
G has joined #ruby
DefV has joined #ruby
snkcld has joined #ruby
Su7 has joined #ruby
moshee has joined #ruby
JaTochNietDan has joined #ruby
thoraxe has joined #ruby
Liru has joined #ruby
wmoxam has joined #ruby
flagg0204 has joined #ruby
Angelous has joined #ruby
wuest has joined #ruby
xMopxShell has joined #ruby
PhilK has joined #ruby
wmoxam has quit [Changing host]
wmoxam has joined #ruby
billy_ran_away has joined #ruby
Hien has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
alexherbo2 has joined #ruby
mvangala has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
jrhe has joined #ruby
gizmore has joined #ruby
jokke has joined #ruby
rhys has joined #ruby
BackEndCoder has joined #ruby
rurban_ has joined #ruby
postmodern has joined #ruby
troyready has joined #ruby
antonishen has joined #ruby
machete has joined #ruby
zrl has joined #ruby
Sthebig has joined #ruby
MissionCritical has quit [Max SendQ exceeded]
ballPointPenguin has joined #ruby
RohanRNS has joined #ruby
bjeanes has joined #ruby
nhmood has joined #ruby
octarine has joined #ruby
jeffreybaird has joined #ruby
sepp2k has quit [Quit: Leaving.]
SegFaultAX has joined #ruby
juni0r has joined #ruby
maZtah has joined #ruby
eregon has joined #ruby
zenojis has joined #ruby
supershabam has joined #ruby
pipework has joined #ruby
Urocyon has joined #ruby
Tranquility has joined #ruby
zz_nopc0de has joined #ruby
culturelabs has joined #ruby
nhhagen has joined #ruby
DaniG2k has quit [Client Quit]
rs0 has joined #ruby
nhhagen has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
winny has quit [Client Quit]
ParanoidSP has joined #ruby
Adran has joined #ruby
winny has joined #ruby
ahawkins has joined #ruby
fabrice31 has quit [Remote host closed the connection]
supermarin has joined #ruby
msch has joined #ruby
_justin has quit [Quit: _justin]
darmou has quit [Ping timeout: 252 seconds]
kiki_lamb has joined #ruby
Nahra has joined #ruby
Nahra has quit [Changing host]
Nahra has joined #ruby
supermarin has quit [Ping timeout: 240 seconds]
canton7 has joined #ruby
MissionCritical has joined #ruby
jrhe has quit [Read error: Connection reset by peer]
Dwarf has quit [Read error: Connection reset by peer]
nhmood has quit [Ping timeout: 264 seconds]
JaTochNietDan has quit [Ping timeout: 264 seconds]
zrl has quit [Ping timeout: 264 seconds]
bjeanes has quit [Read error: Connection reset by peer]
antonishen has quit [Read error: Connection reset by peer]
jeffreybaird has quit [Read error: Connection reset by peer]
octarine has quit [Read error: Connection reset by peer]
culturelabs has quit [Read error: Connection reset by peer]
Tranquility has quit [Read error: Connection reset by peer]
bjeanes has joined #ruby
jeffreybaird has joined #ruby
zrl has joined #ruby
antonishen has joined #ruby
rtlong has quit [Ping timeout: 264 seconds]
jaxxstorm has quit [Ping timeout: 264 seconds]
Su7 has quit [Remote host closed the connection]
zenojis has quit [Quit: No Ping reply in 180 seconds.]
octarine has joined #ruby
jimeh has quit [Ping timeout: 264 seconds]
RoryHughes has quit [Ping timeout: 264 seconds]
nhmood has joined #ruby
Su7 has joined #ruby
Tranquility has joined #ruby
culturelabs has joined #ruby
jrhe has joined #ruby
Hien has quit [Ping timeout: 264 seconds]
lupine has quit [Ping timeout: 264 seconds]
Mars` has quit [Ping timeout: 264 seconds]
mjmac has joined #ruby
zenojis has joined #ruby
FaresKAlaboud has quit [Ping timeout: 264 seconds]
_aeris_ has quit [Ping timeout: 264 seconds]
Guest21366 has quit [Ping timeout: 264 seconds]
cuppscakes has quit [Ping timeout: 264 seconds]
Hien has joined #ruby
kraljev6 has left #ruby [#ruby]
csq has joined #ruby
bambuka has joined #ruby
fgo has joined #ruby
nvrch has joined #ruby
Xaitec has joined #ruby
Nightmare has joined #ruby
artgoeshere has joined #ruby
lfox has joined #ruby
<apeiros> hiall: then indeed, take a look at Enumerable#group_by
Xaitec has quit [Remote host closed the connection]
epochwolf has joined #ruby
m4rcu5 has joined #ruby
yfeldblum has joined #ruby
MindfulMonk has joined #ruby
Paradox has joined #ruby
seemant has joined #ruby
joelteon has joined #ruby
nari has quit [Ping timeout: 240 seconds]
aetaric has joined #ruby
ConstantineXVI has joined #ruby
JaTochNietDan has joined #ruby
dmarr has joined #ruby
coyo has joined #ruby
coyo is now known as Guest80381
seich- has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
aagdbl has quit [Quit: This computer has gone to sleep]
diegoviola has joined #ruby
hailwood has left #ruby [#ruby]
Stalkr_ has quit [Quit: Leaving...]
_5kg has joined #ruby
dyoko1 has quit [Quit: Leaving.]
danshultz has joined #ruby
awkisopen has joined #ruby
atmosx has joined #ruby
browndawg has joined #ruby
fabrice31 has joined #ruby
Tritania has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
zz_jrhorn424 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
deadlock has quit [Read error: Connection reset by peer]
DarkFoxDK has joined #ruby
nhhagen has quit [Remote host closed the connection]
<olivier_bK> shevy, sorry to interrupt you again in irb i can display the index but in my script i cant
cgj has joined #ruby
<olivier_bK> i try a lot of thing
lolmaus has joined #ruby
<shevy> olivier_bK well
<shevy> olivier_bK how shall I know what you are doing if you don't show code :)
<shevy> possibly you don't output anything in your script
blueOxigen has joined #ruby
<shevy> irb automatically gives you something
TheShaun has quit [*.net *.split]
zz_karupanerura has quit [*.net *.split]
civillian has quit [*.net *.split]
eshy has quit [*.net *.split]
cibs has quit [*.net *.split]
ballPointPenguin has quit [*.net *.split]
habanany has quit [*.net *.split]
rtl has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
predator117 has quit [*.net *.split]
segv has quit [*.net *.split]
radic has quit [*.net *.split]
psyko666 has quit [*.net *.split]
virtualize has quit [*.net *.split]
kaliya has quit [*.net *.split]
bpgoldsb has quit [*.net *.split]
diegok has quit [*.net *.split]
mclee has quit [*.net *.split]
Guest75090 has quit [*.net *.split]
charles81 has quit [*.net *.split]
gyre007___ has quit [*.net *.split]
mengu has quit [*.net *.split]
ji0n has quit [*.net *.split]
bahar has quit [*.net *.split]
stephenmac7 has quit [*.net *.split]
mdpatrick has quit [*.net *.split]
oz has quit [*.net *.split]
Hanmac has quit [*.net *.split]
bluOxigen has quit [*.net *.split]
Rickmasta has quit [*.net *.split]
yubrew has quit [*.net *.split]
fayimora_ has quit [*.net *.split]
Photism has quit [*.net *.split]
yo61 has quit [*.net *.split]
Norrin has quit [*.net *.split]
philtr has quit [*.net *.split]
krz has quit [*.net *.split]
cmaxw_____ has quit [*.net *.split]
Tarential has quit [*.net *.split]
s_e has quit [*.net *.split]
gigetoo has quit [*.net *.split]
headius has quit [*.net *.split]
gf3 has quit [*.net *.split]
RubyPanther has quit [*.net *.split]
einarj has quit [*.net *.split]
jacobat has quit [*.net *.split]
qqw has quit [*.net *.split]
LBRapid has quit [*.net *.split]
DylanJ has quit [*.net *.split]
cherry_lin has quit [*.net *.split]
joonty has quit [*.net *.split]
andrewstewart has quit [*.net *.split]
thumpba has quit [*.net *.split]
crazysim has quit [*.net *.split]
mgorbach has quit [*.net *.split]
chuck has quit [*.net *.split]
LexicalScope has quit [*.net *.split]
jgoss has quit [*.net *.split]
Hamled has quit [*.net *.split]
Bish has quit [*.net *.split]
XenoWolf has quit [*.net *.split]
fbernier has quit [*.net *.split]
hiall has quit [*.net *.split]
Alina-malina has quit [*.net *.split]
aaronmcadam has quit [*.net *.split]
sk87 has quit [*.net *.split]
poikon_ has quit [*.net *.split]
tchebb has quit [*.net *.split]
arturaz has quit [*.net *.split]
pyon has quit [*.net *.split]
robde has quit [*.net *.split]
jack_rabbit has quit [*.net *.split]
jlebrech has quit [*.net *.split]
rdark has quit [*.net *.split]
andikr has quit [*.net *.split]
greenarrow has quit [*.net *.split]
blackavr has quit [*.net *.split]
jprovazn has quit [*.net *.split]
Azure has quit [*.net *.split]
eval-in has quit [*.net *.split]
bal has quit [*.net *.split]
yacks has quit [*.net *.split]
davidcelis has quit [*.net *.split]
frem has quit [*.net *.split]
dstrebel has quit [*.net *.split]
thomasxie has quit [*.net *.split]
wchun has quit [*.net *.split]
nisstyre has quit [*.net *.split]
mckain has quit [*.net *.split]
Davey has quit [*.net *.split]
Fraeon has quit [*.net *.split]
dazeddev_ has quit [*.net *.split]
michael_imac has quit [*.net *.split]
ahuman has quit [*.net *.split]
ItSAN____ has quit [*.net *.split]
endash has quit [*.net *.split]
renier has quit [*.net *.split]
pwh has quit [*.net *.split]
mmochan_ has quit [*.net *.split]
fella5s has quit [*.net *.split]
Port3M5[Work] has quit [*.net *.split]
quantsini has quit [*.net *.split]
Radar has quit [*.net *.split]
parduse has quit [*.net *.split]
bbloom has quit [*.net *.split]
george2 has quit [*.net *.split]
iceden has quit [*.net *.split]
Blue_Ice_ has quit [*.net *.split]
Royalb15_1 has quit [*.net *.split]
erobtom2 has quit [*.net *.split]
jmeeuwen has quit [*.net *.split]
noocode has quit [*.net *.split]
bluehavana_ has quit [*.net *.split]
SevereOverfl0w has quit [*.net *.split]
Roa has quit [*.net *.split]
Rubeh has quit [*.net *.split]
dioms has quit [*.net *.split]
replay has quit [*.net *.split]
mrgoodcat has quit [*.net *.split]
kaichanvong has quit [*.net *.split]
mogsy has quit [*.net *.split]
napcae has quit [*.net *.split]
artmann has quit [*.net *.split]
rickenharp__ has quit [*.net *.split]
FL1SK has quit [*.net *.split]
LostDatagram has quit [*.net *.split]
mjuszczak has quit [*.net *.split]
tafryn has quit [*.net *.split]
jabular has quit [*.net *.split]
abstractj has quit [*.net *.split]
gischy has quit [*.net *.split]
mist has quit [*.net *.split]
stylus has quit [*.net *.split]
Elfix_113 has quit [*.net *.split]
sirecote has quit [*.net *.split]
error404 has quit [*.net *.split]
spacebug has quit [*.net *.split]
koalallama has quit [*.net *.split]
xargoon has quit [*.net *.split]
sindork has quit [*.net *.split]
mumblerit has quit [*.net *.split]
deavid has quit [*.net *.split]
finges has quit [*.net *.split]
iitywimwybmab has quit [*.net *.split]
asuka has quit [*.net *.split]
DanKnox has quit [*.net *.split]
madhatter has quit [*.net *.split]
TheNumb has quit [*.net *.split]
brunto has quit [*.net *.split]
crazedpsyc has quit [*.net *.split]
JZTech101 has quit [*.net *.split]
dev1x has quit [*.net *.split]
iaj has quit [*.net *.split]
eataix has quit [*.net *.split]
mroth has quit [*.net *.split]
michaelchum has quit [*.net *.split]
uxp has quit [*.net *.split]
bcavileer has quit [*.net *.split]
ggherdov_ has quit [*.net *.split]
adambeynon has quit [*.net *.split]
jpinnix____ has quit [*.net *.split]
kapowaz has quit [*.net *.split]
vcoinminer__ has quit [*.net *.split]
mattyohe has quit [*.net *.split]
davorb has quit [*.net *.split]
frode15243 has quit [*.net *.split]
qqw has joined #ruby
gf3 has joined #ruby
kenichi has joined #ruby
iaj has joined #ruby
george2 has joined #ruby
davidcelis has joined #ruby
davidcelis has quit [Changing host]
davidcelis has joined #ruby
TheShaun has joined #ruby
endash_ is now known as endash
Davey has joined #ruby
davidcelis has quit [Excess Flood]
ryanuber has joined #ruby
error404 has joined #ruby
michaelchum has joined #ruby
TheNumb has joined #ruby
mumblerit has joined #ruby
LBRapid has joined #ruby
yacks has joined #ruby
Tarential has joined #ruby
brunto has joined #ruby
rdark has joined #ruby
parduse has joined #ruby
Elfix has joined #ruby
bpgoldsb has joined #ruby
ahuman has joined #ruby
Roa has joined #ruby
bjeanes has quit [Ping timeout: 248 seconds]
pipework has quit [Ping timeout: 248 seconds]
maZtah has quit [Ping timeout: 248 seconds]
drjblouse__ has quit [Ping timeout: 248 seconds]
cbetta has quit [Ping timeout: 248 seconds]
fbernier has joined #ruby
xargoon has joined #ruby
stylus has joined #ruby
koalallama has joined #ruby
arturaz has joined #ruby
artmann has joined #ruby
spacebug has joined #ruby
Blue_Ice has joined #ruby
mjuszczak has joined #ruby
rtl has joined #ruby
Rubeh has joined #ruby
erobtom2 has joined #ruby
iceden has joined #ruby
Blue_Ice has quit [Changing host]
Blue_Ice has joined #ruby
finges has joined #ruby
sindork has joined #ruby
fella5s has joined #ruby
crazysim has joined #ruby
yeltzooo has joined #ruby
jgoss has joined #ruby
radic has joined #ruby
poikon has joined #ruby
sk87 has joined #ruby
einarj has joined #ruby
crazedpsyc has joined #ruby
michaelchum has quit [Changing host]
michaelchum has joined #ruby
jgoss has joined #ruby
jgoss has quit [Changing host]
jack_rabbit has joined #ruby
Radar has joined #ruby
RubyPanther has joined #ruby
mgorbach has joined #ruby
madhatter has joined #ruby
wiscas has joined #ruby
asuka has joined #ruby
FL1SK has joined #ruby
jprovazn has joined #ruby
Hamled has joined #ruby
XenoWolf has joined #ruby
dazeddev has joined #ruby
ji0n has joined #ruby
mengu has joined #ruby
habanany has joined #ruby
JZTech101 has joined #ruby
jabular has joined #ruby
kaliya has joined #ruby
chuck has joined #ruby
bahar has joined #ruby
aaronmcadam has joined #ruby
s_e has joined #ruby
gigetoo has joined #ruby
LostDatagram has joined #ruby
eval-in has joined #ruby
tchebb has joined #ruby
quantsini has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
replay has joined #ruby
uxp has joined #ruby
psyko666 has joined #ruby
Photism has joined #ruby
Hanmac has joined #ruby
replay has quit [Changing host]
replay has joined #ruby
mckain has joined #ruby
pyon has joined #ruby
chuck has quit [Changing host]
chuck has joined #ruby
jmeeuwen has joined #ruby
virtualize has joined #ruby
greenarrow has joined #ruby
kitak has quit [Remote host closed the connection]
mrgoodcat has joined #ruby
yubrew has joined #ruby
napcae has joined #ruby
krz has joined #ruby
digifiv5e_ has joined #ruby
blackavr has joined #ruby
oz has joined #ruby
mist_ has joined #ruby
Alina-malina has joined #ruby
gischy has joined #ruby
diegok has joined #ruby
gischy has quit [Changing host]
gischy has joined #ruby
mumblerit is now known as Guest26699
davidcelis has joined #ruby
Royalb15_1 has joined #ruby
joonty has joined #ruby
headius has joined #ruby
sirecote has joined #ruby
parduse is now known as Guest13638
tafryn has joined #ruby
jprovazn has quit [Changing host]
jprovazn has joined #ruby
renier has joined #ruby
vcoinminer__ has joined #ruby
hiall has joined #ruby
thumpba has joined #ruby
Azure has joined #ruby
Radar is now known as Guest54684
abstractj has joined #ruby
funburn has quit [Quit: funburn]
vcoinminer__ has joined #ruby
vcoinminer__ has quit [Changing host]
pwh has joined #ruby
davidcelis is now known as Guest13822
jlebrech has joined #ruby
bal has joined #ruby
Bish has joined #ruby
pyon has quit [Remote host closed the connection]
Port3M5[Work] has joined #ruby
mrgoodcat has quit [Changing host]
DanKnox has joined #ruby
mrgoodcat has joined #ruby
JZTech101 is now known as Guest79765
krz is now known as Guest22572
kitak has joined #ruby
rickenharp__ has joined #ruby
thomasxie has joined #ruby
Guest13638 is now known as parduse
deavid has joined #ruby
mdpatrick has joined #ruby
tjr9898_ has joined #ruby
abstractj has quit [Changing host]
abstractj has joined #ruby
tcurdt has joined #ruby
rickenharp__ has quit [Changing host]
stephenmac7 has joined #ruby
rickenharp__ has joined #ruby
charles81 has joined #ruby
charles81 has quit [Changing host]
charles81 has joined #ruby
mroth has joined #ruby
mroth has quit [Changing host]
mroth has joined #ruby
Rickmasta has joined #ruby
frode15243 has joined #ruby
dioms has joined #ruby
mmochan_ has joined #ruby
jacobat has joined #ruby
segv has joined #ruby
robde has joined #ruby
ItSANgo__ has joined #ruby
bluehavana_ has joined #ruby
cmaxw_____ has joined #ruby
andrewstewart has joined #ruby
mclee has joined #ruby
parduse is now known as Guest1313
michael_mbp has joined #ruby
relix has joined #ruby
kapowaz has joined #ruby
wchun has joined #ruby
Guest54684 is now known as Radar
coapsy has joined #ruby
bcavileer has joined #ruby
nisstyre has joined #ruby
jpinnix____ has joined #ruby
eataix has joined #ruby
<coapsy> hi
<coapsy> :)
_justin has joined #ruby
frem has joined #ruby
yo61 has joined #ruby
kaichanvong has joined #ruby
<coapsy> I just was wondering, could I get any help with something ? :)
davorb has joined #ruby
zz_karupanerura has joined #ruby
fayimora_ has joined #ruby
andikr has joined #ruby
pyon has joined #ruby
bjeanes has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pipework has joined #ruby
cbetta has joined #ruby
ballPointPenguin has joined #ruby
adambeynon has joined #ruby
zz_karupanerura is now known as karupanerura
maZtah has joined #ruby
drjblouse__ has joined #ruby
<coapsy> anybody here?
<Hyeon> hi
<coapsy> hello, coul anyone help me about something? :)
noocode has joined #ruby
<coapsy> could*
mogsy has joined #ruby
MindfulMonk has quit [Quit: Have fun]
<olivier_bK> shevy, it's really simple i think but i dont know why i cant find the solution
mattyohe has joined #ruby
cibs has joined #ruby
civillian has joined #ruby
eshy has joined #ruby
charliesome has joined #ruby
nari has joined #ruby
tjr9898_ has quit [Ping timeout: 252 seconds]
gyre007___ has joined #ruby
<olivier_bK> coapsy, dont ask say your problem
iitywimwybmab has joined #ruby
cherry_lin has joined #ruby
philtr has joined #ruby
Fraeon has joined #ruby
mrjensen has joined #ruby
predator117 has joined #ruby
atno has joined #ruby
lkba has joined #ruby
ahawkins has quit [Ping timeout: 240 seconds]
SevereOverfl0w has joined #ruby
Guest22572 has quit [Quit: WeeChat 0.4.3]
<coapsy> oh okay, its simple how can I pass callback to somefunction? and then call that callback?
krzkrz has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
mostlybadfly has joined #ruby
bubbajones has quit [Ping timeout: 252 seconds]
ggherdov_ has joined #ruby
<Hyeon> coapsy: http://stackoverflow.com/a/1678280 is this what you want?
atno has quit [Remote host closed the connection]
DylanJ has joined #ruby
<coapsy> Think it is, I’ll give you feedback after try this :D thanks
<Hyeon> Your welcome :)
ahawkins has joined #ruby
francisfish has quit [Remote host closed the connection]
bubbajones has joined #ruby
atno has joined #ruby
<olivier_bK> shevy, it's okai i found the solution of my problem
jxf has quit [Ping timeout: 240 seconds]
pu22l3r has joined #ruby
<coapsy> Hey Hyeon, I’ve managed to call callback, but now I’m stuck with other thing
banister_ has joined #ruby
banister has quit [Read error: Connection reset by peer]
rylev has quit [Ping timeout: 264 seconds]
<coapsy> parameter to that callback must be provided only in .call()?
lkba has quit [*.net *.split]
jpinnix____ has quit [*.net *.split]
Royalb15_1 has quit [*.net *.split]
mengu has quit [*.net *.split]
habanany has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
sk87 has quit [*.net *.split]
fella5s has quit [*.net *.split]
digifiv5e_ has quit [*.net *.split]
Blue_Ice has quit [*.net *.split]
bpgoldsb has quit [*.net *.split]
Guest1313 has quit [*.net *.split]
rdark has quit [*.net *.split]
Elfix has quit [*.net *.split]
Tarential has quit [*.net *.split]
error404 has quit [*.net *.split]
brunto has quit [*.net *.split]
iaj has quit [*.net *.split]
TheNumb has quit [*.net *.split]
lolmaus has quit [*.net *.split]
fabrice31 has quit [*.net *.split]
bambuka has quit [*.net *.split]
msch has quit [*.net *.split]
zz_nopc0de has quit [*.net *.split]
machete has quit [*.net *.split]
gizmore has quit [*.net *.split]
wmoxam has quit [*.net *.split]
Liru has quit [*.net *.split]
moshee has quit [*.net *.split]
Asher has quit [*.net *.split]
devyn has quit [*.net *.split]
ccooke has quit [*.net *.split]
schmidt has quit [*.net *.split]
ozzloy has quit [*.net *.split]
samuel02 has quit [*.net *.split]
pavelz has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
obs has quit [*.net *.split]
Xiti has quit [*.net *.split]
germanstudent has quit [*.net *.split]
Authenticator has quit [*.net *.split]
olivier_bK has quit [*.net *.split]
Afal has quit [*.net *.split]
nfk has quit [*.net *.split]
felixjet has quit [*.net *.split]
hamakn has quit [*.net *.split]
tkuchiki has quit [*.net *.split]
lxsameer has quit [*.net *.split]
RowdyChild|Away has quit [*.net *.split]
mahlon has quit [*.net *.split]
dideler|work has quit [*.net *.split]
arietis has quit [*.net *.split]
Voodoofish430 has quit [*.net *.split]
eythorium has quit [*.net *.split]
gtech has quit [*.net *.split]
elaptics has quit [*.net *.split]
cephalostrum has quit [*.net *.split]
Waheedi has quit [*.net *.split]
v0n has quit [*.net *.split]
zorak has quit [*.net *.split]
tvw has quit [*.net *.split]
matchaw has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
parus has quit [*.net *.split]
Heskie has quit [*.net *.split]
shashank_rs has quit [*.net *.split]
dapz has quit [*.net *.split]
arount has quit [*.net *.split]
mikecmpbll has quit [*.net *.split]
Kneferilis has quit [*.net *.split]
twiceaday has quit [*.net *.split]
qba73 has quit [*.net *.split]
oo_ has quit [*.net *.split]
Tuxified has quit [*.net *.split]
noop has quit [*.net *.split]
binw has quit [*.net *.split]
spinx has quit [*.net *.split]
prdx has quit [*.net *.split]
hakunin has quit [*.net *.split]
freerobby has quit [*.net *.split]
badhatter has quit [*.net *.split]
phreax has quit [*.net *.split]
aspiers has quit [*.net *.split]
paul__k has quit [*.net *.split]
redondos has quit [*.net *.split]
jph98 has quit [*.net *.split]
helpa has quit [*.net *.split]
n88 has quit [*.net *.split]
Maitiu has quit [*.net *.split]
lsmola_ has quit [*.net *.split]
eavgerinos has quit [*.net *.split]
Krypt has quit [*.net *.split]
jenskarlsen has quit [*.net *.split]
jle` has quit [*.net *.split]
Guest41888 has quit [*.net *.split]
PaulePanter has joined #ruby
n88 has joined #ruby
wmoxam_ has joined #ruby
Afal has joined #ruby
machete has joined #ruby
error404 has joined #ruby
iaj has joined #ruby
Kryptonical has joined #ruby
pavelz has joined #ruby
eythorium has joined #ruby
arount has joined #ruby
prdx has joined #ruby
Elfix has joined #ruby
twiceaday has joined #ruby
parus has joined #ruby
rdark has joined #ruby
devyn has joined #ruby
eavgerinos has joined #ruby
nopc0def has joined #ruby
lolmaus has joined #ruby
Tarential has joined #ruby
schmidt has joined #ruby
dideler|work has joined #ruby
germanstudent has joined #ruby
felixjet has joined #ruby
freerobby has joined #ruby
ozzloy has joined #ruby
Liru has joined #ruby
obs has joined #ruby
TheNumb_ has joined #ruby
Guest1313 has joined #ruby
helpa has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
fella5s has joined #ruby
<Hyeon> umm
elaptics has joined #ruby
Blue_Ice has joined #ruby
Authenticator has joined #ruby
spinx has joined #ruby
Maitiu has joined #ruby
Blue_Ice has quit [Changing host]
bpgoldsb has joined #ruby
Blue_Ice has joined #ruby
gizmore has joined #ruby
Xiti has joined #ruby
sk87 has joined #ruby
tvw has joined #ruby
fabrice31 has joined #ruby
tkuchiki has joined #ruby
oo_ has joined #ruby
badhatter has joined #ruby
badhatter has joined #ruby
matchaw has joined #ruby
noop has joined #ruby
gtech has joined #ruby
Royalb15_1 has joined #ruby
redondos has joined #ruby
nfk has joined #ruby
helpa has quit [Write error: Broken pipe]
moshee has joined #ruby
cephalostrum has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
mikecmpbll has joined #ruby
arount is now known as Guest18435
hamakn has joined #ruby
habanany has joined #ruby
jpinnix____ has joined #ruby
qba73 has joined #ruby
phreax has joined #ruby
jle` has joined #ruby
arietis has joined #ruby
spinx has quit [Max SendQ exceeded]
hakunin has joined #ruby
RowdyChild|Away has joined #ruby
Voodoofish430 has joined #ruby
jenskarlsen has joined #ruby
lsmola has joined #ruby
digifiv5e has joined #ruby
samuel02 has joined #ruby
jph98 has joined #ruby
v0n has joined #ruby
helpa has joined #ruby
Martxel has joined #ruby
Tuxified has joined #ruby
zorak has joined #ruby
bambuka has joined #ruby
Asher has joined #ruby
aspiers has joined #ruby
ArchBeOS has joined #ruby
olivier_bK has joined #ruby
binw has joined #ruby
ccooke has joined #ruby
brunto_ has joined #ruby
digifiv5e is now known as Guest99355
mengu has joined #ruby
mengu has joined #ruby
Waheedi has joined #ruby
paul_k has joined #ruby
noop has quit [Changing host]
noop has joined #ruby
spinx has joined #ruby
shashank_rs has joined #ruby
mahlon has joined #ruby
michael_mbp has joined #ruby
jpinnix____ has quit [Changing host]
jpinnix____ has joined #ruby
lsmola has quit [Changing host]
lsmola has joined #ruby
ArchBeOS is now known as Guest54290
<Hyeon> coapsy: hold on
Guest1313 has left #ruby [#ruby]
roolo has quit [Quit: Leaving...]
omegahm has joined #ruby
Heskie has joined #ruby
Norrin has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
TheMoonMaster has joined #ruby
bubbajones has quit [Ping timeout: 265 seconds]
johnhamelink has joined #ruby
eyckelboom has quit [Quit: bye!]
madhatter has quit [Read error: Network is unreachable]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
madhatter has joined #ruby
rm_ has joined #ruby
tcurdt has quit [Quit: bye bye]
pigzzcanfly has joined #ruby
danshultz has quit [Remote host closed the connection]
hooper has joined #ruby
francisfish has joined #ruby
danshultz has joined #ruby
fannye has joined #ruby
mehlah has quit [Quit: Leaving...]
nvrch has quit [Quit: nvrch]
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
<Hyeon> coapsy: It seems so
rm_ has quit [Ping timeout: 265 seconds]
pigzzcanfly has quit [Ping timeout: 255 seconds]
<shevy> hmm guys
<shevy> what situations exist where I can not write anywhere to with ruby to a local filesystem?
yacks has quit [Quit: Leaving]
<shevy> so far I have come up with read-only filesystems
yacks has joined #ruby
<shevy> under such a situation, I could not store anything to a file i.e. a yaml file
hooper has quit [Ping timeout: 265 seconds]
danshultz has quit [Ping timeout: 264 seconds]
coapsy has quit [Quit: coapsy]
<workmad3> shevy: it might be a writable file-system, but the user that's running the ruby process has no write access
<Hyeon> Does the ruby process have write access to your filesystem?
<workmad3> shevy: which would be similar to a read-only filesystem to the ruby process
<banister_> workmad3 sup
<shevy> Hyeon normally yes
<workmad3> banister_: howdy
<Hyeon> hmm
bubbajones has joined #ruby
hostess_ is now known as hostess
<shevy> workmad3 that would be covered by file permissions?
<workmad3> shevy: I'd guess so :)
Martxel has quit [Ping timeout: 255 seconds]
sensen has quit [Quit: leaving]
armyriad has quit [Read error: Connection reset by peer]
funburn has joined #ruby
lxsameer has joined #ruby
armyriad has joined #ruby
krzkrz has quit [Quit: WeeChat 0.4.3]
roolo has joined #ruby
skaflem has joined #ruby
skulker has joined #ruby
mjs2600 has joined #ruby
nateberkopec has joined #ruby
Martxel has joined #ruby
skulker_ has joined #ruby
evenix has joined #ruby
pigzzcanfly has joined #ruby
darmou_ has joined #ruby
mehlah has joined #ruby
skulker has quit [Ping timeout: 240 seconds]
V__ has joined #ruby
St_Marx has quit [Read error: Connection reset by peer]
nateberkopec has quit [Ping timeout: 240 seconds]
jxf has joined #ruby
rylev has quit [Remote host closed the connection]
hirad has joined #ruby
freeBlue has joined #ruby
rylev has joined #ruby
rococo has joined #ruby
evenix has quit [Ping timeout: 255 seconds]
dyoko has joined #ruby
bubbajones has quit [Ping timeout: 240 seconds]
narcan has joined #ruby
supermarin has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
rylev has quit [Ping timeout: 255 seconds]
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
supermarin has quit [Ping timeout: 240 seconds]
bubbajones has joined #ruby
freeBlue has left #ruby [#ruby]
maximski has joined #ruby
dyoko has quit [Ping timeout: 264 seconds]
dyoko has joined #ruby
Guedes has joined #ruby
Guedes has joined #ruby
coapsy has joined #ruby
shashank_rs has quit [Ping timeout: 252 seconds]
Speed has joined #ruby
rylev has joined #ruby
rylev has quit [Remote host closed the connection]
rylev has joined #ruby
yfeldblum has joined #ruby
claymore has joined #ruby
bubbajones has quit [Ping timeout: 265 seconds]
arietis has quit [Quit: Computer has gone to sleep.]
bubbajones has joined #ruby
michael_lee has quit [Read error: Connection reset by peer]
sski has joined #ruby
Guedes has left #ruby ["Saindo"]
Kneferilis has joined #ruby
arturaz has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 252 seconds]
lolmaus has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
shashank_rs has joined #ruby
rdark has quit [Ping timeout: 265 seconds]
bigkevmcd has quit [Quit: Ex-Chat]
rm_ has joined #ruby
lolmaus has joined #ruby
bigkevmcd has joined #ruby
rdark has joined #ruby
eka has joined #ruby
nvrch has joined #ruby
jefflyne has quit [Ping timeout: 252 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
aag1091 has joined #ruby
<aag1091> yo :-
jefflyne has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
narcan has joined #ruby
rococo has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
itman has joined #ruby
mjs2600 has quit [Remote host closed the connection]
<itman> hi guys
<Hyeon> hi
<lxsameer> hi
<itman> How does anyone know the configuration of the liferay 6.1?
sski has quit []
blackmes1 has joined #ruby
<itman> with ruby 2.0
<shevy> I got a rocket in my pocket
oo_ has quit [Ping timeout: 264 seconds]
sski has joined #ruby
oo_ has joined #ruby
taf2 has joined #ruby
yacks has quit [Ping timeout: 255 seconds]
<Tuxified> when I enter #ruby, I get greeted by chanserv who is pointing to some ruby sites, but also to modruby.net which (seems like) has nothing to do with ruby.. :S
michael_lee has joined #ruby
pu22l3r has joined #ruby
<itman> anyone can help me connect ruby with liferay?
simono has joined #ruby
Megtastique has joined #ruby
Speed has quit [Ping timeout: 255 seconds]
<Hyeon> lol
aagdbl has joined #ruby
bluehavana_ has quit []
DaniG2k has joined #ruby
cuppscakes has joined #ruby
_aeris_ has joined #ruby
bluehavana_ has joined #ruby
RoryHughes has joined #ruby
greenarrow has quit [Quit: 500]
bluehavana_ is now known as bluehavana
lupine has joined #ruby
Mars` has joined #ruby
jaxxstorm has joined #ruby
UForgotten has quit [Read error: Operation timed out]
taf2 has quit [Quit: taf2]
UForgotten has joined #ruby
dblessing has joined #ruby
rtlong has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
zoraj has joined #ruby
<shevy> itman I dont even know what is liferay
aagdbl has quit [Quit: Leaving]
hooper has joined #ruby
aagdbl has joined #ruby
jaygen has joined #ruby
hamakn has quit [Remote host closed the connection]
_lazarevsky has joined #ruby
<_lazarevsky> hello all
bluOxigen has joined #ruby
<_lazarevsky> I need help traversing a Hash
hamakn has joined #ruby
<Hyeon> welcome
matcouto has joined #ruby
relix has joined #ruby
<Hyeon> What's your problem
Dwarf has joined #ruby
Affix has joined #ruby
hooper has quit [Ping timeout: 240 seconds]
<_lazarevsky> heres the structure of the Hash
<_lazarevsky> I need to iterate over each record in the hash
<_lazarevsky> and for each of them I need to get the length of user_feedback
<_lazarevsky> im debugging in pry
<_lazarevsky> so I go ->
blueOxigen has quit [Ping timeout: 255 seconds]
<_lazarevsky> feedback[0]
<_lazarevsky> hoping it would return the first record in the hash
<_lazarevsky> but it returns nil
<apeiros> that's because it's a hash, not an array
<apeiros> and 0 is not a key the hash has a value for
<Hyeon> afraid not
newton10471 has joined #ruby
<apeiros> feedback["ea5d2f1c4608232e07d3aa3d998e5135"] would give you an entry
<_lazarevsky> oh.. fair enough
<apeiros> or feedback.each do |key, value| … iterates over all entries
doodlehaus has joined #ruby
<Hyeon> What about feedback["ea5d2f1c4608232e07d3aa3d998e5135"][:user_feedback].each { |x| ~ }
<apeiros> or you can convert it to an array of key-value pairs via .to_a. though IMO that's the wrong way to go about it
greenarrow has joined #ruby
<_lazarevsky> yea ok
<_lazarevsky> I just needed an explanation why [0] doesnt work
<_lazarevsky> I know that I can iterate over it
rylev has quit [Remote host closed the connection]
<_lazarevsky> thanks guys
<Hyeon> Goood
<_lazarevsky> appreciate your help
<_lazarevsky> and sorry for the dumb question
yacks has joined #ruby
<Hyeon> :)
noop has quit [Ping timeout: 264 seconds]
Deele has quit [Ping timeout: 255 seconds]
doodlehaus has quit [Remote host closed the connection]
jaygen has quit []
Bumptious has quit [Remote host closed the connection]
anarang has quit [Ping timeout: 252 seconds]
sailias has joined #ruby
pigzzcanfly has quit [Remote host closed the connection]
vt102 has joined #ruby
Jetchisel has quit [Read error: Connection reset by peer]
<roolo> Anyone with jeweler knowledge: Where is this Git class supposed to come from? https://github.com/technicalpickles/jeweler/blob/master/lib/jeweler.rb#L40
coderhs has quit [Ping timeout: 252 seconds]
rylev has joined #ruby
fluve has quit []
thejoecarroll has quit [Remote host closed the connection]
shashank_rs has quit [Ping timeout: 264 seconds]
blandflakes has joined #ruby
thejoecarroll has joined #ruby
MindfulMonk has joined #ruby
FaresKAlaboud has joined #ruby
msch has joined #ruby
nifty__ has joined #ruby
jxf has quit [Ping timeout: 265 seconds]
spyderman4g63 has joined #ruby
jkamenik has quit [Quit: Leaving.]
danshultz has joined #ruby
djbender has joined #ruby
funburn has quit [Quit: funburn]
dorei has joined #ruby
anarang has joined #ruby
quazi has joined #ruby
<dorei> >> ('Ά'..'Ώ').include?'Ώ'
<quazi> hay hay
tjr9898 has quit [Remote host closed the connection]
<dorei> hmm, i guess the bot doesnt support utf-8 :(
noop has joined #ruby
rdark has quit [Ping timeout: 255 seconds]
popl has quit [Ping timeout: 252 seconds]
jmeeuwen has quit [Quit: Disconnecting from stoned server.]
canton7-mac has quit [Read error: Connection reset by peer]
canton7-mac has joined #ruby
jmeeuwen has joined #ruby
coderhs has joined #ruby
<roolo> mikecmpbll: Hmm, interesting
<shevy> dorei yeah I think you are right
terrellt_ has joined #ruby
nifty__ has quit [Ping timeout: 252 seconds]
pipework has quit [Ping timeout: 252 seconds]
bjeanes has quit [Ping timeout: 252 seconds]
frode15243 has quit [Ping timeout: 252 seconds]
mroth has quit [Ping timeout: 252 seconds]
bal has quit [Ping timeout: 252 seconds]
DarkFoxDK has quit [Ping timeout: 252 seconds]
ConstantineXVI has quit [Ping timeout: 252 seconds]
aetaric has quit [Ping timeout: 252 seconds]
joelteon has quit [Ping timeout: 252 seconds]
mjmac has quit [Ping timeout: 252 seconds]
coapsy has left #ruby [#ruby]
tkuchiki has quit [Ping timeout: 264 seconds]
<mikecmpbll> dorei: what would you expect that to be a range of?
sailias1 has joined #ruby
sailias has quit [Quit: Leaving.]
rdark has joined #ruby
rickenharp__ has quit [Read error: Connection reset by peer]
cmaxw_____ has quit [Read error: Connection reset by peer]
cbetta has quit [Read error: Connection reset by peer]
charles81 has quit [Read error: Connection reset by peer]
jeffreybaird has quit [Read error: Connection reset by peer]
mmochan_ has quit [Read error: Connection reset by peer]
fayimora_ has quit [Read error: Connection reset by peer]
dioms has quit [Read error: Connection reset by peer]
andrewstewart has quit [Read error: Connection reset by peer]
zrl has quit [Read error: Connection reset by peer]
antonishen has quit [Read error: Connection reset by peer]
kapowaz has quit [Read error: Network is unreachable]
jaxxstorm has quit [Ping timeout: 252 seconds]
Mars` has quit [Ping timeout: 252 seconds]
drjblouse__ has quit [Ping timeout: 252 seconds]
johnhamelink has quit [Ping timeout: 252 seconds]
maZtah has quit [Ping timeout: 252 seconds]
LBRapid has quit [Ping timeout: 252 seconds]
ryanuber has quit [Ping timeout: 252 seconds]
seich- has quit [Ping timeout: 252 seconds]
dmarr has quit [Ping timeout: 252 seconds]
artgoeshere has quit [Ping timeout: 252 seconds]
lfox has quit [Ping timeout: 252 seconds]
BackEndCoder has quit [Ping timeout: 252 seconds]
RohanRNS has quit [Write error: Connection reset by peer]
octarine has quit [Read error: Connection reset by peer]
michaelchum has quit [Read error: Connection reset by peer]
mrgoodcat has quit [Read error: Connection reset by peer]
supershabam has quit [Read error: Connection reset by peer]
vcoinminer__ has quit [Read error: Connection reset by peer]
davorb has quit [Read error: Connection reset by peer]
cmaxw_____ has joined #ruby
zenojis has quit [Quit: No Ping reply in 180 seconds.]
Su7 has quit [Remote host closed the connection]
phoo1234567 has joined #ruby
cbetta has joined #ruby
rickenharp__ has joined #ruby
bjeanes has joined #ruby
RoryHughes has quit [Ping timeout: 252 seconds]
epochwolf has quit [Ping timeout: 252 seconds]
charles81 has joined #ruby
terrellt has quit [Ping timeout: 252 seconds]
mmochan_ has joined #ruby
frode15243 has joined #ruby
<shevy> hmm I used to do T = true
andrewstewart has joined #ruby
fayimora_ has joined #ruby
dioms has joined #ruby
rtlong has quit [Ping timeout: 252 seconds]
zz_jrhorn424 has quit [Ping timeout: 252 seconds]
mroth has joined #ruby
Paradox has quit [Ping timeout: 252 seconds]
csq has quit [Ping timeout: 252 seconds]
kapowaz has joined #ruby
mrgoodcat has joined #ruby
maZtah has joined #ruby
zrl has joined #ruby
pipework has joined #ruby
antonishen has joined #ruby
Su7 has joined #ruby
<roolo> mikecmpbll: I am asking because NameError: uninitialized constant Jeweler::Git
drjblouse__ has joined #ruby
seemant has quit [Ping timeout: 252 seconds]
SegFaultAX has quit [Ping timeout: 252 seconds]
jeffreybaird has joined #ruby
octarine has joined #ruby
vcoinminer__ has joined #ruby
Heskie has quit []
Dwarf has quit [Read error: Connection reset by peer]
Affix has quit [Ping timeout: 252 seconds]
FaresKAlaboud has quit [Ping timeout: 252 seconds]
lupine has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 252 seconds]
JaTochNietDan has quit [Ping timeout: 252 seconds]
m4rcu5 has quit [Ping timeout: 252 seconds]
rurban_ has quit [Ping timeout: 252 seconds]
RohanRNS has joined #ruby
supershabam has joined #ruby
michaelchum has joined #ruby
francisfish has quit [Remote host closed the connection]
cuppscakes has quit [Ping timeout: 252 seconds]
_aeris_ has quit [Ping timeout: 252 seconds]
omegahm has quit [Ping timeout: 252 seconds]
Tritania has quit [Ping timeout: 252 seconds]
awkisopen has quit [Ping timeout: 252 seconds]
Nightmare has quit [Ping timeout: 252 seconds]
postmodern has quit [Ping timeout: 252 seconds]
alexherbo2 has quit [Ping timeout: 252 seconds]
shadoi has quit [Ping timeout: 252 seconds]
vjt has quit [Ping timeout: 252 seconds]
Guest99355 has quit [Changing host]
Guest99355 has joined #ruby
nifty__ has joined #ruby
Guest99355 is now known as guyz
kenichi has quit [Ping timeout: 252 seconds]
Guest80381 has quit [Ping timeout: 252 seconds]
zenojis has joined #ruby
Heskie has joined #ruby
davorb has joined #ruby
vjt has joined #ruby
Biohazard has quit [Ping timeout: 252 seconds]
sk87 has joined #ruby
Royalb15_1 has quit [Read error: Connection reset by peer]
bal has joined #ruby
yfeldblum has joined #ruby
cuppscakes has joined #ruby
nari has joined #ruby
Tritania has joined #ruby
_aeris_ has joined #ruby
rylev has quit [Remote host closed the connection]
lupine has joined #ruby
Dwarf has joined #ruby
RowdyChild|Away is now known as RowdyChildren
kenichi has joined #ruby
Nightmare has joined #ruby
jaxxstorm has joined #ruby
FaresKAlaboud has joined #ruby
awkisopen has joined #ruby
kukyakya has joined #ruby
JaTochNietDan has joined #ruby
alexherbo2 has joined #ruby
Affix has joined #ruby
Guest11227 has joined #ruby
rurban_ has joined #ruby
postmodern has joined #ruby
Biohazard has joined #ruby
RoryHughes has joined #ruby
mjmac has joined #ruby
SegFaultAX has joined #ruby
zz_jrhorn424 has joined #ruby
LBRapid has joined #ruby
Paradox has joined #ruby
lfox has joined #ruby
DarkFoxDK has joined #ruby
csq has joined #ruby
seich- has joined #ruby
Mars` has joined #ruby
ryanuber has joined #ruby
epochwolf has joined #ruby
rtlong has joined #ruby
seemant has joined #ruby
artgoeshere has joined #ruby
aetaric has joined #ruby
joelteon has joined #ruby
ConstantineXVI has joined #ruby
BackEndCoder has joined #ruby
fayimora_ is now known as fayimora
francisfish has joined #ruby
mark_locklear has joined #ruby
dmarr has joined #ruby
nateberkopec has joined #ruby
rylev has joined #ruby
hashdoge_ has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
kukyakya has quit [Remote host closed the connection]
hashdoge_ has left #ruby ["Leaving"]
Royalb15 has joined #ruby
jlast has joined #ruby
pigzzcanfly has joined #ruby
osvico has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
<_lazarevsky> fellows
<_lazarevsky> i got another question
osvico has joined #ruby
<_lazarevsky> is there a way to say something like
<_lazarevsky> if the [:user_feedback] field for any of the records in this array has a length less than n, [:user_feedback] = [] without having to iterate over the array?
<_lazarevsky> in this hash*
<_lazarevsky> iterate over the hash*
sailias1 has quit [Ping timeout: 246 seconds]
<apeiros> no
<_lazarevsky> fair enough
<_lazarevsky> moving from C#/Java/C to Ruby I find it very zen
<_lazarevsky> :D
<canton7> you can do it without #each, though
<_lazarevsky> there are a lot of cool built in features
<_lazarevsky> which I really dig
<_lazarevsky> i keep discovering new things every single day :)
<_lazarevsky> canton7: how can I do that?
oo__ has joined #ruby
<canton7> ah, misread the question
<benzrf> _lazarevsky: probably
benzrf is now known as benzrf|offline
tjr9898 has quit [Ping timeout: 240 seconds]
<canton7> tbh this sort of thing should be very familiar from C# :P
linojon has joined #ruby
koalallama has quit [Quit: leaving]
aef has joined #ruby
rvraghav93 has joined #ruby
dyoko has quit [Quit: Leaving.]
brtdv has joined #ruby
ktun has joined #ruby
poikon has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 264 seconds]
benzrf|offline is now known as benzrf
RowdyChildren is now known as RowdyChild|Away
<_lazarevsky> canton7: yea.. in C# i would've written a lambda which does just that
shaunbaker has joined #ruby
ziyadb_ has quit [Quit: Connection closed for inactivity]
<_lazarevsky> im not trying to improve the complexity but improve the code aesthetically
mjs2600 has joined #ruby
<shevy> by adding more code
benzrf is now known as benzrf|offline
shaunbaker has quit [Remote host closed the connection]
jespada has joined #ruby
oo__ has quit [Remote host closed the connection]
<apeiros> _lazarevsky: there may be more aesthetically pleasing ways to do what you want than how you do it now. but all will in one way or another iterate the hash.
oo_ has joined #ruby
<apeiros> since there's simply no way to check and set N values without looking at those N values - which is iterating
zarul has quit [Remote host closed the connection]
bean has joined #ruby
nari has quit [Ping timeout: 252 seconds]
zarul has joined #ruby
maximski has quit [Ping timeout: 264 seconds]
Geniack has quit [Ping timeout: 264 seconds]
pu22l3r has joined #ruby
Geniack has joined #ruby
benzrf|offline has quit [Ping timeout: 252 seconds]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
zarul has quit [Remote host closed the connection]
msch has quit [Quit: Coyote finally caught me]
maximski has joined #ruby
zarul has joined #ruby
sski has quit [Remote host closed the connection]
benzrf|offline has joined #ruby
benzrf|offline is now known as benzrf
hirad has quit [Quit: hirad]
dyoko has joined #ruby
sski has joined #ruby
workmad3 is now known as wm3|lunch
sozorogami has joined #ruby
sputnik13 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Rubeh has quit [Ping timeout: 240 seconds]
<quazi> ruby sounds like booby
Rubeh has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
sski has quit [Ping timeout: 255 seconds]
Todiann has joined #ruby
sambao21 has joined #ruby
davedev24 has joined #ruby
jrhe has quit [Quit: Connection closed for inactivity]
jackneill has joined #ruby
jackneill has quit [Changing host]
jackneill has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<benzrf> helo
<benzrf> quazi: your machurity impreses me
mrjensen has quit [Remote host closed the connection]
Tachoh_ is now known as Tachoh
<quazi> god i cbf to make a software i wanna make
mrjensen has joined #ruby
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shashank_rs has joined #ruby
dr_bob has joined #ruby
<shevy> lol
<shevy> quazi do you want to use a language called C
<shevy> I would have thought c to be part of the alphabet
<shevy> quazi do you want to use a language called java
<shevy> around here that sounds like coffee
<shevy> quazi do you want to use a language called lisp
<shevy> around here that sounds like an incompetent speaker
<shevy> wait I have an idea quazi
<shevy> deer
<shevy> dog
<shevy> cat
<shevy> python
<shevy> yay! let's name a language after an animal!
<benzrf> smh
dik_dak has joined #ruby
Megtastique has quit []
s2013 has joined #ruby
<Tachoh> it's named after monty python :|
_tpavel has joined #ruby
<Tachoh> ._____________.
mrjensen has quit [Ping timeout: 240 seconds]
poikon has joined #ruby
bambuka has quit [Quit: Saliendo]
paulfm has joined #ruby
johnhamelink has joined #ruby
shadoi has joined #ruby
rylev has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
thomasxie has quit [Read error: Connection reset by peer]
maximski has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
_justin has quit [Quit: _justin]
armyriad has quit [Ping timeout: 240 seconds]
quazi has quit [Remote host closed the connection]
mrjensen has joined #ruby
armyriad has joined #ruby
james_d_h has joined #ruby
benzrf|offline has quit [Ping timeout: 265 seconds]
darmou_ has quit [Ping timeout: 265 seconds]
benzrf|offline has joined #ruby
psyko666 has quit [Quit: Leaving]
benzrf|offline is now known as benzrf
maximski has quit [Ping timeout: 246 seconds]
codabrink has joined #ruby
djbender has quit [Quit: djbender]
rylev has joined #ruby
tjr9898 has joined #ruby
Shidash has quit [Quit: Leaving.]
lxsameer has quit [Quit: Leaving]
darmou has joined #ruby
s2013 has quit [Remote host closed the connection]
sailias has joined #ruby
supermarin has joined #ruby
djbender has joined #ruby
simono has joined #ruby
Todiann has quit [Quit: leaving]
msch has joined #ruby
garndt has joined #ruby
avril14th has joined #ruby
newton10471 has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
toretore has joined #ruby
taf2 has joined #ruby
supermarin has quit [Ping timeout: 265 seconds]
omegahm has joined #ruby
francisfish has quit [Remote host closed the connection]
hullswitch has joined #ruby
james_d_h has quit [Ping timeout: 240 seconds]
james_d_h has joined #ruby
anarang has quit [Ping timeout: 240 seconds]
noop has quit [Ping timeout: 255 seconds]
m4rcu5 has joined #ruby
francisfish has joined #ruby
RowdyChild|Away is now known as RowdyChildren
Solnse has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
obscured has joined #ruby
obs has quit [Quit: Konversation terminated!]
chris_thomson has joined #ruby
alexju has joined #ruby
enebo has joined #ruby
robde has quit [Read error: Connection reset by peer]
robde has joined #ruby
chris_thomson has quit [Client Quit]
ItSANgo__ has quit [Quit: Leaving...]
s2013 has joined #ruby
rdark has quit [Ping timeout: 265 seconds]
pigzzcanfly has quit [Remote host closed the connection]
rdark has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
\marrub is now known as marrub
marrub is now known as \marrub
SCommette has joined #ruby
mrmargolis has joined #ruby
Heskie has quit []
tonni has quit [Remote host closed the connection]
phutchins has joined #ruby
osvico has quit [Read error: Connection reset by peer]
obs has joined #ruby
jprovazn_ has joined #ruby
jeregrine has joined #ruby
osvico has joined #ruby
dumdedum has joined #ruby
nomenkun has quit [Remote host closed the connection]
francisfish has quit [Remote host closed the connection]
<shevy> Tachoh that's what we always say!
nomenkun has joined #ruby
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
mengu has quit [Remote host closed the connection]
doodlehaus has joined #ruby
kitak_ has joined #ruby
jprovazn has quit [Ping timeout: 255 seconds]
noop has joined #ruby
claymore has quit [Ping timeout: 265 seconds]
anarang has joined #ruby
<shevy> python now has @
ItSANgo has joined #ruby
flowerhack has joined #ruby
claymore has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
RowdyChildren is now known as RowdyChild|Away
simono has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> wheeee
<shevy> 50 years of BASIC!
rdark has quit [Ping timeout: 255 seconds]
rdark has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<benzrf> >not using haskell for math
<benzrf> i shig ur dig
mary5030 has joined #ruby
lukec has joined #ruby
hullswitch has left #ruby [#ruby]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Megtastique has joined #ruby
zachallett has joined #ruby
adam- is now known as adam12
mikepack has joined #ruby
<benzrf> cmon man
mrjensen has quit [Remote host closed the connection]
<benzrf> in haskell u can define any symbol operator
<benzrf> and youre NOT using it for math already??
postmodern has quit [Quit: Leaving]
phoo1234567 has quit [Remote host closed the connection]
<benzrf> its the most deliciously mathy mainstream language around gosh
<certainty> APL!
mrjensen has joined #ruby
jonathanwallace has quit [Quit: ZNC - http://znc.in]
<shevy> haskell has the monad barrier to overcome
<certainty> for practical purposes it's not much of a barrier
meatherly has joined #ruby
tonni has joined #ruby
IceDragon has joined #ruby
<certainty> funnily that's the first argument that comes most of the time
jonathanwallace has joined #ruby
mrjensen has quit [Remote host closed the connection]
charlies_ has joined #ruby
V__ has quit [Quit: Ex-Chat]
mrjensen has joined #ruby
<certainty> also for math you most likely just need plain functions without monadic context
Geniack has quit [Remote host closed the connection]
Geniack has joined #ruby
ktun_ has joined #ruby
<shevy> ok so math in haskell does not use monads
benzrf is now known as benzrf|offline
hooper has joined #ruby
IceDragon has quit [Client Quit]
benzrf|offline is now known as benzrf
Nukepuppy has joined #ruby
charliesome has quit [Ping timeout: 264 seconds]
<benzrf> shevy: it can
phoo1234567 has joined #ruby
<benzrf> if you want to do something monadic
<benzrf> >.<
maximski has joined #ruby
<benzrf> for example, sequence on the list monad is cartesian product
maoko has joined #ruby
s2013 has quit [Ping timeout: 240 seconds]
ktun has quit [Ping timeout: 240 seconds]
<benzrf> Prelude> sequence [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
<benzrf> [[1,4,7],[1,4,8],[1,4,9],[1,5,7],[1,5,8],[1,5,9],[1,6,7],[1,6,8],[1,6,9],[2,4,7],[2,4,8],[2,4,9],[2,5,7],[2,5,8],[2,5,9],[2,6,7],[2,6,8],[2,6,9],[3,4,7],[3,4,8],[3,4,9],[3,5,7],[3,5,8],[3,5,9],[3,6,7],[3,6,8],[3,6,9]]
<benzrf> sequence :: Monad m => [m a] -> m [a]
ikawnoclast has joined #ruby
obs_ has joined #ruby
obs has quit [Ping timeout: 240 seconds]
joonty_ has joined #ruby
<benzrf> shevy: monads are just a tool
<benzrf> shevy: like blocks
Kricir has joined #ruby
<benzrf> shevy: not everything in ruby uses blocks. but they are often handy
<benzrf> similarly in haskell most things do not use monads
<benzrf> but they are sometimes handy
<benzrf> and they are given particular emphasis because they are a good way of modelling imperative programs in a purely functional manner
<benzrf> so all I/O is done with monads
<benzrf> rather, just 1 monad
<benzrf> the IO monad
<certainty> the I/O monad is a hairy beast though.
<benzrf> yeah :I
<benzrf> under the covers it is just a StateT right?
<benzrf> or just state
joonty has quit [Ping timeout: 264 seconds]
maximski has quit [Ping timeout: 246 seconds]
finges has quit [Quit: WeeChat 0.4.1]
<certainty> I don't recall but it's part of the confusion that monads are associated mostly with IO in haskell
<certainty> at least for people that are new to haskell
<benzrf> :|
finges has joined #ruby
<benzrf> they are just a useful abstraction for pipelines where each step has some kind of contribution to the overall shape of the pipeline o.o
<certainty> introducing with Maybe or the List monad is easier
<benzrf> introducing with /functors/ is easier
Bumptious has joined #ruby
Jason has joined #ruby
karmatr0n has joined #ruby
Jason is now known as Guest68431
<certainty> or fmap and join ... also making clear that monads are different, while they share the same basic structure. Most people i meet think that there is only one monad somehow
browndawg has quit [Quit: Leaving.]
djbender has quit [Ping timeout: 246 seconds]
<benzrf> yeah
<benzrf> i really liked 'you couldve invented monads'
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
IceDragon has joined #ruby
<certainty> yeah that's a good one
<benzrf> it really put me on the road to monadic enlightenment
<certainty> there is also an introduction to monads in ruby
JohnBat26 has joined #ruby
<certainty> ok gtg
<benzrf> meh
<benzrf> monads are not so useful in ruby
goganchic has joined #ruby
endash_ has joined #ruby
endash_ has quit [Remote host closed the connection]
sethen has quit [Quit: Leaving...]
endash_ has joined #ruby
djbender has joined #ruby
Guest18435 has left #ruby [#ruby]
tkuchiki has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
RowdyChild|Away is now known as RowdyChildren
SCommette has quit [Quit: SCommette]
St_Marx has joined #ruby
<shevy> all IO in haskell uses monads?
mrjensen has quit [Remote host closed the connection]
hiall has quit [Ping timeout: 255 seconds]
<benzrf> shevy: IO monad is the only way to do I/O
<benzrf> shevy: all haskell functions are pure
<benzrf> except for unsafePerformIO which is implementation-local iirc
sambao21 has joined #ruby
hiall has joined #ruby
momomomomo has joined #ruby
jandritsch has joined #ruby
Melpaws has quit [Quit: Leaving.]
freerobby has quit [Quit: Leaving.]
<benzrf> shevy: a function in haskell must return the same result given the same arguments, and calling a function must not have any effects that not calling a function doesnt have
Melpaws has joined #ruby
<benzrf> so no returning from stdin & no printing or modifying globals
<benzrf> as a matter of fact haskell has no mutation at all
funktor has joined #ruby
<benzrf> funktor: how about 'monrad'
<benzrf> no thats awful
<shevy> sounds like prison coding
crystal77 has joined #ruby
<apeiros> benzrf: "function in haskell must return the same result given the same arguments" - rand?
<funktor> benzrf: lol better luck on the next one
<shevy> hehehe
<benzrf> apeiros: haskell does not have a regular rand function
<benzrf> it has one that operates in the IO monad
<shevy> so the IO monad works randomly
<benzrf> and it has one that takes a pseudorandom generator state, and returns the next num & a new state
<apeiros> also: gets?
<benzrf> i.e.
<benzrf> apeiros: only within the io monad
<benzrf> getLine does not return a line, it returns an 'action' that would result in a line if run
<benzrf> haskell gives you no way to run it
<benzrf> what you do is string together actions to get one big action
<apeiros> sounds like funny egg-dancing
<benzrf> then whatever action is returned from the function `main` will be run
<benzrf> so for example
darmou has quit [Quit: darmou]
mrjensen has joined #ruby
psyko666 has joined #ruby
CorySimmons has joined #ruby
<benzrf> main = putStr "What is your name?" >> getLine >>= \name -> putStrLn "Hello " ++ name ++ "!"
<benzrf> or with syntactic sugar:
<benzrf> main = do
paulfm has quit []
<benzrf> putStr "What is your name? "
<benzrf> name <- getLine
<benzrf> putStrLn "Hello " ++ name ++ "!"
nari has joined #ruby
<benzrf> the former and the latter are 100% semantically identical
<benzrf> do-notation is just sugar for >> and >>= with lambda
<benzrf> >> and >>= are the sequence and bind operators for monadic values
Hobogrammer has joined #ruby
<eval-in> benzrf => /tmp/execpad-4d5648361551/source-4d5648361551:2: syntax error, unexpected keyword_and ... (https://eval.in/133843)
<apeiros> so basically the IO monad treats user input as a function argument?
Melpaws has quit [Ping timeout: 246 seconds]
<benzrf> not exact;y
<benzrf> *exactly
therm has left #ruby [#ruby]
<benzrf> monads are an abstraction for things where you want to pipeline functions whose output also contains an extra element to add to the overall structure of the pipeline
<benzrf> in a sense
<benzrf> among other things
<benzrf> as such they are great for modelling effects
Bofu2U has joined #ruby
Bofu2U has quit [Excess Flood]
<benzrf> if you have a bunch of functions that take strings and return some kind of structure around a string
wm3|lunch is now known as workmad3
crystal77 has quit [Quit: Computer has gone to sleep.]
<benzrf> monads are an abstraction for sequencing em based on the kind of structure
<shevy> hehe
<shevy> certainty we are back to monads again
<benzrf> so for example
bean has joined #ruby
<benzrf> the Maybe monad
<benzrf> a Maybe value is either Just <value> or Nothing
<benzrf> i.e. a nullable value
pu22l3r has joined #ruby
<benzrf> if you have a bunch of functions that take an 'a' and return a Maybe 'b'
Bofu2U has joined #ruby
<benzrf> you can sequence em with >>=
<benzrf> because >>= is defined for Myabe
<benzrf> *maybe
supermarin has joined #ruby
Speed has joined #ruby
Guest68431 has quit [Remote host closed the connection]
<benzrf> >>= takes a monadic value (aka a 'structure around a regular one' or 'a computation resulting in a regular one')
<eval-in> benzrf => /tmp/execpad-4f7486c30106/source-4f7486c30106:2: syntax error, unexpected '=' ... (https://eval.in/133844)
<benzrf> and a function taking a regular value which gives a monadic one
zchrykng-work has joined #ruby
<benzrf> then it applies the latter to the 'result' or 'contents' of the former, and joins the extra structure from the result with the extra structure of the original
jprovazn_ has quit [Ping timeout: 265 seconds]
<benzrf> this is all kinda metaphorical because in practice it may not work exactly like that
Aquilo has quit [Ping timeout: 252 seconds]
<benzrf> it may not even actually apply the function when you call >>=
<benzrf> but this is all p perfect for IO
<benzrf> if I have a monadic value 'getLine'
<benzrf> which is a 'computation resulting in a string'
<benzrf> and a function from a string to an IO
<benzrf> such as:
<benzrf> sayName name = putStrLn "hello " ++ name ++ "!"
<benzrf> then i can do 'getLine >>= sayName'
<benzrf> and it will merge the function into the getLine 'computation' along with the action of printing the result
<benzrf> the types all line up anyway
supermarin has quit [Ping timeout: 240 seconds]
zz_jrhorn424 is now known as jrhorn424
iceden has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<benzrf> apeiros: basically you build a value representing an effectful program, then you return that value from main
francisfish has joined #ruby
supermarin has joined #ruby
<benzrf> since haskell is pure, main will always return the same value since it takes no args
<benzrf> in fact in haskell the distinction between a 0-arg function and a variable is pretty meaningless
nbouscal has joined #ruby
cl4ptr4p0 has joined #ruby
cl4ptr4p0 has quit [Client Quit]
<benzrf> the key point here is that only the value returned from main will be run
<benzrf> you cant invoke an io action in any way besides returning it from __main__
<benzrf> *main
<benzrf> well, there /is/ unsafePerformIO
<benzrf> but using that is kinda like
<benzrf> uh
<benzrf> i cant think of anything as sacreligious actually
<benzrf> maybe relying on UD in C
afreidah1 has joined #ruby
ndrei has joined #ruby
<benzrf> *UB
CorySimmons has quit [Quit: Zzz...]
jobewan has joined #ruby
atno has quit [Quit: Leaving]
Macaveli has quit [Ping timeout: 252 seconds]
nisstyre has quit [Quit: bai]
roolo has quit [Quit: Leaving...]
pigzzcanfly has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
pu22l3r_ has joined #ruby
yfeldblum has joined #ruby
Hobogrammer has quit [Ping timeout: 246 seconds]
dyoko has quit [Quit: Leaving.]
browndawg has joined #ruby
\marrub is now known as \marbu
joonty_ is now known as joonty
\marbu is now known as \arrbum
sambao21 has quit [Quit: Computer has gone to sleep.]
pigzzcanfly has quit [Ping timeout: 246 seconds]
pu22l3r has quit [Ping timeout: 246 seconds]
tobago has quit [Remote host closed the connection]
freerobby has joined #ruby
luckyruby has quit [Quit: Leaving...]
freerobby1 has joined #ruby
arubincloud has joined #ruby
yfeldblum has quit [Ping timeout: 252 seconds]
freerobby has quit [Read error: Connection reset by peer]
benzrf is now known as benzrf|offline
mikepack has quit [Remote host closed the connection]
CorySimmons has joined #ruby
_lazarevsky has quit [Ping timeout: 240 seconds]
poikon has quit [Remote host closed the connection]
shadoi has quit [Ping timeout: 265 seconds]
agjacome has joined #ruby
sdouglas has joined #ruby
shadoi has joined #ruby
paulfm has joined #ruby
moritzs has joined #ruby
mengu has quit [Remote host closed the connection]
GodPuppet has joined #ruby
paulfm has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
ffranz has joined #ruby
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
havenwood has joined #ruby
dr_bob has left #ruby [#ruby]
aagdbl has quit [Quit: Connection closed for inactivity]
paulfm has joined #ruby
tagrudev has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
dyoko has joined #ruby
mantas322 has joined #ruby
<mantas322> Hi guys
francisfish has quit [Remote host closed the connection]
zoraj has quit [Remote host closed the connection]
<moritzs> hi
derek_c has joined #ruby
<mantas322> quack question, I have a string I would like to remove html from
<tobiasvl> remove all html?
<tobiasvl> parse it?
<mantas322> parsing from a csv file im tryign to do something like this row[0].RemoveHTMLJustUsetext()
<tobiasvl> what do you want to achieve, mantas322
mrmargolis has quit []
Heskie has joined #ruby
<mantas322> either remove all html, or just parse the text
mrmargolis has joined #ruby
<havenwood> mantas322: so... your string is valid html and you want to parse it and get text from the <body>?
Angelous is now known as Angelous-
<mantas322> no its just a <a> tag surrounding whats in that cell
<havenwood> mantas322: have you ever used Nokogiri?
<mantas322> no.
<mantas322> actually this isnt really important, since im going to be copy and pasting the output anywho
karmatr0n has quit [Remote host closed the connection]
<mantas322> thats for your interest anyways guys.
nomenkun has quit [Remote host closed the connection]
ckinni has joined #ruby
<mantas322> im using ruby to just do some data manicure
<mantas322> thanks*
nomenkun has joined #ruby
<tobiasvl> mantas322: next time, tell us what you want to retrieve from the string ;) if you want to remove <a hre="foo" bar>, retrieve text, and remove </a>, that's not too hard
CreativeEmbassy has joined #ruby
<tobiasvl> but "remove html" and "just use text" isn't a good description of your problem
simono has joined #ruby
hooper has quit [Ping timeout: 265 seconds]
ctp has joined #ruby
roolo has joined #ruby
FxK has joined #ruby
<mantas322> sorry, I'll be more descriptive next time
<mantas322> sometimes I use various freendoe channels to, kinda think outloud sometimes.
<apeiros> Nokogiri.HTML(html).text # gives a crude rendition of the text in html
<mantas322> :/ its morning and I havent had enough coffee ;)
nomenkun_ has joined #ruby
treehug88 has joined #ruby
charlies_ is now known as charliesome
nomenkun has quit [Read error: Connection reset by peer]
<havenwood> mantas322: i have that same thing happen every morning. hehe
supermarin has quit [Quit: Computer has gone to sleep.]
<apeiros> mantas322: ^
evenix has joined #ruby
andikr has quit [Remote host closed the connection]
eregon has quit [*.net *.split]
okdas has quit [*.net *.split]
thelamest has quit [*.net *.split]
alex88 has quit [*.net *.split]
rezzack has quit [*.net *.split]
Koshian has quit [*.net *.split]
Hyeon has quit [*.net *.split]
justinmcp has quit [*.net *.split]
luvs2spooge has quit [*.net *.split]
jrdnull has quit [*.net *.split]
jsaak has quit [*.net *.split]
AntelopeSalad has quit [*.net *.split]
cba has quit [*.net *.split]
LetErikTry has quit [*.net *.split]
timonv has quit [*.net *.split]
jtz has quit [*.net *.split]
zxq9 has quit [*.net *.split]
nilsove has quit [*.net *.split]
reijoslav has quit [*.net *.split]
zastern has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
rmill has quit [*.net *.split]
wykydtron has quit [*.net *.split]
Veejay has quit [*.net *.split]
billiam_ has quit [*.net *.split]
matti has quit [*.net *.split]
LiohAu has quit [*.net *.split]
Xuerian has quit [*.net *.split]
mr_red has quit [*.net *.split]
jgrevich has quit [*.net *.split]
adam12 has quit [*.net *.split]
lessless has quit [*.net *.split]
graft has quit [*.net *.split]
jericon has quit [*.net *.split]
hackeron has quit [*.net *.split]
the_mentat has quit [*.net *.split]
kies has quit [*.net *.split]
aep_ has quit [*.net *.split]
OZzl has quit [*.net *.split]
Tachoh has quit [*.net *.split]
mnms_ has quit [*.net *.split]
gregf has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
brandon has quit [*.net *.split]
b1nd has quit [*.net *.split]
gogiel has quit [*.net *.split]
maxmanders has quit [*.net *.split]
kloeri has quit [*.net *.split]
machuga has quit [*.net *.split]
cgj has quit [*.net *.split]
AlSquire has quit [*.net *.split]
heftig has quit [*.net *.split]
andrewlio has quit [*.net *.split]
chrisseaton has quit [*.net *.split]
Morkel has quit [*.net *.split]
jibi has quit [*.net *.split]
joast has quit [*.net *.split]
lazyguru has quit [*.net *.split]
go|dfish has quit [*.net *.split]
edwardly has quit [*.net *.split]
cHarNe2_ has quit [*.net *.split]
Muz_ has quit [*.net *.split]
sawtooth_ has quit [*.net *.split]
inverses2uarelaw has quit [*.net *.split]
nwkr has quit [*.net *.split]
naw has quit [*.net *.split]
azkah has quit [*.net *.split]
ixti has quit [*.net *.split]
arnis has quit [*.net *.split]
AndyWojo has quit [*.net *.split]
anshin has quit [*.net *.split]
RaptorJesus has quit [*.net *.split]
Jelco has quit [*.net *.split]
jaimef has quit [*.net *.split]
ihme-TTilus has quit [*.net *.split]
m_3 has quit [*.net *.split]
weeb1e_ has quit [*.net *.split]
ezrios has quit [*.net *.split]
rotor has quit [*.net *.split]
elektronaut has quit [*.net *.split]
petems has quit [*.net *.split]
blackjid has quit [*.net *.split]
SJr has quit [*.net *.split]
ptierno has quit [*.net *.split]
Anarch has quit [*.net *.split]
cout has quit [*.net *.split]
jhass|off has quit [*.net *.split]
peckerman has quit [*.net *.split]
mpajor_op5 has quit [*.net *.split]
snickers has quit [*.net *.split]
JoeJulian has quit [*.net *.split]
faulkner has quit [*.net *.split]
dhruvasagar has quit [*.net *.split]
wang has quit [*.net *.split]
csfrancis has quit [*.net *.split]
Jamo has quit [*.net *.split]
psmolen has quit [*.net *.split]
destructure has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
Jamo has joined #ruby
robde has left #ruby ["Bye."]
Nowaker has joined #ruby
jsaak has joined #ruby
Tachoh has joined #ruby
Koshian has joined #ruby
AntelopeSalad has joined #ruby
anshin has joined #ruby
jhass|off has joined #ruby
naw has joined #ruby
RaptorJesus has joined #ruby
timonv has joined #ruby
azkah has joined #ruby
cHarNe2 has joined #ruby
AndyWojo has joined #ruby
Anarch has joined #ruby
Sp4rKy has joined #ruby
reijoslav has joined #ruby
dhruvasagar has joined #ruby
kies has joined #ruby
zastern has joined #ruby
kies has quit [Changing host]
kies has joined #ruby
samuelkadolph has joined #ruby
elektronaut has joined #ruby
aep has joined #ruby
Martxel has quit [Quit: Leaving]
helpa has quit [Remote host closed the connection]
jhass|off is now known as jhass
heftig has joined #ruby
wykydtron has joined #ruby
kloeri has joined #ruby
matti has joined #ruby
lessless has joined #ruby
billiam_ has joined #ruby
JoeJulian has joined #ruby
nilsove has joined #ruby
Martxel has joined #ruby
LetErikTry has joined #ruby
maxmanders has joined #ruby
weeb1e has joined #ruby
thelamest has joined #ruby
zxq9 has joined #ruby
shashank_rs has quit [Ping timeout: 264 seconds]
edwardly has joined #ruby
jgrevich has joined #ruby
helpa has joined #ruby
helpa has quit [Remote host closed the connection]
<havenwood> mantas322: then there's always Rails... :O
<havenwood> mantas322: require 'action_view'; include ActionView::Helpers::SanitizeHelper; strip_tags("g'morning") #=> "g'morning"
adam- has joined #ruby
Jelco has joined #ruby
Jelco has quit [Changing host]
Jelco has joined #ruby
adam- is now known as adam12
rmill has joined #ruby
anarang has quit [Quit: Leaving]
peckerman has joined #ruby
<havenwood> mantas322: (i'm not recommending that ^ particularly, just noting it exists >.>)
helpa has joined #ruby
snath has quit [Ping timeout: 240 seconds]
Hyeon has joined #ruby
aag1091 has quit [Ping timeout: 264 seconds]
psmolen has joined #ruby
rezzack has joined #ruby
rezzack has quit [Changing host]
rezzack has joined #ruby
<havenwood> err, terribad example i gave, i need coffee
<mantas322> havenwood, im not a fan of rails
<mantas322> no offense
OZzl has joined #ruby
cout has joined #ruby
eregon has joined #ruby
rotor has joined #ruby
blackjid has joined #ruby
<havenwood> i meant: strip_tags "<a>g'morning</a>" but whatev :)
the_mentat has joined #ruby
Kneferilis has quit [Ping timeout: 240 seconds]
andrewlio has joined #ruby
b1nd has joined #ruby
mrjensen has quit [Remote host closed the connection]
cba has joined #ruby
jrdnull has joined #ruby
SJr has joined #ruby
mr_red has joined #ruby
go|dfish has joined #ruby
justinmcp has joined #ruby
faulkner has joined #ruby
Dreamer3 has joined #ruby
lazyguru has joined #ruby
jorts has joined #ruby
machuga has joined #ruby
mpajor_op5 has joined #ruby
ezrios has joined #ruby
graft has joined #ruby
gogiel has joined #ruby
m_3 has joined #ruby
cgj has joined #ruby
brandon has joined #ruby
hackeron has joined #ruby
Celm has joined #ruby
einarj has quit [Remote host closed the connection]
csfrancis has joined #ruby
CorySimmons has quit [Quit: Zzz...]
ixti has joined #ruby
marr has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
Muz has joined #ruby
ptierno has joined #ruby
gregf has joined #ruby
lukec has quit [Quit: lukec]
<apeiros> netsplit… well, maybe it wasn't seen… I'll repeat
<apeiros> mantas322, havenwood: Nokogiri.HTML(html).text # gives a crude rendition of the text in html
chrisseaton has joined #ruby
<havenwood> aye, nokogiri for sure
alex88 has joined #ruby
nanoyak has joined #ruby
kukyakya has joined #ruby
nanoyak has quit [Client Quit]
devdazed has quit [Ping timeout: 255 seconds]
<mantas322> nokogiri sounds like sushi
cocotton has joined #ruby
<mantas322> or some sort of anime character
Merks has quit []
andy__ has joined #ruby
Xuerian has joined #ruby
<apeiros> and manta is the name of a german car…
<havenwood> require 'nokogiri'; Nokogiri::HTML("<a>g'morning</a>").text #=> "g'morning"
gigetoo has quit [Remote host closed the connection]
* apeiros doesn't call methods with ::
<apeiros> even if it's an uppercase method
<mikecmpbll> it means Saw apparently.
* havenwood doesn't name methods in caps.
<apeiros> yeah, I find that a bit ugly in nokogiri
petems has joined #ruby
wang has joined #ruby
devdazed has joined #ruby
samuel02 has quit []
mnms_ has joined #ruby
destructure has joined #ruby
arnis has joined #ruby
bal has quit [Quit: bal]
ace_striker has joined #ruby
ace_striker has quit [Changing host]
ace_striker has joined #ruby
ace_striker has joined #ruby
ace_striker has quit [Changing host]
aspires has joined #ruby
supermarin has joined #ruby
gigetoo has joined #ruby
Guest14456 has quit [Changing host]
Guest14456 has joined #ruby
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Guest14456 is now known as deepy
Xeago_ has joined #ruby
evenix has quit [Read error: Connection reset by peer]
supermarin has quit [Client Quit]
inversesquarelaw has joined #ruby
cl4ptr4p0 has joined #ruby
AlSquire has joined #ruby
m4n1f3st0 has joined #ruby
<havenwood> apeiros: i guess we could forgo the 'convenience method' and: Nokogiri::HTML::Document.parse(html).text
devdazed has quit [Client Quit]
jaimef has joined #ruby
Kilo`byte has quit [Quit: kilobyte22.de]
<havenwood> but yeah, i'd not have done a... Nokogiri#HTML
devdazed has joined #ruby
<havenwood> confusing at best
<havenwood> Nokogiri.html
Xeago has quit [Ping timeout: 246 seconds]
<apeiros> havenwood: just Nokogiri.parse_html() or somesuch
<apeiros> yeah
Veejay has joined #ruby
edoneerf has joined #ruby
Heskie has quit []
<apeiros> .html would probably be acceptable too
eka has joined #ruby
karmatr0n has joined #ruby
terrellt_ is now known as terrellt
obs__ has joined #ruby
sawtooth has joined #ruby
s2013 has joined #ruby
Macaveli has joined #ruby
<snkcld> when i run rake db:migrate, does it look at my current database to determine the schema?
CorySimmons has joined #ruby
ndrei has quit [Quit: leaving]
ndrei has joined #ruby
obs_ has quit [Ping timeout: 240 seconds]
Guest13822 is now known as davidcelis
davidcelis has quit [Changing host]
davidcelis has joined #ruby
_justin has joined #ruby
<apeiros> snkcld: #rubyonrails
<apeiros> it uses a table in your schema
evenix has joined #ruby
snickers has joined #ruby
Macaveli has quit [Remote host closed the connection]
ahawkins has quit [Quit: leaving]
<snkcld> apeiros: thanks, i tried #rails but that didnt have anyone in it
evenix has quit [Read error: Connection reset by peer]
jericon has joined #ruby
jerius has joined #ruby
poikon has joined #ruby
tonni has quit [Remote host closed the connection]
bilbo_swaggins has joined #ruby
Kilo`byte has joined #ruby
jtz has joined #ruby
Guest54290 has quit [Quit: leaving]
Kricir has quit [Ping timeout: 240 seconds]
hooper has joined #ruby
Solnse has quit [Quit: Leaving.]
evenix has joined #ruby
Cache_Money has joined #ruby
segv_ has joined #ruby
toastynerd has joined #ruby
segv has quit [Quit: ZNC - http://znc.in]
megaputer has joined #ruby
segv_ is now known as segv
TTilus has joined #ruby
Kricir has joined #ruby
p8952 has joined #ruby
pigzzcanfly has joined #ruby
s2013 has quit [Remote host closed the connection]
maximski has joined #ruby
sdouglas has quit [Remote host closed the connection]
spinx^ has joined #ruby
fabrice31 has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
pigzzcanfly has quit [Ping timeout: 255 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<benzrf> ::foo
<benzrf> >> ::foo
<eval-in> benzrf => /tmp/execpad-6b415aa266ca/source-6b415aa266ca:2: syntax error, unexpected tIDENTIFIER, expecting tCONSTANT (https://eval.in/133873)
<benzrf> hmm
<benzrf> >> foo? = 3
<eval-in> benzrf => /tmp/execpad-f75b0ebd890a/source-f75b0ebd890a:2: syntax error, unexpected '=' ... (https://eval.in/133874)
geggam has joined #ruby
derek_c has quit [Ping timeout: 265 seconds]
AlexRussia has joined #ruby
funktor has quit [Remote host closed the connection]
maletor has joined #ruby
baroquebobcat has joined #ruby
<ji0n> Anyone ever used ruby motion?
spinx has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
rippa has joined #ruby
<dorei> i'm looking for an oneliner that would transform [100, 150, 220] into [50, 70, 0] ie substract the next value from the current one, so far i've come up with (a[1..-1] << a.last).zip(a).map{|x| x.reduce(&:-)} , any ideas?
DrShoggoth has joined #ruby
funktor has joined #ruby
Xeroxyde has joined #ruby
<arubincloud> 0 - 220 = 0?
<benzrf> wow thats awfully ugly
jibi has joined #ruby
joast has joined #ruby
apeiros has quit [Remote host closed the connection]
<arubincloud> Or I guess nil - 220.
<benzrf> isnt there some kind of enum method for overlapping chunks
<havenwood> NoMethodError
<benzrf> >> [1, 2, 3].each_chunk
<eval-in> benzrf => undefined method `each_chunk' for [1, 2, 3]:Array (NoMethodError) ... (https://eval.in/133876)
<benzrf> >> [1, 2, 3].each_slice 2
<eval-in> benzrf => #<Enumerator: [1, 2, 3]:each_slice(2)> (https://eval.in/133877)
<benzrf> >> [1, 2, 3].each_slice(2).to_a
<eval-in> benzrf => [[1, 2], [3]] (https://eval.in/133878)
<benzrf> meh
apeiros has joined #ruby
<havenwood> dorei: [100, 150, 220].each_cons(2).map { |x, y| y - x } #=> [50, 70]
Shidash has joined #ruby
<benzrf> aha each_cons
sambao21 has joined #ruby
<benzrf> >> [1, 2, 3].each_cons(2).to_a
<eval-in> benzrf => [[1, 2], [2, 3]] (https://eval.in/133879)
<benzrf> :-)
<benzrf> >> [1, 2, 3].each_cons(3).to_a
<eval-in> benzrf => [[1, 2, 3]] (https://eval.in/133880)
<benzrf> >> [1, 2, 3, 4, 5].each_cons(3).to_a
<eval-in> benzrf => [[1, 2, 3], [2, 3, 4], [3, 4, 5]] (https://eval.in/133881)
<benzrf> thx havenwood
maletor has quit [Ping timeout: 240 seconds]
IceDragon has quit [Ping timeout: 240 seconds]
IceDragon has joined #ruby
klaut has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 252 seconds]
rudisimo has joined #ruby
rudisimo has left #ruby [#ruby]
rudisimo has joined #ruby
apeiros has quit [Ping timeout: 240 seconds]
sindork has quit [Changing host]
sindork has joined #ruby
Macaveli has joined #ruby
cpruitt has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
arturaz has quit [Ping timeout: 265 seconds]
aganov has quit [Remote host closed the connection]
CreativeEmbassy has quit [Quit: FO SHO]
<shevy> havenwood is a ruby master
timonv has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<shevy> benzrf do you use ruby or python more often
s2013 has joined #ruby
sambao21 has joined #ruby
snath has joined #ruby
noop has quit [Ping timeout: 240 seconds]
<dorei> each_cons :)))
x77686d has joined #ruby
<dorei> h00ray :)
fgo has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
kitak_ has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
kitak_ has joined #ruby
<benzrf> shevy: absolutely RubyPanther
<benzrf> *ruby
<benzrf> i havent touched python when both were equal candidates in the last few months
<benzrf> although i did use it because PRAW and i've been using it because im teaching my brother some codes
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
dstynchula has joined #ruby
_justin has quit [Quit: _justin]
<shevy> damn
<shevy> that's a whole coding family you got there
<benzrf> shevy u should stop worrying & learn to love the monad
CorySimmons has quit [Quit: Bye!]
sdouglas has joined #ruby
CreativeEmbassy has joined #ruby
bbloom has joined #ruby
<olivier_bK> sorry guy but i dont remember how to send data in hash
<olivier_bK> in ruby of course :)
havenwood has quit [Read error: Connection reset by peer]
<benzrf> monads are great
<benzrf> they are like functors
shredding has joined #ruby
<benzrf> but with unit and join@
havenwood has joined #ruby
<benzrf> * !
jxf has joined #ruby
cj3kim has joined #ruby
brian-kim has joined #ruby
goleldar has joined #ruby
kloeri has quit [Quit: brb]
megaputer has left #ruby [#ruby]
kloeri has joined #ruby
Kruppe has joined #ruby
funktor has quit [Remote host closed the connection]
ktun has joined #ruby
blackmes1 has quit [Ping timeout: 255 seconds]
jlast has quit [Remote host closed the connection]
xiphias has joined #ruby
psyprus has joined #ruby
jlast has joined #ruby
ixti has quit [Ping timeout: 240 seconds]
ktun_ has quit [Ping timeout: 255 seconds]
ktun has quit [Read error: Connection reset by peer]
goganchic has quit []
jack_rabbit has quit [Ping timeout: 255 seconds]
MatthewsFace has joined #ruby
ktun has joined #ruby
<benzrf> man abstract algebra is 3fun5me
<benzrf> likemike:
<benzrf> *like
<benzrf> monoids n shit
<benzrf> o3o
funktor has joined #ruby
nari has quit [Ping timeout: 240 seconds]
cjbottaro has joined #ruby
<benzrf> typeclasses in haskell are specifications for algebraic structures
<benzrf> fun!
nisstyre has joined #ruby
m4n1f3st0 has quit []
<cjbottaro> Can Heartbleed affect outgoing SSL connections from Ruby, say to an LDAP server?
m4n1f3st0 has joined #ruby
m4n1f3st0 has quit [Client Quit]
cj3kim has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
jlast has quit [Ping timeout: 240 seconds]
<olivier_bK> cjbottaro, if you use ssl dont miss that
supermarin has joined #ruby
Ziarkaen has joined #ruby
Tuxified has quit [Ping timeout: 255 seconds]
<browndawg> Writing a rake task that recursively locates all .haml files and compiles them to html in the project. What's a better way than os.execute("find ...")
<browndawg> ?
weaksauce has joined #ruby
joast has quit [Ping timeout: 240 seconds]
<cjbottaro> olivier_bK: But everything seems to be regarding servers listening over ssl, not clients making connections over ssl. Are outbound SSL connections vulnerable (I guess, via man in the middle attacks or some such)?
<browndawg> I have half a mind to just write a Makefile
zigomir has joined #ruby
aagdbl has joined #ruby
ckinni has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dagobah has quit [Quit: Leaving...]
decoponio has joined #ruby
nisstyre has quit [Read error: Connection reset by peer]
nisstyre has joined #ruby
benzrf is now known as benzrf|offline
_justin has joined #ruby
cl4ptr4p0 has quit [Quit: [BX] bb bbba bbbba bbbitchx bitchx!!!]
<canton7> browndawg, Dir['**/*.haml'] ?
jlast has joined #ruby
<browndawg> canton7: how many levels deep is this going to go?
<canton7> that's infinitely recursive
<browndawg> canton7: thanks
<olivier_bK> cjbottaro, it's not a vulnerability from man in the middle but in read overrun
<canton7> typically you'd write a 'file' rule which describes how to turn .html into .html, then write a task with all of those html files as dependecies
VTLob has joined #ruby
terrellt_ has joined #ruby
kyle__ has joined #ruby
jxf has quit [Ping timeout: 250 seconds]
terrellt has quit [Ping timeout: 252 seconds]
RowdyChildren is now known as RowdyChild|Away
peret has joined #ruby
<kyle__> When you've got a unioned regex, with named groups (?'george'), is there a way to get rx.match(sometext) to math ALL of the regexes in the union, instead of stopping at the first one?
oz has quit [Quit: EOF]
<browndawg> canton7: Yeah, what I'm tyring to avoid is 'sh' within that file rule.
<browndawg> canton7: But I guses this is good enoguh
crystal77 has joined #ruby
lkba has joined #ruby
<cjbottaro> olivier_bK: Yes, but why would someone I'm voluntarily connecting to attack me, unless it's not who I think it is.
moritzs has quit [Remote host closed the connection]
nopc0def is now known as nopc0de
hostess has quit [Quit: ZNC - http://znc.sourceforge.net]
<kyle__> cjbottaro: Never underestimate the dangers a bored teenager.
lukec has joined #ruby
aspires has quit []
hostess has joined #ruby
moritzs has joined #ruby
<cjbottaro> kyle__: Why would I be connecting a bored teenager's server? Or more specifically, why would a bored teenager be running the IT department of a company?
moritzs has quit [Max SendQ exceeded]
Zai00 has quit [Quit: Zai00]
paulfm has quit []
IceDragon has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
aspires has joined #ruby
<canton7> browndawg, http://onestepback.org/index.cgi/Tech/Rake/Tutorial/RakeTutorialRules.red, so you'd do something like HAML = FileList['**/*.haml']; HTML = HAML.ext('html'); rule '.html' => '.haml' do |t| invoke your compiler... end; task :compile => HTML (untested)
apeiros has joined #ruby
<browndawg> Ahk
Geniack has quit [Remote host closed the connection]
<browndawg> canton7: Reading
Geniack has joined #ruby
cj3kim has quit [Remote host closed the connection]
<canton7> of course, s/c/haml, s/o/html, and you're not generating a final 'hello' file, just a list of html files
<cjbottaro> To be clear, I'm not talking about upgrading my servers that are LISTENING for SSL connections, I've already done that. I'm now wondering if I need to upgrade Ruby which makes OUTGOING connections over SSL. These outgoing SSL connections are going to servers I (obviously) trust. It seems heartbleed can only affect my outgoing connections if these trusted servers have been compromised and a malicious party is posing as them.
brtdv has quit []
<kyle__> cjbottaro: You never know. I've worked at small colo facilities where the oldest manager was 28, and the median age was 19.
oz has joined #ruby
<kyle__> cjbottaro: My understanding of the bug is that outbound connections shouldn't be vulnerable. They don't expose heartbeat as far as I know.
phutchin1 has joined #ruby
mrjensen has joined #ruby
<cjbottaro> kyle__: Ahh, thank you. And fair enough (regarding malicious inside parties).
ghr has quit [Ping timeout: 252 seconds]
RowdyChild|Away is now known as RowdyChildren
benzrf|offline is now known as benzrf
paulfm has joined #ruby
ndrei has quit [Remote host closed the connection]
<kyle__> cjbottaro: Here's the actual advisory from openssl... https://www.openssl.org/news/secadv_20140407.txt
<kyle__> funny enough, it's REALLY short, but covers many important details ALL the news stories fail to report.
rurban_ has quit [Quit: Leaving]
diegoviola has joined #ruby
DaniG2k has quit [Quit: leaving]
heftig has quit [Quit: Quitting]
bluenemo has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
joonty_ has joined #ruby
phutchins has quit [Ping timeout: 255 seconds]
jokke1 has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
<benzrf> dang everybody is totally freaking out over this
joonty has quit [Ping timeout: 265 seconds]
<dorei> benzrf: there's nothing more serious than a false sense of security
<kyle__> Any regex gurus know how to match all regexes in a Regex.union, and not just quit after the first one?
zigomir has quit [Remote host closed the connection]
<canton7> kyle__, as in #scan ?
<apeiros> kyle__: not a property of the regex, but of the method
<benzrf> dorei: i know
<apeiros> and as canton7 just said - scan :)
<benzrf> i was not condemning freaking out
tcstar has joined #ruby
<kyle__> canton7: Scan works, but then you can't use the tagged group names (?'')
<olivier_bK> i dont remember how to send data in hash ?
<benzrf> i was just observing that everywhere i go in irc it is the #1 thing on discussion
<benzrf> o=
binaryhat has joined #ruby
poguez_ has joined #ruby
<benzrf> [i for one am changing my key immediately]
<kyle__> apeiros: With the rx.match(somestring) method... or something like it.
<benzrf> [as well as upgr8ding]
pigzzcanfly has joined #ruby
<apeiros> that gives you full matchdata objects
Hobogrammer has joined #ruby
MatthewsFace has quit [Quit: This computer has gone to sleep]
<apeiros> olivier_bK: what does "send data in hash" mean?
derek_c has joined #ruby
moritzs has joined #ruby
<kyle__> humm.
momomomomo has joined #ruby
moritzschaefer has joined #ruby
sk87 has joined #ruby
<olivier_bK> apeiros, i get a string like that update_endDate 2013-06-23
benzrf has quit [Quit: bye]
<olivier_bK> and i need to put it in hash
<apeiros> hash[key] = value
MatthewsFace has joined #ruby
IceDragon has joined #ruby
jxf has joined #ruby
pigzzcanfly has quit [Ping timeout: 246 seconds]
verto has quit [Quit: see you later xD]
ce_afk is now known as cescalante
<kyle__> apeiros: This way returns an array of matchdata objects. What I'm trying to do is return one matchdata object with named groups.
<apeiros> kyle__: um, yes? this allows you to do that
shashank_rs has joined #ruby
afreidah1 has quit [Ping timeout: 255 seconds]
<apeiros> .match returns a MatchData object too
<apeiros> so anything you can do with .match, you can do with .match_all
toastynerd has joined #ruby
funktor has quit [Remote host closed the connection]
<kyle__> apeiros: but that's string.match, not regexp.match... I though?
<toretore> kyle__: show some code. it explains better than you ever could
anonymuse has joined #ruby
<apeiros> kyle__: String#match and Regexp#match do *exactly* the same thing
jgrevich_ has joined #ruby
<LiquidInsect> ~/win 2
moted has joined #ruby
<apeiros> they just juxtapose receiver and object
<LiquidInsect> :|
shredding has quit [Quit: shredding]
jamto11 has joined #ruby
kaliya has quit [Quit: Lost terminal]
benzrf|offline has joined #ruby
<kyle__> apeiros: Humm
benzrf|offline is now known as benzrf
<jamto11> is there a good ruby method for changing an array of one hash to just that hash (like to unarray something, but not raise an error if called on nil)
<kyle__> apeiros: I guess I'm not stating what I'm trying to do clearly.
markisonfire has joined #ruby
<apeiros> kyle__: indeed. which is why -> toretore: kyle__: show some code. it explains better than you ever could
<kyle__> I have a a number of small regexes with named groups. I union them, I try and get the named gorup.
Xeroxyde has quit [Quit: Leaving...]
<kyle__> Ahh ok... holdon, pastebinning
jxf has quit [Ping timeout: 240 seconds]
afreidah1 has joined #ruby
derek_c has quit [Ping timeout: 250 seconds]
hooper has quit [Ping timeout: 255 seconds]
iitywimwybmab is now known as slash_nick
diegoviola has quit [Quit: WeeChat 0.4.3]
<momomomomo> kyle__: use gist.github.com
circuit has joined #ruby
olivier_bK has quit [Ping timeout: 255 seconds]
tvw has quit [Ping timeout: 255 seconds]
ace_striker has quit [Ping timeout: 240 seconds]
<apeiros> +1
x77686d has quit [Quit: x77686d]
pagios has joined #ruby
qba73 has quit []
x1337807x has joined #ruby
yfeldblum has joined #ruby
klaut has joined #ruby
saarinen has joined #ruby
<kyle__> I'm scraping data from a mountain of malformed html.
<apeiros> kyle__: and you want the last 3 lines to be for all matches instead of just the first?
spacemud has quit [Read error: Operation timed out]
joast has joined #ruby
jgrevich_ has quit [Quit: jgrevich_]
<kyle__> apeiros: Yes. Except this is just the first 7 regexes in the union. There will be closer to 50, which is why I was hoping to just get one matchdata object.
<apeiros> replace rx.match(File.read("coursedata.html")) with File.read("coursedata.html").match_all(rx)
<apeiros> and you get an array of MatchData objects, each of which has :name and :college
<apeiros> e.g.: File.read("coursedata.html").match_all(rx).each do |data| puts data[:name], data[:college] end
sdwrage has quit [Quit: This computer has gone to sleep]
james_d_h has quit [Quit: Lost terminal]
<kyle__> apeiros: That gives me an array of matchdata objects, and each of them only has one of them in it. I think. From looking at it on irb.
nvrch has quit [Quit: nvrch]
<apeiros> which seems to me to be exactly what you want…
poikon has quit [Remote host closed the connection]
dtcrshr has joined #ruby
<Trynemjoel> Anyone familiar with getting libyaml up to date? I can't seem to get it updated past 0.1.5. Using RVM on OSX 10.9
f0ster` has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
paulfm has quit []
Waheedi has quit [Quit: Waheedi]
<apeiros> kyle__: *one* machdata object makes no sense
<kyle__> apeiros: Why wouldn't it make any sense?
<apeiros> if you want *one*, then *which one*?
maletor has joined #ruby
solidus-river has left #ruby [#ruby]
<kyle__> apeiros: A union of them, essentially.
<toretore> one MD is *one* match
<apeiros> kyle__: you're not making much sense
<toretore> you have to match several times to get all of them
<apeiros> what should a unionized matchdata be?
<apeiros> make an example
RowdyChildren is now known as RowdyChild|Away
<kyle__> apeiros: toretore: if you make a regex with two named groups (?'one') (?'two'), both of those show up in a single matchdata object.
maximski_ has joined #ruby
<benzrf> leshiggy
<benzrf> diggy
<benzrf> doo
maximski has quit [Ping timeout: 255 seconds]
maximski_ has quit [Max SendQ exceeded]
ghr has joined #ruby
<toretore> kyle__: but only if they are both part of the pattern overall
phutchin1 has quit [Ping timeout: 240 seconds]
<benzrf> >tfw piece of shit sitting next to me leans over and vomits on my kbd
spider-mario has joined #ruby
<crome> isnt the point of Array and Integer and similar methods is they reliably return something of the given type?
<toretore> >> 'cat dog'.match(/(?<one>cat) (?<two>dog)/)
maximski has joined #ruby
<toretore> :/
<kyle__> toretore: Right. And since I was conjoining rxes with union, the hope was they'd all be part of the overall pattern.
<apeiros> kyle__: thats NOT an example
<apeiros> kyle__: make a *simple* example with input, regex, and output
<toretore> kyle__: union creates an OR, essentially
<toretore> so, no
poikon has joined #ruby
<toretore> "return <match a> OR <match b> OR <...>"
<kyle__> /first: (?'one'[^ ]+) last: (?'two'[^$]+)/.match("first: George last: Jettson")
<toretore> that is not the same
mgorbach has quit [Quit: ZNC - http://znc.in]
<apeiros> kyle__: that's obviously not reflecting your question
<toretore> /first: (?'one'[^ ]+)|last: (?'two'[^$]+)/.match("first: George last: Jettson")
<apeiros> because otherwise you'd just use .match and be happy
<toretore> ^ that's what you're doing with union
mgorbach has joined #ruby
phutchins has joined #ruby
RealMarc is now known as Marc
aspires has quit []
Marc is now known as Guest67777
<kyle__> apeiros: That's the example of two named groups in a single regex. I was asking if there was a way to return one matchdata object from a union of rxes where it went through all of them.
<apeiros> no
<toretore> kyle__: it is not
<kyle__> If the answer is no, that's fine, but it was obviously reflecting my question.
zigomir has joined #ruby
<apeiros> not really
rylev has quit [Remote host closed the connection]
<toretore> what you want is match_all or scan, as apeiros said
razrunelord has joined #ruby
x77686d has joined #ruby
<apeiros> if you want all the matches in a single object (an array is a single object, so technically that's already the case) - then postprocess the matches
<havenwood> kyle__: it's easier for humans to understand complex data than complex logic. example input and expected output really makes it easier for us.
ikaros has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
<toretore> also, human not explain well
derek_c has joined #ruby
Macaveli has quit [Ping timeout: 252 seconds]
<toretore> computar better
dukz has joined #ruby
<havenwood> "Rule of Representation"
mikecmpbll has quit [Ping timeout: 255 seconds]
tvw has joined #ruby
aspires has joined #ruby
jlast has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 240 seconds]
lukec has quit [Quit: lukec]
canton7-mac has quit [Quit: Leaving]
lagweezle has joined #ruby
spider-mario has quit [Remote host closed the connection]
jlast has joined #ruby
davy_ has joined #ruby
armyriad has quit [Ping timeout: 240 seconds]
werdnativ has joined #ruby
keeguon has quit [Quit: keeguon]
spider-mario has joined #ruby
blackavr has quit [Quit: blackavr]
jameswlane has joined #ruby
<BradPitt_> when i do arr[-1], is ruby still reading the entire list of elems in the array and getting the last one? Or is it smart enough to directly access the last memory location of the array?
<BradPitt_> I fear its the former but wanted clarification
<shevy> benzrf you seem to like learning new stuff in regards to programming
<apeiros> the latter
<shevy> benzrf I am an absolute minimalist
<apeiros> BradPitt_: that's the point of arrays - positional access is O(1)
BradPitt_ is now known as BraddPitt
sambao21 has quit [Quit: Computer has gone to sleep.]
nfk has quit [Quit: yawn]
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
cescalante is now known as ce_afk
<BraddPitt> I see
jxf has joined #ruby
<BraddPitt> so under the hood C is doing something like *(arrp 8*index)
<BraddPitt> or w/e, i don't really know C
<BraddPitt> basically is direct access to that memory cell
bilbo_swaggins has quit [Quit: Leaving]
yfeldblum has joined #ruby
hooper has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
aspires has quit []
michaeldeol has joined #ruby
<apeiros> if it's sane it won't have to 8* it.
moritzs has quit [Ping timeout: 246 seconds]
sambao21 has joined #ruby
sozorogami has left #ruby [#ruby]
<apeiros> BraddPitt: also if you know C - the source is there. just read it
<BraddPitt> I don't ( ≖‿≖)
<BraddPitt> well sort of
rm-rf-etc has joined #ruby
<BraddPitt> lets see
davy_ has quit [Ping timeout: 250 seconds]
edoneerf has quit [Quit: Page closed]
Hanmac1 has joined #ruby
mrjensen has quit [Remote host closed the connection]
<mantas322> brad pitt! are you goign to make any more movies?
aspires has joined #ruby
<rm-rf-etc> What is ::move (the method) not listed in this documentation? http://www.ruby-doc.org/core-2.1.1/File.html
diegoviola has joined #ruby
<rm-rf-etc> *Why is
defunct_process has joined #ruby
<apeiros> rm-rf-etc: because there is no File::move
<apeiros> >> File.respond_to?(:move)
<eval-in> apeiros => false (https://eval.in/133989)
<BraddPitt> yes mantas322 have no worries
nfk has joined #ruby
<rm-rf-etc> @ apeiros
<certainty> damn i missed all the fun
Hanmac has quit [Ping timeout: 255 seconds]
pel_daniel has joined #ruby
spacemud has joined #ruby
<havenwood> BraddPitt: well, guess i shoulda linked to: https://github.com/ruby/ruby/blob/trunk/array.c#L1180-1187
brtdv has joined #ruby
binaryhat has quit [Quit: Leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<kyle__> rm-rf-etc: I beleive I use .rename for that
<havenwood> down the rabbit hole
<apeiros> rm-rf-etc: fine. doesn't mean it's part of core ruby.
_justin has quit [Quit: _justin]
<apeiros> rm-rf-etc: probably rails or something else that he uses adds it.
<mantas322> good, good.
<mantas322> have fun!
<rm-rf-etc> apeiros, I see. Thanks.
aspires has quit [Client Quit]
<apeiros> rm-rf-etc: File.method(:move).source_location
<apeiros> tells you where it's from (if it's implemented in ruby)
Hobogrammer has quit [Ping timeout: 246 seconds]
<BraddPitt> than you havenwood
_tpavel has quit [Quit: Leaving]
<havenwood> BraddPitt: no prob, the method above the one i just linked is a good one to look at
<rm-rf-etc> apeiros: you are correct, it's not implemented
blackmes1 has joined #ruby
Hanmac has joined #ruby
cocotton has quit [Remote host closed the connection]
rgoodwin has joined #ruby
rgoodwin has left #ruby [#ruby]
cocotton has joined #ruby
Hanmac1 has quit [Ping timeout: 250 seconds]
blandflakes has quit [Ping timeout: 240 seconds]
crystal77 has joined #ruby
obscured has quit [Quit: leaving]
psyko666 has quit [Remote host closed the connection]
mr_red has quit [Ping timeout: 246 seconds]
francisfish has joined #ruby
<BraddPitt> its helpful as I'm just beginning to learn C
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenichi has quit [Quit: ZNC - http://znc.in]
<BraddPitt> it's not all too helpful for the webdev stack, but it is a very important language to learn
cocotton has quit [Remote host closed the connection]
IceDragon has quit [Ping timeout: 240 seconds]
kenichi has joined #ruby
IceDragon has joined #ruby
r_rios has joined #ruby
<Hanmac> BraddPitt: i leared to write an http server in C ;P
lukec has joined #ruby
sdelmore has joined #ruby
geggam has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
francisfish has quit [Remote host closed the connection]
<sdelmore> I'm not sure if this is the place for a design rather than technical question but….I have a project that takes readings from sensors. The readings are nearly integers, but not quite, they can be from 1-500, plus low or high. I could model low and high as -1, -2 or something like that but I was wondering if anyone can recommend a good pattern or example for this case.
aspires has joined #ruby
<sdelmore> Even though it can be represented as integers, I am feeling like I should have a way to represent this data to make it obvious it is a reading, and follows reading rules/limits, not just arbitrary ints.
<certainty> benzrf: haha, you tricked eval.in several times with your rutheless use of haskell's bind function in #ruby
<benzrf> >tfw
cocotton has joined #ruby
karmatr0n has quit [Ping timeout: 246 seconds]
<apeiros> sdelmore: low/high is an entirely different value from 1-500? i.e., it's not a value comparable with those 500 values?
wallerdev has joined #ruby
Hobogrammer has joined #ruby
sdouglas has quit [Remote host closed the connection]
<sdelmore> Hmm…..They would certainly sort with them, at the high and low end. But they convey less specific information. If I had a HI value I know it really is higher than 500, but due to sensor accuracy limitations I don't know how much higher.
<apeiros> sdelmore: so high > 500 and low < 1?
subbyyy_ has joined #ruby
<sdelmore> Yes. And 600 should not be allowed, or should be converted to HI.
<apeiros> with floats, I'd use Float::INFINITY and -Float::INFINITY
<apeiros> but with integers…
_justin has joined #ruby
crystal77 has quit [Quit: Computer has gone to sleep.]
binaryhat has joined #ruby
sputnik13 has joined #ruby
<wallerdev> to_f
<wallerdev> lol
pigzzcanfly has joined #ruby
<sdelmore> Interesting. These values actually can be something like 150.6, I just hadn't decided yet whether to model those as floats, or use ints and add a few decimal places under the covers. Never heard of Float::Infinity and -Float::Infinity but it sounds like a good representation of the data.
<apeiros> not sure… I'd probably ponder 0 and 5001
<apeiros> *501
rylev has joined #ruby
<apeiros> ok, that's new information. in that case - infinity
Spami has joined #ruby
UserNameInvalid has joined #ruby
michaeldeol has joined #ruby
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<certainty> so low or high is actually some form of delta?
<certainty> or epsilon
<apeiros> sounds more like "out of sensor range"
francisfish has joined #ruby
<apeiros> and it can just say whether it's above or below sensor range
<sdelmore> apeiros: exactly right, out of sensor range.
havenwood has quit [Remote host closed the connection]
<chrisseaton> sdelmore: or use objects, have a class for ValidValue, with a field for the value, and have a class for HighValue and a class for LowValue
<chrisseaton> sdelmore: you're trying to shoehorn multiple classes of data into a single type - use object orientation
rylev_ has joined #ruby
FxK has quit [Quit: (I was using Polaris SE) Version: 4.2. Webpage: http://polarisse.tripod.com/. Wasted: 2 Hours 27 Minutes and 49 Seconds Online.]
<sdelmore> I am trying to visualize how I would do that. It seems like a reasonable representation.
havenwood has joined #ruby
pigzzcanfly has quit [Ping timeout: 240 seconds]
cocotton_ has joined #ruby
nomenkun_ has quit [Remote host closed the connection]
rylev has quit [Ping timeout: 246 seconds]
<sdelmore> Can you think of any example code I might take a look at that does something like that? It seems like in that case all of my sets of values would contain multiple classes, but I guess in Ruby that wouldn't be a hassle to deal with.
roolo has quit [Quit: Leaving...]
nomenkun has joined #ruby
fabrice31 has joined #ruby
Eiam has joined #ruby
moritzs has joined #ruby
Megtasti_ has joined #ruby
WanderingGlitch has quit [Changing host]
WanderingGlitch has joined #ruby
browndawg has left #ruby [#ruby]
djbender has quit [Quit: djbender]
supermarin has quit [Quit: Computer has gone to sleep.]
poikon has quit []
kate_r has joined #ruby
karmatr0n has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
djbender has joined #ruby
rylev_ has quit [Ping timeout: 250 seconds]
cocotton has quit [Ping timeout: 240 seconds]
Megtastique has quit [Ping timeout: 240 seconds]
Hanmac1 has joined #ruby
mikecmpbll has joined #ruby
mordocai has joined #ruby
testcore has joined #ruby
mehlah has quit [Quit: Leaving...]
greenarrow has quit [Quit: 500]
hooper has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
<benzrf> shevy: why havent you accepted haskell into your life yet
<mordocai> benzrf: Just joined channel, but you sound like a Jehovah witness :P
<certainty> shevy doesn't like burritos
<benzrf> hehehe
<benzrf> but they are more like bananas really
_justin has quit [Quit: _justin]
jerius has quit [Ping timeout: 255 seconds]
blackavr has joined #ruby
<apeiros> benzrf: don't you know? shevy despises everything new
<benzrf> or maybe useful abstractions with no simple intuitive mapping without using them a bit
<benzrf> >implying category theory is newer than ruby
<certainty> that's actually again a nice thing about haskell, since you can only pattern match against constructors it gives you a nice way to represent different variations of your types. wrt the low, high, sensor range thing
<sdelmore> Playing with it now, didn't realize the sorting would work across classes like that.
Deele has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<chrisseaton> sdelmore: if you want to sort, just add the <=> operator on each class
verto has joined #ruby
<sdelmore> Ahhh…but isn't that just sorting inside a class? Would I need another class to sort between them?
jerius has joined #ruby
<certainty> just many of those
<sdelmore> Oh, wait…I get it.
rdark has quit [Quit: leaving]
<shevy> benzrf I need my time investment to provide me with specific advantages
<sdelmore> Sort for LowValue would always return -1, HighValue 1, and ValidValue something in between right?
<chrisseaton> sdelmore: for valid value you can compare the actual value
binaryhat has quit [Quit: Leaving]
<apeiros> ValidValue -1, 0 or 1
<apeiros> depending on the value of other
jerius_ has joined #ruby
dukz has quit [Remote host closed the connection]
<chrisseaton> sdelmore: you don't need to turn them into integers - you never need -1 or 1, just implement a custom comparison (<=>) operator on those classes
<sdelmore> Would this be a common technique in the Ruby community? I'm new here, love the readability of the language, just trying to make sure I write readable code. If feels like points on a line to me, and surprises me that the end points on the line would be different classes than the intermediate points.
michaeldeol has joined #ruby
dukz has joined #ruby
<shevy> I can't read your code so you are safe
<sdelmore> But then again making measureable points different classes from immeasureable points makes sense.
<chrisseaton> sdelmore: you can go for the simpler approach of using -1 and +1, but you might find later on that you wish you had the explicit typing for high and low values
<chrisseaton> sdelmore: you may forget about high and low, and end up writing a routine that thinks they're normal values
aaronmcada has joined #ruby
aaronmcada has quit [Client Quit]
<sdelmore> I'll play around with those approaches. Thanks for the input.
Guest11227 is now known as coyo
drager has quit [Changing host]
drager has joined #ruby
coyo has quit [Changing host]
coyo has joined #ruby
afreidah1 has quit [Ping timeout: 246 seconds]
jgoss has quit [Quit: Leaving]
jerius has quit [Ping timeout: 245 seconds]
r_rios has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
jameswlane has joined #ruby
aagdbl0 has joined #ruby
<certainty> data SensorValue = Low | Value Float | High deriving (Show,Eq,Ord)
<certainty> hmm late to the party
Codered999 has joined #ruby
* certainty &
<Codered999> Hey I was wondering if someone could lend me a hand with rubygems
aaronmcadam has quit [Ping timeout: 264 seconds]
dukz has quit [Ping timeout: 240 seconds]
r_rios has joined #ruby
djbender has quit [Quit: djbender]
kukyakya has quit [Remote host closed the connection]
djbender has joined #ruby
_justin has joined #ruby
benzrf is now known as benzrf|offline
rakm has joined #ruby
<sdelmore> Certainty: How do I interpret the line of code you posted? Does it read as "data SensorValue = Low OR Value Float OR High deriving(show, eq, ord)?
kirun has joined #ruby
<sdelmore> I don't really understand the deriving portion.
mr_red has joined #ruby
andy__ has quit [Remote host closed the connection]
brtdv has quit []
benzrf|offline is now known as benzrf
<chrisseaton> sdelmore: | is sum, not disjunction (so it means and, not or), and deriving just means make this methods automatically (a bit like attr_reader)
danijoo_ has quit [Quit: Leaving...]
andy__ has joined #ruby
<chrisseaton> sdelmore: but confusingly, or is probably the best way to think about it
danijoo has joined #ruby
<certainty> sdelmore: sorry, ignore that. It's haskell. I didn't mean to cause confusion
<sdelmore> Oh geez, that explains why I was completely lost on the syntax.
<certainty> :)
<benzrf> sdelmore: well, sum types seem like an or to people not versed in the math
Codered999 has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<sdelmore> I am not versed in math unfortunately.
mark_locklear has joined #ruby
<benzrf> u see, the idea is
carraroj has joined #ruby
simono is now known as simon-away
Angelous- is now known as Angelous
mjmac has quit [Quit: ZNC - http://znc.sourceforge.net]
xMopxShell has quit [Read error: Operation timed out]
stryek has joined #ruby
mjmac has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andy__ has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
terrellt_ has quit [Ping timeout: 252 seconds]
Xeago_ is now known as Xeago
mikepack has joined #ruby
Jon30 has joined #ruby
Jon30 has joined #ruby
sdwrage has joined #ruby
zcreative has joined #ruby
f0ster` has quit [Ping timeout: 250 seconds]
xMopxShell has joined #ruby
<Eiam> .
Kricir has quit [Ping timeout: 246 seconds]
Kricir has joined #ruby
RowdyChild|Away is now known as RowdyChildren
yfeldblum has joined #ruby
andy__ has joined #ruby
yfeldblum has quit [Read error: Connection reset by peer]
jlebrech has quit [Quit: Konversation terminated!]
yfeldblum has joined #ruby
benzrf is now known as benzrf|offline
deadlock has joined #ruby
davy_ has joined #ruby
codenapper has quit [Ping timeout: 252 seconds]
randomnick_ has joined #ruby
timonv has joined #ruby
cescalante is now known as ce_afk
iceden has joined #ruby
cocotton_ has quit [Quit: Leaving...]
ndrei has joined #ruby
afreidah1 has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
<shevy> Eiam why so sparse, let's add one
<shevy> ..
Hanmac1 has quit [Ping timeout: 246 seconds]
karmatr0n has quit [Read error: Connection reset by peer]
<certainty> shevy: there's only a limited amount of .
<certainty> it must not be wasted
<shevy> ...
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rh1n0 has joined #ruby
<certainty> don't you
codenapper has joined #ruby
ItSANgo has quit [Ping timeout: 240 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
<shevy> we could try for one day to not use any .
paulfm has joined #ruby
Es0teric has joined #ruby
kyle__ has quit [Remote host closed the connection]
diegoviola has quit [Quit: WeeChat 0.4.3]
<certainty> shevy: yes we could <dot>
s2013_ has joined #ruby
karmatr0n has joined #ruby
obs__ has quit [Quit: Konversation terminated!]
<slash_nick> <dot></dot>
<certainty> </dot> ... oh let's not get started :)
<shevy> omg
<shevy> It should rather be a <dot/>
<certainty> erm <dot /)
<certainty> no i just can't do it
<shevy> dont use a space
<shevy> it must not be wasted
<certainty> true!
<slash_nick> shevy: then how would I put my <dot/> inside his <dot></dot>
<shevy> you could use a dot instead of a space certainty :)
nisstyre has quit [Quit: WeeChat 0.4.3]
AlexRussia has quit [Remote host closed the connection]
einarj has joined #ruby
<shevy> slash_nick I was thinking of like the <br/> tag
<certainty> only on "let's not waste spaces day"
<slash_nick> do colons count as two dots?
<shevy> they count as a | with a break
AlexRussia has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
<shevy> | is worth like 3 dots
pdtpatr1ck has quit [Quit: leaving]
karmatr0n has joined #ruby
s2013 has quit [Ping timeout: 246 seconds]
papercode has joined #ruby
<certainty> what about ! and ?
<certainty> and ;
larissa has joined #ruby
<shevy> ? is weird
<shevy> ; is like two dots
mikepack has quit [Remote host closed the connection]
IcyDragon has joined #ruby
<certainty> now that's arbitary
karmatr0_ has joined #ruby
IceDragon has quit [Ping timeout: 246 seconds]
platzhirsch has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
badhatter has quit [Read error: Connection reset by peer]
<platzhirsch> phansch: it is :)
mikepack has joined #ruby
pdtpatr1ck has joined #ruby
chrisja has joined #ruby
pigzzcanfly has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
einarj has quit [Remote host closed the connection]
Hanmac has joined #ruby
mikepack has quit [Remote host closed the connection]
rylev has joined #ruby
mven_ has quit [Quit: Leaving]
<Eiam> hmm i can't see my chat window =/
Eiam has left #ruby ["╯°□°)╯︵ǝpouǝǝɹɟ"]
Eiam has joined #ruby
jlebrech has joined #ruby
<Eiam> there we go
AlSquire has quit [Quit: This computer has gone to sleep]
pigzzcanfly has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
pietr0 has joined #ruby
pietr0 has quit [Client Quit]
benzrf|offline is now known as benzrf
mven has joined #ruby
<benzrf> >tfw shitty internets
s2013_ is now known as s2013
hiall has quit [Quit: hiall]
pietr0 has joined #ruby
<benzrf> i certainly allayou have upgraded ur openssl and regenerated your keys
sambao21 has joined #ruby
rylev has quit [Ping timeout: 240 seconds]
UserNameInvalid has quit [Ping timeout: 240 seconds]
danshultz has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 240 seconds]
<benzrf> [ping]
Zackio has quit [Quit: ZNC - http://znc.in]
danshultz has joined #ruby
Zackio has joined #ruby
<certainty> benzrf: nah, i like the adrenalin rush. Let our hearts bleed some more
sigurding has joined #ruby
ndrei has joined #ruby
<benzrf> youre endangering us all u mad fool!!!
<platzhirsch> What?
<platzhirsch> I am just a software developer
<platzhirsch> what do I have to do
<crome> develop software
rylev has joined #ruby
<platzhirsch> I don't think that this will stop heart bleed
<platzhirsch> or are you an optimist?
sebastianb has quit [Quit: Lost terminal]
noop has joined #ruby
<crome> no, heartbleed is stopped by upgrading openssl to 1.0.1g
<crome> er
<crome> f
<benzrf> platzhirsch: u must upgrade ur openssl and regenerate a new key
<crome> as for how to do it, it all depends on stuff
<certainty> put some fluff around stuff, eventually it will vanish in a puff
sebastianb has joined #ruby
<crome> benzrf: you cant regenerate a new key, you can only regenerate something that is not new
mikepack has joined #ruby
francisfish has quit [Remote host closed the connection]
<crome> new things can only be generated
danshultz has quit [Ping timeout: 250 seconds]
niftylettuce_ has joined #ruby
afreidah1 has quit [Ping timeout: 240 seconds]
<wallerdev> you could say you regenerate it if you generated the last one and you want to generate something again
<wallerdev> so you're redoing the process of generating
<platzhirsch> benzrf: sudo apt update?
zorak has quit [Ping timeout: 255 seconds]
mikepack has quit [Remote host closed the connection]
<crome> wallerdev: hm
<benzrf> smart ass
combusean has joined #ruby
<benzrf> platzhirsch: sudo apt-get update
<benzrf> then upgrade
<benzrf> then reboot
mikepack has joined #ruby
<benzrf> platzhirsch: then delete your keys, and generate new ones
zorak has joined #ruby
<shevy> omg
chrisseaton has quit []
<shevy> debianfail
pskosinski has joined #ruby
<crome> shevy: ^5
<crome> :D
<platzhirsch> What keys
lupine has quit [Quit: ZNC - http://znc.in]
timonv has quit [Remote host closed the connection]
<shevy> the keys to your old house
<shevy> give them to someone else now that you will become british citizen!
djbender has quit [Quit: djbender]
terrellt has joined #ruby
<benzrf> platzhirsch: your public/private keypair
<benzrf> the one you use for ssh'ing
<benzrf> do u not use pubkey auth?
<certainty> i use telnet
<shevy> hehe
<wallerdev> lol
<shevy> we used to play MUDs via telnet in the old days
<certainty> not affected :)
lupine has joined #ruby
brian-kim has quit []
bilbo_swaggins has joined #ruby
* benzrf 's draw jawps
yxhuvud has quit [Remote host closed the connection]
dumdedum has quit [Ping timeout: 240 seconds]
<wallerdev> telnet is already vunlerable :p
djbender has joined #ruby
benzrf is now known as benzrf|offline
<certainty> sometime we tunnel through finger
rmill has quit [Changing host]
rmill has joined #ruby
benzrf|offline is now known as benzrf
sepp2k has joined #ruby
<certainty> you know, cover our tracks and stuff
<shevy> stop fingering your tunnel!
Vovko has joined #ruby
hooper has joined #ruby
<certainty> only if you don't look
ryanuber has left #ruby [#ruby]
mikepack has quit [Ping timeout: 240 seconds]
CreativeEmbassy has quit [Quit: FO SHO]
RowdyChildren is now known as RowdyChild|Away
<shevy> hey
<shevy> how would I know
moritzs has quit [Ping timeout: 240 seconds]
<certainty> also i could be fingerig you
<shevy> that's like asking for the sound of clapping with just one hand
<bilbo_swaggins> I think that's quantum mechanics
<certainty> wait no, you run a windows box
<shevy> but noone would be around able to listen to such a clap
<shevy> yeah bilbo_swaggins
<certainty> shroedingers tunnel
<benzrf> shevy you are a lewd old man
<shevy> quantum cat
<benzrf> bilbo_swaggins: have you covered ur shit yet
jason has joined #ruby
<shevy> benzrf I am kinda old yeah :(
<bilbo_swaggins> working-ish
yxhuvud has joined #ruby
<bilbo_swaggins> I need to quit this job
<shevy> benzrf go get a job
<bilbo_swaggins> so I can do actual work
jason is now known as Guest28248
<shevy> lol bilbo_swaggins
<bilbo_swaggins> hey benzrf want my job?
<shevy> no
<shevy> we'll get a young asian to do your job
<shevy> for half the cost
<bilbo_swaggins> I help put people out of work! :D
<shevy> you are too expensive bilbo_swaggins
<bilbo_swaggins> by automating data entry
<bilbo_swaggins> oh yeah with my untold fortunes
IcyDragon is now known as IceDragon
<shevy> ok so the union workers hate you as well
<bilbo_swaggins> this job exacerbates my misanthropy
Vovko has quit [Client Quit]
<shevy> you don't need no savings, go spend it all on things you never need to have in the first place!
<shevy> I think most jobs are like that
<shevy> benzrf, did you ever think about the jobs at starbucks?
<bilbo_swaggins> is programming actually a good career?
alvaro_o has joined #ruby
<certainty> you need savings but only on "save the h day". go riddle me this
<benzrf> bilbo_swaggins: have u upgraded ur openssl
<benzrf> and if not
<benzrf> what the hell is wrong with you
tonni has joined #ruby
afreidah1 has joined #ruby
<bilbo_swaggins> no I haven't
* benzrf shakes bilbo_swaggins around a bit
<bilbo_swaggins> I also played with fire today
<certainty> :)
<certainty> that's the spirit
<bilbo_swaggins> save the h?
Solnse has joined #ruby
CreativeEmbassy has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
fannye has quit [Remote host closed the connection]
<bilbo_swaggins> to be honest
<bilbo_swaggins> I changed my root password
<bilbo_swaggins> then forgot it
<bilbo_swaggins> don't do that high
<bilbo_swaggins> I'm gonna install manjaro
megaputer has joined #ruby
<benzrf> kek
<benzrf> just boot from a livecd & u can reset it in like 2 seconds
<benzrf> lol chmod lol
<bilbo_swaggins> chroot?
<benzrf> *chroot
<benzrf> u should have sudo anyway
<benzrf> just sudo passwd
<bilbo_swaggins> I also changed my user password
<bilbo_swaggins> to the same password
<bilbo_swaggins> that much is sure
<benzrf> bwahaha
<benzrf> chroot and change that too
<benzrf> o3o
<bilbo_swaggins> I specifcally codified it to memory
<bilbo_swaggins> but I codified it incorrectly
afex has joined #ruby
<shevy> bilbo_swaggins payment for the good programmers here is quite high compared to many other jobs (save for some jobs in the economy, like bankster or manager or controller with a couple years experience under their belt)
Kricir has quit [Remote host closed the connection]
agent_white has joined #ruby
* certainty giggles
<certainty> like a girl
<agent_white> Good afternoon
<certainty> moin
<crome> shevy: I think its pretty much the case in most of europe
badhatter has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
<bilbo_swaggins> but do you spend much time upset with your job?
<bilbo_swaggins> or with computers?
jerius_ has quit []
funktor has joined #ruby
<certainty> yeah
<certainty> with computers
<bilbo_swaggins> I want to learn to love them again
<certainty> i hate this industry
<bilbo_swaggins> I hate "IT" people
<shevy> hehe
<certainty> that's why i love shevy. He's a biologist
<bilbo_swaggins> the most incompetent people I work with are "Intelligent Analytical Systems Administrative Data Technician IV"
<shevy> I know that I hate computers myself
momomomomo has quit [Quit: momomomomo]
<shevy> but there is little way without them
davidz_ has joined #ruby
ascarter has joined #ruby
<certainty> back to the caves
<bilbo_swaggins> I like computer science
<bilbo_swaggins> I even like using computers for certain things
reset has joined #ruby
<agent_white> I do computer stuff sometimes
<certainty> like watching pr0n
<bilbo_swaggins> but there's a black-hearted demon within each of them
<shevy> I like only the creative part of programming and improving stuff
<bilbo_swaggins> yes
<certainty> call_with_cthulhu
<bilbo_swaggins> lol
<bilbo_swaggins> shevy what do you work on?
<shevy> bilbo_swaggins :(
<bilbo_swaggins> do people email you with support requests, but put screenshots in a word document instead of telling you the problem?
<shevy> I have to learn R for a new job with a lot of boring statistical and analysis crap
<bilbo_swaggins> stats really should be interesting
<shevy> thankfully no
<shevy> I hate getting email
luriv has joined #ruby
<wallerdev> R looks super interesting
<wallerdev> looks good for code golfing
<certainty> shevy: i bet. It's full of this utf8 thing :)
<shevy> certainty luckily no
stryek has quit [Quit: Leaving]
<certainty> no?
<shevy> certainty yep!
<certainty> strange world
kreisys has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
<bilbo_swaggins> hello world
UserNameInvalid has joined #ruby
<shevy> wallerdev there are some cool graphics to be done
mercwithamouth has joined #ruby
<shevy> wallerdev https://www.harding.edu/fmccown/r/ I like the ones in the middle down to the bottom
<shevy> if I could only do that with ruby
<certainty> yeah like a cat that swallowed a unicorn
carraroj has joined #ruby
kreisys has quit [Read error: Connection reset by peer]
kreisys_ has joined #ruby
<certainty> oh these kinds of graphics
<shevy> lol
funktor has quit [Remote host closed the connection]
<wallerdev> you can do anything in ruby :p
<shevy> I only know of gruff
funktor has joined #ruby
x1337807x has joined #ruby
<wallerdev> check out the system command, really useful
<shevy> huh
<shevy> is github phasing out rubygems?
<shevy> I mean
kreisys has joined #ruby
<shevy> is github making rubygems obsolete?
<certainty> phasing makes my head ache
carraroj has quit [Read error: Connection reset by peer]
<bilbo_swaggins> lol?
enebo has joined #ruby
Ziarkaen has quit [Ping timeout: 240 seconds]
zigomir has quit [Remote host closed the connection]
<certainty> phasing in lisp/scheme :)
ghr has joined #ruby
carraroj has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
<davidz_> svnhub is best hub
<certainty> cvshub
<bilbo_swaggins> tarhub
zigomir has joined #ruby
<crome> that area chart is kinda weird
<certainty> cathub
benzrf is now known as benzrf|offline
<shevy> crome it's lovely!
elaptics is now known as elaptics`away
<bilbo_swaggins> echohub
<shevy> but I think https://github.com/topfunky/gruff also has nice graphics for use with ruby
<crome> shevy: well, its colourful and it ha shapes
<crome> has
<shevy> perhaps I can convince them "hey, screw R, I will use ruby"
Macaveli has joined #ruby
<certainty> you need only the graphs?
<wallerdev> use the right tool for the job :p
blandflakes has joined #ruby
ce_afk is now known as cescalante
voglster has joined #ruby
gfunc has joined #ruby
spicerack has joined #ruby
Macaveli has quit [Remote host closed the connection]
kreisys_ has quit [Ping timeout: 240 seconds]
<certainty> shevy: also it's a great opportunity. You can dress like a pirate now. Whenever someone asks you what you're doin you can just turn around and say. "I program! Rrrrrrrrrrrr"
danshultz has joined #ruby
CaptainJet has joined #ruby
<certainty> damn i need to program R
rh1n0 has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
<wallerdev> …
<davidz_> What do you think Chuck Norris will do when the universe ends? Create another one?
funktor has quit [Ping timeout: 246 seconds]
awc737 has joined #ruby
<certainty> davidz_: the universe doesn't end unless chick norris has given it permission
maximski has quit []
<awc737> Hi, I can't tell by this read me if I need to install Ruby before omnibus?
<davidz_> certainty good point
ghr has quit [Ping timeout: 240 seconds]
danshult_ has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
<voglster> so i have been learning lots about tdd/bdd cucumber rspec etc... i have an idea for an app that I would like to write features and eventually specs for but I seem to have a mental block of how to go from my idea to features.. anyone have any suggestions on books/ blogs/ whatever to help me get a nice process together?
zigomir has quit [Ping timeout: 240 seconds]
lolmaus has joined #ruby
<certainty> awc737: i don't know, but i think you will notice quite quickly.
danshult_ has quit [Remote host closed the connection]
ktosiek has joined #ruby
heftig has joined #ruby
<bilbo_swaggins> friends dont let friends use cucumber
<certainty> +1
danshultz has joined #ruby
ylluminate has quit [Ping timeout: 240 seconds]
<voglster> bilbo_swaggins, why? :-)
danshultz has quit [Remote host closed the connection]
<bilbo_swaggins> unit testing makes sense
danshultz has joined #ruby
<bilbo_swaggins> cucumber, I'm not so sure
p8952 has quit [Ping timeout: 265 seconds]
p8952_ has joined #ruby
sigurding has quit [Quit: sigurding]
<bilbo_swaggins> but try it out and see for yourself
agarie has joined #ruby
<certainty> integration level testing, what cucumber is mostly used for, makes sense as well. The entire let's write executable specs in english is just not that good
<awc737> k thanks
p8952_ has quit [Client Quit]
jlebrech has quit [Quit: Konversation terminated!]
p8952 has joined #ruby
megaputer has left #ruby [#ruby]
<voglster> bilbo_swaggins, im trying to bridge the gap between idea and implementation and it feels like cuke its meant just for that
<certainty> it didn't work for cobol when non developers were to program and it doesn't work well now when business people are to write tests
<dorei> can someone help me understand the following?
<dorei> def initialize(make=nil, year=nil)
<dorei> self.year, self.make = year, make
<dorei> end
<joelteon> what's the question?
<dorei> what does that comma (,) do ?
<dorei> oops
<joelteon> oh that's multiple assignment
<dorei> silly me
<voglster> dorei, look up multiple assignment
<bilbo_swaggins> >> a, b == 1, 2; puts a; puts b
<eval-in> bilbo_swaggins => /tmp/execpad-1ce97ed0193f/source-1ce97ed0193f:2: syntax error, unexpected ==, expecting '=' ... (https://eval.in/134019)
<joelteon> it pretty much just reads exactly how you'd expect it to
<bilbo_swaggins> ah shit
<dorei> i though it was 3 statements seperated by commas :D
<joelteon> no sirree
<joelteon> can't separate by comma in ruby
aagdbl has quit [Quit: Connection closed for inactivity]
davy_ has joined #ruby
zigomir has joined #ruby
dfedde has joined #ruby
mikepack has joined #ruby
sepp2k1 has joined #ruby
zigomir has quit [Remote host closed the connection]
<certainty> benzrf|offline: i think dorei didn't upgrade his SSL!
Avahey_ has joined #ruby
* certainty summons the benzrf
cescalante is now known as ce_afk
<dorei> check your sites with http://filippo.io/Heartbleed/
<dorei> or other ppl sites :p
sepp2k has quit [Ping timeout: 240 seconds]
<bilbo_swaggins> "Uh-oh, something went wrong: dial tcp 127.0.0.1:443: connection refused"
<bilbo_swaggins> they're safe
lagweezle has left #ruby [#ruby]
davy_ has quit [Ping timeout: 240 seconds]
bilbo_swaggins has quit [Quit: Leaving]
olivier_bK has joined #ruby
jwest has quit [Quit: WeeChat 0.4.1]
mikepack has quit [Ping timeout: 240 seconds]
jandritsch has left #ruby [#ruby]
keeguon has joined #ruby
rylev has quit [Remote host closed the connection]
albedoa has joined #ruby
yfeldblum has joined #ruby
obscured has joined #ruby
mattp__ has joined #ruby
Liothen has joined #ruby
Liothen has quit [Changing host]
Liothen has joined #ruby
Liothen has quit [Excess Flood]
mattp_ has quit [Ping timeout: 252 seconds]
userx has joined #ruby
Xeago has quit [Remote host closed the connection]
keeguon has quit [Client Quit]
Liothen has joined #ruby
danshultz has quit [Remote host closed the connection]
funktor has joined #ruby
danshultz has joined #ruby
dukz has joined #ruby
danshultz has quit [Remote host closed the connection]
danshultz has joined #ruby
CreativeEmbassy has quit [Quit: FO SHO]
organmeat has quit [K-Lined]
fabrice31 has joined #ruby
alexju has quit [Ping timeout: 240 seconds]
mehlah has joined #ruby
paulfm has quit []
organmeat has joined #ruby
mary5030 has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
awc737_ has joined #ruby
organmeat has quit [K-Lined]
mary5030 has joined #ruby
danshultz has joined #ruby
dukz has quit [Ping timeout: 250 seconds]
ce_afk is now known as cescalante
paulfm has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
mjs2600 has quit [Remote host closed the connection]
danshultz has joined #ruby
alexju has joined #ruby
awc737 has quit [Ping timeout: 265 seconds]
awc737_ is now known as awc737
francisfish has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
sdwrage has joined #ruby
funktor has quit [Remote host closed the connection]
funktor has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
carraroj has quit [Quit: Konversation terminated!]
aagdbl0 has quit [Quit: Leaving]
rvraghav93 has quit [Ping timeout: 240 seconds]
agent_white has quit [Quit: leaving]
yano has quit [Quit: WeeChat, The Better IRC Client -- http://weechat.org/]
dyoko has quit [Ping timeout: 240 seconds]
karmatr0_ has quit [Remote host closed the connection]
Doppp has quit [Ping timeout: 264 seconds]
yano has joined #ruby
carraroj has joined #ruby
funktor has quit [Ping timeout: 246 seconds]
mary5030 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
MattStratton has joined #ruby
cescalante is now known as ce_afk
brisbin has quit [Quit: WeeChat 0.4.3]
blackmesa has joined #ruby
blackmes1 has quit [Ping timeout: 250 seconds]
brisbin has joined #ruby
livcd has joined #ruby
shashank_rs has quit [Ping timeout: 246 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mist_ has quit [Quit: restart]
shashank_rs has joined #ruby
Bumptious has quit [Remote host closed the connection]
Solnse has quit [Ping timeout: 240 seconds]
<livcd> how do i set varB after calling calc() ? https://ideone.com/gACDDo
reactormonk has left #ruby ["WeeChat 0.4.1"]
Bumptious has joined #ruby
<crome> um
rezzack has quit [Quit: Leaving.]
flori has quit [Read error: Operation timed out]
<toretore> varB = value
<livcd> but uhm...
yfeldblum has quit [Remote host closed the connection]
<toretore> what you want is varB = calc(...)
<toretore> and to return the result in calc
<toretore> er
<toretore> ok, i see what you're doing now
yfeldblum has joined #ruby
<toretore> you can't do that
<toretore> integers are immutable
<crome> he wants to assign B in the method
<crome> yeah
mrmist has joined #ruby
<toretore> `b += a` will return a thirf object, it will not change a nor b
ixti has joined #ruby
<toretore> third
sqwirl has joined #ruby
toastynerd has quit [Remote host closed the connection]
mrmist is now known as mist
<livcd> ok so how do i do that ? :X
mantas322 has left #ruby [#ruby]
<toretore> explain why first
vpretzel has quit [Ping timeout: 252 seconds]
Bumptious has quit [Ping timeout: 264 seconds]
combusean has quit [Ping timeout: 240 seconds]
<livcd> i want to set the value of A somewhere else and according to that value to increase the varB
Hamburglr has joined #ruby
<toretore> why?
jokke1 has quit [Quit: WeeChat 0.4.3]
Xeago has joined #ruby
flori has joined #ruby
<livcd> uhm why not
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
afex has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
georgerogers42 has joined #ruby
michael_lee has quit [Quit: Ex-Chat]
rvraghav93 has joined #ruby
mark_locklear has quit [Ping timeout: 246 seconds]
zorak has quit [Remote host closed the connection]
Kricir_ has joined #ruby
mark_locklear has joined #ruby
decoponio has quit [Quit: Leaving...]
mostlybadfly has quit [Quit: Connection closed for inactivity]
Es0teric has quit [Quit: Computer has gone to sleep.]
claymore has quit [Ping timeout: 265 seconds]
Kricir has quit [Ping timeout: 240 seconds]
combusean has joined #ruby
<livcd> toretore: can you help ?
claymore has joined #ruby
zorak has joined #ruby
georgerogers42 has quit [Quit: ChatZilla 0.9.90.1 [SeaMonkey 2.25/20140324174034]]
<certainty> livcd: you asked why not. Because it makes your programs hard to reason about. Acting at a distance like this calls for trouble
GodPuppet has quit [Write error: Broken pipe]
wallerdev has quit [Quit: wallerdev]
nbouscal has joined #ruby
ce_afk is now known as cescalante
awc737 has quit [Quit: awc737]
<shevy> livcd use @ivars instead and call the setter from the method that sets one var
aspires has quit []
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
mshadle has joined #ruby
paulfm has quit []
awc737 has joined #ruby
<mshadle> quick question - in a Gemfile, if i have ruby "2.1" should that be 2.1 only, or 2.1 "and newer" ? i get an error saying "Your Ruby version is 2.1.1, but your Gemfile specified 2.1"
rm_ has quit [Remote host closed the connection]
funktor has joined #ruby
toastynerd has joined #ruby
rm_ has joined #ruby
agarie has quit [Remote host closed the connection]
<apeiros> I'd expect it to mean 2.1 precisely
<toretore> livcd: if you want my help you have to be more forthcoming than that
rm__ has joined #ruby
<apeiros> if you want "and newer", I'd expect ">= 2.1"
sambao21 has joined #ruby
maximski has joined #ruby
RaptorJesus has quit [Ping timeout: 240 seconds]
maximski has quit [Max SendQ exceeded]
<prdx> How can I compress a string with ruby?
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skaflem has quit [Quit: Leaving]
<toretore> compress can mean many things
<mshadle> yeah then i get "Your Ruby version is 2.1.1, but your Gemfile specified >= 2.1"
<prdx> Is there like a gem for such stuffs? I mean like gzip
chrisseaton has joined #ruby
<toretore> expln btr
<prdx> or similar.
<toretore> yes, there is gzip
maximski has joined #ruby
<prdx> cool.
jackneill has quit [Remote host closed the connection]
<livcd> toretore: well uhm i just wanted to know how to do it
<livcd> that's it
nanashiRei has quit [Quit: It really works!]
<mshadle> i can't find examples of specifying the ruby version like a gem version. i tried wildcards, > < symbols, etc.
paulfm has joined #ruby
<toretore> it's in stdlib
mjs2600 has joined #ruby
zcreative has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<toretore> livcd: your question doesn't make any sense at all, that's why i'm asking for more information
aaronmcadam has joined #ruby
skulker_ has quit [Remote host closed the connection]
maximski has quit [Max SendQ exceeded]
rm_ has quit [Ping timeout: 240 seconds]
nanashiRei has joined #ruby
rvraghav93 has quit [Remote host closed the connection]
Hobogrammer has quit [Ping timeout: 240 seconds]
Bumptious has joined #ruby
<dideler|work> mshadle: it should be ruby '2.1.1', not ruby "2.1"
funktor has quit [Remote host closed the connection]
<mshadle> but what if i just want 2.1 "or newer"
enebo has quit [Quit: enebo]
funktor has joined #ruby
Kricir_ has quit [Read error: Connection reset by peer]
Kricir has joined #ruby
<dideler|work> mshadle: i'm not sure if you can specify ranges, but you can try ruby '>= 2.1'
<mshadle> nope :/ lame.
dapz has joined #ruby
mjs2600 has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
<SJr> How do I turn off taint checking
weaksauce has quit [Quit: Linkinus - http://linkinus.com]
mshadle has left #ruby [#ruby]
funktor_ has joined #ruby
<SJr> I'm getting a security error when my code runs on a cluster, expand_path (SecurityError)
<SJr> I would just like to turn this off entirely
funktor has quit [Read error: Connection reset by peer]
davy_ has joined #ruby
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skyjumper has quit [Quit: brb]
thumpba_ has joined #ruby
<certainty> SJr: what's the value of $SAFE you use?
<SJr> man ruby
<SJr> sorry
cbreeze has joined #ruby
<SJr> It isn't set
<certainty> i bet it is somewhere
djbender has quit [Quit: djbender]
Ziarkaen has joined #ruby
weaksauce has joined #ruby
<SJr> It doesn't seem like it
<SJr> right before the call to ruby, I have a printenv and I odn't see anything with a key SAFE
toddabrahm has quit [Quit: ZNC - http://znc.in]
<SJr> Unless you don't mean an environment variable.
<certainty> SJr: i didn't mean an environment variable :)
<certainty> $SAFE is a ruby global
<SJr> ah I wouldn't know where to look :(
<certainty> that is used to control "security"-related behavior of ruby
keeguon has joined #ruby
vpretzel has joined #ruby
davy_ has quit [Ping timeout: 240 seconds]
<davidz_> OpenSSL gonna get as much love as Java
<SJr> It doesn't seem to be in my ~/.rvm/rubies/ruby-1.9.3-p0/config file either
sdouglas has joined #ruby
<certainty> SJr: you could grep the code you're trying to run
thumpba_ has quit [Remote host closed the connection]
Megtasti_ has quit []
<SJr> You mean show you?
Hobogrammer has joined #ruby
<certainty> SJr: nope, use grep(1) to search for $SAFE
<davidz_> grep is a verb now
<SJr> I did that in that file
<davidz_> well it has been for a long time
<SJr> and it isn't there
<certainty> SJr: ok let's step back. What is the code you're trying to run that gives you that error?
elaptics`away is now known as elaptics
eka has quit [Quit: My computer has gone to sleep. ZZZzzz…]
lmickh has joined #ruby
djbender has joined #ruby
ixti has quit [Ping timeout: 245 seconds]
<SJr> It's code that runs another program (this is a scientific application). It only has this problem when I'm running via a cluster, if I run the script locally there is no problem. The code essentially just does in = ARGV[0] require File.exapend_path("#{in}/file.rb") and I get the error there.
SHyx0rmZ has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<SJr> This only seems to be a problem when I schedule the jobs to run on the cluster, locally I cannot reproduce it.
pigzzcanfly has joined #ruby
toddabrahm has joined #ruby
awc737 has quit [Quit: awc737]
CreativeEmbassy has joined #ruby
<certainty> SJr: how are programs run on your cluster? Using a standard ruby or some kind of wrapper?
davorb has quit [Quit: Connection closed for inactivity]
<workmad3> SJr: I'm guessing by the use of expand_path that the in file argument is a relative file path?
<SJr> Via a shell script.
<SJr> Yeah most likely
larissa has quit [Quit: Leaving]
<workmad3> SJr: have you compared the value of PWD between running on the cluster and running locally?
<SJr> Could I put something in this config file to turn this off.
MatthewsFace has quit [Quit: This computer has gone to sleep]
<SJr> The cwd should be the same
<workmad3> oh wait, sorry wrong issue...
RaptorJesus has joined #ruby
<workmad3> ignore me :)
livcd has quit [Quit: leaving]
gfunc has quit [Remote host closed the connection]
Kricir has quit [Ping timeout: 240 seconds]
Xeago has quit [Remote host closed the connection]
<SJr> So I have zero need for this safety checking
<SJr> how can I turn it off.
mjs2600 has joined #ruby
<certainty> SJr: the thing is that it isn't turned on usually. The program has to turn it on
noop has quit [Ping timeout: 240 seconds]
funktor_ has quit [Remote host closed the connection]
larsam has joined #ruby
funktor has joined #ruby
<apeiros> certainty: or via env
<workmad3> SJr: is $RUBY_OPTS set on the cluster
<workmad3> ?
<apeiros> at least I think there was a way to set it via env
<certainty> or via -T
<workmad3> apeiros: -T, so by extension via $RUBY_OPTS :)
<SJr> workmad3, doesn't seem to be an environment variable no
<certainty> apeiros: didn't know that was possible.
<certainty> SJr: what's the shebang line of the file that invokes the "runner" script?
<certainty> yeah or RUBY_OPTS
Xeago has joined #ruby
funktor_ has joined #ruby
Megtastique has joined #ruby
funktor has quit [Read error: Connection reset by peer]
<SJr> Not sure
enebo has joined #ruby
RowdyChild|Away is now known as RowdyChildren
<certainty> SJr: the first line of the file that does the require File.expand_path("#{in}/file.rb")
habanany has quit [Ping timeout: 264 seconds]
<SJr> oh there isn't one
<SJr> it's invoked via ruby
<certainty> ruby filename?
funktor_ has quit [Remote host closed the connection]
<SJr> ruby ../scripts/smt_generic_solver_wrapper.rb z3
<SJr> and then a bunch more stuff
<certainty> smt_generic_solver_wrapper.rb is the file that does the require?
<SJr> yeah
<certainty> and what is ruby?
<SJr> it's a specific ruby 1.9.3 that I beuilt some time ago
<certainty> may seem like a stupid question but you would be surprised
michaeldeol has joined #ruby
<certainty> ok well then it probably is RUBY_OPT then as workmad3 suggested
earth has joined #ruby
<SJr> Sorry I'm not a ruby dev, is there an equivilant of phpinfo() that just outputs everything of concern
mengu has joined #ruby
<SJr> I could then just diff that.
aspires has joined #ruby
<certainty> nah, that's not needed. I just wanted to know that the executable that happens to be found when you run the command ruby without a full path is indeed a ruby interpreter and not something else
<certainty> SJr: could you check if the RUBY_OPT environment variable is set?
<SJr> Yeah I did, it isn't set as far I can tell.
maletor has quit [Quit: Computer has gone to sleep.]
toastynerd has joined #ruby
carraroj has quit [Quit: Konversation terminated!]
jorts_ has joined #ruby
<certainty> SJr: what's the difference between running it local and in the cluster?
alex88 has quit [Quit: Leaving...]
cescalante is now known as ce_afk
nisstyre has joined #ruby
<SJr> A bunch of stuff that should not make any difference. The scheduler torque will dispatch it and execute it.
<SJr> The admins do weird things occasionally.
saarinen has quit [Quit: saarinen]
jorts has quit [Ping timeout: 246 seconds]
jorts_ is now known as jorts
maletor has joined #ruby
<certainty> hmm, i'm out of ideas then
<SJr> Hmmmm maybe this isn't a taint error at all.
<SJr> that was just someone elses suggestion
ndrei has quit [Ping timeout: 240 seconds]
<certainty> the type of the exception indicates this as well
_justin has quit [Quit: _justin]
<certainty> well you could try to pastet he whole file and the exact error message using the paste service of your choice. Maybe that helps
<SJr> How do I read the configuration settings in ruby?
Solnse has joined #ruby
ndrei has joined #ruby
<certainty> what do you mean by configuration settings?
<SJr> like how do I verify that SAFE is not zero at runtime
optiz0r has quit [Remote host closed the connection]
optiz0r has joined #ruby
<shevy> if $SAFE > 0 ?
<certainty> you can just run a program that prints the value of $SAFE to standard out
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<certainty> puts "SAFE is: #{$SAFE}"
<SJr> So a string this would work right STDERR.puts "SAFE #{SAFE}"
<SJr> okay
rezzack has joined #ruby
<shevy> he hates $
<certainty> i'm pretty sure it's >= 2 though
<shevy> they get chopped away in the transmission
spider-mario has quit [Read error: Connection reset by peer]
<SJr> Interesting SAFE is indeed 1
<certainty> yeah ok make sense as well
<certainty> it doesn't allow you to load files from a path represented by a tainted string
<SJr> so which ruby config file will it read from?
_justin has joined #ruby
Es0teric has joined #ruby
s2013_ has joined #ruby
flori has quit [Ping timeout: 250 seconds]
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flori has joined #ruby
bean has joined #ruby
cbreeze has quit [Quit: Textual IRC Client: www.textualapp.com]
spinx^ has quit [Quit: Quit]
afex has joined #ruby
zachallett has quit [Remote host closed the connection]
x1337807x has joined #ruby
<certainty> SJr: there are no standard config files like php.ini for php
<SJr> so ruby gives me no way of knowing where this value is coming from?
s2013 has quit [Ping timeout: 240 seconds]
albedoa has quit [Quit: Textual IRC Client: www.textualapp.com]
hooper has quit [Ping timeout: 250 seconds]
zachallett has joined #ruby
s2013 has joined #ruby
<certainty> normally this should be fairly obvious. It can be either set via the -T command-line switch which is either passed directly or indirectly via RUBY_OPT. If it's not that then it can be set only from within the loaded file(s)
<certainty> did I forget something?
Tuxified has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
Guest70378 has joined #ruby
<Guest70378> warning
<Guest70378> you may be watched
<Guest70378> do usa&israel use the internet(facebook,youtube,twitter, chat rooms ..ect)to collect informations,can we call that spying??
<Guest70378> do they record&analyse everything we do on the internet,,can they harm you using these informations??
<Guest70378> they ask for ur name,age,gender,occupation,location&sometimes political point of veiw?!?!
<Guest70378> تحذير قد تكون مراقب
<Guest70378> هل تستخدم امريكا و اسرائيل الانترنت بمواقعه (فيس بوك,يوتيوب,تويتر,غرف الشات....الخ) للتجسس؟
<Guest70378> warning you may be watched
<Guest70378> do usa&israel use the internet(facebook,youtube,twitter, chat rooms ..ect)to collect informations,can we call that spying??
<Guest70378> they ask for ur name,age,gender,occupation,location&sometimes political point of veiw?!?!
<Guest70378> do they record&analyse everything we do on the internet,,can they harm you using these informations??
<Guest70378> تحذير قد تكون مراقب
Guest70378 has quit [Excess Flood]
bean has quit [Client Quit]
blandflakes has quit [Quit: Page closed]
hooper has joined #ruby
Guest70378 has joined #ruby
Guest70378 was kicked from #ruby by apeiros [Guest70378]
<Solnse> $SAFE is a thread local variable, not a global variable.
<dorei> okie
<dorei> may i ask something silly?
<apeiros> no
<dorei> :(
papercode has quit [Quit: WeeChat 0.4.4-dev]
<apeiros> you're going to ask anyway, aren't you? :-p
<dorei> you broke my heart
<dorei> lol, i'll ask
rakm has quit [Quit: Connection closed for inactivity]
kirun has quit [Quit: Client exiting]
s2013_ has quit [Ping timeout: 246 seconds]
<SJr> This is literally the file that his having the problem, line 38 is where it tanks: http://pastie.org/9004558
<dorei> when someone is working as a ruby dev, how many lines of code is one supposed to be writing per day?
bean has joined #ruby
<SJr> Yeah I saw that Solnse
ndrei has joined #ruby
saarinen has joined #ruby
thrillagorilla has joined #ruby
Hanmac1 has joined #ruby
Xeago has quit [Remote host closed the connection]
papercode has joined #ruby
<Solnse> so how is it 'tanking' ?
einarj has joined #ruby
<sdelmore> In Ruby I am used to calling new for constructors, then just realized that sometimes I don't have to. For example Integer(5) instead of Integer.new(5). Why does that work? Is there some sort of default method that can be used as a constructor?
CreativeEmbassy has quit [Read error: Connection reset by peer]
<Solnse> dorei: sometimes I eliminate more code than I write. you can't value a dev in lines of code written.
<SJr> ../scripts/smt_generic_solver_wrapper.rb:38:in `expand_path': Insecure operation - expand_path (SecurityError)
<dorei> sdelmore: i guess there'a class method named () on Integer
<apeiros> dorei: I'm most happy on the days where I netto deleted lines
Hanmac has quit [Ping timeout: 240 seconds]
<apeiros> written lines per day is an utterly useless measure. sorry.
hooper has quit [Ping timeout: 250 seconds]
<apeiros> dorei, sdelmore: Integer(5) is Kernel#Integer() method
<dorei> i just want an estimate of what bosses / project managers expect
<apeiros> dorei, sdelmore: i.e., just like you can call puts("foo") (which is Kernel#puts), you can call Integer("foo") (which is Kernel#Integer)
<Solnse> they expect you to be not a dumbass
<apeiros> dorei: they expect you to finish your job. less lines is better.
<apeiros> dorei: as blaise pascal put it: "I'd have written a shorter letter, if only I'd had more time."
<Solnse> SJr: sorry, I don't know.
<dorei> I work as a freelance dev and i'm capable of overestimating time needed and convincing my customer about it so that I can be as lazy as i want :)
<sdelmore> Ahh….so I can't easily extend that line of work. Was just curious why I couldn't do something like MyRestrictedValue(5) instead of calling .new.
<Solnse> good luck with that
<apeiros> sdelmore: classes are open, so yes, you can do that
<apeiros> sdelmore: module Kernel; def MyRestrictedValue(val); …; end; module_function :MyRestrictedValue; end
<certainty> classes are open already? damn I'm late again
<apeiros> sdelmore: that module_function part is somewhat important. makes you break less foreign code.
<sdelmore> Feels dirty though since I see very few others do that. Awesome to see how it works though.
keeguon has quit [Quit: keeguon]
sqwirl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nisstyre has quit [Quit: bai]
<Solnse> metaprogramming?
niftylettuce_ has quit [Quit: Connection closed for inactivity]
cpruitt has quit [Quit: cpruitt]
rylev has joined #ruby
<sdelmore> Nah, was just trying to make a nice way to access a class for a limited range of values, 100-500, plus low and hi. Based on a tip I got here today I represented LOW and HI with Float::Infinity and -Float::Infinity but realized when people want to create them that is not a nice way to get a new one....
<sdelmore> So I added RestrictedValue.LO and RestrictedValue.HI to get the low and high values. Was just considering alternative methods.
cpruitt has joined #ruby
ce_afk is now known as cescalante
<workmad3> sdelmore: dorei had it wrong btw... there isn't a method called () on Integer... there's a method called Integer on Kernel
postmodern has joined #ruby
<workmad3> sdelmore: that performs integer conversions
karmatr0n has joined #ruby
<sdelmore> Yeah, I found it http://www.ruby-doc.org/core-2.1.1/Kernel.html thanks to apeiros.
wallerdev has joined #ruby
zachallett has quit [Remote host closed the connection]
<apeiros> workmad3: I beat you! finally!
s2013_ has joined #ruby
* apeiros jumps around and dances!
<workmad3> dammit, I'm being really slow tonight
<workmad3> apeiros: I just did similar in #rubyonrails :(
sdouglas has quit [Remote host closed the connection]
jorts has quit [Quit: jorts]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> current status: dissecting pry startup to figure out why on earth it takes 30s for me :-S
hooper has joined #ruby
zigomir has joined #ruby
<shevy> cuz you use an apple product
anonymuse has quit [Remote host closed the connection]
<shevy> good design takes a while to load
<certainty> apeiros: easy, just delete that line containing sleep 30
s2013 has quit [Ping timeout: 240 seconds]
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> lol that's even better
<apeiros> certainty: need to find that first
<workmad3> apeiros: because you have a lot of gems installed and pry scans all gems on startup looking for pry plugins?
bilbo_swaggins has joined #ruby
<certainty> it does?
<workmad3> yup
<apeiros> workmad3: nope
<apeiros> I have more gems in 1.9, far more gems
pu22l3r_ has quit [Ping timeout: 240 seconds]
<apeiros> and scanning a couple of 100 gems shouldn't take that long tbh
mrjensen has joined #ruby
_justin has quit [Quit: _justin]
<certainty> strace to the rescue
jorts has joined #ruby
<apeiros> byebug.rb is the culprit
ktun has joined #ruby
<workmad3> apeiros: what's it doing?
<certainty> say bye to byebug
hooper has quit [Ping timeout: 250 seconds]
cj3kim has joined #ruby
<apeiros> pry-byebug is a debugger for pry
<apeiros> successor to pry-debugger
<workmad3> apeiros: I know what it *is*
<apeiros> ah
<apeiros> well, working on it
<workmad3> apeiros: I was wondering what it was doing that caused a 30s startup ;)
<apeiros> all I can tell is that between module Byebug and it's `end` clause, something happens which takes 30s
<apeiros> this looks suspicious: IGNORED_FILES = Dir.glob('**/*.rb').map { |f| File.expand_path(f) }
<apeiros> I mean that's globbing all files from pwd
<apeiros> seems not nice…
ktun has quit [Client Quit]
<apeiros> yepp, that's it
<certainty> there's your sleep 61/2
ktun has joined #ruby
<workmad3> certainty: 61.fdiv(2) ftw!
combusean has quit [Ping timeout: 250 seconds]
<certainty> that will bring me into the land of IEEE
<certainty> i try to avoid it. Team Integer, baby
centrx has joined #ruby
<bilbo_swaggins> countable infinities 4 LYF
<apeiros> `cd ~; mkdir tmppry; cd tmppry; pry` # -> and pry starts up in 1s
<certainty> Float::NAN / 0
<apeiros> so indeed certainty, bye byebug
aaronmcadam has quit [Quit: Leaving...]
combusean has joined #ruby
ktun has quit [Client Quit]
<certainty> waves good bye
<workmad3> bilbo_swaggins: thinking about it, I think IEEE floats are a countable infinity ;)
<apeiros> lets see whether 2.7.0 is better than 2.6.0 in that regard…
mengu has quit [Remote host closed the connection]
<bilbo_swaggins> god damn it you're right
<bilbo_swaggins> by golly I reckon
mr_snowf1ake has joined #ruby
relix has joined #ruby
obscured has quit [Quit: leaving]
<apeiros> that glob got fixed in byebug 2.7 as it seems
Seldan has joined #ruby
<certainty> apeiros: does it use that list to check if a file is in it? Strange approach then
bilbo_swaggins has quit [Remote host closed the connection]
<apeiros> certainty: it excludes its own files
<apeiros> it just did it utterly wrong in 2.6
<certainty> indeed
<apeiros> should also introduce the author to Set
davy_ has joined #ruby
mark_locklear has quit [Ping timeout: 240 seconds]
funktor has joined #ruby
soulcake has quit [Read error: Connection reset by peer]
aaronmcadam has joined #ruby
soulcake has joined #ruby
chrisseaton has quit [Remote host closed the connection]
werdnativ has quit [Quit: werdnativ]
fabrice31 has joined #ruby
jxf has quit [Ping timeout: 240 seconds]
professor_soap has joined #ruby
davy_ has quit [Ping timeout: 246 seconds]
phansch has quit [Quit: WeeChat 0.4.2]
rezzack has quit [Quit: Leaving.]
<SJr> Hmmmm okay I'm back with some subtle differences
awc737 has joined #ruby
chrisseaton has joined #ruby
<SJr> If I launch an interactive job on the cluster (get a shell), if that shell is /bin/sh then ruby -T0 ... still has a safe level of 1
selite has joined #ruby
<professor_soap> Hey, anyone seen any "heartbleed script" in ruby? I just wanna understand the attack possibility from a code perspective is that makes sense.
p8952 has quit [Ping timeout: 246 seconds]
<selite> Can we like determine the exact URL of the page by the parameters?
rezzack has joined #ruby
mark_locklear has joined #ruby
<selite> I'm a little bit confused by the action and controllers.
shashank_rs has quit [Read error: Connection reset by peer]
papercode has quit [Quit: WeeChat 0.4.3]
fabrice31 has quit [Ping timeout: 240 seconds]
<workmad3> professor_soap: I can give you a Go version: https://github.com/FiloSottile/Heartbleed
<apeiros> selite: are you talking about rails? if so, #rubyonrails is more appropriate
<workmad3> professor_soap: and http://filippo.io/Heartbleed/
werdnativ has joined #ruby
sailias has quit [Quit: Leaving.]
papercode has joined #ruby
kayloos has joined #ruby
selite has quit [Client Quit]
saarinen has quit [Ping timeout: 250 seconds]
tommyblue has quit [Quit: Coyote finally caught me]
jwest has joined #ruby
fijimunkii has joined #ruby
<professor_soap> workmad3: Hmm thx, that's something.
ndrei has quit [Ping timeout: 250 seconds]
FxK has joined #ruby
professor_soap has quit []
<havenwood> package manager update took care of it for me since ruby-install isn't affected ;)
fijimunkii has quit [Client Quit]
sdouglas has joined #ruby
<havenwood> ruby-build users update your vulnerable ruby-build if you haven't already!
<workmad3> havenwood: I needed to bounce nginx
sailias has joined #ruby
<workmad3> havenwood: after updating
<havenwood> workmad3: ah yeah, ditto
<havenwood> workmad3: good point
ndrei has joined #ruby
dyreshark has joined #ruby
organmeat has joined #ruby
arubincloud has quit [Excess Flood]
<workmad3> havenwood: I haven't worried about my rubies overly much, as I don't have anything from them on an open port
arubincloud has joined #ruby
Guest28248 has quit [Remote host closed the connection]
cj3kim has quit [Remote host closed the connection]
jason___ has joined #ruby
<certainty> c'mon! they already have your keys :)
<certainty> or at least they have access to the one key you trust
<workmad3> certainty: don't think so... all the system openssl stuff on my mac is openssl 0.9.8 ;)
paulfm has quit []
<workmad3> certainty: so my SSH cert should be safe from that at least
<certainty> workmad3: yeah, but that doesn't help if the damn CA gives away the credentials because they must
jhass is now known as jhass|off
sdouglas has quit [Ping timeout: 240 seconds]
funburn has joined #ruby
<workmad3> certainty: no... that's the job of my elliptic curve diffie-helmann key exchange algorithm, right? :P
alexju has quit [Remote host closed the connection]
<chrisseaton> What does it mean when a block takes parameters |a, | - what does the trailing comma mean? (difficult to search for this)
rainmanjam has joined #ruby
agarie has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mrjensen has quit [Remote host closed the connection]
momomomomo has joined #ruby
jorts has quit [Ping timeout: 250 seconds]
<workmad3> certainty: although I am slightly concerned about that as if I try to change the curve in use then I break a lot of browsers, so I could be using an NSA-compromised curve :(
mrjensen has joined #ruby
jason___ has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Ping timeout: 246 seconds]
sdouglas has joined #ruby
<certainty> we no that vendors were "forced" to promote unsafe curves
alexju has joined #ruby
<workmad3> certainty: 'forced' == 'cash incentives'?
<SJr> Hmmmm
werdnativ has quit [Quit: werdnativ]
<SJr> why do I get this error when running ruby -T0 : ruby: no program input from stdin allowed while running setgid (SecurityError)
sambao21 has joined #ruby
p8952 has joined #ruby
kitak_ has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
kitak_ has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
havenwood has quit []
mjs2600 has quit [Remote host closed the connection]
sambao21 has quit [Client Quit]
<certainty> workmad3: yeah that's one way. I wouldn't be surpsrised if they found other ways too
ItSANgo has joined #ruby
werdnativ has joined #ruby
jorts has joined #ruby
mrjensen has quit [Ping timeout: 250 seconds]
ndrei has quit [Ping timeout: 250 seconds]
sdouglas has quit [Ping timeout: 240 seconds]
Shidash has joined #ruby
djbender has quit [Quit: djbender]
sambao21 has joined #ruby
<SJr> Hmmmm I figured it out
thrillagorilla has quit []
<SJr> something in ruby had a setgid bit set on it, and when that's true ruby defaults the taint level to 1 apparently if it's in use.
<SJr> that's really annoying
jorts has quit [Quit: jorts]
SCommette has joined #ruby
Avahey_ has quit [Quit: Connection closed for inactivity]
Royalb15_1 has joined #ruby
jorts has joined #ruby
Royalb15 has quit [Ping timeout: 246 seconds]
germanstudent has quit [Quit: raus]
nbouscal has quit [Quit: Computer has commenced electric sheep tracking protocol.]
pigzzcanfly has quit []
aspires has quit []
Adran has quit [Remote host closed the connection]
treehug88 has quit [Ping timeout: 265 seconds]
alyi has joined #ruby
Adran has joined #ruby
cescalante is now known as ce_afk
afex has quit [Ping timeout: 240 seconds]
ce_afk is now known as cescalante
testcore has quit [Remote host closed the connection]
testcore has joined #ruby
Adran has quit [Remote host closed the connection]
einarj has quit [Remote host closed the connection]
mark_locklear has quit [Ping timeout: 240 seconds]
<platzhirsch> /j #cyanogenmod
<platzhirsch> /j #cyanogenmod
<platzhirsch> sorry
einarj has joined #ruby
<centrx> asshole
saarinen has joined #ruby
aspires has joined #ruby
<platzhirsch> centrx: I am from east Berlin, now take the crap
kreisys has quit [Quit: Computer has gone to sleep.]
<xybre> centrx: minswan prick ;)
* platzhirsch stomps on centrx
saarinen has quit [Client Quit]
endash has quit [Quit: endash]
endash_ is now known as endash
Adran has joined #ruby
hiall has joined #ruby
saarinen has joined #ruby
nisstyre has joined #ruby
cj3kim has joined #ruby
jespada has quit [Quit: Leaving]
cj3kim has quit [Remote host closed the connection]
einarj has quit [Ping timeout: 246 seconds]
jxf has joined #ruby
evenix has quit [Ping timeout: 246 seconds]
aaronmcadam has quit [Quit: Leaving...]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
ItSANgo has quit [Quit: Leaving...]
jason___ has joined #ruby
Nukepuppy has quit [Ping timeout: 255 seconds]
luriv has quit [Ping timeout: 250 seconds]
cj3kim_ has joined #ruby
Xeago has joined #ruby
sdouglas has joined #ruby
cj3kim_ has quit [Remote host closed the connection]
r_rios has quit [Ping timeout: 246 seconds]
UserNameInvalid has quit [Quit: Leaving]
cj3kim has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
spicerack has joined #ruby
jason___ has quit [Ping timeout: 250 seconds]
pskosinski has joined #ruby
Ziarkaen has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 240 seconds]
redondos has quit [Changing host]
redondos has joined #ruby
nfk has quit [Quit: yawn]
dstynchula has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 252 seconds]
jrhe has joined #ruby
mdpatrick has quit [Ping timeout: 240 seconds]
spicerack has quit [Client Quit]
dstynchula has joined #ruby
olivier_bK has joined #ruby
nilsove has quit [Ping timeout: 240 seconds]
arubincloud has quit []
crystal77 has joined #ruby
spicerack has joined #ruby
<shevy> platzhirsch when will you be in the UK?
<platzhirsch> May
<platzhirsch> I start 14th
<platzhirsch> damn, I should have kept that a secret
funktor has quit [Remote host closed the connection]
<shevy> no
<shevy> that was the fake time
<shevy> when will you start for real?
<platzhirsch> May
<platzhirsch> just May
<shevy> ...
<shevy> hmm
funktor has joined #ruby
funburn has quit [Quit: funburn]
Es0teric has quit [Quit: Computer has gone to sleep.]
pskosinski has quit [Remote host closed the connection]
nilsove has joined #ruby
funburn has joined #ruby
alyi has quit [Remote host closed the connection]
davy_ has joined #ruby
pskosinski has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ktosiek has quit [Ping timeout: 240 seconds]
elaptics is now known as elaptics`away
codenapper has quit [Quit: codenapper]
cescalante is now known as ce_afk
funburn has quit [Client Quit]
bluehavana has quit [Quit: Connection closed for inactivity]
<platzhirsch> Still have to terminate so many contracts and leases
<platzhirsch> get rid of stuff in my apartment
keeguon has joined #ruby
funktor has quit [Ping timeout: 246 seconds]
zigomir has quit [Remote host closed the connection]
ce_afk is now known as cescalante
davy_ has quit [Ping timeout: 240 seconds]
mercwithamouth has quit [Ping timeout: 240 seconds]
kayloos has quit [Remote host closed the connection]
SJr has quit [Ping timeout: 265 seconds]
doodlehaus has quit [Remote host closed the connection]
afreidah1 has quit [Ping timeout: 240 seconds]
mrmargolis has quit [Remote host closed the connection]
BlakeRG has joined #ruby
cj3kim has quit [Remote host closed the connection]
<BlakeRG> is there a way to do something like this in ruby?: :correct_answer => return 1 if row[num] == row[7]
andy__ has quit [Read error: Connection reset by peer]
cj3kim has joined #ruby
<centrx> BlakeRG, remove the return
<centrx> BlakeRG, 1 if returns 1 if
nateberkopec has quit [Quit: Leaving...]
<centrx> BlakeRG, return returns from the method
<davidz_> why do all C developers insist on using cryptic names
<davidz_> look at that garbage
mdpatrick has joined #ruby
cj3kim has quit [Remote host closed the connection]
<centrx> That is how it used to be, before Ruby
<BlakeRG> think this works.... :correct_answer => (1 if row[num] == row[7])
<centrx> yes
<BlakeRG> can't stick an else in there too?
<centrx> BlakeRG, Use the ternary operator
<centrx> BlakeRG, That makes more sense in this usage anyway
cj3kim has joined #ruby
<centrx> BlakeRG, row[num] == row[7] ? 1 : 0
<BlakeRG> k
<BlakeRG> :P
<centrx> if ? then : else
Es0teric has joined #ruby
linojon has quit [Quit: linojon]
<BlakeRG> awesome
<BlakeRG> thanks centrx
<BlakeRG> ruby so is handy :)
linojon has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RyanV has joined #ruby
iliketurtles has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Avahey_ has joined #ruby
meatherly has quit [Remote host closed the connection]
garndt has quit [Quit: Connection closed for inactivity]
meatherly has joined #ruby
kloeri has quit [Quit: leaving]
<crome> I dont see the tests in that PR :(
kloeri has joined #ruby
mr_snowf1ake has quit [Ping timeout: 250 seconds]
sambao21 has joined #ruby
funktor has joined #ruby
schmidt has quit [Quit: WeeChat 0.4.2]
bklane has joined #ruby
freerobby1 has quit [Ping timeout: 240 seconds]
chrisseaton has quit []
cj3kim has quit [Remote host closed the connection]
chris_thomson has joined #ruby
meatherly has quit [Ping timeout: 246 seconds]
maximski has joined #ruby
Kelet has joined #ruby
jobewan has quit [Ping timeout: 255 seconds]
<Kelet> Hi, does anyone know where there are precompiled binaries for Ruby 2.1.1 for Windows?
ckinni has joined #ruby
badhatter has quit [Quit: Leaving]
jrhorn424 is now known as zz_jrhorn424
freerobby1 has joined #ruby
pskosinski has quit [Quit: Til rivido Idisti!]
klaut has quit [Remote host closed the connection]
<crome> last time I checked I couldnt find any
<Kelet> Darn, that's a shame. Seems like someone on the internet would've compiled it and packaged it for the rest of the internet users on Windows by now.
<Kelet> Ah well.
afex has joined #ruby
maximski has quit [Ping timeout: 240 seconds]
<wallerdev> i dont think anyone on windows actually uses ruby
andy__ has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zorak has quit [Read error: Connection reset by peer]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
germanstudent has joined #ruby
habanany has joined #ruby
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Kelet> I don't think there's anything wrong with Ruby on windows at all really.
x1337807x has joined #ruby
Vovko has joined #ruby
<Kelet> The ecosystem here seems so far ingrained into web-based development which has a few gems that don't easily work on Windows because you have to install a devkit
Vovko has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 0.4.3]
<Kelet> I don't know of any actual outstanding issues with *Ruby* and Windows, but maybe I'm missing something
joonty_ has quit [Ping timeout: 246 seconds]
taf2 has quit [Quit: taf2]
claymore has quit [Quit: Leaving]
kreisys has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
sailias has quit [Ping timeout: 250 seconds]
karmatr0n has quit [Remote host closed the connection]
sski has joined #ruby
charliesome has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ItSANgo has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jameswlane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
narcan has joined #ruby
Kelet has left #ruby [#ruby]
DrShoggoth has quit [Quit: Leaving]
dtcrshr has quit [Quit: Saindo]
kate_r has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
poguez_ has joined #ruby
Celm has quit [Remote host closed the connection]
mary5030 has joined #ruby
enebo has quit [Ping timeout: 240 seconds]
randomnick_ has quit [Quit: Leaving]
r_rios has joined #ruby
freerobby1 has quit [Quit: Leaving.]
hooper has joined #ruby
bufferloss has joined #ruby
gregf has joined #ruby
funktor has quit []
rudisimo has quit []
jlast has quit [Remote host closed the connection]
chrisseaton has joined #ruby
nateberkopec has joined #ruby
cz20xx has joined #ruby
dapz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Celm has joined #ruby
<voglster> im looking for a bored english speaking autodidact to pair with... i have some side projects as ideas... or open source projects... or anything else... anyone have suggestions on where to find pair programming partners?
yubrew_ has joined #ruby
lrocksmashtime has joined #ruby
lrocksmashtime has left #ruby ["Leaving"]
<voglster> looking to practice tdd/bdd... tmux/vim... ruby and rails...
<davidz_> thats a good idea for a website
<davidz_> eharmony but for programmerse
<voglster> true.. wanna make it with me :-)
simon-away has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<davidz_> I'm taken brother :P
keeguon has quit [Quit: keeguon]
<voglster> oh well worth a shot hehe
* davidz_ hugs his 1:1 poster of hatsune miku
<davidz_> jk
yubrew has quit [Ping timeout: 255 seconds]
phutchins has quit [Ping timeout: 240 seconds]
alexju has quit [Remote host closed the connection]
<voglster> hmmm you think rharmony domain is taken?
aspires has quit []
cj3kim has joined #ruby
aspires has joined #ruby
deric_skibotn has joined #ruby
havenwood has joined #ruby
fella5s has quit [Ping timeout: 265 seconds]
<hooper> voglster: do you have any project ideas?
fabrice31 has joined #ruby
olivier_bK has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
dr0ff has joined #ruby
Stalkr_ has joined #ruby
SCommette has quit [Quit: SCommette]
<Stalkr_> What's the correct way to assert_equal two hash objects?
chris_thomson has quit [Quit: Zzz...]
vasilakisFiL has joined #ruby
<vasilakisFiL> hi.. I have this tiny code here http://pastie.org/9005179 but it hangs... can anyone help me ?
nisstyre has quit [Quit: WeeChat 0.4.3]
fabrice31 has quit [Ping timeout: 240 seconds]
<vasilakisFiL> even if I remove this line ( and uncomment the rest) it hangs on the first that uses the gsub
chris_thomson has joined #ruby
aspires has quit []
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
workmad3 has joined #ruby
mercwithamouth has joined #ruby
s2013_ has quit [Quit: Leaving]
fella5s has joined #ruby
aspires has joined #ruby
davy_ has joined #ruby
<combusean> anyone know datamapper in here really well?
VTLob has quit [Quit: VTLob]
pu22l3r has joined #ruby
SCommette has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<centrx> Datamapper is old
SCommette has quit [Client Quit]
tchebb has quit [Ping timeout: 255 seconds]
jxf has quit [Ping timeout: 240 seconds]
<voglster> hooper, yes.. but may take some text to explain... can i pm you?
<voglster> hmmm #pairwithme on twitter looks promising for finding pairing partners too
<postmodern> combusean, i do
yfeldblum has quit [Ping timeout: 240 seconds]
<combusean> postmodern, would you have any idea why datamapper insists on connecting to eth0 and can't even display a refusal message properly despite my giving it a connection string?
davy_ has quit [Ping timeout: 240 seconds]
unknown007 has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Shidash has quit [Ping timeout: 240 seconds]
tchebb has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
kiki_lamb has quit [Quit: leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdwrage has joined #ruby
kiki_lamb has joined #ruby
alyi has joined #ruby
zachallett has joined #ruby
zorak has joined #ruby
<bufferloss> do I need to install the regular SDL before I can use rubysdl ?
george2 has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
matcouto has joined #ruby
Dysruption has joined #ruby
aspires_ has joined #ruby
aspires has quit [Read error: Connection reset by peer]
<centrx> bufferloss, probably
<centrx> bufferloss, plus the dev/header files probably too
<bufferloss> yeah, finding docs on exactly what is needed is proving to be difficult
andy__ has quit [Remote host closed the connection]
<bufferloss> I’d rather use ruby for this project, but python seems like it has better/native integration with SDL than ruby does at the moment
ikaros has quit [Quit: Ex-Chat]
<centrx> There should be some hints when you install the rubysdl gem
<bufferloss> trying to teach noobs and they’re getting confused because of the python “indent as syntax” thing
<bufferloss> centrx: unfortunately not a whole lot of hints
andy__ has joined #ruby
<bufferloss> it failed and listed the CLI flags and that was it
<centrx> Post a gist of complete error message
<centrx> /backtrace
michaeldeol has joined #ruby
tjr9898 has joined #ruby
cover has quit [Remote host closed the connection]
fbernier has quit [Read error: Connection reset by peer]
Bumptious has quit [Ping timeout: 264 seconds]
jamto11 has quit [Remote host closed the connection]
funburn has joined #ruby
<centrx> bufferloss, Okay, so it says: Could not create Makefile due to some reason, probably lack of
<centrx> necessary libraries and/or headers.
<centrx> bufferloss, extconf.rb:8:in ``': No such file or directory - sdl-config --cflags (Errno::ENOENT)
alyi has quit [Ping timeout: 240 seconds]
LostDatagram has quit [Quit: Bye :P - znc.in]
andy__ has quit [Ping timeout: 240 seconds]
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
<centrx> bufferloss, So you are missing a binary called sdl-config
LostDatagram has joined #ruby
LostDatagram has quit [Excess Flood]
DarthGandalf has quit [Read error: Connection reset by peer]
LostDatagram has joined #ruby
<centrx> bufferloss, Find the package for your OS distribution that installs sdl-config
andy__ has joined #ruby
<bufferloss> hmm, yeah not sure, I guess I’ll need to compile/install from source to get that
aspiers has quit [Ping timeout: 265 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<vasilakisFiL> hi.. I have this tiny code here http://pastie.org/9005179 but it hangs... can anyone help me ?
cpruitt has quit [Quit: cpruitt]
pu22l3r has quit [Remote host closed the connection]
jxf has joined #ruby
DarthGandalf has joined #ruby
narcan has joined #ruby
yfeldblum has quit [Remote host closed the connection]
zchrykng-work has quit [Quit: Leaving]
rylev has quit [Remote host closed the connection]
danijoo has quit [Read error: Connection reset by peer]
evenix has joined #ruby
danijoo has joined #ruby
f0ster has joined #ruby
f0ster has quit [Changing host]
f0ster has joined #ruby
x1337807x has joined #ruby
yfeldblum has joined #ruby
lmickh has quit [Remote host closed the connection]
bklane has quit [Quit: Leaving...]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
narcan has joined #ruby
saarinen has quit [Quit: saarinen]
saarinen has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
mdpatrick has quit [Ping timeout: 240 seconds]
mdpatrick has joined #ruby
<hooper> ooh, good idea.. it's better to start off with familiar settings before abandoning screen entirely
<bufferloss> centrx: well I just installed the regular SDL from source, i.e. ./configure && make && sudo make install
<bufferloss> but still the same error about non-existent sdl-config
r_rios has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 240 seconds]
Stalkr_ has quit [Quit: Leaving...]
aspiers has joined #ruby
dblessing has quit [Quit: dblessing]
mdpatrick_ has joined #ruby
mdpatrick has quit [Ping timeout: 240 seconds]
<kenichi> my ruby's openssl.so links to my new libssl and libcrypto SOs, but still says 1.0.1f in OpenSSL::OPENSSL_VERSION ...
evenix has quit [Remote host closed the connection]
<kenichi> i can see that same thing in `strings openssl.so` so my theory is that it got shoved in there when ruby was built
<kenichi> and since it's dynamically linked to the new lib, i *should* be ok... but if anyone could confirm this for me, that would be RAD.
f0ster has quit [Ping timeout: 250 seconds]
pel_daniel has left #ruby [#ruby]
jgrevich_ has joined #ruby
bricker has quit [Quit: leaving]
cpruitt has joined #ruby
voglster has quit [Ping timeout: 250 seconds]
BlakeRG has quit []
alexju has joined #ruby
alyi has joined #ruby
Tuxified has quit [Ping timeout: 250 seconds]
MindfulMonk has quit [Quit: Have fun]
MindfulMonk has joined #ruby
<crome> kenichi: Im sure its the case since my ruby says 1.0.1e and I was using 1.0.1f before upgrading
<Nowaker> kenichi: maybe just run some ssl server and test it against heartbleed and you know if its ok or not
combusean has quit [Ping timeout: 240 seconds]
<kenichi> crome: yeah, thanks
hooper has quit [Ping timeout: 250 seconds]
kitak_ has quit [Remote host closed the connection]
<kenichi> Nowaker: do you know of a heartbleed test server? all i can find are test clients
freerobby has joined #ruby
RyanV has quit [Quit: Computer has gone to sleep.]
alyi has quit [Ping timeout: 250 seconds]
WillAmes has joined #ruby
Nukepuppy has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has quit [Ping timeout: 246 seconds]
Geniack has quit [Disconnected by services]
Geniack_ has joined #ruby
SCommette has joined #ruby
bufferloss has quit [Quit: bufferloss]
saarinen has quit [Quit: saarinen]
<kenichi> that's a test client. i've got ruby workers that make https requests to potentially malicious servers... since this apparently goes both ways
mjuszczak has quit [Remote host closed the connection]
Nukepuppy has quit [Ping timeout: 250 seconds]
<davidz_> hm
<davidz_> kenichi if you don't manage the requests you make, you're just gonna have to trust em in the end anyway dont you?
habanany has quit [Quit: Leaving.]
sdouglas has quit [Remote host closed the connection]
<kenichi> davidz_: true dat
mercwithamouth has quit [Ping timeout: 240 seconds]
<kenichi> Nowaker: i'm reparsing your words and do you mean create a OpenSSL::SSL::SSLServer and then use a heartbleed test client against it?
davy has joined #ruby
Kricir has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
meatherly has joined #ruby
jeregrine has quit [Quit: Connection closed for inactivity]
toastynerd has quit [Remote host closed the connection]
mdpatrick_ has quit [Remote host closed the connection]
defunct_process has quit [Read error: Connection reset by peer]
werdnativ has quit [Ping timeout: 240 seconds]
andrewlio has quit [Quit: Leaving.]
danijoo has quit [Remote host closed the connection]
enebo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
davy has quit [Ping timeout: 250 seconds]
yfeldblum has joined #ruby
awc737 has quit [Quit: awc737]
tcstar has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
saarinen has joined #ruby
<Nowaker> kenichi: i am not familiar with openssl in ruby but you just want to start an ssl server from ruby and test it against the client
cj3kim has quit [Read error: Connection reset by peer]
<kenichi> Nowaker: yeah, thanks, i think that's a good test
x1337807x has quit [Client Quit]
cj3kim has joined #ruby
jason_ has joined #ruby
lkba has joined #ruby
ocke has joined #ruby
<ocke> Hey ppl
momomomomo has quit [Quit: momomomomo]
tcstar has joined #ruby
predator217 has joined #ruby
aspires_ has quit []
<ocke> How come some_function('arg1', 'arg2', arg3:'value) worked on 1 ruby install, but my other installcomplains, and wants to see some_function('arg1', 'arg2', :arg3=>'value') ?
momomomomo has joined #ruby
cj3kim has quit [Remote host closed the connection]
<ocke> I've tried googling, but to no avail