apeiros_ changed the topic of #ruby-lang to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
klmlfl has quit [Remote host closed the connection]
r0bby_ is now known as robbyoconnor
robbyoconnor is now known as r0bby_
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
lytol has joined #ruby-lang
ta has quit [Remote host closed the connection]
Asher- has quit [Quit: Leaving.]
Asher has joined #ruby-lang
frzng has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
kalehv has joined #ruby-lang
r0bby_ is now known as robbyoconnor
Mellett68 has joined #ruby-lang
rock has quit [Quit: Page closed]
ur5us has joined #ruby-lang
ddd has quit [Quit: mutiple config changes requiring restart]
ddd has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
timanema has quit [Ping timeout: 264 seconds]
Xney2 is now known as Xney
pricees has quit [Ping timeout: 264 seconds]
kalehv has quit [Remote host closed the connection]
ledestin has joined #ruby-lang
tkuchiki has quit [Ping timeout: 272 seconds]
CandidKilsborne has joined #ruby-lang
timanema has joined #ruby-lang
leonshalimov has joined #ruby-lang
|jemc| has quit [Ping timeout: 264 seconds]
ddd has quit [Quit: leaving]
tkuchiki has joined #ruby-lang
martinium has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
CandidKilsborne has quit [Quit: Textual IRC Client: www.textualapp.com]
tkuchiki has joined #ruby-lang
leonshalimov has quit [Ping timeout: 240 seconds]
timanema has quit [Quit: leaving]
gix has quit [Ping timeout: 252 seconds]
timanema has joined #ruby-lang
timanema has quit [Client Quit]
timanema has joined #ruby-lang
timanema has quit [Client Quit]
elia has quit [Quit: Computer has gone to sleep.]
ddd has joined #ruby-lang
timanema has joined #ruby-lang
tkuchiki has quit [Ping timeout: 256 seconds]
timanema has quit [Client Quit]
martinium has joined #ruby-lang
timanema has joined #ruby-lang
gix has joined #ruby-lang
martinium has quit [Remote host closed the connection]
timanema has quit [Client Quit]
martinium has joined #ruby-lang
charliesome has joined #ruby-lang
slawrence00 has quit [Ping timeout: 264 seconds]
ledestin has quit [Quit: ledestin]
martinium has quit [Remote host closed the connection]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby-lang
symm- has quit [Ping timeout: 255 seconds]
thelastinuit has quit [Ping timeout: 244 seconds]
|jemc| has joined #ruby-lang
rickyrickyrice has joined #ruby-lang
martinium has joined #ruby-lang
martinium has joined #ruby-lang
rickyrickyrice has quit [Client Quit]
j0n3 has quit [Quit: Leaving]
Bwild has quit [Ping timeout: 265 seconds]
martinium has quit [Remote host closed the connection]
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
havenn has quit []
svajone has joined #ruby-lang
martinium has joined #ruby-lang
havenwood has joined #ruby-lang
michaeldeol has joined #ruby-lang
jgpawletko has quit [Quit: jgpawletko]
loincloth has joined #ruby-lang
ta has joined #ruby-lang
loincloth has quit [Ping timeout: 272 seconds]
kadwill has joined #ruby-lang
ta has quit [Ping timeout: 265 seconds]
martinium has quit [Remote host closed the connection]
kadwill has quit [Ping timeout: 256 seconds]
dik_dak has quit [Quit: Textual IRC Client: www.textualapp.com]
martinium has joined #ruby-lang
martinium has quit [Changing host]
martinium has joined #ruby-lang
RobertBirnie has quit [Ping timeout: 245 seconds]
marr has quit [Ping timeout: 272 seconds]
hahuang65 has quit [Ping timeout: 252 seconds]
Bwild has joined #ruby-lang
[H]unt3r has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hendranata_ has joined #ruby-lang
gwendall has quit [Ping timeout: 276 seconds]
hendranata_ has quit [Remote host closed the connection]
leonshalimov has joined #ruby-lang
hendranata_ has joined #ruby-lang
leonshalimov has quit [Ping timeout: 276 seconds]
yusuf1 has joined #ruby-lang
cornerma1 has joined #ruby-lang
cornerman has quit [Ping timeout: 245 seconds]
cornerma1 is now known as cornerman
lytol has quit [Remote host closed the connection]
martinium has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
klmlfl has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
klmlfl has quit [Ping timeout: 256 seconds]
amsi has quit [Quit: Leaving]
timanema has joined #ruby-lang
bitflipping has quit [Quit: Page closed]
martinbmadsen has joined #ruby-lang
loincloth has joined #ruby-lang
lsegal has joined #ruby-lang
loincloth has quit [Ping timeout: 240 seconds]
ta has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 264 seconds]
trajing|Mobile has joined #ruby-lang
amclain has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
klmlfl has joined #ruby-lang
ta has joined #ruby-lang
fujimura has joined #ruby-lang
trajing|Mobile has quit [Read error: Connection reset by peer]
trajing|Mobile has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
ta has quit [Ping timeout: 276 seconds]
timanema has quit [Ping timeout: 265 seconds]
Forgetful_Lion has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
djbkd has joined #ruby-lang
leonshalimov has joined #ruby-lang
trajing|Mobile has quit [Read error: Connection reset by peer]
trajing|Mobile has joined #ruby-lang
ta has joined #ruby-lang
martinbmadsen has joined #ruby-lang
leonshalimov has quit [Ping timeout: 246 seconds]
gix has quit [Quit: Client exiting]
houhoulis has joined #ruby-lang
ta has quit [Ping timeout: 255 seconds]
martinbmadsen has quit [Ping timeout: 255 seconds]
gix has joined #ruby-lang
amclain has quit [Quit: Leaving]
duderonomy has joined #ruby-lang
martinbmadsen has joined #ruby-lang
svajone has quit [Quit: svajone]
rbowlby has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
ozialien has joined #ruby-lang
kapil__ has joined #ruby-lang
rbowlby has quit [Ping timeout: 246 seconds]
loincloth has joined #ruby-lang
trajing|Mobile has quit [Read error: Connection reset by peer]
kadwill has joined #ruby-lang
rahul_j has joined #ruby-lang
martinium has joined #ruby-lang
martinium has joined #ruby-lang
loincloth has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Read error: Connection reset by peer]
booly-yam-8846 has quit [Remote host closed the connection]
kadwill has quit [Ping timeout: 252 seconds]
Bwild has quit [Ping timeout: 245 seconds]
Bwild has joined #ruby-lang
booly-yam-8846 has joined #ruby-lang
martinium has quit [Remote host closed the connection]
dorei has quit []
Blackhole has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
Bwild has quit [Ping timeout: 245 seconds]
rahul_j has joined #ruby-lang
j4cknewt has joined #ruby-lang
chills42 has joined #ruby-lang
skade has joined #ruby-lang
ta has joined #ruby-lang
j4cknewt has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 276 seconds]
ishikawa_ has joined #ruby-lang
ishikawa has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
ur5us has quit [Remote host closed the connection]
ur5us has joined #ruby-lang
pwnz0r has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
skade has quit [Quit: Computer has gone to sleep.]
ur5us has quit [Ping timeout: 265 seconds]
Xzyx987X has quit [Ping timeout: 252 seconds]
Pugsley_ has quit [Quit: Lingo: www.lingoirc.com]
ur5us has joined #ruby-lang
Xzyx987X has joined #ruby-lang
rahul_j has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
slawrence00 has joined #ruby-lang
csaunders has joined #ruby-lang
pwnz0r has quit [Remote host closed the connection]
kalehv has joined #ruby-lang
ta has joined #ruby-lang
wprice has quit [Quit: wprice]
havenwood has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
rahul_j has quit [Quit: rahul_j]
ta has joined #ruby-lang
[H]unt3r has quit [Quit: Leaving]
ta has quit [Ping timeout: 276 seconds]
pwnz0r has joined #ruby-lang
Blackhole has quit []
pwnz0r has quit [Remote host closed the connection]
Bwild has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbowlby has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
ta has joined #ruby-lang
djbkd has joined #ruby-lang
centrx has joined #ruby-lang
gix has quit [Ping timeout: 272 seconds]
ta has quit [Ping timeout: 265 seconds]
j4cknewt has joined #ruby-lang
[H]unt3r has joined #ruby-lang
gix has joined #ruby-lang
leonshalimov has joined #ruby-lang
hanachin has joined #ruby-lang
timanema has joined #ruby-lang
michaeldeol has joined #ruby-lang
[H]unt3r has quit [Quit: Leaving]
leonshalimov has quit [Ping timeout: 276 seconds]
martinbm1dsen has joined #ruby-lang
timanema has quit [Ping timeout: 264 seconds]
martinbmadsen has quit [Ping timeout: 252 seconds]
diegovio1 has joined #ruby-lang
diegoviola has quit [Ping timeout: 264 seconds]
csaunders has quit [Quit: Textual IRC Client: www.textualapp.com]
chills42 has quit [Remote host closed the connection]
martinbmadsen has joined #ruby-lang
kyb3r_ has joined #ruby-lang
martinbm1dsen has quit [Ping timeout: 245 seconds]
ta has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
Lewix has quit [Remote host closed the connection]
spuk has quit [Ping timeout: 264 seconds]
ta has quit [Ping timeout: 276 seconds]
<pipework> havenwood: If I have a class Lame, and it implements #hi, and I prepend a module which defined #hi as something else, is there a way to ever reach the #hi from Lame?
<pipework> Because I can't figure it out. :(
kadwill has joined #ruby-lang
jxie has quit [Ping timeout: 264 seconds]
jxie has joined #ruby-lang
kadwill has quit [Ping timeout: 272 seconds]
AKASkip has joined #ruby-lang
kalehv has quit [Remote host closed the connection]
simi has joined #ruby-lang
djbkd has joined #ruby-lang
<havenwood> pipework: Lame.new.method(:hi).super_method.call
<havenwood> I mean :P, rather: Lame.new.public_method(:hi).super_method.call
<havenwood> pipework: 2.2 only.
ta has joined #ruby-lang
djbkd has quit [Ping timeout: 240 seconds]
RobertBirnie has joined #ruby-lang
<centrx> Is passing methods around slow?
<centrx> /calling
brooks has joined #ruby-lang
brooks has quit [Client Quit]
<havenwood> centrx: Slower than say accessing instance variables, which is again slower than accessing local variables.
dellavg_ has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
sangwoojoo has quit [Quit: Leaving.]
mahlon_ is now known as mahlon
ur5us has joined #ruby-lang
<pipework> havenwood: Ah, 2.2 stuff.
revath has joined #ruby-lang
<pipework> Thank you sir. I'm having troubles with this closed source OS. OSX 10.10 and installing ruby 2.2.0 is a pain.
ur5us has quit [Ping timeout: 265 seconds]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
centrx has quit [Quit: Science is organized knowledge, wisdom is organized life.]
diegovio1 has quit [Quit: WeeChat 1.1]
mattyohe has quit [Quit: Connection closed for inactivity]
ta has joined #ruby-lang
j4cknewt has quit [Remote host closed the connection]
ta has quit [Ping timeout: 245 seconds]
lytol has joined #ruby-lang
ta has joined #ruby-lang
dellavg_ has quit [Ping timeout: 264 seconds]
AKASkip has quit [Ping timeout: 256 seconds]
j4cknewt has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
rbowlby has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
rbowlby has joined #ruby-lang
simi has quit [Ping timeout: 252 seconds]
sangwoojoo has joined #ruby-lang
rahul_j has joined #ruby-lang
leonshalimov has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pepperbreath has quit [Read error: Connection reset by peer]
stardiviner has quit [Ping timeout: 256 seconds]
michaeldeol has joined #ruby-lang
leonshalimov has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby-lang
pepperbreath has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
mostlybadfly has quit [Quit: Connection closed for inactivity]
ta_ has joined #ruby-lang
apeiros has quit [Ping timeout: 245 seconds]
tenderlove has quit [Quit: Leaving...]
primafacie has joined #ruby-lang
kadwill has joined #ruby-lang
ta_ has quit [Ping timeout: 276 seconds]
AKASkip has joined #ruby-lang
symm- has joined #ruby-lang
kadwill has quit [Ping timeout: 272 seconds]
symm- has quit [Ping timeout: 245 seconds]
havenwood has quit []
charliesome has quit [Quit: zzz]
ta has joined #ruby-lang
fclausen has quit [Ping timeout: 272 seconds]
iamninja has quit [Quit: ZZZzzz…]
ta has quit [Ping timeout: 276 seconds]
ta has joined #ruby-lang
loincloth has joined #ruby-lang
ta has quit [Ping timeout: 244 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
loincloth has quit [Ping timeout: 276 seconds]
GBrawl has joined #ruby-lang
ur5us has joined #ruby-lang
apeiros has joined #ruby-lang
godd2 has joined #ruby-lang
ur5us has quit [Ping timeout: 244 seconds]
booly-yam-8846 has quit [Ping timeout: 245 seconds]
ddd has quit [Quit: kernel update. reboot required]
sivsushruth has joined #ruby-lang
<sivsushruth> Hello guys
<sivsushruth> I have created a cli for generating a dependency map from the gemfile
<sivsushruth> Constructive critizism welcome
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
<epitron> sivsushruth: i would construct a patch for rubygems.org, that lets you view the gemgraph for all the gems on the website :D
<sivsushruth> epitron:
<sivsushruth> Yes
<epitron> and if you could fix the colours that would be awesome too :D
<epitron> (the colours on rubygems.org)
<epitron> (your gem is probably fine)
<sivsushruth> I first want to get a good version
<sivsushruth> with more features
<epitron> woot! :D
<sivsushruth> I want to make sure i am following the proper conventions
<sivsushruth> can you check it out on your system
<sivsushruth> and let me know if it works fine
<sivsushruth> btw, you need to install graphviz on your machine
<epitron> ok, sec
<sivsushruth> thank you
stardiviner has joined #ruby-lang
stardiviner has quit [Client Quit]
rahul_j has quit [Quit: rahul_j]
ur5us has joined #ruby-lang
<sivsushruth> epitron: checking
<sivsushruth> one sec
<sivsushruth> can you check the new commit please
<sivsushruth> thank you for going through the trouble
<sivsushruth> epitron: Thanks
|jemc| has quit [Ping timeout: 245 seconds]
ta has joined #ruby-lang
ur5us has quit [Ping timeout: 256 seconds]
|jemc| has joined #ruby-lang
ta_ has joined #ruby-lang
<epitron> ok, sec
ta has quit [Ping timeout: 276 seconds]
<epitron> now, when i run it, i still get spammed with those COLOR warnings... gemgrapher then outputs a dependency graph png, but it's like 1 pixel large
wallerdev has quit [Quit: wallerdev]
<epitron> sorry, 11x11
<sivsushruth> hmm..
<sivsushruth> i do not get any warnings
rahul_j has joined #ruby-lang
<sivsushruth> and i get a proper image
<sivsushruth> it is just too wide
<sivsushruth> but you can zoom in and see them
<epitron> ah, it works on a different project
<sivsushruth> okay
<sivsushruth> what do you suggest i do
<sivsushruth> to improve this
<epitron> also, your hash has duplicate keys
<epitron> you can regenerate it pretty easily though
duderonomy has quit [Ping timeout: 244 seconds]
<sivsushruth> right
<sivsushruth> okay..
<epitron> just evaluate the hash with duplicates, then "pp hash"
<epitron> :)
<epitron> that'll prettyprint it without duplicates
<sivsushruth> right
<sivsushruth> makes sense
lytol has quit [Remote host closed the connection]
<sivsushruth> any other suggestions ?
<epitron> ...instructions
<epitron> like
<epitron> i mean, i guess it's fine
womble has quit [Excess Flood]
womble has joined #ruby-lang
<epitron> but it should at least say, "Made a file called Dependency Graph.png"
<epitron> and respond to --help
<epitron> also, it might look prettier if the root node was your project itself
<epitron> i have free floating gems
<sivsushruth> right
<sivsushruth> right
<sivsushruth> thanks for the suggestions
<epitron> radial layout would be good too
<sivsushruth> yeah
<sivsushruth> i was wondering how to do that
<epitron> gem in center
<epitron> haha
<epitron> i dunno
<epitron> graphviz is pretty shitty
<sivsushruth> yeah
<sivsushruth> seems like it
<epitron> you should use d3
<sivsushruth> checking alternatives
<sivsushruth> do you have time to contribute ?
<epitron> make it all web-based, and then roll it into rubygems.org :)
<sivsushruth> or no ?
<epitron> nah
<epitron> i got some other things i need to finish
<sivsushruth> cool
miqui_ has quit [Ping timeout: 246 seconds]
fusillicode has joined #ruby-lang
<sivsushruth> nice
<sivsushruth> but it can be hard to show circular-type dependencies this way
<sivsushruth> what say ?
<epitron> yeah
<epitron> you can use any graph layout algorithm really
<epitron> they let you have cycles
<epitron> all you need is to be able to pin down the central node
<epitron> (i.e. the app itself)
leonshalimov has joined #ruby-lang
<sivsushruth> right
<sivsushruth> right
<sivsushruth> thanks
<sivsushruth> now trying to generate the dep map for top 500 ruby gems
<sivsushruth> finding a csv online
<sivsushruth> any directions ?
rahul_j has quit [Ping timeout: 256 seconds]
solars has joined #ruby-lang
leonshalimov has quit [Ping timeout: 252 seconds]
rahul_j has joined #ruby-lang
loincloth has joined #ruby-lang
kl has quit [Ping timeout: 256 seconds]
sivsushruth has quit [Quit: Konversation terminated!]
|jemc| has quit [Quit: WeeChat 1.0.1]
loincloth has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby-lang
arBmind has joined #ruby-lang
djbkd has quit [Ping timeout: 244 seconds]
booly-yam-8846 has joined #ruby-lang
<epitron> sideshowcoder: ooo: http://netograph.com/starmap/709210
<epitron> that's a nice D3 graph
Mon_Ouie has joined #ruby-lang
kadwill has joined #ruby-lang
kadwill has quit [Ping timeout: 245 seconds]
fedexo has quit [Ping timeout: 245 seconds]
arBmind has quit [Quit: Leaving.]
_mh_ has joined #ruby-lang
llakey has joined #ruby-lang
arBmind has joined #ruby-lang
hahuang65 has joined #ruby-lang
hahuang65 has quit [Client Quit]
postmodern has joined #ruby-lang
elia has joined #ruby-lang
arBmind has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby-lang
Bwild has quit [Ping timeout: 240 seconds]
Integralist has joined #ruby-lang
Bwild has joined #ruby-lang
hahuang65 has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 245 seconds]
fujimura has quit [Remote host closed the connection]
arBmind has joined #ruby-lang
yusuf1 has quit [Quit: Leaving.]
hahuang65 has quit [Quit: WeeChat 1.0.1]
hahuang65 has joined #ruby-lang
nofxx has quit [Ping timeout: 244 seconds]
ta has joined #ruby-lang
_mh_ has quit [Changing host]
_mh_ has joined #ruby-lang
fujimura has joined #ruby-lang
arBmind1 has joined #ruby-lang
banister has joined #ruby-lang
arBmind has quit [Ping timeout: 246 seconds]
hahuang65 has quit [Client Quit]
hahuang65 has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
hahuang65 has quit [Quit: WeeChat 0.4.2]
heftig has quit [Quit: heftig]
heftig has joined #ruby-lang
loincloth has joined #ruby-lang
nofxx has joined #ruby-lang
loincloth has quit [Ping timeout: 264 seconds]
sangwoojoo has quit [Remote host closed the connection]
j4cknewt has quit [Remote host closed the connection]
sangwoojoo has joined #ruby-lang
kyb3r_ has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby-lang
ta has joined #ruby-lang
kadwill has joined #ruby-lang
<yorickpeterse> mornign
<yorickpeterse> derp
<yorickpeterse> morning
ta has quit [Ping timeout: 265 seconds]
<yorickpeterse> "New Error: NameError: wrong constant name AN ERROR OCCURRED. A TEAM OF GARDEN GNOMES HAS BEEN DISPATCHED TO LOOK INTO THE PROBLEM."
<yorickpeterse> what a fine morning it is
houhoulis has quit [Remote host closed the connection]
kadwill_ has joined #ruby-lang
vozcelik has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
benlovell has joined #ruby-lang
jds has joined #ruby-lang
<tbuehlmann> moin
<apeiros> Garden Gnomes are not reliable! They don't scale! how are you still using them?!?
<canton7> NOT WEB SCALE!
<canton7> they're GARDEN scale
<apeiros> they've also proven to not be zombie resistant!!!
fujimura has quit [Remote host closed the connection]
<yorickpeterse> also yay migrate all the things to Postgres
migbar has joined #ruby-lang
marr has joined #ruby-lang
<apeiros> I heard you role with postgres
fujimura_ has joined #ruby-lang
<yorickpeterse> huehue
kadwill has quit [Remote host closed the connection]
<yorickpeterse> It didn't GRANT me a nice day
<yorickpeterse> hehehe
* apeiros snickers
kadwill has joined #ruby-lang
<surrounder> laawl
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<ljarvis> heh
<ljarvis> nerds
fujimura has joined #ruby-lang
kl__ has joined #ruby-lang
fujimura_ has quit [Read error: Connection reset by peer]
duderonomy has joined #ruby-lang
<yorickpeterse> oh hey, somebody is submitting porn links to our public NLP services
duderonomy has quit [Max SendQ exceeded]
kadwill_ has quit [Remote host closed the connection]
<yorickpeterse> "input: xhamster.com....../vol22
<yorickpeterse> so apparently there are 22 volumes
<yorickpeterse> Not sure why you'd want to send a URL of an HTML document for sentiment analysis
kadwill has quit [Ping timeout: 256 seconds]
<jds> Is there a definitive list of exceptions you might get while using Net::HTTP? So far I've run into Errno::ETIMEDOUT, Errno::ECONNRESET, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, SocketError, OpenSSL::SSL::SSLError, EOFError ...
leonshalimov has joined #ruby-lang
Silex has joined #ruby-lang
ta has joined #ruby-lang
timanema has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
leonshalimov has quit [Ping timeout: 272 seconds]
kadwill has joined #ruby-lang
ta has quit [Ping timeout: 264 seconds]
timanema has quit [Ping timeout: 255 seconds]
lsegal has joined #ruby-lang
francisfish has joined #ruby-lang
workmad3 has joined #ruby-lang
duderonomy has joined #ruby-lang
hendranata_ has quit [Quit: Leaving]
<ljarvis> jds: not really, you'd need to handle Net::HTTPExceptions too since: http://www.ruby-doc.org/stdlib-2.1.1/libdoc/net/http/rdoc/Net/HTTPExceptions.html there's a LOT of possibilities. This is usually helped by using a 3rd party library since they often catch exceptions and provider an umbrella exception class
<ljarvis> you could just rescue => e which will rescue everything that inherits from StandardError
GBrawl has quit [Remote host closed the connection]
GBrawl has joined #ruby-lang
loincloth has joined #ruby-lang
lsegal has quit [Quit: Quit: Quit: Quit: Stack Overflow.]
martinium has joined #ruby-lang
yorickpeterse is now known as devops-peterse
loincloth has quit [Ping timeout: 240 seconds]
dagda1 has joined #ruby-lang
djbkd has joined #ruby-lang
j4cknewt has joined #ruby-lang
<devops-peterse> all aboard the Linux server train
<devops-peterse> toot toot
iamninja has joined #ruby-lang
martinium has quit [Ping timeout: 256 seconds]
donove has joined #ruby-lang
donove has joined #ruby-lang
djbkd has quit [Ping timeout: 246 seconds]
j4cknewt has quit [Ping timeout: 240 seconds]
martinium has joined #ruby-lang
martinium has joined #ruby-lang
martinium has quit [Remote host closed the connection]
rahul_j has quit [Quit: rahul_j]
martinium has joined #ruby-lang
ta has joined #ruby-lang
rahul_j has joined #ruby-lang
terabytest has joined #ruby-lang
ta has quit [Ping timeout: 265 seconds]
kadwill has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
kadwill has joined #ruby-lang
kadwill has quit [Remote host closed the connection]
ldnunes has joined #ruby-lang
terabytest has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
* whitequark slaps devops-peterse around a bit with a large trout
kadwill has joined #ruby-lang
ta has joined #ruby-lang
martinbmadsen has joined #ruby-lang
Bwild has quit [Ping timeout: 255 seconds]
migbar has quit [Read error: Connection reset by peer]
Bwild has joined #ruby-lang
rbowlby has quit [Remote host closed the connection]
martinbmadsen has quit [Ping timeout: 245 seconds]
ur5us has quit [Remote host closed the connection]
Bwild has quit [Ping timeout: 265 seconds]
kl__ has quit [Ping timeout: 244 seconds]
kadwill has quit [Remote host closed the connection]
Bwild has joined #ruby-lang
booly-yam-8846 has quit [Ping timeout: 264 seconds]
kl has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
kadwill has joined #ruby-lang
qsuscs has joined #ruby-lang
<qsuscs> hi
kadwill has quit [Remote host closed the connection]
<qsuscs> are similar incompatibities between ruby versions like between python 2 and 3?
<qsuscs> or are the newer versions just “extensions” and a program written for 1.8 works with 2.2 as well?
frzng has joined #ruby-lang
<workmad3> qsuscs: ruby 1.8 to ruby 1.9 had some backwards incompatibility, but ruby 1.8 is now EoL
<ljarvis> qsuscs: the changes are nowhere near as breaking as Python 2 to 3
<ljarvis> but, they do exist
<qsuscs> workmad3: how widespread is 1.8? i mean, python 2 is still widely used and there are even recent tutorials/books that say “don’t care about py3, py2 is what matters, 3 is just new stuff and will not be used before $TIME”
<workmad3> qsuscs: I think you may be the first person I've seen in here this year asking about 1.8 ;)
<qsuscs> good
<workmad3> qsuscs: there's been a lot more success getting people to shift from ruby 1.8 to 1.9 and beyond than there was in python getting from 2 to 3
<waxjar> 1.8 is old and EOL; itdoesn't receive updates any more
<waxjar> that includes security issues.
GBrawl has quit [Quit: (null)]
loincloth has joined #ruby-lang
banister has joined #ruby-lang
rahul_j has joined #ruby-lang
<darix> qsuscs: it depends. many enterprise distros e.g. still ship with 1.8
<darix> qsuscs: largely due to the fact that newer ruby versions were not drop it replacements.
<waxjar> between 1.8 and 2.2 performance has also roughly doubled :D i think its safe to assume the vast majority is one 1.9 or higher
<waxjar> *on
<darix> qsuscs: many of those distros now have packages for newer ruby versions for parallel installation though.
<darix> but something to keep in mind
ta has quit [Ping timeout: 256 seconds]
<darix> waxjar: and please say "doesnt receive updates from upstream anymore" the distros very well backport the fixes
<waxjar> ah, fair enough :)
loincloth has quit [Ping timeout: 256 seconds]
<workmad3> they don't receive official updates from ruby core team would be more accurate
<darix> so now that this is solved.
<ljarvis> he didn't say "from upstream"
devops-peterse is now known as yorickpeterse
<ljarvis> he said 1.8 is EOL and doesn't receive updates anymore, which is accurate
<darix> a more interesting question: some people were pondering to put a python 2 mode into python 3 so they can at least drop the python2 code base.
<darix> how hard would it be to make a mode for ruby 2.2 to eat 1.8 code?:)
<workmad3> darix: tbh, I find the python2-python3 debate more vaguely amusing than particularly interesting :)
<ljarvis> i hope that never happens
<darix> workmad3: ruby should have had the same debate tbh. because they did exactly the same on the step from 1.8 to 1.9/2.0
kadwill has joined #ruby-lang
<workmad3> darix: it did have the debate... it then ploughed through it, supported the old version for quite some time and eventually dropped it
iamninja has quit [Quit: ZZZzzz…]
<workmad3> darix: the python2/python3 thing has been going on for way too long now though... iirc, python3 came out before ruby 1.9, and it's *still* not gaining much traction
<darix> workmad3: as you see the pressure for python 2 is even higher than it was with ruby 1.8
<whitequark> p2 supported until 2020
<ljarvis> the breaking changes in 1.8 to 1.9 were stupid, but breaking anything in a major release is exactly where it should happen.. python got this right, ruby got it wrong
<workmad3> darix: hence vaguely amusing and of no particular interest :)
fujimura has quit [Remote host closed the connection]
<darix> whitequark: or longer if any larger python using org steps up^^
<workmad3> ljarvis: at the time, ruby did have an explicit version policy of 1.9 being a '2.0 pre-release' I believe... it wasn't on semver at the time (unlike now)
<ljarvis> workmad3: yep, my comment still applies though :)
<workmad3> ljarvis: yeah, but the explicitness at the time makes it a bit of a weaker criticism than if they'd been on something like semver and did it ;)
<ljarvis> workmad3: right, it's more of a personal statement
<ljarvis> but maybe then we'd have the problem p2 to p3 has
<ljarvis> who knows
<workmad3> ljarvis: yeah... and 1.9 was a useful testing ground... but it should probably have lasted a bit less time before ruby 2.0 got released so it really was more of a '2.0-pre' :)
<workmad3> I think the p2-p3 issue is because the maintainers are too busy letting the community resist the change tbh... and I think the python community is a bit more change-adverse than the ruby community too
<waxjar> i think matz said something along the lines of "backwards incompatible changes should come with an incentive to update"
<waxjar> for ruby that has mostly been performance i think
<workmad3> waxjar: well, 1.8 to 1.9 was more enumerators and official encoding support :)
<waxjar> also good incentives :D
<ljarvis> quite some significant syntax changes, too
<ljarvis> actually ruby doesn't change syntax
<ljarvis> it just bolts on new syntax
<workmad3> ljarvis: maybe it's because it's been so long since I used 1.8, but I can't remember changes... just additions :)
<ljarvis> :P
<ljarvis> 1.8.2 was the defacto Ruby
<darix> i even had to maintain a ruby 1.4 package for a while
<workmad3> I started using ruby professionally around about 1.8.6, I think
<darix> ljarvis: i think there were some syntax breakages after 1.8
<ljarvis> I do remember much time spent on ruby 1.4 too
stamina has joined #ruby-lang
<workmad3> still... it's 2015 now... can we finally put an 11 year old version to bed? :)
ledestin has joined #ruby-lang
<whitequark> waxjar: 1.9 is slower actually
<whitequark> even 2.0 is slower. I think only in 2.1/2.2 you regain it back
sivsushruth has joined #ruby-lang
<waxjar> hmm, really?
<whitequark> I think so, yes
rbowlby has joined #ruby-lang
sangwoojoo has quit [Ping timeout: 276 seconds]
leonshalimov has joined #ruby-lang
booly-yam-8846 has joined #ruby-lang
timanema has joined #ruby-lang
sangwoojoo has joined #ruby-lang
djellemah has quit [Quit: Leaving]
leonshalimov has quit [Ping timeout: 246 seconds]
kadwill has quit [Remote host closed the connection]
timanema has quit [Ping timeout: 252 seconds]
nofxx has quit [Ping timeout: 252 seconds]
ledestin has quit [Quit: ledestin]
mostlybadfly has joined #ruby-lang
workmad3_ has joined #ruby-lang
<darix> workmad3: look when RHEL/SLES are eol
<darix> workmad3: that's when we can finally put it to bed ;)
workmad3 has quit [Ping timeout: 240 seconds]
Bwild has quit [Ping timeout: 265 seconds]
rbowlby has quit [Remote host closed the connection]
JohnBat26 is now known as JohnBat26|NotHer
JohnBat26|NotHer is now known as JohnBat26
JohnBat26 is now known as JohnBat26|NotHer
Bwild has joined #ruby-lang
workmad3_ is now known as workmad3
kadwill has joined #ruby-lang
fclausen has joined #ruby-lang
sangwoojoo has quit [Quit: Leaving.]
gwendall has joined #ruby-lang
DEac- has quit [Quit: leaving]
DEac- has joined #ruby-lang
GBrawl has joined #ruby-lang
kalzz has quit [Ping timeout: 245 seconds]
Integralist has quit [Ping timeout: 245 seconds]
seank__ has quit [Read error: No route to host]
francisfish has quit [Ping timeout: 246 seconds]
seank_ has joined #ruby-lang
goddamnit2 has joined #ruby-lang
godd2 has quit [Disconnected by services]
goddamnit2 is now known as godd2
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
timanema has joined #ruby-lang
fusillicode has quit [Quit: Leaving.]
fclausen has quit [Ping timeout: 272 seconds]
francisfish has joined #ruby-lang
tkuchiki has quit [Ping timeout: 240 seconds]
kadwill has quit [Remote host closed the connection]
fjfish has joined #ruby-lang
fujimura has joined #ruby-lang
aotg has joined #ruby-lang
ProR has joined #ruby-lang
francisfish has quit [Ping timeout: 245 seconds]
kalzz has joined #ruby-lang
revath has quit [Ping timeout: 256 seconds]
terabytest has joined #ruby-lang
chills42 has joined #ruby-lang
meschi has joined #ruby-lang
JohnBat26|NotHer has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
JohnBat26 has joined #ruby-lang
Integralist has joined #ruby-lang
kl has quit [Ping timeout: 256 seconds]
intinig has joined #ruby-lang
kl has joined #ruby-lang
ur5us has joined #ruby-lang
fusillicode has joined #ruby-lang
konr has joined #ruby-lang
fusillicode1 has joined #ruby-lang
ur5us has quit [Ping timeout: 264 seconds]
fusillicode has quit [Ping timeout: 252 seconds]
fusillicode has joined #ruby-lang
fusillicode1 has quit [Read error: Connection reset by peer]
intinig has quit [Ping timeout: 244 seconds]
bmichelsen has joined #ruby-lang
bmichelsen has quit [Read error: Connection reset by peer]
kadwill has joined #ruby-lang
revath has joined #ruby-lang
jxie has quit [Ping timeout: 272 seconds]
<wiggl3> With chruby, why won't `ruby-2.2.0` in `.ruby-version` work, whereas `chruby ruby-2.2.0` will? https://gist.github.com/anonymous/e6efc3fcdbfdc06c9553
Integral1st has joined #ruby-lang
jxie has joined #ruby-lang
Integralist has quit [Ping timeout: 252 seconds]
kl has quit [Ping timeout: 252 seconds]
migbar has joined #ruby-lang
houhoulis has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
gwendall has joined #ruby-lang
intinig has joined #ruby-lang
rahul_j has joined #ruby-lang
hinbody has joined #ruby-lang
djbkd has quit [Ping timeout: 256 seconds]
rahul_j has quit [Client Quit]
tienthanh has joined #ruby-lang
tkuchiki has joined #ruby-lang
tienthanh has quit [Client Quit]
[spoiler] has joined #ruby-lang
leonshalimov has joined #ruby-lang
timanema has quit [Ping timeout: 276 seconds]
leonshalimov has quit [Ping timeout: 264 seconds]
postmodern has quit [Remote host closed the connection]
<[spoiler]> Hello
ruby-lang911 has joined #ruby-lang
slawrence00 has joined #ruby-lang
<ruby-lang911> Is it appropriate to request someone to inspect/judge my script?
martinium has quit [Remote host closed the connection]
<ljarvis> ruby-lang911: that's fine
<yorickpeterse> it will happen anyway
<yorickpeterse> :P
<ruby-lang911> Who would be interested...? It's nooby anyways
<ljarvis> ruby-lang911: if you want feedback, then you ask everyone
<ljarvis> if you dont want feedback, then dont ask anyone
<ruby-lang911> Ohh, I want to get feedback from pros on this particular file https://github.com/cyniclimbu/rootShell/blob/master/commands_structure.rb
<ruby-lang911> Beware, it's a mess.
Asher has quit [Read error: Connection reset by peer]
<ruby-lang911> My script depends on each other so to understand one properly you'd have to view all the files on my /rootshell project though
frzng has quit [Quit: frzng]
Asher has joined #ruby-lang
danromano has quit [Quit: Leaving]
Asher has quit [Read error: Connection reset by peer]
Asher2 has joined #ruby-lang
ascarter has joined #ruby-lang
kl has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
ascarter has quit [Read error: Connection reset by peer]
<jhass> community standard is two spaces for indentation
ascarter has joined #ruby-lang
rcvalle has joined #ruby-lang
GBrawl has quit [Quit: (null)]
<ruby-lang911> I don't understand that...
<jhass> use string interpolation ("#{var}foobar") over String#+ (var+"foobar")
wprice has joined #ruby-lang
<ruby-lang911> Because if I use only two spaces I wouldn't be able to understand my code myself, trust me.
lapide_viridi has joined #ruby-lang
<jhass> did you try?
<jhass> if foo == true -> if foo
<DefV> jhass: well :-)
<jhass> don't use $globals
<DefV> could be he really needs to match true
<jhass> unlikely
<DefV> :D:D
<jhass> if cond; var = true; else; var = false; end -> var = cond
<jhass> DefV: ^ that's where it comes from
malconis has joined #ruby-lang
<ruby-lang911> Okay, but what else would I use instead of global var to communicate with other methods though?
<jhass> parameters and instance variables inside objects
lapideviridi has joined #ruby-lang
<ruby-lang911> Thanks, will do.
<jhass> .delete("\n") -> .chomp, in this case I think
Lapide has joined #ruby-lang
<ruby-lang911> I don't understand that properly...
<jhass> and many prefer && and || over and and or in conditions, although the consensus for that is not as big as for the others
<jhass> check what String#chomp does then
<ruby-lang911> Sure thing
klmlfl has joined #ruby-lang
lapide_viridi has quit [Ping timeout: 255 seconds]
lapideviridi has quit [Ping timeout: 244 seconds]
kadwill has quit [Remote host closed the connection]
AKASkip has quit [Ping timeout: 244 seconds]
<ruby-lang911> Thanks you guys & bye for now!
ProR has quit [Ping timeout: 246 seconds]
chills42 has joined #ruby-lang
lapideviridi has joined #ruby-lang
martinium has joined #ruby-lang
martinium has joined #ruby-lang
cornerma1 has joined #ruby-lang
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dzejrou has joined #ruby-lang
ruby-lang911 has quit [Ping timeout: 246 seconds]
Lapide has quit [Ping timeout: 264 seconds]
cornerman has quit [Ping timeout: 245 seconds]
cornerma1 is now known as cornerman
ta has joined #ruby-lang
martinium has quit [Ping timeout: 264 seconds]
sivsushruth has quit [Ping timeout: 244 seconds]
<banister> yorickpeterse hey what does "verkzekerdennummer" mean?
<banister> surrounder you too ^ ;)
<banister> ah it's verzekerdennummer
<banister> insurance number
martinium has joined #ruby-lang
martinium has joined #ruby-lang
lapideviridi has quit [Quit: Leaving]
<yorickpeterse> lrn2dutch
rahul_j has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
revath has quit [Ping timeout: 256 seconds]
oleo has joined #ruby-lang
leonshalimov has joined #ruby-lang
martinbmadsen has joined #ruby-lang
mattyohe has joined #ruby-lang
futilegames has joined #ruby-lang
rthompso has joined #ruby-lang
ta has joined #ruby-lang
rthompso has quit [Client Quit]
martinbmadsen has quit [Ping timeout: 256 seconds]
leonshalimov has quit [Ping timeout: 256 seconds]
ur5us has joined #ruby-lang
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kalzz has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby-lang
<[spoiler]> So, boss told me I need to watch a handball game today... As part of my job.
Lewix has quit [Read error: Connection reset by peer]
<[spoiler]> Okay
Lewix has joined #ruby-lang
ta has quit [Ping timeout: 276 seconds]
<yorickpeterse> That sounds terrible
<yorickpeterse> are you going to be ok?
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<[spoiler]> We had a CDN issue yesterday, and he said I should keep an eye out if it happens again. I asked if he has anything in mind and he told me to watch the game. LOL
ur5us has quit [Ping timeout: 255 seconds]
Bwild has quit [Quit: leaving]
ta has joined #ruby-lang
timanema has joined #ruby-lang
meschi has quit [Remote host closed the connection]
simi has joined #ruby-lang
ta has quit [Ping timeout: 272 seconds]
kalzz has joined #ruby-lang
enebo has joined #ruby-lang
houhoulis has quit [Remote host closed the connection]
vondruch__ is now known as vondruch
leonshalimov has joined #ruby-lang
ta has joined #ruby-lang
ur5us has joined #ruby-lang
rbowlby has joined #ruby-lang
ur5us has quit [Ping timeout: 256 seconds]
ta has quit [Ping timeout: 272 seconds]
rahul_j has quit [Quit: rahul_j]
rbowlby has quit [Ping timeout: 255 seconds]
rahul_j has joined #ruby-lang
j4cknewt has joined #ruby-lang
hal_9000_ has quit [Quit: hal_9000_]
chills42 has quit [Remote host closed the connection]
whippythellama has joined #ruby-lang
ta has joined #ruby-lang
fjfish has quit [Remote host closed the connection]
futilegames_ has joined #ruby-lang
futilegames has quit [Ping timeout: 264 seconds]
futilegames_ is now known as futilegames
loincloth has joined #ruby-lang
DivineEntity has quit [Read error: No route to host]
jxie has quit [Ping timeout: 245 seconds]
loincloth has quit [Ping timeout: 272 seconds]
jxie has joined #ruby-lang
fujimura has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 252 seconds]
fujimura has joined #ruby-lang
loincloth has joined #ruby-lang
DivineEntity has joined #ruby-lang
fujimura has quit [Ping timeout: 264 seconds]
charliesome has quit [Quit: zzz]
GBrawl has joined #ruby-lang
booly-yam-8846 has quit [Ping timeout: 245 seconds]
aotg has quit [Quit: Textual IRC Client: www.textualapp.com]
Sirupsen has joined #ruby-lang
ruby-lang509 has joined #ruby-lang
ruby-lang249 has joined #ruby-lang
booly-yam-8846 has joined #ruby-lang
<ruby-lang249> I have a hash that I'm calling delete_if on. Is there a way to just return true so that the element I'm checking is deleted?
ruby-lang509 has quit [Ping timeout: 246 seconds]
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
viceroy has joined #ruby-lang
<viceroy> hi
rippa has joined #ruby-lang
intinig has quit [Remote host closed the connection]
intinig has joined #ruby-lang
revath has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
<viceroy> i've been wanting to know (i'm sorry if this comes off as extremely newbish) how Matz started making Ruby? what i mean is, what references, etc. did he use to design the actual language base?
ruby-lang249 has quit [Ping timeout: 246 seconds]
arBmind1 has quit [Read error: Connection reset by peer]
klmlfl has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
viceroy has quit [Quit: Page closed]
klmlfl has joined #ruby-lang
booly-yam-8846 has quit [Ping timeout: 240 seconds]
mattwildig has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
arBmind has joined #ruby-lang
Sadin has joined #ruby-lang
stardiviner has joined #ruby-lang
Lewix has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 245 seconds]
Lewix has joined #ruby-lang
butterandguns has joined #ruby-lang
ddd has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
godzillaenlacasa has joined #ruby-lang
<godzillaenlacasa> hi all... do you guys provide help here?
<workmad3> godzillaenlacasa: we do if you stroke our egos enough
GBrawl has quit [Remote host closed the connection]
<godzillaenlacasa> workmad3 haha... I'm sure there will be plenty of that throughout.
hotpancakes has joined #ruby-lang
rahul_j has joined #ruby-lang
<godzillaenlacasa> New to the lang. I'm hoping to find some help using OptParse and case statements
kapil__ has quit [Quit: Connection closed for inactivity]
jgpawletko has joined #ruby-lang
butterandguns has quit [Quit: Page closed]
terabytest has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<workmad3> godzillaenlacasa: best way to start is by putting some code up on gist.github.com and asking your question about it (preferably avoid fake code)
<godzillaenlacasa> I have two options... either -H (for host) or -R (for range)... one of them needs to be used when running my script and then a certain scan happen. https://gist.github.com/anonymous/6867e10380c41fdea124
<godzillaenlacasa> I'm currently kicking up an error on line 66 since I haven't defined scan_type yet... problem is I'm not sure what to define it as
<workmad3> godzillaenlacasa: you can just remove it
<ljarvis> godzillaenlacasa: you just want `case`
<ljarvis> and you can remove the != nil checks
<workmad3> ^^
chills42 has joined #ruby-lang
<godzillaenlacasa> well damn... it's always easier than I think. lol
|jemc| has joined #ruby-lang
<workmad3> godzillaenlacasa: if you provide a value to 'case' (like 'case scan_type' ) then each 'when' value is compared with it (using ===). If you use a raw 'case', then each 'when' value is just checked for truthy/falsey ness
ta has joined #ruby-lang
<godzillaenlacasa> workmad3 ok, that makes sense
revath has quit [Read error: Connection reset by peer]
<ljarvis> godzillaenlacasa: also, `nil` is the default hash value for a non existant object, so you don't need to set your option defaults to nil
<godzillaenlacasa> ljarvis so if I don't define it, it's still nil ?
<ljarvis> godzillaenlacasa: yep, try `opts = {}; opts[:foo]`
<ljarvis> >> {}[:foo]
<eval-in_> ljarvis => nil (https://eval.in/245347)
<godzillaenlacasa> ljarvis well snap.. that's nice
<|jemc|> ugh. fair warning to anyone else who doesn't want to waste their time: yard crashes on 2.2 due to a ripper regression
djellemah has joined #ruby-lang
djellemah has quit [Read error: Connection reset by peer]
djellemah has joined #ruby-lang
<ljarvis> ugh yard
ta has quit [Ping timeout: 272 seconds]
chills42 has quit [Remote host closed the connection]
stamina has quit [Ping timeout: 252 seconds]
<|jemc|> somebody here littered our pipeline with yard tasks, so I can't complete any of it on 2.2.0
<yorickpeterse> Yard doesn't work on 2.2?
chills42 has joined #ruby-lang
<|jemc|> yorickpeterse: crashes on the keyword arg syntax shown in the bugs.ruby-lang ticket
<yorickpeterse> blegh
<yorickpeterse> hey folks I have a great idea, lets use Ripper for parsing
<ljarvis> i have a better idea, lets use yardoc
Pugsley_ has joined #ruby-lang
<godzillaenlacasa> other than the stuff you guys pointed out... how does the code look? Am I making it harder than it needs to be, or is it pretty ruby-ish?
svajone has joined #ruby-lang
svajone has quit [Client Quit]
<ljarvis> godzillaenlacasa: well it's fine, but if both a range and a host are set, it'll only hit your host branch
apeiros has quit [Remote host closed the connection]
<godzillaenlacasa> ljarvis because it hits that first in the case statement?
<ljarvis> godzillaenlacasa: also, I'd recommend using a 2-space indent if you can
<ljarvis> godzillaenlacasa: exactly
<ljarvis> also, your passed variable is pointless
apeiros has joined #ruby-lang
<godzillaenlacasa> ljarvis which passed variable?
<ljarvis> godzillaenlacasa: the one capturing Timeout.timeout
<godzillaenlacasa> ljarvis oh, so i can just do Timeout.timeout(5) do ...
<ljarvis> godzillaenlacasa: another thing, if you only have a single begin/rescue block, you can just use the method as the outer boundary: https://gist.github.com/leejarvis/fee54a9e47f155207ab0
<ljarvis> godzillaenlacasa: yup
rikkipitt has joined #ruby-lang
<ljarvis> there's no need to exit either, unless there's something else happening after this code. Since that's the default behaviour of the program
apeiros has quit [Ping timeout: 264 seconds]
<godzillaenlacasa> ljarvis ok, so I changed it a bit after I got past the OptParser thing..... needed to check for an actual URI since just the IP address throws an error with the Net::HTTP.get_response https://gist.github.com/godzilla74/c74f5d292894ea62758f
Lewix has quit [Remote host closed the connection]
<godzillaenlacasa> ljarvis otherwise need to prepend a 'http://' to make it an actual URI (line 16)
<ljarvis> godzillaenlacasa: the code is very repetative, since it only cares about uri. Why not change the value of uri and then write the rest of the code once?
qsuscs has left #ruby-lang ["WeeChat 1.1-dev"]
<ljarvis> uri = "http://#{uri}" unless uri.start_with?("http://")
hotpancakes has quit [Remote host closed the connection]
<godzillaenlacasa> ljarvis oh, that's cool
<ljarvis> you don't want include, since that'll return true for `foo/bar/http/something`
revath has joined #ruby-lang
<ljarvis> in fact, you should use URI.parse
<godzillaenlacasa> ljarvis URI.parse is on line 7, is that what you mean?
<ljarvis> i'd write it something like that
<ljarvis> does it make sense?
<ljarvis> URI() is the same as URI.parse() btw, just habit I always use URI()
ta has joined #ruby-lang
<godzillaenlacasa> ljarvis ok, so now I'm guessing using IPAddr.new isn't what I want to use since I'm getting a new error: `test_uri': undefined method `start_with?' for #<IPAddr: IPv4:192.168.0.1/255.255.255.255> (NoMethodError)
revath has quit [Read error: Connection reset by peer]
<ljarvis> godzillaenlacasa: right :)
rahul_j has quit [Quit: rahul_j]
<godzillaenlacasa> what's the recommended way to create an IP range then (192.168.1.0..10) -> [192.168.1.0, 192.168.1.1, ...]
rahul_j has joined #ruby-lang
Integral1st has quit [Ping timeout: 245 seconds]
ta has quit [Ping timeout: 252 seconds]
<djellemah> godzillaenlacasa: IPAddr.new("#{your_ip}/#{your_netmask}").to_range
futilegames has quit [Quit: futilegames]
<djellemah> godzillaenlacasa: also, require 'ipaddr'
jo__ has joined #ruby-lang
__butch__ has joined #ruby-lang
<godzillaenlacasa> djellemah that still prepends Object info (I think that's what it is..?) <IPAddr: IPv4:192.168.1.0/255.255.255.0>..#<IPAddr: IPv4:192.168.1.255/255.255.255.0>
leonshalimov has quit [Ping timeout: 246 seconds]
lytol has joined #ruby-lang
kl has quit [Ping timeout: 255 seconds]
hotpancakes has joined #ruby-lang
ruby-lang190 has joined #ruby-lang
<ruby-lang190> Hi
<ruby-lang190> @all I have a couple of urls which retrive specific pages. And I want to know how fast it is, on a given bandwidth 3g, 4g and 2g. Is there a way of customising the network to these specific network covereageim by modifying bps when the page requests the pages Ruby ?
hotpancakes has quit [Remote host closed the connection]
<djellemah> godzillaenlacasa: to_range returns an instance of Range
booly-yam-8846 has joined #ruby-lang
kadwill has joined #ruby-lang
GBrawl has joined #ruby-lang
seank__ has joined #ruby-lang
apeiros has joined #ruby-lang
symm- has joined #ruby-lang
kadwill has quit [Ping timeout: 252 seconds]
hotpancakes has joined #ruby-lang
seank_ has quit [Ping timeout: 264 seconds]
hotpancakes has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
revath has joined #ruby-lang
lytol has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
rikkipitt has quit []
skade has joined #ruby-lang
banister has joined #ruby-lang
skade has quit [Client Quit]
rbowlby has joined #ruby-lang
leonshalimov has joined #ruby-lang
wallerdev has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<godzillaenlacasa> ok, next question... how do you continue on from an error with the next element in an array? suppress(Exception) ?
amsi has joined #ruby-lang
centrx has joined #ruby-lang
michaeldeol has joined #ruby-lang
AKASkip has joined #ruby-lang
terabytest has joined #ruby-lang
Miphix has quit [Quit: Leaving]
ta has joined #ruby-lang
benlovell has quit [Ping timeout: 264 seconds]
asterite has joined #ruby-lang
skade has joined #ruby-lang
j0n3 has joined #ruby-lang
pancake-breakfas has joined #ruby-lang
ta has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby-lang
chills42 has quit [Remote host closed the connection]
asterite has quit [Read error: Connection reset by peer]
<ericwood> you can rescue from the exception and do a continue
<ericwood> def foo; begin; # do stuff; rescue; continue; end; end
<ericwood> although I'm not fond of that
<apeiros> ericwood: hu? continue is not a keyword in ruby
wallerdev has quit [Quit: wallerdev]
chills42 has joined #ruby-lang
<ericwood> sorry, "next"
* ericwood disappears
<centrx> he's sneaking in python! Get him!
pancake-breakfas has left #ruby-lang ["Textual IRC Client: www.textualapp.com"]
cored has joined #ruby-lang
cored has joined #ruby-lang
ruby-lang070 has joined #ruby-lang
<ruby-lang070> Hi, how can I split string into array without losing space? "example to do".split(?) => ["example ","to ","do"]
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 245 seconds]
rahul_j_ is now known as rahul_j
<centrx> >> "example to do".slice_after(' ').to_a
<eval-in_> centrx => undefined method `slice_after' for "example to do":String (NoMethodError) ... (https://eval.in/245355)
skade has quit [Quit: Computer has gone to sleep.]
<ruby-lang070> Whoa there, couldn't understand your example...
Lewix has joined #ruby-lang
Lewix has quit [Changing host]
Lewix has joined #ruby-lang
<waxjar> >> "example to do".scan(/\S+ ?/)
<eval-in_> waxjar => ["example ", "to ", "do"] (https://eval.in/245357)
<ruby-lang070> warjax: Thanks
terabytest has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
RobertBirnie has joined #ruby-lang
cored has quit [Quit: leaving]
<ruby-lang070> One last question, how can you delete any given element value? I understand integers can be removed like this, array = [1,2,3,4]; array.delete(2) => [1,3,4] but what about strings?
<waxjar> that works the same
tkuchiki has quit [Remote host closed the connection]
<ruby-lang070> I get x = ["example ", "hello ", "world"]; x.delete(0) => TypeError: no implicit conversion of Fixnum into String
tkuchiki has joined #ruby-lang
<workmad3> ruby-lang070: delete takes the object to remove, not the array index of the item to remove
<workmad3> >> %w(example hello world).delete("hello")
<eval-in_> workmad3 => "hello" (https://eval.in/245358)
<workmad3> >> x = %w(example hello world); x.delete("hello"); x
<eval-in_> workmad3 => ["example", "world"] (https://eval.in/245359)
<waxjar> ah, you misunderstood #delete, it deletes the element 0, not the index 0
<havenwood> ruby-lang070: Are you wanting #delete_at an index rather than #delete an element?
<havenwood> >> x = %w(example hello world); x.delete_at(0); x
<eval-in_> havenwood => ["hello", "world"] (https://eval.in/245360)
<ruby-lang070> I'm trying to delete an element of an array.
<ruby-lang070> x = ["hello","hello"]; x.delete("hello") => nil..but what I want is to delete an element and not the copies if you know what i mean.
martinbmadsen has joined #ruby-lang
<workmad3> ruby-lang070: ah, you want to remove duplicates?
<workmad3> >> ["hello", "hello", "world", "world"].uniq
<eval-in_> workmad3 => ["hello", "world"] (https://eval.in/245361)
futilegames has joined #ruby-lang
<workmad3> ruby-lang070: alternatively, instead of starting with an array, start with a Set ;)
tkuchiki has quit [Ping timeout: 264 seconds]
<workmad3> >> require 'set'; x = Set.new(["hello", "hello", "world"]); x.to_a
<eval-in_> workmad3 => ["hello", "world"] (https://eval.in/245362)
nickpassarella has joined #ruby-lang
<ruby-lang070> Damn, not being able to write properly in english sucks. What I mean is suppose. x = ["example","hello","world"] I want to delete ["example"] without changing the 1,2 element at all
<centrx> x[x.index('example')] = nil ?
<havenwood> >> x = ["goodbye", "hello", "hello", "hello"]; x.delete_at(x.find_index("hello")); x
<eval-in_> havenwood => ["goodbye", "hello", "hello"] (https://eval.in/245369)
wallerdev has joined #ruby-lang
martinbmadsen has quit [Ping timeout: 264 seconds]
<ruby-lang070> That's all I wanted but is there a shorter way? :p I'm still fine with that though.
lapide_viridi has joined #ruby-lang
<jhass> which one of the two now? ;)
<ruby-lang070> havenwood's :]
martinium has quit [Remote host closed the connection]
<jhass> also maybe describe your goal, there might be an elegant way to doesn't require your wanted solution at all
<havenwood> ^
futilegames_ has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
futilegames has quit [Ping timeout: 255 seconds]
futilegames_ is now known as futilegames
<ruby-lang070> I just wanted to know how to delete an array's element. I want to explain so bad but my english, you know, sucks.
<jhass> point is, I never needed delete_at in the ruby I wrote
<jhass> good chance you don't need it too
<jhass> from what you've described, the answer is delete_at
lytol has joined #ruby-lang
<ruby-lang070> You mean x = ["aa","bb","cc"]; x.delete_at("hello") ?
<ruby-lang070> forgot the underscore, oops.
<jhass> delete_at takes indexes, since that's how you reference array elements
rahul_j has quit [Quit: rahul_j]
<jhass> again, what do you need to do that operation for? what's the goal?
<ruby-lang070> Got it!
cored has joined #ruby-lang
cored has joined #ruby-lang
<waxjar> my god, i'm lagging hard :/
dik_dak has joined #ruby-lang
<jhass> don't blame your god for it, he's nothing to do with all that technology crap!
kl__ has joined #ruby-lang
workmad3 has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby-lang
<ruby-lang070> Thanks for the help guys! Bye.
<centrx> *egads
lytol has quit [Remote host closed the connection]
godd2 has quit [Remote host closed the connection]
migbar has quit [Remote host closed the connection]
ruby-lang070 has quit [Ping timeout: 246 seconds]
migbar has joined #ruby-lang
hotpancakes has joined #ruby-lang
dRbiG has joined #ruby-lang
tenderlove has joined #ruby-lang
michaeldeol has joined #ruby-lang
hotpancakes has quit [Ping timeout: 264 seconds]
migbar has quit [Ping timeout: 276 seconds]
<godzillaenlacasa> hey guys, another error I don't understand.... options.rb:18:in `test_uri': undefined local variable or method `options' for main:Object (NameError)
<godzillaenlacasa> from options.rb:81:in `<main>' https://gist.github.com/godzilla74/a766bbe559768f9b1088
<godzillaenlacasa> the command is: ruby options.rb -H 192.168.0.1 -p /index
<drbrain> godzillaenlacasa: line 6 can't see options = on line 30
<darix> godzillaenlacasa: you need to pass the options object into your test_uri function
<darix> moin drbrain
ta has joined #ruby-lang
<drbrain> godzillaenlacasa: I would pass in only options[:path] along with options[:host] isntead of all of options
<drbrain> darix: hi
<godzillaenlacasa> oh, so i define in the function? test_uri(uri, options[:path])
<darix> godzillaenlacasa: naw
<darix> you have
<darix> def test_uri(uri, path)
<darix> and call it with test_uri(..., options[:path])
<godzillaenlacasa> ok, thanks darix drbrain
<drbrain> yep ↑
hotpancakes has joined #ruby-lang
<godzillaenlacasa> so much to learn ;)
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
oak1 has joined #ruby-lang
lytol has joined #ruby-lang
ta has quit [Ping timeout: 272 seconds]
gwendall has quit [Ping timeout: 276 seconds]
djbkd has quit [Remote host closed the connection]
<darix> godzillaenlacasa: things that might be worth for you to look at: slop, mechanize, httparty
<godzillaenlacasa> will do darix !
<godzillaenlacasa> geez slop looks much easier than what I just went through darix
ruby-lang190 has quit [Ping timeout: 246 seconds]
<darix> godzillaenlacasa: donations, kisses and just simple "thank you" go to ljarvis for that
<darix> also for mechanize. but there you can include drbrain if i recall correctly
<godzillaenlacasa> nice
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
<lapide_viridi> If anyone remembers, I was wondering if setting up a IRC client with a detached server would be a good idea. Some said they' done it, while others preferred not to.
chouhoulis has quit []
iamninja has joined #ruby-lang
<lapide_viridi> Now I wounder, wouldn't a detached client make up for a lot of data traffic?
wprice has quit [Quit: wprice]
<chris2> i have 4gb irc logs since 2009?
<darix> lapide_viridi: what do you mean with detached client? also irc in general is pretty low traffic depending on the irc channel
<chris2> so: no
<darix> 2.3GB since probably even longer.
<chris2> and i have 100+ channels
<darix> chris2: window_switcher.pl?:p
chouhoulis has joined #ruby-lang
<chris2> goto and M-a
<lapide_viridi> Oh, not worse than that?
<lapide_viridi> Well, that might actually work out then.
<darix> lapide_viridi: naw
<chris2> darix: but seems nice too
<darix> chris2: window switcher allows switching by substring. which is pretty neat.
elia has quit [Quit: Computer has gone to sleep.]
<chris2> yeah, goto as well
<darix> ah. did you ever upload that to the archive?
<chris2> *go.pl its called
<godzillaenlacasa> question... how can I turn the actual rubygems documentation into something that I can learn from? For instance the source for new(version) at http://ruby-doc.org/stdlib-2.0/libdoc/rubygems/rdoc/Gem/Version.html makes no sense to me about how to use it in one of my progs.
<darix> godzillaenlacasa: rdoc.info
<darix> see gem help server
<darix> or use the yard doc server
<darix> that should help you
<darix> godzillaenlacasa: also look up "pry" and especially its "binding.pry" feature
<drbrain> godzillaenlacasa: or do you mean "how do I look at the source of a project to learn ruby from it?"
<darix> it is gold for developing more or less interactively :p
<godzillaenlacasa> drbrain yes.
<drbrain> godzillaenlacasa: rubygems might not be the best place to start
<darix> godzillaenlacasa: rubygems.org links to the source code
wallerdev has quit [Quit: wallerdev]
<darix> e.g.
<darix> home page link on the lower right links to the source code.
<darix> in many cases.
<godzillaenlacasa> ok
sangwoojoo has joined #ruby-lang
futilegames has quit [Quit: futilegames]
arBmind has quit [Quit: Leaving.]
arBmind has joined #ruby-lang
terabytest has joined #ruby-lang
djbkd has joined #ruby-lang
wallerdev has joined #ruby-lang
ur5us has joined #ruby-lang
marr has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby-lang
hahuang61 has joined #ruby-lang
hahuang61 has quit [Client Quit]
arBmind has quit [Ping timeout: 245 seconds]
booly-yam-8846 has quit [Ping timeout: 245 seconds]
hahuang61 has joined #ruby-lang
ishikawa_ is now known as ishikawa
cored has quit [Quit: leaving]
hahuang61 has quit [Client Quit]
hahuang61 has joined #ruby-lang
sarkyniin has joined #ruby-lang
migbar has joined #ruby-lang
wprice has joined #ruby-lang
intinig has quit [Remote host closed the connection]
martinium has joined #ruby-lang
shazaum has joined #ruby-lang
vondruch has quit [Ping timeout: 256 seconds]
djellemah has quit [Quit: Leaving]
nofxx has quit [Ping timeout: 256 seconds]
stamina has joined #ruby-lang
Pugsley_ has quit [Quit: Lingo: www.lingoirc.com]
gwendall has joined #ruby-lang
lapide_viridi has quit [Quit: Leaving]
martinium has quit [Ping timeout: 252 seconds]
leonshalimov has quit [Ping timeout: 265 seconds]
mattwildig has quit [Remote host closed the connection]
ta has joined #ruby-lang
diegoviola has quit [Remote host closed the connection]
vondruch has joined #ruby-lang
leonshalimov has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
lytol has quit [Remote host closed the connection]
ta has quit [Ping timeout: 276 seconds]
lytol has joined #ruby-lang
stamina has quit [Quit: WeeChat 1.1]
jo__ has quit [Quit: Connection closed for inactivity]
hotpancakes has quit [Remote host closed the connection]
fclausen has joined #ruby-lang
lytol has quit [Ping timeout: 245 seconds]
mbr has joined #ruby-lang
mbr has quit [Client Quit]
mbr has joined #ruby-lang
tobiassvn has quit [Quit: WeeChat 1.0.1]
hotpancakes has joined #ruby-lang
terabytest has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
spuk has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]
solars has quit [Ping timeout: 255 seconds]
hotpanca_ has joined #ruby-lang
ta has joined #ruby-lang
djellemah has joined #ruby-lang
shazaum has quit [Quit: This computer has gone to sleep]
mattwildig has joined #ruby-lang
jefus_ has joined #ruby-lang
jefus_ is now known as jefus
Sadin has quit [Remote host closed the connection]
ta has quit [Ping timeout: 276 seconds]
tkuchiki has joined #ruby-lang
yfeldblum has joined #ruby-lang
hotpanca_ has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
sangwoojoo has quit [Quit: Leaving.]
dik_dak has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ljarvis> godzillaenlacasa: also, if you have a gem installed, you can unpack the source code and take a look at it: `gem unpack slop` for ex
tkuchiki has quit [Ping timeout: 276 seconds]
robbyoconnor has quit [Ping timeout: 252 seconds]
marr has joined #ruby-lang
<darix> ljarvis: actually the source is already unpacked :p
<ljarvis> well yes
<darix> gem which slop
<darix> is pretty helpful in that case :)
<darix> cya
<yorickpeterse> hnhngngng 21:06 and I'm pretty close to swapping all apps over to Pg
workmad3 has quit [Ping timeout: 264 seconds]
<yorickpeterse> now I just need to migrate all the data....which is half of the work
sangwoojoo has joined #ruby-lang
GBrawl has quit [Quit: (null)]
<yorickpeterse> biggest pain so far? Mongo contantly timing out because apparently 25 open connections is way too much
<yorickpeterse> (during my data export)
robbyoconnor has joined #ruby-lang
<nofxx> yorickpeterse, I'm currently with > 1000 connections with no probs on my stack
<nofxx> some I/O issue on yr hw?
oak1 has quit [Ping timeout: 245 seconds]
arBmind has joined #ruby-lang
<yorickpeterse> nfi but I don't care tbh, in less than 24 hours this cluster no longer exists
<nofxx> big site?
<yorickpeterse> site? No
<yorickpeterse> data: about 150GB, so not that much
<yorickpeterse> but that will be cut down to ~20GB
<yorickpeterse> at most
ldnunes has quit [Quit: Leaving]
jds has quit [Quit: Connection closed for inactivity]
<nofxx> yorickpeterse, nice, changing the number of servers? pg rep for balance reads?
timanema has quit [Quit: leaving]
timanema has joined #ruby-lang
_fritchie has joined #ruby-lang
timanema has quit [Client Quit]
wallerdev has quit [Quit: wallerdev]
ta has joined #ruby-lang
hotpancakes has joined #ruby-lang
gwendall_ has joined #ruby-lang
gwendall has quit [Read error: Connection reset by peer]
revath has quit [Read error: Connection reset by peer]
solars has joined #ruby-lang
lytol has joined #ruby-lang
ta has quit [Ping timeout: 252 seconds]
lytol has quit [Ping timeout: 252 seconds]
skade has joined #ruby-lang
lytol has joined #ruby-lang
ascarter has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
spuk has quit [Ping timeout: 240 seconds]
<yorickpeterse> No, replacing Mongo with Pg
spuk has joined #ruby-lang
<yxhuvud> nice.
<yxhuvud> sounds as if there could be a lot of performance improvements then
<apeiros> I think he's more after the sanity improvements
<yorickpeterse> both
<yorickpeterse> sanity is the first priority though
hrs has joined #ruby-lang
aotg has joined #ruby-lang
dik_dak has joined #ruby-lang
<[spoiler]> but mongo is so majestic, are you silly?
wallerdev has joined #ruby-lang
[spoiler] has quit [Quit: I'm running to save my life!]
gwendall_ has quit [Remote host closed the connection]
<yorickpeterse> meh I'll do the rest tomorrow
<yorickpeterse> seems I clogged mongo again anyway
duderonomy has quit [Quit: Textual IRC Client: www.textualapp.com]
godzillaenlacasa has quit [Quit: Computer has gone to sleep.]
<nofxx> Anyone watched imitation game recently? hehe, got a 'message' here I was told may contain the text '0001': "65dLo88h98p8fLb84ifi8x7fhO23ciam4kod4rsc" so I: pff, how easy, how jedi am I its base64... well, actually it is, but tryed all I can think (and realized I'm no jedi)...
<nofxx> bin: "\xEB\x97K\xA3\xCF!\xF7\xCA||\xB6\xFC\xE2'\xE2\xF3\x1E\xDF\x84\xED\xB7r&\xA6\xE2J\x1D\xE2\xBB\x1C"
<nofxx> can't find that sequence there, but again, was told it contains, it may not...
martinium has joined #ruby-lang
<nofxx> maybe brute force the pack/upack? kinda [1..2] [1..3] ... [ N-2, N-1]
<apeiros> it's a one time pad. haha.
<nofxx> apeiros, hm?
<apeiros> if it's a one-time pad, you're f'ed.
<nofxx> apeiros, what's a one time pad, pardon my ignorance
<apeiros> you have a key of the same length as the message and XOR it with it.
<apeiros> without the key, the message could decode to just any message of the same length
<bnagy> well it's not that
<bnagy> that's not random binary
hotpancakes has quit [Remote host closed the connection]
<apeiros> bnagy: that just means the pad was well chosen! ;-)
<apeiros> "look, look! it's cesar chiffre"
martinium has quit [Ping timeout: 240 seconds]
hotpancakes has joined #ruby-lang
<bnagy> well not unless they lied about the 0001
<bnagy> there are no triple repeats
<bnagy> but it does look like something simple, it's in a pretty tight binary range and there are lots of repeats
<nofxx> apeiros, hm, got it.... bnagy yeah.. my frist attempt. Not related to this one, but once I had to support a very crazy protocol, binary wasn't fixed at 8 bits.... some where 4, 6. Hence my brute force idea
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
<bnagy> PER will do that :(
nickpassarella has quit [Quit: nickpassarella]
<yorickpeterse> weeeee, run little Rubies, export that data for me
chills42 has quit [Remote host closed the connection]
<nofxx> bnagy, partial equivalence relation?
djbkd has quit [Remote host closed the connection]
martinbmadsen has joined #ruby-lang
hrs has quit [Quit: Textual IRC Client: www.textualapp.com]
<bnagy> packed encoding rules
<bnagy> ok well it's not a one byte xor key
<bnagy> and now I'm bored
<nofxx> bnagy, me too, no war to win anyways
<nofxx> but going to finish my brute force attempt... might came handy
martinbmadsen has quit [Ping timeout: 264 seconds]
aotg_ has joined #ruby-lang
godzillaenlacasa has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
<godzillaenlacasa> how would one go about overriding the default action for many standard errors? https://gist.github.com/godzilla74/52dd2741132f20b2a087
gix has quit [Ping timeout: 252 seconds]
<ljarvis> godzillaenlacasa: not sure I follow, but you can rescue multiple things using `rescue Foo, Bar, Etc`
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<ljarvis> you probably dont watch catch for this :)
meschi has joined #ruby-lang
<godzillaenlacasa> ljarvis why not ?
gix has joined #ruby-lang
skade has joined #ruby-lang
<ljarvis> godzillaenlacasa: it shouldn't really be used unless it's absolutely required, and in most cases it's not required. It aids confusing/horrible code
hotpancakes has quit [Remote host closed the connection]
<godzillaenlacasa> ljarvis ok, noted... guess I need to read up when to actually use it then
djbkd has joined #ruby-lang
<godzillaenlacasa> y'all have been most helpful today! Thanks a ton! Learning alot!
<bnagy> never
mattwildig has quit []
<ljarvis> godzillaenlacasa: one thing to remember is that you should try to avoid using exceptions for control-flow. When that comes up, catch/throw might be an option (though that's also rarely the case :P)
<bnagy> @@classvars and throw/catch, not even once (tm)
<wallerdev> what about multi nested loops
<wallerdev> :p
<ljarvis> that's the only application for me
<godzillaenlacasa> ljarvis do my rescue lines fall into the bucket as well?
<ljarvis> godzillaenlacasa: not sure what you mean
leonshalimov has quit [Ping timeout: 245 seconds]
<godzillaenlacasa> ljarvis are rescues part of the ruby exception class?
<ljarvis> godzillaenlacasa: sorry I don't know what that means
hotpancakes has joined #ruby-lang
<godzillaenlacasa> ljarvis hmm, maybe I don't know what I'm saying. lol
Pugsley_ has joined #ruby-lang
svajone has joined #ruby-lang
<svajone> Hey guys.
<svajone> :D
<svajone> Question! :)
<svajone> Say I have a file name, america_hertigage.csv, what’s the best way to match the “america” part in an array like this? CONTINENTS = ['ASIA', 'AFRICA', 'NORTH AMERICA', 'SOUTH AMERICA', 'ANTARCTICA', 'EUROPE', 'AUSTRALIA']
<ljarvis> >> ['ASIA', 'AFRICA', 'NORTH AMERICA', 'SOUTH AMERICA'].grep /AMERICA/
<eval-in_> ljarvis => ["NORTH AMERICA", "SOUTH AMERICA"] (https://eval.in/245384)
<ljarvis> oh you want to match that filename from that array? im confused
leonshalimov has joined #ruby-lang
sarkyniin has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
hramrach has quit [Remote host closed the connection]
iamninja has quit [Read error: Connection reset by peer]
havenwood has quit [Read error: Connection reset by peer]
ishikawa has quit [Write error: Connection reset by peer]
djellemah has quit [Ping timeout: 276 seconds]
workmad3 has quit [Ping timeout: 246 seconds]
lytol has quit [Remote host closed the connection]
frzng has joined #ruby-lang
ta has joined #ruby-lang
elia has joined #ruby-lang
slumos has joined #ruby-lang
ishikawa has joined #ruby-lang
havenwood has joined #ruby-lang
aconnor has joined #ruby-lang
tkuchiki has joined #ruby-lang
hotpancakes has quit [Remote host closed the connection]
pr0ton_ has joined #ruby-lang
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pr0ton_ has quit [Client Quit]
hinbody has quit [Quit: leaving]
hinbody has joined #ruby-lang
hinbody has quit [Client Quit]
pr0ton_ has joined #ruby-lang
hinbody has joined #ruby-lang
tkuchiki has quit [Ping timeout: 264 seconds]
<svajone> ljarvis: yes sir!
<svajone> so match america_heritage.csv to the array
aotg_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
iamninja has joined #ruby-lang
postmodern has joined #ruby-lang
havenwood has quit []
gwendall has joined #ruby-lang
hramrach has joined #ruby-lang
Sirupsen has quit [Ping timeout: 256 seconds]
<ljarvis> svajone: find all values that match "america_heritage.csv" ? so you'd want to return the 2 america values?
godzillaenlacasa has quit [Quit: Computer has gone to sleep.]
<svajone> ljarvis: no, so I have a file name america_heritage.csv, I want to match the word
<svajone> america on my array if it’s there.
<svajone> So if I match america_heritage.csv to the continents, it should return true.
<bnagy> svajone: no, it wouldn't
<bnagy> because it doesn't match north america or south america
<ljarvis> svajone: you'd have to remove the "_heritage"
<svajone> bnagy: And what’s the best way to achieve that?
<bnagy> what exactly do you want to achieve?
<bnagy> from that array, match the filename america_heritage.csv?
<svajone> Basically, just confirm that the filename contains one of the seven continents of the world.
<bnagy> well it doesn't
<ljarvis> :)
<bnagy> it contains a fragment of two different ones
gwendall has quit [Ping timeout: 276 seconds]
<svajone> So I have an array, CONTINENTS and I want to match a file name to one of those continents.
<bnagy> well in your example, america_heritage.csv, are we talking about enslaving africans or slaughtering incas?
<bnagy> it's imprecise
<svajone> Haha. :D
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<ljarvis> plus, you have north and south america in your continents, but pretty sure your file is never gonna care about that
<ljarvis> so just have america?
<svajone> Let’s just use europe. :D
<svajone> so europe_heritage.csv :D
<ljarvis> so, these files all end with _heritage?
michaeldeol has joined #ruby-lang
<svajone> most likely yes, or could be anything.
<ljarvis> ...
<bnagy> >> ['ASIA', 'AFRICA', 'NORTH AMERICA', 'SOUTH AMERICA', 'ANTARCTICA', 'EUROPE', 'AUSTRALIA'].map {|s| Regexp.new(s, Regexp::IGNORECASE)}.any? {|r| r.match 'europe_heritage.csv'}
<eval-in_> bnagy => true (https://eval.in/245393)
skade has quit [Quit: Computer has gone to sleep.]
kadwill has joined #ruby-lang
<svajone> What if it’s not heritage or instead of a boolean how would I return what it matched?
<svajone> Sorry, I am terrible at Regex.
<bnagy> that will work with any filename, to see which one you can use select instead of any?
<bnagy> but that will get you a regex, because I mapped it
<ljarvis> alternative because mehhh Regexp.new; CONTINENTS.any? { |x| /#{x}/i.match("europe_heritage.csv") }
<svajone> So it’ll return the continent it matched?
<ljarvis> no
diegoviola has joined #ruby-lang
<ljarvis> any? returns true or false
diegoviola has quit [Client Quit]
<ljarvis> as bnagy suggests, use select if you want the matched values
<svajone> I see, yeah the question mark was a dead ringer for it.
diegoviola has joined #ruby-lang
<svajone> so array.select { |x| doregex == s }
<bnagy> >> ['EUROPE', 'MARS'].select {|cont| /#{cont}/i.match 'europe_bees.csv'}
<eval-in_> bnagy => ["EUROPE"] (https://eval.in/245395)
<ljarvis> ^
<ljarvis> you build a Regexp object for every value and then try to match the filename against it
<svajone> I see, thanks. :D
<svajone> works perfectly many thanks my friends! :D
<svajone> Aciu!
<svajone> Can I ask why there’s an “i” ?
<bnagy> Regexp::IGNORECASE
pr0ton_ has quit [Quit: pr0ton_]
hotpancakes has joined #ruby-lang
migbar has quit [Read error: Connection reset by peer]
hotpancakes has quit [Remote host closed the connection]
<ljarvis> >> ~0x11
<eval-in_> ljarvis => -18 (https://eval.in/245415)
kadwill has quit [Remote host closed the connection]
martinium has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
ascarter has joined #ruby-lang
workmad3 has joined #ruby-lang
donove has quit [Quit: Leaving]
jefus_ has joined #ruby-lang
ascarter has quit [Max SendQ exceeded]
ascarter has joined #ruby-lang
lytol has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
martinium has quit [Ping timeout: 256 seconds]
jefus has quit [Ping timeout: 264 seconds]
nickpassarella has joined #ruby-lang
tenderlove has quit [Quit: Leaving...]
wei_au has quit []
djbkd has joined #ruby-lang
AKASkip has quit [Ping timeout: 240 seconds]
jefus_ is now known as jefus
jo__ has joined #ruby-lang
nickpassarella has quit [Quit: nickpassarella]
djbkd has quit [Remote host closed the connection]
fclausen has quit [Quit: leaving]
charliesome has joined #ruby-lang
malconis_ has joined #ruby-lang
leonshalimov has quit [Ping timeout: 264 seconds]
leonshalimov has joined #ruby-lang
malconis has quit [Ping timeout: 245 seconds]
solars has quit [Ping timeout: 246 seconds]
gwendall_ has joined #ruby-lang
tzero has left #ruby-lang ["WeeChat 0.4.3"]
djbkd has joined #ruby-lang
[H]unt3r has quit []
chouhoulis has quit [Remote host closed the connection]
jgpawletko has quit [Quit: jgpawletko]
leonshalimov has quit [Ping timeout: 272 seconds]
dzejrou has quit [Quit: Leaving]
<nofxx> but going to finish my brute force attempt... might came handy
charliesome has quit [Quit: zzz]
<nofxx> ops, wrong window for shift up enter
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
konr has quit [Quit: Connection closed for inactivity]
JoshuaPaling has joined #ruby-lang
svajone has quit [Ping timeout: 265 seconds]
malconis_ has quit [Remote host closed the connection]
oleo is now known as Guest88962
oleo__ has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
charliesome has joined #ruby-lang
djbkd has joined #ruby-lang
Guest88962 has quit [Ping timeout: 245 seconds]
<ddd> so basically, all the * operator really is is an 'expander' operator correct? it expands whatever its argument is? (like for a range. k = 1..200 ; *k would print out 1 through 200)
<ericwood> that's a decent way to look at it
<ericwood> you can also use it to convert an array into a bunch of arguments
<yorickpeterse> Does anybody know of the MRI CAPI allows one to basically use Data_Wrap_Struct but wrap a _class_ and not an instance? I'm looking for a way to store C objects on class level, opposed to instance level
<ddd> ok. been trying to figure out the best way to mentally view it so as to make it stick
<ericwood> >> def foo(a,b,c); puts a,b,c; end; foo(*[1,2,3])
<eval-in_> ericwood => 1 ... (https://eval.in/245443)
<ddd> ericwood, is that by virtue of it's expansion operation?
<ericwood> yeah
marr has quit [Ping timeout: 245 seconds]
<ddd> ok
<ericwood> it's called a "splat" in ruby parlance
<ddd> right. was searching for the best words to define what it was coming out as in my head
whippythellama has quit [Quit: whippythellama]
<ddd> thanks for the response. think so far (besides how blocks work in some instances) the splat's the only other thing that's been giving me troubles. I might be back once i get into the anonymous blocks and blocks as formal args again
<ericwood> sure thing
<ericwood> splat isn't something you'll find yourself using a ton, but it's really nice when you need it
nickpassarella has joined #ruby-lang
dik_dak has quit [Quit: Textual IRC Client: www.textualapp.com]
<ddd> yeah i can see its usefulness.
nickpassarella has quit [Client Quit]
_djbkd has joined #ruby-lang
nickpassarella has joined #ruby-lang
ddd has quit [Quit: goddamn I hate dual booting sometimes. unclean windows fs, can't mount when I need it]
diegoviola has quit [Remote host closed the connection]
djbkd has quit [Read error: Connection reset by peer]
symm- has quit [Ping timeout: 265 seconds]
setanta_ has quit [Quit: Leaving]
sangwoojoo has quit [Quit: Leaving.]
francisfish has joined #ruby-lang
arBmind1 has joined #ruby-lang
arBmind has quit [Ping timeout: 245 seconds]
sangwoojoo has joined #ruby-lang
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby-lang
_djbkd has quit [Remote host closed the connection]
fclausen has joined #ruby-lang
djbkd has joined #ruby-lang
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby-lang
workmad3 has quit [Ping timeout: 244 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kalehv has joined #ruby-lang
Sirupsen has joined #ruby-lang