<lagweezle>
"Wille Nelson is both Country and Rock Music" <-- that is the only thing you should see output normally.
<sukima>
exec("foreman start > log 2>&1") if fork == nil will kill the process if the user presses CTRL-C I don't want that.
charliesome has joined #ruby
<lagweezle>
irb is indeed giving you the result of everything that is run.
firefly20131 has quit [Ping timeout: 248 seconds]
<itadder>
ahh that is different then just ruby somecode.rb
<lagweezle>
very
<itadder>
ahh wow I just understand simple hash table
<lagweezle>
woot :)
<itadder>
and wrote my first program Holly cow
<itadder>
simple
Hanmac1 has quit [Ping timeout: 245 seconds]
<itadder>
why does sublime text auto completes some code but not all
gnephiak has joined #ruby
<itadder>
not code by things I am typing
<lagweezle>
It auto-compeltes things it has seen in your code.
meatherly has joined #ruby
<itadder>
for example #{inst_genere[:Outlaw].capitalize}
slowcon has joined #ruby
<itadder>
it won't autocomplete .capitalize
kennym_ has quit [Remote host closed the connection]
cgcardona_ has joined #ruby
<itadder>
not becuase I am lazy but becuase I suck at spelling
lmickh has quit [Remote host closed the connection]
<itadder>
because HEHEH
venkat_ has quit [Ping timeout: 260 seconds]
<lagweezle>
hehe
<itadder>
oh I see if it seen capitlize before it will start using it
<lagweezle>
Generally, yeah, that seems to be how it works.
<itadder>
but that part of the ruby lang, becuase it does other things like {} or []
sski has quit [Client Quit]
jonr22 has quit [Remote host closed the connection]
<lagweezle>
Yeah. It has a few things already in it's brain. I definitely don't understand the full rules.
<itadder>
so it not like a IDE that will tell me what choses I have. I know with Powershell ISE which I used in the past, that I have been able to use that
sski has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<itadder>
lagweezle: Ahh thanks lagweezle your the best :)
<itadder>
let me keep going
jonr22 has joined #ruby
<itadder>
10 more minutes and then I am done for today, I have to drive back home and work tomorrow.
angusiguess has joined #ruby
<itadder>
I think TOmorrow for the first time in a long time I will go to GYM first then Work
PistDov has joined #ruby
PistDov has left #ruby [#ruby]
<itadder>
Oh and I found under my bed my fitbit flex this device rules....
<itadder>
so lagweezle doing some examples and then making my own code from them is great way to learn right
meatherly has quit [Ping timeout: 265 seconds]
Columcille has quit [Quit: leaving]
jonr22 has quit [Read error: Operation timed out]
Kricir has joined #ruby
kennym has joined #ruby
kennym has joined #ruby
kennym has quit [Changing host]
speakingcode has joined #ruby
Sawbones has joined #ruby
shawnjgoff has quit [Ping timeout: 252 seconds]
jpinnix_ has quit [Ping timeout: 245 seconds]
meinside has quit [Ping timeout: 245 seconds]
Guest85414______ has quit [Ping timeout: 245 seconds]
raphaelivan1 has quit [Read error: No route to host]
tylersmith has quit [Remote host closed the connection]
pwh has joined #ruby
Sc0rp10n has quit [Quit: Leaving]
Sawbones has quit [Ping timeout: 260 seconds]
surtin has joined #ruby
tkuchiki has joined #ruby
surtin has quit [Client Quit]
Wolland has quit [Ping timeout: 264 seconds]
mikepack has joined #ruby
freezey has joined #ruby
robustus has quit [Ping timeout: 245 seconds]
freezey has quit [Read error: Connection reset by peer]
shadoi has quit [Quit: Leaving.]
freezey has joined #ruby
shadoi has joined #ruby
lukec has quit [Quit: lukec]
robustus has joined #ruby
korzybski has quit [Quit: korzybski]
<lagweezle>
A pretty good way, yeah. With programming, doing seems to be required, ultimately, to /actually/ understand any of it.
Sawbones has joined #ruby
<lagweezle>
The whole process will never end, but doing will get you there faster.
<lagweezle>
That only kind of makes sense the way I wrote it. .. :/
RoxasShadowRS has quit [Quit: Leaving]
Sawbones has quit [Remote host closed the connection]
venkat_ has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
mushky has joined #ruby
sdwrage has joined #ruby
Sawbones has joined #ruby
vlad_starkov has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
sukima has left #ruby [#ruby]
knigitz has joined #ruby
confounds has quit [Ping timeout: 265 seconds]
mocfive has quit [Remote host closed the connection]
lyanchih has joined #ruby
Shidash has quit [Ping timeout: 252 seconds]
mocfive has joined #ruby
necrotic_ has joined #ruby
necrotic_ has quit [Remote host closed the connection]
iliketur_ has quit [Quit: zzzzz…..]
gwz has joined #ruby
<gwz>
hey is it possible to get indexes of all max values in array
nfk has quit [Quit: yawn]
telling has quit [Ping timeout: 272 seconds]
Lewix has joined #ruby
mocfive has quit [Ping timeout: 245 seconds]
venkat_ has quit [Remote host closed the connection]
venkat_ has joined #ruby
burlyscudd has quit [Quit: Leaving.]
rootshift has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
Sawbones has quit [Remote host closed the connection]
marr has quit [Ping timeout: 265 seconds]
Sawbones has joined #ruby
<centrx>
gwz, It is possible, but there is probably a better way to do what you are doing overall
jcs222 has joined #ruby
recurrence has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
venkat_ has quit [Ping timeout: 245 seconds]
shadoi has quit [Quit: Leaving.]
Wolland has joined #ruby
mocfive has joined #ruby
* centrx
has noticed that Ruby 2.1 seems to be about 25% faster than Ruby 2.0
btanaka has joined #ruby
telling has joined #ruby
<RubyPanther>
gwz: what does that even mean?
jcs222 has quit [Quit: Page closed]
Wolland has quit [Read error: Connection reset by peer]
Wolland_ has joined #ruby
Sawbones has quit [Ping timeout: 240 seconds]
cmoylan has joined #ruby
Zunonia has quit [Ping timeout: 260 seconds]
SilentHobo has joined #ruby
slowcon has quit [Quit: slowcon]
jonah_k has quit [Remote host closed the connection]
snath has quit [Ping timeout: 245 seconds]
Zunonia has joined #ruby
Hobogrammer_ has quit [Ping timeout: 248 seconds]
itadder has quit [Remote host closed the connection]
hamakn has joined #ruby
dubsteph has joined #ruby
itadder has joined #ruby
trhodes_ has joined #ruby
[krisbulman] is now known as krisbulman
senayar has quit []
trhodes has quit [Ping timeout: 245 seconds]
tyl has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
andy has joined #ruby
wallerdev has joined #ruby
slowcon has joined #ruby
dkamioka has quit [Remote host closed the connection]
<gwz>
is there a reason why a ruby script wont work on linux but works fine on windows
<gwz>
i ahve added the /usr/bin/env ruby
dubsteph has quit [Ping timeout: 240 seconds]
itadder has quit [Ping timeout: 252 seconds]
<centrx>
Works for me
kenndel_ has quit [Read error: Connection reset by peer]
monkegjinni has joined #ruby
kenndel_ has joined #ruby
jonr22 has joined #ruby
sparrovv has quit [Remote host closed the connection]
koell has quit [Read error: Connection reset by peer]
danshultz has quit [Remote host closed the connection]
<pipework>
gwz: Why wouldn't it be possible?
meatherly has joined #ruby
<gwz>
well I have a progrma which worked fine on windows but when I took it to linux, its complaining about `block in <main>': undefined method `[]=' for nil:NilClass (NoMethodError) but when I give it the same input on windows, it works
btanaka has quit [Quit: Leaving]
<RubyPanther>
Throw a rubber chicken at your Saint Ignucius idol and try again
Kricir has joined #ruby
meatherly has quit [Read error: Connection reset by peer]
<RubyPanther>
If that fails, ponder: was your input really nil on windoze?
diegoviola has joined #ruby
meatherly has joined #ruby
<RubyPanther>
and were you really calling #[]= on it?
<gwz>
actually, I see that i have ; in arguments which makes it end prematurly on linux
vlad_starkov has quit [Ping timeout: 260 seconds]
<pipework>
gwz: So you're doing something wrong probably.
<gwz>
so argv[0] ends at the first ; instead of reading the whole string
monkegjinni has quit [Ping timeout: 265 seconds]
<pipework>
I can't really tell without code.
iliketurtles has joined #ruby
<RubyPanther>
You're generally expected to quote data arguments, only use bareword arguments where they are --options-that-follow="normal rules"
<gwz>
ahhh there we go
<gwz>
it was just the quotes
<gwz>
thanks
snath has joined #ruby
meatherly has quit [Ping timeout: 245 seconds]
chrisseaton has joined #ruby
tungd has joined #ruby
m00nlight has joined #ruby
LexicalScope has joined #ruby
geggam has joined #ruby
Mongey has joined #ruby
bklane has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
kristiandelay has quit [Ping timeout: 260 seconds]
funburn has joined #ruby
snuffeluffegus has joined #ruby
P1RATEZ has joined #ruby
snuffeluffegus has quit [Client Quit]
havenwood has joined #ruby
meatherly has joined #ruby
apeiros has quit [Remote host closed the connection]
sepp2k has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
<benzrf>
whoa
<centrx>
whoa
Wolland has joined #ruby
sailias has quit [Quit: Leaving.]
<benzrf>
sup
fijimunkii has quit [Ping timeout: 260 seconds]
<centrx>
I am going to show pipework why I won all those awards and certificates
<pipework>
centrx: You mix up channels a lot.
OrangejuiceJames has joined #ruby
<centrx>
It's one big happy channel!
Wolland has quit [Read error: Connection reset by peer]
<pipework>
k
SilentHobo is now known as Hobogrammer
chrisseaton has quit []
Wolland has joined #ruby
m104 has joined #ruby
subbyyy has joined #ruby
mikepack has joined #ruby
[gmi] has quit [Read error: Connection reset by peer]
sensen has joined #ruby
bklane has joined #ruby
maroloccio has quit [Quit: WeeChat 0.4.2]
lyanchih has quit [Quit: lyanchih]
mikepack has quit [Remote host closed the connection]
thomasxie has joined #ruby
Kricir has quit [Remote host closed the connection]
fgo has quit [Remote host closed the connection]
Sawbones has joined #ruby
lyanchih_ has joined #ruby
vlad_starkov has quit [Ping timeout: 240 seconds]
Erenzie has quit [Quit: Time for a true display of fail!]
reset has quit [Ping timeout: 260 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
sdwrage has joined #ruby
cgcardona_ has quit [Quit: cgcardona_]
marcdel has joined #ruby
Lewix has quit [Remote host closed the connection]
FScottFitzgerald has joined #ruby
Sawbones has quit [Remote host closed the connection]
Sthebig has quit [Remote host closed the connection]
Sawbones has joined #ruby
firewater has joined #ruby
Erenzie has joined #ruby
Sthebig has joined #ruby
jonr22 has quit [Remote host closed the connection]
bkparso has joined #ruby
FScottFitzgerald has quit [Client Quit]
marcdel has quit [Read error: Operation timed out]
marcdel has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
Hobogrammer has quit [Read error: Operation timed out]
kevinykchan has joined #ruby
danshultz has joined #ruby
bklane has quit [Quit: Leaving...]
Sawbones has quit [Ping timeout: 240 seconds]
P1RATEZ has quit []
mehlah has quit [Quit: Leaving...]
Sawbones has joined #ruby
Zunonia has quit [Quit: Computer has gone to sleep.]
<firewater>
why would I be getting an "unexpected '}' , expecting tASSOC"? All I'm doing is taking an input in a method, puting it in {} and setting that equal to the existing blank hash.
<firewater>
k, but when I just take the braces away, then it says it doesn't work.
<firewater>
I will try again, and tell you the error I get with that.
m00nlight has joined #ruby
<bnagy>
fuzz coding
<bnagy>
make random syntax changes until it runs
telling has joined #ruby
<firewater>
Ok, actually it seems to work.
<firewater>
Nevermind.
<firewater>
I'm doing those rspec puzzles.
subbyyy has quit [Ping timeout: 272 seconds]
fijimunkii has joined #ruby
<firewater>
So, its just something I am doing to learn. By making them pass.
Sawbones has quit [Remote host closed the connection]
<centrx>
If you don't know what is going on, you're not learning anything
<firewater>
I do know what is going on somewhat. But, no I'm not going to know everything 100%.
Sawbones has joined #ruby
<firewater>
If I could go back to school to do CS, I would.
<firewater>
I can't, so I am doing this outside work.
vlad_starkov has joined #ruby
<bnagy>
CS is not really about learning to program, at least not in an ideal world
<lpvn>
firewater, what's your job?
msmith has quit [Remote host closed the connection]
<bnagy>
it's about learning to think
<firewater>
I'm in finance right now.
andy has quit [Ping timeout: 240 seconds]
<firewater>
bnagy: I understand, one can make a lot of arguements about what CS is, but you do learn programming too in it.
burlyscudd has joined #ruby
msmith has joined #ruby
dkamioka has joined #ruby
<bnagy>
arguably
<bnagy>
mostly you get CS programming beaten out of you fairly swiftly
<bnagy>
but the thinking remains :P
subbyyy has joined #ruby
venkat_ has quit [Read error: Connection reset by peer]
Drogean2 has joined #ruby
mwillhite has joined #ruby
Drogean2 has left #ruby ["Leaving"]
Sawbones has quit [Ping timeout: 272 seconds]
venkat_ has joined #ruby
<mwillhite>
hey there - I'm working on a CLI app and I'd like to do something more than just puts to the screen…I'd like information that updates in place
__greg has joined #ruby
TheMoonMaster has joined #ruby
<mwillhite>
any pointers?
<benzrf>
sounds like you want curses!
dkamioka has quit [Remote host closed the connection]
<benzrf>
or something of that ilk
<bnagy>
except curses is vile
dkamioka has joined #ruby
<bnagy>
sadly, termbox is very bare bones, so it's tons of work to do anything nontrivial
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has quit [Remote host closed the connection]
<havenwood>
mwillhite: for super simple stuff you can use `"\r"` to backspace: 'OMGWTFBBQ'.chars { |char| print char; sleep 0.5; print ?\r }
<firewater>
Anyhow, going to head off now. Thanks for the help everyone.
<bnagy>
mwillhite: there are a ton of libs for "in between" apps, where you don't have to own the whole terminal
<mwillhite>
thanks havenwood thats a start
<mwillhite>
an example bnagy ?
<bnagy>
whose names I always forget :/ highline?
<mwillhite>
ah yeah…I was going to start with commander
<havenwood>
bnagy: ya
<bnagy>
if you google around you'll find several. Having a kind of REPL is a good option for a lot of stuff
<mwillhite>
which now brings highline it it looks like
sambao21 has joined #ruby
<mwillhite>
I just haven't found clear information on how to maintain one screen, I'm looking at building a simple dashboard
<bnagy>
honestly, I would rather write a full GUI app than use curses
<benzrf>
firewater: oh hey totally missed you
<bnagy>
but if you just want to blat stuff, then I have had good experiences with termbox
gtech_ has left #ruby [#ruby]
<firewater>
benzrf: Its ok, heading off anyhow.
<bnagy>
it's things like drop down menus and whatever that are a PITA to add to that, simple dividing up screen and refreshing is easy
Mousse_ has quit [Quit: Computer has gone to sleep.]
rismoney has quit [Ping timeout: 246 seconds]
<benzrf>
blat?
<bnagy>
send, push, output
<mwillhite>
this is just a peronal project that I don't intend to share…I'm sick of writing web UIs so I thought I'd go the console route :)
sambao21 has quit [Ping timeout: 272 seconds]
Mongey has joined #ruby
tylersmith has joined #ruby
Zunonia has joined #ruby
<stephenmac7>
So, I just read Why's Poignant Guide
<stephenmac7>
...and hated it
<benzrf>
D:
<benzrf>
noo
<stephenmac7>
Is there a good, fast way to... recover... from the incoherence in that book?
<mwillhite>
stephenmac7 you should definitely download the album then
sailias has joined #ruby
rismoney has joined #ruby
<stephenmac7>
mwillhite: ?
<benzrf>
stephenmac7: you clearly just don't like things that are good
<benzrf>
it's not incoherence, it is PLEASANT MADNESSS
<benzrf>
gosh!!
Sawbones has joined #ruby
<stephenmac7>
I tried to like it... I really did
<benzrf>
[but seriously that's fine, its def a matter of taste]
freezey has quit [Remote host closed the connection]
<benzrf>
[im just needling you]
Zunonia has quit [Ping timeout: 264 seconds]
<stephenmac7>
The problem is, I'm just more accustomed to books like LYAH (Learn you a Haskell), PIL (Programming in Lua), and K&R
papito_ has quit [Remote host closed the connection]
bahar has joined #ruby
<stephenmac7>
bnagy: Meaning, the idea, but not how it's useful
<benzrf>
stephenmac7: at any level you're going to run into patterns and repetition
<bnagy>
I mean the term is stupid, admittedly
mehlah has quit [Quit: Leaving...]
<benzrf>
at each level, you should be able to step up a level to generalize those patterns
<RubyPanther>
Like meta-physics, it is more often harmful than useful, and can be lived without entirely ;)
<centrx>
benzrf, The Python way is actually more of a hack because Python lacks modules
<stephenmac7>
I know it can write methods for you, but if you're writing a method to write a method, won't you just be writing the method with a wrapper method around it?
<benzrf>
stephenmac7: in manual processing, stepping up a level is writing programs
<benzrf>
stephenmac7: nope!
JBreit has quit [Read error: Connection reset by peer]
lyanchih_ has quit [Quit: lyanchih_]
thomasxie has quit [Read error: Connection reset by peer]
<bnagy>
stephenmac7: you'll know it when you see it :P
<RubyPanther>
Meta-programming is useful especially in prototyping, for example prototyping a bugfix from a REPL
<benzrf>
stephenmac7: because then the name of the method can be determined at runtime, and you can declare it on onther things
thomasxie has joined #ruby
<bnagy>
at some point runtime code generation is suddenly a good idea
<benzrf>
stephenmac7: one popular and terrible example:
<RubyPanther>
or for example, with duck-typing you might want to mixin additional behaviors at a later time
<bnagy>
for a very small class of problems
<benzrf>
stephenmac7: you can write a framework that looks at a database, examines what columns it has, and creates a class with method names corresponding to the columns
<stephenmac7>
So, it's basically Haskell Generics?
<benzrf>
stephenmac7: then the user's code can directly address columns by name as methods, even though your code doesn't know them at write-time
<benzrf>
not really no
<benzrf>
haskell generics fix a problem that can be fixed with metaprogramming in ruby i guess?
stonevil has joined #ruby
<benzrf>
stephenmac7: when you see a pattern in your work that you do manually, you generalize it with programming
joelroa has quit [Ping timeout: 245 seconds]
<stephenmac7>
benzrf: I see, but can't you just use index?
<benzrf>
stephenmac7: when you see a pattern in your programming, you generalize it with metaprogramming
freezey has quit [Ping timeout: 260 seconds]
<benzrf>
stephenmac7: well, you could!
<stephenmac7>
myreturnedobj['somecolumn']
<benzrf>
symbols in ruby probs
<stephenmac7>
myreturnedobj[:somecolumn]
<benzrf>
stephenmac7: but do you want to keep writing [:]
<benzrf>
;p
<stephenmac7>
:P
<stephenmac7>
That's not a good reason...
<benzrf>
but yeah that's probably a better solution
<benzrf>
i was just giving an example!
<RubyPanther>
When you're stuck in Dwemthy's Array, and you're just a rabbit... meta-programming is the only way you're ever going to slay that dragon and escape.
<stephenmac7>
RubyPanther: I see you didn't see my rant about the guide
<RubyPanther>
lol
<stephenmac7>
By the time I got to that section, my brain was toasted
vlad_starkov has joined #ruby
<stephenmac7>
Anyway, thanks. I have to go.
bahar has quit [Changing host]
bahar has joined #ruby
<benzrf>
alright, gl with ruby o:
<stephenmac7>
I'll come back with the results of my search for meaning ruby
<RubyPanther>
if you're not jumping up and down squealing like a little child at how awesome the Guide is by page 3, you should put it down and find a technical manual. ;)
<stephenmac7>
*in ruby
Steve445 has joined #ruby
<centrx>
Learn better by programming something
<stephenmac7>
RubyPanther: Why didn't anyone tell me this earlier?
<stephenmac7>
centrx: No, I like those terse, technical manuals
<RubyPanther>
stephenmac7: They assumed the cartoon foxes were a give-away
<bnagy>
stephenmac7: bindata is a good use of metaprogramming
<bnagy>
and DSLs
RyanV has joined #ruby
<RubyPanther>
Canonical is things like Enumerable
<stephenmac7>
RubyPanther: Yeah, I only realized I hated it in the middle
<stephenmac7>
Then I said, "I've already wasted so much time!"
<bahar>
hey guys anyone here have experience with parsing cURL commands and turning them into, say, a typhoeus command? i've been trying to do that, but it doesn't seem to be working, i must be missing something
<stephenmac7>
Must finish it
JBreit has joined #ruby
<stephenmac7>
What's with all these five-letter b---- names?
slowcon has quit [Quit: slowcon]
<stephenmac7>
benzrf, bnagy, and bahar
<RubyPanther>
we metaprogram because we don't have static interfaces, we just have interfaces-by-convention, so it is normal to add behaviors at a late enough time that it becomes "meta-programming." But most of the good uses are things you would just do at compile time in static languages, not any of the nonsense.
<bahar>
ah, it's our names :)
<stephenmac7>
RubyPanther: I see.
<stephenmac7>
So, it's what ruby uses to make up for what it doesn't have
<benzrf>
my name is literally Ben Z. R.F. irl
<benzrf>
most original name
<RubyPanther>
yeah, it saves us a lot of boilerplate, and lets us relax in the REPL
kevinykchan has quit [Ping timeout: 260 seconds]
kristiandelay has joined #ruby
<centrx>
Don't listen to RubyPanther. He is insane.
<RyanV>
hey, looking for a one liner that will will convert a url, that may or may not include a scheme, and spit out a uri with scheme included ('www.foo.com => ''http://www.foo.com'). maybe URI has something?
mehlah has joined #ruby
Hobogrammer has joined #ruby
<benzrf>
stephenmac7: ignore RubyPanther
<benzrf>
always
<RubyPanther>
I may be insane, but I'm also right twice a day.
<benzrf>
stephenmac7: RubyPanther literally things that fp is awful
<stephenmac7>
benzrf: Who could think FP is awful?
<RubyPanther>
I think what I actually said was something like, functional programming is not actually harmful, it just tastes awful.
<benzrf>
RubyPanther.
cmoylan has quit [Ping timeout: 245 seconds]
<benzrf>
stephenmac7: he also believes that your sql database should have no significant internal constraints and that all metadata should be handled by your program, btw also you should always use an ORM!!
<benzrf>
^insanity
<stephenmac7>
RubyPanther: FP feels clean
<stephenmac7>
Honestly, I don't like ORMs
<RubyPanther>
Nothing is cleaner than a nice polished set of parens
<stephenmac7>
*SQL
<centrx>
bahar, You are parsing it command-line options from a different program?
slowcon has joined #ruby
gwz has quit [Quit: Page closed]
<bahar>
centrx: from an example i found online
<benzrf>
stephenmac7: it has ubiquitous lambdas
<RubyPanther>
I use emacs, so even I can suffer a small amount of FP, especially if it is hidden from view
<benzrf>
:I
<bahar>
i think where i'm going wrong lies here in this part of the body (at least i think it's the body): \"1\":\
<RubyPanther>
Ruby is not functional, but it permits a functional style
zastern has joined #ruby
<stephenmac7>
Ruby is about as functional as Java
m104 has quit [Quit: bye]
<RubyPanther>
You will not be executed for dressing funny in Ruby. That is obvious from the ruby slippers, though.
<stephenmac7>
benzrf: By the way, how does wikipedia claim that ruby is functional?
nanoyak has joined #ruby
Steve445 has quit [Quit: Steve445]
stonevil has quit [Quit: Computer has gone to sleep.]
msmith has quit [Remote host closed the connection]
kristiandelay has quit [Read error: Operation timed out]
<benzrf>
that's more functional than python anyway
w1zeman1p has joined #ruby
<centrx>
Does Java have blocks?
<benzrf>
heck no
<bnagy>
RyanV: if it doesn't have a scheme it doesn't have one
<stephenmac7>
benzrf: Python has lambdas, partial application, and first-class functions
<centrx>
Ruby seems much more functional than Java
<stephenmac7>
centrx: That was a slight exaggeration
maroloccio has joined #ruby
drPoggs has quit [Ping timeout: 252 seconds]
<bnagy>
RyanV: you can do sc = parsed_uri.scheme || 'http' or something
<benzrf>
stephenmac7: yes, but they aren't idiomatic or commonplace
drPoggs has joined #ruby
<benzrf>
stephenmac7: the extent of fcf usage in python is pretty much just for callbacks
<stephenmac7>
Decorators are also a functional feature
<RubyPanther>
>> u = URI.parse('www.google.com'); u.relative?
<eval-in>
RubyPanther => uninitialized constant URI (NameError) ... (https://eval.in/102562)
<RubyPanther>
so if you parse the hostname as the url, it thinks that is a relative url, and then you add the scheme and it just is a little confused, but blindly trusts you
<RubyPanther>
>>require 'uri'; u = URI.parse('www.google.com'); u.relative?
jobewan has quit [Remote host closed the connection]
Jakee`_ has joined #ruby
mloveless has joined #ruby
17SAAGOOT has joined #ruby
Jakee`_ is now known as Jakee`
tcopp has quit [Ping timeout: 240 seconds]
freezey has joined #ruby
Jakee` has quit [Changing host]
Jakee` has joined #ruby
rndstr has joined #ruby
rndstr has quit [Changing host]
rndstr has joined #ruby
jeregrine has quit [Ping timeout: 252 seconds]
freezey has quit [Ping timeout: 245 seconds]
JasmeetQA has joined #ruby
sensen has joined #ruby
jeregrine has joined #ruby
mikepack has joined #ruby
vlad_starkov has joined #ruby
SirCmpwn is now known as SirCmpwn_
yasushi has quit [Remote host closed the connection]
burlyscudd has joined #ruby
Sawbones_ has quit [Remote host closed the connection]
SirCmpwn_ is now known as SirCmpwn
Sawbones has joined #ruby
IceDragon has quit [Ping timeout: 252 seconds]
mweshi has joined #ruby
17SAAGOOT is now known as speakingcode
Aquilo has left #ruby [#ruby]
<AlexRussia>
centrx: you dont know, how to limit values, returned sqlite?
burlyscudd has quit [Client Quit]
iliketur_ has joined #ruby
<AlexRussia>
centrx: for example, i have get not > 5 elements, how to do?
<centrx>
add "LIMIT 5" to the end of your query
<AlexRussia>
centrx: Thanks
Sawbones has quit [Ping timeout: 265 seconds]
noop has joined #ruby
sailias has quit [Read error: Operation timed out]
<AlexRussia>
centrx: hm, a possible select like 5< x <15 values?
<AlexRussia>
centrx: range values
<centrx>
LIMIT 10 OFFSET 5
pskosinski has joined #ruby
iliketurtles has quit [Ping timeout: 260 seconds]
<AlexRussia>
centrx: offset is where starter count limit?
<AlexRussia>
start*
<centrx>
yes
<AlexRussia>
centrx: your help great for me ;)
Synthead has joined #ruby
duffyt has left #ruby [#ruby]
stonevil has joined #ruby
bobdobbs has joined #ruby
sensen_ has joined #ruby
JohnBat26 has joined #ruby
sensen has quit [Ping timeout: 252 seconds]
SirCmpwn is now known as SirAway
<RubyPanther>
it says it has REGEXP but not regexp()
<AlexRussia>
RubyPanther: ?
Tobarja has quit [Ping timeout: 272 seconds]
Guest81327 has joined #ruby
<RubyPanther>
'The REGEXP operator is a special syntax for the regexp() user function. No regexp() user function is defined by default and so use of the REGEXP operator will normally result in an error message. If an application-defined SQL function named "regexp" is added at run-time, then the "X REGEXP Y" operator will be implemented as a call to "regexp(Y,X)".'
<RubyPanther>
it has the operator but not the function
<Guest81327>
is it possible to run website with ruby inplace of php-WAMP?
<Guest81327>
RubyPanther: i guess there may be some limits
stonevil has quit [Ping timeout: 272 seconds]
<RubyPanther>
Yeah, like multiple inheritance. But that is awful anyways, and not needed.
<centrx>
Mixins are like multiple inheritance
<centrx>
A better implementation of multiple inheritance
<RubyPanther>
For some values of "like," sure!
mikepack has quit [Remote host closed the connection]
<Guest81327>
is it possible to run/import ruby code containing modules(like nokogiri) in the online/webbased browser environment at free?
Es0teric has quit [Quit: Nigga, im OUTIE 5000]
<Guest81327>
which woudl be those sites?
root_empire has joined #ruby
tgkokk has joined #ruby
w1zeman1p has quit [Remote host closed the connection]
gtech_ has joined #ruby
Shidash has joined #ruby
phansch has joined #ruby
<gtech_>
I'm using the au3 gem in windows and when I try WIN32OLE.new "AutoItX3.Control" it tells me it fails to create the object "WIN32OLERuntimeError" any ideas?
<centrx>
Win32 OLE Runtime Error!
<centrx>
awful
<centrx>
Guest81327, I am not sure what you mean. Ruby does not run inside a the web browser. Neither does PHP.
<bnagy>
gtech_: probably can't create the com object
<bnagy>
check that autoit is installed correctly and that it works with not-ruby
<Guest81327>
centrx: there are also many other online compilers
<Guest81327>
centrx: but they cant import libaries/modules/package like nokogiri
<AlexRussia>
dammit, my sequel eval dont work db[:posts].where(:msg.like('%@'+name+'%')).limit(10)
<Guest81327>
centrx: hence i am looking for a solution (of course without local set up)
<gtech_>
bnagy: trying 64 bit native tools instead, if this doesn't work I'll try to get ffi working heh
<bnagy>
gtech_: from memory you just want to send keys to a window, right?
<bnagy>
that's annoying but doable with pure ffi and the native api
<gtech_>
bnagy: yup yup, au3 was a convenient wrapper for SentInput, that's why I'm using it
<gtech_>
SendInput*
<bnagy>
check dan berger's gems, also
<centrx>
Guest81327, I assume that sends the code to the server and processes it there
<centrx>
Guest81327, What exactly are you trying to do?
<bnagy>
I am pretty sure there's an ffi project already started for cimple input sending as well, just can't remember
<centrx>
Guest81327, That site is just for testing out code, not for real use
<bnagy>
the ffi wiki might have links though
<Guest81327>
centrx: i want to run/execute/compile a ruby code which requires support/import of libaries
<Guest81327>
if i visit some ruby sites/blogs there are some code snippets posted
<centrx>
Guest81327, Install Ruby on your computer
<Guest81327>
& hence i want to try & see what would be its output after compiling?
<Guest81327>
there mustbe alternate
Hobogrammer_ has joined #ruby
aniM has joined #ruby
<centrx>
Guest81327, Do you not have a computer or something?
sparrovv has joined #ruby
monkegjinni has joined #ruby
<Guest81327>
centrx: it doenst matter; but i guess there must be some way out in today's advance technlogy/internet world
Hobogrammer has quit [Ping timeout: 265 seconds]
<centrx>
Guest81327, You could use a cloud service
<Guest81327>
centrx: yeah that is an option; which one is free?
<centrx>
Guest81327, Otherwise, a site is not going to want you to import all sorts of extra code
hobodave has joined #ruby
joelroa has joined #ruby
<bnagy>
does aws still offer a micro instance for free?
slowcon has joined #ruby
<Guest81327>
centrx: amazon ec2 requires credit card info whihc i dont want to open.
<Guest81327>
centrx: do you use any other clouds?
<bnagy>
ok this is getting ridiculous
<centrx>
It is like he doesn't have a computer
JasmeetQA has quit [Quit: Leaving.]
<centrx>
Yet he is on IRC
<pipework>
what is a computer
<Guest81327>
centrx: if my query is inappropriate; i would stop further discussion
JasmeetQA has joined #ruby
<pipework>
Guest81327: the cloud I use tends to get me all soggy if I play with it too much
vlad_starkov has quit [Ping timeout: 272 seconds]
<Guest81327>
pipework: my requirement with cloud is not fast.
rippa has joined #ruby
<Guest81327>
pipework: which clouds you use for ruby?
SirAway is now known as SirCmpmn
sparrovv has quit [Ping timeout: 264 seconds]
<pipework>
Guest81327: the kinds you find meteorologists speaking about.
monkegjinni has quit [Ping timeout: 260 seconds]
tgkokk has quit [Ping timeout: 260 seconds]
root_empire has quit [Quit: Ex-Chat]
joelroa has quit [Ping timeout: 265 seconds]
<pipework>
I don't know of any free 'clouds' that don't require some credit card to use that are worth my time. I 1) Have multiple bitchin' machines, 2) Use a handful of service providers, and 3) don't look for free services all that often.
axl_ has joined #ruby
<pipework>
Your best bet that might require a credit card is to use heroku's free tier.
<pipework>
Maybe amazon's free tier for a year doesn't require a card?
zcreative has joined #ruby
ringaroses has quit [Ping timeout: 252 seconds]
<Guest81327>
pipework: amazon requires CC
<bobdobbs>
If I do 'rails new demo', I get an error with a huge list of uninstalled deps. Rather then installing each gem one-by-one, is there a single command that can install all rails deps?
<pipework>
bobdobbs: ever hear of bundler? You just `bundle`
Aryasam_ has joined #ruby
<bobdobbs>
doesn't that require a gemfile?
<centrx>
bundle install
<pipework>
centrx: install is unnecessary
<centrx>
If you ran rails new, there is a Gemfile
<bobdobbs>
ah, ok
<pipework>
bobdobbs: If you made a new rails app, doesn't that come with one?
Solnse has quit [Quit: Leaving.]
AlexRussia has quit [Ping timeout: 264 seconds]
aniM has quit [Ping timeout: 265 seconds]
v0n has quit [Ping timeout: 264 seconds]
Aryasam has quit [Ping timeout: 272 seconds]
SirCmpmn is now known as SirCmpwn
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<bobdobbs>
The book I'm working with seems to say that 'rails new demo' is the first command in creating an app called demo. But that command errors out with a list of deps. No, it doesn't create a gemfile, even if I run the command without a name for the app. ie, 'rails new'
<pipework>
bobdobbs: are you sure you followed their directions and used the same version of rails they're using?
<bobdobbs>
Yes, following the books directions. I guess that versioning could be issue.
<pipework>
bobdobbs: I'd be more able to help if you gisted the output and the command you used.
slowcon has quit [Quit: slowcon]
<bobdobbs>
ok...
<bnagy>
bobdobbs: btw there's also #rubyonrails for rails specific help
jwang has quit [Read error: Connection reset by peer]
<benzrf>
@@vars are scoped lexically to class blocks right?
JasmeetQA has quit [Ping timeout: 240 seconds]
jzig has joined #ruby
<benzrf>
or rather, @@vars are scoped to class objects, but lookup is scoped lexically
<benzrf>
or something
<pipework>
bobdobbs: You might also want to use a better ruby than your package manager ruby.
<pipework>
bobdobbs: I would suggest looking into ruby-install and chruby for a development environment.
<bobdobbs>
not an option, I'm afraid. I have to match an environment that I'll be working with
Guest81327 has left #ruby [#ruby]
<pipework>
Unfortunately then you'll have to wait for someone far more patient than I. If you're stuck using a broken ruby package, I'll have my warrior clan pray your soul makes it to Valhalla safely.
toasty has joined #ruby
* bobdobbs
kills finest goat, burns as offering to norns
<bobdobbs>
pipework: how do we know that we have brokenness?
<pipework>
bobdobbs: The distro repository package for ruby is packaged wrong.
MattStratton has joined #ruby
Hobogrammer_ has quit [Ping timeout: 272 seconds]
<bobdobbs>
oh crap. I just noticed that that error is coming from system ruby, not my rbenv ruby.
jzig has quit [Ping timeout: 260 seconds]
<bobdobbs>
I thought I'd completely removed system ruby. I think I have the system ruby that will not die.
<bobdobbs>
zombie ruby
tcopp has joined #ruby
<pipework>
Feed me, seymour.
* bobdobbs
feeds killer alien plant
fijimunkii has joined #ruby
endash_ has quit [Quit: endash_]
dingus_khan has joined #ruby
pierre1_ has joined #ruby
newleaf has quit [Remote host closed the connection]
toasty has quit [Remote host closed the connection]
freezey has joined #ruby
tcopp has quit [Ping timeout: 240 seconds]
mengu has joined #ruby
rubyracer has quit [Quit: Konversation terminated!]
<bobdobbs>
looks like installing the deps one-by-one works. kinda tedious thouhg
<centrx>
Use bundler
JasmeetQA has joined #ruby
JasmeetQA1 has quit [Ping timeout: 265 seconds]
fgo has joined #ruby
freezey has quit [Ping timeout: 245 seconds]
Vivekananda has quit [Remote host closed the connection]
Xiti has quit [Quit: Leaving]
vlad_starkov has joined #ruby
fgo has quit [Client Quit]
Xiti has joined #ruby
pwh has quit []
jzig has joined #ruby
OrangejuiceJames has quit [Remote host closed the connection]
<pipework>
Use bundler
guilleiguaran has quit [Ping timeout: 245 seconds]
pallavi_ has quit [Ping timeout: 245 seconds]
randym_ has quit [Ping timeout: 245 seconds]
cbetta has quit [Ping timeout: 272 seconds]
yacks has joined #ruby
makara has quit [Quit: Leaving]
pallavi_ has joined #ruby
randym_ has joined #ruby
guilleiguaran has joined #ruby
makara has joined #ruby
cbetta has joined #ruby
jzig has quit [Ping timeout: 252 seconds]
kenndel_ has quit [Read error: Connection reset by peer]
aniM has joined #ruby
<bobdobbs>
so bundler requires a cofig file, with the names of the deps, right?
kenndel_ has joined #ruby
<lagweezle>
Sort of.
shawnjgoff has quit [Ping timeout: 265 seconds]
<pipework>
bobdobbs: A Gemfile
<pipework>
That comes with your rails application when you generate it.
<bobdobbs>
but thats the issue: I can't generate a rails app with the deps
<pipework>
bobdobbs: if you install the rails gem, it installs the deps.
mloveless has quit [Remote host closed the connection]
<bobdobbs>
huh
axl_ has quit [Quit: axl_]
<bobdobbs>
somehow I've been able to install rails without without having the deps installed
yasushi has joined #ruby
<bnagy>
#rubyonrails
OdNairy has joined #ruby
petey has joined #ruby
stonevil has joined #ruby
_tpavel has joined #ruby
yasushi has quit [Ping timeout: 252 seconds]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
axl_ has joined #ruby
tcopp has joined #ruby
mweshi has quit [Quit: mweshi]
george2 has quit [Quit: No Ping reply in 180 seconds.]
petey has quit [Ping timeout: 252 seconds]
george2 has joined #ruby
xcv has joined #ruby
stonevil has quit [Ping timeout: 265 seconds]
tagrudev has joined #ruby
tonni has quit [Remote host closed the connection]
heftig has quit [Quit: Quitting]
tvw has joined #ruby
pierre1_ has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
tcopp has quit [Ping timeout: 265 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Astralum has joined #ruby
Aryasam_ has quit [Ping timeout: 252 seconds]
failshel_ has joined #ruby
Iravan has joined #ruby
decoponio has joined #ruby
ayaz has joined #ruby
tylersmith has quit [Remote host closed the connection]
tylersmith has joined #ruby
joelroa has joined #ruby
axl_ has quit [Quit: axl_]
vlad_starkov has quit [Ping timeout: 265 seconds]
b00stfr3ak has quit [Read error: Operation timed out]
xcv has quit [Remote host closed the connection]
earthquake has quit [Quit: earthquake]
Aryasam has joined #ruby
funburn has quit [Quit: funburn]
joelroa has quit [Ping timeout: 248 seconds]
tylersmith has quit [Ping timeout: 265 seconds]
tonni has joined #ruby
Hobogrammer_ has joined #ruby
Aryasam has quit [Ping timeout: 260 seconds]
toasty has joined #ruby
subbyyy has quit [Ping timeout: 265 seconds]
sdwrage has quit [Quit: This computer has gone to sleep]
Vivekananda has joined #ruby
mdpatrick_ has quit [Ping timeout: 245 seconds]
vongrippen has quit [Ping timeout: 245 seconds]
failshel_ has quit [Remote host closed the connection]
CaptainJet has quit []
agjacome has joined #ruby
sdwrage has joined #ruby
Mon_Ouie has quit [Read error: Operation timed out]
cheeti has joined #ruby
subbyyy has joined #ruby
cheeti has quit [Client Quit]
cheeti has joined #ruby
cheeti has quit [Client Quit]
aniM has quit [Ping timeout: 265 seconds]
JasmeetQA1 has joined #ruby
toasty has quit [Remote host closed the connection]
MattStratton has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
aniM has joined #ruby
oso96_2000 is now known as oso|away
kevinykchan has joined #ruby
freezey has joined #ruby
kobain has quit [Ping timeout: 252 seconds]
JasmeetQA has quit [Ping timeout: 260 seconds]
joelroa has joined #ruby
kobain has joined #ruby
fgo has joined #ruby
freezey has quit [Read error: Operation timed out]
subbyyy has quit [Ping timeout: 272 seconds]
vlad_starkov has joined #ruby
Aryasam has joined #ruby
amclain has quit [Quit: Leaving]
<shevy>
does one of you guys knows if I could use readline on ruby on windows?
joelroa has quit [Ping timeout: 265 seconds]
<shevy>
I can not test here at home because I have only linux :(
<benzrf>
woop woop
<benzrf>
i wrote a simple minimal macro thing w/ polyglot and stuff
<artmann_>
Hi, I'm using an offical python lib to parse some game data and I would like to build the rest of my solution using ruby. In one instance I get the following output https://gist.github.com/Artmann/0b1a0382e94a6d4272e5
<artmann_>
Is there any easy way to convert this string to a ruby array or object?
DaniG2k has quit [Quit: leaving]
yalue has joined #ruby
v0n has joined #ruby
[krisbulman] is now known as krisbulman
cmoylan has quit [Ping timeout: 245 seconds]
aryaching has joined #ruby
<toretore>
artmann_: what format is it?
<artmann_>
Some kind of python array/struct
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<toretore>
and you can't get it to output a different format?
<artmann_>
doesn't seem that way
<toretore>
i would write a python script to convert it to something like json
tkuchiki has joined #ruby
tibounise has joined #ruby
<artmann_>
that's a great idea
<toretore>
parsing that in ruby means parsing python, which is probably not very easy
joelroa has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<tibounise>
Hello !
<artmann_>
Thanks matey
arctaruz has quit [Read error: Operation timed out]
<vasilakisFiL>
hey guys/girls.. I have a class which has 4 or 5 inner (nested) classes.. all of them (and the outer) use 3 external modules which has some nice util classes.. How can I avoid including the 3 modules in EACH class ?
banister has joined #ruby
dblessing has joined #ruby
rmorello has joined #ruby
nateberkopec has joined #ruby
tgkokk has joined #ruby
vlad_starkov has quit [Ping timeout: 260 seconds]
slowcon has joined #ruby
ndrei has quit [Ping timeout: 245 seconds]
danshultz has quit [Remote host closed the connection]
<wuest>
vasilakisFiL: Let the classes inherit from a common class which includes the modules or include a module which includes the modules.
slowcon has quit [Client Quit]
danshultz has joined #ruby
tonni has joined #ruby
jkamenik has joined #ruby
ndrei has joined #ruby
phutch1ns has joined #ruby
bjorkintosh has joined #ruby
bjorkintosh has left #ruby ["Leaving"]
toretore has quit [Ping timeout: 265 seconds]
axl_ has joined #ruby
tibounise has quit [Quit: WeeChat 0.4.2]
<vasilakisFiL>
nice! I like the better first idea
<vasilakisFiL>
thanks :)
<wuest>
Each has its place :) Happy to help!
Salve has joined #ruby
gja has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
nism has quit [Quit: Leaving]
danshultz has quit [Ping timeout: 260 seconds]
ndrei has quit [Ping timeout: 265 seconds]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gja has quit [Client Quit]
ctp has quit [Quit: Leaving...]
claymore has quit [Read error: Operation timed out]
sailias has joined #ruby
krz has joined #ruby
ffranz has joined #ruby
pico-pete has quit []
mark_locklear has quit [Ping timeout: 272 seconds]
DanBoy has quit [Remote host closed the connection]
heftig has quit [Remote host closed the connection]
DanBoy has joined #ruby
RaCx has joined #ruby
MattStratton has joined #ruby
heftig has joined #ruby
popl has quit [Quit: Touch the frog.]
<pontiki>
"sprungeus"?
mark_locklear has joined #ruby
raphaelivan has quit [Quit: Leaving.]
<wuest>
glen: parens.
<wuest>
pontiki: it's Yet Another Pastebin
RaCx has quit [Client Quit]
* pontiki
wonders if there's a domain free
<wuest>
glen: your call to .map is applying to the array to which you have it attached, rather than the result of concat. The error message it gave you (saying the problem was in the call to Array#concat) was your hint there.
andy___ has joined #ruby
pico-pete has joined #ruby
andy___ is now known as Guest93894
RaCx has joined #ruby
Vivekananda has quit [Read error: Connection reset by peer]
maroloccio has joined #ruby
platzhirsch has joined #ruby
<platzhirsch>
Hello dear laid back Rubyists
tgkokk has quit [Quit: WeeChat 0.4.4-dev]
tgkokk has joined #ruby
kindjal has joined #ruby
mlpinit has joined #ruby
camilasan has quit [Remote host closed the connection]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teenwolf has joined #ruby
bandsaw1961 has joined #ruby
razibog has joined #ruby
sambao21 has joined #ruby
gja has joined #ruby
Vivekananda has joined #ruby
ndrei has joined #ruby
tonni has quit [Read error: Connection reset by peer]
joelroa has quit [Read error: Operation timed out]
monkegji_ has joined #ruby
gja has quit [Client Quit]
tkuchiki has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 272 seconds]
zarul has joined #ruby
Mousse_ has joined #ruby
kevinykchan has quit [Quit: Computer has gone to sleep.]
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
ecualombian has joined #ruby
shaunbaker has quit [Remote host closed the connection]
zachallett has joined #ruby
jerius has joined #ruby
yarou has joined #ruby
asmodlol has quit [Remote host closed the connection]
msmith has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
__greg has joined #ruby
ace_striker has joined #ruby
ace_striker is now known as Guest77714
axl_ has quit [Quit: axl_]
vongrippen has joined #ruby
kristiandelay has joined #ruby
joonty has joined #ruby
ndrei has quit [Ping timeout: 260 seconds]
jzig has joined #ruby
tonni has joined #ruby
mjs2600 has joined #ruby
razibog has quit [Read error: Connection reset by peer]
mengu has quit [Remote host closed the connection]
kcombs has joined #ruby
ndrei has joined #ruby
srji_ has quit [Quit: leaving]
<glen>
wuest: i do want to iterate the %[] and .map to transform (add prefixes) and then .concat to first array
chipotle_ is now known as chipotle
Guest93894 has quit [Remote host closed the connection]
srji has joined #ruby
bandsaw1961 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
arctaruz has joined #ruby
DanBoy has quit [Ping timeout: 240 seconds]
popl has joined #ruby
popl has joined #ruby
popl has quit [Changing host]
_maes_ has joined #ruby
DanBoy has joined #ruby
jzig has quit [Ping timeout: 245 seconds]
<workmad3>
glen: wuest's point is that you've done 'ldap_packages.concat(%w[horde samba courier rfc2739 sudo openssh-lpk eaps].map) do ..., rather than your intended 'ldap_packages.concat(%w[horde samba courier rfc2739 sudo openssh-lpk eaps].map do ... end)'
<wuest>
glen: parens are still the answer :) Or, for the sake of readability, breaking your code into map, then concat on its own line.
tgkokk has quit [Ping timeout: 265 seconds]
mengu has joined #ruby
v0n has joined #ruby
<wuest>
Remember that Enumerator#map => Enumerator
popl has quit [Client Quit]
lkba has quit [Ping timeout: 248 seconds]
<glen>
oh, i just changed %[].map { big_array << "...item" }
devdazed has joined #ruby
tgkokk has joined #ruby
<wuest>
It's really tempting to avoid parens because they're "not needed" in ruby. Doing so is a bad habit to get into :)
shaunbaker has joined #ruby
zeeraw has joined #ruby
[gmi] has quit [Ping timeout: 252 seconds]
shaunbak_ has joined #ruby
kitak_ has quit [Remote host closed the connection]
kitak_ has joined #ruby
21WACDZM4 has joined #ruby
msuszczy has quit [Remote host closed the connection]
21WACDZM4 has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
andy___ has joined #ruby
RaCx_ has joined #ruby
RaCx has quit [Read error: Connection reset by peer]
RaCx_ is now known as RaCx
andy___ is now known as Guest95094
banister has joined #ruby
wallerdev has quit [Quit: wallerdev]
sski has quit [Remote host closed the connection]
tonni has quit [Ping timeout: 265 seconds]
sambao21 has joined #ruby
sski has joined #ruby
shaunbaker has quit [Ping timeout: 245 seconds]
kindjal has quit [Quit: Computer has gone to sleep.]
shawnjgoff has quit [Ping timeout: 264 seconds]
<platzhirsch>
wuest: yeah, it's cool when you start with Ruby, feels like you are the wildest programmer ever, but this fades :D
burlyscudd has joined #ruby
<certainty>
we fade to grey
<wuest>
platzhirsch: yeah. The spectre of maintainability looms :)
monkegji_ has quit [Remote host closed the connection]
johnmilton has joined #ruby
toretore has quit [Read error: No route to host]
newleaf has quit [Ping timeout: 252 seconds]
dawkirst has quit [Read error: Connection timed out]
slowcon has joined #ruby
sski has quit [Ping timeout: 241 seconds]
hackeron has quit [Remote host closed the connection]
<slowcon>
morning guys
[gmi] has joined #ruby
<platzhirsch>
slowcon: timezone?
chipotle has quit [Quit: cya]
<slowcon>
USA - EST
chipotle has joined #ruby
chipotle has quit [Client Quit]
<wuest>
hola slowcon
<slowcon>
brb, restart
slowcon has quit [Client Quit]
hackeron has joined #ruby
chipotle has joined #ruby
davedev24 has joined #ruby
davedev24 has quit [Read error: Connection reset by peer]
tonni has joined #ruby
davedev24 has joined #ruby
maletor has joined #ruby
davedev24 is now known as newleaf
chipotle_ has joined #ruby
razibog has joined #ruby
cmoylan has joined #ruby
deadlock has joined #ruby
momomomomo has joined #ruby
tungd has joined #ruby
dawkirst has joined #ruby
eka has joined #ruby
chipotle has quit [Ping timeout: 252 seconds]
pudidis has quit [Quit: pudidis]
failshell has quit []
endash_ has quit [Quit: endash_]
dkamioka has joined #ruby
meatherly has joined #ruby
coderdad_ has joined #ruby
pudidis has joined #ruby
petey_ has joined #ruby
breakingthings has quit []
breakingthings has joined #ruby
vlad_starkov has joined #ruby
tonni has quit [Ping timeout: 265 seconds]
camilasan has joined #ruby
mary5030 has joined #ruby
slowcon has joined #ruby
coderdad_ has quit []
Guest77714 has quit [Ping timeout: 245 seconds]
coderdad has joined #ruby
danshultz has joined #ruby
eddpeterson has quit [Ping timeout: 245 seconds]
aniM has quit [Remote host closed the connection]
pudidis has quit [Client Quit]
<platzhirsch>
slowcon: I figured, but wasn't sure, maybe you are PST and just got early on the computer :]
ghr has joined #ruby
ghr has quit [Max SendQ exceeded]
kevinykchan has joined #ruby
pu22l3r has quit [Remote host closed the connection]
<wuest>
It's not THAT early in PST. 07:00 is prime hacking time.
pu22l3r has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
tonni has joined #ruby
Matriks has quit [Read error: Connection reset by peer]
dblessing has quit [Read error: Connection reset by peer]
<LadyRainicorn>
Timezones are weird.
dblessing has joined #ruby
danshultz has quit [Ping timeout: 272 seconds]
burlyscudd has quit [Quit: Leaving.]
Matriks has joined #ruby
mansi has joined #ruby
petey_ has quit [Remote host closed the connection]
brtdv has joined #ruby
burlyscudd has joined #ruby
petey has joined #ruby
zz_jrhorn424 is now known as jrhorn424
vlad_starkov has quit [Remote host closed the connection]
<platzhirsch>
wuest: heh, not for everyone
RaCx has joined #ruby
<slowcon>
back
<slowcon>
platzhirsch: haha no way, ill take every extra minute of sleep i can
ixti has joined #ruby
vpretzel has joined #ruby
FaresKAlaboud has joined #ruby
hrrz has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Salve has quit [Remote host closed the connection]
<wuest>
LadyRainicorn: They _are_. UTC for all!
Salve has joined #ruby
petey has quit [Ping timeout: 265 seconds]
jerius has quit [Ping timeout: 240 seconds]
tonni has quit [Remote host closed the connection]
sski has joined #ruby
tonni has joined #ruby
kitak_ has quit [Remote host closed the connection]
tonni has quit [Read error: Connection reset by peer]
Salve has quit [Ping timeout: 245 seconds]
sski has quit [Ping timeout: 252 seconds]
tkuchiki has quit [Remote host closed the connection]
mary5030_ has quit [Remote host closed the connection]
ringaroses has quit [Client Quit]
nhhagen has quit [Remote host closed the connection]
mary5030_ has joined #ruby
S0da has quit [Read error: Connection reset by peer]
prc has quit [Ping timeout: 265 seconds]
hamakn has quit [Remote host closed the connection]
maletor has joined #ruby
vpretzel_ has joined #ruby
mando has joined #ruby
mary5030 has quit [Ping timeout: 260 seconds]
jprovazn has quit [Quit: Leaving]
tolstoi has quit [Read error: Connection reset by peer]
vpretzel has quit [Disconnected by services]
vpretzel_ is now known as vpretzel
ZadYree has quit [Ping timeout: 256 seconds]
maletor has quit [Ping timeout: 245 seconds]
pushpak has joined #ruby
axl_ has joined #ruby
blaxter_ is now known as dumdedum
Hobogrammer_ has quit [Ping timeout: 252 seconds]
fgo has quit [Remote host closed the connection]
michael_lee has joined #ruby
Sawbones has joined #ruby
michael_lee has quit [Max SendQ exceeded]
boboc has joined #ruby
s_kilk has quit [Quit: Leaving]
vpretzel has quit [Ping timeout: 260 seconds]
bluenemo has quit [Remote host closed the connection]
vpretzel has joined #ruby
arctaruz has left #ruby ["Leaving"]
maletor has joined #ruby
maletor has quit [Read error: Connection reset by peer]
maletor has joined #ruby
hiall_ has joined #ruby
clocKwize has quit [Write error: Broken pipe]
clocKwize has joined #ruby
lolmaus has joined #ruby
hiall has quit [Read error: Operation timed out]
hiall_ is now known as hiall
brtdv has quit [Read error: Operation timed out]
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
maletor has quit [Read error: Connection reset by peer]
<lolmaus>
For the sake of learning how Ruby internals work, i would like to hijack Hash and make it convert string keys into symbols. `{'foo' => 'bar'} # => {foo: 'bar'}` Is that possible?
vlad_starkov has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
baroquebobcat has quit [Quit: baroquebobcat]
maletor has joined #ruby
_maes_ has joined #ruby
momomomomo has joined #ruby
tonni has quit [Ping timeout: 245 seconds]
<banister>
lolmaus in pure ruby or in C?
<banister>
lolmaus in C, anythings possible
<banister>
in pure ruby, just most things are possible
<lolmaus>
banister: in Ruby, by monkey patching the Hash class.
einarj has quit [Remote host closed the connection]
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
<banister>
lolmaus i doubt it, core classes often call the C functions directly so they can skip the slow ruby method lookups
<banister>
lolmaus but you can try to override Hash#initialize but i doubt it'll work
vlad_starkov has quit [Remote host closed the connection]
maletor has quit [Remote host closed the connection]
Cache_Money has quit [Quit: Cache_Money]
<shevy>
<em:icon64URL/></Description></RDF>
lolmaus has joined #ruby
<shevy>
look at all these tags! if that is not an invocation of Cthulhu then I don't know what is
ext0 has joined #ruby
<certainty>
that's why we have sxml
freezey has quit [Remote host closed the connection]
poulson has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 252 seconds]
aganov has quit [Remote host closed the connection]
OdNairy has joined #ruby
RyanV has joined #ruby
<toretore>
i, for one, like xml
vlad_starkov has joined #ruby
zeeraw has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<ericwood>
freak
lurch_ has quit [Quit: lurch_]
tonni has quit [Ping timeout: 252 seconds]
Karpuragauram is now known as vivekananda
vivekananda is now known as Vivekananda
RaCx has joined #ruby
<toretore>
it is an elegant and powerful markup language
<toretore>
compare it with json, which is not elegant
zigomir has quit [Ping timeout: 265 seconds]
<toretore>
(but much easier to deal with)
jobewan has quit [Quit: Leaving]
zigomir has joined #ruby
jobewan has joined #ruby
JustMozzy has joined #ruby
centrx has quit [Quit: Leaving]
Jdubs has quit [Remote host closed the connection]
razibog has quit [Quit: Leaving.]
tgkokk has joined #ruby
pwh_ has quit [Ping timeout: 260 seconds]
philcrissman has joined #ruby
Shidash has joined #ruby
<havenwood>
toretore: The equivocation between attributes and elements is a horror to behold. What should be elegant and simple seems frustrating complex without an equivalent win.
mikepack has quit [Remote host closed the connection]
<havenwood>
frustratingly*
ndrei has quit [Ping timeout: 265 seconds]
nszceta has joined #ruby
mikepack has joined #ruby
banister has joined #ruby
interactionjaxsn has joined #ruby
<shevy>
toretore I think both is ugly
workmad3 has quit [Ping timeout: 252 seconds]
bobdobbs has quit [Ping timeout: 272 seconds]
maximski has joined #ruby
pwh has joined #ruby
<toretore>
havenwood: but that's not xml's fault. attributes and elements *are* different
bean has joined #ruby
ndrei has joined #ruby
phansch has quit [Quit: Leaving]
tvw has quit []
toasty has joined #ruby
<havenwood>
toretore: But different in a way that in practice causes horrible confusion and convolution. The result is an abomination. I guess the same could be said of REST.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
chrisseaton has quit []
<toretore>
again, not xml's fault, but the way people use it
pwh_ has joined #ruby
<havenwood>
I guess I question whether the verbosity and complexity is worth the wins for XML.
rayners has quit [Remote host closed the connection]
<shevy>
I agree
<shevy>
people should not use XML
rootshift_ has joined #ruby
<ericwood>
most of the time xml is overkill
<certainty>
machines shouldn't either
andikr has quit [Remote host closed the connection]
<shevy>
certainty haha :D
rayners has joined #ruby
camilasan has quit []
sk87 has joined #ruby
<toretore>
that's like saying "people should not use threads"
jcs222 has quit [Quit: leaving]
<ericwood>
fork everything damnit
jrhorn424 is now known as zz_jrhorn424
geggam has quit [Ping timeout: 265 seconds]
<shevy>
but threads don't have elements!
rayners has quit [Remote host closed the connection]
razrunelord has joined #ruby
rayners has joined #ruby
pwh has quit [Ping timeout: 252 seconds]
dx7 has joined #ruby
matchaw has quit [Read error: Operation timed out]
timonv has quit [Remote host closed the connection]
fenak has quit [Remote host closed the connection]
RyanV has quit [Ping timeout: 265 seconds]
coderdad has joined #ruby
IceDragon has joined #ruby
<havenwood>
toretore: Yeah, often Threads aren't the right choice due to a similar verbosity and complexity. Sometimes it is worth using Threads. I wonder when it is worth using XML?
rayners has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
<ericwood>
havenwood: really complex data; XML has lots of nice things in it. and schemas
nowthatsamatt has joined #ruby
rayners has joined #ruby
<certainty>
the java people think xml is a great idea. I don't like it much because of it's verbosity and because data can be represented more easily in other structures better supported by my languages of choice
<havenwood>
ericwood: Show me this expressive elegant XML.
<havenwood>
ericwood: Unicorns!
e^0 has joined #ruby
<ericwood>
havenwood: never said elegant, it just provides features that you can't really do in other markup languages
<ericwood>
but I don't really use it ever so icgaf
carraroj has joined #ruby
<ericwood>
I just know that there are some things about it that are handy for some situations
<toretore>
<users><user> ... </user></users> vs {"users": [{ ... }]} : you can't do this with json without breaking something: <users><user></user><pagination/></users>
<ericwood>
lol jinx
thesheff17 has joined #ruby
rayners has joined #ruby
coderdad has quit [Remote host closed the connection]
interact_ has joined #ruby
tolstoi has joined #ruby
tolstoi has quit [Changing host]
tolstoi has joined #ruby
andy__ has joined #ruby
gregf has joined #ruby
<razrunelord>
ericwood: Thanks, does it work like a bitwise OR then
forced_request has quit [Ping timeout: 264 seconds]
<ericwood>
razrunelord: the documentation explains it
<ericwood>
but basically
dubsteph has joined #ruby
zigomir has quit [Remote host closed the connection]
<razrunelord>
ericwood: thanks
Czupa has joined #ruby
greenarrow has quit [Quit: 500]
forced_request has joined #ruby
<ericwood>
np
<shevy>
yaml
tylersmith has joined #ruby
<shevy>
users:
<shevy>
\o/
kidoz has joined #ruby
freezey has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<toretore>
yaml suffers from trying to be human-readable and computer-readable at the same time
mikecmpbll has quit [Quit: ciao.]
Es0teric has joined #ruby
bean has joined #ruby
keen__ is now known as keen_
jcs222 has joined #ruby
dubsteph has quit [Ping timeout: 240 seconds]
toastynerd has quit [Remote host closed the connection]
rayners has quit [Remote host closed the connection]
shaunbak_ has quit [Remote host closed the connection]
rayners has joined #ruby
glen has left #ruby [#ruby]
petey has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
petey has joined #ruby
alex88 has joined #ruby
<toretore>
like html5 where you can skip the closing tag, because "meh, too much work"
RaCx has joined #ruby
ikaros has quit [Quit: Ex-Chat]
Solnse has quit [Remote host closed the connection]
<toretore>
</rant>
<ericwood>
yaml is neato
VTLob has joined #ruby
<ericwood>
I use my own homebrewed markup solution: FML
<shevy>
yaml has no closing tags
<ericwood>
well it doesn't use "tags"
petey has quit [Read error: Connection reset by peer]
Zai00 has quit [Quit: Zai00]
<alex88>
hi guys, I've currently created a buildpack for heroku that builds and installs libvips, running bundle install correctly installs ruby-vips gem, however, trying to require 'vips' gives: /app/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/ruby-vips-0.3.7/vips_ext.so
<ericwood>
so of course not
ianfleeton has quit [Quit: ianfleeton]
<alex88>
but, that path actually exists
<toretore>
oh don't get me started on significant whitespace :P
tungd has quit [Ping timeout: 272 seconds]
<certainty>
:)
petey has joined #ruby
<ericwood>
is there a heroku channel?
<alex88>
how could it be? maybe because during compilation the file wasn't there?
<ericwood>
might have better luck there
<shevy>
yeah, forced indent has some drawbacks sometimes
<alex88>
ericwood: it is but with no talking people :)
jcs222 has quit [Quit: leaving]
<shevy>
they are quiet because they are ashamed
<alex88>
:D
vlad_starkov has quit [Remote host closed the connection]
timonv has joined #ruby
<shevy>
what is libvips?
interact_ has quit [Remote host closed the connection]
<ericwood>
a library for vips
<shevy>
lol
<alex88>
library for image manipulation
<certainty>
very important processes
<shevy>
"A fast image processing library with low memory needs."
<shevy>
imagemagick!!!
kaliya has quit [Quit: Lost terminal]
<alex88>
eheheh, yeah, try a couple GB image conversion with imagemagick :D
petey has quit [Remote host closed the connection]
<shevy>
GB man
RaCx has quit [Ping timeout: 260 seconds]
<shevy>
I dont have so much pr0n
<shevy>
ruby once had rmagick
<havenwood>
alex88: You don't need to `require 'rubygems'` anymore, that was a relic of Ruby 1.8.
petey has joined #ruby
<alex88>
k thanks for the tip havenwood
mjs2600 has quit [Remote host closed the connection]
<shevy>
alex88 that means the file does not exist OR it could be a wrong ELF perhaps
<alex88>
I just did what was in ruby-vips doc
<certainty>
alias vips="ps aux |vim -" :)
aspires has quit []
baroquebobcat has joined #ruby
<havenwood>
alex88: So this exact file exists at this path?: /app/vendor/ruby-2.1.0/lib/ruby/gems/2.1.0/extensions/x86_64-linux/2.1.0-static/ruby-vips-0.3.7/vips_ext.so
<havenwood>
alex88: nm, read
jlebrech has quit [Quit: Konversation terminated!]
ecualombian has quit [Remote host closed the connection]
<alex88>
havenwood: yup, that's the point
pudidis has joined #ruby
vlad_starkov has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<havenwood>
shevy: document what classes and modules do with the methods inside them
<havenwood>
shevy: :P
canton7-mac has quit [Quit: Leaving]
joelroa_ has joined #ruby
<havenwood>
shevy: Name things to explain what they do.
alex88 has quit [Quit: Leaving...]
e^0 has quit [Quit: WeeChat 0.4.1]
rdark has quit [Quit: leaving]
DanBoy has joined #ruby
<havenwood>
shevy: And if it really is unclear, a comment!
<shevy>
hmm
<havenwood>
shevy: Or TomDoc doesn't take long to fill in, though i think it makes it hard to find the comments that matter and harder to see the code.
timonv has quit [Remote host closed the connection]
burlyscudd has joined #ruby
j416 has quit [Quit: o/]
pwh has joined #ruby
plexus_ has quit [Ping timeout: 260 seconds]
tgkokk_ has joined #ruby
pwh has quit [Max SendQ exceeded]
aaronmcadam has joined #ruby
joelroa has joined #ruby
pwh has joined #ruby
pwh has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 248 seconds]
coderdad has quit [Ping timeout: 265 seconds]
tgkokk has quit [Ping timeout: 240 seconds]
<mary5030>
anyone know of a great source to get up to speed with ruby?
RyanV has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
<havenwood>
mary5030: If you haven't checked it out yet, tryruby.org is good to go through. There are some other nice resources here: https://www.ruby-lang.org/en/documentation/
joelroa_ has quit [Ping timeout: 264 seconds]
<havenwood>
mary5030: There are whimsical books that come with soundtracks, technical manuals that cover the dark corners of the stdlib, interactive online games, meditations on testing, many options depending on what you're looking for
joelroa_ has joined #ruby
chihhsin has quit [Quit: leaving]
bleak has joined #ruby
jhass is now known as jhass|off
<havenwood>
mary5030: And this channel is good for questions.
joelroa has quit [Read error: Operation timed out]
<mary5030>
i know basic ruby but i am hoping to get a bit more proficient at it
<mary5030>
thank you yes this channel has been helpful
Salve_ has joined #ruby
Salve has quit [Read error: Connection reset by peer]
<havenwood>
mary5030: Chris Pine's Learn to Program is very basic. The Ruby Programming Language and second edition Well Grounded Rubyist (in beta) are great.
koell has quit [Read error: Connection reset by peer]
<certainty>
yeah that's something from activesupport
<Phrogz>
I suppose you could array.tap(&:shift).chain_away
ndrei has joined #ruby
joelroa_ has quit [Ping timeout: 264 seconds]
kindjal has joined #ruby
joelroa__ has joined #ruby
vagner4work has quit [Remote host closed the connection]
joelroa_ has joined #ruby
gregf has quit [Quit: WeeChat 0.4.3]
gregf has joined #ruby
<e12energy>
anybody?
roolo has quit [Quit: Leaving...]
joelroa has quit [Ping timeout: 260 seconds]
saarinen has joined #ruby
SHyx0rmZ has joined #ruby
jsmoov has joined #ruby
havenwood has quit [Ping timeout: 240 seconds]
rayners has joined #ruby
pudidis has joined #ruby
jsmoov has quit []
rayners has quit [Remote host closed the connection]
alexherbo2 has quit [Quit: WeeChat 0.4.3-dev]
sepp2k1 has joined #ruby
zcreative has joined #ruby
<lethjakman>
shevy: your see: had nothing after it
<lethjakman>
sorry, thank you for the example
<existensil>
e12energy: SecureRandom tries to use your platforms secure random number generator source, so its randomness is likely better on reasonable platforms than Random#rand
gbt has joined #ruby
joelroa__ has quit [Ping timeout: 248 seconds]
zcreative has quit [Client Quit]
mehlah has joined #ruby
<certainty>
lethjakman: you understand now how Symbol#to_proc works?
sepp2k has quit [Ping timeout: 272 seconds]
<atmosx>
is random number gnerator used in anything other than crypto?
<lethjakman>
I think I'm just starting to understand it. it turns it into a lambda with x{x.foo}
<certainty>
atmosx: sure. I use one to generate test input
<certainty>
in quicktest like tests
<atmosx>
certainty: and you care about the randomness level?
<existensil>
atmosx: of course. its used it games, testing, genetic algorithms, etc.
<existensil>
tons of stuff requires some randomness
<atmosx>
genetic algorithms
<atmosx>
I missed that.
<atmosx>
okay
<certainty>
atmosx: nope
Vovko_ has joined #ruby
sparrovv has joined #ruby
mjs2600 has joined #ruby
plexus_ has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
Vovko__ has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
<certainty>
lethjakman: yes basically
kevinykchan has joined #ruby
<existensil>
psuedo-random number generators, which Random is, usually have pretty solid distribution when reasonably seeded, so for almost everything but crypto those rands are sufficient
withnale has joined #ruby
Vovko has quit [Ping timeout: 248 seconds]
rayners has joined #ruby
mikepack has quit [Remote host closed the connection]
<withnale>
Hello. Is there a syntax for accessing a class variable without prior knowledge of the class name?
<withnale>
urgh. I guess that does it - not an elegant syntax - thx
bandsaw1961 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Lewix has quit [Remote host closed the connection]
<lethjakman>
certainty: is that : required?
hiall has quit [Ping timeout: 265 seconds]
rayners has quit [Remote host closed the connection]
<existensil>
well, no, its not elegant. you are trying to access a protected instance variable within an unknown class. that is generally not something you should be doing and should probably look ugly.
mdpatrick has joined #ruby
nanoyak has joined #ruby
Vovko_ has quit [Ping timeout: 272 seconds]
<certainty>
lethjakman: sure it denotes a symbol.
<existensil>
the ugliness of that statement conveys the ugliness of what youa re doing
decoponio has quit [Quit: Leaving...]
interactionjaxsn has joined #ruby
coderdad has joined #ruby
joonty has quit [Quit: WeeChat 0.3.8]
vlad_starkov has joined #ruby
Vovko__ has quit [Ping timeout: 272 seconds]
mansi has quit [Read error: Connection reset by peer]
Vovko has joined #ruby
tgkokk_ has quit [Ping timeout: 272 seconds]
mansi has joined #ruby
sailias has joined #ruby
nanoyak has quit [Read error: Connection reset by peer]
IceDragon_ has joined #ruby
nanoyak has joined #ruby
<Phrogz>
lethjakman: method( &xxx ) calls xxx.to_proc and passes the result as the block to the method. xxx could be a symbol :foo, or a method, or really any object that implements a #to_proc method.
rethus has joined #ruby
krz has quit [Quit: WeeChat 0.4.2]
IceDragon has quit [Ping timeout: 241 seconds]
shaunbaker has joined #ruby
LastWhisper has joined #ruby
shaunbaker has quit [Remote host closed the connection]
shadoi has joined #ruby
<Phrogz>
For example, you can define a class's to_proc method such that %w[Bob Jim Jan].map(&Person) would invoke Person.new("Bob") etc. on each item.
troyready has joined #ruby
<rethus>
hi, i have installed redmine with bitnami-stack. then i have replace the htdocs/redmine with a new version. Now i got this error:http://pastebin.com/VRm0Kaxt
ecualombian has joined #ruby
<rethus>
can somebody help me to solve this gem/bundle error? I have no experiences with ruby
nanoyak has quit [Read error: Connection reset by peer]
<rethus>
lpvn: how can i remove other one?
swaglord546 has quit [Read error: Connection reset by peer]
<Phrogz>
slowcon: How about Sequel.sqlite( '/Users/...' ) ?
nanoyak has joined #ruby
<lpvn>
gem uninstall rake -v <your_version>
<Phrogz>
(Is there any reason you need to use the .connect method?
<lethjakman>
I thouhght there was a good method t hat removed whatever characters you denoted from either side of a string. does anyone know what that's called?
mjs2600 has quit [Remote host closed the connection]
<slowcon>
Phrogz: no, only used it because that was in the example of how to connect to a local DB
vpretzel has quit [Quit: Adios!]
<Phrogz>
slowcon: Great! So you're unblocked?
<Phrogz>
lethjakman: #strip will remove leading/trailing whitespace.
<rethus>
lpvn: how can i see which other versions on the system? rake --version show only the 10.1.1
<lpvn>
gem list
<slowcon>
Phrogz: the database can be written to, i am using it to scrape genres from a website. i now want to pass the values it scrapes to an array to be iterated through
mikepack has quit [Remote host closed the connection]
mjs2600 has joined #ruby
<Phrogz>
slowcon: OK...what's the problem?
<slowcon>
Phrogz: when i run g_sub, its returning the SQL statement
<jsilver>
"London is the home of 73 per cent of the UK’s wealth and 93 per cent of its twats. Letting the city sink beneath the waves will be an enormous net gain for the rest of Britain."
<jsilver>
that is all
<rethus>
lpvn: still have try bundle install --system
bklane has joined #ruby
<rethus>
also found this page, but didn't help me
<Phrogz>
slowcon: That's odd. I've used Pry + Sequel with Postgres before; never tried with SQLite. Is your path absolute?
<slowcon>
Phrogz: /sequel/adapters/sqlite.rb:101:in `initialize': SQLite3::CantOpenExceptio n: unable to open database file (Sequel::DatabaseConnectionError)
<Phrogz>
slowcon: What if you require Pry after setting up your DB.
<Phrogz>
Or are you using the Pry interactive console?
koell has joined #ruby
Vivekananda has joined #ruby
<slowcon>
Phrogz: yupp path is absolute. im running the program via command prompt "Ruby /path/to/script/script.rb"
<slowcon>
which opens pry when i add the binding, but giving the DB error
<Phrogz>
slowcon: So, you are manually requiring 'pry', and thus can try putting it after you access the DB?
sambao21 has joined #ruby
<slowcon>
yeah i tried that, nothin
jcs222 has joined #ruby
ffranz has quit [Ping timeout: 245 seconds]
Nowaker has quit [Ping timeout: 265 seconds]
<Phrogz>
Post your code, I can try to repro?
Advocation has joined #ruby
Nowaker has joined #ruby
jrist has joined #ruby
<Phrogz>
If it repros, I'd recommend posting on sequel-talk; Jeremy is usually super responsive.
<slowcon>
Phrogz: yeah jeremy is awesome at answering questions
mehonoshin is now known as vic736
<slowcon>
Phrogz: sure let me paste the code up
ZadYree has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
petey has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
burlyscudd has quit [Read error: Connection reset by peer]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
burlyscudd1 has joined #ruby
petey has joined #ruby
gja has quit [Quit: This computer has gone to sleep]
gamegenius86 has joined #ruby
benzrf has joined #ruby
petey_ has joined #ruby
<benzrf>
hello
noop has quit [Ping timeout: 265 seconds]
petey has quit [Read error: Connection reset by peer]
<benzrf>
what's the diff between 'Foo = Struct.new do' and 'class Foo < Struct.new'
maletor has joined #ruby
swaglord546 has joined #ruby
<jsilver>
benzrf: in the first one, you set "Foo" to a new instance of the struct class passed a block
Hobogrammer has quit [Remote host closed the connection]
ephemerian has joined #ruby
<toretore>
apeiros: yes, but those are the same class
<withnale>
I was to write a debug logging function that outputs some debug lines including the line at which the debug function is called from. Is there a way of doing this without putting __FILE__ as one of the parameters to each call?
<Phrogz>
slowcon: Works for me (with minor modification to .sqlite path). Either our Ruby/gem/SQLite versions are different, or this is an OS-specific problem.
<toretore>
er, Foo#eql?
<Phrogz>
slowcon: I recommend you pare it down to absolute minimal test case and head to sequel-talk
spyderman4g63 has joined #ruby
<benzrf>
artisangoose: just like a car that has wings and an outboard engine, which takes 10x more fuel and sometimes starts flying when you're trying to drive!
peoplee has joined #ruby
<benzrf>
remarkable!
<Phrogz>
Now now, we can keep the PHP bashing to a minimum. Most of us believe it is an abomination on many levels, but no need to convince others.
randomnick_ has joined #ruby
<slowcon>
Phrogz: error is happening at the " genre_table = DB[:genres].select_map(:genre_id)" line
<slowcon>
Phrogz: dont get it though, script works. will ask jeremy
blackmesa has joined #ruby
<toretore>
apeiros: but my dream of having a class that can always be considered equal to some internal value is busted :/
<Phrogz>
slowcon: That's the first time the DB attempts to be accessed for real. Up until then it's a notional concept. You could try just p DB.tables and likely see the same results.
burlyscudd has quit [Quit: Leaving.]
skaflem has quit [Quit: Leaving]
axsuul has quit [Ping timeout: 272 seconds]
swaglord546 has quit [Quit: Byebye...]
jonah_k has joined #ruby
elaptics is now known as elaptics`away
vlad_starkov has joined #ruby
OdNairy has quit [Ping timeout: 260 seconds]
<apeiros>
toretore: why?
Advocation has quit [Quit: Advocation]
burlyscudd has joined #ruby
swaglord546 has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<apeiros>
toretore: oh, your @v isn't necessarily a string. you want it generic?
<toretore>
yup
<apeiros>
that's tricky.
<benzrf>
just use to_s
<benzrf>
:D
axsuul has joined #ruby
<toretore>
could override Object#eql? but there are certainly classes where it doesn't call super
<apeiros>
that wouldn't help
<toretore>
actually, most probably don't
<apeiros>
yupp
jrhorn424 is now known as zz_jrhorn424
<toretore>
it doesn't even make sense :)
<apeiros>
most core classes at least
<benzrf>
hmm, i am writing a class for signatures, and I dunno whether to make it Signature#signs? or Signature#sign?
<benzrf>
the latter conforms to matz's standard, but it sounds weird as shit
OdNairy has joined #ruby
<toretore>
and it's the core i care most about
<apeiros>
benzrf: ruby isn't consistent itself
<apeiros>
benzrf: just go with signs?
<benzrf>
k
moted has joined #ruby
<platzhirsch>
sign?
<platzhirsch>
you mean #signed?
swaglord546 has quit [Client Quit]
* Phrogz
has no idea what a_signature.sign? means.
<apeiros>
toretore: you're probably better off subclassing/delegating Hash instead
vic736 has quit [Ping timeout: 265 seconds]
burgess has joined #ruby
<toretore>
apeiros: yeah, i'm already delegating to it so it should work out fine
<platzhirsch>
benzrf: You mean #signed?, change it
theRoUS has quit [Remote host closed the connection]
<apeiros>
platzhirsch: you criminal!
RaCx has quit [Ping timeout: 248 seconds]
<platzhirsch>
apeiros: and my presentation was even about open data, lol
<platzhirsch>
Some people just want to see the world burn
<e12energy>
platzhirsch: no... i found out about rubycoin last night by doing /list *coin* just to see what coins there are. and i've been using ruby for years.. so i just got curious if it's related in anyway
<e12energy>
especially after seeing the logo
<platzhirsch>
e12energy: well nice sales pitch, not buying it
lurch_ has quit [Quit: lurch_]
<e12energy>
haha
<platzhirsch>
^
<e12energy>
couldn't get less about rubycoin
<e12energy>
:P
sambao21 has quit [Quit: Computer has gone to sleep.]
<platzhirsch>
e12energy: so do you have Twitter?
tgkokk_ has quit [Ping timeout: 245 seconds]
<e12energy>
platzhirsch:nope.. i only got FB and Google+
<e12energy>
why?
<platzhirsch>
uhm,.. just asking
louism2wash has joined #ruby
mikepack has quit [Remote host closed the connection]
<toretore>
"Only 60 million will exist." "And we've mined the first 20 million before letting you drive up the price for us"
mloveless has quit [Remote host closed the connection]
phutch1ns has quit [Ping timeout: 240 seconds]
Kricir has joined #ruby
<jsilver>
so can I open up irb in a coin
<platzhirsch>
Man, accessing my wallet with Pry.
tacos1de has quit [Remote host closed the connection]
<louism2wash>
Can anyone help me? I feel like I'm losing my mind!!!!!! Why is it that when I push an item into the array at index 1 that it replicates to all remaining arrays? https://gist.github.com/louism2/9079079
<apeiros>
louism2wash: arr = Array.new(13,[]) # <-- creates an array with 13 times *the same* array
<platzhirsch>
I feel like the dog who is pressed into its own poop because it misbehaved
* jsilver
shoves platzhirsch face in the poop. BAD DOG!
<lagweezle>
benzrf: I think you are using the wrong approach... OpenSSL::PKey::RSA.new generates a new key from the ether; it does not create an object using a pre-existing key file.
<platzhirsch>
Without actual parallel execution (like MRI) it's not really a problem to access a data structure from different threads, no?
<benzrf>
you mean async
<benzrf>
?
aryaching has joined #ruby
<benzrf>
if the access is atomic then definitely
<benzrf>
if not... idk
<benzrf>
it depends on how it's threaded
<benzrf>
i think
<benzrf>
ianae
gja has joined #ruby
<platzhirsch>
oh atomic is an issue, true
<slowcon>
Phrogz: problem was that the database was locked. being used by another process, just closed out everything and reopened. good to go
<platzhirsch>
so the threads could switch
carraroj has quit [Quit: Konversation terminated!]
<platzhirsch>
while the data structure is manipulated
<Phrogz>
slowcon: Yay! :) Yet another downside of SQLite, I suppose (as fun and convenient as it is)
<lagweezle>
benzrf: In my case, it may be because the ky is not encrypted post-load.
<benzrf>
atomicity!
<benzrf>
mutexes aren't very hard tho
<benzrf>
just put your access in a mutex.synchronize block
<benzrf>
done
<benzrf>
:)
<toretore>
platzhirsch: you have the same problems as with "real" threads
<platzhirsch>
benzrf: yeah I was just thinking
* Phrogz
likes how simple Ruby makes threading, even if it's not green.
peoplee has quit [Ping timeout: 245 seconds]
Jdubs has quit [Remote host closed the connection]
aryaching_ has quit [Ping timeout: 265 seconds]
axl_ has quit [Quit: axl_]
Mongey has quit [Quit: Mongey]
<Phrogz>
er, green and not native, that is
<benzrf>
man i rly rly suck at concurrency
<platzhirsch>
What is more, Ruby has Fibres
RaCx has quit [Quit: Computer has gone to sleep.]
<platzhirsch>
MRI with its GIL is a piece of shit
<Phrogz>
benzrf: That's OK, just about everyone does. Including me.
cpruitt has joined #ruby
dingus_khan has quit [Remote host closed the connection]
LexicalScope has quit [Read error: Connection reset by peer]
<benzrf>
my cleverest moment: naming a mutex that prevented concurrent calls to a text-to-speech program 'conch'
<benzrf>
:3
<Phrogz>
lol
<Phrogz>
Nice!
LexicalScope has joined #ruby
<Phrogz>
That's actually a really nice mental model. I assume it's heavily used in intro documents.
* Phrogz
goes a-Googling.
<benzrf>
o:
<platzhirsch>
so where do I learn about the current MRI Threading implementation?
<Phrogz>
"For example, in “The Lord of the Flies” a group of children use a conch as a mutex. To speak, you have to hold the conch. As long as only one child holds the..."
mando has quit [Ping timeout: 240 seconds]
<Phrogz>
11.6k hits for "conch" "mutex"
<benzrf>
and here i thought i was being original
<benzrf>
;-;
<Phrogz>
We are none of us unique snowflakes.
<platzhirsch>
Concurrency fascinates me, do you know Hoare Calculus?
itadder has joined #ruby
<benzrf>
>implying snowflakes are unique
<Phrogz>
platzhirsch: In the source code? :|
<lagweezle>
benzrf: I guess the /real/ test is to make sure that the key actually can decode properly.
nszceta has quit [Ping timeout: 272 seconds]
aspires has joined #ruby
<benzrf>
it can o-o
<Phrogz>
platzhirsch: You mean beyond the descriptions of the GIL (Global Interpreter Lock)?
<lagweezle>
benzrf: I'm guessing the key encryption is a big piece of the odd behavior.
<platzhirsch>
Phrogz: How the thread scheduler works
samuel02 has quit []
phansch has quit [Quit: Leaving]
<Phrogz>
FWIW; I know nothing of the implementation, or topics related to scheduling, so don't take my lack of knowledge to mean that no such good descriptions exist.
toastynerd has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<slowcon>
Phrogz: ughhh, now im not so sure i foudn the problem. same error, trying to run from cmd prompt i get the DB error, run from the IDE, no error.
<platzhirsch>
There are three models described,... so which one is implemented, gnaah
toastynerd has joined #ruby
felixjet_ has quit [Quit: Leaving]
toastynerd has quit [Remote host closed the connection]
felixjet has joined #ruby
<platzhirsch>
Threads are native in the case of GIL
maletor has quit [Remote host closed the connection]
Advocation has quit [Quit: Advocation]
klaut has joined #ruby
burlyscudd1 has joined #ruby
burlyscudd has quit [Ping timeout: 245 seconds]
charliesome has joined #ruby
<platzhirsch>
Ruby 1.8 had green threads
ianfleeton has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<platzhirsch>
so whether it is preempting or what the OS does decide
aloitius_ has joined #ruby
Vovko has joined #ruby
klaut has quit [Ping timeout: 240 seconds]
oracal has joined #ruby
nanoyak has joined #ruby
<platzhirsch>
so it seems like YARV is planning to destroy the GIL and use finer grained locking in the future
prc has joined #ruby
RaCx has joined #ruby
<apeiros>
"is planning". they take their time. yarv is ~10y old now.
<mjc_>
seems unlikely the GIL will go away anytime soon
burlyscudd1 has quit [Quit: Leaving.]
Azure has joined #ruby
<platzhirsch>
I still don't understand why that is
<mjc_>
for one, fine-grained locking could easily be a performance loss
<mjc_>
for another C extension compatibility is very difficult to get right
Lewix has joined #ruby
<platzhirsch>
Or with other words why the JVM doesn't need a GIL, because of the way code is interpreted?
RaCx has quit [Client Quit]
<mjc_>
rubinius doesn't have a GIL either
Hobogrammer has quit [Ping timeout: 245 seconds]
shadoi has quit [Quit: Leaving.]
saarinen has joined #ruby
RaCx has joined #ruby
stryek has quit [Ping timeout: 248 seconds]
<shevy>
ur mom doesn't have a GIL either!
mansi has quit [Read error: Connection reset by peer]
danshultz has quit [Read error: Connection reset by peer]
Astralum has quit [Quit: Leaving]
phansch has quit [Quit: WeeChat 0.4.2]
mansi has joined #ruby
phansch has joined #ruby
danshultz has joined #ruby
<platzhirsch>
ah right. For one the garbager collector is a big problem
vic736 has joined #ruby
shadoi has joined #ruby
<platzhirsch>
GC and Threading interferes heavily
zigomir has joined #ruby
<Phrogz>
Aye, Rubinius has fully native threads.
ringaroses has joined #ruby
<platzhirsch>
Fully? So has MRI
tvw has joined #ruby
<platzhirsch>
>= 1.9
<toretore>
not the ones it lets you use
<toretore>
you are using green threads
<Phrogz>
platzhirsch: I mean fully native with no GIL in Rubinius.
mansi has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
mansi has joined #ruby
<platzhirsch>
toretore: I reckon these are no green threads then. The classes are just an interface. Green Threads or Native Threads are implementation details, the other thing is just the API
daidoji has joined #ruby
<toretore>
sure
<Phrogz>
JRuby, too, has no GIL
bklane has quit [Remote host closed the connection]
<platzhirsch>
That's because the JVM's GC is sophisticated
<platzhirsch>
Otherwise all the data structures from java.util.concurrent would make no sense
<AntelopeSalad>
so if /tmp/foo/bar existed then it would return 1
itadder has quit [Remote host closed the connection]
<AntelopeSalad>
and /tmp/foo/bar/baz would return 2
DrShoggoth has quit [Ping timeout: 245 seconds]
kpshek has joined #ruby
Hobogrammer has quit [Read error: Connection reset by peer]
itadder has joined #ruby
<toretore>
AntelopeSalad: simple recursion
kpshek has quit [Remote host closed the connection]
stryek has joined #ruby
<apeiros>
AntelopeSalad: then indeed, walk and count
jonah_k has quit [Remote host closed the connection]
RaCx has quit [Quit: Computer has gone to sleep.]
claymore has quit [Quit: Leaving]
<AntelopeSalad>
if you glob a directory and go past its max then it will just give up
DrShoggoth has joined #ruby
<apeiros>
and now "hu?" again
Czupa has quit [Read error: Operation timed out]
<AntelopeSalad>
that's where the previous and current came into play -- the array of dirs you get back is the same whether you reached the max or went beyond it
Notte has quit []
bennylope has joined #ruby
<ineb>
okay, for me even 'expect { "success" }.to eql("success")' is not working. what am i missing here?
hstalev has joined #ruby
mando has joined #ruby
hstalev has left #ruby [#ruby]
itadder has quit [Ping timeout: 264 seconds]
zigomir has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
zigomir has joined #ruby
thesheff17 has quit [Ping timeout: 252 seconds]
Kricir has joined #ruby
petey__ has quit [Remote host closed the connection]
<ineb>
'expect("success").to eql("success")' is working. can someone tell me where the difference between expect() and expect{} is?
bennylope has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
wonking wonking wonking
* Phrogz
is a minitest kind of guy
<shevy>
every day I am wonking it
<shevy>
every day I am shuffling it
<YourBestFriend>
what's the point of requiring 'rubygems'? serious question
<shevy>
YourBestFriend it is outdated
<shevy>
unless you use good old 1.8.x
<shevy>
1.8.x was so sweet :)
<Phrogz>
YourBestFriend: A very very long time ago it was available as a patch to require.
<Phrogz>
1.8.6 forevah
freezey has joined #ruby
Matriks has quit [Remote host closed the connection]
<apeiros>
YourBestFriend: as of 1.9, none.
<shevy>
YourBestFriend are you my best friend?
<apeiros>
(as of ruby 1.9)
petey has joined #ruby
bennylope has joined #ruby
armyriad has quit [Ping timeout: 272 seconds]
<ineb>
Phrogz: thank you. i fixed my tests now. i didnt know that there is a difference between 'expect("success").to eql("success")' and 'expect ("success").to eql("success")' (note the space after the second expect)
zeeraw has quit [Remote host closed the connection]
jkamenik has left #ruby [#ruby]
OdNairy has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Phrogz>
Optional parens strikes again!
<ineb>
i got a warning, but i didnt recognized it.. its too late
<toretore>
if in doubt, add parens
danshultz has quit [Remote host closed the connection]
platzhirsch has quit [Ping timeout: 260 seconds]
danshultz has joined #ruby
<shevy>
ack
<shevy>
lazy people omit parens
<shevy>
lazy people deserve errors!
<toretore>
but, but, but.. isn't lazyness a virtue??
venkat_ has joined #ruby
waheedi has joined #ruby
<shevy>
guys - would you use this or this for a new project that disables colours
<shevy>
require 'nocolors'
<shevy>
require 'no_colors'
<waheedi>
disable what?
<shevy>
toretore yeah, most of the time it is good
<shevy>
Waheedi COLORS
nszceta has joined #ruby
<waheedi>
oh man what a grey life u have
jprovazn has quit [Quit: Odcházím]
<shevy>
sometimes you need to cater to the colorblind
<toretore>
shevy: as long as it's consistent with gem name, class name and directory it doesn't matter
<shevy>
hmm
<shevy>
ok but
<shevy>
should it then be
<shevy>
module Nocolors
<shevy>
module NoColors
aspires has quit []
acoyfellow has joined #ruby
<toretore>
well, forget i said that
<shevy>
I spend most of my time not writing ruby code (because that is so easy) but instead thinking of things like that
nszceta has quit [Remote host closed the connection]
<shevy>
I need answers! I have a "mkdir" pending and don't know what to input...
<toretore>
gem install 'no-colors'; and then require 'nocolors' would leave a bad taste in my mouth
<shevy>
hmm
<shevy>
you can not use underscore there?
<apeiros>
IMO require and gemname should match
Kricir has quit [Ping timeout: 272 seconds]
<apeiros>
I hate the gems where it doesn't
Amnesia has left #ruby [#ruby]
<toretore>
of course, that's what i'd expect
<shevy>
yeah that is ok
<benzrf>
i favor dashed names for gems and therefore requires
danshultz has quit [Ping timeout: 252 seconds]
<apeiros>
and I want to kick the face of coders who don't mention the proper require in the readme even more.
<shevy>
so I guess the tendency is towards 'nocolours' without - or _ right ?
<ineb>
gem rest-client and require 'rest_client' has that same problem
<shevy>
damn
<toretore>
that is exactly what i expect
<benzrf>
in python, module names must be valid identifiers, therefore import names must not have -, therefore packages should not either
<toretore>
filenames should use underscores, but gem names should use hyphens
Kricir has joined #ruby
<shevy>
okokok you convinced me just now... no - and no _ and it will be Nocolors
<ineb>
i would go for nocolors, because thats the name of the project
<shevy>
hehe
<toretore>
class should still be NoColors
<shevy>
hmmmmmmm
<shevy>
I was just about to commit the mkdir command now toretore ...
<toretore>
directory is still nocolors
<shevy>
but why is the c Upcased suddenly
ianfleeton has quit [Quit: ianfleeton]
<toretore>
because it makes sense
<toretore>
Nocolors doesn't
<toretore>
this thing people have with class names matching the file name is stupid
<ineb>
say that to java folks
<toretore>
you get stuff like require 'api-thingamajig' and ApiThingamajig when it should be APIThingamajig
poikon_ has quit []
<toretore>
er, require 'api_...'
korzybski has joined #ruby
<shevy>
heh I just wondered why there was a -
<shevy>
I already thought we totally eliminated -
<ineb>
now we are back at no-colors
<toretore>
gem name will use it
<shevy>
are there any gems that have foo-bar as require line to use?
Kricir has quit [Remote host closed the connection]
<slash_nick>
respectfully, no way :)
mocfive has joined #ruby
<ineb>
should it be gem install 'no-colors'; require 'no_colors'; NoColors.suchGray?
<shevy>
guys I lied
maletor has joined #ruby
<shevy>
I WILL USE COLOURS, NOT COLOURS!!!
<shevy>
damn
<shevy>
*COLORS
<ineb>
such_gray ofc
<shevy>
yeah
<toretore>
don't use colours
<shevy>
but that is a method name
<toretore>
that's another stupid thing people do
<toretore>
nobody expects you to
<slowcon>
Phrogz: so i got the script to pull the array, and to iterate through each instance of the array. problem with the way i want it to insert the main ID. http://pastebin.com/3f9PBqMT
<shevy>
method names are much easier than module / class / scope / directory layouts
<waheedi>
seriously any idea where to find good ruby people?
geggam has quit [Ping timeout: 272 seconds]
<shevy>
benzrf is a good man
<shevy>
I have trust in him
<bodie_>
definitely not in #ruby
<bodie_>
try at #perl
<shevy>
no bodie_ do not insult benzrf
<waheedi>
open to hire work/contractors :)
<shevy>
he used to use python
<shevy>
and haskell
<benzrf>
still use haskell
<benzrf>
and i know perl
<shevy>
now he is here AND HE ALREADY CREATED GEMS
<benzrf>
perl r dum
<benzrf>
it is a hot mess
<bodie_>
a hot dumb awesome mess
<centrx>
Waheedi, I guess #ruby is not good enough for you?
<shevy>
bodie_ help me convince benzrf that haskell is a mess
Mongey has joined #ruby
Vovko has quit [Remote host closed the connection]
nhhagen has quit []
<benzrf>
perl is like php if php weren't bad enough for me to rant about it when people mention it
<bodie_>
I don't know enough about badskell to convince anyone anything about it, except that when I look at it, I want to punch a baby
<shevy>
hehe
sambao21 has joined #ruby
<shevy>
but tiobe says that php is the best scripting language
<benzrf>
bodie_: that's your own shortcoming
<waheedi>
centrx: there is no direct way to know if people here are interested in such thing :)
dingus_khan has quit [Ping timeout: 260 seconds]
<benzrf>
bodie_: just because you are too dumb for haskell doesn't make it not incredibly awesome
<shevy>
bodie_ ok man you just sulk about not knowing enough, GET TO LEARN
<bodie_>
hahaha
<shevy>
no ignore haskell
<benzrf>
>tfw monads
<shevy>
use javascript
kirun has quit [Quit: Client exiting]
<benzrf>
>tfw applicatives
<benzrf>
>tfw functors
<benzrf>
>tfw lenses
<shevy>
damn bodie_ you got him started ...
<bodie_>
I'm sure all of those words mean something on whatever planet you're from
<benzrf>
>tfw prisms
<benzrf>
>tfw traversals
<shevy>
he is from #haskell bodie_ can you go there and leave here?
<benzrf>
>tfw monad transformers
<bodie_>
lol
tommylommykins has quit [Remote host closed the connection]
<bodie_>
I'm just stepping through Why's guide for the first time :)
<bodie_>
this language is silly
<shevy>
dude
<shevy>
_why left
<shevy>
like 8 years ago
<shevy>
you are looking at ancient history of a CARTOON
<shevy>
a CARTOON man
<shevy>
don't you get it?!
<bodie_>
where'd he leave to
jherbst has joined #ruby
<shevy>
who knows
<benzrf>
bodie_: a monad is just a type constructor T plus a function return of type (a -> T a) plus a function bind of type (m a -> (a -> m b) -> m b)
<shevy>
he quitraged and removed his projects
<bodie_>
#perl, I bet
<benzrf>
what is so hard here
<shevy>
nobody knows bodie_
<bodie_>
I didn't say it was hard
<shevy>
haskell is only for elite hackers
<benzrf>
*T a -> (a -> T b) -> T b
<benzrf>
2used to m
<centrx>
Waheedi, The other general Ruby channels on Freenode are #ruby-lang and #rubyonrails
<bodie_>
gosh
phansch has quit [Quit: WeeChat 0.4.2]
<bodie_>
you are so smart
<benzrf>
oh and it has to follow the monad laws of course
<shevy>
lol centrx
RaCx has joined #ruby
<benzrf>
i am not smart for understanding it
<shevy>
yeah bodie_ can you go to #ruby-lang? it is the official channel. no kidding
einarj_ has joined #ruby
<benzrf>
it is u who is dumb for not understanding it
<benzrf>
man!
<bodie_>
ignorance is not the same thing as dumbness :)
nfk has joined #ruby
tommylommykins has joined #ruby
einarj has quit [Ping timeout: 264 seconds]
<bodie_>
I choose to remain ignorant of Haskell because there is no incentive for me to spend even a single drop of energy learning it
<shevy>
true
ner0x has joined #ruby
<benzrf>
spoken like a true blub programmer
gamegenius86 has quit [Ping timeout: 240 seconds]
nfk has quit [Client Quit]
<bodie_>
is haskell the ad-hominem language?
<shevy>
bodie_ may be totally incompetent but he has a point here benzrf
<shevy>
no, haskell is a language where you shuffle pure functions
<benzrf>
haskell is the ad-fucking awesome language
<shevy>
and you have to download more than 100MB to even use it
danshultz has joined #ruby
<bodie_>
now you're tempting me a wee tiny bit
<shevy>
no man
<bodie_>
but why should I take your word for it
<shevy>
don't go haskell
<benzrf>
that's just because of some kind of dumb thing where it has 5 different versions of stages of compilation for each thing in the libs and compiler and stuff
teenwolf has quit [Ping timeout: 272 seconds]
ner0x has quit [Client Quit]
aloitius_ has quit [Ping timeout: 245 seconds]
<shevy>
you'll end up as an elitist
<benzrf>
i dont even know why they need that i mean rly
<shevy>
yeah I dont know
<benzrf>
im not an elitist i just have ~class~
<shevy>
in 2005 or 2006 I got the haskell ghc and haskell was working
<benzrf>
>haskell glasgow haskell compiler
<shevy>
some years later I think in 2010 or something along those lines, I tried anew and it did not work
ghostfaceskrilla has joined #ruby
<bodie_>
hmm... become an elitist? the temptation grows
<bodie_>
but I could just be an elitist by being too elite to learn haskell
<shevy>
god bodie_ you'll end up like ulrich drepper that way
ghostfaceskrilla has left #ruby [#ruby]
einarj_ is now known as einarj
<benzrf>
haskell is so leet that it doesnt even have side effects
<bodie_>
that's not unique
<benzrf>
that's right every single function in haskell is referentially transparent!!
solars has quit [Ping timeout: 252 seconds]
<benzrf>
yeah but it's the only -practical- language like that
<benzrf>
everything else is for math only p much afaik
<bodie_>
define "practical" lol
<benzrf>
usable to write programs that people other than math majors will run
IceyEC has quit [Quit: IceyEC]
<shevy>
wait
jokke has quit [Read error: Operation timed out]
<shevy>
math majors love haskell
<shevy>
so something is wrong here
<bodie_>
so... like... math majors and IRC trolls will use my programs? awesome
<shevy>
nah
<shevy>
people don't use haskell
<benzrf>
i didnt say that math majors wont run haskell
<shevy>
so you would not reach IRC trolls bodie_
<benzrf>
just that other people will too
aloitius_ has joined #ruby
<benzrf>
look at xmonad !
<bodie_>
good point
<shevy>
elitist WM
<bodie_>
then again, that implies irc trolls are people
<shevy>
ruby has a WM too bodie_
<benzrf>
haskell has leet performance
<shevy>
C is faster
<bodie_>
C is faster than everything
<bodie_>
by definition
<benzrf>
AND it has a strong static type system with near-perfect inference!
<benzrf>
if you leave off type annotations nearly the only error you can get is ambiguous instance
nfk has joined #ruby
nfk has joined #ruby
<benzrf>
90% of problems with haskell programs show up as type errors
<benzrf>
true leetness rite there
<benzrf>
plus you dont have to write type annotations how awesome is that
<benzrf>
none of java's bullshit verbosity
<bodie_>
I read a breakdown somewhere saying that haskell isn't actually as fast as claimed since it has to be very carefully tailored to get the most out of its optimizations
<bodie_>
and that the kind of haskell that is optimal isn't very... haskelly
Vovko has joined #ruby
MarcWeber has quit [Ping timeout: 252 seconds]
axl_ has quit [Quit: axl_]
endash_ has joined #ruby
diegovio1 is now known as diegoviola
<bodie_>
I have to say though, that's definitely a huge plus (if not hugest) for the language (really good inference and error catching)
nfk has quit [Remote host closed the connection]
ecualombian has quit [Remote host closed the connection]
<bodie_>
benzrf -- have you checked out Rust at all?
MarcWeber has joined #ruby
<slowcon>
could you guys take a look at my script. i got the script to pull an array from a DB, and to iterate through each instance of the array. kind of hard to explain, but attached a picture for visual representation. http://pastebin.com/3f9PBqMT
<benzrf>
a little bit
jokke has joined #ruby
<benzrf>
bodie_: haskell is absolutely wonderful for bottom-up design btw
<benzrf>
and it will explode your brain
<benzrf>
unless you like, already know pure fp well
<bodie_>
i like exploding my brain, but there are other languages for that
<bodie_>
no, I don't but I'm getting interested
<bodie_>
I was thinking about taking the approach via Scala since it's somewhat practical in real-world terms
<centrx>
slowcon, Use Sequel's #where clause with update
<bodie_>
I'd looked through Rust, Erlang, and Clojure, but none of them were able to get a grip on my time since I don't really have time to devote to sitting down and learning a language for fun
alvaro_o has quit [Ping timeout: 252 seconds]
<bodie_>
shevy, any suggestions for a guide besides Why's? if that's dated
elaptics`away is now known as elaptics
aryaching_ has joined #ruby
<shevy>
well, there is a better guide but it is also outdated, so :(
<shevy>
bodie_ omg this is too painful to hear, your poor friend! now go to #RubyOnRails
aryaching has quit [Ping timeout: 272 seconds]
<bodie_>
not a rails fan eh?
<benzrf>
banister: an applicative is a type constructor T plus a function pure of type `a -> T a` plus a function <*> of type `T (a -> b) -> T a -> T b`
<shevy>
why did funk music die :(
rootshift_ has quit [Quit: My MacBook has decided to go to sleep. Zzzz..]
<shevy>
bodie_, sure I love railsers but only if you aggregate on another channel!
<bodie_>
because the soul died
nfk has quit [Client Quit]
<shevy>
soul was cool
Kricir has joined #ruby
<banister>
benzrf right :) i'd prefer a more intuitive explanation than one copy-pasted from a math journal ;)
<shevy>
K.C.!
ghostfaceskrilla has quit []
<bodie_>
well, for now I'm learning (and complaining) about Ruby before getting started with the web apps..... sigh
<shevy>
soultrain
<shevy>
nonono
<shevy>
that is the wrong approach
<benzrf>
banister: i was just givin u the spex
<shevy>
you dont need ruby for rails
<benzrf>
banister: how much haskell do you know?
<bodie_>
wat
<shevy>
just go into rails and ignore ruby
<shevy>
lemme try to remember who did that here...
<bodie_>
this sounds like a bad move
<bodie_>
I should go into Ruby and ignore Rails
<shevy>
AntelopeSalad <-- this guy
<banister>
benzrf a fair amount actually, haven't done it in a while, but i read about it, and i've done quite a bit in the past
<shevy>
AntelopeSalad, say something
<benzrf>
banister: cool
<benzrf>
banister: you know Functors yes?
<shevy>
bodie_ only if you need to use ruby but you dont
<banister>
benzrf Yeah
<shevy>
you'll be a railser so you will be web-stuff only
<bodie_>
*cries*
<shevy>
you will learn the ecosystem of rails and that was it
<banister>
benzrf and i actually understand applicative functors too, i was just wanting to hear your explanation, as i always learn a lot from fresh/different perspectives, and there's a lot of differnet want sof thinking about it i think
<bodie_>
I want a job that doesn't suck. Anyone? lol
<benzrf>
banister: applicatives are basically for mapping over multiple functors
<benzrf>
ah
<AntelopeSalad>
what's going on
<shevy>
it's a good thing bodie_! you dont need to know ruby for rails
<shevy>
AntelopeSalad you were the guy who learned rails first right?
<benzrf>
banister: the idea is that fmap is sufficient to alter the insides of a functor without altering the structure
IceyEC has joined #ruby
<bodie_>
this is me wrinkling up my nose in disgust at web frameworks for non-scientists
<shevy>
bodie_ the truth is most jobs suck
<AntelopeSalad>
shevy: no, not really
<benzrf>
banister: applicative functors are for merging multiple functor values
<shevy>
hmmm
<AntelopeSalad>
i at least ready through eloquent ruby before touching rails
RaCx has quit [Quit: Computer has gone to sleep.]
<benzrf>
banister: the structures are merged by the instance definition, the insides are merged by the function given
einarj has quit [Remote host closed the connection]
lmickh_ has joined #ruby
aryaching_ has joined #ruby
<YourBestFriend>
must I call the parent class constructor in my constructor?
aryaching has quit [Ping timeout: 264 seconds]
<benzrf>
why?
<benzrf>
*wuould you have to
Soliah has quit [Quit: Soliah]
kebabski has joined #ruby
<YourBestFriend>
well is it automatically called if I don't call it?
RoryHughes has quit []
xargoon has joined #ruby
dingus_khan has joined #ruby
nfk has joined #ruby
diegoviola has quit [Quit: WeeChat 0.4.3]
caesura has joined #ruby
vlad_starkov has joined #ruby
Vivekananda has joined #ruby
aspiers has joined #ruby
Jdubs_ has joined #ruby
unholycrab is now known as herosake
herosake is now known as unholycrab
_HolyCow has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
gregf1 has joined #ruby
interactionjaxsn has joined #ruby
destructure has quit [Ping timeout: 260 seconds]
atmosx has quit [Quit: Lost in trance]
jokke has quit [Ping timeout: 260 seconds]
subbyyy has quit [Ping timeout: 260 seconds]
ageis has quit [Ping timeout: 260 seconds]
kewubenduben has quit [*.net *.split]
Jdubs has quit [*.net *.split]
alexherbo2 has quit [*.net *.split]
vpretzel has quit [*.net *.split]
philcrissman has quit [*.net *.split]
gregf has quit [*.net *.split]
sepp2k1 has quit [*.net *.split]
apeiros has quit [*.net *.split]
devdazed has quit [*.net *.split]
lmickh has quit [*.net *.split]
AlSquire has quit [*.net *.split]
LadyRainicorn has quit [*.net *.split]
daidoji has quit [*.net *.split]
adeponte has quit [*.net *.split]
firefly2013 has quit [*.net *.split]
esuave has quit [*.net *.split]
Tarential has quit [*.net *.split]
multi_io has quit [*.net *.split]
defrag has quit [*.net *.split]
verto has quit [*.net *.split]
yeltzooo has quit [*.net *.split]
LiquidInsect has quit [*.net *.split]
hl has quit [*.net *.split]
soulcake has quit [*.net *.split]
awkisopen has quit [*.net *.split]
netf has quit [*.net *.split]
Caius has quit [*.net *.split]
v0n has quit [Ping timeout: 245 seconds]
Jdubs_ has quit [Remote host closed the connection]
devdazed has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
lurch_ has quit [Quit: lurch_]
alexherbo2 has joined #ruby
vpretzel has joined #ruby
adeponte has joined #ruby
apeiros has joined #ruby
firefly2013 has joined #ruby
philcrissman has joined #ruby
AlSquire has joined #ruby
LadyRainicorn has joined #ruby
Tarential has joined #ruby
multi_io has joined #ruby
defrag has joined #ruby
esuave has joined #ruby
verto has joined #ruby
sepp2k1 has joined #ruby
LiquidInsect has joined #ruby
yeltzooo has joined #ruby
soulcake has joined #ruby
Caius has joined #ruby
netf has joined #ruby
awkisopen has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
yeltzooo has quit [Max SendQ exceeded]
Vivekananda has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
yeltzooo has joined #ruby
macclearich has joined #ruby
hl has joined #ruby
adeponte has quit [Ping timeout: 260 seconds]
Vivekananda has joined #ruby
<jsilver>
hey you guys know the best way to say of course is OV CORZE right?
<jsilver>
ov corze it is
interactionjaxsn has quit [Ping timeout: 245 seconds]
LexicalScope has quit [Read error: Connection reset by peer]
<Sloggerkhan>
How do I reference self from a module in such a way that it references the class the module is included in instead of the scope the module is defined in? Or is inheritance the only way to share a class method?
RoryHughes has joined #ruby
LexicalScope has joined #ruby
bricker_ has joined #ruby
<centrx>
SloggerKhan, What would be the natural way to do it?
bricker has quit [Ping timeout: 265 seconds]
<Sloggerkhan>
centrx: I'd lean towards module since there are a few other related non-class methods and the code will be used in several unrelated classes, but I could always register the classes and then extend them as startup initialization.
Al___ has quit [Quit: Al___]
Vovko has quit [Remote host closed the connection]
adeponte has joined #ruby
Zackio has quit [Ping timeout: 272 seconds]
<Sloggerkhan>
centrx: I'm not sure if I'm missing something, though.
gigetoo has quit [Ping timeout: 272 seconds]
ccooke has quit [Ping timeout: 272 seconds]
mosez has quit [Ping timeout: 272 seconds]
mosez has joined #ruby
ccooke has joined #ruby
sambao21 has joined #ruby
gigetoo has joined #ruby
bricker has joined #ruby
<centrx>
SloggerKhan, Can't you use self.class ?
bogeyd6 has quit [Ping timeout: 264 seconds]
Zackio has joined #ruby
relix has joined #ruby
<Sloggerkhan>
In a module it won't reference the right self even once included.
<toretore>
SloggerKhan: what do you mean by reference?
rmorello has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
aryaching_ has quit [Read error: Connection reset by peer]
<centrx>
SloggerKhan, So what you really mean is you want to define a class method in the module
aryaching has joined #ruby
<platzhirsch>
My method does 1 Mechanize.get and multiple Mechanize.head. The .get is attributed with 88% total time and the .head with 83% ... how does that add up?
<Sloggerkhan>
centrx: yes
<Sloggerkhan>
I think that's what I said
<centrx>
Not sure how we get there from "How do I reference self from a module in such a way that it references the class the module is included in instead of the scope the module is defined in?"
ndrei has quit [Ping timeout: 245 seconds]
<centrx>
Classic XY problem
andy has joined #ruby
dblessing has quit [Quit: dblessing]
<Sloggerkhan>
anyway, yeah I guess what I asked was needlessly overcomplicated
chinkung has quit [Ping timeout: 272 seconds]
weems has quit [Read error: Connection reset by peer]
<|jemc|_>
anybody having played the field with this topic a bit have a suggestion for NoSQL server that plays nicely with Ruby, supports subscriptions, and has low latency times for small data sizes when not crossing into the WAN?
<jsilver>
yes that's right eval-in! exactly right!
thams has joined #ruby
weems has quit [Max SendQ exceeded]
weems has joined #ruby
pu22l3r_ has joined #ruby
freezey has joined #ruby
weems has quit [Max SendQ exceeded]
weems has joined #ruby
bean has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
freezey has quit [Remote host closed the connection]
<jsilver>
>> 84*5 + "weed"
<eval-in>
jsilver => String can't be coerced into Fixnum (TypeError) ... (https://eval.in/102931)
pu22l3r has quit [Ping timeout: 245 seconds]
<jsilver>
BobMarleyError
venkat_ has joined #ruby
pu22l3r_ has quit [Ping timeout: 246 seconds]
venkat_ has quit [Client Quit]
mercwithamouth has quit [Ping timeout: 260 seconds]
discord_ has joined #ruby
andy has quit [Remote host closed the connection]
<benzrf>
jsilver: braev
msmith has quit []
Jetchisel has joined #ruby
<discord_>
I'm trying to use string.index to match '<li class "product-list-title"><a href="' , but the matches are not happening. I am aware there are libraries made for working with html, and I know some regular expressions, but I'd like to know what might be causing index not to match. Any suggestions
jherbst has quit [Ping timeout: 260 seconds]
<discord_>
?
<centrx>
Substring is not in string?
petey has quit [Read error: Connection reset by peer]
<discord_>
centrx: I think I get null
caesura has quit [Quit: i'm no simpleton]
<discord_>
nil
petey has joined #ruby
<benzrf>
discord_: you cannot parse html with regex