apeiros_ changed the topic of #ruby-lang to: Ruby 2.2.0; 2.1.5; 2.0.0-p598; 1.9.3-p551: http://ruby-lang.org || Paste code on http://gist.github.com
ishikawa has joined #ruby-lang
robbyoconnor has joined #ruby-lang
havenwood has quit [Remote host closed the connection]
slawrence00 has joined #ruby-lang
duderonomy has joined #ruby-lang
iamninja has joined #ruby-lang
emmesswhy has joined #ruby-lang
_fritchie has joined #ruby-lang
sudoubuntu has joined #ruby-lang
postmodern has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
Sadin has quit []
Sadin has joined #ruby-lang
chouhoulis has joined #ruby-lang
hramrach has joined #ruby-lang
konr has quit [Quit: Connection closed for inactivity]
Nixsos has joined #ruby-lang
undead has quit [Ping timeout: 246 seconds]
tmi1 has joined #ruby-lang
<Senjai> Why would you ever want to do that
<Senjai> That's a terrible terrible idea
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
suavemint has joined #ruby-lang
godd2 has quit [Ping timeout: 244 seconds]
BubonicPestilenc has quit [Quit: BubonicPestilenc]
nertzy has joined #ruby-lang
godd2 has joined #ruby-lang
_fritchie has quit [Read error: Connection reset by peer]
_fritchie has joined #ruby-lang
Bwild has quit [Quit: leaving]
araujo has quit [Read error: Connection reset by peer]
SilentNuke has joined #ruby-lang
araujo has joined #ruby-lang
<wallerdev> faster
<wallerdev> lol
Sadin has quit [Read error: Connection reset by peer]
Sadin_ has joined #ruby-lang
tenderlove has quit [Quit: Leaving...]
Sadin_ has quit [Client Quit]
workmad3 has quit [Ping timeout: 255 seconds]
tmi1 has quit [Quit: Leaving.]
ta_ has joined #ruby-lang
suavemint has quit [Remote host closed the connection]
suavemint has joined #ruby-lang
Nixsos has quit [Ping timeout: 245 seconds]
ta_ has quit [Ping timeout: 265 seconds]
suavemint has quit [Ping timeout: 244 seconds]
hahuang65 has joined #ruby-lang
saramic has quit [Remote host closed the connection]
SilentNuke has quit []
suavemint has joined #ruby-lang
suavemint has quit [Client Quit]
ta_ has joined #ruby-lang
mistym has quit [Remote host closed the connection]
hendranata_ has joined #ruby-lang
t00b has quit [Remote host closed the connection]
SuMo_D has joined #ruby-lang
ddd has quit [Quit: leaving]
nertzy has quit [Quit: This computer has gone to sleep]
malconis has joined #ruby-lang
yusuf has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
saramic has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has joined #ruby-lang
godd2 is now known as godd2-away
RobertBirnie has quit [Ping timeout: 244 seconds]
pyrex has joined #ruby-lang
tkuchiki has joined #ruby-lang
shinnya_ has quit [Ping timeout: 264 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
iamninja has quit [Quit: ZZZzzz…]
_fritchie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
marr has quit [Ping timeout: 245 seconds]
symm- has quit [Ping timeout: 265 seconds]
goodcodeguy has joined #ruby-lang
pyrexwyrex has joined #ruby-lang
pyrex has quit [Ping timeout: 265 seconds]
rbowlby has quit [Remote host closed the connection]
loincloth has joined #ruby-lang
wprice has quit [Quit: wprice]
jdecuirm has joined #ruby-lang
Lewix has quit [Remote host closed the connection]
loincloth has quit [Ping timeout: 264 seconds]
saramic has quit [Remote host closed the connection]
havenwood has joined #ruby-lang
havenwood has quit [Ping timeout: 244 seconds]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bradland_ has joined #ruby-lang
oleo is now known as Guest95822
oleo__ has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
brianpWins has quit [Ping timeout: 244 seconds]
nathanstitt has joined #ruby-lang
guillaume-rb has joined #ruby-lang
Guest95822 has quit [Ping timeout: 265 seconds]
ta_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
ta_ has quit [Ping timeout: 244 seconds]
saramic has joined #ruby-lang
djbkd has joined #ruby-lang
wallerdev has joined #ruby-lang
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Creeves has quit [Remote host closed the connection]
gwendall has quit [Remote host closed the connection]
gnufied has quit [Ping timeout: 272 seconds]
ta_ has joined #ruby-lang
amclain has joined #ruby-lang
saramic has quit [Remote host closed the connection]
Bwild has joined #ruby-lang
Atomic2 has joined #ruby-lang
workmad3 has joined #ruby-lang
gnufied has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
Caius has quit [Ping timeout: 276 seconds]
kenezen has joined #ruby-lang
jxie has joined #ruby-lang
kenezen has quit [Remote host closed the connection]
gix has quit [Ping timeout: 245 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
gwendall has joined #ruby-lang
gix has joined #ruby-lang
Caius has joined #ruby-lang
chouhoul_ has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
saramic has joined #ruby-lang
chouhoulis has quit [Ping timeout: 256 seconds]
Senjai has quit [Quit: WeeChat 1.0.1]
ta_ has joined #ruby-lang
chouhoul_ has quit [Remote host closed the connection]
_fritchie has joined #ruby-lang
ta_ has quit [Ping timeout: 244 seconds]
jxie has quit [Ping timeout: 264 seconds]
slawrence00 has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 265 seconds]
guillaume-rb has quit [Quit: guillaume-rb]
pwnz0r has joined #ruby-lang
guillaume-rb has joined #ruby-lang
guillaume-rb has quit [Client Quit]
sudoubuntu has joined #ruby-lang
ta_ has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
djbkd has quit [Remote host closed the connection]
malconis has joined #ruby-lang
saramic has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 244 seconds]
saramic has joined #ruby-lang
saramic has quit [Remote host closed the connection]
Nixsos has joined #ruby-lang
dik_dak has joined #ruby-lang
jdecuirm has quit [Ping timeout: 255 seconds]
Nixsos has quit [Ping timeout: 264 seconds]
havenwood has joined #ruby-lang
ta_ has joined #ruby-lang
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jdecuirm has joined #ruby-lang
havenwood has quit [Ping timeout: 256 seconds]
ta_ has quit [Ping timeout: 244 seconds]
mannyt has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby-lang
sudoubuntu has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saramic has joined #ruby-lang
djbkd has quit [Ping timeout: 264 seconds]
chouhoulis has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
chouhoulis has quit [Ping timeout: 256 seconds]
gwendall has quit [Ping timeout: 265 seconds]
brandonjjon has joined #ruby-lang
goodcodeguy has joined #ruby-lang
banister has joined #ruby-lang
<brandonjjon> Anyone know why I would get "uninitialized constant PagesController::RCONNoAuthException" with steam-condenser? Code: http://hastebin.com/yeqefozupo.rb
workmad3 has joined #ruby-lang
dellavg_ has joined #ruby-lang
ta_ has joined #ruby-lang
nathanstitt has quit [Quit: I growing sleepy]
workmad3 has quit [Ping timeout: 256 seconds]
gix has quit [Ping timeout: 255 seconds]
ta_ has quit [Ping timeout: 244 seconds]
gix has joined #ruby-lang
<darix> brandonjjon: because you didnt require the file definining RCONNoAuthException in your pagescontroller
oleo__ has quit [Quit: Verlassend]
oleo has joined #ruby-lang
RobertBirnie has joined #ruby-lang
ddd has joined #ruby-lang
kapil__ has joined #ruby-lang
revath has joined #ruby-lang
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dik_dak_ has joined #ruby-lang
bradland_ has quit [Quit: bradland_]
dik_dak_ has quit [Client Quit]
ta_ has joined #ruby-lang
brianpWins has joined #ruby-lang
iamninja has joined #ruby-lang
dik_dak has quit [Ping timeout: 265 seconds]
ur5us has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 265 seconds]
<Radar> darix: I doubt that.
imperator has joined #ruby-lang
gjaldon has joined #ruby-lang
Lewix has joined #ruby-lang
Lewix has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
brandonjjon has quit [Ping timeout: 246 seconds]
_fritchie has quit [Quit: Textual IRC Client: www.textualapp.com]
dik_dak has joined #ruby-lang
gwendall has joined #ruby-lang
ta_ has joined #ruby-lang
AKASkip has joined #ruby-lang
gwendall has quit [Ping timeout: 244 seconds]
Lewix has quit [Remote host closed the connection]
ta_ has quit [Ping timeout: 244 seconds]
pwnz0r has quit [Remote host closed the connection]
gjaldon has joined #ruby-lang
godd2-away is now known as godd2
djbkd has joined #ruby-lang
cornerma1 has joined #ruby-lang
mistym has quit [Remote host closed the connection]
dellavg_ has quit [Ping timeout: 264 seconds]
ddd has quit [Quit: setting up Go vars]
cornerman has quit [Ping timeout: 265 seconds]
cornerma1 is now known as cornerman
mistym has joined #ruby-lang
tzero has quit [Read error: Connection reset by peer]
chan1 has joined #ruby-lang
chan1 has left #ruby-lang [#ruby-lang]
djbkd has quit [Ping timeout: 245 seconds]
Miphix has joined #ruby-lang
tzero has joined #ruby-lang
AKASkip has quit [Ping timeout: 264 seconds]
gwendall has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
iamninja has quit [Quit: ZZZzzz…]
matsutomo has joined #ruby-lang
gwendall has quit [Ping timeout: 244 seconds]
loincloth has joined #ruby-lang
rbowlby has joined #ruby-lang
loincloth has quit [Ping timeout: 240 seconds]
dabradley has quit [Ping timeout: 245 seconds]
ur5us has joined #ruby-lang
oleo has quit [Quit: Verlassend]
futilegames has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
ur5us has joined #ruby-lang
mattyohe has quit [Quit: Connection closed for inactivity]
emmesswhy has quit [Quit: Leaving]
workmad3 has joined #ruby-lang
dabradley has joined #ruby-lang
workmad3 has quit [Ping timeout: 256 seconds]
stardiviner has quit [Ping timeout: 245 seconds]
Fretta_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Fretta has joined #ruby-lang
Fretta has quit [Client Quit]
AKASkip has joined #ruby-lang
dik_dak has quit [Quit: Textual IRC Client: www.textualapp.com]
amclain has quit [Quit: Leaving]
stardiviner has joined #ruby-lang
rahul_j has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
fclausen has quit [Ping timeout: 272 seconds]
apeiros_ has joined #ruby-lang
ruby-lang119 has joined #ruby-lang
<ruby-lang119> Hi everyone. Is it proper to ask miscellaneous questions here?
ruby-lang119 is now known as BLoog
apeiros_ has quit [Ping timeout: 245 seconds]
<BLoog> I have a question about GUI creation in Ruby using Tk, if anybody is around that can help out I'd really appreciate it ^.^
BLoog is now known as Bloog
rbowlby has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 265 seconds]
brianpWins has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
matsutomo has quit [Quit: matsutomo]
rahul_j has quit [Quit: rahul_j]
matsutomo has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pwnz0r has joined #ruby-lang
loincloth has joined #ruby-lang
nofxx has quit [Ping timeout: 244 seconds]
rahul_j has joined #ruby-lang
matsutomo has quit [Client Quit]
Sadin has joined #ruby-lang
kapil__ has quit [Quit: Connection closed for inactivity]
araujo has quit [Read error: Connection reset by peer]
araujo has joined #ruby-lang
loincloth has quit [Ping timeout: 256 seconds]
symm- has joined #ruby-lang
RobertBirnie has joined #ruby-lang
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kapil__ has joined #ruby-lang
apeiros_ has joined #ruby-lang
mostlybadfly has quit [Quit: Connection closed for inactivity]
matsutomo has joined #ruby-lang
charliesome has quit [Quit: zzz]
ta_ has joined #ruby-lang
|jemc| has joined #ruby-lang
|jemc|_ has joined #ruby-lang
|jemc| has quit [Read error: Connection reset by peer]
|jemc|_ is now known as |jemc|
ta_ has quit [Ping timeout: 265 seconds]
futilegames has quit [Quit: futilegames]
<freedrull> Bloog: the standard policy in most irc channels is 'just ask'
mistym has quit [Remote host closed the connection]
Iskarlar has joined #ruby-lang
symm- has quit [Ping timeout: 244 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mistym has joined #ruby-lang
charliesome has joined #ruby-lang
rahul_j has quit [Ping timeout: 256 seconds]
rahul_j has joined #ruby-lang
[spoiler] has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
rahul_j has joined #ruby-lang
Forgetful_Lion has joined #ruby-lang
djbkd has joined #ruby-lang
skade has joined #ruby-lang
rbrs has joined #ruby-lang
octodoodle has joined #ruby-lang
rahul_j has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby-lang
djbkd has quit [Ping timeout: 255 seconds]
shubhamgoyal has quit [Remote host closed the connection]
workmad3 has joined #ruby-lang
rahul_j has joined #ruby-lang
iamninja has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tmi1 has joined #ruby-lang
Sgeo has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 256 seconds]
skade has quit [Remote host closed the connection]
Versality has joined #ruby-lang
Sgeo has joined #ruby-lang
robbyoconnor has joined #ruby-lang
robbyoconnor has quit [Changing host]
robbyoconnor has joined #ruby-lang
vincet has quit []
vincet has joined #ruby-lang
skade has joined #ruby-lang
skade has quit [Remote host closed the connection]
solars has joined #ruby-lang
mistym has quit [Remote host closed the connection]
pwnz0r has quit [Remote host closed the connection]
anitchrist has joined #ruby-lang
skade has joined #ruby-lang
<anitchrist> anyone know where I can find more about info_for
saramic has quit [Remote host closed the connection]
skade has quit [Remote host closed the connection]
tmi1 has quit [Quit: Leaving.]
Nixsos has joined #ruby-lang
skade has joined #ruby-lang
anitchrist has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
rahul_j has quit [Quit: rahul_j]
Nixsos has quit [Ping timeout: 264 seconds]
skade has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
Iskarlar has joined #ruby-lang
skade has joined #ruby-lang
futilegames has joined #ruby-lang
ta_ has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
matsutomo has quit [Quit: matsutomo]
robbyoconnor has quit [Quit: Konversation terminated!]
matsutomo has joined #ruby-lang
Raycaster has quit [Quit: Leaving.]
tmi1 has joined #ruby-lang
charliesome has quit [Quit: zzz]
hendranata_ has quit [Quit: Leaving]
anitchrist has joined #ruby-lang
charliesome has joined #ruby-lang
robbyoconnor has joined #ruby-lang
ta_ has joined #ruby-lang
hendranata_ has joined #ruby-lang
saramic has joined #ruby-lang
saramic has quit [Remote host closed the connection]
fclausen has joined #ruby-lang
yusuf has quit [Quit: Leaving.]
yusuf has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
yusuf has quit [Max SendQ exceeded]
ta_ has joined #ruby-lang
yusuf has joined #ruby-lang
skade has quit [Remote host closed the connection]
iamninja has quit [Quit: ZZZzzz…]
<ljarvis> anitchrist: huh?
skade has joined #ruby-lang
<anitchrist> sup
<ljarvis> anitchrist: looks like that's a method on pry
<apeiros_> anitchrist cross-posts.
<ljarvis> ugh
elia has joined #ruby-lang
<anitchrist> not just pry, I have seen it used other places as well
<apeiros_> and they got follow-up questions on the other channel and decided to not respond.
<ljarvis> :/
<ljarvis> thanks apeiros_
<apeiros_> yw
<anitchrist> apeiros, what?
tmi1 has quit [Ping timeout: 264 seconds]
<apeiros_> anitchrist: what what?
<anitchrist> oh its that time of day eh?
<anitchrist> thought I smelled trolls
anitchrist was kicked from #ruby-lang by ljarvis [cross-posting is a kickable offence. Being a dick is banable]
<apeiros_> hah
<apeiros_> so I'm not the only one who kicks for that. good. :)
yusuf has quit [Quit: Leaving.]
wprice has joined #ruby-lang
ta_ has quit [Ping timeout: 264 seconds]
saramic has joined #ruby-lang
qba73 has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
jxie has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
ta_ has joined #ruby-lang
Nixsos has joined #ruby-lang
|jemc| has quit [Ping timeout: 264 seconds]
rbowlby has joined #ruby-lang
saramic has quit [Remote host closed the connection]
Versality has quit [Read error: Connection reset by peer]
Versality has joined #ruby-lang
Versality has quit [Client Quit]
ta_ has quit [Ping timeout: 240 seconds]
saramic has joined #ruby-lang
<yorickpeterse> morning
fclausen has quit [Ping timeout: 272 seconds]
ta_ has joined #ruby-lang
saramic has quit []
druznek has joined #ruby-lang
charliesome has quit [Quit: zzz]
ta_ has quit [Ping timeout: 265 seconds]
rahul_j has quit [Quit: rahul_j]
yusuf has joined #ruby-lang
yusuf has quit [Max SendQ exceeded]
meschi has joined #ruby-lang
marr has joined #ruby-lang
mikecmpbll has joined #ruby-lang
benlovell has joined #ruby-lang
rahul_j has joined #ruby-lang
arBmind has joined #ruby-lang
charliesome has joined #ruby-lang
workmad3 has joined #ruby-lang
iamninja has joined #ruby-lang
donove has joined #ruby-lang
octodoodle has quit [Quit: Textual IRC Client: www.textualapp.com]
workmad3 has quit [Ping timeout: 240 seconds]
Nixsos has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
gwendall has joined #ruby-lang
tobiasvl has quit [Read error: Connection reset by peer]
Atomic2 has quit [Ping timeout: 264 seconds]
shubhamgoyal has quit [Remote host closed the connection]
<yorickpeterse> "TYPES.collect{|type, specs| specs[:conditions]}.flatten.uniq.collect"
<yorickpeterse> wat
llakey has quit [Quit: ...]
<apeiros_> I find the finishing collect gives it a stylish touch.
<yorickpeterse> oh it does pass it a block
<yorickpeterse> but I didn't copy-paste it
<yorickpeterse> "TYPES.collect{|type, specs| specs[:conditions]}.flatten.uniq.collect{|x| [I18n.t('alert_conditions.' + x), x]}"
vincet has quit [Ping timeout: 255 seconds]
<apeiros_> oh, sad. now it's not fashionable code anymore.
hendranata_ has quit [Ping timeout: 256 seconds]
<apeiros_> though, mapping it to single element arrays is…
<apeiros_> ah, not single element arrays. so it's indeed not fashionable code.
vincet has joined #ruby-lang
<apeiros_> apart from that I'd use flat_map instead of flatten and probably would use TYPES.values.map instead of TYPES.collect, I don't see anything wrong with that code on its own
Nixsos has joined #ruby-lang
<yorickpeterse> or just use an array with +=
<yorickpeterse> or Array#concat
<apeiros_> with an each_value loop?
ur5us has quit [Remote host closed the connection]
spuk has quit [Ping timeout: 244 seconds]
<yorickpeterse> pairs = []; TYPES.each { |pair| pairs |= pair }
<yorickpeterse> then add the last collect on the result
<apeiros_> I think I do prefer .flat_map { … }.uniq over that
vincet has quit [Ping timeout: 265 seconds]
<yorickpeterse> It's a waste to first create an array and then smack values out of it, at least in my opinion
<yorickpeterse> I'd much rather just not add whatever is already there
<apeiros_> well, with |= you create temporary hashes on every iteration
llakey has joined #ruby-lang
ta_ has joined #ruby-lang
tvl has joined #ruby-lang
<yorickpeterse> wtf, Array#| uses a Hash?
<yorickpeterse> fuck it actually does
tvl is now known as tobiasvl
<yorickpeterse> what is this shit
<yorickpeterse> something something I'd want a set but nested data not sure how that would work
<yorickpeterse> * Set
<apeiros_> how did you think it would work?
<Eising> Oh man, I've begun using https://github.com/genericsteele/token_phrase for generating quasi-unique tokens. It's hillarious what kind of sentences it comes up with
<apeiros_> it's the fastest way
<Eising> wireless-salmon-checked-wookie was a recent one
<yorickpeterse> Eising: Yeah...I'd rather have people use UUID/SecureRandom/etc
<apeiros_> Eising: lol
ur5us has joined #ruby-lang
<yorickpeterse> well, don't use UUID for this actually
<apeiros_> I assume those are meant for humans?
<Eising> yes they are
<apeiros_> nice
ta_ has quit [Ping timeout: 244 seconds]
<apeiros_> what's the entropy of its default dicts?
<yorickpeterse> not much
<apeiros_> ah, I see, 4'199'040'000'000 possible combinations with its default
<yorickpeterse> (1..1000000).to_a
<yorickpeterse> lol
<yorickpeterse> Wonder why they don't just use rand(1000000)
<apeiros_> probably because that allows them to use a uniform way to access dictionaries
<apeiros_> not that I think it's a good idea to do it that way
banister has joined #ruby-lang
<Eising> they just use #sample to get pseudo-random picks
banister has quit [Max SendQ exceeded]
<apeiros_> yeah, I see why they append a number. the dictionaries are very small
ur5us has quit [Ping timeout: 244 seconds]
<yorickpeterse> Yorick's guide to super secure random numbers:
<apeiros_> 8 digit password with a-zA-Z0-9 has higher entropy
<yorickpeterse> >> rand(Float::MAX.to_i)
<eval-in__> yorickpeterse => 123494993317873369760629358281733931923331861579566615789495949986260502376757982523380144447371033693604603445003799656206689465975353033805566511696584532913904859110689445650751472430226637290313085 ... (https://eval.in/240100)
* yorickpeterse runs
banister has joined #ruby-lang
<yorickpeterse> it's a Bignum so you know it's secure
jds has joined #ruby-lang
Oejet has joined #ruby-lang
Nixsos has quit [Read error: Connection reset by peer]
Nixsos has joined #ruby-lang
workmad3 has joined #ruby-lang
npassaro has joined #ruby-lang
workmad3 has quit [Client Quit]
djbkd has joined #ruby-lang
workmad3 has joined #ruby-lang
<ljarvis> dude that's my password
<ljarvis> not cool
rahul_j has quit [Quit: rahul_j]
<ljarvis> oh no nvm, i have a 7 not a 0
<workmad3> heh
djbkd has quit [Ping timeout: 264 seconds]
loincloth has joined #ruby-lang
rahul_j has joined #ruby-lang
GBrawl has joined #ruby-lang
loincloth has quit [Ping timeout: 245 seconds]
vieq has quit [Ping timeout: 265 seconds]
vieq has joined #ruby-lang
fclausen has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
banister has quit [Read error: No route to host]
lapide_viridi has joined #ruby-lang
vieq has quit [Ping timeout: 264 seconds]
mostlybadfly has joined #ruby-lang
rahul_j has joined #ruby-lang
ta_ has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
futilegames has quit [Quit: futilegames]
vieq has joined #ruby-lang
GaelanAintAround has quit [Ping timeout: 265 seconds]
zz_dlu has quit [Ping timeout: 245 seconds]
<yorickpeterse> Arguebly the best spec I've found so far in this project: https://gist.github.com/YorickPeterse/b7930f7844dfe693be24
ta_ has quit [Ping timeout: 265 seconds]
shubhamgoyal has quit [Ping timeout: 244 seconds]
GaelanAintAround has joined #ruby-lang
<ljarvis> those validation specs need to die
<yorickpeterse> (that's the entire file)
zz_dlu has joined #ruby-lang
<ljarvis> good job on testing rails internals
<ljarvis> sighhhh
<ljarvis> also testing "it's there" is not a sufficient argument, i have had this so much
<yorickpeterse> well yeah
<yorickpeterse> validation passes? Surely the entire model and its (in this case) 6 custom methods work perfectly fine
<yorickpeterse> (hint: they don't, they rely on Mongo stuff I'm ripping out)
<yorickpeterse> so here I am writing more tests
<tbuehlmann> I wouldn't write such a spec, but I think it's valid to have it as documentation
Sadin has quit [Remote host closed the connection]
GaelanAintAround has quit [Ping timeout: 240 seconds]
Sadin has joined #ruby-lang
<yorickpeterse> Testing validations itself is fine, but this doesn't test much
<yorickpeterse> e.g. it doesn't explicitly test what happens if the values are lacking
<ljarvis> it's self documenting if it's in the model code
<yorickpeterse> instead it, I think, relies on the shitty factories
zz_dlu has quit [Ping timeout: 245 seconds]
<yorickpeterse> or some rspec magic
<yorickpeterse> I dunno how this even works
seank__ has joined #ruby-lang
banister has joined #ruby-lang
tmi1 has joined #ruby-lang
zz_dlu has joined #ruby-lang
seank_ has quit [Ping timeout: 256 seconds]
<yorickpeterse> well, now we have a whopping 9 examples
skade has quit [Remote host closed the connection]
<tbuehlmann> whoop whoop!
zz_dlu has quit [Ping timeout: 264 seconds]
GaelanAintAround has joined #ruby-lang
zz_dlu has joined #ruby-lang
matsutomo has left #ruby-lang [#ruby-lang]
jxie has quit [Ping timeout: 255 seconds]
<yorickpeterse> 32 more failures to go
Forgetful_Lion has quit [Remote host closed the connection]
jxie has joined #ruby-lang
skade has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
rbowlby has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
Atomic2 has joined #ruby-lang
skade has quit [Read error: Connection reset by peer]
chills42 has joined #ruby-lang
lapide_viridi has quit [Quit: Leaving]
Atomic2 has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
tcopeland has quit [Quit: Leaving.]
Atomic2 has joined #ruby-lang
Bwild has quit [Ping timeout: 264 seconds]
chills42 has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
loincloth has joined #ruby-lang
chills42 has joined #ruby-lang
Atomic2 has quit [Ping timeout: 256 seconds]
tmi1 has quit [Quit: Leaving.]
loincloth has quit [Ping timeout: 255 seconds]
dabradley has quit [Ping timeout: 255 seconds]
<[spoiler]> Gosh, I drank like 8 cups of coffee and I'm still sleepy. I even went to bed earlysh.
jxie has quit [Ping timeout: 255 seconds]
<workmad3> [spoiler]: either you're not making them strong enough, or you're becoming caffeine resistant
jxie has joined #ruby-lang
<[spoiler]> workmad3, is that even a thing?!
VictorBjelkholm has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has quit [Changing host]
nofxx has joined #ruby-lang
<[spoiler]> apparently I'm a caffeine-o-holic; I didn't develop a resistance, but my body just craves more
<[spoiler]> Or something
ta_ has joined #ruby-lang
anitchrist has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<wprice> [spoiler]: only one more step you can take, direct IV injection
tobiassvn has quit [Remote host closed the connection]
<wprice> [spoiler]: I recommend anything but Starbucks, it tends to burn going in :-)
<[spoiler]> LOL
ta_ has quit [Ping timeout: 244 seconds]
Atomic2 has joined #ruby-lang
<[spoiler]> wprice, I'll just cut back, I guess... After my next cup...
<wprice> [spoiler]: ah yes, the proverbial…’I’ll cut back’, I say that every day about cigarette
<wprice> cigarettes
tmi1 has joined #ruby-lang
<wprice> [spoiler]: and Java
meschi_ has joined #ruby-lang
jxie has quit [Ping timeout: 245 seconds]
<[spoiler]> Java as in coffee or Java as in programming language?
meschi_ has quit [Remote host closed the connection]
jxie has joined #ruby-lang
<wprice> [spoiler]: the latter
<wprice> [spoiler]: I don’t even bother saying I’m cutting back on coffee anymore
<[spoiler]> Hahaha :-)
charliesome has quit [Quit: zzz]
Nixsos has quit [Ping timeout: 256 seconds]
<wprice> [spoiler]: though, I have been looking into Ruby and I have to say I think it’s very elegant
<[spoiler]> It's elegant as motherfucking princess :D
ruby-lang953 has joined #ruby-lang
ruby-lang953 has quit [Client Quit]
<wprice> [spoiler]: well said
<wprice> [spoiler]: I guess
<[spoiler]> wprice, nah, but seriously: Ruby is awesome
<wprice> [spoiler]: yeah, lots about it I like
<wprice> [spoiler]: reminds me a lot of my Smalltalk days
<wprice> [spoiler]: which I still miss…just wating for this Java, Internet fad thing to die down and Smalltalk will make a come back
dabradley has joined #ruby-lang
petertretyakov has joined #ruby-lang
benlovell has quit [Ping timeout: 240 seconds]
rahul_j has quit [Quit: rahul_j]
<[spoiler]> Never tried smalltalk. :o I got into programming when I was ~14 and back then (which was fairly recently, to be fair) PHP was the hip thing
pyrex has joined #ruby-lang
<workmad3> my boss is an old smalltalk hacker
rahul_j has joined #ruby-lang
rbowlby has joined #ruby-lang
pyrexwyrex has quit [Ping timeout: 256 seconds]
shubhamgoyal has joined #ruby-lang
<wprice> smalltalk is nice, it was more of an ‘environment’ than just a language
charliesome has joined #ruby-lang
<wprice> NEXTStep, Cocoa et al pretty much took a lot from Smalltalk, Alan Kay, one of the creators of Smalltalk was an Apple Fellow for years
<wprice> He may still be I’m not sure
<wprice> Consider him sort of the godfather of OOP
<wprice> And, at least a cursory comparison, the inheritance syntax in Smalltalk is none other than the colon
sarkyniin has joined #ruby-lang
<wprice> out of curiosity, how do ‘most’ people install? I know it’s a probably a stupid question to look for generalities, but I was curious about how you guys do it
<wprice> install Ruby that is
<darix> wprice: my recommendation is stick to the OS/distro package
<wprice> darix: I’m using RVM
<wprice> darix: pretty convenient
<wprice> darix: nice to be able to switch versions quickly and have different gemsets for different ruby releases
<darix> wprice: and you will monitor ruby security releases to know when you have to upgrade?
<wprice> darix: yep, I usually keep an eye out for that type of stuff
miqui has quit [Ping timeout: 240 seconds]
<wprice> darix: I also installed vai HoweBrew as well and the ports system on my FreeBSD machines
<darix> wprice: also I just wanted to answer your question. not start a discussion.
<wprice> darix: cool, thanks
<darix> wprice: and it is actually pretty easy to support multiple ruby versions in parallel without rvm. that's what we do at openSUSE e.g.
Nixsos has joined #ruby-lang
<wprice> darix: ah, I work at RedHat..:-)
<tobiasvl> nice, Fedora user and RHEL sysadmin here
gwendall has quit [Remote host closed the connection]
<darix> wprice: http://discourse.nordisch.org/t/ruby-packaging-next/22 - your ruby packager saw this already
jxie has quit [Ping timeout: 265 seconds]
postmodern has quit [Quit: Leaving]
ta_ has joined #ruby-lang
<wprice> tobiasvl: awesome
<wprice> tobiasvl: I work in the middleware part of RH, but always nice to talk to people using the products :-)
<tobiasvl> just updated to F21 today actually, and working on upgrading our ancient RHEL5 servers to RHEL7!
<wprice> tobiasvl: I’m a pure Mac user for my work, but I do run F21 in a few VM’s
<[spoiler]> :o we mostly have centos servers lol
shazaum has joined #ruby-lang
<wprice> tobiasvl: pretty good, and I was a long time SuSe user when i did run Linux
ta_ has quit [Ping timeout: 265 seconds]
<darix> wprice: i can send you a dvd or 2 if you want :p
<wprice> tobiasvl: big, big philosophical discussions on systemd
<wprice> tobiasvl: and I use the term ‘discussion’ loosely
<tobiasvl> yep
<tobiasvl> so I have gathered
charliesome has quit [Quit: zzz]
<darix> i like systemd even for servers.
<wprice> the guy that implemented it of course works for us, so, we get all sorts of opinions
<wprice> and death threats
ledestin has quit [Quit: ledestin]
<darix> wprice: kay and lennart can be pretty "good" at handling the community at times. and not just since systemd.
hardtailWTFmang has joined #ruby-lang
<darix> and that follows them
<wprice> darix: yeah, from what I have seen I tend to agree
charliesome has joined #ruby-lang
<wprice> darix: does openSuSe have any affilitation with Attachmate, beyond the upstream code?
rbowlby has quit [Remote host closed the connection]
<darix> well we are a BU in the attachmate group
<hardtailWTFmang> Hi there. New user to git and ruby here. I am trying to get Ruby and then eventually Ruby on Rails installed on Ubuntu. I am following a tutorial that has me installing it when I use this program called 'rbenv'. When I type 'rbenv install 2.2.0' it tells me Ruby is downloading but the build fails. Can anyone help me, please?
<darix> hardtailWTFmang: use your normal distro package.
<darix> hardtailWTFmang: if you understand the whole env better you can switch to rbenv/rvm
<wprice> darix: cool
<darix> wprice: but attachmate is just getting bought again.
<darix> so
<wprice> ah, interesting
<hardtailWTFmang> darix my normal package is 1.9,
<darix> hardtailWTFmang: which ubuntu release do you run?
<wprice> darix: hopefully for the better. I don’t know much about the company
<darix> wprice: but if you were referring to suse|sles <-> opensuse
<hardtailWTFmang> darix the latest 10.4 64bit
<darix> hardtailWTFmang: that is EOL
<darix> if i recall correctly
<hardtailWTFmang> eol?
petertretyakov has quit [Quit: Be back later ...]
<darix> you want to upgrade that first
<[spoiler]> 10 isn't latest
<darix> end of life
<darix> [spoiler]: soon
<[spoiler]> soon? :o
<wprice> darix: I taught a weeklong class at Novell when they still owned SuSe. Nice guys. Very bright, attentive
<darix> [spoiler]: april
<hardtailWTFmang> my mistake, ubuntu 14.10
<[spoiler]> What about april?
<darix> [spoiler]: in april 2015 ubuntu 10.4 LTS server is EOL
<darix> and i am not sure you want to wait until last day
<hardtailWTFmang> it's not ubuntu server, just the regular desktop version
<darix> hardtailWTFmang: 14.10 has a ruby2.1 package
<darix> which you can install via apt
<[spoiler]> oh, I am not using 10.04
<darix> wprice: sles and opensuse have a pretty close relationship. probably as close as fedora and rhel
Iskarlar has quit [Read error: Connection reset by peer]
Iskarlar has joined #ruby-lang
<hardtailWTFmang> darix thanks, how do I install that, just sudo apt-get Ruby2.1 ?
<wprice> darix: yeah, for us Fedora is an actual BU, but we have close association obviously
<darix> hardtailWTFmang: apt-get install ruby2.1
malconis has joined #ruby-lang
malconis has quit [Remote host closed the connection]
<wprice> darix: s/is/isn’t
<darix> wprice: didnt know that.
<[spoiler]> 2.1 isn't available on 14.04 LTS for me
<[spoiler]> oh well, I use rvm anyway
<darix> wprice: suse is the BU. not opensuse :)
ta_ has joined #ruby-lang
<darix> [spoiler]: right 14.04 has only 2.0
<darix> if i recall correctly
<hardtailWTFmang> unable to locate packag, couldnt find any package by regex
<[spoiler]> darix, indeed
<darix> hardtailWTFmang: you are really sure that is 14.10?
<[spoiler]> hardtailWTFmang, do you have 14.04 or 14.10?
<darix> you are sure your apt config is proper?
futilegames has joined #ruby-lang
<wprice> darix: sounds like our models are the same though…Fedora is our ‘skunkworks’, proviing ground type place, features that might end up in RHEL but not for quite awhile
<hardtailWTFmang> darix and spoiler my mistake guys it is 14.04 lts
tkuchiki has joined #ruby-lang
<darix> then you get ruby2.0
<[spoiler]> then: apt-get install ruby2.0
<wprice> darix: closer to me is the same model with JBoss (sigh…now Wildfly) and EAP. So Wildfly is our community open source app server and EAP is the productized corporate one with subscriptions etc
<hardtailWTFmang> ok it is installing, is that possible to use with this rbenv program?
<hardtailWTFmang> thank you guys
<darix> wprice: i try to avoid java :p
jxie has joined #ruby-lang
<wprice> darix: same here :-)
<[spoiler]> hardtailWTFmang, rbenv and rvm are probably not your cup of tea just yet. They add a bit of complexity you might not want if you're new to ruby, or linux in general
<wprice> unfortunatley the guys that pay me usually have something to say about it
<[spoiler]> That's why darix suggested you use the distro-provided ruby
ta_ has quit [Ping timeout: 265 seconds]
<hardtailWTFmang> spoiler ok. i just did not know if it would effect the tutorial i am following at not significantly. so i should be able to follow along still then
<darix> hardtailWTFmang: the rails specific bits should work just fine
nofxx has quit [Ping timeout: 244 seconds]
<hardtailWTFmang> ok thank you, i will try the next step
GaelanAintAround has quit [Ping timeout: 244 seconds]
malconis has joined #ruby-lang
<hardtailWTFmang> oh actually, when i type ruby -v it tells me 1.9.3 still do i need to do something else?
<[spoiler]> erm
<[spoiler]> type `which ruby`
zz_dlu has quit [Ping timeout: 244 seconds]
<[spoiler]> and tell us what it returns
<hardtailWTFmang> ok it says /usr/bin/ruby
rahul_j has quit [Quit: rahul_j]
<darix> hardtailWTFmang: update-alternatives --config ruby
<darix> as root
nofxx has joined #ruby-lang
GaelanAintAround has joined #ruby-lang
zz_dlu has joined #ruby-lang
<darix> hardtailWTFmang: want a general linux advice?
<hardtailWTFmang> update-alternatives: error: no alternatives for ruby
<hardtailWTFmang> yes i am sorry guys i know you are helping me above and beyond
<hardtailWTFmang> i tried searching google all last night and could not find a solution that is why i came here
<ljarvis> hardtailWTFmang: I'd recommend not using the system package manager to install Ruby
<ljarvis> no matter how much darix disagrees
benlovell has joined #ruby-lang
<darix> hardtailWTFmang: do the LPI 1 preparation and maybe the certification. it will help you a lot even without the cert.
<darix> hardtailWTFmang: just do gem2.0 install rails
<darix> ruby2.0 ...
<wprice> hardtailWTFmang: just take it slow man, be a lot coming at you at one time. Go steady and learn, that’s the most important thing
jxie has quit [Read error: Connection reset by peer]
<darix> +1
skade has joined #ruby-lang
<hardtailWTFmang> i don't know if you guys can view this page without an account but i am trying to get setup off here http://teamtreehouse.com/library/installing-a-ruby-development-environment
<hardtailWTFmang> and thank you all for taking the time to help me
<wprice> hardtailWTFmang: I can see it
<darix> hardtailWTFmang: you have your ruby development env already
<darix> gem2.0 install rails
<darix> gem2.0 install rails bundler
<darix> should get you started
<darix> you will probably need to install the mysql or pg bindings for ruby
<[spoiler]> lol the binary is called ruby2.0 and gem2.0?
<ljarvis> [spoiler]: package managers
<[spoiler]> blimey
<hardtailWTFmang> darix must i type ruby in terminal to do those commands first?
<darix> just type that
workmad3 is now known as wm3|away
jxie has joined #ruby-lang
<hardtailWTFmang> it goes to a new line with no usr@root$
<darix> [spoiler]: that's why it is normally covered by u-a
<ljarvis> normally
<ljarvis> sometimes
<hardtailWTFmang> oh nvm
<darix> you can either have versioned binaries or different prefixes and play around with $PATH as rvm and friends do
<hardtailWTFmang> Permission denied - /var/lib/gems
<darix> one way or theo ther
<ljarvis> :)
<[spoiler]> hardtailWTFmang, try adding sudo infront of it
<darix> LPI 1
<darix> just saying.
<[spoiler]> sudo gem2.0 install rails bundler
<[spoiler]> What's LPI 1?
<hardtailWTFmang> spoiler, thanks. it appears to work. actually now the build failed
<ljarvis> certs
<[spoiler]> oh
<[spoiler]> darix, I thought at first someone here was called "Theo Ther" lmao
<ljarvis> don't understand why any tutorial would recommend using the system package manager when this kind of stuff is so much better done using a proper version manager or doing the entire thing manually
<ljarvis> it would have been working ages ago if that was the case
<darix> hardtailWTFmang: http://www.lpi.org/
rahul_j has joined #ruby-lang
<[spoiler]> "one way or... Who? What's he on about?"
<darix> ljarvis: he came here because super duper rbenv failed too
<darix> booyah
<darix> rvm and friends are not the solution to everything
<[spoiler]> rvm > build from source > rbenv
<[spoiler]> in my experience
<ljarvis> figuring that out would probably have been easier. Also, rbenv and rvm have both caused me trouble. Chruby has been a dream
tcopeland has joined #ruby-lang
<hardtailWTFmang> the funny thing is. i know i do not have a clue what i am doing but i tried this on windows 8.1 tutorial first. then i ended up with some errors on sqlite3 that i could not solve so on treehouse they told me to do this on ubuntu. so now i am here lol
<darix> ljarvis: and we expect newbies who actually just want to learn ruby or rails to do the dance "which ruby manager is the best atm" first
<ljarvis> rather than what? having all these installation problems
<hardtailWTFmang> all i want to do is to learn how to code
<wprice> wow, that’s a pretty drastic ‘solution'
<ljarvis> ^
<darix> hardtailWTFmang: we will get you there
<wprice> Changing from Windows to Ubuntu just because of an install thing
<darix> hardtailWTFmang: did the sudo gem install run through?
<ljarvis> from Windows to Ubuntu? what does that have to do with this?
<wprice> ‘I can’t close this windows…’
<wprice> ‘That’s ok, just uninstall Windows and install Ubuntu'
<ljarvis> who said that?
<wprice> read his statement
* ljarvis is missing something
<hardtailWTFmang> no i can't get it to work darix
<ljarvis> oh
<ljarvis> wow im blind
<hardtailWTFmang> it gave me build error
<wprice> ‘i tried this on windows 8.1 tutorial first. then i ended up with some errors on sqlite3 that i could not solve so on treehouse they told me to do this on ubuntu.’
<wprice> Yep
<ljarvis> hur
<darix> hardtailWTFmang: what error exactly?
<hardtailWTFmang> i posted here http://pastebin.com/a8WMVm5X
<darix> you will need some development files
<hardtailWTFmang> and thank you for the LPI website i really want to learn linux too
<darix> ruby2.0-devel
nofxx has quit [Ping timeout: 264 seconds]
<darix> interesting to see that rails/bundler pull nokogiri now
<hardtailWTFmang> so that must be done before the other commands
tmi1 has quit [Quit: Leaving.]
<ljarvis> they shouldn't
Lewix has joined #ruby-lang
<darix> ljarvis: it could be that new sanitizer stuff that was added
imperator has quit [Quit: Leaving]
<darix> hardtailWTFmang: yes
<ljarvis> man that would suck
<darix> hardtailWTFmang: apt-get install ruby2.0-devel
<darix> rerun the gem install line
<hardtailWTFmang> i tried that with sudo and it said cannot locate the package
gwendall has joined #ruby-lang
<darix> uhm
<darix> i should just keep the tab with the ubuntu package searchopen
<darix> ruby2.0-dev
<hardtailWTFmang> very odd, when i triy without sudo it tells me i dont have permission because i am not root. then with sudo it tells me doesnt exist
<hardtailWTFmang> oh
<hardtailWTFmang> sorry darix -.-
<darix> hardtailWTFmang: do you plan to use postgresql or mysql?
<hardtailWTFmang> gem2.0 install rails
<hardtailWTFmang> gem2.0 install rails bundler now
<hardtailWTFmang> i believe it is sqlite3
goodcodeguy has joined #ruby-lang
momomomomo has joined #ruby-lang
<darix> well
<darix> you can use either
<apeiros_> jhass: will you gist yours when you're done?
<darix> hardtailWTFmang: apt-get install libsqlit3-dev libpq-dev libmysqlclient-dev
<darix> you might need those later :)
<hardtailWTFmang> its actually installing rails!!
nofxx has joined #ruby-lang
<jhass> apeiros_: I'm not sure if I'll do one yet, I more needed some argument against rubocop :P
<jhass> if it turns out we'll introduce one, sure
<hardtailWTFmang> darix rails successfully installed!!! ty, now for bundler
<darix> hardtailWTFmang: while you are at it
<darix> sudo gem2.0 install pq mysql2 sqlite
<darix> so you get the DB bindings too
<hardtailWTFmang> ok ty
ta_ has joined #ruby-lang
elabs-developer has joined #ruby-lang
elabs-developer has left #ruby-lang [#ruby-lang]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<hardtailWTFmang> ok everything worked but the last 1
<hardtailWTFmang> must i call it sqlite3?
<darix> try that instead
djbkd has joined #ruby-lang
<apeiros_> jhass: against rubocop in general or against its default config?
<apeiros_> jhass: I'm very much in favor of a strong style guide which is also enforced. I'm not yet sure rubocop is the right tool (and I am sure I disagree with its defaults - but that's evident from my config)
ta_ has quit [Ping timeout: 244 seconds]
<hardtailWTFmang> darix it said 2 gems installed but this error was given ERROR: Could not find a valid gem 'pq' (>= 0) in any repository
rahul_j has quit [Quit: rahul_j]
<ljarvis> pg
<ljarvis> not q
<darix> hardtailWTFmang: argh pg :p
<darix> the library is libpq :p
<jhass> apeiros_: more the later I guess
<jhass> I basically agree with you there
djbkd has quit [Ping timeout: 252 seconds]
<apeiros_> I hope the comments are helpful too :)
<hardtailWTFmang> damnit
Nixsos has quit [Ping timeout: 245 seconds]
<hardtailWTFmang> well that fixed it
<darix> hardtailWTFmang: now you should be all set for some basic rails development
<darix> hopefully
<darix> hardtailWTFmang: you can try: rails new someapp
<darix> and see if that errors out
<jhass> apeiros_: sure they are! :)
sankaber has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
AKASkip has quit [Ping timeout: 265 seconds]
petertretyakov has joined #ruby-lang
rcvalle has quit [Quit: rcvalle]
mikecmpbll has quit [Ping timeout: 255 seconds]
mikecmpbll has joined #ruby-lang
iamninja has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby-lang
<hardtailWTFmang> back now, i will try that darix
|jemc| has joined #ruby-lang
<hardtailWTFmang> it worked
<wprice> Windows to Ubuntu…still a step in the right direction IMO :-)
<hardtailWTFmang> oh man i hate windows
<wprice> eh, there are some things to like, 7 wasnt half bad
mostlybadfly has quit [Quit: Connection closed for inactivity]
<hardtailWTFmang> primarily i used OS X, but my laptop died and my friend convinced me to build a pc
mattyohe has joined #ruby-lang
<wprice> that’s always fun
<wprice> Well, sometimes
<wprice> Depends on how things go
<hardtailWTFmang> it's great for games and that jazz, i just don't like the os
<wprice> I can remember many a day where ‘fun’ wouldn’t be the word I used
<wprice> hardtailWTFmang: cool, sounds like you have a jam up right that you can experiment with. Nice thing about interpreted languages like Ruby, Java etc, platform is really irrelevant
<hardtailWTFmang> well i am glad this is working now. i was gonna consider trying python if i couldnt but now looks like i can start the tutorials
<wprice> lol
<wprice> Switch the OS, switch the language
<hardtailWTFmang> whole new person right
<hardtailWTFmang> lol
<wprice> hardtailWTFmang: cool that your just starting out, come to forums like this one, read docs online
<darix> hardtailWTFmang: for python you would have needed to switch to fedora :p
<wprice> hardtailWTFmang: and like I said, take it slow, it will come man
<wprice> hardtailWTFmang: don’t get too overwhelmed
ta_ has quit [Ping timeout: 265 seconds]
<wprice> hardtailWTFmang: all in good time
<darix> hardtailWTFmang: opensuse might have been a bit easier ... we have working rails packages. :p
<wprice> darix: lol
<hardtailWTFmang> i have to build a registry program for a car site
rcvalle has joined #ruby-lang
<wprice> hardtailWTFmang: for your tutorial, training thing?
<hardtailWTFmang> no as a real project
<wprice> hardtailWTFmang: ah
<hardtailWTFmang> but i need to go through the tutorials first on treehouse
<wprice> hardtailWTFmang: yeah, I would say so :-)
<wprice> hardtailWTFmang: at least to start
<wprice> hardtailWTFmang: do you have experience in any other language?
<darix> hardtailWTFmang: dont write everything from scratch. for many of your problems (authentication/authorization e.g.) there are addons for rails which you can use
<wprice> darix: +1..very good advice
<darix> device or omniauth come to mind
<darix> cancancan for authorization.
<darix> but there are more
chouhoulis has joined #ruby-lang
<wprice> hardtailWTFmang: again, do you have programming experience in any other language, environment?
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby-lang
<hardtailWTFmang> sorry had to let me dogs out. well. 3-4 years ago i was a front end developer. mostly just javascript and some python (non web based) but i studied computer science theory for a bit
Oejet has left #ruby-lang [#ruby-lang]
<hardtailWTFmang> so now i am just starting over once again. but i find it difficult just to setup things. git is.....challenging to say the least
wm3|away has quit [Ping timeout: 245 seconds]
<darix> hardtailWTFmang: the basics for git are learned quickly
<darix> and i bet there are tons of tutorials out there :)
<hardtailWTFmang> yes i did the unix and git training on treehouse
<hardtailWTFmang> the unix was fun, but the git...mind blown lol
<darix> hardtailWTFmang: use it daily and it will become easier.
<darix> the most important bits you need right now are git add|commit|mv
<darix> at some point git push
<tobiasvl> git is very fun too, when you learn it! but the learning curve is a bit steep, yes. hardtailWTFmang check out a !book
<tobiasvl> thought this was #git, lol.
jgpawletko has joined #ruby-lang
<tobiasvl> There are several good books available about git; 'Pro Git' is probably the best: http://git-scm.com/book
<tobiasvl> http://gitolite.com/gcs.html is also good
iamninja has joined #ruby-lang
<tobiasvl> and since you've studied CS: http://eagain.net/articles/git-for-computer-scientists/
malconis has joined #ruby-lang
malconis has quit [Remote host closed the connection]
<hardtailWTFmang> thanks guys
melter has quit [Quit: Client exiting]
<hardtailWTFmang> brb
melter has joined #ruby-lang
malconis has joined #ruby-lang
[spoiler] has quit [Quit: Leaving]
Xzyx987X_ has quit [Read error: Connection reset by peer]
Xzyx987X_ has joined #ruby-lang
momomomomo has joined #ruby-lang
jxie has quit [Ping timeout: 245 seconds]
ta_ has joined #ruby-lang
heftig has joined #ruby-lang
jxie has joined #ruby-lang
heftig_ has quit [Read error: Connection reset by peer]
charliesome has quit [Quit: zzz]
<hardtailWTFmang> this is the only tutorial i have done so far http://tryruby.org/levels/1/challenges/0 it was awesomeo though
mikecmpbll has quit [Ping timeout: 255 seconds]
iamninja has quit [Quit: ZZZzzz…]
kenezen has joined #ruby-lang
kenezen has left #ruby-lang [#ruby-lang]
oleo has joined #ruby-lang
tmi1 has joined #ruby-lang
<hardtailWTFmang> hi guys. so following along in the tutorial i did create a new test app with no issues. then i entered bin/rails server and it through this error so i cannot go to local host. i thought i cannot upgrade to higher version of ruby on my distro? http://pastebin.com/9anNB0n5
revath has quit [Ping timeout: 244 seconds]
Atomic2 has quit [Ping timeout: 256 seconds]
mannyt has joined #ruby-lang
<tbuehlmann> hardtailWTFmang, have you read the error message? might have a look at https://github.com/sstephenson/execjs
dangerousdave has joined #ruby-lang
[H]unt3r has joined #ruby-lang
<hardtailWTFmang> hmm. apologies i think i am way over my head here... so i need to install the execjs gem or a runtime specifically like node.js?
<darix> hardtailWTFmang: apt-get install nodejs
<tbuehlmann> right
chadwtaylor has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
enebo has joined #ruby-lang
loincloth has joined #ruby-lang
gjaldon has quit [Remote host closed the connection]
wm3|away has joined #ruby-lang
gjaldon has joined #ruby-lang
shinnya_ has joined #ruby-lang
tmi1 has quit [Quit: Leaving.]
<hardtailWTFmang> damn it works with sudo. should i just always assume that i need to put sudo in front of everything
<darix> no
<darix> just for apt-get and gem install
<hardtailWTFmang> ok because i installed node like you said it worked, but then when i ran bin/rails server without sudo it told me permission denied
wm3|away is now known as workmad3
<bradland> hardtailWTFmang: sudo is for executing commands that your normal user account doesn’t have permission to complete
<bradland> for example, if you’re using a system ruby install, the ‘gem install’ command modifies system-wide gems, so you need system-wide permissions
<bradland> that’s why you need to use sudo
<hardtailWTFmang> ah, understood. thank you bradland
hanjin has joined #ruby-lang
donove has quit [Quit: Leaving]
<bradland> if you use a ruby manager (chruby, RVM, rbenv), you’ll use sudo less
<bradland> same applies with bundler
<workmad3> hardtailWTFmang: also, if you don't need the system-wide gem installation, I'd recommend using 'gem install --user-install <whatever>'
<bradland> ruby manager - a tool for installing and switching between ruby interpreters
<bradland> bundler - a tool for managing gem dependencies within your application
<workmad3> bradland: 2 of your examples don't fit your description btw ;)
<workmad3> (for ruby manager)
<darix> bradland: we had that topic before already.
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<bradland> workmad3: chruby/ruby-install, rbenv/ruby-build
tkuchiki has quit [Remote host closed the connection]
<workmad3> bradland: :)
tkuchiki has joined #ruby-lang
hanjin is now known as enriko
<bradland> darix: i see. looks like he had trouble with rbenv
<hardtailWTFmang> yes lots of trouble
<darix> bradland: btw: by default bundler will also try to install gems system wide.
<darix> so
<darix> anyway
<darix> hardtailWTFmang: is your rails are working now?
<hardtailWTFmang> i believe so darix i was able to go to localhost:3000 and it says it is up and running
<bradland> yeah, i guess it’s six one way, half-dozen the other. you can either do —user-install with `gem install`, or specify a project bundle path with bundler
<hardtailWTFmang> i am going to start the tutorials
tkuchiki has quit [Ping timeout: 252 seconds]
<darix> goodie
tkuchiki has joined #ruby-lang
ta_ has joined #ruby-lang
ruby-lang686 has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
donove has joined #ruby-lang
donove has quit [Changing host]
donove has joined #ruby-lang
tkuchiki has joined #ruby-lang
gwendall has quit [Remote host closed the connection]
rahul_j has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
<hardtailWTFmang> any ide's you guys recommend?
<ljarvis> vim
jo__ has joined #ruby-lang
chadwtaylor has quit [Ping timeout: 255 seconds]
<darix> vim
<workmad3> vim 4evar!
<surrounder> vim
<workmad3> (or at least until I can code via a direct neural interface)
<hardtailWTFmang> it asks me if i want to date hot Philippine women and there is a picture of a kid with a power drill...i see why you recommend it lol
[H]unt3r has quit [Ping timeout: 245 seconds]
<hardtailWTFmang> thanks i will install it now !
tkuchiki has quit [Ping timeout: 252 seconds]
whippythellama has joined #ruby-lang
<darix> hardtailWTFmang: apt-get install vim-rails
qba73 has quit [Remote host closed the connection]
<hardtailWTFmang> got it thanks
<hardtailWTFmang> oh wow, vim is used in the terminal
qba73 has joined #ruby-lang
<workmad3> hardtailWTFmang: correct
<workmad3> hardtailWTFmang: although you could use gvim or some other graphical version
<workmad3> (which has true colour colorscheme support too)
<hardtailWTFmang> thank you. i think i better give this a shot in the command line, it will push me to learn better i think
DEac- has quit [Ping timeout: 244 seconds]
apeiros_ has quit [Remote host closed the connection]
DEac- has joined #ruby-lang
nofxx has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby-lang
kapil__ has quit [Quit: Connection closed for inactivity]
<npassaro> you can always try sublime 2 ;)
nathanstitt has joined #ruby-lang
<enriko> Is sublime2 better than sublime3?
tmi1 has joined #ruby-lang
<npassaro> just free
mistym has joined #ruby-lang
<npassaro> i guess
<darix> npassaro: sublime development seems to have stalled. no update on the blog in a year
<darix> sublime isnt free
apeiros_ has quit [Ping timeout: 265 seconds]
<npassaro> oh yeah, it has that pop up on every other save, right...
<enriko> maybe npassaro said sublime2 or 3 is mychoice
DEac- has quit [Ping timeout: 244 seconds]
ledestin has joined #ruby-lang
DEac- has joined #ruby-lang
[H]unt3r has joined #ruby-lang
<darix> npassaro: i think it is a matter of respect to buy the license.
<npassaro> well you have 3 in beta and sublime 2 is the stable version... Sorry only used 2 thought 3 was a completely comercial version:P
mistym has quit [Remote host closed the connection]
<canton7> meh, it's technically beta, but not really in practice
RobertBirnie has joined #ruby-lang
<npassaro> have any of you guys tried Atom?
<hardtailWTFmang> atom is great, not for ubuntu i don't think
shambrarian has joined #ruby-lang
<surrounder> why shouldn't it be ?
<hardtailWTFmang> oh wow my mistake
<hardtailWTFmang> would that be suitable for ruby and rails?
tmi1 has quit [Quit: Leaving.]
<darix> hardtailWTFmang: any text editor with syntax hilighting is great
<darix> you could even get by with gedit or so
<chris2> and one without is even greater :P
<darix> chris2: ugh
<npassaro> lol, I use Rubymine at work and I like it, however Vim with the right plugins awesome
mikecmpbll has joined #ruby-lang
stamina has joined #ruby-lang
qba73 has quit [Remote host closed the connection]
mistym has joined #ruby-lang
qba73 has joined #ruby-lang
tenderlove has joined #ruby-lang
[H]unt3r has quit [Ping timeout: 245 seconds]
<hardtailWTFmang> boom first ruby program written. puts "hello world" things are looking up hahahaha
|jemc| has quit [Ping timeout: 255 seconds]
gjaldon has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
ta_ has joined #ruby-lang
jxie has quit [Ping timeout: 255 seconds]
apeiros_ has joined #ruby-lang
sarkyniin has quit [Quit: Quitte]
sarkyniin has joined #ruby-lang
slawrence00 has joined #ruby-lang
RobertBirnie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
[H]unt3r has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
qba73 has quit [Remote host closed the connection]
solars has quit [Ping timeout: 264 seconds]
leonshalimov has joined #ruby-lang
qba73 has joined #ruby-lang
ledestin has quit [Quit: ledestin]
gjaldon has joined #ruby-lang
enriko has left #ruby-lang [#ruby-lang]
enriko has joined #ruby-lang
mostlybadfly has joined #ruby-lang
enriko is now known as hanjin
hanjin has left #ruby-lang [#ruby-lang]
banister has quit [Ping timeout: 244 seconds]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ta_ has joined #ruby-lang
hanjin has joined #ruby-lang
leonshalimov has quit [Ping timeout: 265 seconds]
lapide_viridi has joined #ruby-lang
hanjin has left #ruby-lang [#ruby-lang]
hanjin has joined #ruby-lang
ta_ has quit [Ping timeout: 244 seconds]
donove has quit [Quit: Leaving]
momomomomo has joined #ruby-lang
Iskarlar has joined #ruby-lang
rahul_j has quit [Quit: rahul_j]
rahul_j has joined #ruby-lang
ta_ has joined #ruby-lang
Mon_Ouie has quit [Quit: WeeChat 1.0.1]
gjaldon has quit []
ta_ has quit [Ping timeout: 265 seconds]
chills42 has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 265 seconds]
AKASkip has joined #ruby-lang
SuMo_D has joined #ruby-lang
momomomomo has joined #ruby-lang
djbkd has joined #ruby-lang
__butch__ has joined #ruby-lang
ta_ has joined #ruby-lang
wallerdev has joined #ruby-lang
skade has quit [Quit: Computer has gone to sleep.]
chadwtaylor has joined #ruby-lang
npassaro has quit [Remote host closed the connection]
mistym has quit [Remote host closed the connection]
Xzyx987X_ has quit [Read error: Connection reset by peer]
Xzyx987X_ has joined #ruby-lang
leonshalimov has joined #ruby-lang
<leonshalimov> test, test
VictorBjelkholm has quit [Remote host closed the connection]
jxie has joined #ruby-lang
<leonshalimov> :o
arBmind1 has joined #ruby-lang
ta_ has quit [Ping timeout: 265 seconds]
arBmind has quit [Ping timeout: 265 seconds]
qba73 has quit [Remote host closed the connection]
hanjin has quit [Quit: Http://www.ZeroIRC.NET ¢Æ Zero IRC ¢Æ Ver 2.9G]
Iskarlar has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mikecmpbll has quit [Ping timeout: 255 seconds]
<apeiros_> leonshalimov: your test failed. please reboot.
djbkd has quit [Remote host closed the connection]
<leonshalimov> my test?
donove has joined #ruby-lang
donove has joined #ruby-lang
LBo has quit [Ping timeout: 264 seconds]
rahul_j_ has joined #ruby-lang
rahul_j has quit [Ping timeout: 240 seconds]
rahul_j_ is now known as rahul_j
mistym has joined #ruby-lang
<leonshalimov> exit
leonshalimov has quit [Quit: leaving]
leonshalimov has joined #ruby-lang
LBo has joined #ruby-lang
tkuchiki has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
amsi has joined #ruby-lang
SuMo_D has joined #ruby-lang
nofxx has joined #ruby-lang
nofxx has joined #ruby-lang
ta_ has joined #ruby-lang
tzero has quit [Read error: Connection reset by peer]
Fretta has joined #ruby-lang
nunayerBeezwax has joined #ruby-lang
donove has quit [Remote host closed the connection]
tzero has joined #ruby-lang
elia has quit [Quit: Computer has gone to sleep.]
ta_ has quit [Ping timeout: 265 seconds]
Senjai`work has joined #ruby-lang
Senjai`work is now known as Senjai
Senjai has quit [Changing host]
Senjai has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
rathodvikas10 has joined #ruby-lang
rbrs has quit [Ping timeout: 265 seconds]
benlovell has quit [Ping timeout: 245 seconds]
rahul_j has quit [Quit: rahul_j]
rathodvikas10 has quit [Quit: Leaving]
RobertBirnie has joined #ruby-lang
pwnz0r has joined #ruby-lang
symm- has joined #ruby-lang
rbowlby has joined #ruby-lang
<nofxx> hardtailWTFmang, emacs
djbkd has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
rahul_j has joined #ruby-lang
ddd has joined #ruby-lang
ta_ has joined #ruby-lang
jxie has quit [Ping timeout: 265 seconds]
tdegrunt has joined #ruby-lang
leonshalimov has quit [Ping timeout: 244 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
malconis has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
leonshalimov has joined #ruby-lang
ta_ has quit [Ping timeout: 244 seconds]
tdegrunt has quit [Read error: Connection reset by peer]
Creeves has joined #ruby-lang
bb010g has quit [Quit: Connection closed for inactivity]
wallerdev has joined #ruby-lang
druznek has quit [Quit: Leaving]
iamninja has joined #ruby-lang
djbkd has joined #ruby-lang
alakra has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
<ljarvis> gah fu bison
cornerma1 has joined #ruby-lang
stamina has quit [Remote host closed the connection]
ddd has quit [Ping timeout: 264 seconds]
<ljarvis> and fu makefile syntax
skade has joined #ruby-lang
cornerman has quit [Ping timeout: 244 seconds]
cornerma1 is now known as cornerman
jxie has joined #ruby-lang
__butch__ has quit [Quit: Leaving.]
rahul_j has quit [Quit: rahul_j]
GBrawl has quit [Quit: (null)]
spuk has joined #ruby-lang
meschi has quit [Ping timeout: 244 seconds]
mikecmpbll has joined #ruby-lang
ddd has joined #ruby-lang
[H]unt3r has quit [Remote host closed the connection]
shubhamgoyal has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
djbkd has quit [Remote host closed the connection]
petertretyakov has quit [Quit: Lingo: www.lingoirc.com]
havenwood has joined #ruby-lang
meschi has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 244 seconds]
[H]unt3r has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
shubhamgoyal has quit [Read error: Connection reset by peer]
shubhamgoyal has joined #ruby-lang
djbkd has joined #ruby-lang
alakra has quit [Quit: WeeChat 0.4.2]
alakra has joined #ruby-lang
benlovell has joined #ruby-lang
<yorickpeterse> ljarvis: bruv don't use bison
<yorickpeterse> also don't use flex :<
<yorickpeterse> if it has to be C I'd go with Ragel + Lemon
<yorickpeterse> Though Lemon is a bit tricky to set up
benlovell has quit [Ping timeout: 240 seconds]
unreal has quit [Quit: Very funny Scotty. Now beam down my clothes!]
unreal has joined #ruby-lang
<ljarvis> :/
<ljarvis> yorickpeterse: i've only just started but there seems more docs on this stuff
momomomomo has joined #ruby-lang
michaeldeol has joined #ruby-lang
bb010g has joined #ruby-lang
workmad3 is now known as wm3|away
<yorickpeterse> So Ragel has http://www.colm.net/files/ragel/ragel-guide-6.9.pdf which is vast, but pretty hard to grok
<yorickpeterse> Lemon has like...no docs
leonshalimov has quit [Ping timeout: 245 seconds]
<yorickpeterse> but it's the only parser generator I know of that's 1) thread-safe 2) lightweight 3) not utter shit
<yorickpeterse> I think I have some examples around somewhere, sec
skade has quit [Quit: Computer has gone to sleep.]
<yorickpeterse> ljarvis: https://github.com/YorickPeterse/oga/blob/master/ext/c/lexer.rl#L161 this is basically the C code for a lexer
<yorickpeterse> which includes this shared grammar: https://github.com/YorickPeterse/oga/blob/master/ext/ragel/base_lexer.rl
__butch__ has joined #ruby-lang
<yorickpeterse> ljarvis: https://gist.github.com/YorickPeterse/f59d6e750a3360bc0b14 I also have this, but that's from at least 2 years ago
<yorickpeterse> oh, 2013-04-15 actually
jxie has quit [Ping timeout: 256 seconds]
futilegames_ has joined #ruby-lang
<ljarvis> yorickpeterse: thanks, i'll check after food
futilegames has quit [Ping timeout: 240 seconds]
futilegames_ is now known as futilegames
<darix> ljarvis: it also has a few .rl files as examples
<ljarvis> started something on my gh, it's just some basic thoughts atm
<ljarvis> darix: cool ta
<yorickpeterse> contains some Lemon stuff
<yorickpeterse> not sure if it actually works though
<yorickpeterse> shiiiiii it actually does
<yorickpeterse> ljarvis: if you don't care much just stick with Bison, Lemon is a bit of a PITA to setup
BubonicPestilenc has joined #ruby-lang
futilegames has quit [Read error: Connection reset by peer]
<yorickpeterse> ljarvis: you probably need to run `make clean` first since I accidently also tar'd the binary output
<yorickpeterse> which probably doesn't work for you
<yorickpeterse> errr s/binary output/executable
futilegames has joined #ruby-lang
arBmind1 has quit [Quit: Leaving.]
<yorickpeterse> ljarvis: Lemon is C only, but Ragel can output C, C++, Ruby, Go, Obj-C, Java and a few more
<yorickpeterse> also you can bug whitequark for every Ragel question, he loves that
<yorickpeterse> :D
rbowlby_ has joined #ruby-lang
leonshalimov has joined #ruby-lang
rbowlby has quit [Read error: Connection reset by peer]
rbowlby has joined #ruby-lang
ta_ has joined #ruby-lang
tkuchiki has joined #ruby-lang
sarkyniin has quit [Remote host closed the connection]
sarkyniin has joined #ruby-lang
<ljarvis> yeah only gonna use C anyway
rbowlby_ has quit [Ping timeout: 265 seconds]
[H]unt3r has quit [Remote host closed the connection]
[H]unt3r has joined #ruby-lang
ta_ has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Ping timeout: 245 seconds]
hardtailWTFmang is now known as hardtail
yfeldblum has joined #ruby-lang
ur5us has joined #ruby-lang
SuMo_D has quit [Remote host closed the connection]
Maxino has joined #ruby-lang
skade has joined #ruby-lang
SuMo_D has joined #ruby-lang
arBmind has joined #ruby-lang
apt-get_ has joined #ruby-lang
elia has joined #ruby-lang
GBrawl has joined #ruby-lang
sarkyniin has quit [Ping timeout: 256 seconds]
<leonshalimov> hi
skade has quit [Quit: Computer has gone to sleep.]
<wprice> question for the devs if there are any around. I have never heard of LUA before, was there any particular reason that was used as the native scripting environment for redis?
<wprice> sigh
<wprice> wrong window
<wprice> My apologies
elia has quit [Quit: Computer has gone to sleep.]
djbkd has quit [Remote host closed the connection]
djbkd has joined #ruby-lang
benlovell has joined #ruby-lang
anitchrist has joined #ruby-lang
emmesswhy has joined #ruby-lang
<darix> wprice: it is small. fast.
<darix> wprice: people even build software based switches with lua(jit)
<darix> wprice: see powerdns, lighttpd, nginx as other examples.
<bradland> wprice: lua is easy to embed
<darix> that too
<Senjai> wprice: It is easy to use in every way, and is fast as fuck </end>
<bradland> “easy to embed” is listed as a design goal
<bradland> i like what little lua i’ve written
<Senjai> Its practically javascript
<Senjai> lol
<bradland> there’s a cool minecraft mod called ComputerCraft that uses it to program ‘turtles’
<darix> Senjai: ahu from the pdns team was wondering the other day if lua might have been the better javascript
<Senjai> A number of layment know it from modding games. Wow's interface is extended using lua
<Senjai> darix: I wouldn't say no
<wprice> all good answers, thanks guys
<darix> wprice: snabbswitch for the lua based software switch
shazaum has quit [Quit: This computer has gone to sleep]
<wprice> ugh…damn…
<nofxx> lua is brazilian, from an university in rio de janeira
<wprice> I cannot get things together today
<nofxx> means moon btw
mistym has quit [Remote host closed the connection]
<nofxx> janeiro*
elia has joined #ruby-lang
<nofxx> funny thing is that portuguese, albeit the language of the poetry, looks really really bad in code, hard to explain
<nofxx> even if it's ruby heh
Val_ has joined #ruby-lang
<nofxx> guess it's accents, code looks better in plain ascii
wallerdev has quit [Quit: wallerdev]
rand0mbits has quit [Ping timeout: 272 seconds]
<nofxx> any language with diacritics*
<yorickpeterse> >> def que¿; "¿¿¿¿¿"; end
<yorickpeterse> eval-in__: get it together
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
konr has joined #ruby-lang
<nofxx> yorickpeterse, the heads down question is nice, but it's spanish only
<yorickpeterse> >> def que¿; "¿¿¿¿¿"; end; que¿
<nofxx> in portuguese; def quê?
<yorickpeterse> spanish == portuguese
* yorickpeterse runs
t_ has quit [Ping timeout: 265 seconds]
tcopeland has quit [Ping timeout: 256 seconds]
<nofxx> yorickpeterse, even portugal's pt is way different than ours... I asked that for a dutch friend about netherlands/germany, we agreed is almost like portugues/spanish
<nofxx> you may understand and talking very slow be understood... heh
<nofxx> but that's spain/mexico south america spanish, catalão (east spanish) is totally another language for us, like french or italian
<nofxx> east spain*
<anitchrist> if I use a get request, whats the best way to redact certain words in it? in the initialize method?
jgpawletko has quit [Quit: jgpawletko]
<anitchrist> would a if object.include?("poop"); print " " or a if object =~ "poop"; print " " or how about if object == "*poop*"; print " " would any of that work?
leonshalimov has quit [Ping timeout: 264 seconds]
skade has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
GBrawl has quit [Ping timeout: 244 seconds]
<anitchrist> apologies if I killed the mexican stand off... >.<
leonshalimov has joined #ruby-lang
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
elia has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
dagda1 has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
t_ has joined #ruby-lang
apt-get_ has quit [Ping timeout: 244 seconds]
skade has quit [Ping timeout: 264 seconds]
ta_ has joined #ruby-lang
<bradland> anitchrist: what condition are you trying to check for?
<bradland> and what class is object?
yalue has quit [Quit: return 0;]
<anitchrist> bradland: are you asking if its a super or public class?
mistym has joined #ruby-lang
<bradland> no, i’m asking what class it is
<bradland> like, is it a Hash, String, Array, etc
<anitchrist> I think its probably a Hash
<bradland> the method “include?” is defined for many different Ruby core classes, so the behavior depends upon what type of data is stored in the variable object
ta_ has quit [Ping timeout: 244 seconds]
<bradland> in your code, insert a line that says: puts “object.class: #{object.class}”
<bradland> and run it again
<bradland> just before the location where you need to do the include
<bradland> you have to know what object is before you can test your condition
<anitchrist> I'm looking for a returned value that has multiple values in the key, but there is always a constant portion of the value
<anitchrist> like it always starts with bacon... or poop... or whatever
<bradland> k, sec
fusillicode has quit [Ping timeout: 256 seconds]
Maxino has quit [Quit: Leaving]
<bradland> it really does matter what object looks like
<bradland> and what it actually is
<bradland> because Hash#include?(key) tells you whether a key exists
<bradland> not a value
<bradland> Hash#has_value?(value) will tell you if a value exists
<bradland> but it’s exact
<bradland> not starts with
<bradland> in the general case, you can use Hash#select, which uses a block form
<bradland> it returns all items where the block returns true
<anitchrist> there isn't a way to adjust the argument so it looks for a value that it contains
<bradland> too many pronouns
<bradland> i’m not sure what all the “it” pronouns represent in your sentence
<bradland> in general, no
<bradland> programming is explicit
<bradland> it all depends on the data type
SuMo_D has quit [Remote host closed the connection]
rbowlby has quit [Remote host closed the connection]
<bradland> ruby has tons of utility methods for searching different types of data and in different ways, but you have to explicityly tell it what you’re looking for
<anitchrist> like a key :deli that contains "Bacon Maple
<anitchrist> like a key :deli that contains "bacon maple", ",bacon plain", "canadian bacon", etc
<bradland> try to use code examples
<bradland> { :deli => “Bacon Maple }
leonshalimov has quit [Ping timeout: 255 seconds]
<bradland> in your second example, is the list an array?
<anitchrist> no
dellavg_ has joined #ruby-lang
<bradland> { :deli => ]”bacon maple", ",bacon plain", "canadian bacon”] }
<bradland> jeeze
<bradland> my typing sucks
<bradland> { :deli => [”bacon maple", ",bacon plain", "canadian bacon”] }
<bradland> key, value
<bradland> value can be anything
<anitchrist> plus there are other values in the key that don't have bacon
<bradland> it can be one long string
<bradland> in where?
<bradland> use code
<bradland> english is imprecise
pyrexwyrex has joined #ruby-lang
<bradland> for example, the method used to find values containing bacon within this structure: { :deli => [”bacon maple", ",bacon plain", "canadian bacon”] }
<bradland> would be entirely different from something like this: { :deli => ”bacon maple, bacon plain, canadian bacon” }
<nofxx> bradland, guess your irc program is adding literal " quotations
<bradland> nofxx: i’m just typing too fast and this keyboard is getting really worn out
<bradland> lots of keys that don’t register when pressed
<bradland> requiring double presses, etc
<bradland> pain in the ass
<nofxx> go mechanical new one ;)
<bradland> oh, i see, the stupid smart quotes thing
leonshalimov has joined #ruby-lang
<bradland> “string”
<bradland> bleh
<nofxx> yeah.. let's see what happens
<nofxx> >> “string”
<nofxx> no eval today?
<bradland> anitchrist: you need to know exactly what’s in object
pyrex has quit [Ping timeout: 244 seconds]
<bradland> nofxx: heh, it's a "feature" of Yosemite
<bradland> should be straight quotes now
pwnz0r has quit [Remote host closed the connection]
<nofxx> was trying def “(txt); p txt; end , obviously w/o luck... guess the only way is gsub&eval
<anitchrist> bradland: the get request brings back a hash, the specific portion I'm looking for is in the , "deli" : ["bacon maple", "steak", "bacon plain", "canadian bacon"], portion of the request/object/hash
<bradland> anitchrist: there you go. that's what we need :)
<bradland> well… partly lol
<bradland> that's the portion, but what is that contained within?
<bradland> an array of hashes?
<bradland> if you could gist/pastie it, that'd be great
<anitchrist> I just don't want to see values with a certain word in them, like bacon, if I want to see what "deli" : has but don't want to sift through all the bacon... etc
arBmind1 has joined #ruby-lang
momomomomo has joined #ruby-lang
<anitchrist> I have already said its an get(http://blah.com) request, that looks as if it brings back a hash
<bradland> ok, but before anyone can answer that question, we have to know what we're searching through
<anitchrist> because key, value
arBmind has quit [Ping timeout: 240 seconds]
<bradland> ok, check out the docs for Hash#select http://www.ruby-doc.org/core-2.1.3/Hash.html#method-i-select
<bradland> that will do what you need
michaeldeol has joined #ruby-lang
futilegames has quit [Quit: futilegames]
cored has joined #ruby-lang
<cored> hi
<ljarvis> yorickpeterse: eh lemon looks just as messy tbh
<anitchrist> problem with .select! is that there are 3,000,000 values and I don't know them all
<anitchrist> and I can't use reject
<anitchrist> because the has is read-only
<cored> I'm trying to do an 'and' with String#scan to get all the possible combinations from an string something like "ab".scan(/([a-zA-Z]{1,1})/) == [["a"], ["b"]]
<cored> but thething is that if I add the second group that I want to match it's just match the first one
havenwood has quit []
<ljarvis> cored: can you give example input and desired input
SuMo_D has joined #ruby-lang
<bradland> anitchrist: sorry, but without code i feel like i'm just fumbling around in the dark and confusing you, so all i can really say is that you'll have to look at the docs for select and reject. there's not much more i can do without better orientation.
<anitchrist> you're not confusing me and I have attempted to play around with both, but thanks for the help
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<cored> ljarvis: ok, I have two test cases first "abc" -> [ '' , 'a', 'b', 'c', 'ab', 'ac', 'bc', 'abc' ] "jump" -> ["", "j", "ju", "jm", "jp", "jmu", "jmp", "jpu", "jmpu", "u", "m", "p", "mu", "mp", "pu", "mpu"]
<cored> forget about the first empty combination
<cored> it doesn't matter
<ljarvis> i dont see a parrent
<ljarvis> pattern*
<anitchrist> lots of pu's
<anitchrist> lots of j's
<cored> each combination
<anitchrist> cupple mpu's
<ljarvis> your output isn't each combination
<cored> without duplicates :-)
<ljarvis> >> "abc".chars.permutation.map(&:join)
<eval-in__> ljarvis => ["abc", "acb", "bac", "bca", "cab", "cba"] (https://eval.in/240320)
<ljarvis> those are combinations?
<cored> just the first one
<cored> hm
<cored> let me check something
<cored> I have an implementation but in Javascript using the .match method
<ljarvis> so you dont want combinations?
<anitchrist> it seems like crypto as its taking a word a breaking down the letters into every combination including each letter by itself
<anitchrist> interesting
<cored> anitchrist: yes, something like that
<anitchrist> I'm not skilled enough to help you, yet
mistym has quit [Remote host closed the connection]
<cored> oh got it
<cored> I think is power set
JohnBat26 has joined #ruby-lang
jds has quit [Quit: Connection closed for inactivity]
<anitchrist> appreciate that, hadn't heard of that before, but understood it as soon as i saw it
<anitchrist> check this and see if it helps
ta_ has joined #ruby-lang
<anitchrist> probably won't though, since i forgot you were trying to add an "and" with the .scan method
michaeldeol has joined #ruby-lang
yfeldblum has quit [Remote host closed the connection]
<cored> checking
<cored> thanks
AmBienCeD has joined #ruby-lang
GBrawl has joined #ruby-lang
GBrawl has quit [Remote host closed the connection]
<anitchrist> no problem
GBrawl has joined #ruby-lang
ta_ has quit [Ping timeout: 264 seconds]
<cored> wow
<cored> epitron: interesting
<epitron> you can also use ruby's built-in combination thing
<cored> epitron: not quite the same
GBrawl has quit [Remote host closed the connection]
michaeldeol has quit [Client Quit]
<epitron> >> s = "abc".chars; (0..s.size).map {|n| s.combination(n).to_a }.reduce(:+)
<eval-in__> epitron => [[], ["a"], ["b"], ["c"], ["a", "b"], ["a", "c"], ["b", "c"], ["a", "b", "c"]] (https://eval.in/240354)
<epitron> map/reduce baby!
<cored> oh
GBrawl has joined #ruby-lang
<epitron> omg, (it "feels like") it's -24°C out!
<epitron> it was 8°C a couple weeks ago
<darix> epitron: better than winter with +6°C and rain
tkuchiki has joined #ruby-lang
<yxhuvud> apitron: that one is so easy now that combination is built in.
<epitron> darix: we're getting the +6/rain every couple weeks
mistym has joined #ruby-lang
<epitron> the climate is not sure that it wants to change yet
<epitron> it's getting pulled both directions at once
Bwild has joined #ruby-lang
<epitron> yxhuvud: i just use epitools for everything... everything i want is always built-in! :D
GBrawl has quit [Remote host closed the connection]
<epitron> btw, this rules... this should be in the standard library: https://github.com/epitron/epitools/blob/master/lib/epitools/autoloads.rb
GBrawl has joined #ruby-lang
GBrawl has quit [Remote host closed the connection]
GBrawl has joined #ruby-lang
tkuchiki has quit [Ping timeout: 252 seconds]
GBrawl has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
skade has joined #ruby-lang
<yxhuvud> >> "abc".chars.reduce([[]]){|a, x| a.map{|b| b + [x]} + a }
<eval-in__> yxhuvud => [["a", "b", "c"], ["b", "c"], ["a", "c"], ["c"], ["a", "b"], ["b"], ["a"], []] (https://eval.in/240363)
GBrawl has joined #ruby-lang
elia has joined #ruby-lang
<epitron> yxhuvud: oh snap
yfeldblum has joined #ruby-lang
<epitron> that's clever :)
<epitron> that would be easier to understand with an animation
<epitron> [["a"], []]
<epitron> [["a", "b"], ["b"], ["a"], []]
<epitron> [["a", "b", "c"], ["b", "c"], ["a", "c"], ["c"], ["a", "b"], ["b"], ["a"], []]
SuMo_D has quit [Remote host closed the connection]
skade has quit [Ping timeout: 265 seconds]
tmi1 has joined #ruby-lang
chadwtaylor has quit [Remote host closed the connection]
chadwtaylor has joined #ruby-lang
banister has joined #ruby-lang
banister has quit [Max SendQ exceeded]
gix has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: ciao.]
dik_dak has joined #ruby-lang
anitchrist has quit [Ping timeout: 252 seconds]
lapide_viridi has quit [Read error: Connection reset by peer]
benlovell has quit [Ping timeout: 245 seconds]
rbowlby has joined #ruby-lang
tcopeland has joined #ruby-lang
gix has joined #ruby-lang
<weaksauce> epitron is that lib production quality?
<epitron> weaksauce: i've been using it for a long time!
hardtail has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<epitron> you can also only use the parts you want
<epitron> require 'epitools/minimal'
<epitron> require 'epitools/some_specific_thing'
<epitron> (you need to require minimal first)
<epitron> no wait, sorry, all the specific things automatically require minimal
<epitron> so just require the specific extension you want
rbowlby has quit [Ping timeout: 252 seconds]
benlovell has joined #ruby-lang
<epitron> it's designed to load as quickly as possible, since i use it in most of my shell scripts
<weaksauce> ah i see. neat extensions
djbkd has quit [Remote host closed the connection]
<epitron> apparetly a lot of people have tried it out... it has a lot of gem installs... but i've never actually gotten any feedback on it :)
<epitron> other people may find that there are rough edges
<ljarvis> yorickpeterse: i might just hand roll this shit.. sigh
dellavg_ has quit [Ping timeout: 264 seconds]
sankaber has quit [Ping timeout: 255 seconds]
<weaksauce> epitron is there a specific reason you chose to have 0.0 be blank?
<epitron> seems sensible :)
sankaber has joined #ruby-lang
djbkd has joined #ruby-lang
<weaksauce> I guess that leads to the question of what do you use blank? for in the first place?
_fritchie has joined #ruby-lang
Lewix has joined #ruby-lang
wallerdev has joined #ruby-lang
<epitron> to be honest, i only ever use it for strings and arrays
<epitron> it's probably overpowered
<epitron> :)
<weaksauce> just curious :)
<epitron> oh, it is nice for catching nils OR empty strings
<epitron> i don't think i really use it much though
<epitron> i need a tool that keeps track of how often all the methods get called
<epitron> gemstats
<epitron> :D
<epitron> (err, usages, rather..)
benlovell has quit [Ping timeout: 244 seconds]
Raycaster has joined #ruby-lang
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
__butch__ has quit [Quit: Leaving.]
mikecmpbll has joined #ruby-lang
jgpawletko has joined #ruby-lang
postmodern has joined #ruby-lang
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
michaeldeol has joined #ruby-lang
michaeldeol has quit [Client Quit]
tmi1 has quit [Quit: Leaving.]
ta_ has joined #ruby-lang
goodcodeguy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbowlby has joined #ruby-lang
barlog_boogie has joined #ruby-lang
ta_ has quit [Ping timeout: 244 seconds]
gwendall_ has joined #ruby-lang
gwendall has quit [Ping timeout: 244 seconds]
Bwild has quit [Ping timeout: 265 seconds]
djbkd has quit [Remote host closed the connection]
shambrarian has quit [Changing host]
shambrarian has joined #ruby-lang
tmi1 has joined #ruby-lang
apeiros_ has quit [Remote host closed the connection]
apeiros_ has joined #ruby-lang
chadwtaylor has quit [Remote host closed the connection]
chadwtaylor has joined #ruby-lang
tmi1 has quit [Quit: Leaving.]
duderonomy has quit [Ping timeout: 245 seconds]
fclausen has quit [Ping timeout: 272 seconds]
chouhoulis has quit [Ping timeout: 244 seconds]
shambrarian has quit [Quit: bye!]
shambrarian has joined #ruby-lang
gwendall_ has quit [Remote host closed the connection]
gwendall has joined #ruby-lang
<barlog_boogie> Hi
chouhoulis has joined #ruby-lang
emmesswhy has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby-lang
<barlog_boogie> How to find programming mentor?
shambrarian has quit [Quit: bye!]
shambrarian has joined #ruby-lang
<momomomomo> :|
spuk has quit [Ping timeout: 240 seconds]
<Radar> barlog_boogie: airpair.com
leonshalimov has quit [Ping timeout: 264 seconds]
spuk has joined #ruby-lang
shambrarian has quit [Quit: bye!]
shambrarian has joined #ruby-lang
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jgpawletko has quit [Quit: jgpawletko]
ta_ has joined #ruby-lang
wm3|away is now known as workmad3
tmi1 has joined #ruby-lang
momomomomo has quit [Quit: momomomomo]
ta_ has quit [Ping timeout: 244 seconds]
AmBienCeD_ has joined #ruby-lang
dagda1 has joined #ruby-lang
AmBienCeD_ has quit [Read error: Connection reset by peer]
djbkd has joined #ruby-lang
tkuchiki has joined #ruby-lang
AmBienCeD has quit [Ping timeout: 265 seconds]
<yorickpeterse> ljarvis: haha
<yorickpeterse> ljarvis: hand-writing parsers sucks
GBrawl has quit [Quit: (null)]
shambrarian has quit [Quit: bye!]
ruby-lang686 has quit [Ping timeout: 246 seconds]
<yorickpeterse> ljarvis: what problems are you having?
rikkipitt has joined #ruby-lang
ta_ has joined #ruby-lang
shubhamgoyal has quit [Remote host closed the connection]
shubhamgoyal has joined #ruby-lang
j2p2 has quit [Ping timeout: 255 seconds]
tkuchiki has quit [Remote host closed the connection]
shubhamgoyal has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
shubhamgoyal has joined #ruby-lang
ta_ has quit [Ping timeout: 256 seconds]
kshah has joined #ruby-lang
shubhamgoyal has quit [Ping timeout: 244 seconds]
tkuchiki has quit [Ping timeout: 244 seconds]
konr has quit [Quit: Connection closed for inactivity]
<kshah> I’m working on a gem, and I’d like to allow users to set a config option or two against the main module, what is the correct pattern for doing this? For instance MyModule.log_directory = ‘SOME_DIR’.
<kshah> I’ve seen “mattr_accessor” but iirc that’s a Rails-ism?
<zenspider> def self.log_directory= nv; ... end
<yorickpeterse> kshah: Yeah, mattr_accessor is Rails
<yorickpeterse> I believe it's basically just this: module Foo; class << self; attr_accessor :something; end; end
<kshah> yorickpeterse: what a coincidence… I just installed ruby-lint
<yorickpeterse> heh
symm- has quit [Ping timeout: 252 seconds]
<yorickpeterse> A pretty common pattern is something like this:
skade has joined #ruby-lang
<yorickpeterse> MyGem.configure { |config| config.foo = "bar" }
<kshah> which is an actual method which just takes a block I suppose
<yorickpeterse> which would then store the config options somewhere on class level
<yorickpeterse> Yeah, gimme a sec
nathanstitt has quit [Quit: I growing sleepy]
<yorickpeterse> kshah: https://eval.in/240397
ta_ has joined #ruby-lang
enebo has quit [Quit: enebo]
Musashi007 has joined #ruby-lang
momomomomo has joined #ruby-lang
momomomomo has quit [Client Quit]
dragonkh has joined #ruby-lang
dragonkh has quit [Client Quit]
<kshah> indeed, there is only a slight difference, but I see your point in the comments
pwnz0r has joined #ruby-lang
<kshah> thank you!
dragonkh has joined #ruby-lang
gwendall_ has joined #ruby-lang
tmi1 has quit [Quit: Leaving.]
<yorickpeterse> np
dragonkh has left #ruby-lang [#ruby-lang]
ta_ has quit [Ping timeout: 244 seconds]
gwendall has quit [Read error: Connection reset by peer]
dik_dak has quit [Ping timeout: 265 seconds]
Musashi007 has quit [Quit: Musashi007]
AKASkip has quit [Ping timeout: 264 seconds]
dik_dak has joined #ruby-lang
arBmind has joined #ruby-lang
rikkipitt has quit []
arBmind1 has quit [Ping timeout: 252 seconds]
tmi1 has joined #ruby-lang
duderonomy has joined #ruby-lang
Bloog has quit [Ping timeout: 246 seconds]
skade has quit [Quit: Computer has gone to sleep.]
Lewix has quit [Remote host closed the connection]
fclausen has joined #ruby-lang
leonshalimov has joined #ruby-lang
_fritchi_ has joined #ruby-lang
_fritchie has quit [Ping timeout: 255 seconds]
leonshalimov has quit [Ping timeout: 265 seconds]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chadwtaylor has quit [Remote host closed the connection]
_fritchi_ has quit [Read error: Connection reset by peer]