apeiros_ changed the topic of #ruby to: Ruby 2.0.0-p0: http://ruby-lang.org (Ruby 1.9.3-p392) || Paste >3 lines of text on http://gist.github.com
nkts is now known as marius
ephemerian has left #ruby [#ruby]
mattbl has joined #ruby
predator117 has quit [Ping timeout: 264 seconds]
angusiguess has quit [Ping timeout: 246 seconds]
slainer68 has quit [Remote host closed the connection]
tvw has quit []
nezumi has quit [Ping timeout: 256 seconds]
TheMoonMaster has quit [Quit: Later!]
ckwalsh has quit [Quit: Leaving]
<shevy> sounds like crap software
<shevy> :>
TheMoonMaster has joined #ruby
<thecodethinker> rvm?
<thecodethinker> i mean yeah it's clunky but it does it's job... usually
timmow has joined #ruby
kofno has quit [Remote host closed the connection]
btaitelb has quit [Quit: btaitelb]
schickung has joined #ruby
chessguy has quit [Remote host closed the connection]
hormigas has joined #ruby
kofno has joined #ruby
<thecodethinker> is rails really all that ruby has going for it?
subbyyy has joined #ruby
<thecodethinker> I mean it's great and everything but... is thtat it?
cantonic has quit [Quit: cantonic]
hekin has joined #ruby
rickruby has joined #ruby
<otters> i wouldn't trivialize rails
banisterfiend is now known as banister`sleep
subbyyy has quit [Client Quit]
timmow has quit [Ping timeout: 252 seconds]
Ontolog_ has joined #ruby
subbyyy has joined #ruby
<banister`sleep> otters: trivialize rails.
<otters> I won't!
banister_ has joined #ruby
banister`sleep has quit [Read error: Connection reset by peer]
julian-delphiki has joined #ruby
pitzips has joined #ruby
Markvilla has joined #ruby
Ontolog has quit [Ping timeout: 256 seconds]
tomsthumb has quit [Quit: Leaving.]
Xeago has joined #ruby
bean has quit [Ping timeout: 260 seconds]
<momomomomo> ugly article
<momomomomo> don't go to that one, sorry
<momomomomo> But, I've seen some use it as a language for sysadmin
miso1337 has joined #ruby
<Spooner> Ruby is a perfectly good general purpose language, like many others. Just because Rails is the most popular thing, doesn't mean it is the only one.
Xeago has quit [Ping timeout: 276 seconds]
lewix has joined #ruby
_veer has quit [Quit: Leaving]
<momomomomo> exactly, I prefer it to python
<lewix> momomomomo: what?
<s2013> my friend is a sys admin at a huge govt organization. they use ruby
<momomomomo> for doing general things lewix
guns has quit [Remote host closed the connection]
<momomomomo> ie: not rails
<s2013> also i think alfresco uses ruby
<lewix> I see
<Markvilla> anyone knows of a good open source faq/wiki/kb system in ruby?
<momomomomo> Though, python has a lot of really good data mining packages…
pitzips has quit [Ping timeout: 240 seconds]
<s2013> isnt python generall used for data mining
<s2013> how does ruby interact with browser sessions/
<momomomomo> It's used for much more than just data mining s2013
<s2013> python?
sepp2k has quit [Remote host closed the connection]
<s2013> i know its used for a lot more things.. i guess i misworded it. i meant isnt most data mining generally done via python. i know quite a few people in the scientific/data community and they all use python
gaahrdner has joined #ruby
<s2013> and R of course
zeade has quit [Quit: Leaving.]
ttt has joined #ruby
tealmage has joined #ruby
freerobby has quit [Ping timeout: 264 seconds]
tealmage has quit [Remote host closed the connection]
<jeebster> if I've got a simple app that needs a cms and dish information out via api, will sinatra be feasible for this or should I stick with rails?
gaahrdner has quit [Ping timeout: 264 seconds]
<s2013> sinatra is good for light weight
d11wtq has joined #ruby
<jeebster> I feel like a cms and api are light weight, maybe I'm wrong?
<s2013> depends
benlieb has quit [Quit: benlieb]
C0deMaver1ck has quit [Ping timeout: 245 seconds]
<jeebster> I'm not sure how this project will scale
<s2013> but if you know rails just stick to it
<jeebster> basically I want to setup a back-end to service a mobile app
yshh has quit [Remote host closed the connection]
<jeebster> I do, but I'd like to learn something new
<banister_> s2013: no most dataming is done via R
<banister_> s2013: at least among the people i know. R is def. the tool of choice, way, way above python
freerobby has joined #ruby
slainer68 has joined #ruby
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest16317
freerobby has quit [Client Quit]
<lewix> python R and SAS are used very often
Spooner has quit [Ping timeout: 276 seconds]
<lewix> it's not about what's a better tool, it's about what's good for the job
lukeholder has joined #ruby
<s2013> isnt R and something else usually used with each other?
<banister_> s2013: Ruby and R are a good combo
idkazuma has quit [Remote host closed the connection]
<banister_> preparing data with R --> output CSV and then using R to process it
angusiguess has joined #ruby
jenrzzz has joined #ruby
<s2013> yeah. you mean preparing with Ruby right?
<banister_> yes
<s2013> yup
schickung has quit [Quit: schickung]
pitzips has joined #ruby
tealmage has joined #ruby
tealmage has quit [Remote host closed the connection]
mikeg has quit [Quit: Leaving]
lukeholder has quit [Ping timeout: 245 seconds]
yxhuvud has quit [Ping timeout: 276 seconds]
nezumi has joined #ruby
yxhuvud has joined #ruby
slainer68 has quit [Ping timeout: 258 seconds]
awarner has joined #ruby
statarb3 has quit [Ping timeout: 276 seconds]
sixEch0_ has joined #ruby
pkill has quit [Ping timeout: 245 seconds]
sambio has joined #ruby
brianpWins has quit [Quit: brianpWins]
chrishough has quit [Quit: chrishough]
awarner has quit [Ping timeout: 264 seconds]
subbyyy has quit [Quit: none 0.3.9.2]
subbyyy has joined #ruby
tealmage has joined #ruby
benlieb has joined #ruby
indyrl has joined #ruby
jenrzzz has quit [Ping timeout: 260 seconds]
tobyo has joined #ruby
wreckimnaked has quit [Quit: WeeChat 0.3.8]
hashmal has quit [Quit: Computer has gone to sleep.]
osvico has quit [Ping timeout: 252 seconds]
benlieb has quit [Quit: benlieb]
yshh has joined #ruby
piotr__ has quit [Ping timeout: 258 seconds]
yxhuvud2 has joined #ruby
yxhuvud has quit [Ping timeout: 258 seconds]
akashj87__ has joined #ruby
moos3_ has quit [Quit: Computer has gone to sleep.]
SCommette has joined #ruby
aytch has quit [Ping timeout: 264 seconds]
akashj87 has quit [Ping timeout: 245 seconds]
sayan has quit [Ping timeout: 246 seconds]
sixEch0_ has quit [Quit: sixEch0_]
Hanmac2 has joined #ruby
brianherman has joined #ruby
lewix has quit [Remote host closed the connection]
Hanmac1 has quit [Ping timeout: 252 seconds]
tjbiddle has joined #ruby
Ontolog_ is now known as Ontolog
mfridh has quit [Read error: Connection reset by peer]
jarred has quit [Quit: Leaving.]
jarred has joined #ruby
jarred has quit [Client Quit]
ariedler has quit [Remote host closed the connection]
timmow has joined #ruby
stkowski has quit [Quit: stkowski]
moos3 has joined #ruby
kenneth has quit [Ping timeout: 256 seconds]
kenneth has joined #ruby
SCommette has quit [Quit: SCommette]
timmow has quit [Ping timeout: 252 seconds]
brianpWins has joined #ruby
nari has quit [Ping timeout: 276 seconds]
c0rn has quit [Quit: Computer has gone to sleep.]
Nahra has quit [Remote host closed the connection]
cheez0r has quit [Read error: Connection reset by peer]
Nahra has joined #ruby
kenneth has quit [Ping timeout: 264 seconds]
security has joined #ruby
tomsthumb has joined #ruby
megha has quit [Ping timeout: 264 seconds]
FenrirReturns has joined #ruby
wallerdev has joined #ruby
cheez0r has joined #ruby
cheez0r is now known as Guest8277
r0bby_ has joined #ruby
philcrissman has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
thecodethinker has quit [Quit: Lost terminal]
mrsolo has quit [Quit: Leaving]
mockra_ has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
rakl has quit [Quit: sleeping]
_maes_ has joined #ruby
r0bby_ is now known as robbyoconnor
icco has joined #ruby
athst has joined #ruby
franks2 has quit [Ping timeout: 260 seconds]
kofno has quit [Remote host closed the connection]
osvico has joined #ruby
peta_ has quit [Quit: peta_]
niceguy1234 has quit [Ping timeout: 276 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
thams has joined #ruby
stoo_ has joined #ruby
vlad_starkov has joined #ruby
jarred has joined #ruby
kofno has joined #ruby
cloke has quit [Quit: cloke]
franks2 has joined #ruby
vlad_starkov has quit [Ping timeout: 258 seconds]
jarred has left #ruby [#ruby]
Voodoofish430 has quit [Quit: Leaving.]
sambao21 has joined #ruby
icco has quit [Ping timeout: 252 seconds]
pac1 has joined #ruby
hamakn has joined #ruby
io_syl has quit [Ping timeout: 245 seconds]
reytt has joined #ruby
lukeholder has joined #ruby
icco has joined #ruby
iamjarvo has joined #ruby
robbyoconnor has quit [Ping timeout: 245 seconds]
io_syl has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
Davey has joined #ruby
pskosinski has quit [Quit: pskosinski]
fschuindt has joined #ruby
drumond19 has quit [Remote host closed the connection]
Ontolog has quit [Remote host closed the connection]
Nimsical has quit [Quit: Computer has gone to sleep.]
bricker`LA has joined #ruby
brianpWins has joined #ruby
athst has quit [Quit: athst]
jbueza has quit [Quit: Leaving.]
banjara has quit [Quit: Leaving.]
FenrirReturns has quit [Ping timeout: 252 seconds]
ehaliewicz has quit [Remote host closed the connection]
rickruby has quit [Remote host closed the connection]
ZachBeta has joined #ruby
jnoob22 has quit [Remote host closed the connection]
NiteRain has joined #ruby
icco has quit [Read error: Operation timed out]
hadees has joined #ruby
jeebster has quit [Quit: Leaving.]
icco has joined #ruby
_maes_ has joined #ruby
akashj87__ has quit [Quit: Leaving]
pkill has joined #ruby
chipotle has quit [Quit: cya]
iamjarvo1 has joined #ruby
franks2 has quit [Ping timeout: 264 seconds]
soulofpeace has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
momomomomo has quit [Quit: momomomomo]
sleetdrop has joined #ruby
iamjarvo has quit [Ping timeout: 252 seconds]
nari has joined #ruby
Mattix has quit [Read error: Connection reset by peer]
Mattix has joined #ruby
TomJ has quit [Quit: TomJ]
kf8a has joined #ruby
franks2 has joined #ruby
BadQuanta has joined #ruby
havenwood has joined #ruby
Xeago has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
icco has quit [Ping timeout: 252 seconds]
brum has joined #ruby
icco has joined #ruby
pac1 has quit [Ping timeout: 264 seconds]
jamesfung14 has quit [Ping timeout: 258 seconds]
timmow has joined #ruby
Xeago has quit [Ping timeout: 258 seconds]
generali_ has joined #ruby
bradhe has quit [Remote host closed the connection]
etcetera has joined #ruby
zeade has joined #ruby
hekin has quit [Quit: Textual IRC Client: www.textualapp.com]
tealmage has quit [Remote host closed the connection]
tjbiddle has quit [Ping timeout: 258 seconds]
hadees has quit [Quit: hadees]
sambao21 has quit [Quit: Computer has gone to sleep.]
timmow has quit [Ping timeout: 252 seconds]
zeade has quit [Ping timeout: 248 seconds]
philcrissman has joined #ruby
LongLiveBacon has quit []
nari has quit [Quit: Ex-Chat]
rickruby has joined #ruby
shevy has quit [Ping timeout: 252 seconds]
radic has joined #ruby
wallerdev has quit [Quit: wallerdev]
brianpWins has quit [Quit: brianpWins]
havenwood has quit [Remote host closed the connection]
zeade has joined #ruby
radic_ has quit [Ping timeout: 252 seconds]
yfeldblum has joined #ruby
tealmage has joined #ruby
zeade has quit [Client Quit]
pitzips has quit [Ping timeout: 245 seconds]
nari has joined #ruby
angusiguess has joined #ruby
AlSquire has quit [Read error: No route to host]
AlSquire has joined #ruby
kf8a has quit [Quit: Computer has gone to sleep.]
bhaarat has quit [Quit: bhaarat]
icco has quit [Read error: Operation timed out]
j0hnnY has joined #ruby
<j0hnnY> o/
vlad_starkov has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
icco has joined #ruby
Ontolog has joined #ruby
wsterling has joined #ruby
shevy has joined #ruby
io_syl has quit [Read error: Operation timed out]
failshell has joined #ruby
marius has quit [Quit: -]
failshell has quit [Remote host closed the connection]
pkrnj has quit [Quit: Textual IRC Client: www.textualapp.com]
vlad_starkov has quit [Ping timeout: 264 seconds]
hormigas has quit [Ping timeout: 256 seconds]
tommyvyo has quit [Quit:]
sambio is now known as sambio
hormigas has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
mando has joined #ruby
chandankumar has joined #ruby
xcv has quit [Remote host closed the connection]
undersc0re97 has quit [Quit: Leaving]
undersc0re97 has joined #ruby
icco has quit [Read error: Operation timed out]
icco has joined #ruby
pitzips has joined #ruby
fschuindt has quit [Quit: Computer has gone to sleep.]
ffranz has quit [Quit: Leaving]
Rym has quit [Quit: Rym]
choobie has joined #ruby
etcetera has quit []
kofno has quit [Remote host closed the connection]
bricker`LA has quit [Quit: leaving]
bricker`LA has joined #ruby
tylersmith has joined #ruby
snuglepuss has quit [Remote host closed the connection]
alexdoom has joined #ruby
tjbiddle has joined #ruby
kofno_ has joined #ruby
tomsthumb has quit [Quit: Leaving.]
icco has quit [Ping timeout: 252 seconds]
seich- has quit [Ping timeout: 264 seconds]
icco has joined #ruby
brianherman has quit [Read error: Connection reset by peer]
Ontolog has quit [Remote host closed the connection]
mockra has joined #ruby
Ontolog has joined #ruby
tobyo has quit [Ping timeout: 240 seconds]
nga4 has joined #ruby
rakl has joined #ruby
seich- has joined #ruby
tobyo has joined #ruby
havenwood has joined #ruby
etcetera has joined #ruby
randomautomator has joined #ruby
wesside has joined #ruby
bricker`LA has quit [Quit: leaving]
bricker`LA has joined #ruby
rupee has quit [Quit: Leaving]
randomautomator has quit [Read error: Connection reset by peer]
pasties has quit [Ping timeout: 240 seconds]
timmow has joined #ruby
pitzips has quit [Ping timeout: 245 seconds]
randomautomator has joined #ruby
bricker`LA has quit [Client Quit]
tommyvyo has joined #ruby
bricker`LA has joined #ruby
kofno_ has quit [Remote host closed the connection]
Davey has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
pasties has joined #ruby
ukd1 has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
bricker`LA has quit [Client Quit]
chimkan has joined #ruby
bricker`LA has joined #ruby
benlieb has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
icco has joined #ruby
ioNull has joined #ruby
randomautomator has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
brum has quit [Remote host closed the connection]
slainer68 has joined #ruby
randomautomator has joined #ruby
bradhe has joined #ruby
sw2wolf has joined #ruby
jdunck has quit [Read error: Operation timed out]
randomau_ has joined #ruby
slainer68 has quit [Ping timeout: 258 seconds]
ehellman has quit []
d11wtq_ios has joined #ruby
SCommette has joined #ruby
randomau_ has quit [Read error: Connection reset by peer]
wargasm has quit [Ping timeout: 246 seconds]
randomautomator has quit [Ping timeout: 260 seconds]
osvico has quit [Ping timeout: 260 seconds]
randomautomator has joined #ruby
brianpWins has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
icco has quit [Read error: Operation timed out]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
angusiguess has joined #ruby
icco has joined #ruby
dmiller has quit [Ping timeout: 258 seconds]
randomautomator has joined #ruby
pitzips has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
etcetera has quit [Ping timeout: 260 seconds]
bradhe has quit [Remote host closed the connection]
randomautomator has joined #ruby
jthomp has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
Fuzai has quit [Ping timeout: 248 seconds]
angusiguess has quit [Ping timeout: 252 seconds]
tbrock_ has joined #ruby
brianpWins has quit [Ping timeout: 252 seconds]
randomautomator has joined #ruby
hormigas has quit [Quit: Lost terminal]
etcetera has joined #ruby
SCommette has quit [Quit: SCommette]
randomautomator has quit [Read error: Connection reset by peer]
rakl has quit [Quit: sleeping]
randomautomator has joined #ruby
momomomomo has joined #ruby
jbueza has joined #ruby
aemeredith has joined #ruby
kofno has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
nalaginrut has quit [Remote host closed the connection]
io_syl has joined #ruby
aemeredith has quit [Remote host closed the connection]
dmiller has joined #ruby
icco has quit [Ping timeout: 252 seconds]
randomautomator has joined #ruby
randomautomator has quit [Read error: Connection reset by peer]
icco has joined #ruby
jthomp has quit [Ping timeout: 245 seconds]
Animawish has joined #ruby
pkill has quit [Ping timeout: 245 seconds]
d11wtq_ios has quit [Remote host closed the connection]
tomsthumb has joined #ruby
robbyoconnor has joined #ruby
right1 has left #ruby ["Leaving"]
tomsthumb has quit [Client Quit]
bradhe has joined #ruby
tobyo1 has joined #ruby
Opettaja has joined #ruby
Xeago has joined #ruby
jenrzzz has joined #ruby
tobyo has quit [Ping timeout: 255 seconds]
angusiguess has joined #ruby
Ontolog has quit [Ping timeout: 256 seconds]
chrishunt has quit [Quit: ZzZzZz...]
etcetera has quit [Ping timeout: 252 seconds]
chrishunt has joined #ruby
kofno has quit [Remote host closed the connection]
adamjleonard has joined #ruby
icco has quit [Ping timeout: 252 seconds]
pkill has joined #ruby
etcetera has joined #ruby
Xeago has quit [Ping timeout: 264 seconds]
wesside has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
bradhe has quit [Remote host closed the connection]
icco has joined #ruby
macmartine has joined #ruby
kofno has joined #ruby
thams has quit [Quit: thams]
Opettaja has quit [Quit: WeeChat 0.4.0]
Opettaja has joined #ruby
pkill_ has joined #ruby
bradhe has joined #ruby
redgetan has quit [Quit: leaving]
alexdoom has quit [Ping timeout: 245 seconds]
amh345 has joined #ruby
<amh345> has anyone here every done anything with Adobe Air and Ruby? specifically having some sort of communications between and Air app and a simple ruby web server?
aytch has joined #ruby
mercwithamouth has quit [Ping timeout: 264 seconds]
<waxjar> air is just html/js/css right?
<amh345> well, more so actionscript.
<amh345> and it's horrible.
osvico has joined #ruby
mercwithamouth has joined #ruby
<nga4> I have
etcetera has quit [Ping timeout: 252 seconds]
<amh345> i've built an air app last year for touch screens. but now i need to be able to 'play' the app while it's on one computer using an html trigger on a device.
<nga4> theres a book on it out there, albiet dated
<nga4> but its just restful curling mostly
<amh345> nga4: this actionscript socket stuff is killing me.
<nga4> same way most everything else deals with riails
<amh345> did you mess with sockets?
<nga4> vaugely
<nga4> My advice
<nga4> Zeromq will help
<nga4> if you can go that way
<nga4> avoid the restful stack, avoid sessions, avoid the sockets
<amh345> looking it up now.
<nga4> setup a service on one side
<amh345> it's driving me crazy because what i want to do is so simple. but everything in flash is so insane.
<nga4> and a consumer on the other
sayan has joined #ruby
<nga4> I do it with python/ruby/haskel/c/c++/lua
<nga4> wonderful
<amh345> what this is is a photo booth app. before the user would rpess the screen to take a pic. now i need it to take the pic when they press a button on another device.
<nga4> zmq can get you there
<nga4> easy peasy
uris has quit [Quit: Leaving]
icco has quit [Read error: Operation timed out]
<nga4> works in actionscript too if I recall
tbrock_ has quit [Quit: Computer has gone to sleep.]
<nga4> though I have never specifically done it there
philcrissman has quit [Remote host closed the connection]
<amh345> i thought i had it working sort of the other night.
etcetera has joined #ruby
<amh345> nga4: you do freelance?
timmow has joined #ruby
<nga4> no, I'm a career man
rakl has joined #ruby
<nga4> Just a colorful one
<amh345> heh. word
<nga4> the well worn, somewhat terrible, path
tealmage has quit [Remote host closed the connection]
alexdoom has joined #ruby
jenrzzz has quit [Quit: leaving]
<nga4> otherwise a carefully selected messaging protocol will get you miles and miles and miles not only today but everyday going forward
Davey has quit [Quit: Computer has gone to sleep.]
<nga4> flex on rails is somewhat...domain specific
<nga4> very coldfusiony
<bnagy> until the lead dev leaves the project to start something new, again
jenrzzz has joined #ruby
<bnagy> .. oh wait! silly me that happened already
<nga4> yeah
<nga4> What was it?
<bnagy> crossroads? Can't remember
<amh345> i think im just going to post an ad for this thing. it'll probably take someone who knows Air an hour.
<nga4> crossroads
<amh345> i was reading up on air and sockets .. just for the challenge. but now it's turning into more than i want to deal with
icco has joined #ruby
<nga4> just write all applications in erlang
<nga4> forever
<nga4> problem solved
<amh345> or just tell the client to have people touch the damn screen and f the damn device!
tonini has joined #ruby
<nga4> there are many solutions
timmow has quit [Ping timeout: 252 seconds]
sayan has quit [Ping timeout: 256 seconds]
<amh345> other solution is doing this whole thing in jquery w/ ruby.
miso1337 has quit [Quit: afk]
Markvilla has quit [Quit: Computer has gone to sleep.]
alx- has quit [Quit: alx-]
miso1337 has joined #ruby
banister_ has quit [Remote host closed the connection]
pasties has quit [Ping timeout: 240 seconds]
Axsuul has joined #ruby
atno has quit [Ping timeout: 276 seconds]
<nga4> No one uses javascript
<amh345> it's a dying language
<amh345> long live actionscript
rking has quit [Quit: WeeChat 0.4.1-dev]
<callmeivan> i have a B593 router and would like to let it reboot if it goes offline, but the Router Site is using so much Javascript that i cannot use mechanize, any ideas on what to do?
<amh345> USR make a very nice 14.4 modem.
rking has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
freakazoid0223 has quit [Ping timeout: 256 seconds]
Heero has joined #ruby
ckrailo has quit [Ping timeout: 276 seconds]
Davey has joined #ruby
nfk has joined #ruby
nfk has quit [Changing host]
nfk has joined #ruby
<bnagy> callmeivan: capybara and celerity let you automate a js capable browser, that might be an option?
<bnagy> celerity is jruby only, capybara can use phantom-js
<callmeivan> thanks, will look into it
kofno has quit [Remote host closed the connection]
icco has quit [Ping timeout: 252 seconds]
icco has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
pasties has joined #ruby
icco has quit [Ping timeout: 252 seconds]
jgrevich has quit [Ping timeout: 252 seconds]
headius has joined #ruby
icco has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
jgrevich has joined #ruby
cha1tanya has joined #ruby
browndawg has joined #ruby
mockra has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
gwb3 has joined #ruby
<gwb3> Hi, just had a quick question - working on learning Ruby, and am trying to write a script that will output '99 Bottles of Beer on the Wall' - https://gist.github.com/garlandbinns/0fea7bc345010c832353
<gwb3> I am having an issue subtracting 1 from my variable and the repeating, was hoping someone might be able to share a tip.
<gwb3> I was thinking I can't subtract from a variable with another variable.. that once it is assigned to something I can only overwrite that assignment w/ a new one.
<gwb3> …but not sure how.
spike|spiegel has quit [Quit: WeeChat 0.4.0]
atno has joined #ruby
tylersmith has quit [Quit: tylersmith]
Sigma00 has quit [Ping timeout: 258 seconds]
spike|spiegel has joined #ruby
banjara has joined #ruby
mattbl has joined #ruby
jgrevich_ has joined #ruby
icco has quit [Read error: Operation timed out]
jgrevich has quit [Read error: Connection reset by peer]
jgrevich_ is now known as jgrevich
Sigma00 has joined #ruby
Opettaja has quit [Quit: WeeChat 0.4.0]
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
tommyvyo has quit [Quit:]
havenwood has quit [Remote host closed the connection]
icco has joined #ruby
stoo_ has quit [Remote host closed the connection]
etcetera has quit []
alexdoom has quit [Changing host]
alexdoom has joined #ruby
<bnagy> gwb3: change - to -=
<bnagy> your line evaluates 99 - 1, but the result doesn't go anywhere. You need to assign that result to your bottles variable
<bnagy> -= is shorthand for bottles = bottles - some_num
icy` has joined #ruby
icy` has quit [Changing host]
icy` has joined #ruby
Pierreb has left #ruby [#ruby]
macmartine has quit [Quit: Computer has gone to sleep.]
tylersmith has joined #ruby
pyrac has joined #ruby
<gwb3> bnagy: thanks that did the trick :)
passerine has joined #ruby
adamjleonard has quit [Quit: Leaving...]
<bnagy> gwb3: 99.downto(1).each {|bottle| puts "#{bottle} bottles of beer"} is how a rubyist would probably write it
<bnagy> while loops are very rare in idiomatic ruby code
mando has quit [Remote host closed the connection]
chimmy has joined #ruby
<bnagy> to iterate collections, anyway :P
<gwb3> bnagy: I started to read what you just wrote but my brain exploded - one sec, still getting all of it back in through my ear.
viuo has quit [Ping timeout: 245 seconds]
<gwb3> looking forward to being able to be able to get to that level one day :)
Domon_ has joined #ruby
Domon has quit [Read error: Connection reset by peer]
viuo has joined #ruby
icco has quit [Read error: Operation timed out]
bradhe has quit [Remote host closed the connection]
icco has joined #ruby
<bnagy> [*(1...100)].reverse_each {|i| puts "#{i} bottles of beer"} or that, but it's more obscure which makes it crap code
apeiros has quit [Remote host closed the connection]
apeiros_ has joined #ruby
<nga4> the syntax is what makes ruby worth the effort
ckrailo has joined #ruby
Sigma00 has quit [Ping timeout: 258 seconds]
chimkan has quit [Remote host closed the connection]
Skofo has quit [Quit: Leaving]
lukeholder has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
Skofo has joined #ruby
chimkan has joined #ruby
Sigma00 has joined #ruby
<bnagy> ("a"*100).instance_eval {|_| puts "#{self.chop!.size} bottles" until empty?}
<bnagy> bored
<gwb3> thanks again for the help
kenneth has joined #ruby
wallerdev has joined #ruby
wsterling has quit [Remote host closed the connection]
codecop has joined #ruby
gwb3 has quit [Quit: Leaving]
timmow has joined #ruby
basex has quit [Quit: basex]
recycle has joined #ruby
chimkan has quit [Remote host closed the connection]
indyrl has left #ruby [#ruby]
<bnagy> ("a"*100).instance_eval {|_| p "#{size} bottles" and chop! until empty?} that works, but change p to puts and it infinite loops
security is now known as megha
lukeholder has joined #ruby
brianpWins has joined #ruby
Sigma00 has quit [Ping timeout: 258 seconds]
coderhut has joined #ruby
coderhut has quit [Client Quit]
coderhut has joined #ruby
pkill has quit [Ping timeout: 245 seconds]
divout has joined #ruby
Sigma00 has joined #ruby
icco has quit [Ping timeout: 252 seconds]
timmow has quit [Ping timeout: 252 seconds]
Sigma00 has quit [Client Quit]
icco has joined #ruby
sw2wolf has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
angusiguess has joined #ruby
chrishough has joined #ruby
chimmy has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<icy`> sorta reminds me... anyone remember of a ruby quiz type of site, but where the opening/easy questions were one-liners that were evaluated and given a score (based on less characters used, etc)
jbueza has quit [Quit: Leaving.]
<icy`> it was also interactive in that you could "follow" the leaders
iamjarvo1 has quit [Quit: Leaving.]
<s2013> tryruby.org ?
shock_one has joined #ruby
<icy`> no, they'd have questions like "which method of the Array class would allow you to make binary operations? Use it to sum all elements in this array" etc.
<icy`> paraphrased
<bnagy> try googling using the term 'golf' somewhere
<icy`> well the focus was not golf
icco has quit [Read error: Operation timed out]
angusiguess has quit [Ping timeout: 255 seconds]
mockra has joined #ruby
<icy`> perhaps the scoring was not only based on less chars
subbyyy has quit [Ping timeout: 276 seconds]
iamjarvo has joined #ruby
apeiros_ has quit [Remote host closed the connection]
iamjarvo has quit [Client Quit]
mahmoudimus has joined #ruby
<icy`> i mean to say some of those golf sites are too intense
kofno has joined #ruby
reset has quit [Ping timeout: 245 seconds]
<Hanmac> icy`: something like http://www.metabright.com/ ?
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 258 seconds]
momomomomo_ is now known as momomomomo
momomomomo has quit [Client Quit]
generali_ has quit [Remote host closed the connection]
elkclone has joined #ruby
kofno has quit [Ping timeout: 248 seconds]
backjlack has joined #ruby
chimmy has joined #ruby
<icy`> Hanmac, that's pretty cool too. But as i recall, it had some fill-in-the-blanks
Mon_Ouie has joined #ruby
<icy`> e.g. [1,2,3,4].SOMETHING #10
chimkan has joined #ruby
mfridh has joined #ruby
krz has joined #ruby
freeayu has quit [Ping timeout: 276 seconds]
<icy`> an evaluator would check your code
thams has joined #ruby
<icy`> that SOMETHING would be an empty area below the question or so
tagrudev has joined #ruby
chimkan has left #ruby [#ruby]
Xeago has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
rippa has joined #ruby
shiva_ has joined #ruby
indyrl has joined #ruby
indyrl has quit [Max SendQ exceeded]
hamed_r has joined #ruby
JesseH has joined #ruby
indyrl has joined #ruby
indyrl has quit [Client Quit]
<bnagy> oh man I remember something like that, but it was completely broken at the time
<JesseH> just wanted to say...ruby kicks ass
<JesseH> okay
<bnagy> Hanmac: ("a"*100).instance_eval {|_| p "#{size} bottles" and chop! until empty?}
icco has joined #ruby
* JesseH goes back to hiding.
<bnagy> Hanmac: when I change p to puts it fails. Why?
Xeago has quit [Ping timeout: 255 seconds]
brianpWins has quit [Ping timeout: 276 seconds]
pyrac has quit [Quit: pyrac]
<Mon_Ouie> because puts returns nil
<Mon_Ouie> 'and' is not used to sequence actions, ';' is
<bnagy> ahh!
<bnagy> yeah but ; would break the pretty until loop
<Mon_Ouie> Well, you can use (a; b) until empty? (sure, it's not pretty)
tylersmith has quit [Quit: tylersmith]
chimmy has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
<bnagy> neither it changing and to or :(
<bnagy> tbh I didn't think and did shortcutting
<Hanmac> hm in the last line shoulndt it be "1 bottle" ?
nga4 has quit []
<Mon_Ouie> IIRC there are even other things that need changing for that challenge
<bnagy> it shouldn't do 0 bottles, that way around
<bnagy> oic, you mean no 's'
<bnagy> yeah well screw you :)
<icy`> i would just go down to 2 and then separately put '1 bottle of beer on the wall.' =P
<Mon_Ouie> I'd use puts map { … } to do it
pyrac has joined #ruby
BizarreCake has joined #ruby
Opettaja has joined #ruby
<icy`> i,s=3,'bottles of beer on the wall'; i.downto(2) {|x| puts "#{x} #{s}"}; puts "1 #{s.sub('s','')}"
shock_one has quit [Ping timeout: 264 seconds]
<bnagy> so boring
* icy` nods
freeayu has joined #ruby
shiva_ has quit [Quit: Leaving]
<undersc0re97> Does anyone know what the status is with GTK3 Ruby bindings?
darrik has joined #ruby
<Hanmac> undersc0re97: rubygnome should have something for gtk3 ... but i prefer an wx that can gtk3 too
braoru has joined #ruby
<bnagy> Hanmac: ("\x00" << "s"*98).instance_eval {|_| puts "#{size} bottle" << slice!(-1,1) until empty?}
<undersc0re97> Hanmac: I know it's being worked on but, it is taking forever .-.
pyrac has quit [Quit: pyrac]
icco has quit [Ping timeout: 252 seconds]
Hanmac2 has quit [Read error: Connection reset by peer]
shiva_ has joined #ruby
<icy`> how much space does that use
<undersc0re97> Hanmac: isn't wxRuby a dead project?
Hanmac1 has joined #ruby
icco has joined #ruby
<Mon_Ouie> You can drop the |_| btw
<Hanmac> undersc0re97: yeah thats why i have this: https://github.com/Hanmac/rwx
<bnagy> Mon_Ouie: yeah, I just had it in to be annoying
tonini has quit [Remote host closed the connection]
<undersc0re97> Hanmac: nice
mockra has quit [Remote host closed the connection]
<undersc0re97> wx is pretty fabulous
<Hanmac> undersc0re97: but beware, my rwx is still in developing and may only work with wx trunk
<bnagy> ("s"*98).prepend("\x00").instance_eval {puts "#{size} bottle#{slice!(-1,1)} of beer" until empty?} is frighteningly close to readable :(
<undersc0re97> Hanmac: eh, oh well
<undersc0re97> I'll just learn ruby-gnome2
rakl has quit [Quit: sleeping]
sambio has quit []
<icy`> puts 5.downto(1).to_a.join(" bottles of beer\n") << ' bottle of beer'
Hanmac has quit [Ping timeout: 248 seconds]
mockra has joined #ruby
mockra has quit [Remote host closed the connection]
mercwithamouth has quit [Ping timeout: 248 seconds]
ananthakumaran has joined #ruby
coderhut has quit [Quit: Page closed]
Rumsteak has joined #ruby
nomenkun has joined #ruby
timmow has joined #ruby
icco has quit [Ping timeout: 252 seconds]
icco has joined #ruby
icy` has quit [Quit: Leaving]
ryanf_ has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
Mon_Ouie has quit [Ping timeout: 264 seconds]
ryanf_ has quit [Client Quit]
nomenkun has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
timmow has quit [Ping timeout: 252 seconds]
JesseH has quit [Ping timeout: 252 seconds]
workmad3 has joined #ruby
Guest16317 has quit [Ping timeout: 245 seconds]
Hanmac has joined #ruby
elkclone has quit [Ping timeout: 276 seconds]
t_p has joined #ruby
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest46634
angusiguess has joined #ruby
miso1337 has quit [Quit: afk]
tonini has joined #ruby
tvw has joined #ruby
Xlab has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 256 seconds]
icco has quit [Ping timeout: 252 seconds]
Vainoharhainen has joined #ruby
elkclone has joined #ruby
kofno has joined #ruby
icco has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
jdunck has joined #ruby
aganov has joined #ruby
bradhe has quit [Remote host closed the connection]
miso1337 has joined #ruby
ph^ has joined #ruby
kofno has quit [Ping timeout: 258 seconds]
<Hanmac> hm some of the higher ones ... exist a way to get the info how many parameters the super method wants?
pyrac has joined #ruby
workmad3 has quit [Ping timeout: 276 seconds]
chandankumar has quit [Quit: Leaving]
Morkel has joined #ruby
nomenkun has joined #ruby
timonv has joined #ruby
icco has quit [Ping timeout: 252 seconds]
soulofpeace has quit [Ping timeout: 264 seconds]
icco has joined #ruby
<bnagy> Hanmac: self.class.superclass.instance_method(__method__).arity
<bnagy> ?
soulofpeace has joined #ruby
<Hanmac> but what if i have modules included? ... then its not so easy ;(
<bnagy> no :(
shock_one has joined #ruby
HNF has joined #ruby
dr_bob has joined #ruby
dawkirst has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jgrevich has quit [Read error: Connection reset by peer]
ckrailo has quit [Quit: Computer has gone to sleep.]
Rym has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
benlieb has quit [Read error: No route to host]
jgrevich has joined #ruby
nomenkun_ has joined #ruby
nomenkun has quit [Ping timeout: 252 seconds]
icco has quit [Read error: Operation timed out]
adkron_ has joined #ruby
icco has joined #ruby
Guest46634 has quit [Ping timeout: 245 seconds]
F1skr has joined #ruby
adkron has quit [Ping timeout: 252 seconds]
filipe has joined #ruby
dawkirst has quit [Ping timeout: 252 seconds]
ehaliewicz has joined #ruby
brianpWins has joined #ruby
keymone has joined #ruby
whowantstolivefo has joined #ruby
dawkirst has joined #ruby
tobyo1 has quit [Ping timeout: 240 seconds]
krz has quit [Quit: krz]
Chinorro has joined #ruby
andikr has joined #ruby
C0deMaver1ck has joined #ruby
C0deMaver1ck is now known as Guest11807
niklasb has joined #ruby
anderse has joined #ruby
skroon has joined #ruby
krz has joined #ruby
dr_bob1 has joined #ruby
apeiros has joined #ruby
Astralum has joined #ruby
niklasb has quit [Ping timeout: 246 seconds]
dr_bob1 has left #ruby [#ruby]
icco has quit [Read error: Operation timed out]
dr_bob has quit [Ping timeout: 258 seconds]
Astral__ has quit [Ping timeout: 264 seconds]
benlieb has joined #ruby
icco has joined #ruby
keymone has quit [Quit: keymone]
Hanmac has quit [Ping timeout: 255 seconds]
timmow has joined #ruby
dawkirst has quit [Ping timeout: 240 seconds]
lonelybyte has joined #ruby
Hanmac has joined #ruby
chrishough has quit [Quit: chrishough]
haxrbyte has quit [Ping timeout: 260 seconds]
timmow has quit [Ping timeout: 252 seconds]
mockra has joined #ruby
rawng has joined #ruby
rickruby has quit [Remote host closed the connection]
<rawng> the ruby-doc.org website won't load for me, but i can ping it and traceroute finds a path
Hanmac has quit [Client Quit]
KevinSjoberg has joined #ruby
elkclone has quit [Read error: Connection reset by peer]
<rawng> can anyone verify that it is or isn't down for them?
<agarie> it's down here as well
<rawng> agarie: thanks
banjara has quit [Quit: Leaving.]
niklasb has joined #ruby
Hanmac has joined #ruby
shock_one has quit [Ping timeout: 264 seconds]
headius has quit [Quit: headius]
dawkirst has joined #ruby
vlad_starkov has joined #ruby
dormousy has quit [Quit: ZNC - http://znc.in]
mockra has quit [Ping timeout: 256 seconds]
dormousy has joined #ruby
icco has quit [Read error: Operation timed out]
<rawng> apeiros: ah, 'preciate that
elkclone has joined #ruby
icco has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
arturaz has joined #ruby
unflores has joined #ruby
Xeago has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
alup has joined #ruby
kofno has joined #ruby
d11wtq has quit [Ping timeout: 256 seconds]
skum has joined #ruby
bradhe has joined #ruby
maxmanders has joined #ruby
Xeago has quit [Ping timeout: 258 seconds]
nomenkun_ has quit [Remote host closed the connection]
Scriptor has quit [Ping timeout: 258 seconds]
Vainoharhainen has quit [Ping timeout: 245 seconds]
kofno has quit [Ping timeout: 264 seconds]
spider-mario has joined #ruby
timmow has joined #ruby
Heather has joined #ruby
<Heather> hi
huoxito has quit [Quit: Leaving]
icco has quit [Read error: Operation timed out]
bradhe has quit [Ping timeout: 252 seconds]
icco has joined #ruby
LnL has quit [Ping timeout: 252 seconds]
Beoran__ has joined #ruby
swistak35 has quit [Ping timeout: 264 seconds]
shiva_ has quit [Remote host closed the connection]
schickung has joined #ruby
tommylommykins has quit [Ping timeout: 245 seconds]
jsaak has joined #ruby
<Heather> what is the easiest way to get iconv on windows
swistak35 has joined #ruby
<Heather> cygwin?
skroon has quit [Ping timeout: 264 seconds]
tommylommykins has joined #ruby
<bnagy> don't
skroon has joined #ruby
<bnagy> use an up to date ruby
Beoran_ has quit [Ping timeout: 264 seconds]
marr has joined #ruby
celinedior has joined #ruby
<Heather> I use...
<bnagy> then just use the built in encoding support
jgrevich has quit [Ping timeout: 264 seconds]
browndawg has quit [Quit: Leaving.]
pen has quit [Remote host closed the connection]
<Heather> bnagy ?
jgrevich has joined #ruby
<Heather> bnagy I'm getting : D:/Heather/Ruby/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in `require': cannot load such file -- iconv (LoadError)
<bnagy> ok, why do you think you want to use iconv?
<Hanmac> Heather: iconv is dead
hmarr has joined #ruby
cha1tanya has quit [Ping timeout: 258 seconds]
<Heather> bnagy Hanmac ^
dawkirst has quit [Ping timeout: 256 seconds]
rdark has joined #ruby
icco has quit [Read error: Operation timed out]
tevio has quit [Remote host closed the connection]
<Hanmac> Heather: 1) the script does support 1.8 because it uses iconv 2) it supports 1.9 because it does have encoding comment (iconv does still exist but it raises warnings) 3) BUT ruby2.0 drops iconv so it does not work on 2.0 anymore
skroon has quit [Ping timeout: 264 seconds]
<Heather> hell ... so should I uninstall 2.0 and install 1.9 ?
dagobah has joined #ruby
icco has joined #ruby
<bnagy> it should use String#encode
<bnagy> just fix the code
beiter has joined #ruby
<Heather> bnagy I never used to write ruby code
<bnagy> tbh you can probably just commend out line 158 and remove the require 'iconv' :)
<Hanmac> iconv was already deplicated in 1.9
<s2013> has anyone read the book the well grounded rubyist?
<Heather> Ok I will try to edit it
<Hanmac> i mean deprecated
ehaliewicz has quit [Remote host closed the connection]
<Heather> I will back some later, thank you for point
Heather has left #ruby [#ruby]
agarie has quit [Remote host closed the connection]
marcdel has quit []
statarb3 has joined #ruby
statarb3 has joined #ruby
chandankumar has joined #ruby
Axsuul has quit [Ping timeout: 256 seconds]
blacktulip has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
pi3r has joined #ruby
rawler has quit [Ping timeout: 245 seconds]
vlad_starkov has joined #ruby
yann_ck has joined #ruby
rawler has joined #ruby
troessner has joined #ruby
benlieb has quit [Quit: benlieb]
dormousy has quit [Quit: ZNC - http://znc.in]
dormousy has joined #ruby
dr_bob has joined #ruby
dawkirst has joined #ruby
dormoose has joined #ruby
icco has quit [Read error: Operation timed out]
razibog has joined #ruby
razibog1 has joined #ruby
razibog1 has quit [Client Quit]
Silent__ has joined #ruby
dormoose has quit [Client Quit]
dormousy has quit [Client Quit]
echevemaster has quit [Quit: Leaving]
jeffreylevesque has quit [Read error: Connection reset by peer]
crodas has quit [Read error: Connection reset by peer]
crodas has joined #ruby
forlin has joined #ruby
jeffreylevesque has joined #ruby
icco has joined #ruby
blaxter has joined #ruby
sylvinus has joined #ruby
niceguyjames has joined #ruby
markit has joined #ruby
Hobogrammer_ has quit [Ping timeout: 255 seconds]
br4ndon has joined #ruby
Xlab has joined #ruby
<markit> hi, I've a problem with pasted text, often the "from word or other bad stuff" "–" (long line), that seems 226 code ('–'[0].ord -> 226) is entered. I would like to use gsub but not with a pasted '–' but with the code equivalent
<markit> so from "BLA BLA – BLA".gsub('–', '-') to something like "BLA BLA – BLA".gsub(WHATPUTHERE?, '-')
browndawg has joined #ruby
<markit> I've tried /\xe2/ but does not work, produces -\200\223
<markit> any tip?
<markit> ruby 1.8.7
<Hanmac> markit: use newer ruby
bnagy has quit [Ping timeout: 252 seconds]
bnagy has joined #ruby
<passerine> markit: "BLA BLA – BLA".gsub(/\u2013/, 'x') # result "BLA BLA x BLA" (ruby 2.0 here)
Macaveli has joined #ruby
apod has joined #ruby
thebastl has joined #ruby
apod has quit [Remote host closed the connection]
xkickflip has quit [Ping timeout: 276 seconds]
xkickflip has joined #ruby
<passerine> (the 'x' just to be clear to me, use your dash or whatever) ...if it works in your version. Or what Hanmac said.
<markit> unfortunatly I'm "chained" to Ruby on rails 3.0.something with ruby 1.8
<Hanmac> markit: "–" is not 226 ... in binary its "\xE2\x80\x93"
<markit> let me test
<markit> Hanmac: '–'[0].ord -> 226
<Hanmac> markit: haha you fooled ;P becase "–" is a multi-byte-char
<passerine> hmm.. maybe my terminal changes it then
banister`sleep has joined #ruby
duosrx has joined #ruby
davetherat has quit [Remote host closed the connection]
<Hanmac> ruby1.8 are not so good with multibyte ;P
banjara has joined #ruby
davetherat has joined #ruby
icco has quit [Read error: Operation timed out]
<markit> gsub(/\u2013/, 'x') does nothing
<Hanmac> 18>> "–".to_a
<eval-in> Hanmac => ["\342\200\223"] (http://eval.in/16511)
dawkirst has quit [Ping timeout: 245 seconds]
<Hanmac> 18>> "–"[0]
<eval-in> Hanmac => 226 (http://eval.in/16512)
<Hanmac> 18>> ["–"[0],"–"[1],"–"[2]]
<eval-in> Hanmac => [226, 128, 147] (http://eval.in/16513)
<markit> ok, so how can I use 226 or \342\200\223 in gsub?
<Hanmac> try the second one
icco has joined #ruby
Heather has joined #ruby
bricker`LA has quit [Quit: leaving]
vlad_sta_ has joined #ruby
<Hanmac> markit: but beware ... after june no one is helping you anymore because at this time 1.8 is dead and buried
<markit> Hanmac: I know, but I use gems that are not supported (or do not work fine) with recent rails
peterhellberg has joined #ruby
<markit> so can't migrate to newer rails, so nor use newer ruby
banister`sleep has quit [Ping timeout: 252 seconds]
<Hanmac> hm there might be a reason why they are not supported ... maybe you can fix them for newer rails versions ... or ask at #rubyonrails why they are not fixed
<markit> "BLA BLA – BLA".gsub(/\342\200\223/, 'x') works perfectly, thanks A LOT
slainer68 has joined #ruby
<markit> Hanmac: last time I tried was ruport not behaving well
<passerine> markit: that worked here too.
<markit> don't know why, but reporting seems not interesting for web developers
<Heather> so what will be String#encode analog to Iconv.iconv('UTF-8//IGNORE', 'UTF-8', (s + ' ') ).first[0..-2]
vlad_starkov has quit [Ping timeout: 240 seconds]
<markit> also I've a hack to use JasperReport, that uses a don'trememberthename gem that is badly broken (or abandoned) for more recent ror
elaptics`away is now known as elaptics
<markit> and I've not the skill to use a different way to do that interaction (RoR - jasperreport)
Rumsteak has quit [Ping timeout: 256 seconds]
ephemerian has joined #ruby
Jedi_SCT1 has quit [Quit: See ya]
kofno has joined #ruby
Jedi_SCT1 has joined #ruby
bradhe has joined #ruby
Xlab has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 264 seconds]
<Hanmac> Heather: can you try:? s.encode("UTF-8")
kofno has quit [Ping timeout: 258 seconds]
banjara has quit [Ping timeout: 245 seconds]
bradhe has quit [Ping timeout: 245 seconds]
eykosioux has joined #ruby
lonelybyte has quit [Ping timeout: 258 seconds]
tevio has joined #ruby
icco has quit [Ping timeout: 252 seconds]
s2013 has quit [Ping timeout: 264 seconds]
dawkirst has joined #ruby
lkba has quit [Ping timeout: 252 seconds]
icco has joined #ruby
brianpWins has quit [Quit: brianpWins]
noop has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
camilasan has joined #ruby
markit has quit [Quit: Konversation terminated!]
nomenkun_ has joined #ruby
tonini has quit [Remote host closed the connection]
flayer has quit [Remote host closed the connection]
psyprus has quit [Ping timeout: 258 seconds]
eykosioux has quit [Remote host closed the connection]
psyprus has joined #ruby
eykosioux has joined #ruby
timmow_ has joined #ruby
guns has joined #ruby
<Heather> Hanmac so
nomenkun_ has quit [Remote host closed the connection]
eykosiou_ has joined #ruby
<Heather> but in my variant it should be (s + ' ') ?
icco has quit [Read error: Operation timed out]
eykosioux has quit [Read error: Connection reset by peer]
icco has joined #ruby
noop has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
lonelybyte has joined #ruby
<Hanmac> Heather: i dont think so ... because it was removed with [0..-2] ... maybe
Elhu has joined #ruby
<bnagy> >> "abc\xfe\xffëd".chars.select(&:valid_encoding?).join
<eval-in> bnagy => "abcëd" (http://eval.in/16514)
<Heather> Hanmac so since function is called validate_utf8 then I hope s.encode("UTF-8") will fit it
<bnagy> that won't strip any chars
Zai00 has joined #ruby
tevio has quit [Remote host closed the connection]
<bnagy> you either need to encode 'utf-8', invalid: :replace or use my thing
tevio has joined #ruby
<bnagy> some people recommend double encoding, but it doesn't work properly on jruby so it's obviously wrong and bad :)
adkron has joined #ruby
<Heather> after all why do I use (s + ' ') and .first[0..-2]
<Heather> I don't get the logics of it
<bnagy> no idea, maybe whoever wrote the code is mad
banister`sleep has joined #ruby
<Heather> well it's popular snippet seems like
skroon has joined #ruby
adkron_ has quit [Ping timeout: 252 seconds]
banister`sleep has quit [Read error: Connection reset by peer]
chrishough has joined #ruby
banister`sleep has joined #ruby
banjara has joined #ruby
cantonic has joined #ruby
fixl has joined #ruby
skroon has quit [Read error: Operation timed out]
<apeiros> Heather: read the comments
<apeiros> it's explained
hashmal has joined #ruby
<bnagy> just a workaround for a stupid iconv bug
cantonic has quit [Client Quit]
pcarrier has joined #ruby
Xeago has joined #ruby
<Heather> I see
<bnagy> >> "abc\xfe\xffëd\xff".encode( 'utf-8', invalid: :replace, replace: '' )
<eval-in> bnagy => "abc\xFE\xFFëd\xFF" (http://eval.in/16515)
Assurbanipal has joined #ruby
<bnagy> ...
<Heather> bnagy seems correct.
pcarrier has quit [Client Quit]
<bnagy> no, that's wrong and weird
<Heather> bnagy so how can I add compatibility with ruby 1.8 / 1.9 now :D
icco has quit [Read error: Operation timed out]
<bnagy> the one before did what I expect
callmeivan has quit [Ping timeout: 252 seconds]
<Heather> bnagy why )
<bnagy> >> "abc\xfe\xffëd".chars.select(&:valid_encoding?).join
<eval-in> bnagy => "abcëd" (http://eval.in/16517)
eka has joined #ruby
* Hanmac does not care about 1.8
<bnagy> on my local ruby those \xff get replaced with '??' even though they _should_ be replaced with empty strings
jandres has joined #ruby
<bnagy> on this eval bot they don't get replaced at all.. presumably some weirdness
<bnagy> select valid_encoding? seems the most robust
skattyadz has joined #ruby
<Heather> bnagy ok...
entr0py_ has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<Hanmac> bnagy: encode does nothing when the encoding of the string and the wanted encoding is the same
icco has joined #ruby
Animawish has quit [Quit: Animawish]
<bnagy> >> "abc\xfe\xffëd\xff".encode('utf-16le').encode( 'utf-8', invalid: :replace, replace: '' )
<eval-in> bnagy => /tmp/execpad-01ba6352f933/source-01ba6352f933:2:in `encode': "\xFE" on UTF-8 (Encoding::InvalidByteSequenceError) ... (http://eval.in/16518)
<bnagy> lulz
<Hanmac> >> "abc\xfe\xffëd\xff".b.encode( 'utf-8', invalid: :replace,undef: :replace, replace: '' )
<eval-in> Hanmac => "abcd" (http://eval.in/16519)
<apeiros> you need the replace in the first encode ;-)
<bnagy> Hanmac: my encoding is utf-8
<apeiros> and you don't want to use .b
xcv has joined #ruby
eykosiou_ has quit [Remote host closed the connection]
<apeiros> since 0x80-0xff has no representation in utf-8
elkclone has quit [Quit: It's never too late to unplug and run.]
<bnagy> Hanmac: ahhh it's undef.
ferdev has quit [Quit: ferdev]
eykosioux has joined #ruby
<bnagy> still doesn't work on jruby
yacks has joined #ruby
<bnagy> well, it replaces with ??
<apeiros> >> "abc\xfe\xffëd\xff".encode( 'utf-16', invalid: :replace,undef: :replace, replace: '' ).encode('utf-8')
<eval-in> apeiros => "abcëd" (http://eval.in/16520)
<apeiros> retains the ë, with .b it will be deleted.
<apeiros> I find it really cumbersome. it's sad ruby doesn't offer better tools for such operations.
<Xeago> >> RUBY_VERSION
<bnagy> '' is an illegal replacement for jruby, it seems
<eval-in> Xeago => "2.0.0" (http://eval.in/16521)
khismetix has joined #ruby
<bnagy> fun and joy!
callmeivan has joined #ruby
<bnagy> anyway I still vote for select valid_encoding?
banjara has quit [Ping timeout: 264 seconds]
eykosioux has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
<apeiros> fun, oracle no can do avg(datecol) :(
<Heather> when ruby is trying to run something with output_of is it using my environment path / e.g. local aliases
skattyadz has quit [Ping timeout: 245 seconds]
<apeiros> fugly, but: arbitrary_date+avg(arbitrary_date-datecol) works…
yusup has joined #ruby
<apeiros> Heather: output_of?
noop has quit [Ping timeout: 246 seconds]
<Heather> eh...
<Heather> sorry local function
<Heather> IO.popen
<Heather> I've got failed to run in exit status so I guess it can't run something just from PATH
<Heather> is there something alike #fidef WIN32 ? :)
skattyadz has joined #ruby
security has joined #ruby
<bnagy> you can look at RbConfig::CONFIG
<Heather> or... I can declare some variable with usual if
icco has quit [Read error: Operation timed out]
<Heather> how to declare variable?
megha has quit [Ping timeout: 258 seconds]
lukeholder has quit [Quit: Computer has gone to sleep.]
<Heather> alike in python? )
icco has joined #ruby
pskosinski has joined #ruby
arrowcircle has joined #ruby
<arrowcircle> hi! i have a strange problem with classes and modules https://gist.github.com/arrowcircle/5394525 . when i user rails c and Api::User.register its ok. when i run rspec - i get error in gist. what i doing wrong?
chussenot has quit [Quit: chussenot]
<Hanmac> arrowcircle: #rubyonrails
cha1tanya has joined #ruby
<injekt> arrowcircle: are these tests?
<arrowcircle> ?
<injekt> arrowcircle: do you have another 'Registration' class somewhere?
nomenkun has joined #ruby
<apeiros> arrowcircle: that's why you should not use long names
<apeiros> be explicit
<injekt> ^
<apeiros> rails autoloading fucks up. it'll create a module Api::User upon seeing `Api::User::Registration`
<apeiros> which collides with class Api::User
<injekt> yeah, you probably want require_dependency to fix that but I dunno if it would help much
<apeiros> use `class Api::User < ActiveRecord::Base; module Registration; …; end; end` instead of `module Api::User::Registration; …; end`
robustus has quit [Ping timeout: 248 seconds]
ferdev has joined #ruby
<injekt> the autoloading sucks balls
<apeiros> alternatively require 'api/user' explicitly from 'api/user/registration' (if those aren't the files you have, you're doing additional things wrong :-p)
<arrowcircle> i dont have module registration
<apeiros> dude, yes, you have. `module Api::User::Registration` - right there in your gist.
<injekt> :D
<arrowcircle> ah, anouther module registration :)
eykosioux has joined #ruby
<apeiros> injekt: agreed. autoloading == teh suck. also not thread safe.
<injekt> arrowcircle: apeiros told you how to solve it, go fourth and fix!
<injekt> apeiros: yeah :/
<apeiros> and probably not even possible to do thread safe.
<apeiros> (without language support, at least)
kofno has joined #ruby
robustus has joined #ruby
HNF has quit [Remote host closed the connection]
Guedes has quit [Quit: Saindo]
veinofstars_ has joined #ruby
icco has quit [Read error: Operation timed out]
bradhe has joined #ruby
<arrowcircle> i tried to require 'api/user' - same result
<injekt> 09:26 < apeiros> use `class Api::User < ActiveRecord::Base; module Registration; …; end; end` instead of `module Api::User::Registration; …; end`
<peterhellberg> apeiros: Hasn’t there been some work on making it thread safe? I though I read something about it a few months back.
<arrowcircle> should i put module registration inside api::user class file?
<injekt> Rails disables dependency loading when threadsafe mode is enabled
<injekt> arrowcircle: no
noop has joined #ruby
kofno has quit [Ping timeout: 258 seconds]
veinofstars has quit [Ping timeout: 258 seconds]
veinofstars_ is now known as veinofstars
icco has joined #ruby
nari has quit [Ping timeout: 245 seconds]
lonelybyte has quit [Quit: Leaving]
<arrowcircle> sorry for my stupidity, but i dont understand
<injekt> arrowcircle: you have 'module Api::User::Registration' right?
<apeiros> peterhellberg: there has been a lot of work. and all the result I've ever heard of was "not possible without language support".
<arrowcircle> yes, in app/modes/api/user/registration.rb
<injekt> arrowcircle: you want class Api::User; module Registration instead
<peterhellberg> apeiros: That’s probably the case then
bradhe has quit [Ping timeout: 276 seconds]
reset has joined #ruby
Banistergalaxy has joined #ruby
<arrowcircle> so i put include Registration in api/user.rb and define module Registration in api/user/registration.rb ?
idletom has quit [Ping timeout: 245 seconds]
<injekt> this is exhausting
tvw has quit []
<injekt> arrowcircle: user.rb can include Registration like it does already, but in registration.rb you need to change the code to what I just mentioned
<injekt> this ensures the user class is created explicitly
jandres has left #ruby ["ERC Version 5.3 (IRC client for Emacs)"]
banjara has joined #ruby
<apeiros> injekt: you want the inheritance too
<apeiros> otherwise you get superclass mismatch
<injekt> ah yes
chussenot has joined #ruby
<apeiros> ooooh
<apeiros> you maybe don't even want that
<arrowcircle> i changed it, but still the same error
<injekt> shower time
<apeiros> rails autoloading is fucked up - using that will still prevent the user class from getting loaded (since it is now defined, and no longer missing)
<injekt> haha
<injekt> \o/
<apeiros> and you can't use class_eval since that doesn't change constant lookup base…
<apeiros> I wonder why `require 'api/user'` didn't help arrowcircle, though.
<Heather> WHY "--repo=#{repo}" -> "--repo\=#{repo}" ???
AndChat| has quit [Ping timeout: 264 seconds]
dhruvasagar has joined #ruby
LongLiveBacon has joined #ruby
<apeiros> Heather: awesome how you provide all the necessary context.
<Heather> apeiros well...
<injekt> maybe require_dependency would help since that's tied to dep management and autoloading
<apeiros> anyway, lunchtime. byebye.
<injekt> but who knows, the system is broken
<Heather> apeiros bb
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<bnagy> derp management
<injekt> ^
<Heather> I run IO.popen(args.map {|a| Shellwords.shellescape(a) }.join(' '), 'r') { |p| p.read } with arguments provided as strings
* injekt afk
<Heather> and then I'm getting error unrecognized option `--repo\=../marhaba'
<arrowcircle> if i put require 'api/user' on top of registration.rb it still shows same error
<Heather> where this \ comes from :(
<endure> Whats good gem to interact with samba shares?
<bnagy> >> require 'shellwords'; Shellwords.shellescape '='
<eval-in> bnagy => "\\=" (http://eval.in/16524)
<arrowcircle> and its strange, because when i run rails c and call Api::User.register its ok. with rspec it fails
<bnagy> Heather: 3 guesses
nomenkun has quit [Remote host closed the connection]
nomenkun has joined #ruby
<endure> *Whats a good gem to interact with samba shares?
icco has quit [Read error: Operation timed out]
<bnagy> endure: interact how? You can probably just treat smb paths as Files or whatever
<bnagy> (he says, without checking)
icco has joined #ruby
<Heather> darcs failed: unrecognized option `--repo\=../my' Failed to run: ["darcs", "--repo=../my"] (RuntimeError)
<endure> bnagy: Connect to, list files, etc
<csmrfx> lol @ darcs
<hoelzro> I remember darcs fondly
<Heather> lol @ ruby
<Heather> ...
<Heather> why \
<csmrfx> darcs is a version control system
<bnagy> Heather: because you shellescaped it
Jedi_SCT1 has quit [Quit: See ya]
<Heather> bnagy why do I shellscape it?
<Heather> for what...
<bnagy> Heather: that's a great question, because it seems to be breaking it :)
chussenot has quit [Quit: chussenot]
banjara has quit [Ping timeout: 252 seconds]
<bnagy> so yeah try not doing that
<Heather> bnagy but I want to understand ruby developers who wrote that script
<Heather> bnagy maybe then I will break stuff for them ?
<Heather> bnagy did you see contributors list?
ehellman has joined #ruby
<Heather> bnagy https://github.com/purcell/darcs-to-git/network/members for 1 freaking script :(
Jedi_SCT1 has joined #ruby
* bnagy looks for his tiny violin
pac1 has joined #ruby
lkba has joined #ruby
dawkirst has quit [Ping timeout: 258 seconds]
<Heather> maybe I need shellescape for posix ...
teddyp1cker has joined #ruby
Skofo has quit [Ping timeout: 246 seconds]
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
charliesome has joined #ruby
<bnagy> Heather: shellescape is always going to escape =
browndawg has quit [Quit: Leaving.]
clevermatt has joined #ruby
icco has quit [Ping timeout: 252 seconds]
nomenkun has quit [Ping timeout: 240 seconds]
geekbri has joined #ruby
nomenkun has joined #ruby
icco has joined #ruby
<Heather> getting unicode errors now (
<Heather> Illegal character "\u0001" in raw string "Mon Apr 1 16:50:15 `NQJNBQJNE B☺ELР° (GHL@) 2013">
niklasb has joined #ruby
nobitanobi has joined #ruby
<nobitanobi> Given: "find #{current_release}/ -type f -name "*.js" -exec chmod 440 {} \;" -> How can I escape the double quotes in *.js?
chrishough has quit [Quit: chrishough]
<bnagy> nobitanobi: \"
daig0ro has joined #ruby
Bry8Star_ has joined #ruby
dawkirst has joined #ruby
vlad_sta_ has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
kiri has quit [Ping timeout: 256 seconds]
RagingDave has joined #ruby
clevermatt has quit [Remote host closed the connection]
kiri has joined #ruby
Bry8Star has quit [Ping timeout: 276 seconds]
Mon_Ouie has quit [Ping timeout: 245 seconds]
peta_ has joined #ruby
ph^ has quit [Remote host closed the connection]
ph^ has joined #ruby
pac1 has quit [Ping timeout: 258 seconds]
tealmage has joined #ruby
gyre007 has joined #ruby
pyrac has quit [Quit: pyrac]
khismetix has quit [Ping timeout: 245 seconds]
apod has joined #ruby
apod has quit [Remote host closed the connection]
<arrowcircle> i guess all people from discussion got afk, so please look at this. i have a strange problem with classes and modules https://gist.github.com/arrowcircle/5394525 . when i user rails c and Api::User.register its ok. when i run rspec - i get error in gist. what i doing wrong?
cantonic has joined #ruby
icco has quit [Ping timeout: 252 seconds]
icco has joined #ruby
banjara has joined #ruby
tealmage has quit [Ping timeout: 252 seconds]
arya has joined #ruby
k610 has joined #ruby
miso1337 has quit [Quit: afk]
khismetix has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
tealmage has joined #ruby
freeayu__ has joined #ruby
tealmage has quit [Remote host closed the connection]
timmow_ has quit [Read error: Connection reset by peer]
timmow_ has joined #ruby
<elaptics> arrowcircle: hard to know without seeing your specs where the error occurs
banjara has quit [Ping timeout: 256 seconds]
rippa has quit [Ping timeout: 240 seconds]
icco has quit [Read error: Operation timed out]
kofno has joined #ruby
hamed_r has quit [Quit: Leaving]
icco has joined #ruby
chase-work has joined #ruby
locriani has quit [Remote host closed the connection]
bradhe has joined #ruby
freeayu__ has quit [Ping timeout: 252 seconds]
KevinSjoberg has joined #ruby
shevy has quit [Read error: Operation timed out]
kofno has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 245 seconds]
a_a_g has joined #ruby
<arrowcircle> spec is as simple as expect(Api::User.register).to eq true
GeissT has quit [Ping timeout: 240 seconds]
tvw has joined #ruby
geekbri_ has joined #ruby
fixl has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
huy has joined #ruby
haxrbyte has joined #ruby
<csmrfx> pastie or go home
<csmrfx> kthxbye
geekbri has quit [Ping timeout: 264 seconds]
Heather has left #ruby [#ruby]
yshh has quit [Remote host closed the connection]
rickmasta has quit [Quit: Leaving...]
icco has quit [Read error: Operation timed out]
mikecmpbll has joined #ruby
Bry8Star has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
pyrac has joined #ruby
icco has joined #ruby
banister`sleep has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
huy has quit [Quit: huy]
KevinSjoberg has joined #ruby
Bry8Star_ has quit [Ping timeout: 276 seconds]
shevy has joined #ruby
tealmage has joined #ruby
Domon_ has quit [Remote host closed the connection]
haxrbyte has quit [Ping timeout: 252 seconds]
marius has joined #ruby
marius has quit [Excess Flood]
MrZYX|off is now known as MrZYX
iamjarvo has joined #ruby
tealmage has quit [Remote host closed the connection]
marius has joined #ruby
marius has quit [Excess Flood]
AndChat| has joined #ruby
marius has joined #ruby
marius has quit [Excess Flood]
marius has joined #ruby
marius has quit [Excess Flood]
marius has joined #ruby
marius has quit [Excess Flood]
chussenot has quit [Read error: Operation timed out]
marius has joined #ruby
marius has quit [Excess Flood]
Banistergalaxy has quit [Ping timeout: 258 seconds]
GeissT has joined #ruby
<rawng> I have a malformed element in an array that I'm iterating over that causes the ruby to error. is there an easy way to find out what element of the array it's on when the error occurs?
<hoelzro> rawng: puts(index) # before the access ;)
swex_ has quit [Ping timeout: 264 seconds]
<AndChat|> "The ruby" ;)
<rawng> lol, yeah.
ananthakumaran1 has joined #ruby
<peterhellberg> :)
arrowcircle has quit [Quit: Leaving.]
<rawng> hoelzro: thanks
banjara has joined #ruby
icco has quit [Read error: Operation timed out]
slainer6_ has joined #ruby
ananthakumaran has quit [Ping timeout: 252 seconds]
nkts has joined #ruby
niklasb has quit [Ping timeout: 276 seconds]
peterhellberg has quit [Remote host closed the connection]
jnoob22 has joined #ruby
dhruvasagar has quit [Ping timeout: 255 seconds]
guns has quit [Quit: guns]
arrowcircle has joined #ruby
icco has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
davetherat has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 258 seconds]
davetherat has joined #ruby
dhruvasagar has joined #ruby
jgrevich has quit [Remote host closed the connection]
Guedes_out is now known as Guedes
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
yann_ck has quit [Ping timeout: 248 seconds]
maxmanders has joined #ruby
wallclockbuilder has joined #ruby
banjara has quit [Ping timeout: 248 seconds]
swex has joined #ruby
slainer6_ has quit [Remote host closed the connection]
oneirophren has joined #ruby
daig0ro has quit [Quit: Computer has gone to sleep.]
backjlack has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
JesseH has joined #ruby
yusup has quit [Quit: Leaving...]
icco has joined #ruby
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
arrowcircle has quit [Quit: Leaving.]
iamjarvo has quit [Quit: Leaving.]
chipotle has joined #ruby
aherve has joined #ruby
<aherve> hey guys. We're looking for a lead dev in ruby/rails in Paris. Would you know some people that could be interested ? ( I hope I'm not in the wrong channel to talk about that )
KevinSjoberg has joined #ruby
<bnagy> aherve: try one of the rails channels, #ror #rubyonrails or #rails
<bnagy> I can never remember which
pi3r has quit [Ping timeout: 258 seconds]
moos3 has joined #ruby
chipotle has quit [Client Quit]
chussenot has joined #ruby
<bnagy> aherve: also imho job spam isn't really appropriate for IRC at all
chussenot has quit [Client Quit]
thebastl has quit [Ping timeout: 260 seconds]
<bnagy> otherwise we'd end up with every scumbag recruiter on earth in here
<aherve> ok thanks. I didn't really know wether it was ok or not but I though it was worth a try :)
<bnagy> no problem
<bnagy> I am not the boss of anywhere, was just my opinion
<aherve> yeah I was actually expecting something like that
<aherve> but Hi btw, since I also happen to be a ror dev and ruby fan :)
<JonnieCache> as a contrasting opinion, i think its pretty legit. if it happened all the time it would be a problem.
<JonnieCache> but it doesnt as far as i can see
LaPetiteFromage has joined #ruby
<JonnieCache> actual recruiters would be annoying
nkr has joined #ruby
<aherve> well I guess not many "scumbag recruiter" know about irc ^^
<JonnieCache> thank goodness for small mercies
icco has quit [Read error: Operation timed out]
Banistergalaxy has joined #ruby
AndChat- has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
kleinerdrache has joined #ruby
banister`sleep has joined #ruby
statarb3 has quit [Quit: Leaving]
icco has joined #ruby
camilasan has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 252 seconds]
eykosioux has quit [Remote host closed the connection]
angusiguess has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
eykosioux has joined #ruby
camilasan has joined #ruby
rdark has quit [Ping timeout: 252 seconds]
mikecmpbll has quit [Ping timeout: 252 seconds]
kofno has joined #ruby
tk_ has joined #ruby
aherve has quit [Ping timeout: 245 seconds]
skroon has joined #ruby
rdark has joined #ruby
bradhe has joined #ruby
pi3r has joined #ruby
b0oh has joined #ruby
soulofpeace has quit [Read error: Operation timed out]
eykosioux has quit [Ping timeout: 264 seconds]
kofno has quit [Ping timeout: 258 seconds]
banjara has joined #ruby
LaPetiteFromage has quit [Quit: LaPetiteFromage]
tealmage has joined #ruby
bradhe has quit [Ping timeout: 240 seconds]
kf8a has joined #ruby
kofno has joined #ruby
tealmage has quit [Remote host closed the connection]
skroon has quit [Ping timeout: 264 seconds]
icco has quit [Ping timeout: 252 seconds]
mengu has joined #ruby
mikecmpbll has joined #ruby
kf8a has quit [Client Quit]
rawng has quit [Quit: WeeChat 0.4.1-dev]
icco has joined #ruby
adkron has quit [Ping timeout: 240 seconds]
slainer68 has joined #ruby
dblessing has joined #ruby
slainer68 has quit [Remote host closed the connection]
reset has quit [Quit: Leaving...]
ttt has quit [Remote host closed the connection]
banjara has quit [Ping timeout: 252 seconds]
slainer68 has joined #ruby
nobitanobi has quit [Remote host closed the connection]
daig0ro has joined #ruby
noop has quit [Quit: Leaving]
noop has joined #ruby
adkron has joined #ruby
pcarrier has joined #ruby
pi3r has quit [Ping timeout: 258 seconds]
<dblessing> hey guys. i'm having a noob problem. i'm writing a cli tool to allow us to manage a code snippet web tool. everything's working great except one thing. if i PUT/POST a ruby code snippet the server dies. i've tried everything to "encode" the ruby so it doesn't muck things up. right now i'm using inspect which does the trick for all other forms of code snippets. any tips?
ShonM has joined #ruby
<dblessing> i'm using rest-client if that makes a difference. for the "update" function i'm use PUT and the code snippet is part of a JSON encoded hash of params.
ttt has joined #ruby
khismetix has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
duosrx has quit [Remote host closed the connection]
icco has quit [Read error: Operation timed out]
backjlack has joined #ruby
AndChat- has quit [Read error: Connection reset by peer]
bhaarat has joined #ruby
Banistergalaxy has joined #ruby
pi3r has joined #ruby
icco has joined #ruby
dustint has joined #ruby
arrowcircle has joined #ruby
`brendan has joined #ruby
Proshot has joined #ruby
Neandre has joined #ruby
<arrowcircle> hi! i have a problem with classes/modules. here is the gist of code and error. when i run rails c - all ok. when i run rspec it crushes with error. what i doing wrong? https://gist.github.com/arrowcircle/5394525
niceguyjames has joined #ruby
wallcloc_ has joined #ruby
wallclockbuilder has quit [Ping timeout: 258 seconds]
angusiguess has quit [Ping timeout: 260 seconds]
<Hanmac> arrowcircle: why didnt you try it in the #rubyonrails channel? ... for me it looks that some other file is interfering
<banister`sleep> arrowcircle: all this crazy stuff: "Регистрирует пользователя, если все поля заполнены правильно" looks like you have a serious error with your code, is something overwriting your code with junk data?
<banister`sleep> arrowcircle: looks like a corrupt disk
<arrowcircle> hey, its only plain ruby include. and simple spec for method, that returns true
aaronmcadam has joined #ruby
<arrowcircle> my guess is error caused by rails autoload, but i dont know how to deal with it
ShonM has left #ruby [#ruby]
<Hanmac> arrowcircle: are you 10000% sure that in this line https://gist.github.com/arrowcircle/5394525#file-user-rb-L5 it access the Api::User::Registration ou defined in some line before?
<Hanmac> arrowcircle: what does shows to you when you change the line to "include p Registration"
ttt_ has joined #ruby
<JonnieCache> dblessing: are you escaping the ruby code?
<JonnieCache> because if you dump it in raw it will obvioulsly make the json invalid
niklasb has joined #ruby
<dblessing> JonnieCache: yeah, using .inspect which should work?
<Hanmac> ... hm no you should use the JSON module from stdlib for dealing with json ... imo
dkannan has joined #ruby
icco has quit [Read error: Operation timed out]
skroon has joined #ruby
<arrowcircle> Hanmac: oh shi, i have another model with model Registration. i try to include Api::User::Registration, but it still interfier with Registration model
ttt has quit [Ping timeout: 276 seconds]
Spooner has joined #ruby
xue_ has quit [Read error: Connection timed out]
icco has joined #ruby
niklasb has quit [Ping timeout: 248 seconds]
<arrowcircle> Hanmac: what is the proper way to include submodule in model in my case?
angusiguess has joined #ruby
xue has joined #ruby
rickmasta has joined #ruby
* Hanmac is not an rails user
<Hanmac> and i already told you the channel where you can get this information
browndawg has joined #ruby
xue has quit [Max SendQ exceeded]
d11wtq has joined #ruby
<arrowcircle> ok, thanks for the help
teddyp1cker has quit [Remote host closed the connection]
<JonnieCache> OMG STATE EVERYWHERE
banjara has joined #ruby
krz has quit [Quit: krz]
Neomex has joined #ruby
Macaveli has quit [Quit: Leaving]
Neomex has quit [Client Quit]
eykosioux has joined #ruby
entr0py_ has quit [Remote host closed the connection]
krawchyk has joined #ruby
banister`sleep has quit [Remote host closed the connection]
carloslopes has joined #ruby
mikecmpbll has quit [Quit: Computer has gone to sleep.]
AlSquire has quit [Quit: This computer has gone to sleep]
icco has quit [Read error: Operation timed out]
yann_ck has joined #ruby
AndChat| has joined #ruby
kristofers has joined #ruby
nkts has quit [Quit: -]
AlSquire has joined #ruby
icco has joined #ruby
stef_204 has joined #ruby
nari has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
banjara has quit [Ping timeout: 264 seconds]
yusup has joined #ruby
rdark has quit [Ping timeout: 248 seconds]
chussenot has joined #ruby
mikecmpbll has joined #ruby
LaPetiteFromage has joined #ruby
aherve has joined #ruby
pyro111 has joined #ruby
rdark has joined #ruby
ttt has joined #ruby
yusup has quit [Client Quit]
chase-work has quit [Quit: Textual IRC Client: www.textualapp.com]
Banistergalaxy has joined #ruby
pioz has joined #ruby
jonathanwallace has joined #ruby
vlad_starkov has joined #ruby
ttt has quit [Remote host closed the connection]
bradhe has joined #ruby
dummies_freelanc has joined #ruby
ttt_ has quit [Ping timeout: 256 seconds]
AndChat| has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 245 seconds]
arrowcircle has quit [Quit: Leaving.]
icco has quit [Read error: Operation timed out]
icco has joined #ruby
tealmage has joined #ruby
idkazuma has joined #ruby
kf8a has joined #ruby
ryanh has joined #ruby
yacks has quit [Quit: Leaving]
tealmage has quit [Ping timeout: 245 seconds]
chandankumar has quit [Quit: Leaving]
sambao21 has joined #ruby
veleno has joined #ruby
<veleno> hello. we have a project that currently depends on DBI. The project seems to be abandoned, and we're migrating to Ruby 2.0. What would be appropriate to successfully do such porting ? Should we target RDBI for example ?
Bry8Star has quit [Remote host closed the connection]
freeayu has joined #ruby
Bry8Star has joined #ruby
philcrissman has joined #ruby
nezumi has quit [Ping timeout: 258 seconds]
razibog has quit [Ping timeout: 248 seconds]
Chinorro has quit [Remote host closed the connection]
stef_204 has quit [Ping timeout: 264 seconds]
divout has quit [Remote host closed the connection]
AndChat| has joined #ruby
anonymuse has joined #ruby
chandankumar has joined #ruby
banister`sleep has joined #ruby
duosrx has joined #ruby
NiteRain has quit [Ping timeout: 264 seconds]
icco has quit [Read error: Operation timed out]
Banistergalaxy has quit [Ping timeout: 256 seconds]
m8 has joined #ruby
skattyadz has quit [Quit: skattyadz]
busybox42 has quit [Ping timeout: 256 seconds]
banjara has joined #ruby
icco has joined #ruby
yalue has joined #ruby
kleinerdrache has quit [Quit: Ex-Chat]
Arzaga has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has joined #ruby
allsystemsarego has quit [Changing host]
<JesseH> Anyone know about game development with ruby?
akam-it has quit [Remote host closed the connection]
<Spooner> JesseH, Yes.
<Hanmac> JesseH what kind of games? ...
<Spooner> JesseH, What do you actually want to know?
tealmage has joined #ruby
<Hanmac> because i have seen engines for 3D stuff ... and currrnelty i am working on a scripting system (using ruby)
kpshek has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
<JesseH> Well coming from Lua, I use LÖVE
LnL has joined #ruby
<JesseH> 2d games and what not
dblessing_ has joined #ruby
<hoelzro> LÖVE is great
<JesseH> So I would assume that Ruby has something similar.
b0oh has left #ruby [#ruby]
<JesseH> hoelzro, haha it really is!
<Spooner> JesseH, Gosu is your best bet then (#gosu channel).
akam-it has joined #ruby
* JesseH joins #gosu
dblessing has quit [Read error: Connection reset by peer]
dblessing_ is now known as dblessing
<JesseH> Hanmac, interesting.
thebastl has joined #ruby
wallcloc_ has quit [Ping timeout: 258 seconds]
aherve has quit [Quit: Leaving]
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
peta_ has quit [Remote host closed the connection]
<Hanmac> JesseH: i used Gosu once too, but i played with something more interesting ... like GPU accelerated 3D stuff with ogre3d ... in ruby ;P
<JesseH> Yep ogre has tons of bindings and what not.
<Spooner> Hanmac, Gosu is GPU accelerated 2D stuff (OpenGL) ;)
<JesseH> :o
<JesseH> yes more opengl bindings :D
wallclockbuilder has joined #ruby
<Hanmac> JesseH: and i did yet another binding for ogre ... in ruby ;P
freeayu__ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<JesseH> Hanmac, nice!
Elhu has joined #ruby
stef_204 has joined #ruby
axl_ has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Remote host closed the connection]
banjara has quit [Ping timeout: 276 seconds]
<Spooner> Hanmac, Usable yet? (and is your wx binding usable, for that matter?)
icco has quit [Read error: Operation timed out]
vlad_starkov has joined #ruby
BizarreCake has quit [Read error: Operation timed out]
<Spooner> Hanmac, I've been using the wxruby version, which is OK, but doesn't feel like Ruby very much.
icco has joined #ruby
wallcloc_ has joined #ruby
_nitti has joined #ruby
<Hanmac> Spooner: some functions are usable ... so you can rotate Objects, or enable or disable Compositors, but i didnt worked at this for long time :( ...
<Hanmac> rwx is also usable but also not finish yet ... i thought about adding rake and gemspec into it this week (my rwx is more ruby like if you mean that)
<Hanmac> by currently project are the rpg and game script files for the game engine (RPG::Actor etc)
wallclockbuilder has quit [Ping timeout: 255 seconds]
cha1tanya has quit [Ping timeout: 258 seconds]
jenrzzz has quit [Ping timeout: 245 seconds]
breakingthings has joined #ruby
yacks has joined #ruby
anderson has joined #ruby
wolcanus has joined #ruby
rickmasta has quit [Quit: Leaving...]
security has quit [Ping timeout: 246 seconds]
wolcanus has quit [Remote host closed the connection]
wolcanus has joined #ruby
csaunders has joined #ruby
wallcloc_ has quit [Ping timeout: 245 seconds]
divout has joined #ruby
banister`sleep has quit [Remote host closed the connection]
wallclockbuilder has joined #ruby
veinofstars has quit [Ping timeout: 258 seconds]
Arzaga has quit [Quit: Computer has gone to sleep.]
juarlex has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
AndChat- has joined #ruby
hogeo has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 245 seconds]
ariedler has joined #ruby
eykosioux has quit [Remote host closed the connection]
f0ster has joined #ruby
stef_204 has quit [Remote host closed the connection]
busybox42 has joined #ruby
AndChat| has joined #ruby
Arzaga has joined #ruby
icco has quit [Read error: Operation timed out]
skattyadz has joined #ruby
filipe has quit [Read error: Operation timed out]
ananthakumaran1 has quit [Quit: Leaving.]
Banistergalaxy has quit [Ping timeout: 245 seconds]
headius has joined #ruby
banister`sleep has joined #ruby
stef_204 has joined #ruby
icco has joined #ruby
AndChat- has quit [Ping timeout: 245 seconds]
BizarreCake has joined #ruby
sailias has joined #ruby
wallcloc_ has joined #ruby
lukeholder has joined #ruby
kofno has quit [Remote host closed the connection]
AndChat| has quit [Ping timeout: 245 seconds]
kofno has joined #ruby
Shrink has quit [Read error: Connection reset by peer]
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
p0wn3d has joined #ruby
reytt has quit [Quit: Leaving...]
benwoody has left #ruby [#ruby]
bluOxigen has quit [Ping timeout: 255 seconds]
wallclockbuilder has quit [Ping timeout: 252 seconds]
mercwithamouth has joined #ruby
wallcloc_ has quit [Ping timeout: 245 seconds]
dblessing has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
Czupa has joined #ruby
dblessing has joined #ruby
mmitchell has joined #ruby
chrisja has joined #ruby
jerius has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
tommyvyo has joined #ruby
enthrops has joined #ruby
<enthrops> How do I add both instance and class methods when mixing in a module?
bradhe has joined #ruby
maxmanders has joined #ruby
ffranz has joined #ruby
<Hanmac> enthrops: you cant, use an extra module for the class methods
<enthrops> Hanmac: thanks
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
rolton has joined #ruby
tubbo has joined #ruby
Chinorro has joined #ruby
filipe has joined #ruby
icco has quit [Read error: Operation timed out]
wallclockbuilder has joined #ruby
enthrops has quit [Client Quit]
thone_ has joined #ruby
codecop has quit [Read error: Connection reset by peer]
KevinSjoberg has joined #ruby
icco has joined #ruby
skum is now known as Vainoharhainen
Vainoharhainen has quit [Changing host]
Vainoharhainen has joined #ruby
bradhe has quit [Ping timeout: 256 seconds]
thone has quit [Ping timeout: 256 seconds]
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
failshell has joined #ruby
pioz_ has joined #ruby
ariedler has quit [Remote host closed the connection]
EPIK has quit [Ping timeout: 264 seconds]
ttt has joined #ruby
justsee has quit [Ping timeout: 245 seconds]
gwb3 has joined #ruby
invisime has joined #ruby
wallcloc_ has joined #ruby
pioz has quit [Ping timeout: 246 seconds]
dallasm has quit [Remote host closed the connection]
wallclockbuilder has quit [Ping timeout: 245 seconds]
Gues_____ has joined #ruby
mellow80 has joined #ruby
Gues_____ is now known as Guest56162
soulofpeace has joined #ruby
mellow80 has quit [Client Quit]
banjara has quit [Ping timeout: 252 seconds]
ttt has quit [Ping timeout: 256 seconds]
mellow80 has joined #ruby
locriani has joined #ruby
jgarvey has joined #ruby
Arzaga has quit [Quit: Computer has gone to sleep.]
dhruvasagar has quit [Ping timeout: 256 seconds]
JesseH has left #ruby ["Peace."]
JesseH has joined #ruby
<JesseH> Find all the places where a string is put inside a string. There are four places.
<JesseH> Are you sure there's only four places? How do you know? Maybe I like lying.
<JesseH> xD
sambio has joined #ruby
icco has quit [Ping timeout: 252 seconds]
wallclockbuilder has joined #ruby
JonnieCache has quit [Quit: Reconnecting]
JonnieCache has joined #ruby
icco has joined #ruby
Morkel has quit [Quit: Morkel]
<mellow80> hi
<mellow80> does anyone know a tool
<mellow80> that allows you to capture browser events and replay them from command line?
wallcloc_ has quit [Ping timeout: 248 seconds]
<hoelzro> unfortunately =/
a_a_g has quit [Quit: This computer has gone to sleep]
<hoelzro> damn, too slow =(
<hoelzro> mellow80: I wrote something like that...
<JonnieCache> mellow80: i think selenium lets you do that
<hoelzro> ...for Perl =/
<JonnieCache> also, what kind of browser events?
dkannan has quit [Quit: dkannan]
chrishunt has joined #ruby
DrShoggoth has quit [Quit: Leaving]
cyclic has joined #ruby
vlad_sta_ has joined #ruby
<cyclic> do any of you know why I am receiving this error? http://pastebin.com/x38x8UKL
davetherat has quit [Remote host closed the connection]
adamjleonard has joined #ruby
davetherat has joined #ruby
<mellow80> thanks hoelzro JonnieCache, I want something that I can show it how I log on facebook and send a message, and do it from cli
yshh has joined #ruby
interactionjaxsn has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
gwb3 has quit [Ping timeout: 276 seconds]
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
wallclockbuilder has quit [Ping timeout: 245 seconds]
JohnBat26 has joined #ruby
vlad_starkov has quit [Ping timeout: 245 seconds]
tobyo1 has joined #ruby
<tommylommykins> hmm
<MrZYX> cyclic: googling for it brings up https://github.com/mongoid/mongoid/issues/2003
jlebrech has joined #ruby
newUser1234 has joined #ruby
jtharris has joined #ruby
<tommylommykins> ooi, how much does rewriting ruby into C typically speed things up
<cyclic> thanks MrZYX!
generali_ has joined #ruby
<banister`sleep> tommylommykins: it totally depends what you're rewriting
<JonnieCache> tommylommykins: exactly one metric shitload
<tommylommykins> ie. if I'm writing code that works with ruby arrays a lot, how much would there be to gain by rewriting in in c along the lines of rb_array_whatever();
<tommylommykins> I assum you just gain the speedup of not having to do ruby's method lookup?
stuartrexkin has joined #ruby
jtharris has quit [Client Quit]
<banister`sleep> tommylommykins: right
Guest11807 has quit [Changing host]
Guest11807 has joined #ruby
jtharris has joined #ruby
<hoelzro> that method lookup is cached though
Guest11807 is now known as C0deMaver1ck
<hoelzro> so it shouldn't be *too* bad
Shrink has joined #ruby
Shrink has quit [Changing host]
Shrink has joined #ruby
LnL has quit [Quit: LnL]
ferdev has quit [Ping timeout: 252 seconds]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
bean has joined #ruby
wallclockbuilder has joined #ruby
ferdev has joined #ruby
ph^ has quit [Ping timeout: 245 seconds]
b0oh has joined #ruby
geekbri_ has quit [Remote host closed the connection]
b0oh has quit [Client Quit]
stuartrexking has quit [Ping timeout: 245 seconds]
vlad_sta_ has quit [Remote host closed the connection]
dr_bob has left #ruby [#ruby]
Mattix has quit [Read error: Connection reset by peer]
geekbri has joined #ruby
Mattix has joined #ruby
icco has quit [Read error: Operation timed out]
bean has quit [Client Quit]
daniele91 has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
icco has joined #ruby
tealmage has quit [Remote host closed the connection]
mklappstuhl has quit [Read error: Operation timed out]
tealmage has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
jerius_ has joined #ruby
cbot_ has joined #ruby
f0ster has quit [Remote host closed the connection]
gaahrdner has joined #ruby
ananthakumaran has joined #ruby
Elhu has joined #ruby
jerius has quit [Ping timeout: 264 seconds]
jerius_ is now known as jerius
wallclockbuilder has quit [Remote host closed the connection]
wallclockbuilder has joined #ruby
cantonic has quit [Quit: cantonic]
freeayu__ has quit [Remote host closed the connection]
Proshot has quit [Quit: Leaving]
banjara has joined #ruby
jtharris has joined #ruby
frem has joined #ruby
<frem> This is a tooling question, but I was using a binary provided by a gem. I uninstalled the gem and installed the binary to /usr/bin. Now whenever I try to run the binary, I get rbenv: [binary-name]: command not found.
<frem> why is rbenv stealing my path, and how do I stop it?
<postmodern> fred, run `rbenv rehash` ?
<frem> magic! thanks, postmodern.
KevinSjoberg has quit [Quit: Computer has gone to sleep.]
<postmodern> frem, oops, so rbenv installs shims for all binaries, which auto-switch rubies before invoking the real binary
wallcloc_ has joined #ruby
<postmodern> frem, if you don't want to run `rbenv rehash` all the time, checkout chruby
icco has quit [Read error: Operation timed out]
veinofstars has joined #ruby
wallclockbuilder has quit [Ping timeout: 264 seconds]
JMcAfreak has joined #ruby
icco has joined #ruby
RORgasm has joined #ruby
ryanh has quit [Read error: Connection reset by peer]
bean has joined #ruby
<ericwood> does chruby not do path magic?
Arzaga has joined #ruby
ioNull has quit [Quit: Computer has gone to sleep.]
mklappstuhl has joined #ruby
awarner has joined #ruby
awarner has quit [Read error: Connection reset by peer]
wallcloc_ has quit [Ping timeout: 245 seconds]
soapyillusions has joined #ruby
awarner has joined #ruby
Arzaga has quit [Client Quit]
wallclockbuilder has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
tobyo1 has quit [Ping timeout: 260 seconds]
<andrew12> are there any nice libs to render a video by drawing a bunch of frames?
uris has joined #ruby
tealmage has quit [Remote host closed the connection]
haxrbyte has joined #ruby
daniele91 has quit [Quit: Sto andando via]
chussenot_ has joined #ruby
chussenot has quit [Read error: Operation timed out]
chussenot_ is now known as chussenot
nateberkopec has joined #ruby
<soapyillusions> Does anyone know of a gem to track object changes? Similar to ActiveModel::Dirty but this is not for a Rails application.
wesside has joined #ruby
chrishough has joined #ruby
banjara has quit [Ping timeout: 245 seconds]
tootubular has joined #ruby
<JonnieCache> soapyillusions: you can use activemodel::dirty outside of rails
chrishough has quit [Client Quit]
<JonnieCache> you can use it without the rest of activesupport even
chrishough has joined #ruby
<JonnieCache> very likely the best solution
arya has quit []
ryanh has joined #ruby
<injekt> ericwood: it alters env vars
cyclic has quit [Ping timeout: 245 seconds]
<soapyillusions> JonnieCache, thanks I'll look into that, I figured activemodel classes required all of rails
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<JonnieCache> no no theres lots of useful stuff in there which you can load and use a la carte
<postmodern> ericwood, what do you mean by path magic?
arturaz has quit [Ping timeout: 264 seconds]
LnL has joined #ruby
snooc has joined #ruby
<ericwood> I don't even know
<postmodern> ericwood, chruby has auto-switching support, whenever a .ruby-version is detected it will switch to that ruby
<ericwood> ah okay
<postmodern> ericwood, it's not enabled by default though, since it's not very everyone
KevinSjoberg has joined #ruby
johnnyfuchs has joined #ruby
tealmage has joined #ruby
arya has joined #ruby
<ericwood> cool
icco has quit [Read error: Operation timed out]
_maes_ has joined #ruby
snooc has quit []
pitzips has quit [Remote host closed the connection]
wesside has quit [Quit: Ice cream truck!]
tagrudev has quit [Read error: Connection reset by peer]
snooc has joined #ruby
yshh has quit [Read error: Connection reset by peer]
RurouniJones has joined #ruby
yshh has joined #ruby
bradleyprice has joined #ruby
bradhe has joined #ruby
daig0ro has quit [Ping timeout: 248 seconds]
wesside has joined #ruby
icco has joined #ruby
soapyillusions has quit [Quit: Computer has gone to sleep.]
soapyillusions has joined #ruby
subbyyy has joined #ruby
havenwood has joined #ruby
daig0ro has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
danbeck has joined #ruby
gaahrdner has quit [Read error: Connection reset by peer]
gaahrdne_ has joined #ruby
soapyillusions has quit [Client Quit]
bradhe has joined #ruby
braoru has quit [Remote host closed the connection]
subbyyy has quit [Ping timeout: 252 seconds]
acrussell has joined #ruby
thebastl has quit [Remote host closed the connection]
p8952 has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
JMcAfreak has quit [Remote host closed the connection]
ioNull has joined #ruby
danslo has joined #ruby
JMcAfreak has joined #ruby
icco has quit [Ping timeout: 252 seconds]
mattbl has joined #ruby
Proshot has joined #ruby
Yakko has quit [Remote host closed the connection]
icco has joined #ruby
p8952 has quit [Remote host closed the connection]
anderse_ has joined #ruby
Sharetel has joined #ruby
kf8a has quit [Read error: Operation timed out]
reytt has joined #ruby
xclite has joined #ruby
<Sharetel> Hi, am trying to install Redmine on a very new server Ubuntu 12.10. No matter how I try, I keep getting this error: An error occurred while installing json (1.7.7), and Bundler cannot continue.
nari has quit [Ping timeout: 264 seconds]
anderse has quit [Ping timeout: 252 seconds]
anderse_ is now known as anderse
acrussell has left #ruby [#ruby]
alex__c2022 has joined #ruby
AndChat| has joined #ruby
bluOxigen has joined #ruby
pyro111 has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
banjara has joined #ruby
danslo has quit [Ping timeout: 248 seconds]
banister`sleep has quit [Ping timeout: 248 seconds]
<Hanmac> Sharetel: does it shows you what error does happen?
io_syl has quit [Quit: Computer has gone to sleep.]
a_a_g has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has quit [Ping timeout: 245 seconds]
tomzx_mac has joined #ruby
f0ster has joined #ruby
Banistergalaxy has joined #ruby
enebo has joined #ruby
tealmage has quit [Remote host closed the connection]
<Sharetel> Hanmac: Yes it does, listed at http://pastebin.com/tq89maMd
dmiller_ has joined #ruby
wallclockbuilder has quit [Ping timeout: 245 seconds]
DaltonUS has joined #ruby
tk_ has quit [Quit: ばいばい]
<Hanmac> Sharetel: like it says ... do "apt-get install make"
wallclockbuilder has joined #ruby
dmiller has quit [Ping timeout: 255 seconds]
JesseH has quit [Ping timeout: 240 seconds]
<Sharetel> Hanmac: Do you mean I should run apt-get install make? Ok let me retry.
AndChat| has quit [Ping timeout: 245 seconds]
Vainoharhainen has quit [Quit: Leaving...]
akashj87 has joined #ruby
<tobiasvl> Sharetel: yes, the error message says it can't find the program "make" on your system, so you should probably install it
sambao21 has joined #ruby
ph^ has joined #ruby
icco has quit [Read error: Operation timed out]
danbeck has quit [Ping timeout: 260 seconds]
mikepack has joined #ruby
banister`sleep has joined #ruby
nezumi has joined #ruby
<Sharetel> Hanmac and tobiasvl : Hats off to you... indeed that was the problem, finally am through with it and your help is much appreciated!
SCommette has joined #ruby
wolcanus has quit [Remote host closed the connection]
recycle has quit [Remote host closed the connection]
iamjarvo has joined #ruby
icco has joined #ruby
huoxito has joined #ruby
<bean> really "apt-get install build-essential" is better
<bean> imo
<bean> :p
bradhe has joined #ruby
mando has joined #ruby
ckrailo has joined #ruby
<shevy> not having to do that is even better bean :>
ariedler has joined #ruby
<bean> yar
<shevy> I'd wish the linux world would switch towards app dirs
ckrailo_ has joined #ruby
ephemerian has quit [Quit: Leaving.]
ckrailo has quit [Read error: Connection reset by peer]
wallerdev has joined #ruby
ckrailo_ is now known as ckrailo
banjara has quit [Ping timeout: 276 seconds]
br4ndon has joined #ruby
aganov has quit [Remote host closed the connection]
puppeh has quit [Remote host closed the connection]
KevinSjoberg has quit [Quit: Textual IRC Client: www.textualapp.com]
cmarques has joined #ruby
Sharetel has left #ruby [#ruby]
generali_ has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
JesseH has joined #ruby
hogeo has joined #ruby
vlad_starkov has joined #ruby
<frem> shevy: there's been a few attempts like 0install and gobolinux. checkinstall is probably the best compromise right now.
freezey has joined #ruby
security has joined #ruby
wsterling has joined #ruby
kelabot has joined #ruby
icco has quit [Read error: Operation timed out]
chussenot has quit [Quit: chussenot]
aetaric has joined #ruby
carlyle has joined #ruby
dblessing has quit [Read error: Connection reset by peer]
dblessing_ has joined #ruby
arya_ has joined #ruby
icco has joined #ruby
wolcanus has joined #ruby
tealmage has joined #ruby
arya has quit [Ping timeout: 248 seconds]
v0n has joined #ruby
dmiller has joined #ruby
dmiller_ has quit [Ping timeout: 245 seconds]
GeissT has quit [Quit: MillBroChat AdIRC User]
Sigma00 has joined #ruby
Sigma00 has quit [Client Quit]
wolcanus has quit [Ping timeout: 260 seconds]
<tubbo> what the hell is build-essential anyway
<tubbo> i have no idea what it does but it seems like i always need to install it when i set up ubuntu boxes ;D
<MrZYX> make, automake, gcc, etc
wolcanus has joined #ruby
jlast has joined #ruby
<JesseH> YOUR COMPLETE BUILD ESSENTIALS MAN
snuglepuss has joined #ruby
Assurbanipal has quit [Remote host closed the connection]
tobyo1 has joined #ruby
arya_ has quit [Ping timeout: 252 seconds]
NiteRain has joined #ruby
randomautomator has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
arya has joined #ruby
ngcazz has joined #ruby
icco has quit [Ping timeout: 252 seconds]
generali_ has joined #ruby
alx- has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
icco has joined #ruby
carloslopes has quit [Remote host closed the connection]
mengu has quit [Read error: Connection reset by peer]
mengu has joined #ruby
lukeholder has quit [Quit: Computer has gone to sleep.]
banjara has joined #ruby
generali_ has quit [Remote host closed the connection]
generalissimo has joined #ruby
t-mart has joined #ruby
Sigma00 has joined #ruby
f0ster has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
girija has joined #ruby
rippa has joined #ruby
chussenot has joined #ruby
octarine has joined #ruby
d11wtq_ has joined #ruby
tealmage has quit [Remote host closed the connection]
<nezumi> Cool, percussion cap!
d11wtq has quit [Ping timeout: 264 seconds]
mikecmpbll has joined #ruby
tommyvyo has quit [Quit:]
apeiros has quit [Remote host closed the connection]
danslo has joined #ruby
danslo has quit [Client Quit]
icco has quit [Read error: Operation timed out]
tomzx_mac has quit [Ping timeout: 252 seconds]
security is now known as megha
banjara has quit [Ping timeout: 245 seconds]
icco has joined #ruby
cantonic has joined #ruby
daig0ro has quit [Quit: Textual IRC Client: www.textualapp.com]
mafs has joined #ruby
mafs has quit [Excess Flood]
beiter has quit [Quit: beiter]
mafs has joined #ruby
mafs has quit [Excess Flood]
chussenot has quit [Read error: Operation timed out]
osvico has quit [Read error: Connection reset by peer]
Xlab has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
tomzx_mac has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
`brendan has quit [Ping timeout: 246 seconds]
Morkel has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
thebastl has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
keymone has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
mafs has joined #ruby
mafs has quit [Excess Flood]
troessner has quit [Ping timeout: 256 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
<ericwood> how i ruby?
pyrac has quit [Ping timeout: 245 seconds]
chandankumar has quit [Read error: Connection reset by peer]
mafs has joined #ruby
mafs has quit [Excess Flood]
<alexdoom> bang hands on keyboard
<ericwood> that's not a good start
<alexdoom> its A start
grenierm_ has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
Chinorro has quit [Quit: Leaving]
osvico has joined #ruby
<JonnieCache> bang your face on the keyboard
s2013 has joined #ruby
<ericwood> that's even worse
<JonnieCache> hit more keys ==> greater chance of success
mafs has joined #ruby
mafs has quit [Excess Flood]
s2013 has left #ruby [#ruby]
<ericwood> this is ruby, not perl
<JonnieCache> it works better in a stronly typed language
icco has quit [Read error: Operation timed out]
Xlab has quit [Remote host closed the connection]
mafs has joined #ruby
mafs has quit [Excess Flood]
<ericwood> wouldn't that increase the chance of random noise causing failures?
<ericwood> duck typing would be more forgiving
Xlab has joined #ruby
idkazuma has quit [Remote host closed the connection]
<axl_> in embedded ruby, what is the difference between `<%` and `<%-` ?
alup has quit [Quit: Leaving]
mafs has joined #ruby
mafs has quit [Excess Flood]
<ericwood> there isn't one as far as I know
<waxjar> <%= also prints the value
<waxjar> i believe
idletom has joined #ruby
`brendan has joined #ruby
<axl_> cool
<axl_> thanks
<ericwood> <% <%= and <%# are the only ones you should really care about
mafs has joined #ruby
mafs has quit [Excess Flood]
sambao21 has quit [Quit: Computer has gone to sleep.]
arya_ has joined #ruby
<ericwood> I think someone in your codebase just likes typing extra characters
icco has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
speaking1ode has quit [Read error: Operation timed out]
xlab_ has joined #ruby
speakingcode has joined #ruby
<JonnieCache> the - is to do with the whitespace
xlab_ has quit [Remote host closed the connection]
mafs has joined #ruby
mafs has quit [Excess Flood]
<JonnieCache> if you have the - it doesnt print extra whitespace, or it removes whitespace, or something
arya has quit [Ping timeout: 256 seconds]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<ericwood> oh neat
<JonnieCache> just use haml instead :)
xlab_ has joined #ruby
<waxjar> haml is slow
mafs has joined #ruby
mafs has quit [Excess Flood]
<waxjar> use Mote, it's beautiful :D https://github.com/soveran/mote
<JonnieCache> haml is slow?
<JonnieCache> they only get compiled once man
jamie_ca_ has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
<waxjar> hmm, really?
<JonnieCache> yeah in production it all gets cached
thebastl has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
rickmasta has joined #ruby
<JonnieCache> maybe in dev it is slow but i havent noticed
sleetdrop has quit [Ping timeout: 251 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
<JonnieCache> because it makes actually writing the templates 100x faster
grenierm_ has left #ruby [#ruby]
mafs has joined #ruby
mafs has quit [Excess Flood]
bean has quit [Quit: Computer has gone to sleep.]
Xlab has quit [Ping timeout: 264 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
pcarrier has joined #ruby
sambao21 has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
<elaptics> axl_: I think the difference is line breaks in the output source
arya has joined #ruby
chussenot has joined #ruby
<elaptics> axl_, ericwood : using <%- means that you won't get any extraneous line breaks
mafs has joined #ruby
mafs has quit [Excess Flood]
snooc has quit [Ping timeout: 245 seconds]
<axl_> elaptics: hmmmmm… interesting
darkapex has joined #ruby
iamjarvo has quit [Quit: Leaving.]
vlad_sta_ has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
arya_ has quit [Ping timeout: 264 seconds]
mafs has joined #ruby
mafs has quit [Excess Flood]
troessner has joined #ruby
mafs has joined #ruby
mafs has quit [Excess Flood]
filipe has quit [Quit: Leaving]
s2O13 has joined #ruby
<s2O13> how do i set width on ruby string?
vlad_sta_ has quit [Remote host closed the connection]
vlad_sta_ has joined #ruby
<Hanmac> s2013 "width"? ruby strings grow dynamic
vlad_starkov has quit [Ping timeout: 245 seconds]
<ericwood> lol
<s2O13> what i mean is that im trying to print out a row and column of numbers and i want to format them so they output nicely
<s2O13> max digits would be 3 for the number, min is 1
<ngcazz> use the % operator
<ngcazz> although... i think there was a gem to do just that
<ngcazz> column layouts etc
<s2O13> no gems just plain ruby. im trying to learn ruby so im trying ot use gems as less as possible
<ngcazz> http://rubygems.org/gems/text-format this might help
<ngcazz> oh right
<ngcazz> i guess % is what you want
<banister`sleep> s2O13: just use slice?
<s2O13> its printf?
icco has quit [Read error: Operation timed out]
<injekt> s2O13: "% 3d" % number
<injekt> that's print " 1" for 1 and " 20" for 20 and "300" for 300 if that's what you mean
<injekt> that'll*
<s2O13> yeah
<injekt> you can adapt as you wish
<s2O13> oh ok
<ngcazz> yeah basically it's like printf
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
banjara has joined #ruby
<s2O13> injekts thing worked i believe. ive never seen that before. what is that called?
v0n has quit [Ping timeout: 248 seconds]
<ngcazz> String#%
<injekt> yeah, see sprintf for more info
<ngcazz> alternatively there's also sprintf
icco has joined #ruby
<injekt> I guess it would actually be "%3s" rather than "% 3d"
enebo has quit [Read error: Connection reset by peer]
enebo has joined #ruby
ofcan has joined #ruby
<s2O13> would i need to do puts ?
<ofcan> hi! how to always truncate on (lets say) beginning of Nth paragraph?
carloslopes has joined #ruby
<injekt> yeah
<s2O13> so puts "%3s" "#{num}" ?
<ngcazz> either puts or p
<ngcazz> puts "%3s" % num
duosrx has quit [Remote host closed the connection]
duosrx has joined #ruby
alex__c2022 has quit [Read error: Operation timed out]
weeb1e has quit [Quit: No Ping reply in 180 seconds.]
Hanmac has quit [Ping timeout: 252 seconds]
dblessing_ has quit [Remote host closed the connection]
<s2O13> weird. didnt work. it just outputted one number per row. http://paste.ubuntu.com/5713564/
rakl has joined #ruby
dblessing has joined #ruby
alex__c2022 has joined #ruby
<nezumi> use print instead of puts
mmitchell has quit [Remote host closed the connection]
<s2O13> oh right oops
<s2O13> much better
<s2O13> i used print before but switched to puts by mistake
<s2O13> but other than that, does the code look right? basically you give it an argument and it prints out the multiplication table from 1 tothat argument
<injekt> s2O13: I do recommend using spaces over tabs
weeb1e has joined #ruby
`brendan has quit [Ping timeout: 248 seconds]
zeade has joined #ruby
Guest56162 is now known as RubNoob
kelabot has quit [Ping timeout: 245 seconds]
<s2O13> its 2 spaces right?
<s2O13> but is the logic ok?
niceguyjames has quit [Quit: Computer has gone to sleep.]
<injekt> s2O13: yup
jbueza has joined #ruby
cloke has joined #ruby
<s2O13> cool thanks
bean has joined #ruby
ry4nn has joined #ruby
banjara has quit [Ping timeout: 245 seconds]
cha1tanya has joined #ruby
icco has quit [Read error: Operation timed out]
Hanmac has joined #ruby
soulofpeace has quit [Ping timeout: 252 seconds]
<s2O13> if i want to do a loop that goes down from 100 to 1.. is while loop best or something like 100.downto(1) ?
icco has joined #ruby
dallasm_ has joined #ruby
slainer68 has quit [Remote host closed the connection]
<injekt> s2O13: while loop is usually faster every time, but that's not really the way of ruby, most would use 100.downto(1)
davetherat has quit [Remote host closed the connection]
davetherat has joined #ruby
<nezumi> I think the downto is clearer
mmitchell has joined #ruby
<injekt> definitely
<s2O13> oh ok
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
a_a_g has quit [Quit: This computer has gone to sleep]
<s2O13> i know in programming there are a thousand ways of doing something and since im new to ruby i want to know what is generally considered the optimal way
<injekt> writing clear code is the way you want to do, and 100.downto(1) is extremely clear
dblessing_ has joined #ruby
dblessing has quit [Read error: Connection reset by peer]
dblessing_ is now known as dblessing
Voodoofish430 has joined #ruby
<s2O13> is there anyway to reverse a number?
yshh has quit [Read error: Connection reset by peer]
yshh_ has joined #ruby
<s2O13> like 911 would be 119
lkba has quit [Ping timeout: 246 seconds]
<s2O13> cause i know .reverse only works ons tring
Davey has joined #ruby
<wuest> num.to_s.reverse.to_i
<s2O13> thats what i was thinking
<nezumi> 119.to_s.reverse.to_i
<s2O13> is that the best way?
<injekt> yes
<s2O13> ok cool
<s2O13> another question. sorry i have bunch of questions. is there any performance difference in writing out multiple functions instead of putting everythign in one function?
camilasan has quit [Remote host closed the connection]
<injekt> method calls have an overhead, but you shouldn't worry about it
dankest has joined #ruby
akhet has joined #ruby
<injekt> it's not much :)
yshh has joined #ruby
tjbiddle has joined #ruby
yshh_ has quit [Read error: Connection reset by peer]
apeiros has joined #ruby
rkj has joined #ruby
jlebrech has quit [Quit: Leaving]
mengu has quit [Read error: Connection reset by peer]
mengu_ has joined #ruby
pi3r has quit [Quit: Leaving]
banister`sleep has quit [Remote host closed the connection]
brianpWins has joined #ruby
icco has quit [Read error: Operation timed out]
io_syl has joined #ruby
banisterfiend has joined #ruby
kristofers has quit [Read error: Connection reset by peer]
icco has joined #ruby
etcetera has joined #ruby
<ngcazz> that makes me wonder
<ngcazz> imagine an activerecord collection
<ngcazz> or an array or whatever. an enumerable
<ngcazz> and you have a method invocation chain on that enumerable
etcetera has quit [Client Quit]
<ngcazz> select().reject().map() etc etc
pkill has joined #ruby
RurouniJones has quit [Remote host closed the connection]
<ngcazz> each call will iterate over the full enumerable that the previous call returns
jdunck has joined #ruby
kristofers has joined #ruby
<ngcazz> right?
<injekt> no
danman has joined #ruby
skattyadz has quit [Quit: skattyadz]
<injekt> the enumerables are chained, do [1,2,3].map it wont do anything until you add a block which is how you can chain them
dblessing has quit [Remote host closed the connection]
dblessing has joined #ruby
<ngcazz> ofc, imagine there's a block where there's the empty parenthesis
<ngcazz> *es
bean has quit [Quit: Computer has gone to sleep.]
<injekt> well, being specific to an activerecord collection, no it wont, otherwise yes it will
<Hanmac> with lazy even the chains can be chained ;P
andikr has quit [Remote host closed the connection]
<ngcazz> so you would have to use Enumerable.lazy so that each call won't multiply the number of calls
<ngcazz> right?
pioz_ has quit [Quit: This computer has gone to sleep]
<Hanmac> yeah
sambao21 has quit [Quit: Computer has gone to sleep.]
<ngcazz> since that's not available before 2.0
<ngcazz> one has to be careful with enumerable method chaining
jerius has quit []
itechjunkie has left #ruby [#ruby]
_bart has quit [Ping timeout: 252 seconds]
<injekt> I think it's pretty obvious how it works, though
<s2O13> so im writing something that gets the sum of first 1000 prime numbers.. for some reason its giving me the wrong value unless i do while j < 1002 (didnt know what other way to do this loop). also for some reason my editor also tabs it. http://paste.ubuntu.com/5713644/
banjara has joined #ruby
adkron_ has joined #ruby
chussenot has quit [Quit: chussenot]
jlast has quit [Remote host closed the connection]
_bart has joined #ruby
<banisterfiend> s2O13: (1..Float::INFINITY).lazy.select(&:prime?).first(1000).inject(:+)
icco has quit [Read error: Operation timed out]
<banisterfiend> require 'prime'
<banisterfiend> heh heh
<ngcazz> ruby kicks ass
<ngcazz> :D
<injekt> banisterfiend: already mentioned that, s2O13 is writing stuff from scratch, though
nga4 has joined #ruby
chrishough has quit [Quit: chrishough]
adkron has quit [Ping timeout: 260 seconds]
Xlab has joined #ruby
tylersmith has joined #ruby
<ngcazz> if you have a functional programming background
etcetera has joined #ruby
<nezumi> come to the Lone Star Ruby Conference
<ngcazz> lazy enumerables are a lifesaver
<injekt> haskell <3
xcv has quit [Remote host closed the connection]
yann_ck has quit [Ping timeout: 258 seconds]
<ngcazz> injekt: definitely
icco has joined #ruby
zastern has joined #ruby
pioz_ has joined #ruby
vlad_starkov has joined #ruby
<s2O13> anyways injekt do you know whats wrong with the code?
wsterling has quit [Remote host closed the connection]
danman has quit [Quit: danman]
anderse has quit [Ping timeout: 252 seconds]
<s2O13> it works but i dont know why its j < 1002
artofraw has joined #ruby
<ngcazz> take 1000 $ foldr 0 (+) $ filter (prime) [1..]
snooc has joined #ruby
<ngcazz> actually no, foldr before take
`brendan has joined #ruby
xlab_ has quit [Ping timeout: 256 seconds]
jerius has joined #ruby
<s2O13> i have no idea what that means
iamjarvo has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
unflores has quit [Quit: unflores]
vlad_sta_ has quit [Ping timeout: 245 seconds]
<waxjar> foldr is like inject, right?
maxmanders has quit [Quit: Computer has gone to sleep.]
wsterling has joined #ruby
<ngcazz> basically the same code as what banisterfiend wrote in haskell
<ngcazz> yes
<s2O13> oh
<s2O13> okay but anyone knows why my code needs j < 1002 not j <1000 ?
dagobah has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
brianpWins has quit [Quit: brianpWins]
banjara has quit [Ping timeout: 276 seconds]
<apeiros> s2O13: use better variable names
freezey has quit [Remote host closed the connection]
<apeiros> you might figure out yourself
indyrl has joined #ruby
<apeiros> it's fascinating you get a correct result at all
ngcazz has quit [Disconnected by services]
danneu has joined #ruby
gaahrdne_ has quit [Ping timeout: 245 seconds]
chussenot has joined #ruby
ngcazz has joined #ruby
<s2O13> okay i changed j to primen and i to primesum.. im still not sure why its not working. i tried until primen == 1000 didnt work either
<ngcazz> re
wargasm has joined #ruby
<apeiros> s2O13: care to paste your current code?
Vivekananda has quit [Quit: Ex-Chat]
Elhu has quit [Quit: Computer has gone to sleep.]
ferdev has quit [Ping timeout: 252 seconds]
tjbiddle_ has joined #ruby
duosrx has quit [Remote host closed the connection]
sambao21 has joined #ruby
<apeiros> s2O13: what is "primen"?
icco has quit [Read error: Operation timed out]
<s2O13> number of primes that has been added
Tricon has joined #ruby
vlad_starkov has joined #ruby
<s2O13> i want to get the sum of the first 1000 prime numbers
<apeiros> somehow I thought that was primesum…
sayan has joined #ruby
<s2O13> primesum is the sum
pcarrier has quit [Quit: Computer has gone to sleep.]
<s2O13> its the sum of the prime numbers u ntil that point
ferdev has joined #ruby
<apeiros> so your condition is "iterate until the sum of primes is 1002"?
<apeiros> that's different from what you stated above…
anderse has joined #ruby
<apeiros> also, why call it primen if you describe it as number_of_primes?
<s2O13> no until the number of primes that has been added is 1000 thats how it should be but that doesnt work. it works when you put 1002
<apeiros> s2O13: line 23 says `until primen == 1002`
<apeiros> since primen is number of primes added…
<s2O13> yes
<apeiros> you don't see how that's entirely different from what you say?
<s2O13> how is that different from what i said?
icco has joined #ruby
mockra has joined #ruby
<s2O13> that code works and returns the right number
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
yshh has joined #ruby
<apeiros> prime? is broken too btw., 1 is not a prime
<s2O13> but im trying to figure out why is it 1002
<s2O13> hmm
<s2O13> one sec
Ripp__ has joined #ruby
rupee has joined #ruby
<s2O13> yeah i think that might be it
vlad_starkov has quit [Remote host closed the connection]
banjara has joined #ruby
Coolhand has quit [Remote host closed the connection]
<apeiros> and 0 isn't prime either
<s2O13> ok works now. thanks
marcdel has joined #ruby
c0rn has joined #ruby
elaptics is now known as elaptics`away
nomenkun has quit [Ping timeout: 264 seconds]
jonahR has quit [Quit: jonahR]
wsterling has quit [Remote host closed the connection]
Zai00 has quit [Quit: Zai00]
moted has quit [Remote host closed the connection]
etcetera has quit []
chussenot has quit [Quit: chussenot]
moted has joined #ruby
Coolhand has joined #ruby
k610 has quit [Read error: Connection reset by peer]
hmarr has quit []
JoeHazzers has joined #ruby
freakazoid0223 has joined #ruby
k610 has joined #ruby
<JoeHazzers> is there a way i can access the std-lib docs locally, or otherwise generate them?
etcetera has joined #ruby
<Hanmac> JoeHazzers: Internet?
<injekt> JonnieCache: cd into the ruby source and rdoc lib
<injekt> Hanmac: 'locally'
<Hanmac> you could spider the website
woolite64__ is now known as woolite64
<injekt> JonnieCache: if you've used rvm then rvm can generate them for you, I don't
<JoeHazzers> Hanmac: or not.
<injekt> Hanmac: wtf why would anyone do that
<epochwolf> JoeHazzers: are you on a mac?
<JoeHazzers> no.
<injekt> JonnieCache: how did you install ruby?
sepp2k has joined #ruby
<JoeHazzers> who on earth is JonnieCache
pcarrier has joined #ruby
<injekt> er
<injekt> my bad
<JoeHazzers> :3
<injekt> damn tab complete
DonRichie has joined #ruby
chrishough has joined #ruby
<injekt> JonnieCache: sorry :)
<injekt> JoeHazzers: how did you install ruby?
<JoeHazzers> rvm.
<injekt> rvm docs generate
<epochwolf> JonnieCache is a less popular rock star
<injekt> iirc
nga4 has quit []
jkamenik has joined #ruby
icco has quit [Read error: Operation timed out]
adkron has joined #ruby
wsterling has joined #ruby
C0deMaver1ck has quit [Ping timeout: 245 seconds]
interactionjaxsn has quit [Remote host closed the connection]
<JoeHazzers> so am i missing something, or do i not have a local copy of documentation about RSS, Timeout, URI, things like that?
interactionjaxsn has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
<injekt> JoeHazzers: did you generate it like I said?
zastern has quit [Remote host closed the connection]
k610 has quit [Ping timeout: 240 seconds]
<JoeHazzers> yes.
basex has joined #ruby
wyattg has joined #ruby
C0deMaver1ck has joined #ruby
jgrevich has joined #ruby
<injekt> JoeHazzers: rvm docs open
jblack has joined #ruby
C0deMaver1ck is now known as Guest7316
<JoeHazzers> that doesn't work too well over a tty, because let's assume for a moment that i'm not actually sitting at said machine for whatever bizzare reason
<JoeHazzers> so the bottom line is, i can't access them with tools like ri?
daniel_- has joined #ruby
<injekt> eh
<injekt> yeah
<injekt> ri Timeout says no docs?
adkron_ has quit [Ping timeout: 252 seconds]
sayan has quit [Read error: Connection reset by peer]
icco has joined #ruby
tvw has quit []
<JoeHazzers> yeah, log says something lovely
* JoeHazzers goes and fixes
<injekt> it might be worth visiting #rvm, I don't use rvm because it's shit, so I generate them myself (or ruby-build does it for me)
etcetera has quit []
dallasm_ has quit [Remote host closed the connection]
<JoeHazzers> unfortunately, every modern "cool" language likes to create a massive mess of its installed modules/gems/packages/whatever, and i need something i can nuke from high orbit 8]
interactionjaxsn has quit [Ping timeout: 272 seconds]
pioz_ has quit [Quit: This computer has gone to sleep]
<banisterfiend> JoeHazzers: here's another option: http://showterm.io/fbd75377eaef31e0887a4
oneirophren has quit [Quit: Lost terminal]
<injekt> lol
dogonthehorizon has joined #ruby
zastern has joined #ruby
dallasm_ has joined #ruby
motto has joined #ruby
<banisterfiend> yeah lol @ the weird color codes
dallasm__ has joined #ruby
Spooner has quit [Quit: Leaving]
wsterling has quit [Read error: Connection reset by peer]
zastern has quit [Remote host closed the connection]
wsterling has joined #ruby
<jblack> I split a utf-8 string and stored the components into a hash. I can puts the individual elements, but when I try using puts or pp on the hash, I get an encoded, unintelligible string ( http://pastebin.com/LxqZgVpU ). Is there a simple way to downconvert the encoding to a simpler form of ascii?
m8 has quit [Ping timeout: 245 seconds]
<jblack> the source file is some windows log from a coworker
zastern has joined #ruby
realDAB has joined #ruby
forlin has quit [Remote host closed the connection]
dallasm_ has quit [Remote host closed the connection]
<jblack> and hello, good morning/afternoon =)
hogeo has quit [Remote host closed the connection]
pioz has joined #ruby
brianpWins has joined #ruby
Ontolog has joined #ruby
havenwood has joined #ruby
<apeiros> jblack: you specified the wrong encoding
<apeiros> that looks like utf-8
<apeiros> gah
<apeiros> *that looks like utf-16
<apeiros> and I bet your string's encoding is not set to utf-16
<jblack> I haven't intentionally set any encoding.
<apeiros> (why utf-16? because you have a lot of null-byte+byte pairs)
akhet has quit [Ping timeout: 264 seconds]
<apeiros> jblack: not setting an encoding doesn't make them go away.
<apeiros> ruby will use the default encoding then, which is probably utf-8 (and thus: wrong)
<Hanmac> specialy its UTF-16BE
<realDAB> half-price on The Well-Grounded Rubyist today only
niklasb has joined #ruby
troessner has quit [Ping timeout: 264 seconds]
fermion has joined #ruby
<realDAB> use code dotd0416tw at http://www.manning.com/black2
<jblack> This came from a windows system, so I'd believe it if it were some sort of 16 bit encoding
mahmoudimus has joined #ruby
<realDAB> go forth and purchase
* apeiros 's ruby grounding is as solid as a concrete foundation :D
<s2O13> that book is really good
<apeiros> I would recommend the well grounded rubyist to everybody else, though :)
supernullset has joined #ruby
kenneth has quit [Quit: kenneth]
<injekt> isn't that book old now?
<injekt> eh, what book isn't old I guess
icco has quit [Read error: Operation timed out]
Morkel has quit [Quit: Morkel]
<s2O13> it covers 1.9
sylvinus has quit [Quit: sylvinus]
<s2O13> better than 90% of rails book out there
<injekt> 1.9 is many years ago for me
<injekt> :D
ehellman has quit []
<apeiros> realDAB: new edition, covering 2.0?
<jblack> I do have plenty of trouble coping with encodings. I suppose the next step for me is to google up a bit on File.open and specify an encoding ?
<banisterfiend> realDAB: is it updated for 2.0 ?
<realDAB> apeiros: in the works
Morkel has joined #ruby
<realDAB> banisterfiend: in the works
<banisterfiend> cool
<apeiros> jblack: use real documentation, not google.
<injekt> realDAB: nice!
<apeiros> jblack: real documentation: ri (bash/shell tool), or rdoc.info or ruby-doc.org
<banisterfiend> realDAB: be sure to mention that unbound methods (on modules) can now be bound to arbitrary objects, i think that's a very cool feature
QKO has quit [Remote host closed the connection]
Davey has quit [Quit: Computer has gone to sleep.]
<apeiros> banisterfiend, realDAB - better suggestion: let the channel proofread the book ;-D
<jblack> Usually I end up at ruby-doc via google. =)
jonathanwallace has quit [Quit: WeeChat 0.3.9.2]
<s2O13> half of programming nowadays is googling
* apeiros shakes head
rton has joined #ruby
<apeiros> can't help those who don't want help…
icco has joined #ruby
postmodern has quit [Quit: Leaving]
<realDAB> banisterfiend: yeah, that is rather cool
QKO has joined #ruby
<banisterfiend> realDAB: you can do stuff like this with it: https://gist.github.com/banister/34c7d9e7eb3e925a40e7
dstarh has joined #ruby
rolton has quit [Quit: Konversation terminated!]
<dstarh> is there any way to comment inside a heredoc?
jonathanwallace has joined #ruby
<dstarh> google giving me nothing on the subject
<jblack> pardon me, but be cool. I'm appreciative of your help, and I'm paying very close attention to your advice. I'm playing with ri on one console and I have rubydoc on another browser. This might surprise you, but ruby-doc.org has been indexed.
<jblack> And I'm very thankful you took the time to answer me and point me in the right direction. Thank you. =)
<s2O13> ruby-doc is a good source but there are better ones that explains things better
<s2O13> why limit yourself to one source?
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
<jblack> That's why I typically rely on search engines. I can look at a lot of possible answers at once.
<jblack> That's why I don't undersatnd why apeiros is giving me a hard time.
tommyvyo has joined #ruby
ShellFu1 has quit [Ping timeout: 256 seconds]
bricker has quit [Quit: leaving]
wallclockbuilder has quit [Remote host closed the connection]
aaronmcadam has quit [Ping timeout: 258 seconds]
Heero has quit [Ping timeout: 255 seconds]
pcarrier has quit [Ping timeout: 252 seconds]
smigg has joined #ruby
mrsolo has joined #ruby
kirun has joined #ruby
emmanuelux has joined #ruby
<jblack> Anyway, thank you very much, apeiros. That was just the pointer I needed (to set encoding on open).
interactionjaxsn has joined #ruby
mattbl has joined #ruby
Heero has joined #ruby
Heero has joined #ruby
Heero has quit [Changing host]
bricker has joined #ruby
dallasm__ has quit [Remote host closed the connection]
<Inv1s1ble> I'm trying to use Middleman and I'm having trouble with using RedCloth. Whenever I try to do a "require 'redcloth'" in the config.rb, I get a config.rb:5:in `require': cannot load such file -- rdiscount (LoadError)
jamesfung14 has joined #ruby
<Inv1s1ble> even though RedCloth is installed in ~/.gems
pkill has quit [Ping timeout: 245 seconds]
<Inv1s1ble> and if I run irb, I can require 'redcloth' and it returns true
nik_-_ has joined #ruby
<realDAB> 900 people in the channel
Ontolog_ has joined #ruby
<Inv1s1ble> the stack trace includes ~/.gems/ruby/1.9.1/gems/
pcarrier has joined #ruby
codecop has joined #ruby
<Inv1s1ble> realDAB, yep...that's a lot of peoples
<Inv1s1ble> there are four over in #middleman
veinofstars has quit [Read error: Connection reset by peer]
icco has quit [Read error: Operation timed out]
veinofstars has joined #ruby
rton has left #ruby [#ruby]
Guest7316 has quit [Changing host]
Guest7316 has joined #ruby
Guest7316 is now known as C0deMaver1ck
Ontolog has quit [Ping timeout: 248 seconds]
sixEch0_ has joined #ruby
maxmanders has joined #ruby
nkr has quit [Ping timeout: 245 seconds]
icco has joined #ruby
<dogonthehorizon> Greetings all, simple Ruby question: I'm trying to assign values to an array from STDIN but when I iterate over this array later the values are rest to their default. Gist here: https://gist.github.com/dogonthehorizon/5398033 Is there something I'm fundamentally not grasping about array assignment in Ruby?
m8 has joined #ruby
uris has quit [Ping timeout: 245 seconds]
motto has quit [Ping timeout: 252 seconds]
blaxter has quit [Ping timeout: 258 seconds]
m8 has quit [Read error: Connection reset by peer]
ferdev has quit [Quit: ferdev]
Ripp___ has joined #ruby
browndawg has quit [Quit: Leaving.]
<apeiros> jblack: google will give you *a lot* of false positives
<banisterfiend> dogonthehorizon: yes :)
razibog has joined #ruby
Guest__ has joined #ruby
<apeiros> even those times it happens to present ruby related results
<apeiros> it can still get the version wrong etc.
mattbl has quit [Quit: This computer has gone to sleep]
m8 has joined #ruby
bigkevmcd has quit [Ping timeout: 256 seconds]
<banisterfiend> dogonthehorizon: https://gist.github.com/banister/5398088
<banisterfiend> dogonthehorizon: updated to fix a bug (i didnt remove the puts value line)
k610 has joined #ruby
tenmilestereo has joined #ruby
Ripp__ has quit [Ping timeout: 240 seconds]
s2O13 is now known as s2013
rton has joined #ruby
maycon has joined #ruby
dhruvasagar has joined #ruby
nik_-_ has quit [Quit: nik_-_]
tubbo has left #ruby [#ruby]
rton has left #ruby [#ruby]
motto has joined #ruby
tevio has quit [Remote host closed the connection]
kelabot has joined #ruby
good has joined #ruby
mattbl has joined #ruby
<dogonthehorizon> banisterfiend, Huh, interesting. Thanks for the pointers I'll have to read up on different kinds of loops :)
wsterling has quit [Read error: Connection reset by peer]
kpshek has quit []
<banisterfiend> dogonthehorizon: i think you should read up on the way ruby variables/objects work actually
wsterling has joined #ruby
ffranz has quit [Ping timeout: 252 seconds]
<banisterfiend> dogonthehorizon: the misunderstanding there was quite fundamental, no offense ;)
kpshek has joined #ruby
m8 has quit [Ping timeout: 252 seconds]
<dogonthehorizon> banisterfiend, None taken! Thanks again
strmpnk has joined #ruby
dogonthehorizon has quit [Quit: Leaving]
Czupa has quit [Remote host closed the connection]
ffranz has joined #ruby
rdark has quit [Quit: leaving]
kenneth has joined #ruby
jlast has joined #ruby
icco has quit [Read error: Operation timed out]
jhlzst has joined #ruby
BizarreCake has quit [Remote host closed the connection]
<jhlzst> hi
<jhlzst> is net::smtp thread safe
<jhlzst> ?
<jblack> apeiros: That's true. Definitely have to sift through chaff to find the wheat. =)
rton has joined #ruby
<apeiros> jhlzst: nothing is thread safe unless explicitly stated otherwise
<jhlzst> is there any ruby smtp client that is thread safe?
mikepack has quit [Remote host closed the connection]
nkr has joined #ruby
dmiller has quit [Remote host closed the connection]
<apeiros> jhlzst: unlikely. just use the code properly.
<apeiros> s/code/lib/
<jblack> You could just put all of your smtp clients in a lock.
m8 has joined #ruby
icco has joined #ruby
<apeiros> a lib does not need to be thread safe in order to be used in a threaded application
<apeiros> also it's rarely ever possible to make a library truly thread safe.
<apeiros> (in a meaningful way, that is)
SCommette_ has joined #ruby
<Xeago> if everything would be threadsafe we would require quantum copmuters to keep up with the current expected speed
motto has quit [Ping timeout: 240 seconds]
akhet2 has joined #ruby
fangari has joined #ruby
elux has joined #ruby
<dinoex> hi, any way to debug SSL certiftcate verification?
mattbl has quit [Quit: This computer has gone to sleep]
Guest__ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
uris has joined #ruby
<dinoex> i verified that "ca_file" is set and valid.
SCommette has quit [Ping timeout: 252 seconds]
SCommette_ is now known as SCommette
<dinoex> worked with ruby 1.8.x bit not with 1.9
bigkevmcd has joined #ruby
AndChat| has joined #ruby
ngcazz has quit [Ping timeout: 245 seconds]
<Hanmac> dinoex: "not working" is not a valid error message
mikepack has joined #ruby
<apeiros> raise "not working"
<dinoex> state=SSLv3 read server certificate B: certificate verify failed
Ripp___ has quit [Quit: This computer has gone to sleep]
felipec has joined #ruby
<apeiros> I swear, if I ever should create a very widely used library, I'll add that
kenneth has quit [Ping timeout: 260 seconds]
<felipec> what is the difference betwen sitedir and vendordir?
Banistergalaxy has quit [Ping timeout: 245 seconds]
zastern has quit [Remote host closed the connection]
Voodoofish4301 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<Hanmac> felipec the sitedir is also used by some distributions to put there packages inside
<felipec> Hanmac: as opposed to?
<Xeago> stuff you put in vendor for your app
Voodoofish430 has quit [Ping timeout: 255 seconds]
<felipec> I don't understand
<felipec> mkmf always installs to sitelib
<Hanmac> ruby has 8 different paths where it could require something
<felipec> who installs to vendodir?
alvaro_o has joined #ruby
c0rn has quit [Ping timeout: 246 seconds]
motto has joined #ruby
celinedior has quit [Quit: celinedior]
Ontolog_ has quit [Remote host closed the connection]
<felipec> Hanmac: yeah, and I suppose each one of them has their purpose
Ontolog has joined #ruby
<felipec> I'm trying to find out where a distro package should be installing
<dinoex> I checked that ca_file is present in the SSL-context
m8 has quit [Ping timeout: 248 seconds]
mikepack has quit [Ping timeout: 272 seconds]
tonini has joined #ruby
<Hanmac> >> $:.map(&RbConfig::CONFIG.method(:key))
<eval-in> Hanmac => ["sitelibdir", "sitearchdir", "sitedir", "vendorlibdir", "vendorarchdir", "vendordir", "rubylibdir", "rubyarchdir"] (http://eval.in/16557)
rumba has joined #ruby
icco has quit [Read error: Operation timed out]
<rumba> hi! how do i get the directory of the current running script in ruby 1.9.2? __FILE__ returns only the file name
<felipec> Hanmac: that doesn't help at all, yeah, there's a bunch of places, so?
<felipec> which is the correct one for packaged files?
chandankumar has joined #ruby
<apeiros> rumba: __FILE__ also doesn't return the file name of the script
c0rn has joined #ruby
baphled has joined #ruby
Elhu has joined #ruby
<apeiros> rumba: File.dirname(File.expand_path($0))
<apeiros> not guaranteed to work
stuartrexkin has quit [Quit: Linkinus - http://linkinus.com]
<Hanmac> felipec there is a priority ... the sitedirs came first, than the vendor and then the normal ruby ... (the arch dirs are for *.so files only)
<felipec> Hanmac: you are not helping
<rumba> nope
rton has left #ruby [#ruby]
ioNull has quit [Quit: Computer has gone to sleep.]
vlad_starkov has joined #ruby
predator217 has quit [Ping timeout: 264 seconds]
kenneth has joined #ruby
aleph-null has joined #ruby
banisterfiend has quit [Remote host closed the connection]
aleph-null has quit [Client Quit]
icco has joined #ruby
ryanh has quit [Quit: Computer has gone to sleep.]
<rumba> okay, not currently running script, I was looking for something like __FILE__, but with the full directory
<felipec> I'm just going to assume vendordir is for distro packages, since #ruby doesn't provide any help, and there's no information anywhere
zastern has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
<apeiros> rumba: just replace $0 with __FILE__ then.
zastern has quit [Remote host closed the connection]
zastern has joined #ruby
vlad_starkov has joined #ruby
reset has joined #ruby
<rumba> it doesn't work. __FILE__ contains only the name of the file
<apeiros> *eyeroll*
<rumba> it worked fine in 1.8.7, but i when i upgraded to 1.9.3, it broke :/
icco has quit [Read error: Operation timed out]
vikashk has joined #ruby
Banistergalaxy has joined #ruby
mmitchell has quit [Remote host closed the connection]
<apeiros> rumba: it does work. in 1.9 too.
<rumba> wtf
arietis has joined #ruby
<rumba> i swear, p __FILE__ outputs "script.rb", when the script is located relative to pwd in ../lib/
<rumba> __FILE__ does *not* contain the path
<apeiros> hm
tables has joined #ruby
<apeiros> I get the full path
<tables> i'm trying to use this: http://www.rubydoc.info/gems/time_diff/0.3.0/frames <-- how can i return a time only in days?
kenneth has quit [Ping timeout: 252 seconds]
gaahrdner has joined #ruby
<tables> it seems to return years all the time
<rumba> apeiros: i believe you. all the examples i can find online say the same thing.
<rumba> and it worked until 5 minutes ago (in 1.8)
ferdev has joined #ruby
hamakn has quit [Remote host closed the connection]
realDAB has quit [Quit: realDAB]
<rumba> i feel like in the twilight zone, where there's something changed but only for me and nobody else knows about it and i have no idea what's going on
Heero has quit [Ping timeout: 252 seconds]
felipec has left #ruby ["Leaving"]
ryanh has joined #ruby
ryanh has quit [Max SendQ exceeded]
AndChat| has quit [Ping timeout: 276 seconds]
ryanh has joined #ruby
<rumba> crap
realDAB has joined #ruby
xcv has joined #ruby
tonini has quit [Remote host closed the connection]
bean has joined #ruby
bean has quit [Max SendQ exceeded]
mmitchell has joined #ruby
m8 has joined #ruby
bean has joined #ruby
icco has joined #ruby
niceguyjames has joined #ruby
motto has quit [Ping timeout: 276 seconds]
RagingDave_ has joined #ruby
tables has quit [Ping timeout: 276 seconds]
banisterfiend has joined #ruby
sambao21 has joined #ruby
Kruppe has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
banisterfiend has joined #ruby
predator117 has joined #ruby
RagingDave has quit [Ping timeout: 264 seconds]
cmyers_ has left #ruby [#ruby]
mmitchell has quit [Remote host closed the connection]
mmitchell has joined #ruby
<injekt> Paradox: what theme is that?
<waxjar> tomorrow <3
chrishough has quit [Quit: chrishough]
tvw has joined #ruby
<Paradox> injekt, my fork of flatland
<Paradox> i put in pull requests for the square tabs
<Paradox> the color is my fork of tomorrow night
<injekt> Paradox: ah nice, it's pretty
<Paradox> on my github: paradox460
oneirophren has joined #ruby
predator117 has quit [Ping timeout: 256 seconds]
alexyz has quit [Remote host closed the connection]
alexyz has joined #ruby
mmitchell has quit [Ping timeout: 240 seconds]
predator117 has joined #ruby
mmitchell has joined #ruby
snearch has joined #ruby
icco has quit [Read error: Operation timed out]
RagingDave__ has joined #ruby
icco has joined #ruby
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jdolitsky has joined #ruby
echevemaster has joined #ruby
mattbl has joined #ruby
Morkel_ has joined #ruby
chrishough has joined #ruby
predator117 has quit [Ping timeout: 245 seconds]
<rumba> so does anyone have any idea how to fix this __FILE__ thing?
<apeiros> rumba: what does ruby -v output?
tevio has joined #ruby
RagingDave_ has quit [Ping timeout: 276 seconds]
<rumba> ruby 1.9.3p327 (2012-11-10) [x86_64-linux] Brightbox
iamjarvo has quit [Quit: Leaving.]
v0n has joined #ruby
kenneth has joined #ruby
Kingdorian has joined #ruby
Morkel has quit [Ping timeout: 264 seconds]
Morkel_ is now known as Morkel
ariedler has quit [Remote host closed the connection]
nanothief has joined #ruby
predator117 has joined #ruby
ariedler has joined #ruby
jdolitsky has quit [Ping timeout: 264 seconds]
megha has quit [Ping timeout: 256 seconds]
<apeiros> rumba: in 1.9, the only case where __FILE__ is relative is for the current script.
<rumba> that's in 1.9.1, it changed in 1.9.2+
<apeiros> the only other exception is manual eval with a value for __FILE__ passed in
asym has joined #ruby
<asym> hey, anyone know if em-websockets also includes a ws client?
<apeiros> in all other cases, it's the full path
Ripp___ has joined #ruby
pcarrier has quit [Quit: Computer has gone to sleep.]
ananthakumaran has quit [Quit: Leaving.]
teddyp1cker has joined #ruby
<apeiros> so I don't have any idea what you do. the code I provided works with 1.9.3.
tables has joined #ruby
jeebster has joined #ruby
reset has quit [Ping timeout: 252 seconds]
<rumba> dafuq
<rumba> well, thanks anyway
<rumba> i suppose i'll stick with 1.8
<jeebster> will a ruby hash translate directly to a javascript object?
jdolitsky has joined #ruby
<jeebster> I assume symbols won't work, but with a string key?
ffranz has quit [Ping timeout: 245 seconds]
kenneth has quit [Ping timeout: 252 seconds]
<apeiros> jeebster: only if your contents can be translated too
btaitelb has joined #ruby
<Sou|cutter> jeebster: depends on the contents, but for all strings, sure
benlieb has joined #ruby
<apeiros> all keys become string keys. there's nothing else in javascript.
Villadelfia has quit [Remote host closed the connection]
SeySayux has quit [Remote host closed the connection]
nateberkopec has quit [Quit: Leaving...]
<apeiros> jeebster: also, just try. irb is your friend (or pry)
<jeebster> apeiros: can't do js objects in irb though :)
workmad3 has joined #ruby
Mpenzi has joined #ruby
<apeiros> jeebster: you can't? I can.
<apeiros> install libv8
<jeebster> well I just assumed I couldn't
<jeebster> hmm, I'll try that. thanks
<Mpenzi> hello. Any suggestions on an error that states that stack level too deep?
<apeiros> jeebster: also it's easy enough to copy & paste to your favorite browser and see…
Ripp___ is now known as Ripp__
vikashk has quit [Quit: Leaving...]
Ontolog_ has joined #ruby
<tables> i'm tryin to get the difference of two dates, by days
icco has quit [Read error: Operation timed out]
RagingDave_ has joined #ruby
<apeiros> tables: Date.today-Date.civil(2001,1,1)
<apeiros> returns the difference in days. enjoy.
<tables> i'm bad at ruby, how can i do that in a linux terminal?
<apeiros> fire up irb
<tables> i want output, not a in a ruby term
<apeiros> or install pry and fire up pry
nanothief has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<tables> NoMethodError: undefined method `today' for Date:Class
<tables> inside irb
<apeiros> o0
<apeiros> what ruby version?
<tables> how do i check that?
<tables> ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
<apeiros> RUBY_VERSION in irb
piotr has joined #ruby
<apeiros> require 'date'
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
veinofstars has quit [Quit: veinofstars]
zastern has quit [Remote host closed the connection]
Ontolog has quit [Ping timeout: 248 seconds]
icco has joined #ruby
<tables> irb(main):002:0> Date.today-Date.civil(2001,1,1)
<tables> => (4488/1)
<tables> meaning 4,448 days ago?
RagingDave__ has quit [Ping timeout: 255 seconds]
mattbl has quit [Quit: Leaving]
<apeiros> yes. .to_i or .round if you prefer an integer.
<apeiros> ((4488/1) is a Rational)
<tables> how can i script this?
<tables> say i wanna put the date as arg 1
megha has joined #ruby
<tables> date in an argument
pioz has quit [Quit: This computer has gone to sleep]
dblessing_ has joined #ruby
<apeiros> take a look at Date.civil and Date.parse
dblessing has quit [Read error: Connection reset by peer]
dblessing_ is now known as dblessing
<apeiros> ARGV contains all arguments passed to your script
<bluenemo> hi guys. i'd like to define a PatternFormatter for each log level individually in Log4r, so to say that INFO would only give the %m message and ERROR for example also %p aka the process id. I cant seem to find a howto for that :/
huttan has joined #ruby
<tables> apeiros, lol can you gimme syntax?
megha has quit [Excess Flood]
<apeiros> tables: you want a private ruby teacher? o0
<tables> lol
<bluenemo> thats as far as i got: http://pastebin.com/Bd13nYsG :) hope you can help me. works so far
snearch has quit [Quit: Verlassend]
<apeiros> sorry, but no. that's beyond the scope of help I provide here.
jtharris has quit [Quit: WeeChat 0.4.0]
<tables> i mean in Date.civil(), how can i just send argument 1 to it?
<tables> like ./myscript.rb 2001-01-01
<tables> something like that
<apeiros> as said, ARGV contains the arguments passed to your script.
<apeiros> Date.civil won't like "2001-01-01" as argument, though. it wants 3 integers (year, month, date), not a single string.
zastern has joined #ruby
<tables> i see
slainer68 has joined #ruby
Gabri has joined #ruby
kristofers has quit []
pcarrier has joined #ruby
megha has joined #ruby
supernullset has left #ruby [#ruby]
zastern has quit [Remote host closed the connection]
jhlzst has quit [Remote host closed the connection]
veleno has quit [Quit: veleno]
realDAB has quit [Quit: realDAB]
iamjarvo has joined #ruby
nomenkun has joined #ruby
zastern has joined #ruby
MistuhKurtz has joined #ruby
realDAB has joined #ruby
cha1tanya has quit [Quit: Leaving]
Elhu has quit [Quit: Computer has gone to sleep.]
bluenemo has quit [Quit: Verlassend]
vlad_starkov has quit [Remote host closed the connection]
artofraw has quit [Remote host closed the connection]
rton has joined #ruby
icco has quit [Read error: Operation timed out]
girija has quit [Ping timeout: 260 seconds]
divout has quit [Quit: Leaving.]
rismoney has joined #ruby
tonini has joined #ruby
theRoUS has quit [Read error: Operation timed out]
icco has joined #ruby
tevio has quit [Remote host closed the connection]
goodwin_i has joined #ruby
dblessing has quit [Remote host closed the connection]
dblessing has joined #ruby
asym has quit [Quit: Lost terminal]
jdolitsky has quit [Ping timeout: 256 seconds]
eran has joined #ruby
schickung has quit [Ping timeout: 260 seconds]
schickung has joined #ruby
axl_ has quit [Quit: axl_]
carlyle has quit [Remote host closed the connection]
mengu_ has quit [Quit: Konversation terminated!]
allsystemsarego has quit [Quit: Leaving]
Heero has joined #ruby
Heero has joined #ruby
nateberkopec has joined #ruby
eran has left #ruby [#ruby]
iamjarvo has quit [Quit: Leaving.]
axl_ has joined #ruby
zastern has quit [Remote host closed the connection]
ekampf has joined #ruby
icco has quit [Read error: Operation timed out]
mando has quit [Remote host closed the connection]
tables has quit [Ping timeout: 252 seconds]
veinofstars has joined #ruby
tables has joined #ruby
dummies_freelanc has quit [Remote host closed the connection]
icco has joined #ruby
epofieg has joined #ruby
jdolitsky has joined #ruby
epofieg has left #ruby [#ruby]
allure has joined #ruby
allure has joined #ruby
allure has quit [Changing host]
jonahR has joined #ruby
epofieg has joined #ruby
c0rn has quit [Ping timeout: 248 seconds]
SeySayux has joined #ruby
Nuck has quit [Ping timeout: 258 seconds]
Villadelfia has joined #ruby
xkickflip has quit [Quit: h..hi]
Kingdorian has quit []
Gabri has quit [Remote host closed the connection]
Nuck has joined #ruby
iamjarvo has joined #ruby
dawkirst has quit [Ping timeout: 245 seconds]
c0rn has joined #ruby
hamakn has joined #ruby
celinedior has joined #ruby
dustint has quit [Ping timeout: 252 seconds]
Elhu has joined #ruby
Elhu has quit [Remote host closed the connection]
goodwin_i has quit [Quit: Linkinus - http://linkinus.com]
dallasm has joined #ruby
v0n has quit [Read error: Operation timed out]
hamakn has quit [Ping timeout: 245 seconds]
dallasm has quit [Remote host closed the connection]
v0n has joined #ruby
icco has quit [Ping timeout: 252 seconds]
epofieg has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
danneu has quit [Quit: WeeChat 0.3.8]
icco has joined #ruby
tonini has quit [Remote host closed the connection]
zastern has joined #ruby
etcetera has joined #ruby
gkhan has joined #ruby
kofno has quit [Remote host closed the connection]
<gkhan> what's up party people
jdolitsky has quit [Ping timeout: 264 seconds]
oneirophren has quit [Ping timeout: 256 seconds]
dawkirst has joined #ruby
MrZYX is now known as MrZYX|off
kpshek has quit []
chandankumar has quit [Ping timeout: 276 seconds]
nateberkopec has quit [Quit: Leaving...]
ryannielson has joined #ruby
nateberkopec has joined #ruby
pyr0commie has joined #ruby
pyr0commie has quit [Client Quit]
sambao21 has quit [Quit: Computer has gone to sleep.]
dustint has joined #ruby
kpshek has joined #ruby
wyattg has quit [Ping timeout: 252 seconds]
keymone has quit [Quit: keymone]
sambao21 has joined #ruby
icco has quit [Read error: Operation timed out]
hydrozen has joined #ruby
carlyle has joined #ruby
icco has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
pyr0commie has joined #ruby
Xeago_ has joined #ruby
hydrozen has quit [Client Quit]
hydrozen has joined #ruby
atmosx has joined #ruby
mercwithamouth has joined #ruby
mengu has joined #ruby
dawkirst has quit [Ping timeout: 260 seconds]
jdolitsky has joined #ruby
celinedior has quit [Quit: celinedior]
segv is now known as blutkind
headius has quit [Quit: headius]
blutkind is now known as segv
balishag has joined #ruby
pioz has joined #ruby
jonahR has quit [Quit: jonahR]
gkhan has quit [Remote host closed the connection]
tables has quit [Ping timeout: 272 seconds]
allure has quit [Remote host closed the connection]
ryannielson has quit [Quit: ryannielson]
uris has quit [Ping timeout: 240 seconds]
Joel____ has joined #ruby
ryanh has quit [Quit: Computer has gone to sleep.]
mmitchell has quit [Ping timeout: 252 seconds]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
undersc0re97 has quit [Read error: Connection reset by peer]
gwb3 has joined #ruby
Joel has quit [Ping timeout: 245 seconds]
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
Joel____ is now known as Joel
Joel is now known as Guest57723
krawchyk has quit [Remote host closed the connection]
benlieb has quit [Quit: benlieb]
good has quit [Ping timeout: 252 seconds]
dblessing has quit [Quit: dblessing]
wolcanus has quit [Remote host closed the connection]
icco has quit [Ping timeout: 252 seconds]
etcetera has quit []
vlad_starkov has joined #ruby
<gwb3> Hi All, for an assignment in a book I'm reading - I'm working on a script that pretends to be a hard of hearing grandmother, that repeats things or replies w/ incorrect info depending on whether or not what I say to her is in all caps - https://gist.github.com/garlandbinns/0360b66cf9191918521f
<gwb3> I'm having an issue where her random answer isn't randomly selecting another year for her to mention in her reply. It only selects it randomly the first time and then repeats the first random selection over and over.
icco has joined #ruby
mmitchell has joined #ruby
<gwb3> I'd like her to repeat a different year in the range I specified every time.
ebollens has joined #ruby
<bean> you'll need that "year = rand(range)" inside of your loop
<bean> its outside of the "while" so its only getting called once
<gwb3> ok I see
<gwb3> The fact that I am a complete noob aside, shouldn't I always try to define my variables at the beginning of my code?
Xeago has quit [Killed (verne.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
jtharris has joined #ruby
kpshek has quit []
<gwb3> bean: thank you by the way :)
Xeago has quit [Remote host closed the connection]
<bean> no, you don't always need to define variables at the top of your code
Xeago has joined #ruby
tomsthumb has joined #ruby
Xeago has quit [Remote host closed the connection]
skroon has quit [Ping timeout: 264 seconds]
<gwb3> bean: ok thanks again
Xeago has joined #ruby
kpshek has joined #ruby
angusiguess has quit [Ping timeout: 245 seconds]
vlad_starkov has quit [Ping timeout: 252 seconds]
dawkirst has joined #ruby
justsee has joined #ruby
atmosx has quit [Quit: And so the story goes…]
skroon has joined #ruby
invisime has quit [Quit: Leaving.]
niceguyjames has quit [Quit: Computer has gone to sleep.]
pandawarrior1 has joined #ruby
rumba has quit [Ping timeout: 245 seconds]
Davey has joined #ruby
realDAB has quit [Quit: realDAB]
Guest57723 has quit [Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931]]
etcetera has joined #ruby
kpshek has quit [Client Quit]
<Morrolan> gwb3: You can also take the answer = gets.chomp out of the condition, and simply but it after the if block, since this piece of code will have to get executed in either case. :)
<Morrolan> s/but/put/
mando_ has joined #ruby
uris has joined #ruby
niceguy1234 has joined #ruby
netto has joined #ruby
<netto> is there a way to use validates_presence_of in controller? say it because this requires ActiveRecord::Base
cloke_ has joined #ruby
cloke has quit [Ping timeout: 260 seconds]
cloke_ is now known as cloke
yann_ck has joined #ruby
sylvinus has joined #ruby
etcetera has quit []
<gwb3> Morrolan: cool, thanks! I did what you said. :)
teddyp1cker has quit [Remote host closed the connection]
icco has quit [Ping timeout: 252 seconds]
kpshek has joined #ruby
<Eiam> ugh why does this stack have to be so confusing sometimes
<Eiam> when i call thin start, it starts up thin using rack adapter.. then when I ctrl +c it.. it stops that.. then starts up thin again…
<Eiam> this time not using rack I guess?
<Eiam> ctrl c again and finally its all stopped. AND each thin starts on a different port? what the heck
Skofo has joined #ruby
icco has joined #ruby
shock_one has joined #ruby
<Eiam> same thing happens if I do "rackup"
wolcanus has joined #ruby
ph^ has quit [Remote host closed the connection]
<Morrolan> gwb3: I also prefer using "until answer == 'BYE'" over "while answer != 'BYE'", but that might be different for you. :)
ph^ has joined #ruby
ekampf has quit [Quit: ekampf]
sambao21 has quit [Quit: Computer has gone to sleep.]
rippa has quit [Ping timeout: 240 seconds]
nfk has quit [Quit: yawn]
<gwb3> Morrolan: yeah, definitely, i just haven't learned until yet!
<Morrolan> gwb3: Sure, after all that's what channels like this one are there for. :)
jkamenik has quit [Quit: Leaving.]
Andreo has joined #ruby
<gwb3> cheers to that!
sambao21 has joined #ruby
royalty has joined #ruby
<Morrolan> gwb3: A common thing when working with strings in Ruby is a feature called "String Interpolation", by the way. It allows you to embed Ruby code inside a string, which will then get executed. For example, "2 + 2 = #{2 + 2}" will result in "2 + 2 = 4". You can use this feature for the line where you output to the console, too.
Ontolog_ has quit [Ping timeout: 272 seconds]
<gwb3> Morrolan: ok cool thanks for the tip
<Morrolan> And with that, I am off for bed. G'night. :)
<gwb3> night!
Andreo has quit [Quit: Leaving]
Andreo has joined #ruby
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
Andreo has quit [Client Quit]
Andreo has joined #ruby
LiquidInsect has quit [Ping timeout: 240 seconds]
iamjarvo has quit [Quit: Leaving.]
Andreo has quit [Read error: Connection reset by peer]
LiquidInsect has joined #ruby
gwb3 has quit [Quit: Leaving]
Andreo has joined #ruby
jnoob22 has quit [Remote host closed the connection]
Andreo has quit [Read error: Connection reset by peer]
Andreo has joined #ruby
dstarh has quit [Remote host closed the connection]
smigg has quit [Ping timeout: 248 seconds]
razibog has quit [Ping timeout: 256 seconds]
icco has quit [Read error: Operation timed out]
mark_locklear has quit [Quit: Leaving]
rTypo has joined #ruby
niceguyjames has joined #ruby
Heero has quit [Read error: No route to host]
rTypo has quit [Client Quit]
momomomomo has joined #ruby
icco has joined #ruby
anderse has quit [Quit: anderse]
pioz has quit [Quit: This computer has gone to sleep]
akashj87 has quit [Ping timeout: 264 seconds]
ffranz has joined #ruby
codecop has quit [Remote host closed the connection]
banisterfiend has quit []
beiter has joined #ruby
billy_ran_away has joined #ruby
Astralum has quit [Ping timeout: 245 seconds]
Andreo has quit [Quit: Leaving]
btaitelb has quit [Quit: btaitelb]
Andreo has joined #ruby
sailias has quit [Ping timeout: 276 seconds]
btaitelb has joined #ruby
redhotvengeance has joined #ruby
redhotvengeance has quit [Quit: redhotvengeance]
tenmilestereo has quit [Quit: Leaving]
shock_one has quit [Ping timeout: 252 seconds]
redhotvengeance has joined #ruby
schickung has quit [Quit: schickung]
Proshot has quit [Quit: Leaving]
p0wn3d has quit [Excess Flood]
icco has quit [Read error: Operation timed out]
momomomomo has quit [Quit: momomomomo]
elaptics`away is now known as elaptics
<jeebster> can a class variable be defined and used in a module without a class?
_nitti has quit [Remote host closed the connection]
reset has joined #ruby
royalty has quit [Quit: Leaving]
mikepack has quit [Remote host closed the connection]
kenneth has joined #ruby
icco has joined #ruby
<kenneth> hey, so i have a module that has a bunch of methods, and i'd like to attach some metadata to these methods in such a away that another piece of code could retrieve that metadata from knowing the method name
redhotvengeance has left #ruby [#ruby]
axl__ has joined #ruby
Astralum has joined #ruby
Andreo_ has joined #ruby
<kenneth> the thing that comes to mind is to implement something akin to the `private` keyword, almost like a python decorator
Andreo_ has quit [Read error: Connection reset by peer]
geekbri has quit [Remote host closed the connection]
<kenneth> takes a little bit of wizardry to code up though. anybody have any better ideas?
drumond19 has joined #ruby
axl_ has quit [Read error: Operation timed out]
axl__ is now known as axl_
ruroh has joined #ruby
s2013 has quit []
_nitti has joined #ruby
drumond19 has quit [Remote host closed the connection]
drumond19 has joined #ruby
br4ndon has quit [Quit: Lorem ipsum dolor sit amet]
<pandawarrior1> hi all
<pandawarrior1> i'm looking to buy a bunch of books
<pandawarrior1> i'd like them in ebook formate, what's the best place to go?
angusiguess has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
yann_ck has quit [Quit: Computer has gone to sleep.]
_nitti has quit [Remote host closed the connection]
johnkary has joined #ruby
tootubular has quit [Quit: tootubular]
<ruroh> pandawarrior1: check out http://pragprog.com/
_nitti has joined #ruby
blacktulip has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]
tables has joined #ruby
cantonic has quit [Quit: cantonic]
basex has quit [Quit: basex]
<pandawarrior1> ruroh: thanks
mercwithamouth has quit [Ping timeout: 264 seconds]
skattyadz has joined #ruby
mercwithamouth has joined #ruby
snooc has quit []
jlast has joined #ruby
icco has quit [Ping timeout: 252 seconds]
lmf40 has joined #ruby
ruroh has left #ruby [#ruby]
icco has joined #ruby
spider-mario has quit [Read error: Connection reset by peer]
carloslopes has quit [Remote host closed the connection]
jerius has quit [Read error: Operation timed out]
`brendan has quit [Read error: Connection reset by peer]
`brendan has joined #ruby
failshell has quit [Remote host closed the connection]
pioz has joined #ruby
pkill has joined #ruby
maxmanders has quit [Quit: Computer has gone to sleep.]
guardian has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
<guardian> hello, I upgraded to ruby 2 and this snippet doesn't work anymore Dir['_all/**/.git/config']
<guardian> any idea?
JonnieCache has quit [Ping timeout: 252 seconds]
JonnieCache has joined #ruby
<apeiros> yes. my idea is: don't describe your problem as "don't work"
v0n has quit [Ping timeout: 240 seconds]
djwonk has joined #ruby
<guardian> well for instance Dir['_all/**/.git/config'] do { |f| puts f } used to print files found
<guardian> but that's no more the case
<guardian> could it be related to the current directory?
<apeiros> guardian: no. that didn't work in 1.9 either.
lmf40 has quit [Remote host closed the connection]
<injekt> you should be using absolute paths anyway tbh
<apeiros> and in 1.8 neither
<apeiros> [] *never* accepted a block
<apeiros> Dir.glob instead of Dir[]
<apeiros> and you haven't run that code either. that gives a syntax error in 2.0 too.
<guardian> sorry I mistyped :/ it's Dir['_all/**/.git/config'].each do |f|
gaahrdner has quit [Remote host closed the connection]
<apeiros> that works in 2.0 the same as in 1.9
icco has quit [Read error: Operation timed out]
<guardian> injekt: it's a small script meant to find the git repositories beyond the ./_all directory
<injekt> guardian: did you try using ./_all ?
<guardian> yes, changes nothing
<apeiros> injekt: './_all' == '_all'
<injekt> apeiros: yeah I thought so, wasn't sure though
<apeiros> anyway, as said, that works the same in 2.0 as in 1.9
<injekt> not sure what else it would be, anything else would be stupid
wallerdev has quit [Quit: wallerdev]
<apeiros> any problem you're having with that is almost certainly unrelated to your ruby version change.
<apeiros> or unrelated to that snippet.
jonathanwallace has quit [Ping timeout: 256 seconds]
<pandawarrior1> my sql is rusty, at best, any recommendations for a good book, which will give me a solid grounding?
icco has joined #ruby
jrq has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
Spooner has joined #ruby
mattbl has joined #ruby
nomenkun has quit [Remote host closed the connection]
interactionjaxsn has quit [Remote host closed the connection]
jrq has left #ruby [#ruby]
Davey has quit [Quit: Computer has gone to sleep.]
interactionjaxsn has joined #ruby
sambao21 has joined #ruby
djwonk has quit []
<guardian> I'm sure behavior changed I did nothing but upgrading to ruby 2.0
lmf40 has joined #ruby
danneu has joined #ruby
butblack has joined #ruby
mercwithamouth has quit [Ping timeout: 256 seconds]
_nitti has quit [Remote host closed the connection]
<apeiros> well, I tested it with your very expression in ruby 2.0 and it works fine for me
<guardian> interesting
<apeiros> all I did was replace "_all" with a directory name which exists here
etcetera has joined #ruby
DaltonUS has quit [Quit: DaltonUS]
<Eiam> holy fuck i hate json parse errors
<apeiros> s/json//
<Eiam> only 89592 lines that could have a problem
<Eiam> it to_json's fine, but when i try to beautify it, json parse error.
jerius has joined #ruby
<Eiam> i tried to paste it into irb that was a mistake, its still flooding by and I know its going to error anyway..
<apeiros> guardian: hm, wait…
akhet2 has quit [Remote host closed the connection]
<apeiros> I have a case where it doesn't work for me either…
interactionjaxsn has quit [Ping timeout: 264 seconds]
<apeiros> where foo/**/.git/config does not work, but foo/*/.git/config works
<apeiros> and when * works, ** should too as far as I understand it…
<guardian> yeah with ** it doesn't work while it should
strmpnk has quit [Remote host closed the connection]
<apeiros> guardian: ok, I stand corrected
djwonk has joined #ruby
<apeiros> and I'd classify it as a bug
<guardian> how to report such a bug?
<apeiros> I don't yet see when ** stops working
carlyle has quit [Remote host closed the connection]
jerius has quit [Client Quit]
<apeiros> guardian: ask in the mailinglist first for confirmation. provide a smaller example than what you have now. with a directory listing.
<apeiros> best is if you create a bit of code which creates a couple of directories, then runs the glob.
elux has quit [Quit: Bye!]
DonRichie has quit [Quit: Verlassend]
<apeiros> and in 1.9 prints something, and nothing in 2.0
<apeiros> (require 'fileutils'; FileUtils.mkdir_p will help you quickly creating deep structures)
csaunders has quit [Quit: Computer has gone to sleep.]
<guardian> allright, I'll do that tomorrow, time to go to bed now :/
mmitchell has quit [Ping timeout: 264 seconds]
<guardian> thank you for caring, and testing on your side
<Xeago> apeiros: you got portal?
<apeiros> guardian: same for me atm
mercwithamouth has joined #ruby
<apeiros> (going to bed)
<apeiros> guardian: yeah, sorry for jumping at you first :-S
jenrzzz has joined #ruby
<apeiros> my quick check worked fine and it's quite an unexpected bug
butblack has left #ruby [#ruby]
<apeiros> Xeago: portal? the game?
<Xeago> yea
redhotvengeance has joined #ruby
cantonic has joined #ruby
tvw has quit []
icco has quit [Ping timeout: 252 seconds]
ariedler has quit [Remote host closed the connection]
athst has joined #ruby
icco has joined #ruby
cyberarm has joined #ruby
<apeiros> Xeago: no, I still have 2 unplayed games :-S
<apeiros> and I'm 1 month without SC2 :-S
<apeiros> guardian: no idea. I'm quite tired.
<Xeago> guardian: looks likely yes
kenneth has quit [Quit: kenneth]
<Xeago> and imho totally counter intuitive
<Xeago> ** should match go in .dirs
butblack_ has joined #ruby
`brendan has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
alex__c2022 has quit [Quit: alex__c2022]
atno has quit [Ping timeout: 260 seconds]
f0ster has joined #ruby
devyn has quit [Read error: Connection reset by peer]
<guardian> I commented the commit, we'll see
bluOxigen has quit [Ping timeout: 240 seconds]
athst has quit [Quit: athst]
atno has joined #ruby
hmarr has joined #ruby
Neandre has quit [Remote host closed the connection]
pioz has quit [Quit: This computer has gone to sleep]
headius has joined #ruby
newUser1234 has quit [Remote host closed the connection]
ofcan has quit [Quit: leaving]
devyn has joined #ruby
pcarrier has quit [Ping timeout: 255 seconds]
Neandre has joined #ruby
niceguyjames has quit [Quit: Textual IRC Client: www.textualapp.com]
reytt has quit [Quit: Linkinus - http://linkinus.com]
io_syl has quit [Ping timeout: 256 seconds]
icco has quit [Read error: Operation timed out]
cyberarm has quit [Remote host closed the connection]
io_syl has joined #ruby
RagingDave_ has quit [Quit: Ex-Chat]
breakingthings has quit []
tables has quit [Ping timeout: 260 seconds]
zastern has quit [Remote host closed the connection]
gaahrdner has joined #ruby
alanp has quit [Read error: Connection reset by peer]
mattbl has quit [Read error: Connection timed out]
alanp has joined #ruby
Neandre has quit [Remote host closed the connection]
pcarrier has joined #ruby
icco has joined #ruby
etcetera has quit []
skattyadz has quit [Quit: skattyadz]
robert_ has quit [Read error: Connection reset by peer]
niceguy1234 has quit [Ping timeout: 246 seconds]
robert_ has joined #ruby
enebo has quit [Quit: enebo]
butblack_ has quit [Ping timeout: 248 seconds]
fangari has quit [Quit: fangari]
grenierm has joined #ruby
dayepa_ has joined #ruby
idletom has quit [Read error: Connection reset by peer]
idletom has joined #ruby
ariedler has joined #ruby
Johbe_ has quit [Read error: Connection reset by peer]
d11wtq_ has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
d11wtq has joined #ruby
Guest43875 has quit [Ping timeout: 246 seconds]
kpshek has quit []
butblack has joined #ruby
skattyadz has joined #ruby
dayepa__ has quit [Ping timeout: 256 seconds]
pkill has quit [Quit: leaving]
bradleyprice has quit [Remote host closed the connection]
digifiv5e has joined #ruby
digifiv5e is now known as Guest60864
wolcanus has quit [Remote host closed the connection]
etcetera has joined #ruby
conduit has joined #ruby
arthurstomp has joined #ruby
kenneth has joined #ruby
Johbe has joined #ruby
Ontolog has joined #ruby
jeffean has joined #ruby
johnnyfuchs has quit [Quit: Leaving.]
Ontolog has quit [Remote host closed the connection]
Ontolog has joined #ruby
moos3 has joined #ruby
icco has quit [Read error: Operation timed out]
redhotvengeance has left #ruby [#ruby]
workmad3 has quit [Ping timeout: 276 seconds]
redhotvengeance has joined #ruby
redhotvengeance has quit [Client Quit]
arya has quit [Ping timeout: 248 seconds]
jeffean has quit [Client Quit]
redhotvengeance has joined #ruby
redhotvengeance has quit [Client Quit]
nathanieldavid has joined #ruby
ckrailo has quit [Ping timeout: 276 seconds]
thams has quit [Quit: thams]
icco has joined #ruby
redhotvengeance has joined #ruby
snooc has joined #ruby
butblack has quit [Ping timeout: 256 seconds]
cyclic has joined #ruby
ebollens has quit [Quit: ebollens]
<cyclic> hi all
Morkel has quit [Quit: Morkel]
bean has quit [Quit: Computer has gone to sleep.]
ebollens has joined #ruby
<waxjar> hi cyclic
tables has joined #ruby
<cyclic> I am trying to run the following with flock, but I get an error "Could not locate Gemfile", but when I run the command directly, it works. Any ideas? /usr/local/bin/flock -n /tmp/hammercron cd /usr/local/www/foo/current && RAILS_ENV="production" bundle exec thor hammer:cron
danneu has quit [Ping timeout: 252 seconds]
arya has joined #ruby
<waxjar> Bundler looks at directory you're currently in i believe
jeffean has joined #ruby
conduit has quit [Quit: Leaving]
pandawarrior1 has quit [Quit: Leaving.]
conduit has joined #ruby
cbot_ has quit [Ping timeout: 245 seconds]
conduit has quit [Client Quit]
vlad_starkov has joined #ruby
<cyclic> waxjar, but doesn't the cd put me in the right directory? I see it there
<cyclic> How would I change it?
redhotvengeance has quit []
jlast has quit [Remote host closed the connection]
thams has joined #ruby
baphled has quit [Ping timeout: 264 seconds]
redhotvengeance has joined #ruby
arya has quit [Ping timeout: 240 seconds]
<waxjar> i'm not sure i understand the problem, actually
backjlack has quit [Remote host closed the connection]
<cyclic> ok I am trying to run the following command: /usr/local/bin/flock -n /tmp/hammercron cd /usr/local/www/foo/current && RAILS_ENV="production" bundle exec thor hammer:cron
EPIK has joined #ruby
<cyclic> when I do, I get the error: "Could not locate Gemfile"
kirun has quit [Quit: Client exiting]
vlad_starkov has quit [Ping timeout: 272 seconds]
lmf40 has quit [Remote host closed the connection]
<cyclic> However, waxjar, it works fine when I run the following command: cd /usr/local/www/foo/current && RAILS_ENV="production" bundle exec thor hammer:cron
arya has joined #ruby
etcetera has quit []
<Xeago> cyclic: the shell is probably seeing the && as part of the command
<waxjar> why don't you cd into the directory first and then run it?
<Xeago> and not of the string you pass to flock
<Xeago> probably becuase he runs it from a cronjob/service or something like that
sylvinus has quit [Quit: sylvinus]
<cyclic> Xeago: yes, it needs to be in a crontab
<cyclic> Xeago: what's an alternative to using &&?
tjbiddle has quit [Read error: Connection reset by peer]
<Xeago> you could use ; to delimit
cmarques has quit [Ping timeout: 240 seconds]
<Xeago> however, you might as well make a tiny .sh that does things nicely on multiple lines
Ontolog has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
<Xeago> makes it easier to test as well
<Xeago> (just running the .sh is easier)
<cyclic> looks like semicolon did the trick :)
<cyclic> thanks!
icco has quit [Read error: Operation timed out]
Ontolog has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
ckrailo has joined #ruby
arya has quit [Disconnected by services]
jgarvey has quit [Quit: Leaving]
ryannielson has joined #ruby
Ontolog_ has joined #ruby
jenrzzz has quit [Ping timeout: 255 seconds]
icco has joined #ruby
balishag has quit [Read error: Connection reset by peer]
Ontolog__ has joined #ruby
jenrzzz has joined #ruby
Ontolog has quit [Ping timeout: 245 seconds]
basex has joined #ruby
moos3 has joined #ruby
cyclic has quit [Quit: Page closed]
nezumi has quit [Ping timeout: 245 seconds]
emmanuelux has quit [Ping timeout: 272 seconds]
Ontolog_ has quit [Ping timeout: 245 seconds]
miskander has joined #ruby
fschuindt has joined #ruby
frem has quit [Read error: Operation timed out]
Sigma00 has quit [Ping timeout: 245 seconds]
mando_ has quit [Remote host closed the connection]
abstortedminds has joined #ruby
danneu has joined #ruby
arya_ has joined #ruby
chussenot has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
staafl_alt has joined #ruby
staafl has quit [Ping timeout: 258 seconds]
Sigma00 has joined #ruby
xlab_ has joined #ruby
Davey has joined #ruby
nyuszika7h_ has joined #ruby
nyuszika7h has quit [Read error: Connection reset by peer]
Xlab has quit [Ping timeout: 255 seconds]
skattyadz has quit [Quit: skattyadz]
cyberarm has joined #ruby
cyberarm has quit [Read error: Connection reset by peer]
athst has joined #ruby
icco has quit [Read error: Operation timed out]
arya_ has quit [Ping timeout: 248 seconds]
tomsthumb has quit [Quit: Leaving.]
icco has joined #ruby
_maes_ has quit [Quit: Miranda IM! Smaller, Faster, Easier. http://miranda-im.org]
axl_ has quit [Quit: axl_]
Ontolog has joined #ruby
Guedes has quit [Read error: Connection reset by peer]
Guedes has joined #ruby
mando has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
akhet has joined #ruby
cyberarm has joined #ruby
Nightmare has quit [Quit: DDoS has died, DDoS has risen, DDoS comin' again]
btaitelb has quit [Quit: btaitelb]
ZachBeta has joined #ruby
Ontolog__ has quit [Ping timeout: 264 seconds]
heftig has quit [Quit: Quitting]
at-912 has quit []
heftig has joined #ruby
niklasb has joined #ruby
akhet has quit [Ping timeout: 252 seconds]
jnoob22 has joined #ruby
gyre007 has quit [Ping timeout: 258 seconds]
RORgasm has quit [Remote host closed the connection]
julian-delphiki has quit [Ping timeout: 240 seconds]
icco has quit [Read error: Operation timed out]
kayloos has joined #ruby
moeSeth_ is now known as moeSeth
m8 has quit [Quit: Sto andando via]
icco has joined #ruby
chrisja has quit [Quit: leaving]
jtharris has quit [Quit: WeeChat 0.4.0]
miskander has quit [Quit: miskander]
Guedes0 has joined #ruby
Sigma00 has quit [Ping timeout: 245 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
rburton- has joined #ruby
alex__c2022 has joined #ruby
piotr has quit [Ping timeout: 264 seconds]
tommyvyo has quit [Quit:]
angusiguess has quit [Ping timeout: 276 seconds]
snooc has quit []
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
Sigma00 has joined #ruby
yfeldblum has quit [Ping timeout: 248 seconds]
niklasb has quit [Ping timeout: 252 seconds]
ariedler has quit [Remote host closed the connection]
alex__c2022 has quit [Ping timeout: 272 seconds]
havenwood has quit [Ping timeout: 246 seconds]
SCommette has quit [Quit: SCommette]
k610 has quit [Ping timeout: 256 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
icco has quit [Read error: Operation timed out]
emmanuelux has joined #ruby
beiter has quit [Quit: beiter]
havenwood has joined #ruby
icco has joined #ruby
jekotia has joined #ruby
emergion has joined #ruby
moos3 has joined #ruby
pac1 has joined #ruby
idkazuma has joined #ruby
etcetera has joined #ruby
binaryplease has joined #ruby
athst has quit [Quit: athst]
miskander has joined #ruby
tomsthumb has joined #ruby
markalanevans has joined #ruby
<Skofo> Ruby's equality operator should be =?
wsterling has quit [Remote host closed the connection]
thams has quit [Quit: thams]
bhaarat has quit [Quit: bhaarat]
fangari has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
thams has joined #ruby
markalanevans has quit [Client Quit]
headius has quit [Quit: headius]
markalanevans has joined #ruby
ryannielson has quit [Quit: ryannielson]
wreckimnaked has joined #ruby
yfeldblum has joined #ruby
dustint has quit [Quit: Leaving]
wreckimnaked has quit [Client Quit]
rawng has joined #ruby
mando has quit [Remote host closed the connection]
<Spooner> Skofo, equality is ==, assignment is =
postmodern has joined #ruby
lkba has joined #ruby
abstortedminds has left #ruby [#ruby]
wreckimnaked has joined #ruby
icco has quit [Read error: Operation timed out]
nari has joined #ruby
djwonk has quit []
<Skofo> I know. But in Ruby, a ? is used for methods that return a boolean value
<Skofo> So it would be consistent to use =? rather than == for equality
Sigma00 has quit [Ping timeout: 245 seconds]
<Skofo> I'm only half-serious
jamesfung14 has quit [Ping timeout: 272 seconds]
jbueza has quit [Quit: Leaving.]
xibalba has quit [Ping timeout: 252 seconds]
Ripp__ has left #ruby ["Leaving"]
Sigma00 has joined #ruby
<waxjar> =? would check if something has been assigned then, i guess
icco has joined #ruby
gabrielrotbart has joined #ruby
mercwithamouth has quit [Ping timeout: 252 seconds]
<Skofo> I've considered that, but I don't think that's necessarily true
<Skofo> Ruby uses =~ for pattern matching
<Skofo> it has one equals sign, though it is closer to an equality operator rather than an assignment one
xibalba has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
LaPetiteFromage has left #ruby [#ruby]
<waxjar> what would =! be?
chrishough has quit [Quit: chrishough]
nathanieldavid has quit [Ping timeout: 272 seconds]
<Skofo> Good point :)
staafl has joined #ruby
pyr0commie has quit [Remote host closed the connection]
jbueza has joined #ruby
NiteRain has quit [Ping timeout: 245 seconds]
staafl_alt has quit [Ping timeout: 272 seconds]
miskander has quit [Quit: miskander]
etcetera has quit []
Kruppe has quit [Read error: Operation timed out]
d11wtq has quit [Ping timeout: 272 seconds]
angusiguess has joined #ruby
Sigma00 has quit [Ping timeout: 245 seconds]
moos3 has quit [Quit: Computer has gone to sleep.]
Sigma00 has joined #ruby
icco has quit [Ping timeout: 251 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
anonymuse has quit [Quit: Leaving...]
icco has joined #ruby
SCommette has joined #ruby
SCommette has quit [Client Quit]
alx- has quit [Quit: alx-]
Ripp__ has joined #ruby
cantonic has quit [Ping timeout: 256 seconds]
cantonic has joined #ruby
Guilhou has joined #ruby
fschuindt has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
alx- has joined #ruby
rburton- has joined #ruby
fschuindt has joined #ruby
Scriptor has joined #ruby
netto has quit [Quit: netto]
SCommette has joined #ruby
mercwithamouth has joined #ruby
pcarrier has quit [Quit: Textual IRC Client: www.textualapp.com]
pioz has joined #ruby
gabrielrotbart has quit [Remote host closed the connection]
SCommette has quit [Client Quit]
Guilhou has quit [Remote host closed the connection]
angelixd has quit [Ping timeout: 245 seconds]
djwonk has joined #ruby
mksm has quit [Ping timeout: 245 seconds]
TheMoonMaster has quit [Ping timeout: 246 seconds]
SCommette has joined #ruby
crodas has quit [Read error: Connection reset by peer]
freeayu has joined #ruby
crodas has joined #ruby
jmccune has quit [Ping timeout: 255 seconds]
Rym has quit [Quit: Rym]
Guilhou has joined #ruby
jmccune has joined #ruby
wesside has quit [Quit: Computer has gone to sleep.]
icco has quit [Read error: Operation timed out]
bhaarat has joined #ruby
angelixd has joined #ruby
marr has quit [Ping timeout: 258 seconds]
mercwithamouth has quit [Ping timeout: 264 seconds]
Guilhou has quit [Client Quit]
TheMoonMaster has joined #ruby
icco has joined #ruby
SCommette has quit [Client Quit]
Sigma00 has quit [Ping timeout: 245 seconds]
predator217 has joined #ruby
freeayu has quit [Ping timeout: 245 seconds]
bean has joined #ruby
Sigma00 has joined #ruby
mksm has joined #ruby
freeayu has joined #ruby
Caelum has quit [Ping timeout: 240 seconds]
Caelum has joined #ruby
slainer68 has quit [Remote host closed the connection]