« first day (2400 days earlier)      last day (1915 days later) » 

00:00
RELOAD! There are 6291 unanswered questions (90.0542% answered)
00:24
I believe your question would be much more suited to codereview.stackexchange.comDavid Buck 20 secs ago
00:41
I'm voting to close this question as off-topic because it would be more suited to codereview.stackexchange.com — Peter 56 secs ago
01:32
0
Q: find all anagrams of a given word

nadishI wrote this program which generates anagrams for a given word. The init function will create a dictionary of words. it can be read from a text file or array. Here I'm reading words from an array to create my dictionary. I would like some advice on how to optimize this code or any changes or sugg...

01:53
0
Q: Make minimax alpha-beta faster

Johnny BraWith this following code, I can only do depth 1 and 2 in under 5 seconds, my goal is to do depth 4 in under 4 seconds, my evaluate method is nothing fancy and only counts the number of pawn in the initial board and in the new board and does a subtraction to get a nice little heuristic. How can I ...

02:12
This might be better suited for Code Review, although it is extremely short. — Alexander Cécile 19 secs ago
02:55
0
Q: How to quickly work a linechart created with jfreechart

Kai OhCurrently I use jfreechart through swt. The current problem is tens of thousands of files (currently between 10,000 and 20,000, up to 100,000 later) currently use DefaultXYDataset and XYLineAndShapeRenderer to load data after opening a file. There's a problem. 1.The chart on the screen is not...

03:08
@ChrisDoyle negative, code that does not work is off-topic on Code Review. Please read their help center and be familiar with the asking guidelines there before suggesting another network site. — Samuel Liew ♦ 49 secs ago
03:57
0
Q: C++ Data Structure Programming Sequence

ChristiePPPAfter I finished my code, I found it a little bit weird but cannot tell where. I hope to improve it. Thank you. Here is the question. Step (1) Take out the first K numbers from current sequence S into a temporary sequence n1, n2, …, nk, and pick the largest element Vmax out of these K numbers, t...

04:20
0
Q: x64 fasm strlen

the_endianThis is a simple strlen function with registers documented: ;in rdi - string to measure ;out rax - len .my_strlen: test rdi, rdi jz ptr_error or rcx, 0xFFFFFFFFFFFFFFFF mov al, 0 repne scasb mov rax, 0xFFFFFFFFFFFFFFFF sub rax, rcx ret NOTE: This code assumes a "C-Style string"; that is, a NUL...

04:52
I'm voting to close this question as off-topic because questions on optimizing existing code should be asked on Code Review instead. — EJoshuaS - Reinstate Monica 19 secs ago
I think you should post it on CodeReview. — TinMan 14 secs ago
05:11
Monking
Sorry, didn't know about code review — rpenmatc 22 secs ago
 
3 hours later…
08:08
0
Q: Python logging - wrapper

Mithilesh_KunalI am new to writing utility functions. I wrote a python program to return a Python logger with custom settings. Please review this code and provide comments on how to improve it. I am looking for comments on Coding Style Coherence & Coupling Readability I am intending to share this code acro...

08:28
0
Q: Optimizing a raycaster (C)

Russell356I have finished a raycaster, and I want to optimize it before I add other features, such as variable height walls, texture mapping and lighting. I'd like someone to review the code so I can improve it further. Code: https://pastebin.com/raw/91rLfcwd #include <SDL2/SDL.h> #include <sys/time.h> ...

0
Q: C++ program to find longest path in a tree

CC lauI have been trying to solve this problem in c++: https://www.spoj.com/problems/PT07Z/ I am attempting to use a double dfs solution to find the longest path in an undirected and unweighted tree. Here is my code: #include <bits/stdc++.h> using namespace std; typedef stack<int> si; typedef vector<v...

10:12
0
Q: Calculate 8 hours business day in a weekdays only

beetle_juiceI am fairly new into asp.net MVC c# I am working on request holiday app where an employee can request holidays. The problem is the app works fine, however, I am trying to set 8 hours a day when an employee requests a holiday I have scratching my head from 2 days already seen every topic in Stack...

 
2 hours later…
11:55
0
Q: process numerical input arguments of mixed ints, floats, and "array-like" things of same length>1

uhohI'm trying to process numerical input arguments for a function. Users can mix ints, floats, and "array-like" things of ints and float, as long as they are all length=1 or the same length>1. Now I convert them as follows: convert to float convert to np.ndarray; dty...

0
Q: Wrapper class template for std::map + std::list to provide a SequencedMap which retains insertion order

Oliver SchonrockReview on this draft please: clang-8 -std=c++17 Simple wrapper class template for std::map & std::list (or alternatively std:unordered_map & std::vector) for the purpose of "retaining insertion order". This is quite a frequently asked question, eg https://stackoverflow.com/questions/2266179/c-...

