<judofyr>
gnufied: I should probably gist my downloader script as well
tkuchiki has joined #ruby-lang
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby-lang
<judofyr>
gnufied: what do you mean by "ignoring platform" btw? will always just pick the version for the current platform?
stamina has joined #ruby-lang
hahuang65 has quit [Ping timeout: 264 seconds]
<gnufied>
when we construct that variable list, because we already know the current platform, I think we can exclude gems that don't match current platform and there won't be any need to bring them in CNF expression
<yorickpeterse>
(what's with Google and shit URLs?)
<yorickpeterse>
it's like a feature of all their products is to have terrible URLs
<gnufied>
well no. Vim is just a bad imitation of a great soap
<apeiros>
whitequark: I agree, it's a rather weird antic ruby exhibits there
joonty has joined #ruby-lang
<judofyr>
gnufied: I had a look at ruby-minisat; too bad it only exposes the simple `(x or y) and (z or æ)`
mdedetrich has joined #ruby-lang
mdedetrich has quit [Client Quit]
<gnufied>
judofyr: okay. I
mdedetrich has joined #ruby-lang
<judofyr>
gnufied: I need to learn more about simplifying boolean expression. and I still don't quite know how to encode the dependency graph. maybe I'll look at it later.
<judofyr>
face: but it does seem like you understand it better :)
<judofyr>
err
<judofyr>
face: sorry, wrong guy!
<judofyr>
gnufied: ^
<gnufied>
judofyr: cool. I will look later, tonight.
xning has quit [Quit: Leaving]
<judofyr>
sure
<judofyr>
I'll stop bothering
guns has joined #ruby-lang
vlad_starkov has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
mootpointer has quit [Quit: Computer has gone to sleep.]
_whitelogger has joined #ruby-lang
matthewd has joined #ruby-lang
hackeron has joined #ruby-lang
lele has joined #ruby-lang
hackeron has quit [Changing host]
hackeron has joined #ruby-lang
dagobah has joined #ruby-lang
randym_ has joined #ruby-lang
anekos has joined #ruby-lang
segy has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 268 seconds]
dhruvasagar has joined #ruby-lang
beawesomeinstead has joined #ruby-lang
sonne has joined #ruby-lang
<injekt>
yorickpeterse: no, the internet has enough cat pictures
<darix>
injekt: u sure?
<injekt>
yorickpeterse: anyway it could take months to fix a large test suite, this one is only mind blowing fast because it was a 'thing' right from the start
<injekt>
darix: yasrsly
<injekt>
I also dont have integration tests because J.B told me they are a scam! (but seriously the article is great and I agree with a lot of it)
dhruvasagar has quit [Ping timeout: 264 seconds]
tkuchiki has quit [Remote host closed the connection]
mytrile has quit [Remote host closed the connection]
scholar01 has joined #ruby-lang
scholar01 has joined #ruby-lang
scholar01 has quit [Changing host]
<injekt>
it's also why I don't use tools like guard/spork which only runs tests you're currently working on. If I change 1 thing in 1 model, I want to run my entire unit test suite again, not just the file i'm working in
<whitequark>
^ that
<injekt>
them being fast is of course somewhat of a prerequisite for that
<injekt>
it's the difference between changing 5-8 things in an hour, and 10 things in 10 minutes
tkuchiki has quit [Ping timeout: 248 seconds]
<erikh>
i usually iterate on guard until I'm happy and then hit enter to run the full suite
<erikh>
my problem unfortunately is the reliance on external software with, well, special logic
<injekt>
erikh: sure, nothing wrong with that, it's not a bad tool, it just enables bad programmers to do bad things
<erikh>
well, heh, computers do that without any hell
<erikh>
help
hahuang65 has joined #ruby-lang
_jpb_ has quit [Ping timeout: 256 seconds]
mbj has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 245 seconds]
<judofyr>
whitequark: did you see my mention in the Bundler issue?
_jpb_ has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<whitequark>
judofyr: I think I did
hahuang65 has quit [Ping timeout: 248 seconds]
<injekt>
wow I just found an old blog of mine that has the moto "because toilets are useful"
<judofyr>
whitequark: echo 'require "bundler";Bundler::Source::Rubygems::API_REQUEST_LIMIT=200' > crap.rb; RUBYOPT="-r./crap" time bundle
<injekt>
lol being young
<judofyr>
whitequark: that should speed it up
<judofyr>
injekt: aren't you still quite young?
<injekt>
judofyr: how old do you think I am?
<judofyr>
injekt: 25-ish
mdedetrich has quit [Quit: Computer has gone to sleep.]
<erikh>
I feel like grandpa watching this unfold
<injekt>
lol
<injekt>
yeah 24, 25 in 2 weeks
<injekt>
that blog was when I was about 15
<whitequark>
25-year-old inkjet
<injekt>
whitequark: heh, even new ones suck!
<whitequark>
they got *worse*
dernise has joined #ruby-lang
<erikh>
well they're cheap
<erikh>
thatsthepoint.jpg
<erikh>
or whatever
mootpointer has joined #ruby-lang
<erikh>
if you want a high end printer you get a xerox or a laserjet etc
<whitequark>
erikh: when it's cheaper to buy a new printer than a new cartridge, you know something's wrong
<erikh>
i don't know why I am fucking talking about this
zomgbie has quit [Read error: Connection reset by peer]
<erikh>
whitequark: hah, true
<whitequark>
also they went full-on Apple
_jpb_ has quit [Ping timeout: 246 seconds]
zomgbie has joined #ruby-lang
<cout>
whitequark: new printers don't come with full cartridges so it's not a fair comparison
<cout>
but yeah manufacturers charge way too much for cartridges in general
<whitequark>
cout: it's still cheaper tho
<erikh>
dat china
_jpb_ has joined #ruby-lang
<cout>
I get my cartridges off ebay and then it's cheaper
<injekt>
I use a ball-point
<whitequark>
now add delivery to russia and it becomes cheaper to buy *two* printers
<erikh>
injekt: so I got a galaxy note tab
<injekt>
erikh: any good?
<judofyr>
erikh: as a replacement for a printer?
<cout>
would be hard for me to pick up in russia
<erikh>
it actually... is not a bad replacement for a paper notepad
dhruvasagar has quit [Ping timeout: 246 seconds]
<injekt>
heh
<erikh>
the pen is quick and free form so you don't have to worry about any handwriting recognition bs
<erikh>
but yeah, I live by paper notepads normally.
<injekt>
I can only imagine myself writing like 3 words and it taking up the entire screen (maybe I just write big on those kind of things?)
dhruvasagar has joined #ruby-lang
<injekt>
yeah I use paper notepads a lot
<erikh>
it's not that bad but yeah, you need to be mindful of it
<erikh>
being able to write fast helps too
<erikh>
like, not watching the pen's marks catch up
mdedetrich has joined #ruby-lang
PaulePanter has quit [Quit: leaving]
<injekt>
heh yeah that could bug me
<erikh>
yeah, I had issues with that on old palms
<erikh>
not here
<erikh>
still trying it out though -- mostly bought it to read ebooks
<injekt>
yeah I've been looking for a book reader
<injekt>
but can't make my mind up
<erikh>
$wife has an ipad and I have this tab, and she had a kindle before that
<erikh>
I think we're both happier with the tablets.
<injekt>
hm
<erikh>
she does netflix and plex on hers though
<erikh>
kind of a ghetto tv while she's sleeping (I don't like tv's in the bedroom)
anonymuse has quit [Remote host closed the connection]
<erikh>
and she always beats me to bed, so that's how that works.
lutfidemirci has quit [Read error: Connection reset by peer]
anonymuse has joined #ruby-lang
<cout>
the bedroom is for seep and sex
<injekt>
heh
<cout>
sleep
foo_ has joined #ruby-lang
lutfidemirci has joined #ruby-lang
<cout>
(according to most sleep doctors I've talked to)
<injekt>
yeah I dislike tv's in the bedroom, as does $gf
<erikh>
I just don't like falling asleep to noise is all
<cout>
it's the light that's the issue
<erikh>
yeah, that too.
foo_ is now known as inomataj
<lianj>
i thought it was the stupidity on tv
<injekt>
I pay way too much for my tivo
<injekt>
I hate tv
<erikh>
the roku keeps her super happy
<erikh>
we have netflix which is $8/mo
<injekt>
yeah I love movies, I have netflix and LF
<injekt>
but general tv is utter shit
<erikh>
and no cable service, and amazon prime has some movies/tv but we got that for the shipping
<erikh>
free two day shipping is the tits
lutfidemirci has quit [Read error: Connection reset by peer]
lutfidem_ has joined #ruby-lang
<injekt>
yeah I have prime, it's awesome
dernise_ has joined #ruby-lang
<erikh>
but yeah, I think after it's all said and done, $100 one time for the roku, about $15/mo if you count amazon prime
vlad_starkov has quit [Ping timeout: 276 seconds]
<erikh>
presuming the internet is used for other thigns too, and that's definitely the case here.
anonymuse has quit [Ping timeout: 240 seconds]
dernise has quit [Ping timeout: 246 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby-lang
dhruvasagar has joined #ruby-lang
jvrmaia has joined #ruby-lang
ffio has quit [Ping timeout: 245 seconds]
mdedetrich has quit [Quit: Computer has gone to sleep.]
<injekt>
I pay like 65gbp just for cable and tivo
<yorickpeterse>
injekt: re: integration tests, I agree, fuck em
mdedetrich has joined #ruby-lang
<yorickpeterse>
mostly because I can't stand tests breaking because somebody changed an HTML class
chickenflu has joined #ruby-lang
<injekt>
right
PaulePanter has joined #ruby-lang
dc5ala has quit [Quit: Ex-Chat]
dhruvasagar has quit [Ping timeout: 240 seconds]
wallerdev has joined #ruby-lang
dhruvasagar has joined #ruby-lang
benlovell has joined #ruby-lang
<judofyr>
yorickpeterse: depends. I love integration tests for payments and such
<judofyr>
the important parts
lutfidem_ has quit [Ping timeout: 248 seconds]
kitallis-cloud has joined #ruby-lang
inomataj has quit [Remote host closed the connection]
<yorickpeterse>
I just don't see the purpose if everything underneath it is already tested
<yorickpeterse>
do note that when I talk about intergration tests I'm talking about the whole Capybara crap
<injekt>
I hate manually testing payment areas, so monotonous
realDAB has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 240 seconds]
ecnalyr has joined #ruby-lang
dhruvasagar has joined #ruby-lang
scholar01 has quit [Quit: Leaving.]
duphus has joined #ruby-lang
tonni has joined #ruby-lang
duphus has left #ruby-lang [#ruby-lang]
benanne has joined #ruby-lang
dernise_ has quit [Ping timeout: 245 seconds]
cored has joined #ruby-lang
dhruvasagar has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby-lang
hahuang65 has joined #ruby-lang
enebo has joined #ruby-lang
lutfidemirci has joined #ruby-lang
hahuang65 has quit [Ping timeout: 246 seconds]
cd has joined #ruby-lang
cd is now known as Guest32231
dhruvasagar has quit [Ping timeout: 264 seconds]
lutfidemirci has quit [Read error: Connection reset by peer]
grosscol has quit [Remote host closed the connection]
grosscol has joined #ruby-lang
hashkey_ has joined #ruby-lang
mlangenberg has joined #ruby-lang
amerine has quit [Ping timeout: 268 seconds]
hashkey has quit [Ping timeout: 256 seconds]
<whitequark>
why the hell: incompatible character encodings: UTF-32LE and UTF-8 (Encoding::CompatibilityError)
<whitequark>
unicode is not compatible with unicode. yeah.
<mlangenberg>
I have an object that is either an instance of a specific Class or an Array of instances, which I want to extend / decorate with my own method. Would I use Forwardable or SimpleDelegator for this?
benanne has quit [Quit: kbai]
yalue has joined #ruby-lang
wmoxam has joined #ruby-lang
_jpb_ has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
mdedetrich has quit [Quit: Computer has gone to sleep.]
tomzx_mac has joined #ruby-lang
wallerdev has quit [Quit: wallerdev]
realDAB has joined #ruby-lang
<mlangenberg>
Actually, what is the best way to add a method to an Array? e.g support people.average_age, but also people.select {}
<yorickpeterse>
Patch it or use your own type of class
<yorickpeterse>
you can also use decorators but meh
<apeiros>
something like average_age shouldn't go into Array
Voker57|2 has quit [Changing host]
Voker57|2 has joined #ruby-lang
Voker57|2 is now known as Voker57
<whitequark>
mlangenberg: make your own collection class and include Enumerable in it
<yorickpeterse>
class PeopleCollection < Array; ....; end
<apeiros>
so own class, delegator or use Object#extend
<yorickpeterse>
or include Enumerable
dernise has joined #ruby-lang
mdedetrich has joined #ruby-lang
glebm has quit [Ping timeout: 264 seconds]
PaulePanter has quit [Quit: leaving]
<mlangenberg>
I guess I could do have class PeopleCollection extend Forwardable and include Enumerable.
<erikh>
gnufied: znc's ares resolver screws up some times
<erikh>
I just use ip addresses
wallerdev has quit [Quit: wallerdev]
<whitequark>
erikh: do you perhaps know how can I, given list of lines, count the amount of times these lines occur?
<whitequark>
... or maybe I should write an awk script
<gnufied>
erikh: ah
<erikh>
uniq -c
<whitequark>
erikh: oh, thanks
<erikh>
might want to sort -n first
tonni has quit [Remote host closed the connection]
<mlangenberg>
When using: class MyClass < DelegateClass(ClassToDelegateTo), how strict is the specification of ClassToDelegateTo? Can it just be Object?
<erikh>
mlangenberg: it just has to accept an argument list for initialize
<erikh>
I use it with Array and Hash all the time
<erikh>
'cause it's smart yo
<mlangenberg>
erikh: well there is a custom class I want to wrap.
<ericwood>
you inherit from array and hash all the time?
<erikh>
ericwood: I delegate to them, yep
<ericwood>
hmmm I actually haven't messed with the delegation stuff >.>
rickruby has quit [Remote host closed the connection]
<erikh>
it's pretty neato
<erikh>
nice for modelling things which are really just fancy collections.
<bjrohan>
I am trying an example in Why's poignant guide to Ruby. In the example I created a hash in a file, which I saved. I required the file, but the program gives an error that the variable from the hash file is undefined
<bjrohan>
injekt, swap.rb:8:in `<main>': undefined local variable or method `code_words' for main:Object (NameError)
<ericwood>
do require_relative instead of require
<injekt>
heh
<yorickpeterse>
haha this snippet again
<bjrohan>
:-)
<yorickpeterse>
Somebody else asked the same question a few weeks ago
<ericwood>
nice
<yorickpeterse>
or the same person, not sure
<bjrohan>
Not me
<bjrohan>
just got to this part in the book
<injekt>
I dont remember the poignant guide teaching this
<ericwood>
me either
<bjrohan>
page 32
<ericwood>
but then again I was on acid when I read it
<injekt>
no, reading it puts you on acid
grosscol has quit [Remote host closed the connection]
<injekt>
so we all were
<injekt>
\o/
grosscol has joined #ruby-lang
<yorickpeterse>
would be nice for the poignant guide not to teach broken shit
<ericwood>
yorickpeterse: to be fair, it's kinda out of date now :(
<yorickpeterse>
"Here's how to write Ruby" "It doesn't work!" "THAT'S THE POINT!!!"
<bjrohan>
just change the path to require_relative and that will solve it?
stardiviner has joined #ruby-lang
<injekt>
I dont even understand what guide gets you to define an lvar and then require it from a different file
<ericwood>
just try it for kicks
<bjrohan>
ok
benanne has joined #ruby-lang
<ericwood>
injekt: _why is not known for his best practices
<ericwood>
I only recommend people read the book for the cultural aspect of it
<ericwood>
it's a lot of fun to read
<yorickpeterse>
injekt: probably used to work in some ancient Ruby version
<ericwood>
and the first two chapters are especially hilarious
GeissT has quit [Quit: MillBroChat AdIRC User]
<injekt>
I remember enjoying it
<bjrohan>
ericwood, same error when I replaced require with require_relative
<ericwood>
hmmph
<bjrohan>
ericwood, change the file to only the file, not the whole path?
<ericwood>
bjrohan: sure
<ericwood>
make it relative
stef_204 has quit [Remote host closed the connection]
<injekt>
guys
<injekt>
this wont work, no matter what you do
<ericwood>
what
<bjrohan>
ericwood, didn't work :-(
<injekt>
it's a local variable
<bjrohan>
injekt, what do I need to do to get it to work?
<ericwood>
you're a local variable
<injekt>
it's not accessible
<injekt>
bjrohan: stop using a local variable
<bjrohan>
how do I not use a local variable?
<yorickpeterse>
prefix it with @
<yorickpeterse>
or $
<bjrohan>
ok
<injekt>
$code_words instead of code_words it's a global variable which is a stupid idea, but so is what you're doing (no offence, it's not your fault)
<yorickpeterse>
(for extra comedy)
<ericwood>
yorickpeterse: don't bring globals into this D:
<ericwood>
he'll do it
<ericwood>
an instance variable will do just fine mmk?
<yorickpeterse>
muaha
<injekt>
using instance variables for this is worse because it's not just bad practice, it makes less sense
<ericwood>
makes more sense to me
<injekt>
how? what's the instance?
<ericwood>
the instance of everything
<yorickpeterse>
bjrohan: easiest way is to probably just concat the two files together
<injekt>
you're the instance of everything
<bjrohan>
well yes, I can just define the has in the file
<ericwood>
injekt: let's just say that what he's trying to do is fundamentally a bad practice so an instance variable won't hurt anything :P
<bjrohan>
here is what I get when I placed a $code_words: swap.rb:8:in `<main>': undefined method `each' for nil:NilClass (NoMethodError)
<injekt>
ericwood: same with globals
<ericwood>
bjrohan: change it to $code_words in both files
<bjrohan>
ok
<injekt>
^
<injekt>
then delete both files
<injekt>
are read a different book
<injekt>
and*
<ericwood>
bjrohan: we all really love WPGTR here, but it's not a good way to learn ruby anymore :(
<ericwood>
sorry
<ericwood>
but keep reading it, because it's a fun adventure
<ericwood>
and listen to the soundtrack as well :D
<ericwood>
I love the soundtrack so much
<bjrohan>
that worked. injekt I also have Beginning Ruby from Novice to Professional 2nd ed. I do like the comedy of WPGTR
<injekt>
well grab a pen and draw some bacon and foxes on your beginning ruby book
<ericwood>
oooh that would make it a lot better
realDAB has quit [Quit: realDAB]
<ericwood>
I should do that with my copy
Homo-Erectus has joined #ruby-lang
Homo-Erectus has left #ruby-lang [#ruby-lang]
bjrohan has quit [Quit: Leaving]
realDAB has joined #ruby-lang
minivan has quit [Quit: minivan]
mistym has joined #ruby-lang
gcol has joined #ruby-lang
grosscol has quit [Read error: Connection reset by peer]
hahuang65 has joined #ruby-lang
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby-lang
hahuang65 has quit [Ping timeout: 246 seconds]
zmike123 has joined #ruby-lang
_jpb_ has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
ecnalyr has quit [Ping timeout: 245 seconds]
dernise_ has joined #ruby-lang
cd has joined #ruby-lang
cd is now known as Guest90403
glebm has quit [Quit: Computer has gone to sleep.]
dernise has quit [Ping timeout: 276 seconds]
glebm has joined #ruby-lang
mytrile has joined #ruby-lang
mistym has quit [Remote host closed the connection]
glebm has quit [Client Quit]
imperator has joined #ruby-lang
gcol has quit [Remote host closed the connection]
gcol has joined #ruby-lang
sonicpond has joined #ruby-lang
<imperator>
greetings programs!
tkuchiki has quit [Remote host closed the connection]
<akahn>
Is there a way to check if some ruby code is being run by a human or via a script? I want to show a progress bar if a human is running my code manually, but omit it if it's being run as part of an automated build process
<yorickpeterse>
define human
<yorickpeterse>
as in, they run it manually?
<whitequark>
akahn: STDOUT.tty?
<yorickpeterse>
FINALLY, added sorting to all darn tables in this app
<yorickpeterse>
that took....3 hours at least
<akahn>
whitequark: thanks, I'll give that a shot
<ericwood>
someone in #ruby is asking why you'd ever want instance methods
<ericwood>
and that class methods should be enough for anyone
<ericwood>
whyyyyyyyyyyyyyy
mistym has joined #ruby-lang
<yorickpeterse>
obvious troll
<ericwood>
how do you even explain that
dernise_ has quit [Ping timeout: 276 seconds]
<ericwood>
no he's legitimately asking
<akahn>
whitequark: how can I simulate a situation where that returns false?
<ericwood>
I'm a professional troll spotter
<imperator>
640k should be enough for him
<ericwood>
nobody there knows how to help him :P
<imperator>
akahn, you could reopen stdout
<yorickpeterse>
akahn: pipes: e.g. `echo "foo" | ruby script.rb`
<whitequark>
akahn: ./foo.rb >/dev/null
<whitequark>
or >file
<akahn>
aaah
<akahn>
of course. thanks
rshetty has joined #ruby-lang
<whitequark>
ruby WHAT THE FUCK
<gnufied>
now!
<whitequark>
why do you interpret a literal \0 in the middle of a file as EOF
<ericwood>
because \0 is EOF
<whitequark>
but a literal \0 in a string as just \0
<ericwood>
you should know that
jsullivandigs has joined #ruby-lang
<whitequark>
ericwood: no it isn't; eof is eof
<yorickpeterse>
\0 != \\0
<ericwood>
you're EOF
<yorickpeterse>
I'll EOF your face
<ericwood>
ouch
<gnufied>
\0 isn't EOF
<gnufied>
whitequark: examples?
<whitequark>
gnufied: well there's just a file with a NUL byte inside
<whitequark>
and "<NUL>" is "\0"
_jpb_ has quit [Remote host closed the connection]
<yorickpeterse>
(as in, a blocking event loop is running)
<tubbo>
nah
<tubbo>
something else was up, but fuck it i got Pry.start to work so we're all godo
<tubbo>
good*
glebm has joined #ruby-lang
daihuws has joined #ruby-lang
<tubbo>
had to add my methods into the Kernel module to make them available in the console, however.
<tubbo>
yorickpeterse: do you happen to know if i can "trap" the exit out of Pry? i'd like to close up my socket connection and terminate the ZMQ::Context before quitting
<whitequark>
at_exit
<tubbo>
nice
shireesh has quit [Quit: Leaving]
elia has quit [Ping timeout: 264 seconds]
<tubbo>
whitequark: do i just define that? Pry.at_exit = -> { ... }?
<yorickpeterse>
No, just regulat at_exit
<yorickpeterse>
at_exit { foo }
<tubbo>
cool
<yorickpeterse>
does AR provide any low level method for manually escaping SQL fragments? Every solution that I can think of for this sorting nonsense has at least one workaround
gcol has quit [Remote host closed the connection]
gcol has joined #ruby-lang
<yorickpeterse>
unless I decide to shit up the UX (lol UX of code)
tylersmith has joined #ruby-lang
mbj has joined #ruby-lang
dhruvasagar has joined #ruby-lang
<yorickpeterse>
Hm, it seems to have
bjrohan has joined #ruby-lang
<yorickpeterse>
SomeModel.sanitize('herp derp user input')
mlangenberg has joined #ruby-lang
imperator2 has joined #ruby-lang
tenderlove has quit [Ping timeout: 264 seconds]
<bjrohan>
I am new to Ruby and programming, would Beginning Ruby from Novice to Professional, or Pragmatic Ruby be better?
imperator has quit [Ping timeout: 256 seconds]
mucker has joined #ruby-lang
mlangenberg has quit [Ping timeout: 276 seconds]
lutfidemirci has quit [Remote host closed the connection]
<clov3r>
I like rubymonk.com to be honest. I can say that pragmatic ruby is a great book though
glebm has quit [Quit: Computer has gone to sleep.]
mistym has quit [Remote host closed the connection]
diegoviola has joined #ruby-lang
bzalasky has quit [Remote host closed the connection]
<realDAB>
bjrohan: there's also 'the well-grounded rubyist'
* realDAB
is its author
<realDAB>
but i still genuinely recommend it :-)
lutfidemirci has joined #ruby-lang
benanne has quit [Quit: kbai]
thmzlt has joined #ruby-lang
gcol has quit [Read error: Connection reset by peer]
gcol has joined #ruby-lang
<yorickpeterse>
whitequark: 240 stars for ruby-lint
<yorickpeterse>
I'm a Github star!
<yorickpeterse>
we're my internet money
<yorickpeterse>
* where is
<ericwood>
I wish I was that cool
<yorickpeterse>
ericwood: just get a t-shirt with the text "Turbolinks" on it
<ericwood>
oh awesome
<andrewvos>
Watch out for the flock of ladies yorickpeterse
<ericwood>
I'd be a hit at rails conferences
<yorickpeterse>
ericwood: literally
<ericwood>
:|
<bjrohan>
thanks clov3r and realDAB I am also working through Code Academy
gcol has quit [Ping timeout: 240 seconds]
kstuart has quit [Ping timeout: 245 seconds]
<yorickpeterse>
andrewvos: you should see me doing the groceries while wearing my Pry t-shirt
__butch__ has joined #ruby-lang
<ericwood>
oooh they make pry shirts?
<ericwood>
I'd wear that
<yorickpeterse>
which is actually funny because I can easily spend an hour trying to decide between two types of cheese
<Nilium>
Trust me, it's pretty fortunate that Ruby isn't lisp
<eam>
losing trust in you :)
<Nilium>
If it were, the community would be much smaller.
<eam>
hah
<Nilium>
And possibly much more pretentious.
<Nilium>
Though I guess at least it's not Haskell
grosscol has quit [Remote host closed the connection]
grosscol has joined #ruby-lang
Cakey has joined #ruby-lang
intellitech has quit [Ping timeout: 256 seconds]
hanmac has joined #ruby-lang
hanmac has left #ruby-lang [#ruby-lang]
rshetty has quit [Ping timeout: 268 seconds]
<eam>
it's still all much ado about a paren
<Nilium>
Alls I said was it was weird.
TheMonster has joined #ruby-lang
ezkl has joined #ruby-lang
saarinen has joined #ruby-lang
<eam>
at least I didn't write [Kernel.const_get "Foo"].first.send("methodname", args)
<TheMonster>
I need to parse a large mailing list archive(mbox format) using Ruby. I found only one gem called mbox-ruby but it's a bit slow when it comes to reading messages at the end of the file first... Do you know any better gem or solution to use for that?
grosscol has quit [Remote host closed the connection]
gcol has joined #ruby-lang
yxhuvud2 has joined #ruby-lang
Cakey has quit [Ping timeout: 256 seconds]
__butch__ has quit [Quit: Leaving.]
marr has quit [Ping timeout: 264 seconds]
yxhuvud has quit [Ping timeout: 264 seconds]
gregmore_ has joined #ruby-lang
mucker has quit [Quit: leaving]
gregmoreno has quit [Ping timeout: 246 seconds]
mbj has joined #ruby-lang
breakingthings has quit [Quit: breakingthings]
jaimef has quit [Excess Flood]
apeiros has joined #ruby-lang
breakingthings has joined #ruby-lang
rwilcox has joined #ruby-lang
rwilcox has quit [Client Quit]
rwilcox has joined #ruby-lang
<andrewvos>
Go really only has the for loop
<andrewvos>
?
arooni-mobile has joined #ruby-lang
<nikky>
TheMonster: The problem is that mbox files don't have any sort of indexing, so it pretty much has to scan the entire file to find one near the end. I suppose you could keep all of the messages in a RDBMS (or even a noSQL), and only use mbox-ruby to do the initial loading and subsequent incremental updates.
<Nilium>
Yes, but it's sort of an ambiguous loop.
<Nilium>
To andrewvos.
<Nilium>
It's worth keeping in mind that, for the most part, every other loop in C, for example, is basically just recreating a for loop. Exception is sort of do {} while(..)
yfeldblum has quit [Read error: Connection reset by peer]
<ericwood>
SOMEONE TELL ME THE ANSWER
yfeldblum has joined #ruby-lang
<yorickpeterse>
all 4 of them
<Robby_>
Can someone point me in the right direction to how I can set up a web host to run ruby apps?
<yorickpeterse>
but probably what it does is `(lvar :config) ||= (send :config)`
retro|cz has quit [Ping timeout: 245 seconds]
<daihuws>
Robby: Have you tried Heroku? You can run a basic app on there for free.
flip_digits has quit [Remote host closed the connection]
joeroot has joined #ruby-lang
_jpb_ has quit [Ping timeout: 256 seconds]
torrieri has quit [Quit: Leaving...]
gcol has quit [Remote host closed the connection]
_jpb_ has joined #ruby-lang
flip_digits has joined #ruby-lang
judofyr has joined #ruby-lang
<Robby_>
Hi daihuws, yes I'm currently playing around with heroku, but I eventually wanted to set up my own environment on a remote server, just because I like to know how it all works :)
nwjsmith has quit [Remote host closed the connection]
jbsan has quit [Quit: jbsan]
<judofyr>
yorickpeterse: I'm pretty sure that does (lvar :config) ||= (lvar :config), but yeah, he probably was aiming for (lvar :config) ||= (send :config)
<judofyr>
Robby_: Phusion Passenger is probably the easiest way
<judofyr>
Robby_: as for "knowing how it all works", it's not that complex. they start Rails/Rack with a server, and the proxy connections there
<daihuws>
Robby_ : Also much cheaper if you set it up yourself. :)
<judofyr>
daihuws: unless you can live on the free plan
<Robby_>
yeah haha, I'm looking to scale eventually and we can't afford most of the heroku options
<judofyr>
too bad Heroku removed Varnish from their stack
<Robby_>
but thanks for pointing out Phusion Passenger
elia has joined #ruby-lang
rickruby has quit [Remote host closed the connection]
<daihuws>
I know this is probably a stupidly open-ended question, but I've been looking for an open source Ruby project to contribute to; I'm still learning, so ideally something that a beginner can contribute something useful to. Been browsing random repos on GitHub, but not really seen anything that's grabbed me yet. Anywhere else I ought to be looking?
<whitequark>
daihuws: find a problem which bothers you, solve it.
marr has joined #ruby-lang
<Nilium>
What he said.
<judofyr>
if you can't find a problem: make a problem
<whitequark>
I have never seen "find an OSS project you like, contribute to it" effort to have any success.
<judofyr>
then solve that
<whitequark>
well, that's what computers are about
solars has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby-lang
<Nilium>
Or just reinvent a wheel.
<Nilium>
Sometimes it turns out it's not actually a wheel but a turkey that someone molded into a wheel.
<Nilium>
Reinventing wheels is fun. Sometimes the wheel sucks.
<Nilium>
Basically just do whatever the hell you want.
<yorickpeterse>
daihuws: what is a problem that currently bothers you and that could potentially be solved using Ruby?
<daihuws>
Well, yeah, I'm trying to make a point of using Ruby to solve everyday problems. I can't think of a good example off the top of my head; normally fairly mundane stuff to do with text formatting &c.
<Nilium>
The set of balls necessary to break up a fight between two animals, much less hurl a raccoon, is beyond me.
iliketurtles has quit [Quit: zzzzz…..]
<judofyr>
Nilium: but yeah: I like the game. actually, I often want to play more, but end up putting it down because I want more stuff to happen. e.g. now I just want my house!
<judofyr>
but no, I'll have to wait until tomorrow!
<Nilium>
Yeah, it usually pays to be patient in the game. Plus you don't really want to obsess over it, or you'll burn out on it really fast.
<judofyr>
and I managed to sell my net by mistake, so now I'll have to wait until tomorrow to buy a new one
<Nilium>
The other ACs were not the sort of game you'd play for long periods of time in a single day.
<judofyr>
yeah, I realize this is a quite long-term game
zmike123 has quit [Quit: ~]
<Nilium>
It's more like a chill-out-for-30-minutes sort of game
<judofyr>
yes
_jpb_ has quit [Ping timeout: 276 seconds]
elia has quit [Quit: Computer has gone to sleep.]
<judofyr>
toretore: no RSS though
speakingcode-wor has joined #ruby-lang
_jpb_ has joined #ruby-lang
<judofyr>
it is quite chill
realDAB has joined #ruby-lang
<Nilium>
Basically it's pokemon without the implied "and 64 hours later, we found him dead in a pool of spit and mountain dew"
jsullivandigs has quit [Remote host closed the connection]
<judofyr>
buying Super Mario 3D Land tomorrow
<Nilium>
Oh well, one of these days I'll get a 3DS
jsullivandigs has joined #ruby-lang
<Nilium>
Though if Nintendo puts out a new Metroid that isn't Other M, I will buy one instantly.
cored has quit [Ping timeout: 256 seconds]
<speakingcode-wor>
hmm what's the difference between this channel and #ruby?
arooni-mobile has joined #ruby-lang
<Nilium>
This is the official channel and #ruby is the one for wannabes.
<Nilium>
Aside from that, it's basically the same thing with different people.
<speakingcode-wor>
o
<judofyr>
Nilium: I think the 3D is superb and adds another dimension. although it's often a hit-or-miss depending on the sunlight, how you sit, etc. but when it works it feels like I'm peeking inside a window
cored has joined #ruby-lang
<Nilium>
I'm less concerned about that -- I might have to play with it disabled since other 3D stuff gives me a headache -- but I'd just like a handheld system that's got games that're fun.
<judofyr>
3DS is starting to look quite good
<judofyr>
you also have a huge selection of DS games
<Nilium>
And one with actual, physical controls, since playing games with virtual controls on my iPhone is unpleasant
<judofyr>
yeah
<Nilium>
I'm still not entirely sure how people put up with virtual thumbsticks and whatnot
<judofyr>
iPhone games are great, but I do miss a D-pad a lot
<judofyr>
or: I miss the games that have D-pads
<judofyr>
or, not D-pad
<speakingcode-wor>
surprised no one has come out with an iphone game controller attachment yet on kickstarter or something
<judofyr>
that's the left, top, right, bottom-thing right?
<Nilium>
There are plenty of good games, just not the ones that don't try to do their own thing with a touchscreen
<Nilium>
speakingcode-wor: They have.
<judofyr>
what do you call the thumbthingie?
<Nilium>
Analog stick
<judofyr>
yes
jsullivandigs has quit [Read error: Connection reset by peer]
<Nilium>
I think
<judofyr>
that thing
<speakingcode-wor>
joystick
jsullivandigs has joined #ruby-lang
<judofyr>
"An analog stick, sometimes called a control stick or thumbstick"
<Nilium>
Thumbstick, joystick, analog stick, all the same thing
<speakingcode-wor>
its only an analog stick if it's analog, i guess
<judofyr>
true
<judofyr>
isn't a joystick bigger?
<speakingcode-wor>
although i'm not sure how it would be digital
<speakingcode-wor>
whitequark: yes, it is sampled discretely when the signal is digitized via an ADC
<Nilium>
I think I'll try to play some of this new Counter-Strike game
_jpb_ has joined #ruby-lang
jsullivandigs has quit [Ping timeout: 240 seconds]
imperator2 has joined #ruby-lang
<speakingcode-wor>
what would happen if you were talking about a DS at the park or something, and random people just walked up and chimed in
<tubbo>
hey guys, having some trouble getting IRB to start from within an existing Ruby process
<judofyr>
Nilium: new CS?
<tubbo>
tried to do IRB.start but got `irb/magic-file.rb:7:in `initialize': No such file or directory - [] (Errno::ENOENT)`
<Nilium>
Counter-Strike: Global Offensive
<tubbo>
i just did IRB.start
<Nilium>
I'll try to find the steam thing for it
<judofyr>
Nilium: ah, right. it's not that new is it?
<judofyr>
tubbo: try ARGV.clear first
<Nilium>
Well, newest
<Nilium>
Was released the middle of last year
<judofyr>
tubbo: although I think there is another way to start IRB without clearing ARGV. but that's what I've always done.
<Nilium>
I played a couple rounds of it yesterday and it was pretty fun
mistym is now known as mistym_lunch
<Nilium>
Though after not playing competitive multiplayer games for years, I suck
<judofyr>
hey, you're probably still better than me
<speakingcode-wor>
thats why i don't game anymore
<speakingcode-wor>
takes too much dedication to even be able to hang in the arena
<judofyr>
I played causally for two weeks…
gcol has quit [Remote host closed the connection]
<judofyr>
speakingcode-wor: well, that's why I don't game competitive multiplayer game
gcol has joined #ruby-lang
<judofyr>
games*
jsullivandigs has joined #ruby-lang
<judofyr>
Nilium: so is CS:GO kinda between 1.6 and Source gameplay-wise?
<judofyr>
or not, gameplay, but how it feels to play it
JohnBat26 has quit [Read error: Connection reset by peer]
<Nilium>
I couldn't say anymore, but it feels a lot faster than CS:S though.
<speakingcode-wor>
i never did play source
<Nilium>
Granted I'm going off something like 6 year old memories here
<judofyr>
is 1.6 still big?
<tubbo>
judofyr: beautiful. thank you!
<Nilium>
I think it's still got players
<tubbo>
i hated source
<speakingcode-wor>
i quit playing cs around the time they took out bunny hopping and added in the riot shields n such for CTs
<tubbo>
CS:S looked good but it didn't play the right way
<tubbo>
1.6 is still the best :P
<judofyr>
tubbo: let me know if you find a better solution. I've always used ARGV.clear;IRB.start, but it feels hacky
<tubbo>
judofyr: it worked perfectly for me...i guess that's just what you need to do :\
<tubbo>
s/it/your soltuon
<Nilium>
Oh it's the tubbo
<Nilium>
I think I have you on the twitters.
<tubbo>
Nilium: oh noes!
<tubbo>
:D
<judofyr>
heh, this reminds me of Super Smash Bros: the competitive community liked Melee, then Brawl came out with much slower gameplay (it felt more floaty) and everyone hated it.
<judofyr>
now the new SSB coming out and it's rumored not be as floaty
<Nilium>
I think I also told you you were hellbanned from hackernews
<tubbo>
omfg
<tubbo>
melee
<tubbo>
Nilium: you might have. i've since created a different account. if you're hellbanned from HN, apparently, the site moves way slowe.r
<Nilium>
I never really had a problem with any of the Smash Bros games
<tubbo>
melee was just like, a whole year of my childhood
<Nilium>
I spent absurd amounts of time on the first one, not as much on the others because I stopped having friends.
<judofyr>
I think Sakurai explicitly made Brawl more for the casual players. he didn't like the competitive community.
<judofyr>
a few years ago I had one good friend that played SSB. we played quite a lot.
<judofyr>
now I don't have anyone to play with
<judofyr>
or a Wii for that matter
<Nilium>
I could sort of understand that. Smash Bros isn't really worth it as a competition thing.
<judofyr>
but maybe I'll get the 3DS version
<Nilium>
It's just a fun game where you accidentally make your friends go orbital.
vikhyat has left #ruby-lang [#ruby-lang]
<Nilium>
And then you laugh for several minutes.
<judofyr>
Nilium: "no items. fox only. final destination."
<judofyr>
that's the competitive community in a nutshell
<judofyr>
and tiers
<judofyr>
and discussions about tiers
<Nilium>
It's basically the polar opposite of Mario Kart and Mario Party, now that I think about it.
<judofyr>
and discussions about why tiers are lame
<Nilium>
I just don't get the whole competitive thing in the first place, so I have a hard time understanding it in the first place
<injekt>
can anyone simplify this https://gist.github.com/injekt/3e66cbdd042e40190966 I've been using some kind of hybrid Array(obj) with compact and all kinds of shit, but come to the realization it's just simpler doing it this way, but still intrigued
<whitequark>
injekt: ugh
* whitequark
slaps injekt around a bit with a large trout
<injekt>
yeah
<injekt>
I know
<whitequark>
any solution I may think of is even more horrible
<_tockitj>
therefore you are doing enterprise software :X
vlad_starkov has quit [Remote host closed the connection]
<Paradox>
it sure feels like it
<Paradox>
i could probably just skip rails and dump it into the database
<Paradox>
but then i'd have to play with sql and thats a whole nother rabbit hole
<ryanf>
Paradox: I think if you use parse! it removes all the parsed options, then you can just do whatever you want with the remaining unflagged params
<Paradox>
cool
<Paradox>
thanks ryanf
<ryanf>
np
anonymuse has quit [Remote host closed the connection]
anonymuse has joined #ruby-lang
enebo has quit [Quit: enebo]
apeiros has quit [Remote host closed the connection]
postmodern has joined #ruby-lang
apeiros has joined #ruby-lang
lutfidemirci has quit [Remote host closed the connection]
<Paradox>
i wish amazon would offer a postgres database
<Paradox>
tired of shelling out $50 for a heroku database when amazons have more cache for less cash
joshuawscott has quit [Quit: Leaving.]
<Paradox>
i'll look at openshift
ilyam has joined #ruby-lang
anonymuse has quit [Ping timeout: 264 seconds]
stamina has joined #ruby-lang
flip_digits has joined #ruby-lang
flip_digits has quit [Read error: Connection reset by peer]
flip_digits has joined #ruby-lang
mbull9 has joined #ruby-lang
torrieri has quit [Quit: Leaving...]
eugenejen has quit [Quit: eugenejen]
towski has joined #ruby-lang
mdedetrich has joined #ruby-lang
torrieri has joined #ruby-lang
netShadow has joined #ruby-lang
nathanstitt has joined #ruby-lang
stamina has quit [Ping timeout: 256 seconds]
tbuehlmann has quit [Remote host closed the connection]
zenspider is now known as zenspider_
zenspider_ is now known as zenspider
<zenspider>
_tockitj: I hope you're using that in production