<zenspider>
to be fair... I still use 1.8 because 1.9 encoding bug the shit out of me. they're a fucking hassle and they're not worth it
Jade_ has quit [Quit: Page closed]
sandbags has quit [Remote host closed the connection]
<zenspider>
that said... sticking on 1.8.6 and complaining that you're going to switch to python is a weak attempt at trolling. grow up and upgrade to 1.8.7
<zenspider>
2.0 encoding looks a bit more sane... but then there is refinements that I simply do NOT want to deal with.
<zenspider>
they still haven't answered the debugging / sanity issue I brought up on the day they announced it. I don't look forward to the pain that will bring because some jackass will insist on using it as soon as it is available
<ten1>
the idea of adding an 'experimental feature' to a language strikes me as unsound
sepp2k1 has quit [Read error: Connection reset by peer]
<ten1>
you can't really say, "use this, but don't use it too much, because it might go away!" Like adding to any API, people *will* use it, and then the rest of us will be stuck with it. See also win32
<zenspider>
that's not what they mean by experimental
<zenspider>
they mean that other impls can say they're 2.0 compliant w/o implementing it
sailias has joined #ruby-lang
banister`sleep has left #ruby-lang [#ruby-lang]
banisterfiend has joined #ruby-lang
<zenspider>
yes, it may change in the future... but so may the rest of the language
<zenspider>
that's never changed
<banisterfiend>
ten1: major libraries wont rely on it if it's labelled experimental, and anyway major libraries have to support 1.9.x for a few years still
<ten1>
you mean, it is hoped that major libraries won't rely on it
datanoise has joined #ruby-lang
<banisterfiend>
ten1: if the library really is major it's going to support 1.9.x, if not even 1.8.7, and likely do its best to support jruby/rbx too
<banisterfiend>
so there's no way they'd consider relying on an experimental 2.0 feature
<ten1>
"there's no way" is a fallacious argument. There's nothing besides common sense from stopping anyone
<ten1>
argument from lack of imagination
<zenspider>
he qualified his statement well enough.
francisfish has quit [Read error: Connection reset by peer]
<zenspider>
and he's not arguing... he's explaining the situation with you
<zenspider>
if you're arguing... you're alone on this
francisfish has joined #ruby-lang
chuenjin_ has joined #ruby-lang
<ten1>
yes, because the idea of experimental language features is such a good one that it needs no argument
database has quit [Quit: WeeChat 0.3.9.2]
<zenspider>
ten1: who the fuck are you arguing with and what about? is it ANYONE who can do anything about it? Is matz here? is koichi? is your snark even remotely warranted, desired, or asked for? what are you hoping to achieve?
<zenspider>
while I do have commit bit... there isn't a fucking thing I can or will do about this situation... so really... you're talking to a wall on this one
<zenspider>
and "arguing" with banisterfiend is absolutely a waste of time. there's nothing he can do about it either.
<ten1>
so, I'm not qualified to have an opinion and it wouldn't matter if I was?
<ten1>
I can appreciate that
<zenspider>
have fun with that
chuenjin has quit [Ping timeout: 255 seconds]
* zenspider
points to ten1's very one section of wall
<zenspider>
own. even...
<ten1>
I am one with the wall :P
dwu1 has joined #ruby-lang
chuenjin_ has quit [Ping timeout: 256 seconds]
chuenjin has joined #ruby-lang
havenn has quit [Remote host closed the connection]
__BigO__ has joined #ruby-lang
havenn has joined #ruby-lang
bzalasky has joined #ruby-lang
diegoviola has quit [Quit: WeeChat 0.4.0]
__BigO__ has quit [Read error: Connection reset by peer]
<chekcmate>
sure you did not trigger some butterfly effect and we'll die in a few secs?
<emocakes>
i like 43
<emocakes>
and 66.5
<chekcmate>
hahaha
<injekt>
I like 193
karasawa has joined #ruby-lang
<apeiros_>
69 & 69.1
<apeiros_>
though I think it was man, not god
<injekt>
ah yes
<injekt>
1966
dzhulk has quit [Quit: Leaving.]
<chekcmate>
♠
<chekcmate>
you know what that means, guys - kneel down! huhaha!
<chekcmate>
there are no google results for that sign... funny
<apeiros_>
spade?
datanoise has joined #ruby-lang
<chekcmate>
yes
* apeiros_
must add rule ♠.1 BOSS of spades, that is
bzalasky has quit [Remote host closed the connection]
<chekcmate>
dunno, I'm not into that 420, /b/ or *chan stuff anymore... is it still as awesome?
<chekcmate>
apeiros_ seems to still be in it :>
* apeiros_
never was, is not, never will
datanoise has quit [Ping timeout: 248 seconds]
<chekcmate>
hu? injekt said you were a ruthless villain, running in Londons dark corners with a Guy Fawkes mask
dzhulk has joined #ruby-lang
adambeynon has joined #ruby-lang
maxmanders has joined #ruby-lang
glebm has quit [Quit: Computer has gone to sleep.]
<chekcmate>
is there anything I can stumble when using SortedSet? (no special way)
<chekcmate>
*trip up on sth.
<injekt>
not really it's a pretty simple impl
<chekcmate>
it's pretty cool imO!
lun_ has quit [Ping timeout: 248 seconds]
<chekcmate>
thanksi :)
<injekt>
the code behind it is :(
marr has joined #ruby-lang
<chekcmate>
you don't use it?
<injekt>
I haven't really needed it, and the few times I actually just used set and implemented my own sorting stuff (but that's only because i forgot about SortedSet)
<chekcmate>
:)
lun_ has joined #ruby-lang
megha has joined #ruby-lang
hack has quit [Ping timeout: 264 seconds]
mjbamford has joined #ruby-lang
dwu1 has quit [Quit: Leaving.]
<chekcmate>
injekt: I can't create multiple sets the way I created multiple array, right? (x, y, z = Array.new(3) { [] })
<chekcmate>
or does it work in a different way?
<heftig>
chekcmate: sure, just replace [] with Set.new
<heftig>
that said that code is retarded anyway, imo
<chekcmate>
heftig: why?
<heftig>
i'd just use x = []; y = []; z = []
<chekcmate>
but those aren't sortedsets
<chekcmate>
I want sortedsets
rue has quit [Remote host closed the connection]
nkr has joined #ruby-lang
workmad3 has joined #ruby-lang
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
karasawa has quit [Ping timeout: 252 seconds]
<injekt>
chekcmate: na i would just separate the assignments
<injekt>
I wouldn't have done the Array.new(3) { [] } stuff either though
<injekt>
someone who doesn't know how that works could get confused
<chekcmate>
that's what I originally had, but then I would've to array.uniq everytime
<injekt>
sure sorted set is fine, but if you need 3 just separate the assignments is all
<chekcmate>
I need about 7
<injekt>
are you sure?
<chekcmate>
perhaps 8
<chekcmate>
not less than 6, in any case
<injekt>
sounds like you're doing something complex
<chekcmate>
+ it's my bosses wish for me to tinker around in order to get used to ruby and the system
<chekcmate>
injekt: no, I don't think 8 sets are complex
<injekt>
no I meant 'its complex enough to need 8 sets?' '8 sets complex?'
<chekcmate>
ah okay
<injekt>
I'm trying to figure out what you're doing to see if there's a better way
<chekcmate>
um.. I have 8 kind of operations I want to analyse seperately
<chekcmate>
that's where the 8 comes from
<chekcmate>
but quantity doesn't make something complex
carraroj has joined #ruby-lang
<chekcmate>
at least not in this case imo
<injekt>
sure, so yeah just define the 8 sets separately
<chekcmate>
injekt: You know the strace output, right? ^^
<injekt>
yeah
<chekcmate>
each PID gets its own tracefile; there are basically about 8 operations tracked: stat, access, exec, unlink, open (which I seperated into read-only/rest), ...
glebm has joined #ruby-lang
<injekt>
why not have an Operation class to describe those and have a set containing them all
glebm has quit [Client Quit]
carraroj has left #ruby-lang ["Konversation terminated!"]
<chekcmate>
hm, it's mostly regex I use, dunno if that's neccessary
judofyr has joined #ruby-lang
<chekcmate>
but doing it more object oriented was one of my goals anyways, so you may actually be right, injekt
<chekcmate>
though I'm currently tinkering around more or less, trying out stuff, asking questions, ...
<injekt>
it's quite the burden
<judofyr>
hey folks
agnitio has quit [Ping timeout: 248 seconds]
<chekcmate>
heyy judofyr :)
<judofyr>
what's up?
<chekcmate>
rulesoftheinternet are now established here
<injekt>
hai
megha has quit [Ping timeout: 252 seconds]
<judofyr>
they are?
<chekcmate>
yea, tinkerbell was already spotted naked
<judofyr>
injekt: I think I'm going to do something refinements-ish. so instead of e.g: {{ user_path(user) }} there will be {{ user.url }} (but the #url method isn't actually present in the Object)
<injekt>
judofyr: you dont think people would be more inclined to just use the former because it's more explicit?
<judofyr>
injekt: try to explain to your designer why it's [% h.url_for('item', id => item.id) %], but just [% item.title %]
<injekt>
I like how we quickly went from {{ to [% is that a sign? ;)
<judofyr>
injekt: [%%] is Template Toolkit (Perl) and that is a real example. yesterday one of our designer was like "How do I create the URL? what? h.url_for? of course?!"
<judofyr>
injekt: but I'm not a fan of neither [%%] nor {{}}
<injekt>
ah yeah I've used tt2, yeah I'm not a fan or them either but what other options do you have?
<judofyr>
injekt: but I think I'm going to drop filters
<judofyr>
injekt: and rather introduce a specific view-class (like Mustache have
<judofyr>
)
glebm has joined #ruby-lang
<injekt>
heh
<judofyr>
so instead of `<div class="@if(product.variants)open@endif">`, you could do: <div @product.classes>
<judofyr>
@foo reads so much better than {{foo}} :)
<injekt>
I agree just not sure on the method call piping stuff, mostly because I enjoy whitespace in that regard
<injekt>
judofyr: what if you wanted to call a helper method on a variable?
<DefV>
is there a way to do this in 1 method:
<DefV>
array.at(array.index(obj))
<injekt>
is that where you'd use foo|helper ? (I'm not even sure how liquid does that stuff)
<injekt>
DefV: that'll just return obj anyway?
glebm has quit [Quit: Computer has gone to sleep.]
<injekt>
judofyr: or would @helper(product.price) work?
<DefV>
injekt: no, index uses ==, It's the same ActiveRecord object but one has associations preloaded, other doesn't
<injekt>
DefV: in that case, no
<DefV>
:-)
cultureulterior_ has quit [Ping timeout: 248 seconds]
lun_ has quit [Ping timeout: 256 seconds]
pythonsnake has quit [Quit: WeeChat 0.3.9.2]
<judofyr>
injekt: it probably would, but my goal is that you *shouldn't* need helpers.
<judofyr>
injekt: thanks to the refinement-ish functionality
imajes has quit [Excess Flood]
imajes has joined #ruby-lang
voker57 has quit [Remote host closed the connection]
<judofyr>
injekt: I can add more logic the templates (function calls, comparisons, etc). this means that you need to implement less view-helpers/refinement-overrides. but it also makes the implementation and the template language more complex.
pythonsnake has joined #ruby-lang
<judofyr>
injekt: if I allow very little logic in the template, there are certain things you'll have to implement twice (once in the JS for the mockups, and once in Ruby for the server)
dustint has quit [Remote host closed the connection]
<imperator>
hm, what's the best way to check if an external ruby program raised an error? just redirect stderr and parse the output?
glebm has quit [Client Quit]
itsmeduncan has quit [Quit: itsmeduncan]
<judofyr>
imperator: check the status code
<rue|w>
Exit code
<injekt>
code
<judofyr>
de
<judofyr>
<injekt>
you dun went too far
<injekt>
368 migrations
<injekt>
phew
<chekcmate>
um, injekt? I thought SortedSet made uniq obsolete?
<injekt>
chekcmate: a set has no dups
<imperator>
judofyr, is there a process::status i can get from Process.spawn?
<chekcmate>
my set is MADE of dups...
<chekcmate>
the fuck
<injekt>
chekcmate: what objects are in there?
<chekcmate>
string objects
<injekt>
you're sure?
<judofyr>
imperator: pid = Process.spawn(…); exit = Process.waitpid(pid) I think
<chekcmate>
but I never had that before
<chekcmate>
yea, it worked like a charm until now...
<chekcmate>
I'll go debug some more...
glebm has joined #ruby-lang
<judofyr>
hm. or maybe not
robotmay has joined #ruby-lang
<injekt>
just use $?
<judofyr>
imperator: now I remember. call #waitpid, and then $? will be set to Process::Status
<injekt>
^
x0F has quit [Disconnected by services]
x0F_ has joined #ruby-lang
<chekcmate>
hm, as long as there is only one PID, no problem occurs
<chekcmate>
have to seperate the pids :/
x0F_ is now known as x0F
<injekt>
chekcmate: what do you mean?
<judofyr>
imperator: "Waits for a child process to exit, returns its process id, and sets $? to a Process::Status object containing information on that process."
<judofyr>
that's for Process.waitpid
<imperator>
thanks
<chekcmate>
when the process I trace starts another one, it becomes the child process and gets traced seperately, but it won't get processed seperately in my script
<chekcmate>
it's not the fault of Set
sailias has quit [Quit: Leaving.]
ovatsug25 has joined #ruby-lang
vlad_starkov has joined #ruby-lang
srbaker has joined #ruby-lang
<imperator>
judofyr, hm, shoot, that won't work for what i'm trying to do
<imperator>
i'm actually trying to write a test for highlander
<imperator>
the goal of highlander is to ensure that only one instance of a program is running
<imperator>
so, for example, i need to write a test that ensures that the first time "ruby foo.rb" is run it works, but if you try to run it again (while the first one is still running) it will fail
<chekcmate>
RAAAAAAAAAAWRR
<chekcmate>
"/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
mistym_ has joined #ruby-lang
<chekcmate>
stupid bug wants me to mv stupid file to stupid location grmglrmglr
glebm has quit [Quit: Computer has gone to sleep.]
tomzx_mac has joined #ruby-lang
glebm has joined #ruby-lang
sepp2k has joined #ruby-lang
<chekcmate>
yay! Everything works again :)
b1rkh0ff has quit [Ping timeout: 256 seconds]
pythonsnake has joined #ruby-lang
<apeiros_>
ummm, yumm, `i18n glob some.*.key` ^^
pythonsnake has quit [Client Quit]
mjolk_afk is now known as mjolk
mistym_ has quit [Remote host closed the connection]
io_syl has quit [Quit: Computer has gone to sleep.]
srbaker has quit [Quit: Computer has gone to sleep.]
pythonsnake has joined #ruby-lang
jonahR has joined #ruby-lang
pythonsnake has quit [Client Quit]
earthquake has joined #ruby-lang
pbjorklund has joined #ruby-lang
pythonsnake has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
mad_hatter_ has quit [Quit: Leaving.]
stardiviner has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 256 seconds]
pythonsnake has quit [Quit: WeeChat 0.4.0]
pythonsnake has joined #ruby-lang
mistym_ has joined #ruby-lang
pythonsnake has quit [Client Quit]
scampbell has joined #ruby-lang
pythonsnake has joined #ruby-lang
socialcoder has joined #ruby-lang
srbaker has joined #ruby-lang
scampbell has quit [Max SendQ exceeded]
<socialcoder>
Can anyone share a snippet example with me - a while loop and each method inside a def/end method
<socialcoder>
please
Uranio has joined #ruby-lang
scampbell has joined #ruby-lang
<judofyr>
socialcoder: hm. what are you looking for?
<socialcoder>
well, I want to know how to do it write
earthquake has quit [Quit: earthquake]
<socialcoder>
starting with a def method then nesting a while loop inside and a .each method inside and closing with an end
<socialcoder>
* how to do it right
<judofyr>
socialcoder: def foo; a = 0; while a < 5; [1, 2, 3].each { |x| p x }; a += 1; end; end
zmack has quit [Remote host closed the connection]
tdy has joined #ruby-lang
pythonsnake has quit [Quit: WeeChat 0.4.0]
<mjolk>
is || not the same as OR for ruby? I'm trying to do `rescue Net::SSH::HostKeyUnknown => e || log.fatal("Please upgrade to at least net-ssh 2.6")
<injekt>
mjolk: no that just makes no sense
<tbuehlmann>
(and besides that, they are not the same)
<injekt>
(also || vs OR have different precendence)
<mjolk>
injekt: yeah, i know they have different precendence. how should i be approaching this in ruby?
<injekt>
if foo = something || bar = something is different to if foo = something or bar = something
<injekt>
mjolk: I'm not even sure what you're trying to do
<chekcmate>
injekt: we talked about seedboxes last week. I took a deeper look and found out that I don't need one. Switched to usenet, using ssl-news.info -- just FYI :)
pythonsnake has joined #ruby-lang
<injekt>
chekcmate: sweet! never got the hang of usenet
<chekcmate>
me too
<chekcmate>
but a friend told me about it and he uses it with his server
blazes816 has quit [Quit: blazes816]
<mjolk>
injekt: "if `rescue Net::SSH::HostKeyUnknown => e` is going to error/return an exception, use log.fatal, which i know to exist"
<mjolk>
injekt: that won't work because if Net::SSH:HostKeyUnknown is not defined, it's going to return a uninit constant error
<chekcmate>
12,50€ for 150mbit flatrate
<injekt>
mjolk: why wouldn't it be defined?
<injekt>
mjolk: why would you try and rescue an exception that is not defined
<injekt>
chekcmate: sweet
<mjolk>
in net-ssh 2.2.2, that's not defined in Net::SSH
outoftime has joined #ruby-lang
<mjolk>
but it is in 2.6, so i don't want to error out unhelpfully, i want to let it run with the error "hey, you need to update for this functionality"
<chekcmate>
injekt: great thing about usenet is that you find everything. downloaded a MAD magazine from 1952 last night hah
pbjorklund has quit [Quit: oh no]
<chekcmate>
+ I always had max speed until now... flawless
<injekt>
mjolk: then you need to check if the constant is defined first
<injekt>
chekcmate: that's awesome, what software are you using?
<mjolk>
can i do that with something like if Net::SSH::HostkeyUnknown?
<chekcmate>
they offer a few tools
<injekt>
mjolk: if defined? Net::SSH::HostKeyUnknown
<mjolk>
i'm coming from python where the policy is essentially "it's easier to ask for forgiveness"
<mjolk>
cool, thanks injekt, i really appreciate it.
<injekt>
chekcmate: linux?
mistym_ has quit [Remote host closed the connection]
<darix>
mjolk: you could do it even easier
<chekcmate>
binreader
<injekt>
chekcmate: im on osx is why i ask
<darix>
gem 'net-ssh', '>= 2.6'
<darix>
require 'net-ssh'
sailias has joined #ruby-lang
<chekcmate>
injekt: Binreader Runs everywhere ,Windows, MacOS X and Linux versions. Streaming Preview media files while you download.
<injekt>
chekcmate: im mostly interested in media tbh
<darix>
and rescue block around it with handling the failed loading
<chekcmate>
sounds good, eh? haha
<mjolk>
darix: yeah, i thought about that, but this is part of a Chef recipe that runs differently in vagrant v. ec2
<mjolk>
i'll look into that though, thank you
<judofyr>
injekt: SABnzbd is the shit :)
karasawa has quit [Ping timeout: 248 seconds]
<injekt>
judofyr: you use it?
<judofyr>
injekt: yes. SickBeard + SABnzbd
<judofyr>
very nice combo
<injekt>
ok sickbeard looks nice too
<chekcmate>
judofyr: there are quite a few good readers out there
<injekt>
why am i not aware of these things
<judofyr>
*shrugs*
<chekcmate>
we haven't told you about the dark site yet, injekt
<judofyr>
I need to find a replacement for NZBmatrix though
<judofyr>
currently I'm only using SickBeard's MoMo index
scottschecter has quit [Quit: WeeChat 0.3.9.2]
<chekcmate>
judofyr: currently watching any series?
<chekcmate>
need help to decide which to pick next :P
<judofyr>
chekcmate: hm… nothing at the moment (just watched Firefly on Netflix though). Suits, Leverage, Q.I, Sherlock, Arrow (but now it's just meh), Revenge (also meh; waaay too much drama)
<judofyr>
Homeland
<chekcmate>
I haven't heard of any of those lol
<injekt>
:o
<chekcmate>
I'm at the end of season 2 of The Walkin Dead
<chekcmate>
I won't get kids in the next 15 years because of that show
<chekcmate>
Homeland sounds like Homefront (game) - same setting?
<chekcmate>
judofyr: I'll take a look at those 3 - thanksi!
<judofyr>
Firefly is also cool, but yeah, that's from 2002 (and only one season)
<chekcmate>
Spartacus is continuing soon!
<chekcmate>
GoT too!
<chekcmate>
anyways - thanks for all your help again, have a nice day, guys!
<chekcmate>
bai bai
chekcmate has quit [Quit: Page closed]
socialcoder has quit []
scottschecter has joined #ruby-lang
tomzx_mac has quit [Ping timeout: 276 seconds]
<injekt>
judofyr: sick beard is pretty neat
<imperator>
I'm Spartacus
mossplix has quit [Quit: mossplix]
* imperator
watched Supernatural, it was good
imajes has quit [Excess Flood]
<cHarNe2>
hi, i'd like to send a file stored in activerecord using thin, anyone know how to do this? right now the file is just displayed as if it was a regular html-file
<apeiros_>
cHarNe2: #rubyonrails and you'd use send_file
<apeiros_>
or send_data
<apeiros_>
(I think the latter, see API)
imajes has joined #ruby-lang
pythonsnake has quit [Quit: WeeChat 0.4.0]
mercwithamouth has joined #ruby-lang
<cHarNe2>
apeiros_: ye, all points twords using send_data, but i dont know from where i should use it
<cHarNe2>
apeiros_: ill try in ror
<cHarNe2>
tyvm
<apeiros_>
or are you using think+AR without rails?
<cHarNe2>
apeiros_: yes
<apeiros_>
*thin even
<cHarNe2>
im only using thin with AR
<apeiros_>
via the rack API?
__BigO__ has joined #ruby-lang
<cHarNe2>
dont know
glebm has quit [Quit: Computer has gone to sleep.]
<xalei>
apeiros_, just isn't worth using an abbreviate noone knows
<xalei>
*abbreviation
<injekt>
judofyr: hah :D
<injekt>
my name isn't very common over here
<injekt>
apparently it stems from german routes
<xalei>
I'm doing like a dozen different things right now and I figured since you were using the acronym you could easily say what it was... =)
<apeiros_>
xalei: it's an instant distinction of educated and less educated people ;-p</elitism>
<imperator>
magnus magnusson
<injekt>
Lee is a unisex given name meaning "shelter". It is derived from the surname Lee (English name) and a place name meaning "sheltered from the storm" in Old English
<xalei>
hahaha you troll =P
<injekt>
eh ok :|
<apeiros_>
xalei: ^^
<imperator>
injekt, unless you're korean
<xalei>
xD
<injekt>
imperator: then it's everyones middle name
<judofyr>
I believe "Magnus" comes from Magnum = "great" ;)
<judofyr>
CharleMagnus
<injekt>
heh lee also comes from hewbrew meaning "for me"
<injekt>
how selfish
<injekt>
hewbrew haha
<imperator>
I'm pretty sure the CH for Switzerland stands for "CHocolate"
<injekt>
swiss choc <3
<xalei>
alright I gotta get to Zzz talk to you guys later, thanks for the chats =)
<judofyr>
imperator: actually, I know about a farm where a guy called "Jon" settled in ~1600. he got two sons, and named them both "Jon", making them essentially "Jon jonson". for six generations the oldest son was called Jon
<imperator>
yep, it happens
<xalei>
Lol
rins has joined #ruby-lang
<imperator>
still sound silly
<xalei>
it sounds mental to me xD
<judofyr>
or when they name all their six sons Jon :P
<apeiros_>
imperator: actually it stands for Chuchichäschtli, but that's a state secret.
<injekt>
SHH
<xalei>
O.o
<judofyr>
imperator: my ancestors are all called "Jon Pederson", "Lars jonson", "Peder Larson" and so on…
unlikely_monkey has joined #ruby-lang
<apeiros_>
xalei: it's one of the words foreigners have lots of troubles to properly pronounce :) (it means cupboard)
<xalei>
apeiros_, my father is Polish I could probably get pretty close
<imperator>
apeiros_, no clue what that means
emocakes has quit [Quit: emocakes]
davidbalber|away is now known as davidbalbert
<imperator>
oh, cupboard
schaerli has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
<judofyr>
rindolf: true. we don't really have a SYNOPSIS-culture in Ruby. some do, some don't
<rindolf>
judofyr: I see, that sucks.
<injekt>
I like it
<cHarNe2>
apeiros_: got it working, tyvm. :)
socialcoder has quit []
methods has joined #ruby-lang
<apeiros_>
yw
* imperator
puts a synopsis in his readme
<imperator>
something i liked and borrowed from perl
<apeiros_>
same
<apeiros_>
if I forgot it, it's a bug :)
* apeiros_
<3 @example
<apeiros_>
(corresponding yard tag)
<injekt>
</3 yard
<zzak>
<inkjets3
<injekt>
:D
<injekt>
no one loves and inkjet
<injekt>
an*
<zzak>
i have one
<zzak>
its HP tho
<injekt>
do you love it?
rippa has joined #ruby-lang
carloslopes has quit [Remote host closed the connection]
<zzak>
yes, i even had them fix it under warranty when it stopped working
<injekt>
hah, luckily i haven't been under warranty for like 20 years
<imperator>
laser all the way baby
<imperator>
save sooo much money in the long run
<zzak>
ink is cheap
bzalasky has joined #ruby-lang
<zzak>
if you buy directly from the manufacturer its only $15 per cartridge, compared to $30 something in store
<zzak>
but i dont print that often
<imperator>
i print a lot
thillux has joined #ruby-lang
<injekt>
i never print because i'm always jammed
<zzak>
injekt: is jammin' mon
<zzak>
imperator: what printer do you have?
wallerdev has joined #ruby-lang
<imperator>
brother mfc-9440cn
<zzak>
holy cow
<sandbags>
LaserJet4 forever
<zzak>
$800
glebm has joined #ruby-lang
<sandbags>
(or "the last good printer HP ever made" as I sometimes call it)
<imperator>
i also do board game design, and use it to printout prototype components (cards and whatnot), plus rules
<sandbags>
imperator: do you have a handle on where to get wooden token?
<sandbags>
other than robbing other games? :)
<sandbags>
i've been working on a game design and started needing some tokens to play with... fed up of paper tokens
<imperator>
sandbags, a bunch of online stores sell cubes and stuff, including Fantasy Flight Games
<sandbags>
imperator: cool, thanks
<imperator>
or, just find a friend with a bandsaw ;)
<sandbags>
i've been considering buying a length of dowl
<sandbags>
and making some
<sandbags>
but if i am anything, i am lazy
<zzak>
3dprinter
<sandbags>
can they print wood yet?
<sandbags>
:)
<zzak>
they can make tokens
<injekt>
they've always been able to print wood
<sandbags>
wow $3 for a pack of 12 little tokens
<sandbags>
maybe i will make some
<sandbags>
jeez
<zzak>
does it have to be wooden?
<sandbags>
no, but i like the feel of wooden tokens more than plastic
<sandbags>
for my purposes right now i don't REALLY care
<sandbags>
but i'd go for wood over plastic given the choice
dr_bob has quit [Quit: Leaving.]
<zzak>
#firstworldproblems
<sandbags>
living in the first world i think these are the problems one would expect, no? :)
<sandbags>
okay 15 for £0.12, more my idea of a reasonable price
dr_bob has joined #ruby-lang
<imperator>
seems better :)
methods has left #ruby-lang [#ruby-lang]
imajes has quit [Excess Flood]
<zzak>
just go chop down a sapling and hack it up into proportionate pieces
<zzak>
problem solved
io_syl has joined #ruby-lang
Flobin has joined #ruby-lang
imajes has joined #ruby-lang
<Flobin>
hi everyone. I've been playing around with http://middlemanapp.com/, which has an extension called live reload. To install, it says to install the gem (did that) and to "Add middleman-livereload to your Gemfile"
<Flobin>
what would I actually type? just: gem "middleman-livereload" ?
pbjorklund has quit [Quit: quit]
robbyoconnor has quit [Ping timeout: 256 seconds]
<zzak>
tie a rope around it and drag it to the nearest dump station
<zzak>
problem solved
<injekt>
Flobin: yes
enebo has joined #ruby-lang
maxmanders has quit [Quit: Computer has gone to sleep.]
ryanv-raptor has joined #ruby-lang
robbyoconnor has joined #ruby-lang
bfreeman has quit [Quit: bfreeman]
<Flobin>
thanks, injekt
datanoise has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
judofyr has joined #ruby-lang
mossplix has joined #ruby-lang
maxmanders has joined #ruby-lang
schaerli has quit [Remote host closed the connection]
solars has quit [Ping timeout: 252 seconds]
dankest has joined #ruby-lang
blazes816 has joined #ruby-lang
carloslopes has joined #ruby-lang
ddd has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 244 seconds]
RORgasm has joined #ruby-lang
dankest has quit [Client Quit]
<injekt>
blah im so torn at how to implement stuff in this project :(
bzalasky has quit [Remote host closed the connection]
carloslopes has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Read error: Connection reset by peer]
glebm has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby-lang
alvaro_o has joined #ruby-lang
robbyoconnor has joined #ruby-lang
judofyr has quit [Remote host closed the connection]
glebm has joined #ruby-lang
unlikely_monkey has quit [Remote host closed the connection]
havenn has joined #ruby-lang
Bearproof has joined #ruby-lang
ruskie has quit [Excess Flood]
ViPi has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
Bearproof has left #ruby-lang [#ruby-lang]
emocakes has joined #ruby-lang
robbyoconnor has quit [Ping timeout: 248 seconds]
kogent has joined #ruby-lang
<imperator>
use an 8-ball to decide
<andrewvos>
"Factory Pattern", "Response is cloudy, use Singleton"
zmack has joined #ruby-lang
io_syl has quit [Quit: Computer has gone to sleep.]
mercwithamouth has quit [Ping timeout: 256 seconds]
ruskie has joined #ruby-lang
JohnBat26 has quit [Ping timeout: 252 seconds]
dr_bob1 has joined #ruby-lang
xcombelle has joined #ruby-lang
dr_bob has quit [Ping timeout: 256 seconds]
wyhaines has joined #ruby-lang
mjbamford has quit [Quit: Leaving...]
wyhaines has quit [Remote host closed the connection]
bzalasky has joined #ruby-lang
lun_ has quit [Read error: Connection reset by peer]
wyhaines has joined #ruby-lang
<mjolk>
injekt: thanks again - i ended up going with a more generic 'rescue NameError =>', but thanks for the head-check
zhul_mechanos has joined #ruby-lang
sn0wb1rd has quit [Quit: sn0wb1rd]
wyhaines has quit [Remote host closed the connection]
apeiros_ has quit [Remote host closed the connection]
rue|w has quit [Remote host closed the connection]
<eam>
$: is set at compile time, correct? I'm looking at making a relocatable ruby install and I'd like to change it as part of a packaging step
gjaldon has joined #ruby-lang
<eam>
I'm hoping there's a way to modify it relative to a variable root
rippa has quit [Ping timeout: 240 seconds]
gregmore_ has joined #ruby-lang
rippa has joined #ruby-lang
joker5437 has joined #ruby-lang
wyhaines has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
glebm has quit [Quit: Computer has gone to sleep.]
wyhaines has quit [Remote host closed the connection]
glebm has joined #ruby-lang
<yorickpeterse>
dominikh: is there something like Cinch but for building IRC servers?
<darix>
yorickpeterse: why would you do that?
<darix>
the last thing the world needs is yet another ircd
<yorickpeterse>
Currently I'm using camper_van as an IRC <-> Campfire bridge but it's buggy as fuck
zmack has quit [Remote host closed the connection]
emptyflask has joined #ruby-lang
<yorickpeterse>
I don't feel like parsing all the IRC commands myself so ideally I'd have something that does that for me so I can bother with the fun stuff
<injekt>
yorickpeterse: you can use the parser cinch uses
<darix>
yorickpeterse: so instead of just doing an irc bot with cinch
<yorickpeterse>
hmm
<darix>
you want to get into the world of writing a complete irc server
<yorickpeterse>
I think you're misunderstanding: I don't want to write a bot
<darix>
hammer and nail, hammer and nail
<yorickpeterse>
I want something that translates Campfire crap into IRC crap so I can keep using Weechat
<injekt>
yorickpeterse: so it would read campfire and post to irc?
<yorickpeterse>
Yes, and vice versa
<injekt>
sounds like you need a bot
<darix>
yorickpeterse: a small bot. connect to some ircd. maybe even freenode. and let the bot join there
<yorickpeterse>
darix: how does that solve my problem?
ovatsug25 has quit [Remote host closed the connection]
<darix>
yorickpeterse: bot reads camp fire
<darix>
and posts
dr_bob1 has quit [Quit: Leaving.]
<darix>
bot reads commands and does campfire action?
<yorickpeterse>
tbh that would be more complex/annoying than a bridge
<darix>
yorickpeterse: camper_van is just doing that?
<yorickpeterse>
Yes
<yorickpeterse>
But it's buggy and seems to consider everything as actual IRC commands
<darix>
so what is your problem with that mechanism?
<yorickpeterse>
the latter frightens me
<darix>
irc commands how?
<yorickpeterse>
As in, I had people write messages with "To:" in it and I'd get error logs saying that was an invalid IRC command
mossplix has quit [Ping timeout: 248 seconds]
<darix>
if someone types "join #ruby-lang" on camp fire the bot would do that?
<darix>
well.
<darix>
that should be an easy fix no?
<yorickpeterse>
I've also had cases where it would duplicate messages 20 times, randomly crash on YAML related code (why the fuck it even uses that is beyond me), etc
<yorickpeterse>
For my personal use case fixing that would most likely take way longer than hacking something together myself
<yorickpeterse>
The alternative is to spend some time with the libpurple API but meh, C
<darix>
but seriously hacking up an ircd wouldnt be less time
<yorickpeterse>
inb4 "snakefire": it's shit
<darix>
it just adds another world of pain
<darix>
yorickpeterse: did you check bitlbee for campfire support?
mossplix has joined #ruby-lang
<yorickpeterse>
doesn't hav eit
<yorickpeterse>
* have it
<yorickpeterse>
at least not as far as I could find
sn0wb1rd has joined #ruby-lang
<darix>
also ... why not just have a script running inside weechat talking to campfire and dumping stuff into a special window
<darix>
(:
<darix>
leaving out the whole irc layer
<yorickpeterse>
Because I don't want to use a solution that looks like an abortion
<darix>
well
<yorickpeterse>
that's like saying "lol use a CLI tool that polls it"
<darix>
keep bitching
<yorickpeterse>
sick burn. Either way, I'm not going to argue with you
schaerli has joined #ruby-lang
<darix>
yorickpeterse: all i can say there are things like rss reader scripts for irssi and stuff which work just fine within irssi. leaving out the whole irc stack in the middle. so i cant see why something like that wouldnt work with weechat.
Bearproof has joined #ruby-lang
<darix>
you argued you only want the whole stuff to have it inside weechat.
<yorickpeterse>
Unless you can't read, which I doubt, I think I made it fairly clear I wasn't going to further argue about it since there's no point to it.
mercwithamouth has joined #ruby-lang
<darix>
well so far you didnt bring any arguments except "it sucks, it crash, that is bad, i dont want to"
<imperator>
darix, so proceed as you see fit
wallerdev has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
<darix>
that's the plan!
bzalasky has joined #ruby-lang
<yorickpeterse>
darix: let me give you an exact reason why: camper_van is buggy and makes me feel like it's insecure, that alone is enough for me to stop using it. All the solutions you suggested work fine if you only join a single room and don't mind having to duplicate command interfaces [...]
lun_ has joined #ruby-lang
apeiros_ has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
kogent has quit [Remote host closed the connection]
<yorickpeterse>
Say you're going down the route of an IRC <-> Campfire bot you have to write a user interface so I can communicate with it, translate that to Campfire stuff and then translate all the Campfire stuff back to IRC.
bfreeman has joined #ruby-lang
mpan has joined #ruby-lang
<yorickpeterse>
That solution also becomes a mess when you join multiple rooms as everything will be thrown into one place (the place where the bot is)
kogent has joined #ruby-lang
<darix>
yorickpeterse: well not really. there is e.g. an xmpp protocol support for weechat as a python script
<darix>
so i assume that can handle multiple xmpp chats/mucs
<yorickpeterse>
And then I have to find a Jabber <-> Campfire bridge
<yorickpeterse>
Again, how is that easier?
<darix>
or
Bearproof has left #ruby-lang [#ruby-lang]
<darix>
write a campfire.rb script for weechat which adds campfire support?
<darix>
leaving all intermediate protocols out
<yorickpeterse>
as far as I'm aware you can't write protocol plugins for Weechat
<darix>
then all you care about is the weechat protocol api and the campfire protocol
schaerli has quit [Remote host closed the connection]
bluepojo has joined #ruby-lang
<injekt>
dominikh: lie
davidbalber|away is now known as davidbalbert
tbuehlmann has quit [Remote host closed the connection]
<yorickpeterse>
Messing around with the Weechat API now to see if I can get hack something together
<lianj>
yorickpeterse: use campfire at your job?
<yorickpeterse>
Yes
<yorickpeterse>
We have non techies using it so I can see why we use it, I just wish we used IRC instead
* yorickpeterse
strokes his neckbeard
retro|cz has quit [Read error: Operation timed out]
<lianj>
horrible horrible :P
<dominikh>
I've seen women use IRC, I'm sure non techies can manage :P (inb4 rants at my douchy comment)
<yorickpeterse>
that's sexist yo
<dominikh>
that's how I roll
<injekt>
it gets worse
<lianj>
i made my team switch to irc some weeks ago :) so happy about that move
<yorickpeterse>
I know, he's German after all
<dominikh>
yorickpeterse: oh don't get me started. we're all about equal rights and feminism here :P
<Smol>
hmm, is there a oneliner to make an IO-like object from something that responds to #each? (specifically, I'd like to give Rack::BodyProxy to Net::HTTP::Post#body_stream)
<lianj>
Smol: StringIO?
mistym_lunch is now known as mistym
<lianj>
hm, sadly no
<Smol>
yeah, I think it wants a string
gix has quit [Ping timeout: 256 seconds]
<dominikh>
#each doesn't really map at all to how IO behaves
tbuehlmann has joined #ruby-lang
<Smol>
if I understand the code correctly, Net::HTTP just seems to want something that responds to #read(n)
Rizzle has joined #ruby-lang
solars has joined #ruby-lang
ddd has left #ruby-lang [#ruby-lang]
maxmanders has quit [Quit: Computer has gone to sleep.]
gix has joined #ruby-lang
toretore has quit [Quit: Leaving]
maxmanders has joined #ruby-lang
gix has quit [Ping timeout: 245 seconds]
lun_ has joined #ruby-lang
seydar has joined #ruby-lang
gix has joined #ruby-lang
<seydar>
i'd like to share and discuss and tear to shreds 2 lines of code i just wrote
<seydar>
unless a = something.else
<seydar>
a = 5
<seydar>
end
<injekt>
wat
<seydar>
i dunno. i just wrote it and thought "huh that's interesting."
<seydar>
i don't even know why it's interesting
<injekt>
:/
<injekt>
a = something.else || 5
<lianj>
as in a = something.else or 5
<injekt>
beat ya
<lianj>
as always :P
<injekt>
hehe
<seydar>
i mean, yes, except the `a = 5` tidbit is actually multiple lines
ivanoats has quit [Remote host closed the connection]
<andrewvos>
Came back here to say: I mean Battleship.
<CoverSlide>
I hear they're making movies out of Monopoly, Ouija, CandyLand, and Risk
chuenjin_ has joined #ruby-lang
<CoverSlide>
and hungry hungry hippos
ericwood has quit [Ping timeout: 255 seconds]
ericwood has joined #ruby-lang
<drbrain>
CoverSlide: they made a movie out of DDR
<CoverSlide>
what?
<zenspider>
the worst feature of ruby 1.9 just got worse... omg
<CoverSlide>
zenspider: what feature?
scottschecter has quit [Quit: WeeChat 0.3.9.2]
<zenspider>
being able to define `def !`
<zenspider>
turns out that 'a unless b' is a COMPLETELY different code path from 'a if ! b' because they don't both normalize to the same thing
mistym_meeting is now known as mistym
chuenjin has quit [Ping timeout: 276 seconds]
benanne has quit [Ping timeout: 264 seconds]
chuenjin_ has quit [Ping timeout: 255 seconds]
<zenspider>
yup... `a != b` is also completely different from `!(a == b)` for the same reason
<zenspider>
jesus this is dumb
carloslopes has quit [Read error: Connection reset by peer]
carloslopes has joined #ruby-lang
elux has quit [Quit: Leaving...]
io_syl has joined #ruby-lang
<andrewvos>
zenspider: So much fun things will come from this yay
<andrewvos>
CoverSlide: The sad thing is I completely believe you. What has this world come to?
benanne has joined #ruby-lang
benanne has quit [Client Quit]
benanne has joined #ruby-lang
madhadron has joined #ruby-lang
<madhadron>
Does anyone know how to get write a cross platform test task in Rake?
<andrewvos>
madhadron: Guess so
<andrewvos>
zenspider: After rereading what you wrote I am confident in saying that I don't understand at all. Care to elaborate?
<madhadron>
andrewvos, I have a Rake::TestTask block to run all the files test/test_*.rb, which works fine on Linux and OS X, but on Windows doesn't seem to find anything.
<madhadron>
The command it prints that it's running shows all the files, but it doesn't actually handle any of them.
<andrewvos>
Wait so you mean you can make a method called ! that circumvents !?
<mistym>
zenspider: But at least it lets you make your code more unreadable by redefining ! to mean unintuitive stuff!
<andrewvos>
espinet: This may be presumptious but what about #to_json?
<espinet>
what do you mean?
<espinet>
gist updated because of bad naming
jonahR has quit [Quit: jonahR]
techlife has quit [Ping timeout: 252 seconds]
<andrewvos>
"marshal to short" should it not be "too"?
<drbrain>
espinet: yeah, you got truncated somewhere ☹
<drbrain>
you're missing the instance variable reference on the final string
techlife has joined #ruby-lang
lun_ has joined #ruby-lang
<espinet>
ya, not sure why
swav has joined #ruby-lang
lun__ has quit [Ping timeout: 264 seconds]
b1rkh0ff has quit [Ping timeout: 248 seconds]
zhul_mechanos has quit [Remote host closed the connection]
zhul_mechanos has joined #ruby-lang
lun__ has joined #ruby-lang
<drbrain>
espinet: it's especially odd since it's not the only NUL byte in the string
lun_ has quit [Ping timeout: 248 seconds]
<espinet>
do not know what you mean by that
<workmad3>
espinet: should I repeat in here to just use activerecords serialize attribute helper? :P
<drbrain>
espinet: if there was only one \x00 in the string I might suspect the DB adapter encountered the \x00 and truncated the rest of the string
jetstream has quit []
<espinet>
oh. well the recommendation i god from #rubyonrails was use ActiveRecords serialize but i'd still like to know why Marshal didn't work
pythonsnake has quit [Quit: WeeChat 0.4.0]
mjio has joined #ruby-lang
kith has quit [Read error: Connection reset by peer]
<espinet>
someone said "dunno... but then, marshalling is basically arbitrary binary data, while a text column in a db is for text data, not binary data"
kith has joined #ruby-lang
<workmad3>
espinet: yeah, me :P
mjolk has quit [Ping timeout: 276 seconds]
<espinet>
lol you did!
<workmad3>
espinet: cross-posting channels gets a bit annoying btw :P
__butch__ has quit [Quit: Leaving.]
<espinet>
i was letting drbrain know
<espinet>
i'm gone after this, you solved my problem, i apologize.
<workmad3>
:)
<espinet>
workmad3: what column type do you think i would need to marshal the data instead if text wouldn't work?
<espinet>
binary?
lun__ has quit [Ping timeout: 256 seconds]
<workmad3>
espinet: you could try with binary if you have a binary type in your db... I'd expect that to do less messing with the text than a text column
zhul_mechanos has quit [Quit: zhul_mechanos]
<espinet>
working with postgres, but i was more curious as to what would fix that issue. thanks again!
waffleau_ has joined #ruby-lang
postmodern has joined #ruby-lang
nirix has joined #ruby-lang
espinet has left #ruby-lang [#ruby-lang]
waffleau_ has quit [Quit: waffleau_]
waffleau_ has joined #ruby-lang
b1rkh0ff has joined #ruby-lang
madhadron has left #ruby-lang [#ruby-lang]
mistym has joined #ruby-lang
mistym has quit [Changing host]
mistym has joined #ruby-lang
elico has joined #ruby-lang
waffleau_ has left #ruby-lang [#ruby-lang]
thillux has quit [Remote host closed the connection]
rins has quit [Ping timeout: 255 seconds]
emptyflask has quit [Remote host closed the connection]
b1rkh0ff has quit [Read error: Connection reset by peer]
RWN has quit [Ping timeout: 248 seconds]
elico has quit [Ping timeout: 244 seconds]
elico has joined #ruby-lang
ryanv-raptor has joined #ruby-lang
dzhulk has left #ruby-lang [#ruby-lang]
andrewhl has quit [Remote host closed the connection]