« first day (2054 days earlier)      last day (2786 days later) » 

5:00 PM
@ETHproductions Hopefully Pytek will be one due to informative error messages.
 
and neoscript have very descriptive error messages also
 
Every language should have informative error message IMHO.
 
Error: Unknow NUD for undefined
 
@El'endiaStarman BTW, how's Pytek been coming along since I left?
 
@ETHproductions Barely any progress. I've been devoting time to other projects, like one that I'm getting paid for. :P
I hope to start working on it again soon.
 
5:03 PM
I understand not having time...
 
@Downgoat are you gonna license your chatbot engine?
 
@zyabin101 that's kinda personal info. I've put it there so people who know me know that that is in fact me.
 
And about the chatbot engine?
 
a quick google for CHS say this
 
@zyabin101 probably not, why?
 
5:09 PM
CMC: signed square, e.g. 2 => 4, but -2 => -4
 
he want to create a proprietary rewrite of Zalgo
so i quickly licensed the whole thing
 
@ConorO'Brien x=>x*(x<0?-x:x)
 
^^^ NOT YET disapproval face
 
@ConorO'Brien Or Japt: U*Ua
 
5:13 PM
@Downgoat It's open source.
 
since straw dont have signed numbers (in reality, it dont have numbers at all) it's simply regex magic with some unary
 
@ConorO'Brien 5 bytes
 
straw: <:~-(\D)()/#:*$-(\d)()/,+>
it's the longuest ;_;
 
I have to make a chatbot engine myself now.
 
@ConorO'Brien Or Jelly: ×A (My first Jelly program! Woohoo!)
 
5:15 PM
@zyabin101 y?
 
@ConorO'Brien Minkolang, 9 bytes: ndd$-**N.
 
I want to write a "shuffle a map" challenge (where each of the keys point to a randomly selected value)
...what are good "representations" of a map?
 
JSON?
 
@ConorO'Brien ZSGt**
 
[[key,value],...]
 
5:20 PM
@DJMcMayhem language?
 
agnostic
 
@ConorO'Brien the one I'm trying to convince you to learn. :P
 
@El'endiaStarman Minkolang, 7 bytes: nd$~*N. (My first Minkolang program! Woohoo!)
 
i hit 2K yesterday and it's not on the starboard?
2
 
5:21 PM
@ETHproductions Well shoot.
 
@ConorO'Brien Haha, no. It would be like at least 20 in V. Maybe more
 
Can't believe I didn't think of that.
 
It was MATL
 
@TùxCräftîñg Congrats Tux!
 
but my privileges will only last 6-8 weeks... ;_;
 
5:22 PM
@El'endiaStarman I wrote a JS answer, then thought of that solution after posting. Then I wrote a Japt answer, then thought of that solution again after posting it :P
 
@ConorO'Brien Here you go
Not bad for a language with no negative numbers. XD
 
@ConorO'Brien CJam, 5 bytes: ri_z*
Wow, I can't remember whether my own language has an absolute value operator :P (Cubix, that is)
 
:32292095 technically V doesn't either. It has strings that it can pretend are numbers
facepalm I did a 6 byte answer when I could have done a 3 byte answer t|*
 
@ConorO'Brien Jelly 2 bytes
I win!
 
5:30 PM
15 mins ago, by ETHproductions
@ConorO'Brien Or Jelly: ×A (My first Jelly program! Woohoo!)
way ninja'd
 
Shoot
I wasn't there when it happened though
 
1
Q: Generate Menu Access Keys

Nathan MerrillThis is thematically similar to Generate keyboard shortcuts for a menu, but its actually a pretty different challenge. Let's take PHPStorm's menu as an example: New Project New Open Directory Open Open URL New Project from Existing Files Save As Open Recent Close Project Rename Project We nee...

 
@ConorO'Brien PowerShell, 34 bytes -- param($a)'-'*($a[0]-eq45)+(+$a*$a)
Takes input as a string
 
@TùxCräftîñg our code is different though. :P
 
