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
looopy has joined #ruby
<pspace>
Hi friends, what do you think about padrino? I am new to ruby
xiaotian has quit [Quit: Computer has gone to sleep.]
<pspace>
I basically want a framework that can give me session/user management and content perission management based on roles
<pspace>
Also, I am a little confused about the whole Sinatra vs Rails thing
ZachBeta has joined #ruby
<seanstickle>
Sinatra is smallish, Rails is largish.
<seanstickle>
Confusion settled.
<pspace>
So they are seperate and not related
<pspace>
distinct frameworks correct
red51 has joined #ruby
<seanstickle>
Correct
emmanuelux has joined #ruby
<pspace>
Does rails provide user / role management within its framework?
red51 has left #ruby [#ruby]
looopy has quit [Remote host closed the connection]
<seanstickle>
Nope.
pastjean has joined #ruby
<seanstickle>
You use a gem, a plugin.
<seanstickle>
Same with Sinatra.
<pspace>
What gem/plugin would you reccomend for that purpose? For sinatra I found one called Padrino that looks like a good fit.
<seanstickle>
Padrino is more of a framework built on top of Sinatra
<seanstickle>
For user and role management there are many.
<seanstickle>
can-can is fairly popular, as is rolly.
<seanstickle>
And devise for authentication
<pspace>
Cool, I'm going to look into those thank you
<seanstickle>
Sure thing
serroba has joined #ruby
roadze has joined #ruby
itnomad has joined #ruby
<pspace>
seanstickle: Which framework do you personally like better?
<pspace>
Basically, how useful are the "extra"/large features included in Ruby? My site will not be a simple blog
<seanstickle>
pspace: I use Sinatra for web services and APIs. I use Rails for more complex UI applications
Solnse has quit [Ping timeout: 240 seconds]
<pspace>
sweet, you're awesome man. thanks again
jmkeyes_ has joined #ruby
<jmkeyes_>
Has anyone seen "Exception `OpenSSL::SSL::SSLError' at /usr/lib/ruby/1.9.1/openssl/buffering.rb:145 - read would block" while subclassing XMLRPC::Client before?
M- has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
Urthwhyte is now known as Urth|Away
<jmkeyes_>
Oi, never mind that.
jmkeyes_ has left #ruby [#ruby]
looopy has joined #ruby
pspace has quit [Ping timeout: 245 seconds]
looopy has quit [Remote host closed the connection]
<myndzi>
i wrote it to loop through days and assign an uncertainty value based on the result of covariance(); that much seems correct, but wtf does the 5 do
roadze has quit [Remote host closed the connection]
pspace has quit [Quit: Konversation terminated!]
mikeycgto has joined #ruby
mikeycgto has quit [Changing host]
mikeycgto has joined #ruby
<RBV>
Calm: "The Ruby Programming Language" has hummingbirds on the cover
davidfn has joined #ruby
<krz>
given: hours = { :hours => { 0 => { :country_name => 'foo' }, 1 => { :country_name => 'bar' }, 2 => { :country_name => 'foobar' } } } is it possible to select an hour range. so for example: 0-1 ?
<krz>
which should return 0 => { :country_name => 'foo' }, 1 => { :country_name => 'bar' }
looopy has quit [Remote host closed the connection]
<seanstickle>
Yep
<Calm>
Alright that sounds baller
davidfn has left #ruby [#ruby]
<Calm>
Hummingbirds it is
<krz>
how would it be done?
<seanstickle>
krz: Enumerable#select
<krz>
thnx
liluo has joined #ruby
serroba has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
GuidovanPossum has quit [Quit: GuidovanPossum]
<krz>
seanstickle: what about find_all?
<seanstickle>
krz: what about it?
<krz>
ill try it out :-)
<seanstickle>
Same thing, different name
<seanstickle>
You'll see "select" used more often
digitalcakestudi has quit [Quit: Leaving.]
ZachBeta has joined #ruby
emet has quit [Remote host closed the connection]
tayy has joined #ruby
Urthwhyte is now known as Urth|Away
looopy has joined #ruby
AlbireoX`Laptop has quit [Remote host closed the connection]
phipes has quit [Quit: phipes]
jenrzzz-mac has joined #ruby
univers has quit [Remote host closed the connection]
juo100_ has joined #ruby
juo100 has quit [Ping timeout: 265 seconds]
juo100_ is now known as juo100
ZachBeta has quit [Quit: Computer has gone to sleep.]
looopy has quit [Remote host closed the connection]
jdahm has joined #ruby
pastjean has quit [Remote host closed the connection]
ChampS666 has quit [Ping timeout: 252 seconds]
<jdahm>
I was using jekyll for my personal website, but found that it was too blog-like when all I really want is to host personal files and didn't want a blog-like system. I am trying out stasis right now, but it seems fairly involved. What are peoples opinions on easy-to-use yet fairly flexible static website generators in ruby?
looopy has joined #ruby
tomb_ has quit [Quit: Computer has gone to sleep.]
univers has joined #ruby
fivetwentysix has joined #ruby
univers has quit [Remote host closed the connection]
looopy has quit [Remote host closed the connection]
test34 has quit [Ping timeout: 245 seconds]
jenrzzz-mac has quit [Quit: jenrzzz-mac]
baroquebobcat has joined #ruby
marting_ has joined #ruby
marting_ has quit [Remote host closed the connection]
baroquebobcat has quit [Client Quit]
emsilva has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Eldariof-ru has quit [Ping timeout: 245 seconds]
jenrzzz-mac has joined #ruby
Eldariof-ru has joined #ruby
baroquebobcat has quit [Client Quit]
horseman has quit [Ping timeout: 260 seconds]
ibash has joined #ruby
uris has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
juo100_ has joined #ruby
x0F_ is now known as x0F
juo100 has quit [Ping timeout: 260 seconds]
juo100_ is now known as juo100
akem has joined #ruby
akem has quit [Read error: Connection reset by peer]
redchip has joined #ruby
bambanx has joined #ruby
<bambanx>
hi
bbttxu has quit [Quit: bbttxu]
looopy has joined #ruby
test34 has joined #ruby
tayy has quit [Remote host closed the connection]
urlwolf has quit [Ping timeout: 246 seconds]
urlwolf has joined #ruby
Solnse has quit []
c0rn has joined #ruby
akem has joined #ruby
AlbireoX`Laptop has joined #ruby
bambanx has quit [Ping timeout: 260 seconds]
mikepack has quit [Remote host closed the connection]
becom33 has quit [Quit: Leaving]
fivetwentysix has quit [Quit: fivetwentysix]
crankycoder has joined #ruby
redchip has quit [Quit: redchip]
frishi has joined #ruby
sirdeiu has quit [Ping timeout: 245 seconds]
juo100_ has joined #ruby
akem has quit [Read error: Connection reset by peer]
seanstickle has quit [Quit: Nihil sub sole novum]
horseman has joined #ruby
juo100 has quit [Ping timeout: 246 seconds]
juo100_ is now known as juo100
redchip has joined #ruby
zinjacoder has quit [Read error: Connection reset by peer]
redchip has quit [Client Quit]
dhaskew has quit [Read error: Connection reset by peer]
maletor has joined #ruby
dhaskew has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
radic_ is now known as radic
sbanwart has quit [Ping timeout: 256 seconds]
RegEchse has quit [Quit: <3 WeeChat (v0.3.8-rc2)]
joshman_ has joined #ruby
noodletraveler has joined #ruby
sirdeiu has joined #ruby
joshman_ has quit [Client Quit]
chaotic_good has joined #ruby
<chaotic_good>
hey gents
<chaotic_good>
anyone here doing ruby for profit websites hosted on amazon cloud?
bambanx has joined #ruby
<bambanx>
hi
andrewhl has quit [Remote host closed the connection]
test34 has quit [Ping timeout: 244 seconds]
kylejohnston has joined #ruby
kylejohnston has quit [Client Quit]
punkrawkR has quit [Ping timeout: 252 seconds]
akem has joined #ruby
Targen has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
baroquebobcat has quit [Client Quit]
akem has quit [Read error: Connection reset by peer]
looopy has quit [Remote host closed the connection]
<chaotic_good>
hi
codingfoo has joined #ruby
codingfoo has left #ruby [#ruby]
Nanuq has quit [Quit: Lost terminal]
digitalcakestudi has joined #ruby
<digitalcakestudi>
having issue with this regex not working %r^\d{3}-?\d{2}-?\d{4}$/.match(000-00-0000)
<digitalcakestudi>
what am I missing?
<digitalcakestudi>
should work for ssn
ananthakumaran has joined #ruby
<chaotic_good>
some online page have regex builders
<digitalcakestudi>
I didnt notice but my 000-00-0000 is not a string
<digitalcakestudi>
doh
looopy has joined #ruby
Nanuq has joined #ruby
mengu has quit [Remote host closed the connection]
akem has joined #ruby
<chaotic_good>
you must do 300 pushups to say your sorry
<chaotic_good>
:)
<chaotic_good>
anyone any advice about cloud dev using passenger?
choffstein has quit [Remote host closed the connection]
<bnagy>
if you load a file that contains your rule statements, ruby is going to evaluate that code in the context of read_config, which is inside an instance of Shaper
<bnagy>
which means that Shaper is going to need to have those methods available
<bnagy>
one way of doing it is to put them in a module and include them in Shaper, and have them set ivars (on Shaper)
wvms has left #ruby [#ruby]
<bnagy>
right now you have just defined them on the toplevel (the rule reader methods)
chson has joined #ruby
<pradeepto>
right
<pradeepto>
let me try what you said
<bnagy>
if you want to save the values, the reader methods either need to set something (like appending to @rules or something) or you need to eval one statement at a time, so you can access the return vale
bambanx_ has joined #ruby
<bnagy>
there are lots of ways to do it, and someone else might have a stronger opinion on the architecture
univers has joined #ruby
rohit has quit [Ping timeout: 244 seconds]
rohit has joined #ruby
ananthakumaran has quit [Ping timeout: 246 seconds]
bambanx has quit [Ping timeout: 260 seconds]
visof has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
c0rn has quit [Ping timeout: 244 seconds]
<pradeepto>
bnagy: how can the reader methods access @rules from Shaper class?
kil0byte has quit [Remote host closed the connection]
<pradeepto>
can they?
mikeycgto has quit [Remote host closed the connection]
c0rn has joined #ruby
bambanx_ has quit [Read error: Connection reset by peer]
<bnagy>
if they are in a module which gets included into Shaper (or if they're just defined in Shaper, frankly) then they can
bambanx_ has joined #ruby
<bnagy>
where else would the reader methodss be used?
<bnagy>
you just need some kind of container, any kind really, that is visible to the reader rules and the Shaper instance
visof has quit [Ping timeout: 246 seconds]
visof has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
kil0byte has joined #ruby
bambanx__ has joined #ruby
bambanx__ has quit [Client Quit]
bambanx_ has quit [Ping timeout: 260 seconds]
digitalcakestudi has quit [Read error: Operation timed out]
kil0byte has quit []
noyb has joined #ruby
univers has quit [Remote host closed the connection]
pdtpatr1ck has joined #ruby
akem has quit [Read error: Connection reset by peer]
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
SeySayux has quit [Ping timeout: 245 seconds]
rohit has quit [Quit: Leaving]
liluo has joined #ruby
ryanf has joined #ruby
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
LBRapid has joined #ruby
<pradeepto>
bnagy: the reader methods are supposed to be used by shaping_rules.rb ( or what file that user creates as long as he conforms to the syntax ), hence they need visibility .
<pradeepto>
(hence they were top level methods)
<bnagy>
mostly when I do this stuff I make the user put the dsl'y stuff in a scaope
<bnagy>
*scope*
akem has joined #ruby
<bnagy>
like class MyRules < ShaperDSL ...
SeySayux has joined #ruby
<bnagy>
but it's ok, you can still extend a module into toplevel if you _really_ want I think, it's just uncool
akem has quit [Read error: Connection reset by peer]
<bnagy>
the main issue is that how do you then get your creation rules to see a container of some kind
<bnagy>
you'd need to predefine a constant or something, which is revolting imho
RudyValencia has quit [Read error: Connection reset by peer]
<bnagy>
anyway, if the user is just creating these config files, they don't need to include anything, they're just text until they're evaluated
RudyValencia has joined #ruby
yxhuvud has joined #ruby
c0rn has quit [Ping timeout: 246 seconds]
nilg` has joined #ruby
c0rn has joined #ruby
akem has joined #ruby
tomzx has quit [Ping timeout: 245 seconds]
harukomoto has quit [Ping timeout: 244 seconds]
c0rn has quit [Client Quit]
tomzx has joined #ruby
yannis has joined #ruby
yoklov has quit [Quit: computer sleeping]
c0rn has joined #ruby
akem has quit [Read error: Connection reset by peer]
xpot-station has quit [Ping timeout: 245 seconds]
visof has quit [Ping timeout: 246 seconds]
<pradeepto>
yes, those files will be created by an user(s), and I wanted to keep them as simple for the user as possible, at least that was the idea
<pradeepto>
bnagy: ^
mdw has joined #ruby
tewecske has joined #ruby
mohits has quit [Ping timeout: 245 seconds]
Retistic has joined #ruby
<Retistic>
how do i collect arguments in a variable to pass to a method?
<bnagy>
what kind of arguments?
<Retistic>
symbols and hashes
JohnBat26 has joined #ruby
<bnagy>
pradeepto: ok, well I don't really see the use case yet - you could just as easily have the user require 'shaper'; s=Shaper.new; then s.rule=blah etc etc
<bnagy>
Retistic: I mean arguments passed to what? A method?
<Retistic>
bnagy: something like symbol, symbol, array of symbols, hash, hash, hash
<bnagy>
def meth( *args ) #args is an array
<Retistic>
bnagy: sorry, yes
<Retistic>
ah ok so i could just make an array and then pass an array into the function?
akem has joined #ruby
<Retistic>
sorry, method
<bnagy>
depends what the other method wants
<bnagy>
you might need to splat it with *args again to deconstruct the array
cha1tanya has quit [Ping timeout: 245 seconds]
akem has quit [Read error: Connection reset by peer]
<bnagy>
like def method_missing m, *args; self.send "my_#{m}", *args; end
<bnagy>
also * is smart, do def foo( a,b, *c, d )
AlbireoX`Laptop has quit [Remote host closed the connection]
andrewhl has quit [Remote host closed the connection]
<Retistic>
bnagy: so the method already takes one *args param
c0rn has quit []
<bnagy>
and what's the question?
<bnagy>
how do you use that method?
banseljaj is now known as imami|afk
noyb has quit [Ping timeout: 252 seconds]
<Retistic>
bnagy: i know how to use it, i just would like to collect the arguments in a variable before i pass it to the function
Solnse has joined #ruby
<bnagy>
not sure why, but it's expecting 'normal' args
cordoval has joined #ruby
<bnagy>
so myargs=[a,b,c,bloo,blah]; can(*myargs) { # block here }
cordoval has left #ruby [#ruby]
CheeToS has quit [Ping timeout: 260 seconds]
<Retistic>
bnagy: because the args are dynamically loaded from a db and i would need a lot of business logic to input the params in the correct order depending on whether others are present
<Hanmac>
its funny to see a talk between two where you ignored one of them :p
<indian>
lol
<indian>
ok I am back to workk
<shevy>
Hanmac lol
<vectorshelve>
Hanmac: what did that mean ?
<horseman>
vectorshelve: it means he ignored u
appi_uppi has joined #ruby
<vectorshelve>
horseman: lol... thank goodness :D
Retistic has quit [Ping timeout: 248 seconds]
<shevy>
vectorshelve or he ignored horseman :P
<vectorshelve>
shevy: horseman has always been this irritating piece of shit ??
<horseman>
shevy: why would anyone ignore me
<shevy>
or perhaps both!
<shevy>
horseman because you spam
<shevy>
vectorshelve, nah, only when he is bored
<vectorshelve>
shevy: ask apeiros_ to kick ban him :D
<horseman>
shevy: spam is good for u, possibly high protein and it's cheap
<shevy>
vectorshelve, nope, I dont agree with kick bans
coderhs has joined #ruby
<coderhs>
guys is ruby a web language?
<shevy>
horseman but you know I dont eat animal proteins :(
<vectorshelve>
shevy: ok.. u soft like me.. we make a great couple dont we honey ? <3 :D
<shevy>
coderhs, depends on the definition. I think you can use ruby as a "web language" very well
<shevy>
but it has not such a heavy focus like php on the WWW, by default. it is more general purpose, like I use it mostly as replacement for shell scripts
nu7hatch has left #ruby [#ruby]
<Hanmac>
coderhs only if you believe
<shevy>
vectorshelve, you are beginning to sound like horseman ... :P
Beoran__ has joined #ruby
berkes has joined #ruby
<Hanmac>
he is infected
<shevy>
yeah
<shevy>
horseman is viral
<horseman>
shevy: im bored
<shevy>
horseman, man, I dont know how anyone can get bored! there are so many things to do, all the time!
<horseman>
shevy: like fail vids on youtube?
dhaskew has quit [Read error: Connection reset by peer]
dhaskew has joined #ruby
<Guest36229>
Yes lot to do
Guest36229 is now known as eddie_
<shevy>
horseman there are only about 50 or 60, you can work these through in ~3 days
<shevy>
then boredom comes again :(
<coderhs>
I use it for shell scripting as well, but I had an argument with a python programmer the other day that made me realize that most of ruby is used for the web... Any idea of other places where it is used? can ruby be used like python for developing application programs..
<shevy>
but I mean, CODE. or learning something new
<vectorshelve>
shevy: in one way ppl can easily get bored if they dont like their work.. as what I am going through now.. but spamming isnt a solution to it
dhaskew has quit [Read error: Connection reset by peer]
<coderhs>
horseman: by natively? meaning.. Am not clear about that point..
<bnagy>
python is made in russia and reliable and powerful and rubys american, jams all the time and is hated by everyone who uses it?
<bnagy>
wow that's a really bad analogy
<shevy>
coderhs there is an editor written in ruby -> redcar. requires JRuby (and thus java) though
<eddie_>
Python seems to be very effective with network applications
<horseman>
coderhs: it gets compiled down to the same bytecode that objc is, it can potentially run just as fast as objc code
<shevy>
and ruby not?
<horseman>
coderhs: it's a first class language on ios
<Hanmac>
python and ruby are like twin sisters ...
<Hanmac>
imo everything wich can do in python can be done in ruby two and otherwise
<shevy>
only thing
<shevy>
python has better docs
<eddie_>
Hanmac: :)
<vectorshelve>
shevy: enough of tech.. lets talk something off topic :) that will be interesting...
<eddie_>
Python has less groups
<eddie_>
to support it
<shevy>
just look python gtk3 tutorial, and try to find anything like that for ruby
<shevy>
:(
<vectorshelve>
anyone who haave had any supernatural experience before ... please share it over here.. am getting bored :)
<eddie_>
No monkey patching in Python :(
<shevy>
I dont know why python's docs are so much better
<vectorshelve>
did u know that University iof Florida has a pre planned strategy against Zombie attack
<Hanmac>
vectorshelve i touched inside THE LIGHT and it kicked me out
<shevy>
lol
<vectorshelve>
Hanmac: vectorshelve is yawning :)
<horseman>
coderhs: ruby can also be used on android with the ruboto project
liluo has quit [Remote host closed the connection]
<horseman>
coderhs: in general, ruby is much further ahead than python in the mobile development space
<eddie_>
horseman: but slow
<vectorshelve>
horseman: yeah,,, rubymotion too
<horseman>
eddie_: what's slow?
<eddie_>
ruby motion
<eddie_>
we just tried it
<vectorshelve>
shevy: I am thinking about applying here for a change -> http://lexity.com/
<eddie_>
the loading of the app itself was slow
<shevy>
vectorshelve and where is that?
<vectorshelve>
eddie_: I dont think rubymotion will last too long in the app arena
<eddie_>
yes
<horseman>
eddie_: ok, i haven't heard that before, a friend wrote an app with it and had no complaints about speed. Maybe it's quirk of your own app
<vectorshelve>
shevy: silicon valley and Bangalore India.. just read through what they do.. it sought of Intrigued me...
<eddie_>
we also tried sencha
<shevy>
hmmm
<horseman>
eddie_: can you program objc?
<shevy>
Bangalore sounds like copy pasting silicon valley :P
<eddie_>
finally decided to stick to native
<shevy>
but campus areas around universities and small startups nearby are always nice. easy to move around too
<eddie_>
horseman: No
<eddie_>
:)
<shevy>
I can't tell you how much I hate to drive to the other side of the town, then back again just to find spread-out companies
<eddie_>
I have people around me working on it
<vectorshelve>
shevy: I need money :D
chaotic_good has quit [Remote host closed the connection]
mxweas_ has joined #ruby
dekroning has joined #ruby
Guedes_out is now known as Guedes
<shevy>
we all do!
<eddie_>
shevy: At Bangalore
<eddie_>
:D
<vectorshelve>
shevy: and great work.. preferably non web dev
<shevy>
omg
<shevy>
Bangaloe invasion on #ruby
<shevy>
*bangalore
<vectorshelve>
shevy: whats the big deal ?
Guedes is now known as Guest60805
<vectorshelve>
shevy: with Bangalore ?
Guest60805 has quit [Quit: Saindo]
<horseman>
eddie_: i can't find any other claims on the net that rubymotion is slow
<shevy>
you code faster than the average guy does :P
Guest60805 has joined #ruby
<eddie_>
our company had to select between ruby motion and native
<horseman>
eddie_: so i think it must be a quirk of your particular application. If it really was as slow as you claim, i assume there'd be more discussion on this point
<eddie_>
I just shared what i heard
heisenmink has joined #ruby
Guest60805 has quit [Read error: Connection reset by peer]
Guedes0 has joined #ruby
pac1 has quit [Ping timeout: 246 seconds]
Guedes0 has quit [Read error: Connection reset by peer]
Guedes0 has joined #ruby
<vectorshelve>
eddie_: dont comment on Bangalore.. if u havent been there atleast once... and I am sure you definetely wouldnt have stayed there so long to have a fair judgement about the city..
petercs has joined #ruby
<eddie_>
vectorshelve: I didnt comment anything yet dude
Guedes has joined #ruby
Guedes has quit [Changing host]
Guedes has joined #ruby
<shevy>
:)
<shevy>
vectorshelve will defend Bangalore with claws and teeth
<vectorshelve>
eddie_: so go ahead.. and do let me see if thats true ;)
<eddie_>
shevy: you have placed me in trouble
<shevy>
eddie_ hey who would have known that vectorshelve loves Bangalore that much
<vectorshelve>
shevy: not really just with the truth.. there is nothing to defend it... people's perception abt something real and materialistic isnt going to amend it a lil ;)
<horseman>
eddie_: what country are you from?
hemanth1 has joined #ruby
az has joined #ruby
<shevy>
well I've never been to India so far :(
<hemanth1>
vectorshelve: hey
<hemanth1>
shevy: hey
<eddie_>
horseman: Any guess?
<vectorshelve>
shevy: then thats a loss
<horseman>
eddie_: india
<eddie_>
:D
<eddie_>
yes
coderhs has quit [Ping timeout: 246 seconds]
Guedes0 has quit [Client Quit]
<eddie_>
Bangalore is the second most interesting city for me in Indai
<eddie_>
I like Bangalore dude
<vectorshelve>
I dont love Bangalore.. but I guess its really unfair wrong and cheap to comment on something a place that u have nvr been to as simple as that
dekroning has quit [Ping timeout: 245 seconds]
<eddie_>
vectorshelve: What comment are you talking about?
<shevy>
eddie_, you made him ANGRY
<vectorshelve>
eddie_: generally it wasnt abt u bt I know many ppl from outside India are highly opinionated abt India
<vectorshelve>
hemanth1: hai bhai ;)
<eddie_>
shevy: i have no idea. What did i say?
<eddie_>
:D
nilg` has quit [Remote host closed the connection]
<eddie_>
Funny
<horseman>
vectorshelve: eddie_ is from india, he's your indian brother
<shevy>
vectorshelve, just like people from the USA thinking the USA is the best place of the world ;)
davidcelis has quit [Read error: Connection reset by peer]
<bnagy>
don't like either of them :/
Vert has joined #ruby
<shevy>
eddie_ I dont know what you said, perhaps that girls from india are ugly?
<eddie_>
shevy: My GF is Indian
<eddie_>
i wont say that
kil0byte_ has joined #ruby
<shevy>
hehe
<vectorshelve>
eddie_: u r from india right ?
<eddie_>
yes
<vectorshelve>
eddie_: where u from and where do u work ?
<indian>
looks like we are having Indian get together
<shevy>
yup, invasion here
<vectorshelve>
indian: yes and I guess shevy isnt enjoying it much.. :D
<shevy>
soon you have outnumbered any other country
<eddie_>
Guys i hate talking country chat here
d3vic3 has joined #ruby
<vectorshelve>
eddie_: kaha kaam karte ho
<indian>
lol
<eddie_>
Cochin
<bnagy>
omg I actually understood that
<eddie_>
shevy: Why do people mention others with nationality
<eddie_>
we are all programmers here
<eddie_>
:)
<bnagy>
first time I have been able to understad vectorshelve with my crappy nepali :>
<kalleth>
eddie_: because lol republicans
<vectorshelve>
eddie_: u kidding me :D u cant b fro cochin.. lol
<bnagy>
eddie_: well I guess if you limit the definition to 'people who can type code into an editor'
kil0byte has quit [Ping timeout: 265 seconds]
<eddie_>
vectorshelve: Why ?
<vectorshelve>
bnagy: u took a break from rubyonrails room ?
<vectorshelve>
eddie_: ok which company do u work with ?
davidcelis has joined #ruby
<bnagy>
I have never been in there in my life
<shevy>
eddie_ people wanna know where the best programmers sit at
<eddie_>
bnagy: we will be called Indian, American, Russian at moon too
<eddie_>
:D
<appi_uppi>
Bangalore was not like this before in early 2000.. nowadays it's becoming worst ;).. it was actually called garden city.. now we can call it as garbage city (only some people who haven't seen Bangalore in early 2000 will surely like now.. but I don't)
<eddie_>
shevy: Best programmers sit in front of their laptop
<r4um>
so true
<r4um>
banglore getting worse everyday
berserkr has joined #ruby
pac1 has joined #ruby
<horseman>
man how many freaking indians are on this chan?:P
<eddie_>
vectorshelve: You have a new prey. r4um
<shevy>
nah
<vectorshelve>
appi_uppi: I liked ur comparison
<shevy>
r4um is a troll
<vectorshelve>
bnagy: sorry mate it wasnt for u
<kalleth>
honestly
<kalleth>
i'm reading online about this "brogrammer" stuff
<appi_uppi>
lol
<kalleth>
and its like, ok, i'm kinda sounding like oneo f them ;(
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
Vendethiel has quit [Quit: je ne suis plus là, tqvu]
yoyoma has joined #ruby
berkes has quit [Ping timeout: 252 seconds]
<yoyoma>
hi guys, i've installed bundler gem but when trying to run bundler I get error.. I'm on windows OS, any ideas ?
fflush has quit [Quit: This computer has gone to sleep]
lorandi has joined #ruby
pygospa has quit [Disconnected by services]
pygospa has joined #ruby
v0n has joined #ruby
tatsuya_o has quit [Ping timeout: 244 seconds]
mohits has quit [Read error: No route to host]
cordoval has joined #ruby
M- has joined #ruby
<shevy>
the fools who created this abomination are on #bundler
<shevy>
dont think you will find anyone who can help here on #ruby
cordoval has left #ruby [#ruby]
digitalcakestudi has joined #ruby
noganex has quit [Ping timeout: 244 seconds]
<yoyoma>
shevy: bundler is considered as evil ?
frishi has joined #ruby
<shevy>
I find it useless, others find it useful. Those who find it useful should now speak up and try to help ya.
<shevy>
yoyoma in my experience "gem install foo" works beautifully. I do remember seanstickle having been in support of bundler, but he is not here it seems
<yoyoma>
shevy: thanks
zinjacoder has quit [Read error: Connection reset by peer]
<shevy>
becom33, there is enough documentation in ruby-gtk, sometimes you will have to look at the C docu though :\ best source are the sample .rb files because they work out of the box and you can learn from these
<shevy>
"Tokaido is a binary distribution of Ruby without any external dependencies on your system. This means that Ruby itself, as well as all of the compiled elements of the standard library, will come in a self-contained directory with no additional requirements."
nilg` has joined #ruby
<kalleth>
sounds too good to be true
<kalleth>
kickstarter project, close tab
<shevy>
heheeh
<shevy>
digitalcakestudi that should work
TheHunter_1039 has joined #ruby
lupine_85 has joined #ruby
abstrusenick has joined #ruby
yankov has joined #ruby
stepnem has joined #ruby
<seanstickle>
Just give me a Ruby built on top of the Parrot VM and I shall be happy.
nilg` has quit [Remote host closed the connection]
<seanstickle>
Or IronRuby even, which I believe is dead.
friskd has quit [Quit: friskd]
ZachBeta has quit [Quit: Computer has gone to sleep.]
<shevy>
yeah
<shevy>
I think it died around 3 or 4 years ago
<shevy>
and parrot ... perl 6 wants me to have perl 5 working :(
<shevy>
they behave like headless chickens now without larry
<shevy>
I tell you, ruby without matz will be called RailsReloaded
<seanstickle>
He is hoping his children will exceed him.
<shevy>
hehe
<seanstickle>
But I think he may be mistaken in that.
<shevy>
but often it's hard to expect much from kids
<shevy>
seanstickle did you do what your parents wanted you to do? I mean for work/studies
<fserb>
hey
<seanstickle>
shevy: make money an stay out of jail? yes.
<fserb>
I'm suffering with String#split :)
<seanstickle>
Larry is following "The Torah is not in Heaven" style of programming language development. Always a contentious approach.
jonathanwallace has quit [Remote host closed the connection]
<fserb>
a = "a-b\nc-d"; a.split('\n').each do |x| puts x.split('-')[0] end
<fserb>
why this outputs "a" and not "a" and "c".
<fserb>
and it seems to change if I make it split on something other than "\n"
<fserb>
:/
ZachBeta has joined #ruby
looopy has quit [Remote host closed the connection]
wallerdev has joined #ruby
<Hanmac>
fserb: replace '\n’ with "\n"
<shevy>
a = "a-b\nc-d"; a.split("\n") # => ["a-b", "c-d"]
<shevy>
fserb, btw you should use irb
<fserb>
Hanmac, why?
<fserb>
shevy, that always works.
<fserb>
shevy, the second split breaks with single quote, but works with double.
<fserb>
Hanmac, why as in "it works, but why?"
Nicke\ has quit [Quit: - nbs-irc 2.39 - www.nbs-irc.net -]
<shevy>
"" is not the same as ''
looopy has joined #ruby
<shevy>
"foo" == 'foo' # => true
itnomad has quit [Read error: Connection reset by peer]
<shevy>
"foo\n" == 'foo\n' # => false
Alantas has joined #ruby
kaspernj has quit [Read error: Operation timed out]
LBRapid has quit [Quit: Farewell...]
itnomad has joined #ruby
<shevy>
fserb, with irb you would notice the difference of the a.split('\n') you used, in the one example you would have an array with two members, in the other example an array with only one member
<fserb>
shevy, I see.
<fserb>
shevy, single quotes don't escape anything but single quotes and backslash.
<fserb>
shevy sigh.
<shevy>
yea
cha1tanya has quit [Ping timeout: 252 seconds]
<fserb>
shevy, Hanmac thanks a lot! :)
<shevy>
it's a simple fix :)
<shevy>
one day you will hit a bug which is hard to find and you will tear at your hair
<fserb>
it's too subtle.
<fserb>
I can imagine it happening.
<fserb>
:)
<Hanmac>
shevy you mean you used do ... end where you should use { } ? :P
<shevy>
Hanmac I actually always use {}
azm has joined #ruby
<shevy>
I like the visual grouping
<shevy>
def foo
araujo has quit [Read error: Connection reset by peer]
<shevy>
array.each {
ryannielson has joined #ruby
frishi has joined #ruby
<shevy>
}
<shevy>
end
<shevy>
hmm
araujo has joined #ruby
<shevy>
Hanmac I actually *almost* always use {}
ryannielson is now known as twixmix
<shevy>
I do use do/end sometimes
jonathanwallace has joined #ruby
<shevy>
sometimes do/end reads nicer
<shevy>
get '/hello/:name' do
<shevy>
params[:name]
<shevy>
end
<shevy>
and I think I would need () if I use {} there
<shevy>
which stinks
<shevy>
:(
<workmad3>
shevy: nope
<shevy>
works without parens?
<workmad3>
shevy: {} after a method call is (afaik) always interpretted as a block
<workmad3>
shevy: it's if you want an explicit hash there that you need the parens ;)
djdb has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
<shevy>
I really seem to need the ()
cha1tanya has joined #ruby
<matled>
workmad3: the problem is that {} binds too strong, i.e. get('/hello/:name' { params[:name] }) does not make much sense
<JonnieCache>
ah well that might be your issue then lol
<JonnieCache>
you aint gonna find bundler if it aint insta..ed
<Y3Klo>
I thought so :P
<JonnieCache>
it should be part of rubygems impo
<Y3Klo>
But then where should I add the $VERBOSE=nil thing?
<JonnieCache>
imo*
<Y3Klo>
JonnieCache: Then it must be installed ._.
jonathanwallace has quit [Ping timeout: 244 seconds]
<Y3Klo>
Let me check
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
twqla has joined #ruby
<JonnieCache>
oh no sorry that was misleading
<JonnieCache>
its not part of rubygems but in my opinion it should be
<Hanmac>
JonnieCache i dont think so ... i dont need Bundler and my gems not need it too
ukwiz has quit [Quit: Leaving]
<Y3Klo>
It isn't I think.
<Y3Klo>
Its a barebones ruby install with heroku gem :P
<Hanmac>
so no bundler = no problem
g0bl1n has quit [Client Quit]
yannis has joined #ruby
<Y3Klo>
But there still printing the warning ._.
b1rkh0ff has joined #ruby
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
gnychis has quit [Quit: leaving]
daniel_hinojosa has joined #ruby
g0bl1n has quit [Remote host closed the connection]
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
<JonnieCache>
you could just ignore it...
g0bl1n has quit [Read error: Connection reset by peer]
lxsameer has quit [Ping timeout: 246 seconds]
bosphorus_ has quit [Remote host closed the connection]
g0bl1n has joined #ruby
g0bl1n has quit [Changing host]
g0bl1n has joined #ruby
<Y3Klo>
Got it!
<Y3Klo>
I understand a bit more how this works... I just use the heroku gem, so I've added the "$VERBOSE = nil" to the heroku gem (/home/<user>/.gem/ruby/<ver>/bin/<gem>)
<Y3Klo>
It doesn't print the warning anymore :D
<Y3Klo>
Thank you guys, see ya ;)
yoklov has quit [Quit: bye!]
test34 has joined #ruby
muse is now known as lae
lae is now known as muse
g0bl1n has quit [Client Quit]
g0bl1n has joined #ruby
Y3Klo has left #ruby [#ruby]
ghanima has joined #ruby
yannis has quit [Ping timeout: 252 seconds]
kil0byte has quit [Remote host closed the connection]
Norrin_ has quit [Read error: Operation timed out]
ryanf has joined #ruby
ipoval has joined #ruby
tomb_ has quit [Quit: Computer has gone to sleep.]
yosinof has joined #ruby
seoaqua has joined #ruby
neil__ has quit [Remote host closed the connection]
cscribble has quit [Quit: cscribble]
AlbireoX`Laptop has joined #ruby
<shevy>
wheeeee
adambeynon has joined #ruby
<shevy>
Y3Klo was helped
Sulaiman has joined #ruby
<shevy>
and the solution was easy too
ipoval has quit [Client Quit]
<shevy>
"install xyz before you wonder why it is not installed"
<shevy>
(lol ...)
kirun has joined #ruby
adambeynon has quit [Remote host closed the connection]
adambeynon has joined #ruby
jrajav has joined #ruby
Solnse has joined #ruby
jayrulez has quit [Remote host closed the connection]
visof has quit [Quit: Leaving]
ramblex has joined #ruby
shadoi has joined #ruby
<Cache_Money>
I have two object arrays (@holes and @user_holes - @holes has 18 objects, @user_holes has anywhere from 0 to 18 objects). I loop through the @holes array to create a table. In each iteration of the loop I want to pull the object from @user_holes (if it exists) using the @hole.id as the criteria http://pastie.org/3984158
<horseman>
Cache_Money: somekind of porno app?
<horseman>
prevert
francisfish has joined #ruby
<JonnieCache>
lol you have a dirty mind if thats what you think first
<Cache_Money>
haha
<Cache_Money>
Golf app
<JonnieCache>
the number 18 should be the clue man. jeez.
friskd has quit [Quit: friskd]
<ramblex>
horseman is sick, ignore him
<JonnieCache>
hahaha
mockillo has quit [Ping timeout: 252 seconds]
<shevy>
Cache_Money that confuses me
mockillo has joined #ruby
<horseman>
shevy: they're all preverts. Oh hey shevy, what's up
<shevy>
Cache_Money, basically you have 18 slots and each slot has two states - empty or filled (with one ball) right?
<shevy>
@hole[18] = :empty
<shevy>
hmm
balazs_ has joined #ruby
<shevy>
if you count from 1 to 18
francisfish has quit [Remote host closed the connection]
<JonnieCache>
might be inefficient though depending on the problem
<JonnieCache>
the existence or not of duplicates etc
<Cache_Money>
shevy: I have two tables in my database - Holes (specific to a course) and UserHoles (specific to the way a User played that hole, on a given day)
<seanstickle>
No users?
itnomad has quit [Quit: Leaving]
<seanstickle>
Seems odd
<shevy>
ewww that name man
<shevy>
UserHoles :D
francisfish has joined #ruby
<JonnieCache>
yeah it aint great no matter how mature you try to be
<seanstickle>
shevy: ha
<Cache_Money>
seanstickle: yes, i have a User Table
kil0byte has joined #ruby
mneorr has quit [Remote host closed the connection]
igotnolegs has joined #ruby
test34 has quit [Ping timeout: 265 seconds]
khakimov has quit [Quit: Computer has gone to sleep.]
Jay_Levitt has quit [Quit: Jay_Levitt]
ZachBeta has quit [Quit: Computer has gone to sleep.]
Monie has joined #ruby
Monie has quit [Changing host]
Monie has joined #ruby
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
<Cache_Money>
basically, here is my current approach http://pastie.org/3984184 but it assumes that the user inputted scores for each hole in consecutive order
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ has joined #ruby
wangr_ has joined #ruby
blacktulip has joined #ruby
wangr has quit [Ping timeout: 248 seconds]
dhaskew has joined #ruby
dhaskew_ has quit [Read error: Connection reset by peer]
<apeiros_>
`@hole =` in a view %-(
cek has joined #ruby
<cek>
I'd like to use fixtures. What's the gem ?
ananthakumaran1 has quit [Quit: Leaving.]
<ramblex>
cek: factory_girl?
<cek>
screw all thoughtbot gems, they're undocumented
<cek>
factory girl requires AR from what I see.
test34 has joined #ruby
test34 has quit [Changing host]
test34 has joined #ruby
hakunin has joined #ruby
<cek>
That is, I've got yamls that contain test data, now i'd like to use them
<cek>
yeah, where's helper gem to use that? with env support and such
Eldariof27-ru has joined #ruby
<apeiros_>
I think you think it was a separate part. but it's part of rails.
<JonnieCache>
the fixtures stuff is built into rails
compara20 has joined #ruby
<cek>
well hardcoding test data right into test files isn't cool
<deryl>
cek, there is also fabrication gem. doesn't *require* AR, will use whatever (including no db) you configure
<deryl>
iirc its fabricationgem.org
brianpWins has joined #ruby
<deryl>
yeah thats it
friskd has joined #ruby
<deryl>
see under rails3 link, g.test_framework :test_unit, :fixture_replacement => :fabrication
<horseman>
apeiros_: can an english-only speaker get by ok for a few months in switzerland, or is it better to learn a bit of swiss german?
<shevy>
lol
<apeiros_>
horseman: quite a lot of swiss people speak english. it's part of our school curriculum
<horseman>
shevy: Und.
<shevy>
apeiros_ horseman is going to visit ya soon
<horseman>
shevy: i'm visiting YOU
<apeiros_>
horseman: afaik, there's a lot of people who even live here and don't speak anything but english
<horseman>
shevy: so roll out that mattress, or put a couple of extra pillows on the bed
<shevy>
horseman the swiss are loving and forgiving, they gladly accept visitors
<horseman>
apeiros_: cool
r4um has quit [Quit: leaving]
Eldariof59-ru has quit [Ping timeout: 260 seconds]
<shevy>
horseman go further to the east and you'll be in your last ghetto man :(
<horseman>
shevy: i'm taking you out clubbing
<shevy>
horseman I told you man, it's dangerous
<horseman>
shevy: im going to help u lose your v-plates
<horseman>
;)
fr0gprince_mac has quit [Ping timeout: 246 seconds]
<shevy>
what is a v plate
<deryl>
virgin plate
yannis has joined #ruby
<cek>
still not getting fabriaction gem. how do I use fixtures there?
<JonnieCache>
as in L plates, which newly qualified drivers put on their cars
<cek>
i don't need to "blueprint" objects, i've got them statically defined. they're unchanging
<shevy>
what is fabriaction
<deryl>
its a factory type gem. creates objects for you
bosphorus has joined #ruby
hoelzro|away is now known as hoelzro
<deryl>
cek, then you either just use fixtures normally, or you fully define the same objects using fabrication's syntax and let it do it for you
<deryl>
really comes down to if you want to use the normal fixture syntax or something different.
mdw has joined #ruby
<cek>
what I need is: fixtures :fdata; ase 4, @fdata[:key1] + @fdata[:key2]
<cek>
so to speak
nilg` has joined #ruby
workmad3 has joined #ruby
digitalcakestudi has quit [Quit: Leaving.]
<cek>
oh, i forgot the rails fixtures syntax now. Yeah, that will do, too.
<hoelzro>
howdy Ruby folk. So I've written up some documentation for my gem (it resides in README.rdoc); is there a way I can view the formatted rdoc on the command line?
schovi has joined #ruby
<hoelzro>
I'm from the Perl world, so I'm used to being able to do things like perldoc ./README.pod
<cek>
somehow rails became the central point of ruby life
<apeiros_>
only if you're blind
<cek>
i wish ruby would be used on smartphones, for ex., or on mars rovers
<savage->
it's unfortunately like that mostly in the US
<deryl>
cek, which gem? fabrication isn't limited to rails
<apeiros_>
cek: learn about ruboto and rubymotion
<cek>
that would definitely prove that the language is capable
<hoelzro>
or for OSes =)
<savage->
most "ruby jobs" involve a significant amount of rails, unfortunately.
<deryl>
just need to require it and use it as normal.
<apeiros_>
cek: but I guess you prefer to just blabber
<horseman>
cek: yeah, ruby has a lot of potential in the mobile dev space
<shevy>
savage- :(
<horseman>
ruboto, rubymotion, mruby are all really interesting and positive developments to be taken seriously
<cek>
deryl, I don't need to create objects from fixtures, I need to use fixture data only.
<shevy>
cek ruby was better before rails
<JonnieCache>
hoelzro: theres an rdoc command line tool. ive barely used it though
<shevy>
but mRuby will change all that
<deryl>
and i think the reason so many gems *are* rails centric and that most people associate ruby with rails is because railos went a long way to bolstering the public face of ruby. whether you agree with how that turned out or not, thats pretty much the way things went.
<hoelzro>
JonnieCache: I thought that just generated the HTML for your rdoc?
<diegoviola>
shevy: what mruby will change?
<deryl>
s/railos/rails/
<horseman>
heftig: i use yard where i used: yard --server
<shevy>
diegoviola that people nowadays use ruby only because of rails
<JonnieCache>
hoelzro: youre probably right
<diegoviola>
yeah i wish people would not associate ruby only to rails... in fact, i don't like rails, i prefer ramaze/sequel.
<horseman>
hoelzro: *
<deryl>
and i got into ruby because of rails, yes, but i spend more time writing non-rails (POR) than I do rails at all. Can't really remember the last time i did anything that was rails based.
<JonnieCache>
ultimately it means its easier to make good money with ruby which is surely good
Sulaiman has quit [Read error: Operation timed out]
<apeiros_>
horseman: `yard --server` equivalent to `yard server -r`?
<JonnieCache>
unless you really hate rails that much i guess. but it that case i think its more that you hate webdev. which is fair enough
<horseman>
apeiros_: not sure, i haven't done it for about a year
<horseman>
JonnieCache: hehe, did you hear the interview with laurent sansonetti re rubymotion?
<JonnieCache>
nope
<horseman>
JonnieCache: he did the website himself, cos he wanted to be able to maintain it, it's his first ever webdev, taught himself css/javascript/html etc. And he concluded from his experience "i'm really glad i'm not a web developer"
univers has quit [Ping timeout: 245 seconds]
<shevy>
JonnieCache well one can use ruby just fine via .cgi
jimeh has joined #ruby
<cek>
webdev is a big piece of crap
<shevy>
just because someone likes ruby but not rails does not mean that one dislikes ruby or webdev
<cek>
mainly because there are no defined standards
<horseman>
JonnieCache: i think he thought it was a clusterfuck :)
<shevy>
cek CSS is nice
<JonnieCache>
yeah frontend webdev does suck. ive managed to stay firmly hidden behind the http deamon in my work, thank god
<shevy>
have you had a look at what GTK uses for styling? the old rcfiles? those things are terrible
<cek>
there are islands of "certainty" and everything else is for the willingness of coder/designer
<cek>
so you've got CSS, HTML, JS, but no standard on interaction between them
<shevy>
I dont like JS at all
<hoelzro>
shevy: I don't think any sane person does =P
<cek>
for ex., in network stuff, you've got OSI and full 4 layers described
jxpx777 has joined #ruby
<JonnieCache>
really all the problems stem from the browsers. the whole model is awful, because it arose by accident
harukomoto has joined #ruby
<shevy>
:)
<shevy>
how many problems we all can find in less than one minute!
<cek>
it all started from fixtures!
<cek>
i hate fixtures now
<offby1>
faucets. I hate faucets.
<shevy>
I dont even know what a fixture is
<JonnieCache>
tbf whining about rails is a perennial topic for this channel
<cek>
ohhh !!! faucets!!
<shevy>
nor have I heard faucets before
<cek>
actually, even faucets have standardized diameter
<cek>
the water network facing interface, that is
sterNiX has joined #ruby
sterNiX has joined #ruby
sterNiX has quit [Changing host]
<JonnieCache>
imo rails is amazing. did you ever make websites before it? it was a nightmare, the choice was between php/perl on one side and java/dotnet on the other
<JonnieCache>
there was even less structure than there is now
cscribble has joined #ruby
<apeiros_>
there was even more freedom than there is now? :-p
<shevy>
I still write .cgi daily and I like it
<shevy>
I just dont use anything from default ruby cgi :P
workmad3 has quit [Ping timeout: 248 seconds]
<deryl>
in general I think Rails rocks. Just I'[m not really interested in writing web apps. I like writing system related stuff. but thats me
<JonnieCache>
if youre writing complex enough webapps you can pretend youre a systems programmer
<diegoviola>
I hate ActiveRecord with a passion
<shevy>
rails took over ruby, we just have to accept it
<apeiros_>
is it just me or is this channel full of crybabies today?
<deryl>
i'm actively trying to replace my dependence on AR with Sequel. Inf act I just sent out a tweet: "writing POR packaged as gems. Looking for tutorials on Sequel beyond their site. Want to replace AR use. Anyone got any?"
flip_digits has joined #ruby
* apeiros_
calls the whaaambulance
<cek>
apeiros_, no, that's because you're fan of backstreet boys
<shevy>
railros_ speaking
<diegoviola>
I'd go back and program with Assembly than have to use ActiveRecord any day of my life.
<deryl>
i don't really like AR itself, but i do like the helpers in ActiveModel, ActiveSupport and stuff.
<apeiros_>
cek: given your backlog, I'm not sure whether you consider that as a compliment or an insult…
<shevy>
I dunno, Assembly seems quite annoying
<deryl>
need to find out if i can use those with sequel or if its directly limited to activerecord. (Haven't investigated that aspect yet)
<shevy>
bundler came from the rails world
<diegoviola>
AR hides too much for my taste
<deryl>
the Active portion of the name makes me think not ;)
<apeiros_>
deryl: IME, #sequel is quite helpful
<diegoviola>
sequel rocks
<cek>
I have no problems using ActiveSupport stuff from Rails. That's because it's decoupled.
<apeiros_>
but you need to hit an active time
<cek>
Which you can't tell about AR
arturaz has joined #ruby
<deryl>
cek so the AM and AS helper methods are usable with other DB backends? (like i said I haven't investigated that aspect yet. That came up only today in my head)
<diegoviola>
merge this channel with #ruby-lang please
Vainoharhainen has joined #ruby
<deryl>
diegoviola, oh enough on that. you know its in the works
<deryl>
quit
<diegoviola>
deryl: really?
<diegoviola>
ok sorry
* apeiros_
will believe it when it actually happens…
<deryl>
youo were here when drbrain explained what was going on and what was required. it was over an hour long discussion with you in the thick of it. don't even play
adeponte has quit [Remote host closed the connection]
davidcelis has quit [Quit: K-Lined]
<diegoviola>
deryl: yeah i know
<diegoviola>
deryl: i thought they didn't care
<JonnieCache>
i always thought they were deliberately separate. i though ruby-lang was for core language devs and ruby was for us lowly users
<deryl>
then quit the bullshit. you know the group membership requirements of freenode are already submitted. he told you that flat out.
<diegoviola>
deryl: quit the bullshit yourself
<deryl>
i'm not the one ragging about the channels being separate, you are
<diegoviola>
deryl: i will say what i want and when i want it
<diegoviola>
deryl: if you don't like it you have /ignore, feel free to use it
<deryl>
good then expect others to do the same
<deryl>
including me. double edged sword man, double edged sword
<diegoviola>
deryl: do whatever the fuck you want, i don't care
<shevy>
this channel has more folks than #ruby-lang
<diegoviola>
deryl: stop talking to me
javon has joined #ruby
<deryl>
waaa
fbernier has joined #ruby
<shevy>
let's disband #ruby-lang
<deryl>
hehehe
<JonnieCache>
apeiros_: when is that ambulance getting here?
<shevy>
but it is indeed quite pointless to speak about it :P
<apeiros_>
JonnieCache: I think it crashed on the way here…
<deryl>
doh! bone box needs a bone box?
<diegoviola>
omg some people
<apeiros_>
bone box… sounds like the name for a gem…
<deryl>
(slang from the states that don't know. ambulances are sometimes called bone boxes)
* offby1
stares blankly
<offby1>
for some value of "sometimes"
<deryl>
like lawyers are ambulance chasers
* apeiros_
blanks off by 1
<shevy>
JonnieCache, dunno about the history... or which channel was there before. but "logically" I would think that the language ruby should have a channel called #ruby because ... we have #perl #smalltalk #python #lua too
<diegoviola>
ok sorry about taht
<diegoviola>
that*
<diegoviola>
...
<JonnieCache>
shevy: i dont give a shit man dont drag me into it lol ;)
<deryl>
JonnieCache, lol political indifference ;)
<JonnieCache>
afaic this channel is good and when MRI segfaults the other channel is good too
<shevy>
hehe
univers has joined #ruby
mnaser_ has joined #ruby
kuranai is now known as kuranai|off
mnaser has quit [Ping timeout: 244 seconds]
dekroning has joined #ruby
azm has quit [Ping timeout: 252 seconds]
<cek>
deryl, I can't understand how to use fabrication to load my fixtures from yaml data file without rails involved
<cek>
What I need is just data loaded from yaml, that's all. But in a nice way, with environments.
<JonnieCache>
surely its trivial to do that yourself
<JonnieCache>
thats a few lines man
<cek>
of course it is. rubygems.org is full of useless gems.
emmanuelux has joined #ruby
francisfish has quit [Remote host closed the connection]
<shevy>
data = YAML.load_file('/foo/bar/yippie.yml')
werdnativ has joined #ruby
<cek>
with erb support.
<shevy>
with environments, that sounds as if the data is somehow merged with something else
<cek>
no, you just use a key corresponding to env name
<msch>
better known as "sad crazy inputs parsing dilemma"
hamfz_ has joined #ruby
* Hanmac
has no const named Timespan ...
<msch>
Hanmac: yes, sorry instances of Timespan. Timespan.pase returns an array of timespan instances
<msch>
I'm now doing .map {}.map{}.try { |zipped_array| Hash[zipped_array] }
<msch>
but it's be nice if there would be zipped_array.to_hash
<Hanmac>
the problem is that winter has 3 Timespan objects in your result
<offby1>
msch: I don't know if this will help, but Array has a handy "group_by" operator that creates a hash
<msch>
Hanmac: yes, since there are three timespans during winter. and 2 during summer. but that's besides the point, what i have is a horribly long line and i need something like $ in haskell :)
<ramblex>
offby1: isn't that a rails thing?
<offby1>
nope
<offby1>
is there a ruby bot in this channel?
jonathanwallace has joined #ruby
<offby1>
try (1..9).group_by {|x| x % 5}
<offby1>
e.g.
bluOxigen has joined #ruby
harukomoto has quit [Ping timeout: 248 seconds]
<dekroning>
anyone know of a (rails) gem that uses the database for persistancy, in which your application (rails) needs to implement some abstract interface to actually write the stuff to database via ActiveRecord or something?
<workmad3>
and then we can fragment the ruby community based on when we want to use {} vs do/end!!!
<Paradox>
from what i can read on stackoverflow, tilt isn't passing any of the markdown options i set to redcarpet
<workmad3>
woo! community fragmentation :)
<Paradox>
particularly, i want code blocks and smartypants
AlbireoX`Laptop has joined #ruby
<apeiros_>
workmad3: there's no fragmentation. there's only those who do it right and those who do it wrong and thusly are expelled from the community - no fragmentation there. see? :D
<workmad3>
apeiros_, heh
<shevy>
workmad3 yeah it is true that there is a lot of choice for style available out there
msaffitz has joined #ruby
<Paradox>
i've already tried using the git head as my gemsource in bundler
<Paradox>
but that doesn't seem to help
<shevy>
workmad3 but I mean, things like documentation too. I find a lot of the documentation really lacking
<workmad3>
shevy, yeah, and it's then amazing that ruby style is pretty consistent :)
<jrajav>
I've got some style guidelines
<jrajav>
1. Make readable code
<jrajav>
2. Make maintainable code
<workmad3>
oh, documentation guidelines... that might make sense
`brendan has quit [Ping timeout: 244 seconds]
<workmad3>
I'm especially bad at documentation...
<shevy>
:)
<shevy>
usually programmers worry about the code first, then comes the documentation
Urthwhyte is now known as Urth|Away
cek has joined #ruby
<apeiros_>
shevy: might be because you can work with undocumented code, but you can't work with unwritten code :)
<shevy>
rubygems has nice docu
<cek>
how do you specify a method in shoulda context and then invoke it from within a test?
jackiechan0 has joined #ruby
<workmad3>
apeiros_, unwritten code contains no bugs though
<shevy>
I am reading through chris2 code and learn from his style :)
<apeiros_>
workmad3: ooooh
<apeiros_>
workmad3: in an effort to get my code 100% bug-free, I'll start deleting all my code
<shevy>
one thing I dont entirely understand, he has a case when structure without anything next to the case ... http://pastie.org/3985013 how does that work?
<shevy>
and man...
<shevy>
what is this:
<shevy>
end + "\t" + @desc
<shevy>
jrajav often, readable code, written by others, just confuses me... like that example
<hoelzro>
shevy: I'm guessing it just works on self?
<shevy>
hoelzro hmm
<cek>
that's easy. the only reason why such code exists is because nobody knows the man's draining company's money down the wastepipe
<apeiros_>
shevy: `(case … end)` is an expression, in that pastie returning a string
bluOxigen has quit [Ping timeout: 252 seconds]
<jrajav>
shevy: In my opinion, readable code means literally reading English… that is, if you can't read the variable names and operators out loud and know what a block of code does by the end, there should be inline comments
<shevy>
apeiros_ interesting
<jrajav>
So in other words document your code
<workmad3>
shevy, I guess the case then just evaluates each when statement until one matches
<apeiros_>
so `(case … end) + "some" + @other_string` just constructs a string from the result of the case/when
jgrevich has quit [Quit: jgrevich]
<cek>
he has erlang link in the document , that explains everything.
ken_barber has quit [Remote host closed the connection]
looopy has quit [Remote host closed the connection]
bglusman has quit [Ping timeout: 246 seconds]
<pk1001100011>
* Use 2 space indent, no tabs.
<pk1001100011>
looool
<pk1001100011>
Use tabs and everyone will set width as he wants…
<shevy>
cek, I like some of the ideas in erlang, imagine if we'd have a very fault-tolerant OOP language, but with nicer syntax. dont like erlang syntax much at all...
yoyoma has joined #ruby
<workmad3>
pk1001100011, tabs are evil, use 2 spaces
<pk1001100011>
workmad3: Why tabs are evil? :| I really don't understand any argumentation why spaces instead of tabs
<cek>
don't use indentation at all.
triptec has joined #ruby
<shevy>
pk1001100011 one problem I had with tabs is when I tried to align tabs + # comments
jenrzzz-mac has quit [Quit: jenrzzz-mac]
<yoyoma>
hi all, ruby noob here. sometimes while playing in irb it gets into a mode where expressions are not evaluated anymore. for example 1+1 returns nothing.. my question is what triggers it(haven't noticed myself) and more importantly how do I go out of this mode ?
<apeiros_>
pk1001100011: same opinion as you. but I think it's better to adapt to the convention.
Norrin_ has quit [Ping timeout: 244 seconds]
stewart_ has joined #ruby
stewart_ has left #ruby [#ruby]
<cek>
yoyoma, got out by end
<cek>
*get
<shevy>
yoyoma, could be a few things, but usually it is when I forgot to close something
<offby1>
yoyoma: my hunch is that you've got an open quote with no close quote
<shevy>
def foo(input
<yoyoma>
shevy: hmm didn't help
fukushima has joined #ruby
<shevy>
)
<offby1>
shevy: jinx
<shevy>
:)
<shevy>
yoyoma, ok but there must be some pattern. when you start irb, and then type 5+5, does not work?
<offby1>
be nice if the prompt displayed what it's waiting for -- a close quote, close paren, whatever
akhkharu has quit [Ping timeout: 260 seconds]
<cek>
yoyoma, "end" will help
<shevy>
yoyoma, have you tried to hit "Ctr+c"?
td123 has quit [Quit: WeeChat 0.3.7]
<yoyoma>
i tried ' and it helped this time(sometimes it doesn't, it got me real frustrated today as i've been working with irb today for few hours).
<workmad3>
pk1001100011, for basic indentation, the 'tabs are adjustable' is indeed a good argument... when I hit the point where I need to split a hash param list across lines and align in sanely, tabs can make it look awesome on my machine but terrible on a machine with tabs set to 4 instead of 2
<yoyoma>
so for next time i will try ' then end and then ctrl+c i guess
<apeiros_>
shevy: there's a couple of things I don't agree with
offby1 has quit [Quit: leaving]
<apeiros_>
workmad3: there's a difference between indent and align
<apeiros_>
and using tabs for align is silly indeed
<jrajav>
What's the point of 'then' anyway? :P
b1rkh0ff has quit [Ping timeout: 246 seconds]
<apeiros_>
I find it easier to read. flows better.
<jrajav>
Makes sense
<shevy>
yeah I can understand that
<Mon_Ouie>
I found it more readable in a long series of "when … then …", all in one line
<apeiros_>
there anyway
<Mon_Ouie>
The code I was reading was using ";" instead, but it was like "when a, b, c; d", making it harder to notice the d
binaryplease has joined #ruby
looopy has joined #ruby
dax has left #ruby [#ruby]
scb has joined #ruby
<yoyoma>
another noob question. how would you rewrite this https://gist.github.com/2821328 , the part that i hate is installs[$1] = [] #init array
scb has quit [Read error: Connection reset by peer]
hoelzro is now known as hoelzro|away
Paradox has left #ruby [#ruby]
icooba has quit [Quit: icooba]
wangr_ has quit [Ping timeout: 245 seconds]
<wmoxam>
yoyoma: installs[$1] ||= []
<wmoxam>
yoyoma: then you can get rid of the if clause
Urth|Away is now known as Urthwhyte
morrison^ has joined #ruby
<yoyoma>
wmoxam: thanks, i knew there is a better way to do it :)
morrison^ has left #ruby [#ruby]
<shevy>
hmm Hanmac ... could mRuby actually be used to write a real functional replacement for bash in ruby? and ideally in a static compiled way... hmm
schovi has quit [Remote host closed the connection]
becom33 has joined #ruby
<yoyoma>
wmoxam: yep, looks better. refactoring, thanks for the tip
<becom33>
https://gist.github.com/2821356 why can't i get in to correct x and y's ? and please don't about tabs i know its messed up
savage- has quit [Remote host closed the connection]
mickn has joined #ruby
<kenneth>
becom33: vim :retag will take care of that in no times
<kenneth>
:retab *
<becom33>
nvm I got it :) thanks kenneth
Monie has quit [Ping timeout: 260 seconds]
b1rkh0ff has joined #ruby
tomb_ has joined #ruby
gmci has joined #ruby
wmoxam has quit [Quit: leaving]
RegEchse has quit [Quit: <3 WeeChat (v0.3.8-rc2)]
<shevy>
becom33!
<shevy>
my brother!
shadoi has quit [Remote host closed the connection]
<becom33>
shevy, I found
<becom33>
please dont say it
samsonjs has quit [Quit: samsonjs]
<shevy>
I didnt look at the URL yet
shadoi has joined #ruby
<shevy>
I am just happy to see you on #ruby
<becom33>
aww
<becom33>
cool :)
<becom33>
shevy, ma brother from a another mother :D
<shevy>
lol
elux has quit [Quit: Bye!]
mdw_ has quit [Remote host closed the connection]
yoyoma has quit []
MasterIdler_ has joined #ruby
looopy has quit [Remote host closed the connection]
robdodson has joined #ruby
gift has quit [Remote host closed the connection]
gift has joined #ruby
MasterIdler has quit [Ping timeout: 246 seconds]
cantonic_ has joined #ruby
MasterIdler_ has quit [Ping timeout: 244 seconds]
looopy has joined #ruby
seanstickle has joined #ruby
cantonic has quit [Read error: Connection reset by peer]
cantonic_ is now known as cantonic
cek has quit [Quit: thanks]
zastaph has quit []
kevinbond has joined #ruby
robdodson has quit [Quit: robdodson]
cousine has quit [Remote host closed the connection]
bglusman has joined #ruby
harukomoto has quit [Ping timeout: 252 seconds]
bglusman_ has joined #ruby
polysics has quit [Remote host closed the connection]
bglusman has quit [Ping timeout: 245 seconds]
berserkr has quit [Quit: Leaving.]
azm has quit [Ping timeout: 248 seconds]
becom33 has quit [Ping timeout: 240 seconds]
berserkr has joined #ruby
harukomoto has joined #ruby
krusty_ar_ has quit [Remote host closed the connection]
tewecske has quit [Quit: Leaving.]
counterbeing has joined #ruby
wallerdev has quit [Quit: wallerdev]
wallerdev has joined #ruby
ukwiz has joined #ruby
cousine has joined #ruby
looopy has quit [Remote host closed the connection]
Jake232 has quit [Quit: Computer has gone to sleep.]
ukwiz has quit [Client Quit]
lorandi has quit [Quit: Leaving]
ukwiz has joined #ruby
ryanf has quit [Quit: leaving]
[Neurotic] has joined #ruby
Retistic has joined #ruby
becom33 has joined #ruby
looopy has joined #ruby
Guest28433 has joined #ruby
g0bl1n has joined #ruby
Foxandxss has joined #ruby
kirun has quit [Quit: Client exiting]
Guest28433 has quit [Ping timeout: 248 seconds]
amacgregor_osx has joined #ruby
hamfz_ has quit [Ping timeout: 246 seconds]
jimeh has joined #ruby
Haydos has joined #ruby
mlue has quit [Changing host]
mlue has joined #ruby
g0bl1n has quit [Quit: Leaving]
mxweas_ has joined #ruby
Cicloid has quit [Remote host closed the connection]
williamcotton_ has joined #ruby
niklasb has quit [Quit: WeeChat 0.3.7]
berserkr has quit [Quit: Leaving.]
maletor has joined #ruby
williamcotton has quit [Ping timeout: 245 seconds]
williamcotton_ is now known as williamcotton
ryanf has joined #ruby
kevinbond has quit [Quit: kevinbond]
BrokenCog has quit [Quit: leaving]
* becom33
I mistakly replaced /usr/bin/ruby file with a another file
<becom33>
how can I reinstall whole ruby package
piotr__ has quit [Ping timeout: 246 seconds]
<shevy>
becom33 lol
<becom33>
shevy, please help
<shevy>
ok but let me finish laughing first
<shevy>
becom33, usually the way is to uninstall a package via your package manager
<becom33>
i tried apt-get remove ruby
<shevy>
and did that work?
<becom33>
sudo apt-get purge ruby
<becom33>
sudo apt-get install ruby
<becom33>
well no
<shevy>
why did it not work
<shevy>
or rather, did the uninstall work?
<shevy>
without errors
<becom33>
The program 'ruby' can be found in the following packages:
<becom33>
* ruby1.8
<becom33>
* ruby1.9.1
<becom33>
what sould I choose?
<shevy>
whatever was your earlier version
<shevy>
dunno what you used
<becom33>
1.8.* somthing
<shevy>
k then go with 1.8 again
<becom33>
nop doesnt work . it says already installed
<shevy>
ok wait
<shevy>
try to purge it first
GeekOnCoffee has joined #ruby
<becom33>
nop doesnt work
dkissell has quit [Read error: Connection reset by peer]
<shevy>
also try
<shevy>
dpkg -r ruby
dkissell has joined #ruby
<shevy>
becom33, debian keeps track of the installed packages in some file/database
<becom33>
dpkg: warning: there's no installed package matching ruby
nfk has quit [Quit: yawn]
<shevy>
yeah debian sucks donkeyass
<shevy>
so ...
<becom33>
but for sudo dpkg -r ruby1.8
<becom33>
i got a result
<shevy>
it tells you that it can not uninstall ruby
<shevy>
because you do not have it installed
<shevy>
but ...
<shevy>
apt-get tells you it can not install ruby
<shevy>
because you already have it installed
<shevy>
wtf?
<shevy>
well ok
<shevy>
perhaps the name is ruby1.8
<becom33>
yea thats what I tought
<shevy>
anyway, just remove all of ruby, then install it again
<becom33>
working again :)
<becom33>
i had to remove ruby1.8
<shevy>
good!
<becom33>
shevy, is there any IDE for tk design ?
apeiros_ has quit [Remote host closed the connection]
uris has quit [Quit: leaving]
<seanstickle>
The best IDE for tk design is a knife in the eye
<seanstickle>
Because then, at least, the result will not look so bad
mickn has quit [Remote host closed the connection]
<shevy>
becom33 dont think so. if you keep it simple, you should not need one. it's mostly just chaining together a few widgets
<shevy>
becom33 I also never learned ruby-tk really. it always looked like shit. i went straight to ruby-gtk afterwards
pk1001100011 has quit [Read error: Connection reset by peer]
<seanstickle>
If you need a GUI, write it in HTML/JavaScript
<becom33>
shevy, is there a deffence in coding inbetween tk and gtk ?
<seanstickle>
Dispense with the GUI toolkits
fserb has quit [Quit: ttyl]
<becom33>
seanstickle, example please ?
<seanstickle>
becom33: ? An example of HTML?
<shevy>
becom33 no idea. I cant stand tk so I cant give you a good answer :) just try the "hello world" example and see whether you like that or not
<becom33>
seanstickle, no how can I call html with toolkits the way you said before
pk1001100011 has joined #ruby
<seanstickle>
becom33: I said dispense with them, and just write local apps that serve up HTML
<seanstickle>
It's just like writing a web app, except it runs on the local machine
<shevy>
becom33, here is hello world in ruby-gtk http://pastie.org/3985494 (and a few extra things, which you can ignore)
ukwiz has quit [Quit: Leaving]
<becom33>
seanstickle, umm but can I call ruby method trought html ?
<seanstickle>
becom33: yes
Vainoharhainen has quit [Quit: Leaving...]
<seanstickle>
becom33: that how web applications work
brianpWins has quit [Quit: brianpWins]
digitalcakestudi has quit [Quit: Leaving.]
<becom33>
seanstickle, I know about web apps . I'm a php develeoper . but what your saying in ruby Its kinda confusing me
<shevy>
hehe
<seanstickle>
becom33: you develop web apps in php, right?
<becom33>
yes
<seanstickle>
So you know how you can run php locally on your machine, right? And interact with databases and the file system and whatnot with php through a web browser, right?
eph3meral has joined #ruby
<becom33>
shevy, is this the correct way to install gtk ? "sudo apt-get install ruby-gnome2 ruby"
<becom33>
seanstickle, but it requres a web service
<seanstickle>
becom33: yes, that's right
<seanstickle>
becom33: there are several web servers in ruby that you can include in your app
<eph3meral>
becom33, no that's wrong, you want to sudo apt-get install qtruby :P
roams has quit [Ping timeout: 244 seconds]
<becom33>
eph3meral, I hope thats not sarcasm
<becom33>
seanstickle, hmm
<shevy>
becom33 I dont know. debian is a shit distribution, I am sure they will provide its users a way to install all of ruby-gtk, and if not, then it is really their fault, not anyone else
td123 has joined #ruby
<shevy>
becom33 I compiled all of the gtk/atk/glib/pango from source, then installed ruby-gnome from source. most things work (gtksourceview does not work though)
<eph3meral>
becom33, actually it's not... because Qt > GTK+
blacktulip has quit [Remote host closed the connection]
<seanstickle>
Well, that is one thing that does not look nice
<seanstickle>
You win!
<shevy>
becom33, if you ever decide to use qtruby, they have a channel here on freenode, #qtruby. the main developer is there too, rdale, he can often help
<seanstickle>
But do yourself a favor and write HTML apps
fserb has joined #ruby
kevinbond has joined #ruby
kevinbond has quit [Client Quit]
liluo has joined #ruby
<eph3meral>
becom33, hehe, yeah it probably won't be in your repo, or rather, a version that you'll actually want won't be in the repos
<eph3meral>
becom33, it's really easy to compile tho
<eph3meral>
becom33, and actually, technically, if you don't mind using the built in ruby from the repos, you can sudo apt-get install qt4-ruby
kevinbond has joined #ruby
bengl has joined #ruby
emmanuelux has quit [Ping timeout: 264 seconds]
ryanf_ has joined #ruby
ryanf has quit [Ping timeout: 265 seconds]
<shevy>
man
<shevy>
they use a distribution and still have to do cmake, make, make install?
<shevy>
becom33, you are really wasting way too much time being unable to decide. just pick any toolkit and learn it really. they are 80% the same, once you understand one, you understand them all
<seanstickle>
Pick HTML
<seanstickle>
Save yourself the heartache and wasted time
rmascarenhas has joined #ruby
<seanstickle>
Plus, you get bonus points as you'll be able to write Internet applications with your HTML skills.
ryanf_ has quit [Ping timeout: 244 seconds]
<eph3meral>
seanstickle you mean instead of Qt?
ryanf has joined #ruby
<shevy>
he really likes html
<eph3meral>
cuz esp with HTML5, CSS3, and what you can do with JS, I agree with that
<shevy>
what!
<shevy>
you guys are recommending another language? :(
emmanuelux has joined #ruby
Vainoharhainen has joined #ruby
<shevy>
js is killing ruby ...
<eph3meral>
seanstickle, actually though, Qt looks just fine, it actually looks native, regardless of your OS
<eph3meral>
tcl/tk, now THAT stuff looks like hell
maletor has quit [Quit: Computer has gone to sleep.]
<seanstickle>
eph3meral: really?
becom33 has quit [Quit: Leaving]
<seanstickle>
eph3meral: if I can distribute RubyQt apps easily to different platforms, it might be worth it
<eph3meral>
seanstickle, yep, Qt looks native regardless of OS
<eph3meral>
seanstickle, yeah, well that's where it ends, cuz it's a total PITA to get qtruby installed on OSX
<eph3meral>
i haven't tried on windows, but I hear it's easy enough on windows because there are binaries
<eph3meral>
seanstickle, although I also hear it's easy enough on OSX, it's just that, when I tried to install it on OSX, the dude I was playing with his computer, he had installed macports and then installed homebrew and sort of half erased macports but not really
<eph3meral>
so shit was messed up
<UNIXgod>
homebrew and macports install in different prefixes. It wasn't default then.
<seanstickle>
Uck
<seanstickle>
I installed the PyQT bindings on my machine yesterday
<seanstickle>
It was … iffy.
<eph3meral>
UNIXgod, meh, whatever, i don't know what it was, it wasn't working, that's all I know
<seanstickle>
Honestly, if I'm developing for Mac, I might just as well use MacRuby
<seanstickle>
And make Cocoa apps
<eph3meral>
seanstickle, looks like, basically, on OSX, all you have to do is properly symlink the folders to the place that qt expects them instead of being named .framework
Vainoharhainen has quit [Quit: Leaving...]
<eph3meral>
seanstickle, yeah, i mean if you don't care about other OSes, like if it's an internal app or whatever, sure, go for macruby
kevinbond has quit [Quit: kevinbond]
<eph3meral>
seanstickle, i'd love to know if you ever do get qtruby working on OSX, because just knowing that you've done it would be a major boon for me
fserb has quit [Quit: ttyl]
<eph3meral>
anyway, i love qtruby, personally
<seanstickle>
eph3meral: ok, I'll try it today
<eph3meral>
also, if I was going to do cocoa dev, I would just use Objective-C
<UNIXgod>
seanstickle: That sounds sane. But can't you separate the core of the app and create a API to be tied into any presentation layer (i.e. android, web, qt/gtk/wx)
<seanstickle>
eph3meral: I installed Qt from a binary package, not Macports
<seanstickle>
eph3meral: I just have to figure out the Ruby bindings to that
kylemcgill has quit [Remote host closed the connection]
<seanstickle>
UNIXgod: I could, but I am a mere mortal
<seanstickle>
UNIXgod: not a god like yourself
<eph3meral>
seanstickle, yeah, the homebrew package is binary as well afaik
<eph3meral>
it's required for using the webkit driver with capybara
<seanstickle>
I don't use homebrew, so I can't say
<eph3meral>
if you have a binary gem installed from macports, that qtbindings thing should get you up and running with qtruby, supposedly
<UNIXgod>
seanstickle: It's just wrappers which the presentation layer can control via events or behaviors.
<seanstickle>
eph3meral: ok, installing
<seanstickle>
UNIXgod: yes I know
jgrevich has joined #ruby
<seanstickle>
UNIXgod: the reference to godhood was facetious
<seanstickle>
eph3meral: qtbindings seems to be a windows gem
<eph3meral>
seanstickle, I would imagine you'd just look in the macports install for qt and make sure that the folder paths are the same as that issue, where you may have to link /usr/local/macports/qt/Foo.framework to /usr/local/macports/qt/lib/Foo