maletor has quit [Quit: Computer has gone to sleep.]
shedd has joined #ruby
kofno has quit [Ping timeout: 260 seconds]
browndawg has joined #ruby
pragmatism has joined #ruby
kofno has joined #ruby
kitak_ has quit [Remote host closed the connection]
<pragmatism>
back
kitak has joined #ruby
pragmatism has quit [Client Quit]
mjs2600 has joined #ruby
banister has joined #ruby
Megtastique has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
rjhunter has joined #ruby
psyl0n has joined #ruby
shedd has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
foredoomed has joined #ruby
Zarkhder has quit [Quit: Leaving...]
foredoomed has quit [Client Quit]
sailias has joined #ruby
rjhunter has quit [Ping timeout: 246 seconds]
SHyx0rmZ has quit [Quit: ネウロイを負かさなきゃならないね]
kofno has quit [Ping timeout: 250 seconds]
valesk has quit [Remote host closed the connection]
kofno has joined #ruby
phipes has joined #ruby
DeProdigy has joined #ruby
pabloh has quit [Quit: Saliendo]
phipes has quit [Read error: Connection reset by peer]
phipes_ has joined #ruby
platzhirsch has quit [Ping timeout: 260 seconds]
R33C3 has joined #ruby
DeProdigy has quit [Ping timeout: 250 seconds]
wallerdev has quit [Quit: wallerdev]
nifty has joined #ruby
wallerdev has joined #ruby
snuffeluffegus has quit [Quit: Leaving]
phipes_ has quit [Ping timeout: 260 seconds]
Briareos1_ has joined #ruby
pzula has joined #ruby
Briareos1 has quit [Ping timeout: 246 seconds]
jibi has quit [Quit: .]
decoponio has joined #ruby
SUPER_AMY has quit [Quit: Lost terminal]
kofno has quit [Ping timeout: 260 seconds]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kofno has joined #ruby
jamesaanderson has joined #ruby
bricker`LA has joined #ruby
R33C3 has quit [Remote host closed the connection]
R33C3 has joined #ruby
<devians>
what's the go with bundler, does it keep some kind of gem cache or somesuch? I'm running into a few problems where it seems it could be solved if there wasnt a cache invalidation problem
CyberFlames has joined #ruby
R33C3 has quit [Read error: Connection reset by peer]
pzula has quit [Ping timeout: 250 seconds]
Lewix has quit [Remote host closed the connection]
epitamizor has quit [Quit: Connection terminated]
almarshall has quit [Quit: almarshall]
kofno has quit [Ping timeout: 246 seconds]
Jdubs has quit [Remote host closed the connection]
mjs2600 has quit [Remote host closed the connection]
jacobsmith has joined #ruby
kofno has joined #ruby
aantix has quit [Quit: aantix]
Ox6abe has quit []
Jdubs has joined #ruby
shedd has joined #ruby
mkevin has joined #ruby
<mkevin>
hello
<sam113101>
hello
<mkevin>
hi sam
kitak has quit [Remote host closed the connection]
<mkevin>
is this a good room for discussion?
petey has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<sam113101>
about ruby? yes
<mkevin>
good. i am new to programming in general and ruby. how long have you used ruby?
shedd has quit [Ping timeout: 260 seconds]
<sam113101>
about a year I'd say, but I rarely use it
phipes has joined #ruby
charliesome has joined #ruby
<mkevin>
have you completed any projects with it?
<sam113101>
yes
<sam113101>
a few
dhruvasagar has joined #ruby
nhhagen has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
kofno has quit [Ping timeout: 250 seconds]
kofno has joined #ruby
<mkevin>
did you have to know the language inside and out to complete the work?
<sam113101>
I don't know, I knew quite a lot about it already
davy has joined #ruby
brunops has quit [Ping timeout: 246 seconds]
<sam113101>
ruby is quite an easy language, though
rh1n0 has quit [Quit: Leaving...]
nhhagen has quit [Ping timeout: 246 seconds]
<devians>
sam113101 i find the language easy but the ecosystem fairly deep and difficult to get into
codeFiend has quit [Quit: codeFiend]
Emmanuel_Chanel has quit [Quit: Leaving]
brunops has joined #ruby
nari has quit [Ping timeout: 250 seconds]
Lewix has joined #ruby
<lagweezle>
mkevin: That depends, I think, on how advanced a project you are planning to do. Knowing the language somewhat deeply will help you more elegantly and quickly solve the problem you are trying to solve, but it certainly is not a requirement in many--possibly most--cases.
phipes has quit [Remote host closed the connection]
Briareos1_ has quit [Remote host closed the connection]
<lagweezle>
mkevin: As devians noted, the ecosystem is VERY deep and confounds me a bit as well.
<devians>
yeah. thats probably reason numero uno that I'm not doing more ruby
kofno has quit [Ping timeout: 260 seconds]
<devians>
i've basically learnt it because of necessity, to run the various developer tools and apps that I want to run
Lewis has joined #ruby
kofno has joined #ruby
psyl0n has quit [Remote host closed the connection]
aantix has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
phipes has joined #ruby
braincrash has quit [Quit: bye bye]
<mkevin>
ok, i might as well qualify myself a bit - so i used to be an architect. the world came crashing down around 2008, as I am sure you all experienced to some degree as well. luckily i was able to move into a business role and i have been able to eat and whatnot. however, i miss the "development" and "building' aspect. A friend recommended I look into software development and specifically ruby. So, I spent some time with ruby. Then rails.
<mkevin>
Poked around with html. Then css. Did some php (didnt like it). And now here I am. So, I have looked at a variety of packages. Definitely a deep pool. Do you all have a specific specialty and stick to that?
braincrash has joined #ruby
jamesaanderson has joined #ruby
<nobitanobi>
mkevin, what do you mean by packages?
fijimunkii has quit [Ping timeout: 246 seconds]
<mkevin>
pardon. languages.
<nobitanobi>
oh ok
<nobitanobi>
Ruby is great. Good decision.
<devians>
mkevin I'm curious as to why you didnt like php?
<nobitanobi>
have you tried tryruby.org?
<mkevin>
yes
<devians>
no agenda, its just that its been my bread and butter for a decade and I'm always curious about newcomers viewpoints
pu22l3r has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 240 seconds]
shedd has joined #ruby
<ddd>
i don't like the language semantics, find it far more difficult to work in than ruby, doesn't read anywhere near as naturally as ruby (though it too can be made to read terse or dense) generally, and I don't like the 'feel' of the language compared to ruby. Ruby feels 'right' to me.
nifty has quit [Ping timeout: 252 seconds]
rjhunter has joined #ruby
<ddd>
thats why i don't like php. good or bad :shrug:
kofno has joined #ruby
<lagweezle>
I can say that Ruby Koans was greatly helpful to me.
<mkevin>
i thought ruby was easier to read, to be honest
<devians>
ddd, interesting. I agree that its not a nice to read / pretty language
<nobitanobi>
devians, I have been asked that many times by ex colleagues that I used to work and we used PHP. They always say but why "ruby"? And I just can say, Ruby is clean and I am happy when I work with it. PHP seems messy.
<devians>
It gets much much better when you use higher level stuff like laravel
<lagweezle>
PHP A Fractal of Bad Design <-- much of this article, wherever it is hiding on the web, I agree with.
<devians>
lagweezle while theres valid points in that article, I think it kind of misses the point a touch?
Megtastique has quit []
<devians>
aaaanywho, not here to try and talk about php in a ruby channel :P
<ddd>
devians: that lack of niceness to me makes it harder to both code and comprehend. with ruby i don't really have to work at understanding what's going on even if i don't understand all the nuances of the chosen statements. i can't say the same for php. thats a big downside for php in my personal opinion (which is as always, just an opinion)
<lagweezle>
true, true. <.<;
<nobitanobi>
ddd, +1 completely feel like you. Ruby comes natural to me
blandflakes has quit [Quit: Leaving]
<ddd>
and ruby doesn't seem to penalize me as harshly when i goof things. :)
<ddd>
which i do a lot of hehe
<devians>
ddd, lagweezle, nobitanobi et al, its interesting isn't it. My preferred language is javascript these days, and I think it's a horrid language to read/write but conceptually quite nice.
<ddd>
or i should say, more accurately, i can recover faster from the goofs i make
<nobitanobi>
devians, really? Why is that?
<ddd>
devians: yeah i know a few that feel that way about JS as well.
Lewis has quit [Remote host closed the connection]
rjhunter has quit [Ping timeout: 250 seconds]
<devians>
nobitanobi why is what sorry?
<nobitanobi>
boh, I don't. I am still trying to go into the Prototyping thing :/
<ddd>
not my cup of tea either, but for those that like it, its an extremely 'fun' language they say
<nobitanobi>
What does give you JS?
shedd has quit [Ping timeout: 260 seconds]
havenwood has quit [Remote host closed the connection]
<devians>
a lot of the things i do in js that turn out to be lovely bits of code feel like cheating. i cant describe it any other way.
<ddd>
hehe
<nobitanobi>
ha
<nobitanobi>
interesting
<ddd>
thats how i feel with ruby. its.. succinct i think is the word i want
<nobitanobi>
I'm actually working with JS nowadays, creating a crawler with PhantomJS.
<devians>
like, big sets of models in somewhat complex datasets, working with them in a functional manner, with map/filter/pluck etc
<mkevin>
how much coding did you have to do before you felt comfortable?
<ddd>
mkevin: who's that to?
<mkevin>
anyone
<devians>
ie, i have a project that represents an aircraft atm, and the code that lets me grab 'all seats with active bells' is vnice. or the code that lets me grab 'all ids for seats with these properties'
<devians>
its not a traditional loop, its a functional chain that recurses down through the datastructure.
<devians>
its just... i dunno, nice.
wozniak has joined #ruby
<ddd>
myself, about a year. when i was coding steady i was getting pretty good. then i took an almost 5 month break with zero coding, and now i'm having a dickens of a time because i 'think' i remember something one way, and its really not. and i'm jumping the gun a lot.
<nobitanobi>
devians, seems nice :) I'm glad you have reached that point in JS. I haven't yet. And I have read "JS the good parts twice" XD
<ddd>
but when i was coding full time, it took about 2, maybe 3 months to start rolling, and the next 8-10 months i was clicking along fairly well.
blandflakes has joined #ruby
<nobitanobi>
Now I'm actually working with C. Oh boy, pointers.
<ddd>
but i started with rails, decided i wanted just ruby so concentrated on ruby only, forgoing rails. then went back to the rails framework
<devians>
haha. nobitanobi learning coffeescript back when it came out gave me a surprising boost, seeing how it turned familiar concepts (class inheritance) into js (prototypal inheritance)
<mkevin>
when you work for a company as a programmer, is that 8 hours a day of typing and staring at a screen?
<nobitanobi>
ddd, same here. Started with Rails, now Ruby :P
<devians>
also, learning to abuse javascripts scope and treatment of new and this helps a lot
<nobitanobi>
mkevin, depends on the company I guess
<ddd>
nobitanobi++
<nobitanobi>
mkevin, I work as a programmer and I could say I am an average of 6 hours?
<ddd>
i mean some companies just wANT LEGIONS of code. others want less code, FAR more quality
<nobitanobi>
make it 5 :D
<ddd>
so it depends
<nobitanobi>
but I'm a lazy bastard, so...
<devians>
I'm a freelance consultant. my days vary _wildly_ as to what I'm doing
<ddd>
devians: same here. i'm a freelancer
codeFiend has joined #ruby
<devians>
lately I've been devops ninja, getting my brain around vagrant and ansible.
<mkevin>
lets say you are working on a project. do you find that you are reinventing the wheel all the time, or are you mostly using prebuilt (plugins?) (gems?) to produce the results?
<ddd>
but ruby isn't the only language i touch. I also use C++ and am learning java. (took *a* class on java, now just finding my zone, wherever that is, with it)
amacgregor has joined #ruby
<nobitanobi>
I kind of miss my freelancing days. That moment when you realize it's 9pm and you still have your PJs
<ddd>
mkevin: naa, too many gems out there, many okish, others great, to reinvent
<ddd>
nobitanobi: haha true that
<Reach>
is it tough to get freelance jobs?
nwertman has joined #ruby
<ddd>
yes
<devians>
nobitanobi ah i cant do that. otherwise i fuck about all day. gotta shower, get dressed, go to the office etc
<nobitanobi>
mkevin, gems are great. Ruby is really good on that
<devians>
Reach depends on you really.
<nobitanobi>
devians, that's great. I work at a coworking space and there are tons of freelancers there
<ddd>
very tough. tons of freelancers out there, tough to differentiate yourself. once you do, jobs start to come in, but its tough. you have to find a way to make *you* stick out from the legions and that can be rough as hell
<nobitanobi>
mkevin, yes. For Rails is really good
<devians>
nobitanobi I'm going to move house soon and I'm going to build myself a proper office. spend 5k or so on fitout.
kofno has quit [Ping timeout: 246 seconds]
<ddd>
most of the work i've gotten has been word of mouth.
echevemaster has quit [Remote host closed the connection]
<nobitanobi>
devians, good
<ddd>
that seems to be where most work i get comes from
kofno has joined #ruby
<nobitanobi>
I literally remember myself coding from bed. When I reached that point, I was like... My mum would not be proud right now
<ddd>
nobitanobi: why not? if you can get paid and not even leave the bed..
<nobitanobi>
ddd, greasy hair..
<nobitanobi>
you feel me?
<ddd>
hahaha
<ddd>
yeah
<devians>
ddd, i really dont find it tough at all. I find that my skillset is so head and shoulders above the rest that people talk to me and go 'thank fucking christ, someone competent. hire him'
<mkevin>
is ruby a good choice to use for static websites or is it best for dynamic or is it good for just about anything?
<ddd>
devians: :shrug: i must be really shit then. because that sure doesn't happen around here
<devians>
but perhaps thats more indicative of my local area
<nobitanobi>
ddd, where u from?
<ddd>
kentucky
<devians>
that or your competition is better
<nobitanobi>
california here
<nobitanobi>
well, originally from Barcelona. I'm an immigrant
stevenhaddox has quit [Quit: Zzzz]
<ddd>
devians: possibly. still implies that i'm shit if my competition is better than I am.
<ddd>
you're either capable of doing the job or not. i know plenty capable of doing the job. getting folks out there to notice (advertising, word of mouth, access to job boards, etc) isn't easy peasy
<ddd>
especially when they have 20 or 30 applying or bidding for the same job
brunops has quit [Ping timeout: 246 seconds]
davy has quit [Quit: Leaving...]
<mkevin>
i have found that its easiest to find work when you are a salesman first. this means phone calls. lots and lots of phone calls.
<ddd>
most of what i've gotten, as i said earlier, comes from word of mouth. other competent coders that I know (some are well known in the community, others not as much) looked at my work (sometimes without me knowing) and pointed someone my way.
<nobitanobi>
word of mouth is the way to go.
<nobitanobi>
yup.
<ddd>
mkevin: yeah i'm not a salesman.
<mkevin>
this is the same issue in most industries
s2013 has joined #ruby
sayan has joined #ruby
<ddd>
i should say that as i'm not good at sales. i like the coding more than i do selling, including myself hehe
<ddd>
which as you point out works against me
<devians>
yeah, I dont bother with job boards or anything like that. I have a strong network of both clients and fellow freelancers who refer me work. I have strong relationships with a few recruiters that push things my way, and I slowly grow that network via functions (standard networking) and working via things like twitter.
<mkevin>
i avoided twitter but signed on a couple weeks ago.
<ddd>
devians: yeah you've found a workflow that works for you. i'm still struggling with that. I got out of the Army, reinvented myself as a coder, and am still working out the 'i need to do this and this to eat'
<ddd>
it will come, as i figure it out. just a learning curve i guess
<devians>
ddd, if you wanted to double your work, I would go on twitter and make a list of all the people in your area on there that freelance in industries similar or complementary to you. Ie if you do rails, find ui/ux consultants. Talk to and make friends with all these people and basically make yourself visible and useful. you can turn those relationships into quite a lot of referral work
<mkevin>
that is the same sales technique i used in another industry
<ddd>
not sure if i could use twitter. i use twitter for political action. politics and work don't usually go hand in hand
<nobitanobi>
see u guys later! nice conversation going on here. mkevin Ruby is an awesome language, but its community is even more awesome
Megtastique has joined #ruby
<nobitanobi>
stick with it, you will have fun
<ddd>
80% of who i follow (and that follow me) are politically related. like House of Representatives, Senators, etc
<ddd>
i could scrap all that, but the twitter history would remain. would probably fry me for work coming off twitter :)
<fsck3r>
Hi
<devians>
ddd, make another account then.
<ddd>
good point
mlpinit_ has joined #ruby
<mkevin>
any of you use wordpress?
kofno has quit [Ping timeout: 246 seconds]
ner0x has quit [Quit: Leaving]
<ddd>
i do for a political blog, but i don't dive into the code
<ddd>
strictly a user, there
phipes has quit [Remote host closed the connection]
<devians>
never look at the wordpress code, your eyes will melt
<ddd>
hehe
kofno has joined #ruby
CyberFlames has quit [Quit: Lost terminal]
lukec has quit [Quit: lukec]
mlpinit has quit [Ping timeout: 250 seconds]
dhruvasa1ar has joined #ruby
bluOxigen has joined #ruby
shedd has joined #ruby
mlpinit_ has quit [Ping timeout: 260 seconds]
dhruvasagar has quit [Ping timeout: 240 seconds]
aclearman037 has joined #ruby
r0bby_ has quit [Excess Flood]
shedd has quit [Ping timeout: 260 seconds]
r0bby_ has joined #ruby
phipes has joined #ruby
brunops has joined #ruby
nhhagen has joined #ruby
IceDragon has quit [Quit: Space~~~]
s2013_ has joined #ruby
s2013 has quit [Ping timeout: 246 seconds]
<lagweezle>
Reading scroll back from when I was nommiing food.
<lagweezle>
devians: That airplane thing sounds quite neat!
kofno has quit [Ping timeout: 252 seconds]
<devians>
yeah, its quite an interesting problem to model
kofno has joined #ruby
<devians>
seats have data, seats belong in rows, rows belong in zones, zones belong to an aircraft. given an aircraft, give me the bell state of all selected seats :)
aclearman037 has quit []
nhhagen has quit [Ping timeout: 252 seconds]
Barrin6 has joined #ruby
eka has joined #ruby
aclearman037 has joined #ruby
angusigu1ss has joined #ruby
phipes has quit [Remote host closed the connection]
hogeo has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
falood has joined #ruby
brunops has quit [Changing host]
brunops has joined #ruby
jacobsmith has quit [Ping timeout: 246 seconds]
jeffdb has joined #ruby
eka has quit [Ping timeout: 260 seconds]
kofno has quit [Ping timeout: 240 seconds]
phipes has joined #ruby
kofno has joined #ruby
angusigu1ss has quit [Ping timeout: 246 seconds]
nisstyre has joined #ruby
_jesse__ has quit [Ping timeout: 252 seconds]
havenwood has joined #ruby
ner0x has joined #ruby
brunops has quit [Quit: leaving]
aclearman037 has quit []
Megtastique has quit []
kofno has quit [Ping timeout: 260 seconds]
codeFiend has quit [Quit: codeFiend]
kofno has joined #ruby
Arzaga has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
havenwood has joined #ruby
dhruvasa1ar has quit [Ping timeout: 246 seconds]
rjhunter has joined #ruby
shedd has joined #ruby
HawkTracker has joined #ruby
havenwood has quit [Ping timeout: 260 seconds]
mmcdaris has quit [Quit: mmcdaris]
<HawkTracker>
hello I trying to work with net ssh and I am getting a regex error when loading a config file for ssh.
<mr`spock>
you need to know how to make sure you're calling what you need to return what you need and feed what you need into each argument. does Net::SSH.start accept whatever the netssh load returns?
kitak_ has quit [Remote host closed the connection]
shedd has quit [Ping timeout: 246 seconds]
michaeldeol has joined #ruby
<mr`spock>
some more research into the code and documentation (and hopefully examples) can show you how to do what you're trying to accomplish
<HawkTracker>
i would, be there is literally zero examples of people using this
nhhagen has joined #ruby
<mr`spock>
.start may interpret what you're trying to do and call .load internally. i don't know.
<HawkTracker>
my first google search was ruby net ssh config examples
<HawkTracker>
second *
<nobitanobi>
gnight folks
nobitanobi has quit [Quit: Leaving]
<bnagy>
night
hamakn has quit [Ping timeout: 250 seconds]
nari has joined #ruby
nhhagen has quit [Ping timeout: 246 seconds]
rhunter has joined #ruby
<devians>
hey guys, i'm having a lot of problems with bundler. could someone please clue me in? when I change things around, change gems or sources or version etc, it seems like the 'old' version persists, i get a lot of errors around wrong paths etc. the only way around it seems to be to completely blow away my entire ruby version in rvm and rebuild from scratch.
CaptainJet has quit []
kofno has quit [Ping timeout: 246 seconds]
kofno has joined #ruby
fijimunkii has quit [Ping timeout: 246 seconds]
<bnagy>
you could try a simpler version manager
<bnagy>
and if rails is involved you could ask over there - ror people seem to use bundler a lot more than vanilla ruby
<devians>
nah, its a rack app. gollum to be precise
<rhunter>
devians, bundler only really controls which versions are loaded at runtime. Make sure you "bundle exec" anything that cares about which version of a gem is used
<devians>
sorry, my stack is rack + passenger + nginx
<devians>
i'm not execing anything myself, its all through config.ru
<mr`spock>
devians, another suggestion: check which gemset you're using, and possibly consider making another gemset for testing?
<devians>
the problem is that I'm in dev, i'm mucking around with things constantly, and every time I change something I have to bugger about endlessly fighting whatever cache bundler has going
<mr`spock>
devians, `rvm current` should show you your current ruby version, and `rvm gemset list` should show you your available gemsets
<mr`spock>
devians, generally it's not a pain at all if you have a gemset for each project, as a developer
jonahR has joined #ruby
Parker0 has joined #ruby
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mr`spock>
i've never had a problem with gems or versions with multiple projects because each set of gems is isolated from the others
<rhunter>
devians, make sure config.ru loads the bundle as soon as it can
<devians>
i'm installing using bundle install --deployment mr`spock does that change much?
larissa has quit [Quit: Leaving]
<mr`spock>
devians, yes, because i believe in that case it installs the gems in a shared location inside your rails app.
<devians>
vendor/bundle yes
<rhunter>
--deployment includes "no shared gems" and "path", so it should be as isolated as a gemset
<mr`spock>
(sorry, i know you said it's not rails)
<devians>
what I dont get, right, is that if I rm -rf vendor, and bundle install again, i still get 'ghosts'
<rhunter>
decians, what misbehaviour do you see to observe these ghosts?
<mr`spock>
do you know if `bundle exec` will prioritize the gems isnide vendor/bundle over system gems?
<devians>
rhunter basically, 'cannot find file at $path' errors, where $path is some old version of a gem
<rhunter>
mr`spock - more than prioritise, --disable-shared-gems should make the system gems unavailable
<rhunter>
devians, and that's raised from a "require"?
<rhunter>
devians, Is that Passenger? Does it have leftover interpreters running from before the change?
kasperg has quit [Remote host closed the connection]
<devians>
hrm. perhaps thats it. I'm restarting nginx, I would assume that would be enough to sort out lagging passenger processes
<rhunter>
that's a reasonable assumption
fragmachine has joined #ruby
<devians>
like I said, the only thing that seems to 100% sort it, is blowing away the entire ruby install :/
jeffdb has quit [Quit: jeffdb]
ddd has quit [Read error: No route to host]
jeffdb has joined #ruby
<mr`spock>
devians, does `gem env` show you ruby version && path you expect?
rh1n0 has quit [Quit: Leaving...]
<rhunter>
it might help tracing the problem to log the value of $" and $: at various times (pre/post bundler.setup, in a request...)
Nilium has quit [Ping timeout: 272 seconds]
havenwood has joined #ruby
<devians>
mr`spock i'm not entirely sure how i'd run 'gem env' in the right context
<rhunter>
I'm on my phone so I can't conveniently spell out the long, actually-readable names for $" and $:
<mr`spock>
i see
<mr`spock>
welp i'm no help. sorry and good luck
kitak has quit [Remote host closed the connection]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rjhunter has joined #ruby
kitak has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
kitak has quit [Read error: Connection reset by peer]
kitak has joined #ruby
kofno has joined #ruby
<lagweezle>
Actually, realized I've got a good question for folks
<rhunter>
?
phipes has quit [Remote host closed the connection]
<rhunter>
The answer is "cheese"
<lagweezle>
Capistrano seems to be "the" choice for deploying things. Any pointers as to what I should be looking at in specific for using it to deploy to a mac mini?
<bnagy>
ooh! cheese! Good plan.
<lagweezle>
Brie ... I need more brie.
havenwood has quit [Ping timeout: 260 seconds]
maroloccio has joined #ruby
<rhunter>
lagweezle, Capistrano is certainly a popular choice for Ruby apps - it's definitely not the only option
rickruby has quit [Quit: Connection closed for inactivity]
<lagweezle>
Aye.
Nilium has joined #ruby
<rhunter>
it's certainly the most popular "in its class"
rjhunter has quit [Ping timeout: 260 seconds]
<mr`spock>
on that topic, can you guys suggest something better than capistrano? i'm deploying a rails 4 app right now and capistrano's documentation SUCKS
<lagweezle>
mmhmm
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<lagweezle>
I'm all up for pointers to alternatives, as well.
hoyang has joined #ruby
hoyang has quit [Max SendQ exceeded]
<rhunter>
Capistrano 3 is very different to Capistrano 2
<mr`spock>
yeah, and the documentation for 3 is garbage, and most of the complicated issues are documented in 2
rrichards has joined #ruby
fragmachine has quit [Remote host closed the connection]
<mr`spock>
any recommendations on what to do? cap 3 doesn't feel it belongs in the ranks of the other great gems
<rhunter>
The major alternatives are not different programs doing the same thing, but entirely different approaches
<rhunter>
notably artifact-oriented pipelines
<rhunter>
Deploying machines/packages/containers
<mr`spock>
i need to pull production branch of my repo to my debian machine and run several commands afterward.
<mr`spock>
using chef to prep server
mkevin has left #ruby [#ruby]
<mr`spock>
(already using chef. already got cap going but wouldn't mind looking at alternatives)
hoyang has joined #ruby
ewnd9 has quit [Read error: Connection reset by peer]
<rhunter>
mr`spock, packaging the app as a Debian package (with postinst script) at build time
rrichards has quit [Client Quit]
<mr`spock>
and updates would be packaged, with postinit script, and installed as a new package?
<lagweezle>
interesting
<mr`spock>
installed as an update to existing package*?
<mr`spock>
i don't like the dependency it places on the packaging system of the host
<rhunter>
in these days of reproducible builds and "cattle not pets" servers, updates are often fresh installs to a new machine
<bnagy>
ansible?
<mr`spock>
got it. yeah, that would be reasonable, sort of.
<mr`spock>
it would certainly work fine with our openstack setup
rjhunter has joined #ruby
<mr`spock>
haproxy accepts a reload command and reloads the config without interruption, so it won't hurt to go to a new batch of servers upon successful update. sounds painful for frequent updates.
rhunter_ has joined #ruby
<mr`spock>
rhunter, thanks for the "cattles not pets", that's funny :)
jamesaanderson has joined #ruby
<rhunter_>
i can't take the credit for inventing it, but I like the metaphor
<lagweezle>
Aye! That is a great one.
<lagweezle>
Sadly, I'm in the pets not cattle scenario... :(
kofno has quit [Ping timeout: 260 seconds]
browndawg has joined #ruby
kofno has joined #ruby
maroloccio has quit [Ping timeout: 240 seconds]
pnbeast has quit [Quit: leaving]
havenwood has joined #ruby
<rhunter_>
all the cloud services around make it much easier to start with cattle now
<rhunter_>
probably a spiel for another time
rhunter has quit [Ping timeout: 260 seconds]
<lagweezle>
This is a personal toy, but I should look into 'em.
<lagweezle>
Wonder if I can get an AWS system to run tmux and irssi and a bot and whatever from for free or super low ...
<rhunter_>
but if you haven't checked out how easy it is to provision a new machine or two, do something to it, and shut it down -- do yourself a favour and check out one of the fancy demos
sayan has quit [Ping timeout: 240 seconds]
<rhunter_>
docker is changing things even further
<mr`spock>
rhunter_, yeah, i love it. unfortunately i can't provision with my esxi machine, so i have to use paid cloud providers.
<rhunter_>
I was involved in a programme of work where the "new server" requests were provisioned by raising a support ticket and eventually getting the VMWare ESX rights and all that.
yfeldblum has joined #ruby
<rhunter_>
A concerted effort got the time between "let's make a service" and "it's in production" from about two weeks to under an hour
<rhunter_>
which was pretty handy given the architecture involved *lots* of new services
michaeldeol has quit [Remote host closed the connection]
<rhunter_>
anyway
<rhunter_>
we were talking about capistrano
kofno has quit [Ping timeout: 252 seconds]
<mr`spock>
, and replacing it with the possibility of making system packages
<rhunter_>
if you have the use-case it was designed for, capistrano works quite well indeed
<rhunter_>
with cap3, the use case is deliberately narrower
kofno has joined #ruby
michaeldeol has joined #ruby
shanlar- has joined #ruby
<rhunter_>
the maintainer is aware that artifact-based deployments (especially containers) are The Future for the most part
<mr`spock>
well, provisioning new servers isn't awful, if we find the proper openstack provider. but doing a git pull and restarting a couple services doesn't seem unreasonable for minor updates
<rhunter_>
and is trying to trim down Capistrano to as simple as possible for just that narrow set of cases
shanlar has quit [Ping timeout: 240 seconds]
postmodern has quit [Quit: Leaving]
<mr`spock>
so then i think i feel comfortable moving forward with capistrano, knowing i'll come across a better method later in which suites me best
rippa has joined #ruby
codeFiend has joined #ruby
<rhunter_>
mr`spock: the capistrano mailing list is pretty helpful if you run into something that doesn't seem to make sense
<rhunter_>
but a big motivation for cap3 has been to simplify and shrink
michaeldeol has quit [Ping timeout: 260 seconds]
jeffdb has quit [Quit: jeffdb]
<rhunter_>
if you're trying to do (insert crazy complex thing), then capistrano may not be the best tool for your situation
<mr`spock>
seemed to be a good idea. it works well for what i'm doing and it seems straightforward. it's just _very poorly_ documented and leaves lots of holes and questions.
<mr`spock>
i had to do a lot of deploys just to find out how it works
shedd has joined #ruby
<mr`spock>
thanks for all your info
stabby_lambda has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 246 seconds]
<rhunter_>
:-)
yfeldblum has quit [Remote host closed the connection]
kofno has joined #ruby
yfeldblum has joined #ruby
zcreative has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
nhhagen has joined #ruby
kitak has quit [Remote host closed the connection]
kitak has joined #ruby
phipes has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
kitak has quit [Ping timeout: 245 seconds]
<lagweezle>
aye! thank yo uas well!
ddd has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Catie has quit [Ping timeout: 250 seconds]
aryaching has joined #ruby
petey has quit [Remote host closed the connection]
kofno has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
maroloccio has joined #ruby
arietis has joined #ruby
lfox has quit [Quit: ZZZzzz…]
mmcdaris has quit [Quit: mmcdaris]
michaeldeol has joined #ruby
ewnd9 has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
michaeldeol has quit [Read error: Connection reset by peer]
deol has joined #ruby
Jaclyn has quit [Quit: Lost terminal]
HawkTracker has quit [Ping timeout: 252 seconds]
zipper has joined #ruby
charliesome has joined #ruby
Guest63888 has joined #ruby
jkhwan has joined #ruby
Guest63888 is now known as stickybuds
hogeo has quit [Remote host closed the connection]
deol has quit [Ping timeout: 246 seconds]
kofno has quit [Ping timeout: 246 seconds]
stickybuds has quit [Quit: Leaving]
mmcdaris has joined #ruby
jkhwan has quit [Remote host closed the connection]
kofno has joined #ruby
jkhwan has joined #ruby
shedd has joined #ruby
jamesaanderson has joined #ruby
nifty has quit [Ping timeout: 252 seconds]
hogeo has joined #ruby
Tearan has joined #ruby
dhruvasagar has quit [Ping timeout: 250 seconds]
shedd has quit [Ping timeout: 246 seconds]
jkhwan has quit [Ping timeout: 272 seconds]
jeffdb has joined #ruby
jeffdb has quit [Client Quit]
kitak has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
jeffdb has joined #ruby
kitak has quit [Ping timeout: 245 seconds]
jeffdb has quit [Client Quit]
Azure has quit [Quit: My MBP went to sleep.]
jgrevich has quit [Quit: jgrevich]
jeffdb has joined #ruby
kofno has quit [Ping timeout: 240 seconds]
kofno has joined #ruby
royalty has quit [Remote host closed the connection]
jonahR has quit [Quit: jonahR]
Rollabunna has joined #ruby
jeffdb has quit [Client Quit]
fmoli has quit [Ping timeout: 260 seconds]
Rollabunna has quit [Remote host closed the connection]
arietis has joined #ruby
jeffdb has joined #ruby
jeffdb has quit [Client Quit]
kofno has quit [Ping timeout: 246 seconds]
enape_101 has quit [Ping timeout: 260 seconds]
kofno has joined #ruby
karupanerura has quit [Ping timeout: 256 seconds]
Sawbones has quit [Remote host closed the connection]
zz_karupanerura has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
zz_karupanerura is now known as karupanerura
thelorax123 has quit [Remote host closed the connection]
closer has quit [Ping timeout: 256 seconds]
stabby_lambda has joined #ruby
thelorax123 has joined #ruby
jeffdb has joined #ruby
closer has joined #ruby
jeffdb has quit [Client Quit]
stabby_lambda has quit [Ping timeout: 246 seconds]
kofno has quit [Ping timeout: 250 seconds]
shedd has joined #ruby
kofno has joined #ruby
gianlucadv has joined #ruby
nifty has joined #ruby
nhhagen has joined #ruby
shedd has quit [Ping timeout: 250 seconds]
Tearan has quit [Quit: Sleepy Badger....]
thesheff17 has quit [Ping timeout: 246 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
kitak has joined #ruby
hogeo has quit [Remote host closed the connection]
shime has joined #ruby
aryaching_ has joined #ruby
kitak has quit [Remote host closed the connection]
HawkTracker has joined #ruby
hogeo has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
phansch_ has joined #ruby
tacos1de has joined #ruby
rushed has joined #ruby
aryaching has quit [Ping timeout: 246 seconds]
lyanchih has joined #ruby
phansch has quit [Ping timeout: 260 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
Nanuq has quit [Ping timeout: 245 seconds]
phansch_ has quit [Quit: Leaving]
kofno has quit [Ping timeout: 246 seconds]
phansch has joined #ruby
kofno has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
hiall has joined #ruby
Tearan has joined #ruby
Tearan has quit [Client Quit]
<devians>
hey guys, I have a rack app and i'd like to override a view in a gem. can I include my own from somewhere and extend the original?
michaeldeol has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Tearan has joined #ruby
Tearan has quit [Client Quit]
rushed has quit [Quit: rushed]
<rhunter_>
devians: can you explain that in different words? (maybe a concrete example)
<devians>
rhunter_ well, i'm hacking on a gollum wiki. the gollum gem has Precious::Views::Layout, and i would like to extend that class and add a few methods, without cracking open the gem and changing it
browndawg has quit [Quit: Leaving.]
<rhunter_>
"monkey patches" in your own code are the common solution for that kind of thing
michaeldeol has quit [Ping timeout: 240 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
hogeo has quit [Remote host closed the connection]
Nanuq has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
<devians>
rhunter_ how would I go about that?
Tearan has joined #ruby
Tearan has quit [Client Quit]
cantonic has joined #ruby
kofno has joined #ruby
<rhunter_>
devians: just put some code that looks something like `class Precious::Views::Layout ; def my_new_method_wow ; end ; end` in a file that gets required
Tearan has joined #ruby
Tearan has quit [Client Quit]
<Lewix>
rhunter_: Are you in ruby-lang?
phipes has quit [Remote host closed the connection]
arietis has quit [Quit: Computer has gone to sleep.]
Tearan has quit [Client Quit]
<yottanami>
Is it possible ?
Tearan has joined #ruby
Tearan has quit [Client Quit]
kofno has quit [Ping timeout: 252 seconds]
shime has quit [Ping timeout: 240 seconds]
Tearan has joined #ruby
Tearan has quit [Client Quit]
kofno has joined #ruby
arietis has joined #ruby
<lagweezle>
Fire up irb and see if it works?
<Lewix>
yottanami: do you prefer dpaste over gist
<lagweezle>
Although something looks weird...
<lagweezle>
Why are you building a dictionary with a dictionary to pass to a method?
Tearan has joined #ruby
Tearan has quit [Client Quit]
<yottanami>
Lewix: It is an old bad habit :D When I wan Django developer
<rhunter_>
yottanami: it's not directly possible (literal hashes can't have conditional items) but you can choose a style that works
Tearan has joined #ruby
Tearan has quit [Client Quit]
<yottanami>
rhunter_: What kind of style you mean ?
<lagweezle>
g'night folks :) Thank you once again for feeding my brain! :)
<rhunter_>
sorry, "you can choose a style that achieves your goal in a visually-consistent way"
Tearan has joined #ruby
<rhunter_>
eg, you can start with an empty array build it with statements (since the statements can have conditions)
Tearan has quit [Client Quit]
<rhunter_>
you can pass through the password whether or not it's present in the source
Tearan has joined #ruby
Tearan has quit [Client Quit]
<rhunter_>
you can map from one dict to another with a block
<rhunter_>
you can just pass the whole thing all the way through without modifying it
Tearan has joined #ruby
Tearan has quit [Client Quit]
<rhunter_>
I don't know if any of those fit your purpose, but you could look at them and see if they look good to you
Tearan has joined #ruby
Tearan has quit [Client Quit]
tkuchiki has quit [Ping timeout: 240 seconds]
<yottanami>
rhunter_: Which code style is your suggestion for this job ?
<yottanami>
can you show me with sample code ?
<rhunter_>
"just pass the whole thing without modifying it"
kofno has quit [Ping timeout: 246 seconds]
<rhunter_>
user_fields = params
kofno has joined #ruby
<yottanami>
rhunter_: And what about password condition ?
predator217 has quit [Ping timeout: 252 seconds]
<rhunter_>
although if @user is an ActiveRecord object and params is untrusted data from, say, a Rails controller, this might introduce a security risk
dseitz has joined #ruby
thelorax123 has quit [Remote host closed the connection]
hiall has joined #ruby
<rhunter_>
there is no password condition, really -- if the input hash doesn't have a key, neither will the output hash
vikhyat has quit [Remote host closed the connection]
hogeo has joined #ruby
<yottanami>
rhunter_: So How can I update user's password in secure way?
tkuchiki has joined #ruby
predator117 has joined #ruby
mary5030 has quit [Remote host closed the connection]
hogeo has quit [Remote host closed the connection]
fntzr has quit [Client Quit]
spergy has joined #ruby
amacgregor_ has quit [Ping timeout: 246 seconds]
zipper has quit [Read error: Connection reset by peer]
Es0teric has joined #ruby
Es0teric has quit [Client Quit]
kofno has quit [Ping timeout: 246 seconds]
eka has joined #ruby
hiall has joined #ruby
Es0teric has joined #ruby
kofno has joined #ruby
Es0teric has quit [Client Quit]
Emmanuel_Chanel has joined #ruby
kitak has joined #ruby
wildroman2 has joined #ruby
eka has quit [Ping timeout: 246 seconds]
<TTilus>
also check activerecord protected arguments
psyl0n has joined #ruby
wallerdev has quit [Quit: wallerdev]
michaeldeol has joined #ruby
kofno has quit [Ping timeout: 246 seconds]
kofno has joined #ruby
hiall has quit [Quit: hiall]
ner0x has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
synergy_ is now known as sng|afk
hogeo has joined #ruby
hamakn has joined #ruby
hogeo has quit [Remote host closed the connection]
wildroman2 has quit [Remote host closed the connection]
eka has joined #ruby
wildroman2 has joined #ruby
michaeldeol has quit [Ping timeout: 246 seconds]
nisstyre has quit [Quit: Leaving]
spergy has left #ruby [#ruby]
hamakn has quit [Ping timeout: 246 seconds]
LadyRainicorn has joined #ruby
zipper has joined #ruby
wildroman2 has quit [Ping timeout: 246 seconds]
iliketur_ has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
shedd has joined #ruby
zarul has joined #ruby
banister has joined #ruby
claymore has joined #ruby
Hanmac1 has joined #ruby
shedd has quit [Ping timeout: 252 seconds]
relix has joined #ruby
jonahR has joined #ruby
akonny has joined #ruby
Hanmac has quit [Ping timeout: 246 seconds]
Hanmac has joined #ruby
noop has joined #ruby
Hanmac1 has quit [Ping timeout: 250 seconds]
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
Hanmac1 has joined #ruby
kofno has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
kofno has joined #ruby
mengu has joined #ruby
stabby_lambda has joined #ruby
mengu has quit [Remote host closed the connection]
lyanchih has quit [Quit: lyanchih]
Hanmac has quit [Ping timeout: 246 seconds]
arietis has joined #ruby
mengu has joined #ruby
mengu has quit [Changing host]
mengu has joined #ruby
mengu has quit [Remote host closed the connection]
wildroman2 has joined #ruby
klaut has joined #ruby
thelorax123 has quit [Remote host closed the connection]
Astralum has joined #ruby
emergion has joined #ruby
nhhagen has quit [Remote host closed the connection]
<emergion>
Heya, What happens when instance variable name is same as method name?
nhhagen has joined #ruby
DanBoy has quit [Remote host closed the connection]
<emergion>
Heya, What happens when instance variable name is same as method name?
thelorax123 has joined #ruby
nhhagen_ has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
wildroman2 has quit [Remote host closed the connection]
stabby_lambda has quit [Ping timeout: 246 seconds]
<TTilus>
then you have ivar and method wit the same name
<LadyRainicorn>
Nothing.
sng|afk is now known as synergy_
<LadyRainicorn>
(But this is confusing and should be avoided)
<emergion>
How would you access the instance variable though, you would have to use instance_variable_get right ?
<TTilus>
iver id @name and method id name
nhhagen has quit [Ping timeout: 252 seconds]
mbreedlove has joined #ruby
end_guy has quit [Remote host closed the connection]
<TTilus>
s/id/is/g
<emergion>
Totally agreed, just working on someone's code though, really don't want to have to change to much. I think if I define a setter method I should be out of the woods
<emergion>
*too much
<LadyRainicorn>
No, @var works.
nifty has quit [Ping timeout: 252 seconds]
<LadyRainicorn>
It's just that var != @var
<emergion>
LadyRainicorn, but how do you access it from outside the class ?
<emergion>
It would clash with the method name right ?
j2sentient has quit [Ping timeout: 252 seconds]
<LadyRainicorn>
Defining a setter method would be *really* confusing, because if you do obj.var = 5, obj.var isn't 5
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<LadyRainicorn>
obj.instance_variable_get(:@var)
<LadyRainicorn>
You really, really do not want to have an attribute-like-thing with the same name as an instance variable that's not linkwd to it.
iliketur_ has quit [Quit: zzzzz…..]
<emergion>
LadyRainicorn, even though it is confusing, I don't agree that it doesn't work. I just tested it. var and var= are different things
Monie has joined #ruby
<LadyRainicorn>
Yep.
<LadyRainicorn>
said
<LadyRainicorn>
Tjat's what I saif.
Monie has quit [Max SendQ exceeded]
<LadyRainicorn>
obj.var = 5 doesn't set obj.var to 5.
<emergion>
LadyRainicorn, oh yes, sorry I just re-read it ;)
<LadyRainicorn>
That makes no sense whatsoever.
<emergion>
God damn stupid other code
Monie has joined #ruby
<emergion>
Ok, refactor it is, thank you
<Hanmac1>
emergion: for sample in one of my classes i have an @data variable wich is an Array, but obj.data and obj.data= works with Strings
kofno has quit [Ping timeout: 260 seconds]
Hanmac1 is now known as Hanmac
kofno has joined #ruby
hogeo has joined #ruby
<Reach>
i think the hardest programming assignment i had to do was to simulate a data structure for polynomials
<Reach>
so you could add/multiply them and other such things
<LadyRainicorn>
That's not very hard really.
<Reach>
it was...
<Reach>
took a couple of days
<LadyRainicorn>
Err... in Ruby?
carraroj has joined #ruby
<Reach>
supposed to do it for n variables, i only did 3 unless you want more for loops
<Reach>
maple actually
<Reach>
i want to try it in ruby
<LadyRainicorn>
I have no experience with maple, but if that is really an optimal solution it is a fucked up language.
<shevy>
I do not have a hash and it would be insane to build one with several thousand case/when entries TTilus
<TTilus>
solved
<shevy>
not solved
<TTilus>
care to explain what you are doing?
Sawbones has joined #ruby
<shevy>
Sure. I want to be able to autocomplete on all options that can be presentable to a user based on case/when menus for every kind of shell or shell-like environment in any project.
dseitz has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
kofno has quit [Ping timeout: 250 seconds]
nhhagen has quit [Ping timeout: 252 seconds]
<shevy>
All entries in case/when menus have a main entry point (the first one usually in the way I write it), and several subcommands/aliases to them.
kofno has joined #ruby
<TTilus>
you need to shave down your scope abit
<shevy>
Readline tab completion is great because it can save a lot of typing time.
<shevy>
why
bluOxigen has quit [Ping timeout: 246 seconds]
<shevy>
MrZYX I'll have a look, thanks
<TTilus>
you magical autocompletion is supposed to read the program source and find out how the user inpot could possibly be complete?
<TTilus>
input ... be completed
mjs2600 has joined #ruby
hogeo has joined #ruby
fijimunkii has joined #ruby
<TTilus>
if your library interface includes reading program source (and the lib is not a dev tool) odds are that you are doing it wrong
lkba has joined #ruby
<MrZYX>
TTilus: it probably won't work anyway, but let him make his own experiences ;)
shedd has joined #ruby
jbpros has joined #ruby
mengu has quit []
Jetchisel has left #ruby ["Unfortunately time is always against us -- *Morpheus*"]
<TTilus>
how about startin with one popular menu lib and building a completion addon/plugin for that and then extending from there to support more menu/shell libs?
zodiak has quit [Read error: Operation timed out]
Sawbones has quit [Remote host closed the connection]
j2sentient has quit [Ping timeout: 246 seconds]
kofno has quit [Ping timeout: 246 seconds]
<TTilus>
MrZYX: well ill at least state the obvious once and give shevy the possibility to take the advice, hes a nice guy
mercwithamouth has quit [Ping timeout: 246 seconds]
almarshall has quit [Quit: almarshall]
shedd has quit [Ping timeout: 250 seconds]
BizarreCake has joined #ruby
dkamioka has quit [Remote host closed the connection]
<matti>
shevy: Depends. I had sushi yesterday and it was nice.
<matti>
shevy: London has it all.
preller has joined #ruby
preller has quit [Changing host]
preller has joined #ruby
<shevy>
except for donking donuts, those things were awesome when I was in London. since that day I regard all donuts here with contempt (they also are awful compared to those in London)
<matti>
;s
lfox has joined #ruby
b00stfr3ak has joined #ruby
<matti>
You need to try donuts in Poland or non-American style ones.
<PPH>
matti, no in fact I have like 3 methods calling the same method at the begining, I was wondering if there was a way to make it more DRY
gyre007 has joined #ruby
<matti>
PPH: Maybe there is :) Hard to say not know what you want to do ;p
<PPH>
matti, aight I understand
<Hanmac>
matti this week there was a documentation about someone that ONLY eats RAW meat from sheep and goats ... he does not eat any Veggies or fruits ... and he says he only manage to do that because he eats everything from the sheep and goats
zipper has quit [Ping timeout: 252 seconds]
veduardo has left #ruby [#ruby]
<havenwood>
Hanmac: i saw that, yeah he's fine with his food being vegetarians
pzula has joined #ruby
shedd has joined #ruby
browndawg has quit [Quit: Leaving.]
lowski is now known as lowski_away
gyre007 has quit [Ping timeout: 260 seconds]
ambushsabre has joined #ruby
shedd has quit [Ping timeout: 246 seconds]
dkamioka has quit [Remote host closed the connection]
gyre007 has joined #ruby
dkamioka has joined #ruby
nari has quit [Ping timeout: 252 seconds]
mgorbach has joined #ruby
mgorbach has quit [Remote host closed the connection]
nhhagen has joined #ruby
dkamioka has quit [Ping timeout: 250 seconds]
spider-mario has quit [Read error: Connection reset by peer]
phansch has quit [Quit: Leaving]
tjbiddle has joined #ruby
<MrZYX>
PPH: maybe your three methods want to be a (or their own) class
<PPH>
MrZYX, well I found I needed a new layer of abstarction, now everything seems ok
nhhagen has quit [Ping timeout: 252 seconds]
_5kg has joined #ruby
rjhunter has joined #ruby
<PPH>
MrZYX, well that's exactly what you said :P
pyrac has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
almarshall has quit [Quit: almarshall]
pedda has joined #ruby
ambushsabre has joined #ruby
pedda has quit [Max SendQ exceeded]
preller has quit [Ping timeout: 260 seconds]
rjhunter has quit [Ping timeout: 246 seconds]
nettoweb has quit [Read error: Connection reset by peer]
nettoweb has joined #ruby
mjs2600 has quit [Remote host closed the connection]
Lewis has joined #ruby
arefaslani has quit [Ping timeout: 260 seconds]
spyderman4g63 has quit [Read error: No route to host]
ippx has joined #ruby
spyderman4g63 has joined #ruby
arefaslani has joined #ruby
preller has joined #ruby
Lewis has quit [Ping timeout: 246 seconds]
lukec has quit [Quit: lukec]
Sthebig has joined #ruby
pzula has quit [Ping timeout: 260 seconds]
nfk has joined #ruby
coder_neo has quit [Quit: This computer has gone to sleep]
shedd has joined #ruby
nhhagen has joined #ruby
coder_neo has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
pedda has joined #ruby
jamesaanderson has joined #ruby
buscon has joined #ruby
nettoweb has quit [Ping timeout: 246 seconds]
steffes has joined #ruby
shedd has quit [Ping timeout: 246 seconds]
nettoweb has joined #ruby
rushed has quit [Quit: rushed]
petey has quit [Remote host closed the connection]
spyderman4g63 has quit [Ping timeout: 240 seconds]
LL_ has joined #ruby
Arzaga has joined #ruby
matheuscaceres has quit [Ping timeout: 250 seconds]
s2013 has joined #ruby
kitak has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
mojjojo has quit [Quit: mojjojo]
kitak has joined #ruby
ippx has quit [Quit: Leaving.]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkamioka has joined #ruby
enebo has joined #ruby
blandflakes has quit [Quit: Leaving]
St_Marx has quit [Ping timeout: 245 seconds]
michaeldeol has joined #ruby
mojjojo has joined #ruby
bedouin has quit [Quit: Updating details, brb]
cburyta has joined #ruby
cburyta has quit [Client Quit]
blandflakes has joined #ruby
bedouin has joined #ruby
Arzaga has quit [Client Quit]
pyrac has quit [Quit: pyrac]
pyrac has joined #ruby
michaeldeol has quit [Ping timeout: 246 seconds]
nettoweb_ has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
nettoweb_ is now known as nettoweb
cbetta has joined #ruby
maletor has joined #ruby
bentonrr has joined #ruby
matheuscaceres has joined #ruby
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
s2013 has quit [Remote host closed the connection]
wallerdev has joined #ruby
Mon_Ouie has quit [Ping timeout: 246 seconds]
crapple has quit [Max SendQ exceeded]
crapple has joined #ruby
St_Marx has joined #ruby
stabby_lambda has quit [Remote host closed the connection]
mojjojo_ has joined #ruby
mojjojo has quit [Read error: Connection reset by peer]
mojjojo_ is now known as mojjojo
jamesaanderson has joined #ruby
shedd has joined #ruby
angusigu1ss has joined #ruby
obanta has joined #ruby
larissa has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
obanta has left #ruby [#ruby]
mjs2600 has joined #ruby
thesheff17 has joined #ruby
v0n has joined #ruby
CaptainJet has joined #ruby
johnmilton has joined #ruby
shedd has quit [Ping timeout: 250 seconds]
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
nhhagen_ has joined #ruby
nifty has quit [Ping timeout: 246 seconds]
danshult_ has quit [Remote host closed the connection]
Parker0 has joined #ruby
danshultz has joined #ruby
s2013 has joined #ruby
aspires has joined #ruby
f0ster has quit [Ping timeout: 240 seconds]
danshultz has quit [Read error: Connection reset by peer]
danshultz has joined #ruby
nhhagen has quit [Ping timeout: 252 seconds]
wallerdev has quit [Quit: wallerdev]
Catie has joined #ruby
Arzaga has joined #ruby
RoryHughes has joined #ruby
nettoweb has quit [Quit: nettoweb]
Arzaga has quit [Client Quit]
steffes has quit []
TDJACR has quit [Ping timeout: 245 seconds]
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
mary5030 has joined #ruby
Czupa has joined #ruby
danshultz has quit [Read error: Connection reset by peer]
rjhunter has joined #ruby
jacobsmith has joined #ruby
dioms has quit [Quit: Connection closed for inactivity]
TDJACR has joined #ruby
LL_ has left #ruby [#ruby]
colonolGron has quit [Ping timeout: 252 seconds]
v0n has quit [Ping timeout: 260 seconds]
arefaslani has quit [Ping timeout: 250 seconds]
pyrac has quit [Quit: pyrac]
rjhunter has quit [Ping timeout: 250 seconds]
jacobsmith has quit [Ping timeout: 240 seconds]
ua has quit [Ping timeout: 252 seconds]
arefaslani has joined #ruby
f0ster has joined #ruby
j2sentient has joined #ruby
ua has joined #ruby
IceDragon has joined #ruby
buscon has quit [Remote host closed the connection]
colonolGron has joined #ruby
wildroman2 has quit [Remote host closed the connection]
jamesaxl has quit [Read error: Connection reset by peer]
aantix has joined #ruby
brennanMKE has joined #ruby
Parker0 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sailias has joined #ruby
Arzaga has joined #ruby
ambushsabre has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Arzaga has quit [Client Quit]
matheuscaceres has quit [Quit: matheuscaceres]
jamesaxl has joined #ruby
pyrac has joined #ruby
wallerdev has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nifty has joined #ruby
shedd has joined #ruby
jamesaxl has quit [Ping timeout: 246 seconds]
mjs2600 has quit [Remote host closed the connection]
Squarepy has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
ephemerian has joined #ruby
nhhagen has joined #ruby
RoryHughes has quit []
shedd has quit [Ping timeout: 252 seconds]
LiohAu has quit [Quit: LiohAu]
Arzaga has joined #ruby
Catie has quit [Quit: Time to go!]
nhhagen has quit [Ping timeout: 252 seconds]
jamesaxl has joined #ruby
thelorax123 has quit [Remote host closed the connection]
Catie has joined #ruby
freakazoid0223 has quit [Ping timeout: 272 seconds]
fijimunkii has quit [Quit: leaving]
fijimunkii has joined #ruby
michaeldeol has joined #ruby
Sthebig has quit [Ping timeout: 240 seconds]
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
wildroman2 has joined #ruby
MattStratton has joined #ruby
sailias has quit [Ping timeout: 252 seconds]
michaeldeol has quit [Ping timeout: 260 seconds]
noop has joined #ruby
yfeldblum has joined #ruby
redramires1 has joined #ruby
mojjojo has quit [Quit: mojjojo]
sbos99 has joined #ruby
barratt has joined #ruby
<redramires1>
Hi guys .I am new in Ruby.I don't understand yield statement.Can anybody give some explanation or link on it?
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RoryHughes has joined #ruby
dkamioka has quit [Remote host closed the connection]
<Hanmac>
shevy did you read: "The 13½ Lives of Captain Bluebear" ? whould you visit a city named "Esidarap S'loof" ? ;P
Squarepy has quit [Quit: Leaving]
arietis has quit [Quit: Computer has gone to sleep.]
danshultz has quit [Ping timeout: 252 seconds]
shedd has quit [Ping timeout: 260 seconds]
nhhagen has joined #ruby
coca_rails has joined #ruby
decoponio has quit [Quit: Leaving...]
michael_lee has quit [Quit: Ex-Chat]
wongon has joined #ruby
allaire has quit []
freggles has joined #ruby
coder_neo has quit [Quit: Leaving]
arietis has joined #ruby
Sawbones has joined #ruby
r0bby_ has quit [Ping timeout: 250 seconds]
mgorbach has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
pzula has joined #ruby
shedd has joined #ruby
Sawbones has quit [Remote host closed the connection]
race_q_UNY has joined #ruby
mojjojo has joined #ruby
mgorbach has quit [Client Quit]
mikesplain has joined #ruby
mgorbach has joined #ruby
wildroman2 has quit [Remote host closed the connection]
mgorbach has quit [Remote host closed the connection]
preller has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
jamesaanderson has joined #ruby
mgorbach has joined #ruby
sheap has joined #ruby
wildroman2 has joined #ruby
wildroman2 has quit [Remote host closed the connection]
race_q_UNY has quit [Ping timeout: 260 seconds]
enebo has quit [Quit: enebo]
wildroman2 has joined #ruby
codeFiend has quit [Quit: codeFiend]
Lewix has joined #ruby
Lewix has quit [Remote host closed the connection]
Arzaga has joined #ruby
allaire has joined #ruby
nhmood has joined #ruby
Arzaga has quit [Client Quit]
enebo has joined #ruby
<nhmood>
Is there a more concise way of writing this expression: hash[:opt] = something if hash[:opt].nil
<nhmood>
.nil?*
<canton7>
hash[:opt] ||= something
<canton7>
though that'll replace hash[:opt] with 'something' if it's false, as well as nil
RoryHughes has quit []
<nhmood>
Does that expand to hash[:opt] = hash[:opt] || something?
<nhmood>
So that if hash[:opt] is nil, itll take the value of something?
<nhmood>
or false as you mentioned
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
preller has joined #ruby
RoryHughes has joined #ruby
dhruvasagar has quit [Ping timeout: 260 seconds]
<MrZYX>
to be precise it expands to hash[:opt] || hash[:opt] = something, but yes
kaldrenon has joined #ruby
<canton7>
yeah, it doesn't perform the operation has[:opt] = hash[:opt] if it's truthsy, although most of the time that's just an implementation detail
Megtastique has joined #ruby
tirengarfio_ has quit [Remote host closed the connection]
petey has joined #ruby
kaldrenon has quit [Ping timeout: 246 seconds]
eka has joined #ruby
daidoji has quit [Quit: "Coffeeshop"]
Ohga has joined #ruby
petey has quit [Ping timeout: 246 seconds]
p4d4w4n has joined #ruby
<Ohga>
hi. new to making gems. does a script in bin/ work out of the box on windows, and if so why. if not, how to make it work on both win and *nix?
<Xeago>
highly depends on path on windows
<Xeago>
which may or may not include rubygems' path
michaeldeol has joined #ruby
jamesaanderson has joined #ruby
nhhagen has quit [Remote host closed the connection]
nhhagen has joined #ruby
barratt has quit [Quit: Leaving...]
<canton7>
with my default rubyinstaller install, it works fine
barratt has joined #ruby
<Hanmac>
shevy! rwx has more than 100 commits ... yey! and i also commited somethings to the ruby samples
michaeldeol has quit [Ping timeout: 250 seconds]
nettoweb has joined #ruby
enape_101 has joined #ruby
nhhagen has quit [Ping timeout: 246 seconds]
RoryHughes has quit []
heidi has joined #ruby
yfeldblum has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
wallerdev has quit [Quit: wallerdev]
Kricir has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
KillerFox has quit [Ping timeout: 264 seconds]
Hanmac1 has joined #ruby
aantix has quit [Quit: aantix]
d45h has quit [Ping timeout: 246 seconds]
<havenwood>
apeiros: How's vacation going??
yfeldblum has quit [Ping timeout: 240 seconds]
Hanmac has quit [Ping timeout: 240 seconds]
Kabaka has quit [Ping timeout: 250 seconds]
Xeago_ has joined #ruby
p4d4w4n has quit [Quit: This computer has gone to sleep]
<Xeago_>
eval-in_: I got confused by the return stats of =~
brain_shim has joined #ruby
<Xeago_>
should've use #match in irb instead
VTLob has joined #ruby
levin has joined #ruby
maxmanders has joined #ruby
cbetta has joined #ruby
awkisopen has joined #ruby
gadgetoid has joined #ruby
soulcake has joined #ruby
Caius has joined #ruby
m__s has joined #ruby
maxmanders has quit [Changing host]
maxmanders has joined #ruby
<andrewbogott>
apeiros: In the code snippet above, it doesn't. You'll note that I'm outputting the line that I'm trying to match so that I can verify that it's really in there...
pyrac has quit [Quit: pyrac]
levin has quit [Max SendQ exceeded]
ValicekB_ has joined #ruby
rjhunter has quit [Ping timeout: 246 seconds]
Caius has quit [Changing host]
soulcake has joined #ruby
soulcake has quit [Changing host]
Caius has joined #ruby
Sami345 has joined #ruby
<apeiros>
andrewbogott: a regex either matches a string or doesn't
<apeiros>
it doesn't randomly flip
<andrewbogott>
yep
timmow has joined #ruby
<apeiros>
so either your string is not what you claimed it was
mojjojo has joined #ruby
<andrewbogott>
So I must have some mistake elsewhere :(
<apeiros>
or you're making another mistake
pyrac has joined #ruby
<Xeago_>
$ matches \n right?
<andrewbogott>
nothing obviously broken in my code snippet?
levin has joined #ruby
ValicekB_ is now known as ValicekB
<Xeago_>
or just end-of-string?
<Xeago_>
andrewbogott: not really
levin is now known as Guest97087
Mohan has joined #ruby
<apeiros>
Xeago_: no, $ matches before \n
<Xeago_>
andrewbogott: if you can run it, plop a binding.pry in there and just echo the statement
<MrZYX>
HawkTracker: open the docs of net-ssh and check the configuration_for method
<HawkTracker>
ok
r0bby_ has joined #ruby
stabby_lambda has joined #ruby
pushpak has joined #ruby
awkisopen has joined #ruby
maxmanders has joined #ruby
soulcake has joined #ruby
cbetta has joined #ruby
Caius has joined #ruby
gadgetoid has joined #ruby
maxmanders has quit [Changing host]
maxmanders has joined #ruby
michaeldeol has joined #ruby
soulcake has quit [Changing host]
soulcake has joined #ruby
Sami345 has joined #ruby
timmow has joined #ruby
Caius has quit [Changing host]
Caius has joined #ruby
Caius is now known as Guest92191
<HawkTracker>
Net::SSH.start configuration_for('#{$server}','use_ssh_config=true') do |ssh|
<HawkTracker>
?
pzula has quit [Quit: Lost terminal]
jamesaanderson has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pzula has joined #ruby
<MrZYX>
Check where the method is defined, it's the same as for ::start and not Kernel, Object or BasicObject
coca_rails has joined #ruby
closures999 has joined #ruby
<HawkTracker>
i am new to ruby, I don't know what you mean
pyrac has quit [Quit: pyrac]
m__s has joined #ruby
closures999 has quit [Client Quit]
<MrZYX>
with Net:SSH.start you call the method start on Net::SSH
enape_101 has quit [Ping timeout: 246 seconds]
<MrZYX>
configuration_for is defined on the same object
wongon has quit [Quit: wongon]
<MrZYX>
also forget that globals even exist for now ($server)
mikeplenty has joined #ruby
<MrZYX>
don't use them
baroquebobcat has joined #ruby
<HawkTracker>
i need them, as the ssh code I am writing is in a function/def
<MrZYX>
no you don't
end_guy has joined #ruby
<HawkTracker>
really?
<mikeplenty>
Object#kind_of? - what does kind mean here? I'm used to Haskell where a kind indicates whether a type is higher order or not. But Ruby doesn't have anything like higher oder types does it?
<HawkTracker>
i read you do.
<MrZYX>
it most likely should a parameter to your method or class
<MrZYX>
*should be
l0cust has joined #ruby
michaeldeol has quit [Ping timeout: 260 seconds]
<HawkTracker>
ok, ill consider using a param. For now, I would just like to get the ssh bit working
shedd has quit [Remote host closed the connection]
<yxhuvud>
mike: it checks if the object is an instance of the argument, or an instance of a subclass of the argument.
Lewix has quit [Remote host closed the connection]
<MrZYX>
mikeplenty: it's also aliased as is_a?
<HawkTracker>
What should it look like? Can you give me that one line?
<HawkTracker>
Net::SSH.start.configuration_for('#{$server}','use_ssh_config=true') do |ssh|
BraddBitt has joined #ruby
yfeldblum has joined #ruby
pzula has quit [Quit: Lost terminal]
koopa__ has quit [Quit: leaving]
Barrin6 has joined #ruby
l0cust has left #ruby ["Leaving"]
<shevy>
Hanmac great!
<HawkTracker>
this should be that hard. I just need the code to start a ssh session with the host of $server using the default ssh config location
<HawkTracker>
shouldn't*
<HawkTracker>
I have been trying for 2 hours, no one can help.
predator117 has quit [Ping timeout: 246 seconds]
<apeiros>
HawkTracker: no. people did help. what they didn't is write your code for you.
predator117 has joined #ruby
<apeiros>
and yes, if you don't know a language yet, it can take a while to do trivial things.
daidoji has joined #ruby
<HawkTracker>
What does this mean > "with Net:SSH.start you call the method start on Net::SSH" and "configuration_for is defined on the same object"
angusigu1ss has joined #ruby
redramires1 has quit [Read error: No route to host]
yfeldblum has quit [Ping timeout: 250 seconds]
aspires has quit []
petey has joined #ruby
someara1 has left #ruby [#ruby]
aantix has quit [Quit: aantix]
<canton7>
HawkTracker, just had a look at the docs here: http://net-ssh.rubyforge.org/ssh/v2/api/ . Net::SSH.configuration_for(host) returns a hash of configuration options, and Net::SSH.start(host, user, options={}) takes an optional options has as its third param
duggiefresh has joined #ruby
<canton7>
which bit, exactly, are you having trouble with?
duggiefresh is now known as Guest49113
ner0x has quit [Quit: Leaving]
Baluse has joined #ruby
<Baluse>
hello what does this mean ?
<Baluse>
post "order/place", to: "api/orders#create", defaults: defaults
<HawkTracker>
is this close to what it is supposed to look like? >> Net::SSH.start(Net::SSH.configuration_for('#{$server}','use_ssh_config=true')) do |ssh|
pzula has joined #ruby
jamesaanderson has joined #ruby
mengu has joined #ruby
<canton7>
Baluse, It's taking advantage of some of ruby's syntax to write a DSL. It expands to 'post("order/place", {:to => "api/orders#create", :defaults => defaults})
mengu has quit [Changing host]
mengu has joined #ruby
<canton7>
HawkTracker, stop trying to do it all in one line. write a line which loads an 'options' hash using Net::SSH.configuration_for(host), and another which passes that 'options' hash to Net::SSH.start(host, user, options)
<MrZYX>
HawkTracker: also a plain Net:SSH.start('host', 'user') seems to already respect my .ssh/config
pyrac has joined #ruby
<MrZYX>
Baluse: sounds like rails routing stuff, if so and you want to know what it does instead of how it works => #rubyonrails
baroquebobcat_ has joined #ruby
iliketur_ has joined #ruby
valesk has joined #ruby
robbyoconnor has joined #ruby
drumsrgr8forn8 has joined #ruby
drumsrgr8forn8 has quit [Remote host closed the connection]
enape_101 has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
<HawkTracker>
Net::SSH.start('','','options={#{options}}') do |ssh|
<HawkTracker>
am i getting close?
<canton7>
slooowly
baroquebobcat has quit [Read error: Connection reset by peer]
r0bby_ has quit [Excess Flood]
pwh_ has quit [Ping timeout: 246 seconds]
nhhagen has joined #ruby
<HawkTracker>
any hints?
Leighton has joined #ruby
awkisopen has quit [Changing host]
awkisopen has joined #ruby
<MrZYX>
'..' <- this is a string, '#{foo}' == "\#{foo}"
<canton7>
right, now when a method's defined as 'my_method(arg, arg2=something)', that means that arg2 has a default value of 'something'. It means it can either be called as method(param1), or method(param1, param2)
pwh has joined #ruby
<canton7>
it *does not* mean you should call it as method(param1, 'arg2=param2')
<HawkTracker>
ok...
<canton7>
second, string interpolation doesn't occur within single quotes. so '#{foo}' is a literal #{foo},
<canton7>
third, why use string interpolation for '#{$server}' anyway? why not just pass in $server?
RoryHughes has quit []
<canton7>
fourth, why aren't you passing in a host or user to Net::SSH.start ?
<HawkTracker>
i don't know... the code I started with (to learn/practice ruby) always used the syntax of #{var}
baroquebobcat_ has quit [Ping timeout: 260 seconds]
<HawkTracker>
i figured thats how ruby did it
<canton7>
that's for if you've got a string, and you want to stick a variable into that string
allaire has joined #ruby
fijimunkii has joined #ruby
<HawkTracker>
i don't wanna leave a host/user because the ssh config should handle both those. right?
arefaslani has joined #ruby
<canton7>
you do not use #{..} every single time you want to use the variable. *just* if you want to insert it into a string
<HawkTracker>
Net::SSH.start('','','options') do |ssh|
<HawkTracker>
there.
<canton7>
lose the quotes around $server = you want to pass the *value* of the variable $server, not the literal string '$server'
<HawkTracker>
i thought single quotes were ok?
tsykodukl is now known as zz_tsykodukl
<canton7>
and you didn't listen to my first point either
<canton7>
<canton7> right, now when a method's defined as 'my_method(arg, arg2=something)', that means that arg2 has a default value of 'something'. It means it can either be called as method(param1), or method(param1, param2)
<canton7>
<canton7> it *does not* mean you should call it as method(param1, 'arg2=param2')
<canton7>
* pwh (~pwh@18.189.14.113) has joined #ruby
<HawkTracker>
Net::SSH.start('','',options) do |ssh|
<HawkTracker>
there.
<canton7>
no no no
<canton7>
read what I just said
<canton7>
(you're getting better, slowly)
pyrac has quit [Quit: pyrac]
<HawkTracker>
oooo
<apeiros>
I admire your patience, canton7
<HawkTracker>
Net::SSH.start(options) do |ssh|
<HawkTracker>
?
Guest97087 has quit [Remote host closed the connection]
<canton7>
boredom is a terrible thing
Jake232 has joined #ruby
<canton7>
no, when did I say that?
<HawkTracker>
method(param1), or method(param1, param2)
<canton7>
and what are you doing with the second argument for Net::SSH.configuration_for?
g3orge has quit [Quit: WeeChat 0.4.2]
<HawkTracker>
thats what the documentation said to put
<HawkTracker>
for default location of ssh config
<canton7>
<canton7> <canton7> right, now when a method's defined as 'my_method(arg, arg2=something)', that means that arg2 has a default value of 'something'. It means it can either be called as method(param1), or method(param1, param2). it *does not* mean you should call it as method(param1, 'arg2=param2')
<HawkTracker>
or do i just put true
Hanmac1 has joined #ruby
<canton7>
how many times am I going to repeat that?
<canton7>
YES!
<canton7>
finally
brennanMKE has quit []
<HawkTracker>
so do i need the empty single quotes?
<canton7>
yes
tidu12 has joined #ruby
<canton7>
otherwise you're passing the 'config' variable where it's expecting a host