@rolfl I was thinking for some reason that the four spaces wouldn't show up as those tags. but that is just markup that is rendered as HTML... and then there is the SEDE Lag
As part of an exercise by Jamal to clean up old questions on Code Review that have no code in them, I helped by writing this query on Stack Exchange Data Explorer: CodeLess Questions
select Id as [Post Link], CreationDate
from Posts
where PostTypeId = 1 --questions
and Body not like '%</code><...
I need to call the following function cross 4 times, for all permutations of the x and y variable with the values 1 and -1;
my approach:
var p = [-1, 1];
p.forEach(function(x) {
p.forEach(function(y) {
cross(x, y);
});
});
Is there a shorter way of doing this?
We're doing a project in Swift and JSON parsing is a hotly debated topic.
My usual way of parsing is using the if let condition. One of my team members came up with this method parsing json using switch(key,value)
class LineItem: NSObject {
var id:NSNumber?
var variantId:NSNumber?
var lineItem...
We're doing a project in Swift and JSON parsing is a hotly debated topic.
My usual way of parsing is using the if let condition. One of my team members came up with this method parsing json using switch(key,value)
class LineItem: NSObject {
var id:NSNumber?
var variantId:NSNumber?
var lineItem...
@nhgrif Wouldn't this be off-topic for not being the OP's own code? "One of my team members came up with this method parsing json using switch(key,value)".
I have voted to close because this is a poorly formed question. It asks for a "comparative review" (which is better), but then only posts the code for one option. Additionally, the specific question is about performance, and that's easy to measure empirically, so there's no need for a code review. — rolfl ♦11 secs ago
I need to know what library, compatible with C++, can be used to interpolate a polynomial. So given n point-value pairs it can recover the polynomial. The library must support big integer (multi-precision) values as my polynomial is defined over a polynomial ring R[x] where R is a 1024 bit number...
It's short and simple Python. It expects a sorted permutation of integers n1..n2 in list format, with a single step missing (e.g., [10,11,13]). I know it does nothing to check errors. That's intentional; it expects a well-formed argument.
Here's the code:
from __future__ import division
from ma...
I'm developing an application manipulate a database used for storing Patient EEG records. The columns in the table are:
EEGNo, SubjectLastName, EEGDate, DOB, Age, Sex, LevelOfConciousness, WaveType
The two date variable are EEGDate and DOB, in the CSV file they are formatted month/day/year but...
What I am having trouble with is a twist to regular Vlookup vba code. Here, I have a table from G2:H9 in Sheet1. All of the cells listed in Column G2:G9 has tranposed values (Header) as the ones in the first row of Sheet3. When I run a macro, a value in H2, which corresponds to G2 will be copied ...
I am learning OOP. Coming from a procedural background I can't help but feel everything should now be in a class / methods. Examples seem to define objects then write a few lines of 'procedural' code below it to actually manipulate the code.
class ObjectExample {
public function methodSetEx...
We're doing a project in Swift and JSON parsing is a hotly debated topic.
My usual way of parsing is using the if let condition. One of my team members came up with this method parsing JSON using switch(key,value)
class LineItem: NSObject {
var id:NSNumber?
var variantId:NSNumber?
var lineItem...
Stack Exchange releases "data dumps" of all its publicly available content roughly every three months via archive.org, and also makes that information queryable over the Internet at the Stack Exchange Data Explorer (SEDE). Over time, as new features and other bits of data are introduced to Stack ...
You are the man I need! I wasn't aware you were online. @rolfl do you by any chance recall which table contains the review votes of people? I read the documentation and PendingFlags seems to be it.
But a count of the table only returns 34k, which is incredibly low.
@rolfl the World Wide developer conference (apple keynote thing)
and, for post history type 10 (close) the Text column will contain the names of the close voters.
@DJanssens hmmm... That was meant to be for ^^^
> Text: A raw version of the new value for a given revision If PostHistoryTypeId = 10, 11, 12, 13, 14, or 15 this column will contain a JSON encoded string with all users who have voted for the PostHistoryTypeId
And (something less related) what about the PostLinks table, what does that contain? The documentation only states: linktypeid = 1. Linked 3. Duplicate
Why can't I ask customer service-related questions here, like:
How do I get my Facebook developer account confirmation code?
Will Apple approve my app, and under what conditions?
Where can I download the developer kit?
Can I ask questions about using their API? How is that different?
Return...
while if you use post history and look for duplicates there by checking the type being 101 or 10 (I don't remember the correct types) it returns like 170k rows of questions with duplicates
Indeed
My guess is that the post links table also contains links for deleted questions
Update: discussion on specific changes to how deletion works is here:
Turbocharging the Roomba: solutions for premature deletion
This needs to stop: http://stackoverflow.com/posts/15348333/revisions
It doesn't help to improve close descriptions or encourage fixing and reopening if clos...
Use case: I sometimes write programs that want to store a little state between runs, e.g., "What was the last file selected last time this program ran?" I wanted a convenient way to track this state. Python's built-in shelve module is pretty good but I wanted a way to restrict the possible set of...
Please help!. Am newbie with Selenium frameworks, I have a method that accepts 5 parameters for booking a party; it uses dataprovider to read from excel file. The problem is(as shown below) it uses JXL imports which only supports XLS files (excel 2003 or older). I need help with a similar code th...
"I don't think it's necessary to describe what the program really does, because it works fine, although there are some special occasions that can result in a crash." wat
that's like... I don't think it's necessary to introduce myself, because I eat my vegetables, although there are some special occasions where I don't eat my vegetables and I die.
@Quill I haven't downvoted it yet since I'm already out of votes. I wouldn't expect anyone to be able to fix that title. Where's that random title generator...