« first day (2363 days earlier)      last day (29 days later) » 

12:00 AM
possible answer invalidation by walter nuñez on question by walter nuñez: codereview.stackexchange.com/posts/230185/revisions
RELOAD! There are 6187 unanswered questions (90.1182% answered)
12:19 AM
If you need a code review, post your code here: codereview.stackexchange.comR. Richards 14 secs ago
2 hours later…
2:32 AM
Code reviews should be posted to the Code Review site. — rmaddy 12 secs ago
Q: Merge Sort from Scratch in Python

ericI built a merge sort in python just to have a more thorough understanding of how the algorithm works. What I have written works fine, but I assume there is room for improvement and ways to make my implementation more efficient. I would appreciate any feedback or critiques! """ 2019-10-17 ...

1 hour later…
4:07 AM
@Duga rolled back
4:33 AM
Updated FAQ is up, and the original, controversial one is gone.
5:01 AM
Q: A clean and short binary search solution to find square root (int)

AlgebraI find vicarious ways to find square root in binary search, for example, a standard solution: def mySqrt(self, x: int) -> int: if x <= 1: return x lo, hi = 0, x while lo <= hi: mid = (lo + hi) // 2 if mid ** 2 <= x < (mid + 1) ** 2: ...

5:41 AM
> but… missed the mark a bit
You don't say...
I thought sarcasm was to be avoided huh? Oh well.
Well, it's a heck of a lot better than the original.
This one has different problems, but we can probably live with those.
6:01 AM
Q: OOP at the boundary

BarneyI'm trying to implement a simple service in the true OOP way. This means for me that the domain objects has no technical or non-business-related methods (in practice no getters/setters). Here are the domain interfaces to implement: public interface Person { void register(); void changeN...

Q: Dataframe containing value 0 should be removed or replaced?

Himanshu NegiI have a question that mostly I get stuck at. I was looking at the data for diabetes patient and found that most of the rows have 0 values under most of their columns. Reference for the url https://archive.ics.uci.edu/ml/machine-learning-databases/pima-indians-diabetes/pima-indians-diabetes.dat...

6:14 AM
I'm voting to close this question as off-topic because It's a code review request and should be posted at: codereview.stackexchange.comStultuske 24 secs ago
2 hours later…
8:00 AM
possible answer invalidation by Barney on question by Barney: codereview.stackexchange.com/posts/231171/revisions
@Duga rolled back
8:22 AM
maybe codereview.stackexchange.com is better for this kind of question — SuleymanSah 46 secs ago
8:42 AM
Q: C++ : Username System Program

Pankaj SuryawanshiCreate the username portion of a registration system that require all username unique. If a new user request a name that already used, an integer should be added to end of username to make it unique, The numbering begins with 1 and is increamented by 1 for each new instance per username. Exam...

@CaptainObvious RBA
9:02 AM
Q: Check time covered by employees

user12261788This program checks the time covered in the current month by employees. If a person has less than the required hours covered in the current month, a check about the overall hour coverage is done. Thus, if an employee worked 1 hour less this month but had worked 5 hours overtime throughout the p...

9:22 AM
It would be better if you showed the code - probably on Code Review, but make sure you check their help section first for whether what you're asking is on topic and how to frame your question. — Damien_The_Unbeliever 38 secs ago
Q: Which is clearer? Multiple if, or a "switch" based on a dictionnary?

GuimouteThe problem is pretty simple, I have a variable that can have 4 values and in turn another variable will be set to one of 4 other corresponding values. Which one is easier to read? if which_signal.upper() == "HIGH SENSE": lines = (1, 2, 3) elif which_signal.upper() == "HIGH": ...

@CaptainObvious Interesting, if it were part of a bigger question. Now it's just a snippet.
10:02 AM
Q: I want some comments about Rust code that read data from .txt file

Y. PI'm writing a code to read data from text file in Rust. The target files have two columns and non-fixed length rows, for example, example.txt 1 1 2 4 3 9 4 16 To achieve this, I wrote following code. use std::fs::read_to_string; pub fn open_file(filename: &str) -> (Vec<f33>, Vec<f32>){ ...

We are not here to solve some random Homework problems. post this on other sites for code reviewing. — Onkar Musale 36 secs ago
Just when I was starting to think the raging dumpster fires would quieten down somewhat:
Q: Why was Robert Harvey suspended?

SklivvzRobert, one of the most important moderators of Stack Overflow recently resigned. I have noticed his account was suspended today. Normally I would not ask, but given the open accusations of having already unfairly demodded one moderator, and the uproar that generated, can you clarify the ...

Not sure if that should even be fought out in public.
Worms. Cans of worms everywhere lately.
I'm voting to close this question as off-topic because SO is not for code review. Your question might be more suitable on codereview.stackexchange.com, although I strongly recommend you read their guidelines first to make sure it really is. — Max Vollmer 52 secs ago
@Mast if Robert wants to fight that thing in public, so be it
10:17 AM
By third parties, ugh.
it seems pretty contained and clear, actually
Q: Python - use difflib.get_close_matches to retrieve matched strings from a list of dict

cdrrrI have a list of dict as response from an API call: streets_dictionary = [... {'StreetId': 10863, 'Name': 'Zlataust, Street'}, {'StreetId': 10864, 'Name': 'Zmeu, Street'}, {'StreetId': 10865, 'Name': 'Zorilor, Street'}, {'StreetId': 10866, 'Name': 'Zotta Sever, Street'},...

10:42 AM
Q: Optimize code to find the lengths of strongly connected components in a graph

Clock SlaveI wrote a code to calculate the lengths of strongly connected components in a graph. The results I get are correct but it scales horribly. This is the code I have so far. I understand that the runtime complexity of a graph traversals should be O(V+E) and as far as I understand, I am not visitin...

11:03 AM
Q: PHP Wrapper in Web Application

user11918503I have a web application that logs the time that someone works and calculates earnings. I use PHP as a wrapper on most pages to manage the session and require the header and footer. This is how my pages are structured: // index.php <?php require "../req/session.php"; $titel = "Eintragen"; inclu...

@CaptainObvious RBA
11:52 AM
I understand. What if you ask the Jenkins administrators to create another "Gerrit Server" in the gerrit-trigger configuration? This server could be named "Gerrit-No-Votes" and have empty string in all "Verify" and "Code Review" fields. People can choose which server will be used in the job configuration. — Marcelo Ávila de Oliveira 49 secs ago
codereview.stackexchange.com when asking for better ways of how to write sth — jasie 27 secs ago
12:03 PM
Q: Java Stream with conditional method call

WirJunI am currently working on a generic way to create database queries with criteria API and Specification (code is based on this article, but I changed a lot, and there is not much left). One big issues with several Predicates is disjunction and conjunction which should be "reduced" in a stream. In ...

Somebody is casting a lot of LCC votes lately, without leaving comments and in situations of which I have my doubts.
Sure, they could use more context and this would improve the question, but the rules as-written don't disallow them.
@Vogel612 I assume Robert said something inappropriate?
@410_Gone that's what it looks like.
@Vogel612 But Robert didn't post that
Isn't holding him up as somehow un-suspendable the very epitome of elitism that many people hold as the reason they don't go near SO?
from what I can tell (and what I personally also do), mods (and CMs) leave quite some leeway on what people can say without being suspended around this change
12:09 PM
I have seen that myself
it's not going to be productive to moderate grey-area stuff that would be fine to moderate otherwise
because that will just result in more people grabbing pitchforks and throwing more gasoline on the fire
@AGirlHasNoName There's a lot of mud slinging going on by so many parties...
@Mast yea, but this and that are different
If the code is running but you feel there can be an improvement, then consider posting it on Code Review instead. It's of topic on here. — JvdV 46 secs ago
If I do something suspendable on any site, I should be suspended
and the same applies for any other mod
12:12 PM
@Vogel612 that's already happening. The witch hunt for the flag brigasde that is responible is forming
IMO this is a private matter that should be discussed between SE and Robert, not on MSE.
Especially not while he's suspended.
It's 7 days, not the end of the world.
@Mast it's not even clear that a CM suspended him, actually
it could have been one of the MSE mods.
@Vogel612 Somebody did.
@Mast Boils down to the general "entitlement" I mentioned when this mess began. The person asking feels owed something.
Don't think it really matters who.
Their problem.
@410_Gone Yea, that has been going around a bit lately.
12:14 PM
A lot of the SE users feel entitled to a lot of things these days, it seems.
@AGirlHasNoName yea, I saw gnat's post, but gnat is always like that.
true ^^
"You owe us an explanation!"
it's never going to happen. If SE releases flagging information on any significant number of flags to anyone I'll quit right then and there
@Vogel612 But he has support and it isn't the first post. I'm at the center of it and I am terrified it is going to escalate.
12:15 PM
I'm just glad we still have a platform without having to pay for it.
SE doesn't have to do anything for the witch hunt to escalate. People take matters into their own hands all the time.
@AGirlHasNoName Huh? Unless you're one of the people that flagged his comments, this isn't about you. If you are one of the people, I'd friendly reccomend you not to confirm it. Might just make some people mad without anything constructive getting done.
@AGirlHasNoName witch hunts should be quite easily justiciable with suspensions
Flags are anonymous. Keep it that way.
@AGirlHasNoName +32/-14 isn't really what I'd call "support"
12:17 PM
@Vogel612 Yup. Witch hunts are going against so many of the rules that it's suspension worthy to say the least.
it's very much not in SEs interest to allow any with hunts on their sites and if push comes to shove and the moderators that should deal with it don't, then SE most likely will
@FrédéricHamidi I agree the users that participate in these mobs are the core issue here. meta.stackexchange.com/questions/335375/…dfhwze 2 hours ago
@Vogel612 but it has been happening
It's one of the few things I'm still sure about. This isn't going to escalate as much as people think it will.
@AGirlHasNoName I've seen that comment, note who wrote a comment below it.
That post linked above targeted me specifically. It was later edited out but everyone has access to the edit history and many people saw the accusations before it was editted.
Since the user that wrote that comment has made accusations of flag abuse toward me directly
Many other people have as well.
You're not asking for additional moderator scrutiny. You are asking for things to be made public that are best kept private. It really comes down to whether or not you trust the mods. And, seeing as none of us trust SE anymore, so there is nobody to escalate to, if you don't trust the mods either, then there's even less point in asking for this. You would have no reason to believe anything they say. So I just can't see any point to asking for data you wouldn't believe anyway. — terdon 3 hours ago
12:21 PM
On top of that there are probably hundreds of comments alluding to flag brigades
It already is a witch hunt
@Mast yes there are many level-headed people. Your comment was a good rational response as well. The pitchfork wielders are the ones I'm referring to.
Q: Simple n-body class in C++

SamuelAs part of my training, I implemented a n-body class in C++ to get more familiar with features that C++ offers such as object oriented programming. Please be as hard as possible with this implementation and give me constructive feedback. I would appreciate advice especially in the following ar...

Q: Issue with python program

Hannah Moimport random lines = open('Songs.txt').read().splitlines() myline =random.choice(lines) split_line = myline.split(',') songname = split_line[0] artist = split_line[1] print(songname) print(artist) guess = input("Enter guess: ") print(guess.upper()) if guess.upper() == songname: print("...

@CaptainObvious broken
@AGirlHasNoName FWIW there was a similar post around the SOCVR and also drama around the IPS Comment bot
@Vogel612 If the mob decides that I am directly responsible for Robert Harvey being suspended it won't end well for me.
Perhaps you should submit this to CodeReview instead — Innat3 30 secs ago
12:26 PM
@AGirlHasNoName If you want/need I can try getting you a direct comms channel to the company
I'll do my best to protect everyone here on the site
@Vogel612 I've tried raising numerous custom flags but I don't even know if they get up the chain.
@Innat3 It would need more context before it's welcome on Code Review. We can't meaningfully review the current code. — Mast 22 secs ago
One more VTC please.
I know that the flag queue on MSE is extremely full and I know that the appointed mods have decided to abstain from dealing with most of the mess around the CoC to not get caught between the fronts
so your flags are most likely being handled by CMs
@Vogel612 that's what I assumed
12:29 PM
@AGirlHasNoName Should anyone take the fight to this room, the ROs and mods here will take care of them. No worries.
I appreciate your support @Mast @Vogel612
@Mast don't forget the regulars
What happens on the rest of the network, I can't say. SO has been hostile at times to just about everyone, so, some places on the network...
@Heslacher Sure, figure most of them won't tolerate it either.
I believe this is better placed at: codereview.stackexchange.comKnoop 14 secs ago
@Mast Part of the reason I had to ditch my RO is I'm out for blood now.
12:34 PM
@410_Gone I get that. I am the last person that should have any kind of boot or hammer right now.
I've learned that giving me a hammer makes me behave.
I'm more careful with deadly tools around than without.
Even when angry.
I have had more xenophobia, transphobic, and racism this week than I have the energy to be patient about.
Funny how that works completely different in others.
I do drink less coffee when around dangerous equipment though. Too much coffee and heavy machinery is not a good combination.
@410_Gone big reason why I've kept off of MSE for the most part
@Mast For me I can normally agree with you, but this subject is very personal to me and I react very emotionally to it at times.
Yeah I shoulda stayed away too.
But too many good voices were staying away. So only the ugly ones got to speak.
12:40 PM
FWIW it feels incredibly complicated to handle the flags on CR around this that aren't "no need to think at all"
I'm weirdly glad that we're getting flags around this on CR, though
@Vogel612 I was about to comment on that, yea.
Haven't seen much flag-worthy things going on out of the ordinary.
Last I check we were missing the storm.
Trolls go elsewhere, nobody has been complaining.
We lost a mod and a user, perhaps a couple more users, but nothing major going on right?
Q: Angular ng-for Odd/Even Scenario

mersaCSJust wanna ask you to review my code. I just want to create masonry vertical layout with two divider .card-left and .card-right. Anyone have an idea to place #cardTemplate in left or right based on data Odd/Even. Or maybe in my .ts separate odd/even array. HTML: <div class="card-container--gr...

@Mast just the day to day nonsense, yes :)
Good, good.
12:58 PM
@Vogel612 I'm fighting this crap on SE, Twitter, and in real life right now.
@410_Gone thanks for doing that :)
Have a pending A/B for something that happened yesterday, so if y'all don't see me for a while I'm in jail. 😉
"administrative and boring"?
Assault and Battery.
@410_Gone I agree, kudos.
1:00 PM
Someone called a Middle Eastern friend of mine some things they shouldn't have.
@410_Gone ughh stay out of jail. you are more effective as a free person.
But it is what it is. I have no regrets.
@AGirlHasNoName Police dropped the changes (because of the situation) so at this point it's a civil matter and I'll get 30 days, max.
@410_Gone ohh word. Then it was totally worth it.
But, in order for that to happen they have to prove that the beating was unwarranted, and to do that he has to repeat what he said in open court...I don't think he'll do that.
@AGirlHasNoName We'll see. They're trying to figure out how to hear the case, I know every civil and criminal judge in the area, they're all friends of mine.
But, it is what it is. I'm not worried. Regardless of the outcome, it was worth it.
It made me feel 10x better, and now I get free food at the restaurant it happened at for life. ;)
@410_Gone Don't get blindsided, and best of luck.
1:09 PM
@Mast ¯\_(ツ)_/¯
@410_Gone You got an interesting way of making friends.
Sounds like you were in the right place at the right time and somebody disagreed. shrugh
@Mast The Middle Eastern person owns the restaurant.
@Mast I go there 4x a week for lunch anyway, just happened that this bigot came one of those days.
1:23 PM
Q: program to generate a random maze C++

Kmf#include<iostream> #include<conio.h> #include<windows.h> #include<stack> #include<time.h> #define order 21 using namespace std; class cell { public: bool visited; bool topwall; bool botwall; bool leftwall; bool rightwall; char display; }; void initialize(cell Matrix[order][order]); void redra...

@CaptainObvious Closed within 20 minutes.
Would have been faster closed if @CaptainObvious wouldn't be so slow.
@Mast Does it still need a VTC
@pacmaninbw IMO, yes.
Unless you consider it reviewable in the current form, of-course.
1:35 PM
possible answer invalidation by Fabrizio on question by Fabrizio: codereview.stackexchange.com/posts/230842/revisions
This would be probably better on codereview.stackexchange.com — Sulthan 18 secs ago
@410_Gone If the case becomes civil, it is about money and not jail time. Are you sure the police dropped the A&B because it is a felony. If they case actually goes to court there isn't a lot knowing the judges can do for you because it is a trial by your peers.
Q: Reduce Memory footprint if possible

advapiI have the need to synchronize a mobile database with the main database one. The idea is the following. I've got a REST service that accepts in input the name of the table I need to sync (with a DateTime, since the next time the data exchanged will only be the delta from last sync to the date I p...

If you know all the judges in the area, the attorneys will move it to a different venue.
@410_Gone ^^
@pacmaninbw Yeah. They dropped A/B, left "Disorderly Conduct" on the table, but it's contingent on the outcome of the civil suit (that's where the jail time comes in). Because I know every judge personally, they're still establishing how it should be heard. (What court, what district, etc.)
@410_Gone Hope you got a decent trial lawyer.
1:51 PM
@Duga Rolled back.
Welcome @thesecret
@pacmaninbw Basically: police are refusing to deal with it, so they're attaching it to the civil suit. The civil suit can't be heard in Michigan, so that further complicates matters because I know every judge in my county and the neighboring ones. (For this reason.) And, the guy might be dropping it because both lawyers advised him the only way he is going to win is to repeat the conversation that happened, because there are no security cameras. ;)
@410_Gone Could he try lying his way out of it?
@Mast I have 6 witnesses on my side, so not likely.
1:53 PM
Good news about U.S. civil suits is it is not about "reasonable doubt", it's about a preponderance of evidence. He has to have more evidence it was an unwarranted whooping than I have evidence that it was warranted.
They might smack you on the fingers a bit then, but I don't expect anything serious.
If even that.
I'm getting a $250 fine for the disorderly regardless.
Small price to pay for justice.
It's not right, but that's the way it goes.
@thesecret What brings you over here anyway? Haven't seen you around lately.
Welcome anytime, of-course.
@Mast I donate more than that to charity monthly. /shrug
@410_Gone That's you, what if this happened to someone less fortunate?
1:58 PM
@Mast Agreed. It's unfortunate, but it's the privilege of being not poor. :/
@Mast "Disorderly" is a misdemeanor no long term jail sentence often applied to drunks. A criminal trial requires 12 peers in the US, a Civil Suit can be much less than that. There is no Guilty in a Civil Suit, but there can be hundreds of thousands of dollars involved.
The loser in a Civil suit ends up paying both sides lawyers.
@Mast No particular reason, just clicked "rejoin favorite rooms" since I haven't been on chat.se in a while. I've been super busy over the last month or so :/
Q: WP/PHP getting API data and using hook

Captain RonBelow are the two things I'm trying to solve, logically. This is just a proof of concept; and I'm not implementing this on real data nor via full plugin at this time. Just looking at logic and syntax solutions. Below are the (2) requirements. 1.) Given an API route for retrieving a specific re...

Q: Filter string with min distance in r

BigDataScientistI have the following sample data: target <- "Stackoverflow" candidates <- c("Stackflow", "Stackflow", "Stckoverfow") I would like to filter the string from candidates that has the lowest (levensthein) distance to the target string. I decided to use the pipe operator to improve readability. Ho...

@pacmaninbw Yeah, it'll be a great time if that happens
@mickmackusa No, I really have not considered improvements in efficiency or elegance, for me it was a challenge just to get the result. and I know it's not the best, but I don't have the knowledge to improve the code further. I would like to take it to the code review, but I don't know how to avoid the double post. — walter nuñez 52 secs ago
2:20 PM
@thesecretmaster Ah, good to hear this place is still on your favourites list :-)
2:33 PM
anyone have the last developer survey results link handy?
May 21 at 14:07, by Feeds
Julia Silge on May 21, 2019

Are education level and job (or career) satisfaction related?

What are the pros and cons of remote work?

Are people in tech overworked? Specifically who, and how much?

Apr 9 at 13:40, by Feeds
Julia Silge on April 09, 2019

Python, the fastest-growing major programming language, has risen in the ranks of programming languages in our survey yet again, edging out Java this year and standing as the second most loved language (behind Rust).

Over half of respondents had written their first line of code by the time they were sixteen, although this experience varies by country and by gender.

We asked respondents to think about the last time they solved coding problems with and without our site. The data indicates that Stack Overflow saves a developer 30 to 90 minutes of time per week! …

So, codereview.stackexchange.com/review/close/124132 voted to close. I want to comment that this might be better for softwareengineering.stackexchange.com , that is true right?
If your code works as intended, it belongs elsewhere (probably codereview.stackexchange.com). SO proper is all (and only) about fixing broken code — The Head Rush 1 min ago
@konijn Meh. If he provides the entire page it would be fine here, I think.
Now, it might be closed as lacking context.
2:44 PM
Q: Bloom Filter, Simple C++ Implementation

asymmetriqSo, I'm coding a simple Bloom filter. Current implementation works as expected, but I'm looking for ways to improve efficiency / speed. The code is being tested on a large chunk of data (~30k+ lines), so every little bit counts. Also: Is there any way I can initialize a vector only one time,...

Q: How to write this function such that autopep won't complain?

juniorprogrammerI would like to write a function that downloads a file https://www.ohjelmointiputka.net/tiedostot/junar.zip, unzips it and returns the content of junar1.in found in this zip. How can I make it in Python so that PEP8 won't complain about the long line? My effort was: def download_and_return_conte...

I'm not particularly sure in this case.
Greetings, Programs.
Yaakov Ellis on October 23, 2019

As Principal Web Developer at Stack Overflow and a long time Tech Lead, I learnt that accurate estimates were essential in order for a company to be healthy and productive. Over the years I have spent a good deal of time developing my theories for why estimates and breakdowns are so important, and crafting my own methodology for how best to go about doing them. 

Below, I attempt to distill the lessons I’ve learned so that others can experiment with and improve upon my techniques. Now, I should be clear, the advice below is what works for me. I’m sure there are different approaches that might work better for others. Feel free to share your favorite approach in the comments. …

2:54 PM
Does the code really not work, if it doesnt, why doesnt the downvoter put a comment about that.
3:18 PM
Welcome to Stack Overflow! If you want help improving working code you should post this on CodeReview.SE. If you do decide to do so please delete the question here. — NathanOliver 49 secs ago
Welcome to Stack Overflow! If you want help improving working code you should post this on CodeReview.SE. — Reinstate Monica 15 secs ago
Q: Ubuntu 18.04.3 LTS get terminal columns and rows NASM

Shift_LeftAs part of the prologue of all my console applications, I need to determine the extents of the current terminal so if there are less than 132 columns or 43 lines the user can be warned output may not appear as expected. Code has been tested with; $ AppName /usr/include/*.h which passes 112 ...

3:54 PM
4:13 PM
@konijn I think whoever cast the vote has misunderstood the question.
PEP8 complaints don't mean the code doesn't work as intended.
Some people are a bit overzealous at times, comments would help.
We are in sync ;)
4:24 PM
Q: Should handle shutdown signals in app main file or in actual HTTP server file in Golang for graceful shutdown?

BentCoderI am trying to find out if there is any difference between two implementations that currently do same thing - gracefully shutdown application/server, for example when Ctrl+C is hit. Both works fine and are based on the documentation. What a friend of mine says is that, the example 2 handles shut...

4:43 PM
Q: Strong Password Checker (Python)

EmmaProblem Write a program to return True, if a string is a strong password. A password is considered strong if below conditions are all met: It should have at least 6 characters and at most 20 characters. It must contain at least one lowercase, one uppercase and one digit. It must NOT contain...

Q: Wrote some code to easily interact with two external apis

american-ninja-warriorRecently I rewrote some methods/functions written by a previous developer mostly due to the fact that the previous implementation overdid the whole 'OO' thing, and used inheritance inappropriately. The code also leaked memory like crazy in production long running tasks, so my rewritten code (pas...

5:05 PM
I originally asked this question but it's closed now so I can't add an answer. I came across the following chart in "Best Kept Secrets of Peer Code Review" page 123 from a study at IBM. Phase - Cost to fix Requirements - $0 Design - $45 Development - $275 QA/Test - $33,000 Customer - $141,000 — Matt McCormick 37 secs ago
Q: Simplest lexer for c in go

Greg ElledgeI started learning compilers development and as pet project decided to implement c compiler. The first step is implementing simplest lexer. Also, I decided to try new programming language and chose go. This is my first go program and I will be grateful for any advice. Thanks. package lexer impo...

5:46 PM
That works if you know you only EVER want to check for True. You may however decide later to find the other path, in which case substituting True for a variable would instantly make this more flexible. I like explicit for this reason in this scenario for code review later. — eatmeimadanish 52 secs ago
6:26 PM
Q: Python 3 code to generate simple crossword puzzles from a list of words/anagrams

Michael AThis code takes a list of words that all (pairwise) share at least one letter, e.g. words = ["forget", "fret", "for", "tort", "forge", "fore", "frog", "fort", "forte", "ogre"] and creates what I'm calling a "sparse crossword" puzzle that looks like this. -------FORT ----------O ------F-FOR --...

Small code review: evalOp would be better implemented using liftA2 op (eval d x) (eval d y)4castle 7 secs ago
6:46 PM
Q: Code to use a pitch bend from a MIDI controller to scroll

madpropsI've been creating some mappings to control my linux system with my Launchkey midi controller. It works pretty well. Recently I decided I wanted to use the pitch bend (it's a slider that you can move up or down, and when released it goes back to the original position) to scroll, for instance move...

Q: Create a structuringselement in the form of a line with a certain degree and length

HJA24Within Matlab there exist a function to create a structuringselement in the form of a line. SE = strel('line',len,deg) creates a linear structuring element that is symmetric with respect to the neighborhood center, with approximate length len and angle deg. For a couple of morphological operatio...

7:23 PM
Sounds like you should wrap this in a method and post it on codereview.stackexchange.comRufus L 16 secs ago
Q: Managing adjacent components

TakiSo, I managed to create a minimalistic example to reproduce the confusion I'm facing, here's a working SandBox. I have a page ( see the Profile page ) that has a header, a menu and two views, each view should display the right component when the user clicks on a link in the menu, In the page ...

7:40 PM
I'm voting to close this question as off-topic because this is more appropriate to codereview.stackexchange.com — Sam Axe 21 secs ago
7:58 PM
8:28 PM
Q: The best practice of writing actions in react-redux with redux-thunk

Dawn17I am using react-redux in my webapp and redux-thunk to call async requests. Here is how my action file looks like import { header, get_options } from './apiUtils/options' export const REQUEST_BEGIN = 'REQUEST_BEGIN' export const FETCH_DB_SUCCESS = 'FETCH_DB_SUCCESS' export const REQUEST_FAILUR...

8:50 PM
possible answer invalidation by FlySpaceAge on question by FlySpaceAge: codereview.stackexchange.com/posts/209463/revisions
9:29 PM
Q: Making an Artificial Neural Network (Java)

SuperhumanSo i'm trying to make my first ever Artificial Neural Network in Java. I just about got it working the way i needed to, but the numbers outputted aren't what i want. I'm trying to use Backpropagation and Gradient Descent. I think it isn't working right because I'm running gradient descent on ea...

9:42 PM
@Duga looks okay- just removing portal ID ( similar to API key ?)
this is a better fit for Code Reviewjuanpa.arrivillaga 27 secs ago
10:13 PM
if you post on Code Review please read the help center pages like How do I ask a good question? - in its current form this post would be considered off-topic because there is little context about what the code does and how the function is used, plus the title is about CR goals instead of describing what the code does — Sᴀᴍ Onᴇᴌᴀ 29 secs ago
11:00 PM
possible answer invalidation by Y. P on question by Y. P: codereview.stackexchange.com/posts/231184/revisions
@Duga Recommended by a commentator, does not invalidate answer.
After reading the link that Robert shared please take the tour at codereview.stackexchange.com and consider if what you are asking for is code review. — Jason Aller 8 secs ago
11:30 PM
Oh yeah! What I am asking for is definitely code review. I didn't know that website existed. Thank you for directing me. — Adel K. 28 secs ago
Q: create an unbeatable tic tac toe using JavaScript

Kenneth GandonouI am a beginner in JavaScript and i try to create my first tictactoe game just for fun ,but when i create it, the regular tictactoe was working (2 player ) but when i try to add a AI move by using the random ai it was not smart so i I try to add minimax algorithm to make my tictactoe AI unbeat...


« first day (2363 days earlier)      last day (29 days later) »