<volty>
what I say about lists applies to many other probs, and since he is learning ...
nkumari has quit [Remote host closed the connection]
<volty>
and do not bother me with your tribal-style polemics
<pipework>
Stop wasting people's time.
<pipework>
all the code cleanliness in the world won't make his code run like he wants it to on cruby.
wex13r has joined #ruby
<volty>
one aspect does not exclude the other
kl has quit [Ping timeout: 244 seconds]
<pipework>
Solve problems pragmatically, not dogmatically.
<volty>
the world should be collaborative, and not confrontational
mferrier has quit [Ping timeout: 250 seconds]
econerd4ever has quit [Read error: Connection reset by peer]
<volty>
nothing's more pragmatic than putting those urls in a list --- whatever way you deal with them later
econerd4ever has joined #ruby
<pipework>
Anyways, elemenopy, what I would suggest besides not bothering with volty's advice, is to either use JRuby and modifying your code to work on that if you need, or you'll want to consider other methods of achieving parallelism.
<pipework>
The code you wrote isn't up to the ruby community standards, but it doesn't really matter right now.
xymbol has quit [Quit: Be back later ...]
<elemenopy>
pipework, ok i will research JRuby ty again!
<pipework>
elemenopy: Cheers!
<volty>
a list is a kind of mental parallelism, you treat in parallel (semantically) with iterators instead of sequentially naming variables
wjimenez5271 has joined #ruby
<pipework>
No one cares
dkb20k has joined #ruby
dkb20k_ has quit [Read error: No route to host]
<volty>
yap, this one would be a good example to illustrate the logic & soul of small coin teaching
<pipework>
That's enough of that rubbish.
<volty>
shame
ptierno has quit [Quit: leaving]
starless has left #ruby ["Leaving"]
ptierno has joined #ruby
VanillaGoat_ has joined #ruby
Guest46041 has quit [Quit: Guest46041]
SCHAAP137 has quit [Quit: Leaving]
hmsimha has joined #ruby
VanillaGoat__ has quit [Ping timeout: 240 seconds]
tus has quit [Ping timeout: 244 seconds]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Joufflu_ has quit [Read error: Connection reset by peer]
gr33n7007h has quit [Ping timeout: 250 seconds]
<neredsenvy>
I'm a bit new Ruby coming from ek (PHP) and yay (Java). I'm reading the docs and from docs I have gathered that self. (defines static method) so I assume this is also how you would access a static variable no ?
pengin has quit [Remote host closed the connection]
Joufflu has quit [Ping timeout: 244 seconds]
fabrice31 has joined #ruby
<jhass>
neredsenvy: there's no such thing as static variables, the closest thing are @@class_variables
pengin has joined #ruby
<neredsenvy>
I have a variable declared :name if I have an instance of my object and I call object.method as in my example above it should change the value of the attribute of this instance
<neredsenvy>
Hm
<neredsenvy>
jhass Can you look at my link and explain to me what's happening ?
<jhass>
I'm rather surprised you don't get a NoMethodError on that
<jhass>
oh, ActiveRecord, are you actually learning Rails?
TPBallbag has quit [Remote host closed the connection]
gr33n7007h has joined #ruby
<pipework>
jhass: How are class variables remotely similar to the idea of static variables?
<pipework>
I'd think frozen objects assigned to constants are closer.
<jhass>
they live in a class, I think that's pretty close to Java static variables
<jhass>
do you think about constant variables maybe?
AlSquirrel has quit [Quit: This computer has gone to sleep]
samuel02 has joined #ruby
<jhass>
bah
<jhass>
neredsenvy: Please do not crosspost without at least telling so. Experience shows that people don't bother to inform the other channels of provided solutions, therefore it is considered rude.
Hijiri has joined #ruby
livingstn has joined #ruby
tkuchiki has quit [Quit: Leaving...]
freerobby has joined #ruby
samuel02 has quit [Ping timeout: 244 seconds]
<volty>
ops, it's nokogiri (required by mechanize)
TPBallbag has joined #ruby
ixti has quit [Ping timeout: 272 seconds]
<jhass>
are you on 1.4? 1.3 has a nasty segfault when parsing invalid html from an IO
TPBallbag has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<volty>
jhass: don't know, how do I get version ?
<jhass>
Nokogiri::VERSION should have it
<volty>
"1.6.4.1"
<jhass>
okay, then you might've found a new one :P
bricker`work has quit [Ping timeout: 250 seconds]
usrj has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<volty>
I am thinking if it is a segfault due to wrong building (but here everything was done in a clean way) or name/method clashing (during Qt's after on-exit cleanup)
yeukhon has joined #ruby
<volty>
s/thinking/wondering/
oo_ has quit [Remote host closed the connection]
yeukhon has quit [Client Quit]
jenrzzz has joined #ruby
<volty>
nice thing (at least for this stage) is that everything is ok till the end/exit of the application
<elemenopy>
pipework, i was googling a bit and stumbled across this for a possible solution? i know you said to use JRUBY but i came across this and was wondering if you approve of something like this in place of JRUBY https://blog.engineyard.com/2013/ruby-concurrency
mleung has quit [Quit: mleung]
oo_ has joined #ruby
<pipework>
elemenopy: I don't think it would help.
mistermocha has quit [Remote host closed the connection]
Mars` has quit [Ping timeout: 265 seconds]
benzrf is now known as benzrf|offline
<elemenopy>
pipework, ok im glad i checked because i read teh whole thing and was about to start copy pasta
mathias2 has joined #ruby
<pipework>
elemenopy: Try installing jruby (I use chruby and ruby-install) and running your ruby program with jruby.
<elemenopy>
oh are you serious? that's it?
<elemenopy>
i thought i had to like rewrite it, that's why i was lurking
zorak8 has joined #ruby
<elemenopy>
pipework, im on it
moritzschaefer has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
<pipework>
elemenopy: It might be alright, you might need to do a little bit of swapping out.
emmesswhy has quit [Quit: This computer has gone to sleep]
iamjarvo has quit [Max SendQ exceeded]
<pipework>
Like if you're using activerecord (through rails or not), you might have to switch your adapter to something from jruby.
moritzs has quit [Ping timeout: 264 seconds]
iamjarvo has joined #ruby
<elemenopy>
i use 'sequel' gem
jonr22 has joined #ruby
<pipework>
elemenopy: You might need to see if you can use that on jruby or what you'll have to do.
<elemenopy>
pipework, first thing that broke was the gems i was using. 'nokogiri' LoadError: no such file to load
adriancb has quit [Remote host closed the connection]
krz has joined #ruby
adriancb has joined #ruby
prasselpikachu has quit [Ping timeout: 245 seconds]
<pipework>
elemenopy: Are you using a Gemfile?
hmsimha has quit [Ping timeout: 255 seconds]
<elemenopy>
pipework, yea i am using nokogiri and other gems like 'sequel' and 'json'
tkuchiki has joined #ruby
Spami has joined #ruby
kevinxu has joined #ruby
<pipework>
elemenopy: Ah so you do have a Gemfile?
kevinxu is now known as Guest37704
Guest37704 has quit [Max SendQ exceeded]
<elemenopy>
pipework, not really i just have two files. one file is a main file and it calls a class file
<pipework>
elemenopy: Ah so since you aren't, you'll need to install those gems yourself.
renderful has quit [Ping timeout: 272 seconds]
<elemenopy>
pipework, ok so what can it mean if i have no issues when just running 'ruby GetURLS.rb'. do i have to like 'jruby gem install xxxxx' then under jruby?
<pipework>
elemenopy: You will have to install the gems under jruby.
bricker`work has joined #ruby
<elemenopy>
pipework, ah hah! ok lets try that brb
Mars` has joined #ruby
<pipework>
Depending on how you installed jruby, you'll have different ways to install the gems. I'd just suggest `jruby -S gem install $gem`
moritzschaefer has joined #ruby
moritzs has joined #ruby
baweaver has quit [Remote host closed the connection]
robbyoconnor has quit [Read error: Connection reset by peer]
<elemenopy>
pipework, ok yea something is def happening now
<pipework>
elemenopy: 'something' is definitely a thing.
tymat has left #ruby [#ruby]
deject3d_ has joined #ruby
henesy has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gsd has joined #ruby
mkaesz has quit [Ping timeout: 256 seconds]
gsd has quit [Client Quit]
gmas has joined #ruby
porfa has joined #ruby
emmesswhy has joined #ruby
cirn0 has joined #ruby
usrj has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
AlexRussia has quit [Quit: WeeChat 1.1-dev]
econerd4ever has quit [Read error: Connection reset by peer]
econerd4_ has joined #ruby
Xeago has quit [Remote host closed the connection]
amclain has joined #ruby
<elemenopy>
pipework, i think this is the error now that you were mentioning earlier about the tweaking, we get this error now after i corrected the more obvious errors from before using the jruby -S command. Sequel::AdapterNotFound: LoadError: no such file to load -- mysql
<pipework>
elemenopy: So, you'll want to configure sequel to use an odbc adapter for mysql.
kireevco1 has quit [Ping timeout: 245 seconds]
Jake232 has joined #ruby
wjimenez_ has joined #ruby
corehook has joined #ruby
oo_ has quit [Remote host closed the connection]
emmesswhy has quit [Quit: This computer has gone to sleep]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
NoNMaDDeN has joined #ruby
stunder has joined #ruby
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
econerd4_ has quit [Remote host closed the connection]
wjimenez5271 has quit [Ping timeout: 245 seconds]
econerd4ever has joined #ruby
Mars` has quit [Ping timeout: 264 seconds]
Jarboe has joined #ruby
wsmoak has quit [Quit: wsmoak]
havenwood has joined #ruby
jimbach has joined #ruby
bricker`work has quit [Quit: leaving]
econerd4ever has quit [Ping timeout: 265 seconds]
oo_ has joined #ruby
AlexRussia has joined #ruby
<elemenopy>
pipework, ok ok ok , so i've got it running again after some tweaking and stuff.... but alas it is not running all the threads at once :(
<pipework>
elemenopy: How weird. Let's see, gist your latest program.
chris__ has joined #ruby
<elemenopy>
ok
Channel6 has joined #ruby
havenwood has quit [Remote host closed the connection]
deric_skibotn has quit [Ping timeout: 255 seconds]
St1gma has quit [Read error: Connection reset by peer]
<zacts>
ok, should I have read the pragmatic press programming ruby before that one, or will my online tutorials be enough to understand Metz's book?
<pipework>
zacts: I think you need to read the first half of Metaprogramming Ruby
<pipework>
It explains the a lot of ruby and how the object model works.
<zacts>
pontiki: ah ok, thanks for the link
<pontiki>
i wouldn't hand that to a newbie, pipework
<pontiki>
but soon
<zacts>
pipework: the first half of the metaprogramming ruby monk tutorial?
<pipework>
pontiki: I would.
<pipework>
The first half has nothing to do with metaprogramming.
<pontiki>
before they knew the syntax?
xorax has quit [Ping timeout: 255 seconds]
<elemenopy>
pipework, ok let me change this 1 sec my finger is hurt :)
<pipework>
It's all about object model and understanding how ruby thinks and looks things up.
troyready has quit [Ping timeout: 250 seconds]
<pipework>
zacts: No, the book. Have you learned any other programming languages before?
gsd has joined #ruby
zorak8 has quit [Ping timeout: 240 seconds]
Rojo has joined #ruby
<agent_white>
zacts: You shouldbe fine with the book! It uses great, simple examples of what to and what not to do. In general it has helped my understanding of OOP as a whole.
<volty>
go and digs the bits of the computer -- to "know how the computer thinks "
TPBallbag has quit [Ping timeout: 255 seconds]
robbyoconnor has joined #ruby
<volty>
programming is about abstraction on data transformations
<volty>
metaprogramming is difficult, especially for beginner
<volty>
s
<pontiki>
i truly loved metaprogramming in ruby, v.1, have not read v.2 yet, but i expect it to be equally wonderful
<zacts>
pipework: I know a bit of Perl
yetanotherdave has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
moritzschaefer has quit [Ping timeout: 250 seconds]
<zacts>
but not much no.
<pontiki>
even if you never expect to do metaprogramming, pipework is *absolutely* correct, the book is fantastic at explaining the ruby object model
<zacts>
I have much to learn, but I use vim
<volty>
those who advice those things to beginners just want to pose «I am so smart, try get me!»
<pipework>
zacts: I'd suggest reading through Learn to Program.
Spami has quit [Quit: This computer has gone to sleep]
eka has joined #ruby
<zacts>
pipework: I'm almost done with it
moritzs has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
Spami has quit [Remote host closed the connection]
graft has quit [Ping timeout: 265 seconds]
amclain has quit [Quit: Leaving]
<pipework>
zacts: Ah good. The next important book for just ruby essentials before metaprogramming ruby is called the black book. It's here: http://www.manning.com/black2/
<volty>
nobody's born learned, get the clue and stop posing
<agent_white>
"I have much to learn, but I use vim" -- /me pictures person with rockets attached to all ligaments
hiyosi has quit [Ping timeout: 272 seconds]
<pipework>
volty: Stop being butthurt because you gave people bullshit advice. Everyone does it when they start learning how to help people, I've moved on from it and so should you
<pontiki>
and an ignore is locked
<pipework>
agent_white: Haha.
mathias2 has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
<zacts>
pipework: ah ok, so after learn to program, then do: black book -> metaprogramming ruby?
corehook has quit [Remote host closed the connection]
<zacts>
so is the pragmatic programming ruby more of a reference book?
Axy has quit [Read error: Connection reset by peer]
<pipework>
zacts: That's what I'd suggest.
<zacts>
ok cool
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
<pipework>
zacts: Yeah the pickaxe, as it's called, is a good book to flip through but it's more of a reference book.
jonr22 has quit [Remote host closed the connection]
apeiros__ has quit [Remote host closed the connection]
<elemenopy>
pipework, omg
rshetty has joined #ruby
<volty>
putting urls in an array (instead of handling them with t1, t2, t3 ... ) isn't bullshit advice. It's essential, teacher of my boots
<pontiki>
i read through the first version, back in the day. what a slog.
<elemenopy>
pipework, how could i not see this? the issue the order in which i am calling join
<elemenopy>
moving all thread declarations above the initial join fixes the issue
rshetty has quit [Remote host closed the connection]
<pipework>
volty: It had nothing to do with his problem. Stop solving problems that aren't related to the issue.
iamjarvo has joined #ruby
<pontiki>
zacts: have you got the latest version of programming ruby?
<elemenopy>
pipework, moving all the thread.new to be together , and calling all the joins at the end fixes it :)
<volty>
it was an advice, dumby, i didn't state that it was a solution
<pipework>
elemenopy: :D
<zacts>
yeah I have programming ruby 4th edition
<pontiki>
awesome :)
<elemenopy>
pipework, dude that is nuts
<elemenopy>
pipework, but it actually makes sense
<pipework>
elemenopy: Yeah, I thought it was where you were calling join.
<zacts>
pipework: so which edition of metaprogramming ruby should I get?
<pipework>
The work was done in the thread already, but the joins were being called one after another.
<pipework>
zacts: The latest is good.
<pontiki>
zacts: the black book is "The Well-Grounded Rubyist" by David Black -- quite good, if not essential, even
<zacts>
ok cool
<elemenopy>
pipework, ruby was doing exactly what i was asking it to, but i was asking incorrectly :)
djbkd has quit [Remote host closed the connection]
<pipework>
elemenopy: Fun stuff, innit?
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<elemenopy>
pipework, fml haha well i think i learned a very valuable lesson for the night
<elemenopy>
pipework, and your each method is also better
<pipework>
elemenopy: There's more nice things that can be done, but for something small and one-off like this, it's mostly mental masturbation.
<pipework>
I like pretty code.
goshdarnyou has joined #ruby
<pontiki>
i had his earlier book when i started in on ruby and rails "Ruby for Rails" -- best book ever, for the time
narcan has joined #ruby
mathias2 has quit [Ping timeout: 272 seconds]
duncannz has joined #ruby
Nilium has quit [Quit: <kristin> Cower is like... I dunno. sometimes he seems senile and other times he seems like a middle schooler.]
tus has joined #ruby
<volty>
@ISSUECOP <pipework> volty: It had nothing to do with his problem. Stop solving problems that aren't related to the issue.
djbkd has joined #ruby
<volty>
tell me how you determine what is an issue
tus has quit [Client Quit]
<pipework>
Here's where I remind people not to feed trolls.
<sevenseacat>
lol issue cop
<sevenseacat>
oh shit
<volty>
pimply man, stop barking at me
agjacome has quit [Quit: leaving]
<volty>
i just gave an advice that imo was a good one
siwica has quit [Quit: siwica]
<volty>
it was only you that started to bark at me
<volty>
that one in real life can only hide his pimples
<pipework>
The problem was that they weren't calling join in the right place and that they weren't using a ruby that can take advantage of concurrency, but volty thought the issue had to do with code cleanliness.
<pipework>
Anyways the chum was helped and enlightened for it.
<Radar>
Grand.
<pipework>
innit
<gr33n7007h>
Radar, A frikken do, you know how long i've been looking at that, nice one
<volty>
do not go round, fakeman, the mine was only about better putting those urls in an array -- a good advice for a beginner, imo
<Radar>
gr33n7007h: my paypal is radarlistener@gmail.com just FYI
<pontiki>
:D
<pontiki>
tip jar
ramfjord has quit [Ping timeout: 255 seconds]
<gr33n7007h>
sweet, transfering money now :)
rshetty has joined #ruby
<Radar>
thanks :D
jonr22 has joined #ruby
<pontiki>
anyone use airpair?
<Radar>
pontiki: yes
<Radar>
I like it
<pipework>
pontiki: nope, but I've looked at it.
<pipework>
I pair with people for free on open source projects if scheduling allows.
rshetty has quit [Remote host closed the connection]
<pontiki>
as a mentor?
<pipework>
Not sure I'd want to put that out just onto the general internet for any random though.
<sevenseacat>
i dont pair with people because they would make fun of me D:
<pipework>
pontiki: As a pair. I learn as often as I impart knowledge.
<pipework>
sevenseacat: funny accent!
<pontiki>
ah, cool
tyll_ has joined #ruby
<Radar>
pontiki: yes, as a mentor
<volty>
he's looking after meta-retarded, ahah
fabrice31 has joined #ruby
<volty>
to teach
<pontiki>
hum
<pipework>
I don't actually approach pairing as a mentor mentee thing, even if I'm the more knowledgable one about the subject.
<sevenseacat>
pipework: too right, mate.
<Radar>
STRUTH
pietr0 has quit [Quit: pietr0]
<sevenseacat>
i was going to say 'too right cobber' but thought that was a bit *too* ocker.
<pontiki>
i've never paired officially with anyone
<agent_white>
I wish there was more mentoring pairing stuff for noobs. I joined one from reddit, but we were both beginners... blind leading the blind.
amclain has joined #ruby
<pontiki>
if shoulder surfed and kibitzed
mkaesz has joined #ruby
<pontiki>
s/if/i've/
<sevenseacat>
i will forever associate the word 'struth' with alf stewart.
djbkd has quit [Quit: My people need me...]
<pontiki>
i have coded in public... which is weird as
<volty>
enough :) bye to all, and advice to pipework to not break eggs (or bark) the next time somebody's trying to express his opinions
<pontiki>
blah blah volty blah blah
<pipework>
pontiki: You're a voyeur developer!
tyll has quit [Ping timeout: 264 seconds]
<pipework>
Exciting.
<volty>
do not behave like small coins
<Radar>
Oh we all don't have volty on ignore yet?
<pontiki>
sorta
<volty>
do not go like a tribe
<pontiki>
i was missing the fun
<volty>
we are all humans, aren't we ? :)
<volty>
bye
<pipework>
Radar: I figure that if everyone ignores him, the poor new people won't have anyone to let them know his advice is rubbish when it sucks.
volty has quit [Quit: Konversation terminated!]
<pontiki>
pipework: voyeur and exhibitioning, if you must know
<pipework>
pontiki: Ah, that's quite the hobby.
<Radar>
pipework: sounds fiar
<pontiki>
exhibitionist*
tlarevo_ has quit [Remote host closed the connection]
<pipework>
Radar: is fiar another one of your narnian words?
<pontiki>
damn fingers have minds of their own
<Radar>
fair*
gsd has joined #ruby
<pipework>
Damn, was hoping to learn more Narnian so that I could try to talk down a hoopsnake or a dropbear if necessary.
tlarevo has joined #ruby
Nilium has joined #ruby
<Radar>
heh
<pontiki>
you still have to watch for the bunyips, regardless
<sevenseacat>
come visit narnia then :P
fabrice31 has quit [Ping timeout: 264 seconds]
<pipework>
That is frightening, pontiki.
jxf has quit [Ping timeout: 240 seconds]
<sevenseacat>
come to rubyconf au in february!
<pontiki>
i want to
nobitanobi has quit [Remote host closed the connection]
<pontiki>
*really* want to
<pipework>
sevenseacat: I wonder if my company wouldn't mind that...
skullman has joined #ruby
<pontiki>
frikken february in minnesnowdia :(((
<sevenseacat>
hear many australian accents and some kiwi ones
<pipework>
I get like $5000/year to educate meself
<agent_white>
pontiki: I feel you. It was -10 out today while I was tending to the farm amninals :(
<pontiki>
:''(
<pipework>
sevenseacat: You'd have to help me with my accent so I can come home and speak like a Narnian.
<sevenseacat>
february in aus is hot :(
<sevenseacat>
too hot
jonr22 has quit [Remote host closed the connection]
<pontiki>
pipework: 5 grand makes a hecka stake for a good trip to oz
nobitanobi has joined #ruby
arup_r has joined #ruby
nobitanobi has quit [Remote host closed the connection]
<pipework>
pontiki: I mean, I don't have to spend it in one trip, but I can.
<pontiki>
ever been?
<pontiki>
i <3 melbourne
neredsenvy has left #ruby [#ruby]
<pipework>
never even once
mikepack has joined #ruby
<pipework>
I'd need to get my passport.
<pontiki>
get it now
<pontiki>
even if you don't go
cmoylan has quit [Ping timeout: 244 seconds]
<pontiki>
the lead time on them is huge
Rojo has quit [Ping timeout: 244 seconds]
<pipework>
I've been thinking about trying to convince ireland to give me citizenship.
<sevenseacat>
i have a passport, ive never used it :(
<pipework>
dual citizenship would be great between the US and Ireland. I could enter places as an Irishman that I might not be able to as an American.
<pontiki>
you'd have to work on that accent, too
<sevenseacat>
irish accents can be hot, but then again so can american ones
<pipework>
pontiki: I live next to an irishman who has dual citizenship between the US and Ireland.
<pontiki>
that's cool
<pipework>
sevenseacat: Which American accents?
skullman has quit [Remote host closed the connection]
<sevenseacat>
lots of them. like avdi grimm's accent.
chipotle has quit [Quit: cya]
<pipework>
sevenseacat: Oh, that's like a combination of an accent and a really deep voice.
<pipework>
Unless you don't really care either way for the deepness.
mikepack has quit [Ping timeout: 264 seconds]
<sevenseacat>
the deepness is good :)
<pontiki>
avdi's is the classic american radio voice
<pipework>
Not what I expected when I first heard him. But I like hearing it.
<pontiki>
sexy as hell
beilabs_ has joined #ruby
<pipework>
"Talk weather to me, baby."
<pipework>
I want to hear him imitate NPR.
<sevenseacat>
i wasnt going to say it pontiki, but yeah :P
magic_ has joined #ruby
<pontiki>
i get all buttery when he signs off with "happy hacking!"
samuel02 has joined #ruby
<porfa>
d
* pipework
sends logs to avdigrimm
luriv has quit [Ping timeout: 245 seconds]
genpaku_ has quit [Ping timeout: 244 seconds]
<zacts>
pipework: ok, I got the books
nyanz has joined #ruby
genpaku has joined #ruby
chipotle has joined #ruby
<pipework>
zacts: Sweet, now read. I really suggest typing out everything code-wise. Not because you won't get it when you read it, but typing it makes it easier for me to really 'get' it.
<zacts>
ok, sure
<pipework>
It becomes easier to recall and use when I've typed it.
dc_ has quit [Remote host closed the connection]
<pontiki>
and take notes!
<pipework>
And drink heavily!
<pipework>
(wait, no, that's just me)
samuel02 has quit [Ping timeout: 245 seconds]
<pontiki>
coders with drinks
<zacts>
I drink tea and coffee
<pontiki>
need to start a group like that
<zacts>
and water
<pontiki>
everyone around here is into beer
<pipework>
My manager said I should always be sober while working. L-oh-fucking-L.
<pipework>
pontiki: I mostly drink liquor and ciders.
<pontiki>
i thought you were your own boss
<pontiki>
yeah, i drink cider
<pontiki>
i used to drink a lot more wine, but lately it just runs straight to my head
<pipework>
Though admittedly, Radar turned me onto cider. I'd had them before, but hadn't really thought to like them.
<pontiki>
i never liked beer
<pipework>
pontiki: It goes to my head and my bladder, and I'm sure you know where it goes after that.
<pontiki>
but i found cider first time i went to france
<pontiki>
and wine of course
<pipework>
No, I'm a company ginger now. Have been for a year.
wjimenez_ has quit [Remote host closed the connection]
Azure has quit [Ping timeout: 245 seconds]
dkb20k_ has joined #ruby
<pontiki>
oh, well - i was gonna say your manager is an ass
<agent_white>
pontiki/pipework: You should try Smith & Forge. Had it for the first time recently, damned good cider.
<agent_white>
Also Johnny Appleseed... but woodchuck is my go-to :)
<pontiki>
oh dear
<pontiki>
do not like woodchuck
dkb20k has quit [Read error: Connection reset by peer]
dkb20k__ has joined #ruby
<pontiki>
scottish strongbow is my go-to when i can find it
<pontiki>
the stuff we have lately is not that
<pipework>
I mostly drink stuff from the pacific northwest. I'm trying to track down the one I like the most though.
<pipework>
Strongbow cider is pretty good.
<agent_white>
pontiki: Ooo... I'll have to try it!
omosoj has quit [Ping timeout: 250 seconds]
<pontiki>
ace peary from sebastopol is awesome
<pipework>
Portland Cider Company isn't terrible, but most of it is super acidic candy cider.
<pontiki>
also hard to find
dseitz has joined #ruby
<pontiki>
like angry orchard :P
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki>
crispin is a good local cider
<gr33n7007h>
old rosie or black dragon
Soda has quit [Remote host closed the connection]
<Radar>
love me some angry orchard
<Radar>
gr33n7007h: still waiting on that paypal money btw
<pipework>
Radar: What kind?
<pontiki>
i do not like angry orchard
<Radar>
pipework: the cider
<pipework>
Radar: There's like a bunch
<agent_white>
Out here in the boonies, if you don't drink Coors then you're some fancy city-slicker.
<pipework>
I've been trying all the special kinds lately.
<Radar>
pipework: I like all cider
omosoj has joined #ruby
<pipework>
Radar: Even the elderflower?
<Radar>
oh god no
<pipework>
That was terrible.
<Radar>
agree
<pipework>
Radar: Two towns has one of the worst ciders I've ever had. Looking it up.
<Radar>
I had a hoppy cider in Bend. The damn reason I don't drink beer is because of the hops
<pontiki>
if you can find the ace, give it a go
<pontiki>
too right
<pipework>
pontiki: "Ace" or "The Ace"? Picture?
dkb20k_ has quit [Ping timeout: 264 seconds]
<pontiki>
the brand is ace, and there's a picture of a ace of spades playing card on the bottle, usually
<pontiki>
let me see if i have one
larissa has quit [Quit: Leaving]
<pipework>
Atlas Blackberry/Elderberry Cider was horrible
m3_del has quit [Read error: Connection reset by peer]
IrishGringo has joined #ruby
helpa has quit [Remote host closed the connection]
helpa has joined #ruby
sptq has quit [Ping timeout: 255 seconds]
adamholt has quit [Ping timeout: 255 seconds]
porfa_ has joined #ruby
hiyosi has quit [Ping timeout: 258 seconds]
porfa has quit [Ping timeout: 255 seconds]
Rydekull has quit [Ping timeout: 255 seconds]
porfa_ is now known as porfa
DefV has quit [Ping timeout: 255 seconds]
brendenb has quit [Ping timeout: 265 seconds]
Parker0 has joined #ruby
DefV has joined #ruby
m4rCsi has joined #ruby
spacemud has quit [Ping timeout: 255 seconds]
certainty has quit [Ping timeout: 255 seconds]
rainfyre has joined #ruby
jnylen has quit [Ping timeout: 255 seconds]
m4rCsi_ has quit [Ping timeout: 255 seconds]
jamooo_ has quit [Ping timeout: 255 seconds]
mattjbarlow has quit [Ping timeout: 265 seconds]
Brando753 has quit [Ping timeout: 265 seconds]
evvel2_ has quit [Ping timeout: 244 seconds]
adamholt has joined #ruby
tris has quit [Ping timeout: 272 seconds]
nateberkopec has joined #ruby
edwardly has quit [Ping timeout: 265 seconds]
mistergibson has quit [Ping timeout: 265 seconds]
lorn_ has quit [Ping timeout: 265 seconds]
knight1 has quit [Ping timeout: 265 seconds]
Rydekull has joined #ruby
haroldwu has quit [Ping timeout: 265 seconds]
durnik has quit [Ping timeout: 265 seconds]
evvel2 has joined #ruby
brendenb has joined #ruby
spacemud has joined #ruby
mattjbarlow has joined #ruby
certainty has joined #ruby
omosoj has quit [Quit: leaving]
jamooo has joined #ruby
garycruise has quit [Quit: 离开]
durnik has joined #ruby
haroldwu has joined #ruby
Brando753 has joined #ruby
pdtpatrick_ has joined #ruby
tris has joined #ruby
mistergibson has joined #ruby
sptq has joined #ruby
jnylen has joined #ruby
lorn has joined #ruby
nateberkopec has quit [Client Quit]
<Radar>
RuntimeError: can't add a new key into hash during iteration
<Radar>
Well that's a new one.
<pipework>
Radar: is it?
edwardly has joined #ruby
<Radar>
I've never seen that error before.
<pipework>
Oh it's a fun one, but you clearly know what caused it.
radic has quit [Disconnected by services]
radic_ has joined #ruby
kireevco has joined #ruby
<pipework>
I've hit it and went 'duh! stupid pipework'
kireevco has quit [Max SendQ exceeded]
<Radar>
I do?
<Radar>
:P
<sevenseacat>
trying to modify a hash that you're iterating over? >_>
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<pipework>
Radar: You're doing a map or something like an enumerable method and you're adding keys into the hash you're iterating on
<Radar>
Not iterating over a hash
edwardly has quit [Changing host]
edwardly has joined #ruby
<Radar>
this is chendo's code so it's a bit crazy (in a good way)
<pipework>
Oh.
<sevenseacat>
hah
kireevco has joined #ruby
<pipework>
Is it opensauced?
<Radar>
no
nateberkopec has joined #ruby
nateberkopec has quit [Client Quit]
<sevenseacat>
sekrit lifx code.
mkaesz has quit [Ping timeout: 272 seconds]
<pipework>
Oh you work with the chendo?
<Radar>
yes
<pipework>
I thought he was still working on his own thing, doing shortcat and other apps.
<pipework>
I still use the shit out of shortcat.
nobitanobi has joined #ruby
<Radar>
naw, he's working at lifx being my manager and stuff
nonks has quit [Ping timeout: 250 seconds]
<sevenseacat>
being a boss man? interesting
<Radar>
he doesn't like being the boss man
<pipework>
Radar: Oh.
<pipework>
Didn't figure him for a manager.
<pipework>
Some day when I get fed up with developers that aren't me (and those that are me), I'll get into management so I can have a fancy chair and a bigger salary.
<pipework>
That may or may not coincide with my early demise shortly following that transition though.
jimbach has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
takle has quit [Remote host closed the connection]
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
Eiam_ has joined #ruby
<Radar>
Yeah, he's really reluctant to be the manager. But he's the most senior (in programming terms... in actual terms he's the youngest) and so he's the manager
<Radar>
He also knows the stack the best
<pipework>
Radar: Maybe I'll just troll him about documenting the binary protocol instead of you.
rshetty has joined #ruby
<pipework>
You've not responded too hilariously lately.
jenrzzz has quit [Ping timeout: 264 seconds]
<Radar>
brb
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
bigmac has joined #ruby
yfeldblum has quit [Remote host closed the connection]
skullman has joined #ruby
livingstn has quit []
<pontiki>
better and more technical experience and knowledge often does not translate into effective management
<pontiki>
frequently, it goes the other way
Azure has joined #ruby
arup_r has quit [Quit: Leaving.]
braincrash has quit [Quit: bye bye]
wjimenez5271 has joined #ruby
B1n4r10 has joined #ruby
B1n4r10 has quit [Client Quit]
pietr0 has joined #ruby
nonks has joined #ruby
braincrash has joined #ruby
maletor has joined #ruby
oo_ has joined #ruby
skullman has quit [Remote host closed the connection]
nonks has quit [Ping timeout: 250 seconds]
kp666 has joined #ruby
ukfagsmoker has joined #ruby
oo_ has quit [Ping timeout: 258 seconds]
<Radar>
back
<ukfagsmoker>
what is the point of working with rspec? i don't quite get it although i am taking a course from codeschool
chipotle has quit [Ping timeout: 250 seconds]
<Radar>
ukfagsmoker: RSpec or testing in general?
<ukfagsmoker>
well testing in general
<ukfagsmoker>
is rspec a "language
<ukfagsmoker>
"language"
<Radar>
It's a behaviour driven development framework built on Ruby
xorax has joined #ruby
<Radar>
It allows you to write code to test code you haven't written yet
<Radar>
The point of testing is to make sure your code does what you expect it to... and then if it changes in the future, to have that framework in place
chipotle has joined #ruby
echooo has joined #ruby
<pipework>
ukfagsmoker: Testing is great because it lets you know when something you made an assertion on no longer passes that assertion.
robbyoconnor has quit [Quit: Konversation terminated!]
<ukfagsmoker>
but aren't you writing that code twice in a way? wouldn't it be better to just run it?
<pipework>
Imagine, if you would, if we didn't have smoke detectors and your only hope of not dying in your sleep was that you woke up before you died.
<pipework>
ukfagsmoker: Run it and then test all the possible permutations that matter manually?
<pipework>
What happens after you add another feature that's related? Do you test permutations of feature A times permutations of feature B manually?
Channel6 has quit [Quit: Leaving]
<pipework>
What if I told you could automate these tests to make sure the code you wrote actually works when you add new code and complexity?
<ukfagsmoker>
i don't know mate, this whole thing to me is rather confusing
<pipework>
ukfagsmoker: It can be.
chris__ has quit [Ping timeout: 244 seconds]
<pipework>
It really depends on how eager you are to push potentially completely horrendously broken things out because you relied on testing manually instead of letting a computer do it for you.
<ukfagsmoker>
but aren't you letting the computer test the things for you when you're running your code?
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework>
ukfagsmoker: Why do you think just running the code will suss out problems with input and timing?
<josephndenton>
ukfagsmoker: Code that runs is not always code that is error free.
<pipework>
It being valid ruby doesn't mean the code actually does what you want it to.
<godd2>
ukfagsmoker no. testing and running are two different kinds of things. It's like a power supply. You aren't testing your computer's power supply, but you are using it. power supply testing would be taking it out and checking the voltages on each wire
<pipework>
You'd think if that were true, software would always just work and there'd be no hilarious reddits like talesfromtechsupport
<pipework>
subreddits that is
<godd2>
pipework cant live without my chrome ultra though
<josephndenton>
ukfagsmoker: The real beauty of testing comes as complexity grows. If your test suite still passes after a new feature, you can rest assured that you didn't break anything.
<josephndenton>
godd2: Ultron* :p
<pipework>
And if you're concerned about writing twice the code, you're also wrong. It's not unreasonable for the tests to be larger or more numerous than your implementation.
d4nku has quit [Ping timeout: 272 seconds]
coderhs has quit [Ping timeout: 256 seconds]
noop has joined #ruby
yfeldblum has joined #ruby
bigmac has quit [Remote host closed the connection]
slawrence00 has joined #ruby
benzrf|offline is now known as benzrf
<godd2>
ukfagsmoker It's true that there are other ways to get the benefits that testing provides you, but running your code is not one of them.
<pipework>
You could hire a bunch of QA's, who'll either constantly repeat the same exploratory-style tests, or they'll just write tests for you.
<Radar>
ukfagsmoker: Would you rather run your code manually 100 times or write a test that can be ran 100 times?
<lampd1>
mmm selenium
<pipework>
Complexity is the biggest thing to consider.
<pipework>
lampd1: ugh slow selenium
<lampd1>
:P
yfeldblum has quit [Ping timeout: 265 seconds]
<lampd1>
what you use?
<lampd1>
i actually don't use it much :P
<pipework>
I push my tests down as low into the stack as I can while maintaining a healthy and minimal set of functional tests.
<pipework>
But for functional testing web applications, I tend to use phantomjs
<lampd1>
nice, i'll have to check it out
oo_ has joined #ruby
<lampd1>
i do a lot of ecom, sometimes have to make some annoying functional tests :P
<pipework>
I usually work on backends these days though, so I test my clients with integration tests and the app itself with request specs.
chris__ has joined #ruby
<lampd1>
yeah
Cache_Money has joined #ruby
nkumari has joined #ruby
bluOxigen has joined #ruby
pdtpatrick_ has quit [Quit: pdtpatrick_]
krz has quit [Ping timeout: 272 seconds]
jusmyth has joined #ruby
i_s has quit [Remote host closed the connection]
i_s has joined #ruby
sinequanon has joined #ruby
mistermocha has joined #ruby
freerobby has quit [Quit: Leaving.]
jusmyth has left #ruby [#ruby]
j_mcnally has joined #ruby
mathias2 has joined #ruby
nonks has joined #ruby
<josephndenton>
Capybara no longer good for higher level tests?
mkaesz has joined #ruby
benzrf is now known as benzrf|offline
<pipework>
Why wouldn't it be?
<pipework>
I use capybara to drive phantomjs
hephaestus_rg has joined #ruby
<pipework>
Most people who use ruby and selenium use capybara with the selenium driver.
i_s has quit [Ping timeout: 264 seconds]
<hephaestus_rg>
hi there, does anyone know of something like string.parameterize in python?
wjimenez5271 has quit [Remote host closed the connection]
<pipework>
hephaestus_rg: What does that do?
<pipework>
Do you mean, "Can I use parameterized strings in Ruby?"
mistermocha has quit [Ping timeout: 258 seconds]
<Radar>
hephaestus_rg: !explain
<helpa>
hephaestus_rg: Please explain your problem better as we are having trouble understanding what you mean. A Gist (http://gist.github.com) is always helpful!
hamakn has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
arescorpio has joined #ruby
hamakn has joined #ruby
<hephaestus_rg>
i mean, i'm writing a python program. and ruby/rails has a nice function called parameterize
mark06 has joined #ruby
<hephaestus_rg>
which removes all nasty characters from a string to make it look like a pretty url
<hephaestus_rg>
does such a thing exist in tornado/python or do i need to write it from scratch
<pipework>
hephaestus_rg: Ask pythonists then.
fabrice31 has joined #ruby
<hephaestus_rg>
i did :)
mskaesz has joined #ruby
mathias2 has quit [Ping timeout: 255 seconds]
charliesome has joined #ruby
<godd2>
hephaestus_rg keep in mind that rails adds a bunch of it's own classes and methods, so you probably have to write it from scratch just like it was for rails
<ukfagsmoker>
i heard that there were live coding videos, but they are now acquired by pluralsight
ferr has quit [Ping timeout: 258 seconds]
nkumari has quit [Remote host closed the connection]
<mark06>
godd2: indeed, that's why I want to remove them
<mark06>
godd2: it will be longer to be repeated everywhere in the client's code but EasyOptions::options[:name] is just better
Oog has joined #ruby
Platini has quit [Ping timeout: 240 seconds]
nkumari has joined #ruby
<Oog>
i want a +? in a regex if that makes sense.... so "<http://www.msn.com>".match(/<(.*)>+?/)[1] - i want it to eat the > if present but if not i still want it to match
nkumari has quit [Remote host closed the connection]
<Oog>
that gets rid of > in the middle but i wan to keep them if there
kp666 has quit [Remote host closed the connection]
<Oog>
did you index with a regex?! cna you do that?
<godd2>
Oog Are you trying to parse htlm with regex?
<Oog>
godd2: no im parsing the list-unsubscribe header of a mime email header
<Oog>
wow you can index with a regex that is crazy
<Oog>
i had no idea
ramfjord has joined #ruby
nkumari has joined #ruby
mistermocha has joined #ruby
<Oog>
i split on , then use the mail library to parse what is possibly an email address but if it fails it means it is possibly a link if it starts with < so format is <link> so that is what imparsing - better way?
marcdel has quit []
<Oog>
i spoke too soon my "<http://www.msn.com".match(/<(.+)(>)+?/)[1] actually fails
marcdel has joined #ruby
<Oog>
maybe what i want isnt possible...
atraylen has joined #ruby
mistermocha has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
Techguy305 has joined #ruby
mikepack has joined #ruby
Techguy305 has quit [Max SendQ exceeded]
Platini has joined #ruby
awkwords has quit [Quit: snooze]
atraylen has quit [Ping timeout: 272 seconds]
robbyoconnor has quit [Quit: Konversation terminated!]
Platini has quit [Ping timeout: 265 seconds]
fandi has joined #ruby
reinaldob has joined #ruby
Techguy305 has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
Techguy305 has quit [Max SendQ exceeded]
dabockster has joined #ruby
dabockster has left #ruby [#ruby]
rshetty has quit [Remote host closed the connection]
Techguy305 has joined #ruby
Techguy305 has quit [Max SendQ exceeded]
corehook has quit [Remote host closed the connection]
Techguy305 has joined #ruby
henesy has quit [Quit: Ex-Chat]
reinaldob has quit [Ping timeout: 245 seconds]
jenrzzz has quit [Ping timeout: 244 seconds]
lampd1 has quit []
Eiam_ has quit [Read error: Connection reset by peer]
Platini has joined #ruby
Eiam_ has joined #ruby
takle has joined #ruby
yfeldblum has quit [Remote host closed the connection]
yfeldblum has joined #ruby
JBreit has joined #ruby
rshetty has joined #ruby
jenrzzz has joined #ruby
takle has quit [Ping timeout: 272 seconds]
marcdel has quit []
JBreit has left #ruby [#ruby]
Joufflu has joined #ruby
samuel02 has joined #ruby
ecksit has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shortCircuit__>
marnig everyone
St1gma has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
st1gma1 has quit [Ping timeout: 258 seconds]
prasselpikachu has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
tagrudev has joined #ruby
nkumari has quit [Remote host closed the connection]
deject3d_ has quit [Quit: Computer has gone to sleep.]
dziga has left #ruby [#ruby]
agent_white has quit [Ping timeout: 244 seconds]
mkaesz has joined #ruby
agent_white has joined #ruby
Jarboe has quit []
mleung has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
kp666 has joined #ruby
<zacts>
hi
tobago has joined #ruby
deject3d_ has joined #ruby
samuel02 has quit [Remote host closed the connection]
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
deject3d_ has quit [Remote host closed the connection]
<zenspider>
heh. I'll have to check it out. I have no idea how fast I type
<zenspider>
@tenderlove just switched from qwerty to norman and he currently sucks at typing
<godd2>
2 years ago I couldn't type faster than 30 without looking.
ikaros has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<zenspider>
I have no idea how I compare
corehook has joined #ruby
econerd4ever has joined #ruby
<zacts>
I don't like dvorak for my taste
<zenspider>
I love it
<zacts>
it's too repetitive, my wrists became tired faster when I tried it
<zacts>
plus I'm a vimmer
<shevy>
damn
<shevy>
I am at 114
<shevy>
VijjuPraveen is at 142
<zenspider>
too repetitive? I disagree. it is much more even per hand / finger than qwerty
<shevy>
indian superhero
<shevy>
godd2 that scrolling thing is annoying; I lost track of the next sentence 3 times...
<godd2>
I've gotten used to it. Also, if you click the timer, it will be hidden
d4nku has quit [Ping timeout: 244 seconds]
<godd2>
the timer always distracts me
arup_r has quit [Remote host closed the connection]
chris__ has quit [Ping timeout: 265 seconds]
<shevy>
and there was one word that took me about 3 times as long as the others... perhaps it was business... is there a way to find out what the text was? I wanna find out why my brain took so much longer than for the other words there
<shevy>
I mean the word "business" ... or it was nearby to that word
robbyoconnor has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<zenspider>
and he could code about as fast as he could type too
<shevy>
wow
<shevy>
superhuman speed
<agent_white>
My old-boss was at 120-140 as a coder.
<agent_white>
I'm at 90.
<agent_white>
Some day... my fingers will catch on fire.
elaptics`away is now known as elaptics
<godd2>
agent_white jsut practice 10 minutes a day or so
chthon has joined #ruby
<shevy>
agent_white 90 is already quite good, should not take you long at all to go above 100
<agent_white>
godd2: My practice is hopping on IRC. The rest will come with time.
<shevy>
haha
d4nku has joined #ruby
Versality has joined #ruby
<godd2>
lol
<zenspider>
I got a whopping 72. I find those tests to be fairly invalid, since they have no semantic meaning and I can have my brain stream over the words very well
<zenspider>
1 typo
<zenspider>
I also peter out half way. if there was a 30 second test it would be better :)
<godd2>
zenspider I agree on the issue of syntax. I would love to see at least a rudimentary grammar behind the wordlist.
<zenspider>
74 on the other one. typo'd more too.
<zenspider>
3 mistakes all 3 letter words
<zenspider>
cpm of 370! that sounds impressive! woo
abuzze_ has joined #ruby
mikecmpbll has joined #ruby
<godd2>
haha
timonv_ has joined #ruby
<godd2>
Having a mechanical keyboard made a difference too
alex88 has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<kumarat9pm>
We can achieve each loop with a for loop, why there is a special each loop in Ruby?
sigurding has joined #ruby
<zenspider>
because there is
<sevenseacat>
because they have different scopes
<zenspider>
godd2: oh? better or worse?
abuzze has quit [Ping timeout: 265 seconds]
<godd2>
zenspider better. I have cherry mx brown switches. no clicky, but you can feel the actuation
_5kg has quit [Ping timeout: 244 seconds]
<godd2>
mightve been a little placebo + practice though.
CustosL1men has joined #ruby
francisfish has joined #ruby
<zenspider>
haha
econerd4ever has quit [Remote host closed the connection]
<zenspider>
cherry mx brown... mmmmm... 2004. *sniiiiff* goooood year
Synthbread has joined #ruby
Pupeno has joined #ruby
Pupeno has quit [Changing host]
Pupeno has joined #ruby
Pupeno has quit [Remote host closed the connection]
sk87 has joined #ruby
<godd2>
haha, well if you don't have a mechanical keyboard, you should definitely try one. Youll never want to go back to membrane
alex88 has joined #ruby
msgodf has joined #ruby
kireevco has quit [Quit: Leaving.]
<zenspider>
I prefer the keyboard attached to my laptop, which follows me everywhere.
<zenspider>
I couldn't handle lugging a keyboard with me
iwishiwerearobot has quit [Ping timeout: 240 seconds]
<godd2>
well yea, not a *normal* keyboard
d4nku has quit [Ping timeout: 250 seconds]
<zacts>
I need a more powerful bluetooth keyboard for my tablet
<zenspider>
it's a pretty good book. between this and what?
<zacts>
I'm following piperwork's earlier suggestion to read eloquent rubiest 2nd edition -> Metaprogramming Ruby. Should I read poodr after or before metaprogramming ruby?
<zenspider>
oh... before I think
<zacts>
ah ok
<zenspider>
metaprogramming should be close to last
coderhs has joined #ruby
<godd2>
I havent read poodr but I have read meta, and I would just say that it's not as scary as the title makes it out to be :P
<zacts>
ok
rdark has joined #ruby
thsig has joined #ruby
<godd2>
and the presentation is very straightforward and easy to understand.
<zenspider>
it isn't... but it sure makes everything look like a nail
User458764 has joined #ruby
jheg_ has joined #ruby
<godd2>
that's true, but I will say that it helped me understand Ruby's inheritance model at a deep level
<godd2>
i.e. the method lookup chain, shadow classes, etc.
roolo has joined #ruby
d4nku has joined #ruby
arup_r has joined #ruby
AFKGeek has joined #ruby
ctp has joined #ruby
pietr0 has quit [Quit: pietr0]
<gaussblurinc1>
hi
<gaussblurinc1>
does anybody use ruby-git?
beilabs_ has joined #ruby
beilabs_ has quit [Client Quit]
govg has quit [Remote host closed the connection]
thsig has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
deject3d_ has quit [Quit: Computer has gone to sleep.]
d4nku has quit [Ping timeout: 255 seconds]
ta has joined #ruby
yfeldblum has quit [Ping timeout: 245 seconds]
abuzze has joined #ruby
everettForth has joined #ruby
<everettForth>
using rake, how do I uninstall rake 10.1.0 and install rake 10.3.2?
lockweel has quit [Quit: ChatZilla 0.9.91 [Firefox 33.0/20141013200257]]
<godd2>
gaussblurinc1 I have not. I just use git. Did you have a question about ruby-git?
d4nku has joined #ruby
<everettForth>
gem update installs both versions. when I try to do gem uninstall rake -v 10.1.0, I get: gem "rake" cannot be uninstalled because it is a default gem
zorak8 has quit [Ping timeout: 244 seconds]
coderhs has quit [Ping timeout: 255 seconds]
abuzze_ has quit [Ping timeout: 245 seconds]
Pupeno has joined #ruby
alex88 has quit [Remote host closed the connection]
<sevenseacat>
then you dont uninstall it
ta has quit [Ping timeout: 264 seconds]
Mia has joined #ruby
Mia has joined #ruby
<sevenseacat>
what problem are you trying to solve?
nonks has quit [Ping timeout: 250 seconds]
<godd2>
everettForth when requiring gems in code, it will grab the latest version unless otherwise specified
<everettForth>
i don't want to have to type "bundle exec rails" instead of "rails"
<Pupeno>
Does anybody know if it would be possible to trigger RubyMine's debugger whenever an assertion fails?
<sevenseacat>
use binstubs.
krz has quit [Ping timeout: 272 seconds]
oo_ has quit [Remote host closed the connection]
ta has joined #ruby
goshdarnyou has quit [Quit: Connection closed for inactivity]
oo_ has joined #ruby
cajone has quit [Remote host closed the connection]
dangerousdave has joined #ruby
krz has joined #ruby
cajone has joined #ruby
prasselpikachu has quit [Ping timeout: 250 seconds]
Kilobyte|StupidC has quit [Ping timeout: 245 seconds]
siwica has quit [Remote host closed the connection]
Abhijit has joined #ruby
siwica has joined #ruby
yfeldblum has quit [Ping timeout: 265 seconds]
rpag_ has quit [Ping timeout: 245 seconds]
ndrei has quit [Ping timeout: 250 seconds]
ta_ has joined #ruby
siwica has quit [Ping timeout: 265 seconds]
krz has quit [Quit: WeeChat 1.0.1]
workmad3 is now known as wm3|away
ta has quit [Ping timeout: 258 seconds]
thsig has quit [Remote host closed the connection]
kamilc__ has quit [Quit: Leaving...]
Pupeno has quit [Read error: Connection reset by peer]
Pupeno has joined #ruby
charliesome has quit [Quit: zzz]
corehook has quit [Remote host closed the connection]
corehook has joined #ruby
corehook has quit [Remote host closed the connection]
godd2 has joined #ruby
jheg_ has quit [Quit: jheg_]
shiru has joined #ruby
MrDoctor has joined #ruby
MrDoctor has quit [Changing host]
MrDoctor has joined #ruby
yfeldblum has joined #ruby
elaptics is now known as elaptics`away
Morkel has quit [Quit: Morkel]
max96at|off is now known as max96at
wald0 has joined #ruby
elaptics`away is now known as elaptics
crazydiamond has joined #ruby
hiyosi has joined #ruby
rpag_ has joined #ruby
dangerousdave has joined #ruby
shiru has quit [Remote host closed the connection]
corehook has joined #ruby
jleishman has joined #ruby
spastorino has joined #ruby
sprihodko has joined #ruby
joast has quit [Ping timeout: 265 seconds]
alex88 has quit [Remote host closed the connection]
wsmoak has joined #ruby
hiyosi has quit [Ping timeout: 244 seconds]
parduse has quit [Ping timeout: 255 seconds]
klmlfl has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
Dreamer3 has quit [Quit: Leaving...]
ndrei has joined #ruby
usrj has joined #ruby
msgodf has quit [Ping timeout: 250 seconds]
corehook has quit [Remote host closed the connection]
MrDoctor has quit [Ping timeout: 264 seconds]
<zacts>
wow, I'm a total OOP newbie. so in ruby, you can define a method for an object after the object is created.
<zacts>
so the concept of a class in ruby isn't nearly as important as the concept of an object
<shevy>
zacts well, that method will be unique of that object in question
i_s has joined #ruby
<godd2>
unless he monkey patches the class
<shevy>
ruby is like 80% OOP and 20% prototypic
<shevy>
yeah but he wrote "define a method for an object", he did not write for all objects
<shevy>
we gotta train up the newcomers godd2
Andriamanitra has joined #ruby
<shevy>
to show them where the hammer is hanging
shazaum has joined #ruby
<zacts>
ok, well let me really finish reading this ch, let it digest in my mind, and then I'll return for questions. I don't want to get ahead of myself, I'm just excited with ruby so far I guess.
<godd2>
faaaiir enough
Andriamanitra has quit [Client Quit]
<zacts>
my ideas about OOP were primitive / almost stereotypical I think, with ruby you really get more power than I thought you could with objects, I guess.
joonty has quit [Quit: joonty]
<zacts>
I'm assuming that some, or a lot, of this is inherited from smalltalk..
nonks has joined #ruby
<zacts>
(please pardon my newbieness) =)
<godd2>
zacts as far as I understand, the message passing is the biggest concept taken from small talk, along with the overall look (no semicolons, optional parens)
ctp has joined #ruby
usrj has quit [Remote host closed the connection]
usrj has joined #ruby
<shevy>
what are you reading zacts ?
mkaesz has joined #ruby
<shevy>
well zacts
<shevy>
there is not one OOP definition out there
i_s has quit [Ping timeout: 258 seconds]
<godd2>
I think he's reading POODR
<shevy>
my favourite one is how Alan Kay defined OOP
<shevy>
zacts some is derived from smalltalk but other parts are derived from perl - ruby was more of a melting pot, how matz saw something useful and tried to include it into ruby
<zacts>
just the beginning, and already I'm seeing how my view of objects is being turned upside down
<shevy>
small talk does not have optional parens or? lemme lookup
<agent_white>
Mine will be once I look more into metaprogramming.
nonks has quit [Ping timeout: 250 seconds]
takle has joined #ruby
<shevy>
hehe
<shevy>
improve your typing speed first
charliesome has joined #ruby
<zacts>
shevy: I had a crude understanding of objects from Perl, but I never got deep into Moose. I was told to learn ruby to learn about OOPish ideas.
<godd2>
OOPish; gotta use that one more often
<zacts>
Perl doesn't have resources like ruby does on this stuff, it seems.
<P-NuT>
Does anyone know where I can get performance metrics on rails / sinatra? I want to use ruby to write a webapp for raspberry pi, but due to its limited resources I'm not 100% sure that rails would be a good fit. Any siggestions?
Igneous_ has quit [Quit: —I-n-v-i-s-i-o-n— 3.1.3 (May '10)]
nateberkopec has joined #ruby
danjordan has quit [Quit: danjordan]
dkphenom has joined #ruby
vimer has quit [Quit: leaving]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_5kg has quit [Ping timeout: 244 seconds]
unshadow has joined #ruby
DaniG2k_ has joined #ruby
danjordan has joined #ruby
<atmosx>
P-NuT: I've deployed rails app on RPi
<atmosx>
P-NuT: less than 100 MB for the entire stack IIRC ~ 70...
i0n has joined #ruby
hiyosi has quit [Ping timeout: 255 seconds]
<unshadow>
I'm trying to look at a string and match only DES but not 3DES I thought match(/[^3]DES/i) will do it but apperently i'm wrong XD
<atmosx>
P-NuT: just don't use memory-driven DB's like Redis and you'll be fine.
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
aclearman037 has joined #ruby
DaniG2k has quit [Ping timeout: 265 seconds]
mwlang has joined #ruby
<jhass>
hi
<Mateon1>
unshadow: /(?<!3)DES/i
_1_crime has quit [Remote host closed the connection]
<P-NuT>
atmosx: any suggestions on what to use? I was using MYSQL
<jhass>
postgres performs better in my experience
<unshadow>
Nice , thanks Mateon1
i0n_ has joined #ruby
<atmosx>
P-NuT: sure MySQL is great ~ 40 MB of memory
<atmosx>
P-NuT: hm jhass is right, but I'm using MySQL and runs fine too.
jleishman has joined #ruby
<jhass>
you can pretty precisely control postgres memory usage, not sure about mariadb/mysql there
i0n has quit [Ping timeout: 245 seconds]
i0n_ is now known as i0n
<atmosx>
I'm off cya later.
atmosx has quit [Quit: Lost in trance]
fwaokda has quit [Remote host closed the connection]
<mwlang>
Got an odd one for y’all: I inherited a project that has a few Perl scripts along with Ruby on Rails project. The perl scripts load externally supplied data, but there’s no testing framework around them. Has anyone ever slapped Unit::Test or Rspec around scripts/logic written in another language? (which is what I’m thinking to do here since I know Ruby best and don’t know anything about any Perl test frameworks)
<mwlang>
its going to be more along the vein of characterization tests than anything since I don’t have original specs on the script, but I figured some basic verification tests is better than nothing at all as we do need to tweak some of these perl scripts slightly.
joonty has joined #ruby
unshadow has quit [Quit: leaving]
<linduxed>
mwlang: so i think you're only gonna be able to write acceptance tests
<shevy>
jhass yeah you were not the only one, ernestonavarro too
<shevy>
require 'csv' should suffice
<ernestonavarro>
require 'cvs'
<ernestonavarro>
CSV.foreach('resources/languages.cvs') do |row|
<ernestonavarro>
puts row
<ernestonavarro>
end
<shevy>
hehehehehe
<shevy>
:-)
<sevenseacat>
heh
<ernestonavarro>
dammm\
<ernestonavarro>
hahahahahaha
<shevy>
ernestonavarro you need to have good eyesight in ruby
<jhass>
s/in ruby//
User458764 has quit [Ping timeout: 265 seconds]
<ernestonavarro>
so stupid name
<ernestonavarro>
sorry gus
<mwlang>
cvs sells over the counter eyeglasses. :-)
<ernestonavarro>
guys*
<jhass>
comma separated values
charliesome has quit [Read error: Connection reset by peer]
<jhass>
memorize that, not the acronym
<ernestonavarro>
yes I know, very stupid from me
<ernestonavarro>
maybe is because i have cvs :)
<jhass>
my condolences
<mwlang>
fastercsv became de facto in Ruby 2.x, right?
<ernestonavarro>
hate*
<shevy>
yeah I mix it up with csv all the time
<shevy>
comma separated value no?
<jhass>
mwlang: fastercsv replaced csv in 2.0, yes
<shevy>
comma... value ... separated
oleo has joined #ruby
<shevy>
concurrent ... version ... system ...
<jhass>
ernestonavarro: did you try git-cvs yet? ;P
takle has joined #ruby
<ernestonavarro>
no, no necesary, I didn't use CVS in more than 8 yeas, I wrote wrong, have by hate
User458764 has joined #ruby
<ernestonavarro>
I should get some sleep today :)
<shevy>
lol
charliesome has joined #ruby
paulfm has joined #ruby
zorak8 has joined #ruby
nateberkopec has quit [Quit: Leaving...]
jheg__ has quit [Remote host closed the connection]
ixti has joined #ruby
jheg__ has joined #ruby
coderhs has joined #ruby
<jheg__>
o/
TPBallbag has joined #ruby
jottr has joined #ruby
jusmyth has joined #ruby
n008f4g_ has joined #ruby
<jheg__>
I was in a chat room last night telling some folk about my immenint 3 month sabatical to learn ruby in as much depth as I can in 3 months when someone questioned my choice of language to learn ( basically stating that there are better languages to learn C++, JAVA, PHP, Python )
<txdv>
there is always a better language
V__ has quit [Quit: Ex-Chat]
<jheg__>
I have reasons why I chose ruby due to its rel easy learnign curve compared to other languages plus the online resources and the community
<txdv>
Smalltalk, erlang, lisp, ocaml
<txdv>
everyone one of those language is better than the other
<jheg__>
they then linked me to some wiki page showing what the top sites are developed in and that its a better career choice to go with those listed above but you have to start somewhere right?
dkb20k has quit [Read error: Connection reset by peer]
<jhass>
there's basically a site of that kind for every language showing it on the top
<jheg__>
thanks txdv
<jhass>
they're highly biased
<jhass>
for example #systemd had a nice troll yesterday with a bunch of these sites for C#, claiming that it's popular and systemd should be rewritten in it
<jheg__>
yeah tis what I thought and in any case as long as I can actually learn the language and it has the capabilities to do what I need it to then its no biggy right?
<jhass>
master the language you like, in the process you'll learn programming and can get good enough to quite good in any language in a short time
TPBallbag has quit [Ping timeout: 264 seconds]
<jhass>
languages are tools, you need to choose the right one for the problem at hand
<jhass>
while you can use a screwdriver or a rock to hammer in a nail, a hammer works better
<jheg__>
thats exactly what I thought and it seems that ruby does a good job of removing bloat from the code so you can very quickly learn the fundamentals of programming without getting caught up with syntax intracies
<jhass>
yes, I agree. But then I'm in #ruby so that's biased ;)
<jheg__>
*intricacies
benzrf|offline is now known as benzrf
<jheg__>
yeah good place to discuss this if I want to feel good about my decision :)
corehook has quit [Remote host closed the connection]
elemenopy has quit []
benzrf is now known as benzrf|offline
<txdv>
jheg__: i was just kidding, I wanted to say that there will be always someone who says "Dude, my favourite language is the best one!"
ernestonavarro has left #ruby [#ruby]
takle has quit []
Timgauthier is now known as timgauthier_away
<jheg__>
no I totally agree it’s the way of the world
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<txdv>
for a dynamic scripting language ruby is nice to learn
takle has joined #ruby
<txdv>
especially since ruby monkey patching mechanisms are superior compared to other dynamic scripting language
<txdv>
languages*
<apeiros>
jheg__: I hope you asked them why they were using $LANG instead of malbolge, since that's undeniable TEH BESTEST lang
<jhass>
well, I only do machinecode for my serious stuff!
tesuji has quit [Ping timeout: 240 seconds]
dangerousdave has joined #ruby
dangerousdave has quit [Client Quit]
<apeiros>
jhass: you crazy guy. everybody knows malbolge is 10x better than machine code!!!1!
<jhass>
if you want to scale in the cloud, you need direct access to the bare metal
<apeiros>
malbolge gives you access to the stuff beneath the metal!1!1elf
<jhass>
apeiros: I just need to rely on industry proven standards there, sorry
<apeiros>
jhass: malbolge has you covered with ISO, DIN and YourMom standards!
_5kg has joined #ruby
<jhass>
no, the others ones. You know. NDA and stuff
Versality has quit [Quit: Be back later ...]
i_s has joined #ruby
renderful has joined #ruby
Versality has joined #ruby
livingstn has joined #ruby
kamilc__ has quit [Quit: Leaving...]
<wm3|away>
apeiros: I assume malbolge covers those because no one can understand the code well enough to say it definitiely doesn't fulfil whatever standard you choose to say it implements?
wm3|away is now known as workmad3
shredding has joined #ruby
emmesswhy has joined #ruby
jeremy04 has joined #ruby
<apeiros>
malbolge comes with all TLAs that exist! DNA, NSA, CIA, FBI, PSA, ETC
agjacome has joined #ruby
<workmad3>
apeiros: UTC
<workmad3>
apeiros: how about FLAs?
i_s has quit [Ping timeout: 240 seconds]
<jhass>
but then, after hungrary we need to redevelop, I'll propose it I guess, see what the others say
renderful has quit [Ping timeout: 250 seconds]
Abhijit has quit [Quit: Leaving]
jerius has joined #ruby
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
Abhijit has joined #ruby
charliesome has quit [Ping timeout: 265 seconds]
Abhijit has quit [Read error: Connection reset by peer]
allcentury has joined #ruby
ctp has joined #ruby
<jhass>
the inbuilt source code recovery protection should come in handy
arup_r has quit [Remote host closed the connection]
<toretore>
gotta get down on friday
<pontiki>
malbolge?
<workmad3>
toretore: looking forward to the weekend, weekend
<pontiki>
should i look that up?
hydra1 has joined #ruby
<workmad3>
pontiki: that depends... are you fond of your sanity?
xenomorph is now known as {xenomorph}
<pontiki>
i used to be, but it's been gone so long we're like perfect strangers
* apeiros
arrests workmad3 for annoying the public
<toretore>
workmad3: which seat shoud i take?
camilasan has quit [Ping timeout: 245 seconds]
yfeldblum has quit [Ping timeout: 256 seconds]
<workmad3>
toretore: the seat I just tied to the back of the car...
<pontiki>
ah, 8th circle. i see
tier has joined #ruby
<workmad3>
apeiros: hater :P
zacts has quit [Ping timeout: 245 seconds]
<pontiki>
this is telling: "Weaknesses in the design have been found that make it possible (though still very difficult) to write useful Malbolge programs."
{xenomorph} is now known as xenomorph
<agent_white>
Hour 21. My eyeballs melt from the LCD lavawaves... but the mirage of ruby code entices me with its promises of beauty.
<pontiki>
*weaknesses* yielding *useful* programs
hiyosi has joined #ruby
<txdv>
what a shitty programming language
<txdv>
being useful and such
allcentury has quit [Ping timeout: 272 seconds]
<workmad3>
pontiki: I believe the design aim was to create a programming language with syntax that was so complicated it would be effectively impossible for human-level intelligence to write code in it
<agent_white>
workmad3: Oh you're talking about haskell!
<txdv>
its like a wife who isn't a complete resource and nerve drain
* agent_white
butts into conversations
<workmad3>
agent_white: nah, haskell doesn't suffer from that weakness ;) </haskell_troll>
<pontiki>
a collection of malbolge programs, in portuguese; couldn't possibly make it more difficult to understand
<agent_white>
hehehe ;)
zacts has joined #ruby
zacts has quit [Changing host]
zacts has joined #ruby
sailias has joined #ruby
<txdv>
workmad3: don't understimate humans, the level of procrastrination they are capable to do is fascinating
joonty has quit [Quit: joonty]
<pontiki>
we're all here, aren't we?
<apeiros>
workmad3: not hater. pubic.
<workmad3>
^^
<apeiros>
gah
<txdv>
just challenge the right human and he will write a melborge compiler in melborge
<apeiros>
+l
<workmad3>
apeiros: lol
<apeiros>
horrible typo
<agent_white>
Terry Davis
<workmad3>
apeiros: freudian slip, much? :)
<apeiros>
friday slip
* IceDragon
walks and wonders what's going on in #ruby today...
camilasan has joined #ruby
allcentury has joined #ruby
<workmad3>
IceDragon: welcome to #malbolge-friday
<IceDragon>
Wat
<IceDragon>
Oh yeah, its friday
<IceDragon>
carry on
<apeiros>
I think we're carried off, tho
arup_r has joined #ruby
<pontiki>
carted off, i believe the expression is
ctp has quit [Quit: I've got an 8 hour ticket to dream land. ZZZzzz…]
<agent_white>
I hope someplace nice.
<pontiki>
it's a farm
Suchit has quit [Quit: (null)]
<pontiki>
a rather funny farm
hiyosi has quit [Ping timeout: 258 seconds]
charliesome has joined #ruby
ctp has joined #ruby
tlarevo has joined #ruby
joonty has joined #ruby
DaniG2k_ has quit [Ping timeout: 255 seconds]
msgodf has joined #ruby
dkb20k has joined #ruby
doodlehaus has joined #ruby
benzrf|offline is now known as benzrf
jottr has quit [Ping timeout: 244 seconds]
arup_r has quit [Remote host closed the connection]
beef-wellington has joined #ruby
sandelius has joined #ruby
gogiel has joined #ruby
<shevy>
where are the pigs
<pontiki>
you're thinking of animal farm
<jhass>
shevy: we are the pigs
<shevy>
pontiki is the lead dolphin
takle has quit [Remote host closed the connection]
<shevy>
I volunteer for the clown fish
<workmad3>
shevy: stuck in finding nemo again?
My_Hearing is now known as Mon_Ouie
<shevy>
hah
<jhass>
again? doubt he ever left
dkb20k has quit [Read error: Connection reset by peer]
<workmad3>
scrogson: on integers, | is a binary or... on arrays, | is overloaded as a set union operation
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
<workmad3>
scrogson: so that's essentially saying 'add this filter to the array of filters as long as it doesn't already exist in there'
kireevco has joined #ruby
doev has quit [Quit: Verlassend]
<scrogson>
ah
<workmad3>
scrogson: it would probably have made more sense if they'd just used a Set there though :)
Synthbread has quit [Ping timeout: 272 seconds]
thoolihan has left #ruby ["leaving"]
AriaMoKr has joined #ruby
nvdpl has quit [Quit: ZZZzzz…]
nvdpl has joined #ruby
chipotle has joined #ruby
yfeldblum has joined #ruby
nvdpl has quit [Max SendQ exceeded]
nvdpl has joined #ruby
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Changing host]
troulouliou_dev has joined #ruby
dkphenom has joined #ruby
i0n has joined #ruby
econerd4ever has quit [Remote host closed the connection]
diegoviola has joined #ruby
econerd4ever has joined #ruby
jlebrech has joined #ruby
<jlebrech>
does httparty have an option to have default params to send everytime?
nvdpl has quit [Client Quit]
jdenton has quit [Quit: leaving]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 264 seconds]
samflores has joined #ruby
zorak8 has quit [Ping timeout: 256 seconds]
jdenton has joined #ruby
elcheckito has quit [Ping timeout: 245 seconds]
jdenton has left #ruby [#ruby]
jdenton has joined #ruby
Xeago_ has quit [Remote host closed the connection]
FreeBee has quit [Quit: Leaving]
econerd4ever has quit [Ping timeout: 244 seconds]
Fire-Dragon-DoL has quit [Ping timeout: 265 seconds]
gagan has joined #ruby
DaniG2k has quit [Ping timeout: 264 seconds]
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Fire-Dragon-DoL has joined #ruby
jusmyth1 has joined #ruby
elaptics is now known as elaptics`away
jusmyth has quit [Read error: Connection reset by peer]
elaptics`away is now known as elaptics
gagan has quit [Max SendQ exceeded]
divi has joined #ruby
gagan has joined #ruby
<shevy>
hmm
<shevy>
I have lots of files that are structured in like this way:
<shevy>
require 'foo/bar.rb'
<shevy>
now if I rename or move bar.rb away, I have to modify all those files
troulouliou_dev has quit [Quit: Leaving]
aganov has quit [Quit: Leaving]
takle has quit [Remote host closed the connection]
gagan has quit [Max SendQ exceeded]
elcheckito has joined #ruby
fandi has joined #ruby
felixjet has quit [Read error: Connection reset by peer]
gagan has joined #ruby
<shevy>
I guess I could create dummy .rb files that will have the proper path to those .rb files
<shevy>
but that is so inelegant
spyderman4g63 has quit [Read error: No route to host]
gagan has quit [Max SendQ exceeded]
spyderman4g63 has joined #ruby
<centrx>
shevy, Use ActiveSupport::Autoload
<centrx>
I think you will like it a lot
gagan has joined #ruby
hamakn_ has quit [Remote host closed the connection]
takle has joined #ruby
gsd has joined #ruby
hamakn has joined #ruby
havenwood has joined #ruby
terlar has quit [Ping timeout: 256 seconds]
jdenton has quit [Quit: leaving]
elcheckito has quit [Ping timeout: 258 seconds]
vimer has quit [Ping timeout: 265 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
<hesco1>
`rake test` seems to be complaining about 'Could not find rspec (>= 2.0.0)', but the only rspec I find is 2.14.7. What am I to make of that? https://gist.github.com/hesco/2d7dd757804cc73c1290
vimer has joined #ruby
hamakn has quit [Ping timeout: 245 seconds]
troyready has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hydra1 has joined #ruby
DaniG2k has joined #ruby
mleung has joined #ruby
n008f4g_ has quit [Ping timeout: 264 seconds]
apeiros_ has joined #ruby
shazaum has quit [Ping timeout: 255 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
timonv_ has quit [Remote host closed the connection]
<shevy>
ACK
<shevy>
def method_missing(i)
<shevy>
return false
<shevy>
is this enough to simulate LPC?
DaniG2k has quit [Client Quit]
<shevy>
centrx that actually looks almost like an advanced way to require sub-files and sub-modules
kobain has joined #ruby
joonty has quit [Quit: joonty]
siwica1 has joined #ruby
CustosL1men has joined #ruby
Versality has quit [Quit: Be back later ...]
<shevy>
I am in the middle of rewriting an ancient project... picking through the individual .rb files kinda stinks, adapting new paths also sucks... I guess I have about 200 more .rb files to go through ...
jottr_ has joined #ruby
siwica has quit [Ping timeout: 240 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
Versality has joined #ruby
kobain has quit [Max SendQ exceeded]
renderful has joined #ruby
kobain has joined #ruby
apeiros_ has quit [Ping timeout: 264 seconds]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
mikepack has quit []
siwica1 has quit [Remote host closed the connection]
kobain has joined #ruby
siwica has joined #ruby
Ulrike_Rayne has joined #ruby
silkfox has joined #ruby
mikepack has joined #ruby
klmlfl has quit [Remote host closed the connection]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
usrj has joined #ruby
hamakn has joined #ruby
Versality has quit [Ping timeout: 255 seconds]
beef-wellington has quit [Ping timeout: 264 seconds]
nonks has quit [Ping timeout: 250 seconds]
kobain has quit [Max SendQ exceeded]
tobago has quit [Remote host closed the connection]
gregf has quit [Quit: WeeChat 1.0.1]
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
cirn0 has joined #ruby
kobain has joined #ruby
olivier_bK has quit [Ping timeout: 244 seconds]
kobain has quit [Max SendQ exceeded]
wald0 has joined #ruby
kobain has joined #ruby
mathias2 has joined #ruby
bricker`work has joined #ruby
usrj has quit [Quit: Leaving]
TPBallbag has quit [Remote host closed the connection]
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
josephndenton has joined #ruby
silkfox has quit [Ping timeout: 264 seconds]
kobain has quit [Max SendQ exceeded]
sheepman has quit [Read error: Connection reset by peer]
kobain has joined #ruby
jottr_ is now known as jottr
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
it0a has joined #ruby
sklik has joined #ruby
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
kobain has quit [Client Quit]
josephndenton has quit [Client Quit]
jimbach has quit [Remote host closed the connection]
silkfox has joined #ruby
sambao21 has joined #ruby
_riz_ has joined #ruby
josephndenton has joined #ruby
allcentury has quit [Ping timeout: 240 seconds]
<_riz_>
googling syntax is hard - what does "->" mean, in the context of a Gemfile?
livathinos has quit [Remote host closed the connection]
<_riz_>
ie, like this:
thagomizer has joined #ruby
allcentury has joined #ruby
<_riz_>
gem 'my_gem', '->0.1.23'
crazydiamond has quit [Ping timeout: 258 seconds]
sigurding has quit [Quit: sigurding]
<centrx>
_riz_, you mean ~> ?
<_riz_>
no
<_riz_>
I don't
<centrx>
_riz_, then in the context of a Gemfile, it's a typo
elcheckito has joined #ruby
usrj has joined #ruby
<_riz_>
sonofabitch, the stupid font the browser chose made ~ and - look EXACTLY the same
<_riz_>
sorry for the noise, and thanks
adriancb has quit [Remote host closed the connection]
tier has quit [Remote host closed the connection]
stunder has joined #ruby
jleishman has quit [Quit: Be back later ...]
tier has joined #ruby
IrishGringo has quit [Ping timeout: 265 seconds]
_riz_ has left #ruby ["Leaving"]
allcentury has quit [Ping timeout: 265 seconds]
jlebrech has quit []
usrj has left #ruby ["Leaving"]
sambao21 has quit [Quit: Computer has gone to sleep.]
Hanmac has quit [Ping timeout: 244 seconds]
allcentury has joined #ruby
shredding has quit [Quit: shredding]
omosoj has joined #ruby
coderhs has quit [Read error: Connection reset by peer]
tvw has joined #ruby
livathinos has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
Timgauthier has joined #ruby
Timgauthier is now known as timgauthier_away
TPBallbag has joined #ruby
<wald0>
Vim users: how do you "browse" the code of for example a class when you need to read it?
atmosx has joined #ruby
xymbol has joined #ruby
<wald0>
a class that is from a generic lib/gem for example, not speciflcally your code
larissa has quit [Quit: Leaving]
yfeldblum has joined #ruby
TPBallbag has quit [Remote host closed the connection]
<centrx>
wald0, What do you mean by browse?
<centrx>
wald0, Searching for something, use /
coderhs has joined #ruby
<atmosx>
hello
coderhs has quit [Read error: Connection reset by peer]
chthon has quit [Ping timeout: 256 seconds]
<shevy>
I thought you are sleeping atmosx!
<shevy>
go back to bed!
thsig has quit [Remote host closed the connection]
<wald0>
centrx: let's say that im editing a code that contains "self.class_eval", and i say "wtf is class_eval?" so i want to "enter" on it to check what/how it is made
<atmosx>
shit I can't see a Greek comedy show, because of the IP
<atmosx>
blah assholes
<atmosx>
brb
atmosx has quit [Client Quit]
yfeldblum has quit [Ping timeout: 256 seconds]
larissa has joined #ruby
<shevy>
lol
mkaesz has quit [Remote host closed the connection]
jheg__ has quit [Quit: jheg__]
<tzero>
bundle update and bundle install both report using version 0.16.1 of that gem, grabbed from github, but list shows 0.16
<tzero>
0.16 is installed to a later location in GEM_PATH, so wtf?
atmosx has joined #ruby
SCHAAP137 has joined #ruby
<centrx>
wald0, oh yeah there are tools for that, but I generally just use grep and the "Internet"
<wald0>
for C with ctags i use ctrl + ] to go to the header declarations file, and ctrl + t to come back to my code
<jhass>
tzero: gem list doesn't know about git sources
<jhass>
that's entirely bundler magic
<wald0>
centrx: yeah but im not very familiarized with ruby right now and so i need a fast way to "view" everything :)
<wald0>
well, in normal using too but specially now :)
nonks has joined #ruby
roolo has quit [Quit: AAAAaaaaAAAAAAA]
<wald0>
i found very un-productive to go out of your actual window/line/cursor/keyboard/anything to do anything
* wald0
is an optimizations sick
<hesco1>
I'm thinking my failed depency issue relates to my rspec being in my path at /usr/bin/rspec, but that rake is looking at: /var/lib/gems/1.9.1/gems, where the gems it does not (yet?) complain are missing seem to be located.
timgauthier_away has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wald0>
so just a key == see the contents
<shevy>
hey wald0
<shevy>
I think I read your nick before
<tzero>
jhass: hmm, I thought bundle:gem::yum:rpm
<hesco1>
how would I ask gem to install somethere there?
<centrx>
wald0, Use multiple windows with Conque to get a bash terminal within vim :)
<jhass>
tzero: ?!
<wald0>
shevy: yeah, i was there from time to time :) still learning and practicing a bit of ruby :)
<centrx>
wald0, but that doesn't help with Ruby/Rails docs
deric_skibotn has joined #ruby
<shevy>
hesco1 sounds like mixed up debian base system
<shevy>
wald0 yeah! I just can not remember what you said back then hehe
nkumari has joined #ruby
<shevy>
you were not the KDE konsole guy or?
<shevy>
or were you the french debian user ... hmm
<tzero>
jhass: i.e. bundle just "wraps" gem, but apparently it does its own BS?
gsd has quit [Read error: Connection reset by peer]
geggam has joined #ruby
<wald0>
centrx: hum... there's not something like "ctrl + ]" that simply jumps to the .rb code that contains the definition of an external-to-my-code class ? just like i do it with ctags in c
ramfjord has joined #ruby
livathinos has quit []
<wald0>
shevy: i was talking mostly about making GUI applications with ruby and enlightenment toolkit :)
adriancb has joined #ruby
Hanmac has joined #ruby
benzrf is now known as benzrf|offline
gsd has joined #ruby
<shevy>
aaaaah YES
<shevy>
now I remember!
<wald0>
:)
<shevy>
you got things to run too
<shevy>
I did not
xymbol has quit [Quit: Be back later ...]
<centrx>
wald0, There must be, I just don't know about it
<jhass>
tzero: yes and no. Bundler does use Rubygems as much as possible. But making git clones available in the $LOAD_PATH is nothing that's available in Rubygems (yet), so Bundler does it on its own
ndrei has joined #ruby
<wald0>
actually im in fact trying to use that to make a small application that shows to the user a list of tasks to do each day
<shevy>
\o/
<shevy>
as long as you keep on coming by to say hi on #ruby
Spami has joined #ruby
allcentury has quit [Ping timeout: 245 seconds]
<wald0>
centrx: sometimes i wonder how you* guys code... :), not talking about you of course, i just see that there's ton of devs that uses very unneficient ways to do things
<shevy>
even though I think you are literally the only person here to use enlightenment
<wald0>
actually i want a brain-interface that does just what i think
<wald0>
but my mother wanted to compile me too soon
<shevy>
lol
TPBallbag has joined #ruby
<shevy>
then the bootstrap process
<tzero>
what I'd give for a reliable virtualenv-like environment in rubyland :(
<wald0>
shevy: you were interested on making GUI applications too, from what i remember?
<shevy>
tzero YOU CAN WRITE IT COME ON MAN
<shevy>
wald0 well yes and no...
<jhass>
tzero: bundler pretty much does that
<tzero>
no, what the ruby ecosystem needs is definitely not more crap
<jhass>
--path vendor/
<shevy>
I think GUIs are awesome in general... but it is too much work to make them right now, e. g. in ruby-gnome
<jhass>
won't touch any system paths
nonks has quit [Ping timeout: 250 seconds]
<shevy>
and then there is the www ... which ass-kicked the traditional GUIs
tier has quit [Remote host closed the connection]
<volty>
go with qtruby
<shevy>
today is the day of the short nicks here
<shevy>
jhass, volty, shevy, wald0, tzero ... centrx is also ok even though he is +1
<agent_white>
NO MOH
<shevy>
omg what a huge nick
<agent_white>
Thats what nickserv said
<atmosx>
go with god
kamilc__ has quit [Quit: Leaving...]
<shevy>
wald0 I think enlightenment is visually nice and interesting because it does things so differently; but when I look at those things I often wonder whether I can be productive
<shevy>
like unity
takle has quit [Remote host closed the connection]
tesaf has quit [Quit: Lost terminal]
econerd4ever has joined #ruby
allcentury has joined #ruby
<shevy>
how people can use this eludes me
takle has joined #ruby
xymbol has joined #ruby
<volty>
why don't you tell us something more, about unity -- what makes it productive, e.g.
nkumari has quit [Remote host closed the connection]
<wald0>
shevy: alright, im trying to use that E toolkit and since it is very native theres a ton of work to do... by other side we just created a mywin.new("foo", "bar", "wombat") way to create a new window showing a list of 3 elements with these names
<tzero>
not to troll, but after having been tossed into the chef/ruby pool headfirst over the last few months, it's been one yak shaving frustration after another. I must be missing something crucial, or doing something terribly wrong to not see the appeal of such a popular and powerful language
tier has joined #ruby
<volty>
(I use kde and know nothing about unity)
<wald0>
so, im pretty convinced that doing a bit of work should be extremely (ruby)-easy to do middle-powerful interfaces in one-lines
lmickh has quit [Remote host closed the connection]
<volty>
wald0: yes, you are right
<wald0>
shevy: i personally have some hate to www... yeah it solves tons of today problems but is a f**** bloated unneficient dependency for do everything
sailias has quit [Quit: Leaving.]
sailias1 has joined #ruby
sailias1 is now known as sailias
<volty>
you can go also with meta or haml style (though it could be hard to think it out well)
zorak8 has joined #ruby
bricker`work is now known as bricker
i_s has joined #ruby
<hesco1>
so shevy: any idea how I unmess it? Most things I did install from debian packages, but rspec I used the gem provider for.
bricker is now known as bricker`work
<wald0>
volty, shevy: unfortunately there's not much ppl in #ruby that wants to make GUI applications, they only do WWW bloatstuff (not the ruby part, but the entire WWW topic)
timonv_ has joined #ruby
<centrx>
SHOES!
<volty>
anyway I find that showing whatever things could be better done using just a TreeWidget with two (or more) columns
<wald0>
so c'mon guys and help there doing a f*ckin "i want a button, and i want an icon on it" singlelines GUI gem :) \o/
<godd2>
The fewer lines of code your GUI app is, the more assumptions you're making
<volty>
I feel that pythonists are more active with gui's. But I can't stand python
<wald0>
alright, python has more gui-friends
<volty>
godd2: of course, more defaults
<wald0>
ruby is better than python? well, thats a trolling topic but in any case ruby has no gui friends lol
takle has quit [Ping timeout: 272 seconds]
<godd2>
volty can't be "defaults" if there arent alternatives. cant be alternatives if there's too few lines of code
<tzero>
should I be using only `gem` XOR only `bundle`?
jimbach has joined #ruby
econerd4ever has quit [Read error: Connection reset by peer]
<volty>
i was praying the last night for somebody to test a piece of code (6 lines) but it seems nobody has qt here
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<wald0>
godd2: most of the times you dont want to have a 200-lines gui to just show a button, ppl normally want simple interfaces, and if they needs complex ones they should maybe do its own methods of specific-purposed-widgets
<wald0>
volty: you need to move to EFL then :)
econerd4ever has joined #ruby
<pontiki>
tzero: it can be confusing; i do all my development using vagrant VMs, and so use bundle during development
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki>
tzero: for my host system, i install gems directly
<jhass>
tzero: inside a project with a Gemfile you typically only use bundler, else you use gem
klmlfl has joined #ruby
<wald0>
volty: this is just a window (real gui desktop window) with a background and a button with a text, when you click on it it exits the app, small demo code
<wald0>
shevy: ^
<pontiki>
jhass: would you basically agree: bundle is for development mainly? of course with some applications you need it for deployment as well
<jhass>
no
nkumari has joined #ruby
jleishman has joined #ruby
<pontiki>
do you use bundle in day to day operation?
<jhass>
bundlers main intent is to ensure a consistent dependency environment across everything
<jhass>
that does include development as well as all production machines
jusmyth1 has quit [Quit: Leaving.]
mikecmpbll has joined #ruby
<volty>
wald0: i have qapp_main { qb = Qt::PushButton.new('Quit'); qb.connect('clicked()') { $qApp quit }; qb }
<pontiki>
right, so i build a command line tool as a gem, using bundle, but then when i install it into my system, i am using gem install
<jhass>
therefore it even does ship additional features that allow its usage in pretty much all deployment scenarios
rkalfane has joined #ruby
<jhass>
I'd say that's distribution though, not deployment
jimbach has quit [Ping timeout: 265 seconds]
<pontiki>
right, which is why i said it's used in deployment as well
<wald0>
volty: this sounds like in fact a very friendly code (what you pasted)
DTSCode has quit [Read error: Connection reset by peer]
<wald0>
volty: i heard that QT is powerful and simple to code (by other side much more slow/bloated)
<volty>
wald0: yes, qapp_main is a (very) small method of mine -- just to avoid rewriting Qt::Application.new(ARGV) ... $qApp.exec() -- for small apps
DTSCode has joined #ruby
i0n has quit [Quit: snooze]
wallerdev has joined #ruby
stunder has quit [Ping timeout: 240 seconds]
emmesswhy has joined #ruby
<volty>
what I need, and imo has to be done out-of-need, is layout out things programmatically (i hate predefined dialogs) in an easy way, let's say something like haml. In qt you can layout everything but i feel the code is bloated with all these Qt::...Layout.new etc etc
<wald0>
volty: looking at google qt ruby, the intro page shows that is very similar to the code example that i gave you, which makes me think that could be possible to do it even more simple (for not complex interfaces of course)
<jhass>
pontiki: so I guess it makes sense to differentiate between library and application development here, for the former it's just a development tool, for the later it's used always with the application
fabrice31 has joined #ruby
jottr has quit [Ping timeout: 272 seconds]
<volty>
qt is fast, but I'll give a look at urls you posted
<jhass>
with the tools focus being on applicaton development
workmad3 has quit [Ping timeout: 264 seconds]
<pontiki>
jhass: better way to put it,yeah
<wald0>
volty: which OS you are in?
lkba has quit [Ping timeout: 255 seconds]
<volty>
wald0: yes, starting with small methods, and going ahead till you (and if :) ) develop a new dsl for guis :)
<volty>
kubuntu 14.04
<wald0>
volty: so these EFL libs can be installed in windows, mac, linux, or even embedded devices, which is extremely good to make gui applications that "damnly works everywhere"
apeiros_ has joined #ruby
lkba has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<wald0>
volty: just installed today in my co-worker laptop (ubuntu) the EFL packages from bodhi repository, and after to install "ffi-efl" gem the demo files on that gem worked directly :)
<volty>
yes, but I need my already written qt code, should be nice if one day smb develops an odbc-like standard for guids
<volty>
let's say tcl/tk-like pushbutton.new for all libs
<suy>
volty: qml is a DSL for GUIs, and pretty nicely integrated with qt
<volty>
suy: you use it ?
Scripore has joined #ruby
<suy>
(well, can be used without GUI, but...)
j_mcnally has joined #ruby
<wald0>
yeah, a standard is what i need: add-button, add-checkbox, add-tooltip, bang!
<suy>
volty: trying it. Looks promising. Seems to work fine for a boring use case, not enterprise ready I guess. It's at 0.0.6 IIRC. :)
<wald0>
volty: in fact, these EFL are so much complete that i could really do a fullset of standard like this (well, im not so experienced in ruby but should try/need it)
St_Marx has joined #ruby
mikeg has quit [Ping timeout: 244 seconds]
Juanchito has quit [Quit: Connection closed for inactivity]
<volty>
suy: i was about to start, but something discouraged me, can't remember now but think it was the lack of all the standard qt signals
<wald0>
i may should start by brainstorming that kind of "standard behaviour"... like starting with buttons, what i expect when adding a button and what controls from it i need
wjimenez5271 has joined #ruby
rshetty has quit [Remote host closed the connection]
<volty>
and I need ruby behind, otherwise i could go back. but i'm going to give it a deeper look anyway.
<wald0>
volty: any idea of how/where i could write the concept before to start trying it?
<shevy>
volty you'll be going back to haskell?
<volty>
ahahah
<shevy>
:-)
stunder has joined #ruby
<volty>
never, they are not linked niether to qt
procat has joined #ruby
timonv_ has quit [Remote host closed the connection]
<volty>
wald0: i wouldn't advice that unless you are very proficiente with guis (in general), enlightment, and ruby
<wald0>
buttons: it should change text, add a callback of method to run when clicked, mmh...
rshetty has joined #ruby
<volty>
i beleive in bottom-up design in these cases -- do it standard way (enlightment-bound) then refactor
moritzs has joined #ruby
shazaum has joined #ruby
<wald0>
volty: im very familiarized with the enlightnement libs (so i know pretty well what they can do) but not coded them much, and my ruby is level is novice :P
bigkevmcd has quit [Quit: Outta here...]
<wald0>
volty: i wouldnt advice me too but i damn-really need them
<wald0>
another option is to write the gui apps in C / E-libs, but sigh... c...
Silvermann has quit [Quit: Leaving]
whoisjake has joined #ruby
<volty>
go & code, then stop & think, ... alternate
<shevy>
lol
<wald0>
i need now to do a very simple app, to show a list of daily tasks based on "every month do foo and bar, every week do wombat, and be able to print the list in PDF", ok... not hard to do in ruby im pretty convinced
<shevy>
code & piss, eat & sex
<wald0>
but how to do that on C ???
apeiros_ has quit [Remote host closed the connection]
techsethi has joined #ruby
<centrx>
tweet about it in C with printf
<volty>
as in any other language -- list of to-do things & methods for stroring & retrieving & filtering & showing
lolmaus has quit [Remote host closed the connection]
kireevco has quit [Read error: No route to host]
lolmaus has joined #ruby
pa3ce has joined #ruby
hmsimha_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
TheNet has joined #ruby
nonks has joined #ruby
chrishough has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
larissa has quit [Quit: Leaving]
<shevy>
you love the & character
sinequanon has joined #ruby
kireevco has joined #ruby
siwica has quit [Remote host closed the connection]
F__i__L has joined #ruby
wallerdev has joined #ruby
<F__i__L>
hey guyzz do you know any good resource about APIs security ??
siwica has joined #ruby
<F__i__L>
book or .. ?
wallerdev has quit [Remote host closed the connection]
iamjarvo has joined #ruby
<volty>
& and shevy :)
emmesswhy has quit [Quit: This computer has gone to sleep]
wallerdev has joined #ruby
xymbol has quit [Ping timeout: 258 seconds]
i_s has quit []
bMalum_ has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
nonks has quit [Ping timeout: 250 seconds]
kirun has joined #ruby
geggam has quit [Remote host closed the connection]
Ulrike_Rayne has quit [Remote host closed the connection]
reset has joined #ruby
bMalum has quit [Ping timeout: 264 seconds]
bMalum_ is now known as bMalum
TPBallbag has quit [Remote host closed the connection]
yfeldblum has joined #ruby
nobitanobi has joined #ruby
Lingos has joined #ruby
thsig has joined #ruby
<atmosx>
F__i__L: there's a blog post, that was featured on HN some time ago... wait I think I have it on pinboard
nkumari has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 240 seconds]
<tzero>
they misspelled Drive C: haha
<tzero>
Local Dive
Soda has quit [Remote host closed the connection]
EasyCo has quit [Quit: Connection closed for inactivity]
Norrin has joined #ruby
Ulrike_Rayne has joined #ruby
siwica has quit [Ping timeout: 258 seconds]
dkphenom has joined #ruby
haasn has quit [Quit: haasn]
ramfjord has quit [Ping timeout: 265 seconds]
ndrei has quit [Ping timeout: 240 seconds]
F__i__L has quit [Quit: Konversation terminated!]
bMalum has quit [Quit: bMalum]
haasn has joined #ruby
baweaver has joined #ruby
nkumari has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
baweaver has quit [Remote host closed the connection]
TheNet has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
<wald0>
volty: im brainstorming the idea of the gui toolkit... but is confusing when you think "what could be the easiest way to declare its code?", im searching for the biggest simplicity and clarity-of-code
<wald0>
volty: do you know any example or is there any doc "standard" about these things?
AlexRussia has quit [Quit: WeeChat 1.1-dev]
AlexRussia has joined #ruby
Xiti` has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
siwica has joined #ruby
Photism has joined #ruby
nkumari has quit [Remote host closed the connection]
<wald0>
volty: shevy: what do you think about this way to define a gui? im pretty sure that can be more "clear" than this... hum.... http://paste.debian.net/131820/
<wald0>
i dont even know if this is correct-ruby syntax... damn
TheNet has joined #ruby
baweaver has joined #ruby
tlarevo has quit [Remote host closed the connection]
tlarevo has joined #ruby
tvw has quit []
TPBallbag has quit [Remote host closed the connection]
patrick99e99 has quit [Quit: Lost terminal]
SCHAAP137_ has joined #ruby
<shevy>
wald0 you mean agnostic of the underlying GUI?
<shevy>
wald0 well in ruby there is often more than one way
benzrf is now known as benzrf|offline
<shevy>
For instance:
<shevy>
win.text.set "Do you want to continue?"
<shevy>
win.text = "Do you want to continue?"
<shevy>
because we have aliases you can have both ways
rshetty has quit [Remote host closed the connection]
<shevy>
you can also make use of <<
<shevy>
button_ok.tooltip.add "You should continue, really"
<shevy>
button_ok.tooltip << "You should continue, really"
whoisjake has quit []
nkumari has joined #ruby
<wald0>
yeah, agnostic, i want to brainstorm first a "standard gui usage" and then i want to try to write a small "lib" (gem?) to interface with the real gui gem/lib
<shevy>
yeah
<shevy>
I wanted to do this like 5 years ago as well
<shevy>
I still have not caught up to my old knowledge of ruby-gnome :(
Versality has joined #ruby
<shevy>
oh btw wald0
<shevy>
also consider an additional syntax:
<zacts>
hi rubyists
<godd2>
wald0 if you want to write code which wraps Win32 API calls, look into FFI
<shevy>
win = Window.new
atmosx has quit [Ping timeout: 240 seconds]
<shevy>
win.text.set "Do you want to continue?"
<shevy>
to become
<shevy>
win = Window.new {
<shevy>
text 'Do you want to continue'
<shevy>
}
<shevy>
this style is how _why originally wrote shoes
<wald0>
godd2: im using ffi-efl :)
SCHAAP137 has quit [Ping timeout: 245 seconds]
<suy>
You want to abstract a GUI API that is already an abstraction of other GUI APIs?
<wald0>
godd2: well, wanting/trying to use it
<shevy>
where is an abstraction?
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<godd2>
also, wouldn't hurt to pass the new window to the block. Window.new { |win| win.title = "new window"; #other config... }
<suy>
GTK or Qt abstract win32/xcb/whatever for example.
<wald0>
suy: yes, because those FFI syntax is so DAMN confusing about pointers and references and stuff...
<wald0>
i want to have the nightmare one time, but then reciclate objects that simply works
<wald0>
"add me a button, call me something when i click to it"
<wald0>
why computers dont speak human?
<godd2>
well it's not for lack of trying
<godd2>
natural language synthesis and interpretation is a "hard" problem in computing
<wald0>
suy: godd2: in short, i want to remove the max possible the complexity of use the gui (and still having the full control only-if-needed about the specific functions like changing a color, etc)
<godd2>
wald0 if you want to make video games, you can check out the gosu gem. It abstracts away all that window creation stuff
<wald0>
godd2: nah, just simple gui applications
<ruber>
I use rbenv with GEM_HOME and just upgraded 2.1.2 to 2.1.5. Now my gems seem to require 2.1.2 even though they're outside any version directory.
<wald0>
not complex "this is a full-featured photoshop" stuff, more like small gui apps
<ruber>
Eg. /Users/me/.gem/bin/nokogiri: /Users/me/.rbenv/versions/2.1.2/bin/ruby: bad interpreter: No such file or directory
<godd2>
wald0 what OS are you on?
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jottr has joined #ruby
geggam has joined #ruby
j_mcnally has joined #ruby
<suy>
ruber: the gems might be in GEM_HOME, the binaries are?
nvdpl has joined #ruby
whoisjake has joined #ruby
govg has joined #ruby
<havenwood>
ruber: There should be a bot that just responds `rehash` if rbenv is mentioned.
AriaMoKr has quit [Quit: Connection closed for inactivity]
rpag_ has quit [Ping timeout: 245 seconds]
techsethi has quit [Quit: techsethi]
<wald0>
godd2: linux/debian
CustosL1men has quit [Ping timeout: 244 seconds]
claymore has joined #ruby
shinydog has joined #ruby
nvdpl has quit [Quit: Quit...]
St_Marx has quit [Quit: Ex-Chat]
rpag_ has joined #ruby
renderful has quit [Remote host closed the connection]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tlarevo has quit [Ping timeout: 240 seconds]
thsig has quit [Remote host closed the connection]
GeorgesLeYeti has quit [Quit: Leaving]
wolflee________ has joined #ruby
moritzs has quit [Ping timeout: 250 seconds]
wolflee_______ has quit [Ping timeout: 272 seconds]
jaequery has joined #ruby
yetanotherdave has joined #ruby
<jaequery>
hi guys, im new to ruby
jaequery has quit [Max SendQ exceeded]
<rockdon>
welcome
iamjarvo has joined #ruby
iamjarvo has quit [Remote host closed the connection]
jaequery has joined #ruby
dc_ has quit [Remote host closed the connection]
shortCircuit__ has joined #ruby
<jaequery>
is everyone using rackup?
<jaequery>
is that required?
jaequery has quit [Max SendQ exceeded]
<jhass>
no
<pipework>
jaequery: required for what
<jhass>
bah
<shevy>
I dont use rackup
<jhass>
he needs to fix his client first
<shevy>
oh he is gone
uptownhr has joined #ruby
<pipework>
cool kids rackup their crappy rails apps
almostworking has joined #ruby
cirn0 has quit [Remote host closed the connection]
<pontiki>
crapup
jheg has joined #ruby
<wald0>
damn, i want to know 110% of ruby syntax/possibilities so i can know perfectly how i can structure a good gui lib :/
<pipework>
crackup
<pipework>
wald0: Read sourcecode then?
<wald0>
=_=
nkumari has quit [Remote host closed the connection]
<uptownhr>
in ruby, how does gems like Mongoid handle multiple instances of it being loaded?
jheg has quit [Client Quit]
<pipework>
I mean, knowing how to perfectly structure code is pretty hard to do and the only thing I can think of that you can do in short order is know absolutely every detail about the implementation of the language you're using as well as the language specification itself.
<pipework>
uptownhr: It doesn't.
cleopatra has joined #ruby
<jhass>
uptownhr: what do you mean by "multiple instances"?
<pontiki>
who has time for that?
sambao21 has joined #ruby
<uptownhr>
jhass: like if i'm creating Site.rb, Page.rb
<pipework>
Even if you do manage to require two versions, chances are that you'll have a bad time.
<uptownhr>
both of the files require in Mongoid
apeiros_ has joined #ruby
ruber has quit [Quit: [BX] Automatically bored away]
bayed has quit [Quit: Connection closed for inactivity]
<rpag_>
require only requires a file once
<pipework>
uptownhr: Are you talking about `require` with two versions of Mongoid or requiring mongoid in two files?
<uptownhr>
requireing mongoid in two files
<wald0>
i have a class that creates a window, which has a @button declaration that creates a button, if i do "win = MyWin.new", how i access to the @button element from "win"?
jheg has joined #ruby
<pipework>
uptownhr: That works fine. Require keeps a list of all required files.
<jhass>
uptownhr: try prepending p to the require calls
hiyosi has quit [Ping timeout: 240 seconds]
<pipework>
uptownhr: require the same thing to your heart's content.
<jhass>
you'll notice that it returns first true then false
<pipework>
In fact, require your dependencies everywhere they're needed.
<uptownhr>
jhass: how about the Mongoid.load!("./mongoid.yml")
<pipework>
Be a good chum.
Brando753 has quit [Ping timeout: 250 seconds]
<godd2>
wald0 you need to make an attr_reader inside the Window class.
<uptownhr>
should that be somewhere else?
<wald0>
pipework: yeah but actually im not even familiarized with ruby :/ that's what i meant, i learned it but not practiced
<pipework>
uptownhr: That's venturing into implementation.
<uptownhr>
pipework: yea. what is the best way to implement?
<pontiki>
pipework: i filed two defects on that this week and sent PRs to fix them
towski_ has joined #ruby
<pontiki>
two different gems
<jhass>
uptownhr: I don't know mongoid, I'd imagine it just reopens the connection and discards the old one
<godd2>
wald0 or at least a getter method. def button; @button; end
cndiv has quit [Ping timeout: 240 seconds]
thagomizer has quit [Quit: Leaving.]
<towski_>
I need a fast way to get a unique hash for an array of ints
<towski_>
[1,2,3] vs [1,2,3,4]
kireevco has quit [Quit: Leaving.]
Pip has left #ruby ["Leaving"]
<pipework>
uptownhr: If you're calling a method in Mongoid already, you aren't implementing it. Look at how it works.
<jhass>
towski_: what hash properties do you need?
<godd2>
wald0 by default, all instance variables are private to an object. you have to explicitly make them readable or writable
<pipework>
uptownhr: You might want to memoize the result in an object that you can safely share between the pages.
renderful has joined #ruby
<uptownhr>
what is memoize?
nkumari has joined #ruby
thagomizer has joined #ruby
<towski_>
doesn't matter how long
<godd2>
uptownhr memoization is caching the result of an expensive calculation so you only have to do it once
almostworking has quit [Quit: Leaving]
ramfjord has joined #ruby
<wald0>
godd2: good! the getter worked! i think that ruby is pretty able to allow me to do a wrapper of that gui lib to make things much more easy :)
<pipework>
uptownhr: Look up what memoization is.
<jhass>
towski_: length is only one property, not the most significant even
nkumari has quit [Remote host closed the connection]
<pipework>
Helpful thing to read and fully understand.
<wald0>
"ruby has the powa"
<towski_>
right I don't really have any
<towski_>
it's for caching
<jhass>
towski_: elaborate
<uptownhr>
so fyi: Mongoid.load!("./mongoid.yml"), initializes the mongodb connection
yfeldblum has joined #ruby
unholycrab has joined #ruby
<towski_>
i am caching [1,2,3] versus [1,2,3,4]
<towski_>
so they key just needs to be unique
<towski_>
for the array
<jhass>
towski_: does it need to be consistent across multiple ruby processes for example
deject3d_ has joined #ruby
<towski_>
yes
<pipework>
uptownhr: Doesn't really matter to us. You'll want to see if you need to handle memoizing the connection stuff yourself, or if mongoid handles it so you dont' need to worry about it and can use the connections from both classes.
<towski_>
good point
<shevy>
wald0 well what I showed you above, that in total should cover 90% of the possibilities
<pipework>
You may or may not want to separate initializing the connections into a separate piece of code.
<unholycrab>
im using Logger and it is extremely slow to output data to logs... it seems to have hte output backed up and spits it all out periodically
<unholycrab>
but i want to be able to monitor the logs in real time
nkumari has joined #ruby
<jhass>
towski_: how collision free does it need to be (how many different cache keys do you need)
<uptownhr>
pipework: got it
<pipework>
unholycrab: use a better loging solution.
<pipework>
logging too
<uptownhr>
pipework: does active record handle memoizing it for you?
<pipework>
uptownhr: It handles setting up a connection pool after you give it credentials, yeah.
<towski_>
well there will be at most like 100 keys right now
<towski_>
i guess up to 1000
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
<pipework>
There are fantastic profiling and benchmarking tools that help you find out what's important to optimize.
<jhass>
godd2: don't use a global there
<godd2>
jhass don't use them in general or dont use them on the bot?
<pipework>
Or generally ever.
<pipework>
godd2: In your code.
<towski_>
actually I could just join it into a string and get a hash of that
<jhass>
godd2: not in general, especially not for memoization
kamil has joined #ruby
<godd2>
I was only showing an example of memoization
<agent_white>
memorization, you fergaht the r
yfeldblum has quit [Ping timeout: 255 seconds]
<jhass>
towski_: with that you mean String#hash? that's as stable as Array#hash, it's only guranteed inside a ruby process
<pipework>
It was an example of using a global with memoization. Just as long as you don't actually think using globals is a smart idea to do unless it's the only choice at all.
<unholycrab>
pipework: any suggestion?
TheNet has quit [Remote host closed the connection]
<wald0>
shevy: the {} thing? yeah but hum, im thinking about the possibility to set things in "any moment", like win.button.text_set "foo"
<jhass>
godd2: you're teaching, good examples matter
<towski_>
well use like sha
mleung has joined #ruby
<jhass>
oh, you said fast :P
Brando753 has joined #ruby
<shevy>
wald0 yeah, all you need is the original setter method, and then the aliases towards it
godd2 has quit [Remote host closed the connection]
cleopatra has joined #ruby
Xiti` has quit [Quit: Xiti`]
Xiti has joined #ruby
adriancb has quit [Remote host closed the connection]
yfeldblu_ has joined #ruby
ptrrr has quit [Quit: ptrrr]
bMalum has joined #ruby
kamil has quit [Disconnected by services]
stunder has quit [Quit: Screw you guys I'm going home]
livinded has joined #ruby
Brando753 has quit [Ping timeout: 265 seconds]
<livinded>
I'm making HTTPS requests to our API and 3 out of the 79 requsts are failing with this stack trace but I haven't been able to track down any useful information. Not sure if it's a bug in ruby or what's going on. https://gist.github.com/jrozner/2080a2bd6ea35637e51c
rshetty has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
<pipework>
livinded: I think, but only glanced, that something closed the connection before sending what you expect.
<DTSCode>
is there a particular reason why almost every ruby tutorial i find says ruby is the best for any task?
b3itz has joined #ruby
<pipework>
DTSCode: Because it's a general purpose scripting and programming language.
takle has quit [Remote host closed the connection]
<DTSCode>
pipework, i get that, but its not neccesarily better. im just venting about how people parrot it as the best language ever. not saying its not good, but its not a one size fits all
<livinded>
pipework: alright. I'll take a look at the API code
<pipework>
DTSCode: People like langauges they are excited about.
<DTSCode>
meh... good point
havenwood has quit [Remote host closed the connection]
rshetty has quit [Read error: Connection reset by peer]
rudisimo_ has quit [Remote host closed the connection]
rshetty has joined #ruby
<pipework>
I think the language itself is fantastic if you don't mind class-based OO and the whole no type checking at compile or runtime.
TPBallbag has joined #ruby
<zacts>
pipework: I'm at ch 3 of the black book 2nd edition
<livinded>
pipework: I don't see anything on the API side that would close the connection before sending back the data
<pipework>
zacts: Good sir!
<pipework>
livinded: I don't either, sorry. :(
Mon_Ouie has quit [Ping timeout: 264 seconds]
mikhail has joined #ruby
<pipework>
I've got to get some lunch, but if I have time I'll keep looking and try to help.
Nieralyte has quit [Quit: Nieralyte]
econerd4ever has quit [Remote host closed the connection]
ht__th has joined #ruby
havenwood has joined #ruby
baweaver has quit [Remote host closed the connection]
yfeldblu_ has quit [Ping timeout: 264 seconds]
fabrice31 has joined #ruby
rshetty has quit [Ping timeout: 255 seconds]
arup_r1 has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
klmlfl_ has joined #ruby
TPBallbag has quit [Ping timeout: 250 seconds]
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
arup_r has quit [Ping timeout: 244 seconds]
Lingos has quit [Quit: Be back later ...]
<zacts>
so is rubinius ok to use for production code? or should I still use mruby?
Alina-malina has quit [Read error: Connection reset by peer]
<pipework>
zacts: lol
Alina-malina has joined #ruby
<pipework>
you're learning ruby using mruby?
rudisimo has joined #ruby
Lingos has joined #ruby
<pipework>
zacts: The rbx team probably thinks rubinius is production-ready. If you trust them, then sure. I like jruby.
<pipework>
zacts: ruby and mruby aren't the same thing.
<zacts>
oh ok!
<pipework>
MRI is the ruby written in C and maintained by the ruby core team.
klmlfl has quit [Ping timeout: 265 seconds]
omosoj has quit [Ping timeout: 256 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
<pipework>
Some of us call it cruby, knowing that other rubies are written in c-ish languages.
hmsimha_ has quit [Ping timeout: 255 seconds]
<zacts>
ok
<havenwood>
zacts: mri is the same thing as cruby, or just ruby. it's the reference implementation. the author of cruby is now working on mruby, but it's its own thing.
siwica has quit [Remote host closed the connection]
RyanV has joined #ruby
siwica has joined #ruby
<zacts>
I think I confused the 'm' in both of those, sorry
<pipework>
We used to call cruby yarv when 1.9 happened because mri was the always interpreted vm for 1.8
<pipework>
But now we no longer call it yarv at all.
zorak8 has quit [Ping timeout: 240 seconds]
Mars` has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Lingos has quit [Ping timeout: 264 seconds]
neoxquick has joined #ruby
crazydiamond has joined #ruby
lidaaa has joined #ruby
sambao21 has joined #ruby
St1gma has quit [Read error: Connection reset by peer]
St1gma has joined #ruby
Brando753 has joined #ruby
aspiers has quit [Quit: bye]
nkumari has quit [Remote host closed the connection]
shredding has joined #ruby
Versality has quit [Quit: Be back later ...]
sandelius has joined #ruby
Versality has joined #ruby
kumarat9pm has joined #ruby
<sandelius>
is it useful to freeze a regexp object?
<pipework>
sandelius: Does it have any possibility of being modified?
danijoo has quit [Remote host closed the connection]
<pipework>
Do you want to prevent that?
danijoo has joined #ruby
<sandelius>
pipework no It's actually a constant already
<pipework>
sandelius: So?
<pipework>
Objects that constants point to can be modified.
<pipework>
Warnings are only raised if a new object is assigned to a constant. You can still mutate the object in place.
<sandelius>
pipework keep it down, someone might here you that we can modify constants ;)
<sandelius>
hear
<sandelius>
pipework does it gain any performance?
Versality has quit [Ping timeout: 240 seconds]
hrrz has joined #ruby
<pipework>
sandelius: 'gain'?
adriancb has joined #ruby
<sandelius>
pipework do we "save" anything by freezing objects like that? performance wise
<b3itz>
i need to count from 0 to [nums]...how do i loop nums times?
ldnunes has quit [Quit: Leaving]
<pipework>
sandelius: I don't know if the use of the object is faster, honestly. You could benchmark it.
Mon_Ouie has quit [Ping timeout: 265 seconds]
hmsimha_ has joined #ruby
<jhass>
b3itz: nums.times do |i|
<sandelius>
pipework that a'll do. get back in a few
marens has quit [Remote host closed the connection]
<b3itz>
jhass: cool.. whats the |i| do?
<jhass>
b3itz: read up on blocks and Fixnum#times
arescorpio has joined #ruby
<b3itz>
oh, do i times
DLSteve has joined #ruby
Hijiri has joined #ruby
hiyosi has joined #ruby
<b3itz>
how can i now implement what number im on, into the variable.. ex: i have 2 sides, loop through twice making side1 side2
<b3itz>
something like side[i] = nums[0]
<jhass>
b3itz: ? provide more context
<pipework>
b3itz: !explain
<helpa>
b3itz: Please explain your problem better as we are having trouble understanding what you mean. A Gist (http://gist.github.com) is always helpful!
marens has joined #ruby
marens has quit [Changing host]
marens has joined #ruby
<b3itz>
so basically what im doing is reading in a line like r 2 4 - determining that its a rectangle with sides 2 and 4
<b3itz>
so i need to see how many sides they gave me
<shevy>
remember to save with .rb ending on the gist
freerobby has quit [Quit: Leaving.]
<jhass>
please, 1) gist with syntax highlighting 2) use two spaces soft tabs 3) use underscore_names
<b3itz>
sorry shevy i never remember
<havenwood>
b3itz: get rid of all those `return`s
<jhass>
^ and that
<b3itz>
i know i know i know
<b3itz>
thats the least of my worries right now
<shevy>
b3itz also you can simplify a lot there
<shevy>
take this line:
<shevy>
if line.include?("S") || line.include?("s")
<shevy>
you check whether it has S or s right?
<jhass>
b3itz: if you want help you should make it easy to understand your programs. All of those things help that tremendously
<shevy>
in that case you could simply downcase the line and check for "s" only
takle has joined #ruby
reinaldob has quit [Remote host closed the connection]
<havenwood>
b3itz: snake_case method names, not headlessCamelCase
gtc has quit [Remote host closed the connection]
<sandelius>
pipework seems like freeze is faster when iterating 10000 times with gsub but slower with less iterations
<havenwood>
b3itz: get rid of excessive parens
hiyosi has quit [Ping timeout: 240 seconds]
kyb3r_ has joined #ruby
<shevy>
hehe
<b3itz>
i understand all these things as you guys have been hounding me, his is in an early stage and due tomorrow so im not worried about all that for my sake right now
<b3itz>
ill go back and fix those if i have time
<shevy>
we worry for our sake!
<b3itz>
i need to get it to work first
mloveless has joined #ruby
<b3itz>
>.<
hrrz has quit [Quit: hrrz]
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy>
the clarity is diluted by obscurity
<jhass>
b3itz: no
<shevy>
less code achieving the desired result is a good thing
<havenwood>
b3itz: use #start_with? instead of #include? if you want to know if it starts with
<jhass>
using a proper style is a requirement for getting it to work
<jhass>
make it a habit as early as possible
<shevy>
btw b3itz the puts " " seem not necessary or?
<shevy>
you can replace them with a simple puts
<b3itz>
havenwood: doesn't matter if its at the beginning or not
<shevy>
or you do the shevy style; alias e puts
<pipework>
sandelius: Oh neat. About how much faster?
<b3itz>
thanks shevy
<havenwood>
b3itz: so it might be?: 3 4 S
<shevy>
as you can see b3itz, we are totally distracted by all other things
<b3itz>
havenwood: could be.. but probably not
<b3itz>
lol i can tell shevy
decoponio has quit [Quit: Leaving...]
<b3itz>
tearing my shit apart
<havenwood>
b3itz: just fix it real quick
robbyoconnor has quit [Ping timeout: 256 seconds]
<shevy>
nums.times do |i|
<b3itz>
so i have an array called nums with 0-3 data points.. i need to loop through and store them
<shevy>
line 89 b3itz
<shevy>
is confusing
<shevy>
can you explain it
<b3itz>
the nums.times?
<shevy>
yes that is line 89
<b3itz>
<jhass> b3itz: nums.times do |i|
<sandelius>
pipework with less iterations it's almost the same, no-freeze is ms faster. and more iterations freeze is ms faster. not by much
n008f4g_ has joined #ruby
<shevy>
b3itz ok where is the "end"?
<b3itz>
thats the part im trying to figure out
a13x212 has joined #ruby
<jhass>
b3itz: that was provided without knowing what you need, you described the solution you think you need, not your problem
anaeem1_ has quit [Remote host closed the connection]
<shevy>
b3itz you can use {} rather than do/end if "do" confuses you
<b3itz>
<b3itz> so i have an array called nums with 0-3 data points.. i need to loop through and store them
<b3itz>
i just typed it
<shevy>
ok you need to wake up your brain again
anaeem1_ has joined #ruby
<havenwood>
b3itz: use two spaces to indent. you can set most text editors to two-space soft tabs, so the tab key does two spaces.
<b3itz>
i need to count the numbers in the array.. then create side1 side2 etc
<shevy>
b3itz a big advantage in reducing the characters and amount of code is that it is also much easier to spot errors
Mars` has quit [Ping timeout: 272 seconds]
<b3itz>
i dont understand your point shevy
<b3itz>
oh
<b3itz>
ints vs string
<shevy>
so how does your Array look like?
yeticry has quit [Quit: leaving]
<shevy>
yeah
takle has quit [Remote host closed the connection]
<pipework>
sandelius: Oh cool. I often use freeze before it's necessary. But I use it like this: SOME_CONSTANT=%w|some array of strings that should not be changed|.map(&:freeze).freeze
<shevy>
String does not by default have the .times() method
<b3itz>
shevy: [4 4]
<pipework>
That way not only are they not changeable, developers know that's some serious shit and not to modify it.
yfeldblum has joined #ruby
econerd4ever has joined #ruby
<shevy>
you could add it but please default to standard ruby and either convert your string into an integer or use something else
<shevy>
b3itz you must have forgotten a , ?
<jhass>
b3itz: what should happen if the input is r 1 2 3
<pipework>
Just probably don't repeat the link too often. People dont' like being badgered.
<shevy>
eam at that age you'll go to COBOl
<gsd>
of course
stunder has joined #ruby
econerd4ever has quit [Remote host closed the connection]
<havenwood>
Señor developer
nkumari has quit [Ping timeout: 258 seconds]
<gsd>
it's on github and stackoverflow too - though, surprisingly, not many are biting
<gsd>
i'd have expected more from stackoverflow
x77686d has quit [Ping timeout: 245 seconds]
shredding has joined #ruby
rdark has quit [Quit: leaving]
Hijiri has quit [Ping timeout: 244 seconds]
volty has joined #ruby
<eam>
try craigslist
jottr has joined #ruby
zacts has quit [Quit: leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
larissa has joined #ruby
atomical has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blizzy has quit [Ping timeout: 255 seconds]
Guest83282 has quit [Ping timeout: 255 seconds]
i0n has quit [Quit: snooze]
sambao21 has joined #ruby
Shazaum has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lingos has joined #ruby
aclearman037 has quit [Quit: I'm out!]
iamjarvo has joined #ruby
byprdct has quit [Ping timeout: 265 seconds]
Hijiri has joined #ruby
ndrei has joined #ruby
<b3itz>
how do i do a file.write(array) and have it come out like [12, 45, 67]?
jerematic has quit [Read error: Connection reset by peer]
<apeiros>
b3itz: array.inspect
anaeem1_ has joined #ruby
<b3itz>
thanks
speed145a is now known as anotherZero
anaeem1_ has quit [Remote host closed the connection]
omosoj has quit [Ping timeout: 250 seconds]
sambao21 has quit [Ping timeout: 250 seconds]
DLSteve has quit [Quit: Leaving]
yeticry has joined #ruby
mleung has quit [Quit: mleung]
ta has quit [Ping timeout: 250 seconds]
timonv_ has joined #ruby
louism2wash has joined #ruby
<Cat_1>
Probably an aside, I have multiple tables labeled *_RECORDS, there's like 30 of them. I want to do a query across all those tables. Does anyone know how to execute such a thing in an Oracle database?
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
sambao21 has joined #ruby
<Cat_1>
besides writing a massive JOIN
<jhass>
Cat_1: #sql ?
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
<havenwood>
gsd: I think it'd be better to have a more concise about us: Asset Avenue is a crowdfunded real estate investment site. We're a start up in Los Angeles and we're growing!
<havenwood>
gsd: "What we need" and "What we're looking for" seem redundant.
byprdct has joined #ruby
byprdct has quit [Max SendQ exceeded]
warreng has left #ruby [#ruby]
<havenwood>
gsd: I don't like the emphasis on 3-years, 5-years, of doing stuff.
byprdct has joined #ruby
<gsd>
why?
<gsd>
just curious
byprdct has quit [Max SendQ exceeded]
max96at is now known as max96at|off
byprdct has joined #ruby
<pipework>
Which job description are we looking at on the page?
<josephndenton>
gsd: Still recruiting for those positions, yeah? Had any luck?
zorak8 has joined #ruby
<havenwood>
gsd: In these polyglot days asking for years in a particular framework is kinda silly.
Fokki has joined #ruby
<gsd>
josephndenton: yup - still recruiting. takes time to find folks. there's more demand than supply.
chrishough has joined #ruby
<Cat_1>
What are you looking for?
<pipework>
Cat_1: People to employ.
<pipework>
And cookies.
<havenwood>
gsd: You mention Cucumber in one of them. Are you using it?
dda has joined #ruby
<Cat_1>
I like how people say they want 5 years of a framework that's only been out for 3 years really, and they want production use.
<havenwood>
gsd: If you're not, I'd suggest dropping it from the ad. Many of us aren't fond of it.
TheNet has quit [Remote host closed the connection]
<gsd>
Cat_1: honestly, we're just looking for culture fit first and then all-around good engineers.
<Cat_1>
@havenwood you aren't fond of your tests taking forever? :)
ta has joined #ruby
<havenwood>
The degree or equivalent experience is redundant with five+ years in particular languages.
<havenwood>
How could you possibly not have equivalent?
<Cat_1>
What's the website?
<Cat_1>
Might be interested
<pipework>
I don't know if I agree about the equivalency.
<pipework>
You probably just want to filter by one or the other, but don't think of degrees as something you can compare years of experience to.
<gsd>
Cat_1: if you're in the los angeles area, i'd be happy to give you a ring today. shoot me over your resume: joshua@assetavenue.com
b3itz has quit [Ping timeout: 246 seconds]
anaeem1 has joined #ruby
<Cat_1>
Not in LA, currently in DC :)
<gsd>
we would prefer a degree - but i also don't want to rule out someone who doesn't have a degree - many great engineers just don't have them
<graft>
i don't think degrees and experience are equivalent
<Cat_1>
Degree in physics! It's actually come in pretty handy
<graft>
<- degree in biology
<havenwood>
<- philosophy and law
<gsd>
one of my best engineers has a law degree!
vectra has joined #ruby
<graft>
anyone in here actually have a cs degree, heh
<benzrf>
<- degree in sitting on my butt whilst reading about math
<graft>
i guess all those people are in #lisp
<cajone>
graft: not all of them ;)
gregf has joined #ruby
silkfox has quit [Ping timeout: 265 seconds]
<gsd>
Cat_1: why don't you move to los angeles? :p
<havenwood>
Cat_1: LA is great.
<pipework>
LA isn't as terrible as some places.
<gsd>
way to really sell it
<gsd>
haha
<havenwood>
pipework: Now you're just being reasonable!
nkumari has joined #ruby
giuseppesolinas has joined #ruby
<giuseppesolinas>
hello
anaeem1 has quit [Ping timeout: 264 seconds]
<havenwood>
giuseppesolinas: hi
yourrulessuck has joined #ruby
<yourrulessuck>
hi
<giuseppesolinas>
I'm trying to get sass to include bourbon, I'm using sass as a node package but I'd like to ask if it is necessary to tell to sass where bourbon is
randiman has quit [Quit: (null)]
<graft>
ok, so here's an architecture question: I have a model which I'd like to be able to receive data either from a text file or from a database... seems like the best way to do this would be to parse the text-file into some sort of in-memory throwaway database so i can have a unified interface for my model to consume
jaequery has joined #ruby
<giuseppesolinas>
is there any config file I need to edit?
<havenwood>
graft: humans are editing the text file?
<graft>
havenwood: err, let's say no. it's basically a flat file representing the same information as might exist in the db
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tkuchiki has joined #ruby
<graft>
i.e., assume for convenience it's well-formed, if that's your worry
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<havenwood>
graft: Ruby has all sorts of interesting things built in, like YAML::DBM, YAML::Store, PStore, etc.
<havenwood>
yourrulessuck: I'd suggest focusing on Ruby and not Rails. :)
<havenwood>
yourrulessuck: But for Rails, try #rubyonrails
DTSCode has quit [Quit: Leaving]
jheg has quit [Read error: Connection reset by peer]
jheg has joined #ruby
<yourrulessuck>
ok
bbloom has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
wjimenez5271 has quit []
yourrulessuck has left #ruby ["Leaving"]
yourrulessuck has joined #ruby
yourrulessuck has left #ruby ["Leaving"]
josephndenton has quit [Ping timeout: 244 seconds]
n_blownapart has joined #ruby
Morkel has quit [Quit: Morkel]
jhwhite has quit [Ping timeout: 255 seconds]
mocchi_ has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
wjimenez5271 has joined #ruby
wallerdev has joined #ruby
sambao21 has joined #ruby
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
mocchi has joined #ruby
sprihodko has quit [Quit: (null)]
<n_blownapart>
hello why is it that in a proc, how is the scope different so that you cannot use pipe variable |n| on line 11 ? thanks: http://pastie.org/9719902
baweaver has joined #ruby
<jhass>
pretty sure you can
<jhass>
note most people use Kernel#proc to construct procs
timonv_ has quit [Remote host closed the connection]
<n_blownapart>
jhass: thanks one second
siwica has quit [Remote host closed the connection]
<n_blownapart>
thanks pipework ...
siwica has joined #ruby
Avahey has joined #ruby
hiyosi has joined #ruby
raldu has quit [Changing host]
raldu has joined #ruby
<graft>
havenwood: if i'm not interested in persistence, do you think this is all just overkill and i should just stick with Enumerable and a bunch of hashes? i think what i really want is the relational capacity, which i'm not sure these options favor
<havenwood>
graft: why are you doing it? speed? something else?
<n_blownapart>
when I add |n| to line 11 I get : `block in proc_incrementer': undefined method `+' for nil:NilClass (NoMethodError)
<pipework>
n_blownapart: You know why, right? Did you pass anything into call?
St_Marx has joined #ruby
<havenwood>
graft: have you considered memcached?
<graft>
havenwood: i'm not clear on what my motives are... basically, the problem is: data usually comes in text files, and it would be faster and easy to interact with it in a DB usually, but it's not always possible. so i'd like to use models that CAN query from a db if available, but can also query from the text file if necessary
<n_blownapart>
no pipework .. a bit confused
Notte has joined #ruby
<pipework>
n_blownapart: What do you think happens when you call a proc that takes an argument without an argument?
<josiah14>
I know about Array#partition -> how do I get the same behavior but stop searching on the first match?
<jhass>
pipework: technically a lambda is a proc
<bricker`work>
pipework: >> -> { }.is_a?(Proc)
<josiah14>
All I'm really looking for is something that will allow me to grab the matched value and delete it out of the array without needing to do another lookp
<pipework>
giuseppesolinas: So go install homebrew then brew install chruby ruby-install, then use ruby-install to installyour preferred ruby.
jleishman has quit [Quit: Be back later ...]
fabrice31 has quit [Ping timeout: 250 seconds]
tkuchiki has joined #ruby
vhlfd has joined #ruby
IrishGringo has joined #ruby
<volty>
i would stay with pre-installed ruby on an os x
ht__th has quit [Read error: Connection reset by peer]
<pipework>
I would ignore that advice.
mistermocha has joined #ruby
siwica1 has quit [Remote host closed the connection]
<pipework>
You definitely want the latest ruby security patches.
<volty>
not all people have time to exercise hackering. Btw I do not usually ignore other's experience
siwica has joined #ruby
<pipework>
And people should probably just ignore advice that suggests they don't use updated software that contains security fixes for major vulnerabilities.
<josiah14>
well, if I wrote a select to pull out things that matched, it would look like set1.select {|x| findNextIdInHugeXML(xmlReader) == x.strip!.delete("\"").split("|").first} if that gives you any idea of what I'm up against
baweaver has quit [Remote host closed the connection]
<n_blownapart>
http://pastie.org/9719902 pipework would you explain the scope of 'n = 0' on lines 2 and 10 -- how they differ?
whoisjake has quit []
mistermocha has quit [Remote host closed the connection]
paulfm has quit []
sailias has quit [Quit: Leaving.]
<josiah14>
graft: ^^^^
<volty>
It's not about updated software but about plain new version. You fail to catch the difference.
<pipework>
n_blownapart: Like what do you mean? They're using the benefits of being a closure.
<volty>
It's stability vs supposed security
<pipework>
volty: You don't know what you're talking about. Feel free to prattle on.
jeremy04 has quit [Remote host closed the connection]
<pipework>
But, I, for one, will upgrade my rubies that I use to the latest security patchlevels as soon as they're released.
<jhass>
n_blownapart: the one on line 2 ceases to exist after incrementor returns, since there's no reference to the closure that captured it anymore
<volty>
pipework: I find you quite hysteric. Get an easy. Give your advice and lets stop here.
<jhass>
n_blownapart: the one on line 10 lives on as long as x lives on
<pipework>
volty: My advice is for people to not listen to people who give bad advice. :)
mloveless has quit [Remote host closed the connection]
<pipework>
My bet is that the other people here who help others have this guy on ignore.
<pipework>
havenwood: So, should we leave it to fate to arrange our meeting at rubyconfs?
cypheon has joined #ruby
<cypheon>
hey
<volty>
you are more sticky than a crab :)
<havenwood>
pipework: ooh, reminds me i need to get a train ticket!
freerobby has joined #ruby
<pipework>
havenwood: Do that, it would be a shame if I spent all of rubyconf looking for you to either say hello or hide.
<cypheon>
How to manually put the files of the bootstrap on a rails app?
sambao21 has joined #ruby
<jhass>
cypheon: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<cypheon>
okay
claymore has quit [Quit: Leaving]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework>
jhass: Added that as a helpa factoid. :D
<pipework>
!identify
<graft>
josiah14: is xmlReader your set2?
michaeldeol has joined #ruby
<helpa>
Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
jleishman has joined #ruby
<jhass>
!identify
<jhass>
it still ignores me :(
louism2wash has quit [Quit: This computer has gone to sleep]
<pipework>
Radar: You should add jhass. He's a really good helper and a smart guy.
<tzero>
+1
<pipework>
Radar: He contributed or contributes(?) to diaspora and other stuff.
allcentury has quit [Ping timeout: 256 seconds]
uptownhr has quit [Quit: Page closed]
<josiah14>
graft: xmlReader streams data in from set two, which is a set larger than what my ram can hold
Jake232 has joined #ruby
<jhass>
pipework: still doing maintenance stuff
<josiah14>
if that gives you any idea about the size
<jhass>
what's the reasoning for having a whitelist on those? did you see abuse in the past? I find it rather ridicouslus tbh
<pipework>
jhass: neato. I wish they'd make as simple an api for their distributed network as possible.
<graft>
josiah14: can you load it into a DB and index it?
<pipework>
jhass: I haven't looked in a long while though.
<jhass>
pipework: too old and too much undergradute college students code still. You'll like tent.io
<josiah14>
I would still have to parse it out, but actually, that's not a bad idea
<graft>
josiah14: basically it seems like you're trying to run queries on your raw data, and you need to transform it to something less ugly first before you do
<josiah14>
yep
<toretore>
ah, thank you logging. not only can i see exactly what happened, but i can link to each point in time to those questioning whether or not my code works to prove it's their fault :P
thsig_ has joined #ruby
baweaver has joined #ruby
<toretore>
in ur face!!!
<pipework>
jhass: Yeah, I saw that one. I'll have to look further, but I'm not sure it supports the kind of distributed network features I like.
iamjarvo has joined #ruby
n_blownapart has quit [Remote host closed the connection]
<pipework>
I don't care about it making HTTP requests all over the place, really.
thsig has quit [Read error: Connection reset by peer]
arescorpio has quit [Excess Flood]
<josiah14>
I think I know what I need to do.
<pipework>
Then do not try, do.
mikhail has quit [Remote host closed the connection]
Soda has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
TheNet has joined #ruby
TheNet has quit [Remote host closed the connection]
Ankhers has quit [Ping timeout: 250 seconds]
<giuseppesolinas>
pipework, so I've instelled ruby's lastest version via chruby do I need to tell my system to use that version?
cypheon has quit [Read error: Connection reset by peer]
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
<pipework>
giuseppesolinas: You mean via ruby-install?
cypheon has joined #ruby
<pipework>
giuseppesolinas: now you need to open a new terminal, you can close the old one, and then use `chruby <version>`
enebo has joined #ruby
<pipework>
Then if you just gem install <gem>, it'll be usable.
Jake232 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<giuseppesolinas>
pipework, ruby -v stil returns the pre-installed version
ratdaddy has joined #ruby
<pipework>
giuseppesolinas: After using `chruby <version>`?
<pipework>
zacts: I'm pretty sure you can represent 99 problems as ruby objects, but a bitch won't be one. :p
jimbach has quit [Remote host closed the connection]
<zacts>
lol
<jhass>
Crystal does def something(foo : Bar, baz = 3 : Baz)
josiah14 has quit [Ping timeout: 246 seconds]
<pipework>
diegoviola: ignorance isn't always funny, as depicted by your link.
<havenwood>
pipework: ah, so you can do default arg with a type
it0a has quit [Ping timeout: 264 seconds]
<diegoviola>
pipework: what?
hiyosi has joined #ruby
<pipework>
havenwood: You can? I don't know, I was guessing for what I wrote.
<diegoviola>
pipework: oh, you're talking about yourself
nkumari has joined #ruby
<pipework>
diegoviola: No, your link. The poor guy thinks windows doesn't have a shell.
<diegoviola>
pipework: oh lol
agent_white has quit [Quit: be back later]
<diegoviola>
pipework: yeah sorry about that
<zacts>
just FYI mksh has been ported to windows
<wasamasa>
ignorance can be bliss
timonv_ has joined #ruby
<zenspider>
hey wasamasa, how goes?
<wasamasa>
zenspider: procrastination
<diegoviola>
he was talking about bash though
jheg has quit [Quit: jheg]
gagan has quit [Quit: Leaving]
<zenspider>
wasamasa: yay! me too!
<diegoviola>
hrm, bash runs on windows right?
<diegoviola>
cygwin?
<pipework>
not so sure
<havenwood>
pipework: def something number = Fixnum(42), string = String('sekret')
<wasamasa>
diegoviola: for the record, <random git who attempted recruiting me for a company trying to connect people> stated that if microsoft were to opensource the nt kernel, it would be overall comparable to linux
<diegoviola>
meh... people just like to hate on windows
timonv_ has quit [Remote host closed the connection]
<diegoviola>
there are good reasons for that though
<wasamasa>
diegoviola: some things worse, some better
<havenwood>
i kinda like it
<wasamasa>
diegoviola: and the better ones could be potentially startling
<pipework>
havenwood: Ah so can I just define any method and pass that method in with an object?
<pipework>
Or are there special methods?
<havenwood>
pipework: i'm guessing they defined those on Kernel, and you can define your own? dunno..
siwica has quit [Remote host closed the connection]
mwlang has quit [Quit: mwlang]
siwica has joined #ruby
<pipework>
havenwood: I'm curious about rbx for the first time in ages. This probably doesn't bode well.
<havenwood>
pipework: haha
jheg has joined #ruby
ducklobster has joined #ruby
nkumari has quit [Ping timeout: 264 seconds]
hiyosi has quit [Ping timeout: 240 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
klmlfl_ has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 240 seconds]
sambao21 has joined #ruby
procat has quit [Ping timeout: 244 seconds]
phoenixrlv has joined #ruby
mathias2 has quit [Ping timeout: 265 seconds]
codecop has quit [Remote host closed the connection]
dkphenom has joined #ruby
nkumari has joined #ruby
zorak8 has joined #ruby
mloveless has joined #ruby
ducklobster has quit [Quit: Bye!]
ducklobster has joined #ruby
Hijiri has joined #ruby
nkumari has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
silkfox has quit [Ping timeout: 264 seconds]
Mars` has joined #ruby
baweaver has quit [Remote host closed the connection]
jheg has quit [Quit: jheg]
adriancb has quit [Remote host closed the connection]
baweaver has joined #ruby
siwica has quit [Remote host closed the connection]
siwica has joined #ruby
phoenixrlv has left #ruby ["Leaving"]
phoenixrlv has joined #ruby
Spami has joined #ruby
<maestrojed>
I have vagrant questions. Vagrant was written with Ruby I think and I believe my questions have to do with syntax. So I am going to try here. Run me out on a rail if this is inappropriate.
<maestrojed>
Like my RoR pun?
<maestrojed>
in my vagrant file I load a yaml file that has a collection. I think pass this collection to a shell script.
Spami has quit [Client Quit]
<maestrojed>
In the shell script I don't get one variable that is a collection/array. Instead I get each collection item as its own variable. Like it was exploded for me or something. I was not expecting this.
Mars` has quit [Ping timeout: 265 seconds]
<maestrojed>
Any ideas?
<maestrojed>
I'd like to have an array in my shell script so that I can count it and loop over it.
nateberkopec has quit [Quit: Leaving...]
robbyoconnor has joined #ruby
econerd4ever has joined #ruby
DTSCode has joined #ruby
Rhainur1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
cypheon has quit []
dc_ has joined #ruby
sambao21 has joined #ruby
tier has joined #ruby
Rhainur has quit [Ping timeout: 250 seconds]
bMalum has quit [Quit: bMalum]
<pipework>
Seems pretty reasonable.
mloveless has quit [Remote host closed the connection]
marr has quit [Ping timeout: 244 seconds]
marr has joined #ruby
treehug8_ has quit []
davidbug has quit [Quit: davidbug]
nkumari has joined #ruby
fantazo has joined #ruby
apeiros_ has joined #ruby
deject3d_ has quit [Quit: Computer has gone to sleep.]
xiq_ has quit [Read error: Connection reset by peer]
xiq__ has joined #ruby
<jhass>
maestrojed: if you ask in #ruby assume nobody knows vagrant. so, how is the YAML file read?
xiq__ has quit [Read error: Connection reset by peer]
<maestrojed>
This is the syntax of that array I use when I pass it. #{vconfig['databases']}
<__aiguu__>
Which is the common practice for creating record, ex 1: User.create(params[:user]) or, ex 2: User.create({ foo: params[:foo], bar: params[:bar] })
<__aiguu__>
I'd ask in rails but their channel is foobar'd
siso has joined #ruby
<jhass>
so I guess you know that response times of 4 hours and more are nothing uncommon for a quiet IRC channel ;)
<jhass>
__aiguu__: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<maestrojed>
jhass yeah dude, just trying here. I am a IRC vet. :)
phoenixrlv has quit [Quit: Leaving]
<maestrojed>
I wish I knew someone that knows more about vagrant than me :)
<__aiguu__>
thanks!
__aiguu__ has left #ruby ["WeeChat 0.4.2"]
<Alayde>
Has anyone come up with an easy solution to using sudo with the net/ssh library, whilst using public/private key authentication? The whole 'sudo: no tty present and no askpas, etc' problem only seems to have online solutions (stack overflow, etc) for folks using password authentication.
<jhass>
maestrojed: so #{vconfig['databases']} is a comment. I assume that's somewhere inside "" which means your array will be converted to a string (Array#to_s) and interpolated into the string, it's no longer an array
TPBallbag has quit [Remote host closed the connection]
divi has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<maestrojed>
jhass awesome that is probably the key
<maestrojed>
Thanks I will investigate that.
<jhass>
maestrojed: you probably just want to get rid of all the "" and #{}
mloveless has joined #ruby
mloveless has quit [Remote host closed the connection]
<atmosx>
Alayde: people don't use sudo with ssh yes.
<Alayde>
atmosx: I see. What would be the more preferred solution?
Snowstormer has joined #ruby
rshetty has joined #ruby
<jhass>
Alayde: ssh sudo is quite common, sudo ssh is not
Snowstormer is now known as Guest21824
<jhass>
you still didn't explain well what you're doing
baweaver has quit [Remote host closed the connection]
<Alayde>
jhass: SSHing to a puppet master, sudo git pull on a git repo
<Alayde>
Why would anyone ever sudo ssh?
<czhang>
jhass: I don't understand
Lingos has quit [Quit: Be back later ...]
nkumari has joined #ruby
<atmosx>
Alayde: there are many security models which allow fine grained control
<atmosx>
Alayde: depends on the scenario
<atmosx>
Alayde: the operating system and so forth
<czhang>
The issue is that there's an inherited method there
<Alayde>
atmosx: I suppose. Guess I've yet to work at a company that requires super user access to SSH
<czhang>
actually, we managed to hack it
<atmosx>
Alayde: why do you need to sudo to pull git?!
sklik has quit [Remote host closed the connection]
<maestrojed>
jhass weird, I am having the same experience.
<Alayde>
Repository is owned by root :( I suppose that could be changed
sklik has joined #ruby
<czhang>
but it wasn't in an ideal way, and there's methods in the Foo module that are using the VAR defined by Foo instead of the VAR that I'm trying to overwrite in FooBar
jobewan has quit [Ping timeout: 255 seconds]
Lingos has joined #ruby
<Alayde>
well, owned by root and not world writeable
<jhass>
czhang: your SRP sounds broken
<czhang>
SRP?
<maestrojed>
Since I am passing an array to my shell script. In that script. I expected "${1}" to be my array. Instead its the first item in the array
<maestrojed>
${2} is the 2nd item, etc.
<atmosx>
Alayde: c'mon be serious. Clone the repo to a user, this is awful design.
<jhass>
maestrojed: yeah, I think that's the point of passing an array
<maestrojed>
right.
<Alayde>
atmosx: It's not my design, unfortunately I just inherited this house of cards
fabrice31 has joined #ruby
<jhass>
maestrojed: argument passing only ever passes strings, you can't pass "an array as first argument", only a string representation of it
<maestrojed>
My work around would be to count the array before passing it. pass the array and this count. Then I would know how many vars exist in the shell script and can loop. But that feels wonky at best
<jhass>
maestrojed: in this case Array#join should give you a good string representation
<jhass>
uhm, I vaguely recall there's a way to count array items in a shell script
<atmosx>
czhang: The code on the gist works as expected.
<jhass>
somehting with #
wjimenez_ has joined #ruby
<czhang>
:(
<maestrojed>
jhass really. Is this vagrant? Ruby? Shell?
<maestrojed>
jhass yes, I can count arrays in shell with #
<czhang>
wait, it doesn't return 1 for you?
<maestrojed>
My issue is it was never an array.
<maestrojed>
But I will try your join tip.
rshetty has quit [Ping timeout: 264 seconds]
<czhang>
:( i'm on ruby 1.8.7
<jhass>
maestrojed: .join(' ') so it gets spaces
everettForth has joined #ruby
<maestrojed>
If I had 10 items I'd have 10 vars. But I don't know how many items there will be so thats been my struggle. (and why you use arrays :) ).
<atmosx>
czhang: returns 1, should return 1.
<jhass>
czhang: yeah well, my condolences, you missed the funeral
<maestrojed>
jhass awesome thanks!
nkumari has quit [Remote host closed the connection]
<atmosx>
jhass: please, be more polite with strangers
<atmosx>
jhass: that tone of irony, is not adequate to the channel's history and ethos
<jhass>
1.8.7 is dead and he seems to know
<atmosx>
jhass: I know, I'm just trolling :-P
Lingos has quit [Ping timeout: 255 seconds]
sklik has quit [Ping timeout: 264 seconds]
<pipework>
atmosx using the word ethos should have been enough for you to know you were being trolled, jhass.
<jhass>
sorry, not my best day
<czhang>
atmosx: yeah but I want it to return 2; is there a way for me to make that happen?
wjimenez5271 has quit [Ping timeout: 255 seconds]
<pipework>
Wait, so are we still talking about ruby, czhang?
<czhang>
short of const_set and forking the gem
<czhang>
yeah
<czhang>
:(
<jhass>
czhang: SRP = Single responsibility principle. If you got name conflicts by including a module, it's a good sign your class is way too big
<atmosx>
pipework: I like using Greek words (go figure...)
<czhang>
it's not a name conflict, we're trying to overwrite it
siwica has quit [Remote host closed the connection]
<pipework>
jhass: No one wants to have to write a library to use a Vagrantfile. :p
fabrice31 has quit [Ping timeout: 255 seconds]
<atmosx>
czhang: of course it is!
siwica has joined #ruby
<czhang>
okay um
<maestrojed>
jhass when you told me "argument passing only ever passes strings, you can't pass "an array as first argument", only a string representation of it". Is this true because of Shell? Ruby? Vagrant? Just trying to google more.
<jhass>
maestrojed: it's true because of unix
<czhang>
So… is there a way to resolve it
<pipework>
czhang: You could use `def self.included(mod); mod.const_set(:Foo, something);end` on the module.
<jhass>
fundamental stuff when calling a program
<czhang>
oh god
<maestrojed>
jhass ok, thx
<czhang>
yeah i'm not using const_set, it looks even worse than our current hack
mary5030 has quit [Remote host closed the connection]
<czhang>
(we have a pretty brutal current hack that seems to have sort of resolved the issue, but it doesn't really overwrite the constant sooooo)
<pipework>
czhang: Well, if the value you want is set at a constant, you're kinda screwed unless you cause whatever calls that constant to call your constant instead.
rudisimo has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pipework>
Either way sounds bad.
<czhang>
yeah the change was to overwrite the method definition and make it call our new constant with a different name but
ferr has joined #ruby
<czhang>
that kind of makes me want to cry
<czhang>
so
<czhang>
welp
despai has joined #ruby
<jhass>
is the actual code you need to overwrite open source?
<pipework>
czhang: That's worse, imo.
<czhang>
yeah we could fork the gem and rewrite parts of it
Alayde has left #ruby ["WeeChat 1.0"]
<czhang>
but that would make it harder to upgrade to a newer version
<czhang>
sooooo
<pipework>
Yeah, if you could expose better configuration stuff and then pull request upstream...
<jhass>
as a first step I'd be interested in removing all that abstraction in your descriptions
nkumari has joined #ruby
<jhass>
there's the slight chance we notice something in the particular code that might make your life easier
<czhang>
we're um
<czhang>
a lot of versions behind
<jhass>
oh, so I get free servers tonight? :)
<jhass>
scnr
<txdv>
boom
<atmosx>
czhang: hm you can't override the method right?
havenwood has quit [Remote host closed the connection]
<atmosx>
I mean re-writing the entire class...
zacts has joined #ruby
<atmosx>
sucks
<czhang>
so just redefining the method works?
<atmosx>
czhang: sure
<atmosx>
it's ruby
<czhang>
fair enough
procat has joined #ruby
<czhang>
i coudl do that, that i think is actually less bad, yeah
<volty>
changing a constant is not good, anyway you need just : Foo::VAR = 2 // you have to change context, and it seems senseless to change it in FooBar class and expect it without 'bringing into life' FooBar
<czhang>
actually hmm, that might make the underlying issue less explicit
<atmosx>
It's not a DRY solution, but might work until you clean up the code (somehow)
<pipework>
volty: Actually, that raises warnings in ruby.
<volty>
yap
<pipework>
The better way is to delete the constant then set it.
thagomizer has quit [Quit: Leaving.]
<czhang>
Yeah I think i'm gonna go with "this is the ugly fix but at least it's obvious what's wrong"
<volty>
the better way is to rethink everything, i can't see a clear point in his thinking
matled has quit [Remote host closed the connection]
matled has joined #ruby
<atmosx>
Agreed.
<pipework>
remove_const and then const_set
<pipework>
I don't know why remove_const isn't const_remove
<pipework>
or delete or something
byprdct has joined #ruby
RitterJack has quit [Remote host closed the connection]
<jhass>
because const_set is backwards
<jhass>
it should be set_const
<pipework>
and const_get?
<jhass>
should be const_get
<jhass>
bah
<jhass>
get_const
<jhass>
ruby stop messing with me!
nobitanobi has quit [Remote host closed the connection]
<pipework>
if const_defined?(DatConst); remove_const(DatConst); const_set(DatConst, SOMEVALUE); end
<pipework>
Could use defined? but I like the const_defined? here
andrewlio has quit [Remote host closed the connection]
maestrojed has quit [Ping timeout: 264 seconds]
<atmosx>
that's neat
<atmosx>
const_defined?
deject3d_ has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]