« first day (2348 days earlier)      last day (1965 days later) » 

00:00
RELOAD! There are 6179 unanswered questions (90.0911% answered)
 
2 hours later…
01:46
Apologies for the oversight I was unaware of the code review section. The full code is completely functional and typographical errors have occurred during editing it to relevant info only and cut/pasting here. I'll fix those errors and repost as directed. Thank you — Richard R 5 secs ago
01:58
0
Q: Seeking constructive feedback on my first Javascript/JQuery project

Richard RI am seeking feedback on my first ever working Javascript/JQuery project. Everything is working to plan with this small program and I am happy with its performance. I have pieced this together from a variety of sources and lots of trial and error. Because this is so new to me I wanted to see whe...

 
1 hour later…
03:20
0
Q: 'Form1 does not contain a definition for 'Form1', and

Samuel JoslingI am completing this tutorial: https://www.youtube.com/watch?v=bglYDCdoBCg I have uploaded the code and fixed all the reference errors but am still facing the following: "Form 1' does not contain a definition for 'Form1' and no accessible extension method 'Form1' accepting a first argument of ty...

04:00
0
Q: WARNING - Codewars Kata - spoiler - getting to next level pythonic

jpolacheThe challenge; You managed to send your friend to queue for tickets in your stead, but there is a catch: he will get there only if you tell him how much that is going to take. And everybody can only take one ticket at a time, then they go back in the last position of the queue if they need more (...

04:14
This belongs in the code review, not stack overflow — sinanspd just now
0
Q: Solver for puzzles in an old video game

TechnoSamThis program solves the "hacking" puzzles in the Nintendo DS game, Code Lyoko: Get Ready to Virtualize. Here is the project. Broadly, I am looking for feedback specific to rust style, rather than general good coding practice, but I'm sure I could use some pointers there too. My biggest questi...

Monking
04:35
I'll go with option 2, creating PR to merge from your feature1 branch to develop, I'm also making an assumption that your PR has to be approved and undergoes code review, before you can merge. I believe the PR history which contains your changes is preserved. I'm speaking from my experience and preference, Also, I'm using BitBucket. — Mac 42 secs ago
05:03
0
Q: Performance improvement of pickWinner in WeightedLottery

Iftifar TazI have written a Lottery contract that picks winner based on the amount they contributed to the pool. I am looking if the code of pickWinner function can be optimized. pragma solidity ^0.5.12; //import "./SafeMath.sol"; contract WeightedLottery { //using SafeMath for uint256; address ...

0
Q: python design problem - variable, if statement. please~

Jack[Background explain] I wrote three Flask views and module interact with the views. I do this one module called /buy using different scenario cases based on flag. Zero view if user come in GET, render html again and change flag=1 First view if user come in post with flag=1 which means, they pu...

 
3 hours later…
08:02
@Vogel612 just a question: why did my flag got declined, yet advise was implemented? codereview.stackexchange.com/questions/230349/…
0
Q: Downsample fastqs

Yujin KimI'm working on a project to downsample some fastqs (files that contain sequences). I'd like some insights on the bash I use to process the options. I especially feel like there's something to have a "store_true" action for the -t flag. set -e usage(){ echo "Downsample fastqs by calling the ...

08:27
0
Q: Implementation of CLP algorithm with PHP

SjaakvBrabantThis kind professor Güneş Erdoğan has published an CLP (Container Loading Problem) solver. His solution is made in a spreadsheet so it is VBA for Applications. I have manually converted his code to a PHP script. I have everything working and running. But he has stated himself that there is room ...

08:40
possible answer invalidation by IceRevenge on question by IceRevenge: codereview.stackexchange.com/posts/230309/revisions
08:56
@dfhwze because I wasn't quite fully awake yet ...
09:09
Yes, that happens.
09:28
0
Q: Intercept and ignore SIGALRM in c

S. L.I have a program that sets an alarm, prints a question, takes an input and either prints "correct" or "wrong". If the alarm "rings" the program exits. I am trying to write a C wrapper that will: 1) run the program as a child 2) read the first output (the question) 3) ignore the alarm 4) pass ...

0
Q: Reformat code and error handling

singriumI developed a function that, from a given sequence of digits, extracts the date and reformat it. This is the code: from datetime import datetime as dt def format_dates(field): n = len(field) match = False i = 0 while match is False: try: # Take the last f...

