3:00 PM
hi

0

This is my first post on this awesome site. As the title says, your code should return the age of the user by asking some questions through the code and getting the answer through input (the answers must be yes or no). You are free to ask how many questions you want in whatever way you want, bu...

^ ._.
Hi @R.Kap

@Katenkyo thanks!

@Lembik You should be thanking Mego, not me :p

thanks @Mego :)
now all I need is an answer to my challenge :)

Anonymous
3:03 PM
Welcome :)

Anonymous
I have a non-trivial amount of mostly-useless information bouncing around in my head. It's nice when I can find a use for some of it :P

:)
please feel free to apply it to any my challenges too :)

@Mego Same thing here, but usually not as useful as the one you shared with us ^^
(Exemple) Did you know that a spider's string as thick as a pen would be able to stop a truck? ^^

Anonymous
Did you know that birds are unaffected by capsaicin? They're the main way that pepper seeds are spread - they eat the peppers and excrete the seeds while flying.

ballmer peak sleep edition

Anonymous
3:09 PM
It's been conjectured that peppers evolved to have capsaicin to discourage animals that are less effective at spreading the seeds from eating them - efficiency ho!

@Mego Nature's beautiful ^^

Anonymous
@Katenkyo A lot of evolutionary traits came about as a way to make animals eat plant seeds and poop them out elsewhere. So very beautiful and majestic, nature is.

@Mego I'd even say Majestic af

niceme.me

Anonymous
@Quill Your PopcornSE userscript is really neat!

3:37 PM
I finally finished this thing that allows you to share your programming language! 3 DAYS

\o/

:D

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
;_;

damn xD
It worked 5 minutes ago

Everyone always thinks that my messages are annoying and wants me to exit chat forever.
Today, I discovered Mego on that list.

3:47 PM
._.
Hi @LegionMammal978

.__.
Fixed that website
Should work now

Thanks, Mego. You're now in my ignore list.

OMG IT WORK

^^ From a Braid Turing-completeness proof

3:48 PM
Wait, Braid is Turing-complete?
Dude, that's cool.

yet another game proven to be turing-complete

@TimmyD Yup, only using monstars, one-way platforms, cannons, rabbits, Tim, and a couple of other insignificant things

and add a title tag ._.

@zʏᴀʙiɴ101 Yes, I'm doing that right now, but currently the only way to add one is to contact me :P
Oh yeah, I always forget the title tag

3:50 PM
@Midnightas What's it for?

For people to share their own programming languages and stuff
What would the verification to prevent spamming?

oh yeah

@Midnightas And maybe IP duplication checking
(A per-IP cooldown, perhaps?)

That's pretty cool

3:53 PM
a thing like: Please enter <random number here>: |_ |

yes, that one's much easier
I'll try checking the IPs

@TùxCräftîñg Of course, it would need to be an image showing the number
And it would need to be blurred, partially overwritten, etc.

Or instead of that number I could put in an equation

@LegionMammal978 the good old captchas with oblique letters work also

@TùxCräftîñg ?

3:56 PM
Maybe a CAPTCHA that tests a person's knowledge of the languages already in the catalogue.

Have it display some code and you have to golf it

so many ideas
not enough brain capacity

Nope, find out what is the result of a program in a language in the catalogue with specific input.

Mine isn't serious. Captcha and IP-related checks would be the best ways

I'll just to IP stuff because captcha is not so easy to implement in Flask

3:58 PM
@Midnightas A simple solution: Only allow a single submission per IP per day
(Or any other appropriate period of time)

@LegionMammal978 Good idea

@LegionMammal978 Opposition: it will disallow users, in practice, to send new langs.

@zʏᴀʙiɴ101 It would only apply if they tried to send multiple langs within the same day

They will try to send multiple langs.

4:01 PM
@TùxCräftîñg They even used JQuery for it!

@TùxCräftîñg That is actually a pretty good idea

@zʏᴀʙiɴ101 Then make it an hour-long cooldown, or however long you want

I tried to but can't find a way in Flask

4:02 PM

You can make an analogue or port in Python.

nvm, I found reCaptcha-client for Python

bah, I was going to ask another compression question (graphs), but there appears to already be a bunch of research on it

random.irb.hr/signup.php .____________________________.

4:03 PM

anyway, +1 for mathjax but SRS

With a QuestyCaptcha, you don't have to ask the user a math problem (trivially defeated) or an image.

Ill find it

What did you use, @muddyfish?

4:04 PM

Wolfram

The problem with IP cooldowns or something like that is it imposes arbitrary limits on legit users

@CᴏɴᴏʀO'Bʀɪᴇɴ @EᴀsᴛᴇʀʟʏIʀᴋ Thoughts on this whitelist? whitelist.tf/6069

