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]
Foxandxss has quit [Quit: KVIrc 4.0.4 Insomnia http://www.kvirc.net/]
ZachBeta has joined #ruby
ZachBeta has quit [Client Quit]
univers has joined #ruby
khakimov has joined #ruby
roadze has quit [Remote host closed the connection]
dross_ has joined #ruby
myndzi has quit [Read error: Connection reset by peer]
mneorr has quit [Read error: Connection reset by peer]
mneorr has joined #ruby
myndzi has joined #ruby
jgrevich has quit [Quit: jgrevich]
noyb has quit [Ping timeout: 252 seconds]
AlbireoX`Laptop has quit [Ping timeout: 250 seconds]
dross has quit [Ping timeout: 260 seconds]
robdodson has quit [Quit: robdodson]
ParadoxQuine has quit [Quit: ParadoxQuine]
bosphorus has quit [Read error: Connection reset by peer]
<krz> when creating a new hash. is there a better way of doing foo = {:foo => 'foo', :hours => { 0 => 0, 1 => 0, 2 => 0 ….. all the way up to 24 }}
jenrzzz-mac has quit [Quit: jenrzzz-mac]
<krz> 23 sorry
<krz> or do i have to manually type this in?
azm has quit [Ping timeout: 256 seconds]
<seanstickle> krz: Hash[(0..24).map{|x| [x,x]}]
<seanstickle> krz: there you go
<myndzi> this guy defines some accessors but doesn't initialize them; what is their value, and what happens when you do math on them?
manizzle has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 252 seconds]
liluo has quit [Remote host closed the connection]
ZachBeta has joined #ruby
AlbireoX`Laptop has joined #ruby
b1rkh0ff has quit [Ping timeout: 246 seconds]
<Boohbah> myndzi: nil?
ZachBeta has quit [Quit: Computer has gone to sleep.]
juo100_ has joined #ruby
emet has joined #ruby
juo100 has quit [Ping timeout: 260 seconds]
juo100_ is now known as juo100
ZachBeta has joined #ruby
<myndzi> i guessed so, found my error :)
<myndzi> i have what i think is one bug left, but i can't understand this block of code (possibly because of zip and block)
<myndzi> it only gets called in one place, and it isn't assigned
<myndzi> but it appears to return a value
Urth|Away is now known as Urthwhyte
<myndzi> any idea what's going on?
<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
mxweas_ has joined #ruby
<myndzi> haa, nm i got it :D
<myndzi> the map command threw me off the trail of returning the result, derp
roadze has joined #ruby
lamba has quit [Read error: No route to host]
pspace has joined #ruby
mxweas_ has quit [Quit: Computer has gone to sleep.]
ipoval has joined #ruby
ZachBeta has quit [Quit: Computer has gone to sleep.]
BrianE has quit [Quit: Leaving...]
gmci has joined #ruby
Solnse has joined #ruby
tcopp has quit [Ping timeout: 252 seconds]
mikeycgto has quit [Ping timeout: 246 seconds]
tcopp has joined #ruby
hayon has joined #ruby
test34 has joined #ruby
test34 has quit [Changing host]
test34 has joined #ruby
Calm has joined #ruby
<Calm> Alright I've decided to learn Ruby instead of perl
<Calm> What is the "Camel" book of Ruby?
qos has quit [Quit: Linkinus - http://linkinus.com]
sbanwart has joined #ruby
Hanmac1 has joined #ruby
<ciopte7> Calm: Do you want a list of books about learning ruby?
<Calm> Yeah, but I was hoping for a "de-facto" book I guess.
<ciopte7> My suggestions would be Beginning Ruby by Peter Cooper, or the Well Grounded Rubyist, or Programming Ruby (aka Pickaxe)
Hanmac has quit [Read error: Operation timed out]
looopy has joined #ruby
serroba has quit [Quit: This computer has gone to sleep]
ZachBeta has joined #ruby
<ciopte7> If you are looking for something more interactive: http://tryruby.org/levels/1/challenges/0
frishi has quit [Quit: Leaving...]
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?
<horseman> chaotic_good: you're*
CheeToS has joined #ruby
<horseman> chaotic_good: watch this you dyslexic fuck http://www.youtube.com/watch?v=32p8d6OudgU
<bnagy> greetings, humans
td123 has quit [Ping timeout: 245 seconds]
tomku has quit [Quit: WeeChat 0.3.7]
tomb_ has joined #ruby
ghosTM55 has joined #ruby
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
akem has quit [Read error: Connection reset by peer]
<bambanx> bnagy, hi
ghosTM55 has quit [Client Quit]
kellyehret has joined #ruby
imami|afk is now known as banseljaj
ghosTM55 has joined #ruby
dross_ is now known as dross
td123 has joined #ruby
ghosTM55 has quit [Client Quit]
ghosTM55 has joined #ruby
kellyehret has left #ruby [#ruby]
c0rn has quit [Ping timeout: 244 seconds]
ioutfitter has joined #ruby
c0rn has joined #ruby
ghosTM55 has quit [Quit: leaving]
ghosTM55 has joined #ruby
andrewhl has joined #ruby
akem has joined #ruby
ioutfitter has quit [Remote host closed the connection]
akem has quit [Read error: Connection reset by peer]
td123 has quit [Read error: Connection reset by peer]
maletor has quit [Quit: Computer has gone to sleep.]
redchip has joined #ruby
amolpujari has quit [Read error: Connection reset by peer]
td123 has joined #ruby
Solnse has joined #ruby
baroquebobcat has joined #ruby
ghosTM55 has quit [Quit: leaving]
akem has joined #ruby
fbernier has quit [Ping timeout: 246 seconds]
thecreators has quit [Quit: thecreators]
Fezzler has joined #ruby
Fezzler has quit [Client Quit]
dbgster has quit [Quit: dbgster]
tomku has joined #ruby
azm has quit [Ping timeout: 256 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
choffstein has joined #ruby
liluo has quit [Ping timeout: 244 seconds]
itnomad has quit [Read error: Connection reset by peer]
itnomad has joined #ruby
akem has quit [Read error: Connection reset by peer]
td123 has quit [Read error: Connection reset by peer]
hayon has quit [Quit: hayon]
emmanuelux has quit [Quit: @+]
redchip has quit [Quit: redchip]
akem has joined #ruby
sam113101 has quit [Quit: Leaving.]
benatwork has quit [Remote host closed the connection]
mattonrails has joined #ruby
bambanx_ has joined #ruby
mattonrails has quit [Remote host closed the connection]
bambanx has quit [Ping timeout: 250 seconds]
dhruvasagar has quit [Ping timeout: 260 seconds]
deobald__ has joined #ruby
akem has quit [Read error: Connection reset by peer]
sam113101 has joined #ruby
rippa has joined #ruby
looopy has quit [Remote host closed the connection]
td123 has joined #ruby
itnomad has quit [Quit: Leaving]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
<pradeepto> Is there a way to get/store the return value of methods in a file which has been read using "load file_in_question" ?
<bnagy> 1. normally you'd use require, or require_relative not load
<bnagy> 2. I don't understand the rest of the question :) it sounds like just res=Foo.method
sam113101 has quit [Remote host closed the connection]
ZachBeta has joined #ruby
<pradeepto> bnagy: let me try to explain
<pradeepto> so I have written this small dsl which basically reads a file ( this is the file, I try to load )
sam113101 has joined #ruby
<pradeepto> the dsl is interpreted as it should be by methods that are defined, and I can see it is correctly read and interpreted.
Solnse has quit [Quit: Leaving.]
<pradeepto> but what I want to do is, once this file is read, I want to store the values those dsl methods returned.
bambanx has joined #ruby
noodletraveler has quit [Quit: Lost terminal]
<pradeepto> when I do a load/require 'dsl_file', all it would do is load up the file and run through it.
bambanx_ has quit [Ping timeout: 260 seconds]
<pradeepto> load/require would return true or false, right?
<pradeepto> how do I get the values that were computed by the dsl itself.
<bnagy> pradeepto: sorry, you're not making any sense to me, too much jargon
<bnagy> can you paste some code?
mohits has joined #ruby
<bnagy> pastie / gist
<pradeepto> yes, I should do that.
<pradeepto> give me few moments
akem has joined #ruby
rohit has joined #ruby
yannis has quit [Quit: Bye!]
td123 has quit [Quit: WeeChat 0.3.7]
bambanx has quit [Read error: Connection reset by peer]
uris has quit [Quit: leaving]
deobald__ has quit [Ping timeout: 260 seconds]
bambanx has joined #ruby
areil has joined #ruby
Mon_Ouie has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby
amalvagomes has quit [Quit: amalvagomes]
<pradeepto> bnagy: http://pastie.org/3980667
ibash has quit [Quit: ibash]
<bnagy> ok
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]
<Retistic> bnagy: im not defining the function
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
<bnagy> make sense?
<Retistic> bnagy: perfect sense thanks
<Retistic> thats exactly what i wanted
cirwim has joined #ruby
tomzx has quit [Ping timeout: 246 seconds]
imami|afk is now known as banseljaj
tomb_ has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
akem has joined #ruby
bosphorus has joined #ruby
vectorshelve has joined #ruby
ananthakumaran has joined #ruby
AlbireoX`Laptop has joined #ruby
akem has quit [Read error: Connection reset by peer]
williamcotton has quit [Quit: williamcotton]
bradsocks has quit [Ping timeout: 244 seconds]
iocor has joined #ruby
dayanand has left #ruby [#ruby]
gokul has joined #ruby
schovi has joined #ruby
otters has left #ruby [#ruby]
otters has joined #ruby
pabloh has quit [Ping timeout: 246 seconds]
akem has joined #ruby
eddie has joined #ruby
eddie is now known as Guest36229
billiamii has quit [Ping timeout: 246 seconds]
djdb has joined #ruby
akem has quit [Read error: Connection reset by peer]
zeromodulus has quit [Remote host closed the connection]
t0mmyvyo has quit [Quit: http://twitter.com/tommyvyo]
twock_ has quit [Quit: Lost terminal]
KL-7 has joined #ruby
CheeToS has joined #ruby
schovi has quit [Remote host closed the connection]
KL-7 has quit [Client Quit]
<krz> ActivityFeed.collection.group(['visits.country_name'], nil, {'sum' => 0}, "function(doc, prev) { prev.sum += 1}")
<krz> Collection#group no longer take a list of parameters. This usage is deprecated and will be remove in v2.0.Check out the new API at http://api.mongodb.org/ruby/current/Mongo/Collection.html#group-instance_method
mdw has quit [Remote host closed the connection]
LBRapid has quit [Quit: Computer has gone to sleep.]
<krz> so i go to the link and it looks like: group(opts, condition = {}, initial = {}, reduce = nil, finalize = nil)
<krz> so what exactly am i doing differently?
yannis has quit [Quit: yannis]
bluOxigen has joined #ruby
mohits has joined #ruby
akem has joined #ruby
akem has quit [Read error: Connection reset by peer]
MissionCritical has quit [Ping timeout: 260 seconds]
Guedes_out has quit [Excess Flood]
Guedes_out has joined #ruby
Vert has quit [Remote host closed the connection]
clockwize has joined #ruby
<bnagy> krz: try giving it just a hash
<krz> bnagy: like how?
<krz> hash for the first param?
<bnagy> group initial: somethinghere, reduce: somethingelsehere
cirwim has left #ruby [#ruby]
clockwize has quit [Client Quit]
<bnagy> wow, javascript functions? eww :)
akem has joined #ruby
KL-7 has joined #ruby
KL-7 has quit [Remote host closed the connection]
prtksxna has joined #ruby
wallerdev has quit [Quit: wallerdev]
<krz> bnagy: you mean like this: http://pastie.org/3981134
<krz> bnagy: works with: http://pastie.org/3981137 :-D
<bnagy> what's that first thing? should it be key: ?
<bnagy> and you shouldn't need to explicityly set anything to nil, just don't pass that key to the method
<krz> yea i think it should be key
<krz> bnagy: you've worked with mongodb before?
<bnagy> krz: no, never
schovi has joined #ruby
akem has quit [Read error: Connection reset by peer]
jenrzzz-mac has quit [Quit: Watching Star Wars triology]
jenrzzz-mac has joined #ruby
bosphorus_ has joined #ruby
ciopte7 has quit [Quit: ciopte7]
ChampS666 has joined #ruby
ciopte7 has joined #ruby
bosphorus has quit [Ping timeout: 246 seconds]
nirakara has joined #ruby
akem has joined #ruby
akem has quit [Read error: Connection reset by peer]
zeromodulus has joined #ruby
piotr_ has joined #ruby
gtuckerkellogg has joined #ruby
pdtpatr1ck has quit [Quit: pdtpatr1ck]
hemanth has quit [Ping timeout: 245 seconds]
polysics has joined #ruby
akem has joined #ruby
hemanth has joined #ruby
kil0byte has joined #ruby
akem has quit [Read error: Connection reset by peer]
yankov has quit [Quit: yankov]
ilyam has joined #ruby
ilyam has quit [Remote host closed the connection]
Hanmac1 is now known as Hanmac
mneorr has quit [Remote host closed the connection]
mneorr has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
rushed has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
iocor has quit [Quit: Computer has gone to sleep.]
akem has joined #ruby
asdfqwer has joined #ruby
MissionCritical has joined #ruby
rushed has quit [Client Quit]
rushed has joined #ruby
fgwaegeawgfwa has left #ruby [#ruby]
<asdfqwer> i can't find %w in ruby core docs
<asdfqwer> i know what it does
<asdfqwer> but it's details are elusive to me
<asdfqwer> is it just a format specifier?
<asdfqwer> the w
<rippa> it's a literal
<rippa> for an array
<rippa> like []
<asdfqwer> but it works for any enumerable object
<asdfqwer> oh never mind you write
<asdfqwer> right*
moshef has joined #ruby
akem has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
neil__ has joined #ruby
<moshef> hi, any nice way to check if some string is present in all hash keys?
hemanth has joined #ruby
Cicloid has joined #ruby
kil0byte_ has joined #ruby
<Hanmac> moshef: hash.each_key.with_object(string).all?(&:include?)
<moshef> with_object works for ruby 1.8.7?
<Hanmac> try it
<moshef> i have, undefined method `with_object' for #<Enumerable::Enumerator:0x1123a3a50
<Hanmac> then use each_with_object
kil0byte has quit [Ping timeout: 252 seconds]
Norrin_ has quit [Ping timeout: 252 seconds]
<moshef> hmm
<moshef> I'm passing it a string and getting NoMethodError: undefined method `call' for nil:NilClass
<moshef> can I use inject ?
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<Hanmac> string = "abc";hash.each_key.all?(|k|k.include?(string))
Norrin_ has joined #ruby
<bnagy> [1,2,3].each.with_object(2).map(&:*) wow I didn't know about that
<bnagy> I'm not sure if it's horrible or not
ukwiz has joined #ruby
<moshef> just {} instead of () :)
friskd has quit [Ping timeout: 244 seconds]
akem has joined #ruby
icooba has joined #ruby
<Hanmac> moshef yeah you are right
<moshef> bnagy: why would it be horrible?
<moshef> Hanmac: thanks a lot dude
<bnagy> moshef: it's a not-very-readable way of writing that
<Hanmac> bnagy its only a tool, its not good or bad (except eval)
akem has quit [Read error: Connection reset by peer]
hemanth has quit [Read error: Connection reset by peer]
ryanf has quit [Quit: leaving]
<bnagy> I would prefer [1,2,3].map(&:*, 2)
tomb_ has joined #ruby
noyb has joined #ruby
<Mon_Ouie> Actually I thought it was kind of pretty
<Hanmac> bnagy: ... i would prefer your version too, but the & must be at last so: [1,2,3].map(2,&:*) could be more possible
<Mon_Ouie> Though I'd most likely write it like each_key.all? { … }
francisfish has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
<bnagy> I think it's going to be a huh? moment for most maintainers
<Hanmac> Mon_Ouie: i thought that the with_object and &:include? would take less ram then the other
<horseman> Mon_Ouie: did you see ampex? cirwin had this: [1, 2, 3].map(&X * 2)
<bnagy> cause you only create the string once?
<horseman> bnagy: naggy
jenrzzz-mac has quit [Quit: jenrzzz-mac]
moshef has quit [Quit: moshef]
<Hanmac> yeah, and without an {} block with holds the binding
<bnagy> the one horseman off the offtopiclypse
<bnagy> *of
<horseman> heh heh
<horseman> bnagy: i've already clocked ruby, there'snothing more to say about it ;)
<horseman> brb
zz_chrismcg is now known as chrismcg
dhaskew_ has joined #ruby
dhaskew_ is now known as dhaskew
dhaskew has quit [Read error: Connection reset by peer]
gilead has joined #ruby
<bnagy> will hsh.keys.all? {|k| ever run lazily, or is it always best to use hsh.each_key.all? ?
akem has joined #ruby
dhaskew has joined #ruby
<Mon_Ouie> keys will need to create an array of keys, so it will iterate over the whole hash
jimeh has joined #ruby
Shahor has quit [Read error: Connection reset by peer]
<bnagy> ok, the interpreter can't work out that they're just going to be yielded to a block anyway
<bnagy> that's an antipattern I should probably keep an eye out for...never really thought about it
<Hanmac> bnagy thats why i thought each_key is better because it does not create an big array
<asdfqwer> are Regexp anchors a ruby thing only?
<asdfqwer> I've never seen them before
<Mon_Ouie> Well, maybe some implementation could guess that — but I'm pretty sure YARV won't
moshef has joined #ruby
<bnagy> asdfqwer: do we mean the same thing by anchors? /^foo$/ ^ and $ are anchors
<bnagy> in my lexicon anyway
<asdfqwer> i mean \A and \Z
<asdfqwer> of course ^ and $
yonggu_ has quit [Remote host closed the connection]
<bnagy> ok then yeah, they're one of the key principles behind regexps that don't suck
<bnagy> in any language
Shahor has joined #ruby
yonggu has joined #ruby
<bnagy> lookahead / behind can often be written 'properly' just by using an anchor
<asdfqwer> why have ^ and \A
<Mon_Ouie> Because the beginning of a line isn't the same thing as the beginning of a string
<bnagy> I don't think \A will natch anything but the start in a multiline sring
mdw has joined #ruby
<Mon_Ouie> And from a quick test in the command line, Perl has \A and \Z too
<asdfqwer> i see
davidw_ has joined #ruby
zeromodulus has quit [Remote host closed the connection]
akem has quit [Read error: Connection reset by peer]
gtuckerkellogg has quit [Quit: Computer has gone to sleep.]
zeromodulus has joined #ruby
Shahor has quit [Client Quit]
c0rn has joined #ruby
M- has quit [Quit: This computer has gone to sleep]
perryh_away is now known as perryh
jprovazn_away is now known as jprovazn
elhu has joined #ruby
liluo has quit [Read error: Connection reset by peer]
liluo has joined #ruby
akem has joined #ruby
akem has quit [Read error: Connection reset by peer]
<shevy> hmm anyone knows if one can do underlined text in any terminal?
deobald__ has joined #ruby
noyb has quit [Quit: Leaving]
igotnolegs has quit [Quit: Computer has gone to sleep.]
AlbireoX`Laptop has quit [Remote host closed the connection]
<Mon_Ouie> puts "\e[4mtest\e[0m"
<Mon_Ouie> Probably won't work everywhere though
<shevy> oh cool
<shevy> works on KDE konsole fine, thanks!
gokul has quit [Quit: Leaving]
adambeynon has joined #ruby
adambeynon has quit [Client Quit]
akem has joined #ruby
jenrzzz-mac has joined #ruby
adambeynon has joined #ruby
robdodson has joined #ruby
TheFuzzball has quit [Quit: Leaving...]
TheHunter_1039 has quit [Quit: TheHunter_1039]
akem has quit [Read error: Connection reset by peer]
jenrzzz-mac has quit [Quit: jenrzzz-mac]
robdodson has quit [Quit: robdodson]
ephemerian has joined #ruby
flype has joined #ruby
DMKE has joined #ruby
akem has joined #ruby
roolo has joined #ruby
akem has quit [Read error: Connection reset by peer]
kil0byte has joined #ruby
JohnBat26 has quit [Remote host closed the connection]
kil0byte_ has quit [Ping timeout: 260 seconds]
ghosTM55 has joined #ruby
test34 has joined #ruby
nu7hatch has joined #ruby
JohnBat26 has joined #ruby
tatsuya_o has joined #ruby
test34 has quit [Ping timeout: 252 seconds]
akem has joined #ruby
ilya has joined #ruby
Helius has joined #ruby
Solnse has quit [Read error: No route to host]
akem has quit [Read error: Connection reset by peer]
prtksxna has quit [Ping timeout: 248 seconds]
dnyy has quit [Remote host closed the connection]
piotr__ has joined #ruby
piotr_ has quit [Ping timeout: 246 seconds]
indian has joined #ruby
ramblex has joined #ruby
Jackneill has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
deobald__ has quit [Ping timeout: 260 seconds]
hemanth has quit [Read error: Connection reset by peer]
prtksxna has joined #ruby
hemanth has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
BrianE has joined #ruby
CheeToS has quit [Ping timeout: 244 seconds]
lennyks has joined #ruby
<lennyks> hi
r4um has joined #ruby
jbw has quit [Ping timeout: 245 seconds]
ramblex has quit [Quit: ramblex]
<lennyks> does anyone of you have experience with resque/redis and specifically the cach invalidation
<lennyks> ?
deobald__ has joined #ruby
moshef has quit [Quit: moshef]
horseman is now known as banisterfiend
kaspernj has joined #ruby
jbw has joined #ruby
ickmund has quit [Ping timeout: 250 seconds]
ickmund has joined #ruby
nirakara has joined #ruby
wvms has joined #ruby
BrianE has quit [Ping timeout: 246 seconds]
moshef has joined #ruby
pnpuff has joined #ruby
b1rkh0ff has joined #ruby
tk___ has joined #ruby
BrianE has joined #ruby
noganex has quit [Ping timeout: 252 seconds]
pnpuff has left #ruby [#ruby]
<shevy> anyone using ruby-gtk here?
perryh is now known as perryh_away
noganex has joined #ruby
seoaqua has joined #ruby
sepp2k has joined #ruby
<seoaqua> how to trigger a 'initialize' method in singleton class? i tried def self.instance and then super, but failed
<Hanmac> seoaqua: what do you mean with trigger?
Vert has joined #ruby
<seoaqua> Hanmac, create a singleton instance and do some init thing
charliesome has joined #ruby
<Hanmac> class A; include Singleton; def initialize; yourcodethere; end;end;
<moshef> how do I change all my hash keys? lets say i'd like to add the string s to each key
<moshef> tried something like Hash[hsh.map {|k, v| [key_map[k], v] }] but i don't have a mapping to go by
ipoval has quit [Quit: ipoval]
<shevy> moshef yeah, I think .map will return an array
<moshef> never mind, my bad
<moshef> ignore me :)
<shevy> moshee, one simple way would be to build a new hash
<moshef> map works like a charm
<moshef> or not :(
<Hanmac> moshef: do you want your code again for 1.8.7?
<moshef> yes
Yarou_ has quit [Quit: Leaving]
<moshef> Hash[a.map {|k, v| [k.split("/")[0], v] }]
<Hanmac> :( ... i could do it better with 1.9.2+
<moshef> won't help if it doesn't run for me :D
<moshef> problem with that line is that I'm only getting one key back, any idea why?
c0rn has quit []
<moshef> {"bb/d"=>"4", "bb/c"=>"3"} will return {"bb"=>"3"}
zastaph has joined #ruby
tatsuya_o has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
<Hanmac> because the second one override the first one ... or what did you except?
<shevy> moshef as I wrote you can build a new hash
<moshef> I'm building a new hash
<moshef> oh right, dummy me
<seoaqua> Hanmac, how to trigger the initialize method? its private ,right?
<shevy> old_hash.each_pair {|key, value| new_hash[key+'s'] = value }
<bnagy> moshef: you verwrote your bb key :)
<moshef> works like a charm then
<Hanmac> seoaqua: not that i know, you could override it with your own initialize method
Vert has quit [Remote host closed the connection]
<moshef> shevy: it does build a new hash, problem was that both keys were the same
<bnagy> oh blah didn't read scrollback
<moshef> bnagy: yup :)
<seoaqua> Hanmac, i see
<shevy> Hanmac is a ruby guru who also knows C++
<seoaqua> Hanmac, the 'initialize' is triggered by the instance method
heisenmink has joined #ruby
<heisenmink> rvm vs rbenv?
<seoaqua> Hanmac, thanks
<heisenmink> can't decide
<bnagy> rvm has gemsets, rbenv is cleaner and less likely to make your brain explode if you know *nix
<bnagy> rbenv is slightly fiddlier to use
<shevy> rvm is like a package manager
tatsuya_o has quit [Ping timeout: 246 seconds]
ramblex has joined #ruby
<Hanmac> moshef: something like this: Hash[{"bb/d"=>"4", "bb/c"=>"3"}.group_by{|k,v| k.split("/")[0]}.map{|k,v|[k,v.map{|i|i[1]}]}] => {"bb"=>["4", "3"]}
<moshef> wow that looks complicated
<moshef> Hash[hash.map {|k, v| [k.split("/")[0], v] }] this doesn't do the same trick? because if works for me...
ghosTM55 has quit [Quit: leaving]
<Hanmac> yours return {"bb" => "3"} ... mines return {"bb"=>["4", "3"]}
kzar has joined #ruby
deobald__ has quit [Ping timeout: 260 seconds]
<kzar> There's a way to run irb that puts the pwd on the path for require etc. I can't remember what it is though, does anyone know?
<bnagy> kzar: don't
<bnagy> use require_relative or reuire './foo'
heisenmink has quit [Ping timeout: 248 seconds]
<Hanmac> kzar: require_relative does not exist without reason
<shevy> kzar try $: << File.dirname(__FILE__)
<shevy> or Dir.pwd
<kzar> Hanmac: Neither does my question, go try require relative at a IRB "repl"
<Hanmac> and changing $: is bad too
<shevy> it will kill all your computers!!!
<banisterfiend> shevy: sup shev
banisterfiend is now known as horseman
<shevy> horseman you are discovered banister
<horseman> shevy: keep our secret, keep it precious
<bnagy> hahah oh yeah, I forgot, require_relative uses caller[0] internally :)
tatsuya_o has joined #ruby
Criztian has joined #ruby
<shevy> it does??
<shevy> hmm
<bnagy> yeah and that will be (irb) I htink
<shevy> :(
<shevy> horseman, I now have 1224 individual yaml files listing programs
<horseman> shevy: i dont believe u
<kzar> Oh, got it `irb -I .`
thecreators has joined #ruby
<moshef> Hanmac: thanks, ill keep it then. this won't happen because i know my keys are different, but ill keep to have anyway :)
davidw_ is now known as davidw
davidw has quit [Changing host]
davidw has joined #ruby
thecreators has quit [Remote host closed the connection]
<shevy> horseman hehe. I'll upload them eventually, it should then look a bit similar to: https://github.com/mxcl/homebrew/commits/master/Library/Formula but just yaml files rather than .rb files
<shevy> but I will then automatically create .rb files that should work in homebrew too
<horseman> shevy: whatever bro
<vectorshelve> shevy: :)
<vectorshelve> hi
<shevy> hi vectorshelve
polysics has quit [Remote host closed the connection]
Beoran__ has quit [Ping timeout: 240 seconds]
<horseman> vectorshelve: you're indian right?
Shoobdidoo has joined #ruby
<vectorshelve> horseman: yes...
<indian> I am
<horseman> vectorshelve: did you know indians almost went extinct?
<vectorshelve> indian: where r u from in India indian ? :)
ronniy has joined #ruby
<indian> vectorshelve, south
<indian> HYD
<vectorshelve> horseman: no until some ppl told me this very moment from nowhere ;)
<vectorshelve> indian: me too south
<vectorshelve> indian: u work on rails or ruby ?
<indian> yah IRC is small world
<shevy> vectorshelve I think he mixed it up with native americans :P
punkrawkR has joined #ruby
<shevy> vectorshelve what is the name of India in the native language?
Zolrath has quit [Quit: Computer has gone to sleep.]
jenrzzz-mac has joined #ruby
<indian> bharat
<shevy> indian cool
<horseman> indian: where did the name india come from
<vectorshelve> shevy: Yes
<Hanmac> shevy so you are from Austria?
<indian> horseman, british
<shevy> Hanmac well yeah. Österreich!
<horseman> indian: cool, but whey did they call it india? it must be based on something, right? :)
<indian> Well they called themselves EAST INDIAN COMPANY
<horseman> vectorshelve: do you like nicki minaj?
<indian> lol
<indian> horseman, she is gross
<shevy> horseman likes gross things
<horseman> indian: why's that?
<horseman> indian: she got a big booty
<indian> I am about to eat food that put me off
billdami has joined #ruby
<shevy> yup. that is what horseman is trying to achieve :)
<indian> horseman, yah but it looks weird
<vectorshelve> horseman: why is she ur girlfriend ?
<horseman> vectorshelve: Yeah.
<shevy> luckily I do not know that name, but I will also never google for it and I will never click on any links horseman pastes
<vectorshelve> horseman: bad luck dude
<indian> lol
<horseman> vectorshelve: you remind me of her in some ways, same rap style
<vectorshelve> horseman: I am not a rapper...
<shevy> vectorshelve sorry, I am too scared :)
<indian> lol shevy
<horseman> man she is starting to look nuts https://p.twimg.com/At8ik-eCMAAPQfn.jpg:large
<shevy> no dont click
<vectorshelve> shevy: horseman still seems to be not out of the dream where he is riding a horse on that nicki minaj's stinking ass :D
<vectorshelve> shevy: I wont ... I guess have better stuff to do than that :D
<horseman> indian: she even got a bf who does duck-face https://p.twimg.com/At8ediSCIAEqlUX.png:large
<horseman> that's pretty rare i thik
<horseman> think
<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]
<horseman> coderhs: its used to develop ios applications, http://www.rubymotion.com
<shevy> coderhs, you can use ruby to build ruby-gtk applications, GUIs. or ruby-tk ruby-qt etc..
<horseman> coderhs: ask that python pig if he can do that, natively
dhaskew has joined #ruby
<eddie_> horseman: Python and Ruby is like AK-47 and M-16
<shevy> vectorshelve, well work is work, but there are a million ideas out there that can be pursued. I never run out of things todo
<eddie_> dont blame each other
<eddie_> respect all languages :)
<shevy> die, perl, DIE
<vectorshelve> shevy: DIE RAILS DIE
<shevy> yah well, I am semi-indifferent to rails
<shevy> they are just too big :\
flype has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> ruby was better off 8 years ago :P
<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
<vectorshelve> shevy: hemanth1 eddie_ read this -> http://steve-yegge.blogspot.in/2008/05/dynamic-languages-strike-back.html its interesting
<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 ;(
<horseman> kalleth: what's a brogrammer
<kalleth> horseman: "bro (frat house)" + "programmer"
<shevy> a brogrammer is someone who can not spell
<vectorshelve> eddie_: r u a malayali ? :)
<eddie_> vectorshelve: Yep
chrismcg is now known as zz_chrismcg
<horseman> eddie_: you're malaysian/
<appi_uppi> vectorshelve: we have to accept the truth :).. thnx vectorshelve
<shevy> becom33 is from sri lanka
<eddie_> horseman: Nine
<eddie_> in German
<eddie_> :D
<shevy> I am from Saturn. I came to Planet Earth so that I can master the programming language called Ruby.
<horseman> eddie_: indians are weird, i want to cook you all up in an enormous vindaloo curry and sell you to drunken english soccer fans
<shevy> ewww curry...
<shevy> Satay sticks were cool though
<bnagy> shevy: you should start with IO then ;)
<eddie_> shevy: bnagy: things getting worse here :D
<eddie_> horseman wanna cook me
<horseman> eddie_: sure, if u give me a good recipe
<bnagy> it's OK, kiwis can't cook curry to save their own lives
<bnagy> you're safe
<appi_uppi> horseman: true... but not all ;)
<horseman> bnagy: can you cook?
<bnagy> I like to think so, yeah
<horseman> bnagy: cool, give me a recipe for a nepalese curry
<horseman> or tell me the name of one that i can google
<bnagy> lol 'daal bhat'
<eddie_> horseman: you dint like my recipe?
<bnagy> you won't like it though ;)
<horseman> bnagy: yeah i find daals a bit bland, do u have a meat curry
<eddie_> horseman: you will have to eddie.slice me for that dosa
<horseman> eddie_: i want a proper curry not just some biscuits
<bnagy> horseman: mostly the curries here are just called 'tarkari' which more or less means 'curry'
<eddie_> well
<bnagy> it's not exactly a rich culinary heritage :<
<eddie_> horseman: Where are you from dude? i will suggest a recipe
<bnagy> horseman: try 'sukuti sandeko', that's not bland
<bnagy> dunno how you're going to get dried buffalo in NZ though
<horseman> eddie_: why do u need to know where im from to give me a recipe, give me something hardcore, not dumbed down for my western tonue
<horseman> tongue
<horseman> bnagyhehheheh
kkszysiu_work has joined #ruby
kkszysiu_work has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
ephemerian has quit [Quit: Leaving.]
hemanth1 has quit [Ping timeout: 245 seconds]
sbanwart has joined #ruby
<bnagy> you'd like newari food (one of the ethnic groups), they have like 100 dishes with buffalo offal / offcuts
<bnagy> assuming you want 'hardcore'
<bnagy> lol chicken tikka masala
<horseman> eddie_: now you're just giving me curry cliches
<horseman> eddie_: "chicken tikka masala" is for noobs
<bnagy> actually it's not even indian - it's from the UK
<bnagy> it's tasty though, gotta admit
<horseman> bnagy: too sweet 4 me
<eddie_> horseman: What kinda curry you want?
<indian> well the british want something mild so they made the indian chefs do it
<indian> during east indian time
<indian> and they took it when they moved
<horseman> eddie_: well here are the ones i like: kadai chicken, aloo gobi, jalfreezy
<horseman> etc
<bnagy> indian: it's not that old
<horseman> eddie_: i thought i'd get something interesting asking a real indian for a rescipe but u give me a cliche like "chicken tikka masala" lulz
<horseman> disappointing
<indian> lol
fixl has joined #ruby
<indian> you guys talking about curry on #ruby
<indian> lol
hemanth1 has joined #ruby
<indian> yah heat can mess with your brain
<eddie_> horseman: Dude like most indians. i eat and celebrate
<eddie_> dont cook
<eddie_> :D
<bnagy> speaking of cooking, 'swhat I need to do. l8s
<appi_uppi> horseman: this is easy and nice one specially in south Indian brahmins style ( specially in the morning or evening) : eat chapati with rasayana: chapathi: http://en.wikipedia.org/wiki/Chapati ----- Rasayana: http://en.wikipedia.org/wiki/Rasayana
<horseman> bnagy: cya nags
<bnagy> (lebanese, btw, not curry ;)
akemrir has joined #ruby
<eddie_> curries and cooking indians over ???
<eddie_> :D
<kalleth> i LOVE curry
<kalleth> it's awesome
<kalleth> well
<kalleth> i love BRITISH CURRY
<kalleth> hence, tikka masala
<bnagy> I really dislike most western indian restaurants now :(
<bnagy> too rich, too much meat
<akemrir> hello, is there painless way to encode emails into utf-8 with special characters ?
fff has joined #ruby
<fff> :)
<kalleth> fffffffff
<bnagy> akemrir: put # encoding: utf-8 in the file
<eddie_> bnagy: try dosa
<bnagy> akemrir: worst case you can set encoding= or force_encoding on the string
<akemrir> bnagy: that doesn`t do the job with zg=C5=82osi=C5=82o
appi_uppi has left #ruby [#ruby]
<bnagy> eddie_: there is not a lot of indian food I haven't had, but it's hard to get good dosa in the west, same with idli
fff has left #ruby [#ruby]
hackeron has joined #ruby
<bnagy> akemrir: I don't know what those chars are. What encoded them?
Vainoharhainen has joined #ruby
<akemrir> bnagy: imap, this is sting taken straight from email
<eddie_> bnagy: i need to tell you i have found awesome dosa at Cochin
r4um has quit [Ping timeout: 245 seconds]
<kalleth> what is dosa
<bnagy> eddie_: yeah I bet the idli are ok too - not really surprising :)
<kalleth> fermented pancake, ew
<eddie_> bnagy: I never thought they can make so much variety of it
akem has joined #ruby
kzar has left #ruby ["Killed buffer"]
kil0byte has joined #ruby
<kalleth> erm
<kalleth> that looks delicious, and massive
bashdy has joined #ruby
<bnagy> akemrir: ok I'd need to look at how IMAP encodes, that doesn't look like 'normal' utf-8 to me
jenrzzz-mac has quit [Quit: jenrzzz-mac]
<eddie_> Like a lot of varieties of Pizza are made, they make a lot of dosas
<eddie_> kalleth: yes the same thing
<eddie_> dosa
<bnagy> kalleth: it's awesome, and not as filling as it looks
<kalleth> so which of you is going to come cook for me
<bnagy> akemrir: doesn't whatever lib you're using for IMAP handle encoding?
<kalleth> right now i live on takeaway, pub, and shit from a can :p
<akemrir> bnagy: pure imap from ruby
<eddie_> kalleth: watch this http://www.youtube.com/watch?v=Uul78y8OFS8
Calm has quit [Quit: leaving]
<bnagy> akemrir: there we go, IMAP.decode_utf7
<bnagy> try that
kil0byte_ has quit [Ping timeout: 248 seconds]
petercs has quit [Ping timeout: 256 seconds]
<akemrir> bnagy: almost same string in output. UTF-8 but with strange characters
r4um has joined #ruby
mxweas_ has quit [Quit: Computer has gone to sleep.]
schaerli has joined #ruby
<akemrir> bnagy: maybe I should search for library that uses something like this http://www.string-functions.com/encodingtable.aspx?encoding=65000&decoding=65001
mxweas_ has joined #ruby
<bnagy> akemrir: I am pretty sure IMAP lib can handle IMAP encoding, which does appear to be utf7 (utf8 is not modem safe)
frishi has quit [Quit: Leaving...]
<kalleth> eddie_: it's about lunchtime, and i'm _so_ hungry
<kalleth> =[
<bnagy> but I dunno, would have to read the docs, sry
<akemrir> bnagy: I`ts for my local use. Not for sending later.
<kalleth> and that video has just made me even more starving!
<bnagy> so I'ma make babaganous instead
<bnagy> sorry :)
<kalleth> nah you aint
<kalleth> :p
<bnagy> ? why not? it's trivial
liluo has joined #ruby
<akemrir> I`ll be back in moment
amalvagomes has joined #ruby
moshef has quit [Quit: moshef]
yonggu_ has joined #ruby
zinjacoder has joined #ruby
tomzx has joined #ruby
jenrzzz-mac has joined #ruby
<eddie_> kalleth: Had lunch?
<kalleth> eddie_: no, leaving for pub in 5min
<eddie_> kalleth: ok
yonggu has quit [Ping timeout: 246 seconds]
bashdy has quit [Ping timeout: 256 seconds]
<eddie_> Guys leaving. MIB3 now
eddie_ has quit [Quit: Ex-Chat]
RegEchse has joined #ruby
kil0byte_ has joined #ruby
<akemrir> back
vitoravelino is now known as vitoravelino`afk
berserkr has quit [Quit: Leaving.]
<vectorshelve> hemanth: dude
kil0byte has quit [Ping timeout: 252 seconds]
Vendethiel has joined #ruby
schovi has quit [Remote host closed the connection]
mxweas_ has quit [Quit: Computer has gone to sleep.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
blacktulip has joined #ruby
dr_bob has joined #ruby
krusty_ar has joined #ruby
ilya has left #ruby ["Leaving"]
dr_bob has left #ruby [#ruby]
indian has quit [Read error: Operation timed out]
yonggu_ has quit [Remote host closed the connection]
yonggu has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
pk1001100011 has joined #ruby
fbernier has joined #ruby
<pk1001100011> ruby ftw
kil0byte has joined #ruby
<shevy> pk1001100011 damn straight
jonathanwallace has joined #ruby
<pk1001100011> One man is developing Ruby or more people?
polysics has joined #ruby
<shevy> pk1001100011 about 20 or 30 I think
<shevy> probably more on the 30-ish
kil0byte_ has quit [Ping timeout: 250 seconds]
<Hanmac> but one guy on the top
<pk1001100011> Oh, good job. ^^
hemanth1 has quit [Quit: Leaving.]
<shevy> one guy who does the thinking
<shevy> the others who do the coding
<shevy> :)
ephemerian has joined #ruby
test34 has joined #ruby
test34 has joined #ruby
test34 has quit [Changing host]
<Hanmac> shevy i cant wait for mruby so i can write C-extendions for that :P
<shevy> I too
<shevy> I wanna write RubyOS
<shevy> Hanmac, you write in C too in addition to C++?
tomzx has quit [Ping timeout: 260 seconds]
etehtsea has joined #ruby
<Hanmac> shevy ... ok i say it ... my gems are for C++ and not for C :(
diegoviola has joined #ruby
<shevy> heheeh
<shevy> I am still not entirely sure what mRuby is about
<shevy> will it replace MRI one day?
<Hanmac> maybe
jenrzzz-mac has quit [Quit: jenrzzz-mac]
<shevy> whoa
<shevy> cool :)
<Hanmac> currently it does not has all methods i could need, but maybe someday later
kil0byte_ has joined #ruby
Criztian has quit [Remote host closed the connection]
fragmachine has joined #ruby
icooba has quit [Quit: icooba]
fragmachine has left #ruby [#ruby]
nowthatsamatt has joined #ruby
<horseman> shevy: whta's up
fbernier has quit [Ping timeout: 246 seconds]
<shevy> horseman, I am preparing to build a new Linux from scratch, and updating some packages right now
kil0byte has quit [Ping timeout: 245 seconds]
<horseman> shevy: why are you doing that
BrianE has quit [Ping timeout: 265 seconds]
<horseman> shevy: why dont you just get daddy to buy you a mac
heisenmink has left #ruby ["Lämnar"]
diegovio1a has joined #ruby
<shevy> horseman I am doing it for several reasons. the default that one gets to use in linux distribution stinks a lot
<shevy> gmp does not even want to compile
diegoviola has quit [Read error: Connection reset by peer]
<shevy> "could not find a working compiler, see config.log for details"
<horseman> shevy: get daddy to buy you a new mac
diegovio1a is now known as diegoviola
<shevy> never used a mac
carloslopes has joined #ruby
etehtsea has quit []
Nicke\ has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
Jackneill has quit [Remote host closed the connection]
kaneda_ has joined #ruby
ephemerian has quit [Quit: Leaving.]
kaneda__ has joined #ruby
Guest59200 has quit [Ping timeout: 248 seconds]
vectorshelve has quit [Quit: Page closed]
rmascarenhas has joined #ruby
kaneda_ has quit [Ping timeout: 265 seconds]
krz has quit [Quit: krz]
wangr has joined #ruby
blacktulip has quit [Remote host closed the connection]
Vert has quit [Remote host closed the connection]
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
andrewhl has joined #ruby
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]
M- has quit [Client Quit]
BrianE has joined #ruby
noganex has joined #ruby
<shevy> yoyoma, if noone on IRC can solve that problem you should file a report at https://github.com/carlhuda/bundler/issues
<shevy> it's what I usually do when bundler annoys me
zinjacoder has joined #ruby
itnomad has joined #ruby
<ramblex> yoyoma: what's the error you get?
itnomad has quit [Client Quit]
<shevy> horseman I dont dare to :(
niklasb has joined #ruby
<horseman> shevy: this one is safe
<ramblex> that's not nice
<ramblex> :(
<shevy> horseman I am too scared to take the risk
andrewhl has quit [Remote host closed the connection]
dexcs has joined #ruby
<horseman> ramblex: tell shevy it's harmless
<ramblex> no, you've scarred me for life
itnomad has joined #ruby
<shevy> lol
<shevy> it's how he got banned from #ruby-lang :P
ddv has joined #ruby
berkes has joined #ruby
<ramblex> i try to only make mistakes once
kil0byte_ has quit [Ping timeout: 244 seconds]
<horseman> ramblex: just a news story, see the link.
<shevy> hehehe
<shevy> fool me once
<shevy> fool me hundred times!!!
ddv has quit [Changing host]
ddv has joined #ruby
kil0byte has joined #ruby
shevy has quit [Read error: Operation timed out]
Neurotic has quit [Quit: Leaving]
ipoval has joined #ruby
nowthatsamatt has left #ruby [#ruby]
kil0byte_ has joined #ruby
fr0gprince_mac has joined #ruby
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
ken_barber has joined #ruby
zz_chrismcg is now known as chrismcg
dhaskew has quit [Read error: Connection reset by peer]
dhaskew has joined #ruby
kil0byte has quit [Ping timeout: 252 seconds]
kuranai|off is now known as kuranai
rbanffy has joined #ruby
liluo has quit [Remote host closed the connection]
looopy has joined #ruby
liluo has joined #ruby
liluo has quit [Remote host closed the connection]
liluo has joined #ruby
parameme has joined #ruby
workmad3 has joined #ruby
uris has joined #ruby
rippa has quit [Quit: derp herp]
shevy has joined #ruby
<pk1001100011> horseman: Obama activated zombie mod.
BrianE has quit [Quit: Leaving...]
visof has joined #ruby
krusty_ar has quit [Read error: Connection reset by peer]
looopy has quit [Remote host closed the connection]
yoyoma has left #ruby [#ruby]
appineer has joined #ruby
krusty_ar has joined #ruby
visof has quit [Ping timeout: 246 seconds]
<shevy> what is zombie mod
<pk1001100011> Some fps games has something like zombie mod. Two teams, zombies and humans, zombies infect humans so they are zombies…
<pk1001100011> have *
ChampS666 has quit []
dexcs has quit [Remote host closed the connection]
fukushima has quit [Quit: Leaving...]
dexcs has joined #ruby
andrewhl has joined #ruby
kil0byte has joined #ruby
Guest51736 has quit [Quit: /quit]
BrianE has joined #ruby
alindeman has joined #ruby
iocor has joined #ruby
iocor has quit [Changing host]
iocor has joined #ruby
great4free has joined #ruby
<great4free> http://www.reddit.com/r/nsfwhot/comments/u7tbd/german_blondebig_boobs_girl_likes_quickie_sex_on/ GERMAN GIRLS GONE WILD AND FUCKED IN TRAIN BY TRAVELER HOT AMATEUR PORN MOVIE
great4free has quit [Killed (idoru (Spam is off topic on freenode.))]
kil0byte_ has quit [Ping timeout: 245 seconds]
<kalleth> really, they think that IRC is the place to spambot that shit
<kalleth> ¬_¬
asdfqwer has quit [Read error: Connection reset by peer]
seanstickle has joined #ruby
ephemerian has joined #ruby
parameme has left #ruby [#ruby]
appineer has quit [Remote host closed the connection]
aless has joined #ruby
ABK has joined #ruby
deobald__ has joined #ruby
tatsuya_o has joined #ruby
choffstein has joined #ruby
aless has quit [Client Quit]
choffstein has quit [Remote host closed the connection]
cbuxton has joined #ruby
fixl has quit [Remote host closed the connection]
yannis has joined #ruby
davidw has quit [Ping timeout: 244 seconds]
ananthakumaran has quit [Quit: Leaving.]
dexcs has quit [Read error: Connection reset by peer]
<shevy> yeah
<shevy> as if anyone would ever click on it
fr0gprince_mac has quit [Quit: Bye!]
subbyyy has joined #ruby
devdazed has joined #ruby
berserkr has joined #ruby
subbyyy has left #ruby [#ruby]
fr0gprince_mac has joined #ruby
bashdy has joined #ruby
<pk1001100011> I cliked
<pk1001100011> And it must be old spambot because topic was removed some time ago
<pk1001100011> So it spams "empty" link
<pk1001100011> clicked *
<pk1001100011> Not that I am interested in that topic…
seoaqua has quit [Quit: Leaving]
mengu has joined #ruby
davidw has joined #ruby
mrsrikanth has joined #ruby
<Hanmac> shevy you see? someone will be that dumb
davidw is now known as Guest28433
fr0gprince_mac has quit [Ping timeout: 246 seconds]
cha1tanya has joined #ruby
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
fr0gprince_mac has joined #ruby
PaciFisT has joined #ruby
<pk1001100011> Why dumb
bbttxu has joined #ruby
akemrir has quit [Quit: WeeChat 0.3.7]
berkes has quit [Quit: Ex-Chat]
amalvagomes_ has joined #ruby
becom33 has joined #ruby
<becom33> hi Im looking for a good lib for GUI ruby
<becom33> there are few I dnno whats easy to use
markp has joined #ruby
amalvagomes has quit [Ping timeout: 252 seconds]
amalvagomes_ is now known as amalvagomes
<becom33> Hanmac, is there any tut's ?
<Hanmac> looking for wxruby ... my rwx is mostly the same
<becom33> i thought tk is good
prtksxna has quit [Ping timeout: 240 seconds]
<Hanmac> depending what you want
<becom33> is it for windows ?
<becom33> multi platform
<Hanmac> wxruby and my rwx are multi
xkx has quit [Ping timeout: 260 seconds]
<becom33> is w for windows ?
<Hanmac> wx are standing for wxWigdets
<becom33> aww
xkx has joined #ruby
LBRapid has joined #ruby
mnaser has joined #ruby
ananthakumaran has joined #ruby
markp has quit [Quit: Leaving]
looopy has joined #ruby
mrsrikanth has left #ruby ["Leaving"]
yonggu_ has joined #ruby
bashdy has quit [Ping timeout: 252 seconds]
horseman has quit [Read error: Connection reset by peer]
horseman has joined #ruby
yonggu has quit [Ping timeout: 246 seconds]
dexcs has joined #ruby
dexcs has quit [Remote host closed the connection]
<seanstickle> tk is shit
gmci has quit [Ping timeout: 244 seconds]
<seanstickle> wx is marginally better
<seanstickle> but still shit
yoklov has joined #ruby
<Hanmac> seanstickle do you mean wx in general or wxruby?
<seanstickle> wx in general
<seanstickle> I suppose on Windows it doesn't look too bad
<seanstickle> On Mac it's not good though
<shevy> becom33 I use ruby-gtk
<becom33> umm whats special on ruby-gtk shaman42
<becom33> shevy, *
<seanstickle> gtk is pretty good, qt as well
gmci has joined #ruby
<seanstickle> On Mac RubyCocoa is brilliant.
<shevy> becom33 not sure if there is anything special. there is not a lot of choice available for ruby+GUI really. http://ruby-gnome2.sourceforge.jp/hiki.cgi
<shevy> becom33 the toolkits are quite similar to one another, with a few minor differences, such as how to register and send/emit signals
<becom33> shevy, any good tut
<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
Yarou has joined #ruby
araujo has quit [Ping timeout: 252 seconds]
<Hanmac> imo i hate every gem that uses swig
t0mmyvyo has joined #ruby
araujo has joined #ruby
araujo has quit [Changing host]
araujo has joined #ruby
<shevy> Hanmac hehehehe
<shevy> Hanmac are you on github?
<Hanmac> look my rwx link
sbanwart has quit [Ping timeout: 244 seconds]
mneorr has quit [Remote host closed the connection]
lxsameer has joined #ruby
lxsameer has joined #ruby
lxsameer has quit [Changing host]
univers has joined #ruby
frishi has quit [Quit: Leaving...]
cmarques has joined #ruby
<Hanmac> using swig looks like: "i am to lazy to do it right"
JohnBat26 has quit [Remote host closed the connection]
rdegraci has quit [Quit: rdegraci]
cbuxton has quit [Quit: Leaving.]
deobald__ has quit [Ping timeout: 260 seconds]
yannis has quit [Quit: yannis]
<digitalcakestudi> if I wanted to check if a birthday if 21 or over I would do a is_21 = Date.new(Date.today.year - 21) ?
albemuth has joined #ruby
andrewhl has quit [Remote host closed the connection]
ABK has quit [Ping timeout: 245 seconds]
eighty4 has quit [Excess Flood]
ZachBeta has joined #ruby
ben_alman has quit [Excess Flood]
friskd has joined #ruby
tk___ has quit [Quit: ばいばい]
eighty4 has joined #ruby
lupine_85 has quit [Ping timeout: 250 seconds]
flyingoctopus has quit [Ping timeout: 252 seconds]
flyingoctopus has joined #ruby
stepnem has quit [Ping timeout: 252 seconds]
ben_alman has joined #ruby
<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
<shevy> the last example works if I change it to: test('hi') {
krusty_ar_ has joined #ruby
<shevy> I hate the () though, I cant use that :(
<shevy> I wanna omit "end" ...
krusty_ar has quit [Ping timeout: 244 seconds]
jonathanwallace has quit [Ping timeout: 244 seconds]
<shevy> that is weird
nfk has joined #ruby
<matled> what is weird?
<shevy> that code
<shevy> especially the:
<shevy> foo bar {}
jprovazn is now known as jprovazn_away
apeiros_ has joined #ruby
ABK has joined #ruby
<matled> just imagine there would be code within the block :)
<shevy> what is this actually doing... it is ... first calling the method bar ?
<matled> shevy: foo bar {} === foo(bar {})
<matled> foo bar do end === foo(bar) do end
jonathanwallace has joined #ruby
PaciFisT has quit [Quit: Leaving.]
bbttxu has quit [Quit: bbttxu]
PaciFisT has joined #ruby
ABK has quit [Client Quit]
wvms has quit [Quit: wvms]
visof has joined #ruby
areil has quit [Remote host closed the connection]
PaciFisT has quit [Client Quit]
CheeToS has joined #ruby
brngardner has joined #ruby
bbttxu has joined #ruby
petercs has joined #ruby
Emmanuel_Chanel has quit [Quit: Leaving]
becom33 has quit [Ping timeout: 260 seconds]
nirakara has joined #ruby
ananthakumaran1 has joined #ruby
jjuliano has joined #ruby
ananthakumaran has quit [Ping timeout: 244 seconds]
twixmix has quit [Quit: twixmix]
ZachBeta has quit [Quit: Computer has gone to sleep.]
ryannielson has joined #ruby
Emmanuel_Chanel has joined #ruby
liluo has quit [Remote host closed the connection]
rippa has joined #ruby
nu7hatch has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
BrokenCog has quit [Quit: leaving]
dhaskew has joined #ruby
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
dhaskew_ has joined #ruby
dhaskew has quit [Read error: Connection reset by peer]
dhaskew_ is now known as dhaskew
Guest28433 has quit [Ping timeout: 252 seconds]
jackiechan0 has joined #ruby
ZachBeta has joined #ruby
jjuliano has quit [Ping timeout: 250 seconds]
d3c has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
dkissell_ has joined #ruby
nirakara has quit [Quit: This computer has gone to sleep]
becom33 has joined #ruby
dkissell has quit [Ping timeout: 250 seconds]
dkissell_ is now known as dkissell
DMKE has quit [Quit: Pingpong.]
tomku has quit [Quit: WeeChat 0.3.7]
MasterIdler has joined #ruby
yoklov has quit [Quit: computer sleeping]
cbuxton has joined #ruby
thone has quit [Ping timeout: 240 seconds]
<ekaleido> would somebody mind telling me what im obviously missing here? http://pastie.org/3983526
thone has joined #ruby
<seanstickle> ekaleido: line 19
<seanstickle> find_room_in_dungeon(@player.location)
<seanstickle> But line 22
<seanstickle> def find_room_in_dungeon
<seanstickle> No argument allowed
mpereira has quit [Ping timeout: 265 seconds]
<ekaleido> oh my god
<seanstickle> Ergo, ArgumentError: wrong number of arguments (1 for 0)
<ekaleido> thanks sean
<workmad3> heh
<seanstickle> ekaleido: sure thing
<seanstickle> ekaleido: debugging is what I do :)
bluOxigen has quit [Ping timeout: 260 seconds]
wangr has quit [Ping timeout: 245 seconds]
jackiechan0 has quit [Quit: Sto andando via]
hayon has joined #ruby
Helius has quit [Ping timeout: 245 seconds]
rushed has quit [Quit: rushed]
wangr has joined #ruby
Husel has joined #ruby
pwned has quit [Read error: Connection reset by peer]
abstrusenick has quit [Quit: abstrusenick]
pwned has joined #ruby
jgrevich has joined #ruby
d3vic3 has quit [Ping timeout: 265 seconds]
mdw has quit [Remote host closed the connection]
tomb_ has quit [Quit: Computer has gone to sleep.]
d3vic3 has joined #ruby
ephemerian has left #ruby [#ruby]
td123 has joined #ruby
billdami has quit [Quit: Linkinus - http://linkinus.com]
khakimov has joined #ruby
lupine_85 has quit [Changing host]
lupine_85 has joined #ruby
williamcotton has joined #ruby
horseman has quit [Ping timeout: 252 seconds]
jonathanwallace has joined #ruby
remmy444 has joined #ruby
gilead has quit [Quit: Leaving]
carloslopes has quit [Ping timeout: 252 seconds]
nu7hatch has quit [Ping timeout: 240 seconds]
gokul has joined #ruby
mdw has joined #ruby
snearch has joined #ruby
bier has quit [Ping timeout: 240 seconds]
roolo has quit [Quit: Linkinus - http://linkinus.com]
Boohbah has quit [Remote host closed the connection]
mrbrdo has quit [Ping timeout: 276 seconds]
tomku has joined #ruby
hakunin has joined #ruby
ank has joined #ruby
ank has quit [Client Quit]
elhu has quit [Ping timeout: 252 seconds]
horseman has joined #ruby
hayon has quit [Quit: hayon]
francisfish has quit [Remote host closed the connection]
hayon has joined #ruby
cscribble has joined #ruby
Norrin_ has quit [Read error: Connection reset by peer]
bier has joined #ruby
Norrin_ has joined #ruby
d3vic3 has quit [Quit: leaving]
PaciFisT has joined #ruby
ramblex has quit [Ping timeout: 244 seconds]
mucker has joined #ruby
looopy has quit [Remote host closed the connection]
musee is now known as muse
roams has joined #ruby
visof has quit [Ping timeout: 246 seconds]
mikepack has joined #ruby
ryannielson has quit [Quit: ryannielson]
carloslopes has joined #ruby
remmy444 has quit [Ping timeout: 240 seconds]
xbayrockx has quit []
tomb_ has joined #ruby
Vainoharhainen has quit [Quit: Leaving...]
Husel has left #ruby [#ruby]
xbayrockx has joined #ruby
Jay_Levitt has joined #ruby
chrismcg is now known as zz_chrismcg
jhunter has quit [Ping timeout: 240 seconds]
jackiechan0 has joined #ruby
hayon has quit [Ping timeout: 245 seconds]
prtksxna has joined #ruby
cryptfu has quit [Quit: Leaving]
mdw has quit [Remote host closed the connection]
test34 has quit [Ping timeout: 260 seconds]
savage- has joined #ruby
mengu has quit [Quit: Konversation terminated!]
mengu has joined #ruby
brngardner has quit [Remote host closed the connection]
Urth|Away is now known as Urthwhyte
mrbrdo has joined #ruby
kil0byte has quit [Ping timeout: 240 seconds]
friskd has joined #ruby
kil0byte has joined #ruby
Ammar_iD has quit [Quit: Leaving]
audy has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
<audy> anyone know the name of the game library that extends Gosu?
BrianE has quit [Quit: Leaving...]
mickn has joined #ruby
ipoval has quit [Quit: ipoval]
yoklov has joined #ruby
<apeiros_> audy: there's a website which lists what gems depend on a given gem
<apeiros_> now if I knew the website's name it'd be of some help :-/
looopy has joined #ruby
<audy> :) thanks
iocor has quit [Quit: Computer has gone to sleep.]
prtksxna has quit [Remote host closed the connection]
<horseman> audy: chingu or gamebox
<audy> horseman ah it's chingu thanks
tatsuya_o has quit [Remote host closed the connection]
banseljaj is now known as imami|afk
<horseman> audy: #gosu
cha1tanya has quit [Quit: Leaving]
Cache_Money has joined #ruby
dkissell_ has joined #ruby
<shevy> audy there is also #gamebox
TheFuzzball has joined #ruby
<shevy> audy it kinda got a bit more headway when jacius no longer had time for rubygame
<shevy> ah horseman mentioned that already
dkissell has quit [Ping timeout: 244 seconds]
dkissell_ is now known as dkissell
jimeh has quit [Ping timeout: 246 seconds]
Y3Klo has joined #ruby
<Y3Klo> Morning all!
<shevy> Y3Klo where you are from
<Y3Klo> shevy: From the Earth, and you?
<shevy> Klo indicates german-speaking area haha
<shevy> Y3Klo Austria
<Y3Klo> shevy: Well, it isn't for that :)
<Y3Klo> America is the continent where I live :P
Jay_Levitt has quit [Quit: Jay_Levitt]
<shevy> kk
cmarques has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
<shevy> so Klo is not the german name ;<
Jay_Levitt has joined #ruby
<Y3Klo> Ok, I'm having this issue:
<Y3Klo> warning: Insecure world writable dir [...] in PATH, mode 040777
<Y3Klo> I know what is that.
<Y3Klo> And what is causing it.
mickn_ has joined #ruby
<Y3Klo> (The script is in a NTFS mounted partition, so no CHMOD for it).
gokul has quit [Quit: Leaving]
hakunin has quit [Remote host closed the connection]
<shevy> interesting
<shevy> is that ruby 1.9.x ?
<Y3Klo> I'm trying to add the $VERBOSE=nil to remove it.
<Y3Klo> Yup
<Y3Klo> 1.9.1
<Y3Klo> But I can't find the runtime.rb
Eldariof59-ru has joined #ruby
<Y3Klo> This command:
<Y3Klo> ruby -r rubygems -e "p Gem.path"
choffstein has joined #ruby
<Y3Klo> Prints the right path of the ruby install, /usr/lib/ruby...
<Y3Klo> (Also a directory in /home/Y3K...)
mickn has quit [Ping timeout: 244 seconds]
<Y3Klo> But I just can't find the lib/blunder/1.9.1/runtime.rb =S
<Y3Klo> Where else could it be?
imami|afk is now known as banseljaj
mikepack has quit [Remote host closed the connection]
<Y3Klo> No one?
<shevy> blunder?
nu7hatch has joined #ruby
<shevy> where is runtime.rb?
<shevy> on linux I would do "find / -name runtime.rb"
billiamii has joined #ruby
<Y3Klo> shevy: That'd search in the ENTIRE hdd right?
<shevy> yeah
<Y3Klo> Sounds a bit killer xD
<shevy> perhaps you can limit it to some specific directories
mengu_ has joined #ruby
<shevy> yeah but my rubies also end up in one directory actually
mengu has quit [Quit: Konversation terminated!]
<shevy> I dont follow the FHS
<Y3Klo> shevy: I'm trying this: http://stackoverflow.com/a/7777178
elux has joined #ruby
b1rkh0ff has quit [Ping timeout: 244 seconds]
savage- has quit [Remote host closed the connection]
jhunter has joined #ruby
<shevy> oh wait
<shevy> you mean "bundler", not "blunder" right?
<Y3Klo> Lol, sorry for the typo!
d3c has quit [Read error: Connection reset by peer]
<shevy> there are some guys on #bundler
<shevy> perhaps some in ruby can help too
<Y3Klo> So... Wrong channel?
<shevy> well it is ruby related so it is not the wrong channel per se
<Y3Klo> Oh! Ok :)
<Y3Klo> Thank you shevy, have a nice day.
<shevy> I dont use bundler myself and never will. perhaps someone else here can help you Y3Klo, may have to wait a while though
<JonnieCache> look elsewhere in the ruby install tree
<Hanmac> only rails questions are in the wrong channel
<JonnieCache> there may be several lib/bundler/1.9.1 dirs
<JonnieCache> its a mess in there sometimes
<Y3Klo> JonnieCache: There isn't ANY bundler dir.
<JonnieCache> not even under gems?
<Y3Klo> Noup.
mickn_ has quit [Quit: Leaving]
<Y3Klo> In none of the two printed paths by the command.
<JonnieCache> well where is the bundler binary?
<Y3Klo> /usr/lib.... and /home/...
<Y3Klo> That's my question actually, hahaha.
<JonnieCache> did you say youre on windows/
<JonnieCache> ?
<Y3Klo> Where can I find it :P?
<Y3Klo> HAHAHAHA, no way xD
<Y3Klo> ArchLinux.
<JonnieCache> ok well you can just do `which bundler`
<JonnieCache> in the shell
<JonnieCache> or even `gem which bundler`
<Y3Klo> JonnieCache: It returned this:
<Y3Klo> which: no bundler in (/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin/core_perl:/home/y3k/.gem/ruby/1.9.1/bin)
<Y3Klo> No bundler... That sounds bad doesn't it ._.?
<JonnieCache> oh shit should have been `which bundle`
<JonnieCache> my mistake
<JonnieCache> which is a linux thing which tells you where a command is located
jonatha__ has joined #ruby
<JonnieCache> but gem has its own which command that tells you where a gem is located
<Hanmac> Y3Klo "gem which bundler"
<Y3Klo> Hanmac, JonnieCache: gem which bundler returns:
schaerli has quit [Read error: Connection reset by peer]
<Y3Klo> ERROR: Can't find ruby library file or shared library bundler
<Hanmac> gem search bundler? ... is it installed?
<Y3Klo> No, the ruby install is barebones.
andrew__ has joined #ruby
<Y3Klo> just needed to install the herokugems.
<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]
<JonnieCache> oh my days
Urthwhyte is now known as Urth|Away
robertondc has joined #ruby
arturaz has quit [Quit: Leaving]
jayrulez has joined #ruby
Norrin__ has joined #ruby
g0bl1n has quit [Quit: Leaving]
visof has joined #ruby
Chryson has quit [Quit: Leaving]
savage- has joined #ruby
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]
<shevy> and @hole would be a hash
<JonnieCache> Cache_Money: @user_holes.grep {|h| h.id == id_you_need}
<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
ph^ has quit [Remote host closed the connection]
<apeiros_> yaml then. comes with ruby.
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
ipoval has joined #ruby
adeponte has joined #ruby
<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
dtang has joined #ruby
Guest13411 has quit [Quit: Linkinus - http://linkinus.com]
<cek> you see, every gem is now rails related
<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
<shevy> today I even saw this: ENV.some_method
knightblader has joined #ruby
<shevy> from #machomebrew
kevinbond has joined #ruby
Morkel has joined #ruby
Dilan has quit [Quit: ChatZilla 0.9.88.2 [Firefox 12.0/20120420145725]]
<JonnieCache> shevy: he means environment as in development, testing or production
<JonnieCache> like rails
AlbireoX`Laptop has quit [Remote host closed the connection]
<cek> yeah, like RAILS_ENV. but as it's already a test, that's a test "subenv"
<cek> because you can't test a defiblirator on live people
<cek> but you still need to test it
<Hanmac> shevy: both universal_binary functions are not defined for my system ... so i think "it's a rails thing"
andrewjf has joined #ruby
<Hanmac> cek: you can test it ... but only once
<JonnieCache> thats homebrew theyve obviously got some kind of clever way of changing environment variables like that
<JonnieCache> being as homebrew exists to compile things i think thats a very nice solution
<cek> that's probably some stupid build tool setting env vars and he's trying to catch them in ruby
<cek> a Makefile, Rakefile or whatever
igotnolegs has quit [Quit: Computer has gone to sleep.]
<cek> pkg-config, maybe
neil__ has joined #ruby
neil__ has quit [Remote host closed the connection]
<JonnieCache> well homebrew *is* a build tool. so its more the other way around
iocor has joined #ruby
Eldariof59-ru has joined #ruby
davidcelis has joined #ruby
fr0gprince_mac has joined #ruby
ChampS666 has joined #ruby
Eldariof27-ru has quit [Ping timeout: 245 seconds]
ChampS666 has quit [Client Quit]
Eldariof59-ru has quit []
bosphorus has quit [Remote host closed the connection]
ZachBeta has joined #ruby
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
prtksxna has joined #ruby
<msch> is there a way to express Hash[some_array] as some_array.do_something { |array| Hash[array] }? it'd help a lot with readability
<Hanmac> msch show me your input and your wanted output
<msch> Hanmac: raw.split(';').map { |segment| segment.split(':', 2).map(&:strip) }.map { |name, timespans| [name, Timespan.parse(timespans)] } # => [['winter', [Timespan, Timespan, Timespan]], ['summer', [Timespan, Timespan]]
<msch> Hanmac: wanted output: { 'winter' => [T, T], 'summer' => [T, T] }
seanstickle has quit [Quit: Nihil sub sole novum]
adambeynon has joined #ruby
Shoobdidoo has quit [Quit: Verlassend]
<cek> known as "sad Timespan dilemma"
cek has quit [Quit: жопа диридай диридиридай]
pastjean has joined #ruby
<msch> cek: didn't say i liked it :)
<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?
<offby1> => {1=>[1, 6], 2=>[2, 7], 3=>[3, 8], 4=>[4, 9], 0=>[5]}
<ramblex> offby1: hm, yeh. Am I being blind or is not in the docs?
mdw has quit [Remote host closed the connection]
virunga has joined #ruby
<ramblex> oh it's a range?
nilg` has quit [Read error: Connection reset by peer]
<offby1> dunno; I'm not very proficient with the docs.
khakimov has joined #ruby
<offby1> Perhaps it's under Enumerable, not Array
<ramblex> ah yeh
jonatha__ has quit [Ping timeout: 252 seconds]
<offby1> anyway it's in plain ol' 1.9 and might also be in 1.8 too
cscribble_ has joined #ruby
workmad3 has joined #ruby
yonggu has joined #ruby
amalvagomes has quit [Quit: amalvagomes]
jxpx777 has quit [Quit: Be back later]
cscribble has quit [Ping timeout: 246 seconds]
cscribble_ is now known as cscribble
icooba has joined #ruby
harukomoto has joined #ruby
nilg has quit [Remote host closed the connection]
nlc has joined #ruby
banseljaj is now known as imami|afk
Urth|Away is now known as Urthwhyte
mpereira has joined #ruby
yonggu_ has quit [Ping timeout: 248 seconds]
Norrin__ has quit [Ping timeout: 252 seconds]
ZachBeta has quit [Quit: Computer has gone to sleep.]
Tref has joined #ruby
digitalcakestudi has joined #ruby
ZachBeta has joined #ruby
ronniy has quit [Remote host closed the connection]
Norrin_ has joined #ruby
snearch has quit [Quit: Verlassend]
CheeToS has quit [Ping timeout: 246 seconds]
cscribble has quit [Quit: cscribble]
mengu_ has quit [Quit: Konversation terminated!]
<digitalcakestudi> does salting mean its a read only?
<JonnieCache> no
<JonnieCache> its a crypto term
<JonnieCache> if you dont know what i means then i would politely suggest that you dont mess with anything important that uses a salt
<digitalcakestudi> I know that much, but I mean can a salted ssn be shown in plan text again?
<JonnieCache> salting is something you do in the process of hashing something
<JonnieCache> its the hashing which is a one way operation
<digitalcakestudi> ah thanks
<JonnieCache> salting adds random data to the text before its hashed to make reversing the hash even harder
<JonnieCache> it reinforces the hash in a certain very limited sense
cscribble has joined #ruby
<digitalcakestudi> in regards to a ssn is salting enough?
<digitalcakestudi> other then say a ssl
<offby1> digitalcakestudi: if you have to ask: no
<JonnieCache> i cant give you crypto advice man
<JonnieCache> sorry
bglusman has joined #ruby
<JonnieCache> the stakes are too high. if you dont know, i *highly* advise you to pay someone who does
<offby1> says the man in black
<JonnieCache> lol im not giving advice about safe storage of SSNs on irc
<JonnieCache> there are limits man
<digitalcakestudi> :(
<digitalcakestudi> got to learn somewere
friskd has quit [Ping timeout: 244 seconds]
cscribble has left #ruby [#ruby]
<JonnieCache> digitalcakestudi: http://codahale.com/how-to-safely-store-a-password/ is good
<hoelzro> digitalcakestudi: yeah, but not from here =)
Guest28433 has joined #ruby
<becom33> what do you gusy think of shoes for ruby GUI >
<JonnieCache> there are lots of places to lean. im not trying to be mean i just dont feel comfortable giving advice on such sensitive issues
<offby1> just send the SSNs to my secure storage locker®™© site: https://evil.com
ijai has joined #ruby
rbanffy has quit [Quit: Ex-Chat]
cscribble has joined #ruby
avalarion has left #ruby [#ruby]
ijai has quit [Ping timeout: 250 seconds]
dekroning has quit [Quit: leaving]
looopy has quit [Remote host closed the connection]
fr0gprince_mac has quit [Quit: Leaving...]
yoklov has joined #ruby
<shevy> becom33 dunno. it did not work for me when I wanted to try it. does it work for you?
jackiechan0 has quit [Quit: Sto andando via]
<JonnieCache> its an abandoned project isnt it? literally
<becom33> shevy, still readin some docs . but there are alota videos for that in youtube
looopy has joined #ruby
Solnse has quit []
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
jonathanwallace has quit [Remote host closed the connection]
becom33 has quit [Remote host closed the connection]
kevinbond has quit [Quit: kevinbond]
hakunin has quit [Read error: Operation timed out]
workmad3 has quit [Ping timeout: 250 seconds]
tomb_ has joined #ruby
Criztian has joined #ruby
fbernier has quit [Ping timeout: 246 seconds]
azm has quit [Ping timeout: 260 seconds]
rippa has quit [Ping timeout: 265 seconds]
<shevy> yeah
daniel_hinojosa has quit [Ping timeout: 252 seconds]
<shevy> there are two sorts of programs - those that work on my machine and those that don't
<shevy> projects like pry work. projects like shoes don't.
rmascarenhas has quit [Quit: leaving]
hakunin_ has joined #ruby
pdtpatrick has joined #ruby
mneorr has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
offby1 has quit [Remote host closed the connection]
davidpk has joined #ruby
mdw has joined #ruby
mneorr has joined #ruby
tomb_ has quit [Quit: Computer has gone to sleep.]
mdw_ has joined #ruby
mneorr has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mneorr has joined #ruby
Guest28433 has quit [Ping timeout: 245 seconds]
mneorr has quit [Read error: Connection reset by peer]
ZachBeta has quit [Read error: Connection reset by peer]
kylemcgill has joined #ruby
nfk has quit [Quit: yawn]
ZachBeta has joined #ruby
mdw has quit [Ping timeout: 250 seconds]
nfk has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
yannis has quit [Quit: yannis]
davidcelis has quit [Quit: K-Lined]
yxhuvud has quit [Ping timeout: 265 seconds]
offby1 has joined #ruby
khakimov has quit [Quit: Computer has gone to sleep.]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mneorr has joined #ruby
krz has joined #ruby
BrokenCog has joined #ruby
wmoxam has joined #ruby
javon has quit [Quit: Lost terminal]
jimeh has quit [Ping timeout: 245 seconds]
jgrevich has quit [Read error: Connection reset by peer]
carloslopes has quit [Quit: Leaving]
jgrevich has joined #ruby
ZachBeta has quit [Read error: Connection reset by peer]
serroba has quit [Quit: This computer has gone to sleep]
serroba has joined #ruby
serroba has quit [Client Quit]
ZachBeta has joined #ruby
wilmoore has joined #ruby
icooba has quit [Quit: icooba]
tuxaddicted has joined #ruby
Gavilan has joined #ruby
cousine has joined #ruby
horseman has quit [Read error: Connection reset by peer]
jenrzzz-mac has joined #ruby
petercs has quit [Ping timeout: 252 seconds]
dhaskew has quit [Read error: Connection reset by peer]
dhaskew has joined #ruby
horseman has joined #ruby
robbyoconnor has joined #ruby
icooba has joined #ruby
sepp2k has quit [Ping timeout: 246 seconds]
Jake232 has joined #ruby
Morkel has quit [Quit: Morkel]
macmartine has quit [Quit: macmartine]
mpereira has quit [Read error: Connection reset by peer]
macmartine has joined #ruby
Bonkers has quit [Quit: Leaving]
macmartine has quit [Client Quit]
macmartine has joined #ruby
Criztian has quit [Remote host closed the connection]
workmad3 has joined #ruby
igotnolegs has joined #ruby
<shevy> we should raise the standard for ruby programs
<shevy> including a recommended set of guidelines to follow
Paradox has joined #ruby
<Paradox> i'm having problems with redcarpet on sinatra
dnyy has joined #ruby
<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
`brendan has joined #ruby
<cek> that man should be fired
<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
Norrin_ has joined #ruby
<yoyoma> thanks guys
<shevy> def _exactly(t)
<pk1001100011> shevy, workmad3, yeah, true…
<shevy> a class where every method is prepended a _
digital-ghost has joined #ruby
davidcelis has joined #ruby
jackiechan0 has quit [Quit: Sto andando via]
sits has joined #ruby
<shevy> haha apeiros_ ... http://pub.cozmixng.org/~the-rwiki/rw-cgi.rb?cmd=view;name=RubyCodingConvention "Never use then." guess you can not agree on this :D
<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
<shevy> in ruby+C
<wmoxam> yoyoma: I would do this too: https://gist.github.com/1d7a86b98cf82548cd07
gmci has quit [Ping timeout: 240 seconds]
Urthwhyte is now known as Urth|Away
azm has joined #ruby
azm has quit [Changing host]
azm has joined #ruby
tuxaddicted has quit [Quit: leaving]
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]
<eph3meral> by far
<becom33> E: Unable to locate package qtruby
msaffitz has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> easy to explain. debian is too stupid to provide aliases to their packages
<shevy> sudo apt-get install libqt4-ruby1.8
<shevy> and other apt-get shit
<shevy> you can skip qtruby though
<shevy> noone uses that
yannis has joined #ruby
<becom33> shevy, k thanks :)
<shevy> qt4ruby looks nice though
<seanstickle> Lots of things *look* nice
<shevy> tk?
<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
ramblex has quit [Quit: ramblex]
<eph3meral> becom33, sudo apt-get install libsmokeqt4-dev libqt4-dev
<eph3meral> becom33, then just download qtruby, cd into the src folder, and run cmake && make && sudo make install
univers has quit [Remote host closed the connection]
<eph3meral> becom33, it's fairly easy to get qt working with RVM as well https://rvm.io/integration/qtruby/
<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> seanstickle, you want that "qtbindings" thing that I pasted https://github.com/ryanmelt/qtbindings
kevinbond has joined #ruby
<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
<eph3meral> seanstickle, https://github.com/ryanmelt/qtbindings definitely works on OSX
<UNIXgod> seanstickle: np. It's an interesting discussion.
<eph3meral> at least it supposedly does
<dekz> Is there a nice way to share an object between sinatra routes without setting on class (@@)?
mxweas_ has quit [Quit: Computer has gone to sleep.]
<eph3meral> dekz, I think singleton/class var would be the way to go there
<eph3meral> dekz, or maybe just make it a rack app
<seanstickle> eph3meral: ok, well, I am running into some compilation issues
<seanstickle> eph3meral: I will continue
<seanstickle> to try
<dekz> hmm, problem is for testing purposes a Singleton won't work.
<eph3meral> seanstickle, yeah, oh well
<seanstickle> Ok, apparently I was missing cmake
<seanstickle> Because god help us if we use just normal goddamn make
counterbeing has quit []
<eph3meral> hahahah, i knokw right?
just_some_guy has joined #ruby
<eph3meral> i was a bit annoyed with that myself