the two letters are swapped
 
5:32 PM
Yup. It's different
Huh. I can do it in 14 in vim
 
@ConorO'Brien Cubix, 15 bytes: u.n.I:?>*O@...U
TODO: make a permalink generator for Cubix
 
Okay, now I need text similarity functions that I can implement in JS. :I
 
@zyabin101 hamming/levenshtein (bad idea) distance
 
C<C-r>=<C-r>"*abs(<C-r>")<cr>
 
@zyabin101 IIRC, I wrote a ridiculously somewhat fast levenshtein distance calculator in JS a while back
lemme go find it
 
5:35 PM
And it's licensed with a permissive license like MIT? :3
 
It was part of a PPCG answer
 
Okay, so CC-BY-SA. Easy.
 
@zyabin101 y do u want to make ur bot propietary?
 
I don't.
 
in Sandbox, 33 mins ago, by zyabin101
I'm gonna make a remake in JS (proprietary).
 
5:36 PM
function levenshtein(s,t) {
  if(s == t) return 0;
  if(s.length === 0) return t.length;
  if(t.length === 0) return s.length;

  var v0 = Array(t.length+1),
      v1 = Array(t.length+1);

  for(var i=0; i<v0.length; i++) v0[i]=i;
  for(i=0; i<s.length; i++) {
    v1[0]=i+1;
    for(var j=0; j<t.length; j++)
      v1[j+1] = Math.min(v1[j]+1, v0[j+1]+1, v0[j]+(s[i]==t[j]?0:1));
    for(j=0; j<v0.length; j++) v0[j]=v1[j];
  }
  return v1[t.length];
}
(part of this answer)
 
It's proprietary because I was going to make it with Downgoat's chatbot engine, which is sadly not licensed.
I'm gonna use another engine though.
 
it's not because it's unlicensed that it's proprietary...
 
It's not proprietary, some parts will be CC-BY-SA, some parts are mine.
 
That code is based on the two-row algorithm
 
CMC: primality checker
 
5:41 PM
code-bowling is way too vague
Longest comment wins
 
#include <stdio.h>
#include <stdbool.h>

bool is_prime(long double number) {
    ...
    else if (number == 1)
        return false;
    else if (number == 2)
        return true;
    ....
}

int main(int argc, char *argv[]) {
    bool primality;
    long double number;
    scanf("%Lf", &number);
    if(is_prime(number))
        printf("The number is prime.\n");
    else
        printf("The number isn't prime.\n");
    return 0;
}
@TùxCräftîñg ^
 
I forgot how to handle exceptions in JS.
 
try { /* ... */ } catch (em) { /* all */ }
 
Ah.
 
5:52 PM
Aug 2 at 20:06, by betseg
try{throw pokeball;}catch(em all){}
 
Jun 9 at 20:24, by TimmyD
Apr 5 at 18:08, by TimmyD
try {
  throw ball;
}
catch {
  run
}
 
try eval("throw ball"); catch em retry;
 
throw `ball`; // :3
 
i have no idea if throw exists in neoscript
 
= Uncaught ball D:
 
5:55 PM
no it dont
 
1
Q: Shuffle a mapping

Nathan MerrillWe define a map as a set of key-value pairs. For this challenge, you need to take each of the values and assign them to a randomly chosen key. You must randomly shuffle the values, and output the resulting map. This means that each time we run your program, we have a chance of getting a diffe...

 
How do I randomly choose from a variably-sized array in JS?
:I
 
arr[Math.ceil(Math.random()*arr.length)-1]
 
@flawr Do you just search youtube for /.* crash/?
 
6:09 PM
Or do you check your cough Twitter cough often?
 
@DJMcMayhem then what language was it?
 
@zyabin101 I don't use twitter.
 
@xnor I have a feeling the people who would downvote "Programming Puzzles" without reading the reasons would probably also downvote "Pure Programming Puzzles" without reading further.
 
@BetaDecay No, I magically attract crash videos.
 