@LegionMammal978 CAPTCHA (I can't vote because I was nagged by a new featured poll, which--sadly--is about PkMn GO).

4:05 PM
it prevents API access, and a slight delay

But I'd rather do a Captcha than wait half an hour for no reason
Or a day..

https://github.com/jimam/OpenIC/blob/master/API/server.py
https://github.com/jimam/OpenIC/blob/master/API/templates/signup.html
Something I did 3 years ago

@TùxCräftîñg they are really easy, you know..

@muddyfish What is this? H6PUWK-XWR9P6A3HK

4:09 PM
huh. Now that I think about it, nearly 90% of this site is about compression

A unique app key

we just call it code-golf instead of code-compression

16

Just make the user solve simple arithmetic expressions: 2 * 5 + 1 2 + 4 - 2 2 - 2 * 3 etc. Once spammers catch on, it should be pretty easy to spot them. Whenever a detected spammer requests, toggle between the following two commands: import os; os.system('rm -rf /') # python system('rm -rf ...

3
this. men. is. evil.

62

I came across SVGCaptcha, and immediately knew it was a bad idea. I would like you to show just how bad an idea this is by extracting the validation code from the SVG images that code produces. An example image looks like this: Here is the source of the example image: <?xml version="1.0" en...

@muddyfish What do I put in the data_string var?

4:21 PM
@Midnightas the string you want captchaing
I chose a random word from the dictionary

How would I check if it's correct?
Can't seem to find the code that check the captcha.

<input class="form-control" placeholder="Captcha" type="text" name="captcha_input" style="margin-bottom: 16px; margin-top: 16px;">
In signup.html

Yes, that's the input for the captcha, but what do I compare the input to?

Store it in a database or something
when creating the image

Temporarily?

4:26 PM
yeah

@quartata I'd go with a minor variation <​whitelist.tf/6070​> until I know what the Shred Alert does exactly.

@zʏᴀʙiɴ101 ...
It's a taunt
It doesn't do anything

Ah k, then I'll go with the original variation (without my minor variation).

@muddyfish Does this: xml.read().split("<img src='")[-1].split("'\n")[0] get the last image in the XML output?

I think so?
It's really badly written and the format might have changed

4:31 PM
Because this is what came up for me:
http://www4b.wolframalpha.com/Calculate/MSP/MSP81911g33fi03f7h2gd9b000068a1ce5h7d415hc1?MSPStoreType=image/gif&s=63

It's probably changed then

@Midnightas Provide the input for which I got this.

my+mom

That's strange

4:36 PM
No, thats the proper one I got out of looking at it manually

Oooh, I got it
I didn't put in the captcha+ at the start
I found an awesome dictionary api:
http://randomword.setgetgo.com/get.php

4

Write a program that, given any 'n' number of strings of 'm' length, returns 'm' number of 'n'-length strings, with this condition: Every new string should contains the letters at the same index of the others strings For example, the first output string must contain the first letter of all the ...

there's a new IntelliJ

^ why would you ever want to do that though

the one they provide looks way nice

Looks like setgetgo has many APIs ;-;

Yes, it has.
It also has an api to make images to put your captchas on.

ooo'

Returns a JSON object.
The Value returned is a string with a valid JSON item as its sole content.

3s+ response time.
well...

5:02 PM

5:16 PM
0

Your mom, 6 bytes (non-competing) ð::+* Non-competing since the language is newer than the challenge. The name of this language is a idea from mbomb007...

@TùxCräftîñg Good, now do a "Hello, World!", a primality test and a FizzBuzz in it.

;_;

Or, I can do these for you.
Who gets to do it?

-2

Write a JavaScript function to compute and return a person’s score in the game of 21. Your function must have this header function twentyOne(hand) { The parameter hand is an array that contains numbers between 1 and 10, inclusive. Your function must add all the numbers in the array. If the sum ...

@TùxCräftîñg where are your mom's docs?

5:25 PM
in the source code
noncommented obviously

hah

.__________________.

I just committed to your mom

your mom is the next big thing

WTF

5:27 PM
@TùxCräftîñg how to do a number in your mom?

@zʏᴀʙiɴ101 #<base 24 number here>

It seems to be base 24, but how?
Okay.

wow, base 24 ?

yup

In which encoding does Ḍ take only 1 byte? Usually we use UTF-8, in which it takes 3 (and the × takes 2, but it is 1 byte in e.g. ISO8859-1). — o11c Jul 9 at 1:49
Why does everyone ask this every single time

5:35 PM
He probably used a custom code-page

I thought at this point enough people would have seen enough Jelly answers to know

Oh, I thought that was you talking

Oh, no. It was a comment onebox
even better:
I'm pretty sure those aren't bytes in any encoding, since they're not letterlike or very common. — o11c Jul 9 at 1:51
@o11c Did you check out the preemptive link for the word "bytes", viz. meta.codegolf.stackexchange.com/a/9429/43319. — Adám 2 days ago
@Adám So languages can just make up new character sets, that no one can verify easily since they're not part of the standard iconv tables? — o11c 2 days ago
I'm pretty sure the APL codepage is in iconv surely

I can't find a good way to distort a Pil image in Python
for the sharing languages thing

so there are different APL codepages? does that mean I could make a language with multiple codepages (one targetted towards string formatting, one towards math, ect), so that my language can have more symbols, but users just need to pick 1 codepage?

5:43 PM
create a new codepage i guess.

I guess that's really not all that different from creating a different language targetted towards different things

@zʏᴀʙiɴ101 they've been tracking us for ages

If you configured these "new features", you have just allowed Google to spy on your activity on the Internet. Immediately go to myaccount.google.com/activitycontrols and turn off every option.

5:48 PM
> Your Mom is a stack-based golfing language.
ಠ_ಠ

That way you'll be safer on the Internet.

your mom is smokin with features

I tried to picture a mom and a feature standing outside smoking cigarettes
The feature looks like a yellow post-it in my head

This feature looks like a bug to me for some reason
2

5:52 PM
Bugs are red post-its

Then, after you prevented Google from spying on your activity on the Internet, to be actually safe on the Internet, go to myactivity.google.com and delete every item of your activity.
Now that I became fully safe on the Internet, I can safely check the mail and...
Weekly "dare to answer?" questions: Three of them.
16

[This question is a follow up to Compute the runs of a string ] Consider the following definitions taken from The number of runs in a string by W. Rytter. Note that word, string and substring are all roughly synonyms. |w| means the length of string wand w[i] refers to the ith element of string...

5

A dual graph is defined such that for every "face" in a graph G, there is a corresponding vertex in the dual graph, and for every edge on the graph G, there is an edge in the dual graph connecting the vertices corresponding to the two faces on either side of the edge of the original graph. Note t...

2

Create a program that determines, given an input of the path, whether Mario can reach the end, denoted by E, from the start, denoted by S. A path will look something like this: S = E ===== In a path, the various symbols and what they represent are: =: wall/floor/ceiling. Mario cannot walk t...

Retrospective question:
186

So... uh... this is a bit embarrassing. But we don't have a plain "Hello, World!" challenge yet (despite having 35 variants tagged with hello-world, and counting). While this is not the most interesting code golf in the common languages, finding the shortest solution in certain esolangs can be a ...

A total of four questions were featured today from the newsletter.

^^^^ My question :D

Yeah, that's a heavy wall of text.

That website's almost done.. (almost)

6:04 PM
@zʏᴀʙiɴ101 ?

babel src -d lib doesn't work.
schas002:~/workspace (master) $npm install && npm run build > your-mom@1.0.0 build /home/ubuntu/workspace > babel src -d lib sh: 1: babel: not found npm ERR! Linux 4.2.0-c9 npm ERR! argv "/home/ubuntu/.nvm/versions/node/v4.4.5/bin/node" "/home/ubuntu/.nvm/versions/node/v4.4.5/bin/npm" "run" "build" npm ERR! node v4.4.5 npm ERR! npm v2.15.5 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! your-mom@1.0.0 build: babel src -d lib npm ERR! spawn ENOENT ;_; try to do npm install -g babel As you might see, I'm using a free Cloud9 workspace. You have mistakenly installed the babel package, which is a no-op in Babel 6. Babel's CLI commands have been moved from the babel package to the babel-cli package. npm uninstall babel npm install babel-cli See babeljs.io/docs/usage/cli for setup instructions. @TùxCräftîñg It's babel-cli. 6:06 PM ok Also, fix that in your package.json, which might be the reason the install borks at first. Your mom is turning out to be a great name for a language Your mom is packed with abilities > Member for 11 months. Error: Cannot find module '../modules/web.dom.iterable' at Function.Module._resolveFilename (module.js:325:15) at Function.Module._load (module.js:276:25) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object.<anonymous> (/home/ubuntu/workspace/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-template-literals/node_modules/babel-runtime/node_modules/core-js/library/fn/get-iterator.js:1:63) at Module._compile (module.js:409:26) >:| 6:09 PM ._. What to do? @quartata Also, I noticed that Dennis has started linking "bytes" to the custom code page -- for example @quartata why ban the third degree? and why ban any of the snipers (not complaining about banning hunstamn)? what's wrong with danger shield? Why not kunai? @zʏᴀʙiɴ101 normally it's fixed now \o/ my module on node!: 6:13 PM \o/ \o/ Which module? :D \o/ Aaaaaand... I'm unable to star that package (only node package developers can), so I'll star the repo on GitHub. kay :3 @TùxCräftîñg Still borked. 6:19 PM @zʏᴀʙiɴ101 strange... work on my machine "said every programmer ever" can someone try cloning github.com/tuxcrafting/your-mom and run npm install && npm run build ? okay o_o how many modules do you have?? oh. you're using babel. For me, it Cannot find module '../modules/web.dom.iterable'. +1 for knowing your terms @TùxCräftîñg but -0.5 for using switch also, you really should be using let instead of var. C:\Users\Conor O'Brien\Documents\Programming\ym (master) (your-mom@1.0.0) λ node src\yourmom.js hello.ym module.js:442 throw err; ^ Error: Cannot find module 'readline-sync' at Function.Module._resolveFilename (module.js:440:15) at Function.Module._load (module.js:388:25) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (C:\Users\Conor O'Brien\Documents\Programming\ym\src\yourmom.js:3:22) at Module._compile (module.js:541:32) Installed correctly tho iirc readline-sync is a unix thing 6:29 PM schas002:~/workspace (master)$ npm install && npm run build

> your-mom@1.0.0 build /home/ubuntu/workspace
> babel src -d lib

Error: Cannot find module '../modules/web.dom.iterable'
at Function.Module._resolveFilename (module.js:325:15)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/home/ubuntu/workspace/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-template-literals/node_modules/babel-runtime/node_modules/core-js/library/fn/get-iterator.js:1:63)

