<micaeked>
socialcoder: i simplified a bit. there are plenty of good books that cover ruby basics
<socialcoder>
what is ()
<socialcoder>
yea, I just ordered a couple books from my bookstore...said will be delivered in 6 days
<socialcoder>
can u answer the above question
<micaeked>
socialcoder: `obj.chomp` is the same as `obj.chomp()`
havenn has quit [Remote host closed the connection]
<socialcoder>
the () is what? I thgt it had some role
<micaeked>
socialcoder: it's conventional to leave off the `()` if there are no arguments to pass to the method
havenn has joined #ruby-lang
Asher has quit [Quit: Leaving.]
<socialcoder>
true, I just want to know what is () or what does it do
<micaeked>
socialcoder: some ruby programmers prefer to leave off parenthesis whenever possible, but i don't. ie, `obj.truncate(10)` is the same as `obj.truncate 10`
<socialcoder>
I see
<socialcoder>
i thgt it had some specific function
ddd1 has joined #ruby-lang
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby-lang
<micaeked>
heh, the plural of parenthesis is parentheses. now i know
ddd has quit [Ping timeout: 245 seconds]
<socialcoder>
lol
vlad_sta_ has quit [Remote host closed the connection]
havenn has quit [Ping timeout: 255 seconds]
loladiro has quit [Quit: loladiro]
jsilver has quit [Remote host closed the connection]
dkannan has joined #ruby-lang
jonahR has joined #ruby-lang
d3vic3 has joined #ruby-lang
wallerdev has joined #ruby-lang
jonahR has quit [Quit: jonahR]
ebouchut has joined #ruby-lang
lordnaz has joined #ruby-lang
havenn has joined #ruby-lang
lordnaz has quit [Quit: Lost terminal]
sush24 has quit [Quit: This computer has gone to sleep]
<RyanScottLewis>
then "cd ruby_require" and "ruby controller.rb"
<socialcoder>
sec
<RyanScottLewis>
So, I could have written both classes in one file but that can easily get out of hand fast and you end up with huge source files. When you split them out like this, you can make it very easy to find the code you need to find.
jsilver has joined #ruby-lang
<socialcoder>
ok..err..I CDd until ruby_require
<socialcoder>
but didnt get thru ruby controller.rb
<RyanScottLewis>
You are in the "ruby_require" directory?
<socialcoder>
it says no such file
<socialcoder>
yes
<socialcoder>
I am
<socialcoder>
there r 2 filesthere
<socialcoder>
controller and user
<RyanScottLewis>
Copy and paste the error for me?
<socialcoder>
my windows comd doesnt allow me to copy
<RyanScottLewis>
Oh okay. Is it a Ruby error?
<socialcoder>
actually after giving cds ruby_require
<socialcoder>
whats the next thing to do
<socialcoder>
I am sure I got it wrong
<RyanScottLewis>
Oh! I think windows is a bit different
<RyanScottLewis>
I'm sorry, I'm on a Mac which is Unix
<RyanScottLewis>
So thats what a Ruby class will output
<socialcoder>
beautiful...thanks a ton pal
<RyanScottLewis>
The name of the class, the memory address (useless information most of the time) and then the instance variables it has
<socialcoder>
yes, I see that
<socialcoder>
thanks thank tanks...let me practice some more
<RyanScottLewis>
No problem! Feel free to stop by here when ya need some help
<socialcoder>
def
<socialcoder>
def
sush24 has joined #ruby-lang
jsilver_ has joined #ruby-lang
jsilver has quit [Ping timeout: 256 seconds]
jsilver has joined #ruby-lang
drbrain has joined #ruby-lang
jsilver_ has quit [Ping timeout: 260 seconds]
ryanf has joined #ruby-lang
<reactormonk>
andrewvos, learn some runy :-P
<reactormonk>
err @ socialcoder
<RyanScottLewis>
Yesh, those C guys really don't understand Rubists
<RyanScottLewis>
I'm having a hard time explaining what I'm trying to do, which is to simply make a memory editor to learn C
drbrain has quit [Ping timeout: 264 seconds]
nerd has joined #ruby-lang
solars has quit [Ping timeout: 252 seconds]
<bougyman>
wow, glad TX has strong "Castle" laws.
<bougyman>
some creepy ZZ Top looking dude in a red jumpsuit just came down my chimney.
<bougyman>
I shot him in the forehead.
Radagast has quit [Quit: Leaving]
ebouchut has quit [Quit: This computer has gone to sleep]
chendo_ has joined #ruby-lang
sush24 has quit [Ping timeout: 265 seconds]
socialcoder has quit []
d3vic3 has quit [Ping timeout: 264 seconds]
drbrain has joined #ruby-lang
sush24 has joined #ruby-lang
<reactormonk>
bougyman, feeling very American now?
<bougyman>
quite so
ryanf has quit [Quit: broken pipes |||]
jsilver has quit [Ping timeout: 252 seconds]
loladiro has joined #ruby-lang
<RyanScottLewis>
Oh hey, has anyone been messing around with MRuby at all? I've been working on embedding MRuby into Lua with a project called lua-mruby
<RyanScottLewis>
Problem is, I'm still learning C, MRuby, and Lua =x
<wallerdev>
haha
<RyanScottLewis>
Pretty cool stuff though. I got it working and was really surprised at how easy it was
<wallerdev>
cool
<wallerdev>
good job
jsilver has joined #ruby-lang
<RyanScottLewis>
Thanks! Now I'm trying to think of other ridiculous things to shove MRuby into =p
jsilver has quit [Read error: Connection reset by peer]
jsilver has joined #ruby-lang
methods has joined #ruby-lang
Andrevan has quit []
sush24 has quit [Ping timeout: 250 seconds]
sush24 has joined #ruby-lang
<Paradox>
RyanScottLewis, i saw your post on reddit
<RyanScottLewis>
I'm trying to reach out to people who know more about that kind of stuff that I do
<RyanScottLewis>
Ah Thanks. I'll post something on the next minor version. I'm gonna port a couple of MRuby functions directly to Lua. The test is gonna be writing the MRuby IRB in Lua
<RyanScottLewis>
Cool. I wouldnt have put up the exmaple of PMing you directly though. Someones gonna setup a thread pool and spam ya with your own library haha
<Paradox>
whatever
<Paradox>
heh
<RyanScottLewis>
Pretty cool though
<Paradox>
reddit is pretty good at throttling pm floods
<Paradox>
it was my first real gem
<Paradox>
but its aged nicely
<Paradox>
sure, it doesnt do some things
<Paradox>
that would be cool
<Paradox>
like i've thought about making a gem that has a handfull of classes for stuff in reddit
<Paradox>
ie a thing class
<Paradox>
then a post can extend a thing
<Paradox>
and a comment can extend a thing
<RyanScottLewis>
I was just about to ask if it was your first gem.
<Paradox>
and so forth
<Paradox>
but the main goal of this gem was to be simple
<Paradox>
and similar to the reddit api
<RyanScottLewis>
Right
<Paradox>
its not really that elegant for OO-based coding
<Paradox>
but its simple and fast
<RyanScottLewis>
Make another gem that wraps Snoo
<Paradox>
maybe
<Paradox>
there are already a few that do the oo-style stuff
sush24 has quit [Ping timeout: 256 seconds]
<Paradox>
and snoo works pretty damn well for its current uses
chendo_ has quit [Quit: Computer has gone to sleep.]
<RyanScottLewis>
Maybe make extensions for those to use Snoo rather than their API?
<RyanScottLewis>
If its faster, they might just end up using your implementation
<Paradox>
?
<Paradox>
oh
Guest9041 has quit [Ping timeout: 265 seconds]
<Paradox>
i dont see how it would be too much faster
<Paradox>
snoo mainly tries to be a convenience layer
<RyanScottLewis>
or more convienient
<Paradox>
i might make one
<RyanScottLewis>
Rails used it's own SQL string generator before someone made AREL
<RyanScottLewis>
then they decided it would be easier to use AREL and threw out their code
Guest9041 has joined #ruby-lang
<Paradox>
the main reason I made snoo the way I did was
<Paradox>
the class-oo-style ones
<Paradox>
kind of sucked
<Paradox>
they didnt really have full mapping of the api
<Paradox>
so they made it difficult
<RyanScottLewis>
Well if it gets real popular, you can make $ my throwing one of those flattr buttons on the project and telling everyone on reddit about the project
micaeked has quit [Read error: Operation timed out]
io_syl has quit [Quit: Computer has gone to sleep.]
s1n4 has joined #ruby-lang
nerd has quit [Quit: WeeChat 0.3.9.2]
RyanScottLewis has quit [Remote host closed the connection]
leopard_me has joined #ruby-lang
burgestrand has joined #ruby-lang
emocakes has quit [Quit: emocakes]
zsoltgyongyosi has joined #ruby-lang
burgestrand1 has joined #ruby-lang
burgestrand has quit [Ping timeout: 265 seconds]
emocakes has joined #ruby-lang
ebouchut has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
loladiro has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby-lang
solars has joined #ruby-lang
jashank has quit [Excess Flood]
jashank has joined #ruby-lang
jsilver has quit [Remote host closed the connection]
Spaceghostc2c has quit [Excess Flood]
Spaceghostc2c has joined #ruby-lang
d3vic3 has joined #ruby-lang
loladiro has joined #ruby-lang
loladiro has quit [Quit: loladiro]
spike|spiegel has quit [Quit: WeeChat 0.3.9.2]
loladiro has joined #ruby-lang
chendo_ has joined #ruby-lang
s1n4 has quit [Quit: leaving]
ebouchut has quit [Quit: This computer has gone to sleep]
apeiros_ has joined #ruby-lang
chendo_ has quit [Ping timeout: 260 seconds]
chendo_ has joined #ruby-lang
loladiro has quit [Quit: loladiro]
vlad_starkov has quit [Remote host closed the connection]
fowl has quit [Ping timeout: 252 seconds]
jsilver has joined #ruby-lang
xalei has quit [Remote host closed the connection]
sepp2k has joined #ruby-lang
socialcoder has joined #ruby-lang
<socialcoder>
what is ARGS. What is the difference between ARGV and ARGS
<socialcoder>
googled a bit, but could not really follow stuff
<socialcoder>
anyone?
<socialcoder>
someone?
<socialcoder>
noone?
nerd has joined #ruby-lang
<telemachus>
socialcoder: ARGS?
<telemachus>
Do you mean ARGF?
<telemachus>
Also, it's a holiday for many people in much of the world. A little extra patience - beyond IRC normal - is recommended. :)
<socialcoder>
haha
<socialcoder>
I am not compaling TM
<socialcoder>
honestly
<telemachus>
no worries
<socialcoder>
I understand its holiday
<socialcoder>
but never expected the room to be this silent
<socialcoder>
not ARGF
<socialcoder>
ARGS and ARGV
<telemachus>
anyhow, when you said ARGS do you mean ARGF?
<telemachus>
huh
<socialcoder>
one sec
<telemachus>
when I try to use ARGS in ruby, I get told, no such animal
<telemachus>
ok
<socialcoder>
def puts_two(*args)
<socialcoder>
arg1, arg2 = args
<telemachus>
ah
<telemachus>
lol
<telemachus>
k
<telemachus>
args there is just a regular parameter name
<socialcoder>
its small letter eh? and I typed in CAPITALS?
<telemachus>
not a pre-defined constant
<telemachus>
ARGV is a pre-defined ruby constant
<telemachus>
yes, the all caps matters
<socialcoder>
what do you mean regular paramter name?
<telemachus>
ARGV is a pre-defined array of all the arguments given on the command line
<socialcoder>
yes, I know ARGV
<telemachus>
ok
<socialcoder>
I wanted to know args and whats the difference
<socialcoder>
between ARGV and args
<telemachus>
by regular parameter I mean that the name isn't special
<telemachus>
you dould do def puts_two(*foo)
<telemachus>
and foo would be the same as args then
<socialcoder>
I cud replace it with telemachus?
<telemachus>
one sec
levifig has quit [Ping timeout: 264 seconds]
<telemachus>
back
<telemachus>
as for the * that's the splat operator
<socialcoder>
great
<socialcoder>
splat?
Nisstyre-laptop has quit [Ping timeout: 245 seconds]
<telemachus>
it turns the arguments into an array
<telemachus>
so if you want to create an add function, but you don't know how many items you will get
<socialcoder>
so *args means multiplied by x args? err...I am confused
<telemachus>
you can say def add(*args) and then args inside the method will be an array of however many items the user passes
<telemachus>
one sec, I'll make a short example...
<dominikh>
whitequark: if you already go as far as to use a proper class for the Bot, use the plugin API (one class per plugin) instead of `on` ;)
<whitequark>
what I want is to separate behavior from configuration
<whitequark>
simply to be able to run multiple bots on multiple servers
<whitequark>
dominikh: is #hook available for Cinch::Bot ?
t_ has quit [Read error: Connection reset by peer]
<whitequark>
I see, it is not
<dominikh>
whitequark: the DSL approach is pretty much `on` and that's it. You can consider it a low-level API
t_ has joined #ruby-lang
<whitequark>
dominikh: you know what would be nice? def event_handler(event, *args) send :"on_#{m}", *args if respond_to? :"on_#{m}"; end
<whitequark>
for Bot
<dominikh>
no.
<dominikh>
Just use the plugin API.
<whitequark>
too much noise
<fowl>
lol,
<fowl>
murry xmas errbody
<dominikh>
whitequark: come again?
<dominikh>
well, those are your options. I definitely won't add your suggestion, and the only reason we still do have the `on` API at all is because the plugin API uses it internally.
<whitequark>
dominikh: your plugins don't have any internal state
<whitequark>
as far as I see
<dominikh>
of course they do.
<dominikh>
They're ordinary classes, which we instantiate
<dominikh>
one instance of plugin per bot
<dominikh>
(unless you specify the same plugin multiple times)
<whitequark>
cool. how do I access the plugin instance from outside the bot?
<dominikh>
Bot#plugins is a PluginList (so, in effect, an array). #find on that to find the right instance
<whitequark>
well, one stupid decision in an otherwise very nice library doesn't deserve anything more than sarcasm.
<dominikh>
not to offend, but I don't think you can judge the decision if you don't fully comprehend the design yet ;)
larrylv has quit [Remote host closed the connection]
<whitequark>
I may as well just refactor out the @user_lists
SiliconDon has joined #ruby-lang
<whitequark>
can I get a list of channels where the user was prior to /quitting?
<dominikh>
not reliably. if we did run a WHOIS on him before, we will have a list of channels, otherwise we won't
SiliconDon has quit [Client Quit]
drbrain has quit [Read error: Connection reset by peer]
drbrain_ has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
<whitequark>
dominikh: re design: I comprehend the design. it's intended for bots. I do not build a bot. I build a logger.
<whitequark>
every single IRC library for Ruby (except Net::YAIL) targets bots
<whitequark>
Net::YAIL randomly stops working after a few days
<whitequark>
so...
<dominikh>
whitequark: it's actually not intended for bots (even though it does lean towards that direction). I've written a prove of concept IRC client in Cinch, too ;)
<dominikh>
and an automated xdcc downloader
* whitequark
shrugs
<whitequark>
you can write everything in everything. doesn't prove anything about design.
<dominikh>
but calling plugin classes "noise" is quite naive, considering that subclassing Cinch::Bot adds equal amounts of "noise"
<dominikh>
I've _designed_ Cinch 2.0 to not be bot-centric
<dominikh>
And `on` couldn't possibly work on the class level.
<dominikh>
(and `on` is actually the most botish way to solve something in Cinch, so it strikes me as odd that you want to use exactly that)
<dominikh>
so if I have two bots in a single ruby instance, they suddenly have the same set of handlers?
<dominikh>
fine, disregard that
<dominikh>
that was a stupid comment to make
<whitequark>
well, yes, that's the point (if I understood you correctly). to make two instances have the same set of handlers.
<dominikh>
my point still stands though, `on` is a low-level API that I wish I had never added in the first place. it allows for quick hello world bots but that's about it
<whitequark>
sinatra mode
drbrain_ has quit [Ping timeout: 260 seconds]
<dominikh>
`on` is the one thing that's truly 'made for bots'
<dominikh>
your logger would be so much better off as a plugin
<dominikh>
yes, sinatra is where it's from.
<whitequark>
wait, how could you ever instantiate plugins if they're modules? are you dynamically building classes inside Cinch::Bot? or what?
<dominikh>
whitequark: what?
<dominikh>
they're not modules…
<whitequark>
errr, sorry, my bad
<whitequark>
disregard that
<dominikh>
well, not beyond the point that ruby classes are modules
<dominikh>
ok
<whitequark>
btw I added live updates
<dominikh>
heh. your server can handle that?
<whitequark>
why not?
<dominikh>
yesterday it already took a couple seconds just to load the thing ;)
<whitequark>
well
<whitequark>
the problem is that rendering messages via haml takes ages
<dominikh>
what technology are you using? websockets?
<whitequark>
dominikh: no, SSE. I don't need bidirectional communication or complexity of WS
<dominikh>
interesting, I've never heard of server-sent events... I'm using websockets in a different project for a one-way communication right now
<whitequark>
they're dumb and very easy to use
<whitequark>
like, a few lines. well, read the source, Luke ;)
<whitequark>
also already handling disconnects and stuff. very convenient.
<dominikh>
I assume it's plain HTTP and the server just keeps writing?
<whitequark>
exactly
<dominikh>
what constitutes as a message separator in that case?
<whitequark>
\n
<dominikh>
so sending through json objects should be no problem, okay
Nisstyre-laptop has joined #ruby-lang
<whitequark>
the messages are plaintext. "id: (.*)\n" is used as id setter, "data: (.*)\n" to send a data line, "\n" to terminate a message
WillMarshall has joined #ruby-lang
<dominikh>
guess I'll have a little refactor once I work on that project again. Thanks for that
mistym has joined #ruby-lang
mistym has joined #ruby-lang
mistym has quit [Changing host]
<whitequark>
note that data is already concatenated with \n's inserted on the client side when you receive it
<whitequark>
that's basically all
<dominikh>
okay
<whitequark>
>c.plugins.plugins = []
<whitequark>
god why
<whitequark>
can't you make it c.plugins=[] ?
<dominikh>
whitequark: c.plugins.options, that's why. I did consider c.plugins to be a hash, did have valid reasons for not doing so, but cannot remember them right now
havenn has quit [Remote host closed the connection]
<whitequark>
please, make a shortcut
<whitequark>
that hurts my eyes
<whitequark>
c.plugins= and c.plugin_options, probably
havenn has joined #ruby-lang
<dominikh>
well, plugin_options hurts my eyes ;)
<dominikh>
considering all other options are hierarchical
<dominikh>
I wish I remembered why a hash wasn't an option though
<whitequark>
keep c.plugins.options then, and just add c.plugins= for the most common case
<dominikh>
that's just confusing when you cannot use c.plugins anymore once you use c.plugins.options.
<dominikh>
not to mention it'd be inconsistent because you couldn't do c.plugins << in that case
<whitequark>
yeah, correct
<whitequark>
c.plugins.list= ?
<dominikh>
equally bad imo
<whitequark>
at least you don't have plugins.plugins. EVERYTHING is better than that.
<dominikh>
heh
havenn has quit [Read error: No route to host]
<dominikh>
c.PluginFactory.ClassListForFactory=
nerd has joined #ruby-lang
havenn has joined #ruby-lang
<Paradox>
bah humbug
<dominikh>
once I find a sane alternative, I'll add it
<dominikh>
okay, seriously, did I miss something? third time today I see someone say "bah humbug"
<dominikh>
I'd expect it to complain about the lack of an identifier
<whitequark>
no, you can omit that
<dominikh>
interesting
_whitelogger has joined #ruby-lang
<whitequark>
_whitelogger: hello, my newly deployed friend
<whitequark>
yeah, still works.
CJPARK has joined #ruby-lang
<dominikh>
(synchronize is a helper method for plugins. takes care of creating and managing the mutex for you)
<whitequark>
dominikh: noticed that, fixing that now. thanks!
<dominikh>
other than that and the config thing, yeah, looks like you managed to get it right :P
<dominikh>
(and the config stuff is poorly documented)
<darix>
dominikh: so document it now? :p
<whitequark>
I'm still capable of writing working code ;)
<dominikh>
darix: meh.
<darix>
oh and hi^^
<dominikh>
darix: I have more important projects right now :P
<dominikh>
hi
<darix>
on christmas? cant be! :p
<dominikh>
heh
<dominikh>
bloody christmas is getting on my nerves :P
wallerdev has quit [Quit: wallerdev]
<whitequark>
:You are banned from this server- You have a host listed in the DroneBL. For more information, visit dronebl.org/lookup_branded.do?ip=81.163.18.110 Please contact proxyscan@freenode.net with questions. (2012/12/25 19.10)
<whitequark>
what the hell freenode
<whitequark>
(obviously my IP is not actually listed there, because I don't have open proxies here.)
<dominikh>
time for #freenode
<whitequark>
yeah
kurko_ has quit [Quit: Computer has gone to sleep.]
CaptainJet has joined #ruby-lang
loladiro has joined #ruby-lang
srji has joined #ruby-lang
outoftime has joined #ruby-lang
davidbalber|away is now known as davidbalbert
WillMarshall has quit [Read error: Connection reset by peer]
neocoin_ has quit [Remote host closed the connection]
srbaker has quit [Quit: Computer has gone to sleep.]
neocoin has quit [Remote host closed the connection]
<whitequark>
sigh
<manveru>
i like both, tbh :)
<whitequark>
dominikh: (caching) the only sensible way to add caching is to re-cache main page on every update
<whitequark>
this will still be slow for 80% of users
<whitequark>
and old pages will always be slow
<whitequark>
(unless I fix rendering somehow)
<dominikh>
the other option, of course, is to generally speed it up ;)
<manveru>
make old pages static?
<whitequark>
I don't get why it takes haml tens of milliseconds to render a trivial, 20-line partial
<dominikh>
well, for one, it's HAML.
<whitequark>
so what?
<manveru>
it's HAML
<whitequark>
it (theoretically) should compile my haml source to efficient rubycode
<whitequark>
it's a dsl for concatenating strings
<manveru>
there is no slower engine i know of
<whitequark>
there's that hipster thing called slim
<whitequark>
but I don't like its syntax, or, rather, absence thereof
<manveru>
even slim is faster than haml
<manveru>
hell, even erb is
<whitequark>
manveru: are you serious in that last two messages, or just kidding?
<manveru>
i didn't bench recently, but that was true about a year ago?
<whitequark>
given that haml is basically abandoned, probably yes
<whitequark>
(afaik)
<wmoxam>
whitequark: wat
<whitequark>
manveru: (old pages static) no no no no. I'd rather fetch stuff from DB than store tens of megabytes of HTMLs I need to rebuild each time I want to change my HTML
lordnaz has joined #ruby-lang
<whitequark>
*my layout
<dominikh>
"tens of megabytes" is really little data
<manveru>
it seems the easiest way, just put squid in front and cache N MB, LRU style
<whitequark>
dominikh: not if you store it on your own little server without an SSD and rebuild on each update with your own CPU.
<dominikh>
you realize that at some point, changes to the HTML are rare?
<manveru>
you rebuild only on demand that way, and if you update just dicard the previous cache
<manveru>
of course, google bot will eventually arrive :)
<whitequark>
manveru: yeah, it does this quite regularly already
akram has joined #ruby-lang
vlad_starkov has joined #ruby-lang
vlad_starkov has quit [Ping timeout: 255 seconds]
akram has quit [Remote host closed the connection]
<whitequark>
dominikh: I'm afraid that due to, probably, anti-hash-collision stuff, colors are pretty much random
<whitequark>
String#hash is not consistent across restarts :/
brunocoelho has quit [Remote host closed the connection]
davidbalber|away is now known as davidbalbert
davidbalbert is now known as davidbalber|away
nerd has quit [Quit: WeeChat 0.3.9.2]
ryanf has joined #ruby-lang
mistym has quit [Remote host closed the connection]
gsav has quit [Ping timeout: 246 seconds]
pxjorge has joined #ruby-lang
ddd has joined #ruby-lang
Jake232 has joined #ruby-lang
davidbalber|away is now known as davidbalbert
postmodern has joined #ruby-lang
WillMarshall has quit [Quit: Computer has gone to sleep.]
akram has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby-lang
havenn has quit [Ping timeout: 252 seconds]
davidbalbert is now known as davidbalber|away
srji has quit [Ping timeout: 244 seconds]
davidbalber|away is now known as davidbalbert
loladiro has quit [Quit: loladiro]
kurko_ has joined #ruby-lang
ryanf_ has joined #ruby-lang
FiXato has quit [Ping timeout: 260 seconds]
Hakon has joined #ruby-lang
Hakon has quit [Client Quit]
ryanf has quit [Ping timeout: 252 seconds]
srji has joined #ruby-lang
gsav has joined #ruby-lang
davidbalbert is now known as davidbalber|away
imajes has quit [Excess Flood]
<dominikh>
whitequark: implement your own hashing? :P
<dominikh>
it's IRC colours, you can be very primitive about it. sum of ascii values works reasonably well in weechat, for example (well, not ascii but unicode code points, probably)
davidbalber|away is now known as davidbalbert
davidbalbert is now known as davidbalber|away
imajes has joined #ruby-lang
<dominikh>
or sure, crc32
<dominikh>
that'll have a way better distribution
<darix>
dominikh: for matching nicknames in html output you actually got full RGB as option. sans the stuff that would be unreadable
<dominikh>
darix: so?
<darix>
just wanted to say you are not limited to irc colours
<dominikh>
*it's nick colours
<dominikh>
there :P
<dominikh>
bbl
<Mon_Ouie>
Are non-ASCII nicks on IRC often supported by servers/clients?
<jaska>
dont think so
<jaska>
originally it wasnt even actual ascii, but sf7
ryanf_ has quit [Quit: broken pipes |||]
<Mon_Ouie>
and according to the RFC, even '_' isn't allowed