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?
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
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
<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
<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…]
<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]
<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
<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 ;)
<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?
<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
<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:
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 :)
_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]
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]
<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?
_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
<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]
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]
<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
<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…]
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]
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]]
<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.
<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
<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
<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]
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]