havenwood changed the topic of #ruby to: Rules & more: http://ruby-community.com || Ruby 2.2.3; 2.1.7; 2.0.0-p647: https://ruby-lang.org || Paste >3 lines of text on https://gist.github.com || log @ http://irclog.whitequark.org/ruby/
RobertBirnie has quit [Quit: Textual IRC Client: www.textualapp.com]
charliesome has joined #ruby
solocshaw has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
lemur has joined #ruby
Yzguy has joined #ruby
karapetyan has quit [Remote host closed the connection]
mattwildig has joined #ruby
zacts has joined #ruby
h99h9h88 has quit [Ping timeout: 240 seconds]
guest192123 has joined #ruby
dikaio has joined #ruby
Arkon has quit [Ping timeout: 276 seconds]
dtordable has quit [Quit: Lost terminal]
tomphp has joined #ruby
pwnd_nsfw has joined #ruby
IrishGringo has joined #ruby
tulak has quit [Remote host closed the connection]
lemur has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 240 seconds]
Yzguy has quit [Client Quit]
mattwildig has quit [Ping timeout: 272 seconds]
scmx has quit [Ping timeout: 260 seconds]
Yzguy has joined #ruby
k3asd` has quit [Ping timeout: 240 seconds]
Guest83788 has quit [Ping timeout: 252 seconds]
_stu_ has joined #ruby
jdawgaz has joined #ruby
opensource_ninja has joined #ruby
<riceandbeans> isn't parens the old style for arguments?
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<riceandbeans> like foo.include?('bar')
<riceandbeans> isn't that the old way?
neonalpine has joined #ruby
<riceandbeans> and foo.include? 'bar' the new way?
axl_ has joined #ruby
null2 has joined #ruby
JammyHammy has joined #ruby
<null2> .
<Ox0dea> riceandbeans: It's mostly a stylistic preference, but parens are sometimes mandatory.
diegoaguilar has quit [Remote host closed the connection]
Arkon has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
PaulCapestany has quit [Quit: .]
opensource_ninja has quit [Quit: opensource_ninja]
freerobby has quit [Quit: Leaving.]
TomPeed has joined #ruby
kies has joined #ruby
waka has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
grill has joined #ruby
PaulCapestany has joined #ruby
tomphp has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dlitvak has joined #ruby
tomphp has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
tomphp has quit [Client Quit]
tomphp has joined #ruby
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Sidoniuns has joined #ruby
Ox0dea has quit [Read error: No route to host]
devoldmx has joined #ruby
Tricon has joined #ruby
Tricon has quit [Client Quit]
<null2> Question: I'm trying to troubleshoot why my terminal output with funky characters (colors and stuff) is not being encoded into valid JSON by JSON.generate
<null2> They payload is being sent by Net::HTTP, and I'm thinking of serializing the object using to_yaml, but what's the best way to view the deserialized content? Puts eats some of the funky encoding
tomphp has quit [Client Quit]
<VeryBewitching> Ox0dea: halp
<VeryBewitching> Oh, not present?
devoldmx has quit [Ping timeout: 246 seconds]
wldcordeiro has quit [Ping timeout: 240 seconds]
predator217 has joined #ruby
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
stannard has joined #ruby
devl has quit [Ping timeout: 246 seconds]
predator117 has quit [Ping timeout: 276 seconds]
bubbys has quit [Ping timeout: 240 seconds]
rcvalle has quit [Quit: rcvalle]
bubbys has joined #ruby
safe has quit [Quit: Leaving]
simplyianm has quit [Remote host closed the connection]
stannard has quit [Ping timeout: 246 seconds]
neonalpine has quit [Remote host closed the connection]
simplyianm has joined #ruby
grilled-cheese has quit [Quit: grilled-cheese]
Croves has joined #ruby
B1n4r10 has joined #ruby
cdg has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
<patrick99e99> has anyone here used Stomp for publishing messages ?
jackjackdripper has joined #ruby
bubbys has quit [Ping timeout: 250 seconds]
RegulationD has quit [Remote host closed the connection]
neonalpine has joined #ruby
bubbys has joined #ruby
chouhoulis has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: i've nodded off.]
<jhass> null2: inspect / p
Rickmasta has joined #ruby
baweaver has quit [Remote host closed the connection]
devl has joined #ruby
opensource_ninja has joined #ruby
griffindy has quit [Read error: Connection timed out]
Ox0dea has joined #ruby
<Ox0dea> VeryBewitching: You rang?
<VeryBewitching> Oh, yes, resolved. Was playing with variations of "deprecate"
baweaver has joined #ruby
snockerton has quit [Quit: Leaving.]
<VeryBewitching> Thanks though :D
<Ox0dea> Are there variations, then?
<Ox0dea> > Try and enjoy programming with Ruby 2.3.0-preview1
charliesome has quit [Ping timeout: 260 seconds]
a346 has joined #ruby
opensource_ninja has quit [Ping timeout: 255 seconds]
<Ox0dea> "Deprecatively" is a mouthful.
blue_deref has quit [Quit: bbn]
<VeryBewitching> I have a class Component that can be deprecated by another Component; both remain relative, but one definition is the more widely accepted definition.
<VeryBewitching> I wanted to refer to the deprecator and had a stupid moment. Or rather I allowed the spell checker in RubyMine tell me that deprecator wasn't a word, then searched Google for "deprecater"
tref has joined #ruby
<VeryBewitching> s/relative/relevant
<Ox0dea> Does RubyMine not permit custom dictionaries, then?
dtordable has joined #ruby
rgrmatt has quit [Remote host closed the connection]
leafybas_ has joined #ruby
minimalism has joined #ruby
marr has quit [Ping timeout: 260 seconds]
freerobby has joined #ruby
<VeryBewitching> You can save the word to the dictionary (which I've now done) but initially, no, it didn't recognize the word.
<shevy> patrick99e99 never heard of Stomp before
leafyba__ has quit [Ping timeout: 240 seconds]
<Ox0dea> VeryBewitching: Some cursory research into the matter reveals it's quite easy to add your own wordlist to RubyMine's spellchecker.
abucha has joined #ruby
<Ox0dea> I recommend words-insane: https://aur.archlinux.org/packages/words-insane/
scmx has joined #ruby
<Ox0dea> Its contents are as the tin suggests.
<blubjr> big Ox0dea
<VeryBewitching> Thing is, RubyMine normally gets it very right, but that's an interesting package.
<Ox0dea> It's even got Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch!
<Ox0dea> Which I can more or less pronounce after having gotten this jingle stuck in my head: https://www.youtube.com/watch?v=1BXKsQ2nbno
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
axsuul has quit [Ping timeout: 260 seconds]
a346 has quit [Quit: a346]
<patrick99e99> shevy: ok thanks... stackoverflow it is
Sidoniuns has left #ruby ["Saindo"]
rgrmatt has joined #ruby
h99h9h88 has joined #ruby
dikaio has quit [Ping timeout: 240 seconds]
SCHAAP137 has quit [Quit: Leaving]
yqt has quit [Ping timeout: 265 seconds]
scmx has quit [Ping timeout: 272 seconds]
h99h9h88 has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
zapata has joined #ruby
lemur has joined #ruby
blackmes1 has quit [Ping timeout: 246 seconds]
northfurr has quit [Quit: northfurr]
ghormoon has quit [Ping timeout: 255 seconds]
<VeryBewitching> Ox0dea: When they talk about "the proper noun", it's that one.
<VeryBewitching> What a mouthful.
<Ox0dea> Welsh is bonkers.
<Ox0dea> One of those four consecutive Ls is basically pronounced like a K.
rgrmatt has quit [Remote host closed the connection]
bruce_lee has quit [Ping timeout: 250 seconds]
karapetyan has joined #ruby
h99h9h88 has quit [Ping timeout: 264 seconds]
jackjackdripper has quit [Ping timeout: 240 seconds]
lemur has quit [Ping timeout: 240 seconds]
blackmes1 has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest7146
chipotle has joined #ruby
zeroDivisible has quit [Quit: WeeChat 1.3]
umgrosscol has quit [Quit: End of Line]
neonalpine has quit [Remote host closed the connection]
rgrmatt has joined #ruby
zeroDivisible has joined #ruby
unknowns2k2 has joined #ruby
jackjackdripper has joined #ruby
podman has joined #ruby
segfalt__ has joined #ruby
karapetyan has quit [Ping timeout: 246 seconds]
ta has joined #ruby
axsuul has joined #ruby
hahuang65 has quit [Ping timeout: 276 seconds]
jackjackdripper has quit [Client Quit]
Guest7146 has quit [Ping timeout: 240 seconds]
jackjackdripper has joined #ruby
axl_ has joined #ruby
axsuul has quit [Read error: Connection reset by peer]
axsuul has joined #ruby
jessemcgilallen has quit [Quit: jessemcgilallen]
s00pcan has joined #ruby
centrx has quit [Quit: If you meet the Buddha on the road, kill him.]
<grill> this is more of a general software engineering question than a ruby question, but how would I initialize a static class?
dlitvak has quit [Remote host closed the connection]
dlitvak has joined #ruby
<blubjr> what do you mean
axl_ has quit [Ping timeout: 240 seconds]
<jhass> grill: I tend to use a singleton if I feel the urge to do that
bruce_lee has joined #ruby
<grill> I need to set some class variables before I call a class' methods
neonalpine has joined #ruby
<jhass> have a look at the singleton stdlib
<grill> i'd rather not have to instantiate an object at all though
Fire-Dragon-DoL has joined #ruby
<jhass> any good reason?
chipotle has quit [Quit: cheerio]
axsuul has quit [Ping timeout: 255 seconds]
blubjr has quit [Remote host closed the connection]
B1n4r10 has quit [Ping timeout: 255 seconds]
<Ox0dea> grill: There's #class_variable_set?
dlitvak_ has joined #ruby
<jhass> I don't think it's about doing it dynamically
<grill> i'm writing chef code, and i'd prefer to keep my code's gating statements (idempotency stuff) as concise as possible. If i use class methods, i can do it with one line. if i have to instantiate and object every time, I can't
<jhass> grill: seriously, actually look at what I proposed
ekinmur has joined #ruby
<grill> sec
B1n4r10 has joined #ruby
<grill> jhass I still have to instantiate an object once, right?
<jhass> it's implicitly done when you call instance
<jhass> the first time you call it I should specify
<grill> sure, but I'd still have to do the assignment, i.e. a = Example.instance
<jhass> no
gusrub has quit [Remote host closed the connection]
<grill> on the other hand, with a static class, i could just do Example::dosomething
<jhass> don't use :: to call methods
<jhass> Example.foo -> Example.instance.foo
<jhass> you can even sed that change
dlitvak has quit [Ping timeout: 255 seconds]
<grill> ok. reasonable
<grill> but what about this
<grill> there's an answer with: MyModel::do_something # => "this is a static method"
<jhass> that's equivalent, :: works for calling methods, but it's bad style
<grill> ok
<jhass> >> "it's not restricted to 'static' methods either"::size
<ruboto> jhass # => 46 (https://eval.in/467975)
MacroniSalad has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
northfurr has joined #ruby
<grill> ok, so this singleton class looks like it could be workable. how would I go about giving it paramaters when calling instance? a = SomeClass.instance(parama, paramb) ?
willharrison has joined #ruby
NeverDie has joined #ruby
senayar has quit []
northfurr has quit [Client Quit]
scripore has joined #ruby
goodcodeguy has joined #ruby
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<jhass> grill: I don't think it supports that
glenny has joined #ruby
<grill> sigh
Zafer has joined #ruby
<grill> yeah. it doesn't
Zafer has left #ruby [#ruby]
<jhass> it'd be weird if you don't know whether your arguments are used or ignored in a call to it anyway
<jhass> pass them to the method you're calling / define setters?
<jhass> but then it probably shouldn't initialize without the data present
<jhass> so ideally the initializer would pull the data
howdoi has quit [Quit: Connection closed for inactivity]
gusrub has joined #ruby
ledestin has quit [Ping timeout: 265 seconds]
<grill> ok
<grill> so, can i create an object and run one of its methods on a single line?
leafybas_ has quit [Ping timeout: 244 seconds]
unknowns2k2 has quit [Quit: unknowns2k2]
skweek has joined #ruby
<jhass> sure, just Foo.instance.method
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<grill> I mean a non-singleton one
<shevy> hmmm
IrishGringo has quit [Ping timeout: 240 seconds]
<shevy> I see in a .gemspec s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") and also s.rubygems_version used
<grill> so something like Foo.new(param).somemethod()
ledestin has joined #ruby
<grill> does that work in ruby?
<shevy> is it recommended to use .required_rubygems_version=? so far I have only been using .rubygems_version?
<shevy> aha I guess I was using it incorrectly lol
<jhass> grill: sure
<grill> ok
<jhass> grill: new is just a method call too
<grill> that'll have to do for now
gusrub has quit [Ping timeout: 265 seconds]
<jhass> shevy: I never used it and wouldn't unless I'm made aware that something I do needs a particular one
uri has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has joined #ruby
RegulationD has joined #ruby
uri has joined #ruby
uri has quit [Client Quit]
rgrmatt has quit [Remote host closed the connection]
<shevy> jhass sorry, which one variant do you mean? you are using .rubygems_version= ? or .required_rubygems_version= ?
<jhass> neither
<shevy> aaaah
tkuchiki has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Spoken like a true Archer.
RegulationD has quit [Ping timeout: 240 seconds]
<jhass> "You're not using the latest version of something? [Closed Won't fix]"
vigintas has quit [Ping timeout: 240 seconds]
jpfuentes2 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
rgrmatt has joined #ruby
<shevy> that sounds mean like Ulrich Drepper!
tref has quit [Quit: tref]
abucha_ has joined #ruby
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mattwildig has joined #ruby
sgambino has joined #ruby
segfalt__ has quit [Ping timeout: 240 seconds]
rgrmatt has quit [Remote host closed the connection]
abucha has quit [Ping timeout: 250 seconds]
opensource_ninja has joined #ruby
bubbys has quit [Ping timeout: 240 seconds]
wldcordeiro has joined #ruby
SigmundFried has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
rgrmatt has joined #ruby
NeverTired has quit [Quit: Connection closed for inactivity]
XxionxX has joined #ruby
<XxionxX> just testing that my IRC client works
tlolczyk has joined #ruby
<FailBit> >> :|
<ruboto> FailBit # => :| (https://eval.in/468001)
bubbys has joined #ruby
<tlolczyk> I need to either use the same ruby temp file or generate about 5000 files. Now I can rewind the file and rewrite, but how can I empty the file?
<jhass> tlolczyk: iirc there's IO#truncate or something
<Ox0dea> FailBit: Idle harder.
Lucky__ has joined #ruby
<FailBit> I am busy fixing my app kthx
<FailBit> new relic should fucking fix theirs
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
opensource_ninja has quit [Ping timeout: 260 seconds]
opensource_ninja has joined #ruby
lemur has joined #ruby
gambl0re has quit [Ping timeout: 264 seconds]
suchness has quit [Read error: Connection reset by peer]
<jhass> tlolczyk: btw sounds like you're using it for testing etc, if you just need an IO like interface StringIO might be interesting too
zeroDivisible has quit [Quit: WeeChat 1.3]
dlitvak has joined #ruby
krazyj has quit [Quit: krazyj]
lemur has quit [Ping timeout: 240 seconds]
<tlolczyk> jhass, thanks twice.
Senjai has quit [Ping timeout: 244 seconds]
trav408 has quit [Quit: WeeChat 1.2]
Jardayn has quit [Quit: Leaving]
bruno- has joined #ruby
dlitvak_ has quit [Ping timeout: 240 seconds]
<tlolczyk> Oh no. Actually I use the temp to pipe data to another program in a popen command. So I think it almost has to be written to a file.
bruno- is now known as Guest4964
Karunamon has joined #ruby
<Ox0dea> tlolczyk: Definitely not.
<jhass> tlolczyk: why not pipe it over stdin?
willharrison has quit [Quit: Textual IRC Client: www.textualapp.com]
tlarevo has joined #ruby
<Ox0dea> tlolczyk: IO.popen accepts a block and yields the process's stdin.
B1n4r10 has quit [Ping timeout: 276 seconds]
mghaig has joined #ruby
Croves has quit [Quit: Textual IRC Client: www.textualapp.com]
<tlolczyk> Hmmm. I will if it turns out to slow. I think even now the file is so short it does not actually save it to disk.
Guest4964 has quit [Ping timeout: 255 seconds]
axl_ has joined #ruby
daivyk has quit [Quit: ZZZzzz…]
roxtrongo has joined #ruby
<jhass> another option is to open a pipe (IO.pipe, pipe(2)), and let the process inherit the read end and then tell it the FD (parameter, environment)
<jhass> that's basically how systemd/launchd socket activation works btw
mistermocha has quit [Remote host closed the connection]
mistermocha has joined #ruby
baweaver has quit [Remote host closed the connection]
axl_ has quit [Ping timeout: 240 seconds]
nibbo has quit [Ping timeout: 272 seconds]
rgrmatt has quit [Remote host closed the connection]
<jhass> but if stdin free, that's basically the same for free
eminence_ has quit [Remote host closed the connection]
null__ has quit [Ping timeout: 264 seconds]
hagabaka has quit [Ping timeout: 264 seconds]
spastorino has quit [Ping timeout: 264 seconds]
dlitvak_ has joined #ruby
ElSif has quit [Ping timeout: 264 seconds]
an0ma1y has quit [Ping timeout: 264 seconds]
levifig has quit [Ping timeout: 264 seconds]
hagabaka has joined #ruby
levifig has joined #ruby
an0ma1y has joined #ruby
spastorino has joined #ruby
null__ has joined #ruby
connor_goodwolf has quit [Ping timeout: 264 seconds]
purplexed- has joined #ruby
purplexed- has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
DroidBurgundy has quit [Read error: Connection reset by peer]
mistym has quit [Ping timeout: 260 seconds]
sumark_ has joined #ruby
neonalpine has quit [Remote host closed the connection]
DroidBurgundy has joined #ruby
mhenrixon_ has joined #ruby
mistym has joined #ruby
mistym has quit [Changing host]
mistym has joined #ruby
dlitvak has quit [Ping timeout: 255 seconds]
rgrmatt has joined #ruby
johnzorn has quit [Ping timeout: 264 seconds]
sumark has quit [Ping timeout: 264 seconds]
nirix has quit [Ping timeout: 264 seconds]
iamdevnul has quit [Ping timeout: 264 seconds]
mhenrixon has quit [Ping timeout: 264 seconds]
Rickmasta has quit [Ping timeout: 264 seconds]
Trieste has quit [Ping timeout: 264 seconds]
nirix_ has joined #ruby
nirix_ is now known as nirix
cjk101010 has quit [Ping timeout: 264 seconds]
<jhass> tlolczyk: and if the process you pipe the data too is awkward and demands a "file", a named pipe would ensure there's no disk access no matter where you create it
iamdevnul has joined #ruby
MuffinPimp has quit [Ping timeout: 264 seconds]
devoldmx has joined #ruby
papercode has quit [Ping timeout: 264 seconds]
Rickmasta has joined #ruby
papercode has joined #ruby
arescorpio has joined #ruby
fedexo has joined #ruby
Trynemjoel has quit [Ping timeout: 264 seconds]
dannluciano has quit [Ping timeout: 264 seconds]
decoponio has quit [Quit: Leaving...]
htmldrum has quit [Ping timeout: 265 seconds]
cjk101010 has joined #ruby
MuffinPimp has joined #ruby
null__ has quit [Ping timeout: 264 seconds]
OmiKrOn has quit [Ping timeout: 264 seconds]
dannluciano has joined #ruby
sdothum has quit [Read error: Connection reset by peer]
yaewa has joined #ruby
Trynemjoel has joined #ruby
sdothum has joined #ruby
connor_goodwolf has joined #ruby
moei has quit [Ping timeout: 264 seconds]
brendan- has quit [Ping timeout: 264 seconds]
devoldmx has quit [Ping timeout: 252 seconds]
UtkarshRay has joined #ruby
bMalum has joined #ruby
Oli` has quit [Ping timeout: 246 seconds]
doll has joined #ruby
null__ has joined #ruby
banister has joined #ruby
null__ has quit [Max SendQ exceeded]
sirecote has quit [Ping timeout: 264 seconds]
exadeci has joined #ruby
null__ has joined #ruby
vdamewood has joined #ruby
ja has quit [Ping timeout: 264 seconds]
sirecote has joined #ruby
ja has joined #ruby
<doll> I'm making a fake online book store with activerecord and mysql; I need to create a promotions table (2 for 1 books, 3 for 2 books, etc). I'm having a hard time finding any documentation for something like this and #mysql is asleep. Any suggestions?
dlitvak has joined #ruby
htmldrum has joined #ruby
sunya7a has quit [Ping timeout: 264 seconds]
null__ has quit [*.net *.split]
cjk101010 has quit [*.net *.split]
ekinmur has quit [*.net *.split]
dtordable has quit [*.net *.split]
brushbox has quit [*.net *.split]
solars has quit [*.net *.split]
Muz has quit [*.net *.split]
slash_nick has quit [*.net *.split]
funnel has quit [*.net *.split]
jokke has quit [*.net *.split]
fluchtreflex has quit [*.net *.split]
PhilK has quit [*.net *.split]
beagles has quit [*.net *.split]
moss has quit [*.net *.split]
Drakevr has quit [*.net *.split]
eboaz has quit [*.net *.split]
Elysia has quit [*.net *.split]
rdema_ has quit [*.net *.split]
wnd has quit [*.net *.split]
pabs has quit [*.net *.split]
tiwillia has quit [*.net *.split]
OmegaA has quit [*.net *.split]
adamholt has quit [*.net *.split]
sparr has quit [*.net *.split]
SilentEcho has quit [*.net *.split]
Nanuq has quit [*.net *.split]
SebastianThorn has quit [*.net *.split]
bewie has quit [*.net *.split]
lianj has quit [*.net *.split]
ozzloy has quit [*.net *.split]
cookiez has quit [*.net *.split]
bascht has quit [*.net *.split]
zly has quit [*.net *.split]
danoo_ has quit [*.net *.split]
sunya7a_1 has joined #ruby
funnel has joined #ruby
sparr has joined #ruby
abucha_ has quit [Quit: Leaving...]
pabs has joined #ruby
moss has joined #ruby
mistermocha has quit [Remote host closed the connection]
dlitvak_ has quit [Ping timeout: 260 seconds]
zly has joined #ruby
rdema has joined #ruby
slash_ni1k has joined #ruby
dtordabl1 has joined #ruby
lianj_ has joined #ruby
bewie_ has joined #ruby
Muz_ has joined #ruby
Drakevr_ has joined #ruby
sanjayu has quit [Ping timeout: 240 seconds]
freerobby has quit [Quit: Leaving.]
null__ has joined #ruby
ekinmur has joined #ruby
dtordable has joined #ruby
brushbox has joined #ruby
solars has joined #ruby
Drakevr has joined #ruby
fluchtreflex has joined #ruby
slash_nick has joined #ruby
bewie has joined #ruby
OmegaA has joined #ruby
adamholt has joined #ruby
SebastianThorn has joined #ruby
lianj has joined #ruby
danoo_ has joined #ruby
cookiez has joined #ruby
tiwillia has joined #ruby
SilentEcho has joined #ruby
Elysia has joined #ruby
bascht has joined #ruby
wnd has joined #ruby
ozzloy has joined #ruby
eboaz has joined #ruby
beagles has joined #ruby
Muz has joined #ruby
Nanuq has joined #ruby
rdema_ has joined #ruby
dtordable has quit [Ping timeout: 264 seconds]
slash_nick has quit [Ping timeout: 264 seconds]
Elysia has quit [Ping timeout: 264 seconds]
rdema_ has quit [Ping timeout: 264 seconds]
tiwillia has quit [Ping timeout: 264 seconds]
SilentEcho has quit [Ping timeout: 264 seconds]
lianj has quit [Ping timeout: 264 seconds]
ozzloy has quit [Ping timeout: 264 seconds]
cookiez has quit [Ping timeout: 264 seconds]
bascht has quit [Ping timeout: 264 seconds]
danoo_ has quit [Ping timeout: 264 seconds]
cookiez has joined #ruby
Muz has quit [Remote host closed the connection]
solars has quit [Ping timeout: 264 seconds]
Drakevr has quit [Ping timeout: 264 seconds]
adamholt has quit [Ping timeout: 264 seconds]
SebastianThorn has quit [Ping timeout: 264 seconds]
bewie has quit [Ping timeout: 264 seconds]
ozzloy has joined #ruby
SebastianThorn has joined #ruby
ozzloy has quit [Changing host]
ozzloy has joined #ruby
cjk101010 has joined #ruby
null__ has quit [Changing host]
null__ has joined #ruby
SilentEcho has joined #ruby
jokke has joined #ruby
tiwillia has joined #ruby
blue_deref has joined #ruby
Trieste has joined #ruby
mistermocha has joined #ruby
Elysia has joined #ruby
bascht has joined #ruby
skcin7 has joined #ruby
sdwrage has joined #ruby
adamholt has joined #ruby
PhilK has joined #ruby
ElSif has joined #ruby
nibbo has joined #ruby
mistermocha has quit [Ping timeout: 246 seconds]
qiukun has joined #ruby
nateberkopec has quit [Quit: Leaving...]
unknowns2k2 has joined #ruby
blackmes1 has joined #ruby
neonalpine has joined #ruby
unknowns2k2 has quit [Client Quit]
sankaber has joined #ruby
blackmes1 has quit [Ping timeout: 252 seconds]
dlitvak_ has joined #ruby
astrobunny has joined #ruby
A124 has quit [Read error: Connection reset by peer]
dlitvak has quit [Ping timeout: 250 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
sdothum has joined #ruby
dorei has quit []
dlitvak_ has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
chastised has joined #ruby
A124 has joined #ruby
opensource_ninja has quit [Ping timeout: 265 seconds]
mghaig has quit [Ping timeout: 265 seconds]
<Ox0dea> It seems even Fiddle can't be finagled into unprepending a module.
inteq has joined #ruby
makenoise has joined #ruby
<doll> did you jiggle the keys and give it gas?
Coldblackice has quit [Read error: Connection reset by peer]
mistym has quit [Ping timeout: 240 seconds]
danoo_ has joined #ruby
<Ox0dea> It's a musical instrument.
Arkon has quit [Remote host closed the connection]
Senjai has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest20895
mistym has joined #ruby
mistym has quit [Changing host]
mistym has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
|ifei5g00d has quit [Remote host closed the connection]
slawrence00 has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
dented42 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<chastised> hi I just installed ruby on a debian machine with apt-get . but it won't run a ruby file or invoke irb
patrick99e99 has quit [Quit: Page closed]
tlarevo has left #ruby [#ruby]
|ifei5g00d has joined #ruby
Coldblackice has joined #ruby
yfeldblum has quit [Remote host closed the connection]
DroidBurgundy has quit []
dlitvak has joined #ruby
axl_ has joined #ruby
Guest20895 has quit [Ping timeout: 265 seconds]
<Ox0dea> I can't even tell if this is a bug.
NeverDie has quit [Quit: http://radiux.io/]
DLSteve has joined #ruby
<chastised> well, my ruby command must be ruby2.1 and I still cannot invoke irb. is there somewhere I make an alias or something?
<Ox0dea> chastised: What happens when you try to invoke irb?
<shevy> normally debian has these as symlinks ruby -> ruby2.1
<shevy> look in /usr/bin/ for *ruby* and *irb* as pattern match
<shevy> but apt-get takes care of that normally
<chastised> shevy weird . Ox0dea irb returns command not found
axl_ has quit [Ping timeout: 240 seconds]
dlitvak has quit [Ping timeout: 260 seconds]
<Ox0dea> chastised: You ran `apt-get install ruby2.1`, then?
favadi has joined #ruby
<chastised> Ox0dea, yeah I tried apt-get install ruby-full but it wouldn't work
<shevy> it must have installed it
TheHodge has quit [Quit: Connection closed for inactivity]
nomad__ has joined #ruby
<Ox0dea> chastised: What does `dpkg-query -L ruby2.1 | grep irb` return?
NeverDie has joined #ruby
rgrmatt has quit [Remote host closed the connection]
<chastised> one sec
<doll> @Ox0dea holy mother it just took a dump
<shevy> hmm
<Ox0dea> doll: That it did.
<shevy> weird
eminencehc has joined #ruby
<shevy> it lists /usr/bin/ruby2.1 but no /usr/bin/ruby
subscope has joined #ruby
<shevy> is the symlink-creation part of a post-installation step?
<Ox0dea> Doesn't Debian have a package where it sticks all its symlinks?
<Ox0dea> Or... some program for building them or something.
<shevy> I think it has some shell file that may do those things... yeah
iateadonut has joined #ruby
<chastised> Ox0dea, shevy no clue working on it...
<shevy> but that is weird, I recall apt-get install ruby having worked and created /usr/bin/ruby properly. no idea why it does not in chastised's case
<shevy> anyway if it is just one symlink you can create it manually :D
<chastised> the only thing in /usr/bin/ is ruby2.1
<VeryBewitching> You might have to run update-alternatives to set that ruby.
<Ox0dea> That's the one!
<chastised> that's an apt-get command?
favadi has quit [Client Quit]
<VeryBewitching> which update-alternatives
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<shevy> debian has those /etc/alternatives/ thingies
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
<Ox0dea> What a mess.
<chastised> kindly explain
<shevy> where it attempts to allow multiple versions of programs
<chastised> like rvm on mac?
<shevy> I think rvm only handles ruby
rbowlby has quit [Remote host closed the connection]
<Ox0dea> chastised: `update-alternatives` is a program you almost certainly already have installed.
<VeryBewitching> chastised: You could run Ruby 1.8.x, 1.9.x and 2.0.x and 2.1.x with update-alternatives
<shevy> /etc/alternatives/ could in theory maintain every program, so you could have multiple different versions
<shevy> of programs
<VeryBewitching> I install ruby with ruby-install and use rubies with chruby
<Ox0dea> ^
<VeryBewitching> <-- on Kubuntu
<shevy> that is one reason why debian installs /usr/bin/ruby2.1 btw and not /usr/bin/ruby
northfurr has joined #ruby
<VeryBewitching> shevy: yup.
<chastised> I'm losing you guys. what should I do to get a normal ruby command and irb up?
<shevy> I don't know which other programs are managed like that though... perhaps python?
<Ox0dea> chastised: Did you run that `dpkg-query` line from earlier?
<VeryBewitching> chastised: one sec, finding an article
<shevy> chastised if you have only one ruby installed, just do a manual symlink
<Ox0dea> But why don't they have irb?
<shevy> I think he has irb2.1
eminencehc has quit [Ping timeout: 244 seconds]
<shevy> Ox0dea does arch also version binaries like that?
<Ox0dea> No.
<Ox0dea> You sick fuck.
<chastised> oh yeah irb2.1 works!
<shevy> hahaha
<shevy> good! now you can enter ruby code \o/
<VeryBewitching> chastised: I'd recommend reading through the article above, it doesn't take long to go through the steps and still works on 15.10
<Ox0dea> chastised: Your OS really ought to have automatically built the appropriate symlink, though.
<shevy> never trust a debian ruby fully though ...
<shevy> yeah read through it just in case when you want to switch one day
<Ox0dea> chastised: 2.3 is coming out in a little over a month; any particular reason you decided on 2.1?
<VeryBewitching> I think it.s the 2.x stable on Debian
dented42 has joined #ruby
<VeryBewitching> Ubuntu should be on 2.2.x though by now
<doll> how the fuck can i make a 2 for 1 sale in ruby http://pastie.org/private/b7eygi3nrm5myjwxvheta
<Ox0dea> > Bugs? You must be kidding; there are no bugs in this software.
djbkd has quit [Ping timeout: 244 seconds]
<Ox0dea> From pacman's manpage. :P
<shevy> ubuntu is faster than debian?
<Ox0dea> Debian has flavors.
<tlolczyk> I feel sort of embarassed to ask this, but I can't quite figure out the docs. I have a hash call it h. The keys are md5 values. The values are arrays of objects having the same md5 as the key. I would like to generate an array of keys sorted by the number of elements in each array.
Senjai has quit [Ping timeout: 255 seconds]
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> well you can .sort or .sort_by in any way you want to
<Ox0dea> tlolczyk: Are you finding collisions?
<tlolczyk> shevy, that's the part I can't figure out.
<Ox0dea> tlolczyk: h.sort_by { |_, v| v.size }.map(&:first)
makenoise has quit [Remote host closed the connection]
<Ox0dea> Hash#sort_by gives you back a nested array of key-value pairs.
<chastised> shevy new to linux: could you hint at how to create the symlink? I've done alias' in .bashrc before that's it.
<tlolczyk> Ox0dea, collisons? That's why there are arrays of objects, and I want them to collide a bit.
<VeryBewitching> chastised: ln -s /path/to/source /path/to/destination
<Ox0dea> tlolczyk: Well, you said you have arrays whose MD5s are all the same? That means they collide.
tubuliferous_ has quit [Ping timeout: 260 seconds]
<Ox0dea> *arrays whose elements' MD5s
makenoise has joined #ruby
dlitvak has joined #ruby
<tlolczyk> Ox0dea, and what are the two arguments to the block, and what is the block used for?
makenoise has quit [Remote host closed the connection]
<shevy> chastised cd /usr/bin; ln -s ruby2.1 ruby
makenoise has joined #ruby
<tlolczyk> That's the confusing part.
<Ox0dea> tlolczyk: The key and the value for each element of the hash; I've called the first `_` there to indicate that we've no interest in the key for the purposes of our sort.
<VeryBewitching> shevy: sudo ;)
<shevy> you have a hash so you have key,value
<shevy> VeryBewitching you have to ask for permission? BECOME THE SUPERUSER!!!
<Ox0dea> And the block just explains how to do the sorting; in this case, you want to sort based on the size of the array in `v`.
<VeryBewitching> chastised: You have to put sudo before any of these commands
<VeryBewitching> shevy: I try to make my occupation of root prompts quick-lived events :)
<shevy> wimp
<shevy> :>
<shevy> I am scared when I am superuser and on /
<shevy> I usually chicken out and go to a safe directory instead
<VeryBewitching> I've accidentally done things, bad things, and though it was long ago, I remember how badly it hurts when you've chowned something incorrectly
<shevy> yeah
<shevy> I once did a wrongful tab-complete
<VeryBewitching> Mmmhmm.
<chastised> thanks shevy VeryBewitching
<VeryBewitching> chastised: np
<shevy> ended up doing something like: rm -rf /foo/bar <tab-space-press> / <quick-enter-press>
<Ox0dea> LGTM
<Ox0dea> shevy: Was this about ten years ago, then?
<shevy> yeah
Nightmare is now known as HaythamKenway
<pontiki> hi
<VeryBewitching> Hi pontiki
<shevy> I think I used linux perhaps 2 years or so; the biggest surprise was about the tab completion itself btw, not about rm
<tlolczyk> Ox0dea, yes but how does the block tell the sort how to arrange the elements. The traditional way in other languages is two give two key value pairs and return a value based on which is bigger.
dlitvak has quit [Ping timeout: 240 seconds]
<Ox0dea> tlolczyk: Right, that's what the block to #sort needs to do.
<Ox0dea> But #sort_by is nice and convenient and just lets you specify the "sort key", so to speak.
<VeryBewitching> I've been on Linux since '99, RedHat Mahnattan
waka has joined #ruby
<shevy> you can not be very young anymore VeryBewitching!
Fire-Dragon-DoL has quit []
<shevy> the usual tell-tale sign of old age is nostalgi
<shevy> erm nostalgia
ReK2 has quit [Quit: Konversation terminated!]
<shevy> and when you think that the 1980s and 1990s had great music
<VeryBewitching> That wasn't nostalgia, I hate RH :D
<tlolczyk> VeryBewitching, beat you by three years and slackware!
<shevy> hahaha
<shevy> yay slackware!
<pontiki> VeryBewitching: then that's nastaligia :>
<tlolczyk> On a 75MHZ PackardBell.
<VeryBewitching> pontiki: haha
<shevy> yay for no resources!
neonalpine has quit [Remote host closed the connection]
<VeryBewitching> Pentinum 90 w/8Mb RAM
<VeryBewitching> And KDE < 1.0
<shevy> yeah...
IrishGringo has joined #ruby
<shevy> good old days
<Ox0dea> >> 'landline'.tr 'denial', '-/ fmr'
<tlolczyk> olvwm.
<ruboto> Ox0dea # => "rm -rf /" (https://eval.in/468028)
mattwildig has quit [Remote host closed the connection]
<Ox0dea> `echo landline | tr denial -/\ fmr` for the bold.
<VeryBewitching> voodoo
<tlolczyk> and I had to get the source to olvwm myself.
<Ox0dea> Spooky computer magicks.
<tlolczyk> The sad thing is that it's now hard to find a good linux for a Pi even though it is several orders of magnitude more powerful.
RegulationD has joined #ruby
<Ox0dea> tlolczyk: Arch runs on the Pi.
<VeryBewitching> I like a blunt tool: perl -e "while(true) { fork(); }"
<Ox0dea> :(){ :|:& };:
<shevy> hey
<VeryBewitching> <3
<shevy> you can do this in ruby!
<Ox0dea> >> loop { fork }
<ruboto> Ox0dea # => (https://eval.in/468029)
<VeryBewitching> It can be done in man languages.
<shevy> ruby is the cleaner perl
<VeryBewitching> s/man/many
Eiam_ has joined #ruby
<shevy> man languages!
<shevy> real man languages, like grunt and stomp and whack
<shevy> cave man programming
<VeryBewitching> BASH NOT WORKING
<shevy> they scribbled algorithms on the cave wall
<VeryBewitching> k
<VeryBewitching> <-- stops
<shevy> yeah
<shevy> imagine if they discover a cave man writing code
maikowblue has quit [Quit: .]
<Ox0dea> I wrote my entire solution to Project Euler #54 on paper in C.
<VeryBewitching> I think I could program reality.
lubarch has joined #ruby
<Ox0dea> (I seriously did, but I'll spare us all the embarrassment of saying where and why.)
<VeryBewitching> I still write in C sometimes.
<VeryBewitching> Qt too
RegulationD has quit [Ping timeout: 264 seconds]
<shevy> you could write in ruby-qt
<shevy> my new year's task was to learn C in 2015
<VeryBewitching> Ya, the bindings on Ubuntu are bound to the system ruby
<shevy> I didn't do it :(
<VeryBewitching> Which I've removed
<VeryBewitching> But I could. Kross support in KDE will soon allow for writing scripts for the KDE desktop in Ruby; though I don't know how far along it is.
<shevy> what desktop environment are you using right now?
<VeryBewitching> C isn't so much difficult to learn as it is challenging to do well with, all the time. At least that's how it was for me.
<shevy> yeah
<shevy> ruby spoiled me
<shevy> but there is no way around C
UtkarshRay has quit [Remote host closed the connection]
mattwildig has joined #ruby
nateberkopec has joined #ruby
sankaber has quit [Read error: Connection reset by peer]
sankaber has joined #ruby
<shevy> hey
<shevy> did you shot shevy? :(
<VeryBewitching> A screenshot for you, that's Plasma 5
<shevy> I don't even know what that is... a mac?
<shevy> hmmmm
<shevy> looks like a mac to me!!!
<shevy> doesn't look like kde
<shevy> I am on fluxbox right now btw
<VeryBewitching> KDE allows you to create the desktop, essentially. I change it under certain scenarios.
<pontiki> Ox0dea: when you write out your solutions, do you do it in free verse, or do you use a coding sheet? :D
northfurr has quit [Quit: northfurr]
<VeryBewitching> Ox0dea: How did you do on #54?
<Ox0dea> pontiki: In this particular case, I just lay in the hammock for a while, then wrote the damned thing top-to-bottom.
slawrence00 has joined #ruby
northfurr has joined #ruby
<Ox0dea> VeryBewitching: I... solved it?
baweaver has joined #ruby
<VeryBewitching> Ox0dea: Excellent. :D
<pontiki> Ox0dea: was there beach nearby?
gambl0re has joined #ruby
<Ox0dea> pontiki: After a fashion.
vdamewood has quit [Quit: Life beckons.]
<pontiki> so mysterious
howdoi has joined #ruby
<Ox0dea> In any case, here it is: https://eval.in/468030
<VeryBewitching> I used to throw a gel stress ball up and down and walk around my house for a few hours and then go write code for 10 hours.
quazimodo has joined #ruby
<Ox0dea> It's excessively optimized, but that's what C is for these days.
<pontiki> koosh balls here
<quazimodo> has ruby 2.2+ got a way to 'uninclude' a module?
<quazimodo> i see that there have been several attempts at a library to do this
gix has quit [Read error: Connection reset by peer]
<quazimodo> but it appears that they are a little older
<pontiki> your courier penmanship is impeccable
<Ox0dea> quazimodo: It can be done from a C extension, but banister hasn't touched remix in forever.
<Ox0dea> pontiki: Ha!
beast_ has joined #ruby
<Ox0dea> I couldn't even begin to say where the original resides.
<quazimodo> Ox0dea: hrm ok.
* pontiki ponders, writing software in roundhand
_blizzy_ has quit [Quit: Leaving]
<quazimodo> I'll use another approach then :)
<Ox0dea> quazimodo: I've been trying to "unprepend" with Fiddle, but no luck.
scripore has quit [Quit: This computer has gone to sleep]
zachrose__ has joined #ruby
zachrose has quit [Ping timeout: 250 seconds]
zachrose__ is now known as zachrose
diegoaguilar has joined #ruby
tkuchiki has quit [Remote host closed the connection]
zachrose is now known as Guest50954
<Ox0dea> Each non-singleton Ruby object's first 16 bytes in memory are some flags and its class; I thought copying these from the original before prepending then sticking them back in after might do the trick, but it didn't.
iateadonut has quit [Quit: Leaving.]
braincrash has quit [Quit: bye bye]
diegoaguilar has quit [Read error: Connection reset by peer]
<Ox0dea> quazimodo: I have good news.
blue_deref has quit [Quit: bbn]
<quazimodo> Ox0dea: they invented teleportation that can be used to teleport food out of your stomach so you can eat and eat and eat ?
<Ox0dea> No, but you can uninclude modules. :P
nateberkopec has quit [Ping timeout: 260 seconds]
diegoaguilar has joined #ruby
<Ox0dea> quazimodo: https://eval.in/468033
<Ox0dea> That `n` will need to be 20 if you're on 64-bit.
DLSteve has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<quazimodo> ha
gix has joined #ruby
devbug has joined #ruby
abucha has joined #ruby
kstuart has quit [Ping timeout: 276 seconds]
<quazimodo> Ox0dea: that seems scary
<Ox0dea> quazimodo: Just do it.
<Ox0dea> What could possibly go wrong?
bruno- has joined #ruby
<Ox0dea> (I'm not being facetious, mind.)
<Ox0dea> Ruby's method lookup algorithm is remarkably simple; if you remove the module from the ancestor chain, it won't participate.
bruno- is now known as Guest3957
mattwildig has quit [Remote host closed the connection]
<quazimodo> so you need to hold onto the old pointer location
braincrash has joined #ruby
<quazimodo> before you do your include
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Well, yeah; is that a dealbreaker?
<quazimodo> and if in between your include & uninclude 10 other things get included what happens
<Ox0dea> Chaos.
<quazimodo> which in a testing scenario
<quazimodo> since i'm only doing this in specs
<Ox0dea> This is your fault for wanting to uninclude, you know.
<Ox0dea> Why not just `include` into anonymous classes instead?
<quazimodo> yepss
<quazimodo> that's an incredible idea
<quazimodo> i like
<Ox0dea> Yay, Ruby!
<quazimodo> here's another one
<quazimodo> how do you mock a method on a class (this is in rspec) if that method is defined on an anonymous module (the class actually doesn't have that method so rspec doesn't let you mock it)f
nomad__ has quit [Ping timeout: 240 seconds]
northfurr has quit [Quit: northfurr]
<Ox0dea> Probably just reconsider some things.
ESpiney has joined #ruby
<Ox0dea> >> Class.new.include(Module.new { def foo; end }).new.respond_to? :foo # quazimodo
<ruboto> Ox0dea # => true (https://eval.in/468034)
<Ox0dea> All that anonymity and it still responds just fine.
<quazimodo> Ox0dea: i like you
<quazimodo> why is your name Ox0dea
<Ox0dea> They're my initials.
Guest3957 has quit [Ping timeout: 265 seconds]
<Ox0dea> ~ $ whoami
<Ox0dea> dea
axl_ has joined #ruby
<Ox0dea> If you were asking why I'm using a capital O in a hexadecimal prefix, it's because some IRC RFC somewhere is stupid and dumb.
<shevy> god your nick is so weird Ox0dea
htmldrum has quit [Ping timeout: 240 seconds]
dimasg has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
vdamewood has joined #ruby
sankaber has joined #ruby
<pontiki> weirder than mine?
x-light has quit [Ping timeout: 276 seconds]
<VeryBewitching> Only I am VeryBewitching
<shevy> pontiki you don't have any O disguised as 0!
* pontiki squeeqs @ VeryBewitching
<quazimodo> Ox0dea: can't do it mate
<quazimodo> everything's fuckd
<quazimodo> it's because of how grape works
<pontiki> hummm. it always seemed so obvious to me...
<VeryBewitching> l2monospace people
<Ox0dea> pontiki: That word is very nearly palindromic and onomatopoeic.
<VeryBewitching> It's clearly a O and not a 0 to those with the will to change fonts.
northfurr has joined #ruby
<Ox0dea> Slashed zero best zero.
<pontiki> innit? :D
<Ox0dea> VeryBewitching: Font of choice?
rbowlby has joined #ruby
<Ox0dea> (There are only two correct answers.)
<VeryBewitching> Source Code Pro 9
<VeryBewitching> In IRC
<pontiki> usually i spell it "sqeeqs" dunno why i put in the 'u' this time
<Ox0dea> It's so tall! :<
<Ox0dea> Tamsyn forever, OhSnap when I'm feeling silly.
djbkd has joined #ruby
<VeryBewitching> Mine is set to Semibold though
<VeryBewitching> I like dense lettering on the desktop.
<pontiki> screenshot?
<quazimodo> Ox0dea: why does fiddle give you pointer access?
<Ox0dea> quazimodo: Because Ruby is awesome?
<quazimodo> yeah but why does -fiddle- have that
devoldmx has joined #ruby
tjohnson has quit [Quit: Connection closed for inactivity]
<Ox0dea> quazimodo: It's for interfacing with C, why wouldn't it?
<pontiki> that's a *seriously* awesome backdrop, VeryBewitching
<VeryBewitching> Ya, I like that one.
<VeryBewitching> I like grayscale.
<pontiki> when i shot analog film, black&white was my film / paper of choice
<pontiki> still love it so much
<pontiki> colour sometimes really gets in my way in painting class too, weird as that sounds
<Ox0dea> This is OhSnap: http://i.imgur.com/38a4ypy.png
<Ox0dea> I pretty much exclusively use it when I'm writing LOLCODE. ^_^
qiukun has quit [Quit: qiukun]
bruce_lee has quit [Changing host]
bruce_lee has joined #ruby
<VeryBewitching> pontiki: Colour reminds you what the mind won't accept if you're willing to colour against the norm.
<pontiki> haha, that is awesome! great playtime font
devoldmx has quit [Ping timeout: 240 seconds]
arescorpio has quit [Quit: Leaving.]
<Ox0dea> VeryBewitching: Should we morally oppose the rainbow?
<Ox0dea> Rather, are we morally obligated to do so?
<pontiki> the grey-bow flag?
<Ox0dea> That is a thing, I think.
<pontiki> might be, there's tons of them
<VeryBewitching> Ox0dea: Don't get me started in that direction, cause this channel will become #metaphysical
<Ox0dea> Bring it.
<Ox0dea> Metaphysics is my shit.
poguez_ has quit [Quit: Connection closed for inactivity]
astrobunny has quit [Remote host closed the connection]
<VeryBewitching> If you vary the colours in the rainbow, in a painting, whathaveyou, you are creating two many new uses in the process of finding the tone you're looking for.
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qiukun has joined #ruby
<pontiki> for me, trying the make the colour right causes me to lose the picture itself
_whitelogger has joined #ruby
<Ox0dea> VeryBewitching: But what is really lost in that process? Ought we have any investiture in the fates of the hues unused?
Muz_ is now known as Muz
<pontiki> shape, line, texture, pattern still seem to do best for me
Yzguy has quit [Quit: Cya]
<pontiki> lots of people like my value studies, not so much the colour versions
northfurr has quit [Quit: northfurr]
<VeryBewitching> pontiki: Could be that you're more interested in definition and structure than in impact beyond yourself at this time in your process. Keep painting. :)
<pontiki> *shrug*
<pontiki> oh yeah, i'm not looking for answers
astrobunny has joined #ruby
<pontiki> just questions to explore
<quazimodo> Ox0dea: the gem says it's about reporting?
<Ox0dea> I don't particularly like to have to say it, but color is very important.
<Ox0dea> quazimodo: Fiddle is in the standard library?
<Ox0dea> Wrong one.
<pontiki> VeryBewitching: for a stretch of a few months, i had a moratoreum on colour painting
Yzguy has joined #ruby
<quazimodo> oh?
<Ox0dea> >> require 'fiddle'; Fiddle # quazimodo
<ruboto> Ox0dea # => Fiddle (https://eval.in/468041)
<quazimodo> oh jesus
<VeryBewitching> Ox0dea: Lost and gained.
<quazimodo> that's a rails engine
<quazimodo> <- dumb
<Ox0dea> quazimodo: I mean, I demonstrated right there on eval.in? :P
<VeryBewitching> pontiki: I like to sketch concepts.
diegoaguilar has quit [Ping timeout: 246 seconds]
lubarch has quit [Quit: leaving]
<pontiki> is pictionary your favourite game, too?
maxz_ has quit [Quit: Textual IRC Client: www.textualapp.com]
lubarch has joined #ruby
<VeryBewitching> Uh, no, because my sketches only make sense to me :D
chastised has quit [Quit: Leaving]
<VeryBewitching> Like I sketch the concept of 'hanging' and it does.. not look like that
<quazimodo> Ox0dea: I am dumb ok
<Ox0dea> quazimodo: Okay.
devoldmx has joined #ruby
<Ox0dea> pontiki, VeryBewitching: What color should her dress be? http://i.imgur.com/qdb1ZX3.jpg
<Ox0dea> Or do you feel that the image is impactful enough as is?
solars has joined #ruby
blackmes1 has joined #ruby
<Ox0dea> I do appreciate that it would've been painted very differently if they'd done it in grayscale from the first.
Arkon has joined #ruby
charliesome has joined #ruby
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<VeryBewitching> If it were coloured and I was bound to that task, since it looks more like hide than cloth, I would chose soft-hide tanning tones.
Oatmeal has joined #ruby
Oatmeal has quit [Max SendQ exceeded]
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<VeryBewitching> But... I parsed the image for a girl in the dress.
<Ox0dea> How do you mean?
<VeryBewitching> I didn't parse her situation, just her.
<VeryBewitching> I didn't look at the *whole* picture
tlarevo_ has joined #ruby
<Ox0dea> I guess I'll cut to the chase: http://i.imgur.com/l7w63lK.jpg
<Ox0dea> That she and her flower alone contribute color to the scene is quite poignant.
<VeryBewitching> Ah, the flower
<VeryBewitching> Yes
qiukun has quit [Quit: qiukun]
makenoise has quit []
<Ox0dea> Much is lost without color in this particular case, is the point I'm driving toward.
blackmes1 has quit [Ping timeout: 240 seconds]
<pontiki> is just the dress to have colour and the rest of the image to remain b&w mono?
<VeryBewitching> The flower isn't noticable in the B&W
<Ox0dea> The background of the colored image could well be described as "gray", in my estimation.
<pontiki> i see it quite well
davedev24 has quit [Remote host closed the connection]
<VeryBewitching> I do now that I've seen the coloured image, but I didn't before.
<pontiki> i'd colour the petals bright yellow, the dress deep red and leave the rest as it currently is
Rickmasta has joined #ruby
<Ox0dea> Sin City-style, then?
<pontiki> i wouldn't know
x-light has joined #ruby
<pontiki> yellow flowers denote friendship, and red denotes passion and sex
<VeryBewitching> Also mortality and pain.
<VeryBewitching> Depending on whom you ask.
<pontiki> i was asking me
diegoaguilar has joined #ruby
<Ox0dea> Virtually every speaking culture has words for black, white, red, and yellow.
Arkon has quit [Remote host closed the connection]
<Ox0dea> Are these the most "natural" colors?
<pontiki> of that, i have no idea
<VeryBewitching> They might be the most common.
shinenelson has joined #ruby
<Ox0dea> Surely we'd expect to find green in there, and yet even Japanese isn't on solid ground there.
<Ox0dea> Minus a "there" somewhere.
tkuchiki has joined #ruby
<pontiki> there's *tons* of variation in "green" -- very hard to pin down
* VeryBewitching is blue/green colourblind.
<Ox0dea> Oh, Stage III is apparently "green or yellow": https://en.wikipedia.org/wiki/Basic_Color_Terms:_Their_Universality_and_Evolution
doll has quit [Ping timeout: 246 seconds]
<VeryBewitching> So their description of it would have survived earliest language formation.
<VeryBewitching> As you often have to refer to a colour to refer to an object
* pontiki passes VeryBewitching an orange
* VeryBewitching is diabetic :)
<VeryBewitching> Keep the sugar away from me
<pontiki> i didn't say you had to eat it
nofxx has quit [Remote host closed the connection]
<VeryBewitching> I'd want to
<VeryBewitching> haha
<pontiki> i'm keeping the red for myself :P
gix has quit [Ping timeout: 240 seconds]
wa_r_ch_i__ld1 has joined #ruby
<wa_r_ch_i__ld1> does Ruby have the equivalent of Java's KeyEvent (i.e to generate a keyboard input)?
<BraddPitt> to generate or capture?
<tomdp> It doesn't.
nateberkopec has joined #ruby
<VeryBewitching> pontiki: I like puns, too.
<wa_r_ch_i__ld1> to generate
<Ox0dea> wa_r_ch_i__ld1: But that's not what Java's KeyEvent does.
<tomdp> I'm sure you can interface with it via JRuby though. I don't know anything about JRuby
<wa_r_ch_i__ld1> I meant KeyPress on a keyevent ;)
dionysus69 has joined #ruby
<Ox0dea> wa_r_ch_i__ld1: Are you making a game?
dionysus69 has quit [Remote host closed the connection]
<wa_r_ch_i__ld1> nope
<wa_r_ch_i__ld1> trying to fill in a browser based authentication popup
<wa_r_ch_i__ld1> ;)
<Ox0dea> wa_r_ch_i__ld1: There are several Ruby libraries for browser driving.
dionysus69 has joined #ruby
<tomdp> You could try browser automation using watir or something
<wa_r_ch_i__ld1> its rails 2
<tomdp> Beat me to it :)
<wa_r_ch_i__ld1> watir 0.0.1 needs ruby >=1.9.2
<Ox0dea> Onoes!
<Ox0dea> Are you on Ruby 0.49?
<wa_r_ch_i__ld1> haha
ramfjord_ has quit [Ping timeout: 260 seconds]
<wa_r_ch_i__ld1> 1.8.7
<Ox0dea> Same thing.
gix has joined #ruby
<VeryBewitching> haha
<wa_r_ch_i__ld1> yep
nateberkopec has quit [Ping timeout: 255 seconds]
ebbflowgo has quit [Quit: ebbflowgo]
bruno- has joined #ruby
bruno- is now known as Guest93055
Guest50954 has quit [Quit: Guest50954]
<Ox0dea> wa_r_ch_i__ld1: Is this to be run on your local machine, then?
<wa_r_ch_i__ld1> eventually on a server
<tomdp> An old version of mechanize might run on 1.8
<Ox0dea> Then you're really gonna want a headless browser. ^
<wa_r_ch_i__ld1> @Ox0dea not an options here ;)
<Ox0dea> Whale, you're SOL, I reckon.
zachrose has joined #ruby
<wa_r_ch_i__ld1> @tomdp I dont think mechanize can get to a browser generated popup
<pontiki> switch to node and use phantomjs
<Ox0dea> He can't.
<Ox0dea> It's 2001 wherever he is.
<shevy> lol
<shevy> and the nick
<pontiki> HAL could do it
<shevy> he deliberately picked it with the _
<Ox0dea> I've been trying to fill in the blanks since he joined.
<tomdp> @wa_r_ch_i__ld1 is it a JS popup, outside the DOM?
sdwrage has quit [Quit: This computer has gone to sleep]
<wa_r_ch_i__ld1> it isnt JS
Guest93055 has quit [Ping timeout: 264 seconds]
<Ox0dea> Are you sure?
<wa_r_ch_i__ld1> yeah
<tomdp> What generates the popup?
axl_ has joined #ruby
<wa_r_ch_i__ld1> the browser
<pontiki> well, i'm stumped. i don't know any browsers than can generate events without javascript
<pontiki> even way back in 2001
<tomdp> what code that the browser is reading? Is it like an apache basic auth style thing?
<wa_r_ch_i__ld1> second answer first paragraph
lianj_ is now known as lianj
bb010g has joined #ruby
<tomdp> Ah! So, yeah, you need deep browser automation, outside the DOM
<Ox0dea> > deep
<Ox0dea> wa_r_ch_i__ld1: Is the server running Linux and a GUI?
<wa_r_ch_i__ld1> yep
darkf has joined #ruby
<Ox0dea> xdotool it is!
darkf has quit [Changing host]
darkf has joined #ruby
<Ox0dea> It's like AutoIt for Unix.
<wa_r_ch_i__ld1> ah i heard of that
<tomdp> totally
<Ox0dea> !next
<wa_r_ch_i__ld1> haha
<wa_r_ch_i__ld1> I will try some things out brb
<wa_r_ch_i__ld1> thx
<Ox0dea> Happy to help.
postmodern has quit [Quit: Leaving]
dimasg has quit [Ping timeout: 246 seconds]
axl_ has quit [Ping timeout: 240 seconds]
Yzguy has quit [Quit: Zzz...]
Rodya_ has joined #ruby
tref has joined #ruby
mary5030 has joined #ruby
anfeardubh has joined #ruby
Rodya_ has quit [Remote host closed the connection]
Rodya_ has joined #ruby
brushbox has quit [Quit: brushbox]
x-light has quit [Ping timeout: 244 seconds]
solocshaw has quit [Ping timeout: 240 seconds]
pdoherty has joined #ruby
maletor has joined #ruby
Arkon has joined #ruby
tomphp has joined #ruby
tomphp has quit [Client Quit]
IrishGringo has quit [Ping timeout: 246 seconds]
yfeldblum has joined #ruby
ReK2 has joined #ruby
Rodya_ has quit [Remote host closed the connection]
anfeardubh has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
Rodya_ has joined #ruby
duncannz has quit [Ping timeout: 260 seconds]
<VeryBewitching> HTTP_AUTH
simplyianm has quit [Remote host closed the connection]
<VeryBewitching> Causes the browser to generate a prompt without JS
simplyianm has joined #ruby
<VeryBewitching> Usually implemented in .htaccess files
Rodya_ has quit [Remote host closed the connection]
sdwrage has joined #ruby
Rodya_ has joined #ruby
Rodya_ has quit [Remote host closed the connection]
XxionxX has left #ruby [#ruby]
blackmes1 has joined #ruby
RegulationD has joined #ruby
devoldmx has quit [Remote host closed the connection]
Rodya_ has joined #ruby
diegoaguilar has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
blackmes1 has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
h99h9h88 has joined #ruby
araujo__ has joined #ruby
Melpaws1 has quit [Quit: Leaving.]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Lucky__ has joined #ruby
Arkon has quit [Remote host closed the connection]
araujo has quit [Ping timeout: 265 seconds]
Rickmasta has joined #ruby
Arkon has joined #ruby
Arkon_ has joined #ruby
bubbys has quit [Ping timeout: 260 seconds]
<shevy> so what are you people doing
<shevy> who is writing the next breakthrough
ramfjord has joined #ruby
Arkon has quit [Ping timeout: 240 seconds]
mary5030 has quit [Remote host closed the connection]
<pontiki> no one will know until it breaks through
kobain has quit [Quit: KVIrc 4.1.3 Equilibrium http://www.kvirc.net/]
roxtrongo has quit [Remote host closed the connection]
djbkd has quit [Remote host closed the connection]
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
<baweaver> well my break is about through
<baweaver> does that count?
<Ox0dea> shevy: I found out that the four bytes after an Object's RBasic struct contain its included ancestors, so I wrote this: https://eval.in/468047
djbkd has joined #ruby
<Ox0dea> Why you would realistically need ephemeral inclusion is difficult to say.
<VeryBewitching> I got a 500 at that URL
<zotherstupidguy> shevy i dont think the people who write the next breakthrough hanghout here :)
nofxx has joined #ruby
<VeryBewitching> shevy: I'm usually always working on something that I find is of use to me, at this time of night :D
nateberkopec has joined #ruby
<Ox0dea> I'm checking under every rug for a workaround around the fact that we can refine #method_missing but not #const_missing.
<pontiki> lemur: did you write your break? through? :D
astrobunny has quit [Remote host closed the connection]
<shevy> zotherstupidguy :(
<zotherstupidguy> shevy its ok, its fun here :)
pimpin has joined #ruby
darkxploit has quit [Quit: Leaving]
<shevy> Ox0dea, https://eval.in/468047 you did it... I see an "Internal Server Error"
<Ox0dea> It's loading just fine over here.
<baweaver> oh I've made one for rails, I just can't Open Source it yet....
<zotherstupidguy> shevy alibaba looks like sh*t and got a lot of billions in one day :D i don't think they do breakthroughs :)
trosborn has joined #ruby
<baweaver> let's just say you can do some real fun things with ActiveRecord when you hack it a bit.
<Ox0dea> Alibaba was something of a cultural breakthrough.
<zotherstupidguy> thats very true!! the funny thing for me i was hangzhou, alibaba's base a couple of month ago, i didnt know the whole story of alibaba then
<Ox0dea> shevy, VeryBewitching: In case you're real keen on seeing it: http://ideone.com/qvD2LB
nofxx has quit [Ping timeout: 246 seconds]
<Ox0dea> I think it's nifty, but it's not enough to emulate the scope magic of `using`.
<shevy> I don't know what you are doing
<Ox0dea> I want fine-grained control over constant resolution at the top level!
nateberkopec has quit [Ping timeout: 272 seconds]
<Ox0dea> This is the language to sate that desire, dammit.
<Ox0dea> And yet, it's not. :<
<VeryBewitching> shevy: He's playing with fire, imo
<shevy> yeah
<shevy> he is trying to break things
mattwildig has joined #ruby
<VeryBewitching> I wouldn't go that far.
<VeryBewitching> You know the phrase "It's not your driving I worry about, it's the other people on the road?"
bruno- has joined #ruby
bruno- is now known as Guest21113
<pontiki> lol
nofxx has joined #ruby
<Ox0dea> Bloodletting actually has medicinal value in rare cases.
<VeryBewitching> Ox0dea: Exactly.
<Ox0dea> I like that we're on the same page in this weird book.
diegoaguilar has joined #ruby
<zotherstupidguy> what book?
<VeryBewitching> THAT ONE
<pontiki> the on ewith leeches on the cover
<Ox0dea> There's an O'Reilly animal I've not seen.
<VeryBewitching> pontiki: k, definitely in different books
marcosantoniocar has quit [Read error: Connection reset by peer]
trosborn has quit [Quit: trosborn]
mattwildig has quit [Ping timeout: 260 seconds]
nofxx has quit [Client Quit]
Guest21113 has quit [Ping timeout: 240 seconds]
last_staff has joined #ruby
<VeryBewitching> I'm in the book where I play myself playing myself.
dhjondoh has joined #ruby
axl_ has joined #ruby
x-light has joined #ruby
<pontiki> how meta
framling has joined #ruby
<VeryBewitching> Every day we put on a face to meet the faces we'll meet.
<VeryBewitching> It's not just meta, it's true. If it weren't, I'd be worried.
tvw has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
<framling> M-x buffer-face-set
<Ox0dea> Okay, Arya Stark.
<zotherstupidguy> framling :)
<framling> thought I'd bring it around to #emacs
kerunaru has joined #ruby
<framling> except
<framling> I'm in #ruby
<framling> shit
<framling> I was in #emacs
<Ox0dea> framling: #ruby is just the face you're currently wearing.
<framling> I feel silly
tkuchiki has quit [Remote host closed the connection]
<framling> #e\t is close to #r\t
<Ox0dea> framling: Hey, what actually happens in butterfly mode?
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Ox0dea> Never mind; the Internet knew.
<framling> well that was funny
Mon_Ouie has quit [Ping timeout: 240 seconds]
<Ox0dea> Nuh-uh.
astrobunny has joined #ruby
<framling> yeah, not really
qiukun has joined #ruby
<framling> and anyway, you can't actually type the real version, since you don't have a butterfly key
<Ox0dea> Who says I don't have a butterfly key?
<framling> s/you/I/
arup_r has joined #ruby
<pontiki> everyone with a mac has at least two
<framling> g
h99h9h88 has quit [Remote host closed the connection]
Rickmasta has joined #ruby
<arup_r> Ruby doc is down ? http://ruby-doc.org/core/IO.html
<arup_r> it effects my productivity :p
<VeryBewitching> Ox0dea: Tleilaxu.
maletor has quit [Quit: Computer has gone to sleep.]
mozzarella has quit [Quit: WeeChat 1.2]
<arup_r> lets lest here..
<arup_r> >> IO.new
<ruboto> arup_r # => wrong number of arguments (0 for 1..2) (ArgumentError) ...check link for more (https://eval.in/468080)
pimpin has quit [Remote host closed the connection]
mozzarella has joined #ruby
pimpin has joined #ruby
<arup_r> oh. That is why I need the doc to read :D
<Ox0dea> arup_r: You have ri, don't you?
jessemcgilallen has joined #ruby
<Ox0dea> VeryBewitching: Gesserit?
<VeryBewitching> Tleilaxu == FaceDancer
<Ox0dea> Oh, I see.
<arup_r> Here https://github.com/teampoltergeist/poltergeist, in this option `phantomjs_logger` I need to give a IO like object, so that I can suppress the JS console.log .. What is the good IO object for this ?
<VeryBewitching> Or rather Tleilaxu.is_a? FaceDancer would be more appropriate
<arup_r> Ox0dea: No I didn't install it
<Ox0dea> framling: The Model 01 has an Any key *and* a butterfly key: http://i.imgur.com/T8a3s92.jpg
<framling> ooh, that's nice
<Ox0dea> >> IO::NULL # arup_r
<ruboto> Ox0dea # => "/dev/null" (https://eval.in/468081)
<Ox0dea> It's a shame that doesn't return an IO, though.
<arup_r> Never heard of it.. thanks Bro!
tenderlo_ has joined #ruby
<pontiki> VeryBewitching: i thought the face dancers were made by the tleilaxu
<Ox0dea> arup_r: It won't serve your purpose; I just wanted to showcase its existence.
<arup_r> Ox0dea: it wouldn't work
<pontiki> it's been aeons since i've read any dune
<Ox0dea> arup_r: How about a StringIO, then?
<VeryBewitching> pontiki: Bene Tleilax, some of there order were Face Dancers.
<arup_r> Ox0dea: Tempfile.new(IO::NULL)
<VeryBewitching> Others were genecists.
<Ox0dea> arup_r: Yep, that'll do.
<Ox0dea> But so would a StringIO.
<arup_r> Ox0dea: You are my Rubyist
<pontiki> hmm
<pontiki> not master / servant?
<arup_r> Ox0dea: How to use StringIO ? the doc is down :( couldn't see
<arup_r> StringIO.new
<arup_r> ?
<Ox0dea> I mean, yeah, that's how you get hold of one?
<Ox0dea> There are dozens of Ruby documentation sites, mate.
<VeryBewitching> pontiki: Kind of, but can you be a servant if you're genetically loyal?
<pontiki> you can even generate the docs afterwards
<arup_r> I always look over there..
<pontiki> VeryBewitching: an interesting existential questy, which herbert ignores?
<arup_r> I became unprodictive due to this..
<arup_r> :/
<framling> this model 01...
<VeryBewitching> pontiki: I think Herbert left a lot up to the reader to decide.
<framling> $299 for one
<framling> $549 for 2
<Ox0dea> framling: But don't you just love it?
<arup_r> They don't bother India timezone before stopping the doc server
<framling> $2900 for ten ("startup pack")
<framling> but... it's cheaper to buy 5 2-packs at $2745
<framling> what on earth
dimasg has joined #ruby
<pontiki> arup_r: it's up from the states
tmtwd has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
devoldmx has joined #ruby
tenderlove has quit [Ping timeout: 276 seconds]
charliesome_ has joined #ruby
last_staff has quit [Quit: last_staff]
dtordabl1 has quit [Quit: Lost terminal]
charliesome has quit [Read error: Connection reset by peer]
tkuchiki has joined #ruby
dtordable has joined #ruby
Vile` has quit [Ping timeout: 276 seconds]
<dtordable> e
devoldmx_ has joined #ruby
aganov has joined #ruby
armyriad has quit [Read error: Connection reset by peer]
devoldmx has quit [Ping timeout: 240 seconds]
axsuul has joined #ruby
mary5030 has quit [Remote host closed the connection]
Paradox has quit [Quit: off to herp the derps]
dimasg has quit [Ping timeout: 264 seconds]
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
aufi has joined #ruby
AnoHito has quit [Ping timeout: 272 seconds]
Paradox has joined #ruby
AnoHito has joined #ruby
axsuul has quit [Ping timeout: 252 seconds]
ta has quit [Remote host closed the connection]
dionysus69 has quit [Ping timeout: 252 seconds]
<VeryBewitching> arup_r: http://devdocs.io/ <-- offline browsing ftw
<arup_r> k
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> VeryBewitching: Is this yours? http://i.imgur.com/pqcPtl6.jpg
psy_ has quit [Read error: Connection reset by peer]
Spami has joined #ruby
zotherstupidguy has quit [Ping timeout: 250 seconds]
x-light has quit [Ping timeout: 240 seconds]
<VeryBewitching> Now that's a sight that can use consideration.
charliesome has joined #ruby
charliesome_ has quit [Read error: Connection reset by peer]
zotherstupidguy has joined #ruby
andikr has joined #ruby
dionysus69 has joined #ruby
abucha_ has joined #ruby
arup_r has quit [Ping timeout: 255 seconds]
<certainty> moin
dionysus69 has quit [Remote host closed the connection]
Cesario has joined #ruby
abucha has quit [Ping timeout: 244 seconds]
dionysus69 has joined #ruby
norc has joined #ruby
roxtrongo has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
xcesariox has joined #ruby
Arkon_ has quit [Remote host closed the connection]
ibouvousaime_ has joined #ruby
Pupp3tm4st3r has joined #ruby
qiukun has quit [Ping timeout: 264 seconds]
Arkon has joined #ruby
devl has quit [Ping timeout: 240 seconds]
framling has quit [Read error: Connection reset by peer]
qiukun has joined #ruby
nateberkopec has joined #ruby
roxtrongo has quit [Ping timeout: 240 seconds]
pimpin has quit [Remote host closed the connection]
dlitvak has joined #ruby
beast__ has joined #ruby
arup_r has joined #ruby
arup_r is now known as Guest99077
Guest99077 is now known as arup_r
grill has joined #ruby
beast_ has quit [Ping timeout: 240 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
gambl0re has quit [Ping timeout: 265 seconds]
beast has joined #ruby
nateberkopec has quit [Ping timeout: 240 seconds]
beast__ has quit [Ping timeout: 255 seconds]
psy_ has joined #ruby
Kabal has quit [Ping timeout: 240 seconds]
Mon_Ouie has joined #ruby
mooe has joined #ruby
bruno- has joined #ruby
bruno- is now known as Guest41314
whitesn has left #ruby ["WeeChat 1.0.1"]
kerunaru has joined #ruby
pimpin has joined #ruby
qiukun has quit [Quit: qiukun]
<wa_r_ch_i__ld1> @Ox0dea so xdotool is working and i know how to send the key value and check for the window etc, but now I have the issue of only calling it if the popup has already been rendered, trying to figure out how I can check for that in the JS
<wa_r_ch_i__ld1> apparently its impossible ;)
Guest41314 has quit [Ping timeout: 252 seconds]
axl_ has joined #ruby
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mostlybadfly has quit [Quit: Connection closed for inactivity]
favadi has joined #ruby
h99h9h88 has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<VeryBewitching> That prompt precedes the DOM being loaded.
<VeryBewitching> Or I would be quite surprised if it didn't.
x-light has joined #ruby
rgtk has joined #ruby
jessemcgilallen has quit [Ping timeout: 244 seconds]
<wa_r_ch_i__ld1> @VeryBewitching ah so document ready should work
<wa_r_ch_i__ld1> ;-D
<wa_r_ch_i__ld1> thanks
<VeryBewitching> No.
<VeryBewitching> When you receive a challenge for that type of authentication, no data has transfered hands yet.
<VeryBewitching> Other than the request to authenticate.
vdamewood has quit [Ping timeout: 240 seconds]
ruurd has joined #ruby
<VeryBewitching> Unless you authenticate, you shouldn't see the result HTML/JS that would be served at that location.
ta has joined #ruby
abucha has joined #ruby
Vile` has joined #ruby
<wa_r_ch_i__ld1> i'd hate to rely on sleep()
Arkon has quit [Remote host closed the connection]
rgtk has quit [Ping timeout: 260 seconds]
arup_r has quit [Quit: Leaving]
pimpin has quit [Remote host closed the connection]
Arkon has joined #ruby
devl has joined #ruby
_stu_ has quit [Quit: _stu_]
Arkon has quit [Read error: Connection reset by peer]
pimpin has joined #ruby
tmtwd has joined #ruby
Arkon has joined #ruby
abucha_ has quit [Ping timeout: 265 seconds]
gigatexal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> wa_r_ch_i__ld1: You're probably gonna have to poll the window title. :<
<wa_r_ch_i__ld1> from bash?
<wa_r_ch_i__ld1> ive got something like
<wa_r_ch_i__ld1> a = `if wmctrl -l|awk '{$3=""; $2=""; $1=""; print $0}' | grep "Authentication Required"; then echo true; fi`
<wa_r_ch_i__ld1> but trying to keep it running in rails
<wa_r_ch_i__ld1> not sure
framling has joined #ruby
MacroniSalad has quit [Quit: MacroniSalad]
beast_ has joined #ruby
krz has joined #ruby
<Ox0dea> Yikes.
ESpiney has quit [Read error: Connection reset by peer]
<Ox0dea> I decided to recreate M-x butterfly for the midkeks: https://asciinema.org/a/azri7gk1547wfj0j1j7ew75pg
<Ox0dea> framling: ^
<framling> an appropriate use of time if I've ever seen one!
<Ox0dea> I used `tput civis` to hide the cursor, but asciinema didn't pick it up.
Rickmasta has joined #ruby
axsuul has joined #ruby
beast has quit [Ping timeout: 272 seconds]
sinkensabe has joined #ruby
lubarch has quit [Ping timeout: 250 seconds]
pimpin has quit [Remote host closed the connection]
lsmola has quit [Quit: Leaving]
qiukun has joined #ruby
lsmola has joined #ruby
axsuul has quit [Ping timeout: 244 seconds]
ta has quit [Remote host closed the connection]
stamina has joined #ruby
qiukun has quit [Ping timeout: 240 seconds]
symm- has joined #ruby
blackmes1 has joined #ruby
RegulationD has joined #ruby
User458764 has joined #ruby
clauswitt has joined #ruby
skade has joined #ruby
qiukun has joined #ruby
ghormoon has joined #ruby
neanderslob has quit [Ping timeout: 240 seconds]
blackmes1 has quit [Ping timeout: 240 seconds]
neanderslob has joined #ruby
makenoise has joined #ruby
stamina has quit [Ping timeout: 240 seconds]
RegulationD has quit [Ping timeout: 265 seconds]
stan has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
riotjone_ has quit [Quit: Leaving...]
User458764 has quit [Quit: Textual IRC Client: www.textualapp.com]
odigity has quit [Remote host closed the connection]
pimpin has joined #ruby
<wa_r_ch_i__ld1> @VeryBewitching i've tried that, it wont work for NTLM (microsoft auth)
Pumukel has joined #ruby
<wa_r_ch_i__ld1> i just need rails to execute xdotool when the auth renders
<wa_r_ch_i__ld1> ;)
ruurd has joined #ruby
Averna has joined #ruby
ta has joined #ruby
symm- has quit [Ping timeout: 260 seconds]
qiukun has quit [Read error: Connection reset by peer]
lubarch has joined #ruby
beast has joined #ruby
scmx has joined #ruby
mary5030 has joined #ruby
qiukun has joined #ruby
Xeago has joined #ruby
beast_ has quit [Ping timeout: 240 seconds]
Vile` has quit [Ping timeout: 260 seconds]
podman has quit [Quit: Connection closed for inactivity]
mikecmpbll has joined #ruby
<VeryBewitching> wa_r_ch_i__ld1: https://msdn.microsoft.com/en-ca/library/windows/desktop/aa378749(v=vs.85).aspx read the comment to this article.
<wa_r_ch_i__ld1> :) yeah it isnt my call
Averna has quit [Ping timeout: 260 seconds]
clauswitt has quit [Remote host closed the connection]
clauswitt has joined #ruby
mary5030 has quit [Ping timeout: 240 seconds]
riotjones has joined #ruby
<VeryBewitching> It unfortunately sounds like you're trying to catch a bear with a grapefruit.
quazimodo has quit [Ping timeout: 240 seconds]
naftilos76 has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
clauswitt has quit [Remote host closed the connection]
clauswitt has joined #ruby
lubekpl has joined #ruby
Vile` has joined #ruby
DEA7TH has joined #ruby
waka has quit [Read error: No route to host]
astrobu__ has joined #ruby
makenoise has quit []
astrobunny has quit [Read error: Connection reset by peer]
trosborn has joined #ruby
pimpin has quit [Remote host closed the connection]
axsuul has joined #ruby
<Ox0dea> I think wa_r_ch_i__ld1 is one of those people who's really been far as decided to use even go want to do look more like.
hahuang65 has joined #ruby
nateberkopec has joined #ruby
wa_r_ch_i__ld1 has quit [Ping timeout: 240 seconds]
codecop has joined #ruby
mattwildig has joined #ruby
Arkon has quit [Remote host closed the connection]
Arkon has joined #ruby
bruno- has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
bruno- is now known as Guest54624
trosborn has quit [Quit: trosborn]
nateberkopec has quit [Ping timeout: 250 seconds]
mattwildig has quit [Ping timeout: 240 seconds]
klingeldraht has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
Arkon has quit [Ping timeout: 240 seconds]
Guest54624 has quit [Ping timeout: 240 seconds]
axl_ has joined #ruby
duncannz has joined #ruby
Eiam_ has joined #ruby
_blizzy_ has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
Ropeney has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Rodya_ has quit [Remote host closed the connection]
dionysus69 has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
bMalum has quit [Quit: bMalum]
fedexo has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
<[spoiler]> VeryBewitching: do bears even like grapefruits?
trosborn has joined #ruby
moeabdol has quit [Read error: Connection reset by peer]
trosborn has quit [Client Quit]
subscope has joined #ruby
h99h9h88 has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
moeabdol has joined #ruby
<sjums> [spoiler] Bears do not like grapefruit
<Ox0dea> sjums: Prove it.
<sjums> I'm a bear
<sjums> I don't like grape fruit
<sjums> Done.
<[spoiler]> sjums: do you like belly rubs?
<sjums> OHH PLEASE WHERE ARE THEY?! :D
<[spoiler]> :D
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
<Ox0dea> sjums: That is a sufficiently large sample size from which to draw meaningful conclusions; I rescind my credulity.
<VeryBewitching> [spoiler]: Catch not lure ;)
beast has quit [Ping timeout: 265 seconds]
tubuliferous_ has joined #ruby
Xeago has quit [Read error: Connection reset by peer]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
vondruch has joined #ruby
<VeryBewitching> OK, time for sleep.
VeryBewitching has quit [Quit: Konversation terminated!]
<[spoiler]> http://thesiswhisperer.com/2013/02/13/academic-assholes/ I feel this is present in general CS/IT, though (might be carried over from previous academic environments).
<Ox0dea> *incredulity
<sjums> Ox0dea, I'm glad you corrected that. My non-native englished combined with a dictionary didn't make sense out of your sentence, and I felt stupid ._.
bMalum has joined #ruby
* sjums roars
timonv has quit [Ping timeout: 250 seconds]
<Ox0dea> English are hard sometime.
Pupp3tm4_ has joined #ruby
<sjums> is*
<Ox0dea> I used up all my fancy before the semicolon.
Pupp3tm4st3r has quit [Read error: No route to host]
<sjums> damn.. you're trolling :b
<Ox0dea> I really did mean "incredulity", though.
<sjums> You win this time, Ox0dea ! :D
<Ox0dea> There's a comma even most native writers don't use! <3
tubuliferous_ has quit [Ping timeout: 240 seconds]
<Ox0dea> So many cannibalized Susans.
<sjums> In danish (my native tounge) that's a pretty require comma in such a sentence
araujo__ has quit [Quit: Leaving]
<Ox0dea> Aye, it is required, but most people don't use it.
<Ox0dea> "Let's eat Susan." vs. "Let's eat, Susan.".
<sjums> :(
<sjums> Susan!! :(
<Ox0dea> Susan, wait! Don't get eated!
<sjums> eaten* ?
diegoaguilar has quit [Remote host closed the connection]
<sjums> you're not trolling again, are you?
<Ox0dea> All in good fun.
<sjums> From now on I believe your every mistake is intentional! :b
<Ox0dea> I shall deeply enjoy abusing this immunity.
lxsameer has joined #ruby
lxsameer has joined #ruby
TomyWork has joined #ruby
<Ox0dea> Many moons ago, I made the mistake of trying to convince a Dane to support UTF-8 because otherwise he wouldn't even be able to write in his own language.
<Ox0dea> I ate a particularly scrumptious crow when I realized Danish can be written with ASCII.
<Ox0dea> </storytime>
<sjums> didn't even know that æ, ø and å is in ASCII :3
pimpin has joined #ruby
_blizzy_ has quit [Quit: Leaving]
<Ox0dea> Whoops. He was Dutch.
<Ox0dea> My profound lack of linguistic culture is, as I'm sure you're aware, entirely intentional.
<norc> Ox0dea: I once tried to convince a colleague that 0 - 0.25 equals -0.75. Suffice it to say the stare in my face when I tried to prove my point with a calculator....
<norc> was priceless...
<Ox0dea> norc: That is cringe-worthy. :P
<Ox0dea> Oh, hey, you got merged!
<norc> Didn't feel a thing.
<Ox0dea> Ha.
<bhaak> well, the ij is certainly not in ASCII :)
jinie has quit [Remote host closed the connection]
<sjums> ij ?
<Ox0dea> Think "Dijkstra".
<bhaak> but of course there's an obvious ASCII representation
aphprentice has quit [Quit: Connection closed for inactivity]
<Ox0dea> norc: The dead code is now double-dead.
<Ox0dea> > And it's all thanks to you. Thank you, Mar^Wnorc.
<[spoiler]> > "I once tried to convince a colleague that 0 - 0.25 equals -0.75."; for a good three seconds I was like "it doesn't?"
<Ox0dea> [spoiler]: Would you like me to show you how 0.999... == 1?
<apeiros> thanks. early morning and faith in humanity already lost.
<sjums> Rule #2 Always double tap
<[spoiler]> Ox0dea: I know that one :P
astrobu__ has quit [Read error: Connection reset by peer]
astrobunny has joined #ruby
bubbys has joined #ruby
advorak has joined #ruby
<sjums> sorry apeiros, it's my fault, isn't it?
senayar has joined #ruby
<[spoiler]> Ox0dea: aren't mathematicians splut between for and against that, though?
<[spoiler]> splut!
mikecmpbll has quit [Quit: i've nodded off.]
<apeiros> splut, splotted, splotten
<[spoiler]> Sounds like an onomatopoeia
<Ox0dea> [spoiler]: No, I think not.
<matti> Hey apeiros
<apeiros> hi matti
<[spoiler]> sounds, reads, whatevs
<Ox0dea> [spoiler]: There's really no room for opinion on the matter; it just takes a slightly unintuitive leap to see the correctness of it.
<apeiros> I love how all my migrations have `def down; raise "NO!"; end`
<Ox0dea> There are no numbers between 0.999... and 1, so they must be equal.
pimpin has quit [Remote host closed the connection]
<apeiros> Ox0dea: uh, that argument is weak
<Ox0dea> Is it?
<apeiros> in IN, there's no number between 1 and 2. they are not equal.
bMalum has quit [Quit: bMalum]
<Ox0dea> What differentiates two numbers except the ability to place another between them?
scripore has joined #ruby
<apeiros> they're just adjacent
araujo has joined #ruby
<Ox0dea> Sure, but we're obviously talking about R.
SCHAAP137 has joined #ruby
araujo has quit [Max SendQ exceeded]
<[spoiler]> apeiros: it's "a thing" in general, but I find it strange even if I know about it. basically any X.000... == X-1.999... (same applies for X.Y000... == X.(Y-1)999...)
<norc> apeiros: adjacency in real numbers... ?
<bhaak> in R, they can't be adjacent as there are no adjacent numbers in R. you don't have a successor function there
<[spoiler]> oh the thing has a wiki page
araujo has joined #ruby
araujo has quit [Max SendQ exceeded]
<Ox0dea> And the "move the decimal" "proof" is rather convincing, even for most laypeople.
<apeiros> hrm, IN is not easy to find in the special chars table :(
araujo has joined #ruby
lukaszes has joined #ruby
x-light has quit [Ping timeout: 260 seconds]
<apeiros> probably should have said s/weak/bad/. it's correct. but as I understood it the idea was that it should be an intuitive argument. and IMO it's not intuitive.
<[spoiler]> ^
araujo has quit [Max SendQ exceeded]
marr has joined #ruby
<apeiros> the concept of no adjacency in IR is not intuitive (IMO)
<Kuukunen> apeiros: I think "there's no numbers between them" is a proper argument if we're talking about real numbers... or hell, even rational numbers
araujo has joined #ruby
nfk|laptop has joined #ruby
shinenelson has quit [Quit: Connection closed for inactivity]
Xeago has joined #ruby
lipoqil has quit [Quit: Connection closed for inactivity]
<bhaak> Kuukunen: but natural numbers are much more intuitive to most of us and there the "no number between them means equal" doesn't hold
moeabdol has quit [Read error: Connection reset by peer]
lukaszes has quit [Client Quit]
<Kuukunen> bhaak: but we're talking about decimals here :P
<Ox0dea> 0.999... is an integer. :P
<Kuukunen> it is!
<[spoiler]> lOL
<[spoiler]> LOL*
<Kuukunen> but you have to prove it is
moeabdol has joined #ruby
<Kuukunen> so you can't start from "it's obviously a natural number, therefore it's a natural number"
<Ox0dea> Well, I didn't do that?
jinie has joined #ruby
exadeci has quit [Quit: Connection closed for inactivity]
<bhaak> it helps if you first state that there are multiple ways to represent the same number. that's often forgotten and leads to easy confusion.
<Ox0dea> I'm gonna try to represent 0.999... in Ruby.
<Kuukunen> Ox0dea: sure, but I was responding to bhaak
<Ox0dea> Kuukunen: Right, sorry.
djbkd has quit [Quit: My people need me...]
<Ox0dea> bhaak: s/multiple/infinite/, mind.
<Ox0dea> Well, most numbers, anyway.
<bhaak> Kuukunen: the difference between a real number and a decimal with an infinite representation is ... not obvious
<bhaak> Ox0dea: I'm a programmer. there is only 0, 1, and infinity :)
<sjums> >> 0.99999999999999999
<ruboto> sjums # => 1.0 (https://eval.in/468183)
<Ox0dea> bhaak: I like it and concur.
<Ox0dea> 108 <3
yosiat has joined #ruby
<Ox0dea> Wait, no, that's not right.
<bhaak> sjums: floating point numbers are no real numbers
<Kuukunen> bhaak: 0.111... == 1 then!
tulak has joined #ruby
<sjums> I'm pretty certain I'm not imagining this
<Ox0dea> sjums: We're gonna need more 9s!
<[spoiler]> >> (0.999..1).size
<ruboto> [spoiler] # => 1 (https://eval.in/468188)
<Kuukunen> bhaak: hm... is there a difference between real number and infinite decimal tho?
<Ox0dea> Using IEEE754 for mathematical proofs.
<[spoiler]> :P
<bhaak> Kuukunen: I don't know :)
<Mon_Ouie> >> 0.9999...9 == 1
<Kuukunen> bhaak: they should be the same
<ruboto> Mon_Ouie, I'm terribly sorry, I could not evaluate your code because of an error: OpenURI::HTTPError:500 Internal Server Error
djbkd has joined #ruby
<Ox0dea> Mon_Ouie: Crafty.
<Kuukunen> bhaak: yea, pretty sure they're the same
<[spoiler]> ruboto: got confused
joonty has joined #ruby
ruurd has joined #ruby
<Ox0dea> Mon_Ouie: Bless your fortune, though; you'd've been bit by ...'s silly precedence.
<Mon_Ouie> charliesome: ^ we probably shouldn't get an internal server error when doing this type of stuff, should we?
<Ox0dea> eval.in is on the fritz.
<Ox0dea> It's nothing to do with the code to be evaluated.
moeabdol has quit [Read error: Connection reset by peer]
<charliesome> oh yeah seems bad
advorak has quit [Ping timeout: 264 seconds]
<Ox0dea> Wait, is it? I've been bumping into 500s on the site itself this evening.
<Mon_Ouie> >> (0.999...9) == 1
rodfersou has joined #ruby
<ruboto> Mon_Ouie, I'm terribly sorry, I could not evaluate your code because of an error: NoMethodError:undefined method `[]' for nil:NilClass
<charliesome> try again
<Ox0dea> >> (0.999...9) === 1
<ruboto> Ox0dea # => true (https://eval.in/468199)
<Ox0dea> Thanks, math.
kstuart has joined #ruby
<Mon_Ouie> Looks like it's fixed ;)
<sjums> [spoiler], bug off!
<sjums> amidoingitright?
<bhaak> Kuukunen: thinkinh about it, an infinite decimal representation without a repeating pattern is _still_ a decimal. so yeah, they are probably the same, although intuitively, I would want to put those into another category
<[spoiler]> doesn't Range#=== call Range#unclide? though?
<Ox0dea> bhaak: But not in the technical sense of the word, right?
<[spoiler]> lol unclide
<Kuukunen> bhaak: why?
<[spoiler]> Unbonnie and unclide
<Kuukunen> bhaak: or... which ones in different categories?
<Ox0dea> [spoiler]: It does use #include?, which just compares against the start and end.
<[spoiler]> sjums: no u
devoldmx_ has quit [Remote host closed the connection]
<[spoiler]> Ox0dea: I know, but using === is mathematically wrong, even though it is a clever trick
<[spoiler]> in the example
<Ox0dea> [spoiler]: Well, yes, you've foiled my ruse.
<[spoiler]> I'm such evil
<certainty> Ox0dea: isn't that #cover? that just compares against the start end end?
<certainty> and, even
<bhaak> Kuukunen: the infinite decimals without a pattern. it feels like cheating. for example for pi, "yeah, you can write this number as a decimal, you just need the precomputed value to write it and an infinite amount of paper to write it down on".
moeabdol has joined #ruby
<Kuukunen> bhaak: well, welcome to the wonderful world of infinities :P
<Ox0dea> certainty: You're right.
<bhaak> Kuukunen: OTOH, 0.9999... is easily expressed (or compressable). but that might be my programmer mind.
roxtrongo has joined #ruby
<Ox0dea> The difference tends to only crop up in weird cases like String#succ.
<Kuukunen> bhaak: "precomputed value" in there doesn't really make much sense from math point of view though
<certainty> Ox0dea: phew, thought for a minute i broke code :)
<Ox0dea> Heh.
<Ox0dea> >> ('a'..'z').cover? 'c' * 42
<ruboto> Ox0dea # => true (https://eval.in/468203)
abucha has quit [Quit: Leaving...]
bruno- has joined #ruby
<Kuukunen> bhaak: thinking from programmer point of view, math often allows for "infinite computational power"
tbuehlmann has left #ruby [#ruby]
moeabdol has quit [Read error: Connection reset by peer]
bruno- is now known as Guest64218
<bhaak> Kuukunen: yes. but as we are talking about "representation", you need a way to know what you want to write (even though of course, the value exists already in a platinoc sense in the world of math)
scripore has quit [Quit: This computer has gone to sleep]
<certainty> does it exist until it's somehow represented?
moeabdol has joined #ruby
<certainty> representation can also be a thought I guess
<bhaak> that's not a problem as such
<Kuukunen> bhaak: well, in math you don't have to know HOW to write a representation to prove it exists :P
<Kuukunen> or well, I guess that also deals with the constructivism debate :P
<bhaak> certainty: for example in information theory, you have the idea that information is already existing. you only extract it and put it into a different form. so it already existed, even though you didn't see it.
djbkd has quit [Remote host closed the connection]
blackmes1 has joined #ruby
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> Well, don't we have to conclude that information in and of itself is without a spatial component?
<Ox0dea> Lest Pi would fill the universe.
kies has quit [Ping timeout: 260 seconds]
<bhaak> yes
<Kuukunen> Ox0dea: but the information in pi isn't infinite
moeabdol1 has joined #ruby
<Ox0dea> But that's what it means to be irrational.
axl_ has joined #ruby
<norc> Our common decimal representation is just infinite.
<bhaak> the information in pi is probably quite low as you can easily represent it in a few simple formulas
<norc> Not the information in pi.
<Kuukunen> yea
<Kuukunen> Ox0dea: that would be like saying the information in "1.0000..." is infinite
Guest64218 has quit [Ping timeout: 272 seconds]
leafybas_ has joined #ruby
<Kuukunen> "pi" exists outside of its decimal representation :P
moeabdol has quit [Ping timeout: 240 seconds]
Hounddog has joined #ruby
<Ox0dea> That was a bit of a straw man, but I take your point.
<Ox0dea> It's not as if circles have any trouble existing.
<Kuukunen> I don't think it's really a strawman
<Kuukunen> like, you could say "but 1.000... is not infinite! it's just one, followed by 0 after 0 after 0"... so you're describing a way of generating infinite stream of 0s... but you can also describe a way of generating infinite stream of pi decimals
<Ox0dea> We can quite easily compress the "notion" of pi, as it were, but not pi itself.
DEA7TH has quit [Quit: DEA7TH]
ibouvousaime_ has quit [Ping timeout: 272 seconds]
<Kuukunen> but that's not how it goes, you don't have to "compress" pi, it's just one number... it's like compressing the number 2
<Kuukunen> it's just that decimal representation for pi is not a good one
<bhaak> what is pi itself? that looks to me as if asking if the universe has a preferred number notation
<certainty> :D
axl_ has quit [Ping timeout: 240 seconds]
hahuang65 has quit [Ping timeout: 240 seconds]
ibouvousaime has joined #ruby
<Ox0dea> Kuukunen: Start gzip on /dev/urandom and we'll resume when it finishes. :P
<apeiros> in baseπ, π is 1
<apeiros> but I prefer base
yaewa has quit [Quit: Leaving...]
<Ox0dea> ∀ n ∈ ℝ: 10ₙ = n₁₀
yoongkang has joined #ruby
<Ox0dea> Discuss.
moei has joined #ruby
<Kuukunen> apeiros: hm, I don't think you can use pi for a base :P
<apeiros> can't read the symbols. they render too small here :D
<certainty> too brainy for me
<Ox0dea> Kuukunen: Of course you can.
<apeiros> Kuukunen: sure can.
benlovell has joined #ruby
<Ox0dea> Any n not {0, 1} can be used as the base of a positional number system.
<Kuukunen> apeiros: I mean "base" deals with the representation of a number... the way you write it down
<Ox0dea> Kuukunen: But you just voiced your opposition to that line of defense.
<apeiros> yupp. and baseπ makes writing multiples of π trivial :)
<Kuukunen> apeiros: you would have to redefine "base" for it to work
<apeiros> no, I wouldn't
<apeiros> base conversion works the same
<Kuukunen> apeiros: but how would you write 2 in baseπ?
rbowlby_ has joined #ruby
astrobunny has quit [Remote host closed the connection]
<Kuukunen> apeiros: and before you start using 0, 1, ... 9, remember, those are base 10
<Ox0dea> Kuukunen: The notion of "digits" breaks down a bit, but the concept of a base holds.
<Kuukunen> but "base" deals with the digits
<Ox0dea> It needn't.
<[spoiler]> Kuukunen: it deals with values
<[spoiler]> you can represent digits differently
<j416> 9:45:00 sjums | didn't even know that æ, ø and å is in ASCII :3
<j416> sjums: they're not
akem has joined #ruby
<Ox0dea> e is a perfectly acceptable base, and so is every other real except 0 and 1.
<Kuukunen> well, I can be wrong too :V
rbowlby has quit [Ping timeout: 240 seconds]
vigintas has joined #ruby
blaxter has joined #ruby
tulak has quit [Remote host closed the connection]
qiukun has quit [Quit: qiukun]
<[spoiler]> Kuukunen: you weren't wrong, you were just left right
<[spoiler]> less right
<Kuukunen> oh right, we're talking about different base here
<[spoiler]> I need coffee
<certainty> but there is only one base that's the real deal. Which is the 3. base
<Kuukunen> it's the exponential base vs. the numeral system base
gregf has quit [Ping timeout: 252 seconds]
leafybas_ has quit [Read error: Connection reset by peer]
leafyba__ has joined #ruby
<certainty> or was it the 4th?
Musashi007 has joined #ruby
gregf has joined #ruby
TheHodge has joined #ruby
hahuang65 has joined #ruby
A124 has quit [Quit: '']
<Musashi007> does anyone have an idea how to get the ip address of the wireless bridge point they are connected to ?
pimpin has joined #ruby
dimasg has joined #ruby
advorak has joined #ruby
tubuliferous_ has joined #ruby
<[spoiler]> I literally just typed my password backwards twice in a row
krz has quit [Ping timeout: 276 seconds]
<apeiros> [spoiler]: your password is a palindrome?
<[spoiler]> apeiros: unfortunately, not
<apeiros> then that's quite a fascinating feat. do you often think in backwards? :D
Musashi007_ has joined #ruby
<Musashi007_> why?
<sjums> or did you do it backwards upon last forced renew on the AD server?
rodferso1 has joined #ruby
<Ox0dea> [spoiler]: Your UNIX password?
<[spoiler]> yeah unix password
<Ox0dea> [spoiler]: You can use your arrow keys. :P
<Ox0dea> (But don't.)
<Ox0dea> Musashi007_: Nothing of interest in the output of `ip addr`?
<Musashi007_> @Ox0dea running on osx. ifconfig doesn’t show much.
dimasg has quit [Ping timeout: 272 seconds]
<Musashi007_> Nor does traceroute.
erbesharat has joined #ruby
Musashi007 has quit [Ping timeout: 255 seconds]
rodfersou has quit [Ping timeout: 240 seconds]
hakunin has quit [Read error: Connection reset by peer]
<[spoiler]> apeiros: i can talk and write backwards relatively fast, especially when I warm up after a few minutes
hakunin has joined #ruby
<Ox0dea> Okay, da Vinci.
<Musashi007_> funny thing is that I know I’m connected via the rogue access point
<Ox0dea> Musashi007_: One approach is apparently to ping scan yourself?
<tobiasvl> [spoiler]: ask David Lynch if he needs your expertise in the third season of Twin Peaks
<[spoiler]> but I don't do it normally, not sure why it happened now. is tarted typing it backwards the third time when I realised it
akem has quit [Ping timeout: 260 seconds]
<Ox0dea> How does that even happen?
Spami has joined #ruby
<[spoiler]> Ox0dea: I know a few other people that can do it from HS
<Musashi007_> oh? how is that different from a regular ping?
<[spoiler]> well, few being 2 girls from book club
<Ox0dea> Musashi007_: Well, you just try every address in a given range, and only the ones that're up will respond.
RegulationD has joined #ruby
quazimodo has joined #ruby
tref has quit [Quit: tref]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
skcin7 has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> [spoiler]: Do you mean you started typing "staplebattery", or "elpatsyrettab"?
shredding has joined #ruby
leafyba__ has quit [Ping timeout: 255 seconds]
RegulationD has quit [Ping timeout: 240 seconds]
TPBallbag has joined #ruby
Hounddog has quit [Ping timeout: 272 seconds]
<[spoiler]> what, no I didn't mean backwards like letter for letter backwards, more as in... split.reverse.join(' ') or inverting syllables. or talking in little endian with syllables
<Musashi007_> @Ox0dea scanning now.. Hesitantto do so because I don’t ahve a program to do this and I’m always nervous to install new programs
Hounddog has joined #ruby
<Ox0dea> Musashi007_: You really ought to use `nmap`; it's pretty well vetted.
<[spoiler]> my password is like a little sentence thingy and I typed the "groups" backwards. instead of typing aa 22 cc, i typed cc 22 aa
<Ox0dea> [spoiler]: Yes, that's what I meant.
<Musashi007_> @Ox0dea thank you.. looking into it now
<Ox0dea> Musashi007_: Sure thing.
<Ox0dea> [spoiler]: I was using "correcthorsebatterystaple" as your password.
<Ox0dea> !xkcd 936
tulak has joined #ruby
devbug has quit [Read error: Connection reset by peer]
h99h9h88 has quit [Read error: Connection reset by peer]
tubuliferous_ has quit [Ping timeout: 240 seconds]
tulak has quit [Client Quit]
nateberkopec has joined #ruby
platzhirsch has joined #ruby
nfk|laptop has quit [Ping timeout: 240 seconds]
teclator has joined #ruby
h99h9h88 has joined #ruby
tulak has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
tref has joined #ruby
nateberkopec has quit [Ping timeout: 252 seconds]
roxtrong_ has joined #ruby
vigintas has quit [Quit: vigintas]
nfk|laptop has joined #ruby
karapetyan has joined #ruby
advorak has quit [Ping timeout: 240 seconds]
subscope has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pimpin has quit [Remote host closed the connection]
rodferso1 has quit [Quit: leaving]
roxtrongo has quit [Ping timeout: 244 seconds]
rodfersou has joined #ruby
vigintas has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
karapetyan has quit [Ping timeout: 250 seconds]
pimpin has joined #ruby
davedev24 has joined #ruby
quazimodo has quit [Ping timeout: 260 seconds]
axsuul has quit [Ping timeout: 260 seconds]
duncannz has quit [Remote host closed the connection]
pimpin has quit [Remote host closed the connection]
mattwildig has joined #ruby
arne_ has joined #ruby
<arne_> Hello Folks, is there a way to do select and reject at the same time?
Peg-leg has joined #ruby
<arne_> like splitting an array with a condition
<Mon_Ouie> See Enumerable#partition
<arne_> great, thank you
qiukun has joined #ruby
bruno- has joined #ruby
bigkevmcd has quit [Ping timeout: 244 seconds]
davedev24 has quit [Remote host closed the connection]
yoongkang has quit [Remote host closed the connection]
sysanthrope has quit [Quit: No Ping reply in 180 seconds.]
bruno- is now known as Guest15456
pimpin has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
mattwildig has quit [Ping timeout: 255 seconds]
dlitvak has quit [Remote host closed the connection]
sysanthrope has joined #ruby
dlitvak has joined #ruby
dhjondoh has quit [Quit: dhjondoh]
<arne_> Mon_Ouie, and when doing it with a hash, is there some way i clean keep my hash?
<arne_> [["fullSearchQuery", "asdas"], ["page", "0"]] <= right now im getting this as result
<Mon_Ouie> So you'd want 2 hashes as a result?
<arne_> yes.
axl_ has joined #ruby
Guest15456 has quit [Ping timeout: 255 seconds]
<Ox0dea> arne_: map(&:to_h)
<arne_> yeah that's great, but not as easy than everything else in ruby, right?
<Ox0dea> How do you mean?
<Ox0dea> >> {a:1, b:2, c:3, d:4}.partition { |_, v| v.even? }.map(&:to_h) # arne_
<ruboto> Ox0dea # => [{:b=>2, :d=>4}, {:a=>1, :c=>3}] (https://eval.in/468226)
moeabdol1 has quit [Quit: WeeChat 1.3]
pimpin has quit [Remote host closed the connection]
<Ox0dea> That is remarkably little code for such an operation.
<arne_> if i do it this way, it creates a new hash from an array, right?
<apeiros> it creates two hashes from two arrays, yes
shinenelson has joined #ruby
<Ox0dea> arne_: The vast majority of the methods Hash gets from Enumerable return nested arrays of key-value pairs.
pimpin has joined #ruby
<arne_> so i could just walk over the original hash with .each and have the same effect
<arne_> which i have to do either way
dlitvak_ has joined #ruby
<Ox0dea> Then you didn't really need to partition?
<arne_> well, i would love to use it, because of the one-liner
<Mon_Ouie> You can do everything that's done by the Enumerable module by using #each
Xeago has quit [Remote host closed the connection]
Xeago has joined #ruby
pandaant has joined #ruby
DEA7TH has joined #ruby
<arne_> yeah, i know, but i have to "split" this hash by a condition, and if i have to transform the result into a hash first, there is no benefit form using partition
axl_ has quit [Ping timeout: 240 seconds]
<Ox0dea> You don't actually have to transform it back into a Hash.
<arne_> that's true but it's not a hash then :/
<Ox0dea> What's the difference between a Hash and an array of key-value pairs for your current objective?
dlitvak has quit [Ping timeout: 250 seconds]
Oli` has joined #ruby
<arne_> well code is prettier if i filter stuff by their keys
<arne_> with key value pairs it wouldn't be as pretty.
<arne_> too bad partition does not output hashes :/
<arne_> why does select do that, though?
pimpin has quit [Remote host closed the connection]
<Ox0dea> It's true enough that a lot of Hash's Enumerable methods should probably return Hashes, but they just don't. :<
moeabdol has joined #ruby
<arne_> >> {:or=>:doesnt_it}.select { |x| x=:or}
<ruboto> arne_ # => {:or=>:doesnt_it} (https://eval.in/468227)
sdwrage has quit [Quit: This computer has gone to sleep]
<Ox0dea> It looks like you don't know what you're doing. :P
tlolczyk_ has joined #ruby
<arne_> why is that?
<arne_> select and reject do exactly what i want, just asking myself if i can do it in one step
h99h9h88 has quit [Remote host closed the connection]
dhjondoh has joined #ruby
sdwrage has joined #ruby
<gregf_> arne_: you partition with to_h should work?
<gregf_> s/you//
<Ox0dea> It does, but it's not "pretty" or whatever.
<arne_> it works, but doesn't give me anything
<gregf_> uh?
<gregf_> pretty? its quite simple
<arne_> hash => partition => array => hash
dhjondoh has quit [Remote host closed the connection]
<arne_> it bothers me, that a array has to be created, while not needed
jackjackdripper has joined #ruby
<Ox0dea> arne_: Are you *certain* you need that last step?
<Ox0dea> I bet you don't.
yoongkang has joined #ruby
<gregf_> well then just use inject. but those wrappers do all the work for you
<arne_> i don't need it, but it makes the complete rest of that code unpretty aswell
<Ox0dea> arne_: What do you mean?
<arne_> i have to use the result of partition, in the rest of the code
futilegames has joined #ruby
<arne_> which i access like hashes
<gregf_> arne_: else this: {a:1, b:2, c:3, d:4}.inject([{},{}]){ |a1,h| a1[h.last.even? ? 0 : 1][h.first] = h.last; a1 } *and... how bad it looks*
cotcot has joined #ruby
<Ox0dea> arne_: https://eval.in/468228
<arne_> Ox0dea, yeah, i don't know how that helps me, if im using keys to find something in a hash
tlolczyk has quit [Ping timeout: 276 seconds]
<Ox0dea> You're just iterating, right? So you don't really need Hash's semantics, and an array of key-value pairs serves the same purpose.
<arne_> which is now a key value pair
<arne_> no, never said i was just iterating
<Ox0dea> Ah, then maybe you want #assoc.
<[spoiler]> arne_: what do you need to do in the end, though?
<cotcot> que dis sens n'a tu ce aucun
erbesharat has quit [Remote host closed the connection]
<Ox0dea> >> [[:a, 1], [:b, 2], [:c, 3]].assoc :b # arne_
<ruboto> Ox0dea # => [:b, 2] (https://eval.in/468232)
<arne_> both, iterating over it, and using []
<[spoiler]> cotcot: i agree, but I prefer vanilla.
erbesharat has joined #ruby
<Mon_Ouie> Someone else's typing their password backwards it looks like
<[spoiler]> Mon_Ouie: LOL
<arne_> cool, i didn't know about assoc, atleast learned somethig
pimpin has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
tlolczyk_ has quit [Ping timeout: 265 seconds]
<Ox0dea> arne_: The essential justification is that it would be unnecessary duplication to give Hash custom methods when defining Hash#each to yield key-value pairs and including Enumerable gives us so much functionality for free.
<Ox0dea> I agree with you that it's a minor pain point, but invoking #to_h to get back actual Hashes isn't going to end the world.
<arne_> i understand, but it confuses me, do it 100% or 0% but not 73%
<arne_> imho, select and reject shouldn't do it then either
rbowlby_ has quit [Remote host closed the connection]
pimpin has quit [Remote host closed the connection]
<[spoiler]> Per-for-mance! Per-for-mance! Ex-ter-mi-nate! Ex-ter-miiii-naaaateeeeeeee!
<[spoiler]> Maybe Hash is too Dry, it needs to be moisturized
<[spoiler]> DRY*
<Ox0dea> >> 2.0 / Enumerable.instance_methods.size # arne_
<ruboto> Ox0dea # => 0.0392156862745098 (https://eval.in/468237)
erbesharat has quit [Remote host closed the connection]
<Ox0dea> WET = Write Everything Twice.
<Ox0dea> arne_: Do you want WET code?
<arne_> no, i said you can also do 0 %
<Ox0dea> So you're boycotting Hash#select?
vpc has joined #ruby
<arne_> if i had to, yes
dhjondoh has joined #ruby
<Ox0dea> Do it.
leafybas_ has joined #ruby
<arne_> but know im getting confused what does return a hash and what not, and at some point i will think, while it's not true, "select doesn't return a hash, i won't use it"
<cotcot> aucun n'a que ce dis sens tu
ldnunes has joined #ruby
<[spoiler]> I am not sure if it's really a pain point. I actually expect methods from Enumerable to return arrays when used on Gashes
futilegames has quit [Quit: futilegames]
<[spoiler]> Hashes
<arne_> so you're not using select?
<Ox0dea> arne_: It's only #select, #reject, and their mutative counterparts that return Hashes.
skade has joined #ruby
roxtrongo has joined #ruby
<Ox0dea> #select! is nice for paring a Hash down in-place, so I won't be joining your boycott.
devoldmx has joined #ruby
pimpin has joined #ruby
<arne_> what about the principle of the least surprise, did i hit the tiny amount of surprise there is in ruby?
<cotcot> sens n'a aucun tu ce dis que
Oli` has quit [Ping timeout: 240 seconds]
kimegede has joined #ruby
<Mon_Ouie> !kick cotcot not a nice bot
cotcot was kicked from #ruby by ruboto [not a nice bot]
Musashi007_ has quit [Quit: Musashi007_]
<Mon_Ouie> Other inconsistencies between Hash and Enumerable: #member? and #include? operate on keys only and not on key/value pairs
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhjondoh has quit [Remote host closed the connection]
<[spoiler]> arne_: what do you mean? Hash#select *does* return a Hash
roxtrong_ has joined #ruby
<arne_> yeah, and partition does not, which left me really surprised
pimpin has quit [Remote host closed the connection]
* arne_ <= :OOO
roxtrongo has quit [Ping timeout: 260 seconds]
devoldmx has quit [Ping timeout: 264 seconds]
<Ox0dea> arne_: Think you'll be able to bounce back?
dopie has quit [Quit: This computer has gone to sleep]
<arne_> bounce back, where?
<Ox0dea> To loving Ruby.
vpc has left #ruby ["Leaving"]
<certainty> :D
<Ox0dea> Or is this the straw that puts you on the camel's back?
<Ox0dea> (Not that Perl's hashes are any saner.)
<arne_> i'll stick to brainfuck, it's ugly, but it doesn't surprise me
<Ox0dea> You think brainfuck is ugly?!
tlolczyk_ has joined #ruby
<arne_> the beauty is in the operations
<Ox0dea> For what it's worth, you'd be in for quite the surprise if you didn't write your program to be interpreted with varying cell sizes.
<Ox0dea> I realize you were being facetious, but every language has a gotcha or ten.
dimasg has joined #ruby
<Ox0dea> I'm just gonna leave this here.
<Ox0dea> > Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
<[spoiler]> arne_: that's why Array#to_h works so nicely, so you can convert to hash nicely
<Ox0dea> [spoiler]: But that's so unclever!
<Ox0dea> arne_ doesn't want to be able to debug his code.
<arne_> i already said something about it
<Ox0dea> arne_: Your apparent fixation with "pretty" and lines and minimizing invocations gives ample reason to suspect that the above quotation is applicable; please read it several times.
dented42_ has joined #ruby
<arne_> i don't optimize by lines, that's the point i do not safe lines nor performance when using to_h
<arne_> so it's not good, that's my point
naftilos76 has quit [Quit: Αποχώρησε]
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
* certainty waits for that damn test suite to finish
apofis has joined #ruby
doddok has joined #ruby
<Ox0dea> certainty: ^C is cruise control for "the tests don't not unfail".
<arne_> and besides that, it's not even easy to read
dented42 has quit [Ping timeout: 255 seconds]
<arne_> so it's ugly, slow and +1 line code
corehook has joined #ruby
<certainty> uglow
<arne_> instead i can just hash.each do |k,v| hash1[k]=v, if condition else hash2[k]=v, which is nicer to read, probably faster(no clue), and not even more code
<arne_> which renders partition in hashes useless to me, all i am saying
bMalum has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
dimasg has quit [Quit: leaving]
<Ox0dea> arne_: But you would use #partition if it returned Hashes?
<arne_> ofc, it would be as cool as select and reject
<Ox0dea> "Cool"? Wouldn't it be "harder to read" by your definition?
<arne_> no
<Ox0dea> So it's the `map(&:to_h)` part of the solution that kills the legibility?
<arne_> yes.
neanderslob has quit [Remote host closed the connection]
<arne_> Which is ugly, slow and hard to read.
<arne_> if it was fast, or easy to read, but it's nothing, not even fast, because the array is useless in the first place
<Ox0dea> Wrong language, bud.
leafyba__ has joined #ruby
<arne_> i can't understand how you can not see what i mean
Xeago has quit [Remote host closed the connection]
leafyba__ has quit [Remote host closed the connection]
leafybas_ has quit [Read error: Connection reset by peer]
<arne_> i only want one benefit from this .map to_h stuff, but i have none
leafybas_ has joined #ruby
kstuart has quit [Ping timeout: 240 seconds]
bruno- has joined #ruby
nateberkopec has joined #ruby
bruno- is now known as Guest80584
<[spoiler]> technically, this could be optimised by the VM, but alas MRI VM does almost no optimising (if any)
<[spoiler]> no actually, it couldn't really be optimised because so much mutants
* certainty understands arne
<certainty> time for my walk
<[spoiler]> arne_: open a pull request which implements partition the way you want it to work
<arne_> [spoiler], that also goes for every method, that is not written i C already
<[spoiler]> arne_: not all C methods can be optimised either, because they just rely on API calls mostly
<arne_> i actually i have no opinion on how it has to work, i would even be fine if every enum-method would return key value pairs
<arne_> im bothered about "something yes, sometimes no"
<[spoiler]> even on arrays?
dlitvak_ has quit [Ping timeout: 240 seconds]
<[spoiler]> oh pairs
<arne_> [spoiler], "c-methods" dafuq?
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<[spoiler]> arne_: methods implemented in C?
krz has joined #ruby
<arne_> [spoiler], oh i get it, well, methods written in c doesn't get optimized at all, are they?
dhjondoh has joined #ruby
davedev24 has joined #ruby
<arne_> it's the bytecode which gets optimized in rubinius/jvm, am i wrong?
<[spoiler]> arne_: by humans only
qiukun has quit [Quit: qiukun]
<[spoiler]> nah not really
<arne_> yeah but you were talking about vms
nateberkopec has quit [Ping timeout: 246 seconds]
<[spoiler]> maybe a little by LLVM(Rubinius)/JVM, but there's not much that can be done about it
pandaant has quit [Remote host closed the connection]
<[spoiler]> You'd have to drop some language features that rely on mutation and meta programming
<Ox0dea> arne_: MRI/YARV is a virtual machine that interprets compiled bytecode.
corehook has quit [Remote host closed the connection]
bMalum has quit [Ping timeout: 265 seconds]
<arne_> Ox0dea, yeah but no JIT, yet right?
Xeago has joined #ruby
<Ox0dea> Indeed not.
corehook has joined #ruby
davedev24 has quit [Client Quit]
clauswitt has joined #ruby
dzejrou has joined #ruby
<Ox0dea> >> insns = RubyVM::INSTRUCTION_NAMES; [insns.size, insns.grep(/opt/).size] # arne_
<ruboto> Ox0dea # => [88, 27] (https://eval.in/468247)
<Ox0dea> So a little under a third of them are "optimized".
tkuchiki has quit [Remote host closed the connection]
stamina has joined #ruby
<arne_> :o interesting, why would they have VM instructions visible in ruby?
<Ox0dea> Why not?
<[spoiler]> ^
<Ox0dea> This language wants you to be happy.
<Ox0dea> Are you happy when you can't find something?
dlitvak has joined #ruby
<norc> arne_: Because its damn useful to be able to peak into everything. Whether you want to look at the AST, compiled ByteCode or peak into the internals of objects...
<norc> Without the need to have a debugger.
<[spoiler]> s/peak/peek/g
<arne_> :o you can access the bytecode?
<arne_> that's cool
symm- has joined #ruby
<[spoiler]> you can even generate/run it
<Ox0dea> [spoiler]: No?
<Ox0dea> RubyVM::InstructionSequence#load is currently commented out. :<
<Ox0dea> Because there's no "verifier".
<[spoiler]> oh
<norc> Ox0dea: You know what sucks?
<[spoiler]> maybe rubinius can, then? I don't remember if it was rubinius or mri or both
<Ox0dea> norc: Hm?
<[spoiler]> norc: vacuum cleaners?
<norc> Ox0dea: I really want the damn CPDBEUG on trunk x_x
sdwrage has quit [Quit: This computer has gone to sleep]
<norc> [spoiler]: I was thinking black holes. But close.
<Ox0dea> norc: I thought it was there?
<norc> Ox0dea: Try it.
<norc> I mean its reported, but I wanted to play around with it yesterday Q.Q
roxtrongo has joined #ruby
<Ox0dea> norc: It's dp() for AST nodes, yeah?
Xeago has quit [Remote host closed the connection]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<arne_> sure you can do it in rubinius, since everything but the vm is ruby, but i was surprised MRI has it, too
<norc> Ox0dea: Its a deeper debug flag that steps through the entire compiler in each stage, showing you the AST as it processes it.
prestorium has joined #ruby
<arne_> does that mean you can have compiled ruby code in ruby and have some sort of obscurification ( with mri? )
<Ox0dea> No, not yet.
<arne_> too bad, that would be useful
ibouvousaime has quit [Read error: Connection reset by peer]
subscope has joined #ruby
<Ox0dea> Not serializable or loadable at this time.
gguggi has joined #ruby
sdwrage has joined #ruby
Rickmasta has joined #ruby
<Ox0dea> Here's tenderlove playing with it before it was commented out: https://gist.github.com/tenderlove/3536045
<arne_> im writing some code which will be on customer-servers, would be nice to be able to protect it from "theft"
gizmore has joined #ruby
bubbys has quit [Ping timeout: 244 seconds]
<norc> Ox0dea: That is one of the best documented pieces of code in the ruby trunk.
axl_ has joined #ruby
subscope has quit [Client Quit]
<norc> While this is sarcastic, it is also rather true.
<norc> Whatever a verifier is. :-/
<Ox0dea> norc: Heh, yeah, there's a lot of crazy in MRI.
sdwrage has quit [Client Quit]
<Ox0dea> And so little documentation! :<
subscope has joined #ruby
* arne_ wants a cazy example
<Ox0dea> But hey, ko1 and nobu seem to have a firm enough understanding of how it all hangs together.
<norc> Ox0dea: The best way to get documentation is to git blame, pray that you find a feature request on the japanese bug tracker, and then hope that google translate doesn't produce complete nonsense.
<Ox0dea> That sounds about right.
* arne_ really wants a example for crazy in the MRI
<Ox0dea> I think even nobu doesn't quite grok refinements: https://bugs.ruby-lang.org/issues/11655
tulak has quit [Remote host closed the connection]
Musashi007 has joined #ruby
sinkensabe has quit [Remote host closed the connection]
tulak has joined #ruby
<Ox0dea> arne_: Well, the parser is just insane, but have a more concentrated example.
symm- has quit [Quit: Leaving...]
<norc> Ox0dea: With everything that I have learned now it is fairly easy to understand why the parser is so massively complicated though.
Amnez777_ is now known as Amnez777
axl_ has quit [Ping timeout: 240 seconds]
<arne_> i really like the way rubinius is doing it, wish it was faster and less buggy
<Ox0dea> arne_: https://eval.in/468262
<Ox0dea> There's the function that makes String#tr go.
<arne_> thought about contributing but i am lazy and stupid
<arne_> jesus.
<Ox0dea> > /* retrieve last replacer */
<Ox0dea> The only comment.
<[spoiler]> LOL
<[spoiler]> this requires some serious mental context tracking
<arne_> by the way, you will hate me but, there isn't a way to do x = x.method, pretty, right?
<norc> arne_: There is.
<Ox0dea> arne_: No, but I wish there were; Perl 6 has it. :<
<Ox0dea> norc: arne_ is thinking of a .= operator.
<norc> Ox0dea: Ah.
<norc> Thought he wanted plain #method
<[spoiler]> I don't wish there's such a thing
<Ox0dea> arne_: Have fun(?): http://www.ozonehouse.com/mark/periodic/
c355E3B has joined #ruby
<[spoiler]> Also, I am still conflicted about `.?` in 2.3.0
<arne_> im adding conditions to a sequel model, table = table.where x is so ugly
<norc> [spoiler]: The amazing unmaintainable code you can do with op overloading in C++ is downright amazing.
<Ox0dea> [spoiler]: It's `&.` now.
<norc> Can secure your job for a lifetime.
<[spoiler]> norc: lol i don't know why people abuse C++ that much
krz has quit [Ping timeout: 240 seconds]
<Ox0dea> Because it's there.
<[spoiler]> Ox0dea: isn't `&.` different from `?.`?
<Ox0dea> [spoiler]: There is no longer any such thing as `.?` in Ruby.
<arne_> already forgot what &. did
<norc> ?. however
<[spoiler]> I write C/C++ as my job, and I've very rarely had to abuse operators
<[spoiler]> overload* lol
<[spoiler]> Well I write more C and C++ wrappers for the C
<arne_> according to norc, you maybe should.
<norc> [spoiler]: If you want to get a feeling for unmaintainable, just look at all the boost headers. Its downright disgusting how many compiler bugs they actively abuse.
<arne_> Ox0dea, never liked perl
<Ox0dea> arne_: It seems right up your alley?
<[spoiler]> I actually try to avoid using boost whenever pissible. I am not sure why people like it so much. Sure, it's convenient, but so i a bullet to the head when you're tired
<[spoiler]> possible
<arne_> Ox0dea, how is that?
<Ox0dea> arne_: It lets you squeeze a lot of functionality into a small space if that's what you want to do.
<Ox0dea> So does Ruby, mind, but apparently not enough for you. :P
<arne_> stop mocking me :( i only had trouble with that one piece of .. opinion
<[spoiler]> Ox0dea: Wasn't `?.` rejected because it conflicts with `a.foo?.bar` because `#foo?`, so it was a `a.?foo.bar` and I remember there being talk about `&.`, but i thought it would be `.?`s raising sister or something
<arne_> doesn't mean im unable to do it
waka has joined #ruby
htmldrum has joined #ruby
ht__ has joined #ruby
<Ox0dea> [spoiler]: It was `.?`, and it was rejected for numerous reasons.
<[spoiler]> thank fuck
<Ox0dea> I concur.
segfalt__ has joined #ruby
ht__ has quit [Client Quit]
<Ox0dea> It felt weird at first, but I've taken a liking to `foo &. bar`.
Mon_Ouie has quit [Ping timeout: 252 seconds]
<Ox0dea> It parses, it's easier to scan, and it better clarifies intent.
<Ox0dea> I hope it catches on.
AnoHito has quit [Read error: Connection reset by peer]
tulak_ has joined #ruby
AnoHito has joined #ruby
sross07 has quit [Read error: Connection reset by peer]
<[spoiler]> Yeah, I don't mind `&.`, but all the ?s and .s and more ?s were too confusing (and we established I don't like too many symbols in one place :P)
hakunin has quit [Read error: Connection reset by peer]
sross07 has joined #ruby
hakunin has joined #ruby
<Ox0dea> [spoiler]: It's dangerous to go without symbols; here, take this: http://i.imgur.com/94jou4v.png
<[spoiler]> :D LOL
jud has quit [Read error: Connection reset by peer]
jud has joined #ruby
tulak has quit [Ping timeout: 240 seconds]
<Ox0dea> I wish a clever way to hide all the encoded strings had occurred to me.
<[spoiler]> I love how whoever wrote this tried to add white space, as if to make it more readable lol
<Ox0dea> I... I wrote it.
<[spoiler]> wat
<[spoiler]> you wrote this?!
<[spoiler]> :P:
<[spoiler]> Omg
<Ox0dea> And... I did add the whitespace to make it more readable.
<[spoiler]> I thought it was just a thing floating about
<Ox0dea> I put it in the air.
<arne_> hrhr.
<[spoiler]> Hah!
ht__ has joined #ruby
ht__ has quit [Client Quit]
<arne_> fuck this im going back to lisp
<certainty> good idea
<certainty> :)
<arne_> Ox0dea, do you know sequel?
<Ox0dea> arne_: The gem?
<arne_> yes.
<Ox0dea> Yes.
<arne_> i want to do a regex search on some columns which i have in a Hash, but they vary in count
<arne_> how do i do it :/
<Ox0dea> Do you know about #grep?
<arne_> ohmygod
<Ox0dea> Yay, Ruby! <3
<arne_> wow what the fuck that is so useful,
<Ox0dea> It's one of the best methods.
<Ox0dea> Because case equality is the shit.
<Ox0dea> >> [1, 'a', 3.14, :b, 2ri, {}].grep(Numeric)
<ruboto> Ox0dea # => [1, 3.14, (0+(2/1)*i)] (https://eval.in/468267)
<Ox0dea> That works because Module#=== is #is_a?.
<Ox0dea> But Regexp#=== is #=~, Proc#=== is #call, and Range#=== is #include?.
RegulationD has joined #ruby
sepp2k has joined #ruby
<Ox0dea> Basically, threequals is the reason matz is God.
<FailBit> o wow nice
<arne_> holy shit
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<arne_> Ox0dea, just because im interested, how would've done that without grep
<arne_> i didn't get .or to work
ht__ has joined #ruby
ramfjord has quit [Ping timeout: 240 seconds]
<Ox0dea> arne_: Are you determining which columns to query dynamically, or?
<arne_> yes, i have the symbols in an array
RegulationD has quit [Ping timeout: 276 seconds]
<arne_> 500ms response time for a query though :/ only 60k rows
<Ox0dea> Using prepared statements?
<norc> Ox0dea: Well, === is just used wrong often because they assume it to be syntactic sugar for #is_a?
sdothum has joined #ruby
<arne_> Ox0dea, nah just table.grep
ta has quit [Remote host closed the connection]
<Ox0dea> Oh, I was talking about Enumerable#grep, since you said you already had your data in a Hash.
<arne_> haha, lol but you actually were right :D
<arne_> it works like a charm.
<arne_> the guy who wrote sequel is a very clever man
pusewicz has joined #ruby
yoongkang has quit [Remote host closed the connection]
<arne_> at first i was like "why he fuck is he using symbols for table names, how can i do a concat with that"
<arne_> and then i was like "WOOOOOOOO"
Xeago has joined #ruby
ht__ has quit [Client Quit]
roxtrong_ has joined #ruby
<Ox0dea> I almost always think of Julia Evans (http://jvns.ca) when I see Jeremy Evans' name, and I'm not sure why.
<Ox0dea> She's quite an interesting person, and I guess her passion kinda lingered.
UtkarshRay has joined #ruby
<certainty> that is left to be discovered by the psychologists
<Ox0dea> certainty: I moved my appointment to Thanksgiving.
<certainty> :D
akem has joined #ruby
tubuliferous_ has joined #ruby
blackmes1 has quit [Ping timeout: 260 seconds]
<arne_> >> "test 123".split
<ruboto> arne_ # => ["test", "123"] (https://eval.in/468268)
dhjondoh has quit [Quit: dhjondoh]
<arne_> is space default or /\s/ ?
exadeci has joined #ruby
lubarch has quit [Ping timeout: 240 seconds]
<Ox0dea> >> "foo \s\t\n bar \s\t\n baz".split # arne_
<ruboto> Ox0dea # => ["foo", "bar", "baz"] (https://eval.in/468269)
<certainty> it's /\s+/ irrc
roxtrongo has quit [Ping timeout: 240 seconds]
<certainty> IIRC, even and Ox0dea was faster again
iateadonut has joined #ruby
<Ox0dea> >> "foo \f\v bar".split # But who the hell uses form feeds and vertical tabs?
<ruboto> Ox0dea # => ["foo", "bar"] (https://eval.in/468270)
<arne_> regexes = query["fullSearchQuery"].split.map { |x| /#{x}/i } <= this is why i love ruby
<Ox0dea> That's pretty pretty.
<arne_> isn't it!?
tubuliferous_ has quit [Ping timeout: 246 seconds]
<Ox0dea> >> %w[foo bar baz].map &Regexp.method(:new) # I'll leave this here, but you should maybe ignore it.
minimalism has quit [Quit: leaving]
<ruboto> Ox0dea # => [/foo/, /bar/, /baz/] (https://eval.in/468271)
Musashi007 has quit [Quit: Musashi007]
<arne_> can you put that into 1 regex somehow?
<Ox0dea> There's Regexp.union for just that purpose.
ht__ has joined #ruby
<sapslaj> Quick question: Is there a convention for executable path in gems? (bin/, exe/, script/, etc.)
<Ox0dea> sapslaj: bin/ and exe/ are both quite common.
<Ox0dea> sapslaj: bin/ is more for development, exe/ for runnables.
<sapslaj> Ox0dea: Yep, have seen both. Just wondering which was the more acceptable way.
<Ox0dea> sapslaj: You can't go wrong with exe/.
CloCkWeRX has joined #ruby
scripore has joined #ruby
<sapslaj> Ox0dea: I've always had a preference for script/ being development stuff and bin/ being for runnables, but that's just me.
<Ox0dea> sapslaj: script/ is pretty unorthodox, but I suppose I see the logic.
ht__ has quit [Client Quit]
<arne_> wooo~ cool
pawnbox has quit [Quit: Connection closed for inactivity]
<arne_> im back to loving ruby already, uh uh /hype
<Ox0dea> That was almost too easy.
<Ox0dea> I guess you don't believe that picture back there was really Ruby code?
karapetyan has joined #ruby
ht__ has joined #ruby
jackjackdripper1 has joined #ruby
AimlessRAven has joined #ruby
sapslaj has quit [Remote host closed the connection]
sapslaj has joined #ruby
sapslaj has quit [Remote host closed the connection]
sapslaj has joined #ruby
HammyJammy has joined #ruby
<AimlessRAven> hi guys, can someone explain me how to use pdf prawn gem in rails.. i mean how to create new pdf doc and link_to with my view?
jackjackdripper has quit [Ping timeout: 244 seconds]
<[spoiler]> I didn't know this is a thing... http://www.urbandictionary.com/define.php?term=Darude+-+Sandstorm
<[spoiler]> o
xcesariox has joined #ruby
<Ox0dea> [spoiler]: Welcome to the Internet. :P
<[spoiler]> Ox0dea: Lol :P
kstuart has joined #ruby
<Ox0dea> AimlessRAven: Are you sure you want to generate a link and not just initiate a download?
ht__ has quit [Client Quit]
ht__ has joined #ruby
<AimlessRAven> ok download also is good for me
mattwildig has joined #ruby
<Ox0dea> AimlessRAven: That'd be the #send_data method.
<[spoiler]> brb
<arne_> Ox0dea, not using MRI right now :)
sgambino has joined #ruby
Nahra has quit [Ping timeout: 272 seconds]
JammyHammy has quit [Ping timeout: 255 seconds]
Coldblackice has quit [Ping timeout: 244 seconds]
<Ox0dea> AimlessRAven: Well, I reckon you'll still need a tempfile on disk, so #send_file is a little more intention-revealing.
<arne_> the sequel guy let's me use sql functions in block, i read the code but didn't get it, how does he do that? does he overwrite method missing for the block?
<Ox0dea> arne_: #instance_eval is much more likely.
<Ox0dea> It lets you execute a block "as" some other object.
<arne_> ruuuuubyyyyyyyyyyyyyyyyyyyyyyyyy
<arne_> yeah, but i can use any function i want, even functions that doesn't exist like blaaaah(:name,something)
<arne_> is that method missing, atleast?
ht__ has quit [Client Quit]
<Ox0dea> Yes, that's method_missing. :P
<sapslaj> method_missing in the context of the block.
Oli` has joined #ruby
mattwildig has quit [Ping timeout: 272 seconds]
favadi has joined #ruby
orlandoj has quit [Quit: Leaving]
Hounddog has quit [Ping timeout: 272 seconds]
DrCode has joined #ruby
axl_ has joined #ruby
Rollabunna has joined #ruby
ht__ has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
tref has quit [Quit: tref]
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ht__ has quit [Client Quit]
Xeago has quit [Remote host closed the connection]
badeball has quit [Quit: leaving]
badeball has joined #ruby
scmx has quit [Ping timeout: 244 seconds]
ht__ has joined #ruby
<certainty> context_missing is the method of the block
<arne_> context_missing is how i feel right now
<certainty> :)
last_staff has joined #ruby
<arne_> certainty, someone wrote a lisp dialect for the rubinius vm
corehook has quit [Remote host closed the connection]
<certainty> arne_: what's it called?
AccordLTN has quit [Ping timeout: 240 seconds]
Emmanuel_Chanel has quit [Ping timeout: 240 seconds]
<certainty> looks like clojure
<arne_> yeah i meant the other one, just googled
yoongkang has joined #ruby
nateberkopec has joined #ruby
<certainty> interesting
davedev24 has joined #ruby
<arne_> jitted lisp erlang-thingy
ht__ has quit [Quit: Konversation terminated!]
ht__ has joined #ruby
<arne_> and native threads, woo~
scripore has quit [Quit: This computer has gone to sleep]
devoldmx has joined #ruby
corehook has joined #ruby
corehook has quit [Remote host closed the connection]
<certainty> that guy has some interesting projects
DrCode has quit [Read error: Connection reset by peer]
corehook has joined #ruby
<arne_> monitor says "monitor is going into power saving mode, press any button to abort" /me presses power button, /me feels retarded
<certainty> :D
<shevy> no
<shevy> you must press the any button man
badeball has quit [Quit: leaving]
ht__ has quit [Client Quit]
scmx has joined #ruby
blackmes1 has joined #ruby
krz has joined #ruby
devoldmx has quit [Ping timeout: 246 seconds]
badeball has joined #ruby
_blizzy_ has joined #ruby
scripore has joined #ruby
corehook has quit [Ping timeout: 240 seconds]
AimlessRAven has quit [Quit: Page closed]
blue_deref has joined #ruby
jdawgaz has joined #ruby
DrCode has joined #ruby
clauswitt has joined #ruby
krz has quit [Ping timeout: 240 seconds]
millerti has joined #ruby
ale- has joined #ruby
badeball has quit [Quit: leaving]
badeball has joined #ruby
benlovell has quit [Quit: leaving]
ht__ has joined #ruby
scripore has quit [Quit: This computer has gone to sleep]
corehook has joined #ruby
wprice has joined #ruby
ht__ has quit [Client Quit]
badeball has quit [Quit: leaving]
badeball has joined #ruby
akem has quit [Remote host closed the connection]
k3asd` has joined #ruby
millerti has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
badeball has quit [Client Quit]
badeball has joined #ruby
blackmes1 has quit [Ping timeout: 240 seconds]
mghaig has joined #ruby
brushbox has joined #ruby
claw has quit [Ping timeout: 246 seconds]
Emmanuel_Chanel has joined #ruby
Emmanuel_Chanel has quit [Max SendQ exceeded]
teclator has quit [Ping timeout: 250 seconds]
Emmanuel_Chanel has joined #ruby
mghaig has quit [Read error: Connection reset by peer]
hackeron has quit [Ping timeout: 246 seconds]
ht__ has joined #ruby
synthroid has joined #ruby
RegulationD has joined #ruby
hackeron has joined #ruby
RegulationD has quit [Remote host closed the connection]
ht__ has quit [Client Quit]
ht__ has joined #ruby
scripore has joined #ruby
krz has joined #ruby
zotherstupidguy has quit [Ping timeout: 276 seconds]
quazimodo has joined #ruby
zotherstupidguy has joined #ruby
mooe has quit [Quit: Connection closed for inactivity]
ht__ has quit [Client Quit]
ht__ has joined #ruby
claw has joined #ruby
trosborn has joined #ruby
tkuchiki has joined #ruby
zotherstupidguy has quit [Ping timeout: 250 seconds]
ht__ has quit [Client Quit]
scripore has quit [Quit: This computer has gone to sleep]
tulak_ has quit [Remote host closed the connection]
tulak has joined #ruby
tulak_ has joined #ruby
tulak has quit [Read error: Connection reset by peer]
ht__ has joined #ruby
axl_ has joined #ruby
norc has quit [Ping timeout: 246 seconds]
lukaszes has joined #ruby
ht__ has quit [Client Quit]
ht__ has joined #ruby
B1n4r10 has joined #ruby
rippa has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
lukaszes has quit [Client Quit]
rgtk has joined #ruby
Sam_ has joined #ruby
futilegames has joined #ruby
mostlybadfly has joined #ruby
ht__ has quit [Ping timeout: 250 seconds]
teclator has joined #ruby
inteq has quit [Remote host closed the connection]
rippa has quit [Ping timeout: 250 seconds]
stannard has joined #ruby
freerobby has joined #ruby
suchness has joined #ruby
sgambino has joined #ruby
kaspergr1bbe has quit [Remote host closed the connection]
Xeago has joined #ruby
Xeago has quit [Remote host closed the connection]
zotherstupidguy has joined #ruby
zotherstupidguy has quit [Client Quit]
jackjackdripper1 has quit [Quit: Leaving.]
Xeago has joined #ruby
bdnelson has joined #ruby
_stu_ has joined #ruby
futilegames has quit [Quit: futilegames]
huyderman has joined #ruby
ht__ has joined #ruby
freerobby has quit [Quit: Leaving.]
Xeago has quit [Ping timeout: 240 seconds]
binaryplease has joined #ruby
ESpiney has joined #ruby
roxtrong_ has quit [Remote host closed the connection]
ht__ has quit [Quit: Konversation terminated!]
Pumukel has quit [Quit: ChatZilla 0.9.92 [Firefox 42.0/20151029151421]]
brushbox has quit [Quit: brushbox]
freerobby has joined #ruby
codecop has quit [Remote host closed the connection]
ht__ has joined #ruby
goodcodeguy has joined #ruby
_0mega has joined #ruby
rippa has joined #ruby
ekinmur has joined #ruby
ht__ has quit [Client Quit]
JDiPierro has joined #ruby
B1n4r10 has quit [Ping timeout: 265 seconds]
mattwildig has joined #ruby
tkuchiki has quit [Remote host closed the connection]
Hounddog has joined #ruby
ekinmur has quit [Client Quit]
RegulationD has joined #ruby
dmitch has joined #ruby
Rickmasta has joined #ruby
_0mega has quit [Quit: Leaving.]
aufi has quit [Ping timeout: 264 seconds]
gusTester has joined #ruby
Yzguy has joined #ruby
ht__ has joined #ruby
_0mega has joined #ruby
Musashi007 has joined #ruby
dlitvak has quit [Ping timeout: 260 seconds]
lubarch has joined #ruby
TomPeed has joined #ruby
atomical has joined #ruby
Hounddog has quit [Ping timeout: 240 seconds]
ht__ has quit [Client Quit]
ht__ has joined #ruby
sankaber has joined #ruby
ekinmur has joined #ruby
dionysus69 has quit [Quit: dionysus69]
dionysus69 has joined #ruby
blaxter has quit [Quit: foo]
dlitvak has joined #ruby
Hounddog has joined #ruby
wildlander has joined #ruby
dionysus69 has quit [Client Quit]
ht__ has quit [Ping timeout: 255 seconds]
malconis has joined #ruby
malconis has quit [Remote host closed the connection]
c355E3B has quit [Quit: Connection closed for inactivity]
malconis has joined #ruby
grepwood has joined #ruby
<grepwood> why does it take extremely long to sha1 a file in ruby? the file is only 385MB large
Sam_ has quit [Ping timeout: 250 seconds]
prestorium_ has joined #ruby
last_staff has quit [Quit: last_staff]
CloCkWeRX has quit [Ping timeout: 240 seconds]
tref has joined #ruby
grepwood has quit [Client Quit]
avril14th has joined #ruby
IrishGringo has joined #ruby
Musashi007 has quit [Quit: Musashi007]
prestorium has quit [Ping timeout: 250 seconds]
jgpawletko has joined #ruby
<adaedra> It's faster than shasum binary on my computer ._.
gusTester has left #ruby [#ruby]
stannard has quit [Remote host closed the connection]
axl_ has joined #ruby
decoponio has joined #ruby
tulak_ has quit [Ping timeout: 250 seconds]
a346 has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
DrCode has quit [Read error: Connection reset by peer]
skade has quit [Quit: Computer has gone to sleep.]
kobain has joined #ruby
axl_ has quit [Ping timeout: 240 seconds]
<jhass> adaedra: but more than their patience apparently
<adaedra> :p
rodfersou is now known as rodfersou|lunch
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
freerobby has quit [Quit: Leaving.]
babblebre has joined #ruby
dlitvak has joined #ruby
dorei has joined #ruby
B1n4r10 has joined #ruby
_0mega has quit [Quit: Leaving.]
matcz has quit [Ping timeout: 244 seconds]
matcz has joined #ruby
whippythellama has joined #ruby
dlitvak_ has joined #ruby
_0mega has joined #ruby
Sam_ has joined #ruby
dlitvak has quit [Ping timeout: 255 seconds]
ht__ has joined #ruby
JDiPierro has quit [Remote host closed the connection]
daivyk has joined #ruby
[k- has joined #ruby
prestorium_ is now known as prestorium
ht__ has quit [Client Quit]
Rickmasta has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_stu_ has quit [Quit: _stu_]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dhollinger has joined #ruby
monthy has joined #ruby
riotjones has quit [Remote host closed the connection]
Xeago has joined #ruby
devoldmx has joined #ruby
riotjones has joined #ruby
n00 has joined #ruby
_stu_ has joined #ruby
Spami has quit [Quit: This computer has gone to sleep]
riotjone_ has joined #ruby
B1n4r10 has quit [Quit: leaving]
simplyianm has quit [Remote host closed the connection]
simplyianm has joined #ruby
B1n4r10 has joined #ruby
urbanmonk has joined #ruby
tlarevo has joined #ruby
futilegames has joined #ruby
sankaber has quit [Remote host closed the connection]
simplyianm has quit [Remote host closed the connection]
sankaber has joined #ruby
bMalum has joined #ruby
simplyianm has joined #ruby
slash_ni1k is now known as slash_nick
RegulationD has quit [Remote host closed the connection]
n00py has joined #ruby
ht__ has joined #ruby
Melpaws has joined #ruby
Melpaws has left #ruby [#ruby]
devoldmx has quit [Ping timeout: 260 seconds]
<n00py> .
riotjones has quit [Ping timeout: 240 seconds]
a346 has quit [Quit: a346]
lavros has joined #ruby
tlarevo_ has quit [Ping timeout: 250 seconds]
n00 has quit [Ping timeout: 240 seconds]
lubarch has quit [Ping timeout: 240 seconds]
<apeiros> adaedra: I bet they calculated the sum via ruby
<adaedra> apeiros: you mean, do the algorithm themselves?
<apeiros> (as opposed to just using Digest::SHA1.file)
freerobby has joined #ruby
<apeiros> no, I mean, create a SHA1 instance, read the file in ruby, and increment the SHA1 instance
RegulationD has joined #ruby
RegulationD has quit [Remote host closed the connection]
ht__ has quit [Client Quit]
ht__ has joined #ruby
lubarch has joined #ruby
Xeago has quit [Ping timeout: 240 seconds]
<adaedra> ah.
lubarch has quit [Client Quit]
lubarch has joined #ruby
lubarch has quit [Client Quit]
sdwrage has joined #ruby
lubarch has joined #ruby
JDiPierro has joined #ruby
polishdub has joined #ruby
ht__ has quit [Client Quit]
futilegames has quit [Quit: futilegames]
moeabdol has quit [Quit: WeeChat 1.3]
RegulationD has joined #ruby
nateberkopec has quit [Quit: Leaving...]
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
htmldrum has quit [Ping timeout: 260 seconds]
Guest80584 has quit [Ping timeout: 250 seconds]
ht__ has joined #ruby
riotjone_ has quit [Remote host closed the connection]
mistermocha has joined #ruby
riotjones has joined #ruby
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trosborn has quit [Quit: trosborn]
ht__ has quit [Read error: Connection reset by peer]
moeabdol has joined #ruby
DexterLB has quit [Ping timeout: 260 seconds]
_stu_ has quit [Quit: _stu_]
lubarch has quit [Quit: leaving]
favadi has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
DexterLB has joined #ruby
senayar has quit [Read error: Connection reset by peer]
robbyoconnor has quit [Quit: Konversation terminated!]
favadi has joined #ruby
aganov has quit [Remote host closed the connection]
senayar has joined #ruby
riotjones has quit [Ping timeout: 264 seconds]
varesa is now known as varesa_
maikowblue has joined #ruby
ht__ has joined #ruby
wa_r_ch_i__ld1 has joined #ruby
atomical has quit [Max SendQ exceeded]
neonalpine has joined #ruby
ht__ has quit [Client Quit]
atomical has joined #ruby
bMalum has quit [Ping timeout: 264 seconds]
tulak has joined #ruby
ht__ has joined #ruby
troulouliou_div2 has joined #ruby
grill has joined #ruby
nateberkopec has joined #ruby
wa_r_ch_i__ld1 has quit [Remote host closed the connection]
htmldrum has joined #ruby
ht__ has quit [Client Quit]
varesa has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
_stu_ has joined #ruby
lukaszes has joined #ruby
teclator has quit [Ping timeout: 240 seconds]
atomical has quit [Ping timeout: 255 seconds]
jobewan has joined #ruby
axl_ has joined #ruby
dmitch has joined #ruby
atomical has joined #ruby
ht__ has joined #ruby
mistermocha has quit [Remote host closed the connection]
dlitvak_ has quit [Ping timeout: 276 seconds]
Zurg_ has joined #ruby
tkuchiki has joined #ruby
<Zurg_> join
nfk|laptop has quit [Quit: yawn]
be_erik has joined #ruby
<arne_> JOIN WHAT?
kerunaru has joined #ruby
<Zurg_> guys, i'm new in ruby and i have a question, i'm trying to program a little game, is really a small one based on basic functions, more like an exercise than a real game :D.
<Zurg_> here's my problem
kimegede has quit [Quit: Leaving...]
<Zurg_> i don't really know how to put more than one "if"
<avril14th> 0o
<arne_> put "if"*2
<huyderman> lol
<avril14th> well, you can type as many if as your keyboard allows
tjohnson has joined #ruby
<Zurg_> yeah funny
dopie has joined #ruby
<arne_> >> puts "it's easy" if 1==1 and 1==2
<ruboto> arne_ # => nil (https://eval.in/468358)
<arne_> WUT
<havenwood> >> if true; if true; if true; :friday! end end end
<ruboto> havenwood # => :friday! (https://eval.in/468359)
chouhoulis has joined #ruby
varesa has quit [Quit: ZNC - http://znc.in]
<avril14th> arne_: ahah
Xeago has joined #ruby
<avril14th> >> puts "it's easy" if 1==1 && 1==2
<ruboto> avril14th # => nil (https://eval.in/468360)
ht__ has quit [Ping timeout: 264 seconds]
<Zurg_> &&
<Zurg_> ?
erbesharat has joined #ruby
bruno-_ has joined #ruby
varesa has joined #ruby
<huyderman> if foo; do_something; elsif bar; do_something_else; end
<adaedra> && is logical "and"
<avril14th> Zurg_: I think you should read a bit more tutorials on ruby to clear a bit your head first
aramiscd has quit [Remote host closed the connection]
tkuchiki has quit [Ping timeout: 272 seconds]
ruby-lang512 has joined #ruby
grilled-cheese has joined #ruby
<arne_> >> puts "it's easy" if true and true
<adaedra> now, maybe you want to explain what you mean exactly by "puting more than one if", what are you trying to do, Zurg_
<ruboto> arne_ # => it's easy ...check link for more (https://eval.in/468361)
NeverDie has quit [Quit: http://radiux.io/]
<Zurg_> yeah i know but there aren't a lot of tutorials on my language
<arne_> weird.
aramiscd has joined #ruby
Zurg_ has quit [Quit: Page closed]
<arne_> off he goes!
<avril14th> looks like a timeout
<arne_> haha, ah i see, he used webirc and clicked the link
<arne_> hilarious
<avril14th> maybe the guy is indeed in a far far country with a weird language
<avril14th> arne_: lol
<arne_> next i will tell him to join #0,0, they usually help out
p0wn3d has joined #ruby
<adaedra> Italia, according to IP.
darkxploit has joined #ruby
dionysus69 has joined #ruby
<avril14th> these italians, always exaggerating...
atomical has quit [Max SendQ exceeded]
huyderman has quit [Read error: Connection reset by peer]
teclator has joined #ruby
<adaedra> So yeah, with a weird language :p
<arne_> papapopepi
binaryplease has quit [Ping timeout: 250 seconds]
The_Phoenix has joined #ruby
treehug88 has joined #ruby
atomical has joined #ruby
lukaszes has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
ruby-lang512 has quit [Ping timeout: 246 seconds]
diegoaguilar has joined #ruby
atomical has quit [Ping timeout: 255 seconds]
beauby has joined #ruby
astrobunny has joined #ruby
Peg-leg has quit [Quit: Leaving.]
tubuliferous_ has joined #ruby
Rodya_ has joined #ruby
arup_r has joined #ruby
Xeago has quit [Remote host closed the connection]
matcz has quit [Ping timeout: 250 seconds]
Xeago has joined #ruby
matcz has joined #ruby
Channel6 has joined #ruby
tubuliferous_ has quit [Ping timeout: 246 seconds]
p0wn3d has quit [Quit: WeeChat 1.3]
Xeago has quit [Remote host closed the connection]
unknowns2k2 has joined #ruby
Guest53 has joined #ruby
NeverDie has joined #ruby
yoongkang has quit [Ping timeout: 240 seconds]
yoongkang has joined #ruby
symm- has joined #ruby
mary5030 has joined #ruby
mary5030 has quit [Remote host closed the connection]
ruurd has joined #ruby
devoldmx has joined #ruby
mary5030 has joined #ruby
agentmeerkat has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
Xeago has joined #ruby
[k- has quit [Quit: Lingo: www.lingoirc.com]
riotjone_ has joined #ruby
dionysus69 has quit [Ping timeout: 265 seconds]
jenaiz has joined #ruby
jenaiz has left #ruby [#ruby]
RegulationD has quit [Remote host closed the connection]
devoldmx has quit [Ping timeout: 260 seconds]
ht__ has joined #ruby
SCHAAP137 has quit [Remote host closed the connection]
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
hahuang65 has quit [Ping timeout: 264 seconds]
beauby has quit [Read error: Connection reset by peer]
unknowns2k2 has quit [Quit: unknowns2k2]
ruby-lang705 has joined #ruby
riotjone_ has quit [Ping timeout: 240 seconds]
ht__ has quit [Client Quit]
ruby-lang705 has quit [Client Quit]
Hounddog has quit [Ping timeout: 264 seconds]
Hounddog has joined #ruby
Fire-Dragon-DoL has joined #ruby
urbanmonk has joined #ruby
freerobby has quit [Quit: Leaving.]
RegulationD has joined #ruby
yosiat has joined #ruby
freerobby has joined #ruby
Pupp3tm4_ has quit [Remote host closed the connection]
pimpin has joined #ruby
momomomomo has joined #ruby
beauby has joined #ruby
subscope has joined #ruby
urbanmonk has quit [Client Quit]
Hounddog has quit [Ping timeout: 272 seconds]
astrobunny has quit [Remote host closed the connection]
Hounddog has joined #ruby
pimpin has quit [Ping timeout: 240 seconds]
stannard has joined #ruby
ruby-lang402 has joined #ruby
urbanmonk has joined #ruby
umgrosscol has joined #ruby
kies has joined #ruby
kerunaru has joined #ruby
unreal has quit [Ping timeout: 240 seconds]
chouhoulis has quit [Remote host closed the connection]
chouhoulis has joined #ruby
<ruby-lang402> Hello, I have a very specific question. Is there any place in Warden that passes user requests as method names?
stannard has quit [Ping timeout: 255 seconds]
shinenelson has quit [Quit: Connection closed for inactivity]
terminalrecluse has joined #ruby
rcvalle has joined #ruby
n00py has quit [Ping timeout: 260 seconds]
yeticry has quit [Ping timeout: 250 seconds]
<jhass> ruby-lang402: maybe elaborate a bit on where you're coming from
yeticry has joined #ruby
shinnya has joined #ruby
urbanmonk has quit [Quit: urbanmonk]
northfurr has joined #ruby
cdg has joined #ruby
<ruby-lang402> jhass: Sorry if I'm asking a bad question...let's see how to clarify. I'm trying to get up to speed on the Warden codebase and I want to know if user input is passed to Warden in a way that would take the user request and initialize a new method for authentication.
unreal has joined #ruby
<ruby-lang402> i.e. can a user directly impact a method name
cdg has quit [Read error: Connection reset by peer]
cdg_ has joined #ruby
rodfersou|lunch is now known as rodfersou
maletor has joined #ruby
dlitvak_ has joined #ruby
<ruby-lang402> to add a bit more color, obviously not an admin user who is setting up the server, but an end user who would potentially send requests to be auth validated by warden
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
norc has joined #ruby
rbowlby has joined #ruby
tulak has quit [Remote host closed the connection]
<norc> So... What is the best way to request a backport for a bugfix already committed on trunk nearly a year ago?
d0lph1n98 has joined #ruby
<norc> Ox0dea you surely know
tulak has joined #ruby
<jhass> ruby-lang402: the potential offenders are quite easily found with grep: http://p.jhass.eu/x.txt It's not that many, what you want to do is find the sources of the first argument primarily. For manager.rb that's easy stroked off, it's a static value
dlitvak has quit [Ping timeout: 252 seconds]
neonalpine has quit []
<jhass> ruby-lang402: I would expect everything in hook to come from the library user, but that remains to be verified of course
arup_ has joined #ruby
<ruby-lang402> jhass - thanks, that's really helpful :)
Channel6 has quit [Ping timeout: 272 seconds]
<jhass> ruby-lang402: the call in errors.rb is inside method_missing, so it can only be triggered by explicit calls or one of the reaming send's
vallen has joined #ruby
<ruby-lang402> so basically that call could not be triggered by a user sending a malformed or invalid request
atomical has joined #ruby
<jhass> very unlikely
eminencehc has joined #ruby
<jhass> https://github.com/hassox/warden/blob/master/lib/warden/session_serializer.rb#L33 for this call the amount of callable methods is greatly minimized even if scope is user provided
dsimon has joined #ruby
<norc> Silly me. This is actually documented on bugs.ruby-lang.org
<jhass> I only used warden through devise, so I'm not sure, but I'd be surprised if scope is actually not coming from the library user either
<jhass> same for the other send above
arup_r has quit [Ping timeout: 272 seconds]
Yzguy has quit [Ping timeout: 255 seconds]
rgtk has quit [Remote host closed the connection]
arup__ has joined #ruby
SigmundFried has quit [Ping timeout: 246 seconds]
uri has joined #ruby
Channel6 has joined #ruby
ruurd has quit [Quit: ZZZzzz…]
avril14th has quit [Remote host closed the connection]
stamina has quit [Quit: WeeChat 1.3]
erbesharat has quit [Read error: Connection reset by peer]
Lucky__ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hounddog has quit [Ping timeout: 240 seconds]
arup_ has quit [Ping timeout: 244 seconds]
lubekpl has quit [Quit: Textual IRC Client: www.textualapp.com]
erbesharat has joined #ruby
hahuang65 has joined #ruby
zapata has quit [Quit: WeeChat 1.3]
pimpin has joined #ruby
yoongkang has quit [Remote host closed the connection]
kstuart has quit [Quit: WeeChat 1.3]
karapetyan has quit [Remote host closed the connection]
Hounddog has joined #ruby
ruurd has joined #ruby
bdnelson has quit [Quit: Textual IRC Client: www.textualapp.com]
h99h9h88 has joined #ruby
DroidBurgundy has joined #ruby
Fredrich_ has joined #ruby
lukaszes has joined #ruby
[Butch] has joined #ruby
d0lph1n98 has quit [Quit: leaving]
Hounddog has quit [Ping timeout: 240 seconds]
Fredrich010 has quit [Ping timeout: 250 seconds]
lukaszes has quit [Client Quit]
Hounddog has joined #ruby
Meow-J has quit [Quit: Connection closed for inactivity]
dionysus69 has joined #ruby
Hounddog has quit [Excess Flood]
shinnya has quit [Ping timeout: 260 seconds]
northfurr has quit [Quit: northfurr]
norc-2 has joined #ruby
devoldmx has joined #ruby
NeverDie has quit [Quit: http://radiux.io/]
norc has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
Hounddog has joined #ruby
k3asd` has quit [Ping timeout: 276 seconds]
zapata has joined #ruby
skweek has quit [Ping timeout: 255 seconds]
Spami has joined #ruby
blue_deref2 has joined #ruby
senayar has quit []
Hounddog has quit [Excess Flood]
blue_deref has quit [Ping timeout: 264 seconds]
devoldmx has quit [Ping timeout: 255 seconds]
Channel6 has quit [Ping timeout: 272 seconds]
mistermocha has quit [Ping timeout: 240 seconds]
dlitvak_ has quit [Ping timeout: 250 seconds]
barhum2013 has quit [Quit: barhum2013]
<_blizzy_> in ruby, is it better to use symbols for my keys, or strings?
tulak has quit [Remote host closed the connection]
beauby has quit [Ping timeout: 250 seconds]
scmx has quit [Ping timeout: 240 seconds]
barhum2013 has joined #ruby
erbesharat has quit [Remote host closed the connection]
mattwildig has quit [Remote host closed the connection]
blue_deref2 is now known as blue_deref
monthy has quit [Remote host closed the connection]
arup__ is now known as arup_r
<jhass> _blizzy_: is it better to use integers or floats? They serve different purposes
Fire-Dragon-DoL has quit [Remote host closed the connection]
<_blizzy_> jhass, I guess so. if I'm just using a basic hash, should I use strings or symbols. v:
NeverDie has joined #ruby
riotjone_ has joined #ruby
<jhass> same answer, there's no canonical definition of "basic hash" and how you use it is what matters
pimpin has quit [Remote host closed the connection]
exadeci has quit [Quit: Connection closed for inactivity]
<_blizzy_> ok. I'll just use symbols.
yqt has joined #ruby
ajaiswal has quit [Ping timeout: 240 seconds]
dlitvak has joined #ruby
tref has quit [Quit: tref]
RegulationD has quit [Remote host closed the connection]
Fire-Dragon-DoL has joined #ruby
Fire-Dragon-DoL has quit [Client Quit]
Hounddog has joined #ruby
riotjone_ has quit [Ping timeout: 240 seconds]
yfeldblum has quit [Ping timeout: 240 seconds]
maletor has quit [Quit: Computer has gone to sleep.]
shredding has quit [Ping timeout: 246 seconds]
stan has quit [Ping timeout: 252 seconds]
ramfjord has joined #ruby
JDiPierro has quit [Remote host closed the connection]
cdg_ has quit [Remote host closed the connection]
Hounddog has quit [Read error: Connection reset by peer]
Sam_ has quit [Quit: Leaving]
joonty has quit [Quit: joonty]
bb010g has quit [Quit: Connection closed for inactivity]
tlarevo has quit []
ajaiswal has joined #ruby
Hounddog has joined #ruby
kimegede has joined #ruby
cdg has joined #ruby
fedexo has joined #ruby
diegoaguilar has quit [Quit: Leaving]
Hounddog has quit [Excess Flood]
bb010g has joined #ruby
lavros has quit [Quit: leaving]
eminencehc has quit [Remote host closed the connection]
Hounddog has joined #ruby
rgtk has joined #ruby
TPBallbag has quit [Quit: don't try and hack my account Ballkenende]
trosborn has joined #ruby
gusrub has joined #ruby
kimegede has quit [Ping timeout: 272 seconds]
be_erik has quit [Quit: be_erik]
lsmola has quit [Ping timeout: 250 seconds]
rgtk has quit [Ping timeout: 260 seconds]
ruurd has quit [Quit: ZZZzzz…]
troulouliou_div2 has quit [Remote host closed the connection]
_0mega has quit [Quit: Leaving.]
pimpin has joined #ruby
gusrub has quit []
symm- has quit [Ping timeout: 260 seconds]
be_erik has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
_0mega has joined #ruby
eminencehc has joined #ruby
hashpuppy has joined #ruby
tulak has joined #ruby
<FailBit> you can't specify a user-agent with net::http, no?
DEA7TH has quit [Quit: DEA7TH]
be_erik has quit [Ping timeout: 250 seconds]
<_blizzy_> mfw I was wondering why my bot was crashing for 10 minutes, only to realize I wasn't changing the string to a symbol.
<_blizzy_> :/
<adaedra> If you can define headers, you can define an user-agent, I'd say.
TomyWork has quit [Ping timeout: 260 seconds]
Lorn_ is now known as Lorn
Lorn has quit [Changing host]
Lorn has joined #ruby
tubuliferous_ has joined #ruby
<arne_> >> "".to_sym
<ruboto> arne_ # => :"" (https://eval.in/468412)
<arne_> :3
<adaedra> ?
imperator has joined #ruby
slash_nick has quit [Changing host]
slash_nick has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
nertzy has joined #ruby
h99h9h88 has joined #ruby
mary5030_ has joined #ruby
tubuliferous_ has quit [Ping timeout: 246 seconds]
favadi has quit [Quit: Textual IRC Client: www.textualapp.com]
Rollabunna has quit [Quit: Leaving...]
leafyba__ has joined #ruby
mistermocha has joined #ruby
Azure has quit [Ping timeout: 260 seconds]
h99h9h88 has quit [Ping timeout: 265 seconds]
DexterLB has quit [Read error: Connection reset by peer]
mary5030 has quit [Ping timeout: 244 seconds]
_0mega has quit [Quit: Leaving.]
mistermocha has quit [Read error: Connection reset by peer]
mary5030_ has quit [Remote host closed the connection]
dlitvak has joined #ruby
leafybas_ has quit [Ping timeout: 240 seconds]
mary5030 has joined #ruby
be_erik has joined #ruby
dtordable has quit [Quit: Lost terminal]
freerobby has quit [Quit: Leaving.]
skweek has joined #ruby
leafyba__ has quit [Ping timeout: 260 seconds]
momomomomo_ has joined #ruby
DexterLB has joined #ruby
mistermocha has joined #ruby
momomomomo has quit [Ping timeout: 240 seconds]
momomomomo_ is now known as momomomomo
dopie has quit [Quit: This computer has gone to sleep]
_0mega has joined #ruby
yoongkang has joined #ruby
Hounddog has quit [Remote host closed the connection]
be_erik has quit [Quit: be_erik]
eminencehc has quit [Remote host closed the connection]
be_erik has joined #ruby
AndroidLoverInSF has joined #ruby
lemur has joined #ruby
fantazo has joined #ruby
dfockler has joined #ruby
dopie has joined #ruby
tulak has quit [Remote host closed the connection]
yoongkang has quit [Ping timeout: 240 seconds]
tulak has joined #ruby
_stu_ has quit [Quit: _stu_]
corehook has quit [Remote host closed the connection]
subscope has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
unknowns2k2 has joined #ruby
mrtomme has quit [Ping timeout: 260 seconds]
mrtomme has joined #ruby
B1n4r10 has quit [Ping timeout: 252 seconds]
skweek has quit [Ping timeout: 240 seconds]
_stu_ has joined #ruby
arne_ has quit [Remote host closed the connection]
Jardayn has joined #ruby
syg has joined #ruby
RegulationD has joined #ruby
pimpin has quit [Remote host closed the connection]
<syg> i am having trouble getting my compass gem to run from cli, also i seem to have to install it with sudo even with rvm installed, ubuntu 15.10
atomical has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
tref has joined #ruby
Eiam_ has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
AndroidLoverInSF has quit [Ping timeout: 240 seconds]
ruby-lang402 has quit [Quit: Page closed]
dented42_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
karapetyan has joined #ruby
AndroidLoverInSF has joined #ruby
B1n4r10 has joined #ruby
freerobby has joined #ruby
ramfjord has joined #ruby
corehook has joined #ruby
be_erik has quit [Quit: be_erik]
_0mega has quit [Quit: Leaving.]
karapetyan has quit [Ping timeout: 276 seconds]
AndroidLoverInSF has quit [Ping timeout: 250 seconds]
ThatsNotJack has quit [Remote host closed the connection]
banister has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
lemur is now known as bawaever
B1n4r10 has quit [Ping timeout: 276 seconds]
bawaever is now known as baweaver_
ThatsNotJack has joined #ruby
baweaver has quit [Disconnected by services]
baweaver_ is now known as baweaver
unknowns2k2 has quit [Quit: unknowns2k2]
kerunaru has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
freerobby1 has joined #ruby
lemur has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
AndroidLoverInSF has joined #ruby
_0mega has joined #ruby
kerunaru has quit [Client Quit]
mrsolo has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
Ox0dea has quit [Quit: WeeChat 1.4-dev]
JDiPierro has joined #ruby
momomomomo_ has joined #ruby
rakm has joined #ruby
barhum2013 has left #ruby [#ruby]
momomomomo has quit [Ping timeout: 260 seconds]
momomomomo_ is now known as momomomomo
kerunaru has joined #ruby
dlitvak has joined #ruby
Arkon has joined #ruby
_stu_ has quit [Quit: _stu_]
justin_herrick has joined #ruby
AndroidLoverInSF has quit [Quit: This computer has gone to sleep]
corehook_ has joined #ruby
corehook has quit [Ping timeout: 240 seconds]
norc-2 has quit [Read error: Connection reset by peer]
djbkd has joined #ruby
norc-2 has joined #ruby
ruurd has joined #ruby
stannard has joined #ruby
Xeago has quit [Remote host closed the connection]
Jackneill has joined #ruby
jackjackdripper has joined #ruby
mrmargolis has joined #ruby
syg has left #ruby ["WeeChat 1.2"]
skweek has joined #ruby
fedexo has quit [Ping timeout: 246 seconds]
dmj has joined #ruby
<dmj> hi, I'm trying to edit some exsting ruby code, how would I rebuild it to produce an executable?
<dmj> I see there is rake, gem, and bundle
<dmj> is there like a 'build' command
<eam> dmj: ruby is interpreted, so there's no building. "bundle install" will install dependencies, but you can just run it and it will be interpreted at runtime
darkxploit has quit [Ping timeout: 260 seconds]
<eam> you may need to "bundle exec ..." to run your thing with the bundled dependencies in its environment
malconis_ has joined #ruby
<shevy> good morning #vietnam!
<shevy> I mean, #ruby
DoubleMalt has quit [Ping timeout: 265 seconds]
h99h9h88 has joined #ruby
malconis has quit [Ping timeout: 250 seconds]
uo119 has joined #ruby
eminencehc has joined #ruby
malconis_ has quit [Remote host closed the connection]
ramfjord has quit [Ping timeout: 255 seconds]
malconis has joined #ruby
uo119 has quit [Client Quit]
htmldrum has joined #ruby
_0mega has quit [Quit: Leaving.]
apofis has quit [Ping timeout: 252 seconds]
_0mega has joined #ruby
<eam> shevy: good morning
h99h9h88 has quit [Ping timeout: 255 seconds]
arthurix has joined #ruby
riotjone_ has joined #ruby
Meow-J has joined #ruby
yqt has quit [Ping timeout: 240 seconds]
leafybas_ has joined #ruby
momomomomo has quit [Quit: momomomomo]
darkxploit has joined #ruby
arthurix_ has quit [Ping timeout: 250 seconds]
Spami has quit [Quit: This computer has gone to sleep]
riotjone_ has quit [Ping timeout: 240 seconds]
grilled-cheese has quit [Quit: grilled-cheese]
_0mega has quit [Quit: Leaving.]
robbyoconnor has joined #ruby
Fire-Dragon-DoL has joined #ruby
gguggi has quit [Ping timeout: 246 seconds]
clauswitt has joined #ruby
yfeldblum has joined #ruby
jamesaxl has joined #ruby
Xeago has joined #ruby
<dmj> eam: so I call 'bundle install *.gemspec' and then 'bundle exec' ?
AndroidLoverInSF has joined #ruby
<eam> just bundle install - it will read the Gemfile in the current directory
<dmj> oooo
htmldrum has quit [Ping timeout: 260 seconds]
dionysus69 has quit [Ping timeout: 240 seconds]
DoubleMalt has joined #ruby
<dmj> so it produces a gem file from a gemspec
<jhass> if you have the sources of a gem and want to build and install it, it's gem build *.gemspec && gem install *.gem
DEA7TH has joined #ruby
<eam> a gemspec is an instruction on how to build a gem package
<eam> it's similar to a spec file for rpm, if you're familiar with that
bubbys has joined #ruby
blackmes1 has joined #ruby
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
`based_pdev` has quit [Ping timeout: 246 seconds]
sepp2k has quit [Quit: Leaving.]
tref has quit [Quit: tref]
<dmj> ah
<dmj> jhass: so that will put it in my /usr/bin/<proj>
last_staff has joined #ruby
clauswitt has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sphex has quit [Read error: Connection reset by peer]
<dmj> eam: so does it copy the source code somewhere else?
<dmj> to interpret it
<jhass> if the gemspec defines any .executables it will install them to what `gem env` prints as executable directory or what you specify with the -n flag to gem install
<dmj> like a gem library or something or rather, and put the execute scripts in /usr/local/bin
<jhass> gem build will package the library up in a gem file, which is a zip + metadata
<jhass> gem install can install gem files into the system
<jhass> by extracting the files into the right locations
devoldmx has joined #ruby
Rodya_ has quit [Quit: Leaving...]
last_staff has quit [Client Quit]
shortdudey123 has quit [Max SendQ exceeded]
shortdudey123 has joined #ruby
sphex has joined #ruby
<dmj> jhass: nice, very cool
tkuchiki has joined #ruby
<dmj> jhass: have you played with sinatra?
<jhass> a bit, sure
krz has quit [Quit: WeeChat 1.2]
doodleha_ has joined #ruby
doodleha_ has quit [Read error: Connection reset by peer]
leafybas_ has quit [Ping timeout: 240 seconds]
Ox0dea has joined #ruby
<eam> dmj: no, interpreted languages on unix work by reading the file being run
roxtrongo has joined #ruby
JDiPierro has quit []
<dmj> jhass: do you know if the order in which you declare your handlers in the do blocks has an impact on routing, http://lpaste.net/145194
devoldmx has quit [Ping timeout: 252 seconds]
JDiPierro has joined #ruby
roxtrong_ has joined #ruby
platzhirsch has left #ruby [#ruby]
<Ox0dea> dmj: It does; the first match is the one that gets used.
<jhass> "Routes are matched in the order they are defined. The first route that matches the request is invoked." http://www.sinatrarb.com/intro.html#Routes
htmldrum has joined #ruby
tref has joined #ruby
chris2 has quit [Ping timeout: 272 seconds]
<Ox0dea> dmj: Try using `#!/usr/bin/cat` as the shebang to get a feel for what's happening when interpreted languages are run as "executables".
mistermo_ has joined #ruby
mattwildig has joined #ruby
<shevy> stop putting cats in your shebangs!
<Ox0dea> But this isn't a UUoC!
be_erik has joined #ruby
dented42 has joined #ruby
baweaver has quit [Remote host closed the connection]
mistermo_ has quit [Read error: Connection reset by peer]
<Ox0dea> That said, you can't spell "demonstrative" without summoning a few demons.
trosborn has quit [Quit: trosborn]
darkf has quit [Quit: Leaving]
EvilDMP has joined #ruby
roxtrongo has quit [Ping timeout: 252 seconds]
symm- has joined #ruby
maikowblue has quit [Ping timeout: 240 seconds]
Xeago has quit [Read error: Connection reset by peer]
htmldrum has quit [Ping timeout: 240 seconds]
Xeago has joined #ruby
mistermocha has quit [Ping timeout: 260 seconds]
roxtrongo has joined #ruby
RegulationD has quit [Remote host closed the connection]
ruurd has quit [Quit: ZZZzzz…]
<EvilDMP> Hello, I hope you can help me. I want to get Jekyll working again on OS X 10.11. gem install jekyll tells me "You don't have write permissions for the /usr/bin directory.", so I think that's Apple's Ruby, not Homebrew's, but brew install ruby tells me "Warning: ruby-2.2.3 already installed"
<EvilDMP> how would you advise me to proceed?
howdoi has quit [Quit: Connection closed for inactivity]
andikr has quit [Remote host closed the connection]
mattwildig has quit [Ping timeout: 255 seconds]
The_Phoenix has quit [Read error: Connection reset by peer]
RegulationD has joined #ruby
<FailBit> does homebrew still insist on making /usr worldwritable
<FailBit> because whether it does is going to be directly proportional to my ability to assist you
<FailBit> s/ability/willingness
roxtrong_ has quit [Ping timeout: 260 seconds]
<EvilDMP> FailBit: I don't know; what I know is Python, I want everything else to work as simply as a pencil or a fork
<adaedra> homebrew wants /usr/local as root:admin and 0775
`based_pdev` has joined #ruby
<EvilDMP> but I can munge permissions if required
<FailBit> EvilDMP: prepend /usr/local/bin to your path
<FailBit> that should get it
yfeldblum has quit [Remote host closed the connection]
unreal_ has joined #ruby
<adaedra> EvilDMP: OS X 10.11 locks /usr (except /usr/local), so you can't install gems system wide. You can install gems at user level if you want.
<EvilDMP> adaedra: user level's good enough for me I think
freerobby has joined #ruby
<adaedra> why?
freerobby1 has quit [Read error: Connection reset by peer]
tkuchiki has quit [Remote host closed the connection]
jackjackdripper has quit [Quit: Leaving.]
<adaedra> gem install --user-install jekyll
<EvilDMP> adaedra: why is it good enough for me? because I only plan to run things as myself
charliesome has joined #ruby
<adaedra> well that's perfect then
mistermocha has joined #ruby
<adaedra> aaaah wait
<adaedra> I misread
<EvilDMP> adaedra: http://dpaste.com/3YZFY0W
bruno-_ has quit [Ping timeout: 240 seconds]
<adaedra> You'll have to add the missing directory to your PATH and you're ok to roll.
xcesariox has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
roxtrongo has quit [Remote host closed the connection]
unreal has quit [Ping timeout: 252 seconds]
ta has joined #ruby
<adaedra> Also, it seems it uses the OS X provided ruby (2.0)
ramfjord has joined #ruby
pdoherty has quit [Ping timeout: 246 seconds]
fschuindt has joined #ruby
<EvilDMP> adaedra, FailBit: I once more have a working jekyll, much appreciated
sdothum has quit [Read error: Connection reset by peer]
sdothum has joined #ruby
Arkon has quit [Remote host closed the connection]
<fschuindt> there's any way to distribute an Ruby software as a closed-source binary for Windows? (Ocra don't protects the code)
<doddok> use c++ instead
<fschuindt> I don't know any C++, or C :(
<doddok> it very bad
<fschuindt> I think its going to be quite hard to replicate what's already done in ruby
freerobby1 has joined #ruby
freerobby has quit [Read error: Connection reset by peer]
rgtk has joined #ruby
<fschuindt> By the way the software is done and I just realized it may become a good source of income if I go commercial
polishdub has quit [Remote host closed the connection]
<doddok> ruby is toy lang , try to finf more powerful lang
<adaedra> no
<fschuindt> oh, that offends me hahaha
<fschuindt> I take it very seriously, I am ruby professional
kirun has joined #ruby
<doddok> you?
<fschuindt> All my income come from it, you know
<adaedra> Don't take trolls too seriously.
shinnya has joined #ruby
<doddok> first y need learn googling
<fschuindt> adaedra: Yea, I just forgot about the trolls
<fschuindt> doddok: bye
tubuliferous_ has joined #ruby
<doddok> strange dude
[Butch] has quit [Quit: I'm out . . .]
rgrmatt has joined #ruby
<shevy> lol
Arkon has joined #ruby
<shevy> <doddok> first y need learn googling
rgtk has quit [Ping timeout: 260 seconds]
<jhass> fschuindt: are you sure you need to keep the source hidden from your customers? There are quite a few examples that don't in the dynamic language world
<shevy> the trollpowers are rising along with the moon cycle
imperator has quit [Quit: This computer has gone to sleep]
Arkon has quit [Client Quit]
sepp2k has joined #ruby
<adaedra> no feeding.
<shevy> he just wants to get rich quickly via ruby!
eminencehc has quit [Remote host closed the connection]
<_blizzy_> yeah, don't feed, or else the other team will win.
<_blizzy_> (dota2 ref)
<doddok> interesting what kind of software he wants create?
<shevy> twitter 3.0 in brazil probably
<shevy> in java
tubuliferous_ has quit [Ping timeout: 260 seconds]
Mon_Ouie has joined #ruby
<jhass> mh, what's twitter 2.0?
<shevy> though, he could use e. g. C++ and mruby as scripting language
rehat_ has joined #ruby
<shevy> dunno... the post-rewrite from twitter away from ruby :(
<rehat_> how do most script auto install gems needed for a script to run correctly
<_blizzy_> scala's a good language though
rgrmatt has quit [Ping timeout: 240 seconds]
<adaedra> rehat_: what scripts
<shevy> rehat_ do you mean via a gem or e. g. bundler? proper .gemspec files will have dependencies list, Gemfile should as well, then it just is resolvement
<jhass> rehat_: most are packaged up as gems for easier distribution on top, the rest generally uses bundler these days
<rehat_> ahh
pdoherty has joined #ruby
<rehat_> so would a user need to manually install a gem that is needed for my script to work?
<fschuindt> it's a MMO bot haha
kadoppe has quit [Ping timeout: 246 seconds]
yqt has joined #ruby
<adaedra> rehat_: package your script as a gem, so dependencies are pulled with when the gem is installed
<jhass> fschuindt: so "modification allowed" is actually a huge selling point IMO
Xeago has quit [Ping timeout: 240 seconds]
<doddok> y a serious person, you a plaing games?
<shevy> rehat_ you need to have the user install add-ons
momomomomo has joined #ruby
<shevy> if your script has require 'foobar' and foobar is some gem, then the user will have to do "gem install foobar" first, or run bundle(r)
<rehat_> ok thanks, for now I will add it in the readme or something. Its just one gem but if I start needing more I'll make my script a gem
kadoppe has joined #ruby
<_blizzy_> which is why you pull all your gems in a Gemfile
<_blizzy_> so they can just run 'gem install bundler && bundle install'
<jhass> fschuindt: a proper license can restrict legal redistribution at least down to only diffs, depending on your and the customers jurisdiction
<shevy> rehat_ these things will become a lot clearer when you built your own first gem btw
<fschuindt> jhass: yes, but people who uses mmo bots dont care about this
<adaedra> rehat_: if you don't bundle as a gem (which you should), write a Gemfile so people can `bundle install` or `gem install -g` to install automatically from project's folder.
<rehat_> adaedra: thanks will do
<_blizzy_> yeah, it's what I did with my Pokemon bot.
<_blizzy_> I just added a Gemfile.
<jhass> fschuindt: true, but they'd share an opaque binary likewise
<jhass> fschuindt: you only truly get around that with a thin client that has as much logic as possible on a server that requires a login. And even then you can expect logins shared
<fschuindt> jhass: my plan was a login based system... A site with a http API
<doddok> shhtp API!!!
<fschuindt> jhass: restricted by a hardware-id system
<doddok> shttp API!!!
rattatmatt has quit [Quit: Leaving]
<fschuindt> can someone just mute this guy, please?
<doddok> dont use http
<adaedra> doddok: stop it
<_blizzy_> hmm, I'm tempted to make a youtube clone in either Ruby, Java, or PHP. Though I already know what you all will recommend. :p
gusrub has joined #ruby
Steve_Jobs has joined #ruby
grill has quit [Ping timeout: 250 seconds]
<jhass> _blizzy_: crystal, obviously
<_blizzy_> jhass, ofc. :)
<doddok> go
<_blizzy_> I should look into crystal.
<Papierkorb> uargh Go
<doddok> go ideally for youtube
<fschuindt> _blizzy_: you protected your software using gems?
<Papierkorb> "Let's create a new language which inherits unreadable syntax from Erlang with a mix of ActionScript"
<adaedra> If you're going to start ague about languages, do it in -offtopic, please.
<doddok> after youtube u can create new fb
NeverDie has quit [Quit: http://radiux.io/]
<_blizzy_> fschuindt, no?
<_blizzy_> doddok, lol, it';s funny because im working on a facebook clone in .NET
<shevy> how is the gem variant in crystal called? shard?
shinnya has quit [Ping timeout: 264 seconds]
<fschuindt> _blizzy_: ty, I was not sure if I had understood
<jhass> shevy: yeah
<_blizzy_> adaedra, lol, I wasn't going to argue.
<shevy> \o/ I remembered without googling
* shevy does a happy dance
rgrmatt has joined #ruby
<_blizzy_> I wish I could install ruby 2.2.x
<havenwood> _blizzy_: You can't?
<_blizzy_> but gems seem to work with 2.1.x
<_blizzy_> the gems I need work with 2.1.x but not 2.2.x
<shevy> you can do it _blizzy_ come on
<havenwood> _blizzy_: Which gems?
<doddok> adaedra, lets ban genious scoolboys
waxjar has joined #ruby
grilled-cheese has joined #ruby
mistermocha has quit [Remote host closed the connection]
<_blizzy_> nokogiri
[Butch] has joined #ruby
<shevy> damn ok I understand now
<Papierkorb> _blizzy_: huh? works great in 2.2.3
<dsimon> nokogiri doesn't support 2.2? :-O
<jhass> it sure does
<_blizzy_> oh, nokogiri works with 2.2.3? let me download it then!
<Papierkorb> Rails needs nokogiri, and that alone is pretty much reason enough to expect it to work with the latest ruby
<shevy> ruby is all about rails
rdavila has joined #ruby
<havenwood> shevy: Ruby par Avion!
<_blizzy_> rails is great. my favorite mvc framework
<zwdr> I love Ruby but abbhor Rails
trav408 has joined #ruby
<zwdr> different folks different strokes etc
<shevy> and different cats
<zwdr> but it really feels wrong to say "Ruby is all about Rails"
mwlang has joined #ruby
<adaedra> well, Rails is a well know Ruby thing, some people do come to ruby by rails (including me)
<Papierkorb> wat hitting ^D in pry in a rspec3 test crashes MRI. I'm positive that I'll never be able to reproduce this in a small example though.
* havenwood pokes Rails with a stick
<bougyman> adaedra: that's one of my least favorite things about ruby
<bougyman> being in ruby pre-rails gives some a bad taste about rails.
<shevy> adaedra :(
<shevy> bougyman yeah!
<havenwood> Rails is nifty. I do like Roda!
neonalpine has joined #ruby
<bougyman> roda <3.
unknowns2k2 has joined #ruby
waxjar has quit [Remote host closed the connection]
<Papierkorb> Ok, so I have a minimalistic HTML parser written in Ruby (Can't use nokogiri there). I have the HtmlParser::Error class, which inherits from RuntimeError. Should this error inherit from StandardError instead? To me, it happens at run-time, and thus, is a RuntimeError?
<havenwood> Papierkorb: Use Oga?
<havenwood> shevy: I think crystalline entities form shards.
<havenwood> shevy: Like a Rubyist custs gems.
<havenwood> cuts*
<havenwood> shevy: Or maybe a Crystalist cuts shards?
<Papierkorb> havenwood: no native extensions. also, no big gems at all there.
prestorium has quit [Quit: Leaving]
<havenwood> Papierkorb: ah
<Papierkorb> havenwood: Opal code, that is, Ruby -> JS transpiling to run that stuff on the client
baweaver has joined #ruby
krak3n has joined #ruby
kerunaru has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
allcentury has joined #ruby
<shevy> havenwood yeah, nice mnemonic
<Ox0dea> Tim Toady : Perl :: Chris Tull : Crystal
NeverDie has joined #ruby
riotjone_ has joined #ruby
<Ox0dea> jhass: You should totally change your name to Chris Tull.
<jhass> I'm afraid I don't get the reference
baweaver has quit [Remote host closed the connection]
<Papierkorb> jhass: say it out loud
<adaedra> ahahah.
<_blizzy_> lol.
<eam> Mina Swan
imperator has joined #ruby
user1138_ has quit [Read error: Connection reset by peer]
<_blizzy_> I remember why I downgraded.
<havenwood> :D
<_blizzy_> nokogiri doesn't play nice with windows on 2.2.3
<Papierkorb> Windows? Condolences man!
<imperator> _blizzy_, how's that?
<_blizzy_> I actually like windows.
<_blizzy_> "cannot load such file -- nokogiri/nokogiri" even though it's installed.
cornerma1 has joined #ruby
<imperator> oh, i wonder if they didn't ship a binary for 2.2 yet
dmj has quit [Remote host closed the connection]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<imperator> i thought so, though - let me check
<Papierkorb> _blizzy_: have you rebuilt your gems after updating?
<doddok> you a looser
dmj has joined #ruby
<adaedra> !mute doddok
<Papierkorb> +1
<imperator> looser?
<havenwood> what's loose?
_stu_ has joined #ruby
<_blizzy_> gefootloose
<imperator> foot looser?
<havenwood> hanging loose?
<_blizzy_> *footloose
<imperator> get your sunday shoes
<_blizzy_> Papierkorb, yes.
<eam> set loose the dogs of snark
erbesharat has joined #ruby
riotjone_ has quit [Ping timeout: 276 seconds]
<Ox0dea> eam: s/loose/slip/
<_blizzy_> heh, rails 4.2.0
<havenwood> I need a good pair of Ruby slippers.
adac has joined #ruby
cornerman has quit [Ping timeout: 250 seconds]
strgbrew has joined #ruby
freerobby1 has quit [Quit: Leaving.]
cornerma1 is now known as cornerman
jgpawletko has quit [Quit: jgpawletko]
AndroidLoverInSF has quit [Ping timeout: 250 seconds]
hooper1 has quit [Quit: Leaving.]
AndroidLoverInSF has joined #ruby
eminencehc has joined #ruby
AndroidLoverInSF has quit [Max SendQ exceeded]
skweek has quit [Ping timeout: 240 seconds]
corehook_ has quit []
AndroidLoverInSF has joined #ruby
<_blizzy_> well, I got ruby 2.2.3 working with Nokogiri \o/
<_blizzy_> thanks to this line "gem 'nokogiri', '>= 1.6.7.rc3'
<_blizzy_> "
sdothum has quit [Ping timeout: 250 seconds]
mistermocha has joined #ruby
sdothum has joined #ruby
<eam> Ox0dea: such a prescriptivist
chipotle has joined #ruby
sdothum has quit [Remote host closed the connection]
<Ox0dea> eam: The original line just sounds really good.
waka has quit [Quit: Leaving]
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> That Billy Shakes fellow sure had a way with words.
<shevy> Billy Shakes it loose
goodcodeguy has joined #ruby
momomomomo has quit [Quit: momomomomo]
sdothum has joined #ruby
<Ox0dea> They say he might've been a eunuch.
<eam> eunuchs! I know this!
dtordable has joined #ruby
mistermocha has quit [Remote host closed the connection]
<Ox0dea> It's a eunuch's system!
momomomomo has joined #ruby
<dtordable> -
ramfjord_ has joined #ruby
SteveC has joined #ruby
DroidBur_ has joined #ruby
zachrose has quit [Ping timeout: 250 seconds]
DEA7TH has quit [Quit: DEA7TH]
blackmes1 has quit [Ping timeout: 240 seconds]
DEA7TH has joined #ruby
<Ox0dea> drbrain: You beat me to it.
<drbrain> Ox0dea: hehehe
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zachrose has joined #ruby
charliesome has joined #ruby
ramfjord has quit [Ping timeout: 276 seconds]
poguez_ has joined #ruby
hashpuppy has quit [Quit: Textual IRC Client: www.textualapp.com]
mistermocha has joined #ruby
<drbrain> I had a hard time wording it
<drbrain> I hope its adequate
DroidBurgundy has quit [Ping timeout: 276 seconds]
opensource_ninja has joined #ruby
tkuchiki has joined #ruby
Musashi007 has joined #ruby
_stu_ has quit [Quit: _stu_]
<Ox0dea> >> 0.1r + 0.2r # drbrain: Why not this way?
<ruboto> Ox0dea # => (3/10) (https://eval.in/468503)
opensource_ninja has quit [Client Quit]
TheHodge has quit [Quit: Connection closed for inactivity]
<drbrain> I was following the other examples in the output that used 1/10
<drbrain> and forgot you could do that
<Ox0dea> Fair enough.
_stu_ has joined #ruby
duncannz has joined #ruby
grill has joined #ruby
x-light has joined #ruby
grill has quit [Client Quit]
mistermocha has quit [Ping timeout: 272 seconds]
<grilled-cheese> If I have a ruby script with a require for win32/registry, but I want it to be cross platform how do I exclude that windows specific section of coding?
iateadonut has quit [Ping timeout: 240 seconds]
dmj has left #ruby ["ERC (IRC client for Emacs 24.5.2)"]
tkuchiki has quit [Ping timeout: 260 seconds]
ta has quit [Remote host closed the connection]
<Papierkorb> grilled-cheese: require "win32/registry" if RUBY_PLATFORM =~ /win/
<adaedra> You may use RUBY_PLATFORM to see under what you run
<adaedra> ninja'd
<Papierkorb> grilled-cheese: I don't know what the exact value for it is, but it's stored in RUBY_PLATFORM
ldnunes has quit [Quit: Leaving]
<grilled-cheese> cool
justin_herrick has quit [Quit: justin_herrick]
<grilled-cheese> thank you
infinitone has quit [Remote host closed the connection]
<Papierkorb> cheers
leafybas_ has joined #ruby
justin_herrick has joined #ruby
momomomomo_ has joined #ruby
momomomomo has quit [Ping timeout: 246 seconds]
momomomomo_ is now known as momomomomo
m8 has joined #ruby
tubuliferous_ has joined #ruby
mattwildig has joined #ruby
ramfjord_ has quit [Ping timeout: 272 seconds]
freerobby1 has joined #ruby
djbkd has quit [Ping timeout: 265 seconds]
leifg has joined #ruby
dsimon has left #ruby ["Leaving"]
blackmes1 has joined #ruby
tubuliferous_ has quit [Ping timeout: 240 seconds]
dviola has joined #ruby
<adaedra> !unmute doddok
B1n4r10 has joined #ruby
eminencehc has quit [Remote host closed the connection]
<FailBit> that's so unnecessary
petricore has joined #ruby
<FailBit> chanserv has its own mute/unmute commands
jessemcgilallen has joined #ruby
dlitvak has quit [Ping timeout: 276 seconds]
skweek has joined #ruby
jackjackdripper has joined #ruby
<havenwood> FailBit: The important thing is that a robot is in charge!
pdoherty has quit [Ping timeout: 250 seconds]
chris2 has joined #ruby
DroidBur_ has quit []
<Ox0dea> > I know not with what weapons World War IV will be fought, but World War III will be fought with bits and clones.
hahuang65 has quit [Ping timeout: 246 seconds]
duncannz has quit [Remote host closed the connection]
<slash_nick> the more bots are involved, the better
<Ox0dea> Let's make it all bots.
duncannz has joined #ruby
dlitvak has joined #ruby
<doddok> chuvachki
<doddok> hehe
momomomomo has quit [Quit: momomomomo]
<doddok> did u see os on rust?
nateberkopec has quit [Quit: Leaving...]
dmitch has joined #ruby
charliesome has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
h99h9h88 has joined #ruby
jackjackdripper has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
n_blownapart has joined #ruby
grill has joined #ruby
dikaio has joined #ruby
VeryBewitching has joined #ruby
adac has quit [Ping timeout: 250 seconds]
<VeryBewitching> G'day folks.
charliesome has joined #ruby
B1n4r10 has quit [Ping timeout: 264 seconds]
h99h9h88 has quit [Ping timeout: 272 seconds]
null_ref has quit []
nateberkopec has joined #ruby
hahuang65 has joined #ruby
FernandoBasso has joined #ruby
absolutejam has joined #ruby
dlitvak_ has joined #ruby
dlitvak has quit [Ping timeout: 240 seconds]
eminencehc has joined #ruby
lacrymology has joined #ruby
zeroDivisible has joined #ruby
<lacrymology> I'm looking for temporal expressions, this seems to be the "standard" (read: first google result), but the project seems frozen for the last 2 years and I'm always wary of still projects, should I use it, or find something more active? https://github.com/mlipper/runt
djbkd has joined #ruby
joonty has joined #ruby
n_blownapart has quit []
chipotle has quit [Quit: cheerio]
htmldrum has joined #ruby
hahuang65 has quit [Ping timeout: 255 seconds]
joonty has quit [Client Quit]
aef has quit [Remote host closed the connection]
vigintas has quit [Ping timeout: 244 seconds]
aef has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
SCHAAP137 has joined #ruby
yoongkang has joined #ruby
matcz has quit [Ping timeout: 255 seconds]
baweaver has joined #ruby
matcz has joined #ruby
baweaver has quit [Remote host closed the connection]
baweaver has joined #ruby
htmldrum has quit [Ping timeout: 240 seconds]
sdwrage has joined #ruby
neonalpine has quit [Remote host closed the connection]
eminencehc has quit [Remote host closed the connection]
matthewhill has joined #ruby
matthewhill has quit [Remote host closed the connection]
matthewhill has joined #ruby
matthewhill has quit [Remote host closed the connection]
sgambino has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pdoherty has joined #ruby
rgrmatt has quit [Remote host closed the connection]
matthewhill has joined #ruby
matthewhill has quit [Remote host closed the connection]
yoongkang has quit [Ping timeout: 272 seconds]
rgtk has joined #ruby
rgrmatt has joined #ruby
Xeago has joined #ruby
devoldmx has joined #ruby
rakm has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<doddok> try to find
B1n4r10 has joined #ruby
dlitvak_ has quit [Remote host closed the connection]
justin_herrick has quit [Quit: justin_herrick]
sdwrage has quit [Ping timeout: 240 seconds]
_stu_ has quit [Quit: _stu_]
erbesharat has quit [Quit: erbesharat]
petricore has quit [Quit: Textual IRC Client: www.textualapp.com]
devoldmx has quit [Ping timeout: 252 seconds]
hahuang65 has joined #ruby
rippa has quit [Quit: {#`%${%&`+'${`%&NO CARRIER]
spider-mario has joined #ruby
lacrymology has quit [Ping timeout: 255 seconds]
tulak has quit [Remote host closed the connection]
aef has quit [Remote host closed the connection]
maikowblue has joined #ruby
Coldblackice has joined #ruby
CloCkWeRX has joined #ruby
sdwrage has joined #ruby
axl_ has quit [Quit: axl_]
CloCkWeRX has quit [Ping timeout: 255 seconds]
axl_ has joined #ruby
axl_ has quit [Client Quit]
psy_ has quit [Ping timeout: 260 seconds]
hakunin has quit [Read error: Connection reset by peer]
hakunin has joined #ruby
BTRE has joined #ruby
CloCkWeRX has joined #ruby
mistermocha has joined #ruby
<shevy> if rust can build an OS then so must ruby
Musashi007_ has joined #ruby
<shevy> or mruby
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
nateberkopec has quit [Quit: Leaving...]
goodcodeguy has joined #ruby
mistermocha has quit [Remote host closed the connection]
Musashi007 has quit [Ping timeout: 272 seconds]
patdohere has joined #ruby
babblebre has quit [Quit: Connection closed for inactivity]
Musashi007 has joined #ruby
PaulCapestany has quit [Quit: .]
n_blownapart has joined #ruby
nateberkopec has joined #ruby
Musashi007_ has quit [Ping timeout: 250 seconds]
treehug88 has quit [Quit: Textual IRC Client: www.textualapp.com]
jackjackdripper has quit [Quit: Leaving.]
mistermocha has joined #ruby
jackjackdripper1 has joined #ruby
AccordLTN has joined #ruby
<spaceghost|work> shevy: Get on it!
skade has joined #ruby
ramfjord has joined #ruby
FooMunki has joined #ruby
dtordable has quit [Quit: Lost terminal]
jackjackdripper has joined #ruby
dtordable has joined #ruby
sdwrage has quit [Quit: This computer has gone to sleep]
<Ox0dea> shevy: Use Toaru for inspiration! https://www.youtube.com/watch?v=Wp5kl-NfpM8
bruno- has joined #ruby
bruno- is now known as Guest48062
symm- has quit [Ping timeout: 276 seconds]
<shevy> spaceghost|work slowly!
mistermocha has quit [Ping timeout: 244 seconds]
<spaceghost|work> shevy: slowly is all I know.
<shevy> hah
jackjackdripper1 has quit [Ping timeout: 255 seconds]
jackjackdripper2 has joined #ruby
<shevy> Ox0dea pretty cool but it should happen through several different people rather :P
dented42_ has joined #ruby
k3asd` has joined #ruby
dented42 has quit [Read error: Connection reset by peer]
<Ox0dea> shevy: Where would we be if Linus had felt that way?
PaulCapestany has joined #ruby
_lazarevsky has joined #ruby
<_lazarevsky> hey guys
<_lazarevsky> this is not really a ruby question per se
<Ox0dea> Then GTFO.
<_lazarevsky> more of an programming question
<_lazarevsky> hahaaa
<_lazarevsky> ok
<_lazarevsky> well let me shoot away
<_lazarevsky> and then i'll gtfo
<_lazarevsky> so I'm prepping for an interview
decoponio has quit [Quit: Leaving...]
<_lazarevsky> and I came across this question which tripped me
<_lazarevsky> I decided I'm gonna do the interview in ruby
<_lazarevsky> -> Describe a program that could detect whether a chunk of text in a document is a list or not. There are no obvious indicators like "1." or "-" or "*" however each list entry is on a new line. An example list would be:
<_lazarevsky> line 1
<_lazarevsky> line 2
<_lazarevsky> dsfsdfsdfsdf sdfsdf sdfsdf
<_lazarevsky> etc
unknowns2k2 has quit [Quit: unknowns2k2]
<_lazarevsky> so I'm iterate over the lines of a document
<_lazarevsky> iterating*
<Zarthus> The real test is how to properly ask and formulate questions. You failed.
<Ox0dea> Sounds like you need a heuristic!
A124 has joined #ruby
<Ox0dea> There are only so many sane ways to prefix list elements.
Xeago has quit [Remote host closed the connection]
jackjackdripper has quit [Ping timeout: 246 seconds]
jessemcgilallen has quit [Quit: jessemcgilallen]
northfurr has joined #ruby
sdwrage has joined #ruby
<Ox0dea> Oh, wait, never mind; you're apparently trying to do NLP
dn5 has joined #ruby
<adaedra> _lazarevsky: how many channels did you ask this question to at the same time?
<_lazarevsky> this is the second one
<_lazarevsky> I asked it in rails
<_lazarevsky> hang on though
<Ox0dea> _lazarevsky: You're being very bad.
<dn5> How do I append new value inside key with out replacing the old one, regarding arrays
<_lazarevsky> can't I detect \n from the doc?
duncannz has quit [Remote host closed the connection]
<_lazarevsky> if there's a line break
<jhass> dn5: show current state, input and desired output please
<_lazarevsky> in succession
<doddok> read_lines. group(start with "line") >1
<dn5> jhass: pseudo: @hash = {key => value}
<Ox0dea> _lazarevsky: How does that have anything to do with detecting lists?
duncannz has joined #ruby
<jhass> dn5: without pseudo please
<jhass> dn5: that's called hash and not array btw
<_lazarevsky> Ox0dea: im just thinking out loud here
<dn5> jhass: one second please, let me paste it
CloCkWeRX has quit [Ping timeout: 255 seconds]
mistermocha has joined #ruby
mistermocha has quit [Remote host closed the connection]
bb010g has quit [Quit: Connection closed for inactivity]
<_lazarevsky> Ox0dea: like.. if there are multiple lines which end with \n in succession
<_lazarevsky> then that's one indicator of a list..
<Ox0dea> _lazarevsky: How are you to differentiate between paragraphs and lists?
Sam0163141155 has joined #ruby
PaulCapestany has quit [Quit: .]
<_lazarevsky> Ox0dea: that's the second problem
mistermocha has joined #ruby
<Ox0dea> All lines end with '\n', silly.
<_lazarevsky> :)
<_lazarevsky> fair enough..
<_lazarevsky> it's not a straight forward answer at least
sdwrage has quit [Client Quit]
<_lazarevsky> I was thinking for a sec whether I'm missing something obvious
<_lazarevsky> alright.. thanks guys
Musashi007 has quit [Ping timeout: 240 seconds]
<_lazarevsky> wondering*
be_erik has quit [Quit: be_erik]
be_erik has joined #ruby
PaulCapestany has joined #ruby
jackjackdripper2 has quit [Quit: Leaving.]
jackjackdripper has joined #ruby
gusrub has quit [Remote host closed the connection]
h99h9h88 has joined #ruby
gusrub has joined #ruby
sdwrage has joined #ruby
sepp2k1 has joined #ruby
<jhass> dn5: I take it the puts is actually in another method?
<dn5> jhass: No, it's in the same function
<Ox0dea> >> h = {foo: 'bar'}; h[:foo] << 'baz'; h # dn5
<ruboto> Ox0dea # => {:foo=>"barbaz"} (https://eval.in/468530)
<Ox0dea> Just shovel the new data in there.
<jhass> dn5: then how do you know whether to do it or not? Why would the first call not produce any output?
uri has quit [Quit: Textual IRC Client: www.textualapp.com]
uri has joined #ruby
<dn5> Ox0dea: Thanks, let me try that.
<_lazarevsky> Ox0dea: I think I came up with a solution which makes one small assumption
<dn5> jhass: It does produce the output, but it replaces the description
sepp2k has quit [Ping timeout: 240 seconds]
<jhass> dn5: no, in your example in the desired version the first call doesn't produce any output
<Ox0dea> _lazarevsky: Two newlines before and after a list? Indentation?
<dn5> I want only to append the new string into description and not rewrite it
<_lazarevsky> Ox0dea: let's assume that a list item, for tihs particular scenario, would not span over more than 1 line
allcentury has quit [Ping timeout: 255 seconds]
moeabdol has quit [Quit: WeeChat 1.3]
skweek has quit [Ping timeout: 244 seconds]
nchambers is now known as dtscode
<jhass> dn5: so you want delete already made output?
<jhass> kind of like an interactive CLI tool?
<_lazarevsky> Ox0dea: then the line count should be equal to the number of \n's
<_lazarevsky> no? :)
<Ox0dea> _lazarevsky: That is always the case.
patdohere has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
h99h9h88 has quit [Ping timeout: 276 seconds]
<_lazarevsky> umm..
<Ox0dea> The number of lines in a file is equal to the number of occurrences of '\n'.
<_lazarevsky> you sure? :)
<Ox0dea> Yeah.
nertzy has joined #ruby
PaulCapestany has quit [Quit: .]
yfeldblum has joined #ruby
moeabdol has joined #ruby
<_lazarevsky> shame.. I thought \n was only added when you press return :)
ss_much has joined #ruby
<Ox0dea> >> File.read($0).count("\n")
<ruboto> Ox0dea # => 6 (https://eval.in/468531)
<dn5> jhass: Sorry, no, thats not what I'm trying to do. I don't know how to explain it very well :<. I want key "description" to have (assing) two seperate gets.chomp
sparr has quit [Changing host]
sparr has joined #ruby
Musashi007 has joined #ruby
arup_r has quit [Quit: Leaving]
PaulCapestany has joined #ruby
<Ox0dea> >> h = Hash.new(''); h[:foo] << 'bar'; h[:foo] << 'baz'; h[:foo] # dn5: Something like this?
<ruboto> Ox0dea # => "barbaz" (https://eval.in/468533)
RegulationD has quit [Ping timeout: 276 seconds]
<_lazarevsky> Ox0dea: so I guess I need a way to identify when enter was pressed..
<Ox0dea> _lazarevsky: Why on earth are you talking about keyboards?
<_lazarevsky> well because
<_lazarevsky> this is a list
<Ox0dea> Your task is to process some text.
<_lazarevsky> is it not
<_lazarevsky> fair enough
AndroidLoverInSF has quit [Quit: Leaving]
<_lazarevsky> I see you point
<_lazarevsky> ahaaaa I got it!
<_lazarevsky> if the first word of each sentence
<_lazarevsky> line rather
rdavila has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> It simply can't be done in the general case given the current state of the art in NLP.
<dn5> Ox0dea: that still owerwrites the value from before, let me try again
<shevy> Ox0dea well linus only worked on the kernel
<_lazarevsky> could fit in the line above
<jhass> Ox0dea: uh, bad example. that's the same string for all keys
peppers has joined #ruby
<_lazarevsky> then that means that it's a new list item
<_lazarevsky> I got it!
peppers is now known as guest3453
B1n4r10 has quit [Ping timeout: 260 seconds]
ebbflowgo has joined #ruby
JDiPierro has quit [Remote host closed the connection]
<_lazarevsky> Ox0dea: did I make sense?
<Ox0dea> _lazarevsky: Not really.
<_lazarevsky> Ox0dea: I had an epiphany here :)
htmldrum has joined #ruby
<_lazarevsky> Ox0dea: so get the character count of the first word of a line
agentmeerkat has quit [Ping timeout: 240 seconds]
<Ox0dea> > I'm doing a (free) operating system (just a hobby, won't be big and professional like gnu) for 386(486) AT clones.
<Ox0dea> shevy: ^
<_lazarevsky> and check how many spaces there are between the last word of the line above and the end of line
<Ox0dea> _lazarevsky: That's a very complicated way to say you're going to detect lists based on indentation.
<_lazarevsky> if the first word of the new line could fit on the line above
ESpiney has quit [Quit: Leaving]
guest3453 has quit [Client Quit]
<crankharder> not sure the verb i'm looking for. it's not combination/permuation, is there a way to combine all elements of two arrays e.g. [1,2].something([3,4]) => [[1,3],[1,4],[2,3],2,4]] ??
peppers has joined #ruby
<Ox0dea> crankharder: #product.
mgorbach has quit [Ping timeout: 260 seconds]
rakm has joined #ruby
<crankharder> boom. that.
<crankharder> ty
<Ox0dea> Sure thing.
djbkd has quit [Remote host closed the connection]
sankaber has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mgorbach has joined #ruby
htmldrum has quit [Ping timeout: 255 seconds]
symm- has joined #ruby
peppers has quit [Client Quit]
ebbflowgo has quit [Quit: ebbflowgo]
<doddok> a.map {|x| b.map {|y| f(x,y) } }.flatten
<Ox0dea> Needs more #flat_map.
yosiat has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
m8 has quit [Ping timeout: 255 seconds]
hxegon has joined #ruby
<Ox0dea> Also, #product is variadic, so your implementation sucks.
A124 has quit [Quit: '']
TomPeed has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<Ox0dea> > ruby is toy lang , try to finf more powerful lang
<Ox0dea> I hope you like the taste of crow.
<adaedra> why do you dig so deep, Ox0dea, especially to unbury low-level trolls.
mistermo_ has joined #ruby
<shevy> you guys like doddok
Nahra has joined #ruby
northfurr has quit [Quit: northfurr]
freerobby1 has quit [Quit: Leaving.]
freerobby has joined #ruby
rodfersou has quit [Ping timeout: 272 seconds]
rodfersou has joined #ruby
<shevy> what kind of variables do we have in ruby ... we have local variables, @instance_variables and @@class_variables. did I forget any other?
<Ox0dea> adaedra: Scarcely any digging was involved; that was the second thing he said today, and / isn't a particularly hard key to hit. He momentarily came out of his troll costume to demonstrate his smurts, and I felt it appropriate to put him down.
EvilDMP has left #ruby ["Textual IRC Client: www.textualapp.com"]
mistermocha has quit [Ping timeout: 240 seconds]
<VeryBewitching> Ox0dea: The humane thing?
northfurr has joined #ruby
djbkd has joined #ruby
<Ox0dea> No, I wouldn't say it was overly humane, but it was appropriate.
<VeryBewitching> So, pragmatism then?
<Ox0dea> The glad suffering of fools and/or haters benefits neither party.
<jhass> shevy: $globals / $pseudo_globals (thread locals/read only), Constant's are kinda variable too in Ruby
yalue has quit [Quit: return 0;]
<shevy> ah yes
<Ox0dea> jhass: They're not "thread-local", really.
<Ox0dea> They're "scope-local".
tlolczyk_ has quit [Read error: Connection reset by peer]
mistermo_ has quit [Ping timeout: 265 seconds]
<Ox0dea> That documentation has been wrong since forever.
<jhass> ah, oh well
lacrymology has joined #ruby
<shevy> $globals may behave differently in threads?
<jhass> none you can define
<Ox0dea> From Ruby, anyway.
<Ox0dea> rb_define_hooked_variable() is available in C extensions.
<shevy> you know the hidden secrets of ruby
icey has quit [Quit: icey]
<VeryBewitching> Those secrets are on Github.
<shevy> I remember set_trace_var
postmodern has joined #ruby
<shevy> it's like snooping on an object
sdwrage has quit [Ping timeout: 272 seconds]
Musashi007 has quit [Quit: Musashi007]
djbkd has quit [Remote host closed the connection]
<Ox0dea> I'm reasonably sure that's how Pry implements watching.
<shevy> VeryBewitching yeah. I let Ox0dea and havenwood read through these secrets and explain it to the rest of #ruby :)
karapetyan has joined #ruby
ramfjord_ has joined #ruby
<VeryBewitching> shevy: ;)
<Ox0dea> shevy: You forgot norc.
norc-2 has quit [Quit: AndroIRC - Android IRC Client ( http://www.androirc.com )]
ale- has quit [Remote host closed the connection]
Musashi007 has joined #ruby
<shevy> nah norc is not really real
mary5030 has quit [Remote host closed the connection]
<Ox0dea> Is he really not un-fake, though?
goodcodeguy has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
segy has quit [Ping timeout: 244 seconds]
Eiam_ has joined #ruby
<shevy> I don't know so much what he is, I only know what he is not!
towski_ has joined #ruby
ramfjord has quit [Ping timeout: 252 seconds]
segy has joined #ruby
rgrmatt has quit [Remote host closed the connection]
djbkd has joined #ruby
<Ox0dea> It's like the exact reverse opposite of a false positive.
ilhami_ has joined #ruby
<ilhami_> hey
<ilhami_> can I have some advice on a website?
neanderslob has joined #ruby
nertzy has quit [Quit: This computer has gone to sleep]
<jhass> ?ask
<ruboto> Don't ask to ask. Just ask your question, and if anybody can help, they will likely try to do so.
<ilhami_> design wise I need advice :D
dented42_ has quit [Quit: Textual IRC Client: www.textualapp.com]
<ilhami_> how can I improve the front page?
<jhass> maybe rather a question for #css or #webdev or whatever?
<ilhami_> banned from CSS
<shevy> lol
<adaedra> seriøstly?
<shevy> adaedra you can't believe that this is a troll man!
<ilhami_> eeeh what?
<ilhami_> now I am a troll.. :/
<ilhami_> apparently.
<jhass> well, how did you get yourself banned?
peppers has joined #ruby
skade has quit [Quit: Computer has gone to sleep.]
diegoaguilar has joined #ruby
<Ox0dea> Religious bigotry.
<ilhami_> what?
<ilhami_> I was banned because they didn't like me..
<ilhami_> OP got scared of me.
<Papierkorb> Aha.
[Butch] has quit [Quit: I'm out . . .]
<shevy> you can try #html
<ilhami_> I am muted in there.
<jhass> mh, that's a troll answer tbh
<doddok> yeah, he is real troll
<jhass> what didn't they like?
<shevy> lol
<shevy> trollwars! grab the popcorn
<Ox0dea> ilhami_: Should we be terrified of you?
<adaedra> You succeeded at getting out of many places, I see
<adaedra> Mh, I a word.
<ilhami_> adaedra: it's not my fault seriously.
sdwrage has joined #ruby
<adaedra> ilhami_: I'm not judging.
<doddok> shevy and adaedra a trolls too
<jhass> ilhami_: try to see it as your fault for a moment. What was your fault?
<Ox0dea> ilhami_: What did you do and/or say that was 3spooky5them?
rgrmatt has joined #ruby
<ilhami_> Ox0dea: I think they felt I was too active sometimes and asked too many questions. :P
<havenwood> doddok: You seem to be malfunctioning today. Get yourself checked out!
<ilhami_> well I dunno really.
<Ox0dea> ilhami_: That's not frightening at all.
<Papierkorb> doddok: you're on to say.
<jhass> ilhami_: you want to inform yourself on the term help vampire then
<shevy> a vampire troll dual class
SteveC has quit [Quit: Textual IRC Client: www.textualapp.com]
AndyBotwin has joined #ruby
<ilhami_> lol why are you accusing me? You don't know me guys.
<ilhami_> :/
<shevy> you already revealed too much information
<doddok> because they generate a lot of messages
<jhass> ilhami_: I'm not saying you did that on purpose
<ilhami_> jhass: I had some problems with them in the past. But I am really not acting like that anymore. :D
<Ox0dea> ilhami_: Acting like what?
<ilhami_> annoying the ops
<Papierkorb> I see, friday nights are really popcorn time in #ruby channels. Great.
<shevy> Papierkorb hehe
rgrmatt has quit [Remote host closed the connection]
<Ox0dea> ilhami_: "Annoying" or being hateful toward?
<shevy> Papierkorb weekends on the other hand are so dead quiet :(
krak3n has quit [Ping timeout: 255 seconds]
<ilhami_> I am not hateful??
<Ox0dea> ilhami_: Do you promise?
<Papierkorb> shevy: fucking casuals
rgrmatt has joined #ruby
sdwrage has quit [Client Quit]
<Ox0dea> ilhami_: You never made "jokes" about jihad or anything of that nature?
Jackneill has quit [Remote host closed the connection]
<ilhami_> why would I joke about jihad?
<ilhami_> I am a muslim... so that would not make sense.
<shevy> ok this is getting weird
Yzguy has joined #ruby
<ilhami_> you don't joke about your own religion dude
brushbox has joined #ruby
<shevy> Ox0dea is training him
<Papierkorb> shevy: I just started steam, and it advertises two of those youtube physic sandbox games. I just got reminded of the current discussion in here. Weeeird.
<shevy> lol
<ilhami_> So guys you want to play CS?
FooMunki has quit [Quit: FooMunki]
<shevy> go learn ruby ilhami_
mrmargolis has quit []
<Ox0dea> Let's play Computer Science together!
FooMunki has joined #ruby
* VeryBewitching gets his playmat
nuck has quit [Ping timeout: 260 seconds]
<ilhami_> Hehehe Ox0dea :D
<dn5> Is there a way to add string after second line in file?
<shevy> a playmat?
<Ox0dea> dn5: No, you have to do a complete write. :/
<ilhami_> Is Ruby more powerful than PHP?
<VeryBewitching> shevy: toddlers play on playmats
<ilhami_> be honest to yourself.
<shevy> dn5 sure! File.readlines, then you got an array, insert at the right position
<Papierkorb> dn5: after the second line of the file, or after EVERY second line of the file?
<shevy> VeryBewitching oh right. thought it was for adults there :D
<VeryBewitching> ilhami_: I think Ruby is monstrously more expressive than PHP
<shevy> something like "I'm gonna roll out my mahagony chess set"
<jhass> ilhami_: powerful is vague. It's more expressive and consistent
<ilhami_> Ok so I should use Ruby over PHP?
<dn5> Ox0dea: I hope thats a joke ahh.. shevy: Let me check it. Papierkorb: The first one.
<ilhami_> Is Ruby based on Lua?
<VeryBewitching> ilhami_: You should try both
<ilhami_> I have tried PHP
<jhass> ilhami_: most of the time you should. No, it's not
uri has quit [Ping timeout: 272 seconds]
<VeryBewitching> <-- former PHP developer
mattwildig has quit [Remote host closed the connection]
<Ox0dea> dn5: shevy and Papierkorb explained how to actually insert the line, but you'll have to write the entire file to disk to persist the insert.
<eam> ruby is based on perl
<jhass> conceptually
<Papierkorb> wat
<ilhami_> Perl is not known for being a good language though?
<VeryBewitching> Perl is awesome.
<eam> but admitting this is extremely contentious
<VeryBewitching> If you like Perl.
<tomdp> Ruby's only really a spiritual successor to perl that inherits a few things
tref has quit [Quit: tref]
<shevy> dn5 that step is simple, once you have the array; you can use File to store the array -> http://stackoverflow.com/questions/2777802/how-to-write-to-file-in-ruby but remember! take small steps
<eam> ilhami_: perl is known for being a HUGE success, basically the lingua franca of the internet for the 90s
<dn5> Ox0dea: So, file.each do |line|; if line == 2 -> add_string
<VeryBewitching> Inline regex ftw
<shevy> perl was cool when there was less competition
<dn5> shevy: Hey, thanks, let me try it.
<eam> was there less competition?
<shevy> yeah!
<VeryBewitching> It was C or Perl
<shevy> the pre-php days :)
<VeryBewitching> For a long time
<eam> VeryBewitching: or awk, rexx
mloy has quit [Ping timeout: 246 seconds]
<eam> agol
<VeryBewitching> eam: Well, OK, I concede to that
<eam> lisp
<Ox0dea> eam: There are, like, five people who know about REXX.
<VeryBewitching> LISP makes me blind
<eam> Ox0dea: not in the early 90s!
<shevy> (lisp(is(not(so(bad
<eam> not my fault they're all dead now
<Ox0dea> )))))
<Ox0dea> Fair enough.
<Ox0dea> VeryBewitching: It's not an acronym or an initialism.
<shevy> Ox0dea the closing ) are just line noise
<Ox0dea> shevy: Okay, Python guy.
<eam> also let's not forget basic (and not the MS basic)
<Ox0dea> QBasic > *
<VeryBewitching> Ox0dea: Emphasis
<eam> basic from which all of these dynamic languages borrow
<shevy> hey... optional indent wouldn't be so bad... it's just mandatory indent that's annoying! I get that whenever i compare copy/paste between irb and the interactive python
<Papierkorb> Hey my first programming language was QBasic! That was .. 2002 .. well .. it worked alright okay?
FooMunki has quit [Client Quit]
<Ox0dea> Papierkorb: Do you remember anything you made?
<shevy> I started with BASIC too. 10 ... 20 ... goto 10 ... it actually was fun!
<VeryBewitching> My first language was BASIC, C64
<Ox0dea> Back in a sec; gotta figure out who's cutting onions.
<eam> jcl
<Papierkorb> Ox0dea: Um .. Well, barely. After QBasic, yes, most of the stuff.
eminencehc has joined #ruby
eminencehc has quit [Remote host closed the connection]
Xeago has joined #ruby
apofis has joined #ruby
krak3n has joined #ruby
<VeryBewitching> ilhami_: Read this about PHP, then start learning Ruby; once you're comfortable with Ruby read it again then decide: http://eev.ee/blog/2012/04/09/php-a-fractal-of-bad-design/
jdawgaz has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<shevy> hmmm
<shevy> the github follow link should be renamed to ... "stalk" :D
<VeryBewitching> I follow no one on Github.
<ilhami_> VeryBewitching: after this current project. :)
towski_ has quit [Remote host closed the connection]
tref has joined #ruby
northfurr has quit [Quit: northfurr]
Musashi007 has quit [Read error: No route to host]
h99h9h88 has joined #ruby
Musashi007 has joined #ruby
sdwrage has joined #ruby
ekinmur has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<dn5> Regarding that 2nd line append system: does each_line have line index/number function?
matcz has quit [Ping timeout: 252 seconds]
<Ox0dea> dn5: Use #each_with_index.
<dn5> Ox0dea: That might help. That returns an index right?
N1993|2 has joined #ruby
<Ox0dea> dn5: It yields each element and its index to the block you provide.
<Ox0dea> So you'd say `each_with_index { |line, number| ... }`.
<Ox0dea> You might be going about it wrong, though.
<doddok> did you hear about paris?
<ilhami_> yes
<doddok> 100 hostages held at Le Bataclan concert hall
<dn5> Ox0dea: Ah, I get it now. And it's possible that I'm doing it wrong. Totally new in ruby.
<ilhami_> 60 killed so far.
IrishGringo has quit [Ping timeout: 240 seconds]
h99h9h88 has quit [Ping timeout: 240 seconds]
<doddok> fucked muslim became angry
<ilhami_> how do you know it's a muslim?
<ilhami_> prejudices again
<Ox0dea> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
<Ox0dea> dn5: Do you want to append some text to the second line, or do you want to insert a brand-new line after it?
Musashi007 has quit [Ping timeout: 240 seconds]
<adaedra> !kick doddok Racism
doddok was kicked from #ruby by ruboto [Racism]
<dn5> Ox0dea: I want to append some text after 2nd line
<Ox0dea> dn5: And write it back to the same file, or?
<dn5> Ox0dea: Excatly!
<Ox0dea> dn5: Okay, but as I've mentioned, you're gonna have to write back the entire file, not just the updated second line.
Xeago has quit [Ping timeout: 250 seconds]
<Ox0dea> No filesystem in common use supports arbitrary appends.
nofxx has joined #ruby
<dn5> Ox0dea: My try > @file = File.open("file.txt"); @file.each_with_index{|item, index| if #{index} == 2 < this is where I don't have idea how to proceed with update
<shevy> nah
<shevy> save back after you have modified your dataset
doddok has joined #ruby
matcz has joined #ruby
h99h9h88 has joined #ruby
<dn5> shevy: Mind if you explain a bit detailed?
<shevy> you need to modify some line in that file
<shevy> if it is a small file, you can use File.readlines(); then you have an array. modify that array, then save it back
Guest48062 has quit [Ping timeout: 240 seconds]
<shevy> if you know at which line, you can manipulate directly; if you have to grep, you can use .scan or .grep, I always forget which one
<doddok> muslims is not racism, its religion position
jamesaxl has quit [Ping timeout: 246 seconds]
<ilhami_> doddok: you have evidence that it was a muslim? otherwise please shut up
<dn5> shevy: The file have small amount of data. I know the line number (2) and line string so I don't worry. But Bellow the second line is more data, lets call it X. I need to put my string between second line and data-X
<havenwood> ?ot
<ruboto> this seems to be off-topic. Please move your discussion to #ruby-offtopic, to keep this channel free for Ruby related topics. Thanks!
DEA7TH has quit [Quit: DEA7TH]
<Ox0dea> dn5: data-X will be in the Array you get from `File.readlines`.
DEA7TH has joined #ruby
<shevy> dn5 ok so it becomes simple: x = File.readlines(location); x[2,0] = 'your new string here' # or something like that, you probably have to deduct 1 because arrays start at index 0 count
PaulCapestany has quit [Quit: .]
<Ox0dea> He doesn't want to overwrite the whole line.
northfurr has joined #ruby
Musashi007 has joined #ruby
dhollinger has quit [Quit: WeeChat 1.2]
<dn5> Ox0dea: I'm trying readlines atm. Will post results. shevy: let me try that, but as Ox0dea said, I don't want to owerwrite at the 2nd line, but place string bellow (and above data-X).
<Ox0dea> dn5: Below?
PaulCapestany has joined #ruby
<Ox0dea> Please take a second to determine whether you want to append to the second line or insert another line beneath it.
<shevy> if you insert at the right position you have that
<Ox0dea> They are different operations.
N1993|2 has quit [Remote host closed the connection]
<shevy> he wants to do both :)
<Ox0dea> dn5: Be also advised that the lines you get from File.readlines will have a literal "\n" at the end.
<dn5> Ox0dea: Excuse me for my bad english. Will it be simpler if I write a gist with example of a data?
<eam> dn5: you want something like this? perl -ple'$_ .= "appended" if $. == 2' inputfile
<Ox0dea> dn5: I suppose it might. Please do so, if it's not too much trouble.
hanmac has quit [Ping timeout: 246 seconds]
<eam> Ox0dea: do you know if ruby kept $NR aka $.?
<Ox0dea> eam: It did.
<eam> what's it called?
<Ox0dea> >> $.
<ruboto> Ox0dea # => 0 (https://eval.in/468570)
<eam> damn
<Ox0dea> Thanks, matz.
DEA7TH has quit [Ping timeout: 260 seconds]
<shevy> lol
sgambino has joined #ruby
arthurix_ has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
<eam> so ruby -pe'($_.chop!; $_ += "append string\n") if $. == 2' /etc/passwd ?
dviola has quit [Quit: WeeChat 1.3]
hxegon_ has joined #ruby
shredding has joined #ruby
<Ox0dea> Looks about right, yep.
ta has joined #ruby
<Ox0dea> You know, it's a shame `sed` seems to have become synonymous with `s///`.
<Ox0dea> I mean, somebody wrote Tetris!
<adaedra> Ta tatata tatata tatata tatata tatata tata ta ta *note*
hahuang65 has quit [Ping timeout: 246 seconds]
<adaedra> oops, sorry for the highlight.
<Ox0dea> They deserved it.
<nofxx> $NR stands for what?
<Ox0dea> Number.
<Ox0dea> Er, "number of record", even.
matcz has quit [Ping timeout: 246 seconds]
hxegon has quit [Ping timeout: 240 seconds]
devoldmx has joined #ruby
<Ox0dea> dn5: This is JSON.
nertzy has joined #ruby
arthurix has quit [Ping timeout: 260 seconds]
PaulCapestany has quit [Read error: Connection reset by peer]
<dn5> Ox0dea: I know that.
<Ox0dea> You should not be operating on lines.
<Ox0dea> You should parse it and modify the resultant data structure.
PaulCapestany has joined #ruby
<dn5> Ox0dea: I know. I initially wanted to do it like that. But the problem is I won't have access to the file so I can't read it. Though I have writeable access to it.
<Ox0dea> Wat.
h99h9h88_ has joined #ruby
<Ox0dea> File.readlines isn't going to work if you don't have read access.
<shevy> ok so
<Ox0dea> You're not going to be able to append anywhere but the end of the file if you can't read it.
<shevy> if you can not read the file
<dn5> Ox0dea: Oh god, fuck me and my english. I don't mean access rights like that.
<shevy> how can you grab data from it?
<dn5> Stop guys.
<dn5> Let me explain please
<Ox0dea> dn5: You will not be able to justify operating on JSON as lines.
h99h9h88_ has quit [Remote host closed the connection]
hahuang65 has joined #ruby
unreal has joined #ruby
<dn5> Ox0dea: :/ Why is that?
swgillespie has joined #ruby
<Ox0dea> dn5: It's a very silly thing to do.
tulak has joined #ruby
devoldmx has quit [Ping timeout: 276 seconds]
<nofxx> Ox0dea: ty
<Ox0dea> dn5: You have structured data and you want to ignore the structure; where's the sense in that, you know?
matcz has joined #ruby
<dn5> Ox0dea: I agree honestly.
Azure has joined #ruby
<dn5> Ox0dea: I don't know. It seems easier for me.
<dn5> Wrong, but easier.
<Ox0dea> dn5: You know there's a JSON standard library?
unreal_ has quit [Ping timeout: 276 seconds]
<dn5> Ox0dea: Yes.
solars has quit [Ping timeout: 240 seconds]
leafybas_ has quit [Ping timeout: 252 seconds]
unreal_ has joined #ruby
unreal has quit [Ping timeout: 240 seconds]
tulak has quit [Ping timeout: 240 seconds]
<dn5> Ox0dea: But look why it seems easier for me like this: I won't have to use JSON lib, I don't have to parse my string to JSON (already stuffed/concat like that)
nertzy has quit [Quit: This computer has gone to sleep]
dopie has quit [Quit: This computer has gone to sleep]
dmitch has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Yzguy has quit [Quit: Zzz...]
umgrosscol has quit [Remote host closed the connection]
<zenspider> rawr
h99h9h88 has joined #ruby
<zenspider> wait. what???
ta has quit [Ping timeout: 260 seconds]
<zenspider> dn5: keyword: "SEEMS easier"... but it isn't
Eiam_ has quit [Quit: ╯°□°)╯︵ǝpouǝǝɹɟ]
grill has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Musashi007 has quit [Read error: Connection reset by peer]
sanjayu has joined #ruby
h99h9h88 has quit [Remote host closed the connection]
leafybas_ has joined #ruby
Musashi007 has joined #ruby
rgrmatt has quit [Remote host closed the connection]
<dn5> zenspider: Possible.
tkuchiki has joined #ruby
_stu_ has joined #ruby
hanmac has joined #ruby
Guest8656 is now known as ZeeNoodley
ZeeNoodley has quit [Changing host]
ZeeNoodley has joined #ruby
<zenspider> compare whatever horrible thing you're hacking to: JSON.dump(JSON.parse(blah) << new_data, out)
_stu_ has quit [Client Quit]
mistermocha has joined #ruby
mattwildig has joined #ruby
baweaver has quit [Remote host closed the connection]
<Ox0dea> dn5: As a perfect case in point, you forgot the commas in your desired output example.
<Ox0dea> It's just really dumb to operate on lines when you have something more than lines.
tkuchiki has quit [Ping timeout: 240 seconds]
<passcod> Tbh, if the input is massive, it might be more efficient not to parse and stringify for a "simple" insert
<passcod> but for every other usecase, just use json
yuung has joined #ruby
h99h9h88 has joined #ruby
mistermocha has quit [Ping timeout: 240 seconds]
yxhuvud has quit [Ping timeout: 260 seconds]
mary5030 has joined #ruby
brushbox has quit [Quit: brushbox]
h99h9h88 has quit [Remote host closed the connection]
dlitvak has joined #ruby
vigintas has joined #ruby
kies has quit [Ping timeout: 264 seconds]
mistermocha has joined #ruby
be_erik has quit [Ping timeout: 255 seconds]
mary5030 has quit [Ping timeout: 250 seconds]
SteveC has joined #ruby
lipoqil has joined #ruby
rgrmatt has joined #ruby
duncannz has quit [Ping timeout: 252 seconds]
mistermocha has quit [Remote host closed the connection]
x-light has quit [Ping timeout: 240 seconds]
Musashi007 has quit [Read error: Connection reset by peer]
mistermocha has joined #ruby
Musashi007 has joined #ruby
grill has joined #ruby
framling has quit [Remote host closed the connection]
baweaver has joined #ruby
_kfpratt has joined #ruby
user1138 has joined #ruby
yoongkang has joined #ruby
kfpratt has quit [Read error: Connection reset by peer]
okdas has quit [Ping timeout: 240 seconds]
aramiscd has quit [Ping timeout: 240 seconds]
Synthead has quit [Remote host closed the connection]
okdas has joined #ruby
FernandoBasso has quit [Quit: WeeChat 1.3]
okdas has quit [Changing host]
okdas has joined #ruby
IrishGringo has joined #ruby
ramfjord has joined #ruby
lukaszes has joined #ruby
k3asd` has quit [Ping timeout: 240 seconds]
ramfjord_ has quit [Ping timeout: 264 seconds]
northfurr has quit [Quit: northfurr]
rgtk has quit [Remote host closed the connection]
framling has joined #ruby
rgtk has joined #ruby
Nahra has quit [Quit: ERC (IRC client for Emacs 24.5.1)]
krak3n has quit [Ping timeout: 260 seconds]
imperator has quit [Quit: Leaving]
djbkd has quit [Remote host closed the connection]
bruno- has joined #ruby
bruno- is now known as Guest21017
rgtk has quit [Remote host closed the connection]
scripore has joined #ruby
rodfersou has quit [Quit: leaving]
ebbflowgo has joined #ruby
OrbitalKitten has joined #ruby
htmldrum has joined #ruby
ss_much has quit [Quit: Connection closed for inactivity]
Guest21017 has quit [Ping timeout: 260 seconds]
mooe has joined #ruby
northfurr has joined #ruby
eminencehc has joined #ruby
<dn5> why does puts hash prints without backslash yet when I use File.write it adds backslashes to the values?
malconis has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Musashi007_ has joined #ruby
<zenspider> it probably doesn't. how are you testing the result of File.write vs puts?
synthroid has quit []
Yzguy has joined #ruby
Musashi007 has quit [Ping timeout: 240 seconds]
djbkd has joined #ruby
Musashi007_ has quit [Read error: No route to host]
arta82 has joined #ruby
Musashi007 has joined #ruby
lxsameer has quit [Quit: Leaving]
tubuliferous_ has joined #ruby
karapetyan has quit [Remote host closed the connection]
karapetyan has joined #ruby
<shevy> dn5 make sure that you store a string when you use File.write; a trivial way may be to use yaml + YAML.dump() (if you have a yaml format that is)
dlitvak has quit [Read error: Connection reset by peer]
mistermocha has quit [Remote host closed the connection]
purplexed- has quit [Quit: Leaving]