« first day (2330 days earlier)      last day (1670 days later) » 

12:00 AM
RELOAD! There are 6166 unanswered questions (90.0630% answered)
 
@SᴀᴍOnᴇᴌᴀ Thank you.
@VisualMelon I supported your comment by fleshing it with what the OP might add, I did not VTC because the purpose, a Calculator is fairly clear codereview.stackexchange.com/questions/229347/calculator-in-c
How much more are you looking for?
 
12:35 AM
0
Q: Login to website behind captcha

αԋɱҽԃ αмєяιcαηI'm trying to login for this particular site. upon inspecting element for the Form data i do see that the website asking for the following. ghsdfkjlksssalk35bbr # generating base64 value upon login if I'm correct SellersLoginForm[username] # that's will be for username SellersLoginForm...

 
12:45 AM
possible answer invalidation by Emad Boctor on question by Emad Boctor: codereview.stackexchange.com/posts/229322/revisions
 
 
1 hour later…
1:55 AM
0
Q: how to create aws iam role with console access and saml

user12027552I have been looking at aws document here https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_create_for-idp_saml.html I am able to create a role with console access from aws console how do i achieve the same using aws cloudformation. I have created the cft here below but role does not ...

 
 
1 hour later…
3:12 AM
@CaptainObvious Definitely off-topic.
 
3:55 AM
0
Q: how to display name in my spinner from rosbridge

user209795how do you retrieve list of waypoints from the topic /waypoints in rosbridge. and to display the names of waypoints to my spinner. rosbridge = new RosbridgeListener("ws://10.24.204.231:9090"); rosbridge.setOnDataReceivedListener(new RosbridgeMessageListener() { public void onDataRe...

 
4:13 AM
1
Q: Is hacking/cracking on-topic?

ReinderienLogin to website behind captcha seeks to circumvent a captcha. I think that white-hat hacking or penetration testing for the purpose of security improvement might be OK, but this is clearly in the opposite category: exploitation for its own sake. Is this on-topic? Is it OK to be teaching people h...

 
4:32 AM
I'm voting to close this question as off-topic because this is not a code review site. — jmcilhinney 17 secs ago
 
 
2 hours later…
6:31 AM
I'm voting to close this question as off-topic because this question belongs to the codereview.stackexchange.comemix 29 secs ago
 
6:45 AM
> I'm curious if there is a cleaner way –– Voting to move to codereview.stackexchange.comdaxim 5 secs ago
 
7:38 AM
0
Q: Load data from server to populate in spinner

user209795I'm learning ROS and I'm trying to populate data from my server to spinner. my JSON is: {"topic": "/waypoints", "msg": {"waypoints": [{"header": {"stamp": {"secs": 0, "nsecs": 0}, "frame_id": "map", "seq": 0}, "pose": {"position": {"y": -140.901899144836, "x": 44.36469369653882, "z": 0.0}, "ori...

 
8:03 AM
If your code works well and there is no issue, please consider posting the question at Code Review. — Wiktor Stribiżew 28 secs ago
 
8:18 AM
0
Q: Manipulate urls with regular expressions instead of the slip approach

paulalexandruBasically I have an url which looks like this structurally speaking: http://www.my-site.com/topic1/topic2/topic3/topic4/topic5 and I want to do 2 things to it: 1. check the structure and validate it 2. replace both topic3 and topic4 with a new parameters called topic6 This is my solution for...

 
8:36 AM
@SᴀᴍOnᴇᴌᴀ Question quality and how it was phrased let me to believe OP still wasn't sure it worked. Must've missed the comment. I've re-opened the question.
 
possible answer invalidation by user7610 on question by user7610: codereview.stackexchange.com/posts/96473/revisions
 
Thank you.
@Duga Fine
Bit of a necro.
 
8:58 AM
-1
Q: reset variable in python function

Thanayut MaktheppongI want to reset list selection but it give me error UnboundLocalError: local variable 'selection' referenced before assignment selection=[] pattern = [] def animate(idx =0): a = random.randrange(len(allimg)) pattern.append("img"+str(a)) allimg[a].config(image=photo5) root...

 
If the code is working, but you want to improve it, the right place should be Code Review. You might want to look into Application.FileDialog for the folder choice part. — Vincent G 38 secs ago
 
9:17 AM
I think this question belongs to: codereview.stackexchange.comHarun Yilmaz 54 secs ago
This question belongs to the codereview site of the network — Cid 1 min ago
Exactly my thought, but I expected to answer the same on codereview — Cid 30 secs ago
 
0
Q: Design pattern for my module attempt in javascript?

J. DoeI am just trying to build my own toast module/library. Something simple to get me familiar with design patterns. This is what I have done so far: var toast = { toastCount: 0, Toast: function (type, text, time, container) { this.options = { type: type, text: text, time:...

 
@pacmaninbw Not a lot, but a statement that it is expected to take input from the user in some manner and produce some set of meaningful outputs would be nice. I agree its fairly 'obvious' what is going on, but I think it is important to insist on high standards for all questions, because it is a learning experience for the OP, and means we don't have lots of examples of "Title + code" for people to point at when we unanimously close them for lack of clarity.
It also gives us some confidence that the code works, and we aren't just going to end up with an answer explaining it doesn't work and have to close it anyway, and all the related issues like that.
(I'm very fond of questions which explain how the code works, because it makes it easier to understand and indicates they actually understand it, but I don't know that should be a requirement)
 
9:38 AM
0
Q: SageMakerTrainingOperator in Airflow

Javier López TomásI have made an operator (surrounded by others operators) for training a model in sagemaker in airflow and I have doubts how would it be more readable or more pythonic. First I did this: transform_data = BashOperator( task_id = 'transform_data', bash_command = 'blabla') container...

0
Q: Many parameter curve-fitting

Péter LeéhIn my project I have to make curve-fitting with a lots of parameters, so scipy curve_fit struggles to find the answer. For example: \$\ c_0 + c_1 \cdot cos (b_0 + b_1\cdot x + b_2\cdot x^2+ b_3\cdot x^3)\$ ,where \$ c_i, b_i \$ are the params to determine. That's why I made a method which fir...

0
Q: Concurrency control between a non-blocking and a blocking methods

user1589188Please review the following examples to demonstrate my progressive improvements on achieving concurrency control: import java.util.Queue; import java.util.concurrent.*; public class ThreadTest1 { private static final ThreadTest1 INSTANCE = new ThreadTest1(); private Queue<Holder> holder...

 
 
2 hours later…
11:33 AM
@CaptainObvious Closed.
@VisualMelon I'm fond of those as well, simply makes for a higher quality question.
 
As you don't actually have any problem and just want to optimize, maybe you have more luck on code review :) — Artog 44 secs ago
 
1
Q: LeetCode: House Robber III C#

Giladhttps://leetcode.com/problems/house-robber-iii/ Please review for performance The thief has found himself a new place for his thievery again. There is only one entrance to this area, called the "root." Besides the root, each house has one and only one parent house. After a tour, the sm...

 
Anyone seen @200? Rev 2 here looks like it got an auto-correct typo in the tags, but I'm not sure what tag was intended.
It's not a number-guessing game after all.
 
11:59 AM
0
Q: RuntimeWarning: invalid value encountered in log return

AdvaitaI want to perform Monte Carlo simulation to the particles which are interacting via Lennard-Jones potential + FENE potential. I'm getting negative values in the FENE potential which have the log value in it. The error is "RuntimeWarning: invalid value encountered in log return (-0.5 * K * R**2 * ...

 
12:12 PM
Maybe you'd like to post this on codereview.stackexchange.comPriyank Panchal 53 secs ago
so they user has a collection of cards, which is its own table but can also be added to deck. but yes i'll post this on code review thank you — Andy Stav 21 secs ago
 
0
Q: LeetCode Reverse Words in a String without using any java library

Neelabh SinghFollowing problem from LeetCode, Given a string, you need to reverse the order of characters in each word within a sentence while still preserving whitespace and initial word order. Example 1: Input: "Let's take LeetCode contest" Output: "s'teL ekat edoCteeL tsetnoc" Following code is working c...

 
12:39 PM
0
Q: Codility Cyclic rotation in C#

newbieI'm learning C#, I programmed some things in java, and I would like to have a feedback on my C# code. The exercise is from codility. The goal is to rotate array A K times; that is, each element of A will be shifted to the right K times. Write a function: class Solution { public in...

0
Q: LeetCode: House Robber I C#

Giladhttps://leetcode.com/problems/house-robber/ You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from robbing each of them is that adjacent houses have security system connected and it wil...

 
I have posted this project [here]codereview.stackexchange.com/a/229330/209774 and the very long answer from @BryanOakley where its talking about Classes, I have tried re-adjusting my code how he has adjusted — 98Ed 54 secs ago
 
12:59 PM
0
Q: Find items in 3 or less levels CASE WHEN

Ingusi have this code with i want to go troght 3 levels and it seems to not work if there only 2 or 1 levels! Whats wrong with my query? select lvl1.category_id AS l1, lvl1.parent_id AS l1, lvl1.title AS l1, lvl2.category_id AS l2, lvl2.parent_id AS l2, lvl2.title AS l2 ,...

 
1:39 PM
0
Q: Does this model work for my relational database?

Andy StavJust wondering if this model fits with what I am trying to accomplish: A user registers and logs in they search cards and add them to their own collection they can create multiple new decks, and add cards from their collection into the newly created deck Another user registers and logs in, they...

 
possible answer invalidation by davidbear on question by davidbear: codereview.stackexchange.com/posts/229070/revisions
possible answer invalidation by Ingus on question by Ingus: codereview.stackexchange.com/posts/229373/revisions
 
1:59 PM
0
Q: The performance bottleneck of my implementation of bi-directional Dijsktra in Rust

chenzhongpuThe idea of bi-directional Dijsktra is straightforward: crate a reverse graph search from start and end in origin graph and reverse, repespectively stop util meet some node in middle Here is my Rust implementation: fn bi_dij(&self, reverse_graph: &Graph2, start: usize, end: usize) -> Option

0
Q: Akka FSM: Traffic Light Implementation

Karan KhannaRecently I did an exercise to understand Akka FSM. I implemented a Traffic light system with Akka FSM which changes its state every 30 seconds. My code is like: LightColour: Enum to encapsulate the traffic light colors. public enum LightColour { RED, YELLOW, GREEN } Light: Class ...

 
2:15 PM
Does somebody understand what the code in this question actually does?
8
Q: Converting integers into Unary Notation

Travis WellsI have written a python script that has tallies representing digits 1-9 (0 is just ":" ) Unlike true Unary languages that are in the form 1^k. I represent values for n as per their decimal digits. The integer 121 is 1_11_1 Overall every k digit out of n "integer" is in Tally notation, and the amo...

The question has been reopened after OP added a remark about “many-one reduction” but I still don't see how that is connected with the code. Is it just me who does not understand it?
 
apparently others understood it, but I'm kinda still missing how exactly the conversion works...
 
0
Q: Which set of code is more efficient and readable , both code sets do the same function as a counter

ElbaselThis is just a simple counter, i was able to code it in two different ways but i want to know which way is more efficient and which way is more readable. and which set of code is more "correct" in broad-manner of speaking. and if there is another entirely different set of code that does the same ...

 
2:39 PM
0
Q: Script that saving most relevant Youtube video for each database object

edvard_munchDue to the tightened Youtube API daily quota (that allows to use only ~ 98 search requests per project daily) I've implemented a multi-project system. For this to work you need to create a project/projects, download JSON with client secrets and put it in the credentials directory in the script's ...

 
2:54 PM
Greetings, Programs.
 
3:23 PM
This question might be better asked in Code Review. — Jeff Zeitlin 37 secs ago
 
3:36 PM
Yes; that's really the only way to do it. However, read Code Review's Help Center (codereview.stackexchange.com/help) first! You always want to make sure that you are asking the question in a way that will be acceptable to the stack, and that you are providing all of the information requested. — Jeff Zeitlin 47 secs ago
Ideally, if you could share some working code, this would be a question for codereview.stackexchange.com. — jaco0646 30 secs ago
This may be more appropriate for code review: codereview.stackexchange.comMisterMiyagi 1 min ago
 
3:53 PM
Monking
 
possible answer invalidation by Neelabh Singh on question by Neelabh Singh: codereview.stackexchange.com/posts/229370/revisions
 
@Duga rolled back
 
0
Q: Springboot/hibernate queries result optimization

Driss NejjarI am developing a Springboot application, and my requirements are the following: I have 8 sql queries, that I have to run in parallel and that return a single result. My entities using this sql requests are: @SqlResultSetMapping(name = "bud01Mapping", classes = { @ConstructorResult(tar...

0
Q: basic digital filter in python

Luke GaryI have written a simple RC Filter approximation in python that I have a feeling could be more concise. Are there any obvious improvements? class EWMA: def __init__(self, coeff: list, initialValue: float): ## # ewma3 states for coefficient optimization ## self.last_ewma3 = [0.0, 0...

-1
Q: Assigned a System resource to an image based on variable

Elwood472I have a mapping application and the marker I'm using is based on the field rep assigned to that visit. My code is just a Select Case based on the rep's name and then it sets the bitmap for that person. My code works fine, but there are 19 different field reps and I feel there must be a bette...

 
4:35 PM
possible answer invalidation by Luke Gary on question by Luke Gary: codereview.stackexchange.com/posts/229388/revisions
 
-1
Q: Hacker Rank Climbing The Leaderboard

Matthew HogganThis has been asked a couple of times but here is my implementation in C++. I have 11/12 solutions completed. The 6th test case which has 200000 intial scores and Alice has even more scores causes my program to timeout. Below is the problem statement and the code. My question is, am I missing som...

0
Q: Suggestions on removing duplicate CallableStatement boilerplate and a better design

AndenWe have many stored procedures and functions that we call on our DB and the setup for each call in our data access layer is really verbose with setting the inputs and registering the output etc... Is there a better solution to maybe generating the CallableStatement dynamically for any stored proc...

 
5:22 PM
@Duga rolled back by Toby Speight
@Duga its off-topic...and the only answer was by OP
I know Stack Overflow. .. Just i m banned for questions. .. Also i thought this is for review code that works but not works as plannedIngus 3 hours ago
3
hopefully that user will heed dfhwze's advice and read the help center
3
 
5:40 PM
possible answer invalidation by Luke Gary on question by Luke Gary: codereview.stackexchange.com/posts/229388/revisions
 
@Duga I think its okay... adding usage...
@SᴀᴍOnᴇᴌᴀ that might be worthy of some ...
 
6:02 PM
No, and you would need to provide the pertinent section of code which compiles and runs (not from memory). Please see their help center for guidelines: codereview.stackexchange.com/help/on-topic. — jaco0646 39 secs ago
 
6:17 PM
Better suited for code review if indeed the code works flawlessy. — Scott Holtzman 31 secs ago
 
1
Q: How to better design a struct representing a string neither null nor white space

Enrico MassoneI've written a C# struct in order to encapsulate the idea of a string being neither null nor white space. I was basically tired of writing and unit testing checks like the following: public class Person { public string Name { get; } public Person(string name) { if (string.IsNu...

 
possible answer invalidation by winzhack999 on question by winzhack999: codereview.stackexchange.com/posts/229268/revisions
 
6:40 PM
@Duga I'm not sure if it should be rolled back... I don't see comments on the question but there are 4 comments on the one existing answer... I did leave a comment asking the OP not to update the code after receiving answers
 
6:53 PM
Another good place to go is the Code Review stack exchange. If you have a specific piece of code you want feedback on, you should be able to get some answers there. — Ahndwoo 39 secs ago
Megan, once you get this sorted out, consider asking at Code Review for an assessment. — user4581301 35 secs ago
 
-1
Q: Refactor SQL With 2 Nested Subqueries and Multiple LAG/LEAD Function

DombeyI have the following code. The performance is fairly slow (16000 rows in 5 seconds in Azure Data Studio). Any suggestions on how to grace this code and speed it up are welcomed! I was trying to avoid the window functions but I didn't want to declare them in CASE statements. SELECT Y.* ,(CASE...

-1
Q: Python Dataframe column value updates in for loop

Qasim AhmedExample Dataset ID LINK acronym address 1 google NAN a 2 google NAN a 3 NAN NAN a 4 google NAN b 5 google NAN b 6 NAN NAN b Output ID LINK acronym address 1 google g...

 
7:38 PM
 
8:01 PM
0
Q: LeetCode: House Robber II C#

Giladhttps://leetcode.com/problems/house-robber-ii/ You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in a circle. That means the first house is the neighbor of the last one. Meanwhile,...

0
Q: Filter rows based on a column value of a particular row

d.bHere's the code -- How many users earned a particular tag based badge sooner than I did? DECLARE @BadgeName nvarchar(255) = '##BadgeName##' DECLARE @BadgeType int = ##BadgeType## -- 1: Gold, 2: Silver, 3: Bronze DECLARE @UserId int = ##UserId## SELECT Users.DisplayName, Users.Id, DATEDIFF(day,...

 
8:28 PM
sigh, it cannot be a dup. If i put that piece of code in our unit test, it will do the job, but won't pass our code review. Almost all companies require mocha/assert/chai etc frameworks, the code needs to be consistent. — user3552178 34 secs ago
 
9:04 PM
I suspected as much. I think that makes this a really broad question. You haven't identified anything that's actually wrong with your code (other than "I dont believe its the best by a long shot", but what does that mean?) and you haven't identified what specific improvements you're seeking to make, so I'm not sure how this is really answerable. You're essentially asking "Here's my code. You tell me what might be wrong with it." Maybe Code Review would be more appropriate for this question. — BACON 53 secs ago
 
9:42 PM
0
Q: Comma Code - Automate the Boring Stuff with Python

cyberprogrammerBelow are the is my code for the Comma Code problem from Chapter 4 of Automate the Boring Stuff with Python. Is there anything I can do to make cleaner? Comma Code [1] Say you have a list value like this: spam = ['apples', 'bananas', 'tofu', 'cats'] Write a function that takes ...

 
9:57 PM
@Norbs Welcome to Stack Overflow! I wonder whether this question would be a better fit for Code Review? I don't think it's off topic here, but it's also not a common type of question here. — jpaugh 20 secs ago
There are some changes I would do in this code, however stack overflow isn't the right place for this kind of things. SO meant to be a place for programming issues and not for CR. Please look at Stack Exchange Code Review: codereview.stackexchange.com, I think it is a better place for your post. — KorelK just now
 
10:42 PM
1
Q: Network programming - asynchronous, single-threaded, nickname-only chat server

AemiliusI am starting to learn network programming. I have implemented a very simple chat server based upon TCP, where the users only need to provide username. The assumption is that the server makes use of no additional threads and the sockets are not blocking. The code: import sys import time import...

0
Q: Node Based Code Flow Builder

ZymusBackground In my development of a game engine, I realized the need to be able to construct processing units in a serializable way (code below does not show serialization, just the wiring). I broke the problem down into nodes and connectors. A Node is the processing unit. A Node may have zero or...

 

« first day (2330 days earlier)      last day (1670 days later) »