yashshah- has quit [Remote host closed the connection]
yashshah- has joined #ruby
<Liru>
Another idea was to make an array of hashes, but it may be a bit inefficient when trying to access a player by name
binarypl1 has quit [Ping timeout: 264 seconds]
witheld has quit [Read error: Connection reset by peer]
baroquebobcat has quit [Quit: baroquebobcat]
emergion has joined #ruby
wsterling has quit [Read error: Operation timed out]
<Liru>
So yeah, that's my problem. I can't think of a way to efficiently store player data in memory. Ideas?
rodacato has quit [Quit: rodacato]
tds has quit [Quit: tds]
pioz has joined #ruby
locriani has joined #ruby
emergion has quit [Ping timeout: 264 seconds]
<tylersmith>
if this is just a simple version, a hash is probably find. if you're trying to guid a real application, probably use something like redis to store that info
<tylersmith>
"probably fine"*
pioz has quit [Client Quit]
kofno has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
<Liru>
Not really a "real application"
<Liru>
I doubt there will be more than 10 people using it at once
timmow has quit [Read error: Connection reset by peer]
<Liru>
That, and I'll have to update everything each second, so constantly reading/writing to the db is what I'm trying to avoid
alexspeller has quit [Ping timeout: 252 seconds]
lkba has quit [Ping timeout: 252 seconds]
timmow has joined #ruby
freeayu__ has joined #ruby
lkba has joined #ruby
Spooner has quit [Remote host closed the connection]
alexspeller has joined #ruby
freeayu has quit [Ping timeout: 256 seconds]
dankest has quit [Quit: Leaving...]
mklappstuhl has quit [Remote host closed the connection]
DrCode has quit [Ping timeout: 276 seconds]
baroquebobcat has joined #ruby
diego_ar has quit [Quit: diego_ar]
sambao21 has joined #ruby
chrishough has quit [Quit: chrishough]
angusiguess has joined #ruby
DrCode has joined #ruby
freeayu3 has joined #ruby
chessguy has quit [Remote host closed the connection]
cloke has quit [Quit: cloke]
mattbl has quit [Ping timeout: 245 seconds]
Davey has joined #ruby
jimi_ has joined #ruby
<jimi_>
I have a gem I want to install which fails on a certain package 'thin' but if i gem install thin, it works fine. It seems it's installing an older version. Can I pass a cli option to skip this package?
sepp2k1 has quit [Remote host closed the connection]
freeayu__ has quit [Ping timeout: 252 seconds]
tylersmith has quit [Quit: tylersmith]
bradhe has quit [Remote host closed the connection]
daniel_- has quit [Ping timeout: 255 seconds]
aces1up has quit [*.net *.split]
pbertain has quit [*.net *.split]
yellow5 has quit [*.net *.split]
karnowski has quit [*.net *.split]
prstat has quit [*.net *.split]
matled has quit [*.net *.split]
cheez0r has quit [*.net *.split]
darrik has quit [*.net *.split]
tomku has quit [*.net *.split]
javiolo has quit [*.net *.split]
shammancer has quit [*.net *.split]
Sp4rKy has quit [*.net *.split]
wookiehangover has quit [*.net *.split]
cespare has quit [*.net *.split]
froy has quit [*.net *.split]
russfrank has quit [*.net *.split]
moshee has quit [*.net *.split]
X-Jester has quit [*.net *.split]
joschi has quit [*.net *.split]
fred has quit [*.net *.split]
ner0x has quit [Quit: Leaving]
Heero has quit [Read error: Connection reset by peer]
hogeo has joined #ruby
aces1up has joined #ruby
cespare has joined #ruby
tomku has joined #ruby
prstat has joined #ruby
wookiehangover has joined #ruby
cheez0r has joined #ruby
Sp4rKy has joined #ruby
darrik has joined #ruby
shammancer has joined #ruby
froy has joined #ruby
russfrank has joined #ruby
joschi has joined #ruby
moshee has joined #ruby
yellow5 has joined #ruby
javiolo has joined #ruby
fred has joined #ruby
matled has joined #ruby
pbertain has joined #ruby
karnowski has joined #ruby
X-Jester has joined #ruby
jrendell has quit [Quit: jrendell]
tjbiddle has quit [Quit: tjbiddle]
jbueza1 has quit [Quit: Leaving.]
idkazuma has quit [Remote host closed the connection]
dankest has joined #ruby
nick1 has joined #ruby
<nick1>
Hello, I have no experience with ruby and I am trying to run this script
<nick1>
well if anyone can help me, please highlight me. Thanks in advance.
angusiguess has joined #ruby
mrsolo has quit [Quit: Leaving]
centipedefarmer has joined #ruby
dankest has quit [Quit: Leaving...]
ffranz has quit [Quit: Leaving]
marr has quit [Ping timeout: 252 seconds]
kunday has quit [Quit: Leaving...]
nezumi has joined #ruby
nateberkopec has joined #ruby
gerep has joined #ruby
<gerep>
Hi all
<nick1>
hello gerep
<gerep>
I have a Ruby project and I'm trying to use Travis-CI but it complains about Rake file
<gerep>
I thought rake files were just used in rails projects
<gerep>
nick1: hi =)
JonnieCache has joined #ruby
robottinosino has joined #ruby
tkoh has joined #ruby
nateberkopec has quit [Client Quit]
<gerep>
How can I add this Rakefile to my project so Travis-CI use it correctly?
ZachBeta has joined #ruby
osvico has quit [Ping timeout: 252 seconds]
<nick1>
sorry gerep, I am new to ruby and can't help you.
<gerep>
nick1: no problem :D
tkoh has quit [Ping timeout: 256 seconds]
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
terrorpup has joined #ruby
terrorpup has joined #ruby
terrorpup has quit [Changing host]
<Liru>
Is there a way to assign array values to corresponding hashes? ie, is there a way to make this code cleaner by removing all the "input[x]" entries? http://i.imgur.com/BxY3z1M.png
mattbl has joined #ruby
__alpaca_ has joined #ruby
jamesfung14 has quit [Quit: Leaving]
johnnyfuchs has joined #ruby
d11wtq has joined #ruby
arubin has joined #ruby
ixti has quit [Ping timeout: 252 seconds]
gerep has quit [Remote host closed the connection]
hiyakashi has quit [Quit: お前は知りすぎた]
__alpaca_ has quit [Ping timeout: 252 seconds]
yshh has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
<lufi>
are there any other softwares that can be made with ruby aside from web applications?
<Liru>
lufi: I'm currently in the process of making an IRC game
<adamjleonard>
Anything lufi
<Liru>
adamjleonard: And that's exactly what I was looking for, thanks :D
<adamjleonard>
Ruby is not coupled to the web
<lufi>
liru: :O osum! :D
<adamjleonard>
Liru: welcome
<lufi>
adamjleonard: yes i know that. that's why im thinking of something 'new'
<lufi>
ruby has been tangled so much on the 'rails' word.
Michael has joined #ruby
feedbackloop has joined #ruby
Michael is now known as Guest60713
ffranz has joined #ruby
kunday has joined #ruby
<lufi>
liru: you mind letting us see that game your workin on?
xcv has joined #ruby
nari has joined #ruby
<Liru>
lufi: It's really basic right now
kunday has quit [Read error: Connection reset by peer]
kunday has joined #ruby
<Liru>
Literally the only thing that works at the moment is an IRC bot saying hi if you enter the room, which was needed to make sure that if someone comes in the channel, they're logged in
kunday has quit [Client Quit]
<Liru>
And saying !gather to "gather" resources, which it only does in name
<Liru>
Plus the fact that I just started coding in Ruby about 2 days ago...
<lufi>
i forgot the name.. it starts with 'z' i think
<Liru>
vim
<adamjleonard>
You need to set your tabs to spaces
ffranz has quit [Client Quit]
jmsbrwr has joined #ruby
<Liru>
Will do so, just let me finish this up
<adamjleonard>
Lol np. Just looking out. Hard to read this code due to it's insane spacing
mfridh has quit [Read error: Operation timed out]
<lufi>
ooh something like Zork!
<lufi>
now I remember
xcv has quit [Ping timeout: 264 seconds]
banjara has quit [Quit: Leaving.]
ZachBeta has quit [Quit: Computer has gone to sleep.]
emanu has quit [Quit: emanu]
gener1c has quit [Ping timeout: 276 seconds]
gener1c has joined #ruby
<Liru>
lufi: Sort of like Zork
freeayu3 has quit [Quit: 离开]
<Liru>
But I've got a more multiplayer thing in mind
arya has quit [Ping timeout: 252 seconds]
freeayu has joined #ruby
Guest60713 has quit [Remote host closed the connection]
<Liru>
Think Settlers
<lufi>
yup that's what is in my mind too a few years back. though im trying to create it in PHP lol
Michael has joined #ruby
<lufi>
oh settlers. I was thinking more of a tabletop-like game.
Michael is now known as Guest32801
jamescarr has joined #ruby
<jamescarr>
hey can I use env variables in yaml on ruby?
r0bgleeson has quit [Ping timeout: 255 seconds]
adamjleonard has quit [Quit: Leaving...]
jnoob22 has quit [Remote host closed the connection]
Voodoofish430 has quit [Quit: Leaving.]
tylersmith has joined #ruby
jjbohn_ has joined #ruby
arya has joined #ruby
rupee has quit [Quit: Leaving]
Guest32801 has quit [Remote host closed the connection]
<BinaryMaster>
Can anyone tell me where I can find information about the Svn::Client class I have been searching google but all I get is how to use svn to develop core ruby
banjara has joined #ruby
waxjar has quit [Ping timeout: 258 seconds]
rakl has quit [Quit: sleeping]
thomasfedb has quit [Ping timeout: 252 seconds]
ZachBeta has joined #ruby
stnly has quit [Ping timeout: 255 seconds]
arya has quit [Read error: Connection reset by peer]
xardas has quit [Ping timeout: 252 seconds]
jjbohn has quit [Ping timeout: 252 seconds]
banjara has quit [Client Quit]
mockra has quit [Remote host closed the connection]
osvico has joined #ruby
mattbl has quit [Quit: This computer has gone to sleep]
slainer68 has joined #ruby
momomomomo has joined #ruby
arya has joined #ruby
end_guy has joined #ruby
chessguy has joined #ruby
GeissT has joined #ruby
Tricon has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
ndngvr has quit [Quit: Coyote finally caught me]
ndngvr has joined #ruby
newUser1234 has joined #ruby
akhet has quit [Remote host closed the connection]
bradhe has joined #ruby
r0bgleeson has joined #ruby
aki1 has quit [Ping timeout: 255 seconds]
slainer68 has quit [Ping timeout: 264 seconds]
aki1 has joined #ruby
vlad_sta_ has joined #ruby
tundrax has joined #ruby
arya_ has joined #ruby
ZachBeta has joined #ruby
_nitti has joined #ruby
arya has quit [Ping timeout: 245 seconds]
mikepack has quit [Remote host closed the connection]
jamescarr has quit [Quit: jamescarr]
bradhe has quit [Ping timeout: 264 seconds]
vlad_starkov has quit [Ping timeout: 252 seconds]
chessguy has quit [Remote host closed the connection]
r0bgleeson has quit [Read error: No route to host]
r0bgleeson has joined #ruby
tvw has quit [Ping timeout: 264 seconds]
kunday has joined #ruby
kunday has quit [Read error: Connection reset by peer]
d2dchat has joined #ruby
Domon has joined #ruby
faldridge has joined #ruby
hamakn has joined #ruby
kunday has joined #ruby
marcdel has quit [Quit: marcdel]
rodacato has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
MistuhKurtz has joined #ruby
chrishunt has joined #ruby
<MistuhKurtz>
so if HEAD~1 is one commit previous to the HEAD, how do I reference the next commit?
<MistuhKurtz>
er I thought I was in #git, apologies
Ripp__ has joined #ruby
rayrayy has joined #ruby
io_syl has quit [Quit: Computer has gone to sleep.]
peta_ has quit [Quit: peta_]
jjbohn_ has quit [Quit: Leaving...]
pskosinski has quit [Quit: pskosinski]
lunarjar has quit [Ping timeout: 264 seconds]
Hanmac2 has joined #ruby
kunday has quit [Quit: Leaving...]
ehaliewicz has joined #ruby
Hanmac1 has quit [Ping timeout: 256 seconds]
Heero has joined #ruby
ttt has joined #ruby
kunday has joined #ruby
jeebster has quit [Quit: Leaving.]
nari has quit [Ping timeout: 264 seconds]
kunday has quit [Read error: Connection reset by peer]
kunday has joined #ruby
guitsaru_ has quit [Remote host closed the connection]
kunday has quit [Client Quit]
guitsaru has joined #ruby
lunarjar has joined #ruby
tundrax has quit [Ping timeout: 256 seconds]
eka has quit [Quit: Computer has gone to sleep.]
_maes_ has joined #ruby
guitsaru has quit [Ping timeout: 256 seconds]
elux has joined #ruby
robustus has joined #ruby
dummies_freelanc has quit [Ping timeout: 256 seconds]
vlad_sta_ has quit [Remote host closed the connection]
rayrayy has quit [Quit: Page closed]
tundrax has joined #ruby
etcetera has quit [Ping timeout: 256 seconds]
brandon has joined #ruby
momomomomo has quit [Quit: momomomomo]
etcetera has joined #ruby
dorei has quit []
Cultofmetatron has joined #ruby
frem has quit [Ping timeout: 240 seconds]
radic has quit [Disconnected by services]
radic has joined #ruby
sent_hil has joined #ruby
xlab_ has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
<havenwood>
droppedonmyhead: TL;DR: "Stubs provide canned answers to calls made during the test, usually not responding at all to anything outside what's programmed in for the test. Stubs may also record information about calls, such as an email gateway stub that remembers the messages it 'sent', or maybe only how many messages it 'sent'."
<droppedonmyhead>
havenwood: hmm…tricky
caleb_io has joined #ruby
kofno has quit [Remote host closed the connection]
tomsthumb has joined #ruby
BadLarry has joined #ruby
krz has joined #ruby
r0bgleeson has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
kofno has joined #ruby
pencilcheck is now known as pen
indyrl has quit [Read error: Connection reset by peer]
zenmonkey has quit []
Guest71188 has quit [Remote host closed the connection]
newUser1234 has quit [Remote host closed the connection]
bradhe has joined #ruby
jmsbrwr has quit [Ping timeout: 256 seconds]
xlab has joined #ruby
KazW_ has quit [Quit: Later all!]
SCommette has joined #ruby
yusup has joined #ruby
GOMADWarrior has joined #ruby
tommyvyo has joined #ruby
aryatosh has joined #ruby
Opettaja has joined #ruby
indyrl has joined #ruby
indyrl has quit [Read error: Connection reset by peer]
jamescarr has joined #ruby
waxjar has joined #ruby
TheMoonMaster has quit [Excess Flood]
Hanmac1 has joined #ruby
Mattx has joined #ruby
TheMoonMaster has joined #ruby
Hanmac2 has quit [Ping timeout: 276 seconds]
Hanmac2 has joined #ruby
TheMoonMaster has quit [Excess Flood]
TheMoonMaster has joined #ruby
jamescarr has quit [Quit: jamescarr]
wreckimnaked has quit [Quit: WeeChat 0.3.8]
chipotle_ has quit [Quit: cya]
Hanmac1 has quit [Ping timeout: 246 seconds]
Matip has quit [Ping timeout: 264 seconds]
io_syl has joined #ruby
Bofu2U has quit [Read error: Connection reset by peer]
brunoro has joined #ruby
Bofu2U has joined #ruby
Mon_Ouie has quit [Ping timeout: 252 seconds]
vlad_starkov has joined #ruby
megha has quit [Read error: Operation timed out]
elux has quit [Quit: Leaving...]
tylersmith has joined #ruby
security has joined #ruby
noop has quit [Ping timeout: 276 seconds]
theoros has quit [Ping timeout: 276 seconds]
supki has quit [Ping timeout: 276 seconds]
supki has joined #ruby
theoros has joined #ruby
mockra has joined #ruby
noop has joined #ruby
jekotia has quit [Quit: ChatZilla 0.9.90-rdmsoft [XULRunner 18.0.2/20130201065344]]
bradhe has quit [Remote host closed the connection]
nga4 has quit []
mockra has quit [Remote host closed the connection]
kunday has joined #ruby
Randomage has joined #ruby
kofno has quit [Remote host closed the connection]
kunday has quit [Read error: Connection reset by peer]
cibs has quit [Quit: leaving]
wolf_blackout has joined #ruby
kunday has joined #ruby
kunday has quit [Read error: Connection reset by peer]
kunday has joined #ruby
wolf_blackout has left #ruby [#ruby]
sambao21 has quit [Quit: Computer has gone to sleep.]
akam-it has joined #ruby
Hanmac1 has joined #ruby
cooldman224 has joined #ruby
brandon_1 has joined #ruby
brandon_1 has quit [Client Quit]
kunday has quit [Ping timeout: 248 seconds]
Hanmac2 has quit [Ping timeout: 264 seconds]
johnkary has quit [Quit: @johnkary]
retry has joined #ruby
zastern has quit [Remote host closed the connection]
sambao21 has joined #ruby
wallerdev has joined #ruby
GOMADWarrior has quit [Ping timeout: 264 seconds]
cibs has joined #ruby
mockra has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
bradhe has joined #ruby
Gooder` has joined #ruby
jdunck has quit [Quit: Computer has gone to sleep.]
mockra has quit [Remote host closed the connection]
uris has quit [Quit: Leaving]
xkickflip has quit [Quit: h..hi]
Gooder has quit [Ping timeout: 252 seconds]
ariedler has joined #ruby
mockra has joined #ruby
gstamp has quit [Ping timeout: 256 seconds]
jjbohn has joined #ruby
locriani has quit [Remote host closed the connection]
Guedes has quit [Quit: Saindo]
mmlac-bv has quit [Quit: mmlac-bv]
yaaang has joined #ruby
jjbohn has quit [Ping timeout: 264 seconds]
arya_ has quit [Ping timeout: 248 seconds]
dankest has joined #ruby
dmiller has quit [Ping timeout: 276 seconds]
aryatosh has quit [Ping timeout: 246 seconds]
cooldman224 has quit [Remote host closed the connection]
yashshah__ has joined #ruby
__alpaca_ has joined #ruby
faldridge has quit [Quit: faldridge]
arya has joined #ruby
hadees has joined #ruby
aryatosh has joined #ruby
yashshah- has quit [Ping timeout: 252 seconds]
__alpaca_ has quit [Ping timeout: 256 seconds]
aryatosh has quit [Ping timeout: 246 seconds]
rippa has quit [Ping timeout: 240 seconds]
timkohrumel has joined #ruby
momomomomo has joined #ruby
aryatosh has joined #ruby
tvw has joined #ruby
wallerdev has quit [Quit: wallerdev]
mattbl has joined #ruby
Davey has quit [Quit: Computer has gone to sleep.]
arya has quit [Ping timeout: 248 seconds]
timkohrumel has quit [Read error: Connection reset by peer]
kunday has quit [Read error: Connection reset by peer]
aryatosh has joined #ruby
Ripp__ has quit [Quit: Leaving]
tylersmith has quit [Quit: tylersmith]
tjbiddle has joined #ruby
kunday has joined #ruby
kunday has quit [Read error: Connection reset by peer]
kenneth has quit [Quit: kenneth]
kunday has joined #ruby
kofno has joined #ruby
tjbiddle_ has joined #ruby
billy_ran_away has quit [Ping timeout: 252 seconds]
d11wtq_ios has joined #ruby
vlad_sta_ has joined #ruby
tjbiddle has quit [Ping timeout: 260 seconds]
tjbiddle_ is now known as tjbiddle
billy_ran_away has joined #ruby
divout has joined #ruby
banjara has joined #ruby
mockra has quit [Remote host closed the connection]
tonini has joined #ruby
vlad_sta_ has quit [Remote host closed the connection]
nwertman has joined #ruby
vlad_starkov has quit [Ping timeout: 256 seconds]
aces1up has quit [Remote host closed the connection]
aces1up has joined #ruby
tomzx_mac has quit [Ping timeout: 245 seconds]
ariedler has quit [Remote host closed the connection]
guiambros has joined #ruby
kofno has quit [Ping timeout: 256 seconds]
rakl has joined #ruby
momomomomo has quit [Quit: momomomomo]
chxane has joined #ruby
<SirFunk>
so for some reason my gemfile is pulling in really old versions of things.. mongoid 1.0.6 and mongoid-carrierwave 1.1 or something... i have no idea why how can i track this down
Domon has quit [Remote host closed the connection]
d11wtq_ios has quit [Remote host closed the connection]
generalissimo has quit [Remote host closed the connection]
MisterPostIT has joined #ruby
vikhyat has joined #ruby
io_syl has joined #ruby
k3rn3lito has quit [Ping timeout: 264 seconds]
sayan has joined #ruby
k3rn3lito has joined #ruby
Lockzi has joined #ruby
<havenwood>
SirFunk: Are those versions specified in your Gemfile or just a dependency of another gem in the Gemfile?
xlab has quit [Remote host closed the connection]
xlab has joined #ruby
io_syl has quit [Client Quit]
<SirFunk>
I didn't have versions specified. Seems like if i have xml-sitemap and don't specify versions for mongoid or carrierwave-mongoid they get REALLY old versions
hamakn has quit [Read error: Connection reset by peer]
hamakn has joined #ruby
locriani has joined #ruby
natalianatalia has quit []
aboudreault has joined #ruby
MisterPostIT has quit [Ping timeout: 264 seconds]
Vainoharhainen has joined #ruby
braoru has joined #ruby
vikhyat has quit [Remote host closed the connection]
dkannan has joined #ruby
danslo has joined #ruby
cantonic has quit [Quit: cantonic]
thone has quit [Ping timeout: 256 seconds]
etcetera has quit []
thone has joined #ruby
andikr has joined #ruby
h8R has quit [Ping timeout: 272 seconds]
icole has quit [Remote host closed the connection]
haxrbyte has joined #ruby
billy_ran_away has joined #ruby
ckrailo has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 248 seconds]
ckrailo has joined #ruby
ckrailo has quit [Client Quit]
tomsthumb has joined #ruby
pduin has joined #ruby
xefi_ has joined #ruby
afd__ has quit [Ping timeout: 245 seconds]
soulofpeace has quit [Read error: Operation timed out]
arya has joined #ruby
s2013 has quit []
gstamp has joined #ruby
persand has joined #ruby
Macaveli has quit [Quit: This computer has gone to sleep]
soulofpeace has joined #ruby
miso1337 has quit [Quit: afk]
workmad3 has quit [Ping timeout: 264 seconds]
rickruby has quit [Remote host closed the connection]
Kruppe has joined #ruby
miso1337 has joined #ruby
Kruppe has quit [Client Quit]
krz has joined #ruby
arya_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
arya has joined #ruby
mafolz has joined #ruby
Morkel has joined #ruby
arya_ has quit [Ping timeout: 248 seconds]
clocKwize has joined #ruby
clocKwize has quit [Client Quit]
filipe has joined #ruby
ehaliewicz has quit [Read error: No route to host]
subbyyy has quit [Ping timeout: 256 seconds]
alvin-x has joined #ruby
__alpaca_ has joined #ruby
thone has quit [Ping timeout: 255 seconds]
kiri has quit [Ping timeout: 245 seconds]
foofoobar has joined #ruby
JohnBat26 has joined #ruby
h8R has joined #ruby
kiri has joined #ruby
<foofoobar>
Hi. I need to create a more or less complex PDF report. It's just a single page with some text, images and lines. The alignment is the important point. I'm now thinking of: Is this possible with a 3rd party ruby lib? Or should I write a LaTeX-Template, parse that with ruby and replace the text and finally execute pdflatex on the command line?
tonini has quit [Remote host closed the connection]
LnL has joined #ruby
dr_bob has joined #ruby
__alpaca_ has quit [Ping timeout: 256 seconds]
<Mon_Ouie>
I'd usually do the latter, but there's a gem called prawn that can generate PDF
<foofoobar>
Mon_Ouie, yeah I found prawn and PDFKit. I just can't appraise them if they are powerful enough.
<foofoobar>
Maybe I should stick with the LaTeX creation
nick1 has left #ruby [#ruby]
nomenkun has quit [Remote host closed the connection]
xlab has quit [Ping timeout: 260 seconds]
LnL has quit [Ping timeout: 276 seconds]
tvw has quit []
arturaz has joined #ruby
banjara has quit [Quit: Leaving.]
vikhyat has joined #ruby
afd___ has joined #ruby
sayan has joined #ruby
Axsuul has quit [Ping timeout: 256 seconds]
kinginky has quit [Quit: Leaving]
afd___ has quit [Read error: Connection reset by peer]
rippa has quit [Ping timeout: 240 seconds]
hadees has quit [Quit: hadees]
threesome has quit [Ping timeout: 264 seconds]
Tectonic has quit [Quit: Tectonic]
<ChristianS>
LaTeX sounds most simple, and you can get very nice looking docs
skroon has joined #ruby
<smiler>
prawn is quite nice
<smiler>
But you kinda need general knowledge of the "internals" of the PDF format.
sayan has quit [Quit: Leaving]
love_color_text has joined #ruby
xlab has joined #ruby
freeayu has quit [Read error: Connection reset by peer]
mklappstuhl has joined #ruby
robert___ has joined #ruby
freeayu has joined #ruby
JonnieCache has quit [Ping timeout: 252 seconds]
Cork has quit [Ping timeout: 260 seconds]
robert_ has quit [Ping timeout: 276 seconds]
Cork has joined #ruby
<foofoobar>
I had problems with putting text with special chars in LaTeX templates
<foofoobar>
I had to do a lot of replacing so no LaTeX errors occured
love_color_text has quit [Read error: Connection reset by peer]
<foofoobar>
Prawn actually looks not that bad.. smiler what do you mean with "internals" of the PDF format?
security is now known as baba
LnL has joined #ruby
<smiler>
foofoobar: I mean how to layout the document, boxes and such.
love_color_text has joined #ruby
<foofoobar>
smiler, in the prawn manual I can see that I can position elements with coordinates, or what do you mean?
<smiler>
However I think it have some grid thingy built in for layout
<smiler>
You'll probably want to declare bounding boxes for the text if you want it to flow correctly
<foofoobar>
smiler, the PDF is just a one-pager
Xeago has joined #ruby
love_color_text has quit [Remote host closed the connection]
mockra has joined #ruby
love_color_text has joined #ruby
kreantos has joined #ruby
tonini has joined #ruby
kelabot has joined #ruby
haxrbyte has quit [Remote host closed the connection]
chussenot has joined #ruby
mockra has quit [Ping timeout: 248 seconds]
Spooner has joined #ruby
skroon_ has joined #ruby
arya has quit [Ping timeout: 240 seconds]
jprovazn has joined #ruby
k610 has joined #ruby
chussenot has left #ruby [#ruby]
tonini has quit [Ping timeout: 248 seconds]
brunoro has joined #ruby
skroon has quit [Ping timeout: 256 seconds]
arya has joined #ruby
afd__ has joined #ruby
bradhe has quit [Remote host closed the connection]
Mon_Ouie has quit [Ping timeout: 252 seconds]
bradhe has joined #ruby
skroon_ is now known as skroon
earthquake has quit [Quit: earthquake]
mfridh has joined #ruby
bradhe has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
BizarreCake has joined #ruby
yashshah has quit [Read error: Connection reset by peer]
alup has joined #ruby
rdark has joined #ruby
vikhyat has quit [Remote host closed the connection]
Kruppe has joined #ruby
icole has joined #ruby
arya has joined #ruby
ferdev has quit [Quit: ferdev]
tonini has joined #ruby
swex has quit [Read error: Connection reset by peer]
xlab_ has joined #ruby
arya_ has joined #ruby
charliesome has joined #ruby
xlab has quit [Read error: Connection reset by peer]
icole has quit [Ping timeout: 256 seconds]
swex has joined #ruby
LnL has quit [Quit: LnL]
arya has quit [Ping timeout: 252 seconds]
vikhyat has joined #ruby
pi3r has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
troessner has joined #ruby
camilasan has joined #ruby
timmow has quit [Remote host closed the connection]
rhannequin has joined #ruby
__alpaca_ has joined #ruby
brianpWins has quit [Quit: brianpWins]
rhannequin has quit [Client Quit]
yashshah_ has joined #ruby
mahmoudimus has joined #ruby
tvw has joined #ruby
unflores has joined #ruby
Nanuq has quit [Read error: Operation timed out]
bluOxigen has joined #ruby
lkba has quit [Ping timeout: 248 seconds]
Nanuq has joined #ruby
ToApolytoXaos has joined #ruby
__alpaca_ has quit [Ping timeout: 252 seconds]
rhannequin has joined #ruby
tonini has quit [Remote host closed the connection]
hamakn has quit [Remote host closed the connection]
<bw_>
hmm, is there something like pythons pep 249 (a unified api for databases) in ruby?
mootpointer has joined #ruby
Zai00 has joined #ruby
yashshah_ has quit [Ping timeout: 245 seconds]
yashshah_ has joined #ruby
ixti has joined #ruby
gstamp has quit [Quit: Computer has gone to sleep.]
emergion has joined #ruby
codezombie has joined #ruby
banjara has joined #ruby
blacktulip has joined #ruby
emergion has quit [Client Quit]
locriani has quit [Remote host closed the connection]
<troessner>
bw_, AFAIK no
lemonsparrow has quit [Ping timeout: 245 seconds]
ferdev has joined #ruby
persand has quit [Ping timeout: 248 seconds]
camilasa_ has joined #ruby
fjwjfiewjfw has quit [Ping timeout: 252 seconds]
brianpWins has joined #ruby
<shevy>
I am writing on a ruby-shell. any ideas what to add to it, what would be very cool?
<hoelzro>
shevy: you mean a shell like bash?
<hoelzro>
or like pry?
<shevy>
hoelzro more like bash, yeah, though integrating pry-like behaviour would be rather cool too
persand has joined #ruby
hamakn has joined #ruby
<hoelzro>
shevy: what's the underlying concept?
<shevy>
I am just sometimes trying to get new ideas
<hoelzro>
bash, but with Ruby as the scripting language?
<shevy>
hoelzro haha :D my current concept is "total chaos, don't really have a real plan ..."
<shevy>
hoelzro well... yeah... though perhaps I'll rewrite this in C one day
Kruppe has quit [Remote host closed the connection]
Kruppe has joined #ruby
camilasan has quit [Ping timeout: 264 seconds]
Kruppe has quit [Remote host closed the connection]
bradhe has joined #ruby
ixti has quit [Quit: WeeChat 0.4.0]
tonini has joined #ruby
elaptics`away is now known as elaptics
banjara has quit [Ping timeout: 264 seconds]
brianpWins has quit [Client Quit]
bluOxigen has quit [Ping timeout: 252 seconds]
marr has joined #ruby
callmeivan has joined #ruby
skattyadz has joined #ruby
vikhyat has quit [Remote host closed the connection]
<shevy>
hoelzro dunno... I dont wanna learn lua :P
<hoelzro>
it takes like 10 minutes =)
<hoelzro>
it's so simple
clocKwize has joined #ruby
persand has joined #ruby
banjara has joined #ruby
<shevy>
hmm... is a yaml file of byte size 162759 huge? it has key: value syntax... a hash... it seems that takes a little to read in instantly, from within a .rb file
Cultofmetatron has quit [Remote host closed the connection]
timmow has joined #ruby
schickung has joined #ruby
Nisstyre-laptop has quit [Ping timeout: 260 seconds]
<shevy>
ok, I think it is... I just changed something and indeed, my loop {} that reads in user input is super fast suddenly
kaffepanna has quit [Quit: leaving]
backjlack has joined #ruby
mootpointer has joined #ruby
arya has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
<injekt>
hasse: if you have pdftk installed you can use pdf-toolkit
<injekt>
hasse: ah yeah I've seen that before, give it a go :)
aspiers has joined #ruby
aspiers has quit [Client Quit]
aspiers has joined #ruby
timmow_ has joined #ruby
banjara has quit [Ping timeout: 264 seconds]
k611 has joined #ruby
xardas has joined #ruby
lkba has joined #ruby
monkegjinni has joined #ruby
k610 has quit [Ping timeout: 256 seconds]
<sander^work>
injekt, LennyLinux: i'm trying to install vagrant with: gem install bundler; bundle install .. Seems like I just needed to change location to where the project was.
sayan has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
MisterPostIT has joined #ruby
<LennyLinux>
sander^work: that kind of installation is deprecated. You should use the proper package taken from the vagrant web site
hamakn has quit [Remote host closed the connection]
<LennyLinux>
I mean... If you want the last releases
Gooder``` has joined #ruby
yugui is now known as yugui_zzz
sayan has quit [Read error: Connection reset by peer]
goganchic has joined #ruby
rhannequin has quit [Ping timeout: 245 seconds]
includex has joined #ruby
blaxter has quit [Read error: Connection reset by peer]
happydude has quit [Quit: Leaving]
Gooder`` has quit [Ping timeout: 256 seconds]
blaxter_ has joined #ruby
jbpros has quit [Ping timeout: 264 seconds]
hamakn has joined #ruby
arya has joined #ruby
pietr0 has quit [Ping timeout: 252 seconds]
RubyPanther has quit [Ping timeout: 260 seconds]
includex has quit [Quit: Leaving...]
akashj87 has joined #ruby
tonini has quit [Remote host closed the connection]
lmf40 has joined #ruby
RubyPanther has joined #ruby
marr has quit []
marr has joined #ruby
arya has quit []
camilasan has joined #ruby
Giorgio has joined #ruby
aaronmcadam has quit [Quit: Leaving...]
icecandy has joined #ruby
aaronmcadam has joined #ruby
banjara has joined #ruby
aaronmcadam has quit [Client Quit]
ephemerian has joined #ruby
goganchic has left #ruby [#ruby]
clocKwize has quit [Quit: clocKwize]
foofoobar has quit [Quit: Computer has gone to sleep.]
pietr0 has joined #ruby
hasse has quit [Ping timeout: 245 seconds]
skattyadz has quit [Quit: skattyadz]
__alpaca_ has joined #ruby
sayan has joined #ruby
MrZYX|off is now known as MrZYX
clocKwize has joined #ruby
havenwood has joined #ruby
<sander^work>
gem install json ... fails on: make: *** [generator.o] Error 1. How can I install it?
<sander^work>
I have installed the ruby development kit
<sander^work>
Oh, and i'm on windows atm.
arya has joined #ruby
soulofpeace has quit [Ping timeout: 252 seconds]
<sander^work>
I need a c compiler I belive.
__alpaca_ has quit [Ping timeout: 264 seconds]
philcrissman has quit [Read error: Connection reset by peer]
soulofpeace has joined #ruby
Morkel has quit [Quit: Morkel]
philcrissman has joined #ruby
Targen has quit [Remote host closed the connection]
banjara has quit [Ping timeout: 264 seconds]
miso1337 has quit [Quit: afk]
jdunck has quit [Quit: Computer has gone to sleep.]
baba is now known as cod3r
thone has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
arya has quit [Ping timeout: 248 seconds]
Chatty has joined #ruby
tundrax has quit [Remote host closed the connection]
<Spooner>
sander^work, You don't need the json gem any more; it is in the standard library.
Chatty has quit [Client Quit]
peta_ has joined #ruby
<Spooner>
sander^work, The dev kit includes the mingw c compiler, so it should work anyway though.
nari has joined #ruby
rton has joined #ruby
Gooder``` has quit [Ping timeout: 252 seconds]
theRoUS has joined #ruby
thone has quit [Ping timeout: 248 seconds]
Macaveli has quit [Read error: Connection reset by peer]
rton has left #ruby [#ruby]
arya has joined #ruby
<sander^work>
Spooner, Yeah.. Your right. But it seems like both "gem install json" and "bundle install" fails with the same error: make: *** [generator.o] Error 1.
Macaveli has joined #ruby
<Spooner>
sander^work, You installed the right dev-kit for your version of Ruby?
bradhe has joined #ruby
<sander^work>
Spooner, I got told to install ruby 1.9. but I installed devkit-mingw64-64
<sander^work>
Spooner, Which one is right?
<Spooner>
No, the mingw64 devkit is only for the 2.0 x64 build.
<sander^work>
Spooner, so I need the tdm one?
<Spooner>
You want Ruby1.9.3 + DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
<Spooner>
Yes.
yashshah_ has quit [Ping timeout: 252 seconds]
<Spooner>
It isn't terribly clear, I must admit. The 64-bit build is very new though; always used to be just 32 bit builds.
<sander^work>
Spooner, how do I uninstall the mingw64 one?
<joshu>
can anyone please suggest any good video tutorials on ruby which also cover testing
<Spooner>
You shouldn't need to uninstall it. It probably won't have added itself to your 32bit Ruby.
<sander^work>
Spooner, I'll try :-)
<Spooner>
Otherwise, I'd completely reinstall 1.9.3 and then install the 32bit dev kit. Hopefully won't need to though.
<nfk>
let's say I have a method "drives" that returns cars registered with the user and I want a method to add another car to that list, should I use a setter or a differently named method like add_a_car?
dr_bob has joined #ruby
monkegjinni has joined #ruby
<elaptics>
nfk: I would go with an explicitly named method like add_a_car
<waxjar>
either expose the list of cars or provide a add_car method (probably best, gives you most flexibility)
monkegji_ has joined #ruby
<nfk>
meh, i guess that will be cleaner in the long run like if ever need a method to remove a car from the list
enriclluelles has quit [Remote host closed the connection]
kofno has quit [Remote host closed the connection]
tommyvyo has joined #ruby
bradhe has joined #ruby
kofno has joined #ruby
philcrissman has quit [Read error: Connection reset by peer]
daniel_- has quit [Ping timeout: 258 seconds]
philcrissman has joined #ruby
amarraja has joined #ruby
dhruvasagar has quit [Ping timeout: 252 seconds]
fermion has joined #ruby
jnoob22 has quit [Ping timeout: 255 seconds]
wolcanus has joined #ruby
gosshedd has quit [Ping timeout: 256 seconds]
wolcanus has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 260 seconds]
wolcanus has joined #ruby
gosshedd has joined #ruby
oneirophren has joined #ruby
enriclluelles has joined #ruby
PigDude has joined #ruby
grn_ is now known as grn
jtharris has joined #ruby
mengu has quit [Quit: This computer has gone to sleep]
EPIK has quit [Ping timeout: 264 seconds]
daniel_- has joined #ruby
mercwithamouth has joined #ruby
jamesaxl__ has joined #ruby
senayar has joined #ruby
chrishunt has quit [Quit: ZzZzZz...]
pcboy_ has quit [Remote host closed the connection]
jamesaxl has quit [Ping timeout: 256 seconds]
dshultz has joined #ruby
chrishunt has joined #ruby
dshultz has quit [Remote host closed the connection]
dshultz has joined #ruby
clocKwize has joined #ruby
elux has joined #ruby
dshultz has quit [Client Quit]
wmoxam has joined #ruby
Spooner has quit [Remote host closed the connection]
danshultz has joined #ruby
jnoob22 has joined #ruby
monkegjinni has joined #ruby
timmow_ has joined #ruby
monkegjinni is now known as gungor
wesside has joined #ruby
gungor has quit [Read error: Connection reset by peer]
gungor_ has joined #ruby
hesco has quit [Read error: Connection reset by peer]
centipedefarmer has joined #ruby
graydot has quit [Quit: graydot]
hesco has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
akhet has joined #ruby
akhet has joined #ruby
akhet has quit [Changing host]
banjara has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
momomomomo has joined #ruby
gaahrdner has joined #ruby
rakl has quit [Quit: sleeping]
gosshedd has quit [Ping timeout: 252 seconds]
mneorr has joined #ruby
yshh has joined #ruby
chase-work has joined #ruby
fedza has joined #ruby
hesco has quit [Ping timeout: 256 seconds]
gosshedd has joined #ruby
k611 has quit [Ping timeout: 255 seconds]
yshh has quit [Read error: Connection reset by peer]
girija has quit [Ping timeout: 252 seconds]
kpshek has joined #ruby
yshh has joined #ruby
cmarques has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
slainer68 has joined #ruby
divout has joined #ruby
sayan has quit [Ping timeout: 256 seconds]
baba has quit [Ping timeout: 255 seconds]
nessib has joined #ruby
nanothief has quit [Ping timeout: 252 seconds]
sambao21 has joined #ruby
pcarrier has joined #ruby
codecop has quit [Remote host closed the connection]
wagster has joined #ruby
hesco has joined #ruby
banjara has quit [Ping timeout: 264 seconds]
mercwithamouth has quit [Ping timeout: 255 seconds]
Deele has joined #ruby
<Deele>
hello
<Deele>
could someone help me
<MrZYX>
maybe
ffranz has joined #ruby
<Deele>
I have stumbled upon error
tk_ has joined #ruby
<Deele>
not really error, but bug
<Deele>
when field in app is html special chars escaped
<MrZYX>
you're talking about rails?
<Deele>
redmine
foofoobar has quit [Quit: Computer has gone to sleep.]
<Deele>
app is redmin
Speed has quit [Quit: Lost terminal]
failshell has joined #ruby
adamjleonard has joined #ruby
Macaveli has joined #ruby
<whowantstolivefo>
which is the good choose for a person who has no too much programming background ? rails or sinatra ? or from what should i learn web development with ruby ?
<whowantstolivefo>
Hanmac: i read some of books for beginner , should i digg it more after i will again start web apps ?
<tobiasvl>
but yes, learn ruby first
supernullset has quit [Remote host closed the connection]
<whowantstolivefo>
tobiasvl: ! i will keep reading books then ? about ruby ?
<tobiasvl>
if … if you want
io_syl has joined #ruby
<whowantstolivefo>
i want learn Ruby!~
<ericwood>
just go do the codeacademy ruby course
mklappst_ has joined #ruby
gosshedd has joined #ruby
<LennyLinux>
I like The Ruby Programming Language
<tobiasvl>
yes, it's very good
<tobiasvl>
co-written by the creator of ruby
uris has joined #ruby
<whowantstolivefo>
i finished ruby courses
<tobiasvl>
and pictures by why :')
* Hanmac
learned ruby without book ...
Macaveli has quit [Read error: Connection reset by peer]
<whowantstolivefo>
you guys right coz whenever i jumped rails or anything so , next months i get fail and it hurt my heart because of i spend too many times
<joshu>
out of the different ruby courses treehouse, code school, code academy what you do guys recommend
mercwithamouth has joined #ruby
<whowantstolivefo>
except treehouse i looked codeschool and code academy
<whowantstolivefo>
both are brilliant
sleetdrop has joined #ruby
<joshu>
ok thanks whowantstolivefo
sleetdrop has quit [Max SendQ exceeded]
skattyadz has joined #ruby
thone has joined #ruby
<whowantstolivefo>
joshu: i have accounts with the same name at there it is fun to work with these courses
<joshu>
ok I'll give them a try I want to improve my ruby fundamentals as so far I've just been putting things together after googling and asking questions, but I want a better understanding
<MrZYX>
whowantstolivefo: what do you actually mean by "failed", have a project and can't finish it?
<whowantstolivefo>
LennyLinux: are you genious or we have no even little genious ? :)
k611 has joined #ruby
graydot has joined #ruby
<whowantstolivefo>
MrZYX: i m old web designer! but last 4 year i work as manager in IT office at big hospital
<LennyLinux>
whowantstolivefo: i'm an average student
<whowantstolivefo>
i want to learn and do my web stuff with ruby and web programmings because i have many ideas but noone around me for do this.
graydot has quit [Client Quit]
<LennyLinux>
whowantstolivefo: where are you from?
<whowantstolivefo>
LennyLinux: i looked ruby and rails more then you looked, i feel so bad myself now
havenwood has joined #ruby
freeayu3 has quit [Remote host closed the connection]
celinedior has joined #ruby
<whowantstolivefo>
LennyLinux: i live in Turkey
<MrZYX>
did you try to just pick the smallest one and then researching and learning what you need for it instead of trying to learn everything there is upfront?
<LennyLinux>
whowantstolivefo: give a look at railscasts, it's really useful
newUser1234 has quit [Remote host closed the connection]
<whowantstolivefo>
MrZYX: !~! that is the problem of me!
ph^ has quit [Ping timeout: 252 seconds]
<whowantstolivefo>
MrZYX: i want to learn and get confuse day by day and a few months later, i closed everything
<LennyLinux>
Choose an app and learn what you need to build that app
<whowantstolivefo>
LennyLinux: i will be more carefull about rails casts but you guys tell me first ruby after sinatra or rails
<LennyLinux>
That could be a way
<LennyLinux>
Yes, first ruby.
billycravens has quit [Quit: billycravens]
<MrZYX>
In my experience learning languages and frameworks is a lot easier if you have an actual task you really want to do, there's no shame to start over a few times in the process
<whowantstolivefo>
LennyLinux: i have a basic web site www.malikaslan.com this is my wife's page. she is learning graphic design and static web design last 7-8 months.. i want programming her web pages and stuff and help her :_
camilasan has joined #ruby
<whowantstolivefo>
:)
<LennyLinux>
:)
robmuh has joined #ruby
generalissimo has joined #ruby
<whowantstolivefo>
my wife is learning more faster than me , am i stupid ? haha
jerius_ has joined #ruby
<spider-mario>
can’t be said without knowing your wife’s intelligence
<robmuh>
anyone know of a 'headless' Rails approach that let's you leverage db models without the web? (sorry for the cross if you are on #rails, no response there)
Davey has joined #ruby
havenwood has quit [Ping timeout: 252 seconds]
<LennyLinux>
robmuh: have tried on #rubyonrails?
<LennyLinux>
you*
<whowantstolivefo>
me and my wife get married in july 24 2011 and my wife started to use computer and start design at the same time like 2012 end of august... now she is doing stuff as amateur at www.malikaslan.com
io_syl has quit [Quit: Computer has gone to sleep.]
<lectrick>
injekt: so this is not a mechanism to run code that fires up a daemon, then?
slainer6_ has joined #ruby
SCommette has joined #ruby
timmow_ has joined #ruby
<Hanmac>
lectrick: look at Process.daemon
nezumi has joined #ruby
__main__ has quit [Ping timeout: 256 seconds]
Deele has quit [Ping timeout: 245 seconds]
enriclluelles has quit [Read error: Connection reset by peer]
enricllu_ has joined #ruby
slainer68 has quit [Ping timeout: 258 seconds]
felixjet has joined #ruby
tootubular has joined #ruby
ariedler has joined #ruby
vikhyat has quit [Remote host closed the connection]
uris has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
browndawg has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
__main__ has joined #ruby
bean has joined #ruby
aganov has quit [Remote host closed the connection]
BinaryMaster has quit [Quit: Bye loves see you again soon!]
bakingbread has joined #ruby
timmow_ has quit [Ping timeout: 252 seconds]
LnL has joined #ruby
sailias1 has quit [Quit: Leaving.]
sailias has joined #ruby
marwinism has joined #ruby
GOMADWarrior has joined #ruby
danshultz has quit [Remote host closed the connection]
newUser1234 has joined #ruby
mootpointer has quit [Quit: Computer has gone to sleep.]
locriani has joined #ruby
<wmoxam>
I've got a ruby script thats supposed to do bundle updates in a list of projects, but it seems that bundler environment variables prevent this
jgrau has joined #ruby
__main__ has quit [Ping timeout: 252 seconds]
<shevy>
^^^ Hanmac can fix that
<shevy>
he loves bundler
lsone has joined #ruby
<Joel>
I want to make sure I'm reading this correctly, I have class B, which extendes class A. Class A has a method hello, in B I can't override the hello method, correct?
chandankumar has joined #ruby
miso1337 has joined #ruby
<MrZYX>
no, you can overwrite the method
jgrau has quit [Remote host closed the connection]
<shevy>
Joel u can always overwrite
Gabri has joined #ruby
<shevy>
this is sparta!
<shevy>
this is ruby
<shevy>
not java :D
* shevy
overwrites MrZYX with MrXYZ
jdripper has joined #ruby
<MrZYX>
but that statement in particular is valid for pretty much every language (class B < A; def hello; #I'm overwritten; end, end)
<Joel>
hrm, I wonder what I'm doing wrong then.
wesside has quit [Quit: Computer has gone to sleep.]
<Joel>
No, I'm not using <
<Joel>
I'm using extends
<MrZYX>
well
<Joel>
s/s//
<MrZYX>
extends does something very different
tomsthumb has quit [Quit: Leaving.]
<MrZYX>
first of all, it should take a module, not a class
hogeo has quit [Remote host closed the connection]
<shevy>
Joel extend is similar to include
<shevy>
Joel but both works on a class, not module, so you are using the wrong terminology, or you are not speaking the truth :D
<shevy>
sorry
<shevy>
vice versa
<shevy>
include and extend works on a module, subclassing works on classes
<shevy>
no
<Joel>
I have a class, which calls extend on a module
<shevy>
it's too hot here today, my brain does not think
<shevy>
yes Joel
<MrZYX>
shevy: that's what happens if you try to overwrite me ;P
<shevy>
but why do you not use include?
<shevy>
MrZYX I just was on bicycle almost an hour, it's damn hot here, the sun fried my brain :(
<Joel>
Include is for adding methods to an instance of a class and extend is for adding class methods.
<MrZYX>
Joel: extend includes the modules methods as class methods into the class, include includes them as instance methods
<MrZYX>
yup
<shevy>
hmm
<MrZYX>
Joel: make a gist, your code, what you get, what you expect
<shevy>
does include not also work for modules too?
<Joel>
MrZYX: that was the trick, missing self. in my class.
<MrZYX>
sure
<Joel>
derp derp derp
adkron_ has quit [Ping timeout: 276 seconds]
<shevy>
herp herp herp
timkohrumel has joined #ruby
lahwran is now known as lahwran-
lahwran- is now known as lahwra
wald0 has joined #ruby
lahwra is now known as lahwran
adkron has joined #ruby
nwertman has quit [Remote host closed the connection]
<wald0>
this is not really a need but i would like to know if the ruby code can be "compiled" or something (not readable), i think that i have see something about that but im not sure
mootpointer has joined #ruby
banjara has joined #ruby
<Joel>
wald0: ugh, are you trying to obfuscate it?
mmozuras has quit [Ping timeout: 255 seconds]
IrishGringo has quit [Remote host closed the connection]
<shevy>
wald0 ruby code is basically plain text really
BinaryMaster has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
mmozuras has joined #ruby
dustint has joined #ruby
GeissT has quit [Read error: Connection reset by peer]
<ohcibi>
hi, when starting an app in a thread that has output to stdin in it.. how to redirect it to /dev/null?
dustint has quit [Client Quit]
wedgex has joined #ruby
<ericwood>
you can system('command to start thingamajig > /dev/null')
__main__ has joined #ruby
<ericwood>
but that's spawning a new process, not threading it
<ericwood>
it all depends on what you mean by "app"
Vainoharhainen has quit [Quit: Leaving...]
dustint has joined #ruby
icecandy has quit [Remote host closed the connection]
<ohcibi>
ericwood: yes.. my question was bad 8-)... by starting an app I meant a sinatra class that I .run! in a thread... there is no system or `` involved.. I know about > /dev/null for normal shell commands 8-)
jlast has joined #ruby
chrishough has joined #ruby
<ericwood>
just modify the sinatra app to not print anything out?
<ericwood>
I'm not sure :\
Morkel has quit [Quit: Morkel]
axl_ has quit [Quit: axl_]
<ohcibi>
ericwood: yes that would also be an option, but I thought I can handle it at the thread level (maybe to redirect it into a logfile)
<MrZYX>
ohcibi: what ericwood said, if you really can't influence it you can modify $stdout
braincrash has quit [Ping timeout: 245 seconds]
wolcanus has quit [Remote host closed the connection]
<MrZYX>
yup, except that it's not scoped to thread, as said already
ckrailo has joined #ruby
jprovazn has joined #ruby
jprovazn is now known as jprovazn_afk
rdark has joined #ruby
Vainoharhainen has joined #ruby
<ohcibi>
MrZYX: what do you mean its not scoped to thread? i just tried to puts in the thread and puts outside.. what I puts outside is visible.. what I puts inside is not.. but its also not in the file log (which exists though)
<PigDude>
Which breaking changes, if any, does Ruby 2.0 introduce for Ruby 1.8.7 code? I've researched this and found some small things, but no detailed list.
mmozuras has joined #ruby
<MrZYX>
race condition, try joining the thread before doing the outer puts
<PigDude>
or for 1.x code in general
<MrZYX>
PigDude: port to 1.9.3 first (and search guides for that), porting to 2.0 should be easy then
<ohcibi>
MrZYX: yes thats supressing every puts now 8-)
juarlex has joined #ruby
<Hanmac>
PigDude: iconv is gone
<MrZYX>
PigDude: very little breaking changes between 1.9.3 and 2.0
<PigDude>
MrZYX, oh, I see
<PigDude>
MrZYX, do you know of a good document for the 1.9.3 upgrade? I was actually considering using 1.9.3 or 2.0.0, so I guess the problems I might expereince will be the same for either version
<Hanmac>
INFO ... ruby 1.9+ and 1.8.7 has different C-API than 1.8.6 ... so C-Gems for 1.8.6 does not work with 1.8.7
ph^ has joined #ruby
justsee has quit [Ping timeout: 252 seconds]
jovy88 has quit [Read error: Connection reset by peer]
<ohcibi>
MrZYX: yeah... Ive stored $stdout away before and assigned it back after joining the thread
mmozuras has quit [Ping timeout: 264 seconds]
jmsbrwr has joined #ruby
IrishGringo has joined #ruby
<ohcibi>
MrZYX: its not necessary to join if $stdout is assigned outside the thread...
<PigDude>
Hanmac, that's good to know
jovy88 has joined #ruby
renanoronfle__ has quit [Quit: This computer has gone to sleep]
Mattx has quit [Ping timeout: 255 seconds]
dustint has quit [Quit: Leaving]
<MrZYX>
ohcibi: but lets repeat it one more time, it's a last resort way to do it and you'll likely run into issues, porting the app to use a custom logger/output object is clearly the superior way
pduin has quit [Remote host closed the connection]
dustint has joined #ruby
__main__ has joined #ruby
slainer68 has joined #ruby
<MrZYX>
you can then dynamically change that object to $stdout, a file, dev/null or whatever
braincrash has joined #ruby
<ohcibi>
MrZYX: I understand that.. but I was asking for just suppressing/redirecting the output of a thread.. so this it not possible with the thread?
baroquebobcat has joined #ruby
<ohcibi>
except for the $stdout method
axl_ has joined #ruby
newUser1234 has quit [Remote host closed the connection]
rippa has joined #ruby
<MrZYX>
not that I'm aware of
<MrZYX>
less side effects at least
<MrZYX>
a lot easier with forks I guess
alex__c2022 has joined #ruby
ph^ has quit [Ping timeout: 256 seconds]
brennanMKE has joined #ruby
Vainoharhainen has quit [Read error: Connection reset by peer]
Gabri has quit [Remote host closed the connection]
<ohcibi>
MrZYX: forks will introduce other problems to my use case 8-)
<ohcibi>
MrZYX: as I must share variables between the threads
slainer6_ has quit [Ping timeout: 258 seconds]
splittingred has joined #ruby
sambio is now known as natalianatalia
nooodl has joined #ruby
retry has joined #ruby
bradhe has joined #ruby
alx- has joined #ruby
k611 has quit [Quit: Leaving]
daniel_- has quit [Ping timeout: 255 seconds]
krawchyk has joined #ruby
mikepack has joined #ruby
krawchyk has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 252 seconds]
newUser1234 has joined #ruby
kornnflake has quit [Read error: Connection refused]
polymar has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 256 seconds]
vikhyat has joined #ruby
zigomir has joined #ruby
adkron has joined #ruby
hamakn has quit [Remote host closed the connection]
kornnflake has joined #ruby
snearch has joined #ruby
emdub has quit [Ping timeout: 252 seconds]
oneirophren has quit [Ping timeout: 256 seconds]
duosrx has quit [Read error: Connection reset by peer]
<Spooner>
No, Australia is the one where the Arnie comes from.
jlast has quit [Remote host closed the connection]
jacobw has quit [Remote host closed the connection]
kenneth has quit [Quit: kenneth]
djwonk has joined #ruby
<Hanmac>
Spooner: i am not an american, i am not so easy to fooled
_nitti has quit [Remote host closed the connection]
danshultz has quit [Remote host closed the connection]
<aedorn>
Hanmac: As an American I can say, without a doubt, that I do not believe you. See? We're the ultimate skeptics ... we don't trust anyone!
<nezumi>
Australia is home to none of the ten most venomous creatures in the world.
<nezumi>
America has the last, American Women....
daniel_- has quit [Ping timeout: 260 seconds]
adambeynon has joined #ruby
icole has joined #ruby
mklapps__ has quit [Ping timeout: 258 seconds]
daniel_- has joined #ruby
chrishough has joined #ruby
pi3r has quit [Quit: Leaving]
tjbiddle has joined #ruby
_nitti has joined #ruby
banjara has quit [Quit: Leaving.]
Iszak has joined #ruby
jovy88 has quit [Read error: Connection reset by peer]
chipotle_ has quit [Quit: cya]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
mmlac-bv has joined #ruby
danslo has quit [Quit: danslo]
adambeynon has quit [Client Quit]
jovy88 has joined #ruby
<Hanmac>
nezumi: did you count the platypus? its venom is very evil
unflores has quit [Quit: unflores]
V8Energy has joined #ruby
schickung has quit [Quit: schickung]
nooodl has quit [Ping timeout: 258 seconds]
ferdev has joined #ruby
camilasa_ has quit [Remote host closed the connection]
oneirophren has quit [Ping timeout: 256 seconds]
<Hanmac>
shevy & Spooner: "added String#scrub to verify and fix invalid byte sequence."
<Spooner>
Hmm?
<mmlac-bv>
Is there a way to extend the class and the instance of a class at the same time using modules? i.e. I want to define a def self.find_objet and a def do_stuff in the same module. How do I accomplish that?
sambao21 has quit [Quit: Computer has gone to sleep.]
<Spooner>
mmlac-bv, You need to dynamically add the class method in the module's #included handler.
daniel_- has quit [Ping timeout: 264 seconds]
djwonk has quit [Quit: djwonk]
supernullset has joined #ruby
<Hanmac>
mmlac-bv: i prefer: def self.included(klass);super;klass.extend(ClassMethods);end
<mmlac-bv>
thank you both, I will take a look at this
sambao21 has joined #ruby
<Spooner>
I was meaning Hanmac's technique. I just explained it very badly ;)
d2dchat has quit [Remote host closed the connection]
girija has joined #ruby
<mmlac-bv>
So basically like this here: http://www.dan-manges.com/blog/27 The submodule ClassMethods is then a self.xxx() - correct?
philcrissman is now known as philcrissman_afk
ehaliewicz has joined #ruby
<Spooner>
mmlac-bv, Yes, the ExtendThroughInclude example.
<mmlac-bv>
thank you! :)
wolcanus_ has joined #ruby
wolcanus_ has quit [Remote host closed the connection]
aapzak has quit [Read error: Connection reset by peer]
<Hanmac>
Spooner did i show you how prepend, include and extend works combined? (very funny is prepend + singleton_class :) )
wolcanus has quit [Ping timeout: 264 seconds]
rton has joined #ruby
gaahrdner has quit [Remote host closed the connection]
csmrfx has quit [Quit: leaving]
ph^ has joined #ruby
c0rn has joined #ruby
<Spooner>
You didn't, but I can imagine it all goes to pot.
pedda has quit [Quit: Computer has gone to sleep.]
atno has quit [Ping timeout: 255 seconds]
alexyz has quit [Ping timeout: 248 seconds]
wargasm has quit [Ping timeout: 256 seconds]
aapzak has joined #ruby
timmow has quit [Ping timeout: 252 seconds]
marcdel has joined #ruby
wargasm has joined #ruby
momomomomo has quit [Quit: momomomomo]
celinedior has quit [Quit: celinedior]
djwonk has joined #ruby
KenDhia has joined #ruby
nessib has joined #ruby
<BinaryMaster>
Is there a documentation standard like phpdoc for methods and classes with ruby?
nooodl has joined #ruby
<MrZYX>
yup, rdoc. Some also use Yard
alexyz has joined #ruby
sepp2k has joined #ruby
ph^ has quit [Read error: No route to host]
<synfin>
Trivial question, I'm installing rvm in a nonstandard location. When I have it, I set up my PATH which finds rvm but if I attempt to use rvm I get the error "Can't find rvm install!" What did I do wrong?
<BinaryMaster>
okay cool, MrZYX would you happen to know if there is a plug in for auto generation for sublime text?
adkron has joined #ruby
jlast has joined #ruby
<BinaryMaster>
synfin, what is your current path?
hmarr has quit [Read error: Operation timed out]
ph^ has joined #ruby
jlast has quit [Remote host closed the connection]
dmiller has joined #ruby
elaptics is now known as elaptics`away
jlast has joined #ruby
<MrZYX>
BinaryMaster: package control yields a "yardoc" plugin
<BinaryMaster>
synfin, have you tried running rvm using the full path to the executable?
forlin has quit [Remote host closed the connection]
alvaro_o has joined #ruby
mavcunha has joined #ruby
paidhi has joined #ruby
Rym has quit [Quit: Rym]
paidhi has left #ruby [#ruby]
atno has joined #ruby
Vivekananda has quit [Quit: Ex-Chat]
<lectrick>
Why does defining a class return nil instead of the class itself? In other words, in my opinion, class Klass; end.new should return a Klass instance
danshultz has quit [Remote host closed the connection]
Liru has quit [Ping timeout: 268 seconds]
mavcunha has quit [Client Quit]
<MrZYX>
a class definition returns the last expression
Macaveli has quit [Quit: This computer has gone to sleep]
<lectrick>
yes so I can return "self" in it but meh
pedda has quit [Quit: Computer has gone to sleep.]
danshultz has joined #ruby
emmanuelux has joined #ruby
<Hanmac>
Spooner damm i dropped it :( the joke was that stuff prepended to the singleton_class can not be overwritten without an addional prepend again
Gabri has joined #ruby
mklappst_ has joined #ruby
duosrx has quit [Remote host closed the connection]
banjara has joined #ruby
<peta_>
is there something like maximum execution time for the ruby CLI that is set by default?
<PigDude>
peta_, and no, because that would be stupid and would be counter to ruby's use as a systems language
nooodl is now known as `echo
KenDhia has joined #ruby
Bosox20051 has joined #ruby
`echo is now known as nooodl
Heero has joined #ruby
Heero has quit [Changing host]
Heero has joined #ruby
Falieson has joined #ruby
gungor_ has quit [Read error: Connection reset by peer]
<peta_>
PigDude: that's not a valid reason
duosrx has joined #ruby
<peta_>
but thx
<PigDude>
peta_, ...
gungor has joined #ruby
troessner has quit [Ping timeout: 252 seconds]
<PigDude>
peta_, a valid reason? you expect general purpose programming languages to implement an arbitrary default program timeout?
<PigDude>
peta_, sorry dave, the cron jobs failed last night, we hit our 60s exec max
brotatos has quit [Read error: Operation timed out]
nooodl is now known as `nooodl
dmiller has quit [Remote host closed the connection]
d2dchat has joined #ruby
Heero` has joined #ruby
duosrx has quit [Remote host closed the connection]
brianpWins has joined #ruby
Zai00 has quit [Quit: Zai00]
<Eiam>
anyone ever setup sinatra with ssl via thin? I'm generating my own ssl cert, https://gist.github.com/anonymous/bfb3b887e71fc5ba1851 but safari & chrome both show the cn as openca.steamheat.net instead of localhost
<Hanmac>
peta_: or better: your ruby server was shutdown because of timeout ... do you want that?
brotatos has joined #ruby
mavcunha has joined #ruby
<peta_>
PigDude: lol … allowing every skript (regardless of the user it is started by) to run infinitely and/or unlimiting its resource consumption imposes a serious security risk
<PigDude>
peta_, maybe running random scripts is the security risk
Heero has quit [Ping timeout: 252 seconds]
mavcunha has quit [Client Quit]
enebo has quit [Quit: enebo]
<peta_>
so it may be reasonable to impose kind of default limitation and allow them to be removed/unlimited on a selective basis
<Hanmac>
evaling user input is a security risk
Zolo has quit [Remote host closed the connection]
<MrZYX>
peta_: what's the max execution time of C? C++? Python? Perl? Java? Erlang? Node?
guitsaru has joined #ruby
<MrZYX>
PHP is on a lonely island
<PigDude>
also known as *everything but PHP*
girija has left #ruby ["Ex-Chat"]
<PigDude>
to be fair, CLI PHP has no timeout
<PigDude>
but that shows about how knowledgeable peta_ is
jdunck has joined #ruby
<PigDude>
peta_, are you in the business of hosting ruby applications?
<PigDude>
peta_, point being, it is not something that belongs in the core language
CalebMingle has joined #ruby
<PigDude>
er, what tylersmith said
cha1tanya has quit [Ping timeout: 264 seconds]
<peta_>
no no … I don't want to limit execution of my script. I just asked because some CLI scripts suddently exit after 30secs or so
<PigDude>
well they aren't timing out if that's what you suspect
<peta_>
so i wondered if there are also default limitations (i am used to from PHP and Python)
<PigDude>
ruby doesn't have that
<PigDude>
nor does python!
<PigDude>
python does have StackLimitExceeded exception, which might be what you're thinking of
`nooodl is now known as nooodl
codecop has joined #ruby
<tylersmith>
just fill the stack a steady rate
<PigDude>
sorry, I meant the RuntimeError, recursion depth exceeded
alx- has quit [Quit: alx-]
<peta_>
that's not what i mean
<PigDude>
how about you show your script
<PigDude>
and we can help you fix it
<Hanmac>
hm ruby has also SystemStackError
<peta_>
you guys already helped me
mklappst_ has quit [Remote host closed the connection]
<Spooner>
But our stack error is really annoyingly bad (compared to the Python one).
alx- has joined #ruby
rodacato has quit [Quit: rodacato]
AxonetBE has joined #ruby
<AxonetBE>
I have a page when I visit it on my staging environment through https I got an error https://gist.github.com/DriesS/5443388, because the body passed to the function is a string. The problem is that I see no trace of my application in the logs and I don't know from where it comes. Somebody that can help me further?
<Spooner>
Well, at least the CRuby one is more than vague.
brennanMKE has joined #ruby
CalebMingle has quit [Quit: CalebMingle]
<Spooner>
AxonetBE, #rubyonrails channel?
<AxonetBE>
Spooner: ok thanks
rodacato has joined #ruby
huoxito has quit [Ping timeout: 258 seconds]
mavcunha has joined #ruby
robscomputer has quit [Ping timeout: 256 seconds]
__alpaca has quit [Remote host closed the connection]
vikhyat_ has joined #ruby
vikhyat has quit [Read error: Connection reset by peer]
tds has quit [Read error: Connection reset by peer]
Davey has quit [Quit: Computer has gone to sleep.]
tds has joined #ruby
schickung has joined #ruby
brennanMKE has quit [Ping timeout: 255 seconds]
twoism has quit [Read error: Connection reset by peer]
twoism has joined #ruby
Cultofmetatron has joined #ruby
rakl has quit [Quit: sleeping]
baroquebobcat has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
vikhyat has joined #ruby
c0rn has quit [Ping timeout: 255 seconds]
niceguyjames has joined #ruby
vikhyat_ has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Client Quit]
rakl has joined #ruby
newUser1234 has quit [Remote host closed the connection]
arietis has joined #ruby
Spooner has quit [Remote host closed the connection]
c0rn has joined #ruby
rwilcox has joined #ruby
alx- has quit [Quit: alx-]
oneirophren has joined #ruby
supernullset has quit [Remote host closed the connection]
<mmlac-bv>
Is there a way to mask a function name but use the original function inside the masking function? In my case I want to override a database find method for certain models but be able to use the find inside the method
momomomomo has joined #ruby
<Hanmac>
mmlac-bv: look for alias and alias_method
huoxito has joined #ruby
<mmlac-bv>
thank you
syl has joined #ruby
newUser1234 has joined #ruby
schickung has quit [Quit: schickung]
newUser1234 has quit [Remote host closed the connection]
browndawg has quit [Quit: Leaving.]
bghost has joined #ruby
mrsolo has joined #ruby
BSaboia has joined #ruby
tomzx_mac has joined #ruby
DarthGandalf has joined #ruby
BizarreCake has quit [Quit: Leaving]
_nitti has quit [Remote host closed the connection]
<syl>
I'm trying to get gitlab running and it seems to be that unicorn isn't working right. it's failing at the starting of unicorn. I think it's a gem issue. Any suggestions?
<dankest>
syl: any logs?
pettsson has joined #ruby
<dankest>
syl: kinda hard to evaluate without more information
pcarrier has quit [Quit: Computer has gone to sleep.]
tjbiddle has joined #ruby
<syl>
dankest: agreed. I'm very new to ruby so any guiding is helpful.
dr_ick has joined #ruby
vikhyat_ has joined #ruby
dmiller has joined #ruby
dr_ick has quit [Client Quit]
jamescarr has joined #ruby
<syl>
let me make a pastebin for you.
<dankest>
Thanks
Zolo has joined #ruby
_nitti has joined #ruby
<shevy>
let me make a cake for you.
Gabri has quit [Remote host closed the connection]
<PigDude>
a hake cake!
sayan has quit [Read error: Connection reset by peer]
supernullset has quit [Remote host closed the connection]
vikhyat has quit [Ping timeout: 240 seconds]
skroon has joined #ruby
Liru has joined #ruby
<Hanmac>
shevy why did you show them the evil instance_method way? ;P
v0n has joined #ruby
_nitti has quit [Remote host closed the connection]
dmiller has quit [Ping timeout: 258 seconds]
vikhyat_ has quit [Ping timeout: 264 seconds]
vikhyat has joined #ruby
<mmlac-bv>
Hanmac shevy: can I define the alias in a module that is included in the original class (that has the method to be masked)? http://pastebin.ca/2364686
<mmlac-bv>
I want to alias find to find_by_id_or_slug
graydot has joined #ruby
tjbiddle has quit [Ping timeout: 252 seconds]
tjbiddle_ is now known as tjbiddle
hiyakashi has quit [Quit: お前は知りすぎた]
Zolo has quit [Remote host closed the connection]
gaahrdner has joined #ruby
_nitti has joined #ruby
chase-work has joined #ruby
ananthakumaran has quit [Quit: Leaving.]
<peta_>
Herman taste vereeery very delicious
tjbiddle has quit [Read error: Connection reset by peer]
<peta_>
(at least the recipe of my mom)
momomomomo has quit [Quit: momomomomo]
momomomomo has joined #ruby
<Hanmac>
mmlac-bv: klass.send(:alias_method,:new_find,:find) in the def self.included(klass) method
<Xeago>
peta_: I love herman, my gf doesn't want to make a starter tho :'(
<aedorn>
Morrolan: no underscores... camel case, not snake case! Lots of things like "setUnifiedTitleAndToolBarOnMac"
cod3r is now known as baba
<aedorn>
shevy: yes, and telegrams too. Let's really go old school here!
<mmlac-bv>
Hanmac: found it. include order is wrong
<Morrolan>
aedornm: Yea, but what I meant was, that snake case wears out the shift key just as much as camel case. ;D
<shevy>
I use set* methods
<shevy>
def set_title(i)
<shevy>
@title = i
<shevy>
end
<akhet>
SHEVY
<shevy>
hahaha
<shevy>
I just like it visually!
<shevy>
def title=(i)
<shevy>
@title = i
<shevy>
end
<shevy>
naaaaaaah
baphled has joined #ruby
<aedorn>
oh, well, right... hmmm. I guess I'm just noticing it more because C++ makes me sad sometimes.
<Morrolan>
Yea, I find camel case to be less readable than snake case, too. :)
<Morrolan>
But it's probably just what you're used to.
dv84 has quit [Quit: ircN 8.00 for mIRC (20100904) - www.ircN.org]
stevechiagozie has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
<Hanmac>
aedorn: snake_case for methods, CamelCase for modules/class and SCREAM_CASE for constants
momomomomo has quit [Quit: momomomomo]
<Eiam>
i hate my life and everything about SSL
robscomputer has joined #ruby
<aedorn>
Hanmac: Trolltech, Nokia, and no Digia disagrees with you! (Qt)
<aedorn>
*now
AndChat| has joined #ruby
<Hanmac>
aedorn i mean in ruby
forrest has joined #ruby
mityaz has quit [Quit: See ya!]
aces1up has quit []
<aedorn>
I do that in Ruby, unfortunately this is not Ruby right now. =(
<Hanmac>
"this"?
nomenkun has joined #ruby
brotatos has quit [Read error: Operation timed out]
momomomomo has joined #ruby
<aedorn>
Requirements from some vendors are changing, and they're somewhat different. So to simplify things I have decided to throw logic out the window and use a very simple WebKit based browser as the front end for the actual Ruby app. So it's going WebKit+ACL->Local web server->remote database + ruby app ...
brotatos has joined #ruby
brotatos has quit [Client Quit]
brotatos has joined #ruby
<aedorn>
What could possibly go wrong!?
<shevy>
man
<shevy>
layers upon layers upon layers
<shevy>
built on top of great suckage
<mmlac-bv>
Hanmac: still breaks my mongoid model include…. fml -_- It still tries to find the methods in the module I include…. I updated the example to show two modules: http://pastebin.ca/2364703
danshultz has joined #ruby
<shevy>
use XML aedorn
Banistergalaxy has quit [Ping timeout: 268 seconds]
<Hanmac>
its layers all the way down
Zai00 has joined #ruby
<shevy>
:(
brennanMKE has joined #ruby
<aedorn>
shevy: that's actually a requirement for one of the vendors. It's great. So they want us to go from a central report server, export data to XML files, upload XML files to an SFTP server, wait for a response on that SFTP server, reload the response back, and use the response as a go-ahead or fail point on the Ruby application.
Davey has joined #ruby
<aedorn>
Actually, it's not just XML... it's SOAP.
<Hanmac>
soap should be only in a bath
jmsbrwr has quit [Quit: Leaving]
<aedorn>
Because they don't want to give us REST access to their IBM DB2 system that they use for their tracking.
<shevy>
hehe
<aedorn>
The lesson here is that no matter how bad I say it is, it's actually worse. =)
sayan has joined #ruby
Zai00 has quit [Client Quit]
Nisstyre-laptop has quit [Quit: Leaving]
natalianatalia is now known as cojedordefrutos
braoru has joined #ruby
brotatos has quit [Quit: WeeChat 0.4.1-dev]
robmuh has quit [Ping timeout: 256 seconds]
<syl>
dankest: did I paste the error correctly in pastebin?
brotatos has joined #ruby
Macaveli has joined #ruby
<shevy>
aedorn you need a pat on the back man
swarley-freenode is now known as swarley
tenmilestereo has joined #ruby
danneu has joined #ruby
dEPy has joined #ruby
brotatos has quit [Client Quit]
<dEPy>
any1 using redis gem? I wanna know what's the default timeout value if you don't provide any when connecting
brotatos has joined #ruby
brennanMKE has quit [Ping timeout: 258 seconds]
lushious has joined #ruby
<aedorn>
shevy: for letting them come up with these crazy schemes and actually doing the stuff to make it work? lol
benlieb has joined #ruby
Michael has joined #ruby
tjbiddle_ has joined #ruby
Michael is now known as Guest7234
mercwithamouth has quit [Ping timeout: 264 seconds]
<Hanmac>
COOL: Nokogiri 1.6.0.rc1 has a secret, but it's a secret that should make your life better. It contains the complete source code for libxml2 and libxslt, and will compile it during gem installation.
<shevy>
Hanmac lol
<droppedonmyhead>
hey can someone help me understand how to test a block with stubs. I have this right now and it doesn't pass when i use rake: http://www.repl.it/IhZ
aki1 has quit [Ping timeout: 256 seconds]
sambao21 has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
sambao21 has joined #ruby
__alpaca has joined #ruby
cojedordefrutos has quit [Excess Flood]
sambio has joined #ruby
Iszak has joined #ruby
daniel_- has joined #ruby
bean has joined #ruby
freakazoid0223 has joined #ruby
sambio has quit [Client Quit]
tjbiddle has quit [Ping timeout: 258 seconds]
tjbiddle_ is now known as tjbiddle
Targen has quit [Ping timeout: 268 seconds]
momomomomo has joined #ruby
KenDhia has quit [Quit: Ex-Chat]
__alpaca has quit [Ping timeout: 260 seconds]
Cultofmetatron has quit [Remote host closed the connection]
<shevy>
def n; puts; end
<shevy>
am I producing clever code today?
<MrZYX>
nah
<MrZYX>
alias would be way shorter
wald0 has quit [Read error: Connection reset by peer]
brennanMKE has joined #ruby
Targen has joined #ruby
xclite has joined #ruby
Targen has quit [Read error: Connection reset by peer]
<shevy>
MrZYX yeah thinking that too hmm
<shevy>
alias n puts
<shevy>
that would be a little bit faster too, or?
<MrZYX>
no idea
<shevy>
less characters + faster
<shevy>
injekt pointed out something funny a few hours ago
__alpaca has joined #ruby
<shevy>
the repetitive code I used could all be solved with one method alone, and several aliases to it :D
<shevy>
but my brain was not receptive to new ideas
<shevy>
(on its own, that is)
wald0 has joined #ruby
wald0 has quit [Client Quit]
banisterfiend has joined #ruby
<banisterfiend>
any native french speakerse here?
<banisterfiend>
speakers*
<nooodl>
i know intermediate french, not a native speaker
miskander has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
Opettaja has quit [Ping timeout: 252 seconds]
sailias1 has quit [Ping timeout: 264 seconds]
Neomex has joined #ruby
dEPy has left #ruby ["Leaving"]
icole has quit [Remote host closed the connection]
__alpaca has quit [Ping timeout: 260 seconds]
Neomex has quit [Client Quit]
interactionjaxsn has quit [Remote host closed the connection]
w400z has joined #ruby
interactionjaxsn has joined #ruby
Heero` has quit [Quit: Leaving]
<banisterfiend>
nooodl: well i need an idiomatic expression translated, so it might be tricky
mercwithamouth has joined #ruby
<nooodl>
which one?
<banisterfiend>
nooodl: En avril ne te découvre pas d’un fil
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
interactionjaxsn has quit [Ping timeout: 256 seconds]
<nooodl>
according to google, it's somewhat of a proverb, meaning...
<nooodl>
don't wear thin clothes in the early days of spring, or you might still catch a cold
chandankumar has joined #ruby
<nooodl>
it's one half of a full expression that adds "... En mai, fais ce qu'il te plaît." -- "in may, do whatever you like"
Rym has joined #ruby
angusiguess has quit [Ping timeout: 252 seconds]
Cultofmetatron has joined #ruby
carloslopes has joined #ruby
rwilcox has quit []
oneirophren has quit [Ping timeout: 256 seconds]
bradhe has quit [Ping timeout: 258 seconds]
AxonetBE has quit [Quit: Leaving.]
tvw has quit []
jeebster has joined #ruby
GOMADWarrior has joined #ruby
Opettaja has joined #ruby
divout has quit [Quit: Leaving.]
Cultofmetatron has quit [Remote host closed the connection]
sailias has joined #ruby
nomenkun_ has joined #ruby
niceguyjames has quit [Quit: Computer has gone to sleep.]
<banisterfiend>
nooodl: ah thx
brianpWins has quit [Quit: brianpWins]
mikepack has quit [Remote host closed the connection]
niceguyjames has joined #ruby
theRoUS has quit [Read error: Connection reset by peer]
nomenkun has quit [Ping timeout: 252 seconds]
danslo has joined #ruby
v0n has quit [Quit: WeeChat 0.4.0]
io_syl has quit [Quit: Computer has gone to sleep.]
vikhyat has quit [Read error: Connection reset by peer]
vikhyat_ has joined #ruby
renanoronfle__ has quit [Quit: This computer has gone to sleep]
mikepack has joined #ruby
<Hanmac>
heay guys and banisterfiend , i need an mirco file hoster for files < 1MB
<droppedonmyhead>
how do i turn "apple" into [apple] ?
mneorr has quit [Ping timeout: 240 seconds]
<Mon_Ouie>
Do you mean "[apple]" or ["apple"]?
celinedior has quit [Quit: celinedior]
<Morrolan>
droppedonmyhead: An array containing the string 'apple', or an array containing a variable called 'apple'?
<PigDude>
droppedonmyhead, s = 'apple' ; s2 = "[#{apple}]"
<PigDude>
sorry, "[#{s}]"
Roa has quit [Ping timeout: 264 seconds]
Targen has joined #ruby
<Morrolan>
So now we've got three possible ideas. Heh.
k3rn3lito has quit [Ping timeout: 248 seconds]
<droppedonmyhead>
i need [apple] as part of a larger string
athst has quit [Quit: athst]
<Mon_Ouie>
So PigDude's answer
Hanmac has joined #ruby
<droppedonmyhead>
k lemme try that thanks
AxonetBE has joined #ruby
<Morrolan>
For the reference, #{ruby_code_here} inside a (double-quoted) string will execute the enclosed ruby code, and insert its return value in the string.
Roa has joined #ruby
Roa has quit [Changing host]
Roa has joined #ruby
k3rn3lito has joined #ruby
<MrZYX>
Xeago: Bad gateway
<droppedonmyhead>
hmm…ok sorry misleading i have a variable storing a string that i need to remove the quotes and replace with []
bb has quit [Quit: leaving]
<droppedonmyhead>
its not just apple so i can't put the string in directly
<droppedonmyhead>
and it doesn't work when i go [@[s]]
<Morrolan>
droppedonmyhead: So In the end you want a *string* looking like "[my_variable_here]"?
Targen has quit [Remote host closed the connection]
<droppedonmyhead>
yes
<Morrolan>
Then use a '#' instead of an '@' and it'll do what you want. ;)
sambao21 has quit [Quit: Computer has gone to sleep.]
crodas has quit [Ping timeout: 256 seconds]
<droppedonmyhead>
like #var = input ?
davetoo has quit [Quit: Leaving.]
<Morrolan>
s = "sandwich"; puts "[#{s}]"; #=> "[sandwich]"
locriani has quit [Remote host closed the connection]
<Morrolan>
Might want to try it out in an interactive shell. :) (irb or pry).
krawchyk has quit [Remote host closed the connection]
unixinit has quit [Ping timeout: 258 seconds]
jnoob22 has quit [Remote host closed the connection]
Joel has quit [Ping timeout: 258 seconds]
__alpaca has quit [Ping timeout: 255 seconds]
pagios_ has joined #ruby
akam-it has quit [Remote host closed the connection]
pagios has quit [Ping timeout: 276 seconds]
cheese1756 has joined #ruby
nomenkun_ has joined #ruby
skattyadz has joined #ruby
crodas has joined #ruby
Joel___ has quit [Ping timeout: 258 seconds]
miskander has quit [Quit: miskander]
nomenkun_ has quit [Remote host closed the connection]
nomenkun has quit [Ping timeout: 255 seconds]
miskander has joined #ruby
rton has left #ruby [#ruby]
skattyadz has quit [Client Quit]
rton has joined #ruby
rton has left #ruby [#ruby]
<aedorn>
My app is totally web scale now! Hah.... okay, the amusement is gone.
Nisstyre-laptop has joined #ruby
flowerhack has quit [Quit: Connection closed for inactivity]
Guest7234 has quit [Remote host closed the connection]
Macaveli has quit [Quit: This computer has gone to sleep]
Proshot is now known as statarb3
statarb3 has quit [Changing host]
statarb3 has joined #ruby
Michael has joined #ruby
Michael is now known as Guest54285
Guest54285 has quit [Remote host closed the connection]
brotatos has quit [Quit: WeeChat 0.4.1-dev]
haxrbyte has quit [Remote host closed the connection]
indyrl has joined #ruby
s0ber has quit [Read error: Connection reset by peer]
sayan has quit [Quit: Leaving]
haxrbyte has joined #ruby
crodas has quit [Ping timeout: 252 seconds]
mxweas has joined #ruby
nomenkun has joined #ruby
s0ber has joined #ruby
d3c has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
tanathos has joined #ruby
_nitti has quit [Remote host closed the connection]
miskander has quit [Quit: miskander]
dummies_freelanc has joined #ruby
rakl has quit [Quit: sleeping]
_nitti has joined #ruby
slainer68 has joined #ruby
blacktulip has quit [Remote host closed the connection]
fmcgeough has joined #ruby
generalissimo has quit [Remote host closed the connection]
nadirvardar has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
johnnyfuchs1 has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
johnnyfuchs has quit [Read error: Operation timed out]
leonidlm has quit [Ping timeout: 252 seconds]
SexyTattoos96 has joined #ruby
cloke_ has joined #ruby
<SexyTattoos96>
hi
robscomputer has quit [Read error: Connection reset by peer]
robscomputer has joined #ruby
cloke has quit [Ping timeout: 258 seconds]
cloke_ is now known as cloke
Davey has quit [Quit: Computer has gone to sleep.]
Targen has joined #ruby
nomenkun_ has joined #ruby
troessner has joined #ruby
sambao21 has joined #ruby
<Hanmac>
nice, the trunk guys break mkmf ;P
alanp has quit []
Michael has joined #ruby
<aedorn>
It was destined to be broken
Michael is now known as Guest86700
nomenkun has quit [Ping timeout: 276 seconds]
fmcgeough has quit [Quit: fmcgeough]
nic019 has joined #ruby
retry has quit [Quit: Leaving...]
graeme has joined #ruby
<A124>
What is the shortest notation for.. do to every element of array?
alanp has joined #ruby
d3c has quit [Quit: Sleep]
<A124>
Like multiply each value by five
geekbri has quit [Remote host closed the connection]
bean has quit [Quit: Computer has gone to sleep.]
nic019 has left #ruby [#ruby]
Targen has quit [Remote host closed the connection]
tanathos has quit [Ping timeout: 256 seconds]
<canton7>
A124, [1, 2, 3, 4, 5].map{ |x| x*5 }
Xeago has joined #ruby
nic019 has joined #ruby
jamesaxl has quit [Ping timeout: 258 seconds]
<A124>
canton7: Thanks. Thought there is something shorter. As far as my mind can remember, but I thought I stumbled upon something short.
rakl has joined #ruby
angusiguess has joined #ruby
<canton7>
if you're applying a function to each, you can use Proc#to_symbol
<canton7>
e.g. [1, 2, 3].map(&:to_s)
echevemaster has quit [Ping timeout: 256 seconds]
skattyadz has joined #ruby
wmoxam has quit [Ping timeout: 264 seconds]
skattyadz has quit [Client Quit]
<A124>
canton7: Hm.. noted, thank you :)
xibalba has quit [Changing host]
xibalba has joined #ruby
<banisterfiend>
a1 [1,2,3,4].map(&5.method(:*))
<banisterfiend>
A124:
<banisterfiend>
for the lulz
<A124>
banisterfiend: xD
statarb3 is now known as Proshot
<A124>
And for education ;)
johnnyfuchs1 has quit [Remote host closed the connection]
crodas has joined #ruby
johnnyfuchs has joined #ruby
alanp has quit []
indyrl has left #ruby [#ruby]
kpshek has quit []
jamescarr has quit [Quit: jamescarr]
alanp has joined #ruby
bghost has left #ruby [#ruby]
nic019 has quit []
afmacedo has quit [Ping timeout: 264 seconds]
agarie has quit [Read error: Connection reset by peer]
tomsthumb has quit [Quit: Leaving.]
snuglepuss has joined #ruby
agarie has joined #ruby
wgosling has quit [Ping timeout: 256 seconds]
sailias has quit [Ping timeout: 276 seconds]
pyr0commie has joined #ruby
nomenkun has joined #ruby
athst has quit [Quit: athst]
foofoobar has quit [Quit: Computer has gone to sleep.]
nomenkun_ has quit [Ping timeout: 256 seconds]
crodas has quit [Read error: Connection reset by peer]
brennanMKE has quit [Remote host closed the connection]
mmlac-bv has quit [Quit: mmlac-bv]
jeffreylevesque has joined #ruby
rodacato has left #ruby [#ruby]
mmlac-bv has joined #ruby
Targen has joined #ruby
haxrbyte has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
robscomputer has quit [Read error: Connection reset by peer]
nfk has quit [Quit: yawn]
robscomputer has joined #ruby
crodas has joined #ruby
bean has joined #ruby
B_w has joined #ruby
brennanMKE has joined #ruby
B_w has left #ruby ["Saliendo"]
jnoob22 has joined #ruby
kpshek has joined #ruby
kpshek has quit [Remote host closed the connection]
athst has joined #ruby
jrajav has joined #ruby
gaahrdner has quit [Remote host closed the connection]
vikhyat_ has quit [Remote host closed the connection]
atmosx has joined #ruby
__alpaca has joined #ruby
gerep has joined #ruby
jnoob22 has quit [Remote host closed the connection]
markalanevans has joined #ruby
_64k has joined #ruby
evenix has quit [Remote host closed the connection]
_nitti has quit [Remote host closed the connection]
synfin has left #ruby [#ruby]
axl_ has joined #ruby
heisenmink has quit [Remote host closed the connection]
__alpaca has quit [Ping timeout: 252 seconds]
codecop has quit [Remote host closed the connection]
speed1 has joined #ruby
angusiguess has quit [Ping timeout: 256 seconds]
w400z has quit []
axl_ has quit [Client Quit]
jbpros has quit [Quit: jbpros]
nadirvardar has quit [Ping timeout: 268 seconds]
jamescarr has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
carloslopes has quit [Remote host closed the connection]
vikhyat has joined #ruby
wesside_ has quit [Quit: Computer has gone to sleep.]
axl_ has joined #ruby
progbyperm has joined #ruby
<speed1>
/filter add nicks * irc_366 *
<speed1>
:x
nadirvardar has joined #ruby
sambao21 has joined #ruby
mavcunha has quit [Quit: Computer has gone to sleep.]
Speed has quit [Quit: leaving]
speed1 has quit [Quit: WeeChat 0.4.0]
pcarrier has quit [Ping timeout: 255 seconds]
tenmilestereo has quit [Quit: Leaving]
ipalaus has joined #ruby
<ipalaus>
morning
invisime has quit [Quit: Leaving.]
<ipalaus>
anyone around that has some experience with resque-retry?
peteyg is now known as Guest59754
nateberkopec has quit [Quit: Leaving...]
peta_ has quit [Ping timeout: 252 seconds]
<gerep>
Hi all. How can I make this better? if count > 0 puts "The file informed is invalid" else games end
<canton7>
gerep, context?
peta_ has joined #ruby
tomsthumb has joined #ruby
<gerep>
the count is incremented in a loop(each_line) and if in the line include "initgame" otherwise it will be 0
<gerep>
so, if it is 0 it means no "initgames" line, so the file is invalid
<gerep>
So, for each new game create the log will have a line "initgame" and that's what I'm counting, so if there is no "initgame" line in the file, the file is invalid
danshultz has quit [Remote host closed the connection]
<canton7>
I was trying to figure out why one condition printed something, and the other seemed to be an implicit return value?
mxweas has quit [Quit: Computer has gone to sleep.]
LaPetiteFromage has quit [Quit: LaPetiteFromage]
<canton7>
you might want to raise an exception there anyway
mxweas has joined #ruby
<gerep>
If the count is 0 I'll stop the program execution, otherwise it will return the games hash
<gerep>
ok..I'll do that :D
tjbiddle has joined #ruby
dustint has quit [Ping timeout: 255 seconds]
mxweas has quit [Client Quit]
mikepack has quit [Read error: Connection reset by peer]
agarie has quit [Remote host closed the connection]
mikepack has joined #ruby
pcarrier has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
agarie has joined #ruby
Cultofmetatron has quit [Remote host closed the connection]
tjbiddle_ has joined #ruby
Targen has quit [Read error: Connection reset by peer]
mercwithamouth has joined #ruby
djwonk has quit [Quit: djwonk]
weeb1e has quit [Read error: Connection reset by peer]
Targen has joined #ruby
weeb1e has joined #ruby
vikhyat has quit [Remote host closed the connection]
gaahrdner has joined #ruby
tjbiddle has quit [Ping timeout: 260 seconds]
teddyp1cker has quit [Remote host closed the connection]
etcetera has joined #ruby
tjbiddle_ is now known as tjbiddle
fedza has quit []
mockra has quit [Remote host closed the connection]
<nezumi>
using the sequel gem how do I do a 'create table' if it doesn't exist?
etcetera has quit [Client Quit]
jerius has quit []
niceguyjames has quit [Quit: Computer has gone to sleep.]
acidjazz has left #ruby [#ruby]
timmow has quit [Read error: Connection reset by peer]
nomenkun_ has joined #ruby
etcetera has joined #ruby
failshell has quit [Remote host closed the connection]
d11wtq has quit [Read error: Connection reset by peer]
Caius has quit [Ping timeout: 252 seconds]
grn_ has joined #ruby
d11wtq has joined #ruby
companion has quit [Ping timeout: 252 seconds]
timmow has joined #ruby
RagingDave has quit [Ping timeout: 252 seconds]
nomenkun has quit [Ping timeout: 252 seconds]
grn has quit [Ping timeout: 252 seconds]
RagingDave has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
Caius has joined #ruby
companion has joined #ruby
retry has joined #ruby
zigomir has quit [Ping timeout: 240 seconds]
wyhaines has quit [Read error: Connection reset by peer]
francisfish has joined #ruby
wyhaines has joined #ruby
axxT has joined #ruby
skattyadz has joined #ruby
mikestok has quit [Quit: Computer has gone to sleep.]
athst has quit [Quit: athst]
huoxito has joined #ruby
cantonic has joined #ruby
miroatme has joined #ruby
jacobw has joined #ruby
bean has quit [Quit: Computer has gone to sleep.]
forrest has quit [Quit: Leaving]
mockra has joined #ruby
mxweas has joined #ruby
sjkaliski has joined #ruby
sjkaliski has quit [Client Quit]
huismon has joined #ruby
andrew__ has quit [Remote host closed the connection]
Caius has quit [Ping timeout: 252 seconds]
brtdv has joined #ruby
soulcake has quit [Ping timeout: 252 seconds]
jamesaxl has joined #ruby
havenwood has quit [Read error: Connection reset by peer]
Spooner has joined #ruby
havenn_ has joined #ruby
mxweas has quit [Client Quit]
gungor has quit [Remote host closed the connection]
retry has quit [Quit: Leaving...]
nate_h has quit [Ping timeout: 252 seconds]
osvico has quit []
Caius has joined #ruby
soulcake has joined #ruby
jtharris has quit [Quit: WeeChat 0.4.0]
atmosx has quit [Remote host closed the connection]
pkrnj has joined #ruby
interactionjaxsn has quit [Remote host closed the connection]
nomenkun_ has quit [Remote host closed the connection]
miskander has joined #ruby
Mon_Ouie has quit [Ping timeout: 264 seconds]
breakingthings has quit []
kaiwren has joined #ruby
danshultz has joined #ruby
retry has joined #ruby
kaiwren has quit [Client Quit]
mavcunha has joined #ruby
echevemaster has joined #ruby
echevemaster has joined #ruby
echevemaster has quit [Changing host]
elux has quit [Quit: Bye!]
jamescarr has quit [Quit: jamescarr]
kaiwren has joined #ruby
baphled has quit [Ping timeout: 264 seconds]
dmiller has quit [Remote host closed the connection]
jlast has quit [Remote host closed the connection]