« first day (2401 days earlier)      last day (2445 days later) » 

12:02 AM
HL2 was better than the episodes.
Episodes were still good, but not as good.
 
ok; upon further reflection, I couldn't actually remember if HL2 was distinct from HL2 episode 1. But, if it is, then throw episode 1 in the list. I did enjoy HL2
 
12:23 AM
Is anyone here a professional/hobbyist software developer?
 
Software developer? What counts?
 
we're all hobbyist code-writers :P
 
CMC: write short polynomial simplification program for TI84+
 
... >.>
 
@totallyhuman But how many of us are software devs :P
 
12:25 AM
don't want to study for a test?
 
@Downgoat +C?
 
color edition
 
:/ Don't have one of those
 
@ASCII-only define that
 
I don't know what counts. I wrote a game and I was looking at trying to integrate it with Steam, and at business licenses and all of this garbage, and it makes me want to weep
 
12:25 AM
it's the same as 84+
 
I just need for test
 
Okay brb
 
I was hoping someone might have some advice. :)
 
@DJMcMayhem I've learned some stuff about real-life language through this site
 
I mean I've only used CASIO BASIC, but I've used it so much that I could probably write in TI-BASIC just fine
 
12:26 AM
@Downgoat to include polynomial expansion? e.g. (x+2)^2
 
(x+2)^2 should become (x+2)(x+2)
 
@EricTressler :/ I don't think many software devs integrate things with Steam
 
@Downgoat not x^2+4x+4?
 
nah
 
$x^2 + 4x + 4$ use latex not monospace for math :P
 
12:28 AM
@totallyhuman ...? it doesn't work in chat
 
@ASCII-only yeah, I figured, but maybe someone has been through some kind of release cycle.
 
it's a tacoscript
 
oh, sorry, let me rewrite what I do to appease a niche arrangement of people who use that userscript >.<
 
fine :P
 
@ConorO'Brien you should get tactoscript is 10/10 very sueful
 
12:30 AM
> very sueful
 
@Downgoat Does it have to simplify that too ^^^^
 
@Downgoat the last time I did that people could see when I was typing and I was able to abuse that
 
ono am i gonna get sued by userscript
 
@ASCII-only nah.
 
@ConorO'Brien Not that one then lol
 
12:30 AM
@ConorO'Brien that was fixed a long time ago
 
actually what would be better is rationalizer e.g:
 
Also you can't abuse anymore
 
I bet I can still break it
 
@Downgoat Then what do you want it to simplify
@ConorO'Brien Yes you can, but not as badly
 
@ATaco how do I do a ataco/generator with new mathquill update
/$ don't work
 
12:31 AM
...also I am typing userscript is different from mathjax userscript
 
Plus it gets kinda obvious when someone is typing but never posts messages
@Downgoat You don't
 
