apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
knutmithut has quit [Ping timeout: 256 seconds]
MartynKeigher has joined #ruby
lmickh has quit [Remote host closed the connection]
s00pcan has quit [Ping timeout: 255 seconds]
rj46 has quit [Quit: Konversation terminated!]
yfeldblum has joined #ruby
ta has quit [Remote host closed the connection]
TehStig has joined #ruby
timonv_ has joined #ruby
lucyinthesky has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Avahey has joined #ruby
kiyote23 has joined #ruby
<godd2> I dunno kylekersey, "compile" is a diry word round these parts. ;)
<godd2> dirty*
dc has quit [Remote host closed the connection]
_mtr has joined #ruby
kirun has quit [Quit: Client exiting]
versatiletech has quit [Quit: versatiletech]
reinaldob has quit [Remote host closed the connection]
<pipework> It's not really that there isn't one though.
x1337807x has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
<kylekersey> godd2: but the ruby interpreter needs to be compiled to use it
<godd2> kylekersey ah, but the ruby interpreter is not written in ruby
reinaldob has joined #ruby
CpuID2 has joined #ruby
baweaver has quit [Remote host closed the connection]
CpuID2 has quit [Changing host]
CpuID2 has joined #ruby
<kylekersey> godd2: it is in C
<kylekersey> which is a compiled language
<godd2> but it gets comiled to machine language, which isn't compiled
<wallerdev> lol
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
spastorino has joined #ruby
<godd2> I don't know why we don't have ruby cpus yet. This is the future!
<kylekersey> godd2: machine language is assembled, not compiled
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
_mtr has quit [Ping timeout: 264 seconds]
hmsimha has joined #ruby
lucyinthesky has joined #ruby
<pipework> But there's an assembly complier.
<pipework> So isn't it already assembled by nature of being compiled to machine language?
klmlfl has quit [Ping timeout: 252 seconds]
<kylekersey> pipework: do you mean ELF binary machine language or assably?
it0a has joined #ruby
reinaldob has quit [Ping timeout: 250 seconds]
Sid05 has quit [Quit: Sid05]
rkday has quit [Ping timeout: 272 seconds]
<godd2> http://en.wikipedia.org/wiki/Java_processor we could make this for Ruby theoretically, yes?
mloveless has joined #ruby
pandaant has quit [Remote host closed the connection]
Deele has quit [Ping timeout: 260 seconds]
kiyote23 has quit [Ping timeout: 264 seconds]
lucyinthesky has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
<kylekersey> godd2: i am wanting to run it
MrIlyas has quit [Read error: Connection reset by peer]
<kylekersey> on the hardware
<kylekersey> not on the java virtual machine
lucyinthesky has joined #ruby
bricker`work has quit [Ping timeout: 244 seconds]
ItSANgo has joined #ruby
yfeldblum has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<godd2> Id wager it's more efficient to run java in the jvm on a high-end cpu than it is to run it in a java processor
yfeldblum has joined #ruby
havenwood has joined #ruby
bricker`work has joined #ruby
freerobby has joined #ruby
josephndenton has joined #ruby
oleo is now known as Guest2221
fgo has joined #ruby
oleo__ has joined #ruby
jazzed has joined #ruby
jazzed has left #ruby [#ruby]
baweaver has joined #ruby
_mtr has joined #ruby
jazzed has joined #ruby
<jazzed> Don't know ruby. Can someone explain what this statement is doing? config.vm.network “forwarded_port”, guest: 8001, host: 8001
<jazzed> no equal statement.
Guest2221 has quit [Ping timeout: 258 seconds]
<pipework> That's a method call
<jazzed> oh. ty.
thekkid has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 264 seconds]
ezio has quit [Ping timeout: 256 seconds]
<timmmaaaayyy> i'm retrieving a url from a database, modifying the URL, and putting the new url on the same row of the database. how do i do this without it creating a new row?
dc has joined #ruby
<pipework> probably by using your database's update functionality
<pipework> Maybe a transaction if you need.
<pipework> If it supports transactions.
TehStig has quit [Remote host closed the connection]
<timmmaaaayyy> i'm trying to use: insert = con.query("INSERT INTO uploads (direct_thumbnail_upload_url) VALUES ('#{http_thumbnail_url}')") but it's definitely writing to a new row
<godd2> INSERT creates a new row
<timmmaaaayyy> i'd like it to write to the same row it retrieved the original URL from
<timmmaaaayyy> ahhhhh so I want update?
<godd2> yes
dts|pokeball has joined #ruby
<timmmaaaayyy> like this: insert = con.query("UPDATE uploads (direct_thumbnail_upload_url) VALUES ('#{http_thumbnail_url}')")
<timmmaaaayyy> or do i still need the INTO
wjimenez5271 has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
<godd2> you don't update into, but you do have to set things
<pipework> Ohlawdy, w3schools. :(
bmichelsen has quit [Quit: ZZZzzz…]
cloaked1 has quit [Quit: leaving]
oo_ has joined #ruby
jherbst has joined #ruby
porfa has quit [Ping timeout: 256 seconds]
tus has joined #ruby
ezio has joined #ruby
<godd2> dude, w3schools is totally webscale, bro
<timmmaaaayyy> insert = con.query("UPDATE uploads (direct_thumbnail_upload_url) VALUES ('#{http_thumbnail_url}') WHERE direct_upload_url = ('#{http_url}')")
<timmmaaaayyy> something like that? ^ but without whatever my error is
frem_ is now known as frem
<pipework> timmmaaaayyy: There's probably some useful SQL related channels that can help you out if you need.
karmatr0n has quit [Remote host closed the connection]
<timmmaaaayyy> is'nt it completely different since its in a ruby script?
crdpink2 has joined #ruby
porfa has joined #ruby
<timmmaaaayyy> i've read all kinds of wierd things....like maybe i even need a client.escape becuase of ruby
<godd2> timmmaaaayyy the only ruby thing about it is the string interpolation
<timmmaaaayyy> so that's why i'm posting here
<godd2> but you're having trouble with the sql itself
crdpink has quit [Ping timeout: 258 seconds]
<timmmaaaayyy> true. but couldn't it be the way i'm asking ruby to update it and calling variables and what not?
<godd2> timmmaaaayyy what library are you using to talk to the database?
Sid05 has joined #ruby
<timmmaaaayyy> i just have require 'mysql'
OldHarmony123 has joined #ruby
<timmmaaaayyy> but i've read that's called mysql2
<timmmaaaayyy> i'm a ruby newb
commmmodo has joined #ruby
OldHarmony123 has quit [Client Quit]
<timmmaaaayyy> you should see this script. you'd probably throw up
<godd2> Ive thrown up plenty at my own old code :P
<timmmaaaayyy> BUT, it does everything i need so far :) except write the data to mysql
ghostmoth has quit [Quit: ghostmoth]
kiyote23 has joined #ruby
<godd2> let me ask you this. what are you trying to accomplish with this script of yours?
lucyinthesky has left #ruby ["Leaving"]
oo_ has quit [Remote host closed the connection]
elastik has joined #ruby
oo_ has joined #ruby
commmmodo_ has joined #ruby
Sid05 is now known as sid05
lw has joined #ruby
commmmodo has quit [Ping timeout: 260 seconds]
<timmmaaaayyy> retrieve a URL from a database if the thumbnail_url field is NULL.....download the image....generate a thumbnail....upload it to S3.....write the thumbnail URL to the thumbnail_url field (on the same row)
kiyote23_ has joined #ruby
mary5030 has joined #ruby
lw has quit [Read error: Connection reset by peer]
lw_ has joined #ruby
kiyote23 has quit [Read error: Connection reset by peer]
s00pcan has joined #ruby
commmmodo_ has quit [Ping timeout: 256 seconds]
OldHarmony has joined #ruby
<godd2> No, that's not my question. what's your end goal. what is this a means to?
geiltalasdair has quit [Quit: Leaving]
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
geilt has joined #ruby
commmmodo has joined #ruby
Guest30557 is now known as El3ktra
El3ktra has quit [Changing host]
El3ktra has joined #ruby
<godd2> to make sure every image has a corresponding thumbnail?
<zenspider> godd2: I've found getting the 30k view on IRC to be neigh impossible
mary5030 has quit [Ping timeout: 258 seconds]
<godd2> zenspider I don't know what the "30k view" is
<zenspider> sorry... I'm missing a word: foot. "30k foot view"
<timmmaaaayyy> godd2: yes. to make sure everything has a thumbnail
<zenspider> you ask someone what they're trying to ultimately accomplish and they always answer micro
<godd2> zenspider well it looks like I just got my answer :P
<zenspider> because you guessed and asked
<godd2> maybe I'm better at guessing and asking...
<timmmaaaayyy> don't be ridiculous zenspider. he asked what i'm trying to do with the script, and i listed the things it's doing.
geilt has quit [Client Quit]
geilt has joined #ruby
<godd2> its true, i did cheat this time
geilt has quit [Client Quit]
quimrstorres has quit [Remote host closed the connection]
<OldHarmony> hallo i have a proplem with my ruby extansion
viki_ has joined #ruby
<OldHarmony> in a single c-app works and in my ext. i get a Segmentation fault
<OldHarmony> this is the croecct object tree from the c-app.....
<OldHarmony> here is the defintion of search-object https://gist.github.com/279ac8a5505b2eef9fae.git
<godd2> OldHarmony remove the .git from gist links
<OldHarmony> ok...
geilt has joined #ruby
<OldHarmony> rewrite now?
<timmmaaaayyy> here's my uglyness if it helps.... https://gist.github.com/anonymous/b5aae2c9c6a10028629f
<godd2> timmmaaaayyy is direct_thumbnail_upload_url a variable?
<timmmaaaayyy> its the name of a field in the database
jazzed has quit [Remote host closed the connection]
<godd2> k so your ruby looks functional
<timmmaaaayyy> yes it works and outputs everything exactly as i want it to. but i get this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(direct_thumbnail_upload_url) VALUES ('https://s3.amazonaws.com/cmfusion-devenv/' at line 1
<timmmaaaayyy> oh that looks to be an incorrect VALUE....it's missing the rest of the url
sailias has joined #ruby
beneggett has quit [Ping timeout: 264 seconds]
<godd2> I think your update statement is malformed
<godd2> but that's a hunch
marr has quit [Ping timeout: 258 seconds]
<timmmaaaayyy> i agree. i can't find any good examples online of how to do this
<zenspider> timmmaaaayyy: unbunch your panties. Nothing I said was ridiculous. It's an observation made after a decade of helping ppl with ruby on IRC.
<godd2> timmmaaaayyy here's another example http://www.tutorialspoint.com/sql/sql-update-query.htm
karmatr0n has joined #ruby
sailias has quit [Client Quit]
fmcgeough has joined #ruby
sailias has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<godd2> zenspider you cant just go around disagreeing with people on the internet.
maletor has joined #ruby
tokik has joined #ruby
charliesome has joined #ruby
oo_ has quit [Remote host closed the connection]
bricker`1ork has joined #ruby
diego_ar has quit []
sid05 has quit [Quit: sid05]
sailias has left #ruby [#ruby]
sailias has joined #ruby
bricker`work has quit [Ping timeout: 250 seconds]
samuel02 has joined #ruby
<zenspider> godd2: double standard much? :P
devoldmx33 has quit [Remote host closed the connection]
blizzy has joined #ruby
<timmmaaaayyy> this did the trick -- insert = con.query("UPDATE uploads SET direct_thumbnail_upload_url='#{http_thumbnail_url}' WHERE direct_upload_url='#{http_url}'")
<timmmaaaayyy> thanks for the help godd2!!
mikepack has joined #ruby
lw_ has quit [Quit: s]
pu22l3r_ has joined #ruby
samuel02 has quit [Ping timeout: 256 seconds]
jidar has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
michaeldeol has joined #ruby
<jidar> is there any way besides using Object.is_a?(Whatever::Foo) to get the object class?
econerd4ever has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 252 seconds]
boombadaroomba has quit [Remote host closed the connection]
pu22l3r has quit [Ping timeout: 265 seconds]
robustus|Off has joined #ruby
robustus|Off is now known as robustus
karmatr0n has quit [Remote host closed the connection]
OldHarmony has left #ruby [#ruby]
rshetty has joined #ruby
oo_ has joined #ruby
sarmiena_ has quit [Quit: sarmiena_]
deric_skibotn has quit [Ping timeout: 250 seconds]
echooo1 has joined #ruby
rshetty has quit [Remote host closed the connection]
Pupeno_ has joined #ruby
elastik has quit [Remote host closed the connection]
echooo has quit [Ping timeout: 265 seconds]
crdpink has joined #ruby
crdpink2 has quit [Ping timeout: 258 seconds]
<wallerdev> object.class ?
fgo has joined #ruby
<jidar> yep!
<jidar> :(
Pupeno has quit [Ping timeout: 265 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
<godd2> >> [].is_a? Object
<eval-in__> godd2 => true (https://eval.in/232713)
madabyss has quit [Ping timeout: 256 seconds]
kenneth has joined #ruby
<godd2> jidar just note that is_a? looks up the ancestor chain
<godd2> but class will tell you what it's an instance of.
fgo has quit [Ping timeout: 244 seconds]
lw has joined #ruby
<jidar> yea, switching around from a ton of languages, and I found a stackoverflow on using is_a?(String) etc, but wasn't sure how to get just the instance of it, plus the code I was looking at for Beaker just made use of a case statement
<jidar> but thank you, still getting my bearings
lw has quit [Read error: Connection reset by peer]
<wallerdev> usually you don't do much type checking in ruby
lw has joined #ruby
<jidar> indeed, this particular case I'm just trying to understand what the problem is
<jidar> so verification is important
segfalt has quit [Quit: Connection closed for inactivity]
<godd2> jidar a useful debugging tool in ruby is the gem pry
<jidar> sitting in pry right now! so much better than irb
<jidar> reminds me a bit of ipython, which is also a great tool
sailias has quit [Quit: Leaving.]
finisherr has quit [Quit: finisherr]
TehStig has joined #ruby
porfa has quit [Read error: Connection reset by peer]
porfa_ has joined #ruby
XxionxX has quit [Read error: Connection reset by peer]
econerd4ever has joined #ruby
sarmiena_ has joined #ruby
Ionian has joined #ruby
<Ionian> Hello!
<wallerdev> hi
<Ionian> What is the equivlent of indexOF in JS in Ruby?
<wallerdev> index
<Ionian> thank you
conniemj_ has quit [Quit: (null)]
sea_local has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 250 seconds]
diego_ar has joined #ruby
adriancb has joined #ruby
TehStig has quit [Ping timeout: 255 seconds]
arrubin has joined #ruby
<Ionian> I have this code snippet
<pipework> pictures of text are amusing.
<Ionian> Im new to Ruby, and Im more of a hands on/trial and error kind of guy
Tranquility has quit [Quit: Connection closed for inactivity]
<Ionian> Well its very small
lw has quit [Read error: Connection reset by peer]
lw_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev> best to use http://instacod.es/ for pictures of code
porfa_ has quit [Quit: porfa_]
lw_ has quit [Read error: Connection reset by peer]
lw has joined #ruby
chrisja has quit [Quit: leaving]
<wallerdev> sorry was joking
<Ionian> :I
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<wallerdev> its like instagram for pictures of code
<wallerdev> lol
lw has quit [Client Quit]
<Ionian> Ik, pretty sweet actaully
<godd2> Best to use a knife to murder your family. less cleanup
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ionian> Anyway, Do you know a solution to my problem?
<wallerdev> yup
<wallerdev> titl = response[title1 + 7]
<wallerdev> thats going to give you one letter
Photism has joined #ruby
<wallerdev> probably a G
<wallerdev> not the rest of the string starting at that point
adriancb has quit [Remote host closed the connection]
<godd2> for that youll want response[(title1+7)..-1]
<wallerdev> yup
diego_ar has quit [Remote host closed the connection]
<wallerdev> or even response[(title1 + 7)...title2] to use both your variables
adriancb has joined #ruby
<Ionian> ans take out title?
<Ionian> titl?
<wallerdev> yup
yfeldblum has quit [Remote host closed the connection]
<wallerdev> basically the dots are a range, so its like give me the letters between index x and y
<Ionian> Ohhh
baweaver has quit [Remote host closed the connection]
<wallerdev> >> "abcde"[1..3]
<eval-in__> wallerdev => "bcd" (https://eval.in/232714)
lucyinthesky_ has joined #ruby
<wallerdev> and if you use -1 it gives you til the end
yfeldblum has joined #ruby
<wallerdev> >> "abcde"[1..-1]
<eval-in__> wallerdev => "bcde" (https://eval.in/232715)
diego_ar has joined #ruby
<Ionian> Im getting Google<
<Ionian> How can I fix?
<wallerdev> you can use 3 dots
louism2wash has quit [Quit: This computer has gone to sleep]
karmatr0n has joined #ruby
<wallerdev> or set title2 = blah blah blah - 1
arup_r has joined #ruby
lampd1 has joined #ruby
* jhass hates the 3 dots
AlbertoCG has quit [Ping timeout: 260 seconds]
<godd2> jhass yea there's something about them that irks me too
<wallerdev> too hard to notice them
<wallerdev> haha
<jhass> they're not obvious enough
<bricker`1ork> it isn't intuitive
<jhass> exactly
duncannz has quit [Read error: Connection reset by peer]
<wallerdev> especially in some fonts like comic sans
<godd2> "use *more* dots for *less* stuff!"
bricker`1ork is now known as bricker`work
duncannz has joined #ruby
<Ionian> Thanks guys
<godd2> nsfw language
<Ionian> Im 15, learned JavaScript and nodejs as my first language, Loved it, then decided to learn a secondary language, so picked Ruby/Rails :[
<godd2> actually, nsfw in general
<wallerdev> nodejs as your first language
<wallerdev> that mustve been fun lol
<wallerdev> anyway javascript is the future, no need to learn anything else
<godd2> Ionian ruby is a nice language. Stick with it and you'll have a good time :)
<jhass> Opal!
bricker`work has quit [Quit: leaving]
lucyinthesky_ has left #ruby ["Leaving"]
<Ionian> I think I will! Ruby has such a pretty syntax
<godd2> Opal.compile("`alert('I agree with jhass')`")
<Ionian> Is JS really the future???
<godd2> Ionian it is in the sense that every browser runs it
<jhass> no single programming language is "the future" for anything
<godd2> It certainly has "a" future
<jhass> but JS will only get even more popular for a while
ta has joined #ruby
adriancb has quit [Remote host closed the connection]
<wallerdev> no idea, i see a lot of JS jobs lately and a lot of sites picking up angularjs or ember
<wallerdev> nodejs seems to be growing as well
<wallerdev> but i live in SF so my view of the world is skewed
<Ionian> I wish Rails was as fast as V8 JS :c
<godd2> Hammers! Get your hammers here!
<jhass> ecmascript6 gives hopes that it may eventually develop into a decent language thouhg
<Ionian> Nodejs has been seriously forked btw
<Ionian> though, node isnt fucked, just forked
<Ionian> its been forked into IO.js
<Ionian> hence my name ;)
adriancb has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
<wallerdev> anyway js is beautiful http://instacod.es/96859
<jhass> if you hide it like that. maybe
<Ionian> LOL ^
t7y9r has quit [Ping timeout: 265 seconds]
<jhass> still nothing for my wall though
<Ionian> Is it even possible for Ruby/Rails to be faster than V8 JS?
<wallerdev> sure
<Ionian> or is Ruby just not that optimizable
<wallerdev> you can write C in ruby
t3h_j4n170r has quit [Ping timeout: 260 seconds]
karmatr0n has quit [Remote host closed the connection]
<jhass> but why would you
<wallerdev> :p
lucyinthesky_ has joined #ruby
<Ionian> Idk, the benchmarks game shows Ruby as increbily slow
<jhass> I've high hopes for https://github.com/manastech/crystal_ruby
<wallerdev> well the thing is, benchmarks dont matter too much if it takes you a month to write what you could write in a day with rails
t7y9r has joined #ruby
studiotate has joined #ruby
<wallerdev> because servers are cheaper than developers for the small performance differences
<jhass> ^ + they don't necessarily simulate real workload
<godd2> or, as DHH says "I don't care as much about CPU cycles as I do developer cycles"
ta has quit [Ping timeout: 256 seconds]
<wallerdev> yeah
t3h_j4n170r has joined #ruby
<jhass> especially in a web app where you do lots of IO, the differences quickly become less significant
<wallerdev> but JS is a very productive language too, high level like ruby
<godd2> "Look at all the code I'm NOT writing. WHOOPS! It worked!"
<Ionian> Ah, whats evneted Ruby>
<Ionian> JS is very productive, just not as attractive
<wallerdev> you get used to it haha
<Ionian> If Ruby was as fast as JS, I would prolly ditch JS for Ruby
<godd2> It is fast... to write
<wallerdev> if ruby ran in the browser id ditch js for ruby :p
<godd2> wallerdev Opal
<wallerdev> inbetweeners
<godd2> wallerdev http://opalrb.org/try/
<godd2> its kickass
<wallerdev> doesnt matter, impossible to debug things when they compile to something else
<Ionian> Why is Ruby slow(in performance) ?
<wallerdev> because matz created it to make it fun to code, not to be performant
<jhass> there's no general answer to that
<wallerdev> :p
<jhass> we can explain for a specific workload
<jhass> but you'll find workloads where you'll barely measure a difference
jenrzzz has quit [Ping timeout: 252 seconds]
<jhass> ruby actually isn't that slow anymore these days
<godd2> Ionian making things optimal and performant takes time, and that time can be spent doing other things
<jhass> most of these claims are from the 1.8 days
<wallerdev> yeah its not bad
kobain has quit [Read error: Connection reset by peer]
<wallerdev> only reason JS is fast now is because google and them all competed to make it faster haha
<jhass> and if you're willing to trade some more performance against some memory usage there's things like jruby
rshetty has joined #ruby
<godd2> wallerdev with source maps, its not bad at all to debug Opal
<godd2> especially if you have at least a little understanding of javascript
<wallerdev> haha i dont know, i can change my code inline when debugging it in chrome's web inspector
hamakn has joined #ruby
<wallerdev> i don't like coffeescript either, but some people do
kobain has joined #ruby
<wallerdev> and a lot of my testing is on smartphones which makes it a lot more difficult to debug on
<wallerdev> since i work on a mobile website
parabolize has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
<godd2> well in chrome just press F12 and click the little phone icon next to the Elements tab
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nobitanobi has quit [Remote host closed the connection]
<godd2> bam, device view
fandi has quit [Quit: Leaving]
<wallerdev> its not the same
<Ionian> ah boy
<wallerdev> it still runs code as a desktop browser would, various phones have unsupported features etc
kobain has quit [Max SendQ exceeded]
grassdog has joined #ruby
<godd2> you can override the user agent
<wallerdev> windows phones are the worst in terms of supported features
kobain has joined #ruby
<wallerdev> like windows phone 8.0 didnt support popup windows
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
<wallerdev> and the touch interactions let you click elements behind other elements that you couldn't even see
sea_local has joined #ruby
<wallerdev> android stock browser has issues with closing popups correctly, itll delete the window object instead of setting window.closed = true
<Ionian> atleast Ruby beats DartVM in 32 bit benchmarks
<wallerdev> lots of weird quirks with various mobile browsers, none are emulated on desktop chrome haha
mgberlin has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
<Ionian> Volt framework is apparently fast
<godd2> Ionian its ruby that gets compiled to js
duncannz has joined #ruby
<godd2> Volt is running on Opal
<wallerdev> lol
<jhass> Ionian: as said, pure language benchmarks without defining a workload are mostly useless and uninteresting. At minimum do something like comparing JSON parsing: https://github.com/kostya/benchmarks/tree/master/json
diegoviola has quit [Quit: WeeChat 1.0.1]
<jhass> where Ruby interestingly beats Node.js
daynaskully has quit [Ping timeout: 258 seconds]
<Ionian> Sweet
lucyinthesky_ has left #ruby ["Leaving"]
wsmoak has quit [Quit: wsmoak]
<jhass> at the expense of much higher memory usage though
<jhass> so again, you need to look at what you need
<jhass> just saying "it's slower" because some random benchmark says so means nothing
TehStig has joined #ruby
louism2wash has joined #ruby
testin has quit [Remote host closed the connection]
wookiehangover has joined #ruby
olivier_bK has joined #ruby
adriancb has quit [Remote host closed the connection]
<Ionian> What are the top 5 sites using rails now?
<jhass> I guess #RubyOnRails would know
claptor has joined #ruby
baweaver has joined #ruby
mloveless has quit [Remote host closed the connection]
dseitz has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
<wallerdev> github is proably 1
<jhass> twitter doesn't count anymore?
<wallerdev> twitter uses rails for some aspects from what i remember
diego_ar has quit [Ping timeout: 244 seconds]
<wallerdev> but yeah most top websites use a mix of technologies
<wallerdev> not just like rails + mysql and thats the whole stack
<wallerdev> lol
<jhass> github uses it for more aspects for sure
lucyinthesky_ has joined #ruby
<jhass> but as you said, that's not the point in answering the question
dseitz has quit [Client Quit]
jenrzzz has joined #ruby
<wallerdev> i think twitch.tv is on rails
diego_ar has joined #ruby
dseitz has joined #ruby
<wallerdev> and emberjs, which is a frontend framework but if youre using something like ember or angular, your backend basically is just a json api
<wallerdev> and could be anything
<wallerdev> doesnt really matter what you pick
sarmiena_ has quit [Quit: sarmiena_]
mgberlin has quit [Remote host closed the connection]
fgo has joined #ruby
baweaver has quit [Ping timeout: 244 seconds]
mgberlin has joined #ruby
dseitz has quit [Client Quit]
dseitz has joined #ruby
Areessell has joined #ruby
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 250 seconds]
karmatr0n has joined #ruby
baweaver has joined #ruby
djdarkbeat has quit [Quit: djdarkbeat]
econerd4ever has quit [Remote host closed the connection]
fgo has joined #ruby
econerd4ever has joined #ruby
<Ionian> Its recent
digifiv5e has joined #ruby
digifiv5e is now known as Guest9241
<Ionian> Holy shit, everything recently about raisl is about boosting its performnace
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
econerd4ever has quit [Ping timeout: 245 seconds]
lw has joined #ruby
djbkd has quit [Quit: My people need me...]
kiyote23_ has quit [Remote host closed the connection]
wjimenez5271 has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
TehStig has quit [Remote host closed the connection]
spastorino has quit [Quit: Connection closed for inactivity]
TehStig has joined #ruby
adriancb has joined #ruby
<jhass> seriously though, if you want to discuss rails, #RubyOnRails is just the better place ;)
lucyinthesky_ has left #ruby ["Leaving"]
wjimenez5271 has quit [Ping timeout: 260 seconds]
yetanotherdave has quit [Quit: Lost terminal]
<Ionian> Ok, what is the equilvent to str.replcae in Ruby?
<Ionian> replace
michaeldeol has joined #ruby
lw has quit [Quit: s]
momomomomo has joined #ruby
mloveless has joined #ruby
drkyro has joined #ruby
deol has joined #ruby
procat has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
procat has left #ruby [#ruby]
djdarkbeat has joined #ruby
mloveless has quit [Client Quit]
michaeldeol has quit [Ping timeout: 256 seconds]
avrc has joined #ruby
deol has quit [Client Quit]
wookiehangover has quit [Ping timeout: 258 seconds]
TehStig has quit [Remote host closed the connection]
krz has joined #ruby
chihhsin has quit [Ping timeout: 250 seconds]
<Ionian> anyone alive?
rshetty has quit [Remote host closed the connection]
chihhsin has joined #ruby
hobodave has joined #ruby
<jhass> String#sub and String#gsub
hobodave has quit [Client Quit]
<jhass> String#[] can do replacements too
<jhass> and there's String#tr
<jhass> er, not String#[], String#[]= of course
<Ionian> I have this
arrubin has quit []
<Ionian> title2 = response.index(tag.gsub(/[<]/, '</') )
<Ionian> tag.gsub part
<Ionian> replaces < with </
wookiehangover has joined #ruby
<Ionian> is that right?
lw has joined #ruby
samuel02 has joined #ruby
lw has quit [Max SendQ exceeded]
lw has joined #ruby
momomomomo has quit [Quit: momomomomo]
<jhass> I don't understand why you put the result to .index but okay
<jhass> oh, I see
<jhass> are you parsing HTML that way?
<jhass> or XML?
<jhass> also no need to create a character class for a single character in the regex btw
frem has quit [Quit: Connection closed for inactivity]
evanjs has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Mia has joined #ruby
Mia has joined #ruby
<Ionian> Yeah i parsing html
krz has quit [Quit: WeeChat 1.0.1]
<Ionian> although I ran into a problem
<jhass> I suggest you use a proper parser
<jhass> like nokogiri
russt has quit [Quit: russt]
russt has joined #ruby
<Ionian> this is for learning purposes
lucyinthesky has joined #ruby
<Ionian> to get familiar with ruby
<jhass> and learning the right way to do something is bad?
<jhass> anyway, .chomp
<jhass> you got a "\n" at the end and pass that on
<Ionian> Nonono, I doing this to learn ruby, not actually use it
konsolebox has quit [Ping timeout: 260 seconds]
<jhass> doesn't matter much
oo_ has quit [Remote host closed the connection]
samuel02 has quit [Ping timeout: 265 seconds]
reset has quit [Ping timeout: 264 seconds]
lampd1 has quit [Read error: Connection reset by peer]
lampd1 has joined #ruby
viki_ has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
<Ionian> I have this so far
<jhass> Ionian: Please share your code on https://gist.github.com
wallerdev has quit [Quit: wallerdev]
<Ionian> and go this error: http://prntscr.com/5f51ps
io_syl has quit []
<jhass> code sharing through screenshots is just... meh
<Ionian> yeah but its so minimal
<jhass> ?
tyll has quit [Ping timeout: 240 seconds]
<Ionian> Okay ill do a gist
<Ionian> here it is
ebbflowgo has joined #ruby
sdwrage has joined #ruby
tyll has joined #ruby
<Ionian> did you see the error?
louism2wash has joined #ruby
Areessell has quit [Ping timeout: 240 seconds]
<jhass> for starters why don't you use net/http or a decent abstraction upon it?
<jhass> then "fixed string #{'fixed string'} fixed string" is just a silly way to write "fixed string fixed string fixed string"
<Ionian> Idk
<Ionian> I didnt know about nt/http
davedev24_ has quit [Ping timeout: 264 seconds]
<Ionian> I hope you know I started Ruby about 2 hours ago
<jhass> TCPSocket probably has a block form so you don't forget to close it
davedev24_ has joined #ruby
gsd has joined #ruby
<jhass> and I still think you should use Nokogiri there, but response[/#{tag}.+?#{tag.sub('<', '</')}/]
lucyinthesky has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
<jhass> doesn't handle self-closing tags though
echooo1 has quit [Remote host closed the connection]
<jhass> or ones with slightly different whitespace than entered
<jhass> etc.
nateberkopec has joined #ruby
<jhass> rest is user input, so can't judge much about it
<Ionian> I mainly just want to fix my error for now :/
<jhass> see last comment
nobitanobi has joined #ruby
gsd has quit [Client Quit]
econerd4ever has joined #ruby
<jhass> I've no idea what you enter so I've no idea what's wrong with the value you pass to TCPSocket
<Ionian> did you see the error?
<Ionian> message?
it0a has quit [Quit: WeeChat 1.0.1]
maestrojed has joined #ruby
<jhass> oh still got the socket one
<jhass> that one is the - 1 obviously
<jhass> >> "foo" - 1
<eval-in__> jhass => undefined method `-' for "foo":String (NoMethodError) ... (https://eval.in/232722)
konsolebox has joined #ruby
<Ionian> So how do I dfix?
<jhass> don't try to substract 1 from a string
AlexRussia has quit [Ping timeout: 252 seconds]
<Ionian> so just take it off?
umadbor has joined #ruby
<jhass> it's your code, you should know why you put it there
baweaver has quit [Remote host closed the connection]
<Ionian> You told me too, I mean godd2 did
<Ionian> ok Im getting weird error now that should be there
<Ionian> :S
boombadaroomba has joined #ruby
<jhass> well, my guess is that the code you've shown is not what you actually run
phutchins has quit [Ping timeout: 244 seconds]
russt has quit [Quit: russt]
kl has quit [Ping timeout: 240 seconds]
<jhass> and what you run actually has .index(tag.gsub(...)-1)
<Ionian> Yeah I just updated
<jhass> >> "foo".index('x')
<eval-in__> jhass => nil (https://eval.in/232723)
<jhass> that's where your nil comes from
<jhass> >> nil + 1
<eval-in__> jhass => undefined method `+' for nil:NilClass (NoMethodError) ... (https://eval.in/232724)
dkphenom has joined #ruby
umadbor has quit [Client Quit]
<Ionian> oh
_maes_ has joined #ruby
<Ionian> but how is that possible?
boombadaroomba has quit [Ping timeout: 245 seconds]
econerd4ever has quit [Remote host closed the connection]
<Ionian> and.or How can I fix :S
econerd4ever has joined #ruby
grassdog has quit [Quit: Be back later ...]
adriancb has quit [Remote host closed the connection]
<jhass> you check that you actually found the tag
<jhass> Look at the docs for String#index
<jhass> lookup what it means if it returns nil if my example doesn't make that clear for you
mgberlin has quit [Remote host closed the connection]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
russt has joined #ruby
fandi has joined #ruby
econerd4ever has quit [Ping timeout: 245 seconds]
kiyote23 has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
chrishough has joined #ruby
radic has quit [Ping timeout: 245 seconds]
diego_ar has quit [Remote host closed the connection]
radic has joined #ruby
kyoukasuigetsu has quit [Read error: Connection reset by peer]
kobain has quit [Ping timeout: 245 seconds]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sea_local has quit [Remote host closed the connection]
nobitanobi has quit [Read error: Connection reset by peer]
ta has joined #ruby
sea_local has joined #ruby
coderhs has joined #ruby
nobitanobi has joined #ruby
ajaiswal has joined #ruby
roolo has joined #ruby
kiyote23 has quit [Remote host closed the connection]
AlexRussia has joined #ruby
nateberkopec has quit [Quit: Leaving...]
evanjs has quit [Remote host closed the connection]
Ionian has quit [Ping timeout: 246 seconds]
kiyote23 has joined #ruby
dts|pokeball is now known as dts
bluOxigen has joined #ruby
ta has quit [Ping timeout: 260 seconds]
dts is now known as dts|pokeball
sea_local has quit [Ping timeout: 244 seconds]
hiall has quit [Quit: hiall]
hiall has joined #ruby
roger_rabbit has quit [Read error: Connection reset by peer]
tlarevo has joined #ruby
gsd has joined #ruby
diego_ar has joined #ruby
roolo has quit [Ping timeout: 265 seconds]
louism2wash has joined #ruby
io_syl has joined #ruby
kp666 has joined #ruby
iamjarvo has joined #ruby
coderhs has quit [Quit: Leaving]
agrinb has joined #ruby
echooo has joined #ruby
_mtr has quit [Ping timeout: 245 seconds]
gsd has quit [Client Quit]
kenneth has joined #ruby
kenneth has quit [Max SendQ exceeded]
TehStig has joined #ruby
kenneth has joined #ruby
rshetty has joined #ruby
hiall has quit [Quit: hiall]
SCHAAP137 has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 240 seconds]
hiall has joined #ruby
krz has joined #ruby
TehStig has quit [Ping timeout: 256 seconds]
renderful has joined #ruby
zmisc has joined #ruby
zmisc has quit [Client Quit]
zmisc has joined #ruby
zmisc has quit [Client Quit]
SpikeMaster has joined #ruby
SpikeMaster has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
gsd has joined #ruby
Dopagod has joined #ruby
rand0mbits has quit [Disconnected by services]
adriancb has joined #ruby
zmisc has joined #ruby
zmisc has quit [Client Quit]
oo_ has quit [Remote host closed the connection]
xxneolithicxx has joined #ruby
Val_ has joined #ruby
kiyote23 has quit [Remote host closed the connection]
zmisc has joined #ruby
zmisc has quit [Client Quit]
renderful has quit [Ping timeout: 258 seconds]
Nodeist has joined #ruby
iamninja has quit [Ping timeout: 250 seconds]
<Nodeist> Hello
<Nodeist> Anyone online right now?
adriancb has quit [Ping timeout: 244 seconds]
zmisc has joined #ruby
ta has joined #ruby
<havenwood> Nodeist: always
<Nodeist> Hi haven
<havenwood> hi
iamninja has joined #ruby
klmlfl has joined #ruby
codezomb has joined #ruby
codezomb has quit [Max SendQ exceeded]
braincra- has quit [Quit: bye bye]
codezomb has joined #ruby
maletor_ has joined #ruby
ta has quit [Ping timeout: 265 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
grassdog has joined #ruby
kiyote23 has joined #ruby
vinleod has joined #ruby
braincrash has joined #ruby
sea_local has joined #ruby
nobitanobi has quit [Remote host closed the connection]
elek is now known as jasonmit
diego_ar has quit [Remote host closed the connection]
kiyote23 has quit [Ping timeout: 250 seconds]
nobitanobi has joined #ruby
JBreit has joined #ruby
sevenseacat has joined #ruby
JBreit has left #ruby [#ruby]
michael_mbp has quit [Quit: ZNC - http://znc.sourceforge.net]
retornam has quit [Ping timeout: 240 seconds]
michael_mbp has joined #ruby
knutmithut has joined #ruby
Sou|cutter has quit [Ping timeout: 245 seconds]
TehStig has joined #ruby
oo_ has joined #ruby
Liothen has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
caveat- has quit [Ping timeout: 272 seconds]
agrinb has quit [Remote host closed the connection]
diegoviola has joined #ruby
nobitanobi has joined #ruby
zmisc has quit [Quit: mobile client quit]
mpistone has joined #ruby
michael_mbp has quit [Excess Flood]
econerd4ever has joined #ruby
econerd4ever has quit [Remote host closed the connection]
nobitanobi has quit [Remote host closed the connection]
dc has quit [Remote host closed the connection]
bigmac_ has joined #ruby
caveat- has joined #ruby
michael_mbp has joined #ruby
retornam has joined #ruby
Liothen has joined #ruby
nobitanobi has joined #ruby
dc has joined #ruby
godd2 has quit [Ping timeout: 260 seconds]
zmisc has joined #ruby
adriancb has joined #ruby
davedev24_ has joined #ruby
graydot has joined #ruby
davedev2_ has quit [Ping timeout: 244 seconds]
graydot has quit [Client Quit]
devdazed has joined #ruby
zmisc has quit [Client Quit]
mary5030 has joined #ruby
klmlfl has quit [Remote host closed the connection]
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
grassdog has quit [Quit: Lingo: www.lingoirc.com]
jenrzzz has quit [Ping timeout: 245 seconds]
rshetty has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
virtualize has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
twistedpixels is now known as zz_twistedpixels
Megtastique has quit []
olivier_bK has quit [Ping timeout: 260 seconds]
klmlfl has joined #ruby
freerobby has quit [Quit: Leaving.]
ebbflowgo has left #ruby [#ruby]
goshdarnyou has joined #ruby
bigmac_ has quit [Ping timeout: 244 seconds]
samuel02 has joined #ruby
_mtr has joined #ruby
bigmac_ has joined #ruby
Sou|cutter has joined #ruby
greenbagels_ has quit [Quit: Leaving]
arup_r1 has joined #ruby
MasterPiece has joined #ruby
kobain has joined #ruby
arup_r1 has quit [Client Quit]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kobain has quit [Excess Flood]
kobain has joined #ruby
lemur has joined #ruby
kobain has quit [Excess Flood]
samuel02 has quit [Ping timeout: 264 seconds]
kyb3r_ has joined #ruby
kobain has joined #ruby
_mtr has quit [Ping timeout: 256 seconds]
nobitanobi has quit [Remote host closed the connection]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
Nameo0 has joined #ruby
tsu has joined #ruby
<Nameo0> Hello! I am trying to count how many times a set of characters in a string and I cannot find anything besides (string).scan().
<Nameo0> What I am trying to do is for example count how many times 'ex' appears in the string 'experiencex' and in this case it should be twice. But with .scan I get 6.
michaeldeol has joined #ruby
snath has joined #ruby
axilla has quit [Ping timeout: 255 seconds]
<jhass> what's your code?
iamninja has quit [Ping timeout: 250 seconds]
Joufflu has joined #ruby
tus has quit []
Deele has joined #ruby
nobitanobi has joined #ruby
Cache_Money has joined #ruby
rshetty_ has joined #ruby
blz37 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
blz37 has quit [Client Quit]
nobitanobi has joined #ruby
chu has joined #ruby
goodenough has joined #ruby
diegoviola has quit [Ping timeout: 260 seconds]
nobitanobi has quit [Read error: Connection reset by peer]
nobitano_ has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
Dopagod has quit [Remote host closed the connection]
narcan has joined #ruby
mary5030 has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
rshetty_ has quit [Remote host closed the connection]
tsu has quit [Remote host closed the connection]
tlarevo has quit [Remote host closed the connection]
Morkel has joined #ruby
tsu has joined #ruby
iamninja has joined #ruby
CrazyM4n has quit [Quit: "sleep"]
bigmac_ has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
tsu has quit [Ping timeout: 256 seconds]
scottyob has joined #ruby
frem has joined #ruby
Nameo0 has quit [Quit: Leaving]
nobitanobi has joined #ruby
nobitano_ has quit [Read error: Connection reset by peer]
commmmodo has quit [Quit: commmmodo]
ARCADIVS has joined #ruby
jenrzzz has joined #ruby
kiyote23 has joined #ruby
nobitanobi has quit [Read error: Connection reset by peer]
nobitanobi has joined #ruby
adriancb has quit [Remote host closed the connection]
<gr33n7007h> >> "This is a thing that is this".split.chunk{|n| n }.select{|x,y| y.include? 'is' }.flatten.size
<eval-in__> gr33n7007h => 4 (https://eval.in/232731)
mary5030 has quit [Remote host closed the connection]
rshetty has joined #ruby
mary5030 has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gr33n7007h> >> "This is a thing that is this"..split.partition {|n| n.include? 'is' }[0].size
<eval-in__> gr33n7007h => undefined local variable or method `split' for main:Object (NameError) ... (https://eval.in/232732)
<gr33n7007h> >> "This is a thing that is this".split.partition {|n| n.include? 'is' }[0].size
<eval-in__> gr33n7007h => 4 (https://eval.in/232733)
kiyote23 has quit [Ping timeout: 240 seconds]
TehStig has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
rshetty has quit [Client Quit]
techsethi has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
nobitanobi has quit [Remote host closed the connection]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
konsolebox has quit [Remote host closed the connection]
rshetty has joined #ruby
Abhijit has joined #ruby
nobitanobi has joined #ruby
rshetty_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
CorySimmons has joined #ruby
zmisc has joined #ruby
zmisc has quit [Signing in (zmisc)]
zmisc has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
zmisc is now known as Guest77543
Spami has joined #ruby
Guest77543 has quit [Client Quit]
hgl has quit [Max SendQ exceeded]
ninjazach has joined #ruby
hgl has joined #ruby
Spami has quit [Client Quit]
pietr0 has quit [Quit: pietr0]
MartynKeigher has quit [Read error: Connection reset by peer]
ninjazach is now known as zmisc
hgl has quit [Max SendQ exceeded]
zmisc has quit [Client Quit]
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
<havenwood> >> "This is a thing that is this".scan('is').size
<eval-in__> havenwood => 4 (https://eval.in/232734)
hgl has joined #ruby
AlbertoCG has joined #ruby
st0mar has quit [Ping timeout: 240 seconds]
AlexRussia has quit [Ping timeout: 252 seconds]
chu has joined #ruby
arup_r has quit []
arup_r has joined #ruby
Spami has joined #ruby
nobitanobi has quit [Remote host closed the connection]
arup_r_ has joined #ruby
Channel6 has joined #ruby
kiyote23 has joined #ruby
ohaibbq has quit [Read error: Connection reset by peer]
roger_rabbit has joined #ruby
ohaibbq has joined #ruby
kiyote23 has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 250 seconds]
<havenwood> or some 'fun' ones:
<havenwood> >> a = "This is a thing that is this"; [a.count('is', 's'), a.count('is', 'i')].min
<eval-in__> havenwood => 4 (https://eval.in/232735)
<havenwood> >> "This is a thing that is this".each_char.each_cons(2).map(&:join).count 'is'
<eval-in__> havenwood => 4 (https://eval.in/232736)
sigurding has joined #ruby
JBreit has joined #ruby
nobitanobi has joined #ruby
flori has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Bye!]
Rene has joined #ruby
io_syl has quit [Ping timeout: 260 seconds]
karmatr0n has quit [Remote host closed the connection]
hiall has quit [Quit: hiall]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
fedexo has joined #ruby
ebbflowgo has joined #ruby
oleo__ has quit [Quit: Verlassend]
kp666 has quit [Read error: No route to host]
lkba has joined #ruby
AndChat| has quit [Read error: Connection reset by peer]
lkba has quit [Remote host closed the connection]
Joufflu has quit [Read error: Connection reset by peer]
kl has joined #ruby
Channel6 has quit [Quit: Leaving]
roger_rabbit has quit [Quit: WeeChat 0.3.8]
admin1 has joined #ruby
admin1 is now known as roger_rabbit
lkba has joined #ruby
sargas has joined #ruby
tlarevo has joined #ruby
nobitanobi has quit [Remote host closed the connection]
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
<sargas> can some help run my test DSL?
<sargas> I need to run the event files by running reflag.rb
AlexRussia has joined #ruby
rshetty_ has quit [Read error: Connection reset by peer]
<sargas> but nothing happens when I do `ruby redflag.rb`
kl has quit [Ping timeout: 245 seconds]
roger_rabbit has quit [Client Quit]
roger_rabbit has joined #ruby
russt has quit [Ping timeout: 260 seconds]
nobitanobi has joined #ruby
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
tsu has joined #ruby
kp666 has joined #ruby
Ulrike_Rayne has left #ruby [#ruby]
zmisc has joined #ruby
<havenwood> sargas: instead of `if yield` try `if block_given?`
tsu_ has joined #ruby
tsu has quit [Read error: Connection reset by peer]
<sargas> havenwood: still nothing, if I paste the content of the *events files into redflag.rb, everything works
<sargas> havenwood: I guess I'm not using Dir.glob correctly
<havenwood> sargas: ah, you actually mean to check the truthiness of the block, gotcha
<sargas> yes
<sargas> this is an example from a book... nothing fancy, the book uses 1.9 while I'm on 2.1.5
<sargas> maybe that is why
zmisc has joined #ruby
zmisc has quit [Client Quit]
zmisc has joined #ruby
zmisc has quit [Client Quit]
Joufflu has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dc has quit [Remote host closed the connection]
Nameo0 has joined #ruby
jlast has quit [Remote host closed the connection]
tlarevo has quit [Read error: Connection reset by peer]
jlast has joined #ruby
<havenwood> sargas: outputs two ALERTS for me on 2.1.5
<Nameo0> Hello! =) I was wondering if someone could help me better understand the difference between a method with an exclamation mark vs one without and exclamation mark? Ex: .slice vs. .slice!
roger_rabbit has quit [Quit: WeeChat 0.3.8]
<havenwood> Nameo0: i think you weren't on earlier, but:
<havenwood> >> "This is a thing that is this".scan('is').size
<eval-in__> havenwood => 4 (https://eval.in/232737)
tlarevo has joined #ruby
<sargas> havenwood: it should output two ALERT, yes... do you cd into the files directory and run `ruby reflag.rb`?
duncannz has quit [Read error: Connection reset by peer]
admin1 has joined #ruby
<havenwood> sargas: yes, works same on 2.1.5 as 1.9.3
tsu_ is now known as tsu
<Nameo0> havenwood: thank you. =) I figured it out.
admin1 is now known as roger_rabbit
<Nameo0> I used .scan(/is/).count
Ulrike_Rayne has joined #ruby
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
amclain has joined #ruby
lw has quit [Quit: s]
arup_r has joined #ruby
duncannz has joined #ruby
<sargas> havenwood: got it running, but why won't it run if I run `ruby` from another directory?
tsu is now known as taiansu
_mtr has joined #ruby
zmisc has joined #ruby
<havenwood> Nameo0: the meaning is generally 'more dangerous' (so there has to be a less dangerous version for a bang to make sense).
<sargas> havenwood: with, say, `ruby path/to/redflag.rb`?
rimantas has joined #ruby
<havenwood> Nameo0: usually it is used when the non-bang version doesn't modify the receiver and the bang version does.
banisterfiend has joined #ruby
<Nameo0> havenwood: Okay, thank you. =) That explains hte bugs.
chipotle has quit [Quit: cheerio]
jlast has quit [Ping timeout: 258 seconds]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r_ has quit [Ping timeout: 264 seconds]
lxsameer has joined #ruby
Jarboe has quit [Read error: Connection reset by peer]
Jarboe has joined #ruby
st0mar has joined #ruby
Jarboe has quit [Client Quit]
_mtr has quit [Ping timeout: 264 seconds]
taiansu has quit []
<havenwood> sargas: it's the difference between the current working directory and the directory of the file from which the method is called.
Stoge88 has joined #ruby
tsu has joined #ruby
<sargas> havenwood: how do I make it so I can run it from anywhere?
tsu has quit [Client Quit]
TehStig has joined #ruby
<sargas> havenwood: I mean, is there a path or method I can pass to Dir.glob()? that will make it work?
<havenwood> sargas: so right now the `Dir.glob` is looking where `Dir.pwd` is not where `__dir__` is.
chinmay_dd has joined #ruby
arup_r_ has joined #ruby
<sargas> havenwood: I see, I'll have to read more about Dir in the docs then
<sargas> havenwood: thanks for the help
<havenwood> sargas: no prob, for example this'd work: Dir[File.join(__dir__, '*events.rb')]
<havenwood> sargas: and then use `require_relative` instead of `load`
st0mar has quit [Read error: Connection reset by peer]
<havenwood> sargas: so like: Dir["#{__dir__}/*events.rb"].each { |event| require_relative event }
arup_r has quit [Ping timeout: 264 seconds]
AlexRussia has quit [Quit: WeeChat 1.1-dev]
<havenwood> sargas: or you can setup $LOAD_PATJ
TehStig has quit [Ping timeout: 260 seconds]
<havenwood> $LOAD_PATH* and use require
nobitanobi has quit [Remote host closed the connection]
<sargas> havenwood: hmm, so is Dir a constant array?
AlexRussia has joined #ruby
deavidsedice has joined #ruby
mikepack has joined #ruby
Lucky__ has joined #ruby
<havenwood> sargas: $LOAD_PATH is just an Array of places to look upon require
deavid has quit [Read error: Connection reset by peer]
<sargas> havenwood: or are () and [] interchangeable?
apeiros_ has quit [Remote host closed the connection]
<sargas> havenwood: $LOAD_PATH seems like a great resource
<havenwood> sargas: ::[] is quite similar to ::glob, almost identical
mary5030 has joined #ruby
mengu has joined #ruby
<sargas> havenwood: so you'd basically prefer .[] over .glob when you don't need to pass flags?
samuel02 has joined #ruby
reinaldob has joined #ruby
mikepack has quit [Ping timeout: 250 seconds]
studiotate has quit [Read error: Connection reset by peer]
studiotate has joined #ruby
mary5030 has quit [Ping timeout: 258 seconds]
wjimenez5271 has joined #ruby
<havenwood> sargas: and save two characters for great justice!
tagrudev has joined #ruby
<sargas> havenwood: there is such beauty in saving characters
<sargas> havenwood: thanks again
kenneth has joined #ruby
samuel02 has quit [Ping timeout: 256 seconds]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ReinH has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
Cache_Money has quit [Quit: Cache_Money]
reinaldob has quit [Ping timeout: 264 seconds]
davedev24_ has joined #ruby
tlarevo has quit [Read error: Connection reset by peer]
<havenwood> sargas: no prob, you're welcome
tlarevo has joined #ruby
neoxquick has quit [Read error: Connection reset by peer]
keen__________ has quit [Read error: Connection reset by peer]
chinmay_dd has quit [Ping timeout: 250 seconds]
keen__________ has joined #ruby
klmlfl has quit [Remote host closed the connection]
kiyote23 has joined #ruby
postmodern has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AlbertoCG has quit [Ping timeout: 240 seconds]
mpistone has quit [Remote host closed the connection]
mpistone has joined #ruby
mpistone has quit [Remote host closed the connection]
davedev2_ has joined #ruby
russt has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
<arup_r_> Any idea what is the difference between #level and #sev_threshold ? http://www.ruby-doc.org/stdlib-2.1.5/libdoc/logger/rdoc/Logger.html#method-i-3C-3C
Abhijit has quit [Remote host closed the connection]
tlarevo_ has joined #ruby
Stoge88 has joined #ruby
hephaestus_rg has joined #ruby
Stoge88 has quit [Client Quit]
tlarevo has quit [Ping timeout: 250 seconds]
AlexRussia has quit [Ping timeout: 245 seconds]
last_staff has joined #ruby
kiyote23 has quit [Ping timeout: 250 seconds]
arup_r_ has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
<kke_> i wonder if StringIO.new(string) will allocate string.length extra memory or does it somehow magically use somer sort of pointer
Nodeist has quit [Ping timeout: 246 seconds]
chu has quit [Read error: Connection reset by peer]
Nameo0 has quit [Quit: Leaving]
<kke_> i guess i can test that by creating 1000 stringio instances and seeing if my memory consumption went up 1000 * string.length or less
arup_r has joined #ruby
CorySimmons has joined #ruby
AlexRussia has joined #ruby
Pupeno_ has quit [Remote host closed the connection]
MasterPiece has quit [Remote host closed the connection]
rshetty has joined #ruby
rpag has joined #ruby
<certainty> moin guys
surs has joined #ruby
amclain has quit [Quit: Leaving]
anarang has joined #ruby
<certainty> kke_: s = 'test'; sio = StringIO.new(s); puts sio.string; s << 'foo'; puts sio.string
<certainty> see for yourself
arup_r_ has joined #ruby
<certainty> that suggests that stringio really just works on the underlying string and doesn't copy it
<kke_> certainty: yeah i did that, that's awesome
ebbflowgo has quit [Quit: ebbflowgo]
framling has joined #ruby
arup_r_ has quit [Remote host closed the connection]
<kke_> also works the other way around, you can do sio.puts "hello" and s changes
arup_r has quit [Ping timeout: 272 seconds]
arup_r has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
JohnBat26 has joined #ruby
russt has quit [Quit: russt]
sigurding has quit [Quit: sigurding]
boombadaroomba has joined #ruby
knutmithut has quit [Remote host closed the connection]
tlarevo_ has quit [Read error: Connection reset by peer]
ghr has joined #ruby
gokul has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
ItSANgo has quit [Quit: Leaving...]
fabrice31 has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
boombadaroomba has quit [Ping timeout: 245 seconds]
CustosL1men has joined #ruby
bal has joined #ruby
sigurding has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
tlarevo has joined #ruby
apeiros_ has joined #ruby
rshetty has quit [Remote host closed the connection]
AlexRussia has quit [Quit: WeeChat 1.1-dev]
arup_r_ has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Flcn has joined #ruby
ixti has quit [Ping timeout: 258 seconds]
michaeldeol has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
goodenough has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 260 seconds]
Cyberheb has joined #ruby
sinkensabe has joined #ruby
<sargas> Are Hash#each and Hash#each_pair aliases to each other?
jenrzzz has quit [Ping timeout: 244 seconds]
goshdarnyou has quit [Quit: Connection closed for inactivity]
codecop has joined #ruby
<certainty> sargas: yes
<sargas> certainty: thanks
kwd has joined #ruby
fedexo has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
linojon has quit [Quit: linojon]
arup_r_ has quit [Ping timeout: 245 seconds]
rpag has quit [Ping timeout: 244 seconds]
dumdedum has joined #ruby
framling has quit [Remote host closed the connection]
kenneth has joined #ruby
chinmay_dd has joined #ruby
anaeem1_ has joined #ruby
aganov has joined #ruby
roolo has joined #ruby
sigurding has quit [Quit: sigurding]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
arup_r has quit [Remote host closed the connection]
<shevy> certainty knows a lot
anaeem1__ has joined #ruby
<shevy> with real certainty
ctp has joined #ruby
Abhijit has joined #ruby
toretore has quit [Read error: Connection reset by peer]
toretore has joined #ruby
ta has joined #ruby
anaeem1_ has quit [Ping timeout: 244 seconds]
roolo has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fabrice31_ has joined #ruby
arup_r has joined #ruby
arup_r has quit [Remote host closed the connection]
tgandrews has joined #ruby
toretore has quit [Ping timeout: 244 seconds]
CpuID2 has quit [Ping timeout: 250 seconds]
toretore has joined #ruby
mpistone has joined #ruby
kenneth has joined #ruby
yourabi has quit [Quit: Textual IRC Client: www.textualapp.com]
andikr has joined #ruby
kenneth has quit [Client Quit]
krandi has joined #ruby
krandi has quit [Remote host closed the connection]
zmisc has quit [Quit: mobile client quit]
mpistone has quit [Ping timeout: 250 seconds]
ItSANgo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
chinmay_dd has quit [Ping timeout: 265 seconds]
gauke has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
tgandrews has quit [Quit: This computer has gone to sleep]
goodenough has joined #ruby
ItSANgo has quit [Client Quit]
anaeem1__ has quit [Ping timeout: 250 seconds]
zmisc has joined #ruby
zmisc has quit [Client Quit]
apoorvparijat has joined #ruby
hs366 has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
tokik_ has joined #ruby
rshetty has joined #ruby
sigurding_ has joined #ruby
tesuji has joined #ruby
jenrzzz has joined #ruby
tokik has quit [Ping timeout: 245 seconds]
_mtr has joined #ruby
wjimenez5271 has joined #ruby
Takle has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
bears has joined #ruby
_mtr has quit [Ping timeout: 272 seconds]
Stoge88 has joined #ruby
sigurding_ has quit [Read error: Connection reset by peer]
SOLDIERz has quit [Quit: Be back later ...]
Takle has quit [Ping timeout: 272 seconds]
TehStig has joined #ruby
arup_r has joined #ruby
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
bears has quit [Client Quit]
Photism has quit [Quit: Leaving]
bears has joined #ruby
apoorvparijat has quit [Read error: No route to host]
apoorvparijat has joined #ruby
<arup_r> Can anyone tell me ? is this the bug in the AWS::SDK or I am missing something? https://gist.github.com/aruprakshit/17c1241d0f8556e74766
<arup_r> Whenever I am giving 3 attributes it is gives count as 0
_5kg has quit [Read error: Connection reset by peer]
<arup_r> which is wrong, it should be 1
<sevenseacat> should it?
<sevenseacat> how do you know?
<sevenseacat> what record should it be?
TomyWork has joined #ruby
<arup_r> sevenseacat: yes it should
CorySimmons has quit [Quit: Bye!]
<arup_r> Did you see each query?
<sevenseacat> i did, but nothing that showed the record that should be returned.
<arup_r> It is in the DB.
<sevenseacat> show me.
anaeem1_ has joined #ruby
alex88 has joined #ruby
TehStig has quit [Ping timeout: 272 seconds]
charliesome has quit [Quit: zzz]
<arup_r> sevenseacat: Wait.. Then.. But it is very clear from the query.. It is present. only happening when giving 3 values.
<arup_r> But wait.. I'll show you
<sevenseacat> its very clear that you expect it to be there
hiall has joined #ruby
_5kg has joined #ruby
<sevenseacat> but not that it is there
tgandrews has joined #ruby
adriancb has joined #ruby
samuel02 has joined #ruby
ezio has quit [Read error: Connection reset by peer]
bears has quit [Remote host closed the connection]
ezio has joined #ruby
bears has joined #ruby
MasterPiece has joined #ruby
St_Marx has quit [Ping timeout: 250 seconds]
livathinos has joined #ruby
adriancb has quit [Ping timeout: 264 seconds]
chris6131 has quit [Read error: Connection reset by peer]
samuel02 has quit [Ping timeout: 258 seconds]
apoorvparijat has quit [Read error: Connection reset by peer]
apoorvparijat has joined #ruby
<arup_r> sevenseacat: I reexport the data to DB and it is working.. I dunno what was wrong earlier... Anyway Thanks
st0mar has joined #ruby
hiall has quit [Quit: hiall]
Xeago has joined #ruby
Alina-malina has quit [Ping timeout: 244 seconds]
ItSANgo has joined #ruby
Alina-malina has joined #ruby
St_Marx has joined #ruby
arup_r has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
<sargas> where in the ruby repo can I find the definition for BasicObject?
<sargas> is its source code written in C or Ruby?
_5kg has quit [Ping timeout: 264 seconds]
rkday has joined #ruby
jheg has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
shredding has joined #ruby
<shevy> cool ... I just had an error... because I wrote unlesss
hephaestus_rg has quit [Ping timeout: 250 seconds]
<shevy> sargas C
<shevy> rb_define_method(rb_cBasicObject, "__send__", rb_f_send, -1);
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
<shevy> in file object.c:VALUE rb_cBasicObject;
<shevy> weird that they did not want to create basic_object.c
<shevy> :D
<sargas> shevy: so the core classes are defined in C
Azure has quit [Ping timeout: 255 seconds]
<sargas> shevy: BasicObject, Module, Kernel, Object, and Class were all defined in Ruby
<sargas> shevy: thanks
jenrzzz has quit [Ping timeout: 256 seconds]
<bears> any other way of transporting it?
livathin_ has joined #ruby
shevy has quit [Ping timeout: 258 seconds]
bears has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 245 seconds]
msgodf has joined #ruby
bears_ has joined #ruby
einarj has joined #ruby
ta has quit [Remote host closed the connection]
tlarevo has quit []
mpistone has joined #ruby
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
Stoge88 has joined #ruby
sk87 has joined #ruby
bears_ has quit [Remote host closed the connection]
Pupeno has joined #ruby
Pupeno has joined #ruby
shredding has quit [Quit: shredding]
kAworu has quit [Ping timeout: 272 seconds]
Flcn has quit [Quit: Be back later ...]
mpistone has quit [Ping timeout: 265 seconds]
kAworu has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Spami has joined #ruby
dopie has joined #ruby
tkuchiki has joined #ruby
konsolebox has joined #ruby
timonv_ has joined #ruby
kl has joined #ruby
arup_r has joined #ruby
oo_ has quit [Remote host closed the connection]
bears_ has joined #ruby
shredding has joined #ruby
jenrzzz has joined #ruby
shevy has joined #ruby
_Andres has quit [Quit: jazz]
arup_r_ has joined #ruby
tkuchiki has quit [Ping timeout: 250 seconds]
roolo has joined #ruby
kenneth has joined #ruby
arup_r has quit [Ping timeout: 258 seconds]
jheg has quit [Quit: jheg]
yfeldblu_ has joined #ruby
kl has quit [Ping timeout: 244 seconds]
hs366 has quit [Quit: Leaving]
jenrzzz has quit [Ping timeout: 250 seconds]
hiall has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
Takle has joined #ruby
foooobear has joined #ruby
<certainty> oh nice rspec allows you to bind the return value of a stubbed method on the parameter expectation ... so allow(foo).to receive(:bar).with(:foobar).and_return(:something) and allow(foo).to receive(:bar).with(:baz).and_return(:something_else) will return different results based on the parameters passed
<certainty> has that always been the case?
bears_ has quit [Remote host closed the connection]
sigurding has joined #ruby
nayme has joined #ruby
mikecmpbll has joined #ruby
charliesome has joined #ruby
<nayme> wh y isn't my code working? i am trying to find a prime number
<tobiasvl> nayme: uh, what's check_number.prime?
<certainty> nayme: what is not working? what are you expecting and what does actually happen? (There are a few odd things there)
<tobiasvl> nayme: if that method existed, couldn't you just have called that instead of wrapping it in another method that doesn't really do anything?
<nayme> i guess i could, i required the prime module
charliesome has quit [Client Quit]
<tobiasvl> okay, so that snippet isn't the whole code
21WAALSTH has joined #ruby
<nayme> oh whoops
jenrzzz has joined #ruby
<nayme> this should be much better: http://pastie.org/9771715
<nayme> :)
hs366 has joined #ruby
<tobiasvl> nayme: ok, so what's not working about that code?
<Abhijit> amm....here..check_number = @prime_number shouldnt the variable be on left?
nclbr has joined #ruby
<certainty> that's one of the odd things. it can be this way but that's probably not wanted.
lsmola has quit [Read error: Connection reset by peer]
Flcn has joined #ruby
<nayme> i wanted to set it to a glbal variable in case i want to call it from other methods
ghr has joined #ruby
<tobiasvl> huh?
<tobiasvl> first of all, @prime_number is not a global variable
_5kg has joined #ruby
<nayme> i mean instance, whoops
<tobiasvl> second, you're setting the method parameter to the (empty) variable @prime_number
<tobiasvl> shouldn't it have been the other way around?
21WAALSTH has quit [Remote host closed the connection]
<nayme> but shouldn't it be somehting because if it's a prime number then it sets it?
Abhijit_ has joined #ruby
<nayme> if check_number.prime?
<Abhijit_> certainty, you talking about my statement?
<tobiasvl> nayme: you never set @prime_number
<certainty> Abhijit_: yeah :)
lsmola has joined #ruby
<Abhijit_> certainty, okey. but i thougth x=1 is universal. you said that it can be othey way htat is 1=x. i never seen that?
<Abhijit_> or is this ruby specific?
Abhijit has quit [Ping timeout: 258 seconds]
sargas has quit [Quit: This computer has gone to sleep]
Abhijit_ is now known as Abhijit
rshetty_ has joined #ruby
foooobear has quit [Read error: Connection reset by peer]
<certainty> Abhijit: it can be x = @something since @something will be automatically vivified and initialized to nil
nayme has quit [Ping timeout: 246 seconds]
<certainty> sorry for the confusion
<Abhijit> ok
tvw has joined #ruby
rshetty has quit [Ping timeout: 244 seconds]
bears_ has joined #ruby
william3_ has joined #ruby
elaptics`away is now known as elaptics
wald0 has joined #ruby
rshetty_ has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
edwardly has quit [Read error: Connection reset by peer]
red_horned_rihno has quit [Ping timeout: 258 seconds]
jheg has joined #ruby
timonv_ has quit [Remote host closed the connection]
Areessell has joined #ruby
_5kg has quit [Ping timeout: 265 seconds]
drkyro has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
drkyro has joined #ruby
st0mar has quit [Ping timeout: 244 seconds]
william3_ has quit [Remote host closed the connection]
ohaibbq has quit [Quit: Leaving...]
bears_ has quit [Ping timeout: 252 seconds]
timonv_ has joined #ruby
joonty has joined #ruby
rkday has quit [Ping timeout: 264 seconds]
<arup_r_> Abhijit: Hi
<Abhijit> hi
ajaiswal has quit [Quit: Leaving]
<arup_r_> Abhijit: From Kolkata ?
<arup_r_> :-)
bluOxigen has quit [Ping timeout: 255 seconds]
<Abhijit> No. But I love Bengali people and their food.
St_Marx has quit [Ping timeout: 250 seconds]
<Abhijit> Becaue I love fish.
rshetty has quit [Remote host closed the connection]
<Abhijit> :-p
<arup_r_> I am a Bong...
<arup_r_> ;)
<arup_r_> So from where are you then?
bluOxigen has joined #ruby
<Abhijit> I am stuck in a landlocked city because of my job. Hence no proper fish here.
<Abhijit> arup_r_, see pm
ctp has joined #ruby
<arup_r_> I didn't get any pm
<Abhijit> :-o
<Abhijit> arup_r_, type /msg Abhijit test
DaniG2k has joined #ruby
St_Marx has joined #ruby
AlSquirikou has joined #ruby
arup_r has joined #ruby
axilla has joined #ruby
ARCADIVS has quit [Quit: ARCADIVS]
<arup_r> shevy: There ?
arup_r_ has quit [Ping timeout: 250 seconds]
ta has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kenneth has joined #ruby
kenneth has quit [Client Quit]
AFKGeek has joined #ruby
noop has joined #ruby
MrBoolean has joined #ruby
DaniG2k has quit [Quit: leaving]
mpistone has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
marr has joined #ruby
<gregf_> >> require "prime"; 1.prime?
<eval-in__> gregf_ => false (https://eval.in/232818)
<jokke> hey
<gregf_> found a bug :/
_mtr has joined #ruby
<arup_r> gregf_: Log it immediately..
<arup_r> ;)
william3 has joined #ruby
<arup_r> jokke: Hey... What?
<jokke> is it possible to use gems beside bundler in a project? I mean kind of having a "private" Gemfile or similar that wont appear in Gemfile.lock
<jokke> i'd like to add some gems to a project for development purposes that no-one else in the project needs
<jokke> many of my co-workers use rubymine and don't need pry for example
<jokke> or better errors
<jokke> better_error
<jokke> s
mpistone has quit [Ping timeout: 260 seconds]
<certainty> jokke: what i usually do is export the path of my private gem file in an environment variable and then load and eval it inside the main gemfile if the variable is set
<certainty> dunno if that's the best way to do it but it works
<jokke> oh
<certainty> i'm not feeling good about the eval :p
<jokke> yeah
jlebrech has joined #ruby
<jokke> there's no way to require it or so?
<certainty> simply loading it didn't work when i last checked iirc
<jokke> but still, running bundle install would add your gems to the gemfile.lock
<certainty> yeah
workmad3 has joined #ruby
<certainty> that's right
<jokke> which i can't do
<certainty> ah ok
<jokke> because it's in version control
<jokke> i'd force the gems on the others like that
lkba has quit [Ping timeout: 272 seconds]
<jlebrech> idea: writing tests after __END__ in file with yaml.
<certainty> yeah
_mtr has quit [Ping timeout: 252 seconds]
gokul has quit [Quit: Leaving]
<jokke> certainty: but thanks for the input
wpp has joined #ruby
<certainty> jokke: yw
StoneCypher has quit [Ping timeout: 260 seconds]
gokulnath has joined #ruby
lolmaus has joined #ruby
<certainty> there are a couple of ideas
TehStig has joined #ruby
<certainty> it's a combination of evaling the common gemfile inside the private one and then using the private gemfile only, by exporting the BUNDLE_GEMFILE variable
<certainty> that way you can still commit your Gemfile.lock and keep your local gemfile away from the repository
<workmad3> jokke: you wouldn't force the gems on others with them just being in the Gemfile.lock btw
ezio has quit [Read error: Connection reset by peer]
StoneCypher has joined #ruby
rodfersou has joined #ruby
<workmad3> jokke: however, you would churn the Gemfile.lock, and if you were the last person to touch it then you'd break installs that used --deployment
ezio has joined #ruby
<certainty> sounds like there should be a proper solution for this. It's a pretty common concern i believe
qba73 has joined #ruby
mengu has quit [Remote host closed the connection]
<workmad3> jokke: 'bundle install' adds and removes gems from the lockfile if they've been added/removed from the Gemfile.lock. If it's added, the install will check to make sure it fits into the current dependency graph without altering any versions of already locked gems
TehStig has quit [Ping timeout: 255 seconds]
william3 has quit [Remote host closed the connection]
samuel02 has joined #ruby
<workmad3> certainty: yeah, it's a feature/issue that bundler has been trying to figure out since something like 0.8 or 0.9... they've yet to manage to figure out a way that doesn't break bundler in annoying ways, I believe
<jokke> hm
<jokke> this looks okay
<certainty> workmad3: yeah
<workmad3> certainty: like with your eval mechanism... that sort of churn in the lockfile isn't good for stable deployments :)
<certainty> workmad3: by lockfile you mean Gemfile.lock or something else?
<workmad3> certainty: I mean Gemfile.lock, yes
<certainty> ah ok. yeah i know
<certainty> the latter approach with the local gemfile evaling the common one, it should be no problem though
<certainty> you could even have a "local" gemfile per employee .. something like Gemfile.local.bob
<workmad3> certainty: if it locks the gems in the same file, it's a problem...
<certainty> it will be a different file (at least that's my understanding of it)
<workmad3> certainty: and if it doesn't lock the common gems in a common file, then you lose the point of having the lockfile
arup_r_ has joined #ruby
<certainty> the workflow would be something like bundle and then BUNDE_GEMFILE=Gemfile.local bundle
<certainty> then you a) lock the gems in the common one and b) get an environment with your gems
quimrstorres has joined #ruby
wpp has quit [Read error: Connection reset by peer]
<workmad3> and the environment with your gems could be different to the common one
<workmad3> in that workflow
<certainty> yeah true
<certainty> it's a mess
wpp has joined #ruby
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
<certainty> also you're right that it might be problematic to just eval the common gemfile and not somehow onely take the lockfile as the source
<certainty> i believe you said that before :D
<certainty> we need bundle-merge that merges two lockfiles
davedev2_ has quit [Remote host closed the connection]
<certainty> well gotta take care of a different mess here. bbl
Takle has quit [Remote host closed the connection]
<workmad3> what you really need is that two-file approach built into bundler so that you can have Gemfile and Gemfile.mine, and do something like 'bundle config local.gems=Gemfile.mine' and bundler will then install Gemfile with Gemfile.lock, and then resolve Gemfile.mine with Gemfile.lock as the source graph which can't be changed and Gemfile.mine has to 'fit in'
StoneCypher has quit [Ping timeout: 244 seconds]
arup_r has quit [Ping timeout: 245 seconds]
<workmad3> and then store that entire graph in Gemfile.mine.lock
Takle has joined #ruby
<workmad3> it's important that Gemfile.lock needs to be taken into account for all local versions though, IMO
<certainty> which is the merge thing
<certainty> yeah
<certainty> workmad3: ok you know the task. You have 8 hours
<workmad3> certainty: :P
<certainty> :)
<dopie> 1.9.3p429 :011 > approved = u.receipts.map {|receipt| [receipt.confirmation.blank?] [receipt.is_approved.blank?]}
<dopie> how do i map two strings from the same object?
<jlebrech> if a redis key needs deleting in an hour say, anyone use sidekiq's perform_in to do that?
_5kg has joined #ruby
duncannz has quit [Remote host closed the connection]
tokik_ has quit [Ping timeout: 260 seconds]
<workmad3> dopie: try putting them both in a single array
<workmad3> dopie: or do you want to know if either of them is blank?
studiotate has quit [Quit: Computer has gone to sleep.]
Shazaum has joined #ruby
charliesome has joined #ruby
<dopie> i want to displai if confirmation is blank and if is_approved is true
<dopie> display
Hobogrammer has quit [Ping timeout: 260 seconds]
Takle_ has joined #ruby
<dopie> i want to KNOW if confirmation is blank and if is_approved is true
Takle has quit [Ping timeout: 244 seconds]
<dopie> @profiles = Profile.all.map{|p| "#{p.users_firstname} #{p.users_lastname}"}
<dopie> like that?
<workmad3> dopie: well, that's constructing a string from two different values
bmichelsen has joined #ruby
<dopie> yeah
hgl has quit [Max SendQ exceeded]
<dopie> not what i want
<workmad3> dopie: but yes, the idea is the same... you can only return one value from the block
oo_ has joined #ruby
hgl has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
<workmad3> dopie: so the bit I was asking is do you want a single true/false that is true if confirmation is blank *and* is_approved is true, or do you want something like [[false,true], [true,true]] ?
<dopie> 1.9.3p429 :012 > approved = u.receipts.map {|receipt| receipt.confirmation.blank? && receipt.is_approved? }
<dopie> got it
hgl has quit [Max SendQ exceeded]
<avril14th> u.receipts.map{ |r| [r.confirmation.blank?,r.is_approved.blank?] }
<avril14th> ?
oo_ has joined #ruby
<workmad3> dopie: so you wanted the single value ;)
rshetty has joined #ruby
<dopie> yes
samuel02 has quit [Remote host closed the connection]
<dopie> well not really
<dopie> haha
hgl has joined #ruby
<workmad3> dopie: hehe
rdark has joined #ruby
<workmad3> dopie: well avril14th's version shows you how to get separate values in an array
quimrstorres has quit []
<avril14th> if you want only the approved stuffs, you should use select
<avril14th> and then iterate to display wahtever you want
<dopie> 1.9.3p429 :014 > approved = u.receipts.map {|receipt| [receipt.confirmation.blank?, receipt.is_approved?] }
Shazaum has quit [Quit: This computer has gone to sleep]
timonv_ has quit [Remote host closed the connection]
apoorvparijat has quit [Ping timeout: 245 seconds]
timonv_ has joined #ruby
arturhoo has joined #ruby
arup_r_ has quit [Remote host closed the connection]
rshetty_ has joined #ruby
shortCircuit__ has joined #ruby
<dopie> ok
kyb3r_ has quit [Quit: Leaving]
<dopie> approved = u.receipts.map {|receipt| [receipt.confirmation?, receipt.is_approved?] }
<dopie> there we go
arup_r has joined #ruby
red_horned_rihno has joined #ruby
red_horned_rihno has quit [Remote host closed the connection]
rshetty has quit [Ping timeout: 244 seconds]
red_horned_rihno has joined #ruby
lessless has joined #ruby
hiall has quit [Quit: hiall]
Calmoto has quit [Ping timeout: 255 seconds]
<Xeago> hmm, when running pry in jruby, the interactive mode is reaally flaky
<Xeago> fg/bg'ing the process results in no input being shown until pressing return
wpp has quit [Ping timeout: 240 seconds]
SOLDIERz has quit [Quit: Be back later ...]
kaspertidemann has joined #ruby
rshetty_ has quit [Remote host closed the connection]
hgl has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
nfk has joined #ruby
hgl has joined #ruby
samuel02 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mengu has quit [Ping timeout: 245 seconds]
ldnunes has joined #ruby
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
<jlebrech> my tests need a current_user (i'm using an external api, prior to fakeweb), what you think of storing session data in redis for tests to load?
Phagus has joined #ruby
<Phagus> Is there a Ruby equivalent to Python's String.format method?
studiotate has joined #ruby
<jheg> o/
_5kg has quit [Ping timeout: 260 seconds]
<jheg> I’m gettingthis error which I havent had before …
<jheg> ERROR: While executing gem ... (Gem::FilePermissionError)
<jheg> You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
<certainty> Phagus: i don't know about about Pythons format method but you may want something like String#%
<jheg> how do I fix this? AFAIK I’ve not changed anything fundamental
arturhoo has quit [Quit: arturhoo]
<workmad3> jheg: how did you install ruby?
<jheg> rvm I think
<jheg> it was a few months ago but pretty sure thats what I used
lemur has quit [Ping timeout: 258 seconds]
<jheg> i’ve installed gems recently too
<workmad3> jheg: right, then it looks like you've started a new terminal session and your default ruby is still the system one
<workmad3> jheg: so you need to do 'rvm use <whatever>'
<Phagus> certainty: What do people use commonly in Ruby for print? puts?
<certainty> Phagus: yeah
<certainty> if you need the newline
<certainty> otherwise print is fine
<certainty> sometimes #display ... for objects that respond to it
studiotate has quit [Ping timeout: 258 seconds]
<workmad3> Phagus: or just 'p' if you want more information on the object
uber_hulk has joined #ruby
Shazaum has joined #ruby
Xeago has quit [Remote host closed the connection]
<Phagus> So you just string variables together? puts "Hello " + name + "\nToday is" + date + "."
mpistone has joined #ruby
<workmad3> Phagus: "Hello #{name}\nToday is #{date}."
uber_hulk has quit [Client Quit]
<workmad3> Phagus: string interpolation ftw
<Phagus> Oh, very nice.
Shazaum has quit [Remote host closed the connection]
timonv_ has quit [Remote host closed the connection]
<Phagus> Can you give me an example of that being used in a puts statement workmad3 ?
<workmad3> Phagus: err... you stick 'puts' at the start :P
<Phagus> It just knows where to pull #{name} from?
<tobiasvl> it pulls it from… name
<workmad3> Phagus: yes, #{} evaluates ruby in the current scope
timonv_ has joined #ruby
<workmad3> Phagus: so "#{name}" is using the local variable or method 'name'
<workmad3> Phagus: "#{@name}" would use the ivar @name
<workmad3> Phagus: in essence, you can think of "Hello #{name}" as a shorthand for '"Hello " + name.to_s'
<Phagus> workmad3: Yep. It's almost like the formatter method in Python
<Phagus> Well, a good equivalent
<Phagus> strining things together with +'s is just annoying
sk87 has joined #ruby
<workmad3> Phagus: I suspect the format method in python is more like '"Hello %s" % name' ;)
<jheg> workmad3: thanks buddy!
<workmad3> jheg: that was the missing bit? :)
Axy has joined #ruby
Axy has quit [Changing host]
Axy has joined #ruby
Mia has quit [Read error: Connection reset by peer]
mpistone has quit [Ping timeout: 250 seconds]
<jheg> I did rvm use 2.1.1 and it seemed to work
qba73_ has joined #ruby
<workmad3> jheg: I'd suggest doing 'rvm use <whatever> --default' if so... that will set up that particular ruby as the default to activate when RVM loads
<Phagus> workmad3: Oh no, I meant, the .format() method. Python 3 syntax
<jheg> shotgun still throws an error though
arup_r_ has joined #ruby
<Phagus> Python 3 .format() syntax goes like: "Hello {0}.".format("Bob") . This returns: "Hello Bob."
<jheg> I think thats something else though coz it still works when I create a new app
<jheg> anyway thanks for the help
<workmad3> Phagus: ah, that looks more like C#... but yeah, fair enough :)
<Phagus> workmad3: Probably what inspired it. I like how Ruby handles this stuff though, you can just define an expression right there in the string
<workmad3> Phagus: that works nicely if you need to insert the same arguments multiple times... but then you could always write your own .format method ;)
MrIlyas has joined #ruby
qba73 has quit [Ping timeout: 255 seconds]
arup_r has quit [Ping timeout: 272 seconds]
<Phagus> workmad3: We'll see ;-)
rshetty has joined #ruby
<workmad3> Phagus: 'class String; def format(*args); args.each_with_index.inject(self){|str, (sub, i)| str.gsub("{#{i}}", sub)}; end; end'
ajaiswal has joined #ruby
<workmad3> hmm, should probably have done sub.to_s in the gsub there
<workmad3> >> class String; def format(*args); args.each_with_index.inject(self){|str, (sub, i)| str.gsub("{#{i}}", sub).to_s}; end; end; "Hello {0}. Did you know that today is {1}? Goodbye for now, {0}".format("Bob", Date.today)
<eval-in__> workmad3 => undefined method `today' for Date:Class (NoMethodError) ... (https://eval.in/232915)
<workmad3> haha
<workmad3> >> class String; def format(*args); args.each_with_index.inject(self){|str, (sub, i)| str.gsub("{#{i}}", sub).to_s}; end; end; "Hello {0}. Did you know that today is {1}? Goodbye for now, {0}".format("Bob", Date.new)
<eval-in__> workmad3 => no implicit conversion of Date into String (TypeError) ... (https://eval.in/232916)
<workmad3> ok, screw that :)
prontotest has joined #ruby
prontotest has left #ruby [#ruby]
<workmad3> too used to having that sort of stuff on string :)
<workmad3> *date
blueOxigen has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
Peterman_ has joined #ruby
<Phagus> Python's String.format() method supports things like keyword assignment, string slicing, dictionary dereferencing , and other magic. I have a feeling Ruby has its own way of doing said magic :-)
Axy is now known as Mia
<wasamasa> ruby just has string interpolation
<workmad3> wasamasa: and sprintf
<wasamasa> and a rather unsatisfying printf
<wasamasa> then, at least that one doesn't need its own mini-manual
bluOxigen has quit [Ping timeout: 255 seconds]
AFKGeek has quit [Quit: Fades into the shadows]
zz_twistedpixels is now known as twistedpixels
<Phagus> What does sprintf do exactly?
giuseppesolinas has joined #ruby
<wasamasa> it formats a string
qba73 has joined #ruby
Peterman_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
yfeldblu_ has quit [Ping timeout: 255 seconds]
<Phagus> How is it different from printf?
qba73 has quit [Remote host closed the connection]
bayed has joined #ruby
jamooo has quit [Ping timeout: 250 seconds]
<wasamasa> printf displays a string on stdout
<workmad3> wasamasa: oh, we also have "%{name} sucks" % {name: "Bob"} for interpolating from a hash
<wasamasa> workmad3: huh
Morkel has quit [Ping timeout: 258 seconds]
<avril14th> Is there a way to have a string.partition to separate splitting every match and not only the first one?
Morkel_ has joined #ruby
<avril14th> >> 'whatever'.partition('e')
<eval-in__> avril14th => ["what", "e", "ver"] (https://eval.in/232917)
<wasamasa> "For more complex formatting, Ruby supports a reference by name. %<name>s style uses format style, but %{name} style doesn’t."
<avril14th> so get ["what","e","v","e","r"] instead
<wasamasa> guess if I've got nothing better to do, I'll reimplement the CL FORMAT in ruby
jamooo has joined #ruby
qba73_ has quit [Ping timeout: 244 seconds]
axilla has quit [Ping timeout: 272 seconds]
<workmad3> wasamasa: ah, didn't know you could apply formatting modifiers if you used <>
<wasamasa> >> 'whatever'.split('e')
<eval-in__> wasamasa => ["what", "v", "r"] (https://eval.in/232919)
<wasamasa> noo
<workmad3> >> 'whatever'.split(/(?=e)|(?<=e)/)
<eval-in__> workmad3 => ["what", "e", "v", "e", "r"] (https://eval.in/232920)
axilla has joined #ruby
<avril14th> ooooh yeah
<certainty> wasamasa: that's a huge task
<avril14th> thx so much workmad3
<certainty> i mean implementing CL's format
<workmad3> avril14th: the fun of splitting by regexp with lookarounds :)
<certainty> it does loads of compile time magic to be efficient
fella6s has joined #ruby
ezio has quit [Read error: Connection reset by peer]
<avril14th> workmad3: it's pretty much the fun of head banging over here. :)
ezio has joined #ruby
<wasamasa> certainty: it will certainly be educational
<workmad3> avril14th: regexp lookarounds aren't something most people jump straight to ;)
<certainty> wasamasa: for sure
<workmad3> avril14th: as it requires remembering that they exist, remembering that they're 0-length matches, and then remembering that you can pass split a regexp ;)
<certainty> wasamasa: the problem with all these things is that they don't compose well. I'd rather go with a neat set of formatting combinators
<workmad3> avril14th: and then not crying at the nasty, ugly regexp you just wrote to split around a single character...
yfeldblum has joined #ruby
AlSquirikou has quit [Ping timeout: 252 seconds]
<workmad3> avril14th: when you could probably just as easily have done 'whatever'.split('e').flat_map{|s| [s, "e"]}
<workmad3> and drop the last element :)
fella5s has quit [Ping timeout: 252 seconds]
Mongey has quit [Ping timeout: 252 seconds]
<avril14th> I'm crying at the hours I spent reading regexp docs and rubular to spit 256chars regexp that I think most talented men would write with a few ones
<certainty> sounds round about
Alina-malina has quit [Ping timeout: 252 seconds]
LRgraham has quit [Ping timeout: 258 seconds]
<wasamasa> certainty: what, composing things in ruby?
<workmad3> avril14th: as the immensely wise 'A. N. Onymous' said - "You think 'I know, I could solve this problem with a regular expression'. You now have 2 problems"
<wasamasa> certainty: what are you smoking?
<certainty> wasamasa: well :D
<wasamasa> certainty: I want my uncomposable "DSLs"!!
Alina-malina has joined #ruby
<avril14th> brb
hgl has quit [Max SendQ exceeded]
avril14th has quit [Read error: Connection reset by peer]
<alex88> noob question, why system {"ATLAS_TOKEN"=>nil}, "make", "test" doesn't work while system({"ATLAS_TOKEN"=>nil}, "make", "test") does?
postmodern has quit [Quit: Leaving]
hgl has joined #ruby
boombadaroomba has joined #ruby
Spami has joined #ruby
voodoofish430 has quit [Read error: Connection reset by peer]
fabrice31_ has quit [Remote host closed the connection]
hgl has quit [Max SendQ exceeded]
<certainty> alex88: i don't know the details but suspect a parser issue that inteprets the firts hash as a block or something
<certainty> first even
<alex88> and also, why since it uses the same arguments as http://www.ruby-doc.org/core-2.1.5/Kernel.html#method-i-spawn I get "no implicit conversion of Hash into String"
yfeldblum has quit [Ping timeout: 256 seconds]
apoorvparijat has joined #ruby
<alex88> certainty: ok, that's fine, in fact it was expecting an "end" statement
hgl has joined #ruby
fabrice31 has joined #ruby
<certainty> i barely omit parenthesis, but many rubyists do
LRgraham has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<certainty> i dunno why. I just like parens :D
Mongey has joined #ruby
<workmad3> certainty: I tend to prefer parens too :)
<certainty> workmad3: you're a sane person :)
<workmad3> certainty: I'll drop them on 0-arg methods, and sometimes on class-level methods that look 'DSL-ey'
yfeldblum has joined #ruby
<certainty> workmad3: yeah i do the letter as well
bmichelsen has quit [Quit: ZZZzzz…]
<workmad3> heh, calling me 'sane' :)
ta has quit [Remote host closed the connection]
<certainty> the latter
boombadaroomba has quit [Ping timeout: 250 seconds]
<certainty> actually i do also the first
<certainty> :D
GeorgesLeYeti has joined #ruby
<workmad3> certainty: ;)
<GeorgesLeYeti> Hi
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
arturhoo has joined #ruby
AlSquirikou has joined #ruby
<GeorgesLeYeti> How can i gsub recursibly. Actualy i want to remove space a the begining of each line.
fabrice31 has quit [Ping timeout: 244 seconds]
<GeorgesLeYeti> So i though about gsub("\n ", "\n")
<GeorgesLeYeti> But i could have 2 spaces
<claf> GeorgesLeYeti: do you have ri?
<GeorgesLeYeti> ri ?
mengu has joined #ruby
mengu has joined #ruby
samuel02 has quit [Remote host closed the connection]
<claf> GeorgesLeYeti: try $ ri String
<GeorgesLeYeti> Btw don't wanna use squeeze(' ')
<workmad3> GeorgesLeYeti: you could always use a regexp to match arbitrary-length whitespace
damic has quit []
ta has joined #ruby
kobain has joined #ruby
ctp has joined #ruby
St_Marx has quit [Remote host closed the connection]
St_Marx has joined #ruby
charliesome has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
Blaster has joined #ruby
Shazaum has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
jenrzzz has quit [Ping timeout: 258 seconds]
mozzarella has quit [Quit: WeeChat 1.1-dev]
_5kg has joined #ruby
Azure has joined #ruby
Grumelo has joined #ruby
<claf> GeorgesLeYeti: oh well, if you get ri working or some other ruby doc, see String.strip
<gregf_> >> "whatever".split(/(e)/)
<eval-in__> gregf_ => ["what", "e", "v", "e", "r"] (https://eval.in/232930)
tgandrews has quit [Quit: This computer has gone to sleep]
<gregf_> bah :/ sorry. way back
sigurding has quit [Quit: sigurding]
godd2 has joined #ruby
MrIlyas has quit [Ping timeout: 240 seconds]
pandaant has joined #ruby
uber_hulk has joined #ruby
MrIlyas has joined #ruby
avril14th has joined #ruby
timonv_ has quit [Remote host closed the connection]
doev has joined #ruby
Azure has quit [Read error: Connection reset by peer]
kobain has quit [Ping timeout: 244 seconds]
Stalkr_ has joined #ruby
Xeago has joined #ruby
_mtr has joined #ruby
ajaiswal has quit [Quit: Leaving]
craigp has joined #ruby
kobain has joined #ruby
studiotate has joined #ruby
kobain has quit [Max SendQ exceeded]
pandaant has quit [Remote host closed the connection]
timonv_ has joined #ruby
Flcn has quit [Quit: Be back later ...]
Stoge88 has quit [Quit: Textual IRC Client: www.textualapp.com]
livathin_ has quit [Remote host closed the connection]
AFKGeek has joined #ruby
kobain has joined #ruby
wpp has joined #ruby
Cyberheb has quit [Read error: Connection reset by peer]
_mtr has quit [Ping timeout: 250 seconds]
studiotate has quit [Ping timeout: 258 seconds]
Takle_ has quit [Remote host closed the connection]
tgandrews has joined #ruby
MrIlyas_ has joined #ruby
samuel02 has joined #ruby
TehStig has joined #ruby
chipotle has joined #ruby
fabrice31 has joined #ruby
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
MrIlyas has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
fandi has quit [Quit: Leaving]
Flcn has joined #ruby
TehStig has quit [Ping timeout: 272 seconds]
st0mar has joined #ruby
Flcn has quit [Read error: No route to host]
craigp has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 250 seconds]
oo__ has joined #ruby
AlbertoCG has joined #ruby
agit0 has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
fgo has quit [Ping timeout: 272 seconds]
CustosL1men has quit [Ping timeout: 244 seconds]
livathinos has joined #ruby
craigp has joined #ruby
kobain has quit [Read error: Connection reset by peer]
wpp has quit [Read error: Connection reset by peer]
_5kg has quit [Ping timeout: 240 seconds]
n1lo has joined #ruby
Xeago_ has joined #ruby
decoponio has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
sk87 has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
robbyoconnor has quit [Quit: Konversation terminated!]
kaspertidemann has quit []
yfeldblum has quit [Ping timeout: 264 seconds]
olivier_bK has joined #ruby
jlebrech has quit [Remote host closed the connection]
bmichelsen has joined #ruby
oo__ has quit [Remote host closed the connection]
yeticry has quit [Remote host closed the connection]
oo_ has joined #ruby
yeticry has joined #ruby
Takle_ has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
jeanlinux has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
st0mar has quit [Ping timeout: 256 seconds]
kobain has joined #ruby
oo_ has quit [Ping timeout: 245 seconds]
yeticry has quit [Ping timeout: 250 seconds]
giuseppesolinas has joined #ruby
VictorBjelkholm has joined #ruby
oo_ has joined #ruby
Macaveli has joined #ruby
wsmoak has joined #ruby
yeticry has joined #ruby
uber_hulk has quit [Quit: leaving]
Xteec has joined #ruby
GeorgesLeYeti has quit [Ping timeout: 264 seconds]
hiyosi has joined #ruby
_Andres has joined #ruby
anaeem1__ has joined #ruby
st0mar has joined #ruby
anaeem1_ has quit [Ping timeout: 258 seconds]
jonathan_alban has joined #ruby
reinaldob has joined #ruby
jonathan_alban has quit [Client Quit]
wpp has joined #ruby
Xteec has left #ruby ["Be back later ..."]
CustosL1men has joined #ruby
oo_ has quit [Remote host closed the connection]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
sinkensabe has joined #ruby
Peterman_ has joined #ruby
Peterman_ has quit [Client Quit]
GeorgesLeYeti has joined #ruby
fgo has joined #ruby
CustosL1men has quit [Ping timeout: 250 seconds]
oo__ has joined #ruby
oo__ has quit [Remote host closed the connection]
AlbertoCG has quit [Ping timeout: 244 seconds]
SCHAAP137 has joined #ruby
st0mar has quit [Ping timeout: 245 seconds]
rodfersou has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
Ionian has joined #ruby
<Ionian> Why does `Net::HTTP.get(url, '/')` not take all websites?
apoorvparijat has quit [Remote host closed the connection]
studiotate has joined #ruby
<tobiasvl> Ionian: what do you mean? what websites does it not take? what is url?
oo_ has joined #ruby
tesuji has quit [Ping timeout: 240 seconds]
spastorino has joined #ruby
shevy has quit [Ping timeout: 260 seconds]
rodfersou has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
studiotate has quit [Ping timeout: 258 seconds]
CustosL1men has joined #ruby
LekeFly has joined #ruby
Flcn has joined #ruby
Peterman_ has joined #ruby
JokerDoom has joined #ruby
frem has quit [Quit: Connection closed for inactivity]
jeanlinux has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
chu has joined #ruby
_5kg has joined #ruby
davedev24_ has joined #ruby
_JokerDoom has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
VictorBjelkholm has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
spyderma_ has joined #ruby
freerobby has joined #ruby
mpistone has joined #ruby
shevy has joined #ruby
ctp has joined #ruby
Ionian has quit [Ping timeout: 246 seconds]
spyderman4g63 has quit [Ping timeout: 250 seconds]
dkphenom has joined #ruby
yfeldblum has joined #ruby
AlSquirrel has joined #ruby
chinmay_dd has quit [Ping timeout: 240 seconds]
surs has quit [Quit: Lost terminal]
mpistone has quit [Ping timeout: 258 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
AlSquirikou has quit [Ping timeout: 245 seconds]
axilla has quit [Ping timeout: 272 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
axilla has joined #ruby
fgo has joined #ruby
_5kg has quit [Ping timeout: 256 seconds]
LekeFly has quit [Ping timeout: 250 seconds]
vt102 has joined #ruby
uber_hulk has joined #ruby
LekeFly has joined #ruby
LekeFly has quit [Client Quit]
chinmay_dd has joined #ruby
yeticry has quit [Ping timeout: 244 seconds]
<jheg> just want to check in my understanding of OOP …
hanmac1 has joined #ruby
<jheg> is it simply ‘class based programming’
<workmad3> jheg: no
<jheg> and the big win of OOP being that you can serperate many elements of a program
avrc has quit [Quit: this channel is bakas]
havenwood has quit [Remote host closed the connection]
<jheg> I think im struggling to grasp the actual definition of OOP :(
yeticry has joined #ruby
claptor has quit [Quit: this channel is bakas]
st0mar has joined #ruby
<workmad3> jheg: you can't go too far wrong by looking at Alan Kay's stuff on OO (seeing as he created the term) http://c2.com/cgi/wiki?AlanKaysDefinitionOfObjectOriented
<tobiasvl> keywords: polymorphism, inheritance, encapsulation/information hiding
<waxjar> it's a tricky term
<jheg> great stuff guys - cheers
<jheg> I mean I’m getting to know how to use OOP but if I were to have to tell someone what it fundamentally is - I’d struggle
<workmad3> jheg: Alan Kay has explicitly said that 'OO' in Java and C++ is not what he would consider OO, btw
<jheg> will read through those links
jimms has joined #ruby
mozzarella has joined #ruby
<workmad3> jheg: Alan Kay likened it to a cellular metaphor. Each object (not class) is a cell. It can do some stuff internally, but only very simple things. In order to collaborate with other cells, it sends out a message and cells that are interested in that message perform their actions when they receive it
uber_hulk has quit [Quit: leaving]
<jheg> workmad3: nice
aclearman037 has joined #ruby
<jheg> Each object (not class) aka class instance?
<workmad3> jheg: who cares where the object came from? :P
<jheg> ?
<workmad3> jheg: i.e. why tie your definition of an object to the idea of a class
<tobiasvl> not all OOP languages have classes, such as javascript
<jheg> I thought they were on ein the same
tokik has joined #ruby
<jheg> oh OK
tristanp has joined #ruby
sk87 has joined #ruby
<jheg> So if there was an opposite of non OOP what would it be?
<tobiasvl> an opposite of non-OOP?
<tobiasvl> or an opposite of OOP
<jheg> and if everything in ruby is an object such as nil
<jheg> ha tobiasvl double neg there
<Abhijit> service restart tobiasvl
<jheg> yeah opp of oop
<workmad3> jheg: in ruby, even classes are objects (instance of the class Class, which is itself an object...)
uber_hulk has joined #ruby
gauke has left #ruby [#ruby]
<jheg> so we combine objects to create new objects?
<workmad3> jheg: I'm not sure what the 'opposite' of oop would be or look like... I can envisage an absence, not really an opposite...
_mtr has joined #ruby
<jheg> simple so we can build their complexity?
<workmad3> jheg: that's the usual advice - concentrate on objects and their interactions, rather than classes and their hierarchies
<tobiasvl> jheg: well, in a way. in ruby, we have a tree of inheritance, yes. all objects inherit from Object, for example
techsethi has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<workmad3> jheg: also bear in mind waxjar's comment that it's a tricky term, OO can mean different things to different people and different languages, and that how to build good software is still an evolving discipline
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nfk has quit [Quit: yawn]
<waxjar> i think the cellular analogy is best if you're trying to understand what it is, objects have some small responsibilty and they communicate with each other trough messages (in ruby these are method calls) to make things happen
<waxjar> inheriting, classes, etc are more "implementation details" than fundamental to the theory
<claf> opposite of OOP is huge ball of spaghetti
<workmad3> waxjar: I'd probably say 'sometimes useful additions' rather than 'implementation details', but I like your idea :)
axilla has quit [Ping timeout: 252 seconds]
<workmad3> claf: that can also be OOP :P
sailias has joined #ruby
<claf> you can spaghetti up OOP
_mtr has quit [Ping timeout: 256 seconds]
<claf> true
machete has quit [Ping timeout: 245 seconds]
<workmad3> claf: crap code is fairly independent of paradigm :)
<claf> you might as well ask, what is opposite of using boxes
rshetty has quit [Remote host closed the connection]
<claf> well, its some other container, or a huge mess
psy_ has quit [Read error: No route to host]
<workmad3> claf: hmm... 'what is the opposite of putting things in boxes' is obviously 'putting boxes in things'
<claf> aaa
<workmad3> claf: while what you just described sounds more like 'the absence of using boxes'
porfa has joined #ruby
<claf> workmad3: I think I feel a new paradigm: POO-programming
<workmad3> claf: :D
psy_ has joined #ruby
diego_ar has joined #ruby
* claf goes to ... write a POO manifesto
<workmad3> claf: awesome, the poo-manifesto.org domain is free!
<waxjar> poo oriented programming
<workmad3> waxjar: pooop?
axilla has joined #ruby
Stalkr_ has quit [Quit: Linkinus - http://linkinus.com]
Phagus has quit [Ping timeout: 252 seconds]
jimms has quit [Read error: Connection reset by peer]
machete has joined #ruby
aclearman037 has quit [Quit: I'm out!]
jimms has joined #ruby
russt has joined #ruby
surs has joined #ruby
arup_r_ has quit [Ping timeout: 264 seconds]
<jheg> sorry all phone rang (catching up)
linduxed has quit [Ping timeout: 272 seconds]
freerobby has quit [Quit: Leaving.]
mozzarella has quit [Quit: WeeChat 1.0.1]
Takle_ has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
Guest9241 has quit [Changing host]
Guest9241 has joined #ruby
Guest9241 is now known as daynaskully
Rollabunna has joined #ruby
jblancett_ has joined #ruby
ixti has joined #ruby
Takle has joined #ruby
jblancett has quit [Quit: ZNC - http://znc.in]
jblancett_ is now known as jblancett
goodenough has quit [Remote host closed the connection]
apoorvparijat has joined #ruby
<workmad3> jheg: as I'm sure you noticed, the conversation went downhill ;)
mozzarella has joined #ruby
hgl has quit [Quit: Quit]
<jheg> i dunno poo-manifesto.org is a great domain
hgl has joined #ruby
livingstn has joined #ruby
livingstn has quit [Excess Flood]
yfeldblum has joined #ruby
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
nclbr has quit [Remote host closed the connection]
linduxed has joined #ruby
russt has quit [Ping timeout: 264 seconds]
nclbr has joined #ruby
studiotate has joined #ruby
<claf> Next: mop up a MOP-style ruby framework
livingstn has joined #ruby
arup_r has joined #ruby
Abhijit has quit [Remote host closed the connection]
jimms has quit []
Spami has joined #ruby
yfeldblum has quit [Ping timeout: 256 seconds]
chinmay_dd has quit [Ping timeout: 272 seconds]
beef-wellington has joined #ruby
TehStig has joined #ruby
studiotate has quit [Ping timeout: 252 seconds]
phutchins has joined #ruby
yalue has quit [Ping timeout: 245 seconds]
sailias has quit [Quit: Leaving.]
Timgauthier has joined #ruby
freerobby has joined #ruby
Ionian has joined #ruby
<Ionian> YEsh
russt has joined #ruby
pu22l3r_ has quit [Ping timeout: 244 seconds]
<Ionian> require 'net/http' response = Net::HTTP.get('www.twitter.com', '/') print response does not work
loc22 has joined #ruby
<claf> did you see that in irb
TehStig has quit [Ping timeout: 240 seconds]
<Ionian> whats irb???
<Ionian> Sorry im new :p
<claf> Ionian: I can tell
<claf> Ionian: as a first step, google "why does not work will not get you help with your code?"
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
<Ionian> wat
<claf> we are not telepathic
_5kg has joined #ruby
Macaveli has joined #ruby
<Ionian> Okay let me explain
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Andy__ has joined #ruby
<claf> learn to ask for help in a manner that tells people what you did, what you expected, what happened, your code in a pastie or gist
<Ionian> The code I provided
<Ionian> works with google.com
<Ionian> but if I do twitter.com or xat.com
<Ionian> It doesnt run
<Ionian> nothing shows up
<claf> ok
pandaant has joined #ruby
<claf> Ionian: can you install irb?
<loc22> Hi guys! I have a basic question. Im using polymorphic associations in Rails and I have the following classes: Post, Comment and Like. So Post and Comments has_many :likes, as: :likeable... I'm needing now to do some methods, that are in common to Post and Comments. I try creating a Likeable class and make Post and Comments inherit form it, but didn't work. Is there a way to do it? Thanks!
<tobiasvl> loc22: #rubyonrails
triple_b has joined #ruby
blizzy has quit [Ping timeout: 252 seconds]
<arup_r> >> str = "1991-12,2013-11" ; puts str.scan(/\d+{4}(?=-)/)
<eval-in__> arup_r => 1991 ... (https://eval.in/233037)
<loc22> Thanks tobiasvl
<arup_r> >> str = "1991-12,2013-11" ; p str.scan(/\d+{4}(?=-)/)
<eval-in__> arup_r => ["1991", "2013"] ... (https://eval.in/233039)
<arup_r> it works..
<arup_r> is it safe ?
<arup_r> What else I need to consider?
qulo has joined #ruby
sigurding has quit [Quit: sigurding]
<arup_r> >> str = "19911-12,2013-11" ; p str.scan(/\d+{4}(?=-)/)
<eval-in__> arup_r => ["19911", "2013"] ... (https://eval.in/233040)
<arup_r> How can I fix above bad result ?
<arup_r> I should expect only ['2013']
bmichelsen has quit [Quit: ZZZzzz…]
<Ionian> claf, Okay now I now what irb, which thanks for that
<claf> Ionian: great!
<Ionian> claf, I got this though, which confuses me: http://prntscr.com/5f8tu4
karmatr0n has joined #ruby
<claf> Ionian: so you have the same
<Ionian> Yes
<Ionian> Why does it return an empty string? Google works
SOLDIERz has joined #ruby
arup_r has quit []
<claf> Ionian: perhaps that page has no text
loc22 has quit [Ping timeout: 246 seconds]
<claf> Ionian: perhaps theres a redirect, which that library cannot follow
AmirolAhmad has joined #ruby
<Ionian> You sure?
<Ionian> Because That doesnt make any sense
<Ionian> I have a nodejs html parser, and it parses twitter just fine
<pontiki> Ionian: you have to look at the headers you're getting back
shredding has quit [Quit: shredding]
weems|mac has joined #ruby
<pontiki> http://www.twitter.com returns a 301 redirect, with an empty response body
weems|mac has quit [Changing host]
weems|mac has joined #ruby
rocknrollmarc has joined #ruby
apoorvparijat has quit [Read error: Connection reset by peer]
<claf> Ionian: if you look at the docks...
bmichelsen has joined #ruby
<pontiki> Ionian: for twitter, in particular, they're redirecting from http to https
sambao21 has joined #ruby
apoorvparijat has joined #ruby
<Ionian> OH
<claf> Ionian: there is 'Net::HTTPSuccess' you could use to see if it worked
chinmay_dd has joined #ruby
<Ionian> That mkaes much more sense
rocknrollmarc has left #ruby [#ruby]
freerobby has quit [Quit: Leaving.]
uber_hulk has quit [Quit: leaving]
vyorkin has joined #ruby
freerobby has joined #ruby
<claf> Ionian: puts res.body if res.is_a?(Net::HTTPSuccess)
freerobby has quit [Client Quit]
uber_hulk has joined #ruby
lxsameer has quit [Quit: Leaving]
<Ionian> wait slow down a bit
<Ionian> So first, shold I replace Net::HTTP with Net::HTTPSuccess
last_staff has quit [Quit: last_staff]
<Ionian> ?
<claf> no
shade88 has quit []
<claf> you should read the docs for Net::HTTP
jleishman has joined #ruby
lukeholder has joined #ruby
iamjarvo has joined #ruby
<claf> Ionian: there are also many http libraries that may or may not help/support https/redirects
karmatr0n has quit [Remote host closed the connection]
Peterman_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rocknrollmarc has joined #ruby
Andy__ has quit [Remote host closed the connection]
kl has joined #ruby
<kl> hai guys
<kl> does anyone know any big companies/websites that use Ruby?
<kl> Github is one I think of
<claf> I think google knows
aclearman037 has joined #ruby
<claf> be brave!
Timgauthier is now known as timgauthier_away
<kl> I should have clarified: not rails
<kl> Google doesn't seem able to distinguish the two concepts.
druznek has joined #ruby
karmatr0n has joined #ruby
karmatr0n has quit [Remote host closed the connection]
rocknrollmarc has quit [Remote host closed the connection]
karmatr0n has joined #ruby
Andy___ has joined #ruby
techsethi has quit [Quit: techsethi]
craigp has quit [Remote host closed the connection]
Andy___ has quit [Client Quit]
Ionian has quit [Ping timeout: 246 seconds]
nateberkopec has joined #ruby
<kl> Too many RTFM/Google it responses in here lately
yfeldblum has joined #ruby
karmatr0n has quit [Remote host closed the connection]
MasterPiece has quit [Ping timeout: 240 seconds]
<kl> I've helped out far too many people in my years of being here without resorting to that crap
<claf> kl really?
<pontiki> i'm kinda wondering how a big company's website would use just ruby but not rails...
<claf> kl: how insidious
jleishman has quit [Quit: Be back later ...]
arturhoo has quit [Ping timeout: 264 seconds]
<claf> kl: you could also look at job boards
craigp has joined #ruby
<pontiki> but i suppose one could look through some of the other ruby web frameworks' sites to see if they include a list of sites using said framework
<claf> I'd hazard a guess thats like asking who uses javascript or python
timgauthier_away is now known as Timgauthier
<claf> it might not be their marketing department fave
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
enebo has joined #ruby
<claf> kl: perhaps your google skills need some rework? 8) https://www.ruby-lang.org/en/documentation/success-stories/
<kl> pontiki: that's a good idea
linojon has joined #ruby
mary5030 has joined #ruby
jherbst has joined #ruby
<kl> claf: ta :)
yfeldblum has quit [Ping timeout: 265 seconds]
workmad3 has quit [Quit: Lost terminal]
geekbri has joined #ruby
doev has quit [Quit: Verlassend]
mary5030_ has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
MasterPiece has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
startupality has joined #ruby
jerius has joined #ruby
razieliyo_ has joined #ruby
razieliyo_ has left #ruby [#ruby]
jeanlinux has joined #ruby
<geekbri> Oi. Does anybody here have autoindent working for ruby files in OSX? I'm struggling to get it to work and I may rip my hair out. I have the vim-ruby plugin installed.
workmad3 has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
dblessing has joined #ruby
<geekbri> Oh! I got it to work. Nevermind :)
freerobby has joined #ruby
studiotate has joined #ruby
jeanlinux has quit [Remote host closed the connection]
devdazed has joined #ruby
Azure has joined #ruby
Areessell has quit [Ping timeout: 252 seconds]
st0mar has quit [Ping timeout: 244 seconds]
jleishman has joined #ruby
druznek has quit [Quit: Leaving]
s00pcan_ has joined #ruby
jeanlinux has joined #ruby
druznek has joined #ruby
devdazed has quit [Max SendQ exceeded]
shortCircuit__ has quit [Ping timeout: 245 seconds]
studiotate has quit [Ping timeout: 258 seconds]
devdazed has joined #ruby
axilla has quit [Ping timeout: 260 seconds]
william3 has joined #ruby
jeanlinux has quit [Ping timeout: 264 seconds]
william3 has quit [Remote host closed the connection]
Nodeist has joined #ruby
<wasamasa> kl: you could search for other frameworks than rails
treehug88 has joined #ruby
<wasamasa> kl: sinatra is probably the most popular after rails
<kl> wasamasa: other frameworks exist? (Joke ;)
<kl> Well, Sinatra. :)
<wasamasa> now, whether companies admit using something else than the most popular...
kiyote23 has joined #ruby
josephndenton has joined #ruby
rshetty has joined #ruby
mleone has joined #ruby
karmatr0n has joined #ruby
<Nodeist> Volt is promising?
shredding has joined #ruby
adriancb has joined #ruby
<Nodeist> Im really confused with my problem :(
sailias has joined #ruby
kiyote23 has quit [Remote host closed the connection]
allcentury has joined #ruby
blueOxigen has quit [Ping timeout: 264 seconds]
sailias has quit [Client Quit]
sailias has joined #ruby
marr has quit [Ping timeout: 255 seconds]
whoisjake has joined #ruby
momomomomo has joined #ruby
evanjs has joined #ruby
apoorvparijat has quit [Ping timeout: 250 seconds]
<claf> Nodeist: you failed to provide the problem
j2p2 has joined #ruby
<claf> Nodeist: most people here are not telepathic
uber_hulk has quit [Quit: leaving]
qulo has quit [Ping timeout: 255 seconds]
Crazy_Atheist has joined #ruby
<claf> Nodeist: is the twitter.com returning an empty page for you, too?
oleo has joined #ruby
<workmad3> Nodeist: try putting 'require "net/https" ' at the top too
<Nodeist> there isnt such a thing
<Nodeist> Anyway yes
<Nodeist> I stated that the script doesnt handle https redirects well
<Nodeist> I tried www.xat.com, and it gave back an empty string
<workmad3> Nodeist: what do you mean 'no such thing'?
surs has quit [Quit: Lost terminal]
<workmad3> Nodeist: net/https is a part of the ruby stdlib that adds https support into net/http
edwardly has joined #ruby
mpistone has joined #ruby
krz has joined #ruby
tesaf has joined #ruby
<workmad3> Nodeist: are you saying that when you did 'require "net/https" ' you got a LoadError?
tgandrews has quit [Quit: This computer has gone to sleep]
<Nodeist> Would I be replacking net/http with https or adding another require query
craigp has quit [Ping timeout: 245 seconds]
<claf> for twitter, the outcome is the same
<claf> with https get
Hanmac has quit [Ping timeout: 244 seconds]
<claf> net/https doesn't follow redirects
tgandrews has joined #ruby
<claf> I suppose one can test for such
uber_hulk has joined #ruby
mpistone has quit [Ping timeout: 252 seconds]
tgandrews has quit [Client Quit]
Peterman_ has joined #ruby
rjc_ has joined #ruby
_mtr has joined #ruby
geekbri has quit []
mary5030_ has quit [Ping timeout: 244 seconds]
TehStig has joined #ruby
Peterman_ has left #ruby [#ruby]
Peterman_ has joined #ruby
qulo has joined #ruby
studiotate has joined #ruby
tgandrews has joined #ruby
mary5030 has joined #ruby
Peterman_ has left #ruby [#ruby]
Takle has quit [Remote host closed the connection]
Channel6 has joined #ruby
livathinos has quit [Remote host closed the connection]
centrx has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
_mtr has quit [Ping timeout: 245 seconds]
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
Peterman_ has joined #ruby
yfeldblum has joined #ruby
Peterman_ has left #ruby [#ruby]
procat has joined #ruby
TgMts has quit [Read error: Connection reset by peer]
Peterman_ has joined #ruby
Peterman_ has left #ruby ["Textual IRC Client: www.textualapp.com"]
mary5030 has quit [Ping timeout: 245 seconds]
wpp has quit []
<Nodeist> If i require net/https , my script wont even loads its first outs string
<claf> Nodeist: did you have problem loading stackoverflow links, or?
TgMts has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
uber_hulk has left #ruby [#ruby]
<Nodeist> Jeez chill
krz has quit [Read error: Connection reset by peer]
charliesome has joined #ruby
krz has joined #ruby
<claf> all day long, cause my apps are running and live
Takle has joined #ruby
<Nodeist> fast?
yfeldblum has quit [Ping timeout: 255 seconds]
konsolebox has quit [Remote host closed the connection]
zB0hs has joined #ruby
mozzarella has quit [Quit: WeeChat 1.0.1]
andikr has quit [Remote host closed the connection]
droidburgundy has joined #ruby
fandi has joined #ruby
snath has quit [Ping timeout: 258 seconds]
Peterman_ has joined #ruby
Peterman_ has quit [Remote host closed the connection]
Peterman_ has joined #ruby
Timgauthier is now known as timgauthier_away
AlbertoCG has joined #ruby
livathinos has joined #ruby
russt has quit [Ping timeout: 244 seconds]
mozzarella has joined #ruby
iamjarvo has joined #ruby
tristanp has quit [Remote host closed the connection]
Hanmac has joined #ruby
<workmad3> Nodeist: if you can't require net/https, it seems like your ruby doesn't have the openssl extensions built
<Nodeist> Maybe
AxonetBE has joined #ruby
<workmad3> Nodeist: if you don't have that, you can't talk to https sites with net/http
<AxonetBE> what is the best tool to convert an xml document to an array/class object
ta has quit [Remote host closed the connection]
<claf> AxonetBE: which is the best xml parser?
<Nodeist> Im using cloud9
<momomomomo> !subjective
<helpa> What you just asked could be classed as subjective. Subjective questions often start flamewars, which are tedious and boring. Try all the available options and see which one suits you the best.
<claf> thanks momomomomo
<centrx> Actually, the answer is nokogiri
<claf> aaand, also http://www.nokogiri.org/
<centrx> It's the best
boombadaroomba has joined #ruby
<centrx> :)
<waxjar> nokogiri is very popular, but there's also ox and the stdlib rexml
<AxonetBE> yes I checked out nokogiri but not easy to convert to a class with the values because nested xml
fandi has quit [Max SendQ exceeded]
russt has joined #ruby
axilla has joined #ruby
tristanp has joined #ruby
fandi has joined #ruby
<hs366> I get an error when i run the code in ruby v.2 "undefined method 'each' for #< String ..." , it loop in an Array of strings , could you please tell me how can i fix it ?
srozet has joined #ruby
<momomomomo> hs366: !ask
<helpa> hs366: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
srozet has left #ruby [#ruby]
vyorkin has quit [Ping timeout: 244 seconds]
<waxjar> is there a !help for helpa?
sevenseacat has quit [Remote host closed the connection]
<hs366> ooh ok, it was my first post here.. Im new here
<claf> !help
<helpa> I need somebody! !help. Not just anybody. !help. You know I need someone. !help
st0mar has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
<claf> !help commands
<helpa> I need somebody! !help. Not just anybody. !help. You know I need someone. !help
<Nodeist> !say hi
<claf> !help --help
<helpa> I need somebody! !help. Not just anybody. !help. You know I need someone. !help
<Nodeist> lol
<claf> sorry!
<waxjar> waxjar: !help
<helpa> I need somebody! !help. Not just anybody. !help. You know I need someone. !help
<claf> hs366: you are trying to call array functions on string objects
boombadaroomba has quit [Ping timeout: 264 seconds]
<claf> !pastie
<claf> !help paste
<helpa> I need somebody! !help. Not just anybody. !help. You know I need someone. !help
<claf> hs366: anyway, provide some code in pastie, and what you wanted
MasterPiece has quit [Ping timeout: 265 seconds]
<hs366> here is the code
Juanchito has joined #ruby
<hs366> it works fine with ruby 1.8 but not in 2
tokik has quit [Ping timeout: 244 seconds]
<hs366> i tried to fix each_char, each_bit but not fixed
anaeem1_ has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
^mg^ has joined #ruby
sigurding has joined #ruby
klmlfl has joined #ruby
mary5030 has joined #ruby
Kricir has joined #ruby
tagrudev has quit [Remote host closed the connection]
noop has quit [Ping timeout: 252 seconds]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MasterPiece has joined #ruby
<Nodeist> Need help ^
mg^^ has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<claf> hs366: do you have irb?
<claf> with 2.0
<waxjar> Nodeist: you're not assigning the result of open to anything, so none
sargas has joined #ruby
<momomomomo> waxjar: nah you’ve missed it
<waxjar> in block form the result would be useless anyway, btw
louism2wash has joined #ruby
<hs366> claf, yes,
<claf> so can you test your code with a dummy array in irb
IrishGringo has joined #ruby
<waxjar> momomomomo: hmm?
<claf> hs366: I don't have 2.0 here right now
momomomomo_ has joined #ruby
<claf> hs366: but perhaps the interpreter sees only the last string, and attempts to each it
pu22l3r has joined #ruby
<hs366> it's ok, i'll test it with dummy, good idea
<claf> hs366: also, a lesson in code formatting
tristanp has quit [Remote host closed the connection]
hgl has quit [Ping timeout: 250 seconds]
apoorvparijat has joined #ruby
momomomomo has quit [Ping timeout: 264 seconds]
momomomomo_ is now known as momomomomo
jlast has joined #ruby
tristanp has joined #ruby
<Nodeist> That doesnt really help me
hgl has joined #ruby
lyuben_ has joined #ruby
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
timgauthier_away is now known as Timgauthier
<Nodeist> I want to assign the string coming from open a veriable
agit0 has quit [Ping timeout: 244 seconds]
hamakn has quit [Remote host closed the connection]
hanmac1 has quit [Quit: Leaving.]
jobewan has joined #ruby
devoldmx has joined #ruby
jrhorn424 has joined #ruby
startupality has quit [Quit: startupality]
rippa has joined #ruby
jrhorn424 has left #ruby ["Textual IRC Client: www.textualapp.com"]
<waxjar> Nodeist: i don't know what that means. anyway, you should use a proper HTML parser if you want to parse HTML
<waxjar> and open the URL, instead of the tag :p
mjuszczak has joined #ruby
diegoviola has joined #ruby
rismoney1 has joined #ruby
Cache_Money has joined #ruby
<shevy> Nodeist assign a string coming from a variable?
SOLDIERz has quit [Quit: Be back later ...]
<shevy> what does that mean
iwishiwerearobot has joined #ruby
iwishiwerearobot has quit [Client Quit]
mahtennek has joined #ruby
Channel6 has quit [Quit: Leaving]
dANO has joined #ruby
rylev has joined #ruby
MasterPiece has quit [Quit: Leaving]
hs366 has quit [Quit: Leaving]
havenwood has joined #ruby
tesaf has quit [Quit: Lost terminal]
mjuszczak has quit []
Nodeist has quit [Ping timeout: 246 seconds]
tier has joined #ruby
aef has quit [Ping timeout: 255 seconds]
p0wn3d_mhs has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Mothore has joined #ruby
ta has joined #ruby
maestrojed has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
bal has quit [Quit: bal]
mary5030 has joined #ruby
aef has joined #ruby
Morkel_ has quit [Quit: Morkel_]
shredding has quit [Quit: shredding]
agjacome has joined #ruby
mahtennek has quit []
nfk has joined #ruby
maestrojed has quit [Max SendQ exceeded]
dfinninger has joined #ruby
procat has quit [Ping timeout: 245 seconds]
kwd has quit [Quit: kwd]
maestrojed has joined #ruby
mjuszczak has joined #ruby
kaspertidemann has joined #ruby
jleishman has quit [Quit: Be back later ...]
Peterman_ has quit [Quit: Textual IRC Client: www.textualapp.com]
renderful has joined #ruby
mengu has quit []
jleishman has joined #ruby
maestrojed has quit [Max SendQ exceeded]
stunder has joined #ruby
snath has joined #ruby
<centrx> >> puts "I will interpret your statements for you"
<eval-in__> centrx => I will interpret your statements for you ... (https://eval.in/233095)
maestrojed has joined #ruby
phutchin1 has joined #ruby
yfeldblum has joined #ruby
sinkensabe has quit [Remote host closed the connection]
ta has quit [Remote host closed the connection]
marr has joined #ruby
mjuszczak has quit []
phutchins has quit [Ping timeout: 244 seconds]
mjuszczak has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
jleishman has quit [Ping timeout: 252 seconds]
red_horned_rihno has quit [Ping timeout: 252 seconds]
red_horned_rihno has joined #ruby
MrBoolean has quit [Ping timeout: 245 seconds]
dc has joined #ruby
rodfersou has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
jleishman has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
yfeldblum has quit [Ping timeout: 265 seconds]
xxneolithicxx has left #ruby [#ruby]
arturhoo has joined #ruby
gsd has joined #ruby
gsd has quit [Client Quit]
gsd has joined #ruby
goodenough has joined #ruby
anarang has quit [Quit: Leaving]
_maes_ has joined #ruby
ta has joined #ruby
iamjarvo has joined #ruby
hamakn has quit [Remote host closed the connection]
mjuszczak has quit []
hamakn has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
bears_ has joined #ruby
iamjarvo has quit [Client Quit]
<shevy> >> puts 'centrx writes php again'
<eval-in__> shevy => centrx writes php again ... (https://eval.in/233096)
renderful has joined #ruby
StoneCypher has joined #ruby
fmcgeough has joined #ruby
mjuszczak has joined #ruby
TomyWork has quit [Ping timeout: 250 seconds]
bears_ has quit [Remote host closed the connection]
Daniel__^_^ has joined #ruby
<avril14th> how does one escape [] in a ruby regex?
<kl> \[\] ?
<kl> \Q[]\E
<kl> ignore the ?
<kl> either should do
<shevy> avril14th in general Regexp.quote() is a trivial way to find the answer to any special characters
pandaant has quit [Remote host closed the connection]
<shevy> >> Regexp.quote '[]'
<eval-in__> shevy => "\\[\\]" (https://eval.in/233098)
_maes_ has quit [Ping timeout: 272 seconds]
<avril14th> oh, didn't know about that
<claf> aww shevy is faster
<shevy> if your brain is big, you can memorize all characters :>
<shevy> . * + ? ^ $ { } [ ] ( ) \ |
hamakn has quit [Remote host closed the connection]
<shevy> claf stackoverflow is cool, lemme look at that link to see if something is upvote-worthy
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<shevy> shame that we can't grab karma points on IRC :(
fabrice31 has quit [Remote host closed the connection]
AxonetBE has quit [Quit: AxonetBE]
<claf> #javascript used to have beer, given with shevy++
<claf> but then people would abuse that, too
AFKGeek has quit [Quit: Fades into the shadows]
eighthbit has joined #ruby
<avril14th> can I use this in a character class?
charliesome has quit [Quit: zzz]
bears_ has joined #ruby
rshetty has quit [Ping timeout: 264 seconds]
maletor has joined #ruby
Macaveli has quit [Ping timeout: 272 seconds]
hgl has quit [Ping timeout: 260 seconds]
arturhoo has quit [Ping timeout: 250 seconds]
mpistone has joined #ruby
livathinos has quit [Remote host closed the connection]
rshetty has joined #ruby
maletor_ has quit [Ping timeout: 258 seconds]
arturhoo has joined #ruby
Blaster has quit [Read error: Connection reset by peer]
hgl has joined #ruby
beneggett has joined #ruby
<shevy> hmm
<shevy> avril14th it is just a method invocation
aganov has quit [Quit: Leaving]
<shevy> in a regex you can call any method like so: /#{bla('abc')}/
<avril14th> right
Xeago_ has quit [Remote host closed the connection]
<centrx> >> /#{bla('abc')}/
<eval-in__> centrx => undefined method `bla' for main:Object (NoMethodError) ... (https://eval.in/233105)
<centrx> WRONG
<avril14th> thanks shevy
<shevy> hehehe
procat has joined #ruby
<bline79> can 00 be an integer ? I am working with some hostnames that I need to increment, starting with 00,01 etc
samuel02 has quit [Remote host closed the connection]
<shevy> avril14th yeah well substitute bla with Regexp.quote
chrishough has joined #ruby
<avril14th> of crouse
<shevy> >> 00.class
<eval-in__> shevy => Fixnum (https://eval.in/233106)
<avril14th> *course
<shevy> it's a Fixnum!
<kl> Why does require() make the required file's constants globally accessible to the entire application?
mikepack has joined #ruby
hashpuppy has joined #ruby
<gregf_> avril14th: r = Regexp.new(/\[(.*)\]/); "foo [bar] [baz]".scan(r)
<bline79> thank you :)
<kl> It would be nice if require() only made them available to the file that has that require() call
<shevy> kl I think this is the only way possible. remember, class Foo <-- Foo is also a constant and must be known to other files too
<shevy> kl workaround: put them in a module
<kl> shevy: sure, so every file that wants it requires the file that Foo is in, right
<shevy> yeah; I think there is no other way too. when you require another file, the top namespace of modules and classes must be known, because otherwise, how do you load up classes and modules defined in other .rb files?
geggam has joined #ruby
<shevy> perhaps you could treat ALL_CAPS variables special, but as far as I know, the current ruby parser makes no difference between ALL_CAPS and AllCaps or All_caps
wjimenez5271 has joined #ruby
ezio has quit [Read error: Connection reset by peer]
ezio has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
ta_ has joined #ruby
bears_ has quit [Remote host closed the connection]
_mtr has joined #ruby
ta has quit [Read error: Connection reset by peer]
lw has joined #ruby
<crome> >> ASD = Object.new; Asd = Object.new; ASD == Asd
<eval-in__> crome => false (https://eval.in/233126)
sk87 has joined #ruby
efghi has joined #ruby
msgodf has quit [Ping timeout: 250 seconds]
Pyrexkable has joined #ruby
heftig has joined #ruby
Azulinho has joined #ruby
axilla has quit [Ping timeout: 245 seconds]
CustosL1men has quit [Ping timeout: 255 seconds]
_mtr has quit [Ping timeout: 252 seconds]
<bline79> I'm when I convert a 00 string to_i, it changes it to 0
momomomomo has quit [Quit: momomomomo]
bears_ has joined #ruby
<claf> bline79: representation does not affect the value
<claf> >> 0000000000000000000000000000000.to_s
<eval-in__> claf => "0" (https://eval.in/233129)
<claf> >> 0000000000000000000000000000000.to_i
<eval-in__> claf => 0 (https://eval.in/233130)
<claf> >> "0000000000000000000000000000000".to_i
<eval-in__> claf => 0 (https://eval.in/233132)
<mjuszczak> Is there an easier way to do: if blah == nil || haorf == nil || ribbit == nil || ...
<claf> the value is going to be zero, no matter how many leading zeros
krz has quit [Quit: WeeChat 1.0.1]
joonty has quit [Quit: Leaving]
<avril14th> mjuszczak: [blah, haorf, ribbit].count(nil) > 0 is an idea
<mjuszczak> ooooh!
chinmay_dd has quit [Quit: Leaving]
<avril14th> or any?
sargas has quit [Ping timeout: 244 seconds]
atomical has quit [Remote host closed the connection]
<avril14th> >>[1,nil,3].any?
<eval-in__> avril14th => true (https://eval.in/233133)
<avril14th> hmm
<avril14th> true :)
<waxjar> or none?, if you want them to all be nil
<havenwood> avril14th: none?
* avril14th pets eval-in__
<avril14th> yes none? sounds better
<avril14th> >>[1,nil,3].none?
<eval-in__> avril14th => false (https://eval.in/233135)
<st0mar> mjuszczak: [blah, haorf, ribbit].include?(nil)
<avril14th> also works
Takle has quit [Remote host closed the connection]
<havenwood> avril14th: none? is the opposite of any?
atomical has joined #ruby
<avril14th> [nil,nil,nil].none?
<avril14th> >> [nil,nil,nil].none?
<eval-in__> avril14th => true (https://eval.in/233136)
Hijiri has quit [Ping timeout: 265 seconds]
bears_ has quit [Remote host closed the connection]
sargas has joined #ruby
arup_r has joined #ruby
samuel02 has joined #ruby
<st0mar> original condition (at least one nil) means "include"
djbender has quit [Ping timeout: 244 seconds]
n1ftyn8 has quit [Ping timeout: 258 seconds]
charles81 has quit [Ping timeout: 258 seconds]
vcoinminer has quit [Ping timeout: 260 seconds]
pusewicz has quit [Ping timeout: 260 seconds]
cstrahan_ has quit [Ping timeout: 260 seconds]
mattmcclure has quit [Ping timeout: 258 seconds]
skmp_ has quit [Ping timeout: 258 seconds]
ceej_irccloud has quit [Ping timeout: 258 seconds]
ccal has quit [Ping timeout: 258 seconds]
<st0mar> >> [1,2,nil].any?
<eval-in__> st0mar => true (https://eval.in/233137)
rfv has quit [Ping timeout: 244 seconds]
<st0mar> >> [1,2,3].any?
<eval-in__> st0mar => true (https://eval.in/233138)
huddy has quit [Read error: Connection reset by peer]
jblancett has quit [Ping timeout: 258 seconds]
<st0mar> >> [1,2,nil].include?(nil)
<eval-in__> st0mar => true (https://eval.in/233139)
<st0mar> >> [1,2,3].include?(nil)
<eval-in__> st0mar => false (https://eval.in/233140)
ZucchiniZe has quit [Ping timeout: 258 seconds]
casual_ has quit [Ping timeout: 265 seconds]
ycodr has quit [Remote host closed the connection]
jeregrine has quit [Ping timeout: 272 seconds]
hellschreiber has quit [Ping timeout: 260 seconds]
bjeanes has quit [Ping timeout: 258 seconds]
npgm has quit [Ping timeout: 265 seconds]
ycodr has joined #ruby
roger_rabbit has quit [Quit: WeeChat 0.3.8]
<gregf_> st0mar: [1,2,3].any?(&:nil?) ?
tmoore has quit [Ping timeout: 258 seconds]
maZtah has quit [Ping timeout: 258 seconds]
MiracleBlue has quit [Ping timeout: 258 seconds]
featheryahn has quit [Ping timeout: 258 seconds]
ewilliam has quit [Ping timeout: 272 seconds]
chrisseaton has quit [Ping timeout: 260 seconds]
ta_ has quit [Remote host closed the connection]
bcavileer_ has quit [Ping timeout: 244 seconds]
einarj has quit [Remote host closed the connection]
tiagonobre_ has quit [Ping timeout: 258 seconds]
callenb___ has quit [Ping timeout: 258 seconds]
alol has quit [Ping timeout: 272 seconds]
OliverTynes has quit [Ping timeout: 265 seconds]
apoorvparijat has quit [Read error: No route to host]
arturhoo_ has joined #ruby
arturhoo has quit [Ping timeout: 244 seconds]
arturhoo_ is now known as arturhoo
<avril14th> I think include is better since the loop will stop as soon as a nil is encountered
<avril14th> while none? will have to go to the end of the array
apoorvparijat has joined #ruby
adambeynon_ has quit [Ping timeout: 260 seconds]
rodfersou has joined #ruby
arietis_ has joined #ruby
aspires has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<mjuszczak> hrmph. I think I'm doing this wrong: http://pastebin.com/eC4tSHDv
ta has joined #ruby
dANO__ has joined #ruby
apoorvparijat has quit [Ping timeout: 256 seconds]
xymbol has joined #ruby
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
giuseppesolinas has joined #ruby
<st0mar> where's the "if"
dANO__ has quit [Remote host closed the connection]
<jhass> mjuszczak: %w(databag databag_item ..).all? {|key| node['sshd']['realm'].has_key? key }
msgodf has joined #ruby
<jhass> unless ...
dANO__ has joined #ruby
<mjuszczak> ooooh, thanks!
eighthbit has joined #ruby
dANO has quit [Read error: Connection reset by peer]
<mjuszczak> unfortuantely, 2 of the keys are under node['sssd']['realm'] and two are under ['sssd']['ldap']
plukevdh has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mjuszczak> I can change that though
tier_ has joined #ruby
plukevdh has quit [Client Quit]
<jhass> well, or you do that construct two times
iamninja has joined #ruby
<jhass> or do [['realm', 'databag'], ...].all? {|key, subkey|
plukevdh has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
rpag has joined #ruby
yfeldblum has joined #ruby
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdwrage has joined #ruby
sdwrage has quit [Client Quit]
sdwrage has joined #ruby
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
apeiros_ has quit [Remote host closed the connection]
alex88 has quit []
stunder has quit [Quit: Screw you guys I'm going home]
momomomomo has joined #ruby
<mjuszczak> thanks!
apeiros_ has joined #ruby
deric_skibotn has joined #ruby
tier has quit [Ping timeout: 258 seconds]
beneggett has joined #ruby
ta has quit [Read error: Connection timed out]
ta has joined #ruby
procat has quit [Ping timeout: 252 seconds]
rimantas has quit [Quit: rimantas]
ta has quit [Remote host closed the connection]
<mjuszczak> hrm, looks like [2014-12-10T16:56:46+00:00] ERROR: Data Bag items must have an id matching /^[\.\-[:alnum:]_]+$/, you gave: nil
<mjuszczak> Looks like it's thinking nil is valid for has_key
sdwrage_ has joined #ruby
<mjuszczak> I'm setting them in an attributes file but setting them to nil
<jhass> .has_key? checks for true existence, so if you set it to nil...
yfeldblum has quit [Ping timeout: 255 seconds]
<rpag> >> {foo: nil}.key?(:foo)
<eval-in__> rpag => true (https://eval.in/233146)
sdwrage has quit [Ping timeout: 265 seconds]
druznek has quit [Quit: Leaving]
<jhass> maybe if .any? { ... ].nil? } actually even reads nicer
<mjuszczak> ah
<havenwood> avril14th: none? or all? won't go any further than include?
apeiros_ has quit [Ping timeout: 244 seconds]
mozzarella has quit [Quit: WeeChat 1.0.1]
sambao21 has quit [Quit: Computer has gone to sleep.]
djdarkbeat has quit [Quit: djdarkbeat]
<havenwood> avril14th: when none? finds one, it doesn't keep going :P
lyuben_ has quit [Quit: This computer has gone to sleep]
<avril14th> indeeed
fgo has quit [Ping timeout: 244 seconds]
apoorvparijat has joined #ruby
voodoofish430 has joined #ruby
ghostmoth has joined #ruby
<rpag> such optimizations
Nodeist has joined #ruby
<godd2> wow
spyderma_ has quit [Read error: Connection reset by peer]
livathinos has joined #ruby
<miah> chef users are generally not concerned with optimizations
<miah> :P
spyderman4g63 has joined #ruby
olivier_bK has quit [Ping timeout: 260 seconds]
procat has joined #ruby
<rpag> neither ruby users
<rpag> otherwise why ruby
momomomomo has quit [Ping timeout: 244 seconds]
momomomomo_ has joined #ruby
x1337807x has joined #ruby
<shadeslayer> hi, I was wondering, how do I rescue failed system calls
bmichelsen has quit [Quit: ZZZzzz…]
sigurding has quit [Quit: sigurding]
ixti has quit [Ping timeout: 258 seconds]
<rpag> rescue SystemCallError
giuseppesolinas has quit [Quit: This computer has gone to sleep]
sambao21 has joined #ruby
mozzarella has joined #ruby
<shadeslayer> rpag: http://pastebin.com/T12fNFDd that?
st0mar has quit [Quit: quit]
<shadeslayer> doesn't seem to work
efghi has quit [Ping timeout: 246 seconds]
<rpag> oh
rbennacer has quit [Remote host closed the connection]
<rpag> you could check $?
<rpag> there's no exception raised there
<jhass> shadeslayer: that does give you which exception?
<shadeslayer> jhass: not sure how to figure that out tbh
<jhass> ruby would print it to you
<jhass> >> raise
<rpag> `foo` raises an Errno, and SystemCallError covers that.
<eval-in__> jhass => (RuntimeError) ... (https://eval.in/233148)
<jhass> see, this is a RuntimeError
<mjuszczak> jhass: in your example: if.any?{ ... ].nil? } you have a ']'. Is that not supposed to be there?
<jhass> shadeslayer: or maybe it's time to lookup the docs for Kernel#system and see what its return value is in which case ;)
<shadeslayer> true, looking at that
st0mar has joined #ruby
<jhass> mjuszczak: I left out what we already had
<mjuszczak> I'm pretty confused :(
<jhass> mjuszczak: if [['realm', 'databag'], ...].any? {|key, subkey| node['sssd'][key][subkey].nil? }
<mjuszczak> ooooh, gotcha
giuseppesolinas has joined #ruby
<Nodeist> Ruby is on the verge to beocming performent actaully
ycodr has quit [Remote host closed the connection]
studiotate has quit [Read error: Connection reset by peer]
<Nodeist> Anyways, I need help with this: https://gist.github.com/Ap0ph1s/e87095b406bd538fb89d
ycodr has joined #ruby
<shadeslayer> I keep forgetting that I have ri installed sometimes :/
studiotate has joined #ruby
rbennacer has joined #ruby
livathinos has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
<jhass> Nodeist: I'd just slurp the entire body into a variable for your usecase (and still pass that to a proper parser): body = open(url, &:read)
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has joined #ruby
adriancb has quit [Remote host closed the connection]
BadQuanta has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
rbennacer has quit [Remote host closed the connection]
stunder has joined #ruby
rshetty has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
st0mar has left #ruby ["quit"]
rpag has quit [Quit: Leaving]
pietr0 has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
st0mar has joined #ruby
gsd has joined #ruby
<gregf_> shadeslayer: begin; %x(%q{ls foo.txt 2>&1 > /dev/null}); rescue => e; puts e.type;end;print $?.success? <== what rpag suggested
<gregf_> that somehow works in python :/
<Nodeist> jhass, I tried doing that but it didnt work, would a join.me work for you? since there are more errors that im tired of explaining
JimmyNeutron has quit [Read error: Connection reset by peer]
<gregf_> s/type/message/
<jhass> no it wouldn't
rbennacer has joined #ruby
Timgauthier is now known as timgauthier_away
rbennacer has quit [Remote host closed the connection]
<jhass> "doesn't work" is not a problem description worthy to a programmer
rbennacer has joined #ruby
<jhass> which book/tutorial are you following actually?
adriancb has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sdwrage_ has quit [Quit: This computer has gone to sleep]
<claf> jhass: "doesn't work" is a description for a programmer that uses the problem description "doesn't work"
kinseapo has joined #ruby
<jhass> good, if you like to guess their screencontents go ahead, I won't
<Nodeist> ITs better for me to explain on screen
lmickh has joined #ruby
dumdedum has quit [Quit: foo]
jleishman has quit [Quit: Be back later ...]
<Nodeist> Sorry jhass, if you joined, I had it on pause
<Nodeist> https://join.me/221-787-986 if you need it again
jheg has quit [Quit: jheg]
<Nodeist> or anyone who wants to help
_mtr has joined #ruby
bkolden has joined #ruby
troyready has joined #ruby
<shevy> wtf is this
devoldmx33 has joined #ruby
<Nodeist> is what?
djdarkbeat has joined #ruby
<shevy> go publish (1) code in normal text form and (2) describe what the problem is
sambao21 has quit [Quit: Computer has gone to sleep.]
hamakn has joined #ruby
<centrx> Words powerful
<shevy> I'll be having nightmares now that I clicked on your link man
<havenwood> Nodeler: gist.github.com
Prometheian has joined #ruby
<centrx> Face ugl
anaeem1_ has joined #ruby
<centrx> jk I didn't even click
mikecmpbll has quit [Quit: ciao.]
<shevy> hahaha
<shevy> if I can see centrx live coding
<shevy> I will click on it
pusewicz has joined #ruby
<havenwood> Nodeist: if you want to show text in action: http://showterm.io
michaeldeol has joined #ruby
<havenwood> Nodeist: but text not images or video!
<jhass> crap, spam bot got new IP range
<shevy> video of havenwood dancing lambada is also click worthy
renderful has quit [Remote host closed the connection]
mesamoo has quit [Quit: Konversation terminated!]
fgo has joined #ruby
neoxquick has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
<shevy> it don't load!
<centrx> Does ShevyOS not support animated gifs
jlast has quit [Remote host closed the connection]
vcoinminer has joined #ruby
<jhass> it just doesn't load
<shevy> hey I am still on linux
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jlast has joined #ruby
hamakn has quit [Ping timeout: 260 seconds]
alol has joined #ruby
<waxjar> Nodeist: i told you before, you are not assigning the result of the open call to anything.
bricker`work has joined #ruby
momomomomo_ has quit [Ping timeout: 250 seconds]
<waxjar> open(url).read gets the response body, assign in to a variable :)
jeregrine has joined #ruby
momomomomo has joined #ruby
tiagonobre_ has joined #ruby
<jhass> open().read always hurts my eyes, even though it's harmless for open-uri :P
ripnix has joined #ruby
OliverTynes has joined #ruby
rylev has quit [Remote host closed the connection]
bjeanes has joined #ruby
ripnix has quit [Client Quit]
featheryahn has joined #ruby
huddy has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
bigkevmcd has joined #ruby
arup_r has quit [Quit: Leaving.]
hellschreiber has joined #ruby
shazaum_ has joined #ruby
<Nodeist> Yes, but I want to, waxjar
ptrrr has joined #ruby
rylev has joined #ruby
rismoney1 has quit [Ping timeout: 258 seconds]
adambeynon_ has joined #ruby
<waxjar> Nodeist: ?
arup_r has joined #ruby
Photism has joined #ruby
ChoiKyuSang has quit [Quit: Going offline, see ya! (www.adiirc.com]
Shazaum has quit [Ping timeout: 250 seconds]
<Nodeist> I want to assign the output of main to a variable
<Nodeist> waxjar &
jfran has joined #ruby
<waxjar> the output of main?
vyorkin has joined #ruby
beneggett has joined #ruby
IrishGringo has quit [Ping timeout: 258 seconds]
rylev has quit [Remote host closed the connection]
gr33n7007h has quit [Ping timeout: 256 seconds]
<kke_> anyone got a better alternative than sqlite3 to replace hashes that are too big to comfortably fit in the memory?
beneggett has quit [Client Quit]
mattmcclure has joined #ruby
<waxjar> redis maybe?
ixti has joined #ruby
<Nodeist> waxjar, do you understand what im trying to do?
<eam> mdbm?
<kke_> redis requires a separate daemon
<kke_> and i guess it won't work if you don't have the memory to hold the whole dataset
<kke_> also if you run several generators in parallel, you would need a separate redis or use some namespacing or something
qulo has quit [Read error: Connection reset by peer]
<waxjar> ah i see. i was gonna suggest daybreak, but you'll have the same problem i think
<kke_> let's see what mdbm is
<waxjar> Nodeist: no
gigetoo has quit [Ping timeout: 250 seconds]
roolo has quit [Remote host closed the connection]
last_staff has joined #ruby
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kiyote23 has joined #ruby
apoorvparijat has quit [Remote host closed the connection]
<eam> kke_: you might also be interested in https://github.com/google/leveldb
n1ftyn8 has joined #ruby
<havenwood> mruby even has a leveldb mgem :)
<havenwood> waxjar: daybreak is neato
iamjarvo has joined #ruby
Grumelo has quit [Remote host closed the connection]
vyorkin has quit [Ping timeout: 264 seconds]
<kke_> eam: no ruby mdbm client pops up in quick googling
Macaveli has joined #ruby
Nodeist has quit [Ping timeout: 246 seconds]
<eam> I wrote one, I could dig it up if you want
<kke_> don't bother, sounds too marginal
<eam> not generally used from ruby
<kke_> leveldb might fit in, need to investigate further.
arietis_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
agit0 has joined #ruby
Nodeist has joined #ruby
yfeldblum has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
kiyote23 has quit [Ping timeout: 260 seconds]
<Nodeist> waxjar, Doy uo know the output that the open function creates? yeah, I want to assign that output to a variable names response
IrishGringo has joined #ruby
<kke_> what i really want is something that i could use like db = Tempdb.new('/tmp/db.tmp') db[:stuff][:other_stuff][:foo] << {:bar => 'zoink'}
momomomomo has quit [Quit: momomomomo]
<waxjar> nodeist: well, what is the problem? does response = open(url).read not work?
<kke_> and finish with db.unlink
ceej_irccloud has joined #ruby
<havenwood> kke_: dunno if it fits your use-case but YDBM in the stdlib is an option: http://ruby-doc.org/stdlib-2.1.5/libdoc/yaml/rdoc/YAML/DBM.html
sambao21 has joined #ruby
roger_rabbit has joined #ruby
maZtah has joined #ruby
Areessell has joined #ruby
<kke_> havenwood: that looks a bit promising
<eam> whenever I approach limits of a system (dataset biger than memory) I generally take the opportunity to move to a more suitable language
kaspertidemann has quit []
<eam> the cost for representing structures that large as ruby objects is very high
<havenwood> or increase server budget ;)
<bline79> if I have an array of four values but want to iterate through them 8 times, how could I achieve this ?
<eam> eh, if you're exceeding memory already odds are that won't help much
econerd4ever has joined #ruby
tmoore has joined #ruby
<Nodeist> Okay that worked waxjar, but I tried this: https://gist.github.com/Ap0ph1s/e87095b406bd538fb89d
<eam> computing power doesn't scale linearly
<Nodeist> thanks tho
gr33n7007h has joined #ruby
yfeldblum has quit [Ping timeout: 264 seconds]
arietis_ has joined #ruby
<bline79> nvm *
<bline79> stupid question
s00pcan_ has quit [Quit: Lost terminal]
ZucchiniZe has joined #ruby
goodenough has quit [Remote host closed the connection]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
<gregf_> bline79: 8.times { puts [1,2,3].join("-") }
boombadaroomba has joined #ruby
Val__ has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
vyorkin has joined #ruby
<jhass> waxjar: I can't get you used to open(, &:read) instead? ;)
charles81 has joined #ruby
whoisjake has quit []
<waxjar> what's the benefit?
nclbr has quit [Ping timeout: 250 seconds]
whoisjake has joined #ruby
<kke_> eam: changing language won't help much if you still have too much data to fit into memory comfortably, you still need some sort of disk based system
Val_ has quit [Ping timeout: 264 seconds]
<jhass> for open-url probably none, but for regular calls it makes sure to call .close
xymbol has quit [Ping timeout: 260 seconds]
<waxjar> ah, i see what you mean
xymbol has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
ramfjord has joined #ruby
kylekersey has quit [Quit: leaving]
casual_ has joined #ruby
bcavileer_ has joined #ruby
<kke_> unqlite might be a prime candidate, don't know about the maturity but it would be a nosql variation of sqlite
apeiros_ has joined #ruby
Peterman_ has joined #ruby
callenb___ has joined #ruby
<havenwood> kke_: how bout vedis?: http://vedis.symisc.net
ycodr has quit [Remote host closed the connection]
geggam has quit [Ping timeout: 256 seconds]
djbender has joined #ruby
ycodr has joined #ruby
ixti has quit [Ping timeout: 250 seconds]
<kke_> havenwood: the page is almost identical to unqlite, what up
Peterman_ has quit [Client Quit]
<havenwood> Symisc Systems
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pietr0 has quit [Quit: pietr0]
skmp_ has joined #ruby
rfv has joined #ruby
kaspertidemann has joined #ruby
Flcn has quit [Quit: Be back later ...]
wallerdev has joined #ruby
rodfersou has quit [Ping timeout: 264 seconds]
AxonetBE has joined #ruby
pietr0 has joined #ruby
<kke_> vedis is GPL, unqlite is BSD. vedis is key value, unqlite is document.
sambao21 has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lolmaus has quit [Quit: Konversation terminated!]
ycodr has quit [Ping timeout: 244 seconds]
rj46 has joined #ruby
spyderma_ has joined #ruby
ycodr has joined #ruby
pietr0 has quit [Client Quit]
kamilc__ has joined #ruby
fabrice31 has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
jheg has joined #ruby
<rj46> fresh ruby, gems and jekyll - Liquid Exception: stack level too deep in site.json damnn
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
whoisjake has quit []
<havenwood> nodeist: twitter trying to redirect http to https?
rbennacer has quit [Remote host closed the connection]
mjuszczak has quit []
chrisseaton has joined #ruby
<Nodeist> yes
cstrahan_ has joined #ruby
timonv_ has quit [Remote host closed the connection]
<Nodeist> havenwood
spyderman4g63 has quit [Ping timeout: 264 seconds]
pietr0 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sambao21 has quit [Quit: Computer has gone to sleep.]
MiracleBlue has joined #ruby
pu22l3r_ has joined #ruby
tvw has quit []
ewilliam has joined #ruby
mjuszczak has joined #ruby
beneggett has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
npgm has joined #ruby
workmad3 has quit [Ping timeout: 244 seconds]
xymbol has quit [Quit: Be back later ...]
noop has joined #ruby
Azulinho has quit [Quit: Leaving]
JohnBat26 has quit [Ping timeout: 244 seconds]
pu22l3r has quit [Ping timeout: 264 seconds]
chrisja has joined #ruby
xymbol has joined #ruby
Nodeist has quit [Ping timeout: 246 seconds]
pu22l3r_ has quit [Ping timeout: 244 seconds]
last_staff has quit [Quit: last_staff]
michaeldeol has joined #ruby
<havenwood> nodei, oh - gone or name change?
beneggett has quit [Client Quit]
louism2wash has joined #ruby
Stichoza has joined #ruby
<jheg> following on from the OO chat earlier I’ve written a little post doing my best to explain objects
existensil has joined #ruby
pauly_oc has joined #ruby
m8 has joined #ruby
<jheg> If anyone could give it the quickest of once overs and check im on the right lines i’d be really gratefull
_beechnut has joined #ruby
Hobogrammer has joined #ruby
gr33n7007h has quit [Ping timeout: 272 seconds]
reset has joined #ruby
goodenough has joined #ruby
<havenwood> jheg: not done reading yet, but a few trivial grammar nits. change `created me and my girlfiend` to `created myself and my girlfriend` and `God like` to `godlike`.
hgl has quit [Ping timeout: 250 seconds]
<havenwood> `check the worlds` to `check the world's`
JimmyNeutron has joined #ruby
<jheg> cool good stuff that’s great havenwood
<jheg> my grammer could be better
<sargas> what is PP::ObjectMixin in my class#ancestors?
<havenwood> `Lets move on` to `Let's move on`
<havenwood> jheg: `in this case its` to `in this case it's`
ChoiKyuSang has joined #ruby
<havenwood> `As the worlds` to `As the world's`
AlSquirrel has quit [Quit: This computer has gone to sleep]
<havenwood> `each persons` `each person's`
arietis_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood> `what a person. Without the Perosn` to `what a person is. Without the Person`
reset has quit [Quit: Leaving...]
jheg has quit [Read error: Connection reset by peer]
jheg has joined #ruby
<havenwood> now super-micro nits >.>, `rear facing` to `rear-facing`, okay that's all for pedantic grammar nits :)
<jheg> sorry got disconnected from 6:25 ‘in this case it’s’
sailias has quit [Quit: Leaving.]
sailias has joined #ruby
beneggett has joined #ruby
ccal has joined #ruby
Macaveli has quit [Read error: No route to host]
braincra- has joined #ruby
hgl has joined #ruby
sargas has quit [Ping timeout: 260 seconds]
pu22l3r has joined #ruby
braincrash has quit [Ping timeout: 250 seconds]
nobitanobi has joined #ruby
jblancett has joined #ruby
<jheg> thanks for the proof read havenwood will amend all :)
<havenwood> jheg: no prob
sailias has quit [Client Quit]
unclouded has quit [Ping timeout: 244 seconds]
sailias has joined #ruby
nobitanobi has quit [Remote host closed the connection]
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
gr33n7007h has joined #ruby
nobitanobi has joined #ruby
chrishough has joined #ruby
Stichoza has quit [Quit: Lingo: www.lingoirc.com]
klmlfl has quit [Remote host closed the connection]
gr33n7007h has quit [Changing host]
gr33n7007h has joined #ruby
Fezzler has joined #ruby
nobitanobi has quit [Client Quit]
jlast has joined #ruby
misv has joined #ruby
pengin has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jheg has quit [Read error: Connection reset by peer]
jheg has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
misv has left #ruby [#ruby]
sargas has joined #ruby
dc_ has joined #ruby
<sargas> what is PP::ObjectMixin in my class#ancestors?
ghr has joined #ruby
CustosL1men has joined #ruby
<havenwood> sargas: pretty print, in Pry?
<havenwood> sargas: you'll probably see it's not there in irb.
dopie has quit [Remote host closed the connection]
<havenwood> sargas: for pretty printing.
patrick99e99 has joined #ruby
nclbr has joined #ruby
<sargas> havenwood: oh... so pry inserts it in the ancestors chain..
dc has quit [Ping timeout: 258 seconds]
nclbr has quit [Client Quit]
einarj has joined #ruby
Flcn has joined #ruby
ghr has quit [Ping timeout: 240 seconds]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sargas> havenwood: how do I get a more detailed ancestry chain that includes modules?
IrishGringo has quit [Ping timeout: 272 seconds]
<apeiros_> .ancestors gives the whole ancestry
<apeiros_> not just included modules
dkphenom has joined #ruby
yfeldblum has joined #ruby
Takle has joined #ruby
Fezzler has quit [Quit: Leaving]
mozzarella has quit [Remote host closed the connection]
dopie has joined #ruby
dfinninger has quit [Remote host closed the connection]
lostcat is now known as foundcat
dANO__ has quit []
lolmaus has joined #ruby
rodfersou has joined #ruby
arietis_ has joined #ruby
whoisjake has joined #ruby
IrishGringo has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
yfeldblum has quit [Ping timeout: 245 seconds]
beneggett has joined #ruby
naftilos76 has joined #ruby
einarj has quit [Remote host closed the connection]
ta has joined #ruby
lolmaus_ has joined #ruby
naftilos76 has quit [Remote host closed the connection]
geggam has joined #ruby
Vile` has quit [Quit: .]
<sargas> apeiros_: shouldn't Module be listed in the chain?
<apeiros_> if it's an ancestor, it will be.
<apeiros_> if it isn't listed, it's not an ancestor.
Freelusion has joined #ruby
rylev has joined #ruby
sdwrage has joined #ruby
mozzarella has joined #ruby
<apeiros_> if you say "the chain", which chain is "the" chain?
lolmaus has quit [Ping timeout: 240 seconds]
<sargas> apeiros_: so MyClass.ancestors and MyClass.class.ancestors are very different
<apeiros_> of course
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros_> why should they be the same?
ta has quit [Ping timeout: 264 seconds]
kirun has joined #ruby
lolmaus__ has joined #ruby
<apeiros_> I think the only case where they are the same is for Class. since Class.class == Class.
<sargas> apeiros_: true, I thought that because MyClass.class == Class as well, the ancestors chain would be more similar
it0a has joined #ruby
yetanotherdave has joined #ruby
<sargas> but MyClass.superclass != Class.superclass
einarj has joined #ruby
<apeiros_> sargas: don't confuse instantiation with subclassing
tvw has joined #ruby
<apeiros_> in `class MyClass`, MyClass is an *instance* of Class. it does not subclass Class.
lolmaus_ has quit [Ping timeout: 240 seconds]
mastro has joined #ruby
rylev has quit [Ping timeout: 244 seconds]
<apeiros_> same for `module MyModule`. MyModule is an instance of Module, not a subclass.
beneggett has joined #ruby
Vile` has joined #ruby
beneggett has quit [Client Quit]
<sargas> apeiros_: I think that this is what is happening, so Class#class returns the type the receiver is instance of
reset has joined #ruby
lolmaus has joined #ruby
beneggett has joined #ruby
beneggett has quit [Client Quit]
<apeiros_> yes. usually this holds true: SomeClass.new.class == SomeClass
pauly_oc has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros_> I say "usually" because `new` is just a method and can be defined to do whatever.
jheg has quit [Quit: jheg]
dseitz has joined #ruby
sarmiena_ has joined #ruby
eighthbit has joined #ruby
jleishman has joined #ruby
<sargas> apeiros_: got it
lolmaus__ has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 265 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
ylluminate has joined #ruby
rbennacer has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
rbennacer has quit [Remote host closed the connection]
tier has joined #ruby
tier_ has quit [Ping timeout: 250 seconds]
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
apoorvparijat has joined #ruby
<kl> hey guys
<kl> I've noticed I've started using Structs where I used to use hashes before
<kl> Is that a bad thing potentially....?
jheg has joined #ruby
ptrrr has quit [Quit: ptrrr]
<apeiros_> kl: what are potential up- and what potential downsides of you using structs?
umadbor has joined #ruby
<kl> apeiros_: up is that it guarantees when I receive it in the client I pass it to that the intended fields were assigned (due to it using a constructor rather than keys)
rbennacer has joined #ruby
dfinninger has joined #ruby
wald0 has quit [Quit: Lost terminal]
<kl> apeiros_: actually, that doesn't apply - because Ruby is a duck-typed language and doesn't even know what it's receiving, really.
rbennacer has quit [Remote host closed the connection]
<havenwood> String#lchomp \o/ https://bugs.ruby-lang.org/issues/10574
<kl> apeiros_: downside I see, is I'm pretty much creating a few new files just to hold a simple struct
<apeiros_> duck-typed is actually more what you do with the typing system. not a property of the type system itself.
rbennacer has joined #ruby
TerjeLarsen has joined #ruby
timonv_ has joined #ruby
hephaestus_rg has joined #ruby
<kl> apeiros_: ok, well there basically *isn't* a type system, so the properties I mentioned can't really be held
rdark has quit [Quit: leaving]
<kl> upheld*
umadbor has quit [Read error: Connection reset by peer]
GeorgesLeYeti has quit [Quit: Leaving]
<apeiros_> I don't think that's correct.
<apeiros_> if you actually did write a proper constructor, then yes, you can be reasonably sure the relevant fields are correctly set.
JBreit has quit [Ping timeout: 250 seconds]
<apeiros_> that's completely unrelated to ruby not having static typing
kinseapo has quit [K-Lined]
Gay-champion has joined #ruby
<Gay-champion> anyone here is a programmer unity 3d? à0
<kl> apeiros_: yes, but what I mean is - the client doesn't know which constructor was invoked. All it knows is that it has an object that responds to X methods.
<apeiros_> Gay-champion: Hanmac might have
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MrIlyas_ has quit [Quit: Leaving]
<Hanmac> i worked with other stuff before but not with unity3d
<havenwood> Gay-champion: unity3d supports Ruby scripting? neato
eighthbit has joined #ruby
<Gay-champion> and you are a programmer Hanmac ?
<Hanmac> Gay-champion: yes but i never used unity3d
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros_> kl: ok. lets go a step back then. why did you start using structs?
tristanp has quit [Remote host closed the connection]
<Gay-champion> but I want a programmer unity 3d
beef-wellington has quit [Ping timeout: 264 seconds]
<sargas> apeiros_: so Class.superclass == Module, Ruby has a Module class, but instances of Class include Module, not inherit from it, correct?
theotherstupidgu has joined #ruby
<apeiros_> sargas: not sure I follow. Module#include (which is the method you call when you do `class Foo; include Bar; end`) adds a module to the receiver's ancestry.
<sargas> Gay-champion: Last time I checked, Unity3D supports C#, UnityScript, and Boo scripting
<apeiros_> >> module Bar; end; class Foo; include Bar; end; Foo.ancestors
<eval-in__> apeiros_ => [Foo, Bar, Object, Kernel, BasicObject] (https://eval.in/233208)
<apeiros_> include/extend are forms of inheritance.
geggam has quit [Ping timeout: 240 seconds]
<Hanmac> sargas: Class.superclass == Module means that each class is also a module (except for include/extend)
sinkensabe has joined #ruby
<arup_r> Why there is no such protected_constant, but other 2 exist ?
<kl> apeiros_: to group together related values
<Gay-champion> But I think that is not the same thing
<sargas> Hanmac: this is a little confusing at first... I'll study that some more
fgo has quit [Ping timeout: 272 seconds]
<apeiros_> kl: interesting. in what way does Struct help you grouping values? o0
pauly_oc has joined #ruby
<kl> apeiros_: which a hash would do, but I wanted that security of knowing it will have been set all the values. But these aren't guaranteed things in Ruby as you don't specify parameter types
sinkensabe has quit [Remote host closed the connection]
frem_ has joined #ruby
theotherstupidgu has quit [Remote host closed the connection]
<kl> apeiros_: it creates a constructor taking values and provides attr_accessors for each of them, and you can pass that one object around..
lolmaus has joined #ruby
<apeiros_> ok. using a hash you'd lose the accessors.
<apeiros_> the other two properties apply to a hash too
<kl> apeiros_: you can't be sure in the client that anything was set - but you can't do that for a struct anyway as you can't guarantee the object passed WAS an instance of that struct
<apeiros_> kl: you do sound a bit paranoid :)
<kl> apeiros_: in a statically typed language, I think what I was doing would've been a good idea over a hash
<kl> apeiros_: I recently got infected at a Scala conference, I blame that
<apeiros_> kl: you can always manually verify
<apeiros_> def foo(x); raise ArgumentError unless x.is_a? XStruct
<apeiros_> and you can always define a constructor which in turn verifies all fields are set
<apeiros_> whether doing so is a good idea is a different question altogether
last_staff has joined #ruby
<kl> apeiros_: yeaaah but we both know that sucks :)
timonv_ has quit [Ping timeout: 240 seconds]
jheg has quit [Quit: jheg]
<kl> apeiros_: I was just being a statically-typed-infected fool :)
Freelusion has quit [Quit: Freelusion]
freerobby has quit [Quit: Leaving.]
sigurding has joined #ruby
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros_> in my personal experience, I'd say types would not have saved me from the majority of bugs I experienced. and/or they'd have introduced a lot more headache than the bugs themselves.
mastro has quit [Quit: Ex-Chat]
freerobby has joined #ruby
<apeiros_> I do like structs.
<apeiros_> I like structs because they're explorable, self documenting, fast, versatile.
<apeiros_> when I've got a Hash, I can only see what it has, not what it could have. documenting an arbitrary hash is difficult. a struct (having a class definition) can easily have a documentation.
<apeiros_> so IMO go ahead, use structs. they're good.
kenneth has joined #ruby
<kl> apeiros_: unfortunately I think my colleagues will disagree
<apeiros_> so?
<apeiros_> you've got two options: accept their disagreement and do as they want, or debate.
<kl> apeiros_: I'm already totally the picky one when it comes to code. I'd rather spend my picky credits on things I feel more passionate about
<apeiros_> personally I'd love to see the rationale against what I said above.
sargas has quit [Quit: This computer has gone to sleep]
<apeiros_> and if it is "but we will have additional files", all I could do is laugh. because that's a ridiculous reason against it.
sargas has joined #ruby
<kl> apeiros_: the data structure will only be created in one place in the application; so a one-off hash isn't such a bad thing, perhaps
<havenwood> apeiros_: i have yearned for types with code like RubyGems' where i can't ever figure out what custom class parameter is expected. just having to go search for what's calling it to figure out what it expects is a pain. other code i don't miss or want types. hmm.
<sargas> if Class is also a Module... Class.superclass == Module... why doesn't MyClass have Module in the ancestors chain when it is an instance of Class?
agit0 has quit [Quit: This computer has gone to sleep]
<apeiros_> havenwood: types as a way of forced documentation? ok.
beef-wellington has joined #ruby
rpag has joined #ruby
<havenwood> apeiros_: basically
<apeiros_> sargas: again, because MyClass is NOT a subclass of Class.
<sargas> sorry for asking that again btw... I'm trying to understand Ruby's classes, if you know a good resource for me to read, let me know
codezomb has joined #ruby
<apeiros_> sargas: you're still confusing instantiation and inheritance. those are two different axes.
<kl> apeiros_: I do like your rationale
<waxjar> i would like "types" in the way that you can say "must respond to methods x, y and z"
<kl> It's definitely better.
jheg has joined #ruby
<waxjar> i like my duck-typing
<apeiros_> havenwood: I've seen the effects of such. it's: def ([Object]foo, [Object]bar, …)
renderful has joined #ruby
<apeiros_> the other effect I've seen is (especially after having used ruby) overly restrictive types
<kl> apeiros_: actually I do have a counter-question,
<kl> apeiros_: when should a Hash be used, instead of a Struct?
eichenwald has joined #ruby
<apeiros_> so color me doubtful about that. but I admit that the amount of using typed languages on my part probably disqualifies me.
<apeiros_> kl: a) your keys are not symbols/strings, b) your set of keys is not closed
last_staff has quit [Quit: up again in less than X hoursszzssZZZzzzZzz....]
<waxjar> a hash any time you need to associate keys with a value, a struct for "value object" type objects?
ton31337 has joined #ruby
<waxjar> *with values
<apeiros_> and potentially c) your set of keys is very large and all or most keys are optional
<kl> apeiros_: wow. That means Structs should almost always be used, in many of my cases
<apeiros_> that said - for one-off value passing I often use hashes too. not because I consider them superior but because I'm too lazy. with ruby's keyword arguments, this will probably even increase.
<kl> but keyword args suck balls
<apeiros_> I like the clarity. even with only one or two args. it helps making code even more self-documenting.
klmlfl has joined #ruby
DLander has joined #ruby
<ton31337> starting unicorn I'm getting
<ton31337> master failed to start, check stderr log for details
<apeiros_> and as of 2.2, the performance penalty is minuscule too.
<kl> apeiros_: method_name(param1: param1, param2: param2) # do you not find this often
sargas has quit [Quit: This computer has gone to sleep]
<kl> apeiros_: when you name your variable the same name as the param
<havenwood> ton31337: what does stderr say or you can't find it?
<kl> which is common if you use good names
<apeiros_> kl: ask me again in a year :)
renderful has quit [Ping timeout: 258 seconds]
<kl> apeiros_: why's that? (Not used keyword args much?)
<apeiros_> correct
ghr has joined #ruby
<kl> apeiros_: I found it a common theme pretty much from the get-go
<apeiros_> had to work with 1.9 at work, so I restricted my use of 2.0+ features.
<havenwood> ton31337: run it not in daemon mode so you can see stderr, or check your config to see where the logs are going (or set up logging in your config).
<kl> apeiros_: but just from the example and the reasoning, you can surely imagine it a very common occurrence
<apeiros_> kl: yes, I can imagine
<ton31337> havenwood: no idea, how to debug this.. specifying -d -w gives nothing more..
<apeiros_> but lacking experience with it, I prefer not to argue about it
DLander has quit [Client Quit]
apoorvpa_ has joined #ruby
<kl> apeiros_: that's fair. Thanks for the chat anyway, and the advice - catch you later
<jheg> thanks havenwood btw did it seem to make sense as a post? I understand it OK would you say?
<apeiros_> you're welcome
sigurding has quit [Quit: sigurding]
agit0 has joined #ruby
pengin has quit []
<havenwood> apeiros_: maybe it is just documentation i want
<ton31337> havenwood: how it's related with my problem? I see here is capistrano-maintenance
dc_ has quit [Remote host closed the connection]
apoorvparijat has quit [Ping timeout: 250 seconds]
<apeiros_> havenwood: maybe. I could understand both desires.
bayed has quit [Quit: Connection closed for inactivity]
<havenwood> ton31337: i'm actually not a capistrano user even, mina is more my style. i'm probably not the best person to help. but it seemed the suggested solutions would be applicable likely. maybe i'm wrong.
bears has joined #ruby
apoorvparijat has joined #ruby
droidburgundy has quit [Read error: Connection reset by peer]
<havenwood> ton31337: bundle exec
<havenwood> with rake in the Gemfile
ghr has quit [Ping timeout: 260 seconds]
Mothore has quit [Quit: Be back later ...]
apoorvpa_ has quit [Read error: No route to host]
apoorvparijat has quit [Read error: No route to host]
dc has joined #ruby
apoorvparijat has joined #ruby
kl has quit [Ping timeout: 252 seconds]
pu22l3r has quit [Ping timeout: 244 seconds]
Pupeno has quit [Remote host closed the connection]
mg^ has joined #ruby
tier has quit [Remote host closed the connection]
Gay-champion has quit []
shazaum_ has quit [Quit: This computer has gone to sleep]
frem_ is now known as frem
tristanp has joined #ruby
eighthbit has joined #ruby
^mg^ has quit [Ping timeout: 258 seconds]
fgo has joined #ruby
<havenwood> jheg: i'll take a closer look at the code, give me a min
msull92 has joined #ruby
dts|pokeball has quit [Quit: Leaving]
dts|pokeball has joined #ruby
sinkensabe has joined #ruby
russt has quit [Quit: russt]
<havenwood> jheg: i have mixed feelings about showing class variables. it's interesting. on the other hand if the target audience is new Rubyists i'd avoid it like the plague as a distraction that more often leads to anti-patterns than good practice.
wjimenez5271 has quit [Remote host closed the connection]
naftilos76 has joined #ruby
<havenwood> jheg: odd your syntax highlighter lit `name` parameter in blue
apoorvpa_ has joined #ruby
rodfersou has quit [Ping timeout: 256 seconds]
<havenwood> jheg: i'd just `person` or `other_person` instead of `person2`
natano has joined #ruby
olekenneth has quit [Ping timeout: 256 seconds]
tristanp has quit [Ping timeout: 245 seconds]
anaeem1_ has quit [Remote host closed the connection]
apoorvparijat has quit [Ping timeout: 245 seconds]
arietis_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tier has joined #ruby
rbennacer has quit [Remote host closed the connection]
bears has quit [Remote host closed the connection]
timonv_ has joined #ruby
<havenwood> jheg: i think you might want to explain attr_accessor? that might stand out. what's your target audience or just general?
timonv_ has quit [Remote host closed the connection]
rbennacer has joined #ruby
tercenya has joined #ruby
olekenneth has joined #ruby
rbennacer has quit [Remote host closed the connection]
rbennacer has joined #ruby
anaeem1_ has joined #ruby
<waxjar> hmm, what's the easiest way to split a String into multiple parts of length n?
<shevy> regex via .split(/.{n}/) or something like that
<havenwood> jheg: though ignore my class variable distaste, you have a nice example of how instance/class variables/methods can be used :)
fabrice31 has joined #ruby
<shevy> no don't ignore it jheg!
<shevy> class variables stink!!!
<shevy> but meta variables are the @@@worst
wjimenez5271 has joined #ruby
<shevy> I should propose them to ruby core
<waxjar> shevy: hmm, really? don't like :p
<havenwood> shevy: they rely on the Maybe monad
baweaver has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
<shevy> waxjar well, when do you really need a class variable?
noop has quit [Ping timeout: 264 seconds]
<waxjar> shevy: i meant the string splitting :p
<shevy> oh that
<shevy> perhaps .chunks or .bytes or .chars or or .slice or something
<havenwood> >> n = 3; 'multiple parts of length n'.scan /../
<eval-in__> havenwood => ["mu", "lt", "ip", "le", " p", "ar", "ts", " o", "f ", "le", "ng", "th", " n"] (https://eval.in/233224)
<havenwood> >> n = 3; 'multiple parts of length n'.each_char.each_slice(n).map &:join
<eval-in__> havenwood => ["mul", "tip", "le ", "par", "ts ", "of ", "len", "gth", " n"] (https://eval.in/233225)
sargas has joined #ruby
<shevy> he don't like regex!
dts|pokeball has quit [Quit: Leaving]
<shevy> this is programming with handicap :)
dts|pokeball has joined #ruby
<havenwood> oh, i didn't do the n in first example oopps
mleone has quit [Ping timeout: 265 seconds]
<havenwood> >> n = 3; 'multiple parts of length n'.scan /.{3}/
<eval-in__> havenwood => ["mul", "tip", "le ", "par", "ts ", "of ", "len", "gth"] (https://eval.in/233226)
natano has left #ruby [#ruby]
<havenwood> gah, again
fabrice31 has quit [Ping timeout: 264 seconds]
<havenwood> >> n = 3; 'multiple parts of length n'.scan /.{#{n}}/
<eval-in__> havenwood => ["mul", "tip", "le ", "par", "ts ", "of ", "len", "gth"] (https://eval.in/233227)
<havenwood> finally >.>
* havenwood goes in search of more coffee
Hijiri has joined #ruby
<godd2> "This summer; havenwood is sleepy, and there's only one substance in the world that can change that. But coffee is illegal. What will he do?? Be prepared for Havenwood: The Search of More Coffee"
mozzarella has quit [Quit: WeeChat 1.0.1]
BadQuanta has quit [Quit: Leaving.]
Kricir has quit [Remote host closed the connection]
Daniel__^_^ has quit [Remote host closed the connection]
ob has quit [Max SendQ exceeded]
bahar has quit [Ping timeout: 244 seconds]
sargas has quit [Quit: This computer has gone to sleep]
ob has joined #ruby
duncannz has joined #ruby
russt has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
bahar has joined #ruby
anaeem1 has joined #ruby
Mothore has joined #ruby
DLSteve has joined #ruby
<shevy> lol
<shevy> what is this ... poetry with havenwood
freerobby has quit [Quit: Leaving.]
msull92 has left #ruby ["(null)"]
akaiiro has joined #ruby
<godd2> It was supposed to be like a movie trailer thing
bears_ has joined #ruby
tgandrews has joined #ruby
rshetty has joined #ruby
mozzarella has joined #ruby
kiyote23 has joined #ruby
echevemaster has joined #ruby
goodenough has quit [Remote host closed the connection]
JBreit has joined #ruby
kaspertidemann has quit []
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkday has joined #ruby
bears_ has quit [Remote host closed the connection]
ldnunes has quit [Quit: Leaving]
kaspertidemann has joined #ruby
plukevdh has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pu22l3r has joined #ruby
Tranquility has joined #ruby
StevenNunez has joined #ruby
<xybre> godd2: Don't worry, I got the joke at least
rshetty has quit [Ping timeout: 265 seconds]
sigurding has joined #ruby
wallerdev has quit [Quit: wallerdev]
bears_ has joined #ruby
Xeago has joined #ruby
AlbertoCG has quit [Ping timeout: 244 seconds]
StevenNunez has quit [Remote host closed the connection]
charliesome has joined #ruby
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ixti has joined #ruby
mg^^ has joined #ruby
sigurding has quit [Client Quit]
mg^ has quit [Ping timeout: 272 seconds]
baweaver has quit [Remote host closed the connection]
nfk has quit [Quit: yawn]
arup_r has quit [Quit: Leaving.]
bears_ has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
charliesome has quit [Client Quit]
nfk has joined #ruby
eighthbit has joined #ruby
ohaibbq has joined #ruby
Pyrexkable has quit [Ping timeout: 264 seconds]
tristanp has joined #ruby
StephenA1 has joined #ruby
tier has quit [Remote host closed the connection]
revoohc has joined #ruby
unclouded has joined #ruby
Vile` has quit [Ping timeout: 256 seconds]
baweaver has joined #ruby
CorySimmons has joined #ruby
einarj has quit [Remote host closed the connection]
<CorySimmons> New to programming/Ruby. Anyone know of a place where I could find some real-world exercises to practice with?
<j2p2> you could try codewars.com
<j2p2> codingame.com is neat too
xymbol_ has joined #ruby
Spami has joined #ruby
pietr0_ has joined #ruby
pietr0 has quit [Ping timeout: 264 seconds]
pietr0_ is now known as pietr0
xymbol has quit [Ping timeout: 250 seconds]
<CorySimmons> j2p2: Thanks, these are perfect
tristanp has quit [Remote host closed the connection]
<j2p2> np!
Spami has quit [Read error: Connection reset by peer]
pietr0 has quit [Remote host closed the connection]
Spami has joined #ruby
jlast has joined #ruby
adriancb has joined #ruby
lw has quit [Quit: b]
rbennacer has quit [Remote host closed the connection]
sk87 has joined #ruby
kish is now known as kish^
ta has joined #ruby
kish^ is now known as kish
boombadaroomba has quit [Remote host closed the connection]
sk87 has quit [Client Quit]
ninjazach has joined #ruby
iamjarvo has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
JohnBat26 has joined #ruby
StephenA1 has quit [Quit: StephenA1]
JohnBat26 has quit [Client Quit]
JohnBat26 has joined #ruby
iamjarvo has quit [Client Quit]
apoorvpa_ has quit [Remote host closed the connection]
Phagus has joined #ruby
ta has quit [Ping timeout: 260 seconds]
rkday has quit [Ping timeout: 245 seconds]
<shevy> dumdedum
fgo has quit [Ping timeout: 250 seconds]
haylon has joined #ruby
elaptics is now known as elaptics`away
Kricir has joined #ruby
decoponio has quit [Quit: Leaving...]
livathin_ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
chrishough has joined #ruby
jshultz has joined #ruby
Notte has joined #ruby
postmodern has joined #ruby
charliesome has joined #ruby
rbennacer has joined #ruby
rbennacer has quit [Remote host closed the connection]
axelddd has joined #ruby
axelddd has quit [Read error: Connection reset by peer]
rbennacer has joined #ruby
Xeago has quit [Remote host closed the connection]
echooo has quit [Read error: Connection reset by peer]
rjc_ has quit [Quit: Konversation terminated!]
echooo has joined #ruby
timonv_ has joined #ruby
spyderman4g63 has joined #ruby
jleishman has quit [Quit: Be back later ...]
vyorkin has quit [Ping timeout: 240 seconds]
galeido has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spyderma_ has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
spyderma_ has joined #ruby
pu22l3r_ has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
n1lo has quit [Quit: Leaving]
sinkensabe has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Freelusion has joined #ruby
livathin_ has quit []
boombadaroomba has joined #ruby
spyderman4g63 has quit [Ping timeout: 252 seconds]
Freelusion has quit [Client Quit]
bears has joined #ruby
yfeldblum has joined #ruby
tristanp has joined #ruby
pu22l3r has quit [Ping timeout: 255 seconds]
naftilos76 has quit [Remote host closed the connection]
CorySimmons has quit [Quit: Zzz...]
ninjazach has quit [Quit: I've closed my mobile client.]
<pontiki> CorySimmons: also try exercism.io
cpruitt has joined #ruby
phutchin1 has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
pu22l3r_ has quit [Ping timeout: 264 seconds]
straydogstudio has quit [Quit: Leaving]
gwn has joined #ruby
jordsmi has joined #ruby
jheg has joined #ruby
gwn has quit [Quit: leaving]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<jheg> Cheers for the feedback havenwood - all noted
<jheg> target audience I guess would be entry level like myself
mjuszczak has quit []
<jheg> but for now it’s more a tool for me to cement my understanding of the language
ninjazach has joined #ruby
goodenough has joined #ruby
geggam has joined #ruby
<jheg> shevy: you really think class methods should be avoided … all the time?
bears has quit [Remote host closed the connection]
gwn has joined #ruby
<Areessell> I think he said class variables
Guest70651 is now known as tekacs
KnownSyntax has quit [Quit: Connection closed for inactivity]
Phagus has quit [Quit: leaving]
pu22l3r has joined #ruby
Xeago has quit [Remote host closed the connection]
<jheg> ah yeah thanks Areessell you are right
<shevy> jheg I think if you need a counter that keeps track of your classes then perhaps you need it but otherwise I am unsure why you would need a class variable
<electrical> Hi all. When using bundler 1.7.9 i've seen a weird issue happening that a development dep is set in the lockfile while we run bundler with the --without development option ( using the Bundler::CLI.start api )
<jheg> aye that was the only example I could think of
<shevy> class Duck; @@total_ducklings = 0; def initialize; @@total_ducklings += 1; end; end
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
<shevy> I've seen another example with a togglable flag
<jhass> electrical: maybe it's pulled in by a non development dep?
mjuszczak has joined #ruby
bmoyles0117 has joined #ruby
<jhass> see bundle help viz iirc
<electrical> jhass: when i remove it from our own gemspec, it doesn't show up in the lockfile
<jhass> oh
<shevy> jheg but I once hit a bug that was because I used class variables and it was hard to track. When I saw the bug and fixed it, I had to ask myself why I was even using a @@class var in the first place. When I couldn't give a good answer to that (because I did not need it, I just used it because it was available and I read it in the pickaxe), I stopped using them
<electrical> that's why its so weird :-)
<jhass> yeah, I don't think (and I wouldn't expect) them to be added to the development group
Takle has quit [Remote host closed the connection]
<jhass> you have to do that explicitly in the Gemfile
havenwood has quit [Ping timeout: 250 seconds]
devyn has quit [Quit: Lost terminal]
Jackneill has joined #ruby
devyn has joined #ruby
<electrical> jhass: that would be add_development_dependency right? that's how we've set it
<electrical> sorry wrong part
<electrical> let me double check
<jheg> yeah i guess its the same for me being new - i learn about something i end up looking for reasons TO use it rather than WHY
<shevy> yeah
jimmyy has joined #ruby
<electrical> jhass: sorry i was right. we call the gemspec in our Gemfile
jimmyy has quit [Max SendQ exceeded]
<electrical> so we have a add_development_dependency
<jhass> yes
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mloveless has joined #ruby
Shazaum has joined #ruby
<shevy> jheg in such things it is always best to keep on using stuff and try to see whether they work or not. For instance, some people love procs, lambdas and the -> - I never found out why
<jhass> that that would be parsed by bundler to be automatically added to the development group would be news to me
<electrical> jhass: so when i've got that in our gemspec it does show up in the lockfile but not installed
patrick99e99 has joined #ruby
<jhass> after all group names are pure convention
<electrical> jhass: hmm okay
Calmoto has joined #ruby
michaeldeol has joined #ruby
fgo has joined #ruby
<jheg> i guess i’ll find the tools that work for me in the fullness of time
AxonetBE has quit [Quit: AxonetBE]
<shevy> :)
<pontiki> or you'll find out how to use the tools and make them work for you :D
freerobby has joined #ruby
kenneth has joined #ruby
<electrical> seems its still broken
vjt has joined #ruby
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tejas-manohar has joined #ruby
eighthbit has joined #ruby
x1337807x has joined #ruby
wink_ndge has quit [Remote host closed the connection]
wink_ndge has joined #ruby
jenrzzz has joined #ruby
timonv_ has quit [Remote host closed the connection]
bradland has joined #ruby
bradland has left #ruby [#ruby]
wallerdev has joined #ruby
anaeem1 has quit [Quit: Leaving...]
anaeem1_ has joined #ruby
Megtastique has joined #ruby
kl has joined #ruby
louism2wash has joined #ruby
bradland has joined #ruby
tier has joined #ruby
Pupeno has joined #ruby
IrishGringo has quit [Ping timeout: 258 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
atmosx has joined #ruby
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx> hello
Takle has joined #ruby
mjuszczak has quit []
<jheg> o/
tristanp has quit [Remote host closed the connection]
whoisjake has quit []
tristanp has joined #ruby
jlast has joined #ruby
Takle has quit [Remote host closed the connection]
tgandrews has quit [Quit: This computer has gone to sleep]
Kricir has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
Kricir has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
m8 has quit [Quit: Sto andando via]
Notte has quit []
eighthbit has joined #ruby
reinaldob has quit [Read error: Connection reset by peer]
anaeem1_ has quit [Read error: Connection reset by peer]
tristanp has quit [Remote host closed the connection]
<shevy> yo atmosx
<atmosx> hey shevy
<atmosx> whats up
<shevy> not much!
<shevy> you have any new year's promises?
<shevy> like a todo list
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
reinaldob has joined #ruby
rkday has joined #ruby
<atmosx> you mean from last year?
<atmosx> the only promise was to finish with my exams, I did that :-P
<shevy> atmosx I mean like big plans for the next year
<shevy> mine is to learn C - and rails \o/
claymore has joined #ruby
<Mon_Ouie> I thought you hated Rails with passion?
<wallerdev> i want to make a new website in 2015
<wallerdev> something cool
Mothore has quit [Quit: Be back later ...]
<centrx> Rails is cool
roolo has joined #ruby
<wallerdev> rails already has a website
ta has joined #ruby
<banisterfiend> Mon_Ouie 'alut, where have u been recently, cornered by the world in some bolt-hole ?
Mothore has joined #ruby
codecop has quit [Remote host closed the connection]
<Mon_Ouie> Internet issues during the week (and the university network blocks many ports, including IRC). Should be fixed from now on though :)
<Mon_Ouie> Though the exam period is starting in a couple of weeks already
<atmosx> shevy: Javascript and rails
<shevy> ewwww
<atmosx> shevy: also review math, and maybe 2 years from now pursue an MSCS
<dts|pokeball> 2
<shevy> Mon_Ouie yeah I hate rails
<dts|pokeball> 4
LudicrousMango has joined #ruby
<atmosx> shevy: the Georgia Tech MSCS is about 7K USD, I think I'll be able to afford it. Also I'd like to work part time (~ 20-25 hrs/week) as a ruby jr dev if I can manage... We'll see. Become better at ruby, combine JS if possible (well ruby == rails when it comes to dev jobs).
<banisterfiend> Mon_Ouie do you take school seriously or do you spend most of your time lying in bed watching anime and sleeping through lectures?
<pontiki> gods, that sounds like my worklife
roolo has quit [Ping timeout: 264 seconds]
Megtastique has quit []
Shazaum has quit [Quit: This computer has gone to sleep]
tristanp has joined #ruby
<atmosx> pontiki: uh what?
tier has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<pontiki> just laughing about how banisterfiend characterised uni life
<shevy> atmosx what is that? in the USA?
<atmosx> shevy: yes
<atmosx> pontiki: aah nice :-)
<Mon_Ouie> banisterfiend: No, I actually attend the lectures and listen
Shazaum has joined #ruby
<shevy> why not study in greece!!!!
ninjazach has joined #ruby
<shevy> ;-D
<banisterfiend> Mon_Ouie nerd
dts|pokeball has quit [Read error: Connection reset by peer]
dts|pokeball has joined #ruby
dts|pokeball has quit [Read error: Connection reset by peer]
<atmosx> shevy: because I'll have to give the same amount of money. Having a degree from Georgia Tech is way better...
<shevy> oh?
<atmosx> shevy: it's more prestigious
<shevy> I was just surprised that you have to pay the same in greece
<shevy> thought greece is half-bankrupt
dts|pokeball has joined #ruby
AxonetBE has joined #ruby
<atmosx> oh, yes
evanjs has quit [Remote host closed the connection]
rubyonrailed has joined #ruby
<rubyonrailed> I'm pretty new at working with json. What would this look like in a ruby hash? https://gist.github.com/anonymous/e27b964959890aaf8b71
<atmosx> everything is reversed in Greece, you pay taxes (extremely large % of taxes the last 7 years) while the state-services are getting worst and worst.
plukevdh has joined #ruby
<atmosx> rubyonrailed: hash returned by json are a mess usually...
dts_ has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
Prometheian has quit [Remote host closed the connection]
duncannz has joined #ruby
dts_ has left #ruby [#ruby]
snath has quit [Ping timeout: 240 seconds]
snath has joined #ruby
claymore has quit [Quit: Leaving]
revoohc has quit [Quit: revoohc]
freerobby has quit [Quit: Leaving.]
dfinninger has quit [Remote host closed the connection]
bryanmagalski has joined #ruby
duncannz has quit [Read error: Connection reset by peer]
bryanmagalski has quit [Client Quit]
duncannz has joined #ruby
Xiti has quit [Quit: Xiti]
bmags73 has joined #ruby
sargas has joined #ruby
<shevy> atmosx hehe
<pontiki> rubyonrailed: the simple thing to do is run your JSON string through JSON.parse to see what the ruy data structure would look like
<pontiki> ruby*
reinaldob has quit [Ping timeout: 250 seconds]
sfr^ has quit [Excess Flood]
cschneid has quit [Ping timeout: 258 seconds]
mjc_ has quit [Ping timeout: 258 seconds]
<rubyonrailed> pontiki: Thanks i'll look into it
ob has quit [Max SendQ exceeded]
ob has joined #ruby
terrellt has quit [Ping timeout: 258 seconds]
TgMts_ has joined #ruby
echooo1 has joined #ruby
mjc_ has joined #ruby
<pontiki> you'll probably discover what you wrote isn't valid JSON, though :D
sfr^ has joined #ruby
duncannz has quit [Ping timeout: 258 seconds]
JaTochNietDan has quit [Ping timeout: 258 seconds]
crdpink2 has joined #ruby
crdpink has quit [Read error: Connection reset by peer]
ob has quit [Max SendQ exceeded]
wookiehangover has quit [Ping timeout: 258 seconds]
ob has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rubyonrailed> pontiki: I have figured that out... What is wrong with it?
duncannz has joined #ruby
cschneid has joined #ruby
yo61 has quit [Ping timeout: 258 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
Megtastique has joined #ruby
terrellt has joined #ruby
beef-wellington has quit [Ping timeout: 250 seconds]
wookiehangover has joined #ruby
TgMts has quit [Ping timeout: 258 seconds]
_mtr has quit [Ping timeout: 255 seconds]
_beechnut has quit [Quit: Leaving.]
<pontiki> JSON is a String representation of data
yo61 has joined #ruby
<pontiki> the keys need to be strings
JaTochNietDan has joined #ruby
_beechnut has joined #ruby
_beechnut has quit [Client Quit]
bears_ has joined #ruby
<pontiki> the second internal object containing "NUMBERS" is not attached to anything
jheg has quit [Quit: jheg]
echooo has quit [Ping timeout: 258 seconds]
Soliah has quit [Quit: Soliah]
maletor has joined #ruby
<canton7> the official website helpfully has a number of easy-to-follow flow diagrams, just to make it even simpler! http://www.json.org/
<Areessell> Yeah, RTFM is not just advice, but a way of life
rkday has quit [Ping timeout: 245 seconds]
dopie has quit [Ping timeout: 252 seconds]
<shevy> BTFMS!
<shevy> but the ... manual sucks!
<canton7> it's one of the clearest "manuals" I've ever read, that one
<canton7> they pioneered the flow-diagram-as-syntax thing
tristanp has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 250 seconds]
<Areessell> ..What?
axelddd has joined #ruby
<pontiki> did they??
<frem> No. No, they did not.
<shevy> looks like | pipe | instructions on that website
<Areessell> Absolutely not haha
<canton7> ok, they're the first people I saw using it
<shevy> did you guys just IRC downvote canton7
axelddd has quit [Read error: Connection reset by peer]
<pontiki> i didn't think JSON had been around that long
bears_ has quit [Remote host closed the connection]
<canton7> looks like I'm wrong :P
* shevy upvotes canton7!!!
<canton7> I've only ever seen those flow diagram thingies on json.net and sqlite though
<pontiki> no, shevy , that looks like this: canton7--
<shevy> oh yes, that is the better syntax
<frem> There are flow diagrams in compiler textbooks, too.
<Areessell> ↓
<shevy> how did they create these graphics on json.org?
<pontiki> i remember them in ancient proprietary tech manuals
dc has quit [Ping timeout: 258 seconds]
<shevy> hehe
wjimenez5271 has quit [Remote host closed the connection]
ht__th has quit [Remote host closed the connection]
jenrzzz has joined #ruby
rkday has joined #ruby
plukevdh has quit [Quit: Textual IRC Client: www.textualapp.com]
samuel02 has quit [Remote host closed the connection]
<frem> shevy: Might have been Dia? There's also a Microsoft application I've forgotten the name of.
plukevdh has joined #ruby
<godd2> http://www.jqueery.com/ is way better whevy
<godd2> shevy*
reset has quit [Remote host closed the connection]
<Areessell> frem: That application is called "Paint"
pu22l3r has quit [Remote host closed the connection]
<shevy> godd2 man
<shevy> godd2 the music
wjimenez5271 has joined #ruby
<frem> Areessell: It's actually Visio
<shevy> godd2 AND I CAN NOT EVEN SCROLL THERE
<godd2> you gotta click around all over the place
<shevy> what's with those ponicorns
<Areessell> Why does that exist haha
eichenwald has quit [Quit: WeeChat 1.0.1]
<shevy> yeah Areessell
<godd2> it's jqueery
<shevy> but you forgot the more important question here
<shevy> HOW comes that godd2 knows such a website?
<shevy> someone's been a rainicorn fan for sure
dc has joined #ruby
<godd2> well I *am* omniscient...
<shevy> the music is kind of sexy though
<pontiki> oh yay, right said fred!!
<pontiki> to sexy
<shevy> will that crash my browser if I click on it like 1000x godd2?
<pontiki> too*
<shevy> pontiki oh I remember, your music era :>
Xiti has joined #ruby
<godd2> oh for goodness sake, I didn't make the damn thing, shevy!
<pontiki> i'm disappointed, godd2 :(
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<godd2> though we could make an autoit script that clicks a billion times to see what happens
fgo has quit [Ping timeout: 272 seconds]
<shevy> man
<shevy> godd2
<shevy> weren't you supposed to write code for a game
<Areessell> Nah, let's setup a selenium cluster to do it
<shevy> how comes such websites always lead to so much IRC activity
<godd2> shevy don't worry. that site doesnt take up ALL my time
<atmosx> I'm watching Elm right now, I thought it was required much more code to do something like that http://elm-lang.org/edit/examples/Intermediate/Mario.elm
CorySimmons has joined #ruby
<godd2> I'm still working on that: http://rubygems.org/gems/dare
goodenough has quit [Remote host closed the connection]
<godd2> it works by the way. You can be making games in ruby that run int he browser today!
<godd2> im gonna go grab lunch though
<atmosx> wow rubygems new design is slick
<Areessell> Better than it was? Sure. I find it really uggo
<godd2> the readme has a mini-tutorial: https://github.com/nicklink483/dare
bears has joined #ruby
bmoyles0117 has left #ruby [#ruby]
<atmosx> lunch? it's 00:26 here!
Stalkr_ has joined #ruby
<atmosx> you'll gain weight!
Stalkr_ has quit [Changing host]
Stalkr_ has joined #ruby
Musashi007 has joined #ruby
CpuID has joined #ruby
duncannz has quit [Quit: Leaving]
eighthbit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta has quit [Remote host closed the connection]
duncannz has joined #ruby
<shevy> godd2 don't forget docu!
<shevy> atmosx hah I have 1 hour less... 23:31 here
rbennacer has quit [Ping timeout: 264 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Areessell> It's lunch o' clock somewhere
bears has quit [Remote host closed the connection]
_mtr has joined #ruby
mondongo has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chu has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mengu has joined #ruby
djbkd has joined #ruby
kenneth has joined #ruby
jobewan has quit [Ping timeout: 240 seconds]
plukevdh has quit [Quit: Textual IRC Client: www.textualapp.com]
bmags73 has quit [Quit: Textual IRC Client: www.textualapp.com]
<bricker`work> >> require "set"; s=Set.new([1,2,3]); p s.first; p s.last
<eval-in__> bricker`work => 1 ... (https://eval.in/233260)
<bricker`work> >> require "set"; s=Set.new([1,2,3]); s.last
<eval-in__> bricker`work => undefined method `last' for #<Set: {1, 2, 3}> (NoMethodError) ... (https://eval.in/233261)
<bricker`work> >> require "set"; s=Set.new([1,2,3]); s.first
<eval-in__> bricker`work => 1 (https://eval.in/233262)
<bricker`work> Weird
IrishGringo has joined #ruby
wallerdev has quit [Quit: wallerdev]
rpag has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
greenbagels has joined #ruby
<Mon_Ouie> Sets are based on hash tables, and don't really have a notion of order (although it will perserve insertion order for iterations)
<apeiros_> and .first is Enumerable#first
louism2wash has quit [Quit: This computer has gone to sleep]
jdj_dk has joined #ruby
<shevy> long live ruby!
<eam> I remember reading a good article on Timeout being unreliable, can't find it at the moment. ring any bells?
michaeldeol has joined #ruby
<shevy> don't ring my bells eam!!!
mengu has quit []
vyorkin has joined #ruby
<shevy> perhaps you can read a perl document about Timeout :)
<Mon_Ouie> I remember one written by headius (a.k.a Charles Nutter IIRC)
dseitz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<eam> shevy: whatever Enrique Iglesias
<shevy> here are jruby timeouts not reliable https://www.ruby-forum.com/topic/211150
<shevy> https://endofline.wordpress.com/2010/12/31/ruby-standard-library-timeout/ "Getting to Know the Ruby Standard Library ? Timeout"
Dopagod has joined #ruby
<eam> Mon_Ouie: lovely thanks (and shevy!)
Channel6 has joined #ruby
<shevy> which one won
jleishman has joined #ruby
nfk has quit [Quit: yawn]
Musashi007 has quit [Quit: Musashi007]
<eam> Mon_Ouie won
<shevy> I need IRC karma
<shevy> oh dang :(
<shevy> I wonder if headius still has the same opinion 6 years later :)
<eam> well it's certainly still true so
<headius> it is
rkday has quit [Ping timeout: 264 seconds]
<eam> headius: great article btw, thx
<headius> handle_interrupt added in 2.1 makes it possible to opt-out of thread events, so that helps a tiny bit...but I'll be amazed if anyone uses it
<headius> or uses it right
<apeiros_> oh wow, didn't know about that one
jdj_dk has quit [Remote host closed the connection]
<apeiros_> I really have to get up to speed with 2.2 core/stdlib again
bigkevmcd has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bigkevmcd has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<eam> I just encountered a likely jruby/Timeout socket leak this morning and then this afternoon I'm reviewing a error handling recommendations doc and I find use of Timeout recommended
<eam> today is dedicated to timeout
jobewan has joined #ruby
fgo has joined #ruby
<eam> or hopefully soon lack thereof
geggam has quit [Ping timeout: 264 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
giuseppesolinas has joined #ruby
agjacome has quit [Quit: leaving]
it0a has quit [Ping timeout: 264 seconds]
<headius> eam: what doc is that?
iamayam has quit [Ping timeout: 264 seconds]
<headius> the sad truth is that there's no alternative to Timeout because none of the blocking methods you call accept timeout values
<headius> my recommendaiton would be a nonblocking IO + select loop rather than Timeout
kaspertidemann has quit []
<eam> headius: some internal doc, and agreed - that's what I'm changing it to
<headius> cool
<headius> change the doc too :-)
jlast has quit [Remote host closed the connection]
<eam> yup! (and citing your article for detail)
livingstn has quit []
<headius> excellent
jlast has joined #ruby
iamayam has joined #ruby
user083 has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
jobewan has quit [Quit: Leaving]
CrazyM4n has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
IrishGringo has quit [Ping timeout: 244 seconds]
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
rockdon has quit [Ping timeout: 258 seconds]
weems|mac has quit [Quit: bai]
jlast has quit [Ping timeout: 240 seconds]
mjmac has quit [Ping timeout: 258 seconds]
Flcn has quit [Quit: Be back later ...]
dc has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
CpuID has quit [Quit: This computer has gone to sleep]
kenneth has joined #ruby
Flcn has joined #ruby
jerius has quit [Ping timeout: 265 seconds]
Flcn has quit [Read error: Connection reset by peer]
TerjeLarsen has quit [Ping timeout: 250 seconds]
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
Flcn has joined #ruby
bmags73 has joined #ruby
Flcn has quit [Remote host closed the connection]
rkday has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
kenneth has quit [Client Quit]
Flcn has joined #ruby
haylon has quit [Quit: Page closed]
Flcn has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 252 seconds]
samsquanch has joined #ruby
olivier_bK has joined #ruby
Flcn has joined #ruby
Flcn has quit [Read error: Connection reset by peer]
ixti has joined #ruby
<user083> How can i convert hashtags to a hyperlink?
Flcn has joined #ruby
Kricir has quit [Remote host closed the connection]
<apeiros_> you combobulate them
Flcn has quit [Read error: Connection reset by peer]
<user083> apeiros_: what does "combobulate" mean?
Flcn has joined #ruby
<apeiros_> that depends on how a hashtag maps to a hyperlink
<user083> hashtags would have the route of "/hashtag/:query"
<apeiros_> in that case, combobulate probably means "go to #rubyonrails channel"
<user083> i am trying to replace hashtags with a link to "/hashtag/:hashtag"
<apeiros_> and probably you'd use one of rails' url helpers
larissa has joined #ruby
Flcn has quit [Ping timeout: 244 seconds]
procat has quit [Ping timeout: 256 seconds]
reinaldob has joined #ruby
karmatr0n has quit [Remote host closed the connection]
gwn has quit [Ping timeout: 272 seconds]
reinaldob has quit [Remote host closed the connection]
rockdon has joined #ruby
karmatr0n has joined #ruby
mjmac has joined #ruby
kobain has quit [Ping timeout: 250 seconds]
gwn has joined #ruby
Mothore has quit [Quit: Be back later ...]
bmags73 has joined #ruby
louism2wash has joined #ruby
bmags73 has quit [Quit: Deuces; time for me to go to.......zzzzzz]
Sharker has quit [Ping timeout: 250 seconds]
Areessell has quit [Read error: Connection reset by peer]
duncannz has quit [Read error: Connection reset by peer]
karmatr0n has quit [Ping timeout: 252 seconds]
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
Shazaum has quit [Quit: This computer has gone to sleep]
Areessell has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
duncannz has joined #ruby
goodenough has joined #ruby
xymbol_ has quit [Quit: Be back later ...]
sargas has quit [Quit: This computer has gone to sleep]
Xiti` has joined #ruby
mary5030 has quit [Remote host closed the connection]
davedev2_ has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
lmickh has quit [Remote host closed the connection]
sargas has joined #ruby
kish has quit [Ping timeout: 252 seconds]
fgo has joined #ruby
klmlfl has quit [Remote host closed the connection]
Xiti has quit [Ping timeout: 244 seconds]
Xiti` has quit [Ping timeout: 250 seconds]
treehug88 has quit []
rkday has quit [Ping timeout: 272 seconds]
_mtr has quit [Ping timeout: 240 seconds]
hephaestus_rg has quit [Ping timeout: 258 seconds]
<ericwood> sounds like a good use-case for JS tbh
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
Musashi007 has joined #ruby
centrx has joined #ruby
kenneth has joined #ruby
startupality has joined #ruby
Sharker has joined #ruby
Xiti has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
sargas has joined #ruby
kobain has joined #ruby
arturhoo has quit [Quit: arturhoo]
cleopatra has joined #ruby
davedev24_ has joined #ruby
<jhass> doesn't he just want to change the name of the parameter there?!
maletor has joined #ruby
Areessell has quit [Ping timeout: 255 seconds]
sarmiena_ has quit [Quit: sarmiena_]
Shazaum has joined #ruby
mondongo has quit [Quit: mondongo]
fabrice31 has joined #ruby
bret has left #ruby [#ruby]
sargas has quit [Quit: This computer has gone to sleep]
CorySimmons has quit [Quit: Bye!]
davedev2_ has quit [Ping timeout: 258 seconds]
IrishGringo has joined #ruby
Jackneill has quit [Read error: Connection reset by peer]
josephndenton has quit [Ping timeout: 258 seconds]
fabrice31 has quit [Ping timeout: 265 seconds]
hiyosi has joined #ruby
kirun has quit [Quit: Client exiting]
Spami has quit [Quit: This computer has gone to sleep]
banisterfiend has quit [Ping timeout: 255 seconds]
sargas has joined #ruby
<godd2> shevy I won't! it's on my to-do list :)
cpruitt has quit [Quit: cpruitt]
rshetty has joined #ruby
baweaver has quit [Remote host closed the connection]
karmatr0n has joined #ruby
nobitanobi has joined #ruby
Spami has joined #ruby
LudicrousMango has quit [Remote host closed the connection]
IrishGringo has quit [Ping timeout: 258 seconds]
enebo has quit [Quit: enebo]
rshetty has quit [Ping timeout: 244 seconds]
_JokerDoom has joined #ruby
LudicrousMango has joined #ruby
xymbol_ has joined #ruby
nobitanobi has quit [Client Quit]
JokerDoom has quit [Ping timeout: 258 seconds]
startupality has quit [Quit: startupality]
jlast has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
AxonetBE has quit [Quit: AxonetBE]
banister has joined #ruby
djbkd has quit [Remote host closed the connection]