« first day (3068 days earlier)      last day (21 days later) » 

12:02 AM
REFRESH! There are 7840 unanswered questions (89.2981 answered)
 
12:19 AM
0
Q: Reliable separation of Steam users

RickI wrote this bash script to try to make sure save games don't get mixed between different steam users using the same Ubuntu account. It uses inotify to try to figure out when a user changes and a soft link to point to the correct folder. #!/bin/bash link_name=~/.factorio check_username=$(awk -F'"...

 
 
1 hour later…
1:21 AM
Also, this question would be more suited on codereview.stackexchange.comflakes 47 secs ago
 
 
1 hour later…
2:22 AM
0
Q: Extendable Validation Library

Parlor311I'm looking to develop a validation library which can be extended by adding custom validation rules. To write a custom rule, simply write a class and apply the ValidationRule decorator like so: @ValidationRule('array') class IsArray { constructor(a?: number, b?: number, c?: number) { } ...

 
3:11 AM
0
Q: Socket.io: Pairing from two rooms without repeated pairing?

RainningTWI'm working on a user-pairing algorithm using socket.io, and it is running on Node.js. I want to make sure that no repeated pairings will happen when people connect in. The steps of the algorithm as follows: Divide the players into two rooms, one for retailers and the other for suppliers. When a...

 
3:27 AM
This would be better posted to codereview.stackexchange.comflakes 46 secs ago
 
0
Q: Is there any way to speed up my dictionary/map search?

CoderTangI am once again attempting another CP problem, and I have ONCE AGAIN run into an optimization issue because of the time limit of one second: https://open.kattis.com/problems/doctorkattis It is common for cats to have puncture wounds with different severity of infections. To help her local neighb...

 
 
2 hours later…
5:20 AM
Monking
 
 
2 hours later…
6:54 AM
0
Q: A circle in a circle

WalidSiddikJust experimenting some things with css, I made a centered circle div (inner) which is inside a circle div (outer). <!DOCTYPE html> <html lang="en"> <head> <title>Document</title> <style> body { margin: 0; } .outer { background-color: skyblu...

 
7:42 AM
I mean I can find a lot of Google's open source projects on this websitelink, but I don't know how to quickly find projects that support code review. — wasky 43 secs ago
 
 
2 hours later…
9:21 AM
0
Q: Is it possible to remove some code to make the macro run faster?

user249792My code runs exactly as it should. However, I would like to make it run a bit faster. I have tried defined some variables to 'Long' to run it faster but it still a bit slow. Sub sortiereninl() Dim sort As Worksheet Set sort = Worksheets("Inland") Dim count As Long Dim n As Long Dim wkn As ...

 
 
1 hour later…
10:35 AM
0
Q: I made a win function but now i can only place 1 tile,

SuperTommyDogSo i made a hangman game using pygame and following a tutorial, now i am trying to make Tic Tac Toe on my own but the check win statement now only lets me place down 1 tile before stopping the game. Can anyone help? import pygame # Setup display pygame.init() WIDTH, HEIGHT = 800, 500 win = pygam...

 
@L3n Great! I'm monitoring the Kotlin tag so if you post something in Kotlin, I will be sure to take a look
What was your project about btw?
 
11:11 AM
This question is for code review. codereview.stackexchange.comKhaby Lame 29 secs ago
 
11:24 AM
0
Q: C++ Minimal CSV parser

frozencaI wrote a minimal CSV parser for my machine learning toy project. class CSV { public: using data_type = std::variant<int32_t, float, std::string>; using row_type = std::vector<data_type>; private: std::vector<row_type> rows; std::vector<std::string> column_names; std::vector<int

 
12:12 PM
Yes, some people do that. No, it is not good style. There are ways that you could simplify your makefile and make it easier to maintain without removing the filenames altogether, and that would be a better goal. Any way around, however, the question is too broad for SO. But if the makefile presently works as-is, then you could consider asking for improvement suggestions over at CodeReview SE. — John Bollinger 17 secs ago
Before you post at Code Review, make sure to read A guide to Code Review for Stack Overflow users, as some things are done differently over there - e.g. question titles should simply say what the code does, as the question is always, "How can I improve this?". Be sure that the code works correctly; include your unit tests if possible. You'll likely get some suggestions on making it more efficient, easier to read, and better tested. — Toby Speight 24 secs ago
 
12:38 PM
0
Q: How to avoid getting a duplicate entry in the slice of slices in this Go solution?

InianI'm trying to solve this Go problem - 3Sum in Leetcode with Go. Have obtained the result almost right, but facing a problem with duplication of one of the slice entries, though I've added a logic to use only unique entries of parent array using unique map The code I have so far (functional) func ...

0
Q: Use formats phone numbers into XXX-XXX-XXX

dborovskyI created an input that accepts and formats phone numbers into XXX-XXX-XXX. The user should be able to type numbers and the dashes should insert themselves automatically. Example #1: The user types 1 2 3 4. The input shows 123-4. Example #2: The user types 1 2 3 4 BACKSPACE. The input shows 123. ...

 
 
1 hour later…
2:03 PM
For properly working code that needs improvement on style/performance, look at posting this on the sister side Code Review. It is another site on the stack exchange network that is more properly suited for questions like this. — blackbrandt 52 secs ago
 
2:52 PM
This seems a better fit for codereview.stackexchange.com since your code works as intended — Juan Mendes 13 secs ago
Your question has nothing to do with a switch statement, it wouldn't improve your code at all? As I mentioned in my previous comment, if your code works as intended, stack overflow is probably not the best place for this question. You're asking for a code review — Juan Mendes 56 secs ago
 
3:06 PM
0
Q: Online Judge 10189: Minesweeper (C++)

EmaroI'm new to C++ (not to programming in general), which I want to learn to participate in some programming contests. I solved the Online Judge Minesweeper Challange. Since I'm not familiar with C++, any feedback (including nitpicking) is very welcome. My algorithm: For each field... Read the dimen...

0
Q: This code replaces each element of an array with the product of every element of the array except the current one. Suggestions for improvement?

moonman239This code replaces each element in an array with the product of every other element in the array but the current element. So, for the array [5,2,3], the program outputs [6,18,108]. The code is below, but in essence, it iterates through each element, and sets the element to the product of the othe...

 
3:25 PM
Monking
 
0
Q: I have wrote a python code to check the null values and the code was working fine but I need to simplify the code

John I want to check null values in excel files where there are many sub folders. I have wrote a python code to check the null valuesin excel files in each and every folder and the code was working fine but I need to simplify the code. import os ,uuidtre import numpy as np import pandas as pd import l...

0
Q: How to refactor this method with unknown number of parameters?

Bladerider1I have an API which makes calls to another API, in turn. I have some code that, at the moment, is duplicated in all my methods. It essentially is below: gs.Invoke(); WebClient client = new WebClient(); string username = "xxx"; string password = "xxx"; ...

 
4:07 PM
Monking
 
4:20 PM
0
Q: Product except self - Naive and Horner's method

GonzoI am going through common interview questions and came across this one. Aside from the complexity of my naive solution, why is this approach not correct? I am essentially computing the result as stated in the problem statement. My approach gives the correct answer only for the first half of my sa...

 
4:49 PM
@Donald.McLean I doubt there is much to worry about here but FYI:
-5
Q: Can I hack nasa?

Ayat Mohammed AyattHow can I hack nasa , or can I do that from the first place , lol don't eat me guys Im just kidding yet if I can tell me the way lol

 
5:34 PM
0
Q: Learning asynchronous caching by implementing one

huseyin tugrul buyukisikAfter implementing a serial CLOCK second-chance cache in C++, decided to dive into Javascript through NodeJs and write an asynchronous one. I think on basic functionality it's nearly complete but there might be some things that I've missed both on implementation and unit testing. Also what kind o...

 
 
1 hour later…
6:47 PM
0
Q: PRINTF LAMBDA function in Excel with ParamArray arguments - no VBA

GreedoThe TEXTJOIN function has a really nice interface: =TEXTJOIN(delimiter, ignore_empty, text1, [text2], …, [text252]) ... where text2 onwards are optional args, and each text argument can be a string (hardcoded or function return) or an array of strings (from a range or an array formula). This le...

 
7:09 PM
It seems that your code currently works, and you are looking to improve it. Generally these questions are too opinionated for this site, but you might find better luck at CodeReview.SE. Remember to read their requirements as they are a bit more strict than this site. — gunr2171 30 secs ago
 
7:33 PM
Yes, but they didn't ask for a code review, only for help with the error they got. — rv.kvetch 41 secs ago
 
0
Q: Time Complexity of my 2 pointer algorithm

myTest532 myTest532For the given problem below, what would be the time complexity of my solution (below the problem). I think it is not O(n^2), but I am not sure if it is O(n). Problem: You are given two strings s and t. You can select any substring of string s and rearrange the characters of the selected substring...

0
Q: Bulk operation in DDD logic

Johhny BravoI am currently exploring DDD and have read quite a bit about the topic, but as I am working on more complex scenarios, I am thinking about the proper way to solve the conceptual issue of bulk operations. I am also using CQRS (which shouldn't contain nested command) approach to solve my problem (a...

 
8:01 PM
0
Q: Data processing with the CERN ROOT framework

KeithMadisonProblem. I have a directory of .root files (the proprietary format of CERN's ROOT framework). These files contain so-called TTree's, essentially tables who's cells may contain virtually any c++ object or type. In my case, these files contain tables of integers, which I wish to perform some operat...

 
8:18 PM
Probably belongs to Code ReviewLarsTech 49 secs ago
 
0
Q: The code here is part the beginning of my text based adventure game but it does not seem to run at all can someone help me plzz

Cristi3Welcome Message def welcome(): print(" Hello Hero welcome to the TOWER. My name is Charon") credentials = input(" Please tell me what to call you hero?") print("You seem to not be on my list of people called from the globe to compete in this dungeon are you sure you want to continue?"...

 
 
3 hours later…
11:50 PM
Since this code "works", and the question is just about boosting its performance, I would suggest asking on CodeReview instead. — Remy Lebeau 28 secs ago
I’m voting to close this question because the code "works", the question is just about boosting its performance, so I would suggest asking on CodeReview instead. — Remy Lebeau 30 secs ago
 

« first day (3068 days earlier)      last day (21 days later) »