« first day (1819 days earlier)      last day (2495 days later) » 

00:00
RELOAD! There are 5264 unanswered questions (89.9888% answered)
 
1 hour later…
01:08
0
Q: How to display same as well as different rows from two list by comparing

MAITHILI LI have two lists 1.List 2016 2. List 2017 on single sheet it has Name, Qrtr1,Qrtr2 columns resp. I have to compare this two lists by name. If same name found then i have to do Qrtr1-Qrtr2 else if not same name then display all different names with values in third list

"I got this code working", "I would like to know if there is a better way to do this task", Code Review? — ᴡʜᴀᴄᴋᴀᴍᴀᴅᴏᴏᴅʟᴇ3000 5 secs ago
Questions about improving coding style are more appropriate for Code ReviewBarmar 50 secs ago
02:07
0
Q: Asking about fixing, and then optimising my code

BenI have a function that I need to alter, to allow for alternate scenarios. At the same time however, the entire method is becoming a little bit convoluted, so it does need to be proofread, and perhaps reworked so that it can work a bit smoother. Where should I ask this question? Here or on Code...

 
1 hour later…
03:27
See this please. — CodingYoshi 31 secs ago
04:18
if it works then probably it's more suitable on codereview.stackexchange.comLưu Vĩnh Phúc 59 secs ago
 
1 hour later…
05:27
0
Q: A genetic algorithm to evolve strings

AnanthaKrishna KI have made a genetic algorithm that evolves a string and is written in Python3. It evolves a random set of characters into a target. Here is the code: import string import random LETTERS = string.ascii_letters + ' ' + '!' + '?' class GeneticHelloWorld(object): def __init_...

05:44
0
Q: Random proportionately function with unit testing

Eugene LimHow to write a function to get a random key from a dictionary based on the int value proportionately and a unit test to ensure the function is working correctly? For example: Dictionary<string, int> users = new Dictionary <string, int> () { "Tom": 9, "Jerry": 1, }; "Tom" should appear...

I think this question should be asked in [Code Review Section][1] codereview.stackexchange.comHey24sheep just now
06:17
-2
Q: Dynamic Objects Call relative functionality everywhere to extend a liabrary C#

TechnacronI have different types of Objects under the same Parent class "Control". I have a List< Control > which I know can have references of VideoControl,HtmlControl etc. Which all are 'Control'. Debugging also shows that runtime cast is properly parsing them into relative Control and all other specifi...

Looks like a question for the codereview.stackexchange.com — JVApen 20 secs ago
07:07
Working code is perhaps better suited for codereview.stackexchange.comnotyou 44 secs ago
07:40
Hi! I'm not sure about the difference between codereview.stackexchange.com and stackoverflow. Do you think here is not the right place? — Matthieu 47 secs ago
The difference is you want your code reviewed. Meaning you want to know if your code is Performant and Clean and if it can be improved. Code Review Stack is for that only. — Hey24sheep 33 secs ago
08:17
0
Q: Segmentation fault (core dumped) in a simple "connect" game

Evangelos Tzouganatos #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> int ebodia_pistas(double ebodia); void syn1 (char** table, int ar_ebodia, int N, int M, int ep); void emfanisi (int M, int N, char** table, char gra, int st); char** pinakas (int N, int M); int rese...

08:37
Welcome to Stack Overflow! A better place for this question is probably codereview.stackexchange.com. Please see the help center for more about this site's topics, as well as "How to Ask". — ashleedawg 31 secs ago
08:53
Monking
Monking :)
09:25
0
Q: Java: Constructor- and Method-overloading exercise

michael.zechIt's from a Java-course I'm enrolled into. The classes "Instructor" and "Book" are already provided. You got to write the different constructors of "Instructor" as well as the methods "getMostRecentBookTitle" and overloaded "updateBook". Here's are the final classes expanded with my additiona...

09:42
0
Q: How to avoid repetitions when comparing two vectors by blocks

Zeeshan HayatI am trying to compare two vectors which are of size of multiple of 4 and data is represented in terms of blocks (4 elements). Each vector block has a unique number it e.g {0,0,0,0}, {0,0,0,1}, {0,0,0,2} or {0,0,0,0,0,0,0,1,0,0,0,2} and {0,0,0,2,0,0,0,1} so on. I am using iterator which increment...

10:00
0
Q: Retrieving issues based on Username or Username + Repo from Github

JohnnybarThis was my code challenge for a Junior JavaScript Developer position. The app is mostly running error-free, but I was rejected for the role, so I assume there were major issues with my code and have no idea what they were. I know this is a long piece of code, but as it already runs, I'm not as...

10:15
Code review question are more suitable on Code Review. — xskxzr 23 secs ago
0
Q: Algorithmic complexity of this algorithm to find all ordered permutations of length X

MatthieuI have written a recursive function to generate the list of all ordered permutations of length X for a list of chars. For instance: ['a', 'b', 'c', 'd'] with X=2 will give [['a', 'a'], ['a', 'b'], ['a', 'c'], ['a', 'd'], ['b', 'a'], ['b', 'b'], ..., ['d', 'd']] I'm not sure about its algorithmi...

10:40
There's a Stack Exchange code review site - that would be a better place for this question... codereview.stackexchange.comArcher 47 secs ago
11:07
0
Q: peak finding algorithm

sek fook tanthis is my peak finding algorithm, I try to split the 3d array into half and find the maximum element in the middle column, after that the algorithm will check whether there are any others element bigger than it on the left or right side.If there is any, the matrix will slice into half depend on...

0
Q: managing ajax calls

MikeTI've gotten fed up of writing boiler plate code for managing ajax calls and this is the manager class I've come up with function AjaxManager() { this.processes = {}; this.ajax = (label, uri, settings, success, fail) => { console.log({ ajax: { label, ...

11:20
indexes.size() gives you the amount of elements of the vector and values.rows * values.cols gives you the amount of elements of the cv::Mat... You need a little bit of work... but as sugestion, write first a "header" with the size of the vector and rows and cols and type of values... then write all the values of indexes and then all the values of mat. The header will be needed to read it back. You may take a look into this answer in your case, you may need a little bit more work — api55 just now
11:42
0
Q: python3 script structure for common repository

RomainL.I am from data-science a world with few good practice. with some collaborator we want to start a standardization effort and a common repository to avoid writing same script in our side. But we have two different point of view. So I will put two trivial working example following the two structures...

11:55
Monking
0
Q: Makes a bunch of players and adds them to teams

TheJavaNubI have a lot of code (probably about 1/2 of all of my 891 lines) dedicated to just making players and teams. Here's the code that makes the players and teams: private void makeTeams() { toPlay = maps.get(random.nextInt(maps.size())); // I have a method that I shortened to make maps pNam...

12:18
0
Q: Using Try & Catch to solve exception

Mech_EngineerI am working on a ADDIN that works on 3D drafting program. This ADDIN has historically grown and now I am doing a big rewrite. During this rewrite I came across a issue. I have 2 (fairly similar) types of models I am trying to edit using the same code block ADDIN. They both have a property name ...

Greetings, Programs.
If your code produces correct results, and the issue is only with performance, then I suggest you to post all the code on codereview.stackexchange.comGeorgy 24 secs ago
12:36
Welcome to SO. This is not a code review site. — Kling Klang 57 secs ago
13:08
0
Q: How to add correct answers to an alert dialog

azi PhPlease help. I want to display the correct answers in an alert dialog, if i type "rightAnswers" inside "builder.setMessage("Answer : " + rightAnswers);" an alert show "Answer: 1". Number 1 instead of the correct answer. please teach me what to put to be able to display the correct answer. thank y...

@Donald.McLean Greetings
13:29
@Stargateur you're correct, it's not. So what? C isn't designed for functional programming, I'd kick out any unnecessary recursion in any code review. — Felix Palmen 10 secs ago
13:47
0
Q: Find deviations for a class in C# and present the values in a browser with TypeScript/Javascript

OgglasWe have a client that handles three different sort of licenses. These are up for renewal every year and upon renewal they need to check between 15-20 rules to see that everything is okay. They do this manually today but everything they check is within their business system so they have all the da...

Also, see what Questions Are On-Topic and which ones Are not On-Topic - If you want to improve an existing design or implementation to perform better than it currently does, those questions might fit better on https://codereview.stackexchange.com/Nope 7 secs ago
14:04
0
Q: Neaten Class Declaration when having repeating methods c#

Zarwalskigot suggested I post this here. Im creating a class that has all of my data in and can see it would quickly become messy. I feel that there must be a way of making it neater rather than making a new method each time for example. I have a character that out of the huge skill list each with diff...

14:29
I have a question about software licensing, it is a tool for QA, so I was originally thinking about putting it on SQA, but would it be better placed somewhere else?
@Malachi Not sure. Legal? OSS? SE?
(Software Engineers, not Stack Exchange.)
OSS?
They have a bunch of licensing questions related to OSS.
posted on April 27, 2018 by CommitStrip

0
Q: ConcurrentLinkedQueue Object Pool implementation

Juan LopesI have implemented this simple unbounded ObjectPool based on a ConcurrentLinkedQueue of WeakReferences. I have a thread-unsafe object that is pretty expensive to create, and most of the time it will be used from one or two concurrent threads, but it should support any number of threads concurrent...

14:38
@CommitStrip I just use GUIDs for all my passwords.
What's the odds of having a collision?
14:50
I think this question would be a better fit for Code ReviewWilliam Perron 31 secs ago
@Hosch250 this is not an Open Source Application though
Figured as much. Just wanted to throw that out there in case, though.
-1
Q: Remove \n from output file strings python

Ayman SabriI need to remove \n from the output result Code #!/usr/bin/env python import subprocess with open("output.txt", "w+") as output: subprocess.call(["python3", "./01_GetOffenses.py"], stdout=output); Result { "severity": 4, "start_time": 1524759842519, ...

0
Q: Generate a .qml file from a template written in Python

khouI'm using Python to generate a template, I've been able to do so, but now I need to extract the data in that template into a .qml file. I'm a beginner with Python, therefore I'm not very familiar with the render template thing. Any help would be very appreciated. This in my code : if shape == "r...

15:05
@CommitStrip And that's why you use a blacklist...
And two-factor auth.
That's something I should set up on my checkers website for practice.
Wonder how much it would cost?
@Hosch250 2F is nice for important things like banks, but for the average application it's a bit overkill.
@Mast It's the experience I want.
A checkers website barely needs any auth at all...
It's not like anyone has anything important on it.
Nope.
@Hosch250 Depends what you want I guess. If the 2nd factor can be another application, all you need is a server. Which you needed anyway.
@Hosch250 My status as a Checkers genius is very important
I can't have people stealing that from me.
;)
15:10
If you want to send texts, yea, that could cost.
@Mast IDK, I wouldn't want to get a ban on SE cause I got hacked...
15:23
@Peilonrayz A strong password should counter that.
And lock-out on the attempts, salts, etc. but that's implicit.
@CharlesDuffy, are you interested in seeing the whole script at CodeReview? I have stuffed it with a lot of things I found around the web, and I bet it is full of security traps. At the other hand it's quite interesting code golf. — Ondra Žižka 38 secs ago
@Mast Unless the user or the website has poor security practices. Say someone has my password there's nothing the site can do, other than 2FA.
I'm voting to close this question as off-topic because this is not a code review site — musefan 51 secs ago
this would belong better on codereview SE, but even then you should be clearer about what you want — depperm 59 secs ago
And just a quick code review: You don't need the ternary operation in your first two cfsets. You can just use <cfset var isUser = structKeyExists(FORM, "frmSaveaccount_isuser")>, since that will return a boolean value anyway. — Shawn 39 secs ago
15:46
0
Q: Scraping NHL Individual stats

TopinFrassiWith the idea of gathering the biggest hockey's individual stats dataset ever, I've started with the big league, the NHL. Using Selenium, I've been able to scrape this NHL's statistics page. To explain the workflow simply, I extract the data from the standing's table. It's basically a big strin...

0
Q: Parse Numbers from Text Based on Relative Position to Certain Substrings

Dick KusleikaThe input is a product code. I want to pull out the "percentage" portion of that code. For example, if the code contains the substring BIO, I want all the numbers that follow it until I hit another nonnumeric character. You can see from the PATINDEXs the other situations - it probably doesn't add...

16:03
1
Q: Python Constant Class, Different Enum Implementation

Jonathan VeitSo I saw a need for and came up with an class implementation to group constants which I'm calling a Constant Class. I wondered if there existed other similar implementations or if there is a flaw in what I'm doing. My team is currently finding it fairly useful and thought we see what other people...

16:20
@RMunroe I thought they had some spelling mistakes in the hover over for a second there...lol
0
Q: Simple parser with regular expression

DiDiIf I draw something in Illustrator and extract it with AI2Canvas I wont it to be customazible so I wrote this simple program to adds two variable: one to resize and one to shift the path coordinate. #include <fstream> #include <regex> #include <string> int main(int argc, char *argv[]) { std::...

16:37
-1
Q: Is this a good implementation of side scrolling and collision check? (Python 3+, Pygame)

W TarteFor a personal project, I am making a 2D side scrolling game with python 3+ and pygame. The game currently has the main game loop set up, and classes that represent the player, the floor tiles and obstacles. It supports rudimentary collision detection and side scrolling. I would like some help/ti...

16:50
possible answer invalidation by Jonathan Veit on question by Jonathan Veit: codereview.stackexchange.com/posts/193090/revisions
@Peilonrayz If they have poor security, 2FA usually hasn't even entered their mind.
0
Q: Is this an efficient way to search for subsets within a 250k line text dataset?

SynchronizeYourDogmasThe code below works pretty well - it takes about 4 seconds (this seems too slow for me) to find a group that's located at the tail area of the text file I'm searching. The text file has ≃ 250,000 lines with 20 elements per line. I cut my teeth on other programming languages and picked up Python ...

17:12
1
Q: Arrange lines of a text file

Dexter ThornThis program orders the lines of a text file alphabetically and prints them out to a new text file. Usage: java Arranger input.txt output.txt Is this the best and especially the most performant way? import java.io.File; import java.io.FileReader; import java.io.BufferedReader; import java.io...

17:30
Monking
TIL. Slack has a /shrug command for the lenny face.
Agreed, though I suggest not to use *-imports for several reasons: a) not everybody is on WebStorm; b) it's convenient to see all imported code elements on the top; c) code review tools do not have such tools (i.e. if your team is doing PR review on github/gitlab). — Roman Safronov 48 secs ago
17:48
@Hosch250 How much RAM does that command use?
/shrug
18:03
0
Q: Equation Evaluator - C++

LCDI am currently applying to many Software Engineer positions, and have been asked to complete several coding challenges. The most recent was an equation evaluator, written in c++, that was supposed to evaluate equations. The criteria given were as follow: Each equation is specified on a separate...

18:22
If this is working code and you're looking for feedback on ways it could be written better and you're willing to read the rules about how to post there, then this may be appropriate for codereview.stackexchange.com. — jfriend00 44 secs ago
18:49
This post probably will get closed because I am asking for suggestions on what other people would do to write better code - Yes, your question will likely be closed, however your question may be on-topic for Code Review Stack Exchange. — cybermonkey 49 secs ago
19:08
And one more code review note: If I'm looking at what your form passes, one of the first things I see is frm_systemadmin. I can easily change that to a 1. Never let someone tell you that they're an admin. You tell them. — Shawn 24 secs ago
19:29
0
Q: How to handle single key press?

AdamI want to apply some stuff if space -only- is pressed. So pressing space will triger an action, but for example ctrl+space or shift+space won't. Is there a beter way to handle this than negating all the possible modifiers key like this ? window.onkeydown = function (e) { if (e.keyCode == 32 &&...

20:20
-2
Q: Printing out the longest path in the matrix

SnarfyThis is a problem that can be found here. I have successfully been able to apply depth first search to find the length of the longest increasing path in a matrix. Now I am trying to simply record the (i-th,j-th) entries where that occurs and print out the corresponding longest path. I must being...

code review stack exchange might help you codereview.stackexchange.comPatrick 52 secs ago
20:54
0
Q: Portability in using up-and-coming library features

JDługoszCurrently, some library features are not in std that comes with the compiler, but may be in std::experimental or may not be present at all but Boost has a version. This is not a new problem: once upon a time it was std, std::tr1, or Boost. I expect the general idea will continue, with new libr...

21:11
gist.github.com/PheoOneWhoMade/b7e97612e852ba2d5a3557b8b55e1bef Am I following modern coding conventions?
why do you not post a question on site and find out?
Hm... M'kay
0
Q: Dealing with files

Aya GadallahI have a problem with my file ,I had created a file on my laptop and read it in my code but when I want to add a new line in this file it add it but after taking a very large space from the last line found in the file so how can I make lines added in sequence ?

@Perennialista: Consider this workflow: someone wants to change some configuration parameter to X. They send a code review for this change, where normal review can happen, it is submitted, so now the intent is stored, some system decides when a safe deploy window is (e.g., during business hours), when that window comes it pushes the configuration to Kubernetes, and Kubernetes takes it from there. How do you get this same level of control and audibility if that original change was made directly to Kubernetes? I'm not saying you can't use Kubernetes directly, I'm asking why would you want to? — GManNickG 33 secs ago
21:33
0
Q: My code converts between base X to base Y... Am I using modern coding conventions?

PheoSo I recently wrote a piece of code to convert between two bases of X, (Where \$26 < x > 0\$). I was mighty proud that I did this. And then i started wondering, am I using modern coding conventions/practices? The code can be found here: https://gist.github.com/PheoOneWhoMade/b7e97612e852ba2d5a35...

21:55
Looks like Harvey is active again. Wonder why.
Harvey being...?
One of the SO mods.
Quite active on MSE and Area 51 as well.
 
1 hour later…
23:17
!gninknoM
TTGTB
23:33
0
Q: Work environment simulator - managing resources efficiently

Bruno CostaThis code attempts to solve a suggested challenge by myself a while back on meta, trascribed here for simplicity. Allocate resources efficiently on a work environment The company Code42Review demands that their employees are able to handle work items as efficiently as possible. T...

23:50
Done. As soon as I'll learn they won't kick my question out of there, I'll delete this one. — VBobCat just now
0
Q: Recursive/Traversal Search of Items using EWS Managed API in Subfolders too

VBobCatI would like to know if there's a more efficient way of querying items than using the code below (that works, though): Imports Microsoft.Exchange.WebServices Public Class ExchangeTools Private Shared Function Items( target_folder As Data.Folder, ...


« first day (1819 days earlier)      last day (2495 days later) »