Sorry to interrupt; Did I do a good job articulating this:
It really depends on what, exactly, you want reviewed. If you want a review of your code-structure on a project-level (depending on your language, things like the naming/designation of Code-Modules, Highest-level procedures, global variables/classes etc.) then an appropriately organised Code-Review question is fine. If, however, your review is about things that are not code, then Code Review is not the site for you. — Zak2 mins ago
It's easy for us to sit here and say "well I want no fragmentation at all" or "let each site choose it's own", but we don't have all the variables. Based on the subtext on that MSE post, it looks like SE is in some sort of a bind that they have to make this change for.
@EBrown Of course some things have to change - and they will if they have to - however, if that was the case, why give the pretext of users having a choice in the first place? :P
I'm very much allowed to complain it will rain tomorrow even if I have no control over the weather.
I've got a part of my application which deals with tracking the dates a particular item is worked on. It is a single aspnet page, which displays controls to either start or stop tracking, depending on the state of the work item.
There are up to three controls on the page. A calendar to enter the...
If you're posting an answer (or a question) on a site with the expectation that people are forced to make complete attribution and reference you and your work, than the license change is bad for you. If you're posting an answer with the intention of helping others, regardless of attribution, then the license change doesn't really affect you.
Why is it, that if I have the same tools as someone else, and (without knowledge of someone else's work) go through the same (or similar) steps and come to the same conclusion, I cannot use it because they have a patent?
It's 2016 now, and we've made some changes to the sidebar size. As such, we can now restart the Community Promotion Ads for 2016!
Keep in mind, we have updated some of the guidelines compared to previously - the changes are marked in bold in the Image Requirements section.
What are Community Pr...
@Hosch250 To be clear, I think we're talking about different things.
I'm talking about the copying or redistribution of software (piracy). You're talking about the reproduction of software by way of basically making an entire duplicate of the software in all but name (i.e, abusing a patent)
Here's the problem with patents (regardless of medium): once something is patented, whether or not you are aware of it, you cannot go through the same steps and come to the same conclusion/result as the patent holder. Should you do so, you are violating patent law. So if I spend just as much time coming to conclusion X as someone else, but they beat me to the patent office, then I have to throw away all my work.
> Update: Thank you for your candidness, patience and feedback. We're going to delay the implementation for now - we'll be back soon to open some more discussions.
I need improvement on solution to the following problem:
Generating random string keys in SQA is relatively simple, something
like:
request_id = Column(String, default=lambda: uuid.uuid4().hex, primary_key=True)
However, I need to to get request_id have format like
DIVISION_ABC_REQ...
This would not fare well on Code Review as it presents so many versions of the code (looks like 8-9), it would be better there if the author presented their best or at most best 2-3, having some many versions in one questions though would not be in their favor. — Phrancis14 secs ago
If you want it peer reviewed/refactored/optimized, post your final, working code on Code Review. As it stands a moderator isn't going to move this post anywhere for the reasons @Phrancis just beat me to explain. — Mat's Mug46 secs ago
@EBrown I put this in my profile, if you're interested:
> All of my code contributions in the form of answers to problems across the Stack Exchange network are free to use, share, and change even commercially without the requirement of attribution.
The vote counts seem to have enough room to accomodate 3 digits and a negative sign:
However when the score is expanded to show +/- vote counts...
The minus sign gets cropped off somehow.
I took out the snarky bit I was going to put at the end "we wouldn't want this minor little glitch to cause anyone to misread the vote counts, right ;-)"
In my ongoing quest for an IRC client, I'm working on more stringent validation per RFC 2812.
I've written this regex to validate a message. It's a little hairy, so I'm wondering if there's a way to reduce repetition, or at least to make it cleaner and easier to read. I didn't always add comme...
I hacked together a way to make a small graph using Braille unicode codepoints by abusing unicodedata:
def plot(timeline):
ret = []
for r1, r2 in zip(timeline[::2], timeline[1::2]):
character_name = "BRAILLE PATTERN DOTS-"
dots = [x for x, y in zip("7321", range(r1))]
dots += [x...
No idea about git itself but treating SSIS packages as binaries for version control isn't unheard of. With experience, you can get an approximate idea of what has changed between versions an SSIS package. BIDS Helper is handy in this because it has a "smart diff" function to help eliminate the layout noise. That only helps you in code reviews though - Oh, I see you went from Full Cache to Partial Cache on this lookup. In terms of attempting to merge two sets of possibly conflicting changes, ain't nobody got time for that — billinkc1 min ago
I am currently for a program I am writing needing to compare two associative arrays by key and value in PHP and get the common elements as well as the difference between the common elements.
I have currently arrived at the following solution:
<?php
$newArr = [0 => ['id' => 'UT5', 'qty' => '4'],...
Yes, it is better. Just understand it is highly unusual for someone to ask for a code review of a regular expression pattern... Even the Python tags here are somewhat superfluous, since there is no Python code other than that which is needed to support the pattern... — Phrancis4 mins ago
@ Python people, do you think we ought to remove Python tags here? ^^
message_regex = re.compile("[...]", re.VERBOSE)
That^ is all the Python code left if you take out the regex pattern
Maybe it's time for Microsoft Outlook to get it's carp together and get back to me when it's done so. Only a 50% detection rate, that's just atrocious.
I'm working on a project that uses RxJS to perform data transformations on varying sources of data, and I'm in the process of writing some documentation for it.
I want to find an effective way to document the following:
An abstract way to describe the cardinality and relationships of the data...
> It took about 2 days of constant work before the email system recovered from this one. When it was over, the team firefighting the crisis had t-shirts made with “I survived Bedlam DL3” on the front and “Me Too! (followed by the email addresses of everyone who had replied)” on the back.
Please close this question and post it at Code Review. StackOverflow is for doubts related to programming. Since you already have a working solution, Code Review is the right place for you. — Msp55 secs ago
@EBrown That's fine :) I personally don't consider religious slurs to be that much of an issue, however I respect you and I will accommodate your preferences :)
There have been two rounds of discussion about code licensing:
The MIT License – Clarity on Using Code on Stack Overflow and Stack Exchange
A New Code License: The MIT, this time with Attribution Required
In my opinion (and with the benefit of hindsight), both rounds have been suboptimal ways...
I was doing the question from the Cracking the coding interview, I would like to ask whether my solution for the question is good enough, because the solution given in the book, doesn't seem to work correctly.
import java.util.Arrays;
public class duplicateString{
public static void rdupli...
That said, if the code works as-is, and your question is "can I improve on this", it isn't fit for StackOverflow -- your question is a bit too open-ended and opinion-based to answer. The Code Review StackExchange might be able to help you out, though. — Mauris36 secs ago
Is the code below a good solution for the above question, or is there a better way to do it?
package ArraysAndStrings;
import java.util.Arrays;
public class anagram{
private boolean isAnagram = false;
public boolean Anagrams(String str1, String str2){
if(str1.length() != str...
How about we gradually scale up from 1% of new posts getting the new license to 100% of new posts getting the license, at random, over a period of months? — Jeremy Banks1 min ago
If you have a serious suggestion about phased implementation, that would be better as your own answer. I don't want a long comment thread on my answer about something that I didn't even suggest myself.
I would like some python feedback about these two comments (and possibly the following two):
"# We add a tuple here, hence the double parenthesis' -- tuples should always have a comma at the end: `ids_in_page.add((host_id, page,)) — rbp30 mins ago
@rbp Why for? It is required for 1-sized tuples so the parser doesn't treat it as a single value, but for the rest it is not mandatory at all. It is visually better when written on multiple line such as score_result but otherwise I don't get the reasonning. — Mathias Ettinger25 mins ago
Am I right in assuming that trailing comas on inlines tuples are to be avoided?
I never came accross such writing (except 1-sized tuples, of course)
I'm updating a bunch of php code that relies on register_globals and uses request data globally. In the process of fixing/updating I spend a lot of time writing code that looks like:
<?php
$x = isset($_REQUEST['x']) ? $_REQUEST['x'] : $xdefault; // or $_GET, $_POST
$abc = isset($_REQUEST['abc'])...
This:
Is a data table we get from our financial platform with lots of useful information. For reference, "--" is also the string they use to denote empty values.
This:
Is a spreadsheet I built (and had reviewed here) to track our customers' regular income requirements.
The code produce...
Apparently, the office that was supposed to gather around all the information for all the soldiers going on this military deployment was using Excel, and it was using a table, that wasn't actually a table. Long story short, they sorted the first column in ascending order, then the second, etc. Now, mind you, this wasn't an actual Excel table. It ended up disjoining everyone's information. All the printed ID cards had the wrong birthdate, SSN, name, etc on them.
So, my dad get's to this foreign country, starts handing out ID's, and no ID was correct. So he had to call back to home office, have them send amended ID's over, and life was back to normal.
Note: I have been using Python for only a few days, so I am trying to learn about some best practices. I am posting this to get some input from the community so I can learn other ways of doing things. I have some string parsing code here which gives me the output that I am looking for. I was wond...
Right, that was why I asked. I was going to propose an answer that assumes the problem (always ambiguous) could be solved by a MIT License with Attribution.
I have some parameterized queries in Access 2010.
They are often used in VBA functions having the same parameters.
In such cases, I give the query and function the same name.
For example
Public Function get_assignments(e_id As Long, yr As Integer, wk As Integer) As DAO.Recordset
Dim db As DA...
^^ attracted an instantaneous one-liner answer that got an instantaneous mod notice before it was instantaneously edited and then the mod notice was instantenously removed. Such spontaneity, much instantenous.