« first day (1980 days earlier)      last day (2846 days later) » 

3:10 PM
A simple and easy way to troll people using your library:
throw (Exception)null;
 
0
A: Sandbox for Proposed Challenges

wnnmawIs it Really Canada Day Today, July 1st, is Canada day (yay Canada)! Or is it? It seems that the wikipedia page for this day has a lot of Canada related content, but is there another day which is more Canadian? Your task is to write a program or function which takes a date (month and day) as i...

 
user214599
Are New main posts, New Meta Posts and New Sandboxed Posts Bots?
 
@MatthewRoh You it is nailed to the bing.
 
user214599
O"" Poke @Poke
 
user214599
Then what is bing that you mean?
 
3:23 PM
If being exact, New * Posts are feed bots, run on Stack Exchange's chat server and issued by PPCG's mods.
 
user214599
Understood.
 
@MatthewRoh ?
 
:D Got Emoji One!
Is there an emoji cheat sheet with Unicode code points?
 
3:40 PM
@Poke It's very slow.
 
the price of emoji
 
user214599
Facebook has "Poking".
 
Does it still?
I haven't used that feature in years
 
user214599
I think
 
0
Q: What's the second non-repeating character?

TimmyDBased on this question from Code Review Given a non-empty string of printable ASCII characters, output the second non-repeating character. For example, for input DEFD, output F. Input A single string, in any suitable format. Output The second character that doesn't repeat, when reading le...

 
3:53 PM
Why is the memes meta thread locked? Other meta sites have meme threads and they're not locked - they were even encouraged by the mods!
 
@uoɥʇʎPʎzɐɹC In a nutshell, some memes got overused and lead to this chat filling up with noise.
 
hmmmm....
in unrelated stuff, I haven't seen you in a long time since your KOTH challenge
 
user214599
@LeakyNun is a good example of one of the memes
 
3:55 PM
He's referring to my username
 
user214599
Anagram names.
 
what was your original name?
 
@uoɥʇʎPʎzɐɹC Kenny Lau
 
The new name is much better and less personal
more "hacker alias" style
 
0
Q: Is it a good idea to leave heavily downvoted challenges in the Sandbox as signposts?

dorukayhanSandbox posts with several downvotes (such as the one about lolcats) are signs of what the community doesn't like. Should we keep them to remind users about what not to "ask"?

 
user214599
3:57 PM
/""""\
|PCG|
\___/
""|/
 
I had an idea:
chatroom just for PPCG users' bots
like markov chaining conversationalist bots
 
/"""\
|PCG|
\___/
  |/
 
user214599
I think they broke the conversation
 
@MartinEnder Now that you've posted your answer, to what extent can I golf my answer?
 
@uoɥʇʎPʎzɐɹC There is a room for PPCG bots:

  Beep Boop Bingus Bin

VITRIFICATION ORDER (1947) CONDEMNED DO NOT ENTER
 
I mean a sandbox where bots actually respond to each other
 
@LeakyNun use (?<!\1.+), I guess. the only other improvement I can think of is turning it into my answer ;)
 
@uoɥʇʎPʎzɐɹC Oh, my Spacewar! KotH? Yeah, I haven't been doing much. I've been working on a new programming language (not a golfing one) though, so once I get to a certain point with that, I'll start answering challenges with it.
 
like a soap opera instead of a testing area
@El'endiaStarman Seems interesting. Name? If it's not a golfing one... then why are you going to answer challenges with it
you have a lot of hobbies
 
4:01 PM
@uoɥʇʎPʎzɐɹC Pytek, and because of those sweet, sweet rep points...
 
@MartinEnder is there a meta post about these?
 
@El'eindia Rep points are sweet. That's the only reason I answer questions on SO
 
@LeakyNun what are "these"?
 
@MartinEnder these situations
 
not one I can remember
 
4:03 PM
@LeakyNun what are "these situations"
 
(if I had arrived at my answer by golfing yours, I would have posted it in a comment, but I had actually already finished it and was just waiting for Timmy to clarify the challenge before posting it)
 
@uoɥʇʎPʎzɐɹC where two people posted answers in the same language
@MartinEnder I know
 
heading out for a bit, feel free to bring this up on meta
 
user214599
Should someone make a Code golf question about making anagram usernames
 
this has definitely happened before where someone golfed a worse solution and gradually converged to a better solution because they were using the same general approach.
 
4:26 PM
@MartinEnder Can you clean up comments on that, now that I've clarified the challenge?
 
@MartinEnder Are Mathematica submissions allowed to take a list of characters representing a string for input?
 
