I made the mistake of running a few cups of vinegar through my dishwasher to clean it. I mean, it worked really well, but I had to vacate the premises for hours. The stench didn't fully leave for days.
CONGRATULATIONS to @kuroineko for the best entry and winning the 200 bounty from @TheBestOne (excellent sportsmanship!).
Write a program to colour as much of an image as possible before opposition programs do.
Rules in brief
Your program will be given an image, your colour, and integer N.
E...
In this question, a game was devised in which players would face each other off pair by pair in the Prisoner's Dilemma, to determine which iterative strategy scored the highest against others.
In this question, I devised a way for multiple people to play the Prisoners' Dilemma against each other...
Code Bots
I hate private and protected variables. I just want to access anything and everything!
If you are like me, then this challenge is for you!
Write a bot that works together in harmony with other bots makes other bots do what you want. You are a programmer, and you know how things are...
to rephrase my question.. can anyone me decide a van Emde Boas tree challenge? I would just like people to implement it but I want it to be correct. That is to run in the right time complexity
The graphs are randomly generated as follows: For every vertex, create N edges to other vertices, where N is randomly chosen in a small range, say 1-5.
It will be, once the generator is there. I wanted to see if there were issues before writing code. I assumed that if I didn't state it, it would be assumed that it was a general graph, nothing specific.
@aditsu I didn't say it must be implemented... This special case might be useful just like array ), or not. It might not be so significant, so you decide.
@Geobits there is nothing in general wrong with a vertex cover optimization challenge. It's perhaps a little standard so people could just copy a paper or even download code I suppose
@Geobits also "You cannot use any built-in or third-party function designed to solve vertex covering problems." is a little tricky. Someone using igraph might find all sorts of useful functions short of actual vertex cover code
@Lembik I don't know. I'm afraid limiting the code size would result in even less creativity, since then some algorithms would be shut out. It's like having 45 variations on Fisher-Yates as answers :)
Well there basically has to be a time limit of some sort. The entire point is to optimize it for a given time frame. If there was no limit at all, you could just write a dumb brute forcer and say it works perfectly, but won't end until after the universe does.
I can guarantee, though, that I'll upvote a working, testable answer of yours if it's in brainfuck, just for the novelty of it.
@aditsu I didn't see why we can't have f~... :) for nested arrays already did something weird. f~ is more useful than that. But that isn't too important.
@aditsu Other suggestions are sgnabs, which is about as useful as divmod. And if you decided to add gcd someday, don't forget to add modular inverse together.
To be clear, go ahead and submit your brainfuck code. My upvote isn't contingent on winning, but on the quality/effort of the submission. The checkmark goes to the winner.
@user23013 currently : and f check the arity of the operator and behave accordingly; I wonder if there's some use for f to work with unary operators in general.. or only with ~
@Geobits I like this approach. Anyone can write a simple entry that just does something to remove surplus vertices until the time limit is up, so hopefully you'll get lots of answers with gradual improvements as they experiment
I really should proof read chat posts when they have a ping in them. Sorry...
I just meant that. The problem is we can turn gcd into modular inverse easily, by passing two parameters with a special type. But it's likely one cannot do it in CJam...
@aditsu I actually did mine a few bitcoins some years ago just because. I then promptly forgot about them until about a year or so ago when they were selling for ~$1000 apiece. Cashed out and got a nice paycheck.
@Rainbolt I'm never surprised when that happens. Normally we just chat while they inject me full of unlabeled chemicals and they leave shortly thereafter.
Neither do I. I remember learning about it from other sources. If I trust those sources, then I can believe it happened. If not, then it doesn't actually matter to me whether it happened or not.
The effect is still as if it had happened, so it doesn't matter whether it did.
okay, I've got match (count) mode, grep mode, antigrep mode and split mode... I'll add replace mode next, and then I can go crazy on the options to make the output customisable.
Agnostic people would say "Well there may or may not be something powerful enough to pop me into existence, but if there is I couldn't possibly comprehend it."
That's a narrow view of atheism, I think. I've heard atheist talk about alien seeding, simulation variants, etc. There are plenty of things you can believe possible without throwing a blanket "God did it" over everything.
@Rainbolt I think Geobits' point about simulation is even more relevant. Nevertheless I don't understand the premise that there has to be some form of agent that does the popping into existence.
I'm sorry if stating my opinion and those that I've heard from others upsets you when it doesn't match what you're saying. My bad, I'll try not to let my atheism interfere with your "this is what atheists think" comment.
@Rainbolt Right, but you said that "there isn't" implies that I can't just have popped into existence (at least you used it as an argument for why atheists wouldn't believe they've just popped into existence).
my opinion is that I have no way of telling. but assuming a world view in which everything that seems real isn't, isn't very useful. the model that includes everything having developed as it seems to have developed does allow me (and apparently the rest of the world) to make much better predictions.
Stephen Hawking, in one of his books had a really good section about that... how do we know the table in the neighbouring room is still there when we leave it, and doesn't just pop back into existence when we go back?
The answer is, we can't know that. And while we could develop a model that allows the table to vanish if no one looks, it would be a really annoying model to work with (consider the ceiling crashing onto the table, while you're not looking), so we just use the simplest model that makes the right predictions, and in that case, that is to assume that the table is there even if no one is looking.
@Rainbolt Your split between agnosticism and atheism isn't right, though. Atheism is defined by a lack of belief, not a disbelief. Some also disbelieve, but it's not required.
I'd rather accept a definition from those who identify as such.
> Why should atheists allow theists to define who atheists are? Do other minorities allow the majority to define their character, views, and opinions? No, they do not. So why does everyone expect atheists to lie down and accept the definition placed upon them by the world’s theists? Atheists will define themselves.
There's a very gray overlap there. You can fit under both unless you're a hardline "doesn't exist" type.
Wiki actually has a pretty good definition on that one (IMO):
> Agnostic atheists are atheistic because they do not hold a belief in the existence of any deity and agnostic because they claim that the existence of a deity is either unknowable in principle or currently unknown in fact.
That's pretty much my situation, if that helps clear things up.
It would be absurd for me to say there isn't a god, for the same reason I claim it's absurd to say there is one: Show me the evidence. But in practice, it doesn't matter. Unless this god shows himself, his existence doesn't change my life.
@Rainbolt Your original comment was true. Agnostics would (or at least might) say that. That doesn't mean atheists wouldn't, though. That's where it got off track.
@Rainbolt maybe we do, but what I'm saying is, I don't understand what this definition has to do with anything in the first place. if you cannot possibly conceive of the former idea without any powerful being doing the popping into existence, then I guess that makes sort of sense, but my point was that I can very happily believe in one without the other.
@MartinBüttner Agnostic and atheist are independent as well. I have no clue what prompted you to challenge my comment with something totally unrelated.
You do realize that I never at all said that your original comment was wrong, right? My very first response was to your definition of atheism, which I feel is a bit offensive. Not intentionally, I'm sure, just dated.
I related them right underneath where you said "sorry for the repeated pings"
@Geobits I honestly don't care if you are offended because you don't care if I am offended. I have a definition too, and you don't seem to like it. Why are you not also offensive?
Why would I expect you to be offended by a definition of something that doesn't seem to apply to you? Your (wrong, outdated) definition of atheism should be expected to be offensive to an atheist.
Your saying your definition of atheism is more (or equally) valid than an atheist's? Yes, that is offensive.
But what I said wasn't that you have to be an atheist to know what it means. I said that if you were one, you'd (most likely) know what it means. Like if you were a Christian, I'd assume you knew a bit about Christianity.
Right, I'm saying that you're wrong about that. From an atheist that believes it's possible.
@Peter I think there is a loophole hidden in counting multiple files by just summing up the byte counts of all files in the submission. One could write a Unary derivative that doesn't take a string of 0s, but instead whose program consists of N empty files, where the number of files is interpreted as the unary code.
I just noticed this, because I didn't want to add a replace-mode flag to Retina, so I'll make it implicit: if there's one file I'll match (or split), if there's two files I'll replace (with the replacement string taken from the second file). Now this means I can change the behaviour for 0 bytes from matching to replace-with-empty-string by supplying an empty file.
I don't think it's much of an issue in this case, since the scope is very limited but, I think this could in principle be problematic.
@MartinBüttner I think that if someone tried that, their answer would attract quite a few downvotes (and probably quite a few upvotes) and a meta-thread.
@Rainbolt You do realize that they're pointing out that definition as wrong, right? If you read that whole page and came to the conclusion that they were advocating that definition, I don't see what else there is to say.
> The only common thread that ties all atheists together is a lack of belief in gods and supernatural beings. Some of the best debates we have ever had have been with fellow atheists. This is because atheists do not have a common belief system, sacred scripture or atheist Pope. This means atheists often disagree on many issues and ideas. Atheists come in a variety of shapes, colors, beliefs, convictions, and backgrounds. We are as unique as our fingerprints.
> Atheism is usually defined incorrectly as a belief system. Atheism is not a disbelief in gods or a denial of gods; it is a lack of belief in gods.
Sounds about right. I could talk about this all day, but I really do have to get going. Headed out of town for the weekend, so I should probably be packing a bag :D
Next time you have this conversation I hope you'll be more careful to scavenge the internet for the perfect site that exactly backs up what you think the definition is. I've found a few that do. I can lend you them if you want more fodder.
I've found more that don't, and your calling me offensive is offensive.
hm, I need a non-alphanumeric (non-whitespace) ASCII character to indicate repeated application of regex replacement, which should ideally be some form of mnemonic
As far as I am aware, there are no belief systems (religious, atheist, antitheist) in which the group of people referring to themselves by a given group name agree on the finer points of how that group should be defined.
hm yeah that might work as well, although the process is a bit different, since pattern and replacement themselves remain the same. (although I can probably interpret /// quite trivially with Retina)
Crap. There's an unread message in my phone and my phone can't filter by unread messages :(
I have three options: delete all so the notification will go away, scroll through a thousand texts and find it so that so the notification will go away, or wait until I get a few hundred more texts so the text will be discarded and the notification will go away
just to be sure, I've just implemented a Tag System interpreter in Retina
pattern file: +`^(.).(\w*)(?=\|.*\1>(\w*))|^(?<2>\w+).* ... replacement file: $2$3 ... and the example from wikipedia would be given as input in the form of baa|a>ccbaH,b>cca,c>cc
Maybe the challenge needs to be to write code to operate a robot hand to manually go through and read all your messages to find the unread one and then ping
Or maybe you just need something that presses down a thousand times, and just leave it under a video camera. Then when you come back you can process the video to see where the unread one is, and then use the same thing to press down only that many times, so you are at the right message
@trichoplax It's been washed three times, so it's probably not my treatment. Exactly half of the screen died for about a year, but I had the software memorized enough to live with it. Then one hot summer day the other half of the screen magically revived after I left it in my blisteringly hot car.
At first I missed the tactile feedback of physical buttons, which allows for typing without having to look at the screen, but I've learned to live with it
@Rainbolt before I had a smartphone my opinion on smartphones was "People who don't have a smartphone don't need one. People who have one do need it." ... I've had a smartphone for 4 years now, and my opinion hasn't changed :D
if Markdown flavours would only convert -- to an en-dash and --- to an em-dash like LaTeX, the internet would be better place ("better" as in "more pleasant to look at").