<Nilium>
'Cause a number being the same doesn't mean it's not random.
mengu has quit [Ping timeout: 268 seconds]
<sml0820>
I think it generates a random hash of numbers twice, but then only the second one gets put into the array @bingo_cards, but it gets put in twice if two users, three times if three etc.
<Nilium>
sml0820: The one you linked above is not commented and is 52 lines. Your move.
<sml0820>
and i am creating a bingo game
druonysuse has quit [Quit: Konversation terminated!]
<Nilium>
Scratch that, Borderlands 2 time.
<shevy>
sml0820 well that would be cool
<shevy>
I have some bad luck with ruby games :(
<sml0820>
there are two methods - one sets up the board, and the other creates numbers for it
<shevy>
after a day's sleep, I usually abandon a game project
<Nilium>
I have a small 3D demo thingy working where you can fly around a quad, but that's it.
<shevy>
and that uses ruby?
<Nilium>
Yes.
<sml0820>
one is called def start_game, which creates the board. the other called pick_number picks the number for it. pick number picks the same number for each new game, for every user.
nignaztic has quit [Quit: Leaving]
cj3kim has joined #ruby
dodosan has joined #ruby
<shevy>
I once tried to create lots of games in ruby-gnome
<shevy>
card games and such
mengu has joined #ruby
xcv has joined #ruby
jongilbraith has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
druonysus has quit [Quit: Konversation terminated!]
mengu has quit [Quit: Leaving]
m8 has quit [Quit: Sto andando via]
pierre1 has quit [Quit: Leaving]
love_color_text has quit [Read error: Connection reset by peer]
looped has joined #ruby
amacgregor_ has joined #ruby
<ravster>
Hey all, we are doing a capybara test with phantomjs as the driver, and my test logs show a redirect 302, but capybara doesn't seem to realise that a redirect has happened. any pointers on how to figure out whats going on?
<looped>
i have a question about bundler. im setting up a host as root, but i want the app to run as a specific user. when i do sudo -u ${username} bundle install , i get a permission denied error on /root/.bundler. however if i run bundle install after sudo su - ${username} it goes through.
maniacal has quit [Read error: Connection reset by peer]
renderful has quit [Remote host closed the connection]
maniacal has joined #ruby
dodosan has joined #ruby
aryaching has quit [Ping timeout: 246 seconds]
bamdad has joined #ruby
mikeg has joined #ruby
<joshu>
It works, but what I would like to do is instead of defining the "global" weekday and times and construct the array of users, I want to define these attributes per user. So look at each user when they are available and then build the array? Any tips?
mikeg has quit [Read error: Connection reset by peer]
sevenseacat has joined #ruby
havenwood has quit [Remote host closed the connection]
mikeg has joined #ruby
ewnd9 has quit [Ping timeout: 268 seconds]
havenwood has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
havenwood has quit [Read error: Connection reset by peer]
ewnd9 has joined #ruby
mikeg has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
mikeg has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
maniacal has joined #ruby
snath has joined #ruby
kaspergrubbe has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
<Beoran__>
joshu, why not make a User class with instance variables to store al that data i? Or even just a Struct.
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
dodosan has quit [Ping timeout: 276 seconds]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
workmad3 has quit [Ping timeout: 256 seconds]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
codecop has joined #ruby
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
<joshu>
Beoran__ ok I can do that. Just not sure if specifying a range as I've done in my gist above for each user is the right way…hmmm ok I'm going to have to experiment.
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
<Beoran__>
joshu, well you could use hashes, arrays, Sets, etc as well, I guess, it really depends on the comon use case
renderful has joined #ruby
forced_request has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
mikeg has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
mikeg has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
mikeg has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
mikeg has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
shredding has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
blackmes1 is now known as blackmesa
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
yxhuvud has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
ezotrank has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
sml0820 has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
yxhuvud2 has quit [Ping timeout: 256 seconds]
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
mikeg has joined #ruby
freerobby has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
ntus1017 has joined #ruby
eldariof has quit [Ping timeout: 260 seconds]
mikeg has quit [Read error: Connection reset by peer]
rcosta has joined #ruby
maniacal has joined #ruby
havenwood has quit [Remote host closed the connection]
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
havenwood has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
havenwood has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
havenwood has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
mityaz has joined #ruby
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
cads has quit [Ping timeout: 264 seconds]
snath has quit [Read error: Operation timed out]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
freerobby has quit [Ping timeout: 240 seconds]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
mikeg has joined #ruby
alem0lars has quit [Ping timeout: 276 seconds]
predator217 has quit [Ping timeout: 260 seconds]
maniacal has quit [Read error: Connection reset by peer]
mikeg has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
mlpinit has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
platzhirsch has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
predator117 has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
fgo has quit [Remote host closed the connection]
maniacal has joined #ruby
Davey has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
hiyosi has joined #ruby
maniacal has joined #ruby
tealmage has quit [Remote host closed the connection]
maniacal has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
SHyx0rmZ has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
mansi has joined #ruby
ychaouche has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
ychaouche has left #ruby ["Konversation terminated!"]
maniacal has joined #ruby
Davey has quit [Client Quit]
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
aryaching has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
mlpinit has quit [Ping timeout: 276 seconds]
maniacal has joined #ruby
mikeg has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
mansi has quit [Ping timeout: 240 seconds]
lyanchih has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
kdaigle_ has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
nonamehero has quit [Read error: Connection reset by peer]
aprilthemoo has joined #ruby
maniacal has joined #ruby
aryaching_ has joined #ruby
byprdct has joined #ruby
Davey has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
aprilthemoo is now known as nonamehero
aryaching has quit [Ping timeout: 260 seconds]
<platzhirsch>
howdy
maniacal has quit [Read error: Connection reset by peer]
nonamehero has quit [Changing host]
nonamehero has joined #ruby
Davey has quit [Client Quit]
freerobby has joined #ruby
maniacal has joined #ruby
<shevy>
die
<shevy>
sorry, wrong idiom... I meant hi
* platzhirsch
gasps
maniacal has quit [Read error: Connection reset by peer]
noopq has quit [Ping timeout: 268 seconds]
ryandeussing has joined #ruby
maniacal has joined #ruby
<platzhirsch>
^^
lushious has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
wmoxam has joined #ruby
Companion is now known as companion
maniacal has joined #ruby
kdaigle_ has quit [Client Quit]
maniacal has quit [Read error: Connection reset by peer]
kdaigle_ has joined #ruby
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
pothibo has quit [Quit: pothibo]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
kdaigle_ has quit [Client Quit]
ryandeussing has quit [Ping timeout: 248 seconds]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
rovar has joined #ruby
maniacal has joined #ruby
<rovar>
hello all, I have a question about ERB. Is this a good place to ask?
<rovar>
or is there somewhere better..
colonolGron has quit [Quit: Lost terminal]
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
TDJACR has joined #ruby
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
harleytaz has joined #ruby
<shevy>
there is no #erb channel
maniacal has joined #ruby
<platzhirsch>
rovar: go ahead :)
maniacal has quit [Read error: Connection reset by peer]
<shevy>
best thing is to try and ask, or perhaps ask on #rubyonrails, more people should use erb there
<rovar>
I am rendering a partial inside another template
maniacal has joined #ruby
intuxicated has quit [Remote host closed the connection]
<rovar>
and in doing so, I'm also creating a hash table of data which references a field in another hash table
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
<rovar>
e.g. for the partial.. I have data like : src_ip => node[:cluster][:management][:ip]
maniacal has quit [Read error: Connection reset by peer]
<rovar>
but I don't want it to resolve right away, because node is not defined yet
maniacal has joined #ruby
<rovar>
so if I do src_ip => "node[:cluster][:management][:ip]"
maniacal has quit [Read error: Connection reset by peer]
<rovar>
and then in my partial I can "#{eval(src_ip)}" or something?
maniacal has joined #ruby
noopq has joined #ruby
<rovar>
I'm not sure which is the best way to go
maniacal has quit [Read error: Connection reset by peer]
<rovar>
maniacal's client is spazzing all over the place
maniacal has joined #ruby
realDAB has quit [Quit: realDAB]
<platzhirsch>
rovar: not sure, but why don't you resolve the hash inside the partial? To keep it general?
maniacal has quit [Read error: Connection reset by peer]
<rovar>
platzhirsch, what do you mean by resolve?
maniacal has joined #ruby
workmad3 has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
<rovar>
my problem is that I don't know which value to resolve inside the partial, so I need to resolve the value that points to the value that I need to resolve..
<platzhirsch>
by resolve I mean accessing the inner values through []
maniacal has quit [Read error: Connection reset by peer]
fridim__ has quit [Remote host closed the connection]
maniacal has joined #ruby
<platzhirsch>
rovar: what I do sometimes in these situations is to use a function inside the partial which does perform that step
<_br_>
rovar: You should try to keep your view templates (e.g. erb) as logic-less as possible. Also, view tables should only handle local variables passed into them and effectively display them. Everything else should as much as possbile be handled in the controller that effectively calls the view with variables.
maniacal has quit [Read error: Connection reset by peer]
<rovar>
so I can't just put #{node:[:cluster][:management][:ip]} in my partial, because it is general
maniacal has joined #ruby
<rovar>
I don't know if that's actually the value I need to resolve.
<rovar>
A function would work
<rovar>
but that gets kind of heavyweight..
<rovar>
I'm not sure if I get lambda notation in my operating environmetn..
<rovar>
environment
maniacal has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
<platzhirsch>
rovar: yes, but _br_ is right. The question to my mind is, why is node not set yet when you render the partial
mikeg has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
<rovar>
node is set when I render the partial
<rovar>
node is not set when I'm defining the hash table which says which IP I want to use
<rovar>
so I need late binding
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
dodosan has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
<spike|spiegel>
rovar: everything isn't an object, just behaves like one
maniacal has quit [Read error: Connection reset by peer]
<platzhirsch>
You could also provide an array with keys that map to the path of the inner hash and then execute arguments.inject(node) { |result, arg| result = result[arg] }
<shevy>
rovar some objects are not quite 100% real objects in ruby
maniacal has joined #ruby
<shevy>
x = 5; def x.hi; puts "hi"; end
havenwood has joined #ruby
<shevy>
TypeError: can't define singleton method "hi" for Fixnum
<shevy>
x = 5.5; def x.hi; puts "hi"; end
maniacal has quit [Read error: Connection reset by peer]
<shevy>
TypeError: cant define singleton method "hi" for Float
nemesit|znc has joined #ruby
maniacal has joined #ruby
<shevy>
:(
maniacal has quit [Read error: Connection reset by peer]
<platzhirsch>
locked up
<shevy>
oh man... I have to learn python for a course ... I already hate it...
maniacal has joined #ruby
<spike|spiegel>
you shouldn't need them, singletons are scary.
maniacal has quit [Read error: Connection reset by peer]
<spike|spiegel>
on regular objects too
<rovar>
python is a great language
<rovar>
it's just different than ruby
<platzhirsch>
and I need to drift back to statically typed languages soon or else I am starting to become a bad person
maniacal has joined #ruby
<rovar>
platzhirsch, give Rust a try :)
maniacal has quit [Read error: Connection reset by peer]
<platzhirsch>
I was more thinking about Scalar
<rovar>
Scala?
maniacal has joined #ruby
<platzhirsch>
Scala
maniacal has quit [Read error: Connection reset by peer]
St_Marx has quit [Remote host closed the connection]
maniacal has joined #ruby
mlpinit has quit [Remote host closed the connection]
maniacal has quit [Read error: Connection reset by peer]
freerobby has quit [Quit: Leaving.]
<shevy>
ah well
maniacal has joined #ruby
<shevy>
I'll get over it and do something useful... like try to use django while they want of the class to write basic python scripts instead...
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
<platzhirsch>
shevy: what class is it?
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
Notte has quit [Remote host closed the connection]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
<shevy>
I'll get over it and do something useful... like try to use django while they want of the class to write basic python scripts instead...
maniacal has joined #ruby
<shevy>
my silent hope is that I'll have a set of ruby scripts able to solve all requirements :P
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
nemesit|znc has quit [Ping timeout: 240 seconds]
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
<shevy>
I wish I could get rubygnome to work again
<shevy>
is there a simpler GUI toolkit available for ruby that works easily?
maniacal has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
nemesit|znc has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
Criztian has joined #ruby
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
<unsmell>
uhh
maniacal has joined #ruby
<unsmell>
i'm pretty sure maniacal has been join-spamming us for about half an hour now
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
<_br_>
shevy: Green shoes?
maniacal has quit [Read error: Connection reset by peer]
pothibo has joined #ruby
mansi has joined #ruby
maniacal has joined #ruby
<fuzzy>
Is there anyone around that's familiar with celluloid? https://gist.github.com/FuzzySunshine/6261919 my question is do I have 5 bots running or 10? My array tells me 5 and when I terminate i'm seeing 11
maniacal has quit [Read error: Connection reset by peer]
ryandeussing has joined #ruby
maniacal has joined #ruby
sml0820 has quit [Quit: sml0820]
maniacal has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
blackmesa has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
<platzhirsch>
If I want to define an alias_method for a class method, wouldn't I do that like so: class << Metric; alias_method :name, :to_sym; end?
<platzhirsch>
Because I get a stack level too deep exception
<pothibo>
how does ruby check for hash equality? it doesn't seem to go through hash or eql?
ezotrank has joined #ruby
<apeiros>
platzhirsch: that's how you'd do it
ryandeussing has quit [Remote host closed the connection]
<apeiros>
pothibo: if #hash is equal, it tests #eql? after
<platzhirsch>
apeiros: ah I get Stack level too deep because I use self.name inside the to_sym method
hogeo has joined #ruby
relix has joined #ruby
<spike|spiegel>
pothibo: you mean {} == {}? or buckets/collision?
<pothibo>
apeiros: I,m talking about hash == hash
maniacal has joined #ruby
<pothibo>
spike|spiegel: {} == {} :)
mansi has quit [Ping timeout: 260 seconds]
maniacal has quit [Read error: Connection reset by peer]
maniacal has quit [Read error: Connection reset by peer]
<MrZYX>
I'm still tipping on wild unexpected characters because if I copy paste your example into a pry session it passes YAML.load just fine
maniacal has joined #ruby
momomomomo has joined #ruby
<MrZYX>
that is unexpected characters caused by encoding hell
maniacal has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
<pontiki>
what is at that position in your file?
maniacal has joined #ruby
<pontiki>
MrZYX: it's an encoding issue, then?
maniacal has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
maniacal has joined #ruby
<MrZYX>
It's my bet, I've no prove
maniacal has quit [Read error: Connection reset by peer]
rcosta_ has quit [Remote host closed the connection]
<pontiki>
nod
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
<MrZYX>
I mean that this is windows is another indicator for that :P
maniacal has joined #ruby
<pontiki>
sure
weeems has quit [Ping timeout: 240 seconds]
maniacal has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
v1n has joined #ruby
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
mikeg has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
<unsmell>
windows is dev hell
kaspergrubbe has quit [Ping timeout: 260 seconds]
emergion has quit [Quit: Computer has gone to sleep.]
renderful has joined #ruby
<momomomomo>
MrZYX: I missed your issue - but you might try installing a linux VM
baroquebobcat has joined #ruby
mikeg has joined #ruby
s2013 has joined #ruby
bamdad has quit [Quit: bamdad]
mikeg has quit [Read error: Connection reset by peer]
<MrZYX>
momomomomo: maybe it's better to not answer to an answer in a conversation if you didn't read the conversation ;)
shunt has joined #ruby
wmoxam has joined #ruby
<momomomomo>
MrZYX: I didn't answer your question, just suggesting an option for windows users
mikeg has joined #ruby
k611 has quit [Quit: Leaving]
mikeg has quit [Read error: Connection reset by peer]
maniacal has quit [Read error: Connection reset by peer]
<MrZYX>
I'm not even a Windows users, which would be very clear if you would have payed attention to the context
maniacal has joined #ruby
<MrZYX>
*user
<unsmell>
yeah i am
maniacal has quit [Read error: Connection reset by peer]
<momomomomo>
MrZYX: drop your attitude, I just connected in the last ~5 min - and saw this "MrZYX: I mean that this is windows is another indicator for that "
Quashie has joined #ruby
maniacal has joined #ruby
v1n has quit [Ping timeout: 240 seconds]
maniacal has quit [Read error: Connection reset by peer]
<MrZYX>
My attitude is to not answer to a single statement without any context
<MrZYX>
I should drop that?
maniacal has joined #ruby
<apeiros>
I suggest you drop your hat
maniacal has quit [Read error: Connection reset by peer]
<havenwood>
i suggest brunch!
<momomomomo>
Context for me (at the time of connection) was that you're complaining about Windows
<apeiros>
but I had brunch!
<unsmell>
i agree w/ apeiros
wallerdev has joined #ruby
maniacal has joined #ruby
lyanchih has quit [Quit: lyanchih]
<unsmell>
Hat Simulator 2013 for everyone
tk_ has quit [Quit: ばいばい]
<havenwood>
mmm, mimosas
<apeiros>
those are beautiful flowers
<shevy>
lol
<shevy>
mmm, lemmings
maniacal has quit [Read error: Connection reset by peer]
<havenwood>
that was a fun game
<unsmell>
also has anyone but me noticed maniacal has been join-leaving this channel for about 1 hour now?
<shevy>
:D
<momomomomo>
unsmell: Connection issues maybe
<shevy>
unsmell, no idea, I never see who leaves or joins, for me IRC is like a permanent, perpetual pub where noone is watching the entrance/exit door
maniacal has joined #ruby
<unsmell>
ugh
<momomomomo>
maniacal left the chat room. (Read error: Connection reset by peer)
<unsmell>
maniacal [~maniacal@ip72-201-158-246.ph.ph.cox.net] entered the room.
<unsmell>
maniacal left the chat room. (Read error: Connection reset by peer)
<unsmell>
maniacal left the chat room. (Read error: Connection reset by peer)
<unsmell>
maniacal [~maniacal@ip72-201-158-246.ph.ph.cox.net] entered the room.
<havenwood>
i think if i watched leave/join i'd be annoyed with my self
<unsmell>
screaaaming
<unsmell>
ugh
<shevy>
I am happy, as of today my old ruby-gtk apps can work again (but they were written in 1.8.x days, so I must do lots of changes to have them work on 1.9.x)
<zendeavor>
good thing i hide those
<unsmell>
unninstalling thunderbird
Shirakawasuna has joined #ruby
<shevy>
unsmell what client do you use?
maniacal has quit [Read error: Connection reset by peer]
renderful has quit [Ping timeout: 245 seconds]
<unsmell>
read: last message
enebo has joined #ruby
<unsmell>
do you recommend any irc clients?
<havenwood>
I use LimeChat, happens to be written in Ruby.
enebo has quit [Client Quit]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
dagnachew has quit [Quit: Leaving]
<unsmell>
does it have support for custom fonts?
<havenwood>
Okay, not really Ruby now, I swear it used to be written in a pre-cursor to RubyMotion or something along those lines: https://github.com/psychs/limechat#readme
Opettaja has joined #ruby
<unsmell>
or atleast changing it
<havenwood>
Its OS X though, dunno your platform?
maniacal has joined #ruby
<unsmell>
M$
<unsmell>
win8
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
<unsmell>
multiplatform irc clients, anyone?
<apeiros>
havenwood: it used to be written in ruby
<havenwood>
Looks like XChat or mIRC.
<apeiros>
but he switched to objC
<havenwood>
apeiros: Whew, not losing my mind.. :)
<unsmell>
mIRC has always been really annoying for me
maniacal has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
<momomomomo>
depending on what servers you have at your disposal, you could run a web based IRC client
mikeg has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
aryaching_ has quit [Ping timeout: 256 seconds]
maniacal has joined #ruby
mikeg has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
mikeg has quit [Read error: Connection reset by peer]
<pontiki>
irssi
<havenwood>
unsmell: Might just want to virtualize Fedora or Mint or something, at least vagrant for a nice command line.
maniacal has joined #ruby
ezotrank has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has quit [Read error: Connection reset by peer]
thesheff17 has joined #ruby
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
dodosan has joined #ruby
rcosta has joined #ruby
mikeg has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
mikeg has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
Matriks has joined #ruby
vyorkin has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
vyorkin has quit [Quit: leaving]
vince_prignano has joined #ruby
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
dodosan has quit [Ping timeout: 240 seconds]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
mikeg has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
mikeg has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
vince_prignano has quit [Remote host closed the connection]
jongilbraith has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
maniacal has quit [Read error: Connection reset by peer]
maniacal has joined #ruby
<shevy>
dumdedum
maniacal has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
goganchic has joined #ruby
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
banisterfiend has quit [Read error: Connection reset by peer]
jonathanwallace has joined #ruby
mucker has joined #ruby
goleldar has joined #ruby
aryaching has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
mikeg has joined #ruby
lyanchih has quit [Quit: lyanchih]
dodosan has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
vince_prignano has joined #ruby
obanta has joined #ruby
vince_prignano has quit [Remote host closed the connection]
BillCriswell has quit [Remote host closed the connection]
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
mucker has quit [Quit: leaving]
maz-dev has joined #ruby
momomomomo has quit [Quit: momomomomo]
VTLob has joined #ruby
mikeg has joined #ruby
threesome has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
ntus1017 has quit [Remote host closed the connection]
tommyvyo has joined #ruby
vince_pr_ has joined #ruby
vince_pr_ has quit [Client Quit]
maniacal_ has joined #ruby
sml0820 has quit [Quit: sml0820]
vince_prignano has joined #ruby
maniacal_ has quit [Read error: Connection reset by peer]
mikeg has quit [Ping timeout: 240 seconds]
ukd1 has joined #ruby
mikeg has joined #ruby
buenob has quit [Read error: Connection reset by peer]
mikeg has quit [Read error: Connection reset by peer]
buenob has joined #ruby
Nisstyre-laptop has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
Nisstyre-laptop is now known as Nisstyre
snath has quit [Ping timeout: 264 seconds]
buenob has quit [Read error: Connection reset by peer]
mikeg has joined #ruby
wallerdev has quit [Quit: wallerdev]
buenob has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
niteowl has joined #ruby
Beoran__ has quit [Remote host closed the connection]
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
ismell has left #ruby [#ruby]
baroquebobcat has joined #ruby
companion is now known as Companion
fgo has quit [Remote host closed the connection]
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
martxel1 has joined #ruby
martxel has quit [Quit: leaving]
martxel1 is now known as martxel
martxel has quit [Changing host]
martxel has joined #ruby
mikeg has joined #ruby
pyrac has joined #ruby
<chihhsin>
irssi ftw!
mikeg has quit [Read error: Connection reset by peer]
rcosta has quit [Remote host closed the connection]
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
machuga is now known as machuga|away
bluenemo has joined #ruby
bluenemo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<shevy>
xchat 4ever!
baroquebobcat has quit [Quit: baroquebobcat]
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
rcosta has joined #ruby
zorg24 has joined #ruby
Companion is now known as companion
rcosta_ has joined #ruby
<ayonix>
quassel rocks!
rcosta has quit [Ping timeout: 264 seconds]
<_br_>
let the flamewar begin -.-
<shevy>
eh _br_ you must announce which IRC client is your only true love
<_br_>
lol irssi of course ^^
<apeiros>
_br_: my flamewar is bigger than your puny flamewar!
<_br_>
hehe
mikeg has joined #ruby
codelurker has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
codelurker has quit [Read error: Connection reset by peer]
bluenemo has quit [Quit: Verlassend]
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
jonathanwallace has quit [Ping timeout: 248 seconds]
fridim__ has joined #ruby
<shevy>
hmm now if ruby had only an IRC client
<apeiros>
shevy: go write one
Naoe-Kanno has joined #ruby
SHyx0rmZ has quit [Ping timeout: 256 seconds]
pitzips_alt has joined #ruby
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
<Morrolan>
shevy: I take it you'll try to get it into Ruby's stdlib? :)
pvizcay has joined #ruby
wallerdev has joined #ruby
pvizcay has quit [Client Quit]
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
kaspergrubbe has joined #ruby
rickruby has quit [Remote host closed the connection]
sml0820 has joined #ruby
mikeg has joined #ruby
companion is now known as Companion
cs02rm0 has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
choobie has left #ruby [#ruby]
visof has quit [Ping timeout: 264 seconds]
mikeg has joined #ruby
kaspergr_ has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Read error: Connection reset by peer]
sml0820 has quit [Client Quit]
a7d7p has joined #ruby
mikeg has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
rickmasta has quit [Quit: Leaving...]
SHyx0rmZ has joined #ruby
emergion has joined #ruby
<shevy>
Morrolan too much effort to get anything into stdlib honestly
mikeg has joined #ruby
<shevy>
apeiros it's on my todo list, my current one can connect to a channel and I can use it ... but it's more a minimal one, it misses a gazillion of features
mikeg has quit [Read error: Connection reset by peer]
Naoe-Kanno has quit [Ping timeout: 256 seconds]
ewnd9 has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
buenob has quit [Remote host closed the connection]
mikeg has joined #ruby
buenob has joined #ruby
mikeg has quit [Read error: Connection reset by peer]
dangerousdave has joined #ruby
BSaboia has quit [Quit: Leaving]
<epitron>
heftig: rbx is worse than MRI for garbage beacuse rbx is implemented in ruby. try counthing the things in ObjectSpace on both platforms
mikeg has joined #ruby
<epitron>
*counting
mikeg has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
iaj_ is now known as iaj
buenob has quit [Ping timeout: 245 seconds]
zorg24 has quit [Read error: Operation timed out]
horofox_ has joined #ruby
procrastinat0r is now known as sayan
sayan has quit [Changing host]
sayan has joined #ruby
pyrac has quit [Quit: pyrac]
weeems has joined #ruby
huevon has joined #ruby
gimpygoo has joined #ruby
yshh has joined #ruby
<Morrolan>
shevy: Hah, I can imagine that getting something like an IRC client in there might prove difficult indeed. :P
rickruby has joined #ruby
<shevy>
yeah
<shevy>
it's ok now with gems, one can just release it as gem and that's it
zoee has joined #ruby
yshh has quit [Remote host closed the connection]
Spami has joined #ruby
arietis has joined #ruby
<Morrolan>
Yea. It's a very nice packaging system indeed. :)
tommyvyo has quit [Quit:]
momomomomo has joined #ruby
tommyvyo has joined #ruby
ukd1 has quit [Remote host closed the connection]
pkrnj has joined #ruby
xcv has joined #ruby
tommyvyo has quit [Client Quit]
vlad_starkov has joined #ruby
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
Wildhoney has quit [Quit: Wildhoney]
VTLob has quit [Quit: VTLob]
dodosan has quit [Remote host closed the connection]
hadees has quit [Quit: hadees]
leeurooi has joined #ruby
kaspergr_ has quit [Remote host closed the connection]
sml0820 has joined #ruby
colonolGron has joined #ruby
hadees has joined #ruby
gimpygoo has quit [Read error: Operation timed out]
<sml0820>
i have a basic ruby question. I have hash called row, a1 => 2. I want to print "2"
zorg24 has joined #ruby
<sml0820>
so like row.2nditem - what would it be?
dodosan has joined #ruby
<waxjar>
row[a1] ?
tommyvyo has joined #ruby
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
starfox21 has joined #ruby
<sml0820>
okay but there is alot of different ones like c3, b6 etc
<epitron>
Morrolan: putting an irc client in the STDLIB will hinder its evolution
<starfox21>
So I was just in irb and I wanted to get some quick info about rand. What is the fastest way to get the rand documentation from irb?
<sml0820>
@waxjar so i pass the whole hash in a block. @cards.each_with_index |row, i| row.2nditem
<epitron>
Morrolan: it would be nice to put an evented network framework in the stdlib though..
<epitron>
something that makes it easier to write irc clients
<epitron>
that would be simple enough that you wouldn't have to change it much after it gets added
<waxjar>
shevy, is your irc client online somewhere?
Senjai has joined #ruby
Senjai has quit [Changing host]
Senjai has joined #ruby
<waxjar>
sml0820, i don't understand what you want to do, tbh
<epitron>
starfox21: use pry :)
<epitron>
starfox21: you just type "? rand" for documentation... or "ri rand" if you don't like pry's documentation system
<starfox21>
epitron: thanks. Gonna give pry a shot
leeurooi has quit [Quit: Computer has gone to sleep.]
<epitron>
"gem install pry-plus" to get all the goodies
<Banistergalaxy>
Starfox21 there is a little bit of epitron in there too
Maoko has joined #ruby
thepumpkin has quit [Remote host closed the connection]
Astral_ has joined #ruby
wmoxam has joined #ruby
sjltaylor has joined #ruby
spider-mario has quit [Ping timeout: 240 seconds]
<starfox21>
Banistergalaxy: i see, well I have been using pry in rails for debugging I just did not know that people also used it as a replacement for irb
Wildhoney has joined #ruby
kjellski has joined #ruby
<havenwood>
+1 alias irb="pry"
kaspergrubbe has joined #ruby
<starfox21>
epitron: this is great! the documentation is very readable. Can't wait to see what else comes with pry
noopq has quit [Ping timeout: 268 seconds]
Astralum has quit [Ping timeout: 264 seconds]
<havenwood>
starfox21: The `help` command is super helpful. :P
<starfox21>
havenwood: thanks, this looks very promising
Maoko has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maz-dev has quit [Remote host closed the connection]
cs02rm0 has quit [Ping timeout: 240 seconds]
spider-mario has joined #ruby
Swizzy has joined #ruby
<epitron>
starfox21: there's a talk from railsconf if you like that kind of thing
<epitron>
or you can type "help"
dangerousdave has quit [Read error: Connection reset by peer]
<starfox21>
epitron: I am watching railsconf talk by conrad irwin
<epitron>
good choice
dtcrshr has quit [Quit: poff]
goganchic has quit []
Spami has quit [Quit: This computer has gone to sleep]
IceyEC has quit [Quit: IceyEC]
xcv has quit [Ping timeout: 260 seconds]
ebanoid has quit [Quit: brbomgwtfbbq]
dtcrshr has joined #ruby
<shevy>
waxjar well yeah but it is awful and buggy :(
s2013 has quit [Ping timeout: 256 seconds]
rickmasta has joined #ruby
<shevy>
waxjar here is the current code http://pastie.org/pastes/8247989/text I stopped after having been unable to figure out how to use openssl + ruby in IRC
zorg24 has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Remote host closed the connection]
BrianJ has joined #ruby
<epitron>
ooo, nice comments :)
<Morrolan>
epitron: I am aware, my first 'suggestion' of him trying to get it into the stdlib was a (failed) attempt at a joke. :P
dangerousdave has quit [Quit: Leaving...]
<epitron>
asciidoc
<epitron>
Morrolan: oic
<waxjar>
cool, i'll have a look. i've been working on a simple irc library for a while now.
<shevy>
I need to figure out OpenSSL::SSL::SSLContext.new
kaspergrubbe has joined #ruby
<shevy>
waxjar, do you have openssl support working?
intuxicated has joined #ruby
<shevy>
I know that there are irc libs that have it
<waxjar>
yes, but not the verifying of certificates :(
pkrnj has quit [Ping timeout: 264 seconds]
<epitron>
haha
<epitron>
the certificate system is totally fubar anyways
<epitron>
just accept everything
<shevy>
hehe
<epitron>
you'll get basically the same level of security
yshh has joined #ruby
<waxjar>
yea, that's what i figured. maybe some day i'll try to figure it out
dangerousdave has joined #ruby
<MrZYX>
just implement DANE right away and accept nothing else :P
<SmoothPorcupine>
Oh right I forgot about that aspect of the docs.
viszu has joined #ruby
icco has quit [Ping timeout: 240 seconds]
<pontiki>
This came up on ruby-talk, wondering if anyone has any insights about Date.parse, strftime and strptime and NA-ordered dates (MM/DD/YYYY) : https://gist.github.com/tamouse/6263292
sparq_ has quit [Read error: Operation timed out]
<pontiki>
i don't have different versions of ruby to check this out on (and behind a way-slow connection)
<pontiki>
anyone else run into something like this?
jefflyne has joined #ruby
jefflyne has quit [Max SendQ exceeded]
jefflyne has joined #ruby
icco has joined #ruby
<shevy>
on ruby "1.9.3" it also fails
cj3kim has joined #ruby
<pontiki>
interesting
<pontiki>
the OP was working on upgrading a Rails app from 2-ish to 4-ish, so I'm assuming they were also back in the 1.8.7 time frame when it worked.
atno has joined #ruby
<shevy>
hmm
<shevy>
let's see if I can test on 1.8.x
thepumpkin has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
popl has joined #ruby
<shevy>
sorry
Guest84900 has quit [Read error: Operation timed out]
<shevy>
cant even compile it anymore it seems :(
<shevy>
In file included from dl.c:104:0:
<shevy>
callback.func:78:33: error: expected ')' before '(' token
<shevy>
callback.func:79:3: warning: data definition has no type or storage class [enabled by default]
Strato has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
vlad_starkov has quit [Read error: Connection reset by peer]
VTLob has joined #ruby
rcosta_ has quit [Ping timeout: 256 seconds]
tommyvyo has joined #ruby
tommyvyo has quit [Client Quit]
MrZYX is now known as MrZYX|off
Wildhoney has quit [Quit: Wildhoney]
<platzhirsch>
You know, if you have implemented a progress bar that can grow backwards that you have done a shitty job
<_br_>
pontiki: Since you are already supplying a format using #parse makes no sense. Parse will use heuristics to find out what type of format you provided. Why not use #strptime instead then?
<popl>
platzhirsch: or defied physics
<_br_>
platzhirsch: Nice, it goes back in time to delete itself maybe ^^
freerobby has quit [Quit: Leaving.]
<popl>
I thought Microsoft already had those…
<popl>
:)
<platzhirsch>
No, I think that was only for the estimated time of completion
intuxicated has quit [Ping timeout: 256 seconds]
sml0820 has quit [Quit: sml0820]
MrZYX|off is now known as MrZYX
pitzips_alt has quit [Ping timeout: 246 seconds]
brain_shim has joined #ruby
brennanMKE has quit [Remote host closed the connection]
<shevy>
then the window will remain opened ... or just log all output into files anyway
<unsmell>
i'm not gonan argue how i do this right now okay
<popl>
nobody is arguing
<shevy>
ok the indent looks wrong
<unsmell>
gonan
<xybre>
Screenshot, print it out, scan it, post on imgur, take picture with phone, picture message it to oneself, copy it from phone onto desktop, embed in word doc, upload to google docs, download as PDF, convert PDF to png, then upload to puu.sh.
<popl>
unsmell: are you on your phone?
<unsmell>
eww word
<unsmell>
yes popl.
<unsmell>
i am running windows cmd on my phone
<unsmell>
+ ruby
<popl>
are you being sarcastic?
kaspergrubbe has joined #ruby
<unsmell>
yes
jonathanwallace has joined #ruby
hogeo_ has joined #ruby
vince_prignano has quit [Ping timeout: 240 seconds]
<shevy>
I am not sure what is wrong with that yaml file
<shevy>
they only thing I would do differently is move the - values one space to the left
<shevy>
but strangely enough, both syck and psych seem to have zero problem with either of that... so I am at a loss
<unsmell>
odd
yacks has quit [Quit: Leaving]
supki_ is now known as supki
<unsmell>
I'm running 1.9.3 also
<xybre>
unsmell: that yaml works here, maybe its a newline problem, since you're on windows
<unsmell>
ooh
<unsmell>
I figured it out
hogeo has quit [Ping timeout: 268 seconds]
<unsmell>
I had it on UTF-16 ?
rcosta_ has joined #ruby
<shevy>
what was it
hashpuppy has joined #ruby
<xybre>
O_o
<shevy>
UTF-16 is valid for yaml
<unsmell>
switched back to UTF-8 lol
<unsmell>
it is?
<shevy>
yes
<popl>
it's probably documented somewhere
<unsmell>
then why is it working with UTF-8 and not UTF-16
<xybre>
Yeah but I think the file wasnt properly encoded for utf16
<shevy>
"YAML streams are encoded using the set of printable Unicode characters, either in UTF-8 or UTF-16."
<shevy>
dunno unsmell
<SmoothPorcupine>
unsmell my friend, because "I had it on UTF-16" is the least sane thing said in the past half hour in this channel by a wide margin.
jonathanwallace has quit [Ping timeout: 245 seconds]
<unsmell>
i know lol
<shevy>
but I know that these two encodings are valid because I was told that once when I used some ISO-* encoding, and was told I may not use that for yaml, but syck had no problem with it... whereas psych has :(
<popl>
even counting the banana stuff
<shevy>
hey
<unsmell>
I was playing around with encodings yesterday, must've left that on UTF-16
<shevy>
Banana Joe uses ruby
<unsmell>
banana joe is the worst thing i have ever done to this channel
Criztian has quit [Remote host closed the connection]
<popl>
unsmell: you're still young
<MrZYX>
didn't I say encoding like 12 hours ago?
<popl>
unsmell: don't count yourself out yet
rcosta has quit [Ping timeout: 248 seconds]
<shevy>
lol
<popl>
MrZYX: Is this an old problem?
<shevy>
unsmell we want more pics
<unsmell>
lol thanks guys
<MrZYX>
popl: pretty much
<unsmell>
shevy: n o
<popl>
MrZYX: story of IRC
<popl>
:)
<shevy>
I dont remember what happened more than one hour ago here
<shevy>
though it is more brown and less yellow...
brain_shim has quit [Ping timeout: 256 seconds]
cucumbrman has joined #ruby
swordsmanz has joined #ruby
<shevy>
I think it just comes from latin
tabolario has joined #ruby
starfox21 has quit [Quit: starfox21]
huevon has quit [Quit: huevon]
andrew565 has joined #ruby
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<platzhirsch>
if I use multiple and states in on the left side of an assignment operator, like: success = (cond1 and cond2 and cond3), why do I have to set parentheses? does the assignment operator (=) bind strong than and?
nanoxd has joined #ruby
freerobby has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
starfox21 has joined #ruby
theRoUS has quit [Ping timeout: 268 seconds]
<fryguy>
platzhirsch: TIAS
Quashie has quit [Ping timeout: 264 seconds]
Maoko has joined #ruby
<platzhirsch>
nvm, seems to be the case
<apeiros>
platzhirsch: use || instead of and
<apeiros>
err, &&
<shevy>
what is TIAS?
<platzhirsch>
fryguy: yeah *headdesk*
<platzhirsch>
try it and see
<MrZYX>
guess why everybody uses && and ||
<shevy>
yeah
Matriks has quit [Remote host closed the connection]
<shevy>
though and reads nicer
<unsmell>
ewww verbose conditionals
<shevy>
if/else/elsif
<unsmell>
damnit
<platzhirsch>
Vim highlights and so niecly, && is ugly white
<unsmell>
ugly white
<shevy>
I stepped beyond the phase of vim
<apeiros>
platzhirsch: modify the highlighting?
<platzhirsch>
apeiros: not a real problem
hashpuppy has quit [Quit: Computer has gone to sleep.]
<unsmell>
i'm in my scene phase of programming
<shevy>
scene phase?
<platzhirsch>
shevy: that sounds like I was standing on the brink and took the step beyond
bamdad has joined #ruby
<Kelet>
People use && || instead of and or because order of operations is different and && || present the more common order of operations IIRC
<shevy>
platzhirsch well ruby is not perfect either
<popl>
COBOL is awesome
<popl>
you can make *bank* writing COBOL
<shevy>
platzhirsch the hateness is just smaller with ruby
<shevy>
except for encoding
<popl>
not really shevy
<popl>
:P
<platzhirsch>
shevy: and it shouldn't be, but neither do I want to read rants about languages
<Nilium>
Cobol gets a bad rep for being old, but the mainframes running it are usually the most robust things still running.
<popl>
I have seen a lot of Ruby hate
<popl>
mostly towards the community though
<shevy>
I have not
<platzhirsch>
especially due to the arranged marriage with Rails
<unsmell>
me either
<Nilium>
It's just the crap people stack on top of the old Cobol systems that makes it look bad
<shevy>
I see it only through people who say rails community == ruby community
<popl>
Nilium: yep
<unsmell>
most of what is see is "ruby? wtf is that"
<shevy>
and I dont know the rails community at all
kirun has quit [Quit: Client exiting]
<unsmell>
shevy: same
<shevy>
yeah unsmell :(
<platzhirsch>
there is still the blame of 'monkey patcher'
<sam113101>
it's shit
<shevy>
php is the king of scripting languages today
<popl>
Yep. It's the same way people equate Perl now with Perl from last century.
<popl>
It's a stigma that can't be gotten rid of.
<shevy>
you promised us perl 6!!!
<sam113101>
I used to go on #rubyonrails but I left the channel
<unsmell>
i'm working on a videogame w/ ruby 1.9.3 + gosu
<Nilium>
I still need to try the newest Perl.
<unsmell>
and
<popl>
perl 6 is a different language shevy
<sam113101>
it's shit, don't go there
<platzhirsch>
sam113101: why? I am there, it's pretty decent
snath has joined #ruby
<shevy>
lol sam113101
<unsmell>
i was talking to some programmer friends on ruby and they said I should do it on C#/C++
<shevy>
good unsmell
<shevy>
Nilium is also working on games
brain_shim has joined #ruby
<popl>
Nilium: which?
<shevy>
shawn is working on his toolkit on #gamebox, also with gosu
<popl>
Nilium: newest Perl 5 you mean?
<unsmell>
oh i know shawn
<shevy>
and jacius used to drive #rubygames but he left 3 years ago about :(
<sam113101>
for how long have you been there?
<shevy>
sorry, #rubygame
nonamehero has quit [Read error: Connection reset by peer]
<Nilium>
popl: No, Perl 6.
<sam113101>
I've been there for 8 months or so
<shevy>
Nilium is still a new cat on the block
<platzhirsch>
3-4 months
nonamehero has joined #ruby
<Nilium>
I'm not sure if there's any usable implementation of it yet, though, since I've not kept track of it
<shevy>
Nilium you need a working installation of perl 5 in order to bootstrap the parrot vm!
<unsmell>
i talked to shawn before, i think
<Nilium>
unsmell: In all honesty, you probably _should_ use C++ for games.
<shevy>
I can see the picture parrot sends to us... "If you want to see the shiny future of perl 6 ... you need to first have perl 5 working!!!"
<unsmell>
i hoenstly agree, Nillium
<Nilium>
Sane C++, anyway.
<Nilium>
That said, I'm trying to do game stuff in Ruby just because I can.
<unsmell>
thing is, these days the best way to code games is to not code at all
<shevy>
awwww
<shevy>
that's the reason why games in ruby will never work
Notte has quit [Remote host closed the connection]
<unsmell>
now that
<unsmell>
that is just unhopeful
<shevy>
RUBY IS TOO SLOW
<unsmell>
BAHAHAHHA
<unsmell>
you're comparing ruby to C# runtime?
<shevy>
perhaps you can do some cardgames
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
<Nilium>
Rubinius is actually pretty good at the whole performance thing.
<shevy>
and we bundle all ruby gems into a meta-gem ... "The Ruby Game Collection"
<Nilium>
Plus there's also RubyMotion, so it's obviously possible to statically compile Ruby
<unsmell>
a huge clusterfuck of hard-coded unuseful shit
<shevy>
lol
<shevy>
I like that... can I quote you on this unsmell ?
<unsmell>
go ahead
<unsmell>
just source me as @kernelwizard please
<shevy>
"Banana Joe said there is a huge clusterfuck of hard-coded unuseful shit out there"
<Nilium>
Sourced as colonelwizard, got it
<platzhirsch>
Ruby has only one problem and that is the GIL
<shevy>
wow
<shevy>
we narrowed it down to just one now ...
<unsmell>
GIL?
<platzhirsch>
GIL is a facist
<unsmell>
one problem?
<platzhirsch>
Global Interpreter Lock
<unsmell>
I'm so confused right now
<Nilium>
Ruby has one problem, and it's Matz >_>
<unsmell>
what does GIL do
<shevy>
ruby would not be ruby without matz
<shevy>
it would be like perl 6 ... total anarchy ...
<unsmell>
matz has one problem, the ruby community
<shevy>
matz can ignore the community
<Nilium>
Well, Matz doesn't like threads, so he's currently kind of a problem
<shevy>
though the rails lobby is powerful... they got the hash syntax in
<unsmell>
threaded programming.. *shudder*
<Nilium>
I don't mind the hash syntax too much. It improved arbitrary named arguments
<unsmell>
btw shevy what are you gonna do with that quote?
<Nilium>
The only downside is when you want to do something like `name: :sym` and it just looks weird as hell
<Nilium>
Does not pass the smell test for me.
<platzhirsch>
Nilium: without the space?
<Nilium>
Without the space is an error
<Nilium>
Well, an error unless name is a class
<Nilium>
Or module
<platzhirsch>
`name: :sym` you mean?
<platzhirsch>
oh
<unsmell>
i am the smelliest of smelly smells that smell smelly
<Nilium>
It already has a space >_>
<platzhirsch>
now I see the space
<platzhirsch>
There some nice code smell names, like shotgun surgery, how cool is that?
gimpygoo has joined #ruby
<Nilium>
I've only heard of shotgun rhinoplasty.
<Nilium>
I'm probably heavily guilty of shotgun surgery, going by the wiki
<Nilium>
Although really it's more that I'm guilty of not committing often enough
chrisseaton has joined #ruby
hashpuppy has joined #ruby
<chrisseaton>
Hi everyone. I need some clarification about class variables. In this code http://pastebin.com/dj2bnGQy - what is the difference between lines 9 and 16 - they look the same, but have different semantics - anyone know why?
Spooner has joined #ruby
ebanoid has quit [Quit: brbomgwtfbbq]
<shevy>
unsmell dunno... perhaps store it in my IRC collection
<unsmell>
put it in bash.org
<platzhirsch>
The only thing I miss with Ruby is interfaces as in design by contract, heavy refactoring and better code completion
<Nilium>
chrisseaton: Could you clarify what about it's confusing you?
snath has quit [Ping timeout: 264 seconds]
<unsmell>
@@variables are the same from class to class exactly.
<chrisseaton>
Nilium: both methods have the same form - but in one, assigning a class variable puts it in the class of self, and in the other it puts it in self
<unsmell>
@variables are different, depending on which instance of the class
sml0820 has joined #ruby
<Nilium>
Pretty much. They're both accessing the same class variable. The only difference is really that x.foo is defined specifically on only one instance of Foo and self.foo is defined for Foo, which is an instance of Class.
<chrisseaton>
Nilium: but how does Ruby know where to put the instance variable? In one version it goes in one place, in the other it goes somewhere else, and I can't figure out what the rule is.
<unsmell>
uhm
<unsmell>
you don't need to reference self
<Nilium>
Where to put it?
<chrisseaton>
Nilium: sorry, where to read it from. Both methods and lines look the same, but one line reads it the variable from self, and the other from the class of self. How does Ruby know which to do?
<Nilium>
See class_variable_get/set vs. instance_variable_get/set
<Nilium>
Also, in general, you probably don't want to use class variables. It seems to be mostly a no-no.
<chrisseaton>
Nilium: yeah, this isn't for new code, I'm trying to understand existing code
<unsmell>
class variables are usually used to save space
<unsmell>
and avoid making multiple copies of one thing
<chrisseaton>
Nilium: I'm not mad am I though - there is some subtlety here isn't there?
codezombie has joined #ruby
<unsmell>
especially if the variable isn't set by #initialise
whowantstolivefo has quit [Quit: whowantstolivefo]
<Nilium>
Less subtlety and more that Ruby is sort of doing syntactic magic all over the place.
cads has joined #ruby
clooth has quit [Quit: clooth]
<shevy>
magic is not bad
Z3tta has quit [Ping timeout: 264 seconds]
<unsmell>
ruby is an almost perfect mashup of the most critisized languages that somehow manages to work out just fine
<unsmell>
magic is what's behind the curtain, the cloth, and the wizard
<Nilium>
Syntactic magic is fine. Lua has it out the wazoo and it's awesome for it.
<unsmell>
and oh im realyl sorry shevy
mary5030 has joined #ruby
<unsmell>
now you won't be productive for a while now that you're entranced in bash.org
<shevy>
man
<chrisseaton>
here's my question boiled down; if I do def x.y; @@z = 14; end is the class variable going to go into the object x, or the class of object x? because in that pastebin it happens both ways?
<shevy>
only famous people manage to make it there unsmell ... you were close but still not quite there
<unsmell>
class of object x
<shevy>
class variables are always part of a class
Z3tta has joined #ruby
<shevy>
it's like a global variable, but restricted to a particular class
<unsmell>
if it were instance it would be in the object, not the class
<chrisseaton>
unsmell: but in line 16, it reads it from the object self, not the class of self
mary5030 has quit [Remote host closed the connection]
hashpuppy has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
<chrisseaton>
unsmell: but how does it know to read it from self, or self.class... line 9 reads it from self.class, and line 16 reads it from self
hashpuppy has joined #ruby
<unsmell>
i'm really not the person to ask
<Nilium>
Without looking at the MRI source code -- which I should actually do -- my guess is that it does something like `if responds_to?(:class_variable_get) ; ... ; else self.class... end`
<Nilium>
*respond_to
<unsmell>
i got into ruby this easily and understand what i do with mere luck
<unsmell>
i've been studying the language for about 10 months
<chrisseaton>
Nilium: hmm... I'll take a look at that idea thanks
<shevy>
unsmell that is the intuitive way of understanding
<shevy>
the learning without having to learn
<unsmell>
yes
<Nilium>
Basically, I'd have to look at how it's actually implemented to say, but that would be a rudimentary way of doing it.
<unsmell>
i love that
<Nilium>
I like that I got to use the word "rudimentary"
<Nilium>
Do you know how hard it is to find a use for it?
<unsmell>
i absolutely despise lesson-based learning
<popl>
There are some rudimentary uses.
<shevy>
it reminds me of rudi
brain_shim has quit [Ping timeout: 248 seconds]
<shevy>
rudi rudi gib Acht
<unsmell>
wot
<popl>
Nilium: Now find a use for floccinaucinihilipilification.
<Nilium>
I learned Ruby because a friend of mine, who I unfortunately haven't heard from in years, showed it to me and said "hey you can learn GL by using GLUT in Ruby and it's awesome" and I was like "yeah this is awesome"
<shevy>
hehehe
<shevy>
Dein Schatten schleicht durch die Nacht
<Nilium>
popl: That's easy, use it on any critic of Perl.
<popl>
I couldn't find the term in foldoc but maybe it's in urban dictionary
jongilbraith has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
maxmanders has quit [Ping timeout: 264 seconds]
<popl>
totally unimportant :P
<popl>
Perl::Critic is one.
<Nilium>
I'm not sure if 'linter' is even an accepted term, since I just use it to refer to thingies like lint.
<popl>
I'd probably say lint-like but I'm a wee bit obsessive.
<Nilium>
Well, wikipedia likes lint-like, but that's obtuse to use
<Nilium>
.. I don't think I can use obtuse like that.
<popl>
I like the repeataing l sound.
<popl>
*repeating
<sqd>
to clone an integer, do I use #dup or #clone? i noticed that @var = @@var doesn't create a clone of @@var automatically
threesome has quit [Ping timeout: 264 seconds]
<Nilium>
I should go back to university and get a second degree in linguistics. That'd be fun.
<popl>
Nilium: unwieldy?
<Nilium>
sqd: Is the integer a fixnum or a bignum?
<popl>
Nilium: I haven't even gotten my first degree and I still owe on student loans.
<Nilium>
I'm alright on loans thanks to getting lots of grants by virtue of being poor and my family being poor
<Nilium>
Well, poor in terms of income, anyway. Obviously we're not poor if we have computers and all that.
huoxito has quit [Quit: Leaving]
<unsmell>
programming on an old screen-less computer
<sqd>
Nilium: a fixnum
<Nilium>
So yeah, if you plan to game the American student financial aid system and can be considered a dependent, make sure your parents have a very bad income and you'll get grants.
<unsmell>
I'm pretty sure you can use =
<Nilium>
sqd: Fixnums don't need to be dup'd
<unsmell>
yeah
<Nilium>
At least for the first 63 bits.
<Nilium>
Or 31 bits.
<unsmell>
oh?
maxmanders has joined #ruby
<Nilium>
Ruby uses the first bit of a fixnum to mark it as a fixnum, basically.
<unsmell>
ooh
fenicks has joined #ruby
<popl>
Nilium: I got tons of grants.
<Nilium>
So you get N-1 bits to play with. It's typically not an issue, and if you need more it'll automagically switch to bignum.
<sqd>
Nilium: ah right thanks, i was looking at another bug in my code. thought it had to do with the pass by value/reference thing
<popl>
Nilium: not enough to cover tuition at a four year though
<Nilium>
Both fixnum and bignum are immutable as well, so you don't need to copy them anyway.
<popl>
Nilium: I had to work up through junior college
<Nilium>
That's what I did, popl.
Es0teric has joined #ruby
gimpygoo has quit [Read error: Connection reset by peer]
<popl>
Nilium: CS?
<Nilium>
Basically got a bunch of stuff out of the way at a community college -- which was awesome, community colleges are highly underrated -- and then transferred.
<Nilium>
I was CS, switched to English though.
<Nilium>
CS would've required more time and money than I had.
<popl>
I did CS. :P
<Nilium>
I had a poor-ish academic background in maths, so I would've basically had to add two years to do a CS degree.
<popl>
I actually had to get a waiver from the financial aid office because the amount of units I had was excessive.
<popl>
Nilium: I had to work from pre-algebra up
<Nilium>
Same. Hence why I switched to English.
<popl>
ah, I stuck with it
<popl>
somewhat :P
<popl>
but it helped me realize that math is pretty fucking awesome
codecop has quit [Remote host closed the connection]
<Nilium>
It is, though I still suck at it.
<Nilium>
I basically learn what I need to as I need it.
zorg24 has joined #ruby
<popl>
Nilium: I took a CS cryptography course and we got to learn a bunch of number theory in the class.
<popl>
I liked it so I took an intro to number theory course the next quarter
<Nilium>
I was homeschooled 'til I went to community college, so I'm at least alright at teaching myself stuff.
<popl>
Nilium: I sucked hard at math when I started.
<Nilium>
I'd have actually majored in linguistics, but I didn't realize it was awesome 'til half-way through my English degree
ewnd9 has joined #ruby
<popl>
yeah
<popl>
hindsight, etc
cj3kim has quit [Ping timeout: 268 seconds]
<popl>
C'est la vie!
<Nilium>
So if I ever get a second degree, it'll probably be either linguistics or maths or both.
<popl>
Nilium: There are free courses online.
tommyvyo has joined #ruby
<Nilium>
Yeah, I've done some of the Khan stuff and I've got books for learning various topics. It's not really hard to do.
<popl>
and if you're a computational linguist then you get the added bonus of mainstream CS drones hating on you just because Randall Munroe hates on computational linguists.
<Nilium>
I don't like the math class environment though -- failing for trying is hard as hell on people.
Wildhoney has quit [Quit: Wildhoney]
Strato has joined #ruby
<popl>
yeah, I had to get real Zen about it because I've failed *a lot*.
dtcrshr has quit [Read error: Connection reset by peer]
sorbo_ has joined #ruby
Vivekananda has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
mary5030 has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
hashpuppy has joined #ruby
kaspergrubbe has joined #ruby
<popl>
SmoothPorcupine: At least you managed to waste about half an hour of your time. I hope the rest of the day provides enough distraction for you. :P
<popl>
s/your/our/
Astral__ has joined #ruby
<SmoothPorcupine>
I've coding in the other window.
<SmoothPorcupine>
This is just an aside.
<popl>
awesome
<popl>
happy I could provide some amusement :P
banisterfiend has joined #ruby
tommyvyo has joined #ruby
Shirakawasuna has quit [Quit: Leaving]
Astral_ has quit [Ping timeout: 245 seconds]
kaspergrubbe has quit [Ping timeout: 264 seconds]
colonolGron has quit [Quit: Lost terminal]
zorg24 has quit [Ping timeout: 248 seconds]
sorbo_ has left #ruby [#ruby]
atno has quit [Ping timeout: 245 seconds]
MrZYX is now known as MrZYX|off
mary5030 has quit [Remote host closed the connection]
pkrnj has joined #ruby
stuartrexking has joined #ruby
maz-dev has quit [Remote host closed the connection]
wallerdev has joined #ruby
<shevy>
popl did he steal your time ;P
Davey has joined #ruby
a7d7p has quit [Quit: a7d7p]
_honning_ has quit [Ping timeout: 240 seconds]
<popl>
well it's annoying because I thought he was going to teach me something about Ruby, not just make some baseless assertions.
<popl>
but whatever
<popl>
It's IRC. I'm over it.
<shevy>
he is an IRC thief
<SmoothPorcupine>
I'm not sure what's not to get about BEGIN/END. :V
zorg24 has joined #ruby
<shevy>
lol
<shevy>
do you even use it?
<SmoothPorcupine>
Yes.
Davey has quit [Ping timeout: 264 seconds]
<shevy>
no you don't
<SmoothPorcupine>
I do.
<shevy>
people who have used ruby for a longer while simply do not use either
rcosta_ has quit [Remote host closed the connection]
<unsmell>
can i use && in bool ? true : false
<SmoothPorcupine>
So... How long have I been using ruby, exactly?
<Xeago>
unsmell: yes
<unsmell>
yessssssssssssss
<unsmell>
thanks
<Xeago>
shevy: I use begin/end?
Monie has joined #ruby
<SmoothPorcupine>
Case is important here.
<shevy>
Xeago I can not believe you!
<shevy>
SmoothPorcupine I don't think you have ever used ruby
<SmoothPorcupine>
Then you've got nothing to say.
<shevy>
SmoothPorcupine logic has always been your weakest point
s2013 has joined #ruby
<unsmell>
wait did you nignogs start fighting
<SmoothPorcupine>
How long have you known me?
<unsmell>
dont do that
<shevy>
SmoothPorcupine since years man
<unsmell>
this chat is for Very Serious stuff
<shevy>
Xeago can you give an example why you needed BEGIN / END?
<Xeago>
catching raises mid body
s2013 has quit [Client Quit]
<SmoothPorcupine>
Case is important here.
weeems has joined #ruby
stuartrexking has quit [Quit: Leaving...]
brennanMKE has quit [Remote host closed the connection]
susanbecky has joined #ruby
<susanbecky>
hi all - can someone please how me troubleshoot validating Technorati for a Jekyll-run blog? I'm unable to validate.
RTGe has joined #ruby
Speed has joined #ruby
tommyvyo has quit [Quit:]
RTGe is now known as RTG
RTG is now known as Guest72592
Guest72592 has quit []
sjltaylor has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nanoxd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<yaymukund>
hi, I'm an experienced rails dev. I have a (bright) friend who is dabbling in ruby and js. what's a quick way to setup a site in ruby that's about as easy as wordpress, but not, y'know, awful
<yaymukund>
?
<unsmell>
idk
Yakko has joined #ruby
<unsmell>
#rubyonrails might be of help
<unsmell>
they should know of alternatives
Davey has quit [Ping timeout: 276 seconds]
<yaymukund>
it doesn't have to be rails-based, but sure. I'll ask them
nazty has quit [Read error: Connection reset by peer]
Banistergalaxy has quit [Ping timeout: 268 seconds]
hashpuppy has quit [Quit: Computer has gone to sleep.]
predator217 has joined #ruby
<xybre>
yaymukund: Rails is probably the easiest to get started with. Sinatra is pretty easy too though, and less complexity overall.
sqd has quit [Quit: sqd]
<yaymukund>
yeah, but wordpress is dead simple. I was thinking closer to github pages or something. even rails is a bit too low level for a total beginner, imo
<yaymukund>
anyway, don't want to bicker. was not trying to troll :)
<yaymukund>
thank you
<diegoviola>
Ramaze is great as well
brain_shim has joined #ruby
<unsmell>
find a good markdown-to-website gem and you should be fine
predator117 has quit [Ping timeout: 245 seconds]
a7d7p has joined #ruby
nazty has joined #ruby
Xeago has quit [Remote host closed the connection]