danshultz has quit [Remote host closed the connection]
<n_blownapart>
apologies to cent*rx if s/he is on, but I'm still confused about some code from yesterday here, re: lines 3 and 4 : http://pastie.org/9151490 .
timonv has joined #ruby
Synthead has quit [Ping timeout: 255 seconds]
danshultz has joined #ruby
<benzrf>
n_blownapart: don't use pastie, use gist !
<n_blownapart>
benzrf: alright one sec
axl_ has joined #ruby
eka has quit [Ping timeout: 276 seconds]
<benzrf>
nbd
<benzrf>
just a recommendation :u
i_s has joined #ruby
<benzrf>
also i am not a big fan of that code o-o
tjr9898 has joined #ruby
terrell_t has quit [Remote host closed the connection]
onk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
onk has joined #ruby
nateberkopec has joined #ruby
timonv has quit [Ping timeout: 250 seconds]
onk has quit [Client Quit]
danshultz has quit [Ping timeout: 252 seconds]
ner0x has joined #ruby
ner0x has quit [Remote host closed the connection]
i_s has quit [Ping timeout: 255 seconds]
bradhe has quit [Remote host closed the connection]
nateberkopec has quit [Read error: No route to host]
<n_blownapart>
my question is on lines 3 and 4, that those are two indices [0] [-1] on an array with a maximum length of 2....actually, if someone would walk me through the program flow of this code..
nateberkopec has joined #ruby
<n_blownapart>
my confusion began with the necessity to use [-1] on line 4, instead of say, [1].
mercwithamouth has quit [Ping timeout: 240 seconds]
<n_blownapart>
since [0,1] is the maximum allowable length : if rocks_arr.length <= 2
lmickh has quit [Remote host closed the connection]
pu22l3r has joined #ruby
<n_blownapart>
but then I realized I couldn't follow the recursive behavior very well...
nanoyak has quit [Quit: Computer has gone to sleep.]
obs_ has quit [Remote host closed the connection]
GaryOak_ has quit [Ping timeout: 252 seconds]
mrmargolis has quit [Remote host closed the connection]
<n_blownapart>
thanks benzrf I understand that much.
<n_blownapart>
but..
cashnguns has joined #ruby
atmosx has quit [Remote host closed the connection]
<n_blownapart>
if there are only two rocks coming from the randomizer / iteration, and they are say 120 lbs and 133 lbs, 133 would go to b = rocks_arr[-1] , right?
<benzrf>
y
atmosx has joined #ruby
<n_blownapart>
so b = rocks_arr[-1] could be represented as rocks_arr[1], since there are only a maximum of 2 elements allowed on line 2 (rocks_arr[0,1]
<n_blownapart>
)
sambao21 has quit [Quit: Computer has gone to sleep.]
bkparso has joined #ruby
jimbow has quit [Quit: Lost terminal]
jamto11 has joined #ruby
b00stfr3ak has quit [Ping timeout: 276 seconds]
funburn has quit [Ping timeout: 264 seconds]
<benzrf>
n_blownapart: yep
<benzrf>
in fact i myself would use .first & .last
<n_blownapart>
benzrf: that's what I thought but [1] creates an error.
<benzrf>
how strange
<benzrf>
oic
<benzrf>
that's if there's only one element
<benzrf>
-1 will be the last one, which is also the first one
<n_blownapart>
whats oic
testcore has quit [Quit: [BX] Free sex with a BitchX upgrade! Call for details!]
tjr9898_ has quit [Remote host closed the connection]
psyko666 has joined #ruby
arrubin has joined #ruby
codeFiend has joined #ruby
<n_blownapart>
benzrf: sorry to bug you, but I can't see how this code works, beginning with the if part of the if/else statement.
mrmargolis has joined #ruby
<benzrf>
oic == oh i see
i_s has joined #ruby
tjr9898_ has joined #ruby
i_s has quit [Read error: Connection reset by peer]
<n_blownapart>
oic
Jaden has joined #ruby
<Jaden>
hi
i_s has joined #ruby
<Jaden>
Can ruby be used for serious web apps that need to scale?
i_s has quit [Read error: Connection reset by peer]
<DouweM>
sure
toastynerd has joined #ruby
i_s has joined #ruby
<Jaden>
I heard twitter had a problem with ruby and had to fake a demo to the Russian president becuase the system was too slow even after moving some back-end processes away from ruby.
<katlogic>
Yes
i_s has quit [Read error: Connection reset by peer]
<katlogic>
That being said, github runs on ruby :)
<Jaden>
they eventually had to chuck ruby altogether.
dik_dak has quit [Quit: Leaving]
i_s has joined #ruby
<DouweM>
kickstarter and airbnb as well
mrmargolis has quit [Remote host closed the connection]
<katlogic>
Jaden: The answer is always the same. Just throw more hardware at the problem.
<DouweM>
they're not quite at twitter or google levels of scale, but they're not small by any means
nowthatsamatt has joined #ruby
eynj has joined #ruby
i_s has quit [Read error: Connection reset by peer]
kitak_ has joined #ruby
<DouweM>
(I meant twitter or facebook, although google is obvs too large for ruby as well)
<Jaden>
google uses C++ for the core of their search. They are like super optimized.
i_s has joined #ruby
<havenwood>
>> require 'rubygems/text'; include Gem::Text; levenshtein_distance 'google', 'facebook'
i_s has quit [Read error: Connection reset by peer]
<Jaden>
google is using C++ for everything. Even chrome.
<DouweM>
the mistake happened in my head not my hands
Zenigor has joined #ruby
<benzrf>
i thought they used java + python
<katlogic>
Jaden: Depends. Internally, google is pretty wild mix, its the least opinionated tech giant I know.
i_s has joined #ruby
krazh has quit [Remote host closed the connection]
<katlogic>
Sure the raw engine is almost all C++, but just head over to youtube ...
<Jaden>
They use c++ for their core products. Python as glue. Not sure what they use java for but ti's not search.
<Jaden>
youtube is not a google product. It was purchased by google.
krazh has joined #ruby
<katlogic>
Obviously. Which does not make it google product and they kept the code same as it was in 2006.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Jaden>
Maybe we should emulate google and write our web apps in C++. It seemd to work for google and thye are the kings now.
<katlogic>
Go ahead :)
<Jaden>
seems like all the companies that go native are the kings. FAcebook, Apple, and microsoft.
zz_karupa is now known as karupa
<katlogic>
Huh?
<Jaden>
companies that write their core products in C, C++, or Objective-C.
<Jaden>
native, non-garbage collected languages.
<katlogic>
ms is asp.net, fb is php, apple is webscript :)
tjr9898_ has quit []
x1337807x has joined #ruby
<Jaden>
ms doesn't use asp.net for their core products. It's all c and c++. proven by gthe leaked source of windows NT.
<drizz>
wat
<katlogic>
I see. Would you please keep us entertained on higher levels than this failtroll?
<Jaden>
asp.net is to microsoft as python is to google. The money making products don't use it.
<benzrf>
what is webscript
<katlogic>
benzrf: itunes.
papercode has quit [Quit: WeeChat 0.4.4-dev]
i_s has quit [Ping timeout: 255 seconds]
dideler|work has joined #ruby
<benzrf>
i mean what is the lang
<Jaden>
face book really is biggy backing on C-programs. LIke mySql. They use the php as glue and have rewritten most of their important stuff to C++ and D.
askldjuio2 has joined #ruby
<Jaden>
when you use face book in 2014 you are essentially using a c++ program.
<DouweM>
Jaden: you sure? they didn't write Hack for nothing
<Jaden>
seems like all the big players are using C++ for their web apps. So why should I use ruby?
funburn has joined #ruby
<drizz>
because you aren't a multi-million dollar company with 600+ employees?
<DouweM>
Jaden: because you're not yet at a place where the difference in performance makes up for the difference in ease of development
askldju^87 has joined #ruby
<katlogic>
benzrf: Bastardized objc more or less.
<DouweM>
katlogic: interesting
tjr9898_ has joined #ruby
<drizz>
multi-billion dollar, sorry
<Jaden>
but c++14 is easie than ruby.
<shevy>
Jaden what do you have to say to Hack man
<Jaden>
c++14 gives you teh easy of ruby with the performance of assembly.
<DouweM>
Jaden: no one's stopping you
pu22l3r has quit [Remote host closed the connection]
<shevy>
teh easy
<drizz>
sure, knock yourself out
<DouweM>
and yeah, the FB is C++ sounds like bs
<havenwood>
Jaden: maybe you should write a kernel?
<shevy>
wif ze money me gets teh easy
<DouweM>
lol
<havenwood>
facebook is hack and php
asdklji2 has quit [Ping timeout: 258 seconds]
<havenwood>
not some sekret C++ shop
<shevy>
Jaden what language are you using?
<drizz>
havenwood: but writing a kernel is easy
<drizz>
just add some c++14 and you're done
<katlogic>
C++ is web scale. Unless you you use boost and threading, because your app would die of lock contention.
<Jaden>
FB rewrote most of their stuff to C++. They use php only as a glue now. Like google uses python in it's search as glue when c++ is the program.
<DouweM>
Jaden: [citation needed]
<katlogic>
Crappy C++ programmers are the reason why things like node.js exists. If you can't fail at locking things are cloud-worthy.
soheil_ has joined #ruby
* katlogic
is exhausted from all webscale yuppie talk
<krazh>
c++ for web i think the only benefit is performance
<Jaden>
just wanted to make sure you ruby people new that C++14 is easy as ruby but fast as assembly.
<DouweM>
Jaden: [citation needed]
<katlogic>
:)
soheil has quit [Read error: Connection reset by peer]
<ixx>
how do people handle tests with libraries that use api keys or passwords while not committing the credentials? Is it reasonable to expect that a test suite will not even run until keys are put in place?
<Jaden>
look at the C++14 videos on youtube. YOu can make stuff in c++14 as easy as ruby and it has labmdas and you don't have to type out the types.
<DouweM>
Jaden: "as easy as ruby" [citation needed]
<drizz>
but in Ruby, you barely even have to type out the lambdas!
<DouweM>
Jaden: be more specific
<krazh>
but you still have to compile code
<Jaden>
Yeah, but with clang you don't need to compile to get all the nice thigns that interpreted langauges get.
<drizz>
like... what?
<Jaden>
clang with C++14 = blows ruby out of the water.
<ixx>
DouweM: okay that is where I am going. I do not see much consensus.
<DouweM>
ixx: consensus is with mocking all comm. your test suites should require an internet connection or any external input in the form of api keys
<Jaden>
like code formating. Auto-completion (way better than ruby anyway since it's a static langague). Runnign it wihtout compileing. etc
benwoody has joined #ruby
toastynerd has quit [Remote host closed the connection]
<drizz>
running it... without compiling it?
<Jaden>
clang has lifted c++14 up to the next level of awesome tool features. Ruby no longer has any advanges.
<drizz>
aha
<DouweM>
Jaden: "blows out of the water" [citation needed] "no longer has any advantages" [citation needed]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<DouweM>
Jaden: give us some actual examples
<katlogic>
drizz: Sadly Jaden is right, it is possible.
<DouweM>
Jaden: of C++14 being easier to use/better than Ruby
<Jaden>
clang + emacs + c++14 = the best start up language that google, apple, face book, and microsoft have used to conquer the market.
x1337807x has joined #ruby
<katlogic>
He didn't do his full c++14 troll homework tho.
<katlogic>
inb4 he googles the cern c++ jit/repl compiler :)
<DouweM>
lol now suddenly everyone uses C++14
cafhacker has joined #ruby
Rahul_Roy has quit [Quit: Connection closed for inactivity]
<DouweM>
and emacs and clang became languages!
<ixx>
DouweM: i should say i see a bunch of gems not mocking. env vars and other stuff in use. does not feel right. i'll continue mocking. thanks
hamakn has joined #ruby
<Jaden>
clang lets you do thigns that normally you had to compile to do. So ti's like working in an interpreted lanaguage.
x1337807x has quit [Client Quit]
andrewjanssen has quit [Quit: Leaving...]
<katlogic>
Jaden: I heard there are now Boost templates which give superpowers, even when using g++.
mikecmpbll has quit [Quit: ciao.]
<Jaden>
the modern c++14 toolchain just rocks so hard. I dont' understnad why people bother with failed Twitter langauges like ruby anymore.
<DouweM>
obvious troll is obvious
<Jaden>
lol, they actually replaced Ruby with Java. That's got to be embarassing. Converting to java for a peformance boost. lol.
<krazh>
ruby is not failed as a language is only a syntax the thing may be the interpreter needs to get better
asdf has joined #ruby
Es0teric has quit [Read error: Connection reset by peer]
<havenwood>
Jaden: Go. Nimrod. Rust.
asdf is now known as Guest18759
<Jaden>
pfftt. Go doesnt' ahve generics. Nimrod/rust garbage collected, no?
<Guest18759>
Anyone here have experience going into a programming role or entry IT role from another field of work?
<havenwood>
Jaden: no, i'm suggesting those would be more appropriate languages for you to go troll
thomasxie has joined #ruby
<Jaden>
c++14 is a more modern lanague than Go. Seriously go is like C with sweeter things, but still fails in teh same areas as C.
<Guest18759>
I really want to get into programming or IT, applying for a CS degree right now, but already have a degree and also work in the finance world right now.
<havenwood>
Jaden: #go-nuts
<n_blownapart>
if there are only two elements in an array, can't they the first be given the placemarker arr[0] ... and the second either arr[1] or arr[-1] ?
pika_pika has joined #ruby
<havenwood>
Guest18759: Lots of devs don't have cs degrees. Doesn't really come up.
Es0teric has joined #ruby
<Jaden>
Go is a half-way decent langauge. NO need to go to their go-nuts channel. They fall short of C++14 and it's clang tools, but compared to ruby they are lightyears ahead.
<Guest18759>
havenwood: Do you work in that field rgiht now?
jamto11 has quit [Remote host closed the connection]
<havenwood>
Guest18759: yup
danshultz has joined #ruby
<arrubin>
Guest18759: Finance is far more competitive than most industries for developers.
alexju has quit [Remote host closed the connection]
whomp has quit [Ping timeout: 245 seconds]
<Guest18759>
arrubin: You work in the field?
begova has joined #ruby
<Guest18759>
or not yet?
n_blownapart has quit []
<Jaden>
in finacne they use C++. Not a good field for ruby devs.
<arrubin>
Guest18759: No, but I am generally aware of it.
<krazh>
the thing i like from ruby is it has a beautiful language syntax way better than c++ or javascript
<Guest18759>
ok, was just curious.
<havenwood>
Jaden: I don't think you'll find any C++ converts here, whether 98 or 14
<Guest18759>
Jaden, they use Java I know because I asked.
<Guest18759>
Some use C++.
<Jaden>
you talking c++ or c++14? becuase c++14 has syntax just as good as ruby.
Shidash has joined #ruby
<Guest18759>
As well.
<krazh>
c++
Hobogrammer has joined #ruby
<begova>
sorry for interrupting. how can I join rails channel?
<havenwood>
begova: register your nick then #rubyonrails
<rOOb>
I'm not using any kinda http proxy...which from googling people mention is causing this....but I'm using laptop on my home network with no proxy in place
Es0teric has quit [Read error: Connection reset by peer]
jack_rabbit_ has joined #ruby
<Xeago>
make an array of size n, where each element is an array
sepp2k has joined #ruby
<Xeago>
then loop over the array, from 0-m
<Xeago>
add to input[m] to array[m%n]
Es0teric has joined #ruby
RaptorJesus has joined #ruby
twiceaday has joined #ruby
razrunelord has joined #ruby
relix has joined #ruby
dangerousdave has joined #ruby
<tobago>
Xeago, quit don't understand. can you give a draft of your algo?
<tobago>
quite
dideler|work has joined #ruby
jack_rabbit has quit [Ping timeout: 265 seconds]
<tobago>
what is input?
jack_rabbit_ is now known as jack_rabbit
ari-_-e has joined #ruby
twiceday has quit [Ping timeout: 252 seconds]
<apeiros>
tobago: "but returning a "matricified" version", "no. by return I … return nil" - eh, what now?
<apeiros>
also a matrix would not have differing number of items in each row
razrunelord has quit [Ping timeout: 255 seconds]
<apeiros>
it seems to me you want to split an array into N chunks, but with some kind of balancing algorithm (instead of having the last array have the remaining elements)
Ardenzi has joined #ruby
<tobago>
apeiros, that's why I cited it. Obviously it's not a matrix.
<Xeago>
input is your [0,1,2,3,4,5,6,7,8,9]
<apeiros>
you mean "put in quotes"?
<tobago>
apeiros, I posted my version of algo (which is messy). and added some expected example outputs
<tobago>
apeiros, the "behaviour" should be similar to slice, but the sub arrays should be in a different order tha slice does.
<apeiros>
avg_size = array.size.quo(columns); (columns-1).times do |i| yield(array[(i*avg_size).round..((i+1)*avg_size).round]) end; yield(array[((columns-1)*avg_size).round..-1]) # might have an off by one error
<tobago>
than
mengu has quit [Remote host closed the connection]
funburn has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<apeiros>
ah, I see
<tobago>
apeiros, a block parameter?
mengu has quit [Remote host closed the connection]
<apeiros>
mine chunks, you don't want chunking.
rdark has joined #ruby
PC_2 has joined #ruby
greenarrow has joined #ruby
<tobago>
apeiros, I want chunks.
<tobago>
apeiros, iterating over result chunks [[1, 4, 7, 10, 13], [2, 5, 8, 11], [3, 6, 9, 12]] for example
funburn has quit [Client Quit]
sl33k_ has quit [Changing host]
sl33k_ has joined #ruby
<tobago>
apeiros, the number of chunks depends on the "columns" number.
<tobago>
apeiros, and the chunks are in a different order than the original.
<tobago>
sorry. I mean the items of the chunks
<apeiros>
tobago: no, those are not chunks
<apeiros>
a chunk would retain the order from which it was chunked
<tobago>
apeiros, o.k. than that is my misunderstanding of chunks.
Aryasam has joined #ruby
<apeiros>
you want the array transposed
Aryasam has quit [Client Quit]
<tobago>
apeiros, right! that is the correct math word for it.
<apeiros>
the difficulty is that your sliced array is not a matrix
<tobiasvl>
god thank you, I was searching wikipedia for that term
User458764 has joined #ruby
<tobago>
apeiros, right.
<apeiros>
so array.each_slice(n).to_a.transpose won't work
<tobiasvl>
"is it an INVERTED matrix? no, no!"
centrx has joined #ruby
codeFiend has quit [Quit: codeFiend]
franzip has joined #ruby
dangerousdave has quit [Read error: Connection reset by peer]
funburn has joined #ruby
agrinb has joined #ruby
i_s has joined #ruby
Macaveli has joined #ruby
alem0lars has joined #ruby
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
skaflem has joined #ruby
ghr has joined #ruby
andikr has quit [Remote host closed the connection]
agrinb has quit [Ping timeout: 255 seconds]
i_s has quit [Ping timeout: 250 seconds]
oo_ has quit [Remote host closed the connection]
User458764 is now known as User458764_NotHe
klaut has joined #ruby
Lewix has quit [Remote host closed the connection]
<apeiros_>
not a ruby method. but from the context, I'd guess it's rails, so you'd have to check rails sources for Proc#bind
krz has quit [Quit: WeeChat 0.4.3]
Beoran__ has quit [Ping timeout: 276 seconds]
Shidash has joined #ruby
nateberkopec has joined #ruby
<mosez>
it is a rails app, yes... i'm updating it from 2.3 to 4.1 and ruby 2. and i simply want to bind the methods of the class to the scope of the block :(
Zespre has joined #ruby
<mosez>
i dont want to rewrite all templates that use this "dsl" from = attributes_for @proposal do into = attributes_for @proposal do |foo| :(
<mosez>
within my example: Dsl::Proposal::Attribute defines the method header, and as you can see i can call the method directly within the block
sooik has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<toretore>
you could just do attribute.instance_eval(&:block)
<Nilium>
I'd say this is a lot of work for a hack when you could just write it normally.
<Nilium>
Is the faux-DSL thing really that important?
jarred has quit [Ping timeout: 264 seconds]
razrunelord has joined #ruby
mercwithamouth has joined #ruby
smaboshe has joined #ruby
oo_ has joined #ruby
sk87 has joined #ruby
razrunelord has quit [Ping timeout: 255 seconds]
karupa is now known as zz_karupa
RubyPanther has quit [Ping timeout: 264 seconds]
Trynemjoel has quit [Ping timeout: 245 seconds]
vali has quit [Quit: Reconnecting]
vali has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
funburn has joined #ruby
spyderman4g63 has joined #ruby
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
apeiros_ has quit [Remote host closed the connection]
mattmcclure has quit [Quit: Connection closed for inactivity]
brtdv has quit []
chrisseaton has joined #ruby
workmad3 has joined #ruby
spyderman4g63 has quit [Ping timeout: 255 seconds]
ihitdisplay has quit [Read error: Connection reset by peer]
dideler|work has quit [Ping timeout: 258 seconds]
workmad3_ has joined #ruby
_justin has quit [Ping timeout: 252 seconds]
workmad3 has quit [Ping timeout: 258 seconds]
Emmanuel_Chanel has quit [Ping timeout: 250 seconds]
AlSquire has joined #ruby
i_s has joined #ruby
<timgauthier>
apples all like YOU GET 8 HOURS FROM YOUR MACBOOK AIR or 9 hours
<timgauthier>
my macbook air needs a new battery, and i definitely don't get that long, after 4 hours of work pluggin in sucks.
Trynemjoel has joined #ruby
workmad3 has joined #ruby
shvelo has quit [Ping timeout: 252 seconds]
workmad3_ has quit [Ping timeout: 255 seconds]
_justin has joined #ruby
sooik has quit [Ping timeout: 265 seconds]
<mosez>
nilium: it is important because it's implemented that way in various views on many different repositories -.-
Bruno_ has joined #ruby
<Nilium>
So fix 'em?
i_s has quit [Ping timeout: 258 seconds]
<timgauthier>
shevy why so much ruby... :O!
<timgauthier>
Nilium go for it, plenty of things that need it ;)
kyb3r_ has quit [Read error: Connection reset by peer]
<Nilium>
I mean the views using the broken hack pseudo-DSL
<Nilium>
Make them stop using it
snath has quit [Ping timeout: 258 seconds]
ryotarai has quit [Ping timeout: 245 seconds]
ryotarai has joined #ruby
<mosez>
what's broken on it?
<mosez>
imho it's not broken... it's quite easy to write and learn von non ruby devs...
<timgauthier>
mosez people don't like having more then one way to do something ;)
subraminion__ has joined #ruby
subraminion_ has quit [Read error: Connection reset by peer]
<workmad3>
timgauthier: I love having more than one way to do things
<timgauthier>
me too workmad3 me 2
<mosez>
workmad3: so go back to perl :P
<workmad3>
timgauthier: gives me a reason to procrastinate while choosing ;)
<timgauthier>
hey, you still in #design workmad3 ?
<timgauthier>
hahaha
<workmad3>
nah, didn't save it to my autojoins
<Nilium>
I'm largely opposed to the whole DSL thing 'cause it's a stupid hack that rests on it not actually being a DSL but crapping on Ruby to make it look pretty
<timgauthier>
i left after they where dicks :P but turns out that I just don't fit most of the design world lol
<workmad3>
mosez: why? ruby is also all about multiple ways of doing stuff and doesn't look like my cat had an epileptic fit on my keyboard ;)
<timgauthier>
hahha
<mosez>
workmad3: but while you've got 2 options on ruby you've got 10 options on perl :P
Trynemjoel has quit [Ping timeout: 245 seconds]
Xeroa has joined #ruby
Martxel has joined #ruby
<Nilium>
At any rate, it's mostly a matter of opinion. They've evidently got a ruby dev to fix it, so I see no reason to continue to support something that'll break between Ruby versions, Rails versions, etc. when you could just write normal Ruby
nwertman_ has joined #ruby
AntelopeSalad_ has joined #ruby
<timgauthier>
then lets get working mosez, we need to make 8 more options!
<workmad3>
mosez: yeah, in perl you have 1 readable way and then 9 'correct' ways that look like someone was just randomly generating ascii chars > 127 ;)
<timgauthier>
is that how we ended up with the crap that is regex?
<mosez>
:)
<workmad3>
timgauthier: no, regex came first, I believe
<mosez>
nilium: and what should you write instead?
<workmad3>
timgauthier: and besides, sometimes you don't need more than a regular language to solve your problems
<timgauthier>
so they looked at regex and said, MAN I LOVE THIS SYNTAX AND MAKING WEIRD ARBITRARY PATTERN MATCHING! LETS MAKE A LANGUAGE~!!
Gnubie__ has joined #ruby
<Nilium>
By regular expressions you mean the freight train people throw at the mouse they see on the porch, right?
<workmad3>
(here, I'm using 'regular' as the classification that applies to regular expressions :) )
<Nilium>
mosez: Remember when you wrote `do |foo| … end` and whatnot? Do that.
<workmad3>
timgauthier: more like 'hey, I love this weird arcane regular language... lets make it turing complete!!!!'
mahlon_ has joined #ruby
<timgauthier>
lol
<Nilium>
Then, you don't have to use instance_eval or attempt to change a block's binding (completely doable, but a very bad idea) or any other things that make your life worse
PaulePan1er has joined #ruby
ec_ has joined #ruby
<workmad3>
Nilium: how about ' block.arity > 0 ? block.call(self) : instance_eval(&block)'? ;)
lotherk_ has joined #ruby
jiriki- has joined #ruby
wmoxam_ has joined #ruby
Muz_ has joined #ruby
Rubeh_ has joined #ruby
pdtpatri1k has joined #ruby
sputnik1_ has joined #ruby
smaboshe has left #ruby [#ruby]
<mosez>
nilium: 1) then i've got to refacter ALL components. 2) much more chars to type. 3) unnecessary bloated lines of code :(
JarJarBi1ks has joined #ruby
<Nilium>
#2 is a side-effect of code and you should get used to it
<Nilium>
#3 is .. not really proven to be an issue in your case, actually.
Shidash has quit [Ping timeout: 265 seconds]
eka has joined #ruby
<Nilium>
If anything, #3 might result from you trying to patch in a fake DSL.
<Nilium>
#1 is programming in a nutshell.
yfeldblum has quit [Remote host closed the connection]
<workmad3>
mosez: I might have said it to provide more fuel for Nilium's rage, but you could still check the block's arity to allow for a staged refactoring
<Nilium>
Shouldn't have depended so much on a version-specific fake DSL if you didn't want to have to refactor stuff.
<workmad3>
mosez: so you introduce the ability to pass in the object rather than change the context and then slowly move stuff over
Trynemjoel has joined #ruby
klaut_ has joined #ruby
<Nilium>
workmad3: I couldn't figure out the context for your question
<Nilium>
It's 4am, my brain's running on far less than vapors at this point
davedev24 has quit [Remote host closed the connection]
<workmad3>
Nilium: I was giving you a rage-building line of code ;) 'hey, lets check the arity of the block and instance_eval it on the current object if it takes no params!'
davedev24 has joined #ruby
spacemud_ has joined #ruby
quantsini_ has joined #ruby
flagg0204_ has joined #ruby
<Nilium>
I've probably done that at some point
cwc- has joined #ruby
<mosez>
and version specific fake dsl? i think that's for most block related stuff while switching from ruby 1.8 to something >= 1.9
pgmcgee- has joined #ruby
Brando753-o_O_o has joined #ruby
mburns_ has joined #ruby
peeja_ has joined #ruby
SirFunk_ has joined #ruby
eka has quit [Client Quit]
ari-__-e has joined #ruby
oddie_ has joined #ruby
<Nilium>
mosez: No, trust me, Rails is weird and full of horrors, blocks did not break between 1.8 and 1.9
<workmad3>
Nilium: of course, I haven't bothered to look at any logs to see the context of mosez's question :)
klaut has quit [Ping timeout: 250 seconds]
peeja has quit [Ping timeout: 252 seconds]
Cork has quit [Ping timeout: 252 seconds]
nwertman has quit [Ping timeout: 252 seconds]
flagg0204 has quit [Ping timeout: 252 seconds]
mburns has quit [Ping timeout: 252 seconds]
spacemud has quit [Ping timeout: 252 seconds]
Brando753 has quit [Ping timeout: 252 seconds]
PaulePanter has quit [Ping timeout: 252 seconds]
onewheelskyward has quit [Ping timeout: 252 seconds]
crome has quit [Ping timeout: 252 seconds]
quantsini has quit [Ping timeout: 252 seconds]
mahlon has quit [Ping timeout: 252 seconds]
ec has quit [Ping timeout: 252 seconds]
lotherk has quit [Ping timeout: 252 seconds]
mclee has quit [Ping timeout: 252 seconds]
pdtpatrick has quit [Ping timeout: 252 seconds]
ari-_-e has quit [Ping timeout: 252 seconds]
sputnik13 has quit [Ping timeout: 252 seconds]
onewheelskyward has joined #ruby
pgmcgee has quit [Ping timeout: 252 seconds]
MissionCritical has quit [Ping timeout: 252 seconds]
jtz has quit [Ping timeout: 252 seconds]
Rylee has quit [Ping timeout: 252 seconds]
SirFunk has quit [Ping timeout: 252 seconds]
ping_pong has quit [Ping timeout: 252 seconds]
oddie has quit [Ping timeout: 252 seconds]
Rudde has quit [Ping timeout: 252 seconds]
jiriki has quit [Ping timeout: 252 seconds]
dinoex has quit [Ping timeout: 252 seconds]
JarJarBinks has quit [Ping timeout: 252 seconds]
jokke has quit [Ping timeout: 252 seconds]
kaichanvong has quit [Ping timeout: 252 seconds]
Rubeh has quit [Ping timeout: 252 seconds]
AntelopeSalad has quit [Ping timeout: 252 seconds]
wmoxam has quit [Ping timeout: 252 seconds]
Muz has quit [Ping timeout: 252 seconds]
cwc has quit [Ping timeout: 252 seconds]
Gnubie_ has quit [Ping timeout: 252 seconds]
spacemud_ is now known as spacemud
SirFunk_ is now known as SirFunk
peeja_ is now known as peeja
Rylee_ has joined #ruby
dinoex has joined #ruby
snath has joined #ruby
<Nilium>
Anyway, it's your call: temporary safety net by hacking in support for an old thing or fixing the real problem (the use of old code)
jtz has joined #ruby
kaichanvong has joined #ruby
cina has quit [Remote host closed the connection]
Brando753-o_O_o is now known as Brando753
jokke has joined #ruby
ping_pong has joined #ruby
mclee has joined #ruby
Rudde has joined #ruby
Cork has joined #ruby
davedev24 has quit [Ping timeout: 258 seconds]
jamto11 has joined #ruby
Olipro has quit [Ping timeout: 246 seconds]
cina has joined #ruby
Gooder` has joined #ruby
Olipro has joined #ruby
tjr9898 has quit [Remote host closed the connection]
ikaros has joined #ruby
utkarsh__ has joined #ruby
bawNg_ has joined #ruby
rippa has joined #ruby
mikemac has joined #ruby
tjr9898 has joined #ruby
jamto11 has quit [Ping timeout: 240 seconds]
divbell_ has joined #ruby
sumark_ has joined #ruby
oo_ has quit [Remote host closed the connection]
ltd has joined #ruby
ec has joined #ruby
oo_ has joined #ruby
nateberkopec has joined #ruby
ktun has joined #ruby
Mission-Critical has joined #ruby
tjr9898 has quit [Ping timeout: 240 seconds]
maximski has joined #ruby
davedev24 has joined #ruby
marr has quit []
nateberkopec has quit [Ping timeout: 240 seconds]
oetjenj_ has joined #ruby
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Authenti1ator has joined #ruby
decoponio has joined #ruby
Mission-Critical is now known as MissionCritical
maximski has quit [Read error: Connection reset by peer]
maximski_ has joined #ruby
razrunelord has joined #ruby
lw has quit [Quit: s]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
hem, i've been using Mina, is there a Capistrano channel?
<ericwood>
#capistrano might be a good first try
<havenwood>
#cappuccino, close
<mofofofo>
yeah, but the channel isn't very active
<havenwood>
ericwood: mm, 59 peeps
kaspergr_ has quit [Ping timeout: 245 seconds]
andrewlio has joined #ruby
andikr has joined #ruby
benzrf|offline is now known as benzrf
<havenwood>
ericwood: not terrible unless all idling :O
* ericwood
shrugs
<ericwood>
just pointing out that it exists
<havenwood>
ericwood: nice
<havenwood>
aptly named chan
<mofofofo>
thanks anyway guys
kukyakya has joined #ruby
<havenwood>
mofofofo: if cap is dead might try again here later, people should be waking up and some of em cap users
oo_ has joined #ruby
i_s has quit [Ping timeout: 245 seconds]
<mofofofo>
will do, thanks man
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
papercode has quit [Remote host closed the connection]
dik_dak has joined #ruby
papercode has joined #ruby
lxsameer has quit [Quit: Leaving]
SCommette has joined #ruby
seaned has quit [Quit: Zzzzzz....]
aspiringflaneur has joined #ruby
alexju has quit [Remote host closed the connection]
oo_ has quit [Ping timeout: 240 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jxf has joined #ruby
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
kpshek has joined #ruby
arturaz has quit [Remote host closed the connection]
cina has quit [Ping timeout: 265 seconds]
dsdeiz has joined #ruby
blackmesa has quit [Ping timeout: 252 seconds]
Lewix has joined #ruby
acrussell has joined #ruby
ktun has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
papercode has quit [Remote host closed the connection]
blackmesa has joined #ruby
ce_afk is now known as cescalante
WishBoy- has joined #ruby
sski has quit [Remote host closed the connection]
sski has joined #ruby
WishBoy has quit [Ping timeout: 240 seconds]
timgauthier has joined #ruby
<timgauthier>
hey
<cout>
hi there
<havenwood>
helloo
cina has joined #ruby
yekta has quit [Quit: yekta]
ktun has joined #ruby
okinomo_away is now known as okinomo
papercode has joined #ruby
bal has quit [Quit: bal]
sski has quit [Ping timeout: 250 seconds]
aganov has quit [Remote host closed the connection]
pduersteler has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
WishBoy- has quit [Remote host closed the connection]
phutchins has joined #ruby
WishBoy has joined #ruby
omosoj has joined #ruby
ascarter has joined #ruby
codeurge has joined #ruby
kevinykchan has quit [Read error: Connection reset by peer]
ktun has quit [Ping timeout: 252 seconds]
fenicks has joined #ruby
endash has quit [Quit: endash]
fantazo has quit [Quit: Verlassend]
kevinykchan has joined #ruby
nowthatsamatt has quit [Quit: nowthatsamatt]
toastynerd has quit [Remote host closed the connection]
kevinykchan has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 245 seconds]
renier_ has joined #ruby
kevinykchan has joined #ruby
AlexRussia has joined #ruby
renier has quit [Ping timeout: 276 seconds]
rdark has joined #ruby
jamto11_ has joined #ruby
qba73 has quit []
axl_ has quit [Quit: axl_]
jamto11 has quit [Ping timeout: 255 seconds]
nowthatsamatt has joined #ruby
<timgauthier>
aloha
Symbiosisz has quit [Remote host closed the connection]
_JamieD_ has joined #ruby
axl_ has joined #ruby
<shvelo>
aloha timgauthier
<timgauthier>
mahalo
cina_ has joined #ruby
lkba has quit [Ping timeout: 265 seconds]
cina has quit [Remote host closed the connection]
<shvelo>
mahalo rewards card?
<timgauthier>
nein
<shvelo>
nein thousand?
paulfm has quit []
<timgauthier>
über nein tousand!
razrunelord has joined #ruby
<shvelo>
:D :D
sunya7a_ has joined #ruby
cina_ has quit [Client Quit]
okinomo is now known as okinomo_away
<timgauthier>
;)
armyriad has quit [Read error: Connection reset by peer]
armyriad has joined #ruby
pothibo has joined #ruby
sputnik13 has joined #ruby
Squarepy has joined #ruby
momomomomo has joined #ruby
pietr0 has joined #ruby
<pduersteler>
hi all. has anyone tried the silver exam for ruby? I'm curious to try it out for the sake of a "personal goal", but I'm not sure if I have enough experience with writing ruby in my private time for 4 years now..
<havenwood>
pduersteler: what's the silver exam?
<_JamieD_>
Is it possible to access a variable from the parent class from within a block? https://gist.github.com/anonymous/9439f7fd82345a2df51b I want to be able to access additional_attributes from within the block passed to the rule method. Thanks
moted has quit [Remote host closed the connection]
<havenwood>
pduersteler: i wouldn't pay $150 for 50 multiple choice question on a past end-of-life Ruby
<pduersteler>
havenwood: yes, that's the downside of it..
krz has quit [Quit: WeeChat 0.4.3]
<havenwood>
Though I guess the money goes to Ruby core team?
<timgauthier>
the downside is i've never heard of this test or anyone who has written it
<timgauthier>
i don't think it is worth doing it as no one asks for the cert nor is it apparently relevant
ndrei has quit [Ping timeout: 252 seconds]
<pduersteler>
havenwood: however, is there a _real_ big difference in syntax/methods between 1.8.7 and e.g 1.9 or 2.0? I mean, of course there are many optimizations and a few caveats, but I'd say that does not influence such a test very heavy
ghr has quit [Ping timeout: 265 seconds]
<havenwood>
pduersteler: 1.8 really does have substantial differences from 1.9+
moted has joined #ruby
<atmosx>
pduersteler: I think hash is the biggest, I'm so much to the new syntax...
<atmosx>
after 1.8 iirc
<havenwood>
pduersteler: and it *really* isn't worth learning them, 1.8 is dead, move on!
<pduersteler>
havenwood: yep, it's a test from the assoc itself. timgauthier: valid point. but who generally asks for a certification unless you're in the windows world? No one wanted one from me on either job I had..
askldjuio2 has quit [Ping timeout: 255 seconds]
<atmosx>
move on
<pduersteler>
atmosx: right, the hash syntax...
<atmosx>
!
sski has joined #ruby
Es0teric has joined #ruby
<atmosx>
pduersteler: what? what did you expect? lol
yfeldblum has joined #ruby
<atmosx>
pduersteler: a new definition for classes?
<pduersteler>
atmosx: hm? no. I'd exect to fall for a case for which I'm used to in 1.9 but was different in 1.8, that's it.
the_f0ster has joined #ruby
<mofofofo>
anyone in here use capistrano to sync up db and file assets between environments?
<pduersteler>
(if I got you right)
tjr9898 has quit [Remote host closed the connection]
<havenwood>
pduersteler: Just don't use 1.8, ever, under any circumstance. Then you know all you need to know about it. ;)
<havenwood>
pduersteler: time better spent learning 2.1!
<pduersteler>
havenwood: I'm more of a "bleeeding edge" person ^^
<havenwood>
pduersteler: 2.2.0-dev
paulfm has joined #ruby
oso|away is now known as oso96_2000
<pduersteler>
guess I'll write a mail and ask if they plan an update in the near future, though.
<baweaver>
Anyone know of a good way to fake live coding for a presentation?
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<havenwood>
baweaver: actually live code and say you're faking it
<baweaver>
tempting
AlexRussia has quit [Quit: Konversation terminated!Good bye!]
tjr9898 has joined #ruby
<baweaver>
since it's a presentation on Pry it won't be hard.
mary5030 has quit [Remote host closed the connection]
PC_2 has quit [Quit: —I-n-v-i-s-i-o-n— 3.0 (March '08)]
alexju has joined #ruby
Es0teric has quit [Ping timeout: 264 seconds]
<havenwood>
baweaver: was gunna say use a text editor that will run your code, write it all out and test it, then 'undo' to the beginning and 'redo' it back out :P
yfeldblum has quit [Ping timeout: 276 seconds]
<pduersteler>
baweaver: build up a flash thingy like http://hackertyper.com/, but that would maybe not be integrateable into a presentation. and may be an overkill
<havenwood>
baweaver: i've seen good pry live coding in presentations, just practice it through till you iron out the rough stuff
askldjuio2 has joined #ruby
sski has quit [Ping timeout: 240 seconds]
<havenwood>
baweaver: i think most of the live coding issues come from doing it without ample rehearsal
<baweaver>
yeah, if I were trying something more complicated I'd be making something to do it
<timgauthier>
have a slide notes that shows you what to code
<timgauthier>
but actually memeorize typing it
<baweaver>
I might still make something to do it for amusement.
<havenwood>
and if you get stuck, ask the audience for help - someone sees it!
binaryhat has joined #ruby
AlexRussia has joined #ruby
noop has quit [Ping timeout: 240 seconds]
<baweaver>
I already have all the commands memorized, so non-issue there.
paulfm has quit [Ping timeout: 255 seconds]
<baweaver>
I just need to go in and put breaks in a program I've already written
<havenwood>
baweaver: where you doing pry live coding?
<baweaver>
Internal conference
<havenwood>
cool
<baweaver>
KC
<baweaver>
trying to get them to put those out to the public YouTube channel but we'll see
<havenwood>
_JamieD_: probably, but not quite sure what you mean from the example
i_s has joined #ruby
<baweaver>
Still getting this out for other conferences though.
ndrei has joined #ruby
DouweM has joined #ruby
omosoj has quit [Quit: Leaving]
mary5030 has joined #ruby
Bruno_ has joined #ruby
yfeldblum has joined #ruby
<hoelzro>
jj
shvelo has quit [Ping timeout: 240 seconds]
s2013 has quit [Ping timeout: 258 seconds]
kevinykchan has quit [Read error: Connection reset by peer]
<baweaver>
that was about a 30-45 minute hack together for fun.
ndrei has quit [Ping timeout: 250 seconds]
i_s has quit [Ping timeout: 276 seconds]
kevinykchan has joined #ruby
<baweaver>
odd bugs on it, so I wouldn't use it for any more than testing around quite yet.
yfeldblu_ has joined #ruby
ndrei has joined #ruby
s2013 has joined #ruby
bigkevmcd has quit [Quit: Ex-Chat]
<baweaver>
I'll clean up the script a bit more later and probably gemify it as a theme creator.
yfeldblum has quit [Ping timeout: 245 seconds]
kalusn has joined #ruby
bigkevmcd has joined #ruby
papercod1 has joined #ruby
papercod1 has quit [Remote host closed the connection]
blackmesa has quit [Ping timeout: 252 seconds]
yfeldblu_ has quit [Ping timeout: 258 seconds]
deric_skibotn has joined #ruby
<_JamieD_>
havenwood: @additional_attributes is an instance variable within the transformer class, it’s not accessible inside the block on the last line of the class, I’m wanting to know if it’s possible to access that varibale somehow
papercod1 has joined #ruby
cocotton has joined #ruby
cocotton_ has joined #ruby
cocotton has quit [Remote host closed the connection]
papercode has quit [Ping timeout: 240 seconds]
jamto11 has joined #ruby
dideler|work has joined #ruby
Celm_ has joined #ruby
apeiros has joined #ruby
kalusn has quit [Remote host closed the connection]
matchaw has joined #ruby
paulfm has joined #ruby
roadie has joined #ruby
jamto11 has quit [Ping timeout: 265 seconds]
blackmesa has joined #ruby
kpshek has quit []
einarj has quit [Remote host closed the connection]
figgleberry has joined #ruby
saarinen has joined #ruby
SCommette has quit [Quit: SCommette]
dfinly has joined #ruby
dfinly has quit [Max SendQ exceeded]
andrewlio has quit [Quit: Leaving.]
_maes_ has joined #ruby
paulfm has quit []
deens has joined #ruby
brtdv has quit []
aspires has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
SilkFox has quit [Ping timeout: 240 seconds]
sailias has quit [Quit: Leaving.]
mercwithamouth has joined #ruby
sailias has joined #ruby
niharvey is now known as niharvey|brb
crus has quit [Ping timeout: 265 seconds]
johnny5 has joined #ruby
kevind_ has joined #ruby
johnny5 has left #ruby [#ruby]
sailias has quit [Client Quit]
sailias has joined #ruby
timonv has quit [Remote host closed the connection]
michaeldeol has joined #ruby
rdark has quit [Ping timeout: 252 seconds]
pduersteler has quit [Quit: Page closed]
spyderman4g63 has quit [Ping timeout: 258 seconds]
relix has joined #ruby
bradhe has joined #ruby
kevind has quit [Ping timeout: 252 seconds]
kevind_ is now known as kevind
rdark has joined #ruby
tyll has quit [Ping timeout: 245 seconds]
Bumptious has quit [Remote host closed the connection]
Bumptious has joined #ruby
dh64 has joined #ruby
subbyyy has joined #ruby
Lewix has quit [Quit: Leaving...]
zigomir has quit [Remote host closed the connection]
Fly80 has joined #ruby
tyll has joined #ruby
sunya7a is now known as Guest87002
jarray52 has joined #ruby
<jarray52>
Is there a simple rule that determines when I can use a newline within a single logical line of code?
sunya7a_ is now known as sunya7a
benzrf is now known as benzrf|offline
danshultz has quit []
sailias1 has joined #ruby
sailias has quit [Quit: Leaving.]
binaryhat has quit [Quit: Leaving]
_tpavel has quit [Quit: Leaving]
try has quit [Ping timeout: 240 seconds]
<Fly80>
i have a multi array like this: a = [ [1,2],[3,4]] and I want to extract an array from the first or the second element, like [1,3] or [1,4]. Should I use something like first in a each loop or is there a easiest way?
<jarray52>
You can define a function that selects either the first or second based on a criteria.
paulfm has joined #ruby
<jarray52>
Then use... a.map{|e| your_func(e)}
armyriad has joined #ruby
<Fly80>
ok
nwertman_ has quit [Ping timeout: 265 seconds]
ghr has joined #ruby
nari has quit [Ping timeout: 258 seconds]
jhass|off is now known as jhass
greenarrow has quit [Quit: 500]
razrunelord has quit [Ping timeout: 255 seconds]
tyfighter has joined #ruby
tyfighter has quit [Client Quit]
ffranz has quit [Ping timeout: 276 seconds]
alex88 has quit [Quit: Leaving...]
ghr has quit [Ping timeout: 258 seconds]
enebo has quit [Quit: enebo]
dsdeiz has quit [Ping timeout: 276 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
Guest76051 is now known as marahin
marahin has quit [Changing host]
marahin has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
drager has quit [Ping timeout: 255 seconds]
endash has joined #ruby
kenneth has joined #ruby
drager has joined #ruby
saarinen has quit [Quit: saarinen]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
dideler|work has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
instantaphex has quit [Ping timeout: 252 seconds]
subbyyy has quit [Ping timeout: 240 seconds]
Xiti` has quit [Quit: Leaving]
papercod1 has quit [Quit: WeeChat 0.4.4-dev]
i_s has joined #ruby
drager has quit [Remote host closed the connection]
acrussell has quit [Quit: Leaving.]
razrunelord has joined #ruby
drager has joined #ruby
subbyyy has joined #ruby
SCommette has joined #ruby
ffranz has joined #ruby
pu22l3r has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
meatherly has quit [Remote host closed the connection]
JoeGaudet has joined #ruby
mofofofo has quit [Ping timeout: 240 seconds]
drager has quit [Remote host closed the connection]
drager has joined #ruby
subbyyy has quit [Ping timeout: 276 seconds]
banister has quit [Ping timeout: 250 seconds]
nwertman has joined #ruby
SilkFox has joined #ruby
wald0 has joined #ruby
canton7-mac has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
timonv has joined #ruby
pu22l3r_ has joined #ruby
SegFaultAX has quit [Excess Flood]
banister has joined #ruby
oo_ has joined #ruby
SegFaultAX has joined #ruby
noocode has quit [Ping timeout: 246 seconds]
brtdv has joined #ruby
ffranz has quit [Ping timeout: 250 seconds]
ffranz has joined #ruby
Shidash has joined #ruby
ffranz has quit [Read error: Connection reset by peer]
ffranz has joined #ruby
djbkd has joined #ruby
meatherly has joined #ruby
lukec has quit [Quit: lukec]
pwh has quit []
webgen has quit [Quit: Leaving from xChat]
mikecmpbll has joined #ruby
RubyPanther has joined #ruby
chrisseaton has quit []
elaptics is now known as elaptics`away
oo_ has quit [Ping timeout: 258 seconds]
tacos1de has quit [Remote host closed the connection]
banister is now known as banisterfiend
Es0teric has joined #ruby
noocode has joined #ruby
erikruthven has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SilkFox has quit [Ping timeout: 250 seconds]
<banisterfiend>
apeiros ping
<banisterfiend>
or anyone here knows about rails presenters?
erikruthven has joined #ruby
erikruthven has quit [Max SendQ exceeded]
ffranz has quit [Quit: Leaving]
tacos1de has joined #ruby
ffranz has joined #ruby
wallerdev has joined #ruby
brtdv has quit []
Es0teric has quit [Ping timeout: 240 seconds]
<wallerdev>
good morningr
<banisterfiend>
wallerdev come with me, i want to talk, i've taken a drug that makes me want to talk
<LadyRainicorn>
haha
<wallerdev>
lol
<LadyRainicorn>
Veritaserum?
<wallerdev>
i can talk for like 15 mins then i gotta go to standup
<wallerdev>
:p
codeFiend has joined #ruby
paulfm has quit []
subbyyy has joined #ruby
<banisterfiend>
wallerdev cool, where do u work? (i have to do a daily standup thing too)
centrx has joined #ruby
<wallerdev>
i work in SF :p
<razrunelord>
Hey guys, I have 3 flag fields. I need to find all the possible combinations (false, true, false) etc. Is there something in the ruby STDlib I can use?
oo_ has joined #ruby
obs has quit [Remote host closed the connection]
<wallerdev>
can you be more specific haha
RohanRNS has joined #ruby
<wallerdev>
you just want a list of every combination of true/false for 3 fields?
momomomomo has quit [Quit: momomomomo]
zoraj has quit [Remote host closed the connection]
<centrx>
razrunelord, There's not much information. That chart looks like a problem that's asking for which logical operations between Foo and Bar produce Too
<Cork>
wow, good thing i asked, wouldn't ever have figured that one out
cina has quit [Ping timeout: 265 seconds]
SCommette has quit [Quit: SCommette]
sambao21 has quit [Client Quit]
SilkFox has joined #ruby
pen has quit []
mehlah has quit [Quit: Leaving...]
pu22l3r_ has quit [Ping timeout: 240 seconds]
jarred has joined #ruby
toastynerd has joined #ruby
cina has joined #ruby
saarinen has joined #ruby
sambao21 has joined #ruby
yfeldblum has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
binaryhat has quit [Quit: Leaving]
Jnco has joined #ruby
sooik has joined #ruby
Shidash has quit [Ping timeout: 264 seconds]
ju57in has joined #ruby
dawe has joined #ruby
djbkd has quit [Remote host closed the connection]
omosoj has joined #ruby
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
pu22l3r has joined #ruby
toastynerd has quit []
timonv has quit [Remote host closed the connection]
niharvey|brb is now known as niharvey
hgl has quit [Ping timeout: 240 seconds]
toastynerd has joined #ruby
ju57in has quit []
AlSquirrel has joined #ruby
lkba has joined #ruby
Zesty has joined #ruby
nanoyak has joined #ruby
moritzs has quit [Ping timeout: 252 seconds]
benzrf|offline is now known as benzrf
cescalante is now known as ce_afk
AlSquire has quit [Read error: Connection reset by peer]
wildroman2 has quit [Remote host closed the connection]
ce_afk is now known as cescalante
djbkd has joined #ruby
pel_daniel has joined #ruby
ju57in has joined #ruby
<ju57in>
hey jinco
<Jnco>
hi
Squarepy has joined #ruby
paulfm has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
rdark has quit [Quit: :qa!]
wildroman2 has joined #ruby
ari-__-e is now known as ari-_-e
timgauthier has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
workmad3 has quit [Ping timeout: 255 seconds]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
danman_ has joined #ruby
try has joined #ruby
AlSquirrel has quit [Read error: Connection reset by peer]
carlyle has joined #ruby
andrewjanssen has joined #ruby
Fly80 has quit [Ping timeout: 276 seconds]
troulouliou_dev has quit [Quit: Leaving]
kaspergrubbe has quit [Remote host closed the connection]
pushpak has joined #ruby
tvw has quit []
x1337807x has joined #ruby
pu22l3r has quit [Ping timeout: 240 seconds]
gregf_ has quit [Ping timeout: 252 seconds]
paulfm has quit []
phinfonet has joined #ruby
arrubin has joined #ruby
andrewlio has joined #ruby
SCommette has joined #ruby
proliberate has joined #ruby
andikr has quit [Remote host closed the connection]
terrell_t has joined #ruby
jarred has quit [Ping timeout: 240 seconds]
terrell_t has quit [Read error: Connection reset by peer]
<proliberate>
Hey! So I'm making a clean transition from windows to linux. I was wondering, is there a best practice for where to put my one-off scripts?
shredding has quit [Quit: shredding]
<proliberate>
Basic shell tools, that kinda thing
terrell_t has joined #ruby
soheil has joined #ruby
<wallerdev>
if its just a one-off i wouldnt even save the file
<wallerdev>
lol
<proliberate>
I mean, scripts I will write once, never look at again, and never distribute
<wallerdev>
i dont think theres any conventions
<wallerdev>
i create a Projects folder in my home directory
<wallerdev>
and then do like Projects/Ruby/app-name/code files here
<proliberate>
Alright. So in my setup on windows, I had a folder, /Users/Me/Documents/custombatchcommands/. This contained a number of .bat, .py, and .rb files, and ./custombatchcommands/ was included in the path. So, for example, I had ghost.bat with a single line, `@ping 8.8.4.4 -n 1` (without backticks)
acrussell has joined #ruby
toastynerd has quit [Remote host closed the connection]
mehlah has joined #ruby
<proliberate>
So that, in any command prompt, I could just `ghost` to see whether I were online, without typing out a full ping
Soda has quit [Remote host closed the connection]
cina has joined #ruby
<wallerdev>
sure
matchaw has quit [Ping timeout: 240 seconds]
<wallerdev>
you can add things to your path on linux too
paulfm has joined #ruby
VTLob has joined #ruby
Ardenzi has quit [Ping timeout: 276 seconds]
terrellt has joined #ruby
pu22l3r_ has joined #ruby
<proliberate>
thanks wallerdev!
aagdbl has quit [Quit: Connection closed for inactivity]
lukec has joined #ruby
pel_daniel has quit [Read error: No route to host]
pel_daniel1 has joined #ruby
andrewjanssen has quit [Client Quit]
toastyne_ has joined #ruby
terrell_t has quit [Disconnected by services]
tyll has quit [Ping timeout: 265 seconds]
mattmcclure has joined #ruby
mofofofo has joined #ruby
armyriad has quit [Ping timeout: 252 seconds]
nowthatsamatt has quit [Quit: nowthatsamatt]
tyll has joined #ruby
andrewjanssen has joined #ruby
jamto11_ has quit [Remote host closed the connection]
dennus has quit []
noop has joined #ruby
nowthatsamatt has joined #ruby
carlyle has quit [Remote host closed the connection]
<rOOb>
Weird. Ok. So it looks like ruby cannot access the internet at all
* rOOb
facepalms
<rOOb>
I think its a fw issue
GGMethos has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
vim_shim has joined #ruby
freerobby has joined #ruby
pwh has joined #ruby
toastynerd has quit [Remote host closed the connection]
mupkoo has joined #ruby
mupkoo has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
mupkoo has joined #ruby
moritzs has joined #ruby
relix has joined #ruby
shadoi has joined #ruby
blackmesa has joined #ruby
bricker has joined #ruby
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tjr9898 has joined #ruby
badhatter has quit [Ping timeout: 240 seconds]
Celm_ has quit [Remote host closed the connection]
gregf1 has joined #ruby
bricker`work has quit [Ping timeout: 252 seconds]
dblessing has joined #ruby
b00l has joined #ruby
timonv has joined #ruby
<dblessing>
has anyone used spinach to test a command line app?
Azure has quit [Quit: My MBP went to sleep.]
shadoi has quit [Client Quit]
nanoyak has quit [Quit: Computer has gone to sleep.]
<dblessing>
i use thor to build the app. someone suggested spinach but it seems like it might be overkill since the "steps" for a cli are pretty singular - one step yields one result?
danshultz has quit [Remote host closed the connection]
whomp has joined #ruby
subbyyy has quit [Quit: none 0.4.3]
keen_ has joined #ruby
<whomp>
is macruby/rubymotion that much faster than yarv?
aspiringflaneur has joined #ruby
danshultz has joined #ruby
<banisterfiend>
whomp is the good more or less equivalent to the beautiful
paulfm_ has quit []
<whomp>
banisterfiend, it's easy to answer if objc is faster than ruby though: 99% of the time, objc is much faster. so if macruby is near objc, it's an easy answer
<b00l>
jhass: Sorry but how can I apply that patch?
<havenwood>
while current versions of ruby, jruby and rbx are faster yet, maglev and macruby don't seem to be under vary active development
benzrf is now known as benzrf|offline
cocotton has quit [Remote host closed the connection]
<whomp>
havenwood, macruby is developed under rubymotion, but it costs you money to use
<jhass>
b00l: uhm, I'm pretty sure /usr/local/Cellar/readline/6.3.3/include/readline/readline.h is not a directory. Try to understand what the command does instead of blindly executing it. Run man path
<jhass>
er, man patch
ghr has joined #ruby
<b00l>
yeah, thanks
sambao21 has joined #ruby
SegFaultAX has quit [Excess Flood]
<havenwood>
whomp: sure dynamic languages tend to be slower in general, but arguably due to implementation not necessity, as *vary* fast ruby implementations like jruby-9k-graal and topaz.
<havenwood>
show*
<havenwood>
very&
andrewjanssen has joined #ruby
cocotton has joined #ruby
SegFaultAX has joined #ruby
<whomp>
havenwood, i've always suspected that you can make a much faster version of ruby. for example, i don't understand JIT compilers... why can't the whole program be compiled, instead of such stingy compilation?
bradhe has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 245 seconds]
<RubyPanther>
whomp: Ruby is already written in a compiled language
<canton7>
whomp, JIT compilation can be faster than ahead-of-time compilation, as the jitter can make optimizations which an ahead-of-time compiler can't
<havenwood>
whomp: yarv compiles to bytecode
<RubyPanther>
it is like claiming that applications are slower than libraries, it makes no sense
<havenwood>
whomp: but sure
<havenwood>
whomp: alex gaynor from topaz has some good talks on why dynamic languages may tend to be slow but don't have to be
<RubyPanther>
The fact that Ruby is written in C tells you right there, there is a whole additional layer of abstraction that makes it appear that there is another language; to the programmer there is another language, "Ruby." But to the computer it is not so; Ruby is just a C app that reads in "source" that is really like... dynamic macros. Like there are pre-compiler macros, Ruby is post-compiler macros
anaeem1 has joined #ruby
<havenwood>
whomp: and i believe there are plans to implement a ton of langs on Truffle/GraalVM, like ruby, python, javascript, etc - which could bring in a new era of untraditionally fast interpreted langs
mupkoo has quit []
<whomp>
havenwood, exciting :)
<whomp>
now if i can just find some good numerical computing libs in ruby, my life is complete haha
badhatter has joined #ruby
badhatter has quit [Changing host]
badhatter has joined #ruby
<RubyPanther>
The things that move Ruby closer to the hardware would be like RiteVM in mRuby, which was going to be the base of Ruby 2 before YARV got there first. With RiteVM you have bytecode that knows about CPU registers. So it is not just C macros.
<RubyPanther>
You can actually write RiteVM bytecode directly, like a form of ASM
aspiringflaneur has quit [Quit: ZZZzzz…]
<whomp>
RubyPanther, where's good to learn about how the innards of ruby work?
<RubyPanther>
whomp: write a few C extensions, that is probably the best way to get started :) from there I'm not sure what the best 2.x docs are
SilkFox has quit [Read error: Connection reset by peer]
felixjet_ has quit [Read error: Connection reset by peer]
<whomp>
RubyPanther, sounds good :)
figgleberry has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
<RubyPanther>
if a Ruby app is slow... port more of its gem requirements to native extensions :)
tjr9898 has joined #ruby
AlSquire has joined #ruby
jonno11 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
saarinen has joined #ruby
felixjet has joined #ruby
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
paulfm has joined #ruby
<RubyPanther>
Ruby is slow in practice because of Ruby ideology; focusing on the human programmer and making it easy for them means they are ignoring a lot of deeper details, and probably writing slow code. The good thing is that if they're using good OOP, you can follow behind and refactor where it matters
einarj has joined #ruby
aspiringflaneur has joined #ruby
aspiringflaneur has quit [Max SendQ exceeded]
<centrx>
Ruby isn't slower than other interpreted languages anymore
SilkFox has joined #ruby
<centrx>
e.g. Python
troulouliou_dev has joined #ruby
<whomp>
R is still probably faster for its use case
danshultz has joined #ruby
<whomp>
for example, it lets you do multiple ops on an array before running any of them, so it can do them in batch
chipotle has joined #ruby
skaflem has quit [Quit: Leaving]
jackneill has quit [Read error: Connection reset by peer]
<RubyPanther>
if R isn't super-awesome in its very limited niche, it would be a total failure :)
mercwithamouth has joined #ruby
<pothibo>
Last time I checked, ruby was still the slowest of em all
<pothibo>
not by a huge margin however
shadoi1 has joined #ruby
<RubyPanther>
Right, there used to be a large margin :)\
blackmesa has quit [Ping timeout: 264 seconds]
cocotton has quit [Remote host closed the connection]
<RubyPanther>
we used to be benchmark-neighbors with Tcl
Marf_ has quit [Ping timeout: 240 seconds]
troulouliou_dev has quit [Remote host closed the connection]
nanoyak has joined #ruby
cocotton has joined #ruby
<pothibo>
yup, I believe we'll completly catch up in like 5 years
AlSquire has quit [Ping timeout: 240 seconds]
shadoi has quit [Ping timeout: 240 seconds]
<pothibo>
anyway Python 3 is still not widely adopted...
<havenwood>
already have caught up
felixjet has quit [Read error: Connection reset by peer]
Burgestrand has joined #ruby
Hanmac has joined #ruby
alvaro_o has joined #ruby
<havenwood>
on the alioth.debian benchmarks looks like ruby is pretty much ahead except for several particularly slow implementations for the microbench
toastynerd has joined #ruby
blackmesa has joined #ruby
Zenigor has quit [Remote host closed the connection]
<havenwood>
if we get to use implementations nobody uses, then jruby-9k or topaz blow the dynamic scripted competition away ;P
Zenigor has joined #ruby
nanoyak has quit [Quit: Computer has gone to sleep.]
<havenwood>
fastest. language. ever.
<havenwood>
>.>
blasius has joined #ruby
nanoyak has joined #ruby
felixjet has joined #ruby
<havenwood>
hack is fast, lets use php
<havenwood>
i guess they're calling hack hack though, not php
nanoyak has quit [Client Quit]
niharvey is now known as niharvey|brb
<b00l>
jhass: Thanks, works fine just now!
saarinen has quit [Quit: saarinen]
joshuavial has joined #ruby
Zenigor has quit [Ping timeout: 265 seconds]
b00l has quit [Quit: Page closed]
einarj has quit [Remote host closed the connection]
joshuavial has quit [Quit: joshuavial]
sambao21 has quit [Quit: Computer has gone to sleep.]
anaeem1 has quit [Read error: Connection reset by peer]
dspadea has joined #ruby
anaeem1 has joined #ruby
<n_blownapart>
yeah that will work with [-1] on line 8 but not [1]
<havenwood>
n_blownapart: a one element array
anaeem1 has quit [Read error: Connection reset by peer]
anaeem1__ has joined #ruby
papercode has joined #ruby
paulfm has quit []
<n_blownapart>
so something is going on I don't understand. the placemarker [1] should function the same as [-1] on an array that is only 2 elements long max. Wait so an array cannot hold one element only?
blackmes1 has joined #ruby
Bumptious has quit [Ping timeout: 264 seconds]
omosoj has joined #ruby
mehlah has joined #ruby
saarinen has joined #ruby
alem0lars has quit [Quit: alem0lars]
Xeago has joined #ruby
Rahul_Roy has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
gigo1980 has joined #ruby
paulfm has joined #ruby
proliberate has quit [Ping timeout: 245 seconds]
LadyRainicorn has quit [Quit: Bye]
Macaveli has quit [Quit: Leaving]
Bumptious has joined #ruby
<gigo1980>
hi all, i am not an ruby developer. but i use a software in ruby. in the manage it writes that i have to use bundle update. if i do this i get the following error
<gigo1980>
You cannot specify the same gem twice with different version requirements.
<gigo1980>
You specified: rake (~> 10.1.1) and rake (>= 0)
Fly80 has quit [Remote host closed the connection]
ghr has joined #ruby
<havenwood>
n_blownapart: it can hold one element, but: [:a][-1] != [:a][1]
<n_blownapart>
line 4 would be true if rocks = [122, 156]. So how would those two elements allocate to a and b?
<havenwood>
gigo1980: Gist your Gemfile?
rudisimo has quit [Ping timeout: 255 seconds]
Xeago has quit [Ping timeout: 264 seconds]
<n_blownapart>
it would be arbitrary whether 122 went to a or b, correct havenwood?
benzrf|offline is now known as benzrf
ghr has quit [Ping timeout: 240 seconds]
SCommette has quit [Quit: SCommette]
keystonelemur has joined #ruby
pika_pika has quit [Ping timeout: 252 seconds]
ndrei has joined #ruby
ffranz has joined #ruby
mansi_ has joined #ruby
<n_blownapart>
If a one-element array came in , 168, the two pointers would be pointing to [0] value and [-1] value. but if it's just one element, line 16 , the comparison line would fail havenwood no?
Megtastique has quit [Ping timeout: 240 seconds]
proxie has joined #ruby
Apocalypse has quit [Ping timeout: 245 seconds]
kenneth has quit [Ping timeout: 252 seconds]
mary5030 has quit [Ping timeout: 255 seconds]
virtualize has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
mg^ has joined #ruby
mansi has quit [Ping timeout: 250 seconds]
baweaver has quit [Ping timeout: 264 seconds]
jrhe has quit [Quit: Connection closed for inactivity]
kenneth has joined #ruby
kyb3r_ has joined #ruby
Arkaniad has quit [Ping timeout: 240 seconds]
<Mars`>
How can you install a gem from a private repository using bundler?
<Mars`>
is that not possible?
SCommette has joined #ruby
dukedave has joined #ruby
<pothibo>
Mars` it is, you need to add the credential in the URL... not recommended tho
Megtastique has joined #ruby
<dukedave>
Is there a gem which one use ActiveRecord style query chaining, on regular Ruby objects?
SCommette has quit [Client Quit]
<pothibo>
Mars` actually, I have never tried it, but maybe you can configure ssh_config to pass your private key when accessing that repo
lmickh has quit [Remote host closed the connection]
AlSquire has quit [Read error: Connection reset by peer]
AlSquirrel has joined #ruby
<n_blownapart>
i.e. I don't see how line 16 functions if it's a one element array, but it does. 'rocks = 1.times.map { rand(200) + 1 } havenwood if you have time, many thanks
timonv has joined #ruby
chrisseaton has joined #ruby
aspiringflaneur has joined #ruby
<n_blownapart>
sorry missed your last 3 lines
cina has joined #ruby
mansi_ has quit [Ping timeout: 240 seconds]
<Mars`>
pothibo: haha. I guess I'm not going to us a private repo then. :P
<havenwood>
n_blownapart: so lets assume the array has been whittled down to a three element array: rocks_arr = [1, 2, 3]
Zenigor has joined #ruby
joshuavial has joined #ruby
kenneth has quit [Ping timeout: 264 seconds]
<n_blownapart>
havenwood: ok
Apocalypse has joined #ruby
Apocalypse has quit [Changing host]
Apocalypse has joined #ruby
<havenwood>
n_blownapart: on line 12 you call #rock_judger on: rocks_arr.slice!(0,rocks_arr.length/2)
ascarter has joined #ruby
<n_blownapart>
got it havenwood
<havenwood>
n_blownapart: which returns: [1]
lmickh has joined #ruby
<n_blownapart>
ok
carlyle has joined #ruby
ascarter has quit [Read error: Connection reset by peer]
<havenwood>
n_blownapart: so the second element of that array is nil
<havenwood>
n_blownapart: [1][1] #=> nil
<pothibo>
Mars` just looked, it works if you configure ssh_config on your server
<havenwood>
n_blownapart: and it fails
shevy has quit [Ping timeout: 264 seconds]
AlSquirrel has quit [Read error: Connection reset by peer]
agarie has quit [Read error: Connection reset by peer]
mikemac has quit [Ping timeout: 265 seconds]
ascarter has joined #ruby
Bumptious has quit [Remote host closed the connection]
Astralum has quit [Read error: Connection reset by peer]
Astralum has joined #ruby
niharvey|brb is now known as niharvey
SegFaultAX has quit [Excess Flood]
<n_blownapart>
the base case can be implemented , theorectically in this program .... or not havenwood
<n_blownapart>
?
<n_blownapart>
*reached
agrinb has joined #ruby
carlyle has quit [Ping timeout: 255 seconds]
andrewjanssen has quit [Ping timeout: 264 seconds]
<havenwood>
n_blownapart: no, it is reached, just with a one element array potentially
<havenwood>
n_blownapart: so you have to not explode if you get a one element array
SegFaultAX has joined #ruby
pwh has quit []
Astralum has quit [Read error: Connection reset by peer]
jpierre03 has joined #ruby
<havenwood>
n_blownapart: comes down to: 3 / 2 #=> 1
acrussell has quit [Quit: Leaving.]
<n_blownapart>
but a and b are pointing to the same array, at different indices. if [0] and [-1] are equivilent, wouldn't the comparison line throw an error ?
timonv has quit [Remote host closed the connection]
kodnin has joined #ruby
<kodnin>
Hi, as I'm learning Vim I'm experimenting with regular expressions. I'm setting up a regex for changing double quoted strings to single quotes strings in Ruby. Can someone give me some pointers, thank you!
<davidcelis>
@markveidemanis: It looks like your `if` statement in the main method needs an `end` after it. Lines 97 and 99
razrunelord has quit [Remote host closed the connection]
<markveidemanis>
oh, thanks
mary5030_ has joined #ruby
mary5030 has quit [Read error: Connection reset by peer]
<havenwood>
markveidemanis: you're not closing a number of blocks with an `end`, but hard to see with all the empty lines and weird indentation
<havenwood>
markveidemanis: two-space soft-tabs without copious blank lines will make ending blocks easy
<havenwood>
or at least much easier :P
<markveidemanis>
There are no blank lines, just pastie interprets \r and \n as linebreaks, windows, adding \r\n causes a space
<havenwood>
markveidemanis: then don't use pastie!
<havenwood>
markveidemanis: or do use unix line endings!
mary5030_ has quit [Remote host closed the connection]
<havenwood>
markveidemanis: Gist with unix line endings ftw. And two-space soft tabs!
mary5030 has joined #ruby
<havenwood>
markveidemanis: An editor that gracefully handles indentation for you makes life better.
tijmencc has left #ruby [#ruby]
lw has joined #ruby
Arkaniad has joined #ruby
<havenwood>
Maybe Atom will be the editor we'll be recommending for Windows soon :O
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
<havenwood>
Sublime is nice but spendy.
Bruno_ has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
<havenwood>
markveidemanis: a lot of Rubyists pretty strictly adhere to conventions regarding the look of the code, but it ends up really mattering for readability and finding errors
<havenwood>
we've got to take what we can get!
ikaros has joined #ruby
<xybre>
On Windows I use Putty to SSH into a Linux box and use Vim.
<xybre>
I used to use Komodo and Cream, but everything jsut feels really clunky. Putty is a surprisingly good terminal though.
sriehl has quit []
<havenwood>
xybre: setting up someone's system the other day i noticed the win git bin came with a term with ssh
<havenwood>
git package**
papercode has quit [Quit: WeeChat 0.4.4-dev]
<havenwood>
xybre: but i set them up with Vagrant anyways, but i do kinda cringe at having people learn unix/vim just to *start* ruby :O
<xybre>
Yeah, makes sense, since git works over ssh.
sambao21 has joined #ruby
<havenwood>
whaddaya do..
<havenwood>
i couldn't even get pry installed on the Rails Installer for Win, and that was as far as I was willing to try >.>
<xybre>
I'd sit them down with Sublime3 or Textmate2 probably.
<havenwood>
no TM2 on win, no:
papercode has joined #ruby
<havenwood>
xybre: yeah, Sublime works as expected for a gui user ;)
razrunelord has joined #ruby
mansi has quit [Remote host closed the connection]
carlyle has joined #ruby
pika_pika has joined #ruby
<atmosx>
aloha dear rubyists
<xybre>
Really? I thought they ported it.
<havenwood>
aloha
<atmosx>
I've been lst in the world of MTAs and imap-servers but I think I'm about to finnish my setup
<havenwood>
xybre: that'd be awesome! i hope so..
<atmosx>
talking about guis, I'm considering switching from Mail.app back to mutt
<xybre>
Hmm. Well, Sublime then yeah.
<atmosx>
becuase it can't handle the load, vim > sublime, textmate, atom, whatever ... just stick-with-it!
<havenwood>
atmosx: i think it is theoretically possible to port but i don't think anyone has done it
<xybre>
I'm using Airmail on OSX.
<atmosx>
xybre: oh nah, if I switch I'm going back to mutt and I'm done with email
bricker_ has joined #ruby
<xybre>
I don't blame you really.
bricker_ is now known as bricker`work
mansi has joined #ruby
bricker has quit [Disconnected by services]
bricker`work is now known as bricker
wald0 has quit [Ping timeout: 258 seconds]
meatherly has quit [Remote host closed the connection]
<atmosx>
does anyone use github's atom editor, I wonder.
mofofofo has quit [Ping timeout: 240 seconds]
<atmosx>
must be extremely good for JS but TM2 is too. And espresso is even better
<xybre>
I have it installed
<atmosx>
xybre: me too, I have something like 8 editors installed
<xybre>
But I haven't had time to play with it.
<atmosx>
and I use vim lol
<xybre>
Yeah me too haha
<atmosx>
not even macvim, just vim
<atmosx>
hahaahaha wtf, it's a disease
<xybre>
Yep, vim in tmux for me.
aspiringflaneur has quit [Quit: ZZZzzz…]
<atmosx>
yeah exactly, I use tmuxinator to launchd the rack-server and the autotest :-P
<atmosx>
autotest is slw, should configure sporck (or sprock) and drb do at some point
mary5030 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
<xybre>
Nice, I have tmuxinator but I change my main daily about how I want to do something.
andrewjanssen has joined #ruby
wald0 has joined #ruby
<atmosx>
hahaha cool
<xybre>
I have Atmon, Brackets, LightPaper, LightTable, Mou, Notebooks, Sublime3, TextMate2, and Texts. Not all of those are for code mind you.
<xybre>
Atom^
razrunelord has quit [Remote host closed the connection]
jpierre03 has quit [Ping timeout: 245 seconds]
tjr9898 has quit [Remote host closed the connection]
yakko has joined #ruby
s2013_ has joined #ruby
charliesome has joined #ruby
jespada has quit [Quit: Leaving]
cina has quit [Ping timeout: 258 seconds]
<ericwood>
Microsoft Word^
Squarepy has joined #ruby
<xybre>
No.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jonno11 has joined #ruby
chrisseaton has quit []
IceDragon has joined #ruby
cocotton_ has joined #ruby
s2013 has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
Xeago has joined #ruby
bricker has quit [Quit: leaving]
<atmosx>
word is a mistake
<benzrf>
vim is best
<benzrf>
always vim
<benzrf>
maybe emacs
bricker has joined #ruby
<benzrf>
not not vim or emacs
<slash_nick>
ed
x1337807x has joined #ruby
<slash_nick>
i wonder how many folks are proficient coding with ed
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<atmosx>
xybre: I have iAwriter, oomWriter, Mou, Textwrangler (this one is extremely useful), TM2, Atom, Chocolat, Espresso (html/jss but not erb/haml), Light-something ... xCode of course.
<benzrf>
>not vim_shim
<benzrf>
*vim
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xybre>
Oh man, is TextWrangler still a thing? I used that for a while years ago. Also something like Bedit? I forget the name. I've seen Espresso but I don't do much html right now so I didn't install it.
kodnin has left #ruby [#ruby]
<fuzzyfuzz>
Smultron
einarj has joined #ruby
yekta has quit [Quit: yekta]
ghr has joined #ruby
<atmosx>
havenwood: you use textedit for coding?
<atmosx>
Kate was nice on KDE
<atmosx>
I liked the feel and syntax (the 2 times I've used it)
<atmosx>
slash_nick: the only one I've seen using ed is Linus Torvalds and I don't know if it was becuase of a quick edit or it's his default seriously. I think his on emacs or something
<atmosx>
that's why always bashes emacs
<havenwood>
atmosx: no, nor xcode :P
<havenwood>
atmosx: just a text editor on the machine
<xybre>
There's also Coda, I've never met anyone who used it though.
<havenwood>
gui one*
<havenwood>
xybre: i've used it, not for ruby
<havenwood>
xybre: really a designer's editor
tjr9898 has joined #ruby
<xybre>
I mean, I've tried it out, but never compelled to keep it.
<havenwood>
ditto
<xybre>
Hmm, maybe thats why
SilkFox has quit [Ping timeout: 264 seconds]
Tricon has joined #ruby
Burgestrand has quit [Quit: Burgestrand]
Xeago has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
Xeago has joined #ruby
instantaphex has quit [Ping timeout: 276 seconds]
ghr has quit [Ping timeout: 250 seconds]
<atmosx>
espresso is for designers too
<atmosx>
but not for rails designers... or ruby designers... doesn't support haml/erb/less/slim wtf is wrong with them
<xybre>
slim ftw
* slash_nick
hugs haml
visi0n has joined #ruby
b00stfr3ak has quit [Remote host closed the connection]
b00stfr3ak has joined #ruby
<xybre>
I really liked haml, but after using slim, haml just doesn't feel as nice anymore. I won't complain though, at least its not html by hand!
visi0n has left #ruby [#ruby]
chrisseaton has joined #ruby
razrunelord has joined #ruby
keystonelemur has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
mrmargolis has quit [Ping timeout: 252 seconds]
doodlehaus has quit [Ping timeout: 265 seconds]
Xeago has quit [Ping timeout: 245 seconds]
moted has quit [Quit: moted]
<ericwood>
haml ended up being more verbose than HTML
<ericwood>
I don't like the attribute syntax
jpierre03 has joined #ruby
VTLob has quit [Quit: VTLob]
tjr9898 has joined #ruby
cescalante is now known as ce_afk
<omosoj>
what do you guys think of the book 'everyday scripting with ruby'?
<csmrfx>
hm, sounds... old
moted has joined #ruby
<csmrfx>
I think I've read it like 5 years ago
zigomir has quit [Remote host closed the connection]
<csmrfx>
hm, maybe I'm just too tired, better go rest
tjr9898 has quit [Remote host closed the connection]
<omosoj>
any other suggestions? i think i have the basics down.
<csmrfx>
get the matsumoto flanagan ruby book
agrinb has quit [Remote host closed the connection]
soheil has quit [Remote host closed the connection]
AlSquire has quit [Quit: Quitte]
Zenigor_ has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
Zenigor has joined #ruby
timonv has quit [Ping timeout: 240 seconds]
pel_daniel has quit [Ping timeout: 245 seconds]
drager has quit [Ping timeout: 265 seconds]
Zenigor_ has joined #ruby
agrinb has joined #ruby
SCommette has quit [Quit: SCommette]
Xeago has quit [Ping timeout: 258 seconds]
pel_daniel has joined #ruby
s2013_ is now known as s2013
tjr9898 has joined #ruby
Zenigor has quit [Ping timeout: 240 seconds]
benzrf is now known as benzrf|offline
lw has joined #ruby
garndt has quit [Quit: Connection closed for inactivity]
nanoyak has quit [Quit: Computer has gone to sleep.]
seaned has quit [Quit: Zzzzzz....]
tjr9898_ has quit [Read error: Connection reset by peer]
Zenigor_ has quit [Remote host closed the connection]
Zenigor has joined #ruby
engel has quit [Quit: Leaving]
linojon has quit [Quit: linojon]
tjr9898_ has joined #ruby
the_f0ster has quit [Remote host closed the connection]
toastynerd has quit [Remote host closed the connection]
n_b has quit [Ping timeout: 245 seconds]
drager has joined #ruby
deric_skibotn has quit [Ping timeout: 265 seconds]
carlyle has quit []
Zenigor has quit [Ping timeout: 264 seconds]
zzzbra has joined #ruby
dsdeiz has joined #ruby
n_b has joined #ruby
lmickh has quit [Remote host closed the connection]
razrunelord has quit [Remote host closed the connection]
yfeldblum has joined #ruby
PatMakesThings has joined #ruby
arrubin has quit []
mansi has quit [Remote host closed the connection]
michaeldeol has joined #ruby
mansi has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
codeFiend has quit [Quit: codeFiend]
mengu has quit []
moritzs has quit [Quit: Verlassend]
coffeina has quit [Remote host closed the connection]
figgleberry has joined #ruby
andrewvos has joined #ruby
yfeldblum has quit [Remote host closed the connection]
andrewvos has left #ruby ["WeeChat 0.4.0"]
yfeldblum has joined #ruby
mansi has quit [Ping timeout: 250 seconds]
razrunelord has joined #ruby
lw has quit [Quit: s]
Musashi1 has joined #ruby
tjr9898 has quit [Remote host closed the connection]
tjr9898 has joined #ruby
bradhe has quit [Remote host closed the connection]
<centrx>
Wait, does bundler auto-load every gem?
razrunelord has quit []
klaut_ has quit [Remote host closed the connection]
<workmad3>
centrx: no
mikemac has joined #ruby
<centrx>
hmm, must be something with Rails
<workmad3>
centrx: by default, bundler just sets up the load path so only your bundled gems are on it, then gets out the way... but it does also include 'bundler/require' and 'bundler/setup' that do require all gems named explicitly in the Gemfile
<workmad3>
centrx: yes, rails uses bundler/setup (just at the top of config/application.rb)
razrunelord has joined #ruby
nanoyak has joined #ruby
kitak_ has quit [Remote host closed the connection]
<centrx>
workmad3, ah there it is
<centrx>
Thanks workmad3
ikaros has quit [Quit: Ex-Chat]
<workmad3>
mmm... something like that anyway...
nateberkopec has joined #ruby
<banisterfiend>
workmad3 waddup
einarj has quit [Remote host closed the connection]
<workmad3>
banisterfiend: just heading to bed
kevind has quit [Quit: kevind]
mrmargolis has joined #ruby
doodlehaus has joined #ruby
nateberkopec has quit [Client Quit]
andrewjanssen has quit [Quit: Leaving...]
ndrei has quit [Remote host closed the connection]
kitak has quit [Remote host closed the connection]
SegFaultAX has quit [Excess Flood]
kitak has joined #ruby
<banisterfiend>
workmad3 nn :)
bradhe has joined #ruby
Hanmac1 has joined #ruby
kyb3r__ has joined #ruby
bradhe_ has joined #ruby
Hanmac has quit [Ping timeout: 240 seconds]
tacos1de has quit [Ping timeout: 272 seconds]
kyb3r_ has quit [Ping timeout: 240 seconds]
workmad3 has quit [Ping timeout: 245 seconds]
tacos1de has joined #ruby
bradhe has quit [Ping timeout: 255 seconds]
sambao21 has joined #ruby
instantaphex has joined #ruby
<reactormonk>
I got an array of ranges, e.g. [0..73, 77..176, 179..403, 406..530, 533..646, 649..965, 968..1155, 1158..1290, 1293..1544]
<reactormonk>
how do I ask which range e.g. 200..300 is in? (answer: 2 here)
<eval-in_>
terrellt => /tmp/execpad-b56c4e31ecea/source-b56c4e31ecea:2: warning: wrong element type Symbol at 0 (expected array) ... (https://eval.in/148445)
<havenwood>
terrellt: you can Hash[] from the #to_a