fflush changed the topic of #ruby to: Ruby 1.9.3-p194: http://ruby-lang.org || Paste > 3 lines of text on pastebin.com
c0rn_ has quit [Ping timeout: 244 seconds]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
mmitchell has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
mxweas has quit [Ping timeout: 248 seconds]
c0rn_ has joined #ruby
<davidcelis> might have better luck in #rvm
ThePeach has joined #ruby
bigmcq77 has quit [Quit: Computer has gone to sleep.]
mxweas has joined #ruby
sent-hil has quit [Remote host closed the connection]
emmanuelux has joined #ruby
kiyoura has joined #ruby
chazu` has joined #ruby
chazu has quit [Read error: Operation timed out]
bigmcq77 has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
GoGoGarrett has quit [Remote host closed the connection]
snorkdude has joined #ruby
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
frogstarr78 has quit [Quit: Leaving]
c0rn_ has quit [Ping timeout: 246 seconds]
saschagehlich has quit [Quit: saschagehlich]
xyzodiac has joined #ruby
snorkdude has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 268 seconds]
c0rn_ has joined #ruby
mxweas has quit [Ping timeout: 246 seconds]
snorkdude has joined #ruby
gfontenot has quit []
mxweas has joined #ruby
sent-hil has joined #ruby
c0rn_ has quit [Ping timeout: 256 seconds]
Virunga has quit [Remote host closed the connection]
lggr has joined #ruby
ttt has joined #ruby
c0rn_ has joined #ruby
ph^ has joined #ruby
specialGuest has quit [Ping timeout: 256 seconds]
gfontenot has joined #ruby
dakine has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
mxweas has quit [Ping timeout: 240 seconds]
ttt has quit [Ping timeout: 240 seconds]
DavidBCN38 has quit [Quit: Hey! Where'd my controlling terminal go?]
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
workmad3 has quit [Ping timeout: 246 seconds]
BrokenCog has quit [Quit: leaving]
lggr has quit [Ping timeout: 256 seconds]
c0rn_ has quit [Ping timeout: 246 seconds]
mxweas has joined #ruby
Guest29702 has quit [Ping timeout: 240 seconds]
seanstickle has quit [Quit: seanstickle]
c0rn_ has joined #ruby
karstensrage has joined #ruby
richwestcoast has quit [Quit: ( www.nnscript.com :: NoNameScript 4.22 :: www.esnation.com )]
karstensrage is now known as Guest92980
ph^ has quit [Ping timeout: 256 seconds]
hunglin has joined #ruby
lggr has joined #ruby
lyaunzbe has joined #ruby
pdelgallego has quit [Quit: pdelgallego]
mxweas has quit [Ping timeout: 264 seconds]
IrishGringo has joined #ruby
Guest92980 is now known as karstensrage
c0rn_ has quit [Client Quit]
chessguy has joined #ruby
sent-hil has quit [Remote host closed the connection]
robie13__ has quit [Remote host closed the connection]
arubin has joined #ruby
pdelgallego has joined #ruby
seanstickle has joined #ruby
sebastorama has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
locriani has quit [Read error: Connection reset by peer]
locriani has joined #ruby
Belwolf has joined #ruby
stan_man_can has quit [Quit: stan_man_can]
stan_man_can has joined #ruby
lggr has joined #ruby
GoHuyGo has joined #ruby
bradhe has quit [Remote host closed the connection]
hunglin has quit [Quit: Leaving.]
Banistergalaxy has joined #ruby
AndChat| has joined #ruby
AndChat- has joined #ruby
mikepack has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
hbpoison has joined #ruby
pskosinski has quit [Quit: Some alternative (not-controlled-by-fu*up-developers/moderators) Red Eclipse servers: http://altred.tk/lmaster]
Banistergalaxy has quit [Ping timeout: 268 seconds]
dmnd has quit [Quit: dmnd]
wpaulson has joined #ruby
<Spooner> ThePeach_ : Did you sort yourself out with RVM?
pdelgallego has quit [Quit: pdelgallego]
GoHuyGo has quit [Quit: Leaving]
gfontenot has quit []
AndChat| has quit [Ping timeout: 268 seconds]
gfontenot has joined #ruby
snorkdude has quit [Remote host closed the connection]
<chazu`> Vinz_: thats most of a lot of channels activity >_<
<chazu`> but i have a question: how do i get a reference to a method def'ed outside of a class?
<chazu`> in other words, a function which isn't a class or instance method
lggr has joined #ruby
chazu` is now known as chazu
<Spooner> Kernel.method or Object.method should work, chazu
ph^ has joined #ruby
<Spooner> chazu : Vinz_ Yeah, if noone asks questions, nothing happens ;)
Banistergalaxy has joined #ruby
AndChat| has joined #ruby
c0rn_ has joined #ruby
<ThePeach> Spooner: sortof... asking for help on #rvm... getting some hell to sort out to install it... looks like installing it system-wide is more an hassle than anything else
lggr has quit [Ping timeout: 246 seconds]
dakine has joined #ruby
<chazu> Spooner: brilliant, indeed that does work, only issue is that the call to foo.method executes the method, probably a bug on my part though
<Spooner> Yeah, much easier to install it in ~/.rvm - but the problem with it not getting updated seems common. I've had it plenty of times.
<chazu> Spooner: danke
<dakine> ?
<dakine> oh, danke
<Spooner> chazu : No, it won't - you need, for example: m = Kernel.method(:puts); puts.call "hello"
<Spooner> Oops: m = Kernel.method(:puts); m.call "hello"
<chazu> Spooner: ah i see, Kernal.method. Duh-doi...I am a silly, silly little man
sebastorama has quit [Quit: Computer has gone to sleep.]
<chazu> Spooner: I was simply calling foobar.method, not Kernal.method(:foobar)
* chazu needs caffeine
<Spooner> Aha.
lggr has joined #ruby
AndChat- has quit [Ping timeout: 268 seconds]
Banistergalaxy has quit [Ping timeout: 248 seconds]
<Spooner> It is the price we pay for not needing to use parenthesis, I am afriad (many languages would take meth() as a call and meth as a reference).
<kiyoura> this is why perl is ugly: \&meth
<kiyoura> ^ the oddball.
crazedpsyc has joined #ruby
sailias has joined #ruby
Banistergalaxy has joined #ruby
AndChat- has joined #ruby
katherinem13 has quit [Read error: Connection reset by peer]
ph^ has quit [Ping timeout: 256 seconds]
<seanstickle> meth(). not even once.
katherinem13 has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
ghanima has joined #ruby
Kudos has quit [Ping timeout: 264 seconds]
seanstickle has quit [Quit: seanstickle]
AndChat| has quit [Ping timeout: 248 seconds]
AndChat| has joined #ruby
AndChat- has quit [Ping timeout: 248 seconds]
Banistergalaxy has quit [Ping timeout: 248 seconds]
cburyta has joined #ruby
mmitchell has joined #ruby
Hanmac1 has joined #ruby
lggr has joined #ruby
Banistergalaxy has joined #ruby
ryanf has quit [Read error: Connection reset by peer]
Kudos has joined #ruby
ryanf has joined #ruby
AndChat- has joined #ruby
<fir_ed> HOw do I get started
<fir_ed> with ruby and sqlite3
<Spooner> That is rather a vague question, fir_ed
Hanmac has quit [Ping timeout: 264 seconds]
eml has quit [Ping timeout: 264 seconds]
eml has joined #ruby
<Spooner> You might want to use something like ActiveRecord or Datamapper as a nice wrapper over the database.
GraemeLion has joined #ruby
<fir_ed> Spooner, I actually thought ActiveRecord was part of rails
<fir_ed> This is for a normal application
<Spooner> It is, but you can use it anywhere.
yoklov has quit [Ping timeout: 268 seconds]
<Spooner> I've used it in a non-web app before.
<fir_ed> Alright. Makes it much easier
<fir_ed> Thank you
cburyta_ has joined #ruby
AndChat| has quit [Ping timeout: 240 seconds]
mikepack_ has joined #ruby
thunderstrike has quit [Remote host closed the connection]
AndChat| has joined #ruby
mmitchell has quit [Ping timeout: 244 seconds]
Banistergalaxy has quit [Ping timeout: 240 seconds]
dakine has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 246 seconds]
yxhuvud has quit [Read error: Connection reset by peer]
cburyta__ has joined #ruby
cburyta has quit [Ping timeout: 246 seconds]
AndChat- has quit [Ping timeout: 240 seconds]
bradhe has joined #ruby
dakine has joined #ruby
Banistergalaxy has joined #ruby
ttt has joined #ruby
AndChat- has joined #ruby
yoklov has joined #ruby
cburyta has joined #ruby
maletor has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
notVert has quit [Read error: Connection reset by peer]
cburyta_ has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
AndChat| has quit [Ping timeout: 240 seconds]
cburyta__ has quit [Ping timeout: 248 seconds]
sailias has quit [Ping timeout: 246 seconds]
<adac> How to check if a string is an URI?
ThePeach_ has quit [Quit: leaving]
Banistergalaxy has quit [Ping timeout: 248 seconds]
ttt has quit [Ping timeout: 240 seconds]
<Vinz_> adac: Regex ?
<Spooner> Use URI to see if you can extract info from it? http://www.ruby-doc.org/stdlib-1.9.3/libdoc/uri/rdoc/URI.html
lggr has quit [Ping timeout: 246 seconds]
ghanima has quit [Ping timeout: 268 seconds]
<chazu> http://stackoverflow.com/questions/1805761/check-if-url-is-valid-ruby presents an idea of how to do just that, not sure if it works though
lledet has joined #ruby
<kiyoura> if all fails you could write your own solution per the RFC, too
jenrzzz has quit [Ping timeout: 248 seconds]
lledet has quit [Client Quit]
<Spooner> Comments point out that the regexp accepts some strings as URIs that URI.parse doesn't accept.
Banistergalaxy has joined #ruby
<adac> hmm i think for my case it would suffice to check if the url starts with http or https
arubin has quit [Quit: arubin]
<adac> Vinz_, so regex may be fine
<Spooner> Just ask the user, "Are you SURE this is a valid URI?" and if they say yes, accept them at their word, because they never lie.
<Vinz_> Wrong.
<adac> Spooner, :D
<Vinz_> I lie to surveys and forms :3
<Spooner> Do you use adac's system though? If not, I think we are safe.
ph^ has joined #ruby
<Vinz_> I'll use it just to crash it o/
AndChat- has quit [Ping timeout: 248 seconds]
<Spooner> adac This is the problem with telling people about your validation in #ruby :D
lggr has joined #ruby
CaptainJet has quit []
AndChat| has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
acrocity has quit [Ping timeout: 248 seconds]
<mikepack_> What's the best ruby documentation tool now-a-days?
<Spooner> Yard, I think. It is a superset of rdoc so no real reason to use the older tool any more anyway.
Banistergalaxy has quit [Ping timeout: 264 seconds]
RegEchse has quit [Quit: <3 WeeChat (v0.3.9-rc2)]
lggr has quit [Ping timeout: 246 seconds]
timrom has joined #ruby
mahmoudimus has joined #ruby
timrom_ has quit [Ping timeout: 240 seconds]
ph^ has quit [Ping timeout: 245 seconds]
gfontenot has quit []
bradhe has quit [Read error: Connection reset by peer]
lggr has joined #ruby
bradhe has joined #ruby
raul782 has quit [Remote host closed the connection]
<mikepack_> Spooner: thanks
wpaulson has joined #ruby
mmitchell has joined #ruby
jwang has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 268 seconds]
seoaqua has joined #ruby
Kudos has quit [Ping timeout: 264 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
jwang has joined #ruby
AndChat| has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
lledet has joined #ruby
raul782 has joined #ruby
mikepack has joined #ruby
Kudos has joined #ruby
lggr has joined #ruby
mmitchell has quit [Remote host closed the connection]
joofsh has quit [Quit: Leaving]
raul782 has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 268 seconds]
Kudos has quit [Ping timeout: 264 seconds]
chazu` has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Kudos has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
chazu has quit [Ping timeout: 268 seconds]
Forevernade has joined #ruby
linoj has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
awarner has joined #ruby
dpk has joined #ruby
emmanuelux has quit [Ping timeout: 246 seconds]
Banistergalaxy has joined #ruby
Mon_Ouie has joined #ruby
AndChat| has joined #ruby
lggr has joined #ruby
A124 has left #ruby [#ruby]
yakitori has joined #ruby
timonv has joined #ruby
ph^ has joined #ruby
Banistergalaxy has quit [Ping timeout: 260 seconds]
raul782 has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
lggr has quit [Ping timeout: 244 seconds]
ThePeach has left #ruby [#ruby]
timonv has quit [Ping timeout: 246 seconds]
mrflip has quit [Quit: mrflip]
diegoviola has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
deryl has quit [Quit: Leaving.]
wpaulson has joined #ruby
AndChat- has joined #ruby
lledet has quit [Quit: lledet]
frogstarr78 has joined #ruby
AndChat| has quit [Ping timeout: 260 seconds]
lggr has quit [Ping timeout: 246 seconds]
xyzodiac has joined #ruby
lledet has joined #ruby
chessguy has quit [Remote host closed the connection]
blazes816 has joined #ruby
ryanf has quit [Quit: leaving]
lggr has joined #ruby
Banistergalaxy has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
<Axsuul> Is there any shorthand operator for... x = y if y
<Axsuul> something like coffeescript's ?=
<Spooner> That already is shorthand (postfix if). x = y || x isn't any shorter. But no, no magic operator for that.
AndChat- has quit [Ping timeout: 260 seconds]
A124 has joined #ruby
A124 has quit [Max SendQ exceeded]
lggr has quit [Ping timeout: 244 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
<theoros> 03:29:12 <meatcomputer> nice tune. I downloaded fruity loops today. I might actually piddle with it. I don't use recreational drugs anymore so this appeals a little less to me than it may have in the past.
<theoros> oops wrong window :)
bradhe has quit [Remote host closed the connection]
mercwithamouth has joined #ruby
cakehero has joined #ruby
A124 has joined #ruby
A124 has left #ruby [#ruby]
lggr has joined #ruby
bradhe has joined #ruby
naz has joined #ruby
ph^ has joined #ruby
Drewch has quit [Excess Flood]
mikepack_ has quit [Remote host closed the connection]
Drewch has joined #ruby
chendo has quit [Quit: Leaving...]
jenrzzz has joined #ruby
radic has quit [Disconnected by services]
radic_ has joined #ruby
raul782 has quit [Remote host closed the connection]
radic_ is now known as radic
ttt has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
tastycakeman has joined #ruby
dmiller has joined #ruby
AndChat- has joined #ruby
lggr has joined #ruby
love_color_text has quit [Remote host closed the connection]
cakehero has quit [Quit: Computer has gone to sleep.]
wmoxam has quit [Quit: leaving]
ph^ has quit [Ping timeout: 264 seconds]
banghouse2 has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
GoHuyGo has joined #ruby
wmoxam has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
lyaunzbe has quit [Ping timeout: 268 seconds]
centipedefarmer has joined #ruby
<chiel> any of you have suggestions on what to read if you have to create an oauth2 implementation?
lledet has quit [Quit: lledet]
banghouse2 has quit [Remote host closed the connection]
lggr has joined #ruby
Soul_Est has joined #ruby
chendo has joined #ruby
mmitchell has joined #ruby
horofox has joined #ruby
Aristata has joined #ruby
dpk has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 248 seconds]
gmci has quit [Quit: Computer has gone to sleep.]
Cache_Money has joined #ruby
<elico> I want cgi script to send incrementing updates to the browser anyone have dont it?
mmitchell has quit [Ping timeout: 244 seconds]
chazu` has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
dpk has joined #ruby
dmiller has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
hbpoison has quit [Ping timeout: 240 seconds]
tastycakeman has quit [Quit: Leaving]
ph^ has joined #ruby
zeromodulus has quit [Remote host closed the connection]
lggr has joined #ruby
bigmeow has quit [Ping timeout: 244 seconds]
ananthakumaran has joined #ruby
SeySayux has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 264 seconds]
<chiel> anyone know if this is any good: https://github.com/nov/rack-oauth2 ?
SCommette has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
dpk has quit [Quit: Ceci n'est pas une broken pipe.]
SeySayux has joined #ruby
lggr has joined #ruby
<davidcelis> no
wpaulson has joined #ruby
zeromodulus has joined #ruby
<chiel> davidcelis: don't know, or it's no good? :p
<davidcelis> yes
<chiel> davidcelis: >:(
<davidcelis> dude use your judgement
<davidcelis> it has 164 stars, was active only a month ago, is fairly well documented...
<davidcelis> what do you think?
<chiel> all they have is a sample rails app, and i'm not all that great at rails, so i'm having trouble telling how easy it is to use
xbayrockx has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
Spooner has quit [Ping timeout: 246 seconds]
mmitchell has joined #ruby
<blazes816> well if you're not good at rails probably very difficult
wpaulson_ has joined #ruby
ananthakumaran has quit [Ping timeout: 256 seconds]
swarley has joined #ruby
<davidcelis> i lied
<davidcelis> it's not fairly well documented
<davidcelis> all it has is that README
<swarley> ?
lggr has joined #ruby
<swarley> sbdb is best database gem imo, prove me wrong (not i challenge i just want to know if there is anything as seemless that works better)
<swarley> not a challenge*
raul782 has joined #ruby
wpaulson has quit [Ping timeout: 264 seconds]
wpaulson_ is now known as wpaulson
ananthakumaran has joined #ruby
<chiel> davidcelis: yeah, it has a sample app though, but that's about it
adac has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 256 seconds]
blazed has quit []
BrokenCog has quit [Quit: leaving]
horofox_ has joined #ruby
lggr has joined #ruby
mikepack has joined #ruby
horofox has quit [Ping timeout: 245 seconds]
horofox_ is now known as horofox
ph^ has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
vlad_starkov has joined #ruby
stan_man_can has quit [Quit: stan_man_can]
xyzodiac has quit [Quit: Computer has gone to sleep.]
vlad_starkov has quit [Read error: Connection reset by peer]
chimay has joined #ruby
Banistergalaxy has joined #ruby
AndChat| has joined #ruby
lggr has joined #ruby
mrflip has joined #ruby
xyzodiac has joined #ruby
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
AndChat- has quit [Ping timeout: 240 seconds]
Banistergalaxy has quit [Ping timeout: 246 seconds]
samuelkadolph has quit [Quit: Quitting]
ph^ has quit [Ping timeout: 245 seconds]
samuelkadolph has joined #ruby
horofox_ has joined #ruby
horofox has quit [Read error: Connection reset by peer]
horofox has joined #ruby
ananthakumaran has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 260 seconds]
samuelkadolph has quit [Client Quit]
horofox_ has quit [Ping timeout: 268 seconds]
samuelkadolph has joined #ruby
samuelkadolph has quit [Client Quit]
lggr has joined #ruby
samuelkadolph has joined #ruby
gllmpn has joined #ruby
lushious has joined #ruby
GoHuyGo has quit [Quit: Leaving]
mr-rich has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
lggr has quit [Ping timeout: 244 seconds]
jarred has joined #ruby
null- has left #ruby [#ruby]
raul782 has quit [Remote host closed the connection]
ananthakumaran has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
samuelkadolph has quit [Quit: Quitting]
samuelkadolph has joined #ruby
lggr has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
chimkan_ has joined #ruby
justinmcp has quit [Remote host closed the connection]
kiyoura has quit [Quit: Leaving]
justinmcp has joined #ruby
jwang has quit [Remote host closed the connection]
ph^ has joined #ruby
jarred has quit [Quit: jarred]
akoumjian has joined #ruby
stan_man_can has joined #ruby
xyzodiac has joined #ruby
n_blownapart has joined #ruby
lggr has joined #ruby
mr-rich has joined #ruby
<akoumjian> Hi all. Curious if Ruby gems have an equivelant to Python's "setup.py develop". Essentially is there a way to install a gem that is essentialy a symlink to my working directory for development purposes.
jenrzzz has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 260 seconds]
ph^ has quit [Ping timeout: 248 seconds]
stan_man_can has quit [Quit: stan_man_can]
Vinz_ is now known as Vinaway
Vinaway is now known as Vinzaway
joeycarmello has quit [Remote host closed the connection]
chimkan_ has quit [Quit: chimkan_]
<blazes816> akoumjian: have the gem in a directory (most likely a git repo) on your computer, then use a Gemfile with "gem 'my_gem', :path => '~/gems/my_gem'"
lggr has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
<akoumjian> blazes816: So then after I do "gem install", other scripts which require the gem will point to the one in my working directory?
lggr has quit [Ping timeout: 256 seconds]
<blazes816> it wouldn't be system wide, only per project
<blazes816> if you go into the directory the gem is installed you can edit it and achieve what you want
<n_blownapart> hi , sorry beginner question: how do I get this sorted with the painting objects names (picasso, etc.) and not the object_id? (or is that called constructor id?) thanks: http://pastie.org/4783782
<blazes816> checkout your git repo into your gem path and you should be able to do it
Quadlex has quit [Read error: Connection reset by peer]
rippa has joined #ruby
<n_blownapart> ^^ i.e. I can't tell if the block and sorting is working. thanks
lggr has joined #ruby
<swarley> n_blownapart, you need to assign price in initialize
<swarley> @price = price
Jellyg00se has quit [Remote host closed the connection]
<n_blownapart> swarley: that was just dawning on me...at least that the problem was in initialize. hold on one sec...thanks
<swarley> no problem
tk___ has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
<n_blownapart> #<Painting:0x00000100928050>
<n_blownapart> #<Painting:0x00000100928078>
chimay has quit [Ping timeout: 246 seconds]
<n_blownapart> swarley: still I get this when I run it ^^
<swarley> code?
mikepack has quit [Remote host closed the connection]
<n_blownapart> I'm expecting a sorted array with ascending numbers for price. swarley
<n_blownapart> no, I mean with the painters' names (the value of a picasso i.e.) swarley
sent-hil has joined #ruby
<swarley> n_blownapart, can you post the updated code?
bananagram has quit [Ping timeout: 264 seconds]
<n_blownapart> hold on pastie is down apparently swarley
<n_blownapart> thanks ^^
<swarley> no problem
lggr has joined #ruby
<n_blownapart> swarley: well, its down , but I just added @price = price in initialize as per your suggestion.
<swarley> okay, let me run your code myself
<swarley> just one second
samuelkadolph has quit [Quit: Quitting]
samuelkadolph has joined #ruby
ph^ has joined #ruby
<n_blownapart> swarley: edited: http://pastie.org/4783782 thanks for the help!
Soul_Est has quit [Quit: WeeChat 0.3.8]
<swarley> n_blownapart, try changing the last line to
<swarley> puts price_sort.map(&:price)
<swarley> add the .inspect on the end if you want to see the actual array
<n_blownapart> kay, will check that out thanks swarley
lggr has quit [Ping timeout: 246 seconds]
<swarley> no problem
frogprince has quit []
justinmcp has quit [Remote host closed the connection]
tehgeekm_ has joined #ruby
joeycarmello has joined #ruby
xyzodiac has quit [Quit: Computer has gone to sleep.]
<n_blownapart> hi swarley not sure why my objects picasso and van_gogh dont end up in the array. instead I get...
<n_blownapart> #<Enumerator: [#<Painting:0x00000100928050 @price=400>, #<Painting:0x00000100928078 @price=700>]:map>
<swarley> n_blownapart, are you doing this in pry/irb?
lggr has joined #ruby
<swarley> oh
<swarley> what ruby version?
<n_blownapart> no sublime2. ruby -v 1.9.3
statarb3 has quit [Quit: Leaving]
<swarley> ah
<swarley> hm
jenrzzz has joined #ruby
raul782 has joined #ruby
<swarley> oh also
<swarley> in your sort, you don't need to use a.price <=> b.price
<swarley> since you defined a method for that class
<swarley> you can just do a <=> b
tehgeekm_ is now known as tehgeekmeister
<swarley> and if you get an enumerator, you can use Enumerator#to_a
<n_blownapart> swarley: well at least they are in ascending order of price as expected. yeah I just dropped the .price i.e: a <=> b ...thanks !
<swarley> so, just add .to_a to price_sort, and it should be an array instead
hbpoison has joined #ruby
ph^ has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 246 seconds]
Chryson has quit [Quit: Leaving]
<n_blownapart> swarley: sorry a bit confused. how would I utilize Enumerator#to_a ?
rippa has quit [Read error: Connection reset by peer]
bigmeow has joined #ruby
<swarley> try
<swarley> puts price_sort.to_a.map(&:price)
joeycarmello has quit [Ping timeout: 260 seconds]
<n_blownapart> swarley: ok
<swarley> or just puts price_sort.to_a.inspect
<swarley> that will show you the objects
cyong has joined #ruby
<swarley> the map(&:price) just takes each object in the array, and puts the result of the price method into an array
lggr has joined #ruby
hbpoison has quit [Ping timeout: 268 seconds]
<n_blownapart> swarley: thanks so much...I was expected [van_gogh, picasso] (the objects in ascending order of price).
<n_blownapart> expecting*
<swarley> Ohh, you can't get the actual names of the variables sadly
xorgnak has joined #ruby
<swarley> I don't believe, at least
<n_blownapart> why is that swarley ?
<swarley> because they are most likely turned into bytecode which doesnt care about the names as much, it probably handles the objects with the Object#object_id
<swarley> [99] pry(main)> "hello".object_id
<swarley> => 20963300
<n_blownapart> swarley: thanks because anyway, I'm happy with the inspect -- because at least I got the program running where I can see that it works.
<n_blownapart> swarley: gratzie !
<swarley> Mhm, you'll find that you don't actually need the names
mmitchell has quit [Remote host closed the connection]
<swarley> no problem at all. ask again if you need help
<n_blownapart> swarley: yeah , the point of the lesson was using <=> with sort, without mixing comparable in. thanks for the future offer ! pax
monkegjinni has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 260 seconds]
horofox has quit [Ping timeout: 246 seconds]
tr4656 has quit [Ping timeout: 245 seconds]
tr4656_ has joined #ruby
bradhe has quit [Remote host closed the connection]
GraemeLion has quit [Quit: out]
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
vlad_starkov has joined #ruby
dakine has quit [Ping timeout: 240 seconds]
lggr has joined #ruby
horofox has joined #ruby
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
mmitchell has joined #ruby
lggr has quit [Ping timeout: 260 seconds]
robustus has joined #ruby
Coad has joined #ruby
<Coad> Hey :)
Coad has quit [Client Quit]
mmitchell has quit [Ping timeout: 244 seconds]
n_blownapart has quit [Remote host closed the connection]
<blazes816> Ho!
xorgnak has quit [Remote host closed the connection]
xorgnak has joined #ruby
lggr has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
ph^ has joined #ruby
<m3pow> guys, i am currently learning Ruby and on this website i have a task
nimred has joined #ruby
nimred has joined #ruby
jgrevich_ has joined #ruby
<m3pow> is that a good approach , or i could have dont it differently
jgrevich has quit [Ping timeout: 248 seconds]
jgrevich_ is now known as jgrevich
joeycarmello has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
ztirf has joined #ruby
rh1n0 has joined #ruby
<rh1n0> I have a rails mailer class and am trying to dynamically call various methods (templates). (MyMailer.send mailer_method_var.to_sym, some_user_obj) this is fine but how would i tack on the required .deliver to the end of the 'send' statement? I thought this would be more of a ryby than rails question. Sorry if not.
<rh1n0> how about (MyMailer.send mailer_method_var.to_sym, some_user_obj).deliver ? cant be that simple can it? :)
tehgeekm_ has joined #ruby
sepp2k has joined #ruby
AlbireoX`Laptop has quit [Ping timeout: 256 seconds]
ztirf has quit [Client Quit]
dwon has joined #ruby
null- has joined #ruby
baphled has joined #ruby
<m3pow> where's shevy when you need him
Axsuul has quit [Ping timeout: 240 seconds]
joeycarmello has quit [Ping timeout: 248 seconds]
tehgeekmeister has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
RudyValencia has joined #ruby
lggr has joined #ruby
tehgeekm_ has quit [Remote host closed the connection]
horofox has quit [Quit: horofox]
lggr has quit [Ping timeout: 245 seconds]
SCommette has quit [Quit: SCommette]
vlad_starkov has quit [Read error: Connection reset by peer]
heftig has quit [Quit: leaving]
baphled has quit [Ping timeout: 246 seconds]
uris has quit [Quit: leaving]
<blazes816> puts "I recommend you to try this number: #{favorite_number + 1}"
<blazes816> m3pow^
<blazes816> puts "My favorite number is #{favorite_number}"
<m3pow> oh, haven't got to that though
<m3pow> let me try it
<m3pow> thanks
<m3pow> that's a block right ?
<blazes816> string interpolation
<blazes816> also you should probably do "gets.strip", not "gets.chomp"
dakine has joined #ruby
lggr has joined #ruby
maletor has joined #ruby
<m3pow> would that get rid of the \n ?
<blazes816> yes
<m3pow> and why is strip better than chomp ?
<blazes816> > 9
<Cache_Money> has anyone connected to a mysql database from within a ruby file?
<blazes816> yes
<Cache_Money> I'm trying to use the ruby-mysql gem but having trouble.. what's your approach?
<blazes816> using data-mapper
joeycarmello has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
<Cache_Money> blazes816: what if I didn't want to use an ORM..
<blazes816> Cache_Money: you'd use the mysql gem, but I've never used it by itself
<blazes816> m3pow: because there may be leading whitespace as well as trailing
<m3pow> so strip just returns a clean string
<blazes816> if by clean you mean without any leading or trailing whitespace, yes
<blazes816> it's effectively:
<blazes816> string.gsub /\s*(.*?)\s*/, '\\1'
ph^ has joined #ruby
<sent-hil> Cache_Money: i hear mysql2 is very good
khasymoff has joined #ruby
<Cache_Money> sent-hil: looking into it. Thanks
khasymoff has left #ruby [#ruby]
ttt has quit [Remote host closed the connection]
stan_man_can has joined #ruby
bradhe has quit [Remote host closed the connection]
arturaz has joined #ruby
lggr has joined #ruby
gllmpn has quit [Remote host closed the connection]
bradhe has joined #ruby
stan_man_can has quit [Client Quit]
<m3pow> Cache_Money, is this ok ? http://pine.fm/LearnToProgram/?Chapter=01
blazes816 has quit [Quit: blazes816]
lggr has quit [Ping timeout: 246 seconds]
mercwithamouth has quit [Ping timeout: 260 seconds]
<Cache_Money> is what okay?
<m3pow> to study from there ?
swarley has quit [Ping timeout: 245 seconds]
<Cache_Money> what are you trying to learn?
<m3pow> ruby
<Cache_Money> i like this guy's approach http://ruby.learncodethehardway.org/book/
<sent-hil> m3pow: have you programmed before?
ph^ has quit [Ping timeout: 264 seconds]
<m3pow> yes i have a bit,
<sent-hil> m3pow: that pine book is for beginners, try well grounded rubyist
<sent-hil> !learnruby
<m3pow> !learnruby
<sent-hil> no bot access
<m3pow> yes
<Cache_Money> sent-hil: I can install the mysql2 gem on my machine but it won't install on my EC2 instance http://pastie.org/4784061
<Cache_Money> any idea why that happen?
<sent-hil> Cache_Money: install the mysql driver
<m3pow> thanks for the tip sent-hil
<sent-hil> Cache_Money: sudo apt-get install libmysqlclient-dev libmysqlclient16 ruby-dev
lggr has joined #ruby
cburyta has quit [Remote host closed the connection]
bradhe has quit [Remote host closed the connection]
<Cache_Money> sent-hil: wierd.. still getting error
bradhe has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
Guest64548 has joined #ruby
<sent-hil> Cache_Money: hmm, its def. an issue of having to install additional ubuntu pkg, just need to find out which one
<Cache_Money> ok
<Cache_Money> i'll look into
<Cache_Money> thanks
<Hanmac1> Cache_Money insall ruby1.9.1-full
Hanmac1 is now known as Hanmac
moted has quit [Ping timeout: 244 seconds]
locriani has quit [Ping timeout: 244 seconds]
bradhe has quit [Ping timeout: 240 seconds]
zxcasdqwe has joined #ruby
lggr has joined #ruby
Spaceghostc2c has quit [Read error: Operation timed out]
xiphiasx_ has quit [Read error: Connection reset by peer]
gurps has quit [*.net *.split]
anekos has quit [*.net *.split]
crack_head has quit [*.net *.split]
David_Miller has quit [*.net *.split]
ezra has quit [*.net *.split]
deadSnowman has quit [*.net *.split]
jayne has quit [*.net *.split]
tessi has quit [*.net *.split]
altivec has quit [*.net *.split]
lahwran has quit [*.net *.split]
theoros has quit [*.net *.split]
KindOne has quit [*.net *.split]
msch has quit [*.net *.split]
juha_ has quit [*.net *.split]
ereslibre has quit [*.net *.split]
Hunner has quit [*.net *.split]
epochwolf has quit [*.net *.split]
bperry has quit [*.net *.split]
TheNumb has quit [*.net *.split]
drags has quit [*.net *.split]
_root_ has quit [*.net *.split]
elektronaut has quit [*.net *.split]
Nanuq has quit [*.net *.split]
playmuc_ has quit [*.net *.split]
mafs has quit [*.net *.split]
drmegahertz has quit [*.net *.split]
yoklov has quit [Quit: computer sleeping]
Voxxit has quit [Read error: Operation timed out]
Sargun has quit [Read error: Operation timed out]
sejo has quit [Read error: Operation timed out]
xiphiasx_ has joined #ruby
Musfuut has quit [Read error: Operation timed out]
tr4656_ has quit [Read error: Operation timed out]
spathi has quit [Read error: Operation timed out]
joni has quit [Read error: Operation timed out]
tommyvyo has quit [Quit: Computer has gone to sleep.]
DarkFoxDK has quit [Read error: Operation timed out]
drPoggs has quit [Read error: Operation timed out]
mariooo has quit [Read error: Operation timed out]
sejo has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
Sargun has joined #ruby
fyolnish has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
mariooo has joined #ruby
drPoggs has joined #ruby
DarkFoxDK has joined #ruby
Musfuut has joined #ruby
<Cache_Money> Hanmac1: I installed ruby1.9.1-full but I'm still getting an error http://pastebin.com/KV7t0wAW
Musfuut is now known as Guest41156
spathi has joined #ruby
tr4656 has joined #ruby
joni has joined #ruby
Voxxit has joined #ruby
<sent-hil> Cache_Money: you're getting a diff. error now, which is good
<Cache_Money> true
<sent-hil> install make
<sent-hil> is this a new ec instance?
zxcasdqwe is now known as mero
<Cache_Money> yes
KindTwo has joined #ruby
<Cache_Money> installing make worked!
<Cache_Money> thanks
Spaceghostc2c has joined #ruby
<sent-hil> you bet
<sent-hil> maybe one day we'll have smart enough error msg to tell you how to fix stuff
<Cache_Money> haha
mero has quit [Quit: mero]
ph^ has joined #ruby
lggr has joined #ruby
joeycarmello has quit [Remote host closed the connection]
mucker has joined #ruby
shaman42 has quit [Ping timeout: 246 seconds]
happosade has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 246 seconds]
fantazo has quit [Remote host closed the connection]
nw has quit [Ping timeout: 256 seconds]
gurps has joined #ruby
playmuc_ has joined #ruby
mafs has joined #ruby
Nanuq has joined #ruby
drmegahertz has joined #ruby
ezra has joined #ruby
crack_head has joined #ruby
David_Miller has joined #ruby
Hunner has joined #ruby
deadSnowman has joined #ruby
anekos has joined #ruby
jayne has joined #ruby
lahwran has joined #ruby
drags has joined #ruby
juha_ has joined #ruby
msch has joined #ruby
altivec has joined #ruby
tessi has joined #ruby
TheNumb has joined #ruby
epochwolf has joined #ruby
elektronaut has joined #ruby
ereslibre has joined #ruby
_root_ has joined #ruby
bperry has joined #ruby
theoros has joined #ruby
<Cache_Money> I'm following a ruby-mysql example, and it's working, but the rescue statement is wonky http://pastebin.com/MuXfXNhk
lggr has joined #ruby
Yu\2 has joined #ruby
locriani has joined #ruby
cburyta has joined #ruby
Erfankam has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
kryl99_ has joined #ruby
kryl99_ has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 240 seconds]
bradyl0ve has joined #ruby
justinmcp has joined #ruby
KindTwo is now known as KindOne
Morkel has joined #ruby
cburyta has quit [Ping timeout: 244 seconds]
Solnse has joined #ruby
Monie has quit [Read error: Connection reset by peer]
hbpoison has joined #ruby
lggr has joined #ruby
<Hanmac> Cache_Money: hm change the bang line to: #!/usr/bin/env ruby
<Hanmac> but otherwise i dont know why your rescue is "wonky" oO
<Cache_Money> Hanmac: when there's an error it puts it out but when there isn't an error it says undefined local variable or method 'e'
<Hanmac> when there is no error it should NOT go into the rescue subsection ... oO
hbpoison has quit [Ping timeout: 245 seconds]
<Cache_Money> i know, odd
lggr has quit [Ping timeout: 248 seconds]
<Cache_Money> Hanmac: I mispelled rescue D'oh!
ttt has joined #ruby
<Hanmac> fu** and i didnt notic that too
happosade has joined #ruby
<Cache_Money> haha
ttt has quit [Read error: Connection reset by peer]
nw has joined #ruby
ttt has joined #ruby
nari has joined #ruby
Guest64548 has quit [Ping timeout: 264 seconds]
ttt_ has joined #ruby
Banistergalaxy has joined #ruby
lggr has joined #ruby
shaman42 has joined #ruby
raul782 has quit [Remote host closed the connection]
jgrevich_ has joined #ruby
jgrevich has quit [Read error: Connection reset by peer]
jgrevich_ is now known as jgrevich
ttt has quit [Ping timeout: 240 seconds]
AndChat| has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 256 seconds]
s1n4 has joined #ruby
ph^ has joined #ruby
bobbbo has joined #ruby
swarley has joined #ruby
<swarley> i sure wish that the sender gem worked out of box
<swarley> i mean
<swarley> it does
<swarley> but ruby doesnt work with it
<Hanmac> swarley did you maybe use the wrong ruby?
<swarley> no, its a compile option
<swarley> i had to recompile ruby and take away the hidden option
<rh1n0> \quit
rh1n0 has quit [Quit: leaving]
hbpoison has joined #ruby
lggr has joined #ruby
ph^ has quit [Ping timeout: 264 seconds]
bradyl0ve has quit [Quit: Linkinus - http://linkinus.com]
lggr has quit [Ping timeout: 256 seconds]
Hamed-R has joined #ruby
joeycarmello has joined #ruby
br4ndon has joined #ruby
lggr has joined #ruby
AndChat| has joined #ruby
AndChat- has joined #ruby
heftig has joined #ruby
seoaqua has quit [Ping timeout: 246 seconds]
Banistergalaxy has quit [Ping timeout: 246 seconds]
mucker has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 245 seconds]
AndChat| has quit [Ping timeout: 246 seconds]
joeycarmello has quit [Ping timeout: 240 seconds]
s1n4 has quit [Ping timeout: 260 seconds]
Cache_Money has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
cyong has quit [Quit: Leaving.]
s1n4 has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
swarley has quit [Ping timeout: 244 seconds]
bradhe has joined #ruby
Banistergalaxy has joined #ruby
AndChat| has joined #ruby
idletom has quit []
juarlex_ has joined #ruby
acrocity has joined #ruby
pskosinski has joined #ruby
AndChat- has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
bradhe has quit [Ping timeout: 244 seconds]
juarlex has quit [Ping timeout: 246 seconds]
banisterfiend has joined #ruby
Erfankam has quit [Quit: Leaving.]
Banistergalaxy has quit [Ping timeout: 264 seconds]
Banistergalaxy has joined #ruby
AndChat| has quit [Ping timeout: 264 seconds]
lggr has quit [Ping timeout: 256 seconds]
s1n4 has quit [Ping timeout: 240 seconds]
ph^ has joined #ruby
echobravo has quit [Read error: Connection reset by peer]
AndChat| has joined #ruby
Mon_Ouie has quit [Remote host closed the connection]
Banistergalaxy has quit [Ping timeout: 264 seconds]
Mon_Ouie has joined #ruby
lggr has joined #ruby
wuzzzzaah has joined #ruby
pdelgallego has joined #ruby
seoaqua has joined #ruby
triptec has quit [Quit: triptec]
lggr has quit [Ping timeout: 264 seconds]
beneggett has joined #ruby
ph^ has quit [Ping timeout: 268 seconds]
Yu\2 has quit [Quit: Leaving]
br4ndon has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby
seoaqua has quit [Ping timeout: 240 seconds]
Paradox has joined #ruby
bobbbo has quit [Quit: bobbbo]
arturaz has quit [Remote host closed the connection]
AndChat- has joined #ruby
answer_42 has joined #ruby
teh4 has joined #ruby
adambeynon has joined #ruby
AndChat| has quit [Ping timeout: 260 seconds]
arturaz has joined #ruby
lggr has joined #ruby
Banistergalaxy has quit [Ping timeout: 244 seconds]
ltsstar has joined #ruby
rpgsimmaster has joined #ruby
specialGuest has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
hbpoison has quit [Ping timeout: 248 seconds]
lggr has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
chimay has joined #ruby
iCEAGE has joined #ruby
iCEAGE has joined #ruby
iCEAGE has quit [Changing host]
iCEAGE has quit [Remote host closed the connection]
iCEAGE has joined #ruby
bobbbo has joined #ruby
Hamed-R has quit [Ping timeout: 246 seconds]
Hanmac has quit [Ping timeout: 244 seconds]
hsbt is now known as hsbt_away
lggr has quit [Ping timeout: 260 seconds]
timonv has joined #ruby
iCEAGE is now known as Hamed-R
Hamed-R has quit [Quit: Leaving]
answer_42 has quit [Remote host closed the connection]
Hamed-R has joined #ruby
answer_42 has joined #ruby
eldariof has joined #ruby
yxhuvud has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
nicoulaj has joined #ruby
Banistergalaxy has joined #ruby
shac- has joined #ruby
chimay has joined #ruby
AndChat| has joined #ruby
ph^ has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
Criztian has joined #ruby
arietis has joined #ruby
AndChat- has quit [Ping timeout: 244 seconds]
Hanmac has joined #ruby
Solnse has quit [Ping timeout: 260 seconds]
Banistergalaxy has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
ttt_ has quit [Ping timeout: 240 seconds]
triptec has joined #ruby
icooba has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
ph^ has quit [Ping timeout: 245 seconds]
lggr has joined #ruby
shac- has left #ruby ["Linkinus - http://linkinus.com"]
budha has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
yshh has quit [Remote host closed the connection]
ph^ has joined #ruby
gener1c has joined #ruby
<gener1c> ls
<gener1c> hey
<gener1c> does anyone have an idea on how to use gepub to edit the content of the epub itself if its even possible?
sent-hil has quit [Remote host closed the connection]
hsbt_away is now known as hsbt
demian`_ has joined #ruby
timonv has quit [Remote host closed the connection]
demian`_ has quit [Client Quit]
lggr has joined #ruby
quest88 has quit [Quit: quest88]
My_Hearing has joined #ruby
My_Hearing has quit [Changing host]
My_Hearing has joined #ruby
Mon_Ouie has quit [Read error: Connection reset by peer]
pingfloyd has quit [Ping timeout: 244 seconds]
fyolnish has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
My_Hearing is now known as Mon_Ouie
lggr has joined #ruby
Criztian has quit [Read error: Connection reset by peer]
jgrevich has quit [Read error: Connection reset by peer]
Criztian has joined #ruby
timonv has joined #ruby
jgrevich has joined #ruby
Banistergalaxy has joined #ruby
elico has quit [Quit: elico]
AndChat- has joined #ruby
Criztian has quit [Excess Flood]
Criztian has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Aristata has quit [Quit: Leaving.]
AndChat| has quit [Ping timeout: 256 seconds]
Banistergalaxy has quit [Ping timeout: 246 seconds]
seoaqua has joined #ruby
chimay has quit [Quit: WeeChat 0.3.9-rc1]
shiki has quit [Remote host closed the connection]
shiki has joined #ruby
hiroyuki has quit [Read error: Connection reset by peer]
lggr has joined #ruby
hiroyuki has joined #ruby
Russell^^ has joined #ruby
c0rn_ has quit []
<jokar> shevy : Hi,How are you? how can i save my score in tryruby.org?
kryl99_ has joined #ruby
timonv has quit [Remote host closed the connection]
fyolnish has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
shiki has quit [Ping timeout: 264 seconds]
chimay has joined #ruby
omry has quit [Ping timeout: 252 seconds]
lggr has joined #ruby
zommi has joined #ruby
Vinzaway is now known as Vinz_
jokar has quit [Ping timeout: 246 seconds]
lggr has quit [Ping timeout: 246 seconds]
fyolnish has quit [Ping timeout: 245 seconds]
kryl99_ has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
omry has joined #ruby
bradhe has joined #ruby
cantonic_ has joined #ruby
lggr has joined #ruby
joeycarmello has joined #ruby
lkba has quit [Ping timeout: 240 seconds]
<matti> ;]
cantonic has quit [Ping timeout: 256 seconds]
cantonic_ is now known as cantonic
lggr has quit [Ping timeout: 256 seconds]
JarJar has joined #ruby
timonv has joined #ruby
lggr has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
joeycarmello has quit [Ping timeout: 240 seconds]
monkegjinni has joined #ruby
hsbt is now known as hsbt_away
khasymoff has joined #ruby
khasymoff has left #ruby [#ruby]
acrocity_ has joined #ruby
jamjam has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
rakl has quit [Quit: gone]
acrocity has quit [Ping timeout: 246 seconds]
acrocity_ is now known as acrocity
lggr has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
reset has quit [Ping timeout: 272 seconds]
adac has joined #ruby
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
jgrevich has quit [Quit: jgrevich]
Bosma has quit [Read error: Connection reset by peer]
omry has quit [Remote host closed the connection]
havenn has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
teh4 has quit [Quit: Leaving]
dmnd has joined #ruby
dmnd has quit [Changing host]
dmnd has joined #ruby
timonv has quit [Remote host closed the connection]
lggr has joined #ruby
dmnd has quit [Quit: dmnd]
hsbt_away is now known as hsbt
timonv has joined #ruby
havenn has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 246 seconds]
wallerdev has quit [Quit: wallerdev]
paissad has left #ruby [#ruby]
lggr has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Virunga has joined #ruby
heisenmink has joined #ruby
heisenmink has quit [Remote host closed the connection]
monkegjinni has quit [Remote host closed the connection]
heisenmink has joined #ruby
heisenmink is now known as awestroke
lggr has joined #ruby
tds has joined #ruby
monkegjinni has joined #ruby
adambeynon has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
lkba has joined #ruby
Guest29702 has joined #ruby
<gener1c> im trying to list the entries in a zip using rubyzip and the ZipFsDir class object wont return the dirs inside the listed dir just the files, any idea on how to solve this?
<gener1c> Zip::Zipfile.open("some.zip") {|zip| puts zipfile.dir.entries("/")}
lggr has joined #ruby
Virunga has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 244 seconds]
moshee has quit [Ping timeout: 256 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
answer_42 has quit [Write error: Broken pipe]
lggr has joined #ruby
answer_42 has joined #ruby
timonv has quit [Remote host closed the connection]
xzy has joined #ruby
vitoravelino is now known as vitoravelino`afk
jokar has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
arturaz has quit [Read error: Operation timed out]
<shevy> jokar dont you use linux? if so copy then paste via mouse button in your graphical editor, then save it
<jokar> shevy : wait
<gener1c> wat?
<jokar> shavy : i use Linux,but my IRC clien is GUI
lggr has joined #ruby
<jokar> shevy : do you saw my previous question? Excuse me i have a electrical problem :(
<jokar> it is solved :)
<gener1c> is there a way to edit a file on the hdd without loading it to mem?
<gener1c> just loading it say... line by line
<gener1c> readlines?
<gener1c> no that returns an array
lggr has quit [Ping timeout: 268 seconds]
<shevy> gener1c, via byte seeking perhaps
<gener1c> thats c
Virunga has joined #ruby
<jokar> shevy : how can i save my score in tryruby.org?
<gener1c> wow that would make iterating over the file alot harder
<shevy> jokar no idea. I dont use tryruby.org, but why dont you copy paste it into your editor?
pdelgallego has quit [Quit: pdelgallego]
<jokar> shvey : i download a book that you recommended and i will read it but for learning via web tryruby.org is a very good place
neku has joined #ruby
<shevy> gener1c either you load it completely into ram, via readlines or something like that, or you must manage the loading part on your own, like via repeteated .seek
vitoravelino`afk is now known as vitoravelino
<Vinz_> jokar: Why don't make an account, it seems that you can save your progress and score with it
<Vinz_> don't you*
<jokar> yes but link not work :(
<Vinz_> Err :/
<jokar> Vinz_: can you check it?
<Vinz_> Register link ?
<jokar> yes
<jokar> it is not work
<Vinz_> I just registered and signed in ^^
<shevy> hehe
<shevy> jokar needs to get better at the basic things :)
<jokar> it is not possible
<Vinz_> I just made it :D
<jokar> shevy : register link not worked :(
<Vinz_> If I am able, everyone can do it x)
Beoran_ has quit [Ping timeout: 244 seconds]
wuzzzzaah has quit [Quit: wuzzzzaah]
lggr has joined #ruby
moshee has quit [Ping timeout: 256 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
timonv has joined #ruby
<jokar> shevy : Please check link
<jokar> Vinz_: please check link
<Vinz_> Hm yeah
<Vinz_> It asks me to sign up or log in
<shevy> jokar this link redircts me
<Vinz_> And here I am
<Vinz_> Logged in
<Vinz_> I registered by the same page
<jokar> 404 not found
<shevy> jokar anyway man. if you believe that you can learn ruby only via codeschool, perhaps don't learn ruby :P
timonv has quit [Remote host closed the connection]
<Vinz_> shevy: I never learned ruby, but i still use it x)
<shevy> hehe
<jokar> shevy : as i told,i will read a book that you recommended,but for free time i want use web
<jokar> it is interested
<jokar> :)
arietis has quit [Quit: Computer has gone to sleep.]
timonv has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
LouisGB has joined #ruby
arietis has joined #ruby
timonv has quit [Remote host closed the connection]
<shevy> I don't recommend this
pskosinski has quit [Ping timeout: 276 seconds]
<jokar> why?
<shevy> I recommend to work through chris pine tutorial once, then look at official documentation of class Array, class Hash, class String, and then immediately start writing small .rb scripts
<jokar> i create an account :P
<jokar> sure
<shevy> yes but how does the account help you learn and use ruby :)
<jokar> but book is very good for travel
<shevy> Look up, you asked how to save things you typed in tryruby
<jokar> yes
<shevy> this problem you would never have, if you would use a local editor and write your .rb script
<jokar> link is damage and i redirect to the new page
<shevy> ...
<shevy> :P
<Vinz_> i agree with shevy
<jokar> you right
<shevy> perhaps future people will live in the web cloud
<shevy> but basic things are simple and they work
<shevy> local editors!
iocor has joined #ruby
<shevy> you don't even have to use vim or emacs
timonv has joined #ruby
<shevy> jokar, you can also check out pry, it should allow you to save snippets
<jokar> ?
<jokar> aha
lggr has joined #ruby
<shevy> jokar: http://pryrepl.org/
<Vinz_> Sublime Text ♥
<shevy> sublime is nice
<shevy> I am trying to abandon my current editor
<Vinz_> Best editor out there
<Vinz_> :)
<shevy> geany or sublime I shall eventually pick :)
dpk has joined #ruby
<Vinz_> Geany is not bad too :)
<banisterfiend> Vinz_ emacs is better
<shevy> it looks best yeah. I am not entirely sure if geany is not nicer though, at least they are on IRC and I can ask them things hehe
<Vinz_> banisterfiend: vim is better than emacs
<shevy> "nicer" as in functional for my needs
niklasb has joined #ruby
<banisterfiend> Vinz_ nope. Let's see you do something like "xiki" in vim :)
<Vinz_> :D
<jokar> shevy :very good
<shevy> one day I hope we can select components in different toolkits, and re-assemble something built from these components
<shevy> so like build up your own custom editor
<shevy> without having to know C
<banisterfiend> shevy emacs lets you do that using elisp
<Vinz_> Whaaaaaaaaaaaat ?
Beoran_ has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
<Mon_Ouie> People who use Emacs for a long time end up customizing so many little things they would have a hard time using someone else's configuration
notVert has joined #ruby
<shevy> that is understandable - there are lots of settings to be done in any OS. Emacs is no exception here
Nisstyre has quit [Ping timeout: 245 seconds]
Guedes0 has joined #ruby
bradhe has joined #ruby
lggr has joined #ruby
timonv has quit [Remote host closed the connection]
bradhe has quit [Ping timeout: 248 seconds]
tds has quit [Quit: tds]
grainne has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
F1skr has joined #ruby
lggr has joined #ruby
RegEchse has joined #ruby
frogprince has joined #ruby
Nisstyre has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
gener1c has quit [Disconnected by services]
gener1c_ has joined #ruby
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
wpaulson has joined #ruby
arubin has joined #ruby
lggr has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<ij> Any idea how to do this simpler? http://sprunge.us/TdPY
specialGuest has quit [Ping timeout: 256 seconds]
guy has joined #ruby
heftig has quit [Read error: Connection reset by peer]
<guy> I've never used Ruby before, & I need some help with SASS gem. Anyone is willing to dedicate 5 minutes of guidance?
<ij> guy, Ask the question.
arubin has quit [Quit: arubin]
<Vinz_> Do not ask to ask :)
heftig has joined #ruby
<guy> Briefly, I have the gem setup, I am able to convert "sass test.scss test.css" but there is one thing I want to do – if exception is thrown during the "compilation" of the scss file, I need CSS file to contain a JSON of the exception object.
icooba has quit [Ping timeout: 260 seconds]
<guy> (without any CSS)
lggr has joined #ruby
<ij> That doesn't sound too smart, but okay — how are you currently compiling the file? Scss binary, right?
<guy> Yes. Well, I used to do that using LESS, and it was miraculously helpful.
pdelgallego has joined #ruby
<guy> "sass" binary, really.
<ij> Well the sass binary isn't too complicted, you could write your own or copy the existing one and modify it according to your needs.
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<guy> Usually touching the library code isn't a smart idea.
<guy> Isn't there a way to create a custom .rb script that would invoke SASS class (or whatever it is called in ruby) with my custom options and exception handling?
<shevy> guy only if the class in question allows you to do so
lkba has quit [Ping timeout: 260 seconds]
<shevy> you could try to subclass, or directly extend the class in question
lggr has quit [Ping timeout: 264 seconds]
<guy> Well, does it? This is why I asked for someone with ruby + sass exposure.
<shevy> dunno. never used sass myself so far
icooba has joined #ruby
guy has quit [Ping timeout: 244 seconds]
Norrin has quit [Ping timeout: 268 seconds]
Morkel has quit [Quit: Morkel]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
lggr has joined #ruby
Guest64548 has joined #ruby
pskosinski has joined #ruby
examancer has quit [Ping timeout: 246 seconds]
jord has quit [Ping timeout: 252 seconds]
nari has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 248 seconds]
deadghost has quit [Ping timeout: 248 seconds]
bradhe has joined #ruby
specialGuest has joined #ruby
lkba has joined #ruby
timonv has joined #ruby
lggr has joined #ruby
Norrin has joined #ruby
mercwithamouth has joined #ruby
pdelgallego has quit [Quit: pdelgallego]
bradhe has quit [Ping timeout: 240 seconds]
lggr has quit [Ping timeout: 245 seconds]
GraemeLion has joined #ruby
ztirf has joined #ruby
pipopopo has joined #ruby
<m3pow> hello shevy
shiki has joined #ruby
timonv has quit [Remote host closed the connection]
lggr has joined #ruby
klip has quit [Remote host closed the connection]
adac has quit [Ping timeout: 264 seconds]
shiki has quit [Remote host closed the connection]
statarb3 has quit [Quit: Leaving]
frogprince_mac has joined #ruby
wpaulson has joined #ruby
Norrin has quit [Ping timeout: 246 seconds]
guy has joined #ruby
<guy> I am still having hard time with the latter issue.
<guy> Any words of advise?
examancer has joined #ruby
<ij> I still think you should just fork the executable and adjust it to your needs.
lggr has quit [Ping timeout: 268 seconds]
thone_ has joined #ruby
jord has joined #ruby
<guy> Well, then whenever I will need to follow up the update, it will require me to re-work the executable?
<ij> Unlikely.
Norrin has joined #ruby
moshee has quit [Ping timeout: 264 seconds]
<guy> Now I am confused. Do you suggest to edit the actual gem? (where are they stored to begin with?)
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<ij> which sass
<guy> ok. found it.
<ij> And yeah, copy it to ~/.bin or wherever you want, edit it, problem solved.
thone has quit [Ping timeout: 244 seconds]
<ij> Since this sounds like a development-only issue, I think the idea is okay.
<guy> wait. so you are suggesting to edit. "/usr/bin/sass" or "/usr/lib/ruby/gems/1.8/gems/sass-3.2.1/ "
<ij> neither
<ij> I'm suggesting to edit the copy of one of them.
<ij> Of the one that you're using.
<guy> well, /usr/bin/sass is only https://gist.github.com/fc21b3b2c88f4e4d4058
lggr has joined #ruby
<ij> Yeah, it's a sort of symlink. The real file is in gems/1.8/gems/sass-blablabla/bin
<ij> Or should be.
<guy> this then.
<ij> Yeah. I thought it wouldn't be long.
<ij> There should be something more, but basically yeah.
<ij> Sass is a library so it should be easy to use from code.
nari has joined #ruby
<guy> so, I am getting further assistance or this is where you leave me? because so far it is useless.
jbw has quit [Ping timeout: 245 seconds]
lggr has quit [Ping timeout: 246 seconds]
<ij> Make it useful.
<ij> Do the codes.
sailias has joined #ruby
<ij> Try to run it yourself, see what happens.
<ij> WE'RE DEVELOPERS, WE CAN DO SHIT. Fk yeah.
mercwithamouth has quit [Ping timeout: 260 seconds]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
allyraza has joined #ruby
<shevy> hi m3pow
<shevy> guy you could make the changes, then mail the changes to the original author and ask him to include your change set
lggr has joined #ruby
<guy> how do I dump ARGV variable?
<guy> (like console.log in JS or var_dump in PHP)
<shevy> you can use pp
<shevy> require 'pp'; pp ARGV
<guy> no output
<shevy> no that can not be
<shevy> the output must be [] in that case
<shevy> ARGV is an array containing the commandline arguments
<guy> sorry, my bad. wrong executable.
<shevy> hmmm wha? wrong executable? where?
<guy> [root@server css]# scss test.scss test.css
<guy> that's the command line;
<shevy> yeah then ARGV[0] is "test.css"
<guy> true
jbw has joined #ruby
lggr has quit [Ping timeout: 244 seconds]
<shevy> pp ARGV works at least?
<shevy> with pp you can basically "debug" everything in ruby in a nice way
<guy> It does, does.
<shevy> ok good!
kirun has joined #ruby
<guy> "or by passing an options hash to Sass::Engine#initialize."
<guy> what is an option hash in rb?
guy has left #ruby ["Leaving..."]
guy has joined #ruby
<guy> what is an option hash in rb?
zommi has quit [Quit: Leaving.]
Iszak_Laptop has joined #ruby
<shevy> hmm option hash?
<guy> "or by passing an options hash to Sass::Engine#initialize."
<shevy> I read the words but I do not understand what those words alone mean, but
<shevy> it could be he meant to just pass in a hash to initialize()
<shevy> something like
<shevy> Sass::Engine.new(:padding => 5, :colour => :green)
<guy> so, array.
<shevy> nono, that is a hash in ruby, the ruby parser will parse that like this way:
heftig has quit [Quit: leaving]
<shevy> Sass::Engine.new({:padding => 5, :colour => :green})
<shevy> one can omit the {} in that case here
<shevy> you should be able to call it like this way too
<shevy> Sass::Engine.new(:colour => :green, :padding => 5)
<shevy> so basically you can omit values as you see fit
<shevy> Sass::Engine.new(:colour => :green)
<shevy> IF the author meant that :)
<shevy> do you have a link to the initialize method source?
<guy> I have a feeling that I am going to waste a lot of time
hukl has joined #ruby
<shevy> hehehe
seoaqua has quit [Ping timeout: 260 seconds]
<shevy> only if the sass gem sucks
lggr has joined #ruby
<shevy> last update 16 August 2012
<shevy> I would really mail the author in question, he seems active
uris has joined #ruby
ewag_ has quit [Ping timeout: 248 seconds]
gmci has joined #ruby
seoaqua has joined #ruby
bradhe has joined #ruby
gogiel has quit [Ping timeout: 240 seconds]
cburyta has joined #ruby
gogiel has joined #ruby
LBRapid has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
Targen has joined #ruby
bradhe has quit [Ping timeout: 264 seconds]
TomJ has joined #ruby
TomJ has quit [Changing host]
TomJ has joined #ruby
<jokar> shevy : are you familiar with ruby creator?
<jokar> is he here?
lggr has joined #ruby
<ij> shevy, Why are you instantly suggesting pp, let the man struggle with p/puts for a while. :]
mucker has joined #ruby
diegoviola has joined #ruby
LBRapid has quit [Quit: LBRapid]
<shevy> ij I love the output of pp :)
<ij> Meh, I just pry.
<ij> It makes the output cool too.
<shevy> jokar the creator is matz. he does no longer use IRC as it takes away too much of his time. you can see his activity here: https://github.com/mruby/mruby
<jokar> shevy : Thank you
<shevy> pp is available in standard ruby
fyolnish_ has joined #ruby
LBRapid has joined #ruby
<ij> hm
<ij> shevy, wat
vitor-br has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
sailias has quit [Ping timeout: 246 seconds]
elico has joined #ruby
<shevy> standard components beat addons every time :)
chessguy has joined #ruby
<ij> Ah, I hadn't required it.
ananthakumaran has quit [Ping timeout: 256 seconds]
LBRapid has quit [Quit: LBRapid]
<shevy> if I were matz, I would make the standard components more flexible
<shevy> regularly... perhaps once every 2 years
dpk has quit [Quit: Asleep at the keyboard.]
<shevy> there are like 5 different option parser libraries nowadays
<shevy> default optionparser... slop https://github.com/injekt/slop
<shevy> I forgot the other names :\
ztirf has quit [Ping timeout: 252 seconds]
lxsameer has joined #ruby
<m3pow> hi shevy, one question i have: the initialize method, works like a constructor ?
<lxsameer> how can i download all the dependecies of a ruby project?
Vainoharhainen has joined #ruby
lggr has joined #ruby
guy has quit [Remote host closed the connection]
F1skr has quit [Quit: WeeChat 0.3.8]
<shevy> m3pow yeah. I think .new calls .allocate, and then .initialize
<shevy> lxsameer depends. if you download a gem, that gem should list the dependencies, then gem will automatically check
<shevy> if it is not a gem, then it is more annoying
<shevy> lxsameer, what project is it?
<Virunga> shevy: could you make an example where it's useful define the new method, please?
<shevy> Virunga the .new() method? hmmm... I don't think I have ever needed to do that
<lxsameer> shevy: i want to download all the dependecies of some project and install them in a pc that don't have a internet connection
<shevy> I have not even played with .allocate either... for some reason I never seem to need that
<shevy> Virunga, I always am fine to just use initialize() alone :)
issyl0 has joined #ruby
<shevy> lxsameer, what is the name of the project
centipedefarmer has joined #ruby
<lxsameer> shevy: any rails project
<Virunga> shevy: eheh
<shevy> lxsameer, well... rails guys use bundler. you could try to use it... but I hate bundler and can not help you with bundler-related things. the #rubyonrails guys should know more
<shevy> if it is a gem file, download it. all gems are installed locally
AndChat- has quit [Ping timeout: 246 seconds]
<shevy> all .gem files are also found in RUBY_SITE_DIR/lib/ruby/gems/1.9.1/cache/
nari has quit [Ping timeout: 246 seconds]
<issyl0> Hi all. I'm trying to use getopts() in http://pastebin.com/azi89a2U but it doesn't appear to be working. Whether I specify -l or not on the command line, the puts params[:1] line always prints nil. What am I doing wrong?
<shevy> on my system this is the path /pkg/Ruby/Current/lib/ruby/gems/1.9.1/cache/
<shevy> on common linux systems it should be /usr/lib/ruby/gems/1.9.1/cache/
<shevy> then you can copy all .gem files from there to wherever you backup your stuff
mattyoho has joined #ruby
<issyl0> Err, puts params[:l] even.
SCommette has joined #ruby
<shevy> issyl0 and how do you invoke this script? do you pass any argument to it?
Belwolf_ has joined #ruby
<shevy> ARGV by default is an empty Array []
lggr has quit [Ping timeout: 244 seconds]
<shevy> if you run "ruby test.rb hi" then ARGV[0] would be "hi"
seanstickle has joined #ruby
Belwolf has quit [Ping timeout: 246 seconds]
<issyl0> shevy: "ruby optiontest.rb -l foobar" or "ruby optiontest.rb foobar"
Banistergalaxy has joined #ruby
lxsameer has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
Spooner has joined #ruby
Forevernade has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
Forevernade has joined #ruby
heftig has joined #ruby
lxsameer has quit [Ping timeout: 268 seconds]
deryl has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
SCommette has quit [Quit: SCommette]
cyb3rD has joined #ruby
cyb3rD has left #ruby [#ruby]
uris has quit [Ping timeout: 256 seconds]
lxsameer has joined #ruby
lxsameer has quit [Changing host]
lxsameer has joined #ruby
snorkdude has joined #ruby
lggr has joined #ruby
specialGuest has quit [Ping timeout: 256 seconds]
cpruitt has joined #ruby
<shevy> issyl0 just try it? you can output content of ARGV via
<shevy> require 'pp'; pp ARGV
lggr has quit [Ping timeout: 244 seconds]
arubin has joined #ruby
Axsuul has joined #ruby
bananagram has joined #ruby
<issyl0> shevy: http://pastebin.com/3Swmf17B - that's interesting.
Guedes0 has quit [Ping timeout: 256 seconds]
rippa has joined #ruby
hoelzro|away is now known as hoelzro
Norrin has quit [Ping timeout: 260 seconds]
specialGuest has joined #ruby
EuroTrash has quit [Remote host closed the connection]
examancer has quit [Ping timeout: 240 seconds]
jord has quit [Ping timeout: 268 seconds]
lggr has joined #ruby
<Spooner> shevy : I assume you've already suggested using the slop gem (or similar) so you never need to touch ARGV?
timonv has joined #ruby
pdelgallego has joined #ruby
freshbone123 has joined #ruby
headius has joined #ruby
horofox has joined #ruby
xyzodiac has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
Hamed-R has quit [Read error: Connection reset by peer]
F1skr has joined #ruby
futilegames has joined #ruby
dpk has joined #ruby
bluenemo has joined #ruby
chessguy has quit [Remote host closed the connection]
<shevy> Spooner hehe I actually always use ARGV :) but mostly because I hate optparse
pdelgallego has quit [Quit: pdelgallego]
<Spooner> optparse is pretty crap, but it is still considerably better than hacking ARGV. At least unless you are only reading in one or two different arguments.
<shevy> I hate to have to use things like .parse!
futilegames has quit [Quit: futilegames]
<shevy> issyl0, I think this example explains optparse a bit http://pastie.org/4785695
examancer has joined #ruby
<shevy> ARGV is ok if you only need simple arguments. of course when you need to use --foo 5 things or --directory=/tmp/ then ARGV alone is no longer that good
<shevy> but optparse is just no fun :(
lggr has joined #ruby
lxsameer has quit [Quit: Leaving]
<Spooner> Why are you pushing optparse now? As I say, although it isn't great, try parsing that ARGV manually though...
Axsuul has quit [Remote host closed the connection]
Norrin has joined #ruby
<Spooner> I never said use OptParse. I said use Slop, which is half as verbose!
<shevy> I am not "pushing" optparse. issyl0 is using it
<shevy> http://pastebin.com/azi89a2U here is where he has problems with
<issyl0> I'm only using it because I thought it would do what I wanted it to do. :-)
ananthakumaran has joined #ruby
<shevy> I think it can!
timonv has quit [Remote host closed the connection]
Iszak_Laptop has quit [Quit: Computer has gone to sleep.]
<Spooner> issyl0 : It does, but look at the slop gem instead: https://github.com/injekt/slop#readme
thone_ has quit [Ping timeout: 256 seconds]
<shevy> I never used it via ARGV.getopts though
adambeynon has joined #ruby
<Spooner> Yeah, that isn't the usual way to do it, as shevy says.
<shevy> it seems short :)
<shevy> perhaps I can find a new way to want to like it...
<issyl0> OK.
<issyl0> Thanks!
<issyl0> I will try Slop.
albel727 has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
jord has joined #ruby
<Spooner> You still need to perform various logic manually using #getopts. It seems simpler, but misses a lot of cases, I suspect.
<albel727> hi, guys. a question. how does one interrupt a Thread, that is inside a long sleep()? preferably so that sleep() just throws and the thread is allowed to catch the exception and finalize stuff. if that's not possible, solutions, that just plain stop it will also be gladly heard.
joofsh has joined #ruby
<Spooner> Easy way is not to have a long sleep, but sleep(0.1) while @keep_running - use of Thread#kill is going to cause you pain.
joofsh2 has joined #ruby
seanstickle has quit [Quit: seanstickle]
joofsh2 has quit [Client Quit]
hukl has quit [Quit: Leaving...]
thone has joined #ruby
uris has joined #ruby
<Spooner> Well, time_to_finish = Time.now + 10; sleep(0.1) while @keep_running and Time.now < time_to_finish
<albel727> yeah, I'm thinking about that solution right now.
lggr has joined #ruby
<albel727> but, now that I read it, Thread.run looks like it will wake up the thread from sleep...
<albel727> gotta try that.
fyolnish_ has quit [Remote host closed the connection]
dysoco has joined #ruby
dysoco has left #ruby [#ruby]
ltsstar has quit [Quit: ltsstar]
<Spooner> No, #run wakes it up from #stop which is sort of sleep-like, but not actually #sleep
fyolnish has joined #ruby
<albel727> yeah, that's the confusing bit. b/c the docs for sleep mention it, but the docs for run mention only stop.
<Spooner> I haven't used threads in a while though. Always use fibers now.
<albel727> hmm
<albel727> don't know that, let me check it out.
lyaunzbe has joined #ruby
<Spooner> Unless you _have_ to use Threads because you are interacting with something that uses Threads, use Fibers ;)
mattyoho has quit [Quit: mattyoho]
<Spooner> Well, or if you are on something other than CRuby and need to use multiple cores or maybe other cases :$
lggr has quit [Ping timeout: 244 seconds]
workmad3 has joined #ruby
<albel727> hmm, interesting. well, manual scheduling is not what I want right now. anyway, thanks for your help.
lantins has quit [Ping timeout: 248 seconds]
<albel727> guess I'll go with the small chunked sleep approach.
examancer has quit [Ping timeout: 264 seconds]
examancer has joined #ruby
Norrin has quit [Quit: ""]
ph^ has quit [Remote host closed the connection]
hoelzro is now known as hoelzro|away
Norrin has joined #ruby
ph^ has joined #ruby
lggr has joined #ruby
pdelgallego has joined #ruby
ananthakumaran has quit [Ping timeout: 256 seconds]
tk___ has quit [Quit: ばいばい]
timonv has joined #ruby
ph^ has quit [Read error: No route to host]
ph^ has joined #ruby
jord has quit [Ping timeout: 248 seconds]
examancer has quit [Ping timeout: 246 seconds]
lantins has joined #ruby
jord has joined #ruby
ryanlecompte has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
GraemeLion has quit [Quit: out]
<elico> anyone have a recommendation for a good way to struct XMLs?
<Spooner> Construct them, you mean?
Guest29702 has quit [Ping timeout: 248 seconds]
<elico> yes..
<elico> I want to write a module\class for metalinks creation
<elico> the file should be a XML one so
<elico> nice thanls
lggr has joined #ruby
examancer has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
specialGuest has quit [Read error: Operation timed out]
workmad3 has quit [Ping timeout: 240 seconds]
stan_man_can has joined #ruby
imami|afk is now known as banseljaj
Vainoharhainen has quit [Read error: Connection reset by peer]
schaerli has joined #ruby
cakehero has joined #ruby
ghanima has joined #ruby
bbttxu has joined #ruby
ryanRT has quit [Quit: Ex-Chat]
lggr has joined #ruby
dangerousdave has joined #ruby
xpen has joined #ruby
havenn has joined #ruby
jearvondharrie has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
zeromodulus has quit [Remote host closed the connection]
timonv has quit [Remote host closed the connection]
bbttxu has quit [Ping timeout: 264 seconds]
CaptainJet has joined #ruby
JarJar has quit [Quit: Leaving]
ananthakumaran has joined #ruby
ananthakumaran has quit [Client Quit]
lggr has joined #ruby
sheerun has joined #ruby
fsxbig has joined #ruby
LineByLine has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
specialGuest has joined #ruby
<elico> Well it seems like works bad for me
ryanlecompte has quit [Remote host closed the connection]
lggr has joined #ruby
workmad3 has joined #ruby
chessguy has joined #ruby
Jay_Levitt has quit [Quit: Jay_Levitt]
Jay_Levitt has joined #ruby
yoklov has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
lggr has quit [Ping timeout: 244 seconds]
<jokar> shevy : Thank you,i must leave out.Thanks for help
skogis has joined #ruby
fyolnish has quit [Remote host closed the connection]
ltsstar has joined #ruby
adac has joined #ruby
lggr has joined #ruby
headius has quit [Quit: headius]
specialGuest has quit [Quit: WeeChat 0.3.8]
neku is now known as neku|away
LineByLine has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
Mon_Ouie has quit [Ping timeout: 264 seconds]
bluenemo has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
Rydefalk_ has joined #ruby
Rydefalk has quit [Read error: Connection reset by peer]
yoklov has quit [Quit: computer sleeping]
xpen has quit [Remote host closed the connection]
Jay_Levitt has quit [Quit: Jay_Levitt]
Jay_Levitt has joined #ruby
dpk has quit []
stan_man_can has quit [Quit: stan_man_can]
lggr has joined #ruby
Fretta has joined #ruby
AlbireoX has joined #ruby
yoklov has joined #ruby
Villadelfia has joined #ruby
mahmoudimus has joined #ruby
lkba has quit [Ping timeout: 244 seconds]
lggr has quit [Ping timeout: 256 seconds]
bradhe has joined #ruby
lggr has joined #ruby
baphled has joined #ruby
Villadelfia has quit [Changing host]
Villadelfia has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
jenrzzz has quit [Read error: Connection reset by peer]
yoklov has quit [Quit: computer sleeping]
Jay_Levitt has quit [Quit: Jay_Levitt]
yakitori has quit [Remote host closed the connection]
johnjohnson has joined #ruby
fyolnish has joined #ruby
jenrzzz has joined #ruby
workmad3 has quit [Ping timeout: 240 seconds]
shuriken has joined #ruby
lggr has joined #ruby
yakitori has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
sheerun has quit [Quit: sheerun]
havenn has quit [Remote host closed the connection]
mucker has quit [Quit: leaving]
Fretta has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
lggr has quit [Ping timeout: 256 seconds]
maxok has joined #ruby
centipedefarmer has joined #ruby
awarner has quit [Remote host closed the connection]
jgrevich has joined #ruby
dpk has joined #ruby
wpaulson has joined #ruby
timonv has joined #ruby
Morkel has joined #ruby
ryanlecompte has joined #ruby
maxok has quit [Client Quit]
lggr has joined #ruby
Guest29702 has joined #ruby
arturaz has joined #ruby
lggr has quit [Ping timeout: 245 seconds]
ryanlecompte has quit [Remote host closed the connection]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
yakitori has quit [Remote host closed the connection]
dr_bob has joined #ruby
locriani has quit [Ping timeout: 248 seconds]
allyraza has quit [Ping timeout: 246 seconds]
awarner has joined #ruby
awestroke has quit [Remote host closed the connection]
yakitori has joined #ruby
shevy has quit [Read error: Operation timed out]
yshh has joined #ruby
locriani has joined #ruby
timonv has quit [Remote host closed the connection]
jearvondharrie has quit [Ping timeout: 256 seconds]
lggr has joined #ruby
yakitori has quit [Ping timeout: 264 seconds]
snorkdude has quit [Remote host closed the connection]
JonValt has quit [Ping timeout: 240 seconds]
null- has left #ruby [#ruby]
havenn has joined #ruby
dmnd has joined #ruby
dmnd has quit [Changing host]
dmnd has joined #ruby
ndrei has joined #ruby
<ndrei> Hello
lggr has quit [Ping timeout: 245 seconds]
dmnd has quit [Client Quit]
davidcelis has quit [Quit: K-Lined.]
lkba has joined #ruby
Jellyg000se has joined #ruby
Jellyg000se is now known as Jellyg00se
jearvondharrie has joined #ruby
ryanlecompte has joined #ruby
bradhe has quit [Remote host closed the connection]
havenn has quit [Remote host closed the connection]
havenn has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
deryl1 has joined #ruby
joofsh has quit [Remote host closed the connection]
shevy has joined #ruby
deryl has quit [Ping timeout: 256 seconds]
klip has joined #ruby
Aristata has joined #ruby
lggr has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
yoklov has joined #ruby
havenn has quit [Ping timeout: 246 seconds]
fyolnish has quit [Remote host closed the connection]
fyolnish_ has joined #ruby
awarner has quit [Remote host closed the connection]
adambeynon has joined #ruby
lyaunzbe has quit [Ping timeout: 245 seconds]
JetAway has joined #ruby
JetAway has quit [Client Quit]
JetAway has joined #ruby
snorkdude has joined #ruby
CaptainJet has quit [Disconnected by services]
JetAway is now known as CaptainJet
arubin has quit [Quit: arubin]
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
Banistergalaxy has quit [Ping timeout: 246 seconds]
fyolnish_ has quit [Remote host closed the connection]
deryl1 has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 260 seconds]
deryl has joined #ruby
horofox_ has joined #ruby
QKO_ has joined #ruby
Banistergalaxy has joined #ruby
QKO has quit [Ping timeout: 245 seconds]
horofox has quit [Ping timeout: 240 seconds]
horofox_ is now known as horofox
swarley has joined #ruby
mneorr has joined #ruby
fyolnish has joined #ruby
A124 has joined #ruby
lggr has joined #ruby
Speed has joined #ruby
Speed has quit [Changing host]
Speed has joined #ruby
horofox_ has joined #ruby
horofox has quit [Read error: Connection reset by peer]
horofox_ is now known as horofox
Speed has left #ruby [#ruby]
Mon_Ouie has joined #ruby
Mon_Ouie has quit [Changing host]
Mon_Ouie has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 268 seconds]
xbayrockx has quit []
bradhe has joined #ruby
dpk has quit [Quit: Asleep at the keyboard.]
snorkdude has quit [Remote host closed the connection]
Cache_Money has joined #ruby
jgrevich has quit [Quit: jgrevich]
joofsh has joined #ruby
jgrevich has joined #ruby
lggr has joined #ruby
<Spooner> ndrei : Ahoy!
joeycarmello has joined #ruby
<swarley> ahoy mateys
lggr has quit [Ping timeout: 244 seconds]
<swarley> berkly db is my favorite thing in the world right now
<matti> Haha
<matti> swarley: Look at Redis ;p
triptec has quit [Quit: triptec]
thejoecarroll has joined #ruby
<swarley> is it server process dependant?
ngoldman has joined #ruby
<matti> You mean, require something to run?
rubious has joined #ruby
timonv has joined #ruby
stepnem has joined #ruby
<swarley> yes
<swarley> like
<swarley> a daemon
lyaunzbe has joined #ruby
<matti> No. It is using Moon Light as power source.
<matti> ;d
saschagehlich has joined #ruby
<matti> It does need redis-server to run.
<swarley> yeah i'll just stay with bdb
workmad3 has joined #ruby
lggr has joined #ruby
diegovio1a has joined #ruby
johnjohnson has quit []
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<Spooner> If you just need key/value stores without a daemon, consider pstore (standard library). Much more Ruby-friendly :D
davidcelis has joined #ruby
diegoviola has quit [Read error: Connection reset by peer]
<Spooner> Hmm, though no idea if it scales well.
horofox_ has joined #ruby
diegovio1a is now known as diegoviola
<matti> I doubt it does.
<Spooner> Aye, probably not.
love_color_text has joined #ruby
stepnem has quit [Ping timeout: 245 seconds]
sepp2k has quit [Ping timeout: 246 seconds]
sepp2k has joined #ruby
nahhh has quit [Quit: .]
horofox has quit [Ping timeout: 256 seconds]
horofox_ is now known as horofox
lggr has quit [Ping timeout: 256 seconds]
cakehero has quit [Quit: Computer has gone to sleep.]
philcrissman has quit [Remote host closed the connection]
<matti> Spooner: I guess, for file-based Tokyo Cabinet will own Berkely.
tommyvyo has quit [Quit: Computer has gone to sleep.]
arubin has joined #ruby
<Spooner> "We eventually opted for MongoDB" :D
centipedefarmer has joined #ruby
ngoldman has quit [Remote host closed the connection]
<matti> LOL
<matti> o_O
<matti> Well, in the end... Whatever works (TM)
<Spooner> Well, makes sense. Serverless isn't going to do quite as well as server-ed, but if you don't need that extra performance, why bother with an extra process cluttering up the place.
lggr has joined #ruby
<Spooner> matti The TK site actually recommends you use Kyoto Cabinet instead.
<matti> I know.
wallerdev has joined #ruby
shuriken has quit [Quit: shuriken has no reason]
<Spooner> Aaah: "Tokyo Cabinet is LGPL. It's heir project (Kyoto Cabinet) is GPL though."
<matti> Client-Server model has its perks -- i.e. replication, master-slave setups ets.
<Spooner> Yeah, but KISS.
<matti> +1 for KISS
<Spooner> All irrelevant if we don't know the use-case :D (yaml < pstore < serverless-db < server-db)
<matti> KISS and FHUGS ;d
<Spooner> FHUGS?
<matti> Free hugs.
<matti> A good thing, like a kiss.
<Spooner> Ah, right.
<matti> ;p
* matti is being silly
uris has quit [Quit: Lost terminal]
<matti> Spooner: I'd still prefer pstore over YAML. For some reason.
digitalcakestudi has joined #ruby
* matti suffered a great deal of pain due to malformed YAML files.
<matti> Never again.
timonv has quit [Remote host closed the connection]
<Spooner> Of course, but if you want something human-readable then marshalled data doesn't work so well. YAML is more a replacement for XML..
<matti> Haha
<matti> Fair enough.
wallerdev has quit [Read error: Connection reset by peer]
quest88 has joined #ruby
<matti> XML was invented as a DSL for Java to turn unreadable markup in stack traces.
<Spooner> XML: How to make data readible by both humans and machines, yet forcing both to make a lot of effort to make head or tail of it ;)
<matti> ;]
<matti> http://www.engineyard.com/search?q=key+value -- they have a series about key-value stores for Ruby.
horofox_ has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
GeekAdmin has joined #ruby
dpk has joined #ruby
chessguy has quit [Remote host closed the connection]
rburton- has joined #ruby
makoshi has joined #ruby
<makoshi> kdd
<makoshi> geekadmin?
<matti> ?
Rydefalk_ has quit []
tds has joined #ruby
Rydefalk has joined #ruby
joeycarmello has quit [Remote host closed the connection]
DracoDan has joined #ruby
<makoshi> does anybody here know how to create a code to reduce fractions?
<DracoDan> makoshi: so you're one of the guys from #computer-help-chat?
<makoshi> yes
horofox has quit [Ping timeout: 268 seconds]
horofox_ is now known as horofox
<DracoDan> ugh.... These guys are trying to run a business using IRC as their knowledge base...
<swarley> you could probably use modulo
<DracoDan> please dont help him.
chimay has quit [Quit: WeeChat 0.3.9-rc1]
<Spooner> DracoDan : Explain?
<DracoDan> go check out ##computer-help-chat and http://www.eugenecomputergeeks.com
lggr has joined #ruby
<DracoDan> I already have a freenode staff member looking into them
sweet_kid is now known as xrosnight
makoshi has quit [Quit: Page closed]
<Spooner> Oh, you ask them and they trawl for answers on IRC?
xrosnight is now known as sweet_kid
<shevy> odd strategy
horofox_ has joined #ruby
<DracoDan> exactly!
horofox has quit [Read error: Connection reset by peer]
<matti> Human-IRC-cumputation
<matti> ;d
<shevy> matti, why do you use pstore rather than yaml?
<Spooner> We already have people who Google for you (directory enquiries, for example), but yeah, if it is as you say, then that is pretty grim.
<DracoDan> of course they call it free, yet they have a paid side...
richwestcoast has joined #ruby
Virunga has quit [Remote host closed the connection]
<matti> shevy: Voices told me to do so!
<matti> ;]
horofox has joined #ruby
A124 has left #ruby [#ruby]
<workmad3> matti: were these voices coming out the mouths of bosses?
<matti> workmad3: No.
<matti> workmad3: Well. I don't know.
<matti> workmad3: Maybe it was my neighbour?
<matti> ;/
<DracoDan> sorry to bring this discussion here, I just saw someone ask a ruby question before they booted me for questioning their business... figured it was a safe bet that one of them would be here asking the question :-P
GeekAdmin has left #ruby ["Konversation terminated!"]
h4mz1d has joined #ruby
horofox has quit [Read error: Connection reset by peer]
<shevy> matti grrrr
triptec has joined #ruby
<matti> shevy: :)
<DracoDan> hah, geekadmin was their ring leader
futilegames has joined #ruby
<shevy> one ring to bind them
ghanima has quit [Ping timeout: 268 seconds]
horofox has joined #ruby
adac has quit [Ping timeout: 246 seconds]
<matti> shevy: Ease of use, atomicity-to-some-level, etc.
<otters> ring.binding.call
<matti> otters: LOL
<swarley> ring.binding.all
<shevy> odd
<shevy> it created a .pstore file
<shevy> less readable than yaml
<matti> shevy: LOL?
<shevy> HomePage;FI"JoysOfDocumentation;FI"JoysOfDocumentation;
<swarley> i like my bdb :]
<matti> shevy: And what did you expect?
<matti> ;d
<shevy> I expected beauty!
<matti> shevy: Oh I see.
<shevy> if I get ugly, I can use XML!!!
<matti> shevy: /join #hippies
horofox_ has quit [Ping timeout: 260 seconds]
horofox__ has joined #ruby
chessguy has joined #ruby
<workmad3> DracoDan: haha, that ##computer-help-chat seems great :D
<shevy> they don't like me there
<matti> shevy: Haha
<workmad3> I'm lurking
ghanima has joined #ruby
<shevy> hmm I am going to ##computer-help-chat and seek friends now
<DracoDan> EVERYONE GO!!
<DracoDan> XD
<workmad3> and watching 'GeekAdmin' give out advice on accessing pics on a phone using a windows script to someone on a mac :)
lggr has quit [Ping timeout: 246 seconds]
<shevy> ok this is too much, that channel scares me
<workmad3> I think the qwebirc's are trolls :)
horofox has quit [Ping timeout: 245 seconds]
horofox has joined #ruby
<swarley> lol..
horofox__ has quit [Ping timeout: 246 seconds]
horofox has quit [Read error: Connection reset by peer]
yshh has quit [Remote host closed the connection]
horofox has joined #ruby
<matti> You huys have too much free time ;d
<workmad3> last night of holiday for me... so lurking in a tech-support channel seems like fun, right? :)
<swarley> i dont have a life
<swarley> so ihave plenty of free time
lggr has joined #ruby
<shevy> you guys DONT HAVE ENOUGH RUBY PROJECTS
<swarley> I'm working on an IRC framework right now
<swarley> not that anyone will use it when i'm finished
<workmad3> swarley: pfft, if we only worked on things that people would use, we'd never work on anything :P
<matti> workmad3: Not true.
kirun_ has joined #ruby
<matti> workmad3: There is always huge demand for farting apps.
<matti> ;d
<swarley> LOL
<workmad3> oh, good point
<workmad3> fart sound-boards
<matti> ;]
kirun_ has quit [Read error: Connection reset by peer]
<matti> workmad3: And ninja shiruken throw sounds.
lxsameer has joined #ruby
<matti> workmad3: With extra Bruce-lee yell at the end.
<matti> ;d
<matti> workmad3: Put it up for £0.99 and retire early.
<matti> ;p
Vinz_ is now known as Merena
<matti> [ Now, everyone will steal my business idea ;/ ]
Merena is now known as Vinz_
<workmad3> hook into the accelerometer, so that it does that when you do a shirukin throw, but does a whip sound if you whip it
<workmad3> and has a picture of a cat on it that, if you press it the cat farts
<matti> Yes.
<matti> I live the features you want.
<workmad3> I think I just invented 'The ultimate ninja fart sound-board'
<matti> s/live/like/
<swarley> i'm too lazy to get the money to pay for the developers license
<matti> So, shevy ... get cracking on this app for us ;d
<swarley> so dont worry about me doing it
<workmad3> swarley: do it on android and make it ad-supported
<swarley> I've made an android app before
<matti> workmad3: HOLD ON A MINUTE.
<swarley> but then i realized how much i hate java
<matti> workmad3: We desperately need to add social element there.
<shevy> matti I am working through some exam questions right now, then I have to maintain my cookbooks project :(
kirun has quit [Ping timeout: 252 seconds]
<workmad3> swarley: with a premium version for £0.99 that removes the ads and adds in the bruce-lee yell
<workmad3> matti: good point
<matti> workmad3: Like "Your friend Sarah farted like a Ninja-pro 1234 times!"
<swarley> record your fart annd put it on a friends facebook timeline
<workmad3> matti: it should tweet the sounds you make as you make them
<matti> workmad3: Hahah
<workmad3> ooh, I like yours
<matti> workmad3: And allow you to thumb-up it on Facebook.
<swarley> fartstep, fruityloops app with all fart synthesizers
<workmad3> we can add in an achievments system!
<matti> workmad3: Totally ;]
horofox has quit [Ping timeout: 256 seconds]
<workmad3> "Achievement unlocked - gas attack. You farted 1000 times in a row"
<matti> workmad3: "workmad scored The Fart Shogun".
<matti> workmad3: Haha
* matti giggles out loud
<matti> workmad3: Although, using G+ terminology.
<matti> workmad3: "Join the fart circle" -- sounds kinda...
<matti> ;d
<workmad3> the ninja fart circle
<workmad3> sounds like a group of people that roam around, fart, and then vanish
<sebastianb> matti: czesc ;)
lggr has quit [Ping timeout: 256 seconds]
<matti> Hi sebastianb
BrokenCog has quit [Quit: leaving]
<matti> workmad3: Vanishing.
<matti> workmad3: Isn't that what a Ninja would do after a successful "stealth fart attack"?
<swarley> what else should i include in my database class. I have, [] and []=
<matti> swarley: inspect
<matti> ;d
<swarley> meh
<matti> What? ;p
<swarley> its a wrapper for sbdb
schaerli has quit [Ping timeout: 244 seconds]
<swarley> i could probably just extend the class
<swarley> and modify those specific methods
<matti> swarley: .keys? .values? .each?
<matti> swarley: No idea, think about possible use cases.
<swarley> the thing i'm trying to avoid is the use of objects as values that cant be serialized
<swarley> thats the only reason i even defined [] and []=
<matti> shevy: What projects?
jlogsdon has joined #ruby
<matti> God its cold.
<shevy> matti ruby? hmm cookbooks project right now. scripts that would aid in querying data from yaml files right now (things like glibc, htop, binutils etc..), need to one day add querying from a database instead
* matti needs more coffee
thunderstrike has joined #ruby
<workmad3> matti: coffee this late?
<matti> workmad3: I woke up recently.
<workmad3> working nights?
<matti> workmad3: My God's forsaken employer was waking me up in the middle of the night.
<matti> workmad3: Yeah ;/
<swarley> shevy, what ruby projects do you work on?
<workmad3> or just a *really* long sunday lie-in? :)
<matti> workmad3: I wish I could have long Sunday lie-in ;p
<workmad3> :)
lggr has joined #ruby
<shevy> swarley well... there are two ways to answer this
<swarley> i've probably got time to hear both answers
<shevy> swarley let me first start by grouping my projects into two groups - small "throwaway" scripts, or really minor things... usually that have only 1-5 .rb files at maximum, and larger projects, which take much more time, and range in about ... 5 up to 300 .rb files
<shevy> the larger ones take much more time :(
<shevy> they require documentation too (which I hate to write)
<swarley> lets talk about things i can look at a readme on
<shevy> hmm... then I think... I have only about 3-4 larger projects, lemme see
stepnem has joined #ruby
spinagon has joined #ruby
<swarley> i wish i was able to write things that had value lol
lyaunzbe has quit [Ping timeout: 256 seconds]
<shevy> ok, somehow writing .gemspec files confuses me still
rippa has quit [Read error: Connection reset by peer]
<shevy> swarley, http://rubydoc.info/gems/COOKBOOKS/0.0.1/frames this was an attempt... but the readme etc... is not included yet... I need to find out how to do this :\
futilegames has quit [Quit: futilegames]
<shevy> swarley or let me just write very briefly what the projects are about
<shevy> swarly - cookbooks for querying datasets from programs, ruby build tools for making use of that data (i.e. compile or otherwise install programs), diamond shell to write a replacement for bash one day, and a pseudo-webframework called cyberweb, which is very incomplete (but I use it for my local cgi webpages)
<swarley> oh neat
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
futilegames has joined #ruby
saschagehlich has quit [Quit: saschagehlich]
baphled has quit [Ping timeout: 256 seconds]
lggr has quit [Ping timeout: 256 seconds]
seoaqua has quit [Ping timeout: 248 seconds]
zigidias has quit [Ping timeout: 256 seconds]
mikepack has joined #ruby
zigidias has joined #ruby
<matti> Hanmac: LOL
<Hanmac> matti: i found something more crazy: http://24.media.tumblr.com/tumblr_mat959Z4UT1rfwyjno1_500.gif
lggr has joined #ruby
<matti> Haha
<matti> Psychodelic '70s disco style
workmad3 has quit [Ping timeout: 260 seconds]
hvq has joined #ruby
hvq has quit [Client Quit]
lxsameer has quit [Quit: Leaving]
hvq has joined #ruby
hvq has quit [Client Quit]
hvq has joined #ruby
hvq has quit [Client Quit]
hvq has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
GoHuyGo has joined #ruby
neku|away has quit [Ping timeout: 260 seconds]
lyaunzbe has joined #ruby
Cache_Money has quit [Ping timeout: 264 seconds]
swarley has quit [Remote host closed the connection]
arya_ has joined #ruby
Nisstyre-laptop has quit [Remote host closed the connection]
lggr has joined #ruby
mahmoudimus has joined #ruby
Banistergalaxy has quit [Ping timeout: 256 seconds]
Banistergalaxy has joined #ruby
null- has joined #ruby
lggr has quit [Ping timeout: 246 seconds]
cpruitt has quit [Quit: cpruitt]
rubious has quit [Quit: Leaving...]
icooba has quit [Ping timeout: 246 seconds]
Guedes0 has joined #ruby
fantazo has joined #ruby
icooba has joined #ruby
lggr has joined #ruby
seanstickle has joined #ruby
hvq has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 268 seconds]
cpruitt has joined #ruby
atmosx has joined #ruby
emsilva has joined #ruby
emsilva has quit [Changing host]
emsilva has joined #ruby
hvq has joined #ruby
joeycarmello has joined #ruby
hvq has quit [Client Quit]
hvq has joined #ruby
lggr has joined #ruby
adambeynon has joined #ruby
jamjam has quit [Ping timeout: 264 seconds]
mikepack has quit [Remote host closed the connection]
mikepack has joined #ruby
deadghost has joined #ruby
joeycarmello has quit [Ping timeout: 264 seconds]
Guedes0 has quit [Ping timeout: 248 seconds]
rubious has joined #ruby
cirwin has joined #ruby
answer_42 has quit [Quit: WeeChat 0.3.8]
lggr has quit [Ping timeout: 256 seconds]
dpk has quit [Quit: Asleep at the keyboard.]
love_color_text has quit [Remote host closed the connection]
mikepack has quit [Ping timeout: 244 seconds]
adam__ has joined #ruby
jlogsdon has quit [Remote host closed the connection]
aspiers has quit [Ping timeout: 252 seconds]
saschagehlich has joined #ruby
Guest29702 has quit [Ping timeout: 256 seconds]
mahmoudimus has quit [Ping timeout: 248 seconds]
arturaz has quit [Remote host closed the connection]
lggr has joined #ruby
mahmoudimus has joined #ruby
richwestcoast has quit [Read error: Connection reset by peer]
arya_ has quit []
spinagon has quit [Ping timeout: 256 seconds]
dpk has joined #ruby
hvq has quit [Remote host closed the connection]
c0rn_ has joined #ruby
<David_Miller> can I pop from a hash?
lggr has quit [Ping timeout: 256 seconds]
<David_Miller> grab one key value pair from it
banseljaj is now known as imami|afk
<David_Miller> hmm there is no #pop, but #shift works
chessguy has quit [Remote host closed the connection]
cburyta has quit [Remote host closed the connection]
cburyta has joined #ruby
workmad3 has joined #ruby
lggr has joined #ruby
pdelgallego has quit [Read error: Connection reset by peer]
pdelgallego has joined #ruby
cpruitt has quit [Quit: cpruitt]
cody-- has joined #ruby
<cody--> hey
<GoHuyGo> hi
lggr has quit [Ping timeout: 240 seconds]
cody-- has quit [Read error: Connection reset by peer]
lee__ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
kirun has joined #ruby
atmosx has quit [Quit: WeeChat 0.3.9-rc1]
frogprince_mac has quit [Quit: Leaving...]
rburton- has quit [Quit: Linkinus - http://linkinus.com]
<emsilva> hi there. What would be the best way with nokogiri to retrieve the value field from this: <input type="hidden" name="ui.reportVersion" value="2012-09-23T15:41:47.977Z"/>? Or is the best way a good and old regex match?
demian`_ has joined #ruby
atmosx has joined #ruby
lggr has joined #ruby
JarJar has joined #ruby
<workmad3> emsilva: is that the entire document, or is it embedded in some context?
devnull_ has joined #ruby
pdelgallego has quit [Ping timeout: 264 seconds]
<canton7> no. never regex. doc.at_css('input[name="ui.reportVision"]')['value'] would be my preferred way, ignoring context of course
<emsilva> workmad3: I'm working on a Nokogiri:HTML item. Its part of the document, that has lots of inputs.
<canton7> (well, if the whole input is *just& that html tag, then regex would be ok)
<devnull_> hi does anyone knows a bit of perl ? I wanted to ask a comparative questions. In perl you need to declare valiables e.g. my $foo = else $foo = would return an error under strict.. now in ruby I don't need this right ? Is just foo = right ?
<emsilva> canton7: Thank you sir
<heftig> devnull_: yes. although if you declare them too late, they might fall out of scope when you try to use them
<heftig> compare:
<heftig> 1.times { foo = 1 }; foo
<heftig> foo = nil; 1.times { foo = 1 }; foo
A124 has joined #ruby
<devnull_> heftig: but you don't have in ruby a way to delcare variables like my $foo right ? you just go foo= ?
<heftig> yes
lggr has quit [Ping timeout: 256 seconds]
swarley has joined #ruby
A124 has left #ruby [#ruby]
futilegames has quit [Quit: futilegames]
<lee__> I have never used ruby, last 15 minutes I was researching it and it's fucking amazing and simple :D
<devnull_> lee__: yeah big time
pdelgallego has joined #ruby
<lee__> should I read zed shaws introduction or I should find something more advanced
<shevy> zed shaw ragequitted ruby
<Poapfel> lee__: if you used other programming languages before then you should probably start with something more advanced
atmosx has quit [Remote host closed the connection]
lggr has joined #ruby
<Poapfel> shevy: he just ragequitted rails, didn't he?
baphled has joined #ruby
<shevy> no. he moved to python after his rant
<shevy> here is the old link http://web.archive.org/web/20080103072111/http://www.zedshaw.com/rants/rails_is_a_ghetto.html it seems he removed his rant meanwhile, or I can't find it anymore
<lee__> I'll just find something advanced or I will just dive in
mercwithamouth has joined #ruby
<devnull_> but in fairness zed was very right... rails *is* a ghetto no ?
<lee__> he was mad about something he made idk , I forgot
<lee__> he said they made a lot of changes to it if i remember correctly
<shevy> lee__ to your answer, I think it depends on whether you know another programming language or not. for me, I started with this old interview by matz: http://www.artima.com/intv/rubyP.html - I recommend you to work through this tutorial here http://pine.fm/LearnToProgram/?Chapter=01 it is very easy (you will finish in 10-20 minutes, just skip the "homework" crap) and a really great introduction
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
<devnull_> lee__: just avoid rails and you will be fine :)
<shevy> devnull_ I dont know. I dont know the rails guys. Perhaps it is a ghetto, perhaps not. Perhaps Zed has a big ego and as such clashed with others, who can say. I was not there. It's a community that I have no contact with. I used ruby always because ruby is great, matz is a clever man :) I would however not abandon ruby because rails stinks
<devnull_> shevy: great point
<devnull_> shevy: indeed zed has a huge ego but he doesn't deny that I guess :)
vaclavt has joined #ruby
<shevy> heeh
<shevy> perhaps his tutorials are good, I don't know
<devnull_> in fairness the rails guys want to do things their way and is also fair enough...a project without leadership wouldn't work
gmci has quit [Quit: Computer has gone to sleep.]
<devnull_> yes are good http://learncodethehardway.org
<lee__> I have read his python book
<lee__> it's good
<shevy> lee__, I bought the pickaxe back then. It helped me a lot. I bought the newer pickaxe too, some years later, but that one was not worth its cost, because I knew too much already. it explains the standard documentation of ruby though, with examples - that was helpful
<lee__> better than others
<shevy> (pickaxe book)
<lee__> i was getting scared
lggr has quit [Ping timeout: 240 seconds]
cakehero has joined #ruby
fsxbig has quit [Remote host closed the connection]
<swarley> i'm still a fan of beginning ruby >.>
zeromodulus has joined #ruby
<diegoviola> ramaze is a pretty good framework if you don't like rails
<diegoviola> i really like ramaze
<diegoviola> and sequel
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
hvq has joined #ruby
lggr has joined #ruby
<diegoviola> what do you guys think of node.js?
hvq has quit [Remote host closed the connection]
hvq has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
seanstickle has quit [Quit: seanstickle]
mrflip has quit [Quit: mrflip]
specialGuest has joined #ruby
eldariof has quit []
specialGuest has quit [Changing host]
specialGuest has joined #ruby
seanstickle has joined #ruby
Neomex has joined #ruby
tds has quit [Quit: tds]
<swarley> diegoviola, i think its a neat concept
<diegoviola> hmm... yeah
<diegoviola> what do you guys think of rubinius?
<swarley> i wish it was more of a general use thing though
<diegoviola> i really like this ruby implementation
<swarley> never used it to be honest
<diegoviola> i like the ideas that rubinius bring to the ruby language, built-in profiler, JIT, no GIL, better threading, etc
<diegoviola> standard libraries being coded in ruby itself, instead of C
<diegoviola> etc
bluOxigen has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
<swarley> i would use rubinius if it was 1.9 compatible
ltsstar has quit [Quit: ltsstar]
<diegoviola> yeah if they could only have 1.9 support...
<diegoviola> or better support
emmanuelux has joined #ruby
<centipedefarmer> you can get all that without a jvm? color me sold
bradyl0ve has joined #ruby
seanstickle has quit [Quit: seanstickle]
freshbone123 has quit [Quit: Leaving]
joeycarmello has joined #ruby
keppy has joined #ruby
Virunga has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<diegoviola> i've been a rubyist for a long time now, but i always wished ruby would be more diverse
<diegoviola> some people know ruby just because of rails
<diegoviola> i think ruby is getting finally more widespread and diverse
<diegoviola> we have more implementations, more frameworks and more libraries now
<diegoviola> outside of rails
Axsuul has joined #ruby
guns has joined #ruby
sagax has joined #ruby
ghanima has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
dpk has quit [Quit: Asleep at the keyboard.]
xyzodiac has quit [Quit: Textual IRC Client: www.textualapp.com]
BrokenCog has quit [Quit: leaving]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
<diegoviola> isn't rubyspec supposed to build some code specification that most implementations could run and see if they pass/validate as a ruby implementation?
<diegoviola> something like that...
xyzodiac has joined #ruby
adac has joined #ruby
<centipedefarmer> yeah
BrokenCog has quit [Client Quit]
Chryson has joined #ruby
<centipedefarmer> an executable spec a la rspec for ruby in ruby, or so i gather
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
xyzodiac has quit [Client Quit]
BrokenCog has quit [Client Quit]
emmanuelux has quit [Remote host closed the connection]
BrokenCog has joined #ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
BrokenCog has quit [Client Quit]
<diegoviola> centipedefarmer: nice
<Spaceghostc2c> diegoviola: It's a project for documenting and validating ruby implementations.
<Spaceghostc2c> In that it's a specification, an executable one, I hear.
<diegoviola> Spaceghostc2c: nice
BrokenCog has joined #ruby
<diegoviola> yeah i think that's what we need in ruby
BrokenCog has quit [Changing host]
BrokenCog has joined #ruby
<diegoviola> more implementations competing against each other
<diegoviola> and frameworks and libs
<Spaceghostc2c> diegoviola: Against isn't what I'd want.
<diegoviola> well not just in ruby
<Spaceghostc2c> Pushing the boundaries of other ruby implementations, upping the bar, things like that.
<Spaceghostc2c> Also jruby is fucking awesome.
<swarley> nifty*
<Spaceghostc2c> rbx might get some love from me some day.
<diegoviola> sure
<Spaceghostc2c> swarley: That would work.
<diegoviola> i'm not a java guy though
<swarley> ^
<swarley> Java makes my eyes bleed
<diegoviola> mine too
<swarley> i say that from a syntatical stand point
<Spaceghostc2c> They write java so we don't have to.
<swarley> the language is just ugly looking
<diegoviola> that's why i like the idea of rubinius more, ruby in ruby
<Spaceghostc2c> You can use ruby directly without even thinking about java in jruby.
<swarley> i know
<Spaceghostc2c> diegoviola: I'm planning on checking it out closer some day. I hear it's nice.
lggr has quit [Ping timeout: 268 seconds]
<swarley> i don
<swarley> 't like swaying from MRI often
<centipedefarmer> "They write java so we don't have to" <--- you could say the same about C couldn't you?
<Spaceghostc2c> I do. MRI isn't fun and isn't awesome.
<Spaceghostc2c> centipedefarmer: You aren't using a C vm though.
specialGuest has quit [Quit: WeeChat 0.3.8]
<swarley> yes you are..
<Spaceghostc2c> Turtles man.
<swarley> the ruby VM is written in c
<Spaceghostc2c> No it's not a VM.
<swarley> ruby runs on a vm
<Spaceghostc2c> swarley: Yes, but there's no C vm.
ltsstar has joined #ruby
<Spaceghostc2c> Ruby uses a ruby vm written in c.
<swarley> there could be if you really felt like it
<Spaceghostc2c> ...
<swarley> its all implementational
Russell^^ has quit [Quit: Russell^^]
<diegoviola> rubinius uses a c++ vm i think
specialGuest has joined #ruby
<diegoviola> isn't it
<swarley> if i compile c down to bytecode and use a virtual machine to run it, thats my choice
<swarley> a stupid choice
<swarley> but a choice none the less
kollapse has joined #ruby
<Spaceghostc2c> I think you're using a straw man, so I'm going to go back to breaking rails community practices for the better.
<swarley> k
<kollapse> Hello. Is this the channel for Rails development as well, or is that separate ?
<swarley> i don't like rails either :)
<diegoviola> rails is too big for my taste, and i hate how activerecord hides too much...
<Mon_Ouie> kollapse: No, check #rubyonrails for that
lggr has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
<kollapse> Mon_Ouie, Thank you.
futilegames has joined #ruby
<kollapse> Actually, this might not be a Rails issue. I'm looking for a gem that handles XML DOM parsing. Does such a thing exist ?
<Spaceghostc2c> kollapse: #rubyonrails
<diegoviola> try sequel and you'll never go back to activerecord
<Virunga> Hi diegoviola, are you italian?
specialGuest has quit [Client Quit]
mrflip has joined #ruby
<diegoviola> Virunga: no, paraguayan
<Spaceghostc2c> diegoviola: Try cooler nosql databases and you'll find that you can solve the same problems with cooler tools. Never go back to rdbms systems again.
robustus has quit [Quit: ZNC - http://znc.in]
tommyvyo has joined #ruby
<Virunga> Oh, ok.
dpk has joined #ruby
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
c0rn_ has quit []
<diegoviola> Spaceghostc2c: i've been using mongo and so far i like it, i wish it had triggers though
h4mz1d has joined #ruby
<Spaceghostc2c> diegoviola: 'triggers'?
<Hanmac> Spaceghost2c i can do 3d games in ruby without java :D
<Spaceghostc2c> Events?
<diegoviola> Spaceghostc2c: yeah that sort of thing
mrflip has quit [Client Quit]
<Spaceghostc2c> Hanmac: I can do 3d games in ruby on the jvm without java :D
<Spaceghostc2c> The JVM doesn't constitute java the language in your codebase.
* Hanmac uses ogre3d as engine
rubious has quit [Quit: Linkinus - http://linkinus.com]
awestroke has joined #ruby
Cache_Money has joined #ruby
love_color_text has joined #ruby
cburyta has quit [Remote host closed the connection]
devnull_ has quit [Remote host closed the connection]
specialGuest has quit [Quit: WeeChat 0.3.8]
lggr has quit [Ping timeout: 240 seconds]
awestroke has quit [Ping timeout: 268 seconds]
ryanRT has joined #ruby
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
specialGuest has quit [Client Quit]
cakehero has quit [Quit: Computer has gone to sleep.]
swarley has quit [Read error: Connection reset by peer]
LineByLine has joined #ruby
awestroke has joined #ruby
<diegoviola> what tdd/bdd libraries do you guys use?
lggr has joined #ruby
dr_bob has quit [Quit: Tune in next week when you'll hear Dr. Bob say...]
<Spaceghostc2c> diegoviola: rspec
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
ephemerian has joined #ruby
cakehero has joined #ruby
<diegoviola> nice
cirwin has quit [Ping timeout: 246 seconds]
<diegoviola> i like the idea of assertions
<diegoviola> "match this with that"
hvq has quit [Remote host closed the connection]
<GoHuyGo> As discussed earlier
<GoHuyGo> can I just access my data with
<GoHuyGo> @photos_array[0].url?
specialGuest has quit [Client Quit]
<Spaceghostc2c> shevy: Are you still a wonderful person?
lggr has quit [Ping timeout: 248 seconds]
ltsstar has quit [Quit: ltsstar]
mneorr has quit [Remote host closed the connection]
LineByLine has quit [Quit: Colloquy for iPad - http://colloquy.mobi]
mercwithamouth has quit [Ping timeout: 244 seconds]
mneorr has joined #ruby
futilegames has quit [Remote host closed the connection]
sent-hil has joined #ruby
Morkel has quit [Quit: Morkel]
friskd has joined #ruby
snorkdude has joined #ruby
awestroke has quit [Remote host closed the connection]
nicoulaj has quit [Remote host closed the connection]
<Mon_Ouie> GoHuyGo: Unrelated to the problem, but you can drop all those .to_s: they're implied by string interpolation
<GoHuyGo> Mon_Ouie: okay
centipedefarmer has quit [Remote host closed the connection]
<GoHuyGo> Mon_Ouie: So when I try to run this in ruby console
<GoHuyGo> It looks like my @photos_array is nil
friskd has quit [Client Quit]
cakehero has quit [Quit: Computer has gone to sleep.]
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
snorkdude has quit [Remote host closed the connection]
lggr has joined #ruby
<Mon_Ouie> Is this Rails code? It's probably more appropriate to ask there if so
Guedes0 has joined #ruby
<GoHuyGo> Okay, ty
<Mon_Ouie> Other than that: maybe @photos is simply empty too
mneorr has quit [Remote host closed the connection]
pingfloyd has joined #ruby
<GoHuyGo> @photos return an array of hash
cakehero has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
<diegoviola> rails is exactly what i don't want in a web framework, huge, bloated, inflexible ORM that hides too much... i coulg go on and on
<diegoviola> s/coulg/could/
ryanf has joined #ruby
lee__ has quit [Quit: Leaving]
Neomex has quit [Quit: Neomex]
<shevy> Spaceghostc2c nah, I am a grumpy old man
workmad3 has quit [Ping timeout: 244 seconds]
Synthead has quit [Remote host closed the connection]
lggr has joined #ruby
workmad3 has joined #ruby
mahmoudimus has joined #ruby
Synthead has joined #ruby
timonv has joined #ruby
<Spaceghostc2c> shevy: :D
timonv has quit [Remote host closed the connection]
love_color_text has quit [Remote host closed the connection]
awarner has joined #ruby
bobbbo has quit [Quit: bobbbo]
Guest64548 has quit [Ping timeout: 268 seconds]
awarner has quit [Remote host closed the connection]
Agis__ has joined #ruby
timonv has joined #ruby
gmci has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
wargasm has quit [Ping timeout: 246 seconds]
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
swarley has joined #ruby
awarner has joined #ruby
<swarley> stack level errors are the bane of my existance
\13k has joined #ruby
<swarley> what the hell
<swarley> /home/swarley/Documents/Programming/Ruby/YAIL/lib/yail/plugin.rb:10
<swarley> thats the entire backtrace
<swarley> WTF
<Mon_Ouie> Since we were talking about alternative ruby implementations earlier: some of them can show more than just one item upon a stack overflow exception ;)
<Mon_Ouie> (I think at least Rubinius does that)
lggr has joined #ruby
<swarley> MRI usually does
<swarley> but, i have no idea where the recursion is here
cpruitt has joined #ruby
<Mon_Ouie> MRI doesn't show me anything for a simple def bar; foo; end; def foo; foo; edn
<Mon_Ouie> end*
<Mon_Ouie> Same with just the foo part
<swarley> ah, i found it
<shevy> guys
<shevy> rescue Exception => error
<swarley> shevy, i did that
<shevy> is there a way to rescue all Exceptions, except for SystemExit ?
<swarley> uh
<Mon_Ouie> Sure
<swarley> i'm not sure
<Mon_Ouie> You could just rescue them separately and reraise them, or define a custom object with an === that matches everything except SystemExit instances
awarner has quit [Remote host closed the connection]
<swarley> wait, minitest/spec doesnt have obj.must_be_true ?
h8R has joined #ruby
<shevy> ah
<shevy> good idea, yeah
specialGuest has quit [Quit: WeeChat 0.3.8]
<shevy> I will rescue it before the general rescue clause
<shevy> Mon_Ouie is clever :)
lggr has quit [Ping timeout: 246 seconds]
<swarley> quite so
<shevy> swarley today is not a good day, I have about 30 different files open already, and constantly new problems arise...
wargasm has joined #ruby
<swarley> ah
<swarley> fun times
jhowarth has joined #ruby
lggr has joined #ruby
lyaunzbe has quit [Ping timeout: 246 seconds]
saschagehlich_ has joined #ruby
timonv has quit [Remote host closed the connection]
saschagehlich_ has quit [Remote host closed the connection]
stepnem has quit [Read error: Operation timed out]
saschagehlich_ has joined #ruby
saschagehlich__ has joined #ruby
saschagehlich has quit [Ping timeout: 248 seconds]
saschagehlich__ is now known as saschagehlich
saschagehlich has quit [Client Quit]
centipedefarmer has joined #ruby
saschagehlich_ has quit [Ping timeout: 246 seconds]
specialGuest has joined #ruby
specialGuest has quit [Changing host]
specialGuest has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
tdubellz is now known as thomas
davidcelis has quit [Quit: K-Lined.]
Belwolf_ has quit [Ping timeout: 256 seconds]
baroquebobcat has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
lggr has joined #ruby
tds has joined #ruby
otters has quit [Ping timeout: 252 seconds]
cpruitt has quit [Quit: cpruitt]
johnjohnson has joined #ruby
gfontenot has joined #ruby
emmanuelux has joined #ruby
jenrzzz has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
lggr has quit [Ping timeout: 264 seconds]
davidcelis has joined #ruby
lggr has joined #ruby
Guest29702 has joined #ruby
GoHuyGo has quit [Quit: Leaving]
_veer has joined #ruby
_veer has quit [Changing host]
_veer has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
centipedefarmer has joined #ruby
niklasb has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 244 seconds]
TomJ has quit [Quit: TomJ]
h4mz1d has joined #ruby
wallerdev has joined #ruby
lggr has quit [Ping timeout: 268 seconds]
love_color_text has joined #ruby
JarJar has quit [Quit: Leaving]
kollapse has quit [Read error: Operation timed out]
thunderstrike has quit [Remote host closed the connection]
wargasm has quit [Read error: Connection reset by peer]
wargasm1 has joined #ruby
otters has joined #ruby
friskd has joined #ruby
friskd has left #ruby [#ruby]
cwd1 has joined #ruby
vaclavt has quit [Quit: vaclavt]
lggr has joined #ruby
ryanlecompte has joined #ruby
cwd1 has quit [Remote host closed the connection]
Chryson has quit [Quit: Leaving]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
kirun has quit [Quit: Client exiting]
centipedefarmer has quit [Remote host closed the connection]
pdelgallego has quit [Quit: pdelgallego]
baroquebobcat has quit [Quit: baroquebobcat]
Skowne has joined #ruby
dangerousdave has quit [Ping timeout: 252 seconds]
lggr has quit [Ping timeout: 246 seconds]
otters has quit [Ping timeout: 246 seconds]
grainne has quit [Quit: =^..^=]
wpaulson has joined #ruby
lggr has joined #ruby
centipedefarmer has joined #ruby
wallerdev has quit [Ping timeout: 268 seconds]
bradyl0ve has quit [Quit: Linkinus - http://linkinus.com]
beneggett has joined #ruby
budha has quit []
tds has quit [Quit: tds]
wallerdev has joined #ruby
lggr has quit [Ping timeout: 248 seconds]
dpk has quit [Quit: Asleep at the keyboard.]
xyzodiac has joined #ruby
kiyoura has joined #ruby
seanstickle has joined #ruby
pingfloyd has quit [Ping timeout: 244 seconds]
Skowne has quit []
moshee has quit [Ping timeout: 246 seconds]
maletor has joined #ruby
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
wpaulson has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
nateberkopec has joined #ruby
centipedefarmer has quit [Remote host closed the connection]
wallerdev has quit [Ping timeout: 246 seconds]
lggr has joined #ruby
Knodi has joined #ruby
Knodi has quit [Client Quit]
heftig has quit [Ping timeout: 245 seconds]
Whoop has quit [Quit: Gone]
<Cache_Money> I'm getting a String back as a response from a web server. However, it's really just a Hash. Is there an easy way to convert it to a Hash?
dross has joined #ruby
tds has joined #ruby
Whoop has joined #ruby
Whoop has quit [Changing host]
Whoop has joined #ruby
dmiller has joined #ruby
tds has quit [Client Quit]
wallerdev has joined #ruby
<Cache_Money> or convert it to JSON so I can parse it easier??
Drewch has quit [Excess Flood]
<sent-hil> Cache_Money: why don't you ask for json?
feelshift has joined #ruby
arubin has quit [Quit: arubin]
<Spooner> Cache_Money : That response is a JSON hash.
Drewch has joined #ruby
lggr has quit [Ping timeout: 256 seconds]
<Cache_Money> it gives me a 404 error if I ask for JSON
F1skr has quit [Quit: WeeChat 0.3.8]
<Cache_Money> Spooner: but when I run resp.class it returns String
baphled has quit [Ping timeout: 256 seconds]
<Spooner> Yes, JSON is passed as a string. You need to JSON.parse resp to get it converted into a Ruby data structure.
bier has quit [Ping timeout: 245 seconds]
feelshift has quit [Remote host closed the connection]
lggr has joined #ruby
beneggett has quit [Quit: Computer has gone to sleep.]
workmad3 has quit [Ping timeout: 245 seconds]
wallerdev has quit [Ping timeout: 256 seconds]
<Cache_Money> Spooner: sweet! Used the Crack gem - hash = Crack::JSON.parse(resp)
<Cache_Money> thanks
lyaunzbe has joined #ruby
pdelgallego has joined #ruby
<Spooner> You don't need to use the Crack gem. Ruby 1.9 comes with json (require 'json').
pingfloyd has joined #ruby
h4mz1d has quit [Ping timeout: 246 seconds]
<Cache_Money> oh nice
freeayu has joined #ruby
ryanlecompte has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 256 seconds]
<examancer> I heard about a pre-configured VM that has already has all the edge rails dependencies pre-installed so you can start hacking on rails core and submit well tested pulls.
skogis has quit [Ping timeout: 245 seconds]
nari has joined #ruby
<examancer> I can't remember what episode of Ruby 5 it was. Anyone here of something like this and know where I can find it.
<examancer> nevermind... just needed to concetrate on my google fu a little more
<rking> Any ideas on a cscope-for-ruby thing?
ph^ has quit [Remote host closed the connection]
iocor has quit [Quit: Computer has gone to sleep.]
lggr has joined #ruby
pdelgallego has quit [Quit: pdelgallego]
bier has joined #ruby
seanstickle is now known as seanstickleMD
seanstickleMD is now known as seanstickleCISSP
Guest29702 has quit [Quit: Saliendo]
ph^ has joined #ruby
ph^ has quit [Remote host closed the connection]
seanstickleCISSP is now known as seanstickle
bradhe has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
bradhe has joined #ruby
lggr has quit [Ping timeout: 240 seconds]
ph^ has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
sailias has joined #ruby
ph^ has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
notwen has quit [Read error: Connection reset by peer]
notwen has joined #ruby
ph^ has joined #ruby
lggr has joined #ruby
ph^ has quit [Remote host closed the connection]
hadees has quit [Quit: hadees]
mercwithamouth has joined #ruby
vjt has quit [Ping timeout: 272 seconds]
freeayu has quit [Ping timeout: 244 seconds]
freeayu has joined #ruby
adac has quit [Ping timeout: 240 seconds]
moeSeth has quit [Quit: Connection closed for inactivity]
dmiller has quit [Remote host closed the connection]
ph^ has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
lggr has quit [Ping timeout: 256 seconds]
swarley has quit [Ping timeout: 256 seconds]
ph^ has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
ph^ has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
swarley has joined #ruby
ph^ has joined #ruby
ph^ has quit [Remote host closed the connection]
lggr has joined #ruby
LouisGB has quit [Ping timeout: 246 seconds]
Forevernade has quit [Remote host closed the connection]
ph^ has joined #ruby
ghanima has joined #ruby
ph^ has quit [Read error: Connection reset by peer]
sent-hil has quit [Remote host closed the connection]
banisterfiend has quit [Remote host closed the connection]
tommyvyo has quit [Quit: Computer has gone to sleep.]
ph^ has joined #ruby
c0rn_ has joined #ruby
Villadelfia has quit [Quit: Leaving.]
lggr has quit [Ping timeout: 260 seconds]
ph^ has quit [Remote host closed the connection]
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
xyzodiac has quit [Ping timeout: 268 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
<Aristata> I want to create a new time in the central time zone, and have it be for 1:00pm, then convert it to utc. How would I go about doing that?
<Aristata> Can anyone help me out with this question?: http://pastie.org/private/2wp4sp4rutpvqfr8bosy8g
sent-hil has joined #ruby
xbayrockx has joined #ruby
swarley has quit [Ping timeout: 260 seconds]
notVert has quit [Read error: Connection reset by peer]
lggr has joined #ruby
sailias has quit [Ping timeout: 246 seconds]
xyzodiac has joined #ruby
c0rn_ has quit [Ping timeout: 248 seconds]
elico has quit [Remote host closed the connection]
c0rn_ has joined #ruby
tommyvyo has quit [Quit: Computer has gone to sleep.]
ephemerian has quit [Quit: Leaving.]
sent-hil has quit [Remote host closed the connection]
havenn has joined #ruby
ghanima has quit [Ping timeout: 268 seconds]
lggr has quit [Ping timeout: 244 seconds]
swarley has joined #ruby
c0rn_ has quit [Ping timeout: 244 seconds]
lggr has joined #ruby
johnjohnson has quit []
c0rn_ has joined #ruby
<Cache_Money> Is it bad practice to write a hash to a file?
fyolnish has quit [Remote host closed the connection]
<Cache_Money> I'm writing a hash to a file but when I read the contents from the file I'm returned a String. When I attempt to JSON.parse(contents) I get an error stating, "unexpected token at ..."
banisterfiend has joined #ruby
vjt has joined #ruby
wpaulson has joined #ruby
Banistergalaxy has quit [Ping timeout: 248 seconds]
akoumjian has left #ruby ["Textual IRC Client: http://www.textualapp.com/"]
bradhe has quit [Remote host closed the connection]
lggr has quit [Ping timeout: 246 seconds]
LouisGB has joined #ruby
c0rn_ has quit [Ping timeout: 246 seconds]
ryanlecompte has joined #ruby
xeronic has joined #ruby
c0rn_ has joined #ruby