<banisterfiend>
and you have a local variable that shadows the var you're iterating over
* csmrfx
is still trying to figure out what it is "inject({})" is supposed to achieve
<banisterfiend>
it'll still work, but it's unnecessarily confusing
wottam has quit [Ping timeout: 255 seconds]
<zenspider>
csmrfx: bad code is bad
_whitelogger has quit [Excess Flood]
_whitelogger has joined #ruby
<csmrfx>
it's like dwarves turning into questionmarks in DF when confused
<banisterfiend>
csmrfx the initial value of teh accumulator
klmlfl has quit []
<csmrfx>
ah, silly me, there it is in the docs, "initial"
i_s has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
jimbach has joined #ruby
_whitelogger has joined #ruby
<zenspider>
this code is in github, stackoverflow, various gists... it's all over
Stalkr_ has quit [Quit: Leaving...]
heftig has quit [Ping timeout: 260 seconds]
<zenspider>
basically translating to: this company isn't even trying
davasaurous has joined #ruby
klmlfl has joined #ruby
agjacome has quit [Quit: leaving]
bthesorceror has quit [Ping timeout: 260 seconds]
KanKava has quit [Remote host closed the connection]
heftig has joined #ruby
klmlfl has quit [Remote host closed the connection]
<csmrfx>
so what the h is the backslash then?
<csmrfx>
mmnnasd
<csmrfx>
oops, it only locks up my irb or term
arescorpio has joined #ruby
<zenspider>
again, bad code is bad
<csmrfx>
ah, nevermind, I was reading it to be a method, silly me
mallu has quit [Ping timeout: 246 seconds]
<dhardison>
you
<dhardison>
you're right
<csmrfx>
zzZ
<dhardison>
lol
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tkuchiki has joined #ruby
mikecmpbll has quit [Quit: i've nodded off.]
jimbach has quit [Ping timeout: 265 seconds]
<eam>
here's an idea, why not use the rdoc block as the method name itself. self-documenting code and when the documented interface changes the method changes too
fabrice31 has joined #ruby
<benzrf>
>inject
<benzrf>
>not foldl
tkuchiki has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<zenspider>
eam: so my method name should be "##\n# blah calculates the thing and returns the stuff" ?
<eam>
>> define_method "# this method does things\n# and other things", Proc.new { puts "the method" }; send :"# this method does things\n# and other things"
emmesswhy has quit [Quit: This computer has gone to sleep]
aspires has quit []
lampd1 has quit [Ping timeout: 258 seconds]
rshetty has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emmesswhy has joined #ruby
bklane has quit []
ad_boot has quit [Quit: ad_boot]
rshetty has quit [Remote host closed the connection]
wald0 has quit [Quit: Lost terminal]
iamjarvo has joined #ruby
<ionelmc>
centrx: so how can you make more that one class use the same metaclass?
sailias has joined #ruby
enebo has quit [Quit: enebo]
<centrx>
ionelmc, go to a swingers bar
<ionelmc>
The examples on that article don't explicitly specify the metaclass, but patch it through a normal class
<zenspider>
ionelmc: what is a metaclass in your mind?
SpaceKookie has quit [Ping timeout: 260 seconds]
Roa_ has quit [Quit: leaving]
c107 has joined #ruby
tokik has joined #ruby
<ionelmc>
Something like in Python
SpaceKookie has joined #ruby
afhammad has quit []
<ionelmc>
I'll be honest , I don't know much ruby, but I'm curious if you can do what you can do in Python
KC9YDN has joined #ruby
davasaurous has quit [Remote host closed the connection]
hellangel7 has quit [Remote host closed the connection]
phrozen77 has quit [Ping timeout: 260 seconds]
<zenspider>
"something like in python" == nonsense
jeer has quit [Read error: Connection reset by peer]
<ionelmc>
Very possible :-)
phrozen77 has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bricker`work has joined #ruby
<centrx>
ionelmc, Ruby is generally more expressive than Python, and of course they are both Turing-complete so they can do all the same things fundamentally
aspires has joined #ruby
<volty>
haskell is yet more expressive, but pity that you get lost in expressing, in all that expressiveness :)
mary5030 has joined #ruby
arup_r has joined #ruby
ghr has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
alvaro_o has quit [Quit: Ex-Chat]
maletor has joined #ruby
mary5030 has quit [Ping timeout: 265 seconds]
bthesorceror has quit [Read error: No route to host]
jasooon has joined #ruby
ghr has quit [Ping timeout: 272 seconds]
jbueza has joined #ruby
tier has joined #ruby
justinmburrous has quit [Remote host closed the connection]
maestrojed has quit [Quit: Computer has gone to sleep.]
jasooon has quit [Ping timeout: 250 seconds]
bthesorceror has joined #ruby
phutchins has quit [Ping timeout: 265 seconds]
bentanweihao has joined #ruby
heftig has quit [Read error: Connection reset by peer]
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
softaco_s has quit [Remote host closed the connection]
sevvie has quit [Ping timeout: 245 seconds]
exile-bot-2 has joined #ruby
heftig has joined #ruby
jordsmi has joined #ruby
drPoggs has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
rahult has joined #ruby
boombadaroomba has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
<benzrf>
ionelmc: the thing is that most of the metaprogramming you do with metaclasses in python can be accomplished without them in ruby
<benzrf>
iirc
<benzrf>
ionelmc: however, ruby does not have any special language support for metaclasses
<benzrf>
er, *and*
<benzrf>
you CAN subclass Class, nothing stops you from doing that
<benzrf>
and you can call .new on the subclass
Snerf_ has left #ruby [#ruby]
boombadaroomba has quit [Ping timeout: 240 seconds]
tier has quit [Remote host closed the connection]
volty has quit [Quit: Konversation terminated!]
abuzze_ has joined #ruby
davasaurous has joined #ruby
dx7 has joined #ruby
rshetty has joined #ruby
oinkon has quit [Ping timeout: 258 seconds]
<shevy>
ionelmc what does a metaclass do in python?
levisbakalinsky has quit [Read error: Connection reset by peer]
KC9YDN has quit [Quit: "Let a hundred flowers bloom: let a hundred schools of thought contend." - Mao Zedong]
levisbakalinsky has joined #ruby
abuzze has quit [Ping timeout: 265 seconds]
codeFiend has joined #ruby
magic is now known as cuddles
cuddles is now known as Guest73069
Guest73069 is now known as magic
davasaurous has quit [Ping timeout: 240 seconds]
magic is now known as snuggles
papercode has quit [Quit: WeeChat 0.4.3]
snuggles is now known as pretty
papercode has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
levisbakalinsky has quit [Ping timeout: 245 seconds]
<benzrf>
shevy: it is a class's class
<benzrf>
DUH!
<shevy>
eh?
<benzrf>
well, what else would it be
<benzrf>
?
x77686d has joined #ruby
SpaceKookie has joined #ruby
justinmburrous has joined #ruby
wottam has joined #ruby
kenndel_ has joined #ruby
arup_r has quit [Quit: Leaving.]
spastorino has joined #ruby
fabrice31 has joined #ruby
goshdarnyou has joined #ruby
emocakes has quit []
<shevy>
I don't even know what a class's class would be
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
exile-bot has joined #ruby
<bentanweihao>
ohai!
freerobby has quit [Quit: Leaving.]
<jxf>
I have two UTC Times, and I'd like to get all the UTC Times that are between them which occur at some interval (e.g. every 15 minutes past the hour). I'm a little stumped about how to do that in a general way. Any suggestions?
siwica has quit [Ping timeout: 260 seconds]
bentanweihao has quit []
Kricir has quit [Remote host closed the connection]
<jxf>
er, not every 15 minutes past the hour, but rather every 15 minutes each hour (e.g. :15, :30, :45, :00, etc.)
hmsimha has quit [Ping timeout: 245 seconds]
siwica has joined #ruby
<jxf>
so if the times were, e.g. `Nov 1 2014 @ 11:46` and `Nov 1 2014 @ 12:33`, I'd get 11/1 @ 11:46, 11/1 @ 12:00, 11/1 @ 12:15, 11/1 @ 12:30, 11/1 @ 12:33.
Kricir has joined #ruby
exile-bot has quit [Ping timeout: 260 seconds]
bthesorceror has quit [Quit: Lost terminal]
luckyruby has joined #ruby
<havenwood>
>> Time.now.to_i.step(by: 60 * 15, to: Time.now.to_i + 5400).map { |n| Time.at n }
<jxf>
havenwood: that's almost right, but I want the intermediate times to "line up" on the boundaries (e.g. note that the last two times are 12:30 and then 12:33)
<jxf>
havenwood: ah, cool, I'll take a look! thanks for the heads-up
<jxf>
I think I almost want some kind of "modulo Time" operation
<jxf>
but I'm not sure what that would be called or if it even exists
maletor has quit [Quit: Computer has gone to sleep.]
koderok has quit [Client Quit]
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
levisbakalinsky has joined #ruby
levisbakalinsky has quit [Client Quit]
Spami has joined #ruby
dawkirst has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
tejas has quit [Ping timeout: 244 seconds]
gja has quit [Ping timeout: 255 seconds]
havenwood has joined #ruby
babykosh has quit [Quit: babykosh]
techsethi has joined #ruby
cajone has left #ruby [#ruby]
lmickh has joined #ruby
NullEntity_ has quit [Ping timeout: 258 seconds]
tlarevo_ has joined #ruby
Guest7370 has quit [Ping timeout: 240 seconds]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cache_Money has quit [Quit: Cache_Money]
jbueza has joined #ruby
jhass is now known as jhass|off
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
tejas has joined #ruby
jbueza has quit [Client Quit]
lolmaus has joined #ruby
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
heftig has quit [Read error: Connection reset by peer]
tvw has joined #ruby
cajone has joined #ruby
lampd1 has quit [Ping timeout: 255 seconds]
rockdon_ has joined #ruby
heftig has joined #ruby
rockdon_ has quit [Client Quit]
Channel6 has quit [Quit: Leaving]
davasaurous has quit [Remote host closed the connection]
Vile` has quit [Remote host closed the connection]
maletor has joined #ruby
ghr has joined #ruby
tejas has quit [Read error: Connection reset by peer]
<shevy>
who else here is using KDE konsole
Vile` has joined #ruby
tejas has joined #ruby
justinmburrous has joined #ruby
rockdon_ has joined #ruby
Blizzy has quit [Ping timeout: 272 seconds]
czaks has quit [Ping timeout: 250 seconds]
rockdon_ has quit [Client Quit]
ghr has quit [Ping timeout: 246 seconds]
maletor has quit [Client Quit]
davasaurous has joined #ruby
softaco_s has quit []
oleo__ has quit [Quit: Verlassend]
fabrice31 has joined #ruby
techsethi has quit [Quit: techsethi]
SpaceKookie has quit [Ping timeout: 260 seconds]
codecop has joined #ruby
agent_white has quit [Quit: leaving]
SpaceKookie has joined #ruby
czaks has joined #ruby
havenwood has quit [Remote host closed the connection]
<msx>
shevy: o/ me
IceDragon has quit [Quit: Space~~~]
<shevy>
yay!
<shevy>
I am not alone
fabrice31 has quit [Ping timeout: 255 seconds]
tagrudev has joined #ruby
<msx>
shevy: :) I swtiched to it back from urxvt
mxrguspxrt has joined #ruby
<msx>
the compromise between features and weight wasn't worth
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
<shevy>
hehe
wottam has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
<shevy>
kde konsole is just about the only KDE app I use regularly
<shevy>
a while ago someone else here pointed out that you can use at least 256 colours on KDE konsole
<shevy>
I forgot who it was :(
ki0 has joined #ruby
<msx>
not to mention colors look beautiful in konsole (and i'm a heavy terminal user). Regardless of that, while I do not use the full KDE DE - just herbstluftwm, which happens to be the best manual tiling WM of all times :D - I do use most of KDE apps so... you figure it :)
<shevy>
lol
<shevy>
that name cracked me up
<shevy>
herbstluftwm
<msx>
"autumm air" in Deutsch
<sevenseacat>
i find kde ugly
dawkirst has quit [Remote host closed the connection]
<msx>
or more likely "autumm breeze"?
<shevy>
yeah
<shevy>
sevenseacat aren't you a mac cat?
<msx>
shevy: konsole rocks
<sevenseacat>
nein
mxrguspxrt has quit [Ping timeout: 246 seconds]
<msx>
lightweight, feature packaged, what more could one else? Even tmux runs admirably fast on it
<shevy>
msx there was some programmer from vienna a long time ago, he created the "Mailüfterl" ... like "may breeze" or something... breeze in the month May http://en.wikipedia.org/wiki/Mail%C3%BCfterl bei Hans Zemanek in 1956
<msx>
sevenseacat: you mean GNOME, Xfce and all those? KDE is just beautiful albeit I agree not as vanilla
<msx>
O_O
almostworking has joined #ruby
<sevenseacat>
well all i said was kde is ugly, im not much of a fan of the alternatives either
<sevenseacat>
i use unity
<shevy>
ack
<shevy>
you are a wicked cat
koderok has joined #ruby
starkhalo has quit [Ping timeout: 240 seconds]
<msx>
lol
<msx>
i actually like Unity
* msx
steps back...
koderok has quit [Remote host closed the connection]
<sevenseacat>
i dont particularly like it, but im used to it
<msx>
shevy: nice article, and the idea of "Viennese May Breeze" is just beautiful
drPoggs has joined #ruby
{xenomorph} has quit [Ping timeout: 260 seconds]
<shevy>
hehe
speakingcode has quit [Ping timeout: 260 seconds]
<shevy>
actually he only called it "Mailüfterl" I think ...
<shevy>
I guess I have to try out herbstluftwm
<shevy>
just for the name alone... which is a better name than awesomewm
<msx>
i settled with it after trying various WM, most of them dynamic tiling
{xenomorph} has joined #ruby
<shevy>
I don't really know how to use a tiling WM
mattmcclure has quit [Quit: Connection closed for inactivity]
<msx>
hlwm - short for herbstluftwm - has this absolutely useful ideas of frames which I believe is way ahead of traditional dynamic tiling WM. I would love to see Notion's 'tabs' idea added
User458764 has joined #ruby
<msx>
shevy: time and little patience to learn their ways, i dind't too at first but now i can't get back to traditional desktops
<msx>
shevy: do you use tmux?
<shevy>
nope
<msx>
or GNU Screen? It's basically the same concept
<shevy>
tmux also confuses me
<shevy>
nope, neither
krz has joined #ruby
<shevy>
it completely confuses the heck out of me
shortCircuit__ has joined #ruby
<shevy>
it's why I use kde konsole, I simply have tabs open
<msx>
oh... may be WM are not for you them :S
<shevy>
I am on fluxbox right now
<msx>
ah well, minimalist your way :D
<msx>
hell, this gem update will fry my laptop xD
gja has quit [Quit: This computer has gone to sleep]
tejas has quit [Quit: This computer has gone to sleep]
timonv_ has joined #ruby
lukeholder has joined #ruby
lukeholder has quit [Max SendQ exceeded]
toretore has joined #ruby
lukeholder has joined #ruby
bMalum has quit [Quit: bMalum]
jlast has quit [Remote host closed the connection]
Xeago_ has quit [Remote host closed the connection]
AFKGeek has joined #ruby
jlast has joined #ruby
jimmyy has quit []
SpaceKookie has joined #ruby
drager has joined #ruby
jheg has quit [Quit: jheg]
towski has quit [Quit: goodbye friends I am gone]
jheg has joined #ruby
jheg has quit [Client Quit]
dawkirst has quit [Remote host closed the connection]
Xeago has joined #ruby
EasyCo has quit [Quit: Connection closed for inactivity]
orangerobot has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
<orangerobot>
hi there. I've developed a gem that uses rspec and other stuff for testing. Is there a way to force ruby to download the development dependencies to the user's machine as well when running 'gem install <mygem>' ?
tejas has quit [Quit: Leaving]
TejasDinkar has quit [Quit: Leaving]
<orangerobot>
in other words, I would like to know whether there's a command that will download a gem, its dependencies (this is already done by default) but also its development dependencies
bricker`work has quit [Read error: Connection reset by peer]
Xeago has quit [Remote host closed the connection]
qba73 has joined #ruby
<hanmac1>
orangerobot: when you do "gem install" add "--development" too, that will download the development stuff
klaut has joined #ruby
<hanmac1>
shevy: look, i am there twice ;P
<orangerobot>
hanmac1: ok i will test it out now.
<orangerobot>
hanmac1: so if i've added dev deps to my gem (via spec.add_development_dependency in my gemspec) then they should be should be downloaded as well, right
<hanmac1>
yes
Alina-malina has quit [Ping timeout: 272 seconds]
Alina-malina has joined #ruby
rahult_ is now known as rahult
kwd has quit [Quit: Leaving.]
rahult is now known as rahult_
mercwithamouth has quit [Quit: Lost terminal]
<orangerobot>
ok thank you hanmac1
rahult_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dumdedum has joined #ruby
charliesome has joined #ruby
kwd has joined #ruby
<hanmac1>
hm i think i should add rspec testing stuff later to my gems too
yfeldblum has joined #ruby
bbloom has joined #ruby
yfeldblum has quit [Remote host closed the connection]
kenneth has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sigurding has quit [Client Quit]
nonks has quit [Ping timeout: 240 seconds]
govg has joined #ruby
HelperW has quit [Quit: (null)]
HelperW has joined #ruby
HelperW has quit [Excess Flood]
kaspergrubbe has joined #ruby
rshetty has quit [Remote host closed the connection]
bricker`work has joined #ruby
Scotteh_ has quit [Quit: Later, folks]
eka has joined #ruby
livathinos has joined #ruby
goodenough has quit [Remote host closed the connection]
grzywacz has joined #ruby
Soda has joined #ruby
HelperW has joined #ruby
goodenough has joined #ruby
alex88 has joined #ruby
bMalum has joined #ruby
ki0 has joined #ruby
ki0 has quit [Remote host closed the connection]
ki0 has joined #ruby
fantazo has quit [Ping timeout: 240 seconds]
ki0_ has joined #ruby
rbrs has joined #ruby
bbloom has quit [Ping timeout: 265 seconds]
terlar has joined #ruby
ki0 has quit [Ping timeout: 265 seconds]
<teotwaki>
Hi, I'm using rspec to run some behaviour tests against my API based on Grape. I use Rack::Test::Methods, which works fine, however, I'm running into some performance issues: If I run the suite on my models (which actually hits the DB), ~40 tests will execute in roughly 0.14 seconds. If I run the API suite, ~30 tests run in 30 seconds. The first 10 or so tests are fast, things go very much downhill after those.
<teotwaki>
How would I go about analysing/understanding this issue?
bbloom has joined #ruby
justinmburrous has quit []
<hanmac1>
teotwaki: hm you might try to ask the question again at #rspec where you might get more help (but say that you asked in this channel before)
nircUser has joined #ruby
rdark has joined #ruby
rshetty has joined #ruby
HewloThere has joined #ruby
<HewloThere>
Hey guys! Would it be best to make this in Ruby or another language? What I'd like to do is make a website with a few, limited people, logins, with the ability for them to upload images and have albums, as well as for selected albums, have passwords?
dawkirst has joined #ruby
<teotwaki>
hanmac1: sure, that works.
<teotwaki>
hanmac1: ta
<shevy>
HewloThere I guess you want ruby on rails -> #rubyonrails
<HewloThere>
I thought Ruby was also a web language?
<shevy>
HewloThere in general it depends on what other language you want to use. php? :)
<HewloThere>
Sorry though.
<shevy>
ruby is general purpose
<HewloThere>
Oh...
<hanmac1>
HewloThere: you can use Ruby for nearly anything
<shevy>
you can use ruby in .cgi scripts too, like perl
<shevy>
then there is sinatra... rack... and so forth
<hanmac1>
rails is only one of possible webframeworks in ruby
<HewloThere>
I see... What language would you suggest? (Presuming you need to learn it)
<shevy>
ruby ;)
<HewloThere>
Can Ruby be used with websites?
<shevy>
ruby on rails uses ruby
<hanmac1>
with the right libs/gems yes
<HewloThere>
I see... So with ROR?
<shevy>
yeah
tylersmi_ has quit [Remote host closed the connection]
<HewloThere>
=D Thx. =)
tylersmith has joined #ruby
<HewloThere>
Can Ruby/ROR be used with extensive CSS, div's, etc?
dawkirst has quit [Ping timeout: 245 seconds]
ramfjord has quit [Ping timeout: 250 seconds]
<teotwaki>
HewloThere: what webframework wouldn't be able to do so?
<HewloThere>
I've got no idea.
psy has quit [Remote host closed the connection]
<shevy>
HewloThere I think your question makes no sense
<HewloThere>
< teotwaki > Would you suggest someone who knows nothing about Ruby to learn it on codecademy or somewhere else...?
<shevy>
when you basically generate html, you have the instructions towards .css files, or embed them directly
<bulters>
HewloThere: It all comes down to string concatenation, so you can basically concatenate the hell out of any div you want, css all the things and forget anything "frameworky"
<HewloThere>
I was having a mind blank.
<shevy>
and the moment you generate html, you get ALL of the html features
lw has quit [Read error: Connection reset by peer]
rbrs has quit [Remote host closed the connection]
<shevy>
which will include CSS normally just as well. And you can then apply all CSS rules and styling towards the tags + ids
<hanmac1>
one day i will make a website with C just because i can ;P
lw has joined #ruby
kwd has quit [Read error: Connection reset by peer]
<shevy>
there is usually that http meta tag or whatever was the name that specifies what reply the webserver shall give to the visitor
lw has quit [Max SendQ exceeded]
kwd has joined #ruby
<HewloThere>
Mmkay. Thx. =)
<HewloThere>
Getting back to my other question, would you suggest someone who knows nothing about Ruby to learn it on codecademy or somewhere else...?
jottr has quit [Ping timeout: 240 seconds]
<shevy>
somewhere else
lw has joined #ruby
<shevy>
do you use linux
<HewloThere>
Such as?
<shevy>
the commandline
tylersmith has quit [Ping timeout: 255 seconds]
<shevy>
:)
<HewloThere>
My PC isn't Linux, but I've got a VPS/
<HewloThere>
. *
ki0 has joined #ruby
<shevy>
awww :(
<HewloThere>
On CentOS.
<HewloThere>
=P
dawkirst has joined #ruby
<HewloThere>
Why?
<shevy>
you need to put your brain into working + thinking mode
<shevy>
and that means you have to write code
<HewloThere>
Mmm...
<bulters>
shevy: ouch! It's not even mid-day here!
<HewloThere>
shevy: Where did you learn Ruby?
<shevy>
bulters well it won't work, he is using windows :(
bMalum has quit [Ping timeout: 272 seconds]
<shevy>
HewloThere well that is not good to compare, I learned perl before
zarubin has quit [Quit: Leaving.]
<HewloThere>
Are they similar?
<shevy>
the philosophy is
<shevy>
the syntax not so much
<HewloThere>
Right...
<shevy>
but if you reaaaaally start from zero
<shevy>
use php
<shevy>
you'll switch to a better language lateron anyway
<shevy>
I went perl->php->ruby
<HewloThere>
I see... Is PHP and Ruby similar?
<shevy>
nah
<HewloThere>
Oh.
<HewloThere>
Time to start PHP!
<shevy>
ruby has a conceptual design, PHP is a melting bot of whoever is able to throw in code
<HewloThere>
Lol.
<shevy>
melting *pot
livathin_ has joined #ruby
ki0_ has quit [Ping timeout: 265 seconds]
subraminion has joined #ruby
livathin_ has quit [Remote host closed the connection]
<hanmac1>
HewloThere: for CentOS i just can say that you totally need to update your software like ruby or php because the centos stuff is totally outdated
<HewloThere>
CentOS 7?
jpierre03 has joined #ruby
<hanmac1>
hm ok that night to be newer ... so it might be ok for once
mikecmpbll has joined #ruby
<HewloThere>
=P I installed PHP about half hour ago.
<HewloThere>
I don't think there's been an update since then.
Takle has joined #ruby
<gregf_>
shevy: how would you reverse a number in perl :p
alem0lars has quit [Quit: AFK..]
<gregf_>
*without googling*
<hanmac1>
gregf_: you mean like 23 to 32 ?
livathinos has quit [Ping timeout: 244 seconds]
<gregf_>
heh, i was expecting shevy to answer, since he's worked on it :)
Haiiro|Away is now known as Haiiro
jlast has joined #ruby
<shevy>
gregf_ I last touched perl code like 10 years ago or so
<shevy>
agent_white HewloThere is undecided which language he should learn
<shevy>
crome cat abuser!
<crome>
nah, they like it
<agent_white>
HewloThere: Ruby is like silly putty. Who doesn't like playing with silly-putty?!
<HewloThere>
I have got no idea.
<crome>
I'm always surprised how much I don't like going to work after drinking
gja has joined #ruby
gja has joined #ruby
<HewloThere>
Is JS any good to learn?
jbueza has joined #ruby
roolo has joined #ruby
maasha has joined #ruby
robbyoconnor has joined #ruby
<crome>
that's a pretty silly question
<HewloThere>
Okay, let me re word that. Is JS any good to learn to make things look pretty?
<crome>
if you have to do something that is best done in JS, by all means, learn it
<agent_white>
HewloThere: Every language is good to learn. Majority are free to try. Why not try them instead of asking?
<HewloThere>
I guess.
<crome>
HewloThere: define pretty
jlast has quit [Ping timeout: 260 seconds]
<agent_white>
Until then you're just picking from the pool of opinions. The fellows here like Ruby. And you are here. How bout you try Ruby?
<crome>
do you mean it is useful to learn JS if you want to make kickass webapps?
coderhs has joined #ruby
<maasha>
Morn
tlarevo_ has quit [Ping timeout: 265 seconds]
<gregf_>
HewloThere: JQuery(rather than JS) does'nt make things pretty. its the CSS with the html and images :/
tlarevo has joined #ruby
<gregf_>
JS does the clever bit tho' :/
* hanmac1
likes websites that does "work" even with disabled JS
<maasha>
I would like to write some HTML pages using HAML in a non-Rails app - basically using HTML instead of ERB. Search the docs and google seems to only turn up Rails this and Rails that. So what is the HAML equivalent of html = ERB.new(template) ?
<crome>
hanmac1: no drag and drop? :(
<HewloThere>
gregf_ this is a pretty website: No, it's useful to learn JS to make things like this:
<HewloThere>
I mean ghost.org
<HewloThere>
KIK!
<HewloThere>
LOL! *
<hanmac1>
crome: if javascript is disabled then its nice if the website does find an alternate way to work
goshdarnyou has quit [Quit: Connection closed for inactivity]
<agent_white>
HewloThere: So have you started your ruby program yet? :)
einarj has joined #ruby
<HewloThere>
I've gotta learn JS first. Then it's time for Ruby.
<HewloThere>
I need to make pretty things in JS.
<maasha>
crome: ah, excellent. Google-foo++ to you :o)
jacobat has quit [Ping timeout: 265 seconds]
<crome>
maasha: just to help you in the future: the keywords I used for finding stuff about using haml without rails is: "haml without rails"
<crome>
using search engines should be taught in elementary school
elaptics`away is now known as elaptics
WormDrink has joined #ruby
psy has joined #ruby
<maasha>
crome: there was no internet back then :o(
<crome>
well, they still don't teach it
shredding has joined #ruby
<maasha>
I remember when alta-vista was hot.
rshetty has quit [Remote host closed the connection]
<gregf_>
haha, what goes around comes around ;)
<crome>
metagopher was the thing
bricker`work has quit [Ping timeout: 240 seconds]
nonks has quit [Ping timeout: 260 seconds]
<maasha>
crome: yeah, gopher rings a bell too
gja has quit [Quit: This computer has gone to sleep]
jacobat has joined #ruby
aspiers has quit [Quit: WeeChat 0.4.3]
_cake has quit [Read error: Connection reset by peer]
<crome>
I never got to use usenet though
<shevy>
you simply were not l33t enough
goodenough has quit [Remote host closed the connection]
<crome>
alright, werk
<crome>
bbl
<hanmac1>
usenet still exist? oO
<hanmac1>
i thought it already died +5 years ago
ghr has joined #ruby
AFKGeek has quit [Ping timeout: 240 seconds]
<maasha>
hanmac1: they keep it around because of Godwin's Law
rshetty has joined #ruby
francisfish has joined #ruby
AFKGeek has joined #ruby
timonv_ has quit [Remote host closed the connection]
<maasha>
and I read somewhere that the Netscape browser will be revived
<msx>
guys, could anyone explain me in a few words why it takes so much time to parse gems' documentation? a gem update has been running for more than an hour and still going
<shevy>
msx sounds more like a bug
timonv_ has joined #ruby
jacobat has quit [Ping timeout: 272 seconds]
<msx>
shevy: :P
<msx>
ty
<msx>
Ctrl+C
<shevy>
what gem was it?
<msx>
to the rescue. Second time I hit this bug
<shevy>
It's been a while since I hit that
<shevy>
I usually install only one gem though
<shevy>
and put it into my local storage
kwd has quit [Read error: Connection reset by peer]
<hanmac1>
msx did the output say "building native extensions, that will take a while" or something similar?
mattjbarlow has quit [Ping timeout: 272 seconds]
jusmyth has left #ruby [#ruby]
<HewloThere>
Is anyone here any good with JS?
<msx>
hanmac1: hello, double-checked and not, it doesn't says so anywhere
andrewh has quit [Ping timeout: 255 seconds]
ruisantos has quit [Ping timeout: 260 seconds]
olivier_bK has joined #ruby
<wasamasa>
HewloThere: this is #ruby, how can anyone here be any good with JS?
<HewloThere>
I know it's #ruby. No one on JS is helping me at all. No one even read it after waiting like 10 minutes and posting it several times.
<wasamasa>
wait longer
<HewloThere>
=/
<wasamasa>
also, asking for help doesn't guarantee getting any
<sevenseacat>
spamming wont get you more help
<agent_white>
Or learn ruby instead!!! :D
<wasamasa>
this is just a volunteer thing
Soda has quit [Remote host closed the connection]
<wasamasa>
if nobody bothers responding, chances are nobody capable of answering has seen it
<teotwaki>
"I tried to buy a Renault in a Renault shop, but there were no salesmen available, so I came into this Ford shop. Why won't you sell me a Renault?!"
<teotwaki>
The number of (mainly PHP) devs in my company who can look at that article and say "he's nit-picking"
<sevenseacat>
ruby doesnt require html and css. what are you talking about?
jrdnull has joined #ruby
<wasamasa>
sevenseacat: things he doesn't know about
<HewloThere>
For web...
<sevenseacat>
apparently so
gremax has quit [Ping timeout: 250 seconds]
<wasamasa>
HewloThere: web development is a very broad field
<HewloThere>
I'm aware of that.
<hanmac1>
HewloThere: depends on the implmentation ruby does use C or Java but you dont need to know C or java to do ruby
<wasamasa>
HewloThere: if you're just starting out, I'd suggest writing simple command line applications instead
mattjbarlow has joined #ruby
<HewloThere>
=/
<msx>
HewloThere: just try by yourself. I always knew I absolutely like Ruby but started learning Python because a lot of system tools are written with it. Now I have to learn Chef and Puppet and have little time for anything else I'm forced to come back to my roots, couldn't be happier
<wasamasa>
patience would help, too
NullEntity_ has joined #ruby
danguita has quit [Ping timeout: 264 seconds]
<HewloThere>
Mmm...
<teotwaki>
I love ruby, but I have to say I much prefer Twisted over EventMachine when it comes to event-driven programming.
gremax has joined #ruby
<HewloThere>
I just don't know what to learn. Everyone says something different.
<wasamasa>
choose one and stick with it
kevinfagan has quit [Ping timeout: 240 seconds]
<msx>
^ ^
<wasamasa>
do it long enough to actually get a feel what it's god and not so good for
<HewloThere>
There's advantages and disadvantages of each. I'd prefer to know USEFUL ones, not crap ones.
autonomousdev has joined #ruby
Xeago has joined #ruby
<wasamasa>
maybe learn another language to expand your horizon
<wasamasa>
after you've done this with like, three completely different languages, learning new ones as you need them becomes easier
<teotwaki>
learn one language a year
<HewloThere>
I guess.
Xeago_ has quit [Read error: Connection reset by peer]
tonini has quit [Ping timeout: 244 seconds]
<teotwaki>
HewloThere: whatever you do, don't assume you're good.
<sevenseacat>
this is why i like having a formal education, to get the basics down and make picking up new stuff a lot easier
Xeago_ has joined #ruby
<HewloThere>
I'm not assuming I'm good.
<wasamasa>
and if you plan to do that to become a paid software developer, you'll need to learn languages, frameworks, working in a team, ...
<wasamasa>
constantly
NullEntity has quit [Ping timeout: 255 seconds]
<sevenseacat>
yep
ki0 has quit [Remote host closed the connection]
<teotwaki>
HewloThere: you suck at development. Your code will be absolute shite. Ask people for input, learn how to explain the architecture you're imagining.
<wasamasa>
I used to be a python fanboy and could write it well enough to solve pretty much any problem
danguita has joined #ruby
<hanmac1>
i learned Haxe recently for a new job ... its also a confusing language
<wasamasa>
but since I've started interning at my current company, I picked up ruby
<HewloThere>
I'm only 14. I'd like to get a pretty decent knowledge of web languages by the time I finish college (~3.5 years).
<wasamasa>
that made me cut down on fanboying :P
<teotwaki>
HewloThere: stop with the focus on web
<wasamasa>
HewloThere: there is no such thing as a "web language"
<teotwaki>
HewloThere: web developers are a dime a dozen
<wasamasa>
HewloThere: you use what works out for you
<HewloThere>
...
<apeiros>
wasamasa: I think JS and PHP qualify
<teotwaki>
apeiros: really? Node.js doesn't seem restricted to the web
<wasamasa>
HewloThere: if every browser you target runs JS client-side and you need to do client-side things, guess what, you learn JS
<apeiros>
since, yes, you can do other stuff with JS and PHP, but realistically, 99%+ of JS/PHP code is web
<apeiros>
teotwaki: and how much non-web node.js have you seen? :)
<agent_white>
I learned ruby to write tests for my devs when I was a network tech. Then I left and took ruby with me :D
<teotwaki>
apeiros: I disagree, we have 30k SLOC of Node in the backend, barely 10k on the client.
<wasamasa>
HewloThere: but for the backend any language does that has http bindings
<msx>
agent_white: yeah but that's changing fast
kevinfagan has joined #ruby
<HewloThere>
I'd like to have good knowledge of HTML and CSS (already know), JS, Ruby, PHP, Python, Node.js, jQuery and probably a few others.
<apeiros>
teotwaki: back-end for what? let me guess - web
<wasamasa>
HewloThere: and pretty much everything beats the php/jsp/asp/... crap
<HewloThere>
Mmm...
ta has quit [Remote host closed the connection]
<teotwaki>
apeiros: nope, VoIP event processing.
<sevenseacat>
HewloThere: yeah good luck with that
<gbchaosmaster>
HewloThere: If you want to get into web development, learn JS next.
<teotwaki>
apeiros: it's a backend to our SBCs.
<apeiros>
teotwaki: ok then. so 30k SLOC vs. the billions of existing.
<gbchaosmaster>
You're gonna wanna know all of the client-side shit.
<HewloThere>
Before or after Ruby...?
ta has joined #ruby
<apeiros>
you're pretty much the exception in that case.
<sevenseacat>
you're going to need more than that for web dev, you're going to want SQL and everything that entails as well
<HewloThere>
Huh?
<teotwaki>
apeiros: I know, I'm special :)
<agent_white>
30k SLOC... I have trouble poking through stuff I wrote ~400.
Xeago has quit [Ping timeout: 245 seconds]
<agent_white>
o_o
<wasamasa>
agent_white: write better :P
<teotwaki>
agent_white: the C++ part is 350k SLOC
<agent_white>
;D
<gbchaosmaster>
You would use Ruby for server-side code. The languages serve entirely different purposes.
<agent_white>
Lord.
<apeiros>
agent_white: proper segregation of concerns helps a lot
<gbchaosmaster>
Not that you can't run server-side JS.
<apeiros>
agent_white: lego code ;-)
<teotwaki>
agent_white: the Python/Twisted part is 50k
Haiiro is now known as Haiiro|Away
Guest45586 has joined #ruby
<gbchaosmaster>
Don't even bother learning PHP, the less people that know PHP the quicker it'll die.
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<wasamasa>
gbchaosmaster: after facebook dies maybe
<teotwaki>
actually, look at PHP after you've looked at a few languages that are coherent
Haiiro|Away is now known as Haiiro
kaspergrubbe has quit [Remote host closed the connection]
tonini has joined #ruby
<teotwaki>
if you start with PHP, it'll take a lot of effort to excusing any mistake a language makes
Aaaal has joined #ruby
<teotwaki>
s/to/to stop/
top4o has joined #ruby
<gbchaosmaster>
I thought PHP was really cool when I first learned it and started to play around with it as a preprocessor
<gbchaosmaster>
Then I saw what happened as soon as things got even a little bit big.
krz has quit [Ping timeout: 244 seconds]
anaeem1 has quit [Quit: Leaving...]
anaeem1_ has joined #ruby
<teotwaki>
The horror with PHP is how punishing it is to use for the dev
* wasamasa
suspect ##js ignored HewloThere because explaining him what went wrong would solve the exercise immediately
ki0 has joined #ruby
startupality has joined #ruby
lkba has quit [Ping timeout: 255 seconds]
<HewloThere>
wasamasa, what?
jnollett_ has quit [Ping timeout: 272 seconds]
<teotwaki>
And as if hit by Stockholm Syndrome, the devs keep asking for more and even protecting/defending their torturer
<wasamasa>
HewloThere: yes, that codecademy exercise
<HewloThere>
=P
<gbchaosmaster>
Stockholm Syndrome is all too common in the programming world.
<hanmac1>
hm my biggest stuff i have is 18kLOC ...
<gbchaosmaster>
*cough*Java*coughcoughvomit*
<wasamasa>
HewloThere: if you can not figure out what's missing there, there's a lot more basic things to worry about than what you should learn to become a web developer
jacobat has joined #ruby
livathinos has joined #ruby
<teotwaki>
then again, he's only 14, he has time
<HewloThere>
I know. I'm just dumb.
<gbchaosmaster>
wasamasa: Oh god now I wanna see the problem
anaeem1_ has quit [Remote host closed the connection]
<teotwaki>
but yeah, you won't be the next Zuckerberg, if that's why you were getting into development.
<HewloThere>
Is it possible to put .length and .downcase for the same string?
<csmrfx>
dont sweat the small stuff
crdpink has joined #ruby
<csmrfx>
ueah
<HewloThere>
=P
<HewloThere>
How would you do that?
<csmrfx>
you can chain in ruby
<HewloThere>
I see...
<gregf_>
length would give you a number and case does not matter :/
<csmrfx>
if you look under the hood a little
<csmrfx>
you will realize each expression calls a method
crdpink has quit [Read error: Connection reset by peer]
<csmrfx>
and those methods return a value
skaflem has quit [Client Quit]
<csmrfx>
which the next one in chain picks up
crdpink has joined #ruby
<HewloThere>
Mmm...
<csmrfx>
try it in irb
<csmrfx>
first each as standalone
<csmrfx>
then chain them
<HewloThere>
I'll just follow this tutorial for a bit longer... =P
rbrs has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
<csmrfx>
ok it probably has the same jive
<HewloThere>
When making a (I think) variable (e.g. name) do you have to write it as "name = myname" or can you do "name=myname"?
<agent_white>
Try it and see?
<hanmac1>
HewloThere: hmmm downcase/upcase does not change the length of a string ...
<HewloThere>
hanmac1, I'm aware of that. I was just wondering how to do multiple for 1 string...
jnollett_ has quit [Read error: Connection reset by peer]
jnollette has joined #ruby
SpaceKookie has joined #ruby
jlast has quit [Ping timeout: 272 seconds]
doev has joined #ruby
<HewloThere>
To have Ruby on a website, do you need to install anythign?
<HewloThere>
anything *
tlarevo_ has quit [Ping timeout: 250 seconds]
fgo has quit [Remote host closed the connection]
jottr has joined #ruby
<hanmac1>
HewloThere: for "something <Operator> other" you need to look at "a - 1" and "a-1" vs "a -1" ... the last one is parsed as "a(-1)" ... so you need a bit careful when using spaces with operators ...
charliesome has quit [Quit: zzz]
<HewloThere>
Mmkay. Thanks.
bayed has joined #ruby
<gizmore>
HewloThere: There are multiple options to let ruby talk http
<HewloThere>
Such as?
<csmrfx>
I think you need more practice/homework on as what "ruby on a website" would mean, technically
cicloid is now known as aCicloid
w1xz has joined #ruby
<HewloThere>
As in, having a web page built using Ruby on a web server.
govg has quit [Quit: leaving]
<csmrfx>
ok, a ruby web application
<HewloThere>
What would I need to install for my server to display it?
<csmrfx>
consider it as a app server + web server (+possibly caching proxy)
<wasamasa>
HewloThere: visit the ip address and bam, you got a file listing
<wasamasa>
HewloThere: that's all it takes
<gizmore>
`nc -L 80 < yourpage.html`
crdpink has quit [Ping timeout: 260 seconds]
<wasamasa>
^ more unixy
wottam has quit [Ping timeout: 258 seconds]
<HewloThere>
How to quit the Python command line?
<tobiasvl>
^d
<tobiasvl>
why are we talking about python in #ruby
Lightsword has joined #ruby
<tobiasvl>
HewloThere: ^d
kiely has quit [Quit: cognizance]
<wasamasa>
tobiasvl: because I can never remember the ruby equivalent oneliner
<tobiasvl>
hehe
<wasamasa>
it barely fits under the twitter maximum length
<HewloThere>
Is there any packages I need? I've got Apache, PHP, is there anything else I need?
<wasamasa>
...
<tobiasvl>
HewloThere: need for what?
<HewloThere>
To use Ruby on a web page...
<tobiasvl>
to use ruby on a web page?
<HewloThere>
Yes.
<tobiasvl>
well you need … ruby
crdpink2 has joined #ruby
<tobiasvl>
you don't need php
<wasamasa>
HewloThere: doesn't sound like you grasp the basics yet :P
<HewloThere>
=/
<wasamasa>
HewloThere: as I've said earlier, all you need is some server (which is just a computer, far, far away) and a language with socket bindings
crdpink2 has quit [Read error: Connection reset by peer]
<wasamasa>
HewloThere: that's all it takes
<Lightsword>
I’m trying to write a socket client using something like eventmachine, I need to make many socket connections at once, are there any examples of how to do that? I managed to do something similar using em-http-request but I need to use unix sockets instead
<HewloThere>
With a .rb file, do I need to install anything on my VPS for it to output that properly?
tlarevo has quit [Remote host closed the connection]
renderful has joined #ruby
<godd2>
and then add the sleep rand thing if that works at all to see if its working asynch
bulters has quit [Ping timeout: 265 seconds]
decoponio has joined #ruby
rshetty has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
gbchaosmaster has quit [Ping timeout: 250 seconds]
Spami has joined #ruby
rshetty has joined #ruby
renderful has quit [Ping timeout: 260 seconds]
timonv_ has quit [Remote host closed the connection]
Deejay_ has quit [Quit: Computer has gone to sleep.]
Hightower_ has joined #ruby
govg has joined #ruby
rahult has joined #ruby
jlast has joined #ruby
danguita has quit [Remote host closed the connection]
x77686d has quit [Quit: x77686d]
<Lightsword>
godd2, gettin undefined method `FiberIterator' for EventMachine::Synchrony:Module
<Lightsword>
even with a require "em-synchrony/fiber_iterator"
danguita has joined #ruby
<godd2>
Yea I have no idea. it was a shot in the dark.
<godd2>
although...
<godd2>
do you have pry installed?
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robustus is now known as robustus|Off
<Lightsword>
godd2, hmm think I may have got something
<godd2>
you can always drop binding.pry in a gem to see what the flip is going on
Akagi201_ has joined #ruby
<Lightsword>
EM::Synchrony::FiberIterator.new
<godd2>
and then use `gem pristine gem_name` to revert it
<godd2>
oh yea you could try that too
<Lightsword>
that made it go fast
<Lightsword>
but the responses are out of sync now
dumdedum has quit [Quit: foo]
<godd2>
isnt that what you wanted?
rshetty has quit [Remote host closed the connection]
<Lightsword>
yeah, but need to trace them, may have just messed something else up though one sec
<Lightsword>
ok, I think that worked
jlast has quit [Ping timeout: 265 seconds]
<Lightsword>
I had changed a variable somewhere else
thsig_ has joined #ruby
<godd2>
k Ill go put "EM::Synchrony Expert" on my resume now
Akagi201 has quit [Ping timeout: 245 seconds]
<Lightsword>
godd2, cool :) this made my request tool 20 times faster
Akagi201_ has quit [Remote host closed the connection]
I_Eat_Humans has joined #ruby
<I_Eat_Humans>
hello ruby peeps
<agent_white>
hay dere
zarubin has joined #ruby
dangerousdave has joined #ruby
thsig has quit [Ping timeout: 260 seconds]
<I_Eat_Humans>
So I have a string, which represents a software version "example: 2.5.1", I want to be able to do conditinal testing on it, example if < than 2.5.0, etc... I tried converting it to an interger and it won't work because it has two "."s any suggestions?
spastorino has joined #ruby
<jhass>
I_Eat_Humans: Gem::Version
<I_Eat_Humans>
jhass: cool, but is there a way to do this without a gem?
<I_Eat_Humans>
one more for ya if you don't mind. How can I check that the version (which will be avariable called ver) is always formatted in "n.n.n" notation? and not "n.n" or "n.n.n.n" -- I am reading this from the command line as an argument.
alem0lars has joined #ruby
<hanmac1>
I_Eat_Humans: you can use regexp for that
<I_Eat_Humans>
hanmac1: I am new to Ruby... so I don't know how off the top of my head :)
<I_Eat_Humans>
thanks guys, that should get me where I need to go, much appreciated!!!
lxsameer has joined #ruby
lxsameer has joined #ruby
timonv_ has joined #ruby
<apeiros>
use \A and \z instead of ^ and $
<apeiros>
^ and $ are line related, not full string
ghr has quit []
doev has quit [Ping timeout: 240 seconds]
<hanmac1>
apeiros: ah ok i always do it wrong because i dont use then that much often ...
corkfuse has joined #ruby
<apeiros>
yeah, it's a common mistake
<apeiros>
also because this is somewhat unique to ruby
Haiiro|Away is now known as Haiiro
ldnunes has joined #ruby
endlessdark has joined #ruby
<hanmac1>
apeiros: i found a funny method name ... or what do you say to: "spermy_recommendation" ? ;P
gja has joined #ruby
gja has joined #ruby
gja has quit [Changing host]
<apeiros>
hanmac1: that's for ~> qualifiers ;-)
<hanmac1>
i know i just found the method name for that funny ;D
doodlehaus has quit []
Bira has joined #ruby
<endlessdark>
Hey! I have a superfast request for you. Since I come from traditional languages like C, I have problems using ruby features and I end up writing code as if I would be writting C or Java.
<endlessdark>
So I will ask you to 'rubyfy' a small chunk of code if possible
gyre007_ has joined #ruby
<gyre007_>
guys, is there any way how I can interpolate values in %w() defined array ?
autonomousdev has joined #ruby
<gyre007_>
sa like interpolate variables passed to %w() array
max96at|off is now known as max96at
<hanmac1>
endlessdark: just make a pastie and then we can tell you what should be better
<endlessdark>
this small function I wrote, I guess is not well rubyfied
xiq__ has quit [Read error: Connection reset by peer]
Notte has quit [Client Quit]
xiq_ has joined #ruby
fsapo has joined #ruby
<hanmac1>
apeiros: its about that WX::App thing ... without the system is not loaded, the constants are not defined, and == "red" MIGHT return false :/
<apeiros>
hanmac1: just ensure that it is loaded in test_equal too
zarubin has quit [Remote host closed the connection]
drPoggs has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
<hanmac1>
hm ok, i might do it, the only prob is that i cant test it in test_equal that its not loaded
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crome>
load it in a hook
bulters has quit [Ping timeout: 255 seconds]
<crome>
ah but then you won't be able to test it without loading it
<godd2>
yea extract the logic of selcetion to a different method and test against that
jacobat_ has quit [Ping timeout: 245 seconds]
spyderman4g63 has joined #ruby
nonks has joined #ruby
<hanmac1>
hm yeah thats the very first test case for that project so its ok if its not perfect yet
<hanmac1>
hm i also might add rspec stuff too
<gyre007_>
hanmac1: excellent!
<gyre007_>
thanks
<godd2>
"but then you won't be able to test it without loading it" - it's okay to have dependencies. Although you may want to consider stubbing the constants?
mkopriva has joined #ruby
<apeiros>
I think not testing behavior when it is not loaded is perfectly fine
<hanmac1>
godd2: hm what do you mean with "stubbing" ?
<apeiros>
as that's just repeating the tests other should do (e.g. ruby stdlib/core tests)
jlast has joined #ruby
<godd2>
stubbing is when you make a fake version of an object so you can test the logic of something in isolation
<hanmac1>
godd2: so you mean i should just define the RED constants for the testcase or something similar?
jacobat has joined #ruby
<godd2>
yea it's sort of like saying "assuming the rest of my system works the way it should..."
livathinos has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 255 seconds]
<godd2>
but then that's why they're 'unit' tests
<hanmac1>
hm i just wanted to show that they cant be used without WX::App ... (i also will add that part extra in the documentation)
mkopriva has left #ruby [#ruby]
havenwood has joined #ruby
<godd2>
that's fine, it's just a more integrated kind of test.
<godd2>
integration tests are more coupled and they test the interaction of different parts of your system
SpaceKookie has quit [Ping timeout: 260 seconds]
<hanmac1>
its because in some ports the underling values like wxRED are not available before wxApp is started ... yeah its a bit fucked up but i cant do much about than writing around
nonks has quit [Ping timeout: 265 seconds]
rpag has quit [Quit: Leaving]
ValicekB has quit [Ping timeout: 272 seconds]
<godd2>
hehe, to me that just tells me that the test is trying to tell you something about your design ;)
SpaceKookie has joined #ruby
doev has joined #ruby
<hanmac1>
its not my design directly ... its about the binded lib ...
jlast has quit [Ping timeout: 260 seconds]
shredding has joined #ruby
HelperW has quit [Ping timeout: 258 seconds]
<godd2>
oh it's tests over some ext code
jacobat has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
workmad3 has quit [Ping timeout: 272 seconds]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
jacobat has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
havenwood has quit [Remote host closed the connection]
<Fractional>
gcdd2: Do you think there's anything I should change?
benzrf|offline is now known as benzrf
hmsimha has joined #ruby
<godd2>
however you are arguably violating the D in solid since you aren't injecting your dependencies but focusing on one SOLID principle at a time if fine
bMalum has joined #ruby
<godd2>
it's only arguably violating it
jacobat has joined #ruby
king313 has quit [Ping timeout: 260 seconds]
<Fractional>
godd2: How would you have done it to not violate either of the SOLID principles?
<godd2>
your Book#read method should have the BookReader object that will do the rading passed to it
rpag has joined #ruby
<godd2>
likewise, when you do Book.new you should pass a BookLoader to it, not have one created inside the method
sepp2k has joined #ruby
<godd2>
After all, BookLoader should know what paths are, not Book
livathinos has joined #ruby
<godd2>
So like Book.new('Sparrow 2.0', BookLoader.new('./books/Sparrow2.0.txt')) or something like that
shanlar- has quit [Read error: Connection reset by peer]
<apeiros>
Fractional: seems like overboarding SRP
<hanmac1>
godd2: or let Book#load pass the book object to a static helper that does access the correct loader type form the path of the book
<apeiros>
Fractional: we don't have ArraySelecter, ArrayMapper etc. because arrays have bad SRP
<godd2>
I agree apeiros but I wasnt going to make that crticism since he needs to do it too much before he learns how much too much is
<apeiros>
Fractional: it isn't always easy to figure where to draw the line, though
<Fractional>
Yeah, but I am doing my best to learn! :)
<godd2>
#select and #map are included from Enmerable though
<apeiros>
godd2: sure. multiple opinions is a good thing :)
<godd2>
I respectfully disagree with apeiros. I think investigating different abstraction techniques and solutions results in a deeper understanding of the language
kamilc__ has quit [Quit: Leaving...]
<godd2>
But you do have a point that you can over-abstract very easily
<apeiros>
godd2: I don't think we disagree. I have nothing against investigating :) learning is important.
<godd2>
Over-abstraction is when you have two levels of abstraction over what you need. Finding out what you need is the hard part ;)
banisterfiend has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<apeiros>
but I guess it's difficult to make up cases which make proper sense for the technique to be explored.
tier has joined #ruby
livingstn has quit [Ping timeout: 256 seconds]
distax has joined #ruby
<Fractional>
Now I am confused here. godd2 wants me to make the objects outside of the class to not break the D in solid, while Hanmac makes the objects within the class. Back on square one :'<
<distax>
is ?e some special kind of variable set by ruby itself
gccostabr has quit [Ping timeout: 260 seconds]
Xiti has quit [Quit: Leaving]
<godd2>
distax no it's for codepoints
<hanmac1>
in ruby you can abstract it in the infinity ... its like the difference of a Painting and an Abstraction of a Painting ;P
<godd2>
distax it returns the ascii codepoint for the character
<distax>
it from 'the well grounded rub..' 1.9.3 though
coderdad has joined #ruby
<apeiros>
distax: yes, Kernel#test was updated to accept strings. which is why ?e etc. still work.
rkalfane has quit [Client Quit]
ta has quit [Remote host closed the connection]
KC9YDN has quit [Read error: Connection reset by peer]
<godd2>
In Programming Ruby under the section on ? chars, they state "Do yourself a favor and forget this section."
<distax>
:)
end_guy has quit [Remote host closed the connection]
tkuchiki has joined #ruby
<apeiros>
distax: I assume the author simply didn't take their time to update that section, or still likes ?<char>. But as godd2 already said, I'd advise to not use that notation.
end_guy has joined #ruby
jacobat has joined #ruby
<hanmac1>
godd2: +1 for the AT image ;P
sevenseacat has left #ruby [#ruby]
<distax>
the book is from 2009 and covers 1.9.3
AFKGeek has quit [Quit: Leaving]
<distax>
but a new version was relesed this month
Heskie has quit []
rpzdi has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Darryl has joined #ruby
User458764 has joined #ruby
timonv_ has joined #ruby
<rpzdi>
how operating system control memory ram? how a system program which resides inside a chip controls the physical RAM chip?and change the variables between o.s and applications program and shell?
kaspertidemann has quit []
lw has quit [Quit: s]
<apeiros>
rpzdi: errr, what?
<godd2>
rpzdi #ruby is probably not the place to ask things like that
tkuchiki has quit [Remote host closed the connection]
zaid_h has joined #ruby
<godd2>
but if you want to know that stuff, I suggest you pick up a book on assembly
tkuchiki has joined #ruby
<godd2>
and a book on electrical engineering for computer scientists
gja has quit [Quit: This computer has gone to sleep]
<rpzdi>
tnx
rpzdi has quit [Client Quit]
nonks has joined #ruby
mike32 has joined #ruby
einarj has quit [Remote host closed the connection]
weemsledeux has joined #ruby
weemsledeux has joined #ruby
mxrguspxrt has quit [Remote host closed the connection]
Haiiro is now known as Haiiro|Away
mleone has joined #ruby
rbrs has quit [Remote host closed the connection]
twohlix has joined #ruby
kp666 has joined #ruby
weemsledeux has quit [Client Quit]
jlast has joined #ruby
ta has joined #ruby
freerobby has joined #ruby
nonks has quit [Ping timeout: 265 seconds]
techsethi has quit [Quit: techsethi]
kp666 has quit [Client Quit]
kp666 has joined #ruby
wolves_cs has joined #ruby
KC9YDN has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
kp666 has quit [Client Quit]
kp666 has joined #ruby
jacobat has quit [Ping timeout: 260 seconds]
livathinos has quit [Remote host closed the connection]
taptapdan has quit [Quit: taptapdan]
mleone has quit [Ping timeout: 244 seconds]
sevenseacat has joined #ruby
tonybird has joined #ruby
autonomousdev has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SpaceKookie has joined #ruby
jlast has quit [Ping timeout: 250 seconds]
krz has quit [Quit: WeeChat 1.0.1]
autonomousdev has joined #ruby
benzrf|offline is now known as benzrf
foooobear has quit [Read error: Connection reset by peer]
txdv has quit [Quit: leaving]
distax has quit [Quit: Leaving]
jimbach has joined #ruby
rkalfane has joined #ruby
rkalfane has quit [Client Quit]
zorak8 has quit [Ping timeout: 240 seconds]
rossgeesman has joined #ruby
bMalum has joined #ruby
twohlix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
xiq has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
emmesswhy has joined #ruby
psy has quit [Remote host closed the connection]
elektronaut has joined #ruby
zaid_h has quit [Quit: ZZZzzz…]
emmesswhy has quit [Client Quit]
rossgeesman has quit [Ping timeout: 255 seconds]
livathinos has joined #ruby
hanmac1 has quit [Read error: Connection reset by peer]
emmesswhy has joined #ruby
hanmac1 has joined #ruby
dblessing has joined #ruby
x77686d has joined #ruby
yfeldblum has joined #ruby
User458764 has quit [Ping timeout: 244 seconds]
x77686d has quit [Client Quit]
ta has quit [Remote host closed the connection]
kwd_ has quit [Quit: Leaving.]
danguita has quit [Ping timeout: 264 seconds]
User458764 has joined #ruby
iamjarvo has joined #ruby
zaid_h has joined #ruby
beef-wellington has joined #ruby
tagrudev has quit [Remote host closed the connection]
Fractional has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 258 seconds]
zorak8 has joined #ruby
kp666 has quit [Quit: Konversation terminated!]
Xeago has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
iamjarvo has quit [Client Quit]
Heskie has joined #ruby
dx7 has quit [Remote host closed the connection]
ghr has joined #ruby
dx7 has joined #ruby
alem0lars has quit [Remote host closed the connection]
livathinos has quit [Remote host closed the connection]
alem0lars has joined #ruby
edwardloveall has joined #ruby
ylluminarious has joined #ruby
Xeago_ has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
banister has joined #ruby
banister has quit [Client Quit]
havenwood has joined #ruby
psy has joined #ruby
jerius has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
Mia has quit [Ping timeout: 244 seconds]
Mia has joined #ruby
RaCx_ has joined #ruby
pedromoreira has joined #ruby
RaCx has quit [Ping timeout: 265 seconds]
RaCx_ is now known as RaCx
HewloThere has quit [Quit: Leaving]
danguita has joined #ruby
havenwood has quit [Ping timeout: 264 seconds]
j2p2 has joined #ruby
gccostabr has quit [Quit: See you later!]
mikepack has quit [Remote host closed the connection]
Xiti has joined #ruby
sinkensabe has quit [Remote host closed the connection]
Scotteh has joined #ruby
<bulters>
dear people of #ruby, I present to you my humble question
msmith_ has joined #ruby
alem0lars has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
<bulters>
in which 'object' is my constant FooBarQuuxBaz defined... when i evaluate: module ::FooBarQuuxBaz; end
alem0lars has joined #ruby
<waxjar>
Object
ringarin has joined #ruby
<bulters>
and with Object I assume (i know) you mean the class Object
lw has joined #ruby
<waxjar>
yeah
lw has quit [Max SendQ exceeded]
spyderman4g63 has quit [Read error: No route to host]
spyderma_ has joined #ruby
<bulters>
So module Blurp; end is actually the same as Object.const_set("Blurp", Module.new)
twohlix has joined #ruby
<Mon_Ouie>
If you're at top-level, yes
ta has joined #ruby
lw has joined #ruby
lw has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
<bulters>
well, I want to define top level modules (and classes) from within a class, but defining const_set("::WorkDamnit", Module.new)... doesn't actually work
<bulters>
so betty call const_set on Object then...
lw has joined #ruby
rockdon_ has joined #ruby
benzrf is now known as benzrf|offline
<waxjar>
can't you make a Module and mix that into Object at the end?
<Mon_Ouie>
That's because in module ::Foo; end the name of the module is Foo, not '::Foo'
<Mon_Ouie>
const_set
gja has joined #ruby
<Mon_Ouie>
const_set wants only the name of the constant, it does not understand the scoping operator
boombadaroomba has joined #ruby
<bulters>
Mon_Ouie: I figured, just having some trouble finding a "root of all objects"
<bulters>
due to the somewhat cyclic nature of parents near the "root"-singularity
<apeiros>
Object is the root
<bulters>
which isn't actually a singularity in ruby ;-)
danguita has quit [Remote host closed the connection]
danguita has joined #ruby
otakbeku has joined #ruby
<bulters>
nice, thanks guys... I might actually be able to ship something today now... one more hour left on the clock... deploy and off to the kids for the weekend ;-)
siwica1 has quit [Remote host closed the connection]
<waxjar>
i guess it's some javascript history magic, oh well
<bulters>
waxjar: well, I'm running a kind of bootstrapping process for AR classes (yes, a rails thingy)
<apeiros>
waxjar: always make such methods module_function
freerobby has quit [Quit: Leaving.]
<apeiros>
waxjar: (that's how Kernel and e.g. Math work too btw.)
siwica has joined #ruby
<bulters>
but for multiple 'applications'
boombadaroomba has quit [Ping timeout: 258 seconds]
xaxisx has quit [Disconnected by services]
xaxisx_ is now known as xaxisx
freerobby has joined #ruby
<waxjar>
ah, didn't know that, but that makes sense
SpaceKookie has joined #ruby
xaxisx_ has joined #ruby
<bulters>
I've been thinking about storing Module instances in a application top level constant (i.e. {app1: Module.new, app2: Module.new}) and refering to those instead
<bulters>
but that really fscks up error reporting ;-)
Axy has joined #ruby
{xenomorph} has joined #ruby
bMalum has quit [Quit: bMalum]
Mia has quit [Read error: Connection reset by peer]
<bulters>
At least now I get nice exceptions App1_SomeRandomIdentifier::User lalalala ArgumentError
techsethi has joined #ruby
alem0lars has quit [Remote host closed the connection]
<apeiros>
bulters: I wouldn't put generated constants into the top level
Heskie has joined #ruby
<apeiros>
App1::Generated::RANDOM_ID_HERE
alem0lars has joined #ruby
devdazed has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<apeiros>
or somesuch
gja has quit [Quit: This computer has gone to sleep]
<apeiros>
I did something like that for my reloadable plugin system
<bulters>
apeiros: applications are identified by an internal uuid, some SomeRandomIdentifier is not really random ;-)
centrx has joined #ruby
alem0lars has joined #ruby
<apeiros>
bulters: that's irrelevant to the suggestion ;-)
Kricir has joined #ruby
<bulters>
So if app 1 has the identifier "invoices", and the uuid "12345" the base module will be Invoices_12345
<bulters>
but I catch your drift
<apeiros>
you generally don't put stuff into the toplevel. that's just bad design.
<bulters>
might be a smart thing to put in in a base module
<bulters>
thanks
<apeiros>
yw
User458764 has quit [Ping timeout: 265 seconds]
kaspergrubbe_ has joined #ruby
kaspergrubbe has quit [Read error: Connection reset by peer]
larissa has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
Channel6 has joined #ruby
<hanmac1>
bulters: hm you might store the module objects in a instance variable of a master object
phrozen77 has joined #ruby
mary5030 has quit [Remote host closed the connection]
<hanmac1>
and then you might so: Root["12345"]::Invoices or something similar
sk87 has joined #ruby
agent_white has quit [Read error: Connection reset by peer]
<bulters>
hanmac1: Tried that, that was my first iteration of this, problem lies in error reporting, since your "key" will not be logged in default error logs
<bulters>
apeiros: true. I actually think it's a cleaner solution since it's still "application data"; but will defer actually implementing it that way until I get the green light to spent a few weeks on this project ;-)
alem0lars has quit [Max SendQ exceeded]
jlast has joined #ruby
alem0lars has joined #ruby
nonks has joined #ruby
<bulters>
always a problemen, trying to define 'cleanness' for an app that's a poc, but is probably going to be used in production ;-)
alem0lars has quit [Max SendQ exceeded]
ec has joined #ruby
p8952 has joined #ruby
netmask has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
mityaz has quit [Quit: Leaving]
alem0lars has joined #ruby
gja has joined #ruby
gja has joined #ruby
alem0lars has quit [Max SendQ exceeded]
gja has quit [Remote host closed the connection]
Haiiro|Away is now known as Haiiro
alem0lars has joined #ruby
nonks has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 260 seconds]
rbrs has joined #ruby
rbrs has quit [Remote host closed the connection]
ghr has joined #ruby
iamjarvo has joined #ruby
alem0lars has quit [Remote host closed the connection]
ghr has quit [Client Quit]
raldu has left #ruby [#ruby]
raldu has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
djstorm has joined #ruby
Axy has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
lkba has joined #ruby
Axy has joined #ruby
Axy has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
enebo has joined #ruby
alem0lars has joined #ruby
yfeldblum has joined #ruby
treehug88 has joined #ruby
alem0lars has quit [Max SendQ exceeded]
alem0lars has joined #ruby
relix has joined #ruby
alem0lars has quit [Max SendQ exceeded]
snath has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
oleo has joined #ruby
alem0lars has joined #ruby
sinkensabe has joined #ruby
zaid_h has quit [Quit: ZZZzzz…]
RaCx has quit [Ping timeout: 255 seconds]
rossgeesman has quit [Remote host closed the connection]
tkuchiki has quit [Remote host closed the connection]
RaCx has joined #ruby
rossgeesman has joined #ruby
tkuchiki has joined #ruby
dp has left #ruby [#ruby]
ringarin has quit [Read error: Connection reset by peer]
GPH|work has quit [Read error: Connection reset by peer]
pedromoreira has quit [Ping timeout: 272 seconds]
<endlessdark>
Fast question, I have a class for generating a string. It has the 'generate' public method and some others used by 'generate' that are private. As the whole prupose of the class is calling the 'generate' method, and it holds no data, should I declare it as a class method? or rename it as the initialize method?
rossgeesman has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 255 seconds]
<endlessdark>
SampleString.generate vs SampleString.new
<tobiasvl>
sounds like you could just generate it in initialize?
<endlessdark>
I see creating an object pointless as I will not need it anymore
alem0lars has quit [Remote host closed the connection]
jobewan has joined #ruby
<edwardloveall>
i like the class method approach
<edwardloveall>
SampleString.generate reads better to me
alem0lars has joined #ruby
<apeiros>
endlessdark: def SampleString.generate; new.generate; end
alem0lars has quit [Max SendQ exceeded]
Ankhers has joined #ruby
<apeiros>
i.e., keep the rest as it is and provide a convenience class method
marr has quit [Ping timeout: 250 seconds]
jrhe_ has quit [Quit: Connection closed for inactivity]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<edwardloveall>
yes
<edwardloveall>
i was about to suggest that also
Spami has quit [Quit: Leaving]
<endlessdark>
is convenient creating an object that won't be used anymore?
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
duketogo13 has joined #ruby
alem0lars has joined #ruby
<endlessdark>
*an instance
alem0lars has quit [Max SendQ exceeded]
robustus is now known as robustus|Off
Spami has joined #ruby
mengu has quit []
alem0lars has joined #ruby
<apeiros>
endlessdark: implementation detail. whom of your users will care?
havenwood has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
ferno has joined #ruby
larissa has quit [Quit: Leaving]
Xeago has joined #ruby
<ferno>
What's the best way to remove a method from a specific class instance?
<endlessdark>
ok, I see
<endlessdark>
thanks!
<apeiros>
endlessdark: if your app is too slow and your benchmark show the generate method to be a culprit, then you optimize it. and since it's an implementation detail, nobody has to adapt anything.
maasha has quit [Quit: Page closed]
shredding has quit [Quit: shredding]
<olivier_bK>
some have already use mechanize ?
kamilc__ has joined #ruby
Xeago has quit [Remote host closed the connection]
iinzg has joined #ruby
elektronaut has joined #ruby
agjacome has joined #ruby
<tobiasvl>
ferno: I guess it's this: class << your_instance; remove_method(:method_name); end
<ferno>
What's the best way to remove a method from a specific class instance?
<ferno>
Ah, my bad, ignore the dup
icebourg has quit []
<tobiasvl>
ie. removing it from the instance's eiginclass
aCicloid is now known as cicloid
zeroNones has joined #ruby
<ferno>
Hmm, but that gives a NameError, it isn't finding the method on the class (strangely)
znst has joined #ruby
crazydiamond has joined #ruby
alem0lars has quit [Read error: Connection reset by peer]
livathinos has quit [Remote host closed the connection]
zorak8 has quit [Ping timeout: 244 seconds]
<znst>
How do I get the occurence count of a substring from a string? e.g. ocurrence_count("hello", "l") returns 2
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
alem0lars has joined #ruby
{xenomorph} has joined #ruby
GPH|work has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<jxf>
I have a date string generated from Date.today.to_s (e.g. "2014-10-17"). I would like the UTC time at midnight on this day, e.g. the result of Time.utc(2014, 10, 17). Is there a method that will get me that?
<ferno>
tobiasvl: It's an instance method, not a class method.
SpaceKookie has quit [Ping timeout: 260 seconds]
Takle has quit [Remote host closed the connection]
<ferno>
Aka, it's defined within the clas with def method_name ... end
<godd2>
so like "hello".count("llll") will still be 2 since there are two l's in the original
mxrguspxrt has quit [Remote host closed the connection]
alem0lars has joined #ruby
dangerousdave has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<godd2>
but "hello".count("oleh") will be 5 since each character in the argument matches up to all 5 in the original string
freerobby has joined #ruby
happyface_ has joined #ruby
<olivier_bK>
some have already use mechanize ?
cicloid is now known as aCicloid
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
Xeago has joined #ruby
doodlehaus has joined #ruby
<centrx>
Yes, mechanize good
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
taptapdan has joined #ruby
<znst>
so it matches each character against the character set passed into count?
<happyface_>
"gem install compass” is installing the latest version of the “sass” gem. How can I get it to use an older version of the “sass” gem instead?
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
klmlfl has joined #ruby
banister has joined #ruby
rockdon_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klmlfl has quit [Remote host closed the connection]
banister has quit [Max SendQ exceeded]
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
Xeago has quit [Remote host closed the connection]
klmlfl has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
alem0lars has joined #ruby
<godd2>
znst that's right. think of the argument passed as a set of characters. order doesnt matter and duplicates are ignored
<znst>
is there a way to assert a string is valid html in the ruby library?
centrx has quit [Ping timeout: 246 seconds]
lampd1 has joined #ruby
Soda has quit [Remote host closed the connection]
robustus|Off is now known as robustus
tylersmith has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 250 seconds]
icarus has joined #ruby
RaCx has joined #ruby
zeroNones has quit [Ping timeout: 260 seconds]
troyready has joined #ruby
spastorino has quit [Quit: Connection closed for inactivity]
zarubin has joined #ruby
BadQuanta has joined #ruby
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
Bira has joined #ruby
elektronaut has quit [Ping timeout: 260 seconds]
alem0lars has joined #ruby
kireevco has quit [Quit: Leaving.]
alem0lars has quit [Max SendQ exceeded]
havenwood has quit [Remote host closed the connection]
rubie has joined #ruby
alem0lars has joined #ruby
alem0lars has quit [Max SendQ exceeded]
<rubie>
hi all: anyone know what this error means? EventManager initialized. /Users/balwh/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/csv.rb:1256:in `initialize': No such file or directory @ rb_sysopen - event_attendees.csv (Errno::ENOENT)
elektronaut has joined #ruby
alem0lars has joined #ruby
phrozen77 has joined #ruby
<rubie>
that event_attendees.csv file does exist
<rubie>
in the lib folder
x77686d has joined #ruby
x77686d has quit [Client Quit]
mpistone has joined #ruby
JaMz has joined #ruby
klmlfl has quit []
failshell has quit []
msmith_ has quit [Remote host closed the connection]
kireevco has joined #ruby
emmesswhy has joined #ruby
SpaceKookie has quit [Ping timeout: 260 seconds]
lkba has joined #ruby
<allcentu1>
exit
almostworking has joined #ruby
msmith_ has joined #ruby
allcentu1 has quit [Quit: WeeChat 1.0]
hamakn has quit [Remote host closed the connection]
Kricir has joined #ruby
goodenough has joined #ruby
SpaceKookie has joined #ruby
skiabox has joined #ruby
freerobby has joined #ruby
skiabox has quit [Client Quit]
almostworking has left #ruby [#ruby]
Takle has quit [Remote host closed the connection]
centrx has joined #ruby
Ankhers has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rbrs has joined #ruby
ptrrr has joined #ruby
orionstein has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
mikecmpbll has quit [Ping timeout: 240 seconds]
aspires has joined #ruby
wm3|away has quit [Ping timeout: 245 seconds]
a_ has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
{xenomorph} has quit [Ping timeout: 260 seconds]
{xenomorph} has joined #ruby
{xenomorph} has quit [Changing host]
{xenomorph} has joined #ruby
joast has joined #ruby
t_mmyv has joined #ruby
lmickh has quit [Remote host closed the connection]
jlast has joined #ruby
Avahey has joined #ruby
mikecmpbll has joined #ruby
Zettam has quit [Read error: Connection reset by peer]
zeroNones has joined #ruby
SouL_ has joined #ruby
hamakn has joined #ruby
Zettam has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SomeOtherNick2 is now known as emmesswhy
havenwood has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
rubie has quit [Ping timeout: 246 seconds]
klmlfl has joined #ruby
bricker`work has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
kenneth has joined #ruby
Darryl has quit [Quit: Connection closed for inactivity]
<bricker`work>
So I want something like this (the transaction tracer is from the newrelic client): https://gist.github.com/bricker/d2d8921b3b9e2dc4d2c7 so that every job subclass automatically gets the transaction tracer. The problem is that the method needs to be defined *before* add_transaction_tracer is called. I think I can defined a stub "perform" method on the base class, but is there a better way to accomplish this?
<bricker`work>
define*
lolmaus has quit [Remote host closed the connection]
Notte has quit []
timonv_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
lolmaus has joined #ruby
rkalfane has joined #ruby
skolman_ has joined #ruby
crunk_bear has joined #ruby
jnylen has joined #ruby
goodenough has quit [Remote host closed the connection]
<Hanmac>
bricker`work: look at "self.inherited"
<jnylen>
I have a issue with paperclip/delayed_paperclip: sh: 1: file: not found
<jnylen>
any ideas?
Darryl has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
banister has joined #ruby
Hightower666 has joined #ruby
timonv_ has quit [Ping timeout: 245 seconds]
dangerousdave has joined #ruby
xaxisx has joined #ruby
yetanotherdave has joined #ruby
axilla has quit [Quit: Lost terminal]
rocknrollmarc has quit [Ping timeout: 265 seconds]
Heskie has quit []
robustus|Off is now known as robustus
gccostabr has joined #ruby
terlar has quit [Ping timeout: 260 seconds]
marr has joined #ruby
AlexRussia has quit [Ping timeout: 255 seconds]
crazydiamond has quit [Ping timeout: 246 seconds]
rockdon_ has joined #ruby
matthewhill has joined #ruby
klmlfl has quit [Remote host closed the connection]
klmlfl has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimbach has quit [Remote host closed the connection]
max96at is now known as max96at|off
HelloFred has quit [Remote host closed the connection]
Takle has quit [Remote host closed the connection]
emmesswhy has quit [Quit: Leaving]
max96at|off is now known as max96at
AlexRussia has joined #ruby
i_s has joined #ruby
marlonandrade1 has quit [Quit: Leaving.]
marlonandrade has joined #ruby
Lightsword has joined #ruby
rdark has quit [Quit: leaving]
tier has quit [Remote host closed the connection]
sevvie has joined #ruby
j2p2 has quit []
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lw has quit [Quit: s]
icebourg has quit [Read error: Connection reset by peer]
matthewhill has quit [Quit: Be back later ...]
jfran has joined #ruby
icebourg has joined #ruby
stunder has joined #ruby
Deejay_ has joined #ruby
zarubin has quit [Quit: Leaving.]
Deejay_ has quit [Client Quit]
<bricker`work>
Hanmac: Oh yeah, good idea
gyre007_ has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jimbach has joined #ruby
pizzahead has joined #ruby
zeroNones has joined #ruby
zarubin has joined #ruby
jimbach has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
doev has quit [Quit: Verlassend]
dangerousdave has joined #ruby
txdv has joined #ruby
ndrei has quit [Quit: Lost terminal]
zarubin has quit [Client Quit]
ndrei has joined #ruby
HelloFred has joined #ruby
JohnBat26 has joined #ruby
<pizzahead>
I'm confused because it looks like it's telling me that oauth2 needs to be at a version that will be fine with the upgrade
<godd2>
oauth2 (~> 0.8.0) ruby
<godd2>
that means up to 0.8.9 or something like that
<godd2>
so 0.9.3 would break the two things that are dependent on oauth2
<pizzahead>
ah I see , I was looking at it like > 0.8.0
<pizzahead>
ty
<havenwood>
yay, lifting up my left shift key and blowing on it fixed it!
<godd2>
yea the ~> means anything that doesnt change the first and second part
tylersmith has joined #ruby
zarubin has joined #ruby
tier has joined #ruby
maletor has joined #ruby
parduse is now known as Guest87309
Guest87309 has quit [Killed (sinisalo.freenode.net (Nickname regained by services))]
parduse has joined #ruby
HelloFred has quit [Read error: Connection reset by peer]
regexhelp has joined #ruby
msmith_ has quit [Remote host closed the connection]
<regexhelp>
how can I run a regexp scan on " 370 100% Done 0.0 0.0 82.0 371* 22% Stopped" to get the percents i.e. 100 and 22. I am having trouble getting it to work properly
olivier_bK has quit [Ping timeout: 244 seconds]
<pizzahead>
godd2: thank you!
<godd2>
regexhelp are there always going to be spaces before the number that has the percent?
<apeiros>
regexhelp: what have you tried so far?
<regexhelp>
godd2: yes white space i don't know if it's a space or tab or what but there will be whitespace
coderdad has quit [Remote host closed the connection]
gagan has joined #ruby
<godd2>
string.scan(/\b(\d[^ ])+%/) ?
startupality has joined #ruby
msmith_ has joined #ruby
carraroj has joined #ruby
<regexhelp>
i have tried .scan(/\s+(.*?)%/)
<apeiros>
godd2: any number of (digit plus non-whitespace) sounds wrong ;-)
<apeiros>
requires an even number of digits
lampd1 has quit [Remote host closed the connection]
<godd2>
I missed a pipe
<godd2>
string.scan(/\b(\d|[^ ])+%/)
<apeiros>
godd2: just put all in the char-class
lmickh has joined #ruby
Takle has joined #ruby
<godd2>
darn thats wrong too
johnhamelink has quit [Read error: Connection reset by peer]
Klumben has quit [Read error: Connection reset by peer]
<apeiros>
tbh, not sure why you have that [^ ] there at all. consumes % too btw.
<klmlfl>
so someone asked me what is the fastest way to learn to code and my answer was practice
<apeiros>
[\d.]+ IMO
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 260 seconds]
<klmlfl>
lots and lots of practice
<klmlfl>
their response was how is that the fastest, that seems hard
mistermocha has quit [Remote host closed the connection]
garethrees has quit [Ping timeout: 250 seconds]
gsd has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
yetanotherdave has quit [Ping timeout: 245 seconds]
maestrojed has joined #ruby
troyready has quit [Ping timeout: 244 seconds]
elektronaut has quit [Ping timeout: 260 seconds]
coderhs has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
koderok has joined #ruby
troyready has joined #ruby
wallerdev has joined #ruby
elektronaut has joined #ruby
renderful has joined #ruby
hamakn has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 272 seconds]
jlast has joined #ruby
johnhamelink has joined #ruby
lxsameer has quit [Quit: Leaving]
startupality has joined #ruby
schaerli has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 258 seconds]
pandaant has joined #ruby
gbaway has joined #ruby
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rbrs has quit [Remote host closed the connection]
gauke has joined #ruby
coderhs has joined #ruby
renderful has quit [Ping timeout: 244 seconds]
BadQuanta has quit [Ping timeout: 272 seconds]
jlast has quit [Ping timeout: 265 seconds]
jerius has quit []
justin_pdx has joined #ruby
iamjarvo has joined #ruby
zeroNones has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
codezomb has joined #ruby
jottr has quit [Quit: WeeChat 1.0]
kaspergrubbe has quit [Remote host closed the connection]
at3560k has joined #ruby
sevvie has quit [Quit: leaving]
fsapo has joined #ruby
<at3560k>
query: Been a python developer for a decade. I'd really like to have an interactive prompt *like* ipython... just for the basic functionality... command history, readline completion, a bit of coloring and pretty print... Is there something I can augment/enhance/replace irb with to do something like that?
<havenwood>
at3560k: using Pry instead of irb is a popular choice
yetanotherdave has joined #ruby
<txdv>
at3560k: what made you move to ruby?
jfran has quit [Remote host closed the connection]
<havenwood>
at3560k: gem install pry pry-doc
twohlix has quit [Ping timeout: 258 seconds]
<at3560k>
txdv: wanted to at least learn it when I saw momentum in it, did my first plugin for logstash in ruby... new team I'm on works in it... so.. here I am learning the toolchain.
<at3560k>
havenwood: thank you
Azulinho has joined #ruby
<txdv>
poor pyton guy, getting gems shoved down his throat
<txdv>
:(
andrewlio has joined #ruby
tesaf has joined #ruby
dawkirst has quit [Remote host closed the connection]
<at3560k>
Hrm. Any recommendations about my desire to have totally isolated gems per project?
Morkel_ has joined #ruby
<havenwood>
at3560k: Use Bundler?
thagomizer has joined #ruby
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
Ankhers has joined #ruby
<havenwood>
at3560k: There're tools like gem_home that provide a similar feature to RVM's gemsets, but you can: bundle install --path vendor/bundle
<at3560k>
*headscratch* I am using bundle... but the gems go to the ruby that rbenv is using. Like if I have two projects on 1.9.3 I have to run bundle install when I switch between them or...not compatible?
<havenwood>
at3560k: TL;DR: --path: Specify a different path than the system default ($BUNDLE_PATH or $GEM_HOME). Bundler will remember this value for future installs on this machine
carraroj has quit [Quit: Konversation terminated!]
j2p2 has joined #ruby
graft has quit [Ping timeout: 258 seconds]
banister has joined #ruby
RaCx_ has joined #ruby
RaCx has quit [Ping timeout: 255 seconds]
RaCx_ is now known as RaCx
sinkensabe has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
graft has joined #ruby
adac has joined #ruby
<sssilver>
Hey guys... I am trying to build a project using compass, and it's failing to build. This is my first exposure to Ruby, so can anyone please help me understand what the issue might be? The output log is here -- https://bpaste.net/show/3098f2988de6
RichardLitt has joined #ruby
sinkensabe has quit [Remote host closed the connection]
julieeharshaw has quit [Ping timeout: 260 seconds]
coderdad has quit [Ping timeout: 240 seconds]
<prasselpikachu>
hello everyone, a friend of mine is working on win7 with rubyinstaller (ruby 2.1) and devkit. now we have some problems with the tzinfo gem - as to be expected with windows. we already install tzinfo-data, but the same error, TZInfo::DataSourceNotFound still occurs...
startupality has quit [Client Quit]
bMalum has joined #ruby
dte has joined #ruby
rbrs has joined #ruby
dte is now known as mxrguspxrt
freezey has quit [Remote host closed the connection]
mxrguspxrt has quit [Client Quit]
NoNMaDDeN has joined #ruby
mxrguspxrt has joined #ruby
NoNMaDDeN has quit [Remote host closed the connection]
jlast has joined #ruby
ndrei has joined #ruby
julieeharshaw has joined #ruby
mistermocha has quit [Ping timeout: 265 seconds]
ringarin has joined #ruby
dangerousdave has joined #ruby
julieeharshaw has quit [Max SendQ exceeded]
rshetty has quit [Remote host closed the connection]
hedin has joined #ruby
rshetty has joined #ruby
moted has joined #ruby
benzrf is now known as benzrf|offline
jlast has quit [Ping timeout: 260 seconds]
julieeharshaw has joined #ruby
<hedin>
Hello, I have problems with https://github.com/jjmartres/VIMbix/blob/master/rakefile line 78, when I run rake daemon:start, It returns "starting vimbix" but it doesn't start and I don't know how I can make it return whatever it's doing, so that I can start debugging
julieeharshaw has quit [Max SendQ exceeded]
<hedin>
so basicly, how can I run the command on line 78: system("thin -c #{root} -C config/vimbix.yml -R config.ru start") from the cli, in a way so that it tells me what's happening?
rossgeesman has quit [Remote host closed the connection]
rossgeesman has joined #ruby
carraroj has joined #ruby
ghr has joined #ruby
HelloFred_ has joined #ruby
jamgood96 has joined #ruby
maletor has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
<hedin>
is this the wrong channel to ask about rake problems?
jfran has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
<wasamasa>
I don't think so, it's just that apparently nobody capable of answering your question has read it yet
riles has joined #ruby
tvw has quit []
<riles>
Hi! I'm having trouble getting guard to run rspec (#guard channel is quiet). When I save a file, guard observes the change, and the path to the desired spec is being constructed correctly, but the specs aren't actually running. In debug mode, I see "Hook :run_on_changes_begin executed for Guard::RSpec", but the specs aren't actually run
kireevco has quit [Quit: Leaving.]
alvaro_o has joined #ruby
kireevco has joined #ruby
rossgeesman has quit [Remote host closed the connection]
Soda has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hakunin has quit []
taptapdan has quit [Quit: taptapdan]
koderok has quit [Read error: Connection reset by peer]
weemsledeux has joined #ruby
taptapdan has joined #ruby
hellangel7 has quit [Ping timeout: 260 seconds]
tutus has joined #ruby
tutus has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
<hedin>
wasamasa: okay, I'l just stick around :)
tutus has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman_ has quit [Remote host closed the connection]
nonks has joined #ruby
skolman_ has joined #ruby
t_mmyv has joined #ruby
dawkirst has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
yfeldblum has joined #ruby
zaid_h has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
Blizzy has joined #ruby
skolman_ has quit [Ping timeout: 250 seconds]
kaspertidemann has joined #ruby
phrozen77 has joined #ruby
bMalum has quit [Quit: bMalum]
rkalfane has joined #ruby
<tzero>
does anyone use asset_sync, fog, middleman-sync, or any of that related chain-of-messes?
jimmyhoughjr has joined #ruby
<tzero>
I found some issue with deleting existing files, back into an asset_sync method, which looks exactly the same as a fog example, yet doesn't actually work at all
levisbak_ has quit [Read error: Connection reset by peer]
<havenwood>
hedin: you could modify the gem with a `binding.pry` and take a look what the command returns when run with backticks.
siwica has joined #ruby
<havenwood>
hedin: or just try the command yourself
top4o has quit [Quit: ChatZilla 0.9.91 [Firefox 32.0.3/20140923175406]]
eikood has joined #ruby
siwica1 has quit [Ping timeout: 272 seconds]
<havenwood>
hedin: alternatively, change `config/vimbix.yml` to not be in daemonized in production mode, just print to stdout/stderr
<hedin>
havenwood: I just found out that "thin" was not in path... when I tried to run "~/.gem/ruby/2.0.0/bin/thin -c VIMbix -C config/vimbix.yml -R config.ru start" it worked
<havenwood>
hedin: ahh, what are you using to switch Rubies?
<literary>
help
Mia has quit [Read error: Connection reset by peer]
eikood has quit [Client Quit]
Mia has joined #ruby
<hedin>
havenwood: dunno, i'm a dumb user when it comes to ruby related stuff... I just git cloned https://github.com/jjmartres/VIMbix and folloed the README
<havenwood>
literary: Wont you please, please help me. Help me help meeee, eeeee.
Iniesta8 has joined #ruby
Iniesta8 has quit [Max SendQ exceeded]
jbueza_ has quit [Read error: Connection reset by peer]
rossgeesman has joined #ruby
jbueza has joined #ruby
<havenwood>
hedin: so it appears the instructions are presuming you're using the rubygems-bundler gem that auto-prefixes `bundle exec` to commands run inside the app root directory.
rossgeesman has quit [Read error: Connection reset by peer]
skolman_ has quit [Remote host closed the connection]
AlexRussia has quit [Remote host closed the connection]
skolman has joined #ruby
skolman has quit [Remote host closed the connection]
justin_pdx has joined #ruby
AlexRussia has joined #ruby
skolman_ has joined #ruby
siwica1 has joined #ruby
JaMz has joined #ruby
<hedin>
how come ruby progs want to handle dependencies outside of package managers and seems to explode if some of the dependencies are installed via package management?
siwica has quit [Ping timeout: 265 seconds]
agjacome_ has quit [Ping timeout: 258 seconds]
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
<hedin>
Redmine is a good example of this problem... I at least have had quite a few problems upgrading redmine)
literary has quit [Quit: Leaving...]
spicerack has joined #ruby
ringarin has joined #ruby
Morkel_ has joined #ruby
Morkel has quit [Ping timeout: 255 seconds]
Morkel_ is now known as Morkel
lw has joined #ruby
adac has joined #ruby
Tricon has joined #ruby
tylersmi_ has joined #ruby
mistermocha has quit [Remote host closed the connection]
genta has quit [Quit: Quit]
tylersmith has quit [Read error: Connection reset by peer]
Eiam has joined #ruby
papercode has quit [Quit: WeeChat 0.4.3]
Maxdamantus has quit [Ping timeout: 265 seconds]
papercode has joined #ruby
Maxdamantus has joined #ruby
tustex has joined #ruby
eikood has quit [Quit: Leaving]
agjacome_ has joined #ruby
eikood has joined #ruby
agjacome_ has quit [Client Quit]
schaerli has quit [Remote host closed the connection]
ringarin has quit [Ping timeout: 240 seconds]
lampd1 has quit []
awarner has joined #ruby
ringarin has joined #ruby
ptrrr has quit [Quit: ptrrr]
agjacome has quit [Ping timeout: 250 seconds]
rossgeesman has quit [Read error: Connection reset by peer]
martin_work has joined #ruby
serargz_ is now known as serargz
RaCx has quit [Ping timeout: 272 seconds]
rossgeesman has joined #ruby
x77686d has joined #ruby
mistermocha has joined #ruby
x77686d has quit [Client Quit]
RaCx has joined #ruby
awarner_ has quit [Ping timeout: 244 seconds]
kireevco has joined #ruby
awarner has quit [Ping timeout: 255 seconds]
gauke has quit [Quit: gauke]
mistermocha has quit [Remote host closed the connection]
max96at is now known as max96at|off
benzrf|offline is now known as benzrf
ringarin has quit [Quit: Leaving]
mpistone has joined #ruby
genta has joined #ruby
troyready has quit [Remote host closed the connection]
yetanotherdave has quit [Ping timeout: 250 seconds]
fantazo has joined #ruby
nonks has quit [Ping timeout: 255 seconds]
paulfm has joined #ruby
RaCx_ has joined #ruby
klmlfl_ has joined #ruby
Takle has quit [Remote host closed the connection]
RaCx has quit [Ping timeout: 258 seconds]
RaCx_ is now known as RaCx
Takle has joined #ruby
reinaldob has quit []
bal has quit [Remote host closed the connection]
ptrrr has joined #ruby
manzo has joined #ruby
ptrrr has quit [Client Quit]
lw has quit [Quit: s]
klmlfl has quit [Ping timeout: 255 seconds]
mattmcclure has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bluOxigen has quit [Ping timeout: 265 seconds]
lw has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
jlast has joined #ruby
rbrs has quit [Remote host closed the connection]
awarner has joined #ruby
djbkd has joined #ruby
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
mxrguspxrt has quit [Remote host closed the connection]
skolman_ has quit [Remote host closed the connection]
rkalfane has joined #ruby
znst has quit [Ping timeout: 255 seconds]
skolman_ has joined #ruby
eikood has quit [Quit: Leaving]
eikood has joined #ruby
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Rollabunna has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 260 seconds]
djbkd has quit [Ping timeout: 258 seconds]
Bira has quit []
skolman_ has quit [Ping timeout: 246 seconds]
BadQuanta has joined #ruby
nonks has joined #ruby
geekbri has quit []
elektronaut has quit [Ping timeout: 260 seconds]
codeFiend has quit [Quit: codeFiend]
drPoggs has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
bulters has joined #ruby
beef-wellington has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
timonv_ has joined #ruby
elektronaut has joined #ruby
<shevy>
anyone has tested
<shevy>
if input is an Array, is input[0] or input.first faster?
skolman has joined #ruby
threesixes has quit [Remote host closed the connection]
<yxhuvud>
if that is an issue, you have a totally different problem in reality.
<eam>
my guess is that #first *should* be faster, but I don't know if it is
weeb1e has joined #ruby
mleone has joined #ruby
mleone has quit [Max SendQ exceeded]
ndrei has joined #ruby
njames has joined #ruby
gsd has joined #ruby
<shevy>
yeah I think it should be
<shevy>
going to benchmark it
gbchaosmaster has joined #ruby
kaspergrubbe_ has joined #ruby
<eam>
talk of optimization makes ruby people uncomfortable
jonathanwallace has quit [Read error: Connection reset by peer]
kaspergrubbe has quit [Read error: Connection reset by peer]
<yxhuvud>
eam: not really, but the point is to optimize the relevant thing.
<njames>
whois eam
<njames>
:-)
<godd2>
looking at source, first should be faster. fewer conditionals
<yxhuvud>
and if a relevant time is spent doing array lookups, the solution is generally speaking not to make it faster, but to make fewer lookups.
<eam>
and no arg on the stack
<eam>
yxhuvud: all approaches are valid
Jackneill has quit [Ping timeout: 260 seconds]
jbueza has quit [Read error: Connection reset by peer]
<eam>
I suggest the uncomfortableness stems from the environment being so very difficult to optimize in
cicloid is now known as aCicloid
<godd2>
oh no wait, looks like #first just runs [](0)
niftylettuce has joined #ruby
jbueza has joined #ruby
<apeiros>
the [] syntax has an optimized path for hash and array iirc
wallerdev has joined #ruby
<yxhuvud>
eam: sure, but looking at first vs [] seems like the absolute last thing one should do compared to everything else one should look at.
<eam>
yxhuvud: it's an interesting question not because a typical ruby programmer should care, but because the implementation itself can optimize things like this and produce significant gains in the aggregate
<apeiros>
and iirc the performance difference is measurable. but in most cases completely irrelevant.
Takle has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
schaerli has joined #ruby
duncannz has joined #ruby
<eam>
that is, it's not useful as an idiom, but it's very useful when we're bringing optimizing ruby itself into the discussion
<apeiros>
I remember .first and .at being faster than [] 1.8, but sometime after 1.9, it stopped being true
aCicloid is now known as cicloid
tutus was kicked from #ruby by apeiros [spamming is off limites]
tutus has joined #ruby
tutus was banned on #ruby by apeiros [tutus!*@*]
tutus was banned on #ruby by apeiros [*!*@90.174.3.190]
tutus was kicked from #ruby by apeiros [spamming is off limites]
<apeiros>
*limits
<apeiros>
brah
<yxhuvud>
apeiros: thanks for that ban.
<eam>
+1
thsig_ has quit []
<apeiros>
yxhuvud: yw, but sadly it's rather useless. thankfully the spambot author is an idiot.
User458764 has joined #ruby
maletor has joined #ruby
<yxhuvud>
yes, life on the aggregate is much simpler because most of the evil people are idiots.
jamgood96 has quit [Read error: Connection reset by peer]
kyb3r_ has joined #ruby
benzrf is now known as benzrf|offline
AlexRussia has quit [Ping timeout: 245 seconds]
jamgood96 has joined #ruby
benzrf|offline is now known as benzrf
xaxisx has joined #ruby
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
ghr has joined #ruby
djbkd has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
iamjarvo has joined #ruby
RedDwarf is now known as Zackio
banister has joined #ruby
banister has quit [Max SendQ exceeded]
ghr has quit [Read error: Connection reset by peer]
j2p2 has quit [Ping timeout: 272 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
mikepack has joined #ruby
<yxhuvud>
shevy: the difference is roughly 200 nanoseconds per use, so if you call #first 50 million times, then you will lost a second, in total. Usually, it is easier to find a lot of places that will gain magnitudes greater gains than that.
<shevy>
right so I should continue using .first for the remainder of my life
<shevy>
besides, why would you assume that your second sentence would not apply here either? I can optimize here AND elsewhere.
fabrice31 has joined #ruby
RaCx has joined #ruby
cicloid is now known as aCicloid
AlexRussia has joined #ruby
<shevy>
eam is always making fun at how perl is faster than ruby :(
jamgood96 has quit [Quit: Leaving...]
<yxhuvud>
you can optimize in both places, but in the end, it is a good idea to start with the parts that yield greater gains and work yourself downward until it is fast enough.
<godd2>
what would need to be done to make ruby faster? complete overhaul of the c code?
<shevy>
godd2 probably to remove some features
spastorino has joined #ruby
<yxhuvud>
the key to prioritizing optimizations is measurements.
<godd2>
why not just not use the features?
spider-mario has quit [Remote host closed the connection]
<godd2>
or make it to where the rest of ruby is faster unless you use those features or something
<shevy>
godd2 well different people use different features
djbkd has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<godd2>
that's true, but ruby's flak for being slow is from benchmark tests no?
<shevy>
and then you have this "we must retain backwards compatibility" problem
<shevy>
ruby can be quite slow or sluggish
<shevy>
at work in February 2014, the team was a perl team... they had a debian workstation on their cluster... you could somehow enable ruby 1.9.x "module load ruby"
Asher has quit [Quit: Leaving.]
<shevy>
but there was some kind of weird delay when I invoked a simple .rb script compared to a simple .pl script
lw has quit [Quit: b]
kireevco has quit [Quit: Leaving.]
fabrice31 has quit [Ping timeout: 272 seconds]
<shevy>
ruby felt much slower there :\
<shevy>
and there are guys in the basement IT dungeon that won't upgrade for years
<apeiros>
tustex is the spammer now?
Azulinho has quit [Quit: Leaving]
<shevy>
yeah
<shevy>
after you banned that other bot, and I wrote something tustex instantly privmsg popped up
<godd2>
shevy seems like if there are a bunch of non-upgraders then backwards compatibility isn't as big of an issue
djbkd has joined #ruby
almostworking has joined #ruby
tustex was banned on #ruby by apeiros [*!*@80.30.150.62]
tustex was banned on #ruby by apeiros [tustex!*@*]
djbkd has quit [Remote host closed the connection]
tustex was kicked from #ruby by apeiros [spamming is off limits]
<shevy>
godd2 right because they did not adopt ruby in the first place, perl still fills that niche :) they were about +10 years older than I was on average though so it is kinda a generation problem mostly
yetanotherdave has joined #ruby
djbkd has joined #ruby
almostworking has left #ruby [#ruby]
<shevy>
they were math-heavy guys actually, bioinformatics and computationyl biology (and service facility for the other in-house/campus labs)
<shevy>
*computational
<eam>
the upgrade problem relates to overall software lifecycle for large codebases
<eam>
the more code you have, the longer it takes to migrate to new implementations
<shevy>
they did not even use perl .cgi so they were like from the 1995 era
<godd2>
well if anything, DHH has set most the ruby community to be ready for change
phutchins has quit [Ping timeout: 240 seconds]
fantazo has quit [Ping timeout: 240 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<godd2>
(disclaimer: when I say "ruby community" I'm including Rails ppl)
<eam>
godd2: much of the problem is in boundaries with other non-ruby software. eg, distro packaged ruby
coderdad has quit [Remote host closed the connection]
king313 has quit [Ping timeout: 250 seconds]
banister has joined #ruby
banister has quit [Client Quit]
xaxisx has quit [Quit: xaxisx]
zorak8 has quit [Ping timeout: 245 seconds]
<shevy>
well
<shevy>
the newer language needs to be significantly better than the older language
<shevy>
to warrant change
Eiam has joined #ruby
<godd2>
Im not sure about that shevy. plenty of people grab the newest version of whatever without even considering the consequences
<godd2>
unless you're talking about a significant departure from whatever ruby currently is
<shevy>
I mean for like that team to move away from perl to ruby
<eam>
the newer language needs to be significantly *fashionable*
_lexjm has joined #ruby
<godd2>
oh I see
<shevy>
imagine if you worked for 15 years and hacked perl code every day at work
<eam>
fashion is sometimes driven by utility, but just as often not
<shevy>
they actually were really good at what they did too, so I would not only have to compete in perl vs. ruby but also against the knowledge stored in their brains, which easily outperforms my brain
<shevy>
except for cgi/CSS/HTML/javascript, that was entirely unknown to them ;)
skolman has quit [Remote host closed the connection]
<sterns>
redis labs limits one to 10 connections on their free plan. Does Redis To Go have a similar limit? Or, can anyone recommend another free redis provider that has a significantly greater connection limit>
weeb1e has joined #ruby
RaCx has joined #ruby
codeFiend has joined #ruby
elektronaut has joined #ruby
skolman has joined #ruby
renderful has joined #ruby
pikitg238 has quit [Ping timeout: 260 seconds]
shosti has joined #ruby
Lightsword has quit [Quit: Lightsword]
shosti has quit [Remote host closed the connection]
<postmodern>
what type does RSTRING_LEN return?
doodlehaus has quit [Remote host closed the connection]
jlast has joined #ruby
Ankhers has quit [Ping timeout: 264 seconds]
alem0lars has quit [Quit: Quit!]
yfeldblum has joined #ruby
hamakn has quit [Ping timeout: 244 seconds]
lolmaus has joined #ruby
shinobi_one has quit [Quit: Leaving...]
serargz has quit [Ping timeout: 244 seconds]
iamjarvo has joined #ruby
skolman has quit [Ping timeout: 272 seconds]
kirun has quit [Quit: Client exiting]
mxrguspxrt has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 265 seconds]
ldnunes has quit [Quit: Leaving]
skolman_ has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
AlexRussia has quit [Remote host closed the connection]
chrishough has joined #ruby
ferr_ has quit [Quit: leaving]
AlexRussia has joined #ruby
ferr_ has joined #ruby
maletor has quit [Read error: Connection reset by peer]
{xenomorph} has quit [Ping timeout: 260 seconds]
rossgeesman has quit [Remote host closed the connection]
{xenomorph} has joined #ruby
jespada has quit [Quit: Leaving]
drPoggs has quit [Ping timeout: 260 seconds]
drPoggs has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
ferr_ is now known as ferr
serargz has joined #ruby
hackeron has quit [Ping timeout: 272 seconds]
hackeron has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
kevind has joined #ruby
eka has quit [Ping timeout: 260 seconds]
phrozen77 has joined #ruby
RaCx has joined #ruby
carraroj has joined #ruby
adac has quit [Ping timeout: 260 seconds]
eka has joined #ruby
levisbak_ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
treehug88 has quit []
RaCx has quit [Client Quit]
bulters has quit [Ping timeout: 272 seconds]
netmask has quit [Remote host closed the connection]
altamic has quit [Quit: altamic]
netmask has joined #ruby
RaCx has joined #ruby
RaCx has quit [Client Quit]
levisbak_ has joined #ruby
ringarin has quit [Ping timeout: 272 seconds]
carraroj has quit [Remote host closed the connection]
<apeiros>
interesting how seemingly simple problems become hard
carraroj has joined #ruby
* apeiros
tries to maneuver ships on interception courses :)
tier has quit [Remote host closed the connection]
<yxhuvud>
apeiros: I learnt that lesson playing frontier loads of years ago!
<apeiros>
:)
* apeiros
works a bit on a game
carraroj has quit [Client Quit]
<bricker`work>
postmodern: long
<apeiros>
I'm currently wondering whether I want to try to come up with the algorithms for acceleration and course correction myself or google around
mleone has joined #ruby
mary5030 has quit [Remote host closed the connection]
levisbak_ has quit [Read error: Connection reset by peer]
zeroNones has joined #ruby
netmask has quit [Ping timeout: 260 seconds]
ringarin has joined #ruby
claymore has quit [Quit: Leaving]
ylluminarious has quit [Quit: Leaving...]
edwardloveall has quit [Quit: Leaving.]
levisba__ has joined #ruby
levisba__ has quit [Read error: Connection reset by peer]
mdw has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider>
apeiros: I've written that code!
<zenspider>
there's a really good mathematica demo of it too
mistermocha has joined #ruby
<apeiros>
zenspider: in ruby? would love to see that :)
graft has quit [Ping timeout: 244 seconds]
jimbach has quit [Ping timeout: 244 seconds]
<apeiros>
my basic problem is: I have a heading and speed (which are not necessarily towards the target). I can change acceleration and turn. so I have to compensate the speed and direction I already have. I think the result is some kind of arc function
<apeiros>
I think bezier curves work somewhat like that
vyorkin has quit [Quit: WeeChat 1.0.1]
ghostmoth has quit [Quit: ghostmoth]
<zenspider>
apeiros: static triangle calculations each cycle. If you happen to be pointed the direction the enemy will be in at the right time, fire.
<zenspider>
it'll look like an arc over time, but each calculation is just plain triangles
mistermocha has quit [Remote host closed the connection]
<apeiros>
ah, firing is easy. weapons are assumed to be turreted and will always fire in the right direction :D
jerius has quit []
devdazed has quit [Quit: Computer has gone to sleep.]
threesixes has joined #ruby
<apeiros>
(luckily, I make the rules of the combat arena)
havenwood has quit [Remote host closed the connection]
mistermocha has joined #ruby
ndrei has quit [Ping timeout: 255 seconds]
<zenspider>
apeiros: what type of game are you working on/with?
<apeiros>
cloning starbase orion. which in turn is a clone of master of orion II
netmask has joined #ruby
<yxhuvud>
do you have a limited amount of fuel as well?
{xenomorph} has quit [Ping timeout: 260 seconds]
<apeiros>
during battle? no
<apeiros>
starbase orion's battle works quite differently from master of orion
havenwood has joined #ruby
phrozen77 has quit [Ping timeout: 260 seconds]
<apeiros>
the fight is entirely automated
{xenomorph} has joined #ruby
<apeiros>
weapons have different strength depending on distance. so lots is maneuvering, keeping the right distance.
<shevy>
defend the starbase onion!
<apeiros>
heh
boombadaroomba has joined #ruby
codeFiend has quit [Quit: codeFiend]
rossgeesman has joined #ruby
devdazed has joined #ruby
devdazed has quit [Client Quit]
<apeiros>
watching tv while coding == huge efficiency loss :D
ta has quit [Ping timeout: 240 seconds]
SilkFox has quit [Ping timeout: 260 seconds]
<yxhuvud>
well, that holds for drinking beer while coding as well
phrozen77 has joined #ruby
<yxhuvud>
(except that it breaks that damned analysis paralysis)
<apeiros>
^^
Morkel has quit [Quit: Morkel]
rpag has quit [Ping timeout: 240 seconds]
boombadaroomba has quit [Ping timeout: 260 seconds]
rossgeesman has quit [Ping timeout: 246 seconds]
<shevy>
minus the occasional toilet run
kevind has quit [Quit: kevind]
msmith__ has quit [Remote host closed the connection]
pretty is now known as magic
Akuma has quit [Quit: So long sukkas!]
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderdad has joined #ruby
linagee has joined #ruby
jimbach_ has quit [Remote host closed the connection]
enebo has quit [Quit: enebo]
chinaski has joined #ruby
roolo has joined #ruby
pu22l3r has joined #ruby
pork_clips has joined #ruby
roolo has quit [Client Quit]
otakbeku has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
crunk_bear has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Read error: Connection reset by peer]
leizzer has quit [Quit: WeeChat 0.4.2]
mleone has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has joined #ruby
Rollabunna has joined #ruby
thagomizer has quit [Quit: Leaving.]
thagomizer has joined #ruby
rpag has joined #ruby
OffTheRails has joined #ruby
emmesswhy has joined #ruby
jlast has quit [Ping timeout: 260 seconds]
micahhhhhh has joined #ruby
<micahhhhhh>
hi mattheewwww
Eiam has quit [Quit: (╯°□°)╯︵ ǝpouǝǝɹɟ]
robbyoconnor has joined #ruby
jottr has quit [Ping timeout: 255 seconds]
yfeldblum has joined #ruby
micahhhhhh has left #ruby [#ruby]
elektronaut has quit [Ping timeout: 260 seconds]
elektronaut has joined #ruby
jottr has joined #ruby
Rollabunna has quit [Ping timeout: 245 seconds]
TeresaP has joined #ruby
emmesswhy has quit [Remote host closed the connection]
tttttttttttttttt has joined #ruby
<TeresaP>
Anyone know who system commands are executed as?
OffTheRails has quit [Ping timeout: 258 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
tttttttttttttttt has quit [Client Quit]
weaksauce has joined #ruby
otakbeku has joined #ruby
weaksauce has quit [Client Quit]
weaksauce has joined #ruby
crdpink2 has quit [Quit: q term]
boaaa has joined #ruby
Lightsword has joined #ruby
ringaring has joined #ruby
hackeron has quit [Ping timeout: 265 seconds]
hackeron has joined #ruby
x45t has quit [Read error: Connection reset by peer]
x45t has joined #ruby
graft has joined #ruby
graft has joined #ruby
<bricker`work>
TeresaP: the user that is running the program
fabrice31 has joined #ruby
<bricker`work>
TeresaP: you can type `whoami` to check
riles has quit [Quit: Page closed]
eikood has quit [Quit: Leaving]
ringarin has quit [Ping timeout: 260 seconds]
it0a has quit [Ping timeout: 265 seconds]
<TeresaP>
Hmm, ok. I am having issues with 'ifuse' mounting my ipad, transfer the file with FileUtils.cp, and then later when I do a Dir.glob for the file it sometimes doesn't show the file even though it exists
<TeresaP>
I thought maybe it was a permissions issue
freerobby has joined #ruby
c107 has joined #ruby
endash has quit [Ping timeout: 260 seconds]
<bricker`work>
TeresaP: unix doesn't hide files that you don't have permission to view - it will very clearly and loudly tell you when you aren't allowed to see something
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
GPH|work has quit [Ping timeout: 272 seconds]
banister has quit [Client Quit]
weaksauce has joined #ruby
siwica has joined #ruby
nobitanobi has joined #ruby
rbrs has joined #ruby
iamjarvo has joined #ruby
<cajone>
anyone had any experience of centos, where reading via readlines a txt file chomping the input and loading into an array cause all the readlines to be concat'ed into a single string in the array, I olny mentioned centos as this is the target machine I'm trying to get the script to run on, the script works fine on another linux distro
endash has joined #ruby
<nobitanobi>
How do people comment on Github with several lines?
weaksauce has quit [Client Quit]
icebourg has quit []
qmfnp has joined #ruby
iamjarvo has quit [Read error: Connection reset by peer]
weaksauce has joined #ruby
iamjarvo has joined #ruby
coderdad has quit [Remote host closed the connection]
<regexhelp>
don't think it'd be distro specific
coderdad has joined #ruby
OffTheRails has joined #ruby
klmlfl has quit [Ping timeout: 244 seconds]
freerobby has quit [Quit: Leaving.]
weemsledeux has joined #ruby
jobewan has quit [Quit: Leaving]
coderdad has quit [Ping timeout: 244 seconds]
voodoofish430 has left #ruby [#ruby]
<bricker`work>
nobitanobi: huh?
_whitelogger has joined #ruby
_whitelogger_ has joined #ruby
_whitelogger has quit [Read error: Connection reset by peer]
timonv_ has joined #ruby
cfillion has left #ruby ["WeeChat 1.0.1"]
Ankhers has joined #ruby
ylluminarious has joined #ruby
siwica has quit [Remote host closed the connection]
timonv_ has quit [Ping timeout: 260 seconds]
siwica has joined #ruby
weemsledeux has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
kireevco has joined #ruby
RaCx has quit [Quit: Computer has gone to sleep.]
kireevco has quit [Max SendQ exceeded]
rbrs has quit [Remote host closed the connection]
kireevco has joined #ruby
spyderman4g63 has joined #ruby
Snowstormer has quit [Ping timeout: 272 seconds]
levisbak_ has joined #ruby
prasselpikachu has quit [Ping timeout: 255 seconds]
Kilo`byte has quit [Ping timeout: 272 seconds]
snath has quit [Ping timeout: 255 seconds]
spyderman4g63 has quit [Ping timeout: 255 seconds]
weemsledeux has joined #ruby
weemsledeux has quit [Changing host]
weemsledeux has joined #ruby
mistermocha has quit [Remote host closed the connection]
BadQuanta has quit [Ping timeout: 260 seconds]
thsig has joined #ruby
tokik has joined #ruby
ephemerian has quit [Read error: Connection reset by peer]
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jamgood96 has quit [Client Quit]
niftylettuce has quit [Quit: Connection closed for inactivity]
jlast has joined #ruby
<bricker`work>
useful for local "cdn"
siwica has quit [Ping timeout: 265 seconds]
JaMz has quit []
ringaroses2 has joined #ruby
<shevy>
cajone I don't think this can be the issue with centos - perhaps the ruby version you have is messed up. what is the ruby version anyway? and what is the exact ruby code you use?
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
AlSquire has quit [Quit: Quitte]
snath has joined #ruby
jlast has quit [Ping timeout: 265 seconds]
ptrrr has joined #ruby
ringaring has quit [Ping timeout: 255 seconds]
kireevco has quit [Quit: Leaving.]
ptrrr has quit [Client Quit]
<cajone>
shevy: yeah I agree I carved out the failing 5 lines and put them in a separate file and all works fine with a small test sample on the centos server, the problem lies else where, thanks for the input
siwica has joined #ruby
boaaa has quit [Ping timeout: 246 seconds]
<shevy>
\o/
mistermocha has quit [Remote host closed the connection]
<shevy>
one problem squished
<shevy>
thousands more to come!
kantakt has quit []
OffTheRails has joined #ruby
marr has quit [Ping timeout: 260 seconds]
<cajone>
shevy: challenges and opportunities shevy, not problems ;)
<eam>
cajone: what are the line separator characters?