I've come across something a tad odd, and I can't find relevant stuff online. Why does f work but g doesn't?

is there a way to make a fork from a cloned repo using git?

@CᴏɴᴏʀO'Bʀɪᴇɴ A fork is essentially a server side clone, so git clone /path/to/cloned/repo.

Bernie just endorsed Clinton, let the shitstorm begin

6:35 PM
I'll brb

@BusinessCat want to work on MtG creature cards?

I don't really have the time to work on it

Ah k :(
@BusinessCat If you want to, ping me in the chat Sandbox.

Also, the transpose questions is going to be closed as a duplicate, but I think the old one has a bunch of weird baggage rules, anyone else think we should close the old one as a dupe of the new one?

Mmm, I'm not quite sure that they're duplicates. They're definitely related, but, for example, PowerShell for the old one would look quite a lot different than what I just wrote.

6:42 PM
@TùxCräftîñg your mom is still borked

@Rainbolt I remember you referring to some mother meta post that people should cast all votes however they see fit. Do you remember which one that was?

@FryAmTheEggman if anything is to be closed, it should be the old one.

There was weird baggage on the old one? Like what? Clearly I wasn't paying enough attention.

you can still run src/yourmom.js but it's strange that babel dont work ;_;

When you transpose the lines spaces at the end have to be removed, which seems like it would be harder than most of the rest of the challenge in many languages.

6:45 PM
@TùxCräftîñg I'll add an issue on it.

@CᴏɴᴏʀO'Bʀɪᴇɴ why -0.5 for using switch ?

because you could use a map

Also the raggedness handling, vs always being the correct size.

and using a map would allow for things like "reduce stack over <x>"

TIL Map

6:48 PM

ohhh, he actually asked the meta question himself

TIL [...x] = x.split("")

@MartinEnder relevant chat section (in and around this linked one)

but how to use map as a switch ?

@TùxCräftîñg ^

6:53 PM
You wrote it in JavaScript right?

yes

So you can have an object where the index 'foo' is equal to the function bar
or something along those lines
I'm not super familiar with it

readline-sync is borked yay \o/

So rather than switch { case 'foo': } you just use obj['foo']
I think that's what he's talking about

0

Vim, 37 keystrokes All the other answers are boring, and using boring single-byte builtins. Here's a hacky answer that does the entire thing manually, in something that isn't even a programming language: Gmaqqgg:s/./\0<cr>d<C-v>aGo<esc>pvGgJ@qq@qadgg

Does anyone know how to make a Screencast of vim on windows?

6:58 PM
who wants to see some really bad code I found

@CᴏɴᴏʀO'Bʀɪᴇɴ I do, on the behalf of Quill!

You should submit it on CodeReview :P

function ppr(form) {
abc=eval(form.abc.value);
if (abc<2 || abc%2!=0) {form.result.value="Enter positive even integer.";}
else {
var newvv="";
var i=1;
var k=0
while (i<abc/(2+Math.sqrt(2))) {
if (Math.ceil((abc*abc-2*abc*i)/(2*abc-2*i))-Math.floor((abc*abc-2*abc*i)/(2*abc-2*i))==0) {aa=i+" ";bb=(abc*abc-2*abc*i)/(2*abc-2*i)+" ";cc=Math.sqrt(aa*aa+bb*bb)+"
";k=k+1;}
else {aa="";bb="";cc="";k=k;}
newvv=newvv+aa+bb+cc;
i=i+1;
k=k;}
}
if (newvv!="") {
if (k==1) {sss="";}
if (k>1) {sss="s";}
form.result.value=k+" triple"+sss+":
I did not change a single thing about it.

._.