<anders__>
The framework hides so much low-level processes from the developer that it actually kills the K.I.S.S. mindset entirely."
<anders__>
anybody agrees on that?
hemanth_ has joined #ruby
<anders__>
I want to learn rails but..
<anders__>
and ruby
slainer68 has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
benlieb has quit [Read error: Connection reset by peer]
<havenn>
Fav three concurrency libraries: xpool, ichannel, ifuture, celluloid, dcell, and agent
benlieb has joined #ruby
<havenn>
Fav 6** :P
<pmros>
anders_, you could try sinatra, padrino and espresso too
<aedorn>
don't forget cuba
<havenn>
anders__: I'd advise learning Ruby and then starting with Sinatra for web.
<pmros>
good advice
<anders__>
havenn, yeah i already started with ruby, made a cardgame
<anders__>
but I know almost 0 about rails
hemanth_ has joined #ruby
<anders__>
so I start with sinatra instead
<aedorn>
also, that article is about as objective as a politician
<agarie>
"But I think now would be a good time to inject that I am referring to true back-end, server-side languages used wholly for the development of full-blown application and business logic."
<agarie>
Hmmm.
<agarie>
Also, sinatra is great - you'll be able to write simple web things and learn a lot of ruby by reading the source code
<anders__>
agarie, yeah you need to sort out the relevant stuff somehow
<anders__>
agerie, but if you see the list it's quite objective
cableray has quit [Quit: cableray]
<anders__>
*a little
shevy has quit [Read error: Operation timed out]
locriani has joined #ruby
<seanstickle>
So is CodeIgniter any good?
hemanth_ has quit [Read error: Connection reset by peer]
<havenn>
Just an aside, but almost-sinatra and almost-rack are pretty awesome... rack in 3 lines and sinatra in 6: https://github.com/rkh/almost-sinatra
<anders__>
agerie, I think he should add some disadvantages with codeignitor
hemanth_ has quit [Read error: Connection reset by peer]
<seanstickle>
What are some of the disadvantages?
<agarie>
"The original creator of Rails works for 37 Signals and that fact right there is why he invented Rails. He works for an agency and agencies typically are all about meat-puppet, high-volume development."
hemanth_ has joined #ruby
adeponte has quit [Remote host closed the connection]
<agarie>
well, I don't know much about 37signals but from what I've read on their blog and on the "REWORK
<agarie>
book, this isn't the case
hemanth_ has quit [Read error: Connection reset by peer]
<pmros>
I love _why
punkrawkR has quit [Read error: Connection reset by peer]
<seanstickle>
They stopped being an agency a long time ago now.
<agarie>
anyway, I don't know much about CodeIgniter to really make a point here. Do you have more information?
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
<anders__>
agarie, I've heard it's not so object oriented as cake
<anders__>
and cake is rail more or less
<anders__>
*rails
Jasko has quit [Read error: Connection reset by peer]
<aedorn>
It's just a rant almost all the way through.. so in the end it just says "this is best because I say so" Oh well.
sailias has quit [Ping timeout: 255 seconds]
hemanth_ has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
bradleyprice has quit [Remote host closed the connection]
hemanth_ has joined #ruby
<anders__>
aedorn, not completly a rant, look at the list for rails..
crackfu has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
s1n4 has quit [Quit: leaving]
mercwithamouth has quit [Ping timeout: 276 seconds]
Xeago has quit [Remote host closed the connection]
<aedorn>
anders__: There is not one thing in that list that is objective. It's entirely subjective.
Xeago has joined #ruby
atyz has joined #ruby
<aedorn>
In fact, he even states it as subjective before you even get to the list "Here's a few of my hottest reasons for why I view Rails as a poor choice of frameworks"
Xeago has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
Xeago has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
samphippen has quit [Quit: Computer has gone to sleep.]
<anders__>
aedorn, "A production Rails application is such a resource hog that no matter how much memory you open up on your server, Rails quickly absorbs it very greedily. In fact, one of our client's sites has to be restarted every couple of weeks just because of this fact alone." <-is that not relevant
hemanth_ has joined #ruby
<aedorn>
anders__: No. It's a logical fallacy.
<anders__>
so is there any benchmarks?
<pmros>
see you, guys!
pmros has quit [Quit: Konversation terminated!]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
andrewhl has quit [Remote host closed the connection]
elvikingo has left #ruby [#ruby]
hemanth_ has quit [Read error: Connection reset by peer]
atyz has quit [Ping timeout: 264 seconds]
<anders__>
and by the way, his view is subjective, but there's an object-list
hybris has quit [Remote host closed the connection]
hemanth_ has joined #ruby
Xeago has quit [Ping timeout: 252 seconds]
emocakes has quit [Quit: emocakes]
hemanth_ has quit [Read error: Connection reset by peer]
shevy has joined #ruby
hemanth_ has joined #ruby
alexspeller has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
adkron has quit [Ping timeout: 260 seconds]
locriani has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
snorkdude has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
locriani has joined #ruby
philips_ has quit [Excess Flood]
reuf has quit [Quit: Leaving]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
philips_ has joined #ruby
hemanth_ has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
Shadow_S has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
daniel_hinojosa has quit [Ping timeout: 276 seconds]
elico has quit [Quit: elico]
hemanth_ has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
hemanth_ has joined #ruby
<snorkdude>
I'm writing my first Ruby gem, but for some reason none of the classes I've written are recognized when I try to play with them in the Ruby console. The module itself is recognized, but not the classes within it.
<snorkdude>
I'll post a gist in a sec
<havenn>
snorkdude: Can you link to the gem's repo or post a Gist?
<havenn>
snorkdude: Gist ftw. :)
hemanth_ has quit [Read error: Connection reset by peer]
<agarie>
yeah, show us the gist :)
hemanth_ has joined #ruby
crackfu has quit [Remote host closed the connection]
hemanth_ has quit [Read error: Connection reset by peer]
Noldorin has quit []
<Quadlex>
Without the gist, I'm guessing that the module's code isn't requiring any of the classes
hemanth_ has joined #ruby
<Quadlex>
So you're only loading the module class itself into your path
hemanth_ has quit [Read error: Connection reset by peer]
<agarie>
yeah, thats my guess too
hemanth_ has joined #ruby
mercwithamouth has joined #ruby
hemanth_ has quit [Read error: Connection reset by peer]
<snorkdude>
Disclaimer - I'm fairly new to programming :)
<agarie>
the classes Taste::Test and Taste::Base are working fine?
<snorkdude>
Nope
hemanth_ has quit [Read error: Connection reset by peer]
<snorkdude>
Nothing works
<agarie>
hmmm strange
Noldorin has joined #ruby
<Quadlex>
snorkdude: How are you trying to use them>
<agarie>
What're you trying to do?
hemanth_ has joined #ruby
<snorkdude>
Taste.constants.select {|c| Class === Taste.const_get(c)} returns []
<snorkdude>
I'm just running Taste::OAuth
<snorkdude>
Inside IRB to see if it even recognizes it
hemanth_ has quit [Read error: Connection reset by peer]
<snorkdude>
But I get a NameError
Nisstyre-laptop has quit [Quit: Leaving]
gnul0ver has quit [Read error: Connection reset by peer]
<snorkdude>
The code inside Taste::Test is so simple, but it doesn't recognize that either so it can't be anything inside the class that's causing the error.
generalissimo has quit [Remote host closed the connection]
adkron has quit [Ping timeout: 244 seconds]
lenovodroid has joined #ruby
jerius has joined #ruby
eddie_ has joined #ruby
tpelletier has quit [Ping timeout: 264 seconds]
<eddie_>
Is Ruby being widely used in IT firms @ NewZeland ?
<eddie_>
anyone?
BoomCow has quit [Quit: This computer has gone to sleep]
Umren has joined #ruby
atyz has joined #ruby
<pdtpatrick>
eddie_: that's a tough question. You're better off researching the firms and see what languages are typically required as part of their employment process
adeponte has quit [Remote host closed the connection]
<pyro111>
the question was I cant see ActiveModel::Model : require 'active_model';ActiveModel.constants.grep /Model/
<pyro111>
(in irb)
megharsh has quit [Ping timeout: 255 seconds]
Driscoll has quit [Ping timeout: 255 seconds]
elico has joined #ruby
mmitchell has quit [Ping timeout: 245 seconds]
adeponte has quit [Ping timeout: 264 seconds]
<pyro111>
ok active_attr fits my needs
kiyoura` has quit [Quit: Leaving]
_adeponte has joined #ruby
crackfu has quit [Remote host closed the connection]
Fox_candy has joined #ruby
_adeponte has quit [Remote host closed the connection]
megharsh has joined #ruby
nari_ has quit [Ping timeout: 255 seconds]
gbchaosmaster has joined #ruby
h4mz1d has quit [Ping timeout: 260 seconds]
elico has quit [Quit: elico]
keller-ship has joined #ruby
SiegeX has quit [Quit: Insert generic quit message here]
atyz has joined #ruby
SiegeX has joined #ruby
kn330 has joined #ruby
generalissimo has quit [Remote host closed the connection]
Asher2 has joined #ruby
atyz has quit [Ping timeout: 255 seconds]
SiegeX has quit [Client Quit]
SiegeX has joined #ruby
nari_ has joined #ruby
mrdtt has joined #ruby
Asher2 has quit [Quit: Leaving.]
adeponte has joined #ruby
eddie_ has quit [Ping timeout: 245 seconds]
samuel02 has joined #ruby
postmodern has joined #ruby
Xeago has joined #ruby
adeponte has quit [Ping timeout: 255 seconds]
<keller-ship>
Suppose I have a class Board and @state is an array of arrays. For instance, @state = [[3, 2, 1], [], []]. Why the heck after @state[2] << @state[0].pop do I get [[3, 2], [1], [1]]?
Xeago has quit [Ping timeout: 260 seconds]
<pyro111>
mutability?
lenovodroid has quit [Ping timeout: 260 seconds]
browndawg has left #ruby [#ruby]
joeycarmello has quit [Remote host closed the connection]
ChrisBolton has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
eddie_ has joined #ruby
<heftig>
keller-ship: how did you construct @state?
Jasko has quit [Read error: Connection reset by peer]
robustus has joined #ruby
Jasko has joined #ruby
charliesome has joined #ruby
mafolz has joined #ruby
atmosx has joined #ruby
nari_ has quit [Quit: Ex-Chat]
Animawish has joined #ruby
<Hanmac1>
keller-ship: it means that the 2rd and the 3th [] element are both the same object
Hanmac1 is now known as Hanmac
juha_ has left #ruby [#ruby]
lazyPower has joined #ruby
error_code has joined #ruby
moshee has quit [Ping timeout: 255 seconds]
slainer68 has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
joofsh has quit [Remote host closed the connection]
slainer68 has quit [Ping timeout: 264 seconds]
eldariof has joined #ruby
TheEmpty_ has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
generalissimo has joined #ruby
squidBits has joined #ruby
elico has joined #ruby
ChrisBolton has quit [Quit: ChrisBolton]
joeycarmello has joined #ruby
browndawg has joined #ruby
elico has quit [Remote host closed the connection]
lenovodroid has joined #ruby
tchebb has quit [Ping timeout: 264 seconds]
mafolz has quit [Remote host closed the connection]
h4mz1d has joined #ruby
Takehiro has quit [Remote host closed the connection]
yacks has quit [Ping timeout: 255 seconds]
mafolz has joined #ruby
tchebb has joined #ruby
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
Tarential has quit [Ping timeout: 252 seconds]
LucidDreamZzZ has joined #ruby
atyz has joined #ruby
Tarential has joined #ruby
Fox_candy has quit [Read error: Connection reset by peer]
mockra has quit [Remote host closed the connection]
mockra has joined #ruby
txdv_ is now known as txdv
emocakes has joined #ruby
squidBits_ has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
mpfundstein_home has joined #ruby
<dsdeiz>
hm, is pry fine to use by beginners? or will there be a lot of confusions between using pry and irb?
keller-ship has joined #ruby
<Paradox>
dsdeiz, you can use pry just like irb
<Paradox>
pry just offers more useful tools
<Paradox>
like ls
<Paradox>
which really is just an enhanced version of Object#methods
<dsdeiz>
oh cool. thx again
<Paradox>
so
squidBits has quit [Ping timeout: 255 seconds]
squidBits_ is now known as squidBits
browndawg has joined #ruby
browndawg has quit [Client Quit]
browndawg has joined #ruby
hoelzro|away is now known as hoelzro
<canid>
If somebody feels like taking a look at my paste I'm wondering if this is a sane way to handle relative indices in ARGV for command line parameters: ARGV[ARGV.index('-h')+1]
arturaz has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
Goles has joined #ruby
ChrisBolton has joined #ruby
keller-ship has quit [Quit: Leaving]
nomenkun has joined #ruby
vlad_starkov has joined #ruby
brendan_ has joined #ruby
lenovodroid has joined #ruby
<dsdeiz>
the docs are a bit difficult to read :( any examples on how to parse xml responses? i see a parsed_response when i did a search but im not sure how to use it
pothibo has joined #ruby
nemesit has joined #ruby
hotovson has joined #ruby
<dsdeiz>
hm, i was able to use parsed_response, but i can't find docs about it
Jasko has quit [Read error: Connection reset by peer]
Jasko has joined #ruby
<Mon_Ouie>
charliesome: Btw, I think it would be more useful for your bot to print the result of evaluating the expression, as that's what we want more often than the actual output of the program (now we'd need to prefix "p" or "puts" most of the time)
<charliesome>
ah yeah
<charliesome>
i was thinking of that
<charliesome>
wrap the user code in a method
<charliesome>
then put
<charliesome>
p method
<charliesome>
or whatever
seanstickle has joined #ruby
<dsdeiz>
or prolly something like how do i determine what object does HTTParty.get return
<charliesome>
Mon_Ouie: so the user can do multiple statements like this? http://eval.in/5674
statarb3 has quit [Quit: Leaving]
nomenkun has quit [Ping timeout: 255 seconds]
<Mon_Ouie>
I think I'd actually do TOPLEVEL_BINDING.eval "code as a string" in that method, so it behaves as much as if there were no wrapping method
hotovson has quit [Ping timeout: 264 seconds]
hotovson has joined #ruby
atyz has joined #ruby
<Mon_Ouie>
(and also find the best way for the method not to interfere with whatever code they try to run)
serhart1 has quit [Quit: Leaving.]
blaxter has quit [Quit: foo]
<waxjar>
dsdeiz: HTTParty.get '…', :format => :xml. seriously though, use google/rubydoc/github READMEs or wiki's it's all in there :)
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
elaptics`away is now known as elaptics
<dsdeiz>
im browsing through its github README and example. where do i find that :format bit?
horofox has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
statarb3 has quit [Write error: Connection reset by peer]
<lazyPower>
Could someone lend a hand with my rspec test thats failing on a simple assignment? Testing a basic resource controller and its turning into chunky salsa when i attempt to assign a variable to the session.
pen has quit [Read error: Connection reset by peer]
matip_ has quit [Read error: Connection reset by peer]
pen has joined #ruby
benlieb has joined #ruby
iamjarvo has quit [Quit: Leaving.]
blacktulip has joined #ruby
hotovson has quit [Remote host closed the connection]
Russell^^ has quit [Quit: Russell^^]
yacks has quit [Quit: Leaving]
ltsstar has joined #ruby
spacemud has joined #ruby
<waxjar>
is there a way to determine in which Object an exception was raised?
sailias has joined #ruby
<whitequark>
waxjar: why do you want that?
mpereira has joined #ruby
breakingthings has joined #ruby
emsilva has quit [Quit: Computer has gone to sleep.]
banisterfiend has joined #ruby
freeayu has quit [Ping timeout: 255 seconds]
<waxjar>
i'm writing some sort of filter system, that has multiple layers. i'm implementing something similar to sinatra's #halt and decided to use Exceptions
pwelch has joined #ruby
joofsh has joined #ruby
emsilva has joined #ruby
<whitequark>
make each layer an object. add a method like #process which rescues exceptions and calls the method which actually does the work.
carlyle has joined #ruby
<whitequark>
then, you'd know that the Object which raised the exception is the current one
mjolk has joined #ruby
mjolk is now known as Guest89661
<waxjar>
that's pretty much what I have now, except I'm rescuing the exceptions from a "main" object
bhavesh_a_p has quit [Remote host closed the connection]
<whitequark>
there is no better way, I'd say
<waxjar>
hmm, i guess i could call put it in the message. thanks for your time whitequark :)
lateau has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
stopbit has joined #ruby
thone_ has quit [Ping timeout: 265 seconds]
<daro_>
damn
<daro_>
code completion suggestions doesnt work for me: <
<daro_>
in rubymine
<daro_>
:(
nemesit has quit [Quit: Leaving...]
horofox has joined #ruby
spacemud has joined #ruby
<Emmanuel_Chanel>
Happy New Year!
<daro_>
lol already?
iamjarvo has joined #ruby
atyz has quit [Quit: Leaving...]
browndawg has joined #ruby
jrajav has joined #ruby
adkron has joined #ruby
mmitchell has joined #ruby
atyz has joined #ruby
__BigO__ has quit [Remote host closed the connection]
pen has quit [Read error: Connection reset by peer]
sijis has joined #ruby
pen has joined #ruby
lateau has joined #ruby
eldariof has quit []
<sijis>
i'm trying to understand a syntax error in yaml, what's wrong with the syntax on line 6,7 and 12, 13 (http://pastebin.com/6iTRncqd)
busybox42 has quit [Quit: leaving]
lateau has quit [Remote host closed the connection]
busybox42 has joined #ruby
<rking>
sijis: Put it on a separate line
<rking>
And don't indent the '-' any relative to the key
<rking>
^ Not strictly necessary, but that's the YAML style
lateau has joined #ruby
joofsh has quit [Remote host closed the connection]
<sijis>
rking: ahh. putting '- one' and '- two' in seperate lines worked
<sijis>
rking: howver, i do have it intented after 'tags:'.. should it not be?
BuGo has joined #ruby
<rking>
It doesn't have to be, but pro YAML style looks like this:
<rking>
akey:
<rking>
- items one level beneath
<rking>
- etc
<BuGo>
I can get method using method(:my_method) call. How do i get a super method?
<waxjar>
it looks clearer if you don't, imo. same thing for items, btw
<rking>
Yep, same for the ones under items.
npp has joined #ruby
npp is now known as nipar
<jrajav>
Are there pro YAML competitions?
matrixise has joined #ruby
jds has joined #ruby
<BuGo>
So any ideas how to get super method?
<sijis>
rking: gotcha. so is 'key: - value' incorrect syntax? i have another file like that and has no issues.. unless it becomes apparent when nesting
Marco has quit [Remote host closed the connection]
<rking>
Yep, that's incorrect.
<waxjar>
does method(:super) not work BuGo?
<TheEmpty>
What. YAML competionts o.O what would that be
<TheEmpty>
*competitions
<jrajav>
I'm just poking at "<rking> It doesn't have to be, but pro YAML style looks like this:" :P
<sijis>
rking: ok.. thanks for clearning that up.
<TheEmpty>
haha
<rking>
If you have something that you want to compact on one line, you can use the JSON-like format: "akey: [ one, two, three ]"
<BuGo>
waxjar:
<rking>
But otherwise all child nodes should be on the next line down
<BuGo>
NameError: undefined method `super' for class `ActiveRecord::Relation'
bean has joined #ruby
Xeago has joined #ruby
<waxjar>
hmm, that's right. super is a keyword iirc
<BuGo>
yup
<waxjar>
perhaps you could do something like self.class.ancestors[1].method( current_method_name) ?
gyre007 has joined #ruby
<BuGo>
will try :)
<waxjar>
__method__ apparently gets the current method name :)
<BuGo>
:)
Banistergalaxy has joined #ruby
<BuGo>
and this method is a delegate... F
lateau has quit [Remote host closed the connection]
lateau has joined #ruby
lateau has quit [Read error: Connection reset by peer]
lateau has joined #ruby
AndChat- has quit [Ping timeout: 260 seconds]
Coeus has joined #ruby
kirun has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
nipar has quit [Read error: Connection reset by peer]
atyz has quit [Quit: Leaving...]
Slivka has quit [Read error: Connection reset by peer]
atyz has joined #ruby
blazes816 has joined #ruby
danneu has joined #ruby
xemu has quit [Ping timeout: 245 seconds]
ebouchut has quit [Quit: This computer has gone to sleep]
nipar has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
ebouchut has joined #ruby
jds has quit [Remote host closed the connection]
Banistergalaxy has joined #ruby
cj3kim has quit [Quit: This computer has gone to sleep]
joeycarmello has quit [Ping timeout: 245 seconds]
jonahR has quit [Read error: Connection reset by peer]
bradleyprice has quit [Remote host closed the connection]
sailias has quit [Quit: Leaving.]
<shevy>
you magic hackers
track7 has quit [Read error: Connection reset by peer]
mpfundstein_home has quit [Ping timeout: 245 seconds]
mrdtt has quit [Quit: mrdtt]
track7 has joined #ruby
voodoofish has quit [Ping timeout: 255 seconds]
pyro111 has quit [Quit: Leaving]
itnomad has joined #ruby
LucidDreamZzZ has quit [Ping timeout: 276 seconds]
bluehavana_ has quit [Ping timeout: 246 seconds]
jds has joined #ruby
joeycarmello has joined #ruby
<becom33>
looking for good wxruby tutorial
<becom33>
it would be great if someone can lead me to one of those
slainer68 has quit [Remote host closed the connection]
* Hanmac
does his own wxruby because wxruby looks dead
otters has quit [Remote host closed the connection]
yshh has quit [Remote host closed the connection]
<becom33>
Hanmac, Im not that advance .I was looking for a easy way to do a little GUI app for my useage . since Im using Windows and Linux both . it would be great if its easy to install/use in cross platform as well
<becom33>
but hard to find tutorials on wxruby
JMcAfreak has quit [Quit: leaving]
nwertman has joined #ruby
nwertman has quit [Remote host closed the connection]
pcarrier has quit []
jds has quit [Remote host closed the connection]
anirudh24seven has joined #ruby
<seanstickle>
becom33: a web browser makes an excellent (and, imo, superior) cross-platform GUI
<becom33>
seanstickle, yea I was thinking the same . I can easily make a php app . but I was thinking do something with ruby :(
<lazyPower>
libwebkit makes it possible to do things seamless too
<lazyPower>
not to mention unity-webapps
<seanstickle>
becom33: I write little local machine apps with Sinatra all the time
<seanstickle>
becom33: Sinatra being a nice little Ruby lib for web apps (in case you are unfamiliar with it)
io_syl has joined #ruby
<becom33>
seanstickle, no I tried it for a while . but kinda hard work when it comes to templates . no offense . kinda hard . easy to do the samething with php
<seanstickle>
I can't say it's hard.
<seanstickle>
But if it is for you, ok.
<jrajav>
Sinatra: Rails for people who don't like the word rails
<jrajav>
:P
nwertman has joined #ruby
<seanstickle>
If writing a little Sinatra web app is hard, you're going to beat your head in using wxruby
<seanstickle>
jrajav: Rails is overkill for some things.
lkba has joined #ruby
<jrajav>
becom33: Easy is a matter of perspective
<jrajav>
becom33: PHP's ease scale is exponential. Sinatra/Rails' is linear
<seanstickle>
I've had cause to consider using PHP's Symfony. It is … interesting/
<becom33>
seanstickle, yea I should give some chance to sinatra
<billy_ran_away>
shevy: I'm just not confident in the "acceptability" of extending the core Object class.
breakingthings has quit []
RagingDave has joined #ruby
banisterfiend has joined #ruby
<shevy>
I'd wish there would be a tabula rasa state for all of core ruby objects, so that one could reset them
<billy_ran_away>
shevy: It's like on one hand sure Ruby was made to do this, it would make my code read better, but on the other hand, shouldn't I work in the constraints of the language, who do I think I am re-writing this amazing language...
<shevy>
Kernel.reset
RagingDave is now known as RagingDave_
RagingDave_ is now known as RagingDave
<shevy>
billy_ran_away the feature in itself is useful
lateau has quit [Remote host closed the connection]
<shevy>
the side-effect or rather that you can't restore the default state is annoying
<shevy>
people workaround via including a module, then unincluding it again
solidresolve has quit [Remote host closed the connection]
<shevy>
which is gay... the class vs. module distinction is annoying too
squidBits has joined #ruby
<billy_ran_away>
shevy: Not 100% clear on what you mean restore the default state, but I'm venturing a guess.
voodoofish has quit [Quit: Leaving]
<shevy>
billy_ran_away in your example you added: def to_value
<shevy>
to all objects
solidresolve has joined #ruby
<billy_ran_away>
Yea
<shevy>
do you know of a way to undo changes such as this?
<billy_ran_away>
undefine_method?
<shevy>
all changes
<banisterfiend>
shevy: that's what refinements are for
lateau has joined #ruby
solidresolve has quit [Remote host closed the connection]
voodoofish has joined #ruby
solidresolve has joined #ruby
QKO_ has joined #ruby
lateau has quit [Remote host closed the connection]
solidresolve has quit [Remote host closed the connection]
lateau has joined #ruby
solidresolve has joined #ruby
hotovson has joined #ruby
Xeago has joined #ruby
solidresolve has quit [Client Quit]
joeycarmello has quit [Ping timeout: 255 seconds]
Udom0 has quit [Quit: Leaving.]
horofox has quit [Quit: horofox]
QKO has quit [Ping timeout: 265 seconds]
lateau has quit [Remote host closed the connection]
RagingDave has quit [Quit: Ex-Chat]
thufir_ has joined #ruby
RagingDave has joined #ruby
solidresolve has joined #ruby
<shevy>
whoa... didn't know one can create an in-memory variant for sqlite... SQLite3::Database.new ":memory:"
daniel_-_ has joined #ruby
lateau has joined #ruby
Xeago has quit [Ping timeout: 245 seconds]
hotovson has quit [Ping timeout: 245 seconds]
<billy_ran_away>
Is it possible to take over the || method for an object?
mockra has joined #ruby
<billy_ran_away>
I'm doing the NullObject pattern (well trying to…) and I'd like NullObject.new || 1 to return 1 and not the NullObject.
<billy_ran_away>
Tried def ||(value) false; end which did not work...
grzywacz has joined #ruby
grzywacz has quit [Changing host]
grzywacz has joined #ruby
daniel_-_ has quit [Client Quit]
crackfu has joined #ruby
<Sou|cutter>
billy_ran_away: I feel like the point of NullObject is so that you don't have to do that sort of conditional
daniel_- has quit [Ping timeout: 252 seconds]
<billy_ran_away>
I want to Maybe(maybe_nil).attributes.attribute.count + 1 || 1
yakko has joined #ruby
<billy_ran_away>
So if it's a NullObject the + 1 just returns the NullObject again, which is great, but it returns true.
<Sou|cutter>
billy_ran_away: your null object should have .attributes.attribute.count == 0
<Sou|cutter>
then get rid of || 1
<billy_ran_away>
Sou|cutter: But I want to get the count + 1 or just 1
<Sou|cutter>
0 + 1 is 1
mjolk_ has quit [Quit: returning some videotapes]
<billy_ran_away>
NullObject isn't 0 though...
<billy_ran_away>
It's NullObject.
francisfish has quit [Remote host closed the connection]
hotovson has joined #ruby
pooriaazimi has joined #ruby
<Sou|cutter>
billy_ran_away: I feel like you may not be grokking the null object pattern
<billy_ran_away>
Of course I could make a to_i method for NullObject that returned 0 couldn't i?
<Sou|cutter>
it shouldn't be an object that replaces nil
francisfish has joined #ruby
__main__ has quit [Read error: Connection reset by peer]
mpereira has quit [Ping timeout: 245 seconds]
<billy_ran_away>
Yea it's an object that's more friendly for chaining so you don't have to add trys everywhere isn't it?
<Sou|cutter>
it should be an object that represents a type whose state is not specified
Guest89661 has quit [Quit: This computer has gone to sleep]
<billy_ran_away>
Sou|cutter: It's an object to represent the special case of “do nothing on missing value”
__main__ has joined #ruby
slainer68 has joined #ruby
<Sou|cutter>
so if not specified for this type means .attributes.attribute.count == 0, then you don't need || 1
<jamescarr>
TheEmpty: sorry, was away. Nokogiri is compiled
<billy_ran_away>
That'd return true or false...
<jamescarr>
I get the segfault at runtime
tommyvyo_ has quit [Quit: Computer has gone to sleep.]
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
<billy_ran_away>
Sou|cutter: I'm trying to go from this: "XX#{ (cabinetable.try(:cabinets).try(:count) || 0) + 1 }"
<Sou|cutter>
just define a NullCabinetable object whose .cabinets.count is 0
<billy_ran_away>
Because otherwise my string will "XX#{ NullObject }" Which will just be "XX" but if there's nothing there I want it to be 1.
samphippen has joined #ruby
<billy_ran_away>
Sou|cutter: Yea that or I could def to_i; 0; end to NullObject and then do "XX#{ cabinetable.cabinets.count + 1}"
<Sou|cutter>
I don't think we're on the same page
<Sou|cutter>
I wouldn't use a general purpose NullObject object
<Sou|cutter>
I would use one specific to your type/context
<billy_ran_away>
Yea, but we're close… You're suggesting I make a more specific NullObject… which I don't like because I have LOTS of different objects and I'm trying to do something more general purpose and establish a broader DRYer pattern for the application.
francisfish has joined #ruby
QKO has joined #ruby
<billy_ran_away>
Sou|cutter: But I'm interested in hearing why I'm wrong. : )
nwertman has quit [Ping timeout: 255 seconds]
maletor has joined #ruby
daniel_- has joined #ruby
<Sou|cutter>
DRY would be using nil :P
danneu has quit [Quit: WeeChat 0.3.8]
<Sou|cutter>
sorta
iamjarvo has joined #ruby
<Sou|cutter>
a generic NullObject is little different from nil is what I'm saying
QKO_ has quit [Ping timeout: 265 seconds]
<billy_ran_away>
Yea I get that. Nil is saying nothing, NullObject is saying, something might be here, or maybe not, but if so do this.
<blazes816>
call it a SchrodingerObject
samphippen has quit [Quit: Computer has gone to sleep.]
<billy_ran_away>
Sou|cutter: Maybe a car analogy would help...
<Sou|cutter>
billy_ran_away: I think we disagree on what a null object is
<Sou|cutter>
billy_ran_away: if you look on the wikipedia page on the pattern you will see that even the ruby example gives a non-generic implementation of a null object
friskd has joined #ruby
<Sou|cutter>
you should be able to treat a null object the same as a non-null object in your context. In this case that means being able to call .cabinets.count
oktapodi has quit [Read error: Connection reset by peer]
oktapodi_ has joined #ruby
<billy_ran_away>
Sou|cutter: Sure but are specific NullObjects and general NullObjects fundamentally different? Consider a Float 0 and an Integer 0...
<Sou|cutter>
can you call .cabinets.count on your general NullObject ?
<billy_ran_away>
Right and a general NullObject would facilitate that...
<Sou|cutter>
and get a meaningful result
<billy_ran_away>
Of course I get a NullObject.
<atmosx>
this inconsolata fonts ar egreat
jds has joined #ruby
<Sou|cutter>
billy_ran_away: so you defined method missing to return a NullObject ... that is not meaningful in this context
pooriaazimi has quit [Quit: pooriaazimi]
<Sou|cutter>
billy_ran_away: you just have a crazy version of nil
<billy_ran_away>
That's what allows you to cover chaining many methods together.
theRoUS has quit [Ping timeout: 276 seconds]
assurbanipal_ has joined #ruby
theRoUS_ has quit [Ping timeout: 276 seconds]
<billy_ran_away>
Without it I'm back to either adding a bunch of try's or covering every possible use case in specific NullObjects.
<Sou|cutter>
I don't think there's anything wrong with specific null objects
<Sou|cutter>
there are cases where that generic one may be useful
<Sou|cutter>
but this is not one of them
syamajala has joined #ruby
assurbanipal has quit [Ping timeout: 255 seconds]
elaptics is now known as elaptics`away
<Sou|cutter>
billy_ran_away: that blog post reads to me as more of a thought experiment than a recommendation
sonnym has joined #ruby
sonnym has quit [Max SendQ exceeded]
_adeponte has quit [Remote host closed the connection]
<billy_ran_away>
Sou|cutter: Okay thanks I think I may shy aware from the NullObject pattern for now then. Making specific NullObjects seems like more trouble then it's worth.
<billy_ran_away>
*away
<Sou|cutter>
billy_ran_away: FWIW that blog post does define to_i (and several other to_ methods)
<Sou|cutter>
def to_i; 0; end <-- right there in the blog post
daniel_hinojosa has joined #ruby
adeponte has joined #ruby
<Sou|cutter>
so if you DO want to use that generic version, that would solve your problem
<billy_ran_away>
Sou|cutter: Take out all my trys.
atyz has quit [Quit: Leaving...]
<Sou|cutter>
#{ (cabinetable.cabinets.count.to_i + 1 } <-- with a generic NullObject with to_i # => 0
<yfeldblum>
billy_ran_away, generic null-object is a bad pattern
<Sou|cutter>
yfeldblum: agreed.
<yfeldblum>
billy_ran_away, it's fine for very specific cases, but there's no good way to do it without case-specific null-object objects/classes
grzywacz has quit [Ping timeout: 265 seconds]
<yfeldblum>
billy_ran_away, the canonical case is an html view, where you need to show something if the object is there and something else if it isn't, and instead of doing the selection in the view, you do the selection in the controller and take advantage of inheritance in the view
<Sou|cutter>
to use the generic NullObject you would have to know that you have to call to_i (or various conversions) rather than just expecting a certain sort of object implicitly (like count returns something like a Fixnum)
bean has quit [Quit: Computer has gone to sleep.]
bradleyprice has joined #ruby
nwertman has joined #ruby
<billy_ran_away>
Sou|cutter: Okay cool, I really appreciate your insight and help me understand the NullObject pattern better.
<billy_ran_away>
*helping
bapa has quit [Remote host closed the connection]
kokainepizza has joined #ruby
<Sou|cutter>
glad to help
mmitchell has quit [Remote host closed the connection]
<Azure>
I'm trying to write my own IRC class (and bot) from scratch. I can't seem to figure out how I would do events, like say joins, parts, quits, privmsg's, etc.
tommyvyo_ has joined #ruby
<Azure>
I've heard too many bad things about Event Machine, and I've looked at Celluloid::IO's examples, but can't really seem to figure out what I'm supposed to do.
pcarrier has joined #ruby
<banisterfiend>
Azure: believe in yourself, and the answer will appear before you delivered in your dreams by the goddess Kali
<seanstickle>
banisterfiend: that's how Arjuna became a Python programmer, I think
lkba has quit [Ping timeout: 252 seconds]
<yfeldblum>
IO.pipe gives a r stream and a w stream; it looks like the r stream is not sync, but the w stream is; what's the reason?
breakingthings has joined #ruby
<banisterfiend>
seanstickle: who is arjuna?
wf2f has quit []
jds has quit [Remote host closed the connection]
<seanstickle>
banisterfiend: a warrior taught by the god Krishna
<Azure>
Interesting.
<seanstickle>
Bhagavad Gita, doncha know
<Azure>
I would love to also implement plugins, or some sort of similar extensible concept as well.
bapa has joined #ruby
Axsuul has joined #ruby
* Azure
is doing this mostly for self-education's sake. :p
<seanstickle>
Azure: Rubygems is what you are looking for
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
<Azure>
Well, they still would have to be included in somehow.
<Azure>
Like in a bootstrap script, or something.
Xeago has joined #ruby
<seanstickle>
Azure: Bundler
bluehavana_ has joined #ruby
<shevy>
Azure haha I started with an irc bot in ruby too, after failing with one in php
<Azure>
Just telling me to use Bundler still doesn't help any. :p
Iszak has quit []
havenn has quit [Ping timeout: 245 seconds]
<TheEmpty>
Gems are built in, "gem" CLI. Bundler automates the process and ties the libraries/gems down to the project
<Azure>
I know that,
<Azure>
.
nwertman has quit [Ping timeout: 252 seconds]
<atmosx>
no you didn't.
<Azure>
What I need to figure out is how to take messages from an IRC server and implement a pattern like pubsub or reactor, or *something*.
<atmosx>
lol
<TheEmpty>
Yeah I have a ton of those lying around
<shevy>
Azure do you already get the messages
<atmosx>
Azure: writing a bot?
<Azure>
Yes
<Azure>
I already get the messages
Xeago has quit [Read error: Connection reset by peer]
<Azure>
and even have individual methods that get called depending on the command.
delinquentme has joined #ruby
<delinquentme>
https://gist.github.com/4421869 so I'm doing something like this ... how can I do this .. and have the name of the inputs printed out in puts n
emmanuelux has joined #ruby
Xeago has joined #ruby
track7 has quit [Read error: Connection reset by peer]
<Azure>
http://pastie.org/5603075 All that it does right now is connect, register, join a channel, and says something, and reacts to PING messages and sends out its own PING messages to the server for keeping the connection alive.
<TheEmpty>
Should send PONG
elaptics`away is now known as elaptics
skaczor has joined #ruby
thufir_ has quit [Ping timeout: 255 seconds]
arya has joined #ruby
thufir_ has joined #ruby
mockra has quit [Ping timeout: 245 seconds]
lkba has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
mpereira has joined #ruby
<waxjar>
Azure, i'm working on a similar project
<Azure>
TheEmpty, I do that already.
<Azure>
Oh? :p
<waxjar>
I can put it on github if you like
Banistergalaxy has joined #ruby
<TheEmpty>
you said you send PING
<waxjar>
it's still quite buggy, but it sort of works :p
<jamescarr>
I'll put it on source forge if you like
mpfundstein_home has joined #ruby
jamescarr has left #ruby [#ruby]
<Azure>
Sure
bradleyprice has quit [Remote host closed the connection]
<TheEmpty>
I feel like Ruby syntax is ugly. I tried several times to make this pretty but it kept giving syntax errors if I break it up on lines
skaczor has quit [Remote host closed the connection]
<rismoney>
say i have this line outputname = buf2.slice(0..bufferlength).encode('US-ASCII').strip and instead of .encode i want to call my own method say my_encode, how do i call it inline
<TheEmpty>
umm. change encode to my_encode ?
<TheEmpty>
Oh wait
<TheEmpty>
You would have to extend the String class since slice returns a string object. Or instead wrap it
mpfundstein_home has quit [Ping timeout: 245 seconds]
<TheEmpty>
my_encode(bug2.slice(0..bufferlength))
sepp2k has quit [Ping timeout: 265 seconds]
<rismoney>
i thought i had that, let me doublecheck
joofsh has quit [Remote host closed the connection]
xaq has joined #ruby
Takehiro has quit [Remote host closed the connection]
hybris has joined #ruby
wallerdev has joined #ruby
jds has joined #ruby
kamsky has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<kamsky>
hey guys, quick question, in a class, public methods have to be defined before private ones?? cause after labeling a method private and writing a new one underneath, looks like the last one is also private
<banisterfiend>
kamsky: because your'e not labelling a method prviate
<banisterfiend>
you're changing the visibility flag to prviate
<banisterfiend>
private
<banisterfiend>
so it applies to all subsequently defined methods
gyre007 has quit [Ping timeout: 255 seconds]
<banisterfiend>
kamsky: if u want to just define a single method as private then use: private method_name
<kamsky>
banisterfiend: I see
<banisterfiend>
where method_name is the method's name as a symbol
<banisterfiend>
e.g: private :my_method
<jasonh>
i had no idea that ruby supported that
pngl has joined #ruby
<kamsky>
and that private :my_method is underneath all the methods?
<banisterfiend>
kamsky: no it can be wherever, just make sure it's AFTER the method you want to make private
<kamsky>
banisterfiend: thanks, Ima try it
lazyPower has quit [Remote host closed the connection]
<kamsky>
banisterfiend: cool, works like a charm, thx!
<TheEmpty>
private and public are functions too :) pretty cool, not keywords like I said before
<kamsky>
TheEmpty: yeah but I think banisterfiend's solution is neater
<banisterfiend>
kamsky: i typically define a method as private immediately after it's definition
<kamsky>
yeah that's what I did
<kamsky>
that's fixed, now Im having a different issue, nothing to do with that thing tho
<banisterfiend>
its*
<jasonh>
3
generalissimo has joined #ruby
jds has quit [Ping timeout: 244 seconds]
<banisterfiend>
kamsky: use pry to debug it :P
atyz has joined #ruby
<kamsky>
so Im using RVM, I created a specific gemset for my project and installed packetfu, all this was done as a regular user. Thing is that I need my program to be executed as root, but when I do it (sudo) I get an error when requiring packetfu, this doesnt happens if I run it as the regular user.
<kamsky>
happen*
daro_ has quit [Quit: Leaving]
slainer68 has quit [Remote host closed the connection]
Jessykinz has joined #ruby
<kamsky>
never mind
<kamsky>
rvmsudo
atyz has quit [Ping timeout: 255 seconds]
RagingDave has quit [Quit: Ex-Chat]
mmitchell has joined #ruby
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
browndawg has left #ruby [#ruby]
<TheEmpty>
I really feel it should be Object#responds_to? instead of #respond_to?
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
Tarential has quit [Ping timeout: 244 seconds]
joeycarmello has joined #ruby
forced_request has joined #ruby
F1skr has joined #ruby
daniel_- has quit [Ping timeout: 244 seconds]
Guest61103 is now known as graft
pen has quit [Read error: Connection reset by peer]
mmitchell has quit [Ping timeout: 245 seconds]
pen has joined #ruby
havenn has quit [Ping timeout: 255 seconds]
<Hanmac>
there is a respond_to_missing? too :P
<waxjar>
yeah
<waxjar>
oh, that was not a question :p
Xeago has quit [Ping timeout: 245 seconds]
Tarential has joined #ruby
vlad_starkov has joined #ruby
<shevy>
waxjar hehehe
yfeldblum has quit [Ping timeout: 244 seconds]
Pip has joined #ruby
<Pip>
How is Ruby.20?
<Pip>
*2.0
<jasonh>
previewy.
mjolk has joined #ruby
mjolk is now known as Guest23982
pngl has quit [Ping timeout: 246 seconds]
daniel_- has joined #ruby
<shevy>
Pip years away
<seanstickle>
Coming out in 2013
<seanstickle>
So … not years per se.
<breakingthings>
It's hidden in my basement
<breakingthings>
you'll never see it again
<waxjar>
february i believe?
* breakingthings
runs off cackling
alexspeller has quit [Remote host closed the connection]
<banisterfiend>
it's coming out in february yeah
vlad_starkov has quit [Remote host closed the connection]
Takehiro has joined #ruby
<Pip>
Will it be amazing?
<seanstickle>
Pip: yes
<shevy>
Pip will you use it?
<waxjar>
there are some new features, Refinements and keyword arguments being the most prominent i believe
<shevy>
but I no longer use it, I use my local documentation
Takehiro has quit [Ping timeout: 245 seconds]
<seanstickle>
I dislike the Pickaxe book mightily
generali_ has joined #ruby
<Pip>
shevy, what document?
<shevy>
Pip you can always learn something new. if you start writing .rb scripts, I think in a few days you can write a few good scripts in an OOP fashion
<shevy>
seanstickle there was not that much choice available :( the standard lib documentation is nice, with examples and such
<aedorn>
mmm. feel the class coupling. feel it!
<seanstickle>
I like the draft ISO spec
<waxjar>
i did _why's poignant guide about halfway in, then started googling
<seanstickle>
That helped me learn Ruby fast and deeply
<seanstickle>
_why's thing drove me nuts.
<seanstickle>
Avoided at all cost.
<waxjar>
hehe
<Pip>
What about the BOOK?
<waxjar>
what book?
<Pip>
TRPL
<Pip>
By Matz
horofox has joined #ruby
<seanstickle>
Pip: That's pretty good
<Pip>
Is it for Ruby starters?
<shevy>
yeah
<seanstickle>
Pip: try the ISO draft spec
<shevy>
I disliked the _why book a lot, it confused me
<seanstickle>
Pip: it's super effective
generalissimo has quit [Ping timeout: 244 seconds]
LyonJT has quit [Quit: Leaving...]
<shevy>
this seems kinda overkill to suggest an ISO spec :D
<aedorn>
hmmm.. never read the draft before. Only 311 pages.. maybe I'll read it today.
havenn has joined #ruby
thatguycraig has quit [Quit: Leaving.]
<seanstickle>
aedorn: It's really quite good
adeponte has quit [Remote host closed the connection]
joofsh has joined #ruby
<Pip>
it's not the latest version, is it?
<seanstickle>
Pip: Nope.
<seanstickle>
Pip: but the differences are negligible
<seanstickle>
Pip: and you'll understand Ruby quite profoundly
jibi has joined #ruby
syamajala has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
yfeldblum has joined #ruby
wallerdev has quit [Quit: wallerdev]
mmitchell has joined #ruby
wallerdev has joined #ruby
pkrnj has joined #ruby
<aedorn>
yeah, it's not too bad. Up to 106 now.. read the rest in a bit
<rakl>
I want to set a variable "url" = request.path.split("/")[3] unless request.path.split("/")[3] == "index.html" in which case I want to set url = "Introduction". Is there a method to do this instead of a conditional or a case statement?
nomenkun has quit [Remote host closed the connection]
<Hanmac>
postmodern hm the link is half wrong, because you dont need update-alternatives --install , because its allready installed
lkba has joined #ruby
mockra has joined #ruby
kokainepizza has quit [Quit: My pooter is sleep.]
<Hanmac>
since Ubuntu 12.10 ruby1.9.3 is the default ruby when you install the ruby meta packages
<postmodern>
Hanmac, ah didn't know 12.10 finally switched over
jrajav has joined #ruby
<postmodern>
Hanmac, I've only used 12.04 via VMs
_cheney has quit [Ping timeout: 260 seconds]
breakingthings has quit []
<Hanmac>
on 12.04 you need to switch via update-alternatives, but you dont need to install it with --install
_cheney has joined #ruby
alanp_ has joined #ruby
alanp has quit [Ping timeout: 255 seconds]
IceDragon has joined #ruby
mmitchell has quit [Remote host closed the connection]
alanp_ is now known as alanp
samuel02 has quit [Remote host closed the connection]
tenmilestereo has quit [Quit: Leaving]
OldOats has joined #ruby
fourq has quit [Quit: leaving]
seanstickle has joined #ruby
mockra has quit [Remote host closed the connection]
Michael has joined #ruby
Michael is now known as Guest59765
Vert has joined #ruby
sailias has quit [Quit: Leaving.]
OldOats has quit [Client Quit]
notVert_ has quit [Ping timeout: 252 seconds]
Vert has quit [Read error: Connection reset by peer]
adeponte has quit [Remote host closed the connection]
pothibo has quit [Quit: pothibo]
alcuadrado has joined #ruby
gnul0ver has joined #ruby
moshee has quit [Ping timeout: 255 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
error_code has quit [Quit: error_code]
stopbit has quit [Quit: Leaving]
elico has joined #ruby
atyz has joined #ruby
joofsh has joined #ruby
denken has quit [Quit: leaving]
<alcuadrado>
Hey! I want to teach my little brother how to program, and think hackety hack may be a good way to do it. Is the project live despite _why's gone missing?
denken has joined #ruby
<IceDragon>
alcuadrado: I think someone else took it over, so yes.
atyz has quit [Ping timeout: 264 seconds]
<alcuadrado>
great :D
nwertman has quit [Ping timeout: 255 seconds]
Guest59765 has quit [Remote host closed the connection]
ehm_may has joined #ruby
nwertman has joined #ruby
xaq has joined #ruby
jds has joined #ruby
jds has quit [Remote host closed the connection]
ehm_may has quit [Quit: Leaving...]
allsystemsarego has quit [Quit: Leaving]
jds has joined #ruby
seanstickle has quit [Quit: seanstickle]
otters has quit [Remote host closed the connection]
jds has quit [Read error: No route to host]
jds has joined #ruby
sailias has joined #ruby
<n3lthon>
Hanmac: I cant execute gems binaries
ehm_may has joined #ruby
<Hanmac>
does update-alternative for gem too
<n3lthon>
i can install gems
<n3lthon>
but their executables are not available in path
nazty has quit [Read error: Connection reset by peer]
ehm_may has quit [Client Quit]
<n3lthon>
in my case passenger-install-apache2-module
adkron has quit [Ping timeout: 252 seconds]
<waxjar>
how did you install ruby?
<emocakes>
with an installler
<IceDragon>
platform?
<n3lthon>
debian squeeze
<emocakes>
@ waxjar
<n3lthon>
apt-get install ruby1.9.1-full
<Hanmac>
n3lthon does "gem env"
<IceDragon>
echo $PATH # ? and maybe just add the ruby/bin path
the_jeebster has joined #ruby
woolite64 has joined #ruby
<n3lthon>
/var/lib/gems/1.9.1/bin
<the_jeebster>
does anyone have experience parsing word documents with ruby? I assume I can't simply use the File class
superbot has quit [Ping timeout: 245 seconds]
nazty has joined #ruby
<IceDragon>
the_jeebster, word docs? depends on the version, 2007+ uses an ZIP + XML format
jds has quit [Remote host closed the connection]
<n3lthon>
update alternatives cant add it to the path?
<the_jeebster>
IceDragon: interetring. so I could use an xml parser for the job?
<the_jeebster>
not too sure about messing aronud with POI
nignaztic has joined #ruby
<IceDragon>
possibly.
<IceDragon>
extract the .docx, and then take a look at it
<the_jeebster>
I hope open office can export as xml :)
<IceDragon>
open office should be able to save docx files
<Hanmac>
n3lthon its maybe a problem if the distry ... my gem env shows: "EXECUTABLE DIRECTORY: /usr/local/bin"
<the_jeebster>
ahh that's what the x is for! hehe
<the_jeebster>
I'd have to convert a ton of documents anyways…I'll try that out, thanks for the tip