09:40
@Vogel612 oh ok :)
 
1 hour later…
10:52
Maybe Code Review is a better place to start with. — pzaenger 54 secs ago
oh thanks for that,i don’t know Code Review before. — blacksadnb 22 secs ago
Yep Code Review is the place to go when you have a complete, working code and seek to improve it. — Lundin 14 secs ago
Perhaps better suited for code reviewPlutian 44 secs ago
This question came up in a code review — darune 7 secs ago
Welcome to Stack Overflow. If there's nothing wrong with your regexp, and you're asking for a review, I believe Code Review would be a better place to post your question. — Bartosz Zasada just now
11:38
@SᴀᴍOnᴇᴌᴀ Without methods and variables there is nothing to review here.
Hello and welcome. You may find a better place for this on code reviewFederico klez Culloca 11 secs ago
Stackoverflow is not the right place to ask for a code review. — Mushif Ali Nawaz 11 secs ago
Plus: before just moving your question to codereview.stackexchange: please study their help center carefully. Dont just drop your content somewhere, make sure that you understand the rules of the community you are asking for help. For starters: it is a NO-GO to link to other sites for your code. Questions here should be self-contained. Also consider to not put up all code for review. Focus on core aspects (framed around a minimal reproducible example for example). — GhostCat 13 secs ago
12:51
0
Q: Rendering the AuthorName using the DOMParser to read XML

user1314159I need to concatenate the LastName and Initials and all of that authors affiliations. Is there a better way or faster way to do this? I'm very new to working XML in JavaScript. This is a portion of an XML string that I get back from an API that I parse in JavaScript: <AuthorList CompleteYN="Y"

0
Q: Memory Leak fetching data from SQL DB

SamI have created a simple Data Fetch method which fetches data from SQL DB. Each time I fetch data by calling this method the memory grows (application pool memory). When I explicitly call GC.Collect() after fetching the data, the memory is half of what it was without GC.Collect(). I know it is ba...

13:31
Greetings, Programs.
0
Q: Error when Trying to Remove Character ↵ in Between Two Words

