« first day (2448 days earlier)      last day (1573 days later) » 

12:00 AM
RELOAD! There are 6360 unanswered questions (90.0785% answered)
 
12:25 AM
They probably added it for pedagogical purposes, to indicate that it is the "result" of something, and not the "input". Technically it is not need, and would most likely be rejected in code review for being unnecessary. — Automatico 44 secs ago
 
0
Q: auto-fold deeply nested parts of a file (vimscript)

JIStoneFolding in vim has bugged me for a while. What I intuitively want is for the details to be folded, but the overall structure of a file to remain unfolded. This way I can navigate around a file to see the structure quickly, and open folded sections when I need to dive into the details. What I hav...

 
12:54 AM
0
Q: Minimum router Peripherality Breadth First Search (BFS) Algorithm performance

MonteCristoI have solved the MinRouterPeripherality task in codility using javascript using Breadth First Search(BFS) approach. However time complexity is O(N^2). I am really struggling to make performance improvement necessary so I can get the time complexity to possibly O(N) or close to it Task: https:...

 
1:19 AM
Just to amplify what @Steve says, asking a code reviewer about his/her comments and then discussing things is a great to learn (sometimes for both of you) — Flydog57 55 secs ago
 
1:57 AM
Probably better asked here: probably better asked codereview.stackexchange.comcharlesreid1 51 secs ago
 
2:08 AM
@charlesreid1: Code Review is for working code. This code doesn't work. — user2357112 supports Monica 25 secs ago
 
0
Q: Generating packaging slips with Node

LinnyI was tasked with writing a script, in any language, to generate packaging slips. These slips would be sent to our printer and printed. The scripts functions are as followed: Read in data from data.json Insert data into f-strings, along with some dynamic formatting Writing the finished html da...

 
 
1 hour later…
3:18 AM
0
Q: Rust List comprehension macro

CircArgsI'm very new to Rust and as I've been going through the book I became very interested in its macros. To better understand them I tried to write something of a usable list comprehension like those in Haskell and Python. I've asked and had answered a question on SO in the process: Rust macro error:...

 
3:34 AM
Welcome to SO! If your code is working, this is a better fit for codereview.stackexchange.com. — ggorlen 51 secs ago
 
3:57 AM
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comBlastfurnace 29 secs ago
 
4:21 AM
0
Q: Assign key name based on row while loop

user-3857385Is it possible to automate the array inside the while loop and automatically assign the key name based on the row so I don't have to spell out each one? $stmt = $conn->prepare("SELECT * FROM tickets_info WHERE ticket = ?"); $stmt->execute(array($_POST['ticket'])); if ($stmt->rowCount()) { ...

 
5:10 AM
Monking
 
5:30 AM
possible answer invalidation by Aditya Soni on question by Aditya Soni: codereview.stackexchange.com/posts/235538/revisions
 
6:18 AM
@Duga thats ok
 
6:43 AM
0
Q: Shortest distance between two words in the list

TheCoderGiven a list of words and two words word1 and word2, return the shortest distance between these two words in the list Assume that words = ["practice","makes","perfect","coding","makes"] Input: word1 = "coding", word2 = "practice" Output: 3 Assume word1 does not equal to word2 and both in the...

 
7:04 AM
-1
Q: Simple clock with React Hooks

