<zenspider>
Bea_: don't ask for permission to ask. just ask.
<baweaver>
Just ask
<baweaver>
ninja'd
wallerdev has quit [Quit: wallerdev]
hedgecore has joined #ruby
<shevy>
damn... the beaver is ninja trained
<Bea_>
Cool, thanks! I've never done this before, so I apologize! So I'm modding a code given to us to try and create a game. Any game we want. I've modded it so that it displays a nice big screen, and creates a character, and moves that character left and right. But I'm not sure how to move it "down" and "up". I'll post the link to the code in a second.
<shevy>
should have written "dam" perhaps again, I forgot :P
<Bea_>
Ah, nuts. I need to grab a couple snippets. Just a moment.
cyrus_mc has quit [Quit: leaving]
<Aeyrix>
baweaver: You should have that as a macro now. ;)
fabrice31 has quit [Ping timeout: 252 seconds]
<baweaver>
Never macro a problem
<baweaver>
I just need to be faster
<baweaver>
Lest I bring further dishonor to my name
<baweaver>
some of that could be used to work with what you have
jack_rabbit has quit [Ping timeout: 244 seconds]
swgillespie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<drocsid>
Aeyrix: Ok, I can do that to make the code more legible. But still looking for issues with my logic, or ways to become a better programmer other than just appearance.
<Aeyrix>
Yeah, I know. That's why I said I'll be quiet after that one. :P
<zenspider>
ok. so it got slower because an existing GEM_PATH made everything concatenate
<RickHull>
it looks like my GEM_PATH is problematic
<zenspider>
`gem list | wc -l ; GEM_HOME=xxx GEM_PATH=xxx gem list | wc -l`
<RickHull>
i was running chruby with user installed rubies and gems
<RickHull>
and then switched to system rubies and gems
<RickHull>
133; 42
uninitialized has joined #ruby
razorgfx has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
commondream has joined #ruby
_ixti_ has quit [Ping timeout: 252 seconds]
zendrix has quit [Ping timeout: 256 seconds]
sharpmachine has joined #ruby
cmisenas has quit [Read error: Connection reset by peer]
_seanc_ has joined #ruby
axsuul has quit [Ping timeout: 265 seconds]
<drocsid>
Avoid using {...} for multi-line blocks.
<drocsid>
what should I use then?
<RickHull>
do .. end
Yzguy has joined #ruby
Peleus has joined #ruby
Rickmasta has joined #ruby
<drocsid>
RickHull: thanks
drewo has joined #ruby
<Peleus>
Hey folks, wondering how I can avoid specific ruby gems being exported into my path
uninitialized has quit [Remote host closed the connection]
<Peleus>
(with rvm)
vdamewood has joined #ruby
<RickHull>
Peleus: you can also try #rvm
cmisenas has joined #ruby
jgt3 has joined #ruby
commondream has quit [Ping timeout: 244 seconds]
sharpmachine has quit [Ping timeout: 265 seconds]
hdev1 has joined #ruby
revoohc has quit [Quit: revoohc]
psmolen has joined #ruby
<zenspider>
drocsid: depends on your viewpoint. I prefer the Weirich Method, which says use {} when you are using a block functionally (ie, you care about the result--like map) and do/end when you're using it procedurally (ie, you don't care about the block result--like each)
yaw has joined #ruby
bruno- has joined #ruby
<zenspider>
that way you can look at a block and immediately know how it is being used and whether you should pay attention to how it evaluates
jgt2 has quit [Ping timeout: 245 seconds]
yaw has left #ruby [#ruby]
<zenspider>
Peleus: exported into your path?
dopie has joined #ruby
surrounder has quit [Ping timeout: 246 seconds]
podman has quit [Quit: Connection closed for inactivity]
zenguy_pc has quit [Excess Flood]
Agoldfish has quit [Ping timeout: 276 seconds]
hahuang65 has quit [Ping timeout: 255 seconds]
<Peleus>
zenspider: It appears to be exported in, but checking out bash_profile it's not explictly stated in there, so I'm not sure how rvm usually does it
war_pigs has joined #ruby
zenguy_pc has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider>
I don't understand your words/problem. sorry.
Hunter1 has quit [Ping timeout: 246 seconds]
bruno- has quit [Ping timeout: 246 seconds]
fujimura has joined #ruby
j4cknewt has quit [Remote host closed the connection]
havenwood has joined #ruby
endash has quit [Quit: endash]
jhooker has joined #ruby
RegulationD has quit [Remote host closed the connection]
<RickHull>
i believe he wants specific gem executables to not show up in his PATH
<RickHull>
zenspider: any thoughts on what my 30-45second problem is, how to fix?
<RickHull>
i think my GEM_PATH is ok; it allows my user to install gems to homedir but also require system-installed gems
<RickHull>
(if i understand correctly)
war_pigs has quit [Quit: later... computer is sleeping]
maletor has quit [Quit: Computer has gone to sleep.]
hedgecore has quit [Remote host closed the connection]
<RickHull>
I think Gem::Specification#conflicts is important
<zenspider>
RickHull: man... ever thought about doing a gem clean?
<RickHull>
hasn't crossed my mind
<RickHull>
;)
dfockler has joined #ruby
<zenspider>
I'd be curious ... do a `gem clean gitdis` and see if that affects your times
<zenspider>
I'm thinking wide vs tall
jgt3 has quit [Ping timeout: 276 seconds]
djdarkbeat has quit [Ping timeout: 244 seconds]
caseypatrickdris has joined #ruby
<RickHull>
too late
<RickHull>
did `gem clean`
<RickHull>
and now things are normal
<RickHull>
i'd suggest this is still maybe a useful bug / test case
Yzguy has quit [Quit: I'm sleeping, go away.]
Forgetful_Lion has quit [Read error: Connection reset by peer]
<zenspider>
you can always reinstall that list :P
<RickHull>
added gem clean output
<RickHull>
to the gist
bkxd has quit [Ping timeout: 256 seconds]
ledestin has joined #ruby
<jesterfraud>
gem clean should be gem polish
<jesterfraud>
just saying
fujimura has quit [Remote host closed the connection]
baweaver has joined #ruby
casadei has quit [Remote host closed the connection]
<zenspider>
jesterfraud: hah. send in a PR
dfockler has quit [Ping timeout: 245 seconds]
Forgetful_Lion has joined #ruby
centrx has joined #ruby
hedgecore has quit [Remote host closed the connection]
hedgecore has joined #ruby
<jesterfraud>
zenspider: but they we might have to be multicultural, and gem egyptian just doesn't have the same ring to it
<jesterfraud>
so to speak
juanpaucar has joined #ruby
diegoviola has quit [Remote host closed the connection]
frem has joined #ruby
vdamewood has quit [Quit: Life beckons.]
xxneolithicxx has joined #ruby
FernandoBasso has quit [Quit: Time for some sleep.]
balazs has joined #ruby
vdamewood has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bosma_ has joined #ruby
centrx has quit [Ping timeout: 252 seconds]
bosma has quit [Disconnected by services]
deric_skibotn has joined #ruby
bosma_ is now known as bosma
oo_ has joined #ruby
juanpaucar has quit [Ping timeout: 252 seconds]
pkrnj has quit [Quit: Computer has gone to sleep.]
ReK2 has quit [Remote host closed the connection]
casadei has joined #ruby
sharpmachine has joined #ruby
bmurt has joined #ruby
fabrice31 has joined #ruby
mwlang has joined #ruby
e1nh4nd3r has joined #ruby
e1nh4nd3r has quit [Max SendQ exceeded]
<mwlang>
Instead of chaining a bunch of gsubs like this: “.gsub(/</,'<').gsub(/>/, '>').gsub(/&/, ‘&’)” Is there a cleaner way to accomplish the same?
e1nh4nd3r has joined #ruby
e1nh4nd3r has quit [Max SendQ exceeded]
e1nh4nd3r has joined #ruby
<mwlang>
I’d love to do this: .gsub(/<|>|&/, /<|>|&/)
sharpmachine has quit [Ping timeout: 255 seconds]
soasme has quit [Remote host closed the connection]
jaycee has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<eam>
mwlang: I like to build a hash of str => str and just do it that way
dopie has joined #ruby
soasme has joined #ruby
<mwlang>
eam: yeah, I’ve done that in the past.
<eam>
.gsub kv.keys.join "|", { |m| kv[m] }
<eam>
or w/e
sivoais has quit [Quit: leaving]
endorphine has joined #ruby
bkxd has joined #ruby
sivoais has joined #ruby
fabrice31 has quit [Ping timeout: 265 seconds]
sivoais has quit [Read error: Connection reset by peer]
<mwlang>
eam: ah. haven’t used the block signature in a few years….plain forgot about that approach.
endorphine is now known as endorphine_
freerobby has joined #ruby
<zenspider>
mwlang: I hope that's just for example and you're not actually doing that
<zenspider>
otherwise, your NIH is strong
DynamicMetaFlow has joined #ruby
<mwlang>
zenspider: no, it’s real code. I’m refactoring it.
axilla has quit [Ping timeout: 245 seconds]
<sevenseacat>
the NIH is strong with this one
<Diabolik>
sevenseacat
<mwlang>
it stinks to high heaven and back.
<Diabolik>
i have problems
<sevenseacat>
Diabolik: so do i.
<mwlang>
NIH?
<sevenseacat>
"not invented here"
<Diabolik>
sevenseacat can i fix yours
<sevenseacat>
aka reinventing wheel
<sevenseacat>
Diabolik: i dont know, are you a psychologist?
<zenspider>
>> "a b c d".gsub(/[abcd]/, "a" => 1, "b" => 2, "c" => 3, "d" => 4)
yaw has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<sevenseacat>
i wish i had that luxury.
krisquigley has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
<sevenseacat>
'yeah I dont want to work anymore, so I quit my job and paid off my mortgage with the proceeds'
iamninja has quit [Read error: Connection reset by peer]
<sevenseacat>
but in all honesty, the first part of that post strikes me as completely normal, well, normal for me anyway
BTRE has joined #ruby
jenrzzz has joined #ruby
<mwlang>
I thought he made some good points about how everybody constantly recreates the wheel.
towski_ has quit [Remote host closed the connection]
mary5030 has joined #ruby
RegulationD has quit [Ping timeout: 256 seconds]
chipotle has joined #ruby
arescorpio has joined #ruby
deric_skibotn has quit [Ping timeout: 258 seconds]
hubcaps has joined #ruby
<mwlang>
although I’m encountering a lotta of crap nowadays working contracts, at least I get paid to do it and there’s no politics involved. If they’re happy with my fixes, they give me more work, if they’re not, well, another client comes along to please even more. Life is happy.
<mwlang>
my problem is I haven’t lost any clients and they keep coming back for more. :-o
michael_mbp has quit [Excess Flood]
michael_mbp has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
jsrn has quit [Ping timeout: 256 seconds]
jackjackdripper has quit [Quit: Leaving.]
jsrn has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
bogdanteleaga has quit [Ping timeout: 265 seconds]
<sevenseacat>
also, he isnt 'leaving the tech industry' if hes still going to be programming his own things
phutchins has quit [Ping timeout: 245 seconds]
CyborgCygnus has joined #ruby
jenrzzz has quit [Ping timeout: 265 seconds]
<sevenseacat>
so many of the comments are like 'well duh yeah I worked for three years, saved up 30 years worth of living expenses, and now am living my dream, why arent you'
<Obfuscate>
Note that they would still have to pay federal taxes, and usually those states have higher taxes for other things.
<sevenseacat>
well thats confusing
<mwlang>
Move to Puerto Rico and Act 20/22 status. :-)
<sevenseacat>
state *and* federal taxes?
willharrison has joined #ruby
Yiota has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Obfuscate>
I guess if you moved to Texas and lived in a small apartment, your taxes would be as about as low as the federal goverment would allow.
Yzguy has joined #ruby
Yiota has joined #ruby
<Yiota>
how similar are ruby and python?
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<mwlang>
Yiota: not very. one is spatially oriented, the other just rocks. :-)
justintv90 has joined #ruby
<bnagy>
Yiota: why do you ask?
<nofxx>
Yiota, whoever say they are sisters are lying. python's OO is childsh
justintv90 has quit [Max SendQ exceeded]
bronson_ has quit [Remote host closed the connection]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Yiota>
I have an interview tomorrow, they want expertise in Ruby, HOWEVER I told them that given the similarity of both languages, I would be able to pick it up easily. They said that SQL and Python proficiency would be a nice to have.
jenrzzz has joined #ruby
justintv90 has joined #ruby
bkxd has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<nofxx>
Yiota, ah, it's the easy path then... ruby to any other is way harder than any other to ruby ;)
<Yiota>
I really hope I get it because it would put me on the right track to do data science
zenguy_pc has joined #ruby
<nofxx>
Yiota, to the free courses, codeschool or codeacademy
justintv90 has joined #ruby
havenwood has joined #ruby
<nofxx>
you'll be coding in no time
<Yiota>
I think their website is built on ruby on rails, and that's why they want it
balazs has joined #ruby
<bnagy>
well you don't really have any huge concepts to relearn going python -> ruby ( or ruby -> python )
<nofxx>
do the*
<bnagy>
so seems legit
justintv90 has quit [Max SendQ exceeded]
<bnagy>
ohhh Rails is a whole nother kettle of fish
<Yiota>
Yeah, it's not website dev though
<Yiota>
their website is built on rails, so I think they want an understanding of Ruby so that you can interact with the server
justintv90 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<Yiota>
most of it will be parsing, cleaning and wrangling data and then uploading it to the server.
<nofxx>
Yiota, yeah.. don't go there just yet, give just ruby some days, write some code.
Vile` has quit [Ping timeout: 255 seconds]
Dreamer3_ has joined #ruby
Dreamer3 has quit [Ping timeout: 264 seconds]
justintv90 has joined #ruby
mwlang has quit [Quit: mwlang]
<Yiota>
also, offtopic. Tie or no tie for tomorrow's interview?
<Yiota>
granted it's humid and hot
bruno- has joined #ruby
Vile` has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
jwaldrip_ has joined #ruby
<bnagy>
wear what they'll be wearing
Dingus has joined #ruby
e1nh4nd3r has quit [Quit: Leaving.]
bruno- has quit [Ping timeout: 252 seconds]
jwaldrip_ has quit [Ping timeout: 276 seconds]
sharpmachine has joined #ruby
fujimura has joined #ruby
balazs has quit [Remote host closed the connection]
GPrime has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Trynemjoel has quit [Quit: Quitting]
sharpmachine has quit [Ping timeout: 244 seconds]
jpfuentes2 has quit [Ping timeout: 252 seconds]
Yzguy has quit [Quit: I'm sleeping, go away.]
baweaver has quit [Remote host closed the connection]
vdamewood has quit [Quit: Life beckons.]
Trynemjoel has joined #ruby
balazs has joined #ruby
yfeldblu_ has quit [Remote host closed the connection]
baweaver has joined #ruby
braincrash has quit [Quit: bye bye]
dfinninger has joined #ruby
mike___1234 has quit [Ping timeout: 265 seconds]
mdz_ has joined #ruby
aaeron has quit [Quit: aaeron]
mdz_ has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
pontiki has joined #ruby
hubcaps has quit [Quit: Lost terminal]
<pontiki>
hi
mrsolo has quit [Quit: This computer has gone to sleep]
astrobun_ has joined #ruby
Dingus has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Read error: Connection reset by peer]
rkazak has joined #ruby
gix has joined #ruby
fabrice31 has quit [Ping timeout: 256 seconds]
aaeron has quit [Ping timeout: 276 seconds]
jamto11_ has joined #ruby
<Aeyrix>
pontiki: I make that mistake so many times a day.
vitorino has quit [Remote host closed the connection]
oo_ has joined #ruby
aaeron has joined #ruby
jamto11 has quit [Ping timeout: 252 seconds]
spider-mario has joined #ruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jesterfraud>
remap q to tab, it's not like you need to use q that often
aphprentice has joined #ruby
<pontiki>
that'd be hard. i use tab a *LOT*
Palmer11 has joined #ruby
<jesterfraud>
it's quite rare to use, a little quaint key in the corner
<jesterfraud>
cmd q is a terrible shortcut, imo
nertzy has joined #ruby
<pontiki>
i wonder if you can remap the mac like that, actually
sdothum has quit [Ping timeout: 244 seconds]
<pontiki>
i could change it opt-cmd-F4
<jesterfraud>
sorta, I would imagine
<jesterfraud>
some programs would hardcode it
<jesterfraud>
although you'd probably be able to intercept that keypress and turn it into something else, using some kind of utility
sharpmachine has quit [Remote host closed the connection]
skade has joined #ruby
mrsolo has joined #ruby
axsuul has joined #ruby
iamninja has joined #ruby
commondream has joined #ruby
<shevy>
hey you can also make your point without clothes
balazs has joined #ruby
<shevy>
see the movie Catch-22, with captain youssarian who no longer wants to fly on missions
balazs has quit [Remote host closed the connection]
shadoi has quit [Quit: Leaving.]
commondream has quit [Remote host closed the connection]
soasme has quit [Remote host closed the connection]
RegulationD has joined #ruby
soasme has joined #ruby
premera has quit [Ping timeout: 245 seconds]
jamto11_ has quit []
morissette has joined #ruby
<morissette>
Hey all!
<morissette>
Anyone ever have to synchronize Outlook Web App 2013 into a JS Calendar?
krisquigley has joined #ruby
<ttilley>
morissette: jesus christ on a stick, that sounds painful. whatever you end up doing, i'm sorry and you have my sympathy
<morissette>
sigh
<morissette>
That is about the same answer I have gotten everywhere.... why can't microsoft just implement restful api's with everything....
<pontiki>
and make an open system that anyone can write to??
<morissette>
haha
<morissette>
yeah
<pontiki>
write to/read from
<morissette>
I'm open to any solution even if I have to cry myself all the way to C# if anyone has anything
<morissette>
outside of mechanize web scraping hackery
<pontiki>
strange you asking in ruby tho
<ttilley>
pontiki: don't laugh, they just wrote an open source visual studio alike with a supported linux port and everything. who the fuck knows what'll come out of microsoft these days
<morissette>
I asked in every lang I know lol
RegulationD has quit [Ping timeout: 246 seconds]
<morissette>
hoping for someone that has experience
<morissette>
I'm writing the app in Angular/PHP back
<pontiki>
ttilley: i said many years ago they should stop writing operating systems and build their desktop on linux.
jamto11 has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
<pontiki>
ttilley: but then it was pointed out to me that then they couldn't control everything
<Evidlo>
Is `bundle install` supposed to install a ruby binary in addition to all the other packages?
<ttilley>
morissette: unless i'm confused, outlook still supports IMAP. you'll have to do batch jobs out-of-band probably, but why can't you connect to it via a supported protocol? is IMAP disabled? (note that asking these questions is about as much effort as i'm willing to put into that problem, no offense)
<morissette>
pontiki: in a perfect world where users knew how to troubleshoot things
<pdoherty>
pontiki: that'd be something! `sudo apt-get install windows-desktop`
<morissette>
ttilley: is the calendar over IMAP?
<ttilley>
Evidlo: no
<ttilley>
Evidlo: it's not like virtualenv for python
<ttilley>
morissette: i assumed it would be metadata in a subdirectory, but now that you mention it i could very well be wrong about that.
hahuang65 has quit [Read error: Connection reset by peer]
krisquigley has quit [Ping timeout: 276 seconds]
<pontiki>
bundle's main feature that i can see is that it installs and maintains versions of the app's gems, so you don't have to do it all yourself
<morissette>
It just seems to me calendar data going over a mail protocol
penzur has quit [Ping timeout: 276 seconds]
<ttilley>
morissette: i mean, a lot of other protocols (like gmails tags, and a bunch of other stuff) have been implemented as metadata over virtual directories in IMAP so i dunno
<pontiki>
morissette: like in ubuntu where all the maintenance is done with specialized apps and users never have to look at config files?
<Evidlo>
Hmm. So passenger keeps telling me that it can't find rake-10.4.2
penzur has joined #ruby
<morissette>
Maybe I'll explore that option and see what IMAP provides
<ttilley>
morissette: i hope outlook exports the calendar as, like, pcf files in a directory structure or some shit that's easy to parse... for your sake
<morissette>
I'm originally a Perl dev parsing data no problem for me :)
<morissette>
Thanks for the concern though
<ttilley>
ics files? i dunno
<ttilley>
fuck all whatever MS uses for metadata
<morissette>
haha ya
<ttilley>
perl? you've officially dated yourself as being at least over 40
<ttilley>
:p
<morissette>
28
<shevy>
48
EllisTAA has joined #ruby
<morissette>
SysMin background
<morissette>
where perl is all the hype still
<EllisTAA>
does anyone know why shoulda matchers are called shoulda matchers? what does it mean
<ttilley>
jesus, why the fuck are you using perl? nobody in modern times should be using perl
dgutierrez1287 has joined #ruby
<shevy>
EllisTAA isn't shoulda a testing framework?
<pontiki>
"you shoulda done dat"
<sevenseacat>
yes
<morissette>
Why b/c I work for a Perl/Java shop and despise Java
<ttilley>
everything sysadmin nowadays is python (though why, i have no idea... all of openstack is python)
<pontiki>
"he shouldna done dat"
<shevy>
:)
<pontiki>
"it just shoulda worked"
<morissette>
But I know python, ruby, php and bash plus all those useless frontend langs
<shevy>
lol
<EllisTAA>
shevy: my understanding is they are just one liners .. does that mean they’re a framework?
<shevy>
"he just shoulda have used ruby already"
<ttilley>
^
<pontiki>
EllisTAA: i'm not going to ask you if that makes sense, but that' basically why it's called that
bronson_ has joined #ruby
<shevy>
EllisTAA are they? I have no idea, I assume there is some library component
<pontiki>
simply put, a matcher is an expression that compares the actual value of something to the expected value of something in a test
<sevenseacat>
serious question. because if you cant read the first two examples on that page and not know what a matcher is
<sevenseacat>
and if you *dont* know anything about testing, why on earth are you looking at shoulda?
<EllisTAA>
yeah but even if i arrived at my own conclusion it would be best to read a definition
stoogenmeyer_ has joined #ruby
<EllisTAA>
pontiki: thanks
<pontiki>
buy the rspec book
joaomdmoura has joined #ruby
<pontiki>
there may even be an online free copy
<shevy>
eat frog legs
<sevenseacat>
I... what
<ttilley>
EllisTAA: we're really not trying to be mean. (well, at least i'm not). but you might have some more foundational material to absorb first. it may be better to start off with the traditional non-spec-style of testing. it's more procedural and an easier foundation to base other stuff on. the rspec and cucumber books are also great places to go
<sevenseacat>
I'm not trying to be mean, I'm just tired of these kinds of questions from them
<EllisTAA>
ttilleyy: thanks i’ve been meaning to get the rspec book
<ttilley>
EllisTAA: of course, the important thing is to be doing testing, so you're already going in the right direction ;)
<sevenseacat>
from the same person who said they were going to be the best ruby programmer ever
<sevenseacat>
a long time ago
<EllisTAA>
hey that was only 5 months ago!
<shevy>
wow
<shevy>
I am impressed that sevenseacat can remember things 5 months ago related to IRC
<ttilley>
yeah, cats don't usually have that kind of long term memory
<shevy>
I can't remember having seen EllisTAA before :)
<EllisTAA>
sevenseacat loves me
<sevenseacat>
I remember stupid things, what can I say.
<shevy>
hehe
msgodf has quit [Ping timeout: 276 seconds]
<EllisTAA>
gotta aim high
<Aeyrix>
^
<Ox0dea>
"Shoot for the moon. Even if you miss, you were only pretending to be retarded."
<pontiki>
my goal in life is two-fold: 1) never stop learning 2) always have fun
<Aeyrix>
Ox0dea: lmao
<Aeyrix>
pontiki: 1> Keep reminding people that they're breaking the channel rules; 2> Play lots of blackjack.
<EllisTAA>
ox0dea: that’s not how it goes
revath has quit [Ping timeout: 265 seconds]
<Aeyrix>
jokes on them i was only pretending
mrsolo has joined #ruby
soasme has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
yfeldblum has joined #ruby
soasme has joined #ruby
casadei has quit [Remote host closed the connection]
mcclurmc_ has quit [Remote host closed the connection]
lxsameer has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
mleung has joined #ruby
lessless has joined #ruby
<shevy>
more ruby code people!
<morissette>
lol
<shevy>
python isn't going to bow down without a fight
<morissette>
more rails generate model things and stuff
<sevenseacat>
rails g facebook
mrsolo has quit [Quit: This computer has gone to sleep]
sharpmachine has joined #ruby
<Ox0dea>
morissette: What does "SysMin" mean?
ponga has quit [Quit: Leaving...]
<morissette>
Ox0dea: System Administration
<Ox0dea>
I've never seen it abbreviated that way.
<ttilley>
why should python bow down?
<morissette>
I have 10 years of Linux System Administration
<ttilley>
i never got the whole language is better than yours pissing contest
<morissette>
Where eventually I wanted to move more toward automation
<morissette>
Which led me to development
<ttilley>
there's a lot of good python code out there, why not use it when it's the best tool for the job?
mrsolo has joined #ruby
<morissette>
But now I am in operations and don't do "real" work lol
<ttilley>
i prefer ruby, obviously, but i have to be pragmatic
<morissette>
Use the best language for the job
ta has joined #ruby
<ttilley>
exactly
<morissette>
Although I do talk a shit load about python lol
<morissette>
And how ruby would be a better option
<ttilley>
i mean... fuck, i HATE C. but you gotta do what you gotta do sometimes and i've written more C than i'm really happy with
ta has quit [Remote host closed the connection]
ta has joined #ruby
<Aeyrix>
C++ master race.
<morissette>
ugh 15 lines to open a file handle
<shevy>
avoiding python is easy, avoiding C is hard
<ttilley>
my most popular open source code is entirely in C and it's a ruby extension
<morissette>
well can't beat the speed
<ttilley>
rb-fsevent (file system event handling on macos)
<morissette>
lord though writing so much code for millisenconds
<morissette>
seconds even
axsuul has quit [Ping timeout: 255 seconds]
<baweaver>
except there are very few things Python does that Ruby cannot
arescorpio has quit [Quit: Leaving.]
sharpmachine has quit [Ping timeout: 256 seconds]
<ttilley>
Aeyrix: C++ is like javascript. you can write good code in it... as long as you only use 10% of the language features available to you. anything else and you fuck yourself
axsuul has joined #ruby
<Ox0dea>
baweaver: Are there any such things?
<baweaver>
They're pretty well interchangeable.
<morissette>
just remove : and add end
<morissette>
done
<baweaver>
Ox0dea: Mostly statistical packages and data science applications
<baweaver>
the support is a lot stronger on that side of the fence
<baweaver>
CAN ruby do it? Yes
<morissette>
but you should use R
<baweaver>
does it have that level of tooling quite yet? Not really
<shevy>
R is so ugly :(
<ttilley>
baweaver: in an abstract sense, sure. in a practical sense, there's a fuckton of science code written in python that you can build on top of. same for systems administration work. you'd have to not only do it in ruby, but port a fuckton of code to ruby.
* ttilley
shrugs
<ttilley>
i like doing less work
<ttilley>
i'm lazy
<baweaver>
ttilley: about that
<baweaver>
Chef and a lot of other systems tools are Ruby
<morissette>
ttilley: were devs lazy comes with the job
<morissette>
Puppet too
<morissette>
and ummmm....
<morissette>
the ahhh
<morissette>
megasploit
<baweaver>
Metasploit
<baweaver>
homebrew
balazs has joined #ruby
<ttilley>
baweaver: yeah, but in research scipy and numpy and etc etc etc are standard tools that everyone uses and is encouraged to know.
<morissette>
was close been a while since had to do security stuff
hagabaka has joined #ruby
<baweaver>
ttilley: You'll notice I said that above
<shevy>
lol at the comment Ox0dea
<baweaver>
But in terms of System Administration? It's because Google uses it and now everyone else should too
<morissette>
We talking Go now lol?
charliesome has joined #ruby
<shevy>
Go Google
<baweaver>
Same argument applies there
<morissette>
Anyone in Austin want to catch drinks and debate languages lol?
<baweaver>
Hadoop was another result of that type of idiocy
<shevy>
I think the dudedudeman is in Texas
<baweaver>
Bay area here
fujimura has quit [Remote host closed the connection]
<ttilley>
...go is definitely the new "thing" in systems level stuff. stackato took cloud foundry, ported a shitload of ruby code to go and node.js for performance reasons, and ended up at a more stable product (though, to be fair, a lot of the cloud foundry stuff uses eventmachine and FUCK eventmachine HARD)
<Ox0dea>
`go get fucked`
<morissette>
Wifey is anti cali or else I'd likely be there mobile gambling start up wanted me bad
EllisTAA has quit [Quit: EllisTAA]
<ttilley>
i feel sorry for anyone that has to work with or debug eventmachine
<ttilley>
i really do
<morissette>
but DevOps not a dev role
RegulationD has joined #ruby
<baweaver>
I'm becoming increasingly hesitant to touch DevOps.
hahuang65 has quit [Quit: WeeChat 1.2]
<morissette>
just like you feel bad with me hacking away at outlook integration into webapps cause efficiency
<ruboto>
shevy # => uninitialized constant IRB (NameError) ...check link for more (https://eval.in/379410)
<shevy>
damn
<morissette>
sadly thinking i'm becoming a hipster with less ipa and flannel
<ttilley>
dev is dev. i mean, how many jobs have you had where you worked on what you loved doing? i've only had a few.
<ttilley>
i do work that i love at home, in my free time, for me
<ttilley>
work... is work. you do whatever is available
<jesterfraud>
ttilley: I don't have the energy to do that right now
<shevy>
hehehe
<ttilley>
fair enough
revath has left #ruby [#ruby]
ag4ve_ has quit [Ping timeout: 248 seconds]
<morissette>
I mean I am in Operations now but for the most part I have free range to work on what I want which I love
<ttilley>
i fucking hate operations
<morissette>
So having the freedom to create and improve
axsuul has quit [Ping timeout: 272 seconds]
<jesterfraud>
I don't like go, and I don't like node for web dev, so hence why I'm in this room :)
<ttilley>
i started off doing sysadmin/sysops
jamto11 has quit [Remote host closed the connection]
<morissette>
Yes well I am technical ops
<morissette>
vs people ops
jamto11 has joined #ruby
<morissette>
creating now a platform to bring us from 1999 to 2015
<jesterfraud>
creating 'now', a platform, or now creating a platform?
RegulationD has quit [Ping timeout: 256 seconds]
<morissette>
the latter
<morissette>
4th drink in lol
jamto11 has quit [Client Quit]
<jesterfraud>
English is... interesting
<ttilley>
morissette: it was me and one other person responsible for all of this company's servers and hosting platforms, across linux and windows. there were multiple hosting systems (ensim, sphera, h-sphere, etc) across multiple operating systems (various versions of centos and windows server) with 4 fucking billing systems.
<ttilley>
morissette: i cut the call center's time down by an average of 10 minutes by just writing some software to find out WHICH billing system someone was in
<morissette>
4 billing systems jesus
krz has joined #ruby
idafyaid has quit [Quit: idafyaid]
ylla has joined #ruby
<ttilley>
it was horrible
<ttilley>
absolute shite
hdev1 has quit [Ping timeout: 265 seconds]
<ttilley>
but.... but i had fun writing that software and seeing the immediate impact it had on customer service and sales
<ttilley>
so now i write software for a living
mrsolo has quit [Quit: This computer has gone to sleep]
<morissette>
yeah well I mean our frontend product minus well be frames but IBM pay for it
<morissette>
b/c our backend is cool
axsuul has joined #ruby
<flughafen>
moin
<ttilley>
morning
arooni-mobile has joined #ruby
<Aeyrix>
moin
<jesterfraud>
afternoon
<morissette>
evening
<morissette>
12:20a here
idafyaid has joined #ruby
konsolebox has joined #ruby
rbowlby has quit [Remote host closed the connection]
LicHacker has quit [Ping timeout: 272 seconds]
<morissette>
.....digressing..... corporate america more dots ........ technology....... 1999
EllisTAA has joined #ruby
<Aeyrix>
MORE DOTS
konsolebox has quit [Max SendQ exceeded]
amclain has quit [Quit: Leaving]
ohaibbq has joined #ruby
<sevenseacat>
k stop dots
konsolebox has joined #ruby
stoogenmeyer_ has quit [Ping timeout: 264 seconds]
ur5us has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hdev1 has joined #ruby
commondream has joined #ruby
_seanc_ has quit [Quit: _seanc_]
juanpaucar has joined #ruby
BTRE has quit [Ping timeout: 245 seconds]
rbowlby has joined #ruby
rbowlby has quit [Remote host closed the connection]
<baweaver>
(free to read online, but well worth the price)
<Ox0dea>
You've reminded me that I still haven't written an Unlambda program.
<baweaver>
If I weren't doing a Hackathon for the next day and a half I'd consider trying some of it myself for jollies.
yardenbar has joined #ruby
polysics has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
polysics has joined #ruby
joelataylor has joined #ruby
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_seanc_ has joined #ruby
stnly_ has joined #ruby
timonv has joined #ruby
RegulationD has joined #ruby
stnly_ has quit [Client Quit]
polysics has quit [Ping timeout: 264 seconds]
lkba has joined #ruby
joelataylor has quit [Ping timeout: 265 seconds]
astrobun_ has quit [Remote host closed the connection]
towski_ has quit [Remote host closed the connection]
RegulationD has quit [Ping timeout: 256 seconds]
solars has joined #ruby
chinmay_dd has quit []
<Aeyrix>
baweaver: wait
<Aeyrix>
wtf
joonty has joined #ruby
<Aeyrix>
baweaver is a teenager ;-;
CyborgCygnus has quit [Quit: I hath quit]
codecop has joined #ruby
bMalum has joined #ruby
<baweaver>
is actually 24 and was screwing with people
CyborgCygnus has joined #ruby
<Aeyrix>
Oh.
<baweaver>
25 in a few weeks
<baweaver>
yay, lower insurance and no more getting robbed on rental cars
<ttilley>
i assume anyone on the internet is either a grumpy preteen, an old man, or an FBI agent
<Aeyrix>
Man.
<Aeyrix>
Months until I'm even legal to drink in the USA>
CyborgCygnus has quit [Client Quit]
CyborgCygnus has joined #ruby
<ttilley>
speaking of which. has anyone been watching the WWDC sessions? there have been actual women presenting... doing real tech and kicking real ass up there on stage
<ttilley>
quite a few actually
<ttilley>
it's pretty awesome to see
jgt3 has joined #ruby
sinkensabe has joined #ruby
<morissette>
nope lol
<sevenseacat>
sounds better than fake women kicking imaginary ass
<ttilley>
i'm guessing one was even post-op transgender but that's not the kind of assumption one wants to be wrong about. might be insulting. ^^;
<morissette>
i mean women are cool and stuff im married to one but in tech i haven't seen an "amazing" pushing limits one yet
<sevenseacat>
err
Channel6 has quit [Quit: Leaving]
<Ox0dea>
morissette: Grace Hopper wrote the first compiler.
<ttilley>
^
<shevy>
yeah
<ttilley>
there are lots of amazing women in the history of tech that people always forget about
<morissette>
okay and next?
<shevy>
WHERE WERE YOU THEN morissette!
<sevenseacat>
"computer" used to be a job description solely for women
gaboesquivel has quit []
<morissette>
indeed; thanks i know the history
<sevenseacat>
women dont have to be amazing in tech, just like men dont have to be
<morissette>
as my 2yr old wakes up and I literally have to just sit in front of his toddler bed and type
<ttilley>
morissette: "Ada Lovelace is Lord Byron's child, and her mother, Lady Byron, did not want her to turn out to be like her father, a romantic poet," says Isaacson. So Lady Byron "had her tutored almost exclusively in mathematics as if that were an antidote to being poetic."
<morissette>
fair nuff @all
<ttilley>
ENIAC was created by six women
bMalum has quit [Ping timeout: 264 seconds]
<ttilley>
fuckton of history that gets shoved under the carpet because the movers and shakers were *gasp* women
<sevenseacat>
morissette: I'd watch yourself if I were you.
<morissette>
god damn old white men
<sevenseacat>
sexism and racism at the same time? check
djbkd has quit [Quit: Leaving...]
<morissette>
sevenseacat: in regards to?
<shevy>
you!
<Aeyrix>
mods
<shevy>
lol Aeyrix
<morissette>
sevenseacat: I am a married with children ex drag queen feminist
<sevenseacat>
morissette: so?
<Ox0dea>
And a "SysMin" to boot!
<morissette>
what shall I watch?
<sevenseacat>
morissette: the racist jokes and the sexism.
<jesterfraud>
somedays I wonder if we'd just be better off banning gender terms, it'd be a nuisance, but would successfully confuse everyone enough to stop arguments, I think
<morissette>
more or less monty python?
<sevenseacat>
we dont approve of them.
Xeago has joined #ruby
<morissette>
which racist / sexist jokes have i said?
<shevy>
no good ones so far
<morissette>
scrolls up to review
bosma is now known as bosnia
<morissette>
"(01:27:01 AM) morissette: i mean women are cool and stuff im married to one but in tech i haven't seen an "amazing" pushing limits one yet" is surely not sexist
<morissette>
its just stating I haven't seen one yet
<morissette>
outside of that comment I see no racist / sexist comments
joonty has quit [Quit: joonty]
rdark has quit [Ping timeout: 258 seconds]
<morissette>
minus: "(01:30:34 AM) morissette: god damn old white men"
joonty has joined #ruby
joonty has quit [Client Quit]
<morissette>
but can you really be racist against white people lol?
<morissette>
< white
<sevenseacat>
yes.
<Aeyrix>
jesus christ
<sevenseacat>
let's drop it and move on.
chinmay_dd has joined #ruby
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
<morissette>
Im cool with that
djbkd has joined #ruby
<morissette>
Again 6th drink in.... maybe I only told #php so don't block for more than 1d lol
Cyberheb has joined #ruby
Cyberheb has quit [Excess Flood]
balazs has joined #ruby
roolo has joined #ruby
<shevy>
yeah
<shevy>
go make sexist jokes on #php!
rbowlby has quit [Remote host closed the connection]
* baweaver
stares blankly
<Aeyrix>
I'm sure there's a reddit joke here somewhere.
Cyberheb has joined #ruby
* baweaver
looks down at glass
Cyberheb has quit [Excess Flood]
pdoherty has quit [Ping timeout: 245 seconds]
* Aeyrix
looks down at where glass should be.
<morissette>
good one shevy seeing as im preety much trans and don't believe in gender
<Aeyrix>
No drink. :(
<morissette>
can only be overly racist
djbkd has quit [Remote host closed the connection]
Cyberheb has joined #ruby
<jesterfraud>
why do people ever think any kind of sexism/racism is okay, even if they're talking about a 'majority'?
xxneolithicxx has quit [Ping timeout: 255 seconds]
<morissette>
like a bloody american
<jesterfraud>
I just
Cyberheb has quit [Excess Flood]
<shevy>
there is genetic gender
<morissette>
well genetically we're all born women
yfeldblu_ has joined #ruby
astrobun_ has joined #ruby
<Aeyrix>
more mods
* baweaver
also may be one of the few americans still up
<shevy>
yeah
<shevy>
it's the default
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mister_solo has joined #ruby
<morissette>
so are you on the fetus == life side else fetus == not a being
<ruboto>
certainty # => uninitialized constant Infinity (NameError) ...check link for more (https://eval.in/379449)
<baweaver>
They still confuse me honestly
<Ox0dea>
Tom's video is pretty clarifying.
kerunaru has joined #ruby
mister_solo has quit [Ping timeout: 250 seconds]
<ttilley>
morissette: you write PHP. if i were you, i'd never be sober.
<shevy>
I am sure there are monads in Infinity Ox0dea
<Ox0dea>
Monads are much harder in theory than in practice.
mister_solo has joined #ruby
<ttilley>
morissette: possibly suicidal even
ndrei has joined #ruby
<morissette>
haha ttilley ive slowed down quite a bit since i had kids but i also write python, rails and node
<certainty>
beware the monad tutorial fallacy
<jesterfraud>
can we possibly avoid talking about every kind of controversial topic in less than an hour?
* ttilley
would rather write C than PHP
<morissette>
ttilley: im not like its 6am time to drink anymore lol
Jackneill has joined #ruby
* morissette
realizes hes the only one laughing at what is probably a serious problem
<ttilley>
i like node. it's absolutely beautiful for IO bound tasks
<morissette>
/me seeks help gains addicition to zoloft
<ttilley>
though i'm a hipster using iojs instead of nodejs lately
<morissette>
and extra space ftw
<baweaver>
>> class Functor; def initialize(&fn)@fn=fn end; def method_missing(op, *a, &b) @fn[op, *a, &b] end;module Enumerable;def every;Functor.new do |o,*a| map{|x|x.send(o,*a) } end end end; [1,2,3].every + 3
<ruboto>
baweaver # => /tmp/execpad-8f67898e4bbf/source-8f67898e4bbf:7: syntax error, unexpected end-of-input, expecting ke ...check link for more (https://eval.in/379456)
<morissette>
im 28 too old to be a hipster
fabrice31 has joined #ruby
<morissette>
my beard thinks differently though
<ttilley>
i'm 31. it was sarcasm. iojs has actually gained significant community support. it's still a fork of nodejs though
<morissette>
yeah
<baweaver>
>> class Functor; def initialize(&fn)@fn=fn end; def method_missing(op, *a, &b) @fn[op, *a, &b] end;end;module Enumerable;def every;Functor.new do |o,*a| map{|x|x.send(o,*a) } end end end; [1,2,3].every + 3
<morissette>
ttilley: got kids? know how to make a 22 mo old go to bed after changing diaper and sitting with him after 30 mins? ..... furberize
vdamewood has quit [Ping timeout: 272 seconds]
<morissette>
outside of not having bright shiny laptop in front of them lol
<ttilley>
morissette: i've watched a million DVDs on comforting children. in the end i've just spent a lot of money and learned nothing useful.
<Ox0dea>
/query ttilley It's very likely the channel would benefit from morissette's absence. Please refrain from engaging him in further conversation.
<Ox0dea>
Shit.
<ttilley>
my son LOVES gangnam style though
<bnagy>
Ox0dea: HAHAHAHAH
<sevenseacat>
Ox0dea: lol
<morissette>
thanks Ox0dea
<ttilley>
even if he's crying like crazy, i put that shit on my iphone and he stops and laughs
<jesterfraud>
iojs and node are merging again
<morissette>
so umm why no colon after def?
<morissette>
better @Ox0dea?
<morissette>
what are gems?
<Ox0dea>
/query ttilley I told you so.
<ttilley>
lol
<Aeyrix>
Good work pal.
<morissette>
internally how does the interpreter handle lamdas?
<ttilley>
lamdas are a special case of blocks. fucking noob.
<ttilley>
pffft
<morissette>
:)
<ttilley>
:p
<morissette>
lol trying to stay on topic so people don't yell @ me at 2am
Xeago has quit [Read error: Connection reset by peer]
DEA7TH has quit [Ping timeout: 252 seconds]
<ttilley>
omg, who remembers lambdas and procs in 1.8? serious headaches, am i right? the same syntax meant something completely different in 1.9 and forward
baweaver has quit [Remote host closed the connection]
hemanth has joined #ruby
<ttilley>
and special casing of return within a lambda in 1.8
<ttilley>
just slit my wrists already
<morissette>
and the emo comes out
GnuYawk has quit [Ping timeout: 255 seconds]
<morissette>
ohio is for lovers... amirite?
ur5us has joined #ruby
hemanth is now known as howdoi
<ttilley>
i mean, who thought it was a good idea for a return within a lambda to return from the calling context in 1.8?
<sevenseacat>
it's not 3am everywhere, remember that.
fujimura has joined #ruby
<sevenseacat>
3pm here.
<shevy>
this is the wisest cat ever
CyborgCygnus has quit [Quit: I hath quit]
<morissette>
ttilley: before my time.... 1997 => perl, 1999 => php, 2009 => ruby, 2010 => python, 2012 => node
CyborgCygnus has joined #ruby
<ttilley>
ddv: dont pretend like you don't remember ruby 1.8. i love ruby but there's so much about 1.8 that was just BAD. so bad.
<shevy>
this timeline makes me sad
<jesterfraud>
I only ever played with 1.9, basically :3
<ttilley>
shevy: me too
<morissette>
3am boring yes because of moderators who think im racist / sexist @ sevenseacat
Caius has joined #ruby
<sevenseacat>
hello.
<shevy>
fight!
ur5us has quit [Ping timeout: 256 seconds]
* jesterfraud
makes popcorn
<Aeyrix>
Have some of mine.
* shevy
steals popcorn
<morissette>
:)
<jesterfraud>
Aeyrix: how's the fight for ADSL going?
<Aeyrix>
jesterfraud: Same old. :(
<morissette>
im white who grew up in southie (the ghetto) who moves between genders at will; your turn
<Aeyrix>
Got 2mo free 4G though.
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jesterfraud>
Straya.
hdev1 has quit [Ping timeout: 252 seconds]
dumdedum has joined #ruby
<jesterfraud>
very nice!
<jesterfraud>
from whom?
<Aeyrix>
Dodo, reselling Telstra.
<Aeyrix>
Dodo support > Telstra support
<Aeyrix>
despite being 1/4 of the price.
<Aeyrix>
I can't fault them.
<ttilley>
jesterfraud: you're lucky. the only crime against humanity you have to deal with is refinements
<ttilley>
and before anyone else says another word, FUCK refinements
<jesterfraud>
no idea what they are?
<morissette>
should have put my word a second earlier... dang
<morissette>
i think its those nasty smelling tall stacks near ports @ jesterfraud
<shevy>
I could not study refinements because the syntax conflicts with the rest of my ruby code
<ttilley>
jesterfraud: GOOD. they make arbitrary modifications of code in arbitrary scopes possible, thus making optimization difficult if not impossible in non-MRI implementations of ruby (so they're not supported by jruby or rubinius)
timonv has quit [Ping timeout: 244 seconds]
The_Phoenix has quit [Quit: Leaving.]
DynamicMetaFlow has quit [Ping timeout: 264 seconds]
fujimura has quit [Ping timeout: 258 seconds]
Filete has joined #ruby
<morissette>
ewww did i hear java briefly mentioned through jruby?
<ttilley>
hey now
<shevy>
oh
<ttilley>
jruby is pretty awesome
<shevy>
he likes java
<Aeyrix>
Paging baweaver.
<morissette>
I work for a Java/Perl shop....
<Aeyrix>
Oh, not in here.
<shevy>
lol
<ttilley>
i hate java, but not the JVM. lots of interesting things run on the JVM.
arooni-mobile has quit [Ping timeout: 256 seconds]
<shevy>
morissette what are you doing on #ruby!
<morissette>
ttilley: ill give you that one
sharpmachine has joined #ruby
<jgt3>
hate is a strong word to use for a programming language
<shevy>
you are all in the wrong movie
<morissette>
shevy: on my freetime im working on a startup in ROR
<shevy>
what freetime
<jgt3>
that said, I hate JS
<shevy>
you have a kid!
<morissette>
and prefer ruby selenium to anything else
<morissette>
umm its 2am
<shevy>
bedtime
Macaveli has joined #ruby
<morissette>
sleep is for the old
ur5us has joined #ruby
strixd has joined #ruby
<morissette>
once I hit 30 sure i'll give up
<ttilley>
jgt3: true. i had a job where writing java was my primary goal in life. i lasted 3 months. it was not the worst 3 months of my life, but it wasn't my happiest either.
<shevy>
you are old when you hit 30 :-)
<ttilley>
HEY
<ttilley>
i'm 31 ;_;
<morissette>
I personally feel if I'm not making millions by 30 im fucked as we move to the leisure age
<morissette>
when everything is automated
<Radar>
lol
<morissette>
Radar: perhaps you don't understand the fute
<ttilley>
jgt3: and i actually left that job because they moved me to writing C# for a legacy app and THAT is what killed it for me
<morissette>
fute = future
<Radar>
morissette: Sorry, my crystal ball is broken right now
<certainty>
:)
<jgt3>
ttilley: where did you work? Some kind of torture chamber?
<Radar>
morissette: They predicted the future you are talking about already, back in the 60s.
<Aeyrix>
Radar: Where are your tarot cards?
<Radar>
We have no gotten that "leisure age"
<bnagy>
this is mind numbing
lessless has joined #ruby
<Aeyrix>
^
<morissette>
by 2020 truck drivers and cabs/uber/lyft will be automated
<ttilley>
jgt3: hubspot, a marketing company in cambridge
<Radar>
in fact, America (in particular) has less leisure time NOW than they did back then.
<bnagy>
is there not #boring_assholes_whining or something?
<Radar>
because everyone is working on The American Dream
<Radar>
Student loans for the young ones, mortgages for the oldies, and part-time jobs for all
<Radar>
That's the true America
<morissette>
Unfortunately due to technology the american dream barely exists
<Radar>
bnagy: Careful.
ruby-lang405 has joined #ruby
<flughafen>
package still wont be delivered today, holy cow.
<morissette>
me, a non college loan debt student makes 6 figures through studying free knowledge
<ttilley>
in georgia there's a woman on trial for murder for taking plan B. america is in collapse.
<bnagy>
Radar: no? It's been like a solid hour of offtopic drivel
astrobun_ has quit [Remote host closed the connection]
<morissette>
while i know mbas driving uber
<bnagy>
I think a little frustration is only reasonable
<certainty>
flughafen: die post?
sharpmachine has quit [Ping timeout: 272 seconds]
<Radar>
bnagy: wtg on the personal attacks, please do keep it up. That won't result in a +q _at all_
k3asd` has joined #ruby
<Radar>
morissette: p.s. #ruby-offtopic
dented42 has joined #ruby
<morissette>
hey i tried on topic
<certainty>
didn't work out?
jesterfraud has quit [Quit: Page closed]
<morissette>
you drove it this way
<flughafen>
certainty: dhl
felixjet has quit [Read error: Connection reset by peer]
<Radar>
Everyone who wants to talk about offtopic should go there because bnagy has an important discussion about Ruby he wants to have.
<flughafen>
beide streikt jetzt
<morissette>
conversation is good for the soul
<certainty>
flughafen: same shit, no?
<certainty>
yeah
<morissette>
especially at this time
<Radar>
And we all need to pay attention to bnagy because he is important.
<morissette>
when most devs arent on
<certainty>
flughafen: what are you waiting for?
felixjet has joined #ruby
<flughafen>
certainty: a chalk bag for climbingb, it's not a big deal, i have one already, but it's stupid
<Radar>
bnagy: I scrolled up and I definitely see your point btw.
<morissette>
and @ certainty you have a ruby question im willing to answer or research for you
<ttilley>
if someone asks a ruby question i'll switch topic. until then i'm entertaining myself and the conversation here is currently interesting to me. so t(-_-t)
blue_deref has quit [Quit: bbn]
<morissette>
which is what this channel is for
<shevy>
certainty the flughafen in Berlin is still not finished. he is waiting for it still
<morissette>
@ ttilley on the same wave length
perry has quit [Ping timeout: 244 seconds]
CyborgCygnus has quit [Quit: I hath quit]
<Radar>
morissette + ttilley we have a whole channel for off-topic discussion. Please take it there.
<certainty>
shevy: no way. then he'll never receive it
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
CyborgCygnus has joined #ruby
bartj3 has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
<shevy>
haha
<ttilley>
jeez. the ruby channels were a lot more fun when there was a split between #ruby and #ruby-lang. what happened?
<certainty>
morissette: currently not. I'll get back to you
<shevy>
jhass destroyed #ruby-lang
<ttilley>
all the killjoys in one place now?
<morissette>
Radar: thats cute and all but people are here and i have good convs w/ ttilley
<Radar>
Who's next?
<sevenseacat>
morissette: we can enforce this.
<Radar>
I asked you twice to take it to #ruby-offtopic and you disobeyed.
hanmac has quit [Ping timeout: 265 seconds]
<Radar>
Don't PM.
<sevenseacat>
morissette: you were asked not to PM.
chinmay_dd has quit [Remote host closed the connection]
dhjondoh has joined #ruby
<Radar>
15 minute time out.
bartj3 has joined #ruby
ruby-lang405 has quit [Ping timeout: 246 seconds]
perry has joined #ruby
CyborgCygnus has quit [Client Quit]
<certainty>
xD
juanpaucar has joined #ruby
ta has joined #ruby
hdev1 has joined #ruby
<sevenseacat>
do we need a naughty corner or something?
<Radar>
sevenseacat: That's what +q is for.
<certainty>
yeah a naughty stairway
RegulationD has joined #ruby
<sevenseacat>
moral of the story: don't drink and IRC.
<Radar>
^
<Aeyrix>
bnagy: I should be opped in that channel.
<Radar>
bnagy: I apologise. I thought that he had only been going for a short time and not an entire hour.
<Ox0dea>
>> class Fixnum; alias +@ succ end; ++++0
<bnagy>
Radar: it's fine. "asshole" is too strong.
rdark has quit [Client Quit]
<Radar>
Ox0dea: feature
rdark has joined #ruby
<Radar>
Ox0dea: +0 is a positive number, which you're adding 3 to
<Radar>
(I wish I was joking)
<Ox0dea>
When has anybody ever needed to explicitly mark their numeric literals as positive?
bkxd_ has joined #ruby
<Darkwater>
semantics
<bnagy>
probably more like 'it would be confusing if the parser didn't grok +1'
<Radar>
For absolute positivity that it's a positive number.
<Radar>
+1 bnagy
<Ox0dea>
But it makes Numeric#+@ break LSP!
juanpaucar has quit [Ping timeout: 255 seconds]
stnly has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
krz has joined #ruby
<Ox0dea>
There appears to be no adjectival form of "travesty", but it would apply here.
Xeago has joined #ruby
sdwrage has joined #ruby
bkxd has quit [Ping timeout: 255 seconds]
sdwrage has quit [Client Quit]
<bnagy>
o_0 cause it's a nouned adjective and nobody ever re-adjectived it
RickHull has quit [Ping timeout: 244 seconds]
<maloik>
Radar: now that I catch you online, if you have a few minutes could you take another look at https://github.com/radar/paranoia/pull/239 ? If there's no update that's fine, but if there is or you think it's worth investigating your previous idea, I'd love to know... might have some time today and tomorrow for that
<maloik>
and to say I fell over because sleepdrunk just an hour ago
<shevy>
ponga but I am so lazy :(
jenrzzz has quit [Ping timeout: 258 seconds]
aytch has joined #ruby
CyborgCygnus has quit [Client Quit]
<ljarvis>
Ox0dea: nobody said it was longer
<ljarvis>
maloik: wow.. wednesday is party night huh?
aapole has joined #ruby
allenn has joined #ruby
<maloik>
lol, not quite :)
<maloik>
I don't party during the week, got too old for that
Hounddog has joined #ruby
<maloik>
hell it's been like 6 weeks since I've had more than one drink in an evening
<ljarvis>
that is the harsh truth
<ljarvis>
I'm the same
<ljarvis>
but it's been about 3 months
* sevenseacat
trying to remember the last alcoholic beverage
<maloik>
any particular reason for it?
<sevenseacat>
probably new years eve.
<maloik>
people always ask me and are then surprised I do it just for climbing :D
aytch has quit [Remote host closed the connection]
<ljarvis>
I struggle with time. Need to outsource my drinking
coderhs has joined #ruby
<maloik>
hahaha
charliesome has quit [Quit: zzz]
oo_ has quit [Remote host closed the connection]
krisquigley has quit [Ping timeout: 265 seconds]
mikecmpbll has joined #ruby
<shevy>
this is one sober cat
aytch has joined #ruby
oo_ has joined #ruby
<shevy>
ljarvis you could wear those hats with the beer connected
aytch has quit [Remote host closed the connection]
<ljarvis>
hah. Yeah I guess time shouldn't really matter. I just replace water/tea I drink at work with beer instead. Seems like the theory might have some holes in it though
<maloik>
you'd get funny looks
coderhs has quit [Client Quit]
<ponga>
shevy: do you know what's behind interpreter for the code 10.times.to_a
<maloik>
better off adding whiskey to your tea, or replacing water with vodka
<maloik>
no smell!
symm- has joined #ruby
<ponga>
i always thought times is just for loop in simple
<flughafen>
i mightg go to the tokyo auto salon in january
maasha has joined #ruby
sharpmachine has quit [Ping timeout: 244 seconds]
<maasha>
what is the latest active shoes project?
yfeldblu_ has quit [Ping timeout: 256 seconds]
balazs has joined #ruby
aytch has joined #ruby
dhialife has quit [Quit: Leaving]
<maasha>
shoes4?
<maasha>
greenshoes?
<ponga>
i tried shoes the other day, couldn't figure it out so i had to use java swing
<ljarvis>
shoes4
krisquigley has joined #ruby
<shevy>
ponga I see
<ponga>
next time i will learn python if i needed gui
<maasha>
shoes4 requires jruby :o(
<bosnia>
Maybe someone could give me a hand. I'm on Win64, 2.2.2p95 x64 and using rufus-scheduler. getting: ArgumentError: not a valid cronline : '52 0 * * *'
joelataylor has quit [Ping timeout: 265 seconds]
sevenseacat has quit [Quit: Me dun like you no more.]
<ponga>
are you in germany shevo
<bosnia>
it worked before I reinstalled
<bosnia>
windows
<maasha>
ponga: if you fail with shoes it is pretty bad :o)
<bosnia>
checking source code the error comes up when the '52 0 * * *'.split.length isn't 5
ahmetkapikiran has joined #ruby
<shevy>
ponga nope, a bit south; Austria, Vienna
<ponga>
maasha: i found java swing easier than shoes , i know you guys will call me nuts for this
<maasha>
.oO(nuts)
<ponga>
wow you live in an awesome place shevy
yaw has joined #ruby
edwinvdgraaf has joined #ruby
n008f4g_ has joined #ruby
<shevy>
ponga many years ago, my family travelled through some far away countries; I remember when we were in Seoul, it was extremely cold; the bulgogi they served there was great though. What I liked most was dolsot bibimbap actually
Guest72543 is now known as jesterfraud
<ponga>
shevy: so you basically had " you can't seriously fail this" food
balazs has quit [Ping timeout: 265 seconds]
<bosnia>
bibimbap for breakfast every day when I went to Seoul
<shevy>
hehe
<bosnia>
Seoul was wonderful
<Aeyrix>
I want to trek around sk
hubcaps has joined #ruby
<shevy>
bosnia why were you in Seoul?
<bosnia>
vaca
<bosnia>
went around Asia 1 month
<ponga>
shevy: you had to try living dancing baby octopus chopped up in front of you
<bosnia>
was a peaceful place compared to Hong Kong and mainland China major cities
<ponga>
korea more peaceful than hong kong?
<ponga>
interesting
<bosnia>
ha is that a joke
<jesterfraud>
assuming you mean South Korea?
<jesterfraud>
(Seoul, of course South)
<ponga>
i didn't mention which korea it is !
<ponga>
lol
<bosnia>
yeah vacationed in work camp in north korea
<ponga>
i still remember the aussie telegraph mentioning olympic scores with "good korea" and "bad korea"
<ponga>
looks like it were easier to grasp than regional difference to aussies
<Aeyrix>
Lmao
<Aeyrix>
Can confirm.
allomov has quit [Remote host closed the connection]
mandarinkin has joined #ruby
RegulationD has joined #ruby
chthon has joined #ruby
<shevy>
ponga oh yeah, you guys have to unify korea, the germans managed to do so as well :)
<ponga>
whenever i escort a western dude in seoul i feed him exotic food once and laugh at him
<ponga>
*mean korean
<bosnia>
oh you live there ponga ?
<ponga>
I AM KOREAN
msgodf has quit [Ping timeout: 256 seconds]
<shevy>
exotic food
<bosnia>
I liked how easy it was to learn to read the language
<ponga>
yeah
<bosnia>
I did it on the plane ride from Shanghai
<shevy>
we somehow ended up in Beijing, in some less frequented area; they did not speak much english, so we ordered something
tvw has joined #ruby
ndrei has joined #ruby
<ponga>
bosnia: a king in 17 century thought chinese characters was fucked up and created the whole system on his own
<shevy>
ended up serving us a crab that was still sort of alive, uncooked
<bosnia>
yeah it's cool the history
<bosnia>
Japan needs to get its shit together
<ponga>
then he built a department solely on keeping its version updated
<shevy>
I think they were pulling a prank on us
<ponga>
so it's a written system artificially created and managed, just like programming
<ponga>
yay
<bosnia>
useful to match like train stations or food recognition
<bosnia>
instead of pointing
n3vtelen has joined #ruby
<shevy>
well it's better than those chinese letters
<Ox0dea>
ponga: Just like all language!
<ponga>
Ox0dea: no you guys failed at finding out that small l big I look same
Abhijit has joined #ruby
<ponga>
we did it better
<Ox0dea>
bosnia: The kana aren't particularly hard to learn, and you could theoretically get by with them.
wald0 has joined #ruby
Abhijit has left #ruby [#ruby]
axl_ has joined #ruby
axl__ has joined #ruby
<bosnia>
yeah right did japn 101
<bosnia>
wasn't /that/ hard but does require a lot more focus
<bosnia>
isn't trivial to learn like korean
<ponga>
bosnia: so you learnt how to read korean letter and used it in vacation?
<bosnia>
yeah
<bosnia>
I actually had learnt them before when watching brood war streams back in the day
Xeago has quit [Remote host closed the connection]
commondream has joined #ruby
hedgecore has quit [Ping timeout: 244 seconds]
intinig has joined #ruby
<shevy>
and what does not work
<shevy>
you iterate over all elements
intinig has quit [Read error: Connection reset by peer]
oo_ has quit [Remote host closed the connection]
<shevy>
first run, it outputs the if-clause
<shevy>
second run, it outputs the else-clause
terlar has quit [Quit: WeeChat 1.2]
<bosnia>
ran it can confirm
terlar has joined #ruby
oo_ has joined #ruby
mister_solo has quit [Ping timeout: 250 seconds]
glcx has quit [Changing host]
glcx has joined #ruby
noethics has quit [Ping timeout: 276 seconds]
edwinvdg_ has joined #ruby
<n3vtelen>
ok, I'm confused
Zai00 has joined #ruby
commondream has quit [Ping timeout: 276 seconds]
<bosnia>
What was the specific error or problem that prompted the question?
edwinvdgraaf has quit [Ping timeout: 245 seconds]
lessless has joined #ruby
mrsolo_ has joined #ruby
bruno- has joined #ruby
ndrei has quit [Ping timeout: 265 seconds]
spider-mario has quit [Ping timeout: 252 seconds]
<n3vtelen>
that only prints `your user not exist`
bruno- has quit [Read error: Connection reset by peer]
<n3vtelen>
but ok with first one
<n3vtelen>
`tavakkoli09213380329`
DoubleMalt has joined #ruby
mrsolo_ has quit [Client Quit]
charliesome has joined #ruby
mrsolo_ has joined #ruby
aapole has quit [Ping timeout: 256 seconds]
xehbit has quit [Max SendQ exceeded]
xehbit has joined #ruby
bin_005 has joined #ruby
xehbit has quit [Max SendQ exceeded]
dEPy has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
parduse has joined #ruby
mrsolo_ has quit [Client Quit]
pardusf has quit [Ping timeout: 265 seconds]
symm- has quit [Quit: Leaving...]
mrsolo_ has joined #ruby
ta has quit [Remote host closed the connection]
nym has quit [Quit: Connection closed for inactivity]
xehbit has joined #ruby
solars has quit [Ping timeout: 276 seconds]
maxshelley has joined #ruby
zenguy_pc has quit [Read error: Connection reset by peer]
noethics has joined #ruby
CustosLimen has quit [Ping timeout: 276 seconds]
tvw has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 276 seconds]
intinig has joined #ruby
lkba has joined #ruby
conta has joined #ruby
timonv has joined #ruby
<maloik>
We're looking to output the string version of a regexp into a configuration file using Chef, but escaping slashes is a bit funny... anyone have an idea on how to do that? We basically want to turn "/foo/index.html" into "\/foo\/index\.html", but the input string is dynamic so we were using gsub
bruno- has quit [Read error: Connection reset by peer]
fusillicode has joined #ruby
fusillicode has left #ruby [#ruby]
lessless has joined #ruby
bruno- has joined #ruby
<apeiros>
looks good
<n3vtelen>
does ruby have a standard way to write codes?
RegulationD has quit [Ping timeout: 255 seconds]
<n3vtelen>
like find enumerator
multi_io has quit [Ping timeout: 264 seconds]
<n3vtelen>
4 spaces?
<PierreRambaud>
n3vtelen, some coders like use rubocop, others have their own way to develop :)
plashchynski has quit [Quit: plashchynski]
fabrice31_ has joined #ruby
<n3vtelen>
n3vtelen: thanks
multi_io has joined #ruby
<adaedra>
community guidelines say 2 spaces
alex88 has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
<arup_r>
Suppose I have a string likes `'first_name ASC'` .. how can I add one string like `'COUNT(votes.id)'` and get this `'first_name COUNT(votes.id) ASC'` finally ?
<adaedra>
it's bundle install which throws this error?
<alem0lars>
IDK
j4cknewt has joined #ruby
<alem0lars>
The strange thing is that after running "bundle install --deployment" I always get that error (even if I run "bundle install" or anything). When I remove .bundle directory I don't get that error anymore, but when I retry to run "bundle install --deployment" I start getting that error again
<adaedra>
what commands give this error
<alem0lars>
bundle install --deployment
mister_solo has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
kraljev11 has joined #ruby
kraljev11 is now known as kraljev12
AndyM has joined #ruby
dionysus69 has joined #ruby
bruno- has quit [Read error: Connection reset by peer]
<AndyM>
Hello? I have a quick question about class instance variables and concurrency. Is anyone here that could help?
<maloik>
?anyone
<ruboto>
Just ask your question, if anyone has or can, they will respond.
<AndyM>
Cool
stamina has joined #ruby
<maloik>
bad timing for me as I have to run out for food, but there's plenty of helpful people
<ccooke>
Indeed
<AndyM>
So I'm doing Rails but the question is not specific to it: I read upon thread-safe practices and everywhere people wrote to watch out for class instance variables since they can make your code thread unsafe.
<AndyM>
Still I couldn't really figure out why because the short explanations didnt make much sense to me.
bruno- has joined #ruby
ndrei has joined #ruby
<apeiros>
AndyM: the location or scope of a variable doesn't matter
mister_solo has quit [Ping timeout: 255 seconds]
<apeiros>
AndyM: what matters is whether it is shared across threads
<AndyM>
yes
<ccooke>
AndyM: The main thing is that they can be changed by one instance of a class in one thread, and affect the instance you're working on.
<apeiros>
class ivars are just very likely to be shared
<ccooke>
Aye. Any variable that could be updated in multiple places is a potential issue.
mister_solo has joined #ruby
<AndyM>
you mean for example if i intialize an object and use it in different threads?
yfeldblum has joined #ruby
<ccooke>
AndyM: no. Class ivars are visible to *every* object made from the class
<ccooke>
AndyM: so you can make one object in thread 1, another in thread 2. If the object in thread 2 does something to change a class ivar, the change will affect thread 1.
<apeiros>
ccooke: um, not correct. ivars are never visible outside the object they belong to (I know what you mean, but that's not "visible")
<AndyM>
exactly apeiros
<ccooke>
apeiros: "likely to affect the behaviour of". Better?
<AndyM>
Class instance variables belong to the instance of the object. I'm not talking about class variables
<apeiros>
not sure. struggling myself to find proper wording. might be the headache, though.
<apeiros>
AndyM: your class is probably assigned to a constant, right?
<adaedra>
apeiros: still ill?
<AndyM>
um yes
<bnagy>
AndyM: no, they don't
<apeiros>
AndyM: and that constant is probably not used by just single thread
<bnagy>
class instance variables belong to the class
<ccooke>
AndyM: In Ruby, there are Class variables and Class instance variables.
<bnagy>
the instance has its own ivars
<ccooke>
AndyM: both of these are associated with the class.
<apeiros>
AndyM: which means you're sharing mutable state across threads.
<bnagy>
nobody has talked about classvars yet, so best not to start
<ccooke>
AndyM: maybe the issue here is terminology?
<AndyM>
oh wait
<ccooke>
bnagy: no, it is useful. I think we have a terminology disconnect here.
<apeiros>
and as said before - with threads, that's the issue: sharing mutable state.
<AndyM>
you're right, the class itself can have class instance variables
<bnagy>
ccooke: not realy, the issue is between class @ivars and "normal" @ivars
troulouliou_dev has joined #ruby
<apeiros>
where that state is stored, or how it is accessed doesn't matter.
n008f4g_ has quit [Ping timeout: 252 seconds]
<bnagy>
@@classvars is just going to make it even more confusing imho :)
<AndyM>
and objects that are created from it have their own instance variables
<apeiros>
adaedra: not ill, no. I just have frequently headaches. it's annoying, but it passes.
Filete has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ccooke>
bnagy: Yes. But AndyM is talking about class ivars as if they are instance ivars.
<apeiros>
class ivars are instance ivars
<bnagy>
AndyM: very strictly speaking there's nothing that makes class ivars a threadsafety issue
<apeiros>
there's not really a point in making a distinction
<bnagy>
per se
<AndyM>
yes, i think i mixed those up
tvw has quit []
<ccooke>
AndyM: The point that thread safety depends on sharing more than anything else still stands, though
<bnagy>
any shared access to objects across threads can cause trouble, basically
hdev1 has quit [Read error: Connection reset by peer]
tvw has joined #ruby
<AndyM>
yes i know.
hdev1 has joined #ruby
<ccooke>
AndyM: class ivars are more likely to be shared, and if you want thread safety you should protect all writes to them with locking
<bnagy>
your're safe enough if it's readonly though
mrsolo_ has joined #ruby
<apeiros>
AndyM: so what part are you having issues with?
axsuul has quit [Ping timeout: 276 seconds]
<bnagy>
if it's not readonly you probably have a design problem
<bnagy>
but you're using Rails, so I guess that's a given
aapole has joined #ruby
dhjondoh has quit [Remote host closed the connection]
<AndyM>
wait, i have to form a proper question :D
<AndyM>
ok i'll just repeat what i understand:
<AndyM>
Classes have instance variables and objects instanciated from those classes also have instance variables.
benlovell has quit [Read error: No route to host]
mrsolo_ has quit [Client Quit]
chussenot has joined #ruby
<bnagy>
you can reduce that to "objects have instance variables"
<AndyM>
So if you use an object only in one thread and you dont share it the instance variables in it are safe
sharpmachine has joined #ruby
<bnagy>
some objects happen to be classes
<AndyM>
bnagy dont confuse me :D
<apeiros>
AndyM: so far correct
<AndyM>
i know, in ruby everything is an object
soasme has quit [Quit: Leaving...]
<apeiros>
that, otoh, is not correct ;-)
* bnagy
glares
<bnagy>
sssh ;)
<AndyM>
but in rails for example every request makes rails instanciate an object from my controller class
<AndyM>
in a multithreded environment every thread deals with one request a time
dhjondoh has joined #ruby
<apeiros>
not necessarily
<AndyM>
that means every thread makes an instance of the class
<apeiros>
but yes, rails will use a single thread to process a single request
<AndyM>
so i dont have to care about the instance variables of that object
<bnagy>
pretty much ok so far, carry on
<ccooke>
AndyM: of that object, no.
matcouto has joined #ruby
<AndyM>
all i have to care about are the instance variables of the controller class itself
<AndyM>
right?
<bnagy>
well you can't "accidentally" access those from an instance
<ccooke>
if your assumptions are correct, then yes
Xeago has joined #ruby
<bnagy>
you'd have to do something like self.class.instance_variable_get or something
<AndyM>
yes
<bnagy>
so you'd have to explicitly code for it
<AndyM>
i also have a lot of models
<AndyM>
that i'm messing with
sharpmachine has quit [Ping timeout: 255 seconds]
<AndyM>
my model classes have class instance variables
<bnagy>
this is getting railsy, I'm scared :<
<ccooke>
bnagy: or call a method on the class that alters a class instance variable.
<AndyM>
that i'm accessing in my controllers
<AndyM>
sorryyy :D
edwinvdg_ has quit [Remote host closed the connection]
<AndyM>
ccooke but that method would need to be a class method, right?
stamina has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
<bnagy>
uhhhh... kiiinda...
<ccooke>
AndyM: to access a class instance variable, you will have to call at least one method from the class object, yes
<bnagy>
you have to do _something_ to get visibility of them
<AndyM>
yes, unless you call these weird class_instance_variable_get methods
<ccooke>
AndyM: that accesses the class, it just (at most) hides it from you
lkba_ has joined #ruby
<AndyM>
if my class would be called MyClass
<AndyM>
and it has an instance variable called @var
<AndyM>
i could get this variable by calling MyClass.var in the MyClass code
jmhmccr has joined #ruby
<AndyM>
(although that's terrible)
<bnagy>
nope
<bnagy>
not without other scaffolding
<apeiros>
> AndyM: yes, unless you call these weird class_instance_variable_get methods
<AndyM>
ok maybe i need an accessor
<apeiros>
that's calling a method too ;-)
<ccooke>
AndyM: you would only be able to do that if a var method had been defined on MyClass to return it
<AndyM>
oouukaaay
lkba has quit [Ping timeout: 265 seconds]
<AndyM>
now i see
<AndyM>
it was just mixed up terminology
justintv90 has quit [Remote host closed the connection]
bruno- has quit [Read error: Connection reset by peer]
<AndyM>
you dont' have to care about instance vars of objects if you dont share the object itself between multiple threads
bruno- has joined #ruby
<ccooke>
If you *are* using something like MyClass.var to get some data, then that *is* calling the class and *might* be accessing a class instance variable that *definitely could* be a thread safety risk
edwinvdg_ has joined #ruby
<AndyM>
yes
<bnagy>
you don't have to care about concurrent access to anything unless the thing is shared between threads
<ccooke>
AndyM: that is true. Just remember that the class is also an object and definitely *is* shared across threads.
<AndyM>
but you should care about the instance variables of the class because they are definitly shared everywhere you want (at least in Rails)
<AndyM>
yes
balazs has joined #ruby
<ccooke>
In any mulitthreaded code
<AndyM>
that actually makes sense :D
<ccooke>
Leave Rails out of it, it seems to make bnagy and apeiros twitch. And we should be kind to apeiros at least, since they have a headache ;-)
<apeiros>
it doesn't make me twitch, no
<AndyM>
k sawry
<bnagy>
I just don't think it's a good pattern to use your class as a storage closet
<apeiros>
but rails is irrelevant to the issue
<ccooke>
It is, yes
<bnagy>
except they built a whole framework around doing that
krz has quit [Ping timeout: 258 seconds]
<AndyM>
yes it is
<ccooke>
bnagy: the behaviour we're talking about is not bad behaviour, whether it's in rails or not.
bronson_ has joined #ruby
<bnagy>
that's a whole different debate
<ccooke>
Classes are objects. Classes get shared across threads. Making objects from those classes means having to think about thread safety.
<bnagy>
I disagree, but I don't really want to fight about it
<ccooke>
(but hey, using threads means having to think about thread safety)
plashchynski has joined #ruby
CyborgCygnus has quit [Quit: I hath quit]
<AndyM>
thank you guys
<AndyM>
my laundry is ready
<bnagy>
if you keep state in state-storing-things then it's much more obvious that you need threadsafe access to them
edwinvdgraaf has quit [Ping timeout: 272 seconds]
<bnagy>
AndyM: re HOW, ccooke already mentioned Mutex, there's also Queue
<ccooke>
Indeed
<apeiros>
and Monitor
<bnagy>
imho those two can manage 99% of concurrency problems
<ccooke>
Queues make things so much simpler
<bnagy>
there are more esoteric ones :/
DoubleMalt has quit [Remote host closed the connection]
balazs has quit [Ping timeout: 245 seconds]
<bnagy>
AndyM: Mutex has a nice method synchronize, so like @mut.synchronize { #shared access to something }
<AndyM>
yes i also read about that
<AndyM>
but mutexes reduce concurrency
<bnagy>
I prefer to write with Queues, but I don't have a religious viewpoint about whether it's better
chinmay_dd has joined #ruby
<AndyM>
and i dont need to use queues either
<bnagy>
they don't reduce it, they just enforce serial access to shared stuff
<AndyM>
the best approach in my situation is simply improving code
<apeiros>
AndyM: during a synchronized code block, other threads can still execute
<bnagy>
avoiding the problem in the first place is definitely the winner
<apeiros>
they just can't enter the same mutex
davidhq has joined #ruby
<AndyM>
bnagy but that most likely inhibits parallel execution, right?
<apeiros>
AndyM: no, see ^
<bnagy>
it miiiight
bronson_ has quit [Ping timeout: 244 seconds]
<bnagy>
if you have crazy lock contention, but you hopefully don't
bruno- has quit [Read error: Connection reset by peer]
<apeiros>
it only inhibits concurrent execution if ALL your code wants to execute the same synchronized block
thebastl has joined #ruby
<AndyM>
yes i know that unaffected threads are not concerned
<bnagy>
if you get to that point then you redesign anyway
<apeiros>
and yes, that means you should make your syncs narrow
psy_ has quit [Ping timeout: 264 seconds]
<ccooke>
If you need exclusive action, use Thread.exclusive {}. For anything else, assume that other threads *might* take action.
Rickmasta has joined #ruby
RegulationD has joined #ruby
<apeiros>
ccooke: Thread.exclusive is a no-no
<apeiros>
don't use it
<AndyM>
but especially in my "situation" the chance is very high that it eventually affects concurrency
<AndyM>
if you simply use mutexes
<apeiros>
you only use it if you're building threading primitives. i.e. if you write a class like Mutex itself.
<ccooke>
apeiros: I use it for one thing only (which is code that needs to redefine and reload an entire system). There it's essential. Nowhere else.
sarkyniin has joined #ruby
<AndyM>
say if you have 10 000 requests and all objects need to access the same shared variable
<bnagy>
if they need RW access to it then you're kind of boned
<AndyM>
yes
<bnagy>
most people use copies or sharding or whatever then
<AndyM>
reading only is no problem
<bnagy>
but it becomes fiddly
<AndyM>
but then you can use constants
<ccooke>
apeiros: Mostly in a bit of code that checks and reloads all the .rb files that have been modified. You definitely don't want any other code executing during that :-)
<bnagy>
imho push it out to a system that's built for that ( like a cache / db / whatever )
ndrei has quit [Ping timeout: 255 seconds]
<bnagy>
ok I have to do important things concerning beer
<AndyM>
and i have to pick up my laundry
<AndyM>
thanx again guys
<bnagy>
np \o
<AndyM>
also this made me hungry
RegulationD has quit [Ping timeout: 244 seconds]
j4cknewt has quit [Remote host closed the connection]
ndrei has joined #ruby
troulouliou_dev has quit [Ping timeout: 265 seconds]
astrobun_ has quit [Remote host closed the connection]
fabrice3_ has quit [Remote host closed the connection]
<EasyCo>
If I'm working on a gem and want to require it for testing purposes without actually building and installing the gem, what are my options?
thebastl has quit [Quit: Leaving...]
<adaedra>
bundler can load gems from a path
serivich has joined #ruby
ahmetkapikiran has joined #ruby
benlovell has joined #ruby
rikkipitt has joined #ruby
senayar has quit [Remote host closed the connection]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
matcouto has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider>
EasyCo: set your load path correctly and it'll Just Work
<zenspider>
bundler gets in the way and musses it up
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #ruby
krz has joined #ruby
<EasyCo>
Yah, exactly, bundler keeps fucking with my juju
Spami has quit [Remote host closed the connection]
polysics has quit [Remote host closed the connection]
<zenspider>
if you can remove it from the equation, do so
<zenspider>
if you can't, then you're gonna have to declare the local path in the Gemfile
<zenspider>
drives me up the wall
polysics has joined #ruby
ur5us has quit [Remote host closed the connection]
Scroff has quit [Remote host closed the connection]
<EasyCo>
pry -I ./lib -rgemname
konsolebox has quit [Quit: Leaving]
<EasyCo>
Beautiful, thanks zenspider
<zenspider>
awesome. good luck. bedtime for me
troulouliou_dev has joined #ruby
<EasyCo>
Same
<EasyCo>
Good to go to bed on a small win.
Scroff has joined #ruby
kraljev12 has quit [Quit: kraljev12]
matcouto has joined #ruby
startupality has joined #ruby
terlar has quit [Read error: No route to host]
matcouto has quit [Client Quit]
polysics has quit [Ping timeout: 252 seconds]
sarkyniin has quit [Quit: Quit]
Scroff has quit [Remote host closed the connection]
tvw has quit []
sdothum has joined #ruby
Scroff has joined #ruby
phutchins has joined #ruby
timonv has quit [Ping timeout: 252 seconds]
rikkipit_ has joined #ruby
tedstriker has joined #ruby
rikkipitt has quit [Ping timeout: 252 seconds]
millerti has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 250 seconds]
AlphaAtom has joined #ruby
Xeago has quit [Remote host closed the connection]
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
fabrice31 has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
juanpaucar has joined #ruby
joelataylor_ has joined #ruby
AlphaAtom has joined #ruby
khebbie has joined #ruby
travis___ has joined #ruby
travis___ is now known as axilla
juanpaucar has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
pyo_ has joined #ruby
serivich has quit [Read error: Connection reset by peer]
mathie has quit [Quit: Quitting...]
mathie has joined #ruby
rodfersou has joined #ruby
sharpmachine has joined #ruby
starfox_sf has joined #ruby
goodcodeguy has joined #ruby
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Dreamer3_ is now known as Dreamer3
chussenot has quit [Quit: chussenot]
sharpmachine has quit [Ping timeout: 264 seconds]
starfox_sf has quit [Ping timeout: 256 seconds]
Xeago has joined #ruby
centrx has joined #ruby
Soda has joined #ruby
fujimura has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 276 seconds]
pepperbreath1 has quit [Ping timeout: 244 seconds]
andikr has quit [Remote host closed the connection]
hahuang65 has quit [Ping timeout: 255 seconds]
hoov has joined #ruby
ur5us has joined #ruby
ylla has quit [Ping timeout: 252 seconds]
centrx has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
Papierkorb has joined #ruby
bmurt has joined #ruby
pepperbreath has joined #ruby
bmurt has quit [Client Quit]
ndrei has joined #ruby
pepperbreath has quit [Read error: Connection reset by peer]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pepperbreath has joined #ruby
yaw has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
yaw has quit [Client Quit]
yfeldblum has quit [Ping timeout: 256 seconds]
bkxd has joined #ruby
tkuchiki has quit [Ping timeout: 276 seconds]
allcentury has quit [Quit: WeeChat 1.1.1]
RegulationD has joined #ruby
Abhijit has joined #ruby
Abhijit has left #ruby [#ruby]
Musashi007 has quit [Quit: Musashi007]
krisquigley has quit [Remote host closed the connection]
Scroff has quit [Remote host closed the connection]
krisquigley has joined #ruby
chinmay_dd has quit [Ping timeout: 252 seconds]
chinmay__ has joined #ruby
Scroff has joined #ruby
RegulationD has quit [Ping timeout: 252 seconds]
centrx has joined #ruby
krisquigley has quit [Ping timeout: 256 seconds]
gisli has joined #ruby
charliesome has quit [Quit: zzz]
A205B064 has quit [Ping timeout: 252 seconds]
chinmay__ has quit [Remote host closed the connection]
<gisli>
hiya, so I have this loop in my script "(00...100).each{|n| STDOUT.write(gen_redis_proto("RPUSH","testlist","#{n}"))". How would I go about padding the numbers?
bin_005 has quit [Ping timeout: 252 seconds]
ldnunes has joined #ruby
<centrx>
gisli, Use rjust/ljust or sprintf?
commondream has joined #ruby
davidhq has joined #ruby
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
allcentury has joined #ruby
ahmetkapikiran has quit [Remote host closed the connection]
c355E3B has joined #ruby
commondream has quit [Ping timeout: 246 seconds]
charliesome has joined #ruby
centrx has quit [Ping timeout: 265 seconds]
k3asd` has quit [Ping timeout: 265 seconds]
TinkerTyper has quit [Ping timeout: 264 seconds]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dgutierrez1287 has joined #ruby
chussenot has joined #ruby
ur5us has quit [Remote host closed the connection]
Scroff has quit [Remote host closed the connection]
polysics has joined #ruby
ur5us has joined #ruby
cajone has joined #ruby
ndrei has quit [Ping timeout: 246 seconds]
casadei has joined #ruby
mike___1234 has quit [Read error: Connection reset by peer]
fabrice31 has quit [Remote host closed the connection]
Scroff has joined #ruby
user121212 has joined #ruby
fabrice31 has joined #ruby
polysics has quit [Read error: Connection reset by peer]
mike___1234 has joined #ruby
polysics has joined #ruby
TinkerTyper has joined #ruby
SolarSailor has joined #ruby
senayar has joined #ruby
OrbitalKitten has joined #ruby
downwithbender has joined #ruby
havenwood has quit [Ping timeout: 256 seconds]
polysics_ has joined #ruby
polysics has quit [Read error: Connection reset by peer]
downwithbender has quit [Client Quit]
Oxelist has joined #ruby
symbol has joined #ruby
polysics_ has quit [Read error: Connection reset by peer]
polysics has joined #ruby
SolarSailor has quit [Remote host closed the connection]
barkerd427 is now known as zz_barkerd427
ldnunes_ has joined #ruby
hoov has quit [Ping timeout: 252 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
sung_ has joined #ruby
OrbitalKitten has joined #ruby
rushed has joined #ruby
jack_rabbit has quit [Ping timeout: 246 seconds]
ldnunes_ has quit [Client Quit]
polysics has quit [Read error: Connection reset by peer]
polysics_ has joined #ruby
<user121212>
I'm trying to scrap something using nokogiri, I want to find the value inside javascript array, like the value of 'b' in this code https://eval.in/private/d4d128835699e0, I got the script bllock by using doc.search("script")[24], How can I get the value of 'b' here?
qwertme has joined #ruby
chinmay_dd has joined #ruby
tokik_ has joined #ruby
polysics_ has quit [Read error: Connection reset by peer]
tvw has joined #ruby
polysics has joined #ruby
antgel has joined #ruby
ferfoster has joined #ruby
tvw has quit [Client Quit]
thebastl has joined #ruby
<canton7>
user121212, you write something that can parse javascript ;)
djellemah has joined #ruby
yaw has joined #ruby
polysics_ has joined #ruby
polysics has quit [Read error: Connection reset by peer]
<Darkwater>
fork a javascript interpreter
<gisli>
centrx: cheers, will check that out :)
<Darkwater>
and edit it
<Darkwater>
is gud idea I swer
yaw has quit [Client Quit]
polysics_ has quit [Read error: Connection reset by peer]
yaw has joined #ruby
polysics has joined #ruby
chinmay_dd has quit [Ping timeout: 272 seconds]
<user121212>
cantor7: nokogiri object is xml, right?
yaw has quit [Max SendQ exceeded]
<canton7>
...wut?
<canton7>
nokogiri is an xml/html parser
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
ndrei has joined #ruby
sandelius has joined #ruby
chinmay_dd has joined #ruby
serivich has joined #ruby
polysics has quit [Read error: Connection reset by peer]
polysics has joined #ruby
Xeago has quit [Remote host closed the connection]
AugustoCesar has joined #ruby
CustosLimen has quit [Ping timeout: 265 seconds]
<ljarvis>
maloik: I'm not :(
<maloik>
:(
davidhq has joined #ruby
AugustoCesar has left #ruby [#ruby]
krz has joined #ruby
sharpmachine has joined #ruby
SOLDIERz has joined #ruby
cajone has left #ruby [#ruby]
davidhq has quit [Client Quit]
OrbitalKitten has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
charliesome has quit [Quit: zzz]
sharpmachine has quit [Ping timeout: 250 seconds]
allomov has quit [Remote host closed the connection]
<depesz>
found this, looks like working, Socket.gethostbyname(Socket.gethostname).first
failshell has joined #ruby
unshadow has quit [Quit: leaving]
k3asd` has quit [Quit: leaving]
k3asd` has joined #ruby
CamonZ has quit [Read error: Connection reset by peer]
AlphaAtom has joined #ruby
mrmargolis has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
AlphaAtom has joined #ruby
dopie has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
<failshell>
i want to merge 2 files. both share a common part, and have differences as well. how would you go about doing that? both are text files.
centrx has joined #ruby
edwinvdgraaf has joined #ruby
AlphaAtom has quit [Max SendQ exceeded]
<failshell>
what i did was read the files and slice them, add those parts to arrays, merged the arrays and .uniq them. that works. but im curious to see if there's a better way to do it
<lessless>
is it possible to get value of local variable named `foo_rate` with the 'foo' string in the hands?
AlphaAtom has joined #ruby
<lessless>
like ['foo', 'bar', 'baz']. each { |n| local_variable_get "#{n}_rate" }
CloCkWeRX has joined #ruby
kobain has joined #ruby
<ljarvis>
lessless: eval
<ljarvis>
just beware of bindings
<lessless>
what do you mean?
<lessless>
what bindings?
khebbie has joined #ruby
edwinvdg_ has joined #ruby
<ljarvis>
lessless: basically it depends on the scope of the assignment, but eval is what you want
micmus has joined #ruby
<ljarvis>
>> foo_rate = "omg"; eval("foo_rate") if local_variables.include?(:foo_rate) # to ensure some sanity
SouL_|_ has quit [Remote host closed the connection]
justintv90 has quit [Max SendQ exceeded]
<shevy>
well, the moment you have the logic is the moment you have the ruby code
<shevy>
what you show here is actually the second array
<shevy>
so you could just use that without any merging right? :>
justintv90 has joined #ruby
lxsameer has quit [Quit: Leaving]
justintv90 has quit [Max SendQ exceeded]
livathinos has joined #ruby
SOLDIERz has quit [Ping timeout: 256 seconds]
<failshell>
shevy: that's the lack of coffee ;p i updated the gist
justintv90 has joined #ruby
<failshell>
id like to end up with ['foo', 'foobar', 'bar', 'potato']
<shevy>
aha
<dudedudeman>
adaedra: adaedra!
justintv90 has quit [Max SendQ exceeded]
<dudedudeman>
failshell: failshell!
<dudedudeman>
shevy: shevy!
<adaedra>
that double hl
<dudedudeman>
hey hey hey
j4cknewt has joined #ruby
<failshell>
shevy: actually, that doesn't even make sense.
<shevy>
so you sort of want to check on the prior and succeeding element
justintv90 has joined #ruby
<failshell>
shevy: id like to keep the old index positions as much as possible in the new array
<shevy>
well, it looks like a .cycle() call
juanpaucar has joined #ruby
vishal_ has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<shevy>
I don't really understand you
<shevy>
isn't what you are describing essentially a Hash then?
pdoherty_ has joined #ruby
tenderlove has joined #ruby
darkf has quit [Quit: Leaving]
intinig has joined #ruby
justintv90 has joined #ruby
<shevy>
actually
pdoherty_ has quit [Client Quit]
<shevy>
why don't you merge on an element by element basis
justintv90 has quit [Max SendQ exceeded]
<failshell>
shevy: what i want to achieve is this. i have 2 configuration files (text) that share a common base, but have differences as well. im trying to merge those 2 files into one. that keeps the common parts. and the differences as well
<shevy>
that way your old array is retained as it is, and you only have to add new elements to it
Xeago has joined #ruby
<failshell>
so what i did was open the files, slice through them, added those slices into an array and merged the arrays
justintv90 has joined #ruby
mcclurmc has joined #ruby
<failshell>
it works, but it messes up the order of where things where initially
justintv90 has quit [Max SendQ exceeded]
<failshell>
not a deal breaker. but not great either
<ruboto>
wnd # => ["foo", "bar", "potato", "foobar"] / ["foo", "foobar", "bar", "potato"] ...check link for more (https://eval.in/379846)
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has joined #ruby
fella5s has quit [Ping timeout: 258 seconds]
edwinvdgraaf has quit [Ping timeout: 246 seconds]
endorphine_ has joined #ruby
Scroff has joined #ruby
ESpiney has quit [Ping timeout: 276 seconds]
anisha has joined #ruby
khebbie has joined #ruby
khebbie has quit [Client Quit]
dzejrou has quit [Read error: Connection reset by peer]
yardenbar has quit [Quit: Leaving]
danzilio has quit [Quit: Baiii!]
dopie has joined #ruby
dopie has quit [Client Quit]
<failshell>
wnd: interesting, will play with Set
starfox_sf has joined #ruby
justintv90 has quit [Max SendQ exceeded]
<apeiros>
failshell, wnd: if f1 & f2 are array, you can just use `f1 | f2` instead
mrmargol_ has joined #ruby
<apeiros>
>> f1 = %w[foo bar potato]; f2 = %w[foo foobar bar]; p [f1 | f2, f2 | f1]
<ruboto>
apeiros # => [["foo", "bar", "potato", "foobar"], ["foo", "foobar", "bar", "potato"]] ...check link for more (https://eval.in/379851)
ESpiney_ has quit [Ping timeout: 258 seconds]
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
balazs has joined #ruby
mrmargolis has quit [Ping timeout: 255 seconds]
Fraeon has quit [Remote host closed the connection]
balazs has quit [Remote host closed the connection]
justintv90 has joined #ruby
jpfuentes2 has joined #ruby
justintv90 has quit [Max SendQ exceeded]
balazs has joined #ruby
yardenbar has joined #ruby
starfox_sf has quit [Ping timeout: 264 seconds]
justintv90 has joined #ruby
revath has quit [Ping timeout: 264 seconds]
avril14th has joined #ruby
justintv90 has quit [Max SendQ exceeded]
mkewasz has joined #ruby
sharpmachine has joined #ruby
justintv90 has joined #ruby
<avril14th>
Hello, what's the difference between, given a class A and a module B, A.include B and class A; extend B; end; ?
dzejrou has joined #ruby
justintv90 has quit [Max SendQ exceeded]
atom_ has joined #ruby
<apeiros>
avril14th: include adds the module's methods as instance methods. extend as class methods.
railsraider has joined #ruby
justintv90 has joined #ruby
francoi__ has joined #ruby
justintv90 has quit [Max SendQ exceeded]
sinkensabe has quit [Remote host closed the connection]
justintv90 has joined #ruby
<wnd>
apeiros, obvious solution is obvious. thanks. it's not like I haven't done that before...
chouhoulis has quit [Remote host closed the connection]
<atom_>
is installing ruboto on windows is painfull like rails?
chouhoulis has joined #ruby
riton has joined #ruby
<avril14th>
apeiros: sorry I meant the difference between A.class.include B and class A; extend B; end;
yardenbar has quit [Quit: Leaving]
* avril14th
is getting tired
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<avril14th>
so including in the class versus extending the class
<apeiros>
avril14th: you realize that A.class.include is Class.include?
Macaveli has joined #ruby
<apeiros>
avril14th: i.e., your correction makes no sense
<avril14th>
:)
dgutierrez1287 has joined #ruby
<avril14th>
so true
<atom_>
is installing ruboto on windows is painfull like rails?
Macaveli has quit [Client Quit]
<apeiros>
avril14th: and it doesn't match your description either. your first question matches your description
<apeiros>
avril14th: and to that I gave you the answer
<apeiros>
so including in the class -> add instance methods
baweaver has joined #ruby
<apeiros>
extending the class -> add class methods
blandflakes_ has joined #ruby
ogpastaling has joined #ruby
blandflakes has quit [Disconnected by services]
blandflakes_ is now known as blandflakes
<riton>
hi guys, I'm wondering what's the easies way to build a RPM package to distribute my ruby libraries ? I've seen that https://github.com/fedora-ruby/gem2rpm exists, as anyone aleady used it ? Is this the recommended way (create a GEM and then create a SPEC file from it) ? Thanks
railsraider has quit [Quit: railsraider]
<avril14th>
apeiros: thanks
ogpastaling has quit [Remote host closed the connection]
<apeiros>
avril14th: note that the *source* is always the instance methods of the module.
nonparfumee has joined #ruby
<shevy>
riton most likely I think you are the first person here on #ruby who wanted to do so :)
<avril14th>
apeiros: yes, the code stays there :)
<apeiros>
o0
<shevy>
most of the time when you have a .gem file, you already won't need any other distribution's specific manager
ogpastaling has joined #ruby
stoogenmeyer__ has quit [Ping timeout: 276 seconds]
dzejrou has quit [Read error: Connection reset by peer]
<riton>
shevy: to create a RPM package ? :-D
<shevy>
but why
<shevy>
you have "gem"
dgutierrez1287 has quit [Ping timeout: 265 seconds]
<shevy>
you could put it into a .rpm as an additional repository
<riton>
because it requires "an other" way to distribute software , new repositories and so
larissa has quit [Max SendQ exceeded]
larissa has joined #ruby
pyo_ has quit []
<riton>
shevy: can you explain what you means by "you could put it into a .rpm as an additional repository" ?
<shevy>
well that is the only use case I see for that
<shevy>
you want to create a .rpm only from one specific .gem file right
intinig has joined #ruby
<riton>
yes
<shevy>
so you have to satisfy whatever the standard for rpm demands for a ruby-addon package; I am sure it's essentially the same as the perl or python addons
<mwlang>
contains some nice use of lambdas (which I’m still getting comfortable with) as well as doing a great job of keeping the “data” close to the tests so you get the full picture of what’s being tested and how.
timonv has quit [Ping timeout: 276 seconds]
<foucist>
zomg.. the great channel merge of 2015
lkba_ has quit [Ping timeout: 272 seconds]
madarcode has joined #ruby
<madarcode>
hi all
<madarcode>
i have a general question, how do frontend developers and backend developers make an API? Do they have a meeting and decide what function names to give to an API before they start coding?
atom_ has quit [Ping timeout: 246 seconds]
<sung_>
what's a good book for ruby oo design pattern
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<SebastianThorn>
madarcode: i dont think there is a "defacto" way to that
ndrei has joined #ruby
<madarcode>
okay but what's a good way to do it?
<mwlang>
madarcode: create the user stories, write the test specs to look like you want the API to look. Let the backenders begin building, then frontenders start building as the API’s are implemented.
slawrenc_ has joined #ruby
intinig has joined #ruby
solars has quit [Ping timeout: 265 seconds]
<mwlang>
the test specs can be written together by both backenders and frontenders
<madarcode>
test specs means tests like unit testing right?
<mwlang>
you’ll find that you’ll quickly go through a bunch of naming schemes before settling on the final and all without having to write the actual implementation. the user stories crystalize what’s needed and what’s YAGNI
senayar has quit [Remote host closed the connection]
<mwlang>
madarcode: yes
<madarcode>
okay do you know a tutorial where I can look this up?
tomphp has joined #ruby
tomphp has quit [Client Quit]
intinig has quit [Remote host closed the connection]
<mwlang>
madarcode: unfortunately, no. just experience from doing apis previously. If you have a team of developers, get ‘em in a room together and iron out the strategy
tomphp has joined #ruby
freerobby has joined #ruby
<madarcode>
okay I see.... Thank you. The thing is we're students so it's tough to get experience hah.
intinig has joined #ruby
<mwlang>
madarcode: but you’re still smart people. (hopefully!) — the user stories, if written well will guide the design.
<mwlang>
I see some good potentials on that 2nd one.
RegulationD has quit [Read error: Connection reset by peer]
rushed has quit [Quit: rushed]
millerti has joined #ruby
Koveno has joined #ruby
RegulationD has joined #ruby
n3vtelen has quit [Remote host closed the connection]
madarcode has quit [Quit: Page closed]
ddarkpassenger has joined #ruby
apofis has quit [Remote host closed the connection]
aryaching has joined #ruby
intinig has quit [Remote host closed the connection]
apofis has joined #ruby
_seanc_ has joined #ruby
senayar has joined #ruby
baweaver has quit [Remote host closed the connection]
intinig has joined #ruby
_ixti_ has joined #ruby
ebbflowgo has joined #ruby
RegulationD has quit [Ping timeout: 276 seconds]
Lucky___ has joined #ruby
tomphp has quit [Read error: Connection reset by peer]
apofis has quit [Ping timeout: 276 seconds]
RegulationD has joined #ruby
Xeago has quit []
Xeago has joined #ruby
intinig has quit [Remote host closed the connection]
tomphp has joined #ruby
Scroff has quit [Remote host closed the connection]
redlegion has quit [Quit: ZNC - 1.6.0 - http://znc.in]
rcvalle has joined #ruby
dseitz has joined #ruby
s2013 has quit [Excess Flood]
mrmargol_ has quit [Remote host closed the connection]
s2013 has joined #ruby
<mwlang>
So I have a Rack middleware app that does some processing on the incoming request and sets some hash values on the env…how do I access the rack app’s env from a test spec?
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scroff has joined #ruby
segfalt_ has quit [Quit: segfalt_]
finisherr has joined #ruby
atomical has joined #ruby
whoami has joined #ruby
bantic has quit [Quit: bantic]
whoami is now known as Guest60951
Guest60951 has quit [Max SendQ exceeded]
dfinninger has joined #ruby
whoami_ has joined #ruby
djbkd has joined #ruby
ych_ has joined #ruby
commondream has quit [Remote host closed the connection]
redlegion has joined #ruby
allomov has quit [Remote host closed the connection]
joelataylor_ has quit [Quit: Be back later ...]
stan has quit [Ping timeout: 256 seconds]
dhjondoh has quit [Remote host closed the connection]
hubcaps_ has joined #ruby
Guest31215 has joined #ruby
wald0 has joined #ruby
fedexo has joined #ruby
<Guest31215>
anyone here form New York?
yoongkang has joined #ruby
<kitallis>
has anyone tried using prawn and fitting images of various sizes into an appropriate page format (a4/a5), scale the images to best fit the page, if they are too small, ignore etc.?
msnyon has quit [Read error: Connection reset by peer]
Scroff has quit [Read error: Connection reset by peer]
Scroff has joined #ruby
towski_ has joined #ruby
avril14th has quit [Read error: Connection reset by peer]
s2013 has quit [Read error: Connection reset by peer]
<Senjai>
Guest31215: lol, no.
<Senjai>
Guest31215: We prefer to have people ask questions in chat, so others can benefit from the answers
<dudedudeman>
help one person, help all persons
<Senjai>
Guest31215: If you need private mentoring, go hire someone off of codementor or something.
Spami has quit [Quit: This computer has gone to sleep]
<Senjai>
kitallis: We had that issue with label printing. We had two adapters that would print two different labels depending on the request.
s2013 has joined #ruby
<dudedudeman>
codementor is great... but some of these rates are insane lol
<Senjai>
They're actually extremely low for the industry :P
s2013 has quit [Max SendQ exceeded]
<dudedudeman>
$280 an hour!!?
<Senjai>
For some people, totally reasonable
<foucist>
filter out everyone in SF
strixd has quit [Quit: 500]
cmisenas has quit [Read error: Connection reset by peer]
<dudedudeman>
i'd love to make $280 an hour
s2013 has joined #ruby
<Senjai>
dudedudeman: Get to working. I know a consultant that bills for $600 an hour :)
<dudedudeman>
mother @#%!
<dudedudeman>
one $600, please
benlovell has quit [Ping timeout: 276 seconds]
thebastl has quit [Quit: Leaving...]
mleung has quit [Quit: mleung]
The_Phoenix has quit [Ping timeout: 255 seconds]
ogpastaling has quit [Remote host closed the connection]
<dudedudeman>
i currently don't make that in a week at my m-f job.
cmisenas has joined #ruby
ogpastaling has joined #ruby
mleung has joined #ruby
_seanc_ has joined #ruby
francoi__ has quit [Read error: Connection reset by peer]
mrmargol_ has joined #ruby
allomov has quit [Remote host closed the connection]
paulcsmith has quit [Quit: Be back later ...]
francoi__ has joined #ruby
moted has joined #ruby
but3k4_ has quit [Read error: Connection reset by peer]
but3k4 has joined #ruby
seph429 has joined #ruby
_seanc__ has joined #ruby
djbkd has quit [Remote host closed the connection]
ogpastaling has quit [Ping timeout: 255 seconds]
seph429 has quit [Client Quit]
mrmargolis has quit [Ping timeout: 255 seconds]
starfox_sf has joined #ruby
maletor has joined #ruby
lele|w has quit [Remote host closed the connection]
<havenwood>
Guest31215: Are you looking for free or paid help? You can get help here for free! For paid help, +1 codementor.io based on folks on there though I haven't used it. That'd be fun.
Oka has joined #ruby
_seanc_ has quit [Ping timeout: 276 seconds]
_seanc__ is now known as _seanc_
davedev24_ has quit [Ping timeout: 258 seconds]
davedev24_ has joined #ruby
jgt3 has quit [Ping timeout: 265 seconds]
arup_r has joined #ruby
<havenwood>
I need to charge more for consulting so I can hire consultants for fun.
spider-mario has joined #ruby
<dudedudeman>
there are definitely some folks on their with reasonable rates if you need
rgs has joined #ruby
bgmarx has joined #ruby
sharpmachine has quit [Remote host closed the connection]
platosha__ has quit [Read error: Connection reset by peer]
sharpmachine has joined #ruby
cndiv has joined #ruby
jespada has joined #ruby
<dudedudeman>
or reddit. there's a lot of people willing ot help on reddit as well
g0bl1n has joined #ruby
krisquigley has quit [Remote host closed the connection]
zendrix has joined #ruby
terlar has quit [Ping timeout: 258 seconds]
banister has joined #ruby
withnale_ has quit [Ping timeout: 256 seconds]
sharpmachine has quit [Remote host closed the connection]
platosha__ has joined #ruby
sharpmachine has joined #ruby
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24_ has quit [Ping timeout: 252 seconds]
s2013 has joined #ruby
bantic has joined #ruby
jayeola has joined #ruby
mistermocha has joined #ruby
polysics has quit [Remote host closed the connection]
_seanc_ has quit [Quit: _seanc_]
jayeola has quit [Client Quit]
shredding has quit [Ping timeout: 276 seconds]
djdarkbeat has joined #ruby
Guest31215 has quit [Remote host closed the connection]
sarkyniin has quit [Quit: Quit]
riffraff has joined #ruby
Tennis has joined #ruby
__butch__ has joined #ruby
casadei has quit [Remote host closed the connection]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bantic has quit [Client Quit]
_seanc_ has joined #ruby
riton has left #ruby [#ruby]
davedev24_ has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scrofff has joined #ruby
anisha has quit [Quit: Leaving]
mrsolo has joined #ruby
benlovell has joined #ruby
fedexo has quit [Ping timeout: 256 seconds]
danzilio has joined #ruby
datanoise has joined #ruby
danzilio has quit [Max SendQ exceeded]
ni291187 has joined #ruby
ni291187 is now known as AvoidTheGroid
Scroff has quit [Ping timeout: 244 seconds]
danzilio has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
<AvoidTheGroid>
my favorite place in America
<AvoidTheGroid>
is the ruby come
<AvoidTheGroid>
conf
mrsolo has quit [Client Quit]
<havenwood>
AvoidTheGroid: San Antonio? Or wherever it happens to be? :)
<AvoidTheGroid>
yes :)
mrsolo has joined #ruby
endorphine_ has joined #ruby
<dudedudeman>
so close to home. i'm excited about going this year
<havenwood>
See you there.
bricker has joined #ruby
whiskystig has joined #ruby
wildroman2 has joined #ruby
<dudedudeman>
yeah??
<dudedudeman>
it'll be my first tech conf in this sector, so i'm excited about it
Scroff has joined #ruby
paulcsmith has joined #ruby
pengin has joined #ruby
senayar has quit [Ping timeout: 256 seconds]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Scrofff has quit [Ping timeout: 265 seconds]
AvoidTheGroid has quit [Remote host closed the connection]
vyorkin has quit [Read error: Connection reset by peer]
mikecmpbll has quit [Ping timeout: 255 seconds]
vyorkin has joined #ruby
skade has joined #ruby
allenn has quit [Ping timeout: 265 seconds]
blandflakes has joined #ruby
dumdedum has joined #ruby
Zai00 has quit [Quit: Zai00]
mrsolo has quit [Quit: Leaving]
chussenot has quit [Quit: chussenot]
jackjackdripper has joined #ruby
msgodf has quit [Ping timeout: 265 seconds]
polysics has joined #ruby
francoi__ has quit [Remote host closed the connection]
francoi__ has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
djbkd has joined #ruby
edwinvdgraaf has joined #ruby
dfockler has joined #ruby
jackjackdripper1 has joined #ruby
mistermo_ has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Ping timeout: 276 seconds]
vyorkin has quit [Ping timeout: 265 seconds]
francoi__ has quit [Ping timeout: 255 seconds]
edwinvdg_ has joined #ruby
qwertme has joined #ruby
timonv has joined #ruby
mistermocha has joined #ruby
justintv90 has quit [Remote host closed the connection]
chouhoulis has quit [Remote host closed the connection]
dumdedum has quit [Ping timeout: 250 seconds]
wpp has joined #ruby
mrsolo has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
chthon has quit [Ping timeout: 244 seconds]
juanpaucar has quit []
rockymadden has joined #ruby
finisherr has quit [Quit: finisherr]
AlphaAtom has joined #ruby
dionysus69 has quit [Ping timeout: 264 seconds]
deric_skibotn has joined #ruby
jackjackdripper has quit [Ping timeout: 245 seconds]
edwinvdg_ has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
k3asd` has quit [Ping timeout: 255 seconds]
rockymadden has quit [Client Quit]
bgmarx has quit [Remote host closed the connection]
Scroff has quit [Ping timeout: 265 seconds]
mistermo_ has quit [Ping timeout: 265 seconds]
n008f4g_ has joined #ruby
bronson_ has joined #ruby
failshell has quit []
jackjackdripper has joined #ruby
caseypatrickdris has quit [Remote host closed the connection]
finisherr has joined #ruby
s2013 has quit [Read error: Connection reset by peer]
araujo has quit [Ping timeout: 258 seconds]
ogpastaling has joined #ruby
jackjackdripper1 has quit [Ping timeout: 276 seconds]
pietr0 has joined #ruby
bosnia is now known as bosma
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
caseypat_ has joined #ruby
araujo has joined #ruby
intinig has joined #ruby
Scroff has joined #ruby
rbowlby has joined #ruby
segfalt has joined #ruby
jmignault has joined #ruby
MatthewsFace has joined #ruby
MatthewsFace has quit [Read error: Connection reset by peer]
Matthews_ has joined #ruby
charliesome has joined #ruby
charliesome has quit [Client Quit]
baweaver has joined #ruby
jackjackdripper has quit [Ping timeout: 245 seconds]
cyborg has joined #ruby
Matthews_ has quit [Read error: Connection reset by peer]
MatthewsFace has joined #ruby
zcreative has joined #ruby
Xeago has quit [Remote host closed the connection]
antgel has quit [Ping timeout: 276 seconds]
SirCmpwn has quit [Read error: Connection reset by peer]
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
<havenwood>
dudedudeman: It's a good one!
SirCmpwn has joined #ruby
endorphine_ has quit []
dumdedum has joined #ruby
nonparfumee has joined #ruby
ziprar is now known as zipace
intinig has quit [Remote host closed the connection]
timonv has quit [Ping timeout: 255 seconds]
mister_solo has quit [Ping timeout: 258 seconds]
wallerdev has joined #ruby
khebbie has joined #ruby
revath has joined #ruby
RobertBirnie has joined #ruby
Scroff has quit [Remote host closed the connection]
Matthews_ has joined #ruby
MatthewsFace has quit [Read error: Connection reset by peer]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
michaeldeol has joined #ruby
<Senjai>
I may also be going
<havenwood>
Senjai: Nice
<Senjai>
I haven't yet decided fully. It's a ways away
postmodern has joined #ruby
drew0 has joined #ruby
zendrix has quit [Remote host closed the connection]
aphprentice has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
qwertme has joined #ruby
drew0 has quit [Remote host closed the connection]
Scrofff has joined #ruby
drew0 has joined #ruby
Filete has joined #ruby
drew0 has quit [Client Quit]
drew0 has joined #ruby
drew0 has quit [Client Quit]
mandarinkin has quit [Ping timeout: 264 seconds]
drew0 has joined #ruby
Soda has joined #ruby
Matthews_ has quit [Read error: Connection reset by peer]
mandarinkin has joined #ruby
<dudedudeman>
i think that's helpful for me, as it's just a few hours from home
MatthewsFace has joined #ruby
zendrix has joined #ruby
allomov has joined #ruby
keernel has joined #ruby
Scrofff has quit [Remote host closed the connection]
ur5us has joined #ruby
joelataylor_ has joined #ruby
joaomdmoura has joined #ruby
mandarinkin has quit [Client Quit]
balazs has quit [Remote host closed the connection]
Langlands has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mandarinkin has joined #ruby
bantic has joined #ruby
tedstriker has quit [Quit: Anti-Fraping status set.]
x1337807x has joined #ruby
evanjs has joined #ruby
x1337807x has quit [Max SendQ exceeded]
drew0 has quit [Quit: WeeChat 1.2]
drew0 has joined #ruby
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
war_pigs has quit [Quit: later... computer is sleeping]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
drewo has quit [Quit: WeeChat 0.4.2]
x1337807x has joined #ruby
<keernel>
#joaomdmoura
ogpastaling has quit [Read error: Connection reset by peer]
<joaomdmoura>
keernel: hey
<keernel>
your app looks pretty neat, good idea
ogpastaling has joined #ruby
<joaomdmoura>
what app exactly? hahah
mc_fail has joined #ruby
<keernel>
haha sorry, gioco
<joaomdmoura>
Cool! :)
<keernel>
for how long it is running?
ur5us has quit [Ping timeout: 272 seconds]
<joaomdmoura>
uhmm, it started as an opensrouce project 2 years ago probably, unfortunately it isn't compatible with rails 4 yet haha
<joaomdmoura>
but the SaaS itself started some months ago
<joaomdmoura>
You should give it a try :P Don't worry about the free trial, I can extend it in case you want to test it :X
<keernel>
oh, cool, it was an open source. Yea, but you should def. continue with SaaS, =) keep it up
<keernel>
i'll probably try it, i'm starting to work on a project, www.mybrainstorm.com
<keernel>
and it has a bad gamefication system already implemented.
<keernel>
it's a brazilian project
<joaomdmoura>
Cool! are you Brazilian?
<keernel>
yea, lol, you too?
<joaomdmoura>
too :P
krisquigley has joined #ruby
shadoi has joined #ruby
Spami has joined #ruby
khebbie has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
plashchynski has quit [Quit: plashchynski]
vyorkin has joined #ruby
<pipework>
joaomdmoura: What was your app?
parduse has quit []
aces1up has joined #ruby
<keernel>
this mybrainstorm project is a service to connect students with enterprises
Spami has quit [Client Quit]
<aces1up>
anyone here have experience doing bitcoin transaction with bitcoin-ruby gem?
<keernel>
enterprises can post a challenge, and ask students to help them with it
<aces1up>
trying to understand, if I generate a bitcoin address, how can I load test funds to it with the bitcoin test net
dumdedum has quit [Quit: foo]
Spami has joined #ruby
someword has quit [Quit: Leaving.]
tomphp has joined #ruby
mc_fail has quit [Ping timeout: 265 seconds]
<joaomdmoura>
pipework: it's a gamification SaaS we are also a Heroku addOn :) there is JS"SDK" and a rubygem to make the integration easier :P
someword has joined #ruby
mdz_ has joined #ruby
_seanc_ has quit [Quit: _seanc_]
revath has quit [Read error: Connection reset by peer]
revath has joined #ruby
whoami_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
segfalt has quit [Quit: segfalt]
ki0_ has joined #ruby
bruno-_ has quit [Ping timeout: 246 seconds]
balazs has joined #ruby
symm- has joined #ruby
metalic has joined #ruby
_seanc_ has joined #ruby
balazs has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
balazs has joined #ruby
ndrei_ has joined #ruby
meph has joined #ruby
Channel6 has joined #ruby
lkba_ has joined #ruby
metalic has quit [Client Quit]
ki0 has quit [Ping timeout: 256 seconds]
delsol_ has joined #ruby
segfalt has joined #ruby
ki0_ has quit [Ping timeout: 255 seconds]
kraljev11 has joined #ruby
axsuul has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
<delsol_>
Stupid question: when executing command line command from ruby, I have errors... when executing the command from the command line, it runs fine.
skade has quit [Quit: Computer has gone to sleep.]
<delsol_>
why would it run differently when using exec(', using backticks ` the command directly... or exec( or backticks `, a shell script..... vs running the shell script by itself outside of ruby (or copy pasting it onto command line)
commondream has quit [Remote host closed the connection]
<delsol_>
or by putting su reg1 -c "cd ~reg1 && [ -f .vnc/passwd ] && vncserver :51 -geometry 1024x768" in a bash script.... and exec(' ') it, or ` ` it
<hoelzro>
well, exec probably doesn't do what you think it does
<delsol_>
running command directly, or running bash script directly... works fine.
davedev24_ has quit [Ping timeout: 256 seconds]
davedev24_ has joined #ruby
doertedev has quit [Ping timeout: 246 seconds]
<hoelzro>
because exec replaces the current process, and it doesn't use the shell to invoke the given command
sharpmachine has quit [Remote host closed the connection]
endorphine_ has joined #ruby
<hoelzro>
`` probably uses /bin/sh instead of bash, but nothing is jumping out at me for why that command wouldn't work
x44x45x41x4E has joined #ruby
x44x45x41x4E has quit [Remote host closed the connection]
<hoelzro>
delsol_: what's the error you get with ``?
axsuul has quit [Remote host closed the connection]
aces1up has quit []
<delsol_>
hoelzro: it bitches about /root/.Xauthority timeout
aapole has joined #ruby
axsuul has joined #ruby
<delsol_>
takes forever.... and then is running as the wrong user.
<keernel>
odd
systemd0wn_ has quit [Remote host closed the connection]
mandarinkin has quit [Ping timeout: 246 seconds]
<delsol_>
yeah.
<hoelzro>
it sounds like an environment problem, maybe
systemd0wn has joined #ruby
<delsol_>
works just fine from command line
<delsol_>
or the bash script
mandarinkin has joined #ruby
commondream has quit [Remote host closed the connection]
sharpmachine has joined #ruby
ledestin has joined #ruby
NeverDie has joined #ruby
<hoelzro>
maybe see if there's a big difference in `su reg1 -c env` versus su reg1 -c env run from the shell
Meeh has quit [Read error: Connection reset by peer]
riffraff has quit [Quit: This computer has gone to sleep]
arooni-mobile has joined #ruby
Meeh has joined #ruby
riffraff has joined #ruby
barkerd427 is now known as zz_barkerd427
troulouliou_dev has quit [Remote host closed the connection]
araujo_ has joined #ruby
<delsol_>
system( uses sh, you're right...
hakunin has joined #ruby
mary5030 has quit [Remote host closed the connection]
ndrei_ has quit [Ping timeout: 272 seconds]
zcreative has quit [Quit: (null)]
araujo has quit [Ping timeout: 264 seconds]
simplyianm has joined #ruby
jgt3 has joined #ruby
ndrei has joined #ruby
ruby-lang246 has joined #ruby
<ruby-lang246>
Oh my god
yqt has joined #ruby
<graft>
isn't there a better way to do this than system execing su?
<graft>
i mean, that looks horrendous to me
<graft>
for example there is a sudoers file, can't you just make a nice script and put an entry in there?
commondream has joined #ruby
krisquigley has quit [Remote host closed the connection]
<delsol_>
graft: in a perfect world, yes, there are 1000 better ways to do it.
<graft>
yeah, so do those
ruby-lang246 has quit [Client Quit]
<miah>
you could sudo your ruby script and use Process / setuid
<graft>
what are the parameters, here? your ruby script is running as root?
ylla has quit [Ping timeout: 244 seconds]
<graft>
and it has to run a process as another user?
Filete has quit [Read error: Connection reset by peer]
bruno- has joined #ruby
disKounted has joined #ruby
disKounted has quit [Client Quit]
stoogenmeyer has joined #ruby
jgt3 has quit [Ping timeout: 244 seconds]
<delsol_>
graft: It doesn't need to run anything as another user.... if it would just execute a bash shell script properly.
<graft>
okay, but the bash shell script is running as another user
<miah>
well, /bin/sh != bash so..
dorei has joined #ruby
arooni-mobile has quit [Ping timeout: 265 seconds]
<miah>
can you prefix your command with /bin/bash eg; `/bin/bash su ...`
<delsol_>
miah: from /bin/sh you can execute the bash script just fine via command line.
<delsol_>
and it works fine.
<graft>
the problem is su will dump your environment
<miah>
indeed
<graft>
so lots of stuff you need for your script to run will not survive that
zz_barkerd427 is now known as barkerd427
<miah>
unless you pass -m iirc
<graft>
how important is it that the script runs as that user?
edwinvdgraaf has joined #ruby
bgmarx has joined #ruby
<delsol_>
other client machines would VNC in as root otherwise...
Palmer11 has quit [Quit: Palmer11]
<delsol_>
while they can't really DO anything (no desktop, no command line, app auto-runs, etc)
Dopagod has quit [Quit: WeeChat 1.0]
ta has joined #ruby
jackjackdripper has joined #ruby
<delsol_>
if they managed to crash it, or kill X without X restarting correctly, they could be dumped at a command line logged in as root potentially.....
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<graft>
oh you're spawning a vnc server
<delsol_>
yes.
<delsol_>
spawning one per client machine.... if client machine is enabled in list of clients.....
<delsol_>
and client connection type is listed as VNC (as opposed to Xforwarding)
jmhmccr has quit [Quit: Connection closed for inactivity]
<miah>
-m, --preserve-environment do not reset environment variables
<miah>
so, as long as you 'export IMPORTANT_STUFF' prior to running your ruby script
<miah>
your su should inherit the environment
nym has joined #ruby
jenrzzz has joined #ruby
<graft>
i don't think they want the root environment, actually
<graft>
because then they'd probably end up with the root .Xauthority which was the original complaint
<miah>
they're not running as root though are they?
<graft>
they want the user's Xauthority (which might not exist)
benlovell has quit [Ping timeout: 256 seconds]
<graft>
this should really be running under a user login shell
<miah>
if they are running ruby as root, just use Process.uid already
<graft>
so it has the proper user environment
The_Phoenix has joined #ruby
<graft>
su user is too sloppy
The_Phoenix has quit [Max SendQ exceeded]
AbinoamJr has joined #ruby
Eiam has joined #ruby
<delsol_>
graft: Correct. need the users .Xauthority
The_Phoenix has joined #ruby
<delsol_>
instead of roots.... running via command line, it works fine... making ruby run it, I get: xauth: timeout in locking authority file /root/.Xauthority
RandyT has quit [Ping timeout: 265 seconds]
<graft>
well try su --login
The_Phoenix has quit [Max SendQ exceeded]
war_pigs has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
The_Phoenix has joined #ruby
RandyT has joined #ruby
mary5030 has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
tomphp has joined #ruby
<delsol_>
graft: not sure that'll work either..... as the users .profile auto-starts the ruby app....
Narzew has joined #ruby
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<graft>
eh? the one that launches the vnc server?
RandyT_ has joined #ruby
<delsol_>
that was the advantage of the other script...
Eiam has quit [Ping timeout: 252 seconds]
<delsol_>
it would start the VNC server as reg1/2/3
The_Phoenix has joined #ruby
<graft>
so if i login as reg1, what happens?
The_Phoenix has quit [Max SendQ exceeded]
<finisherr>
How can i ask rvm which versions of the interpreter are availble for installation?
<delsol_>
from command line?
<graft>
it runs a ruby script that launches a vnc server?
<delsol_>
you get kicked out.
<graft>
finisherr: rvm install --list
zendrix has quit [Remote host closed the connection]
<delsol_>
if you ssh -X -Y as reg1, you Xforward, get a locked down X, and the app starts.
<graft>
finisherr: oh wait that's rbenv... but use rbenv anyway, it's better
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<delsol_>
if you vnc in.... to the right port, with reg1's VNC password.... you get the app.
<delsol_>
(in a locked down X)
<finisherr>
I’m supposed to use RVM
The_Phoenix has joined #ruby
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<graft>
finisherr: rvm list known
The_Phoenix has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 272 seconds]
<havenwood>
finisherr: To fetch latest versions then list: rvm get master && rvm list known
RandyT has quit [Ping timeout: 256 seconds]
The_Phoenix has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
qwertme has joined #ruby
<graft>
delsol_: can't you just have their profile exec the vnc server when they login? why have a separate daemon to authenticate this one thing?
<delsol_>
graft: the VNC server has to be active on that display before they can log in.
The_Phoenix has joined #ruby
<delsol_>
they never have to touch the actual server.
NeverDie has quit [Read error: Connection reset by peer]
The_Phoenix has quit [Max SendQ exceeded]
The_Phoenix has joined #ruby
<delsol_>
and users can't be required to know anything... its kiosk style basically.
<simplyianm>
How do I make this code more idiomatic
<graft>
delsol_: so, your auth daemon is running, user connects via VNC to some port, auth daemon authenticates, spawns a vnc server, connects user to it?
duderonomy has quit [Ping timeout: 244 seconds]
<delsol_>
graft: no.... the idea is that the config screen knows how many kiosks there should be...
<delsol_>
if those kiosks connect via Xforwarding or VNC
RandyT_ has quit [Ping timeout: 276 seconds]
<delsol_>
and starts those specific instances....
The_Phoenix has joined #ruby
mandarinkin has quit [Ping timeout: 258 seconds]
jespada has quit [Quit: WeeChat 1.1.1]
The_Phoenix has quit [Max SendQ exceeded]
sharpmachine has quit [Remote host closed the connection]
<delsol_>
the VNC server should already be spawned.... but in a pinch, should be able to click "restart VNC" from admin options... and have it killall Xvnc, and then run the startup script that starts each separate VNC desktop.
The_Phoenix has joined #ruby
<graft>
i see, so before the user does anything, the vnc server should be running
<delsol_>
yes
<delsol_>
replace "user" with "complete idiot"
The_Phoenix has quit [Max SendQ exceeded]
jwilson has quit [Read error: Connection reset by peer]
<delsol_>
complete idiot walks up to kiosk... should be running app.
solars has joined #ruby
jwilson has joined #ruby
The_Phoenix has joined #ruby
sharpmachine has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
balazs_ has joined #ruby
The_Phoenix has quit [Max SendQ exceeded]
<delsol_>
kiosk VNC's in on boot....
marr has quit [Ping timeout: 245 seconds]
Xeago has joined #ruby
<delsol_>
if VNC server or network is down, they get error window.... clicking OK reconnects... :)
x1337807x has joined #ruby
balazs has quit [Ping timeout: 272 seconds]
<delsol_>
(assuming server is running again at that point, and network is working again)
<TripleKKK>
basically i'm writing a two player chess app
mikecmpbll has joined #ruby
<TripleKKK>
you connect to the link and play chess with a friend
<mwlang>
it basically works as long as I start with “foo” but if I do bar = foo[:bar] and then try bar.value_at …
<ljarvis>
mwlang: right, you need to include your module into Hash really
<ljarvis>
TripleKKK: I think any would do, then. Use the one that looks the nicest to you. Maybe the one that immediately looks fun or makes the most sense
<mwlang>
ljarvis: good idea! I was starting to recursively do it, but top-level makes a lot more sense.
someword has quit [Read error: Connection reset by peer]
jenrzzz has quit [Ping timeout: 276 seconds]
someword has joined #ruby
<ljarvis>
mwlang: the alternative is a custom class, but then you'd need to wrap your literals which you might not want
<TripleKKK>
i know i could probably do it in rails but i feel like rails is too big and confusing for me at my early beginner stage
<ljarvis>
TripleKKK: try sinatra, I like it and I've had much success and fun with it
<TripleKKK>
now it's time for me to start studying different frameworks and reading about them
<mwlang>
ljarvis: yeah, I def. don’t want that route.
bb010g has quit [Quit: Connection closed for inactivity]
<TripleKKK>
thanks... i will try sinatra :)
<ljarvis>
mwlang: monkeypatch seems ftw then! :)
frem has joined #ruby
mandarinkin has quit [Ping timeout: 264 seconds]
<miah>
refinements?
Vile` has joined #ruby
<ljarvis>
mwlang: also, I'm sure you know, but the built in `p` method is the same as your log method
jenrzzz_ has quit [Ping timeout: 276 seconds]
mandarinkin has joined #ruby
<mwlang>
ljarvis: didn’t know. I was just extracting to “log” because I was toying with what was output
munen has joined #ruby
<havenwood>
alias log p
<ljarvis>
ah ok, `p` is a great method
wildroman2 has joined #ruby
<ljarvis>
I basically use it for all my debugging
<mwlang>
I thought p came with “prettyprint” which I rarely “require” so I never think to use it.
<ljarvis>
because it actually returns the object, unlike your log method which returns nil
<ljarvis>
so you can add 'p' in everywhere
<ljarvis>
na, pp is in prettyprint
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<mwlang>
hmmm…so p is built-in to Ruby and not Rails?
<ljarvis>
i.e in thousands of lines of code, some foo = get_bar(omg(hax)) you could just wrap any of those things in p()
<mwlang>
I’m somewhat in the habit of doing something like my “log” method because at some point in development, I start turning that into a real logger.
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<mwlang>
ljarvis: that’s because that’s what I have. :-D
vyorkin2 has joined #ruby
delsol_ has quit [Remote host closed the connection]
vyorkin1 has quit [Read error: Connection reset by peer]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zz_Outlastsheep is now known as Outlastsheep
<mwlang>
man, now that’s stinkin’ cool.
plashchynski has joined #ruby
tomphp has joined #ruby
sarkyniin has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cmisenas has quit [Ping timeout: 264 seconds]
NeverDie has joined #ruby
deric_skibotn has quit [Ping timeout: 272 seconds]
deric_skibotn has joined #ruby
baweaver has quit [Remote host closed the connection]
NeverDie has quit [Max SendQ exceeded]
barkerd427 is now known as zz_barkerd427
choke has joined #ruby
niftylettuce has joined #ruby
Oqi has joined #ruby
NeverDie has joined #ruby
kraljev11 has quit [Quit: kraljev11]
x1337807x has joined #ruby
blandflakes has joined #ruby
kraljev11 has joined #ruby
<Oqi>
Hello, I am getting this :NoMethodError-------------undefined method `[]' for nil:NilClassCookbook but I have done the check: unless variable.nil? first. So it should not trigger any exception
<Oqi>
Any idea how I can bypass this please >
<mistym>
Oqi: Can you show your code?
aaeron has joined #ruby
JakFrist has joined #ruby
segfalt has quit [Quit: segfalt]
<Oqi>
mistym: It is a mix with chef and things but basically it is like this: unless node['field'].nil? do something and node['field'] is null 100% of the time
duderonomy has joined #ruby
<Oqi>
mistym: so because of the unless node['field'].nil? it is not supposed to send an exeception, this is the purpose of .nil? I guess
mleung has quit [Quit: mleung]
<mistym>
Oqi: It would be really helpful if you could show the actual snippet of code, please!
Xeago has quit [Remote host closed the connection]
<mistym>
Oqi: The nil check here is on the value being fetched by the 'tomcat_restart' key - since, say, node['normal'] is nil, what's happening is you're doing the equivalent of nil['chef_client']
plashchynski has joined #ruby
<mistym>
Which is the exception you pasted
RobertBirnie has joined #ruby
wildroman2 has quit [Remote host closed the connection]
<mistym>
You should check to see if node['normal'] and/or node['chef_client'] are nil, if one of those could be nil
wildroman2 has joined #ruby
<Outlastsheep>
node['normal'].is_nil? should do the trick.
<Outlastsheep>
Huh.
Slyth has left #ruby [#ruby]
<ljarvis>
.nil?
sinkensabe has joined #ruby
<Outlastsheep>
Oh, yes. .nil?, sorry.
<Oqi>
mistym: okay so something like this ? unless node['normal'].nil? or node['normal']['chef_client'] or node['normal']['chef_client']['tomcat_restart'].nil?
mleung has quit [Client Quit]
hoov has quit [Quit: Leaving]
<mistym>
Oqi: Is it possible for all three of those to be nil?
<Oqi>
mistym: yes
<mistym>
If so, yes!
<Oqi>
mistym: I am not sure if it is a And or a Or actually
<Oqi>
probably Or
oo_ has quit [Remote host closed the connection]
cmisenas has joined #ruby
stoogenmeyer has quit [Ping timeout: 264 seconds]
michaeldeol has quit [Ping timeout: 265 seconds]
rubie has quit []
wildroman2 has quit [Ping timeout: 246 seconds]
jwaldrip_ has quit [Quit: Be back later ...]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nonparfumee has joined #ruby
allomov has quit [Remote host closed the connection]
sinkensabe has quit [Remote host closed the connection]
bronson_ has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
wpp has quit [Remote host closed the connection]
<miah>
depends on your condition, fail if a AND b are nil? or fail if a OR b are nil?
sharpmachine has quit [Remote host closed the connection]
baweaver has joined #ruby
diegoviola has joined #ruby
Koveno has quit [Ping timeout: 246 seconds]
sinkensabe has quit [Remote host closed the connection]
qwertme has joined #ruby
mary5030_ has joined #ruby
Outlastsheep is now known as zz_Outlastsheep
ndrei has quit [Ping timeout: 258 seconds]
dmr8 has quit [Quit: Leaving]
casadei has quit [Remote host closed the connection]
casadei has joined #ruby
sinkensabe has joined #ruby
ponga has joined #ruby
ndrei has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
djbkd has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
alanjf has joined #ruby
mary5030_ has quit [Remote host closed the connection]
<alanjf>
Hi. I just upgraded to ruby-2.2.2. During a make process of qtwebkit, I get this error: /usr/local/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so: undefined symbol: rb_Digest_SHA1_Init - /usr/local/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so (LoadError)
adimircolen has quit [Remote host closed the connection]
<shevy>
is this not a problem of qtwebkit?
<shevy>
btw I don't have a sha1.so file
<shevy>
I compiled ruby from source though
<mistym>
alanjf: You may need to try reinstalling qtwebkit after upgrading.
<mistym>
Er, wait, sorry, misread
cmisenas has joined #ruby
<alanjf>
This is a fairly custom linux system, most things are built from source, so most of the posts I find via google about using apt-get or yum don't apply here. I do have libxml2, zlib-1.2.5, openssl-1.0.1l, readline-6.2 though.
<Ox0dea>
shevy: It's in build/.ext.
djbkd has quit [Remote host closed the connection]
lessless has joined #ruby
momomomomo has joined #ruby
<alanjf>
I just can't figure out why 'ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so' is throwing a load error.
<Ox0dea>
shevy: And from there it'll end up at a path very much like alanjf's once you `make install`.
_seanc_ has joined #ruby
eggoez has quit [Ping timeout: 276 seconds]
kadoppe has quit [Ping timeout: 250 seconds]
<alanjf>
Most hits from google about this error say to run `apt-get install zlib1g-dev libreadline5-dev libssl-dev libxml2-dev`, and I know I have all of that already (built from sources), though I'm not sure if "zlib1g-dev" is just regular zlib package?
_seanc_ has quit [Client Quit]
aapole has quit [Ping timeout: 256 seconds]
endorphine_ has quit []
<ponga>
hi shevy , if you have miniute , can you answer me if you speak english in german accent
<alanjf>
Does anyone know how ot solve this?
dfockler has joined #ruby
<ponga>
and when you are going to make a ruboto bot alternative for my birthday present
<Ox0dea>
ponga: Writing IRC bots is embarrassingly easy with Ruby.
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<aaeron>
hehe
endorphine_ has joined #ruby
choke has joined #ruby
<ponga>
Ox0dea: i guess it is but i want it to function what ruboto does
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ponga>
then im stuck with idea to make it happen
<Ox0dea>
ponga: And... what? You're uncomfortable with locally running `eval` on arbitrary Ruby code?
eggoez has joined #ruby
munen has quit [Quit: munen]
kadoppe has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
<shevy>
ponga more of an austrian accent, sort of; but I try to speak proper english when I do. it's hard to avoid the natural dialect though; Arnold Schwarzenegger still has an austrian accent even today, it was much worse in "Conan" and "Red Sonja" (it's not same dialect, it's middle-austria; eastern austrian dialect is different)
g0bl1n has quit [Ping timeout: 276 seconds]
sinkensabe has quit [Remote host closed the connection]
<shevy>
ponga my first ruby project was a bot
mdz_ has quit [Remote host closed the connection]
<shevy>
but somehow it's not as interesting anymore :(
<alanjf>
I get the same error if I run `ruby -rdigest/sha1 -e '1'`
<ponga>
Ox0dea: shamefully, yes.. i have no idea how to deliver the string to local irb then fetch the result in single script
<alanjf>
What would cause this? I have libssl.
<ponga>
damn im dumb
<alanjf>
Anyone?
davedev2_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
hazelux has joined #ruby
<Ox0dea>
ponga: What? Why do you think you would need to use irb?
mleung has joined #ruby
mandarinkin has quit [Ping timeout: 256 seconds]
<shevy>
Ox0dea I compiled ruby from source and still don't have any sha1.so
davedev24_ has quit [Ping timeout: 258 seconds]
<Ox0dea>
alanjf: Distro?
<Ox0dea>
shevy: Use `find -name sha1.so`.
<shevy>
yep, no result
<shevy>
do I have to repeat it again? :)
<alanjf>
Ox0dea: It's in /usr/local/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so
<ponga>
damn it Ox0dea i learnt something new today thank you
<shevy>
alanjf that path is unusual, did you compile ruby by yourself?
mleung has quit [Client Quit]
<alanjf>
shevy: yes
<shevy>
ah
<Ox0dea>
alanjf: I asked which Linux distribution you're running in order to help you find the package you need. It's probably something like openssl-dev.
mandarinkin has joined #ruby
<TripleKKK>
why don't people start learning programming from assembly?
<shevy>
what is i686-linux, is that specific for a 32 bit system?
<alanjf>
Ox0dea: I have libssl, from openssl-1.0.1l (build from source)
<Ox0dea>
Yes.
<shevy>
I am on x86_64
<ponga>
so basically i write an eventlistener that will read every line in channel then process it, if its ruby expression with >> pass it thru eval and print it?
Tennis has quit [Remote host closed the connection]
pontiki has joined #ruby
<alanjf>
shevy: yesh it's 32-bit
<Ox0dea>
alanjf: Yes, but you likely need the -dev package for the appropriate headers.
<shevy>
my openssl is 1.0.1i
tomphp has joined #ruby
whoisjake has joined #ruby
<ponga>
sounds sound
<Ox0dea>
ponga: Yes, but you really don't want to actually do that.
<alanjf>
Ox0dea: I have all the headers and libs for openssl
jenrzzz has joined #ruby
Tennis has joined #ruby
<ponga>
Ox0dea: why not? as you might know by now im asking this as dumbshit
<Ox0dea>
alanjf: Then they're not in any place Ruby's build process could find them, it would seem.
<alanjf>
Ox0dea: When you build openssl from source, all the "devel" stuff that many distros have separately are all together.
<ponga>
why is it a bad idea, i want to learn
<alanjf>
strace shows that it is finding the libs.
<Ox0dea>
ponga: You would basically be giving everybody in here access to your machine.
<shevy>
I found sha1.c: openssl-1.0.1i/crypto/sha/sha1.c
<shevy>
unsure why my ruby did not use it
<ponga>
to this day i still dunno how to install a lang from tar.gz
momomomomo has quit [Ping timeout: 276 seconds]
learath has joined #ruby
<alanjf>
The error message says "/usr/local/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so: undefined symbol: rb_Digest_SHA1_Init" but `readelf -a /usr/local/ruby/2.2.2/lib/ruby/2.2.0/i686-linux/digest/sha1.so` shows it is in there.
<ponga>
i should google search and learn how to do it
mary5030 has joined #ruby
mleung has joined #ruby
<learath>
I'm trying to return the results of a variable.each loop, but instead variable.each is getting returned
<alanjf>
So why is ruby doing this?
<Ox0dea>
learath: You want #map.
<learath>
Ox0dea: #map?
tomphp has quit [Client Quit]
<TripleKKK>
.map
<shevy>
alanjf a better question might be why your ruby is doing this :-)
<Ox0dea>
alanjf: It's unlikely to be Ruby's fault.
<TripleKKK>
you want to use the map method
<TripleKKK>
instead of each
<alanjf>
shevy: That is what I want ot find out.
<ponga>
yeah
<learath>
ok, looking it up
<learath>
Thanks
mwlang has quit [Quit: mwlang]
<ponga>
i knew the answer for that im proud now
Tennis has quit [Ping timeout: 264 seconds]
<shevy>
alanjf might you have more than one openssl version installed?
Deck` has quit [Read error: Connection reset by peer]
<alanjf>
Ox0dea: I have no problem building against and using ssl/sha related things in other langs like Perl though. Ruby is the only one giving me this problem, so I'm more inclinded to feel it's a Ruby related problem.
<alanjf>
shevy: just 1.0.1l
arooni-mobile has joined #ruby
Scroff has quit [Remote host closed the connection]
jenrzzz has quit [Ping timeout: 264 seconds]
mleung has quit [Client Quit]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pdoherty has quit [Ping timeout: 272 seconds]
sinkensabe has joined #ruby
commondream has quit [Remote host closed the connection]
<shevy>
hmm
<shevy>
Ox0dea do you have a digest/sha1.so file in ruby?
commondream has joined #ruby
Papierkorb has quit [Quit: ArchLinux completes an endless loop faster than any other distro!]
aaeron1 has joined #ruby
<Ox0dea>
shevy: Both in my system's 2.2.2, and current trunk.
endorphine_ has quit []
<shevy>
cool
anisha has joined #ruby
<shevy>
3 different ruby systems here :-)
yfeldblum has joined #ruby
<diegoviola>
I've got a job as a developer
<shevy>
one who has no such file; one who has such a file and it works; and one who has such a file and it does not work
<TripleKKK>
what are you working on?
<shevy>
diegoviola with the coworkers you hate?
<diegoviola>
shevy: I don't hate them
<shevy>
but you use windows
<alanjf>
Can digest/sha1.so be built manually? I'm not familiar with building modules in Ruby. I'm more used ot working with Perl, where id's either cpan -i Digest::SHA1 or download the tarball and do it by hand.
<diegoviola>
shevy: I've already installed the VM
<shevy>
on windows
<diegoviola>
shevy: it's fast
<shevy>
:-)
simplyianm has joined #ruby
<shevy>
it's fast - on windows
<shevy>
alanjf normally yes
<shevy>
alanjf there is some .rb file in the ext/ subdirectories
<diegoviola>
shevy: I don't care anymore, it's fast enough
lessless has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<alanjf>
shevy: And what do I do with it?
<diegoviola>
shevy: and I won't be forever at that company, so
<learath>
Ox0dea: Thank you, that was exactly what I needed.
<shevy>
alanjf, for instance, readline module has this file there: ext/readline/extconf.rb
<shevy>
<shevy>
oops, trailing newline sorry
<shevy>
you can run that file and usually get a Makefile created
<shevy>
the problem was, if I remember, I never managed to get this to work with openssl :\
<shevy>
ext/openssl/
aaeron has quit [Quit: aaeron]
<shevy>
you can still give it a try there though
aaeron1 has quit [Client Quit]
<Ox0dea>
learath: Excellent. Are you certain you've understood the method's purpose?
<shevy>
"ruby extconf.rb"
momomomomo has joined #ruby
aaeron has joined #ruby
commondream has quit [Ping timeout: 255 seconds]
<shevy>
for openssl problems and ruby, I usually compile from source again. That usually fixed things hehe
<learath>
Ox0dea: I know enough to know damn well I don't understand :) but I understand what's happening in this case, .each returns the result of .each, while .map returns the result of the inner loop
Soda has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
<jhass>
enroxorz: your module defines an instance method. extend adds a modules instance methods as class methods to a class. include adds a modules instance methods as instance methods to a class
sinkensabe has quit [Ping timeout: 276 seconds]
<shevy>
jhass is back from work!
shadoi has quit [Quit: Leaving.]
<enroxorz>
shevy, jhass, thanks. i knew i was missing something
<enroxorz>
:-)
segfalt has joined #ruby
michaeldeol has joined #ruby
gambl0re has quit []
workmad3 has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
mrsolo_ has joined #ruby
willharrison has joined #ruby
gambl0re has joined #ruby
tsvenson|afk has joined #ruby
sarkyniin has quit [Ping timeout: 252 seconds]
arooni-mobile has quit [Ping timeout: 256 seconds]
zekriad has quit [Read error: Connection reset by peer]
mrsolo has quit [Ping timeout: 256 seconds]
LBRapid has quit [Ping timeout: 256 seconds]
im0b has quit [Ping timeout: 256 seconds]
KnownSyntax has quit [Ping timeout: 256 seconds]
tsvenson|afk has quit [Read error: Connection reset by peer]
mrsolo_ is now known as mrsolo
lavros has quit [Quit: leaving]
edwinvdgraaf has quit [Remote host closed the connection]
failshell has joined #ruby
endorphine_ has joined #ruby
LBRapid has joined #ruby
im0b has joined #ruby
sarkyniin has joined #ruby
plashchynski has quit [Quit: plashchynski]
edwinvdgraaf has joined #ruby
KnownSyntax has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
allomov has joined #ruby
zotherstupidguy has quit [Ping timeout: 265 seconds]
simplyianm has quit [Read error: Connection reset by peer]
zotherstupidguy has joined #ruby
lolmaus has joined #ruby
simplyianm has joined #ruby
toretore has joined #ruby
Cloudhand has joined #ruby
sinkensabe has joined #ruby
zekriad has joined #ruby
Scroff has joined #ruby
jhooker has quit [Ping timeout: 265 seconds]
lfox has joined #ruby
aaeron has joined #ruby
_seanc_ has joined #ruby
JoshL has quit []
djbkd has joined #ruby
djbkd has quit [Remote host closed the connection]
I has joined #ruby
djbkd has joined #ruby
mdz_ has joined #ruby
I has left #ruby [#ruby]
grp066 has joined #ruby
Mon_Ouie has quit [Quit: WeeChat 1.2]
pengin has quit [Remote host closed the connection]
Pupeno has joined #ruby
sdwrage has joined #ruby
workmad3 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mleung has joined #ruby
Encapsulation has joined #ruby
baweaver has quit [Remote host closed the connection]
sinkensabe has joined #ruby
ogpastal_ has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AbinoamJr has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jenrzzz has quit [Ping timeout: 245 seconds]
centrx has quit [Ping timeout: 276 seconds]
ogpastaling has quit [Read error: Connection reset by peer]
dasfsdaads has quit [Quit: Page closed]
aryaching has joined #ruby
mr_blue has joined #ruby
<mr_blue>
hi all
AbinoamJr has joined #ruby
mwlang has joined #ruby
<mwlang>
what was that mentor’s website that came up in this morning’s (UGT) discussion?
sinkensa_ has joined #ruby
hahuang61 has joined #ruby
sinkensabe has quit [Read error: No route to host]
<jhass>
codementor.io I think?
<mwlang>
jhass: that’s it. thanks!
centrx has joined #ruby
hahuang65 has quit [Ping timeout: 272 seconds]
qwertme has joined #ruby
ruby-lang284 has quit [Quit: Page closed]
veinofstars has joined #ruby
mleung has quit [Quit: mleung]
<mr_blue>
How to get the output "b cannot be nil" from this expression ? : a, b, c = [1, nil, 2]; [a, b, c].each do |p| raise Exception.new("#{p} cannot be nil") if p.nil? end
<veinofstars>
i have a variable, which can be either nil or a hash. Is there a cleaner way to fetch a key than (foo[‘bar’] rescue nil) ?
<veinofstars>
i’d prefer to do something like foo.try(:get, ‘bar’)
<veinofstars>
but i need to somehow access [] as a method
zz_barkerd427 is now known as barkerd427
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mc_fail has quit [Ping timeout: 255 seconds]
<veinofstars>
oh wait, i can do foo.try(:[], ‘bar')
<Ox0dea>
mr_blue: So you don't actually want to raise an exception, right?
dstarh has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axsuul has quit [Ping timeout: 256 seconds]
<Ox0dea>
veinofstars: Hash#fetch would be better.
<toretore>
mr_blue: it's not possible
bgmarx has quit [Remote host closed the connection]
<Ox0dea>
Oh, never mind.
<veinofstars>
why better?
<Ox0dea>
veinofstars: Forgot the nil part.
<veinofstars>
ya
baweaver has joined #ruby
centrx has quit [Ping timeout: 265 seconds]
ruv has quit [Ping timeout: 244 seconds]
<Ox0dea>
toretore: I think hacking about with local_variables would "work".
mistermocha has quit [Read error: Connection reset by peer]
balazs_ has quit [Remote host closed the connection]
nonparfumee has joined #ruby
<mr_blue>
toretore: really ? It's the first time I read 'it's not possible in ruby'
nfk has joined #ruby
<toretore>
mr_blue: explain what you're trying to achieve instead
mistermocha has joined #ruby
bgmarx has joined #ruby
jackjackdripper has quit [Read error: Connection reset by peer]
jackjackdripper has joined #ruby
ramfjord has joined #ruby
doertedev has quit [Ping timeout: 258 seconds]
<zenspider>
mr_blue: it's possible, but stupid and probably the wrong way to go about it
mrmargol_ has quit [Remote host closed the connection]
nobitanobi has quit [Read error: Connection reset by peer]
<mr_blue>
toretore: I want to raise an exception in a constructor when trying to create the instance with nil params
mleung has joined #ruby
emilkarl has joined #ruby
nobitanobi has joined #ruby
<Ox0dea>
mr_blue: raise unless params.all?
<hal_9000_>
reflection doesn’t know about parameter names
<hal_9000_>
Ox0dea: i think he wants to use the parameter name in the message
<Ox0dea>
hal_9000_: RubyVM::InstructionSequence.of makes it possible, but it's really hairy.
<mr_blue>
hal_9000_: exacly
mc_fail has joined #ruby
mistermocha has quit [Ping timeout: 258 seconds]
baweaver has quit [Remote host closed the connection]
<hal_9000_>
the easiest way to do that would be to manually map parameters to their names, perhaps with an array
dfinninger has joined #ruby
<Ox0dea>
Or just use keyword arguments?
<zenspider>
>> def f a, b, c; p local_variables; end; f nil, nil, nil
<zenspider>
again... this is _DUMB_ and the wrong way to go about this
<hal_9000_>
ah ok yes
_ht has quit [Quit: Konversation terminated!]
<toretore>
mr_blue: do you have some code to paste?
<zenspider>
argument checks are usually a design smell to begin with. but when they're necessary, it is best to just spell it out
<zenspider>
raise ArgumentError "required_param may not be nil" if required_param.nil?
<zenspider>
oops, comma
centrx has joined #ruby
<zenspider>
there's nothing wrong with that code.
<toretore>
mr_blue: the way you're describing the problem, in terms of what you think should be the solution instead of what the actual problem is, make me want to know more before i can give any advice
<pipework>
zenspider: Do you prefer docs for that?
<zenspider>
(other than a missing comma)
zenguy_pc has quit [Read error: Connection reset by peer]
<hal_9000_>
zenspider speaks truth
dagda1 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider>
pipework: if you mean javadoc style doco, no. I prefer simple doco, simple code, and GIGO to rule
<pipework>
zenspider: I like making nice things along the way though.
<mr_blue>
toretore: my looks like something like that: def class A; def initialize(a, b, c); raise "#{the param} cannot be nil" if one of the params is nil; end; end
<diegoviola>
why would ever anyone have to parse ls for a git commit / push?
zotherstupidguy has quit [Ping timeout: 246 seconds]
uri_ has quit [Ping timeout: 245 seconds]
<Ox0dea>
Fiddle does let you unfreeze an object by flipping a single bit, though.
<drocsid>
Ok, just wondering what system itself supported. Guess I could look this up also.
pothibo has joined #ruby
<Ox0dea>
drocsid: Why the artificial limitation on which features of the language to use?
nobitanobi has quit [Remote host closed the connection]
pglombardo has quit []
nobitanobi has joined #ruby
Scroff has joined #ruby
zotherstupidguy has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
bgmarx has quit [Remote host closed the connection]
x1337807x has joined #ruby
nonparfumee has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
joaomdmoura has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pontiki has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mary5030_ has joined #ruby
momomomomo_ has joined #ruby
Zai00 has quit [Quit: Zai00]
bgmarx has joined #ruby
zenguy_pc has joined #ruby
mleung has joined #ruby
nobitanobi has quit [Ping timeout: 244 seconds]
mleung has quit [Client Quit]
edwinvdg_ has joined #ruby
Scroff has quit [Ping timeout: 264 seconds]
mary5030 has quit [Read error: Connection reset by peer]
momomomomo has quit [Ping timeout: 250 seconds]
momomomomo_ is now known as momomomomo
MatthewsFace has joined #ruby
Pupeno has joined #ruby
mleung has joined #ruby
Matthews_ has quit [Ping timeout: 258 seconds]
sinkensa_ has quit [Remote host closed the connection]
Matthews_ has joined #ruby
mdavid613 has joined #ruby
yqt has quit [Read error: Connection reset by peer]
pengin has quit [Remote host closed the connection]
yqt has joined #ruby
freerobby has quit [Quit: Leaving.]
edwinvdgraaf has quit [Ping timeout: 276 seconds]
diegoviola has quit [Remote host closed the connection]
mdavid613 has left #ruby [#ruby]
Pupeno_ has quit [Ping timeout: 256 seconds]
bronson has joined #ruby
mr_blue has quit [Quit: leaving]
<duderonomy>
hey ya'll!! When using Ruby, what are my options for executing commands on a Linux console. When I access these little CPUs as a User, I use telnet to get shell access. Thx in advance.
<wallerdev>
did you ssh into the machine and are running ruby on that machine?
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<ponga>
if that's solved, "ruby mycode.rb"
<wallerdev>
or are you running ruby on your local machine and want to ssh from within ruby to the other box
mc_fail has quit [Ping timeout: 250 seconds]
MatthewsFace has quit [Ping timeout: 264 seconds]
<ponga>
i think he's asking for the former case
<ponga>
duderonomy: hello
<duderonomy>
Actually, I am running Ruby on a usual host like Ubuntu/RH/Gentoo. I'd like to automate what I do as a User. Which is: telnet into IP of little board running Linux and then execute commands on the shell
mleung has quit [Quit: mleung]
<dfockler>
duderonomy: you can use backticks like `subcommand`, or exec, or popen
<dfockler>
they all do a little bit different things
<duderonomy>
I had a friend suggest I use the automation features in minicom
freerobby has joined #ruby
<baweaver>
Net::Telnet and Net::SSH
<duderonomy>
Well, ruby is not running on the little Linux host (low ARM based CPU)
<duderonomy>
thanks baweaver. nice to talk again
mc_fail has joined #ruby
zacstewart has joined #ruby
<baweaver>
Those two run on your local machine
<baweaver>
and execute commands on the remote
bronson has quit [Ping timeout: 252 seconds]
endorphine_ has quit []
<baweaver>
source: I used to use both to automate a few thousand wireless antennas running embedded linux
keernel has joined #ruby
jenrzzz has joined #ruby
yfeldblum has joined #ruby
<duderonomy>
yes... baweaver my response was out of order and going to dfockler. I gotta get better at irc
Axy has joined #ruby
<duderonomy>
Perfect. I will put my time into those libs!
symbol has joined #ruby
enebo has quit [Quit: enebo]
emilkarl has quit [Quit: emilkarl]
JoshL has joined #ruby
<dfockler>
yeah never use Net::Telnet but if you are just telnetting that should work
* baweaver
shrugs
<baweaver>
It scratched an itch
<dfockler>
sorry I've never used Net::Telnet
al2o3-cr has quit [Ping timeout: 246 seconds]
<dfockler>
typing :P
mleung has joined #ruby
<Ox0dea>
ponga: Where's rubonga?
Mia has quit [Ping timeout: 258 seconds]
<ponga>
Ox0dea: actually i ran the code without eval part but just ping
<ponga>
but bot is not coming
Matthews_ has quit [Read error: Connection reset by peer]
<ponga>
he's missing
<Ox0dea>
How do you mean?
MatthewsFace has joined #ruby
<ponga>
um i ran the code, but bot didn't appear
<duderonomy>
baweaver: If you recall any helpful blog pages or tuts that were aligned with those goals (nearly like mine) then I'd be grateful to get a link (if u happen to recall it)
ogpastal_ has quit [Read error: Connection reset by peer]
qwertme has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<cj>
jhass: that's nice, but I would go with ironruby and IronPHP if I were going to try to get the two to play nice together.
gamename has quit []
mc_fail has joined #ruby
jaycee has joined #ruby
<jhass>
and I'd go to seek to do something else no matter the costs
<cj>
Ox0dea: but to tell the truth, associative arry is a data structure familiar to all programming environments. it's just called things like "hash" in perl or "object" in javascript so that they don't have to use so many sylables :-)
mandarinkin has quit [Quit: Leaving]
mleung has joined #ruby
apofis has quit [Ping timeout: 258 seconds]
* jhass
still prefers map as the general tem
<cj>
but anyway, I was asking for something more akin to perl's Data::Dumper module. Is there a way to convert a ruby hash object to JSON for instance?
<jhass>
*term
<jhass>
sure, just call to_json on it
<ponga>
jhass: can you at least explain if / / in /PING (\S+)/ are part of irc protocol or is it ruby operator
<ponga>
please
DynamicMetaFlow has joined #ruby
<Ox0dea>
ponga: /regular expression goes here/
<jhass>
ponga: /foo/ is a regex literal, the / delimit it like " and ' delimit strings
<ponga>
thanks!
wildroman2 has joined #ruby
arescorpio has joined #ruby
* ponga
is on his way to find some irc protocol documents
momomomomo has quit [Ping timeout: 272 seconds]
<jhass>
come back when you lost your sanity over trying to parse MODE
rkazak has quit [Ping timeout: 250 seconds]
momomomomo has joined #ruby
<jhass>
ponga: why don't you just use cinch?
<ponga>
i want to learn
<Ox0dea>
<3
<Ox0dea>
Also, TCPSocket == high performance.
<cj>
jhass: yes. I do too ;-)
<cj>
do I need a module installed to have access to the to_json method?
<ponga>
shevy recommended me to read some irb sourcecode too but it was like asking a 4 yr baby to jump off the roof and fly
<jhass>
ponga: write a bot in cinch first, then reimplement the underlying stuff. divide & conquer
<ponga>
k
pothibo has quit [Ping timeout: 252 seconds]
Xoro has quit [Read error: Connection reset by peer]
<ponga>
so my first goal is to make a bot named pinga and when he's been called he says ponga
Xoro has joined #ruby
<ponga>
which then conviniently calls me too
<jhass>
cj: ships in stdlib, just require "json"
<ponga>
how convinient
<jhass>
sounds good
pyrex has joined #ruby
<cj>
and what's the string concat operator ? + ?
<Ox0dea>
cj: It's circumstantial.
aryaching has quit [Read error: No route to host]
<jhass>
cj: yes, but we prefer "string #{interpolation}" over "string" + concatenation
<Ox0dea>
And sometimes shoveling.
<cj>
Chef::Log.info("node: " + to_json( node ))
<jhass>
interpolation can be almost any valid ruby expression
<cj>
okay, so #{to_json(node)} ?
<jhass>
"node: #{node.to_json}"
<Ox0dea>
What kind of expression can't be interpolated?
<jhass>
there was one but I forgot :P
pengin has joined #ruby
<Ox0dea>
Heh.
<cj>
no semi-colons to end lines, no way to put multiple statements on the same line?
mc_fail has quit [Ping timeout: 255 seconds]
<jhass>
cj: you can actually use semicolons, but don't, we only do in IRC for space efficiency
<jhass>
just not worth it in real code
sarkyniin has quit [Quit: Quit]
NeverDie has quit [Ping timeout: 264 seconds]
jesterfraud_ has joined #ruby
qwertme has joined #ruby
idafyaid has quit [Ping timeout: 246 seconds]
<Ox0dea>
>> "#{module WTF; class Wtf; def wtf; end end end}"
Dreamer3 has quit [Read error: Connection reset by peer]
<jhass>
mh, nope that wasn't it :P
freerobby has quit [Quit: Leaving.]
Dreamer3 has joined #ruby
DynamicMetaFlow has quit [Remote host closed the connection]
nikhgupta has joined #ruby
michaeldeol has joined #ruby
<Ox0dea>
Hm, I'm gonna try to interpolate Rails.
krisquigley has joined #ruby
<jhass>
heh
dented42 has quit [Read error: Connection reset by peer]
bantic has quit [Quit: bantic]
bkxd has quit [Ping timeout: 246 seconds]
fgo has joined #ruby
nikhgupta has quit [Client Quit]
jenrzzz has quit [Ping timeout: 244 seconds]
phutchins has quit [Ping timeout: 256 seconds]
<miah>
node.to_json (prepare for mega scroll)
k3asd` has quit [Ping timeout: 252 seconds]
<miah>
simply running ohai locally i get 3400 lines of output =)
<jhass>
?pry cj
<ruboto>
cj, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
<miah>
we did this the other day during some chef debugging as well
bmurt has joined #ruby
<jhass>
cj: good for debugging
hakunin has quit [Remote host closed the connection]
<sung_>
i know that ruby should never look like that
<sung_>
so how should it look? :D
hahuang65 has joined #ruby
choke has quit [Client Quit]
justintv90 has joined #ruby
hahuang61 has quit [Ping timeout: 264 seconds]
momomomomo has quit [Quit: momomomomo]
<eam>
sung_: use temporary variables, key = get_date_from_ts_file(filename).match(/(\d{4})(\d{2})(\d{2})$/)[1..3].join('-')
<eam>
date_summary[key] = count_subs(filename)
<eam>
repeat this process until it looks like the right amount of complexity per line
mwlang has quit [Quit: mwlang]
Narzew has quit [Remote host closed the connection]
freerobby has joined #ruby
segfalt has joined #ruby
Xiti has quit [Quit: Xiti]
victorkohl has quit []
nobitanobi has joined #ruby
bin_005_q has quit [Ping timeout: 252 seconds]
nobitanobi has quit [Client Quit]
nobitanobi has joined #ruby
zenguy_pc has quit [Read error: No route to host]
Xiti has joined #ruby
ramfjord has quit [Ping timeout: 245 seconds]
white_magic has joined #ruby
<white_magic>
hi
someword has quit [Quit: Leaving.]
<white_magic>
I just installed Ruby 2.2 on my windows machine and I'm trying to install Rails from commandline (ruby.exe).. but whatever I enter in the Ruby prompt, it just keeps asking for more input. How can I get it to evaluate the input for once?
rbowlby has quit [Remote host closed the connection]
<havenwood>
white_magic: For an interactive REPL, try `irb` or to run a script inline: ruby -e "puts 'an example'"
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
x1337807x has joined #ruby
<havenwood>
white_magic: For a list of the ruby switches like -e see `ruby -h` or `man ruby` for more detail.
<havenwood>
?pry white_magic
<ruboto>
white_magic, Pry, the better IRB. Includes easy object inspection via `ls`, `history`, docs view with `?`, source view with `$` and syntax highlighting, among other features (see `help` for more). It can also be used for easy debugging by putting ’binding.pry’ directy in your source code. Visit https://pryrepl.org/ or get it now with gem install pry pry-doc
vikaton has quit []
bosma is now known as bosnia
<havenwood>
white_magic: Instead of `irb`, which ships with Ruby you can use `pry`, which is a gem that can be installed with: gem install pry pry-doc
<Ox0dea>
white_magic: Heed havenwood's advice, but the answer to your question is that the prompt is waiting for you to signal "end of file", which is Ctrl-Z in Windows.
<white_magic>
ahhh
x1337807_ has joined #ruby
<white_magic>
i'll first try with ctrl-z....
AlphaAtom has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
LicHacker has joined #ruby
chipotle has joined #ruby
blue_deref has joined #ruby
zotherstupidguy has quit [Ping timeout: 244 seconds]
Lucky__ has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
ponga has quit [Quit: Leaving...]
enebo has joined #ruby
zotherstupidguy has joined #ruby
chipotle has quit [Client Quit]
freerobby has quit [Quit: Leaving.]
<white_magic>
ok, so i'm using IRB and I entered 'gem install rails' in the interactive prompt, and it doesn't know what 'rails' means
x1337807x has quit [Ping timeout: 265 seconds]
<Ox0dea>
Yikes.
fgo has joined #ruby
symbol has quit [Quit: WeeChat 1.1]
rodfersou has quit [Ping timeout: 244 seconds]
davidhq has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jpfuentes2 has joined #ruby
<white_magic>
ok i'm stupid.. i'm supposed to run "gem(.EXE) install rails"
Pumukel has quit [Ping timeout: 265 seconds]
workmad3 has joined #ruby
<havenwood>
white_magic: Or from Pry to install and then require the gem you can: gem-install rails
<havenwood>
white_magic: Pry is a gem like Rails is a gem.
<white_magic>
im sure i'll get to know pry intimately but for now im keeping it most simple..
chipotle has joined #ruby
zenguy_pc has joined #ruby
fsvehla has quit [Quit: fsvehla]
choke has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
commondream has quit [Remote host closed the connection]
commondream has joined #ruby
choke has quit [Client Quit]
nobitanobi has quit [Remote host closed the connection]
dstarh has joined #ruby
nobitanobi has joined #ruby
bkxd has joined #ruby
edwinvdg_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
jgt3 has quit [Ping timeout: 252 seconds]
commondream has quit [Ping timeout: 255 seconds]
autrilla_ has quit [Quit: Connection closed for inactivity]
dfockler has quit [Remote host closed the connection]