<lectrick>
amth: lol that is really bad. it might save an extra variable in recursive algorithms tho... maybe.
<amth>
lectrick: Yep. That is a really common beginner mistake.
ddd has quit [Quit: fixing client]
sailias has joined #ruby
ddd has joined #ruby
matti has left #ruby ["8-X"]
<amth>
Like I said, I have made use of it before.
<lectrick>
amth: But is it truly objectively bad or just ugly to Rubyists? :)
<amth>
But really it's a side effect of an optimization.
adamjleonard has joined #ruby
<amth>
It is a lot more computationally expensive to do things the Ruby way.
<lectrick>
amth: is that the case both for lambdas as well as regular functions?
<amth>
Python tends more toward optimization than Ruby does.
<lectrick>
amth: fair enough
<amth>
Yes.
<amth>
The Ruby way enables a lot of stuff the Python way doesn't, though, which is why I prefer it.
kofno has joined #ruby
<amth>
Well, that and Ruby doesn't really like legacy versions. That is actually the primary reason.
adamjleonard has quit [Client Quit]
ddd has quit [Client Quit]
<amth>
I would probably use them equally if Python had ditched 2 completely.
Emmanuel_Chanel has joined #ruby
<amth>
But, alas, they didn't, and fucked themselves royally.
ddd has joined #ruby
<amth>
Anyway, Ruby is super nice, and keyword arguments were the biggest wart.
<amth>
And refinements, too.
<lectrick>
:)
<amth>
So Ruby would be better anyway, imo.
<amth>
But yeah, Python has its reasons.
<lectrick>
Not slow? :)
tommyvyo has quit [Quit:]
<amth>
Yeah, and there's really a different design philosophy.
<amth>
Python aims for simplicity in a way Ruby really doesn't.
lewix has joined #ruby
hiyakash_ has quit [Quit: お前は知りすぎた]
<amth>
I find that to be a hinderance, to be honest, but I still feel like Python code is more elegant.
<amth>
(though less useful)
pskosinski has quit [Quit: pskosinski]
axsuul_ has quit [Quit: axsuul_]
<lectrick>
Python turned me off the very first time using it when I typed "exit" in its REPL and it was all like "Use control-D to exit." I was like... so you *know* what I wanted to do, and *still* lectured me...
<amth>
But they're pretty similar languages overall.
<lectrick>
That and all the passing around of self, __self__ etc
chaluopa has joined #ruby
<lectrick>
Also not a big fan of the significant whitespace... but then I use YAML... and HAML... and SASS... and...
<amth>
Ruby is a bit too DWIM for my taste. I can't say I'm fond of the methods-don't-require-parens thing.
<amth>
@property is better.
<amth>
self is fucking annoying, though.
<lectrick>
you mean python's self?
<amth>
Yeah.
<lectrick>
yep
<amth>
It is there to try to enforce more functionalness.
<lectrick>
apparently the lack of implicit binding means you can pass around functions but it also means you have to pass around self
<amth>
But Python ended up OO anyway.
Sargun has quit [Ping timeout: 256 seconds]
<amth>
You can do it with magic in Ruby.
<lectrick>
ruby you can only grab functions and bind them to the same or descendent classes I believe
<lectrick>
sorry, methods
<amth>
Ruby is a very magic language, which is really the biggest difference.
<lectrick>
:)
etcetera has joined #ruby
<lectrick>
it's so magic that if you don't have a test suite you're pretty fucked
<lectrick>
:)
johnnymuggs has joined #ruby
Sargun has joined #ruby
slainer6_ has quit [Remote host closed the connection]
<lectrick>
ruby gives you enough rope to hang yourself with, tests make sure the floor doesn't drop out under the gallows
lunarjar has joined #ruby
lunarjar has quit [Client Quit]
eliasp has quit [Read error: Connection reset by peer]
adkron has quit [Ping timeout: 240 seconds]
<amth>
Hmm, you're right.
eliasp has joined #ruby
Nuck has joined #ruby
johnnymuggs has left #ruby [#ruby]
Nuck has quit [Changing host]
Nuck has joined #ruby
<amth>
That method thing is annoying in principle, but I didn't even know about it, so that is pretty good evidence it's not terribly useful.
baroquebobcat has quit [Quit: baroquebobcat]
tspike has joined #ruby
kofno has quit [Remote host closed the connection]
<lectrick>
So yeah, we have some core extensions libs in our repo, I totally want to add bang'ed versions of receiver-modifying methods so that our code is clearer
<lectrick>
alias push! push
<lectrick>
i bet there's a gem...
toekutr has quit [Remote host closed the connection]
<lectrick>
anyway that's pretty much the main Ruby blemish/pet-peeve I have. Oh that and people being willy-nilly with hash key types
Drewch has joined #ruby
mengu_ has quit [Quit: This computer has gone to sleep]
moted has quit [Ping timeout: 260 seconds]
timmow has joined #ruby
elaptics is now known as elaptics`away
beneggett has quit [Quit: Computer has gone to sleep.]
<jblack>
mmmm, using a hash as a hash key...
gabrielrotbart has quit [Remote host closed the connection]
<mercwithamouth>
basically i'm importing xml/json documents and for each iteration it should check and see if that particular entries id exists...if not it should create a record for it
araujo has joined #ruby
<mercwithamouth>
no errors but it only creates a record for the first one
andrew12_ is now known as andrew12
pencilcheck has joined #ruby
moos3 has quit [Client Quit]
wtee has joined #ruby
moos3 has joined #ruby
jimeh has quit [Ping timeout: 256 seconds]
hamakn has joined #ruby
pen has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
Guest85414 has joined #ruby
lahwran- is now known as lahwran
nari has joined #ruby
robscomputer has quit [Remote host closed the connection]
randomautomator has quit [Ping timeout: 256 seconds]
<Nom->
mercwithamouth: That seems fine... what does the console tell you?
dagnachew has joined #ruby
sleetdrop has joined #ruby
Xeago has quit [Remote host closed the connection]
Nom- has quit [Changing host]
Nom- has joined #ruby
enthrops has joined #ruby
<enthrops>
How is private / protected handled when including modules?
<mercwithamouth>
Nom-: well when i check the count it only gives me 1
<mercwithamouth>
however if i remove the 'unless' iteration i get hundreds
terrorpup has joined #ruby
Domon has joined #ruby
nezumi has quit [Ping timeout: 255 seconds]
jgrevich_ has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
jgrevich has quit [Ping timeout: 255 seconds]
jgrevich_ is now known as jgrevich
<banisterfiend>
enthrops: they dont hange
<banisterfiend>
change
<enthrops>
banisterfiend: so I specify them in modules, right?
<Nom->
mercwithamouth: I mean... run it in the console and see what SQL gets run... perhaps exists? is only running once... or maybe it's checking for the same UUID every time
<mercwithamouth>
ahh i gotcha
<banisterfiend>
enthrops: sure
carlyle has joined #ruby
carlyle has quit [Read error: Connection reset by peer]
<enthrops>
banisterfiend: is ruby smart enough to mark a method not in modules as public if it is surrounded by includes which all have private methods?
<mercwithamouth>
ha FeedEntry Exists (0.1ms) SELECT 1 AS one FROM "feed_entries" WHERE "feed_entries"."etag" IS NULL LIMIT 1
tshauck has joined #ruby
carlyle has joined #ruby
<banisterfiend>
enthrops: no
<banisterfiend>
enthrops: wait
<enthrops>
banisterfiend: thanks
<banisterfiend>
enthrops: i have no idea what u mean by that
pixelshuck has joined #ruby
<banisterfiend>
enthrops: i think the answer is 'yes' actually, the private/protected/public of methods in a module is irrelevant to the class doing the inclusion
<banisterfiend>
but im really not sure what u mean
<mercwithamouth>
Nom-: ahh i see...neither etag or guid when i use that are being set to anything
rickruby has quit [Remote host closed the connection]
<havenwood>
pixelshuck: Either should be easier to work with than Net::HTTP (HTTParty is actually a wrapper around Net::HTTP, HTTPClient is pure Ruby and has great feature coverage.
<havenwood>
)
<pixelshuck>
thanks"
<pixelshuck>
thanks!
<tshauck>
havenwood, Clockwork might be the right fit, I'll explore some more. thanks
<chessguy>
i know that an object is going to receive the same message a number of times with different arguments. i want to say that one of the times it receives it, it should be with a particular argument. how do i do that with standard rspec expectations?
<havenwood>
pixelshuck: Before using it, you have to once run: gem install rest-client
<pixelshuck>
I don't really understand, whats closest to curl test.com -u KEY
<pixelshuck>
as in there is no name for the auth, it is just sent by -u
<pixelshuck>
but restcient wants me to provide name foo => bar
<pixelshuck>
can i send just bar?
shevy has quit [Ping timeout: 256 seconds]
gabrielrotbart has quit [Remote host closed the connection]
zeade has joined #ruby
DrShoggoth has quit [Quit: Leaving]
gabrielrotbart has joined #ruby
<amh345>
julian-delphiki: http://eval.in/14153 < so i looked this over this evening with fresh eyes. a) i get how this works b) this example that was created doesnt fit the flow of what i have. which i think was causing me a lot of confusion.
baroquebobcat has quit [Quit: baroquebobcat]
ner0x has quit [Quit: Leaving]
<havenwood>
pixelshuck: yes, you can send anything you want
<amh345>
that being said. now that i understand stand how it works… i think i may have to refactor some of the code.
<havenwood>
pixelshuck: If you're more conformable with Curl-style syntax, could use a Ruby curl wrapper like Curb or Patron instead. https://github.com/taf2/curb#readme
<havenwood>
pixelshuck: I guess nice to pick a full featured option like HTTPClient, then you rarely have to switch. If you ever have time, that talk I linked covers em all in great detail. Also gives a handy spreadsheet that he keeps up to date that lets you pick the right one for the talk at hand.
<havenwood>
pixelshuck: Most have very similar APIs, so not too tough to switch between em.
bubblehead has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 255 seconds]
beneggett has quit [Quit: Computer has gone to sleep.]
dagnachew has quit [Remote host closed the connection]
Ontolog has quit [Ping timeout: 245 seconds]
shevy has joined #ruby
<pixelshuck>
ok, Do i Want HTTP, HTTPAccess2 or HTTPClient?
<pixelshuck>
Cause all three seem reasonable in this case
marcdel has joined #ruby
jbueza has quit [Quit: Leaving.]
sleetdrop has quit [Quit: Computer has gone to sleep.]
kseifried_ has joined #ruby
tshauck has quit [Quit: leaving]
<kseifried_>
hey anyone know when ruby 1.9 will end of life roughly?
nezumi has joined #ruby
sleetdrop has joined #ruby
kseifried_ is now known as kseifried
kseifried has quit [Changing host]
kseifried has joined #ruby
enthrops has left #ruby [#ruby]
<havenwood>
kseifried: I haven't heard any mention of establishing a formal sunset date. 1.8 EOLed after 10 years, so I'd guess about 2019 for 1.9? Just a wild guess..
dayom has joined #ruby
<kseifried>
hahaha I wish
<kseifried>
my thought is they'll get bored of 1.9 with 2.0 sexxiness out, and who can blame them
radic has quit [Disconnected by services]
<pixelshuck>
havenwood, httpclient documentation is WILD
radic_ has joined #ruby
<havenwood>
kseifried: I guess the expected difficulty of transition is much lower. So many people on 1.9 though it seems supporting it for years to come is likely.
<pixelshuck>
havenwood, thanks for help, Ruby is probably not for me, don't seem to catch up, will do it in bash, but thanks fo help!
dayom has quit [Read error: Connection reset by peer]
patronus_ is now known as patronus
dayom has joined #ruby
pitzips has quit [Ping timeout: 276 seconds]
patronus is now known as Guest73208
momomomomo has joined #ruby
tcopp has quit [Ping timeout: 240 seconds]
cyntacks has joined #ruby
havenwood has quit [Remote host closed the connection]
jdunck has quit [Quit: Computer has gone to sleep.]
cyntacks has left #ruby [#ruby]
havenwood has joined #ruby
oxez has left #ruby [#ruby]
havenwood has left #ruby [#ruby]
bradleyprice has joined #ruby
joofsh has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Sicp has quit [Quit: Leaving]
catalyst40 has quit [Ping timeout: 256 seconds]
jurassic_ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
baroquebobcat has quit [Client Quit]
wtee has quit [Quit: wtee]
jarin has quit [Quit: WeeChat 0.4.0]
pixelshuck has quit [Ping timeout: 260 seconds]
baroquebobcat has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
pitzips has joined #ruby
yashshah_ has joined #ruby
baroquebobcat has quit [Client Quit]
io_syl has quit [Quit: Computer has gone to sleep.]
<ariedler>
I was just thinking, anyone know someone that may have scraped Github to determine who uses a particular gem?
Yulli has left #ruby ["Bye bye"]
freezey has quit [Read error: Connection reset by peer]
mattbl has quit [Quit: This computer has gone to sleep]
rickruby has joined #ruby
sayan has joined #ruby
mattbl has joined #ruby
freerobby has quit [Quit: Leaving.]
mmitchell has joined #ruby
macabhaird has quit [Ping timeout: 245 seconds]
Ontolog has joined #ruby
rickruby has quit [Ping timeout: 248 seconds]
osvico has quit [Ping timeout: 252 seconds]
dustint has quit [Quit: Leaving]
pygmael has joined #ruby
<Nom->
Rubygems tracks download stats og gems
<Nom->
*of gems
<Nom->
Given they're the source that gets hit when you use Bundler, that's far more reliable than Github
beneggett has quit [Quit: Computer has gone to sleep.]
beneggett has joined #ruby
sayan has quit [Ping timeout: 240 seconds]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
havenwood has joined #ruby
Yulli has joined #ruby
pygmael has quit [Quit: pygmael]
momomomomo has quit [Ping timeout: 256 seconds]
marcdel has quit [Ping timeout: 255 seconds]
<Yulli>
Hey there. Is there any reason not to use Ruby 2.0.0 for any production code other than the incompatibilities listed on the version release page?
maletor has quit [Quit: Computer has gone to sleep.]
abstrusenick has joined #ruby
stuartrexking has quit [Quit: Leaving...]
PragCypher has quit [Read error: No route to host]
stuartrexking has joined #ruby
adkron has quit [Ping timeout: 246 seconds]
jurassic_ has quit [Quit: jurassic_]
<havenwood>
Yulli: People are definitely using 2.0.0-p0 in production. :D Some folks are waiting for another point release, but 2.0.0 is a stable release unlike the original 1.9.0.
statarb3 has quit [Ping timeout: 255 seconds]
<Nom->
It's also been out for over a month now
<Nom->
I'm probably going to start developing against it for the next project we launch
<havenwood>
Yulli: Rails for is 2.0 preferred, 1.9 supported, 1.8 no.
<havenwood>
s/Rails for/Rails 4
baroquebobcat has joined #ruby
<Nom->
Yeah, Rails 4 too for me :P
<ariedler>
havenwood: I can attest to that :)
<Yulli>
Okay, thanks! I was wondering because RVM rubygems seems to have a problem with 2.0.0. :/
adamjleonard has joined #ruby
<ariedler>
Yulli: what was the issue, I may have encountered it
<havenwood>
Yulli: Did you?: gem update --system
<Yulli>
I can't recall the exact error, but it was trying to install it using 1.9.3
<Yulli>
I didn't, havenwood. I'll try that now.
jurassic_ has joined #ruby
<havenwood>
Yulli: Another way to update to 2.0.3: gem install rubygems-update; update_rubygems
<Yulli>
I.. I'm not sure what that means. I'm following rvm's instructions from scratch over again.
generalissimo has quit [Remote host closed the connection]
sayan has joined #ruby
<havenwood>
Yulli: So Ruby ships with a bundled version of RubyGems. Ruby 2.0.0-p0 shipped with RubyGems 2.0.0. There wee some fixes, so now RubyGems is version 2.0.3.
<havenwood>
s/wee/were
<Yulli>
Aha, okay. So then after installing rvm and running a `rvm install 2.0.0`, I should `gem install ruby-gems update; update_rubygems`?
<havenwood>
Yulli: Yup!
bigmac has joined #ruby
<Yulli>
Awesome! Will do. :)
Myconix has quit [Ping timeout: 256 seconds]
adkron has joined #ruby
divout1 has joined #ruby
matayam has quit [Remote host closed the connection]
<Yulli>
Aha, the error before appeared because I hadn't run `rvm use 2.0.0 --default`. So it was trying to use 1.9.3 to install rubygems. :)
rburton- has joined #ruby
chrishough has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
<Yulli>
havenwood: It all worked nicely! Thanks for your help. :)
tootooroo has quit [Quit: +1 (Yes). -1 (No). i (What I have been trying to tell you all along).]
jdunck has joined #ruby
MetaCosm has quit [Excess Flood]
jurassic_ has quit [Quit: jurassic_]
MetaCosm has joined #ruby
ocnam has joined #ruby
Ontolog has quit [Remote host closed the connection]
Yulli has left #ruby ["Bye bye"]
dayepa1 has quit [Quit: dayepa1]
dayepa has joined #ruby
DrShoggoth has joined #ruby
dayom has quit [Read error: Connection reset by peer]
timmow has joined #ruby
mmitchell has quit [Remote host closed the connection]
Myconix has joined #ruby
dayom has joined #ruby
T41Ru5 has left #ruby ["Saliendo"]
tootooroo has joined #ruby
dcope has left #ruby [#ruby]
timmow has quit [Ping timeout: 252 seconds]
tylersmith has joined #ruby
terrorpup has quit [Ping timeout: 240 seconds]
kofno has quit [Remote host closed the connection]
Beoran__ has joined #ruby
chessguy has quit [Remote host closed the connection]
jurassic_ has joined #ruby
jurassic_ has quit [Client Quit]
hamakn has quit [Remote host closed the connection]
Beoran_ has quit [Ping timeout: 260 seconds]
hamakn has joined #ruby
t-mart has joined #ruby
t-mart has quit [Changing host]
t-mart has joined #ruby
codezombie has joined #ruby
rippa has joined #ruby
freakazoid0223 has quit [Ping timeout: 256 seconds]
DonRichie has quit [Quit: Verlassend]
Nisstyre-laptop has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
ariedler has quit [Remote host closed the connection]
anirudh24seven has joined #ruby
sambio_ has joined #ruby
sambio_ is now known as Limada
chessguy has joined #ruby
sambio has quit [Ping timeout: 256 seconds]
LennyLinux has quit [Remote host closed the connection]
Limada is now known as sambio
sayan has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
matayam has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
linx_0x has quit [Quit: Leaving]
etcetera has joined #ruby
chandankumar has joined #ruby
unCork has quit [Quit: .]
pencilcheck has quit [Remote host closed the connection]
agarie_ has quit [Remote host closed the connection]
chaluopa has quit [Remote host closed the connection]
mahmoudimus has joined #ruby
terrorpup has joined #ruby
terrorpup has quit [Changing host]
terrorpup has joined #ruby
adamjleonard has quit [Quit: Leaving...]
bubblehead has joined #ruby
Rumsteak has quit [Quit: Rumsteak]
etcetera has quit []
Myconix has quit [Ping timeout: 248 seconds]
Domon has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 248 seconds]
bubblehead has quit [Ping timeout: 248 seconds]
indyrl has left #ruby [#ruby]
sambio has quit [Changing host]
sambio has joined #ruby
Myconix has joined #ruby
shock_one has joined #ruby
eliasp has quit [Read error: Connection reset by peer]
eliasp has joined #ruby
icy` has joined #ruby
icy` has quit [Changing host]
icy` has joined #ruby
jurassic_ has joined #ruby
io_syl has joined #ruby
jurassic_ has quit [Client Quit]
tootooroo has quit [Quit: brb]
beneggett has quit [Quit: Computer has gone to sleep.]
hamakn has quit [Remote host closed the connection]
zeroeth has joined #ruby
tylersmith has quit [Quit: tylersmith]
philcrissman has quit [Remote host closed the connection]
end_guy has quit [Remote host closed the connection]
end_guy has joined #ruby
feedbackloop has joined #ruby
a_a_g has joined #ruby
divout has joined #ruby
beneggett has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
yashshah_ has joined #ruby
divout1 has quit [Ping timeout: 256 seconds]
timmow has joined #ruby
uris has quit [Quit: Leaving]
codecop has joined #ruby
kpshek has joined #ruby
jonahR has quit [Quit: jonahR]
thams has joined #ruby
bradleyprice has quit [Remote host closed the connection]
hamakn has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
timmow has quit [Ping timeout: 252 seconds]
MehLaptop has joined #ruby
Banistergalaxy has quit [Remote host closed the connection]
kofno has joined #ruby
<thams>
Recently saw reference to a project for turning irb into a nice shell for Unix commands… but can't find it again. Anyone know of it?
shock_one has quit [Ping timeout: 246 seconds]
tomzx_mac has quit [Ping timeout: 264 seconds]
toekutr has joined #ruby
mockra has joined #ruby
doritostains has joined #ruby
hemanth has joined #ruby
dhruvasagar has joined #ruby
nathancahill has quit [Quit: nathancahill]
mattbl has quit [Quit: This computer has gone to sleep]
pbertain has joined #ruby
doritostains has quit [Client Quit]
pen has joined #ruby
<banisterfiend>
thams: rush?
carlyle has quit [Remote host closed the connection]
<thams>
Just stumbled onto that… it wasn't the one I saw, but it looks interesting.
robustus has quit [Ping timeout: 276 seconds]
dhruvasagar has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 246 seconds]
<thams>
The thing I saw, as I recall, made it so you could more-or-less do the things you would normally do in bash, but be within a ruby environment. Rush seems to be about giving ruby syntax and semantics to system elements.
kofno has quit [Ping timeout: 256 seconds]
robustus has joined #ruby
<wishfoundry>
thams: chef
<thams>
(although, maybe it would be better to just learn Rush)
jurassic_ has joined #ruby
girija has joined #ruby
sambio has quit []
hemanth has quit [Read error: Connection reset by peer]
<thams>
wishfoundry: that looks like configuration management tool… does it also do the thing I'm asking?
IcyDragon has quit [Quit: Space~~~]
baroquebobcat has quit [Client Quit]
<wishfoundry>
it does what your asking as ruby scripts, then packages those scripts as modular components
<wishfoundry>
then has a distribution system for those components
Domon has joined #ruby
tommyvyo has quit [Quit:]
<thams>
wishfoundry: I'm looking for an interactive tool; enhancement or replacement for irb, for doing common tasks (cd to a directory, view a file, etc), not for automating somethign.
dayom has quit [Quit: dayom]
danslo has quit [Quit: danslo]
dmiller has joined #ruby
<waxjar>
Pry is an IRB replacement
<wishfoundry>
pry
<waxjar>
it can execute shell commands, too
Domon has quit [Remote host closed the connection]
<thams>
pry looks good.
Domon has joined #ruby
angusiguess has joined #ruby
Matt has joined #ruby
Matt is now known as Guest65416
etcetera has joined #ruby
jekotia has quit [Quit: sleepy time *yawn* *spikes everyones' drinks with catnip*]
bricker`1A has joined #ruby
dhruvasagar has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
zigomir has joined #ruby
Nisstyre-laptop has quit [Quit: Leaving]
crazysim has quit [Ping timeout: 255 seconds]
bricker`LA has quit [Ping timeout: 245 seconds]
nathancahill has joined #ruby
randym has quit [Ping timeout: 258 seconds]
fcoury has quit [Ping timeout: 258 seconds]
patricksroberts_ has quit [Ping timeout: 258 seconds]
NimeshNeema has quit [Ping timeout: 258 seconds]
kaichanvong has quit [Ping timeout: 258 seconds]
nomenkun has joined #ruby
fourq has quit [Ping timeout: 258 seconds]
moeSeth_ has quit [Ping timeout: 258 seconds]
dmiller has quit [Ping timeout: 264 seconds]
guilleiguaran_ has quit [Ping timeout: 258 seconds]
kapowaz has quit [Ping timeout: 258 seconds]
banjara has joined #ruby
dhruvasagar has quit [Ping timeout: 276 seconds]
unstable has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
momomomomo has joined #ruby
nouitfvf has quit [Ping timeout: 255 seconds]
smt has joined #ruby
chrishough has quit [Read error: Connection reset by peer]
Dwarf has quit [Ping timeout: 264 seconds]
lewix has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 256 seconds]
braoru has joined #ruby
<julian-delphiki>
amh345, it was pretty hard to know what you had / needed since you didnt even say rails until we'd been talking for 30 mins
<julian-delphiki>
:p
pen has quit [Read error: Connection reset by peer]
<amh345>
;)
pen has joined #ruby
<amh345>
i ended up moving back to my original way. but i cleaned up a bunch of it based on the comments here.
divout has quit [Read error: Connection reset by peer]
Dwarf has joined #ruby
NimeshNeema has joined #ruby
matayam has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
Cork has joined #ruby
bubblehead has joined #ruby
divout has joined #ruby
MehLaptop has quit [Remote host closed the connection]
wtee has joined #ruby
pen has quit [Remote host closed the connection]
stuartrexking has quit [Quit: Leaving...]
a_a_g has quit [Quit: Leaving.]
wtee has quit [Client Quit]
wtee has joined #ruby
Tectonic has quit []
tatat has joined #ruby
kristofers has joined #ruby
whowantstolivefo has quit [Quit: who wants to live forever ?]
hamakn has joined #ruby
subbyyy has quit [Ping timeout: 256 seconds]
daemoen has quit [Quit: WeeChat 0.4.0]
timmow has joined #ruby
dmiller has joined #ruby
cobragoat has quit [Remote host closed the connection]
cobragoat has joined #ruby
matayam has joined #ruby
bubblehead has quit [Ping timeout: 256 seconds]
awarner_ has joined #ruby
pyro111 has joined #ruby
chessguy has quit [Remote host closed the connection]
Skofo has quit [Remote host closed the connection]
hamakn has quit [Ping timeout: 256 seconds]
ananthakumaran has joined #ruby
awarner has quit [Ping timeout: 260 seconds]
timmow has quit [Ping timeout: 252 seconds]
dmiller has quit [Ping timeout: 260 seconds]
cobragoat has quit [Ping timeout: 260 seconds]
decoponio has joined #ruby
huoxito has quit [Quit: Leaving]
mockra has joined #ruby
BizarreCake has joined #ruby
kofno has joined #ruby
reset_ has joined #ruby
kstephens has quit [Quit: PredictTheFuture]
SCommette has quit [Quit: SCommette]
mockra has quit [Ping timeout: 256 seconds]
tcopp has quit [Ping timeout: 256 seconds]
kofno has quit [Ping timeout: 245 seconds]
workmad3 has joined #ruby
reset has quit [Ping timeout: 245 seconds]
jurassic_ has quit [Quit: jurassic_]
kstephens has joined #ruby
reset_ has quit [Ping timeout: 256 seconds]
mafolz has joined #ruby
aganov has joined #ruby
etcetera has quit []
jurassic_ has joined #ruby
tagrudev has joined #ruby
thebastl has joined #ruby
Guest65416 has quit [Quit: This computer has gone to sleep]
etcetera has joined #ruby
robscomputer has joined #ruby
mafolz has quit [Remote host closed the connection]
mafolz has joined #ruby
wallerdev has quit [Quit: wallerdev]
xll11 has joined #ruby
<xll11>
howdy
<havenwood>
hi
dhruvasagar has quit [Quit: Lost terminal]
<xll11>
I have a pretty decent knowledge in java, and I decided I wanted to pick up a scripting language, now the choice was either ruby,php or python, I tinkered around with php a bit but people recommended i stay away from it
mercwithamouth has quit [Ping timeout: 260 seconds]
dkannan has joined #ruby
atno has joined #ruby
Bry8Star has joined #ruby
elaptics`away is now known as elaptics
freeayu has quit [Read error: Connection reset by peer]
tevio has joined #ruby
Astralum has quit [Ping timeout: 255 seconds]
rickruby has joined #ruby
nathancahill has joined #ruby
mercwithamouth has joined #ruby
freeayu has joined #ruby
slainer68 has joined #ruby
akemrir has joined #ruby
emergion has joined #ruby
chandankumar is now known as chandan_kumar
slainer68 has quit [Read error: Connection reset by peer]
rickruby has quit [Ping timeout: 276 seconds]
arya has joined #ruby
slainer68 has joined #ruby
skroon_ is now known as skroon
chussenot has quit [Quit: chussenot]
becom33 has quit [Ping timeout: 255 seconds]
timmow has joined #ruby
chussenot has joined #ruby
abstrusenick has quit [Quit: abstrusenick]
hamakn has joined #ruby
chussenot has quit [Client Quit]
vlad_starkov has quit [Remote host closed the connection]
Ontolog has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
ksinkar has joined #ruby
<ksinkar>
how to install ruby 2.0 on rvm?
<MrZYX>
rvm get stable, rvm install 2.0.0
banjara has quit [Quit: Leaving.]
vlad_starkov has joined #ruby
rburton- has joined #ruby
jgrau has joined #ruby
yashshah_ has quit [Read error: Connection reset by peer]
rezzack has quit [Quit: Leaving.]
jgrau has quit [Remote host closed the connection]
yashshah_ has joined #ruby
nathancahill has quit [Quit: nathancahill]
vlad_starkov has quit [Ping timeout: 264 seconds]
wtee has quit [Quit: wtee]
m8 has joined #ruby
motto has joined #ruby
becom33 has joined #ruby
sayan has quit [Read error: Connection reset by peer]
jprovazn has quit [Quit: Leaving]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
sayan has joined #ruby
rburton- has quit [Ping timeout: 256 seconds]
jprovazn has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
<lupine>
does anyone know if there's a precompiled qtbindings for mac ? I found one for windows :)
chandan_kumar has quit [Ping timeout: 256 seconds]
<Hanmac1>
on mac you should be able to compile it yourself
chandankumar has joined #ruby
tish has joined #ruby
chandankumar is now known as chandan_kumar
statarb3 has joined #ruby
statarb3 has joined #ruby
statarb3 has quit [Changing host]
blacktulip has joined #ruby
jprovazn has quit [Ping timeout: 246 seconds]
chussenot has joined #ruby
chussenot has quit [Client Quit]
browndawg has joined #ruby
becom33 has quit [Ping timeout: 256 seconds]
tvw has joined #ruby
Domon has quit [Remote host closed the connection]
motto has quit [Quit: Sto andando via]
Guest43070 has quit [Ping timeout: 264 seconds]
matayam has quit [Remote host closed the connection]
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest93524
mneorr has joined #ruby
eka has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
weeb1e has joined #ruby
chandan_kumar has quit [Quit: Leaving]
Guest36393 has joined #ruby
mockra has joined #ruby
Guest36393 has left #ruby [#ruby]
mneorr_ has joined #ruby
kofno has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
tonini has joined #ruby
ntzrmtthihu777 has joined #ruby
arturaz has joined #ruby
mneorr has quit [Ping timeout: 276 seconds]
tonini has quit [Remote host closed the connection]
<xll11>
is ruby gui friendly?
<ntzrmtthihu777>
hallo, not sure if this is a ruby question or C++. pulled some C++ source code from sourceforge, looking to tinker a bit, attempted to compile and was told ruby.h was not found. is there some command line argument I'm missing?
mockra has quit [Ping timeout: 248 seconds]
Guest93524 has quit [Ping timeout: 264 seconds]
<xll11>
I mean, if I want to build a GUI program
<ntzrmtthihu777>
xll11: I'm using the wxruby gem to build a gui, friendly enough.
kofno has quit [Ping timeout: 256 seconds]
gyre007 has joined #ruby
robbyoconnor has quit [Ping timeout: 256 seconds]
Zai00 has joined #ruby
lurch_ has joined #ruby
<Hanmac1>
xll11 i am currently building on an wxruby replacement that is even more ruby friendly :P
timmow_ has joined #ruby
chandankumar has joined #ruby
<ntzrmtthihu777>
ooo sounds nice, Hanmac1
agarie has quit [Remote host closed the connection]
becom33 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
<MrZYX>
ntzrmtthihu777: sounds like you're missing ruby development headers
<ntzrmtthihu777>
MrZYX: No, I got those, ruby.h and such. I think I just missed a part of the command line
<lurch_>
Hi, trying to understand mixins but failing miserably. I wrote a simple test but do not understand why 2, 3 and especially 4 still call the old foo() method. http://pastebin.com/XnpVWMWA
<lupine>
Hanmac1, I'm deploying an application to people. I don't want a compiler to be an install-time dependency
<MrZYX>
ntzrmtthihu777: and they are in the standard locations(/usr/include/ etc)?
<lupine>
(it isn't for linux or windows, and it's good to keep it that way :) )_
<ntzrmtthihu777>
MrZYX: nope, seems they ended up in /usr/lib/ruby/1.8/x86_64-linux/
<ntzrmtthihu777>
I included that location, however, and now I got a new error with a better clue :D
timmow_ has quit [Ping timeout: 252 seconds]
<flori>
lurch_: you defined foo in Object, so…
evangelosavgerin has quit [Quit: Lost terminal]
becom33 has quit [Ping timeout: 256 seconds]
<lurch_>
flori: but why doesn't the module_function :foo allow me to call the one defined in the Foo module ? If I don't use the Bar module, it calls foo from the Foo module when i use Foo::foo 4
bubblehead has quit [Ping timeout: 256 seconds]
<waxjar>
lurch_: this is not how include works, it defines instance methods
<Hanmac1>
ntzrmtthihu777: about your header and libs problem use pkg-config
tonini has joined #ruby
<ntzrmtthihu777>
Hanmac1: kinda a (read: a huge) n00b, ^^', exactly what do you mean?
adambeynon has joined #ruby
<waxjar>
you're calling a class method foo right now (which works because you defined a foo for Object and a Class is an Object)
<flori>
lurch_: you define Object#foo in line 15, so that's the one that will be called in any object context (that is every context, because everything is an object).
browndawg has quit [Quit: Leaving.]
tonini has quit [Remote host closed the connection]
tewlz has joined #ruby
divout has quit [Quit: Leaving.]
Squarepy has joined #ruby
divout has joined #ruby
Squarepy has quit [Changing host]
Squarepy has joined #ruby
Morkel has quit [Quit: Morkel]
chussenot has joined #ruby
<Hanmac1>
lurch_: i think this problem was fixed in newer rubies
<lurch_>
waxjar, flori: ok, thx. if I use extend, 4 actually does call the Foo::foo, but let me upload another test that did (in my view) the same thing (just not using the module Bar), and did actually allow me to call Foo:foo
<lurch_>
waxjar: thx. with classes i think i understand. It's just when including from inside a module / main that it starts doing (in my view) weird things
<flori>
lurch_: You should use extend for that anyway
ntzrmtthihu777 has left #ruby [#ruby]
<waxjar>
main is a bit weird, keep in mind that main == Object
martinklepsch has joined #ruby
<waxjar>
every single object inherits from Object, that's why you get weird results
veer has quit [Ping timeout: 258 seconds]
anirudh24seven_ has joined #ruby
amth has joined #ruby
anirudh24seven has quit [Read error: Connection reset by peer]
<xll11>
is unless used?
anirudh24seven_ is now known as anirudh24seven
<xll11>
why not just add a not operator and use if?
<finnomenon>
I have methods that return multiple values ( return 1,socketError ) how can I use the first one as a condition in 'case'?
<waxjar>
i use it all the time, it's clearer imo
lurch_ has left #ruby [#ruby]
hmarr has joined #ruby
<waxjar>
finnomenon: x,y = your_method; case x …. ?
<finnomenon>
when 1 never seems to be executed
ferdev has quit [Ping timeout: 264 seconds]
<Hanmac1>
xll11: unless is a very little bit faster than if not
<xll11>
i find it wierd that will all the shortcuts, i++ doesnt work
<xll11>
and you have to do i = i+1 instead
<xybre>
i += 1
<waxjar>
there's i += 1
<waxjar>
it's not really a feature you need much in Ruby
tvw has quit []
chipotle_ has quit [Remote host closed the connection]
<amth>
MrZYX: times has an index.
<amth>
(but it starts at 0)
<xybre>
It's 0-indexed though
<Hanmac1>
i recently wrote a class where you can do +i for increment
<MrZYX>
I see it rarely used though
beneggett has quit [Quit: Computer has gone to sleep.]
<xybre>
One of my friends recently pointed out to me that "indexes" are not really indexes, they are offsets.
<amth>
Hanmac1: That is evil...
<flori>
xll11: if you think about #succ! doesn't make any sense for numbers.
<xll11>
no idea what #succ! is
<xll11>
just started tinkering with ruby
<amth>
There is no succ!
<xybre>
1.succ #=> 2
<xybre>
The bang usually means "warning, this method will mutate self"
<flori>
amth: There's String#succ!
<Hanmac1>
amth whats the problem? you can also do -i for decrement
<Hanmac1>
and i also wrote classes where to_s! works
<amth>
xybre: Except there is no bang version of Fixnum.succ.
anirudh24seven has quit [Read error: Connection reset by peer]
<xybre>
amth: Of course not, I'm just explaining the convention.
anirudh24seven_ has joined #ruby
* Hanmac1
could write an Numeric class with an succ! method
anirudh24seven_ is now known as anirudh24seven
Layke has quit [Ping timeout: 256 seconds]
<flori>
Hanmac1: and 23.succ! would make all 23s into 24s from there on ;)
<xybre>
Hanmac1: You could use the unary operators to make ++i increment a value
<amth>
Hanmac: Except you can't.
<Hanmac1>
flori no, only in the Incementor object :P
<Hanmac1>
amth oh you would be suprised what i can do:P
miso1337 has quit [Quit: afk]
<waxjar>
xybre, you can only do one "operator" :(
<amth>
OK, I guess you could override every method.
<xybre>
waxjar: you'd have to store state between them, it'd be hideous
piotr_ has joined #ruby
<Hanmac1>
amth there is a Symbol#succ method, think about that :P
<flori>
Hanmac1: unfortunately April 1st is over; you could have proposed this on ruby-core
<amth>
But you can't alter self in Numeric.
<xybre>
flori: Well.. if you used caller, you could figure out the variable name, and then replace the value in ObjectSpace..
piotr has quit [Ping timeout: 248 seconds]
Xeago has joined #ruby
<Hanmac1>
amth i said that i can make a class that inherit from numeric where succ! is possible
foofoobar has quit [Quit: Computer has gone to sleep.]
<flori>
xybre: Is the evil gem still developed? I guess it could have done something like that.
reset has joined #ruby
dhruvasagar has quit [Ping timeout: 256 seconds]
<amth>
You can't change self in subclasses of Numeric, either. But you can do the evil override thing, I guess.
<xybre>
A new class of numbers! Now I want to make an imaginary number class and extend Math.sqrt..
<xybre>
flori: unfortunately not :(
Gruu_ has joined #ruby
Flex has joined #ruby
<Hanmac1>
amth, but what if i use some kind of delegator?
dhruvasagar has joined #ruby
<xybre>
amth: You can't change the assignment of a variable from self to anything else, but you could alter its internal value
<Hanmac1>
shevy: i found an 0 that is not an fixnum but an bignum ... oO what do you think about that?
<amth>
Then it wouldn't be Numeric.
<amth>
xybre: extmath
<Hanmac1>
amth it can be still be inherit from Numeric, even if its an delegator
mhn23 has quit [Quit: Goodbye.]
<amth>
True. I did say you could override every method.
mockra has joined #ruby
kofno has joined #ruby
seich| has quit [Ping timeout: 264 seconds]
starburst has quit [Quit: kthnxbye!]
chessguy has joined #ruby
dEPy has joined #ruby
<shevy>
Hanmac1 CHEATING
mneorr_ has quit [Remote host closed the connection]
chessguy has quit [Remote host closed the connection]
Guest85044 has joined #ruby
<xybre>
amth: nice!
mockra has quit [Ping timeout: 264 seconds]
kofno has quit [Ping timeout: 246 seconds]
<Xeago>
when installing gems, /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/rdoc.rb:287: warning: conflicting chdir during another chdir block pops up..
foofoobar has quit [Quit: Computer has gone to sleep.]
Faris8 has joined #ruby
JonnieCache has quit [Ping timeout: 248 seconds]
mneorr has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
dhruvasagar has quit [Read error: Connection reset by peer]
Zai00 has joined #ruby
<gestahlt>
hm.. bad bad bad
MrZYX is now known as MrZYX|off
workmad3 has joined #ruby
nezumi has quit [Ping timeout: 276 seconds]
faen has quit [Remote host closed the connection]
slainer68 has joined #ruby
lolmaus has joined #ruby
MrZYX|off is now known as MrZYX
drale2k has joined #ruby
shock_one has quit [Ping timeout: 256 seconds]
pioz has joined #ruby
sayan has joined #ruby
cpruitt has quit [Quit: cpruitt]
faen has joined #ruby
slainer6_ has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
yshh has joined #ruby
chaluopa has joined #ruby
arietis has quit [Quit: Computer has gone to sleep.]
geekbri has joined #ruby
huoxito has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
jnoob22 has joined #ruby
artem has quit [Ping timeout: 256 seconds]
danslo has joined #ruby
mneorr has quit [Remote host closed the connection]
skroon has quit [Quit: leaving]
hmarr has joined #ruby
Flex has quit [Read error: No route to host]
danslo has quit [Client Quit]
pydave6367 has joined #ruby
Rumsteak has joined #ruby
TooTubular has joined #ruby
AzizLight has joined #ruby
<AzizLight>
Hi everybody
chandankumar has joined #ruby
rismoney has joined #ruby
subbyyy has quit [Ping timeout: 264 seconds]
chussenot has joined #ruby
<AzizLight>
how can I generate a 16 characters random string using SecureRandom.base64 please?
banisterfiend has quit [Read error: Connection reset by peer]
arietis has joined #ruby
<AzizLight>
all I can manage to do is to generate 24 characters random strings
<Politoed>
The argument n specifies the length of the random length. The length of the result string is about 4/3 of n.
banisterfiend has joined #ruby
<Politoed>
use n=12
mengu has joined #ruby
Flex has joined #ruby
ttt has quit [Remote host closed the connection]
foofoobar has joined #ruby
veer has quit [Ping timeout: 256 seconds]
<bnagy>
you probably don't want to do that
chussenot has quit [Quit: chussenot]
wmoxam has joined #ruby
yshh has quit [Read error: Connection reset by peer]
<bnagy>
but tbh if you're using SecureRandom you're probably screwing something up in any case, so carry on
yshh has joined #ruby
<injekt>
what's wrong with secure random?
<bnagy>
nothing, per se
<bnagy>
well, apart from whatever is wrong with openssl or the win32api
malte_ has quit [Quit: malte_]
<bnagy>
and the nonportable way they use the latter
Guest16202 has quit [Changing host]
Guest16202 has joined #ruby
Guest16202 is now known as guyz
mmitchell has quit [Remote host closed the connection]
pydave6367 has quit [Ping timeout: 255 seconds]
<lolmaus>
What is the safe way to concatenate parts of long file name?
atno__ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
<bnagy>
it's just that if you're directly screwing with random numbers and think you need a secure random instead of a prng then you're likely to be screwing something up
malte_ has joined #ruby
atno has quit [Ping timeout: 255 seconds]
nfk has joined #ruby
heliumsocket has joined #ruby
<injekt>
so use Random instead
<bnagy>
or whatever, but if you're using 'secure' random and deliberately getting 12 bytes of entropy instead of 16 because you don't know how base64 works then it's not a good sign
slainer6_ has joined #ruby
Faris8 has quit [Ping timeout: 264 seconds]
<injekt>
heh
chussenot has joined #ruby
rdev has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
atmosx has joined #ruby
madb055 has joined #ruby
atmosx has quit [Client Quit]
xaq has joined #ruby
d3c has joined #ruby
miso1337 has quit [Read error: Connection reset by peer]
miso1337 has joined #ruby
angusiguess has joined #ruby
<bnagy>
also, a bug flew up my nose, earlier, which makes me grumpy
<injekt>
lolmaus: the usual way you would concatenate a string?
mockra has joined #ruby
anonymuse has joined #ruby
<bnagy>
or maybe File.join, unless you're on Windows
<gestahlt>
hm i think i sanitized it.. i did "descriptivename_" + var.to_i
jerius has joined #ruby
<lolmaus>
injekt, there should be a method that uses OS-specific slashes.
yacks has joined #ruby
<injekt>
oh
<injekt>
you said file name
tish has quit [Quit: Leaving.]
<bnagy>
there isn't
<injekt>
not path
<bnagy>
but you don't want that
<lolmaus>
injekt, i said full file name.
dylan has left #ruby ["Leaving"]
niklasb_ is now known as niklasb
<bnagy>
because Ruby hates Windows style filenames, so in 95% of cases you want /
<injekt>
bnagy: File.join uses File::SEPARATOR which works on windows no?
<injekt>
anyway windows supports /
<bnagy>
unless you're directly giving a filename to the windows api
verysoftoiletppr has joined #ruby
mneorr has joined #ruby
zeroeth has quit [Ping timeout: 264 seconds]
<bnagy>
summary being, if you're working only with Ruby, always use File.join and it will work for opens and reads and such
sambao21 has joined #ruby
sambao21 has quit [Client Quit]
<bnagy>
if you're working with windows api ( FFI etc ) you will need to manually join with '\\'
<bnagy>
because why make it easy
chaluopa has quit [Remote host closed the connection]
theRoUS has quit [Ping timeout: 240 seconds]
mockra has quit [Ping timeout: 256 seconds]
atno__ is now known as atno
foofoobar has quit [Quit: Computer has gone to sleep.]
sambao21 has joined #ruby
sayan has quit [Read error: Connection reset by peer]
lewix has joined #ruby
jgarvey has joined #ruby
timmow_ has joined #ruby
justsee has quit [Ping timeout: 255 seconds]
krawchyk has joined #ruby
pi3r has quit [Quit: Leaving]
lewix_ has joined #ruby
tommyvyo has joined #ruby
chaluopa has joined #ruby
angusiguess has quit [Ping timeout: 258 seconds]
breakingthings has joined #ruby
hackeron has quit [Read error: Operation timed out]
lewix has quit [Ping timeout: 245 seconds]
timmow_ has quit [Ping timeout: 252 seconds]
Matip has joined #ruby
<lolmaus>
Could you please help me grasp this regular expression replacement: gsub!(/\\([\\#])/, '\1')
chaluopa has quit [Remote host closed the connection]
Neomex has joined #ruby
chaluopa has joined #ruby
vlad_starkov has joined #ruby
<tobiasvl>
it replaces \\ and \# with \ and # respectively?
<tobiasvl>
so it un-escapes those sequences
<tobiasvl>
as far as i can see in a flash
<lolmaus>
tobiasvl, thx
adkron has joined #ruby
Guest40050 has quit [Changing host]
Guest40050 has joined #ruby
doodlehaus has joined #ruby
Guest40050 is now known as C0deMaver1ck
changelog has joined #ruby
<e-dard>
Ho, I'm trying to use multi-line strings with interpolation in Ruby but getting error about "unexpected $end, expeing….." in my code: http://dpaste.com/1044298/plain/
rhys has quit [Quit: Leaving]
<e-dard>
Any idea why it's not working?
<changelog>
Hi everyone! Is this the right place to ask about ruby internals?
ksinkar has quit [Ping timeout: 246 seconds]
ariedler has joined #ruby
chaluopa has quit [Ping timeout: 255 seconds]
EPIK has quit [Ping timeout: 255 seconds]
<injekt>
e-dard: dont indent the heredoc operators
<e-dard>
injekt: all of it or just the first / last line?
<veleno>
hello. is there a gem that checks for compatibility of a base of code between various ruby versions ?
Davey has joined #ruby
arturaz has quit [Remote host closed the connection]
sleetdrop has joined #ruby
divout has joined #ruby
<Hanmac1>
veleno: just read the release notes of the versions ... or what specialy is your problem?
workmad3 has quit [Ping timeout: 245 seconds]
<veleno>
Hanmac1: arbitrary behavior switching from 1.8.7 to 2.0.0
changelog has left #ruby [#ruby]
a_a_g1 has quit [Quit: Leaving.]
eldariof has quit [Read error: No route to host]
dhruvasagar has quit [Ping timeout: 260 seconds]
hackeron has joined #ruby
nateberkopec has joined #ruby
alainus has joined #ruby
dhruvasagar has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
malte_ has quit [Quit: malte_]
neku has joined #ruby
sambio has joined #ruby
sambio has quit [Changing host]
sambio has joined #ruby
wting has quit [Ping timeout: 258 seconds]
<Hanmac1>
veleno: okay there are big changes ... *_methods returns an array of symbols, not an array of strings, str[nr] returns an "char" and no number, same for ?char, case when allows now when val : func anymore there is ; better. Strings and other like Regex, Match Data, and Symbol have now encodings and Iconv was removed, String is not an Enumerable anymore, and for 2.0 lines and each_line react different,
thebastl_ has joined #ruby
thebastl_ has quit [Remote host closed the connection]
momomomomo has joined #ruby
sambio has quit [Client Quit]
wting has joined #ruby
monkegjinni has joined #ruby
malte_ has joined #ruby
Neomex has quit [Quit: Neomex]
hogeo has quit [Remote host closed the connection]
znode has quit [Remote host closed the connection]
hogeo has joined #ruby
thebastl has quit [Ping timeout: 255 seconds]
eliasp has quit [Read error: Connection reset by peer]
pduin has quit [Remote host closed the connection]
jurassic_ has quit [Quit: jurassic_]
maxmanders has quit [Quit: Computer has gone to sleep.]
wallcloc_ has joined #ruby
sayan has joined #ruby
eliasp_ has joined #ruby
eliasp has quit [Ping timeout: 258 seconds]
hogeo has quit [Remote host closed the connection]
peterhellberg has quit [Remote host closed the connection]
yalue has joined #ruby
hogeo has joined #ruby
artem has joined #ruby
mockra has joined #ruby
mengu has quit [Quit: Konversation terminated!]
madb055 has quit [Ping timeout: 256 seconds]
slainer68 has joined #ruby
generalissimo has joined #ruby
wallclockbuilder has quit [Ping timeout: 255 seconds]
bricker`LA has quit [Ping timeout: 255 seconds]
moos3 has joined #ruby
huoxito has quit [Ping timeout: 248 seconds]
bricker`LA has joined #ruby
bashdy has joined #ruby
sleetdrop has quit [Quit: Computer has gone to sleep.]
mockra has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 245 seconds]
hogeo has quit [Ping timeout: 276 seconds]
slainer6_ has quit [Ping timeout: 258 seconds]
doodlehaus has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
timmow_ has joined #ruby
kaichanvong has quit [Ping timeout: 260 seconds]
monkegjinni has joined #ruby
machty has joined #ruby
monkegji_ has quit [Read error: Connection reset by peer]
rickmasta has joined #ruby
dhruvasagar has quit [Ping timeout: 246 seconds]
randym has quit [Ping timeout: 240 seconds]
alex__c2022 has joined #ruby
<machty>
Hi all, I'd like to use capybara to test a folder structure that'll eventually be hosted on a simple http folder-based server. How do I do such a thing? Is there a way to spin up a server at the beginning of the test suite and then close it afterwards? Does that need to happen on a separate thread? Thanks in advance!
timmow_ has quit [Ping timeout: 252 seconds]
jeffreylevesque has joined #ruby
benwoody has joined #ruby
<jeffreylevesque>
hello
NimeshNeema has quit [Ping timeout: 260 seconds]
<jeffreylevesque>
I'm running ruby200, how do i change the version to ruby193?
<Hanmac1>
with a time maschine? :P
<jeffreylevesque>
haha, nice!
benwoody has left #ruby [#ruby]
rcsheets has quit [Disconnected by services]
foofoobar has joined #ruby
<Hanmac1>
the better question is: "why" do you want to change the version back to 1.9.3?
mneorr has joined #ruby
baroquebobcat has joined #ruby
sailias has joined #ruby
<apeiros_>
jeffreylevesque: rvm use 1.9.3 --default
<apeiros_>
:-p
unstable has quit [Ping timeout: 245 seconds]
rippa has joined #ruby
<jeffreylevesque>
i navigated to my C:\ directory and after running rvm use 1.9.3 --default
<jeffreylevesque>
it says: sh.exe": rvm: command not found
pothibo has joined #ruby
<apeiros_>
jeffreylevesque: rvm is a tool, you'd have to install ruby using rvm. but I don't know whether rvm runs on windows at all.
<apeiros_>
http://rvm.io - you can check there. it won't help with a ruby you installed without rvm, though.
apeiros_ has quit [Remote host closed the connection]
sayan has joined #ruby
frem has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
drale2k has joined #ruby
browndawg has joined #ruby
NiteRain has joined #ruby
dkannan has joined #ruby
rasbonics has joined #ruby
huoxito has joined #ruby
rasbonics has left #ruby [#ruby]
verysoftoiletppr has quit []
dsadsdasd has quit [Quit: Leaving.]
JonnieCa1he has quit [Quit: leaving]
monkegjinni has quit [Ping timeout: 258 seconds]
adamjleonard has quit [Quit: Leaving...]
moted has joined #ruby
buibex has quit [Remote host closed the connection]
eliasp has joined #ruby
echevemaster has quit [Read error: Connection timed out]
eliasp_ has quit [Ping timeout: 258 seconds]
brendan` has joined #ruby
dayom has joined #ruby
<brendan`>
morning.. im in the process of learning ruby and are attempting to write a local script to get the pids of all processes running under a particular user.. I came across the Process module, but im not sure if that's the best tool for the job
dr_bob1 has quit [Read error: Connection reset by peer]
dr_bob has quit [Ping timeout: 256 seconds]
jamie_ca_ has joined #ruby
ananthakumaran has joined #ruby
_nitti_ has quit [Ping timeout: 245 seconds]
stkowski has joined #ruby
cableray has joined #ruby
DrShoggoth has quit [Quit: Leaving]
dhruvasagar has joined #ruby
<brendan`>
well, it is if im trying to do it in ruby bean
k610 has quit [Ping timeout: 276 seconds]
buibex has quit [Remote host closed the connection]
eliasp has quit [Read error: Connection reset by peer]
<linduxed>
assuming 'green = "Green"' and 'blue = "Blue"' i've written 'puts "I like the colors %s and %s" % [green, blue]'
eliasp has joined #ruby
<linduxed>
this works, but i don't want the colors capitalized
slakware has joined #ruby
lewix has quit [Ping timeout: 258 seconds]
robscomputer_ has joined #ruby
<linduxed>
so i thought i'd do '[green, blue].each.downcase', but it doesn't work :-S
kenyabob has joined #ruby
<brendan`>
my goal is to use a ruby script to get the PIDs for a particular linux user, check the running times, and alert if over 'x' running time via our monitoring
arya has joined #ruby
<breakingthings>
brendan`: that's merely interfacing with another language, bash!
<linduxed>
could someone explain what i'm doing wrong?
<eval-in>
bean => /tmp/execpad-8520ad24c73f/source-8520ad24c73f:2:in `eval': wrong number of arguments (0 for 1..4) (ArgumentError) ... (http://eval.in/14432)
<Rumsteak>
linduxed: I didn't see any each in your code sorry
dhruvasagar has quit [Ping timeout: 246 seconds]
wolcanus has joined #ruby
MetaCosm has joined #ruby
MetaCosm has quit [Excess Flood]
<linduxed>
oooh
sailias has joined #ruby
<linduxed>
i haven't yet learned about the &: things
jbueza has joined #ruby
MetaCosm has joined #ruby
MetaCosm has quit [Changing host]
MetaCosm has joined #ruby
MetaCosm has quit [Excess Flood]
Ontolog has quit [Remote host closed the connection]
MetaCosm has joined #ruby
MetaCosm has quit [Excess Flood]
<Hanmac1>
linduxed: each returns self, map does return new array
banjara has joined #ruby
malcolmva has quit [Quit: Leaving]
<breakingthings>
linduxed: I believe it's the same as [green,blue].each { |a| a.downcase }
jurassic_ has joined #ruby
<linduxed>
ok, this looks like the stuff i'll be learning quite soon
voodoofish430 has joined #ruby
<apeiros_>
[green,blue].each { |a| a.downcase } # is relatively pointless, though
* apeiros_
assumes that has been said already?
flak has joined #ruby
apok has quit [Quit: apok]
lewix_ is now known as lewix
lewix has quit [Changing host]
lewix has joined #ruby
flak is now known as Guest40383
rippa has quit [Read error: Connection reset by peer]
<breakingthings>
apeiros_: as in, in comparison to (&:downcase)? If so then yeah, I was just providing an analogy because I didn't get it at first until I saw it as that.
MetaCosm has joined #ruby
<apeiros_>
breakingthings: .each(&:downcase) is equivalently pointless
<brendan`>
ill see if the devs are ok with that being added to a production box
alexyz has joined #ruby
eliasp has quit [Read error: Connection reset by peer]
mikecmpbll has joined #ruby
eliasp has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
k610 has quit [Ping timeout: 240 seconds]
MetaCosm has quit [Excess Flood]
kenichi has joined #ruby
MetaCosm has joined #ruby
BizarreCake has quit [Ping timeout: 256 seconds]
Es0teric has joined #ruby
<slakware>
what orm would you guys suggest for a standalone ruby app?
Taranis has quit [Quit: leaving]
Matip has quit [Quit: Leaving]
thebastl has joined #ruby
aeontech has joined #ruby
<bean>
brendan`: is this for monitoring? I use nagios for a similar thing and didn't get a whole lot of value out of that metric
dawkirst has quit [Remote host closed the connection]
jurassic_ has quit [Quit: jurassic_]
<brendan`>
we use zabbix, but zabbix can't monitor how long a process has been running for
rickmasta has joined #ruby
<brendan`>
the devs use delayed_jobs and sometimes those processes run for too long & are hung up.. boss wants me to check for any processes running for 4hrs+ and alert
<brendan`>
trying to script using the best possible language (either bash or ruby) to do these checks
thebastl has quit [Remote host closed the connection]
hmarr has joined #ruby
<Hanmac1>
hihihi 4hrs+ :P my home pc is online for more than a month :P
<brendan`>
?
tevio has quit [Remote host closed the connection]
veleno has quit [Quit: veleno]
rdev is now known as rdev5
wallclockbuilder has joined #ruby
jon_w has quit [Read error: Connection reset by peer]
jon_w has joined #ruby
jon_w has quit [Max SendQ exceeded]
dmiller has joined #ruby
jon_w has joined #ruby
jon_w has quit [Max SendQ exceeded]
angusiguess has quit [Ping timeout: 260 seconds]
mahmoudimus has joined #ruby
awc737 has joined #ruby
lkba has quit [Ping timeout: 256 seconds]
wallcloc_ has quit [Ping timeout: 245 seconds]
wallcloc_ has joined #ruby
Es0teric has quit [Quit: Computer has gone to sleep.]
<awc737>
Can I run Capistrano and not have access to the host?
kenyabob has quit [Quit: kenyabob]
<awc737>
periodically I need to pull from a production server I don't have access on
eldariof has joined #ruby
pavilionXP has quit [Write error: Connection reset by peer]
<apeiros_>
Hanmac1: better than buying a java design patterns book and trying to apply it in ruby :D
<awc737>
+4
drale2k has joined #ruby
<glosoli>
awc737: I would not go to php for million dollars, sorry :)
* Hanmac1
would never buy a java book
* glosoli
would never buy or use free php book..
maxmanders has joined #ruby
Tarential has quit [Excess Flood]
* apeiros_
would never buy a free book either
<awc737>
not even for a million dollars?
Tarential has joined #ruby
forrest has joined #ruby
bitcycle has joined #ruby
daed has quit [Ping timeout: 248 seconds]
<glosoli>
awc737: that's hyperbolism ;d
seme has joined #ruby
<bitcycle>
Hey all. Can someone advise me on how to parse positional arguments (without specifying a name for the argument) to a script? For example: ruby test.rb arg1 arg2 arg3
<tobiasvl>
splat operator?
sepp2k has joined #ruby
<apeiros_>
bitcycle: ARGV contains all of them
<awc737>
do Capistrano capfiles contain passwords?
<apeiros_>
other than that - depends entirely on what you want to do with it
<apeiros_>
awc737: if you write on into it…
<Hanmac1>
bitcycle: you need to seperate them with "-"
* apeiros_
thinks passwords don't belong there
<awc737>
do you need to?
<awc737>
ok
<apeiros_>
Hanmac1: wah?
<awc737>
i need to figure out how to sync my dev with production, without getting prod server access
<bitcycle>
Hanmac1: what?
chrishough has joined #ruby
<apeiros_>
awc737: golden rule - don't put passwords into files you have in your version control
wallclockbuilder has quit [Ping timeout: 245 seconds]
<bitcycle>
Hanmac1: Why would i need to separate them with a dash?
<bean>
awc737: that seems unlikely, as at some point the script will have to access the prod stuff, no?
lkba has joined #ruby
<awc737>
not sure why capfile needs to be versioned
glosoli has left #ruby [#ruby]
havenwood has joined #ruby
<bean>
... lol
<awc737>
exactly bean, that was my confusion...
<Hanmac1>
ups i was wrong
<awc737>
if they set up an intermediary server to pull from prod, and I pull from the intermediate... can't I read the intermediate scripts?
bradleyprice has joined #ruby
brendan` has quit [Ping timeout: 264 seconds]
Mission-Critical has joined #ruby
banjara has quit [Quit: Leaving.]
<xll11>
Howdy! Is there a website with a 'code pool' where I can see different projects for learning purposes?
dhruvasagar has joined #ruby
<havenwood>
xll11: Github!
dkannan has quit [Ping timeout: 245 seconds]
<bitcycle>
Can someone advise me on how to exit a ruby script with non-zero status to indicate a failure state?
internet_user has joined #ruby
<awc737>
x1111 ruby tutorials for days... the internet... googles
<havenwood>
bitcycle: abort
brendan-_ has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
<brendan-_>
bean, are you doing something similar?
<xll11>
havenwood never really udnerstood github :9(
mityaz has joined #ruby
<havenwood>
xll11: Read through every Github project on my acct and then report back! https://github.com/havenwood
<xll11>
maybe its time for me to make amense
<tobiasvl>
havenwood: abort doesn't give a specific exit code though? just 1?
<brendan-_>
if so, how did you manage to set this up
<havenwood>
xll11: It has gotten easier to use as they improve it. Give it another go!
<awc737>
x1111 just look at it... it's not any more complicated than that... you just look at things
<tobiasvl>
bitcycle: exit(number) ?
chandankumar has joined #ruby
<awc737>
you can download .zip files if you want
Guest61083 has quit [Ping timeout: 245 seconds]
<havenwood>
tobiasvl: exit and abort both take optional alternative exit numbers (1 is default).
himsin has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
<bean>
brendan-_: no, i don't monitor long running processes
<havenwood>
(1 is default for abort**)
<Hanmac1>
havenwood: abort take exit message not exit number
<awc737>
bean, does my confusion about the intermediary server make sense?
hamakn has joined #ruby
<bean>
I'm unsure
freerobby has joined #ruby
JMcAfreak has joined #ruby
<xll11>
havenwood what am I to look at? popular reposteries?
<havenwood>
xll11: Yup.
daed has joined #ruby
brendan-__ has joined #ruby
angusiguess has joined #ruby
rupee has joined #ruby
<havenwood>
Hanmac1: Good point. I usually exit with 1, didn't realize abort didn't take an optional alternative status num.
timmow has quit [Ping timeout: 252 seconds]
brendan-_ has quit [Read error: Connection reset by peer]
adkron has quit [Ping timeout: 260 seconds]
<xll11>
this is chinese to me! where are the newbie projects!! :p
wallclockbuilder has joined #ruby
apeiros_ has quit [Remote host closed the connection]
eliasp has quit [Read error: Connection reset by peer]
<havenwood>
tobiasvl: If you want a non-1 status, instead of abort you could do: warn "msg here"; exit 42
eliasp has joined #ruby
chandankumar is now known as chandan_kumar
nfk has quit [Quit: yawn]
<awc737>
can I run Capistrano from a server, pushing actions onto another server? (backwards)?
_nitti_ has joined #ruby
breakingthings has quit []
<awc737>
so run tasks as the host, onto the slaves
w400z has quit [Quit: Computer has gone to sleep.]
<havenwood>
xll11: Can learn a lot perusing Ruby gems on Github and exploring them with Pry.
<Xeago>
anyone mind sharing their resume with me, in need of some inspiration
mneorr has joined #ruby
girija has quit [Remote host closed the connection]
jgrevich has joined #ruby
sayan has quit [Ping timeout: 248 seconds]
becom33 has joined #ruby
w400z has joined #ruby
echobin33 has quit [Remote host closed the connection]
echobinary has joined #ruby
_nitti has quit [Ping timeout: 245 seconds]
eb_dev has joined #ruby
w400z has quit [Client Quit]
<becom33>
in using readline for a interactive application . i was wondering if there a way I can do somthing like a top bar something on the top of the terminal . Im not talking about ncurses . just checking if there is anything that I can use for such a thing
failshell has quit [Read error: Connection reset by peer]
BBonifield_ is now known as BBonifield
eliasp has joined #ruby
TorpedoSkyline has joined #ruby
eliasp_ has quit [Ping timeout: 258 seconds]
TorpedoSkyline has quit [Client Quit]
<Hanmac1>
TempleD: ruby was not build with all needed dependcies
kpshek has joined #ruby
echobinary has quit [Read error: Connection reset by peer]
mark_locklear has joined #ruby
echobinary has joined #ruby
shock_one has joined #ruby
<TempleD>
Hanmac1: What else would I need?
<Hanmac1>
what kind of linux do you run?
akemrir has quit [Quit: WeeChat 0.4.0]
<TempleD>
Ubuntu.
<Paradox>
dae le
<Hanmac1>
TempleD apt-get build-dep ruby1.9.1
kpshek has quit [Client Quit]
akashj87__ has joined #ruby
hmarr has quit [Read error: Operation timed out]
thams has quit [Ping timeout: 240 seconds]
<TempleD>
Throws an error... Says it can't lock the administration directory. More of a general error, I know.
rdark has quit [Quit: leaving]
indyrl has joined #ruby
indyrl has left #ruby [#ruby]
<MrZYX>
TempleD: prepend sudo
<TempleD>
Wait, hang on. It's been installing some updates. I'll wait until those are finished and try again. With any luck, that might be the cause of my problem.
<TempleD>
MrZYX: I did so.
<MrZYX>
oh updates, alright
monkegjinni has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
akashj87 has quit [Ping timeout: 245 seconds]
emmanuelux has joined #ruby
<Hanmac1>
TempleD: you need to rebuild your ruby with rbenv again to get the changes working after you install the missing dev packages
wallclockbuilder has joined #ruby
momomomomo has quit [Quit: momomomomo]
devdazed has quit [Ping timeout: 248 seconds]
mockra has quit [Ping timeout: 255 seconds]
rickmasta has quit [Quit: Leaving...]
ferdev has joined #ruby
<Paradox>
intensive mccare unit
Akuma has quit [Read error: Operation timed out]
pioz has joined #ruby
<TempleD>
Hanmac: rbenv rehash, right?
alvaro_o has quit [Remote host closed the connection]
adamjleonard has joined #ruby
alvaro_o has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
devdazed has joined #ruby
<Hanmac1>
i does not know
<Paradox>
yes
bitcycle has quit [Ping timeout: 245 seconds]
<Paradox>
that rehashes the rbenvs
<Paradox>
but no
<Paradox>
that doesnt reinstall ruby
<Paradox>
just ruby install 2.0.0-p0
BadQuanta has joined #ruby
<Paradox>
i still need to do that to set my cert flags right
<Paradox>
if i want to do anything with ssl
<Paradox>
fugging os x
adamjleonard has quit [Client Quit]
<TempleD>
I just need it for octopress, really.
xrq` is now known as xrq
<Paradox>
shudder
eliasp_ has joined #ruby
Al_ has quit [Quit: Al_]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
eliasp has quit [Read error: Connection reset by peer]
_nitti has joined #ruby
<TempleD>
So many damn hoops. xD
alexim has joined #ruby
drale2k has quit [Quit: Leaving...]
Akuma has joined #ruby
workmad3 has joined #ruby
<Paradox>
you're honestly better off making a sinatra site
<Paradox>
and using sinatra-static to generate html
etcetera has quit []
<Paradox>
i respect imathis
<Paradox>
but octopress is way too opinionated
arietis has quit [Ping timeout: 245 seconds]
blaxter_ has quit [Quit: foo]
kzrl has quit [Ping timeout: 246 seconds]
ananthakumaran has joined #ruby
* Hanmac1
could make a website in plain C
* apeiros_
did make a website with server in C :)
<TempleD>
Paradox: Has the advantage of not requiring me to learn Ruby. :p
<Hanmac1>
shevy liar, i found more evil bugs in ruby itself :P
echobinary has joined #ruby
blaxter_ has quit [Ping timeout: 240 seconds]
bean has quit [Ping timeout: 255 seconds]
<Hanmac1>
TempleD: apt-get install ruby1.9.1-full
cmarques has quit [Ping timeout: 276 seconds]
akashj87 has quit [Ping timeout: 264 seconds]
<Paradox>
squid wards
beneggett has quit [Quit: Computer has gone to sleep.]
allaire has joined #ruby
allaire has quit [Excess Flood]
eliasp has quit [Quit: No Ping reply in 180 seconds.]
jgrevich has quit [Ping timeout: 258 seconds]
allaire has joined #ruby
alexsuraci_ has joined #ruby
bean has joined #ruby
akashj87__ has quit [Ping timeout: 264 seconds]
alexsuraci_ has left #ruby [#ruby]
eliasp has joined #ruby
<TempleD>
Hanmac: Aha, that's worked. Cheers. I'll let you know if I get any more errors...
akashj87 has joined #ruby
madb055 has joined #ruby
mikepack has quit [Read error: Connection reset by peer]
<allaire>
Hey guys, anyway I can create an alias for a rake namespace? I'm using a gem and to run my test I need to do rake minitest:models, what I would like to do is create an alias for the minitest namespace so I can run rake test:models too, thoughts?
tspike has joined #ruby
lewix has joined #ruby
jonathanwallace has joined #ruby
jgrevich has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
<failshell>
anyone has a reliable source of RPMs for RHEL6 for ruby 1.9?
robbyoconnor has quit [Ping timeout: 264 seconds]
bigkm has joined #ruby
<yxhuvud>
failshell: what do you mean by reliable?
<failshell>
well, something mainstream
<failshell>
or at least well tested by the community
<failshell>
ive reach a point where 1.8.7 just is not up to the job on RHEL
jonahR has quit [Remote host closed the connection]
ananthakumaran has quit [Quit: Leaving.]
chimkan has joined #ruby
workmad3 has joined #ruby
mityaz has quit [Quit: See ya!]
lewix has quit [Ping timeout: 252 seconds]
apeiros_ is now known as apeiros
<yxhuvud>
I believe they will include 1.9.3 in 6.4
akashj87__ has joined #ruby
forced_request has joined #ruby
<yxhuvud>
there are some test repo available but can't find it right now.
Catbuntu has joined #ruby
<yxhuvud>
anyhow, the packaging looks very similar to the one used in recent versions of fedora.
<failshell>
yxhuvud: i have 6.4 and its still 1.8.7
<yxhuvud>
meaning they have patched rubygems and bundler to death
<yxhuvud>
:(
Catbuntu is now known as Guest23171
hmarr has joined #ruby
mockra_ has joined #ruby
pydave6367 has joined #ruby
Guest61083 has quit [Quit: WeeChat 0.4.0]
<yxhuvud>
personally I looked at their packaging and took a step away. they alter too much. I just want a stable release to solve my problems
akashj87 has quit [Ping timeout: 264 seconds]
<failshell>
too bad you cant install using root + RVM
<failshell>
its no wonder there's no Chef cookbooks for Ruby. its a PITA to deploy
eliasp has quit [Read error: Connection reset by peer]
<shevy>
real men do not need RVM
tspike has quit [Ping timeout: 260 seconds]
<unstable>
Why does it take gem so long to install documentation?
<shevy>
unstable I think it has to parse all .rb files and analyze them
<Hanmac1>
stable releases? in some distries you will be happy if you get any releases :P
<unstable>
shevy: ok, thanks for the info.
arietis has joined #ruby
<shevy>
unstable I usually try to avoid ri/rdoc docu with ruby :P
<Hanmac1>
unstable: and sending all code to google and apple :p
chimkan has quit [Quit: chimkan]
mockra has quit [Ping timeout: 258 seconds]
<shevy>
that is the problem with distributions
<shevy>
they modify things and call it an improve
tspike has joined #ruby
krawchyk_ has joined #ruby
Guest23171 has quit [Quit: Leaving]
<failshell>
yeah we need a distro that leaves shit alone. i want the vanilla software.
cmarques_ is now known as cmarques
krawchyk_ has quit [Remote host closed the connection]
HelenCrowley has joined #ruby
toekutr has joined #ruby
eliasp has joined #ruby
jarred has joined #ruby
divout has quit [Remote host closed the connection]
<jarred>
Assigning a block to a variable (not evaluating the block, keeping a reference to it) is just foo = block, right? It doesn't need anything special, right?
bean has quit [Ping timeout: 245 seconds]
slakware has quit [Remote host closed the connection]
<Hanmac1>
jarred you need proc or lambda
<jarred>
Ah I see. Is there a way to turn a block into a proc?
<yxhuvud>
hanmac: I'd prefer having no 1.8.7 release at all over the present situation, because now we are stuck in packaging hell any way we do. best options seems to be to package it ourselves since noone else has managed to do it
madb055 has quit [Ping timeout: 255 seconds]
Mattix has quit [Ping timeout: 264 seconds]
<Hanmac1>
jarred: no only the different way
krawchyk has quit [Ping timeout: 245 seconds]
chrishough has quit [Quit: chrishough]
etcetera has quit []
<apeiros>
jarred: def foo(&block) # the & syntax tells ruby to convert the block into a proc
<apeiros>
and from that moment on it's "just another object"
<jarred>
oh okay that makes sense
<Hanmac1>
jarred or: foo = proc {|| ... }
moted has quit [Ping timeout: 248 seconds]
<jarred>
thanks for your guys' help
<TempleD>
Ah, goddamnit.
<TempleD>
Another problem.
<TempleD>
Though it isn't ruby related this time!
<TempleD>
So we're out of that minefield... xD
jeffreylevesque has joined #ruby
<jeffreylevesque>
hi
<jeffreylevesque>
can someone tell me how to get the build log?
bean has joined #ruby
<Hanmac1>
jeffreylevesque: from that? from an installed gem?
nomenkun has joined #ruby
<jeffreylevesque>
yea
Skofo has quit [Ping timeout: 248 seconds]
Es0teric has joined #ruby
heliumsocket has quit [Quit: heliumsocket]
theRoUS has quit [Ping timeout: 245 seconds]
<Xeago>
would you mind giving me your opinion about my cv? Skills
<Hanmac1>
jeffreylevesque: was the gem install successful or does it have failure?
<joshu>
any suggestions for converting fax tiff files to pdf may be more than 1 page it depends
<wmoxam>
Xeago: why post your 'civil status' in your CV?
<yxhuvud>
Hmm. I like putting github at the personalia.
<TempleD>
Anyone here who knows some git?
<TempleD>
Well, I suppose this might be more about github.
<shevy>
die git, die!
<Xeago>
(file size is supposed to be 400k, didn't lower resolution on profile picture yet)
pioz has quit [Quit: This computer has gone to sleep]
HelenCrowley is now known as Catbutnu
<yxhuvud>
temple: what's your problem?
Catbutnu is now known as Catbuntu
<TempleD>
I keep getting a nice error.
<TempleD>
One sec.
<Xeago>
wmoxam: so people know I am not a basement lurker
<shevy>
Xeago haha
chimkan has joined #ruby
<bean>
A CV is not a one pager.
<Xeago>
but might be a tiny bit social
<wmoxam>
Xeago: also, why put Grocery Store experience?
<bean>
thats a resume
<shevy>
Xeago but perhaps you could be a pervert :)
<jeffreylevesque>
Hanmac1: says 5 gems installed sucessfully, and when I do ruby --version it says I'm running ruby 1.8.7
<Xeago>
fine, resume, this is only the first part..
<wmoxam>
Xeago: you only put that if you want a job at another store :p
nathancahill has joined #ruby
<TempleD>
Permission denied (publickey)
sayan has quit [Ping timeout: 245 seconds]
<TempleD>
fatal: The remote end hung up unexpectedly
Iszak has joined #ruby
<shevy>
yeah, this is git
<Hanmac1>
jeffreylevesque: so does "gem list" show the gems?
<Xeago>
wmoxam: mostly because it all still fit on the page :)
<shevy>
cryptic errors until you will die
<wmoxam>
Xeago: yeah, it's better that you don't have it
wallcloc_ has joined #ruby
<Xeago>
shevy: been using git since before 1.0
<Xeago>
not a flaw!
mark_locklear has quit [Remote host closed the connection]
<TempleD>
Mind you... It only shows up when I run the command with sudo. When I don't, it comes up with a different error. xD
Monie has quit [Quit: This computer has gone to sleep]
<jeffreylevesque>
Hanmac1: i have at least two dozen local gems
<wmoxam>
Xeago: write more about what you did working on that video hosting platform
<TempleD>
A permission error, funnily enough.
<yxhuvud>
xeago: I'd not put credentials in the CV. I'd supply them when asked, and tell the guys before each time I do that
<Hanmac1>
jeffreylevesque: so what is the problem? did you forget to require "rubygems" before?
w400z has quit []
jekotia has joined #ruby
<jeffreylevesque>
i am running rake command
<yxhuvud>
especially when it comes to university peaple - there are so many people that go through there
<jeffreylevesque>
and it can't finish
<jeffreylevesque>
so i'm trying to debug in the build log
<Xeago>
write credentials on request then?
<wmoxam>
Xeago: no need to put driving licence either
Nisstyre-laptop has quit [Read error: Connection reset by peer]
<wmoxam>
Xeago: unless you are applying to be a pizza delivery guy
<MrZYX>
TempleD: either upload your public key to your github account or do not use the ssh:// url (but the https:// or git:// one)
<yxhuvud>
temple: sounds like you havn't put your public ssh key on the server
<Xeago>
the shorter my personalia the smaller my profile picture :<
Nisstyre-laptop has joined #ruby
* wmoxam
has read dozens and dozens of resumes
<Hanmac1>
jeffreylevesque: so there is a build failiure, it should show you a path
mercwithamouth has quit [Read error: Operation timed out]
wallclockbuilder has quit [Ping timeout: 258 seconds]
<TempleD>
yxhuvud: I've put A ssh key in the settings. Followed their instructions on it.
<yxhuvud>
wmoxam: I disagree. drivers license should be there. he is living in a country where it cna't be assumed.
<Xeago>
wmoxam: I fail to be able to elaborate more on what I did at the video hosting platform
<Xeago>
I did some minor other stuff
<Hanmac1>
jeffreylevesque you can try: gem contents gemname | grep mkmf.log
<Xeago>
edited a hadoop job here and there, but thats it
<wmoxam>
yxhuvud: he's not delivery pizzas, he wants to write code
<wmoxam>
yxhuvud: it's completely irrelevant
<Xeago>
yxhuvud: living in sweden, come from holland
<yxhuvud>
no, since you still have to be able to reach the working place.
beneggett has joined #ruby
<yxhuvud>
especially if he ends up a consult.
<wmoxam>
Xeago: ok, got any side projects?
<Xeago>
especially when applying to consultancy companies it was recommended
<Xeago>
wmoxam: not really, my university disallowed any public work
<wmoxam>
yxhuvud: that's implied
<wmoxam>
Xeago: wtf
<wmoxam>
that's crazy
Guest26023 is now known as bw_
<yxhuvud>
why the fuck would a uni do that?
<Xeago>
my scholarship with them demanded that they have at least 50% of whatever I make/produce during my time there
<Xeago>
it is not a uni in the american sense..
<shevy>
they wanna own Xeago
<yxhuvud>
xeago: oh, where in sweden are you?
<Xeago>
money, over protective legal team
<shevy>
true slavism
<wmoxam>
Xeago: ok, wewll write about those projects
<Xeago>
åkersberga, north of stockholm
wrench has left #ruby [#ruby]
<yxhuvud>
I see.
* yxhuvud
central stockholm
onceler has joined #ruby
<TempleD>
I don't think octopress/rake can take a https github URL.
etcetera has joined #ruby
<Xeago>
so civil status, driving license, both exclude?
<yxhuvud>
but hmm. you are listing the years you learned different skills, but what people really care about is the skill level.
<TempleD>
'undefined method '[]' for nil.NilClass
<jeffreylevesque>
Hanmac1: when i run build_css, i get one line that says - "Compass compile error: directory css/compiled/ create css/compiled/blocks-ie.css error blocks.scss ( LIne 3 of _require.scss: File to import not found or unreadable: ..."
<yxhuvud>
I'd exclude civil status but not license.
<bean>
ok, TempleD, you have a page or pages owned by root, "chown -R dan:dan _deploy/"
echobinary has quit [Read error: Connection reset by peer]
<bean>
the reason you get a different error with sudo is because that will use roots SSH key
<bean>
which is not the same as your own
echobinary has joined #ruby
rickmasta has quit [Read error: Connection reset by peer]
rickmasta has joined #ruby
Czupa has quit [Read error: Connection reset by peer]
reset has joined #ruby
echobinary has quit [Client Quit]
Czupa has joined #ruby
<TempleD>
bean: How would you suggest I get around this, then?
<bean>
i just told you
<TempleD>
Ah, my bad. Misread...
<TempleD>
Run with sudo?
<bean>
this will also work "chown -R dan:dan ~/.octopress"
<bean>
err
<bean>
this will also work "chown -R dan:dan ~/octopress"
<bean>
yes, sudo
<TempleD>
Which one should I run?
axl_ has quit [Quit: axl_]
<bean>
the 2nd one
Morkel_ has joined #ruby
hmarr has quit []
workmad3 has quit [Ping timeout: 264 seconds]
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
adambeynon has joined #ruby
xjunior has quit [Remote host closed the connection]
<TempleD>
No errors this time!
dfghjklrtyui has joined #ruby
hogeo has quit [Remote host closed the connection]
dexec_ has joined #ruby
<TempleD>
And things have appeared in the repository!
huoxito has quit [Ping timeout: 245 seconds]
dexec has quit [Ping timeout: 245 seconds]
dexec_ is now known as dexec
<TempleD>
And it works! Thank you to all in here that have helped.
illsci has left #ruby [#ruby]
<TempleD>
I first started trying to solve this a month or two ago...
<Xeago>
"Implement means of consuming a radio feed on all three platforms." help me rephrase
<Xeago>
'means' sounds aw ful
<Xeago>
implement support for consuming ..?
adambeynon has quit [Quit: Computer has gone to sleep.]
<Xeago>
I built apps that consumed a radio feed kinda
apod has joined #ruby
chimkan has quit [Quit: chimkan]
moted has joined #ruby
<TempleD>
Anyway, I'm gonna go. See you guys around. :)
jacktrick has joined #ruby
artem has quit [Ping timeout: 264 seconds]
arya has quit [Ping timeout: 248 seconds]
emptymag00 has joined #ruby
<bean>
later TempleD
veer has joined #ruby
<bean>
Xeago: Implemented system for consuming radio feeds on windows, linux, and mac
TempleD has left #ruby [#ruby]
<Xeago>
"Build mobile apps for Android and iOS with an update to their website. Implement means of consuming a radio feed on all three platforms."
<xll11>
is ruby essential for ruby on rails? or one can start learning rails straightt away
<Xeago>
xll11: if you want to learn rails, don't learn ruby first
<Xeago>
youl'll learn the basics while learning ruby
<bean>
ah, i didnt see the first bit, Xeago,
<Xeago>
but leaving the rails world after will be bump you'll have to come over
Iszak has quit [Quit: Computer has gone to sleep.]
<Xeago>
s/bump/a bump
mikepack has joined #ruby
arya has joined #ruby
<yxhuvud>
rails tend to be much more straighforward and less magical when you understand ruby properly though.
<Xeago>
"Build mobile apps for Android and iOS with an update to their website. Implemented support for consuming a radio feed on Android, iOS, HTML5, Flash and WMP."
<Xeago>
does that sound okay?
jgarvey has quit [Ping timeout: 264 seconds]
<bean>
" with an update to their website" with an update to who's website
<Xeago>
carnaval-radio.nl
<Xeago>
the one thing I did that the employer themselves opensourced
<Xeago>
and therefore I can mention
<Xeago>
unfortunately they host it on an awfully low bandwidth site..
<workmad3>
well, it's not really an extra nil, tbh... it's what you're saying to do if you think about it
TooTubular has quit [Quit: tootubular]
<shevy>
that behaviour seems to have changed :(
withnale has quit [Quit: Terminated with extreme prejudice - dircproxy 1.2.0]
<shevy>
in 1.8.x there is no nil
rickmasta has joined #ruby
<shevy>
now one could reason how buggy 1.8.x was
tenmilestereo has quit [Quit: Leaving]
bean has quit [Quit: Computer has gone to sleep.]
motto has joined #ruby
alanp has quit [Ping timeout: 276 seconds]
geggam_wk has quit [Remote host closed the connection]
m8 has quit [Ping timeout: 248 seconds]
sambao21 has joined #ruby
kristofers has quit []
nathancahill has joined #ruby
rburton- has quit [Quit: Leaving...]
Es0teric has quit [Remote host closed the connection]
gaahrdner has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
dEPy has quit []
postmodern has quit [Quit: Leaving]
sailias has quit [Quit: Leaving.]
postmodern has joined #ruby
haxrbyte has quit [Ping timeout: 258 seconds]
monkegjinni has quit [Remote host closed the connection]
axsuul_ has joined #ruby
<unstable>
What is the difference between doing bundle exec rspec my/tests, vs rspec my/tests?
<workmad3>
unstable: depends on your $PATH, whether you have rubygems-bundler installed, whether you did 'bundle install --binstubs'...
Layke has quit [Ping timeout: 276 seconds]
emergion has joined #ruby
cmarques has quit [Ping timeout: 248 seconds]
mercwithamouth has quit [Ping timeout: 258 seconds]
heftig has quit [Ping timeout: 245 seconds]
rking has quit [Quit: WeeChat 0.4.0-rc1]
osvico has quit [Read error: Connection reset by peer]
gaahrdner has quit [Ping timeout: 276 seconds]
mercwithamouth has joined #ruby
<waxjar>
bundle exec uses the versions defined in your Gemfile, running it without just uses the "default" version (e.g. the most recent)
dmiller has quit [Ping timeout: 264 seconds]
<waxjar>
*i.e. (?)
<waxjar>
i always mix those two up
Michael__ has quit [Remote host closed the connection]
hmarr has quit []
EPIK has joined #ruby
choobie has quit [Remote host closed the connection]
<workmad3>
waxjar: running without the bundle exec will run the first 'rspec' executable on the $PATH
heftig has joined #ruby
rking has joined #ruby
etcetera has quit []
<waxjar>
that'd be the technical explanation :P
<workmad3>
waxjar: which could be in a bundler binstubs directory (and so the equivalent of bundle exec rspec), could be a plain rubygems executable (so will run the latest, irrespective of gemfile, and potentially hit an error with multiple activations) or could be a gem executable rewritten by rubygems-bundler (which would be like bundle exec again)
eliasp_ has quit [Read error: Connection reset by peer]
ariedler has quit [Remote host closed the connection]
eliasp has joined #ruby
<workmad3>
installing rubygems-bundler is the default for rvm nowadays, btw, so it's not inconceivable that you'd have it installed without realising
Michael__ has joined #ruby
idkazuma has joined #ruby
etcetera has joined #ruby
<workmad3>
waxjar: so it's a bit more complex than just 'the latest version', as there's tools you can end up with installed without realising that affect the behaviour :)
backjlack has quit [Read error: Connection reset by peer]
osvico has joined #ruby
blacktulip has quit [Remote host closed the connection]
emergion has quit [Quit: Computer has gone to sleep.]
choobie has joined #ruby
choobie has joined #ruby
choobie has quit [Changing host]
heftig has quit [Quit: Quitting]
thomasfedb has quit [Ping timeout: 252 seconds]
heftig has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
Zai00 has quit [Quit: Zai00]
stnly has quit [Ping timeout: 245 seconds]
Layke has joined #ruby
etcetera has quit []
<choobie>
What is the difference between require and include?
stnly has joined #ruby
<banister_>
choobie: very different concepts :P
thomasfedb has joined #ruby
<banister_>
choobie: stupidly, require is like C's #include
<banister_>
choobie: but 'include' is like dynamic form of inheritance
<banister_>
using 'include' you can mix 'modules' into the inheritance chain of a class
RORgasm has quit [Remote host closed the connection]
etcetera has joined #ruby
dustint has quit [Quit: Leaving]
Al__ has quit [Quit: Al__]
NuckingFuts is now known as Nuck
Nuck has quit [Changing host]
Nuck has joined #ruby
nari has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
<jokke>
i need to find a country code for any language
tcopp has left #ruby [#ruby]
rickmasta has quit [Quit: Leaving...]
chrishough has quit [Quit: chrishough]
mneorr has quit [Ping timeout: 258 seconds]
freerobby has joined #ruby
hmarr has quit []
Yulli has joined #ruby
jamie_ca_ has quit [Quit: Computer has gone to sleep.]
<Yulli>
Hello again! Err.. so is there any reason for me to use RVM if I'm not ever switching around between ruby versions or gemsets or anything? (Ruby newbie here.)
rburton- has joined #ruby
rburton- has quit [Remote host closed the connection]
twoism has quit [Remote host closed the connection]
twoism has joined #ruby
eliasp has quit [Read error: Connection reset by peer]