Евгений НовиковIs hook usage in this code fragment correct? import React, { useState, useEffect } from "react"; export function Clock() { const [date, setDate] = useState(new Date()); useEffect(() => { const interval = setInterval(() => setDate(new Date()), 1000); return () => clearInterval(interv...

 
7:58 AM
For code review questions you should post on CodeReview. — trincot 17 secs ago
possible answer invalidation by Toby Speight on question by TheCoder: codereview.stackexchange.com/posts/235713/revisions
 
8:25 AM
0
Q: User Class and MySQL Connection Handler

James PavettMainly used Stack Overflow, so first time over here for a code review. I am trying to make some enhancements to a legacy application. I have some minor experience using Laravel, but this application is using quite a heavy procedural approach, and I am struggling to work out the best way to struct...

 
9:02 AM
Monking
I know I haven't been in this chat for a few month now
But I’ve come a last one to say goodbye to y'all
7
I don't feel like participating anymore
 
9:16 AM
I wish you the best @301_Moved_Permanently :)
 
@301_Moved_Permanently Oh? Best of luck. Thank you for all your contributions over the years, you'll be missed.
@skiwi Just scan the titles of of the 20 or so most active questions on MSE.
 
@301_Moved_Permanently sad to see you leave. Have a good time. Come back if you feel like doing it.
 
9:34 AM
@Heslacher This just got modified per your request.
 
9:48 AM
Thanks
 
10:28 AM
0
Q: Custom Logger class

Alexander NielsenMy custom Logger class works just fine. However, the class is not intended for making instances of -- because there is really no reason to make instances of my class, or so I think. Any constructive criticism? Is this considered good "design"? I have a feeling that I shouldn't open a close my ...

0
Q: django add comment to article

Chris DoyleI have recently finished a "django for beginners" book that ended with creating a small articles site. The last chapter adds a Comment model which is linked to Article model. However the comments are just created in the admin page. As a continuation of the book I wanted to test what I have learne...

 
10:47 AM
If the code works, you may have more chance to have an answer at Code ReviewRaphael 56 secs ago
 
0
Q: get better performance

Iria Poncela BlancoI have this code that works, but I'm sure that it can be done better, any suggestions? result = Connection.Table<StrainGroupings>() .Where(sg => sg.Locale == locale) .Join(Connection.Table<OperationStrainGroups>(), strainGrouping => strainGrouping...

 
Although I agree this question is more fir in the Code Review stack, in apps script classes are not implemented yet, so you cannot use that in this case. — Raserhin 1 min ago
 
11:29 AM
0
Q: almostIncreasingSequence

rofrolThis is assignment from codesignal. Task is to determine if list is almost increasing. We can remove only one element in the process. fn almostIncreasingSequence(sequence: Vec<i32>) -> bool { if sequence.len() == 2 || sequence.len() == 3 && (sequence[1] > sequence[0] || sequence[2] >...

 
11:49 AM
0
Q: sqlalchemy filter by different number of parameters

cruimIs it posible to rewrite this condition to one line? def get_last_user_log(telegram_id, state=False): user_id = get_user_id(telegram_id=telegram_id) if state: log = UserLog.query.filter_by(user_id=user_id, state=state).order_by(UserLog.id.desc()).first() else: log = U...

 
12:10 PM
0
Q: Matrix Transpose in Golang

Manjeet ThakurI have write a normal programmer "Transpose the matrix" in go. Suppose input are always correct. I also read the article An Efficient Matrix Transpose in CUDA C/C++. So I keen to know how I can use Go-routines or another efficient way to problem in go way package main import ( "fmt" ) ...

0
Q: Create Word Document in C++

Malcolm McCafferyI am new to COM programming in C++ and while this code works welcome suggestions to improve readability/reliability. This creates a blank word document and adds the text Hello, World. // The Microsoft Office Object type library (mso.dll) #import "libid:2DF8D04C-5BFA-101B-BDE5-00AA0044DE52" r...

 
12:51 PM
This question seems to be better fitted for codereview.stackexchange.comhellow 22 secs ago
 
1:31 PM
0
Q: Fastest way to parse a datetime string in Rust

Ogee GeeI'm expecting this format: yyyy-MM-dd HH:mm:ss.ZZZZZZZ. Parsing this datetime string using chrono is slow. I've managed to parse it three times faster by naively parsing the string: fn try_parse_iso(str: &str) -> Option<i64> { if str.len() < 10 { return None; } let (year, s...

 
@Peilonrayz nice. No more editing urls!
 
1:46 PM
@Kaz Peoples responses on Meta 1 2 for anyone interested
 
1:57 PM
@Peilonrayz It was actually Shog9 and Yaakov posted it
 
2:12 PM
0
Q: Beginner ''Resta Um'' game

TlomolokoThis time I wanted to make a board game that is very popular in Brazil, it's called 'resta um', it means 'there's only one left'. The idea of the game is that there are holes in which there are pieces inside, the player has to pick pieces and 'jump' one another until there is only one left on the...

 
@Peilonrayz Yes, it's bloody fantastic they finally did that.
72
A: Add a link to the timeline of a post

Yaakov EllisI am happy to announce that a new and improved post timeline is now available to all users. It can be accessed by clicking the clock icon underneath the voting and favorite buttons that are located to the left of a question or answer. Clicking on the button will bring you to the timeline p...

 
Thank you for pointing me to Code Review. I will repost my message there. — Dave in Ohio 13 secs ago
 
The feature request is from '12, the user proposing it hasn't been seen on MSE since '17.
 
@DaveinOhio If you post it there, make sure to read their FAQ on asking questions before posting for maximum succes. — Mast 52 secs ago
Thank you all for pointing me to Code Review. I will re-post my question there. — Dave in Ohio 36 secs ago
 
2:38 PM
Thank you all for pointing me to Code Review. I have re-posted my question there. — Dave in Ohio 17 secs ago
 
@Kaz Meh, trainwreck has become several trainwrecks now, and now no one is happy. Good job SE and community. 👍👍
7
 
2:51 PM
@DerKommissar several? I'm laterally aware of two other posts that might be categorized as trainwrecks, but it kinda feels like just one humungous carom where more and more cars pile up and / or are unearthed ..
 
There was the first trainwreck that was half-repaired, after that they just kept crashing trains into each other.
Mostly on purpose, it seems.
 
0
Q: Using class-inheritance in Google Apps Script for better performance and leveraging Named Ranges

Dave in OhioIn trying to learn more about Javascript (Google Apps Script flavor), I created an object structure that I think might be useful for a number of projects. My main goals for this little demonstration are: learn the use objects (classes) and inheritance minimize calls to the Spreadsheet Service b...

 
@Kaz Good to see you're still around though.
 
@Vogel612 Ads, CC 4.0, Monica, CoC, Firings. Maybe more?
 
@Peilonrayz + all failed attempts at making amends, perhaps.
 
2:54 PM
@Peilonrayz HNQ/Twitter, Welcome Wagon
 
The EDIT2 would be more suitable for codereview.stackexchange.comJanne Matikainen 52 secs ago
 
and probably also the mess that is the blog
 
@brug HNQ/Twitter is fairly old right? Thought that died a while ago when IPS got back on the HNQ?
 
Firings?
Who was terminated?
 
@pacmaninbw Shog and Cartaino
 
2:55 PM
@Peilonrayz But I think it has been a steady stream of turmoil for years.
 
@Peilonrayz It hasn't been a year since we returned
 
1194
Q: Thank you, Shog9

Mithical@Shog9, a longtime Community Manager here at Stack Exchange, has just tweeted that he is no longer working at Stack Overflow: @shog9: Well... I suddenly find myself in need of work. If anyone's hiring: C++, JavaScript, C#, SQL + solid background in social software, community-driven developm...

 
And as brug said, HNQ was making lots of people angry even before the Twitter Gate
 
591
Q: Thank you, Robert Cartaino

mpdonadioThe title says it all. Thank You, Robert Cartaino, for everything you did for SE and the community. I don't post much on MSE, but have been a mod for about eight years. There is a lot that can go on behind the scenes, work that the CMs do to help out the site moderators. That is one of the thin...

 
@avazula Fair, I remember asking what it was and got told "we don't talk about it"
 
2:57 PM
HNQ was a mess in the first place
 
Indeed
 
HNQ has always been controversial.
 
it's been kinda semi-fixed now by adjusting the hotness formula and allowing mods to kick stuff off HNQ
the kick ability should've been there from the start and the formula adjustment is literal years late
 
@Peilonrayz Really? Oh. I'm sorry you had that experience :(
 
@Peilonrayz Someone has been keeping score.
 
3:04 PM
@Mast When do dumpster fires equate to a city burning down?
 
@pacmaninbw When there's enough dumpsters on fire to no longer notice the difference, I guess.
 
If your program works correctly try posting to Code Review. — Thomas Matthews 36 secs ago
 
By the way, Madara is stepping down too.
742
Q: I am resigning as moderator on Stack Overflow

Madara's GhostEffective immediately, I am resigning from my position as moderator on Stack Overflow. I will no longer actively participate on the site or network sites. I will move whatever discussions I can with the people here to other media, and mostly refrain from entering chat. These words are very hard ...

@Kev, I am pretty sure that the upper management wouldn't care much if everyone strikes and the queue hits 3k flags. (reminds me of this). There are already loads and loads of CM escalations in the back log which aren't even being handled. — Bhargav Rao ♦ yesterday
 
@DerKommissar Yeah a link hubs like this question an answers which has over 300 individual links (more since cross site links too) it's fairly easy to get up-to-date.
 
Everyone is abandoning ship :'(
But there's no other ship to move to
 
3:23 PM
@Gemtastic Not everyone, but enough to be a problem.
 
Too many
 
Emma Bostian on January 16, 2020

How often have you looked at the application you just built and thought to yourself “I really wish I knew how to add animations”?

I had this thought for a long time. I would build something really great, yet the interactions were minimal at best (the most I could do is a transition: background .1s linear), yet I always wanted more.

Animations not only take your application from good to exceptional, they’re often expected by users. But animations don’t just make your application look and feel nicer, they can be a useful tool for improving perceived performance, giving users updates on the status of a task, and guiding a user through your application. …

 
This question is probably better suited for the code review stack. — Chimera.Zen 52 secs ago
 
0
Q: Connect 4 class in C#

Youssef13I wrote the following class for a connect four game in C# using System; using System.Collections.Generic; using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConnectFour { class Board { private string _moves = ""; // stores ...

 
3:54 PM
0
Q: Calculate compounded interest

Dexter ThornMy job for now is to teach a trainee how to program. I told him to solve the following task, given by a book (I try to translate it): Write a program for compound interest calculation. The user has to enter the amount of money, the years, and the interest rate. The program should look like this:...

 
 
1 hour later…
5:05 PM
Monking
I'm not moving ship, but I guess interacting less with the platform (involuntarily) hurts them too
 
When posting this to Code Review, please provide your benchmarking harness, test data, and explicit instructions on how to run the benchmark. Otherwise each answerer has to create that from scratch and potentially tests something different from what you are testing. — Shepmaster 1 min ago
 
-2
Q: React Link passing ref to animation library

Jojo BagingsI am currently been for 2 days now attempting to get react-reveal to work where it does not require a refresh. Currently what is happening is when I change page via Link it does not trigger some of the components to animate until I refresh the page. I have read the documentation and it sugges...

0
Q: Hangman game assessment

K00lmanAs it is now the end of my semester for my programming class, we had a final test were we were supposed to make a short hangman game. I have since added some small improvements, such as showing the word when you lose and dynamic difficulty. import random def word_loader(): """Loads a rando...

 
5:35 PM
@AndyTurner This question is off-topic for code review as the code does not work (doesn't compile) — dustytrash 48 secs ago
@AndyTurner Err.. Sorry I see the code he posted on CodeReview does not match the image. This would have been on-topic for code review if not for the spelling mistakes. — dustytrash 54 secs ago
... that being said, if you want your code being reviewed, perhaps codereview.stackexchange.com is the better place. Just make sure to post complete and working code there — formerlyknownas_463035818 44 secs ago
 
6:15 PM
This would be a better question for codereview.stackexchange.comaynber 1 min ago
 
0
Q: Laravel - Repetitive code in store and update functions

Rainier laanI am working on a system and I can see myself using repetitive code that does not look right. I want to clean up my code but I don't really know many ways to do so. I have 2 methods (store and update). They both look like this store public function store(Request $request) { $user = ...

 
6:43 PM
Please provide a minimal reproducible example. There are definitely ways you can optimize the code, but without all the data it's impossible to write a conclusive answer. FWIW you could use itertools.combinations(dictOfAllData1, 2) to get rid of the second for loop. As well, you could consider asking on Code Review since you're asking how to improve working code. — wjandrea 23 secs ago
 
6:56 PM
I strongly suggest posting this on Code Review when you're done and have complete working code. — Carcigenicate 28 secs ago
 
7:23 PM
0
Q: Storing function metadata

QuestIn a project, we have a file that contains something like a script which we need to parse. At the moment the validation is tough since we have an array of functions returing variable and taking variableList (basically std::variant<>and vector of variants, see definition below) I am trying to have...

 
8:03 PM
0
Q: Is this encryption good enough for industry

TheziThis encryption class RSA encrypts an AES key and then when the encrypt method is called it decrypts the AES key and uses the key to encrypt the message and basically the same thing with the decryption. However I am very very new to cryptography so I do not know if this is considered "good" or i...

0
Q: Better way to iterate through a dictionary and comparing its keys with itself

Trevor AllenI have a dictionary with author names as keys and values of None. I want to use fuzzywuzzy to compare these author names to see if there are similar ones that I can combine. So far I am using two dictionaries (they have the same data in both of them, and ideally I would just use one) and then us...

 
8:45 PM
If your code is functional and you're just looking for feedback, then this probably belongs on Code Review Stack Exchange. — AMC 8 secs ago
This is both the wrong site (code review) and off topic (requesting code in C#). The Case statement should be read as OR. So execute this case when i = 6 OR 11urdearboy 46 secs ago
@urdearboy: This is not a code review question. — Ry- ♦ 13 secs ago
@urdearboy "What does this do" is explicitly off-topic for Code Review, as per their help center. — Mast 19 secs ago
 
9:53 PM
@Bremen, it is exactly for RAII-like behavior that attaching a __cleanup__ attribute to mutex would be potentially reasonable. I still wouldn't do that myself, but I can see the argument for it. But I don't see anything RAII-like in your case: that's why you decided you don't really need the proxy variable, which is in fact the resource being acquired. You are of course welcome to your own opinion, but code such as you presented would never pass code review with me, and I don't think I'm out of the mainstream in that regard. — John Bollinger 16 secs ago
 
10:26 PM
0
Q: Sampling from a vector with nested loops

JLCI have written a function/script to simulate data for sample size estimation. The following code samples from a vector of generated values with varying numbers of sample sizes and then concatenates means and standard deviations for a number of simulations. I am using nested loops but would like ...

 
10:59 PM
0
Q: Terraform/HCL - First element (or any arbitrary element) from a list of sets, combined into a list

Michael ZiluckSo I am working with Terraform and I feel like there must be a faster or, at the very least, a prettier way to perform the operation I'm attempting. For some boilerplate, I have a data block that looks like the following: data "aws_subnet_ids" "lambda_subnet_ids" { count = length(var.lambda_...

0
Q: Python - Hexadecimal to Decimal conversions

MattthecommieI have written a python 2 program for a school project to convert from hexadecimal to decimal without using built-in functions and vice versa in python. I would like to know how I can make my code more concise - specifically, the "d_func" function. d_dict = {"0" : 0, "1" : 1, "2" : 2, "3" : 3, ...

 

« first day (2448 days earlier)      last day (1573 days later) »