apeiros changed the topic of #ruby to: Ruby 2.1.3; 2.0.0-p576; 1.9.3-p545: http://ruby-lang.org || Paste >3 lines of text on http://gist.github.com || this channel is logged at http://irclog.whitequark.org, other public logging is prohibited
duncannz has quit [Remote host closed the connection]
duncannz has joined #ruby
JeffBonds has quit [Quit: JeffBonds]
FifthWall is now known as CoFifthWall
<CrazyM4n> What´s a good SDL-like library that works well on windows?
<CrazyM4n> Like, unless there are SDL bindings that work well
<Bish> almost seems like it catches the exception of another socket.
<zenspider> CrazyM4n: what do you want to do?
endash has joined #ruby
CoFifthWall is now known as coafifthwall
wjimenez_ has quit [Remote host closed the connection]
coafifthwall is now known as FifthWall
<CrazyM4n> zenspider: Asking for a friend, he wants to make a simple game
<CrazyM4n> Like, enough to get input or draw stuff, doesn´t have to be production level
<zenspider> gosu
<CrazyM4n> Thanks
<CrazyM4n> Seems to be what he wants
<zenspider> it's pretty good
bricker`1ork is now known as bricker`work
hooper1 has quit [Quit: Leaving.]
mastr_bennett[x] has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
havenwood has joined #ruby
nettoweb has joined #ruby
tectonic has joined #ruby
mastr_bennett[x] has quit [Client Quit]
phrozen77 has quit [Ping timeout: 260 seconds]
SpaceKookie has quit [Ping timeout: 260 seconds]
niklasb has quit [Ping timeout: 260 seconds]
cpruitt has quit [Quit: cpruitt]
ohcibi_ has joined #ruby
heftig has quit [Ping timeout: 260 seconds]
ohcibi has quit [Read error: Connection reset by peer]
jottr_ has quit [Ping timeout: 272 seconds]
Spami has joined #ruby
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Takle has joined #ruby
JavaTheHut has joined #ruby
heftig has joined #ruby
fabrice31 has joined #ruby
JavaTheHut has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
phrozen77 has joined #ruby
SpaceKookie has joined #ruby
iamjarvo has joined #ruby
<iamjarvo> on ruby-doc on the left http://www.ruby-doc.org/core-2.1.3/String.html it says string's parent is object
<iamjarvo> what does parent mean there?
<iamjarvo> ancestor?
Advocation has joined #ruby
JeffBonds has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
BadQuanta has quit [Ping timeout: 272 seconds]
<iamjarvo> ahh parent is its superclass
entrenador has joined #ruby
Advocation has quit [Ping timeout: 244 seconds]
TristanBomb has joined #ruby
mikepack has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
thumpba has quit [Remote host closed the connection]
n_blownapart has quit []
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<TristanBomb> Hey, I was trying to install Gosu, but gem is telling me that it can't find JRuby
lolmaus has quit [Ping timeout: 240 seconds]
yfeldblum has joined #ruby
<TristanBomb> Despite the fact that the Gosu website states it doesn't even work with JRuby
shinobi_one has joined #ruby
ccooke has quit [Ping timeout: 240 seconds]
bmurt has joined #ruby
<havenwood> tristanbomb: What do you get for?: ruby -v
<havenwood> tristanbomb: please mention if you're crossposting
<TristanBomb> Pardon?
<TristanBomb> I tried #ruby-lang first but a friend told me #ruby is far more popular
afhammad has joined #ruby
<TristanBomb> Sorry, not very acquainted with IRC etiquette.
cndiv has quit [Ping timeout: 260 seconds]
<havenwood> tristanbomb: Yeah, it is. I just mean if you ask in more than on channel say in each where all you're asking.
<havenwood> np
bmurt has quit [Client Quit]
afhammad has quit [Client Quit]
<havenwood> tristanbomb: But cross-posting aside. :P What do you get for your Ruby version?: ruby --version
<TristanBomb> Anyway, I just used the gem command in Command Prompt (running Windows 8) and it gave me the following output: http://prntscr.com/4rxik4
andrewcarter has joined #ruby
<zenspider> iamjarvo: yes, superclass
bogeyd6 has joined #ruby
<TristanBomb> havenwood: Ruby 2.0.0p481
zz_karupa is now known as karupa
shinobi_one has quit [Ping timeout: 260 seconds]
bahar has joined #ruby
thomasxie has left #ruby [#ruby]
klaut has quit [Remote host closed the connection]
<havenwood> tristanbomb: so it seems your `ruby` is cruby but your `gem` is jruby
<havenwood> tristanbomb: check?: gem env gemdir
<havenwood> (i don't even know if Win has which/whence/command -v/whereis or whatever)
<zenspider> tristanbomb: a screen grab? really?
BTRE has quit [Ping timeout: 245 seconds]
nettoweb has quit [Ping timeout: 246 seconds]
<TristanBomb> havenwood: Ah, so I am. Thanks
kristoff_ has joined #ruby
<TristanBomb> zenspider: well... copypasting has formating issues and... well... I've got no excuse, really
mastr_bennett[x] has joined #ruby
oo_ has joined #ruby
<havenwood> tristanbomb: just next time please take a video shot of your monitor and upload it so heads explode :)
coderdad has quit [Remote host closed the connection]
<TristanBomb> havenwood: Will do
tjr9898 has joined #ruby
<havenwood> tristanbomb: jruby really is nice on win
<havenwood> tristanbomb: maybe even just go that way
kristofferR has quit [Ping timeout: 260 seconds]
<havenwood> but do pick!
fgo has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 272 seconds]
<TristanBomb> havenwood: I guess, but Gosu isn't compatible with JRuby. Obviously there are alternatives for JRuby, but from what I've heard (which is very little) Gosu is probably my best bet
<havenwood> tristanbomb: maybe jgosu? not sure it's really supported.
<havenwood> tristanbomb: yeah, you mentioned that earlier, i forgot :O
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<xcyclist> I am trying to reference a class in minitest that is ../node1/node2/node3 from the test directory.
<TristanBomb> havenwood: Just looked at JRuby. The site's homepage is one sentence on Google code. Probably not a good idea.
oo_ has quit [Remote host closed the connection]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<xcyclist> My require statement for the file ../node1/node2/node3/file.rb works, but the class in it fails when I try to go MyClass.new.
<havenwood> s/jruby/jgosu
<havenwood> yeah
<havenwood> tristanbomb: i've not done dev on win so i've not used it but i think pik is the Ruby switcher
<havenwood> tristanbomb: or ditto, but maybe chocolatey could handle it: https://chocolatey.org/
spyderman4g63 has quit [Remote host closed the connection]
moritzs has quit [Remote host closed the connection]
tjr9898 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
tjr9898 has joined #ruby
<havenwood> anyone ever used pik?
<xcyclist> So, if I have a ruby require statement that works, but I cannot see something that is in the successfully required file, what is the category of thing I look into in order to access said thing?
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
<havenwood> xcyclist: please say if you're posting questions in multiple channels :)
Kricir has joined #ruby
hamakn has joined #ruby
<xcyclist> I am. Is that bad?
<havenwood> xcyclist: require returns?: true
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
<havenwood> xcyclist: it's fine but courtesy to say so those trying to answer can follow other answers
spyderman4g63 has quit [Ping timeout: 260 seconds]
<havenwood> say so so those**
nettoweb has joined #ruby
<xcyclist> Yes. Well, I just need one answer. I can repost it on the other if you like.
nettoweb has quit [Max SendQ exceeded]
oo_ has joined #ruby
<xcyclist> Anyway, require returns?
<xcyclist> I just don't get an error. Is there a method returns?
<havenwood> e.g.: require 'rubygems' #=> false
nettoweb has joined #ruby
<havenwood> require 'slop' #=> true
fgo has joined #ruby
dazeddev has quit [Ping timeout: 260 seconds]
<havenwood> xcyclist: If no error and not already required, i'd assume it returned: true
BTRE has joined #ruby
<xcyclist> Yes.
jelera has joined #ruby
<havenwood> Can you paste a link to the file your requiring?
<xcyclist> So, if I cannot access something from that require, is there some step I should do to expose it?
gsd has joined #ruby
kristofferR has joined #ruby
<xcyclist> Presumably things are public unless otherwise specified.
iliketurtles has quit [Quit: zzzzz…..]
RegulationD has joined #ruby
<havenwood> There must be some other problem.
<havenwood> Doesn't sound like a require issue.
<xcyclist> No. I can concoct something like it, but I fear I am dealing with some environment factor, or artifact of minitest.
oo_ has quit [Remote host closed the connection]
cephalostrum_ has quit [Ping timeout: 272 seconds]
patrick99e99 has quit [Ping timeout: 258 seconds]
<havenwood> xcyclist: Maybe $LOAD_PATH isn't as you expect.
<xcyclist> Is there something I may need to do in minitest?
<havenwood> xcyclist: Does it work with require_relative.
Kricir has quit [Ping timeout: 272 seconds]
kristoff_ has quit [Ping timeout: 246 seconds]
emocakes has joined #ruby
<xcyclist> What does require_relative do?
<havenwood> xcyclist: Look at the $LOAD_PATH Array and require something relative to it or amend it or use require_relative.
<havenwood> xcyclist: It requires relative to the __FILE__.
oo_ has joined #ruby
GriffinHeart has joined #ruby
<xcyclist> Ok. I don't think that is necessary. Require is working.
<havenwood> err, that's not a good way to say it
<xcyclist> I think it must be something of the environment allowing exposure.
nhhagen has joined #ruby
cephalostrum has joined #ruby
patrick99e99 has joined #ruby
<xcyclist> I get a NameError: uninitialized constant
<havenwood> xcyclist: Hard to help without seeing the required file.
<xcyclist> Ok. It is hard to show as I don't own it.
<havenwood> We are at am impasse
<xcyclist> And concocting an example may leave out the problem.
Vivekananda has quit [Ping timeout: 240 seconds]
<xcyclist> Yes. Not your fault.
<havenwood> maybe it's all we have
bmurt has joined #ruby
mikepack_ has joined #ruby
<lewix> aha
<xcyclist> I will try from another angle. But if you could tell me a category to look at. I am having a hard time looking up the problem.
thejamespinto has quit [Read error: Connection reset by peer]
<zenspider> go read the source
lolmaus has joined #ruby
<havenwood> I don't have enough to even intuit a guess.
<lewix> do you guys say code samples or code examples out of curiousity
thejamespinto has joined #ruby
mikepack has quit [Ping timeout: 245 seconds]
<shevy> example code!
<lewix> I see both , it's kind of funny
<havenwood> Lewix: code spike if i'm ashamed
<havenwood> so code spike.
nhhagen has quit [Ping timeout: 260 seconds]
<havenwood> xcyclist: is it namespaced? dunno.
<xcyclist> Yes, it has two nested modules and above the class, and then I'm dealing with the minitest environment.
endash has quit [Quit: endash]
GluonQuark has quit [Quit: Leaving]
thumpba has joined #ruby
<havenwood> xcyclist: i vote hide all identities and paste a gist :P
Channel6 has joined #ruby
<havenwood> mayyybe it'll reveal the issue >.>
govg has joined #ruby
bricker`work has quit [Ping timeout: 260 seconds]
<xcyclist> Ok. Thank you. I will do that if I don't get it from looking at $LOADED_FEATURES.
<havenwood> xcyclist: if it returned true, you'll see it there
<havenwood> or false
djbkd has quit [Quit: My people need me...]
<havenwood> but sure, good to sanity check
entrenador has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jcdesimp has quit [Remote host closed the connection]
<xcyclist> LOADED_FEATURES is 257 lines long.
krisquigley has quit [Remote host closed the connection]
thumpba has quit [Ping timeout: 260 seconds]
jcdesimp has joined #ruby
jcdesimp has quit [Remote host closed the connection]
skammer4 has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
krisquigley has joined #ruby
jcdesimp has joined #ruby
<havenwood> that's not suprizing
lkba has quit [Ping timeout: 260 seconds]
<havenwood> xcyclist: $LOADED_FEATURES.grep /sekret_gem/
tectonic has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bricker`work has joined #ruby
<benzrf> serket gem
shock_one has joined #ruby
emmesswhy has joined #ruby
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
patrick99e99 has quit [Ping timeout: 245 seconds]
skammer4 has quit [Ping timeout: 246 seconds]
<xcyclist> So, as I thought, my file is getting loaded. But, I cannot see a public class in it.
krisquigley has quit [Ping timeout: 260 seconds]
TristanBomb has quit [Ping timeout: 246 seconds]
ghostmoth has quit [Quit: ghostmoth]
Hobogrammer has quit [Ping timeout: 245 seconds]
badhatter has quit [Read error: Connection reset by peer]
shock_one has quit [Ping timeout: 240 seconds]
havenwood has quit []
arescorpio has joined #ruby
mjwhitta has joined #ruby
magic_ is now known as magic
magic has quit [Changing host]
magic has joined #ruby
mjwhitta has quit [Client Quit]
skolman_ has quit [Remote host closed the connection]
codeurge has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
skolman_ has joined #ruby
troyready has quit [Ping timeout: 260 seconds]
codeurge has joined #ruby
GriffinHeart has quit [Remote host closed the connection]
tkuchiki has joined #ruby
justinmburrous has joined #ruby
skolman_ has quit [Ping timeout: 258 seconds]
justinmburrous has quit [Remote host closed the connection]
justinmburrous has joined #ruby
dawkirst has joined #ruby
agjacome has quit [Quit: leaving]
lkba has joined #ruby
bricker`work has quit [Ping timeout: 245 seconds]
awc737 has joined #ruby
butblack has quit [Quit: butblack]
freezey has joined #ruby
msmith_ has joined #ruby
wallerdev has quit [Quit: wallerdev]
jgrevich has joined #ruby
dawkirst has quit [Ping timeout: 272 seconds]
zorak8 has quit [Ping timeout: 272 seconds]
Hobogrammer has joined #ruby
bthesorceror has quit [Quit: bthesorceror]
zorak8 has joined #ruby
shinobi_one has joined #ruby
paradisaeidae has joined #ruby
wallerdev has joined #ruby
iliketurtles has joined #ruby
threesixes has joined #ruby
dx7_ has joined #ruby
Sawbones has joined #ruby
paradisaeidae has quit [Remote host closed the connection]
shinobi_one has quit [Ping timeout: 272 seconds]
freerobby has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
dx7_ has quit [Ping timeout: 245 seconds]
<shevy> we need more ruby
xcv has quit [Remote host closed the connection]
xcv has joined #ruby
nisstyre has quit [Quit: WeeChat 1.0]
ahuman has quit [Quit: No Ping reply in 180 seconds.]
cherwin has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rubyonrailed has quit []
wallerdev has quit [Quit: wallerdev]
ahuman has joined #ruby
peterhu has quit [Ping timeout: 245 seconds]
Gate has quit [Ping timeout: 272 seconds]
codeFiend has quit [Quit: codeFiend]
peterhu has joined #ruby
Gate has joined #ruby
Gate has joined #ruby
Gate has quit [Changing host]
xcv has quit [Ping timeout: 240 seconds]
justinmcp has quit [Remote host closed the connection]
justinmcp has joined #ruby
tokik has joined #ruby
Cache_Money has joined #ruby
badhatter has joined #ruby
badhatter has joined #ruby
badhatter has quit [Changing host]
larsam has joined #ruby
Cache_Money has quit [Client Quit]
sumark has quit [Ping timeout: 260 seconds]
sumark has joined #ruby
UKn0Meh has quit [Quit: Gone to burn stuff.]
sevenseacat has joined #ruby
msmith_ has quit [Remote host closed the connection]
sumark has quit [Ping timeout: 272 seconds]
boombadaroomba has joined #ruby
emocakes has quit []
msmith_ has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
maestrojed has quit [Quit: Computer has gone to sleep.]
vxqq177 has quit [Quit: leaving]
sumark has joined #ruby
thumpba has joined #ruby
badhatter has quit [Quit: Leaving]
boombadaroomba has quit [Ping timeout: 260 seconds]
hmsimha has quit [Ping timeout: 250 seconds]
kristoff_ has joined #ruby
slyslick has joined #ruby
awc737 has joined #ruby
nettoweb has quit [Ping timeout: 272 seconds]
awc737 has quit [Client Quit]
bthesorceror has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
kristofferR has quit [Ping timeout: 244 seconds]
nettoweb has joined #ruby
kaspergrubbe has quit [Remote host closed the connection]
bcavileer_ has quit [Read error: Connection reset by peer]
bcavileer_ has joined #ruby
skammer4 has joined #ruby
fredsir has quit [Ping timeout: 244 seconds]
mmx has joined #ruby
kaspergrubbe has joined #ruby
kristoff_ is now known as kristofferR
wallerdev has joined #ruby
mjwhitta has joined #ruby
bricker`work has joined #ruby
mmx has quit [Client Quit]
mmx has joined #ruby
fredsir has joined #ruby
skammer4 has quit [Ping timeout: 240 seconds]
mjwhitta has quit [Client Quit]
fabrice31 has joined #ruby
RegulationD has quit [Quit: RegulationD]
yetanotherdave has quit [Ping timeout: 250 seconds]
tyll_ has quit [Ping timeout: 240 seconds]
kaspergrubbe has quit [Ping timeout: 272 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
tyll has joined #ruby
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
coderdad has joined #ruby
Sawbones has quit [Remote host closed the connection]
RegulationD has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
mmx has quit [Quit: leaving]
fabrice31 has quit [Ping timeout: 272 seconds]
Frogging101-chan has joined #ruby
krisquigley has joined #ruby
Frogging101-chan has left #ruby [#ruby]
fun has joined #ruby
robbyoconnor has joined #ruby
<fun> hi folks I used rake secret and pasted value to the secrets.yml however when I start rails server it says I havent set it
robbyoconnor is now known as Guest6749
preyalone has quit [Quit: Connection closed for inactivity]
<fun> whats the correct syntaks for the product enviroment secret key?
jasooon has joined #ruby
<fun> I used secret_key_base: <%= ENV["76586f5073396f58bd6515026a15ca1c9638a47c9de3c1c4382f3cf3d43f64386d6f76cf"] %>
<fun> i also trie secret_key_base: 76586f50733a10c0ace66509f413ba1915c20d34ba78e57a733f2d2734e76263c4d96f58bd6515026a15ca1c9638a47c9de3c1c4382f3cf3d43f64386d6f76cf
<fun> tried
<sevenseacat> the latter is fine
<sevenseacat> the former is wrong, unless your environment key is actually that (which it isnt)
justinmburrous has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
mjwhitta has joined #ruby
jasooon has quit [Client Quit]
jasooon has joined #ruby
krisquigley has quit [Ping timeout: 244 seconds]
mjwhitta has quit [Client Quit]
justinmb_ has joined #ruby
<fun> sevenseacat: i am playing with spree former comes from spree file
<sevenseacat> no it doesnt
* sevenseacat is also working on a spree app
mocfive has quit [Remote host closed the connection]
<fun> hmm where then it came from?
<fun> i certainly added 0 of it
<fun> sevenseacat: what do you use in your secrets file?
<sevenseacat> a spree app just uses the default secrets.yml, which specifies ENV['SECRET_KEY_BASE']
jasooon has quit [Client Quit]
<sevenseacat> for production
DadoCe has joined #ruby
Sawbones has joined #ruby
iliketurtles has quit [Quit: zzzzz…..]
oo_ has quit [Remote host closed the connection]
jasooon has joined #ruby
Xiti has quit [Quit: Leaving]
<fun> sevenseacat: yes so it was my typo
<fun> :)
<sevenseacat> indeed, like i said.
<fun> but no key missing error thats good
<fun> correct :D
spicerack has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has joined #ruby
goodenough has joined #ruby
<fun> sevenseacat: in spree gem file I did not specify min pg version maybe thats also mistake?
<sevenseacat> thats fine.
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fun> I get error in log ERROR -- : PG::UndefinedTable: ERROR: relation "spree_preferences" does not exist
<TTilus> oh dear, sudo gem install bdb throws "/usr/include/ruby-1.9.1/ruby/ruby.h:909:30: error: format not a string literal and no format arguments [-Werror=format-security]"
<TTilus> googling gives only this https://www.ruby-forum.com/topic/199054
<sevenseacat> how did you set up your database?
mjwhitta has joined #ruby
<TTilus> which isn't particularily helpful
Asher has joined #ruby
<TTilus> (crossposted from #ruby-lang)
Guest6749 has quit [Max SendQ exceeded]
mjwhitta has quit [Client Quit]
<fun> sevenseacat: ok I see since I am new to postgress I most likely forgot to make user db owner
aspires has quit []
jobewan has joined #ruby
<fun> that could be most likely case
oo_ has joined #ruby
Guest6749 has joined #ruby
mjwhitta has joined #ruby
Jason has joined #ruby
postmodern has quit [Quit: Leaving]
<Jason> how can I do a case / switch for a string.include ?
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nisstyre has joined #ruby
mjwhitta has quit [Client Quit]
Asher2 has quit [Ping timeout: 260 seconds]
<fun> sevenseacat: hmm nope I am db owner
<fun> just checked
gsd has joined #ruby
<sevenseacat> so, how did you set up your database?
<sevenseacat> seems like you didnt run the spree migrations
flowerhack has joined #ruby
shinobi_one has joined #ruby
nisstyre has quit [Changing host]
nisstyre has joined #ruby
radic has quit [Disconnected by services]
<fun> sevenseacat: gem install spree rails _4.1.6_ new my_store
radic_ has joined #ruby
<sevenseacat> so... you didnt set up your database?
<fun> i was thinking that config will populate db with sample data since I typed yes to that
buto_ has joined #ruby
bthesorceror has quit [Quit: bthesorceror]
<fun> sevenseacat: ty I read it it does not talk about db
<shevy> is DHTML still a popular term?
emocakes has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
bthesorceror has joined #ruby
<sevenseacat> so what did you type yes to? those commands you gave me will not do that
<fun> I have done stuff in that howto
chrishough has joined #ruby
<sevenseacat> shevy: no.
<fun> shevy: no idea :)
<shevy> hmmm
freerobby has quit [Quit: Leaving.]
<shevy> I guess most of that functionality is part of things like jquery
`Dath has joined #ruby
chrisja has quit [Quit: leaving]
shinobi_one has quit [Ping timeout: 245 seconds]
<shevy> sevenseacat are you using rails?
therue has joined #ruby
<sevenseacat> yes.
zorak8 has quit [Ping timeout: 246 seconds]
fswitalski has joined #ruby
fswitalski has left #ruby [#ruby]
<fun> sevenseacat: any idea what I have done wrong?
<sevenseacat> fun: without knowing what you've done, no.
<fun> gem install rails -v 4.1.6 gem install spree rails _4.1.6_ new my_store
ner0x has joined #ruby
<fun> I used them
<fun> and yes changed gem file to add pg
<sevenseacat> great, now install spree into your rails app like in the getting started tutorial.
jasooon has quit [Ping timeout: 272 seconds]
<fun> you mean gem install spree_cmd ?
<fun> i got it
<sevenseacat> yes, and `spree install --auto-accept`
geggam has quit [Ping timeout: 250 seconds]
<sevenseacat> i thought you said you'd followed that guide
Guest6749 has quit [Max SendQ exceeded]
<fun> i DID
<fun> :))
<fun> rails _4.1.2_ new mystore
melik has quit [Quit: Computer has gone to sleep.]
Guest6749 has joined #ruby
<sevenseacat> great, now you know what to next
<sevenseacat> *what to do next
<pontiki> is it step 3?
<sevenseacat> we're not that far yet
ner0x has quit [Client Quit]
c107 has quit [Remote host closed the connection]
<fun> I have done all those steps
<fun> 100%
ner0x has joined #ruby
<sevenseacat> okay, please gist the output of `spree install --auto-accept`
<sevenseacat> !gist
<helpa> http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
charliesome has joined #ruby
pipework has quit [Ping timeout: 260 seconds]
badhatter has joined #ruby
RegulationD has quit [Quit: RegulationD]
pagios has quit [Ping timeout: 272 seconds]
<sevenseacat> awesome, now start your rails server
pipework has joined #ruby
pipework has quit [Changing host]
pipework has joined #ruby
_maes_ has joined #ruby
<sevenseacat> i'm not clicking your random links
<fun> it outputs same pg error in log
<fun> thats fine
swartwulf has quit [Max SendQ exceeded]
dx7 has joined #ruby
iamjarvo has joined #ruby
<sevenseacat> what pg error>?
ner0x has quit [Read error: Connection reset by peer]
<fun> # Use pg as the database for Active Record gem 'pg' is that fine?
artgoeshere has quit [Ping timeout: 272 seconds]
<sevenseacat> ...what pg error
iliketurtles has joined #ruby
<iamjarvo> zenspider thanks!
swartwulf has joined #ruby
Phrogz_ has joined #ruby
ner0x has joined #ruby
<fun> this one
AtumT has quit [Remote host closed the connection]
Phrogz_ is now known as Phrogz
artgoeshere has joined #ruby
<sevenseacat> how did you start your server
iliketurtles has quit [Client Quit]
<sevenseacat> are you runnung it in the developoment environment
zorak8 has joined #ruby
<fun> rails server -e production
<fun> to test production too
<sevenseacat> except your spree install ran for development, not production
<sevenseacat> please just follow the guide when i say to
Guest6749 has quit [Max SendQ exceeded]
Guest6749 has joined #ruby
<fun> rails _4.1.2_ new mystore then install
<sevenseacat> yes, now start your server *in development*.
<sevenseacat> as the tutorial says to do.
mjwhitta has joined #ruby
<sevenseacat> not production.
codeurge has quit [Quit: Textual IRC Client: www.textualapp.com]
<fun> but I want to stary it in production lol
<fun> *start
<sevenseacat> dont use webrick in production.
<sevenseacat> but if you absolutely insist on doing so, you'll need to install spree *for production*.
<fun> i wanted to get a feel of it :) I plan to use nginx when its time to open
<shevy> the cat is teaching newcomers
mocfive has joined #ruby
<fun> sevenseacat: yes I though it installs it for production, development and test at once
<sevenseacat> fun: so you don't want production, you want development.
<sevenseacat> no, it doesn't. and it shouldn't.
<fun> eee
<fun> but when its ready how to switch it to production?
<fun> such app
<sevenseacat> you dont 'switch it to production'
shock_one has joined #ruby
<sevenseacat> you go and set up your production server, and install it there
<pontiki> here is a problem: you cannot learn everything all at once
<sevenseacat> then you deploy your development code to production
<sevenseacat> i think fun is trying to take on way, way too much at once
<pontiki> this is why Einstein invented time
<fun> sevenseacat: lol why not just have it as production
msmith__ has joined #ruby
<pontiki> lol why not!
<fun> I get the idea of testing then pushing to production
<sevenseacat> fun: you want all the work you are in progress of doing to be public and accessible so people can buy stuff while you're building the site?
<sevenseacat> seriously?
<fun> sevenseacat: well site is not open anyway
msmith_ has quit [Ping timeout: 246 seconds]
<sevenseacat> yes it is
<sevenseacat> if you're running it in production and you can give people the URL,then it is
<fun> well they click url and see work in progress
<fun> domain is not pointed at it
<sevenseacat> and how do they know its a work in progress and they shouldnt buy anything
zB0hs has joined #ruby
zB0hs has quit [Client Quit]
<sevenseacat> this is common sense 101
Guest6749 has quit [Quit: Konversation terminated!]
bthesorceror has quit [Quit: bthesorceror]
<sevenseacat> don't make stuff public if it isn't ready to be public
<fun> sevenseacat: I can add user:pass gateway
pagioss has joined #ruby
<fun> honestly I dont mind who is going to click on that url
<fun> its not like many even would
<sevenseacat> sigh
<sevenseacat> i really hope you're trolling now
<fun> who would type some random ip?
<sevenseacat> either that, or you're really up to date on all your security fixes
geggam has joined #ruby
<fun> yes I am uptodate
livingstn has joined #ruby
<fun> there arent much running there, spree, nginx to come, unicorn, ssl
shock_one has quit [Ping timeout: 272 seconds]
<Jason> okay
<Jason> oops wrong window
<sevenseacat> you're crazy.
<fun> db is on local only
yfeldblum has quit [Remote host closed the connection]
<fun> sevenseacat: plus hackers hack working shops
<sevenseacat> if you're opening up your personal machine to serving production apps, you're crazy. thats all i have to say.
<fun> not some test box
<sevenseacat> and i have nothing else to say.
<pontiki> i think one does not know what production means
<pontiki> that's all
mjwhitta has quit [Quit: leaving]
RegulationD has joined #ruby
<fun> production means ready tested version
<fun> but I realised i can work faster
<fun> by doing dev test in same box
<fun> then copy ready stuff to git
<pontiki> production means customer-facing and taking users' input
<fun> well anyways u also right but i want to do stuff really ast
<fun> fast
<fun> pontiki: yes
<shevy> you wanna do stuff fast
zapho53 has joined #ruby
<shevy> so code faster!
<fun> pontiki: so I use box to develop it but in `production` mode
<pontiki> and failures that bring the box down mean you lose customers, business, and money
<pontiki> and failures that annoy customers, lose customers, business, and money
<fun> if it works it works, the way I move it from production to production is pointing domain to it
jthomp has quit [Quit: Textual IRC Client: www.textualapp.com]
<fun> and yes having separate box for test is nice yes
<sevenseacat> pontiki: i don't think it's worth wasting your breath here.
<pontiki> and making mistakes in public annoy customers, losing them, business, and money
<fun> I do agree
<fun> pontiki: what mistakes if I test before hand?
<pontiki> well, it's p.easy to just change a few words :)
<sevenseacat> before hand where? you're developing in production
<sevenseacat> every single code change you make is immediately live
<shevy> they do not trust your abilities fun :(
<pontiki> it hardly matters
<fun> shevy: hahah ty
<pontiki> i'm not actually out to convince him
<fun> shevy: I am well able
<sevenseacat> i definitely dont, given he couldnt follow a getting started tutoruial
<pontiki> experience teaches experience teaches
<pontiki> i do bet we can get all philosphical about it, though
msmith_ has joined #ruby
<shevy> look at them go! :)
<sevenseacat> and given he's admitted to being new at every technology used in a spree app
<sevenseacat> but hey
<fun> shevy: its fine
<fun> i will get it done soon
<pontiki> !popcorn
zapho53 has quit [Quit: [BX] Outwit. Outplay. Outlast. Survivor BitchX.]
<fun> I just have to google how to make it productional
buto_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fun> add products, payment gateway, test and start
<pontiki> yep, google up that word there
msmith__ has quit [Ping timeout: 240 seconds]
j_mcnally has joined #ruby
<fun> :)
<fun> i run it as dev and switch shop to open
<fun> aka production :D
<fun> bingo!
yfeldblum has joined #ruby
<shevy> sounds boring
<shevy> why is your nick fun if you focus on boring stuff man
<fun> shevy: its pretty exciting
<shevy> hehehe
enodata has joined #ruby
<pontiki> why are you talking about it instead of doing it, then?
<shevy> talking is more fun than coding
emocakes has quit []
<fun> plus I am writing no nonsense howto
iFire has quit [Remote host closed the connection]
<fun> shevy: :D
<shevy> you are writing a howto for yourself?
braincrash has quit [Quit: bye bye]
<fun> shevy: for spree users
<fun> who then can insta launch their shops
<fun> via copy pasting instructions
msmith_ has quit [Read error: Connection reset by peer]
<fun> and well I may add some explanation what each line does
msmith_ has joined #ruby
<fun> so peope can get up to speed fast
russt has joined #ruby
alvaro_o has quit [Quit: Ex-Chat]
msmith_ has quit [Read error: Connection reset by peer]
msmith_ has joined #ruby
<shevy> that is nice of you
emocakes has joined #ruby
pagioss has quit [Ping timeout: 260 seconds]
jgrevich_ has joined #ruby
Cache_Money has joined #ruby
jgrevich has quit [Ping timeout: 272 seconds]
jgrevich_ is now known as jgrevich
braincrash has joined #ruby
nicolastarzia has joined #ruby
duper has quit [Ping timeout: 260 seconds]
duper has joined #ruby
zzz_Ridley is now known as Ridley5
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
manzo has quit [Ping timeout: 260 seconds]
benzrf is now known as benzrf|offline
russt has quit [Quit: russt]
iFire has joined #ruby
pagioss has joined #ruby
rezzack has quit [Ping timeout: 246 seconds]
oo_ has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Cache_Money has quit [Quit: Cache_Money]
buto_ has joined #ruby
enodata has quit [Quit: quit]
emmesswhy has joined #ruby
niklasb has joined #ruby
coderdad has quit [Remote host closed the connection]
ta_ has joined #ruby
jackjackdrpr has quit [Ping timeout: 258 seconds]
ta has quit [Ping timeout: 260 seconds]
shinobi_one has joined #ruby
aspires has joined #ruby
CrazyM4n has quit [Read error: Connection reset by peer]
arup_r has joined #ruby
buto_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Kricir has joined #ruby
arup_r has quit [Remote host closed the connection]
bmurt has quit []
livingstn has quit []
hiyosi has quit [Ping timeout: 258 seconds]
<fun> well it was simple
<fun> bin/rake db:migrate RAILS_ENV=development
shinobi_one has quit [Ping timeout: 260 seconds]
jwang has quit [Read error: Connection reset by peer]
<fun> hehe
coderdad has joined #ruby
fun has quit [Quit: Page closed]
russt has joined #ruby
benzrf|offline is now known as benzrf
jasooon has joined #ruby
Xiti has joined #ruby
msmith_ has quit [Remote host closed the connection]
Takle has joined #ruby
niklasb has quit [Ping timeout: 260 seconds]
kerin has quit [Remote host closed the connection]
Sawbones has quit []
benzrf is now known as benzrf|offline
gsd has joined #ruby
benzrf|offline is now known as benzrf
spicerack has joined #ruby
oo_ has joined #ruby
craigp has joined #ruby
benzrf is now known as benzrf|offline
jasooon_ has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
Xiti has quit [Quit: Leaving]
fabrice31 has joined #ruby
tectonic has joined #ruby
craigp has quit [Remote host closed the connection]
BeryIdle has left #ruby [#ruby]
oo_ has quit [Ping timeout: 258 seconds]
fabrice31 has quit [Ping timeout: 250 seconds]
russt has quit [Quit: russt]
krisquigley has joined #ruby
kquig has joined #ruby
sevvie has quit [Quit: leaving]
Xiti has joined #ruby
hiyosi has joined #ruby
icebourg has joined #ruby
russt has joined #ruby
melik has joined #ruby
BTRE has quit [Quit: Leaving]
<shevy> oh damn
<shevy> def self.include? does not seem to work by default
<shevy> TypeError: wrong argument type String (expected Module)
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kquig has quit [Ping timeout: 260 seconds]
BTRE has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
bthesorceror has joined #ruby
iliketurtles has joined #ruby
freezey has quit [Remote host closed the connection]
jobewan has quit [Remote host closed the connection]
anaeem1_ has joined #ruby
emocakes has quit []
jobewan has joined #ruby
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
emocakes has joined #ruby
Skyler has quit [Quit: Lost terminal]
slyslick has quit [Ping timeout: 272 seconds]
rtl has quit [Remote host closed the connection]
Spami has quit [Quit: This computer has gone to sleep]
nonmadden has joined #ruby
xvq179 has joined #ruby
tkuchiki has quit [Ping timeout: 260 seconds]
robbyoconnor has joined #ruby
reset has quit [Quit: Leaving...]
c107 has joined #ruby
reset has joined #ruby
bthesorceror has quit [Quit: bthesorceror]
speakingcode has quit [Ping timeout: 244 seconds]
nicolastarzia has quit []
adac has joined #ruby
speakingcode has joined #ruby
tkuchiki has joined #ruby
reset has quit [Ping timeout: 245 seconds]
dx7 has quit [Remote host closed the connection]
russt has quit [Quit: russt]
Ridley5 is now known as zzz_Ridley
xcyclist has quit [Ping timeout: 246 seconds]
dx7 has joined #ruby
shock_one has joined #ruby
caveat- has quit [Ping timeout: 260 seconds]
Phrogz has quit [Remote host closed the connection]
caveat- has joined #ruby
russt has joined #ruby
JohnBat26 has joined #ruby
dx7 has quit [Ping timeout: 260 seconds]
russt has quit [Client Quit]
shock_one has quit [Ping timeout: 244 seconds]
mattmcclure has quit [Quit: Connection closed for inactivity]
havenwood has joined #ruby
dx7 has joined #ruby
chrishough has joined #ruby
krisquigley has quit [Remote host closed the connection]
tectonic has quit []
jasooon_ has quit [Ping timeout: 272 seconds]
jasooon has quit [Ping timeout: 272 seconds]
jusmyth has joined #ruby
krisquigley has joined #ruby
jusmyth1 has joined #ruby
jusmyth has quit [Read error: Connection reset by peer]
shinobi_one has joined #ruby
havenwood has quit [Client Quit]
kyb3r_ has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
shinobi_one has quit [Ping timeout: 246 seconds]
tjr9898 has quit [Remote host closed the connection]
oo_ has joined #ruby
michaeldeol has joined #ruby
russt has joined #ruby
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
MaciejCzyzewski has joined #ruby
msmith_ has joined #ruby
iamcyberbird has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
msmith_ has quit [Ping timeout: 272 seconds]
tectonic has joined #ruby
tectonic_ has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
FarLight has joined #ruby
<FarLight> How can I make code that has STDIN.read in it progress when I am running it from the console
jasooon has joined #ruby
jasooon_ has joined #ruby
bMalum_ has joined #ruby
justinmb_ has quit [Remote host closed the connection]
larissa has quit [Quit: Leaving]
Channel6 has quit [Quit: Leaving]
gsd has joined #ruby
mary5030 has joined #ruby
AlexRussia has quit [Remote host closed the connection]
tonybird has joined #ruby
tonybird has quit [Max SendQ exceeded]
AlexRussia has joined #ruby
Insanity133 has joined #ruby
nrsk has joined #ruby
hiyosi has joined #ruby
bricker`work has quit [Ping timeout: 260 seconds]
stnly has quit [Remote host closed the connection]
sinkensabe has joined #ruby
adac has quit [Quit: Leaving]
rpag has quit [Ping timeout: 260 seconds]
geggam has quit [Ping timeout: 260 seconds]
tylersmith has quit [Remote host closed the connection]
Insanity133 has quit [Remote host closed the connection]
Morkel has joined #ruby
Insanity133 has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
MaciejCzyzewski has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
Insanity_ has joined #ruby
bMalum_ has quit [Quit: bMalum_]
jontmorehouse has joined #ruby
tectonic_ has quit []
arescorpio has quit [Excess Flood]
Insanity133 has quit [Ping timeout: 260 seconds]
thagomizer has quit [Quit: Leaving.]
<FarLight> When it gets to the STDIN.read line, it accepts input but never progresses to the rest of the program.
<FarLight> I am just stuck indefinitely in the input accepting mode
Spami has joined #ruby
<pontiki> do you send it an end of file? ctrl-D usually...
dawkirst has joined #ruby
oleo__ has quit [Quit: Verlassend]
<pontiki> are you sure you wouldn't rather be using .gets instead of .read?
Kricir has quit [Remote host closed the connection]
DadoCe has quit [Remote host closed the connection]
Kricir has joined #ruby
Insanity_ has quit [Remote host closed the connection]
jontmorehouse has quit [Ping timeout: 272 seconds]
krz has quit [Ping timeout: 272 seconds]
rpag has joined #ruby
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has quit [Remote host closed the connection]
BTRE has quit [Read error: Connection reset by peer]
BTRE has joined #ruby
<shevy> FarLight or you could even use Readline if you want to have working cursor keys: user_input = Readline.readline('> ', true)
<FarLight> Ah ok, I am just trying to use somebody elses script, and that was an issue I was getting
<pontiki> the highline gem also makes for useful console IO
Kricir has quit [Ping timeout: 260 seconds]
<FarLight> thanks pontiki and shevy
<FarLight> Aha ctrl d
<FarLight> I didn't know that.
<pontiki> new to command line?
<shevy> I always hit Ctrl C
<pontiki> that's usually the interrupt
<FarLight> Pretty new to cl in general, but just started ruby cl today
grenierm has joined #ruby
* shevy tries to Ctrl-C pontiki!
<pontiki> interrupting shevy
<pontiki> are you on a unix-type command line?
<FarLight> yup
iliketurtles has quit [Quit: zzzzz…..]
<pontiki> type: stty -a
<shevy> there is hope
<shevy> you could be stuck on windows
<pontiki> you'll see what all the control characters are assigned to
<pontiki> and a bunch of other things
<pontiki> the man stty
<pontiki> then: man stty
<FarLight> Wow, handy
<pontiki> and read about them
<shevy> so much to read
<pontiki> knowledge is power
<FarLight> I'd figured out ctrl-c, mainly because I'd try to copy something while it was running and interrupt it.
koderok has joined #ruby
<shevy> you can intercept ctrl-c
shock_one has joined #ruby
koderok has left #ruby [#ruby]
<shevy> def register_sigint; Signal.trap('SIGINT') { puts 'Will we exit or will we not ...'; sleep 3; puts 'YES WE WILL!!!!'; exit }; end
<shevy> awesome isn't it
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<pontiki> oh yes, signals are another huge thing
<shevy> the reason I have it a method is because I use the same code in several different classes from the commandline, I hate when there is no graceful exit or boring exit when I hit ctrl c
iliketurtles has joined #ruby
<shevy> puts 'Bye Master!'
jelera has quit [Quit: Leaving]
<pontiki> which sort of *nix are you using FarLight ?
<shevy> dumbuntu
<FarLight> Yup
Insanity133 has joined #ruby
<FarLight> Well, linux mint
<shevy> :)
<shevy> ok that is better
<shevy> http://distrowatch.com/ agrees with me
<FarLight> What do you use?
Insanity133 has quit [Remote host closed the connection]
<shevy> the base was slackware but I recompiled around 98% of what is there from source
<shevy> pontiki is dumbuntu I bet :)
<pontiki> usually the choices are GNU/Linux, OS/X and BSD
<shevy> how about windows
<pontiki> type: man sigaction
shock_one has quit [Ping timeout: 250 seconds]
jasooon_ has quit [Ping timeout: 245 seconds]
jasooon has quit [Ping timeout: 245 seconds]
<sevenseacat> lol 'dumbuntu'
<FarLight> pontiki Interesting
<pontiki> also, man 7 signal lists most of the defined signals
<pontiki> anyway, there's depths and depths of informatoin
mengu has joined #ruby
mengu has joined #ruby
patrick99e99 has joined #ruby
<FarLight> haha yeah there sure is
<pontiki> good thing is, you don't have to learn it all at once :D
binaryhat has quit [Ping timeout: 250 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
justinmburrous has joined #ruby
goodenough has quit [Remote host closed the connection]
shinobi_one has joined #ruby
<shevy> but pontiki wants you to learn it
fumk has quit [Ping timeout: 260 seconds]
Insanity133 has joined #ruby
<FarLight> haha
sigurding has joined #ruby
<FarLight> I'm just happy I got this script to work
<FarLight> Clean svg's
aganov has joined #ruby
shock_one has joined #ruby
patrick99e99 has quit [Ping timeout: 272 seconds]
jontmorehouse has joined #ruby
fumk has joined #ruby
kaspergrubbe has joined #ruby
krz has joined #ruby
shinobi_one has quit [Ping timeout: 272 seconds]
Morkel_ has joined #ruby
nonmadden has quit [Remote host closed the connection]
Insanity133 has quit [Remote host closed the connection]
Red_Onyx has joined #ruby
krisquigley has joined #ruby
coderdad has quit [Remote host closed the connection]
Morkel has quit [Ping timeout: 260 seconds]
Morkel_ is now known as Morkel
Vile` has quit [Quit: brb]
jontmorehouse has quit [Ping timeout: 260 seconds]
kaspergrubbe has quit [Ping timeout: 260 seconds]
fabrice31 has joined #ruby
dx7 has quit [Remote host closed the connection]
icebourg has quit []
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
lxsameer has joined #ruby
lxsameer has joined #ruby
msmith_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
mityaz has quit [Quit: See ya!]
neoxquick has quit [Read error: Connection reset by peer]
skammer4 has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 245 seconds]
srnty has joined #ruby
ht__th has joined #ruby
nhhagen has joined #ruby
AlexRussia has quit [Read error: Connection reset by peer]
AlexRussia has joined #ruby
ner0x has quit [Quit: Leaving]
msmith_ has quit [Ping timeout: 272 seconds]
skammer4 has quit [Ping timeout: 260 seconds]
aspires has quit []
mikeg has joined #ruby
nrsk has quit [Read error: Connection reset by peer]
boombadaroomba has joined #ruby
nhhagen has quit [Ping timeout: 272 seconds]
rubyhaxor has joined #ruby
j_mcnally has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
craigp has joined #ruby
tagrudev has joined #ruby
Hyknua has joined #ruby
arrnas has joined #ruby
shock_one has quit [Quit: Computer has gone to sleep.]
nonmadden has joined #ruby
binaryhat has joined #ruby
boombadaroomba has quit [Ping timeout: 260 seconds]
willgo has quit [Remote host closed the connection]
dawkirst has quit [Remote host closed the connection]
kristofferR has joined #ruby
nrsk has joined #ruby
kaspergrubbe has joined #ruby
starkhalo has quit [Ping timeout: 245 seconds]
synergyz has joined #ruby
synergyz has quit [Remote host closed the connection]
krisquigley has joined #ruby
postmodern has joined #ruby
speaking1ode has joined #ruby
Vile` has joined #ruby
arup_r has joined #ruby
hiyosi has joined #ruby
speakingcode has quit [Ping timeout: 250 seconds]
codecop has joined #ruby
binaryhat has quit [Ping timeout: 244 seconds]
cndiv has joined #ruby
ta_ has quit [Remote host closed the connection]
kaspergrubbe has quit [Ping timeout: 272 seconds]
krisquigley has quit [Ping timeout: 272 seconds]
slyslick has joined #ruby
srnty has quit [Ping timeout: 272 seconds]
hiyosi has quit [Ping timeout: 250 seconds]
mengu has quit [Remote host closed the connection]
ciampix has joined #ruby
sinkensabe has joined #ruby
willgo has joined #ruby
sinkensabe has quit [Remote host closed the connection]
sinkensabe has joined #ruby
bal has joined #ruby
MACscr has joined #ruby
ghr has joined #ruby
russt has quit [Quit: russt]
HelperW has quit [Quit: Computer has gone to sleep.]
HelperW has joined #ruby
IceDragon has quit [Ping timeout: 260 seconds]
IceDragon has joined #ruby
binaryhat has joined #ruby
nik_-_ has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
tectonic has quit [Read error: Connection reset by peer]
tectonic_ has joined #ruby
Aaaal has joined #ruby
HelperW has quit [Ping timeout: 260 seconds]
clauswitt has joined #ruby
msx has quit [Ping timeout: 250 seconds]
Jet4Fire has joined #ruby
ar has quit [Ping timeout: 250 seconds]
ar has joined #ruby
ar has joined #ruby
ar has quit [Changing host]
Aaaal has quit [Client Quit]
mengu has joined #ruby
clauswit_ has joined #ruby
clauswitt has quit [Ping timeout: 244 seconds]
dawkirst has joined #ruby
mary5030 has joined #ruby
bMalum has joined #ruby
bMalum has quit [Client Quit]
jack_rabbit has quit [Ping timeout: 245 seconds]
IceDragon has quit [Ping timeout: 260 seconds]
nik_-_ has quit [Quit: nik_-_]
QAEngineer has joined #ruby
<QAEngineer> hi
mary5030 has quit [Ping timeout: 260 seconds]
<pontiki> no, but thanks anyway
<QAEngineer> anyone know how video chat site (e.g. chaturbate, myfreecams) are setup
reith2004 has joined #ruby
<QAEngineer> are these sites hosted on the cloud?
<pontiki> no idea
shinobi_one has joined #ruby
<pontiki> chances are they are not, if i understand their resource uses, using a cloud service for hosting them would likely be very expensive. but the truth is, i have no idea
arup_r has quit [Remote host closed the connection]
<QAEngineer> makes sense
<sevenseacat> i like the examples you picked lol
<TTilus> how would i go about reading berkeley db files (in ruby on debian jessie)
jack_rabbit has joined #ruby
<QAEngineer> its amazing how much video feeds these sites pump
<Hanmac> hmmm for my linux i need to find a image viewer that can read svg files from STDIN ...
<sevenseacat> TTilus: will something like Sequel connect to it?
c107 has quit [Read error: Connection reset by peer]
cndiv has quit [Ping timeout: 244 seconds]
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
shinobi_one has quit [Ping timeout: 258 seconds]
justinmburrous has quit [Remote host closed the connection]
<TTilus> sevenseacat: isn't sequel rdbms lib?
<sevenseacat> TTilus: i havent used berkeley db before, but is it any of these? https://github.com/jeremyevans/sequel/tree/master/lib/sequel/adapters
alem0lars has joined #ruby
<TTilus> bdb is mebedded key-value store
<sevenseacat> ah right
<sevenseacat> didnt realize it wasnt a traditional db
<sevenseacat> (my bad, sorry)
justinmburrous has joined #ruby
codezomb has joined #ruby
apeiros has joined #ruby
Xeago has joined #ruby
<TTilus> there is https://rubygems.org/gems/bdb but istallation fails
Tomme has joined #ruby
chrishough has joined #ruby
QAEngineer has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
msmith_ has joined #ruby
<TTilus> with fresh ruby i get "unsupported Ruby version: 2.1.3" from tuple install
jontmorehouse has joined #ruby
arup_r has joined #ruby
IceDragon has joined #ruby
Hyknua has quit [Ping timeout: 260 seconds]
ferr_ has joined #ruby
dawkirst has quit [Remote host closed the connection]
arup_r_ has joined #ruby
<TTilus> with ruby-1.9.3-p547 tuple installs fine, but does not find any libdb headers, because it looks for 4.2-5.1 and jessie is fully migrated to libdb5.3 :(
FarLight has quit [Quit: Leaving]
<ferr_> new_string = string.split.sort_by { |word| word.length }
<ferr_> new_string.join (" ")
<TTilus> last release for both tuple and bdb is 3 years old
<ferr_> How do I join those 2 lines into one? ^
msmith_ has quit [Ping timeout: 245 seconds]
SCHAAP137 has quit [Remote host closed the connection]
Macaveli has joined #ruby
Red_Onyx has left #ruby ["Leaving"]
alem0lars has quit [Quit: AFK..]
chipotle has quit [Quit: cya]
slyslick has quit [Ping timeout: 272 seconds]
arup_r has quit [Ping timeout: 260 seconds]
yfeldblum has quit [Ping timeout: 244 seconds]
jack_rabbit has quit [Ping timeout: 240 seconds]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<AlexRussia> what is miniruby?
krisquigley has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
mkaesz has joined #ruby
craigp has quit [Remote host closed the connection]
Hyknua has joined #ruby
QAEngineer has joined #ruby
<Hanmac> AlexRussia: newest ruby needs ruby to build ... now how would you build ruby if you dont have ruby? ;P
havenwood has joined #ruby
Wolland has quit [Remote host closed the connection]
Paradox has left #ruby ["Textual IRC Client: www.textualapp.com"]
klaut has joined #ruby
<AlexRussia> Hanmac: ???
<Hanmac> ferr_: string.split.sort_by(&:length).join(" ")
<AlexRussia> Hanmac: do you mean is minimal copy of MRI?
Paradox has joined #ruby
melik has quit [Quit: Computer has gone to sleep.]
Wolland has joined #ruby
<Hanmac> AlexRussia: hm not so much, just say its "just enough ruby to build ruby" ;P
<AlexRussia> Hanmac: @_@
<ferr_> Hanmac, thanks
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
andikr has joined #ruby
Sawbones has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
jack_rabbit has joined #ruby
bluOxigen has joined #ruby
fabrice31 has joined #ruby
arrnas has quit [Remote host closed the connection]
<Hanmac> havenwood: he asked for miniruby not mruby ;P
<havenwood> Hanmac: i didn't even know that was a thing :O
Wolland has quit [Ping timeout: 258 seconds]
<AlexRussia> havenwood: this is thing which i see when watching log of building ruby 2.1.3 :D
<Hanmac> havenwood: mini ruby is shipped with MRI ruby because you need ruby to build ruby ,P
<AlexRussia> facepalm
<havenwood> turtles all the way down...
<AlexRussia> Hanmac: they can't be less recursive? :D
iliketurtles has quit [Quit: zzzzz…..]
<pontiki> what's C written in?
<Hanmac> for most distries its not a problem because they just add ruby as build dependency and it works
<TTilus> thats like pretty common
<AlexRussia> Hanmac: @_@
<pontiki> answer: the previous version of C
<AlexRussia> pontiki: haha
<TTilus> to compilers/interpreters be recursive to a degree
<pontiki> i'm quite serious, there
<AlexRussia> pontiki: i'm sure in that
<TTilus> AlexRussia: google for bootstrap compiler
<pontiki> that's not recursion, though
<sevenseacat> she is very correct.
St_Marx has quit [Remote host closed the connection]
mikepack_ has quit [Remote host closed the connection]
<AlexRussia> pontiki: why not? 2.1.3 need previous ruby to build, to build previous we need previous etc....
<pontiki> anyone know what the very first C compiler was written in?
<AlexRussia> pontiki: ASM
hiyosi has joined #ruby
<pontiki> B
<AlexRussia> pontiki: rly?
<pontiki> yes
nonmadden has quit [Remote host closed the connection]
iliketurtles has joined #ruby
<AlexRussia> pontiki: you're kidding me!
<pontiki> B is the predecessor to C at Bell Labs
<TTilus> pontiki: you are right, it is just the build presenting recursiveish dependency
<pontiki> was*
melik has joined #ruby
QAEngineer has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<AlexRussia> okay
St_Marx has joined #ruby
<pontiki> many of the libraries were written assembler, but do understand assembler is completely specific to the hardware
<AlexRussia> i am not exactly know what really provide docs for ri about ruby core, but doc or examples flag are work :D
<pontiki> so the compiler *had* to be written higher level than asm
Advocation has joined #ruby
awc737 has joined #ruby
<pontiki> bootstrapping C onto machines that did not support B at the time means they had to also do transpiling and cross-compiling
MatthewsFace has quit [Ping timeout: 272 seconds]
<pontiki> stuff was voodoo sci-fi arcane black magic
MatthewsFace has joined #ruby
kwd_ has joined #ruby
<pontiki> i have a friend who does stuff like that now
hiyosi has quit [Ping timeout: 272 seconds]
<pontiki> you know how a process is locked into a core of a machine while it's running right?
<AlexRussia> hey, folks
<pontiki> she's working on stuff that will make them *move*, core to core, processor to processor, machine to machine *WHILE IT IS STILL RUNNING*
<AlexRussia> what the best way to save date in yaml?
<pontiki> ctime is good
<AlexRussia> pontiki: and restore it back?
oo_ has quit [Remote host closed the connection]
Xeago_ has joined #ruby
<pontiki> when yaml reads a standard date format, it will parse it as a date
oo_ has joined #ruby
justinmburrous has quit [Remote host closed the connection]
oo_ has quit [Read error: Connection reset by peer]
jusmyth1 has left #ruby [#ruby]
oo_ has joined #ruby
<AlexRussia> >>require 'yaml';require 'date';puts YAML.load(DateTime.new(1,1,1).to_yaml).class;
<eval-in_> AlexRussia => DateTime ... (https://eval.in/200582)
<AlexRussia> wtf?
<AlexRussia> my irb return string!
<AlexRussia> oh
<AlexRussia> >>require 'yaml';require 'date';puts YAML.load(DateTime.new(1,1,1).ctime.to_yaml).class;
<eval-in_> AlexRussia => String ... (https://eval.in/200583)
kwd_ has quit [Client Quit]
<AlexRussia> pontiki: ^
<havenwood> >> DateTime.new(1,1,1).ctime.class
<eval-in_> havenwood => uninitialized constant DateTime (NameError) ... (https://eval.in/200584)
<havenwood> #=> String
<havenwood> AlexRussia: ^
Xeago has quit [Ping timeout: 272 seconds]
<AlexRussia> >> require 'date';p DateTime.new(1,1,1).ctime.class;
<eval-in_> AlexRussia => String ... (https://eval.in/200585)
iliketurtles has quit [Quit: zzzzz…..]
<AlexRussia> havenwood: ^
<havenwood> yup, a String is a String
tvw has joined #ruby
<havenwood> when serialized then deserialized
rubyhaxor is now known as nomsDrone
<havenwood> AlexRussia: am i missing something?
skammer4 has joined #ruby
ghr has joined #ruby
sgen has joined #ruby
sigurding has quit [Ping timeout: 246 seconds]
willgo has quit [Remote host closed the connection]
krisquigley has quit [Remote host closed the connection]
qba73 has joined #ruby
<pontiki> so i'm wrong
lukeholder has joined #ruby
<pontiki> it doesn't convert it
<pontiki> but it's parseable
lukeholder has quit [Max SendQ exceeded]
<havenwood> oh, i'm just not following at all.. i see. :)
lukeholder has joined #ruby
krisquigley has joined #ruby
mofai has joined #ruby
AlexRussia has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
skammer4 has quit [Ping timeout: 260 seconds]
ghr has quit [Ping timeout: 244 seconds]
<pontiki> >> require 'date';require 'yaml'; DateTime.parse(YAML.load(DateTime.new(1,1,1).ctime.to_yaml)).to_s
<eval-in_> pontiki => "0001-01-01T00:00:00+00:00" (https://eval.in/200586)
<pontiki> *shrug* ?
shock_one has joined #ruby
mg^^ has quit [Read error: Connection reset by peer]
Sgeo has quit [Read error: Connection reset by peer]
Sgeo has joined #ruby
mg^^ has joined #ruby
jgrevich_ has joined #ruby
zorak8 has quit [Ping timeout: 240 seconds]
alex88 has joined #ruby
sgen has quit [Quit: Leaving]
sgen has joined #ruby
nhhagen has joined #ruby
kate_r has joined #ruby
jontmorehouse has quit [Ping timeout: 272 seconds]
Wolland has joined #ruby
jgrevich has quit [Ping timeout: 272 seconds]
jgrevich_ is now known as jgrevich
apeiros has quit []
lxsameer has quit [Read error: Connection reset by peer]
nomsDrone has left #ruby [#ruby]
noop has joined #ruby
lxsameer has joined #ruby
apeiros has joined #ruby
krisquig_ has joined #ruby
<ferr_> Is it possible to check how default classes are written in ruby? (e.g. array)
<shevy> rephrase that question
<shevy> there is no runtime introspection
<pontiki> it's open source, have at it
<sevenseacat> rephrase your face!
wallerdev has quit [Quit: wallerdev]
shredding has joined #ruby
<TTilus> ferr_: you mean look at the source?
<ferr_> Yes, ^ this is correct
<pontiki> ♫ FACE THE FACE! / YOU'VE GOT TO / FACE THE FACE! ♫
nonmadden has joined #ruby
<ferr_> I've searched for array.rb file but none did match my intentions
spastorino has quit [Quit: Connection closed for inactivity]
<pontiki> it's written in C
Sawbones has quit []
dangerousdave has joined #ruby
Wolland has quit [Ping timeout: 260 seconds]
patrick99e99 has joined #ruby
<TTilus> ferr_: see core docs, say http://ruby-doc.org/core-2.1.3/Array.html#method-i-count and "click to toggle source"
<ferr_> Thanks
Scotteh has joined #ruby
<ferr_> I just thought exploring Ruby source code would be helpful but since it's written in c... Any other suggestions?
<sevenseacat> we dont know what you're trying to do
<sevenseacat> how can we suggest anything?
<ferr_> Sorry, I'm getting used to Ruby
<zenspider> exploring ruby source code IS helpful
shinobi_one has joined #ruby
patrick99e99 has quit [Ping timeout: 258 seconds]
wallerdev has joined #ruby
Takle has quit [Remote host closed the connection]
sigurding has joined #ruby
lewix has quit [Remote host closed the connection]
<badhatter> i found exploring all the standard lib useful earlyon and even lateron
jcdesimp has quit [Quit: Leaving...]
<Hanmac> specially if you look how String and Array does share data between some objects of the same class ... like String#[] does return a new string, but it does not create new data "yet"
<TTilus> ferr_: you mean you want to read good ruby source code to draw influence, inspiration and ideas from it?
<ferr_> TTilus, this is correct
* TTilus is looking into his chrystalball smiling
<ferr_> I would like to knew how .each .sample .join and other methods are written
<TTilus> ferr_: i bet zenspider has a lot of good pointers for you
shredding has quit [Quit: shredding]
oo_ has quit [Remote host closed the connection]
<pontiki> wow, TTilus, you are *amazing*
<zenspider> read the source &/or reimplement them yourself.
<pontiki> fuckit, look at his code
shinobi_one has quit [Ping timeout: 260 seconds]
oo_ has joined #ruby
<zenspider> implement Enumerable#map yourself using each
<TTilus> pontiki: no, im not, i just have a quality chrystalball, you oughtta get one yourself ;)
sk87 has joined #ruby
<Hanmac> dont look at my code, otherwise you get a headache like from MC.Eschers paintings ;P
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<pontiki> i like escher :/
* sevenseacat only has crappy code integrating with legacy things
nonmadden has quit [Quit: Leaving...]
flowerhack has quit [Remote host closed the connection]
wpp has joined #ruby
justinmburrous has joined #ruby
<Hanmac> pontiki: yes, but would you also like my code? ;P my macros uses templates using macros and i am still suprised that the IDEs can understand that stuff ;P
<zenspider> anyone here deep into (mac) homebrew?
<zenspider> macros?
nonmadden has joined #ruby
<ferr_> Ok, thanks for your help
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
<pontiki> i dunno, where's your code?
<zenspider> macros?
<pontiki> sorry, that was to Hanmac
shredding has joined #ruby
msmith_ has joined #ruby
<Hanmac> pontiki: there is my main.hpp for my rwx stuff https://github.com/Hanmac/rwx/blob/master/ext/main.hpp
HelperW has joined #ruby
justinmburrous has quit [Ping timeout: 246 seconds]
<Hanmac> zenspider: my gems are written in C++ with using C-macros and C++-templates
ghr has joined #ruby
sgen has quit [Quit: Leaving]
ephemerian has joined #ruby
sgen has joined #ruby
Wolland has joined #ruby
msmith_ has quit [Ping timeout: 240 seconds]
krisquigley has quit [Remote host closed the connection]
Tomme has quit [Ping timeout: 272 seconds]
<shevy> zenspider you are on your way to compile something huge?
northfurr has quit [Quit: northfurr]
zarubin has joined #ruby
LiohAu_ has joined #ruby
Wolland has quit [Ping timeout: 245 seconds]
emrox has joined #ruby
zarubin1 has joined #ruby
kaspergrubbe has joined #ruby
shredding has quit [Quit: shredding]
zarubin is now known as szarubin
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
zarubin1 is now known as zarubin
IceDragon has quit [Quit: Space~~~]
emrox_ has joined #ruby
<zenspider> shevy: hrm?
zarubin has quit [Client Quit]
zarubin has joined #ruby
<pontiki> okay, escher makes *sense*. his stuff *fits together*
<pontiki> i have no idea what's going on here :)
mityaz has joined #ruby
<pontiki> maybe if you had some interlocking salamanders...
szarubin has quit [Client Quit]
<zenspider> meh. I do NOT miss C++ in the slightest. what an _awful_ language.
Advocation has quit [Quit: Advocation]
Ulrike_Rayne has quit [Ping timeout: 246 seconds]
melik has quit [Quit: Computer has gone to sleep.]
ephemerian has quit [Quit: Leaving.]
Hyknua has quit [Quit: Hyknua]
emrox has quit [Ping timeout: 272 seconds]
krisquig_ has quit [Remote host closed the connection]
<MACscr> Not expecting anything, but i will buy a few beers (paypal gift) for some help on this error. Its not my code and ruby isnt a language I typically use, but im hoping someone can still maybe help me troubleshoot it. Anyway, here is the error http://hastebin.com/efabezefam.vbs and here is the code http://hastebin.com/itafepicaw.vhdl. Luckily the code really isnt to long and the error gives some line
<MACscr> numbers. Im completely open to ideas/suggestions.
krisquigley has joined #ruby
rdark has joined #ruby
<sevenseacat> i love how everyone just decides how they want to present their code, and completely ignores the channel rules
mikecmpbll has joined #ruby
<zenspider> uh. vbs and vhdl.... right.
<MACscr> my apologies. I should have read them.
<MACscr> i incorrectly assumed it was similar to other language channels
chiramiso has joined #ruby
<sevenseacat> it is - we have a preferred paste site
<Hanmac> pontiki: for sample i have macros like "macro_attr(Text,wxString)" with loosy translate into "VALUE_getText(VALUE self){return wrap(_self->GetText()); } VALUE _setText(VALUE self,VALUE val){_self->SetText(unwrap<wxString>(val))} " ... similar to attr_accessor does it create get and set methods for me with the less input as possible
<MACscr> i will correct it
dumdedum has joined #ruby
<arup_r_> I am writing a crawler.. I want to raise 2 kind of exceptions - "Unable to match the Exception on the page" and "Unable to find node on page" ... But not understanding What criterions I should consider for the both..
<zenspider> MACscr: Seeking to 36600646085248964100096 in /dev/mapper/VolGroup00-jazz_img
<zenspider> that's a HUGE FUCKING NUMBER
dawkirst has joined #ruby
<pontiki> is this a 32/64 bit problem?
ephemerian has joined #ruby
<zenspider> I doubt his image is that big
<zenspider> 3.6 * 10^7 PETABYTES
<MACscr> its a 10G Logical Volume
<zenspider> MACscr: are you not listening to me?
ta has joined #ruby
krisquigley has quit [Ping timeout: 246 seconds]
echevemaster has quit [Quit: Leaving]
hiyosi has joined #ruby
clauswit_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
AFKGeek has joined #ruby
<MACscr> zenspider: huh? i responded to you
Advocation has joined #ruby
lsmola has joined #ruby
shredding has joined #ruby
zarubin has quit [Remote host closed the connection]
<MACscr> and here is the code in the pastebin of your choice https://gist.github.com/MACscr/3ea65bf4c7ee8c94ff73
<MACscr> I put them in two separate files for the point of having the line numbers
chthon has joined #ruby
<pontiki> *one* of the reasons we like gist is that you can put more than one file in a gist, through the magic of the button in the lower left corner
<zenspider> doesn't matter.
<zenspider> the error is easily pointed out
<zenspider> he's seeking beyond the limits of any disk he owns
<zenspider> apparently "HUGE FUCKING NUMBER" is ignorable tho
HelperW has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
HelperW has joined #ruby
<MACscr> lol, well obviously the next step is to figure out why its getting the wrong number
<MACscr> im not ignoring anything
oo_ has joined #ruby
<zenspider> snap.differences is returning an object whose #first responds with a ridiculous number
<zenspider> nobody here can answer why.
Avahey has quit [Quit: Connection closed for inactivity]
lkba has quit [Ping timeout: 245 seconds]
lolmaus has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
<zenspider> Matt Palmer should be banned from writing ruby... tabs? really??
oo_ has quit [Read error: No route to host]
oo_ has joined #ruby
jack_rabbit has quit [Ping timeout: 260 seconds]
wallerdev has quit [Quit: wallerdev]
grenierm has quit [Quit: grenierm]
havenwood has quit [Remote host closed the connection]
havenwood has joined #ruby
abdulsattar has joined #ruby
<pontiki> maybe it was the crash: http://www.hezmatt.org/bikewreck/
ta has quit [Quit: Leaving...]
einarj has joined #ruby
roolo has joined #ruby
chiramiso has quit [Quit: leaving]
ta has joined #ruby
sigurding has quit [Quit: sigurding]
mikeg has quit [Ping timeout: 245 seconds]
<MACscr> pontiki: ah, I thought Add file was for actually attaching (uploading) a file. Thanks for pointing that out
havenwood has quit [Ping timeout: 264 seconds]
yfeldblum has joined #ruby
skripnat has joined #ruby
Takle has joined #ruby
ta_ has joined #ruby
grenierm has joined #ruby
mrgrieves has quit [Quit: Lost terminal]
shock_one has quit [Read error: Connection reset by peer]
ta has quit [Ping timeout: 260 seconds]
HelperW has quit [Quit: Computer has gone to sleep.]
HelperW has joined #ruby
<MACscr> so on line 205, is the file opened and assigned to a the variable 'r'? If so, what does snap and differences do? Seems like its looping through something, but im not sure what
sigurding has joined #ruby
anarang has joined #ruby
noop has quit [Ping timeout: 260 seconds]
Ulrike_Rayne has joined #ruby
jbueza has joined #ruby
clauswitt has joined #ruby
Scotteh has quit [Quit: Later, folks]
HelperW has quit [Ping timeout: 260 seconds]
oponder has joined #ruby
zeroXten has joined #ruby
zarubin has joined #ruby
elaptics`away is now known as elaptics
thumpba_ has joined #ruby
<zeroXten> stupid question, but what is the best way of testing a gem post installation? So I'm running rspec while doing development, but I'd like to basically run rspec again once the gem has been installed onto a new system as an integration test to ensure compatibilities and dependencies etc.
thumpba has quit [Ping timeout: 272 seconds]
JeffBonds has quit [Quit: JeffBonds]
tvw has quit []
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
HelperW has joined #ruby
grenierm has quit [Quit: grenierm]
alem0lars has joined #ruby
dawkirst has quit [Remote host closed the connection]
krisquigley has joined #ruby
abdulsattar has quit [Ping timeout: 272 seconds]
krisquigley has quit [Client Quit]
shinobi_one has joined #ruby
oo_ has quit [Ping timeout: 260 seconds]
i8igmac has quit [Ping timeout: 245 seconds]
sevenseacat has quit [Quit: Leaving.]
dawkirst has joined #ruby
kaspertidemann has joined #ruby
kyb3r_ has quit [Read error: Connection reset by peer]
JoshGlzBrk has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
andrewlio has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Insanity133 has joined #ruby
shinobi_one has quit [Ping timeout: 272 seconds]
joonty has joined #ruby
krisquigley has joined #ruby
alem0lars has quit [Quit: alem0lars]
kwd_ has joined #ruby
skammer4 has joined #ruby
tectonic_ has quit [Read error: Connection reset by peer]
msmith_ has joined #ruby
marr has joined #ruby
WormDrink has joined #ruby
alem0lars has joined #ruby
Wolland has joined #ruby
nrsk has quit [Read error: Connection reset by peer]
skammer4 has quit [Ping timeout: 272 seconds]
dawkirst has quit [Quit: Leaving...]
msmith_ has quit [Ping timeout: 272 seconds]
mosez has quit [Quit: Switching back to real life]
nrsk has joined #ruby
justinmburrous has joined #ruby
Tomme has joined #ruby
mosez has joined #ruby
Takle has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
alem0lars has quit [Quit: alem0lars]
Hobogrammer has quit [Ping timeout: 260 seconds]
Wolland has quit [Ping timeout: 272 seconds]
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
cherwin has joined #ruby
cocotton has quit [Remote host closed the connection]
stef_204 has joined #ruby
noop has joined #ruby
Deejay_ has joined #ruby
mengu has quit [Remote host closed the connection]
Deejay_ has quit [Client Quit]
nhhagen has quit [Remote host closed the connection]
hiyosi has joined #ruby
thomasxie has joined #ruby
jimmyy has joined #ruby
Insanity133 has quit [Remote host closed the connection]
arup_r_ has quit [Remote host closed the connection]
AlSquire has joined #ruby
toretore has joined #ruby
erichmenge has quit [Ping timeout: 260 seconds]
Spami has quit [Ping timeout: 245 seconds]
Takle has joined #ruby
hiyosi has quit [Ping timeout: 258 seconds]
dangerousdave has joined #ruby
erichmenge has joined #ruby
ndrei has joined #ruby
thumpba_ has quit [Ping timeout: 272 seconds]
systems has joined #ruby
Spami has joined #ruby
nrsk has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
decoponio has joined #ruby
workmad3 has joined #ruby
workmad3 has quit [Client Quit]
<ferr_> def random_select(random_number)
<ferr_> new_array = Array.new(@random_number) { |element| element = self[rand(self.length)] }
<ferr_> How would I use self object in the block who is calling the method?
nrsk has joined #ruby
Advocation has quit [Quit: Advocation]
<canton7> not sure what you're asking I'm afraid.
Photism has quit [Read error: Connection reset by peer]
F__i__L has quit [Remote host closed the connection]
jokke has quit [Ping timeout: 260 seconds]
DaniG2k has joined #ruby
tvw has joined #ruby
<ferr_> Sorry for misunderstanding, an object who calls the method needs to be used in a block inside the method, how would I do that?
kaspertidemann has quit []
justinmburrous has quit [Remote host closed the connection]
Insanity133 has joined #ruby
sigurding has quit [Quit: sigurding]
jgrevich has quit [Quit: jgrevich]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dangerousdave has joined #ruby
<canton7> pass an instance of the object in? although this is starting to smell a bit
jokke has joined #ruby
thumpba has joined #ruby
Insanity133 has quit [Remote host closed the connection]
<DaniG2k> can someone help me debug my code please -_-
<DaniG2k> when I run it, I am getting Error: undefined local variable or method `clean_page
<DaniG2k> clean_page is a method in the Cleaner object
<canton7> which line?
User458764 has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<DaniG2k> which gets called in def get_body of the same object (Cleaner)
iamcyberbird has quit [Ping timeout: 272 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<DaniG2k> canton7: this is the line that's failing https://gist.github.com/DaniG2k/2d014bb2f0f3c822b47e#file-cleaner-rb-L17
<DaniG2k> canton7: this is the method definition https://gist.github.com/DaniG2k/2d014bb2f0f3c822b47e#file-cleaner-rb-L84
iamcyberbird has joined #ruby
sunslide has joined #ruby
<sunslide> hello!
<sunslide> ruby is great.
Advocation has joined #ruby
<DaniG2k> canton7: i cant understand why its saying it's undefined when it's within the same object
sunslide has quit [Remote host closed the connection]
workmad3 has joined #ruby
hellangel7 has joined #ruby
nhhagen has joined #ruby
jokke has quit [Ping timeout: 260 seconds]
skammer4 has joined #ruby
jhass|off is now known as jhass
systems is now known as system
nhhagen has quit [Remote host closed the connection]
jespada has joined #ruby
system has quit [Quit: Bye]
nhhagen has joined #ruby
ferr_ has quit [Quit: Leaving]
gaussblurinc1 has joined #ruby
ferr_ has joined #ruby
sepp2k has joined #ruby
ddv has quit [Quit: *poof*]
ferr_ is now known as ferr
nfk has joined #ruby
rclsilve1 has joined #ruby
arup_r has joined #ruby
<rclsilve1> hi... is there any way to sort an hash with a custom function as callback?
shinobi_one has joined #ruby
neersighted has quit [Ping timeout: 272 seconds]
RoryHughes has quit [Ping timeout: 272 seconds]
stef_204 has joined #ruby
jokke has joined #ruby
jaxxstorm has quit [Ping timeout: 272 seconds]
lpaste has quit [Ping timeout: 272 seconds]
kalz has quit [Ping timeout: 272 seconds]
einarj has quit []
<apeiros> rclsilve1: hash.sort { callbackhere }.to_h
<apeiros> rclsilve1: or sort_by instead of sort
RoryHughes has joined #ruby
jaxxstorm has joined #ruby
<rclsilve1> hm
yfeldblum has quit [Remote host closed the connection]
HelperW has quit [Quit: Computer has gone to sleep.]
lpaste has joined #ruby
shinobi_one has quit [Ping timeout: 240 seconds]
HelperW has joined #ruby
yfeldblum has joined #ruby
<rclsilve1> apeiros: i've an hash which contains "source" and "dest" columns (with others).. i would like to sort my items to put lines with "all" value at the end
<rclsilve1> what is the best way to achieve this?
ccooke has joined #ruby
<apeiros> rclsilve1: use my sorting gem and map "all" to Sorting::Bigger
nettoweb has joined #ruby
<apeiros> Sorting::Bigger compares as "bigger" than any other value
<rclsilve1> can't use external gem
nettoweb has quit [Max SendQ exceeded]
<apeiros> then have fun either copying that mechanism or coming up with your own solution
einarj has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
Xeago has joined #ruby
<ferr> https://gist.github.com/Fercell/168851999cba3f842e65 How do I make this work? Line 7
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
nettoweb has joined #ruby
<apeiros> ferr: a) do NOT redefine Array#initialize. that's beyond "bad idea"
<apeiros> b) what on earth are you trying to achieve?
jheg has joined #ruby
msmith_ has joined #ruby
HelperW has quit [Ping timeout: 245 seconds]
<ferr> This is an exercise, I need to write identical method to Array#sample
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Wolland has joined #ruby
<apeiros> ferr: and why do you think that involves #initialize? (because it does not)
<ferr> otherwise instance did not work
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
crazydiamond has joined #ruby
kalz has joined #ruby
Xeago_ has quit [Ping timeout: 272 seconds]
<apeiros> that makes no sense
<ferr> Oh, I see
<apeiros> to address your question: you can't reference the array being built within Array.new's block
<ferr> It seems to be working now
<ferr> Just to clarify, why?
<apeiros> because you have no reference to it
<apeiros> and the block of Array.new yields the index. assigning to that variable does nothing. relevant is the return value of the block.
msmith_ has quit [Ping timeout: 260 seconds]
Xeago_ has joined #ruby
<apeiros> ah, you actually intend to access the current array with self there. ok. that works.
<ferr> I thought the issue was "self" thing
Wolland has quit [Ping timeout: 260 seconds]
<ferr> But it seems to be the instance
<ferr> Spend like an hour thinking and testing
<zeroXten> stupid question, but what is the best way of testing a gem post installation? So I'm running rspec while doing development, but I'd like to basically run rspec again once the gem has been installed onto a new system as an integration test to ensure compatibilities and dependencies etc.
krz has quit [Quit: WeeChat 1.0.1]
<apeiros> that method won't do what sample does, though. since your method can have repeats. sample does not.
<ferr> apeiros, thank you very much
moritzs has joined #ruby
<ferr> it was stated in the exercise that it should repeat
<apeiros> ok. then that exercise has an identity crisis :-D
sigurding has joined #ruby
<apeiros> (it's either an identical copy of #sample or it has repeats - can't be both)
krz has joined #ruby
HelperW has joined #ruby
<apeiros> ferr: also note that unlike sample, your version has a bias
<apeiros> earlier elements will occur far more frequently
<apeiros> ah, damn, no
professor_soap has joined #ruby
sk87 has joined #ruby
karupa is now known as zz_karupa
<apeiros> sorry, still stuck with thinking that self in the block was intended to reference the new array.
<apeiros> forget what I said about the bias :)
Aaaal has joined #ruby
<ferr> (Note: those random numbers may be the same number.)
<apeiros> that sounds more like a hint
Xeago has quit [Ping timeout: 272 seconds]
<ferr> Since it technically works for me, is it decent as Ruby code?
<ferr> Or how would you write this piece of code
stef_204 has joined #ruby
stef_204 has quit [Changing host]
stef_204 has joined #ruby
iamcyberbird has quit [Ping timeout: 272 seconds]
<apeiros> ferr: leave away the superfluous self's and assignments
<apeiros> def random_select(random_number); Array.new(random_number) { self[rand(length)] }; end
clauswitt has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> otherwise, yes
* apeiros off
naftilos76 has joined #ruby
Mdgd` has joined #ruby
<ferr> apeiros, huge thanks!
<Mdgd`> Hey gang, anyone familiar with Geocoder?
<Mdgd`> I'm using its .near() method to find results based on distance, but I want to use an offset as well as a limit.
<Mdgd`> I landed on will_paginate after a Google journey but I'm starting to doubt if this is what I actually need, provided I get it to work
<Mdgd`> Here's the relevant line - @results = Garage.near(@s_location, @s_distance, :units => :km, :order => :distance).paginate(:page => @page, :per_page => 5)
Spami_ has joined #ruby
<Mdgd`> Originally I had @results = Garage.near(@s_location, @s_distance, :units => :km, :order => :distance).limit(5)
zarubin has quit [Quit: Leaving.]
eequ has joined #ruby
<Mdgd`> There isn't a native .offset() method is there?
<naftilos76> hi everyone, i am trying to use gsub to replace any of the two chars following a given string to something else: "given_string_??" to "given_string_en" . I have to use reg expressions but i do not know anything about them. Can anyone help?
<Mdgd`> Hahaha there is, nvm
skripnat has quit [Ping timeout: 272 seconds]
<workmad3> Mdgd`: there's an activerecord offset... so as long as Geocoder is working within the database and returning AR query objects, it's fine
cherwin has quit [Ping timeout: 250 seconds]
Insanity133 has joined #ruby
Spami has quit [Ping timeout: 272 seconds]
badhatter_ has joined #ruby
<workmad3> Mdgd`: bear in mind that most of the work that will_paginate and kaminari do is really around providing you with the pagination UI components rather than query manipulation ;)
badhatter_ has quit [Client Quit]
<Mdgd`> I was getting that feeling
<Mdgd`> One more issue
zarubin has joined #ruby
<workmad3> naftilos76: I'd suggest playing around at http://rubular.com
<Mdgd`> The result of the above line doesn't seem to be a collection.
professor_soap has left #ruby [#ruby]
<Mdgd`> <%= @result %> returns this: #<ActiveRecord::Relation:0x007ffba8716bb8>
<naftilos76> thanks, i will have a look
hiyosi has joined #ruby
<workmad3> Mdgd`: that's an activerecord relation... a.k.a. a query object
cherwin has joined #ruby
<workmad3> Mdgd`: it's a stand-in for lazy query evaluation... which is good ;) means that chaining other AR methods off the result is fine
<workmad3> Mdgd`: it acts like a collection though, in that it's enumerable
<Mdgd`> But the query hasn't actually been committed?
<Mdgd`> Hm.
danijoo has quit [Read error: Connection reset by peer]
<workmad3> Mdgd`: correct, the query isn't evaluated until you enumerate it with .each or similar
<Mdgd`> Well see that's the thing
<Mdgd`> When I call .each, I get nothing.
mengu has joined #ruby
danijoo has joined #ruby
<workmad3> Mdgd`: check the SQL of the call with a .to_sql on the end
<Mdgd`> As in, using @results.each do |r| <%= r %> end, returns ""
badhatter has quit [Quit: Leaving]
AlexRussia has joined #ruby
<toretore> use the repl
badhatter has joined #ruby
<workmad3> ^^ that too
<workmad3> Mdgd`: also, there will be more people able to give useful advice in #rubyonrails when it comes to ActiveRecord diagnostics
badhatter has quit [Client Quit]
hiyosi has quit [Ping timeout: 246 seconds]
badhatter_ has joined #ruby
skripnat has joined #ruby
Takle has quit [Remote host closed the connection]
robustus is now known as robustus|Off
mkaesz has quit [Ping timeout: 272 seconds]
Insanity133 has quit []
awestroke has joined #ruby
Insanity133 has joined #ruby
xcv has joined #ruby
stef_204 has quit [Ping timeout: 272 seconds]
robustus|Off is now known as robustus
samuelkadolph has quit [Ping timeout: 245 seconds]
<mityaz> .
headius has quit [Ping timeout: 260 seconds]
callumacrae has quit [Ping timeout: 245 seconds]
headius has joined #ruby
HelperW has quit [Quit: Computer has gone to sleep.]
Urocyon has quit [Ping timeout: 258 seconds]
ItSANgo has joined #ruby
jheg has quit [Ping timeout: 272 seconds]
jblancett has quit [Ping timeout: 240 seconds]
isomorphismes has quit [Ping timeout: 258 seconds]
HelperW has joined #ruby
isomorphismes has joined #ruby
gomikemike has quit [Ping timeout: 245 seconds]
dacamp has quit [Ping timeout: 240 seconds]
jblancett has joined #ruby
charliesome has quit [Quit: zzz]
Pupeno has joined #ruby
gomikemike has joined #ruby
dacamp has joined #ruby
samuelkadolph has joined #ruby
Urocyon has joined #ruby
fabrice31 has quit [Remote host closed the connection]
skammer4 has quit [Ping timeout: 246 seconds]
carraroj has joined #ruby
fabrice31 has joined #ruby
Takle has joined #ruby
callumacrae has joined #ruby
sigurding has quit [Ping timeout: 260 seconds]
eequ has left #ruby ["Leaving"]
charliesome has joined #ruby
`Dath has quit [Ping timeout: 245 seconds]
HelperW has quit [Ping timeout: 272 seconds]
kwd_ has quit [Read error: Connection reset by peer]
justinmburrous has joined #ruby
kwd_ has joined #ruby
stef_204 has joined #ruby
roolo has quit [Remote host closed the connection]
anaeem1_ has quit [Quit: Leaving...]
rdark has quit [Quit: leaving]
roolo has joined #ruby
rdark has joined #ruby
justinmburrous has quit [Ping timeout: 272 seconds]
emrox_ has quit [Ping timeout: 240 seconds]
emrox has joined #ruby
anaeem1_ has joined #ruby
abdulsattar has joined #ruby
Takle has quit [Remote host closed the connection]
shredding has quit [Quit: shredding]
roolo has quit [Ping timeout: 240 seconds]
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
reith2004 has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
Xeago__ has joined #ruby
Xeago_ has quit [Ping timeout: 260 seconds]
shinobi_one has joined #ruby
entrenador has joined #ruby
Xeago has quit [Ping timeout: 258 seconds]
postmodern has quit [Quit: Leaving]
kaspertidemann has joined #ruby
mkaesz has joined #ruby
shinobi_one has quit [Ping timeout: 250 seconds]
mskaesz has joined #ruby
mkaesz has quit [Read error: No route to host]
jbw has joined #ruby
anaeem1__ has joined #ruby
shredding has joined #ruby
anaeem1__ has quit [Remote host closed the connection]
lkba has joined #ruby
awestroke has quit [Read error: Connection reset by peer]
anaeem1 has joined #ruby
msmith_ has joined #ruby
Wolland has joined #ruby
anaeem1_ has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
entrenador has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robustus is now known as robustus|Off
shredding has quit [Ping timeout: 244 seconds]
b00stfr3ak has joined #ruby
tokik has quit [Ping timeout: 258 seconds]
Wolland has quit [Ping timeout: 246 seconds]
msmith_ has quit [Ping timeout: 240 seconds]
HelperW has joined #ruby
Takle has joined #ruby
robustus|Off is now known as robustus
pskosinski has joined #ruby
phutchins has joined #ruby
hmsimha has joined #ruby
klaut has joined #ruby
gccostabr has joined #ruby
roolo has joined #ruby
clauswitt has joined #ruby
Jet4Fire has quit []
carraroj has quit [Ping timeout: 260 seconds]
parduse is now known as Guest17913
Guest17913 has quit [Killed (wilhelm.freenode.net (Nickname regained by services))]
ddv has joined #ruby
parduse has joined #ruby
ddv has quit [Changing host]
ddv has joined #ruby
robustus is now known as robustus|Off
Spami_ has quit [Quit: This computer has gone to sleep]
sigurding has joined #ruby
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ctp has joined #ruby
nhhagen has quit [Ping timeout: 250 seconds]
Photism has joined #ruby
hiyosi has joined #ruby
emrox has joined #ruby
threesixes has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 245 seconds]
crazydiamond has quit [Ping timeout: 258 seconds]
MCDev has quit [Ping timeout: 250 seconds]
benzrf|offline is now known as benzrf
HelperW has quit [Quit: Computer has gone to sleep.]
HelperW has joined #ruby
jottr_ has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sprihodko has joined #ruby
HelperW has quit [Ping timeout: 272 seconds]
HelperW has joined #ruby
naftilos76 has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
Suchit has joined #ruby
justinmburrous has joined #ruby
rkalfane has joined #ruby
Takle has quit [Remote host closed the connection]
rpag has quit [Ping timeout: 260 seconds]
nonmadden has quit [Remote host closed the connection]
MCDev has joined #ruby
doev has joined #ruby
doev has quit [Remote host closed the connection]
anaeem1 has quit [Read error: Connection reset by peer]
doev has joined #ruby
AlexRussia_ has joined #ruby
anaeem1_ has joined #ruby
AlexRussia has quit [Ping timeout: 250 seconds]
arup_r has joined #ruby
benzrf is now known as benzrf|offline
Insanity133 has quit [Remote host closed the connection]
Wolland has joined #ruby
<ferr> If any of you have some free minute, is there an option to optimize this? https://github.com/Fercell/Progress/blob/master/Week_1/6_boolean_expressions.rb
entrenador has joined #ruby
abdulsattar has joined #ruby
Alx08-ru has joined #ruby
skammer4 has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
AlexRussia_ has quit [Read error: Connection reset by peer]
nhhagen has joined #ruby
patrick99e99 has joined #ruby
manzo has joined #ruby
kiri has joined #ruby
User458764 has quit [Ping timeout: 240 seconds]
<Hanmac> ferr for the first thing i would if a class does not have real methods use Struct or OpenStruct for it
<arcsky> hello i got some errors when i try to run a program, http://pastebin.com/3NY2niie
<jhass> ferr: also you should probably wrap that into a method
<Hanmac> ferr: allso (candidate.languages_worked_with.include? 'Ruby') should be candidate.languages_worked_with.include?('Ruby') imo ...
Spami has joined #ruby
<ferr> I thought so
<ferr> But since I found it in the example
<ferr> Thanks for advices
<Hanmac> arcsky: is that robots one of your files?
sevenseacat has joined #ruby
kiri has quit [Ping timeout: 250 seconds]
Alx08-ru has quit [Ping timeout: 246 seconds]
<jhass> ferr: http://paste.mrzyx.de/p8b34e279/ would be my take I think
patrick99e99 has quit [Ping timeout: 272 seconds]
wald0 has quit [Quit: Lost terminal]
jottr_ has quit [Ping timeout: 246 seconds]
<arcsky> Hanmac: what do you mean by that?
Alx08-ru has joined #ruby
<jhass> arcsky: there's #metasploit I think
alem0lars has joined #ruby
entrenador has quit [Quit: Textual IRC Client: www.textualapp.com]
shinobi_one has joined #ruby
<arcsky> yeah but i guess its a ruby issue
<jhass> and I guess it's a metasploit issue
bogeyd6 has quit [Read error: Connection reset by peer]
<jhass> or a issue in you installing metasploit
Alx08-ru has quit [Excess Flood]
starkhalo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Xeago has joined #ruby
Alx08-ru has joined #ruby
sprihodko has quit [Quit: Lingo - http://www.lingoirc.com]
TorpedoSkyline has joined #ruby
Advocation has quit [Quit: Advocation]
robustus|Off is now known as robustus
ldnunes has joined #ruby
Xeago_ has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
Xeago__ has quit [Ping timeout: 250 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
willgo has joined #ruby
<ferr> jhass, thanks!
Xeago has quit [Ping timeout: 250 seconds]
TorpedoSkyline has quit [Client Quit]
cherwin has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
msmith_ has joined #ruby
Imofftopic has joined #ruby
lxsameer has quit [Read error: Connection reset by peer]
justinmburrous has quit [Remote host closed the connection]
lxsameer has joined #ruby
stef_204 has joined #ruby
TorpedoSkyline has joined #ruby
cherwin has joined #ruby
cherwin has quit [Max SendQ exceeded]
Macaveli has quit [Ping timeout: 260 seconds]
cherwin has joined #ruby
cherwin has quit [Max SendQ exceeded]
Suchit has quit [Read error: Connection reset by peer]
jottr_ has joined #ruby
Suchit_ has joined #ruby
Macaveli has joined #ruby
cherwin has joined #ruby
<arup_r> How can I make Foo::baz as private singleton method... Currently I am not able to do it.. https://gist.github.com/aruprakshit/26174d683f19084ff81d
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arup_r> I expected it to throw error...
<arup_r> But I am able to access it
HelperW has quit [Quit: Computer has gone to sleep.]
Wolland has quit [Ping timeout: 246 seconds]
msmith_ has quit [Ping timeout: 260 seconds]
TorpedoSkyline has quit [Client Quit]
HelperW has joined #ruby
Suchit_ has quit [Read error: Connection reset by peer]
Takle has joined #ruby
Suchit_ has joined #ruby
mastr_bennett[x] has joined #ruby
hellangel7 has quit [Remote host closed the connection]
b00stfr3ak has quit [Ping timeout: 260 seconds]
robbyoconnor has quit [Ping timeout: 260 seconds]
<arup_r> Got the answer.. http://stackoverflow.com/questions/4952980/creating-private-class-method But I am shocked with this Ruby feature :-(
HelperW has quit [Ping timeout: 250 seconds]
justinmburrous has joined #ruby
<jhass> arup_r: why?
<jhass> it's quite logical considering that "class methods" are regular methods defined on another object
<jhass> and private is a method that's called on an object
sigurding has quit [Quit: sigurding]
fsapo has joined #ruby
jcromartie has joined #ruby
spyderman4g63 has joined #ruby
<arup_r> Got it now.. After thinking what's going on
nrsk has quit [Read error: Connection reset by peer]
jheg has joined #ruby
neersighted has joined #ruby
skammer4 has quit [Ping timeout: 260 seconds]
skammer4 has joined #ruby
hiyosi has joined #ruby
anarang has quit [Quit: Leaving]
[1]MCDev has joined #ruby
nonmadden has joined #ruby
nrsk has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
cocotton has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
[1]MCDev is now known as MCDev
cocotton has quit [Remote host closed the connection]
moritzs has quit [Remote host closed the connection]
foooobear__ has joined #ruby
hiyosi has quit [Ping timeout: 260 seconds]
charliesome has quit [Quit: zzz]
foooobear_ has quit [Ping timeout: 245 seconds]
rkalfane has joined #ruby
aclearman037 has joined #ruby
fgo has joined #ruby
zarubin has quit [Quit: Leaving.]
sk87 has joined #ruby
charliesome has joined #ruby
Alx08-ru has quit [Ping timeout: 250 seconds]
crazydiamond has joined #ruby
TorpedoSkyline has joined #ruby
shredding has joined #ruby
noop has quit [Ping timeout: 272 seconds]
TorpedoSkyline has quit [Client Quit]
Alx08-ru has joined #ruby
MCDev has quit [Ping timeout: 250 seconds]
TorpedoSkyline has joined #ruby
yfeldblum has quit [Ping timeout: 272 seconds]
mskaesz has quit [Read error: Connection reset by peer]
qmfnp has joined #ruby
doev has quit [Quit: Verlassend]
TorpedoSkyline has quit [Client Quit]
koderok has joined #ruby
mkaesz has joined #ruby
koderok has quit [Client Quit]
TorpedoSkyline has joined #ruby
Alx08-ru is now known as AlexRussia
gdg_alex has joined #ruby
justinmburrous has quit [Remote host closed the connection]
naftilos76 has joined #ruby
krz has quit [Quit: WeeChat 1.0.1]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sigurding has joined #ruby
chiramiso has joined #ruby
gdg_alex has quit [Quit: Leaving]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
krz has joined #ruby
dangerousdave has joined #ruby
tkuchiki has quit [Remote host closed the connection]
ctp has joined #ruby
skripnat has quit [Ping timeout: 272 seconds]
livingstn has joined #ruby
bobishh has joined #ruby
mengu has quit [Remote host closed the connection]
<bobishh> test
AlexRussia is now known as dorbronah
bayed has joined #ruby
shinobi_one has joined #ruby
ferr has quit [Ping timeout: 260 seconds]
skammer4 has quit [Ping timeout: 260 seconds]
Spami has joined #ruby
willgo has quit [Remote host closed the connection]
Advocation has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
lukeholder has joined #ruby
antlong has joined #ruby
Wolland has joined #ruby
yfeldblum has joined #ruby
JeffBonds has joined #ruby
nrsk has quit [Ping timeout: 256 seconds]
<arcsky> i seems to have 3 differnt ruby versions, how can i specify to use 1.9.3 ?
msmith has joined #ruby
Takle has quit [Remote host closed the connection]
AtumT has joined #ruby
kaspertidemann has quit []
thomasxie has left #ruby [#ruby]
Takle has joined #ruby
banister has joined #ruby
dkphenom has joined #ruby
alem0lars has quit [Quit: AFK..]
Wolland has quit [Ping timeout: 240 seconds]
grenierm has joined #ruby
topolinux has joined #ruby
yfeldblum has quit [Ping timeout: 246 seconds]
DaniG2k has quit [Ping timeout: 260 seconds]
msmith has quit [Ping timeout: 245 seconds]
<zeroXten> arcsky: are you using rvm?
klmlfl has joined #ruby
Soda has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ferr has joined #ruby
troyready has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
skammer4 has joined #ruby
cg433n has joined #ruby
krz has quit [Read error: Connection reset by peer]
msmith has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
sigurding has quit [Quit: sigurding]
Phrogz_ has joined #ruby
robbyoconnor has joined #ruby
robbyoconnor is now known as Guest82239
cg433n has quit [Client Quit]
cg433n has joined #ruby
Takle has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pfg has quit [Ping timeout: 260 seconds]
iamjarvo has joined #ruby
iamjarvo has quit [Client Quit]
ikanobori has quit [Ping timeout: 260 seconds]
justinmburrous has joined #ruby
HelperW has joined #ruby
ikanobori has joined #ruby
pfg has joined #ruby
pusewicz has quit [Ping timeout: 260 seconds]
machty has quit [Ping timeout: 260 seconds]
anaeem1_ has quit [Remote host closed the connection]
Bira has joined #ruby
arcsky has quit [Remote host closed the connection]
pusewicz has joined #ruby
cpruitt has joined #ruby
machty has joined #ruby
hiyosi has joined #ruby
pskosinski has joined #ruby
Phrogz_ has quit [Remote host closed the connection]
cg433n has quit [Quit: Lingo - http://www.lingoirc.com]
larissa has joined #ruby
badhatter_ is now known as badhatter
Baluse has quit []
badhatter has quit [Changing host]
badhatter has joined #ruby
spyderman4g63 has quit []
goodenough has joined #ruby
Phrogz_ has joined #ruby
Phrogz_ has quit [Changing host]
Phrogz_ has joined #ruby
fgo has quit []
fgo has joined #ruby
cherwin has quit [Read error: Connection reset by peer]
badhatter is now known as badhatter_
badhatter_ is now known as badhatter
abdulsattar has quit [Ping timeout: 258 seconds]
klmlfl has quit [Remote host closed the connection]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
mleone has joined #ruby
mleone has quit [Max SendQ exceeded]
cocotton has joined #ruby
tonybird has joined #ruby
Xiti` has joined #ruby
cocotton has quit [Remote host closed the connection]
northfurr has joined #ruby
cocotton has joined #ruby
Insanity133 has joined #ruby
Guest82239 has quit [Quit: Konversation terminated!]
crazydiamond_ has joined #ruby
HelperW has quit [Quit: Computer has gone to sleep.]
Guest82239 has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
HelperW has joined #ruby
Guest82239 has quit [Client Quit]
bmurt has joined #ruby
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
evrei has joined #ruby
larissa has quit [Ping timeout: 240 seconds]
Xiti has quit [Ping timeout: 240 seconds]
thejamespinto has quit [Read error: Connection reset by peer]
mengu has joined #ruby
mengu has joined #ruby
ferr has quit [Ping timeout: 240 seconds]
thejamespinto has joined #ruby
HelperW has quit [Ping timeout: 245 seconds]
skammer4 has quit [Ping timeout: 260 seconds]
Panicky has joined #ruby
larissa has joined #ruby
Insanity133 has quit [Ping timeout: 272 seconds]
{xenomorph} is now known as xenomorph
Panicky has quit [Remote host closed the connection]
IrishGringo has joined #ruby
jasooon_ has joined #ruby
jasooon has joined #ruby
mastr_bennett[x] has joined #ruby
sprihodko has joined #ruby
alipoor90 has joined #ruby
alipoor90 has left #ruby [#ruby]
doev has joined #ruby
<zeroXten> surely I'm not the first person to want to rspec a gem after installation?
benzrf|offline is now known as benzrf
douglasssssss has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
coderdad has joined #ruby
jcromartie has joined #ruby
thejamespinto has joined #ruby
sailias has joined #ruby
nonmadden has quit [Remote host closed the connection]
troulouliou_dev has joined #ruby
Imofftopic has quit [Quit: Leaving]
arcsky has joined #ruby
jasooon_ has quit [Ping timeout: 260 seconds]
jasooon has quit [Ping timeout: 260 seconds]
jerius has joined #ruby
oleo has joined #ruby
lxsameer has quit [Quit: Leaving]
jcromartie has quit [Client Quit]
momomomomo has joined #ruby
cherwin has joined #ruby
<klap> anyone here done any micro-service architecture stuff? :)
koderok has joined #ruby
cocotton has quit [Remote host closed the connection]
koderok has quit [Client Quit]
<momomomomo> klap: !used
<helpa> klap: Don't ask "does anyone use <thing>?". It's better to just state your problem and if anyone has used <thing> they will most likely answer.
justinmburrous has quit [Remote host closed the connection]
mary5030 has joined #ruby
LiohAu_ is now known as LiohAu
robustus is now known as robustus|Off
Phrogz_ has quit [Remote host closed the connection]
DaniG2k has joined #ruby
aganov has quit [Quit: Leaving]
thejamespinto has quit [Read error: Connection reset by peer]
arup_r has quit [Remote host closed the connection]
ferr has joined #ruby
ferr has quit [Remote host closed the connection]
skammer4 has joined #ruby
thejamespinto has joined #ruby
snath has quit [Ping timeout: 245 seconds]
momomomomo_ has joined #ruby
freerobby has joined #ruby
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
<arcsky> i did try to change it with rvm. http://pastebin.com/SVy6Whu0
<arcsky> rvm use ruby1.9.3 isnt that correct?
alem0lars has joined #ruby
<momomomomo> run `rvm current` to see what your current version is
<momomomomo> and `rvm --help` for help
IrishGringo has quit [Ping timeout: 250 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
nhhagen has quit [Remote host closed the connection]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
centrx has joined #ruby
zz_jrhorn424 is now known as jrhorn424
shredding has quit [Quit: shredding]
cherwin has quit [Ping timeout: 272 seconds]
HelperW has joined #ruby
Soda has quit [Ping timeout: 260 seconds]
slester has joined #ruby
shinobi_one has joined #ruby
HelperW has quit [Client Quit]
alem0lars has quit [Ping timeout: 240 seconds]
IrishGringo has joined #ruby
Advocation has quit [Quit: Advocation]
iamjarvo has joined #ruby
Tomme has quit [Ping timeout: 258 seconds]
robustus|Off is now known as robustus
cherwin has joined #ruby
hamakn has quit [Remote host closed the connection]
silkfox has joined #ruby
cocotton has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
Wolland has joined #ruby
ciampix has quit [Ping timeout: 240 seconds]
hellangel7 has joined #ruby
IrishGringo has quit [Ping timeout: 258 seconds]
duggiefresh has joined #ruby
sprihodko has quit [Quit: Lingo - http://www.lingoirc.com]
jrhorn424 is now known as zz_jrhorn424
spyderman4g63 has joined #ruby
ctp_ has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
Wolland has quit [Ping timeout: 240 seconds]
ctp has quit [Read error: Connection reset by peer]
sk87 has joined #ruby
ducklobster has joined #ruby
grenierm has quit [Quit: grenierm]
Ankhers has joined #ruby
krz has joined #ruby
abdulsattar has joined #ruby
gerep has joined #ruby
GPH|work has joined #ruby
ciampix has joined #ruby
ryanleesipes has joined #ruby
alem0lars has joined #ruby
ta_ has quit [Remote host closed the connection]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
moritzs has joined #ruby
mary5030 has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
skolman has joined #ruby
zeroNones has joined #ruby
endash has joined #ruby
Macaveli has quit [Ping timeout: 240 seconds]
gerep_ has joined #ruby
benzrf is now known as benzrf|offline
justinmburrous has joined #ruby
Mdgd` has quit [Ping timeout: 245 seconds]
Advocation has joined #ruby
alem0lars has quit [Ping timeout: 260 seconds]
ryanleesipes has quit [Ping timeout: 245 seconds]
Phrogz_ has joined #ruby
momomomomo_ has joined #ruby
clauswitt has quit [Quit: Textual IRC Client: www.textualapp.com]
GPH|work has quit [Changing host]
GPH|work has joined #ruby
gerep has quit [Ping timeout: 272 seconds]
manzo has quit [Ping timeout: 245 seconds]
segmond has quit [Ping timeout: 245 seconds]
<GPH|work> If I have a class Foo (and an instance foo), is there a way that I can define foo.name and foo.name.first so that both are objects with to_s methods?
LiohAu has quit [Quit: LiohAu]
<GPH|work> Or, rather, foo.name.first is a string and foo.name has a to_s method
momomomomo has quit [Ping timeout: 245 seconds]
momomomomo_ is now known as momomomomo
Soda has joined #ruby
zz_jrhorn424 is now known as jrhorn424
<banister> GPH|work what the hell?
jcromartie has joined #ruby
<banister> GPH|work sounds like something reallly weird about your design
nhhagen has joined #ruby
MaciejCzyzewski has joined #ruby
nhhagen has quit [Remote host closed the connection]
<banister> GPH|work you want the to_s of an *array* to return a string, that's going to confuse the heck out of people playing with your objects in a repl
<banister> (to return a string indicating a single element)
Kricir has joined #ruby
nhhagen has joined #ruby
agjacome has joined #ruby
<GPH|work> like, foo.name.first = 'John', foo.name.middle = 'Q', foo.name.last = 'Doe', foo.name (or foo.name.to_s) = 'John Q Doe'
Bira has quit [Remote host closed the connection]
hiyosi has joined #ruby
ctp_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GPH|work> s/=/==/
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> GPH|work you would have to return objects
obscured has joined #ruby
<shevy> the question is - what does foo.name return to you
zer0ne has joined #ruby
<GPH|work> foo.name should have some way to get at all of the parts, but it could be a separate method or variable like foo.name.data
havenwood has joined #ruby
Phrogz_ has quit [Ping timeout: 245 seconds]
<apeiros> banister: expecting to_s to return a string seems sane ;-)
zer0ne has quit [Client Quit]
<apeiros> GPH|work: just define your custom to_s method on the class returned by foo.name
banister has quit [Read error: Connection reset by peer]
<GPH|work> is there a way to do, like, anonymous classes? or do I have to have a full separate class for each thing?
banister has joined #ruby
arup_r has joined #ruby
<apeiros> GPH|work: this may come as a surprise to you - but we do not know your design
ayaz has joined #ruby
<apeiros> we do not know what your foo.name returns
<GPH|work> apeiros: That is an open question, as I mentioned.
krz has quit [Ping timeout: 260 seconds]
arup_r has quit [Remote host closed the connection]
<shevy> what is an anonymous class
<GPH|work> one without a name
<apeiros> GPH|work: in that case - your question doesn't make sense to me.
<shevy> GPH|work well you can have Class.new constructs
hiyosi has quit [Ping timeout: 272 seconds]
nhhagen has quit [Ping timeout: 272 seconds]
Bira has joined #ruby
<shevy> _ = Class.new { def foo; "hello"; end }
<shevy> pretty anonymous
<jeaye> Writing a ruby plugin for vim, I'm having a tough time requiring something relative to the script. The $0 path is the vim working directory and __FILE__ is some other directory relative to the working directory. Any other ideas to get the directory of the ruby script?
<shevy> though I really fail to see the point
oo_ has joined #ruby
<shevy> whether the name is Class.new or Cat.new, it still does or does not do things
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<canton7> jeaye, __FILE__ should be the absolute path to the ruby file?
gerep__ has joined #ruby
Mdgd` has joined #ruby
zegerjan has joined #ruby
<jeaye> canton7: Unfortunately, I think it's fucked because the ruby is being run inline from a viml file.
dorbronah has quit [Ping timeout: 272 seconds]
<jeaye> That would explain why __FILE__ is 'eval'
<canton7> ah, yeah fun
russt has joined #ruby
tjr9898 has joined #ruby
<canton7> so the ruby script doesn't actually exist, as such
<canton7> *ruby script file
<jeaye> Is my only solution to refactor it into a ruby script?
<canton7> I know nothing of vim plugins
<GPH|work> shevy: Well, the primary reason is because I'll have a lot of these, and I'd prefer not to have full classes for each. But there's a distinct possibility (as many have alluded to) that I'm going about this in the wrong way.
<canton7> but if vim is reading the file, then eval-ing it, then there's no way for ruby to know where it was read from
<shevy> sounds more like OpenStruct or something like that really GPH|work
Suchit_ has quit [Quit: Computer has gone to sleep.]
topolinux has quit [Quit: Sto andando via]
<shevy> require 'ostruct'; record = OpenStruct.new; record.name = "John Smith"
<shevy> btw this annoys me
<jeaye> canton7: Yeah, makes sense.
<shevy> to require 'ostruct' but the class is called OpenStruct :\
<jeaye> I'll either get that info from vim or move the script to its own dedicated file.
Bira has quit [Ping timeout: 246 seconds]
<GPH|work> hmm
tagrudev has quit [Quit: Me = Awesome]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gerep_ has quit [Ping timeout: 245 seconds]
jrhorn424 is now known as zz_jrhorn424
jasooon has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<shevy> my rule of thumb in ruby is simple
jasooon_ has joined #ruby
<havenwood> don't beat your ruby with a stick wider than your thumb
<shevy> lol
<centrx> my rule of thumb is ruby is simple
<GPH|work> ruby is far from simple
<GPH|work> but ok
<shevy> GPH|work see? they are messed up
<centrx> remember this rule when it seems not simple
<shevy> nono
zz_jrhorn424 is now known as jrhorn424
<shevy> that is the wrong thing you do here
cocotton has quit [Remote host closed the connection]
<shevy> GPH|work you have to keep ruby simple
<shevy> GPH|work you have to keep your ruby code simple, too
b00stfr3ak has joined #ruby
<GPH|work> shevy: Happy to, if I knew how.
cocotton has joined #ruby
<apeiros> ruby allows you to write simple code
<GPH|work> shevy: I come from Python/JavaScript/PHP.
<apeiros> doesn't mean ruby itself is simple, though. or that all code written with it was.
<shevy> well that is the thing - when you look at a problem, then a simple solution in ruby code will form. it usually is the terse variant
northfurr has quit [Quit: northfurr]
ryanleesipes has joined #ruby
GluonQuark has joined #ruby
Xeago has joined #ruby
spider-mario has joined #ruby
LangeOortjes has joined #ruby
<shevy> I give you an example GPH|work
<shevy> the guy here at https://www.ruby-forum.com/topic/4416199 has not written simple ruby
sevenseacat has quit [Remote host closed the connection]
nrsk has joined #ruby
<shevy> output = File.new
<shevy> output.close
<GPH|work> The bottom line is, I have a huge, multi-layered hash (from JSON) whose elements I would like to access consistently across uses, but sometimes I need to clean up or modify the data before I return it.
<shevy> the first reply gives a somewhat better solution as the last point (though not very elegant IMO)
russt has quit [Quit: russt]
<shevy> also I wonder why YAML.load_file() is not used hmm
<shevy> GPH|work ok so you have a data structure yes?
<shevy> the simplest way is to try to simulate it with an object as close as possible to its natural statue
<GPH|work> the Hash/JSON, you mean?
<shevy> *state
<shevy> yes
<GPH|work> ok
jasooon_ has quit [Ping timeout: 245 seconds]
Xeago_ has quit [Ping timeout: 240 seconds]
<shevy> so your ruby object must mimic both the original dataset as closely as possible, but also have the necessary methods to clean up / modify the data
<GPH|work> so what do I do with the nested hashes? have a new object for each?
<shevy> that sounds like overkill
jasooon has quit [Ping timeout: 244 seconds]
rkalfane has joined #ruby
<GPH|work> that's what I was thinking
<shevy> the question is what you need from that hash exactly
alem0lars has joined #ruby
troulouliou_dev has quit [Quit: Leaving]
dawkirst has joined #ruby
gerep__ has quit [Ping timeout: 272 seconds]
<shevy> let me give you an example for the object I use to modify a dataset I use to compile stuff from source
Advocation has quit [Quit: Advocation]
<shevy> ok something is wrong... but ignore that for a moment: http://pastie.org/pastes/9610401/text
<shevy> it will then respond to stuff like
<shevy> object.extract_to? # => "/Depot/Temp"
<shevy> well admittedly that does not have a nested hash
<shevy> ah wait
hiyosi has joined #ruby
<shevy> I know how to get one
treehug88 has joined #ruby
<shevy> if I include all individual datas from all different programs into one hash
<shevy> so I have one for htop, one for gcc, one for gtk+, one for atk etc...
<jhass> GPH|work: I think you won't get any good suggestions here until you fully describe your datastructure and your desired API to (in a gist)
ciampix has left #ruby ["Ex-Chat"]
<shevy> his thinking has already gotten much clearer
klmlfl has joined #ruby
cocotton has quit [Remote host closed the connection]
<GPH|work> jhass: It's fairly generic. I have a nested hash whose values I would like to access and process at various levels.
mary5030 has joined #ruby
<apeiros> "I have data and want to do stuff"
<apeiros> sorry GPH|work, but that's not helpful information
<jhass> Then use the Hash class
<GPH|work> apeiros: I have data and I want to get at it. That's all I'm asking.
<jhass> it's at that level generic
justinmburrous has quit [Remote host closed the connection]
<GPH|work> apeiros, jhass: Get at it, potentially modify it, and then return it.
nhhagen has joined #ruby
robustus is now known as robustus|Off
yeticry has quit [Ping timeout: 272 seconds]
<jhass> you can't wrap the modfiying without knowing your data structure
<jhass> def load_my_data; ...; end; load_my_data #=> {....}
jimmyy has quit [Ping timeout: 272 seconds]
<GPH|work> jhass, apeiros: I would like to create an abtraction layer between the data itself and the script waiting that data
<GPH|work> I know the structure of it
<GPH|work> But it's large
<GPH|work> so I'm trying to keep it simple, if possible
<jhass> "I think you won't get any good suggestions here until you fully describe your datastructure and your desired API to (in a gist)"
yeticry has joined #ruby
ffranz has joined #ruby
cocotton has joined #ruby
yfeldblum has joined #ruby
<GPH|work> I don't know what more I can say. This isn't a particular specialized question.
<GPH|work> particularly
abdulsattar has quit [Ping timeout: 260 seconds]
oo_ has quit [Remote host closed the connection]
robustus|Off is now known as robustus
lmickh has joined #ruby
bascht has quit [Quit: WeeChat 0.4.2]
<jhass> okay, then I have no the slightest idea what you want from us
oo_ has joined #ruby
dangerousdave has joined #ruby
Wolland has joined #ruby
fsapo has quit [Ping timeout: 260 seconds]
<shevy> GPH|work ok but what will you return from your nested hash exactly? I mean, you need to decide what to return in your methods
<shevy> is it a string... will it be a sub-hash ...
Akagi201 has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 272 seconds]
Akagi201 has joined #ruby
Bira has joined #ruby
<ducklobster> I'm trying to extend TCPSocket to add a separate method (basically an extension of #write) but when I try running my app I get a superclass mismatch error (https://gist.github.com/anonymous/be61b72bf0ec96e5bebb)
IrishGringo has joined #ruby
<ducklobster> Any ideas on what I'm doing wrong?
<GPH|work> jhass, shevy: ^
oo_ has quit [Ping timeout: 260 seconds]
workmad3 has joined #ruby
<jhass> ducklobster: look up the original superclass and specify it while reopening the class (or just subclass to make your own TCPSocket). Though I thought you could reopen without, mmh
<shevy> ok the problem is that you need to return an object that will respond to this method call GPH|work
<shevy> the example you gave there: person.name #=> { "first" => "John", "middle" => "Quincy", "last" => "Doe" }
<jhass> GPH|work: that's a single example, we can't deduce a general design from it
<shevy> person.name.to_s #=> "John Quincy Public"
<shevy> is of course not a Hash, it just looks like one
<shevy> the example is perfectly clear
momomomomo has quit [Quit: momomomomo]
hmsimha has quit [Ping timeout: 250 seconds]
<jhass> GPH|work: for example in the presented case a Person class and a (Person)Name class are completely sensible
`Dath has joined #ruby
<shevy> he wants to treat a hash data structure as nested method calls
<GPH|work> shevy: All of the things I want to do are analogous to this example
<jhass> they could inherit from Struct or OpenStruct and define their own initializer + methods
alem0lars has quit [Quit: AFK..]
zorak8 has joined #ruby
<GPH|work> I think I'm also restricted to Ruby 1.9.3
shinobi_one has joined #ruby
paulfm has joined #ruby
<shevy> well both structs should work fine there
nettoweb has joined #ruby
Bira has quit [Ping timeout: 240 seconds]
geggam has joined #ruby
nettoweb has quit [Max SendQ exceeded]
<toretore> ducklobster: also, don't add methods to a class like TCPSocket
<toretore> subclass it
<GPH|work> shevy: I don't see OpenStruct in the 1.9.3 docs
nettoweb has joined #ruby
<shevy> hmmm
<toretore> ostruct
<toretore> not in core
<GPH|work> I was looking at this list: http://www.ruby-doc.org/core-1.9.3/
stef_204 has quit [Ping timeout: 260 seconds]
<GPH|work> (since the 2.x equivalent had it)
<shevy> google is much better at finding those docs hehehe
<ducklobster> jhass: When you say specify it, what is the syntax for that? SuperClass::TCPSocket isn't correct right? That would be the module / namespace, not the superclass?
<ducklobster> jhass: Would it be TCPSocket < SuperClass?
<jhass> ducklobster: class TCPSocket < Socket (I didn't look it up)
<shevy> however, I don't think either of them will create nested methods
<jhass> yes
robustus is now known as robustus|Off
twohlix has joined #ruby
<ducklobster> toretore: if the naming isn't generic what are the dangers of adding methods to a class like TCPSocket?
`Dath has quit [Ping timeout: 240 seconds]
icebourg has joined #ruby
<jhass> ducklobster: imagine everyone would do it, you have conflicting libraries in no time
silkfox has quit [Ping timeout: 272 seconds]
<toretore> ducklobster: it's frowned upon for a lot of reasons
snath has joined #ruby
<toretore> most of all because it's completely unnecessary
claymore has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
<Hanmac> ducklobster: the order is important ... you can just use class TCPSocket; end AFTER you required "socket" ... if you use it BEFORE you require it only then that superclass mismatch does happen
<toretore> you're double dipping your code into the bowl that is the stdlib
alem0lars has joined #ruby
freezey has joined #ruby
zeroNones has quit [Ping timeout: 244 seconds]
iFire has left #ruby [#ruby]
mastr_bennett[x] has quit [Quit: My iMac has gone to sleep. ZZZzzz…]
<apeiros> ducklobster: if you want to extend core classes, then use refinements
Advocation has joined #ruby
<apeiros> way less dangerous
<ducklobster> All valid points, I think I will just subclass TCPSocket for my purposes
<jhass> apeiros: did you use refinements in production yet?
<pagioss> hi guys i have a weird problem where sometimes i get some partial writes on my yml file: http://pastebin.com/HfgX6PDJ
<apeiros> jhass: no. my new framework uses them. I'm curious to see how well it goes.
chiramiso has quit [Ping timeout: 272 seconds]
<ducklobster> However, question: If I extend TCPSocket somewhere, then in another file require 'socket', will the scope of the other file have my extended version or the original?
<apeiros> but will be a while until that hits production
<pagioss> it writes 0' on the last line of yml
freezey has quit [Remote host closed the connection]
<jhass> apeiros: hah, any issue tracker I can watch for it? :P
freezey has joined #ruby
cocotton has quit [Remote host closed the connection]
<apeiros> jhass: I'll quite surely announce it here and on the ML if/when I release it for public scrutiny ;-)
<jhass> great
<pagioss> so the question is is this a correct write? File.open("/var/www/profiles/current_general_config.yml","w") {|f| YAML.dump(data,f) }
<apeiros> might well take another year, though. I don't have as much time to work on it as I wish.
silkfox has joined #ruby
<apeiros> and due to time constraints I'm forced to use rails for its intended purpose atm :-/ so even less time to work on it.
cocotton has joined #ruby
<shevy> GPH|work here is a stub http://pastie.org/9610462
<Hanmac> pagioss: maybe better: File.write("/var/www/profiles/current_general_config.yml",YAML.dump(data))
kwd_ has quit [Quit: kwd_]
<pagioss> Hanmac: makes any difference?
<shevy> GPH|work I think those nested method calls are a problem
<Hanmac> pagioss: hm not so much
jontmorehouse has joined #ruby
<Hanmac> ducklobster: like i said ... you need to require BEFORE you extend it ... its like making a roof without having walls in your house ...
<shevy> this is possible
<shevy> futurama showed us
einarj has quit [Remote host closed the connection]
<GPH|work> shevy: "in `to_s': undefined method `values'"
zeroNones has joined #ruby
<shevy> GPH|work yeah I guess you can remove the to_s method for now
lukeholder has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> I think there is no simple way to discern between object.foo # We want string output here; and object.foo.bar # We also want string output here
<shevy> from a hash parent structure
<Hanmac> shevy: hm no in that case you need your own object type that does have a to_s and maybe a to_str method too
<pagioss> Hanmac: the file locks whrn it is writing right?
<shevy> k
phoo1234567 has joined #ruby
<shevy> GPH|work probably define to_str and see whether that works
thagomizer has joined #ruby
<GPH|work> shevy, Hanmac: Is to_str a special method?
<shevy> yeah
msmith has quit [Remote host closed the connection]
phoo1234567 has quit [Max SendQ exceeded]
<shevy> "The only core class that implements to_str is String itself."
<shevy> hmmm
b00stfr3ak has quit [Ping timeout: 260 seconds]
<shevy> Hanmac should he really modify to_str
<apeiros> no
phoo1234567 has joined #ruby
<shevy> k then ignore what Hanmac said about to_str GPH|work
<shevy> hahaha :D
<Hanmac> "to_s" means "i can look like a string" "to_str" means "i can BE a string" ... or something like that ... never used to_str myself
Insanity133 has joined #ruby
<shevy> lol
<apeiros> to_str is even more "I AM a String, I just happen to use a different class"
<shevy> cool
<shevy> a chamelion
<shevy> erm that is written as "chameleon"
nonmadden has joined #ruby
<shevy> though it's cooler when it is a lion for sure
kaspertidemann has joined #ruby
<apeiros> for example if you'd implement a RopeString class, you'd define to_str
dawkirst has quit [Remote host closed the connection]
<apeiros> or a GapBufferString
<shevy> oh you like to tie up stuff
<apeiros> or a CharacterArrayString
<apeiros> or whatever other ways to implement strings exist
robustus|Off is now known as robustus
<shevy> a CharacterArrayString would confuse the hell outta me
<shevy> I can't decide on what it is
dawkirst has joined #ruby
nhhagen has quit [Ping timeout: 272 seconds]
<apeiros> shevy: no, ropes, gap buffers and character arrays are different ways to implement strings
Darryl has joined #ruby
<Hanmac> shevy so its more a Camel-lion ?;P
alem0lars has quit [Quit: AFK..]
banister has quit [Read error: Connection reset by peer]
banister_ has joined #ruby
<shevy> that must look ugly
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<apeiros> >>class CharacterArrayString; def self.from(str); new(str.unpack("U*"), Encoding::UTF_8); end; def initialize(chars, encoding); @chars = chars; @encoding = encoding; end; def to_str; @chars.pack("U*"); end; end; "bar"+CharacterArrayString.from("foo")
<eval-in_> apeiros => "barfoo" (https://eval.in/200776)
<apeiros> shevy: ^
luckyruby has joined #ruby
<shevy> camel head and lion head fur/mane
crazydiamond has quit [Remote host closed the connection]
crazydiamond_ has quit [Remote host closed the connection]
robustus is now known as robustus|Off
Insanity133 has quit [Ping timeout: 272 seconds]
<shevy> apeiros I still have not reached the point of understanding .pack and .unpack - all I know is that it uses a special code which I just can't seem to remember offhand
<apeiros> shevy: .unpack("U*") returns the unicode codepoints for each character
bal has quit [Quit: bal]
<apeiros> .pack("U*") does the reverse. creates a string from unicode codepoints.
jonmorehouse has joined #ruby
<apeiros> >> "Aä".unpack("U*")
Phrogz_ has joined #ruby
* apeiros pokes eval-in_
gsd has joined #ruby
mikepack has joined #ruby
stef_204 has joined #ruby
jontmorehouse has quit [Ping timeout: 260 seconds]
tomgavin has joined #ruby
<Hanmac> apeiros: evalin still does not like unicode :(
pagioss is now known as pagios
Advocation has quit [Quit: Advocation]
<shevy> hmm
Phrogz_ has quit [Ping timeout: 246 seconds]
<shevy> so that is why it is U I guess
<shevy> if that is the case then I can remember it
<shevy> U ... Unicode
<shevy> I like eval-in_
ctp has joined #ruby
jonmorehouse has quit [Ping timeout: 260 seconds]
<shevy> we don't need snowman method names http://www.fileformat.info/info/unicode/char/2603/index.htm
<pontiki> i do
mleone has joined #ruby
<shevy> hehehe
<centrx> Comments snowy weather
<shevy> Unicode even cares about snowmen
<pontiki> snowman is the best unicode character ever
<shevy> Hanmac do you know that horror movie with a scarecrow?
<pontiki> wizard of oz?
<shevy> like one guy that got murdered, then took revenge as a scarecrow
<shevy> I saw it last when I was a child, I don't remember much... I think it may have been http://en.wikipedia.org/wiki/Dark_Night_of_the_Scarecrow but I am not sure
Takle_ has quit [Remote host closed the connection]
nifty___ is now known as niftyn8
<pontiki> you're not thinking of just "The Crow" are you?
<Hanmac> shevy: http://en.wikipedia.org/wiki/Island_of_Lost_Souls_%282007_film%29 this one has a scarecrow ... but its only a summon in that story
<shevy> pontiki not sure
<shevy> I remember one guy died in a big silo, killed by a rain of corn bushels or something like that
<pontiki> oh, not The Crow, then
<shevy> and only one arm was reaching above as he died slowly
<shevy> and more kernels fell down
jobewan has quit [Remote host closed the connection]
<shevy> Hanmac yeah most horror movies iterate common themse
<shevy> vampires... zombies ... animated stuff (chucky!!!)
Phrogz_ has joined #ruby
Phrogz_ has quit [Changing host]
Phrogz_ has joined #ruby
jasooon_ has joined #ruby
jasooon has joined #ruby
wpp has quit [Quit: ZZZzzz…]
<shevy> except for the old simpson horror episodes
jrhorn424 is now known as zz_jrhorn424
oso|away is now known as oso96_2000
zz_jrhorn424 is now known as jrhorn424
skammer4 has quit [Ping timeout: 272 seconds]
Takle has joined #ruby
<Hanmac> shevy: doctorWho episodes with Moffat are similar ... like gasmask zombies, clockwork soilders, stone-statues, empty spacesuits, agents in suits, meat-puppets, etc ...
<shevy> hmm
nrsk has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<shevy> tv makes us dumb
<shevy> or it gives us new ideas
<shevy> :>
ctp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ndrei has quit [Ping timeout: 246 seconds]
<pontiki> this is because the audience likes these things. and it's not the horror bits that are what bring people back, it's how they deal with them and each other along the way.
fabrice31 has quit [Remote host closed the connection]
jrhorn424 is now known as zz_jrhorn424
Phrogz_ has quit [Ping timeout: 258 seconds]
froggy has joined #ruby
sinkensabe has quit [Remote host closed the connection]
froggy is now known as Guest63715
jottr_ has quit [Ping timeout: 260 seconds]
<Hanmac> pontiki: as long as the things does not sparkle everything is okay ;P
havenwood has quit [Remote host closed the connection]
jasooon_ has quit [Ping timeout: 260 seconds]
jasooon has quit [Ping timeout: 260 seconds]
havenwood has joined #ruby
<pontiki> even in twilight, the sparkly vamps are just a tiny annoyance to the droning self-indulgence and wallowing self-pity of bella
nhhagen has joined #ruby
<shevy> I kinda got stuck in the 1980es horror genre
<pontiki> wes craven stuff?
<Hanmac> shevy yeah you mean an old time ago when vampires still know how to be real vampires ;P
fgo has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
<pontiki> nah, the 70's dracula was *nothing* on Nosferatu
niftyn8 is now known as nifteen8
<shevy> Hanmac hmm...
dorbronah has joined #ruby
nifteen8 is now known as n1ftyn8
yfeldblum has joined #ruby
arup_r has joined #ruby
<shevy> pontiki I think wes craven was older
<shevy> but actually I guess I was wrong
LekeFly has joined #ruby
therue has left #ruby [#ruby]
<shevy> "The Fearless Vampire Killers" - 1967 now that was great horror hahaha
naftilos76 has quit [Remote host closed the connection]
msmith has joined #ruby
<Hanmac> shevy someone did test my gemtree on some rails installation: http://downloads.yorickpeterse.com/images/rails.png
<shevy> oh dear god
b00stfr3ak has joined #ruby
<shevy> what are all those numbers?
zz_jrhorn424 is now known as jrhorn424
chrishough has quit [Quit: Textual IRC Client: www.textualapp.com]
<shevy> that graph says that activesupport is the most important component of rails
<Hanmac> when gem A does need a special version of gem B
chrishough has joined #ruby
freerobby1 has joined #ruby
Aaaal has quit [Quit: Aaaal]
patrick99e99 has joined #ruby
lkba has quit [Ping timeout: 260 seconds]
<Hanmac> the graph does also shows that many gems can be cleaned up, and other gems should be updated if not already happen (currently i still dont look at the server if possible newer versions can be installed)
freerobby has quit [Read error: Connection reset by peer]
rippa has joined #ruby
Aaaal has joined #ruby
zarubin has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
jheg has quit [Quit: jheg]
jespada has quit [Quit: Leaving]
doev has quit [Ping timeout: 245 seconds]
Wolland_ has joined #ruby
mikecmpbll has quit [Ping timeout: 245 seconds]
jrhorn424 is now known as zz_jrhorn424
patrick99e99 has quit [Ping timeout: 244 seconds]
AFKGeek has quit [Quit: Leaving]
cocotton has quit [Remote host closed the connection]
havenwood has joined #ruby
mikecmpbll has joined #ruby
Wolland has quit [Ping timeout: 240 seconds]
abdulsattar has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
seamon has joined #ruby
cocotton has joined #ruby
flagg0204 has quit [Quit: Cya..]
flagg0204 has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
jonr22 has quit [Quit: WeeChat 0.4.2]
zz_jrhorn424 is now known as jrhorn424
Spami has quit [Quit: This computer has gone to sleep]
DaniG2k has quit [Quit: leaving]
gaussblurinc1 has quit [Quit: Leaving.]
shinobi_one has joined #ruby
<jhass> Hanmac: http://cloud.aeshna.de/u/mrzyx/gemtree.png "another rails app" :P
cocotton has quit [Remote host closed the connection]
chiramiso has joined #ruby
<Hanmac> jhass: as you can see it does use the yellow coloration for styling the ones that are specifiyed in the GemFile
<pontiki> is that a dependency graph?
cocotton has joined #ruby
maestrojed has joined #ruby
<Hanmac> pontiki: yeah, something wrong with it?
zarubin has quit [Quit: Leaving.]
zarubin has joined #ruby
<pontiki> not at all. activesupport should be the center of attention for that in a stock rails app
shinobi_one has quit [Ping timeout: 244 seconds]
jottr_ has joined #ruby
pagios has quit [Ping timeout: 272 seconds]
IrishGringo has quit [Ping timeout: 260 seconds]
<Hanmac> jhass: the red hexagons are missing gems ... you might need to install them because depending on the gemtree you somehow need them?
claymore has quit [Ping timeout: 272 seconds]
Biohazard has joined #ruby
chiramiso has quit [Ping timeout: 272 seconds]
<jhass> Hanmac: I bundled openly, sorry but I trust bundler more than you to find all gems :P
kaspertidemann has quit []
jrhorn424 is now known as zz_jrhorn424
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
<shevy> !!!
<jhass> bundle | grep spork
<jhass> Using spork 1.0.0rc4
<shevy> he thinks your tree maker has a bug Hanmac!
cocotton has quit [Remote host closed the connection]
aspires has joined #ruby
sailias has quit [Quit: Leaving.]
<Hanmac> jhass: ah yes, add the "-p" flag for adding "pre release" because they are not added as default
sailias1 has joined #ruby
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
Bira has joined #ruby
GPH|work has quit [Remote host closed the connection]
cocotton has joined #ruby
stef_204 has joined #ruby
<Hanmac> hm ok some in the list are not styled correct (because for sample fuubar should also be filled)
claymore has joined #ruby
krz has joined #ruby
gaganjyot has joined #ruby
gaganjyot has left #ruby ["Leaving"]
User458764 has joined #ruby
apeiros has quit [Remote host closed the connection]
apeiros has joined #ruby
awc737 has joined #ruby
chiramiso has joined #ruby
sk87 has joined #ruby
jgrevich has joined #ruby
Akagi201_ has joined #ruby
<Hanmac> jhass: if you use gemfile you might be interested in "--gemfile-colorscheme pastel1" that does use a different color for each gemfile-group
phrozen77 has quit [Changing host]
phrozen77 has joined #ruby
jackjackdrpr has joined #ruby
jottr_ has quit [Ping timeout: 244 seconds]
Phrogz_ has joined #ruby
szarubin has joined #ruby
fgo has joined #ruby
szarubin has left #ruby [#ruby]
xenomorph is now known as {xenomorph}
tjr9898 has quit [Remote host closed the connection]
{xenomorph} is now known as xenomorph
Akagi201 has quit [Ping timeout: 245 seconds]
apeiros has quit [Ping timeout: 260 seconds]
echevemaster has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
tjr9898 has joined #ruby
thejamespinto has joined #ruby
sinkensabe has joined #ruby
tjr9898 has quit [Read error: Connection reset by peer]
chiramiso has quit [Ping timeout: 272 seconds]
abdulsattar has quit [Ping timeout: 246 seconds]
tjr9898 has joined #ruby
tvw has quit []
LekeFly has quit [Ping timeout: 244 seconds]
j_mcnally has joined #ruby
ghostmoth has joined #ruby
Phrogz_ has quit [Ping timeout: 272 seconds]
fgo has quit [Ping timeout: 245 seconds]
<havenwood> i want a version with 3d glasses!
terlar has quit [Ping timeout: 260 seconds]
shredding has joined #ruby
bahar has quit [Changing host]
bahar has joined #ruby
michaeldeol has joined #ruby
Mattias has quit [Ping timeout: 260 seconds]
kobain has joined #ruby
Bira has quit []
kobain has quit [Max SendQ exceeded]
kobain has joined #ruby
Mattias has joined #ruby
chipotle has joined #ruby
dorbronah has quit [Ping timeout: 272 seconds]
Takle has quit [Remote host closed the connection]
neoxquick has joined #ruby
dawkirst has quit [Remote host closed the connection]
dorbronah has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
fgo has joined #ruby
Kricir has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
klaut has quit [Remote host closed the connection]
j_mcnall_ has joined #ruby
zenspider_ has joined #ruby
Takle has joined #ruby
mwlang_ has joined #ruby
Biohazard has quit [Read error: Connection reset by peer]
Wolland has joined #ruby
tenseiten has joined #ruby
Dreamer3 has joined #ruby
Biohazard has joined #ruby
cndiv has joined #ruby
rkalfane has joined #ruby
hfp_ has joined #ruby
cjk101010_ has joined #ruby
tjr9898_ has joined #ruby
freezey_ has joined #ruby
orionstein_ has joined #ruby
ghostmoth has joined #ruby
warreng_ has joined #ruby
jackyalcine has joined #ruby
Morrolan_ has joined #ruby
robustus|Off is now known as robustus
^mg^ has joined #ruby
alem0lars has joined #ruby
bricker`work has joined #ruby
devyn_ has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
camilasan has joined #ruby
bluOxigen has joined #ruby
speakingcode has joined #ruby
bluehavana has joined #ruby
abdulsattar has joined #ruby
qmfnp is now known as qmfnp_lunch
kriskrop1 has joined #ruby
kiki_lam1 has joined #ruby
Advocation has joined #ruby
crazed_ has joined #ruby
crazed_ has quit [Changing host]
crazed_ has joined #ruby
queequeg1 has joined #ruby
jheg has joined #ruby
patteh has joined #ruby
mwlang has quit [Ping timeout: 244 seconds]
zenspider has quit [Ping timeout: 244 seconds]
hfp has quit [Ping timeout: 244 seconds]
orionstein has quit [Ping timeout: 244 seconds]
jalcine has quit [Ping timeout: 244 seconds]
cjk101010 has quit [Ping timeout: 244 seconds]
warreng has quit [Ping timeout: 244 seconds]
mleone has quit [Ping timeout: 244 seconds]
j_mcnally has quit [Ping timeout: 244 seconds]
Morrolan has quit [Ping timeout: 244 seconds]
WillAmes has quit [Ping timeout: 244 seconds]
Dreamer3__ has quit [Ping timeout: 244 seconds]
kriskropd has quit [Ping timeout: 244 seconds]
speaking1ode has quit [Ping timeout: 244 seconds]
tjr9898 has quit [Ping timeout: 244 seconds]
thoolihan has quit [Ping timeout: 244 seconds]
magic has quit [Ping timeout: 244 seconds]
neoxquick has quit [Ping timeout: 244 seconds]
devyn has quit [Ping timeout: 244 seconds]
cephalostrum has quit [Ping timeout: 244 seconds]
queequeg2 has quit [Ping timeout: 244 seconds]
Platini has quit [Ping timeout: 244 seconds]
vircung has quit [Ping timeout: 244 seconds]
fumduq has quit [Ping timeout: 244 seconds]
kiki_lamb has quit [Ping timeout: 244 seconds]
minecoins has quit [Ping timeout: 244 seconds]
Davey has quit [Ping timeout: 244 seconds]
crazed has quit [Ping timeout: 244 seconds]
spider-mario has quit [Ping timeout: 244 seconds]
Heartbroken has quit [Ping timeout: 244 seconds]
Wolland_ has quit [Ping timeout: 244 seconds]
ht__th has quit [Ping timeout: 244 seconds]
chuck_ has quit [Ping timeout: 244 seconds]
wookiehangover has quit [Ping timeout: 244 seconds]
statis has quit [Ping timeout: 244 seconds]
Drakevr has quit [Ping timeout: 244 seconds]
kies has quit [Ping timeout: 244 seconds]
shaman42_ has quit [Ping timeout: 244 seconds]
seitensei has quit [Ping timeout: 244 seconds]
lsone_ has quit [Ping timeout: 244 seconds]
Roa has quit [Ping timeout: 244 seconds]
jle` has quit [Ping timeout: 244 seconds]
shaman42 has joined #ruby
binaryhat has quit [Ping timeout: 244 seconds]
asuka has quit [Ping timeout: 244 seconds]
thejoecarroll has quit [Ping timeout: 244 seconds]
mg^^ has quit [Ping timeout: 244 seconds]
camilasann has quit [Ping timeout: 244 seconds]
Anarch has quit [Ping timeout: 244 seconds]
patteh_ has quit [Ping timeout: 244 seconds]
irk_ has quit [Ping timeout: 244 seconds]
monsieurp has quit [Ping timeout: 244 seconds]
freezey has quit [Ping timeout: 244 seconds]
Exlee_ has quit [Ping timeout: 244 seconds]
pizzaops has quit [Ping timeout: 244 seconds]
orionstein_ is now known as orionstein
mwlang_ is now known as mwlang
chuck has joined #ruby
Anarch_ has joined #ruby
warreng_ is now known as warreng
Roa_ has joined #ruby
lsone has joined #ruby
Drakevr has joined #ruby
hfp_ is now known as hfp
pizzaops has joined #ruby
camt has quit [Remote host closed the connection]
wookiehangover has joined #ruby
camt has joined #ruby
kies has joined #ruby
monsieurp has joined #ruby
monsieurp has joined #ruby
thejoecarroll has joined #ruby
ht__th has joined #ruby
vircung has joined #ruby
statis has joined #ruby
cephalostrum has joined #ruby
fumduq has joined #ruby
xlii has joined #ruby
thumpba has quit [Remote host closed the connection]
minecoins has joined #ruby
Davey has joined #ruby
asuka has joined #ruby
thoolihan has joined #ruby
j_mcnall_ is now known as j_mcnally
bobishh has quit [Ping timeout: 258 seconds]
jle` has joined #ruby
binaryhat has joined #ruby
irk has joined #ruby
Advocation has quit [Client Quit]
Platini has joined #ruby
zarubin has quit [Quit: Leaving.]
andikr has quit [Remote host closed the connection]
lewix has joined #ruby
spider-mario has joined #ruby
bedouin has joined #ruby
jasooon has joined #ruby
jasooon_ has joined #ruby
Mso150 has joined #ruby
charliesome has quit [Quit: zzz]
zarubin has joined #ruby
yfeldblum has joined #ruby
stunder has joined #ruby
Stalkr_ has joined #ruby
stef_204 has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
jasooon_ has quit [Ping timeout: 244 seconds]
jay__ has joined #ruby
jottr_ has joined #ruby
chthon has quit [Ping timeout: 260 seconds]
carraroj has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
jasooon has quit [Ping timeout: 272 seconds]
twohlix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Morrolan_ is now known as Morrolan
banister_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
yfeldblum has quit [Ping timeout: 240 seconds]
deric_skibotn has joined #ruby
Heartbroken has joined #ruby
buub has joined #ruby
alexblackie has joined #ruby
ldnunes has quit [Ping timeout: 260 seconds]
Adran has quit [Quit: Este é o fim.]
kenndel_ has joined #ruby
jottr_ has quit [Ping timeout: 272 seconds]
Aaaal has quit [Quit: Aaaal]
thumpba has joined #ruby
apeiros has joined #ruby
ldnunes has joined #ruby
kenndel has quit [Ping timeout: 272 seconds]
shredding has quit [Quit: shredding]
zegerjan has quit [Quit: WeeChat 1.0.1]
x1337807x has joined #ruby
x1337807x has quit [Max SendQ exceeded]
Advocation has joined #ruby
mikecmpbll has quit [Ping timeout: 260 seconds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
benzrf|offline is now known as benzrf
ep3static has joined #ruby
x1337807x has joined #ruby
banister has joined #ruby
Mattias has quit [Ping timeout: 272 seconds]
shredding has joined #ruby
Mattias has joined #ruby
JoshGlzBrk has joined #ruby
twohlix has joined #ruby
ursooperduper has joined #ruby
emrox has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fsapo has joined #ruby
codeFiend has joined #ruby
pagioss has joined #ruby
ldnunes has quit [Ping timeout: 272 seconds]
roolo has quit [Remote host closed the connection]
roolo has joined #ruby
patrick99e99 has joined #ruby
Mso150 has quit [Remote host closed the connection]
warreng has quit [Changing host]
warreng has joined #ruby
fsapo has quit [Remote host closed the connection]
jeromegn has joined #ruby
Takle has quit [Remote host closed the connection]
Aaaal has joined #ruby
goodenough has quit [Remote host closed the connection]
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ldnunes has joined #ruby
fsapo has joined #ruby
boombadaroomba has joined #ruby
roolo_ has joined #ruby
roolo has quit [Read error: Connection reset by peer]
Mso150 has joined #ruby
joonty has quit [Quit: Leaving]
thagomizer has quit [Quit: Leaving.]
Biohazard has left #ruby ["WeeChat 1.1-dev"]
jthomp has joined #ruby
thagomizer has joined #ruby
Adran has joined #ruby
_1_eapp123 has joined #ruby
mocfive has quit [Remote host closed the connection]
shinobi_one has joined #ruby
mocfive has joined #ruby
bigkevmcd_ has joined #ruby
tylersmith has joined #ruby
codeFiend has quit [Quit: codeFiend]
russt has joined #ruby
roolo_ has quit [Ping timeout: 245 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
benzrf is now known as benzrf|offline
bigkevmcd has quit [Ping timeout: 260 seconds]
msmith has quit []
mesamoo has joined #ruby
mocfive has quit [Ping timeout: 246 seconds]
shinobi_one has quit [Ping timeout: 244 seconds]
msmith has joined #ruby
Insanity133 has joined #ruby
tylersmith has quit [Ping timeout: 251 seconds]
vinleod has joined #ruby
jackjackdrpr1 has joined #ruby
jthomp has quit [Quit: Textual IRC Client: www.textualapp.com]
wpp has joined #ruby
alex88 has quit [Quit: Leaving...]
mkaesz has quit [Remote host closed the connection]
baroquebobcat has joined #ruby
Takle has joined #ruby
_lucid_ has quit [Ping timeout: 258 seconds]
jackjackdrpr has quit [Read error: Connection reset by peer]
cocotton has quit [Remote host closed the connection]
Kricir has joined #ruby
Doc_IX has quit [Quit: 0.4.3]
Insanity133 has quit [Ping timeout: 244 seconds]
havenwood has quit [Remote host closed the connection]
_lucid_ has joined #ruby
Suchit_ has joined #ruby
havenwood has joined #ruby
AtumT has quit [Ping timeout: 260 seconds]
Akagi201_ has quit []
<eam> rvm is so enormously slow
thejamespinto has quit [Read error: Connection reset by peer]
Doc_X has joined #ruby
Takle has quit [Ping timeout: 260 seconds]
<Sou|cutter> eam: you have 4 options. 1) say nothing 2) help fix it 3) use something else / don't use it, 4) bitch about it. 4 is the lamest of the options
shredding has quit [Quit: shredding]
qba73 has quit [Remote host closed the connection]
havenwood has quit [Remote host closed the connection]
thejamespinto has joined #ruby
ghr has quit [Ping timeout: 260 seconds]
jthomp has joined #ruby
msmith has quit []
krisquigley has quit [Remote host closed the connection]
kenneth has quit [Quit: Bye.]
justinmburrous has joined #ruby
Phrogz_ has joined #ruby
seamon has quit [Quit: Zzzzzzz]
krisquigley has joined #ruby
kaffeebohne has left #ruby ["WeeChat 1.0"]
<pontiki> but complaining is the national sport!
wallerdev has joined #ruby
msmith has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
<Sou|cutter> yeah, I do it all the time :)
Adran has quit [Quit: Este é o fim.]
<pontiki> and our only exercise is leaping to conclusions
bigkevmcd_ is now known as bigkevmcd
* Sou|cutter cheers
cocotton has joined #ruby
jthomp has quit [Ping timeout: 245 seconds]
justinmburrous has quit [Ping timeout: 246 seconds]
Phrogz_ has quit [Ping timeout: 250 seconds]
elaptics is now known as elaptics`away
shredding has joined #ruby
kenneth has joined #ruby
zz_jrhorn424 is now known as jrhorn424
krisquigley has quit [Ping timeout: 244 seconds]
Adran has joined #ruby
tylersmith has joined #ruby
axl_ has joined #ruby
Xeago_ has joined #ruby
skmp__ has joined #ruby
AtumT has joined #ruby
skmp__ is now known as skmp
ptrrr has joined #ruby
skmp is now known as skmp_
Advocation has quit [Quit: Advocation]
seamon has joined #ruby
<eam> Sou|cutter: just an observation buddy, don't get all bent out of shape
wjimenez5271 has joined #ruby
<eam> admitting there is a problem is the first step toward recovery
thejamespinto has quit [Read error: Connection reset by peer]
carraroj has quit [Ping timeout: 246 seconds]
thejamespinto has joined #ruby
fgo has joined #ruby
Drakevr has quit [Changing host]
Drakevr has joined #ruby
Xeago has quit [Ping timeout: 250 seconds]
jottr_ has joined #ruby
fgo has quit [Read error: No route to host]
<eam> what I did was move the rvm hooks into a file I can source if I'm going to do ruby dev in that shell
alem0lars has quit [Quit: AFK..]
<eam> and now it's not so bad
fgo has joined #ruby
ta has joined #ruby
iamjarvo has joined #ruby
chrishough has joined #ruby
<eam> nice side effect is that my system ruby scripts no longer break when I happen to cd into a development directory
chrishough has quit [Client Quit]
moted has joined #ruby
chrishough has joined #ruby
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jay__ is now known as rubyonrailed
jottr_ has quit [Ping timeout: 260 seconds]
seamon has quit [Quit: Zzzzzzz]
fgo has quit [Ping timeout: 245 seconds]
kaspertidemann has joined #ruby
robustus is now known as robustus|Off
tylersmith has quit [Read error: Connection reset by peer]
bbloom has quit [Ping timeout: 246 seconds]
tylersmith has joined #ruby
artmann has quit [Remote host closed the connection]
yfeldblum has joined #ruby
ep3static has quit [Ping timeout: 240 seconds]
jasooon has joined #ruby
jasooon_ has joined #ruby
User458764 has quit [Ping timeout: 272 seconds]
jottr_ has joined #ruby
iamcyberbird has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
yfeldblum has quit [Ping timeout: 258 seconds]
Takle has joined #ruby
cocotton has quit [Remote host closed the connection]
hooper has joined #ruby
bobishh has joined #ruby
User458764 has joined #ruby
cocotton has joined #ruby
fabrice31 has joined #ruby
melik has joined #ruby
jasooon has quit [Ping timeout: 272 seconds]
jasooon_ has quit [Ping timeout: 260 seconds]
rdark has quit [Quit: leaving]
paulfm_ has joined #ruby
freerobby1 has quit [Quit: Leaving.]
kb3ien has joined #ruby
freerobby has joined #ruby
krz has quit [Read error: Connection reset by peer]
jobewan has joined #ruby
Hobogrammer has joined #ruby
Xiti` has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 250 seconds]
froggy_ has joined #ruby
mityaz has quit [Quit: Leaving]
wpp has quit []
paulfm has quit [Ping timeout: 260 seconds]
<kb3ien> rails new keeps asking for a password. I don't want to install anything anywhee but the local dir. What should I do?
GriffinHeart has joined #ruby
rodj has joined #ruby
jackjackdrpr1 has left #ruby [#ruby]
<jhass> kb3ien: Please join #RubyOnRails for Rails questions. You need to be identified with NickServ, see /msg NickServ help
<apeiros> kb3ien: you should go to the proper channel. #rubyonrails that is
<kb3ien> danke
lsmola has quit [Ping timeout: 272 seconds]
kb3ien has left #ruby [#ruby]
TorpedoSkyline has joined #ruby
jehosogo has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Guest63715 has quit [Ping timeout: 246 seconds]
hilake has joined #ruby
jthomp has joined #ruby
paulfm_ has quit []
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
Pupeno_ has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Pupeno has quit [Ping timeout: 245 seconds]
thejamespinto has joined #ruby
rkalfane has joined #ruby
Jackneill has joined #ruby
f0ster_ is now known as f0ster
shredding has quit [Quit: shredding]
f0ster has quit [Changing host]
f0ster has joined #ruby
niklasb has joined #ruby
echevemaster has quit [Remote host closed the connection]
gsd has joined #ruby
lewix has quit [Remote host closed the connection]
mocfive has joined #ruby
Tomme has joined #ruby
workmad3 has quit [Ping timeout: 245 seconds]
sinkensabe has quit [Remote host closed the connection]
chrishough has joined #ruby
TommeHo has joined #ruby
kirun has joined #ruby
shredding has joined #ruby
iamcyberbird has quit [Ping timeout: 245 seconds]
dorei has joined #ruby
nhhagen_ has joined #ruby
Advocation has joined #ruby
nonmadden has quit [Quit: Leaving...]
Hobogrammer has quit [Ping timeout: 245 seconds]
oponder has quit []
nhhagen has quit [Ping timeout: 240 seconds]
Tomme has quit [Ping timeout: 240 seconds]
stef_204 has joined #ruby
govg has quit [Quit: leaving]
jbueza has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
klaut has joined #ruby
bwilson has joined #ruby
shinobi_one has joined #ruby
iliketurtles has joined #ruby
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
niklasb_ has joined #ruby
splud has joined #ruby
<splud> how can I obtain connection information given a socket?
St_Marx has quit [Quit: Ex-Chat]
<splud> Specifically, I’d like to know the endpoint addresses and ports.
niklasb has quit [Ping timeout: 250 seconds]
<splud> this given a socket that’s already been opened.
davispuh has joined #ruby
bayed has quit [Quit: Connection closed for inactivity]
nonmadden has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
seamon has joined #ruby
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
kevinfagan has quit [Ping timeout: 245 seconds]
rubie has joined #ruby
jrhorn424 is now known as zz_jrhorn424
gremax has quit [Ping timeout: 258 seconds]
<rubie> can someone walk me through this bubble sort program https://gist.github.com/gabrie30/4cd673384f7e4b1afb90
cescalante has quit [Ping timeout: 245 seconds]
<apeiros> splud: are you talking about a TCPSocket?
User458764 has quit [Ping timeout: 272 seconds]
cescalante has joined #ruby
<splud> yes.
<apeiros> splud: check the docs on IPSocket
<splud> not using basicsocket.
<splud> IPSocket, ok.
<apeiros> IPSocket#peeraddr is probably what you're looking for
gremax has joined #ruby
ctp has joined #ruby
qmfnp_lunch is now known as qmfnp
zz_jrhorn424 is now known as jrhorn424
Trynemjoel has joined #ruby
jrhorn424 is now known as zz_jrhorn424
zz_jrhorn424 is now known as jrhorn424
chiramiso has joined #ruby
flughafen_ has joined #ruby
baroquebobcat has quit [Quit: baroquebobcat]
foooobear__ has quit [Ping timeout: 245 seconds]
robustus|Off has quit [Ping timeout: 250 seconds]
Tricon has joined #ruby
Trynemjoel has quit [Client Quit]
chrishough has quit [Ping timeout: 245 seconds]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
baroquebobcat has joined #ruby
jrhorn424 is now known as zz_jrhorn424
Phrogz_ has joined #ruby
alem0lars has joined #ruby
codeFiend has joined #ruby
Advocation has quit [Quit: Advocation]
carraroj has joined #ruby
zz_jrhorn424 is now known as jrhorn424
devyn_ has quit [Changing host]
devyn_ has joined #ruby
devyn_ is now known as devyn
mikecmpbll has joined #ruby
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
RichardLitt has joined #ruby
michaeldeol has joined #ruby
jhass has quit [Ping timeout: 272 seconds]
yetanotherdave has joined #ruby
michaeldeol has quit [Client Quit]
jrhorn424 is now known as zz_jrhorn424
Phrogz_ has quit [Ping timeout: 240 seconds]
zz_jrhorn424 is now known as jrhorn424
shredding has quit [Quit: shredding]
douglasssssss has joined #ruby
michaeldeol has joined #ruby
<shevy> Hanmac, is there a way to treat certain tokens for ruby for the ruby parser to not parse it?
<apeiros> shevy: yes. you put them into a comment ;-)
fgo has joined #ruby
alexblackie has left #ruby ["Textual IRC Client: www.textualapp.com"]
jhass has joined #ruby
jbueza has joined #ruby
krisquigley has joined #ruby
rtl has joined #ruby
jeromegn has quit [Quit: jeromegn]
DrCode has quit [Remote host closed the connection]
carraroj has quit [Ping timeout: 272 seconds]
msx has joined #ruby
yfeldblum has joined #ruby
carraroj has joined #ruby
bigkevmcd has quit [Quit: Leaving]
freerobby has quit [Read error: Connection reset by peer]
freerobby has joined #ruby
tjr9898_ has quit [Remote host closed the connection]
<shevy> hmm
DrCode has joined #ruby
<shevy> if only I could programmatically access comments :(
<apeiros> shevy: use rubyparser?
<shevy> that can be done through rubyparser?
mikepack has quit [Remote host closed the connection]
mousa has joined #ruby
<apeiros> maybe
<apeiros> if not, check yard/rdoc
fgo has quit [Ping timeout: 246 seconds]
Advocation has joined #ruby
jobewan has quit [Quit: Leaving]
GriffinHeart has quit [Remote host closed the connection]
Deejay_ has joined #ruby
Hobogrammer has joined #ruby
Deejay__ has joined #ruby
AlSquire has quit [Quit: This computer has gone to sleep]
krisquigley has quit [Ping timeout: 272 seconds]
tjr9898 has joined #ruby
Aaaal has quit [Quit: Aaaal]
moted has quit []
yfeldblum has quit [Ping timeout: 272 seconds]
choke has quit [Read error: Connection reset by peer]
<mousa> I am having hard time getting my first Rails app working with MySQL in a Debian linux box. Here's the problem I am facing: https://gist.github.com/anonymous/10e33c23409cee5ba6a6
mityaz has joined #ruby
Xeago has joined #ruby
Deejay_ has quit [Ping timeout: 246 seconds]
kevinfagan has joined #ruby
jasooon_ has joined #ruby
jasooon has joined #ruby
mikepack has joined #ruby
<shevy> eam do you remember that twitter guy
<shevy> who twittered something about the ruby parser
Xeago_ has quit [Ping timeout: 272 seconds]
moted has joined #ruby
lewix has joined #ruby
carraroj has quit [Ping timeout: 272 seconds]
jrhorn424 is now known as zz_jrhorn424
larissa has quit [Quit: Leaving]
paulfm has joined #ruby
wedgeV has joined #ruby
jasooon_ has quit [Ping timeout: 244 seconds]
jasooon has quit [Ping timeout: 244 seconds]
Kricir has quit [Remote host closed the connection]
ghr has joined #ruby
Macaveli has joined #ruby
Macaveli has quit [Read error: Connection reset by peer]
bbloom has joined #ruby
<Hanmac> mousa did you move the gems the installation or something similar? because somehow the gems where installed for a newer verison of the mysql lib that you have installed ...
Macaveli has joined #ruby
<mousa> I just installed the gem for the first time
nhhagen has joined #ruby
noop has joined #ruby
<Hanmac> jhass: and did you try gemfile--colorscheme with my gemtree?
zz_jrhorn424 is now known as jrhorn424
<jhass> no
claymore has quit [Quit: Leaving]
<mousa> what are these gems anyway?
<Hanmac> mousa ... you might try to install the mysql gem again ... maybe then it does build against the correct version or something
<Hanmac> mousa: third-party-software-packages
awc737 has joined #ruby
Pupeno has joined #ruby
ghr has quit [Ping timeout: 258 seconds]
nhhagen_ has quit [Ping timeout: 260 seconds]
moted has quit []
comma8 has quit [Remote host closed the connection]
<Hanmac> jhass: in the file you did show there where 4 groups currently each of them colored yellow ... with using a colorscheme you can let each group colorize in a different color
<mousa> Hanmac, I uninstalled and installed again, but that didn't help. I used the following command to install: gem install mysql -- \ --with-mysql-config=/opt/lampp/bin/mysql_config
mikepack has quit [Remote host closed the connection]
baroquebobcat has quit [Quit: baroquebobcat]
<Hanmac> why do you have an extra mysql in opt?
moritzs has quit [Ping timeout: 260 seconds]
hellangel7 has quit [Ping timeout: 258 seconds]
Tomme has joined #ruby
Kricir has joined #ruby
Jason has left #ruby [#ruby]
Pupeno_ has quit [Ping timeout: 245 seconds]
jobewan has joined #ruby
choke has joined #ruby
dcarmich has joined #ruby
Morkel_ has joined #ruby
TommeHo has quit [Ping timeout: 240 seconds]
nrsk has joined #ruby
Morkel has quit [Ping timeout: 272 seconds]
Morkel_ is now known as Morkel
agjacome has quit [Quit: leaving]
wallerdev has quit [Quit: wallerdev]
mwlang has quit [Quit: mwlang]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
spastorino has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
daxroc has quit [Ping timeout: 260 seconds]
tiagonobre_ has quit [Ping timeout: 260 seconds]
omosoj has joined #ruby
RichardLitt has joined #ruby
einarj has joined #ruby
Sharker has joined #ruby
rfv has quit [Ping timeout: 260 seconds]
bedouin has quit [Ping timeout: 260 seconds]
mattyohe has quit [Ping timeout: 260 seconds]
bove has quit [Ping timeout: 260 seconds]
arrubin has quit [Ping timeout: 260 seconds]
Sharker_ has quit [Remote host closed the connection]
dukedave has quit [Ping timeout: 260 seconds]
kapowaz has quit [Ping timeout: 260 seconds]
yo61 has quit [Ping timeout: 260 seconds]
wallerdev has joined #ruby
kate_r has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Insanity133 has joined #ruby
mjc_ has quit [Ping timeout: 272 seconds]
pusewicz has quit [Ping timeout: 260 seconds]
Tranquility___ has quit [Ping timeout: 260 seconds]
bjeanes has quit [Ping timeout: 260 seconds]
ELLIOTTCABLE has quit [Ping timeout: 260 seconds]
tiagonobre_ has joined #ruby
daxroc has joined #ruby
momomomomo has joined #ruby
rfv has joined #ruby
Deejay__ has quit [Quit: Computer has gone to sleep.]
chrishough has joined #ruby
lewix has quit [Quit: Leaving...]
bedouin has joined #ruby
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pusewicz has joined #ruby
ELLIOTTCABLE has joined #ruby
rezzack has joined #ruby
<shevy> Sou|cutter hmm nope is not in that list
arrubin has joined #ruby
dukedave has joined #ruby
kapowaz has joined #ruby
mattyohe has joined #ruby
Tranquility___ has joined #ruby
yo61 has joined #ruby
<shevy> but there are other cool links from there
<shevy> like
bove has joined #ruby
bjeanes has joined #ruby
mjc_ has joined #ruby
paulfm has quit []
skammer4 has joined #ruby
<Hanmac> shevy you could use DATA in a rubyfile or something like that ...
<apeiros> shevy: whitequark and zenspider are the implementors of the most well known parsers
moritzs has joined #ruby
Insanity133 has quit [Ping timeout: 260 seconds]
<apeiros> oh, and there's ripper, which is part of ruby (stdlib)
<shevy> Hanmac yeah but I'd have to use __END__ right? so I am constrained to have to put it at the end of the file... I'd love to get more control over the ruby parser itself
seamon has quit [Quit: Zzzzzzz]
<shevy> I like this quote:
Hobogrammer has quit [Quit: WeeChat 0.4.3]
<shevy> "Although I've talked about Ruby parsers, I haven't really explained why anyone sane would want to write one."
<shevy> hehehe
omosoj has quit [Quit: leaving]
<shevy> that is a job description for Mr. Hanmac
<Hanmac> hm i currently didnt had the need to write my own ruby parser ... hm ask me again in 5 years
blueOxigen has joined #ruby
work_op_ has joined #ruby
oso96_2000 is now known as oso|away
bluOxigen has quit [Ping timeout: 250 seconds]
<work_op_> can the ruby ast be transformed at runtime? im learning ruby after using lisp/scheme for several years and cant find a definitive answer on this
mikepack has joined #ruby
oso|away is now known as oso96_2000
<apeiros> work_op_: no
omosoj has joined #ruby
<apeiros> work_op_: you can manipulate a couple of things in ruby at runtime. but you have no access to the AST
<work_op_> oh
<apeiros> work_op_: though, there are implementation specific ways to manipulate things outside the scope of the language
shinobi_one has joined #ruby
lolmaus has joined #ruby
<work_op_> thats really disappointing :(
<apeiros> e.g. MRI/KRI allows you to compile, decompile and execute the internal bytecode. rubinius is probably more flexible too.
paulfm has joined #ruby
dkphenom has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
seamon has joined #ruby
<apeiros> within the language scope is: classes and modules are open, you can modify them at any time (in fact, their definition happens at runtime)
joshingly has quit []
<apeiros> same for about all vars and constants
joshingly has joined #ruby
seamon has quit [Client Quit]
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lkba has joined #ruby
jhass has quit [Read error: Connection reset by peer]
<work_op_> doesnt really fit the needs i have then. anyways, thanks for the info
joshingly has quit [Client Quit]
work_op_ has left #ruby [#ruby]
carraroj has joined #ruby
carraroj has quit [Changing host]
carraroj has joined #ruby
joshingly has joined #ruby
carraroj has quit [Client Quit]
joshingly has quit [Client Quit]
joshingly has joined #ruby
joshingly has quit [Client Quit]
Deejay_ has joined #ruby
joshingly has joined #ruby
michaeldeol has joined #ruby
<shevy> ruby was not good enough for him
AlSquire has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
rkalfane has joined #ruby
nrsk has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<Hanmac> shevy maybe he wanted that evil ruby script?
jhass|off has joined #ruby
dukedave has quit [Ping timeout: 260 seconds]
bedouin has quit [Ping timeout: 260 seconds]
ikanobori has quit [Ping timeout: 260 seconds]
KnownSyntax has quit [Ping timeout: 260 seconds]
rkalfane has quit [Client Quit]
michaeldeol has quit [Client Quit]
ELLIOTTCABLE has quit [Ping timeout: 260 seconds]
mroth has quit [Ping timeout: 260 seconds]
tiagonobre_ has quit [Ping timeout: 260 seconds]
thesheff17 has quit [Ping timeout: 260 seconds]
daxroc has quit [Ping timeout: 260 seconds]
pfg has quit [Ping timeout: 260 seconds]
n1ftyn8 has quit [Ping timeout: 260 seconds]
ionelmc has quit [Ping timeout: 260 seconds]
segfalt has quit [Ping timeout: 260 seconds]
ceej has quit [Ping timeout: 260 seconds]
threesixes has joined #ruby
andrewcarter has quit [Ping timeout: 260 seconds]
<eam> ruby totally can be transformed at runtime, just use eval
cstrahan has quit [Ping timeout: 260 seconds]
Juanchito has quit [Ping timeout: 260 seconds]
rkjaer has quit [Ping timeout: 260 seconds]
adambeynon has quit [Ping timeout: 260 seconds]
cocotton has quit [Remote host closed the connection]
<apeiros> eam: he's gone
baroquebobcat has joined #ruby
dukedave has joined #ruby
pfg has joined #ruby
ELLIOTTCABLE has joined #ruby
KnownSyntax has joined #ruby
n1ftyn8 has joined #ruby
segfalt has joined #ruby
daxroc has joined #ruby
ikanobori has joined #ruby
ionelmc has joined #ruby
mroth_ has joined #ruby
<eam> oh well
tiagonobre_ has joined #ruby
thesheff17 has joined #ruby
bedouin has joined #ruby
adambeynon has joined #ruby
andrewcarter has joined #ruby
cstrahan has joined #ruby
rkjaer has joined #ruby
Juanchito has joined #ruby
ceej has joined #ruby
Mia has quit [Read error: Connection reset by peer]
Xeago_ has joined #ruby
xenomorph is now known as {xenomorph}
einarj has quit [Remote host closed the connection]
Phrogz_ has joined #ruby
<eam> Ripper.sexp __FILE__ # is there anything to turn this back into code?
Phrogz_ has quit [Changing host]
Phrogz_ has joined #ruby
<eam> >> __FILE__
<eval-in_> eam => "/tmp/execpad-7aa4b1618ba0/source-7aa4b1618ba0" (https://eval.in/200849)
freezey_ has quit [Remote host closed the connection]
jack_rabbit has joined #ruby
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jack_rabbit has quit [Max SendQ exceeded]
paulfm has quit []
<eam> >> File.read __FILE__
<eval-in_> eam => "p begin\n File.read __FILE__\nrescue Exception\n puts \"\#{$!} (\#{$!.class})\"\n $stdout.flush\n raise $!\nend" (https://eval.in/200852)
freezey has joined #ruby
<rubie> hi all - this gsub i believe is turn spaces into "!", is there anyway to tell gsub to skip over spaces? str.gsub!(/./) {|x| x = x.next }
thejamespinto has quit [Read error: Connection reset by peer]
Kricir has quit [Remote host closed the connection]
Mso150 has quit [Ping timeout: 260 seconds]
{xenomorph} is now known as xenomorph
<eam> rubie: str.gsub!(/[^ ]/)
Mso150_g has joined #ruby
<apeiros> rubie: /./ matches *every* character
hellangel7 has joined #ruby
<apeiros> rubie: . in a regex means "any character"
<eam> [^ ] means "anything other than a space"
<rubie> ok
thejamespinto has joined #ruby
ep3static has joined #ruby
Xeago has quit [Ping timeout: 272 seconds]
<rubie> what does (/[^ ]/) translate to?
<rubie> ok ok
ndrei has joined #ruby
<eam> [] is how you build a custom character set
<eam> [abc] is "a" or "b" or "c"
paulfm has joined #ruby
Hobogrammer has joined #ruby
<rubie> ok now what if i dont want it to work on punctuation
<rubie> too
HashNuke has quit [Ping timeout: 260 seconds]
rkalfane has joined #ruby
Phrogz_ has quit [Ping timeout: 258 seconds]
incomprehensibly has quit [Ping timeout: 260 seconds]
alimiracle has joined #ruby
rkalfane has quit [Client Quit]
incomprehensibly has joined #ruby
HashNuke has joined #ruby
jcromartie has joined #ruby
<alimiracle> hi
iliketurtles has quit [Quit: zzzzz…..]
<rubie> because an input of ! outputs to /
nobitanobi has joined #ruby
<rubie> dont want that
<shevy> wat
<shevy> what is your regex
melik has quit [Quit: Computer has gone to sleep.]
<shevy> or better
<rubie> str.gsub!(/[^ ,!]/) {|x| x = x.next }
<shevy> what is your (1) input and (2) desired output
<Hanmac> rubie: what so you want with " {|x| x = x.next } " ?
<rubie> that worked
<apeiros> the `x = ` part is unecessary
<rubie> just subsitutes the next letter in the alphabet
<shevy> apeiros optimizes away characters
<rubie> so
<shevy> yesterday or so he eliminated two '?' characters, today he eliminated a 'x = '
<rubie> "fun times!"
<rubie> gvO Ujnft!
<Hanmac> str.gsub!(/[^ ,!]/&:next)
ep3static has quit [Ping timeout: 260 seconds]
<apeiros> well, I hope that it also helps understanding how that stuff actually works
michaeldeol has joined #ruby
<rubie> so the ^ means exclude
nettoweb has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
fgo has joined #ruby
<rubie> then you can add additional things to exclude using ,
nettoweb has joined #ruby
nettoweb has quit [Client Quit]
<rubie> what does the &:next mean
jhass|off is now known as jhass
Pupeno_ has joined #ruby
agjacome has joined #ruby
fun has joined #ruby
JeffBonds has left #ruby [#ruby]
einarj has joined #ruby
emmesswhy has joined #ruby
<apeiros> rubie: yes, within character classes (the [] things), ^ means "everything except". it must be at the beginning.
<Hanmac> rubie: Symbol to Proc
wallerdev has quit [Quit: wallerdev]
Pupeno has quit [Ping timeout: 250 seconds]
thejamespinto has quit [Read error: Connection reset by peer]
<fun> any ideas why rails _4.1.2_app does not work?
<rubie> so :next is a symbol
<apeiros> rubie: foo(&:bar) is equivalent to foo { |x| x.bar }
fabrice31 has joined #ruby
<fun> worked before now it simply displays help file
<rubie> and & means you are going to include a block
<Hanmac> fun: #rubyonrails
Xiti has joined #ruby
echevemaster has joined #ruby
<rubie> ohoh ok thanks
alimiracle has quit [Quit: Page closed]
thejamespinto has joined #ruby
<twohlix> Hanmac, .gsub!(/[^ ,!]/&:next) is not actually working for me cause & is not a valid part of a regex.
fgo has quit [Ping timeout: 245 seconds]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton has joined #ruby
<twohlix> I was just playing around in pry with it and it was throwing errors
<Hanmac> twohlix: i forgot the ,
<twohlix> ah
<twohlix> thx
<twohlix> bingo
<rubie> what about telling [^ ] to exclude spaces, numbers, and all other formatting....basically only chaning letters, how would i do that?
<Hanmac> what are "chaning letters" ?
einarj has quit [Remote host closed the connection]
<shevy> I don't think that exists
<shevy> changing letters perhaps is meant?
mikepack has quit [Remote host closed the connection]
<shevy> Hanmac is a funny dude :)
<twohlix> [^ 1-9] should skip spaces and numbers
mikepack has joined #ruby
fabrice31 has quit [Ping timeout: 244 seconds]
Deejay_ has quit [Quit: Computer has gone to sleep.]
<Hanmac> rubie: why not just say /[a-z]/ or /[:alpha:]/ if you only want letters and nothing else
<twohlix> if you're just trying to select a-z its pretty easy rubie. [a-zA-Z] will get you the letters
<twohlix> yea
<rubie> sorry changing only letters
comma8 has joined #ruby
<twohlix> well then, letters is [:alpha:]
<rubie> oh cool
buub has quit [Ping timeout: 246 seconds]
tjr9898 has quit []
skolman has quit [Remote host closed the connection]
<twohlix> or [a-zA-Z]
<apeiros> twohlix: 0 is not a number? :)
jasooon has joined #ruby
jasooon_ has joined #ruby
<twohlix> lol
danijoo has quit [Read error: Connection reset by peer]
<twohlix> good point.
skolman has joined #ruby
danijoo has joined #ruby
codeFiend has quit [Quit: codeFiend]
rkalfane has joined #ruby
phutchins has quit [Ping timeout: 260 seconds]
skolman has quit [Remote host closed the connection]
rkalfane has quit [Client Quit]
troyready has quit [Ping timeout: 246 seconds]
<shevy> >> 0/0
<eval-in_> shevy => divided by 0 (ZeroDivisionError) ... (https://eval.in/200853)
<shevy> it's special!
skolman_ has joined #ruby
melik has joined #ruby
dangerousdave has joined #ruby
dangerousdave has joined #ruby
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Suchit_ has quit [Quit: Computer has gone to sleep.]
bMalum has joined #ruby
jasooon_ has quit [Ping timeout: 260 seconds]
<apeiros> >> 0.0/0.0
<eval-in_> apeiros => NaN (https://eval.in/200854)
<eam> skipping numbers is very complicated if you're including complex numbers
jasooon has quit [Ping timeout: 260 seconds]
melik has quit [Client Quit]
Xeago_ is now known as Xeago
krisquigley has joined #ruby
b00stfr3ak has quit [Ping timeout: 250 seconds]
<twohlix> so does eval-in do fun things with any line of chat that can be eval'd?
<twohlix> "fun1 times!".gsub!(/[a-zA-Z]/,&:next)
melik has joined #ruby
iamjarvo has joined #ruby
momomomomo has quit [Quit: momomomomo]
<eam> twohlix: prefix with >>
<twohlix> Ah
<apeiros> also, don't spam it
phutchins has joined #ruby
<twohlix> apeiros: deffo, thats what pry/irb is for :)
<apeiros> precisely
qmfnp has quit [Quit: Textual IRC Client: www.textualapp.com]
rkalfane has joined #ruby
chrishough has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bMalum_ has joined #ruby
bMalum has quit [Ping timeout: 260 seconds]
bMalum_ is now known as bMalum
momomomomo has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
seamon has joined #ruby
freerobby has quit [Quit: Leaving.]
m8 has joined #ruby
RichardLitt has quit [Quit: RichardLitt]
thumpba has quit [Remote host closed the connection]
dumdedum has quit [Quit: foo]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
chrishough has joined #ruby
<omosoj> what does p0 mean in 2.1.0p0?
freezey has quit [Remote host closed the connection]
<Tricon> omosoj: Patch level.
dcarmich has quit [Quit: Textual IRC Client: www.textualapp.com]
<omosoj> if i want to install it with rvm, rvm install 2.1.0p0?
<omosoj> or do i need a dash before the p?
<Tricon> omosoj: Yeah. You can be specific about the patch level available. It depends on how they have it written.
<Tricon> Try it the first way if that's how you see it.
iliketurtles has joined #ruby
<omosoj> but it doesn't matter really?
dangerousdave has joined #ruby
<Tricon> omosoj: It does. It needs to be how they have it specified. I've seen it both ways.
<apeiros> omosoj: if you want 2.1, you should install 2.1.3
<apeiros> there's IMO no good reason to install 2.1.0
larsam has quit [Ping timeout: 260 seconds]
<omosoj> i developed a rails app using 2.1.0p0 and now i'm trying to deploy to digital ocean.
<omosoj> i'm trying to reduce any possible problems by loading the same ruby version on the vps
cocotton has quit [Remote host closed the connection]
gccostabr has quit [Quit: ZZZzzz…]
<omosoj> well, i did it with the dash and it worked, so i guess i'll do it this way
HelperW has joined #ruby
rkalfane has quit [Ping timeout: 272 seconds]
nonmadden has quit [Remote host closed the connection]
flughafen_ has quit [Ping timeout: 258 seconds]
shinobi_one has joined #ruby
rkalfane has joined #ruby
bMalum has quit [Quit: bMalum]
Darryl has quit [Quit: Connection closed for inactivity]
Czupa has joined #ruby
krisquigley has quit []
noop has quit [Ping timeout: 258 seconds]
Czupa has quit [Remote host closed the connection]
cocotton has joined #ruby
cocotton has quit [Remote host closed the connection]
duggiefr_ has joined #ruby
cocotton has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
Pupeno has joined #ruby
Xiti has quit [Quit: Leaving]
shinobi_one has quit [Ping timeout: 244 seconds]
Pupeno_ has quit [Ping timeout: 240 seconds]
duggiefresh has quit [Ping timeout: 246 seconds]
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Jackneill has quit [Remote host closed the connection]
melik has quit [Quit: Computer has gone to sleep.]
dkphenom has joined #ruby
krisquigley has joined #ruby
krisquigley has quit [Remote host closed the connection]
simplyaubs has joined #ruby
melik has joined #ruby
krisquigley has joined #ruby
DaniG2k has joined #ruby
cocotton has quit [Read error: Connection reset by peer]
cocotton has joined #ruby
seamon has quit [K-Lined]
arescorpio has joined #ruby
dkphenom has quit [Client Quit]
Phrogz_ has joined #ruby
wallerdev has joined #ruby
cocotton has quit [Remote host closed the connection]
Pupeno has quit [Remote host closed the connection]
WormDrink has quit [Ping timeout: 245 seconds]
krisquigley has quit [Ping timeout: 272 seconds]
spyderma_ has joined #ruby
spyderman4g63 has quit [Ping timeout: 245 seconds]
baroquebobcat has quit [Quit: baroquebobcat]
gccostabr has joined #ruby
michaeldeol has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pskosinski has quit [Remote host closed the connection]
Phrogz_ has quit [Ping timeout: 245 seconds]
pskosinski has joined #ruby
daxroc has quit [Ping timeout: 260 seconds]
boombadaroomba has quit [Remote host closed the connection]
daxroc has joined #ruby
yfeldblum has joined #ruby
kirun has quit [Quit: Client exiting]
hiyosi has quit [Ping timeout: 246 seconds]
cocotton has joined #ruby
fgo has joined #ruby
cocotton has quit [Remote host closed the connection]
cocotton_ has joined #ruby
artmann has joined #ruby
xcyclist has joined #ruby
RichardLitt has joined #ruby
<xcyclist> Please tell me, what is the implication of a def initialize method defined for a module? Do I then need to do ModuleName.new to use the module? Do I treat it like a class?
MaciejCzyzewski has joined #ruby
boombadaroomba has joined #ruby
moritzs has quit [Remote host closed the connection]
<xcyclist> Does the initialize automatically get executed when I do Include ModuleName?
ghostmoth has quit [Quit: ghostmoth]
jcromartie has joined #ruby
fgo has quit [Ping timeout: 260 seconds]
<apeiros> xcyclist: none of those
<apeiros> xcyclist: just like any other instance method of the module, it is added to the class you include the module into
IrishGringo has joined #ruby
mferrier has joined #ruby
<xcyclist> In the code I am deciphering, I see this guy defining an initialize for his module, but he only includes said module.
<apeiros> and if that class' initialize calls super (or does not define one), it'll hit that module's initialize
<apeiros> again, just like any other instance method in a module
<xcyclist> Ok. That makes sense.
<xcyclist> Thank you.
<apeiros> yw
nhhagen has quit [Remote host closed the connection]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ghostmoth has joined #ruby
pgmcgee has quit [Ping timeout: 260 seconds]
pgmcgee has joined #ruby
dangerousdave has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
freezey has joined #ruby
danijoo has joined #ruby
jasooon has joined #ruby
jasooon_ has joined #ruby
Mso150_g has quit [Read error: Connection reset by peer]
alem0lars has quit [Quit: AFK..]
decoponio has quit [Quit: Leaving...]
baroquebobcat has joined #ruby
zoo-zed has joined #ruby
endash has quit [Quit: endash]
omosoj has quit [Ping timeout: 246 seconds]
dcarmich has joined #ruby
cocotton_ has quit [Remote host closed the connection]
Juanchito has quit [Quit: Connection closed for inactivity]
Macaveli has quit [Ping timeout: 258 seconds]
jasooon_ has quit [Ping timeout: 245 seconds]
jasooon has quit [Ping timeout: 272 seconds]
omosoj has joined #ruby
jonmorehouse has joined #ruby
sepp2k has quit [Quit: Konversation terminated!]
ghostmoth has quit [Quit: ghostmoth]
aclearman037 has quit [Ping timeout: 245 seconds]
Insanity133 has joined #ruby
alem0lars has joined #ruby
aclearman037 has joined #ruby
melik has quit [Quit: Computer has gone to sleep.]
b00stfr3ak has joined #ruby
W0rmDr1nk has quit [Read error: Connection reset by peer]
triple_b has joined #ruby
centrx has joined #ruby
cocotton has joined #ruby
DaniG2k has quit [Quit: leaving]
jonmorehouse has quit [Ping timeout: 260 seconds]
chiramiso has quit [Ping timeout: 260 seconds]
obscured has quit [Quit: leaving]
triple_b has quit [Read error: Connection reset by peer]
triple_b_ has joined #ruby
melik has joined #ruby
bluehavana has quit [Quit: Connection closed for inactivity]
manzo has joined #ruby
cocotton has quit [Remote host closed the connection]
Insanity133 has quit [Ping timeout: 245 seconds]
ursooperduper has quit [Quit: Textual IRC Client: www.textualapp.com]
LangeOortjes has quit [Quit: WeeChat 1.0.1]
ghostmoth has joined #ruby
Pupeno has joined #ruby
Soda has quit [Remote host closed the connection]
thumpba has joined #ruby
IrishGringo has quit [Ping timeout: 250 seconds]
qmfnp has joined #ruby
northfurr has joined #ruby
postmodern has joined #ruby
<rubie> hi all, was wondering what the :+ ment in..... total = (1..num).inject(:+)
JohnBat26 has quit [Quit: KVIrc 4.3.1 Aria http://www.kvirc.net/]
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pwh has joined #ruby
JBreit has joined #ruby
dangerousdave has joined #ruby
sinkensabe has joined #ruby
<shevy> this is a symbol rubie
<shevy> > :+.class
cocotton has joined #ruby
<shevy> man
<shevy> >> :+.class
<eval-in_> shevy => Symbol (https://eval.in/200866)
QAEngineer has joined #ruby
JBreit has left #ruby [#ruby]
<shevy> rubie you can think of the above as "add all those thingies up"
<shevy> >> (1..3).inject(:+)
<eval-in_> shevy => 6 (https://eval.in/200867)
<shevy> >> 1+2+3
<eval-in_> shevy => 6 (https://eval.in/200868)
<shevy> \o/
<rubie> ahh
<rubie> so add all things 1 to num
<shevy> rubie in ruby you can even define +
dserodio has left #ruby ["Textual IRC Client: www.textualapp.com"]
Pupeno_ has joined #ruby
hiyosi has joined #ruby
<shevy> >> def +(i); 42; end; self.send :+,5
<eval-in_> shevy => 42 (https://eval.in/200869)
<shevy> not that the above example is very useful at all
Pupeno has quit [Ping timeout: 245 seconds]
<shevy> I don't think I ever had to redefine +
<rubie> just looks like a shortcut to...... total =(1..num).inject() {|x,y| x+y}
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
blackmesa has joined #ruby
nettoweb has joined #ruby
nettoweb has quit [Max SendQ exceeded]
qmfnp has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
silkfox has quit [Ping timeout: 260 seconds]
Xiti has joined #ruby
<shevy> sort of
nettoweb has joined #ruby
<shevy> look at this:
nettoweb has quit [Max SendQ exceeded]
cocotton has quit [Remote host closed the connection]
QAEngineer has quit [Client Quit]
wjimenez_ has joined #ruby
nettoweb has joined #ruby
jthomp has quit [Ping timeout: 260 seconds]
<shevy> >> array = ["a\n","b\n","c\n"]; array.map!(&:chomp); array
<eval-in_> shevy => ["a", "b", "c"] (https://eval.in/200870)
b00stfr3ak has quit [Ping timeout: 272 seconds]
<rubie> puts 'one TWO three foUR'.split.map(&:capitalize).join(' ')
qmfnp has joined #ruby
nhhagen has joined #ruby
<rubie> here is another notation i dont understand
QAEngineer has joined #ruby
qmfnp has quit [Client Quit]
<rubie> the (&:capitalize)
sepp2k has joined #ruby
hiyosi has quit [Ping timeout: 272 seconds]
JoshGlzBrk has joined #ruby
jthomp has joined #ruby
wjimenez5271 has quit [Ping timeout: 244 seconds]
freerobby has joined #ruby
arup_r has quit [Quit: Leaving.]
nonmadden has joined #ruby
freerobby has quit [Client Quit]
klaut has quit [Ping timeout: 245 seconds]
paulfm has quit []
ItSANgo has quit [Quit: Leaving...]
<shevy> this means to apply .capitalize on the members
duncannz has joined #ruby
<wallerdev> lol
<shevy> without having to write the {} block notation
shinobi_one has joined #ruby
klaut has joined #ruby
silkfox has joined #ruby
<wallerdev> skim over the details much
duncannz has quit [Client Quit]
duncannz has joined #ruby
St_Marx has joined #ruby
<shevy> "& calls to_proc on the object and passes it as a block to the method, and Ruby implements to_proc on Symbol."
duncannz has quit [Remote host closed the connection]
duncannz has joined #ruby
<rubie> thank you
aclearman037 has quit []
<fun> :)
Pupeno_ has quit [Quit: Leaving...]
paulfm has joined #ruby
shredding has joined #ruby
thejamespinto has quit [Read error: Connection reset by peer]
<shevy> oh damn, fun is back
<shevy> now it'll be all about rails again
nobitanobi has quit [Remote host closed the connection]
thejamespinto has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
justinmburrous has joined #ruby
michaeldeol has joined #ruby
nonmadden has quit [Ping timeout: 272 seconds]
triple_b_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<fun> shevy: as if :D
HelperW has quit [Quit: Computer has gone to sleep.]
treehug88 has quit []
HelperW has joined #ruby
chiramiso has joined #ruby
QAEngineer has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zeroNones has quit [Quit: Textual IRC Client: www.textualapp.com]
fsapo has quit [Remote host closed the connection]
c107 has joined #ruby
Juanchito has joined #ruby
<snzmn> coming from python... is there an idiomatic way to check if an item is in an array/set?
<centrx> include?
<snzmn> like '1 in [1, 2, 3] == true'
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
emmesswhy has joined #ruby
<centrx> [1,2,3].include?(1)
<snzmn> ah yep
<snzmn> thanks dude!
<snzmn> (or lady)
<centrx> it's a dude
<eam> he's a dude
<snzmn> :S anyway, much obliged
<apeiros> might also be a dudy, or a lade
<eam> it's a program
sevvie has joined #ruby
HelperW_ has joined #ruby
<eam> are computers going to get indignant about pronouns?
<eam> when they become intelligent I mean
northfurr has quit [Quit: northfurr]
<apeiros> they'll laugh their motherboards off about our petty problems
jottr_ has quit [Ping timeout: 240 seconds]
fabrice31 has joined #ruby
<eam> why's it gotta be a motherboard
maestrojed has quit [Quit: Computer has gone to sleep.]
HelperW has quit [Ping timeout: 245 seconds]
bmurt has quit []
duncannz has quit [Remote host closed the connection]
<eam> absentee fatherboards
dangerousdave has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Morkel has quit [Quit: Morkel]
Phrogz_ has joined #ruby
beef-wellington has joined #ruby
duncannz has joined #ruby
dangerousdave has joined #ruby
chiramiso has quit [Ping timeout: 272 seconds]
dangerousdave has quit [Client Quit]
comma8 has quit [Remote host closed the connection]
emmesswhy has quit [Client Quit]
russt_ has joined #ruby
dawkirst has joined #ruby
ikanobori has quit [Ping timeout: 260 seconds]
mityaz has quit [Quit: See ya!]
<apeiros> eam: see, that's one of the problems they'll be laughing about :)
<apeiros> we'll be a source of comedy without end to them
HelperW_ has quit [Ping timeout: 245 seconds]
jottr_ has joined #ruby
russt has quit [Ping timeout: 260 seconds]
russt_ is now known as russt
silkfox has quit [Ping timeout: 245 seconds]
jrhorn424 is now known as zz_jrhorn424
ikanobori has joined #ruby
fabrice31 has quit [Ping timeout: 260 seconds]
alvaro_o has joined #ruby
mousa has quit [Ping timeout: 245 seconds]
gerep has joined #ruby
codecop has quit [Remote host closed the connection]
emmesswhy has joined #ruby
jcromartie has joined #ruby
tjbiddle has joined #ruby
Phrogz_ has quit [Ping timeout: 245 seconds]
beef-wellington has quit [Ping timeout: 245 seconds]
shredding has quit [Quit: shredding]
zz_jrhorn424 is now known as jrhorn424
aspires has quit [Ping timeout: 272 seconds]
HelperW_ has joined #ruby
<rubie> hi all. i have been having problems understanding return in ruby
<rubie> str.split(" ").map!(&:capitalize).join(' ')
<rubie> return str
<rubie> does not produce the answer i want, but when i delete the return it works find
<eam> rubie: return return str
duncannz has quit [Remote host closed the connection]
<eam> return str.split(" ").map!(&:capitalize).join(' ')
<eam> rubie: str.split() does not change str
ptrrr has quit [Quit: ptrrr]
<eam> that entire expression returns a new value
<eam> which you're not assigning to anything
<eam> new_str = str.split(" ").map!(&:capitalize).join(' ')
<eam> return new_str
slester has quit [Quit: slester]
<eam> does that make sense?
<rubie> yes
fgo has joined #ruby
HelperW_ has quit [Read error: Connection reset by peer]
blackmesa has quit [Ping timeout: 260 seconds]
HelperW_ has joined #ruby
<rubie> is it beause .map creates a new array
duncannz has joined #ruby
<eam> split creates a new array, map! does not create a new array it changes its caller
paulfm has quit []
<rubie> ok
<eam> map creates a new array and doesn't change its caller
spyderma_ has quit [Remote host closed the connection]
<eam> you probably want to avoid all ! methods
<eam> just return new values
aspires has joined #ruby
<rubie> why avoid?
spyderman4g63 has joined #ruby
<eam> easier to reason about
<rubie> easier is better :(
<rubie> :)
alem0lars has quit [Quit: alem0lars]
jbw has quit [Read error: Connection reset by peer]
fgo has quit [Ping timeout: 258 seconds]
ldnunes has quit [Quit: Leaving]
dawkirst has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 272 seconds]
gerep has quit [Quit: Leaving]
jrhorn424 is now known as zz_jrhorn424
spyderman4g63 has quit [Ping timeout: 260 seconds]
JoshGlzBrk has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nobitanobi has joined #ruby
omosoj has quit [Quit: leaving]
mferrier_ has joined #ruby
zz_jrhorn424 is now known as jrhorn424
kaspergrubbe has quit [Remote host closed the connection]
rodj has quit [Quit: Page closed]
jbw has joined #ruby
jerius has quit []
cocotton has joined #ruby
nhhagen has quit [Remote host closed the connection]
jasooon has joined #ruby
jasooon_ has joined #ruby
mferrier has quit [Ping timeout: 272 seconds]
cocotton has quit [Remote host closed the connection]
ddv has quit [Ping timeout: 260 seconds]
mferrier_ has quit [Ping timeout: 260 seconds]
Ankhers has quit [Ping timeout: 264 seconds]
momomomomo has quit [Quit: momomomomo]
ikawnoclast has left #ruby ["PART #go-nuts :PART #freebsd-src :QUIT :Leaving."]
ddv has joined #ruby
jrhorn424 is now known as zz_jrhorn424
dawkirst has joined #ruby
tectonic has joined #ruby
Advocation has quit [Quit: Advocation]
justinmburrous has quit [Remote host closed the connection]
mousa has joined #ruby
spider-mario has quit [Remote host closed the connection]
nettoweb_ has joined #ruby
<daed> is there a rails channel?
jasooon has quit [Ping timeout: 245 seconds]
<fun> yes but only if u register
<fun> else tada
bluehavana has joined #ruby
bigmac has joined #ruby
_sillymarkets has joined #ruby
Sawbones has joined #ruby
HelperW_ has quit [Quit: Lingo - http://www.lingoirc.com]
jasooon_ has quit [Ping timeout: 272 seconds]
<_sillymarkets> Quick question: How do I call a method and hten return to the place I called that method and continue my script from that next line?
bigmac is now known as i8igmac
KC9YDN-2 has joined #ruby
<xcyclist> So, a method I put in an Include d module isn't visible as an object method.
nettowe__ has joined #ruby
nettoweb has quit [Ping timeout: 250 seconds]
<xcyclist> Is there a special thing I need to do to make it visible? Apparently my initialize is visible, so I don't get it.
<xcyclist> Basically, I have a class, with an included module. I had a method in the class, and moved said method to the module. Now I don't see the method from the object.
thejamespinto has quit [Read error: Connection reset by peer]
msmith has quit [Remote host closed the connection]
abdulsattar has quit [Ping timeout: 272 seconds]
douglasssssss has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nettoweb_ has quit [Ping timeout: 260 seconds]
<xcyclist> Are perhaps module methods only inherited as class methods and not into the object?
jcromartie has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
shosti has joined #ruby
thejamespinto has joined #ruby
<xcyclist> If so, how do I mix them into the object?
manzo has quit [Remote host closed the connection]
Xeago has quit [Remote host closed the connection]
stef_204 has joined #ruby
KC9YDN has quit [Ping timeout: 245 seconds]
kaspertidemann has quit []
<_sillymarkets> I have a method which calls another method. After that 2nd method is completed, I want to return to the first method and continue my script from that line. How can I do that?
jheg has quit [Quit: jheg]
duncannz has joined #ruby
stef_204 is now known as stef204
KC9YDN-2 has quit [Client Quit]
stef204 is now known as stef_204
xcv has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
klaut has quit [Remote host closed the connection]
xcv has joined #ruby
<c107> Does anyone use Arch and RubyGame?
thisislulu has joined #ruby
mpistone has quit []
JoshGlzBrk has joined #ruby
duncannz has joined #ruby
duggiefr_ has quit [Remote host closed the connection]
duggiefresh has joined #ruby
tonybird has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ht__th has quit [Remote host closed the connection]
<eam> Chronic makes no sense to me whatsoever
<eam> Chronic.parse("oct 31st", :guess => false) returns a Chronic::Span?!
<eam> :guess appears to mean "return a span or a time"
duggiefresh has quit [Ping timeout: 250 seconds]
cherwin has quit [Ping timeout: 245 seconds]
shtirlic has quit [Ping timeout: 260 seconds]
zorak8 has quit [Ping timeout: 245 seconds]
<eam> of apparently arbitrary duration
shtirlic has joined #ruby
dawkirst has quit [Remote host closed the connection]
iamjarvo has joined #ruby
hiyosi has joined #ruby
iamjarvo has quit [Client Quit]
jerius has joined #ruby
dawkirst_ has joined #ruby
sinkensabe has quit [Remote host closed the connection]
kaspertidemann has joined #ruby
<zenspider_> xcyclist: you keep asking related questions. You need to back up and learn some ruby.
rezzack has quit [Quit: Leaving.]
hiyosi has quit [Ping timeout: 244 seconds]
<centrx> Who dares ask me a question
krisquigley has joined #ruby
<fun> centrx: how I can install spree on ubuntu?
<fun> I got stuck on some step
<fun> :D
<fun> when reinstalling it
<fun> i googled it yet to see what to do
ItSANgo has joined #ruby
<centrx> If you were using Windows 95 it would be easy, I could tell you
<boombadaroomba> Anyone have any experience with spree. I'm trying to call product.price but it isnt working
oleo is now known as Guest4240
oleo__ has joined #ruby
nhhagen has joined #ruby
<boombadaroomba> fun: stop spamming all the channels please
<centrx> I hear there is a channel dedicated to spree
bove has quit [Ping timeout: 260 seconds]
<boombadaroomba> centrx: yeah, they threatened to ban him :P
<fun> boombadaroomba: u talking about yourself
<fun> :)
<boombadaroomba> thats why he is spamming here
rezzack has joined #ruby
<fun> as u asked same question there
<fun> ;)
<boombadaroomba> this is ruby specific
<centrx> looks like we have an e-commerce showdown here
<fun> nope its cool
bove has joined #ruby
<fun> centrx: since u asked someone to ask u question I did
<fun> very simple :D
<centrx> Thank you, I appreciate it
stef_204 has quit [Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/]
<fun> of course answer is not mandatory :)
<centrx> You have stumped me. You win this round, Player #1
<fun> hehe
<zenspider_> #ruby ... like #ruby-lang but with shitty S:N... :/
shinobi_one has joined #ruby
<centrx> #ruby-lang: super-wise masters and total noobs who found it on the website
ddv has quit [Ping timeout: 260 seconds]
<eam> zenspider_: think of it like the planet Jupiter
comma8 has joined #ruby
endash has joined #ruby
krisquigley has quit [Ping timeout: 250 seconds]
<centrx> at least it's not like that horrible channel about trains
<zenspider_> centrx: pretty much. and those newbs get much better advice as a result of better S:N
sailias has quit [Quit: Leaving.]
iamjarvo has joined #ruby
klmlfl has quit [Remote host closed the connection]
Guest4240 has quit [Ping timeout: 272 seconds]
ddv has joined #ruby
<eam> centrx: which one?
<fun> what is S:N?
codeFiend has joined #ruby
<zenspider_> S:N = signal to noise ratio
<centrx> It was a standing entertainment with the less dignified members of the mess to invite attention to Ruby as he stood moping under this hideous housing.
Sawbones has quit []
Hobogrammer has quit [Ping timeout: 258 seconds]
<fun> zenspider_: well many people simply gave up on IRC
<fun> :)
<zenspider_> reads like markov chain
<fun> hence less noise of any kind
<zenspider_> luckily you're helping fix that
nhhagen has quit [Ping timeout: 272 seconds]
<centrx> The level of complete vandalism and trolling is very low at least
<fun> yes
<centrx> All across the Great Land of Freenode
<fun> its cause we havent got many trolls
<fun> trolls shortages
* centrx checks ##php
<eam> well one way to combat it is to talk about ruby, anyone want to clue me into how I'm supposed to apply a Chronic::Span to subtract from a Time?
lewix has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
<centrx> Chronic pretty useful, for simple things at least
bw_ has joined #ruby
ryanleesipes has left #ruby ["Leaving"]
<fun> centrx: is is true most php people love ruby?
<lewix> hmm
<fun> I was one guy rant
<eam> all I want is times, intervals, and time + interval
<fun> saw
<centrx> fun, PHP is an abomination and a scourge on the face of the earth
<fun> anyway its too funny to even type
<centrx> fun, PHP is everything could be, and ever was, and ever more
<centrx> I mean Ruby
<fun> LOL
<fun> i can barely type ty!
niklasb_ has quit [Ping timeout: 272 seconds]
<zenspider_> eam: I haven't looked at chronic in years... but the code was SOO messy it seemed not worth it. I hope it's improved over time.
<eam> I can't make sense of it
workmad3 has joined #ruby
<fun> centrx: any easy way to learn ruby and rails like some book for humans?
<zenspider_> relatively untested too iirc
justinmburrous has joined #ruby
<fun> my plan is to read it tpnight
<fun> then I know it all
<fun> *tonight
kaspertidemann has quit []
<zenspider_> looks like we have stephen wolfram here
tjbiddle has quit [Quit: tjbiddle]
<fun> who is he?
chiramiso has joined #ruby
<eam> if I'm reading the Chronic tests correctly there is no mechanism to take a Time and add a Span to it
<eam> as in now + 24h
<eam> should I be using something else?
_1_Ezenwa has joined #ruby
<zenspider_> eam: really? that seems... short sighted. :/
<centrx> eam, span seems to have + and - for it, maybe they just forgot to implement the reverse coerce?
<zenspider_> could be it's just untested. :P
freerobby has joined #ruby
<eam> + 1 appears to shift the Span forward one second
fun has quit [Quit: Page closed]
<eam> eg "now until 24h from now" => "now + 1s until 24h 1s from now"
m8 has quit [Quit: Sto andando via]
<eam> conceptually I think a span is a period between two dates and not an interval datatype at all
<eam> this is not at all what I want
x1337807x has joined #ruby
<eam> is there a better alternative? I think activesupport has stuff ...
justinmburrous has quit [Ping timeout: 260 seconds]
Phrogz_ has joined #ruby
cherwin has joined #ruby
braincrash has quit [Ping timeout: 245 seconds]
chiramiso has quit [Ping timeout: 272 seconds]
iamjarvo has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
_1_Ezenwa has quit [Remote host closed the connection]
<zenspider_> huh. I was just trying out `Time.now .. (Time.now+86400)` and you can't use include? on it because it doesn't define each. it DOES define succ tho. how odd
codeFiend has quit [Ping timeout: 245 seconds]
<eam> what I also want is a plain language parser so "one day" works
braincra- has joined #ruby
<zenspider_> TypeError: can't iterate from Time
<eam> trying to turn Spans into seconds now
SCHAAP137 has joined #ruby
codeFiend has joined #ruby
<zenspider_> I assume you want a length of seconds and then to be able to apply an offset based on your example above...
<eam> what I really want is (in postgres) select now() + '1 day'::interval;
<eam> for arbitrary dates and interval periods
WormDrink has joined #ruby
WormDrink has quit [Changing host]
WormDrink has joined #ruby
<eam> parsed from plain english strings
maletor has joined #ruby
arescorpio has quit [Excess Flood]
Phrogz_ has quit [Ping timeout: 260 seconds]
<eam> eam=> select 'tomorrow'::timestamp + '1 week'::interval; 2014-10-09 00:00:00
codeFiend has quit [Read error: Connection reset by peer]
<eam> stuff like that
thisislulu has quit [Ping timeout: 258 seconds]
<zenspider_> write a library that just wraps pg :)
zenspider_ is now known as zenspider
fgo has joined #ruby
<eam> I am THIS CLOSE to making a database query
<zenspider> haha
<eam> :)
Tomme has quit [Ping timeout: 244 seconds]
<zenspider> oh! you can use between
<eam> you know what, Chronic.parse "1 day" isn't even giving me a span of one day -- it's parsing that as a span of 1s
<zenspider> >> span = Time.now .. (Time.now+86400); t = Time.now + 3600; t.between? span.begin, span.end
<eval-in_> zenspider => true (https://eval.in/200884)
eequ has joined #ruby
<eam> I am going to just write my own human-readable time string thing
* eam throws up hands
<eam> zenspider: yeah, getting to seconds (both absolute and interval) and just doing integer math / using Time seems like the best bet
Georg3 has joined #ruby
wjimenez_ has quit [Read error: Connection reset by peer]
<eam> I'm upset about that conclusion
wjimenez5271 has joined #ruby
Georg3 has quit [Remote host closed the connection]
Georg3 has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
dawkirst_ has quit [Remote host closed the connection]
codeFiend has joined #ruby
_why has joined #ruby
<centrx> heh
Hobogrammer has joined #ruby
melik has quit [Ping timeout: 250 seconds]
coderdad has quit [Remote host closed the connection]
Stalkr_ has quit [Ping timeout: 246 seconds]
skammer has joined #ruby
coderdad has joined #ruby
Insanity133 has joined #ruby
niklasb_ has joined #ruby
skammer4 has quit [Ping timeout: 246 seconds]
antlong has quit [Quit: Textual IRC Client: www.textualapp.com]
mary5030 has quit [Remote host closed the connection]
jasooon has joined #ruby
jasooon_ has joined #ruby
willgo has joined #ruby
<_sillymarkets> https://gist.github.com/sillymarketing/81efbbfc4b625f59e9e1 | How come I can run through my first loop compeletely fine, and I see both PUTS, but the script never even goes inside the 2nd loop? I never see the PUTS
<twohlix> you're assigning in your loops you know?
thejamespinto has quit [Read error: Connection reset by peer]
<twohlix> you're doing an = rather than an ==
jobewan has quit [Quit: Leaving]
<zenspider> you know that code isn't even syntactically correct, right?
freerobby has quit [Quit: Leaving.]
thejamespinto has joined #ruby
<centrx> yeah for one thing == is different from =
* centrx chimes in
lewix has quit [Remote host closed the connection]
<twohlix> also there is no end on the second loop, could just be a copy paste issue there.
<_sillymarkets> I'm sure its horrendous, this is like the 2nd thing i've written
Insanity133 has quit [Ping timeout: 272 seconds]
<zenspider> right. never ending the first loop. second loop never has an end :)
jottr_ has quit [Ping timeout: 272 seconds]
<_sillymarkets> first loop ends, and the second one i didnt copy-paste the end, because the condition was failing since i didnt even see the puts
<twohlix> but yea, because you're doing = rather than == in lines 1 and 10, you'll be stuck in the first loop
<zenspider> first loop CAN'T end
<centrx> yeah GIL actually prevents Ruby from travelling into the future to determine whether infinite loop actually reaches and asymptotic value
<zenspider> unless trial_graphs raises, I guess
<zenspider> stupid GIL
<centrx> lol
mousa has left #ruby ["Leaving"]
<centrx> *GIL
msmith has joined #ruby
<_sillymarkets> okay, let me try double equals for values, and first loop non-ending. Thanks guys. I'll read up on the assignment operator differences =, ==
nettowe__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<twohlix> _sillymarkets: are you trying to check if @numDays is 5 and countdown_numDays is 1?
<_sillymarkets> no, i want it to run through a block of code when numdays is 5 and countodnw is 1, then add to countdown (making it 2, and run through another block of code while num days = 5, and countdown is 2
jasooon_ has quit [Ping timeout: 272 seconds]
jasooon has quit [Ping timeout: 272 seconds]
<zenspider> so why doesn't your code say that?
<_sillymarkets> still learning? thats what I tried to get it to say
geggam has quit [Remote host closed the connection]
<zenspider> ruby is such that you can pretty much translate thoughts to code pretty directly.
<centrx> pseudocode = **ruby
tessi_zz is now known as tessi
Spami has joined #ruby
Mohd_ has joined #ruby
coderdad has quit [Remote host closed the connection]
niklasb_ has quit [Ping timeout: 260 seconds]
sepp2k has quit [Read error: Connection reset by peer]
computerex has quit [Ping timeout: 272 seconds]
blackmesa has joined #ruby
<eam> not if you're thinking about performance
<eam> *rimshot*
<centrx> Alert: Premature Optimization detected
<rubie> what would be the easiest way to evaluate a string like this "++d+===+c++==a" and tell if the letters are surronded by + signs?
<zenspider> depends on how efficient your thoughts are
<centrx> rubie, more specific?
<zenspider> sure sounds like homework...
hellangel7 has quit [Remote host closed the connection]
<centrx> rubie, you could capture all letters surrounded by +'s
<centrx> rubie, but yes, do your homework, quit slacking off! We expect A's around here
<rubie> so that string would be false because 'a' does not have a + on both sides
<rubie> hah no its not homework
<rubie> but is a problem im working on, no idea how to approach it
<centrx> /\w/ not preceded by a + ?
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<twohlix> rubie: do you want something that gives you if all letters are surrounded by +?
<zenspider> either look for what you do want, or look for what you don't want
<rubie> yes
<zenspider> latter might be easier.
<centrx> /[^+]\w[^+]/
Fabio has joined #ruby
<rubie> i want it to return true of all letters have a + on both sides
<centrx> *,/,*
<rubie> a +94939+a+a would be false
skolman_ has quit [Remote host closed the connection]
<rubie> but +a3904904+49a+ would be true
<apeiros> centrx: "a+" and "+a"
<eam> centrx: not always premature. see: anything realtime
<eam> games etc
<rubie> ahhh
skolman has joined #ruby
<rubie> .scan ?
<zenspider> centrx: that finds ONE
x1337807x has joined #ruby
<zenspider> he needs to ensure ALL
<zenspider> fuck. nevermind. I'll go get a coffee.
MCDev has joined #ruby
<centrx> SHIT
beef-wellington has joined #ruby
rkalfane has quit [Quit: Textual IRC Client: www.textualapp.com]
<zenspider> this is what happens when I'm not caffienated enough AND am studying ML, which is a total brain twister for me
<zenspider> flipping back and forth == bad
workmad3 has quit [Ping timeout: 272 seconds]
iliketurtles has quit [Quit: zzzzz…..]
<zenspider> rubie: why is "+a3904904+49a+" true?
xcv_ has joined #ruby
<rubie> because all letters have a + on both sides
<rubie> +a+
<zenspider> that last a has 9 on its left
skolman has quit [Ping timeout: 246 seconds]
tessi is now known as tessi_zz
twohlix has quit [Ping timeout: 250 seconds]
russt has quit [Quit: russt]
_why has left #ruby [#ruby]
<rubie> yes but there is still a + to its left before another letter
<rubie> +a3904904+4z9a+ would be false
xcv has quit [Ping timeout: 250 seconds]
msmith has quit [Remote host closed the connection]
ndrei has quit [Ping timeout: 272 seconds]
<toretore> so, first step: remove [^a-z+]
lmickh has quit [Remote host closed the connection]
<zenspider> s.tr("^a-z+", "") =~ /^(\+[a-z])+\+$/
<rubie> :0
<rubie> thats going to take me a while to digest
<rubie> brb
niklasb_ has joined #ruby
<zenspider> that won't pass for "+" or ""... dunno if that's allowed or not
hiyosi has joined #ruby
<pontiki> split it on '+', check to see if each tokan starts and/or ends with a letter
<zenspider> easy enough to extend the regexp
<zenspider> >> s = "+a3904904+49a+"; s.tr("^a-z+", "") =~ /^(\+[a-z])+\+$/
<eval-in_> zenspider => 0 (https://eval.in/200885)
<zenspider> >> s = "+a3904904+4z9a+"; s.tr("^a-z+", "") =~ /^(\+[a-z])+\+$/
<eval-in_> zenspider => nil (https://eval.in/200886)
<zenspider> still seems like homework. :)
emmesswhy has quit [Quit: This computer has gone to sleep]
<pontiki> it's an interesting puzzle, tho, innit?
<pontiki> and it would make an excellent programming class question
Fabio has quit [Quit: Textual IRC Client: www.textualapp.com]
<apeiros> meh. IMO the easiest is to do a negative test. to test whether there's a letter which does not have + on both sides.
<rubie> how would you do that
b00stfr3ak has joined #ruby
<apeiros> I'd do it with a regex
hiyosi has quit [Ping timeout: 240 seconds]
jottr_ has joined #ruby
<apeiros> there are 4 cases: letter is at begin of string, letter is at end of string, character in front of letter is not a +, character after letter is not a +
fabrice31 has joined #ruby
Avahey has joined #ruby
work_op has quit [Read error: Connection reset by peer]
TorpedoSkyline has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
eequ has quit [Quit: Leaving]
<rubie> its a question from codebyte.com
shinobi_one has joined #ruby
fabrice31 has quit [Ping timeout: 272 seconds]
TorpedoSkyline has joined #ruby
threesixes has quit [Remote host closed the connection]
fgo has joined #ruby
niklasb_ has quit [Ping timeout: 250 seconds]
Takle has quit [Remote host closed the connection]
andrewlio has quit [Quit: Leaving.]
iamjarvo has joined #ruby
iamjarvo has quit [Max SendQ exceeded]
iliketurtles has joined #ruby
end_guy has quit [Remote host closed the connection]
iamjarvo has joined #ruby
i8igmac has quit [Ping timeout: 245 seconds]
bmurt has joined #ruby
narcan has joined #ruby
shinobi_one has quit [Ping timeout: 244 seconds]
<pontiki> i get redirected to codebyteconsulting.com
C0deMaver1ck has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: i've nodded off.]
chiramiso has joined #ruby
xxi is now known as ixx
baroquebobcat has quit [Quit: baroquebobcat]
<apeiros> ugh, rvm is indeed quite slow. wrapper adds ~0.5s.
<apeiros> and there I was almost happy about my bash completion in ruby
C0deMaver1ck_ has joined #ruby
<apeiros> I guess it'll be the other approach then - generate a bash script from ruby. :(
freerobby has joined #ruby
end_guy has joined #ruby
<Sou|cutter> or use rbenv?
niklasb_ has joined #ruby
MaciejCzyzewski has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<rubie> pontiki sorry its http://www.coderbyte.com/
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Phrogz_ has joined #ruby
<postmodern> apeiros, sure it's rvm and not rubygems being burdened with too many gems?
<apeiros> postmodern: it doesn't require a single gem
chiramiso has quit [Ping timeout: 260 seconds]
govg has joined #ruby
fun has joined #ruby
<fun> hey folks a bit general question but what can cause uninitialized constant Admin (NameError) error?
<centrx> referencing uninitialized constant called 'Admin'
<eam> >> Admin
<eval-in_> eam => uninitialized constant Admin (NameError) ... (https://eval.in/200889)
arup_r has joined #ruby
aspires has quit []
baroquebobcat has joined #ruby
phutchins has quit [Ping timeout: 246 seconds]
arup_r has quit [Remote host closed the connection]
Phrogz_ has quit [Ping timeout: 245 seconds]
<fun> the error - /usr/local/rvm/gems/ruby-2.1.3/bundler/gems/spree_onpay-0954611a35cd/app/controllers/payment_methods _controller_decorator.rb:2:in `<top (required)>': uninitialized constant Admin (NameError)
jerius has quit []
simplyaubs has quit [Quit: simplyaubs]
snath has quit [Ping timeout: 240 seconds]
<fun> so I though ok maybe this rb calls admin without referencing it but seems not
Channel6 has joined #ruby
simplyaubs has joined #ruby
_sillymarkets has quit [Ping timeout: 246 seconds]
<zenspider> apeiros: I found bash completion stuff in general to be dreafully slow
<zenspider> I added a suite of them via homebrew and it slowed down new shells by ~5-10sec
aspires has joined #ruby
<zenspider> dropped them entirely
<apeiros> zenspider: amazing how such trivial stuff can be slow on machines which can perform billions of instructions per second…
<fun> hehe
<fun> indeed
<fun> its slow code
<fun> machines are fine
<fun> even pentium cpu is fast enough
<apeiros> of course it's the code
<zenspider> to be somewhat fair, the suite was huge and for a bunch of shit I'll never use
baroquebobcat has quit [Quit: baroquebobcat]
<zenspider> but it does seem like it was bolted on the side of bash as an afterthought and as a result, it's slow
<zenspider> zsh seems to support it much better
<zenspider> but then you're using zsh
EasyCo has joined #ruby
<apeiros> zenspider: sure, but even if. only shows that bash's autocompletion is poorly implemented. and the "API" for it sucks too.
<zenspider> yup
<fun> well at least its something
<fun> and free
<zenspider> because that's a good reason to do something...
<fun> and it can be improved via volunteer effort
<zenspider> never mind quality, usability, etc.
coderdad has joined #ruby
<zenspider> fuck it! free! let's go!
<apeiros> fun: thanks, but no thanks.
<postmodern> OSS you get what you pay for
<fun> zenspider: I am happy people took time to code free stuff
<centrx> volunteers pffts
* centrx uses only slave slabor
<zenspider> that's great, but that's not enough.
<fun> zenspider: but not enough is nuts
jottr_ has quit [Ping timeout: 260 seconds]
wedgeV has quit [Quit: wedgeV]
MCDev has quit [Ping timeout: 250 seconds]
<fun> unless u have clear goal
<zenspider> no, it's really not. having standards is not nuts
<fun> well I guess I am new wave
<fun> I said thank you thats nice and lovely
<fun> from perfect code to perfect code
<fun> this way you can enjoy software use
xcyclist has quit [Ping timeout: 246 seconds]
<zenspider> I'll go a step further... NOT having standards in not just nuts, it's fucking stupid.
Channel6 has quit [Quit: Leaving]
jasooon has joined #ruby
jasooon_ has joined #ruby
<fun> well that makes me a visionary
<fun> :)
SCHAAP137 has quit [Remote host closed the connection]
ghostmoth has quit [Quit: ghostmoth]
<fun> but its ok i can be simple fun too
<zenspider> fun: where do you work?
<EasyCo> When using alias_method, is is effectively creating a copy of the method but with a new name rather then a pointer?
icebourg has quit []
<fun> zenspider: atm in home office
<fun> in the kitchen
<zenspider> EasyCo: does it matter?
<fun> as I gambled all money in trading :D
<zenspider> implementation detail
<EasyCo> Yes it does
<zenspider> how?
<zenspider> methods are immutable, so how does it matter?
snath has joined #ruby
<fun> yes logic is beautiful
danijoo has quit [Quit: Leaving...]
<pontiki> is fun a bot?
<fun> and yes some people complain it takes to much time to understand people code
<fun> bot coee
<fun> *bot codee
<fun> o well
<zenspider> pontiki: starting to think so...
mary5030 has joined #ruby
<pontiki> apropos song: http://youtu.be/be18w3U0Jq8
<wasamasa> hum
<centrx> fun, GET /default.ida?NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u6858%ucbd3%u7801%u9090%u9090%u8190%u00c3%u0003%u8b00%u531b%u53ff%u0078%u0000%u00=aHTTP/1.0
jasooon_ has quit [Ping timeout: 244 seconds]
<wasamasa> I think github changed their color for syntax-highlighted strings
jasooon has quit [Ping timeout: 246 seconds]
<wasamasa> it's orange now!
t0rc has joined #ruby
<pontiki> maybe it's pumpkin spice colour
<EasyCo> zenspider: This is why: https://gist.github.com/trev/b908d3bfabebbfc7e211
entrenador has joined #ruby
simplyaubs has quit [Quit: simplyaubs]
<zenspider> nope. still not why
<zenspider> doesn't matter in the slightest if the method is copied or a reference
justinmburrous has joined #ruby
danijoo has joined #ruby
eat_multi has joined #ruby
<EasyCo> I thought that when the method got redefined the original method sort of ceased to exist
phoo1234567 has quit [Quit: Leaving]
<EasyCo> Essentially, I thought the alias would point to the newly redefined method
<zenspider> that's not how references work
<zenspider> references are just pointers
<zenspider> pointers to objects
chamblin has joined #ruby
<zenspider> you replace a method in a method dictionary, you're just making a new reference to a new object
<zenspider> the old references still point to the old objects
<EasyCo> Gotcha
jonmorehouse has joined #ruby
<EasyCo> Good to know
<zenspider> even if the method was copied, it'd still be a reference to the copy
mwlang has joined #ruby
MACscr has left #ruby [#ruby]
<mwlang> I’m on Ruby 1.8.7 and trying to figure out where a specific method is coming from (which gem in an non-bundled environment)
coderdad has quit [Remote host closed the connection]
<jhass> mwlang: use pry and a newer ruby
cpruitt has quit [Quit: cpruitt]
<mwlang> basically I’m look for where String#chars is defined as some gem is replacing ActiveSupport’s multibyte implementation of #chars
<mwlang> jhass: not an option. I’m bringing up a Rails 1.2.6 app on a new server.
<EasyCo> Yah I got that now, I suppose my original thought was that when you defined a method that already existed that it did it in place and any past references would now get the redefined method. Anyways, thanks for the clarification.
<jhass> cool, wanna share ip? sounds like a free box
<mwlang> the old server is ruby 1.8.6 on Windows. :-S
emmesswhy has joined #ruby
apeiros has quit [Remote host closed the connection]
pskosinski has quit [Remote host closed the connection]
<mwlang> jhass: feel free to hack away at 127.0.0.1 :-)
<jhass> I stick to :.1
<jhass> *::1
apeiros has joined #ruby
<zenspider> mwlang: still possible
Ankhers has joined #ruby
boombadaroomba has quit [Remote host closed the connection]
<zenspider> class String; def self.method_added(m); raise "no" if m.to_s == "chars"; end; end
<mwlang> anyway, I’m hoping for a way to query the Objectspace similar to the newer “”.method(:chars).source_location
<mwlang> zenspider: ah! now we’re on to something. Let me give that a whirl
blackmesa has quit [Quit: WeeChat 1.0]
Deele has quit [Ping timeout: 260 seconds]
krisquigley has joined #ruby
bigmac_ has joined #ruby
centrx has quit [Quit: The plan is programmed into every one of my one thousand robots]
bigmac_ is now known as i8igmac
spyderman4g63 has joined #ruby
moritzs has joined #ruby
entrenador has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
aspires has quit []
<mwlang> hmmm….nothing triggered it…not even ActiveSupport’s multibyte support being loaded.
aspires has joined #ruby
<zenspider> mwlang: are you sure it isn't the standard method then?
dx7 has joined #ruby
<mwlang> zenspider: I’m double-checking.
jottr_ has joined #ruby
krisquigley has quit [Ping timeout: 272 seconds]
hiyosi has joined #ruby
<zenspider> ya know... chars _might_ not be defined in 1.8.6, only 1.8.7... not sure
ffranz has quit [Quit: Leaving]
<jhass> 186>> "hey"
<mwlang> I know its not in 1.8.6…I get NoMethodError if I try “”.chars.inspect before ActiveRecord::CoreExtension::String::Unicode is loaded
<zenspider> so maybe what you're NOT hitting is AS checking to see if it isn't defined and putting in their own
KC9YDN has joined #ruby
mocfive has quit []
<mwlang> but I always get Enumerable::Enumerator for the same in 1.8.7, even on a vanilla irb console
<zenspider> so let's back up... what's the actual problem you're hunting down?
<mwlang> rails 1.2.6 is bombing on a bunch of ActiveSupport text_helper methods (truncate for example).
stunder has quit [Remote host closed the connection]
<mwlang> and these methods all cast strings to chars (as in text.chars.length instead of text.length) before operating on the strings.
<mwlang> but the error I get is #length is not a method for Enumerable::Enumerator
jonmorehouse has quit [Ping timeout: 272 seconds]
_1_eapp123 has quit [Ping timeout: 244 seconds]
<zenspider> this is on ruby 1.8.7, not on ruby 1.8.6... right?
<mwlang> zenspider: yes, 1.8.7
<zenspider> so the problem is the existance of String#chars on 1.8.7
<mwlang> yup. as in where’s it coming from?
jottr_ has quit [Ping timeout: 240 seconds]
<zenspider> it is coming from ruby
<zenspider> that part is fine
<zenspider> ok... in ruby 2 (and presumable 1.9), "blah".chars returns an array
<zenspider> and in 1.8.7, it returns an enumerable
<mwlang> ah, so maybe the real problem is ActiveSupport isn’t actually loading
<zenspider> let's fuck with this...
marr has quit [Ping timeout: 258 seconds]
entrenador has joined #ruby
<zenspider> no, it is... it's doing its job
<zenspider> class String; alias :chars :real_chars; def chars; real_chars.to_a; end; end
kaspergrubbe has joined #ruby
<zenspider> the other possibility is to undef chars and see what AS does to patch up their end
<mwlang> NameError: undefined method `real_chars' for class `String'
<zenspider> oh, did I do it backwards? :D
<zenspider> >> class String; alias :real_chars :chars; def chars; real_chars.to_a; end; end
<eval-in_> zenspider => :chars (https://eval.in/200904)
<zenspider> do that
Beoran_ has joined #ruby
<mwlang> undefined method `chars' for class `String' (NameError) NameError: undefined method `chars' for class `String from (irb):4
goodenough has joined #ruby
fun has quit [Quit: Page closed]
axl_ has quit [Quit: axl_]
<jhass> nitpick: I think .chars returns an array since 2.0 not 1.9
jonmorehouse has joined #ruby
<zenspider> mwlang: did you see that I reversed the order?
nettoweb has joined #ruby
niklasb_ has quit [Ping timeout: 244 seconds]
<jhass> 18>> >> class String; alias :real_chars :chars; def chars; real_chars.to_a; end; end
<eval-in_> jhass => /tmp/execpad-1aa7cfa487f9/source-1aa7cfa487f9:2: syntax error, unexpected tRSHFT ... (https://eval.in/200905)
sargas has joined #ruby
<zenspider> mwlang: you can also bring back that method_added hack and undef chars in String to see if SA has a patch
<jhass> 18>> class String; alias :real_chars :chars; def chars; real_chars.to_a; end; end
<eval-in_> jhass => nil (https://eval.in/200906)
Beoran__ has quit [Ping timeout: 245 seconds]
<jhass> 18>> class String; alias :real_chars :chars; def chars; real_chars.to_a; end; end; "foo".chars
<eval-in_> jhass => (https://eval.in/200907)
<jhass> ah great, that segfaults :D
<mwlang> zenspider: yeah, its not working
msmith has joined #ruby
<mwlang> doh! I’m on 1.8.6 by mistake
<zenspider> hah. apparently to_a calls chars :P
<zenspider> haha
mikeg has joined #ruby
<zenspider> this works on 1.8.7:
<zenspider> >> class String; alias :real_chars :chars; def chars; bytes.map(&:chr); end; end; "blah".chars
<eval-in_> zenspider => ["b", "l", "a", "h"] (https://eval.in/200908)
<zenspider> 18>> class String; alias :real_chars :chars; def chars; bytes.map(&:chr); end; end; "blah".chars
<eval-in_> zenspider => ["b", "l", "a", "h"] (https://eval.in/200909)
<mwlang> ok, it took it.
<mwlang> "".chars => SystemStackError: stack level too deep
shinobi_one has joined #ruby
<jhass> this looks so dangerous...
awc737 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> I never said it was a GOOD idea
<mwlang> but its a FUN idea
<mwlang> :-)
aspires has quit []
reset has joined #ruby
aspires has joined #ruby
<zenspider> I think if you want to replicate the behavior on 1.8.6, it might be better to undef the method and let AS do whatever it did then
justinmburrous has quit [Remote host closed the connection]
msmith has quit [Ping timeout: 260 seconds]
MCDev has joined #ruby
<jhass> (that's rails 1.2.6)
maestrojed has joined #ruby
beef-wellington has quit [Ping timeout: 272 seconds]
<zenspider> ah... looks like a method_missing is taking over
<mwlang> #truncate and #excerpt are the two methods bombing on me!