@flawr okay, then where do you find crash videos? :3
 
6:13 PM
@zyabin101 internet
 
._.
 
@ConorO'Brien It was MATL
 
@zyabin101 Are you having a conversation with one of our feed bots again :P
 
flawr AKA NewCrashPhotos
 
6:16 PM
@trichoplax Nope.
 
Bad joke...
 
flawr, you should make a New Crash Photos feed.
 
@TùxCräftîñg Make a random button for main
 
@TùxCräftîñg Given a string of length N, print the string backwards then forwards, then backwards, then forwards... etc. N times. For example: 123 --> 123321123
 
"print the strong"
 
6:18 PM
^
 
I'm on my phone OK!
XD
 
@zyabin101 i have no idea how to do that
 
Most of my chatting is done from my phone
 
@flawr Take some sites where you often find crash photos, find RSS feeds for them, and mix them up.
 
I think chatting is what phones were invented for
 
6:19 PM
for loops in straw... is it even possible? :P
 
A good mixer for RSS feeds is rssmix.com
 
@TùxCräftîñg Just 6 away from 2048...
 
@zyabin101 I thought you mean here in TNB
 
Oh, here mortals can't make feeds. Only the nine ROs can.
 
6:23 PM
> the nine
Makes us sound ominous...
 
There's actually ten
 
Chris hasn't been around for a while
 
Even though CJY isn't active anymore
Ninja
 
Oops
 
What?
 
6:25 PM
I didn't realise you were mid sentence or I wouldn't have interrupted...
 
Oh, doesn't really matter
nothing really matters....
 
If we are the nine, maybe CJY is the one RO to rule them all
 
No love for my CMC?
 
which one?
 
10 mins ago, by DJMcMayhem
@TùxCräftîñg Given a string of length N, print the string backwards then forwards, then backwards, then forwards... etc. N times. For example: 123 --> 123321123
 
6:28 PM
If only we had a place to keep all our challenges together so they don't get lost in the transcript
3
 
Seems my code uses parts from Stack Exchange, which are licensed under CC-BY-SA, and I can't apply this to software :I
 
Sep 3 at 21:05, by Releasing Helium Nuclei
holy shit that happened to me before
 
@DJMcMayhem 16 bytes
 
OK, 3 posts on the starboard, I think that's my cue to spend some time outdoors
4
 
i;f(char*n){i=strlen(n);while(i--)if(i%2)puts(n);else puts(strrev(n));}
requires conio.h (windows)
 
6:34 PM
@trichoplax You mean here?
 
Here's my chatbot, not proprietary as you thought Tux!
 
@DJMcMayhem Minkolang, 18 bytes: $orId$z$Dz[z[O]r].
 
@DJMcMayhem I didn't know you wanted me to learn that :/
 
@TùxCräftîñg you're finally back.
I finished my chatbot.
 
6:41 PM
@El'endiaStarman if I were to write a language identification program, I'd identify $ as being part of Minkolang, Perl, or PHP
or mayb ruby
 
@zyabin101 5 of threshold o_o
 
or LaTeX
 
abcd will match lolol
 
@ConorO'Brien V uses $ fairly frequently
 
@ConorO'Brien Straw also use it in most programs (it's the unary to decimal command)
 
6:43 PM
perhaps, but it's a command, whereas in the aforementioned languages (with the possible exception of perl), the $ is a modifier
@Dennis could you pull reticular when you can?
 
Aug 30 at 22:56, by Conor O'Brien
@DJMcMayhem no, I'm just curious. I might tho. (Don't tempt me :P I'm doing homework and I need to focus)
 
@DJMcMayhem wow, august 30th. isn't that awkward.
 
_(_1,_2){if(!_2)return _1;else return _(_1^_2,(_1&_2)<<1);}main(){int _1,_2,_3=0;scanf("%d %d",&_1,&_2);for(;_1>0;_1=_(_1,_(~1,1)))_3=_(_3,_2);printf("%d\n",_3);}
reads two numbers and outputs the product of them
 