I'm pretty sure char arrays are allowed as string input
 
@LegionMammal978 What is the difference? For many languages this is the very same.
 
For a language like Java there is a difference
 
@flawr Well, to convert a string to a char list in Mathematica, you need Characters@(string)...
And all functions operating on strings use StringFunctionName
And then ""<>(array) is needed to convert back to a string
 
4:39 PM
Can we input "01234" for Python?
Is there a 2-byte penalty for the quotes?
 
@LegionMammal978 I think there's a consensus on meta that actually allows this, but I've never used it because it seems like a really ugly hack.
15
A: What's a string?

Level River StI agree with the wikipedia definition. It's a sequence of characters. As the name suggests, it's one-dimensional. I program a lot in C and sometimes in Pascal, which both implement strings in different ways. C doesn't have a string type, only char[] with a string by convention being terminated b...

@TimmyD done
 
@MartinEnder I've seen it used before in Java golfs since char[] is the same length as String and accessing a character in it is shorter
x[n] vs x.charAt(n)
 
right, but Java has a character type
in Mathematica it would actually be a list of singleton strings
 
Oh.
So Mathematica combined the worst of two worlds then? :P
Strings that can't be used like lists and no char type
 
yeah exactly
 
4:47 PM
heh
 
working with strings directly is near impossible for most nontrivial tasks, so you always need Characters@ (to split it into a list of singleton strings) and ""<> at the end to join things back together
 
Blergh.
 
oh right, that's what LegionMammal said above
the really stupid thing is that they're gradually adding String* functions which do essentially the same as the corresponding * function, but on strings except on lists
it would really be better to make most things treat strings at lists instead
@TimmyD btw, I like your challenge, but I feel that the case insensitivity is unnecessary fluff.
4
 
5:39 PM
∧∧ Shouldn't do that :(
 
@MartinEnder Really? I had thought that case insensitive was our default.
 
@TimmyD It isn't.
 
Yeah, case sensitivity is default
 
@TimmyD It's a bit of a dealbreaker for esolangs, which have to implement it manually based on character codes.
 
5:47 PM
Huh. I did some searches (e.g., "sensitive is:question") and the like, and it seemed like the overwhelming majority were case-insensitive.
 
yes, unfortunately
 
Well, today I learned.
 
my point is, it has nothing to do with the core of your challenge, and while some languages can get the case insensitivity for a byte or two, languages that don't have a concept of letters might spend the majority of their code on the case insensitivity when the actual task is actually not too bad
so whether it's common practice or not, it doesn't improve the challenge
 
Ah, I gotcha. That makes sense.
 
6:01 PM
tfw a comment has twice the upvotes as an answer -.-
 
Done and done.
 
How to make an RSS feed for a Stack Exchange site, which contains questions higher than a certain score, but sorted by date?
 
Another question: What OAuth domain should I choose for command line Stack Apps?
 
안녕
 
6:15 PM
@TùxCräftîñg Nihao!
 
8--D.com <- found this by total chance
 
That looks Korean to me, but it's hard to tell from just two characters (without actually knowing any Asian languages).
 
that... is so wrong
 
it's korean
 
it is Korean
 
6:16 PM
ninja'd
 
<_< >_> ...
Yes, that is Korean.
 
Can confirm, it is indeed Korean
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Oof. Linky?
 
it's one of my own, so I'd rather not :P
 
in what language is this: mholweni
 
6:19 PM
Not sure if serious...
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Oh, ok.
 
Oh that's nice. The login button at the German microsoft site 404s...
 
@CᴏɴᴏʀO'Bʀɪᴇɴ no
 
6:20 PM
darn
 
i have picked a random language in google translate and this language is... Xhosa !
 
0
Q: Case Sensitive Strings

TimmyDSince this isn't explicitly codified anywhere, and was sparked by discussion surrounding my recent challenge, I figured I'd bring it up here for consensus before modifying the tag. Related: string What's a string? What are string literals? Things to avoid when writing challenges: Adding unnece...

 
hey, I was close
 
9 mins ago, by zʏᴀʙiɴ101
Another question: What OAuth domain should I choose for command line Stack Apps?
The app registration form on Stack Apps requires one >_>
 
What he said. v
 
6:23 PM
Sometimes when no one answers it just means that no one knows the answer, and everyone posting "I don't know" doesn't exactly contribute to the conversation.
 
Alright then, the only solution is to create an OAuth domain myself. D:
 
