« first day (2644 days earlier)      last day (1378 days later) » 

12:00 AM
RELOAD! There are 6870 unanswered questions (89.8304% answered)
I'd have a few comments, but they'd be more suitable for codereview.stackexchange.com — superb rain 12 secs ago
Since it was a fun challenge, I created a topic on codereviewIcepickle 43 secs ago
 
12:23 AM
0
Q: A library for interacting with JPL Horizons

PandazoicI'm writing a tiny Python library that fetches data from Horizons, JPL's solar system data and ephemeris computation service. An overview of their batch CGI is here. While the script is simple, I would like to make it as clear and standardized as possible. The idea is to initialize the HorizonsRe...

0
Q: How to add option with Click CLI and pass the option correctly into functions

Daniel DoanI'm taking my first programming course so please pardon if questions are too naive. I'm using Python Boto3 module and 'Click' library to build a Command Line Interface that manages EC2 instances. Code: @click.group() @cli.group('instances') def instances(): pass @instances.command('list') @cl...

0
Q: Verifying if a string can be created with the letters of another string

IcepickleThis is basically based on the following question on stackoverflow which was based on a codewars assignment that can be found here Problem statement Complete the function scramble(str1, str2) that returns true if a portion of str1 characters can be rearranged to match str2, otherwise returns fal...

 
1:14 AM
0
Q: In Java: convert an array of floats to bytes and vice versa

fearless_foolI'm just returning to Java after a multi-decade hiatus -- there are some nice new packages, such as java.nio. I need to convert an array of floats into bytes and vice versa. The floatToBytes() function feels okay, but I'm pretty certain that bytesToFloats() could be implemented better. Thoughts...

0
Q: Updates or creates an entity based on if a value is present in an Optional

JamesI need to get car info from a 3rd party web service and persist the data in my application DB. If my DB already has the car, I only update property values that may have changed. Otherwise, I create and save the car: @Transactional //Spring Transaction void saveCars() { //get CarInfo from a we...

 
1:40 AM
If you think your code is inefficient, maybe you could post it on code review. — cigien 7 secs ago
 
2:04 AM
1
Q: Using R to Dynamically Query Database Using SQL Template

