colegatron_origi has quit [Remote host closed the connection]
que has joined #ruby
<que>
h2s = YAML.load_file('h2s.yml') puts h2s can i load it in different way ? i got here asd => jk59 dd => jk59 i would like to have jk59 => dd, asd is there a way to change it like that ?
<Ox0dea>
p1k: Not once they're BigDecimals. Are you sure you need to differentiate between them?
<que>
`derpy: yeah i tried that, but i have only one value in jk59 for example
<p1k>
0x0dea: I can probably work around it but yeah it would be preferable
<adaedra>
`derpy is just a bot, que
<que>
xD
<que>
my bad
<Ox0dea>
You're not evil, just inattentive. :p
Xeago has quit [Read error: Connection reset by peer]
<adaedra>
It's alright, the given attention warms its little robotic heart.
Ropeney has joined #ruby
<Ox0dea>
p1k: Well, BigDecimal('4.5000') strips the superfluous trailing digits, and I don't see a way to get them back without getting your hands really dirty.
<Ox0dea>
It's conceivably possible to get hold of the String from which a BigDecimal was constructed, but... why?
<p1k>
0x0dea: it's significantly different though
<p1k>
if i have 4.5000 my calculation has a different precision then 4.50
<p1k>
I suppose it's possible to set @precision on the initializer (would have to be updared on .round calls though)
<p1k>
I'm not sure why they decided to strip 0's by default tbh, e.g. python's decimal.Decimal does not
tvw has quit [Remote host closed the connection]
blackmesa has joined #ruby
<que>
puts hash.rassoc("jk59") should print out values right ?
clorisu has quit [Ping timeout: 250 seconds]
Chagel has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
<que>
ok figure it out
<que>
sorry for mess :P
<que>
thx guys
tvw has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
blt has quit [Ping timeout: 260 seconds]
ferr has joined #ruby
LoneHermit has joined #ruby
nerium has joined #ruby
Xeago has joined #ruby
danielwzd has quit [Quit: Leaving]
que has quit [Quit: Page closed]
mhoungbo has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
LoneHermit has quit [Ping timeout: 246 seconds]
bluOxigen has joined #ruby
Chagel has joined #ruby
htmldrum has joined #ruby
htmldrum_ has joined #ruby
duncannz has quit [Remote host closed the connection]
Snowy has joined #ruby
blt has joined #ruby
marr has joined #ruby
Chagel_ has joined #ruby
clorisu has joined #ruby
htmldrum_ has quit [Ping timeout: 268 seconds]
htmldrum has quit [Ping timeout: 268 seconds]
RegulationD has joined #ruby
Chagel has quit [Ping timeout: 248 seconds]
roshanavand has quit [Quit: This computer has gone to sleep]
Musashi007 has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
drptbl has joined #ruby
<TheCubeLord>
where is the rails channel?
wolfedale has joined #ruby
tjbiddle_ has joined #ruby
<SebastianThorn>
TheCubeLord: #rubyonrails
nettoweb has joined #ruby
siaw has joined #ruby
tjbiddle has quit [Ping timeout: 248 seconds]
tjbiddle_ is now known as tjbiddle
kam270 has joined #ruby
n008f4g_ has joined #ruby
mlehrer has joined #ruby
<the_drow>
How do I release the GIL using the MRI Ruby C API?
Spami has joined #ruby
nocontrol has joined #ruby
Musashi007 has quit [Quit: Musashi007]
blandflakes has joined #ruby
<the_drow>
Do I have to call the function with rb_thread_call_without_gvl?
<the_drow>
In python it's simply a macro Py_AllowThreads...
blandflakes has quit [Client Quit]
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
<the_drow>
Also, what happens if I call it while in rubinius?
senayar has joined #ruby
senayar was kicked from #ruby by ruby[bot] [was banned before]
mrgrieves has joined #ruby
roshanavand has joined #ruby
jam__ has joined #ruby
Pascal has joined #ruby
Pascal is now known as igam
Xeago has quit [Ping timeout: 244 seconds]
jam__ has quit [Ping timeout: 252 seconds]
blackmesa has joined #ruby
ixti has joined #ruby
p1k has quit [Ping timeout: 250 seconds]
Chagel_ has quit [Remote host closed the connection]
BrunoSaboia has joined #ruby
mikhael_k33hl has quit [Ping timeout: 240 seconds]
mikhael_k33hl has joined #ruby
siaw has quit [Quit: siaw]
Chagel has joined #ruby
uglybandersnatch has joined #ruby
CloCkWeRX has quit [Ping timeout: 276 seconds]
nrsky has joined #ruby
araujo has joined #ruby
Chagel has quit [Remote host closed the connection]
idletask has quit [Remote host closed the connection]
Chagel has joined #ruby
gigetoo has quit [Ping timeout: 260 seconds]
Xeago has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
Chagel has quit [Remote host closed the connection]
Chagel has joined #ruby
FooMunki has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ready has joined #ruby
Chagel has quit [Ping timeout: 264 seconds]
Suntzu has joined #ruby
tubuliferous has quit [Ping timeout: 276 seconds]
blackgoat has joined #ruby
bronson has joined #ruby
Musashi007 has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
tesuji has joined #ruby
djellemah__ has joined #ruby
djellemah has quit [Ping timeout: 246 seconds]
djellemah has joined #ruby
djellemah_ has quit [Ping timeout: 244 seconds]
dgncn has quit [Excess Flood]
binaryplease has quit [Ping timeout: 248 seconds]
configged- has quit [Ping timeout: 244 seconds]
dgncn has joined #ruby
infernix has quit [Ping timeout: 240 seconds]
awasum_ has joined #ruby
p1k has joined #ruby
trinaldi has joined #ruby
awasum_ has quit [Client Quit]
awasum has quit [Ping timeout: 260 seconds]
awasum has joined #ruby
sepp2k has joined #ruby
PedramT has joined #ruby
mistermocha has joined #ruby
Vingador has joined #ruby
infernix has joined #ruby
bweston92 has quit [Remote host closed the connection]
mistermocha has quit [Ping timeout: 248 seconds]
quakephil has joined #ruby
uglybandersnatch has quit [Ping timeout: 244 seconds]
millerti has joined #ruby
Nahra has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
bweston92 has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
PedramT has quit [Remote host closed the connection]
FooMunki has quit [Quit: FooMunki]
FooMunki has joined #ruby
Ropeney has quit [Quit: Leaving]
skade has quit [Quit: Computer has gone to sleep.]
dionysus69 has joined #ruby
Vlat- has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
cpup has quit [Ping timeout: 248 seconds]
jam__ has joined #ruby
cpup has joined #ruby
Xeago has quit []
bricker has quit [Ping timeout: 252 seconds]
merida has quit [Remote host closed the connection]
merida has joined #ruby
ldnunes has joined #ruby
jam__ has quit [Ping timeout: 244 seconds]
Musashi007 has quit [Quit: Musashi007]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
elaptics`away is now known as elaptics
pawnbox has quit [Remote host closed the connection]
Guest27457 has quit [Changing host]
Guest27457 has joined #ruby
Guest27457 is now known as Affix
pawnbox has joined #ruby
pwnd_nsfw` has quit [Read error: Connection reset by peer]
pwnd_nsfw` has joined #ruby
leon_e has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
but3k4 has joined #ruby
leon_e has quit [Quit: Konversation terminated!]
Suntzu has quit [Quit: changing servers]
skade has joined #ruby
krz has quit [Ping timeout: 244 seconds]
vondruch has quit [Remote host closed the connection]
millerti has joined #ruby
skade has quit [Client Quit]
configged- has joined #ruby
TomyLobo has joined #ruby
rbennacer has joined #ruby
maner has joined #ruby
sdothum has joined #ruby
skade has joined #ruby
johnmilton has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
Marsupermammal has joined #ruby
duckpuppy has joined #ruby
vondruch has joined #ruby
PedramT has joined #ruby
noServic1 has joined #ruby
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
htmldrum has quit [Ping timeout: 246 seconds]
skweek has joined #ruby
htmldrum_ has quit [Ping timeout: 248 seconds]
noService has quit [Ping timeout: 246 seconds]
PedramT has quit [Ping timeout: 244 seconds]
roshanavand has joined #ruby
gagrio has quit [Ping timeout: 276 seconds]
BrunoSaboia has quit [Ping timeout: 244 seconds]
htmldrum has joined #ruby
htmldrum_ has joined #ruby
tubuliferous has joined #ruby
synthroid has joined #ruby
last_staff has quit [Ping timeout: 244 seconds]
j2k has quit [Ping timeout: 240 seconds]
kspencer has quit [Ping timeout: 250 seconds]
djellemah has quit [Disconnected by services]
djellemah__ is now known as djellemah
Suntzu has joined #ruby
djellemah_ has joined #ruby
binaryplease1 has joined #ruby
htmldrum_ has quit [Ping timeout: 276 seconds]
htmldrum has quit [Ping timeout: 276 seconds]
baweaver has joined #ruby
roshanavand has quit [Quit: This computer has gone to sleep]
n008f4g_ has joined #ruby
j2k has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
tubuliferous has quit [Ping timeout: 248 seconds]
skweek has quit [Ping timeout: 268 seconds]
baweaver has quit [Ping timeout: 250 seconds]
<djellemah>
I'm looking for information on concurrency and the initialize method.
<djellemah>
I'm assuming that normally in ruby-land only one thread can be executing an initialize method for a given instance (because no other thread could have access to that instance yet).
<djellemah>
That leaves garbage collection and ObjectSpace.
<djellemah>
I think an uninitialized object won't be ready for garbage collection, so the garbage collector is smart enought to not call finalizers on it.
<djellemah>
What I don't know is this: at what point during instance construction does an instance become accessible via ObjectSpace?
<workmad3>
r1nuz: e.g. moving that hash out into `HEADER_SIZES = { ... }` and then in the method doing `header_size = HEADER_SIZES[@wordsize]` would drop you down to a single hash and a call to [] in the method, so closer to being comparable
<r1nuz>
so something like that is better?
tk__ has joined #ruby
<r1nuz>
workmad3 i see, thanks
<manveru>
don't forget that calling header_size[12] would return nil
<r1nuz>
right, in this particular case i can be sure wordsize is 32 or 64
<manveru>
header_size = @wordsize == 32 ? 52 : 64
<manveru>
then that's still best :)
<manveru>
one comparison, no overhead
<r1nuz>
oh thanks, that already looks better than the wordy version
<manveru>
you said ternary before, so i thought you'd have that already
<r1nuz>
i thought ternary in ruby was (if cond then thing else other_thing end)
<djellemah>
shevy: ( cond | true | false ) was just messing around with TrueClass#| operator http://ruby-doc.org/core-2.3.0/TrueClass.html . I wouldn't want to lead anyone astray :-O
DynamicMetaFlow has joined #ruby
<shevy>
ack
unshadow has quit [Quit: leaving]
Gasher has joined #ruby
jam__ has joined #ruby
unshadow has joined #ruby
washt has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
kies has quit [Ping timeout: 248 seconds]
jam__ has quit [Ping timeout: 264 seconds]
stannard has joined #ruby
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
mostlybadfly has joined #ruby
startupality has quit [Quit: startupality]
hogetaro has quit [Quit: Leaving...]
malconis has joined #ruby
binaryplease1 has joined #ruby
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
JakFrist has joined #ruby
bronson has joined #ruby
sleepy_al2o3-cr is now known as al2o3-cr
Asmes has joined #ruby
* Asmes
Helloe I,Turk ?
aclearman037 has joined #ruby
kfpratt has joined #ruby
kam270 has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 252 seconds]
n008f4g_ has quit [Ping timeout: 260 seconds]
agit0 has joined #ruby
JohnBat26 has joined #ruby
fexilal has quit [Ping timeout: 264 seconds]
tubuliferous has joined #ruby
kam270 has joined #ruby
sand_bird has quit [Ping timeout: 244 seconds]
Asmes has quit []
kam270 has quit [Max SendQ exceeded]
chouhoulis has joined #ruby
kam270 has joined #ruby
intrigueD has joined #ruby
kam270 has quit [Remote host closed the connection]
jdawgaz has joined #ruby
mwlang has joined #ruby
krz has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
jottr has quit [Ping timeout: 250 seconds]
<shevy>
lol
<shevy>
guess that was a smartphone user
siaw has joined #ruby
idle_task has joined #ruby
idletask has quit [Disconnected by services]
idle_task is now known as idletask
binaryplease1 has quit [Ping timeout: 248 seconds]
<yorickpeterse>
You just pass them as separate arguments
<the_drow>
I don't really want to wrap my args as an array
kfpratt has quit [Remote host closed the connection]
<the_drow>
I don't see that the API is defined that way
TheCubeLord has quit [Quit: Leaving]
<yorickpeterse>
int whatever(...) { ... }; whatever(1), whatever(1, 2), etc
ChiefAlexander has joined #ruby
<yorickpeterse>
typically Ruby functions take an extra argument that denotes the amount of arguments passed
<yorickpeterse>
so you'd get something like
<yorickpeterse>
whatever(1, foo); or whatever(2, foo, bar);
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
woodruffw has joined #ruby
uglybandersnatch has joined #ruby
<tref>
havenwood: thanks those are good suggestions
<tref>
havenwood: never used flat_map
crowell has quit [Ping timeout: 246 seconds]
woodruffw has joined #ruby
<the_drow>
I'm talking about rb_thread_call_without_gvl
noServic1 has quit [Ping timeout: 246 seconds]
<tref>
I also had a question regarding some of these private methods. For some reason some of them are throwing errors as private methods when I run tests against them. Why is that when the same methods are fine from within the CLI app
DynamicMetaFlow has quit [Ping timeout: 244 seconds]
<the_drow>
You can create function pointers that allow variable arguments
<the_drow>
I wonder why that isn't the API
<the_drow>
I'll open an issue about it
JohnBat26 has quit [Read error: Connection reset by peer]
<yorickpeterse>
IIRC you cast them to void* and then back
JohnBat26 has joined #ruby
jpfuentes2 has joined #ruby
<yorickpeterse>
a bunch of C functions take a "data" argument that's just a void* that's passed to whatever C function you pass as well
<the_drow>
But it only takes one argument
yatish27 has quit [Remote host closed the connection]
<the_drow>
So I can't do rb_thread_call_without_gvl(my_func, &p1, &p2, RUBY_UBF_IO, 0)
<the_drow>
I need to create a struct just for the parameters
<the_drow>
It's silly
callen92 has quit [Ping timeout: 244 seconds]
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crowell has joined #ruby
noService has quit [Ping timeout: 246 seconds]
darkxploit has joined #ruby
callen92 has joined #ruby
theRealGent has quit [Ping timeout: 244 seconds]
tomatoes has quit [Ping timeout: 250 seconds]
mikecmpbll has joined #ruby
rodfersou is now known as rodfersou|lunch
JohnBat26 has quit [Read error: Connection reset by peer]
<yorickpeterse>
welcome to the Ruby C API
<yorickpeterse>
With an emphasis on "API"
JohnBat26 has joined #ruby
slawrence00 has joined #ruby
<the_drow>
I don't get why I have to call a function
stunder has joined #ruby
<the_drow>
I mean a function that calls another function
<the_drow>
I want to release the GVL for a section of code
<the_drow>
that's it
yekta has joined #ruby
dikaio has joined #ruby
<yekta>
Hello, how might I limit the attributes a sub class can access from the super class?
`tim` has joined #ruby
<yekta>
putting an attr_accessor in a private or protected block of the subclass doesn’t restrict access
nando293921 has joined #ruby
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Mon_Ouie>
You can't. Each object has access to all its instance variables, instance variables aren't part of a class.
aufi has quit [Ping timeout: 240 seconds]
<tref>
yekta: that kind of goes against the whole idea of subclassing
<workmad3>
tref: it's the way `private` works in java and C++ :)
<yekta>
hah :) interesting
<yekta>
I have a Project model (rails) and I wanted to use some object structure to control what can be exported, without making a method for each exportable model.
davedev24 has joined #ruby
<workmad3>
but yeah... private doesn't mean the same in ruby... there isn't a way to restrict the methods a subclass can call on a superclass in ruby (unless you go with really dirty tricks, like grabbing a method object of the method you want to hide, then undeffing it from the object)
<the_drow>
I don't really understand the difference between BLOCKING_REGION, GVL_UNLOCK_BEGIN/GVL_UNLOCK_END (Which is exactly like Py_BeginAllowThreads/PyEndAllowThreads)
tubuliferous has quit [Ping timeout: 244 seconds]
mechanicles has quit [Remote host closed the connection]
bronson has joined #ruby
skryking has quit [Remote host closed the connection]
skade has quit [Quit: Computer has gone to sleep.]
skryking has joined #ruby
bronson has quit [Remote host closed the connection]
nocontrol has quit [Ping timeout: 244 seconds]
noService has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
noService has quit [Changing host]
noService has joined #ruby
JohnBat26 has joined #ruby
skryking has quit [Remote host closed the connection]
<yorickpeterse>
the_drow: unsure
ss_much has joined #ruby
[Butch] has joined #ruby
<the_drow>
I'll ask on StackOverflow...
<the_drow>
Thanks anyway
the_drow has quit [Quit: This computer has gone to sleep]
PedramT has joined #ruby
aganov has quit [Quit: Leaving]
majjoha has joined #ruby
Guest38 has joined #ruby
RegulationD has quit [Remote host closed the connection]
yuung has joined #ruby
PedramT has quit [Ping timeout: 260 seconds]
jottr has quit [Ping timeout: 264 seconds]
scepticulous has quit [Ping timeout: 240 seconds]
Noxilex has joined #ruby
pwnd_nsfw` is now known as pwnd_nsfw
amclain has joined #ruby
noService has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
infra-red has quit [Remote host closed the connection]
jottr has joined #ruby
tubuliferous has joined #ruby
cjbischof_ has joined #ruby
Salve has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shredding has quit [Ping timeout: 260 seconds]
DroidBurgundy has joined #ruby
<Salve>
Is there a way to get a Hash from a decorator object?
rattatmatt has joined #ruby
<apeiros>
Salve: "a Decorator object" is not as descriptive as you seem to think
senayar has joined #ruby
senayar was kicked from #ruby by ruby[bot] [was banned before]
rbennacer has quit [Remote host closed the connection]
<p1k>
has anyone used nanoc/middleman/stasis that has a strong preference either way amongst these?
maletor has joined #ruby
maletor has quit [Client Quit]
<apeiros>
Salve: so an answer on the same level of descriptiveness: yes, if said decorator object provides a method for that
ccooke has joined #ruby
ferr has quit [Quit: WeeChat 1.4]
<Salve>
apeiros, ruby has SimpleDelegator....maybe it supports a hash
maletor has joined #ruby
<apeiros>
Salve: what information of a SimpleDelegator would you want as a hash?
Guest_98765 has joined #ruby
<Guest_98765>
Allah is doing
<Guest_98765>
sun is not doing Allah is doing
<apeiros>
Guest_98765: this channel is not the place for your religion. stop it please or leave.
<Guest_98765>
moon is not doing Allah is doing
<apeiros>
!kick Guest_98765 spam
russt has quit [Quit: That's all, folks!]
baweaver has joined #ruby
Guest_98765 was kicked from #ruby by ruby[bot] [spam]
tjohnson has joined #ruby
`tim` has quit [Ping timeout: 276 seconds]
maletor has quit [Client Quit]
<yorickpeterse>
shit, that bot really convinced me
mistermocha has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
russt has joined #ruby
<apeiros>
yorickpeterse: hm?
<apeiros>
ah, you mean the allah-bot
maletor has joined #ruby
Guest5_ has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
baweaver has quit [Ping timeout: 250 seconds]
mistermocha has quit [Ping timeout: 250 seconds]
merida has joined #ruby
merida_ has joined #ruby
<yorickpeterse>
Yeah
<yorickpeterse>
allah is doing, sun is not doing
<yorickpeterse>
amen
Noxilex has quit [Ping timeout: 240 seconds]
mechanicles has joined #ruby
Macaveli has joined #ruby
mleung has joined #ruby
<apeiros>
ramen
jam__ has quit [Remote host closed the connection]
<morfin>
allah-bot explode himself when somebody not agree with him?
Macaveli has quit [Client Quit]
skryking has joined #ruby
_blizzy_ has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
<apeiros>
morfin: please don't. that kind of discrimination isn't welcome here either.
melter has quit [Ping timeout: 240 seconds]
JohnBat26 has joined #ruby
Macaveli has joined #ruby
guideX has left #ruby [#ruby]
tesuji has quit [Ping timeout: 276 seconds]
mhoungbo has quit [Remote host closed the connection]
darkxploit has quit [Read error: Connection reset by peer]
<shevy>
ah I saw this a while ago
pawnbox has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
AlexRussia has quit [Ping timeout: 250 seconds]
Guest38 has quit [Remote host closed the connection]
Guest38 has joined #ruby
sauvin has quit [Read error: Connection reset by peer]
Alayde has joined #ruby
yeticry has joined #ruby
jenrzzz has quit [Quit: Lost terminal]
yatish27 has joined #ruby
yeticry_ has quit [Ping timeout: 276 seconds]
wilbert has joined #ruby
baweaver has quit [Remote host closed the connection]
agit0 has quit [Quit: zzzZZZ….]
yeticry has quit [Read error: Connection reset by peer]
pawnbox has quit [Ping timeout: 276 seconds]
Alayde has left #ruby [#ruby]
yatish27 has quit [Ping timeout: 268 seconds]
cdg has quit [Remote host closed the connection]
mtkd has quit [Ping timeout: 248 seconds]
yeticry has joined #ruby
ChiefAlexander has quit [Remote host closed the connection]
Devalo has quit [Remote host closed the connection]
ChiefAlexander has joined #ruby
mtkd has joined #ruby
TomyLobo has joined #ruby
<Papierkorb>
workmad3: can you tell if it's stable already, or are you having issues?
nobitanobi has quit [Remote host closed the connection]
<workmad3>
Papierkorb: it worked fine for our needs, no stability problems at all in our prod setup
<Papierkorb>
workmad3: neat.
jam__ has quit [Ping timeout: 250 seconds]
scootaloo has joined #ruby
edwinvdgraaf has joined #ruby
<workmad3>
Papierkorb: we weren't exactly stressing the limits though :)
g3funk is now known as braidn
<Papierkorb>
atm we're using consul-template to rewrite the nginx conf on configuration changes (that nginx is used for forwarding/proxying stuff), but somehow that feels .. off
yfeldblum has joined #ruby
jenrzzz has joined #ruby
Eiam has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
Eiam has joined #ruby
Musashi007 has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
<workmad3>
Papierkorb: ah, we're running an nginx proxy on heroku (weird, I know, but it was set up way before I started here) so our config is being generated through an erb template to give some basic scripting... we needed to be able to switch between two upstreams for a page redesign though and the built-in stuff in nginx couldn't achieve that properly (due to more heroku annoyances)
<workmad3>
so we pulled in ngx_mruby and basically wrote our own small upstream switcher with sticky sessions in about 12 lines of mruby :)
<Papierkorb>
Sounds good
mrgrieves has joined #ruby
<ruurd>
Yes funny, RAILS as an nginx extension... imagine that...
<scootaloo>
Passenger?
<ruurd>
No that's different
<Papierkorb>
but pretty close
mikecmpbll has joined #ruby
dionysus69 has joined #ruby
<workmad3>
ruurd: you'd need to do a fair bit more work before you could run rails inside ngx_mruby... it doesn't have normal rubygem support, for starters :)
spider-mario has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
<ruurd>
'imagine' is the operative word here :-) but still
JohnBat26 has joined #ruby
jaruga has joined #ruby
jaruga is now known as jaruga_
jenrzzz has quit [Quit: leaving]
f0f4r has quit [Ping timeout: 248 seconds]
jenrzzz has joined #ruby
jenrzzz has quit [Client Quit]
futilegames has joined #ruby
rodfersou is now known as rodfersou|afk
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
jenrzzz has joined #ruby
<shortdudey123>
anyone else seeing 503's to bundler.rubygems.org?
halfamind has quit [Read error: Connection reset by peer]
crime has joined #ruby
yqt has quit [Ping timeout: 248 seconds]
Musashi007 has quit [Quit: Musashi007]
nofacade_ has joined #ruby
blandflakes has quit [Client Quit]
tildes has quit [Ping timeout: 248 seconds]
blandflakes has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
firstdayonthejob has joined #ruby
JohnBat26 has joined #ruby
nofacade has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
sepp2k has quit [Quit: Leaving.]
growGROW has quit [Remote host closed the connection]
edwinvdgraaf has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
edwinvdgraaf has joined #ruby
Guest5 has joined #ruby
symm- has quit [Ping timeout: 264 seconds]
andywojo has joined #ruby
djbkd has joined #ruby
robbyoconnor has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
djbkd has quit [Remote host closed the connection]
slawrence00 has joined #ruby
djbkd has joined #ruby
stunder has quit [Ping timeout: 244 seconds]
edwinvdgraaf has quit [Ping timeout: 244 seconds]
djellemah has quit [Read error: Connection reset by peer]
akkad has quit [Quit: Emacs must have died]
tildes has joined #ruby
postmodern has joined #ruby
mdw has joined #ruby
JohnBat26 has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
merida has quit [Remote host closed the connection]
_stu_ has joined #ruby
mdw has quit [Ping timeout: 240 seconds]
hightower3 has joined #ruby
yeticry_ has joined #ruby
rodfersou|afk is now known as rodfersou
merida_ has quit [Ping timeout: 240 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
djellemah has joined #ruby
yeticry has quit [Ping timeout: 250 seconds]
AlexRussia has joined #ruby
uglybandersnatch has joined #ruby
stunder has joined #ruby
yuung has quit [Ping timeout: 248 seconds]
futilegames has quit [Quit: futilegames]
mdw has joined #ruby
chrisja has quit [Quit: leaving]
cpup has quit [Ping timeout: 268 seconds]
ffgghh has quit [Quit: Leaving]
stunder has quit [Ping timeout: 240 seconds]
uglybandersnatch has quit [Ping timeout: 268 seconds]
cpup has joined #ruby
tvw has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
Musashi007 has joined #ruby
idefine has joined #ruby
edwinvdgraaf has joined #ruby
baweaver has joined #ruby
unshadow has quit [Ping timeout: 248 seconds]
Disavowed has joined #ruby
`tim` has joined #ruby
baweaver has quit [Remote host closed the connection]
elifoster has quit [Ping timeout: 260 seconds]
baweaver has joined #ruby
siaw has joined #ruby
<shevy>
I see dead people.
nobitanobi has joined #ruby
rattatmatt has joined #ruby
<apeiros>
that's quite a lot of people
stunder has joined #ruby
yuung has joined #ruby
<crime>
do you guys like Atlas Shrugged?
<Radar>
?offtopic crime
<ruby[bot]>
crime: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
baweaver has quit [Remote host closed the connection]
<crime>
ok but "I see dead people" is apparently ok
<crime>
in detail, how exactly does that work?
<Radar>
crime: No arguing. Thanks.
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
infra-red has joined #ruby
<crime>
lol
siaw has quit [Ping timeout: 246 seconds]
<crime>
you remind me of a mall cop who thinks he can actually arrest people and shit
<shevy>
the class methods it groups with the leading :: so we have ::[] ::new ::try_convert that is, Array[] Array.new and Array.try_convert
<shevy>
and the others are those callable on your array instances, that is #any? #cycle and so forth
baweaver has joined #ruby
tubuliferous has quit [Ping timeout: 240 seconds]
JohnBat26 has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 260 seconds]
JohnBat26 has joined #ruby
ChiefAlexander has quit [Quit: Leaving...]
Azure has joined #ruby
Disavowed has joined #ruby
JohnBat26 has quit [Client Quit]
freerobby1 has quit [Quit: Leaving.]
andywojo has quit [Quit: Lost terminal]
Cohedrin has joined #ruby
tubuliferous has joined #ruby
skade has joined #ruby
graffix has joined #ruby
cd-rum has quit [Ping timeout: 264 seconds]
pulpfiction has joined #ruby
<pulpfiction>
guys, if i have a gemfile on the root of a project, isn't it just the case of executing `bundle install` to install the project dependencies?
<pulpfiction>
when i execute that, all i get is `bundle: Usage: bundle package dest prefix`
floatingpoint has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
polishdub has joined #ruby
snockerton has joined #ruby
<snockerton>
so i have a flat text file containing a ruby hash print out (not json), is there a way to read this back into a new hash?
ur5us has joined #ruby
al2o3-cr has quit [Read error: Connection reset by peer]
al2o3-cr has joined #ruby
baweaver has quit [Remote host closed the connection]
kies has quit [Ping timeout: 264 seconds]
Guest5 has joined #ruby
Guest5 has quit [Max SendQ exceeded]
baweaver has joined #ruby
f0f4r has joined #ruby
davedev24 has quit []
r1nuz has quit [Ping timeout: 240 seconds]
chrisml has joined #ruby
r1nuz has joined #ruby
gigetoo_ has joined #ruby
<rgb-one>
snockerton: how does the printout look?
<snockerton>
{
gigetoo has quit [Ping timeout: 260 seconds]
gigetoo_ is now known as gigetoo
<snockerton>
{"key1"=>"value", "key2"=>"value"}
<snockerton>
litterally just like REPL printed hash
YP-QMUL-W has quit [Read error: Connection reset by peer]
wilbert has quit [Ping timeout: 276 seconds]
nerium has quit [Quit: nerium]
sepp2k has quit [Read error: Connection reset by peer]
fullofcaffeine has quit [Remote host closed the connection]
fullofcaffeine has joined #ruby
rgb-one has left #ruby ["Konversation terminated!"]
uglybandersnatch has quit [Ping timeout: 276 seconds]
mnrmnaugh has quit [Remote host closed the connection]
nerium has joined #ruby
intrigueD has quit [Remote host closed the connection]
devbug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has quit [Quit: mleung]
stannard has joined #ruby
edwinvdgraaf has quit [Remote host closed the connection]
<Scriptonaut>
Hey guys, you know the &: operator when using map/select/reject? How can I link two together? Let's say I have an array of objects, how could I do: array.map(&:errors.full_messages)
jam__ has quit [Remote host closed the connection]
tonyynot has quit [Ping timeout: 264 seconds]
jackjackdripper1 has quit [Client Quit]
jackjackdripper has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
quakephil_ has joined #ruby
millerti has joined #ruby
quakephil has quit [Ping timeout: 276 seconds]
polishdub has quit [Quit: Leaving]
nando293921 has joined #ruby
devbug has quit [Read error: Connection reset by peer]
<jgorak>
Hi all. I'm still a bit green, and sometimes I find myself doing things more verbosely than needed. I'm trying to find unique pairs inside some nested hashes/arrays of hashes. Is there a better way than nesting Hash::map blocks, returning the pairs I care about, then uniq'ing them? ( https://gist.github.com/anonymous/e1f6415248453cbc82e3 )
senayar has joined #ruby
senayar was kicked from #ruby by ruby[bot] [was banned before]
<ytti>
seems fine to me
tubuliferous has quit [Ping timeout: 276 seconds]
<ytti>
althoght i wonder where job1.1 went
<ytti>
cmd1.1
<ytti>
being terse isn't really goal you should strive for
<ytti>
being understandable/readable is
<ytti>
which often is mutually exclusive with terse
<ytti>
although i do have to admit i take sick pleasure in golfing stuff
mikecmpbll has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ytti>
but i have other character faults too
baweaver has quit [Remote host closed the connection]
cd-rum has joined #ruby
uglybandersnatch has joined #ruby
halfamind has quit [Quit: Leaving.]
<jgorak>
Neat, thanks. I guess I might be pushing too hard at golfing (never heard this term, I like it!). The results thing was because I expanded my example and forgot to update the results area to match.
baweaver has joined #ruby
techtomas has joined #ruby
drbrain has quit [Ping timeout: 244 seconds]
nocontrol has quit []
skweek has joined #ruby
drbrain has joined #ruby
Lomex has joined #ruby
blandflakes has joined #ruby
uglybandersnatch has quit [Ping timeout: 240 seconds]
uglybandersnatch has joined #ruby
intrigueD has joined #ruby
graffix has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 240 seconds]
siaw has joined #ruby
blt has quit [Ping timeout: 268 seconds]
cd-rum has quit [Ping timeout: 244 seconds]
axisys has joined #ruby
biberu has quit []
tvw has quit [Remote host closed the connection]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
r1nuz has quit [Ping timeout: 244 seconds]
clorisu has quit [Ping timeout: 260 seconds]
tref has joined #ruby
bob434 has joined #ruby
tubuliferous has joined #ruby
YP-QMUL-W has joined #ruby
r1nuz has joined #ruby
<Ox0dea>
ytti: I see what you did there. ;)
graffix has joined #ruby
baweaver has quit [Remote host closed the connection]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<hydrajump>
It's my first time using selenium and saucelabs and I've gone through their samples, but I'm sometimes getting the assertions to pass and other times one fails or both fail and the site is the same throughout testing
Ropeney has joined #ruby
intrigueD has quit [Remote host closed the connection]
<hydrajump>
am I doing something wrong in how I've written the tests?