apeiros_ changed the topic of #ruby to: Ruby 2.2.1; 2.1.5; 2.0.0-p643: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org, other public logging is prohibited
keen__________22 has joined #ruby
flip_digits has quit [Quit: Lost terminal]
sepp2k has quit [Quit: Konversation terminated!]
sevvie has quit [Remote host closed the connection]
sevvie has joined #ruby
Olipro is now known as Guest79063
keen__________23 has joined #ruby
splud has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
wallerdev has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
keen__________22 has quit [Ping timeout: 248 seconds]
<splud> ‘ello. How can I get information on any exception handlers that might be in place while in a function?
wallerdev has quit [Client Quit]
<splud> That is, a method may not have a local handler defined, but I’d like to print out debug information as to whether there is a handler defined at a higher level.
AlphaTech has quit [Quit: Connection closed for inactivity]
adriancb has joined #ruby
tier has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adriancb has quit [Remote host closed the connection]
<jhass> with exception handler you mean rescue's? I don't think that's introspectable
adriancb has joined #ruby
<splud> bugger.
allcentury has joined #ruby
keen__________23 has quit [Ping timeout: 265 seconds]
<jhass> not really, that idea sounds a bit silly tbh :P
doodlehaus has quit [Remote host closed the connection]
keen__________23 has joined #ruby
karmatr0n has quit [Ping timeout: 256 seconds]
Rollabunna has quit [Remote host closed the connection]
Rollabunna has joined #ruby
graft has quit [Ping timeout: 256 seconds]
tier has quit [Ping timeout: 244 seconds]
<splud> would be nice to be able to log what execption types might be handled or not, and by whom.
<splud> For debugging
<jhass> not sure you should really care
harq_ has quit [Read error: Connection reset by peer]
<jhass> it shouldn't change behavior of your code if you're not the one who handles them
<jhass> and if you're the one who handles them you can just log at that place
AlphaAtom has quit [Ping timeout: 255 seconds]
havenn has quit [Ping timeout: 264 seconds]
keen__________23 has quit [Ping timeout: 256 seconds]
avalarion has joined #ruby
shreknet has quit [Ping timeout: 252 seconds]
keen__________23 has joined #ruby
starless has quit [Quit: Leaving]
AlphaAtom has joined #ruby
bruno-_ has quit [Ping timeout: 256 seconds]
havenwood has joined #ruby
keen__________24 has joined #ruby
<splud> this is for debugging the consumers of a function.
MatthewsFace has quit [Remote host closed the connection]
keen__________23 has quit [Ping timeout: 245 seconds]
<splud> would rather not go and dump stack traces endlessly, but instead just dump some debug data when I determine someone called it and doesn’t have a rescue clause.
keen__________25 has joined #ruby
<splud> And conversely, who does. but, not actually my problem, I was asking for someone else, and thankful I don’t have to pour through the legacy code to sort it out.
shreknet has joined #ruby
avalarion has quit [Ping timeout: 252 seconds]
splud has quit [Quit: splud]
keen__________24 has quit [Ping timeout: 246 seconds]
havenn has joined #ruby
Feyn has joined #ruby
keen__________25 has quit [Read error: Connection reset by peer]
keen__________25 has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
Synthead has quit [Ping timeout: 244 seconds]
Synthead has joined #ruby
angdev has joined #ruby
havenwood has joined #ruby
angdev has quit [Client Quit]
havenwood has quit [Remote host closed the connection]
karmatr0n has joined #ruby
kblake has quit [Remote host closed the connection]
jeromelanteri has joined #ruby
AlphaAtom has quit [Ping timeout: 246 seconds]
havenn has quit [Ping timeout: 252 seconds]
Synthead has quit [Max SendQ exceeded]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Synthead has joined #ruby
RegulationD has joined #ruby
paulcsmith has joined #ruby
Filete has joined #ruby
Renich has joined #ruby
JDiPierro has joined #ruby
oo_ has joined #ruby
caca_colo has joined #ruby
arrubin has joined #ruby
michaeldeol has joined #ruby
JDiPierro has quit [Read error: Connection reset by peer]
bricker has quit [Quit: leaving]
RegulationD has quit [Ping timeout: 250 seconds]
JDiPierro has joined #ruby
AlphaAtom has joined #ruby
a5i has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
danman has quit [Quit: danman]
zzing has joined #ruby
<nahtnam> Hey! For my high school english class, we are required to write a 20-30 pg essay about a field/career we would like to go into. (I chose CS). Part of the requirements is to get a few interviews. I was wondering if you some of you guys were interested in filling out a short form/interview. Thanks1
<nahtnam> !
djbkd has quit [Quit: My people need me...]
awkwords has joined #ruby
<miah> s/guys//
tercenya_ has joined #ruby
adriancb_ has joined #ruby
acl__ has joined #ruby
Xoro__ has joined #ruby
acl__ has quit [Client Quit]
JDiPierro has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tercenya has quit [Read error: Connection reset by peer]
skinny_much has quit [Ping timeout: 246 seconds]
acl_ has quit [Ping timeout: 246 seconds]
Rarikon has quit [Ping timeout: 246 seconds]
jerematic has quit [Remote host closed the connection]
skinny_much_ has joined #ruby
adriancb has quit [Ping timeout: 252 seconds]
jottr_ has joined #ruby
nii2361 has joined #ruby
yfeldblum has joined #ruby
triple_b has joined #ruby
angdev has joined #ruby
iteratorP has joined #ruby
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zzing has joined #ruby
charliesome has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
jottr_ has quit [Ping timeout: 256 seconds]
jonr22 has joined #ruby
sloshy has quit [Remote host closed the connection]
<sweeper> sjws here even :v
sloshy has joined #ruby
angdev has quit []
Musashi007 has quit [Quit: Musashi007]
chrisja has quit [Quit: leaving]
jonr22 has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
nfk has quit [Remote host closed the connection]
bim has quit [Disconnected by services]
bim_ has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
cjim__ has quit [Quit: (null)]
oivoodoo has joined #ruby
x3cion has quit [Ping timeout: 276 seconds]
oo_ has quit [Remote host closed the connection]
mistermocha has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
startupality has quit [Quit: startupality]
mistermocha has joined #ruby
bim_ has quit [Remote host closed the connection]
julweber has joined #ruby
julweber has quit [Remote host closed the connection]
oo_ has joined #ruby
julweber has joined #ruby
paulcsmith has quit [Quit: Be back later ...]
Sirupsen has joined #ruby
centrx has joined #ruby
paulcsmith has joined #ruby
sloshy has quit [Ping timeout: 272 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hpoydar has quit [Remote host closed the connection]
sloshy has joined #ruby
x3cion has joined #ruby
reinaldob has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 244 seconds]
marr has quit []
plashchynski has joined #ruby
cpruitt has joined #ruby
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
paulcsmith has quit [Ping timeout: 255 seconds]
aarthi01 has quit [Quit: Leaving]
bruno- has joined #ruby
davedev2_ has joined #ruby
davedev2_ has quit [Client Quit]
codemin has joined #ruby
jerematic has joined #ruby
davedev24_ has quit [Ping timeout: 272 seconds]
codemin has quit [Quit: -a- Cheers!]
<miah> lol wtf
bruno- has quit [Ping timeout: 246 seconds]
w33nd0x has quit [Quit: Leaving]
juanpaucar has joined #ruby
<miah> feel free to put me on ignore =)
<jhass> sweeper: could be seen as insult, please refrain from it in the future ;)
dj_zubehoer has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
oo_ has quit [Remote host closed the connection]
<Radar> sweeper: what's wrong with SJWs? ;)
<jhass> eh, let's not stress it
Beliq has quit [Quit: My computer has gone to sleep. ZZZzzz…]
Pupeno_ has joined #ruby
<miah> +1
michael_mbp has quit [Excess Flood]
charliesome has quit [Quit: zzz]
noname has quit [Ping timeout: 265 seconds]
* miah goes back to writing a book and watching interstellar
juanpaucar has quit [Ping timeout: 252 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
amclain has joined #ruby
dj_zubehoer has quit [Ping timeout: 256 seconds]
Pupeno has quit [Ping timeout: 256 seconds]
michael_mbp has joined #ruby
chridal has joined #ruby
gavilan2 has joined #ruby
<gavilan2> Is there any easy way of converting an arbitrary non circular object to json?
Filete has joined #ruby
<Nilium> require 'json'; JSON[thing] ?
<jhass> gavilan2: I prefer to be explicit and define a as_json on it and then use stdlib's to_json
<jhass> but there's the oj (I think?) gem
Musashi007 has joined #ruby
<gavilan2> Oj?
benlieb_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
<gavilan2> is there any way to do it without a gem?
<jhass> https://rubygems.org/gems/oj iirc that supports what you want
wallerdev has quit [Ping timeout: 255 seconds]
<jhass> as said I can't recommend that way of doing things
chridal has quit [Ping timeout: 246 seconds]
<gavilan2> don't recommend it, just tell me how to do it :)
duncannz has joined #ruby
<jhass> that link I gave has references to documentation and source code
<gavilan2> ok
<gavilan2> thanks!
gavilan2 has left #ruby [#ruby]
karmatr0n has quit [Remote host closed the connection]
duncannz has quit [Max SendQ exceeded]
krisquigley has joined #ruby
oo_ has joined #ruby
duncannz has joined #ruby
karmatr0n has joined #ruby
karmatr0n has quit [Remote host closed the connection]
duncannz has quit [Max SendQ exceeded]
awkwords has quit [Quit: leaving]
duncannz has joined #ruby
karmatr0n has joined #ruby
happyface has joined #ruby
robustus has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
teddyp1cker has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
coin3d has quit [Ping timeout: 264 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
Pharaoh2_ has joined #ruby
Pharaoh2_ has quit [Max SendQ exceeded]
pengin has quit [Remote host closed the connection]
Pharaoh2_ has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
teddyp1cker has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Remote host closed the connection]
caca_colo has quit [Remote host closed the connection]
Pharaoh2 has quit [Ping timeout: 256 seconds]
duncan_ has joined #ruby
duncan_ has quit [Max SendQ exceeded]
PaulCapestany has quit [Quit: .]
duncan_ has joined #ruby
duncan_ has quit [Max SendQ exceeded]
duncan_ has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
duncan_ has quit [Max SendQ exceeded]
PaulCapestany has joined #ruby
duncan_ has joined #ruby
duncan_ has quit [Max SendQ exceeded]
duncan_ has joined #ruby
juanca_ has joined #ruby
sevvie has quit [Ping timeout: 252 seconds]
benlieb_ has quit [Quit: benlieb_]
sevvie has joined #ruby
karmatr0n has quit [Remote host closed the connection]
milesmatthias has joined #ruby
aridere has joined #ruby
angdev has joined #ruby
Hien has joined #ruby
tkuchiki has joined #ruby
jenrzzz has joined #ruby
thinkswan has joined #ruby
jasabella has quit [Ping timeout: 252 seconds]
it0a has quit [Ping timeout: 245 seconds]
ghostpl_ has joined #ruby
yfeldblum has joined #ruby
thinkswan has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
joe_meade has joined #ruby
ghostpl_ has quit [Ping timeout: 248 seconds]
plashchynski has quit [Quit: plashchynski]
juanca_ has quit [Remote host closed the connection]
Beoran has quit [Ping timeout: 252 seconds]
benlieb_ has joined #ruby
chinmay_dd has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
juanca_ has joined #ruby
plashchynski has joined #ruby
angdev has quit []
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GGMethos has quit [Quit: WeeChat 1.0.1]
duncan_ has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: zzz]
MrRobinhood5 has joined #ruby
lemur_ has joined #ruby
<MrRobinhood5> anyone tried the codecademy courses?
willharrison has joined #ruby
waza has joined #ruby
GGMethos has joined #ruby
tus has quit []
Aridere_ has joined #ruby
angdev has joined #ruby
tkuchiki has quit [Read error: Connection reset by peer]
aridere has quit [Quit: Leaving]
swgillespie has joined #ruby
Beoran has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spiderbyte has joined #ruby
plashchynski has quit [Quit: plashchynski]
riotjones has joined #ruby
Mon_Ouie has quit [Ping timeout: 244 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
charliesome has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
razieliyo has quit [Remote host closed the connection]
CorySimmons has joined #ruby
riotjones has quit [Ping timeout: 252 seconds]
joe_meade has quit [Remote host closed the connection]
spiderbyte has quit [Ping timeout: 246 seconds]
havenwood has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
blazes816 has joined #ruby
Wulf has quit [Ping timeout: 252 seconds]
oo_ has quit [Remote host closed the connection]
claptor has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
dseitz has joined #ruby
benlieb_ has quit [Quit: benlieb_]
tcrypt has quit [Ping timeout: 250 seconds]
Wulf has joined #ruby
triple_b has joined #ruby
keyofnight has joined #ruby
<keyofnight> Hi folks. :)
blazes816 has quit [Ping timeout: 245 seconds]
oo_ has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spleeze has quit [Ping timeout: 272 seconds]
Aridere_ is now known as aridere
<havenwood> keyofnight: hi
<MrRobinhood5> oh hi
<latemus> is the scope of a variable created within a private method limeted to its controller or to its method?
aewffwea has joined #ruby
<aewffwea> What's the best way to raise an exception from a DynamicProxy (how do I avoid raise calling method_missing)?
<Radar> a what
aridere_ has joined #ruby
plashchynski has joined #ruby
plashchynski has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Spleeze has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jokester> latemus: I would say within the method
jottr_ has joined #ruby
<Radar> latemus: sounds like a question for #rubyonrails
<Radar> latemus: and please don't crosspost
christiandsg has joined #ruby
<latemus> Radar: sorry, I asked therefirst and then thought perhaps it was an issue of ruby variable scope
krz has joined #ruby
<latemus> Radar: honce the crosspost, which i do avoid
<latemus> *hence
<Radar> rightio
oo_ has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jasabella has joined #ruby
karmatr0n has joined #ruby
angdev has quit []
jottr_ has quit [Ping timeout: 244 seconds]
claptor has quit [Quit: this channel is bakas]
superspring has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
MrRobinhood5 has quit [Ping timeout: 256 seconds]
michael_mbp has quit [Excess Flood]
willharrison has joined #ruby
michael_mbp has joined #ruby
angdev has joined #ruby
<keyofnight> Hm.
n008f4g_ has quit [Ping timeout: 250 seconds]
michael_mbp has quit [Excess Flood]
<keyofnight> I'm looking for a good library for parsing docx files.
<keyofnight> In particular, I need something that can pull the tracked changes and comments out of a docx file.
MasterPiece has joined #ruby
juanca_ has quit [Remote host closed the connection]
michael_mbp has joined #ruby
jerematic has quit [Remote host closed the connection]
<keyofnight> Any ideas? :)
jonr22 has quit [Ping timeout: 256 seconds]
juanca_ has joined #ruby
tjohnson has joined #ruby
sargas has joined #ruby
adriancb_ has quit [Remote host closed the connection]
jenrzzz has joined #ruby
swgillespie has joined #ruby
nettoweb has joined #ruby
swgillespie has quit [Client Quit]
nettoweb has quit [Client Quit]
sloshy has quit [Ping timeout: 272 seconds]
sloshy has joined #ruby
benlieb_ has joined #ruby
Pharaoh2_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
milesmat_ has joined #ruby
christiandsg has quit [Remote host closed the connection]
akhkharu has joined #ruby
freerobby has quit [Quit: Leaving.]
milesmatthias has quit [Ping timeout: 250 seconds]
mostlybadfly has joined #ruby
lkba has quit [Read error: Connection reset by peer]
lkba_ has joined #ruby
ebbflowgo has joined #ruby
oivoodoo has quit [Remote host closed the connection]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
ramfjord has joined #ruby
jefus_ has joined #ruby
MasterPiece has quit [Quit: Leaving]
juanpaucar has joined #ruby
duncannz has joined #ruby
jeromelanteri has quit [Ping timeout: 252 seconds]
jefus has quit [Ping timeout: 252 seconds]
willharrison has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<keyofnight> Anybody? lol.
willharrison has joined #ruby
it0a has joined #ruby
juanpaucar has quit [Ping timeout: 256 seconds]
zorak8 has joined #ruby
charliesome has quit [Quit: zzz]
zorak8 has quit [Read error: Connection reset by peer]
juanca_ has quit []
<zenspider> lol?
<keyofnight> heh.
jasabella has quit [Ping timeout: 250 seconds]
<zenspider> wow
<keyofnight> I'm trying to parse docx files for track changes.
A205B064 has quit [Ping timeout: 265 seconds]
<keyofnight> But...I don't see how with any of the libraries I've found so far.
<centrx> keyofnight, I take it the docx gem doesn't do it
sloshy has quit [Ping timeout: 265 seconds]
sloshy has joined #ruby
<keyofnight> centrx: it might... I'm not sure. It uses nokogiri, and that will parse xml elements...
charliesome has joined #ruby
<keyofnight> but I'm not sure that will get me what I want.
<centrx> Try It And See
<keyofnight> I mean... I'm not even sure how to try. ahaha
<centrx> There's not likely to be a perfect solution because MS changes their formats so frequently, they are/were proprietary, and open-source tech people don't use much docx
sargas has quit [Quit: This computer has gone to sleep]
michael_mbp has quit [Excess Flood]
B1n4r10 has joined #ruby
<centrx> keyofnight, If a gem converts to XML, see if it's XML output contains the tracked changes and comments
<centrx> *its
krisquigley has joined #ruby
B1n4r10 has quit [Client Quit]
Sirupsen has quit [Quit: Textual IRC Client: www.textualapp.com]
coin3d has joined #ruby
fuzzyhorns has quit [Read error: Connection reset by peer]
dj_zubehoer has joined #ruby
michael_mbp has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
<keyofnight> Yeah... opensource people don't use docx indeed.
<keyofnight> Most of my academic friends do, though.
angdev has quit []
<keyofnight> Hm. I'm looking at an example docx right now... it looks like the comments all go in a single XML.
krisquigley has quit [Ping timeout: 245 seconds]
matled- has joined #ruby
angdev has joined #ruby
jackjackdrpr has quit [Quit: Leaving.]
<keyofnight> ...and tracked changes are wrapped in tags.
<keyofnight> in the main document.
coin3d has quit [Ping timeout: 252 seconds]
eam_ has joined #ruby
dj_zubehoer has quit [Ping timeout: 264 seconds]
sarlalia1 has joined #ruby
Azure has quit [Read error: Connection reset by peer]
matled has quit [Read error: Connection reset by peer]
sarlalian has quit [Ping timeout: 246 seconds]
eam has quit [Ping timeout: 246 seconds]
sevvie has quit [Ping timeout: 246 seconds]
redondos has quit [Ping timeout: 246 seconds]
matled- is now known as matled
sevvie has joined #ruby
virtualbsd has joined #ruby
benlieb_ has quit [Quit: benlieb_]
acl_ has joined #ruby
elfuego has quit [Quit: elfuego]
acl_ is now known as isxek
duncannz has quit [Ping timeout: 250 seconds]
Crazy_Atheist has joined #ruby
redondos has joined #ruby
towski_ has quit [Remote host closed the connection]
sargas has joined #ruby
ekem is now known as e
e is now known as Guest65673
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest65673 is now known as ekem
sloshy has quit [Ping timeout: 256 seconds]
bigmac_ has quit [Ping timeout: 245 seconds]
sloshy has joined #ruby
csaunders_ has joined #ruby
RegulationD has joined #ruby
RegulationD has quit [Remote host closed the connection]
withnale_ has joined #ruby
davidcelis_ has joined #ruby
csaunders has quit [Ping timeout: 246 seconds]
davidcelis has quit [Ping timeout: 246 seconds]
withnale has quit [Ping timeout: 246 seconds]
withnale_ is now known as withnale
Xiti has quit [Quit: Xiti]
CorySimmons has quit [Quit: Bye!]
ghostmoth has joined #ruby
teddyp1cker has joined #ruby
ghostmoth has quit [Client Quit]
lys1 has joined #ruby
teddyp1cker has quit [Ping timeout: 256 seconds]
astrobunny has joined #ruby
elise001 has joined #ruby
pontiki has joined #ruby
oo_ has quit [Remote host closed the connection]
ReinH_ has joined #ruby
Renich_ has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
elise001 has left #ruby [#ruby]
axisys_ has joined #ruby
lys1 has quit [Quit: lys1]
arrubin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ReinH has quit [Ping timeout: 246 seconds]
axisys has quit [Ping timeout: 246 seconds]
Renich has quit [Remote host closed the connection]
oo_ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
benlieb_ has joined #ruby
tcrypt has joined #ruby
ebbflowgo has left #ruby [#ruby]
<eam_> good evening
icebourg has joined #ruby
<latemus> Anyone know if ruby interprets more efficiently / faster than bash?
phreakocious has quit [Ping timeout: 246 seconds]
<havenwood> eam_: good eve
eam_ is now known as eam
phreakocious has joined #ruby
jasabella has joined #ruby
Channel6 has joined #ruby
Xiti has joined #ruby
aridere has quit [Read error: Connection reset by peer]
aridere_ has quit [Read error: Connection reset by peer]
sargas has joined #ruby
diegoviola has quit [Remote host closed the connection]
<havenwood> latemus: Just asking in general? Have anything in mind? Thinks like startup time, memory use and various benchmarks are different queries.
<havenwood> s/Thinks/Things
agrinb_ has joined #ruby
angdev has quit []
tejasmanohar has joined #ruby
<tejasmanohar> hey guys
<tejasmanohar> ruby is completely sychrnoous right?
<tejasmanohar> synchronous and linear
<jokester> latemus: in terms of float arithmetic, I believe ruby is better
<latemus> havenwood: good point. i'm just curious in general, i guess i should benchmark those things.
<havenwood> latemus: Ruby will tend to be much faster but bash has a quick startup time.
<latemus> jokester: nice
Guest79063 has quit [Ping timeout: 252 seconds]
<latemus> havenwood: Okay, wonderful. thats exactly what i wanted to know
slackbotgz has quit [Remote host closed the connection]
slackbotgz has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
sargas has quit [Ping timeout: 252 seconds]
<pontiki> ruby is faster to write if it's anything complex
<eam> well if the question is strictly interpretation speed we can benchmark then both with a program that has the same function in each language
braincrash has quit [Quit: bye bye]
<eam> I just made a 12M file full of newlines and nothing else, ruby interprets it roughly 6 times faster than bash
<pontiki> do you want to write a web application in bash?
<eam> so there you have it, science
Olipro has joined #ruby
<havenwood> pontiki: oh lordy no
<eam> (perl is even faster though)
Olipro is now known as Guest340
nii2361 has quit [Ping timeout: 245 seconds]
bim has joined #ruby
<havenwood> tejasmanohar: Are you thinking of the GVL/GIL? Trying to understand what you're asking.
Parker0 has joined #ruby
<tejasmanohar> havenwood: like there are no times where loops or anything will happen asynhronously in ruby right?
<tejasmanohar> unless you put effort into making it that way
w33nd0x has joined #ruby
<eam> tejasmanohar: no
<tejasmanohar> thx
<eam> tejasmanohar: to be clear, "no, concurrency will absolutely occur"
paulcsmith has joined #ruby
braincrash has joined #ruby
riotjones has joined #ruby
oo_ has quit [Remote host closed the connection]
ghostmoth has joined #ruby
krz has quit [Ping timeout: 246 seconds]
bim has quit [Ping timeout: 252 seconds]
kyrylo has quit [Ping timeout: 252 seconds]
paulcsmith has quit [Ping timeout: 264 seconds]
bigmac_ has joined #ruby
claptor has joined #ruby
oivoodoo has joined #ruby
<tejasmanohar> is there a traditional for loop
<tejasmanohar> in ruby
<tejasmanohar> like for that takes in 3 parameters
riotjones has quit [Ping timeout: 250 seconds]
<tejasmanohar> i = ...; i CONDITION ...; i++/--/something
<tejasmanohar> eam: or does ruby just do the for in loop?
<havenwood> tejasmanohar: for in exists, but isn't idiomatic
kyrylo has joined #ruby
bigmac_ has quit [Ping timeout: 246 seconds]
<tejasmanohar> havenwood: ah
<tejasmanohar> so does traditional for exist tho?
<tejasmanohar> you said for in exists i knew that
bigmac_ has joined #ruby
<latemus> eam lol
<tejasmanohar> 1:Fixnum (NoMethodError)
<tejasmanohar> 23
<tejasmanohar> for sleep(1.minutes)
<latemus> pontiki: i wrote a bash app that persists to a db
<latemus> once
<latemus> lol
<latemus> okay a few times
Channel6 has quit [Quit: Leaving]
<havenwood> tejasmanohar: What are you trying to do? We can show you the Ruby way.
<Radar> tejasmanohar: explain what you want exactly
<pontiki> latemus: and so, which would you prefer to do?
<latemus> pontiki: :D
charliesome has quit [Quit: zzz]
<latemus> ruby forever, bash never!
<pontiki> well, no..
<latemus> hoho
<pontiki> i still write bash scripts
<pontiki> they're quite apropos for automating some things
oo_ has joined #ruby
<jokester> yes, bash is simple and fast to write
jottr_ has joined #ruby
nii2361 has joined #ruby
morenoh149 has quit [Ping timeout: 244 seconds]
jasabella has quit [Ping timeout: 264 seconds]
jottr_ has quit [Ping timeout: 252 seconds]
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
arescorpio has quit [Excess Flood]
jonr22 has joined #ruby
GnuYawk has quit [Ping timeout: 264 seconds]
charliesome has joined #ruby
Pupeno has joined #ruby
Pupeno_ has quit [Ping timeout: 256 seconds]
icebourg has quit []
dopie has quit [Read error: Connection reset by peer]
jonr22 has quit [Ping timeout: 265 seconds]
Deele has joined #ruby
mc0e has joined #ruby
<mc0e> Noob question: Does ruby have something comparable to perl's map function that allows a variable number of elements to be added to the output array for each element of the input array?
kyrylo has quit [Ping timeout: 256 seconds]
<tejasmanohar> i wanna make this ruby script run at a certain time tmrw
<pontiki> um, Array#map might do it...
govg has quit [Ping timeout: 255 seconds]
<mc0e> as far as I can see, Array#map's output always has the same number of elements as the input array, which is what you normally expect a map function to do, but perl has a rather useful ability to have the block return zero or more elements. I was wondering how to get a similar result. Currently what I'm doing is basically a filter on the array elements, but there are other use cases.
Synthbread has joined #ruby
michaeldeol has joined #ruby
happyface has quit [Quit: Connection closed for inactivity]
<pontiki> you can return any object in the map, including another array, then flatten the result into a single level array
sfr^ has quit [Quit: ZNC - http://znc.in]
<jokester> >> [1,2,3].map{|e| [e]*e}.reduce(:+)
<eval-in_> jokester => [1, 2, 2, 3, 3, 3] (https://eval.in/304201)
<jokester> like this?
<jokester> well it's builtin..
<jokester> it's *not* builtin
<mc0e> ok, that helps.
<pontiki> there's also flat_map
a5i has quit [Quit: Connection closed for inactivity]
tejasmanohar has quit [Quit: WeeChat 1.1.1]
towski_ has joined #ruby
milesmat_ has quit [Remote host closed the connection]
milesmatthias has joined #ruby
julweber has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
milesmatthias has quit [Remote host closed the connection]
mesamoo has quit [Quit: Konversation terminated!]
Musashi007 has quit [Quit: Musashi007]
A205B064 has joined #ruby
pwnz0r has joined #ruby
morenoh149 has joined #ruby
DEA7TH has joined #ruby
juanpaucar has joined #ruby
The_Phoenix has joined #ruby
ReinH_ is now known as ReinH
Musashi007 has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
angdev has joined #ruby
juanpaucar has quit [Ping timeout: 265 seconds]
The_Phoenix has joined #ruby
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michael_mbp has quit [Excess Flood]
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
robertt_dex has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
michael_mbp has joined #ruby
krisquigley has joined #ruby
AlexRussia has joined #ruby
x1337807x has joined #ruby
swgillespie has joined #ruby
dopie has joined #ruby
coin3d has joined #ruby
x1337807x has quit [Max SendQ exceeded]
AlexRussia has quit [Client Quit]
x1337807x has joined #ruby
cpruitt has quit [Quit: cpruitt]
lxsameer has joined #ruby
krisquigley has quit [Ping timeout: 248 seconds]
havenn has joined #ruby
cpruitt has joined #ruby
coin3d has quit [Ping timeout: 256 seconds]
havenwood has quit [Ping timeout: 248 seconds]
agent_white has joined #ruby
<agent_white> moin
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dj_zubehoer has joined #ruby
Mon_Ouie has joined #ruby
dj_zubehoer has quit [Ping timeout: 250 seconds]
docsagast has joined #ruby
krz has joined #ruby
docsagast has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 248 seconds]
nii2361 has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
nOgAnOo has joined #ruby
Musashi007 has quit [Quit: Musashi007]
AlphaTech has joined #ruby
bluOxigen has joined #ruby
teddyp1cker has joined #ruby
nii2361 has joined #ruby
Morkel has joined #ruby
Cork has quit [Quit: .]
havenn has quit [Ping timeout: 265 seconds]
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
lemur_ has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
casadei has quit [Ping timeout: 264 seconds]
pontiki has quit [Quit: gnit'ol]
grassdog has joined #ruby
lolmaus has joined #ruby
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
TL has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
agrinb_ has quit [Remote host closed the connection]
sevenseacat has joined #ruby
ponga has quit [Remote host closed the connection]
adriancb has joined #ruby
grassdog has quit [Quit: Lingo: www.lingoirc.com]
leyluj has quit [Quit: Connection closed for inactivity]
agent_wh1te has joined #ruby
agent_white has quit [Ping timeout: 244 seconds]
adriancb has quit [Ping timeout: 246 seconds]
duncannz has joined #ruby
riotjones has joined #ruby
ghostmoth has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
otisZart has quit [Ping timeout: 265 seconds]
riotjones has quit [Ping timeout: 256 seconds]
karmatr0n has quit [Remote host closed the connection]
arup_r has joined #ruby
Wolland has joined #ruby
milesmatthias has joined #ruby
teddyp1cker has joined #ruby
karmatr0n has joined #ruby
ponga has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
x1337807_ has joined #ruby
milesmatthias has quit [Ping timeout: 252 seconds]
x1337807x has quit [Ping timeout: 246 seconds]
karmatr0n has quit [Ping timeout: 244 seconds]
tobago has joined #ruby
nii2361 has quit [Ping timeout: 244 seconds]
amclain has quit [Quit: Leaving]
cpruitt has quit [Quit: cpruitt]
waxjar has quit [Ping timeout: 265 seconds]
godemper1r has quit [Ping timeout: 246 seconds]
godemper1r has joined #ruby
DerisiveLogic has joined #ruby
jottr_ has joined #ruby
jasabella has joined #ruby
craigp has quit [Remote host closed the connection]
waxjar has joined #ruby
mikecmpbll has quit [Quit: ciao.]
t_p has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
bluOxigen has quit [Ping timeout: 265 seconds]
havenwood has joined #ruby
duncannz has quit [Ping timeout: 264 seconds]
DerisiveLogic has quit [Ping timeout: 245 seconds]
jonr22 has joined #ruby
agrinb has joined #ruby
pwnz0r has quit [Remote host closed the connection]
keen__________25 has quit [Read error: Connection reset by peer]
ponga has quit [Quit: Leaving...]
TL has quit [Ping timeout: 256 seconds]
keen__________25 has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
vdamewood has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
coderhut has joined #ruby
Mattx has joined #ruby
<Mattx> Hi!
<Mattx> how do I add a method to a class Foo that inherits from Bar?
vdamewood has quit [Max SendQ exceeded]
chacmool` has quit [Remote host closed the connection]
vdamewood has joined #ruby
<havenwood> Mattx: class Foo < Bar; def ...
<arup_r> Mattx: Open the class and put it inside it the mthod.
<Mattx> that's what I did, but then I experienced some weird errors
<arup_r> sorry **put the method inside it(the class)
<arup_r> Mattx: Then tell us those errors..
<Mattx> I'm doing this to a rails model, somehow it erase all other methods
<Mattx> I'm getting this:
<Mattx> NoMethodError - undefined method `story' for #<Publication:0x000000031ff790>:
<Mattx> one sec, I'm going to paste some code
<Wolland> class vs instance method
<Wolland> ?
coderhut has quit [Quit: Page closed]
<Wolland> could be that you didn't reload your console
cpruitt has joined #ruby
coderhut has joined #ruby
<Wolland> or typo
ponga has joined #ruby
<arup_r> Mattx: May we have Gist ?
coderhut has quit [Client Quit]
<arup_r> Wolland: After long time.. :D
<Mattx> it's reaaaaly weird because it works on rails console but not on rails server
<Mattx> yep, I restarted both the console and server
<Wolland> you have 2 classes called Publication?
<Mattx> Wolland, just one. I'm adding a method
Timgauthier has joined #ruby
<Mattx> the second definition is in a different file, never mind about that
ponga has quit [Read error: Connection reset by peer]
<Wolland> what is "belongs_to :story"
ponga has joined #ruby
<Mattx> it's rails. it means a "publication" has a relation to a "story"
<Mattx> it is resolved by method_missing, but somehow it doesn't work after adding a method like that
<Wolland> yeah I get that, but you were talking about method?
<Wolland> did you add other side of that relation and migrations?
<Mattx> that's not the problem, if I remove the second def of Publication (the one with def foo) it works
<Wolland> naturally
<Wolland> because you are overwriting class
<Mattx> how do you ADD a method then?
<Wolland> why not just add it to the top class?
benlieb_ has quit [Quit: benlieb_]
<Wolland> or with concern
<Mattx> because I'm requiring a versioned file, like whatever_v1.rb
<Mattx> which has additional methods for "Publication"
<Mattx> but it depends on the version, in this case v1
nii2361 has joined #ruby
<Mattx> so after requiring such file, I want to be able to run Publication.first.foo for instance
<Wolland> look up meta programming
bluOxigen has joined #ruby
Tristan-Speccy has joined #ruby
<Mattx> how would you do this Wolland?
x1337807_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Wolland> class << self
<Wolland> def yo
<Wolland> "wassup"
<Wolland> end
<Wolland> end
<Mattx> doesn't it add a static method?
mesamoo has joined #ruby
vdamewood has quit [Quit: Computer has gone to sleep.]
<keyofnight> Hm.
<Mattx> it's not a class method
<Wolland> principal is the same
julweber has joined #ruby
Synthbread has quit [Ping timeout: 252 seconds]
<Wolland> principle*
Timgauth_ has joined #ruby
overcrush has joined #ruby
aganov has joined #ruby
juanpaucar has joined #ruby
tagrudev has joined #ruby
julweber has quit [Ping timeout: 252 seconds]
<flughafen> good evening my minions
Timgauthier has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
<centrx> Mattx, The code you pasted in the gist actually works
pwnz0r has joined #ruby
<Mattx> centrx, it works except in rails server somehow
<centrx> You do have two Publication classes
<centrx> I bet the first one in the gist isn't being loaded
<Mattx> I only want one class, with the sum of the methods
<centrx> You can put as many methods as you want in one class definition
<Mattx> I know that, but what do you think that is happening then?
<centrx> What I think is happening is described above
juanpaucar has quit [Ping timeout: 256 seconds]
<Mattx> makes sense
<Mattx> I should probably preload the models (?)
<centrx> no just make one Publication model in one publication.rb file
<centrx> Define methods within the class definition for the model
<Mattx> centrx, I can't, because this method I'm adding depends on the user API version, so I'm adding it dynamically from different files
pwnz0r has quit [Ping timeout: 256 seconds]
Cork has joined #ruby
<Wolland> there is a gem for that
<Mattx> requiring foo_v1.rb foo_v2.rb, etc. which add this extra method to Publication
<Wolland> this is probably not the best way of managing api versions
craigp has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
<Mattx> any other idea is appreciated
<Wolland> routes and modules, defining classes separate in their own modules per version?
anaeem1_ has joined #ruby
<Wolland> then there are gems to manage/generate routes I think
<Wolland> for versioned api
<Mattx> I've done all of that already. it's neat and simple
<Mattx> but I do have this additional method problem
<Mattx> only with the models. the controllers are fine
krisquigley has joined #ruby
<Wolland> in this case it would of been simple, just add method to class rb file for the right version
isxek has quit [Quit: ChatZilla 0.9.91-rdmsoft [XULRunner 32.0.3/20140923175406]]
codecop has joined #ruby
codecop_ has joined #ruby
coin3d has joined #ruby
ominari has joined #ruby
<Mattx> "What we’ll do is create a new Product class inside the ProductsController that inherits from our existing Product model class and make the changes there."
<Mattx> intersting
robertt_dex has quit [Remote host closed the connection]
tcrypt has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
<Mattx> I wonder if it is a good idea
<Mattx> actually no, you have to define the customized models in each controller you want to use it
thinkswan has joined #ruby
latemus has quit [Ping timeout: 256 seconds]
krisquigley has quit [Ping timeout: 252 seconds]
lolmaus has quit [Quit: Konversation terminated!]
coin3d has quit [Ping timeout: 256 seconds]
krz has quit [Quit: WeeChat 1.0.1]
thinkswan has quit [Ping timeout: 248 seconds]
riotjones has joined #ruby
godemper2r has quit [Ping timeout: 264 seconds]
sivoais has quit [Ping timeout: 256 seconds]
godemper1r has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
latemus has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Wolland has quit [Remote host closed the connection]
sandelius has joined #ruby
<certainty> moin
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
Macaveli has joined #ruby
Pharaoh2 has joined #ruby
Macaveli has quit [Client Quit]
bal has joined #ruby
Guest65 has joined #ruby
agrinb has joined #ruby
Guest65 has quit [Remote host closed the connection]
relix has joined #ruby
relix has quit [Client Quit]
<latemus> I need to instantiate a list of objects. I'm building a string in a variable, which i want to execute, not puts. How do i say 'run the contents of this variable' rather than jest puts-ing it? http://pastie.org/private/lngg2a4xwpsicbisx0sqig
agrinb has quit [Ping timeout: 256 seconds]
krz has joined #ruby
<certainty> latemus: i suspect you want to use #send, but that paste doesn't make much sense to me
godemper1r has joined #ruby
Morkel has quit [Quit: Morkel]
godemper2r has joined #ruby
arquebus has joined #ruby
dj_zubehoer has joined #ruby
<latemus> certainty: thanks. this is a little more correcthttp://pastie.org/private/t6egikwqpkezsvuvldfqq
ta has quit [Remote host closed the connection]
wldcordeiro has quit [Read error: Connection timed out]
<certainty> >> Object.const_get('String').new("foo")
<eval-in_> certainty => "foo" (https://eval.in/304267)
<certainty> latemus: ^
<certainty> that's a way to create your objects
chridal has joined #ruby
sivoais has joined #ruby
<certainty> then you can send("#{i}=",...) whicth that object as the argument
<certainty> the code looks fishy though
dj_zubehoer has quit [Ping timeout: 264 seconds]
ominari has quit [Quit: Be back later ...]
Wolland has joined #ruby
wldcordeiro has joined #ruby
oo_ has quit [Remote host closed the connection]
<latemus> woah, thank you
anaeem1__ has joined #ruby
arquebus has left #ruby ["away"]
cpruitt has quit [Quit: cpruitt]
oo_ has joined #ruby
lxsameer has quit [Quit: Leaving]
<flughafen> sup certainty
<flughafen> arup_r: sevenseacat
<flughafen> hows the writing/
anaeem1_ has quit [Ping timeout: 246 seconds]
<flughafen> is there a good plot twist at the end?
hanmac1 has joined #ruby
kobain has quit [Ping timeout: 256 seconds]
<arup_r> flughafen: o_\
<certainty> flughafen: o/
iamninja has quit [Read error: Connection reset by peer]
iamninja has joined #ruby
<flughafen> /\o
<flughafen> i'm clapping
oo_ has quit [Remote host closed the connection]
<certainty> x)
vdamewood has joined #ruby
oo_ has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
Timgauth_ has quit [Max SendQ exceeded]
anaeem1 has joined #ruby
<flughafen> w00t w00t
yfeldblu_ has joined #ruby
anarang has joined #ruby
yfeldbl__ has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
wldcordeiro has quit [Ping timeout: 265 seconds]
yeticry has quit [Ping timeout: 250 seconds]
overcrush has quit [Remote host closed the connection]
yeticry has joined #ruby
* certainty fights with the puppet dsl
<flughafen> hehe
<flughafen> we're going to use salt
Timgauthier has joined #ruby
yfeldblu_ has quit [Ping timeout: 265 seconds]
tubuliferous has quit [Ping timeout: 255 seconds]
aganov has quit [Remote host closed the connection]
Timgauthier has quit [Max SendQ exceeded]
aganov has joined #ruby
nahtnam has quit [Quit: Connection closed for inactivity]
<certainty> flughafen: that reads as if salt is merely some ipc
The_Phoenix has quit [Ping timeout: 255 seconds]
Virgil_Schiev has joined #ruby
Timgauthier has joined #ruby
A205B064 has quit [Ping timeout: 250 seconds]
Timgauthier has quit [Client Quit]
<flughafen> i guess... i think i had to use puppet
<flughafen> (we paired off and evaluated the big 4, salt, puppet, chef, cf_engine)
<certainty> ah ok the official documentation tells a bit more. it seems to offer some more
<flughafen> but salt seemed to be what we liked the best
AlphaTech has quit [Quit: Connection closed for inactivity]
sevvie_ has joined #ruby
morenoh149 has quit [Quit: WeeChat 1.0.1]
sevvie has quit [Read error: Connection reset by peer]
<certainty> we've got a somewhat huge puppet codebase already, which kinda works good
nii2361 has quit [Ping timeout: 248 seconds]
noshadowkicker has joined #ruby
chridal has quit [Quit: WeeChat 1.0.1]
craigp has quit [Remote host closed the connection]
ta has joined #ruby
<certainty> flughafen: what were your constraints?
<flughafen> certainty: nothing really.
<noshadowkicker> Hi, what is this syntax called where you assign variable to block of text (until keyword that started is given again) - database_yml = <<-DATABASE ….blahblahblah DATABASE
<certainty> noshadowkicker: a heredoc
<flughafen> that's called a double arrow dash
nii2361 has joined #ruby
<noshadowkicker> Ah, thank you
cpruitt has joined #ruby
User458764 has joined #ruby
Macaveli has joined #ruby
arquebus has joined #ruby
<flughafen> certainty: but, we wanted a server -> client model, not client -> server. (which follows our model fine) and a couple of our guys used salt in another project so they liked it a lot better than the others
<flughafen> plus redhat compalins about puppet. (they used puppet in the new version of satellite)
relix has joined #ruby
yeticry has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: zzz]
yeticry has joined #ruby
iml has quit [Remote host closed the connection]
jottr_ has joined #ruby
Guest52850 has joined #ruby
<certainty> flughafen: i see. Yeah it has downsides. Why server -> client and not client -> server?
AlphaAtom has quit [Ping timeout: 264 seconds]
craigp has joined #ruby
<flughafen> because that's the susemanager/spacewalk (mostly)
<certainty> flughafen: ok whatever that is. But i suspect that already has that model
jottr_ has quit [Ping timeout: 250 seconds]
tjohnson has quit [Quit: Connection closed for inactivity]
<flughafen> susemanager is a fork of spacewalk which is a open source tool for managing servers
agrinb has joined #ruby
jonr22 has joined #ruby
<flughafen> satellite is the big supported project from redhat that is based on spacewalk
AlphaAtom has joined #ruby
<kartouch> flughafen: or katello , satellite 6
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Guest52850 has quit [Ping timeout: 252 seconds]
JoshGlzBrk has joined #ruby
ta has quit [Remote host closed the connection]
User458764 has joined #ruby
dmitrykorotkov has joined #ruby
SouL_ has joined #ruby
<flughafen> kartouch: satellite 6 is completely different from spacewalk, sattetlite 5 is spacewalk based, but they changed everything with 6
<kartouch> flughafen: I know :) , use both
<flughafen> kartouch: how do you like/dislike 6?
ramfjord has quit [Ping timeout: 246 seconds]
yfeldbl__ has quit [Ping timeout: 265 seconds]
Hounddog has joined #ruby
jayeshsolanki has joined #ruby
imanzarrabian has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
jonr22 has quit [Ping timeout: 252 seconds]
<kartouch> flughafen: I like the content view concept and easy integration with hypervisors or cloud providers
JaTochNietDan has quit [Ping timeout: 252 seconds]
arquebus has quit [Quit: k]
maloik has quit [Ping timeout: 256 seconds]
reinaldob has joined #ruby
JaTochNietDan has joined #ruby
maloik has joined #ruby
alex88 has joined #ruby
ta has joined #ruby
rdark has joined #ruby
aswen has joined #ruby
reinaldob has quit [Ping timeout: 244 seconds]
duncannz has joined #ruby
codecop has quit [Remote host closed the connection]
codecop_ has quit [Remote host closed the connection]
<pagios> hi anyone familair with RRDTOOL?
dumdedum has joined #ruby
Guest52850 has joined #ruby
astrobunny has quit [Remote host closed the connection]
plashchynski has joined #ruby
AlphaAtom has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
Pupeno has quit [Remote host closed the connection]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
CorySimmons has joined #ruby
akhkharu has quit [Quit: Connection closed for inactivity]
julweber has joined #ruby
Spami has joined #ruby
bruno- has quit [Ping timeout: 264 seconds]
einarj has joined #ruby
avril14th has joined #ruby
Pupeno has joined #ruby
Pupeno has joined #ruby
einarj has quit [Remote host closed the connection]
juanpaucar has joined #ruby
einarj has joined #ruby
<avril14th> hello
<flughafen> sup avril14th
julweber has quit [Ping timeout: 252 seconds]
<avril14th> morgen flughafen
<flughafen> top of the morning to you avril14th
<avril14th> thx :)
<avril14th> I'm just getting to work
<avril14th> let's code ruby again :)
<flughafen> avril14th: you aint got to lie to hang out here. when you say "ruby" you mean visual basic
<flughafen> ;)
juanpaucar has quit [Ping timeout: 250 seconds]
marr has joined #ruby
blackmesa has joined #ruby
<avril14th> I don't want to remember those days
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
Wolland has quit []
jenrzzz has joined #ruby
User458764 has joined #ruby
julweber has joined #ruby
arup_r has quit [Remote host closed the connection]
<certainty> every company has some imortant applications written in VB or VBA inside MS Excel
* certainty shudders
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
overcrush has joined #ruby
<flughafen> <- not this company! but sometimes i do receive excel docs from other parts of the comapny
krisquigley has joined #ruby
<avril14th> yeah, they're everywhere!
coin3d has joined #ruby
<avril14th> I used to give market quotes with VBA...
aarwine has quit [Ping timeout: 264 seconds]
<avril14th> scary
<jokester> once had to compose SQL with VBA
* flughafen started programming on a 286 in basic, in yo face.
nii2361 has quit [Ping timeout: 246 seconds]
* jokester cowers in fear
allenn has joined #ruby
<flughafen> any punch card users here?
blueM has quit [Quit: Ex-Chat]
<avril14th> nope
krisquigley has quit [Ping timeout: 250 seconds]
Morkel has joined #ruby
coin3d has quit [Ping timeout: 244 seconds]
tesuji has joined #ruby
bal has quit [Quit: bal]
bal has joined #ruby
Renich_ has quit [Quit: leaving]
julweber has quit [Remote host closed the connection]
cpruitt has quit [Quit: cpruitt]
crdpink has quit [Ping timeout: 256 seconds]
lolmaus has joined #ruby
craigp has quit [Remote host closed the connection]
spider-mario has joined #ruby
rkgudboy has joined #ruby
rkgudboy has quit [Max SendQ exceeded]
Pupeno has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rkgudboy has joined #ruby
Pupeno has joined #ruby
agrinb has joined #ruby
rohit has joined #ruby
chthon has joined #ruby
Wolland has joined #ruby
aarwine has joined #ruby
arup_r has joined #ruby
hs366 has joined #ruby
arietis has joined #ruby
<arietis> hello
rkgudboy has quit [Ping timeout: 252 seconds]
Pupeno has quit [Ping timeout: 265 seconds]
<arietis> i'm trying to perform getaddrinfo http://docs.seattlerb.org/dnssd/DNSSD/Service.html
<arietis> but i get port param = 0
rohit has quit [Ping timeout: 252 seconds]
livathinos has joined #ruby
<arietis> is it bad implementation of lib or am i doing something wrong?
jmdade has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
w33nd0x has quit [Quit: Leaving]
<arietis> and this line 'sockaddr = Socket.pack_sockaddr_in 0, ip' looks suspicious
duncannz has quit [Ping timeout: 250 seconds]
jmdade has quit [Ping timeout: 252 seconds]
Rollabunna has joined #ruby
kaspernj has joined #ruby
<arietis> actually nevermind
<arietis> i just realized i already have port value
Beliq has joined #ruby
latemus has quit [Ping timeout: 255 seconds]
noshadowkicker has quit [Read error: Connection reset by peer]
<pagios> hi anyone familiar with RRDTOOL?
wottam has joined #ruby
coin3d has joined #ruby
wald0 has joined #ruby
tkuchiki has joined #ruby
ghr has joined #ruby
msgodf has joined #ruby
craigp has joined #ruby
latemus has joined #ruby
User458764 has joined #ruby
dj_zubehoer has joined #ruby
Beliq has quit [Quit: My computer has gone to sleep. ZZZzzz…]
joonty has joined #ruby
krisquigley has joined #ruby
dj_zubehoer has quit [Ping timeout: 250 seconds]
urtokk has quit [Remote host closed the connection]
mostlybadfly has quit [Quit: Connection closed for inactivity]
plashchynski has quit [Quit: plashchynski]
tvw has quit [Read error: Connection reset by peer]
tvw has joined #ruby
craigp has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
joe_meade has joined #ruby
Beliq has joined #ruby
sevenseacat1 has joined #ruby
workmad3 has joined #ruby
User458764 has joined #ruby
sevenseacat has quit [Ping timeout: 264 seconds]
Xiti` has joined #ruby
Pharaoh2_ has joined #ruby
craigp has joined #ruby
aarwine has quit [Ping timeout: 252 seconds]
antgel has joined #ruby
Pharaoh2 has quit [Ping timeout: 265 seconds]
Xiti has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
Cust0sL1men has joined #ruby
anonymus has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
<arietis> is there a way to ignore rubocop issues?
serivich has joined #ruby
<arietis> 'case when' one looks lame
sankaber has joined #ruby
jayeshsolanki has quit [Read error: Connection reset by peer]
SouL_ has quit [Read error: Connection reset by peer]
elfuego has joined #ruby
baash05 has joined #ruby
Matip has joined #ruby
Matip has joined #ruby
ndrei has joined #ruby
uber has quit [Read error: Connection reset by peer]
uber has joined #ruby
uber is now known as Guest16227
jottr_ has joined #ruby
Mattx has quit [Ping timeout: 252 seconds]
Guest16227 has quit [Changing host]
Guest16227 has joined #ruby
Guest16227 is now known as over
thinkswan has joined #ruby
over is now known as uber
<pagios> how can i convert this number into a normal integer in ruby: 5.6674884800e+01
<apeiros> pagios: .round, .ceil, .floor
<apeiros> depending on your needs
<pagios> apeiros: how do you read that number? 5.6 exponetial 1 ?
<apeiros> e02 == *10^2
<apeiros> google "scientific notation"
<pagios> so thats a 56.7 rounded to 57
lkba_ has quit [Ping timeout: 265 seconds]
<apeiros> yes
<apeiros> >> 5.6674884800e+01.round
<eval-in_> apeiros => 57 (https://eval.in/304309)
<workmad3> pagios: or 56 if you use .floor
<pagios> i am getting that from an RRD db
wald0 has quit [Quit: Lost terminal]
<workmad3> or .to_i
jottr_ has quit [Ping timeout: 256 seconds]
<pagios> i dont know if it is a good way to normalize everytrime form ruby
ki0 has joined #ruby
<pagios> i prefered if i had a number from rrd
<pagios> becuaase i have 1000+ entry to normalize
agrinb has joined #ruby
<apeiros> 5.6674884800e+01 is a number
<workmad3> it's even a perfectly valid literal representation in ruby
<pagios> yes but i want to manipulate it in ruby apeiros
<apeiros> pagios: and?
<apeiros> nothing stops you from doing so
<workmad3> pagios: >> 5.6674884800e+01 # oh look, no errors
<pagios> send it via json for instance
nii2361 has joined #ruby
jonr22 has joined #ruby
<workmad3> pagios: it's a float... the JSON serializer knows how to serialize floats into JSON
<apeiros> >> require 'json'; JSON.parse '{"a": 5.6674884800e+01}'
<eval-in_> apeiros => {"a"=>56.6748848} (https://eval.in/304311)
<apeiros> works just fine.
plashchynski has joined #ruby
<workmad3> >> require 'json'; {"a": 5.6674884800e+01}.to_json
<eval-in_> workmad3 => "{\"a\":56.6748848}" (https://eval.in/304312)
<apeiros> maybe you want to check your prejudices?
<workmad3> also works fine
aarwine has joined #ruby
<pagios> >> require 'json'; {"a": 5.6674884800e+01}.to_int.to_json
<eval-in_> pagios => undefined method `to_int' for {:a=>56.6748848}:Hash (NoMethodError) ... (https://eval.in/304313)
yfeldblum has joined #ruby
<pagios> >> require 'json'; {"a": 5.6674884800e+01}.to_round.to_json
<eval-in_> pagios => undefined method `to_round' for {:a=>56.6748848}:Hash (NoMethodError) ... (https://eval.in/304314)
<apeiros> you don't seriously expect *that* to work?
<workmad3> pagios: a hash isn't something you can turn into an integer
<pagios> ok
<workmad3> seriously... wtf?
<pagios> the number i want is 57 and not the 56.
tobago has quit [Changing host]
tobago has joined #ruby
ismaelga has joined #ruby
<apeiros> ok
<apeiros> and your problem is?
tobago has quit [Quit: Verlassend]
tobago has joined #ruby
agrinb has quit [Ping timeout: 256 seconds]
tobago_ has joined #ruby
<pagios> i am getting a 56.somryhin in the response hash
danfo_ has joined #ruby
jonr22 has quit [Ping timeout: 265 seconds]
<apeiros> pagios: and you can't round the number as shown previously because?
ndrei has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
tobago_ has quit [Client Quit]
nettoweb has joined #ruby
b0t00 has joined #ruby
joe_meade has quit [Remote host closed the connection]
<hanmac1> pagios: like that?
<hanmac1> >> require 'json'; {"a": 5.6674884800e+01}.map{|k,v|[k,v.round]}.to_h.to_json
<eval-in_> hanmac1 => "{\"a\":57}" (https://eval.in/304315)
tobago has quit [Client Quit]
tobago has joined #ruby
<pagios> yes thank you all
<pagios> is rrd the best db to store time series data?
tobago has quit [Client Quit]
tobago has joined #ruby
roolo has joined #ruby
ndrei has joined #ruby
danfo_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
The_Phoenix has joined #ruby
<apeiros> !best
<helpa> "Best" and "better" are subjective. Try to use a different term.
The_Phoenix has quit [Max SendQ exceeded]
chrissonar has joined #ruby
<apeiros> hm, I'd also add "are depending on context"
chrissonar has quit [Client Quit]
tobago has quit [Client Quit]
The_Phoenix has joined #ruby
<apeiros> given that you can have an objectively best if you define a metric by which "betterness" is measured
chrissonar has joined #ruby
<pagios> opensource
gaboesquivel has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
chrissonar has quit [Client Quit]
Pharaoh2_ is now known as Pharaoh2
The_Phoenix has joined #ruby
chrissonar has joined #ruby
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> apeiros: yeah... but if someone has an objective metric already, they wouldn't be asking the question :P
The_Phoenix has quit [Max SendQ exceeded]
<apeiros> workmad3: having a metric != having the data
leafybasil has quit [Remote host closed the connection]
<certainty> objective metric? is that some kind of apple sourcery?
<apeiros> I may know that "a better 100m sprint runner is the person who takes less time to run 100m in", but I may not know who is the fastest.
<workmad3> apeiros: no... but having the metric == replace 'best' with what the metric is
The_Phoenix has joined #ruby
Vivex has joined #ruby
<apeiros> workmad3: ah
<apeiros> yes
<workmad3> apeiros: i.e. with that metric, you'd ask "Who is the fastest" not "Who is the best" ;)
<apeiros> correct
<apeiros> my complaint wasn't about having to replace "best". my complaint was that it isn't necessarily because "best" is subjective :)
hpoydar has joined #ruby
noname has joined #ruby
<workmad3> apeiros: feel free to petition Radar for a change though... but I think it would just make the tip harder to understand for the people it's intended to target ;)
terlar has quit [Ping timeout: 256 seconds]
<Radar> Sure sned me through some better wording and I will correct it
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
ismaelga has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
Lewix has joined #ruby
MyMind has quit [Read error: Connection reset by peer]
<apeiros> na, I prefer to be a pedant without facilitating change ;-)
n008f4g_ has joined #ruby
<apeiros> what would I rant about if everything was perfect?
<apeiros> j/k, I'll see if I can come up with something we both agree on being better worded. but now it's jogging time. cya folks!
<workmad3> apeiros: by that judgement, the only way 'everything could be perfect' would be if you had something to rant about... because without that, you're not happy so it isn't perfect ;)
MyMind has joined #ruby
<workmad3> (no doubt you'd end up ranting about the perfection of everything though... :P)
<apeiros> workmad3: good lord! don't get all metapsychological on me!
<workmad3> apeiros: there you go ruining *my* fun :P
<shevy> are you guys drunk again
<apeiros> shevy: again? you imply there are breaks?
<workmad3> shevy: I don't think any alcohol has passed my lips for the last 18 months
<shevy> workmad3 guess you have to learn how to drink beer again then :)
DavidDudson has joined #ruby
<workmad3> shevy: there you go with the 'again' again :P
<shevy> I need to connect with past history!
<shevy> "workmad3 the old drunk"
nii2361 has quit [Ping timeout: 256 seconds]
it0a has quit [Ping timeout: 256 seconds]
<workmad3> shevy: yes, but you assume that I did once learn how to choke down the fowl substance known as 'beer' :P
<shevy> I use being drunk as a cover up all the time. my code looks as if I was drunk. by design
Lewix has quit [Ping timeout: 252 seconds]
<workmad3> s/fowl/foul
<workmad3> second time I've made that mistake this week :/
<workmad3> if beer tasted like chicken, I'd probably drink it...
<shevy> I have looked at an upcoming exam that I will try called "operating systems"; some example questions, just require theory (that's fine, I can memorize it), but 2 out of ~20 questions require one to write C code on paper (!)
DavidDudson has quit [Client Quit]
latemus has quit [Ping timeout: 244 seconds]
<workmad3> shevy: at least they don't require you to memorise the GCC source so you can also write down the optimised, compiled output
sdothum has joined #ruby
juanpaucar has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
DavidDudson has joined #ruby
shexy has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<shexy> good morning, what is the equivalen of setInterval in ruby? run a task every x time
lkba has joined #ruby
baash05 has quit [Read error: Connection reset by peer]
The_Phoenix has joined #ruby
<flughafen> shexy: run your code ./foo.rb, then count 1, 2, 3, 4 in ms, till you reach y our desired count and run it again
<workmad3> flughafen: hehe
The_Phoenix has quit [Max SendQ exceeded]
<workmad3> flughafen: you'll probably still be more precise than the timers in windows :P
<shexy> funny channel thanks
shexy has quit [Client Quit]
The_Phoenix has joined #ruby
oo_ has joined #ruby
<flughafen> workmad3: yes, haha
The_Phoenix has quit [Max SendQ exceeded]
<flughafen> uh oh, we upset someone
The_Phoenix has joined #ruby
<shevy> was a fake
<workmad3> shevy: yeah, I figured :P
The_Phoenix has quit [Max SendQ exceeded]
<shevy> though I wonder who here would think of a method called setInterval
<shevy> is that java?
Sgeo_ has joined #ruby
gfawcettpq has joined #ruby
<workmad3> javascript
<shevy> aah
The_Phoenix has joined #ruby
juanpaucar has quit [Ping timeout: 250 seconds]
<workmad3> setInterval(function, milliseconds)... also setTimeout(function, milliseconds)
The_Phoenix has quit [Max SendQ exceeded]
Virgil_Schiev has quit [Quit: Leaving]
doodlehaus has joined #ruby
hpoydar has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
danfo_ has joined #ruby
antgel has quit [Ping timeout: 256 seconds]
latemus has joined #ruby
leafybasil has joined #ruby
jayeshsolanki has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
Sgeo has quit [Ping timeout: 250 seconds]
ki0 has quit [Remote host closed the connection]
oivoodoo has quit [Remote host closed the connection]
ki0 has joined #ruby
selu has joined #ruby
davispuh has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
oivoodoo has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
tkuchiki has quit [Remote host closed the connection]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
danfo_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
haxrbyte_ has quit [Read error: Connection reset by peer]
haxrbyte has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
wald0 has joined #ruby
The_Phoenix has joined #ruby
oivoodoo has quit [Remote host closed the connection]
superspring has joined #ruby
<flughafen> workmad3: so i was right for him to count in ms
iteratorP has quit [Ping timeout: 245 seconds]
lordkryss has joined #ruby
<shevy> hehehe
Musashi007 has joined #ruby
angdev has quit []
ndrei has quit [Read error: Connection reset by peer]
ndrei has joined #ruby
<shevy> I wonder if I like bloat
<shevy> I have a gem release 0.0.1 - June 20, 2012 (186 KB)
<shevy> and now it is at 222 KB in 2015 hmmm
dmitrykorotkov has quit [Ping timeout: 265 seconds]
wottam has quit [Quit: Textual IRC Client: www.textualapp.com]
nii2361 has joined #ruby
pwnz0r has joined #ruby
ndrei has quit [Ping timeout: 250 seconds]
ndrei has joined #ruby
hanmac has quit [Ping timeout: 256 seconds]
Pupeno has joined #ruby
agrinb has joined #ruby
anaeem1__ has joined #ruby
pwnz0r has quit [Ping timeout: 256 seconds]
anaeem1__ has quit [Remote host closed the connection]
toretore has joined #ruby
anaeem1_ has joined #ruby
anaeem1 has quit [Read error: Connection reset by peer]
jschoolcraft has joined #ruby
ndrei has quit [Read error: Connection reset by peer]
nii2361 has quit [Ping timeout: 255 seconds]
pengin has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
Pupeno has quit [Ping timeout: 265 seconds]
mostlybadfly has joined #ruby
agrinb has quit [Ping timeout: 265 seconds]
n008f4g_ has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ndrei has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
bruno- is now known as Guest87444
TDJACR has quit [Ping timeout: 250 seconds]
haxrbyte has quit [Remote host closed the connection]
snath has quit [Ping timeout: 245 seconds]
Akagi201 has joined #ruby
Zai00 has joined #ruby
hanmac has joined #ruby
rodfersou has joined #ruby
ndrei has joined #ruby
waza has quit [Ping timeout: 246 seconds]
pengin has quit [Remote host closed the connection]
Guest87444 has quit [Ping timeout: 244 seconds]
Akagi201_ has quit [Ping timeout: 250 seconds]
User458764 has joined #ruby
bruno-_ has joined #ruby
<arup_r> Like Heroku is there anything which can run Rails app free ? I want to try something new..
<arup_r> Info please ...
<certainty> arup_r: i think appfog offers such things
<arup_r> I want to learn deployment to something new server
<arup_r> certainty: ok
sino has joined #ruby
jayeshsolanki has quit [Read error: Connection reset by peer]
rodfersou has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 250 seconds]
rodfersou has joined #ruby
sino has quit [Client Quit]
terlar has joined #ruby
ndrei has joined #ruby
jayeshsolanki has joined #ruby
joonty has quit [Quit: joonty]
jayeshsolanki has quit [Max SendQ exceeded]
joonty has joined #ruby
Guest52850 has quit [Ping timeout: 244 seconds]
craigp has quit []
rsavage has joined #ruby
startupality has joined #ruby
rsavage is now known as r3dk1ng
arup_r has quit [Ping timeout: 248 seconds]
jasabella has quit [Remote host closed the connection]
arup_r has joined #ruby
Lewix has joined #ruby
Lewix has joined #ruby
Zai00 has quit [Quit: Zai00]
<arup_r> certainty: it seems free for 30 day https://www.appfog.com/
<workmad3> arup_r: if you want to learn your way around a server deployment though, you're really wanting to look at VPS stuff
<workmad3> arup_r: or just install ubuntu in a VM locally and figure out the deployment on that
<jhass> arup_r: if you want to learn some deployment tools, why not get a cheap VPS and try them there?
ndrei has quit [Read error: Connection reset by peer]
snath has joined #ruby
<jhass> or even a local VM, yeah
ndrei has joined #ruby
Soda has joined #ruby
<arup_r> workmad3: ok.. never heard about it VPS.. I did practice only Heroku and GCloud
DavidDudson has quit [Ping timeout: 246 seconds]
<certainty> i'd start with a local vm too
reinaldob has joined #ruby
<certainty> arup_r: ah ok i didn't recall their prices/plans
<arup_r> I use openSUSE in personal computer..
<shevy> ack
<certainty> you have my sympathy
<arup_r> That's too old.. I don't know how it would response if it see 2 OS
<arup_r> shevy: ack means ?
selu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<certainty> arup_r: spin up a vm and install an OS of your choice
<shevy> It means that I am shocked and terrified
<shevy> SUSE!
<shevy> a german distribution!!!
<arup_r> :p
<certainty> for practical matters it should probably be an OS that is not too esotheric
ndrei has quit [Ping timeout: 245 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<shevy> either it is too esoteric or too erotic
latemus has quit [Ping timeout: 246 seconds]
<certainty> esoerotic
<shevy> hah
<workmad3> shevy: I like my OSes to be dull and gray... I desire neither estoricism or eroticism in my OS
ndrei has joined #ruby
<shevy> workmad3 do you use a screensaver?
t_p has quit [Quit: Computer has gone to sleep.]
<workmad3> shevy: I use a screen lock :P
MuffinPimp has quit [Ping timeout: 244 seconds]
latemus has joined #ruby
<jhass> arup_r: make sure to use the server version of course, no gui
tiago has quit [Ping timeout: 246 seconds]
<certainty> imagines a heavy iron lock that workmad3 carrys around
stoffus has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
<certainty> or a lock with a screen on it
<jhass> arup_r: then you should be able to run it with 128-256M ram designated to the VM just fine
<workmad3> certainty: I imagined the mental image to be more of a U-shaped bike lock just hung over the screen ;)
<jhass> mmh, is openSUSE systemd these days?
<arup_r> jhass: that's good information..
<arup_r> I am having 2 GB RAM support
<jhass> what DE? is it still KDE over there?
Guest74 has joined #ruby
<jhass> how much ram do you have left?
MuffinPimp has joined #ruby
<workmad3> certainty: but I quite like the idea of a padlock with a screen... if you use the wrong key, or try to mess with it, it simply does a video clip from little britain of "Computer said no"
<arup_r> jhass: I use openSUSE 13.1 KDE
<jhass> arup_r: no systemd though?
<arup_r> But RAM I wouldn't be able to tell,,, as I am away from my personal laptop..
<arup_r> jhass: but it is running very slow recently..
User458764 has joined #ruby
<arup_r> may be I am runing 3 db services due to the fact it is slow
postmodern has quit [Quit: Leaving]
<jhass> eh yeah, only start that stuff on demand
<jhass> systemd socket activation <3
<arup_r> what is that ? jhass
<certainty> that's so wrong
<certainty> systemd and <3 in one sentence
<jhass> arup_r: systemd listens on the socket the service normally wood and if and only if there's a connection it spins up the service and hands over the socket
<jhass> lol, "normally would"
<workmad3> certainty: maybe <3 is a spear or pointy thing that is intended to stab systemd?
<jhass> no, systemd is <3
<certainty> workmad3: oh yeah, nice. that it's ok
sleeper has joined #ruby
<jhass> I got a couple of units that do socket activation for an ssh socks5 proxy
b0t00 has quit [Ping timeout: 252 seconds]
<jhass> so I can just connect to the proxy and it starts on demand
<jhass> no need to have the connection permanently open, no need to start it by hand
<certainty> maybe <3 is meant to be a pictogram of a somewhat pointy phallus followed by some balls xD ... that would be fitting too then. basically systemd is a dick then
joonty has quit [Quit: joonty]
<certainty> some ideas are neat but the thing grows and grows and totally gets out of hand. Also the core bunch around poettering and sievers are well ....
ldnunes has joined #ruby
dmr8 has joined #ruby
joonty has joined #ruby
<jhass> the only issue I have is that they throw it all into one repository
<jhass> instead of extracting the common parts to libraries and give everything their own repo
<jhass> I think that's the main reason why people see it as such a big clunky thing, it hides that there's systemd the init daemon and systemd the project that hosts a whole bunch of tools
Guest74 has quit [Quit: Textual IRC Client: www.textualapp.com]
<arup_r> Anyway got http://aws.amazon.com/ec2/pricing/ 1 year free .. enough for me
<arup_r> :)
<workmad3> jhass: tbh, I've just not had much exposure to systemd yet... so I just bandwagon on whichever side of the 'it's awesome/it's awful' debate seems the funniest at any given time ;)
<arup_r> They https://www.digitalocean.com/ don't have although..
<workmad3> jhass: and to some extent, they must be doing something right, because it seems a lot of distros are jumping onto the systemd wagon, even though there's very vocal haters out there :)
<jhass> they're the first to make use of all the nice things the linux kernel developed over the recent years and give some useful interfaces to those APIs, simple as that
<certainty> they're marketing that's all. See what happened to pulseaudio and other projects that have been abandoned. I don't care for random crap software if it is that way, but for pid 1 i do care.
<arup_r> this time I will deploy app to aws with http://capistranorb.com/ ... new journey.. I never used it before.. I should try..
oivoodoo has joined #ruby
<certainty> jhass: that's what they say and that is only part of the story. nobody would complain if that was only it
<jhass> alright I take the bait, what's the other part?
<certainty> anyway, time for the lunch walk
tiago has joined #ruby
tiago is now known as Guest59114
<jhass> workmad3: for some fun https://www.youtube.com/watch?v=-97qqUHwzGM
ndrei has quit [Read error: Connection reset by peer]
doodlehaus has quit [Remote host closed the connection]
ItSANgo__ has joined #ruby
<sleeper> why do people hate systemd anyway? i'm always seeing people complaining but only a couple have ever articulated the angst.
plashchynski has quit [Quit: plashchynski]
<jhass> sleeper: watch the talk :P
AlphaAtom has joined #ruby
hiyosi has joined #ruby
<sleeper> jhass: was hoping for the 10 words or less edition
ItSANgo_ has quit [Ping timeout: 272 seconds]
<workmad3> jhass: heh :) 'it's like losing the joys of sendmail configuration all over again'
oivoodoo has quit [Ping timeout: 272 seconds]
<jhass> sleeper: half of the talk is enough iirc, so < 10 minutes
<sleeper> jhass: fair enough
agrinb has joined #ruby
oo_ has quit [Remote host closed the connection]
ndrei has joined #ruby
CorySimmons has quit [Quit: Bye!]
jonr22 has joined #ruby
ArchRogem has joined #ruby
lkba_ has joined #ruby
Rollabunna has quit [Read error: Connection reset by peer]
agrinb has quit [Ping timeout: 256 seconds]
ItSANgo__ has quit [Ping timeout: 264 seconds]
_64k has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
ItSANgo_ has joined #ruby
elfuego has quit [Quit: elfuego]
krz has quit [Quit: WeeChat 1.0.1]
juanca_ has joined #ruby
<hanmac1> jhass: i did play a bit with my Delegator and now: Integer === HiddenDelegator.new(4) #=> true ... but i needed alias for that :/
davispuh has quit [Remote host closed the connection]
<workmad3> hanmac1: a not-quite-so-evil evil thing? :)
<jhass> hanmac1: so you overwrote something?
davispuh has joined #ruby
<jhass> outside of your class that is
<hanmac1> workmad3 & jhass newest version https://gist.github.com/Hanmac/4619845
<jhass> yeah, 36-41 is what I'm trying to avoid
Musashi007 has quit [Ping timeout: 264 seconds]
<hanmac1> and workmad3 i noticed that my thing is a fork of your idea ... but only spinned a bit far furher ;P
<workmad3> hanmac1: remind me what my idea was again? :)
<hanmac1> workmad3: this was yours https://gist.github.com/workmad3/4619545 a very long time ago ;P
Guest59114 has quit [Changing host]
Guest59114 has joined #ruby
Guest59114 has quit [Quit: ZNC - http://znc.in]
tiago_ has joined #ruby
<workmad3> hanmac1: oh yeah... over 2 years ago now :)
ghostpl_ has joined #ruby
tiago_ has quit [Changing host]
tiago_ has joined #ruby
Musashi007 has joined #ruby
tiago_ is now known as tiago
<workmad3> hanmac1: one slight suggestion for your version... I'd do a check to see if __getobj__ responds to a bang method and only use the overwrite if it doesn't
ItSANgo_ has quit [Read error: Connection reset by peer]
ItSANgo__ has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
phutchins has joined #ruby
<workmad3> hanmac1: the way you're doing things atm, it alters the semantics of some things, like gsub!... normally that returns nil if no changes are made, but with your hidden delegator it acts like 'gsub' there
claptor has quit [Quit: this channel is bakas]
<workmad3> (for fairly obvious reasons :) )
xcombelle has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
juanpaucar has joined #ruby
d10n-work has joined #ruby
cassianoleal has quit [Quit: (null)]
cassianoleal has joined #ruby
ItSAN____ has joined #ruby
cassianoleal has quit [Client Quit]
doodlehaus has joined #ruby
andpt has joined #ruby
doodlehaus has quit [Remote host closed the connection]
cassianoleal has joined #ruby
ItSANgo__ has quit [Ping timeout: 246 seconds]
<pagios> anyone using an rrd database? i am finding hard time with the ruby binding
aclearman037 has joined #ruby
leafybasil has quit [Remote host closed the connection]
dfinninger has joined #ruby
juanpaucar has quit [Ping timeout: 256 seconds]
leafybasil has joined #ruby
ValicekB has joined #ruby
angdev has joined #ruby
soc42 has joined #ruby
pontiki has joined #ruby
sankaber has joined #ruby
JDiPierro has joined #ruby
angdev has quit [Client Quit]
sandelius has joined #ruby
vdamewood has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Musashi007 has quit [Quit: Musashi007]
DaniG2k has joined #ruby
codecop has joined #ruby
antgel has joined #ruby
<andpt> Hey guys, does anyone may suggest me an idiomatic way of combining the elements of two arrays? I arrays x and y and I want to accumulate the sum of, let's say, x*y^2 for each pair of elements. I've seen some stuff about inject, map, etc but I'm unsure about how to use them properly. What I did so far: I create a new array that has 2 arrays: the x and y arrays. Then, I tried this:
<andpt> (0..2).to_a.each { |i| sum =+ array_new[0][i] + array_new[1][i] ; sum}
<andpt> (the 2 is just for testing)
<andpt> by the way, =+ instead of =+
<andpt> and it works
<andpt> but it doesn't seem very idiomatic, is there a nicer way to do this?
JDiPierro has quit [Remote host closed the connection]
joonty has quit [Quit: joonty]
thinkswan has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
<jhass> andpt: try zip
<jhass> xs.zip(ys).map {|x,y| x*y**2 }.inject(:+)
<jhass> can spare the map with some destructing in the inject I guess
<daxroc> What's a reasonable way to stream a log parsing for a regex
jerius has joined #ruby
<daxroc> IO.popen().each_line ?
<jhass> daxroc: reading line by line I guess, depends on the regex
Zai00 has joined #ruby
<jhass> uh, try?
<andpt> jhass: cool, thank you very much.
<daxroc> I would prefer to buffer as I need to sleep to give some reasonable feedback
<daxroc> so I guess open parse all , note position and sleep and reparse from noted postion would be ok
bayed has joined #ruby
Macaveli has joined #ruby
withnale has quit [Ping timeout: 256 seconds]
AlphaAtom has quit [Ping timeout: 250 seconds]
withnale has joined #ruby
brb3 has joined #ruby
lavros has joined #ruby
plashchynski has joined #ruby
agrinb has joined #ruby
oivoodoo has joined #ruby
kyrylo has joined #ruby
jottr_ has joined #ruby
workmad3 has quit [Quit: leaving]
jonr22 has joined #ruby
jerius has quit [Quit: /quit]
<pagios> what gem should i install to get this working? http://oss.oetiker.ch/rrdtool/prog/rrdruby.en.html
agrinb has quit [Ping timeout: 256 seconds]
oivoodoo has quit [Ping timeout: 252 seconds]
jottr_ has quit [Ping timeout: 252 seconds]
<jhass> "If you use the --ruby-site-install configure option you can drop the $: line since the RRDtool module will be found automatically."
<jhass> quoted directly from your link
jefus_ is now known as jefus
<pagios> jhass: i am not installing from source
<jhass> it's a clear sign for that this is no gem though
stef204 has joined #ruby
triple_b has joined #ruby
<shevy> pagios don't you also hate it when errors don't say where they happen :)
<pagios> in my rb file i m including: $: /opt/rrdtool-1.5.0-rc2/lib/ruby/2.2.0/armv7l-linux-eabihf
<pagios> require "RRD"
<jhass> yeah
<jhass> the example doesn't look like that
<jhass> $: is an array
<jhass> >> $:
<eval-in_> jhass => ["/execpad/interpreters/ruby-2.2.0/lib/ruby/site_ruby/2.2.0", "/execpad/interpreters/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/i686-linux", "/execpad/interpreters/ruby-2.2.0/lib/ruby/site_ruby", "/execpad/in ... (https://eval.in/304402)
<jhass> no keyword or anything
<pontiki> not only that, but the array contents are strings
<pagios> yep
<pagios> jhass: http://pastie.org/10052557 same same
<jhass> pagios: looks like it loads a different RRD.so than it was linked against
silkfox has joined #ruby
ojacobson has quit [Quit: - 30 -]
anaeem1 has quit [Remote host closed the connection]
dblessing has joined #ruby
ojacobson has joined #ruby
<jhass> pagios: ldd /opt/rrdtool-1.5.0-rc2/lib/ruby/2.2.0/armv7l-linux-eabihf/RRD.so might be interesting
wald0 has quit [Ping timeout: 256 seconds]
JDiPierro has joined #ruby
<jhass> interesting, no idea what's broken there
<jhass> I'd try rebuilding it anyway
allenn has quit [Remote host closed the connection]
a5i has joined #ruby
wald0 has joined #ruby
jerematic has joined #ruby
<pagios> /usr/lib/ruby/1.9.1/arm-linux-eabihf/RRD.so <-- jhass i bave that RRD.so sitting somewhere
<jhass> if that's in the load path of your 2.2 ruby it would probably segfault
allenn has joined #ruby
cpruitt has joined #ruby
agrinb has joined #ruby
tier has joined #ruby
chthon has quit [Quit: Ex-Chat]
Pupeno has joined #ruby
tier_ has joined #ruby
juanca_ has quit []
Beliq has quit [Quit: My computer has gone to sleep. ZZZzzz…]
shock_one has joined #ruby
<shock_one> Is there a shorter way to say array.group_by(&:something).values ?
zenith_ has joined #ruby
allcentury has joined #ruby
davedev24_ has joined #ruby
Apocalypse has quit [Quit: Input/Output Error]
tier has quit [Ping timeout: 246 seconds]
joonty has joined #ruby
adriancb has joined #ruby
Pupeno has quit [Ping timeout: 272 seconds]
adriancb has quit [Remote host closed the connection]
hpoydar has joined #ruby
endash has joined #ruby
adriancb has joined #ruby
oivoodoo has joined #ruby
imanzarrabian has quit [Ping timeout: 264 seconds]
<jhass> no, #chunk potentially but very unlikely
endash has quit [Client Quit]
zenith_ has quit [Ping timeout: 250 seconds]
Zai00 has quit [Quit: Zai00]
it0a has joined #ruby
endash has joined #ruby
Apocalypse has joined #ruby
Apocalypse has joined #ruby
bluOxigen has joined #ruby
<apeiros> shock_one: depending on your situation, sort_by
<shock_one> I need an array of arrays.
Pupeno has joined #ruby
<apeiros> then I doubt there's a shorter
n008f4g_ has joined #ruby
doodlehaus has joined #ruby
nhhagen has joined #ruby
AlphaAtom has joined #ruby
arietis has quit [Quit: Leaving.]
iml has joined #ruby
lolmaus has quit [Ping timeout: 264 seconds]
_maes_ has joined #ruby
lolmaus has joined #ruby
michael_mbp has quit [Excess Flood]
Channel6 has joined #ruby
Sirupsen has joined #ruby
michael_mbp has joined #ruby
icebourg has joined #ruby
icebourg has quit [Max SendQ exceeded]
agent_wh1te has quit [Read error: Connection reset by peer]
icebourg has joined #ruby
dropp has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
GnuYawk has joined #ruby
<gr33n7007h> shock_one: partition?
<gr33n7007h> again depending on situation
<shock_one> gr33n7007h: it returns two arrays. I need the data to be grouped by date.
Squarepy has joined #ruby
maximski has joined #ruby
decoponio has joined #ruby
agent_white has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
stef204 has quit [Ping timeout: 246 seconds]
<hanmac1> shock_one: shorter than array.group_by(&:something).values i dont think so
delianides has joined #ruby
jonr22 has quit [Remote host closed the connection]
livingstn has joined #ruby
mjuszczak has joined #ruby
arietis has joined #ruby
jtzero has joined #ruby
DaniG2k has quit [Ping timeout: 264 seconds]
tvw has joined #ruby
thinkswan has joined #ruby
fryguy9 has joined #ruby
dfinninger has quit [Remote host closed the connection]
serivich has quit [Ping timeout: 255 seconds]
agent_white has joined #ruby
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shock_one> There is slice_when, which would give us array.slice_when { |a, b| a.something != b.something } providing the array is sorted. I wish there was slice_by with != as a predicate.
<shevy> huh
<shevy> never heard of slice_when before
<gr33n7007h> me either
sfvyis has joined #ruby
arup_r has quit []
sgambino has joined #ruby
<gr33n7007h> ah, Enumerable#slice_when 2.2.0 I need to upgrade :)
Mon_Ouie has quit [Ping timeout: 246 seconds]
lavros has quit [Ping timeout: 264 seconds]
foureight84_ has joined #ruby
paulcsmith has joined #ruby
<shevy> aha ok
enebo has joined #ruby
<shevy> then that is fine
<shevy> it is new :)
<shevy> one day my brain can no longer memorize all methods in ruby
thinkswan has quit [Ping timeout: 250 seconds]
JDiPierro has quit [Remote host closed the connection]
lavros has joined #ruby
allcentury has quit [Quit: WeeChat 1.1.1]
max96at|off is now known as max96at
<shock_one> Still waiting for Hash#map_values.
<a5i> Anyone thought of JRuby-Rack + Raptor o.o
sandelius has joined #ruby
mjuszczak has quit []
Hounddog has quit [Remote host closed the connection]
jwinder has joined #ruby
serivich has joined #ruby
hpoydar has quit [Remote host closed the connection]
arietis has quit [Quit: Leaving.]
mjuszczak has joined #ruby
werelivinginthef has joined #ruby
Hounddog has joined #ruby
hpoydar has joined #ruby
shazaum has joined #ruby
sevenseacat1 has left #ruby [#ruby]
haxrbyte has joined #ruby
<shock_one> shevy: that's the day when you are out of market. ;)
Musashi007 has joined #ruby
yeticry has quit [Ping timeout: 252 seconds]
byprdct has joined #ruby
BLuEGoD has quit [Remote host closed the connection]
yvemath has quit [Remote host closed the connection]
yeticry has joined #ruby
Channel6 has quit [Quit: Leaving]
jimms has joined #ruby
elfuego has joined #ruby
BLuEGoD has joined #ruby
Soda has quit [Remote host closed the connection]
eighthbit has joined #ruby
ROOM1 has joined #ruby
banister has joined #ruby
<ROOM1> hi
rbennacer has joined #ruby
<jhass> oh you're back
<jhass> how's your ruby going?
RegulationD has joined #ruby
<ROOM1> nice
<ROOM1> yes I am back
mjuszczak has quit []
<ROOM1> did you miss me
bigmac_ has joined #ruby
arietis has joined #ruby
<jhass> not too much
<ROOM1> hey
Squarepy has quit [Quit: Leaving]
<ROOM1> so what r u up to
freerobby has joined #ruby
<jhass> I just made the build in an open source project I work on more stable. And you?
icebourg has quit []
<jhass> still got the broken keyboard I see?
<ROOM1> no
dfinninger has joined #ruby
<ROOM1> just came back from swimming
mjuszczak has joined #ruby
arietis has quit [Client Quit]
mitchellhenke has joined #ruby
bruno-_ has quit [Quit: Lost terminal]
aclearma_ has joined #ruby
pontiki has quit [Read error: Connection reset by peer]
gfawcettpq has quit [Ping timeout: 272 seconds]
pontiki has joined #ruby
bruno- has joined #ruby
stef204 has joined #ruby
aclearman037 has quit [Ping timeout: 250 seconds]
arietis has joined #ruby
juanpaucar has joined #ruby
<gr33n7007h> >> class Hash; def map_values; self.each {|k,v| self[k] = yield(v); end; end; end; {a: 1, b: 2, c: 3}.map_values {|n| n**2 } # would be nice to see :)
<eval-in_> gr33n7007h => /tmp/execpad-efe7308409db/source-efe7308409db:2: syntax error, unexpected keyword_end, expecting '}' ... (https://eval.in/304427)
<gr33n7007h> >> class Hash; def map_values; self.each {|k,v| self[k] = yield(v)}; end; end; {a: 1, b: 2, c: 3}.map_values {|n| n**2 } # would be nice to see :)
<eval-in_> gr33n7007h => {:a=>1, :b=>4, :c=>9} (https://eval.in/304431)
arietis has quit [Client Quit]
Pupeno has quit [Remote host closed the connection]
<gr33n7007h> >> class Hash; def map_values; self.each {|k,v| self[k] = yield(v)}; end; end; {a: 1, b: 2, c: 3}.map_values(&:even?)
<eval-in_> gr33n7007h => {:a=>false, :b=>true, :c=>false} (https://eval.in/304436)
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
Musashi007 has quit [Quit: Musashi007]
juanpaucar has quit [Ping timeout: 255 seconds]
User458764 has joined #ruby
agarie has joined #ruby
serivich has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
<gregf_> >> Hash[{a: 1, b: 2, c: 3}.map { |k, v| [k, v**2] }]
<eval-in_> gregf_ => {:a=>1, :b=>4, :c=>9} (https://eval.in/304454)
<gregf_> >> {a: 1, b: 2, c: 3}.select { |k, v| v %2 ==0 }
<eval-in_> gregf_ => {:b=>2} (https://eval.in/304455)
droidburgundy has joined #ruby
dfinninger has quit [Remote host closed the connection]
oo__ has joined #ruby
<gregf_> does'nt look too difficult :/
<gr33n7007h> >> {a: 1, b: 2, c: 3}.map { |k, v| [k, v**2] }.to_h
<eval-in_> gr33n7007h => {:a=>1, :b=>4, :c=>9} (https://eval.in/304461)
<gregf_> >>{a: 1, b: 2, c: 3}.map { |k, v| v %2 ==0 ? [k, true] : [k, false] }
<eval-in_> gregf_ => [[:a, false], [:b, true], [:c, false]] (https://eval.in/304463)
<gregf_> arrgh
<gregf_> >>{a: 1, b: 2, c: 3}.map { |k, v| v %2 ==0 ? [k, true] : [k, false] }.to_h
<eval-in_> gregf_ => {:a=>false, :b=>true, :c=>false} (https://eval.in/304464)
bitcycle has joined #ruby
<gr33n7007h> there we go :)
dfinninger has joined #ruby
bitcycle has quit [Client Quit]
jimms has quit [Remote host closed the connection]
tier_ has quit [Ping timeout: 272 seconds]
<gregf_> er, well i'm on 1.9.*. and i've got rbenv and rvm :/
crueber has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
<gr33n7007h> gregf_: I'm using 1.9 only due to being on a live usb :(
serivich has joined #ruby
<gr33n7007h> debian's standard :S
<gregf_> :/
DaniG2k has joined #ruby
bitcycle has joined #ruby
Pupeno has quit [Quit: Leaving...]
haxrbyte has quit [Ping timeout: 255 seconds]
fantazo has joined #ruby
<gr33n7007h> I think jessies default is 2.1
haxrbyte has joined #ruby
gfawcettpq has joined #ruby
roolo_ has joined #ruby
yvemath has joined #ruby
Sirupsen_ has joined #ruby
haxrbyte has quit [Remote host closed the connection]
<jhass> mmh, somebody should make a regularly updated table of the ruby versions shipped in popular distributions
<jhass> should be possible to write a tool that autogens that, mh
haxrbyte has joined #ruby
Feyn has quit [Quit: Leaving]
<gr33n7007h> true that, jhass
otisZart has joined #ruby
<gr33n7007h> might just switch to arch :)
mjuszczak has quit []
roolo has quit [Ping timeout: 265 seconds]
<jhass> I have that question regularly though, wondering what versions to support and which can be dropped
ta has quit [Remote host closed the connection]
startupality has quit [Quit: startupality]
coderhut has joined #ruby
Sirupsen has quit [Ping timeout: 272 seconds]
<gr33n7007h> >> h = {a: 1, b: 2}; h.update(h) {|_,v| v ** 2 }
<eval-in_> gr33n7007h => {:a=>1, :b=>4} (https://eval.in/304484)
haxrbyte has quit [Ping timeout: 245 seconds]
haylon has joined #ruby
_64k_ has joined #ruby
Mon_Ouie has joined #ruby
a346 has joined #ruby
<gr33n7007h> I always forget update :(
ayaz has joined #ruby
ayaz is now known as Guest8201
carlyle has joined #ruby
_64k has quit [Read error: Connection reset by peer]
<haylon> Anyone familiar with OCRA for compiling gems into exe's?
icebourg has joined #ruby
<jhass> !expert
<helpa> we all like to think we're experts; just ask your question
haxrbyte has joined #ruby
Guest8201 has quit [Changing host]
Guest8201 has joined #ruby
Guest8201 has quit [Client Quit]
icebourg has quit [Client Quit]
<haylon> I have a Gem that I wrote that pulls in information from WebSphere MQ, and parses it. However, it seems that my Gem is collecting space, and just filling up C:\WINDOWS\Temp. Is it safe to just remove my OCRA temp files?
ayaz_ has joined #ruby
tier has joined #ruby
ayaz_ has quit [Changing host]
ayaz_ has joined #ruby
tjohnson has joined #ruby
tohsig has joined #ruby
<jhass> I have no idea
<jhass> but if they're not temporary they shouldn't live in a directory named temp
pagios has quit [Ping timeout: 246 seconds]
<ROOM1> hey jhass
wpp has joined #ruby
oo__ has quit [Remote host closed the connection]
juanpaucar has joined #ruby
livathin_ has joined #ruby
<wpp> Hello does someone know how to make a get request with RestClient (with url params and HTTP headers) e.g.: RestClient.get(url, { one, 'one' }, { 'Authorization' => token })
haxrbyte has quit [Remote host closed the connection]
<ROOM1> no
<wpp> s/get/post works fine btw
agarie has quit [Remote host closed the connection]
haxrbyte has joined #ruby
kblake has joined #ruby
rubytor has joined #ruby
davedev24_ has quit [Read error: Connection reset by peer]
rubytor has quit [Read error: Connection reset by peer]
davedev24_ has joined #ruby
<jhass> wpp: the signature according to the docs .get(url, headers = {}, &block) ⇒ Object
livathinos has quit [Ping timeout: 244 seconds]
<jhass> rest-client doesn't seem to do query param generation for you
<wpp> jhass yeah I just found this workaround in github issues: resource = RestClient::Resource.new(url, :headers => {:params => { "auth-id" => auth_id, "auth-token" => auth_token, "street" => "15 august simsbury ct" }})
<wpp> resource.get
cpt_yossarian has quit [Quit: And then he took off.]
fryguy91 has joined #ruby
KillerFox has quit [Ping timeout: 264 seconds]
<wpp> wpp poor maintainer: "So I think you can achieve what you want with this cringe-worthy hack:"
* jhass knows why he prefers faraday :P
n80 has joined #ruby
agarie has joined #ruby
fryguy9 has quit [Ping timeout: 250 seconds]
haxrbyte has quit [Ping timeout: 250 seconds]
_blizzy_ has quit [Ping timeout: 244 seconds]
KillerFox has joined #ruby
teddyp1cker has left #ruby [#ruby]
mjuszczak has joined #ruby
Sirupsen_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
JDiPierro has joined #ruby
platzhirsch has joined #ruby
johnkary has joined #ruby
spyderman4g63 has joined #ruby
haylon has quit [Quit: Page closed]
Rephiax has joined #ruby
agarie has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
agarie has joined #ruby
otisZart has quit [Ping timeout: 248 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
sloshy has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
<greedo> because of Rack jhass?
sloshy has joined #ruby
<jhass> huh?
<jhass> what does rack have to do with http clients?
<greedo> faraday embraces the concept of Rack middleware
joe_meade has joined #ruby
ismaelga has joined #ruby
<shevy> https://rubygems.org/gems/faraday 14 million downloads!
hobodave has joined #ruby
<greedo> I too like the middleware design pattern
xcombelle has quit [Ping timeout: 252 seconds]
momomomomo has joined #ruby
momomomomo has quit [Client Quit]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<greedo> providing a common interface over many similar underlying libraries is useful
<shevy> ever since rack emerged, things like ramaze died
DerisiveLogic has joined #ruby
<shevy> actually that is not entirely correct in itself
<shevy> since sinatra also emerged at about the time
oivoodoo has quit [Remote host closed the connection]
snath has quit [Ping timeout: 252 seconds]
<havenwood> shevy: Those are both Rack adapters.
oivoodoo has joined #ruby
_honning_ has joined #ruby
jimms has joined #ruby
agrinb has quit [Remote host closed the connection]
<shevy> everything is!
<jhass> greedo: the middlewares are a nice bonus, yes. But I do prefer the API in general over net/http or rest-client
<jhass> or even typhous
soc42 has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
oivoodoo has quit [Remote host closed the connection]
agrinb has joined #ruby
Soda has joined #ruby
rbennacer has quit [Remote host closed the connection]
<greedo> sure
<greedo> good API design makes for happy developers
serivich has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
<jhass> the only issue I have with faraday is that it can't stream responses, like I can't say, "okay make this get request, but only read the headers until I ask for more. Okay now read the first n bytes of the response body" and so on
dEPy has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
Macaveli has joined #ruby
<jhass> that's fundamentally because of supporting multiple client libraries in the backend of course
agrinb has quit [Ping timeout: 256 seconds]
<shevy> hmm. if I have to login to a remote site, through a formular, then parse the resulting page, all in ruby... how to do that?
nfk has joined #ruby
thinkswan has joined #ruby
renanoronfle has joined #ruby
<jhass> shevy: sounds like a job for mechanize
lolmaus has joined #ruby
<greedo> right, jhass, you just make sure to choose the right backend. is there a way to interact directly with the backend if it has streaming support?
hectortrope has joined #ruby
<jhass> sure, just don't use faraday
relix has quit [Read error: Connection reset by peer]
<greedo> ha
relix has joined #ruby
antgel has quit [Ping timeout: 250 seconds]
sinkensabe has joined #ruby
akhkharu has joined #ruby
iml has quit []
jefus_ has joined #ruby
werelivinginthef has quit [Remote host closed the connection]
werelivinginthef has joined #ruby
antgel has joined #ruby
User458764 has quit [Ping timeout: 245 seconds]
aridere_ has joined #ruby
aridere_ has quit [Max SendQ exceeded]
akkad has quit [Excess Flood]
aridere_ has joined #ruby
snath has joined #ruby
aridere_ has quit [Max SendQ exceeded]
aridere has joined #ruby
aridere has quit [Max SendQ exceeded]
maximski has quit []
aridere_ has joined #ruby
aridere_ has quit [Max SendQ exceeded]
gsd has joined #ruby
Akagi201 has quit [Remote host closed the connection]
jefus has quit [Ping timeout: 264 seconds]
Akagi201 has joined #ruby
jeromelanteri has joined #ruby
mistermocha has joined #ruby
akkad has joined #ruby
davedev2_ has joined #ruby
<shevy> oh
speakingcode has joined #ruby
jherbst has joined #ruby
<shevy> html5 no longer supports <frameset>
davedev24_ has quit [Ping timeout: 264 seconds]
mistermo_ has joined #ruby
pandaant has joined #ruby
wpp has quit []
n008f4g_ has quit [Ping timeout: 246 seconds]
<jhass> awesome, isn't it?
chrissonar has quit [Remote host closed the connection]
bim has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
jeromelanteri has quit [Client Quit]
zzing has joined #ruby
xenokiller has quit [Ping timeout: 245 seconds]
mistermocha has quit [Ping timeout: 252 seconds]
ghostpl_ has joined #ruby
jonr22 has joined #ruby
shellfu has joined #ruby
relix_ has joined #ruby
relix has quit [Read error: Connection reset by peer]
<shevy> you could build playable components with it
akhkharu is now known as brainslug
<shevy> use a top-menu bar to control a window in the middle; use left and right frame for extra action-slots
dfinninger has joined #ruby
agrinb has joined #ruby
<shevy> how do they allow component GUI like elements in html5 these days? for instance let's say you wish to build something like adobe photoshop or blender3d in a browser
stoffus has quit [Ping timeout: 244 seconds]
spyderman4g63 has quit [Read error: Connection reset by peer]
jimms has quit [Remote host closed the connection]
withnale_ has joined #ruby
<shevy> aha - HTML 4.01 Strict also disallowed frames, so that was before html5
dfinninger has quit [Read error: Connection reset by peer]
User458764 has joined #ruby
dfinninger has joined #ruby
jonr22 has quit [Ping timeout: 256 seconds]
Hamburgl has joined #ruby
ghostmoth has joined #ruby
jeromelanteri has joined #ruby
aclearma_ has quit [Quit: I'm out!]
fuzzyhorns has joined #ruby
<sweeper> flexbox, or something
Soda has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
arietis has joined #ruby
f03lipe has quit [Ping timeout: 265 seconds]
icebourg has joined #ruby
jeromelanteri has quit [Ping timeout: 246 seconds]
oivoodoo has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
kobain has joined #ruby
tagrudev has quit [Remote host closed the connection]
snockerton has joined #ruby
anaeem1 has joined #ruby
Beliq has joined #ruby
jwinder has quit [Ping timeout: 272 seconds]
Beliq has quit [Remote host closed the connection]
AlphaTech has joined #ruby
jayeshsolanki has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ROOM1 has quit [Excess Flood]
rhllor has joined #ruby
gfawcettpq has quit [Ping timeout: 264 seconds]
jcromartie has joined #ruby
jayeshsolanki has quit [Ping timeout: 256 seconds]
fuzzyhorns has left #ruby [#ruby]
mjuszczak has quit []
sleeper has left #ruby ["WeeChat 1.1.1"]
Zai00 has joined #ruby
josephleon has joined #ruby
maximski has joined #ruby
charliesome has quit [Quit: zzz]
mistermo_ has quit [Ping timeout: 252 seconds]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
mjuszczak has joined #ruby
snath has quit [Read error: Connection reset by peer]
snath has joined #ruby
juanpaucar is now known as juanca_
triple_b has joined #ruby
riotjones has quit [Remote host closed the connection]
serivich has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
gfawcettpq has joined #ruby
maximski has quit []
paradoja has joined #ruby
nettoweb has joined #ruby
Hamburgl has quit [Quit: Textual IRC Client: www.textualapp.com]
startupality has joined #ruby
adriancb has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
GaryOak_ has joined #ruby
Macaveli has joined #ruby
bal has quit [Quit: bal]
jenrzzz has joined #ruby
<ericwood> you use a real framework and lots of partials
<ericwood> nav goes in a partial, for example
rbennacer has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
ayaz_ has quit [Quit: leaving]
rbennacer has joined #ruby
nhhagen has quit [Ping timeout: 264 seconds]
akkad has quit [Excess Flood]
slackbotgz has quit [Remote host closed the connection]
juanca_ has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
juanca_ has joined #ruby
Nick_ZWG has joined #ruby
lanemeyer has quit []
* hanmac1 hate for frameworks currently did increase at 300%
Nick_ZWG has left #ruby [#ruby]
ghostmoth has joined #ruby
rbennacer has quit [Ping timeout: 246 seconds]
akkad has joined #ruby
__main__ has quit [Ping timeout: 250 seconds]
hs366 has quit [Quit: Leaving]
hobodave has quit [Ping timeout: 246 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
razieliyo has joined #ruby
juanca_ has quit [Ping timeout: 265 seconds]
kyrylo has quit [Remote host closed the connection]
slackbotgz has joined #ruby
spyderman4g63 has joined #ruby
joe_meade has quit [Remote host closed the connection]
bricker has joined #ruby
adriancb has quit [Read error: Connection reset by peer]
kyrylo has joined #ruby
serivich has quit [Ping timeout: 244 seconds]
spyderma_ has joined #ruby
<arietis> is there any tool to test websockets message delivery?
dj_zubehoer has joined #ruby
adriancb has joined #ruby
<arietis> except chrome js console
ta has joined #ruby
Dopagod has joined #ruby
dj_zubehoer has quit [Client Quit]
rkgudboy has joined #ruby
Morkel has quit [Quit: Morkel]
slackbotgz has quit [Remote host closed the connection]
rkgudboy has quit [Max SendQ exceeded]
slackbotgz has joined #ruby
Mives has joined #ruby
ponga has quit [Quit: Leaving...]
jefus_ is now known as jefus
spyderman4g63 has quit [Ping timeout: 272 seconds]
adriancb has quit [Read error: Connection reset by peer]
xMopxShell has quit [Ping timeout: 250 seconds]
ta has quit [Remote host closed the connection]
rkgudboy has joined #ruby
SouL has joined #ruby
adriancb has joined #ruby
<nickjj> does anyone know if .scan(/foo/i/) is the same as what .include? runs under the hood for the check in terms of comparison logic?
akkad has quit [Excess Flood]
Akagi201_ has joined #ruby
chthon has joined #ruby
<jhass> nickjj: it's not
mjuszczak has quit []
<GaryOak_> what's a good way to test long running time dependent ruby code? I'm writing a scheduling system using ice_cube
fantazo has quit [Quit: Verlassend]
kobain has quit [Ping timeout: 255 seconds]
livathin_ has quit []
Macaveli has quit [Ping timeout: 264 seconds]
Akagi201 has quit [Ping timeout: 255 seconds]
<jhass> run it for a long time?
<nickjj> jhass, but the result returned should be the same?
<jhass> nickjj: no
<nickjj> for example, .include? will find "foo" in "foobar" but so should scan without using \b
<jhass> and .match and String#[]
akkad has joined #ruby
<jhass> include? is not case insensitive though
<Mon_Ouie> >> "FOObar".include? "foo"
<eval-in_> Mon_Ouie => false (https://eval.in/304599)
<Mon_Ouie> >> "FOObar".scan(/foo/i)
<eval-in_> Mon_Ouie => ["FOO"] (https://eval.in/304601)
duracrisis has joined #ruby
<nickjj> ah right
<jhass> why are you asking?
mistermocha has joined #ruby
hpoydar has quit [Remote host closed the connection]
<nickjj> i'm using .include? in 1 spot where i know everything is downcased , and scan(/foo/i) in another place when i'm unsure of the case
plashchynski has quit [Quit: plashchynski]
<nickjj> i just wanted to be 100% certain that both will return the same results
karmatr0n has joined #ruby
<jhass> >> "fOobar"[/foo/i]
<eval-in_> jhass => "fOo" (https://eval.in/304607)
<jhass> >> "fobar"[/foo/i]
<eval-in_> jhass => nil (https://eval.in/304608)
<Mon_Ouie> Do you also realize scan will always return something truthy?
<jhass> ^ use that, doesn't run through the entire thing in the average case
<jhass> scan always does
<banister> hmon 'alut
<banister> Mon_Ouie
<Mon_Ouie> 'alut
<banister> Mon_Ouie how's college? almost finished?
<nickjj> hmm
pengin has joined #ruby
karmatr0_ has joined #ruby
<Mon_Ouie> banister: This is my 3rd year out of 5
karmatr0n has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
<nickjj> i didn't know you could put a regex in [] on a string
milesmatthias has joined #ruby
<banister> Mon_Ouie wow, 5 year degree? crazy. In my country degrees are only 3 years -- or are you doing a double degree / masters?
<jhass> you can also use =~ or .match if you like that more
<nickjj> i'm not sure if that would work in my case tho because i'm running .size on it to get the occurrence count
paulcsmith has quit [Quit: Be back later ...]
<jhass> well, then it doesn't make any sense at all to compare it to include?
<nickjj> jhass, in the .include? case i'm using .select on an array to build up a new array of found matches, then using .size
<Mon_Ouie> banister: You get a bachelor's degree after 3 years, and then a master's after two more years -- but it doesn't really make sense not to get both if you're going to get one
<jhass> nickjj: what? include doesn't take a starting position
michaeldeol has joined #ruby
<banister> Mon_Ouie what do you want to do after that? just become a rails web monkey? :P
<nickjj> so it's counting the # of found matches (with include) vs counting the # of found matches (with scan)
anarang has quit [Quit: Leaving]
<Mon_Ouie> I still have no idea, honestly
<banister> Mon_Ouie you should go for remote work, europe pays programmers in peanuts, and the USD is very high against the euro right now so you can do pretty well out remote work ;)
oivoodoo has quit []
paulcsmith has joined #ruby
<nickjj> jhass, i'm not talking about positions. i meant like this count = some_list_of_hashes.select { |key| key[:foo]include?(foo) }.size
rohit has joined #ruby
<jhass> nickjj: again not seeing how this is comparable to scan
<jhass> nickjj: that one is Enumerable#count btw
rkgudboy has quit [Ping timeout: 255 seconds]
rohit has quit [Max SendQ exceeded]
uptownhr has joined #ruby
<nickjj> some_input.scan(/#{foo}/i).size
Macaveli has quit [Ping timeout: 256 seconds]
rohit has joined #ruby
<jhass> yes, you compare an operation on a single object to an operation on a collection of objects
<jhass> that's quite different
<nickjj> in this case the contents of some_list_of_hashes was built up based on the same some_input string
xMopxShell has joined #ruby
pengin has quit [Remote host closed the connection]
rbennacer has joined #ruby
<jhass> that doesn't matter for my argument
<elfuego> is there a way to check values for the params hash in a rack test?
Dopagod has quit [Ping timeout: 248 seconds]
<nickjj> jhass, why not? both end up looking at the same string and count found matches , one uses .include? on a string that's guaranteed to be lowercase and the other uses .scan on a questionable case string , and i'm looking for a guarantee that both produce the same matches
lemur has joined #ruby
<jhass> elfuego: did you check the docs?
<nickjj> i have around 25 assertions to test
<nickjj> but i thought maybe someone would know offhand how both are implemented
Lewix has joined #ruby
Lewix has joined #ruby
<elfuego> jhass: yup didn’t see anything
arietis has quit [Quit: Leaving.]
<ProteusX> http://pastebin.com/ZQF2ELab why is there a duplicate module mix-in only if the original class includes the module AFTER the singleton object?
<helpa> Hi ProteusX. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
<jhass> nickjj: the constructs you compose from them may have a comparable result. but already from the fact that you nest one in an iterating call should highlight that they're quite different
<jhass> I mean heck, one calls into a whole regular expression engine and returns matches while another one returns a simple predicate
<jhass> how is that comparable
hanmac1 has quit [Quit: Leaving.]
Megtastique has quit []
<jhass> elfuego: so what's a rack test? You're using the rack-test gem?
Cust0sL1men has quit [Ping timeout: 250 seconds]
<ProteusX> https://gist.github.com/anonymous/3f511a93f4f1d5e79a7f why is there a duplicate module mix-in only if the original class includes the module AFTER the singleton object?
pengin has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<jhass> elfuego: and what params hash? I can't recall that to be part of the Rack interface
JDiPierro has joined #ruby
bitcycle1 has joined #ruby
haxrbyte has joined #ruby
bitcycle has quit [Ping timeout: 245 seconds]
Crisix has joined #ruby
<jhass> ProteusX: I think it's because the singleton class is a subclass of the objects class
<jhass> so the include into the singleton class detects its already in the parent class
jottr_ has joined #ruby
haxrbyte_ has joined #ruby
Mives has quit [Quit: WeeChat 1.1.1]
<jhass> while the include into the parent class can't detect it's already included into a child class
<jhass> anyway, it's academical, use extend to include a module into an objects singleton class
chrishough has joined #ruby
iamninja has quit [Read error: Connection reset by peer]
<jhass> in other words there's probably a saner way to achieve what you want in your real code
MatthewsFace has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
<ProteusX> jhass: I was only trying to grok this. I don't see why I would do this in real-world code
<jhass> exactly :P
haxrbyte has quit [Ping timeout: 250 seconds]
iamninja has joined #ruby
MatthewsFace has joined #ruby
karmatr0_ has quit []
<jhass> I guess you just managed to hit a corner case that's not properly checked for or something
<ProteusX> jhass: it's from page 398 of The Well Grounded Rubyist 2nd edition, the code is similar, not exactly the same :)
lemur has quit [Remote host closed the connection]
riotjones has joined #ruby
haxrbyte_ has quit [Read error: Connection reset by peer]
jottr_ has quit [Ping timeout: 272 seconds]
<ProteusX> The author doesn't really explain why this occurs, he just encourages you to play around with it
Megtastique has joined #ruby
<jhass> >> class Foo; end; Foo.new.singleton_class.superclass
<eval-in_> jhass => Foo (https://eval.in/304624)
<jhass> ^ as said that's my guess
sinkensabe has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
sargas has joined #ruby
The_Phoenix has quit [Read error: Connection reset by peer]
ki0 has quit [Ping timeout: 250 seconds]
dropp has quit [Quit: ende]
tcrypt has joined #ruby
DaniG2k has quit [Quit: Lost terminal]
msgodf has quit [Ping timeout: 248 seconds]
riotjones has quit [Ping timeout: 264 seconds]
paulcsmith has quit [Quit: Be back later ...]
dfinninger has quit [Remote host closed the connection]
cjim__ has joined #ruby
mesamoo has quit [Quit: Konversation terminated!]
pasv_ has joined #ruby
paulcsmith has joined #ruby
Vivex has quit [Ping timeout: 252 seconds]
aewffwea has quit [Ping timeout: 255 seconds]
pasv__ has quit [Ping timeout: 252 seconds]
allenn has quit [Remote host closed the connection]
christiandsg has joined #ruby
arietis has joined #ruby
<jhass> ProteusX: we can actually reconstruct this without singleton classes
<jhass> >> module M; end; class A; ;end; class B < A; include M; end; class A; include M; end; B.ancestors
anaeem1 has quit [Remote host closed the connection]
<eval-in_> jhass => [B, M, A, M, Object, Kernel, BasicObject] (https://eval.in/304653)
anaeem1 has joined #ruby
_64k_ has quit [Ping timeout: 246 seconds]
<jhass> vs
Flcn has joined #ruby
<jhass> >> module M; end; class A; include M; ;end; class B < A; include M; end; B.ancestors
<eval-in_> jhass => [B, A, M, Object, Kernel, BasicObject] (https://eval.in/304654)
_honning_ has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 245 seconds]
rohit has quit [Ping timeout: 255 seconds]
ramfjord has joined #ruby
rkgudboy has joined #ruby
juanca_ has joined #ruby
otisZart has joined #ruby
<ProteusX> jhass: nice, thanks :)
iceden has quit [Ping timeout: 256 seconds]
hpoydar has joined #ruby
anaeem1 has quit [Ping timeout: 255 seconds]
rkgudboy has quit [Max SendQ exceeded]
RegulationD has quit [Remote host closed the connection]
thiagovsk has joined #ruby
<ProteusX> nothing unique to singletons then
<jhass> yup
jonr22 has joined #ruby
<hectortrope> jhass: hi
<hectortrope> ProteusX:
<jhass> say singleton classes btw, differentiates better from the singleton pattern ;)
rkgudboy has joined #ruby
sinkensabe has joined #ruby
docsagast has joined #ruby
docsagast has quit [Client Quit]
djbkd has joined #ruby
otisZart has quit [Read error: Connection reset by peer]
<ProteusX> singleton classes :)
carlyle has quit [Remote host closed the connection]
michaeldeol is now known as deol
jonr22 has quit [Ping timeout: 245 seconds]
Rephiax has quit [Ping timeout: 264 seconds]
joonty has quit [Quit: joonty]
cpruitt has quit [Read error: Connection reset by peer]
a346 has quit [Quit: a346]
startupality has quit [Quit: startupality]
mjuszczak has joined #ruby
cpruitt has joined #ruby
alex88 has quit []
christiandsg has quit [Remote host closed the connection]
ght has joined #ruby
a346 has joined #ruby
dEPy has quit [Quit: (null)]
<ght> I'm attempting to use access a resoure on an API via oauth2. I can successfully get and store a bearer token, but every time I pass the bearer token I get a 401 unauthorized. Does anyone have an example, or know of an example, of the syntax of any restclient statement that accesss a resource when utilizing oauth2, passing a bearer token?
<ght> doesn't matter where or what, so long as it's valid syntax
tvw has quit []
agrinb has quit [Remote host closed the connection]
agrinb has joined #ruby
haxrbyte has joined #ruby
rohit has joined #ruby
overcrush has quit [Remote host closed the connection]
freerobby has left #ruby [#ruby]
anaeem1 has joined #ruby
jimms has joined #ruby
zachrab has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
rkgudboy has quit [Ping timeout: 252 seconds]
iceden has joined #ruby
ghostpl_ has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 252 seconds]
dh64 has joined #ruby
krisquig_ has joined #ruby
dh64 has quit [Client Quit]
rippa has joined #ruby
einarj has quit [Remote host closed the connection]
SouL has quit [Ping timeout: 264 seconds]
krisquigley has quit [Ping timeout: 250 seconds]
pontiki has quit [Ping timeout: 245 seconds]
hectortrope has quit [Quit: Page closed]
krisquig_ has quit [Ping timeout: 250 seconds]
bradleyprice has quit [Remote host closed the connection]
jottr_ has joined #ruby
snockerton has quit [Quit: Leaving.]
rohit has quit [Ping timeout: 255 seconds]
wallerdev has joined #ruby
rkgudboy has joined #ruby
snockerton has joined #ruby
_russellb has joined #ruby
withnale_ has quit [Ping timeout: 256 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
overcrush has joined #ruby
andpt has quit [Remote host closed the connection]
rohit has joined #ruby
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
haxrbyte has quit [Remote host closed the connection]
mistergibson has quit [Ping timeout: 265 seconds]
xcombelle has joined #ruby
rkgudboy has quit [Ping timeout: 272 seconds]
User458764 has joined #ruby
overcrush has quit [Ping timeout: 246 seconds]
zachrab has quit [Remote host closed the connection]
dumdedum has quit [Ping timeout: 250 seconds]
ghostpl_ has joined #ruby
noname has quit [Ping timeout: 272 seconds]
zachrab has joined #ruby
mistergibson has joined #ruby
riotjone has joined #ruby
Mia has quit [Read error: Connection reset by peer]
agarie has quit [Remote host closed the connection]
nhhagen has joined #ruby
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
rdark has quit [Quit: leaving]
zachrab has quit [Ping timeout: 272 seconds]
mjuszczak has quit []
Pharaoh2_ has joined #ruby
rohit has quit [Ping timeout: 272 seconds]
Pharaoh2 has quit [Ping timeout: 246 seconds]
chthon has quit [Ping timeout: 244 seconds]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
werelivinginthef has quit [Remote host closed the connection]
Flcn has quit [Quit: Be back later ...]
platzhirsch has left #ruby [#ruby]
n008f4g_ has joined #ruby
aswen has quit [Ping timeout: 248 seconds]
x1337807x has joined #ruby
Crisix has quit [Ping timeout: 252 seconds]
djbkd has quit [Remote host closed the connection]
caveat- has quit [Ping timeout: 248 seconds]
Vivex has joined #ruby
iml has joined #ruby
dbm has joined #ruby
ki0 has joined #ruby
User458764 has joined #ruby
caveat- has joined #ruby
haxrbyte has joined #ruby
<arietis> loop {timers.wait} is blocking my app
<arietis> is there a way to repeat the code without blocking the app?
djbkd has joined #ruby
<jhass> arietis: 2.times { timers.wait }
dfinninger has joined #ruby
<jhass> (more context => more useful answer)
anaeem1 has quit [Remote host closed the connection]
mesamoo has joined #ruby
wmunny has joined #ruby
anaeem1_ has joined #ruby
ki0 has quit [Ping timeout: 248 seconds]
<arietis> jhass: i want it to repeat every 5 seconds so i'm using - timers.every(5)
<arietis> and this loop thing is blocking the code
<jhass> what's timers?
<arietis> Timers::Group.new
Pharaoh2_ is now known as Pharaoh2
<jhass> >> Timers::Group.new
<eval-in_> jhass => uninitialized constant Timers (NameError) ... (https://eval.in/304685)
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kt2 has joined #ruby
agarie has joined #ruby
ChoiKyuSang has quit [Quit: AdiIRC is updating to v1.9.6 Beta Build (2015/03/24)32 Bit]
<havenwood> arietis: Haved you checked out Celluloid?
anaeem1_ has quit [Remote host closed the connection]
<jhass> arietis: well, if you don't want to block for them, just don't do the loop thing?
towski_ has joined #ruby
kt2 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
<havenwood> arietis: You want to have it running in the background?
<arietis> havenwood: no, i thought it's overkill to use it
ChoiKyuSang has joined #ruby
<arietis> yes
<arietis> i'm doing long polling
x1337807x has quit [Quit: Textual IRC Client: www.textualapp.com]
snockerton has quit [Quit: Leaving.]
triple_b has quit [Read error: Connection reset by peer]
vudew has joined #ruby
triple_b has joined #ruby
x1337807x has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
zachrab has joined #ruby
anaeem1 has quit [Ping timeout: 256 seconds]
dbm has left #ruby ["Textual IRC Client: www.textualapp.com"]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arietis> can't i just do in asynchronously in separate thread by default?
<arietis> it*
haxrbyte has quit [Remote host closed the connection]
<havenwood> arietis: by default?
Parker0 has quit [Quit: Textual IRC Client: www.textualapp.com]
gkra has quit [Ping timeout: 250 seconds]
djbkd has quit [Quit: My people need me...]
gkra has joined #ruby
ineb has quit [Ping timeout: 256 seconds]
shadoi1 has joined #ruby
<arietis> yeah, using some syntax
<havenwood> arietis: If you're not familiar with Thread class read the docs ^ carefully.
anaeem1_ has joined #ruby
Parker0 has joined #ruby
shock_one has quit [Remote host closed the connection]
<ericwood> read the Fiber docs even closer
RegulationD has joined #ruby
ineb has joined #ruby
a346 has quit [Quit: a346]
iml has quit [Remote host closed the connection]
agarie has quit [Remote host closed the connection]
<arietis> i wonder if EventMachine has it's own mechanism
lavros has quit [Quit: отправился в страну снов.]
RegulationD has quit [Remote host closed the connection]
<arietis> lol
<arietis> it has
RegulationD has joined #ruby
<arietis> so i don't need timers gem at all it seems
sinkensabe has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
momomomomo has joined #ruby
jschoolcraft has quit [Quit: peace]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jwingfi has joined #ruby
johnkary has quit [Quit: Computer has gone to sleep.]
baweaver has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
mjuszczak has joined #ruby
baroquebobcat has joined #ruby
<gr33n7007h> >> Process.uid
<eval-in_> gr33n7007h => 1000 (https://eval.in/304692)
agarie has joined #ruby
Hounddog has quit [Read error: Connection reset by peer]
<gr33n7007h> >> Etc.getlogin
<eval-in_> gr33n7007h => uninitialized constant Etc (NameError) ... (https://eval.in/304694)
juanca_ has quit [Remote host closed the connection]
wmunny has left #ruby ["Leaving"]
juanca_ has joined #ruby
<gr33n7007h> >> require 'etc'; Etc.getlogin
<eval-in_> gr33n7007h => nil (https://eval.in/304695)
ItSAN____ has quit [Quit: Leaving...]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<arietis> havenwood: figured it out, EM allows to add periodic timer instead, everything works as expected now :)
bitcycle1 has quit [Quit: Leaving.]
kobain has joined #ruby
arup_r has joined #ruby
User458764 has joined #ruby
juanca_ has quit [Ping timeout: 248 seconds]
maximski has joined #ruby
jottr_ has quit [Ping timeout: 264 seconds]
carlyle has joined #ruby
mistermocha has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
mistermocha has joined #ruby
baweaver has quit [Remote host closed the connection]
Starfoxxes has joined #ruby
Flcn has joined #ruby
josephleon has quit [Ping timeout: 246 seconds]
maximski has quit []
snockerton has joined #ruby
overcrush has joined #ruby
werelivinginthef has joined #ruby
pdoherty has joined #ruby
sfvyis has quit [Remote host closed the connection]
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
jobewan has joined #ruby
krisquigley has joined #ruby
<ght> I'm attempting to use access a resoure on an API via oauth2. I can successfully get and store a bearer token, but every time I pass the bearer token I get a 401 unauthorized. Does anyone have an example, or know of an example, of the syntax of any restclient statement that accesss a resource when utilizing oauth2, passing a bearer token?
<ght> Sorry if repetitive, just seeing if anyone who recently joined my know.
<ght> might*
<ght> doesn't matter where or what, so long as it's valid syntax
mjuszczak has quit []
kubunto has joined #ruby
Flcn has quit [Quit: Be back later ...]
bitcycle has joined #ruby
User458764 has joined #ruby
ta has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
Tuxero has joined #ruby
davejlong has joined #ruby
riotjones has joined #ruby
jimms has quit [Remote host closed the connection]
checkit has joined #ruby
ArchRogem has quit [Quit: Textual IRC Client: www.textualapp.com]
mjuszczak has joined #ruby
_64k has joined #ruby
KramerC has quit [Ping timeout: 244 seconds]
mjuszczak has quit [Client Quit]
KramerC has joined #ruby
livcd has quit [Ping timeout: 256 seconds]
riotjones has quit [Ping timeout: 246 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
juanca_ has joined #ruby
juanca_ has quit [Read error: Connection reset by peer]
juanca_ has joined #ruby
chrishough has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Flcn has joined #ruby
josephleon has joined #ruby
Vivex has quit [Read error: Connection reset by peer]
gorroth has joined #ruby
<gorroth> hi
<gr33n7007h> herro
<Tuxero> hi
<Tuxero> o/
<GaryOak_> hey
johnkary has joined #ruby
_blizzy_ has joined #ruby
leafybas_ has joined #ruby
leafybas_ has quit [Remote host closed the connection]
oddmunds has quit [Ping timeout: 264 seconds]
<havenwood> \o
<GaryOak_> just saw this in some docs
chrisja has joined #ruby
oddmunds has joined #ruby
SouL has joined #ruby
n80 has quit [Quit: n80]
_64k has quit [Ping timeout: 264 seconds]
leafybasil has quit [Ping timeout: 264 seconds]
ztomz has joined #ruby
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
Vivex has joined #ruby
mdarby has joined #ruby
mdarby has quit [Remote host closed the connection]
<Senjai> Dear ruby. I need to build an array, or a set, of 250_000 ~ 1_000_000 unique strings. Don't ask me why its saddening. Can someone suggest any algorithms that would be best suited for this?
jonr22 has joined #ruby
a346 has joined #ruby
<ytti> what do yo need to do to them, once the set is stores
<ytti> do you need to check if item exists in set
<Senjai> Yes
<ytti> or do you also need to recall it
<Senjai> It has to be unique
<Senjai> the only requirement, is a unique set of strings
<ytti> i very recently ran into bloom filters
<ytti> which seem like super space efficient and fast way to store lot of data
<ytti> to test if item exists in set
momomomomo has quit [Ping timeout: 250 seconds]
<ytti> depending how you build the bloom filter, you may get 100% to 0.001% false positives
momomomomo has joined #ruby
<ytti> but never false negatives
<Senjai> hmm interesting
<Senjai> will check it out
<Senjai> brb lunch
zachrab has quit [Ping timeout: 264 seconds]
riotjone has quit [Remote host closed the connection]
<ytti> you esseentially build array of bits
<ytti> fill it with 0
<ytti> then you take item, calculate n different hashes to it
<ytti> then array[hashN_reseult] = 1
werelivinginthef has quit [Remote host closed the connection]
<havenwood> >> [*'a'..'z'].combination(7).map(&:join).size
<eval-in_> havenwood => [FATAL] failed to allocate memory (https://eval.in/304710)
<havenwood> #=> 657800
<ytti> to later check, if given item is in set, you again calcualte hashesh, and if all array[hashN_result] == 1, then item is in set
jimms has joined #ruby
<ytti> but if you cannot have, even low amount of false positives, then it's not correct solution
<ytti> but solution whree you need to be really fast for common use case, and you can pay some premium (diskIO?) for edge cases
<ytti> it may be attractive solution
jwingfi has quit [Remote host closed the connection]
jonr22 has quit [Ping timeout: 265 seconds]
canton7 has quit [Ping timeout: 265 seconds]
rbennace_ has joined #ruby
mdarby_ has joined #ruby
ki0 has joined #ruby
canton7 has joined #ruby
canton7 has joined #ruby
canton7 has quit [Changing host]
kiri has joined #ruby
bradleyprice has joined #ruby
rbennacer has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
centrx has joined #ruby
<jhass> Senjai: unique in itself or compared to something else? if only in itself I'd just start with a random value and call String#succ that many times and collect the results
rbennace_ has quit [Ping timeout: 265 seconds]
anaeem1_ has quit [Ping timeout: 265 seconds]
pontiki has joined #ruby
<jhass> N.times.each_with_object([SecureRandom.hex(12)]) {|i, memo| memo << memo.last.succ } something like that
crdpink has joined #ruby
kiri has quit [Quit: Leaving]
maximski has joined #ruby
__main__ has joined #ruby
pontiki has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
n80 has joined #ruby
decoponio has quit [Quit: Leaving...]
swgillespie has joined #ruby
oddmunds has quit [Remote host closed the connection]
cjim__ has quit [Quit: (null)]
jottr_ has joined #ruby
johnkary has left #ruby [#ruby]
Lewix has quit [Remote host closed the connection]
kreeves has joined #ruby
jenrzzz has joined #ruby
pwattste has joined #ruby
<GaryOak_> I keep making stateless modules instead of classes is this normal?
jottr_ has quit [Ping timeout: 250 seconds]
ki0 has quit [Ping timeout: 248 seconds]
<GaryOak_> They're mostly interacting with a database, so they don't hold any state in the class
<jhass> if you don't have state to share, don't make a class. Sounds sane
claw has quit [Ping timeout: 255 seconds]
willharrison has joined #ruby
<GaryOak_> ok, the modules don't interact with anything, they are kind of like rails models
two-gun has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<jhass> well, rails models are very stateful objects
claw has joined #ruby
<pwattste> Is anyone familiar with how to print readable values out of the Pageable Response hash the AWS SDK returns to queries?
sargas has joined #ruby
<GaryOak_> hah, not a good analogy then
<two-gun> hi guys i'm on osx 10.8
<jhass> my condolences
<two-gun> lol pressed return too fast
<two-gun> am i gonna run into trouble running gem alongside homebrew?
<jhass> no
<jhass> sudo gem maybe, I wouldn't no
<jhass> but gem as your regular user should be just fine
coinjunkie has joined #ruby
bitcycle has left #ruby [#ruby]
<jhass> er, * I wouldn't know
<two-gun> ok i'll avoid sudo gem. thanks.
snockerton has quit [Quit: Leaving.]
dx7 has joined #ruby
<two-gun> jhass: btw i'm quite fond of 10.8 what are you using?
<jhass> gnome on archlinux ;P
jottr_ has joined #ruby
<jhass> I was just kidding though ;)
<jhass> everybody their own religion
<havenwood> two-gun: Why not 10.10?
agarie has quit [Remote host closed the connection]
snockerton has joined #ruby
<shellfu> pffft. he's so drunk he's probably seein double
<shellfu> :)
paulcsmith has quit [Quit: Lingo: www.lingoirc.com]
ki0 has joined #ruby
ghr has joined #ruby
A205B064 has joined #ruby
iml has joined #ruby
<havenwood> two-gun: There's no issues with using Homebrew and gems. Homebrew does have a nice precompiled Ruby binary, which of course itself ships with RubyGems.
baweaver has joined #ruby
Starfoxxes has quit [Ping timeout: 252 seconds]
dseitz has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
kubunto has quit [Read error: Connection reset by peer]
<two-gun> jhass: sorry got pulled afk. arch sounds well cool will look into all that one day meanwhile i'll just keep browsing /r/unixporn
lucianosousa has joined #ruby
<two-gun> havenwood: i got into the idea of free software and just stopped updating my software for no good reason. i'll have to upgrade one day but for now i'm sticking in the mood (and looking silly)
<jhass> today gnome 3.16 was released, arch already has it in the testing repos <3
<gr33n7007h> arch linux undoubtably the best distro that is all :)
r3dk1ng has quit [Remote host closed the connection]
<jhass> so if you're lazy about updating arch is not your philosophy :P
<two-gun> havenwood: that sounds interesting if i install rubygems i guess i have access to some of those gem programs right?
duncannz has joined #ruby
<jhass> two-gun: you already have rubygems
<jhass> it's where `gem` comes from
duncannz has quit [Max SendQ exceeded]
<gr33n7007h> my heart say debian but my head says arch
duncannz has joined #ruby
<jhass> what's your heart like about debian?
duncannz has quit [Max SendQ exceeded]
reset has joined #ruby
Sirupsen has joined #ruby
<gr33n7007h> no much these days
duncannz has joined #ruby
reset has quit [Client Quit]
duncannz has quit [Max SendQ exceeded]
nhhagen has quit []
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
<gr33n7007h> packages in debian are way oldddddddddddddddd.............
<jhass> and broken
iliketurtles has joined #ruby
<jhass> ever counted the patches they apply to openssl?
<gr33n7007h> yep, and broken
<Sou|cutter> is there a way to make a default block argument &:itself ?
<jhass> no
<Sou|cutter> darn
zzing has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sevvie_ has quit [Ping timeout: 265 seconds]
<jhass> mmh, actually
teddyp1cker has joined #ruby
<jhass> >> def foo(&block=:itself.to_proc); block.call.class; end; [foo, foo { 1 }]
<eval-in_> jhass => /tmp/execpad-bcc4a065fd02/source-bcc4a065fd02:2: syntax error, unexpected '=', expecting ')' ... (https://eval.in/304714)
ramfjord has quit [Ping timeout: 252 seconds]
<jhass> okay, definitive nope
pietr0 has joined #ruby
<jhass> gotta do block ||= in the method body
WildBamboo-Josh has joined #ruby
<Sou|cutter> that's not too bad I suppose
ismaelga has quit [Remote host closed the connection]
<two-gun> jhass: man! i had no idea i already had Rubygem and so can use the gem command. perfect solution to my original query. glad i checked in with you guys first. thanks
aswen has joined #ruby
momomomomo has quit [Quit: momomomomo]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arietis has quit [Quit: Leaving.]
jtzero has left #ruby [#ruby]
ramfjord has joined #ruby
kreeves has quit []
bayed has quit [Quit: Connection closed for inactivity]
nym has joined #ruby
mjuszczak has joined #ruby
iml has quit [Remote host closed the connection]
zachrab has joined #ruby
kadoppe has quit [Ping timeout: 256 seconds]
kirun has joined #ruby
agarie has joined #ruby
davejlong has quit []
kadoppe has joined #ruby
JohnBat26 has joined #ruby
<jhass> aw, it loads now
<jhass> had a nice 500
vbmendes has joined #ruby
teddyp1cker has left #ruby [#ruby]
JohnBat26 has quit [Client Quit]
snockerton has left #ruby [#ruby]
patrick99e99 has joined #ruby
mjuszczak has quit []
milesmatthias has quit [Remote host closed the connection]
arietis has joined #ruby
<Senjai> jhass: succ would be easy, but I guess the second requirement is that it seems to be random. Like one off codes, you wouldn't want people to be able to guess them.
<jhass> ah
<Senjai> You could use a string sufficiently long enough that the probability of a duplicate is negligible, but I think thats a really hacky way of approaching it
<jhass> any size restrictions?
vbmendes has quit [Ping timeout: 246 seconds]
<jhass> minimum/maximum length?
govg has joined #ruby
<Senjai> Right now we have a non-random prefix. code_, and then six or more characters
govg is now known as Guest7419
decoponio has joined #ruby
sambao21 has joined #ruby
arup_r has quit [Quit: ChatZilla 0.9.91.1 [Firefox 36.0/2015022000]]
<gr33n7007h> >> File.open('/dev/urandom', IO::RDONLY) {|f| f.readpartial(1_000_000) }.scan(/........./).flat_map{|n| n.unpack('H*') }.map(&:succ)
<eam> gr33n7007h: that's gonna blow up randomly because of encoding issues
<gr33n7007h> eam: lol
yfeldblum has joined #ruby
momomomomo has joined #ruby
frem has joined #ruby
<Senjai> Yeah
<Senjai> Worth poking though
<Senjai> any other suggestions?
<jhass> Senjai: so what about my question?
two-gun has quit [Ping timeout: 248 seconds]
cpt_yossarian has joined #ruby
milesmatthias has joined #ruby
<Senjai> jhass: I thought I answered it
werelivinginthef has joined #ruby
<Senjai> Right now we have a non-random prefix. code_, and then six or more characters
<Senjai> jhass: ^
<jhass> I'm talking in like number of characters
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
<baweaver> you could use /usr/share/dict/words
a5i has quit [Quit: Connection closed for inactivity]
<jhass> or literally "prefix.code_abcdef"?
<baweaver> then manipulate that as desired
<Senjai> at a minimuim, code_123456 would be required. Sufficiently long enough to guarentee uniqueness for a given dataset
<baweaver> just numbers?
<jhass> oh, now I get you
<Senjai> baweaver: 'a'..'z' or numbers
<jhass> well, that's what you have, I wonder though what's acceptable??
<baweaver> because you could probably just SHA that dictionary
<Senjai> but at this point, i don't care
<pwattste> Given : puts response.tags.map(&:key), how would I return more values than just :key?
<Senjai> The problem is ensuring each entry is unique
<Senjai> for 250,000 entries
<baweaver> >> `ls /usr/share/dict/ | grep words`
<eval-in_> baweaver => (https://eval.in/304722)
<Senjai> Just in memory, there is a database side to things, but that's not where the issue is atm
ged has quit [Quit: WeeChat 0.4.3]
<jhass> a guarantee would be given by the uuid gem, though those are quite long
<Senjai> baweaver: Cant execute shell commands in the bot
<jhass> which is why I'm asking for specific restrictions
<baweaver> yeah, figured
yqt has joined #ruby
x1337807x has joined #ruby
christiandsg has joined #ruby
<Senjai> jhass: Eh, they're flexible. For example, three characters would not provide sufficient entropy for 999 codes, given that they could only be numbers.
<Senjai> So the answer would be "long enough"
<baweaver> File.open('/usr/share/dict/words', 'r').map { |word| Digest::SHA256.new.digest word.chomp }
Limix has joined #ruby
<baweaver> ?
werelivinginthef has quit [Ping timeout: 265 seconds]
<baweaver> considering that's the M Webster dictionary, should be sufficient
<baweaver> 235,886
<baweaver> almost
<baweaver> drat
deol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Senjai> baweaver: Right, but we need something extensible. Like up to millions if necessary
<Senjai> Which is why I'm looking into algorithms
<Senjai> which is admittedly, a weak point for me
phutchins has quit [Ping timeout: 265 seconds]
deol has joined #ruby
<baweaver> just map the numbers from 1 to 1 million with a SHA hash
<baweaver> for randomness, add 5+ letters to the end before digest
<jhass> that's easy to predict
<Senjai> ^
<jhass> well, I was typing before the randomeness point
<Senjai> That's the same as succ with a random suffix
User458764 has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<jhass> or current (monotonic) clock + random suffix
christiandsg has quit [Ping timeout: 252 seconds]
<c-c> what are you doing?
<Senjai> baweaver: That doesn't guarentee the uniqueness of it. I guess I'm asking the wrong question
<baweaver> .uniq on the end of it
<Senjai> baweaver: Call uniq on an array of 250,000 entries, and see how long it takes
<Senjai> I think I'm asking the wrong question
<c-c> you want unique token?
<jhass> use a Set?
<Senjai> Given any string, generated using any method, random or not, how can I check, in a performant matter, if that string is already included or not in the set/array
krisquigley has joined #ruby
<Senjai> include? isn't that performant
<baweaver> Benchmark.measure { a.uniq }.real #=> 0.008362
<baweaver> a = Array.new(250_000) { rand(10) }
<jhass> you won't get better than some monotonically increasing prefix (time, hash of an incrementing number etc.) and a randomized suffix. And actually that combination should be reasonably hard to predict
jenrzzz has quit [Ping timeout: 272 seconds]
sevvie has joined #ruby
kubunto has joined #ruby
<waxjar> Senjai: sounds like need a Set
<baweaver> Benchmark.measure { a.uniq }.real # => 0.273363 when a is an array of 250_000 with values random(1_000_000_000)
<jhass> Senjai: Set#include? is very performant, bloom filters are even more so but you won't get better than ensuring to not generate any duplicates in the first place
<Senjai> jhass: yeah.
<Senjai> I think a Set might be the best option
n_blownapart has joined #ruby
mdarby_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
swgillespie has joined #ruby
pulpfiction has joined #ruby
<Senjai> jhass: baweaver thanks for your input
krisquigley has quit [Ping timeout: 252 seconds]
<baweaver> Benchmark.measure { a.include?(164736132) }.real # => 0.03912 where a is an array of 1m random digits from 1 to 1_000_000_000
<baweaver> Benchmark.measure { b.include?(164736132) }.real # => => 6.0e-06 where b is the set variant of a
<waxjar> baweaver: you're benchmarking randomness here
roqo has joined #ruby
<baweaver> a and b are the same except one is a set
<waxjar> if the number happens to be at index 2, you get a really fast result, if it's all the way at the end, not so fast
triple_b has quit [Ping timeout: 246 seconds]
<baweaver> so I pick the last number in the set, it's not meant to be scientifically stringent, just a one off curiosity.
<baweaver> rather to say I picked the last number
<baweaver> for more rigor, rerun the find a good 20 times and average the results for a bit more stability, but again it was more of a curiosity thing.
<waxjar> Array#include? is O(n), Set#include? is O(1), I know which one I'd pick :P
blackmesa has joined #ruby
<gr33n7007h> waxjar: me pick Array#include?
maximski has quit []
gfawcettpq has quit [Ping timeout: 246 seconds]
<waxjar> btw, jhass, would a bloom filter really be faster? aren't they mostly to drastically reduce memory usage?
<baweaver> I was curious as I hadn't really played with sets
pwattste has quit [Remote host closed the connection]
<baweaver> (* in ruby)
<jhass> waxjar: eh, I guess. more efficient would be a better term I guess
max96at is now known as max96at|off
sambao21 has quit [Quit: Computer has gone to sleep.]
<jhass> baweaver: iirc the Ruby set is simply using the keyset of a hash and wrapping it in a nicer API
<waxjar> baweaver: they're implemented using Hashes in ruby, #include? becomes looking up a key in a Hash :)
<baweaver> curious, in what cases would it be better to transform an array to a set? I assume conversion has a decent cost of its own.
<baweaver> I figured from the look of it. I have a bit of reading to do around it now
ghr has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
* baweaver is googling around
robustus|Off has joined #ruby
robustus|Off is now known as robustus
agarie has quit [Remote host closed the connection]
gaboesquivel has quit [Remote host closed the connection]
<baweaver> interesting. That'll be handy for a few things later. I'd been using hashes in a similar manner for a while.
ghr has quit [Ping timeout: 250 seconds]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
<gr33n7007h> just for fun how to crash the repl [*?a..?z].repeated_permutation(1000000).to_a
<gorroth> the easiest way to crash the repl is to write data into the ram at the memory locations of the repl
<gr33n7007h> shit, really?
Soda has joined #ruby
jimms has quit [Remote host closed the connection]
<jhass> >> p ()..1
<eval-in_> jhass => /tmp/execpad-dcbf0a7733fa/source-dcbf0a7733fa: [BUG] Segmentation fault at 0x000000 ... (https://eval.in/304735)
pulpfiction has left #ruby ["Leaving"]
<jhass> gr33n7007h: how about that way^
<c-c> what is that
<havenwood> >> p ()..()
<eval-in_> havenwood => /tmp/execpad-f526635cbe16/source-f526635cbe16: [BUG] Segmentation fault at 0x000000 ... (https://eval.in/304736)
<havenwood> it's a frog's face
<c-c> where does () live?
<jhass> >> ()
<eval-in_> jhass => nil (https://eval.in/304737)
baweaver has quit [Ping timeout: 265 seconds]
paradoja has quit [Ping timeout: 256 seconds]
<jhass> >> ()..()
<eval-in_> jhass => nil..nil (https://eval.in/304738)
<jhass> just don't try to print it!
<c-c> why do I just get syntax error, not segfault
<havenwood> print not the frog
<wallerdev> >> p(())
<eval-in_> wallerdev => nil ... (https://eval.in/304739)
Musashi007 has joined #ruby
<havenwood> c-c: older version of ruby?
<jhass> 18>> p ()..()
<eval-in_> jhass => /tmp/execpad-fadac25ff6a5/source-fadac25ff6a5:2: warning: don't put space before argument parentheses ... (https://eval.in/304740)
<c-c> ok
<jhass> 18>> p ()..1
<eval-in_> jhass => /tmp/execpad-b8cdcd00dd11/source-b8cdcd00dd11:2: warning: don't put space before argument parentheses ... (https://eval.in/304741)
werelivinginthef has joined #ruby
<havenwood> c-c: the fear of printing frogs developed over time
<jhass> ah right, it was 2.0+ only
<havenwood> as it does
<wallerdev> dont confuse the poor ruby lexer
<gr33n7007h> >> String=0
<eval-in_> gr33n7007h => /tmp/execpad-64c13761cacc/source-64c13761cacc:2: warning: already initialized constant String ... (https://eval.in/304742)
<gr33n7007h> STDIN.close
jimms has joined #ruby
<gr33n7007h> >> STDIN.close
<eval-in_> gr33n7007h => nil (https://eval.in/304743)
<gr33n7007h> lol
jonr22 has joined #ruby
<gr33n7007h> >> def method_missing;end
<eval-in_> gr33n7007h => :method_missing (https://eval.in/304744)
<Matip> Hi! How would you add methods on your models based on the API the user is using?
agarie has joined #ruby
vudew has quit [Ping timeout: 250 seconds]
<gr33n7007h> >> true..false
<eval-in_> gr33n7007h => bad value for range (ArgumentError) ... (https://eval.in/304745)
<gr33n7007h> good bot :)
<jhass> gr33n7007h: maybe time for some irb?
<gr33n7007h> or pry
<c-c> I'm still wondering how I can write into irbs memory space
wookiehangover has quit [Ping timeout: 256 seconds]
<jhass> File.write "/proc/#{Process.pid}/something_i_forgot", 20
livingstn has quit []
coderhut has quit [Quit: Page closed]
jenrzzz has joined #ruby
Someguy123 has quit [Ping timeout: 246 seconds]
jonr22 has quit [Ping timeout: 256 seconds]
tier has quit [Remote host closed the connection]
<jhass> dunno, can ffi/fiddle do pointer arithmetik?
<jhass> if so that should work too
tier has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
SouL has quit [Ping timeout: 244 seconds]
jottr_ has quit [Ping timeout: 256 seconds]
<c-c> >> File.write "/proc/#{`pidof irb`}/mem",20
<eval-in_> c-c => (https://eval.in/304746)
ged has joined #ruby
<gr33n7007h> c-c: use $$
<gr33n7007h> no need ``
wookiehangover has joined #ruby
spider-mario has joined #ruby
ged has quit [Client Quit]
ged has joined #ruby
sambao21 has joined #ruby
<c-c> >> File.write "/proc/#{`pidof irb`}/fd/1",20
<eval-in_> c-c => (https://eval.in/304749)
patrick99e99 has quit [Read error: Connection reset by peer]
<c-c> hm, no, its not dying
tier has quit [Remote host closed the connection]
JustPie_Work has joined #ruby
carlyle_ has joined #ruby
Someguy123 has joined #ruby
pengin has quit [Remote host closed the connection]
zenith_ has joined #ruby
<jhass> >> Process.pid
<eval-in_> jhass => 9432 (https://eval.in/304750)
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<jhass> for experiments use your local irb though please
<gr33n7007h> >> $$
<eval-in_> gr33n7007h => 9440 (https://eval.in/304751)
brb3 has quit [Quit: <.<]
carlyle_ has quit [Client Quit]
JDiPierro has quit [Remote host closed the connection]
<gr33n7007h> each given command is a new process
<JustPie_Work> Hey all, I am trying to use sass with symfony ( php framework ) I get the following error. http://pastebin.com/TWj2Ap2a . Can anyone point me in the right direction? ruby 1.9.3p551 ( using : 2014-11-13 revision 48407) [x86_64-linux], Sass 3.4.13 (Selective Steve) )
<helpa> Hi JustPie_Work. We in #ruby would really appreciate it if you did not use pastebin during your time with us.
<helpa> Pastebin is not good because it loads slowly for most, has ads which are distracting and has terrible formatting. Please use Gist (http://gist.github.com) or Pastie (http://pastie.org) instead. Thanks!
_64k has joined #ruby
Musashi007 has quit [Quit: Musashi007]
pontiki has joined #ruby
carlyle has quit [Ping timeout: 244 seconds]
mitchellhenke has quit [Quit: Computer has gone to sleep.]
dfinninger has quit [Remote host closed the connection]
rodfersou has quit [Quit: leaving]
patrick99e99 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
dfinninger has joined #ruby
<JustPie_Work> Hey all, I am trying to use sass with symfony ( php framework ) I get the following error. http://pastie.org/10053531 . Can anyone point me in the right direction? ruby 1.9.3p551 ( using : 2014-11-13 revision 48407) [x86_64-linux], Sass 3.4.13 (Selective Steve) )
<JustPie_Work> sorry for the double post. Wasn't sure if it filtered it or not
<jhass> JustPie_Work: looks like a RVM issue, try #rvm
jottr_ has joined #ruby
pengin has joined #ruby
pengin has quit [Remote host closed the connection]
delianides has quit [Remote host closed the connection]
pengin has joined #ruby
tohsig has quit [Ping timeout: 272 seconds]
<JustPie_Work> jhass: Thanks.
zenith_ has quit [Ping timeout: 256 seconds]
JustPie_Work is now known as JustPie
pontiki has quit [Ping timeout: 272 seconds]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
pdoherty has quit [Quit: Leaving]
arietis has quit [Quit: Leaving.]
sinkensabe has quit [Remote host closed the connection]
lordkryss has quit [Quit: Connection closed for inactivity]
_64k_ has joined #ruby
bluOxigen has quit [Ping timeout: 256 seconds]
_64k has quit [Ping timeout: 272 seconds]
momomomomo_ has joined #ruby
<JustPie> /msg NickServ VERIFY REGISTER JustPie rufahrbqehzc
<havenwood> JustPie: new password time!
<JustPie> haha, yup!
<jhass> !enable Password
<DeBot> jhass: Enabled Password.
<JustPie> ltrim much needed
<jhass> !password
<DeBot> repugnances safeguarded roommates iodizing
<jhass> !disable Password
<DeBot> jhass: Disabled Password.
<jhass> yw
leafybasil has joined #ruby
<gr33n7007h> haha
tubuliferous_ has quit [Remote host closed the connection]
<JustPie> #fail
momomomomo has quit [Ping timeout: 256 seconds]
momomomomo_ is now known as momomomomo
tubuliferous has joined #ruby
Zai00 has joined #ruby
speakingcode has quit [Ping timeout: 264 seconds]
adriancb has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
<bricker> what the hell?
ldnunes has quit [Quit: Leaving]
speakingcode has joined #ruby
momomomomo has quit [Quit: momomomomo]
adriancb_ has joined #ruby
wald0 has quit [Quit: Lost terminal]
ztomz has quit [Quit: Connection closed for inactivity]
adriancb has quit [Ping timeout: 248 seconds]
it0a has quit [Quit: WeeChat 1.1.1]
nettoweb has joined #ruby
shazaum has quit [Quit: Leaving]
adriancb_ has quit [Read error: Connection reset by peer]
adriancb has joined #ruby
reinaldob has quit [Remote host closed the connection]
jottr_ has quit [Ping timeout: 272 seconds]
zachrab has quit [Remote host closed the connection]
zachrab has joined #ruby
danfo_ has joined #ruby
triple_b has joined #ruby
baweaver has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
n_blownapart has quit [Remote host closed the connection]
momomomomo has quit [Client Quit]
Pharaoh2 has joined #ruby
Pharaoh2 has quit [Max SendQ exceeded]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pharaoh2 has joined #ruby
<c-c> Go -lang actually looks kinda cool
* c-c ducks
Notte has joined #ruby
<acl777> yay Golang! :-)
<GaryOak_> this may be very stupid, but can I call a sinatra route from within a sinatra app itself?
iliketurtles has quit [Quit: zzzzz…..]
n_blownapart has joined #ruby
jottr_ has joined #ruby
<kubunto> sounds like reflection?
triple_b has joined #ruby
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
undeadaedra has quit [Ping timeout: 272 seconds]
triple_b has quit [Client Quit]
ki0 has quit [Remote host closed the connection]
xcombelle has quit [Quit: Quitte]
sambao21 has joined #ruby
zachrab has quit []
agarie has quit []
<ericwood> you can redirect
dmr8 has quit [Read error: Connection reset by peer]
thinkswan has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
thinkswan has joined #ruby
<GaryOak_> it's not very smart of me, they should be split up into separate servers
aridere_ has joined #ruby
thinkswan has quit [Remote host closed the connection]
adriancb has joined #ruby
mdarby has joined #ruby
adaedra has joined #ruby
dfinninger has quit [Ping timeout: 248 seconds]
mdarby has quit [Client Quit]
sambao21 has quit [Ping timeout: 246 seconds]
mjuszczak has joined #ruby
mdarby has joined #ruby
mdarby has quit [Client Quit]
kaspernj has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 264 seconds]
adaedra has quit [Ping timeout: 256 seconds]
otisZart has joined #ruby
sambao21 has joined #ruby
rokob has joined #ruby
pengin has quit [Remote host closed the connection]
decoponio has quit [Quit: Leaving...]
iliketurtles has joined #ruby
rocknrollmarc has joined #ruby
ismaelga has joined #ruby
momomomomo has joined #ruby
Matix has joined #ruby
<jhass> GaryOak_: I think it's not fully clear what you want to do yet :)
rocknrollmarc has quit [Read error: Connection reset by peer]
pengin_ has joined #ruby
rocknrollmarc has joined #ruby
<GaryOak_> Just trying to keep things separated but merging them together, kind of bad but I'm figuring it out
adaedra has joined #ruby
freerobby has quit [Quit: Leaving.]
x1337807x has joined #ruby
pandaant has quit [Remote host closed the connection]
codecop has quit [Remote host closed the connection]
f03lipe has joined #ruby
spyderma_ has quit [Ping timeout: 246 seconds]
Matip has quit [Ping timeout: 256 seconds]
momomomomo has quit [Quit: momomomomo]
jimms has quit [Remote host closed the connection]
mjuszczak has quit []
<GaryOak_> jhass: thanks though
iamjarvo has joined #ruby
Azure has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
blackmesa has quit [Ping timeout: 265 seconds]
adaedra has quit [Ping timeout: 272 seconds]
josephleon has quit [Quit: Leaving...]
n_blownapart has quit [Remote host closed the connection]
ominari has joined #ruby
vudew has joined #ruby
pdoherty has joined #ruby
pdoherty has quit [Max SendQ exceeded]
pdoherty has joined #ruby
n80 has quit [Quit: n80]
lucianosousa has quit [Quit: lucianosousa]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
adaedra has joined #ruby
doodlehaus has quit [Remote host closed the connection]
werelivinginthef has quit [Remote host closed the connection]
fryguy91 has quit [Quit: Leaving.]
gaboesquivel has joined #ruby
duncannz has joined #ruby
sinkensabe has joined #ruby
jerematic has quit [Remote host closed the connection]
danfo_ has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
pontiki has joined #ruby
centrx has quit [Quit: Shutting down, Please wait...]
livcd has joined #ruby
two-gun has joined #ruby
mistermo_ has joined #ruby
jerematic has joined #ruby
krisquigley has joined #ruby
pontiki has quit [Client Quit]
xenokiller has joined #ruby
mistermocha has quit [Ping timeout: 255 seconds]
dfinninger has joined #ruby
spider-mario has quit [Remote host closed the connection]
sinkensabe has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
Flcn has quit [Quit: Be back later ...]
vudew has quit [Ping timeout: 264 seconds]
sargas has quit [Quit: This computer has gone to sleep]
ramfjord_ has joined #ruby
JimmyNeutron has quit [Read error: Connection reset by peer]
bim has quit [Remote host closed the connection]
bim has joined #ruby
craigp has joined #ruby
lucianosousa has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bim has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
krisquigley has quit [Ping timeout: 245 seconds]
bim has joined #ruby
ghr has joined #ruby
average has joined #ruby
<average> any emacs package to run my code after each change I make to it ? sort-of like flymake but not just for syntax checking
<average> is this possible ?
dx7 has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nfk|laptop has joined #ruby
josephleon has joined #ruby
Jesterman81 has joined #ruby
senayar has joined #ruby
shellfu is now known as shellfu_afk
Jesterman81 has left #ruby [#ruby]
sargas has joined #ruby
speakingcode has quit [Ping timeout: 250 seconds]
sloshy has quit [Ping timeout: 256 seconds]
sloshy has joined #ruby
adriancb has joined #ruby
postmodern has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
adriancb_ has joined #ruby
<Senjai> average: Dpm
<Senjai> average: Don't use emacs for it. Use guard
pdoherty has quit [Quit: Leaving]
<Senjai> Or gulp, or watch, or anything that was built for it
<Senjai> guard is a specific ruby implimentation
sargas has quit [Quit: Leaving]
adriancb has quit [Read error: Connection reset by peer]
sargas has joined #ruby
sloshy has quit [Ping timeout: 252 seconds]
aswen has quit [Ping timeout: 248 seconds]
sloshy has joined #ruby
jonr22 has joined #ruby
Senjai has quit [Quit: WeeChat 0.4.2]
Senjai`work has joined #ruby
Aswebb_ has joined #ruby
relix_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Senjai`work has joined #ruby
Senjai`work has quit [Changing host]
<Senjai`work> test
Senjai`work is now known as Senjai
freerobby has joined #ruby
bcavileer_ is now known as bcavileer
bcavileer has quit [Changing host]
bcavileer has joined #ruby
bcavileer has quit [Changing host]
bcavileer has joined #ruby
JDiPierro has joined #ruby
_64k_ has quit [Ping timeout: 246 seconds]
dfinninger has quit [Remote host closed the connection]
adriancb has joined #ruby
dfinninger has joined #ruby
sloshy has quit [Ping timeout: 252 seconds]
jottr_ has quit [Ping timeout: 248 seconds]
chrisja has quit [Quit: leaving]
sloshy has joined #ruby
Lewix has joined #ruby
Sirupsen has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
it0a has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
adriancb_ has quit [Ping timeout: 264 seconds]
duncannz has joined #ruby
thinkswan has joined #ruby
x1337807x has quit [Ping timeout: 255 seconds]
RegulationD has quit [Remote host closed the connection]
jonr22 has quit [Remote host closed the connection]
duncannz has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
duncan_ has joined #ruby
nfk|laptop has quit [Quit: yawn]
foureight84_ has quit [Quit: Lingo: www.lingoirc.com]
duncan_ has quit [Max SendQ exceeded]
iml has joined #ruby
gorroth has quit [Ping timeout: 246 seconds]
beneggett has joined #ruby
ghr has joined #ruby
duncan_ has joined #ruby
reinaldob has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
nfk has quit [Quit: yawn]
rhllor has quit [Quit: rhllor]
thinkswan has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
beneggett has quit [Client Quit]
adriancb has quit [Remote host closed the connection]
vim_shimm has joined #ruby
snath has quit [Ping timeout: 244 seconds]
aridere_ has quit [Quit: Leaving]
mistermo_ has quit [Ping timeout: 250 seconds]
ghr has quit [Read error: No route to host]
milesmatthias has quit [Remote host closed the connection]
ghr has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
baweaver has joined #ruby
snath has joined #ruby
Joufflu has joined #ruby
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
duncan_ has quit [Ping timeout: 256 seconds]
ominari has quit [Quit: Lingo: www.lingoirc.com]
lucianosousa has quit [Ping timeout: 246 seconds]
Sirupsen has joined #ruby
lucianosousa has joined #ruby
lucianosousa has quit [Client Quit]
BTRE has quit [Quit: Leaving]
BTRE has joined #ruby
badhatter has quit [Read error: Connection reset by peer]
ghr has quit [Ping timeout: 264 seconds]
badhatter has joined #ruby
_64k has joined #ruby
two-gun has quit [Ping timeout: 246 seconds]
pandaant has joined #ruby
w33nd0x has joined #ruby
duncannz has joined #ruby
dopie has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
rocknrollmarc has quit [Read error: Connection reset by peer]
gkra has quit [Ping timeout: 246 seconds]
duncannz has quit [Max SendQ exceeded]
jobewan has quit [Quit: Leaving]
Notte has quit [Remote host closed the connection]
Notte has joined #ruby
sinkensabe has joined #ruby
baweaver has quit [Remote host closed the connection]
_64k has quit [Ping timeout: 246 seconds]
fryguy9 has joined #ruby
iml has quit [Remote host closed the connection]
Guest57535 is now known as ixx
sinkensabe has quit [Ping timeout: 250 seconds]
fryguy9 has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
tubuliferous_ has joined #ruby
MatthewsFace has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
senayar has quit [Remote host closed the connection]
zzing has joined #ruby
GGMethos has quit [Quit: WeeChat 1.0.1]
jottr_ has quit [Ping timeout: 255 seconds]
davispuh has quit [Read error: Connection reset by peer]
zachrab has joined #ruby
vim_shimm has quit [Ping timeout: 244 seconds]
spyderma_ has joined #ruby
davispuh has joined #ruby
Cust0sL1men has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
serivich has joined #ruby
baweaver has joined #ruby
jottr_ has joined #ruby
Musashi007 has joined #ruby
spyderman4g63 has quit [Ping timeout: 256 seconds]
spyderma_ has quit [Ping timeout: 248 seconds]
tubuliferous_ has quit [Max SendQ exceeded]
Megtastique has quit []
thiagovsk has quit [Quit: Connection closed for inactivity]
DEA7TH has quit [Ping timeout: 265 seconds]
Wolland has joined #ruby
icebourg has quit []
cpruitt has quit [Quit: cpruitt]
plashchynski has joined #ruby
tubuliferous_ has joined #ruby
last_staff has joined #ruby
yfeldblum has quit [Remote host closed the connection]
overcrush has quit [Remote host closed the connection]
roolo_ has quit [Remote host closed the connection]
toretore has quit [Quit: This computer has gone to sleep]
<blackmesa> hi all. does 'return unless ...' return nil or false?
<blackmesa> or do I have to do a 'return false unless'
<jhass> >> def foo; return unless false; end; foo
<eval-in_> jhass => nil (https://eval.in/304810)
<jhass> easy to try those out, no? ;)
Wamboo has joined #ruby
<blackmesa> cool
rhg135 has joined #ruby
<blackmesa> thx
jherbst has joined #ruby
sgambino has quit [Remote host closed the connection]
<blackmesa> >> def foo; return false unless true; end; foo
<eval-in_> blackmesa => nil (https://eval.in/304811)
crueber has quit [Quit: Leaving.]
<jhass> eval-in is for demo though, use irb or pry to experiment
<Wamboo> Hi
<Wamboo> Could anyone translate/ guide me in the right direction to translate this python to Ruby? very small script: https://www.irccloud.com/pastebin/h1ZroIla
uptownhr has quit [Quit: uptownhr]
DavidDudson has joined #ruby
baweaver has quit [Remote host closed the connection]
JimmyNeutron has joined #ruby
tvw has quit [Remote host closed the connection]
soulcake has quit [Quit: Quack.]
soulcake has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Flcn has joined #ruby
n_blownapart has joined #ruby
RegulationD has joined #ruby
aarthi01 has joined #ruby
ominari has joined #ruby
<GaryOak_> Wamboo: just start by looking at ruby's socket, random, and time libs
dfinninger has quit [Remote host closed the connection]
dfinninger has joined #ruby
thiagovsk has joined #ruby
Flcn has quit [Ping timeout: 244 seconds]
<GaryOak_> Wamboo: also you'll want to either change that lambda to a proc, or rewrite it so you don't have to use the lambda
<Wamboo> I dunno how? :(
<jhass> what did you try so far?
lanemeyer has joined #ruby
RegulationD has quit [Ping timeout: 245 seconds]
iliketurtles has quit [Quit: zzzzz…..]
<Wamboo> Nothing yet, Just reading the ruby socket docs rn
plashchynski has quit [Quit: plashchynski]
dfinninger has quit [Ping timeout: 250 seconds]
plashchynski has joined #ruby
ominari has quit [Quit: Be back later ...]
tus has joined #ruby
gaboesquivel has quit []
ghostpl_ has quit [Remote host closed the connection]
dseitz has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
kirun has quit [Quit: Client exiting]
bruno- has quit [Ping timeout: 250 seconds]
<GaryOak_> Wamboo: your durtime is never changing so so durclock is just time.clock
<jhass> you want a TCPSocket there specifically
<Wamboo> I see
gorroth has joined #ruby
<Wamboo> hmm
baweaver has joined #ruby
latemus has quit [Ping timeout: 248 seconds]
juanca_ has quit [Remote host closed the connection]