MikeIf I select two lines together and get text using window.getSelection().toString() then I get ↵ in between two words (last word from the upper line, and the first word of the lower word). To get rid of ↵ I tried below code- document.addEventListener('dblclick',function (event) { var element = ...

0
Q: GeeksForGeeks - Minimum charcacter removal to make two strings anagrams

King ColdHere is my solution to https://www.geeksforgeeks.org/remove-minimum-number-characters-two-strings-become-anagram/ Given two strings in lowercase, the task is to make them an anagram. The only allowed operation is to remove characters from string find minimum characters to be deleted...

13:53
0
Q: Java utility to kill itself

Oscar Besga PanelIf you need to kill the same process that you're in (for testing purposes or whatever) this code will do it. A definitive, quick, unmercifull dead of the current Java program/app. Not a System.exit(0) or a gracefull dead. A headshot to the running JVM public class KillMe { private static fina...

@SᴀᴍOnᴇᴌᴀ This is really a design question and either belongs on Software Engineering or possibly is invalid on a sites.
14:20
@CaptainObvious SuicideFactory
14:35
@Mast and kill -9 won't work?
15:12
@pacmaninbw You don't die until you hit -10 hit points.
(DND reference, I think.)
15:53
Monking
16:05
Kevin Montrose on October 08, 2019

Automated SQL parameterization with Dapper

Default encoding strings in views with Razor

Requiring cross site request forgery (XSRF) tokens for non-idempotent (ie. POST, PUT, DELETE, etc.) routes by default

HMACs with default expirations and common validation code

Adopting TypeScript—an ongoing process—which increases our confidence around shipping correct JavaScript

Private data—for Teams and Enterprise— is on separate infrastructure with separate access controls

SQL injection attacks [2017 #1]

XML external entity (XEE) attacks [2017 #4] …

16:18
Opportunity for a life jacket here: codereview.stackexchange.com/questions/230218/…
I started programming professionally on Unix.
Oh, nice.
Also, just read this: bbc.com/news/technology-49960387
16:35
@Hosch250 Now that is just plain horrible. Hope CR doesn't get tainted as a side effect of that problem.
@dfhwze So you are saying we should reopen it?
@pacmaninbw It is reopened
16:59
@dfhwze I think it's still a poor question.
@pacmaninbw Not sure why he's writing such a roundabout method.
@Mast but, it's not off-topic..... I don't think.
@Mast It's not of the best quality, but I see no reason to deem it off-topic.
Giving it the benefit of the doubt.
Currently it has no description.
True, but the title and code speak for themselves here, no?
17:01
It's probably doing something with binominal distributions. Ok, but what?
The user expressed in now deleted comments they just wanted to implement the bin. coeff. for fun
Quite close to a code-dump.
Perhaps we should add that as description in the question.
@dfhwze Well, those should be added to the question to make it a heck of a lot better.
@rolfl True, technically it's on-topic.
If those comments are added.
Otherwise it's just a code-dump IMO, and that falls under Unclear what you're asking.
Should I undelete those comments while editing is in progress?
And.... then things get complicated..... codereview.stackexchange.com/a/230379/31503
17:09
@rolfl Let's add that deleted comment as description. I'm sure this would not be considered an invalidation.
The deleted comments are meaningless.... here:
I'm looking for the meta on code-dump questions...
"I have coded the binomial coefficient (wiki link) for fun."
something like this?
@tieskedh no.. not a homework exercise.. just coding for fun
Something about expected input and output would be good. So we have an idea what it's supposed to do.
17:12
but that would invalidate the answer :s
Taking that from the code is treacherous, code might be riddled with bugs.
@dfhwze You didn't see this coming?
Nope, by this high standard, you could close alot of questions
@Mast but we're quite a mess now
I don't consider it a high standard, I consider it common decency for people to add a bit of text like outlined in the how to ask.
@dfhwze Yup.
I agree it could do with a description. But input/outputs and adding all edge cases, I rarely see this
@dfhwze Doesn't mean it's right.
But hey, there's a mod and ex-mod on the question, we'll see how this goes.
17:17
^^
I wouldn't mind deleting the answer. I deliberately wrote it as a crappy answer to a crappy question.
I can understand that sentiment.
Both question and answer are technically allowable.
It seems only rolfl and I deemed it on-topic. Could we live with a proper description added?
I figured that if the question wasn't going to remain closed, I could at least give it some closure.
5
17:24
Adding a description is always a good thing.
And so long as there's no code change, there's no invalidation.
Actually, @200_success / @dfhwze - I am pivoting here.... @200_success you can choose to keep your answer, but I am closing the question as off-topic, does not work.
The main method calls binomialdistribution, which does not exist.
@rolfl ok fair enough, I was too enthusiastic to vote to reopen.
let's request OP for even more effort
Oh, right. Deleted.
Hey, point of order! I thought you had resigned? Doesn't that make your closure invalid?
8
@200_success I am on my way out, but organizing a clean exit strategy first ..... I can't just bail, the mod team is not exactly idle at the moment, things are crazy in odd ways, and me just bailing would not help.
FWIW, I am hoping to have the plan finalized today, and maybe some news to share then.
Of course previous mods are eligible to step up and help if they so choose.... pending some paperwork and ratification, if you're interested, @200_success .....nudge nudge
6
I'm part of your exit strategy now? Oy.
7
17:40
Do you have any updates that came out of that code review? — ErikE 33 secs ago
It's really complicated.... sort of. SE is swamped, elections may be a long while away, but the mod team is spread thin as well. We have a sort-of-plan in place, but it needs agreement from a few places for it to work out, and we don't know how/if it will work. But, it may just end up being a crapstorm for a while.... If there's not a clear plan in place by the end of the week, I'll just ask to have my diamond removed without a clean plan.
Mat agreed to step up, as did Simon if necessary.
In a sense, my willingness to allow an orderly transfer, is reducing the crisis level of the situation, so we are not the squeaky wheel, and if I just go, it may make things work faster.
I am .... conflicted.
6
:o hey @rolfl
I appreciate all y'all mods have done, BTW.
5
17:42
@skiwi Monking!
What am I all missing'?
@Hosch250 We all like hearing that .... even if my visibility has been much lower than in the past.
FWIW, @Vogel612 expressly asked me to be more present in the 2nd than I normally would have even before I resigned.... we have been expecting things to be more "volatile", hence my increased visibility).
oh boy you guys have read the new CoC :/
Chat rooms are very time-consuming for me, and really screw around with odd things when I am presenting to 100's of people ;-)
@dfhwze Link?
@dfhwze No, where is it?
17:45
It was shared with mods,not yet in public. I thought you referred to new CoC when you talked about more 'volatility'
Oh, no, it was more just the uproar around Monica's firing. And I'm not a mod.
oh ok
@dfhwze Nahh, a week or so ago, when things were heating up, our (my) presence on chat increased, that's all.
Heating up as in the whole community firing thing?
Yeah
17:49
BTW, I don't think I've seen this many pins since we graduated.
5
Here's what I suggest. If your code works, post it on Code Review. They will give you specific advice, based on the code you already have written. — Robert Harvey 55 secs ago
@Hosch250 That's awesome, or depressing
@Hosch250 What's kind of odd, is that the vast majority of people are completely unaware of the "crisis" that's happening.... it's just business-as-usual as far as they are aware... i mean, how often do people really look at the featured meta posts, etc?
Yeah. It's ripped through most of chatrooms and meta sites.
But other than that...
posts getting 1000+/- votes in a mere day ... many ppl are investing energy and time in this
17:52
I would be surprised if even 1% of users are aware, and I would go so far as to say that I would not be surprised if even 50% of mods are unaware.
There are whole *.exchanges where none of the mods know, AFAIK.
I'd never guess, LOL.
I've followed some of it, but are like really loads of moderators resigning?
@skiwi IIRC, it's about 50 of them.
And many high rep users have decreased or suspended their activity (read meta comments and answers)
@Hosch250 20-something resigned, another 20+ are suspending activity.
17:55
Just, let us know if you need anything, alright? We run this ship together.
Damn, okay
1361
Q: Firing mods and forced relicensing: is Stack Exchange still interested in cooperating with the community?

amon The last weeks and days have seen some erratic behaviour by Stack Exchange Inc., such as likely illegal changes to the content license and the firing of an upstanding community moderator with no explanation except copy-pasted responses (leaving many to believe it was for no good reason). It wou...

I'm glad to hear you got a plan @rolfl
The current list, 23 resigned, 26 suspended activity.
-1
Q: Extremely basic login system in console, might use some constructive criticism

Code MonkeyThis is my first C# project. I still am a noob to programming, and while I'm happy I carried out this project, I know that my code needs A LOT of improving and that's why I posted it here. Thank you! using System; using System.Data.SqlClient; using System.Security.Cryptography; namespace Passwo...

@dfhwze No, CR.
At the moment, I don't care about the rest of the fleet. But this ship will stay afloat.
2
@skiwi - 143 mods signed the open letter. dearstackexchange.com
One way or another.
Seems like quite controversy going on these days
Hearthstone/Blizzard as well
I expect more controversy on thursday
there is a huge polarisation going on over the be nice policy
18:02
The licensing issue is still unaddressed as well.
@200_success can't find the current meta post, but a user has contacted SE over it and got no reply
I intend on contacting an attorney if Stack Exchange does not respond to my second direct contact by the end of the day Friday. I'm surprised they're not responding, given that the statutory minimum for a copyright violation is $750 per instance. There are over 15 million questions on Stack Overflow alone, let alone answers and the other network sites. If everyone actually bothered to sue, Stack Exchange would be bankrupt. Even if they weren't aware it's a violation it's still a minimum of $200 per instance. — jhpratt Sep 25 at 20:14
129
Q: Was the retroactive change to CC BY-SA 4.0 approved by Stack Exchange's lawyers?

jhprattOn 2019-09-05, Stack Exchange announced that all subscriber content would be available under the CC BY-SA 4.0 license. 34 hours after this announcement, I asked in a comment if that change had been run by the legal department. In the following days, I had not received a response, so I posted a fo...

yeah that one
Man, what a disaster. I don't even get the motivation behind the move - it's not like SE would financially benefit from using the 4.0 license... — JonathanReez 3 hours ago
This is my feeling exactly.
Although, my preferred preference would be to allow users to mark an original post as licensed under a certain license, and any editors have to explicitly agree to their modifications being licensed the same.
All of my posts would be under the unlicense.
But others would use MIT, Apache 2.0, GPL, CC by SA X.Y.
18:54
@Hosch250 Long story short: they wanted to improve, instead they screwed up.
@Hosch250 That would be a mess too.
@Mast I don't see how, as long as it stated the license clearly on the post.
@Hosch250 How many licences would you like SE to support?
All of them.
...
Well, more realistically, all the "standard" ones, and maybe have a place for people to upload custom ones (I bet less than .001% would).
And a license usually smaller than a good question, so it's not like space is an issue.
19:02
Storage space isn't the problem. Clarity might.
That's what the arbitration clause is for, right? :P
TBH, though, it wouldn't be any worse than a custom license on OSS software.
Custom licenses on one project are fine, for some values of fine. Giving millions of posts on the same network more than 5 licenses (a heck of a lot more if you include the less common ones and custom ones), I dunno, but that would turn SE into a lawyerfest.
Let them fix the current issues first.
@Hosch250 SE may actually want to only support strong copyleft licenses
the attempt to move to MIT was intended for the source code to be more copyable
I guess that makes sense, because I could see someone writing a license that prevents use of the code.
FWIW, is the unlicense copyleft?
I mean, it doesn't require all usage to make it open.
But it does make it itself thoroughly open.
19:17
If your code works and there is no issue, please consider posting it at Code Review. — Wiktor Stribiżew 27 secs ago
@Hosch250 copyleft is infectious
So, unlicense isn't copyleft, nor copyright?
Nice.
that's also why it's called unlicense
though it does assert some basic copyright it grants the rights to modification to everyone
19:18
Basically, I use three "licenses".
basically the unlicense doesn't kick yourself out of your copyright
Unlicense for IDGAF stuff.
@Vogel612 If it did, it wouldn't hold up in court as a license.
Apache 2.0 for stuff I might like to commercialize down the road, or just want to be linked back to.
And no license for stuff that's just for me.
@Mast which is the only reason why that's the case AFAICT
19:19
Yup
If you have a working GUI and you need someone to review your code and provide pointers then you should ask this question on Code Review. — Mike - SMT 17 secs ago
Isn't the whole point of the unlicense that nobody can take anybody to court because it's basically public domain?
19:55
1
Q: Even after I deleted an answer on my own question, the bounty required is still 100

JL2210I recently posted this question about a brainfuck interpreter in ANSI C. I answered my own question, but then realized that my answer was invalid, so I removed it. I then wanted to add a bounty to my question to draw attention to it. However, it now will require 100 reputation instead of the us...

0
Q: Educational implementation of SHA256 in Rust

AlexVA few weeks ago I decided to have a look at the Rust programming language. After a few standard exercises I chose to try to implement the SHA256 hashing algorithm, because why not. The algorithm's state is stored in a struct, similar to Python's hashlib. This is the lib.rs file: use std::conve...

20:39
0
Q: SQL query on relational schema

stefan lakinI'm trying to find the best solutions for operations on the following database: Employee (EmployeeId, Surname, Salary, DepartmentId) Department (DepartmentId, DeptName, City, Director) Project (ProjectId, ProjectName, Budget, Director) Works (EmpoyeeId, ProjectId) My queries: 1 SQL qu...

20:50
possible answer invalidation by Enrico Maria De Angelis on question by Enrico Maria De Angelis: codereview.stackexchange.com/posts/230256/revisions
21:11
@Hosch250 I think you misunderstand the U.S.: anyone can take anyone else to court for anything.
3
0
Q: Proper implementation of Django model inheritance architecture

MorganFreeFarmI'm building simple Django app for reviews of diffrent objects (restaurants, car services, car wash etc), so I started with the app, but soon I faced first problem, every object have features (but every type of object have different features), for example restaurants have (garden, playground, se...

codereview.stackexchange.com would be a good place to ask about this. — VoiceOfUnreason 50 secs ago
21:29
Good to know that transportation to court is a free market.
21:44
@VisualMelon thank you for offering to drive me to court.
21:57
This sounds like a job for the Code Review site, not Stack Overflow. — Prune 13 secs ago
0
Q: What is the best practice for the project structure for the specified java command line application?

forhadmethunI am building a simple Java command-line application. And I want to know the best practice and make my code clean. Can anybody suggest to me how many different classes I can make and what more method I need to write to make my code clean? How can I write unit testing for the methods? I am new to ...

 
1 hour later…
23:01
0
Q: Slow bubble_sort How can I make it faster?

RobbieAwesomebubble sort code very slowed compared to original def bubble_sort(a): #setting my variables yes=0 d=0 #making a switch while yes==0: if d>=last_thing-1: d=0 if a[0+d]>a[1+d]: #switching the order a[0+d],a[1+d]=a[1+d],a[0+d]...


« first day (2348 days earlier)      last day (1965 days later) »