apeiros_ changed the topic of #ruby to: Ruby 2.2.0; 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
Ilyas has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
josephndenton has quit [Ping timeout: 265 seconds]
deric_skibotn has quit [Ping timeout: 265 seconds]
WillAmes has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
ishikawa has joined #ruby
WillAmes has joined #ruby
baroquebobcat has joined #ruby
snath has quit [Ping timeout: 264 seconds]
cvtsx has joined #ruby
fryguy9 has joined #ruby
robbyoconnor has joined #ruby
DrCode has joined #ruby
havenwood has quit [Remote host closed the connection]
<jhass> >> 1.upto(100) {|n| print n % 15 == 0 ? 'Fizzbuzz' : n % 3 == 0 ? 'Fizz' : n % 5 == 0 ? 'Buzz' : n }
<eval-in__> jhass => 12Fizz4BuzzFizz78FizzBuzz11Fizz1314Fizzbuzz1617Fizz19BuzzFizz2223FizzBuzz26Fizz2829Fizzbuzz3132Fizz34BuzzFizz3738FizzBuzz41Fizz4344Fizzbuzz4647Fizz49BuzzFizz5253FizzBuzz56Fizz5859Fizzbuzz6162Fizz64Buzz ... (https://eval.in/240004)
slawrence00 has joined #ruby
baweaver has quit [Remote host closed the connection]
<omosoj> what's the name of ||=?
p0wn3d_mhs has joined #ruby
<godd2> I call it "or equals"
iamninja has joined #ruby
<godd2> however technically wrong that may be
<omosoj> it is used for assignment?
Tricon has quit [Quit: leaving]
Tricon has joined #ruby
<omosoj> 'initialize variables if they're not already initialized'? - ruby style guide
<jhass> that's what it's used for, yeah
<jhass> a ||= b is a shorthand to write a || a = b
emmesswhy has joined #ruby
eka has quit [Ping timeout: 244 seconds]
<bradland> a ||= b is turtles all the way down
<godd2> ah I finally get why it wouldn't be a = a || b, since then a would be a boolean
<omosoj> okay. so, a, or if a has not been assigned, then a = b
<bradland> like jhass said, it’s equivalent to a || a = b
postmodern has joined #ruby
<godd2> oh wait no, im wrong. ill go think in a corner more
<jhass> godd2: no, it's rather because in a.b ||= c that would behave unexpected
<omosoj> k got it ty all
tomaw has joined #ruby
<bradland> in ruby, evaluation of || expressions stops when a truthy value is encountered
eka has joined #ruby
akkad has quit [Excess Flood]
<bradland> so the assignment half of the expression never evals
<jhass> godd2: a.b = a.b || c would always call the method, where as a.b || a.b = c only calls the method when necessary, as you expect
<bradland> that bit about “stops when truthy” is important, because you’ll run in to it all over the place
deepy has quit [Quit: ZNC - http://znc.in]
<omosoj> truthy? whaa?
<chipotle> hello bradland et al
<jhass> truthy means it's not nil nor false ;)
<omosoj> what else is there besides true? like a long thing that must be computed before the answer is known?
Crazy_Atheist has quit [Ping timeout: 255 seconds]
<bradland> truthy: not lierally true (as in an instance of TrueClass), but evaluates as true in conditionals.
baroquebobcat has quit [Quit: baroquebobcat]
metadave has joined #ruby
<waxjar> "" is truthy, 1 is truthy, any object but nil and false are truthy :)
snath has joined #ruby
<bradland> s/lierally/literally/
jheg has quit [Quit: jheg]
<jhass> notably 0 is truthy too
<jhass> which is not the case in all languages
bMalum has quit [Quit: bMalum]
Tricon has quit [Quit: leaving]
<omosoj> is there a method to evaluate truthness?
Tricon has joined #ruby
<bradland> drop it in a condition
<bradland> >> puts “true” if “some expression”
<omosoj> if 1; puts "i'm true"; end
<omosoj> >> if 1; puts "i'm true"; end
<eval-in__> omosoj => i'm true ... (https://eval.in/240007)
conniemj has quit [Read error: Connection reset by peer]
<bradland> yep, that works too
<bricker> omosoj: #!()
conniemj has joined #ruby
* bricker pretentious
AlexRussia has quit [Quit: WeeChat 1.1-dev]
<jhass> ! can lie though
<omosoj> what do you mean bricker?
bklane has quit [Remote host closed the connection]
<bricker> jhass: not when determining truthiness
Tricon has quit [Client Quit]
akkad has joined #ruby
<bradland> does ruby warn when using literals in conditional expressions?
AlexRussia has joined #ruby
Tricon has joined #ruby
Tricon has quit [Client Quit]
<omosoj> >> !1
<eval-in__> omosoj => false (https://eval.in/240008)
<jhass> ?
<waxjar> i believe it does bradland
Tricon has joined #ruby
Crazy_Atheist has joined #ruby
<bradland> indeed
<bradland> just tested: ruby -w -e 'puts "hello" if 1'
<omosoj> >> !0
<bradland> -e:1: warning: literal in condition
<eval-in__> omosoj => false (https://eval.in/240009)
deepy has joined #ruby
<bradland> because 0 is truthy
St_Marx has joined #ruby
<waxjar> omosoj: you don't really need to test it, just remember that false and nil are falsy and all other values truthy :)
<bradland> haha, yeah. the list of falsy things is pretty short.
bklane has joined #ruby
<omosoj> waxjar, hard to understand, but i guess i'll be able to remembery it
<bradland> omosoj: you’ll get it quickly. the fact that everything is truthy is used in tons of idiomatic ruby code.
cleopatra has quit [Ping timeout: 240 seconds]
<bradland> you’ll see all over the place where ruby code puts all manner of things in conditional expressions that you wouldn’t expect.
<omosoj> like the a ||= b thing, right?
<bradland> and you’ll remember “oh yeah, that’s because everything but nil/false is truthy"
<omosoj> no, that's not conditional
<bradland> yeah, that’s a very common idiom
<bradland> || (logical or) is kind of a conditional
baweaver has joined #ruby
<bradland> a lot of people call that the conditional assigment operator
patrick99e99 has quit [Quit: Lost terminal]
<omosoj> yeah makes sense
<bradland> you’ll see it a lot in accessor methods
<bradland> because it’s a common means of memoizing a value
TrOuBleStArTeR has quit [Quit: Going offline, see ya! (www.adiirc.com)]
<bradland> a way to say, assign this value if it’s not already been assigned
<bradland> and on the right side of the operator, there’s some expensive operation
<omosoj> yeah that's what i'm looking at now
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
studiotate has joined #ruby
<waxjar> there is a caveat though, if it's assigned the value "false" it will be re-assigned!
<waxjar> because false is falsy :p
sevvie has joined #ruby
<bradland> yeah, that’s why you don’t see a lot of ruby code that returns values of the TrueClass and FalseClass.
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
<bradland> more pertinent to the lack of FalseClass instances, i suppose than true.
doodlehaus has joined #ruby
baweaver has quit [Remote host closed the connection]
luizbafilho has quit [Quit: Textual IRC Client: www.textualapp.com]
* omosoj 's brain explodes
sambao21 has quit [Quit: Computer has gone to sleep.]
felixjet_ has quit [Read error: Connection reset by peer]
<waxjar> it's p easy, just have to get a bit of intuition.
<omosoj> yeah :)
rbennacer has joined #ruby
godd2 has quit [Ping timeout: 244 seconds]
sevvie has quit [Ping timeout: 240 seconds]
godd2 has joined #ruby
sevvie has joined #ruby
jheg has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
deric_skibotn has joined #ruby
Tricon has quit [Quit: leaving]
<godd2> t = TrueClass.new
<godd2> >> t = TrueClass.new
<eval-in__> godd2 => undefined method `new' for TrueClass:Class (NoMethodError) ... (https://eval.in/240011)
Tricon has joined #ruby
Tricon_ has joined #ruby
Tricon_ has quit [Client Quit]
rbennacer has quit [Ping timeout: 265 seconds]
luriv has quit [Ping timeout: 245 seconds]
Tricon has quit [Client Quit]
Tricon has joined #ruby
<jhass> >> Class.instance_method(:allocate).bind(TrueClass).call
<eval-in__> jhass => allocator undefined for TrueClass (TypeError) ... (https://eval.in/240012)
<jhass> :(
Tricon has quit [Client Quit]
<godd2> >> true.singleton_class == TrueClass
<eval-in__> godd2 => true (https://eval.in/240013)
<godd2> dunno if I can trust it though...
sevenseacat has joined #ruby
Tricon has joined #ruby
Tricon has quit [Client Quit]
conniemj has quit [Quit: (null)]
<jhass> class TrueClass; def allocate; true; end; end; I guess :P
<godd2> "Hey, are you the only instance of the thing you're an only instance of?" "Yea! and you have to use me to know that!"
<omosoj> is there a way, in sublime text, to find the origin of a snippet of code? like i see method_name here, but i want to find where it's defined
freerobby has quit [Quit: Leaving.]
<jhass> >> def true.!; true; end; !!!!!true
<eval-in__> jhass => true (https://eval.in/240014)
zarubin_ has quit []
<omosoj> lol
Tricon has joined #ruby
hrs has joined #ruby
<bradland> omosoj: press cmd+shift+f
<bradland> then search for def <method>
<bradland> replace <method> with the method name
<bradland> are you using ST3? or ST2?
<omosoj> bradland, awesome! thank you! ST3
conniemj has joined #ruby
<omosoj> ok so the method was in the exact file i was already in ROFL
<bradland> ok, ST3 has an even better method that will search everything in the current project, but I use ST2 still, so I don’t know how it works.
<bradland> haha happens to me all the time
<bradland> for that case, you can press cmd+r
<bradland> and just start typing the method name
<bradland> the same works with cmd+t if you type @method
<bradland> ST uses the @ to mean “symbol” lookup
<bradland> method names are symbols
<omosoj> awesome. just switched to ST3 from vim 2 days ago. glad i did (i mean i'm sure you can set these up in vim but i'm not advanced enough to customize it at a reasonable speed)
baweaver has joined #ruby
<omosoj> ah i see
cazrin has joined #ruby
<bradland> omosoj: you should check out “vintage” mode in ST
<bradland> it changes the editor portion to use many of vim’s input syntax
veduardo has joined #ruby
<bradland> so you get part of vim’s power, but ST’s friendlier wrapper
zorak8 has joined #ruby
<omosoj> cool
ghr has joined #ruby
renderful has joined #ruby
stunder has quit [Quit: Leaving]
veduardo has quit [Client Quit]
oo_ has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 244 seconds]
jheg has quit [Quit: jheg]
renderful has quit [Ping timeout: 265 seconds]
pen has joined #ruby
ta_ has joined #ruby
karmatr0n has joined #ruby
Tarential has joined #ruby
crueber has joined #ruby
Tricon has quit [Quit: leaving]
pengin_ has quit [Remote host closed the connection]
Tricon has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
hrs has quit [Quit: Computer has gone to sleep.]
hrs has joined #ruby
_maes_ has quit [Ping timeout: 264 seconds]
karmatr0_ has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
deepy has quit [Changing host]
deepy has joined #ruby
Jello_Raptor has quit [Remote host closed the connection]
karmatr0n has quit [Ping timeout: 255 seconds]
pkrzywicki is now known as noname001
davasaurous has joined #ruby
rubyonrailed has quit [Remote host closed the connection]
Guest38863 has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
doodlehaus has quit [Remote host closed the connection]
davasaurous has quit [Remote host closed the connection]
davasaurous has joined #ruby
Guest38863 has left #ruby [#ruby]
bitcycle_ has joined #ruby
valeriansaliou has joined #ruby
Drakevr has quit [Ping timeout: 255 seconds]
josephndenton has joined #ruby
adriancb has joined #ruby
cazrin has quit [Remote host closed the connection]
pandaant has quit [Remote host closed the connection]
s00pcan_ has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 245 seconds]
bitcycle_ has quit [Ping timeout: 256 seconds]
karmatr0_ has quit [Read error: No route to host]
ta_ has joined #ruby
karmatr0n has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
akaiiro has quit [Quit: Leaving]
havenwood has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
crueber has quit [Quit: Leaving.]
s00pcan_ has joined #ruby
Tricon has quit [Ping timeout: 264 seconds]
Xspl0it has joined #ruby
t00b has quit [Remote host closed the connection]
ddd has quit [Quit: leaving]
havenwood has quit [Remote host closed the connection]
mmoretti has joined #ruby
cazrin has joined #ruby
karmatr0n has quit [Ping timeout: 244 seconds]
karmatr0_ has joined #ruby
Xsploit has quit [Ping timeout: 244 seconds]
sevvie has joined #ruby
Drakevr has joined #ruby
cazrin has quit [Remote host closed the connection]
DadoCe has joined #ruby
cazrin has joined #ruby
bronson has joined #ruby
<kyfho> www.prevayler.org in ruby?
ta_ has quit [Ping timeout: 265 seconds]
baweaver has quit [Remote host closed the connection]
sevvie has quit [Read error: Connection reset by peer]
Drakevr has quit [Changing host]
Drakevr has joined #ruby
sevvie has joined #ruby
karmatr0n has joined #ruby
chrisja has quit [Quit: leaving]
DadoCe has quit [Ping timeout: 264 seconds]
karmatr0_ has quit [Read error: Connection reset by peer]
bronson has quit [Ping timeout: 245 seconds]
orangerobot has joined #ruby
cazrin has quit [Remote host closed the connection]
Kricir has joined #ruby
<kyfho> damn cygwin wont compile ruby
<kyfho> 2.2
<kyfho> on 64 bit win7
<kyfho> best cygwin package is 2.0
<kyfho> :(
<orangerobot> Hello. Is there a commonly used solution to publish a small website about a gem?? I want some static pages and a link to yardoc for starters
Guest41649 is now known as kaspergrubbe
<godd2> orangerobot you can look into github pages
alkoma has quit [Ping timeout: 256 seconds]
mleung has quit [Quit: mleung]
cazrin has joined #ruby
karmatr0n has quit [Read error: Connection reset by peer]
hfp_ has joined #ruby
karmatr0n has joined #ruby
<orangerobot> godd2: hmm interesting. can I somehow plug a yardoc website into that?
pen has quit []
econerd4ever has quit [Remote host closed the connection]
Tricon has joined #ruby
<godd2> well you can always add a link to a website
<godd2> its just a matter of adding an <a> tag
hfp has quit [Ping timeout: 245 seconds]
hfp_ is now known as hfp
<orangerobot> sure I just thought ther was some pre-baked solution. But you've given be a nice pointer, I'll look into that. thanks godd2
godd2 is now known as godd2-away
hfp_work has quit [Ping timeout: 244 seconds]
Channel6 has joined #ruby
hfp_work has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
karmatr0n has quit [Client Quit]
cazrin has quit [Client Quit]
econerd4ever has joined #ruby
bklane has quit [Remote host closed the connection]
tkuchiki has joined #ruby
jerius has quit []
davasaurous has quit [Remote host closed the connection]
fabrice31 has joined #ruby
<ReinH> orangerobot: https://pages.github.com/
St1gma has joined #ruby
mmoretti has quit [Quit: Leaving...]
whatasunnyday has joined #ruby
<ReinH> kyfho: virtual machines...
reinaldob has quit [Remote host closed the connection]
baweaver has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
<kyfho> huh?
<whatasunnyday> I'm using the OAuth protocol (password flow) to authenticate my mobile client with a JSON API. I have the option in doorkeeper to authenticate the client credentials from httpbasic auth or parameters. Is there any reason to pick one or the other? I'm not sure if this is a question better suited for #rubyonrails.
pietr0 has quit [Quit: pietr0]
<kyfho> oh you mean get vagrant on this windows bnox
<kyfho> then have vms run chef?
<kyfho> interesting
jack_rabbit has quit [Ping timeout: 245 seconds]
fabrice31 has quit [Ping timeout: 240 seconds]
<kyfho> its amazing how the hours fly by when mi studying computer stuff
marr has quit [Ping timeout: 245 seconds]
<orangerobot> ReinH: yeah someone else had pointed me to that earlier. thanks
Soda has quit [Remote host closed the connection]
chipotle has quit [Quit: cheerio]
Kricir has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
arescorpio has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
metadave has joined #ruby
chipotle has joined #ruby
metadave has quit [Client Quit]
Hobogrammer has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
robustus has quit [Ping timeout: 255 seconds]
it0a has joined #ruby
robustus has joined #ruby
conniemj has quit [Quit: (null)]
ghr has joined #ruby
econerd4ever has quit [Remote host closed the connection]
x1337807x has quit [Ping timeout: 256 seconds]
MartynKeigher has joined #ruby
bklane has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
econerd4ever has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
Kricir has joined #ruby
thumpba has quit [Ping timeout: 256 seconds]
checkit has quit [Ping timeout: 264 seconds]
anaeem1 has quit [Remote host closed the connection]
mary5030 has joined #ruby
havenwood has joined #ruby
cyberarm has quit [Read error: Connection reset by peer]
<bradland> kyfho: i would, unquestionably, use a VM to run chef rather than attempt to get it working under cygwin.
josephndenton has joined #ruby
<bradland> you don’t even need vagrant. just spin up an Ubuntu server VM and SSH in to it using putty
hmsimha has quit [Quit: Leaving]
<ReinH> or run a desktop linux
<bradland> pair that with tmux and you’ve got yourself a portable chef development environment that you can move around as needed.
<kyfho> using what like virtualbox?
<ReinH> and forget you're even in windows at all
<bradland> or that… lol
<ReinH> kyfho: sure
<bradland> yeah, virtualbox is a nice free option
bklane has quit []
jordsmi has quit [Quit: Connection closed for inactivity]
roolo has joined #ruby
<bradland> in my experience, for the various linuxes, the performance optimizations of parallels and vmware aren’t justified for the price
<bradland> espeically with their (Parallels) propensity to release a paid update every damn year
<bradland> i use debian and install from the debian netinst iso so that i get a bare environment and add only what i want
<kyfho> I love to run freebsd 10.1 on the metal
<kyfho> :)
greenbagels has joined #ruby
<kyfho> but dad likes skype and his printer scanner fax so win7 here on the smaller box
<kyfho> my 8g onster ram laptop is 10.1 freebsd
<kyfho> friggin blinding
<bradland> how much RAM in the win7 machine?
<kyfho> 4
<bradland> yikes
<kyfho> shity dual core
<bradland> time to hit up newegg for some more memory
<kyfho> I guess I could nuke the lappy to win7 or ubung2
bitcycle_ has joined #ruby
havenwood has quit [Ping timeout: 244 seconds]
anaeem1_ has joined #ruby
scripore has joined #ruby
<bradland> there might be a virtualbox distribution for freebsd
<bradland> not sure
<bradland> sry, we’re officially waaaay off topic
<kyfho> oow
<kyfho> well i can jsut run chef
<kyfho> on freebsd on metal
<kyfho> ski virtual anything
<bradland> sure
<kyfho> skip
roolo has quit [Ping timeout: 244 seconds]
<kyfho> what the best ruby tutorial?
<kyfho> for someone who knows only bash and tcl
Kricir has quit [Remote host closed the connection]
anaeem1_ has quit [Ping timeout: 264 seconds]
bitcycle_ has quit [Ping timeout: 256 seconds]
econerd4ever has quit [Remote host closed the connection]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
haxr has joined #ruby
econerd4ever has joined #ruby
bradland_ has joined #ruby
econerd4ever has quit [Read error: Connection reset by peer]
econerd4ever has joined #ruby
oleo is now known as Guest95822
oleo__ has joined #ruby
djbkd has quit [Remote host closed the connection]
cpt_yossarian has quit [Quit: And then he took off.]
deric_skibotn has quit [Ping timeout: 255 seconds]
cpt_yossarian has joined #ruby
zorak8 has quit [Ping timeout: 265 seconds]
econerd4ever has quit [Remote host closed the connection]
fryguy9 has quit [Read error: Connection reset by peer]
Takle has quit [Remote host closed the connection]
Tricon has quit [Ping timeout: 255 seconds]
fryguy9 has joined #ruby
econerd4ever has joined #ruby
Akagi201 has joined #ruby
nfk has quit [Quit: yawn]
Guest95822 has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby
devoldmx has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
osvico has joined #ruby
hiyosi has joined #ruby
freerobby has joined #ruby
avahey91 has joined #ruby
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
econerd4ever has quit [Ping timeout: 264 seconds]
ta_ has quit [Ping timeout: 244 seconds]
mrmargolis has joined #ruby
towski_ has quit [Remote host closed the connection]
djbkd has joined #ruby
wallerdev has joined #ruby
Techguy305 has joined #ruby
alkoma has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
claptor has joined #ruby
gsd has joined #ruby
eka has joined #ruby
ta_ has joined #ruby
davasaurous has joined #ruby
studiotate has quit [Quit: Computer has gone to sleep.]
DadoCe has joined #ruby
mary5030 has quit [Remote host closed the connection]
amclain has joined #ruby
hamakn has joined #ruby
mary5030 has joined #ruby
bricker has quit [Ping timeout: 265 seconds]
Kricir has joined #ruby
davedev2_ has joined #ruby
reinaldob has joined #ruby
freerobby has quit [Quit: Leaving.]
davedev24_ has quit [Ping timeout: 265 seconds]
freerobby has joined #ruby
workmad3 has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
davasaurous has quit [Ping timeout: 264 seconds]
DadoCe has quit [Ping timeout: 244 seconds]
mary5030 has quit [Ping timeout: 265 seconds]
crdpink2 has joined #ruby
Caius has quit [Ping timeout: 276 seconds]
crdpink has quit [Ping timeout: 244 seconds]
eka has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
parduse has joined #ruby
reinaldob has quit [Ping timeout: 245 seconds]
Joufflu has quit [Ping timeout: 244 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
<ericwood> are you my dad?
<ericwood> because "only knows bash and tcl" is my dad haha
<ericwood> granted, he won't pick up Ruby, despite my best efforts
Kricir has quit [Remote host closed the connection]
Caius has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
wallerdev has quit [Quit: wallerdev]
Kryptonic has joined #ruby
krz has joined #ruby
eka has joined #ruby
hank_ has joined #ruby
conniemj has joined #ruby
ghr has joined #ruby
Kryptonical has quit [Ping timeout: 244 seconds]
haxr has quit [Read error: Connection reset by peer]
Senjai has quit [Quit: WeeChat 1.0.1]
ta_ has joined #ruby
kyfho has quit [Ping timeout: 246 seconds]
valeriansaliou has joined #ruby
Fusl has quit [Quit: Contact: http://hallowe.lt/]
Cache_Money has joined #ruby
echooo has joined #ruby
ghr has quit [Ping timeout: 245 seconds]
josephndenton has quit [Ping timeout: 256 seconds]
conniemj has quit [Ping timeout: 245 seconds]
anitchrist has joined #ruby
josephndenton has joined #ruby
nanoyak has joined #ruby
Fusl has joined #ruby
rbennacer has joined #ruby
echooo1 has quit [Ping timeout: 245 seconds]
frem has quit [Quit: Connection closed for inactivity]
d10n-work has joined #ruby
ponga has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
fryguy9 has quit [Quit: Leaving.]
valeriansaliou has quit [Ping timeout: 265 seconds]
nanoyak has quit [Read error: Connection reset by peer]
ishikawa91 has joined #ruby
nanoyak has joined #ruby
evanjs has joined #ruby
davasaurous has joined #ruby
wald0 has quit [Quit: Lost terminal]
omosoj has quit [Ping timeout: 264 seconds]
gtrak has quit [Ping timeout: 245 seconds]
philwantsfish1 has quit []
<majeure> My dad doesn't program.
slawrence00 has joined #ruby
bronson has joined #ruby
russt has quit [Quit: russt]
lapidary has quit [Quit: lapidary]
robbyoconnor has quit [Ping timeout: 265 seconds]
_reset has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
chipotle has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
reset has quit [Ping timeout: 244 seconds]
<anitchrist> majeure: you're dad is ole school my great grand pappy even programmed
_reset has quit [Ping timeout: 245 seconds]
orangerobot has quit [Ping timeout: 246 seconds]
<majeure> How nice for you.
<SparkMasterTape> my uncles old school he had thousands of patents filed at intel under his lead
<SparkMasterTape> specialized in diodes
<anitchrist> 0.0
<anitchrist> that is rad
<SparkMasterTape> yeah im very fortunate
<SparkMasterTape> he gives me some stock for christmas and bdays
avrc has joined #ruby
devoldmx has joined #ruby
intyl_ has quit [Read error: Connection reset by peer]
<anitchrist> money is nothing did the knowledge and know how get passed as well?
<SparkMasterTape> to me?
intyl_ has joined #ruby
<SparkMasterTape> or to intel
<anitchrist> ye[
<SparkMasterTape> lol
<anitchrist> you
<SparkMasterTape> Oh , yes I definitely have been told I am smart by many people throughout my life but I don't apply myself
<SparkMasterTape> I suffer from drug addiction
<anitchrist> you admit it, so which?
_thegrid_ has quit [Ping timeout: 246 seconds]
<SparkMasterTape> I think I'm intelligent
<SparkMasterTape> English or literature were my strong points.
towski_ has joined #ruby
<anitchrist> I meant you admitted you're an addict, which is respectful, I was also asking which drug.
<anitchrist> although there isn't anyone that's not an addict... lol
pwnz0r has joined #ruby
<anitchrist> life is addictive, or people would just quit it ;)
studiotate has joined #ruby
devoldmx has quit [Ping timeout: 245 seconds]
<SparkMasterTape> Started with weed, then booze, cigs, mushrooms around 5 times, done coke a 30 times, lsd a couple times, got into oxys in 08' 09' as the wave hit
<SparkMasterTape> Moved to heroin because $40 for a pill isnt easy to maintain on, clean 3 years going on 4 off heroin, smoke weed still daily, got on anti depressants, zoloft and benzo klonopin for anxiety and , depression lol
kaskalu has joined #ruby
ta_ has joined #ruby
<anitchrist> a library of a experience, don't look down on yourself bud
<anitchrist> you were hacking your robot
<SparkMasterTape> tried random research chemicals too as well, like synthetic cannibinoids and analogs of famous ones
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<SparkMasterTape> yeah i need to pick his brain for wisdom
<SparkMasterTape> hes frugal and flat out genius ... but he has a photographic memory hes told my dad
<SparkMasterTape> i never asked him actually hes never told me
<SparkMasterTape> any chemistry, physics, math equation hes got down
<anitchrist> I want to understand how to maintain that type of memory
<SparkMasterTape> memorized, i dont get it
<anitchrist> there has to be a trick
djbkd has quit [Remote host closed the connection]
hrs has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
studiotate has quit [Ping timeout: 265 seconds]
<SparkMasterTape> i think its just repetition
<anitchrist> yeah
<SparkMasterTape> he was taking apart radios n what not at like
<SparkMasterTape> 10 and putting em back together
<SparkMasterTape> cal tech
<SparkMasterTape> pres alumni
Akagi201 has quit [Remote host closed the connection]
<SparkMasterTape> was
<anitchrist> respect
<SparkMasterTape> hes a anomoly
<SparkMasterTape> an*
Akagi201 has joined #ruby
<SparkMasterTape> Hes met steve jobs and bill woz, and bill g
<SparkMasterTape> he was trying to be nice but i could tell he thoght jobs was a douche or a kook
<SparkMasterTape> or both
mrmargolis has quit [Remote host closed the connection]
<SparkMasterTape> woz he loved, bill he barely talked to just was at meetings
kaskalu has left #ruby [#ruby]
<anitchrist> Wozniak is rad
<SparkMasterTape> he is, hes my favorite person in the tech industry
mrmargolis has joined #ruby
<SparkMasterTape> of all time
<anitchrist> not enough attention was paid to him
<SparkMasterTape> from phreaking to computer engineering
<SparkMasterTape> he hated steve at the end
<SparkMasterTape> or who knows when it started
rbennacer has quit [Remote host closed the connection]
<SparkMasterTape> hate may be strong, but no secret he wasn't fond of him
<arrubin> Why care?
<SparkMasterTape> Me?
<arrubin> Yes.
<anitchrist> care is a powerful thing
<SparkMasterTape> It's interesting, and why not care?
<arrubin> Caring what Woz thought of Jobs seems kind of petty.
<SparkMasterTape> Why care that I care?
<SparkMasterTape> Shut your fuckin face
rbennacer has joined #ruby
<anitchrist> lol
<anitchrist> why care about gossip
<SparkMasterTape> dude just comes in all fuckin WHY CAARE
rbennace_ has joined #ruby
<anitchrist> gossip is the weak link and easily manipulatable
<SparkMasterTape> my care levels not high bud, it was a conversation
<arrubin> anitchrist: I do not care about gossip, and wonder why I am being subjected to it here.
<SparkMasterTape> Sorry
<anitchrist> I feel ya arrubin
fandi has quit [Quit: Leaving]
<SparkMasterTape> Here, allow me to stop talking, silence is fun
<SparkMasterTape> as you were gents
<whatasunnyday> Alright, need to name a method. What's the opposite of revoked?
<anitchrist> invoke
<anitchrist> ?
<whatasunnyday> validate_token_???
<SparkMasterTape> yes
<arrubin> whatasunnyday: granted?
<anitchrist> I'm still learning
<whatasunnyday> arrubin, i like it
<SparkMasterTape> literally speaking it would be invoke
<whatasunnyday> arrubin, your contribution will remembered forever in OSS
mrmargolis has quit [Ping timeout: 256 seconds]
<anitchrist> yus I know how to create a hash now... -__-
<anitchrist> pets = Hash.new
<anitchrist> pets["Scar"] = "cat"
<SparkMasterTape> So I am a beginner, should I start Ruby as my 1st?
<SparkMasterTape> Perl or python
<SparkMasterTape> or jump to java
chipotle_ has joined #ruby
<whatasunnyday> SparkMasterTape, what are people using that you can get help from?
<anitchrist> ^
<SparkMasterTape> are you referring to objective c
<SparkMasterTape> and ruby on rails
<anitchrist> does your dad use either of those?
rbennacer has quit [Ping timeout: 244 seconds]
<SparkMasterTape> well im just thinking 'APPS'
<SparkMasterTape> iOS being obj c, and what droid being what java?/
<SparkMasterTape> or maybe they use both :\
chipotle has quit [Ping timeout: 240 seconds]
<whatasunnyday> SparkMasterTape, no, i'm saying, if you have a problem and needed help. who do you ask? what languages do they use?
<anitchrist> ^
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has quit [Ping timeout: 244 seconds]
lemur has joined #ruby
<SparkMasterTape> dude ur confusing the fuck outta me
<whatasunnyday> there's literally a computer science theorem that shows that any language is "turning complete" can do anything that any other "turning complete" language can do
<SparkMasterTape> who do i ask?
<whatasunnyday> drastic over simplification
<whatasunnyday> do you have any friends that program?
<sevenseacat> 'turning complete'? >_>
<anitchrist> not to interject here is there any better freemium training site then codecademy?
<whatasunnyday> sevenseacat, multitasking, bad typo, i am awful
<sevenseacat> :P
<SparkMasterTape> yes , ive taken a few entry level college courses myself, i know html enough to make a page from 1994 and my dad knows cobalt ;P
<bradland_> like Cobalt RaQ?
<whatasunnyday> how about your friends?
<bradland_> or COBOL?
<SparkMasterTape> i used to mess with VB 6 when i was like 13 started getting my foot in the door
<SparkMasterTape> COBOL
<SparkMasterTape> COBALT lol
<SparkMasterTape> old school
<SparkMasterTape> he hires coders
<SparkMasterTape> pakis right now for web dev
<anitchrist> I have no friends -__-
<SparkMasterTape> pleased with his service
<SparkMasterTape> s*
nanoyak has quit [Read error: Connection reset by peer]
<whatasunnyday> if you don't know anyone who programs, i would just say learn javascript. it isn't that javascript is better or worse than ruby, java, python, perl, etc but it's nice to use the same language on the client and the server.
nanoyak has joined #ruby
<bradland_> i say learn ruby
<whatasunnyday> it will make learning easier for you
<bradland_> because ruby is awesome, and i like it
<SparkMasterTape> I have taken JS in college
<SparkMasterTape> forgot it all
<whatasunnyday> i also love ruby
<SparkMasterTape> granted 1/2 a semester, dont practice a language spoken or programmed ya lose it
<SparkMasterTape> or chunks
<SparkMasterTape> then i went straight into Java
<SparkMasterTape> got my ass handed to me
sevenseacat has left #ruby [#ruby]
<SparkMasterTape> understimated the pace and time needed
<Dolphi> I love ruby as well. :)
<SparkMasterTape> outside of the class
<Dolphi> My books came in a few hours ago so I can start some serious learning :D
<SparkMasterTape> doing the HW isnt enough, you have to do the HW and then take the syntax you learned and just toy with it
<anitchrist> Dolphi: nice
<SparkMasterTape> at least that was my lesson i took away from the D i got
<SparkMasterTape> the only thing i remember is {}
<SparkMasterTape> }{ ?
TommyHilfigger has joined #ruby
<Dolphi> anitchrist, Thanks man
<anitchrist> np
<SparkMasterTape> those symbols. was during a time of drug abuse though at a party oriented JC/University town
<Dolphi> So, how was everyone's day?
<anitchrist> had an interview today...
<Dolphi> anitchrist, And you aced it, right??
<SparkMasterTape> any of you program in orange county?
<anitchrist> yup
<Dolphi> :D
<Dolphi> anitchrist, Congratulations man!
<anitchrist> problem is scheduling though
<Dolphi> SparkMasterTape, No sir.
<anitchrist> being a full time student -_-
<anitchrist> I'm in LA
<SparkMasterTape> nice nice, my buddys up there
<Dolphi> anitchrist, Yikes. You've got to do what you've got to do though man.
<anitchrist> Dolphi, you got that right
<Dolphi> I'm stuck at McDonald's while I self learn programming.
<SparkMasterTape> he somehow found his way into music production with the help of a friend who graduated from USC music business
<TommyHilfigger> is ruby relevant in the post 2014 javascript apocalypse?
<anitchrist> relevancy... lol
<Dolphi> I want to learn web development so that I can quit my job at McDonalds. I hate it..
<TommyHilfigger> Dolphi: how old are you?
redline_ has joined #ruby
<SparkMasterTape> Just wait for a whistle blow opportunity
<Dolphi> I'm worried that I won't be able to get a job in programming without a degree though, and I have yet to get into college.
<SparkMasterTape> invest in spy cams and mics
<Dolphi> I'm 20
<SparkMasterTape> ur young enough to do anyting
<anitchrist> Delphi, start freelancing
poguez has quit [Quit: Connection closed for inactivity]
<anitchrist> get people around you that need you
<anitchrist> or rather find them
<anitchrist> but don't be a salesman -__-
<anitchrist> fuck those guys
redline_ has quit [Remote host closed the connection]
<SparkMasterTape> Is there any legit online comp sci trade school
<SparkMasterTape> I guess it depends 'legit' as in if units transfer to , for me UC's and/or CSUs
<Dolphi> Freelance? As in, I walk up to new businesses and say, "Here is some of my previous work. Let me make a website for your business."?
<SparkMasterTape> Freenlance means you work for yourself
<SparkMasterTape> free*
havenwood has joined #ruby
<SparkMasterTape> you find your jobs your responsible for your salary, you seek clients, hand out business cards ask for referals or use websites
<Dolphi> Yes, but I mean how would I find clients? I would just advertise myself?
<anitchrist> yeah, you're young, the kids your around probably wouldn't mind some help
<anitchrist> offer a couple your help for free
<bradland_> Dolphi: i don’t want to fill your head with starry-eyed ideas, but i don’t have a degree and i’ve done fine in the IT industry.
<SparkMasterTape> Ill show you a linki
<anitchrist> then use that experience in a portfolio for others
<Dolphi> bradland_, That is all I need to know, thank you. :)
ta_ has joined #ruby
<SparkMasterTape> yeah if you can prove you know how to program
<bradland_> trying to do freelance development before you know anything isn’t the best route, IMO
<SparkMasterTape> or ive thought this
<bradland_> if you’re good with computers, start simple
<SparkMasterTape> if you can speak the language you can speak the language
rbennace_ has quit [Remote host closed the connection]
<bradland_> i founded my company on savings from money i earned fixing computers
<Dolphi> Good advice everyone, thanks.
<SparkMasterTape> wait
<SparkMasterTape> i have a link
<bradland_> you’d be amazed what people will pay for someone who is polite, shows up on time, and is competent
<SparkMasterTape> https://www.elance.com/
<SparkMasterTape> and
<bradland_> take your time learning to program and don’t put yourself in a bad position by getting in over your head early
<SparkMasterTape> freelancer.com
<Dolphi> What are the REQUIREMENTS to web dev with ruby? I plan on using ruby for that, which is one of the reasons why I decided to learn this language.
ghr has joined #ruby
<Dolphi> (for rails)
rbennacer has joined #ruby
freerobby has quit [Quit: Leaving.]
<Dolphi> bradland_, Understood. I'll definitely take it slow.
<bradland_> ruby is what you’ll use to build the “backend”
<SparkMasterTape> Learn some XML
<bradland_> you’ll need to know HTML, CSS, and Javascript as well
<SparkMasterTape> Ajax
<Dolphi> The UI is all JS, JQ, and CSS, right?
<bradland_> and do not bother learning XML
<anitchrist> ok you guys are going in the bg, I gotta silence the distractions :P use my handle if ya feel the need for my opinion or what
<Dolphi> oh yeah, can't forget HTML lol
<SparkMasterTape> PHP
* anitchrist goes back to training
<SparkMasterTape> SQL
larissa has quit [Quit: Leaving]
<Dolphi> SparkMasterTape, Nooooo.
<SparkMasterTape> is sql on its way out
<SparkMasterTape> and php
<bradland_> no
<bradland_> SQL isn’t going anywhere
<bradland_> nor is PHP
<SparkMasterTape> PHP always stood out as vulnerable to me
<SparkMasterTape> but then again that was aroudn 2002-2007
<bradland_> candidly, i’m not sure you’re in a position to make such an assessment
havenwood has quit [Ping timeout: 256 seconds]
<Dolphi> My friend recommended me PHP and SQL as well, but it looks so ugly to me. I did some research and PHP is the most common web language, meaning that there are a wide selection of jobs.
<Dolphi> However, I don't really want to learn that if I don't have to.
hank_ has quit [Ping timeout: 245 seconds]
<Dolphi> At least not off the bat.
<SparkMasterTape> Well, although I do not program, I've been using PHP since I was 12
<SparkMasterTape> not programming it
ta_ has quit [Ping timeout: 244 seconds]
<SparkMasterTape> And the bugfixes I've noticd and severe exploits with phpBB and PHP itself
<TommyHilfigger> i never learned PHP and i'm still here!
<SparkMasterTape> obviously phpBB is a product of php
mary5030 has joined #ruby
<bradland_> Dolphi: Ruby is a great starting point for learning to program. You should get your feet under you.
ghr has quit [Ping timeout: 244 seconds]
<Dolphi> bradland_, What would you suggest? After becoming familiar with Ruby and making a few projects with it, what is the next step you would recommend to someone who wants to get into web dev in the future?
<bradland_> You’ll find that once you learn to program in one language, it becomes much, much easier to pivot to the next.
<bradland_> The key thing is to keep doing it.
<bradland_> I’ve been at this for 14 years now, and I still learn new things daily.
<Dolphi> bradland_, I don't need to think too far ahead. For now I'm focusing on Ruby. I just want to know what the next step would be.
ajaiswal has joined #ruby
<bradland_> Build something you find useful.
JoshGlzBrk has joined #ruby
<bradland_> Doesn’t matter what it is.
evanjs has quit [Remote host closed the connection]
<SparkMasterTape> it seems i am referring to file inclusion vulnerabilities bradland_
<SparkMasterTape> with PHP
<TommyHilfigger> make a dating website.
djbkd has joined #ruby
<SparkMasterTape> im sure most of the nasties are gone , but i remember sql injection and XSS wrecking php based sites
<bradland_> SparkMasterTape: nothing you’ve mentioned is a PHP design flaw
<bradland_> they’re just examples of bad PHP websites
<bradland_> it’s also very off-topic for this channel
maletor has joined #ruby
maletor has quit [Changing host]
maletor has joined #ruby
<SparkMasterTape> ok
<SparkMasterTape> let me post something
<SparkMasterTape> tell me if its bs
<SparkMasterTape> In PHP the main cause is due to the use of unvalidated external variables such as $_GET, $_POST, $_COOKIE with a filesystem function. Most notable are the include and require statements. Most of the vulnerabilities can be attributed to novice programmers not being familiar with all of the capabilities of the PHP programming language. The PHP language has an allow_url_fopen directive which, if enabled, allows filesystem
<SparkMasterTape> functions to use a URL to retrieve data from remote locations.[1] An attacker will alter a variable that is passed to one of these functions to cause it to include malicious code from a remote resource. To mitigate this vulnerability all user input needs to be validated before being used.[2][3]
<bradland_> Dolphi: because you’re just getting started with programming in general, i wouldn’t jump straight in to building a web app.
<SparkMasterTape> ah
<SparkMasterTape> novice programmers
freerobby has joined #ruby
<Dolphi> Yeah, I would probably leave all kinds of security gaps. I don't plan on doing it yet, I was just curious about what the next step would be.
<SparkMasterTape> alright ill brb guys
<Dolphi> I think it is time to crack open Learn to Program.
<bradland_> this statement is true of literally every programming project ever: “To mitigate this vulnerability all user input needs to be validated before being used”
<Dolphi> It looks like a very short read. I can probably finish it tonight.
<bradland_> Dolphi: it’s more a matter of managing your learning curve
<bradland_> you’re going to be absorbing a lot of new information
<SparkMasterTape> well
<bradland_> if you build a web app, you need to know HTML, CSS, javascript, and possibly some SQL
<SparkMasterTape> php got a special shout out
<bradland_> SparkMasterTape: i really have no interest in PHP discussion
<SparkMasterTape> the only language i see to get a specific nod
<bradland_> you should maybe check out #security or #php
<Dolphi> bradland_, Well it is a good thing that you'll be right here to help me tackle my projects, right? ^_^
<bradland_> :)
<SparkMasterTape> fuck off
<SparkMasterTape> faggot
<SparkMasterTape> passive agressiveness is a pet peeve
<bradland_> there’s nothing passive aggressive about what i’ve said
<Dolphi> SparkMasterTape, Who are you referring to?
<bradland_> i’m being clear with you
<SparkMasterTape> you think i am dont recognize theres a channel for those languages
Livadi has quit [Ping timeout: 276 seconds]
<bradland_> i’m stating clearly that A) this is not a discussion i’m interested in, and B) this is #ruby, and you’ve been OT since you got here
<SparkMasterTape> we were having a discussion, im sorry
djbkd has quit [Ping timeout: 264 seconds]
<SparkMasterTape> a) as the last thing you said
<SparkMasterTape> b) its a passive aggressive way to tell someone to go tothose channels and end it with a :)
<bradland_> i was smiling at Dolphi
<Dolphi> SparkMasterTape, Relax, don't take his opinion too personally. We are all friends with common interests here.
<bradland_> to indicate that i would be happy to help him
<SparkMasterTape> I was asking honest questions, I'm simmered.
<TommyHilfigger> press 1 if you are a girl.
<Dolphi> 1
<Dolphi> jk
<TommyHilfigger> all the girls on are facebook. none ever in irc.
<Dolphi> But if I was a girl, I'd be gorgeous. ;)
jenrzzz has joined #ruby
<SparkMasterTape> guys, theres #eharmony
<SparkMasterTape> please, this is for Ruby
mary5030 has quit [Remote host closed the connection]
<Dolphi> Woah! There is a friends list on here? :D
em0ral has joined #ruby
<Dolphi> Time to start forming my little network.
mary5030 has joined #ruby
tokik has joined #ruby
TommyHilfigger has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
radic has quit [Ping timeout: 245 seconds]
radic has joined #ruby
consti has joined #ruby
consti has quit [Max SendQ exceeded]
whomp has quit [Ping timeout: 264 seconds]
mary5030 has quit [Ping timeout: 244 seconds]
<Dolphi> I'm going to work my way through Learn to Program, then the Pickaxe book, and finally I'll get through these two. By then I should be on the road to making some simple sites, right?
<Dolphi> I already own all of these books.
<bradland_> Dolphi: I’m pretty useless when it comes to book recommendations because it’s been so long since I started.
<bradland_> Oh, cool.
<bradland_> Yeah, you’re on your way then!
consti has joined #ruby
consti has quit [Max SendQ exceeded]
<Dolphi> Now I suppose it is strictly a matter of determination and effort.
<anitchrist> don't forget tiny chat some chicas are on there as well
<Dolphi> I have no excuses with all of the resources in front of me.
adriancb has quit [Remote host closed the connection]
mattmcclure has quit [Quit: Connection closed for inactivity]
adriancb has joined #ruby
Tricon has joined #ruby
x1337807x has joined #ruby
oo_ has quit [Remote host closed the connection]
braincrash has quit [Quit: bye bye]
tus has quit [Ping timeout: 244 seconds]
MartynKeigher has quit [Ping timeout: 255 seconds]
FullTiltProspect has joined #ruby
FullTiltProspect has left #ruby [#ruby]
silkfox has quit [Ping timeout: 265 seconds]
adriancb has quit [Ping timeout: 245 seconds]
BlackGea_ has joined #ruby
BlackGea_ has quit [Client Quit]
x1337807x has quit [Client Quit]
osvico has quit [Ping timeout: 245 seconds]
silkfox has joined #ruby
braincrash has joined #ruby
MartynKeigher has joined #ruby
tus has joined #ruby
BenjiWiebe has joined #ruby
banister has joined #ruby
rubyguy has joined #ruby
<BenjiWiebe> Is there a way with Ruby's regexes to use the OR '|' operator without capturing?
silkfox has quit [Ping timeout: 244 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
Tricon has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
<bradland_> BenjiWiebe: you can use a non-capture group
<bradland_> looks like (?:\d)
<bradland_> just an example
ta_ has joined #ruby
omosoj has joined #ruby
arup_r has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
osvico has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
greenbagels has quit [Quit: Leaving]
arescorpio has quit [Excess Flood]
rbennacer has quit [Remote host closed the connection]
oleo__ has quit [Quit: Verlassend]
skj3gg has joined #ruby
oleo has joined #ruby
conniemj has joined #ruby
ddd has joined #ruby
<anitchrist> anyone know of a way to set different status' for individual lists in skype
kapil__ has joined #ruby
<anitchrist> for example, list A sees me as away, list B sees me as invisible and list C sees me as available.
valeriansaliou has joined #ruby
<anitchrist> er I should see if there is a Skype channel
mosez has quit [Ping timeout: 256 seconds]
mosez has joined #ruby
phutchins has joined #ruby
conniemj has quit [Ping timeout: 244 seconds]
Tricon has joined #ruby
phantomtiger has joined #ruby
Tricon_ has joined #ruby
arup_r has quit [Quit: Leaving.]
avahey91 has quit [Quit: Connection closed for inactivity]
valeriansaliou has quit [Ping timeout: 265 seconds]
jefus_ has joined #ruby
Sawbones_ has joined #ruby
bradland_ has quit [Quit: bradland_]
davedev2_ has quit []
ta_ has joined #ruby
rbennacer has joined #ruby
russt has joined #ruby
Eiam_ has joined #ruby
iamninja has joined #ruby
Eiam_ has quit [Read error: Connection reset by peer]
jefus has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
Eiam_ has joined #ruby
Dolphi has quit [Ping timeout: 255 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbennacer has quit [Ping timeout: 265 seconds]
ta_ has quit [Ping timeout: 265 seconds]
<omosoj> i don't understand the sort method... (1..10).sort {|a,b| b <=> a } <-wtf is this
ghr has quit [Ping timeout: 245 seconds]
JBreit has left #ruby ["Leaving"]
bronson has joined #ruby
davasaurous has quit [Remote host closed the connection]
Akagi201 has quit [Remote host closed the connection]
davasaurous has joined #ruby
sevvie has quit [Ping timeout: 255 seconds]
<omosoj> does it iterate through the array? how are a and b compared?
bronson has quit [Ping timeout: 244 seconds]
josephndenton has quit [Ping timeout: 265 seconds]
tenseiten has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
davasaurous has quit [Remote host closed the connection]
maletor has quit [Quit: Computer has gone to sleep.]
john_____ has joined #ruby
john_____ has quit [Client Quit]
devoldmx has joined #ruby
<gr33n7007h> >> [10<=>20, 10<=>10, 20<=>10]
<eval-in__> gr33n7007h => [-1, 0, 1] (https://eval.in/240030)
sevvie has joined #ruby
<gr33n7007h> -1 = lt, 0 = eq, 1 = gt
<omosoj> [1, 2, 3, 4].sort {|x, y| puts "#{x}, #{y}"; y <=> x } <- wtf
anaeem1 has joined #ruby
<omosoj> why does it work in that order? what affect does the -1/0/1 have on the sorting?
<lampd1> >> [1, 2, 3, 4].sort {|x, y| y <=> x }
<eval-in__> lampd1 => [4, 3, 2, 1] (https://eval.in/240034)
apurcell has joined #ruby
vin` has joined #ruby
<lampd1> >> [1, 2, 3, 4].sort {|x, y| x <=> y }
<eval-in__> lampd1 => [1, 2, 3, 4] (https://eval.in/240035)
fabrice31 has joined #ruby
devoldmx has quit [Ping timeout: 240 seconds]
camilasan has quit [Remote host closed the connection]
<lampd1> basically just setting ascending or descending sort order omosoj
JBreit has joined #ruby
camilasan has joined #ruby
SparkMasterTape has quit [Quit: Leaving]
anaeem1 has quit [Ping timeout: 256 seconds]
<gr33n7007h> >> [ [1<=>3,3<=>4,2<=>3,2<=>1], [3<=>1,4<=>3,3<=>2,1<=>2] ]
<eval-in__> gr33n7007h => [[-1, -1, -1, 1], [1, 1, 1, -1]] (https://eval.in/240036)
davasaurous has joined #ruby
apurcell has quit [Ping timeout: 264 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
mary5030 has joined #ruby
<gr33n7007h> -1, -1, -1, 1 == [1,2,3,4] while 1,1,1,-1 == [4,3,2,1]
Tricon has quit [Quit: leaving]
Tricon_ has quit [Quit: leaving]
Tricon has joined #ruby
<gr33n7007h> I've got a shit way of explaining things :(
silkfox has joined #ruby
mrmargolis has joined #ruby
rsty has joined #ruby
ta_ has joined #ruby
<rsty> can unless not handle || boolean?
<gr33n7007h> rsty, yes
<gr33n7007h> I mean it can handle
<rsty> hehe
<rsty> i get 'no implicit conversion of nil into String (TypeError)'
TripTastic has joined #ruby
steveElsewhere has joined #ruby
<gr33n7007h> that means nothing without code
mary5030 has quit [Ping timeout: 265 seconds]
<rsty> unless ARGV.length == 3|| ARGV[0] == "stop" ||ARGV[0]== "status"
<rsty> sorry
<steveElsewhere> anyone ever see 'incompatible marshal file format (can't be read) format version 4.8 required; 60.63 given' from bundle? I'm using a private repo on s3 over http, works with gem install but bundle fails
silkfox has quit [Ping timeout: 265 seconds]
mrmargolis has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 244 seconds]
JBreit has quit [Ping timeout: 255 seconds]
<omosoj> lampd1, why not do .sort.reverse instead?
<rsty> gr33n7007h, i found my error :[] sorry
<lampd1> omosoj: i think you may be able to feed it more complex comparison operators/blocks but am no 100% on that
<omosoj> is there a wikipedia for this spaceship comparison voodoo?
steveElsewhere has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lampd1> am a noob
<rsty> i was defining ARGV[2] downstream, so the boolean was correct but script failed because ARGV[2] didn't exist :P
<gr33n7007h> silly rsty :)
<BenjiWiebe> bradland: Thanks! That worked!
<omosoj> gr33nn7007h, how does this work: -1, -1, -1, 1 == [1,2,3,4] ?
BenjiWiebe has quit [Quit: Konversation terminated!]
Morkel has joined #ruby
<arrubin> rsty: Do you check ARGV[0] against more strings than what you pasted there?
pwnz0r has quit [Remote host closed the connection]
<rsty> arrubin, no just stop and status
<arrubin> rsty: Okay.
<rsty> but ARGV[2] is my actual arg, since i am using daemons
Techguy305 has quit [Remote host closed the connection]
<arrubin> rsty: Do you check that against several strings?
<rsty> just "stop" and "status"
<rsty> or do you mean ARGV[2] ?
<arrubin> I was going to mention a technique that can work better in those situations, but two strings makes it questionable.
<arrubin> Might make the code clearer regardless.
<rsty> whats that?
<arrubin> valid_commands = %w[stop status]; valid_commands.include? ARGV[0]
<epitron> omosoj: i'm not sure what that -1, 1 business is about... but you get the idea of <=>, right?
<arrubin> valid_commands might be useful elsewhere in the code too.
<rsty> arrubin, i like that.. thanks!
* rsty is only 2 days into ruby, hehe
godd2-away is now known as godd2
aagdbl has joined #ruby
<arrubin> rsty: Be sure to use parentheses around the argument to #include? if you use that with the logical operators (e.g. ||).
<rsty> kk, thanks
<omosoj> epitron, yeah i understand that, but i don't understand how it relates to the act of sorting
<lampd1> omosoj: if you want to know "how" look @ the source ;)
phantomtiger has quit [Quit: phantomtiger]
<epitron> omosoj: that's kinda its only purpose :)
<rsty> arrubin, seperate newbie question... can i get output from Socket::gethostname that isn't FQDN?
<rsty> just hostname is fine
blahwoop has joined #ruby
<epitron> (almost) all sorting algorithms only need one operation to function: <=>
<arrubin> rsty: I do not know off the top of my head.
<rsty> kk
echooo1 has joined #ruby
<epitron> -1 if a < b, 0 if a == b, 1 if a > b
<omosoj> lampd1, whoa whoa whoa let's not get carried away :)
echooo has quit [Ping timeout: 264 seconds]
<epitron> as long as you implement that, it can call it however it likes to do the sort
<gr33n7007h> >> [ [?a < ?b, ?a <=> ?b], [?a == ?a, ?a <=> ?a], [?b > ?a, ?b <=> ?a] ]
<eval-in__> gr33n7007h => [[true, -1], [true, 0], [true, 1]] (https://eval.in/240041)
<omosoj> epitron, interesting
<lampd1> there's kind of a ton of source behind it
<arrubin> rsty: require 'socket'; Socket.gethostname
<arrubin> Err.
<omosoj> why does it compare 1 and 3 first in [1, 2, 3, 4] ?
<arrubin> Never mind.
<arrubin> I am too tired to be helpful.
sevvie has quit [Read error: Connection reset by peer]
<epitron> omosoj: you could also use <=> to implement <, and ==, and >, which is how ruby's "Comparable" mixin works. if you "include Comparable" in any object that contains a "<=>" method, then you get all those other operations for free
<lampd1> ^ aka my more complex comparison comment
<lampd1> err hence
icebourg has joined #ruby
<lampd1> am tired 2
icebourg has quit [Max SendQ exceeded]
devoldmx has joined #ruby
<epitron> omosoj: the order in which it compares the elements depends on the sorting algorithm. maybe it's quicksort!
icebourg has joined #ruby
<epitron> >> [1,2,3,4].sort { |a,b| print "#{a}<=>#{b} "; a <=> b }; puts
<eval-in__> epitron => 1<=>3 3<=>4 2<=>3 1<=>2 ... (https://eval.in/240042)
<omosoj> hm, interesting. whenever i tried to learn algorithms i said "who cares about sorting?" and stopped reading. lol
<blahwoop> if i have an array of "team" objects that has name attributes. can i find the an element using include?(name)
<epitron> omosoj: sorting is one of those little problems that are simple enough to mathematically analyze :)
djbkd has joined #ruby
sevvie has joined #ruby
<epitron> (for students)
<epitron> >> [1,3,2,4].sort { |a,b| print "#{a}<=>#{b} "; a <=> b }; puts
<eval-in__> epitron => 1<=>2 2<=>4 3<=>2 3<=>4 ... (https://eval.in/240043)
skj3gg has quit [Quit: ZZZzzz…]
<omosoj> is the sorting problem just a test case to practice algorithm analysis on? is that why it's used?
<epitron> interesting.. the pattern seems to be static
<epitron> omosoj: no, it is a useful thing. every program needs to sort things
<epitron> a lot of sorting algorithm techniques are also applicable to searching
Tricon has quit [Quit: leaving]
<epitron> which is all the rage these days :)
devoldmx_ has joined #ruby
<omosoj> i see
devoldmx has quit [Ping timeout: 264 seconds]
<lampd1> >> [1,3,2,4,5].sort { |a,b| print "#{a}<=>#{b} "; a <=> b }; puts
<eval-in__> lampd1 => 1<=>2 2<=>5 3<=>2 4<=>2 3<=>4 4<=>5 ... (https://eval.in/240044)
<lampd1> >> [1,3,2,4,5,6].sort { |a,b| print "#{a}<=>#{b} "; a <=> b }; puts
<eval-in__> lampd1 => 1<=>4 4<=>6 3<=>4 2<=>4 5<=>4 5<=>6 1<=>3 3<=>2 1<=>2 ... (https://eval.in/240045)
Sawbones_ has quit [Remote host closed the connection]
ddd has quit [Quit: setting up Go vars]
Channel6 has quit [Quit: Leaving]
scripore has quit [Quit: This computer has gone to sleep]
Sawbones_ has joined #ruby
tzero has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 245 seconds]
<epitron> it lets you sort things reallllly fast
<epitron> it lets you compare in parallel
kanhaiya has joined #ruby
<lampd1> handy-dandy
tzero has joined #ruby
elaptics`away is now known as elaptics
tus has quit []
<kanhaiya> can anyone suggest me best framework for ruby to build desktop/standalone application
<epitron> jruby? :)
<omosoj> epitron, cool, i need to read intro to algorithms too. it's just sitting here
<epitron> omosoj: are you doing it for school?
<godd2> omosoj how useful would a dictionary be if the words weren't in alphabetical order :P
<omosoj> no, i'm a relatively new developer, but i want to learn the fundamentals (didn't study CS in school)
<godd2> There's a complete introductory course to algorithms from MIT
<epitron> omosoj: ah, i see
<epitron> i personally find academic treatments disorienting sometimes
<kanhaiya> ??
<epitron> they go too deep too quickly
<godd2> epitron only when they use a depth first search
<epitron> i like learning interesting little bits, then stitching them toegther into a coherent framework
<epitron> godd2: haha
<omosoj> godd2, thanks. there's another intersting course that follows intro to algorithms too. i think it's by the author of the book but not sure
iamninja has quit [Quit: ZZZzzz…]
gsd has quit [Ping timeout: 245 seconds]
<epitron> omosoj: you might like this -- http://blog.notdot.net/tag/damn-cool-algorithms
<godd2> omosoj in that course, you can ignore all the analysis about time complexity and still get a good grip of alogritms
<omosoj> godd2, k. really need to do this
<omosoj> epitron, yeah i get disoriented too, heh. what i usually do is bite off something, mull it over for a while then go back.
MartynKeigher has quit [Ping timeout: 264 seconds]
<epitron> omosoj: i try to find alternative resources that aren't academic lectures :)
<godd2> kanhaiya there is a gem that can package standalone apps into .exe files. It's a gem called ocra
ghr has joined #ruby
<omosoj> epitron, yeah, me too, like irc :) :)
<kanhaiya> that is for windows
<kanhaiya> godd2 i am working on ubuntu
<godd2> kanhaiya I know. It's a starting point. I'm assuming you'll want to distribute to more than just linux?
<godd2> kanhaiya what are you making standalone apps for?>
<epitron> omosoj: if you're into CS, a great way to learn stuff is by gettting lost in http://c2.com/cgi/wiki?PeopleProjectsAndPatterns
<kanhaiya> godd2 a log aggregator
<epitron> c2 is the first wiki on ther internet
<epitron> the "portland pattern repository"
Tricon has joined #ruby
<epitron> it's very old, and full of fascinating CS stuff
<godd2> kanhaiya and you'll be running this client-side?
<kanhaiya> godd2 yes
<omosoj> epitron, wow, this looks really interesting
<epitron> omosoj: it's like an iceberg. the thing is gigantic :)
conniemj has joined #ruby
<kanhaiya> godd2 i want it to be a simple standalone app for ubuntu
<epitron> omosoj: it reminds me of tvtropes' wiki ...
skj3gg has joined #ruby
<godd2> kanhaiya and the client computers can't have ruby installed on them?
chrishough has joined #ruby
josephndenton has joined #ruby
<kanhaiya> godd2 yes they will have
anitchrist has quit [Quit: Leaving]
ghr has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
<godd2> then you can just distribute it as a gem. and they can run the code with ruby through the gem?
<omosoj> epitron, LOL wow this is awesome. why haven't i heard about these before?
sargas has joined #ruby
<epitron> omosoj: if it was popular, it would be full of crap :)
sargas has quit [Changing host]
sargas has joined #ruby
<omosoj> true, lol
<kanhaiya> godd2 then i should make it as a gem
<omosoj> epitron, do you happen to know of any big wikis that have stuff on home automation?
<epitron> no, sorry!
<godd2> kanhaiya I mean, as long as the other computers will always have ruby installed, and as long as you're okay with the source code being readable, then that would seem like a possible solution
<epitron> sounds like a good idea though
zorak8 has joined #ruby
lxsameer has joined #ruby
<omosoj> i need to collect these good sites :)
<kanhaiya> godd2 First i should build it by rails framework and then convert into gem..??
conniemj has quit [Ping timeout: 256 seconds]
<godd2> kanhaiya Rails is to make websites
<epitron> you don't want to turn a rails project into a gem, normally
<epitron> that's frowned upon
<epitron> rails is big and heavy and dirty, and gems are supposed to be shiny and light
osvico has quit [Ping timeout: 245 seconds]
<kanhaiya> godd2 if the cleint didn't had ruby installed. then what's the alternative
<godd2> kanhaiya have a different client
<godd2> I'm just kidding
josephndenton has quit [Ping timeout: 244 seconds]
sigurding has joined #ruby
<kanhaiya> godd2 i need a framework for GUI development
<godd2> kanhaiya http://shoesrb.com/
<kanhaiya> godd2 can i make desktop app using rails framework
<godd2> Disclaimer: I've never learned/used Shoes but I hear people mention it all the time
<godd2> kanhaiya not really, no. Rails is to make a website so you can have a database and people can log in and stuff
<godd2> kanhaiya its a different solution for a different problem
julieeharshaw has quit [Ping timeout: 245 seconds]
<blahwoop> what's the best way to turn a string like this "Eagles 10 Cowboys 14" into [ "Eagles" => 10, "Cowboys" => 14 ]?
Lucky__ has joined #ruby
<blahwoop> what's the best way to turn a string like this "Eagles 10 Cowboys 14" into [ {"Eagles" => 10}, {"Cowboys" => 14} ]?
<kanhaiya> godd2 can i include other gems to while using shoe toolkit ....for example gem for filtering
<godd2> blahwoop do you mean { "Eagles" => 10, "Cowboys" => 14 } ?
roolo has joined #ruby
oleo has quit [Quit: Verlassend]
aagdbl has quit [Quit: This computer has gone to sleep]
<kanhaiya> godd2 yes
<godd2> kanhaiya of course! including a gem is just including some ruby code
<kanhaiya> k
<godd2> >> str = "Eagles 10 Cowboys 14"; Hash[*(str.split)]
<eval-in__> godd2 => {"Eagles"=>"10", "Cowboys"=>"14"} (https://eval.in/240046)
<kanhaiya> godd2 thanks
aagdbl has joined #ruby
julieeharshaw has joined #ruby
<godd2> ooh, I got a silver badge on stackoverflow
<shevy> damn it
<shevy> did you sleep with the manager?
<shevy> somehow I cant find easy questions to answer on SO :(
<godd2> let's just say... there wasn't a lot of sleeping involved
<shevy> and on IRC I don't get any upvotes :(((
<godd2> shevy I got it for visiting the site at least once a day for 30 consecutive days
<omosoj> is there some convention against doing this: if defined?(x) && x == 2 ? if so, is there another way to accomplish this?
<godd2> I still have no points
<omosoj> my tests pass without checking to see if it's defined. not sure if it's necessary
<godd2> omosoj x ||= 2
sevenseacat has joined #ruby
<godd2> oh wait no
<godd2> why are you checking if it's defined?
<shevy> godd2 oh cool
<omosoj> godd2, because i checked in pry and if it's not defined i get an error in the conditional
blahwoop has quit [Remote host closed the connection]
<omosoj> if x == 2, if x isn't defined... is that a problem? is it false?
roolo has quit [Ping timeout: 265 seconds]
<omosoj> >> asjlkjsfd == 3
<eval-in__> omosoj => undefined local variable or method `asjlkjsfd' for main:Object (NameError) ... (https://eval.in/240047)
<godd2> hmm.
<godd2> >> !x.nil? && x == 2
<eval-in__> godd2 => undefined local variable or method `x' for main:Object (NameError) ... (https://eval.in/240048)
<chipotle_> hello
<chipotle_> anyone here use atom for ruby coding?
<godd2> ooooh instance vars are nil by default
<chipotle_> or do you prefer sublime text?
emmesswhy has quit [Quit: Leaving]
<omosoj> what i'm trying to do (in rails) is to do a conditional depending on whether a parameter has been passed in
<sevenseacat> i like sublime text.
<godd2> omosoj passed in where?
<omosoj> i just switched to sublime text
<chipotle_> i've been using ST3 but i'm curious about atom
<chipotle_> from
<chipotle_> >
<chipotle_> ?
<sevenseacat> i have no interest in atom
<chipotle_> how come?
<chipotle_> it's a clone, yet slower, right?
<omosoj> godd2, are you familiar with rails? basically if a browser passes in a query string parameter, it's accessible in a class in rails by params[:query_paramter]
<sevenseacat> web technologies are shaky enough in the browser
<sevenseacat> i dont want them in my editor too
<chipotle_> heh, good point
<chipotle_> brackets.io is pretty nice too, for front end dev
<chipotle_> but i've never done that
<chipotle_> although i do want to learn css/html and js
<chipotle_> so maybe i should use it when working on those techs?
<godd2> omosoj I am familiar with rails, I'm wondering if you're in a controller or a view
<shevy> sevenseacat if you are not interested in atoms, are you at least interested in mice?
<omosoj> controller
<sevenseacat> that being said, at least atom isnt osx-only anymore
<godd2> omosoj and x is something like params[:x] ?
luriv has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
bluOxigen has joined #ruby
<godd2> omosoj can I private message you? I don't want to do railsy stuff here
apurcell has joined #ruby
workmad3 has joined #ruby
<omosoj> godd2, yes & yes
<omosoj> we can go to rubyonrails too
MasterPiece has joined #ruby
nanoyak has joined #ruby
byprdct has joined #ruby
n008f4g_ has joined #ruby
<epitron> kanhaiya: if you want to make a GUI in a scripting language, you might be better going with python
<epitron> the GTK interface for it is more maintained and used
<epitron> GUIs are generally a lot of work though
<epitron> nobody really does that in scripting languages, so the tools are prett ybad
apurcell has quit [Ping timeout: 255 seconds]
<epitron> if you want a really simple (and ugly) UI, you can use Ruby's Tk bindings (they come with it)
<epitron> and as i said earlier, jruby might be a good choice
<epitron> although, jruby is heavy. scala would be lighter
<epitron> to be honest, making GUIs sucks
<epitron> :)
kamilc__ has joined #ruby
<epitron> the options range from bad to nightmarish
workmad3 has quit [Ping timeout: 256 seconds]
kanhaiya has quit [Quit: Page closed]
<epitron> i found Qt to be decent.. but you have to learn C++
davasaurous has quit [Remote host closed the connection]
<epitron> hanmac -- were you working on the ruby wx bindings?
SilkFox_ has quit [Ping timeout: 245 seconds]
<Tricon> :q
Tricon has quit [Quit: leaving]
Fretta_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Fretta has joined #ruby
<shevy> epitron yeah rxw or rwx I think; i always mistype
<shevy> rwx logically I guess haha
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fretta has quit [Client Quit]
x1337807x has joined #ruby
<epitron> rwxrwxrwx
<epitron> 777!
bronson has joined #ruby
kamilc__ has quit [Read error: Connection reset by peer]
<godd2> you win!
Cache_Money has quit [Quit: Cache_Money]
valeriansaliou has joined #ruby
kamilc__ has joined #ruby
x1337807x has quit [Client Quit]
bronson has quit [Ping timeout: 244 seconds]
x1337807x has joined #ruby
amclain has quit [Quit: Leaving]
Sawbones_ has quit [Remote host closed the connection]
valeriansaliou has quit [Ping timeout: 265 seconds]
x1337807x has quit [Ping timeout: 264 seconds]
Trep has quit [Read error: Connection reset by peer]
apeiros_ has quit [Remote host closed the connection]
<epitron> cha-ching!
apeiros_ has joined #ruby
aswen has joined #ruby
wolf4ood has quit [Quit: (null)]
rubyguy has quit [Quit: Connection closed for inactivity]
lampd1 has quit []
Joufflu has joined #ruby
icebourg has quit []
x77686d has quit [Quit: x77686d]
apeiros_ has quit [Ping timeout: 245 seconds]
skj3gg has quit [Quit: ZZZzzz…]
n008f4g_ has quit [Ping timeout: 264 seconds]
aagdbl has quit [Quit: This computer has gone to sleep]
aswen has quit [Ping timeout: 245 seconds]
byprdct has quit [Quit: Textual IRC Client: www.textualapp.com]
apurcell has joined #ruby
kamilc__ has quit [Ping timeout: 245 seconds]
russt has quit [Quit: russt]
yfeldblum has quit [Ping timeout: 265 seconds]
ixti has quit [Ping timeout: 255 seconds]
tagrudev has joined #ruby
aagdbl has joined #ruby
ninjazach has left #ruby ["tty0 has closed"]
apurcell has quit [Ping timeout: 255 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sargas has quit [Quit: This computer has gone to sleep]
<miah> sup
Sawbones_ has joined #ruby
<chipotle_> hi miah
<chipotle_> how goes?
hvxgr has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
<miah> alright
conniemj has joined #ruby
pwnz0r has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
ixti has joined #ruby
ghr has quit [Ping timeout: 264 seconds]
govg has quit [Ping timeout: 245 seconds]
agjacome has joined #ruby
fabrice31 has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
conniemj has quit [Ping timeout: 264 seconds]
govg has joined #ruby
bMalum has joined #ruby
sevvie has joined #ruby
tobago has joined #ruby
apurcell has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
oo_ has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 240 seconds]
Stoge88 has joined #ruby
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Stoge88 has quit [Client Quit]
Sawbones_ has quit [Remote host closed the connection]
kapil__ has joined #ruby
apurcell has quit [Ping timeout: 245 seconds]
apeiros_ has joined #ruby
TripTastic is now known as JBreit
zorak8 has quit [Ping timeout: 264 seconds]
_Andres has joined #ruby
mostlybadfly has quit [Quit: Connection closed for inactivity]
codecop has joined #ruby
sigurding has quit [Quit: sigurding]
burzmali has joined #ruby
whatasunnyday has quit [Remote host closed the connection]
adriancb has joined #ruby
<arup_r> Guys.. wanted to learn Algorithms.. Not good at all.. What's the effective way to learn and good at it? General suggestions..
<chipotle_> arup_r: read *the* book on it
<arup_r> I was trying to understand this problem - http://stackoverflow.com/questions/27249194/what-is-the-most-lucrative-advertisement-combination .. Given answer is not helping me at all..
<chipotle_> ?
<arup_r> Yes I do.. But still not understanding which problem to solve using which techniques..
<chipotle_> then you need to read that book again
<miah> i've used this one a bunch
<miah> its in multiple languages (programming)
baltazore has joined #ruby
<arup_r> Is the book - http://www.amazon.com/Introduction-Algorithms-Edition-Thomas-Cormen/dp/0262033844 good? I read something different..
oo_ has joined #ruby
charliesome has quit [Quit: zzz]
ta_ has joined #ruby
keen__________24 has joined #ruby
<arup_r> But not much confident still
<sevenseacat> i used the sedgwick book when at university, i believe... an older version though
adriancb has quit [Ping timeout: 265 seconds]
keen__________23 has quit [Ping timeout: 256 seconds]
SilkFox_ has joined #ruby
DrCode has quit [Ping timeout: 250 seconds]
<arup_r> Any online place where people submit approaches to the problem with varieties of ways... So that I can see how to think about it firstly?
baltazore has quit [Remote host closed the connection]
baltazore has joined #ruby
<arup_r> sevenseacat: Is that a good book?
<arup_r> Does it have lots of problems and solutions?
<sevenseacat> dont really remember tbh, it was quite a few years ago
<arup_r> ok
ta_ has quit [Ping timeout: 265 seconds]
apurcell has joined #ruby
JoshGlzBrk has joined #ruby
bal has joined #ruby
SilkFox_ has quit [Ping timeout: 244 seconds]
hvxgr has joined #ruby
sinkensabe has joined #ruby
timonv_ has joined #ruby
aganov has joined #ruby
apurcell has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
<frogsy2> can anyone recommend a good book or other resource for learning wxWidgets in a Ruby context?
<frogsy2> Never done anything with a GUI before and am at a loss regarding where to start.
andikr has joined #ruby
dcarmich has joined #ruby
luriv has quit [Ping timeout: 244 seconds]
luriv has joined #ruby
charliesome has joined #ruby
bronson has joined #ruby
sevvie has joined #ruby
Eiam_ has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
oetjenj has joined #ruby
oetjenj has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 240 seconds]
sinkensabe has quit [Remote host closed the connection]
bronson has quit [Ping timeout: 255 seconds]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
_Andres has quit [Ping timeout: 240 seconds]
Photism_ has quit [Quit: Leaving]
timonv_ has quit [Remote host closed the connection]
luriv has quit [Remote host closed the connection]
dawkirst has joined #ruby
_Andres has joined #ruby
josephndenton has joined #ruby
chipotle_ is now known as chipotle
Takle has joined #ruby
josephndenton has quit [Ping timeout: 240 seconds]
Macaveli has joined #ruby
<Macaveli> Morning
elaptics is now known as elaptics`away
djbkd has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
sinkensabe has joined #ruby
<pontiki> o/
<chipotle> hey Macaveli pontiki
<chipotle> how goes?
<chipotle> i can't sleep :/
<Macaveli> chill
<Macaveli> I have to dump my GF after 2 years
<pontiki> same, it's 1:40am
ghr has joined #ruby
em0ral has quit [Remote host closed the connection]
<pontiki> same as in can't sleep, not having to dump girl friend
fabrice31 has joined #ruby
rbrs has joined #ruby
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<sevenseacat> you *have* to dump your gf?
wallerdev has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
Nameo0 has joined #ruby
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 264 seconds]
lkebin has joined #ruby
ponga has quit [Quit: Page closed]
sinkensabe has quit [Remote host closed the connection]
workmad3 has joined #ruby
vin` has quit [Remote host closed the connection]
iamninja has joined #ruby
sinkensabe has joined #ruby
sinkensabe has quit [Read error: Connection reset by peer]
sinkensabe has joined #ruby
wallerdev has quit [Quit: wallerdev]
<chipotle> Macaveli: why?
anitchrist has joined #ruby
<chipotle> 257 here, pontiki
surs has joined #ruby
<chipotle> i have a BIG interview tomorrow
<chipotle> could chnage my life
<chipotle> 12 month contract, $80/hr on c2c
<chipotle> 1099
sinkensabe has quit [Read error: Connection reset by peer]
<apeiros_> c2c?
sinkensabe has joined #ruby
<pontiki> best of luck on that
<anitchrist> anyone know where I can find a description and more on info_for
<chipotle> corp to copr
<chipotle> i haven't really worked in six months because i have been so damn sick
<chipotle> almost died twice
<apeiros_> what happened to b2b? :)
<chipotle> but now i'm better but i need to make money
<chipotle> apeiros_: it's just a tax phrase
Sgeo has quit [Read error: Connection reset by peer]
<chipotle> i'm tired of sitting at home twiddling my thumbs
<pontiki> i can imagine
workmad3 has quit [Ping timeout: 256 seconds]
<apeiros_> I can imagine
<pontiki> i went quite some time as well
<anitchrist> me 2
towski_ has quit [Remote host closed the connection]
<anitchrist> but back to info_for
<pontiki> what's info_for?
<anitchrist> where can I find more about it
fandi has joined #ruby
<pontiki> i haven't a clue what it is
<cvtsx> Hello can someone help me really fast
sinkensabe has quit [Remote host closed the connection]
Versality has joined #ruby
<pontiki> cvtsx: !ask
<helpa> cvtsx: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
<anitchrist> ugg
<anitchrist> lol
MasterPiece has quit [Quit: Leaving]
<anitchrist> shevy: do you have any ideas in regards to info_for?
lkebin has quit [Read error: Connection reset by peer]
<cvtsx> never mind, i figured it out :)
<chipotle> i;'m going to buy a mac pro and 2 4k monitors with my first paycheck :D
<pontiki> excellent
sinkensabe has joined #ruby
<pontiki> desktop, not macbook?
<cvtsx> chipotle how big is that paycheck of yours? lol
<chipotle> about 14k a month
<chipotle> gross
<cvtsx> damn, doing what?
* anitchrist stares into black hole and contemplates jumping in
Sgeo has joined #ruby
<tacotaco_> 14k yen?
surs has quit [Quit: leaving]
<anitchrist> lol tacotaco
<cvtsx> probably USD
terlar has joined #ruby
<anitchrist> lol probably
surs has joined #ruby
<anitchrist> assumptions are what?
robbyoconnor has joined #ruby
TheRinger has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor has quit [Changing host]
<pontiki> make an ass out of u an mption?
* anitchrist notices he's staring into someones ass
<chipotle> cvtsx: drupal web development
<sevenseacat> pontiki: :D
<sevenseacat> i love that line
<cvtsx> chipotle nice
vincet has quit []
vincet has joined #ruby
<pontiki> 12 month drupal contract?
<pontiki> is this with a shop or a single client?
<chipotle> single, fortune 500 client
ishikawa91 has quit [Quit: Connection closed for inactivity]
<chipotle> i'd run their drupal team
<anitchrist> assumptions are like silent expectations, over used and unrealistic
<cvtsx> chipotle do you plan on upgrading the mac in anyway?
<Nilium> Ugh, Drupal, I'm sorry
<Nilium> Could be worse, though
<chipotle> cvtsx: just the ram
lkba has joined #ruby
lkba has quit [Read error: Connection reset by peer]
* anitchrist notices a funny smell
usrenmae has joined #ruby
lkba has joined #ruby
<cvtsx> chipotle nice, i still prefer windows/the traditional look of a case
<cvtsx> i mean the new mac pros look like heaters or something
<chipotle> heh, yeah
<chipotle> i don't care about that much
<Nilium> They're kind of awkardly designed
<chipotle> although, it'll be prettye asy to transport
amundj has joined #ruby
<Nilium> I'd personally rather get a retina iMac
<chipotle> i'd much prefer a 5k imac and one extra 4k screen, but the gpu sucks so it lags quite a bit
<Nilium> But it's pretty nice hardware, all things considered
<chipotle> and lagging computers piss me off
anitchrist has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Nilium> Was lag an issue?
<cvtsx> chipotle get a 1TB ssd
pwnz0r has quit [Remote host closed the connection]
<chipotle> why?
<Nilium> I have a first-gen retina MBP, but it's never had that problem.
chrishough has joined #ruby
<chipotle> Nilium: yeah! beach balls all the time
alex88 has joined #ruby
<Nilium> Would've thought mine would suffer the most.
<chipotle> i don't even do games or graphic design or video design
<cvtsx> Ever use a SSD?
<chipotle> cvtsx: yes
<chipotle> but why a 1tb ssd?
<chipotle> i have a 2 * 512gb SSD in a thunderbolt enclosure
<cvtsx> That is the largest they make for now iirc
<Nilium> Oh well, maybe the next iteration of it will be better once they stop cramming a laptop into a 27" screen
<chipotle> plus a 4 * 6tb NAS with wd red drives
<cvtsx> nvm you got plenty of room lol
<chipotle> i only need about 400gb of ssd space for VMs, ~/Documents/ and ~/Pictures
<chipotle> the NAS hosts all my bluray rips, etc
LouisRoR has joined #ruby
last_staff has joined #ruby
<Nilium> I think I'll probably end up getting a regular 27" iMac as my next machine. Kind of tired of buying laptops, and my current one should be fine for another couple years.
SilkFox_ has joined #ruby
<cvtsx> hmm i cannot stand OSX though, win 8 > ubuntu > OSX
<chipotle> yeah, i'm tired of my laptop too
<chipotle> it has the beach ball problem too
<chipotle> 13 retina MBP
<Nilium> Less concerned about retina stuff and more just screen real-estate
<sevenseacat> <3 laptops. i'd never buy another desktop for work use
surs has quit [Quit: leaving]
<chipotle> don't go with a non retina screen, Nilium !
valeriansaliou has joined #ruby
<chipotle> get a 4k monitor, at least
<chipotle> and don't high DPI it
<Nilium> I already use a 27" iMac at work, it's actually nice
<pontiki> what are you doing with it? i never get beachballs
<cvtsx> Why not get both a desktop and laptop?
<chipotle> or get three 4k monitors, and high DPI it, like i would, if i end up with a mac pro
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sinkensabe has quit [Read error: Connection reset by peer]
<chipotle> pontiki: lucky you
<chipotle> it gets worse when i plug in my 27 ACD to it
<chipotle> well, i'll keep this rMBP for when i'm on the road
<Nilium> I make a salary equivalent to $12 an hour, I'm not in a position to spend money on that kind of hardware
<chipotle> but use the mac pro 99% of the time
sinkensabe has joined #ruby
<sevenseacat> keep monitors on my desks at work and home, and just plug them in when i'm at the desk
<chipotle> damn
<chipotle> are you a student?
surs has joined #ruby
<sevenseacat> Nilium: you need a pay rise.
<Nilium> Nope, software engineer in the middle of nowhere in Idaho
<chipotle> you need to move
<chipotle> it's funny, i just had a recruiter send me a position there, 110k base plus bonus
<Nilium> I'm staying where I am for now just 'cause I pay no rent or anything by living with my parents
<chipotle> i was like "you think i want to move to bumbfuck idaho?"
<Nilium> Was the position for a place called Kochava?
<chipotle> haha
<chipotle> idk
<chipotle> they don't tell you until you contact them via phone
<Nilium> Jerks.
<Nilium> I'd be more willing to work with recruiters if they were more up-front about everything.
<cvtsx> chipotle, lemme guess bay area or NYC?
Xiti` has joined #ruby
<pontiki> $80-90/hr c2c is pretty standard here, too
<Nilium> But yeah, I make jack shite for the field. The job title I was hired for is technically junior iOS developer, but I just bounce all over the place.
<Nilium> I think my new job title is probably something involving maintenance
sinkensabe has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 265 seconds]
anarang has joined #ruby
<chipotle> yeah
<chipotle> just moved from boston to nyc in october
sinkensabe has joined #ruby
<chipotle> Nilium: i hate recruiters
<chipotle> scumbags
sinkensabe has quit [Remote host closed the connection]
<cvtsx> isnt the cost of living in NYC a lot though?
sinkensabe has joined #ruby
<chipotle> i guess
<Nilium> I hate the majority of them. I know only a couple that I consider good.
<chipotle> i have a 3 bedroom that is $6500 a month
<Nilium> Except the ones I consider good also don't work for giant recruiting companies.
huawei has joined #ruby
Xiti has quit [Ping timeout: 255 seconds]
<Nilium> I guess the upside is the ones that I hate always call my Google Voice number, so I know to automatically ignore those calls.
<pontiki> my gvoice number is the only one i advertise
<chipotle> heh, i had to change my cell phone # because i was getting 40 calls a day
<chipotle> it was ridiculous
<chipotle> and i'm not exagerrating
function90 has quit [Quit: Textual IRC Client: www.textualapp.com]
livathinos has joined #ruby
<Nilium> I made sure that if my number was on any site a recruiter would scrape, including my resume, it was my google voice number
<chipotle> and i got rid of google voice too, what they do is they call every number they can find on you, twice, leave vm's both times, half send a text and then every single on sends a followup email within 30 seconds
<pontiki> oh, i believe that, chipotle
<chipotle> it's ridiculous
<Nilium> I've never gotten the texts, but I do get the follow-up emails
<pontiki> when i switched service, i got someone's number that would just ring off the *hook* from boilerroom scam artists
<sevenseacat> i once got called by a recruiter, who found me on linked in, saw my current employer, and then called them to get to me.
<Nilium> O____o
MasterPiece has joined #ruby
<Nilium> Smart recruiter.
<sevenseacat> that was pretty much my reaction.
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<Nilium> I assume your employer was just as confused as I am at that.
hamakn has quit [Remote host closed the connection]
<pontiki> that scares me when that happens
lemur has quit [Remote host closed the connection]
<Macaveli> chipotle because she moved to france
<Nilium> If any recruiter called me employer, they'd just get laughed at.
hamakn has joined #ruby
<Nilium> s/me/my/
lemur has joined #ruby
msgodf has joined #ruby
Spami has joined #ruby
pasv has quit [Ping timeout: 255 seconds]
<chipotle> mmm france
<chipotle> where?
<chipotle> i miss living there
intyl_ has quit [Ping timeout: 244 seconds]
lessless has joined #ruby
jenrzzz has joined #ruby
Pixi_ has joined #ruby
<Nilium> I want my gopher squadron already.
<chipotle> ugh, i need to go downstairs and switch over the laundry :/
<chipotle> i can't believe it's almost 4am :(
Takle has joined #ruby
_Andres has quit [Read error: Connection reset by peer]
lemur has quit [Ping timeout: 244 seconds]
defrang has joined #ruby
Xiti` has quit [Ping timeout: 244 seconds]
nanoyak has quit [Quit: Computer has gone to sleep.]
<pontiki> oh this is funny: students from a minnesota school are attending a *study abroad* program -- to silicon valley: http://tech.mn/news/2015/01/06/cadre-ust-entrepreneurship-students-hit-silicon-valley-dream-bigger/
sk87 has joined #ruby
<Nilium> I should go to sleep now
alkoma has quit [Ping timeout: 255 seconds]
mist_ is now known as mist
<Nilium> Have to get up early to beat the parents to the intersection if I want to have time to eat breakfast at my desk
ta_ has joined #ruby
Spami has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
_Andres has joined #ruby
arup_r has quit [Remote host closed the connection]
reset has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
alicef has joined #ruby
<alicef> hello
robbyoconnor has quit [Quit: Konversation terminated!]
<alicef> how i escape square braket ? http://slexy.org/view/s27qozoBVu
<Nilium> Wat
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
conniemj has joined #ruby
echooo1 has quit [Ping timeout: 265 seconds]
omosoj has quit [Quit: leaving]
Mia has joined #ruby
<alicef> /^\[(\d{4})/(\d{2})/(\d{2}) (\d{2}):(\d{2}):(\d{2})\\] (.*)/
chrishough has joined #ruby
<Nilium> Put a backslash in front of it.
<alicef> i got error about the backslash :/
<apeiros_> alicef: I think the error shows you the wrong line
<apeiros_> and/or it's a subsequent fault due to wrong syntax earlier
echooo has joined #ruby
<Nilium> Well. You've got forward slashes in there, so that might be an issue.
conniemj has quit [Ping timeout: 264 seconds]
antgel has joined #ruby
charliesome has quit [Quit: zzz]
frogsy has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
anitchrist has joined #ruby
echooo has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
sevvie has joined #ruby
robbyoconnor has joined #ruby
frogsy2 has quit [Ping timeout: 255 seconds]
ta_ has joined #ruby
<apeiros_> alicef: if File.basename(filename) =~ /^#$/
duncannz has quit [Ping timeout: 264 seconds]
<apeiros_> that's quite probably the offending line.
<apeiros_> also note that '\#' == "\\#"
echooo has joined #ruby
ghr has joined #ruby
jottr has joined #ruby
ponga has joined #ruby
<apeiros_> alicef: and since you seem to be using ruby 1.9+: -Ku has no effect after ruby 1.8.
huawei has quit [Quit: (null)]
LouisRoR has quit [Ping timeout: 256 seconds]
CustosL1men has quit [Ping timeout: 264 seconds]
sevvie has quit [Ping timeout: 255 seconds]
joonty has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
ghr has quit [Ping timeout: 244 seconds]
ta_ has joined #ruby
dawkirst has quit [Quit: Leaving...]
SOLDIERz has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
Takle has quit [Remote host closed the connection]
ponga has quit [Remote host closed the connection]
jottr has quit [Quit: WeeChat 1.0.1]
ponga has joined #ruby
ponga has quit [Changing host]
ponga has joined #ruby
bal1 has joined #ruby
duncannz has joined #ruby
az7ar_away is now known as az7ar
bal has quit [Ping timeout: 265 seconds]
valeriansaliou has quit [Quit: Be back later ...]
<ddv> anyone know how I can prevent nokogiri from self closing a tag <tag/> when it contents are empty?
<ddv> I want <tag>some invisible</tag> instead
Joufflu has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
ponga has quit [Ping timeout: 240 seconds]
ta_ has quit [Ping timeout: 264 seconds]
anitchrist was kicked from #ruby by apeiros_ [cross-post without informing about it. additionally being a dick about it.]
arup_r has joined #ruby
chthon has joined #ruby
qba73 has joined #ruby
arup_r_ has joined #ruby
sevvie has joined #ruby
anaeem1 has quit [Ping timeout: 264 seconds]
<ddv> apparently I can use SaveOptions::NO_EMPTY_TAGS
<chipotle> argh, i wish i could sleep :(
<shevy> chipotle listen to faithless - insomnia
<chipotle> quoi?
<bweston92> Does Ruby have any documented standards like (PSR-2 or PEP8) ?
arup_r has quit [Ping timeout: 264 seconds]
kanhaiya has joined #ruby
<kanhaiya> shoes not working
pasv has joined #ruby
Jackneill has joined #ruby
sinkensabe has quit [Remote host closed the connection]
<kanhaiya> ./shoes-3.1.0.run: 1: eval: ./shoes: not found
sevvie has quit [Read error: Connection reset by peer]
<kanhaiya> ??
hamakn has quit [Remote host closed the connection]
pasv is now known as Guest48003
usrenmae has quit [Quit: Leaving.]
DadoCe has joined #ruby
sinkensabe has joined #ruby
sevvie has joined #ruby
LouisRoR has joined #ruby
frogsy has quit [Ping timeout: 244 seconds]
anaeem1_ has joined #ruby
SilkFox_ has joined #ruby
ukd1 has quit [Ping timeout: 245 seconds]
anaeem1_ has quit [Remote host closed the connection]
<certainty> bweston92: not that i no of. though there are guides which are followed more or less. There certainly are standards within projects. I suspect for ruby core there is one too
<certainty> bweston92: https://github.com/styleguide/ruby
<bweston92> certainty: Thanks :)
sinkensabe has quit [Read error: Connection reset by peer]
<kanhaiya> ./shoes-3.1.0.run: 1: eval: ./shoes: not found
roolo has joined #ruby
<kanhaiya> ??
sinkensabe has joined #ruby
Hobogrammer has quit [Ping timeout: 265 seconds]
npg has joined #ruby
Aswebb_ has joined #ruby
ukd1 has joined #ruby
hamakn has joined #ruby
npg has quit [Client Quit]
ta_ has joined #ruby
razieliyo has joined #ruby
razieliyo has joined #ruby
timonv_ has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
<certainty> try walking in my shoes
cobra has joined #ruby
<cobra> ciao
<cobra> ! list
CustosL1men has joined #ruby
<apeiros_> bweston92: there's an iso standard for ruby
SilkFox_ has quit [Ping timeout: 255 seconds]
<bweston92> apeiros: Ok :) thanks
jeanlinux has quit [Ping timeout: 256 seconds]
cobra has left #ruby [#ruby]
bronson has joined #ruby
Versality has quit [Read error: Connection reset by peer]
Versality has joined #ruby
Versality has quit [Client Quit]
ta_ has quit [Ping timeout: 240 seconds]
<avril14th> hello
Vile` has quit [Ping timeout: 264 seconds]
Takle has joined #ruby
rdark has joined #ruby
bronson has quit [Ping timeout: 265 seconds]
Vile` has joined #ruby
cobakobodob has quit [Ping timeout: 256 seconds]
ponga has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
ghr has joined #ruby
alkoma has joined #ruby
AlSquire has joined #ruby
kanhaiya has quit [Ping timeout: 246 seconds]
josephndenton has joined #ruby
sevvie has joined #ruby
druznek has joined #ruby
alicef has left #ruby ["WeeChat 0.4.3"]
Timgauthier has joined #ruby
elaptics`away is now known as elaptics
charliesome has quit [Quit: zzz]
ta_ has quit [Ping timeout: 265 seconds]
sevvie has quit [Read error: Connection reset by peer]
duncannz has quit [Ping timeout: 264 seconds]
joonty has quit [Quit: joonty]
sevenseacat has quit [Remote host closed the connection]
alkoma has quit [Ping timeout: 256 seconds]
meschi has joined #ruby
josephndenton has quit [Ping timeout: 245 seconds]
marr has joined #ruby
mikecmpbll has joined #ruby
az7ar is now known as az7ar_away
n008f4g_ has joined #ruby
avril14th has quit [Ping timeout: 264 seconds]
lkba_ has joined #ruby
sabbia has joined #ruby
<sabbia> ciao
<sabbia> ! list
sevvie has joined #ruby
charliesome has joined #ruby
sabbia has left #ruby [#ruby]
lkba has quit [Ping timeout: 244 seconds]
startupality has joined #ruby
rocknrollmarc has joined #ruby
Aswebb_ has quit []
avril14th has joined #ruby
anaeem1 has joined #ruby
agjacome has quit [Quit: leaving]
bigmac has quit [Ping timeout: 264 seconds]
dionysus69 has joined #ruby
banjara has joined #ruby
joonty has joined #ruby
reinaldob has joined #ruby
LekeFly has joined #ruby
arup_r has joined #ruby
workmad3 has joined #ruby
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has quit [Remote host closed the connection]
rodfersou has joined #ruby
arup_r_ has quit [Ping timeout: 255 seconds]
iamninja has joined #ruby
reinaldob has quit [Ping timeout: 264 seconds]
joonty has quit [Quit: joonty]
daxroc_ is now known as daxroc
workmad3 has quit [Ping timeout: 240 seconds]
oo_ has joined #ruby
daxroc has quit [Changing host]
daxroc has joined #ruby
az7ar_away is now known as az7ar
josephcs has joined #ruby
ta_ has joined #ruby
LekeFly has quit [Ping timeout: 245 seconds]
SolarSailor has joined #ruby
atom3 has joined #ruby
cobakobodob has joined #ruby
usrenmae has joined #ruby
lolmaus_ has joined #ruby
Zai00 has joined #ruby
lolmaus has quit [Read error: Connection reset by peer]
wolf4ood has joined #ruby
SolarSai_ has joined #ruby
SolarSai_ has quit [Client Quit]
LekeFly has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
ta_ has quit [Ping timeout: 265 seconds]
joonty has joined #ruby
SolarSailor has quit [Client Quit]
tobiasvl has quit [Read error: Connection reset by peer]
SolarSailor has joined #ruby
banjara has quit [Quit: Leaving.]
Sawbones_ has joined #ruby
mengu has quit [Remote host closed the connection]
aagdbl has quit [Quit: Leaving]
shredding has joined #ruby
jeanlinux has joined #ruby
Sawbones_ has quit [Ping timeout: 240 seconds]
Timgauthier has joined #ruby
crazydiamond has joined #ruby
usrenmae has quit [Quit: Leaving.]
krz has quit [Quit: WeeChat 1.0.1]
Zai00 has quit [Quit: Zai00]
vincet has quit [Ping timeout: 255 seconds]
baltazore has quit [Remote host closed the connection]
vincet has joined #ruby
MasterPieceF has joined #ruby
MasterPiece has quit [Disconnected by services]
MasterPieceF is now known as MasterPiece
usrenmae has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
SilkFox_ has joined #ruby
olivier_bK has joined #ruby
antoinelyset has joined #ruby
<antoinelyset> Hi !
vincet has quit [Ping timeout: 265 seconds]
Klumben has quit [Ping timeout: 244 seconds]
Nameo0 has quit [Ping timeout: 255 seconds]
SilkFox_ has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby
bigmac has joined #ruby
bigmac has quit [Read error: Connection reset by peer]
bigmac has joined #ruby
tvl has joined #ruby
tvl is now known as tobiasvl
timonv_ has joined #ruby
DaniG2k has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
Junaos has quit [Quit: ZNC - http://znc.in]
Fusl has quit [Quit: Contact: http://hallowe.lt/]
Junaos has joined #ruby
Mongey_ has quit [Ping timeout: 265 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
leafybasil has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
ta_ has quit [Ping timeout: 244 seconds]
Fusl has joined #ruby
Klumben has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
conniemj has joined #ruby
banister has joined #ruby
Stalkr_ has joined #ruby
sevvie has joined #ruby
Mongey has joined #ruby
Stalkr_ has quit [Client Quit]
jds has joined #ruby
<pontiki> Hello !
conniemj has quit [Ping timeout: 245 seconds]
phutchins has joined #ruby
Oejet has joined #ruby
Rollabunna has joined #ruby
sevvie has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
sevvie has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
chrishough has quit [Remote host closed the connection]
gccostabr has joined #ruby
bigmac has quit [Ping timeout: 245 seconds]
lkba_ has quit [Ping timeout: 256 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Kryptonic has quit [Ping timeout: 265 seconds]
StoneCypher has quit [Ping timeout: 256 seconds]
workmad3 has joined #ruby
Kryptonical has joined #ruby
leafybasil has joined #ruby
workmad3 has quit [Client Quit]
djbkd has joined #ruby
workmad3 has joined #ruby
valeriansaliou has joined #ruby
alkoma has joined #ruby
sevenseacat has joined #ruby
anitchrist has joined #ruby
teddyp1c_ has joined #ruby
djbkd has quit [Ping timeout: 264 seconds]
josephcs has quit [Ping timeout: 245 seconds]
n3phos has joined #ruby
usrenmae has quit [Quit: Leaving.]
n3phos has quit [Changing host]
n3phos has joined #ruby
valeriansaliou has quit [Ping timeout: 265 seconds]
teddyp1cker has quit [Ping timeout: 245 seconds]
alkoma has quit [Ping timeout: 245 seconds]
arup_r has quit []
arup_r has joined #ruby
Tricon has joined #ruby
jheg has joined #ruby
vieq has quit [Ping timeout: 265 seconds]
vieq has joined #ruby
baltazore has joined #ruby
bitcycle_ has joined #ruby
reset has quit [Quit: Leaving...]
SolarSailor has quit [Quit: My Turing machine has gone to sleep. ZZZzzz…]
C1V0 has quit []
SOLDIERz has quit [Quit: Be back later ...]
banister has quit [Read error: No route to host]
bitcycle_ has quit [Ping timeout: 240 seconds]
vieq has quit [Ping timeout: 264 seconds]
bronson has joined #ruby
doodlehaus has joined #ruby
hmsimha has joined #ruby
krz has joined #ruby
mostlybadfly has joined #ruby
bronson has quit [Ping timeout: 240 seconds]
ta_ has joined #ruby
<arup_r> >> p "arn:aws:sqs:us-east-1:064337814626:myqueue".split(":")[-1]
<eval-in__> arup_r => "myqueue" ... (https://eval.in/240113)
<arup_r> worked... Any more zipped version? :)
<arup_r> I meant string from string.. no intermediate array...
Darryl__ has joined #ruby
krz has quit [Client Quit]
<waxjar> >> "arn:aws:sqs:us-east-1:064337814626:myqueue"[/:\S+$/]
<eval-in__> waxjar => ":aws:sqs:us-east-1:064337814626:myqueue" (https://eval.in/240114)
dmst has joined #ruby
<waxjar> ah, of course
vieq has joined #ruby
<waxjar> ignore that :p
<arup_r> :p
SilkFox_ has joined #ruby
krz has joined #ruby
zorak8 has joined #ruby
josephndenton has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
mengu has joined #ruby
mengu has joined #ruby
Neomex has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<waxjar> >> x="arn:aws:sqs:us-east-1:064337814626:myqueue";x x[x.rindex(":")+1..-1]
<eval-in__> waxjar => undefined method `x' for main:Object (NoMethodError) ... (https://eval.in/240119)
<waxjar> but it's worse imo
<waxjar> ignore that extra x
Takle has quit [Remote host closed the connection]
SilkFox_ has quit [Ping timeout: 245 seconds]
doodlehaus has quit [Remote host closed the connection]
reinaldob has joined #ruby
josephndenton has quit [Ping timeout: 256 seconds]
lessless has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
rdark has quit [Ping timeout: 264 seconds]
rdark has joined #ruby
shime has joined #ruby
Takle has joined #ruby
banister has joined #ruby
gr33n7007h has quit [Ping timeout: 244 seconds]
Pharaoh2 has joined #ruby
<DaniG2k> does anyone need a discount coupon for a Digital Ocean VPS?
Mongey has quit [Ping timeout: 245 seconds]
<shime> is there a way to check out specific gem dependents? how would I check which gems depend on ActiveSupport, for instance?
<sevenseacat> that would be a long list
<shime> long black list, yes
<sevenseacat> hah
fabrice31 has joined #ruby
valeriansaliou has joined #ruby
banjara has joined #ruby
banjara has quit [Changing host]
banjara has joined #ruby
jeanlinu_ has joined #ruby
Deele has joined #ruby
Morkel_ has joined #ruby
valeriansaliou has quit [Client Quit]
krz has quit [Quit: WeeChat 1.0.1]
<anitchrist> when a Klass.new has a variable argument attached as such Klass.new(something), would it be a fail to assume that the blank class is being populated by the argument and is no longer blank?
sigurding has quit [Quit: sigurding]
Morkel has quit [Ping timeout: 256 seconds]
Morkel_ is now known as Morkel
rdark has quit [Quit: leaving]
jeanlinux has quit [Ping timeout: 244 seconds]
rdark has joined #ruby
french has joined #ruby
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<anitchrist> I mean Klass as a class object, nothing more
Soda has joined #ruby
<anitchrist> I could have named it Toilet, but I'm just trying to bounce ideas
<anitchrist> so that I have a clear picture
<anitchrist> clearer*
<waxjar> what do you mean by the blank class?
<anitchrist> mean the class is defined at the being of the script right
krz has joined #ruby
<anitchrist> and at the end it has the .new method attached
pushpak has joined #ruby
<anitchrist> which as far as i know kind zeros stuff out
oo_ has quit [Remote host closed the connection]
<anitchrist> not the shape of it, but the data
oo_ has joined #ruby
<anitchrist> say it was an array or something built inside that had priorly established strings or integers or ... whatever... when .new is called at the end of the script I was under the impression that it wiped that dat
<arup_r> waxjar: *blank class* klass = Class.new hehehehehee
Timgauthier has joined #ruby
<waxjar> anitchrist: build inside where?
<waxjar> i think you're confusing Classes and instances of classes
<anitchrist> help me get unconfused then, please
<waxjar> I'd like to, but I have no idea what you're asking :p
<anitchrist> seem to have some understand as you brought up that I am confused and the instances of classes
<anitchrist> you*
<anitchrist> fuck... its late my fingers aren't working well
<anitchrist> but I can't sleep
sevvie has quit [Read error: Connection reset by peer]
<Xeago> do yoga
tkuchiki has quit [Remote host closed the connection]
Mongey has joined #ruby
tkuchiki has joined #ruby
<waxjar> anitchrist: maybe show a code example of what you mean
alkoma has joined #ruby
oo_ has quit [Remote host closed the connection]
DadoCe has joined #ruby
MrBeardy has quit []
n1lo has joined #ruby
shime has quit [Quit: Lost terminal]
tkuchiki has quit [Ping timeout: 245 seconds]
mengu has quit [Ping timeout: 256 seconds]
n1lo has quit [Client Quit]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
gfawcettpq has joined #ruby
<anitchrist> its awfully weird that things like this can't be explained with out source, especially when we share the same natural language
sameerynho has joined #ruby
ajaiswal has quit [Remote host closed the connection]
<tobiasvl> the language we share is ruby ;) it's more concise and precise than english (which is not my first language at least)
<anitchrist> I'm obviously a noob though
alkoma has quit [Ping timeout: 264 seconds]
jenrzzz has quit [Ping timeout: 264 seconds]
valeriansaliou has joined #ruby
sevvie has joined #ruby
noname001 has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 245 seconds]
Takle has quit [Remote host closed the connection]
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
pkrzywicki has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
<anitchrist> meh found what I was looking for , thanks though guys
livathin_ has joined #ruby
joonty has quit [Ping timeout: 244 seconds]
hiyosi has joined #ruby
Pharaoh2 has quit [Ping timeout: 265 seconds]
joonty has joined #ruby
hamakn has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
<anitchrist> and you were right waxjar
timonv_ has quit [Remote host closed the connection]
livathinos has quit [Ping timeout: 265 seconds]
oo_ has quit [Remote host closed the connection]
valeriansaliou has quit [Quit: Be back later ...]
VictorBjelkholm has joined #ruby
shredding has quit [Quit: shredding]
ta_ has joined #ruby
anitchrist has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
fandi has quit [Remote host closed the connection]
wpp has joined #ruby
valeriansaliou has joined #ruby
valeriansaliou has quit [Client Quit]
ta_ has quit [Ping timeout: 244 seconds]
shime has joined #ruby
Pixi_ has quit [Ping timeout: 264 seconds]
SilkFox_ has joined #ruby
Tricon has quit [Ping timeout: 265 seconds]
conniemj has joined #ruby
shime has quit [Client Quit]
shime has joined #ruby
meschi_ has joined #ruby
AlexRussia has quit [Ping timeout: 244 seconds]
Pixi_ has joined #ruby
meschi_ has quit [Remote host closed the connection]
az7ar is now known as az7ar_away
rocknrollmarc has quit [Ping timeout: 265 seconds]
rdark_ has joined #ruby
<cassianoleal> is it possible to modify a rake task that was imported from an external gem?
valeriansaliou has joined #ruby
Takle has joined #ruby
antoinelyset has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
sevvie has quit [Read error: Connection reset by peer]
sigurding has joined #ruby
charliesome has quit [Quit: zzz]
n1lo has joined #ruby
SilkFox_ has quit [Ping timeout: 244 seconds]
antgel has quit [Ping timeout: 244 seconds]
conniemj has quit [Ping timeout: 240 seconds]
valeriansaliou has quit [Client Quit]
antgel has joined #ruby
rdark has quit [Ping timeout: 255 seconds]
krz has joined #ruby
Zai00 has joined #ruby
az7ar_away is now known as az7ar
petertretyakov has joined #ruby
Takle has quit [Ping timeout: 265 seconds]
sevvie has joined #ruby
n1lo has quit [Ping timeout: 245 seconds]
burzmali has quit [Quit: Leaving.]
Rickmasta has joined #ruby
doritostains has quit [Quit: WeeChat 1.0.1]
zorak8 has quit [Ping timeout: 265 seconds]
livathin_ has quit [Remote host closed the connection]
Timgauthier has joined #ruby
ferr has joined #ruby
doritostains has joined #ruby
jheg has quit [Quit: jheg]
Takle has joined #ruby
<ferr> Why this with capybara does not work find(:xpath, '//tr[contains(., #{company_name}")]').click_link('Delete'). If I fill simple string instead of variable it works
krz has quit [Quit: WeeChat 1.0.1]
doritostains has quit [Client Quit]
doritostains has joined #ruby
AlexRussia has joined #ruby
tokik has quit [Ping timeout: 244 seconds]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
charliesome has joined #ruby
max96at|off is now known as max96at
Pharaoh2 has joined #ruby
<workmad3> ferr: you've missing the opening " in the xpath there
avrc has quit [Quit: this channel is bakas]
Takle has quit [Ping timeout: 255 seconds]
bigmac has joined #ruby
startupality has quit [Quit: startupality]
n1lo has joined #ruby
startupality has joined #ruby
livathinos has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
AlexRussia has quit [Ping timeout: 245 seconds]
C1V0 has joined #ruby
Takle has joined #ruby
rdark_ has quit [Ping timeout: 240 seconds]
krz has joined #ruby
krz has quit [Client Quit]
rdark has joined #ruby
doritostains has quit [Quit: WeeChat 1.0.1]
krz has joined #ruby
startupality has quit [Quit: startupality]
kl__ has joined #ruby
kl__ has left #ruby [#ruby]
kostitas has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
nateberkopec has joined #ruby
krz has joined #ruby
renderful has joined #ruby
Flcn has joined #ruby
antoinelyset has joined #ruby
postmodern has quit [Quit: Leaving]
ta_ has joined #ruby
antoinelyset has quit [Client Quit]
brb3 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
krz has joined #ruby
alkoma has joined #ruby
renderful has quit [Ping timeout: 265 seconds]
fandi has joined #ruby
n1lo has quit [Quit: Leaving]
kostitas has quit [Quit: Leaving]
jenrzzz has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shazaum has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
kostitas has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crazydiamond has quit [Remote host closed the connection]
krz has quit [Client Quit]
alkoma has quit [Ping timeout: 244 seconds]
tmtwd has joined #ruby
charliesome has quit [Quit: zzz]
krz has joined #ruby
bronson has joined #ruby
AlexRussia has joined #ruby
jenrzzz has quit [Ping timeout: 244 seconds]
charliesome has joined #ruby
startupality has joined #ruby
maximski has joined #ruby
petertretyakov has quit [Quit: Be back later ...]
bronson has quit [Ping timeout: 244 seconds]
shredding has joined #ruby
usrenmae has joined #ruby
claptor has quit [Quit: this channel is bakas]
<arup_r> How to get the output in the reverse order? https://gist.github.com/aruprakshit/66d5733292b48b0073f9
jeanlinu_ has quit [Remote host closed the connection]
<arup_r> File#rewind is not working
joonty has quit [Quit: joonty]
aswen has joined #ruby
<waxjar> File#rewind just goes back to the beginning of the file, so you can read it twice :)
<canton7> ..are you trying to write to the file from the end to the beginning?
<canton7> that makes exactly zero sense
<arup_r> no.. you missunderstood
josephndenton has joined #ruby
<arup_r> In each iteration I am trying to write at the beginning of the file..
<canton7> so.. keep overwriting yourself?
<arup_r> But I don't want to overwrite
<canton7> ...so you want to read the file, write your line at the beginning, then write out everything you just read?
<arup_r> I want write - 9 then write - 8 then write - 7 so on..
ta_ has joined #ruby
<canton7> you're writing to bytes on a filesystem. this isn't some array or queue that you can push around
livathinos has quit [Remote host closed the connection]
<canton7> once a line exists at the beginning of the file, that's where it stays (unless it's overwritten)
timonv_ has joined #ruby
<arup_r> Ok.. so how to get the output as I am looking for
<arup_r> >
<arup_r> ?
<waxjar> anyway, change the loop: 9.downto(0) { ... }
aclearman037 has joined #ruby
<arup_r> waxjar: that's an example... :)
<arup_r> But I want each time to add from the begining ...
it0a has quit [Quit: WeeChat 1.0.1]
livathinos has joined #ruby
<canton7> arup_r, you cannot. that is not how files work
usrenmae has quit [Quit: Leaving.]
tkuchiki has joined #ruby
anaeem1 has quit [Quit: Leaving...]
jheg has joined #ruby
<waxjar> why do you want that arup_r?
josephndenton has quit [Ping timeout: 245 seconds]
sundjango has joined #ruby
banjara has quit [Quit: Leaving.]
AlexRussia has quit [Ping timeout: 245 seconds]
<arup_r> canton7: Humm got it..
ta_ has quit [Ping timeout: 265 seconds]
timonv_ has quit [Ping timeout: 252 seconds]
<arup_r> I was a bit confused with queue/stack with IO stuff.. Sorry to bother you guys'
sigurding has quit [Quit: sigurding]
<chipotle> does anyone here use rubymine? what do you think?
<chipotle> how does it compare to a text editor like sublime text?
<chipotle> i've never used an IDE
<chipotle> it requires java (on mac, at least), so that makes me a bit weary...
SilkFox_ has joined #ruby
conniemj has joined #ruby
<workmad3> chipotle: if you take the time to learn an IDE, it can be great... I switched away from rubymine when I realised my use of it was just getting more and more treating it as a simple text editor
<jhass> apeiros_: you mentioned once you got a heavily modified rubocop config. Any chance to have a look at it somewhere? :)
<chipotle> workmad3: what do you use now?
timonv_ has joined #ruby
AlexRussia has joined #ruby
<workmad3> chipotle: so I switched to vim and instead try to improve my vim skills and setup to have the bits I miss from an IDE :)
<chipotle> is atom still too bloated to use for serious coding? i heard you can't open a file larger than 2mb with it??
<chipotle> i see
<chipotle> vim intimidats me
banjara has joined #ruby
<chipotle> i like sublime text, especially it's package manager
<chipotle> but it is just sooo much to learn
<chipotle> workmad3: how long ahve you been working on vim?
sevvie has quit [Ping timeout: 244 seconds]
<workmad3> chipotle: 2-3 years now, I think
mengu has quit [Ping timeout: 264 seconds]
<workmad3> chipotle: I've still barely scratched the surface too... but it's a gradual learning process :)
<workmad3> chipotle: any decent text editor will have a lot to learn though
SilkFox_ has quit [Ping timeout: 240 seconds]
<workmad3> chipotle: an IDE won't be any different
<chipotle> too bad lynda.com doesn't have a video on vim. i should watch their sublime text videos
<chipotle> btw, if anyone wants access, harvard has unlimited access to it and i can share the account details...
<workmad3> chipotle: http://vimcasts.org/ :)
doodlehaus has joined #ruby
<chipotle> heh, like railcasts
conniemj has quit [Ping timeout: 245 seconds]
sk87 has joined #ruby
<apeiros_> jhass: https://gist.github.com/apeiros/985c23bbd81edef9cb6c I'm not happy with it yet, though
<jhass> thanks
<apeiros_> yw
<chipotle> do you use zsh or bash?
<workmad3> zsh
<workmad3> but I tend to write shell scripts in bash still
startupality has quit [Quit: startupality]
sundjango has quit [Ping timeout: 256 seconds]
workmad3 is now known as wm3|away
sevvie has joined #ruby
doodlehaus has quit [Ping timeout: 264 seconds]
<chipotle> can't you write a shell script in any shell?
<chipotle> or is there such a thing as zsh scripts/zsh scripting? (which i haven't heard of)
startupality has joined #ruby
russt has joined #ruby
russt has quit [Client Quit]
<apeiros_> chipotle: syntax and/or built-ins differ
<j416> chipotle: bash and zsh are shells, scripts written for them are called shell scripts; but a shell script may be written for a specific shell (in that shell's language)
<wasamasa> there are people writing scripts with /usr/bin/zsh
ferr has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<chipotle> i see
<wasamasa> there are also people writing portable scripts
<chipotle> i want to use zsh, but mac comes with bash. i installed zsh via homebrew, but not sure what to do next
<wasamasa> both are minorities
<wasamasa> chipotle: use zsh interactively like everyone else
<ddv> chipotle: try ruby, you might like it
<j416> or just use bash
<apeiros_> mac also comes with an *old* bash :(
* j416 hides
<wasamasa> chipotle: and keep bash installed
<apeiros_> I still don't get why
<wasamasa> apeiros_: they fear the gplv3
<wasamasa> apeiros_: that's why they don't update
MrBeardy has joined #ruby
<apeiros_> wasamasa: oh, bash4 is gplv3?
<wasamasa> apeiros_: yes
<apeiros_> ok, that I can understand
n1lo has joined #ruby
<Timgauthier> what is gplv3?
<wasamasa> apeiros_: same things for the emacs version it's delivered with
<Timgauthier> lol
<wasamasa> Timgauthier: the third version of the gpl license
<Timgauthier> ah, and why would a company be afraid of it?
<wasamasa> because it poses legal problems to them to ship their operating system with software licensed with it
<chipotle> wasamasa: what do you mean, interactively?
<Timgauthier> i see
<wasamasa> at least that's what people assume
<Timgauthier> so they're using hostile licensing
<wasamasa> nobody knows for sure what apple is thinking
athan has quit [Read error: Connection reset by peer]
<apeiros_> Timgauthier: yes, gplv3 is code-friendly but corporation-hostile
<wasamasa> chipotle: well, set up your system to launch zsh whenever opening a terminal emulator
<chipotle> ok
<Timgauthier> apeiros_ sad state
<Timgauthier> why is it everyone seems to be so hostile and us vs them lately?
<wasamasa> chipotle: so that whenever you're opening one to do your computing, you get the useful interactive features zsh provides
<wasamasa> which are IMO a greater benefit than the features for shell scripting
<wasamasa> but then, I tend to use a proper language like ruby instead for my scripts
<shime> what are the benefits of zsh anyway?
rdark has quit [Ping timeout: 245 seconds]
<wasamasa> <()
<chipotle> wasamasa: do you have any configs i can use for zsh, for autocomplete and pretty colors and whatnot? :-)
<chipotle> i'd really appreciate it!
<wasamasa> chipotle: nothing generic enough, but there are lots of them on github
<wasamasa> chipotle: even premade configurations that are very generic (and bloated)
<chipotle> ok
<wasamasa> like oh-my-zsh and whatnot
<apeiros_> Timgauthier: I think if you're looking over everything, we're in much less hostile times than ever before.
<chipotle> i've heard of oh my zsh
<chipotle> not exactly sure what it is
<apeiros_> Timgauthier: but we also live in much "denser" times than ever before (much more people, and additionally much better connected people), so hostilities are much more apparent
startupality has quit [Quit: startupality]
Rollabunna has quit [Remote host closed the connection]
<Timgauthier> apeiros_ people keep saying that, but we have police unions stirring up the police forces against the population, we have governments consolidating power to themselves, we have violent extremists appearing out of our own populations, we have programmers/developers and corperations trying to harm eachother with hostile contracts and licensing. maybe i'm just in a weird intersection where everything looks crap
<wasamasa> Timgauthier: well, you could list to something like RMS talk at 31c3 for the other side
<shime> Timgauthier: the mass surveillance stuff doesn't help for sure
<Timgauthier> part journalist, part developer, part designer, this isn't an ideal place :P
<apeiros_> Timgauthier: I think all that stuff has been *much* *much* worse before
<apeiros_> Timgauthier: think things like KKK
<Timgauthier> yes it has
<apeiros_> lynch mobs
<apeiros_> etc.
dstarh has joined #ruby
<Timgauthier> but that shit is going on still, just in the middle east now
<apeiros_> I'm not saying we have reached a point where we can lean back and say all's fine
<apeiros_> by far
<Timgauthier> ya
<Timgauthier> bleh
krzkrz has joined #ruby
<chipotle> wasamasa: what exactly is oh my zsh?
krzkrz has quit [Client Quit]
shime has quit [Quit: leaving]
silkfox has joined #ruby
<wasamasa> Timgauthier: he proposes free software as essential part of society and argues against anything that might make it impossible
pushpak has quit [Quit: Leaving...]
<wasamasa> Timgauthier: including free software licenses that are corporation-friendly
<Timgauthier> i'm not sure about that idea though
* certainty finds zpresto more pleasing than oh-my-zsh
<wasamasa> well, I partially support the idea
<wasamasa> especially in the educational sector
spyderman4g63 has joined #ruby
<wasamasa> the GPL is the manifestation of that idea in form of a free license that intentionally limits your freedoms to ensure software stays free, no matter what
TheRinger has quit [Ping timeout: 265 seconds]
<Timgauthier> its a great idealism, but free software doesn't get written very often. People need income to survive and so they write software to do so, its very hard to get good ground breaking software. So being able to make money from software is a good thing, making pieces of software that are integral pieces to other software, and then tacking on a license that fucks with the companies ability to make money simply shatters the standards and
<Timgauthier> causes large faults.
<wasamasa> IIRC GPLv3 closed a loophole inherent in GPLv2
momomomomo has joined #ruby
<wasamasa> Timgauthier: it's not like these large faults get magically fixed for all other software :P
<Timgauthier> its like inventing a wheel that saves hundreds of billions of ltrs of fuel every year if its used on every car, but saying you can only use it if your car is free
krz has quit [Quit: WeeChat 1.0.1]
apurcell has joined #ruby
sigurding has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
arup_r has quit []
<wasamasa> there's also people that get hired for working on free software
<wasamasa> like, the linux and systemd developers
<canton7> a lot of the open-source work I do is so that I can use it at $dayjob in a commercial product
<canton7> I don't get paid to do the open-source work, but the reason for doing it goes against GPL
<kaspergrubbe> what do you mean that it goes against the GPL?
rsty has left #ruby [#ruby]
apurcell has quit [Ping timeout: 252 seconds]
<canton7> my motivation for writing open-source stuff is specifically so that I can use it in a commercial product. If I licensed it under GPL, I wouldn't be able to do this
livathinos has quit [Remote host closed the connection]
jeanlinux has joined #ruby
rkalfane has joined #ruby
kostitas has quit [Remote host closed the connection]
ta_ has joined #ruby
elabs-developer has joined #ruby
elabs-developer has left #ruby [#ruby]
<chipotle> Timgauthier: it seems the model that red hat has is working quite well
dmst has quit [Quit: Connection closed for inactivity]
bluenemo has joined #ruby
bluenemo has joined #ruby
<chipotle> i think their stock is up something ridiculous like 900% since the crash
<chipotle> i know it is blowing microsoft out of the water
<chipotle> and acquia, the corporate head of drupal that does consulting and has a SAAS product is doing quite well too...
delianides has joined #ruby
uri_ has joined #ruby
Takle has quit [Remote host closed the connection]
rdark has joined #ruby
<certainty> having a commercial product doesn't always mean that it must be non-free with respect to the 4 freedoms. Though realistically it often is
Spami has joined #ruby
djbkd has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
bayed has joined #ruby
<Timgauthier> certainty yes, but the gpl license doesn't allow
* ddv is just glad he doesn't have PHP crap on his resume
alkoma has joined #ruby
rdark has quit [Client Quit]
rdark has joined #ruby
dutchie has joined #ruby
<dutchie> is there a way to pass bindings to erb on the command line? or do i have to do it from an irb session
djbkd has quit [Ping timeout: 252 seconds]
nateberkopec has quit [Quit: Leaving...]
<certainty> Timgauthier: how is that?
<certainty> Timgauthier: it doesn't say anything about commercial vs. non-commercial products iirc
<Timgauthier> the GPL license is specifically written to keep things licensed by it from being sold in commercial products
<certainty> that's not true
<certainty> as long as the software is free it can be commercial
sevvie has quit [Ping timeout: 255 seconds]
alkoma has quit [Ping timeout: 245 seconds]
adriancb has joined #ruby
usrenmae has joined #ruby
Spami has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
DadoCe has quit [Remote host closed the connection]
sevvie has joined #ruby
nateberkopec has joined #ruby
<wasamasa> there's dual-licensing, too
Tricon has joined #ruby
DadoCe has joined #ruby
aboudreault has quit [Excess Flood]
<certainty> yes if nothing else helps that an option
Takle has joined #ruby
<kaspergrubbe> Takle: hello
sevvie has quit [Read error: Connection reset by peer]
soxet has joined #ruby
osvico has joined #ruby
sankaber has joined #ruby
<wasamasa> as in, offering an option for corporations and an option for private/open use
usrenmae has left #ruby [#ruby]
Tricon has quit [Ping timeout: 264 seconds]
<bradland> chiming in to point out that using the GPL does not mean you cannot charge for your software.
sevvie has joined #ruby
DadoCe has quit [Ping timeout: 264 seconds]
<wasamasa> you just need to provide the sources of the GPLed software
aboudreault has joined #ruby
<wasamasa> optionally for a copy charge
<bradland> the GPL is designed to make sure that software remains free as in freedom. the practical implication is that you must provide the source code to any application licensed under the GPL.
<apeiros_> bradland: "using the GPL" or "using GPLed software"? (afaik the latter is ok too, under conditions)
JDiPierro has joined #ruby
<bradland> most companies who “sell” GPL software are selling commercially supported versions of the software
livathinos has joined #ruby
<bradland> apeiros_: “using GPLed software” is a more subtle question, because it depends on the GPL version and whether you’re redistributing.
zai has left #ruby [#ruby]
LekeFly has quit [Ping timeout: 244 seconds]
<bradland> if you’re selling under a SaaS model, most GPL versions won’t impact you
<apeiros_> my main problem with GPL is that I have to figure it out at all.
<wasamasa> bradland: except the AGPL?
<bradland> agreed
<bradland> we have lawyers for this stuff
momomomomo has quit [Quit: momomomomo]
petertretyakov has joined #ruby
Oejet has left #ruby [#ruby]
<bradland> wasamasa: Affero GPL was designed specificially to address the SaaS loophole
<bradland> as i understand it anyway
<bradland> IANAL
chipotle has quit [Quit: cheerio]
<wasamasa> yeah, that was my interpretation of it, too
<bradland> as i am constantly reminded by my actual lawyer lol
mikecmpbll has quit [Ping timeout: 255 seconds]
<bradland> even with AGPL, it only applies to the software that was licensed under AGPL though
<bradland> not your entire software
Spami has quit [Ping timeout: 255 seconds]
<bradland> so, for example, if you use MongoDB in your SaaS app, you don’t have to license your entire app as AGPL
dutchie has left #ruby [#ruby]
<wasamasa> and instead you have to specify explicitly that you're using it and link to its project?
<bradland> however, if you modify MongoDB, you must provide open source those changes
valeriansaliou has joined #ruby
<bradland> wasamasa: that’s not a requirement of the AGPL as far as I know
<wasamasa> hmm
joonty has joined #ruby
mikecmpbll has joined #ruby
<wasamasa> so it's mostly about contributing?
<bradland> partly
iamninja has quit [Ping timeout: 250 seconds]
tuelz has joined #ruby
<bradland> think of it as preserving the freedom of the software
spider-mario has joined #ruby
<tuelz> anyone know a site that shows the most recently published gems?
ta_ has joined #ruby
<wasamasa> because I don't quite get yet why someone doing a fork of mongodb has to share these changes
joonty has quit [Client Quit]
<bradland> tuelz: not that i know of, but you could hit the rubygems api: http://guides.rubygems.org/rubygems-org-api/
<tuelz> I jut published a gem for a relatively unknown framework (pakyow) and I haven't mentioned it anywhere and it has 400+ downloads in the span of like a few days
<bradland> wasamasa: that’s the express purpose of AGPL
<tuelz> thinking ruby gems lies to fluff my ego
dblessing has joined #ruby
<bradland> tuelz: oh. so you’re looking for potential sources
<bradland> nope
<tuelz> not really
mostlybadfly has quit [Quit: Connection closed for inactivity]
<tuelz> looking to see if other new gems all see same success
<bradland> no lies, but keep in mind that there are many mirrors
joonty has joined #ruby
parduse has quit [Ping timeout: 264 seconds]
Spami has joined #ruby
startupality has joined #ruby
<bradland> so when someone’s mirror grabs a copy, i bet it shows up as a download
<tuelz> yeah was thinking mirrors have to be some of the downloads, but I would be REALLY surprised to see over 10 real downloads at this point
<bradland> it’s a big internet out there :)
<bradland> not to say people aren’t using it
Morkel has quit [Quit: Morkel]
valeriansaliou has quit [Ping timeout: 264 seconds]
<tuelz> 300+ mirrors seems unrealistic to me
parduse has joined #ruby
<bradland> agreed there
<wasamasa> bradland: the only scenario where this would be welcome I can think of is when a commercially-developed version turns out to be significantly more popular
<wasamasa> bradland: so that even in this case people won't wander off to it, but instead get the benefits of them contributing back their changes
ta_ has quit [Ping timeout: 265 seconds]
<bradland> the idea behind licenses like the AGPL is that it’s difficult to even contemplate all the possible scenarios, so the license is written to explicitly protect the OSS nature of the software as a broad preventative measure
<bradland> but yes, that’s definitely one case where it serves the purpose
majoh has quit [Remote host closed the connection]
SilkFox_ has joined #ruby
<wasamasa> s/won't/would/
majoh has joined #ruby
lmickh has joined #ruby
<bradland> "Pulls the 50 gems most recently added to RubyGems.org (for the first time). Returns an array of the XML or JSON representation of the gems.”
tesaf has joined #ruby
metadave has joined #ruby
wm3|away has quit [Ping timeout: 245 seconds]
jeanlinux has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
startupality has quit [Quit: startupality]
SilkFox_ has quit [Ping timeout: 264 seconds]
jbellone has left #ruby ["WeeChat 1.1-dev"]
jeanlinux has joined #ruby
Darryl__ has quit [Quit: Connection closed for inactivity]
cjm_ has left #ruby ["Leaving"]
iamninja has joined #ruby
startupality has joined #ruby
mrmargolis has joined #ruby
az7ar is now known as az7ar_away
alexherbo2 has joined #ruby
teddyp1c_ has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 256 seconds]
V_Ve has joined #ruby
fryguy9 has joined #ruby
jeanlinux has quit [Remote host closed the connection]
V_Ve has quit [Client Quit]
momomomomo has joined #ruby
allcentury has joined #ruby
sameerynho has quit [Remote host closed the connection]
sevenseacat has quit [Quit: Leaving.]
phantomtiger has joined #ruby
jeanlinux has joined #ruby
sevenseacat has joined #ruby
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Dolphi has joined #ruby
Kricir has joined #ruby
ta_ has joined #ruby
heftig has joined #ruby
heftig_ has quit [Read error: Connection reset by peer]
teddyp1cker has joined #ruby
scripore has joined #ruby
n1lo has quit [Ping timeout: 256 seconds]
charliesome has quit [Quit: zzz]
lessless has joined #ruby
mikecmpbll has quit [Ping timeout: 255 seconds]
josephndenton has joined #ruby
antgel has quit [Ping timeout: 245 seconds]
kasperti_ has joined #ruby
devdazed has joined #ruby
Takle has quit [Remote host closed the connection]
sevenseacat has quit [Remote host closed the connection]
evanjs has joined #ruby
silkfox has joined #ruby
russt has joined #ruby
josephndenton has quit [Ping timeout: 244 seconds]
chthon has quit [Ping timeout: 240 seconds]
josephndenton has joined #ruby
whoisjake has joined #ruby
iamninja has quit [Quit: ZZZzzz…]
baltazore has quit [Remote host closed the connection]
tvon has quit [Remote host closed the connection]
C1V0 has quit [Ping timeout: 264 seconds]
oleo has joined #ruby
arup_r has joined #ruby
kurtf has joined #ruby
max96at is now known as max96at|off
<bradland> this is the base script I use for Ruby shell scripts. any suggestions for improvement? https://gist.github.com/bradland/f216c923ae8d1aca1243
droidburgundy has joined #ruby
antgel has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
sevvie has quit [Read error: Connection reset by peer]
Takle has joined #ruby
rbennacer has joined #ruby
jeanlinux has quit [Remote host closed the connection]
jerius has joined #ruby
dangerousdave has joined #ruby
startupality has quit [Quit: startupality]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rollabunna has joined #ruby
maximski has quit []
scripore has quit [Quit: This computer has gone to sleep]
spyderman4g63 has joined #ruby
sevvie has joined #ruby
jeanlinux has joined #ruby
chipotle has joined #ruby
hippobottamus has joined #ruby
<hippobottamus> WHY oh WHY do my threads keep building up?? http://sht.tl/jQbP4l
<canton7> processes, not threads
<hippobottamus> it's ps to view threads
<hippobottamus> single process
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<PierreRambaud> bradland, https://github.com/leejarvis/slop it's really simple et easy to manage
<hippobottamus> ps -eLf (to view threads)
<canton7> ah, missed the flags
<canton7> I didn't think ruby used native threads?
<bradland> PierreRambaud: for shell scripts, i try to avoid external deps; even gems.
<bradland> i love slop though
Spami has quit [Quit: This computer has gone to sleep]
<canton7> trollop's nice, and you can include it in your project as a single file
alkoma has joined #ruby
<bradland> yeah, i used to inline trollop in my shellscript
Xsploit has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
<bradland> but i don’t find OptParse all that difficult
ta_ has quit [Ping timeout: 265 seconds]
<hippobottamus> I have a loop.. here's the meat of it.. http://pastebin.com/bLpq4EaV
teddyp1cker has quit [Remote host closed the connection]
<bradland> for shell scripts, i rarely need more than an option or two
<hippobottamus> am I misusing Thread.exit
enebo has joined #ruby
<waxjar> bradland, i wouldn't exit with status code 1 on --help and --version
<bradland> waxjar: 0 ?
<bradland> i guess so
<bradland> that’s success
<waxjar> yeah, 1 indicates an error imo
<canton7> why are you trying to join a thread to itself...?
whomp has joined #ruby
Xspl0it has quit [Ping timeout: 265 seconds]
<PierreRambaud> bradland, waxjar +1, version and help return the good result and shouldn't return other exit code than 0
last_staff has quit [Quit: last_staff]
metadave has quit [Ping timeout: 265 seconds]
doodlehaus has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pushpak has joined #ruby
<apeiros_> hippobottamus: "use threads to contain memory consumption" that's not what threads do ;-)
<bradland> hippobottamus: you should maybe consider your usage of threads here
alkoma has quit [Ping timeout: 264 seconds]
<bradland> err… what apeiros_ said
Pharaoh2 has joined #ruby
<bradland> maybe check out this book by jessie storimer: http://www.jstorimer.com/products/working-with-ruby-threads
DadoCe has joined #ruby
wm3|away has joined #ruby
bauruine has quit [Quit: ZNC - http://znc.in]
<bradland> i bought his working with unix processes book, and even for a dunce like me, it made them accessible
felipedvorak has joined #ruby
Channel6 has joined #ruby
<waxjar> hippobottamus: t.join should be where you check and sleep now, Thread.exit shouldn't be there, though you'll still not be benefitting from Threads then
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
mary5030 has joined #ruby
LekeFly has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Xeago has joined #ruby
phantomtiger has quit [Quit: phantomtiger]
Pharaoh2 has quit [Client Quit]
nonnatus_ has joined #ruby
<bradland> tuelz: definitely looks like your gem download quantity is an outlier: https://docs.google.com/spreadsheets/d/1j9_N7b0nQDen2JAQGJXyHuOsBuIwwrgxvWE5UcRQHBg/edit#gid=0
nonnatus_ has left #ruby [#ruby]
DadoCe has quit [Ping timeout: 244 seconds]
nonnatus has joined #ruby
conniemj has joined #ruby
Ankhers has joined #ruby
wm3|away is now known as workmad3
nonnatus has left #ruby [#ruby]
nonnatus has joined #ruby
Xeago has quit [Ping timeout: 256 seconds]
whomp has quit [Ping timeout: 264 seconds]
valeriansaliou has joined #ruby
Pharaoh2 has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
conniemj has quit [Ping timeout: 252 seconds]
bauruine has joined #ruby
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
rkalfane has joined #ruby
antgel has quit [Ping timeout: 244 seconds]
<hippobottamus> waxjar: the main reason I'm using threads here is so I can dump the memory after they're done doing their thing
<hippobottamus> so I'm trying to get them to actually exit before the main program exits
it0a has joined #ruby
<apeiros_> hippobottamus: well, again, that's not how threads work or what they do.
<waxjar> that's not what threads are for
metadave has joined #ruby
<apeiros_> memory is orthogonal to execution. threading is about execution.
sinkensabe has quit [Remote host closed the connection]
lea has joined #ruby
<waxjar> you could trigger the garbage collector after each iteration if you're very concerned about memory
valeriansaliou has quit [Quit: Be back later ...]
larissa has joined #ruby
tkuchiki has quit [Ping timeout: 252 seconds]
jeanlinux has quit [Remote host closed the connection]
byprdct has joined #ruby
tkuchiki has joined #ruby
ta_ has joined #ruby
jefus has joined #ruby
fumk is now known as JeSuisCharlie
Xeago has joined #ruby
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nickjj has quit [Quit: WeeChat 1.0.1]
SilkFox_ has joined #ruby
Rollabunna has quit [Remote host closed the connection]
jefus_ has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
evlute has joined #ruby
poguez has joined #ruby
<evlute> Hello, the Content_For Extension Show's me the [] array symbol or the # symbol. How can i disable it?
tjbiddle has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
<shevy> what does that mean evlute
<evlute> nothing :)
SilkFox_ has quit [Ping timeout: 240 seconds]
<evlute> it was just a random typing
<arup_r> lol
<arup_r> shevy: like Ponga: :)
Xeago has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
valeriansaliou has joined #ruby
<evlute> Sinatra Content_for is nothing you know about?
valeriansaliou has quit [Excess Flood]
tkuchiki has quit [Ping timeout: 252 seconds]
valeriansaliou has joined #ruby
qba73 has quit [Remote host closed the connection]
rkalfane_ has joined #ruby
andikr has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
qba73 has joined #ruby
scripore has joined #ruby
rkalfane has quit [Ping timeout: 240 seconds]
tagrudev has quit [Remote host closed the connection]
phantomtiger has joined #ruby
MasterPiece has quit [Ping timeout: 244 seconds]
codeFiend has quit [Quit: codeFiend]
apurcell has joined #ruby
baltazore has joined #ruby
jeanlinux has joined #ruby
fryguy91 has joined #ruby
<shevy> never heard that before
luriv has joined #ruby
<shevy> and you type Content_For and then Content_for so that is confusing too :D
apeiros_ has joined #ruby
kapil__ has quit [Quit: Connection closed for inactivity]
Fusl has quit [Ping timeout: 250 seconds]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
fryguy9 has quit [Ping timeout: 245 seconds]
anarang has quit [Quit: Leaving]
apurcell has quit [Ping timeout: 255 seconds]
bitcycle_ has joined #ruby
_maes_ has joined #ruby
crueber has joined #ruby
josephnd1nton has joined #ruby
apeiros_ has quit [Ping timeout: 265 seconds]
josephnd1nton has quit [Ping timeout: 245 seconds]
kasperti_ has quit []
davedev24_ has joined #ruby
baltazore has quit [Remote host closed the connection]
athan has joined #ruby
baltazore has joined #ruby
whomp has joined #ruby
sevvie has quit [Read error: Connection reset by peer]
sshao has joined #ruby
mikecmpbll has joined #ruby
antgel has joined #ruby
Soda has quit [Remote host closed the connection]
MasterPiece has joined #ruby
treehug88 has joined #ruby
ferr has joined #ruby
krz has joined #ruby
krz has quit [Client Quit]
krz has joined #ruby
rkalfane_ has quit [Quit: Textual IRC Client: www.textualapp.com]
krz has quit [Client Quit]
krz has joined #ruby
krz has quit [Client Quit]
banjara has quit [Quit: Leaving.]
sevvie has joined #ruby
gsd has joined #ruby
sambao21 has joined #ruby
bweston92 has quit [Quit: No Ping reply in 180 seconds.]
hmsimha has quit [Ping timeout: 252 seconds]
bal1 has quit [Quit: bal1]
qba73 has quit [Remote host closed the connection]
alkoma has joined #ruby
jobewan has joined #ruby
Takle has quit [Remote host closed the connection]
Takle has joined #ruby
nfk has joined #ruby
uri_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
MasterPiece has quit [Quit: Leaving]
JBreit has left #ruby ["Leaving"]
qba73 has joined #ruby
jenrzzz has joined #ruby
alkoma has quit [Ping timeout: 244 seconds]
bweston92 has joined #ruby
jeanlinux has quit [Remote host closed the connection]
Macaveli has quit [Ping timeout: 244 seconds]
max96at|off is now known as max96at
jeanlinux has joined #ruby
kristofferR has joined #ruby
chthon has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
ta_ has joined #ruby
jordsmi has joined #ruby
JDiPierro has quit []
haroldwu has quit [Read error: Connection reset by peer]
Fusl has joined #ruby
aganov has quit [Quit: Leaving]
jeanlinux has quit [Remote host closed the connection]
conniemj has joined #ruby
apeiros_ has joined #ruby
shredding has quit [Quit: shredding]
slawrence00 has joined #ruby
amundj has quit [Ping timeout: 240 seconds]
phutchins has joined #ruby
<bradland> evlute: content_for uses blocks, but they must return a string if you want the yield_content call to output anything that makes snse
<bradland> *sense
dionysus69 has quit [Remote host closed the connection]
<bradland> check the contents of your content_for block to make sure it is returning a string
Hobogrammer has joined #ruby
jeanlinux has joined #ruby
rbennacer has quit [Remote host closed the connection]
StoneCypher has joined #ruby
bweston92 has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 265 seconds]
bweston92 has joined #ruby
blahwoop has joined #ruby
qba73 has quit [Remote host closed the connection]
ponga has quit [Quit: Leaving...]
<blahwoop> whats the best way to turn a string like "Eagles 15 Cowboys 13" into an array of hashes like [ {"Eagles" => 15}, { "Cowboys" => 13} ]
conniemj has quit [Ping timeout: 255 seconds]
d10n-work has quit [Quit: Connection closed for inactivity]
athan has quit [Read error: Connection reset by peer]
johnzz has joined #ruby
jeanlinux has quit [Remote host closed the connection]
Pharaoh2 has joined #ruby
jeanlinux has joined #ruby
<apeiros_> blahwoop: scan(/(\w+) (\d+)/).map { |k,v| [k,v.to_i] }.to_h
qba73 has joined #ruby
<apeiros_> though, that'd give you a single hash. but i don't really see why you'd do an array of hashes. that seems backwards.
<bradland> also worth noting that parsing strings relies on the format of the string remaining constistent
sevvie has quit [Read error: Connection reset by peer]
<shevy> now that is a constistent description!
<blahwoop> im trying to figure out a way to break that string down so i can determine who won and add it to league points
codeFiend has joined #ruby
<bradland> in other words, beware of garbage input! :)
<blahwoop> not sure how i should approach it
<bradland> break it down in to steps
<blahwoop> i have to check if the team already exist and have league points
sigurding has quit [Quit: sigurding]
<blahwoop> if it does add on to it. if it doesnt create a new one and add points to it
<apeiros_> create proper classes
<bradland> i’d start by doing exactly what you’re doing: break each line down in to a hash of games
<apeiros_> put the logic for those steps into separate methods
<apeiros_> gist your code, get feedback.
<apeiros_> don't forget to also gist input data and expected output
jeanlinux has quit [Remote host closed the connection]
<apeiros_> ^ recipe for becoming a better coder.
ferr has quit [Ping timeout: 264 seconds]
arup_r has quit [Ping timeout: 264 seconds]
<bradland> if you’re really feeling spunky, throw up a public github repo. they’re free!
claw___ has quit [Read error: Connection reset by peer]
mostlybadfly has joined #ruby
claw___ has joined #ruby
davedev24_ has quit [Ping timeout: 265 seconds]
davedev24_ has joined #ruby
Soda has joined #ruby
sevvie has joined #ruby
SilkFox_ has joined #ruby
Zai00 has quit [Ping timeout: 256 seconds]
Takle has quit [Remote host closed the connection]
tus has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
ferr has joined #ruby
Channel6 has quit [Quit: Leaving]
evlute has quit [Ping timeout: 245 seconds]
sevvie has quit [Read error: Connection reset by peer]
<blahwoop> i have something like this right now
baltazore has quit [Remote host closed the connection]
livathin_ has joined #ruby
tercenya has joined #ruby
banister has quit [Ping timeout: 244 seconds]
_maes_ has quit [Ping timeout: 245 seconds]
<blahwoop> i have the has { "eagles" => 12, "cowboys => 15
<blahwoop> }
SilkFox_ has quit [Ping timeout: 244 seconds]
v0n has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
ta_ has joined #ruby
davedev2_ has joined #ruby
Kricir has quit [Remote host closed the connection]
davedev24_ has quit [Ping timeout: 265 seconds]
johnzz has quit [Quit: Textual IRC Client: www.textualapp.com]
maletor has joined #ruby
livathinos has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
livathin_ has quit [Ping timeout: 244 seconds]
fabrice31 has quit [Remote host closed the connection]
fabrice31 has joined #ruby
fabrice31 has quit [Read error: Connection reset by peer]
jheg has quit [Quit: jheg]
wpp has quit [Quit: ZZZzzz…]
ta_ has quit [Ping timeout: 244 seconds]
robustus is now known as robustus|Off
LekeFly has quit [Ping timeout: 244 seconds]
momomomomo has joined #ruby
LekeFly has joined #ruby
intyl has joined #ruby
chrishough has joined #ruby
v0n has joined #ruby
n008f4g_ has quit [Ping timeout: 245 seconds]
bronson has joined #ruby
<bradland> blahwoop: have you considered providing this data in a non-interactive way, rather than having to type the data in at a prompt
<bradland> for example, you could write the app so that users provide the data in a CSV file
CustosL1men has quit [Ping timeout: 264 seconds]
<blahwoop> yes. that's an option too
<bradland> which is easy to type by hand, and can be edited and reused
green-big-frog has left #ruby [#ruby]
<blahwoop> im not sure how i should handle the scores though. does team need it's own class
arietis has joined #ruby
Xeago has quit [Remote host closed the connection]
<bradland> i don’t think teams need their own class
<bradland> you’re working with games
<blahwoop> each team will have league points
<bradland> each game has two teams, and a winner
<bradland> define league points?
livingstn has joined #ruby
<blahwoop> if a team wins they get 3 points
<blahwoop> tie they get 1
arup_r has joined #ruby
<blahwoop> lose they get 0
snath has quit [Ping timeout: 244 seconds]
<bradland> ok, then you’ll want a team class
<bradland> what you’re missing right now is the game
<blahwoop> yes
bronson has quit [Ping timeout: 252 seconds]
<blahwoop> how to break it down and check if the team exist. and how to compare
<bradland> are the league points cummulative for the season?
cassianoleal has quit [Quit: (null)]
ta_ has joined #ruby
<blahwoop> yes
jefus_ has joined #ruby
<bradland> ok, so you’re going to need to “persist” those somewhere
<bradland> you can use a SQLite database, or you can simply build an object and serialize it
<bradland> your LeaguePoints class isn’t apropos right now
<blahwoop> i was going to have team have league_points
<bradland> should LeaguePoints be handling user input?
<bradland> build a CLI class, and have that interact with the user
<blahwoop> it should be named LP-calculator
<bradland> within the CLI, you’ll interface with the LeaguePoints class
kke_ has quit [Quit: Reconnecting]
kke has joined #ruby
<bradland> since LeaguePoints are going to be persistent, you’ll need to do things like load or initialize the league points using your persistence method
<bradland> i like to start with my data, then work on the CLI
Mon_Ouie has quit [Quit: WeeChat 1.0.1]
<bradland> think about how you’ll interact with the data, and build those classes
<bradland> use IRB to interact with them
<workmad3> if the data structure is pretty much a single flat table, I'd personally save/load it with CSV
<bradland> so you need Teams, Games, and leaguePoints
<bradland> doh, LeaguePoints
olivier_bK has quit [Ping timeout: 256 seconds]
<bradland> and i agree with workmad3 i like to keep it simple.
Takle has quit [Remote host closed the connection]
<workmad3> which also means clever users could pull it into excel and perform stats analyses on the data :)
<blahwoop> hmm ok
<bradland> i either use CSV, or i’ll serialize to YAML with a CSV exporter
jefus has quit [Ping timeout: 264 seconds]
jeanlinux has joined #ruby
DadoCe has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
<bradland> blahwoop: you’re going to end up with a lot of files for this project. i’d recommend getting it in a github repo ASAP.
roolo has quit [Remote host closed the connection]
<bradland> don’t worry about how neat and tidy your commits are yet. just focus on pushing code and getting feedback.
msgodf has quit [Remote host closed the connection]
dfinninger has joined #ruby
rbennacer has joined #ruby
hmsimha has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
<blahwoop> ok
momomomomo has quit [Ping timeout: 265 seconds]
paulfm has joined #ruby
scripore has joined #ruby
DadoCe has quit [Ping timeout: 256 seconds]
Flcn has quit [Quit: Be back later ...]
scripore has quit [Client Quit]
Xeago has joined #ruby
roolo has joined #ruby
tobago has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
geggam has joined #ruby
tubuliferous has joined #ruby
Kricir has joined #ruby
roolo has quit [Ping timeout: 255 seconds]
<sparr> On OSX 10.9.5 I have installed rbenv and ruby-build via homebrew. I used rbenv to install two versions of ruby. All was well. They are both in ~/.rbenv/versions and both showed up in `rbenv versions`. I opened a new shell and now rbenv can only see my system version again. My profile changes (for the path and shims and `rbenv init -`) seem to still be in place. What could be wrong?
Takle has joined #ruby
momomomomo has joined #ruby
djbkd has joined #ruby
Hobogrammer has quit [Ping timeout: 255 seconds]
<gr33n7007h> sparr, type "bash -l" then try rbenv again
Macaveli has joined #ruby
ta_ has joined #ruby
wallerdev has joined #ruby
<sparr> gr33n7007h: no change
<gr33n7007h> ah, ok thought you might have to run as a login shell
snath has joined #ruby
<chipotle> sparr: update your shell
<chipotle> or restart
<chipotle> bash or zsh?
<sparr> bash
<sparr> I opened a new shell
<sparr> and it seems to have all the right stuff
nrsk has joined #ruby
<sparr> shims at the start of my path, RBENV_ROOT is set, etc
sambao21 has quit [Quit: Computer has gone to sleep.]
brb3 has quit [Quit: ZZZzzz…]
larissa has quit [Quit: Leaving]
VictorBjelkholm has quit [Remote host closed the connection]
evlute has joined #ruby
scpike_ has joined #ruby
<bradland> sparr: what happens if you execute rbenv init -
<bradland> then try to switch
josephnd1nton has joined #ruby
Macaveli has quit [Ping timeout: 264 seconds]
<bradland> well, let’s back up
<bradland> start a new shell
spyderman4g63 has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 265 seconds]
renderful has joined #ruby
<bradland> and execute: type rbenv
<bradland> you should get ‘rbenv is a function'
delianides has quit [Remote host closed the connection]
conniemj has joined #ruby
larissa has joined #ruby
<chipotle> sparr: try restarting
qba73 has quit [Remote host closed the connection]
<chipotle> i had to do that with bash, before switching to zsh
dblessing has joined #ruby
Hijiri has quit [Ping timeout: 244 seconds]
defrang has quit [Quit: defrang]
sambao21 has joined #ruby
bMalum has quit [Quit: bMalum]
<pontiki> spawn of satan
<pontiki> oopssss
<pontiki> wrong window
josephnd1nton has quit [Ping timeout: 255 seconds]
mikecmpbll has quit [Ping timeout: 255 seconds]
<bradland> not sure shevy is around pontiki
ylluminarious has joined #ruby
bMalum has joined #ruby
<apeiros_> lol
<pontiki> shttaaaap
pietr0 has joined #ruby
joonty has quit [Quit: joonty]
icebourg has joined #ruby
<shevy> hey
djbkd has quit [Remote host closed the connection]
<bradland> apparently i misspoke :P
timonv_ has quit [Remote host closed the connection]
<shevy> that has made me curious though
<shevy> I'd like to see that other window pontiki
<apeiros_> +1
<shevy> hehehe
<bradland> check #witchcraft
<apeiros_> I'd like to know what they could have meant other than shevy…
adriancb has quit [Read error: Connection reset by peer]
Dolphi has quit [Read error: Connection reset by peer]
<pontiki> just consider it another episode of internet tourettes
<shevy> bradland yeah, who would have thought pontiki has a bit of a witch :)
adriancb has joined #ruby
Dolphi has joined #ruby
pengin has joined #ruby
ylluminarious_ has joined #ruby
<shevy> probably also likes ginger bread
sigurding has joined #ruby
kotk has joined #ruby
Jelco has quit [Ping timeout: 264 seconds]
DaniG2k has quit [Quit: leaving]
mquin has quit [Read error: Connection reset by peer]
kotk_ has quit [Ping timeout: 264 seconds]
sargas has joined #ruby
hmsimha has quit [Read error: No route to host]
<pontiki> probably
msgodf has joined #ruby
jeanlinux has quit [Remote host closed the connection]
<pontiki> but not to live in
lea has quit [Ping timeout: 264 seconds]
hmsimha has joined #ruby
<Dolphi> shevy, My RPG Maker project is coming to life! :D
grios has joined #ruby
bricker has joined #ruby
mquin has joined #ruby
ylluminarious has quit [Ping timeout: 264 seconds]
rdark has quit [Quit: leaving]
lea has joined #ruby
Rollabunna has joined #ruby
rdark has joined #ruby
apurcell has joined #ruby
SilkFox_ has joined #ruby
Jelco has joined #ruby
Jelco has quit [Changing host]
Jelco has joined #ruby
valeriansaliou has quit [Quit: Be back later ...]
tkuchiki has joined #ruby
<bradland> Dolphi: that’s awesome news. have you put the project on Github yet?
<shevy> Dolphi ah I think hanmac once wanted to do this
<Dolphi> bradland, No I haven't yet. I suppose it is about time to make a Github account.
<Dolphi> shevy, Make a 2d RPG?
<bradland> definitely. i think you’ll really like how much it helps others provide feedback.
<shevy> Dolphi dunno. I think he wanted to just replace some other rpg maker project or so
alex88 has quit []
<Dolphi> hanmac, You alive?
Rollabunna has quit [Ping timeout: 244 seconds]
<shevy> I have not been following things too much for a while but there also was another guy, also from germany... #openrmk...something
apurcell has quit [Ping timeout: 252 seconds]
SilkFox_ has quit [Ping timeout: 255 seconds]
* hanmac is back again
dfinninger has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
Takle has quit [Remote host closed the connection]
tjbiddle has quit [Quit: tjbiddle]
dman777_alter has joined #ruby
<hanmac> shevy most(all) of my stuff i didnt push on github or other servers did die ... good that it wast much again ... :/
Xeago has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.0.1]
<Dolphi> bradland, Oh shoot, you have to use Git via command line? Yikes, I hate touching that unless I am running a program or something.
<bradland> there’s a free app for that
<bradland> from Github
<bradland> you on a mac or windows?
<Dolphi> bradland, Thank the lord haha.
<Dolphi> bradland, Windows.
brb3 has joined #ruby
mattmcclure has joined #ruby
jenrzzz has joined #ruby
<Dolphi> hanmac, I heard that you were possibly interested in a RPG Maker project?
bluenemo has quit [Remote host closed the connection]
evlute has quit [Ping timeout: 244 seconds]
<hanmac> Dolphi: hm yes ... but currently i am writing on the side projects for that (like window gui or game rendering gems)
<chipotle> sparr: get it?
valeriansaliou has joined #ruby
ta_ has joined #ruby
<Dolphi> bradland, Do most people use their actual name or their username for GitHub? I feel like making it my real name may be better for if I ever decide to show future employers any of my code.
timonv_ has joined #ruby
<Dolphi> bradland, How else would they know that I'm the real GentlemanDolphi, right?
<bradland> yeah, i use bradland
<bradland> which is kind of an amalgamation of my name
banjara has joined #ruby
tzero has quit [Read error: Connection reset by peer]
spyderman4g63 has joined #ruby
mleung has joined #ruby
<Dolphi> My name is Travis lol.
banjara has quit [Remote host closed the connection]
<bradland> gotta head to lunch, bbiab
<Dolphi> Enjoy!
<Dolphi> hanmac, How long have you been working with games?
codeFiend has quit [Quit: codeFiend]
<hanmac> Dolphi: you mean in general or with RPGMaker or with a specific version?
thumpba has joined #ruby
Fretta has joined #ruby
jenrzzz has quit [Ping timeout: 240 seconds]
SOLDIERz has joined #ruby
nunayerBeezwax has joined #ruby
evlute has joined #ruby
<Dolphi> hanmac, I actually just decided to learn programming about a month ago. Messed with Java and a little C# before deciding to just learn Ruby. I inevitably learned of RPG Maker, and it peaked my interest. I was recommended XP to help me learn scripting with Ruby as well as some aspects of game dev, so I bought it two days ago and have been enjoying it ever since.
<Dolphi> hanmac, In general.
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bronson has joined #ruby
tzero has joined #ruby
<hanmac> XP is interesting but VX and VXAce have better in game api for additional scripts (i did begin with the rpg games with RPG2000 when it was as demo on a game magazine)
<hanmac> Dolphi: my current plan and big project in the future is something similar to the RPGMakers but first free, and second totally written in Ruby ;P
sigurding has quit [Read error: Connection reset by peer]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
beneggett has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
<Dolphi> hanmac, I was told that XP was better for beginners and that Ace may be a little too complicated for a newbie, so I took that advice since it was the only advice given at the time.
baroquebobcat has joined #ruby
ta_ has quit [Ping timeout: 265 seconds]
<Dolphi> hanmac, Wait...You want to code an engine?
terlar has quit [Ping timeout: 244 seconds]
maximski has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
thumpba has quit [Ping timeout: 264 seconds]
<hanmac> Dolphi: hm yes XP might be better for beginners, and yes i want to design a Maker and a GameEngine as pack
Tricon has joined #ruby
tjbiddle has joined #ruby
bronson has quit [Ping timeout: 245 seconds]
<Dolphi> Wow, that sounds pretty complicated. I'm currently working my way through the creation of a short RPG to help me learn the program (and maybe learn about scripting so that I'm not simply drag and dropping the whole game) before I start working on a bigger RPG.
rbennacer has quit [Remote host closed the connection]
<Dolphi> I eventually would like to have one Greenlit with Steam, but I'm taking my time with that. First I need to learn the basics of game dev. Maybe in a year or so I can work on something big.
valeriansaliou has quit [Read error: Connection reset by peer]
Senjai`work has joined #ruby
Senjai`work is now known as Senjai
rathodvikas10 has joined #ruby
jenrzzz has joined #ruby
Pharaoh2 has joined #ruby
arietis has joined #ruby
dfinninger has joined #ruby
Senjai has joined #ruby
Senjai has quit [Changing host]
thumpba has joined #ruby
wallerdev has quit [Quit: wallerdev]
valeriansaliou has joined #ruby
rathodvikas10 has left #ruby [#ruby]
chthon has quit [Ping timeout: 265 seconds]
<pontiki> what is XP?
<Dolphi> RPG Maker XP
<pontiki> oh
rbrs has quit [Ping timeout: 265 seconds]
bitcycle_ has quit [Ping timeout: 252 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
hamakn has quit [Remote host closed the connection]
<Dolphi> I just created a GitHub account and made my first repository. Do I need to hit "publish repository" to make it public, or is it already up for people to view?
Takle has joined #ruby
gfawcettpq has quit [Ping timeout: 245 seconds]
apurcell has joined #ruby
<Dolphi> Also, how would I add my RPG Maker XP files into said repository to be shared online?
ptrrr has joined #ruby
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
pwnz0r has joined #ruby
L8__ has joined #ruby
sk87 has joined #ruby
Photism has joined #ruby
valeriansaliou has quit [Read error: Connection reset by peer]
<pontiki> github should be giving you the instructions
<L8__> newbies question: in sinatra, there's: get '/' do
sk87 has quit [Client Quit]
<L8__> does 'do' is ruby's keyword?
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
athan has joined #ruby
djbkd has joined #ruby
<speakingcode-wor> L8__: do...end are the wrappers of 'blocks'
djbkd has quit [Remote host closed the connection]
<speakingcode-wor> they are like anonymous functions in javascript, sort of
<L8__> hmm
djbkd has joined #ruby
<L8__> gotcha
<speakingcode-wor> so get '/' do...end is calling a method named get, and passing two arguments: '1', and a block.
ddd has joined #ruby
<speakingcode-wor> err\
valeriansaliou has joined #ruby
<speakingcode-wor> '/' not '1' sorry
<L8__> how does it called in ruby
<L8__> just anonymous function?
ta_ has joined #ruby
<speakingcode-wor> not sure what you mean?
allcentury has joined #ruby
<L8__> the do..end block
<speakingcode-wor> oh
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<L8__> speakingcode-wor, nevermind, so it just called ruby blocks
deric_skibotn has joined #ruby
<speakingcode-wor> L8__: yeah. it is a block
Nameo0 has joined #ruby
<speakingcode-wor> there are procs also (blocks that are named, essentially) and lambdas that are similar but slightly different
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
<L8__> thanks :)
econerd4ever has joined #ruby
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
<speakingcode-wor> to implement the use of a block in that fashion, you don't need to name a parameter in your method - you can actually pass a block to _any_ method as it's last argument.. the method can execute the block by calling yield
codeFiend has joined #ruby
arietis has joined #ruby
<speakingcode-wor> also, you can use { } instead of do..end for one-liners and such
ta_ has quit [Ping timeout: 244 seconds]
wkmanire has joined #ruby
Pharaoh2 has joined #ruby
<L8__> speakingcode-wor as I understand the do..end is for multi-lines, and {} for single
<L8__> or at least its the convention
<workmad3> L8__: unless you follow weirich's rule...
<L8__> weirich's rule?
<workmad3> that 'do end' is for when you don't care about the block's return value, and {} is for when you do
* apeiros_ prefers weirich's rule
Pixi_ has quit [Quit: Pixi_]
<workmad3> I like the idea, but I haven't managed to quite train myself out of 'do end' for multiline yet
<apeiros_> select do |x| x? end.map do |x| x! end.first # chaining on `end` looks ugly
Xiti has joined #ruby
Xiti has quit [Changing host]
Xiti has joined #ruby
<workmad3> it doesn't help that my vim inserts a closing } when I hit {, but only inserts a closing 'end' when I hit return :)
antgel has quit [Ping timeout: 244 seconds]
n1lo has joined #ruby
<workmad3> but then, I can't recall a time I've chained onto a multi-line block in the last 5 years either :)
<apeiros_> true. a bit an anti-style on its own
msgodf has quit [Ping timeout: 245 seconds]
sigurding has quit [Read error: No route to host]
sigurding_ has joined #ruby
wallerdev has joined #ruby
druznek has quit [Quit: Leaving]
rdark has quit [Quit: leaving]
phantomtiger has quit [Quit: phantomtiger]
scripore has joined #ruby
iamninja has joined #ruby
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
apurcell has quit [Ping timeout: 252 seconds]
hamakn has joined #ruby
hamakn has quit [Remote host closed the connection]
baweaver has joined #ruby
lea has quit [Changing host]
lea has joined #ruby
Soda has quit [Remote host closed the connection]
djbkd has joined #ruby
aswen has quit [Ping timeout: 245 seconds]
momomomomo has quit [Quit: momomomomo]
paulfm has quit [Quit: Zzzzz...]
LouisRoR has quit [Ping timeout: 265 seconds]
<sparr> chipotle: restarting my whole computer? that seems overkill. I'd rather figure out the problem.
livathinos has joined #ruby
LouisRoR has joined #ruby
<sparr> I'd like to figure out why rbenv isn't seeing my ~/.rbenv/versions/*
whoisjake has quit []
apurcell has joined #ruby
maximski has quit []
pengin has quit [Remote host closed the connection]
paulfm has joined #ruby
dfinninger has quit [Ping timeout: 252 seconds]
Channel6 has joined #ruby
dfinninger has joined #ruby
jordsmi has quit [Quit: Connection closed for inactivity]
ddd has quit [Ping timeout: 264 seconds]
LouisRoR has quit [Ping timeout: 240 seconds]
Flcn has joined #ruby
s00pcan_ has quit [Read error: Connection reset by peer]
timonv_ has quit [Read error: Connection reset by peer]
sambao21 has joined #ruby
livathinos has quit [Remote host closed the connection]
beneggett has joined #ruby
tmtwd has quit [Remote host closed the connection]
melik_ has joined #ruby
fryguy91 has quit [Quit: Leaving.]
josephnd1nton has joined #ruby
SilkFox_ has joined #ruby
<shevy> hmm
<shevy> if I am about to build a long and complicated regex, Regexp.quote() would be good to use in such a case?
evlute has quit [Quit: WeeChat 1.0.1]
arup_r has quit [Ping timeout: 245 seconds]
<eam> shevy: as opposed to what?
codeFiend has quit [Quit: codeFiend]
<shevy> hardcoding the /regex/
claw___ has quit [Ping timeout: 245 seconds]
claw has joined #ruby
s00pcan_ has joined #ruby
<shevy> I seem to hardcode the regex almost always
renderfu_ has joined #ruby
Guest34594 has joined #ruby
<eam> is it a literal pattern? or are you constructing it dynamically?
MrBeardy has quit []
codeFiend has joined #ruby
<shevy> oh it is always the same; I parse a remote website (so just a big html string really) for some users
josephnd1nton has quit [Ping timeout: 240 seconds]
SilkFox_ has quit [Ping timeout: 264 seconds]
arup_r1 has joined #ruby
<eam> oh wow, ruby regex doesn't have \Q\E :(
L8__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s00pcan_ has quit [Remote host closed the connection]
chrishough has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
<bradland> oh man, shevy, you’re using regex to to parse html?
s00pcan_ has joined #ruby
<bradland> never admit that in public
<shevy> bradland to extract the desired information
<shevy> bradland why not?
<bradland> eam: what’s \Q\E ?
<workmad3> shevy: html isn't amenable to regexp in the general case
dfinninger has quit [Remote host closed the connection]
<workmad3> shevy: or, in other words, regexp simply aren't powerful enough to properly process HTML
<bradland> shevy: personally, i don’t give a damn. whatever works, but there are entire tomes written on why using regex to parse HTML is a “bad thing”
Takle_ has joined #ruby
grios has quit [Read error: Connection reset by peer]
<bradland> however, there’s a case to be made that “parsing HTML” and “extracting a sub-string from some text that happens to be HTML” are two different things
<bradland> basically, if you’re returning objects that look like a DOM, you’re parsing HTML
arup_r1 has quit [Client Quit]
<bradland> if you’re just getting some text back, you’re probably OK
<shevy> so now you are saying it is ok!
<eam> bradland: the equiv of /#{Regexp.quote("foo")}/ is /\Qfoo\E/
<shevy> eam is that in perl?
<workmad3> bradland: only if you don't mind if the sub-string may appear in absolutely any part of the document :)
<eam> pcre yes
<shevy> hmm
<bradland> gotta be perl
<certainty> workmad3: you can solve every $problem with regex. you need to try harder if seem to can not :p
Takle has quit [Ping timeout: 256 seconds]
<shevy> the \E is needed to stop the starting \Q ?
<bradland> workmad3: true dat!
<eam> looks like another thing missing in ruby's almost pcre clone but not quite regex language
arup_r has joined #ruby
Nameo0 has quit [Ping timeout: 264 seconds]
<workmad3> certainty: unfortunately, maths tells us it can't be done :(
<shevy> you may be the only guy here who knows these things eam!
<eam> doubt it
<bradland> i thought PCRE was turing complete, or some such thing
<certainty> workmad3: :) i
Guest31 has joined #ruby
Guest31 is now known as grios
<shevy> oh I am so dumb... Regexp.quote() returns a string, not a regex
jenrzzz has quit [Ping timeout: 244 seconds]
<eam> bradland: nope, not that it really matters
melik_ has quit [Quit: (null)]
paulfm has quit [Read error: Connection reset by peer]
<certainty> bradland: no it is not. for example you can't count with regexp
paulfm has joined #ruby
delianides has joined #ruby
delianides has quit [Remote host closed the connection]
<bradland> i know just enough regex to get by
<workmad3> eam: or, put another way "Thankfully, regexp isn't turing complete"
<apeiros_> certainty: but you can match (recognize) primes with it :D
hmsimha has quit [Ping timeout: 252 seconds]
<apeiros_> I wouldn't wonder if perl's regex engine actually was turing complete. afaik you can execute code within it
<certainty> it probably is
<eam> that is assuming we're excluding language features like (??{})
meschi has quit [Ping timeout: 244 seconds]
kasperti_ has joined #ruby
LekeFly has quit [Ping timeout: 245 seconds]
mikecmpbll has joined #ruby
<eam> which is eval in regex
<certainty> apeiros_: inside the regexp or in things like substitutions?
s00pcan_ has quit [Remote host closed the connection]
<bradland> heh, that’s cheating
bitcycle_ has joined #ruby
<eam> certainty: perldoc perlre, look for "(??{ code })"
ddd has joined #ruby
s00pcan_ has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
<certainty> eam: i see. scary
arietis has quit [Read error: Connection reset by peer]
<eam> or "(?{ code })"
s00pcan_ has joined #ruby
<eam> but it's an experimental feature
paulfm has quit [Client Quit]
<eam> no reason ruby couldn't implement that, though
renderfu_ has quit [Remote host closed the connection]
<eam> but it's not part of pcre (which is somewhat independent from perl)
arup_r has quit [Quit: Leaving.]
<certainty> i wonder how such features are justified
<eam> they're useful?
djbkd has quit [Remote host closed the connection]
LekeFly has joined #ruby
<eam> clearly pcre did something right, ruby copied it verbatim
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bradland> except for \Q\E
<eam> bradland: yeah and a few other minor bugs :(
<Dolphi> bradland, ^
<bradland> Dolphi: wut wuuuuuuuuut!
<bradland> nice dude
paulfm has joined #ruby
vyorkin has joined #ruby
grios has quit [Read error: Connection reset by peer]
petertretyakov has quit [Quit: Lingo: www.lingoirc.com]
<certainty> eam: i rarely use regexp for anything complicated, so i might just not have come across a case where i wanted regexps so bad that i looked for something like this
<Dolphi> bradland, Are you able to playtest it from GitHub?
havenwood has joined #ruby
<eam> certainty: generally I'm in agreement
<bradland> Dolphi: i can “clone” the repository to my computer and try to run it
<bradland> however, i am on a mac, so game.exe won’t work for me
<Dolphi> bradland, Alright. It's just the ship for now, so don't expect much.
<eam> certainty: useful for debugging though
<workmad3> bradland: 'brew install wine'? ;)
<Dolphi> bradland, Does that mean that I can't run my game on OSX?
<bradland> workmad3: not a chance in hell lol
<bradland> Dolphi: not sure. you’re using RPG Maker XP?
bitcycle_ has quit [Ping timeout: 244 seconds]
arietis has joined #ruby
<Dolphi> Yes
<bradland> i’m not famliar with that software, but i’ll have a look
fryguy9 has joined #ruby
meschi has joined #ruby
<Dolphi> Well that would be stupid. :(
phutchins has quit [Ping timeout: 264 seconds]
<eam> what's the best graphics library for ruby? say I want to create windows, surfaces, and do GL in a cross platform manner
beneggett has quit [Read error: Connection reset by peer]
<eam> is rubysdl still current? or is there something better
<bradland> Dolphi: looks like i’d have to install some Windows emulation stuff in order to run it.
metadave has joined #ruby
<certainty> eam: yeah that's something i haven't thought of. That's true. OTOH if regexp get so complicated that i have to resort to some limeted form of debugging i usually try to break them apart and test the parts individually. Might be problematic in some cases though.
RandyT has quit [Quit: ZNC - http://znc.in]
<eam> yeah, sometimes it's useful to watch it traverse a document
<shevy> eam you could give rubygame a try, SDL bindings perhaps though it was abandoned a few years ago
teddyp1cker has joined #ruby
wpp has joined #ruby
<Dolphi> bradland, You don't have to if you don't want to man. Its nothing special (yet), but still, I'm proud of it!
<apeiros_> eam: maybe gosu
pengin has joined #ruby
<bradland> eam: when you say graphics library, do you mean a standard CRUD app, or a game?
tjbiddle has quit [Read error: Connection reset by peer]
<eam> either, really
<bradland> for 2D games, gosu looks really cool
sigurding_ has quit [Read error: No route to host]
tjbiddle has joined #ruby
sigurding has joined #ruby
<eam> back when I was first learning ruby I played around a bit with ruby sdl and started on a HOMM clone
<bradland> but unless you want to have an oddly themed application, it’s probably not the best for a CRUD app
rbennacer has joined #ruby
<eam> it'd be fun to move it to something current
djbkd has joined #ruby
<bradland> for crossplatform CRUD apps, i’d probably use Qt
<eam> bradland: oh yeah, not for native widgets
<bradland> there’s gotta be Ruby Qt binding
RandyT has joined #ruby
phutchins has joined #ruby
<workmad3> green shoes? :)
beneggett has joined #ruby
<eam> I got as far as implementing A* pathing and simple tile graphics but never actually finished it
<workmad3> oh wait, that's gtk not qt
<certainty> qtk
<Dolphi> bradland, Don't worry about testing it yet. I'm going to finish up the ship to make it a little more interesting first. :)
<bradland> cool
<workmad3> ah, blue_shoes is qt shoes :)
<bradland> i have a Windows VM that I can use to try it out :)
<Dolphi> I swear I'm already addicted to this, even though I'm using basic software and making simple games haha.
<bradland> Dolphi: the greatest thing about programming is that your supply of materials is virtually unlimited
<bradland> your only boundaries are your imagination and your own ability
* certainty feels limited too often
GaryOak_ has joined #ruby
<Dolphi> bradland, I'm learning that already and I love it.
<workmad3> bradland: and time...
<shevy> certainty tight pants or something?
<bradland> tight pants can be very limiting
<shevy> try naked coding style
delianides has joined #ruby
<Dolphi> shevy, Ruby? :D
<shevy> you'll feel so much more while coding
rbennacer has quit [Ping timeout: 255 seconds]
<shevy> Dolphi in general!
nanoyak has joined #ruby
<certainty> shevy: either that or i'm just a bit stupid :)
<shevy> well not during winter perhaps
<bradland> shit just got weird
<eam> are there any good games in ruby?
<shevy> games are hard
<workmad3> certainty: well, we weren't going to say anything but... ;)
lessless has joined #ruby
<certainty> workmad3: hehe
<eam> shevy: not really
<shevy> I always wonder why. Perhaps because ruby allows for so many things
<Dolphi> eam, Give me a year or two and I'll have a good game for you.
<shevy> eam there is a game I found fun; it was written in scheme https://sourceforge.net/projects/nazghul/
<shevy> the author tried to transition into python
<workmad3> games are a convergance of a lot of different areas
<shevy> but also gave up on python, so he went back to scheme/lisp again
<eam> the top perl game is probably http://www.frozen-bubble.org/
<certainty> now we're talking. scheme!
<shevy> frozen bubble is fun
jenrzzz has joined #ruby
nanoyak has quit [Client Quit]
<certainty> hmm that's not scheme at least not the code on github
hmsimha has joined #ruby
<shevy> certainty have a look at things like chester.scm in https://github.com/Elzair/nazghul/tree/master/worlds/haxima-1.002, you'll find the code easy to read even without knowing any scheme!
bitcycle_ has joined #ruby
sigurding has quit [Quit: sigurding]
Darryl__ has joined #ruby
<certainty> shevy: thanks. looking at it
weeb1e_ has joined #ruby
weeb1e has quit [Ping timeout: 245 seconds]
Kricir has quit [Remote host closed the connection]
paulfm has quit [Quit: Zzzzz...]
<bradland> Dolphi: when you go to github and look at your project, are all the files there?
<bradland> i cloned the repo, but when i run Game.exe, nothing happens
<bradland> not sure if i’m missing files or something
whoisjake has joined #ruby
Takle_ has quit [Remote host closed the connection]
<chipotle> sparr: yes, well, i know from the past experience sometimes you have to restart the computer if bash doesn't update
antgel has joined #ruby
<bradland> sparr still having rbenv issues?
<chipotle> but keep looking for another solution, whereas a restart takes 30 seconds
klaas_ is now known as klaas
athan has quit [Read error: Connection reset by peer]
<Dolphi> bradland, All files as in resources and everything?
<certainty> ah tinyschem
athan has joined #ruby
<bradland> Dolphi: yeah.
phutchins has quit [Ping timeout: 264 seconds]
<ReinH> restart the computer? Should be enough to create a new login session
<Dolphi> bradland, I only uploaded the .exe for playtesting and the RPGMaker XP project file
<bradland> ah, ok
<Dolphi> bradland, No, I didn't include resources.
<Dolphi> bradland, I have to?
<bradland> dunno much about that software, so not sure
<bradland> do you intend to open source the project?
<bradland> if so, i’d upload everything
<bradland> everything required to build/edit anyway
unreal has quit [Quit: Very funny Scotty. Now beam down my clothes!]
kurtf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Kricir has joined #ruby
unreal has joined #ruby
bluOxigen has quit [Ping timeout: 264 seconds]
<certainty> ReinH: you're the guy behind haskelllive
slash_nick has quit [Changing host]
slash_nick has joined #ruby
<certainty> ?
<ReinH> certainty: yeah
<Dolphi> Well I mean, I just want to create this game for experience, so I'm not sure that I want people doing the work for me
<Dolphi> bradland, But I definitely don't mind sharing it.
<certainty> ReinH: cool. I liked that :)
<workmad3> Dolphi: it's unlikely the .exe contains all the embedded resources
<bradland> Dolphi: the nice thing about github is that you control the repo, so no one could change your code without you approving the change.
<ReinH> certainty: cool :)
<bradland> and workmad3 is correct. the game.exe file is only 68 KB, which is too small to contain the entire game
<workmad3> bradland: well, not necessarily too small... but very likely to be too small :)
<eam> experience working collaboratively is even more valuable than experience in programming solo
blahwoop has quit [Remote host closed the connection]
<bradland> you’ll want to go through whatever tutorials are available to make sure you’re building the game correctly.
momomomomo has joined #ruby
grn has joined #ruby
<certainty> moar haskellers doing ruby... benzrf being another one and Mon_Quie ei think
DonOtreply has quit [Quit: DonOtreply]
<workmad3> it's worth noting that putting compiled resources in a git repo don't make much sense either... more sensible would be to put in the rpgmaker sources, exclude the build directory
michaeldeol has joined #ruby
<grn> Hi! Is there a way to include a source file in a Jekyll post? I'd like to keep sources separate from posts/pages.
<Dolphi> workmad3, So I need to upload all files from my game to GitHub is what I understand. The game works perfectly on my computer, but I didn't include all of the files onto GitHub because I'm a newbie and I was unaware of this.
<bradland> workmad3: good point re 68K. (vis a vis http://10k.aneventapart.com)
<workmad3> and then when you want to create a release, you create an archive of a build and upload that
<bradland> Dolphi: it’s cool. we can get you oriented.
sargas has quit [Quit: This computer has gone to sleep]
<bradland> Github is a tool for sharing source code.
samfisher has joined #ruby
pdoherty has joined #ruby
<samfisher> any idea if I can run ruby on Windows Mobile platforms?
<bradland> In the case of the tool you’re using, there’s more than just source code, so what you’d want to do is put a project folder together
<workmad3> bradland: you can also upload specific binary releases to a repo :)
<terrellt> RPG Maker sources are licensed, aren't they?
<workmad3> but need to go get food now
<terrellt> May want to be careful with that.
baweaver has quit [Remote host closed the connection]
<bradland> good point
workmad3 is now known as wm3|away
<bradland> don’t upload the actual RPG Maker program, only your project files
d10n-work has joined #ruby
spider-mario has quit [Ping timeout: 264 seconds]
<bradland> i see this is commercial software
spider-mario_ has joined #ruby
<Dolphi> Alright. I already have a directory called Projects which includes everything for my game. I'm assuming that I need to upload that.
<bradland> have a look at this guy’s Github repo: https://github.com/akesterson/rpgskeleton
<terrellt> If the sprites are part of the project files, I'd avoid those too.
codeFiend has quit [Quit: codeFiend]
<terrellt> Unless those are open.
<Dolphi> It contains Audio, Data, and Graphics directories
spider-mario_ is now known as spider-mario
<bradland> see how he has folders for the various components?
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
dfinninger has joined #ruby
<bradland> yikes, yeah, this gets kind of prickly
<bradland> because you’re using that tool
<bradland> depending on the licensing, you may not be able to publish everything
bronson has joined #ruby
<bradland> hrm, terrellt, it looks like this product might be set up so that you can share your projects without blowing up their licensing terms
<bradland> there’s mention of packing/unpacking here: https://github.com/akesterson/rpgskeleton
sambao21 has quit [Quit: Computer has gone to sleep.]
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bradland> so it would seem to me that the project files would only contain materials that can be shared (pulled in by the packaging process)
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teddyp1cker has quit [Remote host closed the connection]
sambao21 has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
rbennacer has joined #ruby
Pharaoh2 has joined #ruby
x77686d has joined #ruby
phutchins has joined #ruby
Tricon has quit [Ping timeout: 264 seconds]
gfawcettpq has joined #ruby
chrisja has joined #ruby
Tricon has joined #ruby
bronson has quit [Ping timeout: 264 seconds]
<chipotle> wow, i jsut saved my grandma $500 a year on auto insurance by switching to geico
<chipotle> finally got her to stop using liberty mutual... after 50 years, she just got off the phone cancelled with them, since 1960 she's had it
codeFiend has joined #ruby
agrinb has joined #ruby
sandelius has joined #ruby
pushpak has quit [Quit: Linkinus - http://linkinus.com]
<Dolphi> Sorry, I just got another package today that I've been expecting.
<Dolphi> Was afk for awhile
nanoyak has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
rpag has joined #ruby
Takle has joined #ruby
<Dolphi> terrellt, So since I am using all stock sprites and tile sets, I shouldn't upload it..?
<Dolphi> I haven't looked into the licensing myself yet.
<nonnatus> chipotle, are you a spam bot?
<chipotle> um no
kirun has joined #ruby
<chipotle> are you paranoid?
<chipotle> ask your dr if haldol is right for you
Trep has joined #ruby
<Dolphi> bradland, Dang, I didn't know that it would be so difficult to share a video game..
baltazore has joined #ruby
<Dolphi> It isn't like I'm selling it or anything.
<terrellt> Dolphi: I dunno, just check into licensing before you start putting things up.
Pharaoh2 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<bradland> Dolphi: this is programming in a nutshell :)
<bradland> everything is more detailed than it appears
gfawcettpq has quit [Ping timeout: 264 seconds]
<Dolphi> Well I guess I will take dowon this repository then.
<nonnatus> chipotle: thanks, I’m laughing like a jackass at work
<chipotle> :-)
<Dolphi> bradland, This is life in a nutshell.
<chipotle> glad ot help!
hamakn has joined #ruby
<chipotle> i like making people laugh :D
<chipotle> don't laugh too much like a crazy jackass too, else comes the straight jacket :)
vyorkin has quit [Quit: WeeChat 1.0.1]
<godd2> chipotle people always laugh at me. Am I doing it right?
<chipotle> i was just excited, i've been trying for three years for her to make the switch
AlexRussia has joined #ruby
<chipotle> godd2: yes! :D
<godd2> hooray!
<godd2> all that crying to sleep must be worth it!
kish is now known as CharlieJob
kurtf has joined #ruby
Guest31597 is now known as marahin
Parker0 has joined #ruby
agrinb has quit [Quit: Leaving...]
marahin is now known as Guest15720
rbennacer has quit [Remote host closed the connection]
agrinb has joined #ruby
Rollabunna has joined #ruby
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ta_ has joined #ruby
baltazor_ has joined #ruby
SilkFox_ has joined #ruby
tkuchiki has joined #ruby
<nonnatus> Yeah, I figured that. You just sounded like you were straight out of an advertisement
towski_ has joined #ruby
<nonnatus> That’s cool though
hamakn has quit [Ping timeout: 244 seconds]
larissa has quit [Quit: Leaving]
baltazore has quit [Ping timeout: 240 seconds]
zzz_Ridley has joined #ruby
zzz_Ridley is now known as Ridley5
phutchins has quit [Ping timeout: 244 seconds]
Ridley5 has quit [Changing host]
Ridley5 has joined #ruby
redbaritone has joined #ruby
redbaritone has left #ruby [#ruby]
rpag has quit [Ping timeout: 252 seconds]
redbaritone has joined #ruby
n008f4g_ has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
redbaritone has quit [Quit: redbaritone]
DonOtreply has joined #ruby
aclearman037 has joined #ruby
livathinos has joined #ruby
redbaritone has joined #ruby
<nonnatus> But you won’t believe how my sister is making $10,000 a month sitting at home. For more information go to legit.biz/not-a-scam.asp
ta_ has quit [Ping timeout: 255 seconds]
cobakobodob has quit [Ping timeout: 264 seconds]
livathinos has quit [Client Quit]
SilkFox_ has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
<mozzarella> >asp >not .rb
timonv_ has joined #ruby
<mozzarella> do you even ruby
anarang has joined #ruby
paulfm has joined #ruby
<bradland> eam: last commit on rubygame is 2011
<bradland> doesn’t look promising
<bradland> fwiw, gosu has commits as of 2014-12
<nonnatus> mozzarella: asp is just scummier, which was the point
<eam> everyone who tried to use ruby for latency sensitive stuff switched to a different environment
timonv_ has quit [Client Quit]
<nonnatus> mozzarella: besides, what kind of apps are you writing that have .rb in the url?
<eam> require 'cgi'
<bradland> cgi is the new hotness
<bradland> … again
yfeldblum has joined #ruby
startupality has joined #ruby
paulfm has quit [Read error: Connection reset by peer]
wolf4ood has quit [Quit: (null)]
slester has joined #ruby
hippobottamus has quit [Ping timeout: 265 seconds]
sk87 has joined #ruby
nrsk has quit [Read error: Connection reset by peer]
defrang has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
reset has joined #ruby
s00pcan_ has joined #ruby
Kricir has quit [Remote host closed the connection]
phutchins has joined #ruby
maximski has joined #ruby
Kricir has joined #ruby
rpag has joined #ruby
th3m4ri0 has joined #ruby
baweaver has joined #ruby
tjbiddle has quit [Read error: Connection reset by peer]
VBlizzard has joined #ruby
Fusl has quit [Ping timeout: 250 seconds]
tjbiddle has joined #ruby
AlSquire has joined #ruby
Nameo0 has joined #ruby
codeFiend has quit [Quit: codeFiend]
blizzy has quit [Ping timeout: 264 seconds]
go4it has joined #ruby
rodfersou has quit [Quit: leaving]
Fusl has joined #ruby
x1337807x has joined #ruby
timonv_ has joined #ruby
hamakn has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
studiotate has joined #ruby
poetazus has joined #ruby
Guest31 has joined #ruby
josephnd1nton has joined #ruby
vdamewood has joined #ruby
nrsk has joined #ruby
AlexRussia has quit [Ping timeout: 264 seconds]
behrz has joined #ruby
behrz has quit [Client Quit]
AlexRussia has joined #ruby
th3m4ri0 has left #ruby [#ruby]
timonv_ has quit [Quit: Leaving...]
cobakobodob has joined #ruby
baweaver has quit [Remote host closed the connection]
timonv_ has joined #ruby
josephnd1nton has quit [Ping timeout: 245 seconds]
phutchins has joined #ruby
alexherbo2 has quit [Read error: Connection reset by peer]
max96at is now known as max96at|off
<sparr> bradland: yes. my rbenv doesn't seem to see my ~/.rbenv/version/* stuff
elaptics is now known as elaptics`away
elaptics`away is now known as elaptics
<bradland> you want to do some troubleshooting?
elaptics is now known as elaptics`away
<sparr> everything in my ~/.profile related to rbenv seems to have worked. my path has shims, RBENV_ROOT is set, all the other stuff in `rbenv init -` seems right
<sparr> yes, I'd like to troubleshoot this if you can help
<bradland> sure
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> at a shell, run: type rbenv
<sparr> rbenv is a function
<bradland> k, how about: rbenv which ruby
<sparr> followed by the contents of the function produced at the end of `rbenv init -`
<sparr> /usr/bin/ruby
<sparr> (the only version that rbenv knows about is my system version)
<bradland> so the output of `rbenv versions` includes only your system ruby?
<sparr> yes
<sparr> it previously listed the two versions I had installed via rbenv
sshao has quit [Read error: Connection reset by peer]
<sparr> both of which still exist in ~/.rbenv/versions/
<bradland> ok, i’m going to do some digging to see if i can see how rbenv builds that list
rkalfane has joined #ruby
codeFiend has joined #ruby
<bradland> and if we can inject some troubleshooting output
sshao has joined #ruby
codeFiend has quit [Client Quit]
djbkd has quit [Remote host closed the connection]
<bradland> sparr: bleh, rbenv doesn’t contain nearly as much debugging instrumentation as RVM
anitchrist has joined #ruby
<sparr> I'd strace it if I was on linux
djbkd has joined #ruby
<bradland> run: echo $RBENV_ROOT
blackoperat has quit [Ping timeout: 240 seconds]
phantomtiger has joined #ruby
<bradland> if that works, run: ls $RBENV_ROOT
Kricir has quit [Remote host closed the connection]
<bradland> rbenv versions is dead simple
<sparr> # ls $RBENV_ROOT
<sparr> shimsversions
<Senjai> sparr: I would imagine looking through the code would be better than running strace.
<sparr> it's /usr/local/var/rbenv
<sparr> Senjai: can you point me to the code in question?
<Senjai> Nope.
<bradland> sparr: ls "${RBENV_ROOT}/versions/"*
<bradland> the code on line 39 should glob all the rubies installed by rbenv and output their info
<sparr> aha
<sparr> problem solved
<bradland> :)
poetazus has quit [Remote host closed the connection]
<bradland> sometimes you’ve just got to step through it :)
<bradland> what was the problem
<sparr> `brew install rbenv` asked me to modify my profile to change the RBENV_ROOT
<sparr> but I didn't apply that new profile before using rbenv to install new versions
<sparr> which I did
emmesswhy has joined #ruby
<sparr> so I've got new versions installed in ~/.rbenv/versions
paulfm has joined #ruby
frem has joined #ruby
<sparr> then, in a new shell, rbenv is looking in /usr/local/var/rbenv/versions and finding nothing
_Andres has quit [Quit: My Mac Pro has gone to sleep. ZZZzzz…]
<Senjai> ALl problems solved by chruby xD
<bradland> there you go
<bradland> chruby doesn’t solve misconfiguration
blizzy has joined #ruby
poetazus has joined #ruby
<bradland> no offense, sparr
<sparr> np
VBlizzard has quit [Ping timeout: 252 seconds]
studiotate has quit [Quit: Computer has gone to sleep.]
<sparr> might poke the homebrew keg maintainer for rbenv and suggest some new verbiage for the profile instructions
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
phutchins has quit [Ping timeout: 245 seconds]
dblessing has joined #ruby
phutchins has joined #ruby
wpp has quit [Quit: ZZZzzz…]
acrawford_ has joined #ruby
shazaum has quit [Quit: This computer has gone to sleep]
s00pcan_ has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
thumpba has quit [Remote host closed the connection]
gccostabr has quit [Quit: ZZZzzz…]
french has quit [Read error: Connection reset by peer]
sambao21 has quit [Quit: Computer has gone to sleep.]
studiotate has joined #ruby
reinaldob has quit [Remote host closed the connection]
timonv_ has quit [Quit: Leaving...]
timonv_ has joined #ruby
sigurding has joined #ruby
Val_ has joined #ruby
redbaritone has quit [Quit: redbaritone]
wallerdev has quit [Quit: wallerdev]
rand0mbits has quit [Ping timeout: 272 seconds]
blackoperat has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
timonv_ has quit [Remote host closed the connection]
fandi has quit [Remote host closed the connection]
blizzy has quit [Ping timeout: 252 seconds]
rbennacer has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
SilkFox_ has joined #ruby
bpfh has joined #ruby
bpfh has left #ruby [#ruby]
Parker0 has quit [Ping timeout: 245 seconds]
<bashusr> is there anything special with the word "call" that i can't use it as a method? ie. app.call(env) in middleware?
<bashusr> i'm trying to mock call, and I'm getting a NoMethodError - undefined method 'call'.
athan has quit [Ping timeout: 245 seconds]
studiotate has quit [Quit: Computer has gone to sleep.]
timonv_ has joined #ruby
<bradland> call is defined for several Ruby core classes
studiotate has joined #ruby
<bradland> i’m not really knowledgable enough to say if that’s a problem though
aswen has joined #ruby
wpp has joined #ruby
SilkFox_ has quit [Ping timeout: 245 seconds]
arietis has joined #ruby
bpfh has joined #ruby
pengin has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
blizzy has joined #ruby
samfisher has left #ruby [#ruby]
pengin has joined #ruby
phutchins has quit [Ping timeout: 256 seconds]
<bashusr> nope, it wasn't the issue.. i had a bad let. I need to make sure the last statement in the let block is the double and not an expect line
michaeldeol has joined #ruby
studiotate has quit [Ping timeout: 265 seconds]
fryguy9 has quit [Quit: Leaving.]
michaeldeol has quit [Client Quit]
Jackneill has quit [Read error: Connection reset by peer]
michaeldeol has joined #ruby
michaeldeol has quit [Client Quit]
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wpp has quit [Quit: ZZZzzz…]
grn has quit []
pengin has quit [Ping timeout: 244 seconds]
CustosL1men has joined #ruby
alkoma has joined #ruby
kevr_ has joined #ruby
sambao21 has joined #ruby
sonOfRa_ has joined #ruby
pen has joined #ruby
sambao21 has quit [Client Quit]
momomomomo has quit [Quit: momomomomo]
s00pcan_ has quit [Remote host closed the connection]
thomasfedb_ has joined #ruby
nrsk has quit [Ping timeout: 252 seconds]
kevr has quit [Ping timeout: 252 seconds]
thomasfedb has quit [Ping timeout: 252 seconds]
mnemon has quit [Read error: Connection reset by peer]
sonOfRa has quit [Ping timeout: 252 seconds]
bl4ckdu5t has quit [Ping timeout: 252 seconds]
bl4ckdu5t has joined #ruby
nrsk has joined #ruby
s00pcan_ has joined #ruby
bl4ckdu5t is now known as Guest67716
mnemon has joined #ruby
LouisRoR has joined #ruby
n1lo has quit [Quit: Leaving]
tjbiddle has quit [Quit: tjbiddle]
Flcn has quit [Quit: Lingo: www.lingoirc.com]
renderful has joined #ruby
brb3 has quit [Quit: <.<]
valeriansaliou has quit [Read error: Connection reset by peer]
pdoherty has quit [Remote host closed the connection]
Hijiri has joined #ruby
ta_ has joined #ruby
valeriansaliou has joined #ruby
pdoherty has joined #ruby
lessless has joined #ruby
Sawbones_ has joined #ruby
Sid05 has joined #ruby
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
yalue has quit [Quit: return 0;]
Kricir has joined #ruby
fandi has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
agent_white has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
ta_ has quit [Ping timeout: 244 seconds]
<dfinninger> question about function arguments: I have a function with the following signature: cmd = Mixlib::ShellOut.new(command, :user => user, :cwd => dir, :env => env, :input => input)
<dfinninger> can a programmatically set those last few arguments?
Sawbones_ has quit [Ping timeout: 255 seconds]
stunder has joined #ruby
<dfinninger> Like, im yeilding those args in a block, and if the user doesn't set them, they are nil. Shellout doesn't like nil values for those
dfghdfghfgh has joined #ruby
dfghdfghfgh has left #ruby [#ruby]
Tricon has quit [Ping timeout: 240 seconds]
<dfinninger> no, wait, I am so dumb, nevermind
hmsimha has joined #ruby
baweaver has joined #ruby
valeriansaliou has quit [Read error: Connection reset by peer]
bMalum has quit [Quit: bMalum]
pen has quit [Remote host closed the connection]
pen has joined #ruby
chrishough has joined #ruby
baweaver has quit [Remote host closed the connection]
tjbiddle has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
blahwoop has joined #ruby
valeriansaliou has joined #ruby
someguy has joined #ruby
s00pcan_ has joined #ruby
<sparr> my /usr/local/bin/bundle starts with #!/usr/local/opt/ruby/bin/ruby and "# This file was generated by RubyGems.". Ruby doesn't exist in that location, so I think this is an artifact of a previous install. How should I be installing bundler along with rbenv?
sambao21 has joined #ruby
sargas has joined #ruby
<someguy> Does anyone know the difference (if any) between driver.navigate.to 'url' and driver.get 'url' in selenium?
phutchins has joined #ruby
pen has quit [Ping timeout: 256 seconds]
pen has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
aswen has quit [Ping timeout: 245 seconds]
blackoperat has quit [Ping timeout: 245 seconds]
spyderma_ has joined #ruby
pwnz0r has quit [Remote host closed the connection]
paulfm has quit [Quit: Zzzzz...]
athan has joined #ruby
spyderman4g63 has quit [Ping timeout: 264 seconds]
startupality has quit [Quit: startupality]
spyderm__ has joined #ruby
linguini has joined #ruby
roolo has joined #ruby
phutchin1 has joined #ruby
phutchins has quit [Ping timeout: 245 seconds]
s00pcan_ has quit [Remote host closed the connection]
startupality has joined #ruby
momomomomo has joined #ruby
Takle has quit [Remote host closed the connection]
spyderma_ has quit [Ping timeout: 252 seconds]
s00pcan_ has joined #ruby
Nameo0 has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
valeriansaliou has quit [Read error: Connection reset by peer]
hamakn has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<linguini> URI.decode_www_form("&x=y") # works in ruby 2.1, but fails in ruby 1.9
valeriansaliou has joined #ruby
metadave has joined #ruby
Kricir has quit [Remote host closed the connection]
roolo has quit [Ping timeout: 264 seconds]
duncannz has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
<linguini> Is this a bug in ruby 1.9, or is "&x=y" invalid ?
s00pcan_ has joined #ruby
<sparr> `rbenv version` says I'm using 2.1.2 set by my current project. `ruby -v` is 2.1.2. `~/.rbenv/versions/2.1.2/bin/gem -v` is 2.2.2, which I think is right. However, `gem -v` is 2.0.14, and I have no idea why the wrong version of gem is being run by the shim.
havenwood has quit []
bronson has quit [Ping timeout: 252 seconds]
Takle has joined #ruby
hiyosi has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s00pcan_ has quit [Remote host closed the connection]
arietis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
s00pcan_ has joined #ruby
nanoyak has joined #ruby
codeFiend has joined #ruby
gtrak has joined #ruby
paulfm has joined #ruby
studiotate has joined #ruby
blackoperat has joined #ruby
Ankhers has quit [Remote host closed the connection]
Tricon has joined #ruby
baweaver has joined #ruby
codeFiend has quit [Client Quit]
thumpba has joined #ruby
hamakn has joined #ruby
startupality has quit [Quit: startupality]
teddyp1cker has joined #ruby
AlexRussia has quit [Ping timeout: 252 seconds]
fryguy9 has joined #ruby
timonv_ has quit [Remote host closed the connection]
jheg has joined #ruby
poetazus has quit [Remote host closed the connection]
JohnBat26 has joined #ruby
studiotate has quit [Ping timeout: 244 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<bradland> sparr: rbenv which gem
nrsk has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<bradland> should tell you which gem executable is being selected
s00pcan_ has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
paulfm has quit [Quit: Zzzzz...]
troyreadyy has quit [Quit: Leaving]
jds has quit [Quit: Connection closed for inactivity]
anarang has quit [Quit: Leaving]
it0a has quit [Ping timeout: 240 seconds]
LekeFly has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
<sparr> needed to `rbenv rehash`
<sparr> this is really frustrating :/
s00pcan_ has joined #ruby
troyready has joined #ruby
<bradland> this is why i don’t use rbenv
x1337807x has joined #ruby
ta_ has joined #ruby
<shevy> use the source!
lmickh has quit [Remote host closed the connection]
rbennacer has quit [Remote host closed the connection]
<jhass> we all do shevy
Ankhers has joined #ruby
codeFiend has joined #ruby
<shevy> it is always a problem when you have multiple different rubies in multiple different locations with multiple different assumptions as to where something has to be installed or not
<jhass> I disagree
<shevy> what do you use for your ruby jhass
<jhass> chruby + pacman
<bradland> not if your version manager is competent
<shevy> ah so you use default packages
hamakn has quit [Remote host closed the connection]
function90 has joined #ruby
<jhass> what are "default packages"?
<bradland> he means system packages
<shevy> one compiled by someone else going into the /usr hierarchery
<shevy> erm *hierarchy
michaeldeol has joined #ruby
<jhass> only for the most recent one
<shevy> don't deny it!
bitcycle_ has quit [Ping timeout: 256 seconds]
<jhass> the AUR packages for 1.9, 2.0 and 2.1 are maintained by me and install to /opt/rubyXX
<shevy> ack
<jhass> and AUR packages are actually build on your system
<shevy> ack ack
yfeldblum has quit [Remote host closed the connection]
hamakn has joined #ruby
pengin has joined #ruby
reinaldob has joined #ruby
AmBienCeD has joined #ruby
phutchin1 has quit [Ping timeout: 255 seconds]
<shevy> https://www.archlinux.org/packages/extra/i686/ruby/ says the maintainer is Anatol Pornozov
<jhass> yes
<jhass> you're not in the AUR
s00pcan_ has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
ta_ has quit [Ping timeout: 264 seconds]
poetazus has joined #ruby
jenrzzz has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
michaeldeol has quit [Client Quit]
poetazus has quit [Read error: Connection reset by peer]
poetazus has joined #ruby
hmsimha has quit [Ping timeout: 252 seconds]
poetazus has quit [Remote host closed the connection]
sshao has quit [Remote host closed the connection]
teddyp1cker has quit [Ping timeout: 264 seconds]
<baweaver> >> class Object; def pipe(&block) yield(self) end end; module Kernel; def mp!(name) method(name).to_proc end end; '1'.pipe(&mp!(:Float))
<shevy> hmm
<eval-in__> baweaver => 1.0 (https://eval.in/240361)
<baweaver> hehe
<shevy> when I visit a remote website
<shevy> and it is really a long html string
Rollabunna has joined #ruby
<shevy> but I only want to scan for a specific line there, and not download the rest
sonOfRa_ is now known as sonOfRa
paulfm has joined #ruby
reinaldob has quit [Ping timeout: 255 seconds]
jordonbiondo has joined #ruby
<bradland> what net library are you using?
<shevy> is there a way to do a, like, read only up to that specific part, and then quit? If I do open(URL).read with open-uri then I think I read it all
<shevy> open-uri
Photism_ has joined #ruby
<bradland> use the block form instead of #read
<baweaver> well you're getting the entire thing in request anyways
whoisjake has quit []
poetazus has joined #ruby
<shevy> I have to do a scanning operation for some users, and then perform some other scripts, and have to query often. the dataset is in the middle of the page, so the other 50% is quite useless to me
poetazus has quit [Remote host closed the connection]
<baweaver> if you really want to you can use a flip flop
tkuchiki has joined #ruby
SilkFox_ has joined #ruby
<bradland> shevy: see the very first example?
nanoyak has quit [Quit: Computer has gone to sleep.]
phutchins has joined #ruby
Photism has quit [Read error: Connection reset by peer]
<shevy> hmm
<bradland> you should be able to exit the block with break once you’ve found what you’re looking for
s00pcan_ has quit [Remote host closed the connection]
<shevy> the .each_line part?
s00pcan_ has joined #ruby
poetazus has joined #ruby
<bradland> yes
<bradland> i do not know though
studiotate has joined #ruby
<shevy> I'm going to try
<bradland> whether it downloads the whole thing internally
dman777_alter has quit [Quit: Lost terminal]
<bradland> as baweaver points out, it probably does
<baweaver> the only thing you get is less parse time, maybe.
startupality has joined #ruby
<baweaver> not sure if flip flop works on find though
<baweaver> if it does that'd be ideal.
arietis has joined #ruby
Rollabunna has quit [Ping timeout: 265 seconds]
arietis has quit [Client Quit]
slester has quit [Remote host closed the connection]
sshao has joined #ruby
<shevy> hmm
bascht has quit [Ping timeout: 244 seconds]
<shevy> if it downloads everything anyway than .each_line seems a bit useless or?
tkuchiki has quit [Ping timeout: 252 seconds]
Ankhers` has joined #ruby
kurtf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox_ has quit [Ping timeout: 255 seconds]
<bradland> indeed
<bradland> if i had to guess, it downloads everything internally
<jhass> do you hit any actual memory or network bottlenecks currently?
<bradland> you’d have to drop in to Net::HTTP in order to download in chunks
<bradland> this smells of over optimization unless you’re hitting constraints
<baweaver> Does Typhous chunk?
<baweaver> can't ever remember
<bradland> but if you’re really feeling filthy: http://docs.ruby-lang.org/en/2.0.0/Net/HTTP.html#class-Net::HTTP-label-Streaming+Response+Bodies
<bradland> even that doesn’t appear to chunk the net operation
<jhass> I wish faraday had an abstraction for ^
<bradland> just the read, via IO
<shevy> cool
Ankhers has quit [Ping timeout: 250 seconds]
<bradland> for net operations, “chunk, wait, process” is usually too slow because of the latency involved in stop/starting the channel
<shevy> "If you are handling large files or wish to implement a progress bar you can instead stream the body directly to an IO."
<shevy> wget with ascii progress art in ruby!
<bradland> so you’re better off to just keep on trucking and drop the connection if you get what you need
metadave_ has joined #ruby
<bradland> so you could use that Net::HTTP streaming example, and break when you get what you want. let Net::HTTP just drop the connection onthe floor
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
DonOtreply has joined #ruby
SOLDIERz has joined #ruby
poetazus has quit [Remote host closed the connection]
Patt has joined #ruby
DadoCe has joined #ruby
<Patt> hello
poetazus has joined #ruby
yfeldblum has joined #ruby
<Patt> been trying to setup ruby, homebrew etc on mac and made a right mess
poetazus has quit [Remote host closed the connection]
valeriansaliou has quit [Read error: Connection reset by peer]
<baweaver> https://rvm.io/
elaptics`away is now known as elaptics
<baweaver> Patt ^^^
<Patt> can anyone here on mac tell me which path to put: ruby in ?
Ankhers` is now known as Ankhers
metadave has quit [Ping timeout: 264 seconds]
valeriansaliou has joined #ruby
<rpag> Patt, OSX comes with Ruby
<Cat_1> "which ruby"
<Cat_1> without quotes
<baweaver> or ruby -v to find out what's on there.
<Cat_1> but I'd use RVM
<Cat_1> it's the bees knees
AlexRussia has joined #ruby
<Cat_1> some people like chruby
maletor has quit [Quit: Computer has gone to sleep.]
<rpag> I would use chruby + ruby-install
<baweaver> or rbenv, or a lot of other options.
<Patt> returns: /usr/bin/ruby
poetazus has joined #ruby
<rpag> what does ruby -v say?
<Patt> if i do which brew i get: /usr/local/bin/brew
athan has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<Patt> 1.8.7
kurtf has joined #ruby
athan has joined #ruby
<Patt> tried to install all and start again
<baweaver> Safer variant I'd always use if I were you: /usr/bin/env ruby
sambao21 has joined #ruby
<rpag> brew install chruby ruby-install, add source /usr/local/chruby/chruby.sh to ~/.bashrc and then ruby-install ruby 2.1.5
<baweaver> that gets current ruby path from the env
hamakn has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 244 seconds]
<bradland> hold the phone fellas
<baweaver> which works with rvm at least, I assume with chruby if it's sane.
nanoyak has joined #ruby
<Patt> i have node and brew in the same path
<Patt> but ruby is not :s
<bradland> if Patt has already attempted an install, there’s probably a bit of a mess to clean up.
<bradland> Patt, what installation method did you use?
<rpag> /usr/local/share/chruby/chruby.sh *
<baweaver> brew clean; brew uninstall ruby
<bradland> if you don’t clean up the old install before proceeding with the new install, you’re likely signing up for a host of issues.
<Patt> running brew cleanup
zorak8 has joined #ruby
silkfox has joined #ruby
DadoCe has quit [Ping timeout: 265 seconds]
<bradland> Patt: what method did you use to install ruby the first time? What command, specifically?
<Patt> this is new to me and a mess lol
<bradland> It’s ok.
<Patt> let me check
<bradland> I just want to walk through it so we can make sure you don’t end up with conflicting versions.
<Patt> ruby was aready installed
<baweaver> grep ruby .bash_history
<baweaver> it is on Mac
<baweaver> 1.8.7 at least.
<shevy> I like the nick beaver
nanoyak has quit [Remote host closed the connection]
<bradland> Ok, Patt. It’s good that we understand it was already installed, but it would be best if we could figure out how?
<bradland> Did you run `brew install ruby` ?
<baweaver> shevy: every time eh?
<Patt> ruby was aready installed, brew install rbenv ruby-build
<bradland> Because brew cleanup won’t uninstall anything
<bradland> Ok, that’s exactly what we needed to know
Sawbones_ has joined #ruby
<bradland> rbenv is not compatible with other ruby managers
nanoyak has joined #ruby
<bradland> so if you had just started following everyone’s advice here, you’d just have a bigger mess
<bradland> it’s best not to start walking until you know where you are right now
<shevy> hehe
<baweaver> do note that grepping through history will be a handy thing to remember later.
<bradland> if you know what i mean
<Patt> followed multiple website advice
<Patt> and ended up with a mess
<shevy> yay!
<baweaver> google shotgun method tends to.
<bradland> yeah, that’s usually the result :)
Kricir has quit [Remote host closed the connection]
<baweaver> dirty secret: most people don't actually test their blogs.
<bradland> ok, you’ll need to do two things
<Patt> so where to go from here?
<baweaver> or did it on an older version that mystically doesn't work now.
<Patt> am not sure who is talking to me :s
josephnd1nton has joined #ruby
<baweaver> Welcome to IRC
<shevy> a beaver is
<bradland> Patt: 1) uninstall rbenv
jenrzzz has joined #ruby
<bradland> use: brew uninstall rbenv ruby-build
<Patt> i must be root to run this
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<bradland> that’s not expected
<rpag> homebrew shouldn't require root
<Patt> no such leg
<baweaver> ^ (O W O) ^
<Patt> keg
<bradland> homebrew shouldn’t require root
<Patt> i typed wrong thing first time
<bradland> Patt run: brew doctor
<baweaver> ehehe, now you're going to have some fun.
<Patt> No such keg: /usr/local/Cellar/rbenv
<Patt> running
<bradland> Patt: after you run `brew doctor`, pastie the output to http://pastie.org
<baweaver> ls -la /usr/local/bin | grep brew
<Patt> infact: Your system is ready to brew.
<baweaver> If the third column isn't you and is root you need to reclaim it
<baweaver> updating Mac OSX breaks brew for some stupid reason.
<Patt> says brew is : Your system is ready to brew.
<Patt> i have node installed
Sawbones_ has quit [Ping timeout: 244 seconds]
<Patt> and git
<Patt> should i uninstall ?
<bradland> no
<baweaver> -rwxr-xr-x 1 baweaver groupname 743 01 01 00:01 brew
<bradland> we need to figureout why brew needs root permissions first
<baweaver> if baweaver is root, you have an issue.
<baweaver> well, your username that is
<Patt> i typed the wrong thing in first time
<Patt> when i did what you said it worked
<bradland> which command worked
<bradland> ?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> the brew uninstall command?
<Patt> yeah
<bradland> ok, great
<Patt> i missed the last part off
mikecmpbll has quit [Quit: ciao.]
<baweaver> it might be that the cask is owned by root and he needs to chown the entire directory.
<bradland> run: brew list
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
<Patt> git node
<bradland> make sure that rbenv and ruby-install are no longer there
<bradland> ok, perfect
<Patt> thats all
<bradland> so, you’re at a good starting point
<Patt> which brew gives me : usr/local/bin/brew
josephnd1nton has quit [Ping timeout: 256 seconds]
<Patt> with a leading /
<Patt> this: /usr/local/bin/brew
anitchrist has quit [Ping timeout: 252 seconds]
<bradland> i would recommend chruby + ruby-install
evanjs has quit [Remote host closed the connection]
<Patt> what is chruby in short?
davedev24_ has joined #ruby
davedev2_ has quit [Ping timeout: 252 seconds]
nanoyak_ has joined #ruby
startupality has quit [Quit: startupality]
x1337807x has joined #ruby
<baweaver> ls -laR /usr/local/bin/brew | grep root # That'll tell you if you root owned anything in there by accident.
nanoyak_ has quit [Remote host closed the connection]
bascht has joined #ruby
SOLDIERz has quit [Quit: Be back later ...]
CharlieJob is now known as kish
<Patt> what about rvm ?
nanoyak_ has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
<baweaver> ruby version manager
<bradland> i use RVM
<baweaver> I do as well.
<shevy> is there a simple ad-hoc means to run a ruby script in the background, from within that .rb file? loop { sleep 3600; run }
<jalcine> I pray for you all
<bradland> i really like it
<jalcine> :3
<Patt> how do i install that correctly?
<Patt> and to the correct place
<baweaver> read up on it
poetazus has quit [Quit: Leaving...]
<baweaver> front page.
<jalcine> ^
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
<Patt> on it
<jalcine> reading is magic
<shevy> magic is reading
poetazus has joined #ruby
<jalcine> words get all in your head and give knowledge and stuff
<baweaver> or migrane headaches and a drinking problem
<shevy> especially stuff
<baweaver> normally both
<jalcine> hahah
<jalcine> <3 #ruby
<shevy> we learned that from hairy potter
bpfh has left #ruby ["Saindo"]
anitchrist has joined #ruby
<shevy> http://www.bash.org/?111338 - the magic wang
<Patt> installing
<baweaver> well, more so with Java than Ruby
<baweaver> Ruby I don't feel like jumping out a window every other day.
<jalcine> my god
<jalcine> that was ... lol
<anitchrist> is there anyway to put a wild card in a "string" so that it searches for the string with extra stuff on the end? like "string*"
<Patt> just ran: which rvm and get: /Users/Patt/.rvm/bin/rvm
jordonbiondo has quit [Ping timeout: 244 seconds]
<bradland> >> “bacon maple”.include? “bacon”
<nonnatus> whirling your wang at dementors just seems like a bad idea
<anitchrist> lol
<anitchrist> bradland I've got it down to I just need some kinda wildcard, like /stuff*/
<bradland> Patt: ok, did you make the modifications to your bash profile as suggested by the rfm install output?
jack_rabbit has joined #ruby
poetazus has quit [Remote host closed the connection]
Solnse has joined #ruby
<baweaver> >> 'super bacon' =~ /bacon/
<eval-in__> baweaver => 6 (https://eval.in/240368)
Hijiri has quit [Ping timeout: 265 seconds]
<Patt> reading output
<bradland> anitchrist: regex is what you're looking ror
<bradland> *for
<baweaver> >> 'super bacon' =~ / bacon$/
<eval-in__> baweaver => 5 (https://eval.in/240369)
<baweaver> >> 'super bacon plus' =~ / bacon$/
<eval-in__> baweaver => nil (https://eval.in/240370)
<Patt> but no GPG software exists to validate it, skipping.
<baweaver> http://rubular.com/ << Regex heaven
<anitchrist> baweaver, are you trolling or is $ a wildcard?
<baweaver> end of string
<jhass> no, end of line
<bradland> anitchrist: there's no "wildcard" so to speak
<jhass> \z is end of string
<baweaver> line, fine
<baweaver> \Z
maletor has joined #ruby
<bradland> regex is more complicated
<anitchrist> figured
renderful has quit [Remote host closed the connection]
<baweaver> . is any character
<baweaver> * is 0 or more of the preceding character
x77686d has quit [Read error: Connection reset by peer]
poetazus has joined #ruby
djbkd has quit [Remote host closed the connection]
x77686d has joined #ruby
<baweaver> >> 'aaaaa' =~ /a*/
<eval-in__> baweaver => 0 (https://eval.in/240371)
metadave_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<bradland> Patt: rvm should have instructed you to alter your bash profile
chipotle has quit [Quit: cheerio]
<baweaver> >> 'aaaaa' =~ /^a*$/
<eval-in__> baweaver => 0 (https://eval.in/240372)
Guest34594 has quit [Quit: WeeChat 1.0.1]
elaptics is now known as elaptics`away
<baweaver> >> 'aaabaa' =~ /^a*$/
<eval-in__> baweaver => nil (https://eval.in/240373)
<bradland> or offered to do it for you
metadave has joined #ruby
<Solnse> does anybody have a solution for capturing and decoding MTOM attachments in a SOAP response? I'm using Savon but savon-multipart is not working for me. I'm trying to grab a binary attachment and save it.
<jhass> in most cases instead of ^ you want \A
<baweaver> anitchrist: read up on rubular
<Patt> it installed :s
allcentury has quit [Ping timeout: 244 seconds]
<baweaver> ^ and $ are touchy with newlines
<baweaver> so yeah, old habits on me.
<Patt> To start using RVM you need to run `source /Users/Patt/.rvm/scripts/rvm`
<bradland> Patt: ok, so, even with rvm installed, it must be loaded in your shell or it won't work
<anitchrist> baweaver, there is no way to make a "string" include the . as a everything instead of part of the string? like do I need "string\." or something ?
<bradland> ok, start an entirely new terminal window and run: type rvm
<baweaver> yep
<baweaver> escape the character
<baweaver> I'd just google ruby regex tutorial
C1V0 has joined #ruby
<bradland> Patt: run this instead: type rvm | head -n1
<baweaver> faster
sankaber has quit [Ping timeout: 255 seconds]
<Patt> = rvm
<bradland> ok, it's not loaded
<jhass> anitchrist: btw if you want better advice start describing your problem instead of the solution you wish for
aclearman037 has quit [Quit: I'm out!]
<bradland> when you installed RVM, the end of the output instructs you to add somethign to your bash profile
<bradland> you have to add that
<Patt> had to mention of that
<Patt> :s
sankaber has joined #ruby
<Patt> said thanks for using RVM
djbkd has joined #ruby
pen has quit [Remote host closed the connection]
<Patt> rvm -v gives me: rvm 1.26.9 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
<anitchrist> jhass: I have a get(has) down to the point its only printing the key I'm wanting to see
<bradland> Patt: ok, cool.
<jhass> what's a "get(has)"?
<anitchrist> I have values that I don't want to see like, bacon or poop
<bradland> Patt: run: rvm list known
<anitchrist> get(hash)
leafybasil has quit [Remote host closed the connection]
<anitchrist> er
s00pcan_ has quit [Remote host closed the connection]
wallerdev has joined #ruby
<jhass> that's not valid ruby
s00pcan_ has joined #ruby
sshao has quit [Read error: Connection reset by peer]
<Patt> abit long
<anitchrist> that json no longer works but I;m using it as an example
<bradland> Patt: super! looks like it's working
<anitchrist> get is if you're using the httparty gem
sshao has joined #ruby
studiotate has quit [Read error: Connection reset by peer]
<jhass> also there's no description of what "key I'm wanting to see" means
LekeFly has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Patt> rvm is my package manager now
<Patt> instead of renvb thing
renderful has joined #ruby
<anitchrist> right cause it doesn't need to be known other then its a key
<bradland> Patt: right. rvm is your ruby manager
d10n-work has quit [Quit: Connection closed for inactivity]
studiotate has joined #ruby
<bradland> not package manager
<anitchrist> and has values to it
<bradland> Patt: read up here on how to install rubies: https://rvm.io/rubies/installing
<Patt> making notes too
<Patt> i have installed some gems already
<Patt> only have 1 local gem
<Patt> how can i check global gems
<jhass> not idea how that relates to your initial question though
<jhass> maybe provide (pseudo)code and wanted output?
jaequery has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<bradland> Patt: This is a nice app for looking at what's installed through RVM: https://www.blacksintechnology.net/jewelrybox-avoid-the-terminal-when-installing-ruby-on-mac/
jerius has quit []
<Patt> thanks
<anitchrist> no need I will just find some real experience maybe it will be my own that I find, but thanks for the "help" jhass
decoponio has quit [Read error: Connection reset by peer]
<Patt> damn i wanted to do it command line way
<Patt> sounds more fun lol
<bradland> Patt: you can using various rvm commands
<bradland> rvm list
<bradland> rvm gemsets list
<Patt> so basically i wanted to install bootstrap and play with sass, so i read i had to have ruby
someguy has quit [Quit: Page closed]
<bradland> that rvm website is full of information
paulfm has quit [Quit: Zzzzz...]
<bradland> read the overview pages on rubies and gemsets
decoponio has joined #ruby
wkmanire has left #ruby ["ERC (IRC client for Emacs 25.0.50.2)"]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Patt> shall do, just trying to work out what i was doing in the first place
oddraisi1 has quit [Ping timeout: 240 seconds]
<bradland> Patt: sure thing
<Patt> not sure why i needed node
<Patt> i installed that for some reason :s
mleung has quit [Ping timeout: 256 seconds]
<jhass> anitchrist: in my experience seeing alternate implementations of something you thought through and implemented already helps a lot on the "getting real experience" part ;)
<Patt> bootstrap requires ruby right?
<Patt> according to the installation guides i have been using
mikecmpbll has joined #ruby
oddraisin has joined #ruby
nicolastarzia has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
postmodern has joined #ruby
baweaver has quit [Remote host closed the connection]
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
<bricker> Patt: Bootstrap releases are just a bunch of javascript and CSS files.
<bricker> Patt: Sass/SCSS require ruby.
Kricir has joined #ruby
<Patt> arr thats why, i started learning sass
<Patt> so got bootstrap-sass
<Patt> hence this ruby stuff, which lead to getting: homebrew
<Patt> node and git
<Patt> and bundler
<Patt> well bunlder is gone now
<bradland> bundler is just a gem
<bradland> easy install
<Patt> what requires node? trying to think why i added that
<bradland> most js compilers
<bradland> if you just want to try out bootstrap, skip all this stuff
<bradland> just get the regular bootstrap package http://getbootstrap.com/getting-started/
<bradland> and use the templates
<Patt> rvm list - empty
valeriansaliou has quit [Read error: Connection reset by peer]
<bradland> you don't need Sass/SCSS
<Patt> i started using sass first
<Patt> with ruby on windows
<bradland> Patt: your list is empty because you don't have any rubies installed
<Patt> that took the piss
<Patt> thats fine
<Patt> for now
beneggett has quit [Ping timeout: 264 seconds]
<Patt> its the path thing thats confusing me much
<Patt> why some are the same and some are not
hephaestus_rg has joined #ruby
<jalcine> life
valeriansaliou has joined #ruby
<Patt> lol
<bradland> Patt: you'll want to understand what PATH is, then it will make sense
s00pcan_ has quit [Remote host closed the connection]
<bradland> when you type command like, cd, ls, or ruby, you are executing a file
<bradland> the question is, where is that file?
michaeldeol has joined #ruby
<bradland> the PATH is a collection of folders that your operating system will search any time you issue a command at a shell prompt
<Patt> typed $PATH
<bradland> try echo $PATH
<bradland> instead
maletor has quit [Quit: Computer has gone to sleep.]
<bradland> $PATH is a shell variable
<bradland> when you type it, you're telling bash to execute whatever is containted in that variable
omosoj has joined #ruby
<bradland> which will result in an error, because the contents of $PATH aren't executable by bash
baltazor_ has quit [Read error: Connection reset by peer]
<bradland> $PATH contains a list of directories separated by a semi-colon
michaeldeol has quit [Client Quit]
rbennacer has joined #ruby
baltazore has joined #ruby
<bradland> when you issue a command at your shell prompt, bash searches through each of those folders (in order) looking for a file with a matching name
<bradland> does that make sense, Patt?
<Patt> just reading 1 sec
<Patt> so like an array of paths
<Patt> to search
Ankhers has quit [Remote host closed the connection]
<bradland> exactly
<Patt> this is mine: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/Users/Patt/.rvm/bin
delianides has quit [Remote host closed the connection]
<Patt> u make this easier, u should do teaching
<bradland> i do a bit of instructing :)
<Patt> i noticed not all are in /usr/local/bin/
mleung has joined #ruby
<bradland> right
ta_ has joined #ruby
<Patt> that normal ?
<bradland> the directory /usr/local is a special directory
<Patt> or i messed up again
<bradland> no, you're good
<Patt> woo :)
<bradland> all those folders are special
<bradland> Unix systems are very organized
<bradland> each of those has a purpose
Hijiri has joined #ruby
s00pcan_ has joined #ruby
beneggett has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
<bradland> OS X isn't Linux, but it's similar
davasaurous has joined #ruby
<Patt> cool thanks
<bradland> OS X has some key differences, but in general, this is good stuff to know
<Patt> i got some reading tonight
<bradland> Patt: run: rvm info
<Patt> used to working on windows
<bradland> that output is one of my favorite things about rvm, because it makes debugging very easy
valeriansaliou has quit [Read error: Connection reset by peer]
<bradland> all of that information is used to manage your different ruby versions and gemsets
x1337807x has joined #ruby
rbennacer has quit [Ping timeout: 256 seconds]
<bradland> yep
<bradland> see how must of those are blank?
<bradland> that's because you don't have any rubies/gemsets set up yet
<Patt> yeah, gem and ruby home
rbennacer has joined #ruby
sambao21 has joined #ruby
<bradland> try installing a ruby using the instructions on this page: https://rvm.io/rubies/installing
sargas has joined #ruby
<bradland> then run `rvm info` again
<bradland> you'll see a lot of differences
<Patt> ok to start with new version of ruby?
metadave has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
valeriansaliou has joined #ruby
<Patt> that was my original idea to upgrade
ta_ has quit [Ping timeout: 244 seconds]
<bradland> yeah, rvm install ruby-2.2.0
<Patt> has 2.2.1 on there, that not recommended?
<bradland> when you see "head" in the name, it means that command will install the latest development version
josephndenton has quit [Ping timeout: 265 seconds]
<bradland> it doesn't look like 2.2.1 is available yet
<Patt> arr
econerd4ever has quit [Remote host closed the connection]
<bradland> rvm provides an easy way to upgrade once it's available
<Patt> searching...
<Patt> updating system...
<Patt> installing..
Timgauthier has joined #ruby
<bradland> it'll take a while
econerd4ever has joined #ruby
<Patt> arr i did this earlier today lol
<bradland> yeah, compiling :)
<Patt> i remember, mac was about to lift off
<Patt> fan going ape shit
pengin has quit [Remote host closed the connection]
<Patt> nosing now
s00pcan_ has quit [Remote host closed the connection]
pengin has joined #ruby
SilkFox_ has joined #ruby
davasaurous has quit [Remote host closed the connection]
zorak8 has quit [Read error: Connection reset by peer]
<Patt> compass requires ruby too?
<Patt> that was another thing i installed earlier
thatslifeson has joined #ruby
davasaurous has joined #ruby
<bradland> dunno
econerd4ever has quit [Ping timeout: 244 seconds]
<bradland> yep
<bradland> according to the docs
<Patt> i see gem install on there site
<Patt> trying to think what else i installed with node
Kricir has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
<Patt> everything is pointing to ruby
leafybasil has joined #ruby
<Patt> arrrr Node was for gulp or grunt
timonv_ has joined #ruby
apeiros_ has quit [Remote host closed the connection]
pengin has quit [Ping timeout: 240 seconds]
apeiros_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> a bit of advice, be wary of taking on too many dependencies at once
SilkFox_ has quit [Ping timeout: 240 seconds]
<bradland> i know a lot of this stuff gets intertwined
<bradland> but learning Sass before learning CSS is, IMO, a misstep
jerius has joined #ruby
<Patt> i know css
<bradland> Ah, ok.
<Patt> thought i should take it up a level
<Patt> its fun :)
<ericwood> Sass is a good way to do that
<ericwood> <3 sass
s00pcan_ has joined #ruby
<Patt> so sass was my nxt venture
<Patt> then i thought bootstrap
<Patt> then found gulp which wowed me
rbennacer has quit [Ping timeout: 240 seconds]
<Patt> i been doing things by hand
<Patt> losing sanity
Porpado has joined #ruby
timonv_ has quit [Remote host closed the connection]
<Patt> ruby 2.2.1 installed :)
gregf has joined #ruby
kurtf has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<bradland> 2.2.1? or 2.2.0?
Timgauthier has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Patt> 2.2.1
<bradland> sweet
josephndenton has joined #ruby
<Patt> the install link u gave me had it on
cpt_yossarian has quit [Ping timeout: 264 seconds]
<bradland> check out rvm info
<Patt> all but 2 filled
nonnatus has left #ruby [#ruby]
<Patt> gemset and RUBYOPT are still blank
<Dolphi> Oh my lord, I've lost track of time messing around with my game!
<bradland> cool. there you can see the path to important ruby executables like irb, gem and rake
treehug88 has quit []
<Patt> testing gem install compass
grios has quit [Quit: Textual IRC Client: www.textualapp.com]
econerd4ever has joined #ruby
x1337807x has joined #ruby
<Patt> so i now have: brew , gem and npm lists ?
baltazore has quit [Read error: Connection reset by peer]
<bradland> yep
<bradland> lots of package managers floating around these days
<Patt> i wanna keep this simple
hmsimha has joined #ruby
<Patt> already been a 2day saga
maletor has joined #ruby
zorak8 has joined #ruby
<bradland> heh: abandon hope, all ye who enter here
zorak8 has quit [Read error: Connection reset by peer]
<Patt> tried for too long without asking for help
<bradland> i think i boned up that quote too
baltazore has joined #ruby
doodlehaus has quit [Remote host closed the connection]
zorak8 has joined #ruby
<Patt> managed to download and install the wrong xcode 3 times
<bradland> lol
<Patt> this mac is alien to me
<Patt> wondered what the white cross meant
<Patt> lol
<Patt> also took awhile to get into app store
ixti has quit [Quit: WeeChat 1.0.1]
sambao21 has quit [Quit: Computer has gone to sleep.]
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ixti has joined #ruby
wolf4ood has joined #ruby
baltazor_ has joined #ruby
baltazore has quit [Read error: Connection reset by peer]
zorak8 has quit [Read error: Connection reset by peer]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Patt> do you use grunt or gulp?
<Patt> shittt
<Patt> you dont have to do -g with gems do you?
<Patt> just npm ?
athan has quit [Ping timeout: 256 seconds]
ilias0029 has joined #ruby
<bradland> sry, i don't use any of those
<bradland> check out gem —help
pengin has joined #ruby
<bradland> each package manager has its own set of options
anitchrist has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<bradland> in general, you should check either `<command> —help` or `man command` before executing a command with a switch
<bradland> so you know what will happen
x1337807x has joined #ruby
<Patt> am more of a trial and error guy
<Patt> break it first
ptrrr has quit [Quit: ptrrr]
soxet has quit [Quit: Leaving]
<Patt> then learn from the mistakes
<Patt> not the best way
athan has joined #ruby
zorak8 has joined #ruby
hamakn has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
LouisRoR has quit [Ping timeout: 252 seconds]
codecop has quit [Quit: Išeinu]
<bradland> heh, hard to remain employed while using that strategy
<Patt> i need a new 1
<Patt> strat
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Patt> you dont use node do you?
<Patt> npm install ?
kevr_ has quit [Changing host]
kevr_ has joined #ruby
kevr_ is now known as kevr
bMalum has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
<nunayerBeezwax> so i'm running a .map on an array, and that breaks on nil values... when i google around i keep running into ".compact", but in my case (I'm working with csv's into db columns) i can't change the length of the arrays or the columns won't match. what is the correct way to deal with nil's so you don't break loops, without removing them entirely?
sargas has joined #ruby
silkfox has quit [Ping timeout: 252 seconds]
<bradland> Patt: negative, i do not.
<Patt> ok np
<Patt> stick with ruby for now
<bradland> nunayerBeezwax: inside your block, use a conditional to skip over nils
emmesswhy has quit [Read error: Connection reset by peer]
<Patt> when the gems are installed, they are global and accessed from any folder?
<bradland> Patt: with rvm, it depends on the gemset
emmesswhy has joined #ruby
<wallerdev> nunayerBeezwax: my_cool_list.map { |x| if x; x.blah.lol.okay; end; }
<Patt> ar oky, thanks
valeriansaliou has quit [Read error: Connection reset by peer]
valeriansaliou has joined #ruby
babykosh has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nunayerBeezwax> alright, thanks guys. i would have thought there would be some cool rubyist way to do it, but that works for me.
<bradland> nunayerBeezwax: because nil evals to false, you can put the if at the end of the expression
<bradland> my_cool_list.map { |x| x.blah.lol.okay if x }
<wallerdev> plenty of cool ways to do it, but thats the most flexible haha
<nunayerBeezwax> i like that if x at the end that's pretty enough
<wallerdev> you could do map { |x| x || x.blah.lol.okay } even
crueber has quit [Quit: Leaving.]
<wallerdev> er
<wallerdev> lool
<wallerdev> &&
Hijiri has quit [Ping timeout: 265 seconds]
s00pcan_ has quit [Remote host closed the connection]
<wallerdev> or and i guess
maximski has quit []
ghostmoth has joined #ruby
mmoretti has joined #ruby
Spami has joined #ruby
<terrellt> x && is cool, but x.blah.lo.okay if x is readable.
<wallerdev> fo sho
polyzen has joined #ruby
jerius has quit []
<wallerdev> objective c handles it the best
<wallerdev> nil.blah just returns nil
<wallerdev> haha
mmoretti has left #ruby [#ruby]
<terrellt> Objective C's nils are null objects?
ta_ has joined #ruby
<Patt> any recommended gems?
<wallerdev> >> class NilClass; def method_missing(*args); nil; end end; [1, 2, nil, 3].map { |x| x + 3 }
<eval-in__> wallerdev => [4, 5, nil, 6] (https://eval.in/240394)
defrang has quit [Quit: defrang]
mrmargolis has quit [Remote host closed the connection]
^wald0 has joined #ruby
<bradland> oh man
wm3|away is now known as workmad3
<bradland> please do not do that lol
<wallerdev> lol
s00pcan_ has joined #ruby
<bradland> talk about giving us plenty of rope with which to hang ourselves ;)
fryguy91 has joined #ruby
<Mongey> Does anyone know how I could get rack miniprofiler to work with grape ?
s00pcan_ has quit [Remote host closed the connection]
s00pcan has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
Rickmasta has joined #ruby
ta_ has quit [Ping timeout: 244 seconds]
AmBienCeD_ has joined #ruby
<omosoj> to sublime text 3 users - how do the file tabs work? somtimes when i click on a file a new tab is created, sometimes it overwrites the tab i'm using
sshao has quit [Read error: Connection reset by peer]
AmBienCeD_ has quit [Read error: Connection reset by peer]
sshao_ has joined #ruby
<wallerdev> im not a fan of sublime
<bradland> omosoj: click a file once, and you get a preview of the file. you have to double-click for it to open completely.
<wallerdev> just thought id throw out that helpful comment
<wallerdev> lol
fryguy9 has quit [Ping timeout: 264 seconds]
<bradland> so what you're probably seeing is the preview disappear
<bradland> although, I use ST2, so it could be different
<omosoj> bradland, ohh, that makes sense :)
parduse has quit []
djbkd has joined #ruby
<omosoj> (that's why the file name is italicized in the tab header)
tkuchiki has joined #ruby
defrang has joined #ruby
AmBienCeD has quit [Ping timeout: 265 seconds]
<jheg> bradland: omosoj: click a file once, and you get a preview of the file. you have to double-click for it to open completely.
devdazed has quit [Quit: Computer has gone to sleep.]
<bradland> Mongey: have you tried putting `use Rack::MiniProfiler` in your config.ru ?
<jheg> or just type something in the file
Porpado has quit [Quit: Porpado]
baweaver has joined #ruby
<bradland> Mongey: you'll need to put it before the `run` invocation for your app
<Mongey> bradland: thanks!
<omosoj> bradland, do you use ctrl-tab and ctrl-alt-tab to shift between tabs?
Porpado has joined #ruby
<bradland> that's how the Grape documentation suggests using Active Record
<bradland> omosoj: I use cmd+alt and the arrow keys
s00pcan has joined #ruby
baltazor_ has quit [Read error: Connection reset by peer]
ta_ has joined #ruby
baltazore has joined #ruby
<bradland> if you're on windows, it'll probably be different
maletor has quit [Quit: Computer has gone to sleep.]
<omosoj> bradland, hm, i'm on linux, ctrl-alt arrow moves between workspaces here.
<bradland> yeah, you'll want to use the ctrl-tab variant
j2p2 has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
<omosoj> in firefox/chrome ctrl-tab & ctrl-alt-tab go forward and back through tabs, but in ST3 it jumps between tabs... maybe it goes back and forth by chronology or something, idk, but it's def not by tab position
<jheg> didn’t know about those nice :)
tkuchiki has joined #ruby
fryguy91 is now known as fryguy9
<bradland> mostly, i use cmd+t, because i find it faster to just bang out a few letters than to flip through a stack
<omosoj> jheg, ah, thakn you for your response. didn't see it. just set up my irc client need to finish customizing so i can see mentions that aren't at the beginning of the line
nanoyak_ has quit [Quit: Computer has gone to sleep.]
pdoherty has quit [Remote host closed the connection]
<jheg> np :)
ta_ has quit [Ping timeout: 256 seconds]
<jheg> I love ST2 especially with the Monokai theme
sargas has quit [Quit: This computer has gone to sleep]
kasperti_ has quit []
<omosoj> yeah i have monokai too
x1337807x has quit [Ping timeout: 265 seconds]
dfinninger has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
tkuchiki has quit [Ping timeout: 244 seconds]
fryguy9 has quit [Quit: Leaving.]
zorak8 has quit [Ping timeout: 256 seconds]
nanoyak has joined #ruby
Dolphi has quit [Quit: Leaving]
nanoyak has quit [Remote host closed the connection]
x1337807x has joined #ruby
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
nanoyak has joined #ruby
phantomtiger has quit [Quit: phantomtiger]
spyderm__ has quit [Ping timeout: 255 seconds]
Sid05 has quit [Ping timeout: 245 seconds]
<tubuliferous> Monokai was a bit intense for me...
s00pcan has quit [Read error: Connection reset by peer]
Rollabunna has joined #ruby
<tubuliferous> I modified the theme slightly for ST3
codefo has joined #ruby
ta_ has joined #ruby
enebo has quit [Quit: enebo]
maletor has joined #ruby
sambao21 has joined #ruby
Sawbones has joined #ruby
SilkFox_ has joined #ruby
Musashi007 has joined #ruby
Hijiri has joined #ruby
momomomomo has joined #ruby
x77686d has quit [Ping timeout: 264 seconds]
baltazore has quit [Read error: Connection reset by peer]
kirun has quit [Quit: Client exiting]
baltazore has joined #ruby
x77686d has joined #ruby
momomomomo has quit [Client Quit]
zorak8 has joined #ruby
Rollabunna has quit [Ping timeout: 245 seconds]
omosoj has quit [Ping timeout: 264 seconds]
gregf has quit [Quit: WeeChat 1.0.1]
bMalum has quit [Quit: bMalum]
s00pcan has joined #ruby
pwnz0r has joined #ruby
s00pcan_ has joined #ruby
olivier_bK has joined #ruby
Sawbones has quit [Ping timeout: 244 seconds]
ta_ has quit [Ping timeout: 244 seconds]
SilkFox_ has quit [Ping timeout: 240 seconds]
<polyzen> ruby-toolbox is ftw, but is there anything better for the same job?
Musashi007 has quit [Quit: Musashi007]
timonv_ has joined #ruby
poguez has quit [Quit: Connection closed for inactivity]
mjuszczak has joined #ruby
stunder has quit [Quit: Leaving]
jenrzzz has joined #ruby
gsd has joined #ruby
s00pcan_ has quit [Remote host closed the connection]
jobewan has quit [Quit: Leaving]
<GaryOak_> polyzen: you mean the website?
s00pcan has quit [Read error: No route to host]
Solnse has quit [Quit: Page closed]
Guest63719 has joined #ruby
Guest63719 has quit [Client Quit]
<polyzen> GaryOak_, yes
<GaryOak_> polyzen: what else would you want it to do?
<GaryOak_> most languages barely have something like that
livingstn has quit []
<nunayerBeezwax> if i want to execute a certain line of code only on the first iteration of a loop (in my case it's a CSV.parse loop, so I can't use 'each_with_index', right?)... i am able to do a conditional "do this stuff if $. == 0", because "$." refers to the current line number, which, the first time through the loop is supposed to be 0 right? when i put a binding.pry in the loop, the first time through "$." is reportin
<nunayerBeezwax> g the total number of lines (71), rather than the current line. does this make sense? anybody know about this?
jordsmi has joined #ruby
s00pcan has joined #ruby
s00pcan_ has joined #ruby
<bradland> nunayerBeezwax: I think $. doesn't contain what you expect because you're using CSV#parse, which accepts a string.
<bradland> $. only works with file descriptors
<bradland> where are you getting the CSV data? from a file?
adriancb has quit [Remote host closed the connection]
<bradland> nunayerBeezwax: have a look at CSV.foreach(filepath)
valeriansaliou has quit [Read error: Connection reset by peer]
babykosh has quit [Quit: babykosh]
babykosh has joined #ruby
babykosh has quit [Client Quit]
s00pcan has quit [Remote host closed the connection]
s00pcan_ has quit [Remote host closed the connection]
lkba_ has joined #ruby
valeriansaliou has joined #ruby
jetblack has joined #ruby
lkba has quit [Ping timeout: 264 seconds]
pen has joined #ruby
<blahwoop> hi all. i am having a problem with line 58 here https://gist.github.com/iRichLau/84b6083c65fb939295ae
evanjs has joined #ruby
<polyzen> GaryOak_, it is great; guess there isn't anything else like it :p
<blahwoop> it only adds the second team to the team_list array but not the first one
defrang has quit [Quit: defrang]
<blahwoop> any reason why it does that?
s00pcan has joined #ruby
s00pcan_ has joined #ruby
<GaryOak_> polyzen: a lot more of the popular languages are getting package repos, PHP, Python, Ruby
<Senjai> blahwoop: You're going to want to extract methods out of that
sambao21 has quit [Quit: Computer has gone to sleep.]
<bradland> blahwoop: team_list is a class variable. this probably isn't the source of your problem, but you should reference it as @team_list
<GaryOak_> polyzen: they usually go hand in hand with the package manager
<Senjai> blahwoop: find_team should only do one thing
<Senjai> blahwoop: Here it does several
<blahwoop> yeah i will extract it
babykosh has joined #ruby
<blahwoop> i'm just making it work first
n3phos has quit [Quit: ChatZilla 0.9.91.1 [Firefox 34.0/20141125180439]]
<Senjai> bradland: team_list is an attr accessor
<bradland> ah
chipotle has joined #ruby
valeriansaliou has quit [Read error: Connection reset by peer]
arescorpio has joined #ruby
davasaurous has quit [Remote host closed the connection]
<Senjai> blahwoop: This will only add one team at a time
babykosh has quit [Client Quit]
athan has quit [Ping timeout: 245 seconds]
deconfigured has joined #ruby
<Senjai> blahwoop: it wont add the first team, because at that time teams.empty? is true
<blahwoop> it can only hold one?
Guest15720 has quit [Changing host]
Guest15720 has joined #ruby
<Senjai> blahwoop: err
Guest15720 is now known as marahin
<blahwoop> it adds it
<Senjai> correct
<Senjai> Can you give me an example using the code
<blahwoop> but then it's gone when the 2nd one is added
chrisja has quit [Quit: leaving]
<blahwoop> when a new input is added it might have the same team from before
<blahwoop> so we are looking to see if the team exist in the team list
Hijiri has quit [Ping timeout: 264 seconds]
<blahwoop> if it's not then create it and put it in team list
hashpuppy has joined #ruby
davasaurous has joined #ruby
<blahwoop> i added an inspect after line 58
<blahwoop> this is the team_list [#<Team:0x007fcdaaa42fc0 @name="Eagles", @league_points=0>]
<blahwoop> this is the team_list [#<Team:0x007fcdaaa42e58 @name="Cowboys", @league_points=0>]
<blahwoop> the first one doesn't stay in
luriv has quit [Ping timeout: 244 seconds]
valeriansaliou has joined #ruby
<Patt> thanks again bradland
<shevy> does anyone of you have a simple way to strip ascii escape sequences from a given string?
<bradland> Patt: you bet
<shevy> stuff like "\e[1;32m"
<Patt> just making a diagram so this thing makes sense lol
<bradland> blahwoop: can you comment on your gist with a couple of lines of input
bronson has joined #ruby
<blahwoop> ok
s00pcan_ has quit [Remote host closed the connection]
s00pcan_ has joined #ruby
pietr0 has quit [Quit: pietr0]
codefo has quit [Ping timeout: 245 seconds]
DadoCe has joined #ruby
<blahwoop> done
Hijiri has joined #ruby