<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]
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.
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>
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)"]
<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
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]
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
<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)
<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.
<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
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.
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
<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]
<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]
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.
<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?
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
<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]
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]
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]
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]
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
<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. =)
<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
<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]
<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
<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
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. :)
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]
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]