« first day (1995 days earlier)      last day (2021 days later) » 

12:00 AM
RELOAD! There are 5751 unanswered questions (89.7298% answered)
 
12:17 AM
0
Q: Grabbing from an API with React

Kevin Muraney//API.js import axios from 'axios'; export default function API() { return { setToken: function(token) { axios.defaults.headers.common['authorization'] = 'Bearer ' + token; }, search: function(x, y) { let params = ''; console.log(axios.defaults.headers.common);...

 
12:33 AM
0
Q: Getting last or return a default value in a Seq[Either[A, B]]

urazaval y: Seq[Either[String, Int]] case class Response(value: String) val notFound = Response("Not Found") val found = Response("Found") val response: Response = y.lastOption .map(_.fold(_ => notFound, _ => found)) .getOrElse(notFound) I am getting a list of Eithers. I want to get th...

 
12:48 AM
0
Q: Double Entry Accounting Schema

Caio CarvalhoSetting up a double entry accounting system for personal use and to help manage a really small business. Trying to put a few features that seem relevant now. I'm just starting to learn about DB/Programming, so bear with me for obvious mistakes. My main doubts: Is this design solid from a pr...

 
1:03 AM
0
Q: Updating Code for Efficiency

DanMy current code takes a set of caller information ("calldataFile" or "CD_") and allocates it back to the specific source that it came from into a different file ("Internal File" or "WT_"). The code takes between 72-75 seconds to run for the specific data set I'm testing. Considering that is a...

 
 
2 hours later…
3:19 AM
0
Q: Local multiplayer text adventure game