??? Why is that awkward?
 
@betseg not bad
@DJMcMayhem me from the past apparently wanted to learn it :/ and here I am having forgotten.
 
6:47 PM
Okay now, can someone test my bot in the chat Sandbox? :3
 
@betseg why is _1=_(_1,_(~1,1)))_3=... valid syntax? o_O
 
for(                              )_3=_(_3,_2);
      ;  _1>0  ;  _1=_(_1,_(~1,1))
 
ah
parens, we meet again
 
@zyabin101 I responded to a comment of yours on my challenge
 
_(_1,_2){return!_2?_1:_(_1^_2,(_1&_2)<<1);}main(){int _1,_2,_3=0;scanf("%d %d",&_1,&_2);for(;_1>0;_1=_(_1,_(~1,1)))_3=_(_3,_2);printf("%d\n",_3);}
yay golfed
> Adblock Plus now sells ads
m8
 
6:56 PM
golfed would be main(){int a,b;scanf("%d %d",&a,&b);printf("%d",a*b);} :P
 
@ConorO'Brien not using * or + or - or / :P
 
you should've said that then :P
 
0
A: Decode the chmod

RayPython 3.5 - 370 bytes #!/usr/bin/env python3 from sys import argv as ARGS perms=('None','Execute only','Write only','Write and Execute','Read only','Read and Execute','Read and Write','Read Write and Execute') types = ('User','Group','Other') def convert(ocatal_str): for n in range(0,3): ...

 
7:04 PM
@HelkaHomba If you want I can help you out with a downvote.
5
 
Noo. I want to get to 100 for another gold so I can keep beating Dennis :3
 
@HelkaHomba too many
 
@Dennis could you please pull Straw
 
After +3 in the Sandbox, I've posted an xkcd-based challenge... Hope you like it =)
0
Q: The ten hundred most common words

Weeing If FirstThis question is written because "Thing Explainer" is fun to read, and gave me an idea. Write "stuff that makes computer do things" that reads/takes a set of letters, numbers and things like this "#%|? and returns True / 1 if all words are part of this set. If all words are not part of that set...

@JonathanAllan, finally posted it :) Thanks for the input!
 
@StewieGriffin Who's this "Weeing If First" guy?!
 
7:10 PM
he must be new
 
Anonymous
@ConorO'Brien So he's weeing?
 
I suppose he is the first in that respect
anyone ever feel like this?: writes answer that took an hour to make and golf, complete with detailed explanation, gets an upvote or two. writes an answer that took about 15 seconds to make, and it inexplicably gets tons of upvotes
 
it's because your first answer's code didn't contain enough smileys
 
@El'endiaStarman It's a twist of the good old Fastest Gun in The West... Instead of answering, I wee!
 
Not weird at all...
 
7:14 PM
Read in a paper: Unfortunately its naive implementation requires dealing with sets of exponential size (we encountered e.g. 2^(2^26)) and thus is not very practical. That "very" :-D
 
@MartinEnder I guess I need to write more CJam
 
or straw
but straw near only have sad smileys ;_;
 
@ConorO'Brien yeah, I hate it when that happens
 
Anonymous
@LuisMendo Just download more RAM
 
7:14 PM
@Mego Hehe. A lot more
 
@El'endiaStarman I think Stewie will claim his name back in about 20 days... :)
 
@ConorO'Brien needsmoreCJam
 
@El'endiaStarman Hint: He used to have a different name (anagram)
 
Anonymous
Although Weeing definitely isn't weeing now, because they're incredibly late to the anagram username game
 
7:16 PM
peace out yall
 
Anonymous
@LuisMendo Woosh
 
Initials S.G....
 
Anonymous
 
:-D The avatar probably gives it away anyway
 
Anonymous
7:18 PM
@trichoplax Everyone knows that TNB is the main attraction, and we just solve challenges when there's a lull in chat.
2
 