12:27
You've posted quite a lot of code. SO is not a code review service; Rather you tend to come here to seek help with a specific problem that you need help with. — Martin 22 secs ago
13:16
I'm voting to close this question as off-topic because this question should be on codereview.stackexchange.com not here. — Kevin Anderson 55 secs ago
0
Q: Playframework Java application with Couchbase database, retrieve and lock the document while saving

Kulwant SinghI am retrieving a document(UserDetails) from Couch with a lock of 5 sec, than updating the document and saving it. Code is working, but I am not sure whether it will work in real time scenario (in case of conflict) or not. I also want feedback to refactor the method. @Override public void submit...

13:59
0
Q: A progression of quines

Sep Roland A quine is a program whose only job it is to reproduce the source file that was used to create the executable in the first place. This stackoverflow post provides some reasoning about its usefulness. Below I present 5 different quines. The nice quine This program has an embedded copy of its c...

14:19
0
Q: Count swaps needed to order a list of integers

André FradinhoI wrote this code since I'm going through the hackerrank challenges, however, it takes way too long to run. Its function is described on the title, but just to clear it up, we need to count the minimum amount of swaps needed to order a set of ascending integers. def minimumSwaps(arr): count ...

0
Q: VBA - Working Code (Good practices, alternative solutions, etc.)

GravityCat190I started learning VBA for an internship, 3 months ago. This is the last project I have worked on. It does all the tasks it has to do, it's all about code review. I will be grateful for all suggestions for optimization of solutions/other solutions, good practices (writing, commenting on the code)...

14:37
I'm voting to close this question as off-topic because this would be a better fit for codereview: codereview.stackexchange.comFrankerZ 12 secs ago
15:01
0
Q: Read HTTP header from TCP socket

Matthias BraunI'm growing a web server in Haskell that interfaces with TCP sockets using network. To read the HTTP header of the client's message, I use the following function: import Network.Socket hiding ( recv ) import Network.Socket.ByteString ( recv ) import qualified D...

15:15
possible answer invalidation by Oliver Schonrock on question by Oliver Schonrock: codereview.stackexchange.com/posts/233157/revisions
15:31
I think this question would fit better on codereview.stackexchange.comPankwood 17 secs ago
possible answer invalidation by Oliver Schonrock on question by Oliver Schonrock: codereview.stackexchange.com/posts/233157/revisions
15:50
It's only (Rebecca) Black Friday once a year.
~groan ...
that one's only for the pun in the pretext for this atrocity
2
16:05
LOL
I'm pretty sure @rolfl did this one a couple of years ago.
Nov 28 '14 at 12:53, by rolfl
Rebecca Black Friday .... double-meme
16:34
Monking
 
1 hour later…
17:35
@Vogel612 LOL
17:49
if your code works, but you want to refactor it or do it in a possible better way, I think you can find a better answer here: codereview.meta.stackexchange.comCalvin Nunes 53 secs ago
18:27
0
Q: Identify MOT Dates which could be in various formats

MunkybunkyI want to significantly tidy this code as its cluttered and repetitive var myDate = "No MOT" if ((myData[0]["motTests"][0]["expiryDate"].string) != nil) { let theDate=myData[0]["motTests"][0]["expiryDate"].string let msYea...

18:46
19:09
-1
Q: Assigning a numerical value to each alphabet in corresponding order and then summing any inputted word

Tribs ParayattaI made a function that outputs the sum of the value of each letter in a word. For example if I input hello my function would output 52. def words_to_marks(s): import string values = {} # dictionary to store value of each alphabet values_of_words = [] # to store final v...

19:40
Welcome. codereview.stackexchange.com is the place for general feedback on your code - Stack Overflow is for more specific problems. I suggest you post this as a question there instead. — kaya3 27 secs ago
I recommend you to move this question to Code Review, which is another part of the Stack Exchange network. — CoderCharmander 30 secs ago
20:31
0
Q: Delete file from server (php function)

Mantykora 7Is there a better way to write this code. Suppose I have 10 files to delete and I have to repeat code (public function destroy() ) 10 times. First remove the database entry. List item, then remove the file. OOP - "don't repeat yourself", it works but I repeat the code. public function imag...

0
Q: Looking for general feedback on Python OOP banking project

statsgirl123I am in the process of trying to teach myself Python, and am at a point where I feel some general feedback on my styling/code efficiency would be super useful in order for me to progress. I have created a simple banking system in order to practice OOP (which I am still finding a little confusing...

0
Q: SequencedMap which retains insertion order - MKII

Oliver SchonrockReview on this draft please: clang-8 -std=c++17 Simple wrapper class template for std::map for the purpose of "retaining insertion order". This is quite a frequently asked question, eg https://stackoverflow.com/questions/2266179/c-stl-map-i-dont-want-it-to-sort/2267198 https://stackoverflow.c...

 
1 hour later…
21:40
If your code works and you just want to improve it, you're probably better off posting to codereview.stackexchange.com. One hint: think of using a StringBuilder rather than a String. Your append and delete operations will be much faster. — Jim Mischel 15 secs ago

« first day (2400 days earlier)      last day (1915 days later) »