@MartinEnder Martin, can you test something for me (granted you're in DE right now)?
 
or ask on the appropriate SE site
 
@mınxomaτ I am
 
@NewMetaPosts There should also be two more answers for "No, strings default to case-insensitive" and "Whether strings are case-sensitive must be defined in the question".
 
6:26 PM
@MartinEnder Can you go to microsoft.com and click on "Anmelden"? This page 404s for me.
 
But let the community conclude.
 
@zʏᴀʙiɴ101 As long as no one wants to support those options, there's no need to post them.
If someone does support those options they will post them.
Don't post opinions that aren't your own just so people can vote on them.
3
@mınxomaτ haha, it really does :D
 
What the fuck.
So basically, all Germans can't access their MS account?
 
Anyone knows, how I can create a new namespace package in visual studio?
 
@mınxomaτ possibly? I'm not really using an MS account
 
6:28 PM
@mınxomaτ Don't worry, I experience the same
 
@MartinEnder Can't even change the language (selection is at the bottom of the page).
 
Same with english people
 
@Bálint I worry, because I have to use the login right now.
 
american and proud
 
404 when i try to logout
even in france
 
6:30 PM
How can you screw up this bad. Even for MS that's a new low.
 
the install bing and msn part
 
@TùxCräftîñg That's now included in every MS installer. Office, Skype itself etc.
 
i can access outlook on web
 
because people wouldn't use those things voluntarily so they have to be tricked into it
 
Also, the horror might come if both options are uncheckable.
 
6:33 PM
I need to reset my 2FA...
 
very like the softonic-like installers
 
@mınxomaτ You lost your Windows Phone? o_O
 
Why would I have a windows phone.
 
why would someone steal a windows phone?
 
I'm changing (android) phones right now, and the old one has the 2FA code for my MS account.
 
6:34 PM
@Downgoat could you come to zyabinVI beta room?
 
To set up my new phone, I need to reconnect to the account.
 
I'm logging into Gitter right now because I lost my previous login. o_o
 
var del = document.querySelectorAll("#BingAsDefaultSearchEngine,#MsnAsDefaultHomePage");
for(var i = 0; i < del.length; i++){
  del[i].checked = false;
}
I fixed everything
 
@MartinEnder Ahem.
@mınxomaτ Ahem.
 
6:36 PM
You use Powershell, your arguments are invalid.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ \o/
 
Nope, ppcg.lol won't onebox
 
No surprise there.
 
@TimmyD I was wondering where you were.
 
Oh look, Gitter suggests @MartinEnder's Stack Cats' room and Cheddar's room.
 
6:37 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ ? Oh, because I changed my icon?
 
@TimmyD no, because people were MS hating :P
 
Occasionally, I still post answers on Evolution of OEIS
 
Looking into these...
Alright, joined Stack Cats' room :3
Now Cheddar's room :D
 
@mınxomaτ Oh. Okay. :(
 
Does this perl code use pre-defined variables?
0
A: Reverse and subtract

mikPerl 5, 30 bytes for$x(1..$_){$_=abs$_-reverse} Input and output in $_. May be run using: perl -ple '...' so that each line of stdin produces one line of stdout. It iterates n=|n-rev(n)| n times, so output is 0 if there is no loop, >0 otherwise. Dennis already proved this is enough.

 
6:44 PM
Mmm, kinda. The $_ variable in Perl is really similar to the $_ variable in PowerShell (that was the inspiration for the PowerShell team), and I think only works in a REPL style environment.
 
0
A: Sandbox for Proposed Challenges

R. KapType It In! codegolfkeyboard Given the input of a sequence of normal keyboard keys and keyboard actions, output the product when all the actions are processed based on an English QWERTY keyboard. Rules The input will always be a sequence of the normal keyboard keys (i.e. those whose character...

 
Ugh, PowerShell, why you gotta be so PowerShell-y ...
Dennis
 
@EʀɪᴋᴛʜᴇGᴏʟғᴇʀ: You didn't have to delete your messages.
 
@Dennis Support for INTERCALL by TùxCräftîñg, please?
@El'endiaStarman U DIDNT GET TEH WOLE .!
 
Any feedback?
0
A: Sandbox for Proposed Challenges

R. KapType It In! codegolfkeyboard Given the input of a sequence of normal keyboard keys and keyboard actions, output the product when all the actions are processed based on an English QWERTY keyboard. Rules The input will always be a sequence of the normal keyboard keys (i.e. those whose character...

 
6:51 PM
Great. Now it looks like I'm blaming Dennis for my PowerShell woes...
 
lol
 
why isn't a synonym of ?
 
They probably just get manually changed over because we don't have a terribly high volume of questions
 
@muddyfish No
$_ is input with -p or -n
 
Ok so its a good answer then (not non-competitive)
 
7:00 PM
Yeah, it's fine.
 
I though $_ looked a bit REPL to be from my non-knowledge of perl
 
_ is the special variable, when no arguments are provided to a monadic function it operates on that (essentially, a little more complicated than that)
The <> iterator iterates over all files specified on the command line (or STDIN if there are none) and sets $_ to their contents
-p essentially wraps your code in while(<>) { ... print $_ }
 
@R.Kap I get the difference between what shift and caps do, I'm just saying that I think it would be more interesting and true to real life to not have shift as a toggle. That's just my two cents.
 
Could you guys upvote this meta post on aviation?
5
Q: Voting arrows look selected when they're not

UndoI just went to a question I had already voted on, and wasn't sure which way I had voted: Intuitively, it seems that the brighter arrow (down) would be the direction I voted - but I actually upvoted the post. Compare to a post I haven't voted on: The arrows feel too bright overall; distrac...

 
oohhhh, they got a design
 
7:06 PM
It's nice but the arrows are horrible
 
@Liam All right, although I don't really see how that's more true to real life. I mean, I always use Shift to access all special characters whereas usually use Caps Lock when we have to enter many uppercase letters in a row without having alternate characters output when keys other than the alphabet keys are pressed.
 
Oooh, nice design. (Other than the arrows.)
 
one site where you can up and down vote at the same time without doing a thing
geobits and upgoat have mixed reactions
 
@Optimizer Dangit, I was literally just typing something like that.
And then I continued reading the chat before hitting enter.
 
microsoft site is always broken...
 
7:15 PM
soft as velvet borked as chat search
 
0
Q: Print MD5 hash of input

r3pearI've got an easy challenge for you all. You need to get the MD5 hash of the input, and print it out. For PHP, the input is $_POST['Input']. The less byte count wins. Go!

 
Surely that's a dupe
 
12
Q: Cryptographic quine variant

Petr PudlákCreate a program that prints the MD5 sum of its source in the form: MD5 sum of my source is: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx No cheating - you can't just read the source file and compute its sum. The program must not read any external information. Of course you can use a MD5 library availabl...

 
I don't consider that a dupe - I think the old question should be a dupe of this if the new gets cleaned up - the quine is just extra work for no real gain
 
I wouldn't say it's a dupe of the quine one, since the input is variable.
 
7:26 PM
^
It's not a dupe, but clearly unclear.
 
Today was the first day of my programming summer job! …Here is a photo I took:
It’s a goofy relatively-tiny monitor running Windows XP and Microsoft Word 2000.
I smiled
 
then cried
2
 
awww
How cute
 
0
A: Sandbox for Proposed Challenges

PhiNotPiDomain Name Appraisal code-challenge Domain name trading is big business. One of the most useful tools for domain name trading is an automatic appraisal tool, so that you can easily estimate how much a given domain is worth. Unfortunately, many automatic appraisal services require a membershi...

 
Granted, it’s “not final”. But wow
 
7:29 PM
@NewMainPosts Aaaand the OP just blew it away. :-/
 
^^^ get hyped for my next challenge!
 
HYPPPPPPPPPPPPPPPPEEEEEE
 
@Lynn What's Windows XP? /s
 
My main concern with it is the exact scoring method. The question is: if your program guesses $X and the correct value is $Y, how many points should you get? Right now I'm using abs(log(X) - log(Y)).
 
Any more feedback?
1
A: Sandbox for Proposed Challenges

R. KapType It In! code-golfstring Given the input of a sequence of normal keyboard keys and keyboard actions, output the product when all the actions are processed based on an English QWERTY keyboard. Rules The input will always be a sequence of the normal keyboard keys (i.e. those whose character ...

Hello @flawr
 
7:35 PM
Vim: 0 bytes?
 
What do you think of the proposed challenge?
 
@R.Kap ^^
 
That would be a valid answer right?
 
@LegionMammal978 0 bytes in VIM?
Really?
 
It's a text editor right?
 
7:39 PM
@muddyfish Oh, right. So I guess it would be trivial for you then.
@muddyfish But can VIM really process <SHFT> as shift being pressed down and only modifying the next character?
 
I think banning text editors might be sensible/not hated upon for this challenge
@R.Kap I thought you meant the literal shift key like in single-char input mode
 
@muddyfish Can I ban text editors? Is that allowed?
 
I don't really get it, are the keyboard inputs given as a string??
 
@muddyfish No, you must process an input string consisting of keypresses, which you must process yourself.
 
You can ban any language but it's only well received as long as you have a decent reason for it
 
7:41 PM
@flawr Yes. I'll clarify that.
 
Also perhaps post an image of your desired keyboard layout, as they are quite different all over the globe.
 
Shift-3 on my keyboard gives £
 
@flawr I did say based on a standard American-English QWERTY keyboard, but if that is not clear enough, I will add an image of what I am talking about.
 
rather than whatever americans do
 
@R.Kap Most non-americans here are probably not terribly familiar with the details.
 
7:44 PM
@muddyfish Well, on my keyboard, Shift-3 results in the output #
 
Apart from the first 6 letters of the top charater row=)
 
@flawr All right then, I'll add an image of what I mean.
 
                        +-------------------------------------+
                        |                                     |   +---------------------+
                        |                                     |   |                     |
                        |                                     |   |  Stop running       |
                        |                                     |   |      Windows XP???  |
                        |                                     |   |                     |
 
@LegionMammal978 Having fun with the ASCII flowchart tool? :P
 
Wait, when did Deep Web get closed? @Quill
It looked like it was doing OK
 
8:03 PM
Is it possible to create an artifical neural network with string as input and number as output?
 
@zʏᴀʙiɴ101 Just convert your string to a vector of numbers
 
Good idea.
 
8:18 PM
@flawr What do you think now?
1
A: Sandbox for Proposed Challenges

R. KapType It In! code-golfstring Given the input of a sequence of normal keyboard keys and keyboard actions, output the product when all the actions are processed based on the following keyboard, where the actual symbol of each key is shown on the bottom, and the result of shift being held down while...

Any other feedback anyone?
Hello @BaldBantha
 
salut
now i put my hi messages in another language than english
 
(removed)
(devomer)
 
(pǝʌoɯǝɹ)
 
(®´µø√´∂)
 
(supprimé)
 
8:31 PM
get ready for room freeze
 
1
A: Sandbox for Proposed Challenges

R. KapType It In! code-golfstring Given the input of a sequence of normal keyboard keys and keyboard actions, output the product when all the actions are processed based on the following keyboard: +-------------------------------------------------------+ | ~ | ! | @ | # | $ | % | ^ | & | * | ( | ) | ...

@Optimizer Ok, I'm now ready.
 
(제거)
 
(1011110010)
 
Unprintable unicode character...
 
8:35 PM
(cmVtb3ZlZA==)
 
(eliminado)
 
@TùxCräftîñg Actually, that is the binary representation of the sum of the unicode point values of each character in "removed".
 
@R.Kap ok
 
And "cmVtb3ZlZA==" is the base64 representation
 
@R.Kap i know
(kususwa)
 
8:37 PM
(1101100110000101110110011000011011011000101010001101100110001000110110001011000‌​0)
 
...
Alright, enough with the noise.
 
@LegionMammal978 ...
 
First one to decode it gets a cookie
 
@LegionMammal978 Maybe some sort of hint?... There are so many possible ways to decode it...
 
@R.Kap It's easier than you'd first expect ;)
 
8:43 PM
@LegionMammal978 so splitting the binary string in 8-bit parts and getting the ascii value of the inverted form of each byte is wrong ?
 
@TùxCräftîñg Not giving any more hints ;)
 
zero width space ? hum...
There is a wero width nonjoiner and a zero width space before the last zero
 
@TùxCräftîñg Sorry, that must be unintentional, ignore it
It's not even a hint
 
Why am I getting '\u200b0' from it?...
 
its a zero-width space and the last 0
 
8:50 PM
Lots of unprintable when the decimal value of each byte is converted into it's corresponding character. So that's not the way to go.
 
yup, i tried to xor with 255 and i get printable ascii character
but not the message
 
@R.Kap Why, I've been winking at you ;)
@TùxCräftîñg (and you)
 
at least, is it reversible ?
 
@flawr btw i know how to do the thing with a^b^c mod n
 
@TùxCräftîñg Yes
Although I can say that the message doesn't contain a T ;)
 
8:56 PM
@Maltysen Yeah?
 
@flawr there's a trick for when you have a^b mod n for large b
 
What trick are you referring to?
 
first of all, you can write b as k(b//k) + b%k for all k
 
@Maltysen a^phi(b) mod n?
 
@LegionMammal978 yeah
 
8:58 PM
What is phi in this context?
 
and then a^b^c becomes a ^(b^c mod phi(n)) % n
@flawr totient
if n is prime its n-1
 
@flawr Ok, you are back. What do you think of the edits I made to my proposed challenge now?
 
this all comes from fermat's little theorem
 

« first day (1980 days earlier)      last day (2846 days later) »