SeepingN has quit [Quit: The system is going down for reboot NOW!]
Sh4D0wD_ has quit [Quit: Connection closed for inactivity]
dvinciguerra has joined #ruby
chopin has quit [Remote host closed the connection]
chopin has joined #ruby
hotpanca_ has joined #ruby
jaguarmagenta has quit [Remote host closed the connection]
hotpancakes has quit [Read error: Connection reset by peer]
hutch34 has joined #ruby
beilabs has quit [Read error: Connection reset by peer]
chopin has quit [Ping timeout: 258 seconds]
beilabs has joined #ruby
tdy has quit [Read error: Connection reset by peer]
tdy has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
Axy has quit [Changing host]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GodFather has joined #ruby
hutch34 has quit [Ping timeout: 245 seconds]
Asher has joined #ruby
Anonymoose2 has joined #ruby
eb0t has quit [Quit: WeeChat 1.4]
frozengeek has quit [Quit: frozengeek]
<dminuoso>
Heh. So a partner suggested encrypted email as a secure method to transport a highly sensitive key. I told him to generate the key on the server directly to ensure perfect forward secrecy and he called me a nitpicker for it..
jaguarmagenta has joined #ruby
<Nilium>
Should've told him to start driving to deliver it physically to the machine.
Mia has quit [Ping timeout: 258 seconds]
jaguarmagenta has quit [Remote host closed the connection]
jaguarmagenta has joined #ruby
reverberations has quit [Ping timeout: 250 seconds]
nankyokusei has joined #ruby
<dminuoso>
Heh. Considering that the key has the potential to cause catastrophic damage if leaked, I think perfect forward secrecy is not too much to ask for right? :-)
dvinciguerra has quit [Quit: dvinciguerra]
skweek has quit [Ping timeout: 258 seconds]
<dminuoso>
Though Im not sure whether "no communication at all" exactly satisfies forward secrecy..
tdy has quit [Read error: Connection reset by peer]
eb0t has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
tdy has joined #ruby
jhack has joined #ruby
CloCkWeRX has joined #ruby
bturker has quit [Ping timeout: 256 seconds]
shayan has quit [Quit: shayan]
ecnalyr has quit [Ping timeout: 246 seconds]
jaguarmagenta has quit [Read error: Connection reset by peer]
jaguarmagenta has joined #ruby
sylario has quit [Quit: Connection closed for inactivity]
SteenJobs has joined #ruby
jhack has quit [Quit: jhack]
enilsen16 has quit [Quit: enilsen16]
cyphase has quit [Ping timeout: 246 seconds]
minimalism has quit [Quit: minimalism]
jaguarmagenta has quit [Remote host closed the connection]
ecnalyr has joined #ruby
matp_ has joined #ruby
linduxed has quit [Ping timeout: 260 seconds]
cyphase has joined #ruby
nettoweb has joined #ruby
linduxed has joined #ruby
matp has quit [Ping timeout: 258 seconds]
nettoweb_ has quit [Ping timeout: 246 seconds]
quazimodo has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
raul782 has joined #ruby
dnicole has quit [Remote host closed the connection]
dnicole has joined #ruby
jhack has joined #ruby
raul782 has quit [Remote host closed the connection]
smlocal has quit []
dnicole has quit [Ping timeout: 258 seconds]
minimalism has joined #ruby
raul782 has joined #ruby
splud has quit [Quit: splud]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
cdg has quit [Remote host closed the connection]
Nicmavr has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
saneax is now known as saneax-_-|AFK
Channel6 has joined #ruby
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sneakers has quit [Ping timeout: 256 seconds]
bradleyprice has joined #ruby
enterprisey has joined #ruby
jooni has joined #ruby
ecnalyr has quit [Read error: Connection reset by peer]
agent_white has quit [Quit: agent_white]
agent_white has joined #ruby
ecnalyr has joined #ruby
millerti has joined #ruby
bruce_lee has quit [Read error: Connection reset by peer]
doublemalt_ has joined #ruby
jooni has quit [Quit: Bye]
OTORelic2 has quit [Ping timeout: 250 seconds]
ecnalyr_ has joined #ruby
raul782 has quit [Remote host closed the connection]
Gasher has quit [Quit: Page closed]
doublemalt__ has quit [Ping timeout: 250 seconds]
ecnalyr has quit [Read error: Connection reset by peer]
zoe__ has joined #ruby
zoe__ is now known as zoemeh
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dar123 has joined #ruby
zoe__ has joined #ruby
marxarelli is now known as marxarelli|afk
zoemeh has quit [Ping timeout: 250 seconds]
dar123 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chris2 has joined #ruby
blackbombay has quit [Ping timeout: 265 seconds]
blackbombay has joined #ruby
GodFather has quit [Ping timeout: 252 seconds]
linduxed has quit [Ping timeout: 250 seconds]
linduxed has joined #ruby
maattdd has joined #ruby
raul782 has joined #ruby
gbgdev has joined #ruby
harai_ has quit [Ping timeout: 245 seconds]
d^sh has quit [Ping timeout: 265 seconds]
d^sh has joined #ruby
jhack has quit [Quit: jhack]
hotpancakes has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
hotpanca_ has quit [Ping timeout: 258 seconds]
nadir has quit [Quit: Connection closed for inactivity]
nadir has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
bmurt has joined #ruby
marr has quit [Remote host closed the connection]
bradleyprice has quit [Remote host closed the connection]
bradleyprice has joined #ruby
arescorpio has joined #ruby
Snickers has quit [Quit: Snickers]
bradleyprice has quit [Ping timeout: 258 seconds]
jhack has joined #ruby
hutch34 has joined #ruby
gbgdev has quit [Remote host closed the connection]
jhack has quit [Quit: jhack]
ecnalyr_ has quit [Ping timeout: 258 seconds]
hutch34 has quit [Ping timeout: 245 seconds]
agent_white has joined #ruby
maattdd has quit [Ping timeout: 248 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
Kazlock has joined #ruby
jtdoncas has quit [Ping timeout: 260 seconds]
ascarter has joined #ruby
ecnalyr has joined #ruby
jtdoncas has joined #ruby
nankyokusei has joined #ruby
kuSuSE has joined #ruby
d0nn1e has quit [Ping timeout: 258 seconds]
b0mbnet has joined #ruby
d0nn1e has joined #ruby
grenierm has joined #ruby
raul782 has quit [Remote host closed the connection]
ecksit has joined #ruby
iMadper has joined #ruby
nankyokusei has quit [Ping timeout: 252 seconds]
Guest14755 is now known as IotaSpencer
antoniobeyah has joined #ruby
ruby-lang243 has joined #ruby
ecksit has quit [Client Quit]
ecksit has joined #ruby
<ruby-lang243>
Ola
ruby-lang243 has quit [Client Quit]
b0mbnet has quit [Ping timeout: 260 seconds]
raul782 has joined #ruby
chopin has joined #ruby
optiz0r has quit [Ping timeout: 250 seconds]
ecksit has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<adaedra>
It was just a hardcoded value to change :x
ruby-lang141 has joined #ruby
tk___ has joined #ruby
nadir has joined #ruby
nankyokusei has joined #ruby
johnmilton has joined #ruby
yaw has joined #ruby
<ruby-lang141>
Kind of a basic question. I decided to introduce myself to Ruby for a simple class I'm taking (requiring me to learn something new) and It seems that learning everything will take too long. Rather than do that, I just want to make a small program that will ask the person to input certain key words (such as variable, string, integer) and print an explanation of what they are. It all works well up to the print part, but then the
<ruby-lang141>
how to ask for another input.
<ruby-lang141>
tl;dr ruby noob can't get a program to repeatedly request user input >:(
nankyokusei has quit [Ping timeout: 240 seconds]
<elomatreb>
ruby-lang141: You'll want to use a loop
n008f4g_ has quit [Ping timeout: 260 seconds]
<ruby-lang141>
Figured, I'll do a little bit more investigation and try to get it working before bothering you more >.<
Robtop__ has quit [Read error: Connection reset by peer]
eightbitraptor has quit [Ping timeout: 252 seconds]
etehtsea has joined #ruby
gbgdev has quit [Remote host closed the connection]
Silthias has joined #ruby
Fernando-Basso has joined #ruby
ecnalyr has quit [Read error: Connection reset by peer]
pwnd_nsfw has joined #ruby
Silthias1 has joined #ruby
Cohedrin has joined #ruby
Silthias has quit [Ping timeout: 258 seconds]
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ruby-lang141>
Was using code that wasn't mine, barely knew how it worked. Had 'break' commands which ended the loop x.x
ecnalyr has joined #ruby
dar123 has quit [Ping timeout: 245 seconds]
tyang has joined #ruby
sepp2k has joined #ruby
zapata has joined #ruby
synthroid has joined #ruby
dar123 has joined #ruby
<harfangk>
i was surprised to find that i had to require 'set' to use Set library when it is part of Ruby standard library
<harfangk>
why was the need to require it introduced?
<harfangk>
i'm not blaming - i'm just curious about the rationale and history
etehtsea has quit [Quit: Computer has gone to sleep.]
<toretore>
there are lots of things in the stdlib you have to require
<canton7>
I thought the difference between core and stdlib was that everything in stdlib needed requiring?
tribals has joined #ruby
<tribals>
hi folks
<toretore>
yes, all of what is commonly referred to as stdlib has to be required
<harfangk>
oh so core and stdlib are not identical
<canton7>
That makes sense to me - if everything was automatically required, then the ruby devs wouldn't be able to add new classes to the stdlib for fear of defining a class with the same name as some users
<tribals>
it is safe to mutate enumerable through which iteration performed?
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<toretore>
tribals: not likely
ecnalyr has quit [Ping timeout: 246 seconds]
<harfangk>
tribals not really. try using #map to return a new enum if you need to
ltd_ has quit [Ping timeout: 246 seconds]
<tribals>
why? does iteration order change? or what?
ltd has joined #ruby
ponga has joined #ruby
siseko has joined #ruby
hahuang62 has joined #ruby
Mia has joined #ruby
bradleyprice has joined #ruby
SteenJobs has joined #ruby
SesMan has joined #ruby
bmurt has joined #ruby
c355e3b has joined #ruby
hahuang62 has quit [Ping timeout: 240 seconds]
ecnalyr has joined #ruby
SpiffTR has quit [Quit: Leaving.]
bradleyprice has quit [Ping timeout: 258 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
etehtsea has joined #ruby
jdawgaz has joined #ruby
GodFather has quit [Ping timeout: 256 seconds]
<harfangk>
i haven't tested what happens if i delete elements of array left and right of iterator
<harfangk>
but i find it easier to reason about something when it doesn't change
SteenJobs has quit [Read error: Connection reset by peer]
SteenJobs has joined #ruby
<kke>
a template language such as handlebars with a pure ruby parser with minimal dependencies?
SpiffTR has joined #ruby
SpiffTR has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
SpiffTR1 has joined #ruby
jaguarmagenta has joined #ruby
Salih has joined #ruby
pawnbox has joined #ruby
jhack has joined #ruby
<kke>
maybe liquid
trout has quit [Quit: found 1 in /dev/zero]
bayed has joined #ruby
SpiffTR1 has quit [Quit: Leaving.]
bradleyprice has joined #ruby
pragmaticus has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
bigkevmcd has joined #ruby
etehtsea has quit [Quit: Computer has gone to sleep.]
rodferso1 is now known as rodfersou|lunch
ruby-lang141 has quit [Quit: Page closed]
GodFather has joined #ruby
TvL2386 has joined #ruby
andikr has quit [Remote host closed the connection]
bradleyprice has quit [Ping timeout: 245 seconds]
reverberations has joined #ruby
e1z0__ has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
lxsameer has quit [Quit: WeeChat 1.6]
ldnunes has quit [Ping timeout: 252 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
reverberations has quit [Ping timeout: 258 seconds]
nyuszika7h has quit [Quit: WeeChat 1.6]
ramortegui has quit [Quit: Ex-Chat]
nyuszika7h has joined #ruby
god has joined #ruby
pawnbox has joined #ruby
god has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
reverberations has joined #ruby
Anonymoose2 has quit [Ping timeout: 258 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fmcgeough has quit [Quit: fmcgeough]
Silthias has joined #ruby
southeastpaw has quit [Quit: Leaving]
rwb has quit [Ping timeout: 240 seconds]
Silthias1 has quit [Ping timeout: 258 seconds]
boombox_ has joined #ruby
Anonymoose2 has joined #ruby
sepp2k has quit [Quit: Leaving.]
reverberations has quit [Ping timeout: 258 seconds]
pawnbox has quit [Ping timeout: 246 seconds]
cibs has quit [Ping timeout: 268 seconds]
rrawlins has joined #ruby
lmc_ has joined #ruby
cibs has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
antoniobeyah has joined #ruby
hightower2 has joined #ruby
boombox_ has quit [Remote host closed the connection]
M-shine has quit [Quit: Client limit exceeded: 5000]
lmc has quit [Killed (verne.freenode.net (Nickname regained by services))]
lmc_ is now known as lmc
Anonymoose2 has quit [Ping timeout: 268 seconds]
Salih has quit [Quit: Leaving]
lmc_ has joined #ruby
Silox| has joined #ruby
tyang__ has joined #ruby
Snickers has joined #ruby
rodfersou|lunch is now known as rodfersou
beilabs has quit [Remote host closed the connection]
yaw has joined #ruby
tyang has quit [Ping timeout: 250 seconds]
OTORelic2 has joined #ruby
cibs has quit [Ping timeout: 268 seconds]
izaac_ has quit [Ping timeout: 248 seconds]
cibs has joined #ruby
izaac_ has joined #ruby
teclator has joined #ruby
ishe_ua has quit [Read error: No route to host]
banisterfiend has joined #ruby
rrawlins_ has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
blackwind_123 has joined #ruby
arknemona has joined #ruby
<arknemona>
how do I work with functions as variables in ruby?
<arknemona>
I want my method to return another method and then have the caller calling it with some arguments if the returned method is not nil
<Papierkorb>
arknemona: Use a Proc, you can construct them e.g. through a stabby lambda
<adaedra>
Functions are not storable as values
rrawlins has quit [Ping timeout: 252 seconds]
jdawgaz has joined #ruby
<adaedra>
However, you have Proc, Method, UnboundMethod objects which can proxy them
jdawgaz has quit [Client Quit]
banisterfiend has quit [Client Quit]
<toretore>
?xy arknemona
<ruby[bot]>
arknemona: it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
johnny56_ has joined #ruby
<arknemona>
there's no frustration involved, I got the exact answer I wanted
tyang__ has quit [Read error: Connection reset by peer]
<arknemona>
thanks adaedra, Papierkorb
stamina has quit [Quit: WeeChat 1.6]
ocbtec has joined #ruby
rrawlins has joined #ruby
jdawgaz has joined #ruby
lmc_ has quit [Quit: bye]
shayan has joined #ruby
SteenJobs has joined #ruby
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
shayan has quit [Client Quit]
jhack has quit [Ping timeout: 240 seconds]
rrawlin__ has joined #ruby
aufi has quit [Quit: Leaving]
rrawlins_ has quit [Ping timeout: 258 seconds]
beilabs has joined #ruby
shayan has joined #ruby
rrawlins has quit [Ping timeout: 256 seconds]
jhack has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
Devalo has joined #ruby
aryaching has quit [Ping timeout: 264 seconds]
zacts has quit [Quit: WeeChat 1.6]
jaruga___ has quit [Quit: jaruga___]
brent__ has joined #ruby
axisys has quit [Quit: leaving]
axisys has joined #ruby
blackbombay has quit [Ping timeout: 250 seconds]
teclator has quit [Remote host closed the connection]
gigetoo has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
chouhoulis has joined #ruby
Lucky_ABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
synthroid has joined #ruby
tyang has joined #ruby
gigetoo has joined #ruby
deadnull has quit [Quit: Bye]
mjuszczak has joined #ruby
synthroi_ has quit [Ping timeout: 248 seconds]
antoniobeyah has joined #ruby
SteenJobs has quit [Quit: SteenJobs]
Devalo_ has joined #ruby
jgpawletko has joined #ruby
doberman has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
maattdd has quit [Ping timeout: 268 seconds]
shayan has quit [Quit: shayan]
Devalo has quit [Ping timeout: 250 seconds]
MrPomas has quit [Remote host closed the connection]
sonicspin has quit [Ping timeout: 240 seconds]
MrPomas has joined #ruby
brendan- has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
nowz has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
LuckyABA has joined #ruby
nankyokusei has joined #ruby
MrPomas has quit [Ping timeout: 252 seconds]
tercenya has quit [Remote host closed the connection]
tercenya has joined #ruby
nankyokusei has quit [Ping timeout: 260 seconds]
ocbtec has quit [Quit: leaving]
millerti has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
amclain has joined #ruby
rrawlins has joined #ruby
Brak__________ has joined #ruby
matp_ has joined #ruby
matp has quit [Read error: Connection reset by peer]
jsrn_ has quit [Quit: Leaving]
<Brak__________>
hey complete noob question, im trying to print out an array of objects in an erb template but im not sure how to access the object props within the loop
<doberman>
Brak__________: having hard time understand you, could you explain
<Brak__________>
<%= @item.property %> gives me an "undefined method 'property' for ..." error
<manveru>
try it with item.property
<Brak__________>
I have that wrapped in a for in loop
chouhoulis has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 248 seconds]
rrawlin__ has quit [Ping timeout: 258 seconds]
<Brak__________>
I'll make a paste
dar123 has quit [Read error: Connection reset by peer]
chouhoulis has joined #ruby
<manveru>
<% items.each do |item| %>item: <%= item.name %><% end %>
tercenya has quit [Remote host closed the connection]
<apeiros>
shadeslayer: that does not highlight how it'd be different from a normal hash…
tercenya has joined #ruby
<shadeslayer>
true
<shadeslayer>
let me figure out how exactly this should work :P
<apeiros>
that's *usually* a good idea before asking a question :-p
<shadeslayer>
apeiros: oh right, so h['a'][0] should get you ['b', 'foo']
<shadeslayer>
instead of just 'b'
<apeiros>
and before executing line 4?
h1fuelcell has quit [Remote host closed the connection]
<shadeslayer>
then only 'b'
h1fuelcell has joined #ruby
<apeiros>
honestly, that sounds like a terrible API
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros>
once a scalar, once an array…
<shadeslayer>
so h['a'][1] would be ['c']
<apeiros>
why not ['b']?
<apeiros>
then it'd at least stay consistent
<shadeslayer>
because each element could be a key unto itself
<apeiros>
your example still hasn't shown/explained that
axl_ has joined #ruby
axl_ has quit [Client Quit]
dar123 has quit [Read error: Network is unreachable]
<apeiros>
but I think I can safely answer your initial question: no, there's nothing like this in stdlib. it's not exactly a common problem you're trying to solve :)
shayan has quit [Quit: shayan]
jtdoncas has joined #ruby
claudiuinberlin has joined #ruby
alexar has joined #ruby
beilabs has quit [Remote host closed the connection]
h1fuelcell has quit [Ping timeout: 264 seconds]
banisterfiend has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jackneill_ has quit [Remote host closed the connection]
ych has quit [Max SendQ exceeded]
whathappens has joined #ruby
ironcame1 is now known as ironcamel
alexar has quit [Read error: Connection reset by peer]
reverberations has joined #ruby
benlieb has quit [Quit: benlieb]
mjuszczak has quit [Ping timeout: 248 seconds]
alexar has joined #ruby
johnmccabe_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shadeslayer>
apeiros: see insert and get :)
lenwood has joined #ruby
ecnalyr has quit [Ping timeout: 250 seconds]
ddffg has quit [Quit: Leaving]
muelleme has joined #ruby
tau has joined #ruby
<apeiros>
shadeslayer: so you implemented what you need?
whathapp_ has joined #ruby
whathappens has quit [Read error: Connection reset by peer]
whathappens has joined #ruby
whathappens has quit [Client Quit]
ecnalyr has joined #ruby
tercenya has quit [Remote host closed the connection]
h1fuelcell has joined #ruby
tercenya has joined #ruby
mwlang has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
whathapp_ has quit [Ping timeout: 256 seconds]
tens0r has joined #ruby
d10n-work has joined #ruby
h1fuelcell has quit [Ping timeout: 252 seconds]
tristanp has quit []
Anonymoose2 has joined #ruby
blackbombay has joined #ruby
fullofcaffeine has joined #ruby
tens0r has quit [Read error: No route to host]
tens0r has joined #ruby
reverberations has quit [Ping timeout: 250 seconds]
jhack has quit [Quit: jhack]
blackwind_123 has quit [Ping timeout: 250 seconds]
tildes has joined #ruby
<shadeslayer>
apeiros: yes
blackbombay has quit [Ping timeout: 268 seconds]
muelleme has quit [Ping timeout: 256 seconds]
<shadeslayer>
pretty trivial once I wrapped my head around it
blackwind_123 has joined #ruby
johnmilton has quit [Remote host closed the connection]
shayan has quit [Quit: shayan]
tvw has quit [Ping timeout: 246 seconds]
manjaro-kde5- has joined #ruby
lenwood has quit [Remote host closed the connection]
hahuang65 has joined #ruby
rakm has joined #ruby
mt_ has joined #ruby
rakm has quit [Client Quit]
govg has joined #ruby
shayan has joined #ruby
Gravious has quit [Ping timeout: 250 seconds]
alexar has quit [Read error: Connection reset by peer]
rakm has joined #ruby
vuoto has joined #ruby
ryan_notabot has joined #ruby
siseko has left #ruby [#ruby]
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ryan_notabot has quit [Read error: Connection reset by peer]
<apeiros>
shadeslayer: cool. I still don't really get what you're doing, or why. but it works for you, so that's sufficient :)
ryan_notabot has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
Luca[m] has quit [Quit: Client limit exceeded: 5000]
konsolebox has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dasher00 has quit [Ping timeout: 260 seconds]
ldnunes has quit [Quit: Leaving]
blackbombay has joined #ruby
synthroi_ has joined #ruby
b_penguin has joined #ruby
alexar has joined #ruby
DexterLB has left #ruby ["So long and thanks for all the fish"]
synthroid has quit [Ping timeout: 250 seconds]
jcao219 has quit [Ping timeout: 245 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
blackbombay has quit [Ping timeout: 268 seconds]
claudiuinberlin has quit []
conta has joined #ruby
johnmilton has joined #ruby
ecnalyr has quit [Ping timeout: 258 seconds]
Rutix has quit []
jdawgaz has joined #ruby
JakFrist[WVU] has joined #ruby
pwnd_nsfw has joined #ruby
baconoverflow_ has joined #ruby
symm has quit [Ping timeout: 268 seconds]
ecnalyr has joined #ruby
ecnalyr has quit [Client Quit]
Robtop__ has quit [Ping timeout: 240 seconds]
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dasher00 has joined #ruby
johnmilton has quit [Remote host closed the connection]
Silthias1 has quit [Ping timeout: 248 seconds]
enilsen16 has joined #ruby
Klumben has quit [Ping timeout: 258 seconds]
jt__ has joined #ruby
tercenya has quit [Remote host closed the connection]
Kazlock has joined #ruby
tercenya has joined #ruby
Cohedrin has joined #ruby
TPug has joined #ruby
Silthias has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
hahuang61 has joined #ruby
apneic has joined #ruby
fullofcaffeine has joined #ruby
Klumben has joined #ruby
haxrbyte has joined #ruby
vuoto has quit [Remote host closed the connection]
Rutix has joined #ruby
Rutix has quit [Changing host]
Rutix has joined #ruby
chouhoul_ has joined #ruby
manjaro-kde5- has quit [Ping timeout: 258 seconds]
Silthias has quit [Ping timeout: 258 seconds]
wrkrcoop has joined #ruby
fullofcaffeine has quit [Ping timeout: 245 seconds]
chouhou__ has joined #ruby
<wrkrcoop>
i dont understand the decorator pattern. if i have 10 pizzas, instead of making 10 classes, why don’t i just pass in the toppings as an argument to the constructor??
JakFrist[WVU] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mwlang has quit [Quit: mwlang]
<wrkrcoop>
does that make it a decorator? no right?
Silthias has joined #ruby
arknemona has joined #ruby
skweek has joined #ruby
tfitts has joined #ruby
chouhoulis has quit [Ping timeout: 264 seconds]
cdg has joined #ruby
wrkrcoop has quit [Quit: wrkrcoop]
chouhoul_ has quit [Ping timeout: 252 seconds]
wrkrcoop has joined #ruby
symm has joined #ruby
czerasz has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
JakFrist[WVU] has joined #ruby
<havenwood>
wrkrcoop: Nope, that wouldn't be a decorator. Take a look at Forwardable and Delegator in the stdlib for some inspiration.
<havenwood>
wrkrcoop: Try using those ^ then return to the question.
<wrkrcoop>
k
rodfersou has quit [Quit: leaving]
<wrkrcoop>
havenwood: so a decorator inherts then overrides a method?
johnmccabe has joined #ruby
matugm has quit [Ping timeout: 268 seconds]
fullofcaffeine has joined #ruby
<arknemona>
decorator decorates a method
sepp2k has joined #ruby
<wrkrcoop>
is docrating a method the same thing as overrriding it?
<arknemona>
generally speaking a decorator is a method A that wraps the method B, doing some stuff to the input and then returning the method B with the new input
<wrkrcoop>
with that explnaation the example in SimpleDelegator makes a lot fsense
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jhack has joined #ruby
<arknemona>
question: is there syntax sugar for python-like decorators in ruby?
dayd has joined #ruby
codfection has quit [Remote host closed the connection]
nankyokusei has quit [Ping timeout: 268 seconds]
Devalo has quit [Remote host closed the connection]
Devalo has joined #ruby
<arknemona>
wrkrcoop keep in mind that the concept of decorator involves returning the decorated function, not the result itself
<wrkrcoop>
arknemona: what really?
wrkrcoop has quit [Quit: wrkrcoop]
wrkrcoop has joined #ruby
wrkrcoop has quit [Client Quit]
charliesome has joined #ruby
arknemona has quit [Quit: SALETKEESYRAFLO]
pragmaticus has quit [Remote host closed the connection]
quazimodo has joined #ruby
matp has quit [Quit: ZZzzzZz...]
Devalo has quit [Ping timeout: 245 seconds]
shayan has quit [Quit: shayan]
Kazlock has joined #ruby
tenderlove has quit [Ping timeout: 258 seconds]
matugm has joined #ruby
matugm has quit [Changing host]
matugm has joined #ruby
fullofcaffeine has quit [Remote host closed the connection]
johnmccabe_ has joined #ruby
<doberman>
i'm about to KMS... compiling ruby with --with-rubysitearchdir=/usr/local/lib64/ruby/site_dir but it still puts sitearch and vendorarch into /usr/lib64/x86_64-linux-gnu/ruby/ (values not hardcoded, just resolved for you)
<quazimodo>
how on earth do I test the ruby repo after make without doing make install?
<doberman>
do you mean ruby itself?
<doberman>
like the cruby code?
h1fuelcell has joined #ruby
<quazimodo>
i did "make DESTDIR=/tmp/stage install" with /tmp/stage set up for chroot. But after chrooting in and going to /usr/local/bin and doing ./ruby (which is there and is an executable binary file) i get bash: ./ruby: No such file or directory
<quazimodo>
so.. yeah how do i run the ruby i just compiled with make
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nadir has quit [Quit: Connection closed for inactivity]
<Synthead>
quazimodo: why not just run /tmp/stage/usr/local/bin/ruby?
<quazimodo>
from <internal:gem_prelude>:4:in `<internal:gem_prelude>'
<Synthead>
quazimodo: have you compiled/installed rubygems to /tmp/stage as well?
hotpancakes has quit []
jcao219 has joined #ruby
TPug has joined #ruby
<Synthead>
maybe you have an rc file somewhere that's trying to load a gem?
<Synthead>
ruby should run without rubygems
<quazimodo>
hrm I don't know?
<quazimodo>
still don't understand why chroot is acting that way though
davidt has joined #ruby
<Synthead>
quazimodo: when you compile ruby, unless you went off on your own beaten path, it uses your system libs and compiles against them
<Synthead>
so it's probably not finding those libs
<Synthead>
run ldd /tmp/stage/usr/local/bin/ruby
<Synthead>
it'll show you what's linked
<Synthead>
since chroot is an "isolated" environment, you likely don't have those libs in your /tmp/stage chroot, hence the error
h1fuelcell has quit [Ping timeout: 252 seconds]
<Synthead>
if you have strace in your chroot, you can run strace on it to see if that's what's causing it
<Synthead>
if you have ldd in your chroot, you'll probably see broken links when running it against your ruby in the chroot
<quazimodo>
Synthead: i haven't done c programming in 8 years
<quazimodo>
i totally forgot the linking
<Synthead>
:)
<Synthead>
you can statically link your ruby executable, but it'll bloat it
<quazimodo>
it'll run though
<quazimodo>
right
<Synthead>
eh
<Synthead>
I mean
<Synthead>
the error you're getting (rubygem stuff) is an error from ruby
<Synthead>
chances are, if you statically link it or do whatever you need to do to overcome the missling links, you'll just hit that same error in the chroot
<quazimodo>
that's when it's not in chroot, so that's fine
<quazimodo>
ok
<quazimodo>
so
<quazimodo>
i guess i'd need to compile it in the chroot environment
<Synthead>
you'll probably still see the error
fullofcaffeine has quit [Remote host closed the connection]
<quazimodo>
ok, let's forget that
<Synthead>
what's the question?
<quazimodo>
i'm gonna go figure out how ruby-install works and try to turn it into a distributed version
chopin_ has joined #ruby
<quazimodo>
oh, i just wanted to compile and run the ruby
<Synthead>
oh ok
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Synthead>
you might also consider working in a docker container
<Synthead>
also, look into ccache if you're not already using it
Kazlock has joined #ruby
rwb has joined #ruby
nettoweb has joined #ruby
blackbombay has joined #ruby
antoniobeyah has quit [Quit: antoniobeyah]
chopin has quit [Ping timeout: 248 seconds]
<Synthead>
good luck :)
antoniobeyah has joined #ruby
<quazimodo>
thanks mate :)
synthroid has joined #ruby
shayan has quit [Quit: shayan]
malconis has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
mjago has joined #ruby
charliesome has joined #ruby
enilsen16 has quit [Quit: enilsen16]
synthroi_ has quit [Ping timeout: 245 seconds]
s2013 has joined #ruby
fullofcaffeine has joined #ruby
blackbombay has quit [Ping timeout: 246 seconds]
enilsen16 has joined #ruby
charliesome has quit [Ping timeout: 240 seconds]
SpiffTR has quit [Quit: Leaving.]
GodFather has joined #ruby
matp has joined #ruby
<havenwood>
quazimodo: What do you mean by "distributed version?" Do you mean you can move the Ruby around or something else?
<havenwood>
quazimodo: yell if you have any ruby-install-related questions!
<Synthead>
any thoughts on my net-ssh question? :)
<havenwood>
quazimodo: if you do mean being able to move the Ruby, ruby-install --latest ruby -- --enable-shared
<havenwood>
quazimodo: --enable-shared does the trick
lxsameer has quit [Quit: WeeChat 1.6]
<doberman>
Synthead: what key do you use?
<Synthead>
an RSA key
Cohedrin has joined #ruby
<antoniobeyah>
Synthead: from reading the docs it doesn’t sound to me like that prevents password auth, only that it will *not* use keys from your ssh agent
<doberman>
make sure you point to private key in your config, process has access to key file, and public key added into ssh authorized_keys key on server
<Synthead>
I can log into the server from my linux system just fine
<Synthead>
using the user and key
<Synthead>
the keys array contains a string value of the key used to log into the server
<Synthead>
hm
dnicole has quit [Remote host closed the connection]
<antoniobeyah>
Synthead: are you able to look at the server logs to see if it is just failing auth and defauling back to password auth?
<Synthead>
you know, I haven't
dnicole has joined #ruby
<Synthead>
this is pretty obviously used as part of a project, and the processes that use this has been failing
<antoniobeyah>
oh, it looks like you can also make it verbose
<Synthead>
I'll check that!
<Synthead>
oh yeah?
<antoniobeyah>
yeah, verbose: :debug looks like a thing
Sammichmaker has quit [Ping timeout: 240 seconds]
<antoniobeyah>
to the .start method
dnicole_ has joined #ruby
djbkd has quit [Quit: My people need me...]
<Synthead>
let me try it
<Synthead>
that's a great idea
berndl has joined #ruby
dnicole has quit [Ping timeout: 258 seconds]
dnicole_ has quit [Ping timeout: 258 seconds]
<berndl>
Is there a way to define an instance of a class without using .new?
<berndl>
I know you can do this with certain classes like Rational and Vector.
Ropeney has joined #ruby
<antoniobeyah>
berndl: not really, you could use .allocate but it wouldn’t do anything
<antoniobeyah>
?xy
<ruby[bot]>
it seems like you are asking for a specific solution to a problem, instead of asking about your problem. This often leads to bad solutions and increases frustration for you and those trying to help you. More: http://meta.stackexchange.com/a/66378
Kazlock has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tekeli-li has joined #ruby
<havenwood>
Singleton.instance
<doberman>
havenwood: singleton is single instance of class
<havenwood>
doberman: I know what it is. I was pointing it out as an example of a Class not having a ::new.
<berndl>
Yeah, but it uses .instance, which is just as bad.
<havenwood>
Why is that bad?
<havenwood>
berndl: What is it you want?
gbgdev_ has joined #ruby
<berndl>
I want something like Rational.
dionysus69 has quit [Ping timeout: 260 seconds]
<havenwood>
berndl: I showed you one way above. There are many ways.
<berndl>
havenwood: using an alias?
davidt_ has joined #ruby
biberu has quit []
gbgdev has quit [Ping timeout: 260 seconds]
<havenwood>
berndl: Yup, you could alias to whatever you want then remove the original. Or implement class yourself. Or... whatever else you'd like to do! If you're just playing try starting with a module and making your own class that has a class method in place of new that calls an instance variable in place of initialize.
synaps3 has joined #ruby
synaps3 has quit [Max SendQ exceeded]
tercenya has quit []
madsa has quit [Ping timeout: 250 seconds]
<berndl>
I guess having a wrapper method is the cleanest solution for now.
madsa has joined #ruby
rwb has quit [Remote host closed the connection]
nikivi has quit [Quit: zzz]
<havenwood>
berndl: Or another thing you'll see in Ruby is a method posing as a class. Consider the following:
MrPomas has quit [Remote host closed the connection]
<z64>
man, that tagline.. "unless you want to become a maintenance programmer"
<havenwood>
z64: FUD! ;-)
MrPomas has joined #ruby
<z64>
is that really fair lol?
<havenwood>
z64: nope, ha
<z64>
:D
<doberman>
o_O, okay Im going to rethink my world
nankyokusei has joined #ruby
bradleyprice has joined #ruby
<berndl>
Aren't most programmers maintenance programmers?
<z64>
i've been really excited about crystal. it's early, but, man i think it's really cool.
xrlk has joined #ruby
<berndl>
Crystal == typed Ruby ?
<ytti>
ruby inspired LLVM backed
<havenwood>
berndl: Crystal is much, much closer to Ruby than Elixir, but still a different language.
<z64>
compiled + strongly typed. (but you still have inference where it can)
symm_ has joined #ruby
nettoweb has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<berndl>
Nice.
<havenwood>
Matz is one of the larger monetary contributors to Crystal
jcao219 has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ytti>
simple programs are usually quite easy to translate to crystal
symm has quit [Ping timeout: 265 seconds]
nankyokusei has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
<z64>
the site provides a good overview, and the blogs are an interesting read as well at the bottom for the ruby v crystal stackup: https://crystal-lang.org/
<ytti>
i had statistics problem which was too hard for me, i wrote monte carlo simulator for it, but it was too slow, didn't take me 30min to translate it to crystal
<ytti>
it's important to compile with release flag, otherwie performance is pretty bad
pawnbox has quit [Remote host closed the connection]
<berndl>
I really like Ruby syntax. Way better than PHP, which is what I have to deal with at work.
tvw has joined #ruby
<z64>
berndl: i am sorry
<ytti>
PHP is horrible, OO languages offer nice name space for methods naturally
<antoniobeyah>
hmm, might have to checkout elixir for my upcoming project. had looked it it a while back but that link is compelling
<ytti>
so finding the method you need is easy
lmc_ has joined #ruby
johnmccabe has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ytti>
elixir really has nothing to do with ruby, 5s look might give impression that you can somehow leverage ruby experience on it, but you can't
jenrzzz has quit [Ping timeout: 265 seconds]
<ytti>
you still need to 'get' functional programming
frozengeek has quit [Quit: frozengeek]
nullobject has joined #ruby
<ytti>
which is the largest difficulty in my experience
<z64>
yeah. i've been trying to pick up haskell.. for quite some time now :I
frozengeek has joined #ruby
<berndl>
Nah, that's easy.
<antoniobeyah>
yeah I don’t expect that, just a better alternative to clojure for me ;)
<antoniobeyah>
clojure I just don’t get
<antoniobeyah>
elixir seems a bit more approachable
manjaro-kde5- has quit [Ping timeout: 260 seconds]
lmc has quit [Ping timeout: 250 seconds]
<berndl>
I like the ontology of the Haskell libraries.
hutch34 has quit [Quit: WeeChat 1.5]
nadir has joined #ruby
<z64>
i think everything haskell is cool af lol. i'm in #haskell, read it all the time even though i don't get any of it.
<antoniobeyah>
lol
ryan_notabot has quit [Ping timeout: 250 seconds]
brent__ has quit [Quit: Connection closed for inactivity]
antoniobeyah has quit [Quit: antoniobeyah]
jenrzzz has joined #ruby
OTORelic2 has quit [Ping timeout: 265 seconds]
Jayson_Virissimo has joined #ruby
nullobject has quit [Quit: WeeChat 1.5]
<z64>
ytti: *lowkey follow on github* cool stuff :)
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<doberman>
okay folks its time for me to go home, and relax watching netflix, cya later
<z64>
o/
aryaching has joined #ruby
doberman has quit [Quit: Page closed]
sdothum has joined #ruby
jhack has quit [Quit: jhack]
Joufflu_ has quit [Quit: Leaving]
nullobject has joined #ruby
Kazlock has joined #ruby
mt_ has quit [Ping timeout: 240 seconds]
dnicole has joined #ruby
konsolebox has quit [Quit: Leaving]
lmc_ has quit [Remote host closed the connection]
lmc has joined #ruby
frozengeek has quit [Quit: frozengeek]
<tekeli-li>
aww, all the cool kids are leaving :(
frozengeek has joined #ruby
<z64>
i'll have you know, i've been freezing in my office all day :(
ryan_notabot has joined #ruby
<berndl>
z64: Are you in Canada?
<z64>
nooo haha. massachusetts.
griffindy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<berndl>
I have some colleagues from Winnipeg telling me it was -32 Celsius yesterday.
<z64>
lol no ty
<berndl>
I think that's awesome.
dnicole has quit [Ping timeout: 258 seconds]
<z64>
whats the climate like where you are? i've been living with the new england weather for the 23 years of my life and am ready to move south now. xD
<berndl>
I live in Berlin. It's 2 degrees outside.
lmc has quit [Ping timeout: 260 seconds]
sepp2k has quit [Quit: Leaving.]
<z64>
ahhh
<berndl>
I've lived in the tropics most of my life. I'm ready to move norht.
<berndl>
*north.
<berndl>
I guess Berlin is fairly north already.
<z64>
yeah. it was about that cold today. i don't mind it, but my office is poorly heated.. not good for typing fingers
naprimer_2 has joined #ruby
benlieb has quit [Quit: benlieb]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti>
yeah it's not tropic for sure :>
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
naprimer has quit [Read error: Connection reset by peer]
<ytti>
it's 4c outside, and i ran out of heating oil last week
ryan_notabot has quit [Ping timeout: 250 seconds]
<ytti>
can't be arsed to buy more as i'm moving this weekend
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
shayan has quit [Quit: shayan]
TPug has joined #ruby
face has quit [Read error: Connection reset by peer]
face has joined #ruby
jdawgaz has joined #ruby
sdothum has joined #ruby
pwnd_nsfw` has joined #ruby
<tekeli-li>
What is meant by "Symbols are not lightweight Strings"? As I understand the example, it shows that two string literals are unique objects even though they contain the same text.
<tekeli-li>
berndl, Not a ruby expert, but in some languages only one copy of simple atoms is kept in memory, and all references point to that single instance.
<z64>
well i think that makes sense, no? a string object is mutable, where.. what would you mutate an integral to? it would just be *another* integral
<havenwood>
berndl: How would you modify 1 itself? What would unfreezing it mean?
<berndl>
havenwood: How would you modify '' itself?
hi-from-velope-o has quit [Remote host closed the connection]
<berndl>
'stuff' and '' are different, just like 1 and 2 are different.
<tekeli-li>
havenwood, Thanks for the informative answer. Hope my appreciation for it will deepen as I learn more. :)
<z64>
right. but the containers for that string data aren't constant (yet, i believe)
<havenwood>
berndl: The first empty string is being mutated. It's the same string it was, starting at the same place in memory, just with different content.
<berndl>
So basically this is a ruby idiosyncracy.
TPug has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
berndl: As you shovel onto a string it will grow as it passes its initial bounds.
<z64>
eventually all string literals will be frozen in 3.X
<z64>
if i remember right
<havenwood>
berndl: Well, strings are mutatable in Ruby. In Ruby 3 they'll be frozen.
<havenwood>
mutable*
<berndl>
That's good.
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<berndl>
It bugs me when low-level details like the memory model leak into the language constructs.
<havenwood>
berndl: It's not a leak. Some things are mutable and some are immutable.
BrianJ has joined #ruby
<berndl>
But mutability is defined in terms of memory.
Asher has joined #ruby
h1fuelcell has quit [Ping timeout: 250 seconds]
reverberations has joined #ruby
<havenwood>
berndl: Sometimes you need to care about memory. For example, Ruby 2.4 lets you set the initial capacity for a String so as it grows it doesn't have to keep expanding its bounds.
<berndl>
If I need to care about memory, I'd switch to a systems language like C.
<havenwood>
berndl: This way you don't have to.
<havenwood>
berndl: It works in the simple case, and there are tools to make it also work for heavy lifting. You don't have to know about them but they're there.
<berndl>
I understand. I just don't like it though.
matp has quit [Read error: Connection reset by peer]
polishdub has quit [Quit: Leaving]
<havenwood>
Here's another trick with frozen strings, just for fun: