havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.3.0; 2.2.4; 2.1.8; 2.0.0-p648: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
kKkKkKkKkKkK has joined #ruby
mistermocha has quit [Remote host closed the connection]
avenj has joined #ruby
avenj has quit [Changing host]
avenj has joined #ruby
mistermocha has joined #ruby
art-solopov has joined #ruby
bubbys has quit [Ping timeout: 276 seconds]
bubbys has joined #ruby
<Ox0dea> Mixins and Template Method aren't quite the same thing, but they're certainly orthogonal.
mostlybadfly has joined #ruby
<Ox0dea> >> class C; include Enumerable; end; C.new.reduce rescue $!
<ruboto> Ox0dea # => #<NoMethodError: undefined method `each' for #<C:0x41297fd4>> (https://eval.in/498390)
<Ox0dea> Observe that Enumerable just barrels along and tries to invoke #each. It's part of the contract.
lacuna has quit [Remote host closed the connection]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
mistermocha has quit [Ping timeout: 256 seconds]
snockerton has quit [Ping timeout: 265 seconds]
mistermocha has joined #ruby
guacamole has joined #ruby
guacamol_ has quit [Ping timeout: 246 seconds]
last_staff has quit [Remote host closed the connection]
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
kKkKkKkKkKkK has quit [Ping timeout: 252 seconds]
RegulationD has joined #ruby
ta has quit [Ping timeout: 255 seconds]
zapata has quit [Quit: WeeChat 1.3]
FernandoBasso has quit [Ping timeout: 246 seconds]
pwnd_nsfw has quit [Ping timeout: 260 seconds]
FernandoBasso has joined #ruby
mistermocha has joined #ruby
RegulationD has quit [Ping timeout: 240 seconds]
choke has quit [Ping timeout: 272 seconds]
choke has joined #ruby
shinnya has quit [Ping timeout: 265 seconds]
jam_ has joined #ruby
mistermocha has quit [Ping timeout: 276 seconds]
freerobby has quit [Quit: Leaving.]
dorei has quit []
cmolenda has quit [Remote host closed the connection]
jam_ has quit [Ping timeout: 255 seconds]
art-solopov has quit [Quit: Konversation terminated!]
mistermocha has joined #ruby
finisherr has quit [Quit: finisherr]
baweaver has joined #ruby
pwnd_nsfw has joined #ruby
choke has quit [Read error: Connection reset by peer]
cmolenda has joined #ruby
charliesome has joined #ruby
dlitvak has joined #ruby
colegatron has quit [Ping timeout: 272 seconds]
Ltnt_Hawkeye has joined #ruby
mary5030 has joined #ruby
choke has joined #ruby
tvw has joined #ruby
agent_white has joined #ruby
s2013 has joined #ruby
guacamol_ has joined #ruby
agent_white has left #ruby [#ruby]
DonOtreply has quit [Quit: DonOtreply]
chipotle has joined #ruby
ellistaa has quit [Quit: ellistaa]
dlitvak has quit [Remote host closed the connection]
FernandoBasso has quit [Quit: Leaving]
DonOtreply has joined #ruby
dlitvak has joined #ruby
infinitone_ has quit [Remote host closed the connection]
infinitone has joined #ruby
mistermo_ has joined #ruby
domgetter has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
guacamole has quit [Ping timeout: 265 seconds]
BTRE has quit [Quit: Leaving]
devbug has joined #ruby
rodfersou has quit [Remote host closed the connection]
scripore has quit [Quit: This computer has gone to sleep]
bkxd has joined #ruby
choke has quit [Read error: Connection reset by peer]
tvw has joined #ruby
colegatron has joined #ruby
scripore has joined #ruby
jottr has quit [Ping timeout: 260 seconds]
BSaboia has quit [Ping timeout: 250 seconds]
mistermo_ has quit [Ping timeout: 264 seconds]
choke has joined #ruby
guacamol_ has quit [Ping timeout: 272 seconds]
N|993125 has joined #ruby
guacamole has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
SCHAAP137 has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
CloCkWeRX has joined #ruby
Ltnt_Hawkeye has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has joined #ruby
haraigoshi has quit [Ping timeout: 246 seconds]
hxegon is now known as hxegon_AFK
ta0 has quit [Ping timeout: 256 seconds]
Ltnt_Hawkeye has joined #ruby
choke has quit [Read error: Connection reset by peer]
projer has quit [Quit: Page closed]
celly has joined #ruby
TrueDD has quit [Quit: Quitte]
DonOtreply has quit [Quit: DonOtreply]
gambl0re has quit [Ping timeout: 272 seconds]
dlitvak_ has joined #ruby
govg has quit [Ping timeout: 260 seconds]
Snowy has quit []
NoTroutAboutIt has joined #ruby
haylon has joined #ruby
guacamol_ has joined #ruby
mduca has joined #ruby
guacamole has quit [Ping timeout: 246 seconds]
dling has joined #ruby
guacamol_ has quit [Client Quit]
dlitvak has quit [Ping timeout: 250 seconds]
zeroDivisible has quit [Quit: WeeChat 1.3]
choke has joined #ruby
pdoherty has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
<N|993125> hi
<Ebok> hi
freerobby has joined #ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
ta has joined #ruby
NoTroutAboutIt has quit [Ping timeout: 240 seconds]
guacamole has joined #ruby
blackmesa has joined #ruby
northfurr has quit [Quit: northfurr]
choke has quit [Ping timeout: 272 seconds]
guacamol_ has joined #ruby
zast has joined #ruby
aadam21 has joined #ruby
NoTroutAboutIt has joined #ruby
mary5030 has joined #ruby
guacamole has quit [Ping timeout: 255 seconds]
mfb2 has joined #ruby
N|993125 has quit [Ping timeout: 252 seconds]
choke has joined #ruby
mfb2 has quit [Remote host closed the connection]
Guest73286 is now known as saneax_AFK
cpruitt has joined #ruby
jottr has joined #ruby
guacamole has joined #ruby
aadam21 has quit [Ping timeout: 264 seconds]
mfb2 has joined #ruby
hxegon_AFK is now known as hxegon
ta has quit [Ping timeout: 255 seconds]
haraigoshi has joined #ruby
vikaton has joined #ruby
guacamol_ has quit [Ping timeout: 245 seconds]
tenderlove has quit [Ping timeout: 250 seconds]
northfurr has joined #ruby
Majora_ has joined #ruby
scottj has joined #ruby
<Majora_> Hey guys.
<Majora_> http://ideone.com/mAQItG <<-- Can someone explain this to me?
<Majora_> I feel like this should have worked.
guacamole has quit [Ping timeout: 255 seconds]
jam_ has joined #ruby
f00dMonsta has joined #ruby
northfurr has quit [Client Quit]
tubulife- has joined #ruby
mistermocha has quit [Remote host closed the connection]
northfurr has joined #ruby
mary5030 has quit [Remote host closed the connection]
choke has quit [Max SendQ exceeded]
pdoherty has quit [Ping timeout: 260 seconds]
cpruitt has quit [Quit: cpruitt]
<Ox0dea> Majora_: Your code there is attempting to calculate `nil + 1 + 2 + 3`.
<Ox0dea> Tell me, what is `nil` + 1?
<Majora_> But then I did accumulator = yield...
choke has joined #ruby
<Majora_> And I have to initialize the variable "accumulator" somehow... right?
bricker has quit [Ping timeout: 245 seconds]
<Ox0dea> Yes.
Ltnt_Hawkeye has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lacuna_ has joined #ruby
<Ox0dea> >> [1,2,3].reduce(6) { |a, b| a + b } # Majora_
<ruboto> Ox0dea # => 12 (https://eval.in/498503)
lacuna has quit [Ping timeout: 276 seconds]
<Ox0dea> #reduce takes an optional initial accumulator, but what do you suppose it does if you don't provide one?
<Majora_> It just adds them normally... right?
choke has quit [Read error: Connection reset by peer]
guacamole has joined #ruby
<blub> how do you tell if you were passed an argument
<Majora_> um... I don't know? You mean like inject(0)?
s2013 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cmolenda has quit [Remote host closed the connection]
<Majora_> You're saying I have to add an argument to Inject?
<Ox0dea> Majora_: Not yet.
<Majora_> ...
<Ox0dea> But what does Enumerable#inject use as the default accumulator if not `nil`?
<Majora_> Memo...
<Ox0dea> Which defaults to...?
<Majora_> Oh. I guess I don't know then.
<Ox0dea> But, like, work it out.
djbkd has quit [Remote host closed the connection]
<baweaver> There's a first for everything Ox0dea
<Majora_> zero?
DonOtreply has joined #ruby
<Ox0dea> [0], you say?
<Majora_> Maybe.
craysiii has quit [Ping timeout: 250 seconds]
marr has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
tubulife- has quit [Ping timeout: 246 seconds]
choke has joined #ruby
<baweaver> first things first
* Majora_ waves to choke
<baweaver> I have a first for code
NoTroutAboutIt has quit [Ping timeout: 250 seconds]
<baweaver> what came first, the memo or the accumulator
<Majora_> Is that a joke?
<Majora_> Or a literal question
<blub> is that really all there is
<Majora_> blub: Is that like if block_given?
<baweaver> Majora_: first
tvw has quit []
dlitvak has joined #ruby
dlitvak has quit [Read error: Connection reset by peer]
<Ox0dea> blub: The second answer is much better.
<baweaver> [1,2,3,4].reduce { |accumulator, item| puts "Accumulator: #{accumulator}" accumulator + item }
<baweaver> run that Majora_
dlitvak has joined #ruby
<baweaver> [1,2,3,4].reduce { |accumulator, item| puts "Accumulator: #{accumulator}"; accumulator + item }
northfurr has quit [Quit: northfurr]
<baweaver> what's the first value of the accumulator?
<baweaver> it's first somewhere else too.
<Majora_> I already figured it out.
<blub> its more brittle
<Ox0dea> blub: What, the second?
jottr_ has joined #ruby
aadam21 has joined #ruby
<Ox0dea> If you want to use a sentinel value called NO_ARGUMENT as an argument, you deserve to have a bad time.
<blub> ya, for the reason andrew grimm gave there
craysiii has joined #ruby
lemur has joined #ruby
<Majora_> baweaver: What is that supposed to show me again?
podman has quit [Quit: Connection closed for inactivity]
<baweaver> ze first value of ze reduce function if there's no accumulator initial value given
jottr has quit [Ping timeout: 265 seconds]
hxegon is now known as hxegon_AFK
babblebre has quit [Quit: Connection closed for inactivity]
<Majora_> baweaver: Ah.
<Majora_> Great.
<baweaver> first
cmolenda has joined #ruby
dlitvak has quit [Remote host closed the connection]
aadam21 has quit [Remote host closed the connection]
<Ox0dea> baweaver: https://vimeo.com/95066828
houhoulis has quit [Remote host closed the connection]
<Ox0dea> You reminded me of 3:30-ish.
celly has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 260 seconds]
cmolenda_ has joined #ruby
benlieb has quit [Quit: benlieb]
tomchapin has joined #ruby
baweaver has quit [Remote host closed the connection]
<Majora_> Ox0dea: The challenge ends at my_inject but I could try and make a my_reduce if you want me to.
<Ox0dea> Majora_: They're synonyms.
<Majora_> oh rly.
<Majora_> I knew that.
choke has quit [Ping timeout: 272 seconds]
<Majora_> Ox0dea: Do you think I should put this shit on my Github? Is it even worth putting up there?
llua has quit [Quit: Your ideas are intriguing to me, and I wish to subscribe to your newsletter.]
cmolenda has quit [Ping timeout: 245 seconds]
<Ox0dea> Not really.
daivyk has joined #ruby
<Ox0dea> But hey, you type good. :P
kies^ has quit [Ping timeout: 265 seconds]
<Majora_> Ox0dea: Lmao
<Majora_> thanks
craysiii has quit [Quit: Leaving.]
<Ox0dea> Majora_: Why would somebody even need to use #map?
<Majora_> Ox0dea: Is that a real question?
hxegon_AFK is now known as hxegon
craysiii has joined #ruby
barajasfab has quit [Quit: Leaving]
<Ox0dea> Sure.
<shevy> lol
Ltnt_Hawkeye has joined #ruby
<Majora_> To modify an array?
<Majora_> I mean... That's what it's used for typically.
<Ox0dea> >> a = [1,2,3]; a.clear; a
<ruboto> Ox0dea # => [] (https://eval.in/498505)
choke has joined #ruby
<Ox0dea> There I used #clear to "modify an array", so that's an insufficient explanation.
baweaver has joined #ruby
<Majora_> o.O? You used clear on the array...?
<Majora_> That "clears" the array.
<Ox0dea> Sure, but that's a "modification", is it not?
<Ox0dea> It used to be something, and now it's something else.
<Ox0dea> Looks pretty modified to me.
<Majora_> Well yeah but we're not talking about that lol
<Majora_> We're talking about "map"
poguez_ has quit [Quit: Connection closed for inactivity]
<Ox0dea> Like how? Like an atlas?
<Majora_> uh...
jottr_ has quit [Ping timeout: 240 seconds]
bricker has joined #ruby
<Majora_> I don't think so.
bkxd has joined #ruby
<Majora_> print [1, 2, 3].map{|i| i + 1}
<Majora_> more like that.
<Majora_> more or less.
northfurr has joined #ruby
<baweaver> map applies a function to every element of an enumeration and returns a new array as a result
<Majora_> ^ there you go.
<Ox0dea> TIL.
<Majora_> That sounds about right.
<baweaver> What's a function?
cmolenda_ has quit [Remote host closed the connection]
<baweaver> ...and what does it mean to apply a function?
<Majora_> Ox0dea: Bruh I think he asked you a question.
<Majora_> Better answer it.
<Majora_> Lol
* baweaver headdesks
<Ox0dea> Shh bby is ok
Marsupermammal has joined #ruby
Respek has joined #ruby
<Majora_> Ox0dea: ^ points for using that reference =P
<Ox0dea> Well, the professor seems to have gone to sleep. Class dismissed, I reckon.
bkxd has quit [Ping timeout: 272 seconds]
<Majora_> If that's a reference I don't get it. Lol
choke has quit [Read error: Connection reset by peer]
<Ox0dea> Majora_: baweaver was trying to learn you some things and your tomfoolery seems to have caused him to concuss himself.
* baweaver drools on table
<Majora_> Ox0dea: yeah I have that effect on people.
<Majora_> Not sure why.
<Ox0dea> Maybe she's born with it.
<Majora_> Perhaps.
<hxegon> Maybe it's maybelline?
choke has joined #ruby
cmolenda has joined #ruby
axsuul has quit [Ping timeout: 250 seconds]
jottr_ has joined #ruby
NoTroutAboutIt has joined #ruby
baweaver has quit [Remote host closed the connection]
guacamole has quit [Ping timeout: 272 seconds]
guacamole has joined #ruby
ta has joined #ruby
choke has quit [Read error: Connection reset by peer]
jackjackdripper has quit [Quit: Leaving.]
smactive has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
choke has joined #ruby
djbkd has joined #ruby
ta has quit [Ping timeout: 255 seconds]
Jardayn has quit [Read error: Connection reset by peer]
huddy has quit [Quit: Connection closed for inactivity]
MattV has quit [Ping timeout: 272 seconds]
smactive has joined #ruby
choke has quit [Ping timeout: 272 seconds]
Melpaws has quit [Quit: Leaving.]
choke has joined #ruby
arescorpio has joined #ruby
blackmesa has quit [Ping timeout: 245 seconds]
JazzyVariable227 has joined #ruby
choke has quit [Ping timeout: 272 seconds]
DLSteve has joined #ruby
lkba has quit [Read error: Connection reset by peer]
aadam21 has joined #ruby
lkba has joined #ruby
cmolenda has quit [Remote host closed the connection]
chipotle_ has joined #ruby
JazzyVariable227 has quit [Quit: Leaving...]
TheHodge has quit [Quit: Connection closed for inactivity]
charliesome has quit [Ping timeout: 260 seconds]
scottschecter has quit [Ping timeout: 260 seconds]
aadam21 has quit [Remote host closed the connection]
mary5030 has joined #ruby
<zacts> hi rubyists
m3troX has joined #ruby
aadam21 has joined #ruby
Gmi has quit [Quit: Leaving...]
<m3troX> is ruby still active?
<domgetter> m3troX: what does "active" mean?
<Radar> the most active it's ever been
charliesome has joined #ruby
<m3troX> usually i dont see much through irc
<m3troX> bunch of silent rooms
<domgetter> version 2.3 came out on Christmas, so it's under active development
<m3troX> ok
<m3troX> i will check that out
chipotle has quit [Ping timeout: 250 seconds]
<m3troX> any ide recommendations through windows?
<domgetter> some people use Rubymine as an IDE, but I personally don't like it
<m3troX> whats the alt?
<domgetter> I just use Sublime Text, though that's not technically an "IDE"
m3troX has quit [Quit: Leaving.]
<Ox0dea> Wow, such impatient.
yeticry_ has joined #ruby
klams has joined #ruby
klams was kicked from #ruby by ChanServ [Banned: troll]
mary5030 has quit [Ping timeout: 260 seconds]
frem has quit [Quit: Connection closed for inactivity]
HowardwLo has quit [Quit: HowardwLo]
northfurr has quit [Quit: northfurr]
yeticry has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
aadam21 has quit [Remote host closed the connection]
dlitvak has joined #ruby
mistermocha has quit [Ping timeout: 264 seconds]
tubulife- has joined #ruby
choke has joined #ruby
bluOxigen has joined #ruby
gambl0re has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
lacuna_ has quit [Read error: Connection reset by peer]
radgeRayden has quit [Ping timeout: 276 seconds]
bkxd has joined #ruby
jottr_ has quit [Quit: WeeChat 1.3]
lacuna has quit [Remote host closed the connection]
iateadonut has joined #ruby
dlitvak has quit [Remote host closed the connection]
kgirthofer has quit [Ping timeout: 272 seconds]
choke has quit [Ping timeout: 272 seconds]
guacamole has quit [Quit: Textual IRC Client: www.textualapp.com]
djbkd has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 276 seconds]
cmolenda has joined #ruby
Melpaws has joined #ruby
jbrhbr has quit [Ping timeout: 260 seconds]
mayamai has quit [Ping timeout: 250 seconds]
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sankaber has joined #ruby
Ltnt_Hawkeye has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Ltnt_Hawkeye has joined #ruby
Marsupermammal has joined #ruby
iamayam has joined #ruby
<zacts> activeX
<zacts> ++
<zacts> and ruby
<zacts> =
kalopsian has joined #ruby
* zacts idles here for a bit
sankaber has quit [Client Quit]
dlitvak has joined #ruby
haraigoshi has quit [Ping timeout: 265 seconds]
blackgoat_ has quit [Ping timeout: 260 seconds]
ta has joined #ruby
Gadgetoid has quit [Ping timeout: 272 seconds]
<Ox0dea> > activeX
<Ox0dea> >> Time.now.year
<ruboto> Ox0dea # => 2016 (https://eval.in/498519)
dlitvak has quit [Ping timeout: 245 seconds]
sankaber has joined #ruby
lacuna has joined #ruby
lacuna has joined #ruby
sankaber has quit [Client Quit]
<smactive> Nice to see some chat in here
ta has quit [Ping timeout: 255 seconds]
solocshaw has quit [Ping timeout: 246 seconds]
Gadgetoid has joined #ruby
blackmesa has joined #ruby
devbug_ has joined #ruby
blackgoat_ has joined #ruby
choke has joined #ruby
lacuna has quit [Remote host closed the connection]
devbug has quit [Ping timeout: 240 seconds]
m3troX has joined #ruby
woodruffw has quit [Quit: And then he took off.]
blackmesa has quit [Ping timeout: 255 seconds]
mjuszczak has quit []
MrPasserby has joined #ruby
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Nice to see some cats in here.
hxegon is now known as hxegon_AFK
mjuszczak has joined #ruby
MattV has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
cpup has quit [Ping timeout: 260 seconds]
cpup has joined #ruby
startupality has joined #ruby
lacuna has quit [Remote host closed the connection]
baweaver has joined #ruby
dpg_ has joined #ruby
shiver has joined #ruby
shiver has joined #ruby
agentmeerkat has joined #ruby
<pontiki> some cool cats having cool chats
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
nixmaniack has joined #ruby
Marsupermammal has quit [Quit: Textual IRC Client: www.textualapp.com]
kies^ has joined #ruby
<shevy> lol
baweaver has quit [Ping timeout: 255 seconds]
nixmaniack has quit [Ping timeout: 250 seconds]
baweaver has joined #ruby
sneakerhax has joined #ruby
aibot has joined #ruby
NoTroutAboutIt has quit [Ping timeout: 245 seconds]
MattV has quit [Quit: Leaving.]
lkba has quit [Remote host closed the connection]
hxegon_AFK has quit [Quit: BRB]
m3troX has quit [Quit: Leaving.]
davedev24 has quit [Ping timeout: 250 seconds]
davedev24 has joined #ruby
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has quit [Client Quit]
bmurt has joined #ruby
Lucky___ has joined #ruby
gix has quit [Ping timeout: 240 seconds]
MattV has joined #ruby
Gadgetoid has quit [Ping timeout: 272 seconds]
NoTroutAboutIt has joined #ruby
bricker has quit [Ping timeout: 240 seconds]
tmtwd has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
wldcordeiro has joined #ruby
ur5us has quit [Remote host closed the connection]
llua^_^AznSmile- has joined #ruby
ur5us has joined #ruby
gix has joined #ruby
Gadgetoid has joined #ruby
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
scripore has joined #ruby
<choke> meow?
ur5us has quit [Ping timeout: 240 seconds]
<Ox0dea> You have cat to be kitten me right meow.
startupality has quit [Quit: startupality]
dpg_ has quit [Ping timeout: 255 seconds]
llua^_^AznSmile- is now known as llua
llua has quit [Changing host]
llua has joined #ruby
startupality has joined #ruby
dpg_ has joined #ruby
arup_r has joined #ruby
ta has joined #ruby
krz has joined #ruby
Respek has quit [Quit: gone to sleep. ZZZzzz…]
shakes has joined #ruby
ta has quit [Ping timeout: 255 seconds]
sneakerhax has quit [Ping timeout: 255 seconds]
yqt has quit [Ping timeout: 264 seconds]
MattV has quit [Quit: Leaving.]
Respek has joined #ruby
juddey has quit [Ping timeout: 264 seconds]
blackmesa has joined #ruby
jam_ has quit [Remote host closed the connection]
rkazak has joined #ruby
jackjackdripper has joined #ruby
cmolenda has quit [Remote host closed the connection]
bkxd has joined #ruby
pawnbox has joined #ruby
mfb2 has quit [Remote host closed the connection]
akem has joined #ruby
makenoise has joined #ruby
duncannz has joined #ruby
blackmesa has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Bloomer has joined #ruby
bkxd has quit [Ping timeout: 260 seconds]
tubulife- has quit [Ping timeout: 250 seconds]
mfb2 has joined #ruby
juddey has joined #ruby
freerobby1 has quit [Quit: Leaving.]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
mfb2 has quit [Ping timeout: 256 seconds]
<pontiki> well played
lacuna has quit [Remote host closed the connection]
<akem> hi alakra
<Ox0dea> hi akem
mattr__ has quit [Ping timeout: 252 seconds]
jackcom has joined #ruby
<jackcom> d+1 mean yesterday or tomorrow?
<akem> hows ruby doing ox0dea?
NoTroutAboutIt has quit [Ping timeout: 272 seconds]
<Ox0dea> akem: The language itself?
<akem> definitly, you and/or the language
psy_ has quit [Quit: Leaving]
mfb2 has joined #ruby
domgetter has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
<Ox0dea> Well, it's no Perl 6.
<Ox0dea> For good and ill.
mfb2 has quit [Remote host closed the connection]
<Majora_> Ox0dea: Oh no.
<Majora_> We've come to an actual program that I must create.
<Ox0dea> Yus!
<Majora_> my nightmares have become real Q.Q
<Ox0dea> On the bright side, I'm fuckin' pumped!
<Majora_> I should just give up programming before it gets any harder.
<Majora_> That would be easiest.
<Ox0dea> It would, wouldn't it?
<Majora_> Ox0dea: The fuck are you excited about? lol
<Ox0dea> Majora_: Dat sweet newbie code, bro.
<Ox0dea> Let's do this!
<Majora_> bruh
<Majora_> fuck dat shiit
<Ox0dea> k
<Majora_> I must create...
chipotle_ is now known as chipotle
<Majora_> *drum roll*
<Majora_> TIC
<Majora_> TAC
<Majora_> TOE
<Majora_> fml
pickerel has joined #ruby
<Ox0dea> Excellent!
Vertroa has joined #ruby
<Majora_> Is it though?
<Majora_> Ask yourself.
<Majora_> is it?
<Ox0dea> It is.
<Ox0dea> This is an opportunity for you to learn the ternary numeral system.
<Majora_> ugg
blackgoat_ has quit [Ping timeout: 264 seconds]
<Majora_> the wat
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> You know binary, yeah?
<Ox0dea> It's like that, but with 3 instead of 2.
axsuul has joined #ruby
<Ox0dea> It's 1.5x more awesomer.
<Majora_> of course everyone knows that.
<Majora_> *cough*
<Ox0dea> Well, there are nine cells and each can be in one of three states, right?
bmurt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Majora_> one of three states. wat.
<Majora_> nine cells wat
<Ox0dea> This guy.
<Ox0dea> Honestly.
<Majora_> Lol
* Majora_ shrugs
<Majora_> I guess I should create a class called tictactoe
<Majora_> thats a good start...
<Ox0dea> >> tictactoe = Class.new; tictactoe.name
<ruboto> Ox0dea # => nil (https://eval.in/498543)
<Ox0dea> That's a bad start.
<Majora_> wat why
<Ox0dea> Because to be "called" something is to have a name.
<Majora_> ?????????/
<Ox0dea> You try it, then. Show me how you'd create a class called `tictactoe`.
<Majora_> class TicTacToe end
<Ox0dea> >> 'tictactoe' == 'TicTacToe'
<Majora_> Aren't I smart? :D
<ruboto> Ox0dea # => false (https://eval.in/498544)
<Ox0dea> Dat timing doe.
<Majora_> wat
<Ox0dea> Your inattention to detail is infuriating.
<Ox0dea> I love you a little less again.
<Majora_> I don't get it D:
pawnbox has quit [Remote host closed the connection]
<Ox0dea> The capitals, Mason!
Bloomer has left #ruby [#ruby]
<Majora_> who cares about that
<Ox0dea> The interpreter.
<Majora_> it's still gonna do the same goddamn thing I tell it to do.
daivyk has quit [Quit: ZZZzzz…]
themsay has joined #ruby
axsuul has quit [Ping timeout: 264 seconds]
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Majora_> Okay so lets call it Tictactoe then
<Majora_> class Tictactoe end
<Majora_> Ox0dea: Has he left already?
<Majora_> Q.Q
haylon has left #ruby ["Leaving"]
<Ox0dea> Majora_: What are your known unknowns?
bluOxigen has quit [Ping timeout: 272 seconds]
<Majora_> uhh. All of it mostly. I just don't know how to put it together.
<Majora_> This is what I came up with.
<Majora_> I know I'm missing alot lol
bnizzle1 has joined #ruby
<Majora_> I know I need a board... two player... some markers... and some way to tell who has won.
<Majora_> I think that's it.
<Ox0dea> Those are known knowns.
pawnbox has joined #ruby
<Ox0dea> Aren't you going to need some methods to tell you the positions of John, Luke, and Matthew as well?
NoTroutAboutIt has joined #ruby
MrPasserby has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Majora_> Ox0dea: is Mark and Judas playing as well? Lol
<Majora_> It's only playable by two people xP
<Ox0dea> Well, that's dumb. How come it can't be played by 8 people? First to take the center loses.
rkazak has quit [Quit: Sleep.....ing....]
<Ox0dea> Where's your sense of innovation, eh?
<Majora_> Ox0dea: jesus can I just build a simple game that WORKS
<Majora_> then we can move on to innovation lmao
<Ox0dea> Majora_: Put... put some code in it.
<Majora_> But..
ledestin has joined #ruby
<Majora_> Where should I start?
<Ox0dea> Majora_: Decide on the internal layout of the board and how that'll map to the kind of input for which you'll need to ask the user.
pawnbox has quit [Ping timeout: 260 seconds]
<Ox0dea> Do you want to number the cells 1-9 (or even 0-8 like a decent human being), or do you want to use an X-Y system of some kind?
Vertroa has joined #ruby
pawnbox has joined #ruby
<Majora_> I would assume a 3 by 3 board? and yeah it would be marked by each index.
<Majora_> Ox0dea: No need to overcomplicate it.
Vertroa has quit [Client Quit]
<Ox0dea> Majora_: And yet you just did.
<baweaver> ...hm, copy not working
<Majora_> I did not.
<Ox0dea> If you've got a 3x3 board internally, the center cell would be [1][1].
<Ox0dea> That's not "marked by each index".
<baweaver> there it is!
<Majora_> Ox0dea: Well how would you do it? -.-
tdubya has joined #ruby
<Majora_> baweaver: thanks man I'm broke for days.
NoTroutAboutIt has quit [Ping timeout: 272 seconds]
drosenbloom has joined #ruby
avenj has quit [Ping timeout: 240 seconds]
Yzguy has quit [Quit: Cya]
arescorpio has quit [Quit: Leaving.]
<drosenbloom> In enumerables... I know I can do this: ['123', '1', '32'].map(&:length) to get the length of all items. If the source of the enumerable is a struct, is there a shorthand to map to a property of the struct? So like, a shorthand for items.map{|a| a.property}
<drosenbloom> I realize I'm trying to shave about 5 characters off, but still...
<Ox0dea> drosenbloom: map(&:property), of course.
<Ox0dea> It's just a method call in both cases.
<drosenbloom> Doesn't seem to be working
<drosenbloom> hmm
makenoise has quit []
<drosenbloom> maybe the error is elsewhere.
<drosenbloom> (I.E. my hands)
<Ox0dea> Your brain!
Porfa_ has joined #ruby
<drosenbloom> there too :)
<Ox0dea> There first.
<drosenbloom> yup... PEBKAC
woodruffw has joined #ruby
Porfa has quit [Ping timeout: 276 seconds]
nug has quit [Ping timeout: 276 seconds]
Porfa_ is now known as Porfa
kies^ has quit [Ping timeout: 264 seconds]
<Ox0dea> >> Errno::EDOOFUS
<ruboto> Ox0dea # => Errno::NOERROR (https://eval.in/498548)
<kspencer> hey Ox0dea I got the json to work :D
<Ox0dea> kspencer: Huzzah!
<kspencer> would you like to see it?
nug has joined #ruby
KrzaQ has quit [Ping timeout: 276 seconds]
KrzaQ has joined #ruby
<Ox0dea> I click all links instinctively.
kalopsia1 has joined #ruby
seaworthy has joined #ruby
<jackcom> d+1 mean yesterday or tomorrow?
<seaworthy> can someone help me associating records so i can use something like this buy_transactions = Transaction.includes(:virtual_item).where(["buyer_id = ?", user.id]).order(updated_at: :desc)
<seaworthy> i am not sure what to use belongs_to or has one
kalopsian has quit [Ping timeout: 250 seconds]
chipotle has quit [Quit: cheerio]
<seaworthy> i tried doing # has_one :virtual_item, class_name: "VirtualItem"
chipotle has joined #ruby
<seaworthy> in Transaction model but that gives me sql error
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Coraline> seaworthy: you might have better luck in #rails
mloy has joined #ruby
<seaworthy> okay Coraline
mjuszczak has quit []
mloy has quit [Client Quit]
mloy has joined #ruby
blackmesa has joined #ruby
<Majora_> Ox0dea: I always wonder about these people who randomly comment in... People who never say anything.
<Majora_> I just wonder if they are silently watching everything I say lol
scripore has quit [Quit: This computer has gone to sleep]
* Coraline is a silent watcher
<Ox0dea> Majora_: Some of them might be dead.
<Ox0dea> kspencer: LGTM.
* Coraline is also dead
<Ox0dea> #3spooky5me
<Majora_> Coraline you scare me :3 lol
<Coraline> Good!
<Majora_> Lulz.
<Ox0dea> kspencer: There are a few teensy nitpicks that I'll not bother to point out.
<kspencer> pm them and I'll see what I can do to fix them, tell you why they are there
<kspencer> @ Ox0dea
<Ox0dea> kspencer: I'm talkin' duper-minor things like replacing `delete("\n")` with `chomp`.
kknight has joined #ruby
darkf has joined #ruby
avenj has joined #ruby
avenj has quit [Changing host]
avenj has joined #ruby
MrPasserby has joined #ruby
aadam21 has joined #ruby
mloy has quit [Client Quit]
arup_r has quit [Remote host closed the connection]
<kspencer> if it helps with the style and the compatibility, etc. then I'm all for any suggestions
<Ox0dea> While we're tangentially on the subject, here's a demonstration of a nifty technique called "autovivification": https://eval.in/498552
<Ox0dea> Because non-existent keys "spring to life".
shakes has quit [Quit: Leaving]
<Ox0dea> It's not very applicable to your uptime script since you haven't got very many levels of nesting, but you'll have a problem for which it's just the thing someday.
stannard has joined #ruby
blackmesa has quit [Ping timeout: 276 seconds]
<Ox0dea> Inshallah.
aadam21 has quit [Ping timeout: 256 seconds]
shadoi has quit [Quit: Leaving.]
astrobun_ has joined #ruby
juddey has quit [Ping timeout: 265 seconds]
stannard has quit [Ping timeout: 265 seconds]
kknight has quit [Ping timeout: 260 seconds]
rkazak has joined #ruby
drosenbloom has quit [Quit: leaving]
bricker has joined #ruby
sigurding has joined #ruby
kalopsian has joined #ruby
krz has quit [Read error: Connection reset by peer]
Dimik has quit [Ping timeout: 245 seconds]
kalopsia1 has quit [Ping timeout: 265 seconds]
jackjackdripper has quit [Quit: Leaving.]
kknight has joined #ruby
dlitvak has joined #ruby
krz has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
arup_r has joined #ruby
usershell has joined #ruby
arup_r has quit [Remote host closed the connection]
LMity has joined #ruby
arup_r has joined #ruby
jam_ has joined #ruby
<Majora_> It's kind of useful.
<Majora_> It's hard to read though
amclain has quit [Quit: Leaving]
* Majora_ sigh
mfb2 has joined #ruby
barajasfab has joined #ruby
<kknight> namesty
bkxd has joined #ruby
<Ox0dea> > The nested array data structure closely mirrors an actual tic-tac-toe board
<Ox0dea> Majora_: Don't listen to him!
jam___ has joined #ruby
<Majora_> Ox0dea: Why not.... o.o
arup_r has quit [Remote host closed the connection]
PlasmaStar has quit [Ping timeout: 260 seconds]
akem has quit [Quit: Bye]
<Ox0dea> Majora_:
<Ox0dea> Sorry.
<Ox0dea> That design decision convolutes several things throughout the code.
<usershell> /j #docker
<Ox0dea> He's got to call #flatten, he does some [y][x], he has to "nested queries" a few times to decide what's what.
arup_r has joined #ruby
Respek has quit [Quit: gone to sleep. ZZZzzz…]
<Ox0dea> "Flat is better than nested." -- The Zen of Python
jam_ has quit [Ping timeout: 260 seconds]
mfb2 has quit [Ping timeout: 272 seconds]
PlasmaStar has joined #ruby
<Majora_> Ok.....
bkxd has quit [Ping timeout: 264 seconds]
kalopsian has quit [Ping timeout: 264 seconds]
sigurding has quit [Quit: sigurding]
Vertroa has joined #ruby
juddey has joined #ruby
blackgoat_ has joined #ruby
atmosx has joined #ruby
<Ox0dea> Majora_: That said, it seems an article from which much might be learned. Give it the ol' once-over, I reckon.
cpup has quit [Ping timeout: 264 seconds]
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
tmtwd has quit [Ping timeout: 245 seconds]
cpup has joined #ruby
ta has joined #ruby
mloy has joined #ruby
ta has quit [Ping timeout: 260 seconds]
aganov has joined #ruby
<Majora_> Ox0dea: I guess.
<Majora_> I'm too tired to work on this anymore.
<Majora_> I'll give it a shot tomorrow.
<Ox0dea> Good night, sweet prince.
<Majora_> lmao goodnight<33
<Ox0dea> Don't go chasin' fireballs.
Majora_ has quit [Quit: Page closed]
sigurding has joined #ruby
tdubya has quit [Quit: leaving]
colegatron has quit [Ping timeout: 250 seconds]
KKKTRIPLEK has joined #ruby
<KKKTRIPLEK> the problem with niggers is that they expect handouts for something white people and niggers have no involvement in
<Ox0dea> Please clarify.
<KKKTRIPLEK> white people haven't owned slaves for a very long time
<KKKTRIPLEK> niggers haven't been slaves for a very long time
chouhoul_ has joined #ruby
choke has quit [Ping timeout: 272 seconds]
<demophoon> !ops
<ruboto> fflush, apeiros, banisterfiend, zzak, Mon_Ouie, seanstickle, Radar, Havenn, jhass, sevenseacat, workmad3, miah, Coraline, drbrain, zenspider, rubyhacker1, slyphon, Aria, ljarvis, Adaedra, baweaver
<Radar> Hi.
CorySimmons has joined #ruby
<KKKTRIPLEK> hi Radar
<Radar> !ban KKKTRIPLEK !T 1d
KKKTRIPLEK was kicked from #ruby by ChanServ [User is banned from this channel]
<demophoon> ty
<baweaver> bye
lxsameer has joined #ruby
blackmesa has joined #ruby
zapata has joined #ruby
chouhoulis has quit [Ping timeout: 260 seconds]
blackgoat_ has quit [Quit: WeeChat 1.3]
PsionTheory has quit [Remote host closed the connection]
mary5030 has joined #ruby
blackmesa has quit [Ping timeout: 250 seconds]
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
saneax_AFK is now known as saneax
axsuul has joined #ruby
robbyoconnor has quit [Excess Flood]
saneax is now known as Guest55888
robbyoconnor has joined #ruby
auzty has joined #ruby
cmolenda has joined #ruby
colegatron has joined #ruby
choke has joined #ruby
claw has quit [Ping timeout: 255 seconds]
djbkd has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 260 seconds]
MrPasserby has quit [Ping timeout: 240 seconds]
lurch_ has joined #ruby
claw has joined #ruby
PedramT has joined #ruby
vikaton has quit [Quit: Connection closed for inactivity]
PedramT has quit [Remote host closed the connection]
barajasfab has quit [Quit: Leaving]
barajasfab has joined #ruby
haraigoshi has joined #ruby
Dimik has joined #ruby
yardenbar has quit [Ping timeout: 250 seconds]
poguez_ has joined #ruby
blub has quit [Read error: Connection reset by peer]
chouhoul_ has quit [Read error: Connection reset by peer]
devbug has joined #ruby
barajasfab is now known as anski
EbokianKnight has joined #ruby
chouhoulis has joined #ruby
ryez has joined #ruby
Melpaws has quit [Read error: Connection reset by peer]
pricees has joined #ruby
pricees has left #ruby [#ruby]
Melpaws has joined #ruby
blub has joined #ruby
d0nn1e has quit [Ping timeout: 250 seconds]
pricees has joined #ruby
robbyoconnor has quit [Excess Flood]
LMity2 has joined #ruby
robbyoconnor has joined #ruby
startupality has quit [Quit: startupality]
devbug_ has quit [Ping timeout: 240 seconds]
djcp has quit [Ping timeout: 276 seconds]
LMity has quit [Ping timeout: 250 seconds]
duncannz has quit [Ping timeout: 250 seconds]
Ebok has quit [Ping timeout: 250 seconds]
djcp has joined #ruby
startupality has joined #ruby
duncannz has joined #ruby
duncannz has quit [Max SendQ exceeded]
d0nn1e has joined #ruby
russt_ has quit [Excess Flood]
russt has joined #ruby
duncannz has joined #ruby
startupality has quit [Client Quit]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
choke has quit [Ping timeout: 265 seconds]
kp666 has joined #ruby
kalopsian has joined #ruby
kp666 has quit [Max SendQ exceeded]
pricees has quit [Ping timeout: 265 seconds]
kp666 has joined #ruby
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
choke has joined #ruby
arup_r has quit [Remote host closed the connection]
kp666 has quit [Max SendQ exceeded]
kp666 has joined #ruby
mjuszczak has joined #ruby
smactive has quit [Remote host closed the connection]
kalopsian has quit [Ping timeout: 240 seconds]
jbrhbr has joined #ruby
arup_r has joined #ruby
Ox0dea has quit [Quit: WeeChat 1.4-rc1]
mloy has quit [Quit: Leaving]
BSaboia has joined #ruby
zast has quit [Remote host closed the connection]
DonOtreply has joined #ruby
juddey has quit [Ping timeout: 240 seconds]
rippa has joined #ruby
Ltnt_Hawkeye has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has quit [Ping timeout: 265 seconds]
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
SOLDIERz has joined #ruby
choke has joined #ruby
renatosilva has joined #ruby
mary5030 has quit [Remote host closed the connection]
juddey has joined #ruby
solars has joined #ruby
last_staff has joined #ruby
kp666 has quit [Ping timeout: 264 seconds]
trautwein has joined #ruby
blackmesa has joined #ruby
choke_ has joined #ruby
firstdayonthejob has joined #ruby
choke has quit [Ping timeout: 265 seconds]
Macaveli has joined #ruby
Macaveli has quit [Client Quit]
CorySimmons has quit [Quit: Bye!]
blackmesa has quit [Ping timeout: 265 seconds]
axsuul has joined #ruby
kknight has quit [Ping timeout: 260 seconds]
baweaver has quit [Remote host closed the connection]
postmodern has quit [Quit: Leaving]
yfeldblum has quit [Ping timeout: 260 seconds]
djbkd has joined #ruby
nixmaniack has joined #ruby
usershell has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
axsuul has quit [Ping timeout: 245 seconds]
pawnbox has joined #ruby
charliesome has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
nixmaniack has quit [Ping timeout: 240 seconds]
Xentil has joined #ruby
gagrio has joined #ruby
pawnbox has quit [Remote host closed the connection]
jas02 has joined #ruby
pawnbox has joined #ruby
Ishido has joined #ruby
ta has joined #ruby
BSaboia has quit [Ping timeout: 250 seconds]
TheHodge has joined #ruby
bigkevmcd has quit [Quit: Outta here...]
choke has joined #ruby
ur5us has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
bigkevmcd has joined #ruby
choke_ has quit [Ping timeout: 265 seconds]
nixmaniack has joined #ruby
bkxd has joined #ruby
karapety_ has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
renatosilva has left #ruby ["http://pidgin.renatosilva.me - Pidgin++"]
<adaedra> Hello
BSaboia has joined #ruby
brunto has joined #ruby
choke has quit [Ping timeout: 265 seconds]
euoia has quit [Ping timeout: 245 seconds]
choke has joined #ruby
bkxd has quit [Ping timeout: 246 seconds]
euoia has joined #ruby
LMity2 has quit [Ping timeout: 272 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
nixmaniack has quit [Remote host closed the connection]
choke_ has joined #ruby
ur5us has quit [Remote host closed the connection]
<kspencer> gonna try some sass/scss sometime after the next 8 hours
ur5us has joined #ruby
<flughafen> hello
yardenbar has joined #ruby
<havenwood> hi
choke has quit [Ping timeout: 265 seconds]
toretore has joined #ruby
Porfa has quit [Quit: Porfa]
nofxx has quit [Ping timeout: 246 seconds]
ur5us has quit [Ping timeout: 264 seconds]
SCHAAP137 has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
zz_denym_ is now known as denym_
arup_r has quit []
aufi has joined #ruby
Xeago has joined #ruby
TomyWork has joined #ruby
jam___ has quit [Remote host closed the connection]
gagrio is now known as gagrio-brb
pawnbox has quit [Remote host closed the connection]
PedramT has joined #ruby
pawnbox has joined #ruby
roshanavand has joined #ruby
roshanavand has quit [Remote host closed the connection]
jackjackdripper has joined #ruby
ur5us has joined #ruby
EbokianKnight has quit [Read error: Connection reset by peer]
roshanavand has joined #ruby
einarj has joined #ruby
a_ has joined #ruby
a_ has left #ruby [#ruby]
a_ has joined #ruby
wolffles has joined #ruby
a_ is now known as up0x1
mark1 has joined #ruby
<shevy> yo flughafen - 2016 must be the year of the flughafen in berlin!
sandstrom has joined #ruby
blackmesa has joined #ruby
nixmaniack has joined #ruby
firstdayonthejob has quit [Ping timeout: 272 seconds]
TheNet has joined #ruby
TheNet has quit [Client Quit]
TheWhip has joined #ruby
Hounddog has joined #ruby
huyderman has joined #ruby
d0nn1e has quit [Ping timeout: 240 seconds]
blackmesa has quit [Ping timeout: 240 seconds]
karapety_ has quit [Remote host closed the connection]
karapetyan has joined #ruby
elaptics`away is now known as elaptics
usershell has joined #ruby
d0nn1e has joined #ruby
lacuna has quit [Remote host closed the connection]
steffkes has joined #ruby
steffkes has quit [Changing host]
steffkes has joined #ruby
skcin7 has joined #ruby
kalopsian has joined #ruby
sandstrom has quit [Quit: My computer has gone to sleep.]
mistermocha has joined #ruby
karapetyan has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
karapetyan has joined #ruby
dpg_ has quit [Ping timeout: 265 seconds]
roshanavand has joined #ruby
<flughafen> shevy: is it going to open in 2016?
usershell has quit [Ping timeout: 245 seconds]
<shevy> hehe yeah
<shevy> together with the linux desktop of the year
juddey has quit [Ping timeout: 264 seconds]
smactive has joined #ruby
roshanav_ has joined #ruby
kalopsian has quit [Ping timeout: 265 seconds]
mistermocha has quit [Ping timeout: 265 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
anski has quit [Quit: Leaving]
<flughafen> shevy: current schedule is in ayear an a half or so
<shevy> hehe
smactive has quit [Ping timeout: 272 seconds]
<shevy> hmm... time for a ruby question... is there a way to return a full Array of the ruby stdlib constants? e. g. an array such as: [String, Hash, Array ...] I need to iterate over every one of them via .instance_methods(false); right now I am hardcoding this, which sorta sucks
<shevy> hmm not stdlib... core
yfeldblum has joined #ruby
Amnez777 has quit [Changing host]
Amnez777 has joined #ruby
TheWhip has quit [Remote host closed the connection]
scampbell has quit [Remote host closed the connection]
usershell has joined #ruby
dwfait has joined #ruby
djbkd has joined #ruby
jbrhbr has quit [Quit: Leaving.]
jschmid has joined #ruby
poguez_ has quit [Quit: Connection closed for inactivity]
<toretore> shevy, you mean classes defined at the top level?
<toretore> >> Object.constants.map{|s| Object.const_get(s) }.select{|o| o.is_a?(Class) }
<ruboto> toretore # => [Object, Module, Class, BasicObject, NilClass, Data, TrueClass, FalseClass, Encoding, String, Symbol ...check link for more (https://eval.in/498599)
<shevy> toretore yeah
<shevy> hmm gimme a moment to have a look
craigp has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
cornerma1 has joined #ruby
<shevy> interesting
PedramT has quit [Remote host closed the connection]
peeja has joined #ruby
<shevy> I am seeing names I never before saw ... like http://ruby-doc.org/stdlib-2.0.0/libdoc/thread/rdoc/ConditionVariable.html
<shevy> but it seems to work, thanks toretore
<toretore> np
<toretore> ConditionVariable is used for thread synchronization
roshanav_ has quit [Remote host closed the connection]
duncannz has quit [Remote host closed the connection]
roshanavand has joined #ruby
cornerman has quit [Ping timeout: 250 seconds]
cornerma1 is now known as cornerman
peeja has quit [Ping timeout: 250 seconds]
wolffles has quit [Quit: wolffles]
weemsledeux has joined #ruby
DoubleMalt has joined #ruby
TheWhip has joined #ruby
pandaant has joined #ruby
TheWhip has quit [Remote host closed the connection]
TheWhip has joined #ruby
Snowy has joined #ruby
<shevy> * include/ruby/backward.h (ruby_show_copyright_to_die)
<shevy> cool name
ryez has quit [Ping timeout: 252 seconds]
pawnbox has quit [Remote host closed the connection]
sandstrom has joined #ruby
pawnbox has joined #ruby
choke_ has quit [Ping timeout: 265 seconds]
<manveru> damn, i forgot how crazy bloated rspec is :|
pickerel has quit [Remote host closed the connection]
choke has joined #ruby
darkf has quit [Read error: Connection reset by peer]
julieeharshaw has quit [Ping timeout: 255 seconds]
peteyg_ has quit [Read error: Connection reset by peer]
peteyg has joined #ruby
darkf has joined #ruby
<atmosx> jruby is a ruby implementation running on jvm right>
yfeldblum has quit [Read error: Connection reset by peer]
<ljarvis> correct
yfeldblum has joined #ruby
stannard has joined #ruby
AwchinBruh has quit [Ping timeout: 260 seconds]
stannard has quit [Ping timeout: 255 seconds]
blackmesa has joined #ruby
ruby-lang272 has joined #ruby
<atmosx> and why aren't they upgrading to ruby 2.0? I wonder.
gregf_ has quit [Read error: Connection reset by peer]
<ruby-lang272> Getting undefined symbol: rb_thread_select while using PG 0.18.4 with Ruby 2.2.2
<adaedra> [2] pry(main)> RUBY_PLATFORM + " " + RUBY_VERSION
<adaedra> => "java 2.2.2"
<adaedra> atmosx: ^
baweaver has joined #ruby
<ruby-lang272> online resource suggest to downgrade to ruby 2.1.X
karapetyan has quit [Remote host closed the connection]
<ruby-lang272> is there any workaround for this error?
webus_ has joined #ruby
<toretore> ruby-lang272, need more information. gist the entire output
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
<atmosx> adaedra: I see, then it's logstash that's running an older version
<adaedra> atmosx: you have to use the 9000 series
<atmosx> adaedra: okay ty
<ruby-lang272> getting the error while starting the rails server in development env
<ruby-lang272> bundle exec rails s => Booting Thin => Rails 4.0.13 application starting in development on http://0.0.0.0:8080 => Run `rails server -h` for more startup options => Ctrl-C to shutdown server /opt/ruby-2.2/bin/ruby: symbol lookup error: /opt/ruby-2.2/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/pg-0.18.4/pg_ext.so: undefined symbol: rb_thread_select
karapetyan has joined #ruby
<toretore> ruby-lang272, gist.github.com
<toretore> all of it
blackmesa has quit [Ping timeout: 265 seconds]
karapetyan has quit [Client Quit]
roshanav_ has joined #ruby
baweaver has quit [Ping timeout: 264 seconds]
roshanavand has quit [Read error: Connection reset by peer]
chussenot has joined #ruby
desmondhume has joined #ruby
<toretore> which version is the pg gem?
gregf_ has joined #ruby
<ruby-lang272> tried all version btwn 0.15.x to 0.18.x
<toretore> actually nm i can see it
<ruby-lang272> same error
choke has quit [Ping timeout: 265 seconds]
julieeharshaw has joined #ruby
ruby-lang526 has joined #ruby
ruby-lang526 has left #ruby [#ruby]
gregf_ has quit [Quit: Lost terminal]
roshanav_ has quit [Remote host closed the connection]
yfeldblum has quit [Read error: Connection reset by peer]
choke has joined #ruby
yfeldblum has joined #ruby
TomyWork has quit [Quit: Leaving]
TomyWork has joined #ruby
<toretore> ruby-lang272, i guess you'll have to downgrade your ruby
<ruby-lang272> yeah, few post suggested that this error is fixed since version pg 0.14
<ruby-lang272> but does not seem so
marr has joined #ruby
rodfersou has joined #ruby
BSaboia has quit [Ping timeout: 276 seconds]
rkazak has quit [Quit: Sleep.....ing....]
bewie has joined #ruby
platzhirsch has joined #ruby
bkxd has joined #ruby
gregf_ has joined #ruby
astrobun_ has quit [Remote host closed the connection]
<ruby-lang272> toretore, that is a for temp local solution, correct? any info on when it will be roled out as a release/patch?
djbkd has joined #ruby
webus_ has quit [Ping timeout: 240 seconds]
bkxd has quit [Ping timeout: 246 seconds]
devbug has quit [Read error: Connection reset by peer]
blackmesa has joined #ruby
<toretore> no, it's just a link to the current code
<toretore> i'm not sure if it's significant
<toretore> i can't c
lipoqil has joined #ruby
certainty has joined #ruby
tlarevo has joined #ruby
nertzy has joined #ruby
ryez has joined #ruby
AwchinBruh has joined #ruby
djbkd has quit [Ping timeout: 255 seconds]
<ruby-lang272> toretore, oh ok...so probably downgrading ruby 2.1.x is the only solution
dlitvak has joined #ruby
<toretore> the most feasible one at this point, probably
roshanavand has joined #ruby
<ruby-lang272> cool, thanks for your time toretore!
choke has quit [Ping timeout: 265 seconds]
dlitvak_ has joined #ruby
ruby-lang272 has quit [Quit: Page closed]
dlitvak has quit [Ping timeout: 240 seconds]
dlitvak_ has quit [Remote host closed the connection]
choke has joined #ruby
<certainty> moin
tlarevo has quit []
shredding has joined #ruby
ruby[bot] has joined #ruby
ruby[bot] has left #ruby ["leaving"]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
nerfando has joined #ruby
arup_r has joined #ruby
Juanchito has joined #ruby
AwchinBruh has quit [Ping timeout: 260 seconds]
startupality has joined #ruby
rdark has joined #ruby
krz has quit [Read error: Connection reset by peer]
blur3d has joined #ruby
choke has quit [Ping timeout: 265 seconds]
kalopsian has joined #ruby
roshanavand has joined #ruby
roshanav_ has quit [Read error: Connection reset by peer]
choke has joined #ruby
bricker has quit [Ping timeout: 276 seconds]
blackgoat has joined #ruby
FernandoBasso has joined #ruby
inukshuk_ has joined #ruby
nerfando has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kalopsian has quit [Ping timeout: 260 seconds]
inukshuk_ has quit [Client Quit]
AwchinBruh has joined #ruby
ruby[bot] has joined #ruby
ryez has quit [Ping timeout: 252 seconds]
ruby[bot] has left #ruby [#ruby]
rns has quit [Ping timeout: 264 seconds]
baweaver has joined #ruby
roshanavand has quit [Remote host closed the connection]
BSaboia has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
mistermocha has joined #ruby
avenj has quit [Ping timeout: 240 seconds]
nertzy has quit [Quit: This computer has gone to sleep]
sandstrom has quit [Quit: My computer has gone to sleep.]
nerfando has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
scripore has joined #ruby
choke has quit [Ping timeout: 265 seconds]
codecop has joined #ruby
blackgoat has quit [Ping timeout: 265 seconds]
Marsupermammal has joined #ruby
singalaut has joined #ruby
up0x1 has quit [Ping timeout: 246 seconds]
TheWhip has quit [Remote host closed the connection]
choke has joined #ruby
singalaut has left #ruby ["WeeChat 1.4-dev"]
scripore has quit [Quit: This computer has gone to sleep]
ruby[bot] has joined #ruby
ruby[bot] has left #ruby ["leaving"]
bkxd has joined #ruby
dionysus69 has joined #ruby
djbkd has joined #ruby
bkxd has quit [Ping timeout: 245 seconds]
roshanavand has joined #ruby
FooMunki has joined #ruby
BSaboia has quit [Quit: Leaving]
Jackneill has joined #ruby
djbkd has quit [Ping timeout: 260 seconds]
roshanavand has quit [Ping timeout: 240 seconds]
Xentil has quit [Ping timeout: 264 seconds]
dionysus69 has quit [Ping timeout: 260 seconds]
certainty has quit [Ping timeout: 276 seconds]
Xentil has joined #ruby
choke has quit [Ping timeout: 265 seconds]
dlitvak has joined #ruby
dlitvak has quit [Remote host closed the connection]
ur5us has quit [Remote host closed the connection]
choke has joined #ruby
ryez has joined #ruby
ur5us has joined #ruby
stamina has joined #ruby
certainty has joined #ruby
dorei has joined #ruby
PedramT has joined #ruby
axsuul has joined #ruby
Dimik has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 276 seconds]
leksster has joined #ruby
s00pcan has quit [Ping timeout: 272 seconds]
dlitvak has joined #ruby
s00pcan has joined #ruby
bithon has quit [Ping timeout: 250 seconds]
roshanavand has joined #ruby
choke has quit [Read error: Connection reset by peer]
DEA7TH has joined #ruby
raymondgulbrands has joined #ruby
certainty has quit [Ping timeout: 264 seconds]
choke has joined #ruby
chussenot has quit [Quit: chussenot]
rayray_ has joined #ruby
curses has joined #ruby
roshanavand has quit [Ping timeout: 264 seconds]
raymondgulbrands has quit [Client Quit]
TheWhip has joined #ruby
Lingo has joined #ruby
Obcilion has joined #ruby
DEA7TH has quit [Quit: DEA7TH]
roshanavand has joined #ruby
Macaveli has joined #ruby
choke has quit [Ping timeout: 265 seconds]
choke has joined #ruby
nixmaniack has quit [Remote host closed the connection]
bithon has joined #ruby
nixmaniack has joined #ruby
haraigoshi has quit [Ping timeout: 240 seconds]
radgeRayden has joined #ruby
choke has quit [Read error: Connection reset by peer]
startupality has quit [Quit: startupality]
choke has joined #ruby
startupality has joined #ruby
sankaber has joined #ruby
shredding has quit [Ping timeout: 265 seconds]
sigurding has quit [Quit: sigurding]
wrilain has joined #ruby
<apeiros> >> RUBY_VERSION
r_rios has joined #ruby
<ruboto> apeiros # => "2.2.0" (https://eval.in/498667)
<apeiros> ah good, already thought I had forgotten to remove ruby[bot] :)
chussenot has joined #ruby
sandstrom has joined #ruby
PedramT has quit []
hannelita has joined #ruby
<r_rios> Hello. I have a script and it suits me well, but I always pipe its output through other executables (like ./script_blah | c++filt | less). Is there a way I can do this inside the script? That is, to get the output of the current ruby script and pipe it to one or more other executables
sandstrom has quit [Read error: Connection reset by peer]
dlitvak has quit [Read error: Connection reset by peer]
choke has quit [Ping timeout: 265 seconds]
dlitvak has joined #ruby
choke has joined #ruby
sandstrom has joined #ruby
yfeldblum has quit [Ping timeout: 260 seconds]
startupality has quit [Quit: startupality]
dlitvak has quit [Remote host closed the connection]
karapetyan has joined #ruby
karapetyan has quit [Client Quit]
dlitvak has joined #ruby
djbkd has joined #ruby
arup_r has quit [Remote host closed the connection]
roshanav_ has joined #ruby
blackmesa has quit [Ping timeout: 260 seconds]
xet7 has quit [Ping timeout: 276 seconds]
roshanavand has quit [Ping timeout: 260 seconds]
usershell has quit [Read error: Connection reset by peer]
sandstrom has quit [Read error: Connection reset by peer]
roger_rabbit has quit [Ping timeout: 272 seconds]
djbkd has quit [Ping timeout: 260 seconds]
dlitvak_ has joined #ruby
usershell has joined #ruby
steffkes has quit [Ping timeout: 276 seconds]
sandstrom has joined #ruby
RegulationD has joined #ruby
choke has quit [Ping timeout: 265 seconds]
lipoqil has quit [Quit: Connection closed for inactivity]
axsuul has quit [Ping timeout: 272 seconds]
nixmaniack has quit [Remote host closed the connection]
dlitvak has quit [Ping timeout: 265 seconds]
Xentil has quit [Ping timeout: 240 seconds]
choke has joined #ruby
arup_r has joined #ruby
RegulationD has quit [Ping timeout: 260 seconds]
sandstrom has quit [Read error: Connection reset by peer]
dlitvak_ has quit [Remote host closed the connection]
kalopsian has joined #ruby
xet7 has joined #ruby
atomical has joined #ruby
dlitvak has joined #ruby
kalopsian has quit [Ping timeout: 260 seconds]
DEA7TH has joined #ruby
certainty has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
CloCkWeRX has quit [Ping timeout: 264 seconds]
sandstrom has joined #ruby
colegatron has quit [Ping timeout: 272 seconds]
diegoviola has joined #ruby
smactive has joined #ruby
TheWhip has quit [Remote host closed the connection]
blackmesa has joined #ruby
pawnbox has quit [Remote host closed the connection]
duderonomy has quit [Ping timeout: 264 seconds]
sigurding has joined #ruby
emilkarl has joined #ruby
m3troX has joined #ruby
smactive has quit [Ping timeout: 245 seconds]
SCHAAP137 has joined #ruby
m3troX has left #ruby [#ruby]
sandstrom has quit [Read error: Connection reset by peer]
certainty has quit [Ping timeout: 255 seconds]
sandstrom has joined #ruby
choke has quit [Ping timeout: 265 seconds]
dlitvak has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
pawnbox has joined #ruby
chussenot has quit [Quit: chussenot]
Lingo has quit [Quit: Be back later ...]
choke has joined #ruby
dkam has joined #ruby
ledestin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Lingo has joined #ruby
freerobby has joined #ruby
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
CloCkWeRX has joined #ruby
colegatron has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kobain has joined #ruby
lxsameer has quit [Ping timeout: 256 seconds]
kalopsian has joined #ruby
avenj has joined #ruby
avenj has quit [Changing host]
avenj has joined #ruby
rayray_ has quit [Quit: Page closed]
blur3d has quit [Quit: blur3d]
mistermocha has joined #ruby
tvw has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
Hounddog has joined #ruby
diegoviola has quit [Ping timeout: 246 seconds]
choke has quit [Ping timeout: 265 seconds]
diego2 has joined #ruby
m8 has joined #ruby
diego2 has quit [Changing host]
diego2 has joined #ruby
platzhirsch has left #ruby [#ruby]
mistermocha has quit [Ping timeout: 245 seconds]
Marsupermammal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sandstrom has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
HANJIN has joined #ruby
Xeago has quit [Remote host closed the connection]
choke has joined #ruby
bkxd has joined #ruby
certainty has joined #ruby
<cout> what does the DLDLIBS variable in rbconfig.rb represent?
diego2 is now known as diegoviola
<cout> on my platform it's set to -lc, so I think it's superfluous, but I'm wondering what it might be set to on other platforms that would cause things to break if I didn't include it on the link line for an extension or for an app that uses the ruby library
<diegoviola> my client wants me to write a cron service that fetches their data, but they don't provide a API that I can fetch/parse, instead I need to download some excel file from their web site, but that's tricky since it requires filing out forms, etc. then I have to parse the excel file
kobain has quit [Ping timeout: 240 seconds]
SenpaiSilver has joined #ruby
<diegoviola> phantomjs/capybara comes to mind, but I don't know
Coldblackice has quit [Ping timeout: 246 seconds]
<HANJIN> gsub(/\b(I am|You are|I|You|Your|My)\b/i) <— This is a sample code what was provided my book, I don’t know why ‘/i’ is there, why??
<diegoviola> they want this cron service every 15 mins, and phantomjs/capybara is going to be too expensive to run
Marsupermammal has joined #ruby
dkam has quit [Quit: Be back later ...]
<go|dfish> HANJIN: it makes the match case-insensitive
dkam has joined #ruby
futilegames has joined #ruby
djbkd has joined #ruby
mrfoto has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
futilegames has quit [Client Quit]
Xeago has joined #ruby
<adaedra> >> [/a/, /a/i].map { |r| "A" =~ r }
<ruboto> adaedra # => [nil, 0] (https://eval.in/498689)
DEA7TH has quit [Quit: DEA7TH]
<adaedra> see, the latter match because of i flag
blackmesa has quit [Quit: WeeChat 1.3]
denym_ is now known as zz_denym_
auzty has quit [Quit: Leaving]
sdothum has joined #ruby
bkxd has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
minimalism has quit [Quit: minimalism]
synthroid has joined #ruby
dkam has quit [Ping timeout: 260 seconds]
choke has quit [Read error: Connection reset by peer]
duckpuppy has joined #ruby
Snowy has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
Snowy has joined #ruby
curses has quit [Read error: Connection reset by peer]
<HANJIN> go|dfish: Thank you :)
<HANJIN> adaedra: Thank you, it’s good to understand
Nahra``` has quit [Remote host closed the connection]
Nahra``` has joined #ruby
Rush has quit [Quit: No Ping reply in 180 seconds.]
Domaldel has joined #ruby
Freeaqingme has quit [Quit: No Ping reply in 180 seconds.]
bluOxigen has joined #ruby
sepp2k has joined #ruby
Freeaqingme has joined #ruby
Marsupermammal has quit [Ping timeout: 240 seconds]
TheWhip has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
ellistaa has joined #ruby
Rush has joined #ruby
kobain has joined #ruby
stamina has quit [Quit: WeeChat 1.3]
bithon is now known as jiub
rns has joined #ruby
choke has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
jiub is now known as bithon
roshanav_ has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dionysus69 has joined #ruby
<apeiros> diegoviola: "filling out forms" is what humans do. machines send the post request directly.
<apeiros> and the rest: how about you write it, then see where you have problems and ask when you can't solve those?
<diegoviola> apeiros: I agree
<diegoviola> apeiros: I tried looking at the console logs in my browser but I can't really see anything useful
<diegoviola> apeiros: I wish they'd provide me a link I can send a post request and just get JSON back to parse
<diegoviola> apeiros: but they're not being very helpful with that
<apeiros> I guess that's why they pay you
<ljarvis> :)
skade has joined #ruby
dkam has joined #ruby
<diegoviola> I'll have to use capybara
dlitvak has quit [Remote host closed the connection]
<apeiros> standard approach to such issues: inform them that more useful interfaces will make your work cheaper. if they don't want to/can't, well, then you're paid for the bigger effort it takes. simple as that.
<diegoviola> thing is, collaborating is a 2 way street
sgambino has joined #ruby
<apeiros> sometimes it might even be because your time is cheaper than whoever else's time it'd take to make it easier for you.
<apeiros> you misunderstand employment.
<ljarvis> diegoviola: this doesn't sound like collaborating to me
<ljarvis> they're employing you to do a task
<apeiros> you get paid to get stuff done.
<ljarvis> ^
<apeiros> your job is it to get that stuff done.
* jhass has a dejavu
<ljarvis> aye
<apeiros> if you're a good employee, you'll inform them about ways to make it cheaper/better.
<jhass> ?offtopic
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related problems. Thanks!
<apeiros> indeed
dlitvak has joined #ruby
jzigmund has joined #ruby
dkam has quit [Ping timeout: 260 seconds]
dkam has joined #ruby
sandstrom has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
roshanavand has joined #ruby
mfb2 has joined #ruby
peeja has joined #ruby
bkxd has joined #ruby
DEA7TH has joined #ruby
dkam has quit [Read error: Connection reset by peer]
dkam has joined #ruby
blackms has joined #ruby
chouhoulis has quit [Remote host closed the connection]
dkam_ has joined #ruby
dkam has quit [Read error: Connection reset by peer]
choke has quit [Ping timeout: 265 seconds]
bmurt has joined #ruby
bmurt has quit [Client Quit]
mfb2 has quit [Ping timeout: 255 seconds]
sandstrom has quit [Read error: Connection reset by peer]
lxsameer has joined #ruby
TheWhip has quit [Remote host closed the connection]
dlitvak_ has joined #ruby
TheWhip has joined #ruby
dlitvak has quit [Read error: Connection reset by peer]
roshanavand has quit [Remote host closed the connection]
roshanavand has joined #ruby
govg has joined #ruby
choke has joined #ruby
TheWhip has quit [Remote host closed the connection]
TheWhip has joined #ruby
choke has quit [Read error: Connection reset by peer]
gigetoo has quit [Ping timeout: 250 seconds]
dstarh has joined #ruby
sandstrom has joined #ruby
choke has joined #ruby
gigetoo has joined #ruby
dkam__ has joined #ruby
dkam_ has quit [Read error: Connection reset by peer]
choke has quit [Ping timeout: 265 seconds]
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkam___ has joined #ruby
dkam__ has quit [Read error: Connection reset by peer]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
dlitvak_ has quit [Read error: Connection reset by peer]
dlitvak has joined #ruby
avenj has quit [Ping timeout: 240 seconds]
dkam___ has quit [Ping timeout: 240 seconds]
Anderson69s has joined #ruby
tobiasvl has quit [Quit: leaving]
crazydiamond has quit [Remote host closed the connection]
JDiPierro has joined #ruby
rdark has quit [Quit: WeeChat 1.0.1]
mfb2 has joined #ruby
mfb2_ has joined #ruby
ramortegui has joined #ruby
krz has joined #ruby
rdark has joined #ruby
skade has quit [Ping timeout: 260 seconds]
sandstrom has joined #ruby
asmodlol has joined #ruby
mfb2 has quit [Ping timeout: 256 seconds]
aadam21 has joined #ruby
peeja has quit [Ping timeout: 260 seconds]
aganov has quit [Remote host closed the connection]
rrichardsr3 has joined #ruby
roshanav_ has joined #ruby
roshanavand has quit [Read error: Connection reset by peer]
mary5030 has joined #ruby
dkam___ has joined #ruby
djbkd has joined #ruby
alakra has quit [Ping timeout: 240 seconds]
techietrash has quit [Max SendQ exceeded]
techietrash has joined #ruby
techietrash has quit [Changing host]
techietrash has joined #ruby
choke has quit [Ping timeout: 265 seconds]
centrx has joined #ruby
djbkd has quit [Ping timeout: 276 seconds]
dkam___ has quit [Read error: Connection reset by peer]
blackms has quit [Remote host closed the connection]
dkam___ has joined #ruby
sandstrom has quit [Ping timeout: 265 seconds]
dkam___ has quit [Read error: Connection reset by peer]
choke has joined #ruby
dkam___ has joined #ruby
sandstrom has joined #ruby
fmcgeough has joined #ruby
ta0 has joined #ruby
blackms has joined #ruby
last_staff has quit [Quit: last_staff]
Lingo has quit [Quit: Lingo: www.lingoirc.com]
Scoopfinder has joined #ruby
aadam21 has quit [Remote host closed the connection]
<r_rios> To anyone wondering (nobody), here's how to pipe out to other processes in Ruby: ruby -e "IO.popen('less', 'w') { |io| io.puts 'some string' }"
<shevy> hmm
themsay2 has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
<r_rios> (In a response to a response to a response to a comment)
KineticX has joined #ruby
<shevy> hah josh cheek replied
sandstrom has quit [Read error: Connection reset by peer]
ellistaa has quit [Quit: ellistaa]
Scriptonaut has joined #ruby
sankaber has joined #ruby
themsay has quit [Ping timeout: 250 seconds]
<shevy> what terminal is that? OSX?
<adaedra> Looks like Atom
dlitvak has quit [Read error: Connection reset by peer]
sankaber has quit [Remote host closed the connection]
<Scriptonaut> Hey guys, I'm trying to use ruby oneliners in my linux setup. I have a script that automatically does something like: echo "43::23::32" | ruby -e "puts gets.split('::')[0]". This works great when I call it from the command line, however when it runs from my autostart script there is nothing in STDIN, it's like STDIN is being redirected or something. Anyone have a clue why gets returns nothing when I'm ru
<Scriptonaut> nning it in that context?
<Scriptonaut> also I just remember y'all don't like being called guys, so pretend I said, "Hey y'all"
sankaber has joined #ruby
TomPeed has joined #ruby
dlitvak has joined #ruby
zotherstupidguy has joined #ruby
aegis3121 has joined #ruby
sulky has quit [Ping timeout: 246 seconds]
<toretore> Scriptonaut, what is an "autostart script"?
dkam___ has quit [Read error: Connection reset by peer]
dkam____ has joined #ruby
<Scriptonaut> toretore: a script that runs when I launch my window manager
<Scriptonaut> it does things like set the background image on my desktop
<Scriptonaut> start my program launcher
<Scriptonaut> etc
<Scriptonaut> it's a bash script
kalopsian has quit [Ping timeout: 245 seconds]
pink_vampire has joined #ruby
<pink_vampire> hi
nixmaniack has quit [Remote host closed the connection]
<toretore> Scriptonaut, need more details
<Scriptonaut> ok, I'll gist the code
<toretore> if there's nothing in stdin, that's not ruby's problem
sulky has joined #ruby
<pink_vampire> how it's ruby compared to python?
<toretore> python is vastly superior
<adaedra> pink_vampire: different
radgeRayden_ has joined #ruby
<pink_vampire> I have some project to do and I need to choose my first programing language
<adaedra> there's no "superior" programming language.
choke has quit [Ping timeout: 265 seconds]
radgeRayden_ has quit [Client Quit]
kalopsian has joined #ruby
<pink_vampire> I want to read serial data and make a nice full screen gui
<Scriptonaut> in the first file, dwmstart, it calls lemonbarstart.sh
<Scriptonaut> in lemonbar.sh, near the bottom, there is some text I pipe to a ruby command
dkam____ has quit [Read error: Connection reset by peer]
<Scriptonaut> STDIN.readline (also tried gets) returns nothing when it's launched this way
dkam____ has joined #ruby
<toretore> does conky return multi line output?
tmtwd has joined #ruby
<toretore> yes, it looks like it
<Scriptonaut> no, it works perfectly when I run it manually
krobzaur has joined #ruby
<Scriptonaut> toretore: no, I configred conky to only return a single line
<toretore> oh right
choke has joined #ruby
alakra has joined #ruby
mustmodify has left #ruby [#ruby]
<adaedra> What you're looking for is `tr`, Scriptonaut.
<adaedra> err.
<adaedra> `cut`.
<Scriptonaut> I tried using sed and awk, and holy crap are they terrible tools compared to ruby :|
<toretore> yes, it seems unnecessary to run ruby x 3 every 0.2s
<Scriptonaut> like man, the most unreadable stuff
<toretore> that is true
<Scriptonaut> Alright, I figure I better learn cut/awk/sed
<toretore> unix tools suck
<Scriptonaut> or tr
<Scriptonaut> ya they do
bkxd has quit [Ping timeout: 272 seconds]
<adaedra> They're rather good, well known and well used.
<Scriptonaut> ok, thanks for the pointers guys
whippythellama has joined #ruby
<adaedra> using conky to get these info sounds also a bit overkill imo.
chipotle has quit [Quit: cheerio]
<toretore> but if there's nothing in ruby's stdin, there's not going to be any for sed either
chouhoulis has joined #ruby
gregf has quit [Quit: WeeChat 1.3]
isene has quit [Ping timeout: 276 seconds]
SebastianThorn has quit [Ping timeout: 276 seconds]
<Scriptonaut> The syntax is just horrid though
dlitvak has quit [Read error: Connection reset by peer]
<Scriptonaut> adaedra: how would you get them?
dkam____ has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
SebastianThorn has joined #ruby
sameerynho has joined #ruby
gregf has joined #ruby
isene has joined #ruby
<adaedra> There are things in /proc (a bit raw tho)
<Scriptonaut> if not conky?
<Scriptonaut> much of what I've read online uses conky for this
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<adaedra> yuck, running 3 times ruby each 0.2s for splitting
malconis has joined #ruby
<Scriptonaut> yes, that's very slow
<Scriptonaut> I originally tried sed/awk but it was too terse
<adaedra> in your case, I'd look at getting everything done by conky
mfb2_ has quit [Remote host closed the connection]
<adaedra> and just pipe conky into lemonbar
daivyk has joined #ruby
lxsameer has quit [Ping timeout: 276 seconds]
<adaedra> conky is made for what you're trying to do: outputting system information at intervals
<Scriptonaut> oh, that's a good point
<Scriptonaut> I forgot about that
<Scriptonaut> thanks :)
choke has quit [Read error: Connection reset by peer]
<adaedra> UNIX tools is also using the good tool for the job ;)
<Scriptonaut> I also found this: conky -i 1 | awk -F "::" '{print $3}'
chouhoulis has quit [Ping timeout: 272 seconds]
gregf has quit [Client Quit]
<Scriptonaut> pretty simple, I should put some time aside to learn these tools
<adaedra> you'll still run conky and awk at each iteration
<Scriptonaut> ya, I'm going to try your suggestion next
choke has joined #ruby
<toretore> what i have against unix tools is that they mix human- and machine oriented output
<adaedra> also, I don't know what is the interval set in conky; it needs time to calculate CPU usage
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
<Scriptonaut> the interval is like 2 seconds
dlitvak has quit [Remote host closed the connection]
<Scriptonaut> or maybe 1
<toretore> so you end up with long, brittle chains of sed | awk | head | shit
<Scriptonaut> I need to set it to 0.2
<adaedra> So your iteration is 1.2s, not 0.2s
<Scriptonaut> ya
<adaedra> yeah, stuff things in conky as much as possible.
dkam____ has joined #ruby
<adaedra> you could also try to make everything in Ruby :)
<Scriptonaut> I would much rather do that hehe
loveablelobster has joined #ruby
<Scriptonaut> I'm a programmer, I don't know a great deal about bash or shell scripting in general
<adaedra> (That would make only one resident ruby script and give access to much more things)
<Papierkorb> As a shell tool abuser, treat shell scripting as a programming language and not as something else.
baweaver has joined #ruby
<Scriptonaut> ah, I guess it is a programming language
lxsameer__ has joined #ruby
<dotix> Papierkorb: +1
<Scriptonaut> turing complete and all that
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<toretore> a shitty one
<blub> please don't write shell scripts
stannard has joined #ruby
<Papierkorb> No, it's not shitty.
<toretore> are you talking about bash?
stannard has quit [Remote host closed the connection]
loveablelobster has quit [Client Quit]
<Papierkorb> It can do a lot of things really well, but if you're looking to write something you can better do in ruby or w/e, then use ruby (or w/e)
stannard has joined #ruby
<adaedra> If you use it for everything, it is shitty. But it's really good for some tasks.
<Papierkorb> toretore: I use ZSH, but the tools are the same for bash
<adaedra> It's all about using the right tool, people.
<toretore> seldom do i find bash to be an adequate language for the problems i'm trying to solve
<Papierkorb> ^
usershel_ has joined #ruby
krz has quit [Ping timeout: 272 seconds]
<Papierkorb> toretore: for example?
<toretore> anything
nixmaniack has joined #ruby
<Papierkorb> aha
Guest55888 is now known as saneax_AFK
<toretore> just now i was writing a script to query a tcp server for data, then parse that data and output it on a local port
sameerynho has quit [Ping timeout: 260 seconds]
sameerynho has joined #ruby
<Papierkorb> Network interaction is not really bash territory
<adaedra> yep, totally sounds like something not to do in shell.
<toretore> Papierkorb, you mean i/o in general?
baweaver has quit [Ping timeout: 255 seconds]
<Papierkorb> Anything above "curl, push this data to the server and pipe the output into grep" is better put into a Ruby or Python script or whatever you prefer
<adaedra> Even if there's ways of doing it (nc, and a special thing in bash iirc)
usershell has quit [Ping timeout: 240 seconds]
dkam_____ has joined #ruby
<adaedra> toretore: no
<toretore> there's no difference between vating a file and netcating something
<toretore> cating
FooMunki has quit [Quit: FooMunki]
<toretore> to bash it's just data on stdin
<Papierkorb> toretore: are you one of those who think that navigating the source file tree is faster done using a graphical tool?
nixmaniack has quit [Remote host closed the connection]
FooMunki has joined #ruby
<toretore> no
choke has quit [Ping timeout: 265 seconds]
dkam____ has quit [Ping timeout: 276 seconds]
<toretore> i have nothing against the command line and i'm quite comfortable with it, but the unix terminal environment is just super outdated and shitty
<toretore> vt100 wtf
<adaedra> Who still uses vt100
<Papierkorb> shell scripting is for stuff like $ pacman -Qo /usr/bin/*(x) # Take all executable files and ask pacman which package owns it.
<Scriptonaut> Hrm, I have a bit of a problem, the text I need to output is prepended with color variables: ${green}\uf108 ${cpu cpu1}% \uf108 ${cpu cpu2}% ${blue}\uf0a0 $memperc%
<toretore> adaedra, everyone that uses unix
<Scriptonaut> and these variables don't exist in the conky script
<blub> what are some things that shell scripting is better at than perl or ruby with backticks
<toretore> terminals are still based on it
sandstrom has joined #ruby
psy_ has joined #ruby
<Scriptonaut> is there a way to delay the expansion of those variables until it gets to my bash script?
<Scriptonaut> and just output it from conky as plain text?
<Papierkorb> toretore: Great, I'm using a unixoid system
<adaedra> based on, yes. That's something else.
lxsameer__ has quit [Ping timeout: 260 seconds]
lxsameer has joined #ruby
<adaedra> Scriptonaut: there is surely a way of doing escape in conky. Read the man.
<toretore> based on = permeates its design and holds it back
<Papierkorb> ..?
_orangejuice has joined #ruby
<adaedra> the fact that we're based on vt100 is irrelevant imo, but if you need that to be hating, go on.
<Papierkorb> Know your tools. And use the right tool for the job. If you want to parse structured data like XML or JSON stuff with sed and friends, you'll have a bad time
<Scriptonaut> ok thank adaedra
<Papierkorb> That's not because the tools suck, but that you're trying to hammer in a picture on the wall with a screwdriver without a nail
<toretore> Papierkorb, that's it though, *everything* should be structured data in the first place
<Papierkorb> (for JSON scripting, one of the right tools would be 'jq')
polishdub has joined #ruby
Melpaws has quit [Quit: Leaving.]
nixmaniack has joined #ruby
sameerynho has quit [Ping timeout: 256 seconds]
dkam_____ has quit [Ping timeout: 250 seconds]
<ddv> you should use regex to parse html
lxsameer__ has joined #ruby
<ddv> :-)
* adaedra throws ddv in an active volcano
choke has joined #ruby
gregf has joined #ruby
dkam_____ has joined #ruby
TomPeed has joined #ruby
lxsameer has quit [Ping timeout: 245 seconds]
DonOtreply has quit [Quit: DonOtreply]
dlitvak has joined #ruby
zapata has quit [Quit: WeeChat 1.3]
YaknotiS has quit [Ping timeout: 260 seconds]
duckpuppy has quit [Ping timeout: 272 seconds]
sameerynho has joined #ruby
DonOtreply has joined #ruby
solars has quit [Quit: WeeChat 0.4.2]
sergey_makagon has joined #ruby
weemsledeux has joined #ruby
YaknotiS has joined #ruby
fmcgeough has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
maikowblue has joined #ruby
fmcgeough has joined #ruby
ta_ has joined #ruby
lxsameer__ has quit [Ping timeout: 260 seconds]
ta has quit [Read error: Connection reset by peer]
decoponio has joined #ruby
treehug88 has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
aadam21 has joined #ruby
mfb2 has joined #ruby
dlitvak_ has joined #ruby
bkxd has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 265 seconds]
djbkd has joined #ruby
nixmaniack has quit [Remote host closed the connection]
aegis3121 has quit [Ping timeout: 256 seconds]
themsay2 has quit [Ping timeout: 246 seconds]
noname has joined #ruby
dkam_____ has quit [Ping timeout: 260 seconds]
ta_ has quit [Remote host closed the connection]
dkam_____ has joined #ruby
choke has quit [Ping timeout: 265 seconds]
djbkd has quit [Ping timeout: 265 seconds]
<toretore> oh and i also like systemd so take that
dkam_____ has quit [Ping timeout: 240 seconds]
choke has joined #ruby
dkam_____ has joined #ruby
cschneid_ has quit [Remote host closed the connection]
Jardayn has joined #ruby
ruby[bot] has joined #ruby
kies^ has joined #ruby
Xeago has quit [Remote host closed the connection]
lxsameer__ has joined #ruby
bricker has joined #ruby
tubulife- has joined #ruby
<adaedra> and this is relevant because...?
sameerynho has quit [Ping timeout: 260 seconds]
dkam_____ has quit [Ping timeout: 264 seconds]
Xeago has joined #ruby
Obcilion has quit [Ping timeout: 272 seconds]
dkam_____ has joined #ruby
sandstrom has joined #ruby
tenderlove has joined #ruby
FernandoBasso has quit [Quit: Leaving]
lurch_ has quit [Quit: lurch_]
arup_r has quit [Remote host closed the connection]
duckpuppy has joined #ruby
hxegon has joined #ruby
krz has joined #ruby
dkam_____ has quit [Ping timeout: 246 seconds]
zotherstupidguy has quit [Quit: WeeChat 1.3]
choke has quit [Read error: Connection reset by peer]
mrtomme has quit [Ping timeout: 246 seconds]
certainty has quit [Ping timeout: 256 seconds]
choke has joined #ruby
mrtomme has joined #ruby
Ltnt_Hawkeye has joined #ruby
webus_ has joined #ruby
themsay has joined #ruby
themsay has joined #ruby
modin has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kies^ has quit [Ping timeout: 256 seconds]
peteyg_ has joined #ruby
peteyg has quit [Read error: Connection reset by peer]
modin has joined #ruby
Croves has joined #ruby
momomomomo has joined #ruby
shibly has joined #ruby
<shibly> Has ruby taken anything from python?
choke has quit [Ping timeout: 265 seconds]
soahccc has joined #ruby
<Croves> Hi guys! What's wrong with this? `if i % 3 == 0 OR i % 5 == 0`
<apeiros> Croves: OR != or
<Croves> It says syntax error, unexpected tCONSTANT, expecting keyword_then or ';' or '\n'
<apeiros> also you probably should use ||
df has quit [Ping timeout: 250 seconds]
<Croves> apeiros: ouch!!
<Croves> apeiros: Thank you, sir!
<shibly> Is there any similarity of ruby with python?
<apeiros> I don't think `or` has the right precedence
<apeiros> ?guys Croves
<ruboto> Croves, Though inclusion was probably intended, not everyone relates to being "one of the guys". Maybe consider using "folks", "all", "y'all", or "everyone" instead?
<ruby[bot]> apeiros: I don't see no Croves, whom should I tell about guys?
df has joined #ruby
* apeiros kicks ruby[bot]
brunto has quit [Ping timeout: 240 seconds]
<apeiros> should have remembered to disable factoids while running it here :-S
ruby[bot] has quit [Remote host closed the connection]
benlovell has joined #ruby
<apeiros> but interesting that it failed to see Croves :-|
sandstrom has quit [Read error: Connection reset by peer]
dkam_____ has joined #ruby
<Croves> apeiros: Sorry! What's wrong calling everyone "guys"? It's a legit question, English isn't my first language
choke has joined #ruby
<apeiros> Croves: as the message says, there's plenty of people who don't feel included by "guys". and you don't know whether I'm a "sir" either. "thank you" is easily sufficient.
Ltnt_Hawkeye has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Croves> apeiros: I tough that 'guys' and 'folks' where synonyms
brunto has joined #ruby
<apeiros> Croves: in some regions, yes
<shibly> Can anyone answer me?
<apeiros> and some people do consider it to be inclusive. but the point is that it's by far not everybody. so best not to use it if you want to address everybody.
Xeago has quit [Remote host closed the connection]
Ltnt_Hawkeye has joined #ruby
<Croves> All right. Thank you, apeiros.
<apeiros> shibly: almost certainly some ideas from python ended up in ruby.
<apeiros> Croves: you're welcome :)
<apeiros> aaand figured why ruby[bot] failed to see Croves - users vs. user_map :-S
symbol has joined #ruby
<shibly> apeiros: No idea from python is not with ruby?
<apeiros> sooo after all it wasn't all bad it was accidentally activated in here :)
<apeiros> shibly: what?
al2o3-cr is now known as gr33n7007h
gr33n7007h is now known as al2o3-cr
<shibly> apeiros: Has any idea been implemented in ruby from python?
<shibly> Any similarity in syntax?
<apeiros> shibly: I already answered that.
<apeiros> 16:42 apeiros: shibly: almost certainly some ideas from python ended up in ruby.
<apeiros> is there any point to your question?
<shibly> What does that mean? I am not understanding
asmodlol has quit [Ping timeout: 255 seconds]
pdoherty has joined #ruby
mrfoto has left #ruby [#ruby]
momomomomo has quit [Quit: momomomomo]
mrfoto has joined #ruby
sameerynho has joined #ruby
<apeiros> some ideas from python be in ruby
Ltnt_Hawkeye has quit [Client Quit]
<shibly> Which idea?
<apeiros> don't know
dlitvak_ has quit [Remote host closed the connection]
<soahccc> I tested it generally but are there side effects when using throw inside a mutex synchronize? I assume it normally unlocks right?
scripore has joined #ruby
pawnbox has quit [Remote host closed the connection]
<apeiros> soahccc: throwing to the outside of the mutex? it should always unlock.
asmodlol has joined #ruby
dlitvak has joined #ruby
pawnbox_ has joined #ruby
<soahccc> apeiros: okay :) I rarely use throw and was not exactly sure it works there like exceptions
arup_r has joined #ruby
axsuul has joined #ruby
lxsameer__ has quit [Ping timeout: 240 seconds]
dhollinger has joined #ruby
kies^ has joined #ruby
gheegh has joined #ruby
mary5030 has quit [Remote host closed the connection]
<apeiros> soahccc: not even relevant. unlocking in mutex is ensured. no matter what you do, if you leave a mutex, it'll be unlocked.
rippa has joined #ruby
<apeiros> soahccc: unless of course you use manual .lock/.unlock, then you're on your own.
Ltnt_Hawkeye has joined #ruby
pawnbox_ has quit [Remote host closed the connection]
Croves has quit [Quit: Page closed]
pawnbox has joined #ruby
Asher has quit [Ping timeout: 250 seconds]
Asher1 has joined #ruby
<soahccc> apeiros: thanks for the clarification. no way I gonna do it manually :) all nice and clean synchronizes blocks
dkam______ has joined #ruby
dkam_____ has quit [Read error: Connection reset by peer]
sandstrom has joined #ruby
AckZ has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
Asher1 has quit [Client Quit]
baweaver has joined #ruby
Asher has joined #ruby
modin has quit [Quit: ZNC - 1.6.0 - http://znc.in]
sandstrom has quit [Read error: Connection reset by peer]
shibly has left #ruby [#ruby]
AckZ has joined #ruby
krz has quit [Ping timeout: 245 seconds]
modin has joined #ruby
dkam______ has quit [Ping timeout: 245 seconds]
avenj has joined #ruby
avenj has quit [Changing host]
avenj has joined #ruby
dlitvak has quit [Read error: Connection reset by peer]
dkam______ has joined #ruby
dlitvak has joined #ruby
choke has quit [Ping timeout: 265 seconds]
baweaver has quit [Ping timeout: 255 seconds]
wrilain has quit [Read error: Connection reset by peer]
chimche has joined #ruby
huyderman has quit [Remote host closed the connection]
sameerynho has quit [Quit: Leaving]
mostlybadfly has quit [Quit: Connection closed for inactivity]
sandstrom has joined #ruby
dlitvak has quit [Remote host closed the connection]
Ltnt_Hawkeye has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skade has joined #ruby
momomomomo has joined #ruby
Ltnt_Hawkeye has joined #ruby
dlitvak has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
Xeago has quit [Remote host closed the connection]
Vertroa has joined #ruby
atumzin has quit [Read error: Connection reset by peer]
<diegoviola> I wonder if I'll be able to log in to some site with Net::HTTP, maintain the session and then perform another action that requires login
dkam______ has quit [Ping timeout: 264 seconds]
<diegoviola> while being logged in
<diegoviola> or should I use capybara/poltergeist for that?
choke has joined #ruby
Ltnt_Hawkeye has quit [Client Quit]
atumzin has joined #ruby
dlitvak has quit [Remote host closed the connection]
HANJIN has quit [Quit: HANJIN]
DonOtreply has quit [Quit: DonOtreply]
Macaveli has joined #ruby
<apeiros> you can use Net::HTTP for that, but Mechanize already implements cookie/session for you.
<apeiros> you can also use capybara/poltergeist for that, yes.
certainty has joined #ruby
benlovell has quit [Ping timeout: 240 seconds]
<apeiros> depending on the kind of login, you don't even need a session.
agentmeerkat has quit [Ping timeout: 276 seconds]
dlitvak has joined #ruby
DonOtreply has joined #ruby
r_rios has quit [Ping timeout: 246 seconds]
agentmeerkat has joined #ruby
FernandoBasso has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
skade has quit [Ping timeout: 240 seconds]
lacuna has quit [Read error: Connection reset by peer]
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
chouhoulis has joined #ruby
SOLDIERz has quit [Ping timeout: 250 seconds]
bkxd has joined #ruby
dionysus69 has quit [Remote host closed the connection]
dionysus69 has joined #ruby
ellistaa has joined #ruby
asmodlol has quit [Ping timeout: 245 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
sergey_makagon has quit [Remote host closed the connection]
sandstrom has quit [Read error: Connection reset by peer]
craigp has quit [Remote host closed the connection]
asmodlol has joined #ruby
smactive has joined #ruby
Scoopfinder has quit [Quit: *pouf*]
rsc___ has joined #ruby
duckpuppy has quit [Ping timeout: 260 seconds]
RegulationD has joined #ruby
bkxd has quit [Ping timeout: 256 seconds]
chouhoul_ has joined #ruby
djbkd has joined #ruby
skade has joined #ruby
certainty has quit [Ping timeout: 260 seconds]
chouhoulis has quit [Ping timeout: 240 seconds]
agentmeerkat has quit [Ping timeout: 272 seconds]
smactive has quit [Ping timeout: 256 seconds]
agentmeerkat has joined #ruby
Rodya_ has joined #ruby
noname has quit [Ping timeout: 240 seconds]
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mary5030 has joined #ruby
pawnbox has joined #ruby
baweaver has joined #ruby
djbkd has quit [Ping timeout: 272 seconds]
friendofkiwi has joined #ruby
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
friendofkiwi has left #ruby [#ruby]
choke has quit [Ping timeout: 265 seconds]
davejlong has joined #ruby
edwinvdgraaf has joined #ruby
choke has joined #ruby
krz has joined #ruby
benlovell has joined #ruby
polishdub has quit [Quit: Leaving]
sepp2k has quit [Read error: Connection reset by peer]
<diegoviola> apeiros: it's a login via a form, the site doesn't appear to use CSRF protection
bricker has quit [Ping timeout: 276 seconds]
<diegoviola> it's not basic http auth
momomomomo has quit [Ping timeout: 260 seconds]
tubulife- has quit [Ping timeout: 260 seconds]
dkam______ has joined #ruby
pawnbox has quit [Remote host closed the connection]
jbrhbr has joined #ruby
dlitvak has joined #ruby
gagrio-brb has quit [Ping timeout: 246 seconds]
<diegoviola> mechanize looks nice
dkam______ has quit [Ping timeout: 260 seconds]
dkam______ has joined #ruby
choke has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
choke has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
sandstrom has joined #ruby
sandstrom has quit [Read error: Connection reset by peer]
TomyWork has quit [Ping timeout: 246 seconds]
aufi has quit [Quit: Konversation terminated!]
DaniG2k has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
baweaver has quit [Remote host closed the connection]
symbol has quit [Quit: WeeChat 1.1]
symm- has joined #ruby
ellistaa has quit [Quit: ellistaa]
jackcom has left #ruby [#ruby]
hxegon is now known as hxegon_AFK
hxegon_AFK has quit [Remote host closed the connection]
sandstrom has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
Lucky___ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dkam______ has quit [Ping timeout: 260 seconds]
sandstrom has quit [Read error: Connection reset by peer]
pawnbox has joined #ruby
skade has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #ruby
choke has quit [Read error: Connection reset by peer]
einarj has quit [Remote host closed the connection]
choke_ has joined #ruby
dkam______ has joined #ruby
<joevandy1> string.gsub(/[^ [^[:cntrl:]] | [\s] ]/, '') -- getting a warning: character class has duplicated range: /[^ [^[:cntrl:]] | [\s] ]/
<joevandy1> trying to remove control characters but not whitespace from a string
[Butch] has joined #ruby
wrilain has joined #ruby
Asher1 has joined #ruby
joevandy1 is now known as joevandyk
Asher has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
duckpuppy has joined #ruby
<diegoviola> how is mechanize different than using capybara/poltergeist? I know they are different an one uses nokogiri and the other phantomjs
gregf has quit [Quit: WeeChat 1.3]
snockerton has joined #ruby
dkam______ has quit [Ping timeout: 264 seconds]
cschneid_ has joined #ruby
figgernucking has joined #ruby
<diegoviola> they seem to do almost the same thing, no?
figgernucking has quit [K-Lined]
dkam______ has joined #ruby
edwinvdgraaf has quit [Ping timeout: 260 seconds]
sergey_makagon has joined #ruby
<toretore> seems to me capybara is meant for testing
mostlybadfly has joined #ruby
sandstrom has joined #ruby
brunto has quit [Ping timeout: 255 seconds]
synthroid has quit [Remote host closed the connection]
<diegoviola> and is it ok to use mechanize for the app itself?
Lucky__ has joined #ruby
<diegoviola> when I need that sort of functionality
<havenwood> diegoviola: That's generally what it's used for.
<diegoviola> cool
<toretore> and mechanize doesn't do js
<diegoviola> thanks
malconis_ has joined #ruby
mark1 has quit [Remote host closed the connection]
sigurding has quit [Quit: sigurding]
malconis has quit [Ping timeout: 250 seconds]
catphish has joined #ruby
<diegoviola> capybara is used for testing, yes, but the README also says you can use it for scripting as well
<havenwood> diegoviola: Main purpose: "Acceptance test framework for web applications"
dkam______ has quit [Ping timeout: 240 seconds]
<diegoviola> ok
<catphish> i'm looking for a way to play music in ruby, are there any obvious libraries to do this, or am i likely to need to manually decode and stream to the sound card?
CloCkWeRX has quit [Quit: Leaving.]
<diegoviola> havenwood: makes sense
<diegoviola> havenwood: I'll try to convert some of my existing scripts to mechanize :P
<havenwood> catphish: Write your own music with SonicPi! (But what do you mean by play music?)
<catphish> havenwood: i mean i want to send an mp3 to my sound card
pdoherty has quit [Ping timeout: 246 seconds]
dkam______ has joined #ruby
choke_ has quit [Ping timeout: 265 seconds]
Snowy has quit [Remote host closed the connection]
<havenwood> catphish: https://github.com/georgi/audite
<toretore> catphish, there are likely libraries for things like alsa and pulseaudio
<catphish> havenwood: thanks, that looks like it might be what i need!
skade has joined #ruby
smbenfield has joined #ruby
dotix has quit [Remote host closed the connection]
tubulife- has joined #ruby
<smbenfield> Hello! So I'm attempting to install django for python use, and Ruby isn't wanting to install rhc gem for OpenShift. Any ideas?
pipework has quit [Ping timeout: 250 seconds]
wolffles has joined #ruby
pipework has joined #ruby
<havenwood> smbenfield: Error: I don't want to?
gregf has joined #ruby
wrilain has quit [Remote host closed the connection]
<havenwood> smbenfield: Getting an error?
devbug has joined #ruby
choke has joined #ruby
<toretore> EDONTWANT
dkam______ has quit [Ping timeout: 264 seconds]
ellistaa has joined #ruby
dkam______ has joined #ruby
dlitvak has joined #ruby
<smbenfield> No, it's not an error.
MattV has joined #ruby
<smbenfield> It's just not doing anything.
<smbenfield> I let it sit for three hours and it wasn't doing anything after I attempted to intall it.
<havenwood> smbenfield: What do you type before it does nothing?
DonOtreply has quit [Quit: DonOtreply]
dotix has joined #ruby
<smbenfield> sudo gem install rdc
hobodave has joined #ruby
<smbenfield> *rhc
tubulife- has quit [Ping timeout: 264 seconds]
<havenwood> smbenfield: add: --verbose
agentmeerkat has quit [Ping timeout: 240 seconds]
mrfoto has quit []
wrilain has joined #ruby
nerfando has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<smbenfield> done.
sandstrom has quit [Read error: Connection reset by peer]
<smbenfield> Okay, so... for a newbie, can you explain what that does?
DonOtreply has joined #ruby
<smbenfield> Does it just show me what it's doing, instead of doing it all under the hood?
choke has quit [Read error: Connection reset by peer]
startupality has joined #ruby
choke has joined #ruby
jas02 has quit [Quit: jas02]
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
dkam______ has quit [Ping timeout: 250 seconds]
dotix has quit [Ping timeout: 240 seconds]
<havenwood> smbenfield: Yup, --verbose is a common flag to get a wordy output
Mirry has joined #ruby
spooq|2 has joined #ruby
mistermocha has quit [Remote host closed the connection]
skade has quit [Ping timeout: 250 seconds]
mary5030 has quit [Remote host closed the connection]
vondruch has quit [Quit: Ex-Chat]
spooq has quit [Ping timeout: 255 seconds]
certainty has joined #ruby
[Butch] has quit [Read error: Connection reset by peer]
davejlong has quit [Remote host closed the connection]
nerfando has joined #ruby
skade has joined #ruby
m3troX has joined #ruby
mary5030 has joined #ruby
choke has quit [Read error: Connection reset by peer]
terlar has quit [Ping timeout: 276 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
choke has joined #ruby
bricker has joined #ruby
djbkd has joined #ruby
dkam______ has joined #ruby
sandstrom has joined #ruby
craigp has joined #ruby
Vertroa has joined #ruby
certainty has quit [Ping timeout: 245 seconds]
DaniG2k has quit [Quit: leaving]
Mirry has quit [Ping timeout: 246 seconds]
duderonomy has joined #ruby
sdothum has joined #ruby
mistermocha has joined #ruby
Bloomer has joined #ruby
djbkd has quit [Ping timeout: 250 seconds]
dkam______ has quit [Ping timeout: 265 seconds]
webus_ has quit [Quit: Ухожу я от вас (xchat 2.4.5 или старше)]
dkam______ has joined #ruby
m3troX has left #ruby [#ruby]
atumzin has quit [Read error: Connection reset by peer]
dangeranger has joined #ruby
mezcan has joined #ruby
varesa has quit [Killed (Sigyn (Spam is off topic on freenode.))]
atumzin has joined #ruby
atumzin has quit [Changing host]
atumzin has joined #ruby
jbrhbr has quit [Quit: Leaving.]
dangeranger has quit [Client Quit]
amclain has joined #ruby
dwfait has quit [Remote host closed the connection]
shinnya has joined #ruby
babblebre has joined #ruby
dkam______ has quit [Ping timeout: 272 seconds]
duckpuppy has quit [Ping timeout: 272 seconds]
<catphish> havenwood: audite works but seems to perform extremely poorly for me, just trying to find an audio decoding library, surprisingly struggling, even the libav bindings don't seem to work for audio files
dkam______ has joined #ruby
<catphish> thanks anyway :)
dangeranger has joined #ruby
startupality has quit [Quit: startupality]
synthroid has joined #ruby
Anderson69s has quit [Quit: Time to EAT, SLEEP OR WHATEVER BYE!!!!!]
<toretore> catphish, maybe try looking for audio decoding lib first, and then see if you can find ruby bindings for it
TomyLobo has joined #ruby
jmignault has joined #ruby
ellistaa has quit [Quit: ellistaa]
startupality has joined #ruby
<catphish> i'll try that, my first thought was libav, that seems to have a good binding, but it doesn't seem to deal with audio files well for some reason, will look at others
sandstrom has quit [Read error: Connection reset by peer]
Hounddog has quit [Remote host closed the connection]
dkam______ has quit [Ping timeout: 256 seconds]
lacuna has quit [Remote host closed the connection]
dkam______ has joined #ruby
celly has joined #ruby
[Butch] has joined #ruby
idefine has joined #ruby
momomomomo has joined #ruby
benlieb has joined #ruby
noname has joined #ruby
choke has quit [Read error: Connection reset by peer]
craigp has quit [Remote host closed the connection]
craigp has joined #ruby
nertzy has joined #ruby
dkam______ has quit [Ping timeout: 246 seconds]
choke has joined #ruby
momomomomo has quit [Client Quit]
pdoherty has joined #ruby
baweaver has joined #ruby
dkam______ has joined #ruby
Snowy has joined #ruby
hobodave_ has joined #ruby
momomomomo has joined #ruby
agentmeerkat has joined #ruby
catphish has quit [Quit: Leaving]
Rodya_ has quit [Quit: Leaving...]
Snowy has quit [Remote host closed the connection]
mary5030 has quit [Remote host closed the connection]
hobodave has quit [Ping timeout: 264 seconds]
rrichardsr3 has joined #ruby
dwfait has joined #ruby
dkam______ has quit [Ping timeout: 260 seconds]
baweaver has quit [Ping timeout: 276 seconds]
dkam______ has joined #ruby
idefine has quit [Remote host closed the connection]
rtl_ is now known as rtl
momomomomo has quit [Quit: momomomomo]
yqt has joined #ruby
varesa has joined #ruby
<diegoviola> not sure how I'm supposed to set my password here
MattV has left #ruby [#ruby]
momomomomo has joined #ruby
<diegoviola> I'm trying to use mechanize to login on a form
bluOxigen_ has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
sandstrom has joined #ruby
<diegoviola> ok form['password']
rrichardsr3 has quit [Max SendQ exceeded]
dkam______ has quit [Ping timeout: 256 seconds]
beanHolez has joined #ruby
ascarter has joined #ruby
dkam______ has joined #ruby
davejlong has joined #ruby
davejlong has quit [Remote host closed the connection]
davejlong has joined #ruby
underplank has joined #ruby
sandstrom has quit [Client Quit]
dkam______ has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
craigp has quit [Remote host closed the connection]
choke has quit [Ping timeout: 265 seconds]
jbrhbr has joined #ruby
dkam______ has joined #ruby
craigp has joined #ruby
underplank has quit [Read error: Connection reset by peer]
devbug has quit [Ping timeout: 276 seconds]
Snowy has joined #ruby
choke has joined #ruby
rsc___ has quit [Quit: rsc___]
rrichardsr3 has joined #ruby
roshanav_ has quit [Remote host closed the connection]
dkam______ has quit [Ping timeout: 240 seconds]
rrichardsr3 has quit [Max SendQ exceeded]
Mirry has joined #ruby
rrichardsr3 has joined #ruby
einarj has joined #ruby
rsc___ has joined #ruby
Snowy has quit [Remote host closed the connection]
diggernick has joined #ruby
<diggernick> what is a good evernote alternative for ubuntu?
axl_ has joined #ruby
zast has joined #ruby
<al2o3-cr> !ops
<ruboto> fflush, apeiros, banisterfiend, seanstickle, Mon_Ouie, zzak, Radar, Havenn, jhass, sevenseacat, miah, workmad3, Coraline, drbrain, zenspider, slyphon, rubyhacker1, Aria, ljarvis, baweaver, Adaedra
celly has quit []
<diegoviola> havenwood: I'm writing some rake tasks that should "simulate the user experience" in order to benchmark the time it takes to perform different actions, do you think for these cases mechanize is fine? or I should use capybara+poltergeist?
troulouliou_div2 has joined #ruby
dopie_ has joined #ruby
rrichard_ has joined #ruby
rrichardsr3 has quit [Ping timeout: 255 seconds]
dopie has quit [Ping timeout: 245 seconds]
<jhass> !ban diggernick !T 1w bad nick
diggernick was kicked from #ruby by ChanServ [Banned: bad nick]
dotix has joined #ruby
choke has quit [Ping timeout: 265 seconds]
Wsewolod has joined #ruby
bluOxigen has joined #ruby
finisherr has joined #ruby
blackjid has quit [Max SendQ exceeded]
firstdayonthejob has joined #ruby
bluOxigen_ has quit [Ping timeout: 246 seconds]
snockerton1 has joined #ruby
<diegoviola> it feels wrong to use capybara outside of testing
<diegoviola> in rails
choke has joined #ruby
idefine has joined #ruby
radgeRayden has quit [Read error: Connection reset by peer]
Scriptonaut has left #ruby [#ruby]
blackjid has joined #ruby
radgeRayden has joined #ruby
nunchuck has joined #ruby
dkam______ has joined #ruby
snockerton has quit [Ping timeout: 265 seconds]
benlovell has quit [Ping timeout: 250 seconds]
idefine has quit [Remote host closed the connection]
baweaver has joined #ruby
guacamole has joined #ruby
lacuna has joined #ruby
lacuna has quit [Changing host]
lacuna has joined #ruby
<jbrhbr> anyone know offhand if there's a rubocop rule for detecting { 'foo': 3 } (as opposed to { foo: 3 })? i'm not seeing one
dotix has quit [Ping timeout: 272 seconds]
bkxd has joined #ruby
sigurding has joined #ruby
idefine has joined #ruby
startupality has quit [Quit: startupality]
twalla has joined #ruby
dkam______ has quit [Ping timeout: 246 seconds]
snockerton1 has quit [Quit: Leaving.]
startupality has joined #ruby
aegis3121 has joined #ruby
dkam______ has joined #ruby
rrichard_ has quit [Quit: Apparantly my attempt to stay awake has failed...]
mfb2 has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
northfurr has joined #ruby
guacamol_ has joined #ruby
chipotle has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
<twalla> hey guys, i've got this script that manages some of our AWS RDS stuff and i need some input on the best way to write a function that waits for an operation to complete
choke has quit [Ping timeout: 265 seconds]
einarj has quit [Remote host closed the connection]
djbkd has joined #ruby
<benlieb> In irb I have this coming from my db: :text => "<h2><span class=\"head\">asd</span></h2>\n<p>Anna Szpanski<span class=\"note\" id=\"Note1\"> how can I print this to the console “expanded”, or unescaped, so that the new lines are actual new lines?
guacamole has quit [Ping timeout: 260 seconds]
vbatts|work has joined #ruby
vbatts|work has left #ruby [#ruby]
iateadonut has left #ruby [#ruby]
dkam______ has quit [Ping timeout: 240 seconds]
<aegis3121> puts
desmondhume has quit []
<aegis3121> >> puts "blah\ntaco"
<ruboto> aegis3121 # => blah ...check link for more (https://eval.in/498800)
choke has joined #ruby
mfb2 has joined #ruby
r_rios has joined #ruby
r_rios has quit [Changing host]
r_rios has joined #ruby
tubuliferous_ has quit [Read error: Connection reset by peer]
guacamol_ has quit [Ping timeout: 255 seconds]
ascarter has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
choke has quit [Read error: Connection reset by peer]
northfurr has quit [Quit: northfurr]
lucasb has joined #ruby
<benlieb> awesome. That was actually the first thing I tried, but I see where I mis-stepped.
<benlieb> Thanks!
northfurr has joined #ruby
choke has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
TheWhip has quit []
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mfb2_ has joined #ruby
krz has quit [Quit: WeeChat 1.2]
mjuszczak has joined #ruby
mfb2 has quit [Ping timeout: 272 seconds]
roshanavand has joined #ruby
devbug has joined #ruby
JakFrist has joined #ruby
tubuliferous_ has joined #ruby
jschmid has quit [Ping timeout: 240 seconds]
dkam______ has joined #ruby
chimche has quit [Quit: Leaving.]
<diegoviola> once I'm logged in I should be able to jump from page to page with mechanize, right?
<diegoviola> do other actions that require login
DEA7TH has quit [Quit: DEA7TH]
gregf has quit [Quit: WeeChat 1.3]
roshanavand has quit [Ping timeout: 240 seconds]
dwfait has quit [Remote host closed the connection]
shinnya has quit [Ping timeout: 256 seconds]
chimche has joined #ruby
chipotle has quit [Quit: cheerio]
momomomomo has quit [Quit: momomomomo]
dkam______ has quit [Ping timeout: 260 seconds]
dkam______ has joined #ruby
twalla has quit [Quit: leaving]
choke has quit [Ping timeout: 265 seconds]
guacamole has joined #ruby
elaptics is now known as elaptics`away
_orangejuice has quit [Quit: Connection closed for inactivity]
choke has joined #ruby
arup_r has quit []
colegatron has quit [Ping timeout: 260 seconds]
gigetoo has quit [Ping timeout: 264 seconds]
gigetoo has joined #ruby
dkam______ has quit [Ping timeout: 255 seconds]
beanHolez has quit [Remote host closed the connection]
<diegoviola> I can't login via mechanize for some reason
pawnbox has quit [Remote host closed the connection]
dkam______ has joined #ruby
pawnbox has joined #ruby
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wolffles has quit [Quit: wolffles]
Xeago has joined #ruby
beanHolez has joined #ruby
Bloomer has quit [Remote host closed the connection]
Vertroa has joined #ruby
<diegoviola> any ideas what I'm doing wrong here?
dkam______ has quit [Ping timeout: 260 seconds]
<diegoviola> I just get the same login page again
chipotle has joined #ruby
n00bdev has joined #ruby
n00bdev has quit [Client Quit]
dkam______ has joined #ruby
pawnbox has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
pawnbox has joined #ruby
hxegon has joined #ruby
dionysus69 has quit [Quit: dionysus69]
curses has joined #ruby
sergey_makagon has quit []
startupality has quit [Ping timeout: 256 seconds]
yqt has quit [Ping timeout: 245 seconds]
troulouliou_div2 has quit [Remote host closed the connection]
chimche has quit [Quit: Leaving.]
dkam______ has quit [Ping timeout: 260 seconds]
chimche has joined #ruby
darkf has quit [Quit: Leaving]
dkam______ has joined #ruby
startupality has joined #ruby
hxegon has quit [Ping timeout: 264 seconds]
harai has joined #ruby
stannard has quit [Remote host closed the connection]
edwinvdgraaf has joined #ruby
zast has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
chimche has quit [Client Quit]
jbrhbr has quit [Quit: Leaving.]
colegatron has joined #ruby
zast has joined #ruby
chimche has joined #ruby
<al2o3-cr> diegoviola: try `form['LoginForm[username]'] = "username" and form['LoginForm[password]'] = "password"`
frem has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
choke has quit [Ping timeout: 265 seconds]
dkam______ has quit [Ping timeout: 264 seconds]
rsc___ has quit [Quit: rsc___]
jbrhbr has joined #ruby
dkam______ has joined #ruby
choke has joined #ruby
asmodlol has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
momomomomo has joined #ruby
Mirry has quit [Quit: leaving]
asmodlol has joined #ruby
pawnbox has joined #ruby
<diegoviola> al2o3-cr: that did it, thanks
HANJIN has joined #ruby
rdark has quit [Ping timeout: 240 seconds]
FernandoBasso has quit [Quit: Leaving]
dlitvak_ has joined #ruby
tvw has quit [Ping timeout: 255 seconds]
steffkes has joined #ruby
steffkes has joined #ruby
DoubleMalt has quit [Remote host closed the connection]
dopie_ has quit [Quit: Lost terminal]
dopie has joined #ruby
startupality has quit [Quit: startupality]
trautwein has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
northfurr has quit [Quit: northfurr]
dkam______ has quit [Ping timeout: 276 seconds]
northfurr has joined #ruby
northfurr has quit [Client Quit]
curses has quit []
dkam______ has joined #ruby
CihanKaygusuz has quit [Quit: Connection closed for inactivity]
<al2o3-cr> yw
dlitvak has quit [Ping timeout: 272 seconds]
momomomomo has quit [Quit: momomomomo]
Snowy has joined #ruby
tvw has joined #ruby
hobodave has joined #ruby
momomomomo has joined #ruby
<kspencer> Resource interpreted as Document but transferred with MIME type application/json: "http://url.here".
dkam______ has quit [Ping timeout: 240 seconds]
rrichardsr3 has joined #ruby
gusTester has joined #ruby
<zacts> ruby my dear
<zacts> good morning #ruby
hobodave_ has quit [Ping timeout: 255 seconds]
dkam______ has joined #ruby
<kspencer> granted, I want it to come up as just json, so would there be anything else I need to do?
steffkes has quit [Ping timeout: 255 seconds]
choke has quit [Ping timeout: 265 seconds]
guacamole has quit [Ping timeout: 240 seconds]
choke has joined #ruby
rrichard_ has joined #ruby
rrichardsr3 has quit [Ping timeout: 240 seconds]
baweaver has quit [Remote host closed the connection]
beanHolez has quit [Remote host closed the connection]
mjuszczak has quit []
Xeago has quit [Remote host closed the connection]
<diegoviola> I filled in a form via post with mechanize, and that should download a file
dkam______ has quit [Ping timeout: 246 seconds]
zast has quit [Remote host closed the connection]
<diegoviola> but I don't know how to trigger the download via mechanize
juddey has joined #ruby
guacamole has joined #ruby
<diegoviola> should the file just appear in ~/Downloads/ after I submit the form?
dkam______ has joined #ruby
hobodave_ has joined #ruby
m8 has quit [Quit: Sto andando via]
<drbrain> diegoviola: you'll get back a Page object and you'll have to .download it
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
<drbrain> diegoviola: sorry, .save
usershel_ has quit [Read error: Connection reset by peer]
ur5us has joined #ruby
hobodave has quit [Ping timeout: 250 seconds]
futilegames has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
chipotle has quit [Quit: cheerio]
edwinvdgraaf has joined #ruby
<drbrain> diegoviola: see also Mechanize::PluggableParser
<diegoviola> .save just saves the current page
<drbrain> it has documentation for how to use Mechanize::Download to auto-download things
<diegoviola> cool
<diegoviola> will check
dkam______ has quit [Ping timeout: 256 seconds]
<drbrain> diegoviola: the result you get back from submitting the form should have the downloadable content
dkam______ has joined #ruby
<drbrain> result = form.submit; result.save # this doesn't do it?
Snowy has quit [Remote host closed the connection]
certainty has joined #ruby
usershell has joined #ruby
govg has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
<drbrain> if not, that might be that attachment header thing that I don't recall offhand
pawnbox has joined #ruby
<diegoviola> nope, I get the full page with the form again
<drbrain> I think there's another method to check those headers
ur5us has quit [Ping timeout: 255 seconds]
<drbrain> can you gist result.headers.keys?
ropeney_ has quit [Remote host closed the connection]
<diegoviola> sure
edwinvdgraaf has quit [Read error: Connection reset by peer]
chipotle has joined #ruby
farooghkz has joined #ruby
norc has joined #ruby
edwinvdgraaf has joined #ruby
<diegoviola> there is no headers method for result
dlitvak_ has quit [Remote host closed the connection]
farooghkz has left #ruby [#ruby]
<norc> >> i = 2; p eval("i*2")
<ruboto> norc # => 4 ...check link for more (https://eval.in/498818)
<norc> Now this is interesting..
edwinvdgraaf has quit [Read error: Connection reset by peer]
baweaver has joined #ruby
cpup has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 250 seconds]
aegis3121 has quit [Ping timeout: 246 seconds]
FooMunki has quit [Quit: FooMunki]
dlitvak has joined #ruby
djbkd has joined #ruby
edwinvdgraaf has joined #ruby
dlitvak has quit [Remote host closed the connection]
ur5us has joined #ruby
certainty has quit [Ping timeout: 250 seconds]
dkam______ has quit [Ping timeout: 272 seconds]
dlitvak has joined #ruby
dkam______ has joined #ruby
nertzy has joined #ruby
ryez has quit [Ping timeout: 252 seconds]
Xeago has joined #ruby
choke has quit [Ping timeout: 265 seconds]
usershell has quit [Remote host closed the connection]
mjuszczak has joined #ruby
mauricio_ has joined #ruby
mjuszczak has quit [Client Quit]
<drbrain> diegoviola: try result.response.keys
edwinvdgraaf has quit [Read error: Connection reset by peer]
djbkd has quit [Ping timeout: 276 seconds]
<drbrain> ah, Content-Disposition
edwinvdgraaf has joined #ruby
audiodude has joined #ruby
dkam______ has quit [Ping timeout: 265 seconds]
choke has joined #ruby
zeroDivisible has joined #ruby
dkam______ has joined #ruby
cpup has joined #ruby
<drbrain> looking at mechanize, if you get a Content-Disposition header back .save should work, so maybe there's something missing in submitting the form?
<diegoviola> irb(main):025:0> result.response.keys
<diegoviola> => ["date", "server", "x-powered-by", "expires", "cache-control", "pragma", "keep-alive", "connection", "transfer-encoding", "content-type"]
edwinvdgraaf has quit [Read error: Connection reset by peer]
asherdowd has joined #ruby
<diegoviola> hrm
govg has joined #ruby
dlitvak_ has joined #ruby
edwinvdgraaf has joined #ruby
<drbrain> my guess, then, is there's some error in the form
dlitvak has quit [Ping timeout: 260 seconds]
<drbrain> maybe JS is supposed to be computing some hidden field?
davzie is now known as davzie-js-king
davzie-js-king is now known as davzie
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dkam______ has quit [Ping timeout: 245 seconds]
NoTroutAboutIt has joined #ruby
audiodude has quit [Quit: Leaving]
<diegoviola> this is what the agent.page.forms looks like
BSaboia has joined #ruby
<diegoviola> I did form = agent.page.forms.first; form['datainicio'] = "2016-01-01"; form['datafinal'] = "2016-01-07"
<diegoviola> then form.submit
usershell has joined #ruby
aef has quit [Remote host closed the connection]
baweaver has quit [Remote host closed the connection]
<diegoviola> the site uses some datepicker thing for the inputs
<diegoviola> but other than that I have no idea
<diegoviola> <input name="datainicio" type="text" id="datepicker1" size="15" />
<drbrain> and nothing obvious in the HTML indicating something isn't filled out right?
Mon_Ouie has joined #ruby
<drbrain> my next step would be using a browser's inspector to see why it works
aef has joined #ruby
<drbrain> … the easy thing to try is setting the mechanize user-agent to a browser's agent
dopie has quit [Quit: Lost terminal]
dopie has joined #ruby
peteyg has joined #ruby
jud^ has joined #ruby
gusTester1 has joined #ruby
<diegoviola> I'll try that
aegis3121 has joined #ruby
GinoManWorks has joined #ruby
hannelita has quit [Remote host closed the connection]
gusTester1 has left #ruby [#ruby]
ur5us_ has joined #ruby
treehug8_ has joined #ruby
treehug8_ has quit [Remote host closed the connection]
RegulationD has quit [Remote host closed the connection]
NoTroutAboutIt has quit [Ping timeout: 240 seconds]
ReK2 has joined #ruby
spider-mario has joined #ruby
nibbo has quit [Ping timeout: 260 seconds]
treehug8_ has joined #ruby
ruboto_ has joined #ruby
<dangeranger> .
borkdude has joined #ruby
<drbrain> The worst website I've used with mechanize was ADP's, utterly incomprehensible for no discernible reason
hannelita has joined #ruby
Vertroa has joined #ruby
webhat_ has joined #ruby
neanderslob_ has joined #ruby
<diegoviola> drbrain: I tried setting it to 'Mac Safari' but nothing still
badeball_ has joined #ruby
<diegoviola> form.submit will just render the same form
guacamole has quit [Ping timeout: 240 seconds]
chihhsin_ has joined #ruby
shadeslayer_ has joined #ruby
stryek_ has joined #ruby
gregf has joined #ruby
<diegoviola> form.submit.save will save a copy of the index html
ddubs_ has joined #ruby
ljarvis_ has joined #ruby
guacamole has joined #ruby
<havenwood> diegoviola: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/601.4.2 (KHTML, like Gecko) Version/9.0.3 Safari/601.4.2
justinweiss_ has joined #ruby
jxf_ has joined #ruby
treehug88 has quit [Ping timeout: 276 seconds]
ramblinpeck_ has joined #ruby
mroth_ has joined #ruby
S01780_ has joined #ruby
Zarthus_ has joined #ruby
dkam______ has joined #ruby
spastorino_ has joined #ruby
baweaver has joined #ruby
dlitvak_ has quit [Ping timeout: 265 seconds]
choke has quit [Ping timeout: 265 seconds]
avdi_ has joined #ruby
<havenwood> diegoviola: Or another example: Mozilla/5.0 (Windows NT 6.3; Win64, x64; Trident/7.0; rv:11.0) like Gecko
lucas has joined #ruby
<diegoviola> I added that, but I don't think that's the issue
<diegoviola> I still get the same page
<havenwood> mm
rsc___ has joined #ruby
usershell has quit [Remote host closed the connection]
mary5030 has joined #ruby
dstarh has quit [Read error: Connection reset by peer]
DoubleMalt has joined #ruby
thesheff17_ has joined #ruby
<havenwood> diegoviola: I guess there's: Mechanize::AGENT_ALIASES
<havenwood> :)
<havenwood> diegoviola: But yeah, if it's not the agent then that's beside the point.
<diegoviola> I get this
dlitvak has joined #ruby
LBRapid has quit [Ping timeout: 250 seconds]
constantinexvi_ has joined #ruby
SirCmpwn_ has joined #ruby
TomyLobo has quit [Disconnected by services]
Plas has joined #ruby
TakumoKatekari has joined #ruby
TakumoKatekari has quit [Changing host]
TakumoKatekari has joined #ruby
asmodlol has quit [Ping timeout: 255 seconds]
absolutejam_ has joined #ruby
paultreny_ has joined #ruby
xirdtegmezkfoyom has joined #ruby
xirdtegmezkfoyom is now known as ihfablkucnskbfib
ihfablkucnskbfib is now known as TomyLobo
edwardly_ has joined #ruby
edwardly_ has joined #ruby
SirFunk_ has joined #ruby
<diegoviola> cool
nizmow- has joined #ruby
akkad_ has joined #ruby
varesa- has joined #ruby
martinbjeldbak has joined #ruby
Zarthus has quit [Killed (rajaniemi.freenode.net (Nickname regained by services))]
Zarthus_ is now known as Zarthus
jmcc______ has joined #ruby
sgrdrnk has joined #ruby
ur5us has quit [*.net *.split]
gusTester has quit [*.net *.split]
nunchuck has quit [*.net *.split]
varesa has quit [*.net *.split]
skade has quit [*.net *.split]
modin has quit [*.net *.split]
peteyg_ has quit [*.net *.split]
rns has quit [*.net *.split]
gregf_ has quit [*.net *.split]
PlasmaStar has quit [*.net *.split]
jmcc_____ has quit [*.net *.split]
mroth has quit [*.net *.split]
neanderslob has quit [*.net *.split]
spastorino has quit [*.net *.split]
paultreny has quit [*.net *.split]
sumark has quit [*.net *.split]
_joes_ has quit [*.net *.split]
akkad has quit [*.net *.split]
stryek has quit [*.net *.split]
webhat has quit [*.net *.split]
jud has quit [*.net *.split]
null_ref has quit [*.net *.split]
flughafen has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
ReKWiLdS has quit [*.net *.split]
Meow-J has quit [*.net *.split]
Trieste has quit [*.net *.split]
ramblinpeck has quit [*.net *.split]
avdi has quit [*.net *.split]
kalz has quit [*.net *.split]
danzilio has quit [*.net *.split]
goezz has quit [*.net *.split]
SirFunk has quit [*.net *.split]
borkdude_ has quit [*.net *.split]
amitchellbullard has quit [*.net *.split]
jxf has quit [*.net *.split]
absolutejam has quit [*.net *.split]
edwardly has quit [*.net *.split]
lucas_ has quit [*.net *.split]
Takumo has quit [*.net *.split]
johnny56 has quit [*.net *.split]
constantinexvi has quit [*.net *.split]
ddubs has quit [*.net *.split]
justinweiss has quit [*.net *.split]
thesheff17 has quit [*.net *.split]
SirCmpwn has quit [*.net *.split]
Nightmare has quit [*.net *.split]
anekos has quit [*.net *.split]
martinbjeldbak_ has quit [*.net *.split]
Vile` has quit [*.net *.split]
Omni_ has quit [*.net *.split]
S01780 has quit [*.net *.split]
chihhsin has quit [*.net *.split]
devster31 has quit [*.net *.split]
sugardrunk has quit [*.net *.split]
Nanuq has quit [*.net *.split]
greister has quit [*.net *.split]
kriskropd has quit [*.net *.split]
nizmow has quit [*.net *.split]
ljarvis has quit [*.net *.split]
shadeslayer has quit [*.net *.split]
badeball has quit [*.net *.split]
St1gma has quit [*.net *.split]
cookiez has quit [*.net *.split]
Dimik has joined #ruby
nizmow- is now known as nizmow
edwardly_ is now known as edwardly
Omni- has joined #ruby
choke has joined #ruby
_joes_ has joined #ruby
nunchuck has joined #ruby
spastorino_ is now known as spastorino
NoTroutAboutIt has joined #ruby
dlitvak has quit [Remote host closed the connection]
sumark has joined #ruby
Plas is now known as PlasmaStar
axsuul has quit [Ping timeout: 272 seconds]
flughafen has joined #ruby
dkam______ has quit [Ping timeout: 256 seconds]
asmodlol has joined #ruby
cookiez has joined #ruby
Nanuq has joined #ruby
ramblinpeck_ is now known as ramblinpeck
LBRapid has joined #ruby
varesa- is now known as varesa
pandaant has quit [Remote host closed the connection]
johnny56_ has joined #ruby
Nightmare has joined #ruby
devster31 has joined #ruby
dlitvak has joined #ruby
modin has joined #ruby
Trieste has joined #ruby
Meow-J_ has joined #ruby
dkam______ has joined #ruby
mroth_ is now known as mroth
anekos has joined #ruby
baweaver has quit [Ping timeout: 255 seconds]
rns has joined #ruby
ddfreyne has joined #ruby
arup_r has joined #ruby
<apeiros> sublime's yaml highlighting is really weird
St1gma has joined #ruby
einarj has joined #ruby
arup_r has quit [Client Quit]
jxf_ is now known as jxf
<adaedra> No, it's sublime
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
greister has joined #ruby
* adaedra runs towards the exit
M-Kodo has quit [Ping timeout: 260 seconds]
M-mistake has quit [Ping timeout: 260 seconds]
thesheff17_ is now known as thesheff17
davejlong has quit [Remote host closed the connection]
davejlong has joined #ruby
<diegoviola> also, if it's a xls file (binary), am I supposed to see anything about this file when I do form.submit?
einarj has quit [Read error: Connection reset by peer]
Vertroa has joined #ruby
jud^ is now known as jud
jud has quit [Changing host]
jud has joined #ruby
einarj has joined #ruby
<diegoviola> wait, what
avdi_ is now known as avdi
Vile` has joined #ruby
ziyadb has joined #ruby
aef has quit [Read error: Connection reset by peer]
<diegoviola> [diego@myhost ~]$ file Downloads/20160107204229.xls
<diegoviola> Downloads/20160107204229.xls: HTML document, UTF-8 Unicode (with BOM) text, with very long lines, with no line terminators
nofxx has quit [Ping timeout: 240 seconds]
danzilio has joined #ruby
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
kriskropd has joined #ruby
<diegoviola> XLS == HTML... whaaat?
eggoez has joined #ruby
dkam______ has quit [Ping timeout: 255 seconds]
DonOtreply has joined #ruby
amitchellbullard has joined #ruby
asmodlol has quit [Ping timeout: 264 seconds]
SirCmpwn_ is now known as SirCmpwn
<drbrain> diegoviola: if it is an unknown content-type you'll get a Mechanize::File (generic type) instead of Mechanize::Page
choke_ has joined #ruby
<adaedra> diegoviola: magic is far away from perfect.
dkam______ has joined #ruby
<adaedra> diegoviola: but look anyway, it can also be that you downloaded an error page.
ixti has joined #ruby
kalz has joined #ruby
choke_ has quit [Read error: Connection reset by peer]
dlitvak has quit [Remote host closed the connection]
choke has quit [Ping timeout: 265 seconds]
smactive has joined #ruby
nibbo has joined #ruby
benlovell has joined #ruby
asmodlol has joined #ruby
Wsewolod has quit [Read error: Network is unreachable]
Wsewolod has joined #ruby
arup_r has joined #ruby
Meow-J_ is now known as Meow-J
M-Kodo has joined #ruby
choke has joined #ruby
noname has quit [Ping timeout: 256 seconds]
dkam______ has quit [Ping timeout: 260 seconds]
smbenfield has quit [Ping timeout: 240 seconds]
dkam______ has joined #ruby
smactive has quit [Ping timeout: 245 seconds]
kirun has joined #ruby
sigurding has quit [Quit: sigurding]
nerfando has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
devbug has quit [Ping timeout: 265 seconds]
<diegoviola> yeah I don't know what's going on
davejlong has quit [Remote host closed the connection]
duckpuppy has joined #ruby
<diegoviola> form.submit.save returns the same html page
<diegoviola> where I'm supposed to add the date range to get the file
NoTroutAboutIt has quit [Ping timeout: 250 seconds]
benlovell has quit [Ping timeout: 272 seconds]
benlovell has joined #ruby
cschneid has quit [Ping timeout: 250 seconds]
dotix has joined #ruby
dkam______ has quit [Ping timeout: 245 seconds]
davejlong has joined #ruby
aef has joined #ruby
hxegon_ has joined #ruby
dkam______ has joined #ruby
Xeago has quit [Remote host closed the connection]
mauricio_ has quit [Ping timeout: 252 seconds]
al2o3-cr has joined #ruby
cschneid has joined #ruby
FernandoBasso has joined #ruby
[Butch]_ has joined #ruby
mjuszczak has joined #ruby
mjuszczak has quit [Max SendQ exceeded]
mjuszczak has joined #ruby
dotix has quit [Ping timeout: 264 seconds]
choke has quit [Ping timeout: 265 seconds]
choke has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
dkam______ has quit [Ping timeout: 240 seconds]
edwinvdgraaf has joined #ruby
[Butch] has quit [Ping timeout: 255 seconds]
[Butch]_ is now known as [Butch]
duckpuppy has quit [Ping timeout: 240 seconds]
dkam______ has joined #ruby
stannard has quit [Remote host closed the connection]
synthroid has quit [Remote host closed the connection]
al2o3-cr has quit [Read error: Connection reset by peer]
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
wrilain has quit [Remote host closed the connection]
Oog has joined #ruby
nixmaniack has joined #ruby
al2o3-cr has joined #ruby
minimalism has joined #ruby
dlitvak has joined #ruby
<Oog> can someone explain to me why last = city_parts.pop; city_parts[-1] += " #{last}" gives different result in city_parts than city_parts[-2] += " #{city_parts.pop}" - it makes no sense...
futilegames has quit [Quit: futilegames]
eljimmy has joined #ruby
mrfoto has joined #ruby
dkam______ has quit [Ping timeout: 245 seconds]
synthroid has joined #ruby
dkam______ has joined #ruby
bkxd has joined #ruby
<apeiros> Oog: in your latter example, the .pop must be executed before ruby can run +=
<apeiros> so essentially the latter example is like the former, but with += on -2 instead of -1
choke has quit [Read error: Connection reset by peer]
choke_ has joined #ruby
<Oog> so that is what i thought... so then i tried -1 and it did somethign real screwy
<Oog> city_parts[-1] += " #{city_parts.pop}" is also different...
<apeiros> yup
devbug has joined #ruby
<Oog> head -> desk
<apeiros> and that's because a += b is not a single operation. it expands to a = a + b
<apeiros> expand your expression and think about it, especially about the required execution order.
M-Kodo has quit [Quit: node-irc says goodbye]
<Oog> ha ok i see
<Oog> thanks
<apeiros> yw
mary5030 has quit [Remote host closed the connection]
meatchicken has joined #ruby
M-Kodo has joined #ruby
xxneolithicxx has joined #ruby
xxneolithicxx has quit [Max SendQ exceeded]
craigp has quit []
xxneolithicxx has joined #ruby
dkam______ has quit [Ping timeout: 260 seconds]
weemsledeux has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
dkam______ has joined #ruby
Oog has quit []
nerfando has joined #ruby
nerfando has quit [Max SendQ exceeded]
djbkd has joined #ruby
yqt has joined #ruby
nerfando has joined #ruby
pawnbox has quit [Remote host closed the connection]
sdothum has joined #ruby
pawnbox has joined #ruby
M-mistake has joined #ruby
choke_ has quit [Read error: Connection reset by peer]
dangeranger has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
davedev24 has joined #ruby
<norc> Okay, I really want a&.[0] to work... :S
foureight84 has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
<norc> a&.[](0) just looks plain silly.
mostlybadfly has quit [Quit: Connection closed for inactivity]
choke has joined #ruby
edwinvdgraaf has joined #ruby
dkam______ has quit [Ping timeout: 276 seconds]
dlitvak has quit [Remote host closed the connection]
dkam______ has joined #ruby
guacamol_ has joined #ruby
djbkd has quit [Ping timeout: 240 seconds]
guacamole has quit [Ping timeout: 245 seconds]
duckpuppy has joined #ruby
<ljarvis_> it's an antipattern anyway
meatchicken has quit [Quit: meatchicken]
futilegames has joined #ruby
pawnbox has quit [Ping timeout: 256 seconds]
choke has quit [Ping timeout: 265 seconds]
hxegon has joined #ruby
xet7 has quit [Read error: Connection reset by peer]
DonOtreply has quit [Quit: DonOtreply]
dkam______ has quit [Ping timeout: 265 seconds]
snockerton has joined #ruby
amclain_ has joined #ruby
stannard has joined #ruby
hxegon_ has quit [Read error: Connection reset by peer]
dkam_______ has joined #ruby
nixmaniack has quit [Read error: Connection reset by peer]
nixmaniack has joined #ruby
nixmaniack has quit [Changing host]
nixmaniack has joined #ruby
guacamole has joined #ruby
asherdowd has left #ruby [#ruby]
amclain has quit [Ping timeout: 240 seconds]
momomomomo_ has joined #ruby
choke has joined #ruby
mfb2_ has quit [Remote host closed the connection]
momomomomo has quit [Ping timeout: 265 seconds]
momomomomo_ is now known as momomomomo
SenpaiSilver has quit [Quit: Leaving]
dlitvak has joined #ruby
baweaver has joined #ruby
RegulationD has joined #ruby
yfeldblum has joined #ruby
cyrus_mc has joined #ruby
M-mistake has quit [Quit: node-irc says goodbye]
guacamol_ has quit [Ping timeout: 256 seconds]
DonOtreply has joined #ruby
dkam_______ has quit [Ping timeout: 240 seconds]
<cyrus_mc> Developing a simple ruby script, requires json. Script complains no such file to load -- json. But the json rubygem is installed. Another system I have runs this script no problem. Compared packages installed, versions, etc they all seem to match
mjuszczak has quit []
mfb2 has joined #ruby
futilegames has quit [Quit: futilegames]
dkam_______ has joined #ruby
harai54 has joined #ruby
pdoherty has quit [Ping timeout: 240 seconds]
dlitvak has quit [Remote host closed the connection]
scottj has quit [Quit: leaving]
<havenwood> cyrus_mc: What version of Ruby? JSON ships with the stdlib these days.
harai has quit [Ping timeout: 240 seconds]
<cyrus_mc> this is on a centos 6 machine so 1.8.7
einarj has quit [Read error: Connection reset by peer]
<havenwood> cyrus_mc: In 1.8 you used to have to: require 'rubygems'
einarj has joined #ruby
eljimmy has quit [Quit: This computer has gone to sleep]
HANJIN has quit [Quit: HANJIN]
mdw has joined #ruby
<cyrus_mc> havenwood: k. wondeirng why it is working on another machine without that require (same OS, same ruby, etc)
<cyrus_mc> but adding require 'rubygems' worked
dlitvak has joined #ruby
beanHolez has joined #ruby
haraigo has joined #ruby
<shevy> centos - the snail among distributions!
dkam_______ has quit [Ping timeout: 260 seconds]
einarj_ has joined #ruby
lucasb has quit [Quit: leaving]
dkam_______ has joined #ruby
solocshaw has joined #ruby
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
harai54 has quit [Ping timeout: 256 seconds]
einarj has quit [Ping timeout: 250 seconds]
mistermo_ has joined #ruby
al2o3-cr has quit [Ping timeout: 255 seconds]
baweaver has quit [Remote host closed the connection]
<norc> ljarvis_: What do you mean?
al2o3-cr has joined #ruby
freerobby has quit [Quit: Leaving.]
dkam_______ has quit [Ping timeout: 246 seconds]
treehug8_ has quit [Quit: Textual IRC Client: www.textualapp.com]
Pumukel has joined #ruby
dkam_______ has joined #ruby
treehug88 has joined #ruby
bb010g has joined #ruby
M-mistake has joined #ruby
DonOtreply has quit [Quit: DonOtreply]
mistermo_ has quit [Ping timeout: 240 seconds]
futilegames has joined #ruby
dkam_______ has quit [Ping timeout: 264 seconds]
duckpuppy has quit [Ping timeout: 272 seconds]
Pumukel has quit [Ping timeout: 255 seconds]
CorySimmons has joined #ruby
dkam_______ has joined #ruby
Derailed has quit [Quit: ZNC - http://znc.in]
Pumukel has joined #ruby
Derailed has joined #ruby
choke has quit [Ping timeout: 265 seconds]
dlitvak has quit [Remote host closed the connection]
M-Kodo has quit [Ping timeout: 256 seconds]
dangeranger has joined #ruby
beanHolez has quit [Remote host closed the connection]
choke has joined #ruby
dkam_______ has quit [Ping timeout: 245 seconds]
dkam_______ has joined #ruby
dlitvak has joined #ruby
despai has joined #ruby
Xeago has joined #ruby
bkxd has joined #ruby
rodfersou has quit [Remote host closed the connection]
SenpaiSilver has joined #ruby
guacamol_ has joined #ruby
guacamole has quit [Ping timeout: 272 seconds]
dlitvak has quit [Remote host closed the connection]
skcin7 has joined #ruby
dopie has quit [Quit: Lost terminal]
eljimmy has joined #ruby
dpg_ has joined #ruby
dopie has joined #ruby
dmr8 has joined #ruby
antgel has quit [Ping timeout: 265 seconds]
dkam_______ has quit [Ping timeout: 255 seconds]
yardenbar has quit [Ping timeout: 272 seconds]
gp5st_ has joined #ruby
gregf1 has joined #ruby
dkam_______ has joined #ruby
<gp5st_> anyone familar with authenticating against a postgres server using gssapi?
tvw has quit [Remote host closed the connection]
arup_r has quit [Remote host closed the connection]
Vertroa has joined #ruby
arup_r has joined #ruby
bkxd has quit [Ping timeout: 265 seconds]
baweaver has joined #ruby
bluOxigen has quit [Ping timeout: 260 seconds]
arup_r has quit [Client Quit]
choke has quit [Ping timeout: 265 seconds]
mrfoto has quit []
bkxd has joined #ruby
baweaver has quit [Remote host closed the connection]
nerfando has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ta0_ has joined #ruby
dkam_______ has quit [Ping timeout: 260 seconds]
al2o3-cr has quit [Ping timeout: 260 seconds]
pdoherty has joined #ruby
dkam_______ has joined #ruby
choke has joined #ruby
davejlong has quit [Remote host closed the connection]
ta0 has quit [Ping timeout: 250 seconds]
Snowy has joined #ruby
ruboto_ is now known as ruboto
dotix has joined #ruby
dotix has quit [Changing host]
dotix has joined #ruby
bkxd has quit [Ping timeout: 264 seconds]
beanHolez has joined #ruby
benlovell has quit [Ping timeout: 276 seconds]
nixmaniack has quit [Ping timeout: 250 seconds]
M-mistake has quit [Quit: node-irc says goodbye]
Vertroa_ has joined #ruby
dkam_______ has quit [Ping timeout: 272 seconds]
davejlong has joined #ruby
pawnbox has joined #ruby
dkam_______ has joined #ruby
guacamole has joined #ruby
Pumukel has quit [Remote host closed the connection]
momomomomo has quit [Quit: momomomomo]
zapata has joined #ruby
Vertroa has quit [Ping timeout: 265 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<diegoviola> drbrain, havenwood
guacamol_ has quit [Ping timeout: 264 seconds]
<diegoviola> I was able to get the file with mechanize
bithon has quit [Quit: WeeChat 1.3]
emilkarl has joined #ruby
<diegoviola> this worked for me
certainty has joined #ruby
dkam_______ has quit [Ping timeout: 256 seconds]
jbrhbr has quit [Quit: Leaving.]
sosuniverse has joined #ruby
pawnbox has quit [Ping timeout: 240 seconds]
asmodlol has quit [Ping timeout: 240 seconds]
M-Kodo has joined #ruby
dpg_ has quit [Read error: Connection reset by peer]
Macaveli has joined #ruby
dkam_______ has joined #ruby
al2o3-cr has joined #ruby
asmodlol has joined #ruby
aegis3121 has quit [Ping timeout: 265 seconds]
weemsledeux has joined #ruby
Xeago has quit [Remote host closed the connection]
foureight84_ has joined #ruby
certainty has quit [Ping timeout: 245 seconds]
djbkd has joined #ruby
<shevy> diegoviola hehe what is the require 'pry' doing there
dkam_______ has quit [Ping timeout: 245 seconds]
baweaver has joined #ruby
<diegoviola> shevy: that helps me to debug things
dkam_______ has joined #ruby
baweaver has quit [Remote host closed the connection]
dopie has quit [Quit: Lost terminal]
momomomomo has joined #ruby
dopie has joined #ruby
foureight84 has quit [Ping timeout: 272 seconds]
choke has quit [Ping timeout: 265 seconds]
CorySimmons has quit [Quit: Bye!]
djbkd has quit [Ping timeout: 260 seconds]
dkam_______ has quit [Ping timeout: 250 seconds]
mary5030 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
dkam_______ has joined #ruby
choke has joined #ruby
ta0_ has quit [Ping timeout: 245 seconds]
Coldblackice has joined #ruby
yfeldblum has quit [Ping timeout: 240 seconds]
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
momomomomo_ has joined #ruby
hxegon is now known as hxegon_AFK
blackgoat has joined #ruby
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
mary5030 has quit [Ping timeout: 255 seconds]
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mistermocha has quit [Remote host closed the connection]
dkam_______ has quit [Ping timeout: 260 seconds]
dkam_______ has joined #ruby
roshanavand has joined #ruby
dlitvak has joined #ruby
mistermocha has joined #ruby
Xeago has joined #ruby
lmao_ayy has joined #ruby
roshanavand has quit [Remote host closed the connection]
Dimik has quit [Ping timeout: 276 seconds]
lmao_ayy has left #ruby [#ruby]
dkam_______ has quit [Ping timeout: 240 seconds]
mistermocha has quit [Remote host closed the connection]
Majora has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
<Majora> Hi everyone ^^
edwinvdgraaf has joined #ruby
baweaver has joined #ruby
j_mcnally has joined #ruby
roshanavand has joined #ruby
M-Kodo has quit [Quit: node-irc says goodbye]
dlitvak has quit [Remote host closed the connection]
choke has quit [Ping timeout: 265 seconds]
yeticry has joined #ruby
choke has joined #ruby
dlitvak has joined #ruby
* Majora waves to choke
baweaver has quit [Remote host closed the connection]
duckpuppy has joined #ruby
malconis_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
teoric has joined #ruby
yeticry_ has quit [Ping timeout: 240 seconds]
jackjackdripper has quit [Quit: Leaving.]
malconis has joined #ruby
dmr8 has quit [Quit: Leaving]
synthroid has quit []
dlitvak has quit [Remote host closed the connection]
hxegon_AFK is now known as hxegon
dlitvak_ has joined #ruby
Xeago has quit [Remote host closed the connection]
baweaver has joined #ruby
northfurr has joined #ruby
codecop has quit [Remote host closed the connection]
roshanavand has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
norc has quit [Ping timeout: 252 seconds]
fmcgeough has quit [Quit: fmcgeough]
dlitvak has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
edwinvdgraaf has joined #ruby
roshanavand has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
beanHolez has quit [*.net *.split]
pdoherty has quit [*.net *.split]
amclain_ has quit [*.net *.split]
stannard has quit [*.net *.split]
cschneid has quit [*.net *.split]
Wsewolod has quit [*.net *.split]
ixti has quit [*.net *.split]
eggoez has quit [*.net *.split]
ddfreyne has quit [*.net *.split]
Nightmare has quit [*.net *.split]
flughafen has quit [*.net *.split]
martinbjeldbak has quit [*.net *.split]
constantinexvi_ has quit [*.net *.split]
avdi has quit [*.net *.split]
Zarthus has quit [*.net *.split]
borkdude has quit [*.net *.split]
rrichard_ has quit [*.net *.split]
colegatron has quit [*.net *.split]
babblebre has quit [*.net *.split]
avenj has quit [*.net *.split]
blackms has quit [*.net *.split]
Ishido has quit [*.net *.split]
blub has quit [*.net *.split]
llua has quit [*.net *.split]
craysiii has quit [*.net *.split]
mduca has quit [*.net *.split]
ytti has quit [*.net *.split]
Coraline has quit [*.net *.split]
amoeba_ has quit [*.net *.split]
dfoolz has quit [*.net *.split]
Kabaka has quit [*.net *.split]
AustinMatherne has quit [*.net *.split]
malconis has quit [Write error: Broken pipe]
AustinMatherne has joined #ruby
edwinvdgraaf has quit [Read error: Connection reset by peer]
emilkarl has joined #ruby
Kabaka has joined #ruby
beanHolez has joined #ruby
pdoherty has joined #ruby
stannard has joined #ruby
amclain_ has joined #ruby
cschneid has joined #ruby
Wsewolod has joined #ruby
ixti has joined #ruby
eggoez has joined #ruby
ddfreyne has joined #ruby
Nightmare has joined #ruby
flughafen has joined #ruby
constantinexvi_ has joined #ruby
avdi has joined #ruby
Zarthus has joined #ruby
borkdude has joined #ruby
rrichard_ has joined #ruby
colegatron has joined #ruby
babblebre has joined #ruby
avenj has joined #ruby
blackms has joined #ruby
blub has joined #ruby
llua has joined #ruby
craysiii has joined #ruby
mduca has joined #ruby
ytti has joined #ruby
Coraline has joined #ruby
dfoolz has joined #ruby
amoeba_ has joined #ruby
edwinvdgraaf has joined #ruby
martinbjeldbak has joined #ruby
avdi has quit [Max SendQ exceeded]
rrichard_ has quit [Max SendQ exceeded]
constantinexvi_ has quit [Max SendQ exceeded]
eggoez has quit [Max SendQ exceeded]
cschneid has quit [Max SendQ exceeded]
teoric has quit [Quit: WeeChat 1.3]
constantinexvi has joined #ruby
despai has quit [Quit: This computer has gone to sleep]
cschneid has joined #ruby
dotix has quit [Remote host closed the connection]
* Majora waves to Coraline
avdi has joined #ruby
rrichardsr3 has joined #ruby
dlitvak has quit [Remote host closed the connection]
rrichardsr3 has quit [Max SendQ exceeded]
eggoez has joined #ruby
Vertroa_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
futilegames has quit [Ping timeout: 264 seconds]
scripore has quit [Quit: This computer has gone to sleep]
rrichardsr3 has joined #ruby
underplank has joined #ruby
Motoki has joined #ruby
Guest85414______ has quit [Ping timeout: 260 seconds]
knowtheory has quit [Ping timeout: 260 seconds]
nomadicoder has quit [Ping timeout: 260 seconds]
<diegoviola> is EOFError sort of like a timeout?
mahk has quit [Ping timeout: 260 seconds]
frode15243 has quit [Ping timeout: 260 seconds]
avahey has quit [Ping timeout: 260 seconds]
jmhmccr has quit [Ping timeout: 260 seconds]
futilegames has joined #ruby
despai has joined #ruby
<adaedra> It's End Of File
<diegoviola> ok
<diegoviola> Net::HTTP::Persistent::Error: too many connection resets (due to end of file reached - EOFError) after 1 requests on 46982896731480, last used 2.556012308 seconds ago
<diegoviola> I have no idea why I would get this
Jackneill has quit [Ping timeout: 260 seconds]
knowtheory has joined #ruby
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
gp5st_ has quit [Quit: gp5st_]
nomadicoder has joined #ruby
err_ok has quit [Ping timeout: 260 seconds]
Guest85414______ has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
malconis has joined #ruby
mahk has joined #ruby
brunto has joined #ruby
Motoki has quit []
frode15243 has joined #ruby
err_ok has joined #ruby
avahey has joined #ruby
jmhmccr has joined #ruby
Vertroa has joined #ruby
underplank has quit [Ping timeout: 276 seconds]
<kspencer> If I have a script that is supposed to return info via webpage, another that grabs from that webpage, (note that the webpage is via ruby script), how do I get it to actually try and return the info, as I'm getting a 404 otherwise, yet via browser it works
n_blownapart has joined #ruby
choke has quit [Ping timeout: 265 seconds]
futilegames_ has joined #ruby
pdoherty has quit [Quit: Leaving]
futilegames has quit [Ping timeout: 265 seconds]
futilegames_ is now known as futilegames
<shevy> perhaps your browser request sends more information that your ruby-script based request
davejlong has quit []
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> *than
bkxd has joined #ruby
<kspencer> you talking like request headers?
viperman has quit [Ping timeout: 272 seconds]
<shevy> dunno if that is the only component that is sent
JakFrist has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skcin7 has quit [Ping timeout: 250 seconds]
<shevy> I remember that I once used mechanize for some website where my script did not work until I made some changes and added additional information
<drbrain> diegoviola: the HTTP spec only allows you to retry idempotent requests (so not POST)
viperman has joined #ruby
Ox0dea has joined #ruby
choke has joined #ruby
<drbrain> I think ruby 2.3 doesn't have the problem by performing a select() or something
KineticX has quit [Remote host closed the connection]
bkxd has quit [Ping timeout: 240 seconds]
kalopsian has quit [Ping timeout: 260 seconds]
smactive has joined #ruby
kalopsian has joined #ruby
gatman has joined #ruby
davedev2_ has joined #ruby
CihanKaygusuz has joined #ruby
davedev24 has quit [Ping timeout: 260 seconds]
northfurr has quit [Quit: northfurr]
yardenbar has joined #ruby
devbug has quit [Ping timeout: 250 seconds]
DoubleMalt has quit [Remote host closed the connection]
Cihan has quit []
mistermocha has quit [Remote host closed the connection]
charliesome has joined #ruby
CloCkWeRX has joined #ruby
Cihan has joined #ruby
clamstar has quit [Ping timeout: 250 seconds]
CloCkWeRX has left #ruby [#ruby]
Snowy has quit [Remote host closed the connection]
choke has quit [Ping timeout: 265 seconds]
choke has joined #ruby
ramortegui has quit [Quit: Ex-Chat]
mistermocha has joined #ruby
skcin7 has joined #ruby
pestle has quit [Quit: Ciao.]
djbkd has joined #ruby
pestle has joined #ruby
jackjackdripper has joined #ruby
devbug has joined #ruby
cyrus_mc has quit [Ping timeout: 256 seconds]
dlitvak has joined #ruby
edj has joined #ruby
clamstar has joined #ruby
momomomomo has quit [Quit: momomomomo]
edj is now known as Guest24140
emilkarl has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
choke has quit [Ping timeout: 265 seconds]
Macaveli has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
casadei has joined #ruby
choke has joined #ruby
<Guest24140> where do i go to talk to people who use ruby motion?
rrichardsr3 has quit [Quit: Apparantly my attempt to stay awake has failed...]
<Guest24140> the irc is empty
kalopsian has quit [Ping timeout: 240 seconds]
djbkd has quit [Ping timeout: 276 seconds]
<havenwood> Guest24140: Whatcha wondering?
<Guest24140> i have like 10 questions
xxneolithicxx has quit [Quit: Leaving.]
yardenbar has quit [Ping timeout: 272 seconds]
einarj_ has quit [Remote host closed the connection]
troulouliou_div2 has joined #ruby
JDiPierro has joined #ruby
dlitvak has quit [Remote host closed the connection]
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
casadei has quit [Read error: Connection reset by peer]
<havenwood> Guest24140: Seems there are 19 folk in #rubymotion but yeah it might take a while for a response with so few.
casadei has joined #ruby
<havenwood> Guest24140: Ask any Ruby questions here! You might not get such great answers to RubyMotion-specific stuff here but maybe worth a shot?
Vertroa has joined #ruby
<Guest24140> havenwood: i guess my first question is, is there a rails equivalent on rubymotion,like does it have a back end or is it only for front end and it needs and if it does need rails for a back end would there be a way to do location based services?
baweaver has quit [Remote host closed the connection]
centrx has joined #ruby
<Guest24140> using phone location
choke has quit [Ping timeout: 265 seconds]
scripore has joined #ruby
underplank has joined #ruby
dlitvak has joined #ruby
<havenwood> Guest24140: AFAIK it doesn't have an API component, that's up to you. You might like the new Rails 5 "--api" mode (or rails-api gem in the now) or there are plenty of other Ruby tools for making APIs.
dlitvak has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
choke has joined #ruby
ta0 has joined #ruby
antgel has joined #ruby
mezcan has quit [Remote host closed the connection]
<Guest24140> havenwood: does that mean i can use rails to create the backend?
underplank has quit [Client Quit]
<Guest24140> havenwood: will rails be able to interact with the phone functions like camera?
jbrhbr has joined #ruby
mdw has quit [Quit: Sleeping Zzzzz]
dlitvak has joined #ruby
benlovell has joined #ruby
<Guest24140> havenwood: im a bit of a novice
underplank has joined #ruby
duckpuppy has quit [Ping timeout: 256 seconds]
dlitvak has quit [Remote host closed the connection]
nerfando has joined #ruby
mdw has joined #ruby
momomomomo has joined #ruby
nerfando has quit [Max SendQ exceeded]
benlovell has quit [Client Quit]
nerfando has joined #ruby
baweaver has joined #ruby
<havenwood> Guest24140: Like a REST API for a regular iOS app (or whatever you're making).
maikowblue has quit [Ping timeout: 265 seconds]
<Guest24140> havenwood: i think so?
momomomomo has quit [Client Quit]
mistermo_ has joined #ruby
<havenwood> Guest24140: Here's a random example from the interwebs that I'm not familiar with but maybe it'd give you some ideas?: http://lucatironi.net/tutorial/2013/05/05/ruby_rails_rubymotion_ios_app_authentication_devise_tutorial_part_one/
<Guest24140> yes
choke has quit [Ping timeout: 265 seconds]
mary5030 has joined #ruby
<havenwood> Guest24140: You could make a JSON REST API with rails-api, grape, or even just sinatra or roda, etc. That's a challenge in itself but worth learning.
dkam_______ has joined #ruby
mary5030_ has joined #ruby
<Guest24140> havenwood: would i be able to use the same database for andriod,ios,and desktop?
<havenwood> Guest24140: depends
dlitvak has joined #ruby
brunto has quit [Ping timeout: 245 seconds]
<Guest24140> havenwood: something like a location or a post
<havenwood> Guest24140: typically same DB but sometimes different API endpoints
<havenwood> depends on your app needs
<Guest24140> havenwood: api = brain without memory right?
kalopsian has joined #ruby
<havenwood> Guest24140: Have any prior Rails experience or coming at this fresh?
rodfersou has joined #ruby
mistermo_ has quit [Ping timeout: 256 seconds]
<Guest24140> havenwood: im doing the rails tutorial right now lol. I just got this idea and i have to make it.
zenlot1 has joined #ruby
choke has joined #ruby
<Guest24140> havenwood: im doing the rails tutorial right now lol. I just got this idea and
mary5030 has quit [Ping timeout: 250 seconds]
<Guest24140> havenwood: I read a book on ruby and I get that mainly
zenlot has quit [Ping timeout: 260 seconds]
<Guest24140> havenwood: I just had the clarify that the idea was even possible
dkam_______ has quit [Ping timeout: 246 seconds]
scripore has quit [Quit: This computer has gone to sleep]
<havenwood> Guest24140: I'm not sure if you'll have a better time with Rails API or Rails with Grape or something simpler like Sinatra. I'd suggest reading everything you can get ahold of about REST APIs and maybe some Sinatra and Grape tutorials to see if you grok it.
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
beanHolez has quit [Remote host closed the connection]
<havenwood> Guest24140: Maybe make a simple Sinatra app and play with modifying it. Then once you're comfortable with that look up some tutorials on making an API with Sinatra and test that out.
<Guest24140> havenwood: they'll all work with motion? I heard sinatra was for smaller projects. This one is on the larger side.
<havenwood> Guest24140: There is more than one way to do it, which is great but tough on beginners!
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
krobzaur has quit [Ping timeout: 276 seconds]
<havenwood> Guest24140: Sinatra makes nice APIs. Up to you!
kalopsian has quit [Ping timeout: 272 seconds]
dkam_______ has joined #ruby
<havenwood> Guest24140: Here's a look at some Hello, Worlds! in various Rack adapters, for what it's worth: https://github.com/luislavena/bench-micro
<havenwood> Guest24140: Compare the implementations here: https://github.com/luislavena/bench-micro/tree/master/apps
nfk|laptop has joined #ruby
stannard has quit [Remote host closed the connection]
underplank has quit [Quit: underplank]
dlitvak has quit [Remote host closed the connection]
<Majora> Ox0dea: ayy
<Ox0dea> What it do, Charlie?
<Majora> Bruh. Could you explain some code to me.
<Ox0dea> The likelihood thereof is quite high.
<Majora> Ox0dea: The likelihood of you being high is quite high -_-
<Ox0dea> You can't prove it!
rjs90 has joined #ruby
<Majora> xP
<Majora> So this chick made a tic tac toe game.
<Majora> I kinda wanted to model mine after hers.
<Majora> good idea? bad idea?
<Ox0dea> Looks pretty good.
<Ox0dea> winning_numbers = [ [0, 1, 2], [3, 4, 5], [6, 7, 8], [0, 3, 6], [1, 4, 7], [2, 5, 8], [0, 4, 8], [2, 4, 6] ]
underplank has joined #ruby
<Ox0dea> As you can see, she benefited from using a flat array to represent the board.
dkam_______ has quit [Ping timeout: 276 seconds]
tubuliferous_ has quit [Read error: Connection reset by peer]
paradisaeidae has joined #ruby
<Majora> Did she?
<Ox0dea> Yes?
<Ox0dea> That [0, 1, 2] would be [[0, 0], [0, 1], [0, 2]] if she hadn't.
<Ox0dea> Or perhaps something even crazier.
rodfersou has quit [Ping timeout: 240 seconds]
DonOtreply has joined #ruby
<Majora> Oh I get it.
<Majora> that makes sense.
rodfersou has joined #ruby
<Majora> The logic for her "check_win" method looks really complicated...
<Ox0dea> It's... excessive.
<Majora> Ox0dea: is it?
<Ox0dea> Yeah.
kalopsian has joined #ruby
skcin7 has joined #ruby
n_blownapart has quit []
<Ox0dea> She's also using 1 and 2 as "booleans" which is terrifying.
<Majora> Alright... Well I'm going to try and recreate her code.
<Ox0dea> Majora: No, don't do that.
<Majora> Ox0dea: You just said I could model mine after hers -__-
KineticX has joined #ruby
akkad_ is now known as akkad
<Ox0dea> Majora: "Recreate" is a scary word.
<Ox0dea> It invokes images of copying and pasting.
<Ox0dea> *evokes
<Ox0dea> *imagery
akkad` is now known as akkad
<Ox0dea> Can I even English?
xet7 has joined #ruby
<Majora> Ox0dea: Considering it's my first time... I don't see why it's such a bad thing.
<Ox0dea> Majora: Copying and pasting?!
Wsewolod has quit [Ping timeout: 240 seconds]
<Majora> Well no but using the same techniques in my own code
<Ox0dea> Which techniques?
<Majora> Well the way she sets up her board... The way she marks a spot on the board...
Prominent has joined #ruby
rjs90 has left #ruby [#ruby]
DonOtreply has quit [Ping timeout: 265 seconds]
kalopsian has quit [Ping timeout: 240 seconds]
<Majora> Ox0dea: What do you suggest I do then?
nofxx has quit [Ping timeout: 272 seconds]
nofxx has joined #ruby
nofxx has quit [Changing host]
nofxx has joined #ruby
futilegames has quit [Ping timeout: 260 seconds]
<Ox0dea> Majora: I suggest you ensure that this venture proves to have been a learning experience.
bkxd has joined #ruby
<Majora> Ox0dea: What in gods name does that mean.
<Majora> English man, English.
choke has quit [Ping timeout: 265 seconds]
KineticX has quit [Ping timeout: 256 seconds]
<Ox0dea> Read and ensure you understand her implementation before embarking on your own. Having hers open in the background while you write yours is just a roundabout way to copy and paste.
spooq|2 has quit [Read error: Connection reset by peer]
x0f has joined #ruby
<Majora> That is literally how I have grasped everything up until this point.
dn` has quit [Quit: dn`]
<Ox0dea> For your suspect definition of "grasped".
Jardayn has quit [Read error: Connection reset by peer]
<Ox0dea> I still love you, though.
choke has joined #ruby
<Majora> Ox0dea: Lmao I hate you
Jardayn has joined #ruby
dlitvak has joined #ruby
dangeranger has quit [Quit: Textual IRC Client: www.textualapp.com]
toretore has quit [Ping timeout: 265 seconds]
guacamol_ has joined #ruby
[Butch] has quit [Quit: I'm out . . .]
<Majora> I'm just going to write the code out
<Ox0dea> That's not a bad idea.
<Majora> And when I get to a place that I don't understand
<Majora> I'm going to call for your dumb ass to explain it to me xP
<Ox0dea> Wait, whose code?
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
zotherstupidguy has quit [Quit: WeeChat 1.3]
bkxd has quit [Ping timeout: 260 seconds]
<Majora> her code.
mfb2 has quit [Remote host closed the connection]
<Ox0dea> You're going to retype her program?
<Majora> yeah....
<Majora> why not?
guacamole has quit [Ping timeout: 260 seconds]
<benlieb> :w
guacamole has joined #ruby
certainty has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
edwinvdgraaf has quit [Remote host closed the connection]
ESpiney has quit [Read error: Connection reset by peer]
Yzguy has joined #ruby
<Majora> Ox0dea: Fine. Don't respond.
jackjackdripper has joined #ruby
<Majora> No one likes you anyway
nertzy has quit [Quit: This computer has gone to sleep]
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
chouhoul_ has quit [Remote host closed the connection]
wolffles has joined #ruby
guacamol_ has quit [Ping timeout: 265 seconds]
<Ox0dea> I think Zarthus thinks I'm purdy; that counts for something, innit?
mary5030_ has quit [Remote host closed the connection]
dlitvak has joined #ruby
baweaver has quit [Remote host closed the connection]
Vertroa has joined #ruby
underplank has quit [Quit: underplank]
r_rios has quit [Ping timeout: 250 seconds]
certainty has quit [Ping timeout: 272 seconds]
underplank has joined #ruby
dlitvak has quit [Remote host closed the connection]
<Zarthus> The coolest.
Sirithcam has joined #ruby
spooq has joined #ruby
d0nn1e has quit [Ping timeout: 246 seconds]
<Majora> Ox0dea: http://ideone.com/LAr3S3
edwinvdgraaf has joined #ruby
<Majora> What is going on with line 3 & 4?
<Majora> i don't get it.
mary5030 has joined #ruby
d0nn1e has joined #ruby
dhollinger has quit [Quit: WeeChat 1.3]
djbkd has joined #ruby
Vertroa has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
haraigo has quit [Ping timeout: 256 seconds]
mfb2 has joined #ruby
neanderslob_ has quit [Ping timeout: 245 seconds]
idefine has quit []
hobodave_ has quit [Ping timeout: 260 seconds]
neanderslob has joined #ruby
<Ox0dea> Majora: My explanation of Line 3 is going to involve some metaphysics; are you okay with that?
<Majora> ...
<Majora> I guess? Lol
mary5030 has quit [Remote host closed the connection]
JDiPierro has quit [Remote host closed the connection]
mfb2_ has joined #ruby
<jbrhbr> lol
<Ox0dea> Majora: What does it mean to say that something is empty?
<Ox0dea> Is a container with no contents really a container?
<Ox0dea> After all, what is being contained?
djbkd has quit [Ping timeout: 260 seconds]
mfb2 has quit [Ping timeout: 245 seconds]
ziyadb has quit [Quit: Connection closed for inactivity]
choke has quit [Ping timeout: 265 seconds]
<Majora> ...
mjuszczak has joined #ruby
<jbrhbr> does defining `self.included` under the hood create a new class (not an instance of a class but a new class object definition) containing whatever the new stuff is? https://gist.github.com/jerryhebert/06b6fcdd3d59d3bdbca0
<Majora> Ox0dea: A container with no contents is still a container -__-
dlitvak has joined #ruby
<Ox0dea> Majora: Line 3 is empty, silly.
<jbrhbr> i'm trying to understand what other reason would cause base.instance_eval to ever actually get evaluated, since the hidden new class object seems to be the only thing that could be getting created here (there is no instance of A)
<Majora> The same way if a tree falls in the forest and no one is around to hear it it still makes a sound xP
Vertroa has joined #ruby
<Ox0dea> jbrhbr: You're defining #included as a method on Foo's singleton class.
<Ox0dea> Singleton classes do kind of "spring into existence", if that's how you mean.
jackjackdripper has quit [Quit: Leaving.]
yfeldblum has joined #ruby
<jbrhbr> hrm, i think i know not of this thing that you speak
Prominent has quit [Read error: Connection reset by peer]
<Ox0dea> jbrhbr: Singleton classes?
choke has joined #ruby
<jbrhbr> Ox0dea: i know the concept of course but not how it relates to a module definition
<thoraxe> https://github.com/thoraxe/vagrant-openshift-multihost/blob/master/Vagrantfile#L39-L44 given that I am repeating this block of stuff several times, is there a way to define it somewhere else and then just call one command?
<jbrhbr> in ruby in particular
JDiPierro has joined #ruby
<thoraxe> it's like i'm doing the same sequence of actions, which to me smells a lot like a block, but I'm not sure what ruby-fu I would need to put that... uh... block of stuff into some kind of variable and then execute it within the block I'm already in
<thoraxe> i'm really bad at asking these kinds of questions
<jbrhbr> Ox0dea: also, if i define another class (B, for example) that also includes Foo, i see the instance_eval print once again
roshanavand has quit [Remote host closed the connection]
<Ox0dea> thoraxe: You could Extract Method, which could really just be a Proc.
BSaboia has quit [Quit: Leaving]
<Ox0dea> thoraxe: def ssh_stuff(v); v.vm.provision ...; end
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Encapsulation has quit [Remote host closed the connection]
<Ox0dea> jbrhbr: Well, yeah, Foo.included will be invoked every time Foo is included.
<jbrhbr> that part isn't surprising to me
<jbrhbr> i think i'm not understanding what exactly the "instance" that instance_eval is referring to
Majora has quit [Disconnected by services]
<jbrhbr> which is why i was thinking it's creating a new class object perhaps
smbenfield has joined #ruby
DonOtreply has joined #ruby
<jbrhbr> perhaps i just need to read about ruby singletons if they somehow deviate from the normal nomenclature
<Ox0dea> >> class C; def self.foo; end end; C.singleton_class.instance_methods.include? :true # jbrhbr
<ruboto> Ox0dea # => false (https://eval.in/498871)
<Ox0dea> Derp.
Sirithcam has quit [Quit: Leaving]
<Ox0dea> >> class C; def self.foo; end end; C.singleton_class.instance_methods.include? :foo
<ruboto> Ox0dea # => true (https://eval.in/498873)
paz__1 has joined #ruby
<Mon_Ouie> jbrhbr: A class is an object in Ruby. It's just an instance of a class called Class.
<Ox0dea> thoraxe: Sure, that's one way to do it.
<thoraxe> ok
<thoraxe> i'll give that a whirl
<thoraxe> thanks
rrichardsr3 has joined #ruby
<Ox0dea> Happy to help.
<jbrhbr> Mon_Ouie: shouldn't that class be an instance of a class called whatever the class is you're dealing with?
Majora_ has joined #ruby
<Majora_> that was weird..
roshanavand has joined #ruby
duckpuppy has joined #ruby
<Mon_Ouie> Not sure what you mean
dlitvak has quit [Remote host closed the connection]
<Mon_Ouie> >> class Foo; end; Foo.class
<ruboto> Mon_Ouie # => Class (https://eval.in/498879)
<jbrhbr> yea, i've seen that result before and was surprised the output wasn't 'Foo'
snockerton has quit [Quit: Leaving.]
<Mon_Ouie> Foo is not an instance of itself
Coldblackice_ has joined #ruby
<jbrhbr> but what if Foo had inherited from Bar?
babblebre has quit [Quit: Connection closed for inactivity]
cdg has joined #ruby
Coldblackice has quit [Ping timeout: 276 seconds]
<jbrhbr> the implication of your statement is that the class of all classes is just Class
<jbrhbr> (which is ostensibly correct here, but confusing to me)
<Mon_Ouie> It would still be a class object, whose superclass happens to be Bar
<jbrhbr> oh
<jbrhbr> so .class is actually the instance of the class object
<jbrhbr> Mon_Ouie: then are you saying my guess was correct about why instance_eval gets fired?
eljimmy has quit [Quit: Leaving]
<Mon_Ouie> I'm not sure I know what you mean by "actually the instance of the class object"
rrichardsr3 has quit [Ping timeout: 276 seconds]
<jbrhbr> yea i suppose fuzzy language isn't helping but i'm mapping from fuzzy brain into fuzzy english :)
cmolenda has quit [Remote host closed the connection]
duckpuppy has quit [Ping timeout: 240 seconds]
baweaver has joined #ruby
<jbrhbr> perhaps you could just answer this, since it's more concise: describe the instance that we're talking about that causes instance_eval to get called in my gist
<Mon_Ouie> The reason instance_eval gets executed is because you called it inside the module's included method, which gets called whenever the module is included into a class/module
<Mon_Ouie> Do you mean what base is?
jackjackdripper has joined #ruby
<jbrhbr> i suppose that would be the same question, yeah
M-shine has joined #ruby
<jbrhbr> ie something must have been instantiated for there to be an instance, so what is that instance
<Mon_Ouie> base is the class/module in which you included Foo
<Mon_Ouie> 'class A; end' is similar to 'A = Class.new'
<jbrhbr> therein lies my confusion
neanderslob has quit [Ping timeout: 264 seconds]
neanderslob_ has joined #ruby
<jbrhbr> i can see 'class A; end' creating a new class object describing A, but not actually a new instance of A
<jbrhbr> and if that "new class object" i just mentioned is the instance, then i suppose all of this makes sense
cdg_ has joined #ruby
spider-mario has quit [Ping timeout: 246 seconds]
<jbrhbr> not sure how to speak more clearly about this
nixmaniack has joined #ruby
mistermo_ has joined #ruby
<Mon_Ouie> There are no instances of A being created in any of the code above
<jbrhbr> yes
<Majora_> Ox0dea: Making the board and accounting for/representing the pieces is what's throwing me off. I can follow the logic for the most part but the rest of it sucks.
<jbrhbr> so internally the parser reads 'class A; end', parses the include, which has an instance eval, and the instance that's passed into instance_eval in this context is the class itself that we just created, right?
baweaver has quit [Ping timeout: 240 seconds]
scripore has joined #ruby
<jbrhbr> Mon_Ouie: at least superficially i hope you can see why i find this confusing. there is no obvious instantiation, yet instance_eval (which works on instances) is being invoked. i think i mostly get it now (unless you disagree with my previous summary)
<Mon_Ouie> Yes (except it's not the parser's role to execute your code)
<jbrhbr> fair
cdg has quit [Ping timeout: 272 seconds]
cdg_ has quit [Remote host closed the connection]
haraigo has joined #ruby
cdg has joined #ruby
<Mon_Ouie> instance_eval works on all objects, and just executes the block you pass it with the object that #instance_eval was called on as self
mistermo_ has quit [Ping timeout: 240 seconds]
leksster has quit [Remote host closed the connection]
nixmaniack has quit [Ping timeout: 264 seconds]
M-Kodo has joined #ruby
<jbrhbr> that part is mostly intuitive
troulouliou_div2 has quit [Remote host closed the connection]
<jbrhbr> this came up for me because i'm reading some code that has a instance_eval block as well as a class_eval block, both within a self.included handler, and i was trying to understand the reasoning behind those choices
<jbrhbr> but the reason may just be specific to whatever this code is doing
Kneecaps has joined #ruby
guacamol_ has joined #ruby
<Mon_Ouie> The difference between class_eval and instance_eval can be seen when you define a method using 'def foo; end' inside the block (also the scoping rules of constants is different IIRC, but I forget the specifics because they have changed with Ruby versions)
weemsledeux has joined #ruby
wolffles has quit [Quit: wolffles]
<Mon_Ouie> Inside the instance_eval block, 'def foo; end' behaves as though you had done 'def self.foo; end' inside the class definition
<gambl0re> is elixr the successor of ruby
<gambl0re> ?
<Mon_Ouie> Inside the class_eval block, which behaves more like opening the class with the regular 'class SomeClass; …; end' syntax, 'def foo; end' defines an instance method
<jbrhbr> Mon_Ouie: did you not say those backwards?
hannelita has quit [Remote host closed the connection]
<Mon_Ouie> No
cdg_ has joined #ruby
guacamo__ has joined #ruby
<Mon_Ouie> >> class ThisClass; end; ThisClass.class_eval { def a_new_method; end }; ThisClass.instance_methods(false)
<ruboto> Mon_Ouie # => [:a_new_method] (https://eval.in/498883)
<Mon_Ouie> >> class ThisClass; end; ThisClass.instance_eval { def a_new_method; end }; ThisClass.instance_methods(false)
<ruboto> Mon_Ouie # => [] (https://eval.in/498884)
kalopsian has joined #ruby
cdg_ has quit [Remote host closed the connection]
kirun has quit [Quit: Client exiting]
guacamole has quit [Ping timeout: 265 seconds]
KineticX has joined #ruby
cdg_ has joined #ruby
<Mon_Ouie> (In that second example a_new_method was defined as a class method, which can be found by checking ThisClass.methods(false))
guacamol_ has quit [Ping timeout: 265 seconds]
<jbrhbr> and i'm assuming this is consistent regardless of whether or not something is a class or an instance, since they are all basically instances of something
cdg has quit [Ping timeout: 256 seconds]
<jbrhbr> i read an article before bugging you guys that made me think a little differently about it ( http://web.stanford.edu/~ouster/cgi-bin/cs142-winter15/classEval.php )
mdw has quit [Quit: Sleeping Zzzzz]
stannard has joined #ruby
<Mon_Ouie> You can't call class_eval on an object that is not a class (it wouldn't make sense, you can't define instance methods on something that isn't a class)
M-mistake has joined #ruby
<jbrhbr> ah, right
FernandoBasso has quit [Quit: Leaving]
cdg_ has quit [Ping timeout: 240 seconds]
KineticX has quit [Ping timeout: 250 seconds]
blackgoat has quit [Quit: WeeChat 1.3]
<Mon_Ouie> instance_eval does indeed work the same for regular objects and classes, and the behavior of 'def' reflects that (if you call instance_eval on something that isn't a class, you can only define singleton methods on that object, not instance methods)
kgirthofer has joined #ruby
<jbrhbr> yea, that's what the article speaks to
<jbrhbr> thanks for all the help, i feel pretty good about it now. i made some notes so i won't have to ask again
guacamole has joined #ruby
weemsledeux has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
cassioscabral has joined #ruby
viperman has quit [Ping timeout: 264 seconds]
d5sx43 has joined #ruby
dlitvak has joined #ruby
guacamo__ has quit [Ping timeout: 265 seconds]
stannard has quit [Ping timeout: 240 seconds]
dlitvak has quit [Remote host closed the connection]