@ATaco why remove feature?
/$\sqrt{\sqrt{243(x+5)}}\rightarrow3\sqrt{\sqrt{3}\sqrt{x+5}}$
:(
omy is taco generator broken?
 
@Downgoat Is not remove, mathquill just break
 
oh nvm i didn't update
 
12:35 AM
weird all chat commands aren't working
 
working for me
 
what
how do you get it like that
 
SE chat mods
 
link? (not link)
 
Question: how to type infinty symbol into desmos
 
12:46 AM
\infty
nvm they fixed that bug
 
desmos doesn't do latex?
 
@totallyhuman link
 
@Downgoat oh it used to
 
how to do infinite integrals then?
 
@Downgoat you can't just type "infinity"?
 
12:47 AM
@ASCII-only ಠ_ಠ
 
But why do you even need it
 
@ASCII-only no
16 secs ago, by Downgoat
how to do infinite integrals then?
 
@totallyhuman Google exist
 
use a sufficiently large integer
 
@Downgoat just integrate <foo>
Hang on it shouldn't be hard
 
12:48 AM
@ASCII-only can u pls link to working example?
 
@Downgoat it's a bug, will fix tommorow, doing birthday things today
 
@ATaco :O Happy Birthday Mr. Taco!
 
🎉
 
@ATaco merry <insert subject's age>!
 
20!
 
12:49 AM
62
Q: SE Chat Modifications -- Keyboard navigation and commands for chat

Tim Stone Screenshot Use /command shortcuts to perform common chat tasks: See message history inline: Easily preview replied-to messages: And much, much more... About Legends tell of a prolific Meta Stack Overflow chatter who despised using their mouse above all things. In an effort to keep t...

 
@ATaco merry 2432902008176640000 !
 
Oh my gosh that's a birthday taco!
 
@ASCII-only thenk
 
@Downgoat nvm. moral of the story: desmos is completely terrible and does no things
Just use the Geogebra web app
 
12:54 AM
ikr
ohey my math teacher use geogebra
 
wait hang on
Here we go yay
 
@ASCII-only wait why is geogebra syntax o soerd
 
@ASCII-only desmos is good ;-;
 
@Downgoat How
Yes just realized I was stupid, it works perfectly fine
@Downgoat btw what do you want to work on the TI
 
Is this like 0 or what
I haven't taken a calculus course yet
 
12:57 AM
wolfram alpha is your friend
 
;_; idk how to type integral into wolfram
... wolfram says result is $\infty\sin\left(x\right)$
 
it's calculating the integral of dx as if it were two variables
 
ok wolfgram is not able to undestand
it's converting sin(x) -> x
 
wat 0/10 can't be non-converging
brb plotting
 
1:04 AM
that integral is undefined
 
What?
How can't it be non-converging
 
improper integrals are only defined if the limit of the proper integrals exists, so that expression doesn't actually mean anything
 
The integral always fluctuates from 2 to 0
 
because the integrals $\int_0^c \sin(x) dx$ oscillate as $c \to \infty$
 
because it goes from 2 -> -2 so value must be $-2 \le x\le2$ at any given time
 
1:06 AM
@Downgoat 2 -> 0
 
@EricTressler o
wait isn't it $^-2\pi\ \rightarrow\ ^+2\pi$
 
is it a good idea to have a custom code page to align with ASCII
 
@Downgoat what?
I don't understand what you're asking
 
was talk to @ASCII-only
@totallyhuman yes of course
 
@totallyhuman Yes
 
1:09 AM
why?
 
It's what pretty much every custom code page does
And so you can still have strings
I mean I guess you don't have to
@totallyhuman Okay how will you gain an advantage from not aligning with ASCII
 
ಠ_ಠ don't answer with a question :P
i don't see disadvantages but i don't see advantages either
 
@totallyhuman well unless you like people seeing ™ƥĹĤƮ—ɸȇžÀbÊ‘Ì´ÀnjϗȮ¾Ð„Ë–Ú as ur code
 
I'm lost; under what circumstances/for what should I be making a custom code page? When developing software? A web site?
 
I assume golfalng
 
1:18 AM
oh, good. If you only knew how often I find out that the way I've been doing something my whole life is substandard :|
 
-1
Q: Algorithm of getting median from counting sort

joe.dI can't understand the logic behind getMedian method. How exactly median is evaluated, what is the connection between count of elements and sum of elements? Appreciate if someone could explain it's logic. public static void main(String[] args) { Random r = new Random(); ...

 
UTF-8 or UTF-16 should be used in all contexts other than golfing, where UTF-8 is preferable.
I suppose there are some contexts where 16 should be used.
 
1:37 AM
CMC: given a number N and a list of K integers, output the corresponding characters of the first N of those K integers (with N <= K)
 
@ASCII-only Jelly's doesnt. Linefeed is 0x7F.
@EricTressler It's also useful when you travel back in time. Non-ASCII support was a mess before Unicode and UTF-8.
 
@Dennis I read some things about that; I think Joel Spolsky? has some good things about it on his blog
That was a very good article, especially since I came into it pretty clueless about unicode.
 
i've aligned newline and everything from ! to ~
...also i'm stealing jelly dotted letters...
there's a minus-plus sign? ∓ o0
 
1:52 AM
@totallyhuman it's used when you want to indicate something is minus or plus, respectively, when you've already used \pm
like (a ± b) = -(b ∓ a)... the second one shouldn't be b ± a, because the second one is - when the first one is + and vice versa
er, i lost a couple of minus signs in there. that equation isn't true, but you get the point hopefully
 
I'm still a good deal confused as to why my latest question is receiving downvotes. I asked earlier but I thought I'd ask again because it has received a number of downvotes since.
 
@Dennis Well almost ASCII-compatible I guess?
@totallyhuman wat
 
2:10 AM
@ASCII-only ;-; look man i didn't write stuff well ;-;
what do you want to do with commata
 
Quine
 
@Dennis though I assume A-Za-z are aligned?
 
Also # is in wiki but errors wat
@Downgoat Yeah all printables except for linefeed IIRC
 
@ASCII-only that was changed to sigma
for sum
 
@ASCII-only line feed isn't printable :P
 
2:12 AM
@Downgoat Then all printables I think
@totallyhuman Does Commata use UTF or SBCS
Never mind
@totallyhuman can you pls golf ty
 
@ASCII-only What on Earth is going on there?
 
@ASCII-only oh nice
 
@Dennis this
 
@ASCII-only utf 'cause i never implemented the darn code page
 
@ASCII-only That looks like xkcd's type casting.
 
2:17 AM
@totallyhuman Pls try doing random things to try and golf it :P
 
;-; why is my lang being roasted
@ASCII-only trying
 
@totallyhuman whats ur language
 
but i don't think much can be golfed off
@Downgoat ,,, (commata)
 
@totallyhuman Because it's bad
 
commata? more like dumbata :P
ikr roasted :P
 
2:19 AM
It's like you spent like 5 minutes on it
 
@ASCII-only ಠ_ಠ
 
@totallyhuman Well, limiting your language to one string per program is a rather odd design choice.
 
@Dennis it wasn't a choice :P
 
especially if it's a fixed string
 
@totallyhuman Hence the roast. :P
 
2:21 AM
btw @Dennis since you're here, can you unfreeze the cheddar room: chat.stackexchange.com/rooms/37686/cheddar
 
But. How can it have such a golfy quine D:
 
@ASCII-only (▀̿Ĺ̯▀̿ ̿)
anyways the quine's abusing the bugs
 
Yes, because it has to lol
 
darn 6 empty code page spots
@ASCII-only it probably borked when i hackily introduced unclosed strings
after which i stopped using it so...
 
2:26 AM
Doorknob's not pingable, hope he's safe from the hurricane
:/
 
@totallyhuman ...
 
Can anyone access cbsnews.com/live ?
 
i realized how big of a piece of doodoo it was :P
 
@totallyhuman -1 why is it still on TIO
 
@ASCII-only it never was supposed to be on TIO
pavel wanted it on TIO so it was on TIO
poof like magic
 
2:32 AM
@Pavel why
 
@ASCII-only ...there are bigger pieces of crap on TIO
 
Like?
 
I wanted to try it and I didn't want to download the interpreter.
 
@Pavel ...
 
@ASCII-only The language "spaced" is literally 3 lines of javascript.
 
2:33 AM
4
 
@Pavel But it works, you can acutally have more than one string in it :O
@totallyhuman 3
 
@HelkaHomba no
 
¯\_(ツ)_/¯
 
I mean sure it's 3 lines
but it's a genius idea IMO
 
@ASCII-only I want to try X, but not install it on my machine is pretty much TIO's raison d'être.
 
2:34 AM
Is there any program out there this community can't make 3 lines? :P (or 1)
 
@Dennis yes but commata barely even works >_>
 
python
 
@HelkaHomba Nope
@totallyhuman That's easy to make three lines
 
not with loops in it
 
If course with loops
List comprehensions are a thing
 
2:35 AM
@ASCII-only See? You wouldn't know that if it wasn't on TIO. :P
 
@ASCII-only ...how are you going to stick a while loop into a listcomp
 
Infinite iterators
Not sure how easy it is but should be possible
 
My language Preproc can't seem to wrap its head around StdIn input, but fortunatly it works on TIO since on TIO all i/o is file i/o.
 
Magic right
 
ಠ_ಠ
classes, loops, functions, try/excepts...
 
2:38 AM
Classes aren't needed
And they can be created too...
 
You shouldn't need try/excepts in golf.
 
@totallyhuman pls give example program, I can make it one line
 
@Pavel I'm actually in a weird situation with Preproc: it fails the self test on the main server, but it works on the arenas.
 
@ASCII-only golf commata's code /troll
 
@totallyhuman like one written in Python
 
2:39 AM
@ASCII-only commata is written in python
 
Oh
didn't see the 's there
 
CMC: Rewrite this python program in one line
x = input()
while x != 42:
  print(x)
  x = input()
 
@Dennis Yeah I have some weird issues with it, gcc doesn't seem to like -o /dev/stdout
 
@totallyhuman Also in no way is making something a oneliner golfing
@HelkaHomba Python 2?
 
2 or 3
 
2:40 AM
while print(input()):pass works I think.
But I'm not sure
 
nope, that doesn't work
 
But input is never a number in Python 3
 
so, it must be Python 2 then
 
Wait nevermind
 
you can use int(input())
 
2:42 AM
Ruby: break if $_=='42', uses -p flag.
 
my previous method doesn't work
 
@HelkaHomba Done
 
@ASCII-only Doesn't work
 
Oh crap
 
@HelkaHomba 54 bytes
 
2:45 AM
That works I guess lol
 
@HelkaHomba So, the input will always consist of integers?
 
@Dennis you can assume that, sure
@WheatWizard cheeky
 
@HelkaHomba Try it online! 42 bytes
 
That one is clever. You can save a byte by removing a space though
 
2:51 AM
Darn, 41 bytes
 
Comparing with [42] saves one more byte.
 
Very nice.
 
that's what I don't like about codegolf sometimes; it makes things terribly hacky and work with crazy bugs.
 
That's the good part of code-golf
 
2:55 AM
With restrictions like only one line allowed, what else would you reasonably expect?
 
How does {input()}-{42} work?
 
Set difference.
 
As I understand it, {} is for hashmaps.
Ah
 
min can't take an empty set
 
You'd think it might give None
 
2:57 AM
@Pavel {} is a dict, {0} is a set, and {0:0} is a dict. Not at all confusing.
 
So how do you get an empty set?
 
Releated CMC, Why?
 
set()
 
...duh
 
@HelkaHomba That would be confusing, at least in Python 2. tio.run/##K6gsycjPM/r/v6AoM69EITczT8MvPy9VR8FIR8FYR8FE8/9/AA
 
2:59 AM
In programming languages (more so functional programming languages) and type theory, an option type or maybe type is a polymorphic type that represents encapsulation of an optional value; e.g., it is used as the return type of functions which may or may not return a meaningful value when they are applied. It consists of a constructor which either is empty (named None or Nothing), or which encapsulates the original data type A (written Just A or Some A). Outside of functional programming, these are termed nullable types. == Names and definitions == In different programming languages, the option...
That would be a sensible solution to the problem
 
@Dennis that's already confusing
 
@WheatWizard Guessing: < (strict subset of) is always false for {0} and {1}?
 
@WheatWizard Why
 
@Pavel Try uppercasing None.
 
3:00 AM
@Dennis Yep you got it.
 
@Dennis I tried it, and it's still ಠ_ಠ-worthy.
 
@Anyone I need a 3var quine
 
@Pavel Everything about Python 2 is ಠ_ಠ-worthy. Use Python 3 instead.
6
 
I chose to use Ruby instead.
 
Correction: I need every quine not here
 
3:03 AM
Ruby is ಠ_. worthy
 
ruby has some weirdness too. No language is without it.
 
Wat:
Pavel@DESKTOP-CRBHFJN MINGW32 ~/git/Triangul8
$ irb
irb(main):001:0> def method_missing(*args)
irb(main):002:1> args.join(' ')
irb(main):003:1> end
=> :method_missing
Segmentation fault
 
@Pavel Raise a NoMethodError at the end
:P
 
10 points to whoever figures out why that segfaults
It crashes the interpreter immediatly, it doesn't even prompt for more input.
 
C:/tools/ruby23/lib/ruby/site_ruby/2.3.0/readline.rb:50:in `rescue in readline': stack level too deep (SystemStackError)
        from C:/tools/ruby23/lib/ruby/site_ruby/2.3.0/readline.rb:44:in `readline'
        from C:/tools/ruby23/lib/ruby/2.3.0/irb/input-method.rb:151:in `gets'
        from C:/tools/ruby23/lib/ruby/2.3.0/irb.rb:469:in `block (2 levels) in eval_input'
        from C:/tools/ruby23/lib/ruby/2.3.0/irb.rb:623:in `signal_status'
        from C:/tools/ruby23/lib/ruby/2.3.0/irb.rb:468:in `block in eval_input'
I don't get that crash
 
3:11 AM
Odd
^^^ is what I get on TIO, too.
 
@Pavel What version
 
Pavel@DESKTOP-CRBHFJN MINGW32 ~/git/Triangul8
$ irb --version
irb 0.9.6(09/06/30)
wat
Oh here we go:
Pavel@DESKTOP-CRBHFJN MINGW32 ~/git/Triangul8
$ ruby --version
ruby 2.4.1p111 (2017-03-22 revision 58053) [x64-mingw32]
 
I'm using 2.3.3
Also weird it's overriding String#to_hash
 
Huh
 
BTW I suspect args#join doesn't exist
Hence the recursion error
 
3:15 AM
It should, I copied the snippet from a fairly recent video I watched.
What it should do is make it so you can type whatever symbols and it will join them into a string by spaces.
 
@Pavel hacky :P
Yeah args.join doesn't exist
 
Wow, so impressive, a language made for golfing gets a short answer. — Harrichael 7 hours ago
 
Wait idk
 
@ASCII-only Watch destroyallsoftware.com/talks/wat, it demonstrates the behaviour I'm looking for and also pokes fun at JavaScript, which is always a good thing.
 
C:\Users\me>irb
irb(main):001:0> def method_missing(*args)
irb(main):002:1> p args.class
irb(main):003:1> raise NoMethodError,"lol"
irb(main):004:1> end
=> :method_missing
Array
Array
Array
Array
Array
Array
Array
Array
Array
Array
Array
Array
Array
Array
Array
Array
Array
 
3:23 AM
Does it trail off indefinetly?
 
Yes
 
I am completely confused right now.
 
All of those are String#to_hash :/
 
And the error is never actually raised ???
 
Nope
I can get it to raise in other situations
 
3:26 AM
Basically, definining method_missing with varargs is a terrible idea.
 
@Pavel Do they do it in irb
 
Yes
Pavel@DESKTOP-CRBHFJN MINGW32 ~/git/Triangul8
$ irb
irb(main):001:0> def method_missing; puts 'foo'; end
=> :method_missing
(irb):1:in `method_missing': wrong number of arguments (given 1, expected 0) (ArgumentError)
        from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:90:in `stat'
        from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:90:in `save_history'
        from C:/Ruby24-x64/lib/ruby/2.4.0/irb/ext/save-history.rb:64:in `block in extended'
        from C:/Ruby24-x64/lib/ruby/2.4.0/irb.rb:433:in `block in run'
 
@ASCII-only posting complete lyrics to the Array song
 
Notice how it crashes irb, not just prompt me for more input after yielding an error.
method_missing is fucking weird.
 
@Pavel Yes because it breaks methods vital for the REPL
@Pavel No it isn't
It's just that the REPL is really hacky
 
3:31 AM
Well, the IRB is written in Ruby
 
Please provide an example of method_missing working successfully, I can't come up with one.
 
method_missing is how goruby works I believe
2
A: Tips for golfing in Ruby

Patrick OscityUse Goruby instead of Ruby, which is something like an abbreviated version of Ruby. You can install it with rvm via rvm install goruby Goruby allows you to write most of your code as you would be writing Ruby, but has additional abbreviations built in. To find out the shortest available abbrev...

 
Ruby repl: ruby -en 'p eval $_'
 
scroll down for method_missing override
 
Oops forgot Ruby had global variable sigils
irb(main):006:0> def method_missing(*args)
irb(main):007:1> raise NoMethodError,[self,args]unless self==@main
irb(main):008:1> args
irb(main):009:1> end
=> :method_missing
irb(main):010:0> foo bar
C:/tools/ruby23/lib/ruby/2.3.0/irb/ruby-token.rb:91:in `Token': uninitialized constant RubyToken::TkSymbol2TokenNoKey (NameError)
Did you mean?  RubyToken::TkSymbol2Token
        from C:/tools/ruby23/lib/ruby/2.3.0/irb/ruby-lex.rb:832:in `identify_identifier'
        from C:/tools/ruby23/lib/ruby/2.3.0/irb/ruby-lex.rb:715:in `block in lex_int2'
Great
oh also irb(main):001:0> main=self
 
>_< can't people just use imgur
I mean it doesn't matter, but I have strong opinions about it anyway.
 

« first day (2401 days earlier)      last day (2445 days later) »