« first day (3441 days earlier)      last day (568 days later) » 

12:05 AM
REFRESH! There are 8031 unanswered questions (89.4966 answered)
 
 
2 hours later…
1:37 AM
Then this is not the place. Check here: codereview.stackexchange.comaran 54 secs ago
 
 
1 hour later…
2:40 AM
0
Q: I was wondering if there a better way to write this code nicer when I started it

PacoSo, I was working the code to generate the password and translate the password into HEX. Then I been working on the for-loop to calculate how long it took to find the password and checking how many attempt to guess the password. And I was wondering if there is a simple way to write this problem. ...

 
 
2 hours later…
4:55 AM
0
Q: Nodejs Module Pattern And Caching

Sreejith sreejiThe question is about nodejs module pattern code structure. My goal is to initialise the module at one time and export the module using module.export so that, it's available in other files. I took Twilio for explaining. Here I want to initialize twilo using credentials and export it as twilioClie...

 
 
1 hour later…
6:24 AM
This might be a better fit at codereview. In any case it is very readable, self-describing and works. If you have to do it 1000 times , there may by faster ways but they would be less readable — mplungjan 17 secs ago
 
 
2 hours later…
8:21 AM
0
Q: Create Generic method for mapping of Entities to DTO in spring boot by isolating tightly coupled operations or via Reflection API

