apeiros changed the topic of #ruby to: Ruby 2.1.5; 2.0.0-p598; 1.9.3-p551: 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
zarubin has joined #ruby
D9 has joined #ruby
aspires has quit []
Deltini has left #ruby ["Saindo"]
JoshGlzBrk has joined #ruby
renderful has quit [Remote host closed the connection]
JoshGlzBrk has quit [Remote host closed the connection]
zmisc is now known as ninjazach
KLVTZ_ has quit [Ping timeout: 245 seconds]
jarred has joined #ruby
charliesome has quit [Quit: zzz]
jarred has quit [Client Quit]
razieliyo has quit [Read error: No route to host]
razieliyo has joined #ruby
razieliyo has joined #ruby
razieliyo has quit [Changing host]
MartynKeigher has joined #ruby
jdsampayo_ has joined #ruby
<jdsampayo_> Hello, does anyone knows what happened to the rails channel?
<jdsampayo_> I get this: "-ChanServ- [##namespace] You've been forwarded to ##namespace by attempting to join a channel which doesn't exist on freenode."
<jenrzzz> jdsampayo_: #RubyOnRails?
davasaurous has joined #ruby
<jdsampayo_> Thanks jenrzzz!
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
AlexRussia has quit [Quit: WeeChat 1.1-dev]
jlast has quit [Ping timeout: 258 seconds]
Areessell has joined #ruby
AlexRussia has joined #ruby
kireevco1 has joined #ruby
razieliyo has quit [Client Quit]
kireevco has quit [Read error: Connection reset by peer]
fedalto has joined #ruby
Sawbones has joined #ruby
orolo has quit [Quit: This computer has gone to sleep]
it0a has joined #ruby
cesarsta1e has quit [Ping timeout: 245 seconds]
pengin_ has quit []
Juanchito has quit [Quit: Connection closed for inactivity]
freerobby has joined #ruby
moritzs has joined #ruby
banisterfiend has quit [Read error: Connection reset by peer]
jello^ has quit [Ping timeout: 260 seconds]
elemenopy has joined #ruby
charliesome has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
Beoran_ has quit [Ping timeout: 260 seconds]
nkumari has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<elemenopy> i get this after i start 'god' : The server is not available (or you do not have permissions to access it) ..... the command i used to start god was : god -c dataminer.god -D
conniemj_ has joined #ruby
shvelo has quit [Ping timeout: 260 seconds]
banister has joined #ruby
Akuma has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
Scripore has joined #ruby
banister has quit [Max SendQ exceeded]
a_random_dude has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
apeiros_ has quit [Remote host closed the connection]
tds has quit [Quit: tds]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<diegoviola> does that sounds legit to you?
apeiros_ has joined #ruby
cesarstafe has joined #ruby
banister has joined #ruby
conniemj has quit [Ping timeout: 250 seconds]
banister has quit [Max SendQ exceeded]
Sawbones has quit [Remote host closed the connection]
duncannz has quit [Ping timeout: 250 seconds]
jdsampayo_ has quit [Quit: Page closed]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
startupality has quit [Quit: startupality]
<wallerdev> posting something that looks like a url shortener and asking people to click it to find out what it is
<wallerdev> exciting stuff
davasaurous has quit [Remote host closed the connection]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
momomomomo has quit [Quit: momomomomo]
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<jenrzzz> you should definitely curl it and pipe it into `sudo bash`
duncannz has joined #ruby
ta has joined #ruby
ghr has joined #ruby
lampd1_ has joined #ruby
banister has joined #ruby
banister has quit [Max SendQ exceeded]
apeiros_ has quit [Ping timeout: 244 seconds]
<diegoviola> wallerdev: it's just plain text
<diegoviola> an email thing
<diegoviola> jenrzzz: haha
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<jenrzzz> diegoviola: idk... there's not nearly enough information there to make that kind of assessment
josephndenton has joined #ruby
<jenrzzz> are you worried about not getting paid up-front?
banister has joined #ruby
banister has quit [Max SendQ exceeded]
sambao21 has quit [Quit: Computer has gone to sleep.]
<wallerdev> id say it definitely depends on the reputation of the company
<diegoviola> they look kinda shady
<wallerdev> just get a contract
banister has joined #ruby
banister has quit [Max SendQ exceeded]
<wallerdev> if they cant get you a contract, then they probably dont actually have a "finance guy"
<wallerdev> haha
<diegoviola> I'm afraid a contract won't be that useful here, this is for remote work
<jenrzzz> yeah, +1 for contract
<diegoviola> and the client is miles away from me
<jenrzzz> why wouldn't it be useful?
<jenrzzz> are they in the same country?
lampd1 has quit [Ping timeout: 255 seconds]
<diegoviola> not in the same country
banister has joined #ruby
<wallerdev> idk ive done contracts between US and sweden before and not had any issues
banister has quit [Max SendQ exceeded]
lampd1_ is now known as lampd1
<jenrzzz> consider it a risk. worst case scenario you wasted a week
oo_ has joined #ruby
banister has joined #ruby
Beoran_ has joined #ruby
banister has quit [Max SendQ exceeded]
ghr has quit [Ping timeout: 245 seconds]
banister has joined #ruby
<diegoviola> right
<diegoviola> ty
ta has quit [Ping timeout: 272 seconds]
<Scripore> x = -8
<Scripore> y = 3
<Scripore> puts (1..4).include?(x && y)
<Scripore> anyone know why that returns true?
<shevy> x && y returns what
<banister> Scripore because x && y returns true so you're asking (1..4).include?(true)
<banister> err it returns -9
<banister> -8
<banister> wait
Takle has joined #ruby
<shevy> Scripore you get 3, which is included
thsig has joined #ruby
<banister> sorry it returns 3
giuseppesolinas has quit [Quit: This computer has gone to sleep]
<banister> and (1..4).include?(3) #=> true
<banister> shevy well done ;)
jlast_ has joined #ruby
valeriansaliou has joined #ruby
<Scripore> but 1..4 doesn't include -8 which is assigned to variable x
oo_ has quit [Remote host closed the connection]
stunder has joined #ruby
<workmad3> Scripore: 'x && y' is an expression that evaluates to 'x' if x is falsey, otherwise evaluates to 'y'
<elemenopy> an update to the question i asked earlier... so i did some research it seems that there is a delay in god. if you wait a little bit and then attempt to do your normal (start/stop/restart) commands @ god it will eventually allow you to control your god commands. apparently this is known on the internet?
<workmad3> Scripore: so when x = -8 and y = 3, 'x && y' evaluates to '3'
Spami has quit [Quit: This computer has gone to sleep]
<workmad3> Scripore: what it doesn't do is run '.include' twice, once with the value of 'x', once with the value of 'y' and && the two of them together
<Scripore> oh. okay. thanks. I think I get it now.
michaeldeol has quit [Read error: Connection reset by peer]
mikepack has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
Megtastique has joined #ruby
Takle has quit [Ping timeout: 258 seconds]
neoxquick has joined #ruby
henesy has quit [Ping timeout: 258 seconds]
valeriansaliou has quit [Ping timeout: 265 seconds]
tds has joined #ruby
oo_ has joined #ruby
tds has quit [Client Quit]
ebbflowgo has joined #ruby
ghr has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
bigkevmcd has quit [Ping timeout: 250 seconds]
fgo has joined #ruby
sevenseacat has joined #ruby
<mikedugan> what's the latest and greatest in git gems?
ahri_ has quit [Ping timeout: 256 seconds]
Areessell has quit [Quit: Lost terminal]
goodenough has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<eam> all numbers being truthy make <=> a hell of a lot less useful
kiyote23 has joined #ruby
<eam> it really ought to return different values
<mikedugan> welcome to any language that does implicit boolean casting :/
fgo has quit [Ping timeout: 240 seconds]
<eam> well no, works great for c-style casting
<eam> broken for "all objects are true" casting
kaspertidemann has quit []
<shevy> should all objects be false instead
ghr has quit [Ping timeout: 244 seconds]
<eam> zero should be
<eam> OR
<eam> <=> shouldn't return fixnums
<eam> one of the two
pdlug has joined #ruby
irk has quit [Ping timeout: 255 seconds]
irk has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
yourabi has joined #ruby
konsolebox has quit [Ping timeout: 272 seconds]
ahri_ has joined #ruby
<eam> the whole point of <=> is that the equality case is false
hatzopoulos has quit [Quit: Leaving]
workmad3 has quit [Ping timeout: 255 seconds]
goodenough has quit [Remote host closed the connection]
mloveless has joined #ruby
icbm has joined #ruby
davasaurous has joined #ruby
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
Areessell has joined #ruby
Spami has joined #ruby
teddyp1cker has joined #ruby
basichash has joined #ruby
<basichash> What is the point of attr_reader?
Sawbones has joined #ruby
<wallerdev> expose a method to access a member variable?
<wallerdev> shorthand for def cool_thing; @cool_thing; end
Soda has quit [Remote host closed the connection]
jaequery has joined #ruby
<basichash> wallerdev: but i can access an instance variable without attr_reader being set
jaequery has quit [Max SendQ exceeded]
<basichash> *with a class method
<wallerdev> not outside the class you cant
<shevy> basichash it is just a reader method, same as if you yourself defined it via "def"
jaequery has joined #ruby
maestrojed has quit [Quit: Computer has gone to sleep.]
<basichash> shevy, wallerdev: ah so it has the same effect as instantiating it in initialize, for example?
<shevy> no
<shevy> if you do:
<shevy> def foo; @foo; end
<shevy> you do not instantiate anything
<shevy> you simply define the method foo() which will return the instance variable @foo
oo_ has joined #ruby
<wallerdev> its a way to access it outside of a class
lbrf has joined #ruby
<wallerdev> >> class Cow; def initialize; @moo = true; end end; Cow.new.moo
<eval-in__> wallerdev => undefined method `moo' for #<Cow:0x407b8e24 @moo=true> (NoMethodError) ... (https://eval.in/230744)
teddyp1cker has quit [Ping timeout: 264 seconds]
<wallerdev> >> class Cow; attr_reader :moo; def initialize; @moo = true; end end; Cow.new.moo
<eval-in__> wallerdev => true (https://eval.in/230745)
<wallerdev> thats the difference
<basichash> wallerdev, shevy: how can I delete a class? i think it's not being completely rewritten each time i redefine it?
<wallerdev> why are you redefining the same class in multiple places lol
thsig has quit [Remote host closed the connection]
<basichash> wallerdev: to experiment with the accessors
<shevy> basichash what the hell are you talking about
<shevy> delete a class
<shevy> what does that even mean, I think you have the terminology wrong
henesy has joined #ruby
<basichash> shevy: if i create a class with an instance variable, how can i redine the class
Hijiri has joined #ruby
<shevy> you simply overwrite it
<shevy> every time you write class Foo; end, and you already had class Foo, you extend the behaviour of the class.
<wallerdev> if you do like sally = Cow.new; bob = Cow.new; sally and bob are instances of the Cow class, and Cow is the class
CrazyM4n has joined #ruby
yourabi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tier has joined #ruby
<shevy> >> class Foo; def test; puts 'hi'; end; end; foo = Foo.new; foo.test; class Foo; def test; end; end; foo.test
<eval-in__> shevy => hi ... (https://eval.in/230746)
aspires has joined #ruby
bklane has joined #ruby
<shevy> ignore eval-in__ - the second output is nothing
<basichash> wallerdev: yeah i redefine my class to "class MyClass end", but when I instantiate it it comes with a varialbe already defined
<shevy> then you have written your class that way
<wallerdev> the thing about classes is they start with a capital letter
<wallerdev> which means theyre constants
<wallerdev> you dont redefine them
<wallerdev> just restart irb
<basichash> wallerdev: ok that's what i was wondering, thanks
jlast_ has quit [Ping timeout: 258 seconds]
<IceDragon> basichash: remove the constant .-.
<IceDragon> shevy: hi
<IceDragon> :P
<shevy> hi dragon
<shevy> IceDragon did you saw the movie Desolation of Smaug?
<shevy> that was a mighty fire dragon
<IceDragon> x; nope
TheNet has quit [Remote host closed the connection]
yfeldblum has quit [Ping timeout: 258 seconds]
troyready has quit [Quit: Leaving]
yourabi has joined #ruby
TheNet has joined #ruby
devoldmx33 has quit [Ping timeout: 260 seconds]
bklane has quit [Client Quit]
<Areessell> I think you mean fire-drake pfffffft
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
sk87 has joined #ruby
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
cesarstafe has quit [Ping timeout: 250 seconds]
lampd1 has quit []
doritostains has joined #ruby
<shevy> drake sounds like a butterfly
ghostmoth has quit [Quit: ghostmoth]
Megtastique has quit []
mloveless has quit [Ping timeout: 244 seconds]
benzrf|offline is now known as benzrf
olivier_bK has quit [Ping timeout: 260 seconds]
senera has joined #ruby
sinequanon has joined #ruby
tyfighter has quit [Quit: tyfighter]
sinequanon has quit [Client Quit]
Megtastique has joined #ruby
adriancb has joined #ruby
* soahccc thinks that he has a "tv-show-is-about-to-end-phobia"
aspiers_ has joined #ruby
taiansu has joined #ruby
tier has quit [Remote host closed the connection]
arescorpio has joined #ruby
fabrice31 has joined #ruby
<elemenopy> does anybody know the command to show god keepalive current running values?
aspiers has quit [Ping timeout: 240 seconds]
davasaurous has quit [Ping timeout: 245 seconds]
fedalto has left #ruby ["Leaving"]
davasaurous has joined #ruby
taiansu has quit [Ping timeout: 272 seconds]
fabrice31 has quit [Ping timeout: 256 seconds]
aspires has quit []
louism2wash has joined #ruby
danman has quit [Quit: danman]
tristanp has joined #ruby
lyanchih has joined #ruby
boombadaroomba has joined #ruby
<tristanp> i have a friend who recently has experienced his irb puts statements not putting anything to the console. running scripts still works as expected. he is using irb version 0.9.6 on windows, as am i and it works for me. any ideas what could be wrong?
<CrazyM4n> If you haven't tried it, maybe try reinstalling ruby? Unless you have a reason not to
<basichash> how can i run a class method on each instance of that class? e.g. i have an Account class, each with an instance variable 'balance'. I want to create a method that will reset each balance variable to 0.
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
boombadaroomba has quit [Ping timeout: 244 seconds]
baweaver has quit [Remote host closed the connection]
melik has quit [Quit: (null)]
melik has joined #ruby
senera has quit [Quit: Lost terminal]
doug2 has quit [Ping timeout: 256 seconds]
tokik has joined #ruby
tkuchiki has joined #ruby
jlast has joined #ruby
sinequanon has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
Channel6 has joined #ruby
nkumari has joined #ruby
nkumari has quit [Remote host closed the connection]
<basichash> anyone?
tristanp has quit [Ping timeout: 258 seconds]
baweaver has joined #ruby
Avahey has joined #ruby
nkumari has joined #ruby
marr has quit [Ping timeout: 245 seconds]
melik has quit [Ping timeout: 258 seconds]
davasaur_ has joined #ruby
tejas-manohar has joined #ruby
troyready has joined #ruby
davasaurous has quit [Ping timeout: 255 seconds]
jlast has quit [Remote host closed the connection]
sinequanon has quit [Ping timeout: 258 seconds]
jlast has joined #ruby
yourabi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Shazaum has quit [Quit: This computer has gone to sleep]
AndyBotwin has joined #ruby
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
nkumari has quit [Ping timeout: 244 seconds]
baweaver has quit [Ping timeout: 240 seconds]
Azure has quit [Quit: My MBP went to sleep.]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<zenspider> basichash: you first need to understand the difference between instance methods and class methods
Azure has joined #ruby
giuseppesolinas has joined #ruby
<basichash> zenspider: i do
jherbst has joined #ruby
<zenspider> yet... you want to run a class method on each instance...
<zenspider> no, not yet
lolmaus has quit [Read error: Connection reset by peer]
lolmaus has joined #ruby
ebbflowgo has quit [Quit: ebbflowgo]
fgo has joined #ruby
tkuchiki has quit [Remote host closed the connection]
jonr22 has joined #ruby
tkuchiki has joined #ruby
AlSquirrel has quit [Quit: This computer has gone to sleep]
allcentury has quit [Ping timeout: 245 seconds]
<basichash> zenspider: i'm wondering if it's possibly, and if not then how else to achieve this
konsolebox has joined #ruby
dc_ has quit [Remote host closed the connection]
wallerdev has quit [Quit: wallerdev]
<zenspider> class methods can't have access to instance variables by definition
<zenspider> you can have a class method that enumerates all instances and calls an instance method on them
<zenspider> eg @all_accounts.each(&:reset)
<zenspider> otherwise the question doesn't even make sense
tejas-manohar has quit [Quit: Page closed]
silkfox has quit [Ping timeout: 244 seconds]
tejas-manohar has joined #ruby
deric_skibotn has quit [Ping timeout: 244 seconds]
jonr22 has quit [Ping timeout: 255 seconds]
tyfighter has joined #ruby
havenwood has joined #ruby
Akagi201 has joined #ruby
FutureTense has quit [Ping timeout: 260 seconds]
Reinitialized has joined #ruby
raja has quit [Remote host closed the connection]
silkfox has joined #ruby
davasaur_ has quit [Remote host closed the connection]
davasaurous has joined #ruby
<basichash> zenspider: right that's what i wasn't sure about. Just started looking through ruby today, have no idea about a lot of these things
sski has joined #ruby
graydot has quit [Quit: graydot]
raja has joined #ruby
tristanp has joined #ruby
parus has joined #ruby
Sawbones has quit [Remote host closed the connection]
triple_b has joined #ruby
Musashi007 has quit [Quit: Musashi007]
yourabi has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lucyinthesky has joined #ruby
davasaurous has quit [Remote host closed the connection]
tristanp has quit [Remote host closed the connection]
davasaurous has joined #ruby
tristanp has joined #ruby
jimbach has quit [Remote host closed the connection]
lucyinthesky has left #ruby ["Leaving"]
deleg has joined #ruby
ninjazach has quit [Remote host closed the connection]
sevvie has quit [Read error: Connection reset by peer]
robustus|Off has quit [Ping timeout: 255 seconds]
renderful has joined #ruby
kireevco1 has quit [Ping timeout: 240 seconds]
Sawbones has joined #ruby
DrCode has joined #ruby
sevvie has joined #ruby
raja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kireevco has joined #ruby
davasaurous has quit [Remote host closed the connection]
rshetty has joined #ruby
AndyBotwin has quit [Quit: Leaving]
robustus has joined #ruby
davasaurous has joined #ruby
mikepack has quit [Remote host closed the connection]
renderful has quit [Ping timeout: 256 seconds]
<elemenopy> how can i properly dispose of threads when they are completed? i found Thread.kill(xxxxxx) is that the correct way?
jlast has quit [Remote host closed the connection]
Sawbones has quit [Remote host closed the connection]
rshetty has quit [Remote host closed the connection]
jlast has joined #ruby
<rpag> if theyre completed theyre done, no need to kill them
<elemenopy> hmmm, well then i may have a memory leak perhaps
rshetty has joined #ruby
havenwood has quit [Remote host closed the connection]
<elemenopy> memory continues to grow inside the ruby process and isn't ever released
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
<elemenopy> even after i visually verify that the thread is completed
<mozzarella> show code
nerdy has joined #ruby
sargas has joined #ruby
<elemenopy> ok, i will but im warning you i only started about 2 weeks ago so things like indentation, naming convention, etc etc is horrible, give me a moment to prepare the gist
basichash has quit [Ping timeout: 244 seconds]
DarthGandalf has quit [Remote host closed the connection]
<elemenopy> rpag, mozzarella : https://gist.github.com/anonymous/753b15953816ee0ef6e0 i will clean up readibility issues later but am hoping the leak will be easy to spot since it's only 2 files we are using
jlast_ has joined #ruby
DarthGandalf has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
patrick99e99 has quit [Ping timeout: 245 seconds]
MattB2 has quit [Remote host closed the connection]
Sawbones has joined #ruby
davedev2_ has joined #ruby
basichash has joined #ruby
claptor has joined #ruby
<pontiki> almost every modern code editor does proper indenting for you
davedev24_ has quit [Ping timeout: 250 seconds]
Sawbones has quit [Remote host closed the connection]
Reinitialized has left #ruby ["Leaving"]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
taiansu has joined #ruby
abuzze has joined #ruby
Sawbones has joined #ruby
yfeldblum has joined #ruby
sargas has quit [Quit: This computer has gone to sleep]
yfeldblum has quit [Remote host closed the connection]
abuzze_ has quit [Ping timeout: 258 seconds]
yfeldblum has joined #ruby
blahwoop has quit [Remote host closed the connection]
taiansu has quit [Ping timeout: 245 seconds]
lampd1 has joined #ruby
pdlug has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davasaurous has quit [Read error: Connection reset by peer]
Sawbones has quit [Remote host closed the connection]
davasaurous has joined #ruby
Takle has joined #ruby
pdlug has joined #ruby
akkad has quit [Remote host closed the connection]
pdlug has quit [Client Quit]
valeriansaliou has joined #ruby
wallerdev has joined #ruby
krz has joined #ruby
davasaurous has quit [Remote host closed the connection]
yourabi has quit [Quit: Textual IRC Client: www.textualapp.com]
mikesplain has joined #ruby
davedev2_ has quit [Ping timeout: 258 seconds]
mikesplain has quit [Client Quit]
Takle has quit [Ping timeout: 264 seconds]
wsmoak has quit [Quit: wsmoak]
maletor has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
akkad has joined #ruby
valeriansaliou has quit [Ping timeout: 272 seconds]
Sawbones has joined #ruby
kosmonaut has joined #ruby
vinleod has joined #ruby
<kosmonaut> I have 3 booleans. Does anyone have a concise method to tell whether more than one is true?
davasaurous has joined #ruby
<kosmonaut> They're currently object methods, but I could stuff them in an array
duncannz has quit [Remote host closed the connection]
davedev24_ has joined #ruby
davasaurous has quit [Client Quit]
<waxjar> booleans.count { |bool| bool } > 2 ?
conniemj_ has quit [Quit: (null)]
sargas has joined #ruby
Sawbones has quit [Ping timeout: 260 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kireevco has quit [Quit: Leaving.]
rimenes has joined #ruby
Fire-Dragon-DoL has quit [Quit: Leaving.]
lucyinthesky has joined #ruby
jenrzzz has quit [Ping timeout: 272 seconds]
rshetty has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
devdazed has joined #ruby
ghr has joined #ruby
<kosmonaut> waxjar: uh that doesn't really work
econerd4ever has quit [Remote host closed the connection]
<kosmonaut> can you give a specific example? use [true, true, false]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
econerd4ever has joined #ruby
mary5030 has joined #ruby
<waxjar> >> [true, true, false].count { |bool| bool } > 2
<eval-in__> waxjar => false (https://eval.in/230759)
<ohaibbq> you want > 1 waxjar
<waxjar> oh, yeah
<ohaibbq> :)
<ohaibbq> >> [true, true, false].count { |bool| bool } > 1
<eval-in__> ohaibbq => true (https://eval.in/230762)
<waxjar> don't stick anything other than a boolean in there though, or you'll get funny results
spastorino has quit [Quit: Connection closed for inactivity]
cesarstafe has joined #ruby
<CrazyM4n> >> [true, true, false, 3].count { |n| n }
<eval-in__> CrazyM4n => 3 (https://eval.in/230767)
<ohaibbq> >> truths = [1, true, true, false].partition { |bool| bool == true }; truths.size > 1
<eval-in__> ohaibbq => true (https://eval.in/230769)
<CrazyM4n> huh
ghr has quit [Ping timeout: 244 seconds]
<ohaibbq> >> truths, falsitys = [1, true, true, false].partition { |bool| bool == true }; truths.size > 1
<eval-in__> ohaibbq => true (https://eval.in/230771)
<waxjar> CrazyM4n: 3 is truthy, so is counted
<ohaibbq> that's what i meant
<CrazyM4n> Ah, that makes sense
Nameo0 has joined #ruby
<ohaibbq> truths, other prly
<ohaibbq> i guess you could also do .count { |bool| bool == true }
<ohaibbq> to simplify
<Nameo0> Hello! =) I was wondering if it is possible to find the location of all instancs of a character in a string? I know "...".index('...') will only return the index of hte first occurence.
devdazed has quit [Quit: Computer has gone to sleep.]
lukevinc has joined #ruby
gsd has joined #ruby
mikesplain has joined #ruby
<CrazyM4n> Nameo0: Loop through the string and call index?
<CrazyM4n> Wait
<CrazyM4n> no
<CrazyM4n> lol
<ohaibbq> Nameo0: check String#chars, it'll probably help you out
<Nameo0> Okay, thanks. =)
teddyp1cker has joined #ruby
fandi has joined #ruby
tejas-manohar has quit [Quit: Page closed]
lucyinthesky has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
mikesplain has quit [Client Quit]
troyready has quit [Quit: Leaving]
narcan has joined #ruby
adriancb has joined #ruby
tus has quit [Ping timeout: 260 seconds]
teddyp1cker has quit [Ping timeout: 272 seconds]
tus has joined #ruby
tyll_ has joined #ruby
henesy has quit [Ping timeout: 245 seconds]
tyll has quit [Ping timeout: 255 seconds]
econerd4ever has quit [Remote host closed the connection]
tus has quit [Ping timeout: 245 seconds]
econerd4ever has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
rimenes has quit [Quit: Textual IRC Client: www.textualapp.com]
fabrice31 has joined #ruby
taiansu has joined #ruby
yetanotherdave has quit [Ping timeout: 250 seconds]
agent_white has quit [Quit: leaving]
phutchin1 has quit [Ping timeout: 258 seconds]
supersym has quit [Ping timeout: 264 seconds]
wallerdev has quit [Quit: wallerdev]
econerd4ever has quit [Ping timeout: 255 seconds]
checkit has quit [Ping timeout: 255 seconds]
melik has joined #ruby
perturbation has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 264 seconds]
asteve has joined #ruby
<asteve> ok, I'm making a gem and after installing I can require a specific class within my gem but I can't require the gemname by itself
<asteve> what could I be doing wrong?
* sevenseacat taps crystal ball
<sevenseacat> hmm, is this thing on
<asteve> for example, my gem is called data_structures_funtime; I can do `require 'data_structures_funtime/a_hash_table'` but I cannot do `require 'data_structures_funtime'`
charliesome has quit [Quit: zzz]
supersym has joined #ruby
<sevenseacat> you could bedoing so many things wrong, but without seeing your code, we can help you with none of it.
<asteve> makes sense, coming up
<sevenseacat> also, require isnt for gems, its for files.
reset has quit [Ping timeout: 272 seconds]
<asteve> how would you bring a gem into your project? bundler?
Sawbones has quit [Remote host closed the connection]
zbaxter has joined #ruby
zbaxter has left #ruby [#ruby]
dc has joined #ruby
elusion has joined #ruby
henesy has joined #ruby
moritzschaefer has joined #ruby
mattmcclure has quit [Quit: Connection closed for inactivity]
<elemenopy> can anybody see any obvious memory leaks in these two files? https://gist.github.com/anonymous/753b15953816ee0ef6e0
<waxjar> asteve: when i havent installed a library as a gem i use ruby -I lib
lukevinc has quit [Remote host closed the connection]
<waxjar> if it's not gonna be a gem, i set up the load path correctly
<sevenseacat> having a typo in your gemspec filename probably isnt helping you
freerobby has quit [Quit: Leaving.]
<asteve> sevenseacat: where's the typo?
doritostains has quit [Quit: doritostains]
<sevenseacat> look at the filename?
<asteve> hah
moritzs has quit [Ping timeout: 264 seconds]
doritostains has joined #ruby
charliesome has joined #ruby
<asteve> that was apparently the magic sauce
<sevenseacat> :)
<asteve> thanks sevenseacat
<sevenseacat> yw
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
lemur has joined #ruby
armyriad has quit [Ping timeout: 258 seconds]
jonr22 has joined #ruby
lucyinthesky has joined #ruby
deleg has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
radic has quit [Ping timeout: 244 seconds]
jonr22 has quit [Ping timeout: 240 seconds]
reset has joined #ruby
dc has quit [Remote host closed the connection]
Megtastique has quit []
Mothore has joined #ruby
tus has joined #ruby
Mothore_ has joined #ruby
radic has joined #ruby
sk87 has joined #ruby
reset has quit [Client Quit]
Kricir has joined #ruby
anafrogue__ has joined #ruby
elusion has quit [Ping timeout: 240 seconds]
oo_ has quit [Remote host closed the connection]
kireevco has quit [Read error: Connection reset by peer]
ghr has joined #ruby
tristanp has quit [Remote host closed the connection]
tristanp has joined #ruby
Mothore has quit [Ping timeout: 258 seconds]
teddyp1cker has joined #ruby
nanSTA has joined #ruby
<nanSTA> Hey yall
<nanSTA> I have to write a class that handles three input commands and they must be passed with space delimited arguments, via stdin or a file passed on the command line
anafrogue_ has quit [Ping timeout: 240 seconds]
<nanSTA> what does space delimited arguments, via stdin mean?
<jhass> "foo bar baz"
<asteve> what doc tool would you guys recommend?
<jhass> I guess
<asteve> yard?
<jhass> nanSTA: also have a look at ARGF
jenrzzz has joined #ruby
<jhass> asteve: I prefer yard myself
wjimenez5271 has quit [Remote host closed the connection]
<rpag> asteve, i would recommend yard
<jhass> there's not much beyond rdoc and yard
<rpag> there's tomdoc
<nanSTA> so if they were to type "foo bar baz" in irb lets say, i would have to create some kind of function to handle that?
<rpag> havent seen it used much though
<asteve> ok, I just added yard to my gemfile and it's complaining that redcarpet isn't installed
lucyinthesky has quit [Quit: Leaving]
<asteve> so I manually installed redcarpet, including a few versions and I keep getting the same error
<asteve> has anyone here experienced this?
yetanotherdave has joined #ruby
<sevenseacat> crystal ball still broken.
yetanotherdave has quit [Client Quit]
<sevenseacat> provide code and error.
<rpag> yeah, paste would be useful
<asteve> $ bundle exec yard doc[error]: Missing 'redcarpet' gem for Markdown formatting. Install it with `gem install redcarpet`
arup_r has joined #ruby
<rpag> add 'redcarpet' to your Gemfile
ghr has quit [Ping timeout: 264 seconds]
<rpag> you must have -m markdown somewhere
cesarstafe has quit [Ping timeout: 260 seconds]
<sevenseacat> and you didnt add redcarpet to your bundle
tristanp has quit [Ping timeout: 260 seconds]
kireevco has joined #ruby
yfeldblum has quit [Ping timeout: 258 seconds]
<asteve> why isn't that handled by a dep on yard?
<sevenseacat> because its not a dependency of yard
<sevenseacat> its only a dependency if you want to use it to generate markdown
<sevenseacat> or parse markdown or something
ajaiswal has joined #ruby
stunder has quit [Quit: Screw you guys I'm going home]
sea_local has quit [Remote host closed the connection]
<rpag> asteve, it's not a dependency because yard supports simplemarkup(rdoc), textile, & markdown, it lets you choose whichever parser you want depending on the markup language
jaequery has joined #ruby
moritzschaefer has quit [Ping timeout: 265 seconds]
Sawbones has joined #ruby
mikepack has joined #ruby
strangew_ has joined #ruby
<elemenopy> ruby 'god' just did the first thing i asked it to now ( clean up physical resources) in production just now. i am on cloud nine ! so happy to see this fix work correctly. i am clearly low on physical resources its apparent now
genpaku has quit [Ping timeout: 252 seconds]
strangew_ has left #ruby [#ruby]
genpaku has joined #ruby
hgl- has joined #ruby
djbkd has quit [Remote host closed the connection]
FutureTense has joined #ruby
elusion has joined #ruby
bkolden has quit [Quit: Leaving]
hgl has quit [Ping timeout: 244 seconds]
hgl- is now known as hgl
Sawbones has quit [Remote host closed the connection]
FutureTense has quit [Client Quit]
parabolize has joined #ruby
rshetty has joined #ruby
kireevco1 has joined #ruby
arescorpio has quit [Excess Flood]
kireevco has quit [Read error: Connection reset by peer]
sski has quit [Remote host closed the connection]
sski has joined #ruby
ItSANgo has quit [Quit: Leaving...]
roolo has joined #ruby
braincrash has quit [Quit: bye bye]
<xxneolithicxx> nanSTA: it means you read it from STDIN: ./yourscript < 'space dilimited arguments' or file containing "space delimited arguments" as: ./yourscript file_name most likelty
elusion has quit [Ping timeout: 258 seconds]
ta has joined #ruby
Dopagod has joined #ruby
<nanSTA> so xxneolithic, in irb loading myscript.rb and doing some argument
<nanSTA> is the same as ./yourscript < 'hi(world)'
TheNet has quit [Remote host closed the connection]
sski has quit [Ping timeout: 256 seconds]
<nanSTA> if u catch my drift
roolo has quit [Ping timeout: 245 seconds]
TheNet has joined #ruby
<asteve> I'm still battling with redcarpet http://pastie.org/9761849
<asteve> perhaps it's a version mismatch
<asteve> ?
<xxneolithicxx> irb wont be quite the same because its interactive, unless you have a specific function to call you would do the test directly from the command line
braincrash has joined #ruby
<nanSTA> okay, thank you
<jhass> asteve: 1.17 is really really old
sailias has joined #ruby
<jhass> asteve: June 18, 2011
<sevenseacat> very, very old
ta has quit [Ping timeout: 260 seconds]
<asteve> ya, looks like a version mismatch, thanks
<sevenseacat> mismatch isnt the right word
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
patrick99e99 has joined #ruby
<xxneolithicxx> nanSTA: *fyi on linux it would actually be ./yourscript < filename OR ./yourscript <<< 'space delimited argument'
eshy has quit [Quit: bye]
drkyro has quit [Ping timeout: 264 seconds]
Megtastique has joined #ruby
eshy has joined #ruby
<xxneolithicxx> *for reading from STDIN
yfeldblum has joined #ruby
Takle has joined #ruby
<xxneolithicxx> vs ./yourscript filename for passing it a file to read
sk87 has joined #ruby
oo_ has joined #ruby
tristanp has joined #ruby
<nanSTA> if I were writing a class for processing credit card transactions and I have to have to read it form STDIN, and I have the whole class written how can I make the STDIN part work for with space delimited arguments. Do i have to write a function to handle the space delimitations. Would loading in ARGF be my best bet?
valeriansaliou has joined #ruby
eshy has quit [Client Quit]
eshy has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
eshy has quit [Client Quit]
sailias has quit [Quit: Leaving.]
kireevco has joined #ruby
codezomb has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
doug2 has joined #ruby
supersym has quit [Quit: WeeChat 1.0.1]
<xxneolithicxx> you could do it all in one if you wanted to but I wouldnt
<jhass> nanSTA: did you look at the docs for ARGF?
patrick99e99 has quit [Ping timeout: 264 seconds]
<jhass> ARGF abstracts reading from a file vs. reading from stdin
<jhass> that's all
<jhass> read the docs
<jhass> while doing that drive by String#split
Takle has quit [Ping timeout: 272 seconds]
kireevco has quit [Read error: Connection reset by peer]
oo_ has quit [Ping timeout: 244 seconds]
<jhass> and yeah, split the "read and parse" logic from the processing logic, so at least two classes or a class and some toplevel code
<asteve> I've got the gems with the docs, success day
kireevco has joined #ruby
valeriansaliou has quit [Ping timeout: 244 seconds]
<jhass> asteve: yard server -g ? ;)
adriancb has quit [Remote host closed the connection]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nanSTA has quit [Ping timeout: 258 seconds]
louism2wash has quit [Quit: This computer has gone to sleep]
kireevco1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
russt has quit [Quit: russt]
<asteve> kind of
Milkweed has quit [Ping timeout: 264 seconds]
basichash has quit [Ping timeout: 250 seconds]
nanSTA has joined #ruby
oo_ has joined #ruby
jaequery has joined #ruby
<nanSTA> thank you sir, jhass.
kyb3r_ has joined #ruby
jlast_ has quit [Remote host closed the connection]
michael_mbp has quit [Excess Flood]
sea_local has joined #ruby
michael_mbp has joined #ruby
oo_ has quit [Ping timeout: 240 seconds]
tristanp has quit [Remote host closed the connection]
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
deleg has joined #ruby
chipotle has quit [Quit: cya]
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
chipotle has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oo_ has joined #ruby
x1337807x has joined #ruby
arup_r has quit [Quit: Leaving.]
rkalfane has quit [Read error: Connection reset by peer]
deleg has quit [Ping timeout: 244 seconds]
lyanchih has quit [Quit: lyanchih]
rkalfane has joined #ruby
rshetty has quit [Remote host closed the connection]
sinequanon has joined #ruby
Kricir has quit [Remote host closed the connection]
yfeldblum has quit [Remote host closed the connection]
Scripore has quit []
wjimenez5271 has joined #ruby
jenrzzz has quit [Ping timeout: 250 seconds]
oo_ has quit [Ping timeout: 244 seconds]
ghostmoth has joined #ruby
yfeldblum has joined #ruby
diegoviola has quit [Remote host closed the connection]
sea_local has quit [Remote host closed the connection]
bluOxigen has joined #ruby
sea_local has joined #ruby
rshetty has joined #ruby
ghr has joined #ruby
jaequery has joined #ruby
russt has joined #ruby
rkalfane has quit [Read error: Connection reset by peer]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
rkalfane has joined #ruby
rshetty_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
kireevco1 has joined #ruby
GOSHDARNYOU has joined #ruby
sea_local has quit [Ping timeout: 244 seconds]
autom8tr has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
Sawbones has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
__main__ has quit [Read error: No route to host]
ghr has quit [Ping timeout: 250 seconds]
kireevco has joined #ruby
Nameo0 has quit [Quit: Leaving]
davedev24_ has quit []
sea_local has joined #ruby
jlast has joined #ruby
ghostmoth has quit [Quit: ghostmoth]
autom8tr has left #ruby [#ruby]
fabrice31 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco1 has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
__main__ has joined #ruby
sinequanon has quit [Remote host closed the connection]
redjack1964 has quit [Ping timeout: 250 seconds]
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
kireevco has joined #ruby
fabrice31 has quit [Ping timeout: 264 seconds]
kireevco1 has joined #ruby
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
dopie has quit [Remote host closed the connection]
frem_ is now known as frem
Musashi007 has joined #ruby
melik has quit [Quit: (null)]
blindsight has joined #ruby
kevinxu has joined #ruby
elusion has joined #ruby
oo_ has quit [Remote host closed the connection]
kevinxu is now known as Guest78288
devoldmx has joined #ruby
silkfox has joined #ruby
jusmyth has joined #ruby
jusmyth has left #ruby [#ruby]
oo_ has joined #ruby
Sawbones has quit [Remote host closed the connection]
Takle has joined #ruby
djbkd has joined #ruby
teddyp1cker has quit [Remote host closed the connection]
Sawbones has joined #ruby
teddyp1cker has joined #ruby
Techguy305 has joined #ruby
silkfox has quit [Ping timeout: 244 seconds]
aspires has joined #ruby
<blindsight> Hey, excuse me but I have a bit of an issue that I'm stuck with. Basically, for an IRC project I made a system that outputs items from an SQL database, then from there I iterate through each item to store it in an array to as to not hard code if x = 1, if x = 2, if x = 3, etc. My issue is that I also have IRC control codes that I added, however when I put that in to the array and print it back
<blindsight> out as a string, it literally reads the control codes instead of parsing it. I've attached a gist to the code being run along with a screenshot of the console output and what is displayed on IRC. Does anyone have any ideas on resolving this?
tyfighter has quit [Quit: tyfighter]
lyanchih_ has joined #ruby
Takle has quit [Ping timeout: 244 seconds]
Sawbones has quit [Ping timeout: 244 seconds]
djbkd has quit [Ping timeout: 256 seconds]
tyfighter has joined #ruby
<blindsight> Basically sub is my array while sup is just the last element so I can make it look gramatically correct.
<blindsight> Which when is just added as a raw string has no issues what so ever
Spami has joined #ruby
jenrzzz has joined #ruby
taiansu has quit [Read error: Connection reset by peer]
taiansu has joined #ruby
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jonr22 has joined #ruby
jaequery has joined #ruby
tyfighter has quit [Client Quit]
mary5030 has quit [Remote host closed the connection]
techsethi has joined #ruby
mary5030 has joined #ruby
techsethi has quit [Remote host closed the connection]
reset has joined #ruby
tus has quit []
aspires has quit []
teddyp1cker has quit [Remote host closed the connection]
sinequanon has joined #ruby
techsethi has joined #ruby
aspires has joined #ruby
jonr22 has quit [Ping timeout: 245 seconds]
taiansu has quit []
boombadaroomba has joined #ruby
Abhijit has joined #ruby
mary5030 has quit [Ping timeout: 264 seconds]
Abhijit has quit [Max SendQ exceeded]
Abhijit has joined #ruby
Sawbones has joined #ruby
michaeldeol has joined #ruby
deleg has joined #ruby
asteve has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kireevco has quit [Ping timeout: 264 seconds]
Megtastique has quit []
boombadaroomba has quit [Ping timeout: 252 seconds]
aspires has quit []
rshetty has joined #ruby
rshetty_ has quit [Read error: Connection reset by peer]
fedexo has joined #ruby
kireevco has joined #ruby
deleg has quit [Ping timeout: 245 seconds]
arup_r has joined #ruby
Techguy305 has quit [Ping timeout: 252 seconds]
KLVTZ has joined #ruby
arup_r_ has joined #ruby
teddyp1cker has joined #ruby
rshetty_ has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
arup_r has quit [Ping timeout: 264 seconds]
klmlfl has joined #ruby
jlast has quit [Remote host closed the connection]
techsethi has quit [Quit: techsethi]
ghr has joined #ruby
it0a has quit [Quit: WeeChat 1.0.1]
tyfighter has joined #ruby
chipotle has quit [Quit: cya]
michaeldeol has quit [Quit: Textual IRC Client: www.textualapp.com]
doritostains has quit [Read error: Connection reset by peer]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Joufflu has joined #ruby
fella5s has joined #ruby
proxie has quit []
iamninja has quit [Quit: ZZZzzz…]
mikepack has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 250 seconds]
Morkel has joined #ruby
lucyinthesky has joined #ruby
beneggett has joined #ruby
beneggett has quit [Remote host closed the connection]
virtualize has joined #ruby
lyanchih_ has quit [Quit: lyanchih_]
jenrzzz has quit [Ping timeout: 264 seconds]
goodenough has joined #ruby
rkalfane has quit [Read error: Connection reset by peer]
ohaibbq has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
ohaibbq has joined #ruby
ta has joined #ruby
lyanchih has joined #ruby
sea_local has quit [Remote host closed the connection]
sea_local has joined #ruby
kireevco1 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
nagaraj has joined #ruby
unclouded has quit [Quit: Leaving]
kireevco1 has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
rkalfane has quit [Client Quit]
echooo has joined #ruby
armyriad has joined #ruby
ta has quit [Ping timeout: 260 seconds]
echooo1 has quit [Ping timeout: 264 seconds]
blueOxigen has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
sea_local has quit [Ping timeout: 255 seconds]
kireevco has joined #ruby
Channel6 has quit [Quit: Leaving]
blizzy has joined #ruby
terlar has quit [Quit: WeeChat 1.0.1]
valeriansaliou has joined #ruby
bluOxigen has quit [Ping timeout: 272 seconds]
jaequery has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
valeriansaliou has quit [Ping timeout: 256 seconds]
CrazyM4n has quit [Quit: {}+[]]
elusion has quit [Ping timeout: 258 seconds]
unclouded has joined #ruby
jarjar_prime has joined #ruby
tyfighter has quit [Quit: tyfighter]
oleo has quit [Quit: Verlassend]
Stoge88 has joined #ruby
Stoge88 has quit [Client Quit]
neoxquick has quit [Read error: Connection reset by peer]
patrick99e99 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
Stoge88 has joined #ruby
uber_hulk has joined #ruby
klmlfl has quit [Remote host closed the connection]
hesco has quit [Read error: Connection reset by peer]
dseitz has joined #ruby
apeiros_ has joined #ruby
patrick99e99 has quit [Ping timeout: 255 seconds]
nanSTA has quit [Ping timeout: 258 seconds]
teddyp1cker has quit [Remote host closed the connection]
rabbitdew has joined #ruby
rabbitdew has left #ruby [#ruby]
MartynKeigher has quit [Read error: Connection reset by peer]
Sawbones has quit [Remote host closed the connection]
arup_r_ has quit []
arup_r has joined #ruby
karstensrage has left #ruby ["Leaving"]
josephndenton has quit [Ping timeout: 264 seconds]
Morkel has quit [Quit: Morkel]
snowpeas has quit [Remote host closed the connection]
snowpeas has joined #ruby
nanSTA has joined #ruby
Musashi007 has quit [Quit: Musashi007]
blueOxigen has quit [Ping timeout: 264 seconds]
techsethi has joined #ruby
jlast has joined #ruby
sea_local has joined #ruby
bluOxigen has joined #ruby
jlast has quit [Remote host closed the connection]
narcan has quit [Quit: -[AppDelegate installMalware]: unrecognized selector sent to instance 0x156109c0]
sski has joined #ruby
snowpeas has quit [Remote host closed the connection]
sargas has quit [Quit: Leaving]
mary5030 has joined #ruby
jenrzzz has joined #ruby
snowpeas has joined #ruby
timonv_ has joined #ruby
techsethi has quit [Quit: techsethi]
apeiros_ has quit [Remote host closed the connection]
vinleod has quit [Excess Flood]
apeiros_ has joined #ruby
oo_ has quit [Remote host closed the connection]
mark09 has joined #ruby
oo_ has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
snowpeas has quit [Remote host closed the connection]
mary5030 has quit [Ping timeout: 258 seconds]
snowpeas has joined #ruby
jenrzzz has quit [Ping timeout: 245 seconds]
tyfighter has joined #ruby
<mark09> I need to search for a pattern in an arbitray text with unknown encoding, possibly multiple encodings...
emmesswhy has joined #ruby
qox31 has quit [Read error: Connection reset by peer]
qq31 has joined #ruby
qq31 has quit [Read error: Connection reset by peer]
<mark09> what's the best way to handle this without assuming one encoding and ignoring invalid bytes?
lxsameer has joined #ruby
<thomasfedb> mark09, try each encoding?
<thomasfedb> mark09, have you tried yet?
vinleod has joined #ruby
<mark09> is this the way to go? https://github.com/Manfred/Ensure-encoding
russt has quit [Quit: russt]
Sawbones has joined #ruby
<arup_r> shevy: Are you still working ? You are a hardworker.
qox31 has joined #ruby
apeiros_ has quit [Ping timeout: 258 seconds]
charliesome has quit [Quit: zzz]
aspires has joined #ruby
blizzy has quit [Ping timeout: 240 seconds]
snowpeas has quit [Remote host closed the connection]
fgo has joined #ruby
charliesome has joined #ruby
snowpeas has joined #ruby
Lingos has joined #ruby
<mark09> hmm didn't work for me
Takle has joined #ruby
fabrice31 has joined #ruby
ghr has joined #ruby
apeiros_ has joined #ruby
<lbrf> mark09: organiza o encode :)
sk87 has joined #ruby
apeiros_ has quit [Remote host closed the connection]
tagrudev has joined #ruby
vinleod has quit [Ping timeout: 245 seconds]
snowpeas has quit [Remote host closed the connection]
snowpeas has joined #ruby
Takle has quit [Ping timeout: 245 seconds]
<thomasfedb> mark09, What precisely "didn't work" ?
<mark09> the above gem
fabrice31 has quit [Ping timeout: 245 seconds]
<mark09> looks like this is my best bet for now http://vpaste.net/9SDBR
anaeem1 has joined #ruby
ghr has quit [Ping timeout: 244 seconds]
anaeem1 has quit [Remote host closed the connection]
anaeem1 has joined #ruby
spacemud has quit [Ping timeout: 244 seconds]
abuzze has quit [Remote host closed the connection]
rshetty_ has quit [Remote host closed the connection]
Lingos has quit [Quit: Be back later ...]
tobago has joined #ruby
snowpeas has quit [Remote host closed the connection]
<certainty> moin
snowpeas has joined #ruby
sinequanon has quit [Remote host closed the connection]
maletor has joined #ruby
sinequanon has joined #ruby
JohnBat26 has joined #ruby
valeriansaliou has joined #ruby
lnormous has quit [Ping timeout: 250 seconds]
lucyinthesky has quit [Quit: All for freedom and for pleasure]
benzrf is now known as benzrf|offline
kiyote23 has quit [Remote host closed the connection]
kiyote23 has joined #ruby
Lingos has joined #ruby
Avahey has quit [Quit: Connection closed for inactivity]
valeriansaliou has quit [Ping timeout: 252 seconds]
Joufflu has quit [Ping timeout: 258 seconds]
silkfox has joined #ruby
<nanSTA> I have written a class for credit card transactions, and when I run ruby ./myscript.rb < data.txt, It creates three objects with my parameters but cannot use those objects using my unique constructors.
<nanSTA> undefined method `charge' for "tom":String (NoMethodError)
<certainty> nanSTA: show us codec
<certainty> erm code
kiyote23 has quit [Ping timeout: 264 seconds]
codecop has joined #ruby
<nanSTA> this is my run function for ARGF
chu has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
<nanSTA> def run(file) file.each_line { |each, index| line = each.split(' ') function = line[0] if function == 'Add' name = line[1].downcase name = Credit.new(line[1], line[2], line[3]) elsif function == 'Charge' name = line[1].downcase name.charge(line[2]) # name = line[1].downcase.to_s # name.charge(line[2]) elsif function == 'Credit' # line[1].credit(line[2]) end } end
keen______ has joined #ruby
<sevenseacat> !gist
<helpa> http://gist.github.com - Put your codes online with pretty syntax highlighting and the ability to embed it into other pages.
<nanSTA> play
<nanSTA> okay
<nanSTA> i will
rshetty has joined #ruby
rshetty has quit [Remote host closed the connection]
keen_____ has quit [Ping timeout: 244 seconds]
jlast has joined #ruby
vinleod has joined #ruby
<nanSTA> I am adding some comments
bal has joined #ruby
silkfox has quit [Ping timeout: 258 seconds]
<mark09> why line 61?
<nanSTA> it wouldnt work otherwise
<mark09> paste again with .rb extension for highlighting
<mark09> paste the text file too
armyriad has quit [Ping timeout: 252 seconds]
armyriad has joined #ruby
Stoge88 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<nanSTA> paste here mark09?
kyb3r_ has quit [Read error: Connection reset by peer]
last_staff has joined #ruby
nkumari has joined #ruby
tyfighter has quit [Quit: tyfighter]
kiyote23 has joined #ruby
tvw has joined #ruby
<nanSTA> okay its all there
devoldmx has quit [K-Lined]
jonr22 has joined #ruby
<nanSTA> requirements: three input commands must be handled, passed with space delimited arguments, via stdin or a file passed on the command line
nkumari has quit [Client Quit]
wjimenez5271 has quit [Remote host closed the connection]
j416 has quit [Ping timeout: 272 seconds]
dseitz has left #ruby ["Textual IRC Client: www.textualapp.com"]
timonv_ has quit [Remote host closed the connection]
D9 has quit [Ping timeout: 272 seconds]
lxsameer has quit [Ping timeout: 240 seconds]
kiyote23 has quit [Ping timeout: 256 seconds]
spacemud has joined #ruby
ndrei has quit [Ping timeout: 258 seconds]
<nanSTA> anyone have any ideas?
Mothore__ has joined #ruby
ndrei has joined #ruby
<nanSTA> or can help me
jonr22 has quit [Ping timeout: 244 seconds]
Lingos has quit [Quit: Be back later ...]
SOLDIERz has joined #ruby
SOLDIERz has quit [Client Quit]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
ptrrr has joined #ruby
valeriansaliou has joined #ruby
<arup_r> nanSTA: What books you are following to learn Ruby ?
Musashi007 has joined #ruby
terlar has joined #ruby
<nanSTA> no books, just as I go. This is my first on my own project
<nanSTA> am i doing this wrong?
Mothore_ has quit [Ping timeout: 264 seconds]
deleg has joined #ruby
adriancb has joined #ruby
Crazy_Atheist has quit [Quit: WeeChat 1.0.1]
lbrf has quit [Quit: Be back later ...]
SOLDIERz has joined #ruby
tobago has quit [Remote host closed the connection]
armyriad has quit [Ping timeout: 255 seconds]
melik has joined #ruby
robbyoconnor has joined #ruby
TheNet has quit [Quit: Leaving...]
krz has quit [Ping timeout: 255 seconds]
deleg has quit [Ping timeout: 264 seconds]
adriancb has quit [Ping timeout: 244 seconds]
tobago has joined #ruby
nhhagen has joined #ruby
AlexRussia has quit [Quit: WeeChat 1.1-dev]
rshetty has joined #ruby
SOLDIERz has quit [Ping timeout: 245 seconds]
mozzarella has quit [Ping timeout: 256 seconds]
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
andikr has joined #ruby
krz has joined #ruby
<mark09> nanSTA: yuou do name = line[1].downcase
rshetty has quit [Remote host closed the connection]
uber_hulk has quit [Quit: leaving]
GOSHDARNYOU has quit [Quit: Connection closed for inactivity]
boombadaroomba has joined #ruby
<mark09> nanSTA: that is, you set name to Jim/Bob/James
<mark09> then you do name = Credit.new(line[1], line[2], line[3])
<mark09> that is, you replace name with something else, a Credit instance
<nanSTA> so stdin doesnt save the object?
<mark09> you want to assing the Credit object to credit or whatever, not name
kristofferR has joined #ruby
<mark09> you're doing this
<mark09> fruit = 'useless'
<mark09> fruit = Country.new('Japan')
<mark09> so your first assignment to fruit was pretty useless
Musashi007 has quit [Quit: Musashi007]
<mark09> you want to assign Country to something else than fruit, because Japan is not a fruit and fruit is already assigned
<mark09> do you understand this?
<nanSTA> one sec, i thought I was doing jim = Credit.new("Jim", "3413411", 314)
<nanSTA> jim.charge(123)
<mark09> in ruby you can perform multiple assignments in one line, so you can do this:
_ixti_ has joined #ruby
boombadaroomba has quit [Ping timeout: 255 seconds]
<mark09> function, name, card_number, limit = line
<mark09> this will take the first four elements of the line array and assign to each variable
<nanSTA> ahh
<mark09> then you can do credit = Credit.new(name, card_number, limit)
j416 has joined #ruby
<nanSTA> even if line doesnt have line[]3
<mark09> and *only then* you test the value of function
ixti has quit [Ping timeout: 264 seconds]
<mark09> ah wait
<nanSTA> since its dending on that data.txt
<mark09> if line is empty then you simply ignore it
<nanSTA> but
<nanSTA> name = Credit.new(line[1], line[2], line[3])
<nanSTA> line[1] is not the same for every instance for each
j416 has quit [Client Quit]
Musashi007 has joined #ruby
uber_hulk has joined #ruby
KLVTZ has left #ruby [#ruby]
anaeem1__ has joined #ruby
<nanSTA> it could be the cc_number one time or the charge the next time
mozzarella has joined #ruby
<mark09> name = Credit.new is very odd, like fruit = Japan, don't you understand this?
anarang has joined #ruby
<nanSTA> i dont understand...
lxsameer has joined #ruby
<nanSTA> please help me understand
aganov has joined #ruby
<mark09> you are creating this data file right?
anaeem1 has quit [Ping timeout: 260 seconds]
iwishiwerearobot has joined #ruby
<nanSTA> no. this file is being parsed by my document through terminal
<nanSTA> e.g ruby ./basicCC.rb < data.txt
<mark09> who sent you this file?
jlast has quit [Ping timeout: 258 seconds]
yfeldblum has quit [Remote host closed the connection]
<nanSTA> my teacher
<mark09> what if one add line is only specified after a charge line? then you won't find the person to charge
<nanSTA> i will add those exceptions in later, but for not the order is not arbitrary
<nanSTA> it is specific to the data.txt file
CpuID has quit [Quit: This computer has gone to sleep]
valeriansaliou has quit [Ping timeout: 245 seconds]
iamninja has joined #ruby
amundj has joined #ruby
econerd4ever has joined #ruby
kwd has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ghr has joined #ruby
moloch is now known as zly
zly has quit [Changing host]
zly has joined #ruby
Musashi007 has quit [Quit: Musashi007]
maletor has quit [Quit: Computer has gone to sleep.]
lampd1 has quit [Remote host closed the connection]
econerd4ever has quit [Remote host closed the connection]
ycodr has quit [Remote host closed the connection]
ghr has quit [Ping timeout: 244 seconds]
econerd4ever has joined #ruby
Stoge88 has joined #ruby
ycodr has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
machete has quit [Ping timeout: 272 seconds]
<mark09> nanSTA: try something like this http://pastie.org/9762102
ycodr has quit [Remote host closed the connection]
Musashi007 has joined #ruby
machete has joined #ruby
ptrrr has quit [Quit: ptrrr]
<nanSTA> same problem. its something with memory or somthing
<nanSTA> Desktop nanSTA$ sudo ruby ./basicCC.rb < data.txt ./basicCC.rb:62:in `block in run': undefined local variable or method `people' for main:Object (NameError) from ./basicCC.rb:57:in `each_line' from ./basicCC.rb:57:in `run' from ./basicCC.rb:81:in `<main>'
ycodr has joined #ruby
xaaabk has joined #ruby
dain_ has joined #ruby
xaaabk has quit [Client Quit]
Sawbones has quit [Remote host closed the connection]
xaaabk has joined #ruby
<mark09> def run(file, people)
<mark09> then pass people as well when calling run
abuzze has joined #ruby
<mark09> but it is important that you understand my sugestion, not simply copy & paste
<nanSTA> i understand
<nanSTA> we need a way to save the data
<nanSTA> not simply using the string instance of the name to create a object
<nanSTA> correct?
braincra- has joined #ruby
xaaabk has quit [Client Quit]
CpuID has joined #ruby
CpuID has joined #ruby
ItSANgo has joined #ruby
xaaabk has joined #ruby
xaaabk has quit [Max SendQ exceeded]
<mark09> I don't understand your question
Macaveli has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
braincrash has quit [Ping timeout: 252 seconds]
<nanSTA> your suggestion creates some exceptions and saves the variables as well as the objects in a hash called persons . Is that a good understanding of your suggestions?
abuzze has quit [Ping timeout: 255 seconds]
<nanSTA> now i get no implicit conversion of Fixnum into String (TypeError)
<nanSTA> i have trouble with conversions
<nanSTA> where to use them
xaaabk has joined #ruby
xaaabk has quit [Max SendQ exceeded]
<mark09> yeah you got my code
<mark09> ah not sure, more or less
xaaabk has joined #ruby
reset has quit [Quit: Leaving...]
ycodr has quit [Remote host closed the connection]
Joufflu has joined #ruby
Musashi007 has quit [Quit: Musashi007]
bigkevmcd has joined #ruby
renderful has joined #ruby
ycodr has joined #ruby
ta has joined #ruby
noop has joined #ruby
j2p2 has quit [Ping timeout: 264 seconds]
jlast has joined #ruby
j2p2 has joined #ruby
renderful has quit [Ping timeout: 258 seconds]
pranny has joined #ruby
anaeem1__ has quit [Ping timeout: 258 seconds]
abuzze has joined #ruby
amundj has joined #ruby
<nanSTA> thanks for your help mark09
timonv_ has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
pranny has quit [Client Quit]
ghostmoth has joined #ruby
wjimenez5271 has joined #ruby
pranny has joined #ruby
ghostmoth has quit [Client Quit]
patrick99e99 has joined #ruby
sinequanon has quit [Remote host closed the connection]
sinkensabe has joined #ruby
jenrzzz has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
AxonetBE has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
rdark has joined #ruby
kireevco has joined #ruby
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
wjimenez5271 has quit [Ping timeout: 264 seconds]
patrick99e99 has quit [Ping timeout: 252 seconds]
dain_ has quit [Quit: dain_]
jenrzzz has quit [Ping timeout: 245 seconds]
timonv_ has quit [Remote host closed the connection]
sinequanon has joined #ruby
ht__th has quit [Remote host closed the connection]
teddyp1cker has joined #ruby
jenrzzz has joined #ruby
Mothore__ has quit [Quit: Be back later ...]
shvelo has joined #ruby
lkba has quit [Ping timeout: 272 seconds]
<mark09> ok
tgandrews has joined #ruby
ycodr has quit [Remote host closed the connection]
alex88 has joined #ruby
silkfox has joined #ruby
ycodr has joined #ruby
mark09 has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
teddyp1cker has quit [Ping timeout: 264 seconds]
thsig has joined #ruby
godd2 has quit [Ping timeout: 250 seconds]
einarj has joined #ruby
silkfox has quit [Ping timeout: 265 seconds]
ayaz has joined #ruby
Advocation has joined #ruby
shock_one has joined #ruby
mradmacher has joined #ruby
aspires has quit []
livathinos has joined #ruby
sinequanon has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 258 seconds]
lolmaus has joined #ruby
shock_one has quit [Remote host closed the connection]
Vile` has quit [Ping timeout: 244 seconds]
ChoiKyuSang has quit [Read error: Connection timed out]
MattB2 has joined #ruby
sevenseacat has quit [Quit: Leaving.]
sevenseacat has joined #ruby
ChoiKyuSang has joined #ruby
MattB2 has quit [Client Quit]
parabolize has quit [Quit: ERC Version 5.3 (IRC client for Emacs)]
ht__th has joined #ruby
agjacome has joined #ruby
econerd4ever has quit [Remote host closed the connection]
charliesome has quit [Quit: zzz]
garbanotas has quit [Quit: Leaving]
Areessell has quit [Ping timeout: 252 seconds]
CpuID has quit [Quit: This computer has gone to sleep]
mkaesz has joined #ruby
Vile` has joined #ruby
Vile` has quit [Read error: Connection reset by peer]
Deele has joined #ruby
shvelo has quit [Ping timeout: 255 seconds]
fella5s has quit [Quit: Leaving]
hanmac1 has joined #ruby
<hanmac1> shevy!
<shevy> yeah
<shevy> yesterday I learned about gem owner
<hanmac1> shevy: my stuff ... now with extra pie: http://i.imgur.com/nqawnjY.png
<shevy> but drbrain warned me
<shevy> <drbrain> shevy: only add owners you trust. owners have the power to remove the person that added them
ghr has joined #ruby
<shevy> cool
<shevy> that looks like a genome browser now that it is round
fgo has quit [Ping timeout: 256 seconds]
<shevy> are you going to replace R?
interweb has joined #ruby
<hanmac1> R ? you mean the language?
suy is now known as disperso
suy_ is now known as suy
<interweb> Hi , I know Python and want to learn Ruby . Where should I start from ?
thsig has quit []
<hanmac1> shevy currently i only add drawing stuff for wxwidgets ... similar to http://wxcode.sourceforge.net/components/freechart/ but i have planed some other interesting stuff
fedexo has quit [Ping timeout: 260 seconds]
bluOxigen has quit [Ping timeout: 272 seconds]
mahtennek has joined #ruby
<interweb> hanmac1, thanks
ghr has quit [Ping timeout: 265 seconds]
Nameo0 has joined #ruby
p0wn3d_mhs has quit [Ping timeout: 250 seconds]
interweb has quit [Quit: Leaving]
rshetty has joined #ruby
hamakn has joined #ruby
jenrzzz has quit [Ping timeout: 256 seconds]
charliesome has joined #ruby
vieq has quit [Remote host closed the connection]
psy_ has quit [Ping timeout: 244 seconds]
hgl has quit [Max SendQ exceeded]
vieq has joined #ruby
Xeago has joined #ruby
Xeago_ has joined #ruby
rshetty has quit [Remote host closed the connection]
Darryl__ has quit [Quit: Connection closed for inactivity]
hgl has joined #ruby
hgl has quit [Max SendQ exceeded]
sevenseacat has quit [Remote host closed the connection]
arup_r has joined #ruby
Sawbones has joined #ruby
fgo has joined #ruby
oo_ has quit [Ping timeout: 272 seconds]
Xeago__ has joined #ruby
olivier_bK has joined #ruby
wpp has joined #ruby
sandelius has joined #ruby
lyanchih has quit [Ping timeout: 245 seconds]
Xeago___ has joined #ruby
ohaibbq has quit [Quit: Leaving...]
jonr22 has joined #ruby
Xeago has quit [Ping timeout: 244 seconds]
rshetty has joined #ruby
techsethi has joined #ruby
deleg has joined #ruby
oo_ has joined #ruby
Xeago_ has quit [Ping timeout: 244 seconds]
ChoiKyuSang has quit [Read error: Connection reset by peer]
jenrzzz has joined #ruby
Joufflu has quit [Read error: Connection reset by peer]
ChoiKyuSang has joined #ruby
ChoiKyuSang has joined #ruby
ChoiKyuSang has quit [Changing host]
sk87 has joined #ruby
hiall has joined #ruby
Takle has joined #ruby
Takle has quit [Remote host closed the connection]
blackmesa has joined #ruby
Takle has joined #ruby
Xeago__ has quit [Ping timeout: 250 seconds]
jlast has joined #ruby
tobago has quit [Remote host closed the connection]
hgl has joined #ruby
jonr22 has quit [Ping timeout: 272 seconds]
jenrzzz has quit [Ping timeout: 255 seconds]
timonv_ has joined #ruby
lyanchih_ has joined #ruby
shock_one has joined #ruby
jheg has joined #ruby
tobago has joined #ruby
pranny has quit [Quit: Leaving.]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
doug2 has quit [Ping timeout: 260 seconds]
AlSquirrel has joined #ruby
fgo has quit [Ping timeout: 244 seconds]
mices has joined #ruby
lyanchih_ has quit [Ping timeout: 250 seconds]
RitterJack has joined #ruby
fgo has joined #ruby
anaeem1_ has joined #ruby
<mices> I get this error trying to run bundle install 'There was an error while trying to write to Gemfile.lock' and it gives me the path to the file but the file's not there
Advocation has quit [Quit: Advocation]
wjimenez5271 has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
kireevco has joined #ruby
ta has quit [Remote host closed the connection]
p0wn3d_mhs has joined #ruby
joonty has joined #ruby
rshetty has quit [Remote host closed the connection]
elaptics`away is now known as elaptics
rshetty has joined #ruby
wjimenez5271 has quit [Ping timeout: 250 seconds]
<canton7> mices, sounds like it couldn't create the file
<canton7> mices, check the user you're running bundle install as has permissions to create the file there
dexteryy has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
dexteryy has quit [Max SendQ exceeded]
djbkd has joined #ruby
dexteryy has joined #ruby
x1337807x has joined #ruby
dexteryy has quit [Max SendQ exceeded]
dexteryy has joined #ruby
roolo has joined #ruby
rshetty has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 245 seconds]
djbkd has quit [Ping timeout: 255 seconds]
jlast has quit [Ping timeout: 240 seconds]
fgo has joined #ruby
nic019 has joined #ruby
startupality has joined #ruby
iamninja has quit [Quit: Textual IRC Client: www.textualapp.com]
cassianoleal has quit [Quit: (null)]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
iamninja has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
blackmesa has joined #ruby
Sawbones has quit [Remote host closed the connection]
oo_ has quit [Remote host closed the connection]
oo_ has joined #ruby
apeiros_ has joined #ruby
econerd4ever has joined #ruby
sk87 has joined #ruby
kristofferR has quit [Quit: Textual IRC Client: www.textualapp.com]
shock_one has quit [Remote host closed the connection]
Soda has joined #ruby
nfk has joined #ruby
sandelius has joined #ruby
rshetty has joined #ruby
workmad3 has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
jalcine has joined #ruby
lyanchih_ has joined #ruby
giuseppesolinas has joined #ruby
fgo has quit [Ping timeout: 272 seconds]
kireevco has quit [Ping timeout: 256 seconds]
rshetty has quit [Remote host closed the connection]
apeiros__ has joined #ruby
fgo has joined #ruby
arup_r_ has joined #ruby
dANO has joined #ruby
fella5s has joined #ruby
apeiros_ has quit [Ping timeout: 258 seconds]
tsu has joined #ruby
jasonwebster has joined #ruby
lyanchih_ has quit [Ping timeout: 264 seconds]
ghr has joined #ruby
agjacome has quit [Quit: leaving]
SoloOne has joined #ruby
arup_r has quit [Ping timeout: 264 seconds]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
abuzze_ has joined #ruby
bMalum has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
shock_one has joined #ruby
econerd4ever has quit [Remote host closed the connection]
abuzze has quit [Ping timeout: 244 seconds]
jasonwebster has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ghr has quit [Ping timeout: 250 seconds]
techsethi has quit [Quit: techsethi]
econerd4ever has joined #ruby
godd2 has joined #ruby
KnownSyntax has quit [Quit: Connection closed for inactivity]
jlast has joined #ruby
AFKGeek has joined #ruby
ringarin has joined #ruby
fgo has quit [Ping timeout: 252 seconds]
ringarin has quit [Client Quit]
ramfjord has quit [Quit: Lost terminal]
fgo has joined #ruby
raja has joined #ruby
rshetty has joined #ruby
Takle has quit [Read error: Connection reset by peer]
ta has joined #ruby
econerd4ever has quit [Remote host closed the connection]
tkuchiki_ has joined #ruby
lkba has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hamakn_ has joined #ruby
hamakn has quit [Read error: Connection reset by peer]
tkuchiki has quit [Ping timeout: 255 seconds]
abuzze has joined #ruby
abuzze_ has quit [Read error: Connection reset by peer]
vinleod has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
rshetty has quit [Remote host closed the connection]
timonv_ has joined #ruby
tsu has quit [Remote host closed the connection]
Takle has joined #ruby
konsolebox has quit [Ping timeout: 272 seconds]
arup_r_ has quit [Remote host closed the connection]
melik has quit [Quit: (null)]
AndChat| has joined #ruby
mkaesz has quit [Remote host closed the connection]
lkba has quit [Ping timeout: 245 seconds]
tsu has joined #ruby
shock_one has quit [Remote host closed the connection]
Mateon1 has quit [Read error: Connection reset by peer]
quimrstorres has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
econerd4ever has joined #ruby
fgo has joined #ruby
pushpak has joined #ruby
decoponio has joined #ruby
tokik has quit [Ping timeout: 240 seconds]
apeiros__ is now known as apeiros_
abuzze has quit [Ping timeout: 258 seconds]
wjimenez5271 has joined #ruby
bubu has joined #ruby
Spami has joined #ruby
mkaesz has joined #ruby
rshetty has joined #ruby
tgandrews has quit [Quit: This computer has gone to sleep]
fabrice31 has quit [Ping timeout: 245 seconds]
<bubu> Hey guys, I have an array of hashes, I want to iterate over each hash, adding an element to it. Using each isn't working as expected...
iwishiwerearobot has quit [Quit: Be back later ...]
uber_hulk has quit [Quit: leaving]
<bubu> nvm, being an idiot
<bubu> :D
rshetty has quit [Remote host closed the connection]
jlast has quit [Ping timeout: 245 seconds]
Nameo0 has quit [Quit: Leaving]
charliesome has quit [Quit: zzz]
abuzze has joined #ruby
wjimenez5271 has quit [Ping timeout: 258 seconds]
teddyp1cker has joined #ruby
Mateon1 has joined #ruby
Mateon1 has joined #ruby
Guest78288 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
marr has joined #ruby
surs has joined #ruby
rshetty has joined #ruby
<surs> how can I insert a block showing code (i.e. a method call) in rdoc?
shock_one has joined #ruby
Advocation has joined #ruby
Spami has quit [Ping timeout: 256 seconds]
teddyp1cker has quit [Ping timeout: 255 seconds]
sk87 has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
msgodf has joined #ruby
rshetty has quit [Remote host closed the connection]
Spami has joined #ruby
xhoy has joined #ruby
<xhoy> any suggestion on how to reencode this: https://gist.github.com/xhoy/308129c06b0d1ff52402
<xhoy> it works when i use puts?
rshetty has joined #ruby
giuseppesolinas has joined #ruby
abuzze_ has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
tsu has quit [Remote host closed the connection]
arup_r has joined #ruby
quimrstorres has joined #ruby
rshetty has quit [Remote host closed the connection]
DaniG2k has joined #ruby
quimrstorres has quit [Read error: Connection reset by peer]
SOLDIERz has joined #ruby
<tobiasvl> q.to_s ?
warreng has quit [Ping timeout: 240 seconds]
ldnunes has joined #ruby
Advocation has quit [Quit: Advocation]
<xhoy> returns the i\uu000d
warreng has joined #ruby
Sawbones has joined #ruby
<xhoy> so it seems like a dubble encoded ?
<apeiros_> xhoy: looks like utf-16
_Andres has joined #ruby
mahtennek has quit [Remote host closed the connection]
<xhoy> should i do force_encoding?
shvelo has joined #ruby
<apeiros_> no. you should state the encoding when reading the file properly
<xhoy> because when i do q.force_encoding(Encoding::UTF_16)
<xhoy> it breaks
abuzze_ has quit [Ping timeout: 250 seconds]
<xhoy> ooooow!
<apeiros_> because it's little endian
<apeiros_> utf-16le, not utf-16
<apeiros_> default is big endian
msgodf has quit [Ping timeout: 264 seconds]
Sawbones has quit [Ping timeout: 240 seconds]
quimrstorres has joined #ruby
<hanmac1> "little and big endian, living together in a flat, but they cant understand each other because they are speaking in different byte order" ;P
<xhoy> :P
<apeiros_> every time you have "force_encoding" in your source, it's a big red sign telling you: "you forgot to properly set the encoding of an input/source"
<xhoy> aha
<xhoy> the problem is we use winrm to get some data from a windows machine
<apeiros_> so?
<xhoy> so i need to change winrm :)
<apeiros_> no?
<xhoy> why not?
<apeiros_> you need to set it at the point where it enters your ruby script
mahtennek has joined #ruby
<xhoy> when i run different command it works?
arup_r_ has joined #ruby
<apeiros_> define "works"
<apeiros_> seems your winrm works just fine
<apeiros_> its output is utf-16le. and you just fail to properly handle that.
<xhoy> when i do ipconfig
<xhoy> i get nice output
<xhoy> but now i start a random executable
econerd4ever has quit [Remote host closed the connection]
rshetty has joined #ruby
<shevy> wat
<xhoy> moment updating the gist
<shevy> a random executable
<shevy> is this playing lotto
arup_r__ has joined #ruby
abuzze_ has joined #ruby
<apeiros_> yeah, random executable has randomly encoded output… surprise.
<xhoy> so i get a good encoded stdout back, but a bad encoded content
<apeiros_> *sob*
arup_r has quit [Ping timeout: 240 seconds]
<xhoy> when i use puts its all good again :S
<apeiros_> different programs use different encodings for their output.
<xhoy> uhu
<xhoy> so where should i change the encoding then?
fgo has quit [Ping timeout: 265 seconds]
<shevy> in ruby? you can re-encode strings
fgo has joined #ruby
<xhoy> oke
<apeiros_> if you can tell eracmd.exe which encoding you expect from it, I'd do it there
<shevy> some_string.force_encoding("UTF-8")
mahtennek has quit [Client Quit]
<apeiros_> other than that: there. is. no. silver. bullet.
sevenseacat has joined #ruby
<xhoy> shevy: yeah but apeiros_ said do it as quickly as possible
<shevy> some_string.encode("iso-8859-1")
<apeiros_> *you* must know which command uses which encoding
<xhoy> yeah ok
<apeiros_> shevy: that requires some_string has its current encoding set correctly
<apeiros_> shevy: and for that you must know a) from where the string originated and b) which encoding that origin used
arup_r_ has quit [Ping timeout: 244 seconds]
<apeiros_> you'll just garble your data if you don't know that.
<shevy> Unicode!
rshetty has quit [Remote host closed the connection]
<xhoy> apeiros_: it does scrable my data
jlast has joined #ruby
tsu has joined #ruby
abuzze_ has quit [Ping timeout: 255 seconds]
<xhoy> so i should force eracmd to output some other encoding?
<shevy> you don't use UTF-8?
<apeiros_> xhoy: no
<apeiros_> xhoy: you should *know* which encoding *you* expect
<apeiros_> not *some* encoding.
<apeiros_> stop making a mess.
<xhoy> oke lets say i figured out that is UTF32 (or what ever)
<xhoy> then i should do string.force_encoding(UTF32)?
econerd4ever has joined #ruby
ghr has joined #ruby
<shevy> you must pass a string
spastorino has joined #ruby
<apeiros_> if your string source does not allow you to tell the proper encoding when generating the string - yes.
<apeiros_> otherwise, do it at the source
<xhoy> oke
<xhoy> so then ill need to find out what encoding.
<xhoy> lucky i have the source for eracmd :)
techsethi has joined #ruby
<apeiros_> `File.read(path, encoding: 'utf-32')` is MUCH better than `string = File.read(path); string.force_encoding('utf-32')`
<xhoy> yeah ofcz
<apeiros_> I don't know whether winrm.cmd allows you to state the output's encoding or not.
<apeiros_> if not, it should use binary.
<apeiros_> and from what I see it actually looks like it does
iwishiwerearobot has joined #ruby
<xhoy> but not for all commands weird enough :)
<apeiros_> you're misinterpreting what you see
<apeiros_> >> "hello".b
<eval-in__> apeiros_ => "hello" (https://eval.in/230926)
blackmesa has quit [Ping timeout: 245 seconds]
<xhoy> from what I see it actually looks like it does
<xhoy> from what I see it actually looks like it does
<apeiros_> above string is binary
<xhoy> oeps
<apeiros_> as long as all chars are 7bit and no ctrl-chars, you'll not notice that the encoding is binary (from its inspect).
<xhoy> ooooooooooow
<xhoy> rly
<apeiros_> {:data=>[{:stdout=>"i\x00" <-- the \x00 is a giveaway that it is binary.
<apeiros_> >> "\x00".force_encoding('utf-8')
<eval-in__> apeiros_ => "\u0000" (https://eval.in/230930)
<xhoy> but binary could be 'unman' readable
<xhoy> human
ghr has quit [Ping timeout: 250 seconds]
lkba has joined #ruby
<apeiros_> yes
<xhoy> oow
<xhoy> good to know!
<apeiros_> binary means "I have no idea how those bytes map to characters - or whether there are characters in here *at all*"
<apeiros_> encoding informs how bytes map to characters. that's all encodings do.
AndChat| has quit [Ping timeout: 245 seconds]
* apeiros_ afk
blackmesa has joined #ruby
fgo has quit [Ping timeout: 255 seconds]
VictorBjelkholm has joined #ruby
fgo has joined #ruby
dexteryy has quit [Quit: Textual IRC Client: www.textualapp.com]
Takle has quit [Remote host closed the connection]
<xhoy> apeiros_: thanks it works! :)
Takle has joined #ruby
d4nku has quit [Ping timeout: 252 seconds]
_5kg_ has quit [Ping timeout: 272 seconds]
rshetty has joined #ruby
Tranquility has joined #ruby
oo_ has quit [Read error: Connection reset by peer]
oo_ has joined #ruby
Takle_ has joined #ruby
Takle has quit [Read error: Connection reset by peer]
jlast has quit [Ping timeout: 258 seconds]
oo_ has quit [Read error: No route to host]
oo_ has joined #ruby
wpp has quit [Ping timeout: 256 seconds]
SOLDIERz has quit [Quit: Be back later ...]
goodenough has quit [Remote host closed the connection]
Takle_ has quit [Remote host closed the connection]
Takle has joined #ruby
ayaz has quit [Quit: Textual IRC Client: www.textualapp.com]
rodfersou has joined #ruby
ikaros has joined #ruby
shock_one has quit [Remote host closed the connection]
sandelius has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Spami has quit [Quit: This computer has gone to sleep]
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
wjimenez5271 has joined #ruby
max96at|off is now known as max96at
Takle has quit [Ping timeout: 256 seconds]
lemur has quit [Remote host closed the connection]
Spami has joined #ruby
lemur has joined #ruby
kaspergrubbe_ is now known as kaspergrubbe
Spami has quit [Max SendQ exceeded]
tsu has quit [Remote host closed the connection]
tkuchiki_ has quit [Remote host closed the connection]
pwh has quit [Ping timeout: 260 seconds]
tkuchiki has joined #ruby
timonv_ has quit [Remote host closed the connection]
shock_one has joined #ruby
econerd4ever has quit [Ping timeout: 252 seconds]
evanjs has joined #ruby
timonv_ has joined #ruby
pwh has joined #ruby
Spami has joined #ruby
wjimenez5271 has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
oo_ has quit [Remote host closed the connection]
startupality has joined #ruby
oo_ has joined #ruby
Spami has quit [Max SendQ exceeded]
lemur has quit [Ping timeout: 258 seconds]
grn_ has joined #ruby
tkuchiki has quit [Ping timeout: 244 seconds]
spyderma_ has quit [Remote host closed the connection]
<grn_> Hi! How can I make ruby-lint aware of the fact that I'm linting a Rails app? Currently it's complaining about missing ApplicationController, belongs_to, etc. Is there a way around that?
Takle has joined #ruby
wpp has joined #ruby
shvelo has quit [Ping timeout: 258 seconds]
startupality has quit [Ping timeout: 245 seconds]
hamakn has joined #ruby
oo_ has quit [Ping timeout: 250 seconds]
hamakn_ has quit [Read error: Connection reset by peer]
blizzy has joined #ruby
techsethi has quit [Quit: techsethi]
arup_r has joined #ruby
reinaldob has joined #ruby
sandelius has joined #ruby
lolmaus has quit [Quit: Konversation terminated!]
terlar has quit [Ping timeout: 260 seconds]
terlar has joined #ruby
SCHAAP137 has joined #ruby
arup_r__ has quit [Ping timeout: 256 seconds]
Sawbones has joined #ruby
grn_ has quit []
deleg has quit [Ping timeout: 255 seconds]
<arup_r> shevy: took off today.. to read C .
msgodf has joined #ruby
jlast has joined #ruby
Sawbones has quit [Ping timeout: 245 seconds]
joonty has quit [Quit: Leaving]
DrCode has quit [Ping timeout: 250 seconds]
DrCode has joined #ruby
blizzy has quit [Ping timeout: 258 seconds]
<TomyWork> I'm looking for a free ruby ide for linux (ubuntu 14.04) with autocomplete. is there such a thing?
amundj has joined #ruby
tvw has quit []
ghostbox has joined #ruby
<hanmac1> TomyWork: my problem is that autocomplete in such a dynamic language like ruby might not always work
evanjs has quit [Remote host closed the connection]
SCHAAP137 has quit [Remote host closed the connection]
<DefV> RubyMine is pretty solid
scythargon has joined #ruby
<DefV> does autocomplate as well as it can
<DefV> and it's free for 30 days :-)
<scythargon> hello fellas, where is #rails channel?
<DefV> #rubyonrails
<ddd> #RubyOnRails
<scythargon> thanks
Abhijit has quit [Ping timeout: 245 seconds]
<scythargon> have a good day
msgodf has quit [Remote host closed the connection]
SCHAAP137 has joined #ruby
quimrstorres has quit [Remote host closed the connection]
_5kg_ has joined #ruby
ghr has joined #ruby
tsu has joined #ruby
<scythargon> ugh, and I can not join it via http://irc.lc/ online client?
nanSTA has quit [Ping timeout: 258 seconds]
bentkus has joined #ruby
<bentkus> apeiros
wpp has quit [Ping timeout: 258 seconds]
ghr has quit [Ping timeout: 255 seconds]
<apeiros_> bentkus: yes?
fabrice31 has joined #ruby
nastri has joined #ruby
nanSTA has joined #ruby
st1gma1 has joined #ruby
nagaraj has left #ruby [#ruby]
abuzze has joined #ruby
St1gma has quit [Read error: Connection reset by peer]
Alina-malina has quit [Read error: Connection reset by peer]
Alina-malina has joined #ruby
wsmoak has joined #ruby
ajaiswal has quit [Quit: Leaving]
<TomyWork> DefV yeah, rubymine is probably good, but not what i would call free :)
<TomyWork> hanmac1 same goes for python and yet there's a python plugin for the intellij community edition that does just that
Abhijit has joined #ruby
rshetty has quit [Read error: Connection reset by peer]
rshetty has joined #ruby
jbw has quit [Ping timeout: 245 seconds]
jlast has quit [Ping timeout: 258 seconds]
<hanmac1> i dont like intellij ... i only use it because i get paid for it ... (and other editors does not have that languages)
sigurding has joined #ruby
<ddd> there is also one for ruby with the intellij community edition
<TomyWork> ddd nope, i've checked
<TomyWork> except if you mean that port where the last two commits are labelled "compile" and "new api"
<TomyWork> ddd my browser is slow, but that's likely for the ultimate edition
<arup_r> hanmac1: So personally you like ? Vim/Emac ?
<TomyWork> even though it says free and apache 2.0 and all that
livathin_ has joined #ruby
<hanmac1> arup_r: depends, small things with gedit, big things with eclipse ...
silkfox has joined #ruby
<arup_r> Ok..
triple_b has joined #ruby
quimrstorres has joined #ruby
nanSTA has quit [Ping timeout: 258 seconds]
quimrsto_ has joined #ruby
quimrst__ has joined #ruby
livathinos has quit [Ping timeout: 244 seconds]
silkfox has quit [Ping timeout: 272 seconds]
quimrstorres has quit [Ping timeout: 265 seconds]
<TomyWork> which template engine does the erb command line tool use? erb or erubis?
frem has quit [Quit: Connection closed for inactivity]
shvelo has joined #ruby
<TomyWork> ~/.rvm/rubies/ruby-2.0.0-p247/bin/erb
quimrsto_ has quit [Ping timeout: 264 seconds]
<TomyWork> oh, nm, it's erb
hamakn has quit [Remote host closed the connection]
n1lo has joined #ruby
greenbagels has quit [Read error: Connection reset by peer]
troulouliou_dev has joined #ruby
tgandrews has joined #ruby
troulouliou_dev has quit [Max SendQ exceeded]
dc has joined #ruby
jbw has joined #ruby
nanSTA has joined #ruby
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Changing host]
troulouliou_dev has joined #ruby
Shazaum has joined #ruby
troulouliou_dev has quit [Max SendQ exceeded]
HOS_nerv has quit [Ping timeout: 264 seconds]
troulouliou_dev has joined #ruby
troulouliou_dev has quit [Remote host closed the connection]
tvw has joined #ruby
psy_ has joined #ruby
<TomyWork> ok, i now have a ruby script that uses embedded ruby to generate a ruby script. awesome :)
robbyoconnor has quit [Quit: Konversation terminated!]
robbyoconnor has joined #ruby
Xeago___ has quit [Remote host closed the connection]
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
troulouliou_dev has joined #ruby
wjimenez5271 has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sski has quit [Remote host closed the connection]
exilarch has joined #ruby
wjimenez5271 has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 245 seconds]
sski has joined #ruby
teddyp1cker has joined #ruby
<exilarch> Is this a good guide for Ruby? http://bit.ly/1BkjrrA
nastri has quit [Ping timeout: 244 seconds]
joonty has joined #ruby
rikai has quit [Ping timeout: 258 seconds]
tgandrews has quit [Quit: This computer has gone to sleep]
silkfox has joined #ruby
<wasamasa> fuck you and your link shorteners
nastri has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
rikai has joined #ruby
sski has quit [Ping timeout: 244 seconds]
teddyp1cker has quit [Ping timeout: 244 seconds]
shock_one has quit [Remote host closed the connection]
<apeiros_> wasamasa: please moderate your tone
Stoge88 has quit [Ping timeout: 255 seconds]
troulouliou_dev has quit [Quit: Leaving]
<wasamasa> ok, ok
<wasamasa> first, disregard link shorteners
rshetty has quit [Remote host closed the connection]
<wasamasa> second, the guide behind that link is kind of cute, but neither aspiring to be a full reference nor something that specifically teaches you ruby, no, it's more about teaching you how to solve problems with programming
silkfox has quit [Ping timeout: 260 seconds]
anarang has quit [Quit: Leaving]
gccostabr has quit [Quit: ZZZzzz…]
shock_one has joined #ruby
<wasamasa> and uses ruby as tool to get into it
william3 has joined #ruby
SoloOne has quit [Ping timeout: 244 seconds]
<william3> rails is a monster
Advocation has joined #ruby
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
jespada has joined #ruby
jlast has joined #ruby
doodlehaus has joined #ruby
doodlehaus has quit [Client Quit]
emmesswhy has joined #ruby
blackmesa has joined #ruby
Advocation has quit [Client Quit]
sk87 has joined #ruby
agrinb has joined #ruby
josephndenton has joined #ruby
sk87 has quit [Client Quit]
jonr22 has joined #ruby
kevinxu has joined #ruby
kevinxu is now known as Guest89298
sski has joined #ruby
synergyz has quit [Read error: Connection reset by peer]
SoloOne has joined #ruby
exilarch has quit [Quit: Leaving]
chinmay_dd has joined #ruby
lukevinc has joined #ruby
josephndenton has quit [Ping timeout: 244 seconds]
Sgeo_ has joined #ruby
silkfox has joined #ruby
BTRE has quit [Quit: Leaving]
jonr22 has quit [Ping timeout: 264 seconds]
BTRE has joined #ruby
Akuma has quit [Ping timeout: 250 seconds]
scythargon has quit [Ping timeout: 246 seconds]
<hanmac1> william3: yes it is, thats why most users in #ruby does try to avoid it if possible ... (but i also begin to write big stuff, so i should not complain about it ;P )
<william3> yeah
<william3> very powerful
<william3> but a bit of a mess to truly understand
Sgeo has quit [Ping timeout: 264 seconds]
ixti has joined #ruby
_ixti_ has quit [Ping timeout: 265 seconds]
shock_one has quit [Remote host closed the connection]
silkfox has quit [Ping timeout: 244 seconds]
ghr has joined #ruby
cesarstafe has joined #ruby
shock_one has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
<TomyWork> Is there a ruby equivalent of Python's OrderedDict or Java's LinkedHashMap?
ghr has quit [Ping timeout: 250 seconds]
<wasamasa> ruby dictionaries are ordered by insertion
blackmesa has quit [Ping timeout: 244 seconds]
<wasamasa> at least in sufficiently new versions
<TomyWork> 1.8, 1.9, 2.0?
<wasamasa> >> h = {a: 1, b: 2, c: 3}; h.keys
<eval-in__> wasamasa => [:a, :b, :c] (https://eval.in/230994)
gccostabr has joined #ruby
<apeiros_> 1.9+
<TomyWork> require 'ruby-1.9+'? :)
<TomyWork> how do i ensure that people dont run this with 1.8?
fella5s has quit [Read error: Connection reset by peer]
<wasamasa> what systems do still have 1.8?
<TomyWork> centos?
<TomyWork> my coworker uses that
<apeiros_> raise "Use a decent ruby" unless (RUBY_VERSION.split(".").map(&:to_i) <=> [1.9]) < 0
* wasamasa grabs a bag
* apeiros_ still wishes Array had Comparable
Xeago has joined #ruby
<apeiros_> errr
<apeiros_> raise *if*, not unless
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
<TomyWork> >> raise "Use a decent ruby" if (RUBY_VERSION.split(".").map(&:to_i) <=> [1.9]) < 0
<eval-in__> TomyWork => nil (https://eval.in/231003)
<wasamasa> just add a note in the README
lukevinc has joined #ruby
<TomyWork> >> raise "Use a decent ruby" if (RUBY_VERSION.split(".").map(&:to_i) <=> [3.9]) < 0
<eval-in__> TomyWork => Use a decent ruby (RuntimeError) ... (https://eval.in/231005)
<TomyWork> works :)
shvelo has quit [Ping timeout: 265 seconds]
<apeiros_> did I really write 1.9?
<apeiros_> no, it doesn't. not as it's supposed to
<TomyWork> 1,9?
agrinb has quit [Remote host closed the connection]
<apeiros_> raise "Use a decent ruby" unless (RUBY_VERSION.split(".").map(&:to_i) <=> [1, 9]) < 0
<apeiros_> gah
<apeiros_> raise "Use a decent ruby" if (RUBY_VERSION.split(".").map(&:to_i) <=> [1, 9]) < 0
agrinb has joined #ruby
lukevinc has quit [Client Quit]
<apeiros_> I think I've now sufficiently repeated every mistake twice and then eliminated it. use at your own peril.
anaeem1_ has quit [Ping timeout: 245 seconds]
<TomyWork> >> raise "Use ruby 1.9+" if ('1.9.-1000'.split(".").map(&:to_i) <=> [1, 9, 0]) < 0
<eval-in__> TomyWork => Use ruby 1.9+ (RuntimeError) ... (https://eval.in/231008)
lukevinc has joined #ruby
fandi has quit [Remote host closed the connection]
SCHAAP137 has quit [Ping timeout: 244 seconds]
phutchins has joined #ruby
agrinb has quit [Ping timeout: 258 seconds]
MrIlyas has joined #ruby
<hanmac1> apeiros huch? you are right, it does define <=> but do not include Comparable ... hm funny oO
dc has quit [Remote host closed the connection]
doev has joined #ruby
gccostabr has quit [Quit: ZZZzzz…]
psmolen has quit [Ping timeout: 255 seconds]
<hanmac1> >> Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new("1.9")
<eval-in__> hanmac1 => true (https://eval.in/231012)
yeticry_ has quit [Ping timeout: 250 seconds]
uber_hulk has joined #ruby
<apeiros_> hanmac1: bad for 1.8 as you have to explicitly require rubygems
livathin_ has quit [Remote host closed the connection]
<apeiros_> hanmac1: and if you only want to require Gem::Version, the require differs between versions…
<hanmac1> apeiros yeah, and i did need to call dup
Guest89298 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<apeiros_> lolwut? it's destructive?
<hanmac1> yeah, it does call strip!
yeticry has joined #ruby
<uber_hulk> Hi all. Can I switch latter 3 lines with the first line? https://gist.github.com/anonymous/b537599322aadd8d6183
DaniG2k has quit [Ping timeout: 265 seconds]
<apeiros_> seems like they fixed that in recent rubygems
<apeiros_> uber_hulk: what?
<apeiros_> uber_hulk: why do you think you could not? why do you want to?
renanoronfle has joined #ruby
<uber_hulk> I thought the check I am doing category.present? &&...
lukevinc has quit [Quit: ChatZilla 0.9.91 [Firefox 24.8.0/20000101000000]]
<uber_hulk> is necessary and not included in self.find()
<apeiros_> uber_hulk: we do not know what your find() does
iwishiwerearobot has quit [Quit: Be back later ...]
<uber_hulk> apeiros_: activerecord method to find the match from column name in db tale
<uber_hulk> *table
<apeiros_> how's that so popular again? "let me ask you a question about a system you have no idea about, and let me not tell you any relevant info. but please, still answer my question…"
<apeiros_> uber_hulk: #rubyonrails
<apeiros_> uber_hulk: and that it's AR is a relevant info. pro-tip: if you want help, don't omit relevant info.
<uber_hulk> ok. ty
<bentkus> but you code ruby, how can you possibly not know ror?
<bentkus> wasn't ruby invented after ruby on rails?
psmolen has joined #ruby
* apeiros_ feels a sudden urge to kickban bentkus :-p
msgodf has joined #ruby
livathinos has joined #ruby
<uber_hulk> apeiros_: I mean if the somecheck like category = category.present? && category_types.include?(category) returns fall
<uber_hulk> It will return null, rigth?
mleone has joined #ruby
AFKGeek has quit [Quit: Fades into the shadows]
<apeiros_> uber_hulk: && returns the first nil/false value
<apeiros_> >> x = nil && "some value"; x
<eval-in__> apeiros_ => nil (https://eval.in/231013)
<apeiros_> but I guess your .present? check is superfluous.
iwishiwerearobot has joined #ruby
<apeiros_> and even misguided in the way you do it
claptor has quit [Quit: this channel is bakas]
<apeiros_> your `category` variable will be nil, false or true after that line
<uber_hulk> aha, that means I should remove those three with the first line
<uber_hulk> right
<apeiros_> uber_hulk: I have no idea what you *should* do
<apeiros_> for starters because you still have not explained what problem you try to solve.
spyderman4g63 has joined #ruby
SCHAAP137 has joined #ruby
<uber_hulk> Oho I am trying to get the corresponding Table row by checking if some column is present or not
<uber_hulk> but nvm, my english is bad, I won't be able to explain =|
jherbst has joined #ruby
<apeiros_> trying to explain will be infinitely better than not explaining at all.
<apeiros_> additionally your english won't improve if you don't use it.
<uber_hulk> Okay, trying
<apeiros_> note that I still think it's a #rubyonrails question and you should ask there
<uber_hulk> Ok
<uber_hulk> thanks
GeorgesLeYeti has joined #ruby
adriancb has joined #ruby
Takle has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
Takle has joined #ruby
HOS_nerv has joined #ruby
startupality has joined #ruby
Sawbones has joined #ruby
amundj has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
russt has joined #ruby
bayed has joined #ruby
paulfm has joined #ruby
Tranquility has quit [Quit: Connection closed for inactivity]
nic019 has quit [Remote host closed the connection]
Tranquility has joined #ruby
Takle has quit [Ping timeout: 264 seconds]
gccostabr has joined #ruby
Sawbones has quit [Ping timeout: 245 seconds]
startupality has quit [Ping timeout: 265 seconds]
cesarstafe has left #ruby [#ruby]
joonty1 has joined #ruby
diego_ar has joined #ruby
msgodf has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
dfinninger has joined #ruby
jlast has joined #ruby
yeticry has quit [Ping timeout: 264 seconds]
joonty has quit [Ping timeout: 252 seconds]
boombadaroomba has joined #ruby
triple_b has joined #ruby
yeticry has joined #ruby
giuseppesolinas has quit [Quit: This computer has gone to sleep]
kohgpat has joined #ruby
Advocation has joined #ruby
jimms has joined #ruby
Takle has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
adriancb has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
livathinos has quit [Remote host closed the connection]
boombadaroomba has quit [Ping timeout: 272 seconds]
livathinos has joined #ruby
Milkweed has joined #ruby
bal1 has joined #ruby
silkfox has joined #ruby
bal has quit [Ping timeout: 264 seconds]
Advocation has quit [Quit: Advocation]
raja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
anaeem1 has joined #ruby
arup_r has joined #ruby
uber_hulk has quit [Quit: leaving]
SOLDIERz has joined #ruby
timonv_ has quit [Remote host closed the connection]
tlr has joined #ruby
uber_hulk has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
emmesswhy has quit [Quit: This computer has gone to sleep]
arup_r has quit []
davedev24_ has joined #ruby
ghr has joined #ruby
oleo has joined #ruby
SoloOne has quit [Ping timeout: 245 seconds]
tier has joined #ruby
Mothore__ has joined #ruby
Mothore__ has quit [Client Quit]
teddyp1cker has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
weems|mac has joined #ruby
Mothore__ has joined #ruby
weems|mac has quit [Changing host]
weems|mac has joined #ruby
evanjs has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
emmesswhy has joined #ruby
Kricir has joined #ruby
nanSTA has quit [Ping timeout: 258 seconds]
uber_hulk has quit [Ping timeout: 255 seconds]
spyderman4g63 has joined #ruby
uber_hulk has joined #ruby
uber_hulk has quit [Client Quit]
postmodern has quit [Quit: Leaving]
Abhijit has quit [Remote host closed the connection]
suy has quit [Quit: No Ping reply in 180 seconds.]
nhhagen_ has joined #ruby
suy has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
raja has joined #ruby
bMalum has quit [Quit: bMalum]
Xeago has joined #ruby
nhhagen has quit [Ping timeout: 244 seconds]
shvelo has joined #ruby
econerd4ever has joined #ruby
lxsameer has quit [Quit: Leaving]
sevenseacat has quit [Remote host closed the connection]
triple_b has quit [Read error: Connection reset by peer]
triple_b_ has joined #ruby
rippa has joined #ruby
livathin_ has joined #ruby
allcentury has joined #ruby
quimrst__ has quit [Remote host closed the connection]
josephndenton has joined #ruby
ConstantineXVI has joined #ruby
Miron has quit [Quit: ZNC - http://znc.in]
ki0 has joined #ruby
tristanp has joined #ruby
icbm has quit [Quit: Computer sleeping]
livathinos has quit [Ping timeout: 256 seconds]
Miron has joined #ruby
AlexRussia has joined #ruby
ki0 has quit [Remote host closed the connection]
josephndenton has quit [Ping timeout: 240 seconds]
dc has joined #ruby
DaniG2k has joined #ruby
dc has quit [Read error: Connection reset by peer]
SOLDIERz has quit [Ping timeout: 244 seconds]
<lupine> hmm, I'm having issues with Net::HTTP on a machine lacking any v4 connectivity at all
Mothore__ has quit [Quit: Be back later ...]
shvelo has quit [Ping timeout: 258 seconds]
benzrf|offline is now known as benzrf
Kricir has quit [Remote host closed the connection]
bMalum has joined #ruby
anaeem1 has quit [Remote host closed the connection]
krz has quit [Quit: WeeChat 1.0.1]
tlr has quit [Quit: Textual IRC Client: www.textualapp.com]
dblessing has joined #ruby
sambao21 has joined #ruby
kwd has quit [Quit: kwd]
diego_ar has quit []
SOLDIERz has joined #ruby
ki0 has joined #ruby
anaeem1_ has joined #ruby
josephndenton has joined #ruby
dc has joined #ruby
tristanp has quit [Remote host closed the connection]
anaeem1_ has quit [Remote host closed the connection]
timonv_ has joined #ruby
blizzy has joined #ruby
jlast has joined #ruby
bMalum has quit [Quit: bMalum]
raja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
MrIlyas has quit [Ping timeout: 244 seconds]
jonr22 has joined #ruby
adriancb has joined #ruby
dc has quit [Ping timeout: 258 seconds]
michael_mbp has quit [Excess Flood]
josephndenton has quit [Ping timeout: 265 seconds]
livingstn has joined #ruby
intuxicated has joined #ruby
livathin_ has quit []
jan_ has joined #ruby
michael_mbp has joined #ruby
Kricir has joined #ruby
josephndenton has joined #ruby
joonty1 is now known as joonty
<jan_> what would be an elegant way to print the keys with nil value of a nested hash? (like "key1.subkey2.susubkey1 is nil")
econerd4ever has quit [Remote host closed the connection]
bal1 has quit [Quit: bal1]
jonr22 has quit [Ping timeout: 250 seconds]
hiall has quit [Ping timeout: 272 seconds]
<mices> I get this error running 'bundle install' There was an error while trying to write to Gemfile.lock
jerius has joined #ruby
Kricir has quit [Ping timeout: 260 seconds]
bubu has quit [Ping timeout: 256 seconds]
mjuszczak has joined #ruby
mary5030 has joined #ruby
nfk is now known as it_tard
hiall has joined #ruby
it_tard is now known as nfk
spyderman4g63 has quit [Remote host closed the connection]
spyderman4g63 has joined #ruby
bMalum has joined #ruby
MrIlyas has joined #ruby
AndChat| has joined #ruby
Takle has quit [Remote host closed the connection]
devdazed has joined #ruby
Takle has joined #ruby
tristanp has joined #ruby
lkba has quit [Ping timeout: 250 seconds]
Grumelo has joined #ruby
chinmay_dd has quit [Ping timeout: 240 seconds]
jlast has quit [Ping timeout: 265 seconds]
jimbach has joined #ruby
xaaabk has quit [Ping timeout: 250 seconds]
SOLDIERz has quit [Read error: Connection reset by peer]
Takle_ has joined #ruby
Takle has quit [Ping timeout: 250 seconds]
eindoofus has joined #ruby
ndrei has quit [Ping timeout: 256 seconds]
quimrstorres has joined #ruby
tyll_ is now known as tyll
icbm has joined #ruby
last_staff has quit [Quit: last_staff]
SOLDIERz has joined #ruby
Channel6 has joined #ruby
nerdy has quit [Quit: Computer has gone to sleep.]
AxonetBE has quit [Ping timeout: 252 seconds]
AxonetBE has joined #ruby
Ankhers has joined #ruby
bMalum has quit [Quit: bMalum]
einarj_ has joined #ruby
fgo has quit [Ping timeout: 256 seconds]
einarj has quit [Read error: Connection reset by peer]
whoisjake has joined #ruby
arya_ching has joined #ruby
SOLDIERz has quit [Ping timeout: 245 seconds]
kohgpat has quit [Ping timeout: 245 seconds]
triple_b_ has quit [Ping timeout: 245 seconds]
triple_b has joined #ruby
nhhagen_ has quit [Remote host closed the connection]
jlast has joined #ruby
lnormous has joined #ruby
MrIlyas has quit [Quit: Leaving]
_5kg_ has quit [Quit: WeeChat 1.0.1]
jimms has quit [Read error: Connection reset by peer]
dfinninger has quit [Remote host closed the connection]
chinmay_dd has joined #ruby
jimms has joined #ruby
sigurding has joined #ruby
mary5030 has quit [Remote host closed the connection]
mary5030 has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
aspiers_ is now known as aspiers
AxonetBE has quit [Quit: AxonetBE]
Macaveli has quit [Quit: Textual IRC Client: www.textualapp.com]
jheg has quit [Quit: jheg]
mary5030 has quit [Ping timeout: 258 seconds]
noop has quit [Ping timeout: 256 seconds]
weaksauce has quit [Read error: Connection reset by peer]
juuio has joined #ruby
Kricir has joined #ruby
Fire-Dragon-DoL has joined #ruby
benzrf is now known as benzrf|offline
Milkweed has quit [Ping timeout: 260 seconds]
mjuszczak has quit []
jimms has quit []
giuseppesolinas has joined #ruby
surs has quit [Quit: leaving]
bMalum has joined #ruby
freerobby has joined #ruby
BaconOverflow has joined #ruby
poppingtonic has joined #ruby
havenwood has joined #ruby
tristanp has quit [Remote host closed the connection]
benzrf|offline is now known as benzrf
sigurding has quit [Quit: sigurding]
jlast has quit [Remote host closed the connection]
sski has quit [Remote host closed the connection]
nhhagen has joined #ruby
sski has joined #ruby
jusmyth has joined #ruby
arya_ching has quit []
nhhagen has quit [Client Quit]
weems|mac has quit [Quit: bai]
sinkensabe has quit [Remote host closed the connection]
Rollabunna has joined #ruby
wjimenez5271 has joined #ruby
HYDRO187 has joined #ruby
bMalum has quit [Quit: bMalum]
sski has quit [Ping timeout: 265 seconds]
bMalum has joined #ruby
Ankhers has joined #ruby
tagrudev has quit [Remote host closed the connection]
fgo has joined #ruby
wjimenez5271 has quit [Ping timeout: 245 seconds]
emergion has joined #ruby
Mothore__ has joined #ruby
kohgpat has joined #ruby
emmesswhy has quit [Quit: This computer has gone to sleep]
<william3> @mices: permissions?
<william3> @mices permissions?
juuio has quit [Disconnected by services]
abuzze has quit [Remote host closed the connection]
workmad3 has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
abuzze has joined #ruby
mary5030 has joined #ruby
dfinninger has joined #ruby
tristanp has joined #ruby
fgo has quit [Ping timeout: 258 seconds]
kohgpat has quit [Ping timeout: 250 seconds]
daynaskully has quit [Quit: quit]
bMalum has quit [Quit: bMalum]
ptrrr has joined #ruby
abuzze has quit [Remote host closed the connection]
abuzze has joined #ruby
tvw has quit []
raja has joined #ruby
jobewan has joined #ruby
shock_one has quit [Remote host closed the connection]
TomyWork has quit [Ping timeout: 250 seconds]
wsmoak has quit [Quit: wsmoak]
benzrf is now known as benzrf|offline
iceden has quit [Read error: Connection reset by peer]
Takle_ has quit [Remote host closed the connection]
rippa has quit [Read error: Connection reset by peer]
Channel6 has quit [Quit: Leaving]
rippa has joined #ruby
benzrf|offline is now known as benzrf
anafrogue_ has joined #ruby
uber_hulk has joined #ruby
sigurding has joined #ruby
fgo has joined #ruby
hanmac1 has quit [Quit: Leaving.]
dfinninger has quit [Remote host closed the connection]
joonty has quit [Quit: Leaving]
sambao21 has quit [Quit: Computer has gone to sleep.]
StoneCyph has joined #ruby
anafrogue__ has quit [Ping timeout: 240 seconds]
ta has quit [Remote host closed the connection]
workmad3 has joined #ruby
mradmacher has quit [Quit: leaving]
maestrojed has joined #ruby
sambao21 has joined #ruby
asteve has joined #ruby
raja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dfinninger has joined #ruby
fgo has quit [Ping timeout: 240 seconds]
jlast has joined #ruby
mjuszczak has joined #ruby
gsd has joined #ruby
kiyote23 has joined #ruby
ndrei has joined #ruby
raja has joined #ruby
mjuszczak has quit [Client Quit]
apeiros_ has quit [Remote host closed the connection]
abuzze has quit [Remote host closed the connection]
shredding has joined #ruby
apeiros_ has joined #ruby
abuzze has joined #ruby
orolo has joined #ruby
davedev2_ has joined #ruby
rkalfane has joined #ruby
davedev24_ has quit [Ping timeout: 250 seconds]
kohgpat has joined #ruby
abuzze_ has joined #ruby
abuzze_ has quit [Read error: Connection reset by peer]
iceden has joined #ruby
abuzze has quit [Read error: Connection reset by peer]
abuzze has joined #ruby
apeiros_ has quit [Ping timeout: 250 seconds]
<claw___> hey there i am building a upload form with sinatra
<claw___> problem: there is a memory leak in that route
dts|pokeball has joined #ruby
<canton7> how did you determine that?
ta has joined #ruby
<claw___> if i upload a ~250MB file a huge amount of memory is used by the webserver process
linduxed has quit [Read error: Connection reset by peer]
failshell has joined #ruby
rkalfane has quit [Client Quit]
<canton7> and if you upload a few more 250MB files?
josephnd1nton has joined #ruby
AmirolAhmad has joined #ruby
<claw___> the application would crash i guess
<canton7> try it
Hijiri has quit [Ping timeout: 260 seconds]
<claw___> Rennex on #sinatra suggest to use a buffer
<canton7> my guess is that the webserver had to allocate 250MB of memory to create the tempfile, and it's under no pressure to release it
<claw___> while not infile.eof?; outfile.write(infile.read(40960)); end
<claw___> ill give that a try
<canton7> if that were true, memory usage would not grow (probably) if you did another upload
<canton7> so it's a good acid test
sambao21 has quit [Quit: Computer has gone to sleep.]
<claw___> should that be wiped by GC?
<claw___> its not needed anymore
mjuszczak has joined #ruby
<canton7> I don't know *what's* allocated the space
AmirolAhmad has quit [Client Quit]
<canton7> if the *server* (e.g. nginx) has allocated it, then it'll do whatever it wants
spyderman4g63 has quit [Remote host closed the connection]
AmirolAhmad has joined #ruby
<Rennex> canton7: it allocates memory to hold the entire file contents read by the .read() call
AmirolAhmad has quit [Client Quit]
<Rennex> in a string object
jaequery has joined #ruby
spyderman4g63 has joined #ruby
jaequery has quit [Max SendQ exceeded]
<canton7> Rennex, "it" being..?
<Rennex> ruby
<canton7> it's true - and there's also nothing in that code which would leak that memory
sambao21 has joined #ruby
nerdy has joined #ruby
<canton7> he hasn't said whether it's ruby, or nginx, or thin, or what that's allocated the memory
nerdy has quit [Client Quit]
<claw___> its thin
josephnd1nton has quit [Ping timeout: 260 seconds]
<waxjar> if you want to keep your memory usage low you could read and write the file in chunks instead of in one big blob
AmirolAhmad has joined #ruby
xxneolithicxx has left #ruby [#ruby]
<Rennex> it doesn't leak as in never gets released. it will when it's been written and the GC runs
tristanp has quit [Remote host closed the connection]
<waxjar> might be out of luck if your server just reads the full file in memory, tho
ghostbox has quit []
<Rennex> yeah
<Rennex> the server would need to stream it too
<canton7> claw___, what was the result of uploading another file?
false_economy has joined #ruby
<Rennex> but it's almost 2015, surely we mostly have tools equipped to deal with big files?-)
davedev2_ has quit [Ping timeout: 264 seconds]
<canton7> yeah, it's called lots of ram. it's dirt cheap these days
false_economy has quit [Client Quit]
tristanp has joined #ruby
false_economy has joined #ruby
<Rennex> that can only cover for bad code up to a point
<canton7> it does it pretty well tbh
<claw___> mruby ?
davedev24_ has joined #ruby
shock_one has joined #ruby
<waxjar> find out how streaming with thin works and how streaming with rack/sinatra works :)
jbw has quit [Ping timeout: 272 seconds]
<canton7> claw___, what was the result of uploading another file?
<claw___> i dont think you can talk about lots of ram when mruby is comming
<claw___> canton7, i first need to set up the same code here
ki0 has quit [Ping timeout: 258 seconds]
sambao21 has quit [Ping timeout: 250 seconds]
<Rennex> canton7: not so well when 20 people simultaneously upload a 10gb file, slowly but surely
<claw___> i did that on work an now i am at home
bestie has quit [Quit: Connection closed for inactivity]
momomomomo has joined #ruby
<canton7> it's true, but that's hardly a common use-case for a web server
<Rennex> pff, no excuse
ta has quit [Remote host closed the connection]
robertt_dex has joined #ruby
<Rennex> Always Be Streaming
weems|mac has joined #ruby
momomomomo has left #ruby [#ruby]
weems|mac has quit [Changing host]
weems|mac has joined #ruby
momomomomo has joined #ruby
alex88 has quit []
doev has quit [Ping timeout: 252 seconds]
klmlfl has joined #ruby
linduxed has joined #ruby
einarj has joined #ruby
jlast has quit [Read error: No route to host]
morose has quit [Quit: Leaving]
einarj_ has quit [Read error: Connection reset by peer]
shock_one has quit [Remote host closed the connection]
shock_one has joined #ruby
D9 has joined #ruby
jlast has joined #ruby
ptrrr has quit [Read error: Connection reset by peer]
kiyote23 has quit []
Sawbones_ has joined #ruby
DLSteve has joined #ruby
<claw___> canton7, memory is freed if i upload another file
iwishiwerearobot has quit [Quit: Be back later ...]
efra has joined #ruby
einarj has quit [Remote host closed the connection]
rkalfane has joined #ruby
arup_r has joined #ruby
mjuszczak has quit []
kohgpat has quit [Quit: leaving]
tsu_ has joined #ruby
kiyote23 has joined #ruby
<canton7> claw___, as in, memory usage stays the same? or goes down?
abuzze has quit [Remote host closed the connection]
aganov has quit [Quit: Leaving]
tsu has quit [Ping timeout: 264 seconds]
roger_rabbit has quit [Changing host]
roger_rabbit has joined #ruby
jonr22 has joined #ruby
<claw___> goes down
klmlfl_ has joined #ruby
<canton7> fun. it's not a memory leak, anyway, in that case
Sawbones_ has quit [Ping timeout: 256 seconds]
<claw___> yeah i thought its the params['myfile'][:tempfile].read is i added params['myfile'][:tempfile].close after the block but that didnt help
tsu has joined #ruby
<claw___> *so i added
jbw has joined #ruby
<canton7> I think it's just that ruby had to ask the OS for that memory, because it had to allocate that much for the file for a short period
tsu_ has quit [Ping timeout: 252 seconds]
tsu__ has joined #ruby
<canton7> when it was done, it didn't see the point in giving that memory back to the OS (the OS wasn't asking for it back)
<canton7> so it kept it
frowni has joined #ruby
sigurding has quit [Quit: sigurding]
<canton7> that's not a leak - that's just ruby being efficient
<claw___> well i had to point where it was using swap
<canton7> ok, *that's* ruby being a bit silly :P
klmlfl has quit [Ping timeout: 245 seconds]
geggam has joined #ruby
jonr22 has quit [Ping timeout: 250 seconds]
<claw___> also this was on 1.9.3 im using 2.1 now so i can not compare it right now
tsu__ has quit [Read error: Connection reset by peer]
tsu_ has joined #ruby
raja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tobago has quit [Remote host closed the connection]
tsu has quit [Ping timeout: 256 seconds]
spyderman4g63 has quit [Ping timeout: 256 seconds]
<claw___> it might be also a problem of thin
frowni has quit [Quit: frowni]
Juanchito has joined #ruby
Xeago has quit [Remote host closed the connection]
<claw___> nope same with puma
Akagi201 has quit [Remote host closed the connection]
evanjs has quit [Remote host closed the connection]
Xeago has joined #ruby
AmirolAhmad has quit []
Akagi201 has joined #ruby
cvtsx has joined #ruby
tsu has joined #ruby
AmirolAhmad has joined #ruby
commmmodo has joined #ruby
Stalkr_ has joined #ruby
Xeago has quit [Remote host closed the connection]
tsu_ has quit [Ping timeout: 260 seconds]
<claw___> Rennex, your suggestion of using buffers worked like a charm
Crazy_Atheist has joined #ruby
knutmithut has quit [Remote host closed the connection]
AmirolAhmad has quit [Client Quit]
louism2wash has joined #ruby
AmirolAhmad has joined #ruby
Akagi201 has quit [Ping timeout: 245 seconds]
geilt has quit [Ping timeout: 240 seconds]
geilt has joined #ruby
teddyp1cker has quit []
digifiv5e has joined #ruby
shock_one has quit [Remote host closed the connection]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
tsu_ has joined #ruby
<godd2> Oh man, this is the future. I've successfully gotten part of my game library working enough to play half of Pong: http://mulleronrails.com/game.html
klmlfl_ has quit []
klmlfl has joined #ruby
<godd2> That is the result of Ruby being translated to Javascript through Opal :)
devoldmx has joined #ruby
geiltalasdair has joined #ruby
rshetty has joined #ruby
Swat-xt has joined #ruby
<Swat-xt> jesus is coming back?
fabrice31 has quit [Remote host closed the connection]
jimbach has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
Swat-xt has quit [Killed (idoru (Spam is off topic on freenode.))]
sigurding has joined #ruby
wjimenez5271 has joined #ruby
sambao21 has joined #ruby
tsu has quit [Ping timeout: 272 seconds]
geilt has quit [Ping timeout: 244 seconds]
shock_one has joined #ruby
startupality has joined #ruby
econerd4ever has joined #ruby
andikr has quit [Remote host closed the connection]
geiltalasdair has quit [Ping timeout: 244 seconds]
tsu_ has quit [Remote host closed the connection]
aspires has joined #ruby
Megtastique has joined #ruby
AndyBotwin has joined #ruby
iwishiwerearobot has joined #ruby
mjuszczak has joined #ruby
Techguy305 has joined #ruby
econerd4ever has quit [Remote host closed the connection]
shock_one has quit [Ping timeout: 250 seconds]
genpaku has quit [Ping timeout: 264 seconds]
yokel has quit [Ping timeout: 264 seconds]
<Rennex> canton7: again, it's not ruby being silly, but the script :)
<Rennex> f.write(tempfile.read) means "read the entire contents of tempfile into ram, then start writing it to f"
fgo has joined #ruby
<canton7> sure - but ruby holding onto that ram when the OS needs it is a bit silly :P
<Rennex> ruby needs it too
<canton7> it doesn't need it once the file's been closed
pwh has quit [Ping timeout: 256 seconds]
genpaku has joined #ruby
yokel has joined #ruby
<Rennex> yeah, well it'll free it soon enough when garbage is collected, but big files also take a long time to transfer and all that time the ram stays allocated, compounding the problem
<canton7> I'm not saying the script isn't silly, don't get me wrong
<Rennex> but ruby couldn't do it in a wiser way, unless it got a lot smarter about lazy evaluation :)
pwh has joined #ruby
<aep> anyone knows a simple tool to minify html without rails or anything
fgo has quit [Ping timeout: 264 seconds]
<canton7> well, it could gc under OS pressure :P
<canton7> aep, look at libtidy
<aep> nah more like a complete make system
<aep> that does all the file open, apply minify, write to file
bkolden has joined #ruby
nic019 has joined #ruby
<canton7> you're afraid you might have to write 5 lines of code to invoke the minifier? :S
<aep> yeah, because i might need more stuff
<aep> like maybe sprockets or something
kobain has joined #ruby
kobain has quit [Max SendQ exceeded]
poppingtonic has quit [Ping timeout: 250 seconds]
DaniG2k has quit [Ping timeout: 256 seconds]
Senjai has quit [Changing host]
Senjai has joined #ruby
troulouliou_dev has joined #ruby
kobain has joined #ruby
iwishiwerearobot has joined #ruby
mikesplain has joined #ruby
<straydogstudio> aep, broccoli is nice, but it is node, not ruby. https://github.com/broccolijs/broccoli
<aep> cool thanks
kobain has quit [Max SendQ exceeded]
shock_one has joined #ruby
kobain has joined #ruby
dANO has quit []
spyderman4g63 has joined #ruby
diegoviola has joined #ruby
rh1n0_away has quit [Ping timeout: 240 seconds]
doug2 has joined #ruby
noop has joined #ruby
mikepack has joined #ruby
iwishiwerearobot has quit [Client Quit]
noop has quit [Client Quit]
basichash has joined #ruby
allcentury has quit [Ping timeout: 252 seconds]
jusmyth1 has joined #ruby
aclearma_ has joined #ruby
aclearman037 has quit [Read error: Connection reset by peer]
gsd has joined #ruby
renderful has joined #ruby
commmmodo has quit [Quit: commmmodo]
D9 has quit [Quit: Leaving]
jusmyth has quit [Ping timeout: 245 seconds]
sambao21 has quit [Quit: Computer has gone to sleep.]
DaniG2k has joined #ruby
benzrf|offline is now known as benzrf
cndiv has joined #ruby
cndiv has quit [Client Quit]
cndiv has joined #ruby
DaniG2k has quit [Client Quit]
apeiros_ has joined #ruby
jan_ has quit [Quit: This computer has gone to sleep]
<mostlybadfly> Has anyone worked as an apprentice or know of this with certain rails shops?
sambao21 has joined #ruby
eyckelboom has quit [Quit: Bye]
false_economy has quit []
tyfighter has joined #ruby
Stalkr_ has quit [Quit: Leaving...]
blahwoop has joined #ruby
otherj has joined #ruby
wjimenez5271 has quit [Remote host closed the connection]
deric_skibotn has joined #ruby
vesic has joined #ruby
bricker`work has joined #ruby
cndiv has quit [Ping timeout: 260 seconds]
<featheryahn> why use rspec webmock when test of api? why not test restful api directly with a test account?
<featheryahn> what is the pro and con?
quimrstorres has quit [Remote host closed the connection]
josephnd1nton has joined #ruby
<godd2> featheryahn automation?
<featheryahn> godd2: no i do not understand it
<godd2> featheryahn it's possible that rspec webmock is testing things in isolation
Fusl has quit [Ping timeout: 245 seconds]
<featheryahn> godd2: i want to test rest api why not really do test on api why do mock?
doritostains has joined #ruby
dts|pokeball has quit [Ping timeout: 240 seconds]
<featheryahn> godd2: =D i do not understand why you want this
<godd2> There are benefits to being able to test things in isolation
tier has quit [Remote host closed the connection]
<godd2> one is that if something goes wrong, you know it's your fault.
<featheryahn> godd2: but what api changes?
<featheryahn> godd2: api is a living thing? out of my control why so static?
Milkweed has joined #ruby
sambao21 has quit [Quit: Computer has gone to sleep.]
<godd2> There are drawbacks to the approach. Yes, you have a little more work here and there. It comes down to a decision on the part of the developer and their team
<featheryahn> godd2: i am unable to think of any motivations to not do the test directly, why isolation?
<godd2> If I were you I'd at least give it a try. Also, API's may change, but they don't change *that* much, at least not if they are out of alpha
Techguy305 has quit [Ping timeout: 252 seconds]
<featheryahn> godd2: thanks..not any wizer
<shevy> haha
<shevy> featheryahn have a beer and worry less
quimrstorres has joined #ruby
<shevy> wisdom will come
<featheryahn> or not =D
anaeem1_ has joined #ruby
<featheryahn> maybe i am to dumb
timonv_ has quit [Remote host closed the connection]
<featheryahn> it is more work and not exact as testing direct the api
<godd2> featheryahn I think it's fairly wise advice to at least give it a try
josephnd1nton has quit [Ping timeout: 250 seconds]
Ulrike_Rayne is now known as ulisaurus
<godd2> you may end up liking it
<featheryahn> godd2: ok thanks
rshetty has quit [Remote host closed the connection]
Hobogrammer has joined #ruby
renanoronfle has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Areessell has joined #ruby
shock_one has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 258 seconds]
maletor has joined #ruby
<featheryahn> it is difficullt to do when i do not understand the idea. i go crazy but ok ok i listen thank you
earlz has left #ruby [#ruby]
otherj has quit [Quit: .]
hashpuppy has joined #ruby
<godd2> featheryahn I didn't *get* testing at all until my third try at learning about it
sambao21 has joined #ruby
<featheryahn> godd2: i test locally *always* but i do not understand the api testing i have to still learned
<hashpuppy> if i have an array of hashes: [{date: ..., team: ...}], what would be a good way to add a game count to those hashes on a per team basis (by date)?
<featheryahn> godd2: thank you again =)
claymore has joined #ruby
Snowstormer has quit [Ping timeout: 240 seconds]
<godd2> featheryahn one rule of testing is that you don't test someone else's code. That's why you stub out external library calls
Miron has quit [Ping timeout: 272 seconds]
<workmad3> godd2: rule 1 of stubbing and mocking is that if you don't own it, don't mock it though ;)
<shevy> I like rule 1 of stabbing
<featheryahn> godd2: i build gem for api because there is no ruby gem and i want to test my gem why going extra?
darkswordchris has joined #ruby
<godd2> featheryahn it's good to test your own code.
<featheryahn> godd2: i am not testing gem i am testing the api
mjuszczak has quit []
<workmad3> featheryahn: really what you should be doing is testing that your gem is using the API correctly
troyready has joined #ruby
<featheryahn> workmad3, godd2: ok
<workmad3> featheryahn: and if you've created some ruby interfaces and ruby objects to encapsulate API data, you should test those work correctyl too
Photism has joined #ruby
jimbach has joined #ruby
<workmad3> featheryahn: ideally, you shouldn't need to do a load of API calls to test your local objects work correctly (which is where the idea of stubbing out external calls comes from)
Akagi201 has joined #ruby
<workmad3> featheryahn: but you also probably want to test that the core part of your gem that integrates with the API works correctly (which is where don't stub stuff you don't own comes from)
<featheryahn> workmad3: but what about paging for examples? i should mock too? query parameter also?
<featheryahn> workmad3: ok that makes sense
<featheryahn> workmad3: that is it
<workmad3> featheryahn: what that generally boils down to is that for most of your code, you'd stub out your own core API class... and for that core API class, you write integration tests that do hit the API (or possibly you set up some fake HTTP responses with something like VCR or fakeweb)
econerd4ever has joined #ruby
efra has quit [Ping timeout: 245 seconds]
sargas has joined #ruby
<featheryahn> workmad3: kind of understand now =)
<workmad3> featheryahn: you'll notice that approaching testing like that also guides you down certain styles of organising your code (a central class for making all your API calls, with all the rest of your code using that rather than making calls directly)
<featheryahn> workmad3: interesting this is motivating
cndiv has joined #ruby
Akagi201 has quit [Ping timeout: 250 seconds]
chrishough has joined #ruby
allcentury has joined #ruby
commmmodo has joined #ruby
boombadaroomba has joined #ruby
econerd4ever has quit [Remote host closed the connection]
jimmyhoughjr has joined #ruby
raja has joined #ruby
mbff has joined #ruby
wjimenez5271 has joined #ruby
tvw has joined #ruby
<mbff> I am working with a youtube api and got a string back and I need to figure out how to convert it to json.
<shevy> workmad3 is an old, sly fox
<mbff> Here is a sample of the string: attributes=[#<Nokogiri::XML::Attr:0x1684e48 name="url" value="http://i.ytimg.com/vi/frlWC9ptkX8/3.jpg">, #<Nokogiri::XML::Attr:0x1684e34 name="height" value="90">
<shevy> mbff that is not a string
<workmad3> shevy: I'm not that old :(
<mbff> videos.first.inspect.class
<mbff> I get back "String"
<Hanmac> mbff: inspect is a string, but that what first returns is not
jusmyth1 has quit [Quit: Leaving.]
<mbff> o
boombadaroomba has quit [Ping timeout: 240 seconds]
<mbff> so How would you recommend I get from an object to json without inspect? I am looking from the available methods right now
<mbff> looking through*
<workmad3> mbff: did you already try the obvious .to_json? :P
ikaros has quit [Quit: Ex-Chat]
<mbff> yes, I got "YouTubeIt::Model::Video" with the quotes
<blahwoop> i can actually play the video
[a]foo has quit [Quit: leaving]
roolo has quit [Quit: AAAAaaaaAAAAAAA]
efra has joined #ruby
<blahwoop> i see the pic!
tsu has joined #ruby
<mbff> Are you talking to me blahwoop ?
timonv_ has joined #ruby
<blahwoop> yup
<mbff> you reversed image searched the thumbnail and found the video?
<blahwoop> what does videos.first.class say?
shock_one has joined #ruby
Rollabunna has quit [Remote host closed the connection]
olivier_bK has quit [Ping timeout: 272 seconds]
<mbff> YouTubeIt::Model::Video
timonv^ has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
timonv_ has quit [Read error: Connection reset by peer]
<blahwoop> so it's an instance of a video class inside the module?
<mbff> ummmm
<mbff> client = YouTubeIt::Client.new(:dev_key => ytDevKey)
<mbff> latestVideo = client.videos_by(:user => 'theneedledrop').videos.first.class
nanSTA has joined #ruby
<mbff> does that answer the question?
fgo has joined #ruby
basichash has quit [Ping timeout: 250 seconds]
tsu has quit [Ping timeout: 264 seconds]
ndrei has quit [Ping timeout: 264 seconds]
intuxicated has quit [Ping timeout: 258 seconds]
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
benzrf is now known as benzrf|offline
kireevco has joined #ruby
gregf has quit [Remote host closed the connection]
Areessell has quit [Ping timeout: 264 seconds]
<blahwoop> looks like it's an nokogiri xml object
nanSTA has quit [Ping timeout: 258 seconds]
apeiros_ has quit [Remote host closed the connection]
<mbff> thanks mate
fgo has quit [Ping timeout: 255 seconds]
shock_one has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
SquirrelCZECH has joined #ruby
sigurding has quit [Quit: sigurding]
<SquirrelCZECH> hi folks, is it safe to use normal Logging facility to log scripts that are used by apache?
<SquirrelCZECH> eie. web scripts
uber_hulk has quit [Quit: leaving]
spyderman4g63 has quit [Read error: Connection reset by peer]
JohnBat26 has quit [Remote host closed the connection]
<SquirrelCZECH> point is: I've got script that takes data from another server via HTTP and it takes like 50s
<SquirrelCZECH> so... I added some logging of time differences between certain points so it makes sense
spyderman4g63 has joined #ruby
<SquirrelCZECH> but now I am afraid... what if with using standard "Logging" two users launches that script at sime time?
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
mbff has quit [Remote host closed the connection]
tyfighter has quit [Quit: tyfighter]
ghostmoth has joined #ruby
VictorBjelkholm has quit [Ping timeout: 258 seconds]
n1lo has quit [Ping timeout: 250 seconds]
teddyp1cker has joined #ruby
deleg has joined #ruby
sinequanon has joined #ruby
shock_one has joined #ruby
x1337807x has joined #ruby
Cache_Money has joined #ruby
cndiv has quit [Ping timeout: 264 seconds]
rkalfane has joined #ruby
spyderman4g63 has quit [Read error: Connection reset by peer]
mices has quit []
spyderman4g63 has joined #ruby
ta has joined #ruby
benzrf|offline is now known as benzrf
intuxicated has joined #ruby
triple_b has quit [Read error: Connection reset by peer]
intuxicated has quit [Max SendQ exceeded]
triple_b has joined #ruby
intuxicated has joined #ruby
intuxicated has quit [Max SendQ exceeded]
intuxicated has joined #ruby
intuxicated has quit [Max SendQ exceeded]
intuxicated has joined #ruby
intuxicated has quit [Max SendQ exceeded]
intuxicated has joined #ruby
Davey has quit [Max SendQ exceeded]
teddyp1cker has quit []
tier has joined #ruby
econerd4ever has joined #ruby
Davey has joined #ruby
ta has quit [Ping timeout: 260 seconds]
klmlfl has quit [Remote host closed the connection]
wjimenez5271 has quit [Remote host closed the connection]
nic019 has quit [Quit: Leaving...]
failshell has quit []
troulouliou_dev has quit [Read error: Connection reset by peer]
momomomomo has quit [Quit: momomomomo]
n1lo has joined #ruby
wallerdev has joined #ruby
russt has quit [Ping timeout: 264 seconds]
jonr22 has joined #ruby
mattmcclure has joined #ruby
russt has joined #ruby
shredding has quit [Quit: shredding]
neoxquick has joined #ruby
lmickh has joined #ruby
jonr22 has quit [Ping timeout: 244 seconds]
wallerdev has quit [Quit: wallerdev]
digifiv5e has quit [Changing host]
digifiv5e has joined #ruby
wallerdev has joined #ruby
bMalum has joined #ruby
RitterJack has quit [Remote host closed the connection]
giuseppesolinas has quit [Quit: This computer has gone to sleep]
AndyBotwin has quit [Quit: Leaving]
konsolebox has joined #ruby
mocker has joined #ruby
timonv^ has quit [Read error: Connection reset by peer]
klmlfl has joined #ruby
allcentury has quit [Ping timeout: 250 seconds]
konsolebox has quit [Max SendQ exceeded]
konsolebox has joined #ruby
momomomomo has joined #ruby
allcentury has joined #ruby
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
nastri has quit [Remote host closed the connection]
Alina-malina has quit [Ping timeout: 258 seconds]
nateberkopec has joined #ruby
Alina-malina has joined #ruby
ulisaurus is now known as Ulrike
Ulrike is now known as Ulrike_Rayne
tyfighter has joined #ruby
echooo has quit [Remote host closed the connection]
commmmodo_ has joined #ruby
commmmodo has quit [Ping timeout: 252 seconds]
commmmodo_ is now known as commmmodo
basichash has joined #ruby
yetanotherdave has joined #ruby
danijoo has quit [Read error: Connection reset by peer]
klmlfl has quit [Ping timeout: 272 seconds]
danijoo has joined #ruby
bigkevmcd has quit [Quit: outta here]
havenwood has quit [Remote host closed the connection]
blahwoop has quit [Remote host closed the connection]
ixti has quit [Ping timeout: 244 seconds]
rkalfane has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
djbkd has joined #ruby
rkalfane has joined #ruby
djbkd has quit [Remote host closed the connection]
basichash has quit [Read error: Connection reset by peer]
reinaldob has quit [Read error: Connection reset by peer]
reinaldob has joined #ruby
renderful has quit [Remote host closed the connection]
_Andres_ has joined #ruby
workmad3 has quit [Ping timeout: 256 seconds]
abuzze has joined #ruby
djbkd has joined #ruby
rdark has quit [Quit: leaving]
_Andres has quit [Ping timeout: 245 seconds]
sinequanon has quit [Remote host closed the connection]
dfinninger has quit [Remote host closed the connection]
william3 has quit [Remote host closed the connection]
bMalum has quit [Quit: bMalum]
kiyote23 has quit []
atmosx has joined #ruby
whoisjake has quit []
GeorgesLeYeti has quit [Quit: Leaving]
RTG` has quit [Ping timeout: 272 seconds]
wjimenez5271 has joined #ruby
fabrice31 has joined #ruby
djbkd has quit [Remote host closed the connection]
tyfighter has quit [Quit: tyfighter]
x1337807x has joined #ruby
RTG` has joined #ruby
djbkd has joined #ruby
SirFunk has quit [Remote host closed the connection]
shock_one has quit [Remote host closed the connection]
ixti has joined #ruby
sinequanon has joined #ruby
fabrice31 has quit [Ping timeout: 250 seconds]
arup_r has quit [Quit: Leaving.]
tsu has joined #ruby
arup_r has joined #ruby
SirFunk has joined #ruby
dfinninger has joined #ruby
fgo has joined #ruby
shock_one has joined #ruby
darkswordchris has quit [Quit: Page closed]
Snowstormer has joined #ruby
asteve has left #ruby ["Textual IRC Client: www.textualapp.com"]
danijoo has quit [Read error: Connection reset by peer]
danijoo has joined #ruby
tsu has quit [Ping timeout: 244 seconds]
ta has joined #ruby
Fusl has joined #ruby
graydot has joined #ruby
Miron has joined #ruby
fgo has quit [Ping timeout: 250 seconds]
sinequanon has quit [Remote host closed the connection]
mjuszczak has joined #ruby
evanjs has joined #ruby
allcentury has quit [Ping timeout: 256 seconds]
BaconOverflow has quit [Quit: Connection closed for inactivity]
raja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
HYDRO187 is now known as OFFhere
ixti has quit [Ping timeout: 255 seconds]
moritzschaefer has joined #ruby
mastro has joined #ruby
commmmodo has quit [Ping timeout: 250 seconds]
baroquebobcat has joined #ruby
basichash has joined #ruby
paulfm has quit [Quit: Zzzzz...]
kireevco has quit [Quit: Leaving.]
allcentury has joined #ruby
marr has quit [Ping timeout: 244 seconds]
chinmay_dd has quit [Quit: Leaving]
quimrstorres has quit [Remote host closed the connection]
russt has quit [Quit: russt]
paulfm has joined #ruby
renderful has joined #ruby
Hobogrammer has quit [Ping timeout: 264 seconds]
lbrf has joined #ruby
josephnd1nton has joined #ruby
ghormoon has quit [Ping timeout: 255 seconds]
treehug88 has joined #ruby
sankey has joined #ruby
ghormoon has joined #ruby
djbkd has quit [Remote host closed the connection]
stunder has joined #ruby
mastro has quit [Quit: Ex-Chat]
ixti has joined #ruby
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
josephnd1nton has quit [Ping timeout: 255 seconds]
AlexRussia has quit [Quit: WeeChat 1.1-dev]
ezioa has joined #ruby
ezioa is now known as ezio
sambao21 has quit [Quit: Computer has gone to sleep.]
basichash has quit [Remote host closed the connection]
ezio has quit [Changing host]
ezio has joined #ruby
<ezio> is there a rails channel?
<momomomomo> #rubyonrails
AlexRussia has joined #ruby
robbyoconnor has quit [Ping timeout: 244 seconds]
<ezio> <3
benzrf is now known as benzrf|offline
louism2wash has quit [Quit: This computer has gone to sleep]
sinequanon has joined #ruby
Grumelo has quit []
robbyoconnor has joined #ruby
dfinninger has quit [Remote host closed the connection]
Megtastique has quit [Remote host closed the connection]
Megtastique has joined #ruby
AndyBotwin has joined #ruby
checkit has joined #ruby
dfinninger has joined #ruby
Akagi201 has joined #ruby
_Andres has joined #ruby
Fusl has quit [Ping timeout: 245 seconds]
ta has quit [Remote host closed the connection]
Soda has quit [Remote host closed the connection]
<sankey> i'm writing some ruby for a hook for an interactive program
<sankey> the scope of the hook has a variable 'var', so i want to do something like this (simplified for demonstration):
<sankey>
<sankey> def fn()
<sankey> do_something(var)
<sankey> end
<sankey> fn()
<sankey>
<sankey> but i'm getting an error: undefined local variable or method `var'
<sankey> instead, i'm doing this now:
<sankey>
<sankey> def fn(myvar)
<sankey> do_something(myvar)
<sankey> end
<sankey> fn(var)
<sankey>
<sankey> i'm content with it, for the most part, but i'm genuinely curious if there's a way to simplify it to look like the first example
_Andres_ has quit [Ping timeout: 240 seconds]
Miron has quit [Ping timeout: 272 seconds]
Snowstormer has quit [Ping timeout: 272 seconds]
nomadic_ has quit [Ping timeout: 245 seconds]
abuzze has quit []
<atmosx> sankey: hm not a pretty one that I can think of. You could make your var global but that's an awful idea. You need to somehow extend the scope of the variable.
Akagi201 has quit [Ping timeout: 255 seconds]
Snowstormer has joined #ruby
nomadic has joined #ruby
<atmosx> sankey: wait for someone more experienced, they might come up with smarter ways, I can only think of global vars and instance vars
Miron has joined #ruby
<sankey> atmosx: mmk
adriancb has quit [Remote host closed the connection]
<sankey> i'm guessing this hook is itself a function, so i'm surprised i was even able to define a function inside of it :P
reset has joined #ruby
Fusl has joined #ruby
treehug8_ has joined #ruby
treehug88 has quit [Ping timeout: 245 seconds]
robbyoconnor has quit [Ping timeout: 264 seconds]
stunder has quit [Remote host closed the connection]
dfinninger has quit []
i5um41ru has joined #ruby
kireevco has joined #ruby
kireevco has quit [Max SendQ exceeded]
fifthofwry has joined #ruby
kireevco has joined #ruby
moritzschaefer has quit [Ping timeout: 240 seconds]
Hijiri has joined #ruby
whoisjake has joined #ruby
OFFhere is now known as HYDRO187
russt has joined #ruby
<atmosx> sankey: you can define a function inside a function but the problem is the variable in your case, which has limited scope thus... it needs somehow to be predefined.
Darryl__ has joined #ruby
devoldmx has joined #ruby
Photism has quit [Quit: Leaving]
impi0us has joined #ruby
freerobby1 has quit [Quit: Leaving.]
akaiiro has joined #ruby
devoldmx has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
* sankey wonders about macros
Sawbones has joined #ruby
mkaesz has quit [Quit: Leaving...]
bayed has quit [Quit: Connection closed for inactivity]
djbkd has joined #ruby
triple_b has joined #ruby
paulfm has quit [Quit: Zzzzz...]
djbkd has quit [Remote host closed the connection]
triple_b has quit [Read error: No route to host]
djbkd has joined #ruby
triple_b has joined #ruby
ohaibbq has joined #ruby
paulfm has joined #ruby
ta has joined #ruby
tristanp has quit [Remote host closed the connection]
Sawbones has quit [Ping timeout: 244 seconds]
tttttttttttttttt has joined #ruby
Ankhers has quit [Ping timeout: 250 seconds]
devoldmx has joined #ruby
sinequanon has quit []
doritostains has quit [Quit: doritostains]
tristanp has joined #ruby
dts|pokeball has joined #ruby
arup_r has quit [Ping timeout: 256 seconds]
aspires has quit []
devoldmx33 has joined #ruby
sailias has joined #ruby
Rollabunna has joined #ruby
tsu has joined #ruby
Cache_Money has quit [Quit: Cache_Money]
arup_r has joined #ruby
fgo has joined #ruby
devoldmx has quit [Ping timeout: 272 seconds]
Vile` has joined #ruby
tsu has quit [Ping timeout: 258 seconds]
tercenya has joined #ruby
Rollabunna has quit [Ping timeout: 244 seconds]
hiyosi has joined #ruby
kirun has joined #ruby
Morkel has joined #ruby
max96at is now known as max96at|off
doritostains has joined #ruby
fifthofwry has quit [Remote host closed the connection]
fgo has quit [Ping timeout: 264 seconds]
efg_ has joined #ruby
ndrei has joined #ruby
adriancb has joined #ruby
aspires has joined #ruby
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
claymore has quit [Ping timeout: 264 seconds]
aspires has quit [Client Quit]
maasha has joined #ruby
codezomb has quit [Quit: Textual IRC Client: www.textualapp.com]
jonr22 has joined #ruby
louism2wash has joined #ruby
kireevco has quit [Quit: Leaving.]
shredding has joined #ruby
Kilo`byte has joined #ruby
pwh has quit [Ping timeout: 250 seconds]
adamski2600 has joined #ruby
claymore has joined #ruby
zachariel has joined #ruby
sailias has quit [Quit: Leaving.]
paulfm has quit [Quit: Zzzzz...]
impi0us has left #ruby ["Leaving"]
aclearma_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
pwh has joined #ruby
jonr22 has quit [Ping timeout: 252 seconds]
klmlfl has joined #ruby
momomomomo has quit [Quit: momomomomo]
Vile` has quit [Quit: arg]
marr has joined #ruby
sailias has joined #ruby
aspires has joined #ruby
dr4__ has joined #ruby
raja has joined #ruby
sailias has quit [Client Quit]
yfeldblum has joined #ruby
emergion has quit [Quit: Connection closed for inactivity]
rodfersou has quit [Quit: leaving]
commmmodo has joined #ruby
dr4_ has quit [Ping timeout: 244 seconds]
Shazaum has quit [Quit: This computer has gone to sleep]
sambao21 has quit [Quit: Computer has gone to sleep.]
aclearman037 has joined #ruby
aspires has quit [Client Quit]
pwestlund is now known as pwestlund_away
paulfm has joined #ruby
dfinninger has joined #ruby
Areessell has joined #ruby
einarj_ has joined #ruby
einarj_ has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sambao21 has joined #ruby
Hijiri has quit [Ping timeout: 272 seconds]
einarj has joined #ruby
freerobby has quit [Quit: Leaving.]
shvelo has joined #ruby
Vile` has joined #ruby
jeebster has joined #ruby
Takle has joined #ruby
melik has joined #ruby
freerobby has joined #ruby
jeebster has quit [Client Quit]
elaptics is now known as elaptics`away
tristanp has quit [Remote host closed the connection]
robbyoconnor has joined #ruby
TheNet has joined #ruby
aspires has joined #ruby
robbyoconnor has quit [Client Quit]
efra has quit [Quit: Saliendo]
rshetty has joined #ruby
momomomomo has joined #ruby
tristanp has joined #ruby
maasha has quit [Ping timeout: 246 seconds]
snockerton has joined #ruby
Swaynie has joined #ruby
wallerdev has quit [Quit: wallerdev]
doev has joined #ruby
raja has quit [Read error: Connection reset by peer]
rshetty has quit [Ping timeout: 260 seconds]
arup_r has quit [Quit: Leaving.]
fabrice31 has joined #ruby
commmmodo has quit [Ping timeout: 250 seconds]
einarj has quit [Remote host closed the connection]
djbender has joined #ruby
donove has joined #ruby
HYDRO187 is now known as NotJason
Crisix has joined #ruby
donove has quit [Quit: Leaving]
snockerton has quit [Quit: Lingo: www.lingoirc.com]
snockerton has joined #ruby
droidburgundy has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
ldnunes has quit [Quit: Leaving]
fabrice31 has quit [Ping timeout: 250 seconds]
NotJason is now known as HYDRO187
tristanp has quit [Remote host closed the connection]
ramin has joined #ruby
postmodern has joined #ruby
baweaver has joined #ruby
Swaynie has quit [Read error: Connection reset by peer]
jimbach has quit [Remote host closed the connection]
jimbach has joined #ruby
ezio has quit [Read error: Connection reset by peer]
ezio has joined #ruby
baweaver has quit [Remote host closed the connection]
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
orionstein has quit [Quit: ZNC - http://znc.in]
nanSTA has joined #ruby
orionstein has joined #ruby
spyderman4g63 has quit [Remote host closed the connection]
jimbach has quit [Ping timeout: 258 seconds]
tristanp has joined #ruby
benzrf|offline is now known as benzrf
AlexRussia has quit [Ping timeout: 250 seconds]
tsu has joined #ruby
mjuszczak has quit []
doev has quit [Quit: Verlassend]
fgo has joined #ruby
<nateberkopec> What's an idiomatic way to turn a truthy/falsey value into true/false
baweaver has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
pushpak has quit [Quit: Linkinus - http://linkinus.com]
ta has quit [Remote host closed the connection]
tsu has quit [Ping timeout: 256 seconds]
adriancb has quit [Remote host closed the connection]
adriancb has joined #ruby
josephnd1nton has joined #ruby
doug2 has quit [Quit: WeeChat 0.4.3]
jimmyhoughjr has quit [Quit: Textual IRC Client: www.textualapp.com]
fgo has quit [Ping timeout: 272 seconds]
aspires has quit []
goodenough has joined #ruby
codecop has quit [Remote host closed the connection]
<rpag> !!val
mjuszczak has joined #ruby
aspires has joined #ruby
devoldmx has joined #ruby
devoldmx33 has quit [Ping timeout: 252 seconds]
kireevco has joined #ruby
josephnd1nton has quit [Ping timeout: 250 seconds]
freerobby has quit [Quit: Leaving.]
baweaver has quit [Remote host closed the connection]
aspires has quit [Client Quit]
econerd4ever has quit [Remote host closed the connection]
benzrf is now known as benzrf|offline
econerd4ever has joined #ruby
<pipework> nateberkopec: !!
<helpa> nateberkopec: !!!!!
freerobby has joined #ruby
ghr has joined #ruby
<nateberkopec> lol
Crisix has quit [Quit: Textual IRC Client: www.textualapp.com]
dc_ has joined #ruby
snockerton has left #ruby ["Be back later ..."]
kireevco1 has joined #ruby
phutchins has quit [Ping timeout: 264 seconds]
mengu has joined #ruby
mengu has joined #ruby
kireevco has quit [Read error: Connection reset by peer]
econerd4ever has quit [Ping timeout: 255 seconds]
ghr has quit [Ping timeout: 250 seconds]
x1337807x has joined #ruby
anaeem1_ has quit [Remote host closed the connection]
Areessell has quit [Ping timeout: 258 seconds]
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
atmosx has joined #ruby
frem_ has joined #ruby
enebo has quit [Quit: enebo]
CpuID has joined #ruby
tristanp has quit [Remote host closed the connection]
sambao21 has quit [Quit: Computer has gone to sleep.]
mjuszczak has quit []
mloveless has joined #ruby
Akagi201 has joined #ruby
raja has joined #ruby
decoponio has quit [Quit: Leaving...]
dc_ has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
robertt_dex has quit [Remote host closed the connection]
freerobby has quit [Quit: Leaving.]
sambao21 has joined #ruby
djbkd has joined #ruby
jds has quit [Quit: Connection closed for inactivity]
sambao21 has quit [Client Quit]
Akagi201 has quit [Ping timeout: 250 seconds]
i5um41ru has quit [Ping timeout: 255 seconds]
freerobby has joined #ruby
TheNet has quit [Remote host closed the connection]
AlexRussia has joined #ruby
atmosx has quit [Quit: Textual IRC Client: www.textualapp.com]
baweaver has joined #ruby
freerobby has quit [Client Quit]
StephenA1 has joined #ruby
louism2wash has joined #ruby
<pontiki> good work, helpa
chrishough has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
deric_skibotn has quit [Ping timeout: 260 seconds]
versatiletech has joined #ruby
<StephenA1> I am trying to connect to cubesensors api with OAuth: https://my.cubesensors.com/docs. But I keep getting a unauthorized. Any ideas what i am doing wrong with the Rube oAuth Gem? Code snipet: http://pastebin.com/8kKfYp5h
<pontiki> sankey: it is more proper to pass in a parameter than rely on something being available outside the scope of a method
<StephenA1> my error is: oauth-0.4.7/lib/oauth/consumer.rb:216:in `token_request': 401 Unauthorized (OAuth::Unauthorized)
djbkd has quit [Remote host closed the connection]
i5um41ru has joined #ruby
tier has quit [Remote host closed the connection]
yetanotherdave has quit [Ping timeout: 258 seconds]
Rollabunna has joined #ruby
JokerDoomWork has joined #ruby
tier has joined #ruby
baweaver has quit [Remote host closed the connection]
Morkel has quit [Quit: Morkel]
benzrf|offline is now known as benzrf
JokerDoomWork has quit [Client Quit]
icbm has quit [Quit: Computer sleeping]
tristanp has joined #ruby
eindoofus has quit [Quit: Leaving]
graydot has quit [Ping timeout: 260 seconds]
dfinninger has quit [Remote host closed the connection]
oleo is now known as Guest57531
oleo__ has joined #ruby
oleo__ has quit [Remote host closed the connection]
graydot has joined #ruby
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
oleo__ has joined #ruby
sigurding has joined #ruby
deleg has quit [Ping timeout: 245 seconds]
Guest57531 has quit [Ping timeout: 258 seconds]
<StephenA1> I am trying to connect to cubesensors api with OAuth: https://my.cubesensors.com/docs. But I keep getting a unauthorized. Any ideas what i am doing wrong with the Rube oAuth Gem? Code snipet: http://pastebin.com/8kKfYp5h
<StephenA1> any ideas?
yalue has quit [Quit: return 0;]
jenrzzz has joined #ruby
mleone has quit [Ping timeout: 245 seconds]
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
freerobby has joined #ruby
yetanotherdave has joined #ruby
econerd4ever has joined #ruby
boombadaroomba has joined #ruby
<versatiletech> StephenA1: try http://pastebin.com/HmxvPYBk
whoisjake has quit []
i5um41ru has quit [Ping timeout: 250 seconds]
Asher has quit [Read error: No route to host]
jespada has quit [Quit: Leaving]
Asher has joined #ruby
CpuID has quit [Quit: This computer has gone to sleep]
<StephenA1> I get 404 not found
Darryl__ has quit [Quit: Connection closed for inactivity]
<StephenA1> the api does not use standard oauth paths
sigurding has quit [Quit: sigurding]
<versatiletech> ah okay
<StephenA1> There is a py example in the docs
aspires has joined #ruby
<StephenA1> but i am pretty sure i followed the exact steps that is in the py example in the docs
boombadaroomba has quit [Ping timeout: 252 seconds]
dfinninger has joined #ruby
allcentury has quit [Ping timeout: 265 seconds]
wallerdev has joined #ruby
<StephenA1> any other ideas?
greenbagels has joined #ruby
ylluminate has joined #ruby
josephndenton has quit [Ping timeout: 250 seconds]
sailias has joined #ruby
<StephenA1> hmmm how do you ensure that the request is “signed”?
atmosx has joined #ruby
djbkd has joined #ruby
jimbach has joined #ruby
stormbytes has joined #ruby
jonr22 has joined #ruby
<pontiki> StephenA1: have you tried asking them?
<stormbytes> afternoon folks
tsu has joined #ruby
fgo has joined #ruby
<stormbytes> n00b here, is there anything obviously wrong with my hash: https://gist.github.com/ec40a1f7565d1b956d0d
blackmesa has joined #ruby
econerd4ever has quit [Read error: Connection timed out]
<versatiletech> StephenA1: how about http://pastebin.com/0chxjzuk
<stormbytes> getting some sort of syntax error on lines 9/19
<stormbytes> err.. 9/19
<stormbytes> 10
TheNet has joined #ruby
econerd4ever has joined #ruby
<pontiki> stormbytes: it's a whole lot easier if you show us the error
anafrogue_ has quit [Ping timeout: 258 seconds]
<stormbytes> paste it here?
<stormbytes> its kinda long..
<pontiki> no, in your gist
<pontiki> see that button when you edit that says "Add File" ?
<stormbytes> yea i see it
<pontiki> use it
<stormbytes> i pasted the error into the comment below
<stormbytes> huh?
<stormbytes> whitespace?? wow
paulfm has quit [Quit: Goodbye]
<stormbytes> `nm just found it
atmosx_ has joined #ruby
<stormbytes> didn't like the space between the method call & the open parenths
<stormbytes> weird..
tsu has quit [Ping timeout: 244 seconds]
atmosx has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 264 seconds]
jonr22 has quit [Ping timeout: 264 seconds]
josephndenton has joined #ruby
baweaver has joined #ruby
TheNet has quit [Remote host closed the connection]
oleo__ is now known as oleo
Mothore__ has quit [Ping timeout: 245 seconds]
ramin has quit [Remote host closed the connection]
TheNet has joined #ruby
<versatiletech> StephenA1: anything different?
StephenA1 has quit [Quit: StephenA1]
<versatiletech> :|
maletor has quit [Ping timeout: 265 seconds]
AndyBotwin has quit [Remote host closed the connection]
Joufflu has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
evanjs has quit [Remote host closed the connection]
deleg has joined #ruby
aclearman037 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
dfinninger has quit [Remote host closed the connection]
chris6131 has quit [Quit: Leaving.]
tejas-manohar has joined #ruby
ghr has joined #ruby
<versatiletech> Why doesn't this fundamentally work? http://pastie.org/private/ssmrul77koav0hpondrsew#3,13,25
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Joufflu_ has joined #ruby
Joufflu_ has quit [Read error: Connection reset by peer]
Joufflu_ has joined #ruby
Joufflu_ has quit [Read error: Connection reset by peer]
<shevy> I've never seen this before versatiletech
gsd has joined #ruby
jlast has quit [Remote host closed the connection]
shiru has joined #ruby
ghr has quit [Ping timeout: 265 seconds]
jlast has joined #ruby
Dopagod has quit [Read error: Connection reset by peer]
n1lo has quit [Quit: Leaving]
Joufflu has quit [Ping timeout: 258 seconds]
<stormbytes> is there any known issue with Heroku and using backticks for system calls ?
Dopagod has joined #ruby
<versatiletech> shevy: :) I've been pushing ruby to its limits
claymore has quit [Quit: Leaving]
sailias has quit [Quit: Leaving.]
triple_b has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<stormbytes> md5 function is not available on heroku?
reinaldob has quit [Remote host closed the connection]
<postmodern> is there a safe way for a gem to dep in json?
<postmodern> mime-types apparently requires json, but does not define a json dependency
<postmodern> multi-json?
reinaldob has joined #ruby
l3ck has joined #ruby
StephenA1 has joined #ruby
l3ck has quit [Client Quit]
<StephenA1> versatiletech: same issue
shiru has quit [Ping timeout: 264 seconds]
<StephenA1> 401 unauthorized
deric_skibotn has joined #ruby
quimrstorres has joined #ruby
tristanp has quit [Remote host closed the connection]
atmosx_ has quit [Quit: Textual IRC Client: www.textualapp.com]
reinaldob has quit [Ping timeout: 265 seconds]
ptrrr has joined #ruby
beef-wellington has joined #ruby
silkfox has quit [Read error: Connection reset by peer]
<versatiletech> StephenA1: one thing's for sure you have to pass in the oauth_callback parameter and it ultimately needs to end up as a parameter to the request_token URI (I think as a GET request, but I'm not sure)
graydot has quit [Ping timeout: 250 seconds]
fabrice31 has joined #ruby
iml has joined #ruby
<StephenA1> oauth docs say that if the callback is not provided it defaults to oob
zachariel_ has joined #ruby
<versatiletech> which docs? cubesensors?
sankey has left #ruby ["WeeChat 0.3.8"]
zachariel has quit [Ping timeout: 265 seconds]
zachariel_ is now known as zachariel
banister has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
goodenough has quit [Remote host closed the connection]
fabrice31 has quit [Ping timeout: 244 seconds]
Rollabunna has quit [Remote host closed the connection]
<StephenA1> Oauth Ruby Gem docs
BTRE has quit [Quit: Leaving]
<StephenA1> but yes i have tried with oob in there as well
<versatiletech> hmm
jherbst has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
gsd has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
BTRE has joined #ruby
ta has joined #ruby
jlast has quit [Remote host closed the connection]
perturbation has joined #ruby
greenbagels has quit [Quit: Leaving]
philwantsfish has quit [Ping timeout: 255 seconds]
jlast has joined #ruby
<versatiletech> StephenA1: only I could think of is double check the KEY and SECRET, if not generate new ones, last thing contact cubesensors.com
parduse is now known as Guest84181
Guest84181 has quit [Killed (barjavel.freenode.net (Nickname regained by services))]
<versatiletech> only thing I could think of*
parduse has joined #ruby
freerobby has quit [Ping timeout: 250 seconds]
<versatiletech> or even changing :aouth_version to "1.0a"
<versatiletech> :oauth_version*
freerobby has joined #ruby
<StephenA1> what do you mean change the version?
pandaant has quit [Quit: Lost terminal]
zachariel has quit [Ping timeout: 264 seconds]
memph1s has joined #ruby
<StephenA1> cause it is a 1.0a api
zachariel_ has joined #ruby
dfinninger has joined #ruby
Dopagod has quit [Remote host closed the connection]
mikesplain has quit [Ping timeout: 260 seconds]
<versatiletech> if the oauth ruby module only supports oauth 1.0 and not 1.0a, then that could be the issue
jlast has quit [Ping timeout: 258 seconds]
memph1s has quit [Client Quit]
<StephenA1> ya good idea
<StephenA1> maybe i will try omniauth
<StephenA1> unless you know of another one
baweaver has joined #ruby
<versatiletech> give it a shot first
doritostains has quit [Quit: doritostains]
evanjs has joined #ruby
rkalfane has quit [Ping timeout: 264 seconds]
shredding has quit [Quit: shredding]
graydot has joined #ruby
<versatiletech> StephenA1: also, you MIGHT get a better error if you look at the http body of that 401 response
<StephenA1> no apprently the oauth gem has support of 10.a
kylo has joined #ruby
rkalfane has joined #ruby
doritostains has joined #ruby
zachariel has joined #ruby
zachariel_ has quit [Ping timeout: 272 seconds]
evanjs has quit [Remote host closed the connection]
voodoofish430 has joined #ruby
evanjs has joined #ruby
momomomomo has quit [Quit: momomomomo]
ezio has quit [Read error: Connection reset by peer]
rpag_ has joined #ruby
ezio has joined #ruby
davedev24_ has quit [Ping timeout: 240 seconds]
davedev2_ has joined #ruby
rpag has quit [Ping timeout: 245 seconds]
kylo has left #ruby ["Bye now"]
beef-wellington has quit [Ping timeout: 265 seconds]
josephndenton has quit [Ping timeout: 256 seconds]
evanjs has quit [Ping timeout: 244 seconds]
j416 has joined #ruby
hamakn has joined #ruby
hamakn has quit [Remote host closed the connection]
hamakn has joined #ruby
Kricir has quit [Remote host closed the connection]
jerius has quit [Ping timeout: 272 seconds]
mloveless has quit [Remote host closed the connection]
mloveless has joined #ruby
mloveless has quit [Remote host closed the connection]
fgo has joined #ruby
louism2wash has quit [Quit: This computer has gone to sleep]
tsu has joined #ruby
quimrstorres has quit [Remote host closed the connection]
momomomomo has joined #ruby
Akuma has joined #ruby
natevick has joined #ruby
evanjs has joined #ruby
evanjs has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mloveless has joined #ruby
aspires has quit []
fgo has quit [Ping timeout: 250 seconds]
RTG` has quit [Ping timeout: 272 seconds]
tsu has quit [Ping timeout: 272 seconds]
hiyosi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tejas-manohar has quit [Quit: Page closed]
rkalfane has quit [Ping timeout: 265 seconds]
aspires has joined #ruby
baweaver has quit [Remote host closed the connection]
ikaros has joined #ruby
ndrei has quit [Ping timeout: 244 seconds]
RTG` has joined #ruby
Avahey has joined #ruby
natevick has quit [Quit: Colloquy for iPhone - http://colloquy.mobi]
rkalfane has joined #ruby
Akagi201 has joined #ruby
phutchins has joined #ruby
mloveless has quit [Remote host closed the connection]
zachariel has quit [Quit: zachariel]
ohaibbq_ has joined #ruby
robustus has quit [Ping timeout: 250 seconds]
troyready has quit [Quit: Leaving]
Akagi201 has quit [Ping timeout: 245 seconds]
ohaibbq has quit [Ping timeout: 258 seconds]
StephenA1 has quit [Quit: StephenA1]
ghr has joined #ruby
x1337807x has joined #ruby
lbrf has quit [Quit: Be back later ...]
robustus has joined #ruby
mloveless has joined #ruby
evanjs has joined #ruby
ghr has quit [Ping timeout: 256 seconds]
evanjs has joined #ruby
Galas has joined #ruby
djbkd has quit [Remote host closed the connection]
stunder has joined #ruby
phutchins has quit [Ping timeout: 244 seconds]
evanjs has quit [Ping timeout: 244 seconds]
mloveless has quit [Remote host closed the connection]
jlast has joined #ruby
orolo has quit [Ping timeout: 264 seconds]
tier has quit [Remote host closed the connection]
louism2wash has joined #ruby
troyready has joined #ruby
weems|mac has quit [Quit: bai]
TheNet has quit [Quit: Leaving...]
mloveless has joined #ruby
robustus has quit [Ping timeout: 255 seconds]
baweaver has joined #ruby
philwantsfish has joined #ruby
Takle has quit [Remote host closed the connection]
CrazyM4n has joined #ruby
banister has joined #ruby
goodenough has joined #ruby
jlast has quit [Ping timeout: 258 seconds]
banister_ has joined #ruby
robustus has joined #ruby
rkalfane has quit [Read error: Connection reset by peer]
heftig has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
banister has quit [Read error: Connection reset by peer]
shock_one has quit [Remote host closed the connection]
sargas has quit [Quit: This computer has gone to sleep]
adriancb has quit [Remote host closed the connection]
jlast has joined #ruby
<shevy> test
kriskova has joined #ruby
treehug8_ has quit []
econerd4ever has quit [Remote host closed the connection]
econerd4ever has joined #ruby
kriskova has quit [Quit: Leaving]
mloveless has quit [Remote host closed the connection]
x1337807x has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sawbones has joined #ruby
Sawbones has quit [Remote host closed the connection]
Sawbones has joined #ruby
devdazed has quit [Quit: Computer has gone to sleep.]
dblessing has quit [Quit: Textual IRC Client: www.textualapp.com]
ikaros has quit [Quit: Ex-Chat]
mloveless has joined #ruby
aspires has quit []
econerd4ever has quit [Ping timeout: 255 seconds]
apeiros_ has joined #ruby
Juanchito has quit [Quit: Connection closed for inactivity]
Takle has joined #ruby
StoneCyph has quit []
Sawbones has quit [Remote host closed the connection]
b3itz has joined #ruby
ta has quit [Remote host closed the connection]
nanSTA has quit [Ping timeout: 258 seconds]
Photism has joined #ruby
<b3itz> hey guys... why is my defipSring not returning the last line in the do statement? https://gist.github.com/anonymous/1967853110ed99aa627e
aspires has joined #ruby
<momomomomo> b3itz: !ask
<helpa> b3itz: How to ask good questions and get great answers: http://www.mikeash.com/getting_answers.html
wolf4ood has joined #ruby
<momomomomo> lol
<momomomomo> actually this is easy
<momomomomo> is it saying “Grand total: “
<b3itz> thank you... i know how to ask questions.. im asking how it works and why it isnt working the way id like it to
<b3itz> ii know it is lol
<b3itz> it should be simple
<momomomomo> Well, to be fair - you didn’t follow the instructions on the link I pasted
<momomomomo> which would have told you to include a stack trace
<b3itz> you're correct.
<momomomomo> but anyhow, your issue probably is that total is nil. https://gist.github.com/anonymous/1967853110ed99aa627e#file-gistfile1-rb-L31
Sawbones has joined #ruby
Milkweed has quit [Ping timeout: 258 seconds]
econerd4ever has joined #ruby
<apeiros_> b3itz: it doesn't because that's not the last statement in the method
<b3itz> momomomomo: its not the total i have an issue with
<b3itz> read the ipString def
<apeiros_> the last statement in ipString is match.each
<apeiros_> and match.each returns match
baweaver has quit [Remote host closed the connection]
mengu has quit [Remote host closed the connection]
<b3itz> apeiros_: i dont really follow... the last actual statement that runs is the do statement
<b3itz> i figured that out after trial and error
<momomomomo> ? apeiros I’m guessing it’s just run all together
baroquebobcat_ has joined #ruby
<momomomomo> inline
<apeiros_> b3itz: you're mistaken
<b3itz> how do i return the last line in the do statement
<apeiros_> foo.whatever do … end # last expression is foo.whatever
<apeiros_> b3itz: use something else than .each
<b3itz> apeiros_: oh ok. so like you said, its match.each
goodenough has quit []
Megtastique has quit []
<momomomomo> oh derp good assessment apeiros
<apeiros_> b3itz: why do you use .each anyway?
<apeiros_> seems you only care about the last match
nanSTA has joined #ruby
heftig has joined #ruby
<b3itz> i need to pull out all IP adddresses in each line
<b3itz> the each seemed to work best for my needs
<b3itz> my professor said thats what was best
linojon has quit [Quit: linojon]
baroquebobcat has quit [Ping timeout: 244 seconds]
baroquebobcat_ is now known as baroquebobcat
<apeiros_> b3itz: you're making contradicting statements
jimmyhoughjr has joined #ruby
<apeiros_> b3itz: you say you want the method to return the last expression in your each. that's *one* iteration only. the last.
<b3itz> then i must be way confused
<apeiros_> then again you say you want all matches
sinkensabe has joined #ruby
<b3itz> im sorry
s00pcan has quit [Read error: Connection reset by peer]
<b3itz> i want every match
<b3itz> but this method will return each IP one by one
<shevy> b3itz don't always trust your professor
<apeiros_> b3itz: what do you mean "will return each IP one by one"?
<apeiros_> you mean an array?
<shevy> :D
<b3itz> yes apeiros_
linojon has joined #ruby
<apeiros_> b3itz: so you want an array with the return value of each iteration. see Array#map.
jimmyhoughjr has quit [Client Quit]
BadQuanta has joined #ruby
x1337807x has joined #ruby
baweaver has joined #ruby
wolf4ood has quit [Quit: (null)]
fgo has joined #ruby
<b3itz> apeiros_: you're a genious
<b3itz> works perfect
<b3itz> so why map rather than each
linojon_ has joined #ruby
<shevy> .map applies on each element
tsu has joined #ruby
<shevy> and will give you back a modified variant
<apeiros_> b3itz: because of what map returns, vs what .each returns.
<pipework> b3itz: #map returns a collection.
linojon has quit [Ping timeout: 256 seconds]
linojon_ is now known as linojon
<shevy> >> %w( 1 2 3 ).map {|entry| entry.to_s }
<eval-in__> shevy => ["1", "2", "3"] (https://eval.in/231428)
lbrf has joined #ruby
<apeiros_> b3itz: I told you to see Array#map with the intent of you reading the docs.
startupality has quit [Quit: startupality]
<apeiros_> don't cargo cult. don't blindly use solutions.
jobewan has quit [Quit: Leaving]
<b3itz> sorry... i figured an explanation from you knowing exactly what i was doing would help
Joufflu has joined #ruby
econerd4ever has quit [Remote host closed the connection]
shvelo has quit [Ping timeout: 250 seconds]
fgo has quit [Ping timeout: 240 seconds]
Sawbones has quit [Remote host closed the connection]
livingstn has quit []
tsu has quit [Ping timeout: 250 seconds]
econerd4ever has joined #ruby
AlexRussia has quit [Ping timeout: 240 seconds]
klmlfl has quit [Remote host closed the connection]
ht__th has quit [Remote host closed the connection]
AmBienCeD has joined #ruby
AmBienCeD has joined #ruby
raja has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sinkensabe has quit [Remote host closed the connection]
<shevy> b3itz do you now understand .map
hamakn has quit [Remote host closed the connection]
D9 has joined #ruby
workmad3 has joined #ruby
chipotle has joined #ruby
icbm has joined #ruby
adamski2600 has quit []
rkalfane has quit [Read error: Connection reset by peer]
rkalfane has joined #ruby
djbkd has joined #ruby
<pipework> I'm convinced that shevy is a criminal. He's probably hiding money for corporations in America.
stormbytes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<pipework> His country has some pretty progressive privacy laws around financials.
ghr has joined #ruby
DLSteve has quit [Quit: Leaving]
AndyBotwin has joined #ruby
<shevy> nah
<shevy> the EU is doing USA 2.0 so we'll all be the same in the end
<pipework> Because it works out so well here, right?
<shevy> what must happen is the total assimilation of switzerland though :>
<shevy> where? cayman islands?