« first day (2049 days earlier)      last day (1976 days later) » 

12:00 AM
RELOAD! There are 5858 unanswered questions (89.7152% answered)
 
@SᴀᴍOnᴇᴌᴀ Both RBA now. Guess OP learned.
 
@Mast perhaps
 
12:15 AM
If this code is running. i.e. it basically works. You can get a review at [codereview](codereview.stackexchange.com) — Martin York 5 secs ago
 
@SᴀᴍOnᴇᴌᴀ Regarding this. Considering anyone above 200 rep can still post questions without code blocks, I'm this close to saying the collateral damage is unfortunate but acceptable.
 
@Mast I see
 
It's not ideal, not entirely fair either, but if it's going to stop 5-10 crap questions a day while also stopping 1 a month it shouldn't have, eh, it's a bit of a numbers game.
Got to do something to keep moderation manageable with increasing size.
Thanks for bringing it up though.
 
Sometimes technology can really be a double-edged sword...
 
@SᴀᴍOnᴇᴌᴀ I'm waiting for the moment a self-driving car goes haywire because somebody decided to dress up as a traffic-light with Halloween.
 
12:22 AM
with or for Halloween?
 
Either.
 
I'm not picky.
 
like the Movie...
 
12:38 AM
You can also have code review badges added to your README.md on the github repo. See: github.com/Loki-Astari/ThorsSerializer/blob/master/README.mdMartin York just now
 
1:19 AM
0
Q: A simple web scraper

FangI've written a simple web scraper in Python. As it is my first venture in Python, I'd like to ask for a code review from more experienced coders. All input is welcome. A little bit of background: I'm a huge fan of video games. In Japan, there is a company called Media Create which tracks all sa...

 
1:29 AM
TTQW
 
0
Q: Chart of answered CR posts percentages over time - Part 2

Sᴀᴍ OnᴇᴌᴀI created a graph to show the change in the percentage of questions answered over time and the first version fetched data from chat transcripts using PHP. The subdomain I have registered for my webspace doesn't offer HTTPS so the calls to file_get_contents() would fail when run there. Because of ...

 
 
2 hours later…
3:20 AM
0
Q: Expiring JWT tokens in Flask

alecxeI've been using flask-jwt-extended for my application and one of the problems I had was logging a session out and making sure the token is not usable anymore. I've based my solution on the Blacklist and Token Revoking documentation page with a custom RevokedToken model: from flask_sqlalchemy im...

0
Q: Faster way to transform full names to surname and initial