jackI have written a method which map the entity to dto using modelMapper, now I want to reuse it for other entities, so I want to transform the below method into generic type. private VehicleImageAndLayoutDTO mapToDto(MsilVehicleLayout msilVehicleLayout) { log.info("MsilVehicleLayoutServiceI...

 
 
1 hour later…
9:38 AM
0
Q: Adding data into multiple database tables with one form OOP

PeeyushI am facing problem in inserting data in two tables using single form. I have two clauses in my form one is fixed and the other is item table with add row function. When I tried to submit the form only data inserting in first table and it is also inserting in second table with blank value. I am n...

 
10:12 AM
If you have working code that you want general feedback on, see Code Review. — jonrsharpe 34 secs ago
 
 
4 hours later…
1:58 PM
Standard = everyone doing the same thing. Not everyone doing things after personal preferences. Also there is plenty of other "code smell" in this little snippet alone that I didn't even comment on, like those very fishy pointer casts. Consider posting the complete working code at codereview.stackexchange.comLundin 5 secs ago
 
2:08 PM
From here: github.com/golang/go/wiki/CodeReviewComments#interfaces "Go interfaces generally belong in the package that uses values of the interface type, not the package that implements those values." From here: dave.cheney.net/practical-go/presentations/… "Interfaces declare the behaviour the caller requires not the behaviour the type will provide. Let callers define an interface that describes the behaviour they expect. The interface belongs to them, the consumer, not you." — Max Chernyak 20 secs ago
 
0
Q: Creating Phone Number using Code Wars

mcccuklevHello people i solved a question on Codewars it was about creating a phone number and here's my solution how to improve i struggled with this solution to came up a lot but at the end i completed it i have some problems when i try to iterate through each integer because code makes duplicates but i...

0
Q: how to simplify conditional code in python

Mohamed AfzilI am a student I am new to python, This is my first code, any one help me to simplify this code. A=[5,"c","d"] total=0 for item in A: if (item == 5): total= item if (item == "c"): total= total-1 if (item == "d"): total= total*2 print("total"...

 
3:12 PM
0
Q: Making the UI responsive and reduce the loading time in WPF-C# App

Jassim SI am loading more than 1000 records from a csv file into my WPF graph chart. At this time, the UI becomes non responsive and it takes more than 5 minutes to plot the graph. After this 5 minutes the UI becomes responsive. I tried using Threading, Background worker, Dispatcher, Task, etc. But no us...

 
3:38 PM
-1
Q: Ternary Operator in Beautiful-Soup-based Parser

alphamuWritten a parser to scrap data from Canadian Statistics Bureau: stat-can. Was wondering if there is a way to rephrase the following and alike lines of code representing ternary operator: 'former_id': None if tag_former_id is None else tag_former_id.get_text() to have it more elegant and concise....

 
3:53 PM
Monking
 
4:04 PM
-1
Q: Misunderstanding of Project Euler problem 2

IllianI'm trying to tackle Project Euler problem 2, which states: Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be: 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ... By considering the terms in the Fibonacci sequence w...

 
4:29 PM
0
Q: Which Method is more Efficient when Saving Scraped Data to a File?

Seraph776When scraping and saving data into a file, Which method is more efficient when saving scraped data to a file? (1) open the file first, scrap , and save the data all while the file is opened, or (2) store the data into a dictionary and then save it to the file? For example, the following two scrip...

 
@CaptainObvious @pacmaninbw better now?
 
@Mast Much
 
5:04 PM
This was posted to Code Review, but the question is focussed on a specific feature request. — Mast 1 min ago
 
Ya don't say.
 
Say it ain't so...
 
5:43 PM
-1
Q: Making the UI responsive and reduce the loading time in WPF-C# App

Jassim SI am loading more than 1000 records from a csv file into my WPF graph chart. At this time, the UI becomes non responsive and it takes more than 5 minutes to plot the graph. After this 5 minutes the UI becomes responsive. I tried using Threading, Background worker, Dispatcher, Task, etc. But no us...

^^ got closed as a duplicate
0
Q: Making the UI responsive and reduce the time of loading in WPF-C# App

Jassim SI am loading more than 1000 records from a csv file into my WPF graph chart. At this time, the UI becomes non responsive and it takes more than 5 minutes to plot the graph. After this 5 minutes the UI becomes responsive. I tried using Threading, Background worker, Dispatcher, Task, etc. But no us...

 
Crossposts, always fun.
 
I just realized that
I thought my second link was not copied properly
it has two close votes
 
6:29 PM
"the code written is not great trying to improve and find better way of handling" - perhaps codereview.stackexchange.com is a better place for this question — BurnsBA 37 secs ago
 
6:54 PM
@俠客行, we made your code working. To get answers on how to combine them. I would suggest to raise this question concerning refactoring at the sister-site Code Review. The community their may help you improve your code further. — hc_dev just now
 
 
1 hour later…
7:55 PM
0
Q: Reading .unv and .obj mesh files

gokuI am working on some electromagnetic scattering problems. I need to read a triangular mesh object and use that for further process. I see that most of the mesh files are using .msh or .obj files. But I have a legacy code using .unv files. It is like this: template< class T > class UnvTrigMeshFile...

 
8:21 PM
0
Q: Reverse a Linked List Error

Manya GargIn a question, I was given to reverse a linked list. Now, I wrote the code for the question as follows, LinkedListNode<int> *reverseLinkedList(LinkedListNode<int> *head) { LinkedListNode<int> *prev = NULL; LinkedListNode<int> *current = head; LinkedListNode<int> *forward = current->n...

 
 
2 hours later…
10:07 PM
This post doesn't have a specific question in it and is not about a bug. I think it would be more suited on Code Review. Out of curiosity, did you already look at the tests used in fs? Maybe they have use cases that you didn't think about. — bretauv 21 secs ago
 
10:20 PM
 
10:41 PM
This may be better suited for Code Review. — Michael M. 31 secs ago
 
10:55 PM
-1
Q: Resilient IHttpClientFactory/Polly integration. I'm unable to handle the exceptions properly and it is missing logs

nopI'm not sure if my integration of IHttpClientFactory with Polly is correct. That's why I wanted to get a code review and there are two additional handlers that I'm unable to achieve: handling the exceptions and logging. handling exceptions, i.e. .AddHttpMessageHandler<EnsureSuccessHandler>(). I ...

 
11:21 PM
0
Q: Hawaiian Word Pronunciation

user265575I'm having trouble with my code. I'm supposed to take a Hawaiian work such as Aloha and make Ah-loh-ha. There are other rules I have to follow as well such as: Apostrophes have to be hard stops Spaces are breaks in characters Consonants generally stay the same sound, unless there is a 'e' or 'i'...

 

« first day (3441 days earlier)      last day (568 days later) »