jhass changed the topic of #ruby to: Welcome new users migrating from #ruby-lang! || Rules & more: http://ruby-community.com || Ruby 2.2.2; 2.1.6; 2.0.0-p645: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
dgutierrez1287 has quit [Ping timeout: 240 seconds]
<vimz> >> def foo; "#{__method__}"; end; def baz; foo; end; # expecting 'baz'
<ruboto> vimz # => :baz (https://eval.in/406415)
<vimz> banister horrah, thanks
sinkensabe has joined #ruby
RobertBirnie has joined #ruby
<banister> the fuck
blue_deref has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
<banister> vimz no
<banister> vimz that's wrong
<banister> >> def foo; "#{__method__}"; end; def baz; foo; end; baz
<ruboto> banister # => "foo" (https://eval.in/406416)
<banister> vimz you should expect "foo", not "baz"
<banister> the only reason why you're getting :baz as a result there is because a function definition returns the name of the function as a symbol
Silent__ has quit [Ping timeout: 244 seconds]
<banister> note: you didn't invoke a function :)
sevenseacat has joined #ruby
iceyec has quit [Quit: iceyec]
christiandsg has quit [Remote host closed the connection]
Matthews_ has joined #ruby
Rollabunna has joined #ruby
MatthewsFace has quit [Ping timeout: 244 seconds]
<vimz> banister oh, that's embarassing x) do you know how I could achieve "baz" ?
<banister> vimz use __method__ ?
doctorly has quit [Ping timeout: 256 seconds]
<vimz> but __method__ is encapsulated inside foo, so foo will always return foo. I'll write a gist
<banister> vimz you can do it by doing stupid things
biscuitz has quit [Remote host closed the connection]
<banister> like looking at the stacktrace
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 240 seconds]
doctorly has joined #ruby
<vimz> banister ah it is quite indepth, I thought there was a little trick, no worries
<vimz> unless you're in the middle of something
<banister> vimz you can maybe do it iwth caller_locations
<banister> one sec
baweaver has quit [Remote host closed the connection]
<vimz> banister cool thanks a lot :) https://gist.github.com/anonymous/448b10c7462567438ea9
marr has quit []
aevitas_ has quit [Remote host closed the connection]
<banister> vimz: def foo; "called from #{caller_locations.first.label}"; end
sarkyniin has joined #ruby
<banister> >> def foo; "called from #{caller_locations.first.label}"; end; def bar; foo; end; def baz; foo; end; bar
<ruboto> banister # => "called from bar" (https://eval.in/406418)
<banister> >> def foo; "called from #{caller_locations.first.label}"; end; def bar; foo; end; def baz; foo; end; baz
<ruboto> banister # => "called from baz" (https://eval.in/406419)
rubie has joined #ruby
Vile` has quit [Ping timeout: 256 seconds]
scottschecter has joined #ruby
werelivinginthef has joined #ruby
Vile` has joined #ruby
<vimz> banister thanks, that's aweome :)
tuxtgz has joined #ruby
maletor has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[H]unt3r has quit [Quit: Leaving]
_lexjm has quit [Quit: afk]
sarkyniin has quit [Quit: Quit]
fullofca_ has joined #ruby
slackbotgz has joined #ruby
[k- has quit [Ping timeout: 264 seconds]
Westerbly_ has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
fullofcaffeine has quit [Ping timeout: 246 seconds]
_blizzy_ has quit [Ping timeout: 244 seconds]
Westerbly__ has quit [Ping timeout: 255 seconds]
Westerbly_ is now known as radgeRayden
Averna has joined #ruby
Ropeney has joined #ruby
Mendenhall has quit [Ping timeout: 272 seconds]
prestorium has joined #ruby
mistym has quit [Ping timeout: 244 seconds]
christiandsg has joined #ruby
djbkd has quit [Quit: Leaving...]
bruno- has joined #ruby
djbkd has joined #ruby
Hongo has joined #ruby
Hongo has left #ruby [#ruby]
djbkd has quit [Client Quit]
oo_ has joined #ruby
tsvenson has joined #ruby
prestorium has quit [Read error: Connection reset by peer]
einarj has joined #ruby
axisys has joined #ruby
prestorium has joined #ruby
mary5030 has quit [Remote host closed the connection]
St1gma has joined #ruby
mary5030 has joined #ruby
<St1gma> anybody in here have any experience with sockets? I'm trying to read from one, more specifically from an SMTP server. I can see the server sending me everything but when I do a socket.read I'm hung.
<St1gma> I can use the same code and point it to say google.com and I get something back no problem
<St1gma> any ideas?
eminencehc has joined #ruby
latemus has quit [Ping timeout: 240 seconds]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 246 seconds]
einarj has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 246 seconds]
prestorium has quit [Quit: Konversation terminated!]
prestorium has joined #ruby
rbowlby has quit [Remote host closed the connection]
christiandsg has quit [Remote host closed the connection]
iateadonut has quit [Ping timeout: 250 seconds]
bmurt has joined #ruby
coderkevin has left #ruby [#ruby]
crdpink2 has quit [Ping timeout: 246 seconds]
crdpink has joined #ruby
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
symm- has quit [Ping timeout: 260 seconds]
hololeap has quit [Ping timeout: 264 seconds]
rbowlby_ has joined #ruby
omegamike has joined #ruby
<vimz> does anyone know where RSpec's actual_formatted and expected_formatted are defined?
leesharma has joined #ruby
j4cknewt has quit [Remote host closed the connection]
Sonja has quit []
Rollabunna has joined #ruby
<vimz> what I got...good old google. better than githubs serch engine.
<vimz> *wait
scripore has joined #ruby
j4cknewt has joined #ruby
brianpWins has joined #ruby
bubbys has joined #ruby
crazydiamond has quit [Ping timeout: 265 seconds]
<craysiii> google is love. google is life.
<Ox0dea> Famous last words.
<craysiii> are you not willing to bow down to the google overlords?
iwaffles has joined #ruby
decaff has quit [Remote host closed the connection]
<vimz> craysiii why not bing? ._____________________________.
bmurt has quit []
<craysiii> everyone knows what bing is for.
freerobby has quit [Quit: Leaving.]
gguggi has quit [Ping timeout: 272 seconds]
Rollabunna has quit [Ping timeout: 244 seconds]
j4cknewt has quit [Ping timeout: 246 seconds]
werelivinginthef has quit [Remote host closed the connection]
bubbys has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
ledestin has joined #ruby
lannonbr has joined #ruby
brianpWins has quit [Quit: brianpWins]
omegamike has quit [Remote host closed the connection]
haraoka has joined #ruby
RobertBirnie has joined #ruby
eilkahn has quit [Ping timeout: 246 seconds]
eilkahn_ has joined #ruby
<St1gma> lol craysili
DJSpies has joined #ruby
<craysiii> :D
diegoviola has quit [Read error: Connection reset by peer]
diego1 has joined #ruby
lee_ has joined #ruby
diego1 has quit [Changing host]
diego1 has joined #ruby
diego1 is now known as diegoviola
bubbys has joined #ruby
mistermocha has joined #ruby
oo_ has joined #ruby
havenwood has joined #ruby
leesharma has left #ruby [#ruby]
Zinja has quit [Quit: Leaving]
DJSpies has quit [Quit: Leaving]
mistermocha has quit [Ping timeout: 244 seconds]
DJSpies has joined #ruby
bmurt has joined #ruby
cajone has joined #ruby
juanpablo_ has joined #ruby
lee_ has quit [Quit: leaving]
slackbotgz has quit [Remote host closed the connection]
Caius has quit [Ping timeout: 256 seconds]
bmurt has quit [Client Quit]
cajone has left #ruby [#ruby]
DJSpies has quit [Quit: Leaving]
prestorium has quit [Ping timeout: 272 seconds]
DJSpies has joined #ruby
juanpablo_ has quit [Ping timeout: 260 seconds]
neoseeker has joined #ruby
workmad3 has joined #ruby
willywos has quit [Read error: Connection reset by peer]
Caius has joined #ruby
tubulife- has joined #ruby
leesharma has joined #ruby
neoseeker has quit [Remote host closed the connection]
mistermocha has joined #ruby
neoseeker has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
neoseeker has quit [Remote host closed the connection]
leesharma has quit [Disconnected by services]
chipotle has quit [Read error: Connection reset by peer]
neoseeker has joined #ruby
tubulife- has quit [Ping timeout: 244 seconds]
chipotle has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
iwaffles has quit [Quit: iwaffles]
neoseeker has quit [Ping timeout: 246 seconds]
rbowlby_ has quit [Remote host closed the connection]
ohaibbq has joined #ruby
doctorly has quit [Ping timeout: 244 seconds]
eminencehc has quit [Remote host closed the connection]
quazimod1 has joined #ruby
<quazimod1> guys
<quazimod1> what's that file specific include ruby introduced recetnly
Tamae has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
leesharma has joined #ruby
mary5030 has joined #ruby
blue_deref has quit [Quit: bbn]
centrx has joined #ruby
<havenwood> quazimod1: include? say more?
bruno- has quit [Ping timeout: 246 seconds]
tkuchiki has joined #ruby
Stratege__ has quit [Ping timeout: 255 seconds]
Stratege has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Thomas-0725 has joined #ruby
doctorly has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
christiandsg has joined #ruby
mistermocha has joined #ruby
mary5030 has quit [Ping timeout: 244 seconds]
dseitz has joined #ruby
Rollabunna has joined #ruby
tuxtgz has quit [Excess Flood]
<Ox0dea> quazimod1: Refinements.
<quazimod1> that's it
christiandsg has quit [Ping timeout: 265 seconds]
mistermocha has quit [Read error: Connection reset by peer]
tuxtgz has joined #ruby
jeramyRR has quit [Quit: Peace out!]
<quazimod1> thank you
mistermocha has joined #ruby
<Ox0dea> Sure thing.
<Ox0dea> Do note that they can be scoped more finely than "current file".
<quazimod1> Ox0dea: i'll read more nito them
Matthews_ has quit [Ping timeout: 244 seconds]
MatthewsFace has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
j4cknewt has joined #ruby
j4cknewt has quit [Remote host closed the connection]
j4cknewt has joined #ruby
sharpmachine has joined #ruby
mistermocha has quit [Remote host closed the connection]
hololeap has joined #ruby
diego1 has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
diego1 has quit [Changing host]
diego1 has joined #ruby
diegoviola is now known as Guest81757
diego1 is now known as diegoviola
tuxtgz has quit [Ping timeout: 240 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shinnya has quit [Ping timeout: 246 seconds]
tuxtgz has joined #ruby
omegamike has joined #ruby
freerobby has joined #ruby
willywos has joined #ruby
Guest81757 has quit [Ping timeout: 264 seconds]
neoseeker has joined #ruby
iateadonut has joined #ruby
baweaver has joined #ruby
ddarkpassenger has joined #ruby
haraoka has quit [Ping timeout: 256 seconds]
mdavid613 has joined #ruby
markholmes has joined #ruby
theery has joined #ruby
jonee has joined #ruby
neoseeker has quit []
<vimz> 'nineninety'.scan /nine|ninety/ #=> ["nine", "nine"] . I want => ["nine","ninety"] The problem is that my regex matches the second nine inside ninety before it match the entire word ninety. My regex needs to follow this logic: Match a group ONLY if the pattern is not included in a longer group. i.e. 'ninety' is longer than 'nine' by 2 chars. Can this be done with regex? What's a really good ruby book on regex as well, I'm fed up of hitting a brickwall w
mdavid613 has quit [Quit: Leaving.]
bmurt has joined #ruby
bmurt has quit [Client Quit]
icebourg has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
andrewjanssen has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
Trynemjoel has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Client Quit]
markholmes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
andrewjanssen has quit [Client Quit]
<bmcginty> vimz: just a minute, let me play with this for you.
craysiii has quit [Quit: craysiii]
yeticry has quit [Ping timeout: 244 seconds]
craysiii has joined #ruby
<vimz> bmcginty appreciate it...how did you learn regex btw? any recommendations?
yeticry has joined #ruby
fullofcaffeine has joined #ruby
RustySpork has joined #ruby
<bmcginty> vimz: I'm originally from python, and used resources there and via sed under linux.
<Ox0dea> A sufficiently general regular expression which would pluck 'nine' and 'ninety' from 'nineninety' would also have to grab 'nineni'.
krz has joined #ruby
<bmcginty> vimz: you can swap nine and ninety in your pattern, e.g. /ninety|nine/
<Ox0dea> I very much you'd want to special-case the '-ty' prefix.
<Ox0dea> *much doubt
<Ox0dea> *suffix
<Ox0dea> Jeeze.
<bmcginty> Ah, good. Someone with more knowledge. :) (And that's not meant to sound sarcastic.)
<dymk> I'm quite happy with my solution for having RAII work in the face of rb_raise
fullofca_ has quit [Read error: No route to host]
Trynemjoel has quit [Ping timeout: 256 seconds]
<bmcginty> vimz: are you trying to match en entire set of typed out numbers? (I assume it's not just ninety, but a bunch of them?)
<dymk> i used a similar approach as another person on the internet, where you throw a custom exception type and in the catch block call rb_error, and by then all dtors have ran correctly
<dymk> so yay mutexes actually release on rb_raise
<Ox0dea> Yay, but also -1 for using exceptions for control flow?
<dymk> Ox0dea, what's -l do?
theery has quit [Remote host closed the connection]
<Ox0dea> It's a downvote. :P
Trynemjoel has joined #ruby
<dymk> Oh that's a 1, not al L
<dymk> hah yeah well, ruby has throw, this is literally the C++ equivalent I guess
<Ox0dea> vimz: The "language" of English numbers is recursively enumerable, so any hopes to fully match it with a regular expression are in vain.
allcentury has quit [Ping timeout: 250 seconds]
yqt has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
<dymk> Ox0dea, lemme tell you that erlang is a much better VM to write native extension for https://github.com/dymk/all_the_tags/blob/master/c_src/erl_api/erl_api.cc
<Ox0dea> dymk: Ruby's `throw` doesn't mean what it does in most other languages.
<dymk> yeah it's for flow control, just like what I'm doing here :P
<Ox0dea> Fair enough.
<tabakhase> spec.executables cant do name-aliase or so hm? so i could not have a bin start and one called start, and then "provide" start as "RandomString-client" for example?
<dymk> srs tho whoever thought it was a good idea to have the interpreter longjump out of extension code needs to have a good stern talking to
<tabakhase> so my bin/start needs to be bin/gemName -- whats not really an issue doe, just wondering if those can be "mapped"
<Ox0dea> tabakhase: Doesn't it make things much easier to just name them differently?
fullofcaffeine has quit [Remote host closed the connection]
<tabakhase> hm it might be a doubble quest - came with the quest for spec.files - where there seem to be multiple "aproaches"
oo_ has quit [Remote host closed the connection]
RustySpork has left #ruby [#ruby]
<tabakhase> a) use git-ls - b) scan filesystem - c) hardcode gem, gemspec, bin/**, lib/**
<tabakhase> where b) is a mess, a) is neat but brings some usageIssues doing testbuilds
<tabakhase> now saying stuff liike my vagrant file should not be the "gem" and when you want to develop on it, dont take the gem, get the github!" c) seems really reasonable...
s00pcan has quit [Ping timeout: 246 seconds]
<tabakhase> with that known, i would not add my bin/ -- actually put exe/MyGem and add that as executable
<tabakhase> and in my git bin/start is the bundler/rake calls
s1kx has joined #ruby
<tabakhase> sp the build gem would really only contain runCode, is that the clean way and those git lookup things are the hackyMagic?
s00pcan has joined #ruby
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
jonee has quit [Remote host closed the connection]
omegamike has quit [Remote host closed the connection]
arescorpio has joined #ruby
diegoviola has quit [Quit: WeeChat 1.2]
Rollabunna has joined #ruby
user1138 has joined #ruby
user1138 has quit [Remote host closed the connection]
minmax has joined #ruby
user1138 has joined #ruby
PhantomS_ has joined #ruby
dgutierrez1287 has joined #ruby
oo_ has joined #ruby
s00pcan has quit [Ping timeout: 265 seconds]
christiandsg has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
decaff has joined #ruby
PhantomSpank has quit [Ping timeout: 244 seconds]
decaff_ has joined #ruby
decaff has quit [Read error: Connection reset by peer]
psy_ has joined #ruby
psy_ has quit [Client Quit]
theery has joined #ruby
psy_ has joined #ruby
charliesome has quit [Quit: zzz]
user1138_ has joined #ruby
<vimz> bmcginty sorry went afk, yeah it's a set of numbers, not just ninety. so we're look at eighty, seventy ect. could hardcode something but I like code that's reusable..even if Im not good enough to write it myself yet :P (tbf its only regex that properly stumps me)
dgutierrez1287 has quit [Ping timeout: 272 seconds]
chipotle has quit [Quit: cheerio]
konsolebox has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
charliesome has joined #ruby
<dymk> Is there a builtin native method for getting an array's length in an extension?
krz has quit [Read error: Connection reset by peer]
<Ox0dea> dymk: The RARRAY_LEN() macro really ought to get a mention in extension.rdoc.
<dymk> Ox0dea, many things ought to get a mention in extension.rdoc :P
<Ox0dea> Aye, you're not wrong.
user1138 has quit [Ping timeout: 255 seconds]
krz has joined #ruby
n_blownapart has joined #ruby
<Ox0dea> vimz: Is it part of your requirements to handle ill-formatted numbers, then?
braincrash has quit [Quit: bye bye]
<Ox0dea> Properly spelling it "ninety-nine" and otherwise delimiting the "parts" with spaces makes the task significantly less finicky.
werelivinginthef has joined #ruby
i8igmac has quit [Ping timeout: 272 seconds]
[k- has joined #ruby
texasmade has quit [Ping timeout: 265 seconds]
PanPan has joined #ruby
theery has quit [Remote host closed the connection]
darkf has joined #ruby
<dymk> What's ruby got the concept of an ID for?
braincras has joined #ruby
<dymk> seems the way to get a symbol's value is go from c string -> ID -> VALUE
<dymk> but I don't understand why that intermediate step exists
bronson has joined #ruby
<shevy> isn't an id also a value?
<dymk> the docs make it seem like a distinct concept
theery has joined #ruby
Channel6 has joined #ruby
amystephen has quit [Quit: amystephen]
bronson has quit [Ping timeout: 246 seconds]
tjohnson has joined #ruby
RobertBirnie has joined #ruby
Scriptonaut has left #ruby [#ruby]
juanpablo_ has joined #ruby
<[k-> Symbols have #id2name for some reason
<Ox0dea> dymk: Symbols are just "interned" strings. ID is just a type alias for the native pointer type; they're used wherever possible in the interests of performance.
henchman_21 has joined #ruby
RobertBirnie has quit [Client Quit]
rubie has joined #ruby
_gautam_ has joined #ruby
theery has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
theery has joined #ruby
<Ox0dea> >> ['foo'.object_id, 'foo'.object_id, :foo.object_id, :foo.object_id] # dymk
<ruboto> Ox0dea # => [551097360, 551098280, 417458, 417458] (https://eval.in/406439)
leat has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 264 seconds]
henchman_21 has quit [Quit: WeeChat 1.2]
leat has joined #ruby
Feyn has joined #ruby
<dymk> Ox0dea, oh so I can use that as identity then when checking if one thing is the same instance as another
<dymk> alright very cool
RobertBirnie has joined #ruby
workmad3 has joined #ruby
schmooster has quit [Remote host closed the connection]
rubie has quit [Ping timeout: 265 seconds]
swgillespie has joined #ruby
tubulife- has joined #ruby
RobertBirnie has quit [Client Quit]
<Ox0dea> dymk: Hm, I think you may've missed what I intended to demonstrate there.
_blizzy_ has joined #ruby
<dymk> Ox0dea, no I think I got it
tmtwd has quit [Ping timeout: 244 seconds]
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
<minmax> [:foo.object_id,:bar.object_id,:foo.object_id]
konsolebox has quit [Quit: Leaving]
<dymk> it can be thought of as a pointer to the memory of the instance in question
<craysiii> do symbol id's change every time the script is ran or is it generated
cibs has joined #ruby
<[k-> yes
<dymk> >> [:foo.object_id, :bar.object_id, :foo.object_id]
<ruboto> dymk # => [417458, 417618, 417458] (https://eval.in/406440)
<dymk> >> [:foo.object_id, :bar.object_id, :foo.object_id]
<ruboto> dymk # => [417458, 417618, 417458] (https://eval.in/406441)
<dymk> it seems they're deterministic right here unless ruboto is caching
<[k-> eval.in probably uses the same instance
<dymk> hah, that sounds exploitable
lessless has joined #ruby
<Ox0dea> [k-: Let's find out with the magical $$.
workmad3 has quit [Ping timeout: 272 seconds]
konsolebox has joined #ruby
tubulife- has quit [Ping timeout: 244 seconds]
_blizzy_ has quit [Ping timeout: 246 seconds]
<[k-> not the same process
michael_mbp has quit [Excess Flood]
<dymk> that great feeling when unittests are passing and your code isn't segfaulting
GriffinHeart has joined #ruby
<[k-> >> Symbol.all_symbols
<ruboto> [k- # => [:!, :"\"", :"#", :"$", :%, :&, :"'", :"(", :")", :*, :+, :",", :-, :".", :/, :":", :";", :<, :"=", ...check link for more (https://eval.in/406444)
danielpclark has quit [Ping timeout: 272 seconds]
Henchman21 has joined #ruby
<[k-> i still dont believe that the id doesnt change
<sevenseacat> thats a lot of symbols
<sevenseacat> >> Symbol.all_symbols.count
<ruboto> sevenseacat # => 2511 (https://eval.in/406445)
ddarkpassenger has joined #ruby
michael_mbp has joined #ruby
<Ox0dea> [k-: Well, it's certainly not completely random.
<bmcginty> vimz: no problem, same afk here. There's very few examples on the net that I am seeing. The only thing close is something written in java, but it's readable.
allcentury has joined #ruby
<Ox0dea> brb, gonna try to hit this error: https://github.com/ruby/ruby/blob/trunk/symbol.c#L625
<sevenseacat> lol
<[k-> the garbage collector will stop you!
<Ox0dea> >> GC.disable
<ruboto> Ox0dea # => false (https://eval.in/406446)
<[k-> hue hue
freerobby has quit [Quit: Leaving.]
Cache_Money has joined #ruby
ddarkpassenger has quit [Ping timeout: 264 seconds]
<dymk> what're my options when it comes to securing a private gem server?
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea> BSD?
scripore has joined #ruby
<[k-> FreeBSD
<dymk> well more like will geminabox allow me to force ssh authentication or something similar :P
<dymk> sorry that was a pretty bad question, I will admit
scripore has quit [Client Quit]
<shevy> shotguns
<Ox0dea> Seems geminabox doesn't go out of its way to make using your own authentication middleware unnecessarily painful.
<dymk> mm man i'm a rails guy, i need my solutions to literally write themselves for me ;)
<dymk> honestly it'll be easier to just copy/paste the gem into a vendored directory I think
leesharma has quit [Ping timeout: 244 seconds]
gix has quit [Ping timeout: 265 seconds]
decaff_ has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 250 seconds]
user1138_ has quit [Ping timeout: 255 seconds]
t_mmyv has quit [Quit: Textual IRC Client: www.textualapp.com]
i8igmac has joined #ruby
<bmcginty> vimz: for the pure horror potential, I'm going to try to write something that will at least capture numbers to a certain length, say into the millions place. I'll assume the numbers will all be single words for now e.g. ninehundredthirty for 930.
konsolebox has quit [Quit: Leaving]
gix has joined #ruby
leesharma has joined #ruby
howdoi_ has joined #ruby
Rollabunna has joined #ruby
<Henchman21> close
Henchman21 has left #ruby ["WeeChat 1.2"]
cats has quit [Ping timeout: 256 seconds]
<vimz> bmcginty haha horror potential okay, thanks a lot
MatthewsFace has quit [Remote host closed the connection]
<vimz> and yes, single words for now :)
cats has joined #ruby
omegamike has joined #ruby
qiukun has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
modern has quit []
omegamike has quit [Ping timeout: 240 seconds]
icebourg has quit []
rbowlby has joined #ruby
icebourg has joined #ruby
fullofcaffeine has joined #ruby
tjbiddle has joined #ruby
oo_ has quit [Remote host closed the connection]
<dymk> you know, it's really quite moving to see stuff in development.log from over a year ago
<dymk> the initial "Processing by Rails::WelcomeController#index as HTML"
theery has quit [Remote host closed the connection]
oo_ has joined #ruby
keen__________31 has quit [Read error: Connection timed out]
tuxtgz has quit [Ping timeout: 252 seconds]
dfockler has joined #ruby
MatthewsFace has joined #ruby
deepu has joined #ruby
keen__________31 has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
theery has joined #ruby
pyon has quit [Quit: I have irrefutable proof that D < 0. It follows trivially from 2D > 3D, which is obviously true.]
kawaii-imouto has joined #ruby
kawaii-imouto is now known as pyon
pyon has quit [Client Quit]
dfockler has quit [Ping timeout: 265 seconds]
Vile` has quit [Ping timeout: 246 seconds]
werelivinginthef has quit [Remote host closed the connection]
krz has quit [Ping timeout: 246 seconds]
michael_mbp has quit [Excess Flood]
Vile` has joined #ruby
schmooster has joined #ruby
charliesome has quit [Quit: zzz]
pyon has joined #ruby
sharpmachine has quit [Remote host closed the connection]
michael_mbp has joined #ruby
poguez_ has joined #ruby
Edward__ has quit [Ping timeout: 250 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
charliesome has joined #ruby
Averna has quit [Ping timeout: 244 seconds]
codecop has joined #ruby
XandnaX has joined #ruby
iateadonut has quit [Ping timeout: 246 seconds]
konsolebox has joined #ruby
oo_ has quit [Remote host closed the connection]
lannonbr has quit [Quit: WeeChat 1.2]
nklv has joined #ruby
<nklv> Any idea for EXCUSE why i was not working for few weeks?
<Aeyrix> You what?
railswebdev has joined #ruby
<[k-> ¿tahw uoy
lxsameer has joined #ruby
<nklv> i havent worked for few weeks. i need an excuse to explain myself
<havenwood> nklv: bundling?
<Aeyrix> nklv: Why haven't you worked the last few weeks?
<[k-> its your fault that you couldnt resist looking at cat videos :3
<nklv> Aeyrix i was exhausted from working so i started procrastinating and doing interesting things instead of boring job
charliesome has quit [Quit: zzz]
crdpink2 has joined #ruby
crdpink has quit [Ping timeout: 246 seconds]
<havenwood> nklv: professional development
<Aeyrix> nklv: Who do you need an excuse for?
<nklv> Aeyrix a client that im working for on a project
<nklv> havenwood whats bundling
<havenwood> nklv: http://bundler.io/
<havenwood> nklv: when you type: bundle install
<Aeyrix> nklv: Were you being paid during this time?
<nklv> Aeyrix during procrastinating? no
<Aeyrix> [14:27:13] <havenwood>nklv: professional development
<Aeyrix> Training.
<Aeyrix> Research and development.
sevenseacat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> nklv: You were in a fugue state.
GnuYawk has quit [Read error: Connection reset by peer]
<Aeyrix> Isn't that a pufferfish?
<nklv> "I was not working for few weeks on this crap boring project because of professional development of my person"
<Ox0dea> That's fugu.
<Ox0dea> nklv: Tell them you were transmogrified into a fugu fish.
<Aeyrix> nklv: "I took temporary leave from the project for my annual period of learning and development."
<Ox0dea> Fugu fish can't type, so you'll be in the clear.
nobitanobi has quit [Remote host closed the connection]
<nklv> Aeyrix that doesnt sound like a good excuse
<Ox0dea> Except that periods are usually monthly, not annual.
<nklv> that annual period could waited till i complete project
<[k-> "Your project is silly & dumb. That's why i didnt work on it"
<Ox0dea> ^
Mendenhall has joined #ruby
nobitanobi has joined #ruby
<nklv> well its not that silly and dumb
tmtwd has joined #ruby
<nklv> it was interesting, at least at beginning
<nklv> but when i had difficulties i procrastinated
<nklv> i got bored too
astrobunny has joined #ruby
PhantomSpank has joined #ruby
<havenwood> nklv: This project has been an interesting one and in order to deliver the best value I've spent several weeks further developing my expertise. I won't be charging anything for this time and am excited to get back to the project.
<[k-> "Your project presents no challenge to me. I was working on another project all this while."
<havenwood> nklv: Is another way to say you got bored.
brianpWins has joined #ruby
PhantomS_ has quit [Ping timeout: 265 seconds]
<havenwood> nklv: try sugar-coated honesty?
<nklv> also how to prevent procrastinating in future?
keen__________32 has joined #ruby
<nklv> havenwood or i could not explain not working at all
<[k-> get a shocker. Each time you procrastinate, you zap yourself
<nklv> its not first time i end up not working for few weeks on project i have
<bmcginty> nklv: your situation sounds very, very familiar, minus the not working bit.
<havenwood> don't explain what doesn't need explaining
_gautam_ has quit [Quit: Lingo: www.lingoirc.com]
<nklv> [k- that wont force me to work on it. i will resist it, im unbreakable
<[k-> then you have no choice but to quit your job
<nklv> [k- and become jobless? how to get food and shelter then?
keen__________31 has quit [Ping timeout: 240 seconds]
existensil has quit [Quit: WeeChat 0.4.2]
<wmoxam> find another job?
<nklv> wmoxam what job
chipotle has joined #ruby
<Aeyrix> nklv: If you don't want to do what you're doing
<nklv> all jobs are boring and bad, even worse than programming
<Aeyrix> find something you want to do.
<Aeyrix> lol so you want to just
<Aeyrix> live with money
<astrobunny> i misread that as find another woman
<Aeyrix> but not work for it
<nklv> Aeyrix exactly!
<bmcginty> nklv: Something I've found, though the shock theropy might work better, is to figure out a slightly better/different way to implement something you're tasked to do. e.g. okay, I've got to do this login form. However, the client didn't specify cookies or what, so I'll look into jwt, web tokens, and (carefully) implement that. Might take a bit longer, but better than doing nothing because the whole project is becoming so bloody ...
<Aeyrix> nklv: marry someone rich
<bmcginty> ... borring you could scream.
<Aeyrix> divorce them after 3 years
MatthewsFace has quit [Remote host closed the connection]
existensil has joined #ruby
<wmoxam> nklv: why do you think all jobs are boring and bad?
Hobogrammer has joined #ruby
<Aeyrix> wmoxam: effort
texasmade has joined #ruby
<nklv> bmcginty that sounds good advice. though not always you have choices like that
<wmoxam> :p
<nklv> Aeyrix i dont want to live off rich partner
<[k-> jwt...
<Aeyrix> nklv: you're not
<Aeyrix> you're making your own money
<Aeyrix> by divorcing them
<Aeyrix> and taking 50%
<Aeyrix> :D
<nklv> thats stealing
<Aeyrix> actually it's forfeit
<nklv> wmoxam because.. they are boring and bad?
Rollabunna has joined #ruby
<[k-> you should become a farmer
<wmoxam> nklv: maybe you should look for one that isn't ;)
<Ox0dea> nklv: Read Ecclesiastes.
<nklv> [k- farmers spend hours daily on many things, physical work. not for me
<Aeyrix> Ox0dea: s'that?
<nklv> wmoxam i dont know of any jobs that isnt
<Ox0dea> Aeyrix: It's a book of the Bible.
<Aeyrix> o
<wmoxam> I don't think creating software is boring
<wmoxam> :p
PaulCapestany has quit [Read error: Connection reset by peer]
<Ox0dea> Aeyrix: It's (allegedly) King Solomon discussing the meaninglessness of life, and toil in particular.
<Aeyrix> oic
<Ox0dea> Seems relevant enough to nklv's predicament.
<nklv> sounds good, life is meaningless
<Ox0dea> nklv: All the true nihilists are in the ground.
Xiti` has joined #ruby
<nklv> Ox0dea so will I soon
<Ox0dea> All in good time.
PaulCapestany has joined #ruby
<nklv> wmoxam most software dev is very boring and repetitive and doesnt include any special analysis / insight
christiandsg has joined #ruby
<wmoxam> nklv: so you conceed that some of it is not 'boring and repetitive". Find a job with more of *that*
<nklv> i want analyze, describe complex things with simple algorithms, compare choices/things, choose best action in situations, etc
<wmoxam> ;)
Rollabunna has quit [Ping timeout: 264 seconds]
<nklv> wmoxam where is that job
<nklv> havent seen yet
<[k-> engineering
Xiti has quit [Ping timeout: 240 seconds]
<[k-> yay i did it \o/
<wmoxam> nklv: what kind of work have you been doing?
PaulCapestany has quit [Max SendQ exceeded]
<Ox0dea> nklv: Do a breakthrough in natural language processing that we may shovel away the snow of the AI winter.
XandnaX has quit [Remote host closed the connection]
sheperson has joined #ruby
<[k-> >> [:foo.object_id, :bar.object_id, :foo.object_id]
<[k-> [11:27:51] <ruboto> dymk # => [417458, 417618, 417458] (https://eval.in/406441)
<ruboto> [k- # => [417458, 417618, 417458] (https://eval.in/406460)
<[k-> :/
<Ox0dea> [k-: Why does its being at least partly deterministic trouble you so?
<dymk> [k-, it doesn't make sense for it to be deterministic, but perhaps it is
<dymk> i like how the name [k- and the word deterministic lined up there
<Ox0dea> As do I.
<dymk> only three letters off to have gone 3/3
<dymk> coulda made bash.org history
christiandsg has quit [Ping timeout: 265 seconds]
<[k-> screenshot pls
<Ox0dea> > screenshot irc
<nklv> wmoxam some boring apps in C++ or C#, or boring web development
<[k-> > > screenshot irc
<Aeyrix> > > using le maymay arrows on irc unironically
<Ox0dea> > mfw chevrons with spaces in
<craysiii> >> "hello"
<ruboto> craysiii # => "hello" (https://eval.in/406461)
<dymk> >>> mfw three chevrons makes it look like a python shell
<ruboto> dymk # => /tmp/execpad-2d15edf2f99d/source-2d15edf2f99d:2: syntax error, unexpected '>' ...check link for more (https://eval.in/406462)
n_blownapart has quit [Quit: Leaving]
<craysiii> lol
<dymk> oh yeah the robot didn't like that
<Ox0dea> >​> fuck the robot
qiukun has quit [Quit: qiukun]
<dymk> this native extension is seriously the bees knees
<wmoxam> nklv: ok, but are you working for companies whose main product is software?
<nklv> Ox0dea id like to do AI stuff but there are no AI jobs
<dymk> it's a big graph database so i can avoid postgres all together
<Ox0dea> nklv: "AI stuff"?
<[k-> an empty width character!
<nklv> wmoxam sometimes yes sometimes no
baweaver has joined #ruby
djbkd has joined #ruby
<nklv> Ox0dea yes, like ai for computer games or something
<Ox0dea> ...
schaerli has joined #ruby
<[k-> you are going to use ruby for games?
railswebdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Aeyrix> [14:50:50] <nklv>wmoxam some boring apps in C++ or C#, or boring web development
<wmoxam> some would find computer game AI pretty boring :p
<Aeyrix> C++ or C#, I assume.
<nklv> wmoxam in most cases it is, thats the problem
<nklv> [k- no
<[k-> pong
<Ox0dea> /part #emotional-support
<Ox0dea> Whoops.
<[k-> :3
schaerli has quit [Remote host closed the connection]
WildBamboo-Josh has quit [Quit: Leaving]
jud has joined #ruby
<nklv> Aeyrix yes
chenillen has joined #ruby
<[k-> ooo time for haskell propaganda
WildBamboo-Josh has joined #ruby
Channel6 has quit [Quit: Leaving]
qiukun has joined #ruby
<shevy> is it useful to have the distinction between symbols as keys in a hash and strings?
<nklv> [k- i was at haskell channel one day. are they like sect?
<[k-> i couldnt understand them too
<[k-> very advanced speech going on there
<Ox0dea> Spacesuits and burritos and the like?
i8igmac has quit [Ping timeout: 260 seconds]
<[k-> ?try Ox0dea
<ruboto> Ox0dea, Why don't you try it and see for yourself?
<Ox0dea> IRC should not be a spectator sport.
<[k-> hue hue hue i managed to use it in ypu
<[k-> you*
shock_one has joined #ruby
<Ox0dea> shevy: Consider the case of URLs as keys.
<[k-> that is why you should try it!
krz has joined #ruby
<Ox0dea> shevy: It's arguably overkill to use a more specialized class where a String would do, and converting URLs to Symbols seems a little silly.
<shevy> well you can combine both in the same hash right now
<shevy> you could have a symbol backup of every string key!
GriffinHeart has quit [Remote host closed the connection]
<shevy> it's like twice the power if you think about it
<Ox0dea> Redundancy all the things!
sevenseacat has joined #ruby
<shevy> ?try ruboto
<ruboto> ruboto, Why don't you try it and see for yourself?
<shevy> haha
<nklv> ?try shevy
<ruboto> shevy, Why don't you try it and see for yourself?
riotjones has joined #ruby
<shevy> I wish so much to just once in my life, break ruboto
<Ox0dea> >> 'x' * 1e17
<ruboto> Ox0dea # => float 1e+17 out of range of integer (RangeError) ...check link for more (https://eval.in/406463)
<Ox0dea> Stupid 32-bit host.
GriffinHeart has joined #ruby
sheperson has quit [Quit: sheperson]
juanpablo_ has joined #ruby
krz has quit [Ping timeout: 264 seconds]
riotjones has quit [Ping timeout: 256 seconds]
chrissonar has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
juanpablo_ has quit [Ping timeout: 265 seconds]
astrobun_ has joined #ruby
sharpmachine has joined #ruby
Rickmasta has joined #ruby
atmosx has joined #ruby
workmad3 has joined #ruby
tubulife- has joined #ruby
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 244 seconds]
astrobunny has quit [Ping timeout: 244 seconds]
user1138_ has joined #ruby
user1138_ has quit [Remote host closed the connection]
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
workmad3 has quit [Ping timeout: 244 seconds]
sharpmachine has quit [Ping timeout: 265 seconds]
tubulife- has quit [Ping timeout: 244 seconds]
theery has quit [Remote host closed the connection]
doctorly has quit [Ping timeout: 272 seconds]
kokoleavia has joined #ruby
latemus has joined #ruby
GeissT has joined #ruby
nobitanobi has quit [Remote host closed the connection]
icebourg has quit []
dgutierrez1287 has joined #ruby
arescorpio has quit [Quit: Leaving.]
nklv has quit [Quit: nklv]
MrSamuel has joined #ruby
Xzanron has joined #ruby
v0n has quit [Ping timeout: 246 seconds]
tjbiddle has quit [Quit: tjbiddle]
dgutierrez1287 has quit [Ping timeout: 240 seconds]
krz has joined #ruby
fedexo has joined #ruby
hdmudge has joined #ruby
yardenbar has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
hdmudge has quit [Quit: ChatZilla 0.9.91.1 [Iceweasel 31.8.0/20150701031438]]
crazydiamond has joined #ruby
three18t- has quit [Ping timeout: 244 seconds]
three18ti has joined #ruby
mello has joined #ruby
decaff has joined #ruby
<craysiii> >> (1...50)
<ruboto> craysiii # => 1...50 (https://eval.in/406469)
<craysiii> i dont know what i expected.
<baweaver> me either
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Rollabunna has joined #ruby
allomov_ has quit [Remote host closed the connection]
bluOxigen has joined #ruby
weemsledeux has joined #ruby
<Radar> me makes 3
* sevenseacat gets crystal ball
decaff has quit [Ping timeout: 272 seconds]
oo_ has joined #ruby
<craysiii> >> (1...50).each { |n| n.times { puts n } }
<ruboto> craysiii # => 1 ...check link for more (https://eval.in/406475)
<craysiii> bot too smart
sinkensabe has quit [Ping timeout: 255 seconds]
GriffinHeart has joined #ruby
tmtwd has quit [Remote host closed the connection]
tjbiddle has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
Jarboe has quit []
aevitas has joined #ruby
oo__ has joined #ruby
chinmay_dd has joined #ruby
djbkd_ has joined #ruby
einarj has joined #ruby
aevitas has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 272 seconds]
* baweaver stares blankly
aevitas has joined #ruby
djbkd_ has quit [Client Quit]
krokuz has quit [Ping timeout: 244 seconds]
einarj has quit [Ping timeout: 240 seconds]
chinmay_dd has quit [Quit: See ya!]
shock_one has quit [Remote host closed the connection]
<Ox0dea> craysiii: puts 50.times.map { |n| [n] * n }
chinmay_dd has joined #ruby
<Aeyrix> Ox0dea: Why are you using alphanumeric characters?
Mia has joined #ruby
Mia has joined #ruby
<Ox0dea> Shit. You got me.
<Aeyrix> ^_^
eminencehc has joined #ruby
deepu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Ox0dea> baweaver: There was some sort of Harry Potter marathon on this past weekend, and it reminded me of you. <3
<baweaver> I was watching it <3
<baweaver> Vacation is fun
<baweaver> though I fail at vacationing
oo__ has quit [Remote host closed the connection]
<baweaver> already gone through most of Unix Powertools and TCP/IP Administration
<Ox0dea> What's that Ruby-ish fellow what does lots of UNIX-y books?
usershell has joined #ruby
* sevenseacat confiscates baweaver's computer
levifig has quit [Ping timeout: 246 seconds]
<baweaver> jokes on you
<sevenseacat> though I failed at vacation last week also
krokuz has joined #ruby
tkuchiki has joined #ruby
<baweaver> they're on my kindle :D
v0n has joined #ruby
sinkensabe has joined #ruby
emdub has quit [Ping timeout: 246 seconds]
* sevenseacat confiscates Kindle and goes through it
<Ox0dea> I was thinking of @jstorimer: http://www.jstorimer.com/pages/books
<baweaver> Most of it is fiction
<sevenseacat> you read what!? o.o
last_staff has joined #ruby
<baweaver> Name of the Wind, Lies of Locke Lamora, Mistborn, Stormlight Archive, Wheel of Time, Montemorency, Arsene Lupin, and a few others I forget
<Ox0dea> The first two are quite good.
eminencehc has quit [Ping timeout: 244 seconds]
<baweaver> That's this year so far.
<Ox0dea> LLL's author was in something of a troubled state for a while. :/
emdub has joined #ruby
levifig has joined #ruby
quazimod1 has quit [Remote host closed the connection]
<baweaver> Scott Lynch
<Ox0dea> Aye.
<bmcginty> vimz: My brain hath melted like an icecream cone. Got it to match bunches of numbers properly, then the parenthesies, oh the parenthesies for grouping, attempted to take over my brain. Anyhow, I'll gist what I've got, and if I get time tomorrow, I'll get back to it. Be warned, it's...icky.
<Radar> Troubled state?
<Ox0dea> Glitch in the wetware.
<Radar> [citation needed]
<bmcginty> baweaver: stormlight archive and that group are amazing!
<baweaver> Wheel of Time is a huge commitment, but worth it.
<baweaver> 14 books, most over 1000 pages.
sepp2k has joined #ruby
<sevenseacat> i have the first wheel of time book on my kindle
<baweaver> oi sepp2k, how's it going? (lemur)
oo_ has joined #ruby
xcesariox has joined #ruby
<Ox0dea> baweaver: All caught up on ASoIaF, presumably?
aganov has joined #ruby
<baweaver> Not quite
<Ox0dea> Blasphemy.
<sepp2k> baweaver: Hi. Well. How about you?
<sevenseacat> thats one series i have read
armyriad has quit [Read error: Connection reset by peer]
<Ox0dea> Too political?
<baweaver> Ah decent enough. Working out of SF. Where were you at again?
tvw has joined #ruby
<atmosx> baweaver: there are single books that feature ~ 1.000-1.200 pages
<Ox0dea> bcavileer: Saints preserve us.
<atmosx> 10 books 1.000 pages doesn't sound like much
* atmosx my molecular biology has 1.600 IIRC.
<baweaver> 14 books averaging 1000 pages each
<atmosx> aaah
<atmosx> omfg
<[k-> >> 1.000
<ruboto> [k- # => 1.0 (https://eval.in/406484)
<atmosx> that's like a marathon
<baweaver> Did it in under 2 months
<atmosx> baweaver: how many hours per day?
* atmosx is a slow reader
<Ox0dea> Some day we'll just drink books.
<baweaver> normally about 1.5 hours on weekdays and 5-6 on weekends
timonv has joined #ruby
<baweaver> I read like a monster, about 2-3 pages a minute.
roolo has joined #ruby
eGGsha has joined #ruby
piyush has joined #ruby
<atmosx> baweaver: how do you manage that?
<baweaver> Don't know, I just do
<piyush> hello friends, i am a php code i have few lines of ruby, can some one help me to understand that
riotjones has joined #ruby
<Ox0dea> ?anyone
<ruboto> Just ask your question, if anyone has or can, they will respond.
<piyush> it is related to soap rpc
<Ox0dea> ?nobody
<ruboto> apeiros is nobody
<baweaver> well that's rather harsh
davedev24 has quit []
<[k-> apeiros set it himself
<piyush> please help me to convert this into php http://prntscr.com/7xfyeq
<baweaver> What have you tried so far piyush? Do you have any code?
<[k-> we aren't php workers!
<baweaver> also I don't trust that link
<baweaver> use ?gist
<Ox0dea> Which circle of Hell is reserved for people who post images of code?
<baweaver> ?gist
<ruboto> https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<[k-> ?gist_usage
<ruboto> To properly use gist, please enable syntax highlighting, either by choosing the language manually or by entering a proper filename. If you post multiple things, separate them into multiple files. If you have a Github account, please update your gist with new information instead of posting a new one.
<piyush> baweaver, i have given code in link
<Aeyrix> piyush: no, you've given an image in the link
<baweaver> you gave an image
<piyush> yeah, code is written on it
<baweaver> also, we're not in the business of translating code for people
<baweaver> that's your job
<[k-> if you want help, you help us help you
<baweaver> ours is to push you in the right direction after you've tried
<sevenseacat> wait, you want to convert some code to php? and you're asking in #ruby ?
<[k-> ^
<sevenseacat> something does not compute
<baweaver> that being said I have strong doubts you'll get PHP help on #ruby
<Aeyrix> I still haven't gotten over the hilarity of posting a screenshot of code.
<Aeyrix> It's just missing a copyright watermark for premium laughs.
<[k-> shevy would gladly :>
<piyush> sevenseacat, becoz that is ruby code and i am php developer
<Aeyrix> "MORE LAUGHS AT 9GAG.COM"
<Ox0dea> piyush: Hey, you said you were a PHP code!
<baweaver> your problem is you don't understand code in general
<Aeyrix> Hey guys, serious question
<Aeyrix> how do you maintain momentum on your side projects?
<baweaver> If you did, this would not be hard to translate at all.
<[k-> anything is possible with webdevs
<Ox0dea> Aeyrix: Use them.
<baweaver> Aeyrix: make sure it gets used
<[k-> oops
riotjones has quit [Ping timeout: 272 seconds]
<piyush> yeah, that is using soap libraries and tried to connect with a server using xsd files, am i right?
<Aeyrix> baweaver: What if it's something that kind of can't be used until it's "done"?
<baweaver> then people will naturally bug you on it.
<baweaver> then reevaluate for an MVP you can get out.
<Aeyrix> Can you rephrase that?
<Aeyrix> I'm fucking exhausted today. I've been in meetings all day.
<baweaver> minimum viable product
<sevenseacat> I have no side projects
<baweaver> what's the simplest thing you can get out the door right now
<sevenseacat> thats how I do it :thumbsup:
leesharma has quit [Ping timeout: 240 seconds]
piyush has quit [Quit: Page closed]
ohaibbq has quit [Quit: Leaving...]
<baweaver> I have....
lsmola has joined #ruby
<Aeyrix> baweaver: Hm.
* baweaver stares in horror at count
<baweaver> nevermind
<Aeyrix> I guess not all of the functionality yeah
<Aeyrix> although I want to turn this into a paid service later down the line
<Aeyrix> (when it's done)
<baweaver> biggest thing is make it practical asap
Oog has joined #ruby
<Aeyrix> Alrighty.
<baweaver> the more esoteric the less you can get drive from it
<baweaver> unless you're me or Ox0dea
riotjones has joined #ruby
<Ox0dea> Esoterica is my shit.
<baweaver> then we just get our jollies from it
<Aeyrix> I wish I did. :v
x44x45x41x4E has joined #ruby
sharpmachine has joined #ruby
<Aeyrix> I just don't have the energy a lot of the time. ;_;
<Ox0dea> :"(
_ht has joined #ruby
<baweaver> redbull gives you wiiiiings
<baweaver> and tachycardia
<Aeyrix> Heh.
<Ox0dea> Aeyrix: Tried Ballmer peaking?
<Aeyrix> Not recently.
<Aeyrix> I need to go shopping.
JohnBat26 has quit [Ping timeout: 244 seconds]
<baweaver> A good few glasses of Balvenie 14 Caribbean does the trick. I've quantified my Ballmer's Peak and calibrated it fairly well
<Aeyrix> $$ on that?
<Aeyrix> $115/700mL
<[k-> baweaver: Ox0dea: Obfuscate: o
<Aeyrix> thanks Obama
<Aeyrix> baweaver: That sounds INCREDIBLE
<baweaver> ~$70 around here.
<Aeyrix> Any uh
<Aeyrix> more economic alternatives?
<Aeyrix> $70 is my avg spend on spirits
<baweaver> Balvenie Double Wood ~$40
<Aeyrix> You're a belvanie fan through and through hey?
<Aeyrix> Balvenie even
<baweaver> Between that and Lagavulin
<Aeyrix> Double wood is $163
sharpmachine has quit [Ping timeout: 252 seconds]
<baweaver> the expensive one, yeah
<Aeyrix> > more economic
<Aeyrix> > you list a pricier one
<Aeyrix> t-thanks
<Ox0dea> Balvenie comes in a Pringles tube?
<Ox0dea> That's a bold move.
<Aeyrix> Ox0dea: favourites go
<Ox0dea> Crown...
<Aeyrix> Lager?
<Aeyrix> r u srs m9
<Ox0dea> It's whiskey.
<Aeyrix> oh
<Aeyrix> lel
<Aeyrix> Crown Royal Canadian?
<Ox0dea> Oui.
<Aeyrix> Which one?
<Aeyrix> chSubmitted=true&bmText=searchInput&searchInput=Crown&bmFields=bmText%2CbmEditable%2CbmPrevTemplate%2CbmForm%2CbmIsForm%2CbmUID%2CbmHidden%2CbmFormID&bmHash=990f47dba2290f8608711d725ec918913e9a71ee
<Aeyrix> ...
<Aeyrix> sorry
chinmay_dd has quit [Ping timeout: 246 seconds]
<Ox0dea> Wow, dude.
<Aeyrix> Didn't realise that was such a huge link.
<Aeyrix> baweaver: Yeah if I ever get access to my trust fund
<Aeyrix> I'll buy that and review it just for you
<Ox0dea> Anything but the weird fruit things they've been going toward as of late.
<Aeyrix> What's canadian whiskey vs, say
<Aeyrix> scotch?
<Ox0dea> Better.
<Aeyrix> in what way?
<baweaver> depends on the person honestly.
<Aeyrix> welp
<Aeyrix> scotch burns me p badly
<Aeyrix> bourbon doesn't
<Ox0dea> baweaver: Have I lost my personhood?!
<baweaver> Scotch is made in a specific region of Scotland
<baweaver> We both did some time ago for our crimes against Ruby
<Ox0dea> Guilty.
<baweaver> didn't you get Matz's memo?
<Ox0dea> Hey, "memo" is valid Japanese; I wonder what it means...
<Aeyrix> Ox0dea: Crown Royal Maple Finished Canadian Whisky 750mL
<Aeyrix> ?
<Ox0dea> Yeah, that's not bad.
<Aeyrix> What's your favourite of the mix right now?
<Aeyrix> I'm going on your pref here.
<Ox0dea> Are you looking for something you wouldn't need to cut?
<Aeyrix> I tend to not do so
<Aeyrix> so, either way
<tabakhase> ooookkkkaayyy, i think (more like belive) i got it...
<Ox0dea> I don't even remember when I started drinking Crown on the rocks, but it's been my go-to for some time.
<Aeyrix> rocks being ice or soapstone? :^)
<Ox0dea> I had to check whether there wasn't some reference I'd missed.
Guest32 has joined #ruby
<Aeyrix> Heh, no
<Aeyrix> I mean, do you use ice or soapstone
<Ox0dea> Does soapstone have some alternate meaning in this context?
<Aeyrix> No.
<Ox0dea> Heh.
<Aeyrix> Soapstone is used in place of ice when you don't want to dilute the drink.
<Aeyrix> Mostly for scotch, but for other spirits too.
<Aeyrix> I recommend against using it for things like vodka though.
<Aeyrix> For obvious reasons.
willywos has quit [Quit: Textual IRC Client: www.textualapp.com]
<Ox0dea> That's interesting. That massive Jesus statue in Rio is apparently made of soapstone; does that mean Scotch is permitted at Mass?
<Aeyrix> Cristo Redentor?
<Ox0dea> That one.
Rollabunna has joined #ruby
acke has joined #ruby
<Aeyrix> But yeah, so you have with ice?
<Ox0dea> Oui.
<Aeyrix> I'm just going to buy your recommendation here. :^)
<Aeyrix> Which one are you going on atm?
<Ox0dea> Simple is good.
<Ox0dea> Calling the original "deluxe" seems a little disingenuous, but that one.
DrCode has quit [Ping timeout: 246 seconds]
fedexo has quit [Ping timeout: 246 seconds]
<craysiii> >> puts 50.times.map { |n| [n] * n }
<ruboto> craysiii # => 1 ...check link for more (https://eval.in/406490)
christiandsg has joined #ruby
<Ox0dea> craysiii: Do you test me?
<craysiii> no i was listening, you said to do it :)
<sevenseacat> craysiii: you have irb on your computer, you know
Rollabunna has quit [Ping timeout: 244 seconds]
<sevenseacat> you can run all this there
<Aeyrix> Yeah but it's more fun to run it with ruboto.
<craysiii> ^
<Aeyrix> Hooo boy I've had too much caffeine, I can feel it.
<craysiii> is it late or early for you Ae
<Ox0dea> It's having a deleterious effect on your typing speed.
<craysiii> does anyone here do typeracer.com
<Ox0dea> Let's!
baweaver has quit [Remote host closed the connection]
<Ox0dea> [finger flexing intensifies]
* craysiii cracks his knuckles
safeforge has joined #ruby
<Aeyrix> craysiii: It's nearly home time.
<Aeyrix> I was feeling off though so I had another double hsot.
<Aeyrix> shot *
<Aeyrix> I regreti t.
<Ox0dea> Of?
<Aeyrix> Espresso.
<Ox0dea> Om noms.
Ilyes512 has joined #ruby
<Aeyrix> Now I have a headache. :<
<Aeyrix> Also RE: typeracer
<Aeyrix> I peak at about 140wpm
christiandsg has quit [Ping timeout: 265 seconds]
<craysiii> nice, my peak is 110
<Aeyrix> This automatically makes me always correct in arguments by default.
<Aeyrix> Normally I hover around 100 though.
<craysiii> haha
<Ox0dea> It is known.
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<craysiii> im around 85 usually
<Guest32> second :)
<craysiii> nice :)
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
auzty has joined #ruby
vondruch has quit [Ping timeout: 244 seconds]
<craysiii> i dont see how people can type 140+
<Aeyrix> craysiii: Mostly just practice.
shpoont has joined #ruby
<Ox0dea> Aeyrix: That's m'baby.
<Aeyrix> m'lady
<Ox0dea> I sometimes get to wondering how many of those purple bags I'd have by now if I didn't toss them out.
<Aeyrix> Will purchase tonight or something.
<craysiii> m'whiskey
<Aeyrix> Maybe I'll get it delivered.
<Aeyrix> M'eme.
yokel has quit [Ping timeout: 256 seconds]
<craysiii> the only dark i like is hennessy
<Aeyrix> I wonder how much it is delivered.
<Aeyrix> Probably like more than $20.
werelivinginthef has joined #ruby
yokel has joined #ruby
Hounddog has joined #ruby
bayed has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Guest32> craysii you're damn fas
* Ox0dea lets craysiii have this one.
<craysiii> i keep tripping over myself
<craysiii> reading too fast
atmosx has quit [Quit: computer went to sleep...]
<craysiii> Ox is a lot faster :P
<Ox0dea> That one with all the languages was brutal.
<Aeyrix> Gross.
<Aeyrix> This keyboard
<Aeyrix> is bad
<[k-> if i do voice typing, will i win?
Ilyes512 has quit [Quit: Textual IRC Client: www.textualapp.com]
<Aeyrix> yes
<[k-> :>
werelivinginthef has quit [Ping timeout: 246 seconds]
towski_ has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<craysiii> :P
<craysiii> dostoyevsky of course
<Guest32> lol
markholmes has joined #ruby
<craysiii> i should have known with that messed up punctuation
<Aeyrix> Ugh I can't break 80
<Aeyrix> on this keyboard
<Aeyrix> gross
safeforge has quit [Remote host closed the connection]
gagrio has quit [Remote host closed the connection]
<SebastianThorn> Aeyrix: haha, what brand?
<Ox0dea> craysiii: Dat 127 doe!
<craysiii> WOW
<Aeyrix> SebastianThorn: Logitech K120.
<Ox0dea> I fucked up right at the end too. :/
* craysiii golf claps
<Aeyrix> Normally I use an Apple board.
<Ox0dea> Danke.
<craysiii> bitte.
atmosx has joined #ruby
<craysiii> sehr schnell.
<Ox0dea> Ooh, big one.
danzilio has joined #ruby
<[k-> that was a horrible video
<Ox0dea> Pretty painful.
<craysiii> omg Ox ive seen taht one before
<craysiii> hahahahah
krz has quit [Ping timeout: 250 seconds]
<SebastianThorn> Aeyrix: i got a TypeMatrix 2030, had it for some years now i think, verry happy with it
tjbiddle has joined #ruby
andikr has joined #ruby
<craysiii> i user a razer blackwidow ultimate 10key-less
<Ox0dea> craysiii: I'm going to do this last one with my hands tied behind my back. ^_^
<Aeyrix> Ah fuck
juanpablo_ has joined #ruby
<craysiii> haha
<Aeyrix> I can't believe I've done this
<Aeyrix> my head hurts
<sevenseacat> now you've definitely lost
<Ox0dea> Ha.
<Aeyrix> coffee was a mistake
duncannz has joined #ruby
roolo has quit [Remote host closed the connection]
rubie has joined #ruby
<Ox0dea> > I can't believe I've done this
<craysiii> bleh
<craysiii> fat fingers right now
<craysiii> 81%, said screw it
aevitas has quit [Remote host closed the connection]
<Ox0dea> Aeyrix: I was, of course, cognizant of the reference.
<Aeyrix> I need that in my GECOS.
<craysiii> i havent seen it before :p
<Ox0dea> I done been ridin' this here Superhighway many years now.
<Aeyrix> craysiii: It's my favourite youtube clip of all time.
<craysiii> i think my most favorite is that of supa hot fire.
<Aeyrix> I'm not a rapper.
<craysiii> glasses. jacket. shirt. call me glassesjacketshirt man
<Ox0dea> s/^/But /
qiukun has quit [Quit: qiukun]
<Ox0dea> Do you remember where you were the first time you saw Dancing Baby?
<craysiii> yes actually.
juanpablo_ has quit [Ping timeout: 240 seconds]
<Aeyrix> Debit cards
<Aeyrix> I swipe that.
GeissT has quit [Ping timeout: 250 seconds]
houhoulis has quit [Remote host closed the connection]
rubie has quit [Ping timeout: 265 seconds]
ta has quit [Remote host closed the connection]
ta has joined #ruby
qiukun has joined #ruby
<craysiii> look, boom, bam, boop, bada bop, boom, POW
<Aeyrix> [ cheering intensifies ]
oo_ has quit [Remote host closed the connection]
tubuliferous_ has joined #ruby
workmad3 has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shibly has joined #ruby
lkba_ has joined #ruby
tagrudev has joined #ruby
shibly has left #ruby [#ruby]
shibly has joined #ruby
astrobun_ has quit [Remote host closed the connection]
cats has quit [Ping timeout: 250 seconds]
shibly has left #ruby [#ruby]
AndChat-43764 has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
schaerli has joined #ruby
felixrsmith has joined #ruby
oo_ has joined #ruby
cats has joined #ruby
<craysiii> sweet dolla tea from McDonalds. i drink that
safeforge has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
matchaw has joined #ruby
Oog has quit []
workmad3 has quit [Ping timeout: 240 seconds]
lkba_ has quit [Ping timeout: 256 seconds]
Guest32 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
atmosx has quit [Quit: computer went to sleep...]
shpoont has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[k-> no one laughed :(
<[k-> it's my favorite YouTube video
<Aeyrix> I'm trying to work out the logistics of dollar tea.
qiukun has quit [Quit: qiukun]
<craysiii> you're thinking too hard
leesharma has joined #ruby
<craysiii> sugar + water = dollar tea
qiukun has joined #ruby
qiukun has quit [Client Quit]
<Aeyrix> ... no tea?
danzilio has quit [Quit: My computer has fallen asleep!]
<craysiii> no no no. gotta maximize profits
<Ox0dea> sepp2k: Do you remember doing free QA on a gift horse?
eGGsha has joined #ruby
astrobunny has joined #ruby
sharpmachine has joined #ruby
Juanchito has joined #ruby
aevitas has joined #ruby
stan has joined #ruby
sharpmachine has quit [Ping timeout: 244 seconds]
schaerli has quit [Remote host closed the connection]
bigmac_ has joined #ruby
lsmola has quit [Remote host closed the connection]
decaff has joined #ruby
lsmola has joined #ruby
<kannan4k> folks, I am learning Ruby, what does that mean in Ruby? @@_repos ||= []
x44x45x41x4E has quit [Quit: Away, for now.]
Rollabunna has joined #ruby
latemus has quit [Quit: leaving]
<kannan4k> ^ I am from Python background, what deos that '@@' mean in ruby and why is '||' is used?
allomov has joined #ruby
<al2o3-cr> kannan4k: assigns an array to a class variable if nil
texasmade has quit [Ping timeout: 265 seconds]
vondruch has joined #ruby
decaff has quit [Ping timeout: 255 seconds]
<[k-> you might want to look up class variables first
<kannan4k> al2o3-cr: '||' checks for nil?
ksjdflsjldf has joined #ruby
<al2o3-cr> ||= equates to foo || foo = bar
towski_ has quit [Remote host closed the connection]
<[k-> || is a boolean operator
omegamike has joined #ruby
<[k-> nil is a falsey value
<[k-> ruby has short-circuiting
<kannan4k> [k-|, al2o3-cr: here is the class https://gist.github.com/kannan4k/62c0e455f83ba6016eaf
<[k-> so if the LHS is falsey, the RHS is ran
<[k-> if the LHS is truthy, the RHS is not ran
Rollabunna has quit [Ping timeout: 244 seconds]
<[k-> and the RHS happens to be = []
<[k-> as all class variables are nil by default,
<[k-> when you run ||=[] the first time
allomov has quit [Ping timeout: 246 seconds]
<[k-> it evaluates to nil || = []
<[k-> since nil is falsey, RHS is evaluated
ksjdflsjldf has quit [Remote host closed the connection]
<[k-> so it becomes @@class_var = []
leesharma has quit [Ping timeout: 244 seconds]
ksjdflsjldf has joined #ruby
<[k-> [] is a truthy value
<[k-> so if you run it again
<[k-> @@class_var ||= [] becomes truthy ||= []
<[k-> and the RHS is not ran
<[k-> so @@class_var isnt 'reset' to an empty array
<kannan4k> great, thanks [k-|, got you
vdamewood has joined #ruby
DaniG2k has joined #ruby
<[k-> you are welcome
omegamike has quit [Ping timeout: 244 seconds]
ksjdflsjldf is now known as walterizyion
DaniG2k has quit [Client Quit]
darithorn has joined #ruby
<al2o3-cr> >> class Foo; @@foo = false; @@bar = 1; def self.test; @@foo ||= :changed; @@bar ||= 2; [@@foo, @@bar] end end
<ruboto> al2o3-cr # => :test (https://eval.in/406519)
<al2o3-cr> >> class Foo; @@foo = false; @@bar = 1; def self.test; @@foo ||= :changed; @@bar ||= 2; [@@foo, @@bar] end end; Foo.test
<ruboto> al2o3-cr # => [:changed, 1] (https://eval.in/406520)
<Ox0dea> >> @foo &&= @foo ||= 1
yokel has quit [Ping timeout: 272 seconds]
<ruboto> Ox0dea # => nil (https://eval.in/406521)
<[k-> &&= is ugly
<al2o3-cr> ?symbolhound
<ruboto> I don't know anything about symbolhound
<Ox0dea> Very noisy.
<al2o3-cr> :(
<Ox0dea> [k-: I trust you like <<= and >>=, though.
haxrbyte has joined #ruby
krandi has joined #ruby
Mendenhall has quit [Ping timeout: 244 seconds]
allomov has joined #ruby
andikr has quit [Ping timeout: 272 seconds]
icharlie has joined #ruby
felixrsmith has quit [Quit: Konversation terminated!]
<[k-> referring to haskell?
atmosx has joined #ruby
<[k-> i think its =<< instead, though
leesharma has joined #ruby
Muhannad has joined #ruby
markholmes has quit [Read error: Connection reset by peer]
que__ has joined #ruby
<[k-> i do like >>=
<al2o3-cr> >> x = 256; x <<= 24
<ruboto> al2o3-cr # => 4294967296 (https://eval.in/406522)
andikr has joined #ruby
<Ox0dea> [k-: =<< = flip >>=
<Ox0dea> Which is beautiful.
<craysiii> >> 1 << 2
<ruboto> craysiii # => 4 (https://eval.in/406523)
<que__> can someone explain me here. where does sending the responde for request happens ? ( it is an input module and it should send respond. ) https://gist.github.com/quejinho1988/5692f2202bbca1b056ad
<craysiii> thats useful
krandi has quit [Ping timeout: 250 seconds]
Brainling has quit [Read error: Connection reset by peer]
<shevy> Aeyrix I usually keep a todo list for side projects, and look for implementations that are simple, like 30 minutes to 3 hours or so as a range
<que__> i see line 101 and i dont understand what it does .
<apeiros> que__: is that a github bug again or does your code seriously have no indents at all?
<[k-> que__ that is understandable
<apeiros> ok, raw reveals no indents
<apeiros> no way I'm reading that.
<que__> here is better looking and more readable .
yokel has joined #ruby
<[k-> i see the code and i dont understand what it does
<Ox0dea> >> def sum s; s.bytes.reduce(:+) - 96 * s.size end; [sum('setups'), sum('teardown')]
<ruboto> Ox0dea # => [100, 100] (https://eval.in/406524)
<que__> [k-: i gave the new link. that looks like a code now
<[k-> hold on there: username == @user && password == @password.value
<craysiii> Ox what kind of witchcraft are you conjuring
<[k-> who writes such code
<apeiros> que__: so you don't understand `@codecs[content_type] = LogStash::Plugin.lookup("codec", codec).new`?
<Ox0dea> craysiii: I just like that "setups" and "teardown" are both dollar words.
einarj has joined #ruby
<que__> apeiros: not really. i just write scripts ( simple ones ) this is like abstraction.
<que__> that is why i risk and ask here
benlovell has joined #ruby
<apeiros> okay, I'm not sure if that was a "yes, that's the line I have troubles with" or not
CustosLimen has quit [Read error: Connection reset by peer]
<craysiii> i admit it took me a minute to realize exactly what it did. thats cool though
thiagovsk has quit [Quit: Connection closed for inactivity]
f4cl3y has joined #ruby
<que__> apeiros: sorry. Issue is more complex. i try to make work nxlog with logstash over http protocol. since nxlog is screaming about "ERROR unexpected data from server" i try to figure out where does the logstash input sends respond request.
duncannz has quit [Ping timeout: 264 seconds]
<apeiros> *sob*, ok. sorry, but this looks like it would be a neverending quest to figure out what you're asking. I'm out.
`Nibble has joined #ruby
<que__> i explained. question is. does someone see in the code where does this module send respond for request
haxrbyte_ has joined #ruby
robbyoconnor is now known as r0bby_
r0bby_ is now known as robbyoconnor
einarj has quit [Ping timeout: 250 seconds]
chinmay_dd has joined #ruby
dgutierrez1287 has joined #ruby
chinmay_dd has quit [Remote host closed the connection]
<que__> or if it is still not clear. can someone explain me what does line 101 do
Guest32 has joined #ruby
kies^ has quit [Ping timeout: 246 seconds]
<craysiii> no idea.
haxrbyte has quit [Ping timeout: 246 seconds]
<adaedra> Hi
<[k-> hello
Lucky___ has joined #ruby
<ljarvis> que__: line 132 runs the proc defined on line 109
<ljarvis> (of the formatted code, not that re-pasted code)
<que__> ljarvis: any comment on that 119 line ?
Omni_ has joined #ruby
<ljarvis> que__: yes, it's an array of objects being returned to signify a successful response (200 OK)
ejnahc has quit [Remote host closed the connection]
radgeRayden has quit [Ping timeout: 244 seconds]
dgutierrez1287 has quit [Ping timeout: 244 seconds]
<que__> returned by rescue => e ?
<ljarvis> see the rack documentation
<ljarvis> that's not line 119 is it
<ljarvis> 119: ['200', RESPONSE_HEADERS, ['ok']]
<que__> yes
<que__> by how does it is sended ? i see an array
ejnahc has joined #ruby
<que__> s/by/but
<ljarvis> that's the return value of the proc
andikr has quit [Ping timeout: 246 seconds]
<ljarvis> the proc is then used on line 132: run(p)
<que__> ljarvis: hmmm so if i understood correctly. it will run ( the 119 ) only if i do the run on line 132 ( which requires authentication ) ?
<ljarvis> this run method is basically just a rack app
<ljarvis> que__: correct, the proc defined on 109 and all of its contents do nothing on their own
andikr has joined #ruby
<ljarvis> also, that does *not* require authentication, at least in that code it's optional
<que__> ljarvis: that helped a lot
<que__> thank You very much
<ljarvis> no problem
armyriad has joined #ruby
andikr has quit [Client Quit]
andikr has joined #ruby
Omni_ is now known as Slavox
cats has quit [Ping timeout: 240 seconds]
glenn_ has quit [Ping timeout: 252 seconds]
arquebus has joined #ruby
glenn_ has joined #ruby
cats has joined #ruby
oo_ has quit [Remote host closed the connection]
hololeap has joined #ruby
michael_mbp has quit [Excess Flood]
MrSamuel has quit [Quit: MrSamuel]
schaerli has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
certainty has quit [Quit: WeeChat 0.4.3]
c0m0 has joined #ruby
certainty has joined #ruby
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kraljev11 has joined #ruby
eGGsha has joined #ruby
sharpmachine has joined #ruby
solars has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
joonty has joined #ruby
banister has joined #ruby
Guest32 is now known as tchemi
Rollabunna has joined #ruby
arquebus has quit [Quit: konversation disconnects]
rdark has joined #ruby
sharpmachine has quit [Ping timeout: 252 seconds]
schaerli has quit [Remote host closed the connection]
christiandsg has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
kraljev11 has quit [Quit: kraljev11]
fabrice31 has joined #ruby
bumbar_ has joined #ruby
bumbar_ has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
MrSamuel has joined #ruby
yardenbar has joined #ruby
DaniG2k has joined #ruby
eilkahn_ has quit [Read error: Connection reset by peer]
aleshgo has joined #ruby
aleshgo has quit [Client Quit]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axl_ has joined #ruby
walteriz_ has joined #ruby
icharlie has quit [Remote host closed the connection]
ledestin has quit [Ping timeout: 252 seconds]
livathinos has joined #ruby
walterizyion has quit [Ping timeout: 240 seconds]
AndChat-43764 has quit [Ping timeout: 255 seconds]
yie_ has joined #ruby
eGGsha has joined #ruby
qiukun has joined #ruby
MrSamuel has quit [Quit: MrSamuel]
safeforge has quit [Remote host closed the connection]
white_bear has joined #ruby
juanpablo_ has joined #ruby
hello____ has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
marr has joined #ruby
rbowlby has quit [Remote host closed the connection]
chenillen has quit [Quit: chenillen]
juanpablo_ has quit [Ping timeout: 264 seconds]
fabrice31_ has joined #ruby
hello____ has quit [Quit: Textual IRC Client: www.textualapp.com]
tubuliferous_ has joined #ruby
antgel has quit [Ping timeout: 272 seconds]
workmad3 has joined #ruby
kraljev11 has joined #ruby
antgel has joined #ruby
yfeldblum has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
safeforge has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruurd has joined #ruby
white_bear has quit [Quit: leaving]
tubuliferous_ has quit [Ping timeout: 244 seconds]
<yorickpeterse> morning children
<ruurd> morning headmaster
<adaedra> we're not all childrens
<adaedra> *-s
<apeiros> adaedra: you're certainly the child of somebody :-p
workmad3 has quit [Ping timeout: 260 seconds]
GriffinHeart has quit [Remote host closed the connection]
<adaedra> you don't know me
ledestin has joined #ruby
professor_soap has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
leesharma has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
<[k-> you don't know me; you don't know me; you don't know me; you don't know me; so shut up boy; shut up boy; shut up boy; shut up, shut up!
chenillen has joined #ruby
Philipp__ has joined #ruby
araujo has joined #ruby
GriffinHeart has joined #ruby
oo_ has joined #ruby
quimrstorres has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sameerynho has joined #ruby
BeatzKilla has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
white_bear has joined #ruby
leafybasil has quit [Remote host closed the connection]
lxsameer has quit [Ping timeout: 250 seconds]
vimz has quit [Ping timeout: 240 seconds]
quimrstorres has joined #ruby
<yorickpeterse> now for an exciting day of writing blog posts/documentation
anisha has joined #ruby
j4cknewt has quit [Remote host closed the connection]
decaff has joined #ruby
lkba has joined #ruby
wpp has joined #ruby
vasilakisfil has joined #ruby
aevitas has quit [Remote host closed the connection]
<vasilakisfil> let's say that I have a method that does some very hard work
<vasilakisfil> and I want it to return if the "hard work" exceeds 5 sec
<vasilakisfil> how should I do that ?
Rollabunna has joined #ruby
<yorickpeterse> You use a loop and on every iteration check if the current time exceeds 5 seconds
<yorickpeterse> There's also the Timeout module but it has many issues
<yorickpeterse> namely it not being reliable
<professor_soap> vasilakisfil: one suggestion could be to save Time.now before the hard work starts and then Time.now when it stops and calculate the diff. No..?
<apeiros> there are ways to make it less problematic by now
<apeiros> but it's unexpectedly difficult to do something which seems so simple
chenillen has quit [Ping timeout: 244 seconds]
<apeiros> if you can, do what mperham suggests in the linked article
bronson has joined #ruby
Igorshp has joined #ruby
decaff has quit [Ping timeout: 252 seconds]
omegamike has joined #ruby
<apeiros> if you can't, use Timeout and make sure to check out Thread::handle_interrupt
surs has joined #ruby
<vasilakisfil> professor_soap I need to return just in 5 sec, not wait until "hard work" finishes because it might take more
surs has quit [Changing host]
surs has joined #ruby
<ljarvis> vasilakisfil: what is "the hard work" ?
<ljarvis> DB interaction? network stuff?
<apeiros> ah, right - vasilakisfil do you still have to finish the hard work in the background?
<apeiros> i.e. you return, but work is still being processed?
sharpmachine has joined #ruby
TvL2386 has joined #ruby
<apeiros> (that'd be less problematic to implement)
Rollabunna has quit [Ping timeout: 252 seconds]
rbowlby has joined #ruby
<vasilakisfil> hmm a worker could be a could idea in my case.. I am trying to implement the Prefer Header with the "wait" preference in a rack api app
eGGsha has joined #ruby
<yorickpeterse> what?
<yorickpeterse> Ah
bronson has quit [Ping timeout: 256 seconds]
M-_mis has joined #ruby
<M-_mis> ^^
<yorickpeterse> You'll probably have to use Timeout for that since you can't really control what happens in a request (thus you can't use something like select())
<yorickpeterse> along with dealing with all possible problems
<yorickpeterse> Since Timeout spawns a thread for every call to Timeout.timeout this might be a problem if you intend to handle a lot of concurrent requests
<apeiros> disagree
<vasilakisfil> or I could delegate everyting in a worker and if worker takes longer time return a 202
<apeiros> sounds like what I asked above
<apeiros> you respond, but work is still finished and asynchronously delivered
<apeiros> so what you can do for this is have a queue with a timeout
<yorickpeterse> apeiros: that's one option, but it doesn't really prevent the work from not running for more than 5 seconds
<yorickpeterse> granted I'd argue that this is something a client should handle
leafybasil has joined #ruby
sharpmachine has quit [Ping timeout: 244 seconds]
<yorickpeterse> e.g. the client itself should determine when something is taking too long
<apeiros> yorickpeterse: but as far as I understood, the work should be completed
<apeiros> even if it takes more than 5s
<vasilakisfil> in my case yes
<yorickpeterse> hm
<apeiros> it's just that the response must happen after 5s
<apeiros> and that's a lot easier than having to interrupt work
<yorickpeterse> Then you'll need to delegate the work to a thread (pool) and poll it from the outside
<apeiros> damn, wasn't there a pop method on Queue which allowed for a timeout? o0
omegamike has quit [Ping timeout: 244 seconds]
<yorickpeterse> No, it will raise an exception or not
<yorickpeterse> which is...stupid
<apeiros> ah well, polling pop(true), but that sucks.
<yorickpeterse> https://github.com/ruby-concurrency/concurrent-ruby might have something for it
<apeiros> oh, or abuse a pipe
<apeiros> IO.select takes a timeout
TheHodge has joined #ruby
<apeiros> and you could read the response directly from the pipe
leafybas_ has joined #ruby
<M-_mis> |∫|
<apeiros> i.e., r,w = IO.pipe; Thread.new do work_hard(w) end; readable = IO.select([r], nil, nil, 5); if readable …
svdb64 has joined #ruby
leafybasil has quit [Ping timeout: 244 seconds]
shpoont has joined #ruby
dfockler has joined #ruby
duncannz has joined #ruby
shpoont has quit [Max SendQ exceeded]
shpoont has joined #ruby
Alina-malina has quit [Ping timeout: 255 seconds]
postmodern has joined #ruby
araujo has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
Soda has joined #ruby
dfockler has quit [Ping timeout: 252 seconds]
ndrei has quit [Ping timeout: 252 seconds]
xcesariox has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: computer went to sleep...]
xcesariox has joined #ruby
araujo has joined #ruby
nofxx has quit [Ping timeout: 240 seconds]
texasmade has joined #ruby
Ropeney has joined #ruby
walteriz_ is now known as walterizfie
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
walterizfie has quit [Remote host closed the connection]
astrobunny has quit [Remote host closed the connection]
xkickflip has quit [Ping timeout: 272 seconds]
walterizfie has joined #ruby
professor_soap has quit []
sameerynho has quit [Ping timeout: 272 seconds]
lxsameer_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
sameerynho has joined #ruby
hololeap has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
matchaw has quit [Ping timeout: 252 seconds]
symm- has quit [Ping timeout: 240 seconds]
lxsameer_ has quit [Ping timeout: 244 seconds]
nofxx has joined #ruby
Karpah has joined #ruby
dgutierrez1287 has joined #ruby
riffraff has joined #ruby
troulouliou_div2 has joined #ruby
sevenseacat has quit [Ping timeout: 244 seconds]
oo_ has quit [Remote host closed the connection]
<M-_mis> (Serry, I know you're working and it's mis-topic, but figuring _why #cplusequality exists —vet yet det I∫ stil need hash a sewmantic rubyx ver, i! quess.. hhmmff, ici is howme imf sae hio. =∫∫ =)) Nowme dback 2oO reading and or er letting ui focus. xx (<3 )) ) (∫)
allcentury has quit [Ping timeout: 256 seconds]
<Karpah> !mute M-_mis
<Karpah> quiet, you.
Karpah is now known as sevenseacat
<adaedra> what was that
<apeiros> wtf was that? o0
lkba_ has joined #ruby
xkickflip has joined #ruby
<ljarvis> went from English to lolwat real quick
<apeiros> OO
dgutierrez1287 has quit [Ping timeout: 256 seconds]
<apeiros> ApplicationController.public_instance_methods.size # => 967
<apeiros> AAAAAAAAAAAAH!
* apeiros runs away crying
Zai00 has quit [Ping timeout: 244 seconds]
<apeiros> also, lunch time…
* adaedra gives apeiros a shotgun
<adaedra> go find who's responsible
<apeiros> fire. you have to kill it with fire.
<ljarvis> 1011 here
ruurd has joined #ruby
Zai00 has joined #ruby
* adaedra takes the shotgun back and gives apeiros a flamethrower
<apeiros> why the F are they all public? it makes *zero* sense those are all public
<apeiros> ignoring the sheer amount for now…
lkba has quit [Ping timeout: 265 seconds]
<apeiros> adaedra: much thanks
<adaedra> it's called "come back"
* apeiros back in ~30
oo_ has joined #ruby
astrobunny has joined #ruby
duncannz has quit [Ping timeout: 252 seconds]
GriffinHeart has joined #ruby
arup_r has joined #ruby
platosha has quit [Quit: This computer has gone to sleep]
platosha has joined #ruby
leesharma has joined #ruby
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has quit [Ping timeout: 244 seconds]
safeforge has quit [Remote host closed the connection]
shpoont has quit [Read error: Connection reset by peer]
GriffinHeart has quit [Remote host closed the connection]
wenshan has joined #ruby
leesharma has quit [Ping timeout: 246 seconds]
prosodyContext has left #ruby [#ruby]
prosodyContext has joined #ruby
<wenshan> hi, could someone give me a hand on writing specs? I'd like to test a ruby script which receives some input from either stdin or a file (with `ARGF.each`) and output the result to stdout. What's the conventional way of testing this kind of scripts? How would you stub stdin?
oo_ has quit [Remote host closed the connection]
Joost` has joined #ruby
oo_ has joined #ruby
<Joost`> I'm trying to build a project that uses ruby.. I've learned that I need rbenv to manage my ruby versions, but now I cannot seem to build it because version 2.0.0 is not in rbenv
lxsameer_ has joined #ruby
<Joost`> there is 2.0.0-p645 in there, as well as 2.0.0-p0, but neither work
yfeldblum has quit [Ping timeout: 246 seconds]
<j416> there are many ways; you don't _need_ any, they just make life easier
lessless has joined #ruby
<Joost`> the .ruby-version file indicates 2.0.0, and I get "rbenv: version `2.0.0' is not installed" when I'm on 2.0.0-p645
<j416> rvm, rbenv, chruby..
<Joost`> live's not really getting easier so far :P
sameerynho has quit [Ping timeout: 244 seconds]
<Joost`> life*
<j416> I don't know rbenv so can't help
<j416> rubu --version says?
<j416> ruby*
dseitz has joined #ruby
<j416> sorry phone kbd
astrobunny has quit [Remote host closed the connection]
safeforge has joined #ruby
<Joost`> ruby 2.0.0p645
sameerynho has joined #ruby
<Joost`> (except when I'm in the dir with the .ruby-version, then it errors out, of course)
<j416> should satisfy 2.0.0
marr has quit []
<j416> I suppose
prosodyContext has left #ruby [#ruby]
<Joost`> so.. switch to rvm while I'm still new?
aevitas has joined #ruby
<j416> rvm will likely give you
<j416> more headache
leat has quit [Remote host closed the connection]
<Joost`> :(
<adaedra> ha
<j416> I prefer chruby, rbenv might be good
leat has joined #ruby
<Joost`> "There should be one-- and preferably only one --obvious way to do it."
eGGsha has joined #ruby
shock_one has joined #ruby
<ruurd> meh
<ruurd> rvm is da bomb
dumdedum has joined #ruby
lxsameer_ has quit [Ping timeout: 246 seconds]
riffraff has quit [Quit: This computer has gone to sleep]
<adaedra> in sense it explodes everything and leaves just ruins?
spider-mario has joined #ruby
sdothum has joined #ruby
Rollabunna has joined #ruby
prosodyContext has joined #ruby
<ruurd> if necessary.... :-0
riffraff has joined #ruby
arturmartins has joined #ruby
<ruurd> I've got good experiences with it on OSX
<ruurd> And Linux BTW
Vile` has quit [Ping timeout: 264 seconds]
<ruurd> On a Windows platform I would not even begin to use Ruby really...
walteriz_ has joined #ruby
fabrice31_ has quit [Remote host closed the connection]
lxsameer_ has joined #ruby
Ropeney has joined #ruby
workmad3 has joined #ruby
christiandsg has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
Vile` has joined #ruby
sameerynho has quit [Ping timeout: 252 seconds]
walterizfie has quit [Ping timeout: 244 seconds]
shock_one has quit []
<Joost`> ruurd: on a windows platform.. the only sane move is to not be on a windows platform I guess
r_rios has joined #ruby
_whitelogger___ has joined #ruby
ss_much_ has joined #ruby
tobyx_ has joined #ruby
<rrios> Hello. I running into this error when I try to use FileUtils.mv from Windows (Ruby 2.1.0): https://gist.github.com/romariorios/5ca79df28c419cb54a88
{756d6f} has joined #ruby
calleerlandsson_ has joined #ruby
heftig_ has joined #ruby
<sevenseacat> sounds like a good way to get your question closed, unless you clearly explain why none of the accepted answers apply'
<rrios> Even though the directory is there
vinleod has joined #ruby
<sevenseacat> (and one of the answers probably does apply)
stamina has joined #ruby
<ruurd> Joost` what platform are you on?
<Joost`> OSX 10.10
<sevenseacat> and the problem is?
<kannan4k> this line, @@_accessors[name].push name: fname.to_sym, type: type
<adaedra> what about it
<ruurd> Use RVM - I use it. It works
<kannan4k> what this line does? push a hash into a array?
r__rios has joined #ruby
omegahm|BNC has joined #ruby
ejnahc_ has joined #ruby
<sevenseacat> unknown.
scpike_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
soahccc has quit [Ping timeout: 240 seconds]
WillAmes has quit [Ping timeout: 240 seconds]
Trieste has quit [Ping timeout: 240 seconds]
_whitelogger__ has quit [Ping timeout: 240 seconds]
neektza has quit [Ping timeout: 240 seconds]
calleerlandsson has quit [Ping timeout: 240 seconds]
mgorbach has quit [Ping timeout: 240 seconds]
rflot has quit [Ping timeout: 240 seconds]
tabakhase has quit [Ping timeout: 240 seconds]
x3cion has quit [Ping timeout: 240 seconds]
bauruine has quit [Ping timeout: 240 seconds]
ss_much has quit [Ping timeout: 240 seconds]
phrozen77 has quit [Ping timeout: 240 seconds]
pawz has quit [Ping timeout: 240 seconds]
lele` has quit [Ping timeout: 240 seconds]
dr_Poggs has quit [Ping timeout: 240 seconds]
ejnahc has quit [Ping timeout: 240 seconds]
SuperTux88 has quit [Ping timeout: 240 seconds]
nemesit|znc has quit [Ping timeout: 240 seconds]
elektronaut_ has quit [Ping timeout: 240 seconds]
heftig has quit [Ping timeout: 240 seconds]
kalleth has quit [Ping timeout: 240 seconds]
alem0lars has quit [Ping timeout: 240 seconds]
r_rios has quit [Ping timeout: 240 seconds]
michael_mbp has quit [Ping timeout: 240 seconds]
tagrudev has quit [Ping timeout: 240 seconds]
acke has quit [Ping timeout: 240 seconds]
usershell has quit [Ping timeout: 240 seconds]
heyimwill has quit [Ping timeout: 240 seconds]
krasnus has quit [Ping timeout: 240 seconds]
omegahm has quit [Ping timeout: 240 seconds]
eregon has quit [Ping timeout: 240 seconds]
noethics has quit [Ping timeout: 240 seconds]
silverdust has quit [Ping timeout: 240 seconds]
keen__________32 has quit [Ping timeout: 240 seconds]
tobyx has quit [Ping timeout: 240 seconds]
scpike has quit [Ping timeout: 240 seconds]
pocketprotector has quit [Ping timeout: 240 seconds]
<Joost`> sevenseacat: I'm trying to run a project that has 2.0.0 in its .ruby-version file, but rbenv does not seem to have that (2.0.0-p645 does not match), and returns rbenv: version `2.0.0' is not installed
<sevenseacat> need more context.
<Bish> https://github.com/webmachine/webmachine-ruby/blob/master/documentation/examples.md#post-to-create-a-new-resource-in-a-collection can you guys tell me, why it forces me to have the create_path, since it's not even used :/
sharpmachine has quit [Ping timeout: 260 seconds]
* adaedra gives ruurd "BEST ARGUMENT EVAR" award
neektza_ is now known as neektza
<ruurd> Install Xcode, install brew,
tabakhase__ has joined #ruby
omegahm|BNC is now known as omegahm
haxrbyte has joined #ruby
arturmartins has quit [Quit: Leaving...]
xkickflip has quit [Ping timeout: 244 seconds]
vdamewood has quit [Ping timeout: 240 seconds]
calleerlandsson_ is now known as calleerlandsson
<ruurd> Install RVM
<ruurd> Install the rubies you want
<sevenseacat> Joost`: either create a symlink from 2.0.0-pwhatever to 2.0.0, or just update the .ruby-version file
rflot_ is now known as rflot
<kannan4k> sevenseacat: i am trying to understand what it does
tagrudev has joined #ruby
mgorbach has joined #ruby
ss_much_ is now known as ss_much
r__rios is now known as r_rios
<sevenseacat> kannan4k: need more context.
xkickflip has joined #ruby
r_rios has quit [Changing host]
r_rios has joined #ruby
<adaedra> kannan4k: what part you don't understand?
<[k-> i think i used brew to get me a new ruby
<ruurd> Create a gemset for your project
noethics has joined #ruby
<sevenseacat> lol gemsets
<adaedra> lol rvm
<sevenseacat> welcome to 2010?
<Joost`> sevenseacat: I tried updating the .ruby-version file, but then I' run into "Your Ruby version is 2.0.0, but your Gemfile specified 2.0.0-p645"
keen__________32 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
<sevenseacat> Joost`: you cant have different versions specified in the Gemfile and the .ruby-version file
<adaedra> chruby > *
michael_mbp has joined #ruby
pocketprotector has joined #ruby
<Joost`> sevenseacat: but my ruby version is not 2.0.0
<j416> adaedra +1
<kannan4k> adaedra, sevenseacat: last 2 arguments and push: push name: fname.to_sym, type: type
<ruurd> Why would you use the patchlevel in the ruby spec in a Gemfile?
<Joost`> sevenseacat: ruby --version gives me ruby 2.0.0p645
<sevenseacat> thats 2.0.0
<Joost`> I know
<sevenseacat> gist what you've got, because it doesnt make sense
alem0lars has joined #ruby
<Joost`> ok
atmosx has quit [Ping timeout: 252 seconds]
<sevenseacat> "but my ruby version is not 2.0.0"
Ropeney has quit [Quit: Textual IRC Client: www.textualapp.com]
<adaedra> kannan4k: is it better if I write `push({name: fname.to_sym, type: type})`?
lele has joined #ruby
<Joost`> sevenseacat: basically I'm trying to build https://github.com/github/choosealicense.com to learn about how they're using jekyll
rrios has quit [Ping timeout: 252 seconds]
<Joost`> their Gemfile reads from .ruby-version
apfeluser has joined #ruby
<Joost`> so when I include 2.0.0p645 in the .ruby-version, it propagates to the gemfile
<adaedra> kannan4k: yeah and
kalleth_ is now known as kalleth
<Joost`> but when I do keep the .ruby-version on 2.0.0, rbenv complains that that's unequal to the 2.0.0p645 it has installed
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie_ has quit [Remote host closed the connection]
quimrstorres has joined #ruby
silverdust has joined #ruby
<ruurd> Why specify the patch level?
<kannan4k> adaedra: is that trying to add a hash of {name:type} to the array @@_accessor?
<ruurd> Hah. What's in Gemfile.lock?
<adaedra> of all the arguments, kannan4k
silverdust is now known as Guest10704
<postmodern> Joost`, rbenv requires the fully qualified version for some reason, idk
<Joost`> ruurd: I didn't choose the patch level, the patch level choose me
<sevenseacat> ok, so nothing anywhere specifies 2.0.0p645 or whatever
<ruurd> rvm does not.
x3cion has joined #ruby
<postmodern> Joost`, what you should do is symlink 2.0.0 -> 2.0.0-p645
<postmodern> ruurd, nor does chruby :)
<sevenseacat> i suggested that already
<Joost`> sevenseacat: indeed, except rbenv's lack of 2.0.0
<Joost`> I'll give that a shot then.. where does this symlink go?
<Joost`> it seems weird to have to patch rbenv like that for a major version
ndrei has joined #ruby
<adaedra> ruurd: what if I tell you the issue is not related to not using rvm
<postmodern> Joost`, me too, 2.0.0-pXXX shouldn't be any different from 2.0.0-pYYY
<sevenseacat> yeah well, rbenv can go jump.
<Joost`> so what do you recommend? rvm? chruby?
<sevenseacat> chruby
<Joost`> I get mixed messages :/
pawz has joined #ruby
<adaedra> chruby
<ruurd> rvm
apfeluser has quit [Client Quit]
<ruurd> rvm rvm rvm rvm
schaerli_ has joined #ruby
apfeluser has joined #ruby
<ruurd> Joost` the rest of the people here are biased
<sevenseacat> how?
psy_ has quit [Ping timeout: 244 seconds]
<adaedra> olol
<ruurd> sevenseacat hook line sinker
<adaedra> if this weren't an IRC channel, I'd ask to raise hands
<ruurd> <raises hands/
<postmodern> Joost`, you can do the symlink trick to just get rbenv working for now
<Joost`> the symlink worked, thanks :)
radgeRayden has joined #ruby
<Joost`> postmodern: yeah, my thoughts exactly
yfeldblum has joined #ruby
einarj has joined #ruby
<ruurd> O goody what an excellent solution - create a symlink. Now update your ruby BLAM project does not work anymore \0/ \0/
<adaedra> chruby > rbenv > * > hell > rvm
<ruurd> adaedra I can't help you being a klutz...
xkickflip has quit [Ping timeout: 255 seconds]
<sevenseacat> ruurd: I'm asking you nicely to stop trolling.
<Joost`> ruurd: I do not disagree with that, but it works now
CloCkWeRX has joined #ruby
<Joost`> and by the looks of it, I'm not getting too deep into ruby development, so that's fine for me
rubie has joined #ruby
juanpablo_ has joined #ruby
<ruurd> Joost` chruby or rvm is a matter of taste. I don't think they really differ that much. I chose rvm and it suits me fine. No extreme difficulties to speak of really.
<sevenseacat> they differ in very major and fundamental ways
<sevenseacat> I've used both.
<Joost`> what I don't get is why it's even necessary to finetune ruby versions to such precise releases
<ljarvis> yeah they differ a lot. I'm a huge fan of chruby
<Joost`> are they really that different?
<elaptics> depends on how you're looking at it
<ljarvis> Joost`: they're different enough to require releases
<[k-> i used rvm at first
<sevenseacat> it wouldnt be necessary, it's a bug in rbenv.
<sevenseacat> as was shown.
DaniG2k has quit [Quit: leaving]
<[k-> not sure what happened to rvm anymore....
<Joost`> sevenseacat: that's not what I'm getting at
<[k-> i use rbenv now!
<sevenseacat> rvm went a bit off with the fairies, especially with rvm 2
<adaedra> it's a bloat
tchemi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spider-mario has quit [Remote host closed the connection]
khebbie has joined #ruby
khebbie_ has joined #ruby
einarj has quit [Ping timeout: 272 seconds]
StAnger has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
juanpablo_ has quit [Ping timeout: 244 seconds]
<kannan4k> thanks adaedra
tubuliferous_ has joined #ruby
einarj has joined #ruby
phutchins has joined #ruby
<sevenseacat> reading up on the updates to rvm2 now... my mind is boggled
zeroDivisible has joined #ruby
<[k-> the ruby-community does not seem to like rvm
<adaedra> link?
<adaedra> [k-: hopefully, ruurd is here to show us the holy way.
<sevenseacat> there's like a dozen gems that make up rvm2
<StAnger> hello all, i have a question about factory_girl ( no am not using rails ). I know usually factory girl is to be used with one or other testing framework , however is it fesible/ideal to use it as a data source for classes ? like obj.find(@this_stuf) and value of @this_stuff setby factory_girl
<ruurd> It works for me and it keeps per project stuff squared away
<[k-> this is the ruby-community!
<sevenseacat> StAnger: no
<StAnger> sevenseacat: thanks , any alternative to this ? other than using DB/flatfiles
<adaedra> ruurd: you know that "works for me" means nothing?
postmodern has quit [Quit: Leaving]
<ruurd> rvm2?
<sevenseacat> StAnger: why so against using a database for data storage?
<StAnger> sevenseacat: not against it but, it is relatively simple and app with 4 class so DB might be overkill
<sevenseacat> dont see how
<sevenseacat> stick something like sequel in, done
tubuliferous_ has quit [Ping timeout: 244 seconds]
walteriz_ has quit [Remote host closed the connection]
<StAnger> sevenseacat: yea , might look at sqllite
walterizfie has joined #ruby
nsuke has joined #ruby
<StAnger> sevenseacat: thanks for the help/suggestion :)
<sevenseacat> np
oo_ has quit [Remote host closed the connection]
ynroot has joined #ruby
usershel_ has quit [Remote host closed the connection]
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
<ynroot> hi, having this error while installig rails https://gist.github.com/YannickNascimento/38eac31d3ed879beedba
keen__________32 has quit [Read error: Connection reset by peer]
keen__________32 has joined #ruby
fgo has quit [Quit: WeeChat 1.1.1]
<ljarvis> ynroot: you need to install the ruby development env
<sevenseacat> you missed some dependencies.
<ljarvis> ynroot: so you have the header files which nokogiri relies on
<ljarvis> ynroot: probably apt-get install ruby-dev
kokoleavia has quit [Ping timeout: 244 seconds]
<ljarvis> (if you're using apt)
<ynroot> im using opensuse
<ynroot> ruby -v
<ynroot> ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux-gnu]
<ynroot> gem -v
<ynroot> 2.2.2
<ljarvis> heh
<ljarvis> ynroot: look for ruby-devel
<ljarvis> ynroot: please keep it in here
kokoleavia has joined #ruby
sarkyniin has joined #ruby
safeforge has quit [Remote host closed the connection]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
heyimwill has joined #ruby
leesharma has joined #ruby
dorei has joined #ruby
stamina has quit [Quit: WeeChat 1.2]
catphish has joined #ruby
chills42 has joined #ruby
<catphish> was ruby changed at some point to allow you to set variables to constants in if statements?
<catphish> or is there some logic that decides if you are allowed to do it or not?
poguez_ has quit [Quit: Connection closed for inactivity]
<ljarvis> ?code catphish
<ruboto> catphish, We can't help you without your code, please post it to https://gist.github.com
<catphish> what code?
decaff has joined #ruby
chills42 has quit [Remote host closed the connection]
<ljarvis> ok, "no"
<catphish> i recall that in that past, ruby didn't allow this, but i just did it and it works
<ljarvis> you did what? something without using code?
<apeiros> "setting variables to constants" doesn't make a whole lot of sense.
<ljarvis> ^
leesharma has quit [Ping timeout: 244 seconds]
Rollabunna has joined #ruby
rodfersou has joined #ruby
<apeiros> what's that supposed to mean? got an example?
nettoweb has joined #ruby
arup_r has quit [Remote host closed the connection]
<catphish> setting a variable to a constant, for example: a = 1
<apeiros> ok, nothing in that expression is a constant
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> and assignments in if conditions have been possible since before 1.8
<ynroot> ljarvis: after install ruby-devel it seems to install without error untill now
nettoweb has quit [Client Quit]
<catphish> i think the answer is that it generates a warning, but doesn't fail
<sevenseacat> how is a = 1 setting a variable to a constant??
decaff has quit [Ping timeout: 244 seconds]
<ljarvis> i just thought there was no code
<tobiasvl> I think he means that 1 is a constant value
* apeiros assumes terminology mixup - literals vs. constants
<tobiasvl> yeah
Blaguvest has quit [Remote host closed the connection]
<ljarvis> catphish: there's a warning if you use a literal in void context, or if you use true/false literal in a condition
lessless has joined #ruby
<catphish> apeiros is correct, i am using "constant" to refer to literal values
astrobunny has joined #ruby
<apeiros> ljarvis: there's also a warning with -w
<sevenseacat> thats not misleading at all >_>
<apeiros> catphish: don't ;-) constants and literals are not the same.
<catphish> apeiros: will try :)
<apeiros> not all literals are immutable. not all constants are immutable. not all immutables are constants. not all immutables are literals.
Rollabunna has quit [Ping timeout: 246 seconds]
<apeiros> >> $DEBUG = true; if x = 1 then y = 2*x end
<ruboto> apeiros # => /tmp/execpad-b363b60d001f/source-b363b60d001f:2: warning: found = in conditional, should be == ...check link for more (https://eval.in/406671)
<apeiros> ljarvis: ^
<catphish> "not all literals are immutable" that part scares me
<ljarvis> ya
<apeiros> catphish: "hello".upcase!
<apeiros> also [], {}
nettoweb has joined #ruby
<apeiros> and all variants for array/string literals.
chills42 has joined #ruby
sarkyniin has quit [Ping timeout: 246 seconds]
cornerma1 has joined #ruby
doertedev has joined #ruby
<catphish> apeiros: what is "hello" in this scenario? surely "hello".upcase! is just creating an instance *from* the literal, then upcasing it?
<apeiros> "hello" is a literal
<catphish> yes, but that code isn't modifying the literal is it?
<apeiros> and .upcase! does not create a new instance, no.
SuperTux88 has joined #ruby
iamninja has joined #ruby
<catphish> it's just creating an instance of string from the literal, then upcasing it
<apeiros> yes
<catphish> i'm not saying upcase created an instance, i'm saying "hello" does
astrobunny has quit [Ping timeout: 265 seconds]
<catphish> so this does not demonstrate that the literal is mutable (imo)
<apeiros> …
<apeiros> ok
<tobiasvl> "hello" created the instance, like you say. upcase! modifies it.
tkuchiki has quit [Remote host closed the connection]
<tobiasvl> so that DOES demonstrate that the literal is mutable (imo)
eGGsha has joined #ruby
<catphish> i'm not sure what the "literal" is in this scenatio
<tobiasvl> if upcase! created an instance it would demonstrate the opposite
<tobiasvl> like upcase (without the!)
<sevenseacat> because we're using odd terminology
<catphish> i agree
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
<tobiasvl> not as odd as calling a literal a constant ;)
<sevenseacat> "hello" is a string. it is a literal. it is mutable.
allcentury has joined #ruby
sigurding has joined #ruby
christiandsg has joined #ruby
heftig_ is now known as heftig
<sevenseacat> >> "hello".tap { |s| s.upcase! }
<ruboto> sevenseacat # => "HELLO" (https://eval.in/406683)
<catphish> anyway, i think the answer to my question is that using = to assign a literal in an if statement just generates a warning
<sevenseacat> voila. "hello" turned into "HELLO"
arup_r has joined #ruby
<catphish> >> "hello".upcase!; "hello"
<ruboto> catphish # => "hello" (https://eval.in/406684)
c355E3B has joined #ruby
<catphish> ;)
<sevenseacat> they're two different strings.
<sevenseacat> both contain the text 'hello'.
Guest32 has joined #ruby
<sevenseacat> though the first turned into "HELLO"
<catphish> so what is the "literal" that you claim to have modified?
<sevenseacat> the only string containing "hello" that I used
<tobiasvl> catphish: the same one you modified, before returning a different literal
<workmad3> catphish: `"hello"` is a string literal... when the ruby interpreter sees that, it creates a string object with the characters h, e, l, l, o in it in that order
<[k-> >> x = ?h; y = x.upcase!; x
<ruboto> [k- # => "H" (https://eval.in/406685)
qiukun has quit [Quit: qiukun]
<catphish> workmad3: that's the definition i believe in too
<workmad3> catphish: the ruby interpreter creates a different string object every time it sees a string literal
<apeiros> catphish: re warning: as said, only with -w
zeeraw has joined #ruby
<catphish> apeiros: ah that explains why i don't see it normally
<sevenseacat> sometimes you do actually want to assign in conditionals.
<catphish> thanks
<catphish> sevenseacat: i do what to do that :)
craysiii has quit [Quit: craysiii]
lessless has quit [Ping timeout: 240 seconds]
<sevenseacat> well, I'm glad it took us this long to decipher what you wanted to do.
christiandsg has quit [Ping timeout: 265 seconds]
sarkyniin has joined #ruby
<catphish> sevenseacat: i don't understand, my question was answered immediately
nemesit|znc has joined #ruby
<catphish> the rest of the discussion was academic
<apeiros> sevenseacat: I think catphish makes an odd distinction between the written code and the literal.
soahccc has joined #ruby
phrozen77 has joined #ruby
drPoggs has joined #ruby
<apeiros> it probably would have to change the source-code's "hello" to "HELLO" for them to consider the literal mutable.
elektronaut has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
<vasilakisfil> how can I manage to merge this in rack? https://github.com/kollegorna/rack-prefer or is it pointless? I can add some tests ofcourse
Trieste has joined #ruby
<catphish> apeiros: as far as i understand, there is "written code" which is clearly immutible, and there is an instance of string, but nothing in between
<ljarvis> vasilakisfil: seems like a better use-case for middleware
einarj has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sharpmachine has joined #ruby
<sevenseacat> aaargh the discussion continues
* sevenseacat steps away from the computer
<apeiros> sevenseacat: guess why I said "… ok"
<ljarvis> :)
<tobiasvl> catphish: well, there's symbols. symbol literals are basically string literals, but they are immutable and different instances of the same symbol point to the same string representation
<tobiasvl> not sure if that's what you want for something "in between" but
<vasilakisfil> ljarvis I don't think so.. why middleware? you have everything in the request object
<apeiros> catphish: I don't intend to discuss it. you have a different understanding of what a literal is than what the consensus has. that's your choice. but don't be surprised if others have trouble understanding you if you use non-standard definitions of terminology.
ndrei has joined #ruby
<ljarvis> vasilakisfil: sorry I don't see how that's relevant, this entire thing is perfect for middleware
<catphish> apeiros: what do others think that a string literal is? the instance of string that the compiler produces?
<catphish> apeiros: if so, i'm entirely happy to accept that
haxrbyte has quit [Quit: Leaving...]
<apeiros> catphish: you can't assign a piece of written code to a variable, can you?
bauruine has joined #ruby
<vasilakisfil> a rack middleware would make sense if you want to record some information before calling your app and/or after
<vasilakisfil> I have everything I need in rack::request object, I just add some helpers methods
<apeiros> oh, now I'm discussing it. mistaaake :D
<apeiros> nvm
<catphish> apeiros: i'd say you can assign 1 directly to a variable
<vasilakisfil> I can't see why we need yet another middleware for that
<catphish> apeiros: but perhaps this is a pointless distinction
<apeiros> catphish: sorry. nvm. I really don't feel like discussing.
<catphish> sure :)
sigurding_ has joined #ruby
sharpmachine has quit [Ping timeout: 265 seconds]
sigurding has quit [Ping timeout: 250 seconds]
sigurding_ is now known as sigurding
qiukun has joined #ruby
<workmad3> catphish: I don't intend to go further in the discussion than this, but it may help to think of a literal as "A thing in the source code that evaluates to itself", e.g. a string literal "hello" will evaluate to a string "hello" when you type it into IRB or a script... same with numbers, hashes, arrays, etc.
<ljarvis> vasilakisfil: is your readme correct? you use request.wait shouldn't that be request.prefer.wait ?
rrios has joined #ruby
<ynroot> after install rails when im going to create a new project it says
<ljarvis> vasilakisfil: also, you're creating a new preferpresenter instance for every call to prefer, you should cache it
<ynroot> If 'rails' is not a typo you can use command-not-found to lookup the package that contains it, like this:
<ynroot> cnf rails
anisha has quit [Ping timeout: 240 seconds]
<catphish> workmad3: thanks, i agree with this definition entirely
<vasilakisfil> yeah you are right thanks!
kraljev11 has quit [Ping timeout: 272 seconds]
_whitelogger___ has joined #ruby
tobyx_ has quit [Ping timeout: 252 seconds]
RegulationD has quit [Ping timeout: 255 seconds]
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
dgutierrez1287 has joined #ruby
sarkyniin has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
schaerli_ has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 244 seconds]
minmax has quit [Quit: WeeChat 0.4.3]
khebbie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 244 seconds]
ldnunes has joined #ruby
symm- has joined #ruby
tmtwd has quit [Ping timeout: 246 seconds]
texasmade has quit [Ping timeout: 256 seconds]
sigurding_ has joined #ruby
dimasg has joined #ruby
sigurding has quit [Ping timeout: 255 seconds]
sigurding_ is now known as sigurding
bruno- has quit [Ping timeout: 246 seconds]
StAnger has quit [Ping timeout: 244 seconds]
sarkyniin has joined #ruby
yardenbar has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
antgel has quit [Ping timeout: 255 seconds]
anisha has joined #ruby
dtcristo has joined #ruby
sigurding has quit [Client Quit]
antgel has joined #ruby
<catphish> apeiros: i just realised, that warning doesn't occur if you *do* use a constant instead of a literal, so it turns out my poor terminology did ruin my question ;(
<catphish> interesting that it makes that distinction
omegamike has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> it drops the warning if you have an expression instead of a literal RHS
schaerli has joined #ruby
<apeiros> oh, actually… the warning with the literal also happens without -w
aevitas_ has joined #ruby
<apeiros> seems I'm messing up ruby's flags anyway… no wonder, barely used them the last few years :-|
<apeiros> -d sets $DEBUG
ynroot has quit [Ping timeout: 265 seconds]
<apeiros> -w/-v set $VERBOSE
benlovell has quit [Ping timeout: 265 seconds]
aevitas has quit [Ping timeout: 244 seconds]
<yorickpeterse> eh?
Soda has quit [Remote host closed the connection]
iceyec has joined #ruby
<ljarvis> eh!
{756d6f} has quit [Ping timeout: 246 seconds]
strixd has joined #ruby
ihatenigggers has joined #ruby
<flughafen> sup shevy
<flughafen> sevenseacat:
strixd has quit [Excess Flood]
<flughafen> just another eso on the barbie
qiukun has quit [Quit: qiukun]
strixd has joined #ruby
yardenbar has joined #ruby
freeze has quit [Ping timeout: 264 seconds]
que__ has quit [Quit: Page closed]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
freeze has joined #ruby
bruno- has joined #ruby
sarkyniin has quit [Ping timeout: 260 seconds]
leesharma has joined #ruby
white_bear has quit [Ping timeout: 244 seconds]
schaerli has quit [Remote host closed the connection]
<kannan4k> folks, when does this code will execute? https://gist.github.com/kannan4k/62c0e455f83ba6016eaf#file-api-rb-L4-L9
<kannan4k> after the initialize or before?
Rollabunna has quit [Ping timeout: 244 seconds]
bruno- has quit [Ping timeout: 246 seconds]
<yorickpeterse> when the class is loaded
[k-_ has joined #ruby
StAnger has joined #ruby
leesharma has quit [Ping timeout: 250 seconds]
bruno- has joined #ruby
<tobiasvl> it's executed when the class is loaded (as the file is loaded and the code is read). it also only executes once per class, it has nothing to do with instances of the class
eGGsha has joined #ruby
lordkryss has quit [Quit: Connection closed for inactivity]
dtcristo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kannan4k> thanks, tobiasvl. so TSheets::Repository.classes this is a method returns a iterable?
dtcristo has joined #ruby
Bloodshot has joined #ruby
<yorickpeterse> send("hotel_#{item.class.name.underscore.sub(/_decorator$/,'')
<yorickpeterse> ohgodwhy ._.
but3k4 has joined #ruby
dtcristo has quit [Client Quit]
<ihatenigggers> god why what?
<tobiasvl> kannan4k: yeah, it returns an Enumerable
nobitanobi has joined #ruby
<yorickpeterse> ihatenigggers: you might want to change your nick
dimasg has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 244 seconds]
CloCkWeRX has joined #ruby
<ihatenigggers> what is wrong with my nick? it doesn't even make sense
dimasg has joined #ruby
<sevenseacat> !kick ihatenigggers
ihatenigggers was kicked from #ruby by ruboto [ihatenigggers]
ihatenigggers has joined #ruby
<sevenseacat> ihatenigggers: change it.
<yorickpeterse> Gee, I wonder what's wrong with using "nigger"
<sevenseacat> you have one minute.
<ihatenigggers> DON'T EVER USE THAT WORD yorickpeterse
<yorickpeterse> http://ruby-community.com/pages/user_rules rule 10 "Using a sexually or racially charged nickname"
<ihatenigggers> "niggger" on the other hand doesn't exist and it's okay to use
* sevenseacat shrugs
<yorickpeterse> ihatenigggers: I'd listen to sevenseacat
<apeiros> !ban ihatenigggers bye
<sevenseacat> good enough.
<yorickpeterse> apeiros: no ops for you
<apeiros> gawd
<ljarvis> !ban ihatenigggers bye
<yorickpeterse> hahah
<ljarvis> !ban ihatenigggers !T 1d bye
<apeiros> nah, syntax
ihatenigggers was banned on #ruby by ChanServ [ihatenigggers!*@*]
ihatenigggers was kicked from #ruby by ChanServ [Banned: bye]
<yorickpeterse> <ruboto> fuck the police
<ljarvis> apeiros: pls fix
<apeiros> yeah. I'll add a default of 1d
<apeiros> silly me, why do I use AKICK syntax…
<apeiros> s/use/copy/
<yorickpeterse> {:class => "sentiment #{value}"}.merge_with_string_preservation(html_options)
<yorickpeterse> I hate legacy Rails projects
dimasg has quit [Read error: Connection reset by peer]
<yorickpeterse> this is code from 2010 ._.
<ddv> lol what just happened
nobitanobi has quit [Remote host closed the connection]
<[k-_> !ban <nick> <message>
zeeraw has joined #ruby
<[k-_> !tban <nick> <time> <message>
<[k-_> there
wenshan has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
rouj has joined #ruby
rouj has left #ruby [#ruby]
<apeiros> [k-_: na, just !ban [channel] nick [duration] [message [| secret message]]
zeeraw has quit [Client Quit]
<yorickpeterse> Also this project has its own asset manager thing
<yorickpeterse> and like semi randomly it decides to recompile files differently
auzty has quit [Quit: Leaving]
<adaedra> | secret message
<adaedra> not so secret
<yorickpeterse> The functionality remains the same, it just throws newlines and what not around
<apeiros> adaedra: only if you use the command in the channel ;-)
<[k-_> !ban <nick> [message]
<[k-_> !tban <nick> <time> [message]
<[k-_> there!
GBrawl has joined #ruby
<adaedra> apeiros: sneaky
<adaedra> ban <nick> [massage]
white_bear has joined #ruby
<apeiros> [k-_: I will not make two commands for ban. what I will make is separate commands with defaults. like !spam, !rude, !flood
tjbiddle has quit [Quit: tjbiddle]
<apeiros> and given the frequency, probably also !racist
<jhass> soon™
<apeiros> this week.
<adaedra> that's racist
<apeiros> no, that's a promise :-p
<yorickpeterse> There are so many gifs I could link to now
<yorickpeterse> and probably get banned as a result
St1gma has quit [Quit: Leaving]
<apeiros> yorickpeterse: oh please do (in #ot)
<yorickpeterse> yay
<[k-_> "separate commands with defaults"
<[k-_> isnt that the same >.>
<apeiros> no. they all follow the same syntax.
<apeiros> it doesn't introduce different syntax like your solution.
_blizzy_ has joined #ruby
vinleod is now known as vdamewood
<[k-_> but my solution is less work!
swills has quit [Quit: Leaving]
<apeiros> I don't think so.
sgambino has joined #ruby
bruno- has joined #ruby
<[k-_> time will tell, time will tell :>
nateberkopec has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sharpmachine has joined #ruby
juanpablo_ has joined #ruby
Pumpkin- has quit [Quit: Bye]
banister has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
Zai00 has joined #ruby
dimasg has joined #ruby
AugustoCesar has joined #ruby
Tamae has joined #ruby
yaw has joined #ruby
acke_ has quit [Remote host closed the connection]
sharpmachine has quit [Ping timeout: 246 seconds]
banister has quit [Client Quit]
banister has joined #ruby
<ruurd> sevenseacat whats that remark about rvm2? AFAIK I'm using the latest and that's somewhere 1.26-ish...
AugustoCesar has left #ruby [#ruby]
juanpablo_ has quit [Ping timeout: 272 seconds]
<adaedra> they're planning a second one
<adaedra> total rewrite
<sevenseacat> its been in development for years
<sevenseacat> written in ruby
<adaedra> with laser cannons and cat pictures
<neanias> And python
{756d6f} has joined #ruby
freerobby has quit [Quit: Leaving.]
tubuliferous_ has joined #ruby
fabrice31 has quit [Read error: No route to host]
apfeluser has quit [Quit: Leaving]
sheperson has joined #ruby
fabrice31 has joined #ruby
yalue has joined #ruby
sheperson has left #ruby [#ruby]
oo_ has joined #ruby
kully3xf has joined #ruby
farn has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zeeraw has joined #ruby
banister has joined #ruby
farn has joined #ruby
sigurding has joined #ruby
tubuliferous_ has quit [Ping timeout: 244 seconds]
<sevenseacat> i like cat pictures.
schaerli has joined #ruby
fabrice31 has quit [Ping timeout: 240 seconds]
aryaching has joined #ruby
fabrice31 has joined #ruby
<ruurd> nowhere near something that makes you say rvm is hell. rvm2 might be but that's a different story.
rrios has quit [Quit: Leaving]
<sevenseacat> I don't think we're going to get into this again.
lannonbr has joined #ruby
<sevenseacat> if you want to use RVM, power to you.
<ruurd> From what I see is that chruby and rvm1 almost have an equivalent strategy in how it performs its duties
<sevenseacat> but very few here will recommend it.
<sevenseacat> ruurd: so why is rvm1 20,000 lines of code then?
<ruurd> that doesn't mean that you all are 'right' is it...
<ruurd> maybe you should ask mpapis....
<ddv> is it really 20k loc?
rideh has joined #ruby
<ddv> :-)
<sevenseacat> https://www.bountysource.com/fundraisers/489-rvm-2-0 "Convert 20,000 lines of shell script into Ruby."
polysics has joined #ruby
khebbie has joined #ruby
khebbie_ has joined #ruby
<ddv> insane in the membrane
<jhass> "Bourne Again Shell 160 3098 839 23770" (files, blank, comment, code)
<jhass> plus 603 Bourne Shell
benlovell has joined #ruby
<jhass> so it's actually closer to 25k
<ruurd> 750 wc -l in bin
<ruurd> 7796 in scripts
yaw has left #ruby ["Textual IRC Client: www.textualapp.com"]
sigurding_ has joined #ruby
Silox| has joined #ruby
<jhass> and chruby is 755 in total
shiru has joined #ruby
<ruurd> sevenseacat although I don't see why they should switch to ruby all the way other than way to many shell idiosyncracies
davedev24 has joined #ruby
<sevenseacat> don't look at me. chruby+ruby-install have always worked for me just fine.
lkba_ has quit [Ping timeout: 244 seconds]
<sevenseacat> on multiple shells and multiple OSes
sigurding has quit [Ping timeout: 272 seconds]
sigurding_ is now known as sigurding
<apeiros> 2 is multiple too, right? same for me with rvm ;-D
<ruurd> ah you need to employ a different application for installing ruby then.
<jhass> ruby-install is 1400, so 2.1k vs 23k
<sevenseacat> ruurd: you're the one who said chruby and rvm do the same thing, and you werent aware of that?
<jhass> where will a bug easier to find for you? ;)
lkba has joined #ruby
shiru has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ruurd> not yet but that does at least account for the difference in size.
* sevenseacat raises eyebrow
<ruurd> why?
tjbiddle has joined #ruby
tjbiddle has quit [Client Quit]
Igorshp has quit [Remote host closed the connection]
Muhannad has quit [Ping timeout: 244 seconds]
<wmoxam> ruurd: ruby version manager wars are very similar to editor wars, distro wars, etc
<wmoxam> :p
shock_one has joined #ruby
<sevenseacat> you're comparing 1400 LOC with 20000?
<sevenseacat> and 'that accounts for the difference in size'?
<sevenseacat> that doesnt make sense.
<jhass> shock_one: benchmark/ips it, I'd be curios how high the overhead is
<apeiros> shock_one: don't like, sorry.
fgo has joined #ruby
<apeiros> shock_one: strings are not the only objects to pass into []
saransh__ has joined #ruby
<ruurd> well... how much of that is taking care of a bunch of nitty gritty details for a number of OS/Ruby combinations?
<sevenseacat> a lot more than in ruby-install, thats for sure.
unshadow has joined #ruby
<saransh__> how to run liquid template on local system?
tuxtgz has joined #ruby
<unshadow> I'm looking at Webrick's code, and found something I dont understand, what does this do ? return io.__send__(method, *arg)
sigurding_ has joined #ruby
<unshadow> what's that __send__ ?
<jhass> unshadow: you know what .send is?
<unshadow> jhass: yeha
decaff has joined #ruby
tuxtgz has quit [Client Quit]
<jhass> __send__ is a backup of that
fabrice31 has quit [Remote host closed the connection]
<ruurd> 2654 lines for handling ruby installs for 11 different types of ruby to begin with...
<jhass> &ri BasicObject#__send__
crazydiamond has quit [Remote host closed the connection]
<shock_one> apeiros: yeah, I totally agree. But it's beta than nothing, right? It's like we have &method, which works only when there is one argument.
fabrice31 has joined #ruby
<ruurd> 5550 lines for handling differences in operating system and/or distributions
<sevenseacat> thats a lot of code.
dopie has quit [Ping timeout: 256 seconds]
sigurding has quit [Ping timeout: 250 seconds]
sigurding_ is now known as sigurding
<jhass> ruurd: the argument boils down to, if you don't need that complexity, why deal with it
Rollabunna has joined #ruby
schaerli has quit [Remote host closed the connection]
<jhass> if you need it, it's great that there's a tool that provides it
<saransh__> how can i run liquid template on my local system?
<ruurd> but you still need it because you need ruby_install alongside chruby.
<jhass> saransh__: get liquid, read its docs, do it
<ruurd> So basically how many LOC are they together?
<sevenseacat> ruurd: 1400.
<sevenseacat> ish.
<jhass> ruurd: scroll up, I pasted it
<ruurd> and how many ruby/os/distro combinations?
bodgix has joined #ruby
<sevenseacat> about as many as rvm.
<jhass> btw in my setup I don't need ruby-install, I just install my rubies via the regular package manager
<ruurd> as root that is...
yqt has joined #ruby
marcelo_ has joined #ruby
decaff has quit [Ping timeout: 244 seconds]
marcelo_ has quit [Client Quit]
<saransh__> <jhass>: I have seen the docs
havenwood has joined #ruby
<saransh__> but if you can give me a brief idea
<saransh__> that would be great
<jhass> saransh__: then show what you've tried so far and what errors you get. Use gist.github.com if that takes more than three lines
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Rollabunna has quit [Ping timeout: 246 seconds]
s00pcan has joined #ruby
Axy has joined #ruby
<saransh__> i have installed liquid, the template i want to run
<saransh__> i don't know how to run it?
kokoleavia has quit [Ping timeout: 265 seconds]
<jhass> I have a hard time believing you actually looked at the docs
<saransh__> that sounds stupid, but i don't have much experience in ruby
schaerli has joined #ruby
iamninja has quit [Quit: WeeChat 1.2]
r_baron has joined #ruby
sankaber has joined #ruby
n008f4g_ has joined #ruby
Mia has quit [Ping timeout: 265 seconds]
eGGsha has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
Guest75590 has joined #ruby
bmurt has joined #ruby
aevitas_ has quit [Ping timeout: 256 seconds]
dgutierrez1287 has quit [Remote host closed the connection]
lxsameer_ has quit [Quit: Leaving]
lxsameer has joined #ruby
christiandsg has joined #ruby
schaerli has quit [Remote host closed the connection]
OlecraM_ has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
g3funk is now known as braidn
iamninja has quit [Client Quit]
sigurding_ has joined #ruby
iamninja has joined #ruby
prefixed has joined #ruby
walteriz_ has joined #ruby
sigurding has quit [Ping timeout: 244 seconds]
sigurding_ is now known as sigurding
decoponio has joined #ruby
zeeraw has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie_ has quit [Remote host closed the connection]
eGGsha has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
dimasg has quit [Ping timeout: 240 seconds]
victortyau has joined #ruby
banister has joined #ruby
walterizfie has quit [Ping timeout: 244 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
zeroDivisible has quit [Quit: WeeChat 1.2]
zeroDivisible has joined #ruby
Tomasso has joined #ruby
<saransh__> <jhass>: I have a file theme.liquid
<saransh__> How can i run it?
<saransh__> without passing images and all
<Tomasso> i have a ruby object that have some blocks within Procs.. for example. Is there some way to make .to_json render those blocks as simple strings and not avoid them ?
<wmoxam> saransh__: you need to write a ruby program
<wmoxam> saransh__: otherwise how would you pass template variable, etc?
sigurding_ has joined #ruby
mistermocha has joined #ruby
CloCkWeRX has quit [Ping timeout: 240 seconds]
<jhass> Tomasso: implement an as_json method that returns a hash with the wanted representation
swills has joined #ruby
ndrei has joined #ruby
<saransh__> firstly can you tell me how to run a file having .liquid extension
sigurding has quit [Ping timeout: 244 seconds]
sigurding_ is now known as sigurding
<wmoxam> saransh__: I did :D
allcentury has quit [Ping timeout: 264 seconds]
<jhass> saransh__: the way in my link is the only way
<saransh__> <wmoxam>: in normal case, how?
<wmoxam> saransh__: you need to write a ruby program
schaerli has joined #ruby
iamninja has quit [Quit: WeeChat 1.2]
<wmoxam> saransh__: similar to the example on the liquid homepage
<jhass> saransh__: repeating your question won't get you a different answer to it
saransh__ has quit [Quit: Page closed]
<jhass> and bye
mistermocha has quit [Ping timeout: 246 seconds]
<wmoxam> jhass: I think saransh was expecting a liquid2html program being available
OlecraM_ has quit [Quit: Saindo]
<jhass> I think saransh was immune to doing some actual learning
Violentr has joined #ruby
sigurding_ has joined #ruby
iamninja has joined #ruby
<[k-_> i think all /web/ users are like that
sigurding has quit [Ping timeout: 246 seconds]
sigurding_ is now known as sigurding
<jhass> I think all people that do such generalizations are stupid
<[k-_> :(
bronson has joined #ruby
<workmad3> jhass: burn :D
<wmoxam> jhass: it sounded like they are a frontend dev, backend stuff is pretty intimidating for many :p
<workmad3> jhass: also, a bit of a self-burn there too ;)
<jhass> workmad3: intentionally ;)
<jhass> wmoxam: I'm sure there's a JS implementation for liquid by now :P
<workmad3> jhass: yeah, I figured you'd spot it... I wasn't so sure about [k-_ so I figured I'd point it out to make him feel better :)
_blizzy_ has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
<workmad3> s/you'd spot it/you meant it/
dopie has joined #ruby
<wmoxam> jhass: ha, of course https://github.com/sirlantis/liquid-node
sharpmachine has joined #ruby
iamninja has quit [Client Quit]
axl__ has joined #ruby
<[k-_> yes [k-_ is stupid
benlovell has quit [Ping timeout: 246 seconds]
bronson has quit [Ping timeout: 240 seconds]
<workmad3> [k-_: I'm not gonna feel much sympathy... I'm one of those /web/ people you tarred with your over-generalisation :P
<wmoxam> workmad3: I think he meant connected via mibbit
<workmad3> wmoxam: ah... that may make more sense :)
aevitas has joined #ruby
allcentury has joined #ruby
aevitas has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
sharpmachine has quit [Ping timeout: 265 seconds]
<[k-_> webchat, not really
<[k-_> but mibbit, oh mibbit
JimmyNeutron has quit [Ping timeout: 252 seconds]
arup_r has quit [Remote host closed the connection]
Helheim has quit [Ping timeout: 246 seconds]
platzhirsch has joined #ruby
willywos has joined #ruby
platzhirsch has left #ruby [#ruby]
Pyrotecnix has quit [Quit: WeeChat 0.4.2]
CloCkWeRX has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
RegulationD has joined #ruby
hinbody has joined #ruby
Helheim has joined #ruby
walteriz_ has quit [Remote host closed the connection]
walterizfie has joined #ruby
arup_r has joined #ruby
Igorshp has joined #ruby
unshadow has quit [Quit: leaving]
arup_r has quit [Remote host closed the connection]
sigurding_ has joined #ruby
sigurding has quit [Ping timeout: 246 seconds]
sigurding_ is now known as sigurding
mikecmpbll has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
chills42 has quit [Remote host closed the connection]
Guest10704 is now known as bl4ckdu5t
RegulationD has quit [Ping timeout: 240 seconds]
bl4ckdu5t has quit [Changing host]
bl4ckdu5t has joined #ruby
bl4ckdu5t is now known as silverdust
paulcsmith has joined #ruby
Papierkorb has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
chills42 has joined #ruby
antgel has quit [Ping timeout: 244 seconds]
TvL2386 has quit [Remote host closed the connection]
walterizfie has quit [Ping timeout: 240 seconds]
OlecraM has joined #ruby
decoponio has joined #ruby
juanpablo_ has joined #ruby
nettoweb has joined #ruby
sarkyniin has joined #ruby
OlecraM has quit [Quit: Saindo]
<Guest75590> when I use the equality matcher in RSpec and the expected and actual differ, I get a nicely formatted message showing me the differances. https://gist.github.com/anonymous/a8831a85f49cdd479484 Where does this formatting come from? There is nothing here that does it, that I can see https://github.com/rspec/rspec-expectations/blob/master/lib/rspec/matchers/built_in/eq.rb
ynroot has joined #ruby
PhantomSpank has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 272 seconds]
ArchRogem has joined #ruby
werelivinginthef has joined #ruby
oo_ has quit [Remote host closed the connection]
tkuchiki has joined #ruby
scripore has joined #ruby
rubie has joined #ruby
dblessing has joined #ruby
jdeen has joined #ruby
Feyn has quit [Ping timeout: 244 seconds]
platzhirsch has joined #ruby
malconis has joined #ruby
sarkyniin has quit [Read error: Connection reset by peer]
christiandsg has joined #ruby
whippythellama has joined #ruby
juanpablo_ has quit [Ping timeout: 240 seconds]
devdazed has joined #ruby
SOLDIERz has joined #ruby
safeforge has joined #ruby
rubie has quit [Ping timeout: 265 seconds]
d10n-work has joined #ruby
Rollabunna has joined #ruby
devdazed has quit [Quit: Bye]
sigurding_ has joined #ruby
radgeRayden has joined #ruby
JoshL has joined #ruby
sigurding has quit [Ping timeout: 244 seconds]
sigurding_ is now known as sigurding
CloCkWeRX has quit [Ping timeout: 246 seconds]
icharlie has joined #ruby
ynroot has joined #ruby
umgrosscol has joined #ruby
catphish has left #ruby ["Leaving"]
christiandsg has quit [Remote host closed the connection]
atomical has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
last_staff has quit [Quit: last_staff]
railsraider has joined #ruby
walterizfie has joined #ruby
bruno- has joined #ruby
danzilio has joined #ruby
yardenbar has quit [Quit: Leaving]
bruno- has quit [Ping timeout: 240 seconds]
iateadonut has joined #ruby
joneshf-laptop has quit [Ping timeout: 246 seconds]
schaerli has quit [Remote host closed the connection]
silkfox has joined #ruby
gambl0re has quit [Ping timeout: 244 seconds]
joneshf-laptop has joined #ruby
schaerli has joined #ruby
leesharma has joined #ruby
fabrice31_ has joined #ruby
codecop has quit [Remote host closed the connection]
bruno- has joined #ruby
weemsledeux has joined #ruby
ynroot has quit [Quit: Konversation terminated!]
sigurding_ has joined #ruby
sigurding has quit [Ping timeout: 256 seconds]
sigurding_ is now known as sigurding
The_Phoenix has joined #ruby
eGGsha has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has quit [Ping timeout: 265 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Scriptonaut has joined #ruby
leesharma has quit [Ping timeout: 260 seconds]
banister has joined #ruby
Alayde has joined #ruby
<Scriptonaut> hey guys, have any of you worked with the imgur api? I registered my application, but none of the gems I see show you how to query random images
<Scriptonaut> I want to be able to use a search term, and select various images based on that
<Scriptonaut> like: search 'cats'
<Scriptonaut> and then choose from a collection of results, anyone do anything like this before?
<ashleyhindle> I've not, but my twitter feed suggests otters are the new cats - not sure what's going on there
CloCkWeRX has joined #ruby
bartj3_ is now known as bartj3
<Scriptonaut> haha
prefixed has quit [Changing host]
prefixed has joined #ruby
<Scriptonaut> I might have to roll my own
bruno- has quit [Ping timeout: 272 seconds]
<ashleyhindle> I suspect so
<ashleyhindle> I'm thinking I could launch ottur.com or otterur.com as an imgur for otters
bruno- has joined #ruby
<Scriptonaut> sounds like a plan you should
juanpablo_ has joined #ruby
charliesome has joined #ruby
riffraff has quit [Quit: This computer has gone to sleep]
ndrei has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
abdulrehman has joined #ruby
<abdulrehman> hi there
Soda has joined #ruby
juanpablo_ has joined #ruby
<platzhirsch> hi abdulrehman
<abdulrehman> I'd like to tokenize sql in ruby, I thought about using erb but that's for different templating problems. any advice?
riffraff has joined #ruby
<workmad3> abdulrehman: as in you want to reduce an SQL string into tokens in a parse tree with ruby?
p1k has joined #ruby
chills42 has quit [Remote host closed the connection]
<p1k> hi
clocKwize has joined #ruby
bruno- has quit [Ping timeout: 255 seconds]
<abdulrehman> not so much, let me write up something quickly on a gist and I'll show you in sec
<havenwood> p1k: g'mornin
nobitanobi has joined #ruby
_blizzy_ has joined #ruby
decaff has joined #ruby
<workmad3> abdulrehman: ... you want to reimplement SQL prepared statements in ruby...
pauly_oc has quit [Ping timeout: 264 seconds]
fractalis has joined #ruby
Thomas-0725 has quit [Quit: Textual IRC Client: www.textualapp.com]
tubuliferous_ has joined #ruby
jgpawletko has joined #ruby
Guest32 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ynroot has joined #ruby
polysics has quit []
<abdulrehman> workmad3: yah something like that
chrissonar has quit [Remote host closed the connection]
<workmad3> abdulrehman: err... don't do that? just use prepared statements!
<abdulrehman> I am technically working with JRuby, so I have access to the JDBC
hashrocket has joined #ruby
<abdulrehman> ok, and use the subtitue method then? to change me '?' to the variables I'd want
<ynroot> cant install sqlite3 on opensuse
<ynroot> n error occurred while installing sqlite3 (1.3.10), and Bundler cannot continue.
<ynroot> Make sure that `gem install sqlite3 -v '1.3.10'` succeeds before bundling.
CloCkWeRX has quit [Ping timeout: 244 seconds]
<workmad3> abdulrehman: no... let the prepared statement handle that
<sevenseacat> ynroot: you'll need the headers for that too.
<workmad3> abdulrehman: that's the *point* of prepared statements
<sevenseacat> ynroot: try sqlite3-devel or some such.
<abdulrehman> ok, then I'll just to do that.... many thanks workmad3:
danman has joined #ruby
dtzitz has joined #ruby
dtzitz has left #ruby [#ruby]
_blizzy_ has quit [Read error: Connection reset by peer]
Guest11957 is now known as yebyen
tubuliferous_ has quit [Ping timeout: 244 seconds]
chills42 has joined #ruby
sharpmachine has joined #ruby
_blizzy_ has joined #ruby
bougyman_ is now known as bougyman
lxsameer has quit [Quit: Leaving]
railsraider has quit [Ping timeout: 244 seconds]
railsraider has joined #ruby
aganov has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
c0ncealed has quit [Quit: going dark...]
Outlastsheep is now known as zz_Outlastsheep
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sharpmachine has quit [Ping timeout: 265 seconds]
benlovell has joined #ruby
quimrstorres has quit [Remote host closed the connection]
sshuff has joined #ruby
clocKwize has quit [Quit: Textual IRC Client: www.textualapp.com]
deepu has joined #ruby
chouhoulis has joined #ruby
SOLDIERz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ynroot> sevenseacat: ok already done, thanks ready to go learning ruby on rails
Igorshp has quit [Remote host closed the connection]
cubicool has joined #ruby
blue_deref has joined #ruby
weemsledeux has joined #ruby
<cubicool> How does Sinatra (or any Ruby module) detect that it is (for lack of a better phrase) "being run" and invoke certain functions?
riotjones has quit [Remote host closed the connection]
rdar has joined #ruby
<shevy> I am sure via require calls
<cubicool> I'd like to install something similar for my module, but just using __FILE__ == $FOO in my module obviously won't do it...
danzilio has quit [Quit: My computer has fallen asleep!]
CloCkWeRX has joined #ruby
<yorickpeterse> cubicool: files are just executed line by line basically
<yorickpeterse> a require() just jumps to a given file and runs everything in it
j4cknewt has joined #ruby
Igorshp has joined #ruby
Xzanron has quit [Quit: Leaving]
<adaedra> cubicool: by looking at $0
sigurding has quit [Quit: sigurding]
<havenwood> that variable is broke
astrobunny has joined #ruby
sigurding has joined #ruby
L8 has joined #ruby
symm- has quit [Ping timeout: 240 seconds]
fmcgeough has joined #ruby
kies^ has joined #ruby
cats has quit [Quit: Wow, rude.]
Rollabunna has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Channel6 has joined #ruby
StAnger has quit [Quit: leaving]
sargas has joined #ruby
mary5030 has joined #ruby
railsraider_ has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
railsraider has quit [Ping timeout: 244 seconds]
railsraider_ is now known as railsraider
RegulationD has joined #ruby
DexterLB has quit [Read error: Connection reset by peer]
Rollabunna has quit [Ping timeout: 246 seconds]
mwksl has joined #ruby
c0ncealed has joined #ruby
DexterLB has joined #ruby
astrobunny has quit [Remote host closed the connection]
<ynroot> uptime
<ynroot> Uptime: 45 minutes
Xiti` has quit [Quit: Xiti`]
<ynroot> Sysinfo for 'linux-gc9c.site': Running inside KDE 4.14.9 on openSUSE 13.2 (Harlequin) powered by Linux 4.1.2-1-desktop, CPU: Intel(R) Core(TM) i3-4005U CPU @ 1.70GHz at 1699-1700/1700 MHz, RAM: 2753/3874 MB, Storage: 145/463 GB, 212 procs, 0.76h up
Sypheren has quit [Ping timeout: 246 seconds]
mwksl has quit [Quit: leaving]
rippa has joined #ruby
christiandsg has joined #ruby
Xiti has joined #ruby
kokoleavia has joined #ruby
thiagovsk has joined #ruby
gheegh has quit [Ping timeout: 244 seconds]
GBrawl has quit [Quit: (null)]
fgo has quit [Quit: WeeChat 1.1.1]
sarkyniin has joined #ruby
decaff has quit [Quit: Leaving...]
sigurding_ has joined #ruby
mwksl has joined #ruby
arup_r has joined #ruby
<ljarvis> ynroot: is there a point to your spam?
sigurding has quit [Ping timeout: 272 seconds]
sigurding_ is now known as sigurding
fullofcaffeine has joined #ruby
christiandsg has quit [Ping timeout: 265 seconds]
khebbie has joined #ruby
khebbie_ has joined #ruby
<ynroot> ljarvis: testing man, this my second day on IRC, any problem on testing stuff
snophey has joined #ruby
<adaedra> testing what
<ynroot> some cmd
<ljarvis> ynroot: yes, please dont do that in here
<ljarvis> this channel isn't for your testing
gambl0re has joined #ruby
sinkensabe has joined #ruby
otisZart has joined #ruby
KinderSpiel has joined #ruby
<KinderSpiel> what's up?
<mwksl> Are there any particular Ruby books you folks would recommend for an intermediate rubyist?
<apeiros> ein Klangkarussell
<adaedra> sky
<KinderSpiel> Anyone can help me with finding real ruby jobs?
<sevenseacat> as opposed to...?
<sevenseacat> fake ones?
<rdark> fake ones
<mwksl> A fake ruby job
<KinderSpiel> yeah
sharpmachine has joined #ruby
prestorium has joined #ruby
<Guest75590> is there an article on writing a spec for an rspec custom matcher? I can't find any and I've had a bug in my matcher that's been throwing me for a loop.
jobewan has joined #ruby
tagrudev has quit [Remote host closed the connection]
<Guest75590> bug in my custom matcher
<mwksl> KinderSpiel, I'd recommend checking this website: https://weworkremotely.com/
nettoweb has joined #ruby
<KinderSpiel> pretty much everything I see is for recruiter honeypots :)
<mwksl> It was created by one of the founders of 37Signals
leesharma has joined #ruby
<mwksl> It's at-least a good lead. You might be looking specifically at Rails though. Not sure how you feel about that
casadei_ has joined #ruby
eminencehc has joined #ruby
christiandsg has joined #ruby
safeforge has quit [Remote host closed the connection]
sharpmachine has quit [Remote host closed the connection]
<KinderSpiel> nah, man, I can't find work anywhere
<adaedra> Did you search?
<KinderSpiel> would work on pretty much anything, I've done Java in the past too
<mwksl> Location?
prettiestPony11 has joined #ruby
<KinderSpiel> what bothers me is I see a lot of ads
rbowlby_ has joined #ruby
yqt has quit [Ping timeout: 256 seconds]
<KinderSpiel> but when I send a CV, no erply from there
rbowlby has quit [Ping timeout: 255 seconds]
<KinderSpiel> *reply
<mwksl> I'm in kinda the opposite situation.
chinmay_dd has joined #ruby
<mwksl> I got hired on as a Ruby Dev, and have been doing Business Integration the whole time
<KinderSpiel> Lisbon Portugal
<mwksl> It's so ridiculous
<mwksl> Portugal. Hmm :-/
icebourg has joined #ruby
<abdulrehman> is there a way to truncate a float not to round?
dtzitz has joined #ruby
<KinderSpiel> yeah, suppose so... but getting a remote gig should be that hard these days, should it?
quimrstorres has joined #ruby
<mwksl> Well, I live in the Midwest, in the United States and the work here for Ruby is non-existent. I've been told Oregon, Washington, and New York are worthwhile.
<workmad3> abdulrehman: ??
walterizfie has quit [Quit: Leaving...]
<mwksl> I don't think so. Check out that website, and see what it leads you to. I haven't used it, but I've heard good things
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie_ has quit [Remote host closed the connection]
Guest75590 is now known as Vimz
Philipp__ has quit [Read error: Connection reset by peer]
quimrstorres has quit [Remote host closed the connection]
livathinos has quit []
quimrstorres has joined #ruby
leesharma has quit [Ping timeout: 244 seconds]
<mwksl> I've run across quite a few Rails jobs in Chicago, IL
fullofcaffeine has quit [Remote host closed the connection]
kokoleavia has quit [Ping timeout: 244 seconds]
<KinderSpiel> mwks, I sure will, website looks interesting
snockerton has joined #ruby
fullofcaffeine has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
shock_one has quit [Remote host closed the connection]
<mwksl> Okay! Good luck. :) You'll have to report back and tell us what you find.
schaerli has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dudedudeman has quit [Remote host closed the connection]
<abdulrehman> workmad3: instead of rounding, is there a method which simpley truncate the float at a specific decimal?
s2013 has joined #ruby
<ljarvis> :/
sigurding_ has joined #ruby
<ljarvis> abdulrehman: what do you have and what do you want?
<Vimz> How do I write a spec for a custom matcher? All I want to test is that the failure message, failure message when negated and description get called depending on the data.. Basically I've found a bug in my custom matcher and I want to stamp it out properly with TDD.
<abdulrehman> I can do it the long way to be honest, by change it to string and truncate anything after the ',' but being lazy
dudedudeman has joined #ruby
<ljarvis> Vimz: #rspec
<workmad3> abdulrehman: err... no, because that's not how floats work (they can be unrepresentable at pretty much any number of decimal points, not just large numbers)
<Vimz> ljarvis nobody's evere there :'(
<workmad3> abdulrehman: e.g. 10.1 is unrepresentable... how do you just 'truncate' that?
<abdulrehman> ljarvis: for example float number 22.2229 truncate it to third decimal becomes 22.222, if we round it will become 22.223
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
<gregf_> abdulrehman: 10.25.to_s.sub("\..*","").to_i <= like that
<ljarvis> dont do that ^
dudedudeman has quit [Changing host]
dudedudeman has joined #ruby
<workmad3> adaedra: ah, you want to floor the numbers, rather than round them
iwaffles has joined #ruby
snockerton has quit [Client Quit]
ArchRogem has joined #ruby
<gregf_> ljarvis: well he just wants it :/
darkf has quit [Quit: Leaving]
<adaedra> workmad3: fix your tab key
sigurding has quit [Ping timeout: 255 seconds]
sigurding_ is now known as sigurding
<workmad3> adaedra: nah :P
<workmad3> adaedra: that wasn't a tab failure anyway... it was hitting b instead of d
<ljarvis> gregf_: they don't want an integer, so it's not right, casting to string and back again is almost never the answer
<workmad3> err... other way around :)
railswebdev has joined #ruby
<adaedra> workmad3: fix the whole keyboard then
<workmad3> but still... floor doesn't take a precision argumement... bah :(
<adaedra> baaah
<ljarvis> workmad3: TabFailure < GeneralTypeFailure
<workmad3> adaedra: I like my keyboard :P
<gregf_> abdulrehman: 10.25.to_s[/[^.]+/] or else *cries* . never ever had to do something like that :/
<ljarvis> no :|
<Vimz> does anyoone here have a bit of indepth knowledge regarding rspec? #rspec is a graveyard
<gregf_> heh
<ljarvis> gregf_: srsly stahp
<gregf_> heh lol
Silox| has quit [Quit: Connection closed for inactivity]
<ljarvis> Vimz: please just wait, spamming isn't going to help. Did you check the (well covered) rspec docs?
<dudedudeman> Vimz: i'd definitely hit up #rubyonrails guys
<adaedra> Rationnals seems to support truncating with an argument
andikr has quit [Remote host closed the connection]
<abdulrehman> gregf_: hahaha don't blame me man, the spec asks for that what can I do for them.... the business analyst are the one who sets the specs and they are really not aware
<abdulrehman> of the problem
<ljarvis> Vimz: also yes ror is probably a good place to ask as well
<adaedra> &ri Rationnal#truncate
<`derpy> No results
<adaedra> erf
<adaedra> &ri Rational#truncate
<adaedra> one day I'll learn that
<Vimz> ljarvis dudedudeman cool thanks
<workmad3> abdulrehman: you could push back on the requirement and say it's not a simple thing to implement
<adaedra> lol, truncating to a given place, not simple thing.
rideh has quit [Quit: zap]
msnyon has joined #ruby
<ljarvis> heh
<dudedudeman> (not saying some of the folks on here haven't used or aren't experts at rspec, it's just that that is a heavily supported test suite by the rails community)
solars has quit [Ping timeout: 256 seconds]
<mwksl> Vimz: also, you might be able to find what you need in a book like this: https://pragprog.com/book/achbd/the-rspec-book I know that's probably not the answer you were looking for, but just know that it's a resource as well.
PhantomSpank has joined #ruby
<abdulrehman> workmad3: hahahha I do sometimes... and some other times I find a work around it
dgutierrez1287 has joined #ruby
Scriptonaut has left #ruby [#ruby]
<gregf_> abdulrehman: 10.25.to_int or else. but out of curiosity. what are you trying to achieve?
rideh has joined #ruby
tubuliferous_ has joined #ruby
BeatzKilla has quit [Ping timeout: 255 seconds]
<Vimz> mwksl thanks, i am still learning rspec. really thought matcher testing would be google-able :s
christia_ has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<mwksl> Vimz, I guarantee you already know more than me. :) I only have surface knowledge of it, but not much experience hehe.
KinderSpiel has quit [Ping timeout: 246 seconds]
<abdulrehman> gregf_: basically I have to get some prices for some shares which are much more than 10 decimal places, they want to truncate anything else after the 10th position and not rounding, the problem with rounding is maybe gonna effect other calculation down the pipe
BeatzKilla has joined #ruby
Igorshp has quit [Remote host closed the connection]
mdavid613 has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
<workmad3> abdulrehman: prices? don't use floats!!!!
<workmad3> abdulrehman: wrap them in BigDecimal (which, incidentally, supports a truncate method that does what you want)
<workmad3> abdulrehman: also, truncating is going to affect the calculation just as much as rounding would...
<gregf_> abdulrehman: share prices. you need to also realise that a few pennies here and there make a lot of difference :/
mdavid613 has quit [Client Quit]
shock_one has joined #ruby
allomov has quit [Remote host closed the connection]
<jhass> today: #ruby saves world economy
allomov has joined #ruby
chinmay_dd has quit [Read error: Connection reset by peer]
<adaedra> ruby.gr
prestorium has quit [Quit: Konversation terminated!]
fabrice31_ has quit [Remote host closed the connection]
dgutierrez1287 has quit [Ping timeout: 265 seconds]
rubie has joined #ruby
<workmad3> abdulrehman: tbh, I'd expect truncating to affect the calculation *more* than rounding would...
mwksl_ has joined #ruby
<workmad3> although that'll depend on how the values are distributed
snockerton has joined #ruby
christia_ has quit [Read error: Connection reset by peer]
mwksl has quit [Ping timeout: 256 seconds]
scripore has quit [Quit: This computer has gone to sleep]
exadeci has joined #ruby
railsraider has quit [Quit: railsraider]
<abdulrehman> workmad3: they are not just simple prices, they are more than that... these has to do with indices and stock market and stuff
<workmad3> abdulrehman: still shouldn't be using floats... floats will be doing their own rounding when you create the values
<abdulrehman> gregf_: I guess that is why they are pushing for a truncate, but I thought a rounding should be more logical
tkuchiki has quit [Remote host closed the connection]
scripore has joined #ruby
<abdulrehman> workmad3: I am getting the value from db, and they are coming from db as string anyways
Igorshp has joined #ruby
baroquebobcat has joined #ruby
sharpmachine has joined #ruby
Adran has quit [Quit: Este é o fim.]
sigurding_ has joined #ruby
<workmad3> abdulrehman: ok... so BigDecimal.new(str_value_from_db).truncate(10)
sinkensabe has quit [Remote host closed the connection]
christiandsg has joined #ruby
<abdulrehman> workmad3: let me try that one sec
sigurding has quit [Ping timeout: 246 seconds]
sigurding_ is now known as sigurding
<abdulrehman> oh, and how do I stop the IRC notification who is going in/out they are moving the chat way too quick
<workmad3> depends on client
<mwksl_> You using irssi?
<abdulrehman> I am using the browswer, they won't let me use it any other way, irc.lc
<darix> in irssi all you need is /ignore -channel #ruby JOINS PARTS QUITS NICKS
nobitanobi has joined #ruby
dorei has quit [Read error: Connection reset by peer]
<darix> i think somewhere on the irssi page i documented that once
<adaedra> he's on the web gateways
<adaedra> *-s
gregf has quit [Quit: WeeChat 1.1.1]
Adran has joined #ruby
<workmad3> abdulrehman: can you create an SSH connection out of your network?
<workmad3> abdulrehman: if so, you can always create a socks proxy with an SSH connection and use that to proxy a better IRC client connection ;)
<abdulrehman> no way man hahahah .... they have so much tighet security here, I can't sometime use normal https websites.... hahahha they have everything locked down
<adaedra> abdulrehman: click on the little icon on topleft, click options, check "Hide JOINS/PARTS/..."
<workmad3> abdulrehman: fun :P
sigurding has quit [Quit: sigurding]
<abdulrehman> adaedra: works
<abdulrehman> thanks
<adaedra> yw
<abdulrehman> workmad3: trust me man, its sucks
<abdulrehman> I'll join a strart up soon or something
<abdulrehman> they are sooo uptight in here hahahah
ruurd has quit [Quit: ZZZzzz…]
peterhu_ is now known as peterhu
<darix> workmad3: why proxy irc if you could just do mosh/ssh+tmux+irssi|weechat?
Cache_Money has joined #ruby
<abdulrehman> I'd need a unix terminal to do that workmad3:
yosafbridge` has quit [K-Lined]
<abdulrehman> sadly, we only use UX-HP which is not connected to the internet only our intranet
<adaedra> and?
<adaedra> ah
ynroot has quit [Quit: Konversation terminated!]
christiandsg has quit [Read error: Connection reset by peer]
<abdulrehman> I am telling you, they are really uptight... and other IRC channels/websites are filtered out and blocked, no Idea how this one isnt
<abdulrehman> hahahahah just lucky i guess
<adaedra> for now
christiandsg has joined #ruby
<abdulrehman> adaedra: hahahha for now
s2013 has joined #ruby
bruno- has joined #ruby
lokulin has quit [Ping timeout: 256 seconds]
dfockler has joined #ruby
Rollabunna has joined #ruby
<abdulrehman> anyway guys, thanks for the help....
<gregf_> mvn install
<gregf_> oops :/ sorry
rehat has joined #ruby
Jarboe has joined #ruby
chinmay_dd has joined #ruby
shock_one has quit [Remote host closed the connection]
<mwksl_> godspeed
casadei_ has quit [Remote host closed the connection]
riotjones has joined #ruby
gregf has joined #ruby
dseitz has joined #ruby
pengin has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
<abdulrehman> :d
bruno- has joined #ruby
Rollabunna has quit [Ping timeout: 246 seconds]
Rollabun_ has joined #ruby
shock_one has joined #ruby
shock_one has joined #ruby
<workmad3> abdulrehman: did BigDecimal fit your needs then?
stan has quit [Ping timeout: 246 seconds]
riotjones has quit [Ping timeout: 264 seconds]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yosafbridge has joined #ruby
ascarter has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<abdulrehman> workmad3: nop, everytime I use BigDec it gives me an error
<abdulrehman> workmad3: NameError: uninitialized constant BigDecimal
bruno- has joined #ruby
psy has joined #ruby
<workmad3> abdulrehman: ah... do 'require "bigdecimal" ' first then
prettiestPony11 has quit [Read error: Connection reset by peer]
casadei_ has joined #ruby
<workmad3> abdulrehman: it's frequently loaded as standard in a lot of environments, but it's part of the stdlib, not core ruby, so in gems, libraries and similar, you'll need to require it yourself
<abdulrehman> dahhh
<abdulrehman> hahaha ok
<abdulrehman> one minute
rcvalle has joined #ruby
n008f4g_ has quit [Ping timeout: 252 seconds]
<adaedra> 30 seconds
scripore has joined #ruby
`El`Santo has joined #ruby
usershell has joined #ruby
rideh has quit [Quit: zap]
scripore has quit [Client Quit]
<abdulrehman> workmad3: that doesn't do what I need
<abdulrehman> adaedra: your counting? hahahha
<adaedra> no, I'm bidding
<abdulrehman> kool
<adaedra> Wait, it's the wrong way, isn't it
<abdulrehman> I think so,
pengin has quit [Remote host closed the connection]
<abdulrehman> should go higher
<abdulrehman> haha
<adaedra> this explain why I never win those
lokulin has joined #ruby
<abdulrehman> adaedra: good luck next time haha
<abdulrehman> workmad3: I did the following in the db
<abdulrehman> convert(numeric(11,10),msv.weight) as 'weight'
bruno- has quit [Ping timeout: 244 seconds]
<abdulrehman> sql embded in my jruby
scripore has joined #ruby
Hounddog has quit [Remote host closed the connection]
`El`Santo has quit [Quit: This computer has gone to sleep]
allomov has quit [Remote host closed the connection]
marr has joined #ruby
svdb64 has quit [Ping timeout: 246 seconds]
nobitanobi has quit [Remote host closed the connection]
varunwachaspati has joined #ruby
anisha has quit [Quit: Leaving]
shock_one has quit [Remote host closed the connection]
Ilyas has joined #ruby
p1k has quit [Ping timeout: 244 seconds]
Lingo has joined #ruby
thang_ is now known as thang
blue_deref has quit [Quit: bbn]
CloCkWeRX has quit [Remote host closed the connection]
<abdulrehman> anyway, I'm off.... enough work for one day hahaha thanks all and maybe I'll see you tomorrow if they do not block me from accessing the channel hahah
sepp2k has quit [Quit: Leaving.]
christia_ has joined #ruby
theery has joined #ruby
christiandsg has quit [Read error: Connection reset by peer]
yqt has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
Tomasso has quit [Quit: Page closed]
leesharma has joined #ruby
amclain has joined #ruby
<workmad3> abdulrehman: you could always have a small netbook with a decent IRC client on it that you tether to your phone's mobile connection to get around corporate firewalls ;)
shock_one has joined #ruby
<jhass> or a SOCKS5 proxy to a $10/year VPS
tennis has joined #ruby
jud^ has joined #ruby
Lingo has quit [Quit: (null)]
strixd has quit [Quit: 500]
<adaedra> yeah, let's break company's filtering, this can only go well
leesharma has quit [Ping timeout: 246 seconds]
<dfockler> unless your sys admin is blocking SOCKS traffic, but how likely is that right?!
jud has quit [Ping timeout: 256 seconds]
<mwksl_> http://shadowsocks.org/en/index.html Just use ShadowSOCKS! What could go wrong?!
sevenseacat has quit [Quit: Me dun like you no more.]
leesharma has joined #ruby
last_staff has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
joonty has quit [Quit: joonty]
ddarkpassenger has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sharpmachine has quit []
L8 has quit [Ping timeout: 264 seconds]
mleung has joined #ruby
<jhass> well, or http://dnstunnel.de/
<jhass> TCP over DNS, what will go wrong?
weemsledeux has joined #ruby
<adaedra> "Easy deployment with pip, npm" wuuuuuuuut
rideh has joined #ruby
<darix> if you use a connection via phone already, mosh+tmux+irssi
<darix> but yeah why simple if we can complicate it
chinmay_dd has quit [Read error: Connection reset by peer]
<adaedra> use pigeons
<ljarvis> tmux+irssi <3
leesharma has quit [Ping timeout: 256 seconds]
platzhirsch has left #ruby [#ruby]
<workmad3> adaedra: at least my suggestion was using a machine not on the company network, it was merely in physical proximity with company machines ;)
<darix> ljarvis: add juicessh+mosh to the mix ^^
BeatzKilla has quit [Remote host closed the connection]
sdothum has joined #ruby
mwksl_ is now known as mwksl
<adaedra> workmad3: company may not allow to use a 3rd party machine on the workplace
<Vimz> I swear there was a ruby block to supress all console output. silent{ puts 'hi' } #=> *nothing* have I misremembered?
ZYPP is now known as hool
<adaedra> It remembers me a gem
fractalis has quit [Quit: Changing server]
MatthewsFace has joined #ruby
juanpablo__ has joined #ruby
momomomomo has joined #ruby
juanpablo_ has quit [Read error: Connection reset by peer]
<workmad3> Vimz: are you possibly thinking of $stdin.noecho which will prevent user input from echoing to stdout inside the block provided?
mollymorphic has joined #ruby
<workmad3> e.g. $stdin.noecho { puts "Password: "; gets } #=> user's password, with no console output
leesharma has joined #ruby
fractalis has joined #ruby
<workmad3> s/output/echo
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
sepp2k has joined #ruby
Violentr has quit [Ping timeout: 244 seconds]
<ljarvis> btw you need to require io/console for that
michaeldeol has joined #ruby
konsolebox has quit [Quit: Leaving]
vasilakisfil has quit [Quit: Konversation terminated!]
<darix> highline or so should filter it too
pengin has joined #ruby
<Vimz> workmad3 that could be it, I'll try it out :)
<darix> or termios library for ruby
<workmad3> Vimz: there's also `capture(:stdout)` provided by rails, but it's being deprecated
<darix> Vimz: /usr/lib64/ruby/gems/2.2.0/gems/net-ssh-2.9.2/lib/net/ssh/prompt.rb:67: $stderr.puts "Text will be echoed in the clear. Please install the HighLine or Termios libraries to suppress echoed text."
baweaver has joined #ruby
<havenwood> Vimz: Not a block, and in short-form, but you can easily make a block to silence stdout and stderr for the current process: $stdout = $stderr = StringIO.new; 'silent here'; $stdout, $stderr = STDOUT, STDERR
[Butch] has joined #ruby
bricker has joined #ruby
banister has quit [Ping timeout: 244 seconds]
shock_one has quit [Remote host closed the connection]
christia_ has quit [Read error: Connection reset by peer]
christiandsg has joined #ruby
towski_ has joined #ruby
wpp has quit [Quit: ZZZzzz…]
<havenwood> require 'stringio'
christiandsg has quit [Remote host closed the connection]
systemnate has quit [Remote host closed the connection]
shock_one has joined #ruby
fullofcaffeine has joined #ruby
<havenwood> >> require 'stringio'; module Kernel; def silently; $stdout = $stderr = StringIO.new; yield; $stdout, $stderr = STDOUT, STDERR end end; silently { puts 'green'; warn 'red' }
<ruboto> havenwood # => [#<IO:<STDOUT>>, #<IO:<STDERR>>] (https://eval.in/406849)
sarkyniin has quit [Quit: Quit]
benlieb has joined #ruby
<havenwood> Or I suppose better to /dev/null it?
ruurd has joined #ruby
<havenwood> To the black hole!
svdb64 has joined #ruby
Igorshp has quit [Remote host closed the connection]
hool is now known as ZYPP
nobitanobi has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
<darix> havenwood: isnt that what highline or termios do?
<adaedra> darix: wants to supress ruby output, not user entry, if I understood correctly
howdoi_ has quit [Quit: Connection closed for inactivity]
<darix> adaedra: i read it as "i want to hide the user input"
ascarter has joined #ruby
pengin has quit [Remote host closed the connection]
<darix> which especially makes sense with the password thing
lionra has quit [Quit: Textual IRC Client: www.textualapp.com]
`El`Santo has joined #ruby
RobertBirnie has joined #ruby
`El`Santo has quit [Client Quit]
Vile` has quit [Ping timeout: 255 seconds]
banister has joined #ruby
<adaedra> darix: but does not fill request of: silent{ puts 'hi' } #=> *nothing*
ruurd has quit [Quit: ZZZzzz…]
Vile` has joined #ruby
jobewan has quit [Quit: Leaving]
juanpablo___ has joined #ruby
<adaedra> Vimz: there's this, can be used as inspiration, along with havenwood's suggestions
juanpablo__ has quit [Ping timeout: 244 seconds]
paulcsmith has quit [Quit: Be back later ...]
<adaedra> this { yield } thing is yucky though
RobertBirnie has quit [Ping timeout: 246 seconds]
baweaver has quit [Remote host closed the connection]
mikecmpbll has quit [Ping timeout: 265 seconds]
mdavid613 has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
ZYPP is now known as hool
hool is now known as ZYPP
sargas has quit [Quit: This computer has gone to sleep]
NeverDie has joined #ruby
pengin has joined #ruby
RobertBirnie has joined #ruby
rubie has quit [Remote host closed the connection]
sanguisdex has quit [Remote host closed the connection]
polpak has joined #ruby
Ray`_ is now known as Ray`
sanguisdex has joined #ruby
c0m0 has quit [Ping timeout: 246 seconds]
carlosoliveira has joined #ruby
gwendall has joined #ruby
bizportal has joined #ruby
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
varunwachaspati has quit [Remote host closed the connection]
dtzitz has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
devdazed has joined #ruby
baweaver has joined #ruby
rubie has joined #ruby
white_bear has quit [Quit: leaving]
<Vimz> adaedra. that might just about do it..thanks all :)
<adaedra> np
lostcuaz_km has quit [Quit: ZNC - http://znc.in]
bootstrappm has joined #ruby
lostcuaz has joined #ruby
<bootstrappm> morning all
senayar has joined #ruby
fractalis has quit [Ping timeout: 240 seconds]
railsraider has joined #ruby
diegoviola has joined #ruby
ddarkpassenger has joined #ruby
scripore has joined #ruby
<havenwood> darix: I'm not really familiar with termios but highline would do it nicely. Or I'd probably just write the single method myself unless I was using other highline stuff.
fantazo has joined #ruby
<havenwood> bootstrappm: g'mornin
Muhannad has joined #ruby
RegulationD has quit [Remote host closed the connection]
fullofcaffeine has quit [Quit: Leaving...]
leafybas_ has quit [Remote host closed the connection]
leafybasil has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scottschecter has quit [Quit: Leaving]
rbowlby_ has quit [Remote host closed the connection]
rbowlby has joined #ruby
michaeldeol has quit [Ping timeout: 246 seconds]
<prefixed> yo. anyone have any ideas as to how I can wait while some asynchronous code completes?
michaeldeol has joined #ruby
crazydiamond has joined #ruby
<[k-_> sleep
_djbkd has joined #ruby
hanmac has quit [Ping timeout: 246 seconds]
leafybasil has quit [Ping timeout: 250 seconds]
wldcordeiro has quit [Quit: Konversation terminated!]
Kully3xf_ has joined #ruby
khebbie has joined #ruby
khebbie_ has joined #ruby
railsraider has quit [Ping timeout: 256 seconds]
<jhass> prefixed: asynchronous using what?
kully3xf has quit [Ping timeout: 240 seconds]
Zai00 has quit [Quit: Zai00]
<prefixed> net-ssh. i am using exec
baweaver has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
<prefixed> exec is too slow
<prefixed> *exec!
icebourg has quit [Ping timeout: 250 seconds]
wpp has joined #ruby
<jhass> oh, so you want to run multiple in parallel and wait for all of them? Why do I have to guess that?
Jackneill has joined #ruby
<prefixed> i think i might have a solution. sec
usershel_ has joined #ruby
calleerlandsson has quit [Quit: Connection closed for inactivity]
<jhass> exec should return you the Channel on which you can call wait
<jhass> so try collecting them and then just .each(&:wait)
paulcsmith has joined #ruby
senayar has quit [Remote host closed the connection]
scripore has joined #ruby
usershell has quit [Ping timeout: 250 seconds]
calleerlandsson has joined #ruby
<eam> prefixed: if you're looking for a simple gem to do multiplexed ssh: https://github.com/square/mssh
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
wallerdev has joined #ruby
JimmyNeutron has joined #ruby
beef-wellington has joined #ruby
<prefixed> I've never done anything like this before. Here's my method though. It isn't clear to me as to how I'd make the exec loop block until finished: http://pastebin.com/RsKrYFU7
<ruboto> prefixed, we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/73e1e5b2b863a0726a5c
<ruboto> pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
{756d6f} has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #ruby
sanguisdex has quit [Remote host closed the connection]
shock_one has quit [Remote host closed the connection]
icebourg has joined #ruby
ruurd has joined #ruby
icebourg has quit [Client Quit]
ruurd has quit [Client Quit]
codecop has joined #ruby
wpp has quit []
silkfox has quit [Ping timeout: 246 seconds]
icebourg has joined #ruby
<prefixed> hm
<prefixed> I suppose exec could work for this
sanguisdex has joined #ruby
Salve has joined #ruby
mdavid613 has quit [Read error: Connection reset by peer]
<prefixed> omg
mdavid613 has joined #ruby
<prefixed> i can't believe I screwed this up so badly. what a moron
icebourg has quit [Client Quit]
rubie has quit [Remote host closed the connection]
fractalis has joined #ruby
<apeiros> prefixed: ey, stop calling people morons, that's rude! ;-p
ruurd has joined #ruby
<prefixed> :(
icebourg has joined #ruby
rubie has joined #ruby
EllisTAA has joined #ruby
blueOxigen has joined #ruby
ruurd has quit [Client Quit]
bluOxigen has quit [Ping timeout: 244 seconds]
usershel_ has quit [Ping timeout: 246 seconds]
<prefixed> ok. non-ruby question: how do you guys get better at recognizing details?
usershell has joined #ruby
rubie has quit [Read error: Connection reset by peer]
bodgix has quit [Quit: Leaving.]
<busterarm> what kind of details?
<busterarm> (it's an interesting question)
mrbeardy has joined #ruby
ddarkpassenger has quit [Quit: Textual IRC Client: www.textualapp.com]
brianpWins has quit [Ping timeout: 264 seconds]
sshuff is now known as sshuff|foodz
paulcsmith has quit [Read error: Connection reset by peer]
sp4rrow has joined #ruby
paulcsmith has joined #ruby
bhorn1|away has joined #ruby
<jhass> ?guys prefixed
<ruboto> prefixed, we're not all guys - while you probably don't meant to be exclusive, not everybody feels that way. Maybe consider using "folks", "y'all" or "everyone" instead?
bhorn1|away is now known as bhorn1
<jhass> to answer: usually you try to reduce the thing you look at to the minimum
sshuff|gone has joined #ruby
<jhass> for example in the code you pasted you could try to extract stuff into smaller methods with descriptive names
<jhass> finding the names already makes you think about the details of what you're extracting
<prefixed> jhass sorry. I generally consider "guys" to be gender-agnostic. However, for the benefit of immersion, i'll use this channel's vernaclar
<busterarm> so i have a cognitive distortion with filterting
<busterarm> err filtering
<prefixed> I tend to feel like I go too fast when programming. I gloss over the details because I'm so concerned with finishing
<busterarm> focus is something that is practiced, honestly
<mrbeardy> "guys" as a gender-agnostic definition is perfectly reasonable: http://dictionary.reference.com/browse/guy
bizportal has quit []
<jhass> ?guys2 mrbeardy
<ruboto> mrbeardy, it doesn’t matter if it’s "normal"/gender neutral to say "guys" in your idiolect. "You guys" to refer to a mixed group is erasure. All we ask from you is to be a decent channel member and respect that. If you want to further discuss this, join #ruby-offtopic.
blaines has joined #ruby
[k-_ has quit [Quit: Lingo: www.lingoirc.com]
<eam> jhass: that's veering into insanity
k3asd` has joined #ruby
<eam> you can't just say "it doesn't matter if it isn't; it is"
tjohnson has joined #ruby
AnarchoHacker has joined #ruby
blaines_ has joined #ruby
<busterarm> that's the rules of the channel guys, if you want to debate it, #ruby-community
<busterarm> it is because "said so"
baroquebobcat has quit [Quit: baroquebobcat]
<eam> the irony
<mrbeardy> just seems like it takes less effort to gloss over it than to point it out
<busterarm> and I don't even disagree with you
<eam> busterarm: evidently not as you used "guys" :)
<busterarm> whoops !:B
<eam> anyway, whenever I see this kind of nit-picky fringe social theory I'm gonna criticize it
<eam> it distracts from the reason we're here (which is ruby)
<busterarm> it is probably the second most common topic discussion after actual questions about ruby...
<jhass> take it to -offtopic or stop.
<ljarvis> so lets stop talking about it; any more discussion please move to -offtopic
benlovell has quit [Ping timeout: 252 seconds]
<mrbeardy> could have all been avoided by ignoring it in the first place
blaines has quit [Ping timeout: 255 seconds]
<bootstrappm> +1 for inclusion
timonv has joined #ruby
schaerli has joined #ruby
momomomomo has quit [Quit: momomomomo]
JohnBat26 has joined #ruby
zz_Outlastsheep is now known as Outlastsheep
rdark has quit [Ping timeout: 250 seconds]
<busterarm> i'm all for breaking down barriers
benlovell has joined #ruby
<eam> I'm into talking about ruby or related technology, personally
CustosLimen has joined #ruby
yqt has quit [Ping timeout: 264 seconds]
rdark has joined #ruby
<eam> would rather not spend time beating up on people for using subjective terminology
<bootstrappm> I'm into allowing everybody to talk about ruby feeling equally comfortable ;)
<jhass> !kick eam take it to #ruby-offtopic
eam was kicked from #ruby by ruboto [take it to #ruby-offtopic]
shadoi has joined #ruby
<bootstrappm> i'll go there toooo
eam has joined #ruby
zeroDivisible has quit [Ping timeout: 250 seconds]
zapata has joined #ruby
aryaching has quit []
webopsx has joined #ruby
postmodern has joined #ruby
Thr3d has quit [Ping timeout: 264 seconds]
nsuke has quit [Read error: Connection reset by peer]
gix has quit [Ping timeout: 244 seconds]
benlovell has quit [Ping timeout: 244 seconds]
axl_ has quit [Ping timeout: 245 seconds]
axl__ is now known as axl_
benlovell has joined #ruby
Thr3d has joined #ruby
craysiii has joined #ruby
sarkyniin has joined #ruby
AnarchoHacker is now known as cfernandez
bronson has joined #ruby
dEPy has joined #ruby
kirun has joined #ruby
lkba_ has joined #ruby
timonv has quit [Ping timeout: 244 seconds]
bruno- has joined #ruby
[Butch] has quit [Read error: Connection reset by peer]
[Butch] has joined #ruby
lkba has quit [Ping timeout: 246 seconds]
benlovell has quit [Ping timeout: 250 seconds]
bluOxigen has joined #ruby
RegulationD has joined #ruby
gix has joined #ruby
benlovell has joined #ruby
aryaching has joined #ruby
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sypheren has joined #ruby
bruno- has quit [Ping timeout: 244 seconds]
blueOxigen has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
senayar has joined #ruby
senayar has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
juanpablo___ has quit [Ping timeout: 240 seconds]
j4cknewt has quit [Remote host closed the connection]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ynroot has joined #ruby
freerobby has quit [Quit: Leaving.]
benlovell has joined #ruby
PaulCapestany has joined #ruby
j4cknewt has joined #ruby
charliesome has quit [Quit: zzz]
shock_one has joined #ruby
tommylom1ykins is now known as tommylommykins
solars has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
bruno- has joined #ruby
charliesome has joined #ruby
allomov has joined #ruby
Sypheren has quit [Ping timeout: 252 seconds]
aevitas has joined #ruby
allomov has quit [Remote host closed the connection]
benlovell has quit [Ping timeout: 246 seconds]
parduse has joined #ruby
deol has joined #ruby
allomov has joined #ruby
lee_ has joined #ruby
sshuff|foodz is now known as sshuff
allomov has quit [Remote host closed the connection]
troulouliou_div2 has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 260 seconds]
cfernandez has quit [Ping timeout: 246 seconds]
michaeldeol has quit [Ping timeout: 260 seconds]
bruno- has joined #ruby
sargas has joined #ruby
michael_mbp has quit [Excess Flood]
lkba_ has quit [Ping timeout: 240 seconds]
leesharma has quit [Ping timeout: 244 seconds]
michael_mbp has joined #ruby
aryaching has quit []
kully3xf has joined #ruby
parduse has quit []
rideh has quit [Quit: zap]
benlovell has joined #ruby
swills has quit [Read error: Connection reset by peer]
senayar has quit [Remote host closed the connection]
rideh has joined #ruby
Kully3xf_ has quit [Ping timeout: 250 seconds]
texasmade has joined #ruby
NeverDie has joined #ruby
vdamewood has quit [Quit: Life beckons.]
_star_ has joined #ruby
sigurding has joined #ruby
senayar has joined #ruby
yaw has joined #ruby
{756d6f} has joined #ruby
NeverDie has quit [Max SendQ exceeded]
parduse has joined #ruby
NeverDie has joined #ruby
mollymorphic has quit [Remote host closed the connection]
ruurd has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
Igorshp has joined #ruby
nveselinov has joined #ruby
jenrzzz has joined #ruby
momomomomo has quit [Client Quit]
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has joined #ruby
benlovell has joined #ruby
<shevy> at which point should a project become a deserving 1.0.0 version
<yorickpeterse> shevy: when the API is considered stable
<busterarm> is #ruby-lang shut down or something?
<busterarm> or is that more of a question for the #freenode channel?
<shevy> #ruby-lang merged into #ruby a while ago
<busterarm> ahh
<shevy> jhass killed #ruby-lang :>
<craysiii> were there any conflicts? ;)
<shevy> no. jhass won
<shevy> our former arch enemies at #ruby-lang are now allies
acovrig has joined #ruby
<acovrig> Is there any way to get the text of an element (mechanize) without getting the text of the children also?
<chris2> now there is talking all the time. so annoying. ;)
c355E3B has quit [Quit: Connection closed for inactivity]
swills has joined #ruby
usershell has quit [Quit: Leaving...]
jdeen has quit [Ping timeout: 255 seconds]
<acovrig> somehow I beat the ChanServ to it’s status line, did my question about machanize go through?
<craysiii> yes
<acovrig> OK, thanks
yaw has left #ruby ["Textual IRC Client: www.textualapp.com"]
quimrstorres has quit [Remote host closed the connection]
sshuff has quit [Quit: Leaving]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wmoxam> shevy: we all win
childz has joined #ruby
<wmoxam> winners all around
<acovrig> when I do .text on the td, I get the text I want, but sometimes there is a div/span/p inside that has text that gets roped into the td.text…
<shevy> well one win would be that the channel is bigger nowadays
quimrstorres has joined #ruby
sshuff|gone is now known as sshuff
michaeldeol has joined #ruby
jdeen has joined #ruby
psy has quit [Disconnected by services]
psy_ has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
lannonbr has quit [Quit: WeeChat 1.2]
swills has quit [Ping timeout: 244 seconds]
bruno- has quit [Ping timeout: 246 seconds]
swills has joined #ruby
<dfockler> all the people who usually answer questions are busy arguing
<bootstrappm> ^ hahah
ynroot has quit [Quit: Konversation terminated!]
benlovell has joined #ruby
ynroot has joined #ruby
childz has left #ruby [#ruby]
chipotles has joined #ruby
<bootstrappm> acovrig not any easy way that I know if. The solution to me would be to get the text of all the children (just one level deep) and subtract it from the general text
<acovrig> bootstrappm: since the div isn’t always there, wouldn’t I need something like if children.count > 0 so I don’t throw an exception from looking for the non-existant div?
workmad3 has quit [Ping timeout: 244 seconds]
ndrei has quit [Ping timeout: 264 seconds]
riotjone_ has joined #ruby
parduse has quit []
<bootstrappm> no acovrig I don't think so. Use the .children method of the underlying Nokogiri instance then .each on it to get the text. If there's no children it'll just give you an empty array and the each won't do anything
ndrei has joined #ruby
<ljarvis> acovrig: css or xpath?
<ljarvis> or neither
<ljarvis> (if you're using the mechanize helper methods)
yaw has joined #ruby
<busterarm> dfockler: lol
<arup_r> >> require 'date'; p (Date.today .. Date.today.next_day(7)).size
<ruboto> arup_r # => nil ...check link for more (https://eval.in/406892)
<arup_r> why it is `nil` ?
<arup_r> >> require 'date'; p (Date.today .. Date.today.next_day(7)).to_a.size
<ruboto> arup_r # => 8 ...check link for more (https://eval.in/406894)
<arup_r> is giving correct result
rdark has quit [Quit: leaving]
parduse has joined #ruby
benlovell has quit [Ping timeout: 250 seconds]
<bootstrappm> arup_r Ranges don't have a size method probs, letm e check
<arup_r> No it has
<bootstrappm> yeah, you're right
<bootstrappm> hm...
<bootstrappm> ahhh read that well
<bootstrappm> it says if not numeric then nil returned
<bootstrappm> there you go :)
riotjone_ has quit [Ping timeout: 252 seconds]
<arup_r> cool
Outlastsheep is now known as zz_Outlastsheep
<ljarvis> acovrig: but basically, you can use > text (css) or /text() (xpath): https://gist.github.com/leejarvis/5ae1b658d69ab60f3c62 if you only want the parent text
<arup_r> so i need to expend the array to get the count.. lol Ruby is weak in this part
<ljarvis> acovrig: if something isn't working or you have a feature suggestions, please let me know on the mechanize issue tracker
parduse has quit [Client Quit]
ips|malc has joined #ruby
texasmade has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Ping timeout: 246 seconds]
arooni-mobile has joined #ruby
podman has joined #ruby
roolo has joined #ruby
JoshGlzBrk has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
blaines_ has joined #ruby
<acovrig> bootstrappm, ljarvis: thanks, I’ll look into that, unfortuantely this project just back-burnered for now though...
Igorshp has quit [Remote host closed the connection]
solars has quit [Ping timeout: 246 seconds]
<Ox0dea> arup_r: You're trying to determine how many days are left in the current week, yes?
<Bish> can someone tell me how to handle HEAD requests with webmachine?
duderonomy has quit []
benlovell has joined #ruby
<ljarvis> Bish: yeah, first step: remove webmachine
<bootstrappm> arup_r feel free to contribute ;) the source is in the link you sent
<Bish> ljarvis, and replace it with what?
parduse has joined #ruby
fantazo has quit [Ping timeout: 244 seconds]
<Bish> ljarvis, and what is the problem with webmachine?
pocketprotector has quit [Ping timeout: 240 seconds]
<havenwood> Bish: What's the problem with HEAD requests? Added 'HEAD' to #allowed_methods and they don't work?
<ljarvis> Bish: actually I was mixing it up with something else; so I take that back. I don't know anything about webmachine I'm afraid
paulcsmith has joined #ruby
<Bish> havenwood, it doesn't do anything it just says 200 OK
<Bish> i don't know how to fill the response when using head
<havenwood> Bish: And what does a GET say?
ruurd has quit [Quit: ZZZzzz…]
<ljarvis> fill the response? it's a HEAD request..
<havenwood> Bish: ^
<ljarvis> it has no body
<havenwood> Bish: 200 OK is correct?
yfeldblum has joined #ruby
<havenwood> Bish: If so, it's working. ;)
<Bish> what exactly does head do, since restful wiki says it "shows metadata of the resource"
ynroot has quit [Quit: Konversation terminated!]
sinkensabe has joined #ruby
juanpablo___ has joined #ruby
aevitas_ has joined #ruby
<Bish> ah. you want to tell me, showing the http headers is the point
<ljarvis> :)
<havenwood> Bish: A HEAD request MUST NOT return a message-body in the response.
<ljarvis> all 'bout those headers
<Bish> is it dirty to add custom headers when wanting to do crud?
<ljarvis> see curi -I also
<havenwood> Bish: Otherwise the metadata should be the same as the identical GET request.
benlovell has quit [Ping timeout: 252 seconds]
<ljarvis> Bish: custom headers for what?
<Bish> well it's the first time im doing crud, and i want to find a clean way to display the fieldnames of the resource
sigurding has quit [Quit: sigurding]
<Bish> s/it's/its
aevitas has quit [Ping timeout: 256 seconds]
benlovell has joined #ruby
<Bish> in this case, the fieldnames of the sql-table
<Ox0dea> Bish: Unnecessary substitution there.
Contigi has joined #ruby
<Bish> Ox0dea, not a native speaker ;)
<Ox0dea> No worries. Just thought I'd point it out.
danman has quit [Quit: danman]
gix has quit [Ping timeout: 240 seconds]
<Bish> havenwood, would you be so kind and give me a hint, how i would do that ?
workmad3 has joined #ruby
lee_ has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
ruurd has joined #ruby
bruno- has joined #ruby
n008f4g_ has joined #ruby
leesharma has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
danman has joined #ruby
aryaching has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
<Bish> ;;
jackjackdripper has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Igorshp has joined #ruby
ndrei has joined #ruby
lannonbr has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
bruno- has quit [Ping timeout: 246 seconds]
Stany has joined #ruby
fantazo has joined #ruby
benlovell has joined #ruby
<Ox0dea> Bish: Keep your scheming comments to yourself.
PhantomSpank has quit []
Tamae has quit [Ping timeout: 244 seconds]
sshuff is now known as sshuff|infcos
senayar has quit [Remote host closed the connection]
pocketprotector has joined #ruby
Rollabun_ has quit [Quit: Leaving...]
Tamae has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
blaines_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has joined #ruby
dumdedum has quit [Quit: foo]
Stany has quit [Ping timeout: 252 seconds]
bumbar_ has quit [Ping timeout: 244 seconds]
blaines has joined #ruby
Kalov has joined #ruby
sarkyniin has quit [Ping timeout: 264 seconds]
kully3xf has left #ruby [#ruby]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troulouliou_dev has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blaines_ has joined #ruby
schaerli has quit [Remote host closed the connection]
Mon_Ouie has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
jdeen has quit [Quit: Lost terminal]
sargas has joined #ruby
Alina-malina has joined #ruby
chills42 has quit [Remote host closed the connection]
blaines has quit [Ping timeout: 244 seconds]
chills42 has joined #ruby
willgorman|away has quit [Quit: EliteBNC - http://elitebnc.org (Auto-Removal: idle account/not being used)]
Matthews_ has joined #ruby
stantonnet has joined #ruby
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Bish> is it dirty to have the fieldnames of the crud resource in the header?
Matthew__ has joined #ruby
Igorshp has quit [Remote host closed the connection]
<ljarvis> Bish: more pointless than anything
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Zai00 has joined #ruby
<Bish> then how would i do that?
iateadonut has quit [Ping timeout: 256 seconds]
<ljarvis> do what?
<Bish> have the field names in my web application
<ljarvis> what are you trying to do exactly?
ruby-lang574 has joined #ruby
higuys has joined #ruby
<ruby-lang574> hello
<Bish> i need to have the field names of the resource in my webapplication, in this case the column names of the mysql-table;
weemsledeux has joined #ruby
<ruby-lang574> is anybody familiar with resque?
gambl0re has quit [Ping timeout: 256 seconds]
<ljarvis> Bish: that's so vague, but i'll try to make some assumptions. Are you using JSON?
<Bish> yes
<ljarvis> ruby-lang574: a little, though we switched to sidekiq quite some time ago
<ljarvis> Bish: so, you return the values as JSON
MatthewsFace has quit [Ping timeout: 256 seconds]
chipotles has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
weemsledeux has quit [Max SendQ exceeded]
ryanprior has joined #ruby
<ljarvis> JSON encoded in the response body
<ruby-lang574> my understanding is that resque retrieves jobs from redis, am i correct? the thing is that since in am running on a VPS resque seems to require quite a bit of resources to run.
<ljarvis> ruby-lang574: that is correct
<ruby-lang574> i was wondering if i can push jobs from one or more servers that are not running workers into redis
Matthews_ has quit [Ping timeout: 260 seconds]
<ruby-lang574> and have a dedicated system to run the workers
<jhass> ruby-lang574: sure, they just need a shared Redis instance
<ljarvis> ruby-lang574: yes, that's generally how it would be done in a production environment
<jhass> make sure employ proper authentication or at least firewalling
<ruby-lang574> i am using firewalling
<ruby-lang574> and basic authentication user and password
spider-mario has joined #ruby
<ryanprior> I have a big ugly destructuring line, can I get any suggestions for simplifying it or making better use of the language to make it readable? The line is: Conjur::Command.api.resources.map { |r| r.attributes["permissions"] }.reject(&:empty?).flatten.map { |r| r["role"] }.uniq.map { |r| r.split(":").drop(1).join(":") }
<ruby-lang574> all right thanks!! will try it
<Ox0dea> ryanprior: Can you given decent names to any of the intermediates?
<Ox0dea> *give
chipotles has joined #ruby
<Bish> ljarvis, then i won't have the fieldnames without doing a query on the resource
<Ox0dea> ryanprior: Prefer flat_map over flatten.map.
blue_deref has joined #ruby
sarkyniin has joined #ruby
chipotles has quit [Client Quit]
bruno- has joined #ruby
<ryanprior> Ox0dea: flat_map appears not to recursively flatten, so unfortunately it's not quite the same. I could give the intermediates names just to help the reader follow the logic.
sinkensabe has quit [Remote host closed the connection]
hahuang65 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<ryanprior> I feel like there ought to be a standard way of destructuring like some_hash.map( |entry| entry[someattribute] ) since that's a common pattern?
diegoviola has quit [Quit: WeeChat 1.2]
eminencehc has quit [Remote host closed the connection]
sinkensabe has joined #ruby
<Ox0dea> ryanprior: You're right about #flat_map, but I figured it might nevertheless be applicable in your case.
sinkensabe has quit [Remote host closed the connection]
<Ox0dea> map(&:[], 'foo') would be nice, but we don't have it and might never. :/
<Ox0dea> You could convert your Hash to an OpenStruct to expose its keys as methods, but that's surely overkill just to clean up a line.
bruno- has quit [Ping timeout: 240 seconds]
dwithers has joined #ruby
pl1ght has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<Ox0dea> ryanprior: You could hash.map(&_['foo']) with Uberscore (https://gist.github.com/0x0dea/628de90e12acc1874a9a).
<Ox0dea> (But don't._
kraljev11 has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
jobewan has joined #ruby
ruurd has joined #ruby
bruno- has quit [Ping timeout: 252 seconds]
Joost` has left #ruby ["-"]
quimrstorres has joined #ruby
casadei_ has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
<jhass> shock_one: ^
chipotle has quit [Read error: Connection reset by peer]
allcentury has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby
<shock_one> jhass: excuse me?
solars has joined #ruby
<jhass> wasn't it you with &"foo"?
webopsx has joined #ruby
chipotle has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
<shock_one> That's right, jhass. Maybe we could even pass the value to the constructor, like hash.map(&_ 'foo'), I'm not sure if the priorities are right.
kadoppe has quit [Ping timeout: 256 seconds]
<shock_one> Oops, it won't be a constructor.
<shock_one> Anyway, _ could be a method.
wallerdev has quit [Quit: wallerdev]
<shock_one> Or can't it?
scripore has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Igorshp has joined #ruby
<Mon_Ouie> Is '&_.call("foo")' what you're trying to do?
kadoppe has joined #ruby
blaines_ has quit [Ping timeout: 272 seconds]
<shock_one> Mon_Ouie: I'm trying to make the interface prettier.
Igorshp has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quit]
parduse has quit []
sarkyniin has joined #ruby
<shock_one> Wait a minute, I misunderstood the concept of the class. It's pretty fucking amazing, Ox0dea!
allcentury has joined #ruby
j4cknewt has quit [Remote host closed the connection]
<Ox0dea> shock_one: Ha. Glad you like it, but it's really only for laughs.
tanath has joined #ruby
<shock_one> Why so?
<shock_one> I'd also use "it" as the kernel method name.
selva has joined #ruby
<shock_one> But that might be after my yesterday's impression of Kotlan.
ruby-lang574 has quit [Ping timeout: 246 seconds]
<shock_one> Kotlin, that is.
parduse has joined #ruby
j4cknewt has joined #ruby
casadei_ has joined #ruby
<selva> Hello Everyone
<selva> lp={"place_entity_attributes"=>{ "id"=> "123456"}, "secondary_entity_id"=>"169435"}
<selva> I want to order this in reverse alphabetical order
Cache_Money has left #ruby [#ruby]
hinbody has quit [Quit: leaving]
<selva> >> sorted=lp.sort.reverse
<selva> => [["secondary_entity_id", "169435"], ["place_entity_attributes", {"id"=>"123456"}]]
<ruboto> selva # => undefined local variable or method `lp' for main:Object (NameError) ...check link for more (https://eval.in/406919)
<selva> Now It is sorted in reverse alphabetical as an array
<selva> but when i convert back to hash it doesn't preserve the order.
<selva> >> Hash[sorted]
<selva> => {"place_entity_attributes"=>{"id"=>"123456"}, "secondary_entity_id"=>"169435"}
<ruboto> selva # => undefined local variable or method `sorted' for main:Object (NameError) ...check link for more (https://eval.in/406920)
rideh has quit [Quit: zap]
ips|malc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<selva> I am using Ruby = 1.8.7 & Rails 2.3.18
<selva> can anyone please help me on this
<shock_one> selva: bad luck, Hash in 1.8 doesn't preserve order.
<Antiarc> selva: Hashes in Ruby 1.8 are not ordered
yfeldblum has quit [Ping timeout: 244 seconds]
DLSteve has joined #ruby
<shock_one> Ox0dea: why didn't you inherit from BasicObject?
sanguisdex has quit [Remote host closed the connection]
<selva> Is there any workaround solutions
<Antiarc> selva: Look into ActiveSupport::OrderedHash - that should be included in your version of ActiveSupport
<Antiarc> As used by Rails
yqt has joined #ruby
<Ox0dea> shock_one: I remove every single method.
sepp2k has quit [Read error: Connection reset by peer]
<shock_one> Ox0dea: I see, but isn't inheriting from BasicObject a better way?
<Ox0dea> I would still need to remove some methods.
<selva> Antiarc: thanks, but tried that too. it didn't help. at the time of convert back to hash, it doesn't preserve the order
sargas has joined #ruby
<Antiarc> You can't convert it back to a hash, you have to convert it back to an ActiveSupport::OrderedHash
<selva> Antiarc: how to do that
rideh has joined #ruby
<Antiarc> Look at the OrderedHash API docs - I don't know offhand
<Antiarc> If you upgrade to Ruby 1.9+ then hashes are ordered
knrz has joined #ruby
tomaz_b has joined #ruby
<Ox0dea> shock_one: Do you see how none of the code would change if I explicitly inherited from BasicObject?
knrz has left #ruby [#ruby]
<Ox0dea> undef_method would have a little less work to do, but it only runs the once.
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
sanguisdex has joined #ruby
allomov has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
<arup_r> suppose I have a hash which has package name and ranges of weekdays falls into the package. How can I get all possible full packages fall for any given date ranges ? https://gist.github.com/aruprakshit/bccee3f1524721743a7d
centrx has joined #ruby
ramfjord has joined #ruby
<Antiarc> selva: There's no OrderedHash method correlary to the Hash method. You'll need to check the API docs.
<selva> Antiarc: we have compatibility issues, so we can't upgrade it
prestorium has joined #ruby
<Antiarc> Its constructor probably accepts an array of [key, val] pairs
gix has joined #ruby
<Antiarc> You're looking for a method that takes an array of key/val pairs and returns an OrderedHash
stantonnet has quit [Ping timeout: 255 seconds]
<selva> Antiarc: http://apidock.com/rails/v2.3.8/ActiveSupport/OrderedHash it doesn't have much info
benlovell has joined #ruby
<Antiarc> ActiveSupport::OrderedHash[oh.sort.reverse.flatten(1)]
<Antiarc> err
<Antiarc> ActiveSupport::OrderedHash[*oh.sort.reverse.flatten(1)]
<Antiarc> That should do it
EllisTAA has quit [Quit: EllisTAA]
<Ox0dea> selva: It seems you have to explicitly request the OrderedHash's keys and work from there.
ruurd has joined #ruby
<Ox0dea> The #inspect representation might not be in order, but #keys will be.
EllisTAA has joined #ruby
prettiestPony11 has joined #ruby
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
weemsledeux has joined #ruby
parduse has quit []
<selva> Antiarc: even thats not working
<selva> >> ActiveSupport::OrderedHash[*oh.sort.reverse.flatten(1)]
<ruboto> selva # => uninitialized constant ActiveSupport (NameError) ...check link for more (https://eval.in/406932)
<selva> => #<OrderedHash {"place_entity_attributes"=>{"id"=>"123456"}, "secondary_entity_id"=>"169435"}>
<Antiarc> Did you require ActiveSupport?
<Antiarc> Oh, that was ruboto
benlovell has quit [Ping timeout: 250 seconds]
bootstrappm has left #ruby [#ruby]
<Antiarc> (Why do you need ordered hashes, out of curiosity? That *usually* means you're doing something you probably shouldn't be)
<selva> Ox0dea: I couldn't get your thoughts, could you pls explain in detail
eminencehc has joined #ruby
<selva> Antiarc: I am facing this issue https://github.com/rails/rails/issues/7256
<selva> In my application
<selva> lp={"place_entity_attributes"=>{ "id"=> "123456"}, "secondary_entity_id"=>"169435"}
parduse has joined #ruby
sinkensabe has joined #ruby
JoshL has quit []
pietr0 has joined #ruby
bootstrappm has joined #ruby
<arup_r> guys idea please
<selva> in the above part of Hash, if I have the secondary_entity_id attribute at first, the update_attributes process doesn't throw the error
momomomomo has joined #ruby
danman has quit [Quit: danman]
aevitas has joined #ruby
kokoleavia has joined #ruby
goldfax has joined #ruby
anisha has joined #ruby
<selva> Antiarc: I mean, I have scenario like in that github issue. When the application have secondary_entity_id at first it doesn't throw error. When it have secondary_entity_id at last, it throws error "ActiveRecord::RecordNotFound (Couldn't find PlaceEntity with ID=59790 for DiagnosticFacility with ID=):"
lkba has joined #ruby
tomaz_b has quit [Quit: Leaving]
<selva> So I wanted to keep the secondary_entity_id attribute first in the Hash
<dfockler> how the heck do I set a variable in one rspec test then use it in another rspec test?
<Antiarc> dfockler: You shouldn't; tests should be separate. Use let() to define values that are visible to to tests, though
kraljev11 has quit [Ping timeout: 272 seconds]
<Antiarc> selva: I'd suggest looking at the implementation to see how it's trying to extract the ID; I would be extremely surprised if it's actually order-dependent
danman has joined #ruby
aevitas_ has quit [Ping timeout: 246 seconds]
mrbeardy has quit [Ping timeout: 240 seconds]
TheHodge has quit [Quit: Connection closed for inactivity]
<selva> Antiarc: It was working good before, I have upgraded from 2.3.5 to 2.3.18 and it started throwing error only at times as i mentioned above
JoshL has joined #ruby
sp4rrow has joined #ruby
<selva> It works like charm when secondary_entity_id at first
hahuang65 has quit [Ping timeout: 260 seconds]
frem has joined #ruby
<selva> The implementation looks good, it has mentioned secondary_entity_id clearly
<selva> class DiagnosticFacility < Participation belongs_to :place_entity, :foreign_key => :secondary_entity_id
<selva> class DiagnosticFacility < Participation
<selva> belongs_to :place_entity, :foreign_key => :secondary_entity_id
fractalis has quit [Ping timeout: 250 seconds]
_blizzy_ has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
<Antiarc> The implementation of accepts_nested_attributes_for, I mean, in Rails
<shock_one> If you won't make a gem, I'll hate you.
<shock_one> (or will make it by myself).
<adaedra> doooo iiiiit
fractalis has joined #ruby
icharlie has quit [Remote host closed the connection]
EllisTAA has quit [Quit: EllisTAA]
parduse has quit []
sshuff|infcos is now known as sshuff|gone
<shock_one> I chose it because an underscore is used as an argument that doesn't mean anything, Ox0dea.
yaw has quit [Read error: Connection reset by peer]
<Ox0dea> shock_one: Go for it. The context class really oughtn't have any instance methods, though.
<shevy> The variable without a name.
scripore has quit [Quit: This computer has gone to sleep]
<Ox0dea> Not even __id__ or __send__, in case the user wants to use those.
chills42 has quit [Remote host closed the connection]
rdar has quit [Ping timeout: 244 seconds]
radgeRayden has quit [Ping timeout: 246 seconds]
<adaedra> shock_one: actually, _ alone has a bit of a special meaning.
<shock_one> adaedra: that's what I'm saying.
_ht has quit [Quit: Konversation terminated!]
benlovell has joined #ruby
goldfax has quit [Ping timeout: 246 seconds]
_blizzy_ has quit [Read error: Connection reset by peer]
<Ox0dea> shock_one: The Kernel method being _ doesn't interfere with it being used as a local identifier, for what that's worth.
galeido has quit [Ping timeout: 256 seconds]
last_staff has quit [Quit: last_staff]
weaksauce has quit [Quit: Textual IRC Client: www.textualapp.com]
<shock_one> Ox0dea: that's true, but it does interfere in people's minds.
<Bish> do i have to use mysql2 instead of mysql if i want utf8?
<Ox0dea> shock_one: Then again, here we are adding map chaining.
mwksl has quit [Ping timeout: 260 seconds]
The_Phoenix has quit [Quit: Leaving.]
sshuff|gone is now known as sshuff
galeido has joined #ruby
_blizzy_ has joined #ruby
<shock_one> Ox0dea: I didn't get it.
neonalpine has joined #ruby
ruby-lang839 has joined #ruby
<Ox0dea> shock_one: As pertains interfering in people's minds?
<shock_one> Ox0dea: How about the name block-booster?
<ruby-lang839> ??
<adaedra> !!
<Ox0dea> shock_one: Many Rubyists would be at least passing familiar with Underscore.js.
momomomomo has quit [Quit: momomomomo]
<Ox0dea> Not only does _ follow an established convention; it also has the benefit of not stealing an identifier.
<ruby-lang839> Im begin in ruby
<Ox0dea> ruby-lang839: Begin harder.
bootstrappm has quit [Ping timeout: 246 seconds]
hanmac has joined #ruby
<shock_one> Ox0dea: convinced.
ruby-lang839 has left #ruby [#ruby]
<Ox0dea> Yay! <3
<Ox0dea> I've considered adding additional functionality to Uberscore.
<adaedra> ruby-lang839 didn't last long
<shock_one> Ox0dea: tell me.
<Ox0dea> Well, #zipmap would be nice.
mwksl has joined #ruby
<craysiii> adaedra i noticed that too lol
<Ox0dea> shock_one: We have to say zip(foo).map { |a, b| a + b }, but I think zip(foo, &_.+) would be nice.
<craysiii> why just say youre a beginner and leave?
bootstrappm has joined #ruby
kokoleavia has quit [Ping timeout: 255 seconds]
momomomomo has joined #ruby
<Ox0dea> shock_one: Sorry, I meant #zip_with.
nettoweb has joined #ruby
codecop has quit [Remote host closed the connection]
<Ox0dea> It's been in consideration for quite some time, but we'll probably not get it.
<dfockler> #zipzap, it'll delete half of your array
<shock_one> Ox0dea: I'd like to have Hash#map_values, which isn't happening as well. Let's think of a more flexible way to construct such calls.
<Ox0dea> dfockler: Which half?
<dfockler> every other element
momomomomo has quit [Client Quit]
<Ox0dea> shock_one: We have all sorts of ways to allow the context class to determine how it's being used.
Blaguvest has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
bronson has quit [Remote host closed the connection]
kokoleavia has joined #ruby
atmosx has joined #ruby
<arup_r> suppose I have an array, and I want to group 3 elements there and want to check the total count how many 3 elements array exist there?
ndrei has joined #ruby
<arup_r> I tried something like
dseitz has joined #ruby
<arup_r> >> p (1..10).each_slice(3).count { |n| n.size == 3 }
<ruboto> arup_r # => 3 ...check link for more (https://eval.in/406946)
hahuang65 has joined #ruby
<arup_r> but it is o(n2)
tanath has left #ruby ["Leaving"]
prettiestPony11 has quit [Read error: Connection reset by peer]
<arup_r> any cool way to do the same ?
benlovell has quit [Ping timeout: 244 seconds]
<dfockler> >> (1..10).size / 3
<ruboto> dfockler # => 3 (https://eval.in/406947)
sargas has quit [Quit: This computer has gone to sleep]
romibuzi has joined #ruby
weaksauce has joined #ruby
dagda1 has joined #ruby
aevitas has quit []
wallerdev has joined #ruby
<arup_r> I knew I am a dumb
EllisTAA has joined #ruby
<arup_r> dfockler, thanks
<dfockler> haha it's cool
benlovell has joined #ruby
<dfockler> depending on ruby's #size implementation it could be O(1) or O(n)
<shock_one> Ox0dea: maybe it would be better to have automatic currying, as in Haskell?
sargas has joined #ruby
<shock_one> [1,2,3].zip([4,5,6]).map(+)
EllisTAA has quit [Client Quit]
<Vimz> Right. How am I supposed to spec a custom matcher? Here I'm testing 'eq' works correctly. All specs shoud pass: https://gist.github.com/anonymous/68bb8f4d37a70a12723c Only the first exception passes. The expectations that contain failing expectations fail because the expectation inside them fails and doesnt return anything for the outerspec to evaluate.
ndrei has quit [Ping timeout: 250 seconds]
sinkensabe has quit [Remote host closed the connection]
Igorshp has joined #ruby
Musashi007 has joined #ruby
ndrei has joined #ruby
<dfockler> shock_one: how would you handle arrays of different sizes?
ruurd has quit [Quit: ZZZzzz…]
tvw has quit [Remote host closed the connection]
<jhass> Vimz: you need to pass a block to expect
<acovrig> Is there any way (Xpath?) to find ‘a’ elements (mechanize) that have an href begining with “ViewAdmField”?
<jhass> expect { stuff that raises }.to
<shock_one> dfockler: if there are less elements that there are parameters, we return a curried function, if more - the last argument is the rest of elements.
cubicool has left #ruby [#ruby]
paulcsmith has joined #ruby
arooni-mobile has quit [Ping timeout: 246 seconds]
Axy has quit [Read error: Connection reset by peer]
romibuzi has quit []
Musashi007 has quit [Read error: No route to host]
safeforge has joined #ruby
Musashi007 has joined #ruby
romibuzi has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
yfeldblum has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
ramfjord has quit [Quit: leaving]
<Ox0dea> dfockler: Array#size is indeed O(1).
Musashi007 has quit [Client Quit]
<Ox0dea> shock_one: That's an interesting approach, but it'd require monkey-patching, which is double-plus-ungood.
Musashi007 has joined #ruby
<jhass> acovrig: yeah xpath has starts-with, a[starts-with(@href, "ViewAdmField")]
<Ox0dea> shock_one: Better to just make the context class really smart.
<jhass> er, single quotes I guess
kully3xf has joined #ruby
Mia has quit [Read error: Connection reset by peer]
atmosx has quit [Quit: Lost in trance]
DroidBurgundy has joined #ruby
Musashi007 has quit [Client Quit]
freerobby has joined #ruby
Musashi007 has joined #ruby
<kully3xf> how can I throw a switch into a command
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
<Vimz> jhass ah yes . thanksies
<kully3xf> I need to be able to throw in an additional flag to that command if there's an additional argument in the method
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
<acovrig> jhass: .search("//a[starts-with(@href, 'ViewEntity.aspx?EntityID=')]") returns 0, but I can see one on the page...
<jhass> kully3xf: some syntax highlighting would be great on that one
<kully3xf> is that possible? or should I jsut create an additional method
<kully3xf> ah sorry
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
<shock_one> Ox0dea: _ would break pry's last expression shortcut.
<jhass> acovrig: note that starts-with is very literal, no spaces, exact case etc
<acovrig> jhass: yes, HTML is <a href="/ViewEntity.aspx?EntityID=13940">Link-text-here</a>
benlovell has quit [Ping timeout: 240 seconds]
diegoviola has joined #ruby
<jhass> acovrig: so it starts with /View not View
<acovrig> jhass: yea, just noticed that, it works now; thanks
umgrosscol has quit [Remote host closed the connection]
<jhass> kully3xf: not sure I get your question
pkrueger has joined #ruby
<kully3xf> so I want to include another flag, "--json-attributes" but only if they are passed
<kully3xf> --json-attributes '{ \"pas\": { \"hostname\": \"#{instance[:hn]}\" } }' "
<kully3xf> but only if a user requests that be added
freerobby has quit [Ping timeout: 246 seconds]
<kully3xf> so "do you want to add json attributes? y" then it adds it, if not don't. Wondering if there's a way to include an if statement mid command, or if I should just create a different method depending on user input
Dreamer3 has joined #ruby
k3asd` has quit [Ping timeout: 246 seconds]
<jhass> >> add_a = true; add_b = false; "hey #{"aaa" if add_a}, ho #{"bbb" if add_b}"
<ruboto> jhass # => "hey aaa, ho " (https://eval.in/406969)
<jhass> kully3xf: ^ clear?
<kully3xf> cool I'll play around with that
<kully3xf> thanks
<kully3xf> ah I see so you can further evaluate a #{} statement
<kully3xf> I get it. Perfect, thanks
rideh has quit [Quit: zap]
<jhass> kully3xf: pretty much any Ruby is valid inside #{} even further #{} ;)
iwaffles has quit [Quit: iwaffles]
ndrei has quit [Read error: Connection reset by peer]
rideh has joined #ruby
ndrei has joined #ruby
duderonomy has joined #ruby
kokoleavia has quit [Ping timeout: 246 seconds]
neonalpine has quit []
rodfersou has quit [Ping timeout: 255 seconds]
sshuff is now known as sshuff|gone
rodfersou has joined #ruby
mollymorphic has joined #ruby
nahtnam has joined #ruby
Zarthus has quit [Quit: ZNC 1.7.x-git-196-5faaf67 - http://znc.in]
bronson has joined #ruby
Timba-as has joined #ruby
Zarthus has joined #ruby
f4cl3y has quit [Ping timeout: 246 seconds]
kully3xf has quit [Ping timeout: 252 seconds]
<Ox0dea> jhass: "Pretty much any"? What's not?
<jhass> I think we had this discussion before. I don't remember anything but I don't remember a definitive everything is allowed too
benlovell has joined #ruby
<Mon_Ouie> Something that uses __END__?
<jhass> not sure how you could even verify that
JoshL has quit []
<Ox0dea> >> "#{__END__}"
<ruboto> Ox0dea # => undefined local variable or method `__END__' for main:Object (NameError) ...check link for more (https://eval.in/406972)
<Ox0dea> Mon_Ouie: You're good.
jenrzzz has quit [Ping timeout: 244 seconds]
romibuzi has left #ruby [#ruby]
<Ox0dea> BEGIN is also invalid, but END and at_exit are copacetic.
quimrstorres has quit [Remote host closed the connection]
ruurd has joined #ruby
aryaching has quit [Ping timeout: 255 seconds]
riffraff has quit [Quit: This computer has gone to sleep]
dotix has joined #ruby
dotix has joined #ruby
<arup_r> I have an array like [4,5,6,0,1,2,3,4,5,6,0,1,3] .. the digits are week day number... Now I want to count how many [4,5,6] array is present in the long array.
<arup_r> What is the better way to find it ?
<Mon_Ouie> each_cons + count
safeforge has quit [Remote host closed the connection]
<arup_r> Mon_Ouie, that would't work
<Mon_Ouie> Why not?
lguardiola has quit [Quit: ZNC - http://znc.in]
<arup_r> You answered my question or someone else ? :)
ruby-lang787 has joined #ruby
<arup_r> If you answered me.. then that is not the solution of my question..
leafybasil has joined #ruby
benlovell has quit [Ping timeout: 244 seconds]
<jhass> arup_r: elaborate?
PaulCapestany has quit [Ping timeout: 255 seconds]
<arup_r> sure
r_baron has quit [Quit: Page closed]
<jhass> (on why it's not the solution)
<ruby-lang787> hello
<arup_r> How is it?
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
doertedev has quit [Ping timeout: 260 seconds]
<ruby-lang787> is anybody familiar with grape apis and ruby HTTP apis in general?
<jhass> so you didn't even consider it yet
<rippa> each_cons will iterate over each group of 3
rideh has quit [Quit: zap]
<jhass> >> [4,5,6,0,1,2,3,4,5,6,0,1,3].each_cons(3).count {|candidate| candidate == [4,5,6] }
<ruboto> jhass # => 2 (https://eval.in/406973)
<arup_r> one min
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Mon_Ouie has quit [Quit: WeeChat 1.2]
benlovell has joined #ruby
<jhass> ?anyone ruby-lang787
<ruboto> ruby-lang787, Just ask your question, if anyone has or can, they will respond.
Mon_Ouie has joined #ruby
<arup_r> sorry I was reading it as each_slice.. sorry
nertzy has quit [Remote host closed the connection]
lguardiola has joined #ruby
<ruby-lang787> i meant anybody. well my question is. what is a good way to load balance a grape ruby API
<ruby-lang787> ?
Matthew__ has quit [Read error: Connection reset by peer]
<ruby-lang787> and how sessions are handled when you are load balancing requests?
MatthewsFace has joined #ruby
FernandoBasso has joined #ruby
decoponio has quit [Quit: Leaving...]
nertzy has joined #ruby
nertzy has quit [Remote host closed the connection]
omegamike has quit [Remote host closed the connection]
jenrzzz has joined #ruby
Musashi007 has quit [Quit: Musashi007]
quimrstorres has joined #ruby
<shock_one> Ox0dea: enjoy. https://rubygems.org/gems/uberscore
j4cknewt has quit [Remote host closed the connection]
{756d6f} has quit [Ping timeout: 240 seconds]
jsaak has joined #ruby
NeverDie has joined #ruby
j4cknewt has joined #ruby
bmurt has quit []
Blaguvest has quit []
rapha has left #ruby ["WeeChat 1.2"]
dagda1_ has joined #ruby
wldcordeiro has joined #ruby
benlovell has quit [Ping timeout: 260 seconds]
danman_ has joined #ruby
Xiti has quit [Quit: Xiti]
senayar has joined #ruby
Igorshp has quit [Remote host closed the connection]
adgtl has joined #ruby
NeverDie has quit [Max SendQ exceeded]
sinkensabe has joined #ruby
danman_ has quit [Client Quit]
<adgtl> And open for contribution https://github.com/anildigital/ruby-operators
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
adgtl has quit [Client Quit]
danman has quit [Ping timeout: 246 seconds]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
NeverDie has joined #ruby
quimrstorres has quit [Remote host closed the connection]
snophey has quit [Remote host closed the connection]
scripore has joined #ruby
rodfersou has quit [Quit: leaving]
PhantomSpank has joined #ruby
<Ox0dea> Why didn't he stick around? :/
<Ox0dea> !~ should totally be called the bangarang.
danman has joined #ruby
khebbie_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Remote host closed the connection]
blaines has joined #ruby
<bootstrappm> agreed Ox0dea, looked like a cool idea
doertedev has joined #ruby
<Ox0dea> Can't think of anything clever for &&=, though.
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bootstrappm> kinda looks like eyes an a nose
<bootstrappm> &&= the platypus
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bootstrappm> what's the twiddle wakka do?
<bootstrappm> ~>
<dfockler> two pretzels and a burger
doertedev has quit [Client Quit]
<RickHull> bootstrappm: version constraints
<Ox0dea> bootstrappm: It's for specifying "pessimistic" dependencies.
<bootstrappm> anything else?
<RickHull> x ~> 1.0 (matches 1.anything but not 2.x)
<Ox0dea> Nope.
<bootstrappm> gotcha
<bootstrappm> because thats bundler that parses that right? not a part of the ruby lang?
<RickHull> it's a gem thing
<Ox0dea> But isn't it a syntax error in Ruby?
<RickHull> ah, i think so
Xiti has joined #ruby
<Ox0dea> You can pretty much arbitrarily chain the four unary operators, but > isn't one of them.
pauly_oc has joined #ruby
ldnunes has quit [Quit: Leaving]
solars has quit [Ping timeout: 255 seconds]
arooni-mobile has joined #ruby
Jarboe has quit []
FernandoBasso has quit [Quit: WeeChat 1.2]
benlovell has joined #ruby
FernandoBasso has joined #ruby
NeverDie has quit [Quit: Textual IRC Client: www.textualapp.com]
diegoviola has quit [Quit: WeeChat 1.2]
dEPy has quit [Quit: (null)]
prefixed has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
zanloy has joined #ruby
pietr0_ has joined #ruby
NeverDie has joined #ruby
higuys has quit []
gambl0re has joined #ruby
benlovell has quit [Ping timeout: 252 seconds]
glenn_ has quit [Quit: Konversation terminated!]
nettoweb has joined #ruby
anisha has quit [Quit: Leaving]
pietr0 has quit [Ping timeout: 250 seconds]
pietr0_ is now known as pietr0
NeverDie has quit [Client Quit]
theery has quit [Remote host closed the connection]
swgillespie has joined #ruby
jsrn has quit [Ping timeout: 246 seconds]
iwaffles has joined #ruby
Helheim has quit [Ping timeout: 252 seconds]
Musashi007 has joined #ruby
shock_one has quit [Remote host closed the connection]
webopsx has joined #ruby
dotix has quit [Quit: Leaving]
danman has quit [Quit: danman]
_djbkd has quit [Quit: My people need me...]
nettoweb has quit [Max SendQ exceeded]
kirun has quit [Quit: Client exiting]
bruno- has joined #ruby
rcvalle has quit [Quit: rcvalle]
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quimrstorres has joined #ruby
nettoweb has joined #ruby
tuxtgz has joined #ruby
Igorshp has joined #ruby
EagleDelta has joined #ruby
quimrstorres has quit [Remote host closed the connection]
Helheim has joined #ruby
bruno- has quit [Ping timeout: 265 seconds]
quimrstorres has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
arup_r has quit [Quit: Leaving]
bruno- has joined #ruby
dimasg has joined #ruby
pengin has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
[Butch] has quit [Quit: Linkinus - http://linkinus.com]
Mon_Ouie has quit [Quit: WeeChat 1.2]
sp4rrow has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
allomov has quit [Remote host closed the connection]
shock_one has joined #ruby
DroidBurgundy has quit []
sdwrage has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
bruno- has joined #ruby
mbeasley_ has joined #ruby
user1138 has joined #ruby
Igorshp has quit [Remote host closed the connection]
allcentury has quit [Ping timeout: 265 seconds]
mbeasley_ has left #ruby [#ruby]
f4cl3y has joined #ruby
f4cl3y has joined #ruby
ascarter has joined #ruby
towski_ has quit [Remote host closed the connection]
towski_ has joined #ruby
_blizzy_ has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 244 seconds]
mary5030 has quit [Remote host closed the connection]
rcvalle has joined #ruby
Emmanuel_Chanel has joined #ruby
benlovell has joined #ruby
bruno- has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
beef-wellington has quit [Ping timeout: 265 seconds]
senayar has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
freerobby has joined #ruby
Trynemjoel has quit [Ping timeout: 256 seconds]
dimasg has quit [Ping timeout: 264 seconds]
theery has joined #ruby
leesharma has quit [Ping timeout: 246 seconds]
paulcsmith has quit [Quit: Be back later ...]
paulcsmith has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
Trynemjoel has joined #ruby
bruno- has quit [Ping timeout: 256 seconds]
ramfjord has joined #ruby
mwksl has quit [Quit: Lost terminal]
Jackneill has quit [Remote host closed the connection]
bruno- has joined #ruby
njs126 has quit [Quit: Leaving]
s00pcan has quit [Ping timeout: 256 seconds]
Musashi007 has quit [Quit: Musashi007]
kakusu has quit [Changing host]
kakusu has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
arooni-mobile has quit [Ping timeout: 244 seconds]
s00pcan has joined #ruby
Yzguy has joined #ruby
ddarkpassenger has joined #ruby
theery has quit []
paulcsmith has quit [Quit: Be back later ...]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goldfax has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.2]
pengin has joined #ruby
FernandoBasso has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dopie has joined #ruby
mleung has joined #ruby
benlovell has joined #ruby
user1138 has quit [Quit: Leaving]
EagleDelta has quit [Remote host closed the connection]
user1138 has joined #ruby
victortyau has quit [Quit: Leaving]
omegamike has joined #ruby
senayar has joined #ruby
swgillespie has joined #ruby
ruurd has joined #ruby
Ilyas has quit [Read error: Connection reset by peer]
Timba-as has quit [Quit: Be back later ...]
stantonnet has joined #ruby
ascarter has joined #ruby
leesharma has joined #ruby
Soda has quit [Remote host closed the connection]
n_blownapart has joined #ruby
sinkensabe has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
benlovell has quit [Ping timeout: 264 seconds]
tennis has quit [Remote host closed the connection]
gamename has joined #ruby
omegamike has quit [Ping timeout: 265 seconds]
kies^ has quit [Ping timeout: 260 seconds]
xkickflip has joined #ruby
khebbie has joined #ruby
mdavid613 has quit [Quit: Leaving.]
uri_ has joined #ruby
blaines has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Muhannad has quit [Ping timeout: 260 seconds]
gamename has quit [Ping timeout: 272 seconds]
mdavid613 has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ruurd has quit [Quit: ZZZzzz…]
ascarter has joined #ruby
khebbie has quit [Ping timeout: 272 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benlovell has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
ruurd has joined #ruby
leesharma has quit [Ping timeout: 244 seconds]
rcvalle has quit [Quit: rcvalle]
leesharma has joined #ruby
lannonbr has quit [Quit: WeeChat 1.2]
texasmade has joined #ruby
_blizzy_ has joined #ruby
svdb64 has quit [Ping timeout: 252 seconds]
arooni-mobile has joined #ruby
neanderslob has joined #ruby
snockerton has quit [Quit: Leaving.]
benlovell has quit [Ping timeout: 244 seconds]
_djbkd has joined #ruby
blaines has joined #ruby
_blizzy_ has quit [Read error: Connection reset by peer]
surs has quit [Ping timeout: 244 seconds]
Muhannad has joined #ruby
mleung has quit [Quit: mleung]
zendrix has joined #ruby
devdazed has quit [Ping timeout: 244 seconds]
wldcordeiro has quit [Read error: Connection reset by peer]
_blizzy_ has joined #ruby
wldcordeiro has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
leesharma has quit [Ping timeout: 265 seconds]
bruno- has quit [Ping timeout: 246 seconds]
Sypheren has joined #ruby
blaines has quit [Ping timeout: 255 seconds]
Contigi has quit [Quit: Leaving]
ryanprior has quit [Remote host closed the connection]
freerobby has joined #ruby
rcvalle has joined #ruby
surs has joined #ruby
wldcordeiro has quit [Client Quit]
mary5030 has joined #ruby
svdb64 has joined #ruby
calleerlandsson has quit [Quit: Connection closed for inactivity]
decaff_ has joined #ruby
senayar has quit [Remote host closed the connection]
sdwrage has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
decaff_ has quit [Client Quit]
Sypheren has quit [Ping timeout: 272 seconds]
Zai00 has quit [Quit: Zai00]
modern has joined #ruby
casadei_ has quit [Remote host closed the connection]
leesharma has joined #ruby
jsrn_ has joined #ruby
Sypheren has joined #ruby
michaeldeol has joined #ruby
centrx has quit [Quit: 'Get out, you and all the people who follow you!' Then he went out from Pharaoh in hot anger.]
sp4rrow has quit [Quit: Textual IRC Client: www.textualapp.com]
willywos has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pengin_ has joined #ruby
dorei has joined #ruby
whippythellama has quit [Quit: WeeChat 1.2]
axl_ has quit [Quit: axl_]
pengin has quit [Ping timeout: 244 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
scripore has joined #ruby
Sypheren has quit [Ping timeout: 250 seconds]
pengin_ has quit [Remote host closed the connection]
lannonbr has joined #ruby
[k- has quit [Ping timeout: 264 seconds]
mleung has joined #ruby
dopie has quit [Quit: This computer has gone to sleep]
bruno- has joined #ruby
chipotle has quit [Quit: cheerio]
mleung has quit [Client Quit]
havenwood has quit [Read error: Connection reset by peer]
MatthewsFace has quit [Remote host closed the connection]
bruno- has quit [Ping timeout: 246 seconds]
fractalis has quit [Ping timeout: 264 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sypheren has joined #ruby
Stany has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
Tamae has quit [Ping timeout: 244 seconds]
dseitz has joined #ruby
neoseeker has joined #ruby
Yzguy has quit [Quit: Zzz...]
icebourg has quit []
nb_bez___ has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
<acovrig> Is it possible to clear a ncurses window without clearing the entire screen?
mary5030 has quit [Ping timeout: 246 seconds]
NeverDie has joined #ruby
<Ox0dea> acovrig: Using ncurses-ruby?
<acovrig> Ox0dea: yes
Channel6 has quit [Quit: Leaving]
<Ox0dea> acovrig: Ncurses.erase should do it.
paulcsmith has joined #ruby
<Ox0dea> Or Ncurses.werase(foo) if you want to clear a specific window.
n_blownapart has quit []
Vile` has quit [Ping timeout: 264 seconds]
Sypheren has quit [Ping timeout: 265 seconds]
<acovrig> It seems to have been where I called my clear, werase seems to do the same as clear… but if I move my clear up and redraw the 2nd window it works OK
Vile` has joined #ruby
carlosoliveira has quit [Quit: Connection closed for inactivity]
<shevy> tis the reason for curses as part of the name
<acovrig> shevy: yea, but I get the feeling it’s the easiest way to have a status window on top of the output
Sypheren has joined #ruby
werelivinginthef has joined #ruby
<Ox0dea> acovrig: Are you threaded?
acovrig has quit [Quit: acovrig]
PaulCapestany has joined #ruby
s00pcan has quit [Quit: Lost terminal]
surs has quit [Ping timeout: 265 seconds]
casadei_ has joined #ruby
paulcsmith has quit [Ping timeout: 244 seconds]
FernandoBasso has quit [Quit: May the force be with you.]
surs has joined #ruby
sargas has joined #ruby
sargas has quit [Max SendQ exceeded]
nobitanobi has quit [Read error: Connection reset by peer]
hahuang65 has quit [Ping timeout: 256 seconds]
nobitanobi has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Alayde has quit [Ping timeout: 252 seconds]
nobitanobi has quit [Remote host closed the connection]
Sypheren has quit [Ping timeout: 255 seconds]
jobewan has quit [Quit: Leaving]
goldfax has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
paulcsmith has joined #ruby
<craysiii> does ruby have something like rspec's let built in?
freerobby has quit [Quit: Leaving.]
<Ox0dea> craysiii: How do you mean?
Sypheren has joined #ruby
Dreamer3 has quit [Read error: Connection reset by peer]
PaulCapestany has quit [Quit: .]
decaff_ has joined #ruby
Dreamer3 has joined #ruby
decaff_ has quit [Client Quit]
PaulCapestany has joined #ruby
<craysiii> ill ask later after i've thought about it more and formulated a coherent question.
ddarkpassenger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roolo has quit [Remote host closed the connection]
dgutierrez1287 has joined #ruby
thiagovsk has quit [Quit: Connection closed for inactivity]
Salve has quit []
spider-mario has quit [Remote host closed the connection]
leesharma has quit [Ping timeout: 264 seconds]
dgutierrez1287 has quit [Ping timeout: 256 seconds]
Sypheren has quit [Ping timeout: 265 seconds]
webopsx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
j4cknewt has quit [Remote host closed the connection]
rcvalle has quit [Quit: rcvalle]
weemsledeux has joined #ruby
j4cknewt has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Stany has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
GeissT has joined #ruby
deepu has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
dfockler has quit [Remote host closed the connection]
deepu has joined #ruby
prestorium has quit [Quit: Konversation terminated!]
podman has quit [Quit: Connection closed for inactivity]
bootstrappm has quit [Read error: Connection reset by peer]
ivanskie has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
paulcsmith has joined #ruby
Musashi007 has joined #ruby
cornerma1 has joined #ruby
darithorn has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 240 seconds]
cornerman has quit [Ping timeout: 260 seconds]
cornerma1 is now known as cornerman
ddarkpassenger has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
jenrzzz has joined #ruby
michael_mbp has quit [Excess Flood]
baweaver has quit [Remote host closed the connection]
diegoviola has joined #ruby
nobitanobi has joined #ruby
bruno- has joined #ruby
webopsx has joined #ruby
svdb64 has quit [Quit: WeeChat 1.2]
senayar has joined #ruby
rehat has quit [Remote host closed the connection]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has joined #ruby
xcyclist has joined #ruby
benlieb has quit [Quit: benlieb]
bruno- has quit [Ping timeout: 240 seconds]
<xcyclist> I am trying to do a simple hello world on cygwin, and it's yelling at me about rubygems and require, of all things. What's with that? It's just a two line hello.rb?
juanpablo___ has quit [Quit: (null)]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
bruno- has joined #ruby
<xcyclist> All I have is #/usr/bin/ruby<LF>puts "Hello, world."<lf>
juanpablo___ has joined #ruby
MatthewsFace has joined #ruby
quimrstorres has quit [Remote host closed the connection]
jenrzzz_ has joined #ruby
willywos has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
juanpablo____ has joined #ruby
omegamike has joined #ruby
blaines has joined #ruby
juanpablo___ has quit [Read error: Connection reset by peer]
nveselinov has quit [Quit: Connection closed for inactivity]
Ropeney has joined #ruby
<Ox0dea> xcyclist: Please post the exact admonishment you're receiving.
workmad3 has quit [Ping timeout: 250 seconds]
shock_one has quit [Remote host closed the connection]
ivanskie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rcvalle has joined #ruby
leesharma has joined #ruby
juanpablo____ has quit [Ping timeout: 240 seconds]
neoseeker has quit [Remote host closed the connection]
diegoviola has quit [Remote host closed the connection]
drew0 has quit [Ping timeout: 272 seconds]
willywos has quit [Ping timeout: 255 seconds]
benlieb has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
omegamike has quit [Ping timeout: 272 seconds]
arooni-mobile has quit [Ping timeout: 246 seconds]
<shevy> xcyclist can you start irb?
marr has quit []
mary5030 has joined #ruby