solocshaw has quit [Remote host closed the connection]
agent_white has quit [Quit: BAI]
davedev24 has quit [Remote host closed the connection]
Ebok has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
hutch34 has quit [Ping timeout: 250 seconds]
tvon has quit [Read error: Connection reset by peer]
TPug has joined #ruby
jphase has quit [Remote host closed the connection]
jphase has joined #ruby
Guest88527 has quit [Remote host closed the connection]
<darix>
moin drbrain
zacts has joined #ruby
<drbrain>
dminuoso has joined #ruby
AndrewIsHere has quit [Remote host closed the connection]
dreamyspell is now known as megumi
megumi is now known as dreamyspell
mtkd has quit [Ping timeout: 240 seconds]
tvon has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
dminuoso has quit [Ping timeout: 264 seconds]
mtkd has joined #ruby
lightheaded has joined #ruby
tdy has quit [Ping timeout: 265 seconds]
dreamyspell is now known as starrymegumi
TheWhip has joined #ruby
tvon has quit [Client Quit]
wrkrcoop has quit [Quit: wrkrcoop]
tectonic has joined #ruby
Gasher has quit [Quit: Leaving]
hotpancakes has quit []
lightheaded has quit [Ping timeout: 258 seconds]
rmf_ has joined #ruby
rmf_ is now known as robfrawley
TheWhip has quit [Ping timeout: 265 seconds]
wrkrcoop has joined #ruby
<ghormoon>
well, got through the tests, but died later anyway :)
banisterfiend has joined #ruby
<ghormoon>
and also next time I should run it somewhere else than laptop, the tests take ages :)
cdg has quit [Remote host closed the connection]
wimplash has joined #ruby
whathappens has joined #ruby
SeepingN has quit [Quit: The system is going down for reboot NOW!]
starrymegumi is now known as dreamyspell
wimplash has quit [Client Quit]
FrankD has joined #ruby
mjuszcza_ has joined #ruby
mjuszcza_ has quit [Max SendQ exceeded]
<FrankD>
hrmm I have a hash with an indeterminate number of elements, each with a start value, step size and number of steps.. I want to create every possible iteration.. what's the best way to do so?
myntcake has quit [Remote host closed the connection]
tvon has joined #ruby
mjuszcza_ has joined #ruby
mjuszcza_ has quit [Max SendQ exceeded]
GodFather has joined #ruby
beilabs has joined #ruby
whathappens has quit [Ping timeout: 260 seconds]
marr has quit [Remote host closed the connection]
replay has quit []
mjuszczak has quit [Ping timeout: 258 seconds]
mjuszcza_ has joined #ruby
mjuszcza_ has quit [Max SendQ exceeded]
davedev24 has quit [Remote host closed the connection]
jtdoncas has quit [Ping timeout: 276 seconds]
djbkd has quit [Quit: Leaving...]
monoprotic has quit [Read error: Connection reset by peer]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
nankyokusei has joined #ruby
mjuszczak has joined #ruby
BillSussman has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
monoprotic has joined #ruby
mjuszczak has joined #ruby
tlaxkit has quit [Read error: Connection reset by peer]
RedNifre has quit [Read error: Connection reset by peer]
tlaxkit has joined #ruby
RedNifre has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
Es0teric has quit [Quit: Computer has gone to sleep.]
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
tlaxkit has quit [Remote host closed the connection]
AndyBotwin has quit [Ping timeout: 276 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
nankyokusei has quit [Ping timeout: 240 seconds]
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
matp has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
davedev24 has joined #ruby
dviola has quit [Quit: WeeChat 1.5]
<drbrain>
you have the iterations you want with the start, step size and count?
skweek has joined #ruby
pawnbox has joined #ruby
<drbrain>
sounds like you want Numeric#step, start.step(by: size).first(count).each do |index| … end
antipsychiatry has joined #ruby
kentnl is now known as kent\n
wrkrcoop has quit [Quit: wrkrcoop]
Davedev28 has quit [Ping timeout: 250 seconds]
kendocoding has joined #ruby
Davedev28 has joined #ruby
monoprotic has quit [Ping timeout: 265 seconds]
monoprotic has joined #ruby
<antipsychiatry>
Hey
pawnbox has quit [Ping timeout: 244 seconds]
flashpoint9 has quit [Remote host closed the connection]
Haui has quit [Ping timeout: 240 seconds]
flashpoint9 has joined #ruby
antipsychiatry has quit [Excess Flood]
ddffg has quit [Ping timeout: 240 seconds]
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
diprotic has joined #ruby
matp has quit [Remote host closed the connection]
monoprotic has quit [Ping timeout: 244 seconds]
TPug has joined #ruby
matp has joined #ruby
TheWhip has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
rkazak has quit [Quit: Sleep.....ing....]
kendocoding has quit [Quit: Leaving]
Hobogrammer has joined #ruby
TheWhip has quit [Ping timeout: 265 seconds]
moonythedwarf_ has quit [Ping timeout: 240 seconds]
s2013 has joined #ruby
Es0teric has joined #ruby
jackjackdripper1 has quit [Quit: Leaving.]
kendocoding has joined #ruby
MrBusiness2 has quit [Ping timeout: 250 seconds]
Ropeney has joined #ruby
Vingador has joined #ruby
d0nn1e has quit [Ping timeout: 252 seconds]
d0nn1e has joined #ruby
ta_ has joined #ruby
Antiarc has quit [Remote host closed the connection]
amclain has quit [Quit: Leaving]
dminuoso has joined #ruby
tdy has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkazak has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
Es0teric has quit [Quit: Computer has gone to sleep.]
dkphenom has joined #ruby
dminuoso has quit [Ping timeout: 265 seconds]
lightheaded has joined #ruby
amincd has joined #ruby
<amincd>
Is there a channel for Ruby on Rails?
davedev24 has quit [Remote host closed the connection]
ajsharma has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood>
amincd: #RubyOnRails
shinnya has quit [Ping timeout: 252 seconds]
<amincd>
havenwood: thanks, just found it. Duh. Are there any alternatives to RoR as a Ruby-based web-platform?
mjuszczak has joined #ruby
<amincd>
*web-framework
<havenwood>
amincd: There are. Sinatra, Roda and Hanami are three options amongst the many high quality alternative Rack adapters.
<amincd>
havenwood: cool, any you recommend for a relative newbie?
Tharbakim has quit [Read error: Connection reset by peer]
tmtwd has joined #ruby
lightheaded has quit [Ping timeout: 258 seconds]
spudowiar has quit [Quit: Leaving.]
<havenwood>
amincd: I'd recommend trying out a small, pure Rack app to see what its limitations are. Then reading through the Roda code and each of its plugins. That'd take a while but give you a good grounding.
<havenwood>
amincd: Sinatra has more tutorials than the others. Hanami's code makes for a nice read like Roda's, but it's a bit closer to Rails in the convention over configuration dep't.
<amincd>
I'm mostly concerned about what I've read about Active Record
Lucky_ABA has joined #ruby
<amincd>
hence the search for an alternative
<havenwood>
amincd: The Sequel gem (maintained by the creator of Roda) pairs nicely with all of the above.
firstdayonthejob has quit [Ping timeout: 240 seconds]
hk238 has joined #ruby
Macaveli has joined #ruby
ta_ has quit [Ping timeout: 276 seconds]
dreamyspell has quit [Quit: Leaving]
nankyokusei has joined #ruby
sdothum has joined #ruby
craysiii has joined #ruby
pokalyis has joined #ruby
dminuoso has quit [Remote host closed the connection]
k3rn31_ has joined #ruby
anisha has joined #ruby
k3rn31 has quit [Read error: Connection reset by peer]
conah has quit [Ping timeout: 250 seconds]
nankyokusei has quit [Ping timeout: 260 seconds]
chestnutpie has quit [Quit: Leaving]
Bish has quit [Ping timeout: 244 seconds]
rubie has joined #ruby
submitnine has joined #ruby
jonoyeong has quit [Remote host closed the connection]
galeido has joined #ruby
biberu has joined #ruby
blaxter has joined #ruby
dminuoso has joined #ruby
craysiii has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rubie has quit [Ping timeout: 252 seconds]
AnarchyAo has quit [Quit: ircN 8.00 for mIRC (20100904) - www.ircN.org]
jonoyeong has joined #ruby
Bish has joined #ruby
jhooker has quit [Read error: Connection reset by peer]
saneax-_-|AFK is now known as saneax
jhooker has joined #ruby
dudepare has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
last_staff has quit [Client Quit]
davedev24 has joined #ruby
quiqua has joined #ruby
bronson has quit [Ping timeout: 244 seconds]
davedev24 has quit [Ping timeout: 250 seconds]
harai has quit [Quit: WeeChat 1.5]
arnonhongklay has quit []
tmtwd has quit [Ping timeout: 276 seconds]
bronson has joined #ruby
Parko has quit [Read error: Connection reset by peer]
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
claudiuinberlin has joined #ruby
indistylo has quit [Remote host closed the connection]
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
jenrzzz has quit [Ping timeout: 264 seconds]
ukk has joined #ruby
woodruffw has joined #ruby
woodruffw has quit [Excess Flood]
the_drow has joined #ruby
harai has joined #ruby
Bish has quit [Ping timeout: 276 seconds]
woodruffw has joined #ruby
TomyWork has joined #ruby
Bish has joined #ruby
MrBusiness has quit [Ping timeout: 250 seconds]
blackgoat has quit [Ping timeout: 258 seconds]
iMadper has joined #ruby
hutch34 has joined #ruby
pwnd_nsfw` has joined #ruby
ta_ has joined #ruby
Robtop__ has quit [Ping timeout: 250 seconds]
hutch34 has quit [Ping timeout: 240 seconds]
aganov has joined #ruby
ccmcdee has joined #ruby
Bish has quit [Ping timeout: 244 seconds]
Bish has joined #ruby
weckl has joined #ruby
okrasi has joined #ruby
edwinvdgraaf has joined #ruby
indistylo has joined #ruby
<indistylo>
I want to test the unicorn-worker-killer in my dev enviroment, I am using httperf to generate GET request & bombard to see how memory footprint behaves under different http frequency, My env is debian Wheezy, Ruby1.9.3, gem 1.8.23, rake1.9.1, unicorn v4.3.1 ; puppet 2.7.23, nginx 1.2.1 ; Now my doubt/question -- how should I do the TEST to know the behaviour of unicorn-worker-killer0.4.4{this gets installed on server by puppet}
<indistylo>
Announcing: crossposting
hutch34 has joined #ruby
paradisaeidae_ has quit [Quit: ChatZilla 0.9.92 [Firefox 48.0.1/20160817112116]]
duper has left #ruby [#ruby]
rsampaio_ has quit [Ping timeout: 250 seconds]
hutch34 has quit [Ping timeout: 265 seconds]
hutch34 has joined #ruby
flashpoint9 has joined #ruby
mindaslab has joined #ruby
Snowy has joined #ruby
vuoto has joined #ruby
edwardly has quit [Ping timeout: 244 seconds]
jphase has quit [Ping timeout: 250 seconds]
hutch34 has quit [Ping timeout: 265 seconds]
flashpoint9 has quit [Ping timeout: 250 seconds]
the_rhizo3 has quit [Ping timeout: 240 seconds]
edwardly has joined #ruby
edwardly has quit [Changing host]
edwardly has joined #ruby
boshhead has quit [Remote host closed the connection]
jaruga___ has joined #ruby
jazzonmym1nd has quit [Ping timeout: 250 seconds]
dkam_ has quit [Remote host closed the connection]
Es0teric has quit [Remote host closed the connection]
jenrzzz has joined #ruby
tmtwd has joined #ruby
antgel has joined #ruby
Burgestrand has joined #ruby
k3rn31_ has quit [Ping timeout: 240 seconds]
finisherr has quit [Quit: finisherr]
hutch34 has joined #ruby
mindaslab has quit [Ping timeout: 240 seconds]
boshhead_ has joined #ruby
boshhead_ is now known as boshhead
jazzonmym1nd has joined #ruby
vuoto has quit [Remote host closed the connection]
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
k3rn31 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
hutch34 has quit [Ping timeout: 265 seconds]
pawnbox has quit [Remote host closed the connection]
lightheaded has quit [Remote host closed the connection]
lightheaded has joined #ruby
arnonhongklay has joined #ruby
e2021 has quit [Remote host closed the connection]
reednj_ has joined #ruby
rodfersou has joined #ruby
Silthias has joined #ruby
dasher00 has quit [Ping timeout: 258 seconds]
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
KaliLinuxGR has quit [Ping timeout: 264 seconds]
MrBusiness has joined #ruby
GodFather has joined #ruby
gigetoo has quit [Ping timeout: 265 seconds]
tvw has joined #ruby
gigetoo has joined #ruby
hanmac has quit [Ping timeout: 250 seconds]
Hyuk has joined #ruby
<dminuoso>
Let's say you have an array and want to provide an enumerator that yields each odd number. Would it be sensible to provide a method Array#each_odd ?
Hyuk has quit [Client Quit]
<apeiros>
as a refinement? sure, why not.
TheWhip has quit [Remote host closed the connection]
<dminuoso>
apeiros: Well in particular it's an ActiveRecord relation (so it would be method on my model)
<apeiros>
as a monkey-patch? I'd be hesitant. monkey patching classes you don't own is potentially dangerous.
<dminuoso>
Yeah.
<dminuoso>
I was wondering more about the "each_odd" part itself.
<apeiros>
in your own class - sure. do whatever is sensible :)
MrBusiness has quit [Ping timeout: 250 seconds]
<apeiros>
is your issue the naming or the functionality?
<dminuoso>
The functionality.
Fernando-Basso has joined #ruby
<dminuoso>
Let me elaborate.
<apeiros>
well, simple: if it's a use-case and it falls into the class' responsibility - go for it.
<dminuoso>
My model represents a House (think of it like an address), and I want to provide an enumerator that yields: each_house_with_the_same_house_number, each_house_on_the_same_street_side, each_house_on_the_same_street
pwnd_nsfw` has quit [Read error: Connection reset by peer]
<apeiros>
I'd make them relations too, not enumerators.
<dminuoso>
Mm I suppose I could make scopes instead.
pwnd_nsfw has joined #ruby
<apeiros>
not sure whether "same housenumber" makes sense functionality wise. unless you mean same street + housenumber
<apeiros>
or rather: each address with the same street+number
<dminuoso>
apeiros: We have a few streets where they started naming houses "7a", "7b" up until "7g"
<apeiros>
but maybe I just don't get the use-case for enumerating houses with the same housenumber
<dminuoso>
apeiros: But yeah,s ame street+number is what I meant.
<apeiros>
ah, and number is only "7"
<dminuoso>
Yeah.
TheWhip has joined #ruby
<apeiros>
I see
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
depending on your country: careful with assumptions on addresses :)
jtdoncas has joined #ruby
<dminuoso>
apeiros: Our dataset on something else is somewhat incomplete. So I need a simple heuristic to pick the closest house and use its data-set. These methods are just helpers for another service class.
<dminuoso>
(For those addresses that have "empty <other> data")
<apeiros>
dealing with that here too atm, and we have funny things like addresses with the housenumbers at the beginning ("7, rue de nimportequoi")
<dminuoso>
Heh
<workmad3>
dminuoso: heh :) sounds like you're trying to deal with some of the weirdnesses in UK addresses
<apeiros>
and housenumbers like "Whateverstreet 7bis"
k3rn31 has quit [Ping timeout: 244 seconds]
<apeiros>
where "bis" means "half", i.e. 7½
<workmad3>
dminuoso: and if so... how are you planning on coping with houses that don't have a number, just a name?
<apeiros>
(or "7 1/2" if your client can't render ½)
<dminuoso>
workmad3: For sake of simplicity we can assume that all houses in this German city have a house number.
<dminuoso>
(There are some exotic exceptions, but we can ignore these)
<apeiros>
not to forget about addresses with floors: "Foostreet 1/8" (= Foostreet 1, floor 8)
Burgestrand has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso>
apeiros: Luckily things are a bit more strict in Germany. An address uniquely identifies the house, not an apartment/floor. :)
Burgestrand has joined #ruby
<dminuoso>
Or I suppose whether thats lucky depends on who you ask.
<workmad3>
dminuoso: lucky... in the UK, an address just uniquely identifies a postal address... that could be a flat in a block, a house, a PO box... it could be named or numbered, the numbers don't have to by contiguous, and while they follow some patterns in a lot of cases, they don't in all cases (or even enough to be reliable)
f4cl3y has quit [Ping timeout: 258 seconds]
<apeiros>
similar in CH
async_prince has joined #ruby
<apeiros>
though the post tries to normalize it and discontinues deprecated/odd addresses/formats
hanmac has joined #ruby
hipertracker has joined #ruby
<workmad3>
apeiros: same here... the post office in the UK also tries to provide data on lat/lon position for each address... but the data set they sell with that info assigns a confidence rating to each position because sometimes they don't actually know where a postal address is actually located :/
Burgestrand has quit [Ping timeout: 258 seconds]
<apeiros>
oh, that part they've got covered.
Macaveli has joined #ruby
<apeiros>
swiss post claims to to have valid geocoords for valid addresses down to the half-meter level.
AzureStigma has joined #ruby
kp666 has quit [Ping timeout: 250 seconds]
tomchapin has joined #ruby
tomchapi_ has quit [Ping timeout: 244 seconds]
mikee has joined #ruby
sdothum has joined #ruby
Burgestrand has joined #ruby
k3rn31 has joined #ruby
icyflame has joined #ruby
flashpoint9 has joined #ruby
TheWhip has quit []
kp666 has joined #ruby
doublemalt_ has quit [Remote host closed the connection]
JeanCarloMachado has joined #ruby
flashpoint9 has quit [Ping timeout: 250 seconds]
icyflame has quit []
galeido has quit [Ping timeout: 265 seconds]
moeSeth has joined #ruby
JeanCarloMachado has quit [Remote host closed the connection]
ldnunes has joined #ruby
jgt3 has quit [Quit: WeeChat 1.4]
Fernando-Basso has quit [Ping timeout: 260 seconds]
pwnd_nsfw` has joined #ruby
ta__ has joined #ruby
pwnd_nsfw has quit [Ping timeout: 250 seconds]
whathappens has joined #ruby
johnmilton has quit [Remote host closed the connection]
hahuang61 has joined #ruby
ta__ has quit [Ping timeout: 258 seconds]
nertzy has joined #ruby
jtdoncas has quit [Ping timeout: 244 seconds]
arashb has joined #ruby
whathappens has quit [Ping timeout: 250 seconds]
tvw has quit [Ping timeout: 244 seconds]
<dminuoso>
apeiros: Heh I just realized I cant produce relations in all cases.
hahuang61 has quit [Ping timeout: 250 seconds]
blaxter has quit [Quit: foo]
<dminuoso>
apeiros: The problem is selecting all houses on the same street side, since it requires selecting all records with the same oddness of the house number.
<dminuoso>
I would end up with a really silly case/end statement applying different where conditions depending on which database adapter is used.
Fernando-Basso has joined #ruby
arashb has quit [Ping timeout: 240 seconds]
tyang has joined #ruby
hutch34 has joined #ruby
<apeiros>
dminuoso: might be able to handle it on the db with calculated columns (on table if supported, view otherwise)
<apeiros>
but depends a lot on how you infer "same side"
Burgestrand has quit [Ping timeout: 264 seconds]
<apeiros>
e.g. `create view houses (select case when house_number % 2 = 0 then 'side_a' else 'side_b' end street_side, * …`
tyang has quit [Read error: Connection reset by peer]
tvw has joined #ruby
tyang has joined #ruby
beilabs_ has quit [Remote host closed the connection]
ponga has joined #ruby
the_rhizo3 has joined #ruby
Vingador has joined #ruby
johnmilton has joined #ruby
fivmo has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso>
apeiros: each database would have to expose it in that way.
johnmilton has quit [Read error: Connection reset by peer]
<dminuoso>
apeiros: I think Ill just go with the silly case/end solution
johnmilton has joined #ruby
<dminuoso>
apeiros: But yes, that is precisely how I infer "same-sideness"
the_rhizo3 has quit [Ping timeout: 250 seconds]
<dminuoso>
If there's exotic exceptions then my heuristic will pick slightly worse houses, but it's fine.
<dminuoso>
Though actually the opposite street side could be much worse.
<dminuoso>
Right to the point where the "distance" betweem 2 and 100 is less than 2 and 3.
<workmad3>
dminuoso: I'm getting really curious about what you're up to :D
<dminuoso>
workmad3: I have a database of wires reaching into houses, but it's incomplete. So in order to guesstimate the length for these wires when it's unknown, Ill just assume it to be the neighboring house.
<dminuoso>
And because of how these wires are put into the ground, the wires may have totally different paths for the other street side.
<workmad3>
dminuoso: ah... do you have lat/lon positional data for the addresses?
<dminuoso>
Think we do somewhere.
<dminuoso>
But that's even less complete.
<workmad3>
ah
Burgestrand has joined #ruby
mikecmpbll has joined #ruby
fivmo has joined #ruby
<dminuoso>
I mean it's only missing in about 10-15% of the cases, and I can live with some random inaccuracy for some. In most cases the neighboring house should be accurate.
<apeiros>
dminuoso: well, we can switch places if you want. I'm currently trying to normalize all the insane ways people denoted post box and c/o address in our DB…
<dminuoso>
apeiros: Heh, we are doing the same thing.
<mikecmpbll>
we're going to do that soon ....
<dminuoso>
apeiros: addresses have produced this retarded data model, where we store zip addresses in: a) the city, b) the street and c) the house.
rkazak has joined #ruby
<apeiros>
that sounds fun
gnufied has joined #ruby
<apeiros>
the good part about what I'm doing now: we're moving to a (hopefully) sane data model.
<apeiros>
though, I actually already found a kind of address we can not properly normalize: military addresses :D
<apeiros>
(the model still can handle it, though - it has a plaintext field for any address it can't handle)
<dminuoso>
What is a military address?
senayar has joined #ruby
senayar has quit [Changing host]
senayar has joined #ruby
Bish has quit [Ping timeout: 276 seconds]
marsjaninzmarsa has quit [Quit: ZNC 1.7.x-git-487-cbf5c38 - http://znc.in]
marsjaninzmarsa has joined #ruby
<apeiros>
an address of a soldier/military person in service
<apeiros>
it doesn't have a zip code and no location
<apeiros>
it has instead the military "group" etc.
<dminuoso>
Must be a swiss thing. Does this mean it's send to a military postal service that handles the rest?
marsjaninzmarsa has quit [Excess Flood]
marsjaninzmarsa has joined #ruby
blackgoat has quit [Quit: WeeChat 1.5]
rkazak has quit [Quit: Sleep.....ing....]
flashpoint9 has joined #ruby
bayed has joined #ruby
Bish has joined #ruby
eljimbo has quit [Quit: This computer has gone to sleep]
tectonic has joined #ruby
<apeiros>
dminuoso: I'm actually not sure whether military handles delivery itself or whether that's still the swiss postal service
Pupp3tm4_ has quit [Remote host closed the connection]
tvw has joined #ruby
hutch34 has quit [Ping timeout: 240 seconds]
cdg has quit [Remote host closed the connection]
cdg has joined #ruby
duderonomy has joined #ruby
<dminuoso>
kang00: Please don't PM me.
reednj_ has quit [Ping timeout: 252 seconds]
<ljarvis>
or as least ask him out first
yardenbar has quit [Ping timeout: 264 seconds]
Snowy has quit [Remote host closed the connection]
rubie has quit [Read error: Connection reset by peer]
rubie has joined #ruby
malconis has joined #ruby
<kang00>
Ok ljarvis
pokalyis has joined #ruby
DoubleMalt has quit [Ping timeout: 260 seconds]
beilabs has joined #ruby
duderonomy has quit [Ping timeout: 250 seconds]
DoubleMalt has joined #ruby
matp_ has joined #ruby
matp has quit [Remote host closed the connection]
pawnbox has joined #ruby
davedev24 has joined #ruby
youch has joined #ruby
eljimmy has joined #ruby
ccmcdee has left #ruby ["WeeChat 1.5"]
GodFather has quit [Ping timeout: 244 seconds]
Burgestrand has quit [Ping timeout: 264 seconds]
tsunamie has quit [Ping timeout: 276 seconds]
zapata has quit [Quit: WeeChat 1.5]
ChiefAlexander has joined #ruby
matmatah has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
tsunamie has joined #ruby
meth has quit [Quit: Bye!]
davedev24 has quit [Ping timeout: 250 seconds]
Neon has joined #ruby
p0p0pr37_ has joined #ruby
zapata has joined #ruby
harfangk has joined #ruby
p0p0pr37 has quit [Ping timeout: 240 seconds]
Pupp3tm4st3r has joined #ruby
p0p0pr37_ is now known as p0p0pr37
coolboy has joined #ruby
fmcgeough has joined #ruby
VnrycepuxO has joined #ruby
hutch34 has joined #ruby
ruby-lang411 has joined #ruby
<ruby-lang411>
Hi
ta_ has quit [Remote host closed the connection]
da3mon has quit [Quit: Zzzz...]
ruby839 has joined #ruby
<ruby839>
hi bro
ta_ has joined #ruby
<ruby-lang411>
hi
<ruby-lang411>
can you hearm e
ruby-lang411 has quit [Client Quit]
<matmatah>
I can hear you
Velizar has joined #ruby
ruby839 has quit [Ping timeout: 264 seconds]
d0lph1n98 has joined #ruby
da3mon has joined #ruby
aupadhye has quit [Quit: Leaving]
ta_ has quit [Ping timeout: 264 seconds]
MrBusiness has joined #ruby
d0lph1n98 has quit [Client Quit]
Pupp3tm4st3r has quit [Quit: Leaving...]
wugy has quit []
teclator has quit [Remote host closed the connection]
Burgestrand has joined #ruby
Xaitec has joined #ruby
beilabs has quit [Remote host closed the connection]
jphase has joined #ruby
tvon has joined #ruby
beilabs has joined #ruby
etehtsea has joined #ruby
<dminuoso>
I want a local goto..
zacts has quit [Quit: WeeChat 1.4]
* dminuoso
recompiles Ruby with JOKE enabled.
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rubie has quit [Remote host closed the connection]
beilabs has quit [Ping timeout: 244 seconds]
OTORelic3 has joined #ruby
DoubleMalt has quit [Ping timeout: 240 seconds]
tvon has quit [Quit: System is sleeping...]
malconis has quit [Remote host closed the connection]
<Xaitec>
hi all i have a rvm question
malconis has joined #ruby
<Xaitec>
i am trying to install rvm on ubuntu server 16.04 on a non root account but with sudo enable. I am however having trouble with the pgp keys it seems
<ben_____>
ljarvis: oh cool, I didn't know about that one. Does it have the same concept of different gemsets per project? (I might not 100% know what im talking about... so if I'm using the wrong words please excuse me)
craigp has quit [Ping timeout: 260 seconds]
<moeSizlak>
is Random's rand different from kernel's rand?
<apeiros>
yes
AzureStigma has joined #ruby
<apeiros>
Random.rand seems to require an argument.
<moeSizlak>
which is better
<apeiros>
hm
<apeiros>
seems Random.rand's docs are faulty.
<moeSizlak>
yes i noticed
rippa has joined #ruby
tyang has joined #ruby
sarbs has joined #ruby
jobewan has joined #ruby
<apeiros>
personally I'd be happy if Kernel#rand would go away.
<moeSizlak>
why
polishdub has joined #ruby
jobewan is now known as jobewan_away
<apeiros>
less toplevel methods
<moeSizlak>
so when i call Random's rand with no argum ents what do i get
<ljarvis>
ben_____: no it doesn't, at least not baked into it. There are various plugins if you want things like that. Honestly, if you use a lot of the bigger rvm features then it's probably not worth switching, but I always want simplicity, which RVM doesn't offer :)
<moeSizlak>
since the docs dont say
<apeiros>
moeSizlak: it's almost certainly identical to Kernel#rand
jobewan_away is now known as jobewan
GinoManWrx has joined #ruby
<ben_____>
ljarvis: cool! thanks for the info. I agree RVM has a lot to it... and is kinda magic.
anisha has quit [Ping timeout: 276 seconds]
Snowy has joined #ruby
<ben_____>
Good to know some of the other options.
anisha has joined #ruby
DoubleMalt has joined #ruby
k3rn31 has quit [Ping timeout: 244 seconds]
plantfood has joined #ruby
agent_white has joined #ruby
<agent_white>
Mornin'
beilabs has joined #ruby
griffindy has joined #ruby
<plantfood>
ciao
ukk has joined #ruby
hahuang61 has joined #ruby
shinnya has joined #ruby
machinewar has joined #ruby
kang00 has quit [Ping timeout: 250 seconds]
<machinewar>
having strangest issue. has anyone ever set an instance variable to a hash key that is nil and gotten it set to [nil, nil, {}] i.e. @var = { }['non_existant'] => @var == [nil, nil, {}]
craysiii has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<machinewar>
must be some gem I'm using or something
howdoi has quit [Quit: Connection closed for inactivity]
beilabs has quit []
[Butch] has joined #ruby
<apeiros>
machinewar: I don't follow.
<machinewar>
apeiros: I know its super strange I have no idea
<apeiros>
machinewar: no. your explanation does not make sense to me.
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AzureStigma is now known as AzureStigma|Away
AzureStigma|Away is now known as AzureStigma
duderonomy has quit [Ping timeout: 244 seconds]
AzureStigma is now known as AzureStigma|Away
AzureStigma|Away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
k3rn31 has quit [Quit: Computer has gone to sleep.]
ben______ has joined #ruby
chrisarc1nd is now known as chrisarcand
Couch has quit [Ping timeout: 240 seconds]
ben_____ has quit [Ping timeout: 250 seconds]
AzureStigma has joined #ruby
pokalyis has joined #ruby
barajasfab has joined #ruby
chestnutpie has joined #ruby
DoubleMalt has joined #ruby
lightheaded has joined #ruby
spudowiar has quit [Quit: gtg]
Vingador has quit [Ping timeout: 244 seconds]
Haui has quit [Quit: Verlassend]
k3rn31 has joined #ruby
rodferso1 has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
AndrewIsHere has joined #ruby
aryaching has quit [Remote host closed the connection]
arnonhon_ has joined #ruby
arnonho__ has joined #ruby
rodfersou has quit [Ping timeout: 265 seconds]
jtdoncas has quit [Ping timeout: 265 seconds]
arnonhongklay has quit [Ping timeout: 260 seconds]
ajsharma has joined #ruby
arnonhon_ has quit [Read error: Connection reset by peer]
glcx has joined #ruby
Caerusz has quit [Quit: EliteBNC - http://elitebnc.org (Auto-Removal: idle account/not being used)]
edwinvdgraaf has quit [Ping timeout: 265 seconds]
amclain has joined #ruby
DoubleMalt has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
symm- has joined #ruby
Vingador has joined #ruby
stamina has quit [Ping timeout: 276 seconds]
anisha has quit [Ping timeout: 265 seconds]
jayessarren has quit [Quit: Leaving]
anisha has joined #ruby
rodferso1 is now known as rodfersou|lunch
anisha has quit [Client Quit]
ShEmErEy1 has joined #ruby
<aeruder>
Talltree: i use cinch integrated with sinatra to run single-process webserver/irc bot
wrkrcoop has joined #ruby
<bougyman>
aeruder: you just spawn a thread for the web server?
<bougyman>
aeruder: I was interested in doing that with roda on my cinch bot.
<aeruder>
yea, pretty much
<aeruder>
i have a file upload thing and then i just look up the particular bot and have it output the url to the channel
<Talltree>
thats cool
shemerey has joined #ruby
<aeruder>
our irc bot is more or less our way of effing around at work, it has gotten pretty elaborate
dipnlik has quit [Quit: dipnlik]
<bougyman>
same with ours.
<aeruder>
it even plays zork, lol
<bougyman>
I started devving him for #philosophy on efnet but the work one of course has all work-related plugins.
<aeruder>
yea, ours are all "work-related" as well
<bougyman>
and he listens with pry-remote so I can control him whenever.
<bougyman>
but I wanted to throw a few web uis up for him, too.
<aeruder>
like your mom jokes, meme generation, markov bots for everyone in the group so we have a bot that talks like us, etc.
<aeruder>
lol
<Talltree>
ah, if i'm allready active here, what would you guys say is a good method to go over id's
<Talltree>
if i want to open url google.com/1 - google.com/99999
<Talltree>
i have ideas but didnt try yet :D
<bougyman>
(1 .. 99999)
<Talltree>
i just know weird i =+ 1 loops from js
tdy has quit [Ping timeout: 244 seconds]
mhib has joined #ruby
<ghr>
Anyone around familiar with mikel/mail internals? Particularly RE: backslash escaping
<ben______>
Talltree: I think what he is getting at is that (1 .. 99999) will give you the set of numbers you want so you can call an enumberable on that.
Ishido has quit [Remote host closed the connection]
dipnlik has joined #ruby
<Talltree>
ty ben______
<ben______>
np
ddffg has quit [Quit: Leaving]
SeepingN has joined #ruby
plantfood has quit [Quit: Leaving]
rubie has quit [Ping timeout: 252 seconds]
machinewar has joined #ruby
tdy has joined #ruby
reednj_ has joined #ruby
<machinewar>
apeiros: I figured it out. There was a comma after one of my declarations in the initialize function. Had no idea a = 1,2,3,4; a => [1,2,3,4]
<Talltree>
what i still dont get is how to push a value to make an array multidimensional. i have an array 1-10 and wand to add a-j to each, but not via zipping them both together. if i try to push something to num_array by going over each entry i get an error
<Talltree>
because obviously the first value is a string or integer...
nankyokusei has joined #ruby
AnarchyAo has quit [Quit: ircN 8.00 for mIRC (20100904) - www.ircN.org]
<Talltree>
it should be [1, 2, 3, 4, 5]
<Talltree>
and then [[1, "a"], 2, 3, 4, 5]
<Talltree>
or am i thinking about this completly wrong?
Guest57074 has quit [Ping timeout: 264 seconds]
memorasus has joined #ruby
robfrawley has joined #ruby
robfrawley is now known as Guest53026
<apeiros>
Talltree: first step is to understand that there are no multidimensional arrays
<apeiros>
it's just arrays which contain arrays
<apeiros>
and from that follows the rest
<Talltree>
so call to_a first on each?
<apeiros>
what do you expect 1.to_a to return?
nankyokusei has quit [Ping timeout: 276 seconds]
<Talltree>
<insert somme matrix quote about the spoon here>
Couch has quit [Ping timeout: 240 seconds]
zeroDi has joined #ruby
<Talltree>
[1] apeiros
aazsdk has joined #ruby
<apeiros>
it used to exist. but it was removed because consensus was that 1.to_a returning [1] was not reasonable.
<apeiros>
additionally it's easy enough to just do [1] (or [x] with a variable) yourself.
<Talltree>
but there is a prefered method to do it?
<apeiros>
zipping. but you ruled that one out.
<apeiros>
if you want to use push, you must have an array.
d0nn1e has quit [Ping timeout: 260 seconds]
<apeiros>
so another way would be to first map your array of integers to become an array of single-item arrays.
hobodave_ has quit [Quit: Computer has gone to sleep.]
<apeiros>
but I don't know what you try to achieve or why. so useful help is difficult.
d0nn1e has joined #ruby
<Talltree>
its webscraping, i'm thinking about what to do with the data, how to "serialize" it into a good format.
edwinvdgraaf has joined #ruby
davidbug has joined #ruby
<apeiros>
so why zip is out of question?
<Talltree>
and the problem with zipping is that there is maybe one entry missing, messing it up.
davidbug has left #ruby [#ruby]
<apeiros>
and with pushing it'd magically not mess up?
<Talltree>
would be just nil i guess
<Talltree>
mhhh, you got a point, zipping works nicely i guess
millerti has joined #ruby
<Talltree>
does zipping also work if one array is already an array of arrays? adding a third entry on each?
<apeiros>
my point is that whatever would mess up zip would also mess up with pushing. and you should check whether whatever you do to counter the messing up with push could be applied to zip too.
<apeiros>
?try Talltree
<ruby[bot]>
Talltree: Why don't you try it and see for yourself?
<Talltree>
:P
whathappens has joined #ruby
<Talltree>
allright ;)
dminuoso has joined #ruby
<apeiros>
you do know irb and/or pry?
hk238 has joined #ruby
<Talltree>
i'm using rails with the web-console
<apeiros>
meh
<apeiros>
well, your decision
<Talltree>
exactly :)
jpterry has quit [Read error: Connection reset by peer]
<apeiros>
`rails c` for an irb/pry with your rails app loaded
<Talltree>
i can just call pry at the end of the rb right?
<apeiros>
`pry` (after installing the pry gem), or `irb` to start a plain interactive ruby console.
<apeiros>
"at the end of the rb"?
<apeiros>
what's that mean
<Talltree>
ruby file
<apeiros>
you mean in the code?
<apeiros>
no
daffy_duck_2 has quit [Ping timeout: 250 seconds]
<apeiros>
you can write binding.pry, assuming you required pry previously.
<dminuoso>
What is this irb people keep talking about?
<apeiros>
yeah, splat standalone doesn't work so well :)
<dminuoso>
apeiros, I was toying with the thought of implementing a DSL.. wondering whether it was possible to implement a sub-set of C as a DSL in Ruby directly.
<apeiros>
na, only unary methods in ruby are +@, -@, ! and ~
<dminuoso>
Not a problem. I'll just hack parse.y
SteenJobs has joined #ruby
Eiam has quit [Ping timeout: 250 seconds]
<dminuoso>
Though honestly, it's a bit sad apeiros.
<apeiros>
famous last words
<dminuoso>
apeiros, the main problem would be the operators &/*/->
<apeiros>
yeah. I wanted to use stuff like unary *, > etc. too
<dminuoso>
Everything else (from declarations to statements) should be doable.
<dminuoso>
Through some liberal use of method_missing.. :)
ukk has joined #ruby
<matthewd>
Is it really a DSL if you just use ruby+method_missing as a lexer, and parse the result yourself?
sicn has joined #ruby
k3rn31 has quit [Quit: Computer has gone to sleep.]
flashpoint9 has quit [Remote host closed the connection]
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dminuoso>
matthewd, DSL just means its a domain specific language. It's not about the implementation, but the fact that you somehow provide a "new" language solving some problem.
<sicn>
hi, i wonder if some helpful soul wants to help a ruby-noob to go from rails 4.1 to rails 4.2 ;)
flashpoint9 has joined #ruby
<apeiros>
?rails sicn
<ruby[bot]>
sicn: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<sicn>
ah ok, sorry
xrlabs has quit [Quit: Connection closed for inactivity]
<dminuoso>
apeiros, see, I would have had my fun telling him to simply update his Gemfile and pray for the best - and then go grab a pizza.
<Talltree>
apeiros: works if i zip all of them at once, not afterwards :D thanks tho
TomyWork has quit [Ping timeout: 276 seconds]
definiv has joined #ruby
<matthewd>
dminuoso: Literally, sure... but if you're going to apply it to "a sub-set of C", I have to assume the implied implemented-in-existing-language vs parse-something-yourself is a relevant factor to your choice of terminology
jpterry has joined #ruby
justinweiss has joined #ruby
crystal77 has joined #ruby
<dminuoso>
matthewd, well it has to be a sub-set because some things such as blocks I simply cant do.
sicn has quit [Remote host closed the connection]
<dminuoso>
e.g. void f() { stmt; { int a; } }
flashpoint9 has quit [Ping timeout: 244 seconds]
TPug has joined #ruby
<dminuoso>
And I certainly won't be able to provide all required diagnostics either, which requires me to be nitpicky about which parts I want to implement.
rodfersou|lunch is now known as rodfersou
<matthewd>
.. and casting, and (among several others) the above-mentioned operators...
wuyin has quit [Remote host closed the connection]
arnonhongklay has joined #ruby
wuyin has joined #ruby
pawnbox has quit [Remote host closed the connection]
dasher00 has joined #ruby
aryaching has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
MrBusiness2 has quit [Quit: quittin' this]
reednj_ has joined #ruby
k3rn31 has joined #ruby
Spami has joined #ruby
solars has joined #ruby
nebben has quit [Remote host closed the connection]
hipertracker has joined #ruby
reednj_ has quit [Ping timeout: 250 seconds]
da3mon has quit [Quit: Zzzz...]
hipertracker has quit [Client Quit]
elastix has quit [Quit: elastix]
Dev51328 has joined #ruby
nebben has joined #ruby
<baweaver>
Just use Scala then
matp has quit [Ping timeout: 240 seconds]
claudiuinberlin has quit [Remote host closed the connection]
claudiuinberlin has joined #ruby
Dev51328 has left #ruby ["Leaving"]
<dminuoso>
baweaver, why would I do that?
chestnutpie has quit [Quit: Leaving]
symm- has quit [Ping timeout: 240 seconds]
<baweaver>
if you really need static typing, Scala works fine for it.
wrkrcoop has joined #ruby
<dminuoso>
So does crystal. :P
claudiuinberlin has quit [Remote host closed the connection]
<baweaver>
So do a lot of languages. Point being, Ruby is Ruby.
<KrzaQ>
I want to open a process and write to its stdin from a ruby script. What's the best way to do this? It seems possible with Kernel.spawn, but it also seems a little complicated
Madplatypus has quit [Quit: Connection closed for inactivity]
<apeiros>
?best KrzaQ
<ruby[bot]>
KrzaQ: "better" and "best" depend entirely on your context. Try to describe what quality would make one thing better than the other.
crookedTeeth has joined #ruby
<KrzaQ>
:)
<KrzaQ>
s/best/simplest/
<apeiros>
IO.popen is simpler than Kernel#spawn
claudiuinberlin has joined #ruby
<KrzaQ>
Okay, thank you
<KrzaQ>
ah, yeah. It's pretty much exactly what I wanted
xsdg has quit [Ping timeout: 260 seconds]
<apeiros>
spawn is the swiss-army-knife for process invocation. it's what allows you to do almost everything which is possible.
<dminuoso>
KrzaQ, that's because stackoverflow is not the reference manual for Ruby.
pawnbox has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
<apeiros>
and none of exec/system/backticks are for writing to stdin of the spawned process.
ukk has quit [Quit: WeeChat 1.5]
whathappens has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
<dminuoso>
KrzaQ, interestingly, if you had browsed a bit down - you would have gotten a somewhat useful flowchart that would have mentioned popen amongst others.
Rodya_ has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
anisha has joined #ruby
SteenJobs has joined #ruby
marxarelli has joined #ruby
TheHodge has quit [Quit: Connection closed for inactivity]
jobewan has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moneylotion has joined #ruby
jhack has joined #ruby
jaruga___ has joined #ruby
weckl has quit [Read error: Connection reset by peer]
<crookedTeeth>
is it always this quiet in here? and is there a better ruby-related channel?
machinewar has joined #ruby
dviola has joined #ruby
dopamean_ has quit [Quit: WeeChat 1.3]
jaruga___ has quit [Client Quit]
<havenwood>
crookedTeeth: There are a bunch of Ruby-related channels. There's more activity when there're questions.
dopamean_ has joined #ruby
davedev24 has joined #ruby
kobain has joined #ruby
matp has joined #ruby
flashpoint9 has joined #ruby
reednj_ has joined #ruby
sepp2k has joined #ruby
<hanmac>
its about action = reaction, means make noise and you will get a sound XD
bocaneri has quit [Remote host closed the connection]
blackwell has quit [Ping timeout: 244 seconds]
coolboy has quit [Ping timeout: 240 seconds]
ukk has joined #ruby
moneylotion has quit [Ping timeout: 252 seconds]
Caelum has quit [Ping timeout: 250 seconds]
reednj_ has quit [Ping timeout: 244 seconds]
hahuang61 has joined #ruby
dopamean_ has quit [Quit: WeeChat 1.3]
blackwell has joined #ruby
dopamean_ has joined #ruby
coolboy has joined #ruby
elifoster has joined #ruby
cdg has quit [Remote host closed the connection]
mchelen2 has left #ruby [#ruby]
moneylotion has joined #ruby
<crookedTeeth>
Gotcha, thanks for the responses and glad to know people are at least watching the channel :)
dopamean_ has quit [Ping timeout: 240 seconds]
mjuszczak has quit []
<KrzaQ>
I'm not sure if this is within the scope of this channel, but maybe... I'm trying to write a script that reads a password from stdin and then mounts several hdds using cryptsetup. If I do echo "password"|cryptsetup options <- this works. But if I use IO.popen cryptsetup asks for the password interactively anyway. I'm using the array version of the method, and the docs say (no shell)
anisha has quit [Quit: This computer has gone to sleep]
flashpoint9 has quit [Remote host closed the connection]
dminuoso_ has joined #ruby
mjuszczak has joined #ruby
jobewan has joined #ruby
the_drow has quit [Quit: This computer has gone to sleep]
vuoto has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
moneylotion has quit [Ping timeout: 252 seconds]
shemerey has joined #ruby
Rodya_ has joined #ruby
shinnya has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
wrkrcoop has joined #ruby
Dimik has joined #ruby
shemerey has quit [Client Quit]
whathappens has quit [Ping timeout: 244 seconds]
CrazyEddy has joined #ruby
whathappens has joined #ruby
moneylotion has joined #ruby
nando293921 has joined #ruby
nankyokusei has quit [Ping timeout: 265 seconds]
pawnbox has joined #ruby
Caelum has joined #ruby
redpants has joined #ruby
pokalyis has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 250 seconds]
rsampaio_ has quit [Quit: WeeChat 1.5]
rsampaio_ has joined #ruby
pokalyis has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
MrBusiness has joined #ruby
flashpoint9 has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
cgfbee has quit [Excess Flood]
banisterfiend has joined #ruby
barajasfab has quit [Quit: Ex-Chat]
redpants has quit [Ping timeout: 244 seconds]
roberto has joined #ruby
<roberto>
hello
cgfbee has joined #ruby
<roberto>
i'm from venezuela
<roberto>
i want to learn ruby...
arnonhongklay has quit [Read error: Connection reset by peer]
arnonhongklay has joined #ruby
johnmilton has quit [Remote host closed the connection]
flashpoint9 has quit [Remote host closed the connection]
zeroDi has quit [Quit: WeeChat 1.5]
crystal77 has joined #ruby
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vuoto has quit [Remote host closed the connection]
SteenJobs has quit [Quit: SteenJobs]
<apeiros>
roberto: cool. have fun! :)
vuoto has joined #ruby
Regulati_ has quit [Remote host closed the connection]
arashb has joined #ruby
dopamean_ has joined #ruby
geekbri has quit []
<roberto>
apeiros: can you help me? i want to launch something like a front-end window, i hav only a comannd promt, what a miss?
last_staff has joined #ruby
<apeiros>
you need a UI toolkit
<apeiros>
e.g. Tk, Qt, Shoes
<apeiros>
not necessarily in that order
lxsameer has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ngscheurich has joined #ruby
zacts has quit [Quit: WeeChat 1.4]
flashpoint9 has joined #ruby
<roberto>
thanks!
dipnlik has quit [Quit: dipnlik]
Spami has joined #ruby
DsAAzvTVQt has joined #ruby
machinewar has quit [Remote host closed the connection]
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
TheFarmingBunny has joined #ruby
<TheFarmingBunny>
I'm having some issues with my gem in development
<baweaver>
lambdas close over the state when they're defined, which is known as a closure. In that case, adder remembers that x was 5 when it defined the inner lambda.
vuoto has quit [Remote host closed the connection]
<baweaver>
if I had to guess as to why the methods ended up there, it's from tat.
<baweaver>
that*
<johnkpaul>
hmm, I see @baweaver
<johnkpaul>
it makes sense that it would keep a reference to what was passed to it
<johnkpaul>
it’s partial application somehow
hutch34 has joined #ruby
<johnkpaul>
but in my example, test_method was not related to the lambda
<johnkpaul>
it was just defined in the repl
<baweaver>
it also references the current state
whathappens has joined #ruby
<baweaver>
in that case, what you'd just defined
<baweaver>
it's in the same binding
<johnkpaul>
oh, because I _could_ use test_method inside of the lamda
<baweaver>
yeah, that'd be my guess.
<johnkpaul>
it just automatically stores it as private variables?
<johnkpaul>
I see
<johnkpaul>
hmm, I wonder if this is just the real, or ruby
<johnkpaul>
repl
<baweaver>
Not sure entirely, that'd just be what I think it's doing.
<johnkpaul>
got it, thanks @baweaver
<baweaver>
try it in Pry if you want
tyang has quit [Ping timeout: 250 seconds]
redpants has joined #ruby
SteenJobs has quit [Client Quit]
<johnkpaul>
baweaver: I just tried it using the `ruby` executable
<johnkpaul>
and it happens there too
<johnkpaul>
o_O
<johnkpaul>
this is really surprising to me
<baweaver>
jhass may know better than I would, but I still think closures.
<johnkpaul>
I guess procs always store references to methods currently in scope
matp has quit [Remote host closed the connection]
hutch34 has quit [Ping timeout: 250 seconds]
dinoangelov_ has joined #ruby
duderonomy has joined #ruby
dinoangelov has quit [Read error: Connection reset by peer]