apeiros_ changed the topic of #ruby to: programming language || ruby-lang.org || Paste >3 lines of text in http://pastie.org || Rails is in #rubyonrails
ViperMaul has joined #ruby
sebastian_pl has joined #ruby
atmosx has joined #ruby
kah_ has joined #ruby
sam113101 has joined #ruby
replore has joined #ruby
tommyvyo has joined #ruby
havenn has joined #ruby
zakwilson has joined #ruby
sam113101 has joined #ruby
banisterfiend has joined #ruby
luckyruby has joined #ruby
dql has joined #ruby
passt has joined #ruby
giftfrosch_ has joined #ruby
robert_ has joined #ruby
RudyValencia has joined #ruby
andrewhl has joined #ruby
<robert_> hm, anyone had any experience with slim? I've got a weird issue.
mikepack has joined #ruby
atmosx has joined #ruby
shevy has joined #ruby
<robert_> shevy: rawr.
<robert_> shevy: don't you have experience with slim or something? I can't remember.
VegetableSpoon has joined #ruby
mailtruck has joined #ruby
banisterfiend has joined #ruby
ryanf has joined #ruby
pen has joined #ruby
freeayu has joined #ruby
atmosx has joined #ruby
giftfrosch has joined #ruby
giftfrosch has joined #ruby
atmosx has joined #ruby
__class__ has joined #ruby
batmanian has joined #ruby
gyre007 has joined #ruby
<gyre007> anyone here to help me out with simple capistrano query ? :)
<gyre007> anyone here to help me out with simple capistrano query ? :)
<gyre007> anyone here to help me out with a simple capistrano query ?
c0rn has joined #ruby
<gyre007> damn it...
<gyre007> something wrong with my client :)
<gyre007> anyway...
<gyre007> im trying to deploy from Mac OS machine to CentOS. I'm getting some issues with RVM. Im just wondering about one thing. Is :user variable local Mac OS machine user or is it a user which is going to be used to SSH to CentOS machine ?
atmosx has joined #ruby
passt_ has joined #ruby
wallerdev has joined #ruby
batmanian has joined #ruby
<ryanf> gyre007: the latter
liluo has joined #ruby
ryan0x2_ has joined #ruby
dnite has joined #ruby
ghvandoorn has joined #ruby
h4mz1d has joined #ruby
passt has quit [#ruby]
passt has joined #ruby
passt has joined #ruby
<gyre007> ryanf: cheers
maahes has joined #ruby
<dnite> is there an easy way to iterate through a hex range? I'm trying to iterate through all the 0x1fxxx range and output it's unicode code and it's actual unicode character to a file to look at later… Basically create a map of unicode characters and their codes.
<banisterfiend> dnite: did you try iterating through a hex range? i.e (0x0..0xff) if u want actual hex strings u'll need to convert the numbers back intro strings
<dnite> banisterfiend: hehe. i did not. it actually didn't cross my mind that it might be that easy. x=P
AlbireoX has joined #ruby
luckyruby has joined #ruby
rdesfo has joined #ruby
jwang has joined #ruby
aJacom has joined #ruby
<aJacom> hi. i'm trying to install rails, and i want to use WEBrick as server. but where's the default home folder¡
<aJacom> ?
sebastian_pl has joined #ruby
khakimov has joined #ruby
mdw has joined #ruby
workmad3 has joined #ruby
atmosx has joined #ruby
Nanuq has joined #ruby
Ontolog has joined #ruby
<td123> what's "the default home folder"?
banisterfiend has joined #ruby
ringotwo has joined #ruby
<aJacom> im also having trouble because rails s throws always an error
<aJacom> bundle install also
<aJacom> so i'm doing gem install for all of the missin gems that rails s reports.
<td123> if bundle install doesn't install everything, sounds like you need to add more gems to the Gemfile or you need to run bundle update
<aJacom> it fails when it reaches "json"
<aJacom> throws a PATH error
<dnite> banisterfiend: it WAS that simple. x=P
<td123> aJacom: can you pastebin the full error?
* AlbireoX`Away is away: Gone away for now
<dnite> now i just have to figure out how to take the i.to_s(16) value and output the unicode character for that
uris has joined #ruby
atmosx has joined #ruby
Nanuq has joined #ruby
zakwilson_ has joined #ruby
<aJacom> td123
<td123> aJacom: oh, you need to be able to build native programs with gcc
<td123> see if you can't run that gem command with a more verbose setting, it will probably be less confusing if possible
<aJacom> come again please
seanstickle has joined #ruby
<aJacom> now rails s is not missing anything
<aJacom> but reports a mysql version error :/
<td123> how did you fix that json error?
<aJacom> i didn't. i just installed every gem that it asked me to and eventually it didn't asked for more
<aJacom> Incorrect MySQL client library version!
L-----D has joined #ruby
dbgster has joined #ruby
atmosx has joined #ruby
<aJacom> Incorrect MySQL client library version! This gem was compiled for 6.0.0 but the client library is 5.5.23. (RuntimeError)
zakwilson has joined #ruby
<gyre007> is there any way how I can avoid installation of ri and RDoc documentation when installing a gem?also?why is it taking ages to install the docs and why is the CPU going nuts fom it...
<banisterfiend> gyre007: google it
<banisterfiend> gyre007: there's lots of info on how to do it
h4mz1d has joined #ruby
youdonotexist has joined #ruby
Nanuq has joined #ruby
atmosx has joined #ruby
<gyre007> banisterfiend I tried to google it obviously but can't find the xplanation why is it taking ages...
<banisterfiend> gyre007: no, google hwo to get rid of it
<banisterfiend> how to stop it installing
<gyre007> ah
<aJacom> finally. +}
rdesfo has quit [#ruby]
tomsthumb has joined #ruby
mrwalker has joined #ruby
M- has joined #ruby
<gyre007> is there anyone here who uses capistrano for deployment ?
<seanstickle> gyre007: prolly
xpot-mobile has joined #ruby
<gyre007> when I run cap deploy:migrations I keep getting asked about some gems which are not installed on the remote machine - shouldn't capistrano install them automatically ? or how can I tell it to do it automatically ? at the moment im just installing it one after another when migrations fail
meskyanichi has joined #ruby
<gyre007> or maybe there is something else going on and im just missing something :(
<banisterfiend> gyre007: did you disable it?
<gyre007> RDoc stuff ? yes of course
<gyre007> but this is about something else
tomzx_ has joined #ruby
burgestrand1 has joined #ruby
cantonic has joined #ruby
raddazong has joined #ruby
ewag_ has joined #ruby
any-key_ has joined #ruby
seanstickle_ has joined #ruby
machine5 has joined #ruby
jhchabran_ has joined #ruby
_dv_ has joined #ruby
Cyrus_ has joined #ruby
baroquebobcat has joined #ruby
atmosx has joined #ruby
_class_ has joined #ruby
kevinbond_ has joined #ruby
<gyre007> ok so it looks like bundle pack is the answer..mmm
prometheus has joined #ruby
xpot-mobile has joined #ruby
<gyre007> ok maybe not :)
FACEFOX-DOT-COM has joined #ruby
nate_h has joined #ruby
russfrank has joined #ruby
pdtpatr1ck has joined #ruby
Cyrus has joined #ruby
zakwilson has joined #ruby
radic has joined #ruby
zakwilson has joined #ruby
FACEFOX has joined #ruby
atmosx has joined #ruby
mdw_ has joined #ruby
machine1 has joined #ruby
pen has joined #ruby
<gyre007> damn it?theres gotta be a solution to this!!!!
thoraxe has joined #ruby
snip_it has joined #ruby
savage- has joined #ruby
wallerdev has joined #ruby
prometheus has joined #ruby
atmosx has joined #ruby
looopy has joined #ruby
gyre007 has quit ["Leaving"]
brngardner has joined #ruby
mrwalker has joined #ruby
EzeQL has joined #ruby
luckyruby has joined #ruby
zakwilson has joined #ruby
TheIronWolf has joined #ruby
luckyruby has joined #ruby
seoaqua has joined #ruby
savage- has joined #ruby
Ontolog has joined #ruby
atmosx has joined #ruby
deryl has joined #ruby
mdw has joined #ruby
c0rn has joined #ruby
nilg has joined #ruby
Hsparks has joined #ruby
AndChat| has joined #ruby
ryanf has joined #ruby
nilg has joined #ruby
folktheory has joined #ruby
folktheory has quit [#ruby]
chimkan_ has joined #ruby
wargasm has joined #ruby
sharms has joined #ruby
yeltzooo7 has joined #ruby
sj26 has joined #ruby
tdmackey has joined #ruby
danheberden has joined #ruby
benwoody has joined #ruby
rcs has joined #ruby
regedarek has joined #ruby
atmosx has joined #ruby
mitchty has joined #ruby
Azure has joined #ruby
rdesfo has joined #ruby
FACEFOX-DOT-COM has joined #ruby
davidpk has joined #ruby
FACEFOX-DOT-COM has joined #ruby
waxjar has joined #ruby
CheeToS has joined #ruby
tomsthumb has joined #ruby
Chryson has joined #ruby
c0rn has joined #ruby
bglusman has joined #ruby
ViperMaul has joined #ruby
L-----D has joined #ruby
rippa has joined #ruby
davidpk has joined #ruby
Ontolog has joined #ruby
freeayu_ has joined #ruby
Cache_Money has joined #ruby
nipra has joined #ruby
zakwilson has joined #ruby
pipes has joined #ruby
atmosx has joined #ruby
cableray has joined #ruby
pubis has joined #ruby
alup__ has joined #ruby
jmeeuwen_ has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eregon has joined #ruby
FACEFOX has joined #ruby
AnswerGu1 has joined #ruby
cinaski has joined #ruby
eeadc has joined #ruby
QKO_ has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
oddraisi1 has joined #ruby
Koven has joined #ruby
mikalv_ has joined #ruby
eeadc has joined #ruby
parus_ has joined #ruby
udk has joined #ruby
eeadc has joined #ruby
Hunner_ has joined #ruby
udk has joined #ruby
Hunner_ has joined #ruby
nuba_ has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
ahmdrefat has joined #ruby
c0rn has joined #ruby
vereteran has joined #ruby
kapowaz_ has joined #ruby
eeadc has joined #ruby
snip_it has joined #ruby
ben_m has joined #ruby
machine1 has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
blast_hardcheese has joined #ruby
madcoder_ has joined #ruby
greenarrow has joined #ruby
lectrick has joined #ruby
xrl has joined #ruby
MetaCosm has joined #ruby
two- has joined #ruby
FACEFOX-DOT-COM has joined #ruby
davidboy has joined #ruby
bawer has joined #ruby
yuletide has joined #ruby
eeadc has joined #ruby
replore has joined #ruby
you-ti-ef-ate has joined #ruby
naquad has joined #ruby
FACEFOX has joined #ruby
SeanTAllen has joined #ruby
<rdesfo> I installed shoes via rvm but when I try to run it ubuntu to prompts me to install it with apt-get https://gist.github.com/2468198#comments
<rdesfo> Is there a setting that I missed?
eeadc has joined #ruby
Cork has joined #ruby
Cork has joined #ruby
eeadc has joined #ruby
thams has joined #ruby
eeadc has joined #ruby
sc0 has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
ohcibi_ has joined #ruby
Guest61512 has joined #ruby
zmoazeni_ has joined #ruby
monokrome has joined #ruby
emsilva has joined #ruby
upasna has joined #ruby
jakky has joined #ruby
yellow5 has joined #ruby
pigoz has joined #ruby
cjk101010 has joined #ruby
bubz has joined #ruby
Eiam has joined #ruby
Guest58702 has joined #ruby
basicx12352 has joined #ruby
dax has joined #ruby
vitoravelino`afk has joined #ruby
Nightmare has joined #ruby
G has joined #ruby
ckrough has joined #ruby
m4rcu5 has joined #ruby
dju has joined #ruby
ichilton has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
welterde has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
banjara has joined #ruby
eeadc has joined #ruby
v0n has joined #ruby
Limb has joined #ruby
Chryson has joined #ruby
CheeToS has joined #ruby
SirFunk has joined #ruby
jonathanwallace has joined #ruby
cwill747 has joined #ruby
DarthGandalf has joined #ruby
peterhil has joined #ruby
tomb_ has joined #ruby
multi_io_ has joined #ruby
Shamgar has joined #ruby
vandemar has joined #ruby
elliot__ has joined #ruby
Akuma has joined #ruby
dfamorato_ has joined #ruby
falican has joined #ruby
akem has joined #ruby
Derander has joined #ruby
gregorg has joined #ruby
Apocalypse has joined #ruby
thomasfedb has joined #ruby
bpgoldsb has joined #ruby
rellin has joined #ruby
alex__c2022 has joined #ruby
pietr0 has joined #ruby
bob-O has joined #ruby
straind has joined #ruby
Yappo____ has joined #ruby
Rious has joined #ruby
snapcase has joined #ruby
ohcibi has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
monokrome has joined #ruby
eeadc has joined #ruby
Nightmare has joined #ruby
eeadc has joined #ruby
mitchty has joined #ruby
eeadc has joined #ruby
Nightmare has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
Guest76863 has joined #ruby
eeadc has joined #ruby
Nightmare_ has joined #ruby
ping-pong has joined #ruby
eeadc has joined #ruby
akem has joined #ruby
eeadc has joined #ruby
rosslazer has joined #ruby
SirFunk has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
crazed has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
FACEFOX has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
machine1 has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
changedNicks has joined #ruby
eeadc has joined #ruby
ringotwo has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
eeadc has joined #ruby
jonatha__ has joined #ruby
maletor has joined #ruby
jonathanwallace has joined #ruby
yxhuvud has joined #ruby
tamsuiboy has joined #ruby
heftig has joined #ruby
ctwiz has joined #ruby
Morkel has joined #ruby
tewecske has joined #ruby
jonathanwallace has joined #ruby
bluOxigen has joined #ruby
TheIronWolf has joined #ruby
yuletide has joined #ruby
ringotwo has joined #ruby
ryanf has joined #ruby
cezar has joined #ruby
andrewhl has joined #ruby
manizzle has joined #ruby
tnk1 has joined #ruby
rdesfo has quit [#ruby]
codezombie has joined #ruby
atmosx has joined #ruby
harukomoto has joined #ruby
xpot-mobile has joined #ruby
ryanf has joined #ruby
banjara has joined #ruby
nikhgupta has joined #ruby
ben_m has joined #ruby
mucker has joined #ruby
nilg` has joined #ruby
Azure|netbook has joined #ruby
frogstarr78 has joined #ruby
andantino has joined #ruby
andantino has joined #ruby
andantino has joined #ruby
michaeljordan has joined #ruby
x0F_ has joined #ruby
JohnBat26 has joined #ruby
kil0byte has joined #ruby
maesbn has joined #ruby
maesbn has joined #ruby
atmosx has joined #ruby
yxhuvud has joined #ruby
akem has joined #ruby
senny has joined #ruby
workmad3 has joined #ruby
tonini has joined #ruby
Axsuul has joined #ruby
schovi has joined #ruby
shiroginne has joined #ruby
<shiroginne> ohayo all
<ben_m> ohayo gozaimas
<ben_m> Is that spelled correctly? :D
heldopslippers has joined #ruby
AlbireoX has joined #ruby
emmanuelux has joined #ruby
<shiroginne> gozaimasu* :)
atmosx has joined #ruby
<ben_m> Oh yeah, I should've remembered that
bigkevmcd has joined #ruby
ananthakumaran has joined #ruby
ayia has joined #ruby
xpot-mobile has joined #ruby
francisfish has joined #ruby
<ayia> Hi guys. The `! ruby %` vim command runs ruby script in a current vim buffer. What does "%" mean here?
<heftig> filename of buffer
<ben_m> current filename or buffer, to be precise.
VxJasonxV has quit [#ruby]
madsgraphics has joined #ruby
<ayia> oh, big thanks!
<ayia> i thought this may be something from ruby... but now see, that - from vim:) Will look more in google if needed) One more thanks!
khakimov has joined #ruby
shruggar has joined #ruby
francisfish has joined #ruby
atmosx has joined #ruby
kil0byte has joined #ruby
Eldariof-ru has joined #ruby
atmosx has joined #ruby
alem0lars has joined #ruby
companion has joined #ruby
LMolr has joined #ruby
mdw has joined #ruby
dubellz has joined #ruby
liluo has joined #ruby
dubellz has joined #ruby
pipes has quit [#ruby]
etehtsea has joined #ruby
mucker has joined #ruby
ananthakumaran has joined #ruby
dubellz has joined #ruby
L-----D has joined #ruby
alup has joined #ruby
mucker has joined #ruby
atmosx has joined #ruby
jprovazn has joined #ruby
bawer has joined #ruby
pen has joined #ruby
mangohuice has joined #ruby
atmosx has joined #ruby
fabrice31 has joined #ruby
kil0byte_ has joined #ruby
abstrusenick has joined #ruby
bluOxigen has joined #ruby
Akuma has joined #ruby
mangohuice has joined #ruby
zommi has joined #ruby
sectionme has joined #ruby
jenglish has joined #ruby
Rambozo has joined #ruby
replore has joined #ruby
daidoji has joined #ruby
SPYGAME has joined #ruby
atmosx has joined #ruby
iocor has joined #ruby
Guest67940 has joined #ruby
QaDeS has joined #ruby
eka has joined #ruby
asno has joined #ruby
<asno> hi all!!
<asno> how do you export activerecord to pdf, please? Any hint?
<asno> thanks
<daidoji> what?
<ben_m> yes.
<asno> I mean...I want to export a database grid to a pdf file...
<daidoji> okay that question makes sense
<asno> :D
<daidoji> on another note
ukwiz has joined #ruby
<banisterfiend> daidoji: why do you recommend that over prawn
<daidoji> I don't know, this was what I use
<daidoji> is prawn better?
<banisterfiend> daidoji: Yeah.
<daidoji> okay, I'll give it a shot next time I need to PDF stuff up
<daidoji> then prawn asno
<daidoji> there you go
<asno> prawn? mmmm...i'm going to check it
<asno> thakn's a lot to both
<daidoji> does anyone have any "best practice" advice for switching between BigDecimal and and Rational representations?
<daidoji> np
sspiff has joined #ruby
DuoSRX has joined #ruby
Vainoharhainen has joined #ruby
brianpWins has joined #ruby
atmosx has joined #ruby
arturaz has joined #ruby
Gesh has joined #ruby
rushed has quit [#ruby]
stefanp has joined #ruby
stefanp has joined #ruby
roolo has joined #ruby
jarjar_prime has joined #ruby
Athanasius has quit [#ruby]
workmad3_ has joined #ruby
kil0byte has joined #ruby
Ammar01 has joined #ruby
tijmencc has joined #ruby
davidw has joined #ruby
tvw has joined #ruby
berserkr has joined #ruby
tatsuya_o has joined #ruby
atmosx has joined #ruby
tvw has joined #ruby
d3c has joined #ruby
dql has joined #ruby
shruggar has joined #ruby
darthdeus has joined #ruby
niklasb has joined #ruby
Vert has joined #ruby
iocor has joined #ruby
atmosx has joined #ruby
ChampS666 has joined #ruby
warlock_handler has joined #ruby
<warlock_handler> any app you know to document my releases?? so that this can be easily available to my gang of coders?
schovi has joined #ruby
bier|tp has joined #ruby
bier has joined #ruby
<sgronblom> It seems ruby's gets returns nil inside a git hook. Is it because it's being run by another script maybe? Is there any better way to ask for user input from there?
M- has joined #ruby
<banisterfiend> warlock_handler: CHANGELOG + git tags :)
<banisterfiend> that's all i use and it's pretty good
schovi has joined #ruby
<warlock_handler> banisterfiend: dont know if that will help... need to share it with relatively non techies as well
zastav has joined #ruby
solars has joined #ruby
shruggar has joined #ruby
<solars> does anyone have an idea why I get this json error: https://gist.github.com/31c8417fcc20eb5222b5 ?
moshee has joined #ruby
sparc has joined #ruby
<shevy> come on guys, work harder on RubyOS
BiHi has joined #ruby
tonini has joined #ruby
Vert has joined #ruby
nu7hatch has joined #ruby
<asno> banisterfiend
<asno> hi again, banisterfiend
<asno> prawn was so nice to generate the pdf file
zemanel has joined #ruby
<shevy> doesnt it have like 100000000 dependencies?
<banisterfiend> shevy: i had an idea. I listen to classical music by brahms with those strong german lyrics. Problem is i dont understand what they're singing about, so i thought i could put a rose between yoru teeth and you run around the block, every time you pass my house you translate the lyrics from german into english in my ear. I can then sit there getting increasingly drunk with a serious and poetic expression on my face, finally understa
<banisterfiend> nding both the music and the lyrics and feel closer to god
<shevy> man I can't run
<niklasb> :D
freeayu has joined #ruby
<shevy> and for german, you only have to listen to RAMMSTEIN
<rippa> adorned brood is good too
zastav has joined #ruby
atmosx has joined #ruby
<rippa> there's many good german bands
<niklasb> rippa: except they don't sing german
<niklasb> (usually)
<shevy> never heard of adorned brood before
AwfulMan has joined #ruby
d3c has joined #ruby
heftig has joined #ruby
emmanuel__ has joined #ruby
kil0byte_ has joined #ruby
FND has joined #ruby
kil0byt__ has joined #ruby
atmosx has joined #ruby
pen has joined #ruby
Floydzy has joined #ruby
lolmaus has joined #ruby
<lolmaus> I've coded a class using TDD. Now i need to create the main.rb file that uses the class. The main file appears rather procedural to me. Please give me advice how to write unit tests for the main file.
probst has joined #ruby
Shrink has joined #ruby
FND has quit [#ruby]
<asno> <banisterfiend> one more question...how do you throw the generated pdf to the user?
<asno> thanks
<banisterfiend> lolmaus: what is a
AwfulMan has joined #ruby
<banisterfiend> lolmaus: what is a main.rb ? who told you to create on?
<banisterfiend> one
<lolmaus> banisterfiend, it's a file that runs my script... Creates an object of the class and uses its methods, etc
<banisterfiend> lolmaus: who told you to do it that way? sounds weird
<lolmaus> banisterfiend, what is the correct way?
<banisterfiend> lolmaus: where did you hear about this weird way first?
knopkodav has joined #ruby
<lolmaus> banisterfiend, nowhere. When everything around me was big, i used to write scripts in a procedural manner. Now i'm studying Ruby, OOP and unit-testing, so i've created a class that solves certain task. To make any use of it, i have to create an instance of it, right?
atmosx has joined #ruby
<banisterfiend> lolmaus: sure, but when testing it, u create the instance in your tests, u dont have to test the 'main' file itself
nemesit has joined #ruby
KL-7 has joined #ruby
<lolmaus> banisterfiend, yeah, the tests of my class are fine. You say i don't have to test the main file, but it would contain some logic too... Maybe i should create another class that works with class1...
latrommi has joined #ruby
visof has joined #ruby
<lolmaus> banisterfiend, i'm writing a script that should rename subdirectories in the given directory. I've created a class Subfolder representing a single subfolder. It can calculate the size of its directory and rename the directory so that the name contains the size. Should i create another class like Renamer that parses a given folder and creates an instance of Subfolder for each of subfolders?
kil0byte has joined #ruby
seoaqua has joined #ruby
<lolmaus> banisterfiend, or is this an overkill and it's fine to put the creation of Subfolder instances into the main file in a procedural manner?
<banisterfiend> lolmaus: if you're having to use top-level methods then you're probalby doing it wrong.
<lolmaus> banisterfiend, please explain in more detail
<banisterfiend> lolmaus: sorry im kind of preoccupied right now
<banisterfiend> try on #ruby-lang
<lolmaus> banisterfiend, thx
rellon has joined #ruby
ramblex has joined #ruby
sn0lan has joined #ruby
justinmcp has joined #ruby
atmosx has joined #ruby
dql has joined #ruby
<AwfulMan> Hi all. Noob question I'm afraid. I've been googling around this all day but no joy. I'm trying to require a file, but it will not find the file unless I add the .rb extension to it (as far as I know it's supposed to find it without the extension). The file itself requires further files, so changing the extensions on ALL the files would be a nightmare. Any suggestions?
tk__ has joined #ruby
M- has joined #ruby
atmosx has joined #ruby
grekko has joined #ruby
zii has joined #ruby
filier has joined #ruby
abra has joined #ruby
atmosx has joined #ruby
<shevy> ruby 1.9.x ?
<AwfulMan> yep
<shevy> I myself alway specify the .rb files, unless it is a library
<AwfulMan> 3 i think, but not sure how to identify it
<shevy> tried to play with require_relative yet? or a require './foo' or something?
<shevy> btw I think it should work as is :\
<AwfulMan> Have tried identify_relative. No happiness.
<AwfulMan> I think it should work too. Wondering if it is some sort of pathing issue
kil0byte has joined #ruby
<AwfulMan> I'll give the require './foo' thing a go. Thanks shevy
<AwfulMan> Didn't work either.
<shevy> hmm hmm hmm
<shevy> It really should work :/
atmosx has joined #ruby
<AwfulMan> If I add the extension to the first file it works, but then it crashes on the child file inside which also wants an extension
<AwfulMan> and so on...
jimeh has joined #ruby
<shevy> no idea. I think it should work though
<AwfulMan> lol
<shevy> I am pretty sure it works for code I test with ruby 1.9 myself
<shevy> how is the layout you are using, or is that something you wrote yourself?
<AwfulMan> playing with metasploit. If I work it out I'll update.
<banisterfiend> AwfulMan: let's see if we can bully shevy into strictly speaking german, im tired of seeing him speak english when german is his native tongue. Speak german, shevy, speak only german
<AwfulMan> lol
<shevy> english is unfortunately superior to german
<shevy> german has become a dead language :(
<heftig> german sucks, go lojban
kil0byte_ has joined #ruby
atmosx has joined #ruby
cantonic has joined #ruby
<banisterfiend> heftig: do u agree with shevy
<heftig> yes
d3c has joined #ruby
<shevy> today the EU allows "organic food" made in the USA for sale in the EU as-is, despite the fact that there are different standards
<shevy> we are becoming one giant state
<shevy> one language to bind them
<shevy> either english
<shevy> or ruby
<shevy> hmm though ruby is more or less a subset of english
<Tasser> shevy, upcase? english?
<shevy> yeah
<shevy> lowercase, upcase
Sailias has joined #ruby
<Tasser> downcase? :-P
<Tasser> and it's uppercase btw ^^
atmosx has joined #ruby
visof has joined #ruby
visof has joined #ruby
filier has joined #ruby
francisfish has joined #ruby
<shevy> not in japan
<shevy> (hahahaha) :D
<shevy> I really need to find out how they teach folks english in Japan
<shevy> even the chinese have better english
AwfulMan has quit [#ruby]
snearch has joined #ruby
jitesh_shetty has joined #ruby
Shoobdidoo has joined #ruby
aj910martin has joined #ruby
aj910martin has quit [#ruby]
mattyoho has joined #ruby
davidcelis has joined #ruby
<musee> mrowr
seanstickle has joined #ruby
kvirani has joined #ruby
<musee> http://pastie.org/3838493 anyway I can do something like this? reference a key in the current hash?
<seitensei> [04/23/2012 -:- 07:57:15 PM] <shevy> I really need to find out how they teach folks english in Japan
<seitensei> What happens is that, they throw Americans will little or no qualification at people
<seitensei> That's seriously all it takes to get a job teaching English- Being from America.
<ramblex> musee: use a lambda?
<seitensei> Or England
<seitensei> Some other nation that speaks English as a prime
<seitensei> That's the only qualification
kil0byte has joined #ruby
<seitensei> They didn't even check to see if English was my second language or something- I'm from America, so obviously, English is my first language lmao
<seitensei> ^ not true
atmosx has joined #ruby
LMolr has joined #ruby
nooga has joined #ruby
madsgraphics has joined #ruby
bondar has joined #ruby
kjellski has joined #ruby
fr0gprince_mac has joined #ruby
atmosx has joined #ruby
bluenemo has joined #ruby
bluenemo has joined #ruby
Sailias has joined #ruby
<shevy> :(
<shevy> that's bad. my cousin is married to a korean girl, she speaks fluent german but she has a very weird grammar and expression pattern when speaking (as if she partially "thinks" in korean while speaking german), and their son picked the same (wrong) pattern up when speaking german
helllen has joined #ruby
<helllen> helllo
<helllen> I would like to search a filename inside one directory
ph^ has joined #ruby
<helllen> and its subdirectories
atmosx has joined #ruby
nanderoo has joined #ruby
SheikPunk has joined #ruby
bluOxigen has joined #ruby
<shevy> helllen some ways
liluo has joined #ruby
<shevy> Dir['**/**'].match #i think
<shevy> or .select
<shevy> yeah use .select helllen
<helllen> ok
WhereIsMySpoon has joined #ruby
Shrink has joined #ruby
atmosx has joined #ruby
bluenemo has joined #ruby
pu22l3r has joined #ruby
iocor has joined #ruby
BiHi has joined #ruby
geekbri has joined #ruby
ananthakumaran1 has joined #ruby
kjellski_ has joined #ruby
krusty_ar has joined #ruby
omry has joined #ruby
giftfrosch has joined #ruby
BRMatt has joined #ruby
peterhil has joined #ruby
fgro has joined #ruby
<fgro> i have a string, say a path "here/is/the/path", i want to apply a regexp and return the part that does NOT match? say string["here/is"] should return "/my/path"
<fgro> sorry "/the/path"
atmosx has joined #ruby
<shevy> fgro must it be a match?
<shevy> otherwise you could just replace on the string with that
<shevy> "abc" - "a" # => "bc"
<fgro> shevy: nice
<fgro> shevy: htanks
<fgro> oh, is "-" (minus) defined on string?
<fgro> shevy: minus doesnt seem to work for strings (1.9.3 that is)?
srji has joined #ruby
brngardner has joined #ruby
<fgro> shevy: ok i can use sub
lindenle has joined #ruby
kil0byte_ has joined #ruby
`brendan has joined #ruby
atmosx has joined #ruby
Helius has joined #ruby
td123 has joined #ruby
heftig has joined #ruby
prometheus has joined #ruby
francisfish has joined #ruby
lucasefe has joined #ruby
horofox has joined #ruby
fearoffish has joined #ruby
jobicoppola has joined #ruby
kil0byt__ has joined #ruby
echosystm has joined #ruby
DarkFoxDK has joined #ruby
<echosystm> how can you create an anonymous object in ruby?
prometheus has joined #ruby
<echosystm> ie. the equivalent of "{}" in javascript
<echosystm> or maybe { foo: function() { return lol } }
<Cork> my_var = {} ?
<echosystm> is that an object?
<echosystm> or a map
<Cork> { :foo => }
<heftig> Object.new
<echosystm> i know i can go like...
<echosystm> x = Object.new
<heftig> a = Object.new; def a.foo; return :lol; end
<echosystm> def x.foo ...
<echosystm> but is there any way to do it all in line?
<Cork> a = { :foo => { :bar => 10 } }
<Cork> that works
<heftig> that's a hash, not an object
yoklov has joined #ruby
<heftig> well, not a simple object
<heftig> echosystm: you're probably doing this the wrong way
<echosystm> heftig: is the way you said above the only way?
<heftig> doing def x.foo is bad for performance
<echosystm> i just want to create an object without having to make a class
<heftig> make a Clsas.
<heftig> or use a hash
<echosystm> ok
<rippa> {} in javascript is a hash
<heftig> no, it's an object
<rippa> yes, it's a hash
<heftig> objet!
<rippa> it functions same way
<heftig> doesn't matter
<rippa> in ruby, almost everything is an object
uris has joined #ruby
<heftig> it doesn't function the same way. javascript's and ruby's type systems are quite different
Nathandim has joined #ruby
<Tasser> in javascript, functions are on the object, in ruby, they're on the class.
tomzx has joined #ruby
<Tasser> but with singleton classes, you can simulate the javascript behaviour in ruby and prototyping is kinda a superset of OO, so that isn't a problem either
kil0byte has joined #ruby
<Tasser> heftig, tell me where I'm wrong
beilabs has joined #ruby
<heftig> you're not wrong.
Nathandi_ has joined #ruby
<Tasser> they're quite similar technically, but the mindset is different
tommyvyo has joined #ruby
JonSchuff has joined #ruby
Jackneill has joined #ruby
Jackneill has joined #ruby
<lolmaus> How do i unittest console output?
artm has joined #ruby
gilead has joined #ruby
ahmdrefat has joined #ruby
virpara has joined #ruby
nemesit has joined #ruby
loggerbot711321 has joined #ruby
<ramblex> lolmaus: you could use the capture_stdout function from here: http://thinkingdigitally.com/archive/capturing-output-from-puts-in-ruby/
WhereIsMySpoon has quit ["Leaving"]
jonathanwallace has joined #ruby
sbanwart has joined #ruby
machine1 has joined #ruby
<lolmaus> ramblex, thx
ericgavin has joined #ruby
strife25 has joined #ruby
mstratman has joined #ruby
dustybrains has joined #ruby
jonathanwallace has joined #ruby
jonatha__ has joined #ruby
grin has joined #ruby
<davidw> hrm
<davidw> I have a list of things that need decrypting
bglusman has joined #ruby
ahmdrefat has joined #ruby
<davidw> I wonder what the easiest way to spin that out concurrently
<davidw> what/what's
dv310p3r has joined #ruby
spuz has joined #ruby
mengu has joined #ruby
<davidw> and then get all the results... map/reduce
<spuz> hi, is there such a thing as a 'no-op' higher order function in ruby?
<davidw> spuz, what for?
<davidw> you could just write 'nil'
grin has joined #ruby
<spuz> if for example I want to stub an object's method during a test run to do nothing
<spuz> so you mean object.method = nil ?
<heftig> your testing framework should have a quick way to do that
<spuz> hmm, what about outside of a test framework?
<heftig> def object.method(args); nil; end
<spuz> heftig, ok, thanks
<spuz> Would it be possible to make a no-op higher order function if ruby doesn't provide one by default?
canton7 has joined #ruby
<heftig> for what purpose?
<Tasser> higher order function?
<niklasb> spuz: you mean, id?
<niklasb> like lambda { |x| x }
<heftig> a = proc {} will get you a closure that takes whatever and returns nil
<spuz> the actual use case is that I have a class called ErrorHandler which has two methods, fatal and rollback. fatal will call rollback as part of its tear down of the application execution. It's up to the particular application to implement rollback. Some applications might want to just say errorhandler.rollback = nil
dbgster has joined #ruby
bier has joined #ruby
<niklasb> spuz: yep, in that case: proc {} like heftig suggested
darthdeus has joined #ruby
<niklasb> cleaner than a special handling of nil
<spuz> niklasb, thanks
lorandi has joined #ruby
mrwalker has joined #ruby
johnloy has joined #ruby
<heftig> spuz: wouldn't this be a case for inheritance?
<spuz> heftig, probably... I'm not sure what the ruby idiom is
zealinux has joined #ruby
visof has joined #ruby
visof has joined #ruby
<spuz> heftig, can you point me to some documentation on how to extend a class anonymously and override a method?
cousine has joined #ruby
prometheus has joined #ruby
atnight has joined #ruby
<niklasb> spuz: why would you want to do that?
atmosx has joined #ruby
kil0byte_ has joined #ruby
<spuz> niklasb, can you point me to some documentation on <what I actually want to do> :p
<niklasb> spuz: you just let the user of your API supply an object that responds to rollback and fatal methods
ahmdrefat has joined #ruby
rbanffy has joined #ruby
prometheus has joined #ruby
<niklasb> or, using inheritance, you define a base class that has "empty" rollback and fatal methods and let your users override them
<spuz> niklasb, that's what I'd like to do but I'm not sure how you extend classes in ruby
<niklasb> spuz: lemme illustrate