I fucked up Git so bad it turned into Guitar Hero https://t.co/vUKZJAQKWg
he use a graphical git client ಠ_ಠ
 
¶_¶
6
 
@TùxCräftîñg i'd too if i used windowws
 
Anonymous
@NewMainPosts inb4 eleven
 
@betseg ಠ________________________________________ಠ
Java is like Alzheimers; it starts slow and eventually takes away your memory.
5
 
7:25 PM
@StewieGriffin is the "doesn't returns" intentional
 
great citation 8/8
 
@TùxCräftîñg Why is that bad?
 
xD
@HelkaHomba command line ftw
and generally graphical clients are only dumber versions of the cmdline
 
@betseg No, but it doesn't matter anymore =/ I have to remove the challenge...
 
7:27 PM
It's a clear dupe! So much for 10 days in the Sandbox :P
 
Anonymous
I'm on the fence about it being a dupe
 
@betseg I don't think this is appropriate for TNB.
 
@Mego I like the sound of that! :)
 
I am too (you probably saw my comment)
 
Anonymous
Sure, the other challenge is very related, but it requires a boolean output, rather than yours, which requires a set difference. They're very similar, but I'm fairly certain we've had this exact scenario before and it was decided that the challenges weren't dupes.
 
7:29 PM
It seems like DJMcMayhem is on the fence too :)
 
@Dennis yo, has the tabs spaces thing always been a thing or just recently?
 
@StewieGriffin Where'd you get that idea from? :P
 
@uoɥʇʎPʎzɐɹC It's been a thing ever since the first person accidentally indented with spaces.
 
or @El'endiaStarman do you know?
 
@MartinEnder Fortunately I went to the real outdoors before I saw your link :P
 
Anonymous
7:30 PM
I won't VTC it, but I can understand other people choosing to
 
Anonymous
@Geobits ಠ_ಠ
 
Anonymous
> accidentally
 
@Geobits ಠ_ಠ
 
Anonymous
Nobody does the right thing on accident
 
tabs are evil
 
7:31 PM
@Mego :)
 
@Mego Exactly my point as well.
 
@Mego I'm pretty sure there's a counter-example to that. :P
 
@TùxCräftîñg Ehh. It bugs me when people force themselves to use cmd line stuff or linux or whatever so they can appear to be more hardcore or productive. GUIs and mice are extremely useful.
11
 
Anonymous
@El'endiaStarman Nope. If you actually did do the right thing accidentally, you would never admit it. Therefore, nothing that is right is an accident.
 
@HelkaHomba vim ftw and commandline masterrace
but i agree, i use a graphical browser :P
 
7:34 PM
> or linux or whatever
I use linux and love me some sweet GUI action
 
I use terminal + GUI, cd into the dir then open . for the GUI (for example)
@Mego so how was popcorn invented?
 
i use windows and windows file explorer is wa"y"*1000000 too slow
 
says a tux
finder is pretty fast
 
@TùxCräftîñg Well I think you outlined your actual problem in the first three words... :P
2
 
fast as a terminal command
 
Anonymous
7:36 PM
@TùxCräftîñg Index your hard drive
 
@TùxCräftîñg you mean gitar hero
 
@Mego can't believe windows doesn't do it automatically
 
@Geobits and my steam games ;_;
 
Anonymous
 
@TùxCräftîñg What Mego said, and or get an ssd
 
> get an ssd
i am on a laptop
 
