« first day (3617 days earlier)      last day (399 days later) » 

2:14 AM
So, what is your question? Does the code you have shown work, and you want to see if it can be improved? The question might be more suited to Code ReviewOld Dog Programmer 36 secs ago
 
2:30 AM
0
Q: Creating Swagger documentation for API action (Web API 2)

Hooman BahreiniI have created an API action method which accepts list of jobs as json string and copies this list into file system, to be imported by a different process. I have explained the whole process in this code review. Here is my API action. It receive the list of jobs. Does some validations on the inpu...

 
 
2 hours later…
4:48 AM
Monking
 
 
3 hours later…
7:42 AM
0
Q: How do I use :before and :after in React?

Alexander FjelldalI am having my first go at React. (code at end of post) For one particular component, I want to achieve this: A p or h1 element with inline icons from an icon font. Icons contained in an element using :before pseudo-class. I started off inserting and elements (yellow blocks, styled for recogn...

 
 
2 hours later…
9:51 AM
0
Q: USGS data search and download using Machine-to-Machine python API with asyncio

YeOI have adapted the code at https://m2m.cr.usgs.gov/api/docs/example/download_data-py using asyncio and aiohttp instead of requests. I'm not familiar with asyncio so it is probably very naive. Any help would be appreciated to either make the code simpler and or more efficient. import asyncio impor...

 
 
2 hours later…
12:01 PM
0
Q: Is this a Monad, in C++?

StormCrowHave I defined a Monad object for C++? Below is a class called var which I created years ago to implement a lambda calculus like interpreter in C++. The class defaults to a value of nothing. If assigned a value, the behavior invoked during runtime is defined by the data type assigned to the va...

 
12:53 PM
0
Q: Deserialize bytes from the network into a struct

Ludovic KutyI want to deserialize bytes coming from the network to a struct. The bytes come in big-endian order (BE) and my computer is using little-endian order (LE). I'd like your advice concerning in order: The absence/presence of Undefined Behavior. The style used. Is it idiomatic modern C++ ? What woul...

 
1:04 PM
If you have code that's working but you're looking for help with optimization, try code review. Optimization of working code is off-topic here. — Michael Murphy 48 secs ago
 
 
2 hours later…
3:29 PM
0
Q: Performance Issues with Trie Data Structure in R7RS Scheme

clartaqMaking the transition from R6RS Scheme to R7RS has been very educational and fun. Chibi Scheme is my favorite because of its close compliance with the standard. When starting a new project, I wanted to re-use a library of Trie data procedures I had developed in Chez Scheme (R6RS). The conversion ...

 
4:04 PM
possible answer invalidation by Максим on question by Максим: codereview.stackexchange.com/posts/284223/revisions
 
Monking
 
possible answer invalidation by Максим on question by Максим: codereview.stackexchange.com/posts/284223/revisions
possible answer invalidation by Максим on question by Максим: codereview.stackexchange.com/posts/284223/revisions
 
4:21 PM
@Duga Commented and rolled back.
 
5:13 PM
0
Q: Optimizing how to write a local solver built into a global one

sammanI am trying to optimize writing a script that has 2 minimizations, one dependent on the other. My code is a bit bloated, and I find the global parameters that I am solving for depend quite strongly on the initial guesses for the local parameters (which is quite concerning). So while the code work...

 
 
6 hours later…
11:07 PM
REFRESH! There are 7355 unanswered questions (90.4221 answered)
 
0
Q: Same button style but different output

Benny KwanI have a div with 3 buttons in it. Same style but the back button is not aligned at the center but at the left side. Does anyone know what is the problem here? function firstTurn(turn){ if (turn == 'computer'){ ComputerMove(); } if (turn == 'player'){ PlayerMove(); } docu...

 

« first day (3617 days earlier)      last day (399 days later) »