milardovich has quit [Remote host closed the connection]
milardovich has joined #ruby
milardovich has quit [Ping timeout: 240 seconds]
<eightlimbed>
i'm pretty new to ruby (just started learning about programming a few months ago). i'm quite confused about lambdas. do you guys have any blog posts/tutorials on lambdas bookmarked that were helpful for you? Someone in this room came up with a very elegant solution to one of the project euler problems using a lambda (https://gist.github.com/eightlimbed/dea399ab0cfdad422e0f51e88b7807fe) and I can't wrap my head around what the
<eightlimbed>
lambda does and how he came to that solution.
<market>
nonconsecutive input is "a" "b" "a" "b"
<market>
nonconsecutive repeats that uniq cannot filter out
Rodya_ has joined #ruby
<market>
Lines repeat each other but they aren't one after another
humanBird has joined #ruby
<humanBird>
shoot i got timed out. anyone know if you can use multiple subjects in rspec?
roshanavand has quit [Ping timeout: 246 seconds]
vincent_ has quit []
UserOO7 has joined #ruby
cdg has joined #ruby
nacsurte has joined #ruby
<humanBird>
oh. there's subject.push but not sure how to push a key value
hutch34 has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
<market>
dash can do it but it'll screw up order of appearance
nacsurte has quit [Ping timeout: 255 seconds]
minimalism has quit [Quit: minimalism]
darix has quit [Quit: may the packets be with you...]
marr has quit [Ping timeout: 260 seconds]
jamesaxl has quit [Quit: WeeChat 1.7.1]
darix has joined #ruby
<market>
dash cannot uniq "a" "b" "b" " "a , it 'd come out as "a " "b " "a" which isn't right, you can paste it to gist( USE GIST)if anyone of knowledge how to accomplish.
Rodya_ has quit [Remote host closed the connection]
lxsameer has quit [Quit: WeeChat 1.8]
Rodya_ has joined #ruby
<market>
But the file is 0a -separated, it is not an array yet
ascarter has joined #ruby
Rodya_ has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
bkxd_ has quit [Ping timeout: 240 seconds]
<humanBird>
to exist but it does not respond to either `exist?` or `exists?` . this thing in question is a Datetime
<humanBird>
why doesn't it respond to date time
<elomatreb>
I think you got cut off there
tofutoon has joined #ruby
zacts has quit [Ping timeout: 255 seconds]
zacts has joined #ruby
psychicist__ has quit [Ping timeout: 260 seconds]
ascarter has quit [Ping timeout: 268 seconds]
Rodya_ has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
zacts has quit [Ping timeout: 255 seconds]
t-recx has quit [Quit: t-recx]
ketan has joined #ruby
<market>
Jessica drove drunk today but african colony's cops didn't notice, one of them is bounded to die after being shotgun shot at in a local nasty hospital
sunya7a_ has joined #ruby
ketan has quit [Ping timeout: 268 seconds]
weathermaker has quit [Ping timeout: 268 seconds]
zacts has joined #ruby
minimalism has joined #ruby
market has left #ruby ["CHEERS !"]
<comet23>
how does destructuring work, i mean i just get how to use since i read it but how does it work internally?
n0vacane has quit [Remote host closed the connection]
<comet23>
LIKE: function returns an array ["cereal", "sandwich", "steak"]
<zenspider>
comet23: what do you mean by "how does it work internally"?
<comet23>
DOING: breakfast, lunch, dinner = #function => "cereal", "sandwich", "steak" in three separate variables
UserOO7 has quit [Remote host closed the connection]
<adam12>
eightlimbed: that's an interesting solution.
<zenspider>
it's really not magic, just syntax to ensure some extra stuff happens
<comet23>
interesting, i just read that symbols are used to point to a specific place in memory
<comet23>
so that's how key value pairs work in ruby and i'm guessing other languages too
<zenspider>
eightlimbed: did you get lambdas figured out?
<zenspider>
comet23: not sure what you mean
<eightlimbed>
zenspider: not really. how would you describe them?
weathermaker has joined #ruby
<comet23>
like key value pairs work off a specific place in memory, as in key is a variable and the value is what ever is stored in that key but it's at a specific spot in memory and it's referenced by its key name instead of an index
<zenspider>
umm... 1st grade: "a function object" 2nd grade: "a function object w/ a closure"
<comet23>
are hashes faster to use than arrays?
<zenspider>
comet23: if you're talking about hashes when you're talking about "key value pairs" then what you're saying doesn't make sense. if it is something else, then ... I dunno
<zenspider>
"symbols are used to point to a specific place in memory" ... probably isn't about symbols, but variable names.
<zenspider>
symbols don't point to anything but... the symbol value
<zenspider>
"point"
troys_ is now known as troys
<eightlimbed>
adam12: it is. does it make sense to you?
<zenspider>
eightlimbed: that's probably not addressing your actual questions tho, yes?
<comet23>
what is the difference between a symbol and a variable?
nacsurte has joined #ruby
<eightlimbed>
yeah, zen... from what i understand, a lambda is like a block of code inside a method (?)
<zenspider>
or a method is a block of code inside a named slot in a class' method dictionary...
<zenspider>
there's semantic differences... that closure in question for example... but they don't matter in the grand scheme
<zenspider>
comet23: everything?
<zenspider>
a = :a
<zenspider>
the first thing is a variable... the second is a symbol... the former "points" to the latter
<zenspider>
the latter "points" basically to itself
<comet23>
that's confusing
<zenspider>
that's programming
<zenspider>
but very elementary programming
<zenspider>
is a = "a" confusing?
<comet23>
no
<zenspider>
or a = 1 ?
<comet23>
no it's not
<comet23>
that makes sense
<zenspider>
a = :a is no different... :a is just a different type of value
<eightlimbed>
by closure you are refering to lambda{0} ?
nacsurte has quit [Ping timeout: 255 seconds]
<zenspider>
the same way that a = 1 works
<comet23>
what is :a? how is it seen? i thought you have to have the colllection name in order to access :a
<comet23>
like collection[:a]
<adam12>
eightlimbed: I had to check the docs for `find`
<comet23>
i thought that you have to have a = collection[:a]
<zenspider>
eightlimbed: no. don't worry about closures just yet... closures are really neat and powerful but can be a bit confusing ... you'll do fine with them once you understand lambdas better
<adam12>
eightlimbed: but find accepts an object that is called for the default value, if no value is found
<zenspider>
comet23: what is 1? how is it seen?
<adam12>
eightlimbed: all though it looks like magic, it's very simple. It's basically some_ary.find(0) { some_condition }
<zenspider>
comet23: no, you totally misunderstand what hashes AND symbols are if you're asking such questions
<comet23>
1 is a fixnum
<zenspider>
:a is a symbol
<comet23>
but what is the value of :a
zacts has quit [Quit: WeeChat 1.8]
<zenspider>
what is the value of 1 ?
<comet23>
no that's the type
zacts has joined #ruby
<comet23>
i'm talking about value
<zenspider>
nope
<zenspider>
the value of 1 is 1
<zenspider>
the value of :a is :a
<zenspider>
the type of 1 is Integer
<comet23>
what's the point of that
<zenspider>
the type of :a is Symbol
<zenspider>
what's the point of anything?
<comet23>
:a is :a what is the point of that?
<comet23>
omg
<zenspider>
this is a hurdle you're gonna HAVE to get over if you're gonna get ANYWHERE in ruby and pretty much ANY higher level language
<zenspider>
symbols ARE values... just as integers are. They represent themselves, just as integers do.
<zenspider>
that IS their point
alamar has quit [Ping timeout: 255 seconds]
<eightlimbed>
adam12: so... Array#find finds the first element with a true value from a given block.
* baweaver
continues to munch on popcorn
<eightlimbed>
if none is found, (the doc says) it calls ifnone -- is that was is happening here: (1..x).find(lambda{0})
<eightlimbed>
it's calling the lambda?
<adam12>
eightlimbed: right.
<adam12>
which obviously returns 0.
<baweaver>
[].find {} || 0
<baweaver>
easier.
<adam12>
baweaver: I agree.
<baweaver>
Honestly I'm not entirely sure why the lambda there.
<adam12>
I've never actually seen #find take an argument other than a block.
<adam12>
In the wild, anyways.
<zenspider>
so it won't cost anything but the lambda if it isn't used? that's just my guess
<baweaver>
Me either.
<eightlimbed>
I was playing around with the code and you can put lambda{100 (or 200, 300, etc} and get the same result.
<eightlimbed>
doesn't have to be lambda{0}
<zenspider>
I didn't even know about that thing until a couple days ago. I don't really see the point... and the person who was using it... gives less than ideal suggestions in here, so it follows suit
GinoMan has joined #ruby
<zenspider>
eightlimbed: but yes, learn what lambdas are. learn what blocks are. they're very very powerful constructs and ruby makes them pretty easy to use
<zenspider>
baweaver: I assume popcorn was directed at me?
<baweaver>
Just overall
<baweaver>
rereading that bit about symbols
<zenspider>
I think I may have flipped comet23's bozo-bit
* baweaver
sighs
<baweaver>
sudo chmod -b comet23
<baweaver>
fixed
<zenspider>
hah
d^sh has joined #ruby
<baweaver>
Don't tempt me to -w ;)
<zenspider>
hopefully they'll get it soon
<zenspider>
or at least ask the right q that gets them to it
<zenspider>
that's probably too detailed at this point.
<zenspider>
(imho) ... stick to really high level descriptions with absolute beginners and let them discover the differences as they grow into them
<zenspider>
tho, I really wish we didn't HAVE those differences
<zenspider>
they're differences are a complication that ruby really doesn't need
tofutoon has left #ruby [#ruby]
gizmore has joined #ruby
relyks has joined #ruby
gizmore|2 has quit [Ping timeout: 260 seconds]
ohjn__ has joined #ruby
runescape07rsps has joined #ruby
ascarter has joined #ruby
[ohjn] has quit [Ping timeout: 246 seconds]
alamar has joined #ruby
alamar is now known as Guest56947
Chef3000 has quit [Quit: Page closed]
kanye_vest has quit [Quit: Leaving]
zacts has quit [Ping timeout: 246 seconds]
zacts has joined #ruby
AndBobsYourUncle has joined #ruby
Coldblackice has joined #ruby
arescorpio has joined #ruby
ornerymoose has joined #ruby
borodin has joined #ruby
aphprentice has joined #ruby
cdg has quit [Remote host closed the connection]
Coldblackice_ has quit [Ping timeout: 268 seconds]
<eightlimbed>
Guest56947 has quit [Ping timeout: 246 seconds]
Danny_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
borodin has quit [Ping timeout: 246 seconds]
nacsurte has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
<zenspider>
huh... apparently I shut down ALL discussion. :P
<zenspider>
even eightlimbed is without words
montanonic has joined #ruby
alamar_ has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mostlybadfly has joined #ruby
carterdea has joined #ruby
charliesome has joined #ruby
ascarter has quit [Ping timeout: 246 seconds]
<relyks>
how how do you iterate over a jagged array? when I do [1, [2, 3], 4].each { |e| puts e} it outputs each element including the ones in the second nested array
Danny_ has quit []
<relyks>
I want it to be 1, [2, 3], 4 instead of 1, 2, 3, 4
bambanx has joined #ruby
UserOO7 has quit []
<zenspider>
relyks: not sure what you mean, but maybe you want to use flatten?
<zenspider>
"including the ones in the second nested array"...but then goes on to describe that what you want is to include the ones in the second nested array...
<relyks>
zenspider: when I use each, it iterates over every element separately including the ones in the nested array. i don't want it to iterate over the elements of the nested array separately
<relyks>
zenspider: is that clearer?
uZiel has joined #ruby
hutch34 has quit [Ping timeout: 246 seconds]
<elomatreb>
relyks: It's already doing what you want, your problem is that if you puts an array, it will print the contents on separate lines
<elomatreb>
Replace `puts` with `p` and you'll see what I mean
hotpanca_ has quit [Remote host closed the connection]
<relyks>
elomatreb: oh shit, you're right!
eightlimbed has quit [Ping timeout: 258 seconds]
<relyks>
thanks elomatreb and zenspider :)
hotpancakes has joined #ruby
Tempesta has quit [Read error: Connection reset by peer]
ketan has joined #ruby
Rodya_ has joined #ruby
ketan has quit [Ping timeout: 276 seconds]
chouhoul_ has joined #ruby
<zenspider>
that... what elomatreb said. I was busy eating dinner
eightlimbed has joined #ruby
<zenspider>
each means just that. each element of `self`. it isn't recursive
Danny_ has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
troys is now known as troys_
bkxd_ has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 268 seconds]
<eightlimbed>
adam12: thanks for the link. i watched the video but it's over my head
<eightlimbed>
i'll start a little lower
<eightlimbed>
zenspider: sorry, i got a phone call and had to go walk a dog
lele has quit [Ping timeout: 240 seconds]
nacsurte has joined #ruby
montanonic has quit [Ping timeout: 255 seconds]
gix- has quit [Ping timeout: 246 seconds]
ornerymoose has quit [Read error: Connection reset by peer]
nacsurte has quit [Ping timeout: 255 seconds]
gix has joined #ruby
<zenspider>
eightlimbed: no worries!
<zenspider>
eightlimbed: I think for starters you just think of a lambda as a function... but it doesn't have to be bound to a name. And by function, I mean the same type of thing that you learned about in algebra class. def f(a, b); a + b; end is basically the same as f = lambda { |a, b| a + b }
<zenspider>
but that `f =` part is totally optional
<eightlimbed>
ok...
<eightlimbed>
lambda { |x, y| x * y }
<eightlimbed>
so why not just use a regular function, like def multiply(x, y); x * y; end
<eightlimbed>
because you can pass lambda through other functions?
apparition has joined #ruby
aenialis has joined #ruby
hutch34 has joined #ruby
weathermaker has quit [Quit: weathermaker]
weathermaker has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
Danny_ has quit [Remote host closed the connection]
arescorpio has quit [Quit: Leaving.]
prawnzy has joined #ruby
<prawnzy>
evening
<elomatreb>
eightlimbed: You can't (really) pass around methods in variables, they need to be bound to a receiver to be executed
bambanx has quit [Ping timeout: 240 seconds]
carterdea has quit [Quit: carterdea]
carterdea has joined #ruby
weathermaker has quit [Ping timeout: 240 seconds]
harfangk has joined #ruby
t-recx has joined #ruby
Tempesta has joined #ruby
nacsurte has joined #ruby
nacsurte has quit [Ping timeout: 260 seconds]
moneylotion has left #ruby ["Leaving..."]
t-recx has quit [Quit: t-recx]
weathermaker has joined #ruby
nanoz has joined #ruby
nanoz has quit [Changing host]
nanoz has joined #ruby
troys_ is now known as troys
weathermaker has quit [Ping timeout: 240 seconds]
troys has quit [Quit: Bye]
Danny_ has joined #ruby
<comet23>
what is a way to pause a ruby program
<comet23>
like you call a method and the last thing you want to do in that method is to pause for x seconds
<havenwood>
comet23: sleep x
<comet23>
how can i implement the sleep command?
<comet23>
i want to create my own sleep method for fun
Rodya_ has quit [Remote host closed the connection]
<comet23>
i have an idea, but i think it's a stupid idea to make it work... basically create a semi-infinite loop that will loop for x iterations doing nothing but iterating
Danny_ has quit [Ping timeout: 240 seconds]
ketan has joined #ruby
<havenwood>
comet23: You'll notice that'll use more CPU than sleep.
<comet23>
what's the right way to do it
<havenwood>
sleep x
<comet23>
i want to implement a sleep myself instead of using sleep
<comet23>
i want to create my own method that works just like sleep for practice
djbkd has joined #ruby
<elomatreb>
comet23: What you described earlier is called busy-waiting and it's generally a really bad idea
<runescape07rsps>
tea
<runescape07rsps>
yea
<runescape07rsps>
all you need is a RESTful app
<runescape07rsps>
Practice SCRUM AGILE
ketan has quit [Ping timeout: 240 seconds]
<havenwood>
runescape07rsps: Please no trolling.
<runescape07rsps>
how am i trolling
<havenwood>
RESTful SCRUM AGILE? I assumed that was meant to be trolling not an answer or question.
<DaniG2k>
why hello fellow humans
<havenwood>
DaniG2k: hallooo
<runescape07rsps>
tell me you dont use a REST api at your job
<runescape07rsps>
and ill know never to apply there
<elomatreb>
Yes, only humans here, no robots
* elomatreb
hides can of oil
<DaniG2k>
this should probably be asked in the Docker channel (which I did already) but I will also ask here just in case. I am trying to connect three Rails 5 apps to Docker + Puma (Nginx) + PostgreSQL
<comet23>
the world is run on bad ideas, i just want to do this to learn
<havenwood>
comet23: I think you'd need to write a C ext to do that well. You might want to choose a different task unless you're feeling up to a yak shave.
<ruby[bot]>
runescape07rsps: this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<comet23>
havenwood are you jesse storimier?
<havenwood>
comet23: I'm not!
<comet23>
lol
<havenwood>
I've met him at RubyConfs.
<havenwood>
Nice guy.
<comet23>
i thought paid stuff was highly discouraged on these chats lol
<runescape07rsps>
well he paid off the mods
<runescape07rsps>
so it doesnt matter
<havenwood>
comet23: If you're looking for only free resources that's fine as well. Or you can email Storimer and ask for a free copy if you're hard up for cash.
<comet23>
i have a student pack from github
<elomatreb>
There are plenty of decent resources (even university slides sometimes) on the net that explain how operating system threads work, the principle is the same
<comet23>
they're giving me 1 month free with an online bootcamp called flatiron school, (a $149 value free for a month) if i finish the program in a month it's free :)
<havenwood>
Many Ruby book authors will comp you a digital copy if you ask nicely.
<havenwood>
By email or postcard.
<comet23>
i'm definitely going to be buying stuff, i am already invested in a lot of courses, it's just that i am strapped for cash at the moment and i need to find a job asap
<havenwood>
comet23: Jesse Storimer's books on Processes, Threads and Sockets all make nice reads.
<havenwood>
They're quick introductions to difficult subjects.
<comet23>
i have paid for online courses and bought a lot of books
<havenwood>
Sounds like you have a good start. Happy coding!
<comet23>
i think this github thing is great
<comet23>
but i need books with exercises too to cement my learning
<comet23>
after i finish the flatiron program, i am going to do the udacity program
<elomatreb>
I'd advise more concrete exercises than "reimplement sleep", since that's a very abstract and specific thing
<comet23>
hopefully by then i can land a job anywhere without a degree
<comet23>
elomatreb it seemed like an easy thing to implement because the idea is really simple lol
<elomatreb>
Yes, but it's actually pretty complex under the hood if you go all the way. You want to avoid busy-waiting, since it requires the use of the CPU the entire time, so no other program can run while yours is only waiting
<elomatreb>
Proper sleep basically is telling the operating system, "I'm going to sleep now, please wake me in N seconds". The OS is free to have other programs run while you're sleeping that way
<comet23>
what would you recommend to a beginner? i like books with exercises, i feel like those work best for me, but i don't know which books to get because i only have html, css, and javascript books
<elomatreb>
I don't have recommendations, I don't like exercise books, sorry
<comet23>
=(
Danny_ has joined #ruby
DaniG2k has quit [Quit: leaving]
hotpancakes has quit [Remote host closed the connection]
Danny_ has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
ascarter has joined #ruby
runescape07rsps has quit [Ping timeout: 240 seconds]
comet23 has quit [Quit: On the other hand, you have different fingers.]
pwnd_nsfw` is now known as pwnd_nsfw
ascarter has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 255 seconds]
bkxd_ has quit [Ping timeout: 255 seconds]
jackjackdripper has joined #ruby
eightlimbed has quit [Ping timeout: 246 seconds]
hotpancakes has quit [Remote host closed the connection]
enterprisey has quit [Remote host closed the connection]
dionysus69 has joined #ruby
jamesaxl has joined #ruby
hutch34 has joined #ruby
hutch34 has quit [Ping timeout: 258 seconds]
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
chouhoul_ has quit [Remote host closed the connection]
<chrisseaton>
I'm not immediately sure why it isn't 56th - I'm not an expert on floating point numbers really
vuoto has joined #ruby
<alfiemax>
could it be signed?
<chrisseaton>
What I'm saying is that you convert an integer rather than 55 bits into a Float, you don't always get the exact integer - you get something close to it
<chrisseaton>
See how it's had to approximate the second number - it's lost precision
ketan has quit [Ping timeout: 276 seconds]
herbmillerjr has quit [Remote host closed the connection]
alex`` has joined #ruby
weathermaker has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 255 seconds]
mokiwis has quit [Quit: See ya!]
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
bkxd has joined #ruby
bkxd_ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<kitallis>
chrisseaton, yeah, you're right ("0x%02X" % 8007199254740991.to_s).hex.to_f.to_i
<kitallis>
Math.log2(8007199254740991).ceil => 2
<kitallis>
err, not 2, 53
<kitallis>
seems to be fine until 53
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
<chrisseaton>
Right - because the fixed (as opposed to floating) part of Float is 53 bits. Then there are more bits for the sign and the floating part, but you aren't using those so they just go to waste.
bkxd has joined #ruby
bkxd_ has joined #ruby
nacsurte has joined #ruby
andrzejku has joined #ruby
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
hotpancakes has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
bkxd_ has quit [Ping timeout: 260 seconds]
nacsurte has quit [Ping timeout: 260 seconds]
MrSparkle has quit [Ping timeout: 255 seconds]
biberu has quit []
clemens34 has left #ruby [#ruby]
al2o3-cr_ has joined #ruby
al2o3-cr has quit [Ping timeout: 240 seconds]
eightlimbed has joined #ruby
MrSparkle has joined #ruby
hutch34 has joined #ruby
TinkerTyper has quit [Read error: Connection reset by peer]
TinkerTyper has joined #ruby
jackjackdripper has joined #ruby
ascarter has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
rohitpaulk has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #ruby
sekmo has joined #ruby
DLSteve has joined #ruby
montanonic has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
sepp2k1 has quit [Ping timeout: 240 seconds]
sepp2k has joined #ruby
eightlimbed has quit [Ping timeout: 276 seconds]
herbmillerjr has joined #ruby
blackwind_123 has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
blackwind_123 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
solocshaw has joined #ruby
Fernando-Basso has quit [Quit: WeeChat 1.8]
andrzejku has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
rohitpaulk has quit [Ping timeout: 260 seconds]
prawnzy has joined #ruby
rohitpaulk has joined #ruby
solocshaw has quit [Ping timeout: 246 seconds]
prawnzy has quit [Ping timeout: 246 seconds]
sepp2k1 has joined #ruby
rohitpaulk has quit [Ping timeout: 255 seconds]
sepp2k1 has quit [Client Quit]
sepp2k has quit [Ping timeout: 255 seconds]
mostlybadfly has quit [Quit: Connection closed for inactivity]
jackjackdripper has joined #ruby
Cohedrin_ has joined #ruby
boombox_ has joined #ruby
shinnya has quit [Ping timeout: 255 seconds]
troulouliou_div2 has joined #ruby
rohitpaulk has joined #ruby
hotpanca_ has joined #ruby
cosmic_imposter has quit [Ping timeout: 268 seconds]
boombox_ has quit [Remote host closed the connection]
roshanavand has joined #ruby
troulouliou_div2 has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 246 seconds]
andrzejku has joined #ruby
rikkipitt has joined #ruby
rohitpaulk has quit [Ping timeout: 268 seconds]
runescape07rsps has quit [Ping timeout: 240 seconds]
nacsurte has joined #ruby
nadir has quit [Quit: Connection closed for inactivity]
jackjackdripper has quit [Quit: Leaving.]
nacsurte has quit [Ping timeout: 240 seconds]
romank has quit [Read error: Connection reset by peer]
runescape07rsps has joined #ruby
blackwind_123 has quit [Ping timeout: 255 seconds]
blackwind_123 has joined #ruby
carterdea has joined #ruby
hhatch has quit [Quit: leaving]
romank has joined #ruby
ResidentBiscuit has quit [Remote host closed the connection]
rikkipitt has quit [Quit: Leaving...]
ResidentBiscuit has joined #ruby
dionysus69 has quit [Remote host closed the connection]
guacamole has quit [Quit: Lost terminal]
runescape07rsps has quit [Ping timeout: 240 seconds]
dionysus69 has joined #ruby
haylon has joined #ruby
ResidentBiscuit has quit [Ping timeout: 255 seconds]
KeyJoo has joined #ruby
ResidentBiscuit has joined #ruby
<haylon>
Is anyone familiar with Chef's Omnibus packager RubyGem?
ketan has joined #ruby
minimalism has quit [Quit: minimalism]
pwnd_nsfw` has joined #ruby
ketan has quit [Ping timeout: 246 seconds]
pwnd_nsfw has quit [Ping timeout: 260 seconds]
<havenwood>
haylon: You might try the #chef channel if you haven't already.
mniip has quit [Read error: Connection reset by peer]
Fernando-Basso has joined #ruby
kolgomorov has joined #ruby
dviola has joined #ruby
eightlimbed has joined #ruby
nadir has joined #ruby
<haylon>
I wasn't sure if I hsould ask here or Chef since its not really a full chef question, just more about can this be used to package RPMs and a if anyone has used it to package some other software other than a rubygem
weinstein has joined #ruby
Azure has quit [Ping timeout: 276 seconds]
kolgomorov has quit [Ping timeout: 255 seconds]
romank has quit [Read error: Connection reset by peer]
nacsurte has joined #ruby
mniip has joined #ruby
romank has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
uZiel has quit [Ping timeout: 248 seconds]
romank has quit [Read error: Connection reset by peer]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
sekmo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mendel has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
jenrzzz has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
theod has quit [Quit: Lost terminal]
sekmo has joined #ruby
mim1k has quit [Ping timeout: 260 seconds]
mim1k has joined #ruby
Rodya_ has quit [Remote host closed the connection]
inkky has joined #ruby
sekmo has quit [Client Quit]
ur5us has joined #ruby
ketan has joined #ruby
QpQ4 has joined #ruby
Rodya_ has joined #ruby
shinnya has joined #ruby
mim1k has quit [Ping timeout: 246 seconds]
ketan has quit [Ping timeout: 240 seconds]
uranellus has quit [Ping timeout: 258 seconds]
Azure has joined #ruby
AndBobsYourUncle has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
tgragnato has joined #ruby
mim1k has joined #ruby
DK2 has quit [Ping timeout: 240 seconds]
bkxd_ has quit [Ping timeout: 268 seconds]
bkxd has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
dcluna has quit [Ping timeout: 260 seconds]
mim1k has quit [Ping timeout: 268 seconds]
dcluna has joined #ruby
bkxd has quit [Ping timeout: 268 seconds]
nacsurte has joined #ruby
weinstein has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 255 seconds]
nacsurte has quit [Ping timeout: 240 seconds]
jamesaxl has quit [Quit: WeeChat 1.7.1]
Murda has quit [Quit: Murda]
cam27 has joined #ruby
DK2 has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
uranellus has joined #ruby
uranellus has quit [Changing host]
uranellus has joined #ruby
KeyJoo has quit [Ping timeout: 255 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
minimalism has joined #ruby
nocaberi has quit [Ping timeout: 240 seconds]
hotpancakes has quit []
haylon has quit [Remote host closed the connection]
AndBobsYourUncle has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
ascarter has joined #ruby
ltem has quit [Quit: Leaving]
psychicist__ has quit [Ping timeout: 240 seconds]
ascarter has quit [Ping timeout: 240 seconds]
Rodya_ has joined #ruby
vuoto has quit [Remote host closed the connection]
Rodya_ has quit [Remote host closed the connection]
justache has quit [Ping timeout: 240 seconds]
justache has joined #ruby
Emmanuel_Chanel has joined #ruby
Dimik has quit [Ping timeout: 260 seconds]
inkky has quit [Quit: Leaving]
_whitelogger has joined #ruby
nacsurte has joined #ruby
mim1k has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
nacsurte has quit [Ping timeout: 260 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
bocobit has joined #ruby
<bocobit>
Hello, is there anyone here who could give me a hand/ point me in the right direction?
eightlimbs has joined #ruby
[ohjn] has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
Burgestrand has joined #ruby
bkxd_ has quit [Ping timeout: 268 seconds]
kanye_vest has quit [Quit: Leaving]
eightlimbed has quit [Ping timeout: 268 seconds]
Mon_Ouie has joined #ruby
ohjn__ has quit [Ping timeout: 246 seconds]
rikkipitt has joined #ruby
bkxd has joined #ruby
Burgestrand has quit [Ping timeout: 255 seconds]
<Radar>
bocobit: Sure, just ask your question
TomyLobo2 has joined #ruby
bkxd_ has joined #ruby
TomyLobo has quit [Ping timeout: 255 seconds]
comet23 has joined #ruby
<comet23>
why is rereading so difficult?
<bocobit>
I'm making a form, the form has select with multiple options. How do I get the form to show the value selected after the post method?
<bocobit>
like if someone wants to edit that form after they submit it.
<comet23>
i've started on a new web development course and i know all the stuff they're talking about, a few new things were said that helped me understand the information in a new way but most of it is review and i already know this stuff, why is it hard for my brain to review and how can i make it less difficult?
<bocobit>
the default option selected is the first option
Silthias1 has joined #ruby
Rodya_ has joined #ruby
Silthias has quit [Ping timeout: 255 seconds]
<bocobit>
The form will show data that was entered in a text input but all the selects are just the default options
<bocobit>
I'm using bootstrap
<bocobit>
I'm not using Rails*
<bocobit>
Just plain ruby
bkxd has quit [Ping timeout: 240 seconds]
nertzy has quit [Ping timeout: 246 seconds]
ketan has joined #ruby
bkxd_ has quit [Ping timeout: 260 seconds]
nertzy has joined #ruby
TheBloke has joined #ruby
chouhoulis has joined #ruby
<elomatreb>
bocobit: You can set the `selected` attribute on the options in a select
ascarter has joined #ruby
chouhoul_ has joined #ruby
ddffg has quit [Ping timeout: 260 seconds]
ketan has quit [Ping timeout: 255 seconds]
TomyLobo2 has quit [Ping timeout: 255 seconds]
chouhoulis has quit [Ping timeout: 260 seconds]
chouhoul_ has quit [Ping timeout: 255 seconds]
Fysicus has quit [Quit: The Truth Is Just An Excuse For A Lack Of Imagination]
<bocobit>
elomatreb: how do change which option is selected based on what the user submitted?
<elomatreb>
Well, you need to access the data you received and stored based on the request and use it set the attribute
<elomatreb>
How you do that depends on how you store your data
<bocobit>
Here's my code
ascarter has quit [Ping timeout: 268 seconds]
Fernando-Basso has quit [Quit: WeeChat 1.8]
jenrzzz has joined #ruby
<Radar>
?rails bocobit
<ruby[bot]>
bocobit: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ HELP
<bocobit>
no rails
<Radar>
ok.
comet23_ has joined #ruby
<Radar>
comet23: what?
<Radar>
comet23: keep practicing it.
comet23 has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 260 seconds]
comet23_ has quit [Ping timeout: 240 seconds]
comet23_ has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
roshanavand has quit [Quit: roshanavand]
mim1k has joined #ruby
rikkipitt has quit [Quit: Leaving...]
planigan has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 246 seconds]
jenrzzz has joined #ruby
jenrzzz has joined #ruby
jenrzzz has quit [Changing host]
comet23_ is now known as comet23
nacsurte has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
tgragnato has quit [Quit: Sto andando via]
nacsurte has quit [Ping timeout: 240 seconds]
jenrzzz has quit [Ping timeout: 240 seconds]
planigan has joined #ruby
_sfiguser has quit [Ping timeout: 240 seconds]
mim1k has quit [Ping timeout: 255 seconds]
bkxd_ has quit [Ping timeout: 260 seconds]
bkxd has quit [Ping timeout: 260 seconds]
Emmanuel_Chanel_ has joined #ruby
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel_ has quit [Client Quit]
Emmanuel_Chanel has joined #ruby
alex`` has quit [Quit: WeeChat 1.8]
charliesome has joined #ruby
_sfiguser has joined #ruby
bruce_lee has quit [Remote host closed the connection]