This is now status-completed
Enter key no longer submit a comment when pressed, as it used to do before.
Observed both when adding a comment and when editing a comment.
It does work on per-site metas, i.e. bug applies to all main sites. (including MSE)
Browser: Chrome latest stable (53)...
a zero
d 1
zero 1
i _
# switches two variables
# swap <x> <y> <t>
a swap
zero 3
_s1 1 2 3
#fail
a _s1
i 3
_s2 1 2 3
#fail
a _s2
d 1
_s1 1 2 3
_s3 1 2 3
a _s3
i 1
_s4 1 2 3
#fail
a _s4
d 2
_s3 1 2 3
_s5 1 2 3
a _s5
i 1
_s6 1 2 3
#fail
a _s6
d 3
_s5 1 2 3
i _
@ETHproductions I think this switches two variables in addict, except for maybe the #fail statements. idk what to put there
@ConorO'Brien It's just a variable. I use it as a placeholder, not assigning any value to it. "better practice" would be i _. And here's an always-succeeding function that's way better than i _:
private String generateLongString(final int length) {
final String a = "aaaaaaaaaa";
final StringBuilder generated = new StringBuilder();
for (int i = 0;i < length / 10;i++) {
generated.append(a);
}
for (int i = 0;i < length % 10;i++) {
generated.append("a");
}
return generated.toString();
}
I'm sure there are methods specifically for that if you happen to be using something like StringUtils or Guava already, but I wouldn't import them just for this.
@BetaDecay Isn't all moderation really only for those who are online and active at the time? I'm not a mod, but I was under the impression that there's not a concrete obligation to work X hours per week or anything.
When editing a message in the new mobile chat, a new message is posted instead of replacing the edited one.
Steps I followed to reproduce:
I posted a message in (new mobile) chat.
Then I selected the message and clicked the pencil icon in the menu bar.
The previous message was displayed, a...
What are some good hash functions to use for a Bloom filter? (They don't have to cryptographically secure) I ask because I'm looking at my proposed Bloom filter question and need to figure out which hash functions people should be allowed to use. Each hash function simply needs to hash a single printable ASCII character to a single number 0-31.
I'm actually not that familiar with the differences between the two. I can check out files, make changes, and check in my changes. Some files can be checked out by multiple developers (C# files in particular). Files that don't merge well, like a jpg image, can only be checked out by one user at a time.
After I check in changes, I can merge them to another branch
Merging takes some self-control, but with the newer versions I usually get a huge warning that says "You're about to perform a merge in a direction that nobody has ever merged before! Are you sure you wanna do that?!"
Ah we're only a two man team right now but it's still frustrating trying to push commits even at times since on my own time I use git, push to a featureNameBranch and then merge with master once I'm satisfied with it
@Qwerp-Derp Are there more docs on logicode than github's readme? I was looking at your quine bounty offering, but couldn't figure out how to output ASCII at all until I searched some of your answers here.
Y axis (initially on the left, numbered like 1 2 3...) is month number, X axis is wordiness, and Z axis is count, how many messages there were of each number of words.
There are quite a few homemade languages around here. What criteria must a homemade language satisfy in order be used in a challenge, apart from not being newer than it, and having an interpreter/compiler available?
I was doing a simple problem on codingbat and testing out my python. The problem was:
Given two int values, return their sum. Unless the two values are the same, then return double their sum.
sum_double(1, 2) → 3
sum_double(3, 2) → 5
sum_double(2, 2) → 8
My solution was:
def sum_double(a...
Two requests with user agent "Mozilla/4.0 (compatible; SiteKiosk 4.0; MSIE 5.0; Windows 98; SiteCoach 1.0)", two with "Mozilla/1.22 (compatible; MSIE 5.01; PalmOS 3.0) EudoraWeb 2", one with "Mozilla/4.0 (Windows; MSIE 6.0; Windows NT 6.0)" and way too many with MSIE 7 or 8.
@ConorO'Brien The end of the stream is the end of the stream, no marker needed. Which language are we talking about and what kind of input (interactive, piped, etc.)?
My main complaint with precedence is that in Java, !var instanceof Tree doesn't work since ! has too high of a precedence (it complains that it can't negate the object, which doesn't make sense).
@confusedandamused I mainly write tests for new code, but sometimes I will write new tests for old code when a bug is found, to make sure the bug doesn't come back.
j Where it makes sense, remove a comment leader when joining lines. For
example, joining:
int i; // the index ~
// in the list ~
Becomes:
int i; // the index in the list ~
I want that feature
the problem is, why does vim think that > is a comment in a buffer without syntax set up
@DJMcMayhem Technically it's not a onebox, and I know this because of the work I did to parse the TNB transcript. Namely, there's no class="onebox ob-..." attribute.
> Oops! There was a problem updating your profile: Display Name can only contain letters, digits, spaces, apostrophes or hyphens and must start with a letter or digit
(Also, if you wish to DIY a Backblaze Storage Pod, good luck with obtaining the corpus. For ver. 6, the STEP file is 27 MB, and the Solidworks one is 112.)
(Converting both to the normal STL format is a pain. For Solidworks, you have to obtain Solidworks, et for STEP, there's a long search to do.)
Write a program, that, given a string, outputs the first instance of each letter.
Imagine you were playing hangman and you immediately guessed the answer; all you have to do is name the letters, from left to right.
For instance, for the input string THE THEORY OF SYMBIOGENESIS would be THEORYFS...