Anonymous
Or both (don't)
 
@TùxCräftîñg I don't really know what that means. I don't steam that much, but when I do it works.
 
Anonymous
@TùxCräftîñg That makes 0 difference
 
Lots of laptops have SSDs
 
7:38 PM
most of my games are windows-only
 
@Mego Actually I just solve challenges so It looks like im not using PPCG for just TNB. My rep to time in chat is very dispoportionate
 
Oh. Then you're just playing the wrong games ;)
 
@TùxCräftîñg wine?
 
Anonymous
@Geobits And the rest have the capability for their hard drives to be replaced
 
games often work with wine
 
7:39 PM
@Mego Transferring the files might be tricky without a second slot
 
@uoɥʇʎPʎzɐɹC wait forever FTFY
 
@Mego Oh I know. I was just saying it's a silly reason, since many (most now?) come with them to begin with.
 
Anonymous
@HelkaHomba External hard drive via USB port
 
@TùxCräftîñg one time it loaded so slow I realized it was built on node.js
 
Oh, btw, for those who don't get the Zachtronics newsletter: they announced a new game, Shenzhen I/O
 
7:39 PM
It's like saying "video card? but I'm on a desktop!"
 
desktop game
 
Anonymous
Or use OneDrive/Dropbox/any of the other file backup services
 
Anonymous
It's 2016; backing up files is a non-issue
 
@Mego I'm gonna make a script to exploit GitHub's cheap unlimited file storage
although Backblaze has unlimited storage for cheaper ($5/mo, flat fee, they will mail you a hard drive if you gotta lot of data, you pay s+h)
 
Anonymous
@MartinEnder Oh good, we're reaching the point where every profession is becoming a Steam game :P
 
7:41 PM
We're way past that point.
 
@Mego what about programming (not assembly)
 
@Mego True. OneDrive is pretty cool. I somehow have 105gb of free cloud space with them for some promotional reason :D
 
Anonymous
I don't think there's a literary editor simulator game on Steam, but I wouldn't be surprised if there was
 
@HelkaHomba ...but backblaze has $5/mo unlimited, that's cheaper than GitHub!
but free means more expensive paid plans
 
Anonymous
I mean, we have truck driver, border control, and millinery simulators
 
7:44 PM
steam have everything
 
With all the free GBs I get on other services, I don't feel the need to pay for unlimited. Not to mention that ever getting those 500GB (or whatever) back on your drive would take forever anyway...
 
it's the third time steam ask me to confirm my email (ノಠ益ಠ)ノ彡┻━┻
 
Anonymous
Those hosting services can afford to give everybody obscene (like 500 GB) amounts of storage, because they know that the average user would never be able to use all of it
 
I'm pretty sure my ISP would laugh at me and just flip the switch if I ever tried to upload 500GB in one go :/
 
@Geobits backblaze mails you a hard or flash drive, $99 collateral
you pay s+H though
 
7:47 PM
Is anyone here a board game geek? :3
 
@zyabin101 mildly
 
@zyabin101 I've played a board game other than Monopoly.
 
It's nice to know that in the age of unlimited cloud storage, businesses still offer sneakernet.
 
@HelkaHomba Are you on BGG? :3
@PhiNotPi Which game? :3
 
7:48 PM
Aww...
 
Anonymous
Sneakernet has awesome bandwidth but terrible speed
 
Which games do you play? :3
 
@zyabin101 Most complicated game I've played is Twilight Imperium III.
 
:O
 
@PhiNotPi Oh Scrabble then :P
@Mego It's the latency that's the real killer on speed.
Ping times measured in days just sucks.
 
7:50 PM
halp commitstrip is in french
nvm found how to change
 
TODO: make a 1-letter programming language. Looks like the letter I is free.
 
> Likes like the letter I is free.
Uhm, what.
 
I have no clue what you are talking about.
 
> Dear chat, I am writing this letter in response to the TODO posted in chat. This letter is intended to serve as a programming language, and is indeed a single letter. TODO: write interpreter and docs
 
@PhiNotPi TODO: Make a language whose name is the empty string and watch the ensuing chaos
 
7:58 PM
Chrome users.. the biggest RAM downloaders. http://t.co/YpHrtRZfff
 
@Mego True story though: one of the churches I went to regularly started a new church campus, and what they did for the sermon was to record the pastor at the original campus, then unplug the hard drive and drive it over to the new one. :P
@Zephyzu @DownloadMoreRam @Mrten_ I think you can download up to 100 absurdibits with a corporate license.
 

« first day (2054 days earlier)      last day (2786 days later) »