theotheraussieI have a large data frame that I want to merge with another dataset. In order to do so i need to get the names of individuals into a certain format. The function below converts the name in 'column' to the desired format (mostly) and stores it in 'newColumn'. My question is, is there a better (fa...

 
4:08 AM
0
Q: Golang routine management

Евгений ГусевI wrote a simple example of stopping go rutines. But I think that this can be implemented better. Please see my code package main import ( "fmt" "time" ) var chans = map[string]chan int{ "test1":make(chan int), "test2":make(chan int), "test3":make(chan int), "test4":mak...

 
4:23 AM
0
Q: LeetCode 234. Palindrome Linked List, a TLE wired case

Li JinyaoHere is my AC submittion. And I found a wired circumstances when I remove this line dumyHead->next = NULL; my submit will TLE. I know if I don't set it to NULL it will cause a loop reference, but I use len as a counter to iterate over the list, so when len <= 0 the loop will stop. I run in my lo...

0
Q: CSV and Random class missbehaving

DavesdereSo I was trying to generate a quick test file. I wanted to have 5 columns and 15 rows of random numbers. Naively I went like this: import csv import random with open('fichiera.csv', 'w', newline='') as csvfile: randomwriter = csv.writer(csvfile, delimiter=',', quotech...

 
5:17 AM
Monking
 
Monking
 
 
1 hour later…
6:25 AM
0
Q: Simple Calculator Using Methods Problems

Yvng TrvnksI am working on a calculator program for my class and im using methods and i have to take the entire equation in on one line and then separate it afterwards and that is where i am running in to a problem. I mainly need help parsing my string in to a double I have already made this code, if any...

 
 
2 hours later…
7:56 AM
@SᴀᴍOnᴇᴌᴀ ugh. I'm a convinced rider myself, I know what it means to go home under heavy raining ... I'm glad you're going well :)
And haha, that's a funny thing to get such answers after a long time ... Surely OP found the solution to their issue a long time ago, I guess?
 
8:26 AM
Monking
 
8:44 AM
0
Q: Custom indexOf javascript with regex

albert cahyawanhi I was wondering how efficient my code is creating custom indexof in javascript using regex instead of looping for the whole way in most solution I find and I believe this got O(1) since no loop is needed. the idea is to use regex that put either the key or any list of word that is not key, th...

 
@Zeta Monkin' !
 
For a pure VBA approach to try-catch, look into this answer. — Oliver Bienert 43 secs ago
 
9:17 AM
With all respect, I would decline such approach in the code review. It's misleading, causing non-obvious overload resolution, and not much help from compiler to figure out why that code breaks. It's too C-plus-plusish, sorry. — Yury Schkatula 37 secs ago
 
9:45 AM
0
Q: In Knockout.js how to add computed property to observable array?

iljonI'd like to add computed property to observable array. Would you let me know how to do it. I would like to add lineTotal computed property to each element of an array. Here is my code: function ItemsIndexViewModel(model, url) { var self = this; self.url = url; self.items = ko.observableArray();...

 
9:55 AM
@Feeds wants new feature but we don't do this
 
10:10 AM
I wonder whether this would be better suited on Code Review. However, you need to make sure your code really works. — Peter Wood 37 secs ago
If the code works correctly it would also be on topic for code review. Although the first line is syntactically incorrect. — user202729 57 secs ago
 
10:30 AM
possible answer invalidation by Michael B. on question by Michael B.: codereview.stackexchange.com/posts/209573/revisions
 
0
Q: "B1ff filter" reads and returns message

NickThis is a programming excercise from chapter 8 of a C learning book by K N King. The program should prompt a user for a message, and return it after translating it to B1ff speak. e.g A->4, b->8 etc The program works as asked in the excercise, however how can I create a more efficient declaration...

 
I'm voting to close this question as off-topic because it belongs to codereview.stackexchange.comGabriele Petrioli 39 secs ago
 
@Duga rolled back
 
Side note: your function uses 3 variables (src, inverse and tracker) but it has only 1 parameter (src). For that reason it would definitely not pass my code review, regardless of how you structure the ifs.... — Peter B just now
possible answer invalidation by Andrew Boklashko on question by Andrew Boklashko: codereview.stackexchange.com/posts/207879/revisions
 
10:47 AM
0
Q: Database as a config and class structure to call it

devI have question regarding best practices. I've decided instead having config inside either app.config or xml file to have my config file inside sqllite file database. This config will contain basic information for specific class. Config will be managed from sqllite database browser. My question i...

 
10:58 AM
@Heslacher Arguably they invalidated it again. Opinion?
 
I'm voting to close this question as off-topic because there are multiple fatal errors in the provided code and fixing one just surfaces another. There is no practical single answer that will fix this and it's not suitable for codereview.stackexchange.com in this state either. — Graham 59 secs ago
 
11:13 AM
@Mast I would let it slip
 
11:25 AM
possible answer invalidation by dev on question by dev: codereview.stackexchange.com/posts/209602/revisions
 
@Heslacher Agreed.
 
@Duga rolled back
 
0
Q: Reflection Optimization for export CSV on large scale C#

o.NassieSo, I'm building export/import CSV helper. I have some performance issues in the code below. it takes me to parse CSV of 25,000 rows at 7 seconds. If someone can help, it will be awesome! public System.IO.Stream ParseContent<T>(IEnumerable<T> entities) where T : class { i...

 
@Feeds fails for right hand input
6
Q: Van Emde Boas tree -based map in Java

coderodde(Follow-up question: Improved Van Emde Boas tree based map in Java) For the experimental part of my MSc thesis I was working on van Emde Boas tree, and I have this: package fi.helsinki.coderodde.searchheapbenchmark.support; import java.util.Collection; import java.util.Collections; import java...

what use is an obsolete question
it's a question with a followup and no answers
 
11:48 AM
0
Q: Bin packing variant

Arthur HavlicekTo recall what is a bin packing algorithm, a bin packing algorithm is an algorithm that optimises the number of bins of a certain size used to hold an arbitrary number of objects of varying size. In my variant I also work with a second constraint that is the bins must hold a certain minimum size...

 
Monking
@Pimgd marked as forward duplicate
 
ooh clever
 
12:04 PM
0
Q: Replace anchor tags with spans, and place the href attribute into the span

OliverRadiniI'm required to perform a slight conversion on a string which contains html. The conversion should transform a elements such that they become span elements. The conversion should also place the href attribute from the original a element into the span. I have what I think is a working solution, ...

 
12:50 PM
0
Q: Game of life in Go

smoqadamI wrote the Game Of Life algorithm with Go. There are a million ways that we can implement the algorithm, but I want to know is it implemented in good-way or not? I wonder how can I improve the performance and the code quality? package main import ( "math" "math/rand" "strconv" ...

 
1:06 PM
0
Q: SPOJ is giving WA for this solution of ROCK

Invictus31I am solving ROCK problem on SPOJ. I dont know why I am getting WA here. Tried many testcases. #include <bits/stdc++.h> using namespace std; #define fastIO ios_base::sync_with_stdio(false);cin.tie(NULL) #define pb push_back #define mp make_pair #define ll long long int #define ull unsigned long...

 
1:21 PM
0
Q: Repeating a task that may fail

TrauerAlmost like this question here, I'm playing with some methods that may fail, but in my case, the method failing is not a exceptional case; it just means I need to try running it again. The method I'm writing is inherently stochastic, so running it multiple times yields different results. Some ar...

 
2:07 PM
0
Q: Bugy crossover using networkx

adnanmuttalebI have implemented this tree crossover operator using networkx. def corssover(parent1, parent2, f1, f2): child1 = parent1.copy() child2 = parent2.copy() sub_graph1 = nx.ego_graph(child1, f1, 100000) sub_graph2 = nx.ego_graph(child2, f2, 10000) child1.remove_nodes_from(sub_g...

 
Questions asking about best practices are off-topic on SO (Is a “best practice” question off topic?). Consider asking it on softwareengineering.stackexchange.com instead. Or you could provide a full code with enough context and post it on codereview.stackexchange.com. — Georgy 15 secs ago
 
Greetings, Programs.
 
2:23 PM
0
Q: Functions to handle big numbers in C

Hamza El BouaziziIm working to implement some simple bigints functions for addition, multiplication and powers they work correctly but the larger the numbers the longer the time it takes. For example 2^10000 takes a very long time I will try to include all the funtions i'm using char *ft_strnew(size_t size) ...

-1
Q: Yatzy JavaScript

SlipsknuteNNeed help if anyone could help me with the following in JavaScript Depending on how many sexes you've hit, convert it to the following answers 1 = It became a six 2 = You got a pair 3 = You got three 4 = You got quote 5 = YATZY The function should look like this: function analysis (antSex) {...

 
2:38 PM
0
Q: Function to return subword of a camelcase string

Eugene YarmashGiven a camelcase string and an index, return the subword of the string that includes that index, e.g.: find_word('CamelCaseString', 6) -> 'Case' find_word('ACamelCaseString', 0) -> 'A' My code: def find_word(s, index): for i in range(index, 0, -1): if s[i].isupper(): ...

 
3:09 PM
0
Q: First non-repeating letter

Kevin SThe problem: find and return the first nonrepeating character in a string, if the string does not have a nonrepeating character return an empty string. For purposes of finding the nonrepeating character it's case insensitive so 't' and 'T' appearing in the string would imply that that 't' and 'T...

 
3:24 PM
0
Q: Parallel Foreach loop

samGetValuesFromDB will fetch values from the DB and return a new object which will have SubStatus. ProcessCounter is a class that defines SafeCounter for Processed, Passed, Failed and Skipped. The Construction set all of them to 0. scheduler defines the MaxDegreeOfParallelism. GetValuesFromDB or D...

 
3:47 PM
@Feeds broken
 
posted on December 13, 2018 by CommitStrip

 
possible answer invalidation by Kevin S on question by Kevin S: codereview.stackexchange.com/posts/209622/revisions
 
4:10 PM
Hey there
@Duga rolled back
 
This is off-topic for Stack Overflow. Questions like this about working code should be posted at CodeReview.StackExchange.com — Tab Alleman 38 secs ago
 
4:28 PM
@CommitStrip (-‸ლ)
@avazula yeah I left an answer partly because nobody else had... it took the OP nearly a month to respond, which seems somewhat average for some users on CR (at least those I provide answers for)
 
4:57 PM
0
Q: JavaScript Code Construction for recording Node Tree Changes

LeDocI have a node tree structure that renders database information in the browser using vis.js - see this. I won't use the actual table entities, but suppose it's something like: building floor office room In particular, I am wanting to write an object that holds an array of all the node details....

 
5:12 PM
This isn't a code review — Joakim Danielson 49 secs ago
 
Monking
It's time for christmas hats again?
 
@CommitStrip Awfully accurate description of the average recruiter.
@skiwi Winterbash has come, yes.
 
5:53 PM
If you have a working solution but want tips on improvements, you should post it to the Code Review section of Stack Exchange. — mypetlion 58 secs ago
 
There aren't enough warm days in winter...
 
6:27 PM
@Donald.McLean Ordered a sofa and loveseat for my new house...one more set of purchases down.
 
@202_accepted Our biggest problem was curtains. Two and a half years later we still have one room that doesn't have any window treatments.
 
I lucked out: the lady that lives there now is leaving all the window treatments.
She's also leaving the patio furniture.
 
We got a new construction house, so we started with nothing.
 
Yeah, buying used definitely gave me a couple advantages there.
 
Of course, this is our third house.
 
6:31 PM
Wow, that's crazy man.
The woman who I bought this from has owned the house since she and her husband built it in 1977.
 
We've been married for 32 years.
 
@Donald.McLean after 5 years there is one room that doesn't have a curtain up... I have a curtain and curtain rod to install but it hasn't been a priority
 
@Donald.McLean Congrats! :)
 
The 33rd anniversary of our first date was last week.
 
Very cool. I've been dating my GF for 3 years, maybe? Not quite sure when we started dating...
 
6:34 PM
Many of the dates in our family are coincident with other things. Our first date was on Dec 7th, so it will live in infamy. :-)
 
Ouch, sometimes that makes things awkward...
 
@SᴀᴍOnᴇᴌᴀ It's winter. What did you expect?
 
Our wedding anniversary is my wife's half-birthday. One of our daughters was born on the actual Memorial day and the other was born on our wedding anniversary.
 
We've had more warm days than we should've this winter. But that's not surprising since we had a major heat wave last summer which was the driest in 70 years or so.
 
@Mast a season that isn't so lame
 
6:38 PM
We've had record rainfall this year in the Baltimore area.
 
@Donald.McLean We had our first date on May 4th. That sounds fancy, unless you know in the Netherlands that's Remembrance of the dead (similar to your Memorial Day, I think).
 
@Mast Probably. Our Memorial Day is usually at the end of May.
 
The actual date is May 30th, but the observed day is the last Monday in May.
 
(I've never actually known the exact date....lol)
 
Like I said, one of my daughters was born that day.
 
7:06 PM
I have not included my code because this is not CodeReview SE. I am asking a specific question about suppressing a warning. My code and/or use-case is irrelevant. There are many ways to suppress many warnings, I am simply asking if one is known for suppressing runtime warnings. — Albert Renshaw 27 secs ago
"is there a way to have all entries be 3 pairs and not the double or single pair at the bottom?" - yes, just filter the final list by the lengths of elements. And about "is there a better way to do this?" - if the code produces correct results, you can post it on codereview.stackexchange.com. For SO this kind of question is subjective and opinion-based, hence off-topic. — Georgy 7 secs ago
 
7:31 PM
-2
Q: Seciure comments class file

terribleposterI want to create a comment system.I came across this :https://github.com/ionutvmi/master-comments-system It works but I can see that they are some security flaws in it.Especially Sql injection And session hijacking .I wish to fix it but It will be difficult to do so alone as it is very long.Pl...

 
I just realized I have exactly 99 bottles of beer in my cellar. Tempted to put them on a wall or something.
4
@Feeds sigh
> This is code to allow me to post because coderreview.stackechange wont allow me to post unless there's atleast three lines of code



This is code to allow me to post because coderreview.stackechange wont allow me to post unless there's atleast three lines of code

This is code to allow me to post because coderreview.stackechange wont allow me to post unless there's atleast three lines of code
Not sure if that's ignorance, malice or stupidity, but how did OP expect that to end?
We got a shiny new blocking function in effect to make sure people don't post questions without posting code. Obviously you didn't get the hint. Since the feature is still fresh, can you help us improve it to make it more clear? Questions without code are not welcome on Code Review, as indicated in the help center (of which a link is provided when you try to submit a question without code). — Mast 12 secs ago
 
@Mast I'm a bit pessimistic today, but looks like intentional malice to me.
 
7:46 PM
@202_accepted Same here, but I'm a bit pessimistic too. And there's Hanlon's razor.
 
I have my own razor thank you very much. ;)
 
lol
 
7:57 PM
@Feeds at least the username is appropriate: terribleposter
@Feeds worse than winter...
 
8:32 PM
0
Q: Share data from a single instance service between many components

juanp_1982I'm creating a service that will pull data from server, then load that data into a property to be used later on, then notify all component that the service "is ready". The idea of loading data into a property is so that components can query it synchronously (through some methods) the problem tha...

 
Motla, IMO, the goal of printing without "knowing anything" about the variables or their values is tied to a certian approach using ?: and has troubles answered below. OTOH, if you are willing to achieve without "knowing anything" with another approach, consider _Generic. Example: Formatted print without the need to specify type matching specifiers. — chux 6 secs ago
 
8:48 PM
0
Q: C# Selenium - How to retain Parent URL Info in Recursion

SohelI have written a test automation program the recurses through all links under a page element. However, for some reason it is not preserving the parent URL info where a particular link's web response is checked. Please review the code below and let me know what step I need to take so that parentUr...

 
9:34 PM
0
Q: Mouseleave affecting children

m4rsib4rhttps://codepen.io/anon/pen/VqezzK The mouseleave event is firing on the arrow, I was using mouseout, and was told i need to use mouseleave and it would fix the bubbling issue and that wouldnt occur anymore, i'm at a loss and not sure what to do. slide.forEach(slide=>{ slide.addEventListe...

 
10:05 PM
dont pass parameters by value when you dont need a copy int money(std::map<int, int> x) shoudl be int money(const std::map<int, int>& x) or better dont add up every single coin each time you add a single coin. I think this belongs to codereview.stackexchange.comuser463035818 28 secs ago
 
0
Q: Implementing `components(separatedBy:)` method in Swift

Badhan GaneshOn looking at the components(separatedBy separator: String) -> [String] method from the Swift Standard Library, I tried to come up with an implementation just for practice. Your comments are welcome to improve the same. Thanks. Input: func main() { let sampleString = "Do not be sorry. Be ...

0
Q: In React/Redux, fetch a list from a server and create a randomized subset with lifecycle methods

Alesh HoudekThis is my first React/Redux project. I'm pulling down a list of Google Fonts, then displaying a list of 3 randomly selected ones. I want the list of random fonts to be populated automatically after the data is fetched, but also to be able to be triggered manually. So, I've decided to put the f...

 
10:36 PM
0
Q: Stored Procedure to Populate Dim Not Available Value for Any Table

knightbob472In Kimball data warehouse, reports contain a -1 row, to show the dimension is not available or existing currently. (this is an option rather than using null) https://www.kimballgroup.com/2010/10/design-tip-128-selecting-default-values-for-nulls/ Kimball: "You can assign it to another special re...

 
11:07 PM
0
Q: Data Transfer Task

CecobentThe task: You will be given several lines of messages containing data. You have to check for the validity of the lines. A valid line should be in the format: “s:{sender};r:{receiver};m--"{message}"” sender – could contain any ascii character except for “;” receiver – could contain any ascii ch...

0
Q: Algorithms with Python project

XaoliNewI wrote my first project in Python and i would like to know is it correct? I prepared some guidelines i want to ask. (I know that i dont have any documentation yet ) Is my code compatible with PEP8 ? Is my code compatible with ZenOfPython ? Is my code compatible with OOP ? Is my code easy to ex...

0
Q: Increase efficiency of coin change recursive algorithm

Bo WorkProblem: find the number of distinct amount of money a pile of coins can make. The vector, coins, contains the values of the coins, and the corresponding vector, quantity, contains the number of coin there are (let's say coins = {1} and quantity = {5}, this means I have 5 pennies). Although ...

 
You should consider posting this on [Code Review[(codereview.stackexchange.com) and tagging the language as well. — devlin carnate 6 secs ago
 

« first day (2049 days earlier)      last day (1976 days later) »