havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.1; 2.2.5; 2.1.9: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || logs @ http://irclog.whitequark.org/ruby/
startupality has quit [Quit: startupality]
<zacts> shevy: I'm at ch 13 / 15 of Head First Ruby, I think I'm going to finish it within the next few hours
arlek has joined #ruby
<zacts> I'm starting poodr tomorrow. making progress! (then I have to write a bunch of ruby apps)
<zacts> (nothing substitutes for that)
yfeldblum has joined #ruby
ropeney has joined #ruby
mynameisbrian has quit [Quit: Leaving]
ixti has quit [Quit: WeeChat 1.5]
<zacts> my summer college class starts tomorrow too, but I can do this. I'm optimistic
jancel has joined #ruby
RegulationD has joined #ruby
stannard has joined #ruby
y3 has joined #ruby
LoneHermit has joined #ruby
rkazak has joined #ruby
<shevy> zacts haha... I am reading boring science related .pdf files right now. the sooner I finish with this boring crap the better
jancel has quit [Ping timeout: 240 seconds]
stannard has quit [Ping timeout: 244 seconds]
y3 has quit [Client Quit]
RegulationD has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
Guest43 has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has quit [Ping timeout: 246 seconds]
saneax is now known as saneax_AFK
rkazak has quit [Quit: Sleep.....ing....]
stannard has joined #ruby
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
m_antis has joined #ruby
roamingdog has joined #ruby
TomyLobo has quit [Ping timeout: 260 seconds]
<zacts> heh, lol
trinaldi has quit [Quit: WeeChat 1.6-dev]
nerium has joined #ruby
<nerium> Is there a way load dependencies depending on current Ruby version in gemspec?
<bazzy> need help on making it more idiomatic. Pay attention to calls to the Helper module from the end of the code (Hooks)
Elvin has joined #ruby
jackjackdripper has joined #ruby
LaT0rtue has joined #ruby
LaT0rtue has quit [Client Quit]
pawnbox has joined #ruby
SubjectiveBias has joined #ruby
marr has quit [Remote host closed the connection]
allcentury has joined #ruby
idefine has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
idefine has joined #ruby
chip_ has quit [Ping timeout: 276 seconds]
idefine has quit [Remote host closed the connection]
nawn has joined #ruby
xall has quit [Ping timeout: 260 seconds]
PlasmaStar has quit [Ping timeout: 250 seconds]
Coldblackice has joined #ruby
sneakerhax has quit [Ping timeout: 276 seconds]
PlasmaStar has joined #ruby
idefine has joined #ruby
Puffball has quit [Remote host closed the connection]
symm- has quit [Ping timeout: 246 seconds]
Puffball has joined #ruby
pat__ has quit [Ping timeout: 240 seconds]
Yzguy has joined #ruby
noobsu has joined #ruby
ramfjord has joined #ruby
smathy is now known as smathy_afk
<bazzy> apeiros, ping
domgetter has joined #ruby
<domgetter> You here, shevy ?
smathy_afk is now known as smathy
nerium has quit [Quit: nerium]
nawn has quit [Remote host closed the connection]
<Arcaire> shevrolet
ekinmur has joined #ruby
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
idefine has quit [Ping timeout: 250 seconds]
wigust has joined #ruby
vipaca has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
noobsu has quit [Read error: Connection reset by peer]
noobsu has joined #ruby
pat__ has joined #ruby
nerium has joined #ruby
jaguarmagenta has joined #ruby
idefine has joined #ruby
<claw> http://paste.debian.net/684187/ can anybody tell me why this is slow ? is it my implementation or is it net-ssh ? i get almost 100% cpu usage. ( copies random data over sftp to a remote server ) i get 800-1000kB/s
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
halfamind has joined #ruby
<claw> on 1Gbit ethernet. looks like the cpu is the bottleneck
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
wigust has quit [Remote host closed the connection]
wigust has joined #ruby
idefine has quit [Remote host closed the connection]
jaguarmagenta has quit [Ping timeout: 260 seconds]
stardiviner has quit [Ping timeout: 276 seconds]
rbennace_ has joined #ruby
mtkd has quit [Ping timeout: 244 seconds]
noobsu has quit [Read error: Connection reset by peer]
noobsu has joined #ruby
mtkd has joined #ruby
skweek has quit [Remote host closed the connection]
idefine has joined #ruby
rbennacer has quit [Ping timeout: 260 seconds]
skweek has joined #ruby
mynameisbrian has joined #ruby
A5101 has joined #ruby
mynameisbrian has quit [Client Quit]
<shevy> domgetter semi... sort halfway sleeping
<domgetter> lol I wanted to show you a new gem I made
d0nn1e has quit [Ping timeout: 246 seconds]
<domgetter> It's a multi-client, multi-runtime repl server, and I'm using it to send ruby expressions and print them out in vim
<TheMoonMaster> domgetter: In your readme, ```vim`
<TheMoonMaster> I think
<TheMoonMaster> erm, ```viml maybe
stardiviner has joined #ruby
<shevy> hmm what does multi runtime mean?
<shevy> I may not understand it today though, will have to reread after sleep
noobsu has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: brb]
d0nn1e has joined #ruby
wigust has quit [Quit: Leaving]
noobsu has joined #ruby
<TheMoonMaster> shevy: I don't know either tbf.
<domgetter> shevy: it can manage different runtimes to evaluate incoming expressions. Well, not yet, but it would be able to, say, take an incoming javascript expression and send it to a node runtime
RegulationD has joined #ruby
noobsu has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 276 seconds]
stannard has quit [Remote host closed the connection]
oetjenj has quit [Ping timeout: 260 seconds]
RegulationD has quit [Ping timeout: 260 seconds]
<domgetter> TheMoonMaster: it was ```vim thanks :)
xall has joined #ruby
nankyokusei has joined #ruby
oetjenj has joined #ruby
<shevy> hmm
nankyokusei has quit [Ping timeout: 252 seconds]
pawnbox has joined #ruby
xall has quit [Ping timeout: 260 seconds]
<domgetter> I was envious of the lisp and clojure folks who were sending forms to their nREPL servers and I figured we could set something up similar in Ruby
pawnbox has quit [Ping timeout: 244 seconds]
zast has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
cdg has joined #ruby
jancel has joined #ruby
idefine has joined #ruby
gambl0re has joined #ruby
<gambl0re> which language is easier to learn, ruby or php, rails vs laravel
blaxter has quit [Read error: Connection reset by peer]
Yzguy has quit [Quit: Zzz...]
<nerium> Can anyone explain why it tries to checkout this commit? https://travis-ci.org/oleander/git-fame-rb/jobs/130475142
ecksit has joined #ruby
jancel has quit [Ping timeout: 250 seconds]
stardiviner has quit [Ping timeout: 276 seconds]
gambl0re has left #ruby [#ruby]
arlek has quit [Ping timeout: 244 seconds]
joneshf-laptop has quit [Ping timeout: 246 seconds]
wnd has quit [Excess Flood]
wnd has joined #ruby
Devalo has joined #ruby
stardiviner has joined #ruby
<zacts> shevy: music sometimes helps me with boring reading
jackjackdripper has quit [Quit: Leaving.]
<zacts> and this pomodoro technique http://pomodorotechnique.com
<zacts> almost done with this ruby book! =)
`tim` has joined #ruby
jenrzzz has joined #ruby
GodFather has quit [Remote host closed the connection]
joelwallis has joined #ruby
Devalo has quit [Read error: Connection reset by peer]
<joelwallis> Are Ruby blocks executed asynchronous?
<domgetter> joelwallis: no
Devalo has joined #ruby
kgrz has joined #ruby
<joelwallis> If I have a method call that receives a block, the lines below it will be executed only after that block gets executed?
<domgetter> joelwallis: yes
<joelwallis> domgetter, newbie here. btw, ty for helping!
idefine_ has joined #ruby
<domgetter> An exception to this rule is the block you pass to Thread.new
idefine has quit [Read error: Connection reset by peer]
Devalo has quit [Read error: Connection reset by peer]
<domgetter> But unless you're doing async explicitly, it will block, yes
jenrzzz has quit [Ping timeout: 244 seconds]
Devalo has joined #ruby
<joelwallis> roger
halfamind has quit [Quit: Leaving.]
LoneHermit has quit [Remote host closed the connection]
houhoulis has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 276 seconds]
xall has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
rkazak has joined #ruby
<bazzy> I am dealing with a plugin system.. where each plugin can access a hash called `config` .. I'd like to implement some kind of access layer that defines which keys are required to exist so that I can raise errors when they don't .. i only have that concept and was wondering if it would interest anyone to flesh it out .. I of course will be figuring it out too based on response
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<bazzy> What I haven't figured out yet is if it's best to implement a new system which requires a redesign of this config hash accesses .. or if I can somehow "transparently" implement the layer
The_Phoenix has joined #ruby
<bazzy> Considering that per plugin class definition, the list of required and optional config hash keys will change
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
<bazzy> The plugin config hash is based on a pre-existing framework .. I'm open to modifying it but preliminarily against it
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
Biopandemic has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
smathy is now known as smathy_afk
The_Phoenix has quit [Max SendQ exceeded]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
p1k has joined #ruby
bronson has joined #ruby
stardiviner has quit [Ping timeout: 265 seconds]
Kallis has quit [Quit: Leaving]
quazimod1 has quit [Quit: leaving]
bronson has quit [Ping timeout: 252 seconds]
tmtwd has joined #ruby
idefine_ has quit [Ping timeout: 250 seconds]
rbennace_ has quit [Remote host closed the connection]
idefine has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
blackmesa has joined #ruby
yaewa has joined #ruby
moei has quit [Ping timeout: 246 seconds]
rbennacer has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
dsea has quit [Read error: Connection reset by peer]
jokester has quit [Quit: enabling selinux]
blackmesa has quit [Ping timeout: 240 seconds]
jaguarmagenta has joined #ruby
dsea has joined #ruby
czerasz has quit [Quit: Ex-Chat]
czerasz has joined #ruby
chip_ has joined #ruby
capsloth has joined #ruby
p1k has quit [Read error: Connection reset by peer]
idefine has quit [Ping timeout: 250 seconds]
idefine has joined #ruby
capsloth has left #ruby ["Leaving"]
braincrash has quit [Quit: bye bye]
<nerium> Is there a way to combine this into one? "%5s" % ("%.2f" % 1.0)
Elvin has quit [Quit: Textual IRC Client: www.textualapp.com]
codeurge has joined #ruby
Madplatypus has quit [Quit: Connection closed for inactivity]
alex__ has joined #ruby
stardiviner has joined #ruby
alex__ has left #ruby [#ruby]
braincras has joined #ruby
|2701 has quit [Quit: Connection closed for inactivity]
jenrzzz has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
gix has quit [Ping timeout: 276 seconds]
arescorpio has joined #ruby
halfamind has joined #ruby
zast has left #ruby [#ruby]
pawnbox has joined #ruby
gix has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
idefine has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
halfamind has quit [Quit: Leaving.]
pawnbox has quit [Ping timeout: 250 seconds]
moeabdol has joined #ruby
yqt has quit [Ping timeout: 265 seconds]
m_antis has quit [Ping timeout: 244 seconds]
smathy_afk has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joelwallis has quit [Quit: Leaving]
bruno- has quit [Quit: leaving]
jtd has joined #ruby
chrisja has quit [Quit: leaving]
joneshf-laptop has joined #ruby
d0lph1n98 has joined #ruby
czerasz has quit [Ping timeout: 244 seconds]
statelesscode has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roamingdog has quit [Remote host closed the connection]
pawnbox has joined #ruby
lxsameer has joined #ruby
pawnbox has quit [Remote host closed the connection]
stannard has joined #ruby
pawnbox has joined #ruby
agent_white has joined #ruby
wnd has quit [Excess Flood]
wnd has joined #ruby
idefine has quit [Ping timeout: 252 seconds]
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zenlot has joined #ruby
aeterne has quit [Read error: Connection reset by peer]
zenlot6 has quit [Ping timeout: 246 seconds]
idefine has joined #ruby
stannard has quit [Ping timeout: 252 seconds]
vdamewood has quit [Quit: Life beckons.]
idefine has quit [Remote host closed the connection]
moeabdol has quit [Ping timeout: 260 seconds]
idefine has joined #ruby
allcentury has quit [Ping timeout: 244 seconds]
johnny56_ has joined #ruby
LoneHermit has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
idefine has quit [Ping timeout: 250 seconds]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
codeurge has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jancel has joined #ruby
Rickmast_ has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
oetjenj has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rickmasta has quit [Ping timeout: 240 seconds]
rbennacer has quit [Remote host closed the connection]
cdg has quit [Remote host closed the connection]
roamingdog has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
jancel has quit [Ping timeout: 252 seconds]
chopin has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
codeurge has joined #ruby
jokester has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
pawnbox has joined #ruby
dionysus69 has joined #ruby
shakes has quit [Quit: Leaving]
sarlalian has quit [Ping timeout: 252 seconds]
jaguarmagenta has joined #ruby
jobewan has joined #ruby
hk238 has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
eljimador has quit [Quit: Leaving]
sarlalian has joined #ruby
jenrzzz has joined #ruby
idefine has joined #ruby
SubjectiveBias has quit [Ping timeout: 246 seconds]
Devalo has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
idefine has quit [Ping timeout: 276 seconds]
Devalo has quit [Ping timeout: 244 seconds]
SubjectiveBias has joined #ruby
d0lph1n98 has quit [Ping timeout: 260 seconds]
jobewan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mynameisbrian has joined #ruby
SubjectiveBias has quit [Quit: Lost terminal]
dionysus69 has quit [Remote host closed the connection]
<mynameisbrian> if I do: c = Proc.new { |num| num * 2 }
<mynameisbrian> shouldn't I have to use: &c to pass it?
<mynameisbrian> for some reason I get an error
<mynameisbrian> I'm using 2.0
dionysus69 has joined #ruby
kareeoleez has joined #ruby
<mynameisbrian> I can just pass it normally using c
mr_robot_ has quit [Quit: Textual IRC Client: www.textualapp.com]
bronson has joined #ruby
<ropeney> mynameisbrian, I believe & is only required when passing blocks?
<mynameisbrian> I'm seeing tutorials saying to pass procs that way
shinnya has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
d0lph1n98 has joined #ruby
ledestin has joined #ruby
Vile` has quit [Ping timeout: 276 seconds]
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin_ has joined #ruby
blackmesa has joined #ruby
dionysus69 has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 244 seconds]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rhastra has joined #ruby
jaiks1 has quit [Ping timeout: 276 seconds]
codeurge has quit [Ping timeout: 240 seconds]
rhastra has quit [Quit: leaving]
jokester has quit [Quit: fleed in panic]
rhastra has joined #ruby
akiTendo has joined #ruby
jokester has joined #ruby
rhastra has quit [Client Quit]
idefine has joined #ruby
jaiks1 has joined #ruby
whathappens has joined #ruby
janebootydoe has joined #ruby
idefine has quit [Ping timeout: 250 seconds]
saneax_AFK is now known as saneax
chip_ has quit [Ping timeout: 246 seconds]
kareeoleez has joined #ruby
konsolebox has joined #ruby
kareeoleez has quit [Remote host closed the connection]
whathappens has quit [Remote host closed the connection]
roamingdog has quit [Read error: Connection reset by peer]
kareeoleez has joined #ruby
roamingdog has joined #ruby
nerium has quit [Quit: nerium]
whathappens has joined #ruby
SilverKey has joined #ruby
johnDoe111 has joined #ruby
Coldblackice has quit [Ping timeout: 265 seconds]
<mynameisbrian> Ropeney, if you're still there, thanks
whathappens has quit [Ping timeout: 252 seconds]
<mynameisbrian> that link explained everything.
<ropeney> np :D
<mynameisbrian> passed it as first argument, and I see that the & is optional
harry111 has joined #ruby
coyo has joined #ruby
coyo has joined #ruby
blackgoat has joined #ruby
rkazak has joined #ruby
raeoks has joined #ruby
nankyokusei has joined #ruby
nankyokusei has quit [Ping timeout: 244 seconds]
kirillow has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
akiTendo has quit [Quit: akiTendo]
duncannz has joined #ruby
roamingdog has quit [Remote host closed the connection]
roamingdog has joined #ruby
LoneHermit has quit [Remote host closed the connection]
<kirillow> could someone please take a look at this https://gist.github.com/anonymous/cc7ffd05bf8dd59b96a03bc23b2462db
<kirillow> and explain to me why index.slim is able to access @posts but layout.slim can not access @config?
<kirillow> `NoMethodError: undefined method `[]' for nil:NilClass`
blackmesa has joined #ruby
sarlalian has quit [Ping timeout: 252 seconds]
<havenwood> kirillow: An aside, but you're not closing those files. Consider `File.read` or the block form of `File.open` that's self-closing.
terminalrecluse has joined #ruby
<kirillow> thanks i will take a look
<havenwood> kirillow: `YAML.load` is the usual way to write it in the actual coad.
<havenwood> code*
sarlalian has joined #ruby
nischay has joined #ruby
bobbycvi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackmesa has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 250 seconds]
beauby has joined #ruby
SilverKey has quit [Quit: Halted.]
moeabdol has joined #ruby
<beauby> Hi there. When building a gem, is there a recommended way to add "optional methods" (i.e. methods that will get defined *only* if some constant is defined at runtime (say ActionController for instance))?
tmtwd has quit [Ping timeout: 244 seconds]
kgrz has quit [Ping timeout: 265 seconds]
freija_ has joined #ruby
xue has joined #ruby
navneet_ has joined #ruby
kgrz has joined #ruby
emilkarl has joined #ruby
janebootydoe has quit [Quit: Leaving]
ecksit has quit [Ping timeout: 246 seconds]
johnDoe111 has quit [Remote host closed the connection]
roamingdog has quit [Remote host closed the connection]
Tohuw has quit [Quit: Textual IRC Client: www.textualapp.com]
jenrzzz has joined #ruby
blingrang has quit [Quit: WeeChat 1.3]
flughafen_ has joined #ruby
freija_ has quit [Quit: freija_]
yfeldblum has joined #ruby
Devalo has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
freija_ has joined #ruby
freija has joined #ruby
s00pcan has quit [Remote host closed the connection]
yqt has joined #ruby
Devalo has quit [Ping timeout: 246 seconds]
hakunin_ has joined #ruby
hakunin has quit [Read error: Connection reset by peer]
<havenwood> beauby: You can just use an if statement with a normal `def` method.
firstdayonthejob has joined #ruby
<havenwood> >> if defined? ActionController; def kapow; :oomph end end
<ruby[bot]> havenwood: # => nil (https://eval.in/571978)
M570 has joined #ruby
hakunin_ has quit []
terminalrecluse has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
arescorpio has quit [Quit: Leaving.]
astrobunny has joined #ruby
freija_ has quit [Quit: freija_]
bronson has joined #ruby
freija_ has joined #ruby
aganov has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
tildes has joined #ruby
ponga has joined #ruby
firstdayonthejob has quit [Ping timeout: 240 seconds]
bronson has quit [Ping timeout: 252 seconds]
<beauby> havenwood: Right, that's what I did. Thanks for the answer.
navneet_ has quit [Remote host closed the connection]
Cohedrin_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
navneet_ has joined #ruby
neanderslob has joined #ruby
freija_ has quit [Quit: freija_]
freija_ has joined #ruby
freija_ has quit [Remote host closed the connection]
kgrz has quit [Ping timeout: 260 seconds]
kgrz has joined #ruby
blackmesa has joined #ruby
freija_ has joined #ruby
freija1 has joined #ruby
freija has quit [Ping timeout: 260 seconds]
freija1 is now known as freija
blackmesa has quit [Ping timeout: 260 seconds]
Olipro_ has joined #ruby
Olipro_ is now known as Guest12433
freija_ has quit [Ping timeout: 260 seconds]
biberu has joined #ruby
jgt1 has joined #ruby
rkazak has quit [Quit: Sleep.....ing....]
A5101 has quit [Ping timeout: 252 seconds]
tildes has quit [Ping timeout: 276 seconds]
mynameisbrian has quit [Quit: Leaving]
tildes has joined #ruby
<kareeoleez> Something like [*'aa'..'zz'] will generate all possible combinations from aa to zz. What If I want to add a number?
<kareeoleez> e.g. ab + 01 => a0, a1, b0, b1
johnDoe111 has joined #ruby
siovene has joined #ruby
Devalo has joined #ruby
elifoster has quit [Ping timeout: 265 seconds]
<zzak> [n0kada, irc.freenode.net] [*"a".."b"].product([*"0".."1"]).map(&:join)
johnDoe111 has quit [Remote host closed the connection]
haxrbyte has joined #ruby
last_staff has joined #ruby
<Radar> Nice :) I always forget about product.
<kareeoleez> zzak: awesome
<kareeoleez> I'll look up the .product
konsolebox has quit [Ping timeout: 260 seconds]
vondruch has quit [Ping timeout: 260 seconds]
<kareeoleez> haven't used it ever
tzica has joined #ruby
Coldblackice has joined #ruby
<kareeoleez> zzak: but it adds always to the end
lytol has joined #ruby
<kareeoleez> zzak: https://repl.it/CRJd
<kareeoleez> I guess I'll have to create something rather custom
haxrbyte has quit [Remote host closed the connection]
Vile` has joined #ruby
haxrbyte has joined #ruby
elaptics`away is now known as elaptics
johnDoe111 has joined #ruby
the_drow has joined #ruby
<Radar> Well, yeah. Where do you expect it to add it?
exadeci has quit [Quit: Connection closed for inactivity]
<Radar> Do you want 0a and 1a too?
<kareeoleez> even ['a', 'b', '0', '1'].combination(2).to_a returns [["a", "b"], ["a", "0"], ["a", "1"], ["b", "0"], ["b", "1"], ["0", "1"]]
<kareeoleez> yes
<kareeoleez> all possible ones
<kareeoleez> I am creating a rainbow table algorithm for fun
The_Phoenix has joined #ruby
freija_ has joined #ruby
<Radar> >> [*"a".."c"].product([*"0".."9"]).flatten.combination(2).map(&:join)
<ruby[bot]> Radar: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<Radar> yay I broke the bot :)
lytol has quit [Quit: Leaving]
<kareeoleez> Radar: https://repl.it/CRJd/2 added .uniq.sort
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<kareeoleez> Radar: this is so awesome
<kareeoleez> thank you
<Radar> np
johnDoe111 has quit [Remote host closed the connection]
johnDoe111 has joined #ruby
The_Phoenix has quit [Ping timeout: 246 seconds]
<tzica> having this script https://exchange.nagios.org/directory/Plugins/System-Metrics/Networking/Martin/details can anyone help me with a fix ?
<tzica> I tend to believe that scripts gives error when a mtr line look like this 10. ??? because for most of examples I took it\s working
cpup has joined #ruby
jancel has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
CoderPuppy has quit [Ping timeout: 244 seconds]
anisha has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
grs has quit [Ping timeout: 276 seconds]
ravishankarjha has joined #ruby
jgt1 has quit [Ping timeout: 265 seconds]
johnDoe111^ has joined #ruby
jancel has quit [Ping timeout: 260 seconds]
emilkarl has quit [Quit: Textual IRC Client: www.textualapp.com]
mark_66 has joined #ruby
LoneHermit has joined #ruby
aufi has joined #ruby
brianpWins has quit [Ping timeout: 250 seconds]
labaleine has joined #ruby
nankyokusei has joined #ruby
LoneHermit has quit [Ping timeout: 250 seconds]
elaptics is now known as elaptics`away
johnDoe111^ has quit [Remote host closed the connection]
grs has joined #ruby
johnDoe111^ has joined #ruby
nerium has joined #ruby
johnDoe111^ has quit [Remote host closed the connection]
terlar has joined #ruby
nankyokusei has quit [Ping timeout: 240 seconds]
schpn has joined #ruby
schpn has quit [Client Quit]
ferr has joined #ruby
codecop has joined #ruby
lsmola has joined #ruby
blingrang has joined #ruby
blingrang has joined #ruby
blingrang has quit [Changing host]
blackmesa has joined #ruby
vondruch has joined #ruby
navneet__ has joined #ruby
navneet_ has quit [Read error: Connection reset by peer]
flughafen_ has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
<hightower3> Hey, what's the common way in Ruby to hash directory names like "abcdef" into "a/ab/abc/abcdef" ?
blackmesa has quit [Ping timeout: 252 seconds]
ravishankarjha has quit [Remote host closed the connection]
Ravisun66 has joined #ruby
<Ravisun66> hi
<Ravisun66> any help for multithreading?
elaptics`away is now known as elaptics
Ravisun66 has quit [Remote host closed the connection]
<toretore> hightower3: that depends on what behavior you want
stan has quit [Ping timeout: 246 seconds]
<hightower3> toretore, right, right, I mean is there a lib or something dealing with that and providing extra options
<hightower3> (the functionality itself, in the basic sense, is trivial of course)
johnDoe111^ has joined #ruby
moeSeth has joined #ruby
<toretore> hightower3: i don't see why you would even want to introduce a dependency for something like that
<toretore> your goal is probably to store a lot of files and to avoid storing them all in the same directory?
nischay has quit [Remote host closed the connection]
<toretore> so you probably want the standard method of hashing the filename and then splitting that up into n levels of dirs
<toretore> d=Digest::SHA1.hexdigest(filename); path, name = File.join(d[0], d[1], d[2], d[3]), d[4..-1]
Dimik has quit [Ping timeout: 250 seconds]
stan has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
roshanavand has joined #ruby
navneet__ has quit []
johnDoe111^^ has joined #ruby
johnDoe111^^^ has joined #ruby
johnDoe111^^^^ has joined #ruby
<Zarthus> Does anyone know of decent libraries for HTTP? I've been using Unirest for a while but the maintainer never pushes updates to rubygems.org so you'll be stuck asking your users to use git for the gem
johnDoe111^^^^ has quit [Remote host closed the connection]
<Zarthus> I've written my own solution myself but it's far less feature-istic and chokes at HTTP redirections :<
roshanavand has quit [Quit: This computer has gone to sleep]
M570` has joined #ruby
yfeldblum has quit [Ping timeout: 276 seconds]
jaruga___ has joined #ruby
jaruga___ is now known as jaruga____
M570 has quit [Ping timeout: 276 seconds]
kirillow has quit [Ping timeout: 265 seconds]
Shashikant86 has joined #ruby
Shashikant86 has quit [Max SendQ exceeded]
pabloh has joined #ruby
kirillow has joined #ruby
TomyLobo has joined #ruby
<tzica> can anyone help me with a fix for this script https://exchange.nagios.org/directory/Plugins/System-Metrics/Networking/Martin/details ? it uses mtr and I think the script is having problems with the lines having ??? - it means there is no additional route information. Script is working for most of examples only the ones with ??? throws error
<tzica> the fix in the comments does not works
kirillow has quit [Client Quit]
bluOxigen has quit [Ping timeout: 244 seconds]
bluOxigen has joined #ruby
czerasz has joined #ruby
aharlan has joined #ruby
aharlan has quit [Client Quit]
yqt has quit [Ping timeout: 276 seconds]
stannard has joined #ruby
startupality has joined #ruby
gregf_ has quit [Quit: leaving]
bronson has joined #ruby
chipotle has quit [Ping timeout: 252 seconds]
Coldblackice has quit [Ping timeout: 276 seconds]
johnDoe111^^ has quit [Remote host closed the connection]
blackgoat has quit [Ping timeout: 260 seconds]
johnDoe111 has quit [Remote host closed the connection]
johnDoe111^^^ has quit [Remote host closed the connection]
johnDoe111 has joined #ruby
ropeney has joined #ruby
ropeney has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
stannard has quit [Ping timeout: 276 seconds]
Octavian has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 252 seconds]
startupality has quit [Quit: startupality]
d0lph1n98 has quit [Ping timeout: 276 seconds]
bluOxigen has quit [Read error: Connection reset by peer]
bluOxigen has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
marr has joined #ruby
nankyokusei has joined #ruby
whathappens has joined #ruby
blackmesa has joined #ruby
whathapp_ has joined #ruby
nankyokusei has quit [Remote host closed the connection]
lacce has joined #ruby
whathap__ has joined #ruby
d0lph1n98 has joined #ruby
nighttime has joined #ruby
lacce has quit [Read error: Connection reset by peer]
aupadhye has joined #ruby
nankyokusei has joined #ruby
whathappens has quit [Ping timeout: 276 seconds]
whathappens has joined #ruby
whathapp_ has quit [Ping timeout: 250 seconds]
blackmesa has quit [Ping timeout: 250 seconds]
johnDoe111 has joined #ruby
whathapp_ has joined #ruby
startupality has joined #ruby
whathap__ has quit [Ping timeout: 250 seconds]
nischay has joined #ruby
noobsu has joined #ruby
oetjenj has joined #ruby
ramfjord has quit [Ping timeout: 246 seconds]
whathap__ has joined #ruby
konsolebox has joined #ruby
startupality has quit [Client Quit]
whathappens has quit [Ping timeout: 250 seconds]
whathappens has joined #ruby
whathapp_ has quit [Ping timeout: 250 seconds]
whathapp_ has joined #ruby
<Zarthus> tzica: can you give me some example content of what you're comparing against?
whathap__ has quit [Ping timeout: 250 seconds]
<Zarthus> if I were to loosely guess the problem is in the #run_mtr method, but I don't have any idea what it's really for but I could verify if the regex can be improved
whathap__ has joined #ruby
<tzica> ./check_mtr -H www.google.com -c 2 is fine
Guest70 has joined #ruby
<tzica> ./check_mtr -H www.nytimes.com -c 2 is not
whathappens has quit [Ping timeout: 250 seconds]
Guest70 has quit [Client Quit]
Hyuk has joined #ruby
lxsameer has quit [Quit: WeeChat 1.5]
lacce has joined #ruby
<tzica> if |I run the mtr tool alone is like this
<Zarthus> (please use a pastebin if the content is large)
<Zarthus> i'm assuming the output content is what we're looking for
whathappens has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
johnDoe111^^ has joined #ruby
<Zarthus> just "doesn't work" doesn't tell me a lot
workmad3 has joined #ruby
johnDoe111^^ has quit [Remote host closed the connection]
whathapp_ has quit [Ping timeout: 250 seconds]
whathapp_ has joined #ruby
<ruby[bot]> tzica: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/36c42eda4c15b5418d6be7b62ca6cb66
<ruby[bot]> tzica: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
Hyuk has left #ruby [#ruby]
Hyuk has joined #ruby
<Zarthus> are you getting an error the moment ??? is identified?
M570` is now known as m570
<tzica> I skipped 1-7 as not important
<Zarthus> yeah that's go
<tzica> number 10 is with ??
whathap__ has quit [Ping timeout: 276 seconds]
johnDoe111^^ has joined #ruby
harry111 has quit [Quit: Leaving]
whathap__ has joined #ruby
harry111 has joined #ruby
whathappens has quit [Ping timeout: 250 seconds]
whathap__ has quit [Remote host closed the connection]
startupality has joined #ruby
whathappens has joined #ruby
<Zarthus> try something like https://gist.github.com/Zarthus/e882cc945418a698a0a9fcd588851604 - I haven't tested it myself and it's a petty hack
<tzica> Zarthus and the error when running for nytimes http://pasted.co/552bc421
<Zarthus> I am not sure if m.captures will contain ... nil regardless, it might
* Zarthus is testing that right now, actually
yfeldblum has joined #ruby
<tzica> Zarthus: you changed only that "re" assignment ?
konsolebox has quit [Ping timeout: 265 seconds]
<Zarthus> no
<Zarthus> line 9, 12-15
<tzica> ok then
<tzica> moment
whathapp_ has quit [Ping timeout: 276 seconds]
<Zarthus> yeah, it's not going to work
whathapp_ has joined #ruby
<Zarthus> the regexp library fills in remainders with nil
moeabdol has quit [Ping timeout: 276 seconds]
<Zarthus> replace the if with m.captures.select { |m| !m.nil? }.count < 4
gregf_ has joined #ruby
johnDoe111^^ has quit [Remote host closed the connection]
Hyuk has quit [Quit: Textual IRC Client: www.textualapp.com]
<Zarthus> er, also a different variable otherwise i'll overwrite the existing one # { |x| !x.nil? }
whathap__ has joined #ruby
evidex has joined #ruby
whathappens has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 246 seconds]
madgen has joined #ruby
whathappens has joined #ruby
whathap__ has quit [Read error: Connection reset by peer]
skade has joined #ruby
hightower3 has quit [Ping timeout: 246 seconds]
jgt1 has joined #ruby
johnDoe111^^ has joined #ruby
<Zarthus> honestly I should have probably separated the regexes instead, or even just a simple String#include? would have sufficed
whathapp_ has quit [Ping timeout: 276 seconds]
whathapp_ has joined #ruby
m570 has quit [Remote host closed the connection]
<tzica> thanks for the help, it's bypassing the ??? question marks with both
ravishankarjha has joined #ruby
<tzica> the first if is working too
<Zarthus> neato
nobitanobi has joined #ruby
harry111 has quit [Quit: Leaving]
whathap__ has joined #ruby
harry111 has joined #ruby
<Zarthus> if you want me to send in a proper pr I can do that
<tzica> the 2nd if truncates a bit the output
moeabdol has joined #ruby
<tzica> let me find some other hosts with route issues on the way(middle) and not at the end
whathappens has quit [Ping timeout: 276 seconds]
whatha___ has joined #ruby
<harry111> ANICK harry222
harry111 is now known as harry222
whathapp_ has quit [Ping timeout: 250 seconds]
whathappens has joined #ruby
whathap__ has quit [Ping timeout: 276 seconds]
jaguarmagenta has joined #ruby
whathapp_ has joined #ruby
Devalo has quit [Remote host closed the connection]
<tzica> Zarthus yes, this if m.captures.select { |xx| !xx.nil? }.count < 4 deletes the lines with ??? - not my intention - from network point of view means no route info, but still good info for me :)
johnDoe111^^ has quit [Ping timeout: 260 seconds]
<tzica> so I find this if m.captures.count < 4 fine
whatha___ has quit [Ping timeout: 250 seconds]
<Zarthus> tzica: oh, you can literally print out anything you want, it's just that I stopped it from erroring
<Zarthus> at the moment all it does is tell you it skips it because it doesn't know what to do with it
<Zarthus> (and it does tell you it encountered an ??? block)
whathappens has quit [Ping timeout: 276 seconds]
jaguarmagenta has quit [Ping timeout: 265 seconds]
whathapp_ has quit [Ping timeout: 276 seconds]
Devalo has joined #ruby
RegulationD has joined #ruby
blackmesa has joined #ruby
koooge has quit [Quit: Leaving...]
Gasher has joined #ruby
Devalo has quit [Remote host closed the connection]
blaxter has joined #ruby
Devalo has joined #ruby
chipotle has joined #ruby
mdw has joined #ruby
koooge has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
Devalo has quit [Remote host closed the connection]
der-landgraf has quit [Ping timeout: 276 seconds]
stardiviner has quit [Ping timeout: 265 seconds]
nobitanobi has quit [Remote host closed the connection]
blackgoat has joined #ruby
postmodern has quit [Quit: Leaving]
startupality has quit [Quit: startupality]
johnDoe111^^ has joined #ruby
Ishido has joined #ruby
jgt1 has quit [Ping timeout: 246 seconds]
qasaur has joined #ruby
johnmilton has quit [Remote host closed the connection]
startupality has joined #ruby
qasaur has quit [Max SendQ exceeded]
qasaur has joined #ruby
d0lph1n98 has quit [Ping timeout: 260 seconds]
<claw> can anybody confirm that net-sftp is really slow ? i have this test: http://paste.debian.net/684187/, It uploads random data to 'test-host' speed is 1000 kB/s max while cpu runs at 100%.
antgel has quit [Ping timeout: 260 seconds]
<claw> (on a 1 gigabit ethernet connection)
antgel has joined #ruby
gregf_ has quit [Quit: leaving]
banister has joined #ruby
koooge has quit [Quit: Leaving...]
yfeldblum has quit [Ping timeout: 276 seconds]
stardiviner has joined #ruby
A124 has quit [Read error: Connection reset by peer]
grs has quit [Ping timeout: 260 seconds]
johnDoe111^^^ has joined #ruby
Devalo has joined #ruby
harry222 is now known as harry333
<workmad3> claw: is the test host on the 1gb LAN?
<claw> workmad3: yes
A124 has joined #ruby
Devalo has quit [Remote host closed the connection]
johnDoe111^^^ has quit [Remote host closed the connection]
johnDoe111 has quit [Remote host closed the connection]
<workmad3> claw: ok... it probably is slow, but I'm surprised it would be that much slower
nankyokusei has joined #ruby
<claw> me too
<ujjain> error_without_bodytag = #{e.message}.sub! '<body>', '<removedbody>' - Can I use .sub with e.message?
<workmad3> claw: you should probably be doing (read.fdiv(time_passed)).fdiv(1024) for more accurate reporting (you're suffering from multiple truncations from integer division currently) but that doesn't account for reaching 1% of possible upload speed :/
gregf_ has joined #ruby
flughafen_ has joined #ruby
noobsu has quit [Read error: Connection reset by peer]
noobsu has joined #ruby
jgt1 has joined #ruby
grs has joined #ruby
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
<claw> workmad3: yes even if its not accurate something realy wrong here
der-landgraf has joined #ruby
nerium has quit [Quit: nerium]
johnDoe111 has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
johnDoe111^^^ has joined #ruby
<harry333> hi
tagaulap has joined #ruby
johnDoe111^^^ has quit [Remote host closed the connection]
moeSeth has quit [Quit: Connection closed for inactivity]
johnDoe111 has quit [Remote host closed the connection]
johnDoe111 has joined #ruby
duncannz has quit [Quit: Leaving]
johnDoe111 has quit [Remote host closed the connection]
johnDoe111 has joined #ruby
madgen has quit [Ping timeout: 250 seconds]
lxsameer has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
idefine has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
<jhass> ujjain: I'd refrain from sub! but sub should be no problem as it's a string
pyo_ has joined #ruby
johnDoe111 has joined #ruby
<jhass> a bit weird to have HTML (?) in an exception in the first place though
nchambers has quit [Quit: Killed (Sigyn (Being awesome is too on-topic for freenode))]
rodfersou has joined #ruby
nankyokusei has quit [Remote host closed the connection]
diegoaguilar has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
nchambers has joined #ruby
harry333 has quit [Quit: Leaving]
johnDoe111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
johnDoe111 has joined #ruby
flughafen_ has quit [Ping timeout: 276 seconds]
harry111 has joined #ruby
skade has joined #ruby
harry111 has quit [Client Quit]
mdw has quit [Quit: Sleeping Zzzzz]
harry111 has joined #ruby
johnDoe111 has quit [Remote host closed the connection]
johnDoe111^ has quit [Remote host closed the connection]
johnDoe111^^ has quit [Remote host closed the connection]
skade has quit [Client Quit]
jgt2 has joined #ruby
johnDoe111 has joined #ruby
harry111 has quit [Client Quit]
harry111 has joined #ruby
pyo_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
d0lph1n98 has joined #ruby
Biopandemic has joined #ruby
madgen has joined #ruby
ta_ has joined #ruby
jgt1 has quit [Ping timeout: 276 seconds]
platzhirsch has joined #ruby
<harry111> hello everyone
harry111 is now known as harry222
* harry222 waves hello
<Zarthus> sup
emilkarl has joined #ruby
pyo_ has joined #ruby
noobsu has quit [Read error: Connection reset by peer]
aupadhye has quit [Quit: Leaving]
nankyokusei has joined #ruby
nischay has quit [Remote host closed the connection]
govg has quit [Ping timeout: 250 seconds]
blackmesa has joined #ruby
aupadhye has joined #ruby
matp has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 265 seconds]
deadnull_ has joined #ruby
Devalo has joined #ruby
GodFather has joined #ruby
ldnunes has joined #ruby
ravishankarjha has quit [Remote host closed the connection]
Devalo has quit [Ping timeout: 260 seconds]
d0lph1n98 has quit [Ping timeout: 250 seconds]
ravishankarjha has joined #ruby
johnmilton has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
astrobunny has quit [Remote host closed the connection]
sepp2k has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
jgt3 has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
noobsu has joined #ruby
jgt2 has quit [Ping timeout: 276 seconds]
johnmilton has quit [Ping timeout: 260 seconds]
gregf has joined #ruby
nerium has joined #ruby
crameth has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
matp has joined #ruby
grs has quit [Ping timeout: 276 seconds]
idefine has quit [Remote host closed the connection]
ta_ has quit [Remote host closed the connection]
der-landgraf has quit [Quit: WeeChat 1.5]
der-landgraf has joined #ruby
flughafen_ has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
govg has joined #ruby
noobsu has quit [Read error: Connection reset by peer]
govg has quit [Client Quit]
noobsu has joined #ruby
GodFather has quit [Remote host closed the connection]
j_mcnally has joined #ruby
d0lph1n98 has joined #ruby
m_antis has joined #ruby
johnDoe111 has quit [Ping timeout: 265 seconds]
hanmac has quit [Ping timeout: 250 seconds]
johnmilton has joined #ruby
johnny56 has joined #ruby
nankyokusei has quit [Remote host closed the connection]
ixti has joined #ruby
harry222 has quit [Ping timeout: 265 seconds]
grs has joined #ruby
johnny56_ has quit [Ping timeout: 264 seconds]
nankyokusei has joined #ruby
sdothum has joined #ruby
nadir has joined #ruby
blackgoat has quit [Ping timeout: 265 seconds]
|2701 has joined #ruby
xall has quit [Ping timeout: 260 seconds]
sinkensabe has joined #ruby
hanmac has joined #ruby
minimalism has quit [Quit: minimalism]
flashpoint9 has joined #ruby
nando294021 has quit [Ping timeout: 276 seconds]
jgt3 has quit [Ping timeout: 260 seconds]
jgt3 has joined #ruby
sami has left #ruby [#ruby]
gagrio has quit [Ping timeout: 244 seconds]
spider-mario has joined #ruby
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Weavel has joined #ruby
GodFather has joined #ruby
houhoulis has joined #ruby
aegis3121 has joined #ruby
madgen has joined #ruby
djcp has joined #ruby
bauerbob has joined #ruby
GodFather has quit [Remote host closed the connection]
qasaur has joined #ruby
saneax is now known as saneax_AFK
synthroid has joined #ruby
<shevy> yo Zarthus
<Zarthus> o/
Yiota has joined #ruby
<bauerbob> hi. i want to implement a method that can be called with a hash as well as key value pairs. some of the keys are mandatory, but :to is optional and it’s the only one that should not be in the variable where the rest of the hash/key-value-pairs are in? my gist works, but I guess there’s a more elegant solution in ruby. could you please have a look? https://gist.github.com/thorstenhirsch/30d305f553d5c5a30201308421a4e2fe
ravishankarjha has quit [Remote host closed the connection]
pyo_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros> bauerbob: IMO don't do that. let the caller normalize the arguments. that'll be *a lot* cleaner.
<apeiros> if you insist on what I'd consider an ugly way: def something(hashargs=nil, id: default, foo: default, to: default); if hashargs; id = hashargs[:id]; …; end …
Devalo has joined #ruby
<apeiros> there are other ways, sacrificing different things.
Devalo has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 276 seconds]
nankyokusei has quit [Remote host closed the connection]
IrishGringo has joined #ruby
<bauerbob> ok… well, you’re right, this was more or less a workaround, because i couldn’t find the place, where i call something() with key-value pairs instead of a hash
Devalo has joined #ruby
<bauerbob> guess i’ll stick to something(msg, to: nil)
<apeiros> it's called keyword arguments, not key value pairs ;-)
<bauerbob> ok :)
nankyokusei has joined #ruby
beauby has quit [Ping timeout: 260 seconds]
gagrio has joined #ruby
nankyokusei has quit [Remote host closed the connection]
Azure|dc has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
m_antis has quit [Ping timeout: 260 seconds]
blackgoat has joined #ruby
akiTendo has joined #ruby
raeoks has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> how about... keyword pairs! or ... argument values!
raeoks has joined #ruby
allcentury has joined #ruby
ta_ has joined #ruby
akiTendo has quit [Quit: akiTendo]
ravishankarjha has joined #ruby
akiTendo has joined #ruby
mdw has joined #ruby
jancel has joined #ruby
Madplatypus has joined #ruby
Azure has joined #ruby
Devalo has quit [Remote host closed the connection]
akiTendo has quit [Quit: akiTendo]
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
umdstu has joined #ruby
labaleine_ has joined #ruby
labaleine has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
labaleine_ is now known as labaleine
duoi has quit [Ping timeout: 276 seconds]
bauerbob has quit [Quit: bauerbob]
bronson has quit [Ping timeout: 252 seconds]
duoi has joined #ruby
gnufied has joined #ruby
sinkensabe has quit [Remote host closed the connection]
|2701 has quit [Changing host]
|2701 has joined #ruby
|2701 has joined #ruby
kobain has joined #ruby
akiTendo has joined #ruby
agent_white has quit [Quit: brb]
aegis3121 has quit [Ping timeout: 265 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has joined #ruby
Devalo has joined #ruby
AnoHito_ has quit [Read error: Connection reset by peer]
kus has joined #ruby
kus has quit [Max SendQ exceeded]
flashpoint9 has quit [Read error: Connection reset by peer]
AnoHito_ has joined #ruby
hays has quit [Read error: Connection reset by peer]
flashpoint9 has joined #ruby
monoprotic has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
monoprotic has joined #ruby
monoprotic has joined #ruby
iamvery has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
j_mcnally has quit [Ping timeout: 260 seconds]
pawnbox has joined #ruby
roamingdog has joined #ruby
hays has joined #ruby
kies has quit [Ping timeout: 260 seconds]
jwang has quit [Ping timeout: 260 seconds]
j_mcnally has joined #ruby
iamvery has joined #ruby
halfamind has joined #ruby
jwang has joined #ruby
aupadhye has quit [Quit: Leaving]
aupadhye has joined #ruby
<tzica> can anyone help me again (had to upgrade mtr due to a bug) with a fix for this script https://exchange.nagios.org/directory/Plugins/System-Metrics/Networking/Martin/details ? the script is having problems with the lines having ???
kareeole_ has joined #ruby
<tzica> good output: 9.|-- 72.52.48.197
<tzica> problematic: 10.|-- ??? 100.0 3 0.0 0.0 0.0 0.0 0.0
kareeole_ is now known as kareeoleez_
kareeoleez has quit [Ping timeout: 250 seconds]
roamingdog has quit [Read error: Connection reset by peer]
roamingd_ has joined #ruby
blackgoat has quit [Quit: WeeChat 1.4]
stannard has joined #ruby
gagrio has quit [Ping timeout: 240 seconds]
stannard has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
Devalo has quit [Remote host closed the connection]
<tzica> running now on mtr 0.85
mdw has quit [Quit: Sleeping Zzzzz]
sinkensabe has quit [Remote host closed the connection]
emilkarl is now known as emilkarl[away]
Yiota has joined #ruby
ekinmur has joined #ruby
<apeiros> tzica: I don't really understand your problem from your description
emilkarl[away] is now known as emilkarl
sinkensabe has joined #ruby
<tzica> apeiros : when runnint check_mtr script and the output contains a problematic line it throws:
<apeiros> nice, for some reason I can't resolve hastebin. downforeveryone confirms it's up, though.
sinkensabe has quit [Remote host closed the connection]
<adaedra> you're too hasty.
<adaedra> hello #ruby.
<apeiros> using google dns even…
<toretore> parsing unix output lol
<toretore> i'm going to mention it every time
roamingd_ has quit [Remote host closed the connection]
<tzica> http://pasted.co/14cd7d08 - this ?
<apeiros> ok, definitively a problem with google's dns as it seems. using isp's dns now and it resolves just fine
roamingdog has joined #ruby
<adaedra> why do you use Google DNS
<toretore> ?gist tzica
<ruby[bot]> tzica: https://gist.github.com - Multiple files, syntax highlighting, even automatically with matching filenames, can be edited
<apeiros> tzica: and where's the code?
eljimmy has joined #ruby
<apeiros> tzica: or rather - can you make a small, reproducible example?
<tzica> just a moment, tryint to use gist.github.com then
<apeiros> adaedra: because my isp's dns was horrible some time back
duoi has quit [Quit: duoi]
duoi has joined #ruby
sinkensabe has joined #ruby
<toretore> basically a regex doesn't match when the expected output doesn't appear
sinkensabe has quit [Remote host closed the connection]
aegis3121 has joined #ruby
<apeiros> tzica: and the above "good output"/"problematic" is the input for your regex? literally like that?
allcentury has quit [Ping timeout: 260 seconds]
<tzica> moment, I'm adding eveything to gist now
pawnbox has quit [Remote host closed the connection]
iamvery has quit [Ping timeout: 260 seconds]
CloCkWeRX has quit [Ping timeout: 246 seconds]
jwang has quit [Ping timeout: 260 seconds]
cdg has joined #ruby
iamvery has joined #ruby
ekinmur has quit [Quit: Textual IRC Client: www.textualapp.com]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jwang has joined #ruby
swills has quit [Remote host closed the connection]
jancel has quit [Remote host closed the connection]
pawnbox has joined #ruby
tax has joined #ruby
skalfyfan has joined #ruby
`tim` has joined #ruby
houhoulis has quit [Remote host closed the connection]
ravishankarjha has quit []
gagrio has joined #ruby
<tzica> at the end are the test
<apeiros> tzica: you could reduce your example to just the regex matching and the input lines. the rest of the script is just noise at this point.
<apeiros> just for future reference.
swills has joined #ruby
<tzica> re = /^\s*(\d*).\|--\s*(\S*).*?(\d*?.\d*?)%\s*.*?\d\s+(.*?)\s.*?$/
IrishGringo has quit [Ping timeout: 260 seconds]
<tzica> sry
GodFather has joined #ruby
grs has quit [Ping timeout: 246 seconds]
<apeiros> you can use pry (and/or rubular.com) to figure out where your regex needs to be amended
<apeiros> example for pry:
<apeiros> line = " 10.|-- ??? 100.0 2 0.0 0.0 0.0 0.0 0.0"
<apeiros> line[/^\s*(\d*).\s*/]
ChiefAlexander has joined #ruby
<apeiros> you'll see that that still matches. you can then add more parts of your regex and see when it starts to fail.
IrishGringo has joined #ruby
malconis has joined #ruby
roshanavand has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
<claw> workmad3: the cputime in net-sftp is consumed by the xor method of ctr. so speed is limited to the cpu
kies has joined #ruby
<apeiros> claw: interesting. do you have file/lineno of the implementation of it?
phrozen77 has quit [Ping timeout: 250 seconds]
jaguarmagenta has joined #ruby
<apeiros> ok, they already use 64bit ints to do the xor
<apeiros> I wonder whether a tiny native method would help
dopamean_ has quit [Ping timeout: 276 seconds]
aupadhye is now known as aupadhye|brb
startupality has quit [Quit: startupality]
gtqgup has joined #ruby
d0nn1e has quit [Ping timeout: 240 seconds]
jaguarmagenta has quit [Ping timeout: 276 seconds]
qasaur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tlaxkit has joined #ruby
d0nn1e has joined #ruby
kareeoleez_ has quit [Remote host closed the connection]
<jhass> still quite a few array allocations in there though
grs has joined #ruby
gtqgup has quit [Remote host closed the connection]
Yiota has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
kareeoleez has joined #ruby
rbennacer has joined #ruby
<apeiros> zip will create a new array on each iteration
CloCkWeRX has joined #ruby
Guest53755 is now known as ndrst
<apeiros> brb, will try to unthaw my (sadly weak) C-ruby-fu after.
madgen has quit [Ping timeout: 252 seconds]
<apeiros> err, thaw
madgen has joined #ruby
allcentury has joined #ruby
irocksu has joined #ruby
<irocksu> hi
<irocksu> i have weird behavior with a gsub expression
<jhass> could try to see if s1 = s1.unpack("Q*"); s2 = s2.unpack("Q*"); Array.new(s1.size) {|i| s1[i]^s2[i] }.pack("Q*") makes a difference meanwhile
hrsxpj has joined #ruby
kovim has joined #ruby
<irocksu> i have string and want to escape ‘ with \’ to put the result in a database. unfortunately the result string seems broken.
<irocksu> "I Can't Sleep (J'ai pas sommeil) (1994)".gsub(/'/, "\\\'")
<irocksu> gives me: "I Cant Sleep (J'ai pas sommeil) (1994)t Sleep (Jai pas sommeil) (1994)ai pas sommeil) (1994)"
CloCkWeRX has quit [Ping timeout: 240 seconds]
<toretore> >> "I Can't Sleep (J'ai pas sommeil) (1994)".gsub(/'/, "\\\\\\\\")
kovim has left #ruby [#ruby]
<ruby[bot]> toretore: # => "I Can\\\\t Sleep (J\\\\ai pas sommeil) (1994)" (https://eval.in/572155)
<toretore> >> "I Can't Sleep (J'ai pas sommeil) (1994)".gsub(/'/, "\\\\\\")
<ruby[bot]> toretore: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
<shevy> haha
<toretore> lol
karmatr0n has joined #ruby
<toretore> >> "I Can't Sleep (J'ai pas sommeil) (1994)".gsub(/'/, "\\\\'")
stannard has joined #ruby
<ruby[bot]> toretore: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
kies has quit [Ping timeout: 240 seconds]
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore> anyway, i think the magic number is 4
<jhass> irocksu: no, you don't want to "escape to put into the database"
<jhass> irocksu: you want to use bind parameters
<toretore> and that ^
<toretore> > "i'm telling y'all it's sabotage".gsub(/'/, "\\\\\\0")
<toretore> => "i\\'m telling y\\'all it\\'s sabotage"
duoi has quit [Ping timeout: 276 seconds]
CloCkWeRX has joined #ruby
<irocksu> jhass: i actually want to escape it so i can use INSERT INTO… VALUES(‘result goes here’,…)
ChiefAlexander has quit [Remote host closed the connection]
<jhass> irocksu: yeah no, you don't
<toretore> irocksu: any decent sql library has functionality to do this for you. you don't interpolate strings together and execute them as sql
<irocksu> this is a small import script
<irocksu> no production code
SilverKey has joined #ruby
<toretore> doesn't matter, do it properly
<Veejay> And using bind parameters and the proper library is actually much simpler
<Veejay> It's the lazy choice
<shevy> I like lazy
ChiefAlexander has joined #ruby
BTRE has quit [Quit: Leaving]
<irocksu> still this does not answer the question though :)
<irocksu> and 4 is wrong by the way
<jhass> it does
duoi has joined #ruby
|ifei5good has joined #ruby
aupadhye|brb is now known as aupadhye
CloCkWeRX has left #ruby [#ruby]
<toretore> irocksu: your question has been correctly answered, and a better way has been shown
qasaur has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yiota has joined #ruby
|ifei5g00d has quit [Ping timeout: 260 seconds]
allcentury has quit [Ping timeout: 240 seconds]
startupality has joined #ruby
roamingdog has quit []
araujo has quit [Quit: Leaving]
arpegius has joined #ruby
SilverKey has quit [Quit: Halted.]
a346 has joined #ruby
rkazak has joined #ruby
blackmesa has joined #ruby
BTRE has joined #ruby
emilkarl has joined #ruby
idle_task has joined #ruby
<apeiros> claw: ok, native C method is 80x faster for a 10k string :)
<claw> nice
<apeiros> I'll gist up the code
moeabdol has quit [Ping timeout: 260 seconds]
idletask has quit [Ping timeout: 276 seconds]
mdw has joined #ruby
irocksu has quit [Quit: irocksu]
<apeiros> no guarantees that this code is correct, though. I only did a single comparison with xor! and that seemed to be correct.
<apeiros> but I'm pretty interested in how it changes your net-sftp experience.
jancel has joined #ruby
mdw_ has joined #ruby
allcentury has joined #ruby
stardiviner has quit [Ping timeout: 265 seconds]
<apeiros> eh, heh, found https://github.com/fny/xorcist
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
agent_white has joined #ruby
nando293921 has joined #ruby
nando293921 has quit [Client Quit]
ta_ has quit [Remote host closed the connection]
<apeiros> IMO String#^ should just be in ruby core
<agent_white> Mornin'
nando293921 has joined #ruby
<apeiros> moin
stardiviner has joined #ruby
perlgod has joined #ruby
<claw> apeiros: stupid question: how to use it ?
<claw> make was fine but how to call it from ruby
mdw has quit [Ping timeout: 265 seconds]
jancel has quit [Read error: Connection reset by peer]
<apeiros> require the resulting .so or .bundle by either putting it into a path in $LOAD_PATH, or by absolute path
<apeiros> e.g. I just did `pry -r /Users/apeiros/Documents/Development/Ruby/snippets/native_string_xor/ext/string_xor` (copy pasted the path of course :D)
crameth has quit [Quit: crameth]
p1k has joined #ruby
<apeiros> make sure you require ctr from net-sftp, then redefine it to use String#^
<apeiros> "foo" ^ "bar" # is how it's called
araujo has joined #ruby
nando293921 has quit [Ping timeout: 246 seconds]
CoderPuppy has joined #ruby
<apeiros> oh great, still had the ctr.rb file open in my browser. the method actually gets defined dynamically upon extend
<apeiros> I'd probably get a hold of the source-file you're loading and edit that.
<apeiros> I wonder why they chose to implement it that way. seems bad.
arpegius has quit [Quit: arpegius]
startupality has quit [Quit: startupality]
dstarh has joined #ruby
cpup has quit [Ping timeout: 276 seconds]
jobewan has joined #ruby
davedev24 has joined #ruby
blackmesa has quit [Ping timeout: 244 seconds]
nankyokusei has joined #ruby
startupality has joined #ruby
stardiviner has quit [Ping timeout: 260 seconds]
CloCkWeRX has joined #ruby
jobewan is now known as jobewan_away
ftj has joined #ruby
pabloh has quit [Quit: Leaving]
jwren has joined #ruby
hydr8d has joined #ruby
jobewan_away is now known as jobewan
<Zarthus> Does TracePoint.new(:raise) also catch caught exceptions
CloCkWeRX has left #ruby [#ruby]
<apeiros> Zarthus: try it?
antgel has quit [Ping timeout: 240 seconds]
SilverKey has joined #ruby
<apeiros> it'd be helpful if there were headers on those columns
aufi has quit [Ping timeout: 265 seconds]
pawnbox_ has joined #ruby
nankyokusei has quit [Ping timeout: 246 seconds]
antgel has joined #ruby
<claw> %Total %Self Total Self Wait Child Calls Name
<claw> they are just a the top of the page. ( ruby-prof gem )
<Zarthus> apeiros: yeah, it looks like that's the case.
drptbl has joined #ruby
<apeiros> claw: and your transfer datarate?
<Zarthus> I was really surprised to find windows registry errors in my error logs
yqt has joined #ruby
<claw> 2 times faster cpu still at 100%. that whole implementation of ctr is a problem
pawnbox has quit [Ping timeout: 240 seconds]
polishdub has joined #ruby
codecop has quit [Remote host closed the connection]
guille_ has joined #ruby
<claw> #update still consumes 98.18% of the total cpu time
<apeiros> seems like #update is the next big fish
duoi has quit [Ping timeout: 276 seconds]
guille_ has left #ruby [#ruby]
<shevy> I like fish
<apeiros> double the bandwith is still piss poor. at least iirc that means you get 2Mbit/s on a 1000Mbit/s connection?
<apeiros> what kind of transfer rates do you get with a native sftp client?
duoi has joined #ruby
mdw_ has quit [Quit: Sleeping Zzzzz]
yqt has quit [Ping timeout: 244 seconds]
<apeiros> btw., why are the % columns empty except for #update?
hydr8d has quit [Quit: Goodbye]
SilverKey has quit [Quit: Halted.]
jancel has joined #ruby
aganov has quit [Remote host closed the connection]
drptbl has quit [Quit: See you later!]
duoi has quit [Ping timeout: 276 seconds]
<claw> if native sftp client i get ~ 800Mbit/s
<claw> apeiros: dont know why the columns are empty its generated using ruby-prof
zhunting has joined #ruby
<apeiros> mhm, 800Mbit/s is about what I'd have expected
Insti has joined #ruby
<apeiros> now I wonder whether I should change some code at work, which uses net/sftp too to download ~300MB of data
jancel has quit [Remote host closed the connection]
mdw has joined #ruby
mdw has quit [Max SendQ exceeded]
<claw> apeiros: depends on the sshd version you are connecting to. i think only the ctr implementation is such a mass ( which is default for current sshd )
duoi has joined #ruby
mdw has joined #ruby
<claw> nevermind i already tested arcfour128 which was faster but still at 100%cpu
bronson has joined #ruby
<claw> #increment_counter! is fun too
SilverKey has joined #ruby
masaru- has joined #ruby
_guille has joined #ruby
davedev2_ has joined #ruby
davedev2_ has quit [Read error: Connection reset by peer]
davedev2_ has joined #ruby
_guille has quit [Client Quit]
_guille has joined #ruby
<_guille> Quit
davedev24 has quit [Ping timeout: 276 seconds]
jgt3 has quit [Read error: No route to host]
bronson has quit [Ping timeout: 252 seconds]
duoi has quit [Ping timeout: 276 seconds]
rippa has joined #ruby
frem_ has joined #ruby
j_mcnally has joined #ruby
duoi has joined #ruby
Pupeno has joined #ruby
elifoster has joined #ruby
johnDoe111 has joined #ruby
harry222 has joined #ruby
startupality has quit [Quit: startupality]
Kruppe has quit [Quit: ZNC - http://znc.in]
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RegulationD has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
eljimmy has quit [Quit: This computer has gone to sleep]
`tim` has joined #ruby
The_Phoenix has joined #ruby
SilverKey has quit [Quit: Halted.]
The_Phoenix has quit [Max SendQ exceeded]
<tzica> regexp question: how to catch both 100.0 and 50.0% ?
jgt3 has joined #ruby
rkazak has quit [Ping timeout: 252 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
Kruppe has joined #ruby
emilkarl is now known as emilkarl[away]
eljimmy has joined #ruby
The_Phoenix has joined #ruby
xaxisx has joined #ruby
<tzica> think I've done it with dots ...
The_Phoenix has quit [Max SendQ exceeded]
s00pcan has joined #ruby
<apeiros> tzica: ? means optional. so %? is an optional %
SilverKey has joined #ruby
The_Phoenix has joined #ruby
Peetooshock has joined #ruby
duoi has quit [Ping timeout: 250 seconds]
The_Phoenix has quit [Max SendQ exceeded]
new_user has joined #ruby
The_Phoenix has joined #ruby
hobodave has joined #ruby
deadnull_ has quit [Quit: Bye]
Pupeno has quit [Remote host closed the connection]
insanedreamer has joined #ruby
kies has joined #ruby
xaxisx has quit [Read error: Connection reset by peer]
bim has joined #ruby
bim is now known as Guest99262
Gasher has quit [Quit: Leaving]
_guille has joined #ruby
chouhoulis has joined #ruby
wilbert has joined #ruby
bluOxigen has quit [Remote host closed the connection]
chopin has joined #ruby
duoi has joined #ruby
jgt3 has quit [Ping timeout: 276 seconds]
Pupeno has joined #ruby
theRoUS` has quit [Changing host]
theRoUS` has joined #ruby
_guille has quit [Quit: WeeChat 1.4]
czerasz_ has joined #ruby
wldcordeiro has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
insanedreamer has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
wrkrcoop has joined #ruby
rodfersou is now known as rodfersou|lunch
czerasz has quit [Ping timeout: 246 seconds]
mdw has quit [Quit: Sleeping Zzzzz]
jgt3 has joined #ruby
eljimmy has joined #ruby
troter__________ has quit [Read error: Connection reset by peer]
anisha has quit [Quit: Leaving]
synthroid has quit [Remote host closed the connection]
duoi has quit [Ping timeout: 276 seconds]
troter__________ has joined #ruby
psf has joined #ruby
duoi has joined #ruby
jancel has joined #ruby
moeabdol has joined #ruby
<new_user> Hi, i have problem with script. http://pastebin.com/1Ye2ZR8t (error) My script - http://pastebin.com/5TJ0chpj . How can i resolve this? Sorry for my english...
<ruby[bot]> new_user: we in #ruby do not like pastebin.com, I reposted your paste to gist for you: https://gist.github.com/887f9234a2cf387109f1546d11ebd684
<ruby[bot]> new_user: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
The_Phoenix has quit [Quit: Leaving.]
bluOxigen has quit [Remote host closed the connection]
blackmesa has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
<shevy> new_user put your full script content on a website please
bluOxigen has joined #ruby
noobsu has quit [Remote host closed the connection]
nerium has quit [Quit: nerium]
blaxter has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 240 seconds]
kareeoleez has quit [Remote host closed the connection]
duoi has quit [Ping timeout: 276 seconds]
flips has joined #ruby
<new_user> i have caught exception script on 1016 entry, but this script https://gist.github.com/anonymous/6848d52cf5d61bf59a4d48a253162440 don't have any error...
duoi has joined #ruby
blaxter has joined #ruby
synthroid has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
chouhoulis has quit [Remote host closed the connection]
<toretore> new_user: what is the error?
<new_user> toretore, SQLite3::CantOpenException: unable to open database file (Sequel::DatabaseError)
jgt3 has quit [Ping timeout: 252 seconds]
<toretore> you are creating a new connection for each insert
<toretore> create one, then use that for each insert
jaguarmagenta has joined #ruby
chouhoulis has joined #ruby
startupality has joined #ruby
RegulationD has quit [Remote host closed the connection]
RegulationD has joined #ruby
roger_rabbit has joined #ruby
<flips> Hm, using rbenv and bundler, it's easy enough to manage dependencies etc. But how do you keep various installations from being bloated? (I'm used to Python's virtualenvs, where all I need is copied to that project dir.) When I develop a large project on my laptop, when I'm done with that, I'd like to clear out what's not needed. I guess I could remove all and do bundle install on the projects I'm working on ...
<flips> (?) Or am I missing an obvious better solution? :)
<new_user> toretore, thanks you very much.
<agent_white> toretore: Working with Sequel myself as well... so is it pretty much a good idea to create the DB connection outside of any namespace?
<agent_white> ie - Sequel.connect(){|db| #do all the things here using one connection}
<toretore> agent_white: it's a good idea not to create one for each query :P
jhack has joined #ruby
<toretore> but yes, probably, inject the connection into whatever needs it
jwren has quit [Quit: Lost terminal]
<agent_white> Roger that!
jaguarmagenta has quit [Ping timeout: 246 seconds]
<toretore> otherwise you'll have a class which "magically" knows how to get data from a db
speakingcode has quit [Ping timeout: 265 seconds]
slash_nick is now known as slash_me
<toretore> the best is probably to separate data retrieval and data processing entirely, i.e. `Sequel.connect{|db| db.query(q).map{|r| DataProcessor.new(r).result } }`
Weavel has quit [Quit: The early bird may get the worm, but the second mouse gets the cheese]
nofacade has joined #ruby
idle_task has quit [Quit: .]
moeabdol has quit [Quit: WeeChat 1.4]
elaptics is now known as elaptics`away
kirun has joined #ruby
duoi has quit [Ping timeout: 276 seconds]
Guest38 has joined #ruby
loinclot_ has joined #ruby
loinclot_ has quit [Remote host closed the connection]
shibly has joined #ruby
shibly has left #ruby [#ruby]
masaru- has quit [Remote host closed the connection]
swills has quit [Ping timeout: 250 seconds]
flughafen_ has quit [Ping timeout: 240 seconds]
amclain has joined #ruby
masaru- has joined #ruby
duoi has joined #ruby
loinclot_ has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bluOxigen_ has joined #ruby
loincloth has quit [Ping timeout: 276 seconds]
Weavel has joined #ruby
lxsameer has joined #ruby
bluOxigen has quit [Ping timeout: 265 seconds]
riobe has joined #ruby
bluOxigen has joined #ruby
whathappens has joined #ruby
mdw has joined #ruby
qasaur has quit [Quit: Textual IRC Client: www.textualapp.com]
bluOxigen_ has quit [Ping timeout: 260 seconds]
bluOxigen_ has joined #ruby
RegulationD has quit [Remote host closed the connection]
[Butch] has joined #ruby
jwren has joined #ruby
RegulationD has joined #ruby
codeurge has joined #ruby
megallopy has joined #ruby
megallopy has quit [Client Quit]
bluOxigen has quit [Ping timeout: 276 seconds]
hobodave_ has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Coldblackice has joined #ruby
aegis3121 has quit [Ping timeout: 260 seconds]
hobodave has quit [Ping timeout: 252 seconds]
duoi has quit [Ping timeout: 276 seconds]
aufi has joined #ruby
[Butch]_ has joined #ruby
Mia has quit [Ping timeout: 252 seconds]
moeabdol has joined #ruby
[Butch] has quit [Ping timeout: 250 seconds]
[Butch]_ is now known as [Butch]
smathy_afk has joined #ruby
smathy_afk is now known as smathy
smathy is now known as smathy_afk
smathy_afk is now known as smathy
duoi has joined #ruby
antgel has quit [Ping timeout: 252 seconds]
symm- has joined #ruby
bougyman has quit [Ping timeout: 276 seconds]
Dimik has joined #ruby
ramortegui has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
johnDoe111 has quit [Ping timeout: 260 seconds]
Es0teric has joined #ruby
harry222 has quit [Ping timeout: 260 seconds]
kgrz has quit [Quit: leaving]
bougyman has joined #ruby
chouhoulis has quit [Remote host closed the connection]
kgrz has joined #ruby
tlaxkit has quit [Quit: ¡Adiós!]
nando293921 has joined #ruby
swills has joined #ruby
loinclot_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
duoi has quit [Ping timeout: 276 seconds]
loincloth has joined #ruby
robbyoconnor has joined #ruby
smathy is now known as smathy_afk
smathy_afk is now known as smathy
jancel has quit [Remote host closed the connection]
mistermocha has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Remote host closed the connection]
adgtl has quit [Remote host closed the connection]
blackmesa has joined #ruby
the_drow has joined #ruby
robbyoconnor has joined #ruby
mtkd has quit [Ping timeout: 246 seconds]
noobsu has joined #ruby
new_user has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
bluOxigen has joined #ruby
sepp2k has joined #ruby
jackjackdripper has joined #ruby
mtkd has joined #ruby
a346 has quit [Quit: a346]
elaptics`away is now known as elaptics
the_drow has quit [Read error: Connection reset by peer]
aphprentice has joined #ruby
nankyokusei has joined #ruby
bluOxigen_ has quit [Ping timeout: 276 seconds]
duoi has joined #ruby
evidex has quit [Remote host closed the connection]
the_drow has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
jgt3 has joined #ruby
arlek has joined #ruby
nareiber has joined #ruby
noobsu has quit [Ping timeout: 260 seconds]
nando294021 has joined #ruby
stannard has quit [Remote host closed the connection]
nando293921 has quit [Read error: Connection reset by peer]
nankyokusei has quit [Ping timeout: 246 seconds]
rbennacer has quit [Remote host closed the connection]
Guest99262 has quit [Read error: Connection reset by peer]
ramfjord has quit [Ping timeout: 260 seconds]
Azure has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Peetooshock> >>"test"
ramortegui has quit [Quit: Ex-Chat]
<ruby[bot]> Peetooshock: I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
stannard has joined #ruby
`tim` has joined #ruby
<Peetooshock> >>1+1
<ruby[bot]> Peetooshock: # => 2 (https://eval.in/572236)
<havenwood> Peetooshock: 2
adgtl has joined #ruby
Lord_of_Life has quit [Changing host]
Lord_of_Life has joined #ruby
Lord_of_Life has joined #ruby
CJKinni has joined #ruby
Azure has joined #ruby
Gasher has joined #ruby
a346 has joined #ruby
aufi has quit [Ping timeout: 246 seconds]
a346 has quit [Client Quit]
hightower3 has joined #ruby
lxsameer has quit [Ping timeout: 260 seconds]
CJKinni` has joined #ruby
CJKinni has quit [Quit: Leaving]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
druonysus has joined #ruby
joneshf-laptop has quit [Ping timeout: 265 seconds]
duoi has quit [Ping timeout: 276 seconds]
ChiefAlexander has joined #ruby
CJKinni` has quit [Read error: Connection reset by peer]
phrozen77 has joined #ruby
duoi has joined #ruby
CJKinni has joined #ruby
ferr has quit [Quit: WeeChat 1.5]
startupality has quit [Quit: startupality]
siovene has quit [Read error: Connection reset by peer]
hobodave_ has quit [Quit: Computer has gone to sleep.]
bronson has joined #ruby
hobodave has joined #ruby
siovene has joined #ruby
freija1 has joined #ruby
jancel has joined #ruby
pietr0 has joined #ruby
rbennacer has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
freija has quit [Ping timeout: 260 seconds]
freija1 is now known as freija
OTORelic has joined #ruby
blackmesa has joined #ruby
ledestin has joined #ruby
freija_ has quit [Ping timeout: 252 seconds]
bronson has quit [Ping timeout: 252 seconds]
shinnya has joined #ruby
f4cl3y has joined #ruby
labaleine has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
lacce has quit []
Tyrant_ has joined #ruby
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Tyrant_> hello
banister has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Tyrant_> are their rules here about prosective hires’?
aegis3121 has joined #ruby
<Peetooshock> Tyrant_, welcome to the internet. no rules here.
<Tyrant_> lol, no welcome needed
<Tyrant_> im over 30
<Tyrant_> irc since 4th grade
jaruga____ has quit [Quit: jaruga____]
<Tyrant_> but thank you
madgen has quit [Ping timeout: 240 seconds]
<Tyrant_> so i want to make about 10mil a day
swills has quit [Quit: Leaving]
<Peetooshock> Well, you can
<Tyrant_> i need scrapers
<Tyrant_> and ror
araujo_ has joined #ruby
<Peetooshock> And some brains
<Tyrant_> we have them, team is small
<Tyrant_> i chose the best
tomchapin has joined #ruby
<Tyrant_> open for msg?
lucidity has joined #ruby
freija has quit [Quit: freija]
araujo has quit [Ping timeout: 246 seconds]
<bazzy> any gentoo users in here?
<lucidity> not currently
<lucidity> gentoo is pretty hardcore
swills has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
<bazzy> well it's all based on asking the question how people play with ruby and their package manager...
<squigz> "I want to make 10m a day"
<squigz> don't we all
new_user has joined #ruby
Cohedrin has joined #ruby
Guest38 has quit [Remote host closed the connection]
skweek has quit [Ping timeout: 260 seconds]
roshanavand_ has joined #ruby
Guest38 has joined #ruby
<gregf_> i need to buy me a book someday, 'how to be a millionaire for a day'
<Papierkorb> get a loan?
<gregf_> for a million you'd prolly need another couple million in the bank *runs*
<gregf_> but then , you're already a millionaire... so why need another
<Papierkorb> because why not
<gregf_> steve jobs had his millions. *wonders how many of those he now has.. whereever he is...*
ftj has quit [Quit: Textual IRC Client: www.textualapp.com]
roshanavand has quit [Ping timeout: 276 seconds]
idefine has joined #ruby
flughafen_ has joined #ruby
SilverKey has quit [Quit: Halted.]
ta_ has joined #ruby
<lucidity> i've been doing a lot of swift and php for work and i've been tinkering with ruby in my spare time...how do you think the transition from php to ruby will be?
<lucidity> (I really, really like Swift)
bryanray has joined #ruby
<Papierkorb> no idea what swift is. But the transition to ruby from PHP will be fabolous.
<lucidity> swift = os
<lucidity> ios*
<Papierkorb> oh that apple lang
yaewa has quit [Quit: Leaving...]
codecop has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomchapin has joined #ruby
kareeoleez has joined #ruby
RegulationD has quit [Ping timeout: 246 seconds]
moei has joined #ruby
<lucidity> yeah it's pretty neat imo
IrishGringo has quit [Ping timeout: 265 seconds]
ta__ has joined #ruby
shadeslayer has quit [Ping timeout: 250 seconds]
SilverKey has joined #ruby
lapide_viridi has joined #ruby
sesquipedalian has quit [Ping timeout: 244 seconds]
lapide_viridi has quit [Remote host closed the connection]
firstdayonthejob has joined #ruby
jgt3 has quit [Ping timeout: 265 seconds]
CJKinni_ has joined #ruby
ta_ has quit [Ping timeout: 260 seconds]
rodfersou|lunch is now known as rodfersou
Pupeno has quit [Remote host closed the connection]
madgen has joined #ruby
SilverKey has quit [Ping timeout: 246 seconds]
Pupeno has joined #ruby
araujo_ has quit [Quit: Leaving]
kareeoleez has quit [Ping timeout: 276 seconds]
<bazzy> wait.. Steve Jobs faked his own death?
skalfyfan has joined #ruby
skalfyfan has quit [Client Quit]
p1k has quit [Ping timeout: 260 seconds]
mark_66 has quit [Remote host closed the connection]
RegulationD has joined #ruby
jamto11 has joined #ruby
CJKinni_ has quit [Client Quit]
skalfyfan has joined #ruby
SilverKey has joined #ruby
araujo has joined #ruby
Mia has joined #ruby
Mia has joined #ruby
Pupeno has quit [Ping timeout: 244 seconds]
kareeoleez has joined #ruby
j_mcnally has joined #ruby
skalfyfan has quit [Client Quit]
<benzrf> o3o
<benzrf> lucidity: screw ruby - just learn haskell
skalfyfan has joined #ruby
opentux has joined #ruby
Axy has joined #ruby
skalfyfan has quit [Client Quit]
jancel has quit [Remote host closed the connection]
jancel has joined #ruby
<weaksauce> lucidity ruby is nice. swift is nice. php is not so nice
eljimmy has quit [Quit: This computer has gone to sleep]
chosen1 has joined #ruby
<ytti> learving curve for purely functional is pretty steep
<ytti> but i wonder if that would be true for someone with 0 experience in programming
ferr has joined #ruby
<ytti> is it only hard, because it's so different
<ytti> or is it inherently hard
skalfyfan has joined #ruby
eljimmy has joined #ruby
new_user has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
chouhoul_ has joined #ruby
Mia has quit [Ping timeout: 240 seconds]
Pupeno has joined #ruby
skalfyfan has quit [Client Quit]
jaguarmagenta has joined #ruby
ramfjord has joined #ruby
karmatr0n has quit [Ping timeout: 240 seconds]
SilverKey has quit [Quit: Halted.]
chouhou__ has joined #ruby
blackmesa has quit [Ping timeout: 265 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
Pupeno_ has joined #ruby
Pupeno has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Ping timeout: 260 seconds]
bougyman has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 265 seconds]
aupadhye has quit [Ping timeout: 276 seconds]
jaguarmagenta has quit [Ping timeout: 240 seconds]
emilkarl[away] is now known as emilkarl
skalfyfan has joined #ruby
loinclot_ has joined #ruby
err_ok has quit [Ping timeout: 260 seconds]
noobsu has joined #ruby
hahuang65 has quit [Quit: WeeChat 1.4]
Pupeno_ has quit [Ping timeout: 260 seconds]
hollywood has quit [Quit: Quitting]
loinclot_ has quit [Read error: Connection reset by peer]
<benzrf> ytti: i think it's harder to learn haskell from scratch than python from scratch, if by learn you mean "come to understand the semantics of, in a way that allows you to really understand what code does, and design systems"
loinclot_ has joined #ruby
skalfyfan has quit [Client Quit]
loinclot_ has quit [Client Quit]
<benzrf> er, wait
<benzrf> flip haskell and python
<benzrf> i think it's harder to learn haskell from scratch than python from scratch, if by learn you mean "gain the ability to make your computer do things that are useful"
<benzrf> "without necessarily 100% understanding the conceptual stuff behind what you're doing"
loincloth has quit [Ping timeout: 246 seconds]
hahuang65 has joined #ruby
nyuszika7h has quit [Quit: WeeChat 1.4]
Weavel has quit [Quit: Friends help you move. Real friends help you move bodies.]
err_ok has joined #ruby
govg has joined #ruby
shadeslayer has joined #ruby
duoi has quit [Ping timeout: 276 seconds]
mrgrieves has joined #ruby
duoi has joined #ruby
jancel has quit [Remote host closed the connection]
ta__ has quit [Remote host closed the connection]
jwdunne has joined #ruby
jwdunne has left #ruby ["AndroIRC"]
blaxter has quit [Quit: foo]
jwdunne has joined #ruby
wilbert has quit [Ping timeout: 276 seconds]
<RegulationD> fwiw, one of the stated goals of "haskell book" is to teach haskell in a way that does not assume that you know another language. I can't really comment on how successful it is, but I appreciate the recognition that such assumptions were a part of most other learning materials.
dopie has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
the_drow has joined #ruby
govg has quit [Ping timeout: 252 seconds]
dhollinger has joined #ruby
govg has joined #ruby
fr3d_ativista has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
j_mcnally has joined #ruby
jwdunne has quit [Ping timeout: 276 seconds]
mdw has joined #ruby
Peetooshock has quit [Quit: Ой, всё!]
symm- has quit [Ping timeout: 276 seconds]
kareeoleez has quit [Remote host closed the connection]
davedev2_ has quit [Ping timeout: 250 seconds]
kareeoleez has joined #ruby
pawnbox_ has quit [Ping timeout: 260 seconds]
domgetter has joined #ruby
davedev24 has joined #ruby
nyuszika7h has joined #ruby
noobsu has quit [Read error: Connection reset by peer]
skalfyfan has joined #ruby
Devalo has joined #ruby
noobsu has joined #ruby
skalfyfan has quit [Client Quit]
terlar has quit [Ping timeout: 250 seconds]
SilverKey has joined #ruby
ramfjord_ has joined #ruby
skalfyfan has joined #ruby
govg has quit [Ping timeout: 252 seconds]
SilverKey has quit [Client Quit]
SilverKey has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
kareeoleez has quit [Remote host closed the connection]
bryanray has quit [Ping timeout: 265 seconds]
minimalism has joined #ruby
tagaulap has quit [Quit: Connection closed for inactivity]
allcentury has quit [Ping timeout: 260 seconds]
j_mcnally has quit [Quit: Textual IRC Client: www.textualapp.com]
wilbert has joined #ruby
gregf has quit [Quit: WeeChat 1.5]
digitalfiz has joined #ruby
gregf has joined #ruby
<digitalfiz> hey guys i am a devops dude trying to set up a travis build for a ruby app and was wondering is there a way to make the app not require the database when running unit tests?
rkoller has joined #ruby
<digitalfiz> err this is a rail app sorry might be a better channel for this
arlek has quit [Ping timeout: 252 seconds]
Caelum has quit [Ping timeout: 260 seconds]
duoi has quit [Ping timeout: 276 seconds]
blackmesa has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
bauerbob has joined #ruby
<adaedra> ?rails
<ruby[bot]> Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
duoi has joined #ruby
hrsxpj has quit [Remote host closed the connection]
<digitalfiz> thanks @adaedra
emilkarl is now known as emilkarl[away]
<nareiber> assuming you're using ar
kareeoleez has joined #ruby
<digitalfiz> yeah they are
emilkarl[away] has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mdw has joined #ruby
jenrzzz has joined #ruby
emilkarl has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 260 seconds]
adgtl has quit [Quit: EliteBNC - http://www.elitebnc.org/]
IrishGringo has joined #ruby
adgtl has joined #ruby
kasisnu has joined #ruby
pawnbox has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
rbennacer has quit [Remote host closed the connection]
B1n4r10 has joined #ruby
GodFather has quit [Ping timeout: 244 seconds]
VeryBewitching has joined #ruby
Pupeno has joined #ruby
bauerbob has quit [Quit: bauerbob]
Devalo has quit [Ping timeout: 250 seconds]
Devalo_ has joined #ruby
kareeoleez has joined #ruby
jancel has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
Guest31642 has joined #ruby
bryanray has joined #ruby
sauvin has quit [Remote host closed the connection]
Guest31642 has joined #ruby
Guest31642 has quit [Changing host]
duoi has quit [Ping timeout: 250 seconds]
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hk238 has quit [Quit: http://www.kvirc.net/ 4.9.1 Aria]
arlek has joined #ruby
<bazzy> Radar, when going thru Ch.1 of Rails4 in Action .. I found routing "resource" to quite vague
ChiefAlexander has joined #ruby
LoneHerm_ has joined #ruby
<bazzy> resources :purchases and what it exactly means
<bazzy> I can research it.. just felt like vocalizing
kareeoleez has quit [Ping timeout: 240 seconds]
Guest31642 is now known as bougyman
chipotle has quit [Quit: cheerio]
nankyokusei has joined #ruby
crdpink has quit [Ping timeout: 250 seconds]
beauby has joined #ruby
duoi has joined #ruby
LoneHerm_ has quit [Ping timeout: 240 seconds]
bluOxigen_ has joined #ruby
bryanray has quit [Quit: Textual IRC Client: www.textualapp.com]
kobain has quit [Ping timeout: 260 seconds]
kgrz has quit [Ping timeout: 250 seconds]
arlek has quit [Ping timeout: 240 seconds]
SilverKey has quit [Quit: Halted.]
kareeoleez has joined #ruby
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rbennacer has joined #ruby
bluOxigen has quit [Ping timeout: 252 seconds]
SilverKey has joined #ruby
crdpink has joined #ruby
jhack has quit [Quit: jhack]
nankyokusei has quit [Ping timeout: 244 seconds]
jancel has quit [Read error: Connection reset by peer]
AndroidLoverInSF has joined #ruby
chipotle has joined #ruby
flughafen_ has quit [Ping timeout: 265 seconds]
kareeoleez has quit [Ping timeout: 250 seconds]
roshanavand_ has quit [Quit: This computer has gone to sleep]
robbyoconnor has joined #ruby
AndroidLoverInSF has quit [Ping timeout: 260 seconds]
Hates_ has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
AndroidLoverInSF has joined #ruby
idefine has quit [Remote host closed the connection]
aegis3121 has quit [Ping timeout: 252 seconds]
robbyoconnor has quit [Remote host closed the connection]
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
opentux has quit [Quit: Leaving.]
celly has joined #ruby
robbyoconnor has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
f4cl3y has quit [Ping timeout: 240 seconds]
skalfyfan has joined #ruby
aegis3121 has joined #ruby
edwinvdgraaf has joined #ruby
platzhirsch has joined #ruby
elifoster has quit [Ping timeout: 260 seconds]
chouhou__ has quit [Remote host closed the connection]
idefine has joined #ruby
chouhoulis has joined #ruby
kareeoleez has joined #ruby
bougyman_ has joined #ruby
wigust has joined #ruby
blackmesa has joined #ruby
CJKinni has quit [Read error: Connection reset by peer]
araujo_ has joined #ruby
CJKinni has joined #ruby
elifoster has joined #ruby
noobsu has quit [Remote host closed the connection]
araujo_ has quit [Max SendQ exceeded]
Yiota_ has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
duoi has quit [Ping timeout: 250 seconds]
CJKinni has quit [Remote host closed the connection]
araujo_ has joined #ruby
kareeoleez has quit [Ping timeout: 260 seconds]
CJKinni has joined #ruby
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yiota has quit [Ping timeout: 260 seconds]
araujo has quit [Ping timeout: 276 seconds]
skalfyfan has joined #ruby
blaxter has joined #ruby
ljames has quit []
bougyman_ has quit [Quit: ZNC 1.6.3 - http://znc.in]
rbennacer has quit [Remote host closed the connection]
Pupeno has quit [Quit: Leaving...]
nweiderm_ has joined #ruby
nweiderm_ has quit [Client Quit]
duoi has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
johnmilton has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
dmr8 has joined #ruby
kareeoleez has joined #ruby
mosh has quit [Quit: LayerBNC - https://LayerBNC.org/ (Account holder has terminated this connection.)]
kareeoleez has quit [Remote host closed the connection]
beatdown_ has quit [Quit: ZNC 1.6.1 - http://znc.in]
edwinvdg_ has joined #ruby
ctp has joined #ruby
ta_ has joined #ruby
kareeoleez has joined #ruby
celly has quit [Remote host closed the connection]
edwinvdgraaf has quit [Ping timeout: 276 seconds]
govg has joined #ruby
Eiam has joined #ruby
stannard has quit [Remote host closed the connection]
skalfyfan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
noobsu has joined #ruby
ta__ has joined #ruby
skalfyfan has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
fr3d_ativista has quit [Read error: Connection reset by peer]
prestorium has joined #ruby
jamto11 has quit [Remote host closed the connection]
jancel has joined #ruby
pietr0 has quit [Quit: pietr0]
whathappens has quit [Remote host closed the connection]
ta__ has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
ta_ has joined #ruby
whathappens has quit [Remote host closed the connection]
yqt has joined #ruby
umdstu has quit [Quit: umdstu]
jamto11 has joined #ruby
<tubbo> so with el capitan, do i just have to append each gem install command with `-n/usr/local/bin` now or is there something i can add to gemrc?
ta_ has quit [Read error: Connection reset by peer]
ta__ has joined #ruby
<pipework> tubbo: I just installed homebrew to my home directory under ~/.config/homebrew, but that's just me.
<pipework> Then I installed chruby and ruby-install, had to fork those to get them working right for an XDG_CONFIG_BASE directory install.
chouhoulis has joined #ruby
allcentury has joined #ruby
GodFather has joined #ruby
pietr0 has joined #ruby
jenrzzz has joined #ruby
celly has joined #ruby
<tubbo> pipework: ahh ok, you reinstalled/moved homebrew from /usr/local to ~/.config/homebrew?
<tubbo> why did you install chruby and ruby-install? i already had them installed and they seemed to work
<pipework> tubbo: I installed it directly there.
<havenwood> tubbo: brew install chruby ruby-install #ftw
<tubbo> pipework: use less pronouns
<tubbo> :D
<pipework> tubbo: I didn't move it from one place to another on my thing.
<pipework> It went straight in.
skalfyfan has quit [Quit: Textual IRC Client: www.textualapp.com]
<tubbo> pipework: new machine?
<pipework> Directly in the place without being put somewhere else first
<tubbo> i didn't need to reinstall anything, it was nice
<pipework> tubbo: reinstalled OSX after formatting.
joneshf-laptop has joined #ruby
<tubbo> ah ok
skalfyfan has joined #ruby
<pipework> Now I have a privileged user I don't use except when I trust/need something to work that won't otherwise.
<pipework> So my normal user typically has everything they want just to them that's not applicable for system-wide use in ~/.config/ and I've forked a lot of projects to get them to support XDG_CONFIG_HOME as the install location, but also came up with a lot of symlinks to preserve old behaviour until I remove the assumptive behaviours from all the projects.
idefine_ has joined #ruby
<tubbo> the answer i was looking for was `gem: "--no-ri --no-rdoc --bindir /usr/local/bin"` in ~/.gemrc fwiw.
SilverKey has quit [Quit: Halted.]
<pipework> My admin user has homebrew installed like normal, so I can install brew stuff as normal and execute it as my normal user.
Guest38458 has quit [Ping timeout: 260 seconds]
<pipework> My normal user just can't write to /usr/local
elifoster has quit [Ping timeout: 240 seconds]
idefine has quit [Ping timeout: 252 seconds]
spider-mario has quit [Read error: Connection reset by peer]
flopsec has quit [Ping timeout: 244 seconds]
r0bby_ has joined #ruby
ta__ has quit [Read error: Connection reset by peer]
jancel has quit [Remote host closed the connection]
kobain has joined #ruby
ctrlrsf has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
idefine_ has quit [Ping timeout: 276 seconds]
mlehrer has quit [Ping timeout: 240 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
ta__ has joined #ruby
robbyoconnor has quit [Ping timeout: 260 seconds]
spider-mario has joined #ruby
mago0 has joined #ruby
ta__ has quit [Client Quit]
jamto11 has quit []
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
ta_ has joined #ruby
elifoster has joined #ruby
<shevy> let your normal user break free from the chains of slavery!
<pipework> shevy: trying to engineer some social for yourself?
alxgsv has quit [Ping timeout: 276 seconds]
nankyokusei has joined #ruby
govg has quit [Ping timeout: 265 seconds]
govg has joined #ruby
jhack has joined #ruby
r0bby_ has quit [Excess Flood]
r0bby_ has joined #ruby
tekk has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
jgt3 has joined #ruby
m_antis has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
vdamewood has joined #ruby
rbennacer has joined #ruby
allcentury has quit [Ping timeout: 276 seconds]
arlek has joined #ruby
ctrlrsf has joined #ruby
flopsec has joined #ruby
pawnbox has quit [Read error: Connection reset by peer]
masaru- has left #ruby [#ruby]
mago0 has quit [Quit: WeeChat 1.2]
pawnbox has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
symm- has joined #ruby
labaleine has joined #ruby
cpup has joined #ruby
<shevy> freedom!
<pipework> shevy: Freedom from privacy!
mbreedlove has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
swills has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
druonysus has quit [Ping timeout: 246 seconds]
CoderPuppy has quit [Ping timeout: 260 seconds]
siovene has quit [Quit: Connection closed for inactivity]
mbreedlove has quit [Max SendQ exceeded]
flashpoint9 has quit [Remote host closed the connection]
ta_ has quit [Read error: Connection reset by peer]
jancel has joined #ruby
ta_ has joined #ruby
stannard has joined #ruby
alxgsv has joined #ruby
zel has joined #ruby
cdg has joined #ruby
zel is now known as Guest32203
drewo has joined #ruby
djcp has quit [Ping timeout: 265 seconds]
Captain_Crow has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
brunto has joined #ruby
tomchapin has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
Ishido has quit [Quit: Roads? Where We're Going We Don't Need Roads.]
jhack has quit [Quit: jhack]
BackEndCoder has quit [Quit: https://github.com/BackEndCoder]
nando294021 has quit [Ping timeout: 276 seconds]
jhack has joined #ruby
emptyflask has joined #ruby
codecop has quit [Remote host closed the connection]
madgen has quit [Ping timeout: 276 seconds]
perlgod_ has joined #ruby
CoderPuppy has joined #ruby
blackgoat has joined #ruby
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
perlgod_ has quit [Read error: Connection reset by peer]
sj has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
ta__ has joined #ruby
ta_ has quit [Read error: Connection reset by peer]
skolman_ has joined #ruby
cpup has quit [Ping timeout: 260 seconds]
sj has quit [Client Quit]
perlgod has quit [Ping timeout: 260 seconds]
sj has joined #ruby
elifoster has quit [Ping timeout: 246 seconds]
idefine has joined #ruby
nankyokusei has quit [Remote host closed the connection]
sj has quit [Client Quit]
codecop has joined #ruby
perniciouscaffei has joined #ruby
_ht has quit [Ping timeout: 265 seconds]
<Captain_Crow> is "shoes" still the most used gui library for ruby or is there something better now?
govg has quit [Ping timeout: 260 seconds]
eljimmy has quit [Quit: This computer has gone to sleep]
xall has joined #ruby
govg has joined #ruby
_ht has joined #ruby
codecop has quit [Remote host closed the connection]
edwinvdg_ has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 276 seconds]
OTORelic has quit [Quit: WeeChat 1.4]
djbkd has joined #ruby
jenrzzz has joined #ruby
psf has quit [Read error: Connection reset by peer]
ta__ has quit [Read error: Connection reset by peer]
OTORelic has joined #ruby
haxrbyte has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
sneakerhax has joined #ruby
madgen has joined #ruby
djbkd has quit [Client Quit]
Don_John has joined #ruby
Don_John has quit [Remote host closed the connection]
wigust has quit [Remote host closed the connection]
<pipework> Captain_Crow: Personally, and I don't really know for sure at all, but I think most people aren't doing gui's with ruby as much as they've moved to JS for those.
drewo has quit [Ping timeout: 260 seconds]
<Captain_Crow> ok thanks
ur5us has joined #ruby
djbkd has joined #ruby
skweek has joined #ruby
brunto has quit [Ping timeout: 250 seconds]
|2701 has quit [Quit: Connection closed for inactivity]
ringabela has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
gnufied has quit [Quit: Leaving]
Es0teric has joined #ruby
VeryBewitching has quit [Quit: Konversation terminated!]
ringabela has quit [Ping timeout: 250 seconds]
madgen has quit [Ping timeout: 260 seconds]
aef has quit [Remote host closed the connection]
<shevy> Captain_Crow I use ruby-gnome... but actually I am still sitting in gtk2, I am so lazy... gtk3 is supported though
malconis has joined #ruby
synthroid has quit []
dmr8 has quit [Quit: Leaving]
psf has joined #ruby
CIA has quit [Quit: leaving]
celly has quit []
madgen has joined #ruby
<Captain_Crow> shevy, thanks i'll take a look at gtk3
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
m_antis has quit [Ping timeout: 250 seconds]
jancel has quit [Remote host closed the connection]
gnufied has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby
CJKinni has quit [Ping timeout: 252 seconds]
rkoller has quit [Quit: Textual IRC Client: www.textualapp.com]
julieeharshaw has quit [Ping timeout: 250 seconds]
iamvery_ has joined #ruby
nofxx has quit [Ping timeout: 250 seconds]
Guest90636 has joined #ruby
eljimmy has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
whathappens has joined #ruby
howdoi has joined #ruby
qasaur has joined #ruby
jancel has joined #ruby
m_antis has joined #ruby
flashpoint9 has joined #ruby
horaceheaven has joined #ruby
toretore has quit [Ping timeout: 246 seconds]
nerium has joined #ruby
lucidity has quit [Ping timeout: 265 seconds]
GodFather has quit [Remote host closed the connection]
wolffles has joined #ruby
eljimador has joined #ruby
<wolffles> would this be considered bad practice? array.combination(2).find{|a,b| array[a] + array[b] == 0};rescue
m_antis has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
startupality has joined #ruby
cpup has joined #ruby
djbkd has quit [Remote host closed the connection]
A124 has quit [Quit: '']
<wolffles> if i used rescue to return nil?
CoderPuppy has quit [Ping timeout: 244 seconds]
ChiefAlexander has joined #ruby
startupality has quit [Client Quit]
skalfyfan has quit [Ping timeout: 250 seconds]
GodFather has joined #ruby
A124 has joined #ruby
<havenwood> wolffles: what error are you rescuing? why? are you really reading indexes from the Array? show example data?
platzhirsch has quit [Quit: WeeChat 1.4]
aegis3121 has quit [Ping timeout: 260 seconds]
Mia has joined #ruby
Mia has joined #ruby
CoderPuppy has joined #ruby
mbreedlove has joined #ruby
gnufied has quit [Quit: Leaving]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has quit [Ping timeout: 276 seconds]
<wolffles> rescuing a typeError. examples would be array=[1,3,5] & array[1,3,5,-3]. and its just the indexes are the requirement for the practice.
<smathy> array[-3] won't raise an error.
Axy has quit [Ping timeout: 240 seconds]
mbreedlove has quit [Max SendQ exceeded]
<smathy> ...oh, you mean because of nil +
<wolffles> yes
Axy has joined #ruby
wrkrcoop has joined #ruby
<smathy> Ok, that'll be a NoMethodError
rodfersou has quit [Quit: leaving]
lucidity has joined #ruby
cpup has quit [Ping timeout: 260 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<wolffles> this is what i get when array = [1,3,5] “TypeError: nil can't be coerced into Fixnum”
<smathy> Ah, you're right, when it's the array[b]
jhack has quit [Quit: jhack]
jancel has quit [Remote host closed the connection]
<smathy> ...you'll get both.
mbreedlove has joined #ruby
kgrz has joined #ruby
iamvery__ has joined #ruby
tomchapin has joined #ruby
<wolffles> so i used rescue to escape it. just wondering if that is good practice cuz ive read some arguements online.
<smathy> To your original question, I'm still not really seeing what you're doing, you're using the values of the array as indexes into the array - seems very odd.
govg has quit [Ping timeout: 260 seconds]
jhack has joined #ruby
Mia has quit [Ping timeout: 260 seconds]
mbreedlove has quit [Max SendQ exceeded]
djbkd has joined #ruby
govg has joined #ruby
<wolffles> yeah it was werid to me too but i found you can use the values to find the indices within the block, instead of using more methods to convert them to the index
skolman_ has quit [Remote host closed the connection]
ma489 has joined #ruby
skolman_ has joined #ruby
horaceheaven has quit [Quit: horaceheaven]
mbreedlove has joined #ruby
mbreedlove has quit [Client Quit]
<smathy> wolffles, it's your code that's weird, I just can't grok the purpose of this code. You're using values that are seemingly arbitrary as indexes back into the same array, and *this* is the reason you're getting those `nil`s in the first place, are you sure you didn't want to be checking the values themselves? Ie. `.find {|a,b| a + b == 0 }` ?
tlaxkit has joined #ruby
horaceheaven has joined #ruby
horaceheaven has quit [Client Quit]
mbreedlove has joined #ruby
iamvery_ has quit [Ping timeout: 260 seconds]
<wolffles> its just one of those practice problems
`tim` has joined #ruby
<wolffles> here i have 3 different solutions
kgrz has quit [Ping timeout: 276 seconds]
iamvery__ has quit [Remote host closed the connection]
<pipework> wolffles: So you aren't using permutations and any? with a block?
<pipework> Cause that's what I'd do.
jaguarmagenta has joined #ruby
jgt3 has quit [Ping timeout: 246 seconds]
<smathy> wolffles, umm, that code isn't doing what you think it is.
edwinvdgraaf has joined #ruby
<smathy> wolffles, array.combination(2).find is NOT giving the indexes to your block, it's giving the values themselves.
jhack has quit [Quit: jhack]
<wolffles> believe it or not it passes the tests
<smathy> Accidentally, you want: (0...array.length).to_a.combination(2)
skolman_ has quit [Ping timeout: 276 seconds]
<wolffles> like i said i found out you can return indexes buy doing array[element] within the block
<pipework> wolffles: your tests need better cases then
<wolffles> by*
Caelum has joined #ruby
<smathy> wolffles, you've misunderstood what's happening here.
ryft has joined #ruby
iamvery_ has joined #ruby
jaguarmagenta has quit [Ping timeout: 276 seconds]
<wolffles> pipework: permutation would return the same solution twice just reversed
chipotle_ has joined #ruby
<wolffles> i dont need repeats
<smathy> The [1,3] you're getting is an accident because the result you want happens to be included in the array values you're passing in.
chipotle has quit [Read error: Connection reset by peer]
wrkrcoop has quit [Quit: wrkrcoop]
<smathy> Pass in the array: [0, 3, -1, -3] instead.
BTRE has quit [Read error: Connection reset by peer]
ryft has quit [Client Quit]
BTRE has joined #ruby
<smathy> ...and then change your code to mine and see the light: (0...array.length).to_a.combination(2).find{|a,b| array[a] + array[b] == 0}
<pipework> wolffles: If you got every permutation of pairings from an array and then called #any?{|(a,b)| a.+(b).eql?(0) }
<pipework> You could just use find though too
yfeldblum has joined #ruby
<wolffles> ahh i see
prestorium has quit [Quit: Leaving]
binaryplease has joined #ruby
<pipework> Could even paralulize it trivially
<smathy> paralulz it.
<havenwood> >> 0.zero?
<ruby[bot]> havenwood: # => true (https://eval.in/572306)
<pipework> havenwood: They need the value if it's true, so .zero? yeah.
<havenwood> >> -0.negative?
<pipework> Much better than my silly stuff.
<ruby[bot]> havenwood: I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
iamvery__ has joined #ruby
ledestin has joined #ruby
iamvery_ has quit [Ping timeout: 240 seconds]
wilbert has quit [Ping timeout: 260 seconds]
rbennacer has quit [Ping timeout: 250 seconds]
iamvery__ has quit [Remote host closed the connection]
|ifei5g00d has joined #ruby
SilverKey has joined #ruby
mbreedlove has quit [Ping timeout: 244 seconds]
<nerium> Is there a way to run system commands without printing to stdout but still getting access to both output and status?
OTORelic has quit [Ping timeout: 252 seconds]
bronson has joined #ruby
greg__ has joined #ruby
pat__ has quit [Ping timeout: 276 seconds]
greg__ has quit [Remote host closed the connection]
<smathy> nerium, ``
|ifei5good has quit [Ping timeout: 260 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<nerium> smathy: What?
<smathy> nerium, x = `ls`
<smathy> nerium, puts $?
iamvery_ has joined #ruby
<nerium> Wont that print to stderr?
<ytti> pretty much never ever use ``, %x(), or system()
<nerium> ytti: Got any other recommendation?
<smathy> nerium, you asked "without printing to stdout" - did you mean stderr?
<ytti> use popen every time, so you can pass binary and arguments separately (execve, instead of system)
<nerium> I mean both, sorry
<ytti> this way it's safe, regardless of bad input
<ytti> and you don't have to rely being smarter than attacker on input validation
<ytti> an full control on stdout, stderr and return value
r0bby_ has quit [Ping timeout: 250 seconds]
<ytti> it's shame all scripting languages make the correct way complicated and the wrong way simple
<nerium> ytti: Aha, that’s perfect
<nerium> Thanks!
akiTendo has quit [Quit: akiTendo]
bronson has quit [Ping timeout: 252 seconds]
<ytti> sensible implamentation would do this by default
Ballo has joined #ruby
<ytti> out, err = %x(cmd, *args)
<ytti> sadly that is not so
ChiefAlexander has quit [Quit: Leaving...]
<ytti> whole bunch of security issues caused by bad choices in language design
Yiota_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mbreedlove has joined #ruby
<Ballo> hello, I have a question: I have some objects which I want to run a method which returns true or false MyObj#test and also alter their state. If I have these objects in an array, is it possible to run all the .test methods and then return the list of altered objects if any one of them returns false?
* Ballo ponders if he can do this with array#all if he changes the conditional
LoneHermit has joined #ruby
<Ballo> no, don't think so. I need the objects in their new state
bobbycvi_ has joined #ruby
<Ballo> something like map, but returning the new state depending on the conditional
bobbycvi_ has quit [Client Quit]
jenrzzz_ has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
bobbycvi_ has joined #ruby
pat__ has joined #ruby
LoneHermit has quit [Ping timeout: 252 seconds]
nofacade has quit [Quit: Textual IRC Client: www.textualapp.com]
hobodave has quit [Quit: Computer has gone to sleep.]
emptyflask has quit [Ping timeout: 265 seconds]
OTORelic has joined #ruby
labaleine has quit [Read error: Connection reset by peer]
vdamewood has quit [Ping timeout: 276 seconds]
dhollinger has quit [Quit: WeeChat 1.4]
horaceheaven has joined #ruby
blackmesa has quit [Ping timeout: 246 seconds]
polishdub has quit [Quit: Leaving]
skolman_ has joined #ruby
kareeoleez has quit [Remote host closed the connection]
r0bby_ has joined #ruby
wilsonc91 has joined #ruby
wilsonc91 has quit [Client Quit]
wilsonc91 has joined #ruby
[Butch] has quit [Read error: Connection reset by peer]
zeroDi has joined #ruby
davedev24 has quit [Ping timeout: 276 seconds]
kirun has quit [Remote host closed the connection]
karmatr0n has joined #ruby
droptone has quit [Ping timeout: 260 seconds]
<Ballo> something like: p [TestVOIPMount.new, TestErr.new].map { |t| return t.message if !t.test }
<Ballo> oh wait, it works. Have to remove the return an add a .concat
kies has quit [Ping timeout: 260 seconds]
<havenwood> Ballo: Ruby doesn't have a Enumerable#select_map though one has been proposed: https://bugs.ruby-lang.org/issues/5663
davedev24 has joined #ruby
moeabdol has joined #ruby
<havenwood> Ballo: Just an aside but Elixir has a filter_map that does just that: http://elixir-lang.org/docs/stable/elixir/Enum.html#filter_map/3
* smathy throws a map {}.compact grenade in and runs
vdamewood has joined #ruby
Es0teric has quit [Remote host closed the connection]
<havenwood> Ballo: As mentioned ^ compact the nils away.
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ballo> well, this appears to work:
<Ballo> [TestVOIPMount.new, TestErr.new].map { |t| t.message if !t.test }.compact.each {|t| p t}
<pipework> havenwood: I don't like the #itself method or whatever they came up with.
<Ballo> if there is a cleaner way I'm all ears
<pipework> I loved doing #select{self} but wanted to be able to do #select(&:self)
<havenwood> pipework: i actually like itself
<pipework> What I really wanted was a method that was like #truthy?
<havenwood> pipework: i liked the idea of giving itself an optional block for a map version or tap
labaleine has joined #ruby
<havenwood> rejected!
<pipework> havenwood: I think it's helpful in the context that I care about it being 'itself'.
<havenwood> >> self == itself
<ruby[bot]> havenwood: # => true (https://eval.in/572313)
<IceDragon> itself is a thing? D:
<IceDragon> also hi
<pipework> Yeah, but when I have a collection of objects and I want only truthy objects back, #itself doesn't convey that.
<pipework> I feel like #select { self } conveys the desire for truthiness better, unfortunately.
<IceDragon> pipework: select(&:itself) ?
<havenwood> >> [:oh, :me, nil, :my].select &:itself
<ruby[bot]> havenwood: # => [:oh, :me, :my] (https://eval.in/572314)
<havenwood> compact of course
Devalo_ has quit [Remote host closed the connection]
<pipework> IceDragon: I know what I can do, I just think itself is an ugly method to call
moeabdol has quit [Ping timeout: 252 seconds]
<IceDragon> pipework: pfft, ugly method call he says, try dealing with camelCaseMethodNames in your ruby
<pipework> >> Object.method(:itself).owner
<ruby[bot]> pipework: # => Kernel (https://eval.in/572315)
<pipework> IceDragon: I settle for no one!
<havenwood> IceDragon: headlessCamels are an abomination
<IceDragon> Now that gets my gears grinding
jenrzzz_ has quit [Ping timeout: 240 seconds]
<IceDragon> havenwood: Authorize.Net has it
<IceDragon> and now I have to deal with it
<pipework> I want our naming convention to support plural ownership of plural things.
<pipework> users_blogs is too ambiguous
biberu has quit []
|2701 has joined #ruby
binaryplease has quit [Ping timeout: 276 seconds]
jenrzzz has joined #ruby
nankyokusei has joined #ruby
<IceDragon> pipework: Now that I think about it, are you using rails?
<pipework> IceDragon: I'm not using anything in this context.
<pipework> Though if we're just talking theoretically, I don't flip out about activesupport usage out of hand. :)
sumobob has joined #ruby
<IceDragon> *raises finger to protest, changes mind and leaves the topic alone*
<IceDragon> I was going to say you could do select(&:present?) if you hated itself so badly
<IceDragon> :P
startupality has joined #ruby
iamvery__ has joined #ruby
<IceDragon> but that would vape booleans and empty objects...
rbennacer has joined #ruby
last_staff has quit [Quit: last_staff]
OTORelic has quit [Ping timeout: 252 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
roshanavand_ has joined #ruby
mwlang has joined #ruby
mooe has joined #ruby
nankyokusei has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 276 seconds]
wilsonc91 has quit [Ping timeout: 252 seconds]
iamvery__ has quit [Remote host closed the connection]
iamvery_ has quit [Ping timeout: 260 seconds]
droptone has joined #ruby
iamvery_ has joined #ruby
<pipework> IceDragon: '' isn't present, but is truthy
zenlot6 has joined #ruby
<IceDragon> yep, that's why it doesn't fit the use case
<pipework> Objects don't really need methods for truthiness, but they make things like select(&:truthy?) look nicer than select{|o| o} and select(&:itself), imo.
zenlot has quit [Ping timeout: 240 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
<havenwood> require 'active_support/core_ext/object/blank'; class Ninja; def empty?; :pocket_sand end end; Ninja.new.present? #=> false
johnmilton has joined #ruby
Loss-up has joined #ruby
<Loss-up> Hello Guys
<havenwood> Loss-up: hi there
jenrzzz has joined #ruby
johnmilton has quit [Ping timeout: 244 seconds]
<pipework> havenwood: not gonna set up object delegates for every object in the collection just so I can define a new method that'll respond with truthiness so I can remove all falsies. That's just mental masturbation.
pawnbox has joined #ruby
<havenwood> pipework: Ninja's aren't great role models.
<havenwood> Ninjas*
<pipework> havenwood: Much like my father, never in sight when you want to take a swing at them.
<shevy> lol
ta_ has joined #ruby
ma489 has quit [Quit: Ex-Chat]
ma489 has joined #ruby
Loss-up has quit [Quit: Leaving]
kasisnu has quit [Ping timeout: 252 seconds]
pawnbox has quit [Ping timeout: 250 seconds]
<Radar> >> [[0,1], [0,0], [1,1], [1,0]].sort
<ruby[bot]> Radar: # => [[0, 0], [0, 1], [1, 0], [1, 1]] (https://eval.in/572317)
<Radar> <3 <3 <3
rumia has quit [Quit: Leaving]
jobewan has quit [Ping timeout: 252 seconds]
jwren has quit [Quit: Lost terminal]
ta_ has quit [Ping timeout: 276 seconds]
chopin has quit [Remote host closed the connection]
ebbflowgo has joined #ruby
Es0teric has joined #ruby
emptyflask has joined #ruby
flashpoint9 has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
hightower2 has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
allcentury has joined #ruby
rbennacer has quit [Remote host closed the connection]
grs has quit [Ping timeout: 276 seconds]
noobsu has quit [Remote host closed the connection]
johnmilton has joined #ruby
kasisnu has joined #ruby
jancel has joined #ruby
vdamewood has quit [Quit: Life beckons.]
hightower3 has quit [Ping timeout: 250 seconds]
firstdayonthejob has quit [Ping timeout: 252 seconds]
Gasher has quit [Remote host closed the connection]
madgen has quit [Quit: Lost terminal]
jancel has quit [Ping timeout: 240 seconds]
drewo has joined #ruby
GodFather has quit [Read error: No route to host]
GodFather has joined #ruby
rbennacer has joined #ruby
rkoller has joined #ruby
ma489 has quit [Ping timeout: 246 seconds]
ebbflowgo has quit [Read error: Connection reset by peer]
B1n4r10 has quit [Ping timeout: 260 seconds]
mynameisbrian has joined #ruby
Captain_Crow has left #ruby [#ruby]
nareiber has quit [Ping timeout: 250 seconds]
chip_ has joined #ruby
drewo has quit [Ping timeout: 252 seconds]
horaceheaven has quit [Quit: horaceheaven]
grs has joined #ruby
GodFather has quit [Remote host closed the connection]
banister has quit [Quit: Textual IRC Client: www.textualapp.com]
r0bby_ has quit [Read error: Connection reset by peer]
r0bby_ has joined #ruby
saneax_AFK is now known as saneax
workmad3 has quit [Ping timeout: 250 seconds]
r0bby_ has quit [Read error: Connection reset by peer]
mynameisbrian has quit [Quit: Leaving]
ebbflowgo has joined #ruby
morenoh149 has joined #ruby
<morenoh149> on osx how do I install ruby? I installed it with rvm but apparently openssl was missing (it's listed as installed via homebrew)
<pipework> morenoh149: ruby-install is pretty nice.
<pipework> I install it through homebrew.
<morenoh149> is ruby-install homebrew?
<havenwood> morenoh149: brew install chruby ruby-install
<pipework> morenoh149: https://brew.sh
jancel has joined #ruby
<hightower2> Hey, how do I make my Ruby script load rubygems, so that I can just execute ./script, instead of bundle exec ./script?
<pipework> hightower2: By using the bundler gem in your code to call the bundler programmatic interface.
<pipework> Bundler.setup and the such
johnmilton has quit [Read error: Connection reset by peer]
<hightower2> oh ok great, thanks, I was trying to load 'rubygems'
kies has joined #ruby
<pipework> require 'bundler/setup' is a good hint for you to start with
banister has joined #ruby
catpoop is now known as pfargtl
pfargtl is now known as Guest69547
ta_ has quit [Ping timeout: 260 seconds]
Guest69547 is now known as catpoop
danostrowski has joined #ruby
dzivalli has joined #ruby
startupality has quit [Quit: startupality]
rbennacer has quit [Ping timeout: 240 seconds]
postmodern has joined #ruby
<danostrowski> anyone know, when running JRuby apps, whether a thread pool of N or N+1 is best (when N is the number of CPUs available), generally?
<danostrowski> Or, that is, have an opinion and/or a relevant link. :)
iamvery_ has quit [Remote host closed the connection]
<pipework> danostrowski: Measure, measure, measure. Depends on the scheduler and how well your kernel manages those things, so measure, measure, measure.
<dzivalli> /msg nickserv register dzivalli dzivalli@ya.ru
<pipework> A safe start is 1.5x the number of cores
<havenwood> dzivalli: new password time!
<pipework> havenwood: There wasn't a password tho
<havenwood> oh, that's reg not ident, good :)
<pipework> Just a misunderstanding of the...
iamvery_ has joined #ruby
lucidity has quit [Ping timeout: 276 seconds]
tlaxkit has quit [Quit: ¡Adiós!]
koooge has joined #ruby
iamvery__ has joined #ruby
`tim` has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dzivalli> /msg NickServ VERIFY REGISTER dzivalli hoihytyrphyg
nando293921 has joined #ruby
<monoprotic> oops
<pipework> lul
iamvery__ has quit [Remote host closed the connection]
m_antis has joined #ruby
iamvery_ has quit [Ping timeout: 276 seconds]
mwlang has quit [Quit: mwlang]
Guest90636 has quit [Remote host closed the connection]
agent_white has quit [Quit: brb]
iamvery_ has joined #ruby
devyn has quit [Ping timeout: 252 seconds]
stannard has quit [Remote host closed the connection]
<havenwood> dzivalli: new password time!
<havenwood> I wasn't wrong, just early.
<pipework> You should dial it back on the clairvoyance.
_aeris_ has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
_aeris_ has joined #ruby
whathapp_ has joined #ruby
danostrowski has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashpoint9 has joined #ruby
whathappens has quit [Ping timeout: 244 seconds]
Madplatypus has quit [Quit: Connection closed for inactivity]
hightower2 has quit [Ping timeout: 260 seconds]
jaguarmagenta has quit [Ping timeout: 240 seconds]
SilverKey has quit [Quit: Halted.]
nullFxn has quit [Quit: leaving]
wigust has joined #ruby
roshanavand_ has quit [Quit: This computer has gone to sleep]
dzivalli has quit [Quit: Page closed]
roshanavand_ has joined #ruby
jancel has quit [Remote host closed the connection]
Cohedrin has quit [Read error: Connection reset by peer]
Cohedrin has joined #ruby
iamvery_ has quit [Remote host closed the connection]
bluOxigen_ has quit [Ping timeout: 265 seconds]
TomyLobo has quit [Ping timeout: 276 seconds]
bluOxigen has joined #ruby
wrkrcoop has joined #ruby
<wrkrcoop> im having a problem calling a method on a module
<wrkrcoop> can i not just create a module, put a bunch of methods on it and call MyModule.myMethod?
postmodern has quit [Ping timeout: 250 seconds]
<pipework> wrkrcoop: because eigenclass
<pipework> You're probably defining instance methods on a module, not module methods.
ReK2 has quit [Remote host closed the connection]
nando293921 has quit [Ping timeout: 276 seconds]
ReK2 has joined #ruby
blackmesa has joined #ruby
cdg has quit [Remote host closed the connection]
ebbflowgo has quit [Quit: ebbflowgo]
akiTendo has joined #ruby
idefine has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 252 seconds]