Christian MillionPurpose of Code The purpose of the main function (get_player_penalties()) is to: Generate simple SQL statements from user input and a template Query a database using the generated SQL and return a summary table to the user Ultimately, I will reference this code to create similar functions (an...

 
2:55 AM
0
Q: JAVA For loop is slow

YHTANI have a code return by my vendor which was slow. I need public comment on their code so that they can improve. . . .

 
 
1 hour later…
4:14 AM
0
Q: PHP 7.4.8 5.6x faster than same c++ program in similar test (g++ 4.8.5)

LukeI'm absolutely dumbfounded by this. I was trying to demonstrate to myself how much faster c++ is than even modern PHP. I ran a simple csv parsing program in both that have the same output. The csv file is 40,194,684 parsed down to 1,537,194 lines. PHP Code (runtime 42.750s): <?php $i_fp = fopen("...

 
4:44 AM
Ryan Donovan on July 30, 2020
I asked Georges Saab, Vice President of Software Development at Oracle’s Java Platform Group what changes to Java made the most impact and what upcoming features he believes will have a real affect on its future. Here’s some of the features that Saab feels made the language proliferate and a few that will keep it enduring.
 
5:01 AM
Monking
 
5:30 AM
0
Q: Why appling Shank Tramsformation to Lebniez series for Pi Recursively is becoming very slow

CODER BSorry for any mistake i am new and of 11 years. So first I found a simple series named Lebniez series for PI. I made a program and then realised that because It is an infinte series it will give approximation and the convergence rate is very slow. So here is the program I made after learning abo...

 
5:52 AM
Monking
 
 
2 hours later…
7:29 AM
We're somewhere between Stack Overflow and Code Review right now. I have some comments on your style, which is probably down to outdated teaching material. It's good that you have strict and warnings. Those are helpful. But you should indent your code as well, that'll make it easier to read. Your open call has some problems, but they're not the cause of your code not doing what you want (look up 3 argument open if you're interested). — simbabque 44 secs ago
 
8:02 AM
0
Q: Replace specific exception as part of try/catch retry mechanism

GenadyLooking for a most efficient way to replace some specific exception and to leave others exceptions treatment the same the same. try { // some business logic } catch(UniqueConstraintViolationException uex) when (!uex.IsFatal() && !ShouldRetry(descriptor, command, uex, ref retryResult)) { throw ...

 
That's very nice to hear. I studied those, too, as well as looking at the Lisp 1.1 manual. The most recent set of objects I've made is for parser combinators. I got the GC really small and simple there. Be sure to let me know what you're building. This kind of stuff always seems to result in something cool. :) — luser droog 29 secs ago
 
8:53 AM
0
Q: Extending method chaining IEnumerable with Add..If

Matthias BurgerI'm trying to write an extension (method chaining) for playing around a bit. What I made work is an extension to add an item to the list (what is pretty easy): IEnumerable<int> myList = originalList.Add(12); What I now want to do is: IEnumerable<int> myList = originalList.Add(12).If((list, @new) =>

 
9:05 AM
I'll appreciate feedback on this answer: https://codereview.stackexchange.com/a/246232/205955
Put quite some efforts there.
 
 
1 hour later…
10:09 AM
1
Q: Generic memoize utility function for pure functions

Ngoy LufoGiven the following generic memoize utility for pure functions with type hints: function memoize(callable $fn, callable $serialize = null): callable { $serialize = $serialize ? $serialize : 'serialize'; return function(...$args) use ($fn, $serialize) { static $cache = []; ...

 
I am sure this question belongs to code reviewAlwaysHelping 52 secs ago
 
 
1 hour later…
11:25 AM
StackExchange has better place for this and it is codereview.stackexchange.comivan.ukr 59 secs ago
 
11:50 AM
0
Q: What improvements can I do to avoid the virtual method call in the constructor?

Juan Rendon LSI am trying to solve the warning, which avoids the call of a virtual method, I have seen different answers, but none of them seems to solve my doubt, I understand why this warning appears and is one of the ones you should not suppress. My code gets data from Matlab and uses a method to configure ...

 
@Peilonrayz @SᴀᴍOnᴇᴌᴀ has the OP fixed the problems? codereview.stackexchange.com/questions/246203/…
 
@pacmaninbw IDK. I've left my CV there as it kinda smells off. But I don't mind if it goes either way
 
I've skipped it for the time being, the OP has definitely put effort in trying to meet our requirements.
 
12:40 PM
0
Q: Pythonic way to flatten lists or arbitrary depth using assignment expressions

Hank IgoeI'm working on flattening a list of lists of arbitrary depth, and I have two solutions, but I'm wondering which is more Pythonic. # helper function def isList( x ): return isinstance( x, list ) def flatten3_h( *xs ): if ( len(xs) == 0 ): return [] # base case, empty list/tuple hd, tl = xs[ ...

 
1:06 PM
-1
Q: HTML Email template - mso conditional statement

Christine SalazarI'm working with an HTML email template for a project. Everything works great on Gmail, Yahoo, and Outlook web email client, except for the Outlook desktop app v16.0, which I have a spacing rendering issue. I used mso conditional statement to target this specific version. But it doesn't seem to w...

 
1:31 PM
@pacmaninbw @Peilonrayz Smells like hiding the problem to me. But if the current result is labelled as acceptable now, shrug, technically it's reviewable.
 
1:49 PM
@Mast Agreed
@CaptainObvious Welp that's 100% gunna go 🔥🔥🔥
 
0
Q: Is this a good structure for javascript a program

FutureCakeThis is an example of an actual project I am working on and I am wondering if this is the correct way to go continue going about it. Or if I should change it to use a different structure now it is still possible. The structure right now is the following: I have a main class that is main interface...

 
@Peilonrayz I was looking at that question really hard to figure out why it would go up in flames.
Got it now.
 
Ah, lol
 
@CaptainObvious MRC
@CaptainObvious Unfortunate.
Also, how the heck is that written by an 11 year old?
I thought I had a weird youth, but sheez.
I wasn't programming recursive Leibniz shanks at that age.
 
2:06 PM
@Mast Has it hit HNQ yet?
 
@pacmaninbw Nothing can until it's been up for 8 hours. But that one will
 
What's it scoring at, 150% or so?
 
@Mast Pretty mad question (in a good way ofc)
I bet that kids gunna go far
 
@Mast I took a class in assembly programming at that age, run by the Los Angeles Museum of Science and Industry.
Learned how to calculate speed due to acceleration by gravity.
 
I'd done some Qbasic and Pascal, but no formal education in CS until almost a decade later.
Programmed some small casino games, and minor science problems like calculating the distance of an object in horizontal throw.
Things you could all easily validate.
 
2:14 PM
@Peilonrayz CIO or CTO before 25.
 
possible answer invalidation by Peilonrayz on question by Hank Igoe: codereview.stackexchange.com/posts/246243/revisions
 
@Duga Added example into question from comments
 
0
Q: I have this nested array of promises maps, how can I make it more functional?

Ricardo SilvaI started learning functional programming with JavaScript and I have the basic idea of Functors, container types and etc. I was trying to experiment with arrays but I don't know how to solve the problem of a function call that iterates over a array and returns returns another array. So the first ...

 
I'm just saying, the TRON soundtrack by Daft Punk is my favourite programming background music.
 
2:46 PM
@konijn Any part in particular?
 
That's the thing, you have to play it from the start to get you in the mood, and the pieces seem perfectly aligned to be played one after an another
If you didnt know that it was a soundtrack, you could believe it was an album
 
2:58 PM
You might want to post this on codereview.stackexchange.com its more focused on this kind of request — Josh Beauregard 59 secs ago
 
3:11 PM
You've just picked the wrong forum. As long as you are comfortable with the input being sanitized. And to then use that filtered version further on. Some omit the filter. Logically it looks fine to me. You might be more accurate to compare to false for the validation. Do post on codereview, it's a good terse piece of example code. — Progrock 16 secs ago
 
3:24 PM
M0nk1ng
@Mast my app shows 107% after 3 hours... we shall see how high it climbs as the 8th hour nears
s/app/userscript
 
3:42 PM
now 124% after some recent upvotes
 
4:03 PM
Monking
 
4:44 PM
code reviews are usually performed on codereview.stackexchange.comnjzk2 6 secs ago
 
4:54 PM
0
Q: C# easier ways to filter values in data-grid by month

LV98Goal: My goal is to filter datagrid by selected month from dropdown options. January, February, March etc... I'd like to know if there are easier methods to my current method.. Code: public Schedule() { InitializeComponent(); RefreshGrid(); Dictionary<string, string> allOptions = new...

0
Q: Is there a redundancy between the two functions of adding a start node and an end node to my graph?

user228433I feel like there is a redundency between: def _determine_nodes_with_no_predecessors(nodes:List[Node])->List[str]: """ Given the list of nodes returns the identifiers of nodes that doesn't have any predecessor. """ nodes_ids_without_prdecessors = [] for node in nodes: ...

 
5:19 PM
0
Q: Trying to use an Unity EventManager and events to change parameters into another script

capocchioneI'm trying to code some kind of EventManager to use events to change parameters into another script. The EventManager.cs, attached to an empty object "EventManager" in the scene is coded as follow: using System; using System.Collections.Generic; using UnityEngine; public class EventManager : Mo...

0
Q: Python: Memory-Efficient way to subtract elements of datasets of HDF5 file?

user13815479I am trying to solve the following problem: Input: Input is two arrays (Nx4, sorted in column-2) stored in datasets-1 and 2 in HDF5 file (input.h5). N is huge (originally belonging to 10 GB of file, hence stored in HDF5 file). Output: Subtracting each column-2 element of dataset-2 from dataset-1,...

 
5:33 PM
@CaptainObvious Broken code.
 
@konijn I have heard of the movie but not yet seen it; I started listening to the soundtrack but feel I should watch the move now - will have to add it to my watchlist
 
@SᴀᴍOnᴇᴌᴀ The first movie or the second one?
I haven't seen the second one.
 
I haven't seen either of them
 
0
Q: Workbook _open copy-paste reference sheet (30k+lines) from other workbook on change only

Patates PiléesWorking on finding a way to reduce in-cell formula size and memory usage of my excel workbook, i came up with the idea to "load" (copi-paste) the reference sheet i was mentioning a lot with a workbook open. To make it more efficient i had a loop that verifies if the sheet has changed and only cop...

 
might alter my impressions of The Dude
 
6:10 PM
0
Q: Prototype of background save facility

NickI have developed NoSQL database. At the moment it has no threads (async). When the database need to save data to disk, it blocks connections until it save. This method works OK, becauce save is fast - 3-4 sec, but I still can improve by background save. Here is the prototype of background save fa...

 
6:35 PM
0
Q: Employee name auto-complete on card scan

Patates PiléesIm currently running an employee name substitution on card scan. Overall the code takes the entry trough the gun scan, "scan" trough the hidden reference sheet to find a match and then input the actual complete name. I had to implement that feature to my code so that names are always written the ...

 
7:00 PM
possible answer invalidation by Anirudha Mahale on question by Anirudha Mahale: codereview.stackexchange.com/posts/245996/revisions
 
7:51 PM
0
Q: safexl - A Python / pywin32 Excel Application wrapper

ThePoetCoderThanks in advance for your interest in my first PyPI project. While there happen to be a number of projects out there to help with creating & consuming Excel workbooks, I was unable to find one that made working with pywin32 any easier, so I built it myself. Using pywin32 for automating Excel wit...

 
8:04 PM
If your code works fine and you are just looking to make it better, then your question belongs in code review instead. codereview.stackexchange.combraX 14 secs ago
 
posted on July 30, 2020

We’ll be performing some server maintenance on our primary SQL clusters at 8:00 pm US/Eastern (12:00 UTC July 31, 2020). We expect to be read-only less than 15 minutes.

 
@Feeds <obigatory gif of Adam Sandler yelling "once again, things that could have been brought to my attention yesterday!" />
@Duga this is tough to call - the OP of the answer claimed in a comment that it didn't compile 2 days ago, even after the OP (of the question) added import statements... the answer says it only covers the view model, and the third revision did add a BaseViewModel that is used as a parent class to the PatientCaregiversViewModel.... I'm not sure if the edits in revision four make the code compile or not...
 
8:32 PM
@SᴀᴍOnᴇᴌᴀ It's really quite simple. If the question is not closed it's AI. It has 0 close votes and looks like it's going to stay that way. Therefore it's AI.
 
okay - this is probably recorded in Meta, right? maybe implicitly by this answer
 
23
Q: How should we deal with askers fixing off-topic questions when an answer has been posted?

PeilonrayzI did a quick search to see if this has been asked, but it didn't seem to be. The intent behind this question is from how this question was handled, but is not limited to it. The situation is an asker posts broken code. It gets an answer. (Question may get closed as 'off-topic broken code'). O...

This allows edits to off-topic questions where before no edits were allowed.
 
okay - I apparently bookmarked that meta post a while back but I don't look at those bookmarks very often..
 
I looked at my bookmarks the other day (like half a year ago) and was really confused... ;)
I was seeing posts I've 'never' seen before
 
@Duga rolled back
 
8:42 PM
0
Q: How to copy and paste a filtered range more effeciently

user228474Hello everyone so I have this bit of code here that works for copy and pasting an autofiltered range I just wanted to see if anyone knew a more efficient way to do so as it does take quite a while to complete it the way I have it now. I looked into trying to do so with a copying into an array but...

 
@CaptainObvious typo in title not fixed from SO post :/
 
 
1 hour later…
9:54 PM
If this code works, and you are simply asking if there is a better approach, then this question is off topic for StackOverflow. If this is the case it would be more appropriate on codereview — Taplar 12 secs ago
What does your database look like? You have not provided a Minimal, Complete, and Verifiable example. Without seeing your tables and how the product_id corresponds to the price in your table, there is nothing we can do. This is also a Code Review which should be posted on StackExchange. Please take a look at How to ask a good question?Jaquarh 18 secs ago
Stack Overflow is not a code review site. — MattDMo 14 secs ago
 

« first day (2644 days earlier)      last day (1378 days later) »