havenwood changed the topic of #ruby to: Rules & more: https://ruby-community.com || Ruby 2.4.1, 2.3.4 & 2.2.7: https://www.ruby-lang.org || Paste >3 lines of text to: https://gist.github.com || Rails questions? Ask in: #RubyOnRails || Logs: https://irclog.whitequark.org/ruby || Books: https://goo.gl/wpGhoQ
UserOO7 has quit [Remote host closed the connection]
UserOO7 has joined #ruby
UserOO7 has quit [Remote host closed the connection]
zautomata1 has joined #ruby
zachk has quit [Quit: g'night and carry on....]
Rodya_ has quit [Ping timeout: 246 seconds]
<Radar> comet23: hi
* Radar comet23: https://learnxinyminutes.com/docs/ruby/ might help
jenrzzz has quit [Ping timeout: 240 seconds]
zautomata has quit [Ping timeout: 260 seconds]
vincent_ has joined #ruby
<market> | have txt file to |ine uniq
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.
<elomatreb> >> %w[a b b a].uniq
<ruby[bot]> elomatreb: # => ["a", "b"] (https://eval.in/821803)
<elomatreb> ?
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]
<comet23> breakfast = cereal, lunch = sandwich, and dinner = steak
GinoMan has quit [Ping timeout: 260 seconds]
<comet23> what is the magic behind that destructuring the array with a method call
UserOO7 has joined #ruby
<comet23> that's interesting... it's easy to understand how to use it, but how it works not so much
<zenspider> yup. `a, b, c = f` looks like: s(:masgn, s(:array, s(:lasgn, :a), s(:lasgn, :b), s(:lasgn, :c)), s(:to_ary, s(:call, nil, :f)))
<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
<comet23> but how does a = :a work?
<zenspider> ?answers comet23
<ruby[bot]> comet23: How to ask the right questions to get you the right answer: https://www.mikeash.com/getting_answers.html
<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
<adam12> eightlimbed: I think avdi's site is offline right now, but maybe this video will help explain a bit more about lambda/proc. http://www.virtuouscode.com/2013/02/18/rubytapas-freebie-blocks-procs-lambdas/
agent_white has quit [Ping timeout: 246 seconds]
d^sh_ has quit [Ping timeout: 255 seconds]
rfoust has joined #ruby
<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> i don't care if it's a bad idea
<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.
<comet23> when you say duck i say jump
<comet23> oh, wait is ruby just c with nice syntax?
<runescape07rsps> dude what
<elomatreb> Learn the proper way. Learn how native OS threading works, it'll be far more helpful than writing a loop once
<havenwood> comet23: ^ that might get you on the right track if you really want something other than busy waiting
FastJack_ has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
enterprisey has joined #ruby
FastJack_ is now known as FastJack
<comet23> what is a good way to learn that Aloy
<comet23> elomatreb
<runescape07rsps> remember before code camps
<runescape07rsps> when people knew how to write features
<havenwood> ?offtopic runescape07rsps
<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 :)
<comet23> get yours lol
<comet23> unless you're already a pro
<comet23> microsoft has a free thing for students too called imagine
<comet23> if you know any others please let me know
<havenwood> comet23: There are some good links here: https://ruby-community.com/pages/links
bkxd has joined #ruby
<havenwood> comet23: And here: https://www.ruby-lang.org/en/documentation/
bkxd_ has joined #ruby
<havenwood> comet23: As well as a list of books (some are free, some are not): https://gist.github.com/baweaver/57a7c8296ca2c03effbd8fac1e7f6b40
<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]
ddffg has joined #ruby
isBEKaml has joined #ruby
nacsurte has joined #ruby
Cohedrin_ has joined #ruby
Danny_ has joined #ruby
harfangk has quit [Quit: Textual IRC Client: www.textualapp.com]
nacsurte has quit [Ping timeout: 268 seconds]
hotpancakes has joined #ruby
Danny_ has quit [Ping timeout: 260 seconds]
djbkd has quit [Remote host closed the connection]
hotpancakes has quit [Ping timeout: 246 seconds]
jamesaxl has quit [Ping timeout: 240 seconds]
jamesaxl has joined #ruby
ascarter has joined #ruby
nowhere_man has joined #ruby
Cohedrin_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bambanx has joined #ruby
solocshaw has joined #ruby
bambanx has quit [Client Quit]
relyks has quit [Ping timeout: 255 seconds]
ascarter has quit [Ping timeout: 268 seconds]
solocshaw has quit [Remote host closed the connection]
latemus has joined #ruby
ketan has joined #ruby
nofxxx has joined #ruby
ketan has quit [Ping timeout: 240 seconds]
nofxxxx has quit [Ping timeout: 240 seconds]
cam27 has joined #ruby
Dimik has quit [Ping timeout: 276 seconds]
ltem has joined #ruby
antgel has joined #ruby
marr has joined #ruby
conta has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
Danny_ has joined #ruby
agent_white has joined #ruby
nacsurte has joined #ruby
konsolebox has quit [Ping timeout: 246 seconds]
Danny_ has quit [Ping timeout: 240 seconds]
nacsurte has quit [Ping timeout: 240 seconds]
_sfiguser has joined #ruby
hotpancakes has joined #ruby
lele has joined #ruby
konsolebox has joined #ruby
_whitelogger has joined #ruby
rt has quit [Excess Flood]
rt has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 240 seconds]
aphprentice has quit [Quit: Connection closed for inactivity]
ascarter has joined #ruby
runescape07rsps has joined #ruby
_main_ has joined #ruby
_main_ has quit [Read error: Connection reset by peer]
VladGh_ has joined #ruby
_main_ has joined #ruby
cam27 has quit [Quit: cam27]
VladGh has quit [Ping timeout: 246 seconds]
_main_ has quit [Read error: Connection reset by peer]
_main_0 has joined #ruby
__main__ has quit [Ping timeout: 255 seconds]
ascarter has quit [Ping timeout: 268 seconds]
dare-to-recurse[ has joined #ruby
cosmic_imposter_ has joined #ruby
BTRE has quit [Read error: Connection reset by peer]
Mia has joined #ruby
montanonic has joined #ruby
mikecmpbll has quit [Quit: inabit. zz.]
blackwind_123 has quit [Ping timeout: 268 seconds]
dviola has quit [Quit: WeeChat 1.8]
nacsurte has joined #ruby
blackwind_123 has joined #ruby
Danny_ has joined #ruby
lxsameer has joined #ruby
roshanavand has joined #ruby
anisha has joined #ruby
nacsurte has quit [Ping timeout: 246 seconds]
Danny_ has quit [Ping timeout: 276 seconds]
vuoto has joined #ruby
dionysus69 has quit [Remote host closed the connection]
milardovich has joined #ruby
hotpancakes has quit [Ping timeout: 255 seconds]
vuoto has quit [Remote host closed the connection]
dionysus69 has joined #ruby
cosmic_imposter_ has quit [Quit: Leaving]
cosmic_imposter has joined #ruby
dionysus69 has quit [Ping timeout: 240 seconds]
carterdea has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
ketan has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
zacts has quit [Ping timeout: 255 seconds]
blackwind_123 has quit [Ping timeout: 240 seconds]
ketan has quit [Ping timeout: 260 seconds]
psychicist__ has joined #ruby
conta has quit [Ping timeout: 260 seconds]
blackwind_123 has joined #ruby
bkxd has joined #ruby
bkxd_ has joined #ruby
anisha has quit [Quit: This computer has gone to sleep]
Mia has quit [Ping timeout: 240 seconds]
zacts has joined #ruby
hutch34 has joined #ruby
montanonic has quit [Ping timeout: 240 seconds]
clemens34 has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
isBEKaml has quit [Quit: leaving]
nacsurte has joined #ruby
runescape07rsps has quit [Quit: Leaving]
nacsurte has quit [Ping timeout: 255 seconds]
rohitpaulk has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
meshsmith has joined #ruby
meshsmith has joined #ruby
meshsmith has quit [Changing host]
mbr has joined #ruby
aglorei has quit [Ping timeout: 248 seconds]
bkxd has quit [Read error: Connection reset by peer]
kmhn has joined #ruby
sepp2k has joined #ruby
blackwind_123 has quit [Ping timeout: 240 seconds]
bkxd_ has quit [Ping timeout: 255 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
prawnzy has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 268 seconds]
bruce_lee has joined #ruby
bruce_lee has joined #ruby
bruce_lee has quit [Changing host]
aglorei has joined #ruby
biberu has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.8]
Fernando-Basso has joined #ruby
ascarter has joined #ruby
humanBird has quit [Ping timeout: 260 seconds]
hotpancakes has joined #ruby
ascarter has quit [Ping timeout: 276 seconds]
uZiel has quit [Ping timeout: 248 seconds]
aenialis has quit [Ping timeout: 260 seconds]
alex`` has joined #ruby
hhatch has joined #ruby
hotpancakes has quit [Ping timeout: 276 seconds]
chouhoulis has joined #ruby
chouhoulis has quit [Ping timeout: 246 seconds]
antgel has joined #ruby
nacsurte has joined #ruby
Danny_ has joined #ruby
jamesaxl has quit [Read error: Connection reset by peer]
jamesaxl has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
nacsurte has quit [Ping timeout: 240 seconds]
bkxd_ has quit [Remote host closed the connection]
Danny_ has quit [Ping timeout: 240 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
rfoust has quit [Remote host closed the connection]
rfoust has joined #ruby
rohitpaulk has quit [Ping timeout: 268 seconds]
blackwind_123 has joined #ruby
rohitpaulk has joined #ruby
milardovich has quit [Remote host closed the connection]
ketan has joined #ruby
DoubleMalt has joined #ruby
djbkd has joined #ruby
ketan has quit [Ping timeout: 246 seconds]
ascarter has joined #ruby
ascarter has quit [Ping timeout: 268 seconds]
romank has joined #ruby
hutch34 has joined #ruby
bkxd_ has quit [Ping timeout: 246 seconds]
bkxd has quit [Ping timeout: 268 seconds]
DoubleMalt has quit [Quit: Leaving]
rippa has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
latemus has quit [Quit: leaving]
bkxd has joined #ruby
nacsurte has joined #ruby
oleo has quit [Quit: irc client terminated!]
romank has quit [Read error: Connection reset by peer]
marlinc_ has joined #ruby
bkxd_ has joined #ruby
nacsurte has quit [Ping timeout: 240 seconds]
nowhere_man has quit [Ping timeout: 260 seconds]
ionte has quit [Quit: ZNC - 1.6.0 - http://znc.in]
romank has joined #ruby
meshsmith_ has joined #ruby
meshsmith has quit [Ping timeout: 240 seconds]
romank has quit [Read error: Connection reset by peer]
nanoz has quit [Quit: <3]
romank has joined #ruby
rikkipitt has joined #ruby
troulouliou_div2 has joined #ruby
prawnzy has joined #ruby
ketan has joined #ruby
im0nde has joined #ruby
psychicist__ has quit [Quit: Lost terminal]
kanye_vest has joined #ruby
oleo has joined #ruby
romank has quit [Read error: Connection reset by peer]
prawnzy has quit [Ping timeout: 246 seconds]
milardovich has joined #ruby
dionysus69 has joined #ruby
Danny_ has joined #ruby
romank has joined #ruby
milardovich has quit [Ping timeout: 260 seconds]
ketan has quit [Remote host closed the connection]
ketan has joined #ruby
Danny_ has quit [Ping timeout: 268 seconds]
ascarter has joined #ruby
uZiel has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
bkxd_ has quit [Ping timeout: 268 seconds]
bkxd has joined #ruby
bkxd_ has joined #ruby
vincent_ has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Quit: dionysus69]
vincent_ has quit [Client Quit]
hotpancakes has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
cosmic_imposter has quit [Quit: Leaving]
cosmic_imposter has joined #ruby
psychicist__ has joined #ruby
romank has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
romank has joined #ruby
romank has quit [Read error: Connection reset by peer]
nacsurte has joined #ruby
kanye_vest has quit [Ping timeout: 260 seconds]
romank has joined #ruby
FastJack_ has joined #ruby
FastJack has quit [Read error: Connection reset by peer]
FastJack_ is now known as FastJack
nacsurte has quit [Ping timeout: 246 seconds]
wnd_ has joined #ruby
wnd has quit [Ping timeout: 260 seconds]
ledestin has joined #ruby
hotpancakes has quit [Ping timeout: 246 seconds]
Burgestrand has joined #ruby
meshsmith_ has quit [Remote host closed the connection]
romank has quit [Read error: Connection reset by peer]
wnd_ is now known as wnd
troulouliou_div2 has quit [Remote host closed the connection]
romank has joined #ruby
charliesome has joined #ruby
bkxd_ has quit [Ping timeout: 240 seconds]
aenialis has joined #ruby
bkxd has quit [Ping timeout: 276 seconds]
milardovich has joined #ruby
bkxd has joined #ruby
oleo has quit [Quit: irc client terminated!]
bkxd_ has joined #ruby
DoubleMalt has joined #ruby
vuoto has joined #ruby
vuoto has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
kanye_vest has joined #ruby
Burgestrand has joined #ruby
aenialis has left #ruby ["WeeChat 1.8"]
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 258 seconds]
rikkipitt has quit [Remote host closed the connection]
Burgestrand has quit [Quit: Closing time!]
ascarter has joined #ruby
rikkipitt has joined #ruby
Elysia has quit [Remote host closed the connection]
bathtub_shark has joined #ruby
hutch34 has joined #ruby
rikkipitt has quit [Ping timeout: 260 seconds]
ledestin has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ledestin has joined #ruby
dionysus69 has joined #ruby
ascarter has quit [Ping timeout: 260 seconds]
hutch34 has quit [Ping timeout: 255 seconds]
ledestin has quit [Ping timeout: 255 seconds]
nacsurte has joined #ruby
conta has joined #ruby
gj__ has joined #ruby
rohitpaulk has quit [Ping timeout: 240 seconds]
grymmjack has quit [Ping timeout: 240 seconds]
gj__ is now known as grymmjack
Burgestrand has joined #ruby
rohitpaulk has joined #ruby
nacsurte has quit [Ping timeout: 268 seconds]
conta has quit [Quit: conta]
Demo318 has joined #ruby
Demo318 has quit [Client Quit]
milardovich has quit []
mydog2 has joined #ruby
<mydog2> hello??
bkxd_ has quit [Ping timeout: 258 seconds]
DLSteve has quit [Quit: All rise, the honorable DLSteve has left the channel.]
bkxd has quit [Ping timeout: 268 seconds]
nadir has quit [Quit: Connection closed for inactivity]
runescape07rsps has joined #ruby
prawnzy has joined #ruby
jameser has joined #ruby
uZiel has quit [Ping timeout: 248 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
prawnzy has quit [Ping timeout: 268 seconds]
andrzejku has joined #ruby
marr has quit [Ping timeout: 246 seconds]
hotpancakes has joined #ruby
tau has joined #ruby
t-recx has joined #ruby
Murda has joined #ruby
jameser has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ascarter has joined #ruby
<apeiros> hi mydog2
mim1k has joined #ruby
antgel has quit [Ping timeout: 240 seconds]
romank has joined #ruby
ascarter has quit [Ping timeout: 240 seconds]
nacsurte has joined #ruby
oleo has joined #ruby
nadir has joined #ruby
rfoust has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nacsurte has quit [Ping timeout: 240 seconds]
DoubleMalt has quit [Read error: No route to host]
romank has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 260 seconds]
Burgestrand has quit [Quit: Closing time!]
Burgestrand has joined #ruby
johnny56 has quit [Ping timeout: 264 seconds]
rohitpaulk has joined #ruby
johnny56 has joined #ruby
<mydog2> hey apeiros -- group is quiet ehh
romank has joined #ruby
conta has joined #ruby
theod has joined #ruby
<ule> very quiet
uZiel has joined #ruby
oleo has quit [Ping timeout: 246 seconds]
solocshaw has joined #ruby
Burgestrand has quit [Quit: Closing time!]
oleo has joined #ruby
nacsurte has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
oleo has quit [Ping timeout: 240 seconds]
nacsurte has quit [Ping timeout: 255 seconds]
apparition has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
apparition has joined #ruby
hutch34 has joined #ruby
apparition has quit [Client Quit]
apparition has joined #ruby
apparition has quit [Client Quit]
apparition has joined #ruby
apparition has quit [Client Quit]
apparition has joined #ruby
apparition has quit [Client Quit]
hutch34 has quit [Ping timeout: 255 seconds]
_sfiguser has quit [Ping timeout: 240 seconds]
ascarter has joined #ruby
ascarter has quit [Ping timeout: 268 seconds]
marlinc_ is now known as marlinc
_sfiguser has joined #ruby
dionysus70 has joined #ruby
dionysus69 has quit [Ping timeout: 255 seconds]
dionysus70 is now known as dionysus69
conta has quit [Ping timeout: 260 seconds]
hotpancakes has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
chouhoulis has joined #ruby
oleo has joined #ruby
jphase_ has joined #ruby
Danny_ has joined #ruby
<chrisseaton> kitallis: do you need it to be very fast?
<kitallis> yes
johnny56 has quit [Ping timeout: 264 seconds]
Danny_ has quit [Client Quit]
jphase has quit [Ping timeout: 240 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
psychicist__ has quit [Quit: Lost terminal]
BTRE has joined #ruby
<chrisseaton> Java will intrinsify that to actually use the lzcnt instruction, but Ruby won't
<chrisseaton> That's probably reasonably fast for Ruby
psychicist__ has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<kitallis> chrisseaton, let me try
<chrisseaton> Something a bit more Ruby-like and high level but slow could be n.to_s(2).rjust(width, '0').chars.take_while{ |c| c == '0'}.size
<kitallis> yeah, I wanted to see if I could avoid to_s
romank has quit [Read error: Connection reset by peer]
prawnzy has joined #ruby
<chrisseaton> kitallis: this code references something called 'HD' but I don't know what that is
mokiwis has joined #ruby
<kitallis> chrisseaton, I assume >>> is right shift, what do you think <<= is?
johnny56 has joined #ruby
romank has joined #ruby
<kitallis> oh, nvm, it's n <<= 1 is n = n << 1
prawnzy has quit [Ping timeout: 276 seconds]
relyks has joined #ruby
<chrisseaton> kitallis: you probably want to use >> in Ruby, instead of >>>
<kitallis> yeah
<kitallis> >>> is unsigned
<chrisseaton> (of course, take note of the copyright and licence of this file when copying it etc etc)
solocshaw has joined #ruby
rohitpaulk has quit [Ping timeout: 260 seconds]
hutch34 has joined #ruby
solocshaw has quit [Ping timeout: 258 seconds]
rohitpaulk has joined #ruby
cam27 has joined #ruby
romank has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
hotpancakes has quit [Remote host closed the connection]
rohitpaulk has quit [Ping timeout: 240 seconds]
conta has joined #ruby
ddffg has quit [Ping timeout: 260 seconds]
<kitallis> !paste
weathermaker has joined #ruby
romank has joined #ruby
rohitpaulk has joined #ruby
nacsurte has joined #ruby
<kitallis> chrisseaton, seems to be working ok
conta has quit [Ping timeout: 240 seconds]
relyks has quit [Ping timeout: 276 seconds]
nacsurte has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby
mim1k has quit [Ping timeout: 240 seconds]
roshanavand has quit [Quit: roshanavand]
ddffg has joined #ruby
ascarter has joined #ruby
hotpancakes has quit [Remote host closed the connection]
<kitallis> chrisseaton, just going to instead do Math.log2(i).ceil
hotpancakes has joined #ruby
hutch34 has quit [Ping timeout: 255 seconds]
<chrisseaton> kitallis: ok but that won't work for some integers of course - not all integers fit in a double
Guest30004 has quit [Ping timeout: 240 seconds]
mim1k has joined #ruby
<kitallis> chrisseaton, yeah
<kitallis> Float can do 1.7976931348623157 * (10 ** 308)
<kitallis> which is huge enough for my usecase
MrSparkle has quit [Ping timeout: 240 seconds]
<kitallis> anyway thx
ascarter has quit [Ping timeout: 255 seconds]
<chrisseaton> It can do that large yes, but not with that much precision
<chrisseaton> I think a Ruby Float will be able to represent an integer op to 2**56
ledestin has joined #ruby
alfiemax has joined #ruby
alex`` has quit [Read error: Connection reset by peer]
ResidentBiscuit has joined #ruby
<kitallis> chrisseaton, how do you figure?
<chrisseaton> A Ruby Float is an IEEE double, which has 56 bits of precision
MrSparkle has joined #ruby
rohitpaulk has quit [Ping timeout: 246 seconds]
rohitpaulk has joined #ruby
<chrisseaton> irb(main):037:0> 0b11111111111111111111111111111111111111111111111111111.to_f.to_i.to_s(2)
<chrisseaton> => "1000000000000000000000000000000000000000000000000000000"
<chrisseaton> irb(main):038:0> 0b111111111111111111111111111111111111111111111111111111.to_f.to_i.to_s(2)
<chrisseaton> => "11111111111111111111111111111111111111111111111111111"
<chrisseaton> See - the 55th bit is lost
<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> There's no negative numbers here
<chrisseaton> It says that the maximum integer you can store in a Float without loss of precision is 9007199254740991, or 0x1FFFFFFFFFFFFF
joes has quit [Quit: ZNC 1.6.3+deb1 - http://znc.in]
joes has joined #ruby
<chrisseaton> Another example:
<chrisseaton> irb(main):048:0> 0x1FFFFFFFFFFFFF.to_f.to_i.to_s(16)
<chrisseaton> => "200000000000000000"
<chrisseaton> irb(main):049:0> 0x1FFFFFFFFFFFFFFFFF.to_f.to_i.to_s(16)
<chrisseaton> => "1fffffffffffff"
alfiemax has left #ruby [#ruby]
<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]
romank has joined #ruby
andrzejku has quit [Quit: Textual IRC Client: www.textualapp.com]
romank has quit [Read error: Connection reset by peer]
romank has joined #ruby
romank has quit [Read error: Connection reset by peer]
romank has joined #ruby
hotpanca_ has quit [Read error: Connection reset by peer]
hotpancakes has joined #ruby
dionysus69 has quit [Remote host closed the connection]
tau has left #ruby [#ruby]
cam27 has quit [Quit: cam27]
sniffer has quit [Ping timeout: 246 seconds]
Ka has quit [Changing host]
Ka has joined #ruby
hutch34 has joined #ruby
romank has quit [Read error: Connection reset by peer]
ascarter has joined #ruby
Silthias1 has quit [Ping timeout: 260 seconds]
romank has joined #ruby
sekmo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Danny_ has joined #ruby
ascarter has quit [Ping timeout: 260 seconds]
ResidentBiscuit has quit []
Silthias has joined #ruby
prawnzy has joined #ruby
prawnzy has quit [Read error: Connection reset by peer]
|prawnzy has joined #ruby
romank has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mim1k has joined #ruby
montanonic has quit [Ping timeout: 246 seconds]
sekmo has joined #ruby
Rodya_ has joined #ruby
QpQ4 has joined #ruby
Danny_ has quit []
Dimik has joined #ruby
marr has joined #ruby
nacsurte has joined #ruby
hutch34 has quit [Ping timeout: 276 seconds]
nacsurte has quit [Ping timeout: 255 seconds]
mim1k has quit [Ping timeout: 246 seconds]
mim1k has joined #ruby
rippa has quit [Read error: Connection reset by peer]
QpQ4 has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
gheegh has quit [Quit: Textual IRC Client: www.textualapp.com]
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]
AndBobsYourUncle has joined #ruby