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
<eam> or even matching certain valid ips
zipper has quit [Ping timeout: 250 seconds]
giuseppesolinas has joined #ruby
freezey has quit [Remote host closed the connection]
Deltini has left #ruby ["Saindo"]
Deltini has joined #ruby
antoni1 has quit [Read error: Connection timed out]
Narzew has quit [Read error: Connection reset by peer]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
<eam> `ping 0x7f.0.0.1`
Sawbones has quit [Remote host closed the connection]
<eam> or even `ping 0x7f.1`
<havenn> hehe
<b3itz> havenn: thats perfect, EXCEPT my prof just said we dont need to validate... we just need to check 1-3.1-3.1-3
<b3itz> i didnt know this
Hijiri has joined #ruby
echooo has quit [Read error: Connection reset by peer]
vinleod has quit [Quit: Computer has gone to sleep.]
echooo has joined #ruby
<eam> `ping 2130706433`
<b3itz> havenn: and I can't get this to spit anything out line.scan(/\d{1-3}.\d{1-3}.\d{1-3}/)
<eam> b3itz: \d{1,3}
Sawbones has joined #ruby
davasaurous has quit [Remote host closed the connection]
<eam> also backslash escape your .
<havenn> ^
<b3itz> oh der.. lemme fix that
<b3itz> i dont know why i did that lol
<b3itz> rubenglish
<eam> - is valid in [] bracketed character sets for a range
<eam> but in {} it's ,
The_NetZ has joined #ruby
<b3itz> oh i see
<b3itz> ok now its printing out things like 537.36 500
<eam> [a-z]
<b3itz> which isnt an ip
geggam has quit [Ping timeout: 256 seconds]
<b3itz> again, i don't need to validate, just need it to be a valid format
<eam> b3itz: supply your new regex?
davasaurous has joined #ruby
<eam> I suspect you didn't backslash your periods like I suggested
<The_NetZ> hey. trying to cross-compile ruby-trunk for windows; getting allot of extinit.o undefined reference to Init_{standardexts}; using same recipe as I do for native linux, tips?
<b3itz> i was missing a last \d{1,3} lol
karmatr__ has quit [Remote host closed the connection]
<The_NetZ> erm, same recipe as I do for 2.1.5
<b3itz> but now its also catching colors and hyphens
karmatr0n has joined #ruby
<The_NetZ> colors? XD
supersym has joined #ruby
<b3itz> shit, its also catching spaces
<b3itz> -___-
aspires has quit []
<eam> b3itz: as I said
jimeh has joined #ruby
<b3itz> i dont know what you meant eam, im sorry
<eam> b3itz: what is "." in regex syntax?
<eam> it's something special
ghr has joined #ruby
aspires has joined #ruby
<b3itz> eam: my notes say its a metacharacter that matches any character
freezey has joined #ruby
rainfyre_ has quit [Quit: seeya]
<b3itz> so thats not what I need lol..
<ericwood> fuck, my usb-->serial adapter doesn't work in yosemite
<ericwood> I'm hosed
<b3itz> so thats why its matching : spaces and -
<eam> b3itz: correct
baweaver has joined #ruby
<eam> you can turn a meta-character into a normal literal (and sometimes vice versa) using a backslash
<b3itz> so is escape the right word?
<eam> sure
<b3itz> ok lemme try that
<eam> eg "d" is a normal literal character "D"
<b3itz> ah
<eam> however \d is a meta-character
<eam> . is a meta-character wildcard "any"
Sawbones has quit [Remote host closed the connection]
<eam> but \. is a "."
<soahccc> Best tutorial imho: http://www.regular-expressions.info/tutorialcnt.html (looks a bit scary)
vinleod has joined #ruby
<b3itz> BINGO
<The_NetZ> including spaces and colors :)
<urbanslug> How can I like sync my db of the latest gems with the one at rubygems?
rikai has joined #ruby
<b3itz> damn, first ruby course and we are crawling an IIS file for specific stuff
<b3itz> -__-
qubit has joined #ruby
<b3itz> useful, but damn lol
<urbanslug> I updated bundler but I doubt that will fix it.
lucianosousa has quit [Quit: lucianosousa]
karmatr0n has quit [Ping timeout: 245 seconds]
ghr has quit [Ping timeout: 258 seconds]
GPH|work has quit [Ping timeout: 245 seconds]
<urbanslug> No I did not succesfully update bundler
elementz has joined #ruby
beilabs_________ has joined #ruby
beneggett has joined #ruby
duncannz has quit [Ping timeout: 240 seconds]
Deltini has quit [Quit: Saindo]
duncannz has joined #ruby
rshetty has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
freezey has quit []
beilabs_________ has quit [Client Quit]
iaj has quit [Ping timeout: 256 seconds]
nkumari has quit [Remote host closed the connection]
n_blownapart has joined #ruby
KnownSyntax has joined #ruby
lmickh has quit [Remote host closed the connection]
<eam> and the best reference for ruby re is http://perldoc.perl.org/perlre.html (though, ruby hasn't implemented all of the features yet)
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
henesy has quit [Ping timeout: 264 seconds]
<shevy> haha
rshetty has quit [Ping timeout: 264 seconds]
<b3itz> eam: ok so now that i have the an array of the IPs on each line (match_array), i need to split each match by the "." and use to_s.rjust to format with a leading 0........ i dont know how to go about this exactly
<b3itz> so i need to walk though the array and take each entry and split it right?
<eam> b3itz: well, tackle one problem at a time. How do you think you can split on "."?
x1337807x has joined #ruby
ponga has joined #ruby
StoneCypher has joined #ruby
<eam> try writing down in regular english what you think you need to do at each step, then use the docs for each piece of data to figure out how to do it
<eam> like, you have a String. Are there any methods in the String class that help?
<b3itz> eam, ok i'll try that
<b3itz> thats a good idea
<b3itz> when i do the scan, it stores it as an array of..... strings or ints? ints right?
<StoneCypher> culturally, is ruby a regex-heavy language like perl, or a regex available-but-rare language like php?
<eam> b3itz: regex is basically all string in string out
<eam> (or Arrays of String out)
<StoneCypher> that is, am i more likely to get looked at strangely for using them or for avoiding them
<b3itz> match_array = line.scan(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/) => match_array is a string
<b3itz> an array of strings
<jhass> StoneCypher: I'd say in between
<eam> >> "lalala 1.2.3.4 foo foo".scan(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/)
<eval-in__> eam => ["1.2.3.4"] (https://eval.in/229174)
aspires has quit []
<b3itz> string
<jhass> ruby provides a rich interface for using regexs, but there's also a rich interface for not using them
<eam> >> "lalala 1.2.3.4 foo foo".scan(/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/).class
<eval-in__> eam => Array (https://eval.in/229175)
<b3itz> so now i should iterate through the entire array and grab each entry
jonr22 has joined #ruby
<eam> jhass: not quite as rich as perl's interface for not using them, though :D
<urbanslug> While trying to install nokogiri from source using bundler I got this error that makes no sense:
<urbanslug> `Could not find gem 'nokogiri (>= 0) ruby' in git@github.com:sparklemotion/nokogiri.git (at master).`
spastorino has quit [Quit: Connection closed for inactivity]
FutureTense has quit [Ping timeout: 244 seconds]
<urbanslug> Yet I supplied it the url to that specific gem in the Gemfile
it0a has joined #ruby
<StoneCypher> jhass: okay, cool, thanks
<urbanslug> `Source does not contain any versions of 'nokogiri (>= 0) ruby'`
ponga has quit [Ping timeout: 264 seconds]
aspires has joined #ruby
<eam> I wish ruby had vec()
<StoneCypher> jhass: in the sense that there are several canonical ruby tutorials, is there a rails tutorial? (i am an experienced programmer; i do not want to be shown the magic of arithmetic in a repl, and i don't want to spend time reading stories about foxes)
<Areessell[ZZZ]> urbanslug: simple
<Areessell[ZZZ]> If you goto https://github.com/sparklemotion/nokogiri you will see they have no gemspec
<urbanslug> Areessell[ZZZ]: What?
Areessell[ZZZ] is now known as Areessell
lbrf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenn> StoneCypher: sometimes foxes are not as they seem
<Areessell> Baha
<urbanslug> Areessell: yes they lack a gemspec what do you suggest I do to install this gem?
<urbanslug> gem installs are failing
<StoneCypher> havenn: there's nothing wrong with that kind of tutorial, but it's not the kind i want
odin22 has quit [Ping timeout: 240 seconds]
<Areessell> Why install from the github project? Just install the latest stable. They even said in the Y_U_NO_GEMSPEC.md: Team Nokogiri are not 10-foot-tall code-crunching robots, so master is usually unstable
oo_ has joined #ruby
<havenn> StoneCypher: did you take a look at the well-grounded rubyist?
karmatr0n has joined #ruby
<urbanslug> Areessell: Because rubygems is having issues.
The_NetZ has quit [Ping timeout: 256 seconds]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> StoneCypher: guides.rubyonrails.org is actually pretty nice IMO, but you might want a second opinion from #rubyonrails
<Areessell> RubyGems.org? Working fine for me
The_NetZ has joined #ruby
<urbanslug> Areessell: Yet other gems have installed
jonr22 has quit [Ping timeout: 272 seconds]
<StoneCypher> jhass: cool, will give both a try; thanks
<urbanslug> Really? rubygems is up?
baweaver has quit [Remote host closed the connection]
<Areessell> I just did 'gem install nokogiri' and it's working fine
<StoneCypher> havenn: the kindle edition isn't on amazon currently and the PDF version wouldn't load on my phone
<StoneCypher> havenn: i'm gonna try it tonight
<StoneCypher> havenn: i just suffered through why's :(
<StoneCypher> on the plane that is
havenn has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
goodenough has quit [Remote host closed the connection]
<Areessell> "Successfully installed nokogiri-1.6.5" Yep, urbanslug, working fine here. Perhaps their servers were under maintenance for a bit
duncannz has quit [Remote host closed the connection]
b3itz has quit [Ping timeout: 246 seconds]
adriancb has joined #ruby
adriancb has quit [Remote host closed the connection]
odin22 has joined #ruby
yfeldblum has joined #ruby
<jhass> Areessell: http://dnsimplestatus.com/
<urbanslug> Areessell: They were having DNS issues. As far as I read around I think my Gemfile.lock was the issue. It was very old.
pietr0 has quit [Quit: pietr0]
Soda has quit [Remote host closed the connection]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
elementz has quit [Ping timeout: 245 seconds]
<finisherr> can someone please explain the params for on in optparse?
<finisherr> See make_switch for an explanation of parameters.
<finisherr> But the parameters listed there don’t really seem to follow what I’ve seen in examples
<finisherr> My goal is to have a flag accept a space separated list of arguments
jhonnyboy has joined #ruby
jhonnyboy has left #ruby [#ruby]
yfeldblum has quit [Ping timeout: 250 seconds]
<diegoviola> sorry to bring this issue to this channel, but might this be the cause of Ezra passing away? https://twitter.com/ezmobius/status/362228490176692224
<diegoviola> this is worrying me terribly :-(
* diegoviola freaks out
roolo has joined #ruby
iaj has joined #ruby
Chris_ has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
The_NetZ has quit [Ping timeout: 245 seconds]
Soliah has quit [Ping timeout: 245 seconds]
The_NetZ has joined #ruby
b3itz has joined #ruby
rylev has quit []
b3itz has quit [Client Quit]
b3itz has joined #ruby
<b3itz> my university has the worst wifi >.<
baweaver has joined #ruby
sevenseacat has joined #ruby
<b3itz> baweaver: yo... are you at nku by any chance?
<The_NetZ> b3itz: at least youre not stuck on non-4g smartphone internet XD
<b3itz> The_NetZ: hahaha what is this, 1990?
<b3itz> my lte pulls down 30mpbs
joelteon has left #ruby ["bye"]
Ridley5 has quit [Ping timeout: 272 seconds]
kaplejon_ has quit [Ping timeout: 272 seconds]
<baweaver> nku?
rshetty has joined #ruby
<b3itz> guess not ;)
roolo has quit [Ping timeout: 272 seconds]
mattjbarlow has quit [Ping timeout: 272 seconds]
casual_ has quit [Ping timeout: 272 seconds]
whoojemaflip has quit [Ping timeout: 272 seconds]
culturelabs has quit [Ping timeout: 272 seconds]
thesheff17 has quit [Ping timeout: 272 seconds]
ckrailo has quit [Ping timeout: 272 seconds]
<baweaver> San Francisco.
mattmcclure has quit [Ping timeout: 272 seconds]
GOSHDARNYOU has quit [Ping timeout: 272 seconds]
jrunning_ has quit [Ping timeout: 272 seconds]
jpinnix____ has quit [Ping timeout: 272 seconds]
tmoore has quit [Ping timeout: 272 seconds]
andrewstewart has quit [Ping timeout: 272 seconds]
ccal has quit [Ping timeout: 272 seconds]
yo61 has quit [Ping timeout: 272 seconds]
whoojemaflip has joined #ruby
daxroc has quit [Ping timeout: 272 seconds]
dnyy has quit [Ping timeout: 272 seconds]
n_blownapart has quit [Remote host closed the connection]
machty has quit [Read error: Connection reset by peer]
kaplejon_ has joined #ruby
jrunning_ has joined #ruby
culturelabs has joined #ruby
hellschreiber has quit [Read error: Connection reset by peer]
t0rc has joined #ruby
zzz_Ridley has joined #ruby
ckrailo_ has joined #ruby
kyote has quit [Ping timeout: 272 seconds]
troter__ has quit [Ping timeout: 272 seconds]
zrl has quit [Ping timeout: 272 seconds]
lectrick has quit [Ping timeout: 272 seconds]
casual_ has joined #ruby
mattjbarlow has joined #ruby
jpinnix____ has joined #ruby
thesheff17 has joined #ruby
tmoore_ has joined #ruby
zzz_Ridley is now known as Ridley5
andrewstewart has joined #ruby
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
Juanchito has quit [Ping timeout: 272 seconds]
PhilK has quit [Ping timeout: 272 seconds]
ggherdov has quit [Ping timeout: 272 seconds]
GOSHDARNYOU has joined #ruby
Juanchito has joined #ruby
hellschreiber has joined #ruby
mattmcclure has joined #ruby
Vile` has joined #ruby
kyote has joined #ruby
dnyy has joined #ruby
zrl has joined #ruby
troter__ has joined #ruby
yo61 has joined #ruby
ccal has joined #ruby
lectrick has joined #ruby
PhilK has joined #ruby
b3itz has quit [Ping timeout: 246 seconds]
daxroc has joined #ruby
machty has joined #ruby
Hijiri has quit [Ping timeout: 245 seconds]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
finisherr has quit [Quit: finisherr]
t0rc has left #ruby [#ruby]
<urbanslug> So why is bundler installing gems into ./vendor and not in ~/.gem
jfran has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<urbanslug> This isn't good at all
<rpag> urbanslug, is there a .bundle/config file?
<urbanslug> rpag: in which dir?
<rpag> same dir as Gemfile/Gemfile.lock
karmatr0n has quit [Remote host closed the connection]
Juanchito has quit [Client Quit]
<jhass> urbanslug: bundle install --system
spyderma_ has quit [Read error: Connection reset by peer]
<jhass> it's the default btw
<urbanslug> jhass: Will that not install systemwide? I want just for the current user.
<The_NetZ> I only have 500mb 4g on my phone plan :/
<jhass> it'll use $GEM_HOME
<jhass> or first GEM_PATH if that's unset iirc
<jhass> basically it undoes --path / --deployment
<jhass> which you must have used once
Sawbones has joined #ruby
ggherdov has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
machty has quit [Ping timeout: 272 seconds]
ghostmoth has quit [Quit: ghostmoth]
shazaum has quit [Quit: Leaving]
baroquebobcat has joined #ruby
pragmatism has quit [Ping timeout: 245 seconds]
Deele has quit [Ping timeout: 260 seconds]
yfeldblum has joined #ruby
gregf has quit [Quit: WeeChat 1.0.1]
machty has joined #ruby
Chris_ is now known as Soliah
davasaur_ has joined #ruby
The_NetZ has quit [Ping timeout: 252 seconds]
davasaurous has quit [Ping timeout: 255 seconds]
yfeldblum has quit [Ping timeout: 258 seconds]
ghr has joined #ruby
jgrevich_ has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
abuzze has quit [Ping timeout: 256 seconds]
jgrevich has quit [Ping timeout: 245 seconds]
jgrevich_ is now known as jgrevich
lucyinthesky has joined #ruby
<urbanslug> jhass: That gives `Your user account isn't allowed to install to the system Rubygems.`
<jhass> do you have --user-install in your .gemrc?
alol has quit [Ping timeout: 258 seconds]
adambeynon_ has quit [Ping timeout: 258 seconds]
gsd has joined #ruby
<urbanslug> jhass: I have the line `gem: --user-install`
adambeynon_ has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
<urbanslug> jhass: Also I have copied /usr/bin/gem to ~/.gem/.../bin
alol has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
<urbanslug> jhass: gem install is working. bundle install isn't
vt102 has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Ping timeout: 252 seconds]
bigmac_ has joined #ruby
baroquebobcat has quit [Ping timeout: 244 seconds]
Tranquility has quit [Quit: Connection closed for inactivity]
beneggett has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has joined #ruby
davasaur_ has quit [Remote host closed the connection]
georgedrummond has quit [Remote host closed the connection]
pengin has quit [Remote host closed the connection]
DLSteve has quit [Quit: Leaving]
gregf has joined #ruby
pengin has joined #ruby
ebbflowgo has joined #ruby
<jhass> what's GEM_HOME / GEM_PATH ?
momomomomo has quit [Quit: momomomomo]
goodenough has joined #ruby
mikepack has joined #ruby
<urbanslug> jhass: `/home/urbanslug/.gem`
fabrice31 has quit [Ping timeout: 252 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkphenom has joined #ruby
henesy has joined #ruby
<jhass> huh, that's your GEM_HOME and bundler ignores that?
<jhass> gem env lists that too?
patrick99e99 has quit [Ping timeout: 264 seconds]
pengin has quit [Ping timeout: 264 seconds]
<urbanslug> I changed it to `/home/urbanslug/.gem/ruby/2.1.0/`
<urbanslug> jhass: This is working. or seems to ^^
yfeldblum has joined #ruby
<jhass> :)
User458764 has quit [Ping timeout: 255 seconds]
patrick99e99 has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
ponga has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
stunder has quit [Quit: Screw you guys I'm going home]
<urbanslug> jhass: Isn't this method bad because it restricts me to changing my GEM_HOME with different ruby versions?
georgedrummond has joined #ruby
xymbol has joined #ruby
shazaum has joined #ruby
<jhass> a bit yeah, I use chruby even for my default ruby since it does handle that a bit better
<sevenseacat> chruby is win
devoldmx has quit [Ping timeout: 255 seconds]
patrick99e99 has quit [Ping timeout: 256 seconds]
<postmodern> whenever i need to mess with GEM_HOME, i use the gem_home util
kiyote23 has joined #ruby
<sevenseacat> i dont have a problem with keeping multiple versions of gems installed
<postmodern> https://github.com/postmodern/gem_home#readme that at least lets me push/pop gem dirs
patrick99e99 has joined #ruby
baweaver has quit [Remote host closed the connection]
ponga has quit [Ping timeout: 272 seconds]
lucyinthesky has quit [Quit: Leaving]
georgedrummond has quit [Ping timeout: 264 seconds]
rshetty has joined #ruby
kiyote23 has quit [Remote host closed the connection]
solidus-river has quit [Ping timeout: 240 seconds]
marr has quit [Ping timeout: 252 seconds]
elementz has joined #ruby
goodenough has quit [Remote host closed the connection]
commmmodo has joined #ruby
ebbflowgo has quit [Ping timeout: 240 seconds]
shazaum has quit [Quit: Leaving]
baweaver has joined #ruby
arup_r has joined #ruby
tvw has joined #ruby
elementz has quit [Ping timeout: 258 seconds]
davedev24_ has quit [Ping timeout: 244 seconds]
Sawbones has quit [Remote host closed the connection]
lyanchih_ has joined #ruby
ebbflowgo has joined #ruby
lampd1 has joined #ruby
StephenA1 has joined #ruby
fuhgeddaboudit has joined #ruby
davedev24_ has joined #ruby
x1337807x has quit [Ping timeout: 250 seconds]
<StephenA1> anyone familiar with Panamax
<StephenA1> ?
hamakn has quit [Remote host closed the connection]
robustus|Off has quit [Ping timeout: 250 seconds]
atomical has quit [Ping timeout: 258 seconds]
fuhgeddaboudit has quit [Client Quit]
graydot has quit [Quit: graydot]
fuhgeddaboudit has joined #ruby
robustus has joined #ruby
atomical has joined #ruby
davedev24_ has quit [Ping timeout: 245 seconds]
urbanslug has quit [Ping timeout: 250 seconds]
mikepack has joined #ruby
mikepack has quit [Remote host closed the connection]
adriancb has joined #ruby
<zenspider> naughty version of the country?
<sevenseacat> that would be panamaxxx
bricker`work has quit [Ping timeout: 252 seconds]
aspires has quit []
rkalfane has quit [Read error: Connection reset by peer]
Hijiri has joined #ruby
dkam has joined #ruby
rkalfane has joined #ruby
echooo has quit [Remote host closed the connection]
echooo has joined #ruby
dcunit3d has quit [Ping timeout: 255 seconds]
Areessel1 has joined #ruby
<mark06> what's the percentage of bots in rubygems downloads?
Or1on has joined #ruby
sinequanon has quit [Remote host closed the connection]
evanjs has joined #ruby
Areessell has quit [Ping timeout: 264 seconds]
<Hijiri> how would you determine that?
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<rpag> from site data probably
wallerdev has quit [Quit: wallerdev]
<godd2> mark06 what do you mean? like, how many gems are bots?
troyready has quit [Ping timeout: 250 seconds]
<mark06> godd2: how many downloads
chrisja has quit [Quit: leaving]
<Hijiri> but how would the site know which download was done by a bot and which was done by a human typing it in manually?
<Hijiri> and is the distinction important
<godd2> mark06 I'm still confused. Do you mean how many of the downloads themselves were done by bots?
<godd2> so like, if a gem has 300 downloads, are 100 of them just bots?
<mark06> yes, for example the site itself could have official bots, and known bot downloads could be counted
<mark06> this is of course a minimal percentage of known bots
<Hijiri> what is the purpose of an official bot
nometize has joined #ruby
<godd2> mark06 you could make a gem that doesnt do anything and see if it gets downloaded
<Hijiri> you would have no way of knowing how it relates to all the other bots out there because you introduced them artificially
<mark06> I didn't spread about my gems too much and the site has only a small search box, can't get why 200 downloads in two weeks or so :)
yfeldblum has quit [Remote host closed the connection]
abuzze has joined #ruby
ohaibbq has quit [Remote host closed the connection]
<dr4> godd2 you mean like https://rubygems.org/gems/hola_a1330ks ?
<dr4> 159 dl's
ohaibbq has joined #ruby
rkalfane_ has joined #ruby
<godd2> is there an rss feed for most recent gem pushes?
baweaver has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<godd2> I swear there needs to be better ways to search/sort gems
<godd2> other than "gems that start with this letter"
yfeldblum has quit [Read error: Connection reset by peer]
yfeldblu_ has joined #ruby
doodlehaus has joined #ruby
rkalfane has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
jackjackdrpr has quit [Quit: Leaving.]
<mark06> couldn't find any feed
matchaw has quit [Ping timeout: 240 seconds]
<godd2> its a freakin rails app, and they have 2 search features?
<dr4> you could use https://www.kimonolabs.com/
<mark06> who are downloading them :) https://rubygems.org/profiles/renatosilva
<godd2> that link isn't up yet for me
<godd2> oh nvm it just loaded
ohaibbq has quit [Ping timeout: 255 seconds]
kiyote23 has joined #ruby
<zenspider> godd2: `gem search --help`
ghr has joined #ruby
<godd2> zenspider no I mean on the website
echooo has quit [Quit: echooo]
<zenspider> that's nice. I read what you typed and responded with a solution to your stated problem. if you don't want to solve your problem that's up to you
<godd2> no, the stated problem was to have search options on the website, not have search options in general
<godd2> I was complaining about the website specifically
<godd2> not the general inability to find or search for gems
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
econerd4ever has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
<godd2> I admit I did not express that intent originally, and for that I apologize, but your implication that I have no desire to solve my problem is unfounded, and I would appreciate it if you didn't come to that conclusion
patrick99e99 has quit [Ping timeout: 250 seconds]
deric_skibotn has quit [Ping timeout: 252 seconds]
<dr4> what do you think of https://rubygems.org/gems/RHP ?
<dr4> why only ~577 downloads?
jenrzzz has quit [Ping timeout: 245 seconds]
sinequanon has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
volt_punch has quit [Ping timeout: 250 seconds]
tzero_ is now known as tzero
baweaver has joined #ruby
commmmodo has quit [Quit: commmmodo]
checkit has quit [Ping timeout: 258 seconds]
Guest19 has joined #ruby
wsmoak has quit [Quit: wsmoak]
ponga has joined #ruby
davasaurous has joined #ruby
georgedrummond has joined #ruby
rationalrevolt has joined #ruby
rationalrevolt has quit [Remote host closed the connection]
fuhgeddaboudit has joined #ruby
Sawbones has joined #ruby
jenrzzz has joined #ruby
sailias has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
doodlehaus has quit [Remote host closed the connection]
georgedrummond has quit [Ping timeout: 264 seconds]
StephenA1 has quit [Quit: StephenA1]
Guest19 is now known as lbrf
<adam12> Probably pedantic, but does anybody have feelings over explicit requires vs `Dir["subpath/*.rb"].each {|f| require f }`
wallerdev has joined #ruby
sinequanon has quit [Remote host closed the connection]
fuhgeddaboudit has quit [Ping timeout: 272 seconds]
Galas has quit [Quit: Leaving...]
phutchins has joined #ruby
rshetty has quit [Remote host closed the connection]
spastorino has joined #ruby
baweaver has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
rshetty has joined #ruby
sailias has joined #ruby
rshetty has quit [Remote host closed the connection]
StephenA1 has joined #ruby
StephenA1 has quit [Client Quit]
claptor has joined #ruby
The_NetZ has joined #ruby
avr has joined #ruby
jimbach has joined #ruby
Blizzy has quit [Read error: Connection reset by peer]
echooo has joined #ruby
VBlizzard has quit [Ping timeout: 255 seconds]
jimbach has quit [Ping timeout: 272 seconds]
linoespinoza has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
tokik has joined #ruby
The_NetZ has quit [Ping timeout: 255 seconds]
krz has joined #ruby
wjimenez_ has joined #ruby
sski has joined #ruby
<benzrf> adam12: be explicit you shit
tkuchiki has joined #ruby
<adam12> :P
henesy has quit [Ping timeout: 240 seconds]
The_NetZ has joined #ruby
wjimenez5271 has quit [Ping timeout: 255 seconds]
Hobogrammer has joined #ruby
wjimenez_ has quit [Ping timeout: 250 seconds]
<The_NetZ> hrm...
<benzrf> adam12: ok i just want
jimbach_ has joined #ruby
<benzrf> adam12: ok i just want you to imagine that you are reading somebody's code
<benzrf> and they do that
<benzrf> then you want to find where something was defined
Sawbones has quit [Remote host closed the connection]
<The_NetZ> benzrf: hey, I recall you as being knowledgable :)
<The_NetZ> working on compiling ruby-trunk for mingw-w64; I can do 2.1.5 easy, but trunk fails on attempting extinit.c/o
<mark06> can gems have changelogs?
rshetty has joined #ruby
<sevenseacat> yes.
oo_ has quit [Remote host closed the connection]
<sevenseacat> they should.
<eam> The_NetZ: use git-bisect?
davedev24_ has joined #ruby
<mark06> couldn't find any docs about it
krz has quit [Read error: Connection reset by peer]
yfeldblum has joined #ruby
tyll_ has joined #ruby
krz has joined #ruby
tvw has quit [Ping timeout: 244 seconds]
yfeldblu_ has quit [Read error: Connection reset by peer]
<The_NetZ> buncha undefined references to Init_ext() for just about everything.
<The_NetZ> eam: using the svn repo, as afaik that's the 'official' one :/
* The_NetZ heavily prefers git :)
<eam> wtf @ that
rshetty has quit [Ping timeout: 256 seconds]
tyll has quit [Ping timeout: 264 seconds]
yetanotherdave has quit [Ping timeout: 264 seconds]
<The_NetZ> eam: at svn being official? or preferring git?
oo_ has joined #ruby
fabrice31 has joined #ruby
circ-user-cnelk has quit [Ping timeout: 264 seconds]
bigmac_ is now known as i8igmac
razieliyo has quit [Quit: Saliendo]
<mark06> rubygems down?
<The_NetZ> mark06: ddos
<mark06> lol why
wallerdev has quit [Quit: wallerdev]
<The_NetZ> dunno, maybe some c# M$ fuckheads XD
<The_NetZ> because god forbid anyone program for anything other than windows
fernandolopez has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
<wmoxam> mark06: the DDOS is on the DNS provider
<wmoxam> so likely rubygems is just collateral damage
ghr has joined #ruby
<The_NetZ> fuck I hate my shitty internet :/
<lampd1> deshitify it
<lampd1> yeah, china shat all over DNS servers today
<The_NetZ> need money for that XD
<The_NetZ> or some local individual that's dumb enough to use a WEP protected network XD
jenrzzz has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
<The_NetZ> would say WPS too, but that... seems to be broken in my current reaver version :/
econerd4ever has quit [Remote host closed the connection]
triple_b has joined #ruby
<The_NetZ> eam: were I to use git bisect, what would I be looking for? I'm in truth still pretty noobish at some things :)
econerd4ever has joined #ruby
boombadaroomba has joined #ruby
jenrzzz has joined #ruby
MartynKeigher has joined #ruby
duncannz has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
bottomle_ has joined #ruby
ajaiswal has joined #ruby
MartynKeigher has quit [Quit: Leaving]
econerd4ever has quit [Ping timeout: 244 seconds]
bottomle_ has quit [Client Quit]
arescorpio has joined #ruby
sski has quit [Remote host closed the connection]
boombadaroomba has quit [Ping timeout: 252 seconds]
sski has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
nonks has joined #ruby
duncannz has quit [Ping timeout: 252 seconds]
nonks has quit [Remote host closed the connection]
x1337807x has joined #ruby
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
davedev24_ has quit [Ping timeout: 264 seconds]
elementz has joined #ruby
ducklobster has joined #ruby
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
<The_NetZ> gaddammit when will git develope a resumable clone!
Phrohdoh has joined #ruby
<Phrohdoh> What is wrong with this? http://pastebin.com/VFTpkMiP
<Phrohdoh> It's a rake task.
<sevenseacat> thats not valid ruby syntax
narcan has joined #ruby
<Phrohdoh> What shall I change?
georgedrummond has joined #ruby
<Phrohdoh> I can't find any documentation on rspec --pattern
<sevenseacat> thats a shell command, not a ruby command.
<sevenseacat> thats why its invalid syntax.
<Phrohdoh> oh right.
mary5030 has joined #ruby
bmichelsen has joined #ruby
<The_NetZ> lol.
elementz has quit [Ping timeout: 245 seconds]
<The_NetZ> you can execute shell commands in ruby, though... I think backticks work.
<sevenseacat> yeah. but why do you need a rake task to just call a shell task
<sevenseacat> why not just run the shell command
<Phrohdoh> because I like the shorter syntax, which is based off of make
MartynKeigher has joined #ruby
<Phrohdoh> `` and $() should work
<sevenseacat> yes, because `rake test` is much shorter than `rspec`
dcunit3d has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
<Phrohdoh> you're leaving off the filenames
Sawbones has joined #ruby
<Phrohdoh> and assuming my names are done in a particular name
<sevenseacat> no i'm not, they go in your .rspec config file
<sevenseacat> though ideally that pattern would best be configured from within rspec itself
nonks has joined #ruby
<sevenseacat> i dont think much of your .rb.spec convention but hey thats your choice
georgedrummond has quit [Ping timeout: 258 seconds]
<The_NetZ> true that. just talking to allevate my irritation :/
<The_NetZ> hrm... anyone run into a situation where if you ping google's dns while performing a net task (in this case, a git fetch) it starts to go fast for a bit? strange
henesy has joined #ruby
Azure has quit [Read error: Connection reset by peer]
Azure has joined #ruby
Phrohdoh has left #ruby [#ruby]
<adam12> lol
<sevenseacat> meh
<pontiki> it's like blowing through the phone to make the conversation clearer
JoshGlzBrk has joined #ruby
duncannz has joined #ruby
emmesswhy has joined #ruby
o0oo0o has quit [Quit: WeeChat 0.4.3]
MartynK has joined #ruby
MasterPieceF is now known as MasterPiece
rshetty has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 272 seconds]
<The_NetZ> pontiki: lol, my question?
<pontiki> yeah
MartynK has quit [Client Quit]
MartynK has joined #ruby
MartynK has quit [Read error: Connection reset by peer]
snapcase has joined #ruby
MartynKeigher has quit [Ping timeout: 255 seconds]
rshetty has quit [Remote host closed the connection]
jimbach_ has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
<The_NetZ> so does it actually do something, or is it coincidence
MartynKeigher has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
radic has quit [Ping timeout: 264 seconds]
Avahey has joined #ruby
o0oo0o has joined #ruby
radic has joined #ruby
ghostmoth has joined #ruby
MattB2 has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<pontiki> pinging google's DNS? i have no idea
<The_NetZ> it seems to do *something*, but I really have no idea why XD
nonks_ has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
sevvie has quit [Ping timeout: 240 seconds]
charlenopires has joined #ruby
hellome has joined #ruby
livingstn has quit []
MasterPiece has quit [Remote host closed the connection]
arup_r has quit [Quit: Leaving.]
MasterPiece has joined #ruby
MartynKeigher has quit [Read error: Connection reset by peer]
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
gsd has joined #ruby
econerd4ever has joined #ruby
Sawbones has quit [Remote host closed the connection]
codezomb has joined #ruby
rshetty has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
sriehl has joined #ruby
kiyote23 has quit [Remote host closed the connection]
<The_NetZ> does someone have a local mirror of the ruby git repo who would care to creat a git bundle for me?
diego_ar has joined #ruby
kaplejon_ has quit []
damic has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
<damic> How would you go about parsing a file that has diff data sets in it?
kaplejon has joined #ruby
charlenopires has quit [Quit: Be back later ...]
amitchellbullard has quit [Ping timeout: 244 seconds]
<mark06> damic: explain better what app is this, what different data
Sawbones has joined #ruby
<The_NetZ> I think he means diff as in a patch?
kiyote23 has joined #ruby
econerd4ever has quit [Remote host closed the connection]
jonr22 has joined #ruby
<pontiki> netz, you can't get to github now?
braincra- has quit [Quit: bye bye]
econerd4ever has joined #ruby
<damic> The_NetZ: not diff for patch
amitchellbullard has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
<The_NetZ> pontiki: I can, but I keep getting remote end hung up and early EOF :/
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<damic> mark06: is a CSV (not comma but pipe '|') that has 3 rows on top, 1 row seperator #, 1 row headers, 1 row seperator # and n data points
<The_NetZ> I already have a partial copy of the ruby git repo, can't recall the last time I updated it :/
mary5030 has quit [Remote host closed the connection]
kapil__ has joined #ruby
MartynKeigher has joined #ruby
<damic> then has similar header stuff then a different format of n data types in the same file
<MasterPiece> http://paste.ubuntu.com/9339586/ , any idea?!
mary5030 has joined #ruby
<mark06> damic: so it's just a CSV with two annying lines '#'?
<sevenseacat> DNS issues. try again later or add rubygems to your hostfile.
duncannz has joined #ruby
havenwood has joined #ruby
<damic> mark06: sortof but it has two sections data sections of different CSV data
<mark06> damic: can you paste the file
<damic> yeah
diego_ar has quit [Remote host closed the connection]
econerd4ever has quit [Ping timeout: 245 seconds]
jonr22 has quit [Ping timeout: 245 seconds]
braincrash has joined #ruby
MartynKeigher2 has joined #ruby
<The_NetZ> damic: how about you provide a sample csv file :)
dkam has quit [Ping timeout: 240 seconds]
scottstamp has joined #ruby
diego_ar has joined #ruby
Sawbones has quit [Remote host closed the connection]
patrick99e99 has joined #ruby
ghr has joined #ruby
<mark06> damic: it looks like the lines with '#' are just comments supposed to be ignored
dkphenom has quit [Read error: Connection reset by peer]
centrx has joined #ruby
<damic> right, is there some nice ruby thing that can parse that, I was looking at CSV but didn't see how to ignore multiple header lines or tell it where the header starts
mary5030 has quit [Ping timeout: 258 seconds]
charlenopires has joined #ruby
<damic> and then how do you tell it to stop midway through the file
MartynKeigher has quit [Ping timeout: 252 seconds]
centrx has quit [Client Quit]
<pontiki> is there anything that can parse that?
<sevenseacat> i'd probably split it into multiple strings based on the ---- lines
<sevenseacat> and then parse each individually
<mark06> damic: whatever csv parser you use, check if it's able to ignore comments
<pontiki> regardless of ruby or not
MartynKeigher has joined #ruby
MartynKeigher2 has quit [Client Quit]
<pontiki> i'd go with sevenseacat's suggestion
<mark06> damic: but it's not hard to parse it manually, what do you want it to become, your objects?
<scottstamp> I'm coming back to Ruby for the first time in a while, since 1.8.7 (iirc), any major documented changes I should read up on?
<mark06> damic: see this example, it parses a csv script according to a template, if you want e.g. generate an html report based on it, then you can just use this script: https://github.com/renatosilva/scripts/blob/master/csvt.rb
<damic> yeah, im going to import it into some objects but I just wanted to know if there was a Ruby'esk way of doing it. I can just do it manually if not.
<The_NetZ> oh yeah, --depth options :)
<mark06> scottstamp: seek for the 2.0 changes
emmesswhy has quit [Read error: Connection reset by peer]
<mark06> iirc 1.9 changed stuff a bit too
evanjs has quit [Remote host closed the connection]
emmesswhy has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
<sevenseacat> 1.8 -> 1.9 was a much bigger jump than 1.9 -> 2.0
<sevenseacat> and 2.0 -> 2.1 was smaller again
patrick99e99 has quit [Ping timeout: 250 seconds]
oo_ has joined #ruby
<The_NetZ> almost there....
Hobogrammer_ has joined #ruby
<The_NetZ> so how equivalent are the ruby git and svn repos, pretty much in sync?
Hobogrammer has quit [Ping timeout: 240 seconds]
duncan_ has joined #ruby
<mark06> damic: as you can see, you just need to open the file, go trhough each line, ignore if line = ~ /^\s*\#/, then split by '|', then object.property = columns[index]
oo_ has quit [Ping timeout: 244 seconds]
<mark06> *=~
duncannz has quit [Quit: Bye]
diego_ar has quit [Remote host closed the connection]
t7y9r has quit [Ping timeout: 255 seconds]
ndrei has joined #ruby
Joufflu has joined #ruby
diego_ar has joined #ruby
vinleod has joined #ruby
kyb3r_ has joined #ruby
t7y9r has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
ponga has joined #ruby
x1337807x has joined #ruby
georgedrummond has joined #ruby
elementz has joined #ruby
Dopagod has joined #ruby
sinequanon has joined #ruby
lemur has joined #ruby
ponga has quit [Ping timeout: 264 seconds]
valeriansaliou has joined #ruby
georgedrummond has quit [Ping timeout: 256 seconds]
elementz has quit [Ping timeout: 264 seconds]
baroquebobcat has joined #ruby
sinequanon has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 252 seconds]
lyanchih_ has quit [Quit: lyanchih_]
SOLDIERz_ has joined #ruby
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
mark06 has joined #ruby
adriancb has quit [Remote host closed the connection]
sriehl has quit []
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
psy_ has quit [Remote host closed the connection]
it0a has quit [Quit: WeeChat 1.0.1]
roolo has joined #ruby
psy_ has joined #ruby
philwantsfish has quit []
rshetty has joined #ruby
Milkweed has quit [Ping timeout: 244 seconds]
ndrei has quit [Read error: Connection reset by peer]
philwantsfish has joined #ruby
fernandolopez has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rpag has quit [Ping timeout: 240 seconds]
roolo has quit [Ping timeout: 255 seconds]
MartynKeigher has quit [Read error: Connection reset by peer]
diegoviola has quit [Quit: WeeChat 1.0.1]
SCHAAP137 has quit [Remote host closed the connection]
nonks_ has quit [Ping timeout: 250 seconds]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
goodenough has joined #ruby
mbuf has joined #ruby
<mbuf> how to override this error, 'Network error while fetching https://rubygems.org/quick/Marshal.4.8/actionmailer-3.2.13.gemspec.rz'?
<The_NetZ> mbuf: add rubygems.org to your hosts file
<The_NetZ> dns for that has been DDOSd
dseitz has joined #ruby
<mbuf> The_NetZ, and with what IP address?
<mbuf> The_NetZ, can you provide the exact line entry?
<The_NetZ> dunno, I don't use rubygems much :)
fabrice31 has joined #ruby
<The_NetZ> nope, as I said I know not the ip.
Trieste has joined #ruby
mikepack has joined #ruby
rkalfane_ has quit [Quit: Textual IRC Client: www.textualapp.com]
nonks_ has joined #ruby
fedexo has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
SOLDIERz_ has quit [Quit: Be back later ...]
oo_ has joined #ruby
mikepack has quit [Ping timeout: 256 seconds]
sincerekeeper has joined #ruby
arup_r has joined #ruby
<sincerekeeper> hi
sincerekeeper has left #ruby [#ruby]
benzrf is now known as benzrf|offline
kiyote23 has quit [Remote host closed the connection]
The_NetZ has quit [Ping timeout: 256 seconds]
sailias has quit [Quit: Leaving.]
blueOxigen has quit [Ping timeout: 258 seconds]
bluOxigen has joined #ruby
kiyote23 has joined #ruby
The_NetZ has joined #ruby
oo_ has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
<Hijiri> what do people use to "compile" ruby into a single interpreter-script bundle?
jenrzzz has joined #ruby
bmichelsen has joined #ruby
<Hijiri> in binary form
<Hijiri> I saw something like that, and I was wondering if you could "cross-compile" to windows similarly
Goodbox has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Deele has joined #ruby
kiyote23 has quit [Ping timeout: 245 seconds]
mikepack has joined #ruby
<The_NetZ> Hijiri: used to be rb2exe, but that's dead long ago.
arescorpio has quit [Excess Flood]
samsquanch has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
clamstar has quit [Quit: ZNC - http://znc.in]
<Hijiri> well I basically just modified a script that had rb2exe applied to it
<Hijiri> so I'm guessing it would work if I tried?
clamstar has joined #ruby
arup_r_ has joined #ruby
clamstar has quit [Read error: Connection reset by peer]
<Areessel1> I think Rubinius can do that. I use MRuby for my compiled stuff, though.
<mbuf> sevenseacat, thanks!
clamstar has joined #ruby
Areessel1 is now known as Areessell
<MasterPiece> Who have an idea about this error page : Could not find gem 'capybara (~> 2.1.0) ruby' in the gems available on this machine. (Bundler::GemNotFound) http://paste.ubuntu.com/9340084/
The_NetZ has quit [Ping timeout: 264 seconds]
<sevenseacat> MasterPiece: did you read and follow the instructions
Morkel has joined #ruby
lucyZzZZz has joined #ruby
<Hijiri> can I cross-compile with mruby?
arup_r has quit [Ping timeout: 245 seconds]
<MasterPiece> sevenseacat, yes, I check the permissions and installed capybara by "sudo gem install capybara" , then bundle install && bundle update
The_NetZ has joined #ruby
lucyZzZZz has quit [Client Quit]
lyanchih has joined #ruby
oo_ has joined #ruby
<sevenseacat> MasterPiece: then restarted your server?
lucyinthesky has joined #ruby
quazimod1 has quit [Ping timeout: 255 seconds]
<MasterPiece> sevenseacat, no! init 6 ?
<sevenseacat> ...what?
<MasterPiece> restart all of the O.S ?
<MasterPiece> # init 6
<Areessell> Hijiri: Of course =)
<sevenseacat> no, the web server.
wjimenez5271 has joined #ruby
<Areessell> I'm making a small GUI toolkit in MRuby, cross compiling. It's build into their build system
<Hijiri> how easy is it to just make an exe of a ruby script from a linux machine?
jusmyth has joined #ruby
linoespinoza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MasterPiece> sevenseacat, I restarted all of the server :D , but not any change in the error page
<Areessell> It's a pain to do that regardless
sinequanon has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
The_NetZ has quit [Ping timeout: 264 seconds]
CrazyM4n has joined #ruby
<CrazyM4n> O
<CrazyM4n> I'm not trying to start a flame war by saying this, but from a purely technical standpoint, which is faster? Python, or ruby?
<MasterPiece> sevenseacat, /msg ?
<sevenseacat> MasterPiece: no.
<Areessell> Pfft bahahaha
<MasterPiece> sevenseacat, ok :)
The_NetZ has joined #ruby
<CrazyM4n> I'm writing a renderer that needs to be fast and I'm familiar with both languages
<Areessell> CrazyM4n: Depends on the interpreter and which areas are being benchmarked. Both are "slow".
<Areessell> When using a wrapper around a C or Java library, the code become very very fast
<CrazyM4n> Stock interpreter, using large arrays/lists/whatever you call them
<MasterPiece> sevenseacat, can you get me some clues please?
<Areessell> MasterPiece: Stackoverflow.com
<Areessell> seven is not your personal mentor
ponga has joined #ruby
davasaurous has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
<MasterPiece> sevenseacat, Areessell , ok, Thanks :)
jimmyy has quit [Ping timeout: 255 seconds]
echevemaster has quit [Remote host closed the connection]
ebbflowgo has quit [Quit: ebbflowgo]
<CrazyM4n> Okay, a better question. I'd rather make it in ruby, so what can I do to maximize the performance of the language? Are there alternate interpreters that run faster? Idioms for working with large-ish data that are faster than obvious ways?
jimbach has joined #ruby
Takle has joined #ruby
georgedrummond has joined #ruby
<Areessell> CrazyM4n: Yes there are interpreters that are built for speed. You can make Ruby faster by writing your code in C using the Ruby-C API or your can "wrap" C libraries. You can even use FFI to call C functions directly
Takle has quit [Remote host closed the connection]
nometize has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
Takle has joined #ruby
clamstar has quit [Remote host closed the connection]
<CrazyM4n> I'll look into that, thanks
nagaraj has joined #ruby
<Areessell> Not a problem
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
clamstar has joined #ruby
jimbach has quit [Ping timeout: 256 seconds]
The_NetZ has quit [Ping timeout: 256 seconds]
linoespinoza has joined #ruby
georgedrummond has quit [Ping timeout: 264 seconds]
CrazyM4n has quit [Quit: leaving]
pen has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
rahult has joined #ruby
oo_ has joined #ruby
tyfighter has joined #ruby
aspires has joined #ruby
preyalone has joined #ruby
sevvie has joined #ruby
odin22 has quit [Ping timeout: 258 seconds]
jusmyth has left #ruby [#ruby]
Channel6 has quit [Quit: Leaving]
quazimodo has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
arup_r_ has quit [Remote host closed the connection]
dcunit3d has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
arup_r has joined #ruby
lxsameer has joined #ruby
jonr22 has joined #ruby
Takle has quit [Ping timeout: 272 seconds]
Guest96162 has quit [Ping timeout: 258 seconds]
linoespinoza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
caveat- has quit [Ping timeout: 272 seconds]
charlenopires has quit [Quit: Lingo: www.lingoirc.com]
oleo is now known as Guest55659
oleo__ has joined #ruby
jonr22 has quit [Ping timeout: 272 seconds]
Guest55659 has quit [Ping timeout: 256 seconds]
caveat- has joined #ruby
diego_ar has quit []
lyanchih has quit [Quit: lyanchih]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
nonks_ has quit [Remote host closed the connection]
caveat- has quit [Remote host closed the connection]
The_NetZ has joined #ruby
davasaurous has joined #ruby
<The_NetZ> so, question. should i use the git repo or the svn repo?
<The_NetZ> I've managed to compile the git version
lemur has quit [Ping timeout: 258 seconds]
Guest96162 has joined #ruby
lemur has joined #ruby
bMalum has quit [Quit: bMalum]
JoshGlzBrk has joined #ruby
ohaibbq has joined #ruby
galeido has joined #ruby
caveat- has joined #ruby
MasterPiece has quit [Ping timeout: 272 seconds]
patrick99e99 has joined #ruby
nonks_ has joined #ruby
yfeldblum has quit [Remote host closed the connection]
etqqkoiflwhb has joined #ruby
Mia has joined #ruby
Mia has quit [Changing host]
Mia has joined #ruby
linojon has quit [Quit: linojon]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
havenwood has quit [Remote host closed the connection]
The_NetZ has quit [Read error: Connection reset by peer]
patrick99e99 has quit [Ping timeout: 272 seconds]
elementz has joined #ruby
mbuf has quit [Quit: Leaving]
CpuID has quit [Quit: This computer has gone to sleep]
oleo__ has quit [Quit: Verlassend]
sdwrage has quit [Quit: Leaving]
elementz has quit [Ping timeout: 240 seconds]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
tobago has joined #ruby
baroquebobcat has joined #ruby
tobago has quit [Read error: Connection reset by peer]
Lilian has joined #ruby
MasterPiece has joined #ruby
sgronblo has joined #ruby
<sgronblo> Anybody know the IP for au-m.rubygems.org ?
Persona has joined #ruby
georgedrummond has joined #ruby
<lbrf> sgronblo: $ ping au-m.rubygems.org
<lbrf> PING au-m.rubygems.org (125.7.13.47): 56 data bytes
blueOxigen has joined #ruby
<Goodbox> hi, yeap I have too big troubles to access rubygems.org since this morning
etqqkoiflwhb has quit [Quit: (null)]
<Goodbox> ISP's :-(
georgedrummond has quit [Ping timeout: 250 seconds]
bluOxigen has quit [Ping timeout: 250 seconds]
<sevenseacat> no, DNS
hanmac1 has joined #ruby
<Goodbox> uh, you're right sorry
quazimodo has quit [Quit: leaving]
neoxquick has quit [Read error: Connection reset by peer]
JohnBat26 has joined #ruby
<Goodbox> I'm using opennic tier-2
<Goodbox> TTL ?
tchebb has quit [Ping timeout: 256 seconds]
arup_r has quit [Ping timeout: 244 seconds]
tagrudev has joined #ruby
arup_r has joined #ruby
<sgronblo> lbrf: thanks
hakunin has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
hakunin has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
dotix has joined #ruby
tchebb has joined #ruby
blueOxigen has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
bluOxigen has joined #ruby
Persona has quit [Quit: Leaving]
Gadgetoid has quit [Ping timeout: 244 seconds]
lxsameer has quit [Ping timeout: 255 seconds]
moshee has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
lbrf has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moshee has joined #ruby
Gadgetoid has joined #ruby
Guest19 has joined #ruby
Joufflu has quit [Ping timeout: 258 seconds]
ghostmoth has quit [Quit: ghostmoth]
mark06 has joined #ruby
last_staff has joined #ruby
bMalum has joined #ruby
bal has joined #ruby
Guest19 has quit [Ping timeout: 256 seconds]
shvelo has joined #ruby
<scottstamp> :( the ror wiki is down
<sevenseacat> rails has a wiki?
<scottstamp> I'm tempted to say it did.
<scottstamp> lol
<sevenseacat> oh, the really old one that no-one updated in years?
arup_r_ has joined #ruby
<scottstamp> wiki.rubyonrails.org, but its either down or being DDoSed
<scottstamp> oh... I don't know?
arup_r has quit [Ping timeout: 240 seconds]
<sevenseacat> the wiki isnt being DDoSed, the *DNS provider* is
jenrzzz has quit [Ping timeout: 272 seconds]
<scottstamp> sevenseacat, seems weird that could affect a subdomain and not a root
anaeem1 has joined #ruby
shvelo has quit [Ping timeout: 258 seconds]
Spami has joined #ruby
anaeem1 has quit [Remote host closed the connection]
last_staff has quit [Quit: last_staff]
yfeldblum has joined #ruby
nyanz has quit []
apeiros_ has quit [Remote host closed the connection]
Joufflu has joined #ruby
anaeem1_ has joined #ruby
apeiros_ has joined #ruby
<hanmac1> hm is there already a wiki-software in ruby? because currently i am thinking about one ;P
sski has quit [Remote host closed the connection]
aganov has joined #ruby
sski has joined #ruby
jonr22 has joined #ruby
last_staff has joined #ruby
davasaurous has quit [Remote host closed the connection]
<scottstamp> I've used Gollum before, it's a nice base.
baroquebobcat has quit [Quit: baroquebobcat]
valeriansaliou has joined #ruby
sevvie has quit [Remote host closed the connection]
davasaurous has joined #ruby
apeiros_ has quit [Ping timeout: 250 seconds]
sevvie has joined #ruby
last_staff has quit [Client Quit]
jonr22 has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
jonr22 has joined #ruby
davasaurous has quit [Remote host closed the connection]
sski has quit [Ping timeout: 256 seconds]
last_staff has joined #ruby
rshetty has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
yfeldblum has quit [Remote host closed the connection]
jonr22 has joined #ruby
ghostmoth has joined #ruby
arup_r has joined #ruby
yfeldblum has joined #ruby
arup_r_ has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
ghostmoth has quit [Client Quit]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
valeriansaliou has quit [Ping timeout: 272 seconds]
noop has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
rahult is now known as rahult_
rahult_ is now known as rahult
lyanchih_ has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
lampd1 has quit [Remote host closed the connection]
rahult has quit [Quit: Back to the world of zombies]
<hanmac1> scottstamp: hm Gollum seems to be interesting too ... if i have freetime i might look at it ... (hm otherwise i might try my own one ;p )
jonr22 has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
jonr22 has joined #ruby
jimbach has joined #ruby
valeriansaliou has joined #ruby
posixpascal has joined #ruby
rshetty has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
wjimenez5271 has quit [Read error: Connection reset by peer]
rshetty_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
wjimenez5271 has joined #ruby
jonr22 has quit [Remote host closed the connection]
<sevenseacat> what does it look like?
jonr22 has joined #ruby
boombadaroomba has quit [Ping timeout: 245 seconds]
tyfighter has quit [Quit: tyfighter]
bigkevmcd has joined #ruby
jimbach has quit [Ping timeout: 258 seconds]
sevvie has quit [Quit: leaving]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
valeriansaliou has quit [Ping timeout: 264 seconds]
arup_r has quit [Ping timeout: 252 seconds]
arup_r has joined #ruby
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jonr2219 has quit [Remote host closed the connection]
<hanmac1> mark06: hm for me it does look like rubygems page ... with TAGS and Categories ;P
jonr22 has joined #ruby
nrsk has joined #ruby
<soahccc> scottstamp: the wiki does resolve for me but the IP behind it does not respond, weird
anarang has joined #ruby
sinequanon has quit []
anarang is now known as anisha
dotix has quit [Ping timeout: 258 seconds]
<mark06> hanmac1: :-/
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
jonr2219 has quit [Remote host closed the connection]
jonr22 has joined #ruby
aspires has quit []
rshetty_ has quit [Remote host closed the connection]
jusmyth has joined #ruby
fxn has joined #ruby
georgedrummond has joined #ruby
jusmyth has left #ruby [#ruby]
jonr22 has quit [Remote host closed the connection]
Jake232 has joined #ruby
kiyote23 has joined #ruby
Cyberheb has joined #ruby
jonr22 has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
georgedrummond has quit [Ping timeout: 252 seconds]
fedexo has quit [Ping timeout: 245 seconds]
KLVTZ has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
MasterPiece has quit [Remote host closed the connection]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
wjimenez5271 has quit [Read error: Connection reset by peer]
wjimenez5271 has joined #ruby
adriancb has joined #ruby
Linuus has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
Jake232 has quit [Quit: Textual IRC Client: www.textualapp.com]
jonr22 has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
jonr22 has joined #ruby
jonr22 has quit [Remote host closed the connection]
adriancb has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
fabrice31 has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
ponga has quit [Remote host closed the connection]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
wjimenez5271 has quit [Read error: Connection reset by peer]
wjimenez5271 has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
ValicekB has quit [Ping timeout: 255 seconds]
bmichelsen has joined #ruby
preyalone has quit [Quit: Connection closed for inactivity]
jdj_dk has joined #ruby
rshetty has joined #ruby
jdj_dk has quit [Remote host closed the connection]
Soda has joined #ruby
sevvie has joined #ruby
jonr2219 has quit [Remote host closed the connection]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
jonr22 has joined #ruby
baweaver has joined #ruby
fxn has quit [Quit: zZzZzZ...]
Vile` has quit [Ping timeout: 255 seconds]
Cyberheb has quit [Ping timeout: 245 seconds]
codecop has joined #ruby
baweaver has quit [Remote host closed the connection]
Kricir has joined #ruby
baweaver has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
kwd has joined #ruby
bkolden has quit [Quit: Leaving]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
KLVTZ has quit [Ping timeout: 245 seconds]
lemur has quit [Remote host closed the connection]
agjacome has quit [Quit: leaving]
lemur has joined #ruby
Takle_ has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
kamilc__ has joined #ruby
jonr22 has joined #ruby
shortCircuit__ has joined #ruby
SOLDIERz_ has joined #ruby
axisys has quit [Quit: leaving]
andikr has joined #ruby
axisys has joined #ruby
axisys has quit [Changing host]
axisys has joined #ruby
jonr2219 has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
lemur has quit [Ping timeout: 258 seconds]
jonr22 has quit [Read error: Connection reset by peer]
kyb3r_ has quit [Read error: Connection reset by peer]
Takle has quit [Ping timeout: 250 seconds]
jonr22 has joined #ruby
Takle_ has quit [Ping timeout: 244 seconds]
Vile` has joined #ruby
kyb3r_ has joined #ruby
Takle has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
kyb3r_ has quit [Max SendQ exceeded]
User458764 has joined #ruby
SOLDIERz_ has quit [Ping timeout: 264 seconds]
michael_mbp has quit [Ping timeout: 240 seconds]
Megtastique has quit []
dumdedum has joined #ruby
kyb3r_ has joined #ruby
posixpascal has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
Cyberheb has joined #ruby
Cork has quit [Ping timeout: 272 seconds]
ayaz has joined #ruby
Sou|cutter has quit [Ping timeout: 240 seconds]
michael_mbp has joined #ruby
elementz has joined #ruby
jonr22 has joined #ruby
papercode has quit [Ping timeout: 245 seconds]
jonr2219 has quit [Read error: Connection reset by peer]
davasaurous has joined #ruby
oo_ has quit [Remote host closed the connection]
rcs has quit [Ping timeout: 240 seconds]
Cork has joined #ruby
Takle has quit [Ping timeout: 252 seconds]
apeiros_ has joined #ruby
oo_ has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
RTG` has quit [Remote host closed the connection]
JoshGlzBrk has quit [Read error: Connection reset by peer]
rcs has joined #ruby
cibs has quit [Remote host closed the connection]
cibs has joined #ruby
Kricir has quit [Remote host closed the connection]
jonr2219 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
elementz has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
davasaurous has quit [Ping timeout: 252 seconds]
sevvie has quit [Quit: leaving]
RTG` has joined #ruby
Takle has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
Takle has joined #ruby
patrick99e99 has joined #ruby
SOLDIERz_ has joined #ruby
livathinos has joined #ruby
sevvie has joined #ruby
jonr22 has joined #ruby
sevvie has quit [Client Quit]
jonr2219 has quit [Read error: Connection reset by peer]
sevvie has joined #ruby
sevvie has quit [Client Quit]
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
<shevy> rubygems is still down?
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
patrick99e99 has quit [Ping timeout: 250 seconds]
<sevenseacat> yep.
timonv_ has quit [Remote host closed the connection]
jonr2219 has quit [Read error: Connection reset by peer]
econerd4ever has joined #ruby
jonr22 has joined #ruby
tvw has joined #ruby
yfeldblu_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
TomyWork has joined #ruby
jonr22 has quit [Remote host closed the connection]
jonr22 has joined #ruby
Or1on has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 272 seconds]
econerd4ever has quit [Remote host closed the connection]
einarj has joined #ruby
<certainty> rubyists may i have your humble oppinion? https://gist.github.com/anonymous/e5fcefd8cb3e471292e1 please have a look at this and tell me which one you consider better stylewise
<apeiros_> the one with empty lines
<soahccc> My rule of thumb: more whitespace the better
msgodf has joined #ruby
<ponga> same
jonr22 has quit [Remote host closed the connection]
<certainty> apeiros_: soahccc ponga thanks for your answers. that's my point of view too
<sevenseacat> definitely version 2
<shevy> certainty version 2; it visually makes it easier to at a glance know where the inner code starts and stops
jonr22 has joined #ruby
<sevenseacat> conceptual blocks on the same indentation level should be separated by whitespace
<shevy> though I'd have added a newline before that last end, too
<certainty> shevy: sevenseacat: thanks for your answers too. very appreciated
arup_r has quit [Remote host closed the connection]
<certainty> sevenseacat: yepp, another point i've given
<shevy> oh you also have used foo=bar vs. foo = bar
<shevy> so also the second variant
HOS_nerv has quit [Ping timeout: 250 seconds]
<sevenseacat> good point shevy
<certainty> shevy: yes
<apeiros_> I only use spaceless assign in method def.
<shevy> you mean like so? def foo(bar='test')
<hanmac1> shevy hm http://rubygems.org/ is up for me ...
iamninja has quit [Quit: ZZZzzz…]
<shevy> hanmac1 yes I tried not long ago, it was up too \o/
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
<shevy> armageddon has been prevented
mkaesz has joined #ruby
AxonetBE has joined #ruby
<shevy> until another wave of zombies
sk87 has joined #ruby
<sevenseacat> the site is up for me, but i still cant gem install anything or bundle
User458764 has quit [Ping timeout: 255 seconds]
<certainty> thanks for your time and have a productive day
shredding has joined #ruby
georgedrummond has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
<soahccc> it's ain't gonna be productive if that ddos won't stop
User458764 has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
Aswebb has joined #ruby
Sou|cutter has joined #ruby
tesuji has joined #ruby
wjimenez5271 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
papercode has joined #ruby
<shevy> what was the equivalent on an Array to .shuffle[0] again?
<shevy> the [0] is going on my nerves :\
<apeiros_> .sample
<sevenseacat> .sample
<sevenseacat> arrrr too slow
<apeiros_> and it's not an equivalent. it's much faster.
dotix has joined #ruby
georgedrummond has quit [Ping timeout: 252 seconds]
jonr2219 has quit [Read error: Connection reset by peer]
claudiuinberlin has joined #ruby
wjimenez5271 has quit [Ping timeout: 240 seconds]
jonr22 has joined #ruby
claudiuinberlin has left #ruby [#ruby]
JoshGlzBrk has joined #ruby
MasterPiece has joined #ruby
econerd4ever has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
<certainty> ok another last one. class << self; def something; end end vs. def self.something; end?
<sevenseacat> i'd use the latter.
<apeiros_> def self.something
<apeiros_> better grepabiity
<sevenseacat> but only because the former starts getting into strange ruby metaprogramming stuff that im really unfamiliar with
<apeiros_> sevenseacat: oh noes! don't say that :D
<certainty> apeiros_: hmm ok. that one is unexpected. I'd vote do the first if there is more than one method. because you can group them together. also conceptually the first version reduces complexity because you only have instance methods
CustosL1men has joined #ruby
<certainty> no other kind of method
<apeiros_> sevenseacat: it's really the same as `class Foo`, just that it opens Foo's singleton class instead of the class Foo itself.
<sevenseacat> apeiros_: is true. learning ruby at the same time as rails means i know enough to work with rails, and not much more.
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
<apeiros_> certainty: if it helps you - there is nothing else in ruby than instance methods
<certainty> apeiros_: that's my point
<apeiros_> that concept called class methods - it doesn't exist
nfk has joined #ruby
<certainty> with the self.something syntax somehow complects this as you have different syntax
krz has quit [Ping timeout: 240 seconds]
<certainty> well one could argue that class << self .... end ... is also new syntax
<apeiros_> well, with `class <<` vs `class` you have different syntax too ;-)
<certainty> yeah
<apeiros_> anyway, main reason for me is grep
<apeiros_> other than that - I wouldn't care for either style
<certainty> that i can accept
jonr2219 has joined #ruby
<apeiros_> and I have to admit that since pry, I rarely ever use grep anymore
<apeiros_> so that rationale might well be obsolete by now
jonr22 has quit [Read error: Connection reset by peer]
<certainty> again thanks for your answers
<apeiros_> class << self has some advantages - you can put attr_*, alias and stuff in there too
jonr2219 has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
roolo has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
melik_______ has quit [Ping timeout: 272 seconds]
roolo has quit [Ping timeout: 256 seconds]
razieliyo has joined #ruby
razieliyo has joined #ruby
kyb3r_ has quit [Quit: Leaving]
jonr2219 has joined #ruby
mikepack has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
wpp has joined #ruby
jonr2219 has quit [Remote host closed the connection]
jonr22 has joined #ruby
HOS_nerv has joined #ruby
olivier_bK has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
dts has quit [Read error: Connection reset by peer]
<Areessell> And class instance variables
timonv_ has joined #ruby
<apeiros_> Areessell: um, no
<certainty> apeiros_: yeah it's only one concept. That's why i chose to teach it this way to a colleague
<apeiros_> those you have to assign in the normal class body
razieliyo has quit [Quit: Saliendo]
dts has joined #ruby
jonr2219 has joined #ruby
ghr has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
susmus has joined #ruby
bMalum has quit [Quit: bMalum]
arup_r has joined #ruby
georgedrummond has joined #ruby
<certainty> to be fair the class << self .. syntax looks somewhat alien. but it was only a little hurdle
rshetty has quit [Remote host closed the connection]
Takle has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
MikeyB_ has joined #ruby
<shevy> yeah, class << self always trips me up as well; for some reason it conflicts with other code
<shevy> (in my .rb file)
<MikeyB_> hey guys, I want to use ruby to write a shell script, but it doesn't act quite the same as a bash script, how can I shell out to other apps, fully capture their output on to stdout/stderr, etc and run them in the same env as my script like, it happens in bash?
<apeiros_> I'd have preferred if matz had chosen another keyword for that
jonr22 has quit [Remote host closed the connection]
<apeiros_> e.g. `singleton_class Foo; …; end`
jonr22 has joined #ruby
<apeiros_> MikeyB_: ``
<apeiros_> MikeyB_: if you don't want to capture but just let it print to stdout/stderr itself: system()
tobago has joined #ruby
<MikeyB_> system might do it, I first tried with puts `something` which caused something to explode, forwhat I can only assume was environmental variables not being passed
timonv_ has quit [Remote host closed the connection]
<apeiros_> `` and backticks should pass on the full env
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
<epitron> MikeyB_: i find system is the nicest
<shevy> `` is more useful
<epitron> you can use IO.popen("command") { |stdout| stdout.each_line { ... } } if you want to iterate over each line as it comes out, but then you'll get a buffer...
bmichelsen has quit [Quit: ZZZzzz…]
<epitron> buffering means you won't see any lines until there's like 4k of data or something
<epitron> you can set something to make it not buffered.. i can't remember what that is
<epitron> IO.sync?
econerd4ever has quit [Remote host closed the connection]
jimbach has joined #ruby
jonr22 has joined #ruby
jonr2219 has quit [Read error: Connection reset by peer]
<MikeyB_> I'm not bothered about actually capturing it, I just want it output as it would via bash (as in, as it comes out of the script, it goes to STDOUT/STDERR)
econerd4ever has joined #ruby
<epitron> open3 lets you have stdout, stderr, stdin... but i could never figure out how to interleave stderr and stdout the same way bash does :)
<epitron> yeah, use system :)
rshetty has joined #ruby
<epitron> i really like system because you don't have to shell-escape arguments with weird chars in them
roolo_ has joined #ruby
<epitron> you just go, system("command", arg_with_weird_chars)
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
<epitron> the arg_with_weird_chars will be passed directly to the command binary's arguments, without being molested by bash
timonv_ has joined #ruby
jgrevich has quit [Quit: jgrevich]
<MikeyB_> epitron: cool, will try that :)
<apeiros_> yes. shell injection is about as common a mistake as sql injection
<soahccc> epitron: there is popen2e or something
<MikeyB_> its only a CI build script
<apeiros_> "oh no, this user input will never be malicious, just put it in verbatim" :-S
<epitron> soahccc: so many ways to run things :)
<MikeyB_> just hating bash syntax and weird differences between osx and linux version
<epitron> haha, yeah.. i stopped writing bash scripts in bash a few years ago
<epitron> everything is ruby now
krz has joined #ruby
<epitron> sooo much nicer
francisfish has joined #ruby
<apeiros_> MikeyB_: just install the same bash (or whatever sh you use)?
<epitron> (i mean, unless it's like a 2 line script)
<apeiros_> (re osx vs. linux version)
jimbach has quit [Ping timeout: 258 seconds]
<MikeyB_> apeiros: its on circle ci (a host I don't have control over bash version)
jheg has joined #ruby
econerd4ever has quit [Ping timeout: 264 seconds]
<MikeyB_> also, ruby would be nicer :P I'm doing more complex stuff, where I pull a list of rspec tests to run for each test node, based on how many examples each one has, etc.. so in a bash script, its nasty
<epitron> indeed
<epitron> in ruby, you can just hook into rspec directly
jonr22 has joined #ruby
jonr2219 has quit [Ping timeout: 250 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
sevenseacat has quit [Remote host closed the connection]
dseitz has quit [Quit: Textual IRC Client: www.textualapp.com]
lolmaus has quit [Quit: Konversation terminated!]
oo_ has quit [Remote host closed the connection]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
toretore has joined #ruby
<soahccc> apeiros_: os x has some oddities related to BSD... Like all the GNU tools
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
narcan has joined #ruby
Deltini has joined #ruby
<apeiros_> soahccc: well, same thing there - install gnu tools if you want those
Deltini has left #ruby ["Saindo"]
<apeiros_> wouldn't call it oddities either
rockdon has quit [Ping timeout: 258 seconds]
<soahccc> apeiros_: well you can with brew but they are prefixed... Example which bugged me: du has no -B
jonr2219 has quit [Remote host closed the connection]
<apeiros_> I usually stumble over diffs in ps
StoneCypher has quit [Ping timeout: 245 seconds]
<apeiros_> prefixed is probably sane
jonr22 has joined #ruby
SOLDIERz has joined #ruby
<apeiros_> consider all the tools which assume system tools to be as installed normally
<apeiros_> you can always alias them for your shell
rshetty has quit [Remote host closed the connection]
rockdon has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
jonr22 has joined #ruby
emmesswhy has joined #ruby
<soahccc> sure, makes sense. I think I aliased most of the "normal commands" to provide enhanced experience for me (most others might hate it)
Takle has quit [Remote host closed the connection]
henesy has quit [Ping timeout: 258 seconds]
SOLDIERz_ has quit [Ping timeout: 240 seconds]
jonr22 has quit [Read error: Connection reset by peer]
jonr2219 has joined #ruby
dramalho has joined #ruby
<Areessell> beg = bundle execute guard
<Areessell> I love typing that one in >_>
bMalum has joined #ruby
<shevy> what about
<shevy> pig
<Areessell> Which would be?
<shevy> I have no idea
jonr22 has joined #ruby
<shevy> python install something
<DefV> lol
jonr2219 has quit [Read error: Connection reset by peer]
<Areessell> I wonder about you sometimes
georgedrummond has quit [Remote host closed the connection]
<epitron> soahccc: BSD unix tools bug me too
elementz has joined #ruby
jonr2219 has joined #ruby
jonr22 has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
bMalum has quit [Read error: Connection reset by peer]
jonr2219 has quit [Read error: Connection reset by peer]
ohaibbq has quit [Quit: Leaving...]
jonr22 has joined #ruby
reinaldob has joined #ruby
<epitron> this is my favorite thing about BSD tools:
<epitron> ls --help
<epitron> ls: illegal option -- -
<epitron> usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwxy1,] [-D format] [file ...]
<epitron> :D
<epitron> SO HELPFUL
Linuus has quit [Ping timeout: 244 seconds]
jonr22 has quit [Read error: Connection reset by peer]
<epitron> "supported options: every letter in the alphabet"
jonr22 has joined #ruby
Takle has joined #ruby
mikecmpbll has joined #ruby
oo_ has quit [Remote host closed the connection]
<Areessell> And a few numbers! Now including punctuation!
elaptics`away is now known as elaptics
alaa has joined #ruby
MikeyB_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<epitron> \o/
<epitron> (c) 1973 Univerity of Berkeley
oo_ has joined #ruby
jusmyth1 has joined #ruby
jonr22 has quit [Ping timeout: 240 seconds]
marr has joined #ruby
bMalum has joined #ruby
Deltini has joined #ruby
oo__ has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
ikaros has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
uber_hulk has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
kyb3r_ has quit [Read error: Connection reset by peer]
lemur has joined #ruby
heftig_ is now known as heftig
lsmola has quit [Ping timeout: 240 seconds]
jottr has joined #ruby
<shevy> cool
<shevy> most folks here were not born yet
giuseppesolinas has joined #ruby
elementz has quit [Ping timeout: 240 seconds]
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
TheRinger has quit [Ping timeout: 272 seconds]
davasaurous has joined #ruby
TheRinger has joined #ruby
Deltini has quit [Quit: Saindo]
lucyinthesky has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
bMalum has quit [Quit: bMalum]
<certainty> shevy: i'm pretty sure most of them are born already :p
<shevy> nah
<shevy> benzrf|offline for instance not
unshadow has joined #ruby
<soahccc> shevy: he'y Hansing you
rshetty has joined #ruby
<soahccc> *he's
blueOxigen has joined #ruby
<shevy> oh you are right
<shevy> I kinda read "were born"
davasaurous has quit [Ping timeout: 240 seconds]
doki-worry has joined #ruby
<certainty> *scnr*
rodfersou has joined #ruby
<soahccc> shevy: did you actually understand what I meant by Hansing? :D
<certainty> Han Sing, a province in china
kiyote23 has quit [Read error: Connection reset by peer]
<soahccc> no quite close
<shevy> soahccc sure. Hanse ... the old merchant guild in medieval northern germany... thus, hansing ... to rip one off in a way
bluOxigen has quit [Ping timeout: 264 seconds]
<soahccc> shevy: wow. no it's not that serious :D http://www.allmystery.de/i/t5d9fb6_rechtschreib-flame.jpg
<shevy> cool
<certainty> soahccc: haha
<shevy> you coined him a word
<soahccc> certainty: I hope you don't get it :D
<shevy> now if only shevying were to exist
<certainty> soahccc: i do. i'm german
AndChat| has quit [Ping timeout: 272 seconds]
sameerynho has joined #ruby
<shevy> certainty not everyone can be perfect
<certainty> bah, stop it xp
<shevy> hmm
<shevy> certainty north germany?
<certainty> yepp
<shevy> I think I have never seen a bavarian coder here
<certainty> i only know one
<certainty> but he's not a ruby dev
<txdv> Hans ist ein toller Typ
* certainty looks at hanmac1 xD
<txdv> Willst du meinen Hans sehen?
lsmola has joined #ruby
<AxonetBE> How can I get the result of new_params with combining my params array and new_type array? https://gist.github.com/DriesS/de3e217e7077fc30e297
<shevy> I hate Hans already
lxsameer has quit [Ping timeout: 258 seconds]
<soahccc> AxonetBE: I guess you want merge or deep_merge or something like that?
<AxonetBE> soahccc: yes but I don’t know how to do it with multi hashes
Juanchito has joined #ruby
AlSquire has joined #ruby
<certainty> also set intersection on the array?
quimrstorres has joined #ruby
lkba has joined #ruby
Aswebb has quit [Remote host closed the connection]
<AxonetBE> certainty: no
armyriad has quit [Ping timeout: 245 seconds]
<certainty> AxonetBE: then i don't understand how you "combine" ["1", "2", "3", "4"] and ["4"] to ["4"]
kiyote23 has joined #ruby
<certainty> need more information
quimrstorres has quit [Remote host closed the connection]
pen has quit []
<AxonetBE> in fact, I just want to delete/overwrite the hash values of a certain key with the new values
armyriad has joined #ruby
<AxonetBE> so I do params = []; params << {:type => [1,2,3]}; params << {:type => [4]};
<AxonetBE> I just want to have params = [{:type => [4]}]
<certainty> AxonetBE: why do you have an array of hashes instead of just a hash?
quimrstorres has joined #ruby
rdark has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tonix has joined #ruby
tchebb has quit [Ping timeout: 240 seconds]
nanashiRei has quit [Ping timeout: 264 seconds]
<AxonetBE> certainty:I save some params in it
joonty has joined #ruby
lxsameer_ has joined #ruby
duncan_ has quit [Ping timeout: 255 seconds]
<shevy> HAS THAT ANSWERED YOUR QUESTION certainty
<AxonetBE> as the params are already a hash like {:type => [4]}, {:speed => [10, 15]} I just store them into an array
Aswebb has joined #ruby
sameerynho has quit [Ping timeout: 258 seconds]
nfk has quit [Quit: yawn]
lyanchih_ has quit [Ping timeout: 272 seconds]
tchebb has joined #ruby
<hanmac1> AxonetBE: like that?
<hanmac1> >> params = [ {"type"=>["1", "2", "3", "4"]}, {"exposure"=>["1"]} ]; new_type = {"type" => ["4"]}; [*params, new_type].each_with_object({}) {|h,o| o.merge!(h) }
<eval-in__> hanmac1 => {"type"=>["4"], "exposure"=>["1"]} (https://eval.in/229306)
TPBallbag has joined #ruby
nanashiRei has joined #ruby
bayed has joined #ruby
Areessell has quit [Ping timeout: 264 seconds]
dangerou_ has joined #ruby
dangerou_ has quit [Client Quit]
sameerynho has joined #ruby
dangerou_ has joined #ruby
Linuus has joined #ruby
workmad3 has joined #ruby
<certainty> shevy: don't yell at me :(
lxsameer_ has quit [Ping timeout: 252 seconds]
konsolebox has quit [Remote host closed the connection]
alaa has quit [Ping timeout: 256 seconds]
<shevy> ohhh
<shevy> I just thought up a great alias!
<shevy> hescape rather than html_escape!
<workmad3> rubygems back up?
<shevy> YES
<workmad3> yay
<shevy> your 10 hours of sleep has been a good strategy workmad3
<xfz> I wish I had slept for 10 hours
<workmad3> shevy: I do love how attacks tend to be done to US timescales... means I can see them happening when going to bed and they're frequently sorted by the time I wake up ;)
<workmad3> xfz: same :(
sameerynho has quit [Ping timeout: 252 seconds]
<shevy> haha
<shevy> and what if godzilla attacks while you are sleeping
<workmad3> shevy: then I'll wake up and tokyo will be in ruins...
<workmad3> shevy: but I don't live in tokyo, so I fail to see why I'd be affected :P
<arup_r> How can I see what gems are installed inside a Gemset.. I am using Rvm
MasterPiece has quit [Ping timeout: 245 seconds]
<arup_r> I think gem list is not right command to meet my need
<workmad3> arup_r: activate the gemset and run 'gem list -l'
<thomasfedb> workmad3, you beat me.
Timgauthier has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
sameerynho has joined #ruby
Timgauthier is now known as timgauthier_away
<workmad3> arup_r: unless you've installed a lot of gems in the @global gemset (which you shouldn't do... really all you need in that is bundler, which is frequently installed by default), 'gem list -l' will be the one or two gems from @global and the gems in your gemset
<workmad3> arup_r: alternatively, you could find the path of the gemset gem directory and just explore that to see which gems are installed into it
nonks_ has quit [Ping timeout: 250 seconds]
rageberry has joined #ruby
<arup_r> Yes.. But I am not seeing the gems that I have in my Gemfile in the Gemset, where it should be present.. I am shocked,, :-(
<arup_r> I used Bundler...
<workmad3> arup_r: bundler can install gems into other locations (and gems installed from git repos are stored completely differently)
<workmad3> arup_r: if you want to see all of them, run 'bundle exec gem list'
<arup_r> Ahh! that's interesting.. Let me try
cajone has quit [Ping timeout: 258 seconds]
lsmola has quit [Ping timeout: 240 seconds]
Linuus has quit [Ping timeout: 240 seconds]
lkba has quit [Ping timeout: 264 seconds]
TPBallbag is now known as AFKBallbag
<arup_r> No.. Nothing changed..
alaa has joined #ruby
<arup_r> :-(
alaa has quit [Client Quit]
<soahccc> there is also bundle open <3
<soahccc> oh rvm ... don't ask me
Hobogrammer_ has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
bMalum has joined #ruby
AFKBallbag is now known as TPBallbag
Spami has quit [Quit: This computer has gone to sleep]
lolmaus has joined #ruby
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rageberry has quit [Ping timeout: 256 seconds]
genpaku_ is now known as genpaku
oo__ has quit [Remote host closed the connection]
MasterPiece has joined #ruby
ldnunes has joined #ruby
ajaiswal has quit [Quit: Leaving]
renderful has joined #ruby
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
oo_ has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
oo_ has joined #ruby
renderful has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
rshetty has joined #ruby
lsmola has joined #ruby
gccostabr has joined #ruby
blueOxigen has quit [Ping timeout: 272 seconds]
georgedrummond has joined #ruby
SOLDIERz has quit [Remote host closed the connection]
SOLDIERz has joined #ruby
lyanchih_ has joined #ruby
jimbach has joined #ruby
bMalum has quit [Quit: bMalum]
lyanchih_ has quit [Client Quit]
LiquidInsect has quit [Ping timeout: 245 seconds]
sk87 has joined #ruby
startupality has quit [Quit: startupality]
startupality has joined #ruby
sk87 has quit [Client Quit]
dangerou_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Takle has quit [Read error: Connection reset by peer]
dangerou_ has joined #ruby
Takle has joined #ruby
rageberry has joined #ruby
jimbach has quit [Ping timeout: 258 seconds]
sk87 has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Linuus has joined #ruby
Lokalni has joined #ruby
dangerou_ has quit [Client Quit]
dANO has joined #ruby
tkuchiki has joined #ruby
magicien has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
rhalff has left #ruby ["Leaving"]
emmesswhy has joined #ruby
Lokalni has left #ruby ["WeeChat 0.4.2"]
xymbol has quit [Read error: Connection reset by peer]
LiquidInsect has joined #ruby
xymbol has joined #ruby
emmesswhy has quit [Client Quit]
dangerou_ has joined #ruby
Linuus has quit [Ping timeout: 250 seconds]
dangerou_ has quit [Client Quit]
rageberry has quit [Ping timeout: 272 seconds]
georgedrummond has quit []
tkuchiki has quit [Ping timeout: 264 seconds]
yfeldblu_ has quit [Remote host closed the connection]
bMalum has joined #ruby
ht__th has joined #ruby
SOLDIERz_ has joined #ruby
ht has quit [Ping timeout: 244 seconds]
dumdedum has quit [Quit: foo]
fxn has joined #ruby
bal has quit [Ping timeout: 240 seconds]
SOLDIERz_ has quit [Client Quit]
SOLDIERz has quit [Ping timeout: 240 seconds]
ponga has quit [Remote host closed the connection]
<arup_r> Not able to understand why I am not getting the output in my IRB console for the line - https://gist.github.com/aruprakshit/2f6b803c82d97e4dd826#file-request-rb-L21 .. I am trying to print it to debug .. But not getting output in the ZIRB
<arup_r> *IRB
emmesswhy has joined #ruby
boombadaroomba has joined #ruby
baweaver has joined #ruby
iaj has quit [Ping timeout: 272 seconds]
Morkel has quit [Read error: Connection reset by peer]
<certainty> today is question-day for me.
lolmaus has quit [Remote host closed the connection]
jonr22 has joined #ruby
lolmaus has joined #ruby
Morkel has joined #ruby
<exadeci> Hello, I'm on a project where in a method it will look for Admin::User or SuperAdmin::User that don't exist and the "hack" that has been done is creating empty classes that inherit from user. What could I do so it doesn't need theses empty classes (Except unfortunately by changing the method that does theses calls)
boombadaroomba has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 1.0.1]
timonv_ has quit [Remote host closed the connection]
dumdedum has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
krz has joined #ruby
nhhagen has joined #ruby
mkaesz has quit [Ping timeout: 258 seconds]
bMalum has quit [Quit: bMalum]
nonks_ has joined #ruby
bMalum has joined #ruby
User458764 has quit [Ping timeout: 255 seconds]
AFKGeek has joined #ruby
fabrice31 has quit [Remote host closed the connection]
MasterPiece has quit [Remote host closed the connection]
jusmyth1 has quit [Quit: Leaving.]
iamninja has joined #ruby
SCHAAP137 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
lemur has quit [Remote host closed the connection]
lemur has joined #ruby
davasaurous has joined #ruby
nonks_ has quit [Ping timeout: 250 seconds]
goodenough has quit [Remote host closed the connection]
sonOfRa has quit [Quit: Bye!]
bal has joined #ruby
odin22 has joined #ruby
sonOfRa has joined #ruby
lemur has quit [Ping timeout: 258 seconds]
MasterPiece has joined #ruby
davasaurous has quit [Ping timeout: 258 seconds]
iaj has joined #ruby
Tranquility has joined #ruby
odin22 has quit [Ping timeout: 264 seconds]
hiyansa has joined #ruby
doki-worry has quit [Ping timeout: 272 seconds]
bal has quit [Quit: bal]
wsmoak has joined #ruby
wsmoak has quit [Changing host]
wsmoak has joined #ruby
ta has quit [Remote host closed the connection]
ponga has joined #ruby
ponga has joined #ruby
bal has joined #ruby
charliesome has quit [Quit: zzz]
fabrice31 has joined #ruby
doodlehaus has joined #ruby
timonv_ has joined #ruby
QKO has quit [Ping timeout: 240 seconds]
dayid has joined #ruby
browndawg has joined #ruby
Akagi201_ has quit []
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
nagaraj has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Remote host closed the connection]
nagaraj has joined #ruby
SCHAAP137 has joined #ruby
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
timgauthier_away is now known as Timgauthier
techsethi has joined #ruby
arup_r_ has joined #ruby
surs has joined #ruby
sptx00 has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
koderok has joined #ruby
ponga has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Linuus has joined #ruby
Photism has joined #ruby
mkaesz has joined #ruby
maasha has joined #ruby
quimrstorres has joined #ruby
koderok has quit [Client Quit]
jusmyth has joined #ruby
Aswebb has quit [Remote host closed the connection]
<maasha> Hi, do we have a smart way to determine the common longest prefix between a stack of strings?
QKO has joined #ruby
Linuus has quit [Ping timeout: 255 seconds]
francisfish has quit []
kobain has joined #ruby
AlexRussia has joined #ruby
<hiyansa> why is it every time i type linus in google the first result is linus torvalds?
<godd2> It might be personalized results?
<workmad3> hiyansa: which other linus would you like? :)
<xfz> hiyansa: were you expecting pictures of your cat linux as top result?
<tobiasvl> are there any other linuses who are more well-known?
<xfz> linus*
Spami has joined #ruby
<godd2> you can have google give you general results by clicking the little globe on the top left
<hiyansa> yes linus is a misspelling if sinus
<xfz> which globe are you talking about godd2?
<hiyansa> you get dyslexic and type l instead of s
<godd2> tobiasvl linus from peanuts?
<hiyansa> they're both on your ring fingers
rzsd has joined #ruby
<workmad3> hiyansa: unfortunately, people also legitimately search for linus as it's the name of a well-known figure
<hiyansa> linus in google should say "did you mean sinus"
<godd2> xfz the little globe next to the gear icon after you search something
arup_r has joined #ruby
<hiyansa> workmad3: why would you search for linus torvalds?
<xfz> I have the gear icon, but no globe
<hiyansa> that seems pretty stupid
<tobiasvl> godd2: yeah, maybe. almost all images are of the peanuts character though
claptor has quit [Quit: this channel is bakas]
<godd2> xfz are you logged in?
<workmad3> hiyansa: are you just trolling now? :P
<hiyansa> no
dazeddev_ is now known as dazeddev
<godd2> it might only be if you're logged into a google service
<godd2> that must be why
<xfz> I am logged in
<hiyansa> i'm serious, if you have a sinus problem it's a google search away from fixing it, i never heard of anyone having a linus problem
arup_r_ has quit [Ping timeout: 250 seconds]
<workmad3> hiyansa: 'did you mean linux problem?'
livingstn has joined #ruby
DLSteve has joined #ruby
tokik has quit [Ping timeout: 245 seconds]
<workmad3> godd2: top-right, not top-left (and my globe is grayed out)
<xfz> godd2: can I send you a screenshot?
<godd2> did I say top left?
<rzsd> I noticed a strange problem when creating a Rakefile. If for a particular task i give the description as desc "foo.bar" then the description appears correctly when i run rake -T as # foo.bar. But if i enter the description as desc "foo. bar", then only # foo shows up when in run rake -T
<workmad3> godd2: you did indeed ;)
<godd2> Im a dummy
<godd2> top right
jespada has joined #ruby
Takle has quit [Read error: Connection reset by peer]
<rzsd> what could be the reason for that ?
rkalfane has joined #ruby
Aswebb has joined #ruby
<hanmac1> maasha: what do you think of that:
<hanmac1> >> a = ["aaaaa", "aaaab", "aaabc"]; a.first.chars.inject("") {|o, c| break o unless a.all?{|s| s.start_with?(o + c)}; o + c}
<eval-in__> hanmac1 => "aaa" (https://eval.in/229330)
StoneCypher has joined #ruby
Aswebb has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
fabrice31 has quit [Remote host closed the connection]
StoneCypher has quit [Ping timeout: 255 seconds]
benzrf|offline is now known as benzrf
kiyote23 has quit [Read error: Connection reset by peer]
Linuus has joined #ruby
Timgauthier is now known as timgauthier_away
timgauthier_away is now known as Timgauthier
gccostabr has quit [Quit: ZZZzzz…]
shazaum has joined #ruby
TPBallbag has quit [Remote host closed the connection]
arup_r has quit [Ping timeout: 240 seconds]
arup_r has joined #ruby
kiyote23 has joined #ruby
doodlehaus has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
browndawg has quit [Quit: Leaving.]
Guest96162 has quit [Ping timeout: 252 seconds]
gccostabr has joined #ruby
oo_ has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
panini_ has joined #ruby
Timgauthier is now known as timgauthier_away
uber_hulk has quit [Ping timeout: 264 seconds]
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
techsethi has quit [Quit: techsethi]
godd2 has quit [Ping timeout: 272 seconds]
nhhagen_ has joined #ruby
surs has quit [Quit: leaving]
<hanmac1> shevy!
bMalum has quit [Quit: bMalum]
Photism has quit [Quit: Leaving]
nhhagen has quit [Ping timeout: 245 seconds]
bmichelsen has joined #ruby
jimbach has joined #ruby
renderful has joined #ruby
<shevy> wat
seitensei has joined #ruby
seitensei has joined #ruby
User458764 has joined #ruby
yfeldblum has joined #ruby
GeorgesLeYeti has joined #ruby
tenseiten has quit [Ping timeout: 245 seconds]
benzrf is now known as benzrf|offline
uber_hulk has joined #ruby
livingstn has quit []
renderful has quit [Ping timeout: 240 seconds]
jimbach has quit [Ping timeout: 258 seconds]
n1lo has joined #ruby
sk87 has joined #ruby
dcunit3d has joined #ruby
jdj_dk has joined #ruby
bmichelsen has quit [Ping timeout: 244 seconds]
abuzze_ has joined #ruby
Linuus has quit [Ping timeout: 244 seconds]
arup_r has quit [Remote host closed the connection]
techsethi has joined #ruby
bigkevmc_ has joined #ruby
Takle has joined #ruby
ponga has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
bigkevmcd has quit [Disconnected by services]
bigkevmc_ is now known as bigkevmcd
cajone has joined #ruby
NoNMaDDeN has joined #ruby
quarcu has joined #ruby
abuzze has quit [Ping timeout: 264 seconds]
Aswebb has joined #ruby
arup_r has joined #ruby
valeriansaliou has joined #ruby
vt102 has joined #ruby
Areessell has joined #ruby
Cyberheb has quit [Quit: Textual IRC Client: www.textualapp.com]
rshetty has quit [Remote host closed the connection]
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
commmmodo has joined #ruby
GGMethos has quit [Ping timeout: 272 seconds]
rockdon has quit [Ping timeout: 258 seconds]
audy has quit [Quit: bye]
valeriansaliou has quit [Ping timeout: 264 seconds]
<maasha> hanmac1: wonderful. just the thing
spastorino has joined #ruby
<hanmac1> shevy read the summary of this one: https://www.versioneye.com/ruby/rake/10.4.0
Darryl_ has joined #ruby
chu has joined #ruby
GGMethos has joined #ruby
<shevy> This project is epic! If that many other packages are referencing it, it must be good and useful. Shame on you if you don't know this project. As a Ruby dev this is a must have on your resume!
<shevy> cool propaganda Kool-Aid
rockdon has joined #ruby
<shevy> it's an interesting statistics though
<shevy> useful for network graphs like your thingy hanmac1
siaw has joined #ruby
TPBallbag has joined #ruby
sski has joined #ruby
<hanmac1> hm what do you mean?
Abhijit has joined #ruby
fabrice31 has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
<siaw> x = 1 and x++ give 2, but then later x gives 1 again, why?
hiyansa has quit [Ping timeout: 246 seconds]
<siaw> x = 2, x++ gives 4, again why? :D how the the “++” work in ruby?
<hanmac1> siaw: in what language, because "x++" is not valid in ruby ?
<workmad3> siaw: ruby doesn't support x++
Guest1882 has joined #ruby
<tobiasvl> siaw: ruby doesn't have ++
baweaver has joined #ruby
sailias has joined #ruby
<DefV> what hey said ^^
avr has quit [Quit: this channel is bakas]
<siaw> tobiasvl: i know it’s not valid, so then i should get an error, no?
baweaver has quit [Remote host closed the connection]
yfeldblum has joined #ruby
<hanmac1> siaw no because "2 ++ 4" is valid
panini_ has quit [Ping timeout: 250 seconds]
<workmad3> siaw: hmm... did you do (in irb) 'x = 2<return> x++ <return> x'?
<workmad3> siaw: because if so, that would get parsed as 'x = 2; x + +x'
<siaw> workmad3: yes
<workmad3> siaw: and no output between x++ and x
<tobiasvl> if you do `x++ <return>` in irb you see that it's still waiting for input
<workmad3> ^^
<tobiasvl> the statement isn't done
Guest96162 has joined #ruby
<workmad3> siaw: basically, you did 'x + x' without storing the result ;)
<siaw> tobiasvl: i see it :D
<siaw> and why is 4++5 valid?
<workmad3> siaw: 4 + +5
samsquanch has joined #ruby
apeiros_ has quit [Ping timeout: 240 seconds]
<siaw> even 4+++3 works
<siaw> hahahha this is very funny
<workmad3> 4 + +(+3)
<tobiasvl> +5 is the positive integer 5
<siaw> it’s actually useless
<tobiasvl> not very weird
<tobiasvl> 4+-5 also works
<siaw> 5++++++++++++++++4 works
<tobiasvl> 4 + -5
<siaw> makes no sense!
<tobiasvl> sure it does
<tobiasvl> + is both the addition operator, and the unary prefix for positive numbers
panini_ has joined #ruby
<tobiasvl> just like in… math
<shevy> hanmac1 you have some ruby code that draws a graphic
<workmad3> siaw: makes perfect sense... +5 is valid ruby, and evaluates to 5... so ++5 is valid and evaluates to +(+5) which is +(5), so 5
<siaw> workmad3: i see
<siaw> interesting
<mostlybadfly> Hallo
<workmad3> siaw: or, in other words, + is a unary method in ruby, syntax sugar for 5.+@() (weird syntax, but hey, what you gonna do? :) )
<hanmac1> shevy currently i am drawing no graphs ... hm but i might write something for making Graphs in wx itself
yfeldblum has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby
<workmad3> siaw: so you can chain it as a prefix as much as you want... it'll just keep on doing 'x.+@().+@().+@()...'
<hanmac1> workmad3: yes its even valid ruby XD
<hanmac1> >> 5.+@()
<eval-in__> hanmac1 => 5 (https://eval.in/229361)
<siaw> workmad3: i get it
<siaw> :)
<workmad3> hanmac1: yeah, I was testing in irb before typing here for once ;)
Guest96162 is now known as psycho_one
<workmad3> hanmac1: the () is essential for the call though, at least in my testing
<hanmac1> i know that you define it with +@ but i didnt know you could also call it like that
gccostabr has quit [Quit: ZZZzzz…]
<workmad3> hanmac1: fun, eh? :)
iamninja has quit [Remote host closed the connection]
<shevy> eam would now complain that the ruby parser itself is way too complex
<workmad3> hanmac1: I figured that as you can do 'def +@' to define it, +@ must be a valid method identifier... therefore you should be able to use it as .+@()
<workmad3> well, method name in the parser, rather than method identifier
<hanmac1> apeiros Guest1882 spam
moritzs has joined #ruby
<workmad3> as eam pointed out yesterday, pretty much anything is a valid method identifier once you bypass the parser :)
<shevy> apeiros help!
alexherbo2 has quit [Quit: WeeChat 1.0.1]
<shevy> yeah by using send
emiemia has joined #ruby
emiemia has quit [Remote host closed the connection]
<shevy> and define_method
bluOxigen has joined #ruby
<siaw> shevy: better use “public_send” :P
<shevy> dunno
<shevy> send is shorter
<shevy> :)
<workmad3> siaw: same principle still applies ;)
<shevy> no actually
<shevy> I won't define methods called ''
mengu has joined #ruby
mengu has joined #ruby
<shevy> and I won't invoke them either via .send '' nor .public_send ''
<shevy> this has no name for me
<shevy> tell me the name
Soda has quit [Remote host closed the connection]
<workmad3> >> define_method('') {"hello siaw"}; public_send('')
<eval-in__> workmad3 => "hello siaw" (https://eval.in/229366)
<shevy> what is the name of this method!!!
<workmad3> shevy: it's the empty string ;)
<canton7> "emptystring"
<shevy> :\
blueOxigen has joined #ruby
<shevy> you guys are cheating
<workmad3> shevy: the empty string is still a string
<shevy> you gave it a name
<shevy> emptystring is so much longer than ''
<canton7> more pronouncable though
<shevy> hehehe
<shazaum> any idea?
<canton7> it's code
hamakn has quit [Remote host closed the connection]
<canton7> is something wrong with it?
<shazaum> undefined method `[]' for nil:NilClass (NoMethodError)
sailias has quit [Quit: Leaving.]
pwh has quit [Ping timeout: 255 seconds]
<workmad3> shevy: how about 'class Fixnum; INFINITY = "Infinity"; def א₀; INFINITY; end; end'? ;)
iamninja has joined #ruby
bluOxigen has quit [Ping timeout: 240 seconds]
Jake232 has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
Xeago has joined #ruby
User458764 has quit [Ping timeout: 264 seconds]
AlexRussia has joined #ruby
nonks_ has joined #ruby
pwh has joined #ruby
<workmad3> shevy: hmm, lunch time
<workmad3> oh, didn't mean to direct that...
<workmad3> sorry shevy :)
banister has joined #ruby
<shevy> hey I am still stuck on your first sentence anyway
<shevy> but thankfully I assume you used some Unicode characters
<shevy> so I can't decipher it anyway ... hahaha
<shevy> א₀
<workmad3> shevy: yeah... I created an aleph-null method on fixnum
n1lo has quit [Quit: Leaving]
<workmad3> shevy: I should really have made it a class method, so you could do 'Fixnum::א₀' for constant-like access :)
SOLDIERz_ has joined #ruby
oo_ has quit [Remote host closed the connection]
nonks_ has quit [Ping timeout: 250 seconds]
<shevy> ewww
eguneys has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
<workmad3> shevy: you don't think the integers deserve their own Infinity? :(
<eguneys> does ruby have some nice libraries for Functional Reactive Programming, similar to Bacon.js I've seen Rx.rb and Frappucino but they lack documentation.
davasaurous has joined #ruby
Photism has joined #ruby
xymbol has quit [Quit: Be back later ...]
shredding has joined #ruby
panini_ has quit [Ping timeout: 240 seconds]
n1lo has joined #ruby
<shevy> workmad3 I regard them as cheaters
phutchins has joined #ruby
<shevy> >> x = 5; def x.hi; puts "hi"; end
<eval-in__> shevy => can't define singleton (TypeError) ... (https://eval.in/229377)
<shevy> they only deserve death
<shevy> until they become real objects
charliesome has joined #ruby
Linuus has joined #ruby
spyderman4g63 has joined #ruby
davasaurous has quit [Ping timeout: 252 seconds]
Seich has quit [Ping timeout: 258 seconds]
abuzze_ has quit [Ping timeout: 244 seconds]
<shevy> -#define ISBLANK(c) (ISASCII(c) && isblank((int)(unsigned char)(c)))
Seich has joined #ruby
<shevy> +#define ISBLANK(c) (ISASCII(c) && ((c) == ' ' || (c) == '\t'))
yfeldblum has joined #ruby
<shevy> was that an improve? :)
Linuus has quit [Quit: leaving]
davedev24_ has joined #ruby
<shevy> why do the () have to be used?
<shevy> ((c) == ' '
gccostabr has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
danijoo_ has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
<Areessell> It's the same code that isblank actually does, but they want to be as portable as possible
<Areessell> It seems VS had a problem with the isblank function in ctype.h
<shevy> ah
yfeldblum has quit [Ping timeout: 244 seconds]
<shevy> ok
triple_b has joined #ruby
<Areessell> As you can see from the japanese error output, 的前面 had a problem with 法错误
<shevy> lol what
eguneys has quit [Quit: ERC (IRC client for Emacs 25.0.50.1)]
<Areessell> Pfft do you even Ruby bro?
<shevy> error C4013: ?isblank??????????? int
<shevy> how am I supposed to know what those kanji symbols mean
Crazy_Atheist has joined #ruby
<shevy> ? looks like a pole dancing guy with a stick
quimrstorres has quit [Remote host closed the connection]
jimbach has joined #ruby
<shevy> probably frank sinatra singing in the rain
<shevy> ? is an easy symbol... two rectangulars
<Areessell> All I'm seeing are question marks
<shevy> hahaha
<Areessell> Why are you looking through bleeding edge MRuby commits anywho?
<shevy> I want to see what's new
DivineEntity has quit [Quit: Lost terminal]
<Areessell> Hmm it seems IRC isn't ment for 错前面错误 people
ConstantineXVI has joined #ruby
coderhs has joined #ruby
anisha has quit [Quit: Leaving]
alexherbo2 has joined #ruby
<shevy> I can see my kanji symbols fine!
panini_ has joined #ruby
<Areessell> I can see mine
DLSteve has quit [Read error: Connection reset by peer]
jimbach has quit [Read error: Network is unreachable]
abuzze has joined #ruby
wpp has quit []
jimbach has joined #ruby
jdj_dk has quit [Remote host closed the connection]
xymbol has joined #ruby
DivineEntity has joined #ruby
scottstamp has left #ruby ["Textual IRC Client: www.textualapp.com"]
timonv_ has quit [Remote host closed the connection]
<shevy> var.gsub!(/PX/, '')
<shevy> this will kill 'PX' in the var object right?
arup_r has quit [Remote host closed the connection]
<hanmac1> shevy yes but you dont need // for that
<canton7> no need for that to be regex
<shevy> hmm?
<shevy> you mean 'PX' ?
<canton7> yup
<shevy> k
sgronblo has left #ruby [#ruby]
xymbol has quit [Ping timeout: 264 seconds]
posixpascal has joined #ruby
timonv_ has joined #ruby
marahin has joined #ruby
marahin is now known as Guest39445
arup_r has joined #ruby
techsethi has quit [Quit: techsethi]
abuzze has quit [Remote host closed the connection]
chipotle_ has quit [Ping timeout: 250 seconds]
arup_r has quit [Remote host closed the connection]
xymbol has joined #ruby
<shevy> it was not working for me
<shevy> I mean, it was working in IRB but not in a .gsub in another library
<shevy> but now I think I am getting closer to my mistake
<shevy> I am using something like
<shevy> var.gsub!(/some_word_(.+)/, some_method_here('\\1'))
<shevy> the '\\1' is not right I guess? :)
<shevy> it's passing me a "\1" literally hehehe
<canton7> yeah that's never going to work
<canton7> that'll only work if some_method_here returns a string with \1 in it
<shevy> those $1 and \\1 are beginning to scare me
<canton7> use the block form of gsub then
<shevy> ok
<canton7> no need for magic $1 and \1's
gccostabr has quit [Quit: ZZZzzz…]
nrsk has joined #ruby
Guest39445 is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
jeaye has quit [Ping timeout: 258 seconds]
last_staff has quit [Quit: last_staff]
livingstn has joined #ruby
benzrf|offline is now known as benzrf
browndawg has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
adriancb has joined #ruby
danijoo_ has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
eichenwald has joined #ruby
renanoronfle has joined #ruby
theRoUS has quit [Ping timeout: 265 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Constant_ has joined #ruby
Constant_ has quit [Client Quit]
renanoronfle has quit [Quit: Textual IRC Client: www.textualapp.com]
psycho_one has quit [Quit: WeeChat 1.0.1]
rockdon has quit [Ping timeout: 258 seconds]
nagaraj has quit [Remote host closed the connection]
sevenseacat has joined #ruby
theRoUS has joined #ruby
rockdon has joined #ruby
coderhs has quit [Ping timeout: 264 seconds]
jerius has joined #ruby
yeticry has quit [Ping timeout: 258 seconds]
yeticry has joined #ruby
abuzze has joined #ruby
jeaye has joined #ruby
ConstantineXVI has quit []
maasha has quit [Ping timeout: 246 seconds]
benzrf is now known as benzrf|offline
ctp has joined #ruby
benzrf|offline is now known as benzrf
rdark_ has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
browndawg has quit [Quit: Leaving.]
adac has joined #ruby
<adac> Is there a gem that can check if a yaml file is valid?
sailias has joined #ruby
<pontiki> YAML?
alex88 has joined #ruby
alex88 has quit [Changing host]
alex88 has joined #ruby
jzigmund_ is now known as jzigmuns
jzigmuns is now known as jzigmund
MrIlyas has joined #ruby
<IceDragon> pontiki: Yet Another Markup Language
<adac> yml
<pontiki> good lord
Channel6 has joined #ruby
<IceDragon> adac: not that I know of, probably try loading it and rescue a Parser error
<pontiki> i mean the yaml library is perfectly adept at determining whether a yaml file is readable/parseable
doodlehaus has joined #ruby
<adac> IceDragon, yeah that would work
renanoronfle has joined #ruby
ConstantineXVI has joined #ruby
fxn has quit [Quit: bye]
ConstantineXVI has quit [Max SendQ exceeded]
rdark has quit [Ping timeout: 258 seconds]
<siaw> are strings and symbols the same in ruby? i know the answer is no. maybe they are treated similary? what is the difference?
ConstantineXVI has joined #ruby
kiyote23 has quit [Read error: Connection reset by peer]
arya_ching has joined #ruby
dcunit3d has quit [Ping timeout: 256 seconds]
Tranquility has joined #ruby
quimrstorres has joined #ruby
<tobiasvl> siaw: they're not the same, no
<tobiasvl> but they're treated similarly
<tobiasvl> symbols are basically immutable strings that share a single copy even if they're identical
benzrf is now known as benzrf|offline
<siaw> tobiasvl: could you say symbols use a “single memory resource"
chipotle has joined #ruby
mjmac has quit [Ping timeout: 258 seconds]
bmichelsen has joined #ruby
kiyote23 has joined #ruby
Aswebb has quit [Read error: Connection reset by peer]
jherbst has joined #ruby
Aswebb has joined #ruby
abuzze has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
<tobiasvl> sure
failshell has joined #ruby
yfeldblum has joined #ruby
dcunit3d has joined #ruby
unshadow has quit [Quit: leaving]
rdark has joined #ruby
<siaw> tobiasvl: cool :P
Crazy_Atheist has quit [Quit: Off to install stuff for youtubes]
abuzze has joined #ruby
chipotle_ has joined #ruby
oleo has joined #ruby
havenwood has joined #ruby
shvelo has joined #ruby
commmmodo has quit [Quit: commmmodo]
amundj has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 264 seconds]
chipotle has quit [Ping timeout: 240 seconds]
timonv_ has quit [Remote host closed the connection]
rdark_ has quit [Ping timeout: 256 seconds]
Soda has joined #ruby
tomeara has joined #ruby
<shevy> hey eam what do you think about this:
<shevy> $_ = "Hello World"
<shevy> puts 'yup hello world if (/World/)
<shevy> damn forgot a '
<shevy> and the () seem not necessary
tomeara has quit [Client Quit]
mjmac has joined #ruby
jrochkind has left #ruby [#ruby]
circ-user-cnelk has joined #ruby
<siaw> sheyou’re not using that global variable at all
n1lo has quit [Ping timeout: 264 seconds]
<siaw> your puts … makes no sense to me
devdazed has joined #ruby
sameerynho has quit [Quit: Leaving]
timonv_ has joined #ruby
tomeara has joined #ruby
jimbach has quit [Remote host closed the connection]
<shevy> >> $_ = "Hello World"; puts 'yup hello world' if /Wor/
<eval-in__> shevy => /tmp/execpad-204d631943ea/source-204d631943ea:2: warning: regex literal in condition ... (https://eval.in/229425)
<shevy> huh
<shevy> this works in irb
jimbach has joined #ruby
<shevy> oh the warning covers the result
<shevy> siaw lookie https://eval.in/229425
gccostabr has joined #ruby
<shevy> eval-in__ is way too noisy :\
<shevy> eval-in__: Ignore Warnings
<shevy> the owner of eval-in__ is charliesome?
eindoofus_ has joined #ruby
<charliesome> that's a warning that ruby dumps no matter what
<charliesome> -w isn't set or anything
sambao21 has joined #ruby
<siaw> shevy: well it works if you wrote it like you did in the last expression. but that what’s that for? what do you want with it?
josephndenton has joined #ruby
<shevy> siaw it works!
whoisjake has joined #ruby
perrier has joined #ruby
abuzze has quit [Remote host closed the connection]
<siaw> shevy: hahahahaa yeah it works. but what’s the poing?
<siaw> point? am i missing something?
<shevy> that is the point!
<siaw> hahahha
<siaw> i can alsy just write puts “hi”
<siaw> and eeeyy it works!!
sski has quit [Remote host closed the connection]
<shevy> ok but you don't have an if check there
dcunit3d has quit [Ping timeout: 250 seconds]
gccostabr has quit [Client Quit]
dumdedum has quit [Quit: foo]
sski has joined #ruby
hydrajump has left #ruby ["WeeChat 0.4.3"]
dcunit3d has joined #ruby
giuseppesolinas has quit [Ping timeout: 252 seconds]
<shevy> does anyone knows if we can have optional dependencies in gems?
allcentury has joined #ruby
<shevy> such as "it would be nice if a user has this or that gem, but it is not totally necessary"
<shevy> .add_dependency seems to make it mandatory
fabrice31 has quit [Remote host closed the connection]
<siaw> shevy: this works too
athan has joined #ruby
giuseppesolinas has joined #ruby
renanoronfle has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<siaw> shevy: if “hidafda”; puts “hi” end
<shevy> yeah but it is not equivalent
<shevy> where is the regex!
evanjs has joined #ruby
<athan> Are ruby arrays extensible like javascript objects, where I could just say `foo[:bar]` to add the bar field to foo?
<siaw> shevy: are you experimenting with regex?
<waxjar> couldn't you just leave off the whole if /Wor/ ? it's basically the same as saying if true, no?
<siaw> athan: yes
<shevy> well, this one here won't output anything: $_ = "Hello World"; puts 'yup hello world' if /Wg/
<siaw> but you have to use the key valuse assignment
<shevy> athan you must use = assignment
evanjs has quit [Remote host closed the connection]
<siaw> that way you’re actually using a hash
<waxjar> o.O, wth is going on there?
<shevy> foo[:bar] = 'siaw is drunk'
fabrice31 has joined #ruby
<siaw> shevy read all my comments :P
evanjs has joined #ruby
<shevy> and you could even append to it
<shevy> foo[:bar] << 'waxjar has a coala in his pants'
<athan> shevy & siaw: Thank you :)
sski has quit [Ping timeout: 256 seconds]
<waxjar> is it just applying Regexp#~ magically, somehow?
<shevy> I think matz added that because perl has it, I guess
Channel6 has quit [Remote host closed the connection]
SOLDIERz_ has quit [Ping timeout: 244 seconds]
<waxjar> hmm, i don't like it :P
<shevy> hehehe
<waxjar> ~/Wor/ gets rid off the warning, at least
AFKGeek has joined #ruby
<shevy> oh?
abuzze has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
<shevy> ah well
<shevy> I am not a super happy fan of the warnings in ruby
<shevy> the syck gem outputs some warnings
chinmay_dd has joined #ruby
banister has joined #ruby
<shevy> to make it shut up I do this: http://pastie.org/9756196
<shevy> I don't know of a better way :\
<athan> Is the syntax for multidimensional array access foo[:bar[:baz]], or foo[:bar][:baz]?
<waxjar> you're thinking of Hashes i think athan
CustosL1men has quit [Ping timeout: 264 seconds]
<waxjar> but it's the second form
<shevy> athan you used php before?
<soahccc> hmm the former could be implemented as a shortcut for try(:[]) :D
beef-wellington has joined #ruby
<waxjar> ugh, spambots :s
<athan> shevy: Yeah, why is it different?
jusmyth has quit [Quit: Leaving.]
<athan> waxjar: I think you're right actually :S
n1lo has joined #ruby
nonks_ has joined #ruby
sk87 has joined #ruby
<shevy> athan ruby splits into Array and Hash
<shevy> both are accessible via the method call []
abuzze has quit [Remote host closed the connection]
gsd has joined #ruby
<shevy> but Array wants an Integer, Hash is more flexible
<athan> ahh okay, because of duck typing, right?
<shevy> array[3]
<waxjar> an array is equivalent to a normal array in php, a hash is equivalent to a assosiative array in php
<athan> ahhh okay
<shevy> hash['cat']['dog']
<waxjar> *associative
<athan> that makes perfect sense. Thank you :)
<athan> is there a way to print an array? or show it?
<athan> s/array/hash
<shevy> yeah, via p
<athan> :S
<athan> oh!!!
<shevy> p obj
<athan> perfect! Thank you!
<shevy> if you want pretty formatting, you can use pp obj
<shevy> but you must do: require 'pp' before you can use pp, unfortunately
jonr22 has joined #ruby
anaeem1_ has joined #ruby
<shevy> so p obj is kinda faster there, no extra require necessary
<shevy> I use pp all the time, it looks better :)
<soahccc> I use pry all the time with awesome print :o
<shevy> you can even get colours, with awesome print... but the colours distract me... https://github.com/michaeldv/awesome_print
Aswebb has quit [Remote host closed the connection]
<soahccc> shevy: awesome_print not only does colors ;)
moritzs has quit [Ping timeout: 245 seconds]
BTRE has quit [Ping timeout: 255 seconds]
<shevy> it also does cats
<shevy> and phones your local pizza restaurant
postmodern has quit [Read error: Connection reset by peer]
<shevy> now I am hungry
<shevy> thanks soahccc :(
<soahccc> And I thought in PHP there would be only what we call Hash
<shevy> php kinda merged it all together
<shevy> it's a melting pot language, with 100 different cooks
<soahccc> shevy: I'm also hungry :(
<shevy> you can have salt AND sugar
<roger_rabbit> people using PHP *smoke* Hash
<shevy> and one cook always spits into the soup
<soahccc> only have coffee and cigarettes
<shevy> I hate cigarettes
<shevy> why can't it smell good?
mary5030 has joined #ruby
<soahccc> you just need the right ingredients :>
spyderman4g63 has quit [Read error: Connection reset by peer]
<athan> Should this be done without the parenthesis? `redirect_to ("/thank-you&p=" + p params[:prequalify][:endorser])`
<shevy> well, ganja has this awful sweet smell. it's better than normal cigarettes but still not good
spyderman4g63 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<shevy> dunno athan
jonr22 has quit [Ping timeout: 245 seconds]
<havenwood> athan: you don't mean that `p` to be in there?
<shevy> but please don't add a ' ' before the () anyway
<athan> havenwood: I thought it printed stuff to strings :(
mary5030 has joined #ruby
<waxjar> athan, i think you want to use string interpolation
<soahccc> So should DNS or rubygems die again, now I've got a mirror :) Not as big as I thought
<shevy> either do foo('args') or foo 'args' but please no foo ('args')
<athan> waxjar: This is really just for debugging purposes lol
<shevy> athan it outputs, but in this case here you want to return, not print/puts
<athan> it's my hack-jobbed printf
<waxjar> (foo ('args'))
<sevenseacat> foo ('args') isnt even valid
shock_one has joined #ruby
noop has quit [Ping timeout: 250 seconds]
<shevy> LISP ATTACK!!!
shortCircuit__ has quit [Remote host closed the connection]
<athan> :O!
<sevenseacat> soahccc: how big?
<soahccc> sevenseacat: Want to take a guess?
Hijiri has quit [Quit: WeeChat 1.0.1]
<athan> ahhh okay
* sevenseacat gets mind out of gutter
<sevenseacat> i dunno, maybe 100GB/
<shevy> :>
<shevy> I say 20GB!
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
<waxjar> sevenseacat: why wouldn't that be valid?
<shevy> soahccc the one to guess correctly wins a prize yes?
<shock_one> Hi. Does anybody know how to do HTTPS requests through a HTTP CONNECT tunnel in Ruby? For example, there is a linux tool for that, but I can't find a gem or something. http://www.agroman.net/corkscrew/
<soahccc> shevy: I guess the price is going to sevenseacat then :D https://gist.github.com/2called-chaos/5660c040e808a3497df7
<sevenseacat> well it passes no arguments to foo, and then randomly tacks on an ('args')
<shevy> damn
<sevenseacat> winner winner
<shevy> how can this be so big
Milk_weed has joined #ruby
<athan> if you try to access a hash field that doesn't exist, `nil` gets returned, right?
<shevy> 280M Dec 2 09:19 flashsdk_sqe-0.0.10.gem
alex88 has quit [Remote host closed the connection]
<sevenseacat> well its every version of every gem ever made
<shevy> what is this fat thing
<shevy> that's like a linux distribution packaged into a gem or what
<athan> and `p nil` => `""`, right?
<athan> :S
dumdedum has joined #ruby
<waxjar> sevenseacat: is passes whatever the part between the ( and ) returns, no?
<sevenseacat> nope.
<shevy> athan let's test
<hanmac1> apeiros_ question: might it be a idea to block /Guest\d+/ from the ruby channel?
<waxjar> >> def foo(x); x; end; puts foo ("hiya")
<eval-in__> waxjar => hiya ... (https://eval.in/229434)
<shevy> >> hash = {}; hash[:foo]
<eval-in__> shevy => nil (https://eval.in/229435)
<shevy> athan returns nil if the value is not known to your Hash object
<sevenseacat> hmm
<shevy> athan I think you can set another default return value too, though
<sevenseacat> im sure ive seen that as a syntax error before
nastri has joined #ruby
<waxjar> i guess with mutliple arguments it wouldn't work
<waxjar> *multiple
<shevy> oh yeah
<shevy> athan reason is - the first [] will return nil, and then you invoke [] on nil
<athan> shevy: ahh okay
<shevy> >> hash = {}; hash[:foo][:waxjar_coala]
<eval-in__> shevy => undefined method `[]' for nil:NilClass (NoMethodError) ... (https://eval.in/229436)
User458764 has joined #ruby
<athan> >> hash = {}; puts hash[:foo]
<waxjar> lol
<eval-in__> athan => ... (https://eval.in/229437)
<athan> ahhh crud
User458764 has quit [Client Quit]
<athan> that's a bummer
<shevy> athan try to keep the hash as simple as possible, many [][][] can become confusing
mengu has quit [Remote host closed the connection]
<apeiros_> hanmac1: I don't want to decide something of that scale.
<athan> definitely :S
<apeiros_> after all, it's still not my channel :)
<athan> I'm going to revamp this thing over time, but right now I just need a quick fix
<sevenseacat> apeiros_: its not??
<shevy> athan in other words, a hack :)
<athan> thanks guys :)
<athan> yep :P
<hanmac1> apeiros_: ah ok, because its mostly such guest accts that react as spam bots ...
<shevy> wow
<shevy> we have many Guest* here
Aswebb has joined #ruby
<shevy> 4 of them
<shevy> hanmac1 does not like any of them
<waxjar> Guest1882 is a spammer at least
<shevy> soahccc how does that work? I see 136M Dec 2 09:37 ilstyle-0.4.0.gem ... and the other versions... will it simply download all available gems?
<soahccc> shevy: all versions, everything
Photism has quit [Quit: Leaving]
<hanmac1> waxjar: and still not kicked yet by apeiros_
<soahccc> shevy: A few are 404ing but nothing in relation... https://gems.bmonkeys.net/mirror.log
freerobby has joined #ruby
<shevy> aha that's not many... like 20 or so
<athan> Is there a shorthand syntax for writing hashes? [:foo => "bar"] isn't working :S
<shevy> Total gems: 519867
p0wn3d_mhs has joined #ruby
<shevy> cool
BTRE has joined #ruby
<soahccc> shevy: that are the actual .gem files so each version of every gem counts for that number
<shevy> well what is [] athan
Guest70 has joined #ruby
<shevy> >> {:foo => "bar"}.class
<eval-in__> shevy => Hash (https://eval.in/229438)
<waxjar> athan, {} are hashes, [] are arrays
<shevy> athan [] vs {}
tesuji has quit [Ping timeout: 250 seconds]
<athan> derp ><
<waxjar> [key=> value] is a one element array with a hash as its first element :p
Guest70 has quit [Client Quit]
<athan> thank you!!
<shevy> yeah he got it almost right
<shevy> there is hope for him after his php past
hiyosi has joined #ruby
davasaurous has joined #ruby
<shevy> but don't worry - apeiros wrote a lot of PHP code too
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tobago has quit [Remote host closed the connection]
Kricir has joined #ruby
<hanmac1> but shevy, i wrote PHP too, and look at me now ... if you dare! ;P
eichenwald1 has joined #ruby
* sevenseacat also a reformed PHP programmer
<deepy> Same here
<waxjar> php was my first true love
<athan> shevy: ... I love haskell :x
siaw has quit [Quit: siaw]
<athan> IM SORRY
siaw has joined #ruby
<hanmac1> waxjar: you mean that kind of love where the beautiful girl says she wants to date you, but then you see she is a bit*h? ;P
eichenwald has quit [Ping timeout: 245 seconds]
davasaurous has quit [Ping timeout: 240 seconds]
sevenseacat has quit [Remote host closed the connection]
<waxjar> the kind of love where youve been writing poems for years and then find out they're all misinterpreted, because of insanity
boombadaroomba has joined #ruby
adac has quit [Remote host closed the connection]
iamninja has quit [Quit: ZZZzzz…]
<hanmac1> waxjar: you mean like the Insanity from the IceKing of AdventureTime? ;P
danoo_ has quit [Ping timeout: 258 seconds]
danoo_ has joined #ruby
yfeldblum has joined #ruby
chipotle_ has quit [Remote host closed the connection]
workmad3 has joined #ruby
perrier has quit [Remote host closed the connection]
iceden has joined #ruby
lkba has joined #ruby
MasterPiece has quit [Quit: Leaving]
<waxjar> i guess, i'm not familiar with that :p
boombadaroomba has quit [Ping timeout: 272 seconds]
treehug88 has joined #ruby
lampd1 has joined #ruby
lynxman has quit [Quit: leaving]
lynxman has joined #ruby
chipotle has joined #ruby
tagrudev has quit [Remote host closed the connection]
perrier has joined #ruby
fedexo has joined #ruby
dfinninger has joined #ruby
lucyinthesky has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
chipotle has quit [Client Quit]
Seich has quit [Ping timeout: 258 seconds]
brendenb has quit [Ping timeout: 258 seconds]
Kricir has quit []
renanoronfle has joined #ruby
Seich has joined #ruby
<soahccc> Darn, there is no chance anyone can remember the numbers right? PDF is down :( https://news.ycombinator.com/item?id=7344503
lpaste_ has quit [Ping timeout: 258 seconds]
<benzrf> hanmac1: that's not really the same thing
thoraxe_ is now known as thoraxe
brendenb has joined #ruby
<hanmac1> hey did you guys notice the news about that porn filter in UK and what porn is allowed and what not? ;P
<dfinninger> yeah, what's up with thtat?
<hanmac1> quote: "More worryingly, the amendment seems to take issue with acts from which women traditionally derive pleasure." ;P
<soahccc> hanmac1: is it still a thing? I only saw the stats about rising VPN acconts
kiyote23 has quit [Remote host closed the connection]
kiyote23_ has joined #ruby
tylersmith has quit [Ping timeout: 258 seconds]
germanstudent has quit [Quit: raus]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
kiyote23_ has quit [Remote host closed the connection]
renier_ has joined #ruby
shtirlic_ has quit [Ping timeout: 258 seconds]
Jello_Raptor has quit [Ping timeout: 258 seconds]
<soahccc> Hanmac1: they obviously don't know scrubs over there
dblessing has joined #ruby
tylersmith has joined #ruby
rshetty has joined #ruby
econerd4ever has joined #ruby
renier has quit [Ping timeout: 240 seconds]
Jello_Raptor has joined #ruby
robertt_dex has joined #ruby
gsd has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jusmyth has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
hanmac1 has quit [Quit: Leaving.]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
perrier has quit [Remote host closed the connection]
Seich has quit [Ping timeout: 258 seconds]
perrier has joined #ruby
rippa has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
shtirlic has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
CustosL1men has joined #ruby
Seich has joined #ruby
lpaste has joined #ruby
devoldmx has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<gregf_> fg
<gregf_> damn :/ sorry
banister has joined #ruby
kalleth_ has quit [Ping timeout: 258 seconds]
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
devyn has quit [Ping timeout: 256 seconds]
banister has joined #ruby
linojon has joined #ruby
banister has quit [Max SendQ exceeded]
kalleth has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
banister has joined #ruby
devoldmx has quit [Remote host closed the connection]
banister has quit [Max SendQ exceeded]
shock_one has quit [Quit: Be back later ...]
maestrojed has joined #ruby
jusmyth has quit [Quit: Leaving.]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
alex88 has joined #ruby
<shevy> athan well haskell is on another level than php; also I don't really feel haskell belongs into the scripting family languages php/python/ruby/perl
banister has joined #ruby
banister has quit [Max SendQ exceeded]
spyderman4g63 has quit [Remote host closed the connection]
Jake232 has joined #ruby
<athan> shevy: There's shelly... :P
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<athan> for super high performance
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
psy_ has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
karmatr0n has joined #ruby
rzsd has quit [Remote host closed the connection]
spyderma_ has joined #ruby
FooMunki_ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
gccostabr has joined #ruby
momomomomo has joined #ruby
klmlfl has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
lucyinthesky has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
klmlfl has quit [Remote host closed the connection]
kapil__ has quit [Quit: Connection closed for inactivity]
psy_ has joined #ruby
jrochkind has joined #ruby
<jrochkind> Hmm, in ruby 2.1, #clone seems to no longer copy singleton methods, when in ruby 1.9 it did. Does that make sense?
spyderma_ has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
snath has quit [Ping timeout: 244 seconds]
<apeiros_> >> x = ""; def x.bar; "bar!"; end; y = x.clone; [RUBY_VERSION, y.bar]
<eval-in__> apeiros_ => ["2.1.3", "bar!"] (https://eval.in/229443)
aspires has joined #ruby
<apeiros_> jrochkind: seems you're mistaken ^
<apeiros_> clone still copies singleton methods
galeido has quit [Ping timeout: 258 seconds]
<apeiros_> are you talking about a custom class which fails to properly implement its own #clone?
einarj has quit [Read error: Connection reset by peer]
einarj has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
freerobby has quit [Quit: Leaving.]
sambao21 has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
<mikecmpbll> what's a good pattern for finding the legnth of a longest sequence of repeated items in an array?
rshetty has quit [Remote host closed the connection]
drager has quit [Changing host]
drager has joined #ruby
<mikecmpbll> [1,2,2,2,4,2,1,5,3,1,3,5] would return 3, for instance.
<mikecmpbll> (sequence of 3 number 2's is the longest)
AFKGeek has quit [Quit: Fades into the shadows]
<shevy> huh
<mikecmpbll> i shouldn't have used numbers.
<shevy> oh you mean, highest count for n entries?
<shevy> because you have 3x 2 in there
<mikecmpbll> i think so?
<shevy> the simple way is to use a hash and count up inside of it
preyalone has joined #ruby
BTRRY has joined #ruby
BTRE has quit [Ping timeout: 250 seconds]
<mikecmpbll> hold on, just remembered a method which might be useful.
<jrochkind> apeiros: okay, thanks! That's the (opposite of) confirmation I needed, I will hunt my bug better. something odd is going on.
<jrochkind> apeiros: it is not a custom class that fails to implement it's own clone. In this case it's an array that has some singleton methods added to it. I am getting test failures on 2.1 but not 1.9.3 that look like the singleton methods weren't copying after a clone, but I will investigate further (or change my design to be less confusing and not use singleton methods!)
klmlfl has joined #ruby
larissa has joined #ruby
sambao21 has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
<apeiros_> mikecmpbll: each_cons(2) + memo should work fine
rageberry has joined #ruby
athan_ has joined #ruby
<mikecmpbll> ooh, each_cons..
<apeiros_> well, needs 2 memos. longest and current run.
econerd4ever has quit [Remote host closed the connection]
arup_r has joined #ruby
<mikecmpbll> ah hm
spyderman4g63 has joined #ruby
econerd4ever has joined #ruby
kish_ is now known as kish
<mikecmpbll> >> [1,2,2,2,4,2,1,5,3,1,3,5].chunk{|e| e}.map {|a,v| v.size}.max
kish has quit [Changing host]
kish has joined #ruby
<eval-in__> mikecmpbll => 3 (https://eval.in/229448)
<mikecmpbll> probably could be better but that's what i'm after.
<apeiros_> max_by + .size
<mikecmpbll> k
dotix has quit [Quit: Leaving]
<apeiros_> interesting solution
sambao21 has joined #ruby
* apeiros_ off for commute
apeiros_ has quit [Remote host closed the connection]
econerd4ever has quit [Read error: Connection reset by peer]
apeiros_ has joined #ruby
econerd4ever has joined #ruby
bal has quit [Quit: bal]
rpag has joined #ruby
lampd1 has quit []
freerobby has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
athan has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
panini_ has left #ruby ["Leaving"]
fernandolopez has joined #ruby
aganov has quit [Remote host closed the connection]
<shevy> don't commute!
<shevy> resist!
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<shevy> mikecmpbll cool solution with chunk
fandi has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
banister has joined #ruby
<eam> shevy: I am commuting right now, on a train
banister has quit [Max SendQ exceeded]
<eam> it's fantastic
* mikecmpbll beams
<shevy> JUMP OUT!
<eam> I can't it's packed full of humans
apeiros_ has quit [Ping timeout: 252 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
emmesswhy has joined #ruby
baweaver has quit [Ping timeout: 252 seconds]
Taranis has quit [Ping timeout: 258 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
musicmatze1 has quit [Ping timeout: 258 seconds]
Taranis has joined #ruby
lpaste has quit [Ping timeout: 258 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
mikepack has joined #ruby
tylersmith has quit [Ping timeout: 258 seconds]
brendenb has quit [Ping timeout: 258 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jottr has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
klmlfl has quit [Remote host closed the connection]
AxonetBE has quit [Quit: AxonetBE]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
musicmatze1 has joined #ruby
klmlfl has joined #ruby
jottr has joined #ruby
kalleth has quit [Ping timeout: 258 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
econerd4ever has quit [Remote host closed the connection]
<shevy> lol eam
brendenb has joined #ruby
<shevy> I hate such situations
freerobby has joined #ruby
freerobby has quit [Client Quit]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
rageberry has quit [Quit: WeeChat 0.4.2]
tylersmith has joined #ruby
C0deMaver1ck has quit [Ping timeout: 258 seconds]
rageberry has joined #ruby
<eam> it's much nicer inthe morning because most of them aren't homeless
Jello_Raptor has quit [Ping timeout: 258 seconds]
caveat- has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
kalleth has joined #ruby
caveat- has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
lpaste has joined #ruby
Guest76619 has joined #ruby
gccostabr has joined #ruby
freerobby has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
PierreRambaud has quit [Read error: Connection reset by peer]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
yfeldblum has joined #ruby
banister has joined #ruby
weems|mac has joined #ruby
banister has quit [Max SendQ exceeded]
weems|mac has quit [Changing host]
weems|mac has joined #ruby
banister has joined #ruby
Fire-Dragon-DoL has joined #ruby
<arup_r> anybody reading http://clean-ruby.com/ book ?
Jello_Raptor has joined #ruby
BTRRY has quit [Ping timeout: 264 seconds]
centrx has joined #ruby
rshetty has joined #ruby
rkalfane has joined #ruby
arya_ching_ has joined #ruby
<shevy> you have 120.000 karma on stackoverflow!
<shevy> how can you still read noobie books man
lpaste has quit [Ping timeout: 258 seconds]
lbrf has joined #ruby
yfeldblum has quit [Ping timeout: 255 seconds]
arya_ching has quit [Ping timeout: 255 seconds]
<arup_r> shevy: That's a good book I heard... Not for beginners..
kalleth has quit [Quit: No Ping reply in 180 seconds.]
nonks_ has quit [Ping timeout: 250 seconds]
<NGC3982> So, i'm installing subbot (https://github.com/paradox460/subbot) and i'm at the step where i should install it with "bundle install". When executing the command it tells me that my account is not valid, and to use "--path vendor/bundle" together with bundle install.
StoneCypher has joined #ruby
<NGC3982> When i do, i get an error message i'm having trouble googling.
<shevy> arup_r k - haven't read it myself
<NGC3982> And i'm new to all of this.
snath has joined #ruby
lpaste has joined #ruby
<NGC3982> This is the error message.
lucyinthesky has left #ruby ["Leaving"]
kalleth has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has joined #ruby
lmickh has joined #ruby
spider-mario has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
nonks_ has joined #ruby
BTRRY has joined #ruby
kyle__ has joined #ruby
<NGC3982> Oh, i actually found something.
BTRRY is now known as BTRE
clamstar has quit [Remote host closed the connection]
<kyle__> Is there a flag to pass JSON.pretty_generate to sort the keys in nested elements?
Seich has quit [Ping timeout: 258 seconds]
<jheg> just had my host install ruby on my server (I think) and I want to basically upload my sinatra app
<kyle__> I'm looking, and can't seem to find osmething to do that.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<jheg> but I have a feeling its just rails they have installed
andikr has quit [Remote host closed the connection]
<havenwood> NGC3982: if you haven't already: apt-get install ruby1.9-dev
sk87 has joined #ruby
almostworking has joined #ruby
<NGC3982> havenwood: Ok.
aspires has quit []
<NGC3982> And i'm currently following the thread instructions.
<jheg> I less than clueless regarding hosted your own ruby apps but should it jus be a case of uploading the sinatra project from my local dir to my server and it will work?
almostworking has left #ruby [#ruby]
Seich has joined #ruby
<havenwood> NGC3982: instead, install ruby1.9-dev and try again
<NGC3982> Oh, allright.
bMalum has joined #ruby
fabrice31 has quit [Remote host closed the connection]
<jhass> jheg: maybe they installed passenger? describe your host
<havenwood> NGC3982: sudo apt-get install -y ruby1.9-dev
<NGC3982> havenwood: Do you mean "ruby1.9.1-dev"?
<havenwood> jheg: can you ssh?
<havenwood> NGC3982: yeah
<jheg> havenwood: Yep I think so
bweston92 has quit [Remote host closed the connection]
jherbst has joined #ruby
diegoviola has joined #ruby
larissa has quit [Quit: Leaving]
<havenwood> jheg: ssh on and take a look around?
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sk87 has quit [Client Quit]
<jheg> prob a bit beyond my skill set but thanks for the direction i’ll check it out
emmesswhy has quit [Quit: This computer has gone to sleep]
<havenwood> jheg: ssh ...; gem list
<jheg> Ah I can see whcih gems are installed in cP
<kyle__> Anyone? Compleetly sorted JSON pretty_generate?
xymbol has quit [Quit: Be back later ...]
siaw has quit [Quit: siaw]
<centrx> kyle__, Sort before generating the JSON?
siaw has joined #ruby
lpaste has quit [Ping timeout: 258 seconds]
einarj has quit [Remote host closed the connection]
jottr_ has joined #ruby
<kyle__> centrx: I thought the hash didn't honor any order but inseration order?
jottr has quit [Ping timeout: 264 seconds]
bMalum has quit [Ping timeout: 244 seconds]
beseku has joined #ruby
beseku has quit [Client Quit]
lpaste has joined #ruby
<havenwood> >> {time: Time.new, aim: true}.sort.to_h
<eval-in__> havenwood => {:aim=>true, :time=>2014-12-02 16:39:50 +0000} (https://eval.in/229450)
<centrx> kyle__, .sort returns a new Hash with a new insertion order
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mkaesz has quit [Ping timeout: 245 seconds]
<havenwood> kyle__: Hashes are ordered.
gccostabr has quit [Quit: ZZZzzz…]
<kyle__> centrx: Humm. With a small enough dataset that won't be too painful..
<kyle__> havenwood: any way to do it other than on insertion order though?
Soda has quit [Remote host closed the connection]
<havenwood> kyle__: see my example above
xymbol has joined #ruby
<kyle__> havenwood: That's creating a new hash, with a new insertion order like centrx said. My understanding with other sorts, like the Array.sort!, is that it's in place, and not duplicating the entire datastructure.
<havenwood> kyle__: are you having performance problems?
<kyle__> havenwood: Not on the current dataset, but some that I have to work on are big enough that I could see them having problems.
<havenwood> kyle__: sounds like premature optimization
alex88 has quit []
<havenwood> kyle__: try the big ones
alex88 has joined #ruby
rshetty has quit [Remote host closed the connection]
alex88 has quit [Client Quit]
dcunit3d has quit [Ping timeout: 264 seconds]
alex88 has joined #ruby
rshetty has joined #ruby
<kyle__> havenwood: In this case I don't think it really is premature. Besides, my origonal question was if there was the functionality inside of pretty_generate already, so I woulnd't be re-implementing something in the standard libraries.
<kyle__> :)
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roolo has joined #ruby
<jheg> jhass: doesn’t look like passenger is installed
roolo_ has quit [Read error: Connection reset by peer]
<jheg> and when I try to install sinatra from cPanel I get following error:
<centrx> in-place sort! is not that much of a perf gain, as the duplicating sort is only duplicating the hash structure, not duplicating every single element in the hash
<jheg> ERROR: While executing gem ... (OptionParser::InvalidOption)
<jheg> invalid option: -y
CustosL1men has quit [Ping timeout: 272 seconds]
<jhass> cpanel... there's your issue :P
<NGC3982> havenwood: Neat. Thanks. Though, i have some new issues (that i do not know if they are ruby related.
renderful has joined #ruby
<havenwood> kyle__: how is it not premature if you've run into no problems? you're questioning what Ruby is doing under the hood without need.
<jhass> jheg: so you can control the configuration of whatever is serving port 80 and you can ssh in?
<havenwood> kyle__: drop your assumptions. test it on the big data and if no problems stop trying to backbend.
<jheg> there is a gem install option in cP and I /could/ ssh in if I knew how
<NGC3982> The readme for subbot tells me to "bundle install" which works without error when installing 1.9.1-dev. Although, when executing "rake db:create" i get: "Could not find i18n-0.6.5 in any of the sources". I can see in the bundle install output that "Using i18n 0.6.5".
<jheg> I have a VPS and ssh is possible
<NGC3982> Hm..
<kyle__> Questioning is never the problem with premature optimzation. Implmeneting is. You question first to figure out if it's neccesary.
maestrojed has joined #ruby
<jhass> apeiros: Guest1882 spams
<kyle__> And I would argue a test is a type of question.
<arup_r> jhass: Yes
<havenwood> kyle__: I'd suggest using #sort and #sort_by until you run into any issues.
<arup_r> that user gave me some link,. which I am trying to open, But couldn't open it..
Tricon has joined #ruby
<jhass> jheg: then I'd suggest to get a supervisor of some sort, run the app with puma or something under it and reverse proxy to it
Aswebb has quit []
matti has quit [Changing host]
matti has joined #ruby
boombadaroomba has joined #ruby
gccostabr has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
<havenwood> kyle__: it may not be nearly as inefficient as you expect
lpaste has quit [Ping timeout: 258 seconds]
anaeem1_ has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 250 seconds]
shtirlic has quit [Ping timeout: 258 seconds]
djbkd has joined #ruby
gccostabr has quit [Client Quit]
FutureTense has joined #ruby
<FutureTense> are we still having DNS issues?
fedexo has quit [Ping timeout: 244 seconds]
blackmesa has joined #ruby
<havenwood> FutureTense: nope
<jhass> no
momomomomo has quit [Quit: momomomomo]
<havenwood> FutureTense: https://status.rubygems.org
<FutureTense> im still getting a certificate issue
klmlfl has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 240 seconds]
TDJACR has quit [Ping timeout: 258 seconds]
klmlfl has joined #ruby
<FutureTense> something about the certificate validation failed
Tricon has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
rimenes has joined #ruby
lpaste has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
<FutureTense> any suggestions?
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<havenwood> FutureTense: did it work previously?
<havenwood> FutureTense: or a fresh setup?
neoxquick has joined #ruby
<FutureTense> no, this was a fresh setup
anaeem1_ has joined #ruby
<FutureTense> i attually have ruby installed
<FutureTense> but am trying to install jekyll
<eichenwald1> what distro
Morkel has quit [Quit: Morkel]
<FutureTense> of ruby or jekyll?
ikaros has quit [Quit: Ex-Chat]
<eichenwald1> what OS do you have ruby installed on
<FutureTense> windoze
<eichenwald1> are you getting OpenSSL certificate verify failed
arya_ching_ has quit []
TDJACR has joined #ruby
lucyinthesky has joined #ruby
arya_ching has joined #ruby
<FutureTense> hold on, its a colleague. i will get the exact wording, bu I dont recall seeing openssl as part o the message
shtirlic has joined #ruby
<adam12> What kind of hurt should I expect from changing an instance variable to a class variable?
<eichenwald1> Im guessing on windows it doesnt have the certs it needs
<workmad3> adam12: for starters, class variables (@@var) are shared across the entire inheritance hierarchy from the point it's defined downwards
<FutureTense> any suggestins on finding them?
<eichenwald1> FutureTense: https://gist.github.com/fnichol/867550
<FutureTense> i googled of course
siaw has quit [Quit: siaw]
<FutureTense> ty
Stoge88 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
dumdedum has quit [Quit: foo]
msgodf has quit [Ping timeout: 250 seconds]
<eichenwald1> have no idea if that works but I know on certain linux distros without CA certificates you're gonna have a bad time
sambao21 has quit [Quit: Computer has gone to sleep.]
spyderman4g63 has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 258 seconds]
SCHAAP137 has quit [Ping timeout: 244 seconds]
rshetty has quit [Remote host closed the connection]
Stoge88 has quit [Client Quit]
apeiros_ has joined #ruby
<adam12> workmad3: That's partially what I need, and also partially what I don't need.
rshetty has joined #ruby
patrick99e99 has joined #ruby
davasaurous has joined #ruby
chinmay_dd has quit [Quit: Leaving]
allcentury has quit [Ping timeout: 245 seconds]
shvelo has joined #ruby
paulfm_ has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
Guest76619 has quit [Ping timeout: 258 seconds]
spinx has joined #ruby
spinx has quit [Client Quit]
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
benzrf is now known as benzrf|offline
C0deMaver1ck has joined #ruby
Megtastique has joined #ruby
nonks_ has quit [Ping timeout: 250 seconds]
davasaurous has quit [Ping timeout: 264 seconds]
ghostmoth has joined #ruby
gsd has joined #ruby
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
allcentury has joined #ruby
codezomb has joined #ruby
joonty has quit [Quit: Leaving]
yfeldblum has joined #ruby
Ankhers has joined #ruby
dfinninger has quit [Remote host closed the connection]
pietr0 has joined #ruby
mleone has joined #ruby
timonv_ has quit [Remote host closed the connection]
dumdedum has joined #ruby
bricker`work has joined #ruby
econerd4ever has joined #ruby
yfeldblum has quit [Ping timeout: 250 seconds]
dANO has quit []
SCHAAP137 has joined #ruby
djbkd has quit [Remote host closed the connection]
econerd4_ has joined #ruby
sambao21 has joined #ruby
jottr_ has joined #ruby
paulfm_ has quit [Quit: Zzzzz...]
armyriad has quit [Ping timeout: 256 seconds]
jrichocean has joined #ruby
<FutureTense> No, I'm still getting a "certificate verify failed" message
shazaum has quit [Changing host]
shazaum has joined #ruby
alex88 has quit [Remote host closed the connection]
gheegh has joined #ruby
yetanotherdave has joined #ruby
gheegh has quit [Client Quit]
gheegh_ has joined #ruby
noop has joined #ruby
econerd4ever has quit [Ping timeout: 258 seconds]
allcentury has quit [Ping timeout: 245 seconds]
tesaf has joined #ruby
TPBallbag has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
Takle has quit [Remote host closed the connection]
dfinninger has joined #ruby
gheegh_ has quit [Quit: Textual IRC Client: www.textualapp.com]
gheegh has joined #ruby
aspires has joined #ruby
bmichelsen has quit [Quit: ZZZzzz…]
claw___ has joined #ruby
koderok has joined #ruby
claw__ has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
soulcake has quit [Quit: Quack.]
jrichocean has quit [Remote host closed the connection]
ghr has joined #ruby
abuzze has joined #ruby
soulcake has joined #ruby
geggam has joined #ruby
olivier_bK has quit [Ping timeout: 272 seconds]
sailias has quit [Quit: Leaving.]
sailias1 has joined #ruby
sailias1 is now known as sailias
wjimenez5271 has joined #ruby
StephenA1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
moritzs has joined #ruby
mikecmpbll has quit [Ping timeout: 258 seconds]
jimms has joined #ruby
koderok has quit [Quit: koderok]
_ixti_ has joined #ruby
Photism has joined #ruby
livathin_ has joined #ruby
bMalum has joined #ruby
livathin_ has quit [Remote host closed the connection]
claw___ has quit [Ping timeout: 244 seconds]
moritzschaefer has joined #ruby
mollitz has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
athan_ has quit [Ping timeout: 255 seconds]
ixti has quit [Ping timeout: 252 seconds]
kl has joined #ruby
sambao21 has joined #ruby
dcunit3d has joined #ruby
sambao21 has quit [Client Quit]
shazaum_ has joined #ruby
konsolebox has joined #ruby
claw___ has joined #ruby
livathinos has quit [Ping timeout: 245 seconds]
quimrstorres has quit [Remote host closed the connection]
circ-user-cnelk has quit [Remote host closed the connection]
bMalum has quit [Ping timeout: 252 seconds]
ValicekB has joined #ruby
jheg has quit [Quit: jheg]
nonks_ has joined #ruby
<gf3> is it possible to short-circuit a `reduce` with a value?
arya_ching has quit [Ping timeout: 255 seconds]
solidus-river has joined #ruby
last_staff has joined #ruby
shazaum has quit [Ping timeout: 264 seconds]
<apeiros_> gf3: you can always use break
troyready has joined #ruby
<gf3> apeiros_: getting `nil` back though
quimrstorres has joined #ruby
<gf3> apeiros_: ohp
jswe has joined #ruby
<apeiros_> gf3: `break value`
<gf3> apeiros_: forgot to `break` with a val
<gf3> thx
<apeiros_> same as with return. ruby doesn't magically know what you want :-p
shvelo has quit [Ping timeout: 252 seconds]
lectrick has quit [Read error: Network is unreachable]
Soda has joined #ruby
lectrick has joined #ruby
mozzarel1 is now known as mozzarella
<billy_ran_away> Anyone know how to add an alternate features directory to Cucumber?
mollitz has quit [Ping timeout: 245 seconds]
jottr_ has quit [Ping timeout: 245 seconds]
<billy_ran_away> Thinking this would be in a config block in lib/tasks/cucumber.rake
billy_ran_away was kicked from #ruby by apeiros_ [when cross-posting, say that you are cross-posting in each channel.]
moritzschaefer has quit [Ping timeout: 264 seconds]
dcunit3d has quit [Read error: Connection reset by peer]
moritzs has quit [Ping timeout: 250 seconds]
billy_ran_away has joined #ruby
dcunit3d has joined #ruby
jtperreault has joined #ruby
<jhass> apeiros_: mind op me short to better ban Guest1882 (it's back)? :)
bMalum has joined #ruby
<jhass> thx
<apeiros_> yw
<apeiros_> & thx :)
Guest1882 was banned on #ruby by jhass [*!~rumitte@213.143.60.*]
Darryl_ has quit [Quit: Connection closed for inactivity]
<rpag> i wonder is that bot written with cinch :o
giuseppesolinas has joined #ruby
blueOxigen has quit [Ping timeout: 240 seconds]
<rpag> maybe it accepts pull requests on github?
Guest1882 was kicked from #ruby by jhass [spam is offtopic]
alex88 has joined #ruby
rageberry has quit [Ping timeout: 264 seconds]
<waxjar> wouldn't it be easier to just ban on *!*rumitte*@*?
sambao21 has joined #ruby
djbkd has joined #ruby
kl has quit [Ping timeout: 245 seconds]
<apeiros_> *!~runmitte@*
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros_> the other is a bit broad
roolo has quit [Remote host closed the connection]
<jhass> do as you like, still gathering experiences
<apeiros_> I did as I like. I said how I'd do it :)
roolo has joined #ruby
athan_ has joined #ruby
stunder has joined #ruby
_djbkd has joined #ruby
nonks_ has quit [Ping timeout: 250 seconds]
kl has joined #ruby
weaksauce has quit [Ping timeout: 264 seconds]
Hijiri has joined #ruby
<shevy> ban!
<jhass> you want one?
<shevy> ban jhass!
noop has quit [Quit: Leaving]
allcentury has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
banister has joined #ruby
roolo has quit [Ping timeout: 256 seconds]
banister has quit [Max SendQ exceeded]
shvelo has joined #ruby
<shevy> :)
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<shevy> I get so excited when I see mass kicking
<shevy> it's like in a fight
<shevy> kick left, kick right, kick top
moritzs has joined #ruby
<shevy> I imagine programming in pairs to be that way
bkutil__ is now known as bkutil
mollitz has joined #ruby
moritzschaefer has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
dcunit3d has quit [Ping timeout: 256 seconds]
StephenA1 has quit [Quit: StephenA1]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
pietr0 has quit [Quit: pietr0]
checkit has joined #ruby
dcunit3d has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
<IceDragon> hey shevy, which toml gem is the best :O
rkalfane has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
xymbol has quit [Quit: Be back later ...]
<shevy> toml?
sambao21 has quit [Quit: Computer has gone to sleep.]
razieliyo has joined #ruby
razieliyo has joined #ruby
<IceDragon> This one I guess, has the most stars and recently updated
banister has joined #ruby
<IceDragon> ^~^ Its a markup language similar to ini
banister has quit [Max SendQ exceeded]
Crazy_Atheist has joined #ruby
banister has joined #ruby
whoisjake has quit []
banister has quit [Max SendQ exceeded]
pietr0 has joined #ruby
xymbol has joined #ruby
<shevy> cool
banister has joined #ruby
banister has quit [Max SendQ exceeded]
bluenemo has joined #ruby
<shevy> I kinda stick to yaml files for configuration
<shevy> usually in a hash format
spyderman4g63 has joined #ruby
marchtemp has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jswe has quit [Quit: This computer has gone to sleep]
kl has quit [Ping timeout: 240 seconds]
uber_hulk has quit [Ping timeout: 264 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
mollitz has quit [Ping timeout: 252 seconds]
moritzschaefer has quit [Ping timeout: 255 seconds]
nitrix has quit [Quit: EOF]
<marchtemp> hey guys, I've noticed that logger (the gem) doesn't write to file until the script finished running
moritzs has quit [Ping timeout: 256 seconds]
deepy has quit [Ping timeout: 245 seconds]
triple_b has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<marchtemp> I want to make it write after every log statement
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<IceDragon> flush?
<marchtemp> is that what flush does?
<IceDragon> how does the gem work, does it open the file, and return the handle or do you provide it with a file?
banister has joined #ruby
ptrrr has joined #ruby
boombadaroomba has joined #ruby
<marchtemp> IceDragon: it's the standard logger gem
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<waxjar> the one in the stdlib?
deepy has joined #ruby
claymore has joined #ruby
Joufflu_ has joined #ruby
tomeara has quit [Ping timeout: 255 seconds]
<IceDragon> marchtemp: You'd normally set the `File#sync = true` to flush it on every write
deepy is now known as Guest54595
<IceDragon> marchtemp: log = File.open('log.log', 'w'); log.sync = true;
MatthewsFace has quit [Remote host closed the connection]
<marchtemp> IceDragon: I see. thanks, I'll try that out
musicmatze1 has quit [Quit: WeeChat 0.4.3]
yfeldblum has joined #ruby
posixpascal has joined #ruby
<diegoviola> would you agree to a company that part of their hiring process is for you to write some code within 24 hours?
Joufflu has quit [Ping timeout: 258 seconds]
<oleo> no
musicmatze has joined #ruby
wallerdev has joined #ruby
<oleo> too optimistic.....
<oleo> it maybe possible but certainly not always....
<oleo> or for everyone.....
Crazy_Atheist has quit [Read error: Connection reset by peer]
<workmad3> diegoviola: kinda depends on what the code is
jobewan has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
GeorgesLeYeti has quit [Quit: Leaving]
patrick99e99 has quit [Ping timeout: 255 seconds]
abuzze_ has joined #ruby
<marchtemp> most companies make you code during the inteviews or make you demo a project.
yfeldblum has quit [Ping timeout: 250 seconds]
<marchtemp> diegoviola: maybe I misunderstood the question but barely anyone gets hired without writing code nowadays
siaw has joined #ruby
<diegoviola> marchtemp: I was referring to companies that make you code during interviews, or as part of the hiring process
Hobogrammer has joined #ruby
Abhijit has quit [Remote host closed the connection]
<IceDragon> diegoviola: puts 'Hello World'; # can I have the job now?
<marchtemp> diegoviola: I'd be concerned to join a company that doesn't do it
oleo is now known as Guest96728
oleo__ has joined #ruby
alex88 has quit []
abuzze has quit [Ping timeout: 245 seconds]
<shevy> shall I name files like so: foobar?.rb
oleo__ has quit [Remote host closed the connection]
siaw has quit [Client Quit]
MatthewsFace has joined #ruby
nkumari has joined #ruby
livathinos has joined #ruby
livathinos has quit [Client Quit]
<waxjar> why would you do that
uber_hulk has joined #ruby
Guest96728 has quit [Ping timeout: 256 seconds]
<jhass> you're still asking that?
<shevy> waxjar to name them after a method name
oleo__ has joined #ruby
troyready has quit [Quit: Leaving]
oleo__ is now known as oleo
jerius has quit [Remote host closed the connection]
<IceDragon> shevy: foobar?.rb -> is_foobar.rb
FooMunki_ has quit [Quit: FooMunki_]
jerius has joined #ruby
<marchtemp> IceDragon: foobarp.rb, make it clispy!
sevvie has joined #ruby
* IceDragon adds ketchup to foobarp.rb
<shevy> IceDragon well that would also be a violation
sevvie has quit [Client Quit]
<shevy> like calling it foobar.rb when the method name would not be foobar exactly
mikepack has quit [Remote host closed the connection]
pengin has joined #ruby
uber_hulk has quit [Read error: Connection reset by peer]
<arup_r> shevy: Do you do TDD ?
uber_hulk has joined #ruby
rshetty_ has joined #ruby
ponga has quit [Quit: Leaving...]
fabrice31 has joined #ruby
randomguy123 has joined #ruby
<shevy> arup_r don't think so, depends on what you mean with TDD. if you mean write tests first, then code, then nope
randomguy123 is now known as randomguy321
<randomguy321> Would you believe it, randomguy123 is a registered nickname...
centrx has quit [Quit: Did gyre and gymble in ye wabe]
last_staff has quit [Remote host closed the connection]
mjuszczak has joined #ruby
rshetty has quit [Ping timeout: 256 seconds]
TPBallbag has joined #ruby
dts is now known as tcs
tcs is now known as dts
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
troyready has joined #ruby
<terrellt> What
<shevy> lol
dumdedum has quit [Quit: foo]
davedev24_ has quit [Ping timeout: 264 seconds]
<terrellt> Who's naming their files based on methods? Is there a joke I missed?
TheNet has joined #ruby
shvelo has quit [Ping timeout: 240 seconds]
athan_ has quit [Quit: Leaving]
<diegoviola> workmad3: a sample rails app
<diegoviola> a small one
fabrice31 has quit [Ping timeout: 272 seconds]
<randomguy321> Anyway, I use Ruby primarily for running SASS, Compass, and other development tools. I'm running Ubuntu 14.04.1 and from the official repos, I can install 1.9.3.4. This seems to be a recommended way of installing Ruby on Ubuntu; however, I get the impression that alternatives such as rvm are far more flexible. What's the most common method that Ruby devs use for installing/managing Ruby? Thanks!
eichenwald1 has quit [Quit: WeeChat 1.0.1]
davedev24_ has joined #ruby
<workmad3> diegoviola: how small ;)
<randomguy321> Also, Ruby 2 isn't available in official Ubuntu repos, and I'm wondering if I even need it.
<waxjar> randomguy321: if you just need one version of ruby, just using your package manager is fine
nkumari has quit [Remote host closed the connection]
havenwood has quit []
nkumari has joined #ruby
<waxjar> rvm/rbenv/chruby are convenient if you want to be able to use multiple versions of ruby
<terrellt> randomguy321: rbenv/chruby/rvm are good for switching ruby versions. If you're using development tools they're probably not locked to 2.x yet.
nastri has quit [Remote host closed the connection]
posixpascal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> randomguy321: I personally use chruby and ruby-install... if you want to use a single version + package manager and want ruby2+, you could use the brightbox PPA
<diegoviola> workmad3: 3-4 controllers/models, some views...
<diegoviola> workmad3: I once received this as an assignment, for example: http://i.imgur.com/MmgcAt0.png
klmlfl_ has joined #ruby
pengin has quit [Remote host closed the connection]
pengin has joined #ruby
<randomguy321> Okay, thanks for your advice everyone.
redjack1964 has quit [Remote host closed the connection]
<workmad3> diegoviola: hmm... depending on how complete they wanted that, I'd say it was probably a bit of a push for 24 hours... especially if they were interviewing people that already had jobs
ghr has joined #ruby
moritzs has joined #ruby
<diegoviola> right
<workmad3> diegoviola: the last time I had a job interview that included an offline development task, it was a series of tasks for an existing code-base and had about 3-4 days to do as much as could (iirc, I got everything but one task done on it... that last task, I got part-done, and put a note in my response saying I got to that point but had a bug I couldn't squash)
raja has joined #ruby
<workmad3> diegoviola: end of the day, it's their perogative to set up their assessment process any way they want, and it's your perogative to tell them to take a long walk off a short cliff ;)
klmlfl has quit [Ping timeout: 250 seconds]
<workmad3> anyway, must go... hf all
<diegoviola> workmad3: interesting
raja has quit [Max SendQ exceeded]
<arup_r> workmad3: made his work 3 times perfectly...
silkfox has joined #ruby
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
pengin has quit [Ping timeout: 256 seconds]
<terrellt> The minimal ruby framework piece makes it a little more time consuming.
raja has joined #ruby
mikepack has joined #ruby
jimms has quit []
gccostabr has joined #ruby
ghr has quit [Ping timeout: 252 seconds]
raja has quit [Max SendQ exceeded]
jonr22 has joined #ruby
mikedugan has joined #ruby
raja has joined #ruby
jherbst has joined #ruby
beef-wellington has quit [Ping timeout: 252 seconds]
<mikedugan> 'ello, are module directories camelCase ala classes?
<randomguy321> For a random tool (such as Compass), how can I check which version of Ruby the tool is built for? I know I can check the .travis.yml file in the repo and see which versions the code is tested against, but this doesn't seem like a "canonical" way of checking this (e.g. perhaps the tool isn't tested or something).
<mikedugan> s/camel/snake_case
raja has quit [Max SendQ exceeded]
quimrstorres has quit [Remote host closed the connection]
<IceDragon> randomguy321: as far as I know, they either put it in the README or you hope for the best..
gccostabr has quit [Client Quit]
<IceDragon> Usually anything built for 1.9 will work with >= 1.9
raja has joined #ruby
triple_b has joined #ruby
<randomguy321> IceDragon: Ah, okay, thank you.
workmad3 has quit [Ping timeout: 252 seconds]
dramalho has quit [Ping timeout: 256 seconds]
raja has quit [Max SendQ exceeded]
raja has joined #ruby
sinequanon has joined #ruby
jottr_ has joined #ruby
larissa has joined #ruby
raja has quit [Max SendQ exceeded]
doodlehaus has quit [Ping timeout: 258 seconds]
moritzs has quit [Ping timeout: 255 seconds]
raja has joined #ruby
jonr22 has quit [Ping timeout: 264 seconds]
commmmodo has joined #ruby
jrochkind has left #ruby [#ruby]
bayed has quit [Quit: Connection closed for inactivity]
raja has quit [Max SendQ exceeded]
raja has joined #ruby
raja has quit [Max SendQ exceeded]
raja has joined #ruby
nonks_ has joined #ruby
AlSquire has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
jottr_ has quit [Ping timeout: 250 seconds]
gccostabr has joined #ruby
raja has quit [Max SendQ exceeded]
jherbst has quit [Quit: Textual IRC Client: www.textualapp.com]
raja has joined #ruby
jherbst_ has joined #ruby
commmmodo has quit [Ping timeout: 272 seconds]
randomguy321 has quit [Quit: Page closed]
silkfox has quit [Ping timeout: 240 seconds]
ConstantineXVI has quit [Max SendQ exceeded]
raja has quit [Max SendQ exceeded]
ConstantineXVI has joined #ruby
raja has joined #ruby
rdark has quit [Quit: leaving]
ConstantineXVI has quit [Max SendQ exceeded]
timonv_ has joined #ruby
raja has quit [Max SendQ exceeded]
ConstantineXVI has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
raja has joined #ruby
AlSquire has joined #ruby
jdj_dk has joined #ruby
nonks_ has quit [Ping timeout: 250 seconds]
ConstantineXVI has quit [Max SendQ exceeded]
fmcgeough has joined #ruby
rshetty_ has quit [Remote host closed the connection]
raja has quit [Max SendQ exceeded]
ConstantineXVI has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
raja has joined #ruby
nateberkopec has quit [Quit: Leaving...]
ConstantineXVI has quit [Max SendQ exceeded]
raja has quit [Max SendQ exceeded]
davasaurous has joined #ruby
raja has joined #ruby
ConstantineXVI has joined #ruby
raja has quit [Max SendQ exceeded]
iamninja has joined #ruby
rshetty has joined #ruby
raja has joined #ruby
ConstantineXVI has quit [Max SendQ exceeded]
ConstantineXVI has joined #ruby
graydot has joined #ruby
raja has quit [Max SendQ exceeded]
moritzs has joined #ruby
raja has joined #ruby
ConstantineXVI has quit [Max SendQ exceeded]
davasaurous has quit [Ping timeout: 255 seconds]
raja has quit [Max SendQ exceeded]
raja has joined #ruby
eichenwald has joined #ruby
supersym has quit [Ping timeout: 245 seconds]
GOSHDARNYOU has quit [Quit: Connection closed for inactivity]
raja has quit [Max SendQ exceeded]
rshetty has quit [Ping timeout: 264 seconds]
raja has joined #ruby
yfeldblum has joined #ruby
raja has quit [Max SendQ exceeded]
ohaibbq has joined #ruby
JimmyNeutron has joined #ruby
raja has joined #ruby
Stoge88 has joined #ruby
raja has quit [Max SendQ exceeded]
raja has joined #ruby
robbyoconnor has quit [Quit: Konversation terminated!]
raja has quit [Max SendQ exceeded]
sambao21 has joined #ruby
ConstantineXVI has joined #ruby
raja has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
duncan_ has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
konsolebox has quit [Remote host closed the connection]
raja has quit [Max SendQ exceeded]
ConstantineXVI has quit [Max SendQ exceeded]
ConstantineXVI has joined #ruby
raja has joined #ruby
ValicekB has quit [Ping timeout: 272 seconds]
x1337807x has joined #ruby
konsolebox has joined #ruby
moritzs has quit [Ping timeout: 250 seconds]
raja has quit [Max SendQ exceeded]
whoisjake has joined #ruby
raja has joined #ruby
raja has quit [Max SendQ exceeded]
lemur has joined #ruby
ConstantineXVI has quit [Max SendQ exceeded]
baweaver has joined #ruby
baweaver has quit [Remote host closed the connection]
raja has joined #ruby
raja has quit [Client Quit]
boombadaroomba has quit [Remote host closed the connection]
baweaver has joined #ruby
bMalum has quit [Quit: bMalum]
kirun has joined #ruby
Photism has quit [Quit: Leaving]
lemur has quit [Ping timeout: 256 seconds]
lucyinthesky has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
bMalum has joined #ruby
davedev2_ has joined #ruby
baweaver has quit [Read error: Connection reset by peer]
aarkerio has joined #ruby
silkfox has joined #ruby
asmodlol has joined #ruby
ValicekB has joined #ruby
NoNMaDDeN has quit [Ping timeout: 240 seconds]
NoNMaDDeN has joined #ruby
davedev24_ has quit [Ping timeout: 244 seconds]
<aarkerio> hi ! in: block = lambda { |params, _| deprecated_block.call(params) }
<aarkerio> what is "_" ?
<aarkerio> it is a ruby convention?
timonv_ has quit [Remote host closed the connection]
weaksauce has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
boombadaroomba has joined #ruby
athan has joined #ruby
<athan> does the `render` function come with erb? I'm trying to make a lightweight sinatra app
x1337807_ has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
maestrojed has quit [Quit: Computer has gone to sleep.]
timonv_ has joined #ruby
<mozzarella> aarkerio: _ is when you don't care about it and are not going to use it
sambao21 has quit [Quit: Computer has gone to sleep.]
sevvie has joined #ruby
x1337807x has quit [Ping timeout: 252 seconds]
<aarkerio> thanks mozzarella !
ConstantineXVI has joined #ruby
nkumari has quit [Remote host closed the connection]
ConstantineXVI has quit [Max SendQ exceeded]
Crazy_Atheist has joined #ruby
ConstantineXVI has joined #ruby
failshell has quit []
sambao21 has joined #ruby
banister has quit [Ping timeout: 250 seconds]
ConstantineXVI has quit [Max SendQ exceeded]
kiyote23 has joined #ruby
jottr_ has joined #ruby
gr33n7007h has quit [Ping timeout: 264 seconds]
x1337807_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Photism has joined #ruby
freerobby has quit [Quit: Leaving.]
banister has joined #ruby
freerobby has joined #ruby
gr33n7007h has joined #ruby
x1337807x has joined #ruby
niftylettuce has joined #ruby
* totimkopf tosses niftylettuce on his burger along with spiffytomato
Rahul_Roy_ has joined #ruby
ghr has joined #ruby
nkumari has joined #ruby
yokel has quit [Ping timeout: 240 seconds]
nateberkopec has joined #ruby
conniemj has joined #ruby
yokel has joined #ruby
duncan_ has quit [Ping timeout: 256 seconds]
nhhagen has joined #ruby
aarkerio has quit [Quit: Verlassend]
gr33n7007h has quit [Quit: Leaving]
JBreit has joined #ruby
gr33n7007h has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
linojon_ has joined #ruby
linojon has quit [Ping timeout: 272 seconds]
linojon_ is now known as linojon
shvelo has joined #ruby
rshetty has joined #ruby
JBreit has left #ruby [#ruby]
sptx00 has quit [Remote host closed the connection]
tectonic has joined #ruby
C0deMaver1ck has quit [Ping timeout: 258 seconds]
LBRapid has quit [Ping timeout: 258 seconds]
jottr_ has quit [Ping timeout: 264 seconds]
lpaste has quit [Ping timeout: 258 seconds]
LBRapid has joined #ruby
rshetty has quit [Ping timeout: 264 seconds]
doodlehaus has joined #ruby
mikepack has quit [Remote host closed the connection]
lucyinthesky has joined #ruby
evanjs is now known as evanfreeman
last_staff has joined #ruby
C0deMaver1ck has joined #ruby
evanfreeman is now known as evanjs
C0deMaver1ck is now known as Guest76002
apope has joined #ruby
nonks_ has joined #ruby
nkumari has quit [Remote host closed the connection]
uber_hulk has quit [Quit: Good night!]
paulfm_ has joined #ruby
Seich has quit [Ping timeout: 258 seconds]
postmodern has joined #ruby
emmesswhy has joined #ruby
lucyinthesky has left #ruby ["Leaving"]
TTilus has quit [Ping timeout: 265 seconds]
ConstantineXVI has joined #ruby
russt has joined #ruby
Seich has joined #ruby
jheg has joined #ruby
maestrojed has joined #ruby
ConstantineXVI has quit [Max SendQ exceeded]
ConstantineXVI has joined #ruby
ConstantineXVI has quit [Max SendQ exceeded]
nhhagen has quit []
nonks_ has quit [Ping timeout: 250 seconds]
lpaste has joined #ruby
Blizzy has joined #ruby
Jake232 has joined #ruby
checkit has quit [Quit: (null)]
nkumari has joined #ruby
emmesswhy has quit [Ping timeout: 250 seconds]
mloveless has joined #ruby
mloveless has quit [Client Quit]
narcan has joined #ruby
emmesswhy has joined #ruby
xymbol has quit [Read error: Connection reset by peer]
ehc has joined #ruby
goodenough has joined #ruby
dda has joined #ruby
xymbol has joined #ruby
last_staff has quit [Quit: last_staff]
aspires has quit []
checkit has joined #ruby
rimenes has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dr4_ has joined #ruby
Seich has quit [Ping timeout: 258 seconds]
whoisjake has quit []
Seich has joined #ruby
silkfox has quit [Ping timeout: 250 seconds]
dr4 has quit [Ping timeout: 240 seconds]
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dotix has joined #ruby
rodfersou has quit [Quit: leaving]
dda has quit [Quit: logging out.]
econerd4_ has quit [Remote host closed the connection]
econerd4ever has joined #ruby
dda has joined #ruby
wallerdev has quit [Quit: wallerdev]
aspires has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
jdj_dk has quit [Quit: Leaving...]
jheg has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
econerd4ever has quit [Ping timeout: 264 seconds]
silkfox has joined #ruby
rshetty has joined #ruby
fabrice31 has joined #ruby
<ohaibbq> athan: i think you want ERB#result
<athan> ohaibbq: Sorry, I figured it out. A call to <%= erb 'foo' %> does it in sinatra :)
<ohaibbq> no worries, i realized i was an hour late after i sent the message :)
<shevy> better late than never
tjbiddle has joined #ruby
mjuszczak has quit []
Mateon1 has quit [Changing host]
Mateon1 has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<rpag> shevy, why are you naming files are method names?
fabrice31 has quit [Ping timeout: 252 seconds]
rshetty has quit [Ping timeout: 272 seconds]
chrishough has joined #ruby
<shevy> rpag easier to keep track; all of them are filterable actions
ldnunes has quit [Quit: Leaving]
arup_r has quit [Quit: Leaving.]
<rpag> one method to a file?
<jhass> ohaibbq: response times of several hours are nothing unexpected on IRC ;)
<shevy> yes
mikepack has joined #ruby
<shevy> rpag actually more like one action per file
<rpag> with no classes?
<shevy> there are dozens of different classes involved, in many different projects as well
TTilus has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<rpag> do the methods end up class_eval'ed or something?
randiman has joined #ruby
<shevy> not sure, I am rewriting still and haven't even touched 30% yet
tyfighter has joined #ruby
<shevy> but I don't think eval is used much at all, let me grep
<shevy> no eval
nkumari has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
<rpag> so, lots of methods, one per file, loaded into the toplevel
Seich has quit [Ping timeout: 258 seconds]
<shevy> no
<shevy> only the actions have their own files
<shevy> there are lots of methods that don't and reside in other parts of that project
<rpag> whats an action?
<shevy> something that interprets a cmdlet
DLSteve has joined #ruby
nkumari has joined #ruby
<shevy> here is an example for video-related actions: http://avisynth.nl/index.php/First_script
<shevy> FlipVertical
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
renanoronfle has quit [Read error: Connection reset by peer]
Seich has joined #ruby
gee_totes has joined #ruby
<rpag> ok
<rpag> i would recommend dont use foo?.rb
<rpag> its an annoying to reference from a shell
<shevy> yeah but then it's an exception
<rpag> exception because of?
<shevy> name of action/method becomes the name of the file
jonr22 has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
wallerdev has quit [Quit: wallerdev]
jheg has joined #ruby
tectonic has joined #ruby
rimenes has joined #ruby
s00pcan has quit [Ping timeout: 258 seconds]
jonr22 has quit [Ping timeout: 258 seconds]
tylersmith has quit [Ping timeout: 258 seconds]
AndyBotwin has joined #ruby
momomomomo has joined #ruby
rshetty has joined #ruby
yfeldblum has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
tylersmith has joined #ruby
ghr has joined #ruby
sptx00 has joined #ruby
TDJACR has quit [Ping timeout: 258 seconds]
rshetty has quit [Ping timeout: 256 seconds]
pietr0 has quit [Quit: pietr0]
klmlfl has joined #ruby
mleone_ has joined #ruby
mleone_ has quit [Max SendQ exceeded]
jottr_ has joined #ruby
dseitz has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
elaptics is now known as elaptics`away
pietr0 has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
hiyosi has joined #ruby
LBRapid has quit [Ping timeout: 258 seconds]
brendenb has quit [Ping timeout: 258 seconds]
s00pcan has joined #ruby
LBRapid has joined #ruby
klmlfl_ has quit [Ping timeout: 272 seconds]
mleone has quit [Ping timeout: 272 seconds]
konsolebox has quit [Ping timeout: 240 seconds]
davasaurous has joined #ruby
brendenb has joined #ruby
startupality has quit [Quit: startupality]
davasaurous has quit [Ping timeout: 252 seconds]
<gee_totes> i have a subclass that needs to set variables on a parent class, how would i do that?
shazaum_ has quit [Quit: This computer has gone to sleep]
sevvie has quit [Quit: leaving]
kamilc__ has quit [Quit: Linkinus - http://linkinus.com]
wldcordeiro_ has joined #ruby
wldcordeiro_ has quit [Max SendQ exceeded]
sevvie has joined #ruby
brendenb has quit [Ping timeout: 258 seconds]
wldcordeiro_ has joined #ruby
<jheg> super?
agjacome has joined #ruby
eindoofus_ has quit [Quit: Leaving]
<shevy> gee_totes both are instantiated?
brendenb has joined #ruby
<shevy> actually, that question might be a use case for those ugly @@vars
JoshGlzBrk has joined #ruby
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zmisc has joined #ruby
Guest39768 has joined #ruby
lpaste has quit [Ping timeout: 258 seconds]
spyderman4g63 has quit [Read error: Connection reset by peer]
spyderma_ has joined #ruby
dramalho has joined #ruby
_djbkd has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
<gee_totes> shevy: yeah, that's what it's looking like
<gee_totes> i think i will use @@ to set the var in my child class, and @ to access it in the parent class
quimrstorres has joined #ruby
djbkd has joined #ruby
dfinninger has quit [Remote host closed the connection]
randiman has quit [Quit: (null)]
<shevy> k but actually the @@ will be valid in both classes or?
konsolebox has joined #ruby
<shevy> it's like a semi global variable, in regards to your class hierarchy
supersym has joined #ruby
lolmaus has joined #ruby
dfinninger has joined #ruby
perrier has quit [Remote host closed the connection]
<gee_totes> shevy: the @@ is just a string that i'm using as a key for an array
<gee_totes> but each subclass needs data in a different part of the array
nonks_ has joined #ruby
decoponio has quit [Quit: Leaving...]
lpaste has joined #ruby
perrier has joined #ruby
lolmaus_ has joined #ruby
djbkd has quit [Ping timeout: 244 seconds]
baroquebobcat_ has joined #ruby
rshetty has joined #ruby
econerd4ever has joined #ruby
phutchins has quit [Ping timeout: 272 seconds]
sevvie has quit [Quit: leaving]
yourname has joined #ruby
lolmaus__ has joined #ruby
baroquebobcat has quit [Ping timeout: 240 seconds]
baroquebobcat_ is now known as baroquebobcat
quimrstorres has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
pauly_oc has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
nonks_ has quit [Ping timeout: 250 seconds]
anaeem1 has joined #ruby
rshetty has quit [Ping timeout: 245 seconds]
lolmaus_ has quit [Ping timeout: 240 seconds]
Soda has quit [Read error: Connection reset by peer]
econerd4ever has quit [Quit: Leaving...]
baweaver has joined #ruby
wallerdev has joined #ruby
rkalfane has joined #ruby
narcan has joined #ruby
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonks_ has joined #ruby
rkalfane has quit [Read error: Connection reset by peer]
n1lo has quit [Quit: Leaving]
anaeem1 has quit [Ping timeout: 264 seconds]
mjuszczak has joined #ruby
rkalfane has joined #ruby
goodenough has quit [Remote host closed the connection]
lolmaus has joined #ruby
geggam has quit [Ping timeout: 244 seconds]
aspires has quit []
lolmaus_ has joined #ruby
xymbol has quit [Read error: Connection reset by peer]
nonks_ has quit [Ping timeout: 250 seconds]
jenrzzz has joined #ruby
lolmaus__ has quit [Ping timeout: 240 seconds]
tejas-manohar has joined #ruby
robbyoconnor has joined #ruby
lolmaus has quit [Ping timeout: 240 seconds]
xaxisx has joined #ruby
zmisc has quit [Ping timeout: 264 seconds]
baweaver has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 240 seconds]
rshetty has joined #ruby
xymbol has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
Musashi007 has joined #ruby
anaeem1_ has joined #ruby
lolmaus_ has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
crack_user has joined #ruby
<crack_user> hello guys
<crack_user> I am trying to install rmagick in yosemite
<crack_user> but I get some errors
<crack_user> Can't install RMagick 2.13.2. Can't find Magick-config in /usr/bin:/bin:/usr/sbin:/sbin
<crack_user> any help?
robbyoconnor has quit [Read error: Connection reset by peer]
<totimkopf> crack_user: did you install ImageMagick-devel?
Xeago_ has quit [Remote host closed the connection]
sambao21 has joined #ruby
<crack_user> i am using osx
<crack_user> there is it in brew
rshetty has quit [Ping timeout: 272 seconds]
lpaste has quit [Ping timeout: 258 seconds]
<totimkopf> crack_user: hmm, have you installed imagemagick with brew?
<crack_user> yep
Xiti has quit [Ping timeout: 258 seconds]
sambao21 has quit [Client Quit]
<dotix> echo $PATH ?
yakko has joined #ruby
<shevy> crack_user seems as if the bin/Magick-config file is in an unusual location
lpaste has joined #ruby
<dotix> not a osx user but had some problems with imagemagick in the past
yakko is now known as thejamespinto
DarthGandalf has quit [Quit: Bye]
<gr33n7007h> What's the gem called for editing sinatra app without restarting webrick all the time?
Xiti has joined #ruby
<dotix> livereload?
robertt_dex has quit [Remote host closed the connection]
<dotix> maybe rack-livereload
baweaver has joined #ruby
rpag has quit [Ping timeout: 245 seconds]
<gee_totes> how do i call the initialize method on a parent class?
<gee_totes> i have a sub class i'm creating with class.new, but i need the initialize method on the parent class to run as well
<gr33n7007h> dotix, something like slingshot?
lkba has quit [Ping timeout: 264 seconds]
sambao21 has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
<dotix> looks like slingshot was renamed to tire and tire is a client for ElasticSearch
lucyinthesky has joined #ruby
<dotix> maybe I've misunderstood your question
<gr33n7007h> not that then :(
<gee_totes> ahh, the super(ParentClass) will do it -- answering my own question
<dotix> gr33n7007h, does this help you? http://www.sinatrarb.com/faq.html#reloading
fantazo has joined #ruby
<crack_user> dotix: /Users/myuser/.rvm/gems/ruby-2.0.0-p481@gemset/bin:/Users/myuser/.rvm/gems/ruby-2.0.0-p481@global/bin:/Users/myuser/.rvm/rubies/ruby-2.0.0-p481/bin:/Users/myuser/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
<gr33n7007h> dotix, thanks will take a look
<crack_user> shevy: how can I check that?
vinleod has joined #ruby
<dotix> crack_user, is there any way to check where Magick-config is?
<dotix> For example in Debian you do: dpkg --search Magick-config
<dotix> and because I'm running sid I got Magick-config in: libmagickcore-6.q16-dev:amd64: /usr/lib/x86_64-linux-gnu/ImageMagick-6.8.9/bin-Q16/Magick-config
Seich has quit [Max SendQ exceeded]
ptrrr has quit [Quit: ptrrr]
rshetty has joined #ruby
bluenemo has quit [Quit: Verlassend]
<dotix> usually should be in /usr/bin/Magick-config ... now imagine if I had that in my PATH.
<shevy> crack_user many ways. I do this when everything else fails:
<dotix> Try to find where is localized and add it in your PATH, I'm pretty sure is not there
<shevy> find / -name Magick-config
<shevy> locate is faster tho
<dotix> locate is indexed right?
<shevy> yeah, the database can be updated via "updatedb"
<dotix> try to run find with sudo
sambao21 has quit [Quit: Computer has gone to sleep.]
<shevy> crack_user you use a BSD base system, come on man, you can do it :)
acmehandle has joined #ruby
<gr33n7007h> a ah, shotgun can never remember that gem
Seich has joined #ruby
<dotix> :D
<gr33n7007h> slingshot 707
sambao21 has joined #ruby
jespada has quit [Quit: Leaving]
ghr has joined #ruby
havenwood has joined #ruby
rshetty has quit [Ping timeout: 256 seconds]
nkumari has quit [Remote host closed the connection]
pietr0 has quit [Quit: pietr0]
ConstantineXVI has joined #ruby
lkba has joined #ruby
djbkd has joined #ruby
rpag has joined #ruby
Seich has quit [Max SendQ exceeded]
thumpba_ has joined #ruby
samuel02 has joined #ruby
Seich has joined #ruby
nkumari has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
ghr has quit [Ping timeout: 244 seconds]
lucyinthesky has left #ruby ["Leaving"]
lolmaus has joined #ruby
klmlfl_ has joined #ruby
klmlfl_ has quit [Remote host closed the connection]
klmlfl has quit [Read error: Connection reset by peer]
sklik has joined #ruby
narcan has joined #ruby
klmlfl has joined #ruby
Or1on has joined #ruby
<gee_totes> hmm.. i'm still confused on how i can set a variable on my parent class from a subclass
xaxisx has quit [Quit: xaxisx]
tjbiddle has joined #ruby
<shevy> gee_totes why would you want to do that
<gee_totes> i'm still getting unitalized class varaible @@myvar in the parent class
<shevy> gee_totes k initialize it in the parent?
goodenough has joined #ruby
davasaurous has joined #ruby
<gee_totes> shevy: because i have a yaml config with different settings for each class
<jhass> gee_totes: Please share your code on https://gist.github.com
<shevy> gee_totes you ought to initialize a class, otherwise it is dead weight
tjbiddle has quit [Client Quit]
<gee_totes> but i want them to inherit from a parent class since most of them do the same thing
jimbach has quit [Remote host closed the connection]
poweratom_ has joined #ruby
<eam> class systems are tools of oppressors
<shevy> you can do that anyway right?
thumpba_ has quit [Ping timeout: 244 seconds]
ramfjord has joined #ruby
<shevy> your subclass will contain only code and data that is different to the parent class
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
aspires has joined #ruby
<gee_totes> shevy: so i can't set a variable from the subclass on the parent class and tell it which part of the config to read?
<shevy> huh
DarthGandalf has joined #ruby
<shevy> your subclass will have the configuration right?
samuel02 has quit [Read error: Connection reset by peer]
godd2 has joined #ruby
xaxisx has joined #ruby
<shevy> I am not sure why you keep on referring to the parent class
mikepack has quit [Remote host closed the connection]
<gee_totes> i'm building a webscraper and there is a different class for each website, but the methods for visiting the urls are the same
<shevy> your subclass already will have the data and methods and code associated with it; if you wish to restrict data, such as the config, then simply do so in an automatic way
<gee_totes> and in the methods for visiting the urls, i want to check against a blacklist
davasaurous has quit [Ping timeout: 244 seconds]
<shevy> right so you always have the method super available, and you can adjust all the methods and all the data of your subclass
davasaurous has joined #ruby
<jhass> gee_totes: are we talking about an instance or the class itself
<gee_totes> yes, i'm trying to pass they key for looking in the yaml file that defines the blacklist back up to the parent class
<gee_totes> class instance
<jhass> so
devyn has joined #ruby
<jhass> if you have class P; end; class C < P; end; C.new
<jhass> there's no instance of P
tjbiddle has joined #ruby
<jhass> all the C < P does is making the methods of P available in C
TC` has joined #ruby
tjbiddle has quit [Client Quit]
<jhass> therefore when talking about instances "setting in the parent class" is illogical
<gee_totes> jhass: correct, and i'd like to pass a key back up to P so when i run P.visit_url, it knows which blacklist to check against
<jhass> there's no up, there's no instance you could pass anything to
<twohlix_> yea
<twohlix_> you dont inherit from an instance
<gee_totes> ok, then can i have P check for something in C?
mjuszczak has quit []
<jhass> simply assume it's there
<shevy> why would you even have to do it
<shevy> you have C - all that P can do C can do
<jhass> call a method or set an @instance_var
<twohlix_> I dont think you quite get inheritance gee_totes
mjuszczak has joined #ruby
roolo has joined #ruby
<godd2> "Anything P can do C can do better!"
<gee_totes> twohlix_ nope, probabaly not
<shevy> gee_totes the subclass is a specialization
mikepack has joined #ruby
TC` has left #ruby [#ruby]
rimenes has quit [Quit: Textual IRC Client: www.textualapp.com]
<jhass> also if really all that's different is the URL
<jhass> why don't you simply do P.new(url)
<gee_totes> jhass: more than just the url is different; the methods for traversing the site are different as well
<gee_totes> but lol, i just realized i can have P check a variable in C with the @ symbol
<jhass> so there's http://en.wikipedia.org/wiki/Template_method_pattern for exactly that problem
<twohlix_> uhhh a parent really should have no knowledge of their child
<jhass> or you just super(url) in the subclass' initialize
niftylettuce has quit [Quit: Connection closed for inactivity]
mark06 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
mjuszczak has quit [Client Quit]
<jhass> twohlix_: it doesn't, see link
<shevy> twohlix_ is this how you raise your kids
<twohlix_> jhass, that was directed at you
<twohlix_> jhass that was directed at P checking a variable in C
crack_user has quit [Quit: Leaving.]
oleo has quit [Quit: Verlassend]
<jhass> in an more explicit language you would define that instance variable in the parent, the child would just set its value
<twohlix_> unless you get into abstract classes, a parent shouldnt implement some method whose execution depends on a child declaring some variable
pauly_oc has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<twohlix_> yea
<jhass> this is still the case here
<gee_totes> twohlix_ you are correct, i didn't quite relalize that once C was made, it would have no idea of what P is and all the variables would be accessable all the same
<twohlix_> exactly
mjuszczak has joined #ruby
quimrstorres has joined #ruby
<jhass> since it's implicit, you just assume it's there
<gee_totes> jhass yup, that's the part i didn't get
<benzrf> inheritance tends to be terrible unless a hierarchical taxonomy is incredibly obvious
<jhass> that assumption makes its definition in the parent
roolo has quit [Ping timeout: 264 seconds]
<gee_totes> yay my poor understanding of OOP making things more complicated for everyone!
oleo has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
<gee_totes> this is so much simpler now, thanks everyone!
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pietr0 has joined #ruby
ht__th has quit [Read error: Connection reset by peer]
pietr0 has quit [Client Quit]
timonv_ has quit [Remote host closed the connection]
<shevy> \O/
<shevy> benzrf it is just a specialization
claymore has quit [Quit: Leaving]
fabrice31 has joined #ruby
evanjs has quit [Remote host closed the connection]
<jhass> I do agree though that gee_totes' P should most likely be a mix-in
kies has quit [Ping timeout: 272 seconds]
davasaurous has quit [Remote host closed the connection]
pietr0 has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
jenrzzz has quit [Ping timeout: 264 seconds]
bMalum has quit [Quit: bMalum]
checkit has quit [Ping timeout: 244 seconds]
dotix has quit [Ping timeout: 245 seconds]
jenrzzz has joined #ruby
<jhass> or the Cs an attribute of P
sptx00 has quit [Remote host closed the connection]
davasaurous has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<gee_totes> jhass: yes, i had a mixin setup for this, but i think i need to learn more before i can actually use it
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
sptx00 has joined #ruby
xaxisx has left #ruby [#ruby]
duncan_ has joined #ruby
Soliah has quit [Quit: Soliah]
poweratom_ has quit [Remote host closed the connection]
fmcgeough has quit [Quit: fmcgeough]
klmlfl has quit [Remote host closed the connection]
<gee_totes> my ideal syntax for this is class C < P; blacklist :blacklist
poweratom_ has joined #ruby
conniemj has quit [Read error: Connection reset by peer]
<gee_totes> and i know i need a mixin to do that, but i will need to learn more before i can actually do that
<jhass> with what reasoning? because AR does it that way?
timonv_ has joined #ruby
asmodchan has joined #ruby
jimbach has joined #ruby
fabrice31 has quit [Ping timeout: 255 seconds]
jimbach has quit [Remote host closed the connection]
beef-wellington has joined #ruby
silkfox has quit [Read error: Connection reset by peer]
<shevy> he loves it arranged neatly on top!
paulfm_ has quit [Ping timeout: 245 seconds]
Hobogrammer_ has joined #ruby
baweaver_ has joined #ruby
<gee_totes> because it looks cool :)
DLSteve_ has joined #ruby
pietr0 has quit [Ping timeout: 250 seconds]
jimbach has joined #ruby
pietr0 has joined #ruby
mark06 has joined #ruby
bMalum has joined #ruby
<mark06> is there changelog support in ruby gems?
<mark06> or should I just write a normal txt file which will have no connection with the gem?
<shevy> you need to keep a changelog on your own mark06
rshetty has joined #ruby
<shevy> well you could technically do it like that
<shevy> release version 0.0.1
nonks_ has joined #ruby
<shevy> add a changelog ... ok makes no sense for that, so just publish
<shevy> now you work on version 0.0.2 ... add a CHANGELOG file or similar, detail what has changed
<shevy> push to rubygems.org
<shevy> rubygems.org will keep a listing of the older versions, so people can download the older gems if they want to
baweaver has quit [Ping timeout: 258 seconds]
<shevy> now you can either put all changes into such a CHANGELOG file, or only specify the differences from one to the next version
<soahccc> I love if there is a CHANGELOG instead of searching for some wiki, blog, etc.
DLSteve has quit [Ping timeout: 258 seconds]
asmodlol has quit [Ping timeout: 258 seconds]
Hobogrammer has quit [Ping timeout: 258 seconds]
eichenwald has quit [Ping timeout: 255 seconds]
bklane has joined #ruby
timonv_ has quit [Remote host closed the connection]
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Crazy_Atheist has joined #ruby
Megtastique has quit []
<jhass> gee_totes: http://paste.mrzyx.de/pjds6txiw there, composition & mix-in
rshetty has quit [Ping timeout: 264 seconds]
nonks_ has quit [Ping timeout: 250 seconds]
timonv_ has joined #ruby
dts is now known as dtsbot
dtsbot is now known as dts
FutureTense has quit [Ping timeout: 240 seconds]
geggam has joined #ruby
<gee_totes> jhass: oh wow, thanks so much!
<bl4ckdu5t> I believe there's a channel for rubygems right?
FutureTense has joined #ruby
dcunit3d has quit [Ping timeout: 272 seconds]
<jhass> yes
kl has joined #ruby
klmlfl has joined #ruby
TheNet has quit [Remote host closed the connection]
<bl4ckdu5t> jhass: what's it?
<jhass> guess
TheNet has joined #ruby
asmodchan has quit [Quit: Leaving]
apope has quit [Quit: apope]
davasaurous has quit [Remote host closed the connection]
kies has joined #ruby
allcentury has quit [Ping timeout: 272 seconds]
timonv_ has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Ping timeout: 252 seconds]
razieliyo_ has joined #ruby
bracky_ has quit [Quit: bracky_]
<shevy> #rubygems
* shevy now wins a prize!!!
spider-mario has quit [Read error: Connection reset by peer]
<shevy> jhass tell me what I will get for X-mas
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<bl4ckdu5t> I just did and it was empty. Thought I was lost
<jhass> shevy: a line of ruby code
yalue has quit [Quit: Leaving]
DivineEntity has quit [Read error: Connection reset by peer]
Rahul_Roy_ has quit [Quit: Connection closed for inactivity]
<shevy> hmm
<shevy> that's not much
mjuszczak has quit []
<bl4ckdu5t> oh it was without the s
lucyinthesky has joined #ruby
<rpag> jhass, are you giving away a line of ruby code for xmas?
DivineEntity has joined #ruby
tectonic has joined #ruby
razieliyo has quit [Ping timeout: 244 seconds]
davasaurous has joined #ruby
lucyinthesky is now known as deja-vu
<shevy> YES
<shevy> HE PROMISED
<shevy> I will ask him again on x-mas
* bl4ckdu5t puts (xmas == true) ? a bag of candy for Xmas: play around
mengu has quit []
sailias has quit [Quit: Leaving.]
agjacome has quit [Ping timeout: 244 seconds]
<rpag> shevy, ask him for something like almost-sinatra
rshetty has joined #ruby
<rpag> bang for yer buck
jottr_ has quit [Ping timeout: 264 seconds]
workmad3 has joined #ruby
jherbst_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thejamespinto has quit []
baweaver_ has quit [Remote host closed the connection]
<jhass> actually you'll need to come to 31C3 to receive it
<rpag> 31C3?
<jhass> chaos communication congress
pauly_oc has joined #ruby
<rpag> you're going to a meetup on.. xmas?
<diegoviola> is "DevOps" just another word for systems administration?
j_mcnally has joined #ruby
tectonic has quit [Quit: Textual IRC Client: www.textualapp.com]
<rpag> kind of, devops is a mixture of programming skills and sysadmin skills
tonix has quit [Quit: Konversation terminated!]
tejas-manohar has quit [Quit: Page closed]
livingstn has quit [Ping timeout: 256 seconds]
<diegoviola> ok
CpuID has joined #ruby
CpuID has joined #ruby
<rpag> how is the job hunt going?
<eam> diegoviola: yes
<rpag> are you looking for remote opportunities only?
<shevy> jhass will it be streamed again?
<jhass> sure
<diegoviola> rpag: yeah I need remote work
rshetty has quit [Ping timeout: 256 seconds]
xymbol has quit [Quit: Be back later ...]
<shevy> rpag well, he is a geek, what else would you expect. 3C is quite good though
<diegoviola> rpag: I can travel occasionaly, but I can't relocate
<shevy> rpag "Hacking DNA" was one lecture once
<rpag> diegoviola, i dont have anything, but might be easier to find something locally?
xymbol has joined #ruby
jottr_ has joined #ruby
<rpag> shevy, id expect a family dinner or something like that
<diegoviola> rpag: probably
quimrstorres has quit [Remote host closed the connection]
diego_ar has joined #ruby
ta has joined #ruby
<diegoviola> rpag: there aren't just many IT companies here
<rpag> where are you based?
<diegoviola> Brazil
<jhass> rpag: 27. is not christmas anymore :P
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<rpag> diegoviola, maybe - weworkremotely.com ?
baweaver has joined #ruby
<diegoviola> rpag: I'll try, ty
TheNet has quit [Remote host closed the connection]
TheNet has joined #ruby
<mark06> jhass, are you who I was talking about global variables in easyoptions? or/and you, shevy?
<lbrf> diegoviola: estamos ai :)
<jhass> mark06: maybe, I don't keep that in memory tbh
<shevy> mark06 nope don't think so, first time I heard easyoptions
<mark06> lbrf: podes crer
sambao21 has quit [Quit: Computer has gone to sleep.]
<diegoviola> lbrf: legal
<mark06> jhass: np, well I'm working on a new module-based code and api, I went for EasyOptions.options style (class << self)
athan has quit [Remote host closed the connection]
<mark06> is $100,000 a monthly salary?
<jhass> that's somewhat better than a global I guess
benzrf is now known as benzrf|offline
<mark06> is 'if ... then' non-idiomatic?
<lbrf> mark06: of course not :)
sambao21 has joined #ruby
<jhass> easyoptions was that "I generate code from comments" idea, right?
<mark06> no code is generated
<rpag> mark06, if you're earning 1.2million a year it is
<jhass> still, program behavior defined in comments
quimrstorres has joined #ruby
kiyote23 has quit []
<mark06> lbrf: then what? year?
<jhass> I don't like such stuff ;)
<lbrf> mark06: yes, yearly with taxes.
ghr has joined #ruby
NGC3982 has left #ruby [#ruby]
duncan_ has quit [Ping timeout: 258 seconds]
<mark06> lbrf: so R$ 8,000/month is an average salary for a rails programmer? crazy
Takle has joined #ruby
agent_white has quit [Quit: leaving]
fantazo has quit [Quit: Verlassend]
quimrstorres has quit [Remote host closed the connection]
<lbrf> mark06: take a look at the salaries for interns at google, amazon... http://valleywag.gawker.com/list-of-salaries-for-interns-who-can-code-will-burn-you-1662712997 ;)
kiyote23 has joined #ruby
Spami has joined #ruby
rshetty has joined #ruby
DLSteve_ has quit [Quit: Leaving]
<mark06> still all they can do are stupid apps
quimrstorres has joined #ruby
Takle has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 250 seconds]
<terrellt> Hm?
quimrstorres has quit [Remote host closed the connection]
tesaf has quit [Quit: Lost terminal]
<terrellt> To be fair, those aren't your typical companies, nor your typical interns.
rshetty has quit [Ping timeout: 264 seconds]
Spami has quit [Ping timeout: 255 seconds]
momomomomo has quit [Quit: momomomomo]
josephndenton has quit [Ping timeout: 244 seconds]
codecop has quit [Remote host closed the connection]
workmad3 has quit [Quit: Reconnecting]
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
workmad3 has joined #ruby
Avahey has joined #ruby
<shevy> google is run by monkeys
<workmad3> shevy: apes
<workmad3> shevy: as is pretty much any business on the planet :P
<terrellt> Iterative designers.
<shevy> it's called monkey patching, not ape patching!
spyderma_ has quit []
<soahccc> I work at bmonkeys sort of :D
beef-wellington has quit [Ping timeout: 264 seconds]
Alina-malina has quit [Ping timeout: 255 seconds]
thumpba_ has joined #ruby
<eam> who's dumber, the person who placed the button or the person who uses the app?
benzrf|offline is now known as benzrf
Alina-malina has joined #ruby
<shevy> BOTH!
<eam> or the person who answered an either-or with both
<shevy> no!
<eam> :(
<shevy> it was a trick question
<shevy> we are all monkeys
<workmad3> eam: shevy obviously interprets 'or' as a boolean or, rather than a boolean xor ;)
davasaurous has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
doodlehaus has quit [Remote host closed the connection]
<shevy> monkeys are so hairy
<eam> >> "the person who placed the button" or "the person who uses the app"
<eval-in__> eam => "the person who placed the button" (https://eval.in/229601)
<eam> workmad3: don't see the problem
<eam> ;-)
<shevy> Tools/Scripts/build-webkit --gtk
<shevy> which: no ninja in
<shevy> webkit is looking for a ninja
<workmad3> eam: :D
<eam> ninja is codeword for "paying substantially under market rate"
nkumari has quit [Remote host closed the connection]
ducklobster has quit [Ping timeout: 244 seconds]
jenrzzz has joined #ruby
rshetty has joined #ruby
thumpba_ has quit [Remote host closed the connection]
nkumari has joined #ruby
Xiti` has joined #ruby
nkumari has quit [Remote host closed the connection]
dopiee has joined #ruby
nkumari has joined #ruby
mikepack_ has joined #ruby
baweaver has quit [Remote host closed the connection]
shtirlic has quit [Ping timeout: 258 seconds]
blackmesa has joined #ruby
<shevy> looks as if eam knows all about ninjas
dcunit3d has joined #ruby
thumpba_ has joined #ruby
jeaye has quit [Ping timeout: 252 seconds]
tylersmith has quit [Ping timeout: 258 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
quarcu has quit [Ping timeout: 252 seconds]
dopie has quit [Ping timeout: 252 seconds]
mikepack has quit [Ping timeout: 252 seconds]
ggherdov has quit [Ping timeout: 252 seconds]
vieq has quit [Ping timeout: 252 seconds]
Meeh has quit [Ping timeout: 252 seconds]
kwd has quit [Max SendQ exceeded]
Xiti` has quit [Client Quit]
Xiti has quit [Ping timeout: 264 seconds]
Meeh_ has joined #ruby
quimrstorres has joined #ruby
Xiti has joined #ruby
rshetty has quit [Ping timeout: 256 seconds]
tylersmith has joined #ruby
duncannz has joined #ruby
pauly_oc has quit [Ping timeout: 252 seconds]
devyn has quit [Ping timeout: 252 seconds]
supersym has quit [Ping timeout: 252 seconds]
deavid has joined #ruby
crack_user has joined #ruby
asteros has joined #ruby
yokel has quit [Remote host closed the connection]
RaedusX has joined #ruby
shtirlic has joined #ruby
weaksauce has quit [Ping timeout: 252 seconds]
vieq has joined #ruby
yokel_ has joined #ruby
iceden has quit [Ping timeout: 252 seconds]
deavidsedice has quit [Ping timeout: 252 seconds]
devdazed has quit [Quit: Computer has gone to sleep.]
CpuID has quit [Read error: Connection reset by peer]
Or1on has quit [Ping timeout: 252 seconds]
kwd has joined #ruby
devyn has joined #ruby
davasaurous has joined #ruby
commmmodo has joined #ruby
yokel_ is now known as yokel
kirun has quit [Quit: Client exiting]
quimrstorres has quit [Remote host closed the connection]
Kilo`byte has quit [Read error: Connection reset by peer]
<mark06> how can I rubucop -a one specific check?
<mark06> *rubocop
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<Areessell> shevy: Do you sleep?
<mark06> --only
baweaver has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<shevy> Areessell yeah, in a few hours
Raedeus has quit [Ping timeout: 252 seconds]
<workmad3> shevy: lies!
banister has joined #ruby
banister has quit [Max SendQ exceeded]
henesy has joined #ruby
dramalho has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> ah, banister is having his normal connection woes, I see
weems|mac has quit [Quit: bai]
banister has joined #ruby
StephenA1 has joined #ruby
banister has quit [Max SendQ exceeded]
<rpag> MaxQ exceeded
thumpba_ has quit [Ping timeout: 255 seconds]
jobewan has quit [Ping timeout: 252 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
henesy has quit [Max SendQ exceeded]
jobewan has joined #ruby
adriancb has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
quarcu has joined #ruby
sinequan_ has joined #ruby
henesy has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
jeaye has joined #ruby
banister has joined #ruby
CpuID has joined #ruby
CpuID has quit [Changing host]
CpuID has joined #ruby
banister has quit [Max SendQ exceeded]
sinequanon has quit [Ping timeout: 252 seconds]
<diegoviola> what's this trend with SPAs (angular/ember/etc), everyone is doing it...
banister has joined #ruby
<diegoviola> I wouldn't have an issue with this if it wasn't for my hate of JS
nyanz has joined #ruby
banister has quit [Max SendQ exceeded]
ggherdov has joined #ruby
davasaurous has quit [Remote host closed the connection]
banister has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has joined #ruby
<diegoviola> but a recruiter I talked to the other day mentioned I had to know ember to be able to get a rails job... annoying
iceden has joined #ruby
baweaver has quit [Ping timeout: 252 seconds]
x1337807x has joined #ruby
karmatr0_ has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Or1on has joined #ruby
karmatr0n has quit [Ping timeout: 252 seconds]
weaksauce has joined #ruby
sambao21 has joined #ruby
acmehandle has quit [Remote host closed the connection]
<diegoviola> learning ember now
<lbrf> diegoviola: http://www.google.com/trends/explore#cat=0-5&q=emberjs%2C%20angularjs%2C%20reactjs&date=today%2012-m&cmpt=q
treehug88 has quit []
<wallerdev> im learning ember too!
davasaurous has joined #ruby
<wasamasa> eww, ember
rshetty has joined #ruby
StephenA1 has quit [Quit: StephenA1]
<wallerdev> i use angular day to day but ember looks interesting, thought id see what made it special :)
diego_ar has quit []
<wallerdev> just watched the intro video
Sawbones_ has joined #ruby
Sawbones_ has quit [Client Quit]
<diegoviola> when you use ember/angular in a rails app, do you just output json and do the views with ember/angular?
<diegoviola> how does it work?
<wallerdev> yeah the way our system works we our completely backend agnostic, the backend is just a json API we call from angular
<wallerdev> are
rshetty has quit [Ping timeout: 244 seconds]
Guest1882 has quit [Ping timeout: 250 seconds]
momomomomo has joined #ruby
<wallerdev> there's probably other ways to do it though
nonks_ has joined #ruby
poweratom_ has quit [Quit: Be back later ...]
<diegoviola> makes sense
<diegoviola> ty
poweratom__ has joined #ruby
<diegoviola> I like that angular/ember pushes some work to the client-side, that way you distribute the load quite a bit
<wallerdev> yeah it's pretty neat
<diegoviola> don't have to reload/render the client all the time
<diegoviola> right
<wallerdev> i work on a mobile website which i think these frameworks excel with
Juanchito has quit [Quit: Connection closed for inactivity]
<diegoviola> right
<mark06> what's the .C and .W in rubocop?
<diegoviola> I'll build an example app just to get familiar with and see how it goes
<diegoviola> not sure if I should go with ember or angular first though
<wallerdev> yeah thats what im doing, i have a small app i wrote in angular awhile back, gonna just try converting it to ember and maybe add some new features
crack_user has quit [Quit: Leaving.]
<diegoviola> s/example/small/
<wallerdev> angular definitely seems more popular from what ive seen
<wallerdev> but i think if you know one you can pick up the other pretty quick
<diegoviola> I'll build a small app in both and see how it goes
<diegoviola> just to get an idea
<diegoviola> ty
<wallerdev> where are you applying?
timonv_ has quit [Ping timeout: 264 seconds]
synergyz has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
davasaurous has quit [Remote host closed the connection]
<diegoviola> anywhere
nonks_ has quit [Ping timeout: 250 seconds]
<diegoviola> I need remote work
<wallerdev> ah do you live in the middle of nowhere? lol
<diegoviola> I wouldn't say that
<wallerdev> usa?
<diegoviola> nope
<wallerdev> barcelona?
<diegoviola> south america
<wallerdev> chile
<wallerdev> argentina
<wallerdev> brazil
<diegoviola> Brazil
<wallerdev> lol
sklik has quit [Remote host closed the connection]
<diegoviola> what?
<wallerdev> nothin, just like guessing
<diegoviola> ok
lolmaus has quit [Quit: Konversation terminated!]
<diegoviola> so SPAs are the new hot thing
rageberry has joined #ruby
<wallerdev> pretty much
mary5030_ has joined #ruby
<diegoviola> right
<wallerdev> make pages faster by only transferring the new data instead of a new page load every click
axisys has quit [Ping timeout: 256 seconds]
davasaurous has joined #ruby
<diegoviola> right
rshetty has joined #ruby
blackmesa has quit [Ping timeout: 264 seconds]
thumpba_ has joined #ruby
ghr has joined #ruby
mary5030 has quit [Ping timeout: 250 seconds]
snath has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
ghr has quit [Ping timeout: 250 seconds]
rshetty has quit [Ping timeout: 256 seconds]
deja-vu is now known as lucyinthesky
volty has joined #ruby
baweaver has joined #ruby
commmmodo has quit [Quit: commmmodo]
freerobby has quit [Quit: Leaving.]
dfinninger has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
konsolebox has quit [Quit: Leaving]
snath has joined #ruby
thumpba_ has quit [Ping timeout: 272 seconds]
crack_user has joined #ruby
jheg has quit [Quit: jheg]
quimrstorres has quit [Remote host closed the connection]
adriancb has joined #ruby
baweaver has quit [Ping timeout: 258 seconds]
larissa has quit [Quit: Leaving]
mary5030_ has quit [Read error: Connection reset by peer]
fabrice31 has joined #ruby
mary5030 has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
baweaver has joined #ruby
Sawbones_ has joined #ruby
phutchins has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rshetty has joined #ruby
bigkevmcd has quit [Ping timeout: 258 seconds]
wldcordeiro_ has quit [Quit: Leaving]
sevenseacat has joined #ruby
MrIlyas has quit [Ping timeout: 255 seconds]
Galas has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
j_mcnally has joined #ruby
synergyz has joined #ruby
j_mcnally has quit [Read error: Connection reset by peer]
Smujo has joined #ruby
fernandolopez has quit [Quit: Saliendo]
Smujo has quit [Remote host closed the connection]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rshetty has quit [Ping timeout: 258 seconds]
kies has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 240 seconds]
jimbach has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
senera has joined #ruby
rkalfane has joined #ruby
redjack1964 has joined #ruby
hiyosi has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
StephenA1 has joined #ruby
mattmcclure has joined #ruby