<SegFaultAX>
You can also do condition[10], but that kinda sucks.
teej has joined #ruby
<Oxford>
SegFaultAX: Does it?
openstruct has quit [Remote host closed the connection]
<crystal77>
Hello ruby folks! I need some help in just understanding something. So I know all about rbenv/rvm/gemsets. What about projects that don't use any of that? How do I make an isolate enviroment? virtualenv? vagrant? I guess it would be nice to know the gems I install and whatnot are only for that folder, so when I'm done, I don't pollute my system.
Renich has quit [Quit: leaving]
Renich has joined #ruby
<platzhirsch>
SegFaultAX: yeah agreed
cdg has quit [Ping timeout: 252 seconds]
Renich has quit [Client Quit]
pawnbox has joined #ruby
goodcodeguy has joined #ruby
idefine has quit [Remote host closed the connection]
saneax is now known as saneax_AFK
rcvalle has quit [Quit: rcvalle]
cstls` has joined #ruby
Renich has joined #ruby
trinaldi has quit [Quit: zzz]
<Oxford>
"Use round brackets to call methods and no one bats an eye. Use square brackets to call functions and everyone loses their minds."
trosborn has quit [Quit: trosborn]
darkf has joined #ruby
decoponio has quit [Quit: Leaving...]
Renich has quit [Client Quit]
Oxford is now known as Ox0dea
Renich has joined #ruby
pawnbox has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
Renich has quit [Client Quit]
Renich has joined #ruby
<SegFaultAX>
Ox0dea: Yes it does
brijesh has quit [Ping timeout: 250 seconds]
<SegFaultAX>
Because if the variable you're using [] with was defined more than a page of code away, then you can no idea what the semantics of the subscript operator are.
<SegFaultAX>
Is it calling comething, fetching an item from a hash/array, etc.
<dostoyevsky>
The only thing is that I read "\ud83d\ude0d" from that wikidata dump... so I'd like to convert that string... but there is only [].pack("U*") ... so only utf8.. or could I just use force_encoding on that result?
<dostoyevsky>
>> s = "\\ud83d\\ude0d".gsub(/((\\u[a-f\d]{4})+)/i) { a= $1.split('\\u'); a[1..-1].map{|v| v.to_i(16)}.pack("U*")}; s.force_encoding Encoding::UTF_16BE; s =~ /t/
pawnbox has quit [Ping timeout: 252 seconds]
<ruby[bot]>
dostoyevsky: # => incompatible encoding regexp match (US-ASCII regexp with UTF-16BE string) (Encoding::CompatibilityEr ...check link for more (https://eval.in/527793)
<drbrain>
paragraph starting "Code points in the range U+D800–U+DBFF"
ramfjord has quit [Ping timeout: 252 seconds]
Rodya_ has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 248 seconds]
<Ox0dea>
drbrain: Aye, just needed to see "surrogate pair" again. :)
<drbrain>
so if you see "\ud8…" for a UTF-16 string it's like seeing "\xf…" for a UTF-8 string
Rodya_ has joined #ruby
<drbrain>
>> s = "\ud83d\ude0d"; s.force_encoding Encoding::UTF.16BE; s.encode Encoding::UTF_8
<ruby[bot]>
drbrain: # => /tmp/execpad-c8bde875a973/source-c8bde875a973:2: no .<digit> floating literal anymore; put 0 before ...check link for more (https://eval.in/527794)
<drbrain>
oops
<drbrain>
>> s = "\ud83d\ude0d"; s.force_encoding Encoding::UTF_16BE; s.encode Encoding::UTF_8
<ruby[bot]>
dostoyevsky: we in #ruby do not like pastebin.com, it loads slowly for most, has ads which are distracting and has terrible formatting. Please use https://gist.github.com
Rodya_ has quit [Remote host closed the connection]
<dostoyevsky>
Over on #unicode they say that javascript's unicode implementation is broken...
<drbrain>
ah-ha, it's supposed to be
Rodya_ has joined #ruby
shanemcd_ has quit [Remote host closed the connection]
<Ox0dea>
>> "\xf0\x9f\x98\x8d"
<ruby[bot]>
Ox0dea: # => "
<drbrain>
if I use "\xd8\x3d\xde\x0d" instead of "\ud83d\ude0d"
mattwildig has joined #ruby
<drbrain>
then I can s.force_encoding Encoding::UTF_16BE
ensyde_ has joined #ruby
<drbrain>
and I get "\u{1F60D}"
rodolfowtf has joined #ruby
<drbrain>
libedit seems to have a problem displaying ↑, but it is an emoji
<drbrain>
(and a valid unicode code-point
platzhirsch has left #ruby [#ruby]
<drbrain>
oh, right, I have to puts s.encode Encoding::UTF_8
<drbrain>
dostoyevsky: ↑
blackmesa has quit [Ping timeout: 250 seconds]
benlieb has joined #ruby
goodcodeguy has joined #ruby
stardiviner has joined #ruby
<drbrain>
dostoyevsky: so I think your input to ruby, "\ud83d\ude0d", is already corrupt and should be "\u{1f60d}"
Rodya_ has quit [Remote host closed the connection]
ramfjord has joined #ruby
<drbrain>
but you can swap out \u.... for \x..\x.. and get something that works with a force_encoding
<drbrain>
or, the \u from where you're getting it has a different meaning that ruby's \u
marxarelli is now known as marxarelli|afk
hxegon has quit [Ping timeout: 276 seconds]
<dostoyevsky>
drbrain: maybe because it's a json dump, the JS \u semantics are used too.. and that's why it's no problem for me to display these dump strings in node..
hxegon has joined #ruby
Rodya_ has joined #ruby
<drbrain>
that explains it
uglybandersnatch has quit [Ping timeout: 252 seconds]
augcesar has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
<drbrain>
starting "To escape an extended character that is not in the Basic Multilingual Plane"
nfk has quit [Quit: Try memory.free_dirty_pages=true in about:config]
<drbrain>
and I bet node uses JSON string semantics because they're both JavaScript-based
Rodya_ has joined #ruby
cassioscabral has joined #ruby
<drbrain>
the whole section on strings makes we facepalm
hxegon has quit [Quit: BRB]
<shevy>
:)
baweaver has quit [Remote host closed the connection]
<drbrain>
"we don't support UTF-8, except for the basic multilingual plane, so you have to do this kludgy workaround to write arbitrary Unicode characters"
crystal77 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
goodcodeguy has joined #ruby
maletor has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MatthewsFace has quit [Ping timeout: 248 seconds]
<drbrain>
ok, so you can have any utf-8 character in JSON, but when you escape a character from beyond the basic multilingual plane they do this weird thing
snockerton has quit [Quit: Leaving.]
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
dome22xl has joined #ruby
<dostoyevsky>
drbrain: yeah.. now I can see that smiley in ruby too!!! :)
kirillzh has joined #ruby
crystal77 has joined #ruby
kirillzh has quit [Max SendQ exceeded]
<dostoyevsky>
>> JSON.parse('["\\ud83d\\ude0d"]')
<ruby[bot]>
dostoyevsky: # => uninitialized constant JSON (NameError) ...check link for more (https://eval.in/527816)
Pupp3tm4_ has quit [Remote host closed the connection]
pandaant has joined #ruby
william3 has joined #ruby
jenrzzz has quit [Ping timeout: 248 seconds]
Pupp3tm4st3r has joined #ruby
Danishman has joined #ruby
lxsameer has joined #ruby
thevaliantx has quit [Remote host closed the connection]
FooMunki has joined #ruby
lxsameer has quit [Client Quit]
pawnbox has quit [Read error: Connection reset by peer]
mattwildig has joined #ruby
i8igmac has joined #ruby
blackmesa has joined #ruby
pawnbox has joined #ruby
i8igmac has quit [Max SendQ exceeded]
i8igmac has joined #ruby
hahuang65 has quit [Ping timeout: 252 seconds]
i8igmac has quit [Max SendQ exceeded]
Xeago has joined #ruby
mattwildig has quit [Ping timeout: 248 seconds]
soc42 has quit [Remote host closed the connection]
tomphp has joined #ruby
eurialo_ is now known as eurialo
shanemcd_ has joined #ruby
ur5us has quit [Remote host closed the connection]
blaxter has joined #ruby
htmldrum has quit [Ping timeout: 250 seconds]
Xeago has quit [Read error: Connection reset by peer]
rigel_ has quit [Quit: ChatZilla 0.9.92 [Firefox 44.0.2/20160209234627]]
shanemcd_ has quit [Ping timeout: 250 seconds]
nixmaniack has quit [Remote host closed the connection]
solars has quit [Quit: WeeChat 0.4.2]
jeanlinux has quit [Remote host closed the connection]
hahuang65 has joined #ruby
jeanlinux has joined #ruby
solars has joined #ruby
emilkarl is now known as emilkarl[away]
solars has quit [Client Quit]
solars has joined #ruby
jenrzzz has joined #ruby
UtkarshRay has quit [Remote host closed the connection]
htmldrum has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
jeanlinux has quit [Ping timeout: 276 seconds]
UtkarshRay has joined #ruby
troulouliou_div2 has joined #ruby
duckpupp1 has joined #ruby
chipotle has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
allcentury has joined #ruby
evidex has joined #ruby
binaryplease has joined #ruby
jeanlinux has joined #ruby
htmldrum has quit [Ping timeout: 246 seconds]
duckpupp1 has quit [Ping timeout: 246 seconds]
Xeago has joined #ruby
htmldrum has joined #ruby
justin_pdx has joined #ruby
allcentury has quit [Ping timeout: 248 seconds]
<solars>
quick question, having a subclass like this: https://gist.github.com/solars/472e905dc202a2772ba1 how can I make the defined? check work, so that I do not have to re-implement say_hello in each subclass but simply check if the const is defined or not?
rkazak has quit [Quit: Sleep.....ing....]
vondruch has quit [Ping timeout: 246 seconds]
emilkarl[away] is now known as emilkarl
emilkarl is now known as emilkarl[away]
<apeiros>
uh, what? you shouldn't get that exception
<apeiros>
at least if I run your very own code, I don't get one.
<apeiros>
@ solars
<ljarvis>
they dont get it
hahuang65 has joined #ruby
<ljarvis>
they're asking how they check if B::MYCONST is defined
<ljarvis>
e.g. if it's not, don't call the say_hello from the superclass
pawnbox has quit [Remote host closed the connection]
<ljarvis>
yeah that except won't happen
<ljarvis>
exception
<ljarvis>
ugh is it monday
<apeiros>
MONDAY!
htmldrum has quit [Ping timeout: 260 seconds]
<adaedra>
It's written "Mar" on my clock, so it seems not
pawnbox has joined #ruby
* apeiros
waits for clarification by solars
* ljarvis
waits for the weekend
* apeiros
waits for godot
<ljarvis>
orly
* adaedra
waits for chtulu
<apeiros>
chtulu moved on
<adaedra>
Looks like I missed a h
AlexRussia has joined #ruby
graffix222 has joined #ruby
<apeiros>
looks like an abandoned question. lovely. I'm out.
emilkarl[away] is now known as emilkarl
workmad3 has joined #ruby
workmad3_ has quit [Ping timeout: 248 seconds]
<solars>
sorry, I figured out that was a redundant question
vondruch has joined #ruby
ur5us has joined #ruby
dlitvak_ has joined #ruby
<apeiros>
well, nice that you decided to let us know.
<solars>
apeiros, well, people have to work sometimes, right - this is irc not a phone call
platzhirsch has joined #ruby
<solars>
apologies for letting you wait
<apeiros>
solars: sure. knowing your priorities I'll adjust mine wrt to questions from you.
dlitvak_ has quit [Remote host closed the connection]
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
justin_pdx has quit [Ping timeout: 250 seconds]
<solars>
apeiros, that's no problem, I know what to expect
Guest-ru has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 260 seconds]
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tjbiddle has quit [Quit: tjbiddle]
allcentury has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
dlitvak has joined #ruby
dostoyevsky has quit [Quit: leaving]
blackmesa has quit [Ping timeout: 276 seconds]
shinnya has joined #ruby
allcentury has quit [Ping timeout: 246 seconds]
troulouliou_div2 has quit [Ping timeout: 276 seconds]
Ishido has joined #ruby
howdoi has joined #ruby
ropeney has joined #ruby
htmldrum has joined #ruby
Gasher has joined #ruby
BtcBen has quit [Ping timeout: 276 seconds]
binaryplease has quit [Ping timeout: 276 seconds]
troulouliou_div2 has joined #ruby
graffix222 has quit [Ping timeout: 276 seconds]
DexterLB has quit [Remote host closed the connection]
graffix222 has joined #ruby
DexterLB has joined #ruby
n008f4g_ has joined #ruby
Xeago has quit [Remote host closed the connection]
htmldrum has quit [Ping timeout: 276 seconds]
tvw has quit [Ping timeout: 246 seconds]
blackms has joined #ruby
UtkarshRay has quit [Quit: Leaving]
htmldrum has joined #ruby
Xeago has joined #ruby
tvw has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
norc_ has joined #ruby
AlexRussia has quit [Ping timeout: 248 seconds]
infoget has quit [Read error: Connection reset by peer]
norc_ is now known as norc
lukebyrne has quit [Quit: lukebyrne]
htmldrum has quit [Ping timeout: 250 seconds]
tomphp has quit [Ping timeout: 252 seconds]
Xeago has quit [Remote host closed the connection]
htmldrum has joined #ruby
Xeago has joined #ruby
flughafen has joined #ruby
pschichtel has joined #ruby
<pschichtel>
Hi! I'm using IPAddr to work with IP addresses and I'd like to get the subnet mask from the CIDR notation (e.g. 10.0.8.0/21 -> 255.255.248.0). I couldn't find a property/method, but to_s will contain the mask. How can I get it?
jenrzzz has joined #ruby
bronson has joined #ruby
platzhirsch has quit [Quit: Leaving.]
duckpupp1 has joined #ruby
htmldrum has quit [Ping timeout: 276 seconds]
jenrzzz has quit [Ping timeout: 248 seconds]
bronson has quit [Ping timeout: 252 seconds]
jeanlinux has quit [Remote host closed the connection]
LoneHermit has joined #ruby
alexherbo2 has joined #ruby
duckpupp1 has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
LoneHermit has quit [Ping timeout: 252 seconds]
trinaldi has joined #ruby
toretore has quit [Ping timeout: 248 seconds]
uglybandersnatch has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
inukshuk_ has joined #ruby
inukshuk_ has quit [Client Quit]
c355e3b has joined #ruby
krzkrzkrz has quit [Ping timeout: 276 seconds]
laith has quit [Quit: Leaving.]
Mon_Ouie has quit [Ping timeout: 248 seconds]
emilkarl is now known as emilkarl[away]
shanemcd_ has joined #ruby
dlitvak has quit [Remote host closed the connection]
Guest00-ru has joined #ruby
shanemcd_ has quit [Ping timeout: 248 seconds]
rodfersou has joined #ruby
blackmesa has joined #ruby
uglybandersnatch has quit [Ping timeout: 246 seconds]
chipotle has quit [Ping timeout: 246 seconds]
agent_white has joined #ruby
rstacruz has quit [Quit: rstacruz]
Trynemjoel has joined #ruby
tvw has quit [Remote host closed the connection]
<ljarvis>
pschichtel: check out the source for IPAddr#to_s ? If it includes it then there's probably clues
ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
astrobun_ has quit [Remote host closed the connection]
ropeney has joined #ruby
ldnunes has joined #ruby
<hanmac>
pschichtel: yeah that feature seems to be missing ... i will make a ticket about it later: for now you can add it yourself:
Pupp3tm4st3r has quit [Remote host closed the connection]
Meow-J has quit [Quit: Connection closed for inactivity]
<workmad3>
RUBYOPT is an environment variable the `ruby` command looks at when loading as additional command line options
<workmad3>
so if you run `RUBYOPT="-r bundler/setup" ruby foobar` it's like running `ruby -r bundler/setup foobar`
mattwildig has joined #ruby
<nocontrol>
I still don't get it
<nocontrol>
what's the point ?
emilkarl has quit [Read error: Connection reset by peer]
<nocontrol>
If you use rvm/rbenv for ruby versions you're running everything in a specific environment
aufi has quit [Ping timeout: 260 seconds]
<nocontrol>
so why running a command like rails with "bundle exec" in front of it ?
railsForDaiz has joined #ruby
<workmad3>
nocontrol: because that `-r bundler/setup` option loads bundler
s00pcan_ has joined #ruby
s00pcan has quit [Read error: Connection reset by peer]
<nocontrol>
and why do we need it to be loaded ?
Guest34101 has joined #ruby
<workmad3>
because you're running a command in an app that uses bundler and you want to use the bundled gems
<apeiros>
nocontrol: slightly different goals
<apeiros>
nocontrol: bundler allows you to lock and share the specific gems used by a project
Tempesta has joined #ruby
<apeiros>
with rvm, you can isolate it for your own machine but you can't share which specific versions you're using
<nocontrol>
so If you use bundle exec you force the use of the gems that are described inside Gemfile ?
emilkarl has joined #ruby
<apeiros>
Gemfile.lock even
atmosx_ has quit [Quit: This is aparting message!]
<nocontrol>
IF you don't ?
<apeiros>
you'll use whichever versions are installed for your ruby
<nocontrol>
you're using the default versions installed globally ?
<nocontrol>
ok
Pupp3tm4st3r has joined #ruby
<apeiros>
note that rvm auto-prefixes `bundle exec`
<workmad3>
^ in some circumstances
<nocontrol>
I never cared about bundle exec until today and it's been almost 2 years of developing in Ruby
<nocontrol>
and all this time I've been using the global gems ?
<apeiros>
sure. when you're working only with gems, it's barely necessary.
<nocontrol>
omg I am an idiot
<apeiros>
I only use it in rails world either.
<workmad3>
nocontrol: most of the time you don't need to care... you only really need it when you're using something like `rake` in an app that needs an earlier version than the latest installed
<nocontrol>
workmad3: I see
<nocontrol>
workmad3: We use cloud66 @ work which forces you to use bundle exec
<workmad3>
especially in rails, where one of the early steps of initialisation is to pull in `bundler/setup` anyway
<nocontrol>
and I wondered why
<nocontrol>
ok this makes sense
<workmad3>
nocontrol: yeah, it's also very useful on servers because it sets things up when you have bundled gems into `vendor/bundle`
<apeiros>
yupp, net-less server deploys
<apeiros>
nice for intranet boxen
<nocontrol>
thank you both
jottr has joined #ruby
Pupp3tm4st3r has quit [Remote host closed the connection]
<nocontrol>
I don't believe I have been missing this
<workmad3>
apeiros: I was thinking just `bundle install --deployment` which vendors your bundle, but yeah also if you `bundle pack` and `bundle install` :)
Pupp3tm4st3r has joined #ruby
AlexRussia has joined #ruby
railsForDaiz has quit [Ping timeout: 260 seconds]
<apeiros>
OF COURSE there's no Zlib::GzipFile::read, why would there? щ(゚д゚щ)
* apeiros
grumbles
* apeiros
( `Д´)=◯)`ν°) Zlib
saneax_AFK is now known as saneax
allcentury has quit [Ping timeout: 252 seconds]
arup_r has quit [Ping timeout: 246 seconds]
shanemcd_ has quit [Remote host closed the connection]
<oz>
apeiros: no love for Zlib::GzipReader ?
malconis has joined #ruby
<apeiros>
doesn't seem to have ::read either
<apeiros>
well, .open(…, &:read) it is
<apeiros>
hurray for 16 line `read_file(path)` method to handle this :-S
<adaedra>
?pr
<ruby[bot]>
adaedra: I don't know anything about pr
<adaedra>
duh.
skade has joined #ruby
shanemcd_ has joined #ruby
B4daBing73 has joined #ruby
malconis has quit [Remote host closed the connection]
malconis has joined #ruby
* apeiros
sees the irony of adaedra trying to pull a "?pr" and then not adding it…
<adaedra>
:p
<apeiros>
^^
<adaedra>
I suspect that if I add this, it will get used a lot against me, and I ponder about factoids multiplications.
<adaedra>
But can do.
<apeiros>
you mean they're reproducing uncontrollably?
<shevy>
tribbles!
<apeiros>
who'da thunked shevy was a ST:TOS fan
<adaedra>
!fact mk pr You think this is broken, could be done better, or have a good feature idea? Make an issue on the concerned project, or even better, fix it and submit a Pull Request! ;)
<ruby[bot]>
adaedra: I will remember that pr is You think this is broken, could be done better, or have a good feature idea? Make an issue on the concerned project, or even better, fix it and submit a Pull Request! ;)
<adaedra>
Mh, "Submit an issue" instead of "Make an issue" would it be better?
s00pcan_ has quit [Remote host closed the connection]
goodcodeguy has joined #ruby
goodcodeguy has quit [Client Quit]
goodcodeguy has joined #ruby
Guest34101 has quit [Ping timeout: 248 seconds]
dn5 has joined #ruby
workmad3_ has joined #ruby
cdg has joined #ruby
workmad3 has quit [Ping timeout: 250 seconds]
<apeiros>
adaedra: yes
mattwildig has quit [Remote host closed the connection]
duckpupp1 has joined #ruby
<adaedra>
!fact ed pr You think this is broken, could be done better, or have a good feature idea? Submit an issue on the concerned project, or even better, fix it and submit a Pull Request! ;)
<ruby[bot]>
adaedra: I stand corrected that pr is You think this is broken, could be done better, or have a good feature idea? Submit an issue on the concerned project, or even better, fix it and submit a Pull Request! ;)
<adaedra>
Voilà, apeiros
mattwildig has joined #ruby
B4daBing73 has quit [Quit: Leaving]
<apeiros>
InternetFriend has joined #ruby
allcentury has joined #ruby
workmad3 has joined #ruby
<shevy>
apeiros some of the old ones were quite good... the apollo-hand thing was a nice idea... tribbles were so funny.. also fun were how the klingons looked, and in the later new generation ones, worf would not want to talk about why the klingons would look so differently haha
workmad3_ has quit [Ping timeout: 252 seconds]
<apeiros>
shevy: too bad you're not in #ruby-offtopic. could have told you why they did :)
Pupp3tm4st3r has quit [Remote host closed the connection]
Pupp3tm4st3r has joined #ruby
<shevy>
unicode hangman!
quaristice has joined #ruby
quaristice has quit [Client Quit]
BaroMeter has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
<adaedra>
shevy: just ignore it like other sensible people who don't want to see it do.
jenrzzz has joined #ruby
platzhirsch has joined #ruby
ramortegui has joined #ruby
<hanmac>
shevy & apeiros i read on the ruby mailing list that they did discuss about obj->meth to return the method object (for blocks) matz itself did like the idea, but not the -> one because its already used
<apeiros>
oh, only 2.3? so sad. well then, required_ruby just increased for this gem 0:-)
howdoi has quit [Quit: Connection closed for inactivity]
shanemcd_ has quit []
b|ackwolf has joined #ruby
haylon has joined #ruby
<b|ackwolf>
how can I use rbconfig in ruby2.2.x?
<b|ackwolf>
I meant. what is the equivalent?
<b|ackwolf>
irb --simple-prompt -rrbconfig
<b|ackwolf>
Is Config class called anything different in the current version?
sgambino has joined #ruby
<apeiros>
RbConfic
<apeiros>
*RbConfig
TomPeed has joined #ruby
sushi_ has quit [Ping timeout: 250 seconds]
<dn5>
what is equivalent of Rails "yield" in sinatra?
<ddv>
dn5: has nothing to do with Rails
<ddv>
or Sinatra for that matter
<dn5>
It's still Ruby tho
<dn5>
Rails is framework and gem like any other
<adaedra>
yield is yield
<adaedra>
maybe explain what you want?
ramortegui has quit [Quit: Ex-Chat]
skade has quit [Quit: Computer has gone to sleep.]
The_Phoenix has joined #ruby
<dn5>
adaedra: I'm trying to rewrite my app from Rails to Sinatra. The Rails serve yield as a main body of some view. I'm asking for approach on how to load body from a view in Sinatra. Sinatra allows erb :index (for e.g) to load index.erb, but how do I serve html head without the body.
<workmad3>
dn5: are you talking about the rails templating override of `yield` to allow for named blocks of content provided by content_for?
treehug88 has joined #ruby
<workmad3>
dn5: or just more generally regarding rails templates, layouts etc. all of which are somewhat lacking in sinatra because it's not trying to fill the same space as rails?
<adaedra>
it's still yield iirc, but you have to provide a block to `erb :index` (long time no sinatra'd tho)
<dn5>
workmad3: the first one
<ddv>
dn5: you are wasting time by converting this app to sinatra
al2o3-cr has quit [Ping timeout: 246 seconds]
<workmad3>
dn5: I'd second what ddv said then... what you're basically asking for is sinatra to be rails
<ddv>
true
<workmad3>
or at least for sinatra templating to be equivalent to rails templating... which it simply isn't
<dn5>
ddv: Learning something is not wasting time.
rikkipitt has quit [Remote host closed the connection]
<adaedra>
dn5: then start a sinatra app from scratch. Way less painful and you may learn more things.
rikkipitt has joined #ruby
<workmad3>
also don't assume that there's a 1:1 feature parity between sinatra and rails... there isn't :)
<dn5>
adaedra: what else I'm doing?
<dn5>
workmad3: Yes, I do understand that. Especially for secureity reasons.
<adaedra>
wat
<workmad3>
dn5: huh?
karapetyan has joined #ruby
<workmad3>
'security reasons'?
<workmad3>
what brought that up? :)
hayden_ has joined #ruby
<dn5>
for a start, the csrf protection I get in rails automatically
<dn5>
more or less
<darix>
dn5: that is mostly a rack plugin
i8igmac has joined #ruby
<darix>
you need to understand which libraries rails combined to achieve what feature
<dn5>
it still helped not to hassle around for libraries as for sinatra
i8igmac has quit [Max SendQ exceeded]
<ddv>
dn5: try lotus if you want to learn something new
Zackio has quit [Ping timeout: 252 seconds]
<ddv>
hanami :P
i8igmac has joined #ruby
i8igmac has quit [Max SendQ exceeded]
<adaedra>
dn5: sinatra is not rails. If you want the same features, you have to bring them back or recode some before you have parity.
i8igmac has joined #ruby
i8igmac has quit [Max SendQ exceeded]
<dn5>
adaedra: who says I want the same features in Sinatra as in rails?
chouhoulis has joined #ruby
i8igmac has joined #ruby
<adaedra>
until now, you have spoken about rails templating and csrf protection
i8igmac has quit [Max SendQ exceeded]
Zackio has joined #ruby
<dn5>
the guy asked me a question, I answered.. I asked a particular question in a start
Domaldel has quit [Quit: Leaving]
<pschichtel>
How can I iterate over the top level of a multidimensional array? Array.each iterates recursively...
i8igmac has joined #ruby
babblebre has joined #ruby
<adaedra>
pschichtel: wat
i8igmac has quit [Max SendQ exceeded]
<workmad3>
pschichtel: err... no it doesn't?
<adaedra>
>> a = 0; [1, [2, 3], 4].each { a += 1 }; a
karapetyan has quit [Remote host closed the connection]
Vingador has joined #ruby
adgtl has joined #ruby
floatingpoint has quit [Client Quit]
dlitvak_ has quit [Remote host closed the connection]
idefine_ has joined #ruby
idefine has quit [Ping timeout: 246 seconds]
dlitvak has quit [Ping timeout: 246 seconds]
BTRE has quit [Quit: Leaving]
arbys has joined #ruby
arbys has left #ruby [#ruby]
dn5 has quit [Quit: Lost terminal]
dlitvak has joined #ruby
Ben_1 has joined #ruby
<Ben_1>
hi
<Ben_1>
have a dependency problem with rack
chouhoulis has quit [Remote host closed the connection]
pawnbox has joined #ruby
BTRE has joined #ruby
<Ben_1>
rails (~> 4.1.4) was resolved to 4.1.4, which depends on railties (= 4.1.4) was resolved to 4.1.4, which depends on actionpack (= 4.1.4) was resolved to 4.1.4, which depends on rack (~> 1.5.2)
<Ben_1>
gitlab-grack was resolved to 2.0.0.pre, which depends on rack (~> 1.6.0)
<Ben_1>
Bundler could not find compatible versions for gem "rack":
chouhoulis has joined #ruby
linduxed has quit [Ping timeout: 260 seconds]
dlitvak has quit [Read error: Connection reset by peer]
A124 has joined #ruby
GeorgesLeYeti has joined #ruby
<GeorgesLeYeti>
Hi
<InternetFriend>
hello
<adaedra>
Coucou
terlar has quit [Quit: WeeChat 1.4]
idefine has joined #ruby
<GeorgesLeYeti>
I have a hash a = {:"3" => "a", :"4" => "b", :"2" => "c", :"1" => "d"} and i want to sort it a = {:"1" => "d", :"2" => "c" ...}
<hanmac>
GeorgesLeYeti: Hash are not sorted
bMalum has joined #ruby
<nachoman>
a = a.sort.to_h
<nachoman>
it is (only in ruby)
adgtl has quit [Remote host closed the connection]
karapetyan has joined #ruby
<GeorgesLeYeti>
nachoman, ok
karapetyan has quit [Remote host closed the connection]
<GeorgesLeYeti>
ty
idefine_ has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
<haylon>
Hey everyone, what's a way, or method to perform authentication for an cli application? Not sure if that's the correct way to ask, but we'll go from there.
al2o3-cr has joined #ruby
karapetyan has quit [Remote host closed the connection]
znz_jp has quit [Quit: kill -QUIT $$]
malconis_ has joined #ruby
uglybandersnatch has joined #ruby
adgtl has joined #ruby
idefine has quit [Read error: Connection reset by peer]
BSaboia has quit [Ping timeout: 252 seconds]
<treehug88>
haylon typical is to check env vars for some key
znz_jp has joined #ruby
<treehug88>
(in a way that doesn't show what exact key you're looking for in your code)
solars has quit [Ping timeout: 260 seconds]
malconis has quit [Ping timeout: 246 seconds]
<haylon>
Got ya. I was thinking of doing a Hashed-password in a DB, then if the hashes match, the application gives a unique auth-string to use, Similar to how Zabbix does it
<haylon>
but I was wondering if there was a ruby methodoly that anyone else would recommend, or think is easier
momomomomo has joined #ruby
adgtl has quit [Remote host closed the connection]
hxegon has joined #ruby
BSaboia has joined #ruby
dionysus69 has quit [Ping timeout: 252 seconds]
uglybandersnatch has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Ping timeout: 248 seconds]
rikkipitt has quit [Remote host closed the connection]
aganov has quit [Remote host closed the connection]
Snowy has quit [Read error: Connection reset by peer]
Snowy has joined #ruby
laith has joined #ruby
Rodya_ has quit [Ping timeout: 276 seconds]
karapetyan has joined #ruby
laith has left #ruby [#ruby]
nfk has joined #ruby
tjohnson has joined #ruby
<apeiros>
adgtl: you can simplify your code a lot by using Thread::Queue
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
Snowy has quit [Client Quit]
baweaver has joined #ruby
Gasher has quit [Quit: Leaving]
<adgtl>
apeiros: okay
<apeiros>
adgtl: also you only synchronize over push/shift on the queue
rodfersou|lunch is now known as rodfersou
<apeiros>
the production and consumption should not be within the semaphore. otherwise you throw away the main point of the prod/cons design.
aufi has quit [Ping timeout: 252 seconds]
idefine_ has quit [Read error: Connection reset by peer]
<apeiros>
also you'll usually have a mechanism to stop produces instead of `while true`, and similarly a mechanism to a) stop consumers and b) wait until all work is consumed
<adgtl>
apeiros: is is correct implementation of producer consumer problem?
rcvalle has joined #ruby
tulak has quit [Remote host closed the connection]
<apeiros>
as said, the semaphore around producing/consuming the thread beats the purpose of using it. if you fix that, then IMO yes.
sgambino has joined #ruby
idefine_ has quit [Ping timeout: 260 seconds]
* apeiros
grumbles - what's up with those errors in my sentences today?
<apeiros>
as said, the semaphore around producing/consuming the *item* beats the purpose of using it. if you fix that, then IMO yes.
<apeiros>
(and "using it" = "using the prod/cons pattern)
<pschichtel>
I have this custom puppet function: http://pastebin.com/y7jxSke8 it takes an IP adresses and a 2d array with subnet information. when iterating over the 2d array, I'm not getting the inner arrays, but the first element of the inner array (the subnet name). why is that so?
<ruby[bot]>
pschichtel: pastebin.com loads slowly for most, has ads which are distracting and has terrible formatting.
sphex has quit [Ping timeout: 276 seconds]
<adgtl>
apeiros: do you mean.. don't use semaphores?
idefine has joined #ruby
arlek has quit [Ping timeout: 248 seconds]
<apeiros>
adgtl: if you use an array, use semaphores, but only around the push/shift operation. if you use thread::queue, you don't need a semaphore.
william3 has joined #ruby
godzillaenlacasa has joined #ruby
evidex has joined #ruby
idefine__ has quit [Ping timeout: 248 seconds]
idefine_ has joined #ruby
linduxed has joined #ruby
chipotle has quit [Quit: cheerio]
idefine has quit [Read error: Connection reset by peer]
trinaldi has quit [Quit: WeeChat 1.5-dev]
william3 has quit [Remote host closed the connection]
infernix has joined #ruby
anirban has joined #ruby
idefine has joined #ruby
Guest34101 has quit [Ping timeout: 250 seconds]
marr has quit [Read error: Connection reset by peer]
steffkes has quit [Ping timeout: 276 seconds]
sphex has joined #ruby
ponga has joined #ruby
idefine has quit [Read error: Connection reset by peer]
DaniG2k has joined #ruby
<adgtl>
apeiros: cool
<adgtl>
:)
idefine_ has quit [Ping timeout: 246 seconds]
darkf_ has joined #ruby
william3 has joined #ruby
darkf has quit [Disconnected by services]
darkf_ is now known as darkf
openstruct has quit [Remote host closed the connection]
cubicme has joined #ruby
idefine has joined #ruby
rodolfowtf has joined #ruby
<cubicme>
is there a way to install or rather have gems for for other platforms? I’m running gem server on mac and I want to serve a libv8 gem to a linux machine. is it possible to do this?
baweaver has joined #ruby
psyq has left #ruby ["Conversation terminated"]
cdg has joined #ruby
baweaver has quit [Remote host closed the connection]
chipotle has joined #ruby
JakFrist has quit [Ping timeout: 248 seconds]
<darix>
cubicme: gem fetch
scepticulous has quit [Ping timeout: 246 seconds]
djbender has left #ruby [#ruby]
wldcordeiro has quit [Ping timeout: 260 seconds]
tesuji has quit [Ping timeout: 250 seconds]
cnr_roxx has joined #ruby
<hanmac>
cubicme: it can be complicated with gems that does have external dependencies (C(++) libs) if i remember correctly libv8 does have different bundled versions for different architectures
dopamean_ has joined #ruby
mlehrer has quit [Quit: Leaving]
<cubicme>
darix: thanks, but now how I can make gem server serve this file
elaptics is now known as elaptics`away
<darix>
cubicme: you can gem fetch the ruby platform version
shinnya has quit [Ping timeout: 276 seconds]
<darix>
then it will be build on the client
<darix>
but not sure about gem server
<darix>
#rubygems might have a better audience for you
BLuEGoD is now known as James
<cubicme>
hanmac: yeah, I tried —platform=linux and apparently it worked, without it, i got the file libv8_darwin.gem; with it, libv8.gem
James is now known as Guest32947
<cubicme>
darix: ow, by platform i meant mac/linux, not the ruby
Guest32947 is now known as James
synthroid has quit [Remote host closed the connection]
s00pcan has quit [Quit: Lost terminal]
James is now known as Guest58437
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
openstruct has joined #ruby
marxarelli is now known as marxarelli|afk
YankNYC has joined #ruby
mark4 has left #ruby ["PART #RubyOnRails :PART #jquery :PART #reactjs :PART ##javascript :PART #elixir-lang :PART #debian :PART #zsh :QUIT :Leaving."]
KensoDev has joined #ruby
<YankNYC>
Hey everyone, I'm trying to configure this gem as a dependency for my gem. https://github.com/YotpoLtd/geoip2 Do I put that configure block in my gemspec file? and require the geoip2 gem at the top?
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rodolfowtf has quit [Ping timeout: 246 seconds]
idefine has quit [Ping timeout: 252 seconds]
idefine has joined #ruby
<Papierkorb>
YankNYC: I'd redirect the user of your gem to that readme to have it configured.
william3 has quit [Remote host closed the connection]
<YankNYC>
it's for a cli app so should i just make a config folder
<YankNYC>
and plop it in there
ferr has quit [Quit: WeeChat 1.4]
fmcgeough has joined #ruby
<YankNYC>
it doesn't say hey make a config folder it shows a config block lol
pandaant has quit [Remote host closed the connection]
william3 has joined #ruby
dlitvak has quit [Ping timeout: 248 seconds]
william3 has quit [Remote host closed the connection]
sgambino has joined #ruby
biberu has joined #ruby
Don_John has joined #ruby
RalfJ has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
jenrzzz has joined #ruby
RalfJ has joined #ruby
william3 has joined #ruby
s00pcan has joined #ruby
jeanlinux has quit [Ping timeout: 248 seconds]
amclain has joined #ruby
myntcake has joined #ruby
Couch has quit [Ping timeout: 248 seconds]
karapetyan has quit [Remote host closed the connection]
[Butch] has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
karapetyan has joined #ruby
sepp2k has quit [Quit: Leaving.]
Guest38 has joined #ruby
william3 has quit [Ping timeout: 260 seconds]
aryaching has joined #ruby
shanemcd has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has joined #ruby
DaniG2k has quit [Quit: leaving]
B1n4r10 has quit [Ping timeout: 276 seconds]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nanoz has quit [Ping timeout: 276 seconds]
adgtl has quit [Remote host closed the connection]
shanemcd has quit [Ping timeout: 246 seconds]
pschichtel has left #ruby [#ruby]
symm- has joined #ruby
aegis3121 has quit [Ping timeout: 276 seconds]
adgtl has joined #ruby
rkazak has quit [Ping timeout: 276 seconds]
sepp2k has joined #ruby
synthroid has joined #ruby
sneakerhax has joined #ruby
sp4rrow has joined #ruby
synthroid has quit [Read error: Connection reset by peer]
jeanlinux has joined #ruby
synthroid has joined #ruby
haylon has quit [Quit: WeeChat 1.4]
idefine has quit [Ping timeout: 276 seconds]
s00pcan has quit [Remote host closed the connection]
idefine_ has joined #ruby
Ben_1 has joined #ruby
chipotle has joined #ruby
<Ben_1>
someone experiences in passenger? Updated to the latest version but my buildout directory is missing so I can not Load the shared object.
maletor has joined #ruby
darkf has quit [Quit: Leaving]
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tomphp has quit [Ping timeout: 248 seconds]
s00pcan has joined #ruby
x77686d has quit [Quit: x77686d]
RE has joined #ruby
aryaching has quit []
andikr has quit [Remote host closed the connection]
poguez_ has joined #ruby
wmytwu has joined #ruby
diego_ has joined #ruby
diego_ has quit [Changing host]
diego_ has joined #ruby
jolts is now known as joltsafk
joltsafk is now known as jolts
verdan has quit [Ping timeout: 260 seconds]
<RE>
Hello, I am trying to install Puppet on windows XP embedded and the Ruby install it is not working, it workds fine on windows 7 embedded. On XP embedded, Ruby crashes with SegFault…
<RE>
So I installed, Ruby 1.9.3.3p551 directly and it crashes with the same error.
haylon has joined #ruby
<Papierkorb>
RE: Why do you want to use Win XP ..?
chadhs has joined #ruby
<Papierkorb>
RE: That's way past end of life
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<RE>
Windows XP Embedded is used on a lot of thin clients in my company, and we have extended support from Microsoft….
<RE>
its not XP, XP embedded.
diegoviola has quit [Ping timeout: 248 seconds]
s00pcan has quit [Remote host closed the connection]
binaryplease has quit [Quit: WeeChat 1.4]
davedev24 has joined #ruby
<RE>
I’d love to move all these thin clients to win 7, but unfortunately its not possible at this time, and I dont want this be a reason why we dont use Puppet.
cnr_roxx has quit [Ping timeout: 252 seconds]
charlemagne has joined #ruby
blackmesa has quit [Read error: Connection reset by peer]
<apeiros>
"querying complex hash" is very often an xy problem
allcentury has joined #ruby
<apeiros>
you solve a symptom, not the cause. using proper classes is meant to avoid the problem to begin with
inukshuk_ has quit [Client Quit]
mattwildig has joined #ruby
Trieste_ has joined #ruby
tejasmanohar has joined #ruby
platzhirsch has left #ruby [#ruby]
blackmesa has joined #ruby
idefine has joined #ruby
thesheff17_ has joined #ruby
<nerium>
apeiros: The code you posted seams to do something else (according to the examples)
kireevco_ has joined #ruby
<Papierkorb>
Ox0dea: of course it is
halfdan has joined #ruby
holyGlitch_ has joined #ruby
gmci has joined #ruby
bitwise_ has joined #ruby
HashNuke_ has joined #ruby
<nerium>
apeiros: No it isn’t. I’m extracting data from an API that’s all
DiabolikFreenode has joined #ruby
symm- has quit [Ping timeout: 248 seconds]
idefine_ has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
webopsx has quit [Read error: Connection reset by peer]
spk_ has joined #ruby
lancetw_ has joined #ruby
chrisseaton_ has joined #ruby
countera1paratus has joined #ruby
JStoker has joined #ruby
skmp_ has joined #ruby
rideh- has joined #ruby
danzilio_ has joined #ruby
x77686d has joined #ruby
jlyndon_ has joined #ruby
jhill_ has joined #ruby
AdamMeghji_ has joined #ruby
yosafbridge` has joined #ruby
czerasz has quit [Ping timeout: 250 seconds]
sepp2k has quit [Quit: Leaving.]
podman has joined #ruby
Guest34101 has joined #ruby
sepp2k has joined #ruby
counterapparatus has quit [Ping timeout: 252 seconds]
trinaldi has joined #ruby
Trynemjoel2 has joined #ruby
jhass|off has joined #ruby
holyGlitch_ is now known as holyGlitch
kireevco_ is now known as kireevco
chrisseaton_ is now known as chrisseaton
thesheff17_ is now known as thesheff17
jhass|off is now known as jhass
danzilio_ is now known as danzilio
skmp_ is now known as skmp
AdamMeghji_ is now known as AdamMeghji
jhill_ is now known as jhill
jlyndon_ is now known as jlyndon
HashNuke_ is now known as HashNuke
lancetw_ is now known as lancetw
sarlalian has quit [Quit: WeeChat 0.4.2]
baweaver has joined #ruby
<arup_r>
I had an exam, where I had been asked A Range expression such as 1..5 may be used to refer to a subrange of elements in the array. ( True/False) . I said True and I got negative.. why ?
<volty>
nerium: imho you should consider also using xml & xpath
* adaedra
wakes up
modin has joined #ruby
<nerium>
volty: How?
<eam>
arup_r: sounds like a bad question
ta_ has quit [Remote host closed the connection]
<arup_r>
lol.. so true is wrong answer
<volty>
you write to xml instead to write into hash, then query the xml using xpath. but forget if you don't have experience with xml & xpath
<arup_r>
adaedra: as oer you true is correct right ?
kerunaru has joined #ruby
<arup_r>
?
SenpaiSilver_ has joined #ruby
fullofcaffeine has joined #ruby
<adaedra>
arup_r: this is something you want to discuss with your examiner, I think.
<arup_r>
yeah, that question is gone with OMR..
<Papierkorb>
arup_r: is that exam about ruby or language agnostic?
Jardayn has joined #ruby
<Papierkorb>
If it's about ruby, it not only depends on the definition of 'refer to', but also we're lacking context as adaedra mentioned. Though I'd be interested in the reasoning if you do ask the examiner arup_r
Eiam_ has joined #ruby
BtcBen has joined #ruby
steffkes has joined #ruby
fullofcaffeine has joined #ruby
crystal7_ has joined #ruby
<Papierkorb>
*was
nocontrol has joined #ruby
Alayde has joined #ruby
lvn has quit [Ping timeout: 248 seconds]
baweaver has quit [Ping timeout: 248 seconds]
Bounga has quit [Ping timeout: 246 seconds]
infernix has quit [Ping timeout: 248 seconds]
SenpaiSilver has quit [Ping timeout: 268 seconds]
graffix222 has quit [Quit: graffix222]
Jardayn has quit [Quit: Leaving]
ICantCook has quit [Ping timeout: 250 seconds]
hahuang65 has quit [Read error: Connection reset by peer]
TomPeed has quit [Read error: Connection reset by peer]
djellemah has quit [Ping timeout: 250 seconds]
Alayde has left #ruby [#ruby]
M-Kodo has quit [Quit: node-irc says goodbye]
crystal77 has quit [Ping timeout: 250 seconds]
kp666 has quit [Ping timeout: 250 seconds]
kies^ has quit [Ping timeout: 250 seconds]
ytti has quit [Ping timeout: 240 seconds]
maletor has quit [Ping timeout: 250 seconds]
Puffball has quit [Ping timeout: 250 seconds]
sauvin has quit [Ping timeout: 250 seconds]
Timberwo|f has quit [Ping timeout: 250 seconds]
Liothen has quit [Ping timeout: 250 seconds]
bmn has quit [Ping timeout: 268 seconds]
cubicme has joined #ruby
Puffball has joined #ruby
hahuang65 has joined #ruby
bihi has quit [Ping timeout: 268 seconds]
unsymbol has quit [Ping timeout: 268 seconds]
<arup_r>
there was many.. one naughty question was like that as I asked
JoshL has quit [Ping timeout: 250 seconds]
adgtl has quit [Remote host closed the connection]
helpa has quit [Remote host closed the connection]
idefine has quit [Ping timeout: 250 seconds]
rdark has quit [Ping timeout: 250 seconds]
<nocontrol>
I have divided them in chunks of 50s but it seems that somehow memory get overflown
helpa has joined #ruby
<Papierkorb>
arup_r: is there a contact available you could ask? Or some coworker/senior dev you could ask?
Morrolan has quit [Ping timeout: 250 seconds]
MuffinPimp has quit [Excess Flood]
JoshL has joined #ruby
LnxBil has quit [Client Quit]
bihi has joined #ruby
<arup_r>
I will email them
MuffinPimp has joined #ruby
moei has joined #ruby
synthroi_ has joined #ruby
unsymbol has joined #ruby
LnxBil has joined #ruby
meal_ has joined #ruby
<Aviio>
Anybody know if you're able to have more than 1 puppet provisioner per vagrant file?
alexherbo2 has quit [Ping timeout: 250 seconds]
meal has quit [Ping timeout: 268 seconds]
bradland has quit [Ping timeout: 268 seconds]
B1n4r10 has joined #ruby
marxarelli|afk has quit [Ping timeout: 268 seconds]
majoh has quit [Ping timeout: 240 seconds]
bradland has joined #ruby
volty has quit [Ping timeout: 248 seconds]
hackeron has quit [Ping timeout: 250 seconds]
Dimik has joined #ruby
zackattack has joined #ruby
synthroid has quit [Ping timeout: 250 seconds]
<zackattack>
Does anyone here also use the statistical environment "R"? I'm trying to wrap my mind around moving a hash of arrays from Ruby into R
<LnxBil>
Can someone explain why this simple thing is not working as expected? (I use the exact ruby version from the url inside): http://paste.debian.net/410723/
wldcordeiro has quit [Ping timeout: 250 seconds]
hackeron has joined #ruby
Liothen has joined #ruby
Liothen has joined #ruby
<Papierkorb>
nocontrol: The thread(s) will die when their code block has finished execution. That's the moment another thread, which is waiting for that thread using #join like you do, wakes up and continues its work
michael_mbp has quit [Ping timeout: 268 seconds]
rdark has joined #ruby
<nocontrol>
Papierkorb: so my threads are safe
<nocontrol>
Papierkorb: but is there a limit that I should know ?
Mon_Ouie has quit [Quit: WeeChat 1.4]
<tobiasvl>
LnxBil: LnxBil what doesn't work?
GeorgesLeYeti has quit [Quit: Quitte]
sauvin has joined #ruby
<Papierkorb>
nocontrol: There is no limit per se, but your operating system may have one.
<tobiasvl>
LnxBil: you are aware that the initialize method is commented out, right?
Sp4rKy has quit [Ping timeout: 268 seconds]
<nocontrol>
Papierkorb: the error is WARN: ThreadError: can't create Thread: Resource temporarily unavailable
<Papierkorb>
nocontrol: You could however look at the Open3 library to asynchronously call ping a ton of times and wait for the processes to finish from a single thread
z5 has quit [Ping timeout: 260 seconds]
<nocontrol>
Papierkorb: but not always
firstdayonthejob has joined #ruby
nisstyre_ has joined #ruby
<LnxBil>
tobiasvl: according to documentation, "creates and instance variable". Shouldn't it be visible via '.instance_variables'?
<LnxBil>
tobiasvl: s/ and //
Morrolan has joined #ruby
karapetyan has joined #ruby
B1n4r10 has quit [Ping timeout: 248 seconds]
<tobiasvl>
LnxBil: the variable is never instantiated
<Papierkorb>
nocontrol: Then you're hitting some kind of limit. May be a max amount of threads, or something else. But starting ~256 threads sounds like a bad idea anyway.
BaroMeter has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 268 seconds]
<nocontrol>
Papierkorb: you think so ? I am just experimenting. Do you think is not possible at all ?
<Papierkorb>
nocontrol: Start the process and wait for them to finish
<nocontrol>
Papierkorb: Actually I am pinging in chunks of 50s
<tobiasvl>
LnxBil: your attr_reader creates a var1 method which returns @var1, but there is no @var1 because initialize is commented out
<Papierkorb>
nocontrol: Maybe it's possible, but you're hammering a nail with a screwdriver there
<nocontrol>
Papierkorb: you mean for "Each" ping ? I have set the wait time -W to 1 sec
<LnxBil>
tobiasvl: So, there is no method available to create getter/setter and initialize?
<tobiasvl>
LnxBil: getter and setter can be created with attr_accessor
armyriad has joined #ruby
<nocontrol>
Papierkorb: there is no other way that I know to ping fast 254 nodes in 1 sec or less
<tobiasvl>
but initializing is done in the initialize method as the name suggests
arup_r has left #ruby [#ruby]
<Papierkorb>
nocontrol: Use Process and/or Open3 classes. They're much better suited for that. No threads needed.
<LnxBil>
tobiasvl: so I have to create my own register_and_initilize_what_i_want method.
<Ox0dea>
LnxBil: In short, the `attr_*` methods create methods, not instance variables.
<tobiasvl>
LnxBil: no, just put it in initialize
graffix222 has joined #ruby
shadoi has quit [Quit: Leaving.]
<nocontrol>
Papierkorb: so you just iterate 254 times with Open3 ?
<LnxBil>
Ox0dea: So, the documentation is wrong
djellemah has joined #ruby
<Papierkorb>
nocontrol: basically yes, which will spin up that amount of ping processes. You can batch them if you like, see the Enumerable methods for that
<nocontrol>
Papierkorb: thanks for the tips
<nocontrol>
Papierkorb: I 'll read a bit and come back
<tobiasvl>
LnxBil: what part of the documentation is wrong?
<Ox0dea>
LnxBil: It's misleading, yes.
freerobby has joined #ruby
<LnxBil>
tobiasvl: I can't, attributes will be generated on the fly. I tried first with instance_variable_set, which sets instance variables, but not getter/setter.
kerunaru has joined #ruby
<LnxBil>
tobiasvl: that it creates instance variables ...
<LnxBil>
tobiasvl: if it is created, it should be visible with .instance_variables
TomyLobo has joined #ruby
Anderson69s_Deb has quit [Ping timeout: 250 seconds]
<Ox0dea>
Instance variables "always exist" in some sense; `@foo` essentially just kicks off a search into an object's instance variable table.
kies^ has joined #ruby
Sp4rKy has joined #ruby
<tobiasvl>
ah. yes, I agree. but they're not instantiated.
jenrzzz has joined #ruby
alexherbo2 has joined #ruby
shadoi has joined #ruby
B1n4r10 has joined #ruby
karapetyan has quit [Remote host closed the connection]
<Ox0dea>
LnxBil: Ruby certainly provides the means to get and set attributes dynamically.
<drbrain>
LnxBil: the documentation is misleading
tobias_ has joined #ruby
karapetyan has joined #ruby
karapetyan has quit [Remote host closed the connection]
<drbrain>
attr_reader only creates a method
johnny56_ has joined #ruby
majoh has joined #ruby
djbkd has joined #ruby
<LnxBil>
so, what can I use to create the instance variable and get setter/getter? self.instance_variable_set takes care of the first, but the second? (dynamic attribute names)
mfb2 has quit []
bmn has joined #ruby
<drbrain>
why do you want both?
platzhirsch has joined #ruby
cookiez has joined #ruby
<drbrain>
I ask because there may be better ways to address your problem
<LnxBil>
Because I need to query all attributes from outside (e.g. .instance_variables) and need to access them via .attribute_name
<drbrain>
LnxBil: why do you want to query the attributes?
<Ox0dea>
Someone needs a <Leader> mapping.
<drbrain>
LnxBil: … maybe you want openstruct?
KensoDev has joined #ruby
hollywood has quit [Ping timeout: 268 seconds]
<Papierkorb>
drbrain: You need root permissions to craft ICMP ping packets (well, to send them off)
<LnxBil>
drbrain: I need to query the attributes from a parent class
kspencer has joined #ruby
kspencer has quit [Changing host]
kspencer has joined #ruby
<drbrain>
for what purpose?
mburns has quit [Ping timeout: 268 seconds]
meal_ is now known as meal
jenrzzz has quit [Ping timeout: 276 seconds]
<tobiasvl>
LnxBil: you can always do "class << self; self; end.class_eval do; attr_reader something; end" inside initialize. or dynamically create var and var= methods
<Papierkorb>
drbrain: usually, OSes don't let non-admin users to send off custom (ICMP is custom in that sense) network packets.
<LnxBil>
the query interface needs columns/attributes
infernix has joined #ruby
<LnxBil>
tobiasvl: Yes, but there is no "short form" available?
<Papierkorb>
drbrain: Thus, the script would need to run as root user. Even a SUID bit wouldn't help on a script, as it's interpreted which makes a difference on UNIX systems at least.
KensoDev has quit [Read error: Connection reset by peer]
<drbrain>
LnxBil: then why not use a Hash?
karapetyan has joined #ruby
<drbrain>
columns -> keys, attributes -> values
<drbrain>
Papierkorb: I see
<LnxBil>
drbrain: It is a hash, I want to wrap it in a class for "similar" use in a rails environment
<drbrain>
LnxBil: sounds like you want OpenStruct
<openstruct>
o/
<kaleido>
openstruct: they want you
<openstruct>
I am the elite data structure, after all.
<Ox0dea>
Nonsense.
<Ox0dea>
You're lipstick on a unicorn.
<kaleido>
you callin him pure magic?
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<openstruct>
Sounds like a win!
ss_much has joined #ruby
nocontrol has quit [Remote host closed the connection]
<Ox0dea>
No, I was complimenting Hash for being so useful; OpenStruct just adds alleged aesthetic appeal.
Kryptonical has joined #ruby
justbleed has quit [Read error: Connection reset by peer]
mfaeh has quit [Read error: Connection reset by peer]
crystal77 has joined #ruby
mfaeh has joined #ruby
pawnbox_ has joined #ruby
mburns has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
hollywood has joined #ruby
kerunaru has joined #ruby
ur5us has joined #ruby
shanemcd has joined #ruby
ytti has joined #ruby
wilbert has joined #ruby
atmosx has quit [Quit: This is aparting message!]
modin has quit [Ping timeout: 264 seconds]
majoh has quit [Ping timeout: 264 seconds]
modin has joined #ruby
ur5us has quit [*.net *.split]
mburns has quit [*.net *.split]
Kryptonical has quit [*.net *.split]
ss_much has quit [*.net *.split]
wldcordeiro has quit [*.net *.split]
kspencer has quit [*.net *.split]
platzhirsch has quit [*.net *.split]
tobias_ has quit [*.net *.split]
freerobby has quit [*.net *.split]
rdark has quit [*.net *.split]
Liothen has quit [*.net *.split]
idefine_ has quit [*.net *.split]
hahuang65 has quit [*.net *.split]
podman has quit [*.net *.split]
Guest34101 has quit [*.net *.split]
lancetw has quit [*.net *.split]
yosafbridge` has quit [*.net *.split]
chrisseaton has quit [*.net *.split]
AdamMeghji has quit [*.net *.split]
skmp has quit [*.net *.split]
kireevco has quit [*.net *.split]
DiabolikFreenode has quit [*.net *.split]
holyGlitch has quit [*.net *.split]
skade has quit [*.net *.split]
rizenine has quit [*.net *.split]
eregi has quit [*.net *.split]
rsc___ has quit [*.net *.split]
RE has quit [*.net *.split]
nfk has quit [*.net *.split]
znz_jp has quit [*.net *.split]
mary5030 has quit [*.net *.split]
decoponio has quit [*.net *.split]
r4z3r has quit [*.net *.split]
c0ncealed has quit [*.net *.split]
Meow-J has quit [*.net *.split]
ldnunes has quit [*.net *.split]
c355e3b has quit [*.net *.split]
ixti has quit [*.net *.split]
kfpratt has quit [*.net *.split]
Spami has quit [*.net *.split]
crdpink has quit [*.net *.split]
julieeharshaw has quit [*.net *.split]
jordanm has quit [*.net *.split]
weaksauce has quit [*.net *.split]
ytti has quit [*.net *.split]
Bilge has quit [*.net *.split]
ElderFain has quit [*.net *.split]
RealMarc has quit [*.net *.split]
tubbo has quit [*.net *.split]
groundnuty has quit [*.net *.split]
galeido has quit [*.net *.split]
shanemcd has quit [*.net *.split]
djbkd has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
armyriad has quit [*.net *.split]
hackeron has quit [*.net *.split]
Puffball has quit [*.net *.split]
Jardayn has quit [*.net *.split]
BtcBen has quit [*.net *.split]
SenpaiSilver_ has quit [*.net *.split]
blackmesa has quit [*.net *.split]
arlek has quit [*.net *.split]
Gasher has quit [*.net *.split]
goodcodeguy has quit [*.net *.split]
Don_John has quit [*.net *.split]
fmcgeough has quit [*.net *.split]
cdg has quit [*.net *.split]
rcvalle has quit [*.net *.split]
blackgoat has quit [*.net *.split]
dhollinger has quit [*.net *.split]
BSaboia has quit [*.net *.split]
rippa has quit [*.net *.split]
Zackio has quit [*.net *.split]
duckpupp1 has quit [*.net *.split]
Tempesta has quit [*.net *.split]
dgncn has quit [*.net *.split]
Guest00-ru has quit [*.net *.split]
shaman42 has quit [*.net *.split]
kenndel_ has quit [*.net *.split]
nw has quit [*.net *.split]
peteyg has quit [*.net *.split]
segy has quit [*.net *.split]
Axy has quit [*.net *.split]
unreal has quit [*.net *.split]
cj has quit [*.net *.split]
jolts has quit [*.net *.split]
brainslug has quit [*.net *.split]
Synthead has quit [*.net *.split]
aredridel has quit [*.net *.split]
voxxit has quit [*.net *.split]
nfsnobody has quit [*.net *.split]
cibs has quit [*.net *.split]
fullstack has quit [*.net *.split]
kerunaru has quit [*.net *.split]
mfaeh has quit [*.net *.split]
shadoi has quit [*.net *.split]
kies^ has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
djellemah has quit [*.net *.split]
Morrolan has quit [*.net *.split]
nisstyre_ has quit [*.net *.split]
bradland has quit [*.net *.split]
moei has quit [*.net *.split]
MuffinPimp has quit [*.net *.split]
rideh- has quit [*.net *.split]
nerium has quit [*.net *.split]
intrigueD has quit [*.net *.split]
openstruct has quit [*.net *.split]
sphex has quit [*.net *.split]
devbug has quit [*.net *.split]
Icey has quit [*.net *.split]
hxegon has quit [*.net *.split]
bMalum has quit [*.net *.split]
Vingador has quit [*.net *.split]
treehug88 has quit [*.net *.split]
astrofog has quit [*.net *.split]
_rsc` has quit [*.net *.split]
crankharder has quit [*.net *.split]
diprotic has quit [*.net *.split]
KramerC has quit [*.net *.split]
gaf_ has quit [*.net *.split]
Brando753 has quit [*.net *.split]
ESpiney has quit [*.net *.split]
Todd has quit [*.net *.split]
m4rCsi_ has quit [*.net *.split]
speakingcode has quit [*.net *.split]
PaulCapestany has quit [*.net *.split]
cgfbee has quit [*.net *.split]
DenSchub has quit [*.net *.split]
rhg135 has quit [*.net *.split]
bakedb_ has quit [*.net *.split]
nlsun has quit [*.net *.split]
queequeg1 has quit [*.net *.split]
huyderman has quit [*.net *.split]
bogdanteleaga has quit [*.net *.split]
sts has quit [*.net *.split]
Muz has quit [*.net *.split]
malcolmva has quit [*.net *.split]
pushcx has quit [*.net *.split]
gypsydave5 has quit [*.net *.split]
_ko1 has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
skakri has quit [*.net *.split]
ahuman has quit [*.net *.split]
Shapeshifter has quit [*.net *.split]
ericwood has quit [*.net *.split]
justinmcp has quit [*.net *.split]
mattp__ has quit [*.net *.split]
bmn has quit [*.net *.split]
B1n4r10 has quit [*.net *.split]
firstdayonthejob has quit [*.net *.split]
synthroi_ has quit [*.net *.split]
cubicme has quit [*.net *.split]
countera1paratus has quit [*.net *.split]
mattwildig has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
railsForDaiz has quit [*.net *.split]
diegoviola has quit [*.net *.split]
haylon has quit [*.net *.split]
amclain has quit [*.net *.split]
dubek has quit [*.net *.split]
al2o3-cr has quit [*.net *.split]
A124 has quit [*.net *.split]
dstarh has quit [*.net *.split]
nachoman has quit [*.net *.split]
AlexRussia has quit [*.net *.split]
Abrin_AWAY has quit [*.net *.split]
sdothum has quit [*.net *.split]
rodfersou has quit [*.net *.split]
Spleeze has quit [*.net *.split]
Eiam has quit [*.net *.split]
olspookishmagus has quit [*.net *.split]
Dragooon has quit [*.net *.split]
hplar has quit [*.net *.split]
Antiarc has quit [*.net *.split]
Xiti has quit [*.net *.split]
sami has quit [*.net *.split]
dravine has quit [*.net *.split]
sysanthrope has quit [*.net *.split]
ruisantos has quit [*.net *.split]
apeiros has quit [*.net *.split]
dualbus has quit [*.net *.split]
bier_ has quit [*.net *.split]
eam has quit [*.net *.split]
eljimmy has quit [*.net *.split]
mc_fail has quit [*.net *.split]
wnd has quit [*.net *.split]
axisys has quit [*.net *.split]
hightower has quit [*.net *.split]
SirFunk has quit [*.net *.split]
heinrich5991 has quit [*.net *.split]
sjohnsen has quit [*.net *.split]
iszak has quit [*.net *.split]
__main__ has quit [*.net *.split]
duderonomy has quit [*.net *.split]
ItSANgo has quit [*.net *.split]
astrobunny has quit [*.net *.split]
Ankhers has quit [*.net *.split]
pragmatism has quit [*.net *.split]
UserInNeed has quit [*.net *.split]
tokik has quit [*.net *.split]
csaunders has quit [*.net *.split]
drale2k has quit [*.net *.split]
Paradox has quit [*.net *.split]
Outlastsheep has quit [*.net *.split]
gbailey has quit [*.net *.split]
passcod has quit [*.net *.split]
suffice has quit [*.net *.split]
lady3bean has quit [*.net *.split]
montyboy has quit [*.net *.split]
fold4 has quit [*.net *.split]
decaff has quit [*.net *.split]
ReK2GnULinuX has quit [*.net *.split]
gnarf has quit [*.net *.split]
xybre has quit [*.net *.split]
Kero has quit [*.net *.split]
nchambers has quit [*.net *.split]
[dmp] has quit [*.net *.split]
canton7 has quit [*.net *.split]
aibot has quit [*.net *.split]
Rutix has quit [*.net *.split]
zacts has quit [*.net *.split]
Log1x has quit [*.net *.split]
connor_goodwolf has quit [*.net *.split]
Freeaqingme has quit [*.net *.split]
matti has quit [*.net *.split]
bnagy has quit [*.net *.split]
n1colas has quit [*.net *.split]
Fraeon has quit [*.net *.split]
alexblom has quit [*.net *.split]
janelleb has quit [*.net *.split]
kitallis has quit [*.net *.split]
Esya has quit [*.net *.split]
devster31 has quit [*.net *.split]
gf3 has quit [*.net *.split]
crowell has quit [*.net *.split]
KervyN has quit [*.net *.split]
cyphactor has quit [*.net *.split]
sulky has quit [*.net *.split]
plonk has quit [*.net *.split]
angelixd has quit [*.net *.split]
tris has quit [*.net *.split]
zenguy_pc has quit [*.net *.split]
archaic has quit [*.net *.split]
woodruffw has quit [*.net *.split]
jericon has quit [*.net *.split]
KrzaQ has quit [*.net *.split]
lpvb has quit [*.net *.split]
sekrit has quit [*.net *.split]
russt has quit [*.net *.split]
perry has quit [*.net *.split]
nirix_ has quit [*.net *.split]
ec\ has quit [*.net *.split]
kadoppe has quit [*.net *.split]
rheddry has quit [*.net *.split]
bodie_ has quit [*.net *.split]
Jamo__ has quit [*.net *.split]
kaleido has quit [*.net *.split]
pietr0 has quit [*.net *.split]
bob_f_ has quit [*.net *.split]
Mr0rris0 has quit [*.net *.split]
Trynemjoel2 has quit [*.net *.split]
snapcase has quit [*.net *.split]
Flipez has quit [*.net *.split]
jimcroft has quit [*.net *.split]
shiver has quit [*.net *.split]
sjums has quit [*.net *.split]
raimumizu has quit [*.net *.split]
dyce_ has quit [*.net *.split]
patronus_ has quit [*.net *.split]
patteh_ has quit [*.net *.split]
zackattack has quit [*.net *.split]
norc has quit [*.net *.split]
kobain has quit [*.net *.split]
zapata has quit [*.net *.split]
araujo has quit [*.net *.split]
\pub\bash0r has quit [*.net *.split]
lele has quit [*.net *.split]
gigetoo has quit [*.net *.split]
yokel has quit [*.net *.split]
e4xit has quit [*.net *.split]
Scient has quit [*.net *.split]
Boohbah has quit [*.net *.split]
aspiers has quit [*.net *.split]
ljarvis has quit [*.net *.split]
Fire-Dragon-DoL has quit [*.net *.split]
jtoy has quit [*.net *.split]
pwnd_nsfw has quit [*.net *.split]
papercod1 has quit [*.net *.split]
fn2187__ has quit [*.net *.split]
tomaz___ has quit [*.net *.split]
Guest21405 has quit [*.net *.split]
mhenrixon has quit [*.net *.split]
wjimenez5271 has quit [*.net *.split]
joast has quit [*.net *.split]
heidar has quit [*.net *.split]
isene has quit [*.net *.split]
ardian has quit [*.net *.split]
mistym has quit [*.net *.split]
DrCode has quit [*.net *.split]
maxmanders has quit [*.net *.split]
clamstar has quit [*.net *.split]
greenhat has quit [*.net *.split]
fourq has quit [*.net *.split]
funnel has quit [*.net *.split]
jzigmund_ has quit [*.net *.split]
Shidash_ has quit [*.net *.split]
MyMind has quit [*.net *.split]
Emmanuel_Chanel has quit [*.net *.split]
samuelkadolph has quit [*.net *.split]
spectra has quit [*.net *.split]
jtdowney has quit [*.net *.split]
sunya7a has quit [*.net *.split]
ujjain has quit [*.net *.split]
jtperreault has quit [*.net *.split]
lannonbr has quit [*.net *.split]
saltsa has quit [*.net *.split]
go|dfish has quit [*.net *.split]
moshee has quit [*.net *.split]
brendan- has quit [*.net *.split]
rcs has quit [*.net *.split]
shortdudey123 has quit [*.net *.split]
hfp has quit [*.net *.split]
Rasi has quit [*.net *.split]
pjaspers has quit [*.net *.split]
Radar has quit [*.net *.split]
spacemud has quit [*.net *.split]
WebDawg has quit [*.net *.split]
majjoha has quit [*.net *.split]
EdwardIII has quit [*.net *.split]
paultreny has quit [*.net *.split]
Kuukunen has quit [*.net *.split]
raenk has quit [*.net *.split]
nertzy has quit [*.net *.split]
scottymeuk has quit [*.net *.split]
MissionCritical has quit [*.net *.split]
BlindSight has quit [*.net *.split]
uxp_ has quit [*.net *.split]
matled has quit [*.net *.split]
miah has quit [*.net *.split]
callumacrae has quit [*.net *.split]
jinie has quit [*.net *.split]
donnoc has quit [*.net *.split]
tvsutton has quit [*.net *.split]
th__ has quit [*.net *.split]
Eising has quit [*.net *.split]
timonv1 has quit [*.net *.split]
jud has quit [*.net *.split]
tenderlo_ has quit [*.net *.split]
coffeejunk has quit [*.net *.split]
yorickpeterse has quit [*.net *.split]
diego_k has quit [*.net *.split]
xsdg has quit [*.net *.split]
joconcepts_ has quit [*.net *.split]
mclee has quit [*.net *.split]
jokester has quit [*.net *.split]
Koshian has quit [*.net *.split]
Dreamer3 has quit [*.net *.split]
zarubin has quit [*.net *.split]
\13k has quit [*.net *.split]
DefV_ has quit [*.net *.split]
kriskropd has quit [*.net *.split]
[ace] has quit [*.net *.split]
FifthWall has quit [*.net *.split]
thejoecarroll_ has quit [*.net *.split]
havenwood has quit [*.net *.split]
oz has quit [*.net *.split]
Prira_ has quit [*.net *.split]
utkarsh_ has quit [*.net *.split]
rethi has quit [*.net *.split]
rikai has quit [*.net *.split]
davidcelis_ has quit [*.net *.split]
RegulationD has quit [*.net *.split]
tabakhase has quit [*.net *.split]
Olipro has quit [*.net *.split]
Guest9146 has quit [*.net *.split]
juanfra has quit [*.net *.split]
epitron has quit [*.net *.split]
bqscott has quit [*.net *.split]
FastJack has quit [*.net *.split]
reaVer has quit [*.net *.split]
eregon has quit [*.net *.split]
Guest96677 has quit [*.net *.split]
mattpatt has quit [*.net *.split]
IceDragon has quit [*.net *.split]
AnoHito_ has quit [*.net *.split]
varesa has quit [*.net *.split]
df has quit [*.net *.split]
romero_ has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
kappy has quit [*.net *.split]
peterhu has quit [*.net *.split]
Junaos has quit [*.net *.split]
bahar has quit [*.net *.split]
Ariadeno has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
quarcu has quit [*.net *.split]
code_ has quit [*.net *.split]
kenichi has quit [*.net *.split]
raldu has quit [*.net *.split]
edulix_ has quit [*.net *.split]
john2 has quit [*.net *.split]
ElSif has quit [*.net *.split]
inukshuk has quit [*.net *.split]
kallisti5 has quit [*.net *.split]
hfp_work has quit [*.net *.split]
lucas has quit [*.net *.split]
philtr_ has quit [*.net *.split]
cscheib_ has quit [*.net *.split]
tomaw has quit [*.net *.split]
j416 has quit [*.net *.split]
rfi has quit [*.net *.split]
Helheim has quit [*.net *.split]
chrisarcand has quit [*.net *.split]
jsaak has quit [*.net *.split]
ryotarai has quit [*.net *.split]
Guest925 has quit [*.net *.split]
Takumo has quit [*.net *.split]
Raboo has quit [*.net *.split]
pwned has quit [*.net *.split]
bakingbread has quit [*.net *.split]
ltd_ has quit [*.net *.split]
klaas has quit [*.net *.split]
croberts has quit [*.net *.split]
sonOfRa has quit [*.net *.split]
darix has quit [*.net *.split]
forgot has quit [*.net *.split]
mame3 has quit [*.net *.split]
KillerFox has quit [*.net *.split]
hypnosb has quit [*.net *.split]
TheBrayn has quit [*.net *.split]
karapetyan has quit [*.net *.split]
graffix222 has quit [*.net *.split]
helpa has quit [*.net *.split]
jeanlinu_ has quit [*.net *.split]
despai has quit [*.net *.split]
Aviio has quit [*.net *.split]
Azulinho has quit [*.net *.split]
justin_pdx has quit [*.net *.split]
jxs_ has quit [*.net *.split]
Disavowed has quit [*.net *.split]
chadhs has quit [*.net *.split]
dopie has quit [*.net *.split]
dionysus69 has quit [*.net *.split]
jgpawletko has quit [*.net *.split]
pdoherty has quit [*.net *.split]
DexterLB has quit [*.net *.split]
AustinMatherne has quit [*.net *.split]
bubbys has quit [*.net *.split]
Canar has quit [*.net *.split]
mg^ has quit [*.net *.split]
Lildirt has quit [*.net *.split]
theRealAlexz has quit [*.net *.split]
bigkevmcd has quit [*.net *.split]
da_man has quit [*.net *.split]
david2 has quit [*.net *.split]
oddmunds has quit [*.net *.split]
Karunamon has quit [*.net *.split]
slackR has quit [*.net *.split]
hakunin has quit [*.net *.split]
Danielss89 has quit [*.net *.split]
aep has quit [*.net *.split]
RushPL has quit [*.net *.split]
claw has quit [*.net *.split]
joaomdmoura__ has quit [*.net *.split]
aef has quit [*.net *.split]
junior2 has quit [*.net *.split]
bafbomb has quit [*.net *.split]
xMopxShell has quit [*.net *.split]
lguardiola has quit [*.net *.split]
sarbs has quit [*.net *.split]
bhaak has quit [*.net *.split]
janno has quit [*.net *.split]
lnx has quit [*.net *.split]
Bish has quit [*.net *.split]
tessier-ashpool has quit [*.net *.split]
arthurnn has quit [*.net *.split]
e has quit [*.net *.split]
okdas has quit [*.net *.split]
hogetaro has quit [*.net *.split]
Mr_Pancake has quit [*.net *.split]
watersoul has quit [*.net *.split]
Dreamer3_ has quit [*.net *.split]
pocketprotector has quit [*.net *.split]
crank1988_ has quit [*.net *.split]
raz has quit [*.net *.split]
ex0ns has quit [*.net *.split]
low-profile has quit [*.net *.split]
isomorphismes has quit [*.net *.split]
nuck has quit [*.net *.split]
mahlon_ has quit [*.net *.split]
PaulePanter has quit [*.net *.split]
dfoolz has quit [*.net *.split]
sesquipedalian has quit [*.net *.split]
kiki_lamb has quit [*.net *.split]
badeball has quit [*.net *.split]
Davey has quit [*.net *.split]
lianj has quit [*.net *.split]
pleiosaur has quit [*.net *.split]
edwardly has quit [*.net *.split]
moufl has quit [*.net *.split]
conrfrmn has quit [*.net *.split]
j2k has quit [*.net *.split]
SilentEcho has quit [*.net *.split]
mosez has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
Omni_ has quit [*.net *.split]
zenspider has quit [*.net *.split]
wof_ has quit [*.net *.split]
headius has quit [*.net *.split]
iamvery has quit [*.net *.split]
SebastianThorn has quit [*.net *.split]
nwhirschfeld_ has quit [*.net *.split]
ged_ has quit [*.net *.split]
RazorX| has quit [*.net *.split]
AccordLTN has quit [*.net *.split]
parus has quit [*.net *.split]
olblak has quit [*.net *.split]
genpaku has quit [*.net *.split]
xpt has quit [*.net *.split]
NfNitLoop has quit [*.net *.split]
stevednd has quit [*.net *.split]
kloeri has quit [*.net *.split]
iamayam has quit [*.net *.split]
konopka has quit [*.net *.split]
ironcame1 has quit [*.net *.split]
kith has quit [*.net *.split]
sonne_ has quit [*.net *.split]
lagweezle has quit [*.net *.split]
dasher^0_o has quit [*.net *.split]
Darkwater has quit [*.net *.split]
adaedra has quit [*.net *.split]
thomas has quit [*.net *.split]
moredhel has quit [*.net *.split]
moua has quit [*.net *.split]
DylanJ has quit [*.net *.split]
crystal77 has quit [*.net *.split]
infernix has quit [*.net *.split]
Dimik has quit [*.net *.split]
meal has quit [*.net *.split]
bihi has quit [*.net *.split]
JoshL has quit [*.net *.split]
kp666 has quit [*.net *.split]
Eiam_ has quit [*.net *.split]
jhass has quit [*.net *.split]
x77686d has quit [*.net *.split]
jlyndon has quit [*.net *.split]
dmarr has quit [*.net *.split]
HashNuke has quit [*.net *.split]
Trieste has quit [*.net *.split]
halfdan has quit [*.net *.split]
Shaboum has quit [*.net *.split]
rdavila has quit [*.net *.split]
jayc0b0 has quit [*.net *.split]
stannard_ has quit [*.net *.split]
amargherio has quit [*.net *.split]
[Butch] has quit [*.net *.split]
RalfJ has quit [*.net *.split]
biberu has quit [*.net *.split]
ponga has quit [*.net *.split]
linduxed has quit [*.net *.split]
tjohnson has quit [*.net *.split]
babblebre has quit [*.net *.split]
hayden_ has quit [*.net *.split]
b|ackwolf has quit [*.net *.split]
Ishido has quit [*.net *.split]
blackms has quit [*.net *.split]
kedare has quit [*.net *.split]
vondruch has quit [*.net *.split]
dede has quit [*.net *.split]
robbyoconnor has quit [*.net *.split]
colegatron has quit [*.net *.split]
flughafen has quit [*.net *.split]
Asher has quit [*.net *.split]
cpup has quit [*.net *.split]
gix has quit [*.net *.split]
braincrash has quit [*.net *.split]
noodle has quit [*.net *.split]
KnownSyntax has quit [*.net *.split]
z3uS has quit [*.net *.split]
RTG` has quit [*.net *.split]
Mio-chan has quit [*.net *.split]
j3r0 has quit [*.net *.split]
gregf has quit [*.net *.split]
whippythellama has quit [*.net *.split]
lsmola has quit [*.net *.split]
IanMalcolm has quit [*.net *.split]
dextertzu has quit [*.net *.split]
minimalism has quit [*.net *.split]
brixen has quit [*.net *.split]
G has quit [*.net *.split]
bweston92 has quit [*.net *.split]
matp has quit [*.net *.split]
tekacs has quit [*.net *.split]
Keltia has quit [*.net *.split]
spastorino has quit [*.net *.split]
shelling__ has quit [*.net *.split]
CustosLim3n has quit [*.net *.split]
irick has quit [*.net *.split]
Suntzu has quit [*.net *.split]
cout has quit [*.net *.split]
dukedave_ has quit [*.net *.split]
deeprave has quit [*.net *.split]
jmcc_______ has quit [*.net *.split]
chris2 has quit [*.net *.split]
yonatankoren has quit [*.net *.split]
charles81 has quit [*.net *.split]
x0f has quit [*.net *.split]
wedgwood_ has quit [*.net *.split]
ja has quit [*.net *.split]
bestie has quit [*.net *.split]
twodayslate has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
Guest12896_ has quit [*.net *.split]
trajing has quit [*.net *.split]
thomasfedb has quit [*.net *.split]
livcd has quit [*.net *.split]
greister has quit [*.net *.split]
ikonia has quit [*.net *.split]
rgs has quit [*.net *.split]
beagles has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
vqrs has quit [*.net *.split]
musl_ has quit [*.net *.split]
sapslaj has quit [*.net *.split]
pabs has quit [*.net *.split]
matt_d has quit [*.net *.split]
wilbert has quit [*.net *.split]
atom3 has quit [*.net *.split]
Anderson69s_Deb has quit [*.net *.split]
sauvin has quit [*.net *.split]
LnxBil has quit [*.net *.split]
unsymbol has quit [*.net *.split]
fullofcaffeine has quit [*.net *.split]
crystal7_ has quit [*.net *.split]
steffkes has quit [*.net *.split]
trinaldi has quit [*.net *.split]
allcentury has quit [*.net *.split]
pawnbox has quit [*.net *.split]
godzillaenlacasa has quit [*.net *.split]
floatingpoint has quit [*.net *.split]
s00pcan has quit [*.net *.split]
sneakerhax has quit [*.net *.split]
Guest38 has quit [*.net *.split]
sgambino has quit [*.net *.split]
malconis has quit [*.net *.split]
ljames has quit [*.net *.split]
BTRE has quit [*.net *.split]
InternetFriend has quit [*.net *.split]
johnmilton has quit [*.net *.split]
zenlot has quit [*.net *.split]
FooMunki has quit [*.net *.split]
kies has quit [*.net *.split]
codecop has quit [*.net *.split]
eurialo has quit [*.net *.split]
ghoti has quit [*.net *.split]
jeffk4 has quit [*.net *.split]
arthurix_ has quit [*.net *.split]
zacstewart has quit [*.net *.split]
dunj3 has quit [*.net *.split]
gagrio has quit [*.net *.split]
gregf_ has quit [*.net *.split]
microt has quit [*.net *.split]
kent\n has quit [*.net *.split]
TheMoonMaster has quit [*.net *.split]
knight_ has quit [*.net *.split]
Amnez777 has quit [*.net *.split]
rvchangue has quit [*.net *.split]
`derpy has quit [*.net *.split]
YaknotiS has quit [*.net *.split]
Djole has quit [*.net *.split]
v0n has quit [*.net *.split]
jtdoncas has quit [*.net *.split]
svkurowski has quit [*.net *.split]
cfloare has quit [*.net *.split]
bougyman has quit [*.net *.split]
rtl has quit [*.net *.split]
mozzarella has quit [*.net *.split]
hyperdrive has quit [*.net *.split]
Nilium has quit [*.net *.split]
ceej has quit [*.net *.split]
deimos has quit [*.net *.split]
daxroc has quit [*.net *.split]
izaac has quit [*.net *.split]
golgaroth has quit [*.net *.split]
beawesomeinstead has quit [*.net *.split]
bluntman has quit [*.net *.split]
Silex has quit [*.net *.split]
avelldiroll has quit [*.net *.split]
gsingh93 has quit [*.net *.split]
humd1ng3r has quit [*.net *.split]
M-Technic has quit [*.net *.split]
nug has quit [*.net *.split]
wlanboy has quit [*.net *.split]
giraffe has quit [*.net *.split]
sirecote has quit [*.net *.split]
cats has quit [*.net *.split]
Guest88888 has quit [*.net *.split]
j0bk has quit [*.net *.split]
fumduq has quit [*.net *.split]
valeri_ufo has quit [*.net *.split]
fumk has quit [*.net *.split]
Roa has quit [*.net *.split]
mikeiniowa has quit [*.net *.split]
niko has quit [*.net *.split]
frode15243 has quit [*.net *.split]
ggherdov has quit [*.net *.split]
whiteline has quit [*.net *.split]
DarthGandalf has quit [*.net *.split]
ssm has quit [*.net *.split]
sindork has quit [*.net *.split]
vali has quit [*.net *.split]
psmolen has quit [*.net *.split]
Guest24280 has quit [*.net *.split]
sunya7a_ has quit [*.net *.split]
bove has quit [*.net *.split]
mmasaki has quit [*.net *.split]
Lightsword has quit [*.net *.split]
tinnvec has quit [*.net *.split]
bcavileer has quit [*.net *.split]
veloutin has quit [*.net *.split]
strongcode has quit [*.net *.split]
hoylemd has quit [*.net *.split]
jidar has quit [*.net *.split]
ammar_ has quit [*.net *.split]
marens_ has quit [*.net *.split]
NightMonkey has quit [*.net *.split]
Krypt has quit [*.net *.split]
marienz has quit [*.net *.split]
stryek has quit [*.net *.split]
Evan- has quit [*.net *.split]
Guest121 has quit [*.net *.split]
nitrix has quit [*.net *.split]
elaptics has quit [*.net *.split]
mhb has quit [*.net *.split]
ruurd has quit [*.net *.split]
theRoUS has quit [*.net *.split]
D9 has quit [*.net *.split]
DEac- has quit [*.net *.split]
ekem has quit [*.net *.split]
ghr has quit [*.net *.split]
emq has quit [*.net *.split]
skullcrasher has quit [*.net *.split]
Drakevr has quit [*.net *.split]
devyn has quit [*.net *.split]
ltp has quit [*.net *.split]
slash_nick has quit [*.net *.split]
tercenya_ has quit [*.net *.split]
tommylommykins has quit [*.net *.split]
qpls_ has quit [*.net *.split]
swistak35 has quit [*.net *.split]
_mak has quit [*.net *.split]
nomadic_ has quit [*.net *.split]
kaspergrubbe has quit [*.net *.split]
tw1sted has quit [*.net *.split]
yasu_ has quit [*.net *.split]
kpwarr has quit [*.net *.split]
Sou|cutter has quit [*.net *.split]
guacamole has quit [*.net *.split]
tsunamie has quit [*.net *.split]
joevandyk has quit [*.net *.split]
adam| has quit [*.net *.split]
mgorbach has quit [*.net *.split]
danieli has quit [*.net *.split]
Gnubie_ has quit [*.net *.split]
ccooke has quit [*.net *.split]
Jello_Raptor has quit [*.net *.split]
akkad has quit [*.net *.split]
joeyjones has quit [*.net *.split]
braidn has quit [*.net *.split]
Rush has quit [*.net *.split]
vifino has quit [*.net *.split]
ready has quit [*.net *.split]
ctrlrsf has quit [*.net *.split]
berserk_ren has quit [*.net *.split]
Elysia has quit [*.net *.split]
nickjj has quit [*.net *.split]
drbrain has quit [*.net *.split]
tylersmith has quit [*.net *.split]
akitada has quit [*.net *.split]
hinbody has quit [*.net *.split]
ELLIOTTCABLE has quit [*.net *.split]
zack6849 has quit [*.net *.split]
andersh has quit [*.net *.split]
rflot has quit [*.net *.split]
avenj has quit [*.net *.split]
yxhuvvd has quit [*.net *.split]
boxrick1 has quit [*.net *.split]
madhatter has quit [*.net *.split]
tonini has quit [*.net *.split]
sfr^ has quit [*.net *.split]
Kamilion has quit [*.net *.split]
machty_ has quit [*.net *.split]
tpendragon has quit [*.net *.split]
vcoinminer has quit [*.net *.split]
saneax has quit [*.net *.split]
jabreity has quit [*.net *.split]
catbusters has quit [*.net *.split]
sevenfourk has quit [*.net *.split]
jord has quit [*.net *.split]
iooner has quit [*.net *.split]
sideshowcoder has quit [*.net *.split]
zipkid has quit [*.net *.split]
alem0lars has quit [*.net *.split]
cardoni has quit [*.net *.split]
angiebadillo has quit [*.net *.split]
cbetta has quit [*.net *.split]
pfg has quit [*.net *.split]
avdi has quit [*.net *.split]
Miron has quit [*.net *.split]
schaary has quit [*.net *.split]
TDJACR has quit [*.net *.split]
S01780 has quit [*.net *.split]
zz_denym_ has quit [*.net *.split]
DarkBushido has quit [*.net *.split]
sorah_ has quit [*.net *.split]
SegFaultAX has quit [*.net *.split]
pmarreck has quit [*.net *.split]
DanKnox has quit [*.net *.split]
camilasan has quit [*.net *.split]
Phanes has quit [*.net *.split]
Seich has quit [*.net *.split]
mroth has quit [*.net *.split]
ddv has quit [*.net *.split]
Billias has quit [*.net *.split]
incomprehensibly has quit [*.net *.split]
twistedpixels has quit [*.net *.split]
llua has quit [*.net *.split]
Lloyd has quit [*.net *.split]
err_ok has quit [*.net *.split]
alxndr has quit [*.net *.split]
programmerq has quit [*.net *.split]
Steve_Jo1 has quit [*.net *.split]
awk has quit [*.net *.split]
shtirlic has quit [*.net *.split]
Fridtjof has quit [*.net *.split]
cajone has quit [*.net *.split]
pelegreno has quit [*.net *.split]
Skelz0r has quit [*.net *.split]
ereslibre_laptop has quit [*.net *.split]
Guest98597 has quit [*.net *.split]
redondos has quit [*.net *.split]
hollywood has quit [*.net *.split]
TomyLobo has quit [*.net *.split]
sepp2k has quit [*.net *.split]
jhill has quit [*.net *.split]
danzilio has quit [*.net *.split]
JStoker has quit [*.net *.split]
spk has quit [*.net *.split]
thesheff17 has quit [*.net *.split]
gmci has quit [*.net *.split]
tejasmanohar has quit [*.net *.split]
workmad3 has quit [*.net *.split]
davedev24 has quit [*.net *.split]
poguez_ has quit [*.net *.split]
dopamean_ has quit [*.net *.split]
YankNYC has quit [*.net *.split]
anirban has quit [*.net *.split]
zast has quit [*.net *.split]
tristanp_ has quit [*.net *.split]
_ht has quit [*.net *.split]
ziyadb has quit [*.net *.split]
PlasmaStar has quit [*.net *.split]
[spoiler] has quit [*.net *.split]
nullwarp has quit [*.net *.split]
existensil has quit [*.net *.split]
t-richards has quit [*.net *.split]
LoganG has quit [*.net *.split]
eggoez has quit [*.net *.split]
meinside has quit [*.net *.split]
Guest59455 has quit [*.net *.split]
swgillespie has quit [*.net *.split]
Arcaire has quit [*.net *.split]
iamdevnul has quit [*.net *.split]
ProofTechnique has quit [*.net *.split]
Veejay has quit [*.net *.split]
Sigma00 has quit [*.net *.split]
St1gma has quit [*.net *.split]
hanmac has quit [*.net *.split]
Platini has quit [*.net *.split]
sluukkonen has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
Ox0dea has quit [*.net *.split]
contradictioned has quit [*.net *.split]
jaiks has quit [*.net *.split]
epochwolf has quit [*.net *.split]
Bugboy1028 has quit [*.net *.split]
heftig has quit [*.net *.split]
Liam` has quit [*.net *.split]
Guest4184______ has quit [*.net *.split]
colstrom has quit [*.net *.split]
caw has quit [*.net *.split]
jcp has quit [*.net *.split]
pizzaops has quit [*.net *.split]
ELCALOR has quit [*.net *.split]
jxf has quit [*.net *.split]
skarn has quit [*.net *.split]
Cork has quit [*.net *.split]
chridal has quit [*.net *.split]
borkdude_ has quit [*.net *.split]
bauruine has quit [*.net *.split]
Klumben has quit [*.net *.split]
hays has quit [*.net *.split]
chihhsin has quit [*.net *.split]
djcp has quit [*.net *.split]
glacius has quit [*.net *.split]
mrfooo has quit [*.net *.split]
Tharbakim has quit [*.net *.split]
Sthebig has quit [*.net *.split]
roger_rabbit has quit [*.net *.split]
imajes has quit [*.net *.split]
alnewkirk has quit [*.net *.split]
blackjid has quit [*.net *.split]
shevy has quit [*.net *.split]
JoL1hAHN has quit [*.net *.split]
Luna_Moonfang has quit [*.net *.split]
troter_______ has quit [*.net *.split]
duoi has quit [*.net *.split]
twe4ked has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
cschneid has quit [*.net *.split]
LBRapid has quit [*.net *.split]
mahk has quit [*.net *.split]
mrsolo has quit [*.net *.split]
braderhart has quit [*.net *.split]
jpinnix_______ has quit [*.net *.split]
acerna has quit [*.net *.split]
benlakey has quit [*.net *.split]
bttf has quit [*.net *.split]
Y_Ichiro has quit [*.net *.split]
akahn has quit [*.net *.split]
zzak___ has quit [*.net *.split]
hostess has quit [*.net *.split]
ozzloy has quit [*.net *.split]
pipework has quit [*.net *.split]
adambeynon has quit [*.net *.split]
im0b has quit [*.net *.split]
yo61 has quit [*.net *.split]
jazzonmymind has quit [*.net *.split]
Meeh_ has quit [*.net *.split]
moss has quit [Max SendQ exceeded]
kalzz has quit [Max SendQ exceeded]
johnny56_ has quit [Max SendQ exceeded]
kalz has quit [Max SendQ exceeded]
cookiez has quit [Ping timeout: 264 seconds]
cookiez has joined #ruby
SenpaiSilver_ has joined #ruby
kalzz has joined #ruby
dlitvak has joined #ruby
majoh has joined #ruby
B1n4r10 has joined #ruby
tobias_ has joined #ruby
rdark has joined #ruby
bradland has joined #ruby
unsymbol has joined #ruby
MuffinPimp has joined #ruby
JoshL has joined #ruby
mary5030 has joined #ruby
bMalum has joined #ruby
rizenine has joined #ruby
gmci has joined #ruby
gregf has joined #ruby
sapslaj has joined #ruby
tenderlo_ has joined #ruby
shortdudey123 has joined #ruby
forgot has joined #ruby
ryotarai has joined #ruby
marsjaninzmarsa has quit [Max SendQ exceeded]
manveru has quit [Max SendQ exceeded]
phrozen77 has quit [Max SendQ exceeded]
Hobbyboy has quit [Max SendQ exceeded]
rfv has quit [Max SendQ exceeded]
cstrahan has quit [Max SendQ exceeded]
Zarthus has quit [Max SendQ exceeded]
tim_s007 has quit [Max SendQ exceeded]
marsjaninzmarsa has joined #ruby
Zarthus has joined #ruby
baweaver has joined #ruby
Hobbyboy has joined #ruby
Hobbyboy has quit [Changing host]
Hobbyboy has joined #ruby
tim_s007 has joined #ruby
johnny56_ has joined #ruby
phrozen77 has joined #ruby
cstrahan has joined #ruby
manveru has joined #ruby
sp4rrow has joined #ruby
kalz has joined #ruby
nocontrol has joined #ruby
nocontrol has quit [Client Quit]
rfv has joined #ruby
cpup has joined #ruby
shanemcd has joined #ruby
dbugger has joined #ruby
dbugger has left #ruby [#ruby]
<shevy>
wow
<shevy>
openstruct is in da house
last_staff has joined #ruby
Cohedrin has joined #ruby
baweaver has quit [Ping timeout: 252 seconds]
<LnxBil>
drbrain: I rewrote the code with OpenStruct only to find out that instance_variables is still not set and I cannot query the attributes directly (only via .to_h.keys)
jayc0b0 has joined #ruby
Gadgetoid has joined #ruby
michael_mbp has joined #ruby
dlitvak has quit [Remote host closed the connection]
<LnxBil>
Ox0dea: Thank you. I have two lines actually: ret.instance_variable_set("@#{k}", v); ret.instance_eval("def #{k}; @#{k}; end")
myntcake has joined #ruby
unreal has joined #ruby
shanemcd has quit [Remote host closed the connection]
wldcordeiro has joined #ruby
dlitvak has joined #ruby
<Ox0dea>
LnxBil: I won't presume to know more about what you're trying to do than you do, but that sure seems like an awful lot of machinery where a Hash might suffice.
<Ox0dea>
This *is* Ruby, though, so more power to ya. :P
<LnxBil>
Ox0dea: I want it to feel like an ActiveRecord
<Papierkorb>
LnxBil: to the second statement, you can do without evil eval: ret.singleton_class.instance_exec{ attr_reader(k) }
justbleed has joined #ruby
justbleed is now known as TomPeed
solars has joined #ruby
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bronson has joined #ruby
chouhoul_ has joined #ruby
swills has joined #ruby
<LnxBil>
Papierkorb: Thank you. Other suggested singleton, too. It works. I know that eval is more insecure, but this is more secure? Because of the singleton or why exactly?
chouhoul_ has quit [Remote host closed the connection]
chouhoul_ has joined #ruby
<Papierkorb>
LnxBil: It's not more secure (as long that 'k' is not user controlled), but easier to read and less magical to me. Also, code linters understand it, whereas eval is just a random string to such tools
symm- has joined #ruby
<Ox0dea>
Never mind that `eval` is dog-slow.
LoneHerm_ has joined #ruby
bronson has quit [Ping timeout: 252 seconds]
<shadoi>
nerium: about your question before about querying deeply nested hashes, I suggest using JQ (there are ruby bindings)
<kuroro>
hi everyoone. i have 4+ years of rubyonrails/javascript experience and currently available for remote contract work. if anyone is looking, PM me :)
idefine has quit [Ping timeout: 252 seconds]
BrunoSaboia has joined #ruby
jenrzzz has joined #ruby
<lvn>
you're from canada?
RE has left #ruby [#ruby]
stannard has quit [Remote host closed the connection]
stannard has joined #ruby
Rodya_ has quit [Ping timeout: 250 seconds]
shanemcd has quit [Ping timeout: 248 seconds]
laphlaw has quit [Ping timeout: 252 seconds]
Respek has quit [Quit: gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 250 seconds]
<baweaver>
kuroro: y'might mention it in ruby-offtopic as well
<baweaver>
look up rails-link Slack, they have a fairly extensive jobs board on there.
<kuroro>
lvn: yes
n008f4g_ has quit [Ping timeout: 252 seconds]
Aviio has joined #ruby
<kuroro>
baweaver: thanks! i'll look it up
B1n4r10 has quit [Ping timeout: 260 seconds]
FernandoBasso has joined #ruby
RudolphFenz has joined #ruby
jgpawletko has joined #ruby
jgpawletko has quit [Client Quit]
n008f4g_ has joined #ruby
Abrin has left #ruby [#ruby]
jenrzzz has joined #ruby
goodcodeguy has joined #ruby
Snowy has joined #ruby
Rickmasta has joined #ruby
idefine has joined #ruby
shanemcd has joined #ruby
shanemcd has quit [Remote host closed the connection]
cpup has quit [Ping timeout: 250 seconds]
djbkd has joined #ruby
cpup has joined #ruby
Respek has joined #ruby
allcentury has joined #ruby
flopsec- has joined #ruby
B1n4r10 has joined #ruby
TobiG77 has joined #ruby
tobias_ has quit [Ping timeout: 248 seconds]
duckpupp1 has joined #ruby
seth_ has joined #ruby
<seth_>
just wondering if this is a bug? `((BigDecimal.new(5898) / 181) * 181).to_i == 5897`
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
Snowy has quit [Quit: ragequit]
uglybandersnatch has joined #ruby
counterapparatus has quit [Ping timeout: 276 seconds]
fullofcaffeine has quit [Remote host closed the connection]
<Canar>
/help mode
<Canar>
/help mode
baweaver has quit [Remote host closed the connection]
<Canar>
argh sorrt
lacuna has joined #ruby
william3 has joined #ruby
thevaliantx has joined #ruby
<shevy>
haha
x77686d has quit [Quit: x77686d]
<shevy>
/help sort
fullofcaffeine has joined #ruby
idefine has quit [Remote host closed the connection]
dn` has quit [Quit: dn`]
william3 has quit [Ping timeout: 260 seconds]
<tobiasvl>
Canar: what are you trying to do
<Canar>
tobiasvl: not fail
<Canar>
:P
<Ox0dea>
At what?
fullofcaffeine has quit [Remote host closed the connection]
<Canar>
get help on the mode command in weechat
binaryplease has joined #ruby
<tobiasvl>
/help mode
<tobiasvl>
I suppose
<tobiasvl>
no space in front
<Canar>
yes
<tobiasvl>
I thought you were trying to summon the ruby[bot]
mary5030_ has joined #ruby
<Canar>
no, just failing
idefine has joined #ruby
uglybandersnatch has quit [Ping timeout: 250 seconds]
KensoDev has joined #ruby
fullofcaffeine has joined #ruby
seth_ has quit [Quit: Page closed]
stolid has joined #ruby
mary5030 has quit [Ping timeout: 248 seconds]
idefine has quit [Remote host closed the connection]
AlphaAtom has joined #ruby
tvw has quit [Remote host closed the connection]
moei has quit [Quit: Leaving...]
x77686d has joined #ruby
Azure has joined #ruby
mjc_ has joined #ruby
DenysLins has joined #ruby
<shevy>
Oh I can relate to that Canar ... I always mispasted via weechat and irssi
pandaant has joined #ruby
DenysLins has left #ruby [#ruby]
idefine has joined #ruby
ta_ has quit [Remote host closed the connection]
n008f4g_ has quit [Ping timeout: 250 seconds]
stolid has quit []
duckpupp1 has joined #ruby
jhack has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
jhack has quit [Client Quit]
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
intrigueD has joined #ruby
duckpupp1 has quit [Ping timeout: 276 seconds]
marr has joined #ruby
tulak has quit [Remote host closed the connection]
tulak has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Vingador has joined #ruby
zenlot_away has joined #ruby
idefine has quit [Remote host closed the connection]
josh1 has joined #ruby
josh1 is now known as vim_shim
Vingador has quit [Client Quit]
Vingador has joined #ruby
lvn has quit [Read error: Connection reset by peer]
trosborn has quit [Ping timeout: 248 seconds]
krobzaur has quit [Quit: WeeChat 0.4.2]
Trynemjoel has joined #ruby
jmignault has quit [Quit: Quittin' time, Ralph]
Rodya_ has joined #ruby
shanemcd has joined #ruby
idefine has joined #ruby
skade has joined #ruby
trosborn has joined #ruby
moei has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
baweaver has joined #ruby
hangelo has joined #ruby
shanemcd has quit [Ping timeout: 246 seconds]
volty has joined #ruby
Rodya_ has quit [Ping timeout: 260 seconds]
pdoherty has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
baweaver has quit [Remote host closed the connection]
hiljusti has joined #ruby
cpup has quit [Ping timeout: 276 seconds]
cpup has joined #ruby
IrishGringo has joined #ruby
Noxilex has quit [Ping timeout: 260 seconds]
elifoster has joined #ruby
uglybandersnatch has joined #ruby
shanemcd has joined #ruby
kies^ has joined #ruby
idefine has quit [Remote host closed the connection]
n008f4g_ has joined #ruby
idefine has joined #ruby
baweaver has joined #ruby
idefine has quit [Remote host closed the connection]
jayc0b0 has quit [Ping timeout: 276 seconds]
shanemcd has quit [Ping timeout: 276 seconds]
robbyoconnor has joined #ruby
augcesar has joined #ruby
augcesar has quit [Remote host closed the connection]
augcesar has joined #ruby
hangelo has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
audiodude has joined #ruby
malconis has joined #ruby
Cohedrin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<audiodude>
In case anyone is interested, I'll be livecoding the Railsbridge message board curriculum (https://t.co/EUgXPjUfTo) tonight at 6 PM PT, YouTube link is: https://t.co/eUGsbLtSfh
thevaliantx has quit [Quit: Leaving]
zmartAzz has joined #ruby
uglybandersnatch has quit [Ping timeout: 248 seconds]
Mr0rris0 has joined #ruby
justin_pdx has joined #ruby
chouhoul_ has quit [Remote host closed the connection]
Vingador has quit [Quit: Leaving]
dlitvak has quit [Remote host closed the connection]
sgambino has joined #ruby
malconis has quit [Ping timeout: 252 seconds]
ta_ has joined #ruby
Rodya_ has joined #ruby
shinnya has quit [Ping timeout: 252 seconds]
Aviio has quit [Remote host closed the connection]
kam270 has joined #ruby
KensoDev has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 246 seconds]
justin_pdx has quit [Quit: justin_pdx]
solars has quit [Ping timeout: 252 seconds]
sethrmo has joined #ruby
fmcgeough has joined #ruby
duderono_ has joined #ruby
n008f4g_ has quit [Ping timeout: 246 seconds]
<b|ackwolf>
does Ruby coerce a string that start with a digit to that digit and becomes truth?
<b|ackwolf>
*starts
uglybandersnatch has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
azure32 has joined #ruby
mattwildig has quit [Read error: Connection reset by peer]
spider-mario has quit [Remote host closed the connection]
mattwildig has joined #ruby
<audiodude>
b|ackwolf: no, everything in ruby is true except for false and nil
<audiodude>
or "truthy" rather
duderono_ has quit [Client Quit]
duckpupp1 has joined #ruby
duderono_ has joined #ruby
azure32 has quit [Client Quit]
karapetyan has joined #ruby
TheMoonMaster has joined #ruby
TheMoonMaster has joined #ruby
Rickmasta has quit [Ping timeout: 260 seconds]
pdoherty has quit [Ping timeout: 246 seconds]
<shevy>
b|ackwolf what a strange question :)
duderono_ has quit [Client Quit]
duckpupp1 has quit [Ping timeout: 250 seconds]
<b|ackwolf>
shevy, I saw languages do that. VimL, Perl
Rickmasta has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
<b|ackwolf>
shevy, Ben Orenstein one of the "thoughtbot" members said Ruby does that as well.
karapetyan has quit [Ping timeout: 248 seconds]
<b|ackwolf>
shevy, If you watched his first video from "Onramp to Vim"
sonOfRa has joined #ruby
tulak has quit [Remote host closed the connection]
sethrmo has quit [Ping timeout: 252 seconds]
Pisuke has joined #ruby
n008f4g_ has joined #ruby
<drbrain>
ruby only coerces numeric types to other numeric types via #coerce
<drbrain>
so "12345" can't become 12345 without you calling #Integer or #to_i
<drbrain>
s/you/someone
r4z3r has joined #ruby
<b|ackwolf>
drbrain, I didn't mean that.
Rodya_ has quit [Remote host closed the connection]
maletor has joined #ruby
<drbrain>
internally, "1" is as true as "a" or "" or " " * 10_000_000
duderono_ has joined #ruby
sp4rrow has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has quit [Quit: trosborn]
<drbrain>
b|ackwolf: ↑ ?
jenrzzz has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
chouhoulis has joined #ruby
<shevy>
b|ackwolf yeah I think perl does that a lot, that auto-coercion thingy. ruby went another way
idefine has joined #ruby
idefine has quit [Remote host closed the connection]
idefine has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
p0p0pr37 has joined #ruby
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
sp4rrow has joined #ruby
mattwildig has quit [Remote host closed the connection]