<rubynista>
Like, if I have module M where I have some auto-generated singleton methods defined (M.define_singleton_method etc), is it possible to get access to those methods via N.extend(M)
<jblack>
lewix: It's the only way I know, but there's rarely only one way to do something in ruby
<lewix>
actually it's good enough jblack. i only used. something.class, I didn't know about name
<lewix>
jblack: thanks
<jblack>
you're welcome
nahiluhmot has quit [Remote host closed the connection]
hiroyuki has joined #ruby
kristofers has quit []
benwoody has joined #ruby
tjbiddle has quit [Ping timeout: 272 seconds]
tjbiddle_ is now known as tjbiddle
reppard has joined #ruby
tealmage has quit [Ping timeout: 240 seconds]
wesside has joined #ruby
Cultofmetatron has joined #ruby
statarb3 has quit [Ping timeout: 240 seconds]
jaredrhine_ has joined #ruby
jaredrhine has quit [Ping timeout: 245 seconds]
cgcardona has joined #ruby
sepp2k1 has quit [Read error: Connection reset by peer]
headius has quit [Quit: headius]
aryasam__ has joined #ruby
tealmage has joined #ruby
<r0bglees0n>
rubynista: include/extend operate on instances methods.
mercwithamouth has quit [Ping timeout: 264 seconds]
evangelosavgerin has joined #ruby
fryguy- is now known as fryguy
scipi0 has joined #ruby
girija has quit [Ping timeout: 246 seconds]
rubynista has quit [Ping timeout: 245 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
aryasam_ has quit [Ping timeout: 272 seconds]
Dreamer3 has joined #ruby
ebobby has quit [Quit: Lost terminal]
kofno has quit [Remote host closed the connection]
scipi0 has quit [Remote host closed the connection]
Drewch has joined #ruby
tjbiddle has joined #ruby
dmiller has quit [Remote host closed the connection]
yashshah_ has quit [Read error: Connection reset by peer]
yashshah_ has joined #ruby
freewizard has quit [Ping timeout: 240 seconds]
tundrax has quit [Remote host closed the connection]
wroathe has quit [Ping timeout: 260 seconds]
yashshah_ has quit [Read error: Connection reset by peer]
yashshah_ has joined #ruby
wroathe has joined #ruby
saarinen has left #ruby [#ruby]
saiju has joined #ruby
atyz has joined #ruby
saarinen has joined #ruby
ttt has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
saarinen has left #ruby [#ruby]
wroathe has quit [Ping timeout: 246 seconds]
epicurus has quit [Quit: Leaving]
pevjan has quit [Remote host closed the connection]
brennanMKE has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
mockra has joined #ruby
adamjleonard has quit [Quit: Leaving...]
atyz has quit [Ping timeout: 245 seconds]
Yakko has quit [Remote host closed the connection]
adamjleonard has joined #ruby
arubin has joined #ruby
pevjan has joined #ruby
Cultofme_ has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
Rym has quit [Remote host closed the connection]
mockra has quit [Ping timeout: 256 seconds]
robottinosino has joined #ruby
Cultofmetatron has quit [Ping timeout: 245 seconds]
codecop has joined #ruby
ttt has quit [Remote host closed the connection]
lunchtime has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
IceDragon has quit [Quit: Space~~~]
wroathe has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
jduan1981 has quit [Read error: Connection reset by peer]
bean__ has joined #ruby
robscomputer has joined #ruby
NiteRain has joined #ruby
lunchtime has quit [Ping timeout: 256 seconds]
jduan1981 has joined #ruby
tealmage has joined #ruby
tundrax has joined #ruby
dmiller has joined #ruby
robottinosino has quit [Ping timeout: 268 seconds]
atyz has joined #ruby
vlad_starkov has joined #ruby
tealmage has quit [Ping timeout: 240 seconds]
freeayu__ has joined #ruby
freeayu has quit [Ping timeout: 276 seconds]
mockra has joined #ruby
ab1 has quit [Ping timeout: 252 seconds]
macmartine has joined #ruby
girija has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
flagg0204 has quit [Read error: Connection reset by peer]
ab1 has joined #ruby
flagg0204 has joined #ruby
Tolman has quit [Quit: Tolman]
yashshah_ has quit [Read error: Connection reset by peer]
locriani has joined #ruby
yashshah- has joined #ruby
dmiller has quit [Ping timeout: 264 seconds]
bean has quit [Read error: Connection reset by peer]
bean__ is now known as bean
julian-delphiki has joined #ruby
grimfan has joined #ruby
maycon has quit [Ping timeout: 256 seconds]
<grimfan>
What can I name a class that takes an object and runs a command and thereafter updates the object depending on the result of the command. Is that a builder, factory, service or anything else?
ab1 has quit [Ping timeout: 248 seconds]
arya has joined #ruby
ab1 has joined #ruby
chipotle_ has quit [Quit: cya]
chandankumar has joined #ruby
arya_ has joined #ruby
hadees has joined #ruby
Kricir has joined #ruby
chandankumar has quit [Max SendQ exceeded]
chandankumar has joined #ruby
johnkary has joined #ruby
arya has quit [Ping timeout: 248 seconds]
ab1 has quit [Ping timeout: 256 seconds]
wesside has quit [Quit: Computer has gone to sleep.]
ab1 has joined #ruby
chandankumar has quit [Read error: Connection reset by peer]
yashshah- has quit [Read error: Connection reset by peer]
Kruppe has quit [Ping timeout: 260 seconds]
arya_ has quit [Ping timeout: 248 seconds]
wroathe has quit [Ping timeout: 256 seconds]
mahmoudimus has joined #ruby
robottinosino has joined #ruby
jduan1981 has quit [Quit: jduan1981]
s2013 has quit []
yashshah- has joined #ruby
maycon has joined #ruby
maycon has quit [Changing host]
maycon has joined #ruby
arya has joined #ruby
krz has quit [Quit: krz]
divout has joined #ruby
slippyd has quit [Quit: slippyd]
headius has joined #ruby
robottinosino has quit [Ping timeout: 255 seconds]
Umren has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
ab1 has quit [Ping timeout: 245 seconds]
chandankumar has joined #ruby
slippyd has joined #ruby
Kricir has quit [Remote host closed the connection]
mavcunha has quit [Quit: Computer has gone to sleep.]
headius has quit [Quit: headius]
tundrax has quit [Remote host closed the connection]
sayan has joined #ruby
bean has joined #ruby
cyong has quit [Quit: Leaving.]
locriani has quit [Read error: Connection reset by peer]
Ortuna has joined #ruby
rgbdev has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
ab1 has joined #ruby
nomenkun has joined #ruby
rgbdev has quit [Client Quit]
codecop has quit [Remote host closed the connection]
codecop has joined #ruby
sayan has quit [Read error: Connection reset by peer]
wting has quit [Remote host closed the connection]
nfk has joined #ruby
wting has joined #ruby
mneorr has joined #ruby
bitZero__ has joined #ruby
vlad_starkov has joined #ruby
Cultofme_ has quit [Remote host closed the connection]
DrCode_ has joined #ruby
johnkary has quit [Quit: @johnkary]
Domon has quit [Ping timeout: 248 seconds]
Elhu has joined #ruby
tealmage has quit [Ping timeout: 245 seconds]
ab3 has quit [Ping timeout: 245 seconds]
Domon has joined #ruby
statarb3 has quit [Quit: Leaving]
DrCode has quit [Ping timeout: 276 seconds]
DrCode_ is now known as DrCode
ghr has joined #ruby
mntzn has joined #ruby
monkegjinni has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
Retistic has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
<mntzn>
Hello, I have the following code: http://pastie.org/7756771, which needs to timeout after 1 second, I've set http.open_timeout and http.read_timeout to 1 and do http.request, however it still takes 5 secs for it to timeout
<mntzn>
How can I ensure that it will timeout exactly after 1 sec?
mahmoudimus has joined #ruby
tvw has joined #ruby
hiroyuki has joined #ruby
girija has quit [Remote host closed the connection]
brtdv has quit [Quit: brtdv]
nomenkun has joined #ruby
brtdv has joined #ruby
mklappstuhl has joined #ruby
Domon has quit [Remote host closed the connection]
pcarrier has joined #ruby
troessner has joined #ruby
browndawg has joined #ruby
wroathe has joined #ruby
pcarrier has quit [Client Quit]
westoque has joined #ruby
pcarrier has joined #ruby
dterei has quit [Quit: dterei]
mklappstuhl has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
jonathanwallace has joined #ruby
wroathe has quit [Ping timeout: 252 seconds]
AgentWillyWonka has joined #ruby
blaxter_ has joined #ruby
Domon has joined #ruby
generali_ has quit [Remote host closed the connection]
niceguyjames has joined #ruby
dkannan has quit [Quit: dkannan]
k610 has joined #ruby
jbpros has joined #ruby
jonathanwallace has quit [Ping timeout: 252 seconds]
freeayu3 has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
pystache_ has joined #ruby
jamie_ca_ has quit [Ping timeout: 246 seconds]
tealmage has joined #ruby
gyre007 has joined #ruby
statarb3 has joined #ruby
vlad_starkov has joined #ruby
jimg has quit [Ping timeout: 276 seconds]
<pystache_>
hi guys, I am going to write C++ extensions for Ruby, but I need C++11 features, the problem is that they are implemented since GCC 4.7, but DevKit for ruby 1.9.3 provides a g++ 4.5. Is there a DevKit with an updated g++, for ruby 1.9.3? :)
<pystache_>
that's what my boss asked me to use, along with ruby 1.9.3 (and not ruby 2.0). I was not restricted on a C++ standard, and used template aliases to make all my CRTP classes "look" the same way, so that I could "chain" them
vlad_starkov has quit [Ping timeout: 245 seconds]
persand has quit [Quit: persand]
Heero has quit [Ping timeout: 256 seconds]
sebastian08 has quit [Ping timeout: 276 seconds]
rakl has joined #ruby
unflores has quit [Ping timeout: 272 seconds]
mneorr has quit [Remote host closed the connection]
dhruvasagar has quit [Ping timeout: 245 seconds]
ioNull has joined #ruby
thillux has joined #ruby
Leighton has quit [Quit: Leaving]
dhruvasagar has joined #ruby
cha1tanya has quit [Excess Flood]
slainer68 has joined #ruby
cha1tanya has joined #ruby
kimteq has quit [Remote host closed the connection]
arya_ has joined #ruby
sleetdrop has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
rickmasta has joined #ruby
arya has quit [Ping timeout: 248 seconds]
sathish316 has joined #ruby
sleetdrop has joined #ruby
cantonic has quit [Quit: cantonic]
crodas has quit [Ping timeout: 264 seconds]
pmros has joined #ruby
arya_ has quit [Disconnected by services]
monkegji_ has joined #ruby
atyz has joined #ruby
chandankumar_ has quit [Quit: Leaving]
thebastl has quit [Remote host closed the connection]
crodas has joined #ruby
rakl has quit [Quit: sleeping]
camilasan has quit [Remote host closed the connection]
monkegjinni has quit [Ping timeout: 245 seconds]
nesoi has left #ruby ["I'm a happy Miranda IM user! Get it here: http://miranda-im.org"]
enriclluelles has quit [Read error: Connection reset by peer]
noxoc has joined #ruby
enriclluelles has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
rickmasta has quit [Quit: Leaving...]
ipalaus has quit [Ping timeout: 256 seconds]
atyz has quit [Read error: Connection reset by peer]
atyz has joined #ruby
hamakn has joined #ruby
h8R has joined #ruby
arya has joined #ruby
<Spooner>
pystache_, Those are the devkits we have available...
ipalaus has joined #ruby
mengu has joined #ruby
Norrin has quit [Ping timeout: 264 seconds]
freewizard has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
krz has quit [Quit: krz]
freewizard has joined #ruby
leonidlm has joined #ruby
<Spooner>
pystache_, I image you could build a dll yourself and access it via the extension, but it seems like a lot of extra work just to get c++11 features.
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
ksmth has quit [Ping timeout: 252 seconds]
slainer68 has quit [Remote host closed the connection]
pietr0 has quit [Ping timeout: 264 seconds]
Meeh_afk is now known as Meeh
cih has joined #ruby
reppard has joined #ruby
reppard has quit [Client Quit]
ksmth has joined #ruby
freewizard has quit [Ping timeout: 252 seconds]
yann_ck has quit [Quit: Computer has gone to sleep.]
marienz has quit [Ping timeout: 624 seconds]
vlad_starkov has joined #ruby
mntzn has quit [Quit: Lost terminal]
mercwithamouth has joined #ruby
ipalaus has quit [Remote host closed the connection]
marten__ has joined #ruby
mikewintermute has joined #ruby
mneorr_ has joined #ruby
alexdoom has quit [Ping timeout: 245 seconds]
marten__ is now known as marten
peta_ has joined #ruby
davedev24 has joined #ruby
mneorr_ has quit [Remote host closed the connection]
jnoob22 has joined #ruby
Domon has quit [Ping timeout: 245 seconds]
davedev24 has quit [Ping timeout: 256 seconds]
wallerdev has joined #ruby
arya has quit [Ping timeout: 248 seconds]
Virunga_ has joined #ruby
Norrin has joined #ruby
evangelosavgerin has joined #ruby
mixel has joined #ruby
alexdoom has joined #ruby
mikestok has joined #ruby
marienz has joined #ruby
Domon has joined #ruby
JoeTheGuest has quit [Quit: Connection closed for inactivity]
jbpros has quit [Quit: jbpros]
marr has quit [Ping timeout: 248 seconds]
Macaveli has joined #ruby
arya has joined #ruby
evangelosavgerin has quit [Ping timeout: 246 seconds]
divout has quit [Quit: Leaving.]
jbpros has joined #ruby
mikewintermute has quit [Quit: mikewintermute]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
marr has joined #ruby
bjeanes has joined #ruby
camilasan has joined #ruby
sleetdrop has quit [Ping timeout: 264 seconds]
ipalaus has joined #ruby
rhinux has quit [Quit: Konversation terminated!]
IrishGringo has joined #ruby
Domon has quit [Remote host closed the connection]
mneorr has joined #ruby
tealmage has joined #ruby
troessner has quit [Ping timeout: 276 seconds]
postmodern has quit [Quit: Leaving]
robottinosino has joined #ruby
CrazyDog is now known as Stendhal
Stendhal is now known as Bardamu
jovy88 has quit [Read error: Connection reset by peer]
Bardamu has quit [Changing host]
Bardamu has joined #ruby
PHPanos has joined #ruby
PHPanos has quit [Max SendQ exceeded]
PHPanos has joined #ruby
jovy88 has joined #ruby
browndawg has joined #ruby
cih has quit [Read error: Connection reset by peer]
tealmage has quit [Ping timeout: 252 seconds]
ExxKA has joined #ruby
teddyp1cker has joined #ruby
wallerdev has quit [Quit: wallerdev]
hamakn has quit [Remote host closed the connection]
<Rejanu>
does anyone have any idea how i can get smsc
mneorr has quit [Remote host closed the connection]
xpen has quit [Remote host closed the connection]
Rejanu has left #ruby [#ruby]
<bijumon>
hi, can someone suggest a good templating system for providing user themes in a webapp, i.e. i want to allow users to be able to create themes, but not execute arbitary code ala erb
<Spooner>
bijumon, Liquid is "safe" non-code templating.
statarb3 has quit [Quit: Leaving]
vlad_starkov has joined #ruby
mikewintermute has quit [Remote host closed the connection]
mikewintermute has joined #ruby
slainer68 has quit [Remote host closed the connection]
<Spooner>
bijumon, Mustache too.
nghialv2607 has quit [Remote host closed the connection]
<bijumon>
yea but it's also doing me head in m8 :( i ran into all sort of errors with liquid
jbpros has joined #ruby
kofno has joined #ruby
<pystache_>
Spooner: problem is I already developped my stuff in C++11 and wanted to adapt it for ruby. Do you know why there is no ruby 1.9.3 dev kit with g++ 4.7? Or if there is an update available somewhere in a deep secret place? :p
marr has joined #ruby
<bijumon>
Spooner: And I'm kinda stumped about implementing a 'theme' system on top of mustache :(
<Spooner>
pystache_, I doubt there are more. As I said, you could create the DLL yourself and use something like FFI to interface to it.
wallerdev has joined #ruby
catphish has left #ruby ["Leaving"]
<pystache_>
Spooner: ok, I gonna try it, thx :)
<Spooner>
bijumon, Jekyll uses Liquid by default, if that helps.
mengu has quit [Quit: This computer has gone to sleep]
sayan has quit [Read error: Connection reset by peer]
LaPetiteFromage has joined #ruby
chandankumar has quit [Quit: Leaving]
breakingthings has joined #ruby
Targen has joined #ruby
jonathanwallace has joined #ruby
radic has joined #ruby
<ariedler>
>_> anyone know of a simple blogging platform that supports ruby code block highlighting
marr has joined #ruby
nari_ has quit [Ping timeout: 268 seconds]
pitzips has joined #ruby
pitzips_ has joined #ruby
nezumi has quit [Ping timeout: 256 seconds]
pitzips has quit [Client Quit]
pitzips_ has quit [Client Quit]
io_syl has joined #ruby
freerobby has joined #ruby
jonathanwallace has quit [Ping timeout: 256 seconds]
joschi has quit [Ping timeout: 256 seconds]
dmiller has joined #ruby
benwoody has left #ruby [#ruby]
joofsh has joined #ruby
joschi has joined #ruby
Meeh is now known as Meeh_afk
<whowantstolivefo>
heya guys
BizarreCake has joined #ruby
<whowantstolivefo>
since my buddies suggest me to learn true way of programming , i have been work with ruby koans, im at >>> your path thus far [..........X_______________________________________] 61/281<<< it is so funny, amazing, and more helpful for learning fundamentals of ruby , thank you guys
mavcunha has joined #ruby
<linduxed>
whowantstolivefo: my only comment on that would be the following:
marr has quit [Ping timeout: 252 seconds]
akashj87 has joined #ruby
<linduxed>
whowantstolivefo: when i finished the koans, i understood more of the language and its intricacies, but i still coulnd't formulate thought into code
<linduxed>
whowantstolivefo: as soon as you're done start a small project, anything
<linduxed>
whowantstolivefo: code LOTS
marr has joined #ruby
joofsh has quit [Remote host closed the connection]
freewizard has joined #ruby
akells` has joined #ruby
vlad_starkov has joined #ruby
nahiluhmot has joined #ruby
skattyadz has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
alexdoom has quit [Changing host]
alexdoom has joined #ruby
nahiluhmot has quit [Read error: Connection reset by peer]
mavcunha has quit [Client Quit]
danslo has quit [Quit: danslo]
jbpros has quit [Quit: jbpros]
eddiezane has joined #ruby
<whowantstolivefo>
linduxed: you are right, i m learning and at the same i digg commands from ruby core , and at the same time i use commands at irb... i am being happy, cant wait to the day of i can be a rubyist :)
LaPetiteFromage_ has joined #ruby
LaPetiteFromage has quit [Ping timeout: 268 seconds]
LaPetiteFromage_ is now known as LaPetiteFromage
theRoUS has quit [Ping timeout: 255 seconds]
<linduxed>
whowantstolivefo: as long as you learn and start _creating_ you'll get there
Palantir has joined #ruby
<whowantstolivefo>
linduxed: i gave myself date... until end of summer i will learn basics and fundamentals of programming , and end of the summer, i will write a simple project and so go on .. that my education plan
danslo has joined #ruby
<linduxed>
whowantstolivefo: stick to it then
<linduxed>
whowantstolivefo: sounds good
eddiezane has left #ruby ["WeeChat 0.4.0"]
_nitti has quit [Remote host closed the connection]
rickruby has joined #ruby
freewizard has quit [Ping timeout: 245 seconds]
<linduxed>
whowantstolivefo: what sources do you have apart from rubykoans?
<whowantstolivefo>
linduxed: im sticking and digging everything :) my wife get smile at me because she think i cant be a programmer after 28-29 years old :)
wroathe has joined #ruby
robottinosino has joined #ruby
<linduxed>
that's nonsense
<ericwood>
everyone knows that programming abilities die off after you turn 40
<ericwood>
my retirement plan is to live fast and die young
<whowantstolivefo>
linduxed: nothing now , i was at codecademy and nothing :) last 2 week i gave my time to rubykoans, and i will finish it, after i will ask to my friends same as you, for what should i do next
anonymuse has joined #ruby
tvw has joined #ruby
<linduxed>
whowantstolivefo: the only important thing is that you diligently learn all this stuff
<ericwood>
build a simple web app in sinatra
<linduxed>
ericwood: i don't think he's there yet
<ericwood>
meh!
<whowantstolivefo>
linduxed: thanks for advice! brb
<ericwood>
the next step should be to start a company and disrupt some industry
pooriaazimi has quit [Quit: pooriaazimi]
swills has left #ruby [#ruby]
nahiluhmot has joined #ruby
failshell has joined #ruby
jcromartie has joined #ruby
osvico has joined #ruby
sailias1 has left #ruby ["PART #schemaverse :PART #funci :PART #bitmaker :PART #ruby-lang :PART #RubyOnRails :QUIT :Leaving."]
jtharris has joined #ruby
<jaybe>
hi. admitted newb here. so i'm wanting to learn about and play around with rails. totally new to it. can i do so in a local environment without installing/using something such as passenger and a web server like nginx? or is that a required part of framework regardless?
robottinosino has quit [Ping timeout: 252 seconds]
Macaveli has joined #ruby
<ericwood>
jaybe: yes
<ericwood>
rails comes with a tiny web server (webbrick) that runs locally
<ericwood>
I suggest going through the rails guides, they'll teach you everything you need to know getting started
k612 has quit [Read error: Connection reset by peer]
nahiluhmot has quit [Read error: Connection reset by peer]
<jaybe>
ericwood, indeed; have a guide(s) you would suggest?
<linduxed>
jaybe: what ericwood said. also, if you haven't done any rails before, this is a very nice guide: http://railsforzombies.org/
k612 has joined #ruby
yashshah- has joined #ruby
<jaybe>
ericwood, so for testing out/playing with an app… and the next step is 'deploy this app to whatever app server you prefer… i can do this with the local webrick to keep it simple and just check things out?
<ericwood>
jaybe: google "rails guides"
joofsh has joined #ruby
<ericwood>
jaybe: you can deploy to a service like heroku when you're ready to share your stuff with the world
<ericwood>
jaybe: but since you're just getting started don't worry about such things yet...
sailias has quit [Remote host closed the connection]
sailias has joined #ruby
<jaybe>
ericwood, i'm experienced with serving and technologies, some programming, etc. … just recently stepping into ruby/rails, etc. have VPS' at disposal, etc. however, for now, just playing around locally to learn stuff. will do re: reading the guides next. thanks
monkegji_ has quit [Ping timeout: 252 seconds]
teddyp1cker has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
yashshah- has quit [Read error: Connection reset by peer]
cantonic has quit [Ping timeout: 264 seconds]
<ericwood>
you can just do "rails server" and it'll spin up a webbrick instance to serve your app locally
justsee has quit [Ping timeout: 245 seconds]
nghialv2_ has joined #ruby
kuzushi has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
nghialv2607 has quit [Ping timeout: 245 seconds]
<jaybe>
heh now that's what i'm talking about.
tesuki_ has joined #ruby
clocKwize has quit [Quit: clocKwize]
<jaybe>
i will read/study/learn the guides though; promise. i just wanted a little taste. :)
<jaybe>
the app spun right up. lovely.
idkazuma has joined #ruby
<ericwood>
you're now set to conquer the internet
sailias has quit [Client Quit]
moos3 has quit [Quit: Computer has gone to sleep.]
sailias has joined #ruby
<jaybe>
good/bad/otherwise, i know myself. i have to sometimes entice myself in order to properly motivate myself to dig in and dedicate to the learning. whetting my whistle quickly and getting a taste helps sometimes.
nahiluhmot has joined #ruby
tesuki has quit [Ping timeout: 245 seconds]
moos3 has joined #ruby
radic has quit [Ping timeout: 264 seconds]
marr has quit [Ping timeout: 245 seconds]
ptulskie has joined #ruby
casheew has quit [Read error: Connection reset by peer]
nahiluhmot has quit [Read error: Connection reset by peer]
casheew has joined #ruby
sailias has quit [Client Quit]
Empty_One has joined #ruby
sailias has joined #ruby
Mattix has joined #ruby
pitzips has joined #ruby
sailias has quit [Client Quit]
nesoi has joined #ruby
sailias has joined #ruby
ravster has left #ruby [#ruby]
johnmilton has joined #ruby
<nesoi>
I'm reinstalling everything on a system that crashed, and I'm getting this error although I already installed the required gem:
<nesoi>
Please install the mysql adapter: `gem install activerecord-mysql-adapter` (cann
<nesoi>
ot load such file -- mysql/mysql_api) (LoadError)
<nesoi>
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:i
<nesoi>
n `require'
<nesoi>
sorry for the multiple lines!
chiel has joined #ruby
<nesoi>
any idea how to fix that?
<Todd>
gem install activerecord-mysql-adapter ?
<nesoi>
yes, I did that
<nesoi>
and it still gives the same error
lufi has quit [Excess Flood]
chrishough has joined #ruby
<Todd>
did you get errors?
<nesoi>
not on the gem install
danslo has quit [Quit: danslo]
Davey has joined #ruby
Palantir has quit [Ping timeout: 245 seconds]
teclator has quit [Ping timeout: 245 seconds]
lufi has joined #ruby
joofsh has quit [Remote host closed the connection]
shevy has quit [Ping timeout: 248 seconds]
Macaveli has quit [Read error: Connection reset by peer]
<nesoi>
seems to be installing an awfully early version though...
casheew has quit [Read error: Connection reset by peer]
<nesoi>
ah progress. I seem to have been missing a dll which had to be added separately somehow
<nesoi>
now it just can't connect :(
<nesoi>
which is odd because when I manually connect using the same info, it works
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
evenix has joined #ruby
<whowantstolivefo>
MrZYX: im keep digggin ruby koans and i am at here >>> your path thus far [............X_____________________________________] 68/281 :)
freeayu has quit [Remote host closed the connection]
evenix has quit [Remote host closed the connection]
freewizard has quit [Ping timeout: 245 seconds]
evenix has joined #ruby
v0n has joined #ruby
Mattix has joined #ruby
casheew has joined #ruby
<nesoi>
if I'm using yaml, activerecord, activesupport and pp, what gems do I need to install?
<nesoi>
sorry active_record and active_support/all
<MrZYX>
activerecord and activesupport
rton has joined #ruby
casheew has quit [Read error: Connection reset by peer]
baba has joined #ruby
adamjleonard has quit [Read error: Connection reset by peer]
<nesoi>
hm... at this point I don't know how to diagnose this... if I manually connect to the mysql database using the same info it has in the yml file, it works. but running the program (which used to work on the other machine) says it can't connect
megha has quit [Ping timeout: 252 seconds]
<MrZYX>
#rubyonrails might have more experience with troubleshooting activerecord
yshh has joined #ruby
JMcAfreak has joined #ruby
wedgex has joined #ruby
casheew has joined #ruby
leonidlm has quit [Ping timeout: 264 seconds]
theRoUS has quit [Ping timeout: 252 seconds]
manutter has joined #ruby
chrisramon has joined #ruby
binaryplease has joined #ruby
MrZYX is now known as MrZYX|off
balishag has joined #ruby
rgbdev has joined #ruby
apok has quit [Quit: apok]
MrZYX|off is now known as MrZYX
manutter has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
manutter has joined #ruby
LaPetiteFromage has quit [Ping timeout: 256 seconds]
cgcardona has joined #ruby
marr has quit [Ping timeout: 264 seconds]
LaPetiteFromage has joined #ruby
GeissT has quit [Quit: MillBroChat AdIRC User]
emptymag00 has joined #ruby
marr has joined #ruby
dr_bob has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has joined #ruby
pietr0 has joined #ruby
persand has quit [Quit: persand]
pduin has quit [Remote host closed the connection]
Proshot has joined #ruby
<nesoi>
if I want to run migrations, do I need to install some gems first? rake db:migrate is saying it doesn't know how to build db:migrate
bean has joined #ruby
timonv has quit [Remote host closed the connection]
Kricir has joined #ruby
netcarver has joined #ruby
atyz has joined #ruby
stkowski has joined #ruby
Vert has joined #ruby
jonathanwallace has joined #ruby
Meeh_afk is now known as Meeh
zifeitong has joined #ruby
freerobby has joined #ruby
rgbdev has quit [Quit: rgbdev]
Mon_Ouie has quit [Ping timeout: 264 seconds]
freewizard has joined #ruby
rhannequin has joined #ruby
zifeitong has quit [Remote host closed the connection]
zifeitong has joined #ruby
zifeitong has quit [Max SendQ exceeded]
_bart has joined #ruby
juarlex has joined #ruby
zifeitong has joined #ruby
zifeitong has quit [Max SendQ exceeded]
<rhannequin>
Hello. I'm trying to install Rails in my ubuntu. When I do "gem install rails", it is trying to install gems for ruby version 1.9.1. But I installed ruby 1.9.3 with rvm, why does rails try to get ruby 1.9.1?
sambao21 has quit [Quit: Computer has gone to sleep.]
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
zifeitong has joined #ruby
zifeitong has quit [Max SendQ exceeded]
<Sou|cutter>
rhannequin: are you -using- 1.9.3 ?
<Sou|cutter>
rhannequin: ruby -v
<Sou|cutter>
rvm info
zifeitong has joined #ruby
zifeitong has quit [Max SendQ exceeded]
<_bart>
Hej da
apod has joined #ruby
zifeitong has joined #ruby
<rhannequin>
Sou|cutter: ruby -v ==> 1.9.3p194
zifeitong has quit [Max SendQ exceeded]
unflores has quit [Quit: unflores]
rakl has joined #ruby
skroon has quit [Ping timeout: 245 seconds]
<rhannequin>
Sou|cutter: but... rvm list gives me 1.9.3p392... wtf
<_bart>
I think I found a bug in Addressable URI parser, it's parsing "http://www.google.com -" wrong
sleetdrop has quit [Quit: Computer has gone to sleep.]
freewizard has quit [Ping timeout: 245 seconds]
freerobby has quit [Ping timeout: 256 seconds]
<Sou|cutter>
rhannequin: try rvm reload maybe?
jonathanwallace has quit [Ping timeout: 252 seconds]
<MrZYX>
rhannequin: Sou|cutter the 1.9.1 in the paths is the ABI version not the interpreter one
pandawarrior has joined #ruby
rismoney has joined #ruby
<pandawarrior>
hi all, i'm wondering if there's a way to check to see is a class responds to a particular method type. but only that class, i'm not interested if it has a methods via inheritence..
carlyle has joined #ruby
D4T has joined #ruby
<pandawarrior>
i tried (ClassName.methods.sort - Object.methods.sort).respond_to? :send
<rhannequin>
Sou|cutter: what I don't understand is why do I have two versions of ruby? 1.9.3p194 with "ruby -v" and 1.9.3p392 with "rvm list"
<pandawarrior>
i though it would return false, but it didn't
sleetdrop has joined #ruby
<pandawarrior>
any suggestions?
tesuki has quit [Remote host closed the connection]
wolcanus has quit [Remote host closed the connection]
kemist has quit [Remote host closed the connection]
netcarver has quit [Quit: Leaving]
alex__c2022 has quit [Read error: Operation timed out]
alex__c2022_ is now known as alex__c2022
<pandawarrior>
thank you
<pandawarrior>
MrZYX: cheers
kemist has joined #ruby
<MrZYX>
pandawarrior: for class methods Class.respond_to? :foo, false
sailias has quit [Ping timeout: 245 seconds]
DarthGandalf has joined #ruby
manutter has left #ruby ["Once you know what it is you want to be true, instinct is a very useful device for enabling you to know that it is"]
<pandawarrior>
MrZYX: that comes back as true because the class inherits from Object
znake has joined #ruby
<rhannequin>
Sou|cutter: I don't know why but it seems ruby has also been installed with apt-get. I removed it and now I have the right version with both "rvm list" and "ruby -v".
Mon_Ouie has quit [Ping timeout: 256 seconds]
mockra has quit [Remote host closed the connection]
<MrZYX>
oh, the second parameter there is private vs public, nvm
camilasan has quit [Remote host closed the connection]
toddWork has quit [Quit: toddWork]
nomenkun has quit [Ping timeout: 245 seconds]
<pandawarrior>
MrZYX: sorry, i don't follow what you mean...
LaPetiteFromage has quit [Ping timeout: 255 seconds]
LaPetiteFromage_ is now known as LaPetiteFromage
aapzak has left #ruby [#ruby]
<pandawarrior>
still comes back at true…
tylersmith has joined #ruby
<MrZYX>
yes, I said nvm
<pandawarrior>
nvm?
evangelosavgerin has joined #ruby
<MrZYX>
nevermind
sathish316 has quit [Quit: Leaving.]
timkohrumel has joined #ruby
toddWork_ has joined #ruby
DrCode has quit [Ping timeout: 276 seconds]
rickruby has quit [Remote host closed the connection]
<MrZYX>
pandawarrior: btw, so you're checking if a method was overwritten?
Seus has joined #ruby
binaryplease has quit [Quit: WeeChat 0.4.0]
rakl has quit [Quit: sleeping]
binaryplease has joined #ruby
blaxter has quit [Ping timeout: 264 seconds]
<pandawarrior>
MrZYX: not, i've not checked for that
DrCode has joined #ruby
<pandawarrior>
but on the class, is only one method
<pandawarrior>
send_shipment_ready
<pandawarrior>
so it's unlikely that it's being overidden
tspike has joined #ruby
<MrZYX>
so, why do you need to exclude the inherited methods before checking if the class responds to it?
<jcromartie>
I'm trying to set up Ruby 1.9, gems, etc., on an Amazon EC2 machine.
<pandawarrior>
well,
<jcromartie>
I have Ruby installed and "working" but there are problems with various things, like running gem install fails on rdoc with "cannot load such file -- rdoc/rdoc"
<pandawarrior>
it's a sinatra app and i want to redirect the user to an error route if the class doesn't respond to a method
codezombie has joined #ruby
<pandawarrior>
and i'm testing if this happens when the user types in 'sen' rather than 'send_shipment_ready'
<jcromartie>
also no header files for native extensions… :( what a freaking mess
woolite64 has joined #ruby
<pandawarrior>
but it's not redirecting because the class does respond to send, due to ruby Object
<MrZYX>
class methods are instance methods on these objects
<pandawarrior>
okay
bitri has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hiroyuki has quit [Read error: Connection reset by peer]
<pandawarrior>
going to try that
marr123 has joined #ruby
marr has quit [Ping timeout: 268 seconds]
marr123 has quit [Remote host closed the connection]
Seus has quit []
mikepack has joined #ruby
bradleyprice has joined #ruby
jamie_ca_ has joined #ruby
tylersmith has quit [Remote host closed the connection]
jduan1981 has joined #ruby
rakl has joined #ruby
<pandawarrior>
MrZYX: cheers
<MrZYX>
and that's why you always should describe your problem, not the solution you think you need ;)
tjbiddle has joined #ruby
<pandawarrior>
totally, i always do that, and then spend like 30 minutes hashing stuff out with people, it's a skill i've yet to master
<pandawarrior>
:S
wolcanus has quit [Ping timeout: 252 seconds]
<MrZYX>
practice is the only way :)
<pandawarrior>
truth
banjara1 has quit [Quit: Leaving.]
mklappstuhl has quit [Remote host closed the connection]
jbpros has quit [Ping timeout: 252 seconds]
sander^work has quit [Read error: Connection reset by peer]
sander^work has joined #ruby
Flexa has quit [Ping timeout: 245 seconds]
rickruby has joined #ruby
balishag has quit [Ping timeout: 256 seconds]
jonathanwallace has joined #ruby
rakl has quit [Quit: sleeping]
akells` has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
sayan has joined #ruby
mixel has joined #ruby
mockra has joined #ruby
dmiller has quit [Remote host closed the connection]
bean has quit [Quit: Computer has gone to sleep.]
dr_bob has left #ruby [#ruby]
skattyadz has quit [Quit: skattyadz]
jbpros has joined #ruby
BizarreCake has quit [Remote host closed the connection]
noxoc has quit [Quit: noxoc]
tjbiddle has quit [Quit: tjbiddle]
filipe_ has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
Zolo has joined #ruby
manutter has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
_bart has quit [Ping timeout: 252 seconds]
rickruby has quit [Ping timeout: 245 seconds]
troessner has quit [Quit: Leaving]
18VAA2V5Q has joined #ruby
tomzx_mac has joined #ruby
<manutter>
If you worked in a PHP shop using Cake PHP and Symfony2, and you wanted to convince them to switch to Ruby, would you focus on v1.9.x or go straight to 2.0?
<C0deMaver1ck>
I'd go straight for 2.0
bean has joined #ruby
chrisramon has quit [Quit: chrisramon]
bean has quit [Max SendQ exceeded]
brennanMKE has quit [Remote host closed the connection]
<manutter>
I'm thinking in terms of available tutorials, reference materials, libraries etc
bean has joined #ruby
bean has quit [Max SendQ exceeded]
<C0deMaver1ck>
manutter: it's pretty much completely compatible
<C0deMaver1ck>
it's not like the Python 2.x to Python 3.x change
bean has joined #ruby
<manutter>
Good to hear :)
<MrZYX>
yeah, 1.8 to 1.9 was our 2.x to 3.x
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
<C0deMaver1ck>
and eventually 1.9 will become the new 1.8 so best to start new projects in 2.0
<manutter>
I just did the Ruby lessons on lynda.com, which was 1.8/1.9, wasn't sure how well that translated to 2.0
banjara has joined #ruby
<C0deMaver1ck>
should be exactly the same
<manutter>
awesome
<MrZYX>
2.0 is said to run all 1.9 code without issues
hiroyuki has joined #ruby
<peta_>
I have a deeply nested module ModA::ModB::ModC::ModD, everytime I want to call a helper function in ModD I have to write ModA::ModB::ModC::ModD.dance() -- can I abbreviate this somehow so that I only have to write ModD.dance() ?
<MrZYX>
(though there are some small corner cases, but you won't quickly find them when starting with the language)
nwertman has joined #ruby
<manutter>
sounds good, now I just have to get everyone else interested :/
<MrZYX>
peta_: from inside or outside?
ravster has joined #ruby
zeade has joined #ruby
enricllu_ has quit [Remote host closed the connection]
<peta_>
e.g. from the module ModA::ModFoo
saiju has quit [Read error: Connection reset by peer]
rakl has joined #ruby
<MrZYX>
then you can skip ModA already
<MrZYX>
iirc
<peta_>
someone suggested me "include ModA::ModB::ModC" but this doesn't import contained modules
timmow has quit [Ping timeout: 252 seconds]
bean has quit [Client Quit]
<MrZYX>
do you call it from all over the place in ModFoo or just in one method?
<MrZYX>
you could define a method in ModA that returns it, like ModA.some_helper.some_method
<MrZYX>
if that makes any sense in ModAs domain
rgbdev has joined #ruby
skroon has joined #ruby
<peta_>
okay okay … so Ruby doesn't offer kind of "import xyz as foo" ootb
<MrZYX>
(it probably does if it's an lib/app container)
<MrZYX>
no
<MrZYX>
since ruby doesn't offer any kind if import
_nitti has quit [Read error: No route to host]
bean has joined #ruby
bean has quit [Max SendQ exceeded]
<MrZYX>
require just evaluates the file in the main context, no special namespace/scoping magic done beyond that
<peta_>
it's not named import … but the principle is the same …
_nitti has joined #ruby
<MrZYX>
no it's not
bean has joined #ruby
bean has quit [Max SendQ exceeded]
AgentWillyWonka has quit [Quit: Leaving...]
Dreamer3 has joined #ruby
bean has joined #ruby
bean has quit [Max SendQ exceeded]
bean has joined #ruby
akashj87 has quit [Quit: Leaving]
_maes_ has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
Kruppe has joined #ruby
ptulskie has quit [Quit: ptulskie]
tvw has quit [Ping timeout: 256 seconds]
<peta_>
include A::B::C looks up a class/module and includes it into the local scope. It's almost the same principle as import xyz as known from python or java
wedgex has quit [Remote host closed the connection]
chrishough has quit [Quit: chrishough]
Davey has quit [Quit: Computer has gone to sleep.]
<peta_>
just that this is accomplished using a function named "include"
<MrZYX>
not really, import assigns a given module to a local identifier
skroon has quit [Ping timeout: 256 seconds]
wedgex has joined #ruby
<MrZYX>
include is a form of inheritance
Davey has joined #ruby
jbueza has quit [Quit: Leaving.]
<peta_>
and include "links" e.g. functions, constants and classes from a module into the local scole by using local identifiers with the same name as the object being linked
<MrZYX>
no, they are copied
<peta_>
they are copied? (= duplicated)
<MrZYX>
yup
<MrZYX>
even saying module_function in a module creates a copy
brtdv has joined #ruby
rgbdev has quit [Read error: Connection reset by peer]
ghr has quit [Quit: Computer has gone to sleep.]
centipedefarmer has quit [Remote host closed the connection]
18VAA2V5Q has quit [Remote host closed the connection]
<MrZYX>
anyway, after thinking a while about it I still think doing def ModA.bla_helper; ModB::ModC::ModD; end is the best shortcut
timkohrumel has joined #ruby
chrishough has joined #ruby
pystache_ has quit [Ping timeout: 252 seconds]
saiju has quit [Ping timeout: 255 seconds]
MrPoT4tO has joined #ruby
akells` has joined #ruby
jbpros has quit [Quit: jbpros]
headius has joined #ruby
spike|spiegel has quit [Quit: WeeChat 0.4.0]
lufi has quit [Excess Flood]
lufi has joined #ruby
nghialv2_ has quit [Remote host closed the connection]
pandawarrior has quit [Quit: Leaving.]
akells` has quit [Ping timeout: 245 seconds]
<peta_>
MrZYX: I cant find kind of official proof for your statement … do you have a link or so at your hand?
<MrZYX>
hm, no, I'm sorry
<peta_>
I can't believe this
LaPetiteFromage has quit [Quit: LaPetiteFromage]
mockra has quit [Remote host closed the connection]
<peta_>
however, let's get back to work
mockra has joined #ruby
jbueza has joined #ruby
wroathe has quit [Ping timeout: 264 seconds]
pi3r has quit [Quit: Leaving]
stoic_squirrel has joined #ruby
twoism has joined #ruby
tylersmith has joined #ruby
mavcunha has joined #ruby
<evenix>
Devise::LdapAdapter.update_password how do I pass a block through this request to asssign @auth dynamically when the method only take 2 methods "login and password"
tjbiddle has joined #ruby
tjbiddle has quit [Remote host closed the connection]
cgcardona has quit [Quit: cgcardona]
mavcunha has left #ruby [#ruby]
brtdv has quit [Ping timeout: 252 seconds]
tjbiddle has joined #ruby
mafolz has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
tealmage has joined #ruby
thomasle_ has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
ab3 has joined #ruby
ndboost has quit [Remote host closed the connection]
peta_ has quit [Remote host closed the connection]
nateberkopec has joined #ruby
evangelosavgerin has quit [Ping timeout: 264 seconds]
peta_ has joined #ruby
Neomex has joined #ruby
Neomex has quit [Client Quit]
Nautes has joined #ruby
brianpWins has joined #ruby
sathish316 has joined #ruby
tealmage has quit [Ping timeout: 245 seconds]
BeLucid_ has quit [Remote host closed the connection]
wroathe has joined #ruby
wolcanus_ has joined #ruby
wedgex has quit [Remote host closed the connection]
CalebMingle has joined #ruby
ab3 has quit [Ping timeout: 264 seconds]
nghialv2607 has joined #ruby
flagg0204 has quit [Quit: leaving]
wedgex has joined #ruby
nghialv2607 has quit [Remote host closed the connection]
carlyle_ has joined #ruby
niklasb has joined #ruby
Mon_Ouie has joined #ruby
Mon_Ouie has joined #ruby
CalebMingle has quit [Ping timeout: 248 seconds]
vertroa has quit [Quit: WeeChat 0.3.9.2]
bigkevmcd has quit [Quit: Ex-Chat]
carlyle has quit [Ping timeout: 245 seconds]
ab3 has joined #ruby
atyz has quit [Quit: Leaving...]
Zolo has quit [Remote host closed the connection]
c0rn has joined #ruby
rdark has quit [Quit: leaving]
freerobby has quit [Quit: Leaving.]
c0rn has quit [Client Quit]
sathish316 has quit [Quit: Leaving.]
jfelchner has joined #ruby
jamescarr has quit [Quit: jamescarr]
jfelchner has quit [Client Quit]
<shevy>
hmm
<shevy>
I have a listing like this:
<shevy>
Highest: ( 65) ppl-1.0 13.205 MB
<shevy>
Highest: ( 66) graphviz-2.28.0 13.1 MB
<shevy>
how could I align the last to become:
<shevy>
Highest: ( 66) graphviz-2.28.0 13.100 MB
<shevy>
instead?
<shevy>
like, to fill in the display by padding with several 0
<Hanmac>
sprintf or %
jfelchner has joined #ruby
rgbdev has joined #ruby
mrsolo has joined #ruby
c0rn has joined #ruby
flagg0204 has joined #ruby
elaptics is now known as elaptics`away
<shevy>
hmm
slainer68 has joined #ruby
BinaryMaster has quit [Quit: Leaving]
<shevy>
x = 13.1
<shevy>
'%-8s' % x # => "13.1 "
yshh has quit [Remote host closed the connection]
tealmage has joined #ruby
<shevy>
ok now let's try to remember how to fill in with 0s
<MrZYX>
%.3f
<shevy>
cool
<shevy>
how can you remember that MrZYX?
<shevy>
thanks by the way
<MrZYX>
the format is the same everywhere
<MrZYX>
once you memorized the scheme once it's easy
<MrZYX>
like regex
dustint has quit [Quit: Leaving]
dustint has joined #ruby
<shevy>
aha
bitri has joined #ruby
<shevy>
ok so let's try to get my brain to remember
<shevy>
f ... for float, I suppose
<MrZYX>
yup
<shevy>
but what is the .3 ?
<shevy>
hmm
<MrZYX>
the 3 is the length
<MrZYX>
. to separate the flags for after the dot
<shevy>
aha
<MrZYX>
%[flags][width][.precision]type
<MrZYX>
so type is easy
bradleyp_ has joined #ruby
<MrZYX>
float, string, digit
bitri has quit [Client Quit]
<MrZYX>
heX
<MrZYX>
binary
<MrZYX>
in C there's also pointer
<MrZYX>
width and precision have to start with 1-9, so 0 is a flag (fill with leading zeros)
<MrZYX>
that's about what you need daily, everything else I just look up
aaronmcadam has quit [Ping timeout: 248 seconds]
<MrZYX>
hm actually precision can be zero
<MrZYX>
but you'd just use digit instead
alvaro_o has joined #ruby
jbueza has quit [Read error: Connection reset by peer]
<shevy>
this all came from C first?
<shevy>
as in, C came up with this format?
jbueza has joined #ruby
jbueza has quit [Max SendQ exceeded]
<shevy>
(or rather the guys who designed C)
bradleyprice has quit [Ping timeout: 256 seconds]
<MrZYX>
hmm I think it's a libc function so we can't be 100% sure
jbueza has joined #ruby
freerobby has joined #ruby
<MrZYX>
yup, it's sprintf(3)
nahiluhmot has quit [Remote host closed the connection]
wroathe has quit [Ping timeout: 256 seconds]
xardas has joined #ruby
<MrZYX>
but it's there like ever in C afaik, so might very well be the origin
xardas has quit [Changing host]
xardas has joined #ruby
chrishough has quit [Quit: chrishough]
progbyperm has joined #ruby
brotatos has joined #ruby
<MrZYX>
but virtually every language supports it, some specifics in each but the general format works.
<MrZYX>
just like with regex
choffstein has joined #ruby
<shevy>
hmm
Mattix has quit [Ping timeout: 252 seconds]
<shevy>
perl invented regex?
_nitti has quit [Read error: No route to host]
noxoc has joined #ruby
_nitti has joined #ruby
failshell has quit [Remote host closed the connection]
<shevy>
it seems as if Ken Thompson popularized regex first
<shevy>
through ed
<shevy>
"Ken Thompson built Kleene's notation into the editor QED as a means to match patterns in text files. He later added this capability to the Unix editor ed, which eventually led to the popular search tool grep's use of regular expressions"
werdnativ has joined #ruby
<shevy>
it's funny to think about the history of evolution of these basic tools
Lemtzas has joined #ruby
<shevy>
nowadays, a scripting language without regexes would rather suck
yshh has joined #ruby
jbw has joined #ruby
yashshah_ has joined #ruby
yashshah has quit [Ping timeout: 252 seconds]
<MrZYX>
class String; def special_capitalize; self[0] = self[0].upcase; end;
<MrZYX>
quickest way I can come up with
oneirophren has joined #ruby
<Hanmac>
shevy: why is the ghi in your sample not capitalized?
<shevy>
Hanmac only the first character should be changed, the rest not
Elhu has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
<shevy>
.capitalize lowercases everything else :(
rakl has quit [Quit: sleeping]
bean has quit [Quit: Computer has gone to sleep.]
wolcanus_ has quit [Remote host closed the connection]
teddyp1cker has quit [Remote host closed the connection]
atyz has joined #ruby
xraixed has joined #ruby
ossareh has joined #ruby
zastern_ has joined #ruby
jbpros has joined #ruby
<shevy>
hmmm
jbpros has quit [Read error: Connection reset by peer]
_nitti has quit [Remote host closed the connection]
jtharris has quit [Quit: WeeChat 0.4.0]
<shevy>
your code scares me Hanmac
<Hanmac>
:P
<xraixed>
tryinh to install ruby on my ubuntu 12.04 but get message, "Gem::InstallError: factory_girl requires Ruby version >= 1.9.2." i have already installed ruby 1.9.2
zastern has quit [Ping timeout: 260 seconds]
<MrZYX>
that would change "aBc" to "Abc" though
apod has quit [Quit: apod]
<MrZYX>
not sure what you want
<MrZYX>
Hanmac's version, mine would change it to "ABc"
<MrZYX>
both will fail if you have leading space btw
freewizard has joined #ruby
<MrZYX>
(or have no effect)
bricker_ is now known as bricker
<MrZYX>
if you remove the \A in Hanmac's version that case would be handled too
evangelosavgerin has joined #ruby
<Hanmac>
MrZYX: then sub could be better than gsub
<MrZYX>
right, just realized that
wroathe has quit [Ping timeout: 276 seconds]
jdunck has joined #ruby
hadees_ has joined #ruby
whowantstolivef1 has joined #ruby
_nitti has joined #ruby
hadees has quit [Ping timeout: 245 seconds]
hadees_ is now known as hadees
jpinnix has joined #ruby
yashshah_ has quit [Ping timeout: 264 seconds]
<xraixed>
i want to resolve this error issue "Gem::InstallError: factory_girl requires Ruby version >= 1.9.2. although i do have ruby version already running
evangelosavgerin has quit [Ping timeout: 245 seconds]
<xraixed>
any way around this
sleetdrop has quit [Quit: Computer has gone to sleep.]
<fryguy>
xraixed: how is ruby installed
<Hanmac>
xraixed: maybe gem does not point to the currect ruby version
Lemtzas has quit [Read error: Connection reset by peer]
<xraixed>
factory_girl gem error says it needs ruby 1.9.2
znake is now known as znake|away
Astralum has joined #ruby
tonini has quit [Ping timeout: 248 seconds]
<Hanmac>
xraixed: what does "gem env" says to you?
<Hanmac>
as you can see it points to the wrong ruby version
<MrZYX>
I'm not going to repeat myself...
Cultofmetatron has joined #ruby
<Hanmac>
xraixed: HOW did you install ruby1.9 ? did you do it via package or something like rvm or did you compile it yourself?
<xraixed>
via rvm
<Hanmac>
xraixed: use "update-alternatives --config ruby" and "update-alternatives --config gem"
<Hanmac>
xraixed: okay than ask #rvm
<MrZYX>
guess he just failed to rvm use 1.9.3
Dreamer3 has quit [Quit: Computer has gone to sleep.]
<graft>
anyone have a nice way to pare a hash down to a subset of its keys?
<canton7>
graft, giving an example will probably help
<Hanmac>
graft: so you have an array of keys and you want the values of them in the hash?
<injekt>
graft: values_at
jtharris has joined #ruby
splittingred has quit [Ping timeout: 256 seconds]
choffstein has quit [Remote host closed the connection]
<injekt>
or slice in that case
k610 has joined #ruby
Beoran__ has quit [Quit: Leaving]
jonathanwallace has joined #ruby
zastern_ has quit [Remote host closed the connection]
zastern has joined #ruby
Kricir has quit [Remote host closed the connection]
<graft>
like, say i have { :how => :now, :brown => :cow, :monkey => :poop }, and i wanted to slice this down to { :how => :now, :brown => :cow } based on [ :how, :brown ]
wolcanus has joined #ruby
<injekt>
graft: you'll need to do it manually
<injekt>
graft: active-support adds a slice method to Hash for the same thing
ravster has left #ruby [#ruby]
xraixed has left #ruby ["Leaving"]
thisirs has joined #ruby
Z_Mass has joined #ruby
Morkel has quit [Read error: Operation timed out]
<graft>
well i can do : h.select{|k,v| a.include? k}, which seems expensive... or a.map{|k| { k => h[k] }}.reduce :merge, is not bad i guess
tvw has joined #ruby
Morkel has joined #ruby
pkrnj has joined #ruby
<injekt>
graft: yeah either way you need a new hash so I wouldn't worry
<angel>
Hello everyone, is there a way using Github API v3 and net/http or net/https (ruby) to create an Anonymous gist (public or private)?
<graft>
MrZYX: doesn't reject return a hash already?
<MrZYX>
no
<graft>
MrZYX: but also, keys.include? seems more expensive than mapping, since i have to search the keys array for every key, instead of just iterating over it once
gnrlbzik has joined #ruby
<graft>
on the other hand it avoids the reduce
<MrZYX>
all Enumerable methods return an array
<graft>
reject is defined on Hash
bitri has joined #ruby
<graft>
let's just test this, shall we...
kfr2 has joined #ruby
<gnrlbzik>
any one know how to define simple wildcard mapping in rack's config.ru? like map "/*" do
<Spooner>
graft, Set is just a wrapper around a Hash, so it is really running Hash#key?, but that is fine.
predator217 has quit [Ping timeout: 256 seconds]
<peta_>
MrZYX: ich will kein rosinenpicker sein, aber deine behauptung vorhin stimmt schlichtweg nicht.
Kricir has quit [Remote host closed the connection]
<MrZYX>
/msg ;)
yshh has joined #ruby
<Zelest>
i only know two german words :/
<Zelest>
ich and komme..
Z_Mass has quit [Ping timeout: 252 seconds]
Mattix has joined #ruby
<peta_>
MrZYX: I asked in the ruby interpreter dev channel and had a look on the responsible C function s…. when module are included, the contained constants, methods and classes are ALWAYS copied by reference
jamescarr has quit [Remote host closed the connection]
kirun has quit [Read error: Operation timed out]
vlad_starkov has quit [Remote host closed the connection]
<Spooner>
benlieb, #rubyonrails channel
predator117 has joined #ruby
jlast has joined #ruby
ARCADIVS has quit [Quit: WeeChat 0.3.8]
vainohelvete has quit [Ping timeout: 264 seconds]
vlad_starkov has joined #ruby
DementedInsanity has joined #ruby
DementedInsanity has quit [Changing host]
DementedInsanity has joined #ruby
<benlieb>
Spooner: I'm pretty sure it's not a rails-specific issue. But I'll ask there too.
jimg has quit [Ping timeout: 256 seconds]
<benlieb>
Spooner: I know the omniauth folks think of their gem as more than a rails tool. I've only used it this once, and in rails...
vlad_starkov has quit [Remote host closed the connection]
yshh has quit [Ping timeout: 252 seconds]
jtharris has quit [Read error: Connection reset by peer]
wgosling has quit [Quit: Konversation terminated!]
wgosling has joined #ruby
<Spooner>
benlieb, The Rails people are considerably more likely to have used omniauth than non-rails people.
axxT has quit [Read error: Connection reset by peer]
nomenkun has quit [Remote host closed the connection]
atyz has quit [Quit: Leaving...]
<RubyPanther>
1/(1.0/0) > 0
<RubyPanther>
=> false
echevemaster has quit [Remote host closed the connection]
dmiller has quit [Remote host closed the connection]
wedgex has quit [Remote host closed the connection]
chandankumar has quit [Ping timeout: 256 seconds]
wroathe has quit [Ping timeout: 256 seconds]
lempface has joined #ruby
doug has joined #ruby
spider-mario has joined #ruby
wedgex has joined #ruby
dangerousdave has joined #ruby
<doug>
what's the Standard Way to link to ruby core source? (like, for me, something out of pathname/lib/pathname.rb)
<doug>
link like for a blog
atmosx has joined #ruby
<lempface>
I'm trying to create an xpath query that can select the value of a element from a parent element (which there are multiple of) but I only want the last element returned.
<MrZYX>
doug: I guess github.com/ruby/ruby won't go away anytime soon
<withnale>
is there a short way of doing map {|x| x[:text] } as well?
robottinosino has quit [Read error: Connection reset by peer]
<Spooner>
No.
<MrZYX>
only if you overwrite Symbol#to_proc :P
<withnale>
the benefits of using structures rather than lists of hashes of lists of hashes ;0
_nitti has joined #ruby
kennyvb has quit [Ping timeout: 256 seconds]
<Spooner>
lempface, Nokogiri.parse(xml).xpath("//PAGE").map {|x| x.xpath(".//FILE").map(&:text).map(&:to_i).max } #=> [584, 585, 875] (If you don't trust the leading 0s).
Kricir has joined #ruby
justsee has joined #ruby
justsee has quit [Changing host]
justsee has joined #ruby
nhhagen has joined #ruby
doug has left #ruby [#ruby]
kennyvb has joined #ruby
wroathe has joined #ruby
Jackneill has quit [Ping timeout: 245 seconds]
yum_devil has left #ruby [#ruby]
freewizard has quit [Ping timeout: 264 seconds]
icecandy has joined #ruby
robottin1 has joined #ruby
akells` has joined #ruby
nhhagen has quit [Remote host closed the connection]
mark_locklear has quit [Quit: Leaving]
workmad3 has joined #ruby
nhhagen has joined #ruby
Todd has quit [Remote host closed the connection]
wolcanus has joined #ruby
Z_Mass has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
wmoxam has quit [Quit: Lost terminal]
mixel has quit [Quit: mixel]
robottin1 has quit [Ping timeout: 248 seconds]
kennyvb has quit [Ping timeout: 252 seconds]
<Spooner>
withnale, Not sure if it would work, but you could create two logger instances and forward use of warn/error to the stderr one and others to the stdout one.
<shevy>
I just noticed something strange
AndChat| has quit [Ping timeout: 246 seconds]
<shevy>
cat blabla
<shevy>
cat: blabla: No such file or directory
<shevy>
stat blabla
<shevy>
stat: cannot stat `blabla': No such file or directory
<shevy>
the ": No such file or directory" part seems to be the generic error message when a file or directory can not be found
<shevy>
but why is there no '.' at the end?
<shevy>
as in:
<shevy>
": No such file or directory."
Kricir has quit [Remote host closed the connection]
Kricir has joined #ruby
jbpros has quit [Ping timeout: 252 seconds]
<Spooner>
You worry about some inconsequential things!
<shevy>
reason why I actually ask is because of my ruby-shell
freerobby has quit [Quit: Leaving.]
<shevy>
I try to be a good man and follow existing standards
<shevy>
they must have hated proper sentences :(
brtdv has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
khismetix has joined #ruby
vertroa has joined #ruby
rh1n0 has joined #ruby
casheew has quit [Read error: Connection reset by peer]
casheew has quit [Read error: Connection reset by peer]
lkba has quit [Ping timeout: 276 seconds]
casheew has joined #ruby
akells` has quit [Ping timeout: 245 seconds]
graeme has joined #ruby
jonathanwallace has joined #ruby
three18ti has joined #ruby
ariedler has joined #ruby
DaemonAU has quit [Remote host closed the connection]
billybob000 has joined #ruby
khismetix has quit [Quit: Computer has gone to sleep.]
afd___ has quit [Read error: Connection reset by peer]
afd__ has joined #ruby
casheew has quit [Read error: Connection reset by peer]
jeevan_ullas has quit [Ping timeout: 264 seconds]
jeevan_ullas has joined #ruby
<billybob000>
is there a built in method in the array class that will count the number of matches in my array? ie '[1, 2, 2, 3].something' to give me the number of 2's in that array?
casheew has joined #ruby
backjlack has quit [Ping timeout: 264 seconds]
akells` has joined #ruby
backjlack has joined #ruby
<MrZYX>
billybob000: yes, it's called count
<billybob000>
other than iterating and counting it through the array
<RubyPanther>
pcasaretto: most of that stuff is system dependent, it probably just uses the strptime from your C lib
<billybob000>
MrZYX: aptly named. thanks!
<RubyPanther>
almost anything in Ruby named the same as a standard C function just converts the data and passes it off
ab3 has joined #ruby
forlin has quit [Remote host closed the connection]
banjara has quit [Quit: Leaving.]
nickbender has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby
akells` has quit [Remote host closed the connection]
b0oh has joined #ruby
bradleyp_ has quit [Remote host closed the connection]
<havenwood>
gadgetoid: Great way to get linux command line available in linux.
<gtype>
yes, probably better than my damn linux mint rofl
<havenwood>
gtype: You can do a Mint Vagrant box.
<jeebster>
how does MRI parse symbols? why won't this syntax be parsed? :data-some-attribute
<gtype>
but the problem is actually the polling
<jeebster>
it must be :"data-some-attribute"
<havenwood>
jeebster: No dashes, but underscores okay.
<gtype>
the linux machine is watching files on the network
<gtype>
so there is no notify for some reason
<jeebster>
havenwood: ah ok, thanks for the heads up
<gtype>
and polling just completely kills guard
<waxjar>
it sees :data-some as :data - name
<gtype>
well not completely, i can still dev in my machine but cpu is always above 60
<waxjar>
*some
<DouweM>
jeebster if you're setting html attrs, I think you could also use data: { some_attribute: .. }
<MrZYX>
gtype: just switch to linux, makes (devs) life so much easier ;P
<DouweM>
jeebster for view helpers anyway
swex_ has joined #ruby
tvw has quit []
<gtype>
yes, if MS wasn't a piece of shit and had just developed .net to be fully cross platform
<DouweM>
(jeebster excuse my assumption you're talking webdev and Rails here)
<gtype>
or if i wasnt so dependent on it..
swex has quit [Ping timeout: 245 seconds]
<MrZYX>
mono works probably better than ruby on windows xD
<jeebster>
DouweM: ha, it is where I'm using the application, however it is a ruby q
tootubular has quit [Quit: tootubular]
<jeebster>
waxjar: symbols can be named? the interpreter is looking for a name delimited by a hyphen?
<DouweM>
jeebster I thought for a sec this was #RubyOnRails ;-)
skattyadz has joined #ruby
<gtype>
MrZYX made investment in learning WPF, and use it heavily, so no mono
awarner has joined #ruby
tealmage has quit [Ping timeout: 260 seconds]
<gtype>
i have thought on changing to QT, but the time..
b0oh has quit [Ping timeout: 276 seconds]
lewix has quit [Remote host closed the connection]
colonolGron has quit [Quit: Lost terminal]
jovy88 has quit [Read error: Connection reset by peer]
<nhhagen>
gtype: I guess you are stuck then, a gui less light weight linux VM is your best option, run your ruby app there
jovy88 has joined #ruby
<waxjar>
jeebster, it calls the #- method on the symbol, with the part behind the hyphen as the argument.
picca has quit [Remote host closed the connection]
bricker_ is now known as bricker
<shevy>
wheeee get all symbols for free today! limited offer! p Symbol.all_symbols
<jeebster>
oh interesting, I didn't know there was a #- method
<bricker>
How do you specify flags (g, i, etc) in regular expressions when using the %r syntax?
<waxjar>
there isn't for Symbols :P
<shevy>
lies
<shevy>
:foo.send(:-) NoMethodError: undefined method `-' for :foo:Symbol
<shevy>
the cake is a lie man
* MrZYX
hands shevy a def Symbol.-(other); "wat"; end
<gtype>
nhhagen: yeah, just wondering if there was some way to get it to play well on windows
<nhhagen>
gtype: I gave up on that my self
<shevy>
gtype, if it is only a misbehaving gem
<shevy>
write a better one :D
<MrZYX>
or fix it
<MrZYX>
open source and all that nonsense, ya know
ebobby has quit [Quit: Lost terminal]
mneorr has quit [Remote host closed the connection]
<nhhagen>
gtype: using vagrant you get shared directories so you can still use any editor you want and save a lot of CPU by not reddening any GUI for the quest OS
d2dchat has quit [Remote host closed the connection]
<nhhagen>
gtype: or do MrZYX says :)
<nhhagen>
do as
<gtype>
unfortunately i'm noob on ruby, and don't want to invest the time at the time
vlad_starkov has quit [Remote host closed the connection]
<gtype>
i know, selfish
xbhya has joined #ruby
<gtype>
but real life is a b*tch
<MrZYX>
that's the problem with your windows guys, complaining that we don't use windows and test our stuff there ;P
<MrZYX>
*you
cloke_ has joined #ruby
<nhhagen>
lol
nahiluhmot has quit [Remote host closed the connection]
<Quadlex>
MrZYX: The converse is often true for web apps
<Quadlex>
"Yeah, all our devs use Chrome on Mac so we don't bother testing IE"
<Quadlex>
Which is fine... As long as your market are all devs, also
cloke has quit [Ping timeout: 256 seconds]
cloke_ is now known as cloke
khismetix has joined #ruby
<MrZYX>
I'm not talking about business work, I'm talking about open source stuff
<Quadlex>
Ah. Carry on.
<gtype>
MrZYX: true, and i'm not complaining
<MrZYX>
when getting paid you should do what your target market/clients need/want. No discussion
<shevy>
anyone knows of a simple english converter... from "2" to become "two", from "33" to become "thirtythree" ?
<MrZYX>
but when it comes to open source being a selfish asshole dev is okay, I think it's the core motivation
<gtype>
nhhagen, im using shared folders in vbox, and still need polling. is vagrant different?
pitzips has quit [Quit: Leaving]
<shevy>
gtype hmm but when you cant write ruby code by yourself, you always will depend on others :\
<nhhagen>
gtype: it runs virtuabox in the back, so probably not, vagrant just made getting everything working a lot easier
lolzilla has quit [Quit: leaving]
<gtype>
nhhagen: thought so, thanks anyway
<nhhagen>
gtype: I assume you are running of a local disk?
<nhhagen>
off
<gtype>
shevy: yes, but i am getting into web design, and it pays well, and i just need guard to compile and liverealod the browser
arya_ has joined #ruby
lolzilla has joined #ruby
<gtype>
when i get some time i will learn ruby
<gtype>
and i will fix the damn thing
<Vivekananda>
did someone here gimme a good youtube link for Data structures in java ?
<gtype>
nhhagen yes, c: actually, bvox shared folder is pointed to c:\webdesign
invisime has quit [Quit: Leaving.]
arya has quit [Ping timeout: 252 seconds]
<xbhya>
if i'm running a ruby script from nodejs and I'm trying to pass it a potentially large chunk of html, such that my n00b brain is telling me passing it as an argument isn't the way, how would i go about it?
jdunck has quit [Quit: Computer has gone to sleep.]
<gtype>
it is mounted in /media/sfwebdesign i think
<gtype>
but no notify
<DouweM>
xbhya env var?
<MrZYX>
xbhya: it'll probably fit but just pipe it over stdin
<DouweM>
^ is better
<MrZYX>
isn't vbox using CIFS for the shared folder? at least when it comes to guest view
<xbhya>
thanks, i'll look into that
nesoi has joined #ruby
<gtype>
just a slight rant, there should be some place stating that ruby on windows sucks
<nhhagen>
gtype: sorry, then I'm out of ideas
<MrZYX>
xbhya: then on the ruby side look into ARGF to easily read it
<nesoi>
I'm trying to connect to a MySQL database and it's failing. What can I do to get the specific reason it's failing?
kirun has quit [Quit: Client exiting]
<gtype>
by the end of the week i was cursing every thing ruby related so badly
<nesoi>
is there some logging I can enable or something ?
c0rn has quit [Quit: Computer has gone to sleep.]
<gtype>
than when everything went more than smooth in five minutes in linux
<gtype>
i could barely believe it
punkrawkR has quit [Read error: Connection reset by peer]
<nhhagen>
gtype: there is well it states that some gems might not work, or that you need a special windows version of it
toddWork_ has quit [Quit: toddWork_]
arya_ has quit [Ping timeout: 248 seconds]
<nhhagen>
gtype: can't remember where I read it
<gtype>
i must have missed it then lol
jtharris has joined #ruby
<gtype>
MrZYX: dunno, it is over samba i think
ramblex has quit [Read error: Connection reset by peer]
<gtype>
the same as networking from a windows machine i would guess
<nhhagen>
yep
<MrZYX>
CIFS is the protocol behind windows share/samba
<nesoi>
so, there's no way to get any detailed error log when ruby can't connect to mysql?
<gtype>
oh
Vivekananda has quit [Quit: Ex-Chat]
<gtype>
then it provavly is
<nesoi>
or even a detailed message?
<gtype>
is there any way to mount it any differently?
Proshot has joined #ruby
<MrZYX>
so I doubt that protocol supports any kind of notifications
<gtype>
is there any windows driver/service that i could use to share from windows in a more unix or better way?
<gtype>
so disable shared folders
echevemaster has joined #ruby
echevemaster has quit [Changing host]
echevemaster has joined #ruby
<gtype>
install some unix like sharing driver on windows
<nhhagen>
check if there is a port of nfs
bean has quit [Quit: Computer has gone to sleep.]
<gtype>
and mount a network with notification
<nesoi>
all I get is "can't connect to MySQL server on 'localhost'". There's no way of getting a more detailed message? I want to know if it can't find the server or the password isn't working or what
<MrZYX>
hm, not sure, if you could host NFS shares on windows it'll probably be a bit faster, but I don't think it has notifications either
<MrZYX>
as this are network protocols, spamming the network with every file change is pretty ridiculous
jonathanwallace1 has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
<gtype>
good point
<gtype>
(although polling is even more ridiculous lol)
khismetix has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
Banistergalaxy has joined #ruby
<MrZYX>
one way that could work is rsync'ing your workspace into the VM in the morning, share it from the VM to the host and rsync it back in the evening
arya has joined #ruby
jonathanwallace has quit [Ping timeout: 258 seconds]
<gtype>
yeah, but something feels wrong about having the projects in the vm lol
<MrZYX>
or check the whole thing into git
lewix has joined #ruby
<MrZYX>
git works well on windows from what I've heard :D
<MrZYX>
once you turned of autocrlf of course :P
ab3 has quit [Ping timeout: 245 seconds]
kristofers has quit []
megha has joined #ruby
<nhhagen>
turning autocrlf off?
<nhhagen>
I keep it on, nice endings in origin
ab3 has joined #ruby
mikepack has quit [Remote host closed the connection]
sepp2k1 has joined #ruby
<nhhagen>
If I have not gotten the whole thing wrong
baba has quit [Ping timeout: 260 seconds]
hadees has quit [Quit: hadees]
<MrZYX>
hm, whatever it was that it makes to not change all lineendings to CRLF on commit
<MrZYX>
I thought it was autocrlf
<nhhagen>
I think if it is set to true, crlf is turned into lf on commit
_br_ has joined #ruby
sepp2k has quit [Ping timeout: 245 seconds]
mneorr has quit [Remote host closed the connection]
pietr0 has quit [Ping timeout: 246 seconds]
<gtype>
well been googlin, didnt find anything
<gtype>
ill stick with my stressed cpu until the end of this project
<gtype>
anyway thanks a lot for the patience guys
<_br_>
anyone here working with ruby/sinatra/warden/rack::flash? I've got warden up and running and flash messages work also, but doing flash messages inside e.g. strategies doesn't work... any hints ? ideas?
<MrZYX>
right, all I remember is that the default on windows was annoying ;P
<nhhagen>
same, what is up with keeping CR around
benlieb has quit [Quit: benlieb]
mengu has quit [Quit: Leaving]
krainboltgreene has joined #ruby
thomasle_ has quit [Remote host closed the connection]
hadees has joined #ruby
<nesoi>
so I'm trying to use this gem which used to work, and somehow instead of returning a status to me it's raising an error and crashing my program. How can I get it to either behave as it did before, or figure out which error I need to rescue?
jdunck has joined #ruby
<nesoi>
before, it would return an error status without raising an error
<nesoi>
so I could just handle it as a case
tenmilestereo has quit [Quit: Leaving]
Voodoofish430 has quit [Quit: Leaving.]
<MrZYX>
the class is in the message
arya has quit [Ping timeout: 248 seconds]
vlad_starkov has quit [Ping timeout: 258 seconds]
<nesoi>
MrZYX : thanks. I see that, but how do I rescue it?
<MrZYX>
rescue NameOfClass => e; handle_error; end
linguini has joined #ruby
<MrZYX>
begin; code; before that of course
<MrZYX>
with the => e being optional
Davey has quit [Quit: Computer has gone to sleep.]