apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
<pawprint> but that's presumably encrypted data, if it's to be unknowable by the user
<shevy> that is a typical use case for __END__ http://stackoverflow.com/questions/1333720/ruby-scope-of-data-after-end other use cases I have seen are embedding those string-encoded image format
<pawprint> and the program then has to decrypt that data
<shevy> yeah, there is no way for encrypted ruby programs within ruby itself
<pawprint> but the program can't leave the decryption key unencrypted
`bazhang has quit []
jdj_dk has quit [Read error: Connection reset by peer]
<pawprint> ok, so the answer is "no, it can't be done in ruby".. at least not easily
<pawprint> that's what i thought
<pawprint> just checking
reinaldob has joined #ruby
<centrx> pawprint, You can compile it outside of ruby or use mruby
kyb3r_ has quit [Ping timeout: 240 seconds]
<shevy> yeah, you could compile your own addon stuff
freerobby has quit [Quit: Leaving.]
kyb3r_ has joined #ruby
<shevy> in C :)
<pawprint> that's an interesting approach
<pawprint> embedded ruby interpreter... hmm
<tejas-manohar> havenwood: which http client do you use? faraday?
PanzerModern has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
<tejas-manohar> havenwood: ^ how do i do async http requests? which client? // cc shevy
<shevy> dunno
<shevy> sounds web related!
<shevy> let's learn from how javascript does it
bigmac has quit [Ping timeout: 240 seconds]
asmodlol has quit [Ping timeout: 245 seconds]
<tejas-manohar> Lol
samfisher has quit [Ping timeout: 272 seconds]
spider-mario has quit [Remote host closed the connection]
neoxoen has joined #ruby
<shevy> well here is my poor man's answer tejas-manohar
despai has quit [Quit: This computer has gone to sleep]
<shevy> Thread.new { code_here }.join
neoxquick has quit [Ping timeout: 252 seconds]
adriancb has joined #ruby
<shevy> then there is also fiber which I did not understand
<shevy> and there is mutex which I also do not understand
<tejas-manohar> shevy: o
<tejas-manohar> shevy: if i want to go from xml to hash, is there a quick way? can i do like Hash.from_xml(...) ?
asmodlol has joined #ruby
<pawprint> thanks for your help, everyone
pawprint has left #ruby [#ruby]
sevenseacat has joined #ruby
bitri_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JBreit has quit [Read error: Connection reset by peer]
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> that method does not exist
tus has quit [Ping timeout: 264 seconds]
<shevy> you have to decompose the XML yourself and put it into a Hash data, perhaps nokogiri can help
<shevy> I dunno, I abandoned XML years ago and never looked back
tus has joined #ruby
Techguy305 has joined #ruby
<shevy> tejas-manohar come join me. abandon your wicked XML life today!
<shevy> it's still 2014
<tejas-manohar> shevy: there are shitty xml apis still out there
asmodchan has joined #ruby
asmodchan has quit [Client Quit]
<centrx> XML sounds like eczema sounds like enema
<shevy> many APIs are really awful
byprdct has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> the way I go about it is to simply use aliases :\
blizzy has joined #ruby
jimmyhoughjr has joined #ruby
JBreit has joined #ruby
renderful has joined #ruby
_1_bj2 has joined #ruby
<_1_bj2> hi
<tejas-manohar> shevy: https://gist.github.com/tejasmanohar/0ce79d1bae41ea87d453 repl.it says unexpected string
zorak8 has joined #ruby
agrinb has joined #ruby
s00pcan_ has joined #ruby
<_1_bj2> who you be
<shevy> that API is really ugly
<shevy> tejas-manohar split it up into smaller logical chunks and print debug output?
<tejas-manohar> shevy: im sorry :P but do u know what i doin wrong
<tejas-manohar> shevvy: ok
<centrx> He only means the parts you didn't write are ugly
<_1_bj2> whi
<_1_bj2> who
<centrx> _1_bj2, Hello, welcome to IRC
<_1_bj2> who you be
<centrx> I be a great man
<centrx> you must have heard of me
<tejas-manohar> shevy: not sure where to debug its p short
<tejas-manohar> nvm
<tejas-manohar> goti t
<_1_bj2> who our you be
commmmodo has joined #ruby
<apeiros_> _1_bj2: do you have any question which is on topic?
_1_bj2 has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 244 seconds]
<shevy> lol
<centrx> poor fellow, he only knew 5 words
<apeiros_> maybe a relative of groot?
<shevy> that _1_bj2 guy reminded me of other similar nicks with an underscore, a number, and a few more strange letters.
commmmodo has quit [Client Quit]
<shevy> always starts in a similar pattern. "Hello" "hi" "anybody here"
<centrx> Is There Anybody Out There?
<shevy> :\
<shevy> only PHP
<centrx> Please respond
bigmac has joined #ruby
<shevy> T_PAAMAYIM_NEKUDOTAYIM
asmodlol has quit [Ping timeout: 256 seconds]
commmmodo has joined #ruby
commmmodo has quit [Client Quit]
Sawbones has quit [Remote host closed the connection]
asmodlol has joined #ruby
crack_user has joined #ruby
davedev24_ has joined #ruby
oo_ has joined #ruby
Sawbones has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
Sawbones has quit [Remote host closed the connection]
davedev2_ has quit [Ping timeout: 264 seconds]
Hijiri has quit [Ping timeout: 258 seconds]
jdj_dk has joined #ruby
<shevy> that was the actual debug error in skynet for terminator
<shevy> it was a struggle of survival - the machines tried to escape from PHP
<shevy> they knew it would have been their demise otherwise
Hijiri has joined #ruby
startupality has quit [Quit: startupality]
pwnz0r has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
<centrx> PHP has a type chaos, not a type system
Techguy305 has quit [Read error: Connection reset by peer]
arescorpio has quit [Ping timeout: 258 seconds]
<shevy> hehe
lkba has quit [Ping timeout: 244 seconds]
Stalkr_ has quit [Quit: Leaving...]
reinaldob has quit [Remote host closed the connection]
blizzy is now known as blizzy
parabolize has joined #ruby
rylev has joined #ruby
<dtordable> PHP was the best for web apps
<dtordable> thought it was Python the best
<dtordable> but I read a master
karmatr0n has joined #ruby
<centrx> yeah no one used python in those days
<dtordable> lmao
<dtordable> no no
<dtordable> I thought it was Plone the best thing in the world ever
<dtordable> that means python
Techguy305 has joined #ruby
<dtordable> but I've seen hackers moving far away of Plone
<dtordable> so well
<dtordable> they think around other platforms like django
<dtordable> or whatever
bigmac has quit [Ping timeout: 258 seconds]
<dtordable> and being blindy I say RoR!
<dtordable> so then I have to code Ruby
<dtordable> (shevy don't poke myself!!!!)
<dtordable> hahahahhahahaha
<sevenseacat> o.O
<shevy> RoR and PHP do not have the same niche
DadoCe has joined #ruby
<dtordable> well
<dtordable> C turns me on
<dtordable> lol
<waxjar> php is used by real companies like facebook, ror is just a fancy toy
<dtordable> well a girl with pointer problems turned me on
<centrx> Facebook is a fancy toy!!!
* waxjar runs and hides
<shevy> didn't facebook modify php?
rylev has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
<dtordable> I hate FB
<dtordable> have one opened all day
<dtordable> but I hate FB
<centrx> If you make a MySpace page, can you say you worked for MySpace
<shevy> he contributed!
<dtordable> every month or so I try to erase my FB account
<dtordable> to be honest
<dtordable> I have an FB account in order to speak to my wife
<dtordable> but I've been around 2 years or some on FB
davedev24_ has quit [Ping timeout: 245 seconds]
<dtordable> trying to chat with her
<dtordable> but it didn't worked
<dtordable> lmao
<waxjar> get her on IRC!
<dtordable> waxjar: she doesn't speak English
<centrx> Shouldn't you meet her in person before marrying her
<rpag> you can't erase your account
<rpag> just disable it
<dtordable> rpag: are you joking?
<dtordable> lmao
<rpag> thats how shit facebook is
<rpag> im not
DadoCe has quit [Ping timeout: 255 seconds]
davedev24_ has joined #ruby
<rpag> all your content is owned by facebook too
<centrx> That's why it's filled with so much crap
<dtordable> rpag: can I illuminate you?
<centrx> People off-loading their junk
<centrx> can't just give away the good content
<waxjar> i read that you can disable it and re-enable it by logging in.
<dtordable> OPEN THAT
<dtordable> lmao
<dtordable> the stupid thing
<rpag> o, i stand corrected, but it wasn't always like that i am pretty sure
<dtordable> is that the deleting thing
zen_ has quit [Ping timeout: 252 seconds]
<dtordable> is on the help
<dtordable> hidden out there
hmsimha has quit [Ping timeout: 252 seconds]
<dtordable> they erase your account
<dtordable> but gives you 15 days in order to think about it
<shevy> how can you be sure they have really eliminated your data
<dtordable> and they show your active friends
<centrx> put the company out of business
<dtordable> in order to make you
<dtordable> in fact I tried to
<dtordable> and friends say I disappeared
<rpag> you say your friends and thought "no i can't do it!"
<dtordable> (as FB promised)
<rpag> saw*
<dtordable> yeah
<dtordable> it happens that
<dtordable> but well
<dtordable> I don't have friends on FB
<dtordable> just a perky woman out there
<rpag> i don't have friends full stop
<dtordable> that knows why I erase my FB again and again
<rpag> no time for these social trickery websites
<dtordable> she knows that I don't have friends in FB
<dtordable> and she thinks I'm depressed or something
<dtordable> and that it is the reason because I erase my FB account
<dtordable> again and again
<dtordable> but I can promise something to mr shevy
<dtordable> (there are lots of winess on this house)
rshetty has joined #ruby
hakunin has quit [Ping timeout: 244 seconds]
<dtordable> "when I do code Ruby my life will change)
bigmac has joined #ruby
<dtordable> lmao
s00pcan_ has quit [Ping timeout: 244 seconds]
tokik has joined #ruby
asmodlol has quit [Ping timeout: 265 seconds]
<shevy> you still have not started
<dtordable> I started
Zai00 has quit [Quit: Zai00]
<dtordable> puts "shevy go to hell!"
<shevy> you read some random paragraph in one day
rshetty has quit [Remote host closed the connection]
<rpag> are you coming from php?
hakunin has joined #ruby
<dtordable> well
<dtordable> I read the introductory chapter of the book
asmodlol has joined #ruby
<shevy> dtordable ok but this is useless. it won't ever display anything differently. there is no if conditional, nothing it can automate
<dtordable> and it talks about puts
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<dtordable> well
<dtordable> I can use print
<shevy> yeah I am sure that was a difficult thing to learn
<shevy> now you know puts and print
<dtordable> print("shevy, go more to hell!"
<dtordable> lol
<shevy> are you sure your book used ( ?
<dtordable> whatever
<dtordable> to be honest
<dtordable> I don't know yet if it uses that damn () thing
TgMts has joined #ruby
<shevy> so let me compare to you these two examples:
<shevy> puts 'hello world!'
karmatr0n has quit [Remote host closed the connection]
<shevy> print("hello world!\n")
<dtordable> ah
karmatr0n has joined #ruby
<shevy> you can omit the ()
<shevy> just as you did in puts
<shevy> print "hello world!\n"
<dtordable> aha
<dtordable> yeah
<shevy> so now you must learn about if/else
<dtordable> and do I need the escape?
<shevy> only for print
<dtordable> yeah
<shevy> puts appends one newline, unless there already is one
<dtordable> while true
<shevy> puts "hello world\n" is the same as puts "hello world"
<dtordable> print "\n"
<shevy> good
<shevy> that is your first loop
_1_fggg has joined #ruby
<dtordable> hahahahhahaa
<dtordable> cool
<dtordable> do I know ruby?
<dtordable> hahahha
<shevy> a little bit
<rpag> computer says.....
<rpag> yes
<shevy> :)
<dtordable> wow
<dtordable> a question
<_1_fggg> :O
<dtordable> do I need to indent that print?
<_1_fggg> :'(
<shevy> no
<dtordable> ah
<shevy> but it is easier to read for other human people if you indent
<_1_fggg> really
<dtordable> well
<shevy> in python you must indent - if you do not, python will not interprete your code
<dtordable> my code in C
jdj_dk has quit [Read error: Connection reset by peer]
<shevy> yeah, in C you also do not have to indent (for the most part?)
<dtordable> my code in C++ was beautiful
<_1_fggg> 777777
lemur has joined #ruby
<shevy> so I see you are back _1_fggg
<dtordable> but it was because how I wrote it
<shevy> ohhh it is not even a human, it is a java bot :(
jack_rabbit has joined #ruby
<_1_fggg> +967771900608
karmatr0n has quit [Ping timeout: 255 seconds]
<dtordable> array[ a ]
<dtordable> and so
<dtordable> was pure poetry
TgMts has quit [Quit: No Ping reply in 180 seconds.]
gregf has quit [Quit: WeeChat 1.0.1]
<_1_fggg> what do u know about islam
<dtordable> that someone promised me around 7 virgins when I died
<dtordable> lol
<rpag> 72
<_1_fggg> Allah
<centrx> If I call that phone number, will I get to speak to someone high up like Mohammed or Gabriel
<dtordable> nah
<dtordable> just Nasreddin
_1_fggg was kicked from #ruby by apeiros_ [_1_fggg]
<dtordable> uh
<centrx> He was here before
<dtordable> an op!!!!!
TgMts has joined #ruby
<shevy> well ok that explains the numbers then
<shevy> because it's a bot :\
<dtordable> yeah
Stalkr_ has joined #ruby
<dtordable> a bot programmed in Ruby
<dtordable> a question a question
<dtordable> is there a way to connect to IRC on Ruby?
<dtordable> ^^
tejas-manohar has quit [Quit: Page closed]
<centrx> >> :no
<centrx> gasp
<dtordable> ah...
Musashi007 has joined #ruby
Neomex has quit [Read error: Connection reset by peer]
rkday has quit [Ping timeout: 264 seconds]
TgMts has quit [Client Quit]
<shevy> dtordable sure
pu22l3r has joined #ruby
<dtordable> ah
<shevy> dtordable https://rubygems.org/gems/talk_in_irc_channel - I don't remember where or how... let me find the line
<shevy> ah yes
<shevy> loop { select( [$stdin], nil, nil, 1.1 )
<shevy> I am sure there are other ways
barderer has joined #ruby
TgMts has joined #ruby
<dtordable> APPEND_THIS =
<dtordable> What to append to every line sent to the IRC server from this library.
<dtordable> "\r\n"
<dtordable> look at that
<dtordable> it is stupid that program
<dtordable> the RFC requires that part for work
<shevy> nope - the formatting is parsed incorrectly by rdoc/yard
<shevy> it assumes that lines with # ===== are special
commmmodo has joined #ruby
jack_rabbit has quit [Ping timeout: 256 seconds]
<shevy> use the select( [$stdin], nil, nil, 1.1 ) part
<shevy> then you can get incoming text, and output whatever you wish to write
nisscrooge has quit [Ping timeout: 245 seconds]
<shevy> in a terminal like xterm
<shevy> dtordable there also is a bot in ruby
<dtordable> how do I do a comment in Ruby?
<shevy> use #
<dtordable> ah
<shevy> # this is a comment for method foo
<shevy> def foo
pu22l3r has quit [Ping timeout: 244 seconds]
<rpag> or
<rpag> =begin
<rpag> comment
<rpag> =end
<dtordable> so it will be my favourite part of Ruby
<rpag> but no one really uses =begin/=end
zen_ has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
<shevy> dtordable this is a bot in ruby: https://rubygems.org/gems/cinch
<shevy> yeah
<shevy> I find =begin ugly
<shevy> if I have to disable a longer part I could always do: if false
<shevy> and indent it to the most left part
<shevy> so when I look over some .rb file, I instantly know which parts are temporary debug lines or code blocks
<shevy> and perhaps add a comment like # FIXME!!!
<shevy> but we all know
<shevy> we will never fix all FIXMEs
TgMts has quit [Quit: No Ping reply in 180 seconds.]
<shevy> and we will also leave the '# Hack' lines in place
commmmodo has quit [Client Quit]
<shevy> dtordable you could document your while loop
<shevy> # Now we will run a while loop:
<dtordable> What has changed in 2.0?
<shevy> while loop
robustus|Off has joined #ruby
<shevy> a few new methods I think
<dtordable> look at that
robustus|Off is now known as robustus
<dtordable> will create an eggdrop in Ruby!!!!!!!!
<shevy> ah I think he means the bot
TgMts has joined #ruby
hkk has joined #ruby
<dtordable> so
<dtordable> if false
<dtordable> this is a comment
<dtordable> more longer comment
<dtordable> endif
<dtordable> ?
freerobby has joined #ruby
<shevy> you forgot #
zen_ has quit [Ping timeout: 252 seconds]
<rpag> don't need it
TgMts has quit [Client Quit]
<rpag> the code won't run and its valid syntax
<rpag> 'endif' isnt a thing though, you want 'end'
<dtordable> whatever
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
TgMts has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
freerobby1 has joined #ruby
freerobby has quit [Ping timeout: 240 seconds]
<dtordable> shevy: today I sleep in the sofa
<dtordable> lol
TgMts has quit [Client Quit]
Sawbones has joined #ruby
TgMts has joined #ruby
dorei has quit []
<shevy> good that you don't have a dog
suffice has quit [Ping timeout: 240 seconds]
<rpag> he is a dog
Pupeno has quit [Remote host closed the connection]
<rpag> thats why he sleeps on the sofa
<rpag> a privileged dog
<dtordable> lol
<dtordable> well
<dtordable> on this afternoon she loved me lots
suffice has joined #ruby
<dtordable> after a beer she loved me lots
<dtordable> then I began to throw pillows to her
<dtordable> and now she offers me a divorce
<dtordable> girls... who cares?
<dtordable> lmao
<shevy> you are married
<dtordable> I'm not married
<dtordable> I'm just fucked
<dtordable> lol
<rpag> lol
olekenneth has quit [Ping timeout: 250 seconds]
<rpag> shevy, is there someone special in your life
jdj_dk has joined #ruby
<dtordable> his dog
<dtordable> lol
<rpag> or have you learned that women are evil
<dtordable> they are not evil
<shevy> girls are evil
<dtordable> they are just women
Sawbones has quit [Remote host closed the connection]
<dtordable> AFAIK 12 yo women are evil
<rpag> women/relationships are one way to ensure depression
<dtordable> stupid, stupid and more stupid
<shevy> rpag well there is booze
<dtordable> well
<dtordable> yesteday it happened something bad
<shevy> you read a ruby book
<dtordable> the 12yo lolicunt began to harm me
basex has quit [Remote host closed the connection]
<dtordable> making me depressed about the fact that I'm male
<dtordable> so she made me pain with her fingers
<dtordable> and I told he
<dtordable> "what about if I slap you and you leave me alone?"
<dtordable> so horror come to the house
<dtordable> I slept in the sofa
<rpag> shevy, i hate booze, but i like hashish, except thats a love/hate relationship
<shevy> so in other words
<dtordable> and my life got to be a disaster
<shevy> a 12 years old beat you on the mental gaming
freerobby has joined #ruby
tkuchiki has joined #ruby
<dtordable> well
SirCmpwn has quit [Read error: Connection reset by peer]
<dtordable> she plays Mario Bros all day long
<shevy> rpag aha. I never got into smoking... back in school when almost everyone started smoking, I could not because it was idiotic to do something just because everyone else would be doing it
<dtordable> and one day I shown her how mario was when I played games like that one
hmsimha has joined #ruby
<dtordable> and she got confused with the 2D thing
<shevy> back when I was young
<shevy> we played Tetris
<dtordable> OH!!!!!!!
<rpag> shevy, you're still young#!$£!
<shevy> naaah
<dtordable> repeat yourself again
<dtordable> repeat yourself again
<dtordable> repeat yourself again
<shevy> youngness ends at age 25
<rpag> im old then
<rpag> <- 28
<rpag> =[
<shevy> most are :)
<dtordable> rpag aha. I never got into smoking... back in school when almost everyone started smoking, I could not because it was idiotic to do something just because everyone else would be doing it
freerobby1 has quit [Ping timeout: 240 seconds]
<shevy> a good friend used to joke that life ends past age 20 because one is old then
<shevy> he had a heart attack at age 27 due to a bacterial myocard-infection :(
<rpag> yikes
<rpag> did he survive?
<dtordable> do you want to know when I started to smoke?
<dtordable> lol
<dtordable> at the age of 12!!!!!
<shevy> rpag nope. died alone in his flat, his sister found him 3 days after he died
TgMts has quit [Ping timeout: 240 seconds]
<rpag> dtordable, this is you, isn't it: https://www.youtube.com/watch?v=_te6dLVeqa8
<rpag> shevy, thats terrible
rylev has joined #ruby
<shevy> yeah
echooo1 has quit [Ping timeout: 264 seconds]
<shevy> what was strange was that perhaps 2 weeks before he died, he behaved oddly... said that his job wasn't any fun, sounded depressed and such
lemur has quit [Remote host closed the connection]
<rpag> i think everyone feels like that now and then
Deele has quit [Ping timeout: 244 seconds]
lemur has joined #ruby
<dtordable> well
asmodlol has quit [Ping timeout: 245 seconds]
<dtordable> I always talk about suicide
<dtordable> lol
commmmodo has joined #ruby
<dtordable> and I know the way
<shevy> rpag yeah but some people are very cheerful by nature, others are kinda phlegmatic and melancholic
sevenseacat has quit [Ping timeout: 244 seconds]
asmodlol has joined #ruby
<rpag> shevy, you seem very cheerful by default
<shevy> dunno
fandi has joined #ruby
<rpag> for an austrian ;)
Takle has joined #ruby
<shevy> I am easily amused, but things like that death kick me down immensely
<dtordable> shevy: do you want to know an spanish joke?
mattwildig has quit []
<dtordable> I'm laughting loud now
olekenneth has joined #ruby
<dtordable> "do you want to know why he is called "Papa Noel"?
Dopagod has joined #ruby
yfeldblum has joined #ruby
<Nilium> Quit sayin' my name.
rylev has quit [Ping timeout: 245 seconds]
* Nilium throws coal at dtordable
crdpink has quit [Ping timeout: 258 seconds]
<dtordable> shit
nisscrooge has joined #ruby
crdpink has joined #ruby
<dtordable> are you papa noel???
<Nilium> I am merely a Noel
<dtordable> then give me a Macintosh
<dtordable> lol
crdpink has quit [Client Quit]
<Nilium> No, you get coal.
crdpink has joined #ruby
<shevy> dtordable I am not sure if it is your nature or your spanish-english but sometimes I don't know what you are talking about... like Papa Noel. What is that?
<Nilium> Have you ever expressed the opinion that node.js is good because you can share code between client and server? If so, you get coal for the rest of your fucking life.
echooo has joined #ruby
<dtordable> papa noel is the name of Santa in spanish
<dtordable> Spain has a problem
lemur has quit [Ping timeout: 272 seconds]
<dtordable> we copy from north america
<Nilium> Is it a node.js problem?
<Nilium> If so, burn it down and salt the earth
<shevy> dtordable ah like that sitting santa? https://www.youtube.com/watch?v=zxRqQ6O6Tig
<dtordable> here we have the problem of having holidays for everyday
<dtordable> so well
<dtordable> in Spain we work less
<dtordable> suppose
<dtordable> we have holidays on monday or friday
<shevy> monday is super strange
<dtordable> so that weekend we are 3 days off job
<Nilium> Isn't that a good thing considering the US is desperately trying to catch up to Japan in terms of overworking-related deaths?
<shevy> it's absolutely atypical in austria, but nearby is an italian pizzeria - they have open on sunday (???) but closed on monday... that freaks me so out
<dtordable> got a joke for the austrian
<dtordable> lol
<shevy> Japan is only a role model for the weird things
<Nilium> The crappy Chinese restaurant next door to my office is closed on Mondays
<shevy> like japanese pranks
<Nilium> Which is strange
<dtordable> in the IIWWW an officer said
<Nilium> And I call them crappy after giving them a chance. I _tried_ to find one thing they prepared that wasn't garbage.
<dtordable> "Mein fuurer, mein fuurer, in the south they want to join the war!"
porfa has quit [Ping timeout: 240 seconds]
<Nilium> And then I tried the orange chicken and that was the end of that.
<dtordable> "send a section there now!"
<dtordable> "they are the italians!!!!!!"
commmmodo has quit [Quit: commmmodo]
hmsimha has quit [Ping timeout: 252 seconds]
<dtordable> "humph... better send 4 sections there!!!!!!!!!!!!"
<dtordable> LMAO
Hijiri has quit [Ping timeout: 272 seconds]
<dtordable> well
<dtordable> I'm out to sleep in the sofa
<shevy> Nilium I usually dare eat only a few things in a chinese restaurant
<dtordable> take care everyone
iamninja has joined #ruby
<shevy> usually rice + vegetables
<Nilium> I mostly stick to beef + vegetables/broccoli, because how do you screw that up?
Musashi007 has quit [Quit: Musashi007]
<Nilium> But they do
<shevy> yeah
<Nilium> So I only get it from the local thai places now.
<shevy> also chicken
<shevy> I don't think they cook those things at all
devdazed has quit [Quit: Computer has gone to sleep.]
<Nilium> One of the local thai places is pretty good, the other doesn't do beef/broccoli but has good pad thai with beef
rpag has quit [Quit: Leaving]
<Nilium> Well, the orange chicken I got from the Chinese place was like covered in some ultra-weird yellow sauce that tasted like melted candy
<Nilium> And the chicken itself might not have been chicken. I try not to think about it.
porfa has joined #ruby
<dtordable> it was pork shit
<Nilium> Actually kind of weird to me that there's only one chinese place but quite a few mexican and thai places
<shevy> well
<shevy> here in vienna they are aggregated... like one area where there are literally about 20 different chinese shops and no thai shops nearby
oo_ has quit [Remote host closed the connection]
devdazed has joined #ruby
oo_ has joined #ruby
rshetty has joined #ruby
Hijiri has joined #ruby
devdazed has quit [Client Quit]
charliesome has joined #ruby
<Nilium> I live in a small vacationer mountain town, so we don't really get that
crdpink has quit [Ping timeout: 245 seconds]
crdpink has joined #ruby
crdpink has quit [Read error: Connection reset by peer]
crdpink has joined #ruby
rshetty has quit [Ping timeout: 240 seconds]
Takle_ has joined #ruby
<dtordable> I eat air
<dtordable> and now to sleep in the sofa
<dtordable> take care everyone!!!!!!
<Nilium> By in, you mean you cut open the sofa and are literally crawling inside its pillows
<dtordable> yeah
<dtordable> the sofa
SirCmpwn has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
<dtordable> I sleep even better than with the wife
<dtordable> lol
Takle has quit [Ping timeout: 272 seconds]
Stalkr_ has joined #ruby
jenrzzz has joined #ruby
neoxoen is now known as neoxquick
elfuego has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
Sawbones has joined #ruby
Stalkr_ has quit [Ping timeout: 272 seconds]
commmmodo has joined #ruby
tuxdna has quit [Ping timeout: 264 seconds]
nfk has quit [Quit: yawn]
maestrojed has joined #ruby
zen_ has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
ltd_ has quit [Read error: Connection reset by peer]
Hijiri has quit [Ping timeout: 272 seconds]
hamakn has joined #ruby
zen_ has quit [Ping timeout: 240 seconds]
phutchins has joined #ruby
Hijiri has joined #ruby
ltd has joined #ruby
dc_ has joined #ruby
philwantsfish1 has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devoldmx has joined #ruby
pwnz0r has joined #ruby
icebourg has joined #ruby
wjimenez5271_ has joined #ruby
MartynKeigher has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
charliesome_ has joined #ruby
devoldmx33 has quit [Ping timeout: 264 seconds]
charliesome has quit [Ping timeout: 264 seconds]
wjimenez5271 has quit [Ping timeout: 264 seconds]
Sawbones has quit [Remote host closed the connection]
Synchunk has quit [Quit: Synchunk]
pardusf has joined #ruby
iaj_ has joined #ruby
sevenseacat has joined #ruby
bhaak_ has joined #ruby
ZYPP_ has joined #ruby
Prawnzy_ has joined #ruby
Meeh_ has joined #ruby
sevenseacat has left #ruby [#ruby]
sevenseacat has joined #ruby
vlad_sta- has joined #ruby
FDj_ has joined #ruby
knikolov_ has joined #ruby
Anarch_ has joined #ruby
kotk has joined #ruby
javawizard has joined #ruby
jdj_dk has quit [Read error: Connection reset by peer]
Freijo has joined #ruby
peterhu has joined #ruby
Synchunk has joined #ruby
aob_ has joined #ruby
destruct1re has joined #ruby
BaNzoune1 has joined #ruby
fandi has quit [Ping timeout: 256 seconds]
hyperdrive has joined #ruby
orionstein_ has joined #ruby
okic_ has joined #ruby
maestroj_ has joined #ruby
btcctf_ has joined #ruby
Gate_ has joined #ruby
JStoker has quit [Killed (holmes.freenode.net (Nickname regained by services))]
JStoker has joined #ruby
Synchunk has left #ruby [#ruby]
phreakocious has joined #ruby
lele` has joined #ruby
s00pcan_ has joined #ruby
KramerC_ has joined #ruby
basex has joined #ruby
marcel- has joined #ruby
palantir_ has joined #ruby
_main_ has joined #ruby
tekacs has joined #ruby
tekacs is now known as Guest73108
Dr3amc0dz has joined #ruby
yasu___ has joined #ruby
Jelco has joined #ruby
Jelco has quit [Changing host]
Jelco has joined #ruby
shanlar has joined #ruby
TrafficMan_ has quit [Ping timeout: 264 seconds]
marcel has quit [Ping timeout: 264 seconds]
marcel- is now known as marcel
AChristmasuv is now known as Auv
hasB4K_ has joined #ruby
goshkwanzaayou is now known as goshdarnyou
TrafficMan has joined #ruby
RedDwarf has joined #ruby
p8952_ has joined #ruby
ponga has joined #ruby
segv_ has joined #ruby
<ponga> are you there shevy
<shevy> semi
basex has quit [Ping timeout: 272 seconds]
akkad_ has joined #ruby
kapil__ has joined #ruby
MartynKeigher has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
hsps_ has joined #ruby
<ponga> shevy: if i were to write gui (like simple window, buttons etc) in C# for windows and want this to communicate with my ruby programme, what kind of keyword should i google to look for such info
<ponga> is it socket communication
anicet has joined #ruby
ozialien_ has joined #ruby
<shevy> never wrote in C#
<shevy> but sockets sounds good
<shevy> ruby-gnome has Gtk::Sockets
<ponga> no i just want to know wht i should google for
linduxed_ has joined #ruby
<ponga> app to app data transferring
<ponga> more like talking to each other?;
<ponga> ok socket
Areessell has joined #ruby
<ponga> shevy: but isn't socket mostly for server-client communication
<ponga> what do i google for 2 processes in single PC to communicate
<ponga> :(
<shevy> hmm
rshetty has joined #ruby
fandi has joined #ruby
clarkk has quit [Disconnected by services]
clarkk1 has joined #ruby
rx has joined #ruby
<ponga> oh ok shevy i think i had wrong perceptions about socket
cajone1 has joined #ruby
<ponga> "Sockets are the endpoints of a bidirectional communications channel. Sockets may communicate within a process, between processes on the same machine, or between processes on different continents." says tutorials point
<ponga> thnks anyway
<shevy> \o/
<shevy> so that should work yes?
<ponga> shevy: yeah i think so
maestrojed has quit [*.net *.split]
knikolov has quit [*.net *.split]
coderhs has quit [*.net *.split]
nickjj has quit [*.net *.split]
parduse has quit [*.net *.split]
Kabaka has quit [*.net *.split]
cajone has quit [*.net *.split]
kotk_ has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
yasu__ has quit [*.net *.split]
lele has quit [*.net *.split]
__main__ has quit [*.net *.split]
Zackio has quit [*.net *.split]
s00pcan has quit [*.net *.split]
segv has quit [*.net *.split]
juni0r has quit [*.net *.split]
palantir has quit [*.net *.split]
shanlar- has quit [*.net *.split]
aob has quit [*.net *.split]
philwantsfish has quit [*.net *.split]
joast has quit [*.net *.split]
jcp has quit [*.net *.split]
clamstar has quit [*.net *.split]
orionstein has quit [*.net *.split]
ZYPP has quit [*.net *.split]
Guest83413 has quit [*.net *.split]
phreakocious_ has quit [*.net *.split]
okic has quit [*.net *.split]
peterhu_ has quit [*.net *.split]
bhaak has quit [*.net *.split]
iaj has quit [*.net *.split]
Jelco_ has quit [*.net *.split]
akkad has quit [*.net *.split]
ctrlrsf has quit [*.net *.split]
Gate has quit [*.net *.split]
Fraeon has quit [*.net *.split]
ozialien has quit [*.net *.split]
hdrv has quit [*.net *.split]
Dr3amc0d3r|away has quit [*.net *.split]
hasB4K has quit [*.net *.split]
linduxed has quit [*.net *.split]
BaNzounet has quit [*.net *.split]
KramerC has quit [*.net *.split]
Anarch has quit [*.net *.split]
Meeh has quit [*.net *.split]
btcctf has quit [*.net *.split]
FDj has quit [*.net *.split]
Tarential has quit [*.net *.split]
Prawnzy has quit [*.net *.split]
p8952 has quit [*.net *.split]
destructure has quit [*.net *.split]
vlad_starkov has quit [*.net *.split]
rx is now known as clamstar
orionstein_ is now known as orionstein
segv_ is now known as segv
_main_ is now known as __main__
KramerC_ is now known as KramerC
akkad_ is now known as akkad
p8952_ is now known as p8952
<ponga> i believe it'd do between processes written in different languages, no problem
<ponga> wow
Tarential has joined #ruby
<ponga> what's happened
hsps_ has quit [Ping timeout: 244 seconds]
rshetty has quit [Remote host closed the connection]
claptor has quit [Quit: this channel is bakas]
zorak8 has quit [Ping timeout: 244 seconds]
Channel6 has joined #ruby
it0a has quit [Ping timeout: 240 seconds]
gfawcettpq has quit [Quit: Leaving.]
nicolastarzia has joined #ruby
claptor has joined #ruby
mrdtt has joined #ruby
nickjj has joined #ruby
Kabaka has joined #ruby
rpag has joined #ruby
rpag has quit [Client Quit]
jdj_dk has joined #ruby
hsps_ has joined #ruby
bitri has joined #ruby
nicolastarzia has quit [Ping timeout: 252 seconds]
havenwood has quit [Remote host closed the connection]
dts|pokeball has quit [Read error: Connection reset by peer]
Areessell has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
rylev has joined #ruby
dts|pokeball has joined #ruby
radic has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
matti has quit [Quit: Oh dear...]
radic has joined #ruby
bitri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rylev has quit [Ping timeout: 258 seconds]
asmodlol has quit [Ping timeout: 240 seconds]
asmodlol has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
zen has joined #ruby
zen is now known as Guest47836
mostlybadfly has joined #ruby
Pattt has joined #ruby
Guest47836 has quit [Ping timeout: 258 seconds]
bashusr has quit [Read error: Connection reset by peer]
hsps_ has quit [Ping timeout: 240 seconds]
bashusr has joined #ruby
asmodlol has quit [Ping timeout: 245 seconds]
asmodlol has joined #ruby
Sawbones has joined #ruby
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
Sawbones has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
rylev has joined #ruby
paulfm has joined #ruby
coderhs has joined #ruby
charliesome_ has quit [Quit: zzz]
BTRE has quit [Quit: Leaving]
commmmodo has quit [Quit: commmmodo]
oo_ has quit [Remote host closed the connection]
gfawcettpq has joined #ruby
ajaiswal has joined #ruby
BTRE has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
charliesome has joined #ruby
hsps_ has joined #ruby
bluOxigen has joined #ruby
yfeldblu_ has joined #ruby
oo_ has joined #ruby
coderhs has quit [Quit: This computer has gone to sleep]
Musashi007 has joined #ruby
maestroj_ has quit [Quit: Computer has gone to sleep.]
bashusr has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
coderhs has joined #ruby
dts|pokeball has quit [Ping timeout: 244 seconds]
paulfm has quit [Quit: Goodbye]
bashusr has quit [Read error: Connection reset by peer]
rylev has quit []
maestrojed has joined #ruby
bashusr has joined #ruby
slawrence00 has joined #ruby
r0bby_ is now known as robbyoconnor
robbyoconnor has quit [Quit: Konversation terminated!]
Photism has joined #ruby
orangerobot has quit [Quit: Page closed]
pu22l3r has joined #ruby
jdj_dk has quit [Ping timeout: 244 seconds]
braincrash has quit [Quit: bye bye]
coderhs has quit [Ping timeout: 245 seconds]
icebourg has quit []
braincrash has joined #ruby
hsps_ has quit [Ping timeout: 250 seconds]
karmatr0n has joined #ruby
hkk has quit []
lele` is now known as lele
robbyoconnor has joined #ruby
rshetty has quit [Remote host closed the connection]
Takle_ has quit [Remote host closed the connection]
rshetty has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
zen has joined #ruby
ishikawa91 has joined #ruby
zen is now known as Guest43207
hsps_ has joined #ruby
arup_r has joined #ruby
basex has joined #ruby
bashusr has joined #ruby
Guest43207 has quit [Ping timeout: 250 seconds]
karmatr0n has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
basex has quit [Ping timeout: 272 seconds]
bashusr has quit [Read error: Connection reset by peer]
hsps_ has quit [Ping timeout: 255 seconds]
jdj_dk has joined #ruby
ctrlrsf has joined #ruby
hgl has quit [Max SendQ exceeded]
Scripore has joined #ruby
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Anarch_ is now known as Anarch
hgl has joined #ruby
<Scripore> http://hastebin.com/uvululihip.vbs why does my line 13 statement prints out an empty array even though the second_array = [] assignment is placed before the .each loop ?
lemur has joined #ruby
rshetty has quit [Remote host closed the connection]
<shevy> Scripore I don't see the point
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<shevy> second_array is local to your method
<shevy> when you invoke the method you assign second_array to []
Dopagod has quit [Remote host closed the connection]
bluOxigen has quit [Ping timeout: 245 seconds]
claptor has quit [Quit: this channel is bakas]
<Scripore> and then my .each loop should be pushing data to the second_array
<shevy> Scripore run http://pastie.org/9799086 then you will see these are different objects
<shevy> yes, the second_array, which you created inside of your method, right?
<shevy> so it is not the one you passed in
Techguy305 has joined #ruby
yfeldblum has joined #ruby
bashusr has joined #ruby
bluOxigen has joined #ruby
<Scripore> if I comment out line 5, the output becomes different. there's data in the array when it's printed out
<shevy> did you look at my pastie
<Scripore> ah, missed that. doing it right now
<shevy> I actually explained it, but let's do again. inside your method, you assign a NEW array object
rshetty has joined #ruby
<shevy> this new object does not know about the object that the variable move_nums_here retains
yfeldblu_ has quit [Ping timeout: 245 seconds]
mrdtt has quit [Max SendQ exceeded]
<shevy> and the different results for .object_id show to you that these are different objects
tus has quit []
mrdtt has joined #ruby
<Scripore> ah, thanks.
nicolastarzia has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
crack_user has quit [Quit: Leaving.]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nicolastarzia has quit [Ping timeout: 256 seconds]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
bashusr has joined #ruby
Techguy305 has quit [Read error: Connection reset by peer]
Techguy305 has joined #ruby
agrinb has quit [Ping timeout: 244 seconds]
Techguy305 has quit [Read error: Connection reset by peer]
<Scripore> okay, had to mull it over a bit. I think I got it now. thanks again for the help.
Hijiri has quit [Ping timeout: 244 seconds]
Hijiri has joined #ruby
pwnz0r has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Pattt has quit [Ping timeout: 255 seconds]
bashusr has quit [Read error: Connection reset by peer]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tomengland has joined #ruby
anmn has joined #ruby
<tomengland> array methods / hash methods, ruby makes things so easy to get going.
sarkis_ has joined #ruby
<anmn> what's the difference between this (in rails) - before_filter :blahblah, only: ['whatever'], and before_filter :blahblah, :only => ['whatever']
icebourg has joined #ruby
<anmn> if any
sarkis has quit [Ping timeout: 255 seconds]
pu22l3r has quit [Remote host closed the connection]
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
ohaibbq has joined #ruby
pu22l3r has joined #ruby
porfa has quit [Ping timeout: 245 seconds]
lemur has quit [Remote host closed the connection]
vinleod has joined #ruby
lemur has joined #ruby
arup_r has joined #ruby
adriancb has quit [Remote host closed the connection]
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
Sawbones has joined #ruby
Techguy305 has joined #ruby
lemur has quit [Ping timeout: 240 seconds]
tokik has quit [Ping timeout: 252 seconds]
uber_hulk has joined #ruby
havenwood has joined #ruby
jdj_dk has quit [Ping timeout: 245 seconds]
freerobby has quit [Quit: Leaving.]
uber_hulk has left #ruby [#ruby]
az7ar_away is now known as az7ar
Sawbones has quit [Ping timeout: 244 seconds]
zen has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
zen is now known as Guest89285
<anmn> is that ruby 1.9 hash syntax
<sevenseacat> yes
agrinb has joined #ruby
pika_pika has quit [Ping timeout: 258 seconds]
basex has joined #ruby
bashusr has joined #ruby
charliesome has quit [Quit: zzz]
agjacome has quit [Quit: leaving]
agrinb has quit [Ping timeout: 258 seconds]
Guest89285 has quit [Ping timeout: 252 seconds]
bmichelsen has joined #ruby
basex has quit [Ping timeout: 250 seconds]
rshetty has quit [Remote host closed the connection]
rshetty has joined #ruby
skoocda has joined #ruby
jonathan__ has joined #ruby
jonathan__ has quit [Client Quit]
mostlybadfly has quit [Quit: Connection closed for inactivity]
bashusr has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
coderhs has joined #ruby
govg has joined #ruby
govg is now known as Guest2291
oo_ has joined #ruby
bashusr has joined #ruby
jdj_dk has joined #ruby
VBlizzard has joined #ruby
Scripore has quit [Ping timeout: 240 seconds]
AndroUser466 has joined #ruby
AndroUser466 has quit [Client Quit]
AndroUser466 has joined #ruby
Tranquility has joined #ruby
tejas-manohar has joined #ruby
blizzy has quit [Ping timeout: 255 seconds]
<shevy> are you a nice cat sevenseacat
<sevenseacat> i try to be.
charliesome has joined #ruby
Guest2291 has quit [Quit: leaving]
govg_ has joined #ruby
oo_ has quit [Remote host closed the connection]
tkuchiki has quit [Quit: Leaving...]
<shevy> a true X-mas cat
<shevy> with a santa hat
<pontiki> halp: i have an array of 267 elements, with one item duplicated. how do i find which one is duplicated?
<shevy> pontiki I often have had a similar problem!
<pontiki> often??
<shevy> I always remembered .uniq ... but that did the opposite right?
<shevy> yep! my brain wants to hit .uniq!
yfeldblum has quit [Remote host closed the connection]
<shevy> though let me see, I think there was some solution I have noted down (perhaps...)
<pontiki> that removes any duplications, but then how do you find it?
<pontiki> ary - ary doesn't work
<shevy> hmm
<shevy> array.detect { |e| array.count(e) > 1 } ?
<shevy> let me see...
<pontiki> oh, that should do it
<pontiki> yes!!
claptor has joined #ruby
<pontiki> 50 points for shevy's house
<shevy> array = [1, 2, 1, 3, 5, 4, 5, 5]; dup = array.select{|element| array.count(element) > 1 }; dup # => [1, 1, 5, 5, 5]
<shevy> hmm and dup.uniq to get which are the uniques... and then I think you can find out which ones are not unique
<shevy> \o/
barderer has quit [Ping timeout: 252 seconds]
oo_ has joined #ruby
zen_ has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
tkuchiki has joined #ruby
wallerdev has quit [Quit: wallerdev]
bashusr has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
<havenwood> >> [1, 2, 1, 3, 5, 4, 5, 5].group_by(&:itself).values.reject(&:one?).map(&:first)
<havenwood> indulgent use of itself and one?, cause we can!
icebourg has quit []
psyprus has quit [Ping timeout: 258 seconds]
bashusr has joined #ruby
Takle has joined #ruby
uber_hulk has joined #ruby
psyprus has joined #ruby
adriancb has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
pu22l3r has quit [Remote host closed the connection]
zen_ has quit [Ping timeout: 244 seconds]
agrinb has joined #ruby
adriancb has quit [Ping timeout: 250 seconds]
bashusr has quit [Read error: Connection reset by peer]
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
oo_ has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 255 seconds]
agrinb has quit [Ping timeout: 258 seconds]
pu22l3r has joined #ruby
oo_ has joined #ruby
bashusr has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
raphaelrk has joined #ruby
<havenwood> i should find a better excuse for itself though, this was a bad one and there're nice ones!
pu22l3r has quit [Ping timeout: 272 seconds]
<havenwood> for fun: sort.each_cons(2).find { |a, b| a == b }.first
<havenwood> shevy: your first one wins the race
Channel6 has quit [Quit: Leaving]
govg_ has quit [Read error: Connection reset by peer]
govg has joined #ruby
<Nilium> Why don't more languages have binary integer literals
josephndenton has joined #ruby
<Nilium> I would be so much happier setting file modes with binary literals than octal
Cache_Money has joined #ruby
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
psy has quit [Read error: Connection reset by peer]
nicolastarzia has joined #ruby
rshetty_ has joined #ruby
psy has joined #ruby
psy has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 240 seconds]
bashusr has quit [Read error: Connection reset by peer]
psy has joined #ruby
rshetty has quit [Ping timeout: 245 seconds]
nicolastarzia has quit [Ping timeout: 245 seconds]
clearlake has joined #ruby
yfeldblu_ has joined #ruby
<shevy> havenwood cool
pu22l3r has joined #ruby
zen has joined #ruby
zen is now known as Guest70690
bashusr has joined #ruby
shortCircuit__ has joined #ruby
<epitron> havenwood: wait, array.count() beats array.group_by?
<epitron> calling count() over and over should be a lot slower
yfeldblu_ has quit [Ping timeout: 240 seconds]
<havenwood> epitron: well, pontiki said there's only one dup - so it's not a fair comparison
rbrs has joined #ruby
<havenwood> epitron: i guess i probably also completely failed at benching, since my dup was early in the Array >.>
Sawbones has joined #ruby
jdj_dk has joined #ruby
<epitron> hmmm
<epitron> haha, .uniq is the shortest solution
Kabaka has quit [Read error: Connection reset by peer]
<epitron> duplicated_elements = elements - elements.uniq
<epitron> has charlie said what's wrong with eval.in?
<epitron> i didn't realize how important that thing was until it went down
<pontiki> wth is `.itself` ??
rshetty_ has quit [Read error: Connection reset by peer]
<havenwood> pontiki: shiny new 2.2 feature!
rshetty has joined #ruby
<Nilium> Is that a returns-self thing?
<Nilium> "C API - Remove deprecated APIs" ← Guess I'm going to have to see what of mine still builds.
Sawbones has quit [Ping timeout: 256 seconds]
Guest70690 has quit [Ping timeout: 245 seconds]
<pontiki> shevy's frist one was simple and this was a one-time thing
shortCircuit__ is now known as santaClaws_
wallerdev has quit [Quit: wallerdev]
oo_ has quit [Remote host closed the connection]
<epitron> pontiki: "array - array.uniq" is the simplest :)
<pontiki> nope
bashusr has quit [Read error: Connection reset by peer]
<pontiki> that was the first thing i tried, and it didn't work
<epitron> ohhh right
<epitron> "remove" removes all copies
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<epitron> or maybe it converts the array to a Set first
<epitron> either way... boourns
<Nilium> Well, doubt it converts it to a set, probably just enumerates the entire thing
<epitron> subtracting huge arrays would be slow though
jrhe has joined #ruby
<Nilium> Probably not terribly slow
<Nilium> Depends on how huge is huge though
<epitron> if "a1 - a2" is "a2.each {|e| a1.remove(e) }", that would be prety bad
coderhs has quit [Ping timeout: 264 seconds]
oo_ has joined #ruby
chipotle has quit [Quit: cheerio]
<epitron> ok, looked at the C source for Array#- (go pry!)... it's making a hash
<Nilium> Doing a 1_000_000.times.to_a.tap { |ary| ary.shuffle - ary.shuffle } certainly takes a while.
<epitron> that explains why you can't have duplicates
<Nilium> I'm not a huge fan of anything that takes over 20ms. That's a long time to wait...
<epitron> it's basically: h = a2.to_hash; a1.reject {|e| h.includes? e }
kyb3r_ has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
<epitron> hahah
bashusr has joined #ruby
<epitron> FINE, Mr. Pragmatism
<Nilium> As brute force methods go, converting h2 to a hash is not terrible
<Nilium> *a2
kyb3r_ has joined #ruby
hobodave has joined #ruby
hobodave has quit [Changing host]
hobodave has joined #ruby
<epitron> goddamn, Array#delete is doing something crazy
<epitron> it looks like it's in-place shifting the array
<Nilium> Converting a million-integer array to a set certainly takes a while
<epitron> that's a lot of objects
anmn has quit [Quit: leaving]
sevenseacat has quit [Read error: Connection reset by peer]
<Nilium> Yeah, but it's huge
<Nilium> Huge makes it easier to eyeball at 11pm
bashusr has quit [Read error: Connection reset by peer]
<epitron> only takes 0.9s on my box
pu22l3r has quit [Remote host closed the connection]
Ulrike_Klaus is now known as Ulrike_Rayne
az7ar is now known as az7ar_away
<Nilium> Takes about 8 seconds here.
<Nilium> That said, it's just 1_000_000.times.to_a.shuffle, so it's entirely unique integers being stuffed into a Set
<Nilium> Bitset would make more sense in this case
x1337807x has joined #ruby
Techguy305|2 has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
kyb3r_ has quit [Read error: Connection reset by peer]
Techguy305 has quit [Ping timeout: 240 seconds]
x1337807x has joined #ruby
bashusr has joined #ruby
Techguy305|2 has quit [Client Quit]
<Nilium> Huh, "shift width too big" error
Techguy305 has joined #ruby
skoocda has quit [Quit: Leaving]
<Nilium> Woops, had the memo and object flipped in reduce.
agrinb has joined #ruby
Takle has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
oo_ has quit [Remote host closed the connection]
basex has joined #ruby
<Nilium> Surprised the stdlib has no bitset. Oh well. I should get ready for bed.
<epitron> bitset?
oo_ has joined #ruby
<epitron> like, an array of bits?
jenrzzz has joined #ruby
<epitron> integers are actually arrays of bits in ruby
uber_hulk has quit [Quit: leaving]
<epitron> 8.times { |n| print 42[n] }
agrinb has quit [Ping timeout: 258 seconds]
<Nilium> epitron: Basically an array of bits with fast test/set ops
Takle has quit [Ping timeout: 272 seconds]
<Nilium> Bignums are usually fine for this but if you modify one it's a new bignum rather than in-place
<Nilium> So, ideally, a bitset is mutable
Sawbones has joined #ruby
basex has quit [Ping timeout: 264 seconds]
rshetty has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
<banister> epitron hello christmas eppy!
jenrzzz has quit [Ping timeout: 272 seconds]
<Nilium> I'm good at weird, tedious problems, which is probably why my job is driving me slightly insane with garbage node.js tools maintenance.
jdj_dk has quit [Ping timeout: 244 seconds]
<Nilium> And I have to work tomorrow, so I should go lay down and pretend I'm dead for about 6 hours.
commmmodo has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
commmmodo has quit [Client Quit]
bashusr has joined #ruby
rbrs has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
<epitron> Nilium: ahhh, ok
<epitron> banister: hey!
Sawbones has quit [Remote host closed the connection]
<epitron> i think i just made pookie a code eval bot
commmmodo has joined #ruby
Sawbones has joined #ruby
<epitron> i gotta throw this plugin into cinch
raphaelrk has quit [Ping timeout: 252 seconds]
az7ar_away is now known as az7ar
bashusr has quit [Read error: Connection reset by peer]
bigmac has quit [Ping timeout: 272 seconds]
lolmaus has joined #ruby
Sawbones has quit [Remote host closed the connection]
ndrei has joined #ruby
aswen has joined #ruby
babykosh has joined #ruby
fabrice31 has joined #ruby
yfeldblum has joined #ruby
Sawbones has joined #ruby
bashusr has joined #ruby
babykosh has quit [Client Quit]
zen has joined #ruby
zen is now known as Guest98545
uber_hulk has joined #ruby
uber_hulk is now known as boomer_by
commmmodo has quit [Quit: commmmodo]
Sawbones has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 252 seconds]
bashusr has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Ping timeout: 258 seconds]
Musashi007 has joined #ruby
lessless has joined #ruby
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Hobogrammer has joined #ruby
hobodave has quit [Quit: Computer has gone to sleep.]
dcarmich has joined #ruby
bashusr has joined #ruby
lxsameer has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
bmichelsen has quit [Quit: ZZZzzz…]
bashusr has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
commmmodo has joined #ruby
bashusr has joined #ruby
devoldmx has quit [Remote host closed the connection]
mrdtt has quit [Quit: Textual IRC Client: www.textualapp.com]
commmmodo has quit [Client Quit]
anaeem1 has joined #ruby
anaeem1 has quit [Remote host closed the connection]
charliesome has joined #ruby
anaeem1_ has joined #ruby
govg has quit [Quit: leaving]
govg has joined #ruby
jmdade has joined #ruby
boomer_by has quit [Quit: leaving]
lemur has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
ponga has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
Tranquility has quit [Quit: Connection closed for inactivity]
Techguy305 has joined #ruby
jmdade has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
rikai has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
jdj_dk has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
Menorah has quit [Quit: This computer has gone to sleep]
govg has quit [Ping timeout: 245 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
zorak8 has joined #ruby
Musashi007 has joined #ruby
commmmodo has joined #ruby
Techguy305|2 has joined #ruby
commmmodo has quit [Client Quit]
Techguy305|2 has quit [Remote host closed the connection]
Techguy305 has quit [Ping timeout: 240 seconds]
rkalfane has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
jdj_dk has quit [Ping timeout: 255 seconds]
jdj_dk has joined #ruby
arup_r has joined #ruby
oo_ has joined #ruby
AndroUser466 has quit [Quit: good bye]
kapil__ has joined #ruby
Techguy305 has joined #ruby
nicolastarzia has joined #ruby
bashusr has joined #ruby
oo_ has quit [Remote host closed the connection]
raphaelrk has joined #ruby
armyriad has joined #ruby
nicolastarzia has quit [Ping timeout: 258 seconds]
conniemj__ has joined #ruby
armyriad has quit [Remote host closed the connection]
armyriad has joined #ruby
uber_hulk has joined #ruby
raphaelrk has quit [Ping timeout: 264 seconds]
Pupeno has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
rshetty has joined #ruby
Techguy305|2 has joined #ruby
klmlfl has joined #ruby
psy has quit [Ping timeout: 255 seconds]
cantonic has quit [Quit: cantonic]
zarubin has joined #ruby
HoloIRCUser3 has joined #ruby
basex has joined #ruby
Techguy305|2 has quit [Ping timeout: 245 seconds]
Techguy305 has quit [Ping timeout: 272 seconds]
uber_hulk has quit [Quit: leaving]
Flcn_ has joined #ruby
Guest98545 has quit [Ping timeout: 256 seconds]
ohaibbq has quit [Quit: Leaving...]
Akagi201_ has joined #ruby
pengin has joined #ruby
Akagi201 has quit [Read error: Connection reset by peer]
zen has joined #ruby
Flcn_ has quit [Ping timeout: 258 seconds]
HoloIRCUser3 has quit [Remote host closed the connection]
zen is now known as Guest97601
Flcn_ has joined #ruby
arup_r has quit [Remote host closed the connection]
josephndenton has joined #ruby
rbrs has joined #ruby
<dtordable> good morning!
lolmaus has quit [Quit: Konversation terminated!]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dtordable> shevy: sleep!
pengin has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 240 seconds]
kedare has quit [Quit: WeeChat 0.4.4-dev]
pengin has joined #ruby
BryanWB has joined #ruby
lessless has joined #ruby
<shevy> dtordable no
<shevy> I'll stay awake
<BryanWB> is there a gpg gem that ppl recommend?
TgMts has joined #ruby
Zai00 has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
gja has joined #ruby
<dtordable> shevy: you have to sleep...
pengin has quit [Ping timeout: 264 seconds]
sevenseacat has joined #ruby
lzx has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
TgMts has quit [Ping timeout: 252 seconds]
agrinb has joined #ruby
Darryl__ has quit [Quit: Connection closed for inactivity]
Takle has joined #ruby
<shevy> dtordable no
<shevy> dtordable go sleep you
<shevy> dtordable find your wife
coderhs has quit [Quit: This computer has gone to sleep]
jdj_dk has quit [Remote host closed the connection]
conniemj__ has quit [Quit: (null)]
<dtordable> shevy: do you want to know how did I called my wife? I called her an UFO
jdj_dk has joined #ruby
<dtordable> sometimes you see her
<dtordable> someothertimes you won't
<dtordable> lol
fantazo has quit [Quit: Verlassend]
<shevy> why
<shevy> is she not there
<dtordable> she's not here, of course
bashusr has joined #ruby
<dtordable> she's now sleeping
agrinb has quit [Ping timeout: 258 seconds]
Takle has quit [Ping timeout: 255 seconds]
arup_r has joined #ruby
jdj_dk has quit [Ping timeout: 264 seconds]
hamakn has quit [Remote host closed the connection]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
clearlake has quit [Quit: Textual IRC Client: www.textualapp.com]
psy_ has joined #ruby
<shevy> lol
bashusr has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
<ponga> what's so fun shevy
rshetty has joined #ruby
lzx has quit [Remote host closed the connection]
<dtordable> the factual fact that I'm fucked!
<dtordable> lol
olekenneth has quit [Ping timeout: 245 seconds]
<ponga> nice rhyme
olekenneth has joined #ruby
<shevy> ponga dtordable is such a strange person
codehotter has quit [Ping timeout: 250 seconds]
<shevy> and he does not want to learn ruby
<shevy> dtordable wake her up
<shevy> I think I'll soon go to bed :\
<ponga> he doesn't want to learn ruby but still stays here?
<ponga> what is his job anyway
bashusr has quit [Read error: Connection reset by peer]
Musashi007 has quit [Quit: Musashi007]
<shevy> he is clowning #ruby :)
codehotter has joined #ruby
<shevy> medic in reallife or something like that
<ponga> we need as many clowns as possible in this channel
hamakn has joined #ruby
decoponio has joined #ruby
Musashi007 has joined #ruby
<dtordable> wow
<dtordable> mr shevy loves me
<dtordable> lmao
<ponga> are you a medic dtordable
<dtordable> yeah
<ponga> nice to see you
<ponga> i did service in korea
<dtordable> aha
bashusr has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<dtordable> you mean the korean war?
<dtordable> that
yfeldblum has joined #ruby
<ponga> no the obligatory military service
<dtordable> one that happened ago
<ponga> not that one
<ponga> then i'd have called me veteran
<dtordable> are you north korean?
<dtordable> hahhahaa
<ponga> ?
<ponga> haha
<ponga> northereners do 10yrs service
<ponga> i just did like 2 yrs
<dtordable> aha
<dtordable> then you seem to be fucked
<dtordable> military does that!!!!
<ponga> what are you talking about dtordable i already finished my service
kate_r has joined #ruby
<kate_r> Hi
Sawbones has joined #ruby
<dtordable> that being military is useless
<dtordable> anyway, I'm a medic because of the military!
<ponga> agreed lol
<kate_r> What's a good way to ensure a process, eg crawler, stays online and recovers from crashes?
bashusr has quit [Read error: Connection reset by peer]
<ponga> what do you because of the military
<ponga> do you live in israel or egypt dtordable
<dtordable> no no
<dtordable> I live in a worse place
<dtordable> lol
<ponga> ok
<dtordable> I mean, Spain
<ponga> better or less
<shevy> ponga oh damn man... how long does service take in korea? 3 years or something that long right?
<ponga> i heard today that korea now makes more money than spain from this year
<dtordable> is shit all around here
<ponga> good on you dtordable
<ponga> shevy: its now 2yrs
<shevy> dtordable rest of EU is not that much better anymore ;-)
<dtordable> shevy: get to sleep!!!!!
<shevy> ponga ah ok... that's still quite a lot. here in austria it is now 6 months
lemur has quit [Remote host closed the connection]
<shevy> then again we couldn't defend against invading teletubbies anyway
<ponga> lol
klmlfl has quit [Remote host closed the connection]
<ponga> lazy astrians
yfeldblum has quit [Ping timeout: 250 seconds]
<dtordable> I need coffee....
lemur has joined #ruby
<dtordable> is more useful than my wife...
bmichelsen has joined #ruby
Darryl__ has joined #ruby
tokik has joined #ruby
<ponga> well at least to those some my old friends in NewZealand who occassionally post something to sound cool (or ganster whatever) on FB about gun or shit
<ponga> now i reply to them that i actually shot guns in military format
olivier_bK has joined #ruby
<ponga> like "*uck you losers
startupality has joined #ruby
<ponga> dtordable: isn't that supposed to be alcohol
mengu has quit [Remote host closed the connection]
bashusr has joined #ruby
kate_r has quit [Ping timeout: 252 seconds]
<shevy> well early morning
<shevy> he has to fully wake up first
<shevy> then he can get drunk :)
lemur has quit [Ping timeout: 240 seconds]
<dtordable> cigarrette took
<dtordable> now the coffee
<dtordable> is like my cocaine
<dtordable> but more healthy
<dtordable> lol
<dtordable> ponga: if I do a carajillo then it will contain alcohol
<dtordable> anyway, I'm abstemy in a way
<dtordable> (but I do love inish beer)
<dtordable> (and Scotish whiskey)
iamninja has joined #ruby
<dtordable> but well... drugs are all bad
bashusr has quit [Read error: Connection reset by peer]
zorak8 has quit [Ping timeout: 265 seconds]
shredding has joined #ruby
lkba has joined #ruby
rshetty_ has joined #ruby
druznek has joined #ruby
oo_ has joined #ruby
Flcn_ has quit [Quit: Be back later ...]
rshetty__ has joined #ruby
az7ar is now known as az7ar_away
rshett___ has joined #ruby
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
oo_ has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 264 seconds]
rshetty_ has quit [Ping timeout: 258 seconds]
Sawbones has quit [Remote host closed the connection]
<dtordable> no one speaks
rshetty__ has quit [Ping timeout: 258 seconds]
<dtordable> ponga: speak!
bashusr has quit [Read error: Connection reset by peer]
tokik has quit [Ping timeout: 245 seconds]
Musashi007 has quit [Quit: Musashi007]
oleo is now known as Guest16458
oleo__ has joined #ruby
georgesmith has joined #ruby
raphaelrk has joined #ruby
agrinb has joined #ruby
oo_ has joined #ruby
bashusr has joined #ruby
Guest16458 has quit [Ping timeout: 272 seconds]
bashusr has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
coderhs has joined #ruby
oo_ has quit [Remote host closed the connection]
MrIlyas has joined #ruby
raphaelrk has quit [Ping timeout: 255 seconds]
agrinb has quit [Ping timeout: 258 seconds]
bashusr has joined #ruby
schfkt has joined #ruby
mengu has joined #ruby
startupality has quit [Quit: startupality]
bashusr has quit [Read error: Connection reset by peer]
coderhs has quit [Quit: This computer has gone to sleep]
aswen has quit [Ping timeout: 245 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu has quit [Ping timeout: 250 seconds]
bmichelsen has quit [Quit: ZZZzzz…]
startupality has joined #ruby
bashusr has joined #ruby
Guest26597 has joined #ruby
nicolastarzia has joined #ruby
schfkt has quit [Ping timeout: 245 seconds]
coderhs has joined #ruby
coderhs has quit [Client Quit]
schfkt has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
valeriansaliou has joined #ruby
Takle has joined #ruby
georgesmith has quit [Quit: georgesmith]
codecop has joined #ruby
nicolastarzia has quit [Ping timeout: 244 seconds]
yfeldblum has joined #ruby
Mia has joined #ruby
renderful has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
Takle has quit [Ping timeout: 252 seconds]
Axy has quit [Ping timeout: 252 seconds]
coderhs has joined #ruby
fabrice31 has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
Photism has quit [Quit: Leaving]
renderful has quit [Ping timeout: 244 seconds]
charliesome has quit [Quit: zzz]
rshett___ has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 245 seconds]
RedDwarf is now known as Zackio
asmodlol has quit [Ping timeout: 240 seconds]
aswen has joined #ruby
spider-mario has joined #ruby
oo_ has joined #ruby
anaeem___ has joined #ruby
m8 has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Ping timeout: 252 seconds]
asmodlol has joined #ruby
coderhs has quit [Quit: This computer has gone to sleep]
shredding has quit [Quit: shredding]
despai has joined #ruby
charliesome has joined #ruby
HoloIRCUser4 has joined #ruby
ishikawa91 has quit [Quit: Connection closed for inactivity]
HoloIRCUser4 has quit [Remote host closed the connection]
MrIlyas_ has joined #ruby
bashusr has joined #ruby
Takle has joined #ruby
schfkt has quit [Ping timeout: 245 seconds]
MrIlyas has quit [Ping timeout: 255 seconds]
anaeem___ has quit [Quit: Leaving...]
schfkt has joined #ruby
shredding has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
startupality has quit [Quit: startupality]
startupality has joined #ruby
startupality has quit [Client Quit]
schfkt has quit [Ping timeout: 258 seconds]
schfkt_ has joined #ruby
eka has joined #ruby
coderhs has joined #ruby
bashusr has joined #ruby
nfk has joined #ruby
AUS3RIS has joined #ruby
shredding has quit [Quit: shredding]
govg has joined #ruby
vvivv has joined #ruby
codezomb has joined #ruby
agrinb has joined #ruby
rshetty has joined #ruby
rkday has joined #ruby
startupality has joined #ruby
schfkt_ has quit [Ping timeout: 264 seconds]
agrinb has quit [Ping timeout: 258 seconds]
despai has quit [Quit: This computer has gone to sleep]
adriancb has joined #ruby
Flcn_ has joined #ruby
arup_r_ has joined #ruby
rkday has quit [Ping timeout: 250 seconds]
schfkt has joined #ruby
arup_r has quit [Ping timeout: 258 seconds]
MrIlyas has joined #ruby
Mia has quit [Read error: Connection reset by peer]
adriancb has quit [Ping timeout: 244 seconds]
Flcn_ has quit [Ping timeout: 272 seconds]
bashusr has quit [Read error: Connection reset by peer]
xfz_ is now known as xfz
MrIlyas_ has quit [Ping timeout: 244 seconds]
coderhs has quit [Quit: This computer has gone to sleep]
17SAA9KIG has joined #ruby
atmosx has joined #ruby
coderhs has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
echooo1 has joined #ruby
bashusr has joined #ruby
<atmosx> hello
echooo has quit [Ping timeout: 240 seconds]
xrlabs has quit [Remote host closed the connection]
rkday has joined #ruby
<dtordable> hello atmosx
<atmosx> hm I wonder if there's any more straight forward method to get current computers time than Time.now.gmtime.getlocal
yfeldblum has joined #ruby
<apeiros_> just plain Time.now
<atmosx> oh, sure, how stupid of me. I thought time.now was default to utc
Juanchito has joined #ruby
echooo1 has quit [Ping timeout: 244 seconds]
bashusr has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
phutchins has joined #ruby
Deele has joined #ruby
linduxed_ has quit [Quit: WeeChat 1.0.1]
AUS3RIS is now known as aus3ris
Solsist has joined #ruby
AxonetBE has joined #ruby
linduxed has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
vvivv has quit [Quit: Leaving]
elaptics`away is now known as elaptics
bashusr has joined #ruby
rkday has quit [Ping timeout: 250 seconds]
Musashi007 has quit [Quit: Musashi007]
Morkel_ has joined #ruby
coderhs has quit [Quit: This computer has gone to sleep]
phutchins has quit [Ping timeout: 258 seconds]
Morkel has quit [Ping timeout: 258 seconds]
Morkel_ is now known as Morkel
commmmodo has joined #ruby
sevenseacat has quit [Quit: Leaving.]
sevenseacat has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 245 seconds]
hmsimha has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
startupality has quit [Quit: startupality]
startupality has joined #ruby
Pisuke has joined #ruby
bmichelsen has joined #ruby
dain has joined #ruby
Solsist has quit []
AxonetBE has quit [Quit: AxonetBE]
bashusr has joined #ruby
commmmodo has quit [Quit: commmmodo]
rkalfane has joined #ruby
mengu has joined #ruby
17SAA9KIG has quit [Quit: exit error code 434]
psy_ has quit [Remote host closed the connection]
Akuma has joined #ruby
tejas has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Stalkr_ has joined #ruby
coderhs has joined #ruby
rkday has joined #ruby
rshetty_ has joined #ruby
giuseppesolinas has joined #ruby
gja has quit [Ping timeout: 258 seconds]
Guest97601 has quit [Ping timeout: 265 seconds]
<arup_r_> #itself still not available here - http://www.ruby-doc.org/core-2.2.0/Kernel.html .. Why ?
grzywacz has joined #ruby
grzywacz has joined #ruby
rshetty__ has joined #ruby
rshetty has quit [Ping timeout: 250 seconds]
bashusr has joined #ruby
Darryl__ has quit [Quit: Connection closed for inactivity]
jeff-ooh has joined #ruby
nfk has quit [Quit: yawn]
rshetty has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
Musashi007 has joined #ruby
rshetty_ has quit [Ping timeout: 255 seconds]
agrinb has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
dain has quit [Ping timeout: 264 seconds]
raphaelrk has joined #ruby
rshetty__ has quit [Ping timeout: 255 seconds]
oo_ has joined #ruby
davout has joined #ruby
<atmosx> arup_r_: is itself a new method added in 2.2?
bashusr has quit [Read error: Connection reset by peer]
<davout> o hey all, does any one have a good reference on the development flow for native extensions ?
<davout> for example i know how to manually load an unpacked gem from a working tree, but i have no idea how to get ruby to properly load the manually built native extension
josephndenton has joined #ruby
schfkt has quit [Ping timeout: 244 seconds]
agrinb has quit [Ping timeout: 258 seconds]
raphaelrk has quit [Ping timeout: 244 seconds]
Xeago has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
schfkt has joined #ruby
startupality has quit [Quit: startupality]
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago_ has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
bashusr has joined #ruby
<arup_r_> atmosx: yes
josephndenton has quit [Ping timeout: 256 seconds]
startupality has joined #ruby
aus3ris is now known as AUS3RIS
<atmosx> oh cool
AUS3RIS is now known as aus3ris
<arup_r_> But in the official documentation it is absent
bluOxigen has joined #ruby
<arup_r_> atmosx: Do you use Rspec, Sinatra ?
Xeago has quit [Ping timeout: 272 seconds]
<atmosx> arup_r_: yes
<arup_r_> Would you help me then? I got stuck in one route testing...
<atmosx> arup_r_: but I'm not good enough at writing tests, I struggle a lot... slows down my dev speed incredibly.
<atmosx> arup_r_: sure if I can
Xeago has joined #ruby
giuseppesolinas has joined #ruby
<arup_r_> Me not to.. But I try to write.. with a hope one day will come.. when I'll be confident also it..
<atmosx> arup_r_: show me the code
<arup_r_> I am very new to Sinatra too...
Hobogrammer has quit [Ping timeout: 244 seconds]
coderhs has quit [Quit: This computer has gone to sleep]
<atmosx> arup_r_: does this work? gist = List.new(Task.all).to_gist outside of testing env?
schfkt has quit [Ping timeout: 255 seconds]
Xeago_ has quit [Ping timeout: 256 seconds]
<arup_r_> yes,, all is working..
<atmosx> cool
zorak8 has joined #ruby
schfkt has joined #ruby
<arup_r_> only this follow_redirect! is the culprit
<arup_r_> I saw lots of blogposts.. who used this method in test
<arup_r_> But in my case it didn't work
<arup_r_> atmosx: I made the test pass by this - https://github.com/aruprakshit/ToDoList/blob/master/spec/todo_spec.rb#L42-L53 .. But still wanna to know why that didn't work
psy has joined #ruby
<atmosx> arup_r_: sorry mate, no idea.
ziyadb has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
kapil__ has joined #ruby
nicolastarzia has joined #ruby
Xeago_ has joined #ruby
coderhs has joined #ruby
<atmosx> I guess the line causing the trouble is expect(last_response).to be_redirect
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
conniemj__ has joined #ruby
<arup_r_> Ok.. I'll check then..
<arup_r_> but why do you think so?
<atmosx> because of the error
knikolov_ has quit [Ping timeout: 272 seconds]
bashusr has quit [Read error: Connection reset by peer]
<atmosx> try to read the result of that last response, might not be a redirect (although it should).
<atmosx> have to go change and eat!
zen has joined #ruby
<atmosx> Cya later arup_r_ good luck
<arup_r_> Np
<arup_r_> Vya
Xeago has quit [Ping timeout: 244 seconds]
knikolov has joined #ruby
<arup_r_> Cya
jeff-ooh has quit [Remote host closed the connection]
<arup_r_> :)
zen is now known as Guest78311
nicolastarzia has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
zorak8 has quit [Read error: Connection reset by peer]
zorak8 has joined #ruby
havenwood has quit []
conniemj__ has quit [Ping timeout: 255 seconds]
coderhs has quit [Quit: This computer has gone to sleep]
bashusr has joined #ruby
Guest78311 has quit [Ping timeout: 272 seconds]
Timgauthier has joined #ruby
<Timgauthier> modrewrite is a nightmare...
<Timgauthier> how to allow direct access to a specifc file when my system is already being set to rewrite everything to an index.html and i havn't a clue what i'm doing
rshetty_ has joined #ruby
georgesmith has joined #ruby
tuxdna has joined #ruby
lxsameer has quit [Quit: Leaving]
ajaiswal has quit [Quit: Leaving]
bashusr has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 255 seconds]
shazaum has joined #ruby
rshetty has quit [Ping timeout: 245 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
Xeago_ has quit [Remote host closed the connection]
Xeago has joined #ruby
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31 has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
Jackneill has joined #ruby
startupality has quit [Quit: startupality]
Xeago has quit [Ping timeout: 245 seconds]
grzywacz has left #ruby [":wq"]
aus3ris has quit [Quit: ZZZzzz…]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
fabrice31 has quit [Ping timeout: 245 seconds]
jdj_dk has joined #ruby
startupality has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
lemur has joined #ruby
valeriansaliou has joined #ruby
s00pcan has joined #ruby
coderhs has joined #ruby
Xeago has joined #ruby
Xeago_ has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
Musashi007 has quit [Quit: Musashi007]
neoxquick has quit [Ping timeout: 245 seconds]
phutchins has joined #ruby
bashusr has joined #ruby
lemur has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: zzz]
davout has quit [Remote host closed the connection]
Xeago has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
agrinb has joined #ruby
knikolov_ has joined #ruby
phutchins has quit [Ping timeout: 240 seconds]
bashusr has quit [Read error: Connection reset by peer]
Timgauthier is now known as timgauthier_away
knikolov has quit [Ping timeout: 252 seconds]
agrinb has quit [Ping timeout: 258 seconds]
rshetty_ has quit [Remote host closed the connection]
bashusr has joined #ruby
tuxdna has quit [Ping timeout: 258 seconds]
aus3ris has joined #ruby
mengu has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 244 seconds]
j0n3 has joined #ruby
kith has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
asmodlol has joined #ruby
kith has joined #ruby
s00pcan has quit [Ping timeout: 265 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AmirolAhmad has joined #ruby
bashusr has joined #ruby
frog|OFF is now known as green-big-frog
santacat has quit [Quit: ZNC - http://znc.in]
Xeago_ has quit [Remote host closed the connection]
Xeago has joined #ruby
neoxquick has joined #ruby
Snowstormer has joined #ruby
tkuchiki has joined #ruby
schfkt has quit [Ping timeout: 245 seconds]
aus3ris is now known as aus3ris
schfkt has joined #ruby
aus3ris is now known as AUS3RIS
Snowstormer is now known as santacat
bashusr has quit [Read error: Connection reset by peer]
Neomex has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
asmodlol has quit [Ping timeout: 250 seconds]
tejas has quit [Quit: This computer has gone to sleep]
bashusr has joined #ruby
zen has joined #ruby
zen is now known as Guest79637
Zai00 has quit [Quit: Zai00]
asmodlol has joined #ruby
rshetty has joined #ruby
giuseppesolinas has joined #ruby
uber_hulk has joined #ruby
Guest79637 has quit [Ping timeout: 240 seconds]
Areessell has joined #ruby
uber_hulk has left #ruby [#ruby]
AlSquire has joined #ruby
rkalfane has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
giuseppesolinas has quit [Client Quit]
startupality has quit [Quit: startupality]
DadoCe has joined #ruby
hrs has joined #ruby
hrs has quit [Client Quit]
startupality has joined #ruby
Takle has quit [Remote host closed the connection]
bashusr has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
georgesmith has quit [Quit: georgesmith]
rshetty_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
rshetty has quit [Read error: Connection reset by peer]
Takle has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
paulfm has joined #ruby
arup_r_ has quit []
Darryl__ has joined #ruby
AUS3RIS has quit [Quit: i'm out]
mengu has joined #ruby
bashusr has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
Takle has quit [Ping timeout: 256 seconds]
kirun has joined #ruby
zorak8 has quit [Ping timeout: 256 seconds]
j0n3 has quit [Remote host closed the connection]
aclearman037 has joined #ruby
rikai has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
infoget has joined #ruby
AmirolAhmad has quit [Remote host closed the connection]
sarcas has joined #ruby
schfkt has quit [Ping timeout: 240 seconds]
schfkt has joined #ruby
mostlybadfly has joined #ruby
troulouliou_dev has joined #ruby
agrinb has joined #ruby
bashusr has joined #ruby
asmodlol has quit [Ping timeout: 258 seconds]
hmsimha has quit [Ping timeout: 252 seconds]
rbrs has quit [Quit: Leaving]
jdj_dk has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
dtordable has quit [Ping timeout: 240 seconds]
agrinb has quit [Ping timeout: 258 seconds]
asmodlol has joined #ruby
coderhs has quit [Quit: This computer has gone to sleep]
dtordable has joined #ruby
dtordable has quit [Changing host]
dtordable has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
tus has joined #ruby
bashusr has joined #ruby
yfeldblum has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
asmodlol has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
giuseppesolinas has joined #ruby
asmodlol has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
giuseppesolinas has quit [Client Quit]
zen_ has joined #ruby
fandi has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
_5kg has quit [Ping timeout: 258 seconds]
_5kg has joined #ruby
basex has quit [Remote host closed the connection]
Takle has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
exile-bot-2 has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
asmodlol has quit [Ping timeout: 245 seconds]
troulouliou_dev has quit [Remote host closed the connection]
asmodlol has joined #ruby
elaptics is now known as elaptics`away
bashusr has joined #ruby
exile-bot-2 has quit [Remote host closed the connection]
bmichelsen has quit [Quit: ZZZzzz…]
olivier_bK has quit [Remote host closed the connection]
shazaum has quit [Quit: This computer has gone to sleep]
startupality has quit [Quit: startupality]
valeriansaliou has joined #ruby
startupality has joined #ruby
Takle_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
ziyadb has quit [Quit: Connection closed for inactivity]
rkday has quit [Ping timeout: 252 seconds]
coderhs has quit [Quit: This computer has gone to sleep]
tuxdna has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
olivier_bK has joined #ruby
bashusr has joined #ruby
green-big-frog is now known as frog|OFF
druznek has quit [Ping timeout: 240 seconds]
startupality has quit [Quit: startupality]
chinmay_dd has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
shredding has joined #ruby
coderhs has joined #ruby
phutchins has joined #ruby
<ponga> are you there shevy:
lkba has quit [Ping timeout: 265 seconds]
AmirolAhmad has joined #ruby
Takle has joined #ruby
iamjarvo has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
Takle_ has quit [Ping timeout: 244 seconds]
byprdct has joined #ruby
thumpba has joined #ruby
byprdct has quit [Max SendQ exceeded]
thumpba has quit [Remote host closed the connection]
AxonetBE has joined #ruby
Zai00 has joined #ruby
agrinb has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
AmirolAhmad has quit [Ping timeout: 265 seconds]
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
thumpba has joined #ruby
infoget1 has joined #ruby
pika_pika has joined #ruby
freerobby has joined #ruby
oleo__ has quit [Quit: Verlassend]
druznek has joined #ruby
infoget has quit [Ping timeout: 245 seconds]
asmodlol has quit [Ping timeout: 258 seconds]
asmodlol has joined #ruby
Techguy305 has joined #ruby
<shevy> am now
<shevy> I stayed up for too long :<
cantonic has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
shredding has quit [Quit: shredding]
rkday has joined #ruby
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
arup_r has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
AmirolAhmad has joined #ruby
gfawcettpq has quit [Ping timeout: 252 seconds]
oleo has joined #ruby
coderhs has quit [Quit: This computer has gone to sleep]
<soahccc> shevy: Früh morgens wachte ich auf, sechzehn Uhr zehn, die ganze Welt schein sich um mich zu dreh'n... Like that? :)
claymore has joined #ruby
<shevy> no
<shevy> it is not spinning around
<shevy> but it is holiday and I have no real food left :(
<soahccc> Haha I have the same problem
yfeldblum has joined #ruby
<soahccc> I only have coffee and christmas candy
bashusr has joined #ruby
Xeago has quit [Remote host closed the connection]
AmirolAhmad has quit [Ping timeout: 250 seconds]
gfawcettpq has joined #ruby
infoget1 has left #ruby [#ruby]
Xeago has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
gfawcettpq has quit [Client Quit]
nicolastarzia has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
gfawcettpq has joined #ruby
rylev has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
alex88 has joined #ruby
Scripore has joined #ruby
Zai00 has quit [Quit: Zai00]
jeff-ooh has joined #ruby
startupality has joined #ruby
aswen has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
asmodlol has joined #ruby
doritostains has joined #ruby
<shevy> hehe
<shevy> candy
<shevy> so you can fatten up
<shevy> mr. flabby belly
rylev has quit [Remote host closed the connection]
santaClaws_ has quit [Remote host closed the connection]
rshetty_ is now known as rshetty
<ponga> shevy: do you have macbook
dblessing has joined #ruby
<ponga> i can't stop thinking that the way macbook shows white color on its LED screen hurts eye so bad
<bradland> ponga: you can adjust the color temperature in OS X, so if the cool white bothers your eyes, you can warm it up.
<shevy> nope no mac stuff here
<ponga> bradland: that doesn't help
Zai00 has joined #ruby
<ponga> i already use 5000 5500 6000
nicolastarzia has quit [Read error: Connection reset by peer]
bashusr has joined #ruby
<ponga> i also adjusted gamma, no help, it still hurts my eye
<bradland> have you tried wearing sunglasses while using the computer?
<ponga> sad
<bradland> hehe :)
giuseppesolinas has joined #ruby
basex has joined #ruby
<ponga> bradland: if i said yes i have thought that, would it make sadder
<ponga> and yes
<ponga> :(
Photism has joined #ruby
<soahccc> shevy: Well you know when you meet people you haven't met for about a year and you get things like "men you got chubby"? Well I got the question whether I can effort food since I'm so skinny... Was good on one hand, everyone were offering me something to eat I felt like a king :D
coderhs has joined #ruby
<soahccc> ponga: are you in a dark room?
<ponga> soahccc: no its really bright, i also have multiple devices laptop/desktop/mobile/ even kindle
<ponga> and its only the macbook thats hurting my eye
<soahccc> interesting, you got the plutonium edition? :D
dain_ has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
<ponga> its just that glare
<ponga> *ucking
sevenseacat has quit [Remote host closed the connection]
despai has joined #ruby
<shevy> ponga hey ... ever since gangnam style became popular, it's cool to wear sunglasses ;)
Jackneill has quit [Ping timeout: 272 seconds]
<ponga> glad i wasn't fat
<soahccc> ponga: well kindle is eink no?
<ponga> if i were, that'd make me like him
<ponga> soahccc: yes and i said 'even' to make a joke out of it :p
<ponga> 'course its eink
aswen has quit [Ping timeout: 245 seconds]
<shevy> ponga hehe fat but funny!
<soahccc> I need to get my christmas present from the office, my new air... My mbp is anything but bright anymore
AxonetBE has quit [Quit: AxonetBE]
dain_ has quit [Client Quit]
coderhs has quit [Quit: This computer has gone to sleep]
rippa has joined #ruby
coderhs has joined #ruby
Guest26597 has quit [Ping timeout: 255 seconds]
pu22l3r has joined #ruby
coderhs has quit [Quit: This computer has gone to sleep]
bashusr has quit [Read error: Connection reset by peer]
alex88 has quit []
_5kg has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby
asmodlol has quit [Ping timeout: 245 seconds]
asmodlol has joined #ruby
diegoviola has quit [Client Quit]
bashusr has joined #ruby
hyperdrive is now known as hdrv
hdrv has quit [Changing host]
hdrv has joined #ruby
diegoviola has joined #ruby
tkuchiki has joined #ruby
devdazed has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
diegoviola has quit [Client Quit]
diegoviola has joined #ruby
DadoCe has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
DadoCe has joined #ruby
agrinb has joined #ruby
ponga has quit [Remote host closed the connection]
hiyosi has joined #ruby
ponga has joined #ruby
<arup_r> can we say `||` is an alias of `|` ?
asmodlol has quit [Ping timeout: 272 seconds]
raphaelrk has joined #ruby
startupality has quit [Quit: startupality]
NoobForever has joined #ruby
asmodlol has joined #ruby
bashusr has joined #ruby
<NoobForever> ruby, really? how far are you gonna try to push this meme?
bashusr has quit [Read error: Connection reset by peer]
DadoCe has quit [Ping timeout: 244 seconds]
agrinb has quit [Ping timeout: 258 seconds]
<apeiros_> arup_r: no
davedev24_ has quit [Read error: Connection reset by peer]
coderhs has joined #ruby
<apeiros_> arup_r: || is syntax, | is a method, and each class can implement it the way it wants. see e.g. Array#| or Integer#| which have nothing in common with ||.
davedev24_ has joined #ruby
ponga has quit [Ping timeout: 265 seconds]
NoobForever has left #ruby ["Leaving"]
<arup_r> #| is OK
raphaelrk has quit [Ping timeout: 264 seconds]
<arup_r> I think something confusing here
rshetty has quit [Remote host closed the connection]
ishikawa has quit [Remote host closed the connection]
<arup_r> Humm got it
ishikawa has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
<arup_r> doco confused
coderhs has quit [Client Quit]
<arup_r> it wrote **both produces: or**
<arup_r> which is not trure
jeff-ooh has quit [Remote host closed the connection]
<arup_r> `||` will give `true`
bashusr has joined #ruby
pu22l3r has quit [Remote host closed the connection]
georgesmith has joined #ruby
yfeldblum has joined #ruby
gfawcettpq has quit [Quit: Leaving.]
hobodave has joined #ruby
Xeago has joined #ruby
mengu has quit [Remote host closed the connection]
hobodave has quit [Client Quit]
yfeldblum has quit [Ping timeout: 252 seconds]
bmichelsen has joined #ruby
hobodave has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.0.1]
georgesmith has left #ruby [#ruby]
hobodave has quit [Client Quit]
bashusr has quit [Read error: Connection reset by peer]
startupality has joined #ruby
Morkel has quit [Quit: Morkel]
bogeyd6 has joined #ruby
<shevy> arup_r do you never sleep?
coderhs has joined #ruby
Takle has quit [Read error: No route to host]
Takle has joined #ruby
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Techguy305 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
bashusr has joined #ruby
Techguy305 has joined #ruby
adriancb has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
agrinb has joined #ruby
<arup_r> shevy: Thanks for asking.. :( Yes I do.. But very little
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<arup_r> shevy: I have piles of stuff to read and learn
rshetty has joined #ruby
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
<shevy> hehe
<shevy> know that feeling
<shevy> it just refuses to become any less, right?
asmodlol has quit [Ping timeout: 244 seconds]
mengu has quit [Client Quit]
az7ar_away is now known as az7ar
Scripore has quit [Ping timeout: 265 seconds]
asmodlol has joined #ruby
adriancb has quit [Ping timeout: 264 seconds]
kate_r has joined #ruby
<kate_r> Hi
<kate_r> (kate_r) I'd like to keep my crawler online and recovers from crashes, is there a good way for doing that?
bashusr has joined #ruby
joast has joined #ruby
_5kg has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
<arup_r> shevy: Humm
AmirolAhmad has joined #ruby
devdazed has joined #ruby
Xeago has quit [Remote host closed the connection]
kate_r has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
claptor has quit [Quit: this channel is bakas]
coderhs has quit [Quit: This computer has gone to sleep]
kate_r has joined #ruby
adriancb has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
olivier_bK has quit [Ping timeout: 264 seconds]
rylev has joined #ruby
startupality has quit [Quit: startupality]
asmodlol has joined #ruby
freerobby has quit [Quit: Leaving.]
freerobby has joined #ruby
startupality has joined #ruby
karmatr0n has joined #ruby
Takle has quit [Read error: No route to host]
Takle has joined #ruby
rylev has quit [Ping timeout: 258 seconds]
bashusr has quit [Read error: Connection reset by peer]
stunder has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Jackneill has joined #ruby
<apeiros_> arup_r: again, | is a method. you are reading the docs for TrueClass#|
<apeiros_> and TrueClass#| is not the same method as Array#|. even though they have the same name.
rylev has joined #ruby
<apeiros_> it's no different than Hash#each and Array#each not being the same method. they just have the same name.
<arup_r> Yes yes.. I know
<apeiros_> kate_r: begin/rescue/end is your friend.
basex has quit [Remote host closed the connection]
<arup_r> I am saying doco is wrong at least the way they documented is misleading
<apeiros_> kate_r: google "ruby exception handling"
<apeiros_> arup_r: errr, BS? docs are correct.
maestrojed has joined #ruby
charliesome has quit [Quit: zzz]
<apeiros_> and I don't see how it is misleading. they give example code and show its output.
<arup_r> apeiros_: Come one.. Read what they said after the line **Produces:**
<apeiros_> arup_r: did you read it?
bashusr has joined #ruby
<apeiros_> `true | puts("or"); true || puts("logical or")` -> produces the output "or"
<apeiros_> and they explain above why that is.
<arup_r> You are forcing me to re-read
Xeago has joined #ruby
<arup_r> true || puts("logical or") gives output `true` not `or`.
<apeiros_> type the code in irb/pry/ruby and see for yourself.
<arup_r> [arup@to_do_app]$ irb
<arup_r> >> true || puts("logical or")
<arup_r> => true
<arup_r> >>
<eval-in__> arup_r => true (https://eval.in/237222)
<eval-in__> arup_r => nil (https://eval.in/237223)
<arup_r> apeiros_: ^^^
spastorino has joined #ruby
az7ar is now known as az7ar_away
rbrs has joined #ruby
<arup_r> >> true | puts("or")
<eval-in__> arup_r => or ... (https://eval.in/237224)
<apeiros_> arup_r: now check the link. sadly eval-in labels the return value as "output". it is not.
<apeiros_> true || puts("logical or") # does not produce any output
az7ar_away is now known as az7ar
<apeiros_> true | puts("logical or") # produces the output "or"
<arup_r> Yes
<apeiros_> or short: "produces 'or'"
<apeiros_> which is *exactly* what they say.
<arup_r> But `||` version in IRB gives `true`
devdazed has quit [Quit: Computer has gone to sleep.]
<apeiros_> arup_r: return value vs. output. grok the diff.
rylev has quit [Remote host closed the connection]
mary5030 has joined #ruby
agrinb_ has joined #ruby
devoldmx has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
snath has quit [Ping timeout: 240 seconds]
Lucky has joined #ruby
devdazed has joined #ruby
<arup_r> I'm now completely confused... what you meant?
gja has joined #ruby
dopiee has joined #ruby
<arup_r> They both are not producing `or`... and they shouldn't as per the current code.
agrinb_ has quit [Ping timeout: 258 seconds]
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
<apeiros_> arup_r: *produce* == *produce as output* == *print*
krz has joined #ruby
dopie has quit [Ping timeout: 258 seconds]
<apeiros_> it does not mean `produce == act like`
<arup_r> hehehe got it..
<arup_r> I forgot I am not well in English
nchase_ has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
nchase_ has quit [Client Quit]
startupality has quit [Quit: startupality]
Hanmac has quit [Ping timeout: 244 seconds]
rook_flood_ has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
Scripore has joined #ruby
rook_flood_ has left #ruby [#ruby]
bdamos has joined #ruby
giuseppesolinas has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
jeff-ooh has joined #ruby
Blackhol_ has joined #ruby
yfeldblum has quit [Ping timeout: 244 seconds]
claudiuinberlin has joined #ruby
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
chipotle has joined #ruby
frog|OFF is now known as green-big-frog
Scripore has quit [Ping timeout: 240 seconds]
thumpba has quit [Remote host closed the connection]
thumpba has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
jeff-ooh has quit [Ping timeout: 245 seconds]
pu22l3r has joined #ruby
Zai00 has quit [Quit: Zai00]
Scripore has joined #ruby
<shevy> are regex classes like [:space:] used often?
Hanmac has joined #ruby
startupality has joined #ruby
evanjs has joined #ruby
felltir has joined #ruby
bdamos has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
nicolastarzia has joined #ruby
MrIlyas_ has joined #ruby
felltir has quit [Client Quit]
devoldmx has quit [Ping timeout: 240 seconds]
MrIlyas has quit [Ping timeout: 240 seconds]
evanjs has quit [Remote host closed the connection]
devoldmx has joined #ruby
ptrrr has joined #ruby
bdamos has joined #ruby
thumpba has quit [Remote host closed the connection]
kate_r has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
kate_r has joined #ruby
bashusr has joined #ruby
nicolastarzia has quit [Ping timeout: 265 seconds]
wookiehangover has quit [Ping timeout: 258 seconds]
diegoviola has quit [Quit: WeeChat 1.0.1]
<Morrolan> I find something like /[[:alnum:]]/ a tad more convenient than /[a-zA-Z0-9]/. Probably also more clear on what you intend to match.
Solsist has joined #ruby
Solsist has quit [Client Quit]
despai has quit [Quit: This computer has gone to sleep]
dtordabl1 has joined #ruby
dtordable has quit [Ping timeout: 258 seconds]
bashusr has quit [Read error: Connection reset by peer]
jeff-ooh has joined #ruby
despai has joined #ruby
bashusr has joined #ruby
devoldmx33 has joined #ruby
devdazed has joined #ruby
az7ar is now known as az7ar_away
wookiehangover has joined #ruby
Scripore has quit [Ping timeout: 264 seconds]
devoldmx has quit [Ping timeout: 244 seconds]
sambao21 has joined #ruby
despai has quit [Client Quit]
az7ar_away is now known as az7ar
TheAtomicGoose has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<TheAtomicGoose> how do you read online files with ruby? i know how to do it with local files, but not with remote ones.
<apeiros_> TheAtomicGoose: require 'open-uri'; contents = open('http://www.example.com/', &:read)
<TheAtomicGoose> apeiros_, godd2: thank you
despai has joined #ruby
Channel6 has joined #ruby
Takle_ has joined #ruby
tadasp has joined #ruby
kate_r has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Stalkr_ has left #ruby ["Linkinus - http://linkinus.com"]
dtordabl1 is now known as dtordable
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
dtordable has quit [Changing host]
dtordable has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
despai has quit [Client Quit]
Takle has quit [Ping timeout: 265 seconds]
bashusr has joined #ruby
despai has joined #ruby
thumpba has quit [Remote host closed the connection]
tier has joined #ruby
<arup_r> any idea why not getting id value inside inside the params Hash ? https://gist.github.com/aruprakshit/93b4db07d2ec2d408b60
thumpba has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
krz has quit [Quit: WeeChat 1.0.1]
despai has quit [Client Quit]
jobewan has joined #ruby
<godd2> arup_r probably best to ask #rubyonrails channel
bmichelsen has quit [Quit: ZZZzzz…]
agrinb_ has joined #ruby
<arup_r> This is Sinatra
basex has joined #ruby
Aswebb_ has joined #ruby
bashusr has joined #ruby
doodlehaus has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
despai has joined #ruby
<godd2> ah
amundj has joined #ruby
<godd2> it might be because when you do a redirect, you don't maintain the :id that was passed in
sarcas has quit [Ping timeout: 258 seconds]
<godd2> but I don't know enough Sinatra to know for sure.
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agrinb_ has quit [Ping timeout: 258 seconds]
basex has quit [Ping timeout: 265 seconds]
<shevy> godd!
<shevy> I mean
<shevy> godd2!
<shevy> merry xmas!!!
<godd2> you're 364 days early ;)
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<godd2> but for the sake of good will, merry christmas to you too shevy
bashusr has joined #ruby
<shevy> haha
<shevy> and soon it is 2015
<shevy> we gotta finish some code before 2014 ends!
amundj has quit [Ping timeout: 256 seconds]
schfkt has quit [Ping timeout: 240 seconds]
aclearman037 has joined #ruby
<godd2> its okay, I'm watching a video on complex analysis
snath has joined #ruby
gregf has joined #ruby
az7ar is now known as az7ar_away
Zai00 has joined #ruby
az7ar_away is now known as az7ar
bashusr has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
wallerdev has joined #ruby
bmichelsen has joined #ruby
iamjarvo has joined #ruby
green-big-frog is now known as frog|OFF
ponga has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
rylev has joined #ruby
VBlizzard has quit [Ping timeout: 252 seconds]
bmichelsen has quit [Ping timeout: 240 seconds]
tuxdna has quit [Ping timeout: 244 seconds]
bashusr has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
etqqkoiflwhb has joined #ruby
az7ar is now known as az7ar_away
rylev has quit [Ping timeout: 258 seconds]
bashusr has quit [Read error: Connection reset by peer]
schfkt has joined #ruby
<etqqkoiflwhb> Has anyone played around with the \p{} construct (http://www.ruby-doc.org/core-1.9.3/Regexp.html). Is it possible to match all unicode math characters /\p{Sm}/ except a few like +, - etc.
phutchins has quit [Ping timeout: 256 seconds]
hamakn has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 258 seconds]
yeticry has quit [Ping timeout: 256 seconds]
Tarential has quit [Quit: I shouldn't really be here - dircproxy 1.0.5]
bashusr has joined #ruby
Lucky has quit [Disconnected by services]
davedev2_ has joined #ruby
agjacome has joined #ruby
davedev24_ has quit [Ping timeout: 258 seconds]
cmarques has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Darryl__ has quit [Quit: Connection closed for inactivity]
Zai00_ has joined #ruby
Zai00 has quit [Ping timeout: 252 seconds]
Zai00_ is now known as Zai00
davedev2_ has quit [Ping timeout: 258 seconds]
<shevy> I think so, I played around briefly when apeiros_ told me that this exists
wallerdev has quit [Quit: wallerdev]
Guest50216 has joined #ruby
Flcn_ has joined #ruby
davedev24_ has joined #ruby
shredding has joined #ruby
studiotate has joined #ruby
basex has joined #ruby
bashusr has joined #ruby
<etqqkoiflwhb> Found it, can write something like /[\p{Sm}&&[^+]]/
AmirolAhmad has quit [Remote host closed the connection]
<shevy> huh
<shevy> what is Sm
<bradland> Symbol Math
<shevy> cool
<bradland> Unicode code point general category.
AmirolAhmad has joined #ruby
<etqqkoiflwhb> @shevy, more info on Regex page http://www.ruby-doc.org/core-1.9.3/Regexp.html
<bradland> anyone know if support for general category is font dependent?
<shevy> oh I see
<shevy> I thought it was limited to things like /\p{Space}/
<etqqkoiflwhb> shevy: no, categories are pretty useful if I want to match only say, currency characters
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
startupality_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Morkel has joined #ruby
startupality has quit [Ping timeout: 265 seconds]
startupality_ is now known as startupality
klmlfl has joined #ruby
ghostlines has joined #ruby
ghostlines has quit [Max SendQ exceeded]
Tranquility has joined #ruby
Takle_ has quit [Read error: Connection reset by peer]
klmlfl has quit [Remote host closed the connection]
nfk has joined #ruby
Takle has joined #ruby
jeff-ooh has quit [Remote host closed the connection]
doodlehaus has quit []
ARCADIVS has quit [Quit: ARCADIVS]
bashusr has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
FooMunki has joined #ruby
s00pcan has joined #ruby
dcarmich has joined #ruby
klmlfl has joined #ruby
klmlfl has quit [Remote host closed the connection]
agrinb has joined #ruby
AndyBotwin has joined #ruby
rshetty has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 256 seconds]
agrinb_ has joined #ruby
Apocalypse has joined #ruby
klmlfl has joined #ruby
Joufflu has quit [Quit: Leaving]
agrinb__ has joined #ruby
bashusr has joined #ruby
freerobby has quit [Quit: Leaving.]
bashusr has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 258 seconds]
cantonic has quit [Quit: cantonic]
ghostlines has joined #ruby
TheAtomicGoose has quit [Ping timeout: 265 seconds]
maestrojed has quit [Quit: Textual IRC Client: www.textualapp.com]
josephndenton has joined #ruby
agrinb_ has quit [Ping timeout: 258 seconds]
Stoge88 has joined #ruby
FooMunki has quit [Quit: FooMunki]
klmlfl has quit [Ping timeout: 250 seconds]
chinmay_dd has quit [Quit: Leaving]
agrinb__ has quit [Ping timeout: 258 seconds]
ndrei has joined #ruby
bashusr has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
cantonic has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
bashusr has joined #ruby
lessless has joined #ruby
jdj_dk has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
claudiuinberlin has quit [Quit: Leaving.]
yeticry has joined #ruby
kyb3r_ has joined #ruby
cmarques has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
govg has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
ponga has joined #ruby
kyb3r_ has quit [Ping timeout: 252 seconds]
kyb3r_ has joined #ruby
tejas-manohar has quit [Quit: Page closed]
rshetty has joined #ruby
bashusr has joined #ruby
tier has quit [Remote host closed the connection]
dtordable has quit [Ping timeout: 255 seconds]
dtordable has joined #ruby
dtordable has quit [Changing host]
dtordable has joined #ruby
ponga has quit [Ping timeout: 244 seconds]
rshetty has quit [Ping timeout: 245 seconds]
s00pcan has quit [Ping timeout: 240 seconds]
claudiuinberlin has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
aswen has joined #ruby
claudiuinberlin has quit [Client Quit]
wallerdev has joined #ruby
nicolastarzia has joined #ruby
vic736 has joined #ruby
klmlfl has joined #ruby
<vic736> hi folks!
<crome> hi
<vic736> anyone has troubles with json gem installation on ruby 2.2.0?
agrinb has joined #ruby
<crome> oh, its out :D
<vic736> yeap)
startupality has quit [Quit: startupality]
agrinb has quit [Remote host closed the connection]
<vic736> where it is better to submit issue?
lxsameer has joined #ruby
<vic736> gem json does not look alive
bashusr has joined #ruby
nicolastarzia has quit [Ping timeout: 258 seconds]
<shevy> guys I have a question
shredding has joined #ruby
startupality has joined #ruby
bigmac has joined #ruby
<shevy> I want to intercept something like puts 'hello world'
<shevy> I want to intercept it, and redirect it into the method of an object. Is there a way to do this?
druznek has quit [Quit: Leaving]
<j416> shevy: redefine Kernel#puts ?
<shevy> hmmmmm
<shevy> that idea scares me
<shevy> is there another way?
<j416> module Kernel; def puts(string); puts "hello, #{string}"; end; end
<j416> works
<j416> why do you need to do this?
iamjarvo has joined #ruby
<j416> sorry, not puts lol
<j416> print
<vic736> same approach
<j416> module Kernel; def puts(string); print "hello, #{string}\n"; end; end
<j416> (or call the origina puts)
<j416> l
basex has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
pwnz0r has joined #ruby
delsol has joined #ruby
vic736 has quit [Quit: leaving]
browndawg has joined #ruby
<delsol> Any escaping geniuses around today?
<delsol> res = `mysql -uusername -ppassword -e status database` works fine.
<delsol> res = `/usr/bin/mysql -uusername -ppassword -e "show tables" database` blows up with no such file or directory.
<delsol> doesn't matter if I use `mysql
<delsol> or `/usr/bin/mysql
<shevy> j416 no that is bad, all other projects would also have to use this modified Kernel#puts, and it was not redirected to an object in your example either
<shevy> there has to be another way
<j416> shevy: which lead me to ask why you need to do this in the first place
<shevy> j416 because I must be able to redirect puts statements into a web-object
<j416> shevy: so execute it inside your own module?
<j416> that defines puts
bashusr has joined #ruby
<shevy> no, it must reside outside of any module
<shevy> if you look at the example on http://pastie.org/9799747, the part where the class definition happens can occur in another file (that I could load up)
<shevy> I'll probably also have to use a $global :(
amundj has joined #ruby
<j416> well, if you're not inside a module, Kernel is all you have?
<shevy> but it is absolutely necessary that a simple .rb file that has I can filter on any puts 'foobar' statements in .rb files that will include that specific class (which will also have instantiated an instance of class Foo)
<j416> still feels like a weird thing to need to do
<browndawg> Rails question, because #RoR is not responding. My seeds.rb reads some .json files to create seed data(my model has an id + a json field and the json can be quite large). Where should I put these files?
<j416> shevy: your last sentence doesn't compile for me
<browndawg> I've got something like Model.create(id: id, data: IO.read("something.json"))
<browndawg> and currently have put the .jsons in db/templates/*.json
cmarques has joined #ruby
<browndawg> is this fine?
<shevy> j416 it is super simple - there must be some way to control what happens with puts statements other than modifying Kernel#puts in itself
yeticry has quit [Ping timeout: 245 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aileon has joined #ruby
<j416> well.. puts _is_ Kernel.puts ...
devdazed has quit [Quit: Bye]
<j416> I don't see how you could, if you really need to execute things at top-level
<shevy> aaaah
bashusr has quit [Read error: Connection reset by peer]
<j416> block is out of the question then too, I suppose..
<shevy> it actually is an alias to $stdout.puts()
<j416> I see
<shevy> so I already can access $stdout - thanks j416
<j416> of course
<browndawg> could you create a separate puts method for hte main object?
<shevy> look at that docu, isn't it fancy? hehehe ;) http://www.ruby-doc.org/core-2.2.0/Kernel.html#method-i-puts
<j416> that'd be the better way
<j416> but that wasn't what you asked for :P
<j416> xy problem.
yeticry has joined #ruby
zorak8 has joined #ruby
<shevy> browndawg yeah you can define several puts() methods in different namespaces
blueOxigen has joined #ruby
<browndawg> and wouldn' that solve your problem?
* j416 afk
<shevy> browndawg hmm
<browndawg> just create a separate puts for toplevel
<browndawg> without touching Kernel#puts
<shevy> aha
<shevy> lemme try
<browndawg> I'm not even sure if you can touch main, but that should be the case. This is ruby we're talking about.
<browndawg> :)
<shevy> it should be possible, main would default to Object I think
olivier_bK has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 252 seconds]
devdazed has joined #ruby
<browndawg> main could be an eigenvalue with its own puts
_ixti_ has quit [Ping timeout: 272 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bashusr has joined #ruby
<shevy> that seems to work
elfuego_ has joined #ruby
<shevy> so you can redefine puts in a module, then just include that module into the top namespace
<browndawg> \m/
devdazed has quit [Client Quit]
<shevy> browndawg btw are you that ... browndog or something guy? a ruby user since several years before? also on other #ruby- related channels?
<j416> shevy: just redirect $stdout already :/
<shevy> j416 ah but browndawg's way also work!
<j416> shevy: what if your loaded things use print or write directly to $stdout?
elfuego has quit [Ping timeout: 265 seconds]
elfuego_ is now known as elfuego
<shevy> what is print() using?
agrinb has joined #ruby
<j416> shevy: and including a module is the same thing as redefining all the methods it defines, no?
devdazed has joined #ruby
<shevy> damn
despai has joined #ruby
<shevy> you are right
<j416> there's no reversing it, anyway.
<shevy> :(
<j416> $stdout = blerb
<j416> ^
aclearman037 has joined #ruby
<shevy> now I got all excited by browndawg
<j416> then there's only STDOUT to worry about
<j416> and don't forget $stderr and STDERR
bluOxigen has joined #ruby
<browndawg> shevy: nope, just a noob
<browndawg> who's feeling quite good right about now because you've helped me several times before
<shevy> browndawg ah ok... there was a similar-nick guy on #rubyforce years ago... they all vanished into the dust of time :(
<browndawg> \m/
<shevy> elliottcable here (all caps, strange) also was on #rubyforce if I remember correctly
bashusr has quit [Read error: Connection reset by peer]
<browndawg> I didn't even use irc before 2012 :)
<browndawg> so not me
<shevy> ack
blueOxigen has quit [Ping timeout: 245 seconds]
<shevy> I am without words
pardusf is now known as parduse
<shevy> I need beer now
agrinb has quit [Ping timeout: 258 seconds]
<shevy> but shops are closed :(
<shevy> funny how two seemingly similar methods in ruby can look so differently:
<shevy> print() rb_io_print(argc, argv, rb_stdout);
<shevy> puts() return rb_io_puts(argc, argv, recv);
Musashi007 has joined #ruby
<browndawg> I might have misunderstood your question
_ixti_ has joined #ruby
<j416> shevy: just $stdout already :P
devdazed has quit [Quit: Bye]
<shevy> j416 ah but you also said I should not forget $stderr and STDERR too!
s00pcan has joined #ruby
<j416> shevy: s = StringIO.new; $stdout = s; puts 'Hello'; print 'Hi!';
bashusr has joined #ruby
<shevy> maybe I should just modify Kernel#puts
<j416> and do the same for $stderr
<shevy> hmm
<j416> if you are worried about people using STDOUT and STDERR you could redfine those
<shevy> huh
<j416> you'll get warnings that you can silence.
<shevy> $stdout = s stills all puts
<browndawg> but if you modify Kernel#puts, it propagates to EVERYTHING doesn't it?
<shevy> *steals
<j416> shevy: of course
<shevy> yeah browndawg
<j416> shevy: everything goes into your string
<browndawg> then why touch it!
iamninja has joined #ruby
<shevy> browndawg so I don't have to touch both $stdout and $stderr!
<j416> shevy: try inspecting s
<browndawg> hmmm
<j416> assuming you're in irb or pry
devdazed has joined #ruby
<j416> s.string
<browndawg> hmmm
<browndawg> sounds dangerous to me
devdazed has quit [Client Quit]
<shevy> well I don't get any output in irb after $stdout = s
<j416> shevy: just type s.string
<j416> nothign more
<j416> in irb
<browndawg> you could wrap your touching of $std(out|err) in a puts() that's local to your main object
<browndawg> wouldn't that be safer?
<Nilium> How hard would it be to pass a law that lets me legally dropkick someone in the crotch for modifying live code on a production server?
<j416> browndawg: you've gotten it all wrong
<shevy> j416 somehow I don't get any output at all of anything right after $stdout = s
<browndawg> j416: I suspect that's what it is.
<j416> shevy: pry will fix that
Darryl__ has joined #ruby
arescorpio has joined #ruby
yfeldblum has joined #ruby
<j416> shevy: anyway, that's how you'd do it properly..
<j416> shevy: s = StringIO.new; $stdout = s; puts 'Hi, I am in s'; $stdout = STDOUT; puts s.string
<j416> shevy: try that.
bashusr has quit [Read error: Connection reset by peer]
<shevy> cool, that works
bluOxigen has quit [Ping timeout: 252 seconds]
<j416> o/
<j416> I'm off to dinner
* j416 afk
<shevy> aha... so STDOUT is something like a fallback-rescue constant there to restore the initial $stdout?
devdazed has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
startupality has quit [Quit: startupality]
Musashi007 has quit [Quit: Musashi007]
dts|pokeball has joined #ruby
<delsol> Nilium: Did they at least leave a .good copy of the file before they mangled it?
yfeldblum has quit [Ping timeout: 258 seconds]
browndawg has quit [Ping timeout: 250 seconds]
bashusr has joined #ruby
<Nilium> I don't think I've seen anyone practice that.
jamto11 has joined #ruby
stonecolddevin has joined #ruby
ebbflowgo has joined #ruby
<delsol> When doing some hacky/slashy stuff where I'm going to be commenting out a button/feature/etc on a live box, before messing with the file... copy and leave a _rb.good or _php.good
<delsol> :)
Cache_Money has joined #ruby
<delsol> but even that won't save the day if they didn't make a database dump or their edits caused some nasty data corruption in some way, or blew up something that isn't backed up.
<delsol> (and who knows about data entered while broken version was running)
pu22l3r has quit [Read error: No route to host]
cmarques has quit [Remote host closed the connection]
pu22l3r has joined #ruby
adriancb has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
studiotate has quit [Quit: Computer has gone to sleep.]
thumpba has quit [Remote host closed the connection]
lolmaus has quit [Quit: Konversation terminated!]
havenwood has joined #ruby
ponga has joined #ruby
basex has joined #ruby
bashusr has joined #ruby
Lingo__ has joined #ruby
agrinb has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
despai has quit [Quit: This computer has gone to sleep]
ponga has quit [Ping timeout: 255 seconds]
AndyBotwin has quit [Quit: Leaving]
iamjarvo has joined #ruby
ziyadb has joined #ruby
pwnz0r has quit []
Musashi007 has joined #ruby
DLSteve has joined #ruby
Channel6 has quit [Quit: Leaving]
bashusr has joined #ruby
commmmodo has joined #ruby
rkday has quit [Ping timeout: 258 seconds]
pwnz0r has joined #ruby
s00pcan has quit [Ping timeout: 255 seconds]
ragingcake_ has joined #ruby
devdazed_ has joined #ruby
pika_pika has quit [Ping timeout: 258 seconds]
cmarques has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
thumpba has joined #ruby
devdazed has quit [Ping timeout: 245 seconds]
despai has joined #ruby
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Menorah has joined #ruby
elaptics`away is now known as elaptics
sarkis_ has quit [Quit: WeeChat 1.0.1]
shredding has quit [Quit: shredding]
bashusr has joined #ruby
startupality has joined #ruby
arup_r has quit [Quit: Leaving.]
Menorah has quit [Quit: Leaving]
claudiuinberlin has joined #ruby
thumpba has quit [Remote host closed the connection]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
thumpba has joined #ruby
pika_pika has joined #ruby
yfeldblum has joined #ruby
pu22l3r has quit [Read error: No route to host]
<delsol> Any idea why: #res = `mysql -uusername -ppassword -e status database` works just fine, when #res = `mysql -uusername -ppassword -e "show tables" database` blows up with no such file or directory (Errno::ENOENT)
Lingo__ has quit [Quit: (null)]
<delsol> I assume its an escaping problem, but I can't figure out any escaping that works for the life of me.
pu22l3r has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
despai has quit [Quit: This computer has gone to sleep]
<mostlybadfly> question for anyone familiar with rspec: is there a way to ignore a method call in my .rb when a spec if being run against it?
behrz has joined #ruby
impi0us has quit [Quit: Leaving]
<etqqkoiflwhb> mostlybadfly: you can mock the method call with a mocking library
startupality has quit [Quit: startupality]
bashusr has joined #ruby
AmirolAhmad has quit []
claptor has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
behrz has quit [Ping timeout: 252 seconds]
<mostlybadfly> etqqkoiflwhb: this is to ignore a method i called in my main.rb at the bottom of the file, i want it to run when i do 'ruby main.rb' but not when i do rspec main_spec.rb
bline79 has quit [Quit: leaving]
<mostlybadfly> i wasn't sure if i spotted osmething like that in the docs, but i'll dig under mocking
comm64 has joined #ruby
<etqqkoiflwhb> mostlybadfly: oh, I misunderstood, mocking libraries won't help
Hobogrammer has joined #ruby
shuber_ has joined #ruby
<mostlybadfly> ah ok, hmmm
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<etqqkoiflwhb> mostlybadfly: you can use if __FILE__ == $0
<etqqkoiflwhb> mostlybadfly: See the 'Kicking Off the Script section', https://www.ruby-lang.org/en/documentation/quickstart/4/
pika_pika has quit [Ping timeout: 258 seconds]
thumpba has quit [Remote host closed the connection]
<etqqkoiflwhb> if __FILE__ == $0; puts 'mail.rb loaded directly' end
<mostlybadfly> would there be oh nice thanks etqqkoiflwhb
<etqqkoiflwhb> if __FILE__ == $0; puts 'mail.rb loaded directly'; end
<mostlybadfly> oops two messages haha
<mostlybadfly> thank you very much!
<comm64> could someone tell me if I'm understanding autoload correctly because I keep getting a LoadError: cannot load such file
<etqqkoiflwhb> mostlybadfly: :)
aclearman037 has joined #ruby
dblessing has joined #ruby
<comm64> dir = File.expand_path(__FILE__)
<comm64> autoload :Use_Themes, 'constants.rb'
<comm64> puts Use_Themes
<etqqkoiflwhb> is constants.rb in the load path?
<comm64> autoload :Use_Themes, dir+'constants.rb'
<comm64> my bad
rkday has joined #ruby
<comm64> should return true if Use_Themes in constants.rb is set to true right?
<etqqkoiflwhb> try $LOAD_PATH.unshift dir; autoload :Use_Themes, 'constants.rb'
<comm64> nope I still get a LoadError: cannot load such file
rbrs has quit [Quit: Leaving]
<comm64> am I using autoload correctly?
jphenow has joined #ruby
cantonic has quit [Quit: cantonic]
<comm64> brb
<etqqkoiflwhb> comm64: Use dir = File.dirname(File.expand_path(__FILE__))
<pwnz0r> what does a * do to a var
studiotate has joined #ruby
<pwnz0r> ex var vs *var
Azure has quit [Quit: My MBP went to sleep.]
<pipework> comm64: There's a ruby style guide you should look into.
<pipework> pwnz0r: Try.
cantonic has joined #ruby
<pwnz0r> k
<etqqkoiflwhb> pwnz0r: * is called the splat operator
startupality has joined #ruby
<etqqkoiflwhb> they are many articles on it, you can find them in google
PanzerModern has joined #ruby
<pwnz0r> it creates an array or a collection
nicolastarzia has joined #ruby
einarj has joined #ruby
<etqqkoiflwhb> pwnz0r: depends on where its used
adriancb has joined #ruby
<etqqkoiflwhb> def print_args(*args); puts "All my args #{args.join(', ')}"; end; print_args('Hello', 'World')
startupality has quit [Client Quit]
<pipework> >> args = %w|hi there bruv|; [*args, args]
<eval-in__> pipework => ["hi", "there", "bruv", ["hi", "there", "bruv"]] (https://eval.in/237286)
asmodlol has quit [Ping timeout: 264 seconds]
<etqqkoiflwhb> or
<etqqkoiflwhb> head, *rest = 1, 2, 3
asmodlol has joined #ruby
<pipework> >> args = %w|hi there bruv|; rest*, tail = args
<eval-in__> pipework => /tmp/execpad-f5259b060042/source-f5259b060042:2: syntax error, unexpected ',' ... (https://eval.in/237287)
behrz has joined #ruby
dc_ has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework> Darn, I thought ruby'd figure that out proper.
yfeldblum has quit [Remote host closed the connection]
msmith_ has joined #ruby
yfeldblum has joined #ruby
Morkel has quit [Quit: Morkel]
devdazed_ has quit [Ping timeout: 265 seconds]
nicolastarzia has quit [Ping timeout: 240 seconds]
adriancb has quit [Ping timeout: 245 seconds]
kyb3r_ has quit [Read error: Connection reset by peer]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
renderful has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
whyGaard has joined #ruby
despai has joined #ruby
DrShoggoth has joined #ruby
<apeiros_> pipework: wrong side for the *
jdj_dk has quit [Remote host closed the connection]
BryanWB has quit [Quit: Leaving.]
<apeiros_> >> args = %w|hi there bruv|; *rest, tail = args; {rest: rest, tail: tail}
<eval-in__> apeiros_ => {:rest=>["hi", "there"], :tail=>"bruv"} (https://eval.in/237288)
asmodlol has quit [Ping timeout: 244 seconds]
behrz has quit [Quit: Leaving]
bashusr has joined #ruby
<Xeago> apeiros_: for a simple twitch.rb would you recommend Net::HTTP for the http requests, or some gem?
<Xeago> Net::HTTP looks sufficient to me
<comm64> pipework: bbatsov?
renderful has quit [Ping timeout: 258 seconds]
bashusr has quit [Read error: Connection reset by peer]
behrz has joined #ruby
<Xeago> all it does is fetch an access_token, mangle it and request an m3u8
ponga has quit [Ping timeout: 255 seconds]
asmodlol has joined #ruby
<Xeago> so two'ish http requests
devdazed has joined #ruby
schfkt has quit [Remote host closed the connection]
govg has joined #ruby
einarj has quit []
giuseppesolinas has joined #ruby
nicolastarzia has joined #ruby
tuxaanand has joined #ruby
tuxaanand has left #ruby [#ruby]
thumpba has joined #ruby
tuxaanand has joined #ruby
jdj_dk has joined #ruby
Flcn_ has quit [Quit: Be back later ...]
Apocalypse has quit [Remote host closed the connection]
tuxaanand has quit [Client Quit]
valeriansaliou has joined #ruby
valeriansaliou has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
felltir has joined #ruby
asmodlol has quit [Ping timeout: 264 seconds]
asmodlol has joined #ruby
etqqkoiflwhb has quit [Quit: (null)]
Pupeno has quit [Remote host closed the connection]
jheg has joined #ruby
jheg has quit [Remote host closed the connection]
thejoecarroll has quit [Quit: ZNC - http://znc.in]
ishikawa91 has joined #ruby
ragingcake__ has joined #ruby
ragingcake__ has quit [Client Quit]
thejoecarroll has joined #ruby
Jackneill has quit [Remote host closed the connection]
Apocalypse has joined #ruby
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
Pupeno_ has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
ragingcake_ has quit [Ping timeout: 264 seconds]
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
IrishGringo has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
shuber_ has quit [Remote host closed the connection]
aileon has quit [Ping timeout: 250 seconds]
despai has joined #ruby
dc_ has joined #ruby
<apeiros_> Xeago: just a GET request? I'd probably even only use open-uri
<apeiros_> require 'open-uri'; contents = open(url, &:read)
bashusr has joined #ruby
ohaibbq has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
nicolastarzia has quit [Remote host closed the connection]
asmodlol has quit [Ping timeout: 245 seconds]
bashusr has quit [Read error: Connection reset by peer]
pwnz0r has quit [Remote host closed the connection]
asmodlol has joined #ruby
diegoviola has joined #ruby
pwnz0r has joined #ruby
klmlfl has quit [Remote host closed the connection]
IrishGringo has joined #ruby
Youka has joined #ruby
lkba has joined #ruby
<Xeago> what is open-uri :O
lolmaus has joined #ruby
<Xeago> hmm
bashusr has joined #ruby
pwnz0r has quit [Ping timeout: 244 seconds]
pwnz0r has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
bashusr has quit [Read error: Connection reset by peer]
dotix has joined #ruby
AFKGeek has joined #ruby
felltir has quit []
MrIlyas_ has quit [Quit: Leaving]
AFKGeek has quit [Client Quit]
dotix has quit [Client Quit]
bashusr has joined #ruby
<havenwood> apeiros_: the extra space in the topic is stabbing my eyes! "Ruby 2.2.0; 2.1.5" :)
thumpba has quit []
<havenwood> Happy Boxing Day all!
thumpba has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
shuber_ has joined #ruby
<shevy> HAPPY XWOOD DAY
<shevy> apeiros_ do not be mean and stab his eye
ghostlines has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> stab him somewhere else
claudiuinberlin has quit [Read error: Connection reset by peer]
<pipework> apeiros_: Ah that's totally right.
bashusr has quit [Read error: Connection reset by peer]
claudiuinberlin has joined #ruby
pwnz0r has quit [Remote host closed the connection]
dotix has joined #ruby
govg has quit [Ping timeout: 244 seconds]
elfuego has quit [Ping timeout: 272 seconds]
pwnz0r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
aileon has joined #ruby
<Xeago> apeiros_: open(uri(channel, token(channel)), &:read).display
<Xeago> this is pretty decent
dblessing has joined #ruby
<Xeago> hmm, some pry knowledge is lacking
<Xeago> I def'd a method
<Xeago> and I want to see the source
DrShoggoth has quit [Quit: Leaving]
<Xeago> it's either $ or ?, but both of those tell me I need rubyxx_source_location installed
dotix has quit [Client Quit]
<Xeago> but it's defined interactively?
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
shuber_ has quit [Remote host closed the connection]
bashusr has joined #ruby
pwnz0r has quit [Ping timeout: 265 seconds]
jobewan has quit [Ping timeout: 252 seconds]
basex has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
bashusr has quit [Read error: Connection reset by peer]
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tranquility has quit [Quit: Connection closed for inactivity]
elfuego has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aclearman037 has joined #ruby
p8952 has quit [Quit: ZNC - http://znc.in]
bashusr has joined #ruby
TgMts has joined #ruby
<Xeago> apeiros_: $ ./twitch.rb yogscast | /Applications/VLC.app/Contents/MacOS/VLC -
<Xeago> interested? :>
Darryl__ has quit [Quit: Connection closed for inactivity]
<Xeago> finally got around to redoing that horrible shell script
stunder has quit [Quit: Screw you guys I'm going home]
aileon has quit [Ping timeout: 258 seconds]
bashusr has quit [Read error: Connection reset by peer]
ponga has joined #ruby
pu22l3r has joined #ruby
barderer has joined #ruby
<shevy> haha
asmodlol has quit [Ping timeout: 245 seconds]
tier has joined #ruby
AUS3RIS has joined #ruby
amystephen has joined #ruby
Guest26597 has joined #ruby
porkys has joined #ruby
VBlizzard has joined #ruby
asmodlol has joined #ruby
bashusr has joined #ruby
bashusr has quit [Changing host]
bashusr has joined #ruby
ponga has quit [Ping timeout: 244 seconds]
stunder has joined #ruby
tier has quit [Ping timeout: 264 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mocchi has quit [Quit: ZNC - http://znc.in]
josephndenton has quit [Ping timeout: 255 seconds]
studiotate has quit [Quit: Computer has gone to sleep.]
Musashi007 has quit [Quit: Musashi007]
stunder has quit [Client Quit]
decoponio has quit [Quit: Leaving...]
claudiuinberlin1 has joined #ruby
porkys has quit [K-Lined]
whyGaard has quit [Read error: No route to host]
jamto11 has quit [Remote host closed the connection]
claudiuinberlin has quit [Ping timeout: 255 seconds]
Akagi201_ has quit [Read error: Connection reset by peer]
behrz has quit [Remote host closed the connection]
jamto11 has joined #ruby
Akagi201 has joined #ruby
jeff-ooh has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
TDJACR has quit [Quit: ZNC - http://znc.in]
claymore has quit [Quit: Leaving]
thumpba has quit [Ping timeout: 256 seconds]
behrz has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
jamto11 has quit [Ping timeout: 272 seconds]
jenrzzz has joined #ruby
shredding has joined #ruby
bashusr has joined #ruby
Musashi007 has joined #ruby
asmodlol has quit [Ping timeout: 264 seconds]
Rapier- has joined #ruby
asmodlol has joined #ruby
adriancb has joined #ruby
behrz has quit [Remote host closed the connection]
Mia has quit [Read error: Connection reset by peer]
claudiuinberlin1 has quit [Quit: Leaving.]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aclearman037 has quit [Quit: I'm out!]
shredding has quit [Quit: shredding]
bogeyd6 has quit [Ping timeout: 252 seconds]
stunder has joined #ruby
Spami has joined #ruby
behrz has joined #ruby
bogeyd6 has joined #ruby
oleo has quit [Ping timeout: 245 seconds]
paulfm has quit [Quit: Zzzzz...]
Musashi007 has quit [Quit: Musashi007]
oleo has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
bashusr has quit [Read error: Connection reset by peer]
dc_ has quit [Remote host closed the connection]
commmmodo has quit [Quit: commmmodo]
p8952 has joined #ruby
keen__________14 has joined #ruby
shredding has joined #ruby
commmmodo has joined #ruby
keen__________13 has quit [Ping timeout: 240 seconds]
pu22l3r has quit [Remote host closed the connection]
bashusr has joined #ruby
Stoge88 has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
tadasp has quit [Ping timeout: 258 seconds]
stunder has quit [Quit: Screw you guys I'm going home]
behrz has quit [Ping timeout: 265 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
ndrei has quit [Ping timeout: 245 seconds]
<apeiros_> Xeago: of course!
bashusr has joined #ruby
coderhs has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
pika_pika has joined #ruby
asmodlol has quit [Quit: Leaving]
basex has joined #ruby
studiotate has joined #ruby
<dtordable> shevy: where are you?
<dtordable> ^^
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<Xeago> :q
ebbflowgo has quit [Quit: ebbflowgo]
slawrence00 has joined #ruby
randiman has joined #ruby
snath has quit [Ping timeout: 245 seconds]
pandaant has joined #ruby
basex_ has joined #ruby
studiotate has quit [Ping timeout: 258 seconds]
basex has quit [Ping timeout: 255 seconds]
jack_rabbit has joined #ruby
Photism has quit [Quit: Leaving]
msmith_ has quit [Remote host closed the connection]
spider-mario has quit [Ping timeout: 258 seconds]
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwildig has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
bashusr has quit [Read error: Connection reset by peer]
spider-mario has joined #ruby
snath has joined #ruby
ylluminarious has joined #ruby
asmodlol has joined #ruby
<comm64> so I see autoload is deprecated
ponga has quit [Ping timeout: 240 seconds]
Rapier- has quit [Remote host closed the connection]
iamjarvo has joined #ruby
bashusr has joined #ruby
shredding has quit [Quit: shredding]
dc_ has joined #ruby
comm64 has quit [Remote host closed the connection]
msmith_ has joined #ruby
ohaibbq has quit [Remote host closed the connection]
ohaibbq has joined #ruby
RandyT has quit [Ping timeout: 252 seconds]
AUS3RIS has quit [Quit: ZZZzzz…]
dblessing has joined #ruby
<apeiros_> Xeago: thx
Stoge88 has joined #ruby
adriancb has quit [Remote host closed the connection]
nicolastarzia has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
RandyT has joined #ruby
despai has joined #ruby
testcore has quit [Ping timeout: 250 seconds]
nicolastarzia has quit [Ping timeout: 244 seconds]
bashusr has joined #ruby
pu22l3r has joined #ruby
ebbflowgo has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
pu22l3r has quit [Remote host closed the connection]
Guest26597 has quit [Remote host closed the connection]
hmsimha has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
zacts has quit [Ping timeout: 255 seconds]
AlexRussia has joined #ruby
Pisuke has quit [Quit: WeeChat 1.1-dev]
<Xeago> apeiros_: it might become my first gem :3
ebbflowgo has quit [Quit: ebbflowgo]
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bashusr has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
despai has joined #ruby
rkday has quit [Ping timeout: 250 seconds]
rkday has joined #ruby
oleo has quit [Quit: Verlassend]
msmith_ has quit [Remote host closed the connection]
TDJACR has joined #ruby
Akuma has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<apeiros_> Xeago: hehe, yeah, why not?
mary5030_ has joined #ruby
olivier_bK has quit [Ping timeout: 265 seconds]
mary5030_ has quit [Ping timeout: 252 seconds]
<Xeago> apeiros_: have you ever had kale, or better yet, kale chips?
<Xeago> it's so delicious
<apeiros_> nope
dts|pokeball has quit [Read error: Connection reset by peer]
bennyklotz has quit [Quit: leaving]
Takle has quit [Read error: No route to host]
Takle has joined #ruby
Zaza has joined #ruby
bennyklotz has joined #ruby
<Xeago> I can recommend it
bennyklotz has quit [Client Quit]
Spami has quit [Quit: This computer has gone to sleep]
bennyklotz has joined #ruby
amclain has joined #ruby
<Xeago> just was the kale, spice it to your liking, some oil on it, mix the whole thing, spread the leaves on the a plate and oven for 6min at 200 ˚C
<Xeago> wash*
<Xeago> got any pointers on how to get started with your own gem?
porkys has joined #ruby
<Xeago> is it gemfile or gemspec I care about?
bashusr has quit [Read error: Connection reset by peer]
Ikri has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
dblessing has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bennyklotz has quit [Client Quit]
bennyklotz has joined #ruby
mattwildig has quit []
<Xeago> gemspec for my gem, gemfile for my gem's dependencies?
<apeiros_> Xeago: gemspec
<apeiros_> I wish I could say `gem install gem-new` then `gem new yourgem`, sadly gem-new is in dire need of refreshing :)
bashusr has joined #ruby
<apeiros_> `bundle new gem` is quite useful I think
Azure has joined #ruby
randiman has quit [Quit: (null)]
hmsimha has joined #ruby
dts|pokeball has joined #ruby
<bradland> Xeago: the new rubygems guides are great: http://guides.rubygems.org/make-your-own-gem/
<bradland> i’d recommend scanning through that, then hitting up `bundle new gem` as apeiros_ recommended.
ishikawa91 has quit [Quit: Connection closed for inactivity]
<Xeago> bradland, apeiros_: thanks I'll have a look at them!
ponga has joined #ruby
<bradland> bundler gem skeleton docs: http://bundler.io/rubygems.html
ponga has quit [Changing host]
ponga has joined #ruby
<bradland> sure thing
chipotle has quit [Quit: cheerio]
Takle_ has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 272 seconds]
AlexRussia has quit [Ping timeout: 244 seconds]
FooMunki has joined #ruby
commmmodo has quit [Quit: commmmodo]
Zai00 has quit [Quit: Zai00]
bashusr has joined #ruby
amundj has joined #ruby
phutchins has joined #ruby
<apeiros_> so, controlled an lcd via the arduino. that's it for today.
RandyT has quit [Ping timeout: 256 seconds]
<apeiros_> and stupid potentiometer. needs to be pressed down to keep contact with the breadboard :-(
<Xeago> apeiros_: what's your project?
ponga has quit [Ping timeout: 252 seconds]
<apeiros_> Xeago: just working through the starter kit
fenzil has joined #ruby
clarkk1 has left #ruby ["PONG :kornbluth.freenode.net"]
<Xeago> try wrapping some aluminum wrap
<apeiros_> when done, I'd like to build a password vault. A bit of flash, a display, a Bluetooth (and potentially USB) mass memory and keyboard interface
<apeiros_> Xeago: on the pins you mean? so they stick better?
<Xeago> in between the breadboard and the pin
<Xeago> doesn't matter where you put it initially :>
razieliyo has quit [Read error: Connection reset by peer]
<apeiros_> :)
<apeiros_> pondered a little soldering action tbh
jaequery has joined #ruby
<Xeago> stuffing your breadboard might not be the best of idea, so I propose you try with a tiny pice wrapped around a pin
AlexRussia has joined #ruby
<Xeago> or simply stuffing a small cord next to the pin
chipotle has joined #ruby
<Xeago> that pot-meter is a pita on breadboards
oleo has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
mattmcclure has joined #ruby
jack_rabbit has quit [Ping timeout: 264 seconds]
barderer has quit [Ping timeout: 272 seconds]
barderer has joined #ruby
jenrzzz has joined #ruby
<apeiros_> Xeago: oooh, cord works excellently well. just tried.
oleo has quit [Read error: Connection reset by peer]
Musashi007 has joined #ruby
RandyT has joined #ruby
amclain has quit [Quit: Leaving]
<jaequery> hi, i created my own class for exception handling and it does fine for my MyException cases. however, when it's not catched by it, i want it to use whatever it was using before
<jaequery> how to do so?
jamto11 has joined #ruby
<apeiros_> jaequery: I don't quite follow
<apeiros_> too many unspecified "it" in there
jdj_dk has quit [Remote host closed the connection]
<Xeago> jaequery: try specifying multiple catch'es
<Xeago> err rescue?
bashusr has joined #ruby
amclain has joined #ruby
jdj_dk has joined #ruby
coderhs has quit [Quit: This computer has gone to sleep]
dorei has joined #ruby
<Xeago> I don't understand at all what you want to achieve, sorry.
<apeiros_> jaequery: uh, you should *never* put a return in an ensure block.
codecop has quit [Remote host closed the connection]
<Xeago> apeiros_: the reasoning being?
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jamto11 has quit [Ping timeout: 258 seconds]
<apeiros_> d'uh, knowledge to summon up… at that time with that BAC :-S
<jaequery> im returning so it stops after outputting to browser
<apeiros_> kills exception handling f.ex.
<apeiros_> no matter what exception you raise, your method will return and not raise.
<jaequery> ah
<jaequery> that probably it
jdj_dk has quit [Ping timeout: 245 seconds]
<jaequery> hmm
<jaequery> still im not getting better errors
bashusr has quit [Read error: Connection reset by peer]
<apeiros_> "my BetterErrors" - yet your paste doesn't contain anything named "BetterErrors"… what gives?
<apeiros_> I'm drunk, and I like riddling even less when drunk. provide relevant information if you want help.
<bradland> jaequery: are you trying to use the better_errors gem
oleo has joined #ruby
<jaequery> i been using the gem already
jeff-ooh has quit [Remote host closed the connection]
<jaequery> works fine, but once i put in the rescue/ensure, better error displays are gone for me
jenrzzz has quit [Ping timeout: 244 seconds]
Aswebb_ has quit [Remote host closed the connection]
elaptics is now known as elaptics`away
oleo has quit [Read error: Connection reset by peer]
<bradland> ok, so apeiros_ when he says my BetterErrors, he means the better_errors gem
josephndenton has joined #ruby
<apeiros_> jaequery: great for you that bradland happened to know it. generally people don't magically know what you're working with. that's information you're supposed to provide.
<bradland> jaequery: when you return from within the ensure block, your code is not raising an exception, which is why better_errors is not displaying anything
<jaequery> i took out, 'return'
bashusr has joined #ruby
<jaequery> still was same
barderer has quit [Ping timeout: 244 seconds]
<jaequery> apeiros: ok
<Xeago> jaequery: do you want to raise an exception within your rescue?
<Xeago> right now you are rescueing it, this means that nothing else will see that exception
<Xeago> you'll have to re-raise it
<jaequery> yeah, i want to hand it off to BetterError
<apeiros_> better errors probably only handles exceptions which are unhandled.
<bradland> let’s back up just a second
<bradland> exactly
<Xeago> >> begin; raise Exception.new("hai"); rescue; raise; end; foo
<eval-in__> Xeago => hai (Exception) ... (https://eval.in/237296)
<Xeago> >> begin; raise Exception.new("hai"); rescue; end; foo
<eval-in__> Xeago => hai (Exception) ... (https://eval.in/237297)
<Xeago> hmm
<Xeago> I'll go to bed
<Xeago> good night!
<bradland> sleep well
<jaequery> so question is, how do i re-raise it?
jenrzzz has joined #ruby
bashusr has quit [Read error: Connection reset by peer]
<Xeago> jaequery: just call raise
<jaequery> oh cool, i'll give it a shot
<Xeago> it'll use the current exception, or you can pass an argument
oleo has joined #ruby
chater has joined #ruby
AlexRussia has quit [Ping timeout: 265 seconds]
m8 has quit [Quit: Sto andando via]
kirun has quit [Quit: Client exiting]