Mr_whitespaceis a for loop the best way to go for multiple players? def main(): print('You find yourself in the city of Ironhawk') sleep(1) while True: playerCount = int(input('Enter amount of players playing')) playerCount += 1 if playerCount > 4: print('This...

 
3:32 AM
“I’m looking for some feedback and potential collaborators.” Welcome! StackOverflow is a Q&A site. For feedback, you might check the CodeReview subsite (codereview.stackexchange.com). Sadly, social networking for collaborators isn’t a good fit here and is considered off-topic. — stealththeninja 6 secs ago
 
3:53 AM
It seems CertainPerformance has given you a good solution, but in the future, the Code Review link I posted in my previous comment seems like exactly the place you'd want to post something like this. It's a great place for when you have working code and just want someone to help improve it, either in terms of performance or cleanliness. — Tyler Roper 52 secs ago
Thanks @TylerRoper. Honestly didn't even know there was a code review section here :P — Michael Guild 14 secs ago
 
 
2 hours later…
5:36 AM
0
Q: Football league ranking app models

wendkouniI'm running a football league ranking app that has 10 teams. I want suggestions on my models as I am bad in web development. class Team(models.Model): name = models.CharField( max_length=45) goalmark = models.IntegerField(default=0) goalencais = models.IntegerField(default=0) win...

 
6:06 AM
-1
Q: no. of lines formed by intersection of n planes

JasmineWhen two planes intersects a line is formed.Given n set of planes find the maximum number of line intersections that can be seen via the intersections of n planes. Input The first line contains the number of test cases, t The t lines that follow contain a number n denoting the number of planes Co...

 
 
1 hour later…
7:09 AM
Monking
 
7:19 AM
Monking
 
7:37 AM
The code and YAML file as given should not yield the error you show. Make sure the YAML is correctly formatted (indentation may haven gotten wrong when pasting). Also, please create a MVCE so that it is obvious what you are asking about. This usually also helps you understanding the problem better. Right now, this looks more like a request for a code review than an inquiry about a specific problem. — flyx just now
 
8:22 AM
0
Q: How do you find the maximum value in a list of lists?

AnonymousIn Python 3, Say you have a list of lists: x = [(1,2,3),(43,21,-1),(1,-10, 5)] Define a function(x) that returns the max value of the above list.

 
8:52 AM
0
Q: Npuzzle solver using A* with Manhattan + Linear Conflict (Updated Code)

abyssmuHere is the old thread that I started out with. The code I've got now is vastly different thanks to those two. What I have now functions fairly well and looks pretty good. I've managed to work it back down to some decent speeds, but I'm still encountering long solve states. I am "fairly" certain ...

 
This question might be better suited for The [codereview.stackexchange.com](code review site) — snakecharmerb 41 secs ago
This question might be better suited for the code review site. — snakecharmerb 29 secs ago
 
9:46 AM
Sounds like you are better off posting it over at Code Reviewvlaz 30 secs ago
 
10:02 AM
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.comNick 56 secs ago
 
10:52 AM
0
Q: Replace optimization

DangurI needed to do a script that finds and replace strings. The script will take a json config file that tells it which word to find and replace. This is what I did. I would like to know if there is a better implementation and any tips for better code or optimization are welcome. const fs = require...

0
Q: Dynamic Statement Executor

NaeI've written a stored procedure in order to simplify the process of calling dynamically constructed mysql statements. Implementation CREATE PROCEDURE statement(IN dynamic_statement TEXT) BEGIN SET @dynamic_statement := dynamic_statement; PREPARE prepared_statement FROM @dynamic_st...

 
11:22 AM
0
Q: Check if list contains 3 elements with predefined sum

gstackoverflowI have 2 solutions about puzzle I mentioned in title: solution 1( O(n^3) ): public static boolean sumOfThree_1(List<Integer> list, int sum) { for (int i = 0; i < list.size() - 2; i++) { for (int k = i + 1; k < list.size() - 1; k++) { for (int m = k + 1; m < l...

 
11:38 AM
0
Q: Making TypeNameHandling in json.net more convenient

t3chb0tHandling abstract types in json.net can be sometimes challenging because it requires a very long and complex syntax like: "$type": "Namespace.Type, Assembly" It's not that difficult if you have simple classes but as soon as there is some generics involved it becomes tricky pretty quickly: ...

 
Monking
 
12:25 PM
0
Q: Multitenant Service + UoW + Repository pattern

matt350I'm currently working on a multitenant application with Service + UoW + Repository pattern and I'm curious if I'm using the correct approach and see if I can improve anything. I am injecting services into my controllers public class SomeController : BaseController { public ISomeService Some...

 
12:56 PM
0
Q: JavaScript memory game extra life feature

AnonymousCome out with different logic for this. Extra life for a memory game module. function extraLife(moves) { if (scores < winningScore && moves == firstLife ? document.getElementById("heart5").style.color = "pink" : moves == secondLife ? document.getElementById("heart4").style.color = "pink" :...

 
1:07 PM
This may be more appropriate for codereview section — Alexis Drakopoulos 18 secs ago
If your code works, Code Review could be a better place to ask. — usr2564301 1 min ago
 
1:28 PM
bleh. creating contracts is really annoying...
 
1:44 PM
downvote why please? is it because it borders on code review? — cs0815 57 secs ago
 
1:59 PM
0
Q: How can writte a program in c that allows three individuals to log into a system

isheunesuThe first should be able to access the information of the other 2 that is level 1,the second individual accesses information of the third and his own i.e level 2 and the last only sees his own information i.e level 3

 
2:14 PM
0
Q: Python Text-based Card Game

AjeshI have programmed a card game in Python. How can I improve the code? There is a deck of cards. Each cards has a colour (red, black or yellow) and a number from 1-10. There are two players. Every round, each player takes one card from the top of the deck. Those cards are compared, and the winner ...

 
2:30 PM
0
Q: Why is this state machine faster than nested function calls?

flowitFirst, since the performance improvement is only seen in my actual project but not in some small test application, I cannot post a MWE unfortunately. I do layered data processing and switched from an implementation (A) that uses nested function calls to a state machine based solution (B). After ...

 
3:07 PM
@CaptainObvious Not a request for review.
 
3:46 PM
Thanks for the work in the queues @Mast :)
it's somewhat annoying / dangerous that the queues are comparatively full recently...
welp ... item in the review queue: last active 2.5 years ago ...
welp
 
 
1 hour later…
4:54 PM
I'm voting to close this question as off-topic because belongs to code review — stovfl 39 secs ago
 
5:23 PM
@Vogel612 No problem, I like seeing this site as clean as possible.
Makes it easier on the reviewers too.
@Vogel612 I don't have the stats, but can you see whether this is due to increase of flags or decrease in queue activity?
 
5:53 PM
1
Q: FCC: Product Landing Page - HTML & CSS only

Ayudh KhajneI have created a product landing page for a freeCodeCamp responsive web design project which requires me to create a "Product Landing Page". Here is my code: body { background-color: whitesmoke; text-align: center; } body, input, button { font-family: 'Ubuntu', sans-serif; } h1, h...

 
First off, don't ask 3 questions in one, second, issue 2 and 3 (the update) are both off topic as primarily opinion-based, so I recommend to strip it down. [codereview] might be a better place for the latter. — LGSon 52 secs ago
 
6:25 PM
0
Q: Having issues trying to get the withdrawal function.

Danny balance = [2000] y = float(input("How much would you like to withdraw? - ")) if y <= balance: r = [:] = [x - y for x in balance] elif y > balance: r = "You have insufficient funds." print "your remaining bal is %s" % (r) Im trying to get the function to either produce the remaining ...

 
7:00 PM
Just encountered this answer in the review queue:
0
A: Python Text-based Card Game

Abhay Raj Singh Rathod-Make it modular For example use ask()/prompt() for yes/no and printlne() Where def printlne(msg) : print('\n'+msg+'\n') Instead of print('\n text \n') instead of checking for yes or no_ -Put it on online git repository so people can contribute or you can manage easily

It is an answer, kind of. It needs some work. Does anyone have an idea on how to approach this diplomatically? Looks like English isn't their strongest language, which makes things just that little bit more delicate.
 
7:43 PM
0
Q: i borrowed this piece of code form somebody but i cannot understand what that line does

TurarTimer time = new Timer(); private void button1_Click(object sender, EventArgs e) { time.Interval = 1000; time.Tick += new EventHandler(ChangeImage); time.Start(); } private void ChangeImage(object sender, EventArgs e) { List<Bitmap> turar = n...

 
8:14 PM
0
Q: Should my repository create joined models?

Cory BaumerI have a get route to show the data for a chat with another user. If an existing chat exists I want to return that, otherwise create a new chat and return it. /chat/user/{contra_user_id} Should my Service or my repository be adding chat members to the chat? Currently I have my service creatin...

 
If this code works, please ask on Code Review (but please be sure to check out their how-to-ask page to improve your question first). — Andy Turner 35 secs ago
 
8:30 PM
-1
Q: Create a Simple Java Bank Code

AkashCan anybody post a simple java code for an atm with a single account with single pin number that shows a list of options including Checking balance, Withdrawing, depositing money and an exit option.. please use while loop to present options and switch to allow the user to select an option...

 
8:45 PM
0
Q: Program that finds prime numbers in a specific range,how to make it faster

Δημήτρης Σπανάκηςim kinda new to programming ,and i have that exercise.I made a program that runs just right for small ranges of numbers,but for this exercise we are given a high range of nums,and it just takes much time to finish examining. Any suggestions how can i make it faster? #include <stdio.h> #define S...

0
Q: CSV-simplified: A small open source project, looking for feedback and collaborators

conkytomI'm working on a small open source project called CSV-simplified for a course I'm taking (Bloc), and I'm looking for some feedback and potential collaborators. I don't actually know an programmers, so I'm hoping someone here may be interested in helping out. The basic idea of CSV-simplified is a...

 
 
2 hours later…
10:33 PM
I'm voting to close this question as off-topic because it's asking for a code review of properly-working but poor-quality code. It belongs on codereview.stackexchange.com rather than here. — Joseph Sible 51 secs ago
 
0
Q: Adding content into tableview Javafx

oraqngeI have a trouble adding content into tableview. And don't know why, I wrote a code for it and it wont add or give me any exceptions I'm confused. Here is the code: FXMLDocument : <?xml version="1.0" encoding="UTF-8"?> <?import javafx.scene.control.Button?> <?import javafx.scene.control.ComboBox?

 
Since this is working code, this question is perhaps off-topic on SO, and should be for code review, by my understanding of SO, being new here. — Tano Fotang 21 secs ago
Please submit your question to codereview.stackexchange. The question, as it stands, is too broad. — a_guest 31 secs ago
 
11:06 PM
This seems better suited for Code Reviewglennsl 51 secs ago
 
11:23 PM
0
Q: Javascript Pomodoro Countdown Timer Synced to the Clock

Foreel19This countdown timer is supposed to: 1) be synced to the user's clock 2) at every hour and half hour, will start a 25 minute countdown followed by a 5 minute break The code works but I question its efficiency. Is there some other way of making the clock count down instead of up? function start...

0
Q: JavaScript: Replace the new tab page in Edge & adding shortcuts

EdgeDeveloperI'm in the process of creating an edge extension that; 1 Replaces the new tab page in edge when a new tab is opened. 2 Open popup shortcuts in a the same tab. Event listeners have been used to ensure that shortcuts open in the same tab (YouTube is the demo below). JavaScript is also used to re...

 
11:54 PM
0
Q: A Javascript-based fallback for position: sticky

saltcodJust learning about this site today. Very excited! I posted a question to SO earlier today, right before solving it. Turns out, my question really is more of a code review kind of item. https://stackoverflow.com/questions/52908302/implement-position-sticky-in-vanilla-js-with-multiple-instance...

 

« first day (1995 days earlier)      last day (2021 days later) »