apeiros changed the topic of #ruby to: Ruby 1.9.3-p374: http://ruby-lang.org (ruby-2.0.0-rc1) || Paste >3 lines of text on http://gist.github.com
Guedes0 has quit [Ping timeout: 245 seconds]
elico has quit [Ping timeout: 245 seconds]
pskosinski has quit [Ping timeout: 256 seconds]
adeponte has quit [Remote host closed the connection]
Hanmac_ has quit [Ping timeout: 245 seconds]
jaequery has quit [Ping timeout: 256 seconds]
friskd has joined #ruby
TomyLobo has quit [Disconnected by services]
MattRB has quit [Quit: This computer has gone to sleep]
TomyLobo has joined #ruby
headius has quit [Ping timeout: 256 seconds]
nari has quit [Ping timeout: 248 seconds]
baphled has quit [Ping timeout: 276 seconds]
ner0x has joined #ruby
elico has joined #ruby
carloslopes has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
adeponte has joined #ruby
<colonolGron> i want to write a curses based application. i installed ncurses and rbcurse-core, rbcurse-extra gems.
<colonolGron> i searched for an example, but it doesnt run: http://nopaste.info/9e2368f61c.html
<colonolGron> i am also using ruby for the first time (except hello-world-like stuff)
Umren has quit [Read error: Connection reset by peer]
jaequery has joined #ruby
enebo has quit [Quit: enebo]
<colonolGron> is rbcurse still to be used?
<banisterfiend> colonolGron: i dont know, what's the error ? how doesnt it run?
<colonolGron> banisterfiend: http://nopaste.info/9e2368f61c.html
<colonolGron> i pasted the errors there
krainboltgreene has quit [Quit: Computer has gone to sleep.]
<banisterfiend> colonolGron: thanks
<banisterfiend> colonolGron: can u give me some example code to run?
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
<colonolGron> banisterfiend: http://rbcurse.rubyforge.org/prog1.rb
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
<banisterfiend> colonolGron: https://github.com/rkumar/rbcurse
<banisterfiend> colonolGron: haha read that sounds like he's undergoing some troubles :) "this repo is in flux"
<banisterfiend> my guess is
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
<banisterfiend> he's done a recent refactor where he's changed Panel from a class to a module or vice versa
<banisterfiend> and forgotten to update one of his plugins
juarlex has quit [Ping timeout: 260 seconds]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
<colonolGron> banisterfiend: i guess he uses this repo now: https://github.com/rkumar/rbcurse-core
ViPi has joined #ruby
TomyLobo has quit [Quit: Standby mode...]
ViPi has quit [Max SendQ exceeded]
<banisterfiend> colonolGron: wow, it works great for me
<banisterfiend> colonolGron: let me show u a demo
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
robotmay has quit [Remote host closed the connection]
<colonolGron> banisterfiend: i works? what did you do? :)
hakunin_ is now known as hakunin
<colonolGron> *it
tatsuya_o has quit [Remote host closed the connection]
yoshie902a has left #ruby [#ruby]
mockra has joined #ruby
shock_one_ has quit [Ping timeout: 276 seconds]
<banisterfiend> colonolGron: yep http://ascii.io/a/1913
<banisterfiend> colonolGron: but i got kind of stuck in the UI
<banisterfiend> but it works
x82_nicole has quit [Quit: Computer has gone to sleep.]
<banisterfiend> i try like 50 times to quit
<banisterfiend> but htat's probably my fault
<banisterfiend> not the library
Kingy_ has quit [Quit: Leaving]
SCommette has joined #ruby
<colonolGron> but how did you get it to run? o_O
SCommette has quit [Client Quit]
gyre007 has joined #ruby
krisfremen has quit [Quit: hmm]
TomRone has quit [Ping timeout: 248 seconds]
ryanh has joined #ruby
<banisterfiend> colonolGron: i went into the examples/ folder
<banisterfiend> colonolGron: and typed: ruby test2.rb
<banisterfiend> colonolGron: here i'll show u the whole process
<banisterfiend> one sec
TomRone has joined #ruby
MattRB has joined #ruby
kirun has quit [Quit: Client exiting]
joofsh has quit [Remote host closed the connection]
tommyvyo has joined #ruby
yoshie902a has joined #ruby
friskd is now known as markalanevans
mmitchell has quit [Remote host closed the connection]
ViPi has quit [Quit: Computer has gone to sleep.]
DaZ has quit [Read error: Operation timed out]
baroquebobcat has quit [Quit: baroquebobcat]
<yoshie902a> I created a file myfiles.rb and than I created another file mycode.rb and put typed the first line as "require 'myfiles'", both files are in the same folder. Is my syntax off? I get a can not load such file -- myfiles (load error)
zeade has joined #ruby
<havenn> yoshie902a: "." isn't in the $LOAD_PATH by default.
markalanevans has quit [Quit: markalanevans]
<havenn> yoshie902a: you can use `require_relative`, `require './myfile'` or add the dir to the $LOAD_PATH.
krisfremen has joined #ruby
krisfremen has quit [Changing host]
krisfremen has joined #ruby
<colonolGron> banisterfiend: i have a problem with my terminal emulator...if you already posted the second url..i cant scroll up to look for it. could you do it again? :)
ichilton has quit [Ping timeout: 276 seconds]
<banisterfiend> colonolGron: i gave up on the second url sorry :)
<havenn> yoshie902a: If i'm just in Pry, and want the dir I'm in to become available, i usually do something like: $: << Dir.pwd
<banisterfiend> my setup wouldn't let me do it
MattRB has quit [Quit: This computer has gone to sleep]
eric has joined #ruby
jackyalcine has joined #ruby
jackyalcine has quit [Changing host]
<colonolGron> banisterfiend: wouldnt let you do what?
jackyalcine has joined #ruby
<eric> Guys Im not quite sure how to do this: if(url = "*"+".com" or +".net" or +".org")
eric is now known as Guest30452
<Guest30452> I need the url to equal anything + .com or w.e.
<banisterfiend> colonolGron: post the second url
<havenn> yoshie902a: (P.S.: `$:` is shorthand for `$LOAD_PATH`)
F1skr has quit [Quit: WeeChat 0.4.0]
markalanevans has joined #ruby
<colonolGron> banisterfiend: why not?
<banisterfiend> colonolGron: because the program im using to record the screen doesn't let me use ruby binaries
<colonolGron> mmhh
<Guest30452> <eric> Guys Im not quite sure how to do this: if(url = "*"+".com" or +".net" or +".org")
<colonolGron> banisterfiend: so you went into the example folder of the rbcurse gem?
yshh has quit [Remote host closed the connection]
<banisterfiend> colonolGron: yes
<yoshie902a> havenn: great, thanks!
<banisterfiend> colonolGron: in pry it's easy, do this: gem-cd rbcurse
<aces23up> http://codepad.org/EqcSXqLX can some here help me with converting two strings to an array of hashes?
<banisterfiend> then type: .cd examples
<banisterfiend> .ruby test2.rb
<Guest30452> Anyone
wargasm has joined #ruby
<yoshie902a> havenn: I switched to MRI 1.9.3 and now I'm getting a Invalid next (SyntaxError)
<yoshie902a> on this line: next if orig.strip.empty?
<havenn> Guest30452: What are you trying to do? See if the url includes those or ends with those?
<yoshie902a> is my syntax for next if incorrect too?
<yoshie902a> my require line and this next if line worked fine in jruby
moshee has quit [Ping timeout: 248 seconds]
karupanerura has quit [Excess Flood]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
<colonolGron> banisterfiend: gem-cd doesnt work, so i manually navigated into /Library/Ruby/Gems/1.8/gems/rbcurse-core-0.0.3 but there is not test2.rb
<havenn> yoshie902a: Out of context it looks fine.
<havenn> yoshie902a: Gist code and error?
<banisterfiend> colonolGron: http://showterm.io/a46362ac9671d78cf10cc
mjolk has joined #ruby
freeayu has joined #ruby
mjolk is now known as Guest84309
generalissimo has quit [Remote host closed the connection]
aeontech has joined #ruby
karupanerura has joined #ruby
Guest61468 has joined #ruby
<banisterfiend> colonolGron: that shows exactly what to do
recycle has quit [Remote host closed the connection]
<colonolGron> banisterfiend: thank you. it seems i dont have that pry command. i will inform myself about it
<banisterfiend> colonolGron: gem install pry
Guest30452 has left #ruby ["Leaving"]
the_jeebster has joined #ruby
carloslopes has joined #ruby
awkwords has quit [Quit: Lost terminal]
daxroc has quit [Ping timeout: 252 seconds]
andrewhl has joined #ruby
elico has quit [Quit: Elico]
hadees has joined #ruby
ViPi has joined #ruby
Guest84309 has quit [Ping timeout: 264 seconds]
ViPi has quit [Max SendQ exceeded]
marr has quit [Ping timeout: 256 seconds]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
dmiller1 has quit [Read error: Operation timed out]
daxroc has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
gyre007 has quit [Remote host closed the connection]
<colonolGron> banisterfiend: strange, it sais that require cant find rbcurse. how is that possible
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
samuel02 has quit [Remote host closed the connection]
ViPi has joined #ruby
samuel02 has joined #ruby
gyre007 has joined #ruby
<colonolGron> i am not used to the ruby toolchain yet...
<colonolGron> i thought sudo gem install rbcurse will install it and set it up..no?
<banisterfiend> colonolGron: are oyu using rvm?
<banisterfiend> colonolGron: best to install rvm/rbenv
<banisterfiend> colonolGron: http://rvm.io
jaequery has quit [Ping timeout: 252 seconds]
chriskk has quit [Quit: chriskk]
jeffreybaird has quit [Quit: jeffreybaird]
<colonolGron> banisterfiend: i will get it
<colonolGron> what is it for?
samuel02 has quit [Ping timeout: 276 seconds]
<colonolGron> from the website i can see that i can install different versions of ruby
<colonolGron> but how is that related to my problem?
<banisterfiend> colonolGron: because ruby installed via package manager is often weird and broken
<banisterfiend> that's probably what u're experiencing now
<banisterfiend> an rvm ruby or rbenv ruby generally have less isssues
<colonolGron> i see
<colonolGron> strange that the "official" for my os is broken though
miskander has quit [Quit: miskander]
f03lipe has joined #ruby
<aces23up> what is the array command to take 2 elements during an iteration?
tommyvyo has quit [Quit: http://thomasvendetta.com]
<colonolGron> banisterfiend: what happens to my already installed gems?
<banisterfiend> colonolGron: u'll need to reinstall them
<colonolGron> and how to remove the old ones?
fyolnish has quit [Remote host closed the connection]
ChampS666 has quit [Ping timeout: 264 seconds]
ephemerian has quit [Quit: Leaving.]
<banisterfiend> colonolGron: forget about them
<colonolGron> banisterfiend: now the example runs. thank you!
dougireton has quit [Remote host closed the connection]
<colonolGron> maybe you can point me out where to learn about all these ruby related stuff? i didnt know rvm and pry up to know. is there more i need to dig into?
tcstar has joined #ruby
carloslopes has quit [Ping timeout: 264 seconds]
tcstar has quit [Quit: Leaving]
<banisterfiend> colonolGron: buy a book
<banisterfiend> colonolGron: probalby 'eloquent ruby' would sort u out
yshh has joined #ruby
<havenn> colonolGron: The RubyConf talks make a good watch, and mention quite a few gems to look at. http://www.confreaks.com/events/rubyconf2012
<colonolGron> alright, i'll do that.
chrismhough has quit [Quit: chrismhough]
<colonolGron> thank you havenn
brianpWins has quit [Quit: brianpWins]
adeponte has quit [Remote host closed the connection]
<colonolGron> one last question: now that i installed rvm, gems seem to get installed in a different location. otherwise i guess i still could access my already installed ones, where is the new location?
woolite64 has quit [Quit: Leaving]
bradhe has quit [Remote host closed the connection]
bradhe has joined #ruby
MattRB has joined #ruby
nopolitica has joined #ruby
workmad3 has quit [Ping timeout: 255 seconds]
phinfonet has quit [Ping timeout: 264 seconds]
RORgasm has joined #ruby
joofsh has joined #ruby
<Eiam> so when you guys sit down to write a gem or add some new code into ruby, do you start off by writing unit tests( TDD?) I find myself sitting down and thinking about what I need, then writing some methods that do it
d2dchat has joined #ruby
<Eiam> just wondering how others go about doing it
arya has quit [Ping timeout: 244 seconds]
<yfeldblum> Eiam, depends on the case
aeontech has quit [Read error: Operation timed out]
<Eiam> right now there is a gem I have that has some functionality and I need to add the ability to do x+1, so my first thought is just crack open the gem, add a method to do x+1 and be done with it
<jblack> I usually write tests to test code I just wrote
arya has joined #ruby
<Eiam> but man I hate writing code in gems cause they are a pain in the ass to test
x82_nicole has joined #ruby
ccsidiot has quit [Ping timeout: 245 seconds]
<Eiam> i just found bundle console which I can call from within the gem git repo and thats been wonderful
fjfish has joined #ruby
mrsolo has quit [Quit: Leaving]
<Eiam> I don't really get TDD because it seems like now I've got a second layer to worry about -- is my test wrong or is my method wrong?
baphled has joined #ruby
<Eiam> dunno guess I have to debug them both now.
kmczn has joined #ruby
bradhe has quit [Ping timeout: 252 seconds]
chridal has quit [Ping timeout: 245 seconds]
aeontech has joined #ruby
RORgasm has quit [Ping timeout: 248 seconds]
recycle has joined #ruby
dmiller1 has joined #ruby
francisfish has quit [Ping timeout: 248 seconds]
angusiguess has joined #ruby
DrShoggoth has joined #ruby
etcetera has quit []
RubyPanther has quit [Ping timeout: 260 seconds]
taoru has joined #ruby
taoru has quit [Remote host closed the connection]
joofsh has quit [Remote host closed the connection]
RubyPanther has joined #ruby
dmiller1 has quit [Ping timeout: 252 seconds]
nateberkopec has joined #ruby
etcetera has joined #ruby
yshh has quit [Remote host closed the connection]
<yfeldblum> Eiam, why is it a pain in the ass to test?
<yfeldblum> Eiam, as we speak, i happen to be writing a whole bunch of tests right now
jackyalcine has quit [Ping timeout: 248 seconds]
x82_nicole has quit [Quit: Textual IRC Client: www.textualapp.com]
jtgiri_ has quit [Quit: jtgiri_]
<yfeldblum> Eiam, it's often just a matter of getting familiar with the practice, and getting some practice in
zph has joined #ruby
yshh has joined #ruby
<Eiam> yfeldblum: well, typically I'm using a bunch of gems in a rails app, so when I modify the gems I have to modify the gemfile to point to the local version on my system path, restart rails to pick up the changes, then hit the code path to trigger it
<yfeldblum> Eiam, when you modify the gems, don't test them from your app; instead, test the gem from the gem itself
<Eiam> right, I suspected that would be the answer
<Eiam> hence my questiona bout how people develop gems
<yfeldblum> Eiam, just like i described
colonolGron has quit [Quit: Lost terminal]
<Eiam> often times I suspect what I wrote is correct, but i dno't know till I call it
<Eiam> typically in rails c
<yfeldblum> Eiam, make a dummy app and embed it in the gem's test/fixture (or something like that) directory
<Eiam> yfeldblum: which basically means go learn rspec or whatever the hell the testing DSL is, go write a test, then run rake test or whatever against it
<yfeldblum> Eiam, indeed
alex__c2022 has joined #ruby
<Eiam> meh
<Eiam> doing things right is so expensive
<Eiam> =)
<yfeldblum> Eiam, not when you have practiced it and it becomes second-nature
<jblack> oh man, flog is soo cool
<yfeldblum> Eiam, it's only the learning that's expensive, and of course learning is always expensive
earthquake has joined #ruby
cjs226 has quit []
<Eiam> yeah, learn rubygems, bundler, rack, rspec, blah blah
<Eiam> pry
<Eiam> rubyprof
chriskk has joined #ruby
<aedornm> It could be worse. You could be writing tests to a Ruby app that encompasses a separate technology that makes you try and retry broken pieces A, B, C, D, and E just to get to point F for the actual test all while having 0 access to fix said broken pieces.
LennyLinux has quit [Remote host closed the connection]
<aedornm> and points A, B, C, D, and E can all fail in 10 different ways. Each. Randomly.
<Eiam> aedornm: that sounds like my code? =)
<Eiam> all my data is basically joining up data from other services & turning it into something usable and buffering/abstracting their errors & failures out to something managable
alex__c2022 has quit [Ping timeout: 248 seconds]
<yfeldblum> ensure that A never fails, using tests; then ensure that B never fails, using tests; etc ?
frem has quit [Quit: Computer has gone to sleep.]
<yfeldblum> then when you get to F, developing that is a breeze
aposmontier has joined #ruby
<aedornm> No.. more like.. You have to get through A-E just to test F. Nobody will ever fix A-E. Just work around the problems to get to the final point.
ddd has quit [Ping timeout: 245 seconds]
moshee has quit [Ping timeout: 246 seconds]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
Takehiro has joined #ruby
<aedornm> So we know A will fail 65% of the time with some random problem that is near impossible to replicate. Code, pray its fixed, continue. lol
h4mz1d has quit [Ping timeout: 245 seconds]
<yfeldblum> i prefer my way
<aedornm> and by "fixed" I really mean "it can somehow rescue the process and continue"
<plotplanexe> i thought this was pretty damn cool
maletor has quit [Quit: Computer has gone to sleep.]
<aedornm> that reminds me of Johnny Mnemonic
<Eiam> yfeldblum: any recommended guides for getting started with that portion of the stack?
<Eiam> aedornm: except when your brain starts leaking cause you put too much data in..
<Eiam> I always pack my harddrives too full & data leaks out, its wild.
slainer68 has quit [Remote host closed the connection]
<Eiam> maybe if it was like that sweet sweet hard drive from china where it would just rewrite over itself when it ran out of data that was awesome
<Eiam> it would take any file of any size!
krz has joined #ruby
jtgiri_ has joined #ruby
cableray has quit [Quit: cableray]
etcetera has quit []
Spooner has quit [Quit: Leaving]
yoshie902a has left #ruby [#ruby]
moos3 has quit [Ping timeout: 240 seconds]
daniel_- has quit [Quit: WeeChat 0.3.9.2]
mmitchell has joined #ruby
etcetera has joined #ruby
ryanh has quit [Quit: Computer has gone to sleep.]
Kelet has joined #ruby
nopolitica has quit [Quit: Lost terminal]
moshee has quit [Ping timeout: 245 seconds]
lusory has quit [Read error: Connection reset by peer]
moshee has joined #ruby
etcetera has quit [Client Quit]
<yfeldblum> Eiam, depends how much experience you've got with testing
<Kelet> Hi - I was wondering, if this sounds right. I'm using MiniMagick and it takes ~5 seconds to add a circle to a 2000x2000 image on a 4.8ghz quad core? :/ Does anyone have any solution that could be faster? I need to add ~1000 dots preferably in less than a minute or two.
Goles has joined #ruby
<Kelet> using command $image.draw "circle #{x},#{y} #{x+30},#{y+30}" where $image is MiniMagick::Image.open("fullmap.png")
<Eiam> yfeldblum: testing as a career, I did automated tested and black box qa for 5 years. I don't mean automated testing like unit tests, I mean writing code to go press widgets & buttons and so forth
<f0ster> Kelet: sorry if this isn't helpful, but if you need speed for somethign like that you should be using c or c++
<Eiam> testing like how ruby seems to think of it? none? =)
<yfeldblum> Eiam, i mean writing automated tests
pavilionXP has quit [Remote host closed the connection]
<Kelet> f0ster: I would imagine that the bottleneck is in ImageMagick or MiniMagick or my usage thereof and not related to Ruby
mmitchell has quit [Ping timeout: 248 seconds]
<Eiam> I was working on some rspec code to test some sproutcore applications a year or two ago =)
<Eiam> didnt' get too far though before i quit! ;)
<Eiam> unrelated to rspec o course haha
etcetera has joined #ruby
blazes816 has quit [Quit: blazes816]
<yfeldblum> Eiam, get practice ... make a personal todo app (cli app, rails app, whatever ... just something real simple) with tests for everything
<f0ster> Kelet: yeah I guess so, the imagemagick functions that are called are in c ?
baphled has quit [Ping timeout: 245 seconds]
<yfeldblum> Eiam, start with the simplest possible app, and just get practice writing one simple test covering some simple functionality, and then another simple test covering the same bit of functionality, etc
jtgiri_ has quit [Quit: jtgiri_]
peteyg has quit [Ping timeout: 255 seconds]
banisterfiend is now known as banister`sleep
mahmoudimus has joined #ruby
peteyg has joined #ruby
goraxe has quit [Ping timeout: 248 seconds]
squidBits has joined #ruby
generalissimo has joined #ruby
emptyflask has joined #ruby
bricker_ has joined #ruby
c0rn has quit [Quit: Computer has gone to sleep.]
Spooner has joined #ruby
Spooner has quit [Client Quit]
havenn has quit [Remote host closed the connection]
the_jeebster has quit [Quit: Leaving.]
billy_ran_away has quit [Ping timeout: 256 seconds]
emptyflask has quit [Ping timeout: 244 seconds]
billy_ran_away has joined #ruby
quest88 has joined #ruby
bricker has quit [Ping timeout: 256 seconds]
dougireton has joined #ruby
ckrailo has quit [Quit: Computer has gone to sleep.]
recycle has quit [Ping timeout: 255 seconds]
bricker_ has quit [Ping timeout: 276 seconds]
Guest__ has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
beneggett has joined #ruby
danktamagachi has joined #ruby
arya has quit [Ping timeout: 276 seconds]
recycle has joined #ruby
bricker has joined #ruby
aposmontier is now known as eating_aposmonti
phantasm66 has joined #ruby
eating_aposmonti is now known as food_aposmontier
phantasm66 has quit [Client Quit]
nari has joined #ruby
Maziz has joined #ruby
dougireton has quit [Ping timeout: 248 seconds]
ngoldman has joined #ruby
Maziz has quit [Remote host closed the connection]
arya has joined #ruby
gyre007 has quit [Remote host closed the connection]
ilyam has quit [Quit: ilyam]
hck89 has joined #ruby
recycle_ has joined #ruby
recycle has quit [Ping timeout: 255 seconds]
joeycarmello has quit [Remote host closed the connection]
ged has joined #ruby
digifiv5e has quit [Excess Flood]
joofsh has joined #ruby
tspike has quit [Quit: leaving]
samphippen has quit [Ping timeout: 244 seconds]
digifiv5e has joined #ruby
digifiv5e is now known as Guest90975
havenn has joined #ruby
tomzx_mac has joined #ruby
tommyvyo has joined #ruby
jackyalcine has joined #ruby
joeycarmello has joined #ruby
davorb_laptop has joined #ruby
ttt has joined #ruby
h4mz1d has joined #ruby
recycle_ has quit [Ping timeout: 276 seconds]
Michael_ has quit [Remote host closed the connection]
tommyvyo has quit [Client Quit]
ttt has quit [Remote host closed the connection]
h4mz1d has quit [Remote host closed the connection]
ViPi has quit [Quit: Computer has gone to sleep.]
ttt has joined #ruby
h4mz1d has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
earthquake has quit [Quit: earthquake]
Rym has joined #ruby
freakazoid0223 has joined #ruby
fyolnish has joined #ruby
anchorspark has joined #ruby
ddd has joined #ruby
ironmagma has joined #ruby
Takehiro has quit [Remote host closed the connection]
anchorspark has quit [Client Quit]
<ironmagma> Hi there, I'm looking for documentation on OptionParser, but all the links on http://ruby-doc.org/stdlib-1.9.2/libdoc/optparse/rdoc/OptionParser.html seem to be broken. Anyone know why, or where else I should look?
recycle has joined #ruby
mahmoudimus has quit [Ping timeout: 245 seconds]
Goles has quit [Quit: Computer has gone to sleep.]
bradhe has joined #ruby
zph has joined #ruby
ewag has quit [Ping timeout: 248 seconds]
tatsuya_o has joined #ruby
peteyg has quit [Ping timeout: 248 seconds]
ilyam has joined #ruby
eka has quit [Quit: Computer has gone to sleep.]
MattRB has quit [Quit: This computer has gone to sleep]
bradhe has quit [Ping timeout: 256 seconds]
xemu has quit [Quit: Nettalk6 - www.ntalk.de]
karasawa has joined #ruby
tatsuya_o has quit [Ping timeout: 248 seconds]
etcetera has quit []
b1rkh0ff has joined #ruby
mmitchell has joined #ruby
caleb_io has joined #ruby
Cooler_ has quit [Read error: Connection reset by peer]
Cooler_ has joined #ruby
davorb_laptop has quit [Quit: Computer has gone to sleep.]
linux01 has quit []
chriskk has quit [Quit: chriskk]
Michael_ has joined #ruby
caleb_io has quit [Client Quit]
mockra has quit [Remote host closed the connection]
aeontech has quit [Quit: aeontech]
mahmoudimus has joined #ruby
epylinkn has quit [Quit: Leaving.]
sn0wb1rd has quit [Quit: sn0wb1rd]
aedornm has quit [Remote host closed the connection]
Takehiro has joined #ruby
anchorspark has joined #ruby
vinax has joined #ruby
MattRB has joined #ruby
etcetera has joined #ruby
food_aposmontier is now known as coffee_andrew
slainer68 has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
babonk has quit [Quit: babonk]
icole has quit [Remote host closed the connection]
danktamagachi has quit [Ping timeout: 255 seconds]
squidBits has quit [Quit: whoops]
griffindy has quit [Quit: Computer has gone to sleep.]
slainer68 has quit [Ping timeout: 248 seconds]
luckyruby has quit [Remote host closed the connection]
recycle has quit [Ping timeout: 245 seconds]
rakl has quit [Quit: sleeping]
quest88 has quit [Quit: quest88]
etcetera has quit []
ffranz has quit [Excess Flood]
ffranz has joined #ruby
markalanevans has quit [Ping timeout: 252 seconds]
aeontech has joined #ruby
niklasb has quit [Read error: Operation timed out]
jbw has quit [Ping timeout: 248 seconds]
karasawa has quit [Quit: Lost terminal]
karasawa has joined #ruby
aeontech has left #ruby [#ruby]
sn0wb1rd has joined #ruby
mmitchell has quit [Remote host closed the connection]
kmczn has quit [Ping timeout: 245 seconds]
tommyvyo has joined #ruby
Hanmac1 has joined #ruby
sn0wb1rd has quit [Remote host closed the connection]
yacks has joined #ruby
ddd1 has joined #ruby
Hanmac has quit [Ping timeout: 248 seconds]
ddd1 has left #ruby [#ruby]
JumpMast3r has joined #ruby
ddd has quit [Ping timeout: 245 seconds]
<graft> what's a good way to suppress the printing of instance variables from Object#inspect
<graft> i'd like to make a class and it would be nice if inspect didn't report the whole structure of it and all its children
<aces23up> if i have : @x_array.each_slice(2) { |how, what| build_attr(how, what, @exact) } how to i do a .map on that to get an array of results?
karasawa has quit [Quit: Lost terminal]
karasawa has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
rakl has joined #ruby
ironmagma has quit [Quit: Leaving...]
huoxito has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
<banister`sleep> graft: define your own inspect
ViPi has joined #ruby
d2dchat has quit [Remote host closed the connection]
ViPi has quit [Max SendQ exceeded]
thinkclay has joined #ruby
BulleTime has quit [Ping timeout: 276 seconds]
<graft> banister`sleep: yeah... but i like the #<Class:0xpointer> stuff
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
mascool has quit [Ping timeout: 245 seconds]
jbw has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
aaronmacy has quit [Quit: Leaving.]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
<banister`sleep> graft: you're happy with the to_s output?
<banister`sleep> graft: if so, alias inspect to_s
ttt has quit [Remote host closed the connection]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
berserkr has quit [Quit: Leaving.]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
babonk has joined #ruby
babonk has quit [Changing host]
babonk has joined #ruby
<banister`sleep> graft: ok?
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
RORgasm has joined #ruby
mikepack has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
caleb_io has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
adkron has joined #ruby
adkron_ has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
Tarential has quit [Excess Flood]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
Tarential has joined #ruby
gyre007 has joined #ruby
joeycarmello has quit [Remote host closed the connection]
RORgasm has quit [Ping timeout: 248 seconds]
ViPi has joined #ruby
joofsh has quit [Remote host closed the connection]
BSaboia has quit [Read error: Connection reset by peer]
beneggett has quit [Quit: Computer has gone to sleep.]
MattRB has quit [Quit: This computer has gone to sleep]
jaequery has joined #ruby
gyre007 has quit [Ping timeout: 240 seconds]
arya has quit [Ping timeout: 252 seconds]
elux has joined #ruby
elux has quit [Read error: Connection reset by peer]
ViPi has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
elux_ has joined #ruby
io_syl has quit [Ping timeout: 240 seconds]
MattRB has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
arya has joined #ruby
techhelp has joined #ruby
techlife has quit [Ping timeout: 244 seconds]
zeade has quit [Quit: Leaving.]
joeycarmello has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
fyolnish has joined #ruby
chriskk has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
xpen has joined #ruby
zph has joined #ruby
havenn has quit [Remote host closed the connection]
jaequery has quit [Quit: Computer has gone to sleep.]
MattRB has quit [Quit: This computer has gone to sleep]
ddd has joined #ruby
jaequery has joined #ruby
undersc0re97 has quit [Ping timeout: 252 seconds]
techlife has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
jaequery has quit [Client Quit]
fyolnish_ has joined #ruby
danktamagachi has joined #ruby
techhelp has quit [Quit: Leaving]
ossareh has quit [Ping timeout: 252 seconds]
jgrevich_ has joined #ruby
dmiller1 has joined #ruby
Michael_ has quit [Remote host closed the connection]
fyolnish_ has quit [Read error: Connection reset by peer]
havenn has joined #ruby
jgrevich has quit [Ping timeout: 248 seconds]
fyolnish has joined #ruby
jgrevich_ is now known as jgrevich
beneggett has joined #ruby
maletor has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
jaequery has joined #ruby
jgrevich has quit [Ping timeout: 248 seconds]
pu22l3r has joined #ruby
tjbiddle_ has joined #ruby
thufir_ has joined #ruby
sayan has joined #ruby
tjbiddle has quit [Ping timeout: 248 seconds]
bricker_ has joined #ruby
tjbiddle_ has quit [Ping timeout: 256 seconds]
mercwithamouth has joined #ruby
<Nuck> I'm seeking a lib to pull up a browser (whether with something like `open` on OS X or as a GUI containing a WebKit frame) — any pointers?
arya has quit [Ping timeout: 244 seconds]
icole has joined #ruby
bricker has quit [Ping timeout: 246 seconds]
zeade has joined #ruby
<jblack> firefox -new-window file:///this/location/here perhaps ?
<Nuck> ... That's cool if the user has firefox. But there's something like 70% of the internet which doesn't.
fragmachine has joined #ruby
dwu1 has joined #ruby
mercwithamouth has quit [Ping timeout: 248 seconds]
<jrabbit> Nuck: they'd probably wrap each operating system's "open" analogue
kenneth has quit [Quit: kenneth]
<jrabbit> linux has one
icole has quit [Ping timeout: 248 seconds]
<Nuck> jrabbit: Yeah, I know. Something like XDEOpen or something, I forget. Either way, I'd prefer a lib to handle this bit — I think MacRuby has bindings to WebKit that could provide a nicer frame too. There's a lot of solutions.
arya has joined #ruby
pyro111 has joined #ruby
<havenn> Nuck: I've used WebKit through Apache-Callback: https://github.com/Havenwood/sinatra-dot-app/tree/master/Sinatra.app/Contents/MacOS
<jrabbit> (deadlink from jblack)
h4mz1d has quit [Ping timeout: 244 seconds]
<jblack> that url worked for me. :| it refers to launch at http://rubyforge.org/projects/copiousfreetime/ =)
<Nuck> jrabbit: Ah yeah Launchy looks sanest. I think I'll just use that. Thanks!
<havenn> Nuck: That repo is some crazy thing where I rolled my own .app with Ruby code to install the Sinatra gem on system Ruby and use Sinatra to serve up content to WebKit. >.>
<jblack> But thanks for covering my rear, jrabbit. =)
fragmachine has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
<Nuck> havenn: ... Egads.
mneorr has joined #ruby
<Nuck> havenn: I am shocked and apalled.
<havenn> Nuck: :D
bradhe has joined #ruby
JumpMast3r has quit [Quit: JumpMast3r]
bradhe has quit [Remote host closed the connection]
sayan has quit [Read error: Connection reset by peer]
pu22l3r has quit [Remote host closed the connection]
jaequery has quit [Quit: Computer has gone to sleep.]
fram has quit [Ping timeout: 276 seconds]
fram has joined #ruby
joofsh has joined #ruby
Takehiro has quit [Remote host closed the connection]
MattRB has joined #ruby
sorbo_ has quit [Quit: sorbo_]
mockra has joined #ruby
mneorr has quit [Remote host closed the connection]
adeponte has joined #ruby
mneorr has joined #ruby
ninegrid has quit [Quit: bbl]
forced_request has quit [Read error: Connection reset by peer]
adkron_ has quit [Ping timeout: 245 seconds]
adkron has quit [Ping timeout: 245 seconds]
jtgiri_ has joined #ruby
jonahR has joined #ruby
embs is now known as embs_
zeade has quit [Quit: Leaving.]
ttt has joined #ruby
bricker_ has quit [Ping timeout: 255 seconds]
<shevy> anyone of you can recommend a ruby GUI that you personally also use regularly ?
<erichmenge> shevy: Do you mean IDE?
<Nuck> Or perhaps a GUI Toolkit?
tjbiddle has joined #ruby
bricker has joined #ruby
<shevy> erichmenge a GUI toolkit for ruby
<erichmenge> ah
<shevy> I only need notepad for .rb files :)
<erichmenge> Just wanted to clarify :)
sepp2k1 has quit [Remote host closed the connection]
<erichmenge> That's a good question, I played around a bit with MacRuby and it seemed interesting. I'd be curious to know as well about any other approaches.
<erichmenge> it isn't an area I've played much in.
ttt has quit [Ping timeout: 276 seconds]
apok has quit [Quit: apok]
<shevy> hmmmm
<shevy> anyone else!!!
<shevy> noone is using ruby along with GUIs anymore... :(
Zespre has joined #ruby
jblack has quit [Ping timeout: 264 seconds]
<shevy> I am writing lots of commandline .rb scripts
<shevy> every day new ones come along
<shevy> but as far as GUIs are concerned... that's one dead area here right now
<erichmenge> Yeah...
ixx is now known as anoldhacker
n1x has quit [Ping timeout: 248 seconds]
danktamagachi has quit [Ping timeout: 256 seconds]
anoldhacker is now known as ixx
<shevy> ~5 years ago I used ruby-gnome, it was not great, but ok
<heftig> shevy: i heard there are some nice frameworks for jruby
<shevy> nowadays, I cant even get it to compile properly anymore
<shevy> hmm heftig, do you use that yourself though?
<heftig> ruby-gir-ffi is where the gtk development is at
<shevy> aha
<shevy> going to search for that
adeponte has quit [Remote host closed the connection]
adeponte has joined #ruby
earthquake has joined #ruby
jonahR has quit [Quit: jonahR]
adeponte has quit [Ping timeout: 276 seconds]
arya has quit [Ping timeout: 248 seconds]
b1rkh0ff has quit [Ping timeout: 248 seconds]
elux_ has quit [Quit: Bye!]
joofsh has quit [Remote host closed the connection]
vinax has quit [Ping timeout: 264 seconds]
arya has joined #ruby
m4n has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
Cooler_ has quit [Remote host closed the connection]
jblack has joined #ruby
dougireton has joined #ruby
thufir_ has quit [Quit: Leaving.]
arya has quit [Ping timeout: 256 seconds]
tjbiddle has quit [Quit: tjbiddle]
angusiguess has quit [Ping timeout: 248 seconds]
coffee_andrew has quit [Ping timeout: 245 seconds]
arya has joined #ruby
cableray has joined #ruby
toekutr has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
hck89 has quit [Ping timeout: 255 seconds]
fram has quit [Ping timeout: 276 seconds]
fram has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
jaequery has joined #ruby
dmiller2 has joined #ruby
dmiller1 has quit [Ping timeout: 276 seconds]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
zph has quit [Quit: Computer has gone to sleep.]
bricker_ has joined #ruby
jtgiri_ has quit [Quit: jtgiri_]
EPIK has quit [Ping timeout: 244 seconds]
bricker has quit [Ping timeout: 244 seconds]
beneggett has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jonahR has joined #ruby
io_syl has joined #ruby
nat2610 has joined #ruby
GeekSir has joined #ruby
f0ster has quit [Remote host closed the connection]
xpen has quit [Ping timeout: 276 seconds]
f03lipe has quit [Quit: Leaving]
pierre1 has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
GeekSir has quit [Client Quit]
pierre1 has quit [Read error: Connection reset by peer]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
pierre1 has joined #ruby
pierre1 has quit [Client Quit]
thinkclay has quit [Quit: Leaving.]
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
bricker has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
RORgasm has joined #ruby
ViPi has joined #ruby
ViPi has quit [Max SendQ exceeded]
dmiller2 has quit [Ping timeout: 255 seconds]
MattRB has quit [Quit: This computer has gone to sleep]
bricker_ has quit [Ping timeout: 256 seconds]
icole has joined #ruby
ViPi2 has joined #ruby
bradhe has joined #ruby
jblack has quit [Ping timeout: 252 seconds]
markalanevans has joined #ruby
RORgasm has quit [Ping timeout: 248 seconds]
f0ster has joined #ruby
angusiguess has joined #ruby
v0n has joined #ruby
hydrozen has quit [Quit: Textual IRC Client: www.textualapp.com]
jblack has joined #ruby
bradhe has quit [Ping timeout: 246 seconds]
havenn has quit [Remote host closed the connection]
m4n has quit [Ping timeout: 256 seconds]
apok has joined #ruby
angusiguess has quit [Ping timeout: 276 seconds]
lolmaus has joined #ruby
jblack has quit [Ping timeout: 256 seconds]
recycle has joined #ruby
n1x has joined #ruby
epylinkn has joined #ruby
hackerdude has joined #ruby
chriskk has quit [Quit: chriskk]
h4mz1d has joined #ruby
cableray has quit [Quit: cableray]
mercwithamouth has joined #ruby
ananthakumaran has joined #ruby
ananthakumaran1 has joined #ruby
jenrzzz has joined #ruby
a_a_g has joined #ruby
jean-louis has joined #ruby
slainer68 has joined #ruby
n1x has quit [Ping timeout: 245 seconds]
osaut has joined #ruby
anchorspark has quit [Quit: WeeChat 0.3.8]
cableray has joined #ruby
adeponte has joined #ruby
ananthakumaran has quit [Ping timeout: 240 seconds]
crackfu has joined #ruby
baroquebobcat has joined #ruby
slainer68 has quit [Ping timeout: 248 seconds]
cha1tanya has joined #ruby
cha1tanya has quit [Changing host]
cha1tanya has joined #ruby
sambio has quit []
bricker_ has joined #ruby
brianpWins has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
arya_ has joined #ruby
arya has quit [Ping timeout: 248 seconds]
ttt has joined #ruby
DrShoggoth has quit [Quit: Leaving]
maletor has joined #ruby
ryanf has quit [Quit: leaving]
quest88 has joined #ruby
dougireton has quit [Quit: Leaving.]
markalanevans has quit [Quit: markalanevans]
ninegrid has joined #ruby
ilyam has quit [Quit: ilyam]
markalanevans has joined #ruby
wmoxam has quit [Ping timeout: 252 seconds]
arya_ has quit [Read error: Connection reset by peer]
a_a_g has quit [Quit: This computer has gone to sleep]
huoxito has quit [Quit: Leaving]
ttt has quit [Remote host closed the connection]
tjbiddle has joined #ruby
tomzx_mac has quit [Read error: Operation timed out]
wmoxam has joined #ruby
arya has joined #ruby
tjbiddle has quit [Client Quit]
kenneth has joined #ruby
gokul has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has joined #ruby
undersc0re97 has quit [Changing host]
ner0x has quit [Quit: Leaving]
ner0x has joined #ruby
ner0x has quit [Client Quit]
ryanf has joined #ruby
aaronmacy has joined #ruby
h4mz1d has quit [Ping timeout: 255 seconds]
himsin has joined #ruby
maletor has quit [Quit: Computer has gone to sleep.]
Takehiro has joined #ruby
etcetera has joined #ruby
caleb_io has quit [Quit: caleb_io]
m4n has joined #ruby
asuka_ has quit [Ping timeout: 260 seconds]
yacks has quit [Remote host closed the connection]
xpen has joined #ruby
crackfu has quit [Remote host closed the connection]
tatsuya_o has joined #ruby
Takehiro has quit [Remote host closed the connection]
Playground has joined #ruby
wchun has quit [Ping timeout: 240 seconds]
Takehiro has joined #ruby
headius has joined #ruby
danktamagachi has joined #ruby
etcetera has quit [Ping timeout: 256 seconds]
aaronmacy has quit [Quit: Leaving.]
tatsuya_o has quit [Ping timeout: 248 seconds]
osaut has quit [Quit: osaut]
ryanf has quit [Quit: broken pipes |||]
asuka has joined #ruby
djdb has joined #ruby
justinwe1ss has quit [Quit: leaving]
wchun has joined #ruby
ryanf has joined #ruby
ryanf has quit [Client Quit]
ryanf has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
noyb has joined #ruby
nat2610 has quit [Quit: Leaving.]
caleb_io has joined #ruby
mahmoudimus has joined #ruby
osaut has joined #ruby
a_a_g has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
recycle has quit [Remote host closed the connection]
recycle has joined #ruby
JohnBat26 has joined #ruby
recycle has quit [Remote host closed the connection]
recycle has joined #ruby
recycle has quit [Remote host closed the connection]
<benlieb> I have a multi-language hash that is causing a syntax error: https://gist.github.com/4618140 Is this not possible to have this?
tagrudev has joined #ruby
mercwithamouth has quit [Ping timeout: 245 seconds]
yacks has joined #ruby
BizarreCake has joined #ruby
pootieta1g has joined #ruby
<Nuck> I'm fairly new to Ruby, but I keep seeing this class Thing { attr_accessible :attr } and whatnot in Rails, and am curious how this whole method-call-in-a-class-definition thing is done. Any good guides?
Morkel has joined #ruby
arkiver has joined #ruby
nimred has quit [Ping timeout: 244 seconds]
nimred has joined #ruby
nimred has quit [Changing host]
nimred has joined #ruby
pootietang has quit [Ping timeout: 244 seconds]
joeycarmello has quit [Remote host closed the connection]
ninegrid has quit [Quit: brb]
pootietang has joined #ruby
ninegrid has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
etcetera has joined #ruby
<Nuck> benlieb: They're just class methods? o_O
<Nuck> I had expected something more complicated than that
nga4 has joined #ruby
danktamagachi has quit [Ping timeout: 245 seconds]
<Nuck> Oh Ruby, you never fail to amaze me.
pootieta1g has quit [Ping timeout: 248 seconds]
markalanevans has quit [Quit: markalanevans]
mercwithamouth has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
pootieta1g has joined #ruby
stayarrr has joined #ruby
dhruvasagar has joined #ruby
pootietang has quit [Ping timeout: 245 seconds]
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
fuzai_ has joined #ruby
earthquake has quit [Quit: earthquake]
Takehiro has joined #ruby
<fuzai_> Hiya, i'm trying to install radianCMS on ubuntu 12.04 64 bit using ruby-1.9.3. I'm getting this error and i'm not sure how to proceed, http://pastie.org/5840884 is my error log and i was trying to follow the 5 minute heroku radiantcms howto. Any sugestions? thank you
dhruvasagar has quit [Read error: Connection reset by peer]
pootietang has joined #ruby
pootieta1g has quit [Ping timeout: 248 seconds]
dhruvasagar has joined #ruby
<fuzai_> radiantCMS excuse me this keyboard is screwin up
nat2610 has joined #ruby
ttt has joined #ruby
shock_one_ has joined #ruby
aytch is now known as God
osaut has quit [Quit: osaut]
etcetera has quit [Ping timeout: 252 seconds]
God is now known as aytch
pootieta1g has joined #ruby
pootietang has quit [Ping timeout: 255 seconds]
noyb has quit [Ping timeout: 256 seconds]
shock_one_ is now known as shock_one
ttt has quit [Remote host closed the connection]
shock_one is now known as yournick
RORgasm has joined #ruby
yournick is now known as shock_one
hackerdude has quit [Remote host closed the connection]
xpen has quit [Remote host closed the connection]
xpen has joined #ruby
brianpWins has quit [Quit: brianpWins]
bricker_ is now known as bricker
nat2610 has quit [Ping timeout: 255 seconds]
markalanevans has joined #ruby
RORgasm has quit [Ping timeout: 248 seconds]
xpen has quit [Ping timeout: 246 seconds]
amaya_the has joined #ruby
Takehiro has quit [Remote host closed the connection]
arya has quit [Ping timeout: 245 seconds]
mercwithamouth has quit [Ping timeout: 245 seconds]
joeycarmello has joined #ruby
beilabs has quit [Ping timeout: 276 seconds]
angusiguess has joined #ruby
vlad_starkov has joined #ruby
sayan has quit [Read error: Connection reset by peer]
<amaya_the> :)
<benlieb> fuzai_: I don't think heroku supports 1.9.3 yet
<benlieb> but that's probably not your issue
<fuzai_> i'm trying to get this to work locally
<fuzai_> someone gave me a bit of a clue
<fuzai_> heres my current error msg
thufir_ has joined #ruby
robustus has quit [Ping timeout: 276 seconds]
timonv has joined #ruby
<fuzai_> i've been googling the error and it seems alot of different people are having similar problems
tatsuya_o has joined #ruby
<benlieb> fuzai_: you using rvm?
<ryanf> fuzai_: try downgrading rake
robustus has joined #ruby
dr_bob has joined #ruby
<fuzai_> i'm really new, i don't think i'm using rvm and i'm not sure how to downgrade rake?
cableray has quit [Quit: cableray]
<benlieb> fuzai_: if you're new to rails I wouldn't recommend using radiant
quest88 has quit [Quit: quest88]
<fuzai_> what would you recomend
<fuzai_> i tried rails years ago
<fuzai_> and i've been learning ruby over the last few weeks for something else
<benlieb> rails has a steep learning curve
<fuzai_> i'm looking for something that will make it easy to integrate authentication and a simple store front into an existing site
<fuzai_> radiant was the first thing to come up in google
<benlieb> I hate to say this but after 4.5 years with Rails as a full-time job, I'd say use wordpress if you want a simple cms
<benlieb> that's just my opinion
<fuzai_> i don't think wordpress has enough horsepower for what i'm trying to do
<fuzai_> this isn't for a blog
<benlieb> fuzai_: what kind of power you need?
<fuzai_> i'm looking for something that can handle authentication safely and handle store transactions safely
jduan1981 has joined #ruby
joeycarmello has quit [Ping timeout: 245 seconds]
<benlieb> wordpress powers like half of damn internet :0
<benlieb> :)
tatsuya_o has quit [Ping timeout: 276 seconds]
<fuzai_> yea i'm aware, but i don't think i've ever seen a wordpress store
<fuzai_> i'll look into it more
<fuzai_> i was trying to find something ruby based instead of php
<shock_one> fuzai_, devise is very good https://rubygems.org/gems/devise
<benlieb> fuzai_: i hear you, but you're in for some major headaches if you just want to dip your toes in.
<benlieb> most rails debs would make that from scratch
jduan1981 has quit [Read error: Connection reset by peer]
<benlieb> using authentication like Devise, and probably active merchant for the store
jduan1981 has joined #ruby
zigomir has joined #ruby
<fuzai_> ok
<shock_one> benlieb, Can you recommend some advanced Rails books?
<benlieb> radiant is just meant to be a simple cms
<fuzai_> yea i knwo
<fuzai_> i wanted something simple i could snap in
<benlieb> shock_one: have you read the guides?
<fuzai_> i found the radiant modules i wanted to play with
vlad_starkov has quit [Ping timeout: 248 seconds]
<fuzai_> oh well i'm gonna go look at wordpress and see if i can solve this easily
<benlieb> fuzai_: cool, I don't mean to discourage you.
beilabs has joined #ruby
<fuzai_> its ok i'm looking for the easy and simple answer
<fuzai_> i'm trying not to reinvent the wheel
<shock_one> benlieb, Not yet, but it's already downloaded and pushed to my reading stack.
<benlieb> fuzai_: in that case wordpress all the way. you don't know how much it actually pains me to say that
headius has quit [Quit: headius]
jean-louis has quit [Ping timeout: 255 seconds]
<fuzai_> my problem is
<fuzai_> it's a subscription based service
skcin7 has quit [Quit: Computer has gone to sleep.]
<benlieb> shock_one: read all of this before looking for advanced material http://guides.rubyonrails.org/
louisror has joined #ruby
<fuzai_> so i need to be able to modify the subscription and i'm trying really hard not to handle credit cards but i don't see me being able to avoid that
fyolnish_ has joined #ruby
fyolnish has quit [Read error: Connection reset by peer]
v0n has quit [Ping timeout: 248 seconds]
etcetera has joined #ruby
<shock_one> benlieb, Thank you. Any other suggestions?
<benlieb> That should keep you busy for a while :) If you're just getting going, I'll tell you what someone told me, and I didn't get it at the time, but now I do: In the beginning don't use extra gems unless you HAVE TO. Learn the basics and then you'll appreciate them.
haxrbyte has joined #ruby
<benlieb> shock_one: also, one thing I wish I knew years ago, when you add gems to the Gemfile, always be as specific as you can with the version number.
haxrbyte_ has joined #ruby
haxrbyte_ has quit [Remote host closed the connection]
haxrbyte_ has joined #ruby
<benlieb> you can always upgrade if it gets deprecated or incompatible, but you'll pull your hair out every time you bundle install and your gems are going crazy with changes making all your tests fail
<benlieb> gnight
dagobah has quit [Quit: ZNC - http://znc.sourceforge.net]
<shock_one> Oh yeah ,this advice is exactly for me https://dl.dropbox.com/u/608214/scrn/1359012670.png
dkannan has joined #ruby
generalissimo has quit [Remote host closed the connection]
slainer68 has joined #ruby
<benlieb> shock_one: yeah, that's a time bomb. Especially not specifying the rails version....
Tarential has quit [Excess Flood]
Tarential has joined #ruby
<shock_one> Is there an easy way to set versions to current one automatically?
Morkel_ has joined #ruby
haxrbyte has quit [Ping timeout: 240 seconds]
<benlieb> shock_one: no, but you can find out what you're using by the Gemfile.lock
maletor has joined #ruby
benlieb has quit [Quit: benlieb]
Morkel has quit [Ping timeout: 248 seconds]
Morkel_ is now known as Morkel
slainer68 has quit [Ping timeout: 248 seconds]
aaronmacy has joined #ruby
otters has joined #ruby
rakl has quit [Quit: sleeping]
jonahR has quit [Quit: jonahR]
etcetera has quit [Ping timeout: 248 seconds]
buibex has joined #ruby
schaerli has joined #ruby
markalanevans has quit [Quit: markalanevans]
beliveyourdream has joined #ruby
wchun has quit [Quit: Leaving]
browndawg has joined #ruby
megha has joined #ruby
jackyalcine has quit [Read error: Connection reset by peer]
locriani has joined #ruby
aganov has joined #ruby
locriani_ has quit [Ping timeout: 256 seconds]
krz has quit [Quit: krz]
wargasm has quit [Ping timeout: 255 seconds]
Tarential has quit [Excess Flood]
Tarential has joined #ruby
eddie_ has joined #ruby
locriani has quit [Ping timeout: 246 seconds]
<eddie_> I have added a new field to my factory_girl table definition. but the tests are failing since its not understanding the new field
<eddie_> need help
<eddie_> Anyone?
joeycarmello has joined #ruby
EhyehAsherEhyeh has joined #ruby
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
hadees_ has joined #ruby
hadees has quit [Ping timeout: 248 seconds]
hadees_ is now known as hadees
<shock_one> eddie_, #RubyOnRails
<eddie_> i am not working on RoR
<eddie_> its a daemon
puppeh has joined #ruby
sterNiX has joined #ruby
sterNiX has quit [Changing host]
sterNiX has joined #ruby
end_guy has quit [Remote host closed the connection]
joeycarmello has quit [Ping timeout: 245 seconds]
nfk has joined #ruby
jds_ has joined #ruby
icole has quit [Remote host closed the connection]
<shock_one> Could you upload the code somewhere?
end_guy has joined #ruby
wchun has joined #ruby
andrewhl has quit [Remote host closed the connection]
sterNiX has quit [Max SendQ exceeded]
ttt has joined #ruby
tjbiddle has joined #ruby
ttt has quit [Remote host closed the connection]
ttt has joined #ruby
<eddie_> yes
sterNiX has joined #ruby
krz has joined #ruby
jenrzzz has quit [Ping timeout: 246 seconds]
filipe has joined #ruby
sayan has quit [Quit: Leaving]
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
sterNiX has quit [Max SendQ exceeded]
razibog has joined #ruby
sterNiX has joined #ruby
ViPi2 has quit [Quit: Computer has gone to sleep.]
nomenkun has joined #ruby
kenneth has quit [Quit: kenneth]
nomenkun has quit [Read error: Connection reset by peer]
timonv has quit [Remote host closed the connection]
samuel02 has joined #ruby
nomenkun has joined #ruby
timonv has joined #ruby
babonk has quit [Quit: babonk]
mafolz has joined #ruby
cableray has joined #ruby
osaut has joined #ruby
timonv has quit [Read error: Operation timed out]
maletor has quit [Quit: Computer has gone to sleep.]
rakl has joined #ruby
tjbiddle has quit [Quit: tjbiddle]
Takehiro has joined #ruby
krz has quit [Quit: krz]
jduan1981 has quit [Remote host closed the connection]
jduan1981 has joined #ruby
jduan1981 has quit [Client Quit]
etcetera has joined #ruby
tPl0ch has joined #ruby
jean-louis has joined #ruby
ephemerian has joined #ruby
mahmoudimus has quit [Quit: Computer has gone to sleep.]
eldariof has joined #ruby
krz has joined #ruby
mahmoudimus has joined #ruby
asuka has quit [Ping timeout: 245 seconds]
browndawg has left #ruby [#ruby]
jtgiri_ has joined #ruby
jenrzzz has joined #ruby
lkba has quit [Ping timeout: 276 seconds]
pcarrier has quit []
sbear has joined #ruby
megha has quit [Ping timeout: 248 seconds]
joeycarmello has joined #ruby
etcetera has quit [Ping timeout: 252 seconds]
icole has joined #ruby
Playground has joined #ruby
adeponte has quit [Remote host closed the connection]
arya_ has joined #ruby
joeycarmello has quit [Ping timeout: 276 seconds]
snearch has joined #ruby
main has joined #ruby
ephialtes480 has quit [Quit: Linkinus - http://linkinus.com]
auser has joined #ruby
<auser> hola
fjfish has quit [Remote host closed the connection]
<whowantstolivefo> hiya auser
rakl has quit [Quit: sleeping]
kenneth has joined #ruby
icole has quit [Ping timeout: 276 seconds]
thufir_ has quit [Quit: Leaving.]
RORgasm has joined #ruby
TheFuzzball has joined #ruby
workmad3 has joined #ruby
megha has joined #ruby
Beoran__ has joined #ruby
Beoran_ has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
ryanf has quit [Quit: leaving]
jds_ has quit [Remote host closed the connection]
jaequery has quit [Quit: Textual IRC Client: www.textualapp.com]
RORgasm has quit [Ping timeout: 248 seconds]
jaequery has joined #ruby
chendo_ has joined #ruby
buibex has quit [Remote host closed the connection]
vlad_starkov has quit [Ping timeout: 252 seconds]
Guedes0 has joined #ruby
marr has joined #ruby
stkowski has joined #ruby
wreckimnaked has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Guedes0 has quit [Client Quit]
<epta> is there a shorthand for `if (y != nil) then y else 1 end' without mention y twice?
blaxter has joined #ruby
<auser> y ? y : 1
<auser> except that shows y twice
<shock_one> y || 1
<workmad3> epta: y || 1
cableray has quit [Quit: cableray]
<workmad3> hehe
<auser> ah yes, duh
etcetera has joined #ruby
<shock_one> And you don't need to explicitly write «!= nil» anyway
<workmad3> shock_one: well, 'if (y) does also allow for y = false to filter though
<workmad3> shock_one: while if (y != nil) doesn't... but then, neither does if (!y.nil?)
<workmad3> however, it's very rare for that to matter
<workmad3> even rarer in idomatic ruby
joeycarmello has joined #ruby
<shock_one> In such a case our solution wouldn't work too.
<workmad3> yeah :)
<workmad3> but ssh ;)
mrdtt has joined #ruby
<epta> workmad3: nice
Elhu has joined #ruby
<Spaceghost|cloud> I don't know about this ruby thing here. Seems a bit too loosey goosey.
bane_ has joined #ruby
Elhu has quit [Client Quit]
hemanth has quit [Read error: Connection reset by peer]
joeycarmello has quit [Ping timeout: 276 seconds]
hemanth has joined #ruby
hoelzro|away is now known as hoelzro
robotmay has joined #ruby
Elhu has joined #ruby
<tobiasvl> hehe
sporkbomb has quit [Read error: Connection reset by peer]
<workmad3> Spaceghost|cloud: could be worse... could be PHP - "false" == false
etcetera has quit [Ping timeout: 276 seconds]
sporkbomb has joined #ruby
vlad_starkov has joined #ruby
ngoldman has quit [Remote host closed the connection]
emocakes has joined #ruby
nat2610 has joined #ruby
eka has joined #ruby
<shock_one> if (bool.ToString().length < 5){...}
<shock_one> It's from real code
<tobiasvl> god
moshee has quit [Ping timeout: 255 seconds]
pyx has quit [Quit: WeeChat 0.4.0]
moshee has joined #ruby
moshee has quit [Changing host]
moshee has joined #ruby
nat2610 has quit [Ping timeout: 276 seconds]
hamed_r has joined #ruby
jimeh has joined #ruby
clooth has joined #ruby
blacktulip has joined #ruby
<eka> looks like java devs
jtgiri_ has quit [Quit: jtgiri_]
<emocakes> errr wtf shock_one
<emocakes> is that a way to check for if its 'true' or 'false'
<shock_one> emocakes, what's wrong?
<emocakes> Lo
<emocakes> lol
clooth has quit [Quit: clooth]
noxoc has joined #ruby
tatsuya_o has joined #ruby
JohnBat26 has joined #ruby
osaut has quit [Quit: osaut]
joeycarmello has joined #ruby
Hanmac has joined #ruby
rdark has joined #ruby
snearch has quit [Quit: Verlassend]
francisfish has joined #ruby
drfreeze_ has quit [Ping timeout: 246 seconds]
joeycarmello has quit [Ping timeout: 248 seconds]
akemrir has joined #ruby
<shock_one> Sо, they always taught that multiple inheritance is bad and SUDDENLY there will be MI in ruby 2.0? Can anyone explain me why it's good?
elaptics`away is now known as elaptics
drfreeze has joined #ruby
schaerli has quit [Remote host closed the connection]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
osaut has joined #ruby
icole has joined #ruby
Xeago has joined #ruby
Vainoharhainen has joined #ruby
etcetera has joined #ruby
adambeynon has joined #ruby
chridal has joined #ruby
<Hanmac> shock_one_ where do you get that about MI in ruby? i dont find any information
slainer68 has joined #ruby
arturaz has joined #ruby
RagingDave has joined #ruby
cdt has joined #ruby
<Spaceghost|cloud> Hanmac: Module#prepend ?
timonv has joined #ruby
hemanth has quit [Read error: Connection reset by peer]
hemanth has joined #ruby
atmosx has joined #ruby
arturaz has quit [Remote host closed the connection]
mahmoudimus has quit [Quit: Computer has gone to sleep.]
gyre007 has joined #ruby
<Spaceghost|cloud> Is there anything better than that?
icole has quit [Ping timeout: 248 seconds]
TomyLobo has joined #ruby
<Hanmac> a page with an annoy wall :/
<hoelzro> I'm sure some mailing list searches would provide some context
maz-dev_ has joined #ruby
<Hanmac> shock_one: http://news.ycombinator.com/item?id=4694499 << "But, since Ruby 2.0 does not and will not have multiple inheritance, this is all off-topic."
<Hanmac> it may be an missinformation
arturaz has joined #ruby
<shock_one> Good news.
<Hanmac> or just wait until 2.0 is finish and then be suprised
maz-dev has quit [Ping timeout: 256 seconds]
<Spaceghost|cloud> :D
timmow has joined #ruby
baphled has joined #ruby
darkskiez has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
apeiros_ has joined #ruby
etcetera has quit [Ping timeout: 245 seconds]
<Hanmac> and even when 2.0 supports MI you are not forced to use it
osaut has quit [Ping timeout: 276 seconds]
frihd has joined #ruby
<shock_one> I'm if I have to support the code written by some guy that love MI
adambeynon has quit [Quit: Computer has gone to sleep.]
Kelet has left #ruby ["http://quassel-irc.org - Chat comfortably. Anywhere."]
adambeynon has joined #ruby
nari has quit [Ping timeout: 245 seconds]
asuka has joined #ruby
sayan has quit [Read error: Connection reset by peer]
megha has quit [Ping timeout: 244 seconds]
joeycarmello has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
<Hanmac> shevy what if i have a script that can use: h.inspect #=> 4;h.class #=> Fixnum; h.to_f!
<Hanmac> h.inspect #=> 4.0;h.class #=> Float
<shevy> man what are you doing
<shevy> shapechanging objects?
gyre007 has quit [Remote host closed the connection]
vlad_starkov has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
<Hanmac> yeah somthing like that, i invent some kind of hidden decorator :P
joeycarmello has quit [Ping timeout: 246 seconds]
<shevy> hehe
arturaz has quit [Read error: Connection reset by peer]
arturaz has joined #ruby
wallerdev has quit [Quit: wallerdev]
ttt has quit [Remote host closed the connection]
<Hanmac> i allready rewrite it and build it on the top of SimpleDelegator
ttt has joined #ruby
ttt has quit [Read error: Connection reset by peer]
<workmad3> Hanmac: hehe :) nice
ttt_ has joined #ruby
<workmad3> Hanmac: never considered doing that before
schaerli has joined #ruby
<workmad3> Hanmac: not sure I'd ever consider doing it again either... but still, nice :)
jaequery has quit [Quit: Computer has gone to sleep.]
codecaster has joined #ruby
fyolnish_ has quit [Ping timeout: 255 seconds]
jenrzzz has joined #ruby
aaronmacy has quit [Quit: Leaving.]
reinaldob has joined #ruby
jaequery has joined #ruby
<shock_one> In my father cell phone plan it's expensive to call other providers's numbers. So I appended an exclamation mark to the end of the names of such contacts. Ruby style, bitch!
browndawg has joined #ruby
shock_one has quit [Remote host closed the connection]
etcetera has joined #ruby
shock_one has joined #ruby
bricker is now known as bricker`away
samuel02 has quit [Remote host closed the connection]
emocakes has quit [Quit: emocakes]
<JonnieCache> shock_one: that would be a good app idea if you could do automate that
<workmad3> oops, forgot to inherit from BasicObject there... just edited
clooth has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
<Hanmac> hm i may implment it ... the difference i had (what i can add too: is that when you do to_i.to_f.to_s.to_i you do not leave the decorator-chain :P)
<workmad3> Hanmac: hmm, yeah I just saw that
<workmad3> Hanmac: that's just an extra conditional in the method_missing though ;)
[Neurotic] has quit [Remote host closed the connection]
arkiver has quit [Quit: Leaving]
io_syl has quit [Quit: Computer has gone to sleep.]
<workmad3> Hanmac: hmm, reload... what do you think?
aaronmacy has joined #ruby
<Hanmac> hm i think about :P
mikecmpbll has joined #ruby
joeycarmello has joined #ruby
etcetera has quit [Ping timeout: 276 seconds]
<shevy> Hanmac evil code
arya_ has quit [Ping timeout: 248 seconds]
mjolk has joined #ruby
mjolk is now known as Guest59167
sayan has joined #ruby
sbear has quit [Ping timeout: 244 seconds]
joeycarmello has quit [Ping timeout: 245 seconds]
arya has joined #ruby
jprovazn has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
namxam_ has joined #ruby
mailo_ has joined #ruby
namxam_ is now known as namxam
Tux-Tn has quit [Quit: ZNC - http://znc.sourceforge.net]
end_guy has quit [Ping timeout: 276 seconds]
gyre007 has joined #ruby
apok has quit [Quit: apok]
<Hanmac> "Hanmac - evil code since '88"
Kakera has joined #ruby
auser has quit [Quit: auser]
baphled has quit [Ping timeout: 248 seconds]
RORgasm has joined #ruby
sayan has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
<workmad3> shevy: the code is inanimate and free of moral labels
<workmad3> shevy: now, if someone were to *use* said code in a non-example setting
codecaster has quit [Quit: Leaving.]
TomyLobo has quit [Quit: Standby mode...]
angusiguess has quit [Ping timeout: 245 seconds]
RORgasm has quit [Ping timeout: 248 seconds]
<JonnieCache> omg postgresql is amazing http://www.postgresql.org/docs/9.2/static/ltree.html
niklasb has joined #ruby
<JonnieCache> it just gets better and better
<matti> ;]
<shevy> workmad3 complexity is the root of all evil
<shevy> look at DNA! four different states determine all living things on earth
<shevy> that's simple
<JonnieCache> yeah unfortunately genetics isnt just dna
baphled has joined #ruby
<workmad3> mmm, epigenetics
<workmad3> RNA
<Hanmac> shevy + workmad3: https://gist.github.com/4619845
<JonnieCache> all the other weird shit that hangs out around rna molecules
statarb3 has joined #ruby
statarb3 has quit [Changing host]
statarb3 has joined #ruby
<workmad3> Hanmac: :)
<workmad3> shevy: also, you may as well go 'look at computers! 2 different states determine all programs!'
<Hanmac> you can do: HiddenDelegator.new("abc").each_char.to_a #=> ["a", "b", "c"] but you cant trust the output, because its still an hidden delegator :D
<shevy> RNA is nothing but a copy of DNA so it has four states (with T becoming U) just as well.
<JonnieCache> yeah but its not just about the bases its about the configuration
<shevy> That is the interpretation of the dataset.
<workmad3> shevy: right
* Hanmac thinks that DNA should have more than only four states ... six or eight are more interesting :P
<workmad3> shevy: all my programs are just 2 states
<workmad3> shevy: that's the equivalent of what you just claimed for DNA :P
<JonnieCache> shevy: thats a contentious question. where does the data end and the interpreter begin?
<JonnieCache> there has been much ink spilled on that subject
<shevy> workmad3 your programs are not self sustainable
<shevy> JonnieCache without an interpreter DNA is useless
<shevy> but the interpreter is coded inside the DNA too
<JonnieCache> exactly
samuel02 has joined #ruby
reinaldob has quit [Remote host closed the connection]
<JonnieCache> if youve read GEB he talks about this a lot
<shevy> Epigenetics does not change any of the inherent meaning of the four bases. It tages Methyl groups to those DNA bases, which are interpreted again by molecules. But you can have living system without epigenetics just as well, it is a means of handling complexity.
<shevy> I will show you the moment I can bootstrap new cells via viruses alone :P
<workmad3> shevy: right but all of it, despite being *built* from a simple base, is massively more complex than that simple base
stkowski has quit [Quit: stkowski]
adambeynon has quit [Quit: Computer has gone to sleep.]
<workmad3> shevy: you're pointing to the simpleness of the alphabet as an indicator to the simpleness of words, sentences and books
<shevy> workmad3, you refer to systems that were not designed
<workmad3> shevy: the presence or absence of a designer is of no relevance here
<shevy> it most definitely is because your constraints are totally different to someone who designs a simple system from the start
<workmad3> shevy: you were the one claiming DNA is simple
<shevy> DNA is super simple -> http://biobricks.org/
<shevy> it seems as if you doubt the folks workong in the fields of synthetic biology
<workmad3> shevy: and I'm pointing out the difference between simpleness of representation and simpleness of constructs :P
<workmad3> shevy: how those constructs came into being is irrelevant
<shevy> you diluted from the fact, with RNA and epigenetics - RNA has 4 different states, epigenetics is not required for the design of biological entities
<workmad3> shevy: even ignoring that
<shevy> but you still have natural evolution and competing organisms in reallife then
etcetera has joined #ruby
<workmad3> shevy: yes, but that doesn't mean that they are simple, even if they are built from a very simple base
<workmad3> shevy: emergent complexity
<shevy> if you want to survive, you need to have more tradeoffs :(
<shevy> I didn't claim that life as a whole is simple at all :)
<workmad3> shevy: you claimed that DNA was simple though
vlad_starkov has quit [Remote host closed the connection]
<workmad3> shevy: and even that isn't simple
Tux-Tn has joined #ruby
<shevy> DNA is super simple
<workmad3> shevy: no, the stuff that DNA is made from is super-simple
<shevy> it's just a polymer
<workmad3> shevy: if I wrote a program using just 1 and 0 then, by your definition it is simple
<workmad3> shevy: no matter what
joeycarmello has joined #ruby
<shevy> 1 and 0 is complex?
<workmad3> shevy: no
chussenot has quit [Quit: chussenot]
<workmad3> shevy: but the stuff you can build using just them can be
shorts has joined #ruby
<workmad3> shevy: in the same way that the bases in DNA are simple, but the stuff built from it isn't
baphled has quit [Ping timeout: 245 seconds]
dwu1 has quit [Quit: Leaving.]
<JonnieCache> life is fractally complex
chussenot has joined #ruby
<JonnieCache> it doesnt get any more complex than life
<JonnieCache> life gets away with it by not having a conciousness in charge that gets upset by complexity
<workmad3> shevy: and pointing out people who created simple DNA and claiming DNA is simple is as bad an argument as pointing to a simple program and claiming programs are simple :P
joeycarmello has quit [Ping timeout: 252 seconds]
b1rkh0ff has joined #ruby
<shevy> simple DNA? the biobrick cells work perfectly well. won't take long and you will have perfect assembly lines for every organic chemical material, optimized in completely artifical cells
<workmad3> shevy: great, so DNA can be simple for at least some tasks
<workmad3> shevy: it doesn't make all DNA simple
<shevy> well, proteins are very complicated
sayan has joined #ruby
ChampS666 has joined #ruby
reinaldob has joined #ruby
renanoronfle has quit [Quit: Saindo]
<shevy> life would be better off with just DNA and RNA
aaronmacy has quit [Quit: Leaving.]
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
sayan has quit [Max SendQ exceeded]
<shevy> perhaps that may be possible one day :)))
browndawg has left #ruby [#ruby]
nat2610 has joined #ruby
wreckimnaked has quit [Read error: No route to host]
wreckimnaked has joined #ruby
pskosinski has joined #ruby
etcetera has quit [Ping timeout: 248 seconds]
sayan has joined #ruby
sayan has quit [Changing host]
sayan has joined #ruby
caleb_io has quit [Quit: caleb_io]
browndawg has joined #ruby
<workmad3> shevy: by my understanding... unlikely
hamed_r has quit [Quit: Leaving]
<shevy> :(
<workmad3> shevy: but feel free to cling to your illusions of simplicity ;)
<shevy> I may eventually try to!
nat2610 has quit [Ping timeout: 252 seconds]
fyolnish has joined #ruby
Takehiro has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
arya has quit [Ping timeout: 248 seconds]
frihd has quit [Quit: Leaving.]
schaerli has quit [Remote host closed the connection]
arya has joined #ruby
chussenot_ has joined #ruby
atmosx has quit [Quit: And so the story goes…]
chussenot has quit [Ping timeout: 240 seconds]
chussenot_ is now known as chussenot
shock_one has quit [Remote host closed the connection]
<whowantstolivefo> shevy: and workmad3, my dear friends. i am learning ruby at codecademy and i have a problem like this and cant pass question , http://www.codecademy.com/forum_questions/510102b210b46b0847002b77
shock_one has joined #ruby
vlad_starkov has joined #ruby
<whowantstolivefo> since yesterday night, i look many apis and tutorials, i didnt figure out
<shevy> 30.times { puts 'Ruby!'}
<shevy> whowantstolivefo it is best if you try to understand the syntax
<shevy> do you know what is the {} there
biello has joined #ruby
Takehiro has joined #ruby
<Hanmac> times has an buildin counter, working with times {|counter| ... }
<whowantstolivefo> i know shevy and Hanmac this say me puts 30 times ruby... ` print 30.times "ruby" ` isnt corrent ? or put instead of print ?
TIBS02 has quit [Read error: Operation timed out]
tvw has joined #ruby
<shevy> whowantstolivefo you must first understand the {} there
<tobiasvl> whowantstolivefo: puts and print isn't the significant thing to understand here
<tobiasvl> whowantstolivefo: but puts outputs a newline after the string and print does not
jonahR has joined #ruby
<whowantstolivefo> i know but you guys know i am newbie, it is hard to figure out sometimes
<tobiasvl> sure
<Spaceghost|cloud> whowantstolivefo: Is this your first programming language exposure?
amaya_the has quit [Ping timeout: 248 seconds]
<whowantstolivefo> i have 0 programming background
<shevy> whowantstolivefo yes, but you think in your problem domain right now, you must stop thinking in that problem domain for a second, and instead try to understand something new, in this case the {}, which is a block
<whowantstolivefo> only worked as web designer and quit that job 4 months ago
<shevy> whowantstolivefo do you know what is a function/method
<whowantstolivefo> only using firebird sql for reports in hospital where i work
<shevy> well
<shevy> there are some concepts that you only have to understand ONCE, regardless of the programming language
<Hanmac> i hate pages that wants annoy me with fakebook ...
banister`sleep has quit [Ping timeout: 240 seconds]
<whowantstolivefo> where should i start from ? this page is good because shows and makes example
rezzack has quit [Quit: Leaving.]
Takehiro has quit [Remote host closed the connection]
reinaldob has quit [Remote host closed the connection]
noxoc has quit [Quit: noxoc]
<whowantstolivefo> i finished from codecademy.com "An introduction to the Ruby programming language." course and "Control Flow in Ruby Learn how to change your Ruby programs' behavior based on user input."
<shevy> whowantstolivefo work through this here http://pine.fm/LearnToProgram/?Chapter=00 ONCE
<whowantstolivefo> last 1-2 months i hang on ruby and rails channels for getting help and learning better
<shevy> you can skip the "homework"
charliesome has joined #ruby
<shevy> after reading that page, you will understand iterators, methods and blocks
schaerli has joined #ruby
<Spaceghost|cloud> PLease don't skip the homework entirely.
<shevy> :)
<whowantstolivefo> hmmm okay, i will download that pdf, and do what this book says.
<shevy> read it online!!!
banister`sleep has joined #ruby
<shevy> a downloaded pdf is a dead-weight pdf!
<whowantstolivefo> okay shevy
noxoc has joined #ruby
<shevy> whowantstolivefo are you using linux?
ryanh has joined #ruby
<whowantstolivefo> i use ubuntu 12.04 and ruby installed via rvm
<whowantstolivefo> using ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]
<whowantstolivefo> and my gem 1.8.24 and rails 3.2.11
noxoc has quit [Client Quit]
<nga4> you kids and your rvms and rock musics
etcetera has joined #ruby
carloslopes has joined #ruby
<shevy> ok good
etcetera has quit [Max SendQ exceeded]
<whowantstolivefo> shevy: Spaceghost|cloud and Hanmac if you dont tell me anything, i am going to start learning how you say!
<shevy> you can write lots of ruby scripts
shock_one has quit [Remote host closed the connection]
reinaldob has joined #ruby
yshh has quit [Remote host closed the connection]
<shevy> keep them small and simple, the less code you have to use the better
* Hanmac is not an rails friend
shock_one has joined #ruby
<shevy> I dont use rails either
<whowantstolivefo> okay, see you guys, if i stuck somewhere i will keep disturbing you guys
<shevy> :)
<whowantstolivefo> whenever i get online i see you all guys online so i know yoy all from nicknames
<workmad3> nga4: nowt wrong with music with rocks in
<shock_one> shevy, I have some offtopic quesion. Are you native english?
<Spaceghost|cloud> Quick, everyone /nick to something else!
amaya_the has joined #ruby
jonahR has quit [Quit: jonahR]
<shevy> shock_one I am not a native english speaker but workmad3 and Spaceghost|cloud are :)))
<shevy> and ESPECIALLY Hanmac
Goles has joined #ruby
etcetera has joined #ruby
<Spaceghost|cloud> shock_one: No habla.
noxoc has joined #ruby
<shevy> go ask Hanmac
<Spaceghost|cloud> shevy: Jerk!
<shevy> shock_one just ask here
etcetera has quit [Max SendQ exceeded]
wreckimnaked has quit [Ping timeout: 240 seconds]
Goles has quit [Max SendQ exceeded]
angusiguess has joined #ruby
<workmad3> shevy: not me... I'm really just a spanish version of ALICE hooked up to google translate
<shock_one> shevy, is it correct to use either in this case«I dont use rails either»? I think «either» means either one or another but not both.
etcetera has joined #ruby
Goles has joined #ruby
<tobiasvl> «either is sometimes used, especially in North American English, where neither would be more traditionally accurate: "I'm not hungry." "Me either."»
<shevy> hmm
Goles has quit [Max SendQ exceeded]
<shevy> that one got me stumped many times as well
<workmad3> it's idiomatic, more than technically correct, I suspect
<shock_one> I would write «I don't use rails too» or «I also don't use rails»
Goles has joined #ruby
<workmad3> shock_one: I'd probably reply 'neither do I' personally
<Spaceghost|cloud> Yo tampoco.
<Spaceghost|cloud> Or whatever.
<shevy> mi perro es un gato
Goles has quit [Max SendQ exceeded]
<shock_one> А я еще и непонятными буквами писать умею
<workmad3> shevy: cool story, bro
<shevy> shock_one yeah... if you have two roads, and both are blocked... do you say... "I can't go either way." or do you say "I can't go neither way."
angusiguess has quit [Ping timeout: 252 seconds]
<workmad3> shevy: I wonder how the hell I got there in the first place
<shevy> workmad3 I learned spanish from 14-18! but I forgot 98% :(
karasawa has quit [Ping timeout: 276 seconds]
Goles has joined #ruby
Goles has quit [Remote host closed the connection]
GeekSir has joined #ruby
karasawa has joined #ruby
nari has joined #ruby
<workmad3> shevy: also 'I can go neither way' is an acceptable response ;)
* Spaceghost|cloud wonders if he accidentally walked into ##English
<workmad3> Spaceghost|cloud: nope, this is still #ruby, a.k.a. ##procrastination
<tobiasvl> Spaceghost|cloud: hey, this is boolean logic
<kalleth> workmad3: i disagree
<kalleth> but then i'm awkward
<kalleth> and annoying
<kalleth> also, fuck locales
<Spaceghost|cloud> Brocrastination is more likely.
<workmad3> kalleth: lets have a 30 minute argument about it ;)
GeekSir has left #ruby [#ruby]
<kalleth> workmad3: vim > emacs
<workmad3> kalleth: I agree with that one :P
<kalleth> dammit
<Spaceghost|cloud> Um, no. pico > *
<workmad3> kalleth: but I'll learn emacs simply to argue with you, if you want ;)
<shock_one> Spaceghost|cloud, sorry about that.
etcetera has quit [Ping timeout: 276 seconds]
DuoSRX has joined #ruby
aaronmcadam has joined #ruby
adambeynon has joined #ruby
aaronmcadam has quit [Quit: aaronmcadam]
aaronmcadam has joined #ruby
emptyflask has joined #ruby
megha has joined #ruby
main has quit [Remote host closed the connection]
emptyflask has quit [Ping timeout: 245 seconds]
dkannan has quit [Ping timeout: 252 seconds]
zommi has joined #ruby
nkr has joined #ruby
main has joined #ruby
arya has quit [Ping timeout: 248 seconds]
sayan has quit [Ping timeout: 256 seconds]
Guest59167 is now known as mjolk
arya has joined #ruby
arturaz has quit [Ping timeout: 248 seconds]
BulleTime has joined #ruby
mergoth has joined #ruby
horofox has joined #ruby
renanoronfle has joined #ruby
reinaldob has quit [Remote host closed the connection]
arturaz has joined #ruby
pcarrier has joined #ruby
reinaldob has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
pcarrier has quit [Ping timeout: 245 seconds]
etcetera has joined #ruby
<shevy> why is here noone who loves emacs
F1skr has joined #ruby
pcarrier has joined #ruby
osaut has joined #ruby
krz has quit [Quit: krz]
banister`sleep has quit [Remote host closed the connection]
moos3 has joined #ruby
<tobiasvl> shevy: aw :)
<tobiasvl> (i don't either though)
<shevy> hehehe
<shevy> only matz likes emacs
<shock_one> It doesn't comly with Unix philosophy.
huntercool has joined #ruby
<shevy> I think the only area where the Unix philosophy failed were the GUIs
timonv has quit [Remote host closed the connection]
huntercool has left #ruby [#ruby]
whowantstolivefo has quit [Quit: need to concentration to learning ruby and rails so i close everything and only left open pine's learn to program page. see you guys]
chussenot has quit [Quit: chussenot]
timonv has joined #ruby
griffindy has joined #ruby
kiyoura has quit [Quit: Leaving]
frihd has joined #ruby
etcetera has quit [Ping timeout: 256 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
dkannan has joined #ruby
tommyvyo has joined #ruby
mikecmpbll has joined #ruby
TIBS02 has joined #ruby
alvesjnr has joined #ruby
alvesjnr has left #ruby ["Nothing to do here..."]
samphippen has joined #ruby
larissa has joined #ruby
namxam has quit [Remote host closed the connection]
banister`sleep has joined #ruby
arkiver has joined #ruby
fyolnish has quit [Remote host closed the connection]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
wunz has quit [Ping timeout: 276 seconds]
dkannan has left #ruby [#ruby]
eddie_ has quit [Quit: Ex-Chat]
pyro111 has quit [Ping timeout: 248 seconds]
banister`sleep has quit [Remote host closed the connection]
<JonnieCache> the string processing sucks as well
<JonnieCache> -print0 my arse
b1rkh0ff has quit [Quit: Leaving]
pyro111 has joined #ruby
RORgasm has joined #ruby
wunz has joined #ruby
angusiguess has joined #ruby
xemu has joined #ruby
wreckimnaked has joined #ruby
rjmt___ has joined #ruby
ryanh has quit [Quit: Computer has gone to sleep.]
sayan has joined #ruby
RORgasm has quit [Ping timeout: 248 seconds]
tatsuya__ has joined #ruby
tatsuya_o has quit [Ping timeout: 252 seconds]
dhruvasagar has quit [Read error: Operation timed out]
yshh has joined #ruby
fyolnish has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
baphled has joined #ruby
berserkr has joined #ruby
ananthakumaran has joined #ruby
hybris has joined #ruby
Guest61468 is now known as DaZ
etcetera has joined #ruby
tommyvyo has joined #ruby
yshh has quit [Ping timeout: 256 seconds]
angusiguess has quit [Ping timeout: 276 seconds]
ananthakumaran has quit [Ping timeout: 248 seconds]
jacktrick has joined #ruby
shorts has quit [Quit: shorts]
griffindy has quit [Quit: Computer has gone to sleep.]
jonathanwallace has quit [Ping timeout: 248 seconds]
shorts has joined #ruby
shorts has quit [Client Quit]
Kakera has quit [Read error: Connection reset by peer]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
banister_ has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
lele has quit [Ping timeout: 264 seconds]
baphled has quit [Ping timeout: 276 seconds]
etcetera has quit [Ping timeout: 246 seconds]
lele has joined #ruby
relixx has joined #ruby
Elhu has joined #ruby
nat2610 has joined #ruby
robotmay has quit [Remote host closed the connection]
Udom0 has joined #ruby
adambeynon has quit [Quit: Computer has gone to sleep.]
nat2610 has quit [Ping timeout: 255 seconds]
kold_ has joined #ruby
daniel_- has quit [Quit: WeeChat 0.3.9.2]
enroxorz-work has joined #ruby
Michael_ has joined #ruby
slainer68 has quit [Read error: Connection reset by peer]
angusiguess has joined #ruby
enroxorz-work is now known as SgtKabuki-manNYP
SgtKabuki-manNYP is now known as SgtKabukiManNYPD
slainer68 has joined #ruby
megha has quit [Quit: WeeChat 0.3.9.2]
rmartin has joined #ruby
megha has joined #ruby
namxam has joined #ruby
paolooo has joined #ruby
schaerli has quit [Remote host closed the connection]
angusiguess has quit [Ping timeout: 246 seconds]
gyre007 has quit [Remote host closed the connection]
Michael_ has quit [Remote host closed the connection]
shock_one has quit [Quit: Leaving]
shock_one has joined #ruby
schaerli has joined #ruby
geekbri has joined #ruby
FND has joined #ruby
jfl0wers has joined #ruby
<FND> if I have a Unicode string, how could I convert (escape/encode) non-ASCII characters within?
v0n has joined #ruby
<FND> (I need to convert IRIs to URIs)
x0F has quit [Disconnected by services]
x0F_ has joined #ruby
x0F_ is now known as x0F
Michael_ has joined #ruby
kold_ has quit [Remote host closed the connection]
w|t has quit [Quit: No Ping reply in 150 seconds.]
reinaldob has quit [Remote host closed the connection]
w|t has joined #ruby
w|t has quit [Changing host]
w|t has joined #ruby
Spooner_ has joined #ruby
tommyvyo has joined #ruby
arkiver has quit [Quit: Leaving]
mark_locklear has joined #ruby
bluenemo has quit [Remote host closed the connection]
dawkirst has joined #ruby
vlad_starkov has quit [Remote host closed the connection]
etcetera has joined #ruby
cha1tanya has quit [Read error: No route to host]
solidoodlesuppor has joined #ruby
dekroning has joined #ruby
DatumDrop has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
<dekroning> is it possible to see who required the file you are currently in?
jfl0wers has quit [Quit: jfl0wers]
<FND> dekroning: you could raise an exception at the very top and look at the stack trace
<banister_> dekroning: if you monkey-patched require and used binding_of_caller
clooth has quit [Read error: Connection reset by peer]
clooth has joined #ruby
<dekroning> FND: cool
tatsuya__ has quit [Remote host closed the connection]
gokul has quit [Quit: Leaving]
chussenot has joined #ruby
<banister_> FND: or just use 'caller' :)
<banister_> caller gives you on-demand backtraces
<FND> awww :)
<shock_one> FND: Isn't URI::encode what you want? https://dl.dropbox.com/u/608214/scrn/1359034443.png
<dawkirst> Hi, can I have Node.js installed in a Sinatra/Ruby environment on Heroku?
kold_ has joined #ruby
<FND> shock_one: wow, why didn't I think of that
tatsuya_o has joined #ruby
angusiguess has joined #ruby
<FND> shock_one: seems excellent
<FND> thank you
<shock_one> FND: You must know your API. You're welcome, that's why we're here.
<FND> ✓
Virunga has joined #ruby
jds_ has joined #ruby
ffranz has quit [Quit: Leaving]
DatumDrop has joined #ruby
ffranz has joined #ruby
samphippen has quit [Quit: Computer has gone to sleep.]
rippa has quit [Read error: Connection reset by peer]
spinagon has joined #ruby
shock_one has quit [Quit: Leaving]
shock_one has joined #ruby
etcetera has quit [Ping timeout: 244 seconds]
jds_ has quit [Ping timeout: 256 seconds]
shock_one has quit [Client Quit]
shock_one has joined #ruby
browndawg1 has joined #ruby
browndawg has quit [Read error: Connection reset by peer]
fourq has quit [Quit: Lost terminal]
fourq has joined #ruby
lkba has joined #ruby
ABK has joined #ruby
<ABK> how to handle %x{ssh -t node 'command'} in MRI Ruby result into Error "(Errno::ENAMETOOLONG)itialize': File name too long"
a_a_g has quit [Quit: This computer has gone to sleep]
FND has left #ruby [#ruby]
blacktul_ has joined #ruby
dustint has joined #ruby
Takehiro has joined #ruby
Jackneill has joined #ruby
blacktulip has quit [Ping timeout: 252 seconds]
browndawg has joined #ruby
answer_42 has joined #ruby
<shock_one> Hanmac: OMG
oz has joined #ruby
browndawg1 has quit [Ping timeout: 245 seconds]
louisror has quit [Ping timeout: 252 seconds]
<Hanmac> i looked, my key is not there :D
PragCypher has joined #ruby
inokenty has joined #ruby
<shock_one> I like their new search.
aaronmcadam_ has joined #ruby
aaronmcadam has quit [Read error: Connection reset by peer]
aaronmcadam_ is now known as aaronmcadam
v0n has quit [Ping timeout: 252 seconds]
<Hanmac> that what i dont like on github: you cant send members private messages :/ (as far as i know) ... sometimes you want to diskuss something that does not fit into an bug ticket
<banister_> Hanmac: you used to be able to
karasawa has quit [Ping timeout: 276 seconds]
<banister_> Hanmac: but they got rid of it ------------- i dont know whyyyyyyyyyy
kold_ has quit [Remote host closed the connection]
karasawa has joined #ruby
nari has quit [Ping timeout: 248 seconds]
<Spooner_> Hanmac, Yeah, it is a shame. Should at least be something you can turn on/off in case you get spammed by idiots.
<Hanmac> i think we should fork the github repo on github :D
fyolnish has quit [Remote host closed the connection]
fyolnish has joined #ruby
wting has quit [Ping timeout: 276 seconds]
<Spooner_> I think we should fork the whole of github on bitbucket.
samphippen has joined #ruby
<GeekOnCoffee> bitbucket makes me sad
<Spooner_> And then fork bitbucket on github and see which one explodes first.
<Spaceghost|cloud> I think the git or ssh transport for the github project on github has a lot of occurrences of the string 'git'
<Spooner_> Why's that, GeekOnCoffee?
wting has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
<GeekOnCoffee> it's just not nearly as enjoyable an experience as github
<GeekOnCoffee> but the free private repos are a big deal
* Spaceghost|cloud still prefers mailing lists and request pull
andrewh has joined #ruby
dkannan has joined #ruby
<Hanmac> bitbucket is nice too, but it does have a freaky few when you have multible branches ... github can show it VERY nice
<Spooner_> GeekOnCoffee, Perhaps not, but I make use of their free private repos.
<GeekOnCoffee> yeah, exactly
Coolhand has joined #ruby
<shock_one> You know what is cool? You can authorize on bitbucket through github
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
invisime has joined #ruby
geekbri has quit [Read error: Connection reset by peer]
pcarrier has quit [Ping timeout: 245 seconds]
geekbri has joined #ruby
earthquake has joined #ruby
<GeekOnCoffee> working on a project that will hopefully generate enough recurring income to justify paying for a github plan and save the effort… https://leanpub.com/quickbooks/
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
mercwithamouth has joined #ruby
osaut has quit [Read error: Connection reset by peer]
pcarrier has joined #ruby
samphippen has quit [Client Quit]
banister_ has quit [Remote host closed the connection]
mikecmpbll has joined #ruby
fyolnish has quit [Ping timeout: 256 seconds]
angusiguess has quit [Ping timeout: 256 seconds]
end_guy has joined #ruby
blacktul_ has quit [Ping timeout: 240 seconds]
gyre007 has joined #ruby
gyre007 has quit [Read error: Connection reset by peer]
gyre008 has joined #ruby
sepp2k has joined #ruby
Banistergalaxy has quit [Read error: Connection reset by peer]
drago757 has joined #ruby
aaronmcadam has quit [Quit: aaronmcadam]
jerius has joined #ruby
Banistergalaxy has joined #ruby
charliesome has quit [Quit: Textual IRC Client: www.textualapp.com]
mailo_ has quit [Ping timeout: 264 seconds]
jaequery has joined #ruby
osaut has joined #ruby
kpshek has joined #ruby
blaxter has quit [Quit: foo]
etcetera has joined #ruby
mmitchell has joined #ruby
tk_ has joined #ruby
rakuN has joined #ruby
mmitchell has quit [Remote host closed the connection]
fyolnish has joined #ruby
nkts is now known as marius
haxrbyte_ has quit [Ping timeout: 276 seconds]
aaronmcadam has joined #ruby
tPl0ch has quit [Quit: Verlassend]
otherj has joined #ruby
UukGoblin has joined #ruby
<UukGoblin> lo
earthquake has quit [Quit: earthquake]
<UukGoblin> so how can I use FakeFS and VCR in an Rspsec suite? I tried to read https://github.com/vcr/vcr/issues/234 and https://github.com/defunkt/fakefs/issues/167 but they don't seem to give a good solution
anoldhacker has joined #ruby
haxrbyte has joined #ruby
ananthakumaran has joined #ruby
<UukGoblin> I tried doing FakeFS.activate! and .deactivate! in places, with not much luck...
ABK has quit [Quit: Leaving]
haxrbyte_ has joined #ruby
jtharris has joined #ruby
hemanth has quit [Ping timeout: 276 seconds]
shock_one has quit [Ping timeout: 240 seconds]
jfl0wers has joined #ruby
Zai00 has joined #ruby
ChampS666 has quit [Ping timeout: 245 seconds]
lolmaus has quit []
_nitti has joined #ruby
schaerli has quit [Remote host closed the connection]
bradhe has joined #ruby
haxrbyt__ has joined #ruby
jprovazn has quit [Quit: Leaving]
sailias has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
<relixx> hey
relixx has quit [Read error: Connection reset by peer]
relixx has joined #ruby
nari has joined #ruby
dawkirst has quit [Ping timeout: 245 seconds]
tomzx_mac has joined #ruby
etcetera has quit [Ping timeout: 276 seconds]
Michael_ has quit [Remote host closed the connection]
haxrbyte_ has quit [Ping timeout: 252 seconds]
krawchyk has joined #ruby
bradhe has quit [Remote host closed the connection]
RagingDave has quit [Quit: Ex-Chat]
banister`sleep has joined #ruby
adambeynon has joined #ruby
otherj has quit [Quit: otherj]
Playground has quit [Ping timeout: 252 seconds]
theRoUS has joined #ruby
theRoUS has joined #ruby
banister`sleep has quit [Remote host closed the connection]
banister`sleep has joined #ruby
freeayu has quit [Remote host closed the connection]
cr3 has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
bluenemo has joined #ruby
paolooo has quit [Quit: Page closed]
<cr3> in rspec, is there a nice way to check that a file has multiple content snippets?
s__dana has quit [Ping timeout: 248 seconds]
schaerli has joined #ruby
nomenkun has quit [Ping timeout: 248 seconds]
d2dchat has joined #ruby
ovatsug25 has quit [Remote host closed the connection]
banister`sleep has quit [Ping timeout: 256 seconds]
RORgasm has joined #ruby
nomenkun has joined #ruby
F1skr has quit [Quit: WeeChat 0.4.0]
razibog has quit [Ping timeout: 255 seconds]
zph has joined #ruby
jrist-afk is now known as jrist
jaequery has quit [Ping timeout: 256 seconds]
jonathanwallace has joined #ruby
banister`sleep has joined #ruby
vlad_starkov has joined #ruby
jaequery has joined #ruby
RORgasm has quit [Ping timeout: 264 seconds]
dareign85 has joined #ruby
niklasb has quit [Ping timeout: 264 seconds]
ewag has joined #ruby
vlad_starkov has quit [Ping timeout: 248 seconds]
_nitti has quit [Remote host closed the connection]
joofsh has joined #ruby
frihd has left #ruby [#ruby]
Virunga has quit [Remote host closed the connection]
Hanmac has quit [Quit: Page closed]
jonahR has joined #ruby
jonahR has quit [Client Quit]
interactionjaxsn has joined #ruby
ttt_ has quit [Remote host closed the connection]
bluenemo has quit [Read error: Operation timed out]
failshell has joined #ruby
mengu has joined #ruby
rakuN has quit [Quit: rakuN]
Guest90975 is now known as digifiv5e
djdb has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
digifiv5e has quit [Changing host]
digifiv5e has joined #ruby
embs_ has quit [Ping timeout: 248 seconds]
mark_locklear has quit [Remote host closed the connection]
embs_ has joined #ruby
tomzx_mac has quit [Ping timeout: 255 seconds]
etcetera has joined #ruby
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
phantasm66 has joined #ruby
phantasm66 has joined #ruby
etcetera has quit [Max SendQ exceeded]
bluenemo has joined #ruby
bluenemo has joined #ruby
bluenemo has quit [Changing host]
etcetera has joined #ruby
angusiguess has joined #ruby
etcetera has quit [Max SendQ exceeded]
cristian has left #ruby [#ruby]
_nitti has joined #ruby
haxrbyte has joined #ruby
cr3 has quit [Quit: leaving]
juarlex has joined #ruby
etcetera has joined #ruby
Virunga has joined #ruby
haxrbyt__ has quit [Read error: Connection reset by peer]
RagingDave has joined #ruby
haxrbyte_ has joined #ruby
shock_one has joined #ruby
drago757 has quit [Quit: drago757]
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
shock_one has quit [Remote host closed the connection]
Targen has joined #ruby
haxrbyte has quit [Ping timeout: 252 seconds]
__BigO__ has joined #ruby
niklasb has joined #ruby
frem has joined #ruby
pu22l3r has joined #ruby
pu22l3r has quit [Remote host closed the connection]
Goles has joined #ruby
dustint has quit [Remote host closed the connection]
pu22l3r has joined #ruby
dustint has joined #ruby
karasawa has quit [Read error: Connection reset by peer]
Goles has quit [Max SendQ exceeded]
Neomex has joined #ruby
swex has joined #ruby
Neomex has quit [Client Quit]
samphippen has joined #ruby
pu22l3r_ has joined #ruby
SgtKabukiManNYPD is now known as enroxorz-away
schaerli has quit [Remote host closed the connection]
pu22l3r has quit [Read error: Connection reset by peer]
philcrissman has joined #ruby
Virunga has quit [Remote host closed the connection]
nat2610 has joined #ruby
v0n has joined #ruby
niklasb has quit [Ping timeout: 276 seconds]
etcetera has quit [Ping timeout: 244 seconds]
philcrissman has quit [Remote host closed the connection]
mengu_ has joined #ruby
philcrissman has joined #ruby
arkiver has joined #ruby
stopbit has joined #ruby
tk_ has quit [Quit: ばいばい]
Goles has joined #ruby
fmcgeough has joined #ruby
JumpMast3r has joined #ruby
nat2610 has quit [Ping timeout: 255 seconds]
segv- has joined #ruby
mengu has quit [Ping timeout: 256 seconds]
aedornm has joined #ruby
BizarreCake has quit [Ping timeout: 255 seconds]
CamonZ has joined #ruby
Virunga has joined #ruby
mrdtt has quit [Remote host closed the connection]
blaxter has joined #ruby
niklasb has joined #ruby
mrdtt has joined #ruby
Inoperable has joined #ruby
Michael_ has joined #ruby
baroquebobcat has joined #ruby
arya has quit [Ping timeout: 248 seconds]
jlast has joined #ruby
Inoperable has quit [Quit: "Man who fight with wife all day, get no peace at night!"]
ogamita has quit [Read error: Connection reset by peer]
relixx has quit [Quit: relixx]
zastern has joined #ruby
DuoSRX has quit [Remote host closed the connection]
awarner has quit [Read error: No route to host]
sbear has joined #ruby
awarner has joined #ruby
arya has joined #ruby
elico has joined #ruby
larissa has quit [Quit: Leaving]
DuoSRX has joined #ruby
jg2600 has joined #ruby
m4n has quit [Ping timeout: 248 seconds]
TomyLobo has joined #ruby
bradhe has joined #ruby
jeffreybaird has joined #ruby
Astralum has joined #ruby
bean__ has joined #ruby
fmcgeough has quit [Ping timeout: 240 seconds]
johngalt2600 has quit [Ping timeout: 255 seconds]
fmcgeough has joined #ruby
mmitchell has joined #ruby
palyboy has joined #ruby
elico has quit [Client Quit]
osaut has quit [Quit: osaut]
mark_locklear has joined #ruby
mmitchell has quit [Remote host closed the connection]
SCommette has joined #ruby
mmitchell has joined #ruby
arkiver has quit [Ping timeout: 252 seconds]
bradhe_ has joined #ruby
elico has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
dareign8 has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
io_syl has joined #ruby
Inoperable has joined #ruby
Inoperable has quit [Max SendQ exceeded]
etcetera has joined #ruby
<Xeago> what is would the proper use of hyphens be in this sentence: "Patrick decided to use Elasticsearch for a distributed full text search environment. "
rwilcox has joined #ruby
<Xeago> distributed full-text search-environment?
bradhe_ has quit [Remote host closed the connection]
relixx has joined #ruby
Morkel has quit [Quit: Morkel]
anoNxeRo has joined #ruby
tagrudev has quit [Remote host closed the connection]
dareign85 has quit [Ping timeout: 240 seconds]
elico has quit [Client Quit]
<yfeldblum> Xeago, 'ElasticSearch' with a capital S; full-text is hyphenated but nothing else needs to be
bradhe_ has joined #ruby
<Xeago> yfeldblum: the current recommended casing for Elasticsearch is Elasticsearch
<Xeago> thanks!
bradhe has quit [Ping timeout: 276 seconds]
RORgasm has joined #ruby
<Xeago> Elasticsearch used to be dua cap and all lowercase as well, Kimchy replied in #elasticsearch for this question
sterNiX has quit [Ping timeout: 245 seconds]
<Xeago> dual cap.*
bradhe_ has quit [Remote host closed the connection]
<yfeldblum> ah cool
cantonic has joined #ruby
fuleo2 has joined #ruby
jekotia has joined #ruby
dareign85 has joined #ruby
dareign8 has quit [Read error: Connection reset by peer]
beliveyourdream has quit [Read error: Connection reset by peer]
mockra has quit [Remote host closed the connection]
<Xeago> how do you call different writing forms?
fourq has left #ruby [#ruby]
mengu_ has quit [Quit: This computer has gone to sleep]
<shevy> legasthenics
headius has joined #ruby
sayan has quit [Read error: Connection reset by peer]
Inoperable has joined #ruby
elico has joined #ruby
alex__c2022 has joined #ruby
dareign85 has quit [Ping timeout: 255 seconds]
reinaldob has joined #ruby
apeiros_ has quit [Remote host closed the connection]
chussenot has quit [Quit: chussenot]
a_a_g has joined #ruby
PragCypher has quit [Quit: Leaving]
rakl has joined #ruby
dareign85 has joined #ruby
shock_one has joined #ruby
chussenot has joined #ruby
nari has quit [Ping timeout: 255 seconds]
jonathanwallace has quit [Ping timeout: 256 seconds]
PragCypher has joined #ruby
<Xeago> wikipedia doesn't know it :<
shock_one has quit [Remote host closed the connection]
arya has quit [Ping timeout: 248 seconds]
akemrir has quit [Quit: WeeChat 0.4.0]
shock_one has joined #ruby
etcetera has quit [Ping timeout: 276 seconds]
arya has joined #ruby
dareign85 has quit [Ping timeout: 276 seconds]
<shevy> hehe
karasawa has joined #ruby
karasawa has quit [Client Quit]
karasawa has joined #ruby
tomoyuki28jp has joined #ruby
karasawa has quit [Client Quit]
karasawa has joined #ruby
PragCypher has quit [Remote host closed the connection]
tomoyuki28jp has left #ruby [#ruby]
Zolo has joined #ruby
EhyehAsherEhyeh has quit [Ping timeout: 248 seconds]
emptyflask has joined #ruby
thatguycraig has joined #ruby
thatguycraig has quit [Max SendQ exceeded]
PragCypher has joined #ruby
PragCypher has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
kpshek has quit []
osaut has joined #ruby
dareign85 has joined #ruby
emptyflask has quit [Ping timeout: 244 seconds]
dekroning has quit [Ping timeout: 252 seconds]
beiter has joined #ruby
elico has quit [Quit: elico]
dareign85 has quit [Read error: Connection reset by peer]
dareign85 has joined #ruby
mkillebrew has quit [Ping timeout: 260 seconds]
thatguycraig has joined #ruby
thatguycraig has quit [Client Quit]
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
MattRB has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
emocakes has joined #ruby
ttt has joined #ruby
joshman_ has joined #ruby
dekroning has joined #ruby
karasawa has quit [Ping timeout: 244 seconds]
nomenkun_ has joined #ruby
nomenkun has quit [Ping timeout: 256 seconds]
karasawa has joined #ruby
drago757 has joined #ruby
emptyflask has joined #ruby
ttt has quit [Ping timeout: 256 seconds]
puppeh has quit [Remote host closed the connection]
Pip has joined #ruby
<Pip> Okay, what's the default gems shipped with ruby?
sayan has joined #ruby
pcarrier has quit []
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
Michael_ has quit [Remote host closed the connection]
<banister`sleep> Pip: rake, minitest
Xeago has quit [Ping timeout: 252 seconds]
uris has joined #ruby
eldariof has quit [Ping timeout: 264 seconds]
osaut has quit [Ping timeout: 240 seconds]
<Pip> banister`sleep, Just two gems?
<banister`sleep> Pip: i think so...and im not even sure if they're really gems
<banister`sleep> they might just be stdlib
<Pip> They are gems
<banister`sleep> how do u know for sure
<Pip> as well as bigdecimal
<Pip> I have gem list --local
<banister`sleep> ah
<banister`sleep> what other gems come up?
<banister`sleep> Pip: but is this on a fresh install?
<banister`sleep> cos of course there's minitest/rake gems
<banister`sleep> but the question is whether they're actually gems on a fresh install
<banister`sleep> or only have u update them via ruby gems
<Pip> I don't know
<Pip> But I installed ruby from the stock repo
<banister`sleep> yes, but if you've installed other gems subsequently it'll be hard to know
<banister`sleep> so you hvae to have a fresh install to know for sure
matthewrobbins has joined #ruby
<Pip> bigdecimal (1.1.0) io-console (0.3) json(1.7.6) minitest (4.5.0) rake (10.0.3) rdoc (3.12)
danneu has joined #ruby
<Pip> banister`sleep, I put user installed gems in their homes
andrewhl has joined #ruby
<Pip> Officially shipped gems in /usr
<banister`sleep> cool
wallerdev has joined #ruby
pithagorians has joined #ruby
<Pip> And it's really cool that if you issue the command prefixed with :sudo, it only list the official gems
<Pip> Precisely, those installed in /usr
<Pip> *lists
dr_bob has quit [Quit: Leaving.]
jgrevich has joined #ruby
etcetera has joined #ruby
kpshek has joined #ruby
francisfish has quit [Remote host closed the connection]
Virunga has quit [Remote host closed the connection]
banister`sleep has quit [Remote host closed the connection]
banister`sleep has joined #ruby
Umren has joined #ruby
dr_bob has joined #ruby
jonathanwallace has joined #ruby
oldB has joined #ruby
drago757 has quit [Quit: drago757]
aaronmcadam has quit [Quit: aaronmcadam]
enebo has joined #ruby
<pithagorians> hello all. we want to use a service of some company and it has the option to use our email server to send emails. their app is ruby one. when they test connection to our server on SMTP by TLS on port 465, they get timeout. they sent the code that is doing test https://gist.github.com/1c810a690fdd12aa98e8 . please give some clue on what can be wrong. i'm not a ruby programmer and it's not very easy to give them an answer
oldB has quit [Client Quit]
<failshell> on Linux, I have a pid, how can I check if its running?
aaronmcadam has joined #ruby
nateberkopec has joined #ruby
vlad_starkov has joined #ruby
<failshell> all i can find are references to executing a system command
woolite64 has joined #ruby
dkannan has quit [Quit: dkannan]
pyro111 has quit [Remote host closed the connection]
<shevy> failshell you could try to run "ps ax", then parse that string
chrismhough has joined #ruby
<shevy> result = `ps ax`
<failshell> was hoping for some that didnt rely on that
<failshell> i wonder why Process doesnt have a method for that
jekotia has quit [Quit: ChatZilla 0.9.89-rdmsoft [XULRunner 1.9.0.17/2009122204]]
danktamagachi has joined #ruby
jekotia has joined #ruby
<shevy> you can only find out the pid of the running script Process.pid
mkillebrew has joined #ruby
megha has quit [Quit: WeeChat 0.3.9.2]
<shevy> I think you must ask the operating system
banister`sleep has quit [Ping timeout: 256 seconds]
<shevy> I would have no idea how else ruby could find out that a .rb file is running or not
<Spaceghost|cloud> Ask an atheist!
<shevy> you could workaround by writing files, when the file is running, and removing the file when it has stopped
banister`sleep has joined #ruby
<Spaceghost|cloud> shevy: pidfiles?
<shevy> the .rb file
haxrbyte_ has quit [Remote host closed the connection]
<shevy> I like to call them catfiles
<shevy> because I like cats
<Spaceghost|cloud> unnecessary abuse of cat
<Spaceghost|cloud> Isn't there an interface around getting processes in rubeh?
<failshell> hehe /var/litterbox
haxrbyte has joined #ruby
<Spaceghost|cloud> /srv/ur_face
haxrbyte has quit [Remote host closed the connection]
biff_tannen has joined #ruby
Nisstyre-laptop has joined #ruby
haxrbyte has joined #ruby
Pip has quit [Ping timeout: 246 seconds]
mikecmpbll has joined #ruby
wallerdev has quit [Quit: wallerdev]
eka has quit [Ping timeout: 240 seconds]
<aedornm> there's not by standard library, but you can use Dir["/proc/#{pid}/cmdline"]. If the array is empty it's not running
jjbohn has joined #ruby
dougireton has joined #ruby
eka has joined #ruby
tlvb has joined #ruby
etcetera has quit [Ping timeout: 255 seconds]
<shock_one> Does anybody use RubyMine on linux?
baroquebobcat has joined #ruby
hackerdude has joined #ruby
martinklepsch has joined #ruby
<failshell> shevy: Unix has a special feature of the kill system call around signal zero. Error checking is performed, but no signal is sent.
<failshell> so you can Process.kill(pid, 0)
io_syl has quit [Quit: Textual IRC Client: www.textualapp.com]
DatumDrop has quit [Remote host closed the connection]
wallerdev has joined #ruby
<martinklepsch> defining a class intance variable which is an array how would I set that up to allow for things like "Class.arr << ["test"]"
<failshell> actually, its Process.kill(signal, pid)
jtgiri_ has joined #ruby
hoelzro is now known as hoelzro|away
axl_ has joined #ruby
<martinklepsch> problem is that .arr is only the getter and just returns the array that is contained. This results in arr << "test" being returned but not Class.arr being set
shock_one has quit [Read error: No route to host]
joeycarmello has joined #ruby
beiter has quit [Quit: beiter]
shock_one has joined #ruby
aganov has quit [Remote host closed the connection]
<banister`sleep> martinklepsch: https://gist.github.com/9f8f17186c11a76f819e
alvaro_o has joined #ruby
<banister`sleep> sorry, updated https://gist.github.com/9f8f17186c11a76f819e
Uranio has joined #ruby
tjbiddle has joined #ruby
axl_ has quit [Quit: axl_]
pen has joined #ruby
headius has quit [Quit: headius]
sbear has quit [Ping timeout: 252 seconds]
tjbiddle has quit [Client Quit]
_nitti has quit [Remote host closed the connection]
Virunga has joined #ruby
Virunga has quit [Remote host closed the connection]
<banister`sleep> martinklepsch: so what's the deal?
axl_ has joined #ruby
MissionCritical has quit [Ping timeout: 256 seconds]
<relixx> hey guys, is there a more "intuitive| or user-friendly IMAP library for ruby out there?
headius has joined #ruby
<relixx> than Net::IMAP
elico has joined #ruby
<relixx> if not, that's OK, but I seem to remember I've seen one somewhere
<relixx> can't recall where or even if it was for ruby
punkrawkR^Home has joined #ruby
wallerdev has quit [Quit: wallerdev]
<martinklepsch> banister`sleep: well thanks, we tried to get it sth like that to work but made the mistake to define @arr inside class << self
<banister`sleep> martinklepsch: ah
<pen> anyone tried mruby on arduinuo??
<banister`sleep> martinklepsch: that will put the ivar on the metaclass :)
dekroning has quit [Ping timeout: 255 seconds]
Zolo has quit [Remote host closed the connection]
samphippen has quit [Quit: Computer has gone to sleep.]
elico has quit [Remote host closed the connection]
jean-louis has quit [Ping timeout: 245 seconds]
freakazoid0223 has joined #ruby
elux has joined #ruby
asym has joined #ruby
pu22l3r_ has quit [Remote host closed the connection]
ilyam has joined #ruby
a_a_g has quit [Quit: This computer has gone to sleep]
_nitti has joined #ruby
<martinklepsch> banister`sleep: yup, we also made this discovery as we figured out the difference between your and our approach
n1x has joined #ruby
<banister`sleep> martinklepsch: your approach should have raised an exception, im surprised it didnt
reinaldob has quit [Remote host closed the connection]
<martinklepsch> banister`sleep: by any chance: do you have any article/guide at hand that gives a good overview about the different class-"types" etc?
reinaldob has joined #ruby
<martinklepsch> banister`sleep: our approach in the end was way more complex my description above was more the original problem we were trying to solve
pcarrier has joined #ruby
pcarrier_ has joined #ruby
kmczn has joined #ruby
<martinklepsch> banister`sleep: thanks, you rock :)
MissionCritical has joined #ruby
bluenemo has quit [Remote host closed the connection]
<banister`sleep> martinklepsch: np, i like talking about this stuff so if u have any further questions feel free to ask
reinaldob has quit [Remote host closed the connection]
apok has joined #ruby
<martinklepsch> banister`sleep: I may get back to that, and thanks for pry btw <3
mockra has joined #ruby
<banister`sleep> np, surprised you figured out that's me :)
caleb_io has joined #ruby
<martinklepsch> banister`sleep: SO Profile / Blog > About
<banister`sleep> ah
wallerdev has joined #ruby
<martinklepsch> I like stalking people :D
pcarrier has quit [Ping timeout: 256 seconds]
pcarrier_ is now known as pcarrier
caleb_io has quit [Client Quit]
inokenty has quit [Quit: Leaving.]
jaequery has quit [Quit: Computer has gone to sleep.]
swex_ has joined #ruby
<banister`sleep> hehe
swex has quit [Ping timeout: 256 seconds]
chridal has quit [Quit: Lost terminal]
nomenkun_ has quit [Remote host closed the connection]
pithagorians has quit [Ping timeout: 256 seconds]
dhruvasagar has joined #ruby
reinaldob has joined #ruby
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
arturaz has quit [Ping timeout: 248 seconds]
timonv has quit [Remote host closed the connection]
mikepack has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
schaerli has joined #ruby
mikepack has joined #ruby
etcetera has joined #ruby
amaya_the has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0.1/20130116073211]]
Kuifje has joined #ruby
_nitti has quit [Remote host closed the connection]
osaut has joined #ruby
wallerdev has joined #ruby
anderson has joined #ruby
rakl has quit [Quit: sleeping]
osaut has quit [Ping timeout: 245 seconds]
jrajav has joined #ruby
swex_ has quit [Read error: Connection reset by peer]
maletor has joined #ruby
tommyvyo has joined #ruby
Pufferfood has quit [Remote host closed the connection]
vlad_starkov has quit [Remote host closed the connection]
tommyvyo_ has joined #ruby
ilyam has quit [Quit: ilyam]
jblack has joined #ruby
samphippen has joined #ruby
mafolz has quit [Remote host closed the connection]
MattRB has quit [Quit: This computer has gone to sleep]
havenn has joined #ruby
matthewrobbins has quit [Ping timeout: 256 seconds]
Rizzle has joined #ruby
thinkclay has joined #ruby
tintin has joined #ruby
<tintin> Is Rack available with ruby by default?
peteyg has joined #ruby
thinkclay has quit [Client Quit]
<banister`sleep> tintin: u mean rake?
hasse has joined #ruby
capsule_toy has joined #ruby
filipe has quit [Quit: Leaving]
dr_bob has quit [Quit: Leaving.]
reinaldob has quit [Remote host closed the connection]
Xeago has joined #ruby
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rakl has joined #ruby
Virunga has joined #ruby
fmcgeough has quit [Ping timeout: 252 seconds]
chussenot_ has joined #ruby
chussenot_ has quit [Client Quit]
marius has quit [Quit: Leaving]
namxam has quit [Remote host closed the connection]
ner0x has joined #ruby
aaronmcadam has quit [Quit: aaronmcadam]
martinklepsch has quit [Ping timeout: 248 seconds]
jaequery has joined #ruby
dr_bob has joined #ruby
chussenot has quit [Ping timeout: 256 seconds]
zigomir has quit [Quit: zigomir]
punkrawkR^Home has quit [Ping timeout: 256 seconds]
<aedornm> Is there a version of Watir uing a WebKit browser like capybara-webkit does that I'm not finding?
punkrawkR^Home has joined #ruby
icole has joined #ruby
reinaldob has joined #ruby
epylinkn has left #ruby [#ruby]
<tintin> banister`sleep: Rack
<banister`sleep> tintin: this? http://en.wikipedia.org/wiki/Rake_(software)
reinaldob has quit [Remote host closed the connection]
ninp0 has joined #ruby
reinaldob has joined #ruby
rippa has joined #ruby
mrdtt_ has joined #ruby
wreckimnaked has quit [Ping timeout: 276 seconds]
<tintin> banister`sleep: Rack server
reinaldob has quit [Remote host closed the connection]
spinagon has quit [Read error: Connection reset by peer]
<havenn> wake n' rake
<banister`sleep> tintin: oh, this? http://tinyurl.com/aqoo4jx
DatumDrop has joined #ruby
ananthakumaran1 has joined #ruby
<havenn> Improved Rake: http://goo.gl/3RNr9
icole has quit [Ping timeout: 244 seconds]
jduan1981 has joined #ruby
<banister`sleep> cool
ananthakumaran has quit [Ping timeout: 240 seconds]
horofox has quit [Quit: horofox]
<havenn> the spork of rakes
ilyam has joined #ruby
horofox has joined #ruby
<tintin> Or is Rack a seperate gem?
mrdtt has quit [Ping timeout: 240 seconds]
mrdtt_ is now known as mrdtt
jacktrick has quit [Quit: Leaving]
arturaz has joined #ruby
spider-mario has joined #ruby
<aedornm> default gems of a Ruby install are bigdecimal, io-console, json, minitest, rake and rdoc. Yes, Rack is a separate gem
_nitti has joined #ruby
clooth has quit [Quit: clooth]
adeponte has joined #ruby
<banister`sleep> tintin: i think you are confusing rake and rack
noxoc has quit [Quit: noxoc]
megha has joined #ruby
Takehiro has quit [Remote host closed the connection]
<banister`sleep> tintin: rake is the one for cleaning up leaves in your yard, rack is the thing for hanging up your coats and hats
<tintin> I'm talking about RACK
auser has joined #ruby
Banistergalaxy has quit [Ping timeout: 255 seconds]
nat2610 has joined #ruby
<tintin> What the f**k? I'm talking about Rack, why are you linking rake?
spider-mario_ has joined #ruby
spider-mario has quit [Ping timeout: 245 seconds]
karasawa has quit [Quit: Lost terminal]
pcarrier has quit []
karasawa has joined #ruby
Virunga has quit [Remote host closed the connection]
asteve has quit [Quit: Computer has gone to sleep.]
Inoperable has quit [Quit: Subroutine enters sleep cycle]
* havenn faux-giddyup
<Gate> tintin: rack is a gem
Michae___ has joined #ruby
Inoperable has joined #ruby
blacktulip has joined #ruby
<shock_one> I'm not sure but I don't think it's included in standard ruby distribution. And yes, it's definitely a gem.
<banister`sleep> Gate: damnit, you're supposed to troll tintin a bit longer :/
<tintin> Is that RAck gem available with ruby by default? or is it need to be seperately installed?
danneu has quit [Quit: WeeChat 0.3.8]
<Gate> tintin: seperately installed, do `gem install rack`
thatRD has joined #ruby
nga4 has quit [Ping timeout: 276 seconds]
<Gate> banister`sleep: I'm a troll when I damn well want to be a troll.
jgarvey has joined #ruby
dekroning has joined #ruby
<banister`sleep> hardcore
JohnBat26 has joined #ruby
jacktrick has joined #ruby
Takehiro has joined #ruby
tintin has quit [Quit: leaving]
Banistergalaxy has joined #ruby
ossareh has joined #ruby
dougireton has quit [Quit: Leaving.]
<jtcoon> this rustles my jimmies: http://privatepaste.com/f515caa255
<jtcoon> the stack trace for me is just one item, the entry point call to evildoer
cdt has quit [Quit: Ex-Chat]
timmow has quit [Quit: has left the building]
timmow has joined #ruby
<jtcoon> I'd prefer something like java, where you can at least see into the problematic trace -- the reason my jimmies are rustled is this same problem prevents me from figuring out what part of ActiveRecord is choking to death on a weird model save scenario
c0rn has joined #ruby
timmow has quit [Client Quit]
dougireton has joined #ruby
timmow has joined #ruby
<shock_one> jtcoon: thats because of tail recursion optimization, i think. Try recursire(n) + 1
joeycarmello has quit [Remote host closed the connection]
<jtcoon> does the same, but that is a good point
dekroning has quit [Ping timeout: 276 seconds]
<shock_one> And Java doesn't have TCO
<banister`sleep> neither does ruby
psyprus has joined #ruby
Takehiro has quit [Remote host closed the connection]
<psyprus> which gem / adapter is the most recent that should be used for postgres connectivity
<psyprus> im seeing 3.. btw new to ruby.. pg, dm-post adapt, postgres
<shock_one> pg
<psyprus> ok thanks..
tjbiddle has joined #ruby
end_guy has quit [Remote host closed the connection]
karasawa has quit [Ping timeout: 256 seconds]
<GeekOnCoffee> great reference site in general
<psyprus> ok awesome... im trying to build snorby.. 2 day process so far
<psyprus> mysql works
<psyprus> but i hate mysql
cantonic has quit [Quit: cantonic]
axl_ has quit [Quit: axl_]
<psyprus> postgres fails with ... cant locate file dm-postgres-adapter
<psyprus> but its in my locally installed gem list
<psyprus> funtimes
karasawa has joined #ruby
dwu1 has joined #ruby
<psyprus> thanks for the links
<shock_one> psyprus: #postgresql
<havenn> psyprus: I like Sequel with PG: https://github.com/jeremyevans/sequel
tcstar has joined #ruby
zeade has joined #ruby
<aedornm> neat.. never heard of snorby before.
thatRD has quit [Quit: thatRD]
Vainoharhainen has quit [Ping timeout: 244 seconds]
auser has quit [Quit: auser]
slainer68 has quit [Remote host closed the connection]
fmcgeough has joined #ruby
pu22l3r has joined #ruby
slainer68 has joined #ruby
Rydefalk has joined #ruby
timmow has quit [Quit: is having a nap]
chussenot has joined #ruby
tommyvyo_ has quit [Quit: http://twitter.com/tommyvyo]
axl_ has joined #ruby
stkowski has joined #ruby
jrhorn424 has joined #ruby
end_guy has joined #ruby
mahmoudimus has joined #ruby
bane_ has quit [Ping timeout: 256 seconds]
horrror has joined #ruby
<horrror> is there a way to break a ruby script but still have a console open?
io_syl has joined #ruby
<horrror> or to inject code to a working script?
<banister`sleep> horrror: http://pryrepl.org
JumpMast3r has quit [Quit: JumpMast3r]
tatsuya_o has quit [Remote host closed the connection]
slainer68 has quit [Remote host closed the connection]
<horrror> banister`sleep this wasn't what i was looking for
<banister`sleep> horrror: are you sure? what exactly do you mean by "is there a way to break a ruby script but still have a console open?"
<horrror> means that i ran ./ruby script.rb
<horrror> and it stuck on a loop
<horrror> and i want to inject code to fix it without re-running the file
<shock_one> horrror: you can suspend process, open memory page in hex-editor, edit the code and run it.
apok has quit [Ping timeout: 256 seconds]
mergoth has quit [Ping timeout: 256 seconds]
Xeago has quit [Remote host closed the connection]
<banister`sleep> horrror: one sec
<banister`sleep> horrror: read the "peeking" section on the readme here: https://github.com/conradirwin/pry-rescue
<aedornm> wouldn't that be what you use binding.pry for?
templaedhel has joined #ruby
Banistergalaxy has quit [Ping timeout: 245 seconds]
punkrawkR^Home has quit [Ping timeout: 244 seconds]
sayan has quit [Read error: Connection reset by peer]
rdark has quit [Ping timeout: 248 seconds]
interactionjaxsn has quit [Remote host closed the connection]
<aedornm> Is that what pry-rescue does? Signal trap, Pry, continue?
punkrawkR^Home has joined #ruby
<banister`sleep> aedornm: no, it does lots of things. It also has the ability to drop you into the context of any exceptions that arise in your program
tommyvyo has quit [Quit: http://thomasvendetta.com]
jimeh has quit [Quit: Computer has gone to sleep.]
Banistergalaxy has joined #ruby
Zolo has joined #ruby
Takehiro has joined #ruby
rboyd has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
<banister`sleep> aedornm: you can also walk up the stack trace interactively and eval code to figure out what's goin on
<aedornm> well, the peeking function... Looks like just a signal trap that calls a pry session
tommyvyo has joined #ruby
tommyvyo has quit [Changing host]
tommyvyo has joined #ruby
<banister`sleep> aedornm: yes that one is
<banister`sleep> aedornm: but that's not all pry-rescue does, that's all i was saying :)
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
Guest____ has joined #ruby
Guest____ is now known as RubNoob
elico has joined #ruby
notVert has joined #ruby
emptyflask has quit [Remote host closed the connection]
jblack has quit [Ping timeout: 248 seconds]
<aedornm> mmkay .. speaking of pry.. I really like it, but I found myself instinctively typing 'irb' instead. I ended up making irb an alias to pry. It feels a little dirty ... heh
statarb3 has quit [Ping timeout: 248 seconds]
eldariof has joined #ruby
Playground has joined #ruby
Vert has quit [Ping timeout: 252 seconds]
chrismhough has quit [Quit: chrismhough]
<banister`sleep> aedornm: cool
dougsko has joined #ruby
ananthakumaran1 has quit [Quit: Leaving.]
biello has quit [Remote host closed the connection]
tvw has quit [Remote host closed the connection]
Takehiro has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
<dougsko> hey guys, i have a binary string that im trying to do some bitwise math on but i cant figure out how to encode it properly. my string looks like, "-\xC1\fqdwe\e\xAA" and I want to '& 0xf' it
<banister`sleep> aedornm: yeah it seems that was actually a barrier to our adoption in the early days (people so used to typing 'irb')
tenmilestereo has joined #ruby
Michae___ has quit [Remote host closed the connection]
<aedornm> banister`sleep: muscle memory is a pain in the ass sometimes
joofsh has quit [Remote host closed the connection]
kmczn has quit [Ping timeout: 245 seconds]
aaronmcadam has joined #ruby
<banister`sleep> aedornm: should probably write a pry-irb plugin that just overrides the executable :)
kenneth has quit [Quit: kenneth]
Takehiro has joined #ruby
dougireton has quit [Remote host closed the connection]
Pip has joined #ruby
Takehiro has quit [Read error: Connection reset by peer]
dougireton has joined #ruby
nat2610 has quit [Quit: Leaving.]
joschi has quit [Quit: No Ping reply in 180 seconds.]
iamjarvo has joined #ruby
joschi has joined #ruby
Proshot has joined #ruby
nat2610 has joined #ruby
shevy has quit [Ping timeout: 248 seconds]
squidBits has joined #ruby
jenrzzz has quit [Ping timeout: 276 seconds]
jduan1981 has quit [Quit: jduan1981]
Takehiro has joined #ruby
vlad_starkov has joined #ruby
yakko has joined #ruby
Takehiro has quit [Remote host closed the connection]
Takehiro has joined #ruby
<banister`sleep> aedornm: out of itnerest, what are the commands you use primarily?
<shock_one> dougsko: look at String#bytes
<banister`sleep> aedornm: or if your'e inclined, u could install the pry-popularity plugin
hasse has quit [Ping timeout: 245 seconds]
<banister`sleep> and then run pry-popularity
<banister`sleep> it'll look at your history and figure out which commands you've used most often
Dann1 has joined #ruby
s__dana has joined #ruby
aaronmacy has joined #ruby
sepp2k1 has joined #ruby
sepp2k has quit [Ping timeout: 256 seconds]
<dougsko> shock_one: thanks! i just started messing with each_byte. that looks like itll work
hadees has quit [Ping timeout: 248 seconds]
Zai00 has quit [Quit: Zai00]
<shock_one> dougsko: Learn you API!
<shock_one> dougsko: Learn your API!
<Dann1> Okay, here's a dumb question:
<Dann1> (ie. logging purposes)
<Dann1> Is it possible to trigger a background process when mannually closing a ruby console?
<dougsko> is this different from 1.8? because im pretty sure this piece of code i have used to work at one point
vlad_starkov has quit [Ping timeout: 244 seconds]
philcrissman has quit [Ping timeout: 244 seconds]
mascool has joined #ruby
arietis has joined #ruby
hadees has joined #ruby
Elhu has quit [Quit: Computer has gone to sleep.]
<Dann1> God I love Ruby.
<Dann1> Thanks.
nga4 has joined #ruby
yacks has quit [Quit: Leaving]
emptyflask has joined #ruby
<shock_one> It will trigger even if program exit normally, without interruption. I don't remember if it was in ruby or another language but google KeyboardInterruptException or something
<Dann1> mmmkay
breakingthings has joined #ruby
DuoSRX has quit [Remote host closed the connection]
horrror has quit [Quit: horrror]
<lectrick> Is there any way with the Ruby regexp parser to have named matches fire off events?
Takehiro has quit [Remote host closed the connection]
jpfuentes2 has joined #ruby
breakingthings is now known as unclethings
shevy has joined #ruby
dr_bob has quit [Quit: Leaving.]
pawilon has joined #ruby
kmczn has joined #ruby
pawilon has left #ruby [#ruby]
<Dann1> Is there a way to keep a console window working in the background?
Takehiro has joined #ruby
capsule_toy has quit []
ffranz1 has joined #ruby
_nitti has quit [Remote host closed the connection]
karasawa has quit [Quit: Lost terminal]
<shock_one> lectrick: you can monkey patch match method
clooth has joined #ruby
karasawa has joined #ruby
ChampS666 has joined #ruby
unclethings is now known as breakingthings
dougsko has left #ruby [#ruby]
ddd has quit [Ping timeout: 245 seconds]
nomenkun has joined #ruby
joofsh has joined #ruby
ffranz has quit [Ping timeout: 248 seconds]
ryannielson has joined #ruby
bean__ has quit [Quit: Textual IRC Client: www.textualapp.com]
Xeago has joined #ruby
<aedornm> banister`sleep: If I were to aggregate across all the machines I use, I can easily say show-source, cd/ls, nesting, jump-to, find-method. There's some Ruby apps I use for some of our products that are ungodly difficult to debug and that's really where I use it the most.
<banister`sleep> aedornm: interesting, i didnt think jump-to was useful to anyone
elaptics is now known as elaptics`away
<banister`sleep> aedornm: if you set, Pry.prompt = Pry::NAV_PROMPT you might find it's not so useful anymore
<banister`sleep> (jump-to)
swingha has joined #ruby
<banister`sleep> same with nesting
h4mz1d has joined #ruby
karasawa has quit [Quit: Lost terminal]
karasawa has joined #ruby
mneorr has quit [Remote host closed the connection]
Takehiro has quit [Remote host closed the connection]
mneorr has joined #ruby
karasawa has quit [Client Quit]
dekroning has joined #ruby
kmczn has quit []
<aedornm> banister`sleep: In a normal console, not so useful... using a phone to SSH into a machine and debug something while in the middle of nowhere, it's still very useful
karasawa has joined #ruby
<banister`sleep> hehe
karasawa has quit [Client Quit]
Virunga has joined #ruby
dekroning has quit [Client Quit]
dekroning has joined #ruby
workmad3 has quit [Ping timeout: 264 seconds]
ffranz1 has quit [Quit: Leaving]
TIBS02 has quit [Ping timeout: 245 seconds]
chriskk has joined #ruby
chriskk has quit [Read error: Connection reset by peer]
chriskk has joined #ruby
<aedornm> and I'm sure not very many people need to do that, but I've had to many times while on the road. Data roaming charges aren't that bad if you limit things to some text. I don't think I would ever try to use a 3g/4g adapter in non-service areas with a laptop instead of a phone for those cases
hybris has quit [Read error: Connection reset by peer]
babonk has joined #ruby
babonk has quit [Changing host]
babonk has joined #ruby
h4mz1d has quit [Ping timeout: 240 seconds]
Targen has quit [Ping timeout: 246 seconds]
yakko has quit [Remote host closed the connection]
ddd has joined #ruby
kevinchu has joined #ruby
jpfuentes2 has quit [Quit: Computer has gone to sleep.]
phinfonet has joined #ruby
generalissimo has joined #ruby
noxoc has joined #ruby
CamonZ has quit [Quit: Linkinus - http://linkinus.com]
pu22l3r has quit [Ping timeout: 245 seconds]
brianpWins has joined #ruby
nomenkun has quit [Remote host closed the connection]
mrdtt has quit [Quit: mrdtt]
kenneth has joined #ruby
Kingy has joined #ruby
Hanmac1 is now known as Hanmac
eldariof has quit []
jacktrick has quit [Ping timeout: 252 seconds]
fuleo2 has quit []
Kingy has quit [Client Quit]
zommi has quit [Quit: Leaving.]
daniel_- has joined #ruby
daniel_- has quit [Changing host]
daniel_- has joined #ruby
icole has joined #ruby
Zolo has quit [Remote host closed the connection]
Neomex has joined #ruby
bricker`work is now known as bricker
toekutr has joined #ruby
Virunga is now known as LennyLinux
sn0wb1rd has joined #ruby
<Dann1> Hey, at_exit{} gets triggered when the process is manually stopped or by scripting means?
swex has joined #ruby
babonk has left #ruby [#ruby]
<shock_one> When program finished execution. I'm not sure it's triggered by keyboard interrupt, but you can try it.
JMcAfreak has quit [Quit: They're coming to take me away, ha-haa!]
auser has joined #ruby
DatumDrop has quit [Remote host closed the connection]
huoxito has joined #ruby
Shadow_S has joined #ruby
Shadow_S has quit [Remote host closed the connection]
pu22l3r has joined #ruby
banister`sleep has quit [Remote host closed the connection]
mneorr has quit [Remote host closed the connection]
juarlex has quit [Remote host closed the connection]
himsin has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
zeade has quit [Quit: Leaving.]
<shock_one> Dann1: Nope, it doesn't. But you can rescue Interrupt
Zolo has joined #ruby
DatumDrop has joined #ruby
_nitti_ has joined #ruby
nat2610 has quit [Quit: Leaving.]
<shock_one> Like this https://gist.github.com/4626610
peteyg has quit [Quit: leaving]
joeycarmello has joined #ruby
zeade has joined #ruby
jacktrick has joined #ruby
JarJar has joined #ruby
maz-dev_ has quit [Remote host closed the connection]
TIBS01 has joined #ruby
postmodern has joined #ruby
dougireton has quit [Quit: Leaving.]
bananastalktome has joined #ruby
freakazoid0223 has quit [Quit: Leaving]
juarlex has joined #ruby
amh345 has joined #ruby
amh345 has quit [Changing host]
amh345 has joined #ruby
Takehiro has joined #ruby
dougireton has joined #ruby
kpshek has quit []
<amh345> in ruby 1.8.7 what is the the best way to turn 5.00 into 000500 or 5.50 000550 ?
mmercer has joined #ruby
maz-dev has joined #ruby
jacktrick has quit [Quit: Leaving]
<amh345> basically right justified with 2 decimal positions (not showing a decimal though)
<shevy> sprintf() or % I suppose
<shevy> you just have to display it
_nitti_ has quit [Ping timeout: 255 seconds]
<amh345> are you asking if i just need to display it?
relixx has quit [Read error: Connection reset by peer]
dougireton has quit [Client Quit]
relixx has joined #ruby
rippa has quit [Read error: Connection reset by peer]
olrrai has joined #ruby
rippa has joined #ruby
<shevy> hmm interesting, ruby kills off the trailing 0
Rizzle has quit [Ping timeout: 248 seconds]
<shevy> "%08d" % 5.00 # => "00000005"
blazes816 has joined #ruby
<Dann1> Gah
joofsh_ has joined #ruby
<shevy> amh345 no real idea how to display scientifically correct numbers in ruby :(
<Dann1> Anyone here mind telling me what's wrong with this batch script I made?
<shevy> ewww batch???
<shevy> use ruby man!
<amh345> shevy: i was just messing with sprintf("%04x", 5.00) and yeah. it kills the trailing 00
yfeldblum has quit [Ping timeout: 248 seconds]
<Dann1> I know, but I needed an outer shell to my script
axl_ has joined #ruby
<Dann1> For shitty debugging purposes
<amh345> i guess i could just drop the decimal and add as many zeros to the beginning of the number so it's 6 chars long
<shevy> amh345 I think others solved this but I cant remember how
chridal has joined #ruby
Takehiro has quit [Ping timeout: 244 seconds]
<amh345> shevy, i didnt think this would be complicated. hah
joofsh has quit [Ping timeout: 264 seconds]
<shevy> ok lets get the goal again:
<shevy> 5.00 must become 00050
<Dann1> Also: If I require 'dir' will it use all the scripts in there?
<amh345> 000500
ffranz has joined #ruby
<shevy> how about this here:
<shevy> "%E" % 5.00 # => "5.000000E+00"
<amh345> number must always be 6 chars long
<shevy> hahahaha :D
<amh345> number must be right justified.
beaky has joined #ruby
<shevy> Dann1, where or what is dir? ah no... require works only on one file
<beaky> hello
<amh345> so i guess 50.00 would be 005000
<shevy> Dann1, you could do this: Dir['dir/*.rb'].each {|file| require file }
<beaky> is _why's poignant guide to ruby a good way to learn the Ruby Programming Language?
<shevy> beaky I found it confusing and hated it
<beaky> ah
<shevy> others found it lovely and creative
<Dann1> mm
<Dann1> Bah
<graft> hmm, so net::http doesn't do any dns caching, eh
<Dann1> I knew that was possible, but nevermind
<shevy> x = 1.234598; "%.3E" % x # => "1.235E+00"
<beaky> I learned (very little) ruby from various tutorials in the web; I hope to develop enough proficiency to build a rails app :D
pyx has joined #ruby
<beaky> I guess i'll try out the poignant guide
<shock_one> beaky: no, but it's funny.
relixx has quit [Read error: Connection reset by peer]
<beaky> ah
jpfuentes2 has joined #ruby
<beaky> so I should seek a better text?
jjbohn has quit [Quit: Leaving...]
relixx has joined #ruby
<shock_one> beaky: do you have prior programming experience?
<amh345> shevy, do you know the shortest method from removing the decimal from 5.00?
<amh345> if i can drop the decimal, i may have a way. i hope
<graft> anyone familiar with this issue? why ruby does DNS lookups every time instead of consulting the host DNS cache?
<shevy> yes. send a ninja into 5.00 and chop away
<aedornm> amh345: sprintf("%01.2f", 5.50)
<shevy> what is that even doing aedornm
<amh345> float?
<beaky> shock_one: yes :D I've used python and C prior
yfeldblum has joined #ruby
<aedornm> shevy: precision float string ...
<shock_one> beaky: try pickaxe or «The Ruby Programming Language»
<shevy> beaky if you can program already, you only need a bit of thinking the ruby way
apok has joined #ruby
<beaky> ah
<aedornm> >> puts("%01.5f" % 5.00)
<eval-in> aedornm: Output: "5.00000\n" (http://eval.in/7474)
<shock_one> beaky: pay attention to blocks and object oriented stuff like metaclasses, it's really important.
Dann1 has quit [Quit: GODDAMNIT]
_nitti has joined #ruby
<amh345> if i have a clean way to drop the decimal i can do this. "50000".rjust(6, "0")
undersc0re97 has quit [Remote host closed the connection]
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<shevy> beaky: don't pay attention to shock_one, that is also important :>
<amh345> or "500".rjust(6, "0")
emptyflask has quit [Remote host closed the connection]
slainer68 has joined #ruby
andrewhl has quit [Remote host closed the connection]
<shevy> beaky but you know python, so ruby will be very easy
<shevy> I think for someone like you it may be simplest to just look at three classes for a while:
<shevy> Array, Hash, and String
<beaky> isn't Ruby's OO model quite different from what Python follows?
<shevy> v
emptyflask has joined #ruby
<shevy> oops
olrrai has quit [Quit: Saliendo]
<shevy> http://www.ruby-doc.org/core-1.9.3/String.html <-- especially important
<shevy> beaky not sure
<shevy> it is always:
<shevy> class Foo; end
<rwilcox> beaky: ish. Biggest difference is probably Ruby's blocks and Ruby's use of symbols
kpshek has joined #ruby
<shevy> foo = Foo.new
<amh345> 5.50.to_s >> "5.5" what the heck
anderson is now known as MorningLightMoun
<beaky> ruby symbols are like interned strings?
bradhe has joined #ruby
<aedornm> amh345: I'm confused as to what you are trying to do .. you want 5.50 to display as "5.50", or no?
<shevy> beaky no, they are unchangable entities
nat2610 has joined #ruby
<beaky> ah
<shevy> :foo is always :foo
<amh345> aedornm: 5.50 needs to be 000550 5.00 needs to be 000500 50.00 needs to be 005000 always 6 digits. right justified.
<shevy> :foo.object_id == :foo.object_id # => true
<shevy> "foo".object_id == "foo".object_id # => false
<shevy> beaky, you see, if you use strings, their object id is never the same
<shevy> also ruby symbols are very boring
<shock_one> beaky: they're immutable strings with special literal syntax but it doesn't matter. They're widely used as identifiers
<amh345> aedornm: "500".rjust(6, "0") does the trick. but i can't get 5.00 to a string without losing the trailing "0"'s
<aedornm> er
<shevy> the amount of time people have to spend understanding them isn't worth the investment :(
<graft> basically, they save you the trouble of typing an extra "
<shevy> yeah :)
<beaky> heh
<shevy> that's the best use I found for them too
<rwilcox> beaky: except Ruby uses symbols everywhere, and for tons of different things: options in a hash (dictionary), names of methods to call, constants...
<aedornm> >> puts ("%07.2f" % 50.00).sub('.', '')
<eval-in> aedornm: Output: "005000\n" (http://eval.in/7477)
havenn has quit [Remote host closed the connection]
dougireton has joined #ruby
<shevy> beaky, also, you can use them in a hash in a simpler way:
<aedornm> >> puts ("%07.2f" % 5.00).sub('.', '')
<eval-in> aedornm: Output: "000500\n" (http://eval.in/7478)
<shevy> 'foo' => 5
<shevy> no sorry
<aedornm> >> puts ("%07.2f" % 5.50).sub('.', '')
<shevy> :foo => 5
<eval-in> aedornm: Output: "000550\n" (http://eval.in/7479)
<shevy> could become:
<shevy> foo: 5
<graft> ^^ only in 1.9 right?
<shevy> which is arguable easier to read than the older way
<amh345> aedornm: oh. i tihnk that did it!
<amh345> aedornm: thank you so much!
<shevy> yeah graft ... I use the long variant myself :P
<aedornm> or even just use delete('.') .. etc
poikon has joined #ruby
<shevy> I hate the encoding in 1.9.x really
adambeynon has joined #ruby
<graft> yeah, i find it easier to separate ruby from js if i keep that syntax separate
<Hanmac> have someone thought about to multiply it with 100? "%06d" % (5.50 * 100) #=> "000550"
<shevy> aha
<shevy> amh345 there you go
<amh345> shevy: yes. very happy :)
<graft> plus, you can do { :"foo-bar" => 5 }, but { "foo-bar": 5 } is invalid
<amh345> thanks guys
<shevy> graft odd
<shevy> parser magic and parser fails I suppose
eric has joined #ruby
havenn has joined #ruby
eric is now known as Guest14483
Neomex has quit [Quit: Neomex]
<aedornm> Hanmac: multiplication is hard =( lol
hadees has quit [Read error: Connection reset by peer]
bradhe has quit [Remote host closed the connection]
hadees has joined #ruby
<shock_one> amh345: (5.00).to_s.gsub('.', '').rjust(6, '0')
<Guest14483> I am having problems with a ruby irc bot. The bot is sending the join msg too early and I need it to stall until the bot is authorized
<Guest14483> Here is le codes: http://pastebin.com/pAi9dbXx
maletor has quit [Quit: Computer has gone to sleep.]
DrShoggoth has joined #ruby
bradhe has joined #ruby
marr has quit []
beiter has joined #ruby
renanoronfle has quit [Quit: Saindo]
<Hanmac> shock_one yours is wrong
bradhe has quit [Remote host closed the connection]
<shock_one> Hanmac: didn't read the chat. My bad.
<Guest14483> Anyone? until s.eof? do
<Guest14483> msg1 = s.gets
<Guest14483> puts msg1
<Guest14483> end
<Guest14483> wait oops
bananastalktome has left #ruby [#ruby]
<Guest14483> Anyone? http://pastebin.com/pAi9dbXx
<graft> hmm, apparently i am firewalled ehre
elico has quit [Quit: elico]
havenn has quit [Remote host closed the connection]
Monie has joined #ruby
<graft> Guest14483: so, you're not doing any checking at all to see if you connected, eh?
<graft> why would you expect this to work?
<Guest14483> no
<Guest14483> you see it works
<Guest14483> it just doesnt connect
<Guest14483> to the channel
<Guest14483> because join
<Guest14483> is being sent
<Guest14483> too early
<graft> please don't use enter as punctuation
<Guest14483> :I
<graft> this is not a haiku contest
<Guest14483> No shit !
<Guest14483> Can you help or not
<graft> well, you need to read the output and wait until you get an auth message
dekronin1 has joined #ruby
<graft> in your until loop
<Guest14483> How do i do that
<Guest14483> that is my problem
<Guest14483> I can't figure that part out
<graft> something like msg1.match(/Welcome to IRCx/) { s.puts "JOIN #{channel}" } i imagine
Takehiro has joined #ruby
<breakingthings> Hey, I was wondering if anyone could help me figure out something… I'm trying to run rspec on my gem, and when it hits my first test, it fails (nameerror), which is expected, but it's also printing out a lot of extra lines with "from .../.rbenv/..." and I was wondering if I can get rid of those by adding a dependency in the gemspec… and somehow running a local version of rspec? I'm not sure how this works yet.
<Guest14483> Ah
<Guest14483> are u sure "match"
<Guest14483> would work?
<shock_one> Wow, there is a bot that evaluates stuff!
<graft> no, but you can always try it
pavilionXP has joined #ruby
angusigu1ss has joined #ruby
<Guest14483> :I
jimeh has joined #ruby
vlad_starkov has joined #ruby
eykosioux has joined #ruby
<postmodern> breakingthings, could you paste the error
<shock_one> >> RUBY_VERSION
<eval-in> shock_one: Output: "" (http://eval.in/7480)
<breakingthings> sure, one sec.
vlad_starkov has quit [Read error: Connection reset by peer]
swingha has quit [Quit: WeeChat 0.3.9.2]
<graft> >> puts RUBY_VERSION
<eval-in> graft: Output: "1.9.3\n" (http://eval.in/7481)
vlad_starkov has joined #ruby
<breakingthings> postmodern: https://gist.github.com/4627031
jtharris has quit [Quit: WeeChat 0.3.9.2]
ryanf has joined #ruby
<postmodern> breakingthings, it can't load the User class/model
<breakingthings> Right, I understand that-the error is expected
<shock_one> irb-like prompt tricked me
dekroning has quit [Ping timeout: 240 seconds]
<breakingthings> It's just those 7 'from' lines, I've never seen those from when seeing other's rspec output
<postmodern> breakingthings, not sure if this is a rails project or what
<breakingthings> is it because I set it up improperly
stkowski has quit [Quit: stkowski]
<breakingthings> no, it's a vanilla ruby gem
maletor has joined #ruby
<postmodern> breakingthings, well User should be in a namespace if it's a gem
angusiguess has quit [Ping timeout: 255 seconds]
<postmodern> breakingthings, and you should use the full namespace in the specs
<postmodern> breakingthings, describe Foo::User
<breakingthings> ah
<breakingthings> Let me do that.
<postmodern> breakingthings, and you need to require the file, require 'foo/user'
<breakingthings> Ah!
<breakingthings> there we are
<breakingthings> so it's just an issue with nameerror
dekronin1 is now known as dekroning
<breakingthings> or I guess fatal errors in general
Takehiro has quit [Ping timeout: 246 seconds]
<breakingthings> that it throws the full "from" stack
gyre008 has quit [Remote host closed the connection]
ovatsug25 has joined #ruby
jimeh has quit [Ping timeout: 276 seconds]
dougireton has quit [Quit: Leaving.]
<shevy> can rack be used standalone meaningfully?
<Xeago> shevy: with a rakefile yes?
<Xeago> or something to rake upon
<shevy> :( rakefiles...
BulleTime has quit [Ping timeout: 257 seconds]
<Xeago> atleast it is better than make..
<Xeago> make is horrendous to write
<shevy> I dunno, I never felt happy with either of them
jjbohn has joined #ruby
dv_ has quit [Read error: Connection reset by peer]
__BigO__ has quit [Remote host closed the connection]
Nisstyre-laptop has quit [Ping timeout: 240 seconds]
<Xeago> well there is tons of different utilities like make
Dann1 has joined #ruby
Dann1 has quit [Remote host closed the connection]
<yfeldblum> rack or rake?
dv_ has joined #ruby
Dann1 has joined #ruby
<Xeago> ah shit
<Xeago> I misread..
<Xeago> :\
<Xeago> shevy: I use rack for simple tracking cookies
<Dann1> Say I have a dir with my main.rb and a rq.rb
<Dann1> Can I 'require "rq.rb"' in the main.rb?
<shock_one> without .rb
<Dann1> As in, point to that file in the current folder
<Dann1> ahh
<Dann1> Okay thanks
jimeh has joined #ruby
nkr has quit [Quit: Linkinus - http://linkinus.com]
<shevy> Dann1 in ruby 1.8.x you can
<graft> does anyone know how to make ruby consult the system dns cache instead of resolving hostnames every time?
<graft> using, e.g., Net::HTTP.get
<Dann1> I'm in 1.9.3
<Dann1> Why was it removed?
<graft> is everyone writing irc bots today or something?
* breakingthings is too
jjbohn has quit [Ping timeout: 256 seconds]
<breakingthings> It's a nice exercise to test my knowledge of ruby.
<Dann1> mMMHM
_nitti has quit [Remote host closed the connection]
mergoth has joined #ruby
<Dann1> breakingthings: Are you using a gem or..?
theRoUS has quit [Ping timeout: 255 seconds]
<breakingthings> Dann1: I'm writing my own
<Dann1> I'm using cinch 2.x
<Dann1> Ah
<jrabbit> Is there a good primer on using the mac SDK with macruby? or an eventkit gem? :P
<breakingthings> Similar to cinch, mostly for learning purposes, but maybe it will become something more. /shrug
<shock_one> Dann1: require_relative
<Dann1> ??
<Dann1> Oh
<Dann1> Yay works
__BigO__ has joined #ruby
graft_ has quit [Read error: Operation timed out]
atno has joined #ruby
Jackneill has quit [Remote host closed the connection]
joofsh_ has quit [Remote host closed the connection]
emptyflask has quit [Remote host closed the connection]
mockra has quit [Remote host closed the connection]
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_starkov has joined #ruby
jjbohn has joined #ruby
beaky has quit [Quit: leaving]
graft_ has joined #ruby
graft_ has quit [Changing host]
graft_ has joined #ruby
vlad_starkov has quit [Read error: Connection reset by peer]
vlad_sta_ has joined #ruby
joofsh has joined #ruby
mascool has quit [Read error: Connection reset by peer]
emmanuelux has joined #ruby
kpshek has quit []
vlad_sta_ has quit [Remote host closed the connection]
andrewhl has joined #ruby
nkts has joined #ruby
hoelzro|away is now known as hoelzro
mengu has joined #ruby
Xeago_ has joined #ruby
Xeago is now known as Guest36525
Guest36525 has quit [Killed (lindbohm.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
blacktul_ has joined #ruby
jgrevich_ has joined #ruby
aaronmacy has quit [Quit: Leaving.]
Morkel has joined #ruby
<Guest14483> I really need help
<Guest14483> It is a ircbot
havenn has joined #ruby
<Guest14483> The join function is being sent too quickly
cableray has joined #ruby
jgrevich has quit [Ping timeout: 246 seconds]
jgrevich_ is now known as jgrevich
<reactormonk> Guest14483, yet another irc bot?
<Guest14483> same one
<Guest14483> I cant make it work
ovatsug25 has quit [Ping timeout: 245 seconds]
perun_ has quit [Ping timeout: 255 seconds]
rippa has quit [Ping timeout: 240 seconds]
vlad_starkov has joined #ruby
caleb_ has joined #ruby
blacktulip has quit [Ping timeout: 244 seconds]
rippa has joined #ruby
philcrissman has joined #ruby
angusigu1ss has quit [Quit: leaving]
chrisja has joined #ruby
pavilionXP has quit [Ping timeout: 245 seconds]
angusiguess has joined #ruby
saltcod has quit [Quit: saltcod]
neo314 has joined #ruby
pcarrier has joined #ruby
danneu has joined #ruby
bradhe has joined #ruby
theRoUS has joined #ruby
theRoUS has joined #ruby
theRoUS has quit [Changing host]
_nitti has joined #ruby
rjmt___ has quit [Ping timeout: 244 seconds]
<Dann1> YET another
<Dann1> jegus
<Dann1> holdup
bean__ has joined #ruby
<Dann1> #ruby-bots for IRC bots in ruby is on now
<reactormonk> Dann1, do all the bots have op there?
<Dann1> No, silly
<Dann1> That's a completely new room
hoelzro is now known as hoelzro|away
dougireton has joined #ruby
arietis has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
jtharris has joined #ruby
perun_ has joined #ruby
saltcod has joined #ruby
mthscndd has joined #ruby
browndawg has quit [Ping timeout: 248 seconds]
aaronmacy has joined #ruby
<mthscndd> What`s up guys?
<breakingthings> How would one… compare an empty instance of an object for an assertion
<breakingthings> eg. Klass.new.should == ...?
kpshek has joined #ruby
anoNxeRo has quit [Ping timeout: 240 seconds]
<reactormonk> breakingthings, don't overkill your tests
caleb_ has left #ruby ["["Textual IRC Client: www.textualapp.com"]"]
<breakingthings> reactormonk: I'm lernin
<breakingthings> teach me how do
Udom0 has left #ruby [#ruby]
<breakingthings> I wanna know for the sake of knowing
<Dann1> begin
<Dann1> end
<Dann1> sleep 5
<Dann1> [...]
<Dann1> rescue Interrupt
<graft> what do you want to assert, exactly?
<Dann1> This won't work
ryannielson has quit [Quit: ryannielson]
<breakingthings> that Class.new should be a blank object.
vinax has joined #ruby
<reactormonk> breakingthings, well, it's kind of circular implication
<graft> what do you mean by blank?
<breakingthings> ...empty.
<breakingthings> :d
<Dann1> nil?
<graft> you mean {}?
<breakingthings> y…yes, I think, on graft.
mthscndd has left #ruby [#ruby]
<breakingthings> But that doesn't… work I think.
<shock_one> breakingthings: do you want to test if it's empty?
enebo has quit [Quit: enebo]
<blazes816> wat
<graft> presumably it has some methods defined and such
<graft> do you want to know if its instance variables are empty or something?
<shock_one> Dann1: what do you expect it to do?
<blazes816> what would it mean for an object to be empty?
<blazes816> all nil properties perhaps?
<breakingthings> graft: Yeah, I suppose.
blazes816 has quit [Read error: Connection reset by peer]
<Dann1> Well, I don't have sleep 5 really there
blaxter has quit [Quit: foo]
dougireton has quit [Remote host closed the connection]
<Dann1> But a File.put instead
<breakingthings> I've seen examples where they compared it to {} and I was confused
<shock_one> Compare it against Klass.new
<breakingthings> So I was just wondering what that means.
<Dann1> It's supposed to do so when I manually close the process
nat2610 has quit [Quit: Leaving.]
blazes816 has joined #ruby
<breakingthings> Because it doesn't… work, it seems.
jeffreybaird has quit [Read error: Connection reset by peer]
<breakingthings> I fired up irb and created a class and Klass.new == {} evals to false
dougireton has joined #ruby
<shock_one> Dann1: it should wait 5 seconds and terminate when you press ctrl+c
jeffreybaird has joined #ruby
jeffreybaird has quit [Read error: Connection reset by peer]
<reactormonk> breakingthings, sure it does, not the same class
nwertman has quit [Read error: Connection reset by peer]
<shock_one> Well, Klass isn't a Hash
jeffreybaird_ has joined #ruby
s0ber_ has joined #ruby
<Dann1> Oh
<Dann1> So
pavilionXP has joined #ruby
<breakingthings> Yeah, well that's why I was confused why they were doing it
<graft> who is they?
<Dann1> What if I 'press the x button'
<graft> maybe they were just wrong
<breakingthings> graft: Treehouse, but I've also seen it somewhere else.
* breakingthings shrugs
nwertman has joined #ruby
<breakingthings> I was just curious if there was an actual way that would actually have made sense
<breakingthings> oh.
<breakingthings> I'm a dumb.
<breakingthings> It was on the Hash class, so that… that makes sense.
<Dann1> Nope you're not
s0ber has quit [Ping timeout: 240 seconds]
<shock_one> breakingthings: you can make class method like empty_object which would return «the empty object», whatever it means, and compare against it.
* breakingthings goes and walks into a wall
s0ber_ is now known as s0ber
blazes816_ has joined #ruby
<danneu> if you need to test SomeClass.new, it sounds like you're doing too much in your initializer
vlad_starkov has quit [Remote host closed the connection]
Bottesque has joined #ruby
dougireton has quit [Client Quit]
blazes816 has quit [Ping timeout: 256 seconds]
blazes816_ is now known as blazes816
<breakingthings> I understand that
<graft> i'm still unclear what you want to be empty, breakingthings - like, if you want some specific instance variable to be nil, why don't you just test that?
<breakingthings> I was just confused why they were doing it because I overlooked what they were doing
<breakingthings> Nevermind, graft
<breakingthings> I'm just apparently not awake enough to be doing things.
<danneu> my bad, i was scrolled up in the history. i see there have been 50 lines since then
<graft> aye
mdw- has joined #ruby
<shock_one> breakingthings: can you show us what they are doing?
vlad_starkov has joined #ruby
<breakingthings> shock_one: <breakingthings> It was on the Hash class, so that… that makes sense.
<breakingthings> I was just not reading their example fully
<breakingthings> so I had a derp
<danneu> haha
<breakingthings> I was wondering wtf they were doing and didn't even read the class name
dougireton has joined #ruby
xyzodiac has joined #ruby
<breakingthings> But I geddit now
Goles has quit [Quit: Computer has gone to sleep.]
neo314 has quit [Ping timeout: 245 seconds]
pcarrier has quit []
dougireton has quit [Client Quit]
atno has quit [Read error: Connection reset by peer]
atno_ has joined #ruby
graft has quit [Ping timeout: 252 seconds]
mark_locklear has quit [Read error: Connection reset by peer]
vlad_starkov has quit [Remote host closed the connection]
relixx has quit [Read error: Connection reset by peer]
relixx has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
enroxorz-away has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
piotr_ has joined #ruby
browndawg has joined #ruby
browndawg has quit [Max SendQ exceeded]
aytch has quit [Ping timeout: 246 seconds]
elico has joined #ruby
blazes816 has quit [Quit: blazes816]
browndawg has joined #ruby
blazes816 has joined #ruby
blazes816 has quit [Client Quit]
Banistergalaxy has quit [Ping timeout: 245 seconds]
dougireton has joined #ruby
relixx has quit [Read error: Connection reset by peer]
MattRB has joined #ruby
skcin7 has joined #ruby
jonathanwallace has quit [Ping timeout: 240 seconds]
relixx has joined #ruby
caleb_io has joined #ruby
vlad_starkov has joined #ruby
nat2610 has joined #ruby
baphled has joined #ruby
jfl0wers has quit [Quit: jfl0wers]
cableray has quit [Quit: cableray]
__BigO__ has quit [Remote host closed the connection]
chrismhough has joined #ruby
DrShoggoth has quit [Ping timeout: 256 seconds]
__BigO__ has joined #ruby
rippa has quit [Read error: Connection reset by peer]
dougireton has quit [Remote host closed the connection]
rmartin has quit [Read error: Connection reset by peer]
rippa has joined #ruby
Banistergalaxy has joined #ruby
dougireton has joined #ruby
fmcgeough has quit [Quit: fmcgeough]
jgarvey has quit [Quit: Leaving]
Uranio has quit [Quit: while you reading this, a kitty dies]
graft has joined #ruby
graft has joined #ruby
graft has quit [Changing host]
templaedhel has quit [Quit: Leaving...]
tylersmith has joined #ruby
jds has joined #ruby
<shock_one> I wonder why there is no increment operator in most of modern languages?
JarJar has quit [Quit: Leaving]
<reactormonk> shock_one, well, in ruby, integers are immutable
<reactormonk> shock_one, and increment requires value semantics.
angusiguess has quit [Ping timeout: 256 seconds]
hck89 has joined #ruby
<Dann1> i++?
<ericwood> +=
_nitti has quit [Quit: Leaving...]
<Dann1> That too
<ericwood> ++ isn't a thing in ruby
<Dann1> I know
<Dann1> I wish
<ericwood> meh
<Dann1> .
angusiguess has joined #ruby
denken has quit [Remote host closed the connection]
<yfeldblum> i = i * 2 - (i - 1) <-- increment operator
<shock_one> reactormonk: can you explain about value semantics?
<Dann1> mmm
<Dann1> How do I define a method to behave like '2+2'
<shock_one> yfeldblum: What if i ==0
GattoLino has joined #ruby
<Dann1> instead of '2.+(2)'
<yfeldblum> shock_one, what if?
<yfeldblum> shock_one, still works
caleb_io has quit [Quit: caleb_io]
<shock_one> Wow, really.
<GattoLino> hello all :)
ebobby has joined #ruby
<Dann1> Hello.
DrShoggoth has joined #ruby
atno_ is now known as atno
<ebobby> World.
<havenn> Dann1: class Fixnum; alias add +; end; 2.add(2) #=> 4
<Dann1> *ba dum tss*
<Dann1> No
<Dann1> Say I want my uhh, ?=, for example
pu22l3r has quit [Remote host closed the connection]
<Dann1> how do I set this?
<havenn> Dann1: def ?=
AlSquirrel has joined #ruby
AlSquire has quit [Read error: Connection reset by peer]
<Dann1> yes, but wouldn't that do ie. 2.?=(3)
<shock_one> reactormonk: integers are immutable but we apply increment to the variable, not the literal.
<reactormonk> shock_one, well, if you want to change the variable, you have to reassign to it
<shock_one> What is the problem? I would expect i++ to work exactly like i +=1
geekbri has quit [Remote host closed the connection]
axl_ has quit [Quit: axl_]
andrewhl has quit [Remote host closed the connection]
<reactormonk> shock_one, well, you could do a syntax rewrite
<danneu> shock_one: for the same reason scala didn't implement i++, which is because it sort of hides the fact that it would be an expression that returns i + 1 where i++ usually mutates i in most other languages.
<danneu> so the syntactic sugar was never added
<shock_one> danneu: Odersky says that c++ is expression with an error :)
<danneu> frankly, i prefer i += 1, opeartory symmetry
banister`sleep has joined #ruby
<havenn> Dann1: Well, ? isn't a valid method name, but: def memory= this; end; memory = 'crayons'; memory #=> "crayons"
<Dann1> I'm confused.
<Dann1> I want to define a method that works with whitespace, like '==' or '=~'
caleb_io has joined #ruby
AlSquirrel has quit [Ping timeout: 256 seconds]
krawchyk has quit [Remote host closed the connection]
<shock_one> danneu: now I can see. There is obviously a problem with mutability, especially with postfix increment.
<banister`sleep> Dann1: ruby doesn't let you define arbitrary infix methods
<Dann1> awww :(
ChampS666 has quit [Ping timeout: 244 seconds]
frogstarr78 has quit [Remote host closed the connection]
<shock_one> Dann1: You should learn scala to do it
<Dann1> I'm all the more demotivated
<Dann1> :meh:
<shock_one> Dann1: Why not. It's the coolest language I know. And it's always good to learn something new.
<danneu> Dann1: that would also be a terrible method. colliding with (x==2 ? 0 : 1) and (?"F")
<lectrick> what is an infix method again?
AlSquire has joined #ruby
Zolo has quit [Remote host closed the connection]
<Dann1> danneu: I gave that as an example
dyrot has quit [Read error: Operation timed out]
<lectrick> Dann1: You can define == or =~ on your own object's class
<shock_one> prefix - before; infix - between; postfix - after
caleb_io has quit [Client Quit]
caleb_io has joined #ruby
<danneu> shock_one: odersky is amazing. i could listed to him all day
Playground has quit [Ping timeout: 246 seconds]
<lectrick> shock_one: oh, so I can't define an arbitrary + which will take arbitrary left-side and right-side args you mean?
<shock_one> I didn't say that, but no, not in Ruby.
<lectrick> it makes sense in ruby when you get that every operator is a method invocation on its receiver which is the left side
bean__ has quit [Quit: Computer has gone to sleep.]
<lectrick> well, except for negation which is def @- I believe?
<danneu> Someone should implement Scalefiles and `scale install <scalepackage>` for Scala. until then, sbt makes me cry
<danneu> ScalaScales
templaedhel has joined #ruby
<shock_one> danneu: Have you taken the coursera course?
<danneu> shock_one: yeah man, it was amazing. made me a better ruby programmer
manvstech has joined #ruby
RagingDave has quit [Quit: Ex-Chat]
<banister`sleep> shock_one: u did the scala course?
<banister`sleep> danneu: in what way? what did u learn?
<shock_one> Yes. I even have a sertificate.
atno has quit [Read error: Connection reset by peer]
RagingDave has joined #ruby
t0rc has joined #ruby
atno has joined #ruby
ChampS666 has joined #ruby
<elico> Hey there, I am looking for an example app that parses small XML docs.
theRoUS has quit [Ping timeout: 255 seconds]
<danneu> banister`sleep: deliberately thinking about immutability vs mutability. thinking functionally instead of imperatively. using something like Array#partition instead of an imperative solution i'd usually come up with. thinkingn recursively.
<banister`sleep> shock_one: what the hell? what's with all that random unicode? did their program crash when it generated the cert?
<danneu> haha
<shock_one> banister`sleep: What are you talking about? It's just my name isn't in ASCII
skcin7 has quit [Quit: Computer has gone to sleep.]
caleb_io has quit [Quit: caleb_io]
<banister`sleep> shock_one: looks like a system crash :P
<danneu> that's how i would always write my name
<shock_one> banister`sleep: My name looks like a system crash? Thank you.
templaedhel has quit [Client Quit]
<shock_one> banister`sleep: do you understand the type system?
<danneu> yeah, not sure how you see 'system crash' before 'slavic glyphs' or at least 'not english'
angusiguess has quit [Ping timeout: 245 seconds]
chendo_ has quit [Ping timeout: 240 seconds]
bradhe has quit [Remote host closed the connection]
Bottesque has quit [Read error: Connection reset by peer]
<danneu> i really liked the eclipse worksheet realtime evaluation
ckrailo has joined #ruby
<banister`sleep> shock_one: teasing of course, i just rarely see slavs write their name in their full cyrilic glory, most of the time it's anglicised and written in the latin alphabet
cakehero has joined #ruby
bradhe has joined #ruby
<banister`sleep> danneu: how does that work in the case the code is writing to a file or something like that, wouldn't that be annoying?
<banister`sleep> i can understand it's useful for pure functional code, but for code that's mutating stuff it woudl be annoying, no?
<danneu> well sure. but that's no different than testing things out in a repl
otherj has joined #ruby
dougireton has quit [Quit: Leaving.]
Pip has left #ruby ["Leaving"]
<banister`sleep> danneu: well it is, because code in a repl doesn't evaluate until you explicitly call it, but in the worksheet, isn't it evalling lines even in a method def as you type out the method? (i.e you haven't called the method yet)
<Dann1> Well, thanks for all the help guys.
<Dann1> G'night
<danneu> sure, but why would i put the file IO in the worksheet. my functions would depend on string data.
soulcake has quit [Quit: ZNC - http://znc.in]
Dann1 has quit [Quit: GODDAMNIT]
<danneu> and if i wanted to, i would just do some setup at the top and teardown at the bottom. but i wouldnt
jrajav has quit [Quit: I tend to be neutral about apples]
<banister`sleep> danneu: so, i think the worksheet is probably different to what i had in mind:) i figured it was like the lighttable thing
dyrot has joined #ruby
<danneu> banister`sleep: no, that's right. it shows line by line eval.
Guest57178 has quit [Ping timeout: 245 seconds]
<danneu> but i also wouldn't put external calls to Facebook in there either.
<shock_one> Actually I started learning ruby after scala. I was really mad there are no placeholders(_), pass-by-name, higher order functions and other cool functional stuff
otherj has quit [Client Quit]
<banister`sleep> danneu: but lighttable is used for writing actual code, not just playing around
mrrhead has joined #ruby
Villadelfia_ has joined #ruby
kpshek has quit []
nat26101 has joined #ruby
Villadelfia has quit [Ping timeout: 248 seconds]
<banister`sleep> danneu: so in so far as it's used for writing actual code, it could/should have any kind of code in there, including mutator methods and file system writes, etc
arturaz has quit [Remote host closed the connection]
<danneu> banister`sleep: the worksheet i'm talking about is just a text file with a repl. like any repl, you'd use it to parcel out what you want to do and then move it into a real file.
nat2610 has quit [Read error: Connection reset by peer]
pavilionXP has quit [Remote host closed the connection]
<danneu> shock_one: {a: 1, b: 2}.each { |_, value| puts value }
SeySayux has quit [Ping timeout: 252 seconds]
xyzodiac has quit [Quit: Computer has gone to sleep.]
<banister`sleep> danneu: oh, i do actual repl-oriented development (when i can) which doesn't require me to have two phases like that, let me show u
<danneu> but yeah, it's not some special catchall directive or anything.
<shock_one> but not (1..10).map(_ * 2)
<danneu> shock_one: yeah i agree
<danneu> shock_one: i miss that too
axl_ has joined #ruby
SeySayux has joined #ruby
<danneu> ruby feels so explicit compared to that
mergoth has quit [Read error: Connection reset by peer]
mockra has joined #ruby
dougireton has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
mergoth has joined #ruby
<tylersmith> The Zen of Ruby says explicit is better than implicit right?
<danneu> tylersmith: i didnt mean explicit, i meant verbose
<shock_one> danneu: Have you seen haskell? There is no need for even placeholder.«*» is a function that takes two arguments, but «*2» returns another function that takes one arguments. It's really cool
<tylersmith> danneu: true
<danneu> shock_one: i actually just printed out that Learn You a Haskell book
<shock_one> :)
haxrbyte_ has joined #ruby
nyuszika7h has quit [Quit: Reconnecting]
browndawg has left #ruby [#ruby]
<shock_one> danneu: You are going to love functional style. I promise that.
haxrbyte has quit [Read error: Connection reset by peer]
bean__ has joined #ruby
<danneu> odersky's course + Gary Bernhardt helped me understand how to actually separate out my Objects. it used to be sort of arbitrary for me. but now i can see the boundaries, and they often involve centralizing the necessary imperative stuff and then describing your domain within classes that have functional methods.
<danneu> so now my OOP is really just a way of organizing immutable FP. it's much better. obvious in hindsight, even
anoldhacker has quit [Quit: KVIrc 4.0.2 Insomnia http://www.kvirc.net/]
<davidcelis> damn
<davidcelis> showterm's gotten even slower
<davidcelis> crazy
<danneu> banister`sleep: dope. paused the vid to point out that your cl prompt looks like a charm bracelet
<shock_one> danneu: There were nearly nothing about OOP in Scala in the course, it was concentrated on functional programming. There is a very good book written by Odersky (1st edition for free, but you better pirate 2nd) with pretty throughout coverage of Scala
<davidcelis> danneu: lololol
Kingy has joined #ruby
<banister`sleep> danneu: Yeah
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<banister`sleep> davidcelis: yeah i know, hope he'll fix it soon enough
theRoUS has joined #ruby
theRoUS has quit [Changing host]
theRoUS has joined #ruby
caleb_io has joined #ruby
buibex has joined #ruby
nyuszika7h_ has joined #ruby
nyuszika7h_ is now known as nyuszika7h
<danneu> shock_one: right. but at the end of the day i need to reel in the things i learned about FP to my craft and dayjob. it's an OOP one. and FP certainly isn't incompatible with it.
<banister`sleep> davidcelis: there's also ascii.io
<banister`sleep> danneu: can u explain what u mean by: "OOP is really just a way of organizing immutable FP"
<havenn> i've been enjoying playing around with Elixir: http://elixir-lang.org
buibex has quit [Remote host closed the connection]
<banister`sleep> havenn: cool, is it nearly production ready?
<shock_one> danneu: after the tour of scala I haven't used for loot a single time.
<havenn> Elixir repl (iex) seems awesome.
bluOxigen has joined #ruby
<danneu> banister`sleep: nice. i use Pry + interactive_editor (vim). seems similar, but i dont use Pry's features much, unfortunately.
<banister`sleep> havenn: cool, can u do a showterm cast of it?
<shock_one> *for loop
<banister`sleep> danneu: i dont know why you use interactive_editor when pry does pretty much all of that afaict
<havenn> banister`sleep: Yeah, I think it is production ready, not sure?
emptyflask has joined #ruby
nate_h has joined #ruby
dekroning has quit [Ping timeout: 240 seconds]
<banister`sleep> havenn: cool, can u do a showterm/ascii.io of the elixir repl?
jduan1981 has joined #ruby
<havenn> banister`sleep: yeah, sure - will do
DatumDrop has quit [Remote host closed the connection]
<nate_h> Hey can someone help me with some basic ruby. https://gist.github.com/865129. I'm trying to understand what the brackets on line 5 and 9 do in the script.rb
<shock_one> havenn: As if erlang isn't weird enough they made another language on top of it.
zastern has quit [Remote host closed the connection]
Rix has quit [Ping timeout: 245 seconds]
<danneu> banister`sleep: because i was using irb+interactive_editor and pretty much replaced irb with pry superficially. still need to dig into pry
<banister`sleep> shock_one: i think the goal is to make it less weird :) cf javascript --> coffeescript :)
<nate_h> i assume its some kind of array thing, because later on we reference that loop variable ips with those values
<Gate> nate_h: sure! Ruby has an implicit return, meaning that the last evaluated statement in the script will be returned
<Gate> nate_h: So that method is just returning an array
<nate_h> Gate, so basically its building an array with those values in it.
hackerdude has quit [Remote host closed the connection]
<danneu> shock_one: i noticed that as well. i realized how many of these #each blocks can be expressed with #map, #partition, #chunk, etc.
<nate_h> on line 12, they don't use an actual variable map name, and use the "_" character
<nate_h> what does that do
<Gate> nate_h: yep! Its doing so with a little bit of wierdness, I greatly dislike building blocks inside of arrays like that, but to each their own
arya_ has joined #ruby
sailias has quit [Quit: Leaving.]
<shock_one> danneu: Do you know that grep with a block works like map+filter?
<nate_h> Gate, yeah I think they are only doing that so they can ensure the threads return in order, I don't care about that part so i'm trying to figure out what I can drop and yet still iterate through the threads.
biff_tannen has quit [Read error: Connection reset by peer]
arya has quit [Ping timeout: 248 seconds]
<danneu> shock_one: i just found out about that this week. i've been doing google queries for 'functional programming, ruby'.
etcetera has quit []
answer_42 has quit [Remote host closed the connection]
templaedhel has joined #ruby
<danneu> banister`sleep: gary bernhardt expresses it well (destroyallsoftware.com). he has talks where he speaks of it as 'functional core, imperative shell'.
<Gate> nate_h: the _ is using an implicit array split, so basically (a,b,_) = [1,2,3,4,5,6], a = 1, b = 2, _ means ignored values in this case
<banister`sleep> danneu: can you give me an example?
enebo has joined #ruby
Playground has joined #ruby
<shock_one> nate_h: they're doing it because there is no tuples in ruby
<banister`sleep> danneu: i'm not going to subscribe to his screencasts, he's too much of an annoying blow-hard on twitter, it put me off a long time ago :)
Umren has quit [Read error: Connection reset by peer]
<nate_h> shock_one, gotcha, that's kinda what I figured. a way to map things. I'm just going to throw all that out then, and do it in random order since my thread results don't need to be in order. more like http://pastie.org/5851179
<nate_h> just trying to learn threading a little.
thone has joined #ruby
<shock_one> nate_h: No, it's just a way to return a couple of things from the method
<shock_one> nate_h: ips gets assigned to three things: label, thread and line
ner0x has quit [Quit: Leaving]
kuzushi has quit [Ping timeout: 260 seconds]
frogstarr78 has joined #ruby
<banister`sleep> Gate: you can use * for that too
<danneu> banister`sleep: i'm just talking about objects that have referential transparency, usually on their initializer state
thone_ has quit [Ping timeout: 252 seconds]
<Gate> banister`sleep: for ignored value, or do you mean splating the array?
menace has joined #ruby
clooth has quit [Quit: clooth]
<shock_one> banister`sleep: Do you guys really pay money for screencasts?
Playground has quit [Quit: When I come back, please tell me in what new ways you have decided to be completely wrong.]
<danneu> i do
<banister`sleep> shock_one: i dont
Rix has joined #ruby
<banister`sleep> shock_one: and certainly not to gary blow-hard
<Gate> shock_one: some of them, yes
Playground has joined #ruby
<banister`sleep> :)
<nate_h> shock_one, ah ok, gotcha.
<danneu> $9/mo is a bargain if you learn anything that month.
<nate_h> shock_one, Gate, thanks.
<danneu> if you aren't learning, then yeah. why.
<shock_one> You're so weird. danney, $9 is more then nothing.
<banister`sleep> danneu: i dont see how an *object* can be referentially transparent, can u explain?
<danneu> sure. and paying for beer on dollar drink night is more expensive than staying in.
<danneu> being single forever, too. cheap as fuck
<shock_one> *whispering* and I know places where you can get them for free
<havenn> banister`sleep: Never used shoterm before, dig it...: http://showterm.io/f9a0fbeca8361f55d66d7
<banister`sleep> havenn: cool!
<Gate> shock_one: quality screencasts take time to make, people like Ryan Bates put in a crapload of work, and still most of his screencasts are free. He charges for redux and in-depth episodes. If they are valuable to you, pay for them. If not, then don't.
caleb_io has quit [Quit: caleb_io]
<banister`sleep> havenn: thanks
dougireton has quit [Quit: Leaving.]
caleb_io has joined #ruby
nwertman has quit [Quit: Lost terminal]
<danneu> banister`sleep: if you have a function `new_path(old_path)` string->string, imagine if you encapsulated that in `Page.new(path).new_path` with any other relevant methods. perhaps Page.new(path, content).to_html.
<havenn> banister`sleep: No prob! Yeah, the tab-completion is pretty nice with iex.
<ckrailo> any of yall rocking https://github.com/karmi/tire and ActiveRecord? i could use some help figuring out the best way to setup indexes. (i was hoping Tire would automagically discover the model attributes, but i must be doing something wrong.)
kpshek has joined #ruby
dougireton has joined #ruby
schaerli has quit [Remote host closed the connection]
<nate_h> shock_one, if I wanted to push the results of a thread into an array then what would I do for syntax? note line 6 http://pastie.org/5851205
<nate_h> shock_one, there must be a syntax for a code block, right?
<havenn> banister`sleep: I kinda like how they show the method arity like: method/2
yalue has quit [Read error: Connection reset by peer]
menace has left #ruby [#ruby]
<banister`sleep> havenn: yeah that's nice
<banister`sleep> havenn: how do they show * arity, -1 ?
mergoth has quit [Read error: Connection reset by peer]
wargasm has joined #ruby
dekroning has joined #ruby
<banister`sleep> danneu: so, by referentially transparent you just mean for the same input to the initializer the methods behave the same way? isn't that true for all objects that don't rely on global state?
mergoth has joined #ruby
<shock_one> nate_h: you can even push inside the thread
<banister`sleep> danneu: i mean it would have to be a very unusual object for which: MyObject.new(blah).meth1 behaves differently if you give it the same blah each time
chussenot has quit [Quit: chussenot]
<havenn> banister`sleep: hrm, dunno - the standard methods are all between /0 and /4. No splats in sight.
tenmilestereo has quit [Quit: Leaving]
spider-mario_ has quit [Remote host closed the connection]
notVert has quit [Remote host closed the connection]
<nate_h> shock_one, really? like arr.push(output) ?
caleb_io has quit [Quit: caleb_io]
<shock_one> nate_h: Yes. It can introduce race conditions but you don't push in that array from other places, do you?
<nate_h> no
<nate_h> i just want to store all the results of the threads
<banister`sleep> havenn: that is a cool idea though, we should steal it for p-dogg :P
<banister`sleep> (showing arity like that: /n )
DrShoggoth has quit [Ping timeout: 264 seconds]
<danneu> banister`sleep: in real world code, i see the equivalent of giving that Page class a #save option that does a File.write instead of handling that externally. Or I see a lot of code wehre Page.new(path) actually File.reads the path. Or how about classes that arbitrarily mutate their isntance variables. Cat.meth1 is something different over here than it is there. etc.
bradhe has quit [Remote host closed the connection]
notVert has joined #ruby
<danneu> i'm not saying this is some profound next-level shit
templaedhel has quit [Quit: Leaving...]
bradhe has joined #ruby
cheekee has joined #ruby
<shock_one> nate_h: Do you know the lines can be out of order?
dekroning has quit [Ping timeout: 240 seconds]
relixx has quit [Quit: relixx]
v0n has quit [Ping timeout: 240 seconds]
joofsh_ has joined #ruby
chussenot has joined #ruby
joofsh has quit [Ping timeout: 276 seconds]
tommyvyo has quit [Quit: http://twitter.com/tommyvyo]
<nate_h> shock_one, out of order is fine, its just returning a number
<shock_one> nate_h: And now there is no point to have arr. Your outer block maps threads and stores them in «ips»
zehrizzatti has joined #ruby
<nate_h> shock_one, oh
aedornm has quit [Remote host closed the connection]
<banister`sleep> danneu: so, Page.new(path).render #=> html is bad code for u?
<nate_h> so that's what the map function does.. got it.
bradhe has quit [Ping timeout: 255 seconds]
thams has joined #ruby
notVert has quit [Read error: Connection reset by peer]
<danneu> banister`sleep: no. keep in mind your initial question to me was asking me what i meant by "organizing my FP with OOP".
<banister`sleep> danneu: but your answer was referential transparency of objects :) So i'm trying to understand that
_nitti has joined #ruby
benlieb has joined #ruby
templaedhel has joined #ruby
kpshek has quit []
jackyalcine has joined #ruby
<danneu> banister`sleep: i would say Page.new(path).contents is undesirable compared to moving the File.read outside of the class though, yes.
[Neurotic] has joined #ruby
markalanevans has joined #ruby
<benlieb> I'm upgrading a project from 1.8.7 to 1.9.2 and it seems that a method definition of mine is causing an error? def test_create( users_with_access, creatable_rezource, access_proc=nil) => ArgumentError: wrong number of arguments (0 for 2).
<benlieb> What am I missing?
<banister`sleep> danneu: but, even if you do put the File.read elsewhere it doesnt change the fact that the 'Page' class is not referentially transparent, right?
zehrizzatti has quit [Quit: Leaving...]
<banister`sleep> danneu: nm, apart from gary bernhardt, any other links or ideas where i can learn about our FP core/imperative shell?
<banister`sleep> it sounds cool
<banister`sleep> your*
<danneu> banister`sleep: maybe i better word is 'deterministic'
notVert has joined #ruby
zph has joined #ruby
templaedhel has quit [Quit: Leaving...]
<danneu> what i'm really trying to express is dropping the dependency on the order in which events are executed in the program surrounding the object. Page.new(path).render certainly is not deterministic. it's annoying to test. its dependent on the filesystem.
stayarrr has quit [Quit: Linkinus - http://linkinus.com]
<benlieb> can anyone help me understand why the following method definition even with not content is providing the shown argument error when I switched from 1.8.7 to 1.9.2 https://gist.github.com/4628703
doug___ has joined #ruby
<doug___> whoa, i'm triple underbarred today
mercwithamouth has quit [Ping timeout: 246 seconds]
<shock_one> danneu: Are you saying that an object should rely only on it's own state and not some outer variables?
doug___ is now known as doug
<banister`sleep> danneu: u could pass in an IO object instead of a path, and then pass in a StringIO when u come to test it
DrShoggoth has joined #ruby
_nitti has quit [Remote host closed the connection]
<doug> got this line: grades, subjects, role = "", "", ""
<banister`sleep> danneu: but that's beside the point, i'm genuinely interested in learning more about FP core / imperative shell
<banister`sleep> danneu: any other links?
<doug> looks messy. there a way to avoid three ""'s? and ideally not use 3.times { "" } either...
<shock_one> Yes, FP sure has some issues with IO
<danneu> banister`sleep: if Page can represent a web page or a textfile, why would it do the IO itself? Page doesnt represent a location on the internet or the filesystem. it represents data in my example. so why poison it?
<danneu> Page.new(open(url)), Page.new(File.read(path))
<shock_one> banister`sleep: I know The Right Way, but it will be very hard. Do you want a link?
<reactormonk> shock_one, well, they have some nice solutions for it
<shock_one> Like monads?
<danneu> shock_one: no, i'm not expressing that an object can only act on its initialize arguments. i'm just suggesting that you can handle IO externally and make the object more robust.
Jamone has joined #ruby
AlSquirrel has joined #ruby
axl_ has quit [Read error: Connection timed out]
Kuifje has quit [Ping timeout: 255 seconds]
AlSquire has quit [Read error: Connection reset by peer]
<shock_one> danneu: I believe the FP approach is immutable objects.
<banister`sleep> shock_one: sure
<doug> i guess that's [""] * 3
adambeynon has joined #ruby
<danneu> shock_one: right. that's what i'm expressing. Page.new(contents).to_html does not mutate anything.
|Monie| has joined #ruby
bananastalktome has joined #ruby
jaequery has quit [Quit: Computer has gone to sleep.]
Morkel has quit [Quit: Morkel]
<shock_one> banister`sleep: There is also video lectures somewhere
doug has left #ruby [#ruby]
adeponte has quit [Ping timeout: 256 seconds]
Monie has quit [Ping timeout: 256 seconds]
zehrizzatti has joined #ruby
moos3 has quit [Quit: Computer has gone to sleep.]
<shock_one> I dropped out at exercise «fibonacci number in O(log n) time»
<danneu> banister`sleep: finally, i'm not saying that objects can't deal with mutation. the world around you is mutable. filesystems, databases. you can wrap your necessary mutation and imperative design in objects as well. but you can keep your domain objects clean.
zehrizzatti has quit [Client Quit]
Jamone has quit [Ping timeout: 264 seconds]
Monie has joined #ruby
adeponte has joined #ruby
wf2f has quit [Ping timeout: 246 seconds]
<shock_one> danneu: what is clean?
workmad3 has joined #ruby
zph has quit [Quit: Computer has gone to sleep.]
<danneu> shock_one: deterministic
xbayrockx has joined #ruby
xbayrockx is now known as wf2f
<shock_one> danneu: Always return the same output on the same input?
<danneu> shock_one: yeah.
<LiquidInsect> so by clean you mean "idempotent"
ryanjh has joined #ruby
<banister`sleep> danneu: it's not hard doing filesystem tests btw, just use the temp file api
jds has quit [Remote host closed the connection]
<shock_one> But output depends on the inner state of the object. And if you change the state, then output should be different
<banister`sleep> danneu: also there is a project called FakeFileSystem that is pretty far along i think
|Monie| has quit [Ping timeout: 264 seconds]
zehrizzatti has joined #ruby
failshell has quit [Remote host closed the connection]
<cheekee> Given an array [16], Is there a way to iteratively print 4 elements at a time, only using the "each" method?
blacktulip has joined #ruby
<danneu> cheekee: i think it's Array#each_slice
dekroning has joined #ruby
<danneu> banister`sleep: right, but the annoyance is a side-effect of my main point
phantasm66 has quit [Quit: *sleeeep….]
<cheekee> I know that works, but I was trying to do it using "each"
<shock_one> cheekee: why?
ryanjh has quit [Ping timeout: 245 seconds]
beiter has quit [Quit: beiter]
<cheekee> shock_one: that was the challenge
relixx has joined #ruby
blacktu__ has joined #ruby
<danneu> cheekee: you could write your own Iterator
maletor has quit [Quit: Computer has gone to sleep.]
blacktul_ has quit [Ping timeout: 264 seconds]
<shock_one> cheekee: you can store values in some array and when it's size is 4 print and clean it
<banister`sleep> danneu: but you'll still ahve to test the other object which does read from the file system :)
<banister`sleep> so you just delay the problem
<banister`sleep> but i dont know which design you had in mind
GattoLino has quit [Quit: See you soon...]
mneorr has joined #ruby
snearch has joined #ruby
blacktulip has quit [Ping timeout: 246 seconds]
<cheekee> shock_one: danneu : ok thanks! it can't be done basically
GattoLino has joined #ruby
<danneu> cheekee: what's an example of basic
GattoLino has quit [Client Quit]
dekroning has quit [Ping timeout: 276 seconds]
<danneu> people.each(4) { |group| ... } ?
angusiguess has joined #ruby
<shock_one> cheekee: the right way is to use each_slice.
<cheekee> danneu: ah! I did not know that.
<banister`sleep> cheekee: each_slice
<danneu> banister`sleep: I'd assert that you are never testing 'File.read'. you might be testing an object that determines the path, but else you are just testing Ruby's standard library.
<danneu> cheekee: you can't do .each(4). i was just wondering what you want. you can do .each_slice(4) though
<banister`sleep> danneu: that's an ugly API, esp if the primary use case is reading from files
<banister`sleep> which it will be
<banister`sleep> danneu: Page.new(File.read(path)).render
<banister`sleep> danneu: when 99% of the time Page is rendering files
<cheekee> I was successful with each.slice but frustrated using each
<banister`sleep> danneu: i think better approach is to have multiple constructors: Page.from_file(path).render and Page.from_string(str).render
<cheekee> I thought there may be a way
<shock_one> Then maybe you don't need class? Isn't render(File.read(paht)) better?
<danneu> no
DatumDrop has joined #ruby
Monie has quit [Quit: Quit]
<shock_one> Page.render(File.read(paht))
<danneu> banister`sleep: let's think about the system though. chances are you are getting a bunch of paths and looping through them or something.
Monie has joined #ruby
<danneu> banister`sleep: you would handle that in the imperative loop.
<danneu> banister`sleep: it's external from Page. Page represents contents.
<danneu> you can create a convenient API around Page + FileIO, but that doesn't poison our Page class.
RubNoob has quit [Quit: Textual IRC Client: http://www.textualapp.com/]
blacktu__ has quit [Ping timeout: 276 seconds]
<Quadlex> Ugh
TheFuzzball has quit [Quit: Computer has gone to sleep.]
maletor has joined #ruby
<Quadlex> I'm trying to figure out if California allows me to claim back Duty if I leave the same day
<Quadlex> And their state website is very pretty and almost entirely useless
<tylersmith> wtf is Duty?
<banister`sleep> danneu: sounds like way overengineering, if pages are 99% of teh time rendered from content in files then u should have a from_file class method IMO
<danneu> shock_one: in CA you get a free Call of Duty game whenever you quit
<danneu> er
<danneu> not to shock_one
<shock_one> tylersmith: I'm sure some ruby related stuff. Why else would he write to #ruby channel?
<banister`sleep> danneu: passing in a File.read() 99% of teh time you use it just looks silly
benlieb has quit [Quit: benlieb]
<danneu> banister`sleep: i was talking about a test.
benlieb has joined #ruby
benlieb has quit [Client Quit]
denken has joined #ruby
DrShoggoth has quit [Ping timeout: 264 seconds]
<banister`sleep> danneu: so you always let testability drive your APIs? i agree most of the time testable code is also good code, but if you're forced to make your API bloated and weird just to make it testable, then you're taking it so far. Just grin and bear it and write the tests anyway, even if it's slightly more difficult
dmiller2 has joined #ruby
Xeago_ has joined #ruby
Xeago has quit [Killed (adams.freenode.net (Nickname regained by services))]
Xeago_ is now known as Xeago
wargasm has left #ruby [#ruby]
invisime has quit [Quit: Leaving.]
<danneu> well, what's your point? why not just use global variables, too?
samuel02 has quit [Remote host closed the connection]
<shock_one> So you say that Page.new(path).render is worse then Page.new(File.read(path)).render?
<danneu> why even do OOP?
<danneu> just have a "include 'functions.php'"
samuel02 has joined #ruby
<banister`sleep> danneu: can i see your github page? :)
bean__ has quit [Quit: Computer has gone to sleep.]
<danneu> You're hung up on the API of an object that exists in a fictional system. we haven't gotten that far
DatumDrop has quit [Ping timeout: 276 seconds]
mmitchell has quit [Ping timeout: 252 seconds]
cheekee has quit [Quit: Lost terminal]
elux has quit [Quit: Bye!]
jerius has quit [Ping timeout: 255 seconds]
<shock_one> danneu: So you're saying that Page.new(File.read(path)).render is better then Page.new(path).render?
<Gate> -_^
<breakingthings> I think he was saying Page.from_file(path).render would be better.
<danneu> shock_one: we can't really determine that without expressing how Page is actually used in our system. let's say that Page exists in a system that compiles your static blog.
jrist is now known as jrist-afk
* breakingthings backs out of the conversation again
<Gate> I suppose one could make that argument if you were to take the law of demeter to lunacy
__BigO__ has quit [Remote host closed the connection]
alanp has quit [Read error: Operation timed out]
samuel02 has quit [Ping timeout: 256 seconds]
alanp has joined #ruby
<danneu> if your use of page is a rake task that does paths.each {|path| content = File.read(path); page=Page.new(path,content); FIle.write(page.new_path, page.compiled) }, then you've done nothing to improve the API of class.
<danneu> except dillute its responsibility
dv_ has quit [Ping timeout: 245 seconds]
dustint has quit [Quit: Leaving]
<danneu> this isn't Law of Demeter taken to lunacy. it's seperating responsibilities, immutability from mutability.
<banister`sleep> danneu: i like the idea of what your'e saying but im not convinced by your speciic examples, do you have any links that discuss this FP core / imperative shell more?
<danneu> no
<danneu> not off hand. i would like to find some as well, though.
apok has quit [Quit: apok]
nat26101 has quit [Quit: Leaving.]
nat2610 has joined #ruby
chrismhough has quit [Quit: chrismhough]
joofsh_ has quit [Remote host closed the connection]
<Quadlex> shock_one: I was making a guess that there are plenty of SF residents in here:P
nari has joined #ruby
relixx has quit [Quit: relixx]
blacktulip has joined #ruby
jtharris has quit [Quit: WeeChat 0.3.9.2]
iamjarvo has quit [Quit: Leaving.]
swex has quit [Remote host closed the connection]
<shock_one> Aren't you trying to explain http://en.wikipedia.org/wiki/Single_responsibility_principle ?
mneorr has quit [Remote host closed the connection]
<shock_one> I still don't get what is functional OOP
dv_ has joined #ruby
manvstech has quit [Quit: Leaving]
havenn has quit [Remote host closed the connection]
dekroning has joined #ruby
relixx has joined #ruby
<danneu> shock_one: banister`sleep asked me what i meant by 'organizing my fp with oop'.
banister`sleep is now known as banisterfiend
ph^ has joined #ruby
<danneu> else, i'd be challenged to organize my system, i think.
<kenneth> functional oop is amazing
<Gate> danneu: I was only commenting on the trite oversimplified example
<kenneth> it;s functional programming with objects
<kenneth> eg. ruby or scala
<shock_one> kenneth: or object-oriented with functions?
solidoodlesuppor has quit [Quit: ChatZilla 0.9.89 [Firefox 18.0.1/20130116073211]]
joofsh has joined #ruby
noxoc has quit [Quit: noxoc]
<kenneth> well
emergion has joined #ruby
<kenneth> you'd define it by the ability to do things like map / reduce, and having full support for lambdas
<kenneth> also, speaking of functional ruby; i just used a y-combinator in production ruby code
<kenneth> aka as: i'm insane
<shock_one> kenneth: It was a joke. The Scala way is «trhy to use FP when you can but we all know that real world is more mutable then we want»
<danneu> Gate: ah, yeah. for sure. in our little script, Page does little for us than put "Redcarpet.new(content).to_html". i'll agree with ya there!
jrhorn424 has quit [Quit: jrhorn424]
<kenneth> y = lambda do |f|
<kenneth> x = lambda {|z| lambda {|*a| f.call(z.call(z)).call(*a)}}
adambeynon has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
<kenneth> x.call(x)
<kenneth> end
dv_ has quit [Ping timeout: 252 seconds]
<banisterfiend> kenneth: y combinator looks a lot cuter with -> and .() :)
soulcake has joined #ruby
<shock_one> kenneth: write-only
huttan has joined #ruby
bradhe has joined #ruby
dougireton has quit [Quit: Leaving.]
cjk101010_ is now known as cjk101010
EPIK has joined #ruby
d2dchat has quit [Remote host closed the connection]
huttan has quit [Quit: leaving]
<shock_one> kenneth: What does it do in your production code?
philcrissman has quit [Remote host closed the connection]
dekroning has quit [Ping timeout: 255 seconds]
stopbit has quit [Quit: Leaving]
mjolk has quit [Ping timeout: 245 seconds]
mneorr has joined #ruby
kevinchu has quit [Quit: leaving]
dv_ has joined #ruby
nateberkopec has quit [Quit: Linkinus - http://linkinus.com]
huttan has joined #ruby
auser has left #ruby [#ruby]
mneorr has quit [Remote host closed the connection]
sepp2k1 has quit [Read error: Connection reset by peer]
anarchist has joined #ruby
tommyvyo has joined #ruby
<anarchist> how do i escape a ruby # comment?
blacktulip has quit [Remote host closed the connection]
<shock_one> anarchist: If it isn't a comment then it must be a syntax. What do you want to do?
dougireton has joined #ruby
<anarchist> trying to use backticks to run a command that involves # within it: variable = `somestuffforthecommandline argument#withhashtag`
bradhe has quit [Remote host closed the connection]
jeffreybaird_ has quit [Quit: jeffreybaird_]
huttan has quit [Client Quit]
sepp2k has joined #ruby
bean__ has joined #ruby
<kenneth> shock_one: lets me make a recursive lambda without binding it to a variable
<kenneth> w
<shock_one> Try %x or %X{}
chrismhough has joined #ruby
<kenneth> which i'm using in a random function i'm writing
chussenot_ has joined #ruby
SCommette has quit [Quit: SCommette]
jackyalcine has quit [Ping timeout: 252 seconds]
carloslopes has quit [Remote host closed the connection]
v0n has joined #ruby
<banisterfiend> kenneth: do you ever use the cocoa 'delegate' idiom in your ruby code?
jjbohn has quit [Quit: Leaving...]
tommyvyo_ has joined #ruby
sepp2k has quit [Read error: Connection reset by peer]
forced_request has joined #ruby
Xeago has quit [Remote host closed the connection]
segv- has quit [Quit: segv-]
huttan has joined #ruby
headius has quit [Quit: headius]
chussenot has quit [Ping timeout: 246 seconds]
chussenot_ is now known as chussenot
zehrizzatti has quit [Quit: Linkinus - http://linkinus.com]
bananastalktome has quit [Quit: bananastalktome]
bluOxigen has quit [Ping timeout: 256 seconds]
huttan has quit [Client Quit]
sepp2k has joined #ruby
frem has quit [Quit: Computer has gone to sleep.]
luckyruby has joined #ruby
alex__c2022 has quit [Quit: alex__c2022]
jlast_ has joined #ruby
griffindy has joined #ruby
huttan has joined #ruby
jlast_ has quit [Remote host closed the connection]
<anarchist> shock_one: are little x and big X different there? the hash tag still looks like it's commenting in vim
joofsh_ has joined #ruby
huttan has quit [Client Quit]
<anarchist> oh wait a second it wasn't frozen this time, it worked!
<anarchist> awesome
shock_one has quit [Ping timeout: 240 seconds]
mmitchell has joined #ruby
mercwithamouth has joined #ruby
joofsh has quit [Ping timeout: 248 seconds]
huttan has joined #ruby
colonolGron has joined #ruby
jlast has quit [Ping timeout: 264 seconds]
syamajala has joined #ruby
main has quit [Ping timeout: 240 seconds]
pcarrier has joined #ruby
nat2610 has quit [Quit: Leaving.]
Banistergalaxy has quit [Ping timeout: 256 seconds]
nat2610 has joined #ruby
danneu has quit [Quit: WeeChat 0.3.8]
tommyvyo_ has quit [Quit: http://thomasvendetta.com]
chridal has quit [Ping timeout: 276 seconds]
jfl0wers has joined #ruby
tommyvyo_ has joined #ruby
punkrawkR^Home has quit [Read error: Connection reset by peer]
hybris has joined #ruby
zph has joined #ruby
hippyphysicist has joined #ruby
andrea- has joined #ruby
hippyphysicist has quit [Read error: Connection reset by peer]
sailias has joined #ruby
xyzodiac has joined #ruby
dekroning has joined #ruby
apok has joined #ruby
<nate_h> how come my thread variable isn't accessible http://pastie.org/5851971
will has joined #ruby
andrea- has left #ruby [#ruby]
<nate_h> if I comment out line 8, then i get the expected result of 120\n120\n120\n
will is now known as Guest15215
jimeh has quit [Quit: Computer has gone to sleep.]
<nate_h> but if I leave that ssh part in there it overwrites it somehow and its just blank.
sailias has quit [Client Quit]
Guest15215 has quit [Read error: Connection reset by peer]
baphled has quit [Ping timeout: 245 seconds]
will_ has joined #ruby
aaronmcadam has quit [Ping timeout: 256 seconds]
syamajala has quit [Quit: leaving]
will_ has quit [Read error: Connection reset by peer]
huttan has quit [Quit: leaving]
generalissimo has quit [Remote host closed the connection]
BrianJ has joined #ruby
dekroning has quit [Ping timeout: 245 seconds]
cableray has joined #ruby
jaequery has joined #ruby
huttan has joined #ruby
huttan has quit [Client Quit]
Bosox20051 has joined #ruby
Banistergalaxy has joined #ruby
templaedhel has joined #ruby
huttan has joined #ruby
<waxjar> nate_h, is the command you're running a long running thing? exec! blocks
templaedhel has quit [Client Quit]
<nate_h> nope
<nate_h> very small
<nate_h> it just echo's
huttan has quit [Client Quit]
DatumDrop has joined #ruby
theRoUS has quit [Ping timeout: 245 seconds]
Playground is now known as lolcathost
Kingy has quit [Ping timeout: 244 seconds]
pu22l3r has joined #ruby
<waxjar> idk a lot about threading, but shouldn't you call #join before you start working with a thread?
<nate_h> yeah i'm just learning too, so maybe that's the problem
snearch has quit [Quit: Verlassend]
<Spooner_> nate_h you probably need ips.each &:join at line 12
jduan1981 has quit [Quit: jduan1981]
jimeh has joined #ruby
<nate_h> Spooner_, trying it now :)
eykosioux has quit [Quit: eykosioux]
poikon has quit [Remote host closed the connection]
<workmad3> waxjar: well, you don't need to call .join before starting work in a thread