carterdea has quit [Read error: Connection reset by peer]
carterdea has joined #ruby
choke has joined #ruby
meshsmith has quit [Remote host closed the connection]
chouhoulis has joined #ruby
enyo_ has quit [Ping timeout: 258 seconds]
iogf has quit [Read error: Connection reset by peer]
StoneCyp1er has quit [Ping timeout: 272 seconds]
biberu has quit [Read error: Connection reset by peer]
StoneCypher has joined #ruby
My_Hearing has joined #ruby
harai has joined #ruby
juanda has quit [Ping timeout: 272 seconds]
ged has quit [Read error: Connection reset by peer]
mahlon has quit [Read error: Connection reset by peer]
Mon_Ouie has quit [Ping timeout: 248 seconds]
mahlon has joined #ruby
ged has joined #ruby
hotpancakes has quit [Remote host closed the connection]
jcao219 has joined #ruby
CloCkWeRX has joined #ruby
GodFather has quit [Ping timeout: 248 seconds]
walterheck has joined #ruby
synbit has quit [Quit: Page closed]
nofxx has joined #ruby
mrwn has quit [Ping timeout: 248 seconds]
ur5us has joined #ruby
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby
LuckyABA has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
daed has quit [Quit: leaving]
jackjackdripper has quit [Quit: Leaving.]
jenrzzz has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
ur5us has quit [Ping timeout: 258 seconds]
aredridel has quit [Ping timeout: 248 seconds]
iogf has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
borodin has joined #ruby
saneax is now known as saneax-_-|AFK
marxarel_ has joined #ruby
marxarelli has quit [Ping timeout: 246 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jcao219 has quit [Ping timeout: 258 seconds]
yehowyada has joined #ruby
walterheck has quit [Ping timeout: 245 seconds]
skweek has joined #ruby
LuckyABA has joined #ruby
marr has quit [Ping timeout: 248 seconds]
charliesome has joined #ruby
LuckyABA has quit [Client Quit]
charliesome has quit [Client Quit]
choke has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dnicole has quit [Remote host closed the connection]
<biox>
eelster: it's really nice so far! feels very friendly to noobs like myself.
<eelster>
biox: It's also just so powerul.
<eelster>
biox: How are you learning it, if you don't mind my asking?
<biox>
eelster: i am slowly learning that. i used the nokogiri gem and i'm really liking it so far.
ur5us has joined #ruby
<biox>
eelster: mostly by exposure, i use Chef at work so i'm learning as much ruby as that requires, and i've also gone through maybe half of the Headfirst Ruby book.
cdg has joined #ruby
<eelster>
biox: My two favorite ruby books are: _why's poignant guide to ruby (poignant.guide) and The Pickaxe
hahuang61 has joined #ruby
<eelster>
_why's poignant guide is free
<biox>
eelster: ah right. i started why's guide, but i didn't get very far in - loved all the foxes
<eelster>
biox: It's worthwhile going back at some point. It's by far the most fun programming book I've ever used.
<biox>
do you think it would be a good tool for a beginner to use?
<nofxx>
why's + chris pine learn to program
<eelster>
biox: It depends. _why's style is second to none, but you really have to like his style and really read the book
<nofxx>
biox, maybe pine first... you'll enjoy more why's
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<eelster>
Also, codecademy, while it teaches some bad practices, isn't really a terrible tool to start learning ruby on.
cdg has quit [Ping timeout: 245 seconds]
mrwn has joined #ruby
<biox>
that's great to know. tbh i forgot about why's guide, maybe i'll revisit it. headfirst ruby is fine but it's very dry
testuser1 has quit [Quit: Leaving.]
mikeric has quit []
<eelster>
The book that is kinda dry and kinda terse but is the bible on Ruby is The Pickaxe.
LuckyABA has joined #ruby
cippaciong has quit [Ping timeout: 265 seconds]
Devalo has joined #ruby
<biox>
i appreciate all the help. i would really like to start contributing code on github, which is one of my inspirations to dive deeper into ruby in the first place. but i'm headed home for the night - see you again sometime!
<eelster>
biox: Be safe!
<biox>
eelster: thank you! :)
<porfa>
hello
charliesome has joined #ruby
<eelster>
porfa: Hello!
cippaciong has joined #ruby
<porfa>
:)
unrecited has quit [Quit: Leaving]
<eelster>
porfa: Are you working on anything fun?
milardovich has quit []
<porfa>
yeah.. im doing some work for a friend and i’ve encountered a problem
<zenspider>
any onigiri fans available? know the difference between \k<name> and \g<name> ?
<porfa>
eelster the result of that code, leaves me with an empty column, because the first td of each row doesn’t contain any values, so i wish to pass that first td as a string
<porfa>
i think im having a language issue, sorry eelster
jhack has joined #ruby
username_ has quit [Ping timeout: 248 seconds]
Kug3lis has joined #ruby
nankyokusei has joined #ruby
dann__ has joined #ruby
dann__ has left #ruby [#ruby]
<zenspider>
eelster: you have an example of \g ? I'm not grokking
jhack has quit [Ping timeout: 246 seconds]
<zenspider>
ooooh... Using {0} to make zero-length named groups
<zenspider>
still not sure I get the difference with \k then
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<eelster>
zenspider: I believe that the difference also is that \g does not allow leftmost matching whereas \k does? The difference is not huge if my memory serves me correctly
nankyokusei has quit [Ping timeout: 246 seconds]
A124 has quit [Quit: '']
<zenspider>
seems like \k is the same as \#... just a backreference
<zenspider>
\g is a "call", but what that means exactly? I dunno
<eelster>
What is \#?
<zenspider>
\1 \2 etc
elh9_ has joined #ruby
<eelster>
Oh, got it
<zenspider>
\k can also do named groups, but also numbers (and negative numbers?)
<zenspider>
trippy
<eelster>
Oniguruma is trippy on the whole
elh9 has quit [Ping timeout: 245 seconds]
aeontech has joined #ruby
<zenspider>
I'm rolling in oniguruma history into my ruby quickref... lots to take in
A124 has joined #ruby
<eelster>
It's a ton to take in. I use it sometimes, but on the whole ruby has a pretty strong regexp lib baked in.
<zenspider>
whoa... \k<name+1>
<zenspider>
wtf
<zenspider>
mmm... ruby's engine is oniguruma now, no?
<ag4ve_>
somehow, i should be able to create a cookbook from that (actual deps are poise - also by the same author, poise-archive, poise-service)
<blackbombay>
so, they provide their own instructions to build the gem, which might be important.
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
<ag4ve_>
i've read through this - i haven't been able to figure anything past gem build though
troulouliou_div2 has quit [Remote host closed the connection]
<blackbombay>
yah sorry i dont know chef but it seems you'd add a non-standard chef/ dir as well as lib/ (standard)
<blackbombay>
from there i dont know how it works :)
<ericP>
on ubuntu 16.04 xenial, i have ruby and rubygems-integration installed and gem can't install nokogiri-1.7.0.gem because i have no /usr/lib/ruby/include/
hightower3 has joined #ruby
<dminuoso>
ericP: You will need to install the development package of Ruby
<blackbombay>
debian/ubuntu have(had?) a package policy thats counter productive for typical ruby use.
<blackbombay>
installing a C extension isnt that unusual
<herwin>
and after installing ruby-dev, that's fairly easy these days
<ericP>
yeah, i'd have expected that to go pretty smoothly
<ericP>
it turns out that ruby-dev is mostly doc files. ruby2.3-dev has the include files but they're in /usr/include/ruby-2.3.0/ruby/
xall has quit [Ping timeout: 245 seconds]
<ericP>
trying a symlink there from /usr/lib/ruby/include...
Alina-malina has quit [Changing host]
Alina-malina has joined #ruby
<herwin>
"This package is a dependency package, which depends on Debian's default Ruby version (currently v2.3)"
<ericP>
that mostly did it, but i feel a little dirty (compounded by the fact that i had to sudo gem installs)
mlehrer has joined #ruby
milardovich has joined #ruby
<ericP>
though now i (sudo) am getting "installing into parent path /var/lib/gems/2.3.0/gems/w3c-csvw of /var/lib/gems/2.3.0/gems/rdf-tabular-1.0.0 is not allowed"
djbkd_ has quit []
hutch34 has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doubleemms has joined #ruby
charliesome has joined #ruby
<ericP>
any ideas what to do about that, or should i wait 'till the package maintainer wakes up in about 8hrs?
loechel has joined #ruby
Pumukel has quit [Read error: Connection reset by peer]
<kke>
hmm, in my gemspec i have nokogiri ~> 1.6, then i run bundle, it tries to install nokogiri 1.7 (which fails because it requires ruby > 2.0
doubleemms has quit [Ping timeout: 245 seconds]
<kke>
if i put nokogiri 1.6.8 to gemspec it installs nokogiri 1.6.8
<kke>
should i say ~> 1.6.0 then to get 1.6.x
hutch34 has joined #ruby
ag4ve_ has quit [Ping timeout: 248 seconds]
pawnbox has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kke>
i thought ~> 1.6 would give 1.6.x
<dminuoso>
ericP: HOnestly, avoiding package managers is the best thing you can do for Ruby.
<dminuoso>
ericP: ruby-install is extremely simple and much more effective.
<dminuoso>
ericP: I've had nothing but troubles over the years trying to get Ruby working on the various systems in their package managers.
pawnbox has joined #ruby
Jeff_D has joined #ruby
pawnbox has quit [Remote host closed the connection]
ag4ve_ has joined #ruby
ag4ve_ has quit [Max SendQ exceeded]
pawnbox has joined #ruby
ag4ve_ has joined #ruby
ag4ve_ has quit [Max SendQ exceeded]
<ericP>
dminuoso, the thing i'm dreading is all the knock-on effects of not having ruby managed by apt, like dependency failures on texlive, inkscape, etc.
ag4ve_ has joined #ruby
<dminuoso>
ericP: You have these problems anyway.
<kke>
looks like i thought wrong
<dminuoso>
ericP: The dependencies that gem incurs are not solved by apt automatically.
pawnbox has quit [Remote host closed the connection]
<dminuoso>
ericP: And the dependencies of ruby itself are minimal.
<kke>
~> 1.6 means >= 1.6 && < 2.0
<dminuoso>
ericP: So it's a moot point.
pawnbox has joined #ruby
<elomatreb>
kke: It's intended for packages following semver
rileyy has joined #ruby
saneax is now known as saneax-_-|AFK
milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
andikr has joined #ruby
milardovich has quit [Remote host closed the connection]
Silthias has joined #ruby
milardovich has joined #ruby
<kke>
i guess nokogiri doesn't since there's 1.6.8.1 and such
<kke>
but anyway, even with semver ~> 1.6 will be >= 1.6 && < 2.0
<kke>
~> 1.6.0 is 1.6.*
<ericP>
dminuoso, though apt may not satisfy gem's dependencies, it does manage the ruby dependencies sufficiently for the packaged apps which depend on it.
Silthias1 has quit [Ping timeout: 272 seconds]
<kke>
~> 1.6.2 is >= 1.6.2 && < 1.7
<ericP>
dminuoso, maybe my best path is to write directly over the packaged ruby installation so apt (the package manager) thinks i'm meeting dependencies but gem works
<dminuoso>
ericP: The requirements are: bash >= 3.x, wget > 1.12 or curl, md5sum, md5 or openssl md5, tar, bzip2, patch (if --patch is specified), gcc >= 4.2 or clang
<dminuoso>
ericP: Out of these only "gcc" is usually missing.
<dminuoso>
ericP: So there's no real dependencies to talk about.
StoneCypher has quit [Ping timeout: 258 seconds]
<dminuoso>
ericP: gem has nothing to do with your package manager.
<ericP>
dminuoso, not a prob for me, i tend to have plenty of c++ parsers around
nofxxx has quit [Ping timeout: 248 seconds]
<ericP>
dminuoso, my point is that if my package manager doesn't think ruby is installed, it will remove e.g. texlive and inkscape and i'll have to go install them outside of the package manager.
<dminuoso>
ericP: inkscape is not a dependency of ruby.
<dminuoso>
ericP: Are you talking about gems installed through apt?
<ericP>
dminuoso, it depends on ruby
<dminuoso>
ericP: Ah.
montanonic has quit [Ping timeout: 258 seconds]
<herwin>
no, it suggests ruby
hutch34 has quit [Ping timeout: 245 seconds]
flying has joined #ruby
<ericP>
herwin, that's managable. i'm trying to figure out if i apt-remove ruby if i lose texlive but the dependency tree is kinda deep
LoneHermit has joined #ruby
<ericP>
(are trees "deep"? maybe "tall"?)
<ericP>
the dependcy pit is kinda deep
pawnbox has quit [Read error: Connection reset by peer]
pawnbox_ has joined #ruby
z3uS has quit [Ping timeout: 258 seconds]
xall has joined #ruby
teclator has quit [Ping timeout: 245 seconds]
tvw has joined #ruby
aupadhye has quit [Ping timeout: 246 seconds]
LoneHermit has quit [Ping timeout: 248 seconds]
z3uS has joined #ruby
<dminuoso>
ericP: In the end as long as you avoid gems installed through apt entirely it's not too terrible, unless you wait 1-2 years and you still don't have Ruby 2.5 :P
<dminuoso>
That's one of the main reasons why ruby-install is adopted so widely (Ubuntu and up-to-date Ruby is meh)
pawnbox_ has quit [Ping timeout: 246 seconds]
<elomatreb>
Aren't there things like PPAs with semi-recent Ruby binaries? Or is that Ubuntu only?
ishe_ua has joined #ruby
<ericP>
dminuoso, yeah, it seems they got it working well enough to support their managed packages but not enough for gems
<kke>
eric: well the tree could have complex branches that go deep
<kke>
i mean roots
<ericP>
figured
frozengeek__ has joined #ruby
<ericP>
kke, though banyan trees confuse that with branches becoming roots
hahuang61 has joined #ruby
saneax-_-|AFK is now known as saneax
frozengeek__ has quit [Client Quit]
milardovich has quit [Read error: Connection reset by peer]
milardov_ has joined #ruby
<dminuoso>
elomatreb: I dont want some unsupported third party vendor infesting my servers.
<dminuoso>
elomatreb: With ruby-install it's as official as it can get.
SpiffTR has quit [Quit: Leaving.]
frozengeek__ has joined #ruby
<elomatreb>
Of course, I use it myself. But it may be a little nicer in that it actually provides apt with a package, allowing you to install things depending on Ruby with less trouble?
pawnbox has joined #ruby
hahuang61 has quit [Ping timeout: 258 seconds]
Guest__ has joined #ruby
Guest__ is now known as relix
SesMan has joined #ruby
Jeff_D has quit [Quit: STRPT: JMP $ ; Story of my day.]
pawnbox has quit [Ping timeout: 258 seconds]
jsrn has joined #ruby
ur5us has quit [Remote host closed the connection]
aupadhye has joined #ruby
ur5us has joined #ruby
SpiffTR has joined #ruby
ruby-lang645 has joined #ruby
ruby-lang645 has quit [Client Quit]
nankyokusei has joined #ruby
marcoecc has quit [Ping timeout: 265 seconds]
SpiffTR has quit [Client Quit]
SesMan has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ur5us has quit [Ping timeout: 245 seconds]
adrianS_ has quit [Remote host closed the connection]
howdoi has quit [Quit: Connection closed for inactivity]
Otterfox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Otterfox has joined #ruby
astrobunny has quit [Ping timeout: 258 seconds]
al2o3-cr has joined #ruby
DaveTabo_ has joined #ruby
SpiffTR has joined #ruby
DaveTaboola has quit [Ping timeout: 246 seconds]
jaruga___ has joined #ruby
jaruga___ is now known as jaruga
doubleemms has joined #ruby
Cymew has joined #ruby
nankyokusei has joined #ruby
polts has quit [Ping timeout: 256 seconds]
doubleemms has quit [Ping timeout: 240 seconds]
StoneCypher has joined #ruby
polts has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
porfa has quit [Quit: porfa]
hightower3 has joined #ruby
StoneCypher has quit [Ping timeout: 248 seconds]
hightower2 has quit [Ping timeout: 258 seconds]
hightower2 has joined #ruby
DaveTabo_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pawnbox_ has joined #ruby
hightower3 has quit [Ping timeout: 246 seconds]
pawnbox has quit [Read error: Connection reset by peer]
Otterfox has quit [Ping timeout: 248 seconds]
MrBismuth has joined #ruby
polysics has joined #ruby
SpiffTR has quit [Quit: Leaving.]
yeticry has quit [Ping timeout: 256 seconds]
yeticry has joined #ruby
DaveTaboola has joined #ruby
m_antis has quit [Ping timeout: 272 seconds]
millerti has joined #ruby
juanda has quit [Ping timeout: 246 seconds]
hightower3 has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
milardovich has quit []
enyo has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hightower2 has joined #ruby
hightower3 has quit [Ping timeout: 258 seconds]
SpiffTR has joined #ruby
charliesome has joined #ruby
juanda has joined #ruby
hightower3 has joined #ruby
hays has quit [Ping timeout: 248 seconds]
sepp2k has joined #ruby
hightower2 has quit [Ping timeout: 246 seconds]
<dionysus69>
hey. I have algorithm related question!
<xpt>
seems like homework :)
<dionysus69>
no haha
<dionysus69>
it's related to bachelor's project I am doing in rails
<xpt>
?rails
<ruby[bot]>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<dionysus69>
I am there already
<dionysus69>
I thought this was more a ruby question though
workmad3 has quit [Ping timeout: 246 seconds]
<xpt>
well, untill I see the question there is no way knowing this.
<dionysus69>
so I am building a rails app and I want to have randomization between users of n items lets say. I want to randomly select. There are 100 items and 5 users. each needs to get 30 items for example so there is a shortage of items, some of the items need to be repeated. so I want to distribute these items in a way that they are as random as possible and as all inclusive as possible as well. so in case of shortage, I want program to distribute all
<dionysus69>
pure random method may skip some items totally
<apeiros>
sounds familiar
hightower2 has joined #ruby
<dionysus69>
yes this is about the old problem
<dionysus69>
i am actually working on it now
<apeiros>
I think your phrasing is misleading
<dionysus69>
ok correct me then :D
<apeiros>
if I remember it correctly, you do not have 100 items, but 100 item types
<apeiros>
otherwise 30 items per user would mean first 3 users get 30, fourth gets 10, last one gets none. because no items left.
igniting has joined #ruby
<dionysus69>
yes 100 item types
<dionysus69>
its like sample method you used on array
<dionysus69>
i saved those snippets no worries xD
tlaxkit has joined #ruby
hightower3 has quit [Ping timeout: 248 seconds]
aryaching has quit [Ping timeout: 256 seconds]
dhollinger has quit [Ping timeout: 256 seconds]
<apeiros>
but with 100 item types, and only 30 actual items per user, you don't need repetition per user, no? or are you talking about repetition across users?
<dionysus69>
repetition accross users
bascht is now known as Guest27477
<dionysus69>
but with no repetition per user
<blackbombay>
apeiros: what u think of redis
Silthias has quit [Ping timeout: 256 seconds]
<apeiros>
ok. so you sacrifice randomness in favor of having as many (all in this specific case) item types occur and having as little repetition across all distributed items as possible.
<dionysus69>
but you see there is a catch. these users dont fill out the quiz at the same time so the method wont be able to sample and distribute at one go. somehow the db needs to keep track of which items have already been used so the "random selector method" gives priority to low weight items. so item weight increases once it is already selected for any user
Silthias has joined #ruby
<apeiros>
blackbombay: I use it with sidekiq. I have no need for it otherwise. I think many projects use it for no good reason and should instead focus on reducing dependencies.
21WAAAWWY has joined #ruby
<dionysus69>
so you get it? so there is a question model with weight attribute. if it gets picked by random method for a user it gets incremented +1 into infinity. so next time random method looks at weights and gives lower chance to high weight items so all the pool is used up.
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
xall has joined #ruby
jtd has quit [Read error: Connection reset by peer]
<dionysus69>
perferct scenario: if we have 100 items 10 users and 10 items per user. it needs to do exactly this: targets = Array.new(10) { items.sample(10) }
<dionysus69>
items array is 100 items big
<apeiros>
dionysus69: the question breaks down to whether you want guarantees.
21WAAAWWY has quit [Ping timeout: 258 seconds]
<apeiros>
if you don't want guarantees it's indeed a question of weighting
<dionysus69>
no guarantees needed
<xpt>
dionysus69: if you want guarantees you could generate permutation of items and save it somewhere, and then pop amount of items per user. If you have less items than you should you just generate another permutation and assure that it does not start with those items you have left from previous permutation, and then concatenate it to those remaining ones.
sdothum has joined #ruby
<dionysus69>
ok thats some buz word "generate permutation" can you show me an example of how this is done in rails?
andikr has joined #ruby
<dionysus69>
or what does it even mean
<apeiros>
dionysus69: with weighting you have to decide first how much less likely an item which already is present in the distribution is picked again
andikr has quit [Remote host closed the connection]
<apeiros>
eelster: I wouldn't call it brilliant, but it's very nice they added that optimization
<eelster>
elomatreb: Anonomyzing works as well
<eelster>
apeiros: True, I just am a fan of it. I like how Ruby constantly moves forward.
conta1 has quit [Ping timeout: 256 seconds]
<apeiros>
elomatreb: aaahaha, we had that discussion recently at work, whether we want to use .() or .call() as per our style guide. we went with .call() for clarity - with .(), the . is easily missed
<elomatreb>
.() just looks wrong
<eelster>
The one odd thing about Enumerable#sum is that one would assume that %w(hello world).sum would produce 'hello world', but it raises a TypeError instead
<dunpeal>
elomatreb: I know ImageMagick used to be a very common choice, but isn't it considered bloated and outdated nowadays?
brendan- has quit [Read error: Connection reset by peer]
bmurt has quit [Read error: Connection reset by peer]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
millerti has joined #ruby
nankyokusei has joined #ruby
<elomatreb>
dunpeal: I don't know any real alternative, and image processing is such a deep rabbit hole you're probably not going to get a library that's not "bloated"
troys has joined #ruby
<eelster>
ImageMagick isn't too bad. I haven't used it in Ruby, but it's not bad in C.
jdawgaz has joined #ruby
Lord_of_Life has joined #ruby
brendan- has joined #ruby
<OTORelic>
test
bmurt has joined #ruby
<eelster>
OTORelic: Testing loud and clear
chouhoulis has quit [Remote host closed the connection]
teclator has quit [Ping timeout: 272 seconds]
brendan- has quit [Read error: Connection reset by peer]
bmurt has quit [Read error: Connection reset by peer]
symm- has joined #ruby
nankyokusei has quit [Ping timeout: 258 seconds]
<dunpeal>
elomatreb: thanks.
brendan- has joined #ruby
aeontech has quit [Quit: aeontech]
ineb has left #ruby [#ruby]
brendan- has quit [Read error: Connection reset by peer]
jallen123 has quit [Remote host closed the connection]
bmurt has joined #ruby
jallen123 has joined #ruby
brendan- has joined #ruby
doublemalt_ has joined #ruby
sebastiansier has joined #ruby
agent_white has joined #ruby
jenrzzz has joined #ruby
haylon has joined #ruby
SpiffTR has quit [Quit: Leaving.]
<agent_white>
Mornin' folks
jhack has quit [Quit: jhack]
choke has joined #ruby
chouhoulis has joined #ruby
DoubleMalt has quit [Ping timeout: 272 seconds]
jallen123 has quit [Ping timeout: 256 seconds]
jhack has joined #ruby
StoneCypher has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jallen123 has quit [Remote host closed the connection]
bmurt has quit [Ping timeout: 246 seconds]
marxarelli has joined #ruby
marxarelli is now known as marxarelli|afk
Snowy has quit [Ping timeout: 248 seconds]
marxarelli|afk is now known as marxarelli
mim1k|wo1k has joined #ruby
<havenwood>
ioricloud: What do you mean? Say more?
hotpancakes has joined #ruby
bmurt has joined #ruby
jallen123 has joined #ruby
<ioricloud>
I need to show my ec2 instance and to have one button next
einzelganger is now known as flashbang
hotpancakes has quit [Remote host closed the connection]
<ioricloud>
where turn on and turn off my instance
hotpancakes has joined #ruby
amclain has joined #ruby
<ioricloud>
Did you understand?
bmurt has quit [Client Quit]
doubleemms has joined #ruby
mim1k|work has quit [Ping timeout: 248 seconds]
jackjackdripper has joined #ruby
doubleemms has quit [Remote host closed the connection]
a7d7p has joined #ruby
jhack has joined #ruby
hotpancakes has quit [Remote host closed the connection]
JoshS has quit [Quit: Leaving]
aufi has quit [Quit: Leaving]
tlaxkit has quit [Quit: ¡Adiós!]
MissionCritical has joined #ruby
<havenwood>
ioricloud: Nope, I'm not really following. I gather you're making a Sinatra app that interacts with AWS using the Ruby SDK? But I don't know what your Ruby problem is that we can help you with.
zerun0 has joined #ruby
<ioricloud>
yes
<ioricloud>
havenwood: yes
jackjackdripper has quit [Client Quit]
<ioricloud>
havenwood: I want to make a sinatra app that interacts with aws with ruby sdk
jackjackdripper has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
flashbang has quit [Ping timeout: 258 seconds]
brent__ has quit [Remote host closed the connection]
millerti has joined #ruby
brent__ has joined #ruby
mikeric has joined #ruby
mikeric has quit [Client Quit]
synthroid has quit [Remote host closed the connection]
brent__ has quit [Read error: Connection reset by peer]
synthroi_ has joined #ruby
brent__ has joined #ruby
millerti has quit [Client Quit]
jsrn_ has quit [Quit: Leaving]
Norm has left #ruby [#ruby]
chino has quit [Quit: Connection closed for inactivity]
Silox| has quit [Quit: Connection closed for inactivity]
ledestin has joined #ruby
pawnbox_ has joined #ruby
millerti has joined #ruby
a7d7p has quit [Quit: a7d7p]
jtd has joined #ruby
benlieb has joined #ruby
moei has joined #ruby
pawnbox has quit [Ping timeout: 248 seconds]
ledestin has quit [Ping timeout: 246 seconds]
aremaref has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.6]
enyo has quit [Ping timeout: 248 seconds]
zerun0 has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
gusrub has joined #ruby
blackbombay has joined #ruby
benlieb has quit [Quit: benlieb]
hotpancakes has joined #ruby
johnmilton has joined #ruby
Beams has quit [Quit: .]
nankyokusei has joined #ruby
blackbombay has quit [Ping timeout: 272 seconds]
troys is now known as troys_
johnmilton has quit [Remote host closed the connection]
BlkDynmt has quit [Ping timeout: 272 seconds]
benlieb has joined #ruby
mikecmpbll has quit [Ping timeout: 272 seconds]
flashbang has joined #ruby
nankyokusei has quit [Ping timeout: 256 seconds]
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eelster>
workmad3: That's true. I was just demonstrating the `i = i` assignment that we were talking about.
<workmad3>
eelster: `int i;` creates the variable, but doesn't initialize it, so it's essentially a random value consisting of the current contents of the memory location
<workmad3>
the `i = i` doesn't add any additional odd behaviour
<eelster>
workmad3: Certainly (although some compilers will give you a standard value for it)
<eelster>
It's UB
<herwin>
I wonder if "i = i" would be removed by the optimizer
<eelster>
herwin: Most likely
<eelster>
herwin: Lemme check.
<workmad3>
eelster: `int i = i;` works in C btw ;)
enyo has joined #ruby
MrBismuth is now known as MrBusiness
<workmad3>
(if you want a real comparison with the ruby version)
<eelster>
workmad3: I never initialize and declare in the same line in C.
SpiffTR has quit [Ping timeout: 272 seconds]
chouhoul_ has joined #ruby
splud has joined #ruby
MrBusiness is now known as ArcMrBismuth
<workmad3>
eelster: right... and I never write `a = a` in ruby... doesn't alter it being valid :P
SpiffTR has joined #ruby
ArcMrBismuth is now known as MrBusiness
<eelster>
workmad3: I don't dispute that :D
izaakf has quit [Ping timeout: 260 seconds]
Snowy has quit [Ping timeout: 248 seconds]
<workmad3>
eelster: it's basically an artifact of the parser though... `int i` in C (and `a =` in ruby) immediately declare the local variable name in the stack before the next token is parsed
duckpuppy has quit [Quit: WeeChat 1.6]
<workmad3>
s/stack/frame
duckpuppy has joined #ruby
jallen123 has quit [Remote host closed the connection]
chouhoulis has quit [Ping timeout: 272 seconds]
choke has joined #ruby
jallen123 has joined #ruby
enyo has quit [Ping timeout: 246 seconds]
<eelster>
By the way, the assempbly is optimized with -O1 to remove the self-assignment.
<eelster>
(in the `i = i` C)
<eelster>
workmad3: Thanks for the explanation though!
nankyokusei has joined #ruby
jallen123 has quit [Remote host closed the connection]
jallen123 has joined #ruby
juanda has quit [Ping timeout: 248 seconds]
SpiffTR1 has joined #ruby
Blaguvest has quit [Ping timeout: 245 seconds]
ddffg has quit [Quit: Leaving]
SpiffTR has quit [Ping timeout: 245 seconds]
blackbombay has joined #ruby
SpiffTR has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
brent__ has joined #ruby
SpiffTR1 has quit [Ping timeout: 248 seconds]
sepp2k has quit [Quit: Leaving.]
brent__ has quit [Read error: Connection reset by peer]
<joescript>
exit
benlieb has quit [Quit: benlieb]
joescript has quit [Quit: leaving]
<KeyJoo>
bb
brent__ has joined #ruby
KeyJoo has quit [Quit: Leaving]
jhack has quit [Ping timeout: 256 seconds]
SpiffTR has quit [Ping timeout: 258 seconds]
symm- has joined #ruby
sepp2k has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jdawgaz has joined #ruby
jdawgaz has quit [Client Quit]
last_staff has joined #ruby
Ishido has joined #ruby
hotpancakes has joined #ruby
kobain has quit [Ping timeout: 260 seconds]
muelleme has joined #ruby
foooobear has quit [Quit: (null)]
muelleme has quit [Ping timeout: 246 seconds]
eelster has quit [Quit: leaving]
brent__ has quit [Remote host closed the connection]
mattwashere has joined #ruby
brent__ has joined #ruby
benlieb has joined #ruby
Lord_of_Life has quit [Excess Flood]
jcao219 has joined #ruby
Devalo has joined #ruby
benlieb has quit [Client Quit]
a7d7p has joined #ruby
Lord_of_Life has joined #ruby
scottj has quit [Quit: leaving]
choke has quit [Ping timeout: 248 seconds]
username_ has quit [Read error: Connection reset by peer]
username_ has joined #ruby
marr has joined #ruby
petrichorx_ has quit [Quit: Connection closed for inactivity]
centrx has quit []
Yzguy has joined #ruby
jdawgaz has joined #ruby
ferr1 has quit [Quit: WeeChat 1.6]
workmad3 has quit [Ping timeout: 248 seconds]
rodferso1 has joined #ruby
ramfjord has quit [Ping timeout: 272 seconds]
rodfersou has quit [Ping timeout: 246 seconds]
govg has joined #ruby
pawnbox_ has quit [Ping timeout: 245 seconds]
pawnbox has joined #ruby
aeontech has joined #ruby
Puffball has quit [Quit: Puffball]
jackjackdripper1 has joined #ruby
Puffball has joined #ruby
rodferso1 is now known as rodfersou
jackjackdripper has quit [Ping timeout: 258 seconds]
muelleme has joined #ruby
Snowy has joined #ruby
nofxx has joined #ruby
last_staff has quit [Quit: last_staff]
vuoto has joined #ruby
marsjaninzmarsa has quit [*.net *.split]
aredridel has quit [*.net *.split]
mikeiniowa has quit [*.net *.split]
gigetoo has quit [*.net *.split]
reaVer has quit [*.net *.split]
Eleeleth has quit [*.net *.split]
sarbs has quit [*.net *.split]
Tempesta has quit [*.net *.split]
foxxx0 has quit [*.net *.split]
perry has quit [*.net *.split]
theRoUS has quit [*.net *.split]
spk has quit [*.net *.split]
tobiasvl has quit [*.net *.split]
Hink has quit [*.net *.split]
nug has quit [*.net *.split]
FifthWall has quit [*.net *.split]
rtl_ has quit [*.net *.split]
staticfox has quit [*.net *.split]
LambdaSix has quit [*.net *.split]
atom3_ has quit [*.net *.split]
Xeago has quit [*.net *.split]
jinie has quit [*.net *.split]
Tralin has quit [*.net *.split]
ByronJohnson has quit [*.net *.split]
p0p0pr37 has quit [*.net *.split]
guacamole has quit [*.net *.split]
pelegreno has quit [*.net *.split]
pjaspers has quit [*.net *.split]
kspencer has quit [*.net *.split]
marahin has quit [*.net *.split]
piotrj has quit [*.net *.split]
axsuul has quit [*.net *.split]
rikai has quit [*.net *.split]
saltsa has quit [*.net *.split]
fold4 has quit [*.net *.split]
hplar has quit [*.net *.split]
majuscule has quit [*.net *.split]
jpterry has quit [*.net *.split]
abort_ has quit [*.net *.split]
rob_ has quit [*.net *.split]
todd1 has quit [*.net *.split]
webnanners has quit [*.net *.split]
rhinosic has quit [*.net *.split]
tris has quit [*.net *.split]
nemesit|znc has quit [*.net *.split]
ekem has quit [*.net *.split]
miah has quit [*.net *.split]
Gnubie__ has quit [*.net *.split]
Zarthus has quit [*.net *.split]
stroncode has quit [*.net *.split]
joevandyk has quit [*.net *.split]
Davey has quit [*.net *.split]
Junaos has quit [*.net *.split]
spectra has quit [*.net *.split]
Guest81131 has quit [*.net *.split]
nekomune has quit [*.net *.split]
mburns has quit [*.net *.split]
g3funk has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
justinmrkva has quit [*.net *.split]
hxegon has quit [*.net *.split]
adam12 has quit [*.net *.split]
seitensei has quit [*.net *.split]
michael_mbp has quit [*.net *.split]
abort has joined #ruby
piotrj has joined #ruby
reaVer has joined #ruby
Davey has joined #ruby
Davey has joined #ruby
nemesit|znc has joined #ruby
atom3 has joined #ruby
hxegon has joined #ruby
majuscule has joined #ruby
Hink has joined #ruby
webnanners has joined #ruby
Tralin has joined #ruby
saltsa has joined #ruby
Zarthus has joined #ruby
marsjaninzmarsa has joined #ruby
miah has joined #ruby
Iota- has joined #ruby
nug has joined #ruby
Junaos has joined #ruby
stroncode has joined #ruby
jinie has joined #ruby
rtl has joined #ruby
seitensei has joined #ruby
justinmrkva has joined #ruby
Junaos has joined #ruby
Junaos has quit [Changing host]
LambdaSix has joined #ruby
axsuul has joined #ruby
guacamole has joined #ruby
ByronJohnson has joined #ruby
pjaspers has joined #ruby
pelegreno has joined #ruby
adam- has joined #ruby
theRoUS has joined #ruby
joevandyk has joined #ruby
rob_ has joined #ruby
sunya7a_ has joined #ruby
aredridel has joined #ruby
gigetoo has joined #ruby
marahin has joined #ruby
FifthWall_ has joined #ruby
LambdaSix has quit [Changing host]
LambdaSix has joined #ruby
todd1 has joined #ruby
spectra has joined #ruby
guacamole has quit [Changing host]
guacamole has joined #ruby
spectra has quit [Changing host]
spectra has joined #ruby
ekem has joined #ruby
tris- has joined #ruby
sunya7a_ has joined #ruby
sunya7a_ has quit [Changing host]
jpterry has joined #ruby
p0p0pr37 has joined #ruby
mburns has joined #ruby
rhinosic has joined #ruby
Sp4rKy has joined #ruby
FifthWall_ is now known as FifthWall
Xeago has joined #ruby
hplar has joined #ruby
marahin is now known as Guest34383
tercenya has quit [Remote host closed the connection]
p0p0pr37 has joined #ruby
p0p0pr37 has quit [Changing host]
g3funk has joined #ruby
spk has joined #ruby
sarbs has joined #ruby
tercenya has joined #ruby
Tempesta has joined #ruby
Tempesta has quit [Changing host]
Tempesta has joined #ruby
rikai has joined #ruby
Gnubie_ has joined #ruby
fold4 has joined #ruby
Eleeleth has joined #ruby
nofxx has quit [Ping timeout: 246 seconds]
tris- is now known as tris
ghostlight has quit [Ping timeout: 248 seconds]
perry has joined #ruby
perry has joined #ruby
perry has quit [Changing host]
discopatrick has quit [Ping timeout: 260 seconds]
ggherdov has quit [Ping timeout: 258 seconds]
juanda has joined #ruby
nankyokusei has joined #ruby
pizzaops has quit [Ping timeout: 245 seconds]
staticfox has joined #ruby
jphase has quit [Read error: Connection reset by peer]
milardovich has quit [Remote host closed the connection]
mrwn has joined #ruby
Devalo has quit [Ping timeout: 245 seconds]
jackjackdripper has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
flashbang has quit [Ping timeout: 248 seconds]
muelleme has joined #ruby
blackbombay has quit [Ping timeout: 258 seconds]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
enyo_ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
agit0 has joined #ruby
enyo_ has quit [Ping timeout: 246 seconds]
koooge_ has quit [Quit: Leaving...]
flashbang has joined #ruby
nadir is now known as nadir|mobile
woodruffw has quit [Quit: And then he took off.]
woodruffw has joined #ruby
Puffball has quit [Remote host closed the connection]
hahuang61 has joined #ruby
m_antis has joined #ruby
enterprisey has joined #ruby
Puffball has joined #ruby
siddart has quit [Quit: WeeChat 1.4]
shazaum has joined #ruby
mrwn has quit [Remote host closed the connection]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
niceperl has quit [Read error: Connection reset by peer]
hahuang61 has quit [Ping timeout: 258 seconds]
neoncortex has joined #ruby
ramfjord has quit [Ping timeout: 256 seconds]
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
SeepingN has joined #ruby
SeepingN has quit [Client Quit]
manjaro-kde5__ has quit [Ping timeout: 240 seconds]
jdawgaz has joined #ruby
blackbombay has joined #ruby
milardovich has joined #ruby
SeepingN has joined #ruby
muelleme has quit [Ping timeout: 272 seconds]
charliesome has joined #ruby
flashbang has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
milardovich has quit [Ping timeout: 272 seconds]
blackbombay has quit [Ping timeout: 248 seconds]
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kechja has quit [Remote host closed the connection]
gloscombe has joined #ruby
OTORelic has quit [Ping timeout: 248 seconds]
[Butch] has quit [Quit: I'm out . . .]
nankyokusei has joined #ruby
jdawgaz has joined #ruby
mikeiniowa has joined #ruby
nankyokusei has quit [Ping timeout: 248 seconds]
blackbombay has joined #ruby
jake__ has joined #ruby
arthurl has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jrafanie has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
juanda has quit [Ping timeout: 248 seconds]
dc2 has joined #ruby
<zenspider>
ok... riddle me this, batman... I'm still working on updating the quickref for newer regexps, and I've stumbled on extensions to character classes that I don't understand at all
<zenspider>
ex. /[a-w&&[^c-g]z]/ ==> ([a-w] AND ([^c-g] OR z)) ==> [abh-w]
<zenspider>
whyyyyy?
<zenspider>
also, when I use that regexp, I still get an overlapping range warning
<zenspider>
hrmph... warnings are apparently turned off on eval.in, even if I set $-w = true
SeepingN has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bmurt has joined #ruby
SeepingN has joined #ruby
ScottGA has joined #ruby
d0nn1e has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.6]
mshah has joined #ruby
<mshah>
hi
<mshah>
what are some projects i should work on for ruby
<mshah>
anyone here
nikivi has quit [Quit: irc]
bmurt has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Azure has quit [Ping timeout: 248 seconds]
last_staff has joined #ruby
dc2 has quit [Ping timeout: 246 seconds]
coyo has joined #ruby
coyo has joined #ruby
coyo has quit [Changing host]
brent__ has quit [Read error: Connection reset by peer]
hutch34 has quit [Quit: WeeChat 1.5]
benlieb has joined #ruby
troys_ is now known as troys
hutch34 has joined #ruby
marxarelli has joined #ruby
enterprisey has quit [Remote host closed the connection]
CookieB has joined #ruby
<CookieB>
Hello there
cdg has quit [Remote host closed the connection]
<ScottGA>
Hey CookieB. I'm a noob here.
LoneHermit has joined #ruby
<CookieB>
Ha I'm glad I'm as well
lmc has quit [Ping timeout: 272 seconds]
jdawgaz has joined #ruby
<CookieB>
Might I ask a question about ruby? I'm a little bit stuck
<ScottGA>
Working my way through "Learn Ruby the Hard Way".
<ScottGA>
Ask away. I may not be much help.
<CookieB>
I need an object reference in a on - do block, but I don't know how to pass it: https://codepaste.net/2zuhag
dhollinger has quit [Ping timeout: 258 seconds]
bmurt has joined #ruby
benlieb has quit [Quit: benlieb]
dhollinger has joined #ruby
<zenspider>
mshah: yes, we're here... but we can't answer that question.
LoneHermit has quit [Ping timeout: 272 seconds]
<zenspider>
mshah: nobody knows you. knows what you're good at. what you want. etc.
juanda has joined #ruby
<zenspider>
CookieB: looking
<CookieB>
Thanks <3
ScottGA has left #ruby ["Leaving..."]
Azure has joined #ruby
<zenspider>
CookieB: "Reference to the class object" ?? explain?
hotpancakes has quit [Remote host closed the connection]
<CookieB>
initialize belongs to an object of a class, I am defining an event ":message" and in that message event I want to access the object that belongs to the intialize
<zenspider>
do ... end (and { ... }) are blocks... they have references to stuff outside of them when they're called
frozengeek__ has quit [Quit: frozengeek__]
<CookieB>
whats the prefix for that reference then?
<zenspider>
self, but that gets tricky because that changes all the time
<CookieB>
self is an "WebSocket::Client::Simple" in that case
<zenspider>
if you did something like `networkthingy = self` and then used `networkthingy` in your block...
<zenspider>
(whatever the right name is in this case)
<CookieB>
i tried, |msg, var = self| and it ended up being WebSocket... again
<zenspider>
no, this isn't a matter of "passing in"
sepp2k has quit [Read error: Connection reset by peer]
<zenspider>
that's not the right way to think of this
<CookieB>
I'm more a C
<CookieB>
I'm more a C++ type usually so my way of thinking is a bit odd for ruby ^^
tyang_ has joined #ruby
<zenspider>
for example, `parseResponse(msg.data)` could be `parseResponse(@sentRequests)` and it would still work
ddrmanxbxfr has joined #ruby
hotpancakes has joined #ruby
<zenspider>
this is more like lisp/scheme with lexical scoping
mshah has quit [Remote host closed the connection]
<CookieB>
so I could try @reference = self above and try it inside I guess
dc2 has joined #ruby
<zenspider>
you don't need an ivar... just a local will do
workmad3 has quit [Ping timeout: 245 seconds]
<CookieB>
ivar ?
<CookieB>
ah
<zenspider>
>> n = 42; add = lambda { |m| n + m }; add[1]