« first day (1687 days earlier)      last day (3157 days later) » 

12:02 AM
Aha. It's the swaps that are really hard in Haskell, I guess...
I filter over all n! permutations, looking for ones that differ from the original list in 2 places.
OK, 180 isn't so bad.
I'm so happy about the -10 trick.
 
12:38 AM
@Mauris You should post that so I'll be beating another language besides Java ;)
0
A: Is this number a prime?

feersumSnails, 122 Input should be given in unary. The digits may be any mix of characters except newlines. ^ ..~|!(.2+~).!~!{{t.l=.r=.}+!{t.!.!~!{{r!~u~`+(d!~!.r~)+d~,.r.=.(l!~u~)+(d!~l~)+d~,.l.},l=(.!.)(r!~u~)+(d!~!.r~)+d~,.r.!. In this 2D pattern matching language, the program state consists sole...

 
1:05 AM
I can't seem to find anything about what qualities a programming language has to have for it to be an acceptable language on meta.
Can any of you direct me to something?
 
17
Q: What are programming languages?

Ingo BürkOften, answers to questions asking for "programs" or talking about "programming languages" utilize things like sed, awk, … in order to get around having to write an actual shell script. Therefore, a question comes to my mind: What qualifies as a programming language? Sure, ultimately the OP ca...

 
Thanks!
 
@xnor I was actually hoping you'd post... :P
 
1:29 AM
nvm
Nice, I got the 41st "Outspoken" badge :)
 
1:40 AM
Nice work! :)
 
Thanks! It's you guys who did the starring ;)
 
Is the What are programming languages meta thread still considered up-to-date?
 
Hm. It might be worth revisiting.
 
I'm not really a fan of the current answer of "it's a programming language iff it can add two numbers and check primes"
 
Same here.
 
1:46 AM
I think it would be nice to define it in terms of a class of problems.
Since that definition, several "HQ9+ with Addition and Primes" languages have appeared.
 
Unfortunately so.
 
0
A: Sandbox for Proposed Challenges

EvilJSI would like to propose Raytracer to write with modified Cornell Box as in the picture. Width and height of the output is 1024. Additional requirement is making the output to look like painting. Scoring is pure code-golf rule to the shortest code, with two exceptions: If language provides ready...

 
@AlexA. ಠ_ಠ
 
Yes?
How can I help you?
 
Those stealth pings are driving me crazy. Can you a) stop them all or b) explain how to use one?
 
1:51 AM
No.
 
ಠ_ಠ
 
yಠlಠ
 
@PhiNotPi Your definition still doesn't prevent "CJam that acts like HQ9+ if the program is one character long." It's really a pointless endeavor.
 
Hmph.
 
Not quite
 
1:59 AM
@AlexA. Hello. I'd try but I'm on a phone
 
Hello. How are you?
 
Sleepy. Thanks to primes keeping me up.
 
How about this...?
 
@Sp3000 :D
@ETHproductions Hey, you got it!
But if you edit a message containing a stealth ping, the edit history is public and markdown isn't rendered, so you can see how the ping is being made.
 
It's like we're a bunch of maths campers playing Schnapps or something
 
2:04 AM
Darn, sorry
 
The only Schnapps I know is alcohol. Not the kind of math camp one might expect. :P
 
Going to bed, cya tomorrow
 
Alright, have a good night!
 
You have joined the dark side.
 
It's nice here.
 
2:07 AM
@ETHproductions I can see your linked comma. Psshh, sloppy form. :P Night!
 
I remember when I thought the best approach was to link punctuation.
Those were simpler times.
 
I'm going to give it a shot myself when I get back on a laptop :D
 
Do you not know how to do it?
 
Yet Another Evil Idea™: Auto-stealth ping userscript. Pings a random user in the room with every message you send.
 
I have an idea how it might be done, but I don't think it's as easy to do on a phone
 
2:09 AM
@Doorknob :D
@Sp3000 Perhaps.
How does one write userscripts?
 
@AlexA. magic
and JavaScript
 
Even better, pings two random users.
 
Better yet, pick a random chat room and ping every user in it.
 
Then, the pings do not show up when you hover over the message.
 
People can still check the message history to find out which users you pinged. :P
 
2:12 AM
Only if you edit it.
Right?
 
No, you can view history on any message.
 
It just takes some extra clicks to find.
 
http://chat.stackexchange.com/messages/{id}/history
 
:(
 
Or you could just hit "edit" on the message, with super-♦-powers. :P
 
2:14 AM
Is it possible to view "deleted" messages that way?
 
Yes
 
No
 
No
 
(not unless you have a diamond)
 
^
 
2:18 AM
Diamonds are a total monopoly on this site.
 
Diamonds have the same abilities on all sites. In fact someone with a diamond on any SE site has the same abilities in all chat rooms.
 
Well, I guess my "diamonds are a monopoly" joke got overlooked.
 
I don't get it :|
 
Because, in real-life, the diamond industry is a monopoly.
Maybe closer to an oligopoly today.
 
Oh, didn't know.
DeBoers or something, right?
 
2:25 AM
Historically, it has been mainly De Beers.
 
Is that still the case?
 
To some extent, yes. Diamonds don't have much resale value.
 
That's surprising
I figured they'd depreciate in value but not all that significantly
 
They don't depreciate, it's that they aren't really worth that much to begin with.
 
Then why are they crazy expensive? Just artificial price inflation?
 
2:31 AM
Yes
 
:/
 
You'd be lucky to resell a diamond for a third of what you paid for it.
 
That also surprises me because I would think that there would be a market for secondhand diamonds given the price of buying them "new."
 
And if you've ever seen advertisements for "Chocolate Diamonds" those are cheap-as-dirt to produce and are actually worthless as gems.
 
I haven't. What are they made of?
 
2:35 AM
Speaking of ads, I think my iPhone just got adware. Fun times.
 
That can happen?
 
They are low-grade diamonds.
 
As low as the ones used for industrial saws and whatnot?
 
basically
 
Apparently - some pages I'm loading are having JS hijacked into them
 
2:38 AM
Do you use the Safari app for browsing?
@Phi Brutal.
 
Yeah I do - I might try Chrome though
 
Instead of "basically" I should have said "literally" because a lot of them could have gone to either purpose.
 
@Sp3000 If you're not morally opposed to AdBlock, there's an AdBlock iPhone browser app.
@PhiNotPi That's shitty. And I'm sure they're charging more for "chocolate diamonds" as some kind of luxury item. :/
 
Chrome looks okay
 
2:44 AM
u_u
 
I thought the diamonds used for saw blades and stuff were probably artificial?
 
No, they're just the low grade ones
Diamond is exceptionally hard so actual diamond works well for industrial cutting applications.
 
It's actually not mutually exclusive, a giant chunk of industrial diamonds are artificial, but most natural diamonds are used for industry too.
 
@AlexA. From wikipedia: "Synthetic diamond is widely used in abrasives, in cutting and polishing tools and in heat sinks."
 
Interesting
What are synthetic diamonds made of?
 
2:47 AM
Diamond
chemically identical
 
>.>
 
Carbon. Like the real ones.
 
They just didn't squeeze it as hard as volcanoes or whatever do?
 
That's actually one method in use.
 
What?
Mimicing geologic processes by squeezing carbon pretty hard?
 
2:49 AM
 
Oh, so yes
 
But I think a rising method uses a chemical disposition process with carbon vapor.
90% of all industrial diamonds are synthetic, but 80% of natural diamonds are industrial.
 
So the 10% share of natural diamonds in industry consistutes 80% of the total supply of natural diamonds?
 
yes
 
Hm.
 
2:54 AM
about 130,000,000 carats of diamond are mined each year
26,000 kg
 
0
Q: Draw an SQL Output Table

HiGuyI'm sure most of us have seen SQL results in a terminal, all neatly formatted into rows and columns. If you haven't, here's an example: +----------+-----------+----------------+ | column 1 | column 2 | column 3 | +----------+-----------+----------------+ | data | more data | even more...

 
Carats are a measure of weight, right?
 
About 100,000 kg of diamond are synthesized each year
 
:O
 
1 carat should be about 200 milligrams
There are many gems much rarer than diamond which are cheaper.
 
2:58 AM
Really? What are some examples?
(Btw Phi, you're really knowledgeable about really random things, like flags and diamonds.)
 
Some examples that I've found, like tanzanite, tend so sell for similar prices despite being much rarer.
Tanzanite being found only in one location on Earth in Tanzania.
Apparently, emeralds are much rarer than diamonds, like in minecraft.
 
I hadn't even heard of Tanzanite. That's nuts. I didn't realize that emeralds were actually rarer than diamonds (IRL). That surprises me.
 
Most of diamond's price inflation is due to intentionally limiting supply and raising prices and strong marketing.
 
3:13 AM
Yeah
 
The phrase "diamonds are forever" was a De Beer's marketing slogan.
 
Did it come before or after the James Bond movie of the same name?
(I assume before)
 
before, by decades
 
The date I found for the slogan was 1947
 
3:18 AM
Oh, yeah, that's way before.
 
Moral of this story: don't waste your money on rocks.
 
Wasn't planning on it. ;)
 
Which reminds me... I actually had a pretty decent rock collection at one point.
I assume I technically still have it lying around somewhere.
One of my "prized pieces" was a piece of fluorite, octohedral cut, with pyrite inside of it.
 
Found in the wild?
The only rocks I have currently are a couple from the Smithsonian in Washington, DC.
 
No, not in the wild, it was actually "cut"
Most of my "wild" stuff was just pieces of granite that looked like states.
 
3:33 AM
:)
Where did you get the fluorite?
 
Thus, making it the only real "gem" in my collection.
A random website, which apparently still exists.
 
That's really neat!
Lol at the website though, looks like it was made in the 90s.
 
IIRC, it was pretty cheap.
 
does anyone understand this challenge?
1
Q: Generate ordered binary combinations without repetitions

fpg1503Challenge Write the shortest program that receives two signed integers n and i and for each i between 1 and 2^n - 1 returns the next ordered permutation based on the binary representation of the number. There is no specific order of the combinations but the number of 1s in the binary representa...

 
The whole "heavily included flourite" thing means it's literally worthless in the serious gemstone market. Nobody would want to put it on a ring.
But, I think it's cool because it's two minerals inside of each other.
 
3:37 AM
@orlp I thought I did but I reread it and I no longer think I do. @Doorknob does.
@PhiNotPi That is cool! Personal value is better than having it on a ring anyway.
 
0
Q: How to extract top 100 news titles from a news site like http://www.yourstory.com using Jsoup?

user309358While I execute the following code it shows only 18 titles: package Hellotars; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; /** * * @author SudipBhandari */r public class pull { public static void main(String[] a...

 
@orlp Yeah, it's just "take the ith combination of n 0s or 1s as a decimal number, sorted by number of 1's in the binary representation"
 
@Doorknob that's not well-defined though
 
Why not?
 
10 and 01 both have one 1
 
3:42 AM
Yes. There are multiple ways to sort.
 
@Doorknob thus there is not one answer
 
> There is no specific order of the combinations...
@orlp so?
 
oh I see now
let me transcribe the question: "Generate any enumeration E of the integers 1 < i < 2^n-1 such that popcount(E(n)) <= popcount(E(n+1))"
 
@AlexA. I think I'm going to spend some time browsing that gem site.
 
Nice :)
 
3:49 AM
It appears to be receiving very little traffic, so prices are probably lower than in the past.
Like how most of the fluorite samples are like $3 now.
 
It's not terribly surprising that it's been receiving very little traffic; it looks like it was made in the 90s and hasn't been updated since. (Based on a superficial first glance.)
 
Want to see a really Web1.0 site?
Also, I would also probably not recommend buying any gem worth more than about $10 from them.
> Copyright © 1995-2015 Gem Hut™. All rights reserved.
Can confirm, 90s website.
 
@PhiNotPi I kind of half expected to see "geocities" in the URL once I saw that site. :P
 
I just like browsing their images.
We should bring back geocities.
 
geocities.stackexchange.com
 
4:03 AM
Every thread is like its own geocities page.
 
I think this should definitely go on Area 51.
 
Hey, what do you think of the programming language I made today? dinod123.neocities.org/interpreter.html
 
Optimizer wants to bring back geocities, right?
@DanTheMan neocities?
 
^^
 
@PhiNotPi Yep
 
4:06 AM
Eerily relevant to the conversation
 
The color-changing title text is physically painful to look at. Seems authentic.
 
Sorry.
I hate it too
 
Color changing title text?
 
But it was fun to make.
 
Ah, my eyes.
 
4:07 AM
Wait, what browser are you using?
 
I don't see it D:
 
It may not work on Chrome.
 
I'm using Safari
 
I'm in Chrome.
 
Oh, huh
Ignore me then
 
4:07 AM
@DanTheMan It does. ಠ_ಠ
 
Hahaha
 
On the topic of the language itself, I haven't added any calculation or input, but I think it's okay for now.
 
@AlexA. That's how you create a user script and get rid of flashy banners:
3
A: manual anti ads extension for google chrome (or Firefox)

DennisYou can actually achieve this with AdBlock: To avoid it from blocking anything by default, uncheck all items in the Filter lists. To block a specific ad, right-click it and choose AdBlock -> Block this ad. This would have the advantage of remembering your actions. If you don't want to use Ad...

 
Also, the interpreter interprets the program character by character, which is very inefficient
 
@Dennis I use AdBlock; could that be why I don't see the flashing text that everyone is seeing?
 
4:11 AM
I use AdBlock too.
 
@DanTheMan have you heard of Retina? (you probably have)
 
Safari must know ahead of time what text will be obnoxious and automatically block it. :P
 
@PhiNotPi Yeah
I'm not very familiar with it though
 
Retina is a programming language that based almost entirely on regexes. I'm mentioning it because your language is basically a series of substitution regexes at this point.
 
@AlexA. It's not an image, it's a JS animation. Take a look at your console. It should either say that a resource was blocked or show some error.
(Safari does have a console, I assume.)
 
4:14 AM
On the other hand, you said you literally made it today so that's still pretty decent progress.
 
@PhiNotPi Yeah, I came up with the idea yesterday and made it today
@Dennis It's actually a CSS animation, not JS
 
Oh, yeah, now I found it.
 
@Dennis I paused AdBlock and checked the console, no sign of anything.
 
Safari doesn't support that evil CSS then.
 
Nice B)
 
4:17 AM
I was wanting to use a Cubehelix rainbow instead of an HSL one, but I couldn't find a way to convert into RGB or HSL
 
h1 {
  text-align: center;
  font-size: 30pt;
  animation-name: rainbow;
  animation-duration: 5s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}
ಠ_ಠ
 
@AlexA. I just remembered another rock-story. I was on a trip to New York when I visited some toy shop, I think the FAO Schwarz.
 
@AlexA. I actually have the file open, you could've just asked.
 
And I started to browse through their collection of fossils/meteorites.
 
@DanTheMan I was already looking at the page source.
 
4:18 AM
@keyframes rainbow{
0% {color: hsl(0 , 100%, 50%);}
10% {color: hsl(36 , 100%, 50%);}
20% {color: hsl(72 , 100%, 50%);}
30% {color: hsl(108, 100%, 50%);}
40% {color: hsl(144, 100%, 50%);}
50% {color: hsl(180, 100%, 50%);}
60% {color: hsl(216, 100%, 50%);}
70% {color: hsl(252, 100%, 50%);}
80% {color: hsl(288, 100%, 50%);}
90% {color: hsl(324, 100%, 50%);}
100% {color: hsl(360, 100%, 50%);}
}
The animation itself
I hate it.
But it isn't like it wildly changes sizes or anything
 
So, I had a giant pile of rocks, in individual display cases in my hand, when I looked at the prices tags on the back, and I had an internal "oh shi..." moment when I realized I had multiple hundreds of dollars of rocks in my hands.
 
Whoa!!
 
And so I quickly but carefully put them all back on the shelf where they belonged.
 
:P
 
@PhiNotPi That story rocks!
sorry for any internal bleeding that pun may have caused
 
4:23 AM
ಠ_ಠ
^ I have only that to say
 
I need to sleep, so goodbye.
 
Okay, goodnight!
 
@Calvin'sHobbies nice work!
 
4:42 AM
@AlexA. Apparently 1 can get a 0.7 mm wide diamond for $4.
 
0.7mm is incredibly small.
That's like mechanical pencil lead.
 
It's ridiculously small.
I find it funny, like walking into a jewelry store and asking "how much diamond can $4 get me?" and them actually giving a response.
 
"How much diamond can $4 get me?" "About 0.7mm."
 
So the mod diamond costs around 8$ ?
 
4:53 AM
Stack Exchange has a monopoly on the mod diamond market, so they artificially raise the prices. I had to pay $9 for mine.
 
dang!
 
Yeah, I had to move into a hut. But at least I have a diamond!
 
Your nest is not in a hut? I'd say that's a good upgrade from a tree!
 
Nah, it was a really nice tree.
 
5:11 AM
@AlexA. I was gone for a couple of hours, and I'm totally confused by this message ;-;
 
@Mauris What are you confused about? I was congratulating ETH.
 
I somehow got pinged by it
 
That's mysterious.
 
Is it?
Is It @AlexA.?
Is it really a mystery?
 
I'd say so.
 
5:46 AM
0
Q: How do I delete "CodeGolf" from my list of questions when I go to URL stackexchange.com

user1717828I've tried clicking "My Filter" and editing Code Golf out, but it still shows up. I find the questions from this particular community so bad that it actually pollutes my feed enough for me to avoid all of Stack Exchange (think when Reddit had /r/politics and /r/atheism as defaults). Anyway, can...

We're loved everywhere.
 
:/
 
rude
 
@AlexA. It's not too hard to figure out the source of the ping. Even computer illiterates like myself can get to the bottom of it. :) And see how it's done. So your random pings have uncovered the secret!
 
@RetoKoradi Shhhhhh
 
Just be prepared!
 
5:54 AM
That's not very stealthy. :P
 
Not quite there ;)
 
Darn, maybe I haven't quite figured it out.
 
I'll give you a hint. Links can't be empty.
(That is a general fact about markdown links)
 
I thought I had it all reverse engineered. :(
 
You're getting close!
 
5:56 AM
I'll give you another hint, @​RetoKoradi.
 
​@​A​lexA. What does that have to do with this ?
 
Nothing at all.
 
Hmm, weird.
I am not able to ping Alex!
maybe he is using his mod powers..
 
That can't be it. I can't ping @​RetoKoradi either. Maybe chat is broken.
 
OMG CHAT IS BROKEN!!! NOW WE WILL HAVE TO GET BACK TO OUR WORK!!
3
 
6:00 AM
D: D: D:
 
shattered dreams would have been better
 
:O what in the world is that
 
One more attempt.
 
6:05 AM
 
@RetoKoradi :)
 
Worked?
 
Perhaps... ;)
 
@AlexA. Not a wrestling fan?
 
Haha no, I can't say I am
 
6:17 AM
I kinda knew when you didn't recognize Goldust.
 
Are you a wrestling enthusiast?
 
Not anymore. I watched I a lot when I was younger though.
 
I have a friend who's really into UFC. That's way too brutal for me.
 
I am into MMO
Mixed Martial Orts
 
Orts?
Haha
 
6:21 AM
Hint, it sounds similar..
 
32 32
my language reads 2 digits at a time
 
@Dennis I think you're missing some_thing :P
 
3232c95c3232c doesn't look nearly as good though.
 
He_is_definitely_missing_something
 
6:24 AM
@Dennis Yeah, that's true.
 
Well, that's it for today. As my good friend Dr. Riviera likes to say, good night, everybody.
 
Haha goodnight!
 
7:18 AM
Has it really been 2 months since the last KOTH ;~;
 
0
Q: Is 'Reverse Code Golf' allowed?

KslkghIs the type of challenge known to me as 'Reverse-Code-Golf' allowed? If so, should it have it's own tag? Here are the rules: You win by writing the longest program. You are not allowed to have comments in the source-code. Is the allowed?

 
Hiya. Sorry, it's the way it is. The problem seems to be mostly that it's very hard not to make solutions "pumpable" in a way that lets your solution score arbitrarily high
 
plus they're no fun to write because long code isn't really an achievement
 
7:57 AM
I wonder if there's a way to incorporate fractal flames into a challenge, seeing as I like them so much
 
8:17 AM
Is there anything I could improve on my explanation?
I'm new to this, you see :)
 
8:31 AM
@Doorknob That's definitely not what the first sentence asks for.
 
hm...
 
8:49 AM
0
A: Sandbox for Proposed Challenges

Beta DecayCat Keyboard Programming code-challenge Challenge Create a programming language for which any random string of characters is a valid, running program. Specification Your language is allowed 4 variables, defined as the characters w, x, y and z. You do not need to use these in your language, b...

 
That's beautiful :D
 
the code is:
<xform opacity="1.0" weight="1.0" color="0.37" color_speed="0.3" horseshoe="1.0" animate="1.0" coefs="0.63038842363 -0.42124535672 -0.123748234867 0.708986905838 0.0630887188122 0.0703241143483" />
<xform opacity="1.0" perspective_dist="1.39347027436" weight="6.0" color="0.91" color_speed="0.08" perspective_angle="0.364848944713" perspective="1.0" animate="1.0" coefs="0.780263815497 -0.161479330631 -0.466966224832 -1.04505129971 -0.0359587037214 -0.0592145342957" />
how would one golf something like this...hm
maybe I can simplify the spec a little and make rendering the flame the challenge
 
@MartinBüttner Did you get the messge from yesterday?
PS: ¨Prögrämmïng Püzzlës & Cödë Gölf
@BetaDecay I liked the idea, but yes, I agree, way too broad!
@BetaDecay Why not sticking to a very basic programming language syntax?
or something like that.
 
9:26 AM
@flawr uh, not sure, which one?
 
9:47 AM
0
Q: Magic Square in Python

mathemaProblem originally is in this link. I wrote a Python code but I got 64 points (total points is 100) and this indicates that my code has some missing points. I passed 11 of 16 test cases but 5 test cases have problematic for me. Could you say where my code has some missing points and how can I fix...

 
10:08 AM
@flawr Okay, I'll work more on defining uniqueness and the required syntax
 
10:20 AM
0
Q: Emoticon facial expression recognition

Super ChafouinWrite a program that accepts as input an emoticon and ouputs if the emoticon is happy or sad. The program accepts a string as input or parameter, and should display the string "happy" if the input is in the happy emoticon list, or "sad" if the input is in the sad emoticon list. You can assume t...

 
11:17 AM
I strongly disagree: I have more than eight variables. Also, my documentation is terrible! But I do agree that I am esoteric and full of bad code. — Snowman 17 hours ago
Hahahaha "Snowman" was actually his real username
 
:D
The Pyth room is always empty when I come to ask something
 
11:39 AM
0
Q: Filling Arbitrary Ice Cube Trays

Calvin's HobbiesSuppose this grid of spaces and X's represents the cross section of some strangely shaped empty ice cube trays: X X X X X X XX X XX X XXXXXX XXXXXXXXXXXXX Columns without X's represent holes or gaps in the trays that can't hold water, draining into an infinite capacity sink...

 
And I've just written the silliest thing ever
0
A: Emoticon facial expression recognition

cjfaurePython, 86 bytes I should be sent to prison. x=lambda c: ["happy","sad"][c[0]+c[-1:]in open(__file__).read(88)[::-1]]#<][><:>{:}(:) The shortest I could come up with was equivalent to Martin's CJam answer, so I decided I'd hide all the sad emojis in the reverse of my code and use Python's __f...

 
@cjfaure You can save a char there by dropping the space after c:.
 
@ProgramFOX nope, then it'd return sad for a few of the happy emoji
 
@cjfaure Oh, right, you have a __file__ reference.
 
@ProgramFOX indeed :D
i thought this was gonna stop happening but apparently not
 
12:46 PM
That question was discussed in chat recently...
 

« first day (1687 days earlier)      last day (3157 days later) »