« first day (2114 days earlier)      last day (2730 days later) » 

2:01 AM
0
Q: Identify the IP address

watIdentify whether the IP address is internal, global, link-local, or reserved. Input should be an IPv4 address in decimal octets separated by periods. Output should be 0 for link-local (RFC 3927), 1 for internal (RFC 1918), 2 for global IPs (Internet), and 3 for otherwise reserved addresses. Al...

 
Huh. It's fairly normal to see an odd upvote here or there to an old answer, but it's weird when you get multiple upvotes all on the same old answer at once.
 
Thread got bumped, I assume.
 
Oh right, six hours ago. I didn't scroll down the front page far enough to see it.
I assumed that too at first, was just confused when I didn't see it there.
 
@ArtOfCode what does os have to do with that though
 
@ASCII-only I was just curious
 
2:17 AM
Okay, well I use one of the most terrible Linux-based OSes :P - you should be able to distinguish Ubuntu by the start menu icon thing on the top right
unrelated, what icon theme does everyone use? (I use Paper because material design = best)
 
Whatever came with KDE.
 
standard Gnome icons
 
@LuisMendo A few minutes after I posted that, I realized that you could roll a biased die until you got a string of six distinct numbers in a row, then pick the last one. That should be the same odds as rolling a standard die, right?
 
kde = :( reminds me too much of Windows
 
My desktop looks nothing like Windows.
The thing I like about KDE is precisely that I can tweak any single bit and piece the way I want to.
 
2:28 AM
Screenshot? Everything I find when I look up KDE looks like Windows to me
 
the thing I seriously care the most about is window snapping.
most linux DE have it, but they do corner snapping, which I don't like. Unfortunately, Win10 added corner snapping too :(
 
@El'endiaStarman That seems like it makes sense, but I'm not sure. If you collapse the die to a coin, it seems like you'd more often be choosing whichever side it's biased against.
 
@NathanMerrill corner snapping?
 
so you can have 4 windows on a single screen
win-left, then win-up
 
Unity is terrible but at least it has pretty configurable snapping
 
2:32 AM
on Windows 8 and lower, Win-up would simply expand the screen\
but now you have to press Win-up twice
 
@Geobits It definitely works in the case of a coin though. The way to do it with a coin is flip it until you get either HT or TH because those occur with the same probability. I don't know that it actually extends to more than two sides though.
 
@NathanMerrill You can have even more than that on Windows 10. If there is a rectangular space left, you can snap any window into that.
 
@mınxomaτ right, but I mostly care about what I can do with the keyboard only
so I got 4 corners :P
 
@El'endiaStarman That sounds odd. If I have a coin with 90% heads, I don't see how TH could be as likely as HT. Unless you mean throwing only twice at a time. I thought you meant it would be like HHHHHHT (tails).
 
2:34 AM
@ASCII-only ^^^ ^
 
So you'd throw the die in six-chunks until they were all distinct. That makes sense then.
 
yeah I agree
there was a math video about this recently
 
@Geobits Well, but it's based on the first time you see HT or TH. In the former case, there can be any number of Hs at the beginning, and likewise with T for the latter case. If the probability of flipping an H is p and the probability of flipping a T is 1-p, then the probability of HT is p*(1-p) and the probability of TH is (1-p)*p. Equal.
 
:( atom
 
@El'endiaStarman you are way more likely to see a TH than a HT first
in fact, you have exactly .9 chance of getting a TH first
as the first coin flip determines everything
 
2:37 AM
Yeah, you have to throw out after each two I think
 
@NathanMerrill Oooh, you're right. (Shouldn't those be swapped, though? H is more likely than T.)
 
oh, my bad
 
Hmm, right, that does make sense. You'd have to flip two at a time.
 
@ASCII-only What's wrong with Atom?
 
It seems like it would extend to dice in that case, but it might take a while to get a six-pack distinct :P
 
2:39 AM
Hah, yeah, but that doesn't matter in the grand scheme of things.
 
@Dennis Probably just me, I installed way too many plugins so Atom took forever to start
Way too many = a bunch of linters and highlighters IIRC
 
Plus some utility plugins
 
dark gnome on arch. Nothing fancy.
 
@mınxomaτ What process manager is that?
 
2:41 AM
htop
 
wat
@Dennis It isn't Vim
 
No.
I like the stock ones.
 
@wat pls no
 
@wat That's a huge plus in my book.
3
 
@Dennis :O brb calling goat herd to stampede
 
wat
2:42 AM
@Dennis You don't like vim?
 
circle icons are the worst, unless it's watchOS/iOS + Anemone + Aeternum Hives
 
Dennis is right about a lot of things. This is but one of them.
 
@Geobits No it is not :(
 
^
 
@wat Every text editor that needs its own tutorial to explain you how to type in it is simply over-engineered.
 
wat
2:44 AM
@ASCII-only Look it up, they're gorgeous
 
@Dennis Super Mario music plays quietly in background
 
:P
 
@Dennis You don't need a tutorial
 
@Dennis vim is same as normal GUI editor in insert mode
 
Just :set mouse = a or something + i -> magic it's a GUI editor
 
2:45 AM
Hahahaha
 
With builtin highlighting for literally everything
 
If it works for you, great. Simply not my cup of tea.
 
^^
 
Sorry for laughing. I'm trying to reconcile "you don't need a tutorial" with "Just :set mouse = a or something + i -> magic it's a GUI editor"
 
Mouse=a is default
 
2:46 AM
@Geobits That's not a tutorial, that's literally two steps :( one key according to Downgoat
This was me a while ago: opens bison file -> :O :O :O it has decent bison highlighting
 
just open vim and hit i
 
Seriously, pressing one key can't possibly count as a tutorial
 
@ASCII-only No, I mean an advocate uses "or something" to explain how simple it is :)
 
So, I'm slowly golfing the organization of my home directory by changing things like documents to doc, waiting a few days to see what breaks, fixing it, and repeating. :P
 
Surgery is simple. Just cut out the appendix or something and you're done.
4
 
2:48 AM
@Geobits Well yeah, I just set the option the first time I used it and forgot about it, I didn't exactly memorize it
 
-1 for making 3 bytes when you can probably fit in couple bits :P
 
A few days ago I pus most of my files in ~/Downloads/randomstuff (don't ask me why)
 
I have a Misc in my Various folder. >_>
 
My Downloads/unsorted folder has slowly become my primary media storage :(
 
@ASCII-only wat OS do u use?
@Dennis XD
 
2:50 AM
@Downgoat Ubuntu
 
:/
 
llama@llama:~$ ls misc/*test* code/misc/*test* | wc -l
123
 
What browser do u use?
@Doorknob zsh? :D
 
@Geobits I've got a Downloads/keep
 
@Downgoat Although I'm not sure how you concluded that based on that message, yes.
 
2:52 AM
dennis-home:~$ ls ?.??
[.bf  f.py  g.py  p.py  t.bg  t.pl  v.py  x.cv  x.jl  x.sh  y.gz  y.sh
c.rb  f.sh  l.py  r.py  t.gs  t.py  w.py  x.gz  x.js  x.xz  y.in  z.py
d.py  g.pl  m.py  s.py  t.hs  t.sh  x.bf  x.in  x.py  y.cv  y.py  z.sh
 
o_O
 
@Doorknob AFAIK bash doesn't have ** glob
 
@Dennis At least I keep my ~/* relatively organized. :P
 
@Geobits It is for me, all that's not in there are dotfiles and projects, I have a dir for inactive projects (~/Programs/archived IIRC)
 
@Downgoat It does.
 
2:53 AM
My secret is "stuff everything under ~/misc."
 
@Downgoat Who, me?
 
@Dennis like through all command or just in built ins
@ASCII-only yeah
 
@Downgoat Vivaldi, why
 
@Downgoat Globs are expanded before the command is called. All *nix shells behave this way.
 
@Dennis huh
i thought bash builtins handled the glob expression
 
2:55 AM
Nope.
 
TIL
 
dennis-home:~$ python3 -c 'print(__import__("sys").argv)' ?.??
['-c', '[.bf', 'c.rb', 'd.py', 'f.py', 'f.sh', 'g.pl', 'g.py', 'l.py', 'm.py', 'p.py', 'r.py', 's.py', 't.bg', 't.gs', 't.hs', 't.pl', 't.py', 't.sh', 'v.py', 'w.py', 'x.bf', 'x.cv', 'x.gz', 'x.in', 'x.jl', 'x.js', 'x.py', 'x.sh', 'x.xz', 'y.cv', 'y.gz', 'y.in', 'y.py', 'y.sh', 'z.py', 'z.sh']
Nobody seems to have noticed the SSH session in my screenshot.
 
@Dennis What makes you so sure? :P
 
Well, nobody said anything. :P
One of TIO's two new servers.
 
I actually tried to access it shortly after you posted the screenshot, didn't work for me so I gave up
 
3:02 AM
@Dennis can you add my new language Arena?
 
Hello all o/
 
The arena doesn't run a web server, it just executes the user-supplied code.
 
@Dennis Yeah, was just checking just in case it was the server
 
Sorry I haven't been on in a while. My newest laptop is under repair, my older laptop died, and I'm left with my phone
 
Obviously from the name it was really unlikely
 
3:04 AM
@NathanMerrill :P With the release of v2, new languages won't be getting their own subdomains anymore. It was kinda neat, but it's a big pain to manage.
 
so tryitonline/langName/?
 
There will be similar shortcuts, but you'll also be able to simply pick the language from a list.
 
Did you release v2 already?
Man, I've missed a lot
 
No, but we're close.
 
@Dennis \o/
 
3:07 AM
Very cool. Can't wait to see it :D
 
@Dennis Will language be a querystring param now (for non-permalinks if they still exist)?
 
@Dennis idea: write git webhook thing to update Lang when pushed to GH :D
 
@ASCII-only Not sure what you mean by non-permalinks.
 
@Dennis I think he mean: is there way to share Link to TIO code without saving it to TIO server
 
@Downgoat That feels a bit too automatic. A language developer might not want the latest GitHub commit on TIO yet. I do intend giving authors a way to update their languages by simply clicking a button. All that is for later though. First, I need a simple working version. I'd like to get away from the unsandboxed interpreters asap.
@Downgoat The old permalinks will still work and you could manually craft new ones, but there won't be a button for it.
Unless someone has a compelling reason why client-side permalinks would still be needed, that is.
 
3:17 AM
To save space on your server? :D
 
Given the choice, I don't think many users would pick the client-side version. The URLs get real huge real fast, especially since v2 (already) supports executing several fiddles/test cases at once.
 
Huh ok
 
What in the way of regular languages will you have
 
The practical limit for cross-browser URLs in 2048 chars. (Thanks, Microsoft.)
 
3:23 AM
@quartata you need more than retina?
 
I'd like to see them split up into a regular and esoteric section too
@NathanMerrill hahahahaha
 
@quartata Whatever is requested. I already set up Python 2 and 3 for testing. C and J are also a must.
 
Not that kind of regular language
 
@Dennis :( is cheddar not regular lang
 
@Dennis Erlang Ruby and Perl would be nice too.
 
3:25 AM
Wait nvm
 
@quartata Ruby and Perl are installed by default, so count on it. Not sure what Erlang is tbh.
 
You don't know what Erlang is? For shame.
 
I actually commonly get told to learn erlang when I talk about concurrency
its apparently the dream language for it
 
@Dennis functional lang that quartata is obsessed about
 
As long as it runs on Fedora, I'll add pretty much anything that is requested.
 
3:29 AM
compiled languages?
 
@NathanMerrill because when a language has a one byte operator for message passing you know it takes it seriously
 
@NathanMerrill Sure. Starting with C.
 
oh, right
C is compiled
 
also almost everything is atomic and very good functional language features
 
@Dennis do you do any kind of network request prevention?
I'd love to turn your server into my next DDOS botnet
(sarcastic, in case that wasn't clear)
 
3:32 AM
DigitalOcean handles that
 
@NathanMerrill By disabling all access.
 
@NathanMerrill All user code will run with the SELinux type sandbox_t, which isn't allowed to make network requests or write outside its designated space.
 
access to what? I can't make network requests to any other server?
ah cool
 
Oh I thought you meant DDOSing TIO
 
3:34 AM
Each process has its own MCS range, so they won't even be able to read each other's files.
 
Make sure they can't dump core
I think there's something to turn off writing core files
 
And as a final security measure, user code will run on a separate server, so even if it's compromised somehow, the stored permalinks etc. will be out of reach.
 
ok finished golfing username + hostname :D
@Dennis did i just add testcase support to charcoal for nothing :(
 
Pretty much.
 
What exactly do TIO testcases do though?
Maybe Charcoal ones are slightly faster (Also does TIO have testcase success percentage?)
 
3:49 AM
It simply runs the same code for different inputs and shows the different outputs.
 
@Dennis :(
 
Why :( ?
 
@Dennis idea: offer old-style permalink button if user not logged in
 
wat
@ASCII-only what is run
 
@Maltysen I don't want to force people to create accounts. Even without having one, as many features as possible should be available.
 
3:52 AM
@wat function with $@ >/dev/null 2>&1 & disown
 
wat
@ASCII-only thanks
 
@wat IIRC, brb will check for mistakes
run() {
    "$@" >/dev/null 2>&1 & disown
}
@Dennis example
 
Shouldn't that $@ be quoted?
 
@Dennis "$@"?
 
Uh huh.
 
3:54 AM
Yeah, whoops
 
wat
i could never figure out shell scripting
 
shell scripting is pretty terrible
 
@ASCII-only That will be faster, since it only has to run one program. TIO's test cases are designed to work with all languages, so it's one process per test case.
@ASCII-only I'm writing TIO's backend in Bash. Not that bad.
 
@Dennis Yeah, but I mean it has expected outputs + success %
 
No, TIO doesn't have that.
 
3:58 AM
IDK it it would be useful at all though - probably only for debugging
@Dennis Yeah, how bad it is depends on what you use it for probably
worst functions ever: git push, git pull
 
No clue what the last part does.
 
@Dennis What do you mean by the last part
 
The $(...) thingie.
Relevant:
Oct 24 '15 at 19:22, by Dennis
$ alias nnao=nano
I have that macro on all machines, including the TIO servers.
 
oh, stole it from somewhere, splits git symbolic-ref HEAD (branch name) on / since result starts with refs/heads/, takes third section, but realized that doesn't actually work correctly, brb
well, it doesn't always work correctly
 
@Dennis I got fed up with typing vnim, so I just aliased v=nvim. Bonus: less keystrokes, impossible to typo. :P
 
4:12 AM
@Doorknob types b damnit i typoed
@Dennis git symbolic-ref HEAD gives refs/heads/<branch name> if you're on a branch, cut -d'/' -f3- is basically "/".join(string.split("/")[2:])
 
I don't make that many typing mistakes with a physical keyboards, but nnao regularly gets me...
 
I typed nano a few times and mainly got naon and nanon
 
@ASCII-only I did understand the cut part, but I take the xkcd approach to git.
 
oh :P
 
Tfw you read a blog post with a bunch of ads, and the owner reveals he uses AdBlock...
 
wat
4:23 AM
@Dennis The owner is bad and he should be using uBlock origin
 
@wat How is µBlock Origin any better than ABP
 
wat
@ASCII-only faster, not a sellout, more powerful
 
I'm using AdBlock (not ABP) on the desktop and AdAway on my phone. uBlock Origin looks interesting though.
 
I use uBlock Origin
 
@wat do you have the websocket extension
 
4:32 AM
I'm quite happy with it, but I wasn't ever unhappy with other adblockers
 
wat
@ASCII-only yes
 
@Dennis solution is to type vim instead :P
 
outside of my computer, though, the most effective ad solution was changing the DNS on my home router
 
wat
@NathanMerrill pi-hole?
 
...I don't remember which one I used
but that name doesn't ring a bell
 
4:34 AM
@NathanMerrill That's what AdAway does, essentially. It simply modifies /etc/hosts.
 
@Doorknob you'd be surprised... :P
 
Does anyone know if Haskell can do unequally nested lists of lists, like [[],[[]]]?
 
I think the outer list would need to be a tuple
but I don't do haskell
 
@Downgoat Fine, alias vim=nano.
2
 
wat
@Dennis why do you hate vim so much
 
4:39 AM
I'm torn between hating it for what it is and hating it for the evangelical praise it gets from people.
 
I don't hate it. But I also don't plan on learning a gazillion magic spells to write a simple piece of code.
 
wat
You don't need to
Just open it and press i
 
And then you have a text editor. But you can also get those where you don't have to press i
 
That's just using vim for the sake of using vim. If I won't use any of its unique features, why bother?
 
wat
4:41 AM
yes, but those are just text editors
vim is more
@Dennis You learn the features as you go
 
@wat which is exactly what I want...
 
wat
@Geobits but then you won't get the unique features if you decide to try using them
also, try gVim
 
@wat I wouldn't. I'd have to look them up.
 
wat
no
vitutor
 
If I want magic, then there are plenty of IDEs that work off the bat. If I want a text editor, I don't want to have to press i
 
wat
4:43 AM
@NathanMerrill you're making such a big deal out of pressing one key
 
@wat And there's the tutorial I mentioned earlier that you said I didn't need.
 
@wat Seriously though, all I want is a text editor. Vim is bloatware if that's all I want.
 
wat
@Dennis You don't need it to start
 
Sure I do. I can't keep exiting with ^Z killall vim, especially since that won't save my edits.
 
wat
alias vim="vim -c 'startinsert'"
to exit <esc>ZZ
Or just vim -y
 
4:45 AM
When people post their simple "fixes" or key combos to do the simplest of things in vim, that doesn't make me want to use it more at all.
 
wat
or evim
@Dennis @Geobits Try evim. It should work as you would expect it to.
 
As a text editor? I have one of those already though ;)
 
wat
It's vim that starts in insert mode, and behaves more like other editors. To exit type <ctrl+l>:wq
 
Seriously? Ctrl-L :wq to exit? See my previous post about key combos.
 
wat
4:49 AM
That's the consequence of "easy mode" which remaps everything else to appeal more to people who have never used vim before
 
@NathanMerrill Hm. I don't think that will help me, because: "Use tuples when you know in advance how many components some piece of data should have" (Learn You a Haskell). I don't know in advance how many nested lists will be in the list.
 
wat
Escape is rebound to Ctrl+l
 
@wat Compare that to a sane editor like nano that says ^X exit at the bottom, so you just press that and you're done.
 
wat
Usually you would press escape to quit insert mode, then quit with :wq or ZZ
 
@DLosc I believe elements in a list need to be of the same type. A List of Lists is different type than a List
 
wat
4:50 AM
@Dennis Nano force inserts line breaks, terrible for long lines in config files
I avoid it as much as possible
 
In most distros, it doesn't do that by default.
 
@NathanMerrill Right... So maybe Find the "unwrapped size" of a list wasn't the best challenge for me to try learning Haskell. :(
 
@Dennis Is that not what Jelly is
 
@DLosc probably not :P
 
4:52 AM
@Dennis also it has nowhere near a gazillion, maybe 10 common ones max, way less than jelly has
 
@DLosc there's an interesting answer that takes input as a string
you could do it that way?
 
@ASCII-only Well, I created those spells, so I don't have to learn them. :P
 
@DLosc Would you mind going to the Charcoal chat?
 
@NathanMerrill Ehh... for that challenge, string input is boring IMO. I specifically wanted to do a list solution.
@ASCII-only Already there
 
@ASCII-only actually, that's a rather good analogy. I imagine lots of people enjoy the mental work that goes into learning/modifying vim, the same way we enjoy making/using golf/esolangs
 
wat
4:55 AM
@Dennis What golfing languages do you frequently use?
 
too many slashes
 
@wat I thought Dennis uses mainly Jelly/CJam, not Retina
 
well
4 consecutive messages deleted
 
wat
i smell eleven
 
Jeez. I set my phone down for thirty seconds and people go around deleting stuff.
 
wat
4:57 AM
@Geobits What golflangs do you use?
 
@NathanMerrill Yeah, this whole vim conversation sounds like a CJam user trying to explain why CJam is better than Python. "You can get stuff done quicker b/c typing fewer characters!" "But those characters make no sense." "Sure they do, you just have to learn them." "That's not quicker."
 
@wat NOTA
 
wat
@Geobits What is NOTA?
 
It's an exercise for the reader
 
Vim may not be the best editor, but it is definitely better than emacs
 
4:58 AM
@wat I'm guessing NOTA golflang. ;)
 
None of them A.*
 
wat
@DestructibleWatermelon Emacs is a good OS, it could just use a better text editor.
 
@DLosc Not exactly IMO - sure, CJam is good and short, but there's not much point in learning it - it's not as fast to run, plus it doesn't have the majority Python's features
@wat Emacs' learning curve is terrible
 
wat
@ASCII-only ?
 
4:59 AM
the analogy still stands IMO
 
wat
@NathanMerrill nope
 
I looked at emacs before I looked at vim
and it SUCKED
so no vim fan bias
 
Emacs suck
 

« first day (2114 days earlier)      last day (2730 days later) »