« first day (2921 days earlier)      last day (1392 days later) » 

00:01
RELOAD! There are 7542 unanswered questions (89.4607% answered)
00:25
@Duga Fine
@Duga IDK C++
@Duga Fine
@Duga The answer by JDLugosz specifically mentions a function that the OP removed. The edit needs rolled back. I can't. I don't have edit perms.
@Peilonrayz cc
@brug Right you are. Thank you. Will handle
=]
01:05
0
Q: Cast Exception for FluentValidation (Upgrading from FluentValidation ver 4 to V 10 issue)

user3885917Please I need your help. I'm trying to upgrade my application to use FluentValidation V 10 from older V 4. I wrote my validator class inside my customer class because I don’t want to reuse it anywhere else, I created a constructor and I put my customer rules there so the FluentValidation can call...

 
1 hour later…
02:07
@Peilonrayz Good rollback.
02:46
possible answer invalidation by PixD on question by PixD: codereview.stackexchange.com/posts/260174/revisions
03:06
0
Q: Is my Insertion Sort optimal?

HasekI'm learning sorting algorithms and wrote my own implementation of Insertion Sort. Is it optimal? Is there anything that can be done better? #include <iostream> #include <vector> #include <algorithm> #include <vector> void display(std::vector<int> arr) { for (int i = 0; i < arr.size(); ++i) ...

03:54
0
Q: Finding all pairs of elements in an array that sum to a target value using multiple pointers (follow up)

PixDThe previous question was not clear enough so I will try to clarify it more in this follow-up question. I tried the multiple pointers technique to solve the problem that find pair of values that sums up to a target value. We are assuming that: the array is already sorted. we are working with a ...

Monking
 
2 hours later…
06:18
0
Q: How to write a C program to print Pi basing on Madhava series

BANADDA MUBARAKAin this question, i have been tasked to write a program that prints pi basing on madava series, using pi() function and power() function. The issue is that, when i use power(), i dont get the actual value of pi. This is the source code i have written. #include<stdio.h> #include<math.h> double pi...

06:42
Monking
@Duga That's fine.
07:04
That sounds like a code review request (except you didn't show the actual code), which is off-topic on SO, but welcome on codereview.stackexchange.com. — user4815162342 43 secs ago
07:22
Since you already have an implementation, this question probably belongs more on codereview. — Jmb 39 secs ago
07:44
Monking.
@CaptainObvious Code not working as intended.
@user4815162342, thank you, will post this question on codereview.stackexchange.comIvan Ivanyuk 59 secs ago
@Jmb , thank you, will post this question on codereview.stackexchange.comIvan Ivanyuk 47 secs ago
Welcome to Stack Overflow. Since it seems you have working code and are looking for general improvements, this appears to more appropriate for CodeReview – be sure to check their question guide first, though. — MisterMiyagi 24 secs ago
08:43
0
Q: Correcting coordinates of an image with polynomial root in python

Md Mizanur RahmanI want to optimize this for loop for correcting coordinates of an image, it takes too long which is not suited for my system. I have done some profiling, the numpy roots is taking most of the time (near to 90%). Could someone suggest some optimization or vectorization of the code? Or a better alt...

0
Q: Fixed memory manager in C

cynnadI decided to not use heap in my program and create a custom memory manager to retrieve memory chunks from a big global array of uint8_t(u8). I chose u8 since 8 bits is a byte. The very big MEMORY_BLOCK_SIZE is not a problem since in Release builds the compiler will remove the unused bytes. I keep...

09:34
You can post this on Code Review after reading their help pages — adiga 30 secs ago
09:56
0
Q: Generic Update in Repository with inner collection

BA.MachpuzI trying to do generic repository and I cant make the update function work as I want. I have 2 classes: Aclass: Id,Name,Virtual Collection of BClass BClass: Id,Name,Virtual Reference of Aclass In my update function I get T of Aclass that contain list of Bclass the code is like this: public vo...

10:21
0
Q: Asynchronous dispatch queue

Ayxan HaqverdiliBackground This is supposed to be the sole worker thread to carry out long-lasting jobs in a GUI application. The GUI thread should be able to schedule tasks in a non-blocking manner and the tasks should que-up until the thread gets around executing them. I tried my best to make it exception safe...

10:45
0
Q: I'm not joining the same room although I use the same Room ID

sayoI'm trying to develop a video conference web app but I really don't know why I'm having this problem. when starting a new meeting and tries to join the same meeting from another browser I'm not able to join the same room instead, I join another different room with the exact Room_ID, and both room...

@CaptainObvious broken
You might be interested in the libraries argparse and click they are the major command line interface parsing libraries for python as far as I know. You could also try to use configuration files (e.g. json/yaml) such that you can define prices for specific items sparately from your calculator untangling the logic from the information. Later on you could swap that out with a small database like sqlite etc. Also see codereview.stackexchange.comFelix B. 32 secs ago
11:09
0
Q: Filtering data from an exisiting table using psycopg2+sqlalchemy

JunkratI am using psycopg2 & sqlalchemy to connect to a database and extract information from a table as follows: def db_connection(): eng = db.create_engine('my_URI') conn = eng.connect() return eng, conn def table_conn(): engine, connection = db_connection() metadata =...

@pacmaninbw Thanks
11:33
0
Q: Generating a performance report for clans in Clash Royale

mmaismmaThe following code generates a report showing performance of clan members in a game called Clash Royale. Everything is pretty self-explanatory, we are working with a lot of https requests, arrays and sorting. const https = require("https"); const clanTag = "L2P8GRJR"; const token = "TOKEN_HERE" ...

This question fits better to code review exchange — B001ᛦ 14 secs ago
12:22
0
Q: iterating over json object in Jekyll to render pages with different variables

skatkovThis is a fairly standard project based on Jekyll/Liquid. I'm trying to iterate over data object to include pages with different variables. And since {% include %} and %{ include_relative }% tags are not permissive in terms of different symbols. This approach doesn't work: {% include_relative _c...

12:45
0
Q: How to reduce the time complexity of the function below

Edmerson Pizarrafrom itertools import permutations def next_bigger(n): nlist = list(str(n)) perm = permutations(nlist,len(str(n))) perm = set(perm) listofperm = [] nlist = int("".join(nlist)) for x in perm: form = int("".join(x)) if form < nlist: continue ...

13:21
@NicholasHunter Generic best practices are not not on-topic on Code Review. — Peilonrayz 41 secs ago
13:42
Greetings, Programs.
Greetings, User
14:29
0
Q: pytorch LSTM model with unequal hidden layer

saeed ii have tuned a lstm model in keras as follows. but i dont know how write that code in pytorch. i put my pytorch code here but i dont think be right, because It does not give the right answer. how much I searched, I could not find a sample code in pytorch for more than one lstm layer with unequal ...

Lori Colston on May 03, 2021
We’ve made the Articles in Stack Overflow for Teams even better. With these updates, knowledge becomes even easier to find, content becomes better, and the experience becomes more enhanced.
15:10
Monkin' ... happy eve of Star Wars Day
15:34
Based upon the previous two comments, what you're effectively doing by asking for corrections etc. is looking for code review. There is already a code review site under the StackExchange umbrella. Please read the following advice, to determine if that is what you really needed. — Compo 20 secs ago
15:49
@SᴀᴍOnᴇᴌᴀ I was in my mind saying.. May the third be with you, and was confused
6
16:09
@SᴀᴍOnᴇᴌᴀ @skiwi It is all a farce anyway.
@pacmaninbw s/farce/force
Nope, I meant farce.
16:26
~trying hard to resist more puns
0
Q: Finding the unique top sums from multiple lists

TortarMy question arises from this post on MSE where I have provided an answer to solve the question : There are multiple lists given. The number of lists is arbitrary. Each list contains numbers and is sorted descendingly. We shall take exactly 1 element from each list and calculate the sum of elemen...

16:45
Monking
17:00
0
Q: I'm new to programming and would appreciate some tips on my tic tac toe game

JLByrneI've been teaching myself python and decided to make a Tic Tac Toe game for a bit of practice. Any criticisms or pointers are welcome! Thanks. class TicTacToe: """A class for playing tic tac toe""" def __init__(self): self.values = ["-", "-", "-", "-", "-", "-", ...

 
1 hour later…
18:23
32-byte makes 256-bit and Fernet doesn't support AES-256. You should either use Hazardous, PyCrypto, or NaCl. I cannot reproduce your 44-byte. Always make sure that you understand what you get. In general, the library documentations provides examples. And stick to them. Once you have a working code you can ask a review at Code Review you will learn a lot from the expert. — kelalaka 38 secs ago
 
1 hour later…
19:48
@Malachi Hopefully my edits on the SQL Server question have improved the answer.
Never mind, I see you removed the comment.
I upvoted it right away it is a good answer
Thanks!
you betcha!
I need to get back to work though... LOL
ping me if you need anything
Hope you enjoy work!
 
1 hour later…
21:20
Wow when even Bill Gates is getting a divorce
skeezus! .... According to my initial research it happened to Chuck Norris 😏
22:17
@SᴀᴍOnᴇᴌᴀ What happened, divorce?
> Spouse(s) Dianne Holechek ​(m. 1958; div. 1989)​; Gena O'Kelley ​(m. 1998)
Carlos Ray "Chuck" Norris (born March 10, 1940) is an American martial artist, actor, film producer, and screenwriter. He is a black belt in Tang Soo Do, Brazilian jiu jitsu and judo. After serving in the United States Air Force, Norris won many martial arts championships and later founded his own discipline Chun Kuk Do. Shortly after, in Hollywood, Norris trained celebrities in martial arts. Norris went on to appear in a minor role in the spy film The Wrecking Crew (1969). Friend and fellow actor Bruce Lee invited him to play one of the main villains in Way of the Dragon (1972). While Norr...
22:55
1
Q: Generate combinations of a given sequence without recursion

Juggernaut17 Given an array of unique numbers find the combinations Doing a deep copy in the code to avoid changes to the passed obj by reference This has a run time of \$O(n \times \text{#ofcombinations})\$ - can this be done better -- iteratively and easy to understand import copy def gen_combinations(ar...

0
Q: reading txt file into a data frame, excluding commas and pound

deenahray22Here is a short sample of my txt file, county-covid-data.txt #County,Confirmed Cases,Probable Cases,Deaths Anderson,4595,1137,85 Andrews,1630,0,37 Angelina,4169,2688,208 Aransas,697,245,29 Archer,650,90,10 Armstrong,97,38,6 Atascosa,3267,930,96 Austin,1322,190,22 Bailey,561,200,16 Bandera,710,194...

23:46
1
Q: Finding number of possible arrangements of books on a shelf with a Monte-Carlo approach

teeeeeeThe Problem I am trying to determine numerically how many possible ways a number of books can be arranged on a shelf. Specifically, there are x3 categories "physics", "sci-fi", and "travel". Each contains N_phys, N_scifi, and N_travel numbers of books respectively. Within their category, the book...


« first day (2921 days earlier)      last day (1392 days later) »