« first day (2577 days earlier)      last day (1441 days later) » 

12:00 AM
RELOAD! There are 6666 unanswered questions (89.9649% answered)
 
 
2 hours later…
2:21 AM
If you have a question, please just post it on this forum or another appropriate one (e.g. I think there's one for code reviews if that's what you'd like). If you'd like more support than that then see my profile for other ways I might be able to help you. — Ed Morton 42 secs ago
 
0
Q: Python code to reiterate different files

oo92I have written Python code to rearrange some files in a directory, create new directories and delete old ones to form the dataset in the structure that I want it. Previously, I was doing this with repetative code because it got the job done but I want to clean it up and see no reason to repeat c...

 
 
3 hours later…
5:45 AM
@Leon That's what code review is for. They will be happy to show you how to refactor the code. But they do require real working code. — user3386109 22 secs ago
 
 
2 hours later…
8:00 AM
0
Q: Vue.js in legacy web application

phwtI'm working on modernizing legacy ASP.NET WebForms site which heavily relies on doing AJAX request for client-side rendering. Without the use of vue-cli compiling .vue file with ease is not possible (or it is?). So what I'm trying to do is to replicate single-file components and folder structure...

 
8:17 AM
@Peilonrayz How, because it's the only address that doesn't have https?
In that case the RSS feed icon is offending too.
Well, sometimes.
http://cdn-chat.sstatic.net/chat/Img/feed-icon32.png
http://imgs.xkcd.com/static/terrible_small_logo.png
 
8:52 AM
A minimal reproducible example is needed for testing code. Reviewing code for improvements is probably better posted at codereview. — michael_heath 20 secs ago
 
9:11 AM
-1
Q: C# Async Server/Client Multiple Messages

Levente DócziI have this async server-client code which can send only one message right now. Can you please review it and help me, how to send multiple messages? I want something like a unique Sender class, but the code didn't work with it. The Client class Program { static void Main(string[] ar...

0
Q: How to avoid multiple if-else statements to make the code more readable and clean?

Buddhika NelumI have the below C# (.net core 3.1) code with multiple if-else conditions which makes the code looks more complex, unreadable, and ugly. Can anyone suggest to me an efficient and cleaner way to achieve the same? bool result = false; //Do main transaction var mainResponse= await ExecuteFeeTr...

-1
Q: C++ matrix class

Fl.pf.To get used to pointers and C++ (only work with Fortran otherwise), I started writing my own matrix class. Since I want to use BLAS/LAPACK and wanted to learn how to use extern, I wrote myself a wrapper for dgemm. While matrix multiplication for 'n','n' and 't','t' works, 'n','t' and 't','n' a...

 
 
1 hour later…
10:22 AM
-1
Q: classes in my python package jerryPycia

AndrewI've recently made a python package to explore a dataset I've collated that includes information on most of Grateful Deads shows. The code works (it is all at https://github.com/andrewblance/jerryPycia ) and the package is available from pip. What I am curious about is how I have structured ever...

-1
Q: Request for member which is of non-class type in maps

Naman JainLapindrome is defined as a string which when split in the middle, gives two halves having the same characters and same frequency of each character. If there are odd number of characters in the string, we ignore the middle character and check for lapindrome. For example gaga is a lapindrome, since...

 
10:46 AM
> Connection not secure: Parts of this page are not secure (such as images).
So yeah
@Mast How do you get that in the 2nd?
Just to double check you can see it in the transcript yesterday secure, the day before insecure
 
11:10 AM
0
Q: React.js Simple Numeric Input with Mask

mbharanidharan88I've a created a simple generic numeric input component with input mask which must only valid decimal numbers as input. Please check the code for any improvements. import React, { useState } from 'react'; import PatternConstants from '../Constants/PatternConstants.js'; const NumericInput = (pro...

 
As interesting as this is, working code that could be improved is a better fit for Code Review. Make sure you specify what specific improvements (speed, efficiency, code readability, etc) you are after. — halfer 20 secs ago
 
11:31 AM
Note that I believe that you're currently running into a dead end or at least make the solution somewhat to complex. If your project is working for a given feature set, then head over to Code Review and get some feedback. However, keep their rules in mind, post only working code and be open minded for any feedback. Also provide context on your code; in its current form, even your SO question unfortunately left a lot to guess. Best of luck with your WYS48! — Zeta 6 secs ago
 
11:48 AM
@Duga We need to answer 110 questions to keep the number palindromic.
 
0
Q: Max Heap Implementation in Python

MahdeenSkySo i decided to challenge myself to code this data structure by just seeing how it looks visually and this is what i got, i can change this easily to minheap by changing some greater than (>) operators. If there are ways to make this efficient/more compact, i'd love to hear it. class MaxHeap: ...

 
12:21 PM
0
Q: Python type hinting

ricardo_guerreroI'm new to using type hinting in Python. I've used it for a small scraper I had to build (see code below), everything works fine and mypy gives no errors. However I'm sure there are better ways to write this (avoiding the repetition between the Ratings and ScrapedData tuples, better way to handle...

 
12:54 PM
hey
 
1:33 PM
@Peilonrayz Got that straight from the page info you mentioned.
But it was listed as secure anyway.
The page.
Before I started posting those pictures.
@Peilonrayz Correct
@Zeta I'm not stopping you :-)
 
@Mast Oh, I found it on the page. (Just under the list of people in the room) Mine uses background-image: url("https://cdn-chat.sstatic.net/chat/Img/sprites.png") for some reason tho...
 
1:48 PM
You should better ask this question here: codereview.stackexchange.comVickel 31 secs ago
I’m voting to close this question because it belongs to codereview.stackexchange.com — Vickel 55 secs ago
 
2:11 PM
you should go to codereview.stackexchange.com stackoverflow is here to solve problems and in your case your code work — Ifaruki 43 secs ago
thanks for tips, I will try to ask this question ir codereview! Here is a all codeSimas 9 secs ago
 
0
Q: Using dynamic methods to build SQL queries in CodeIgniter

Rohit SahuI'm using this class as Modal in my CodeIgniter project, as I'm newbie in CI, I wanna know if this has some issues, I'm using this modal for all queries, like I call this with parameters and it returns results as I wanted. But I'm not sure if it a good idea or it might give some bad impact to str...

 
@Peilonrayz Odd
 
2:29 PM
thanks for tips, I will try to ask this question ir codereview! Here is a all code if you curious — Simas 12 secs ago
 
2:43 PM
0
Q: Javascript - how can I increate the run speed of these loops

userqwertI am trying to solve this question: MaxCounters. Solving it is straightforward, but solving it fast enough is proving very difficult. How can I improve the performance of this code? At the moment it is too slow for the large_random_2 and extreme_large tests. function solution(N, A) { const ...

0
Q: To input a word as a string and shifting its characters

Nipun DeeptBasically we have to enter a word as string and an integer K and to make a new string by shifting all the characters of the word by K. For example:- Input the string: abcd Enter the value of k: 3 Output:- New string formed by shifting all the characters of the string by 3 is : defg Must not ign...

 
3:01 PM
@SimonForsberg RMunroe avatar is updated.
Also updated the CommitStrip Avatar
 
I'm surprised some of the other feeds are still on http without screwing the lock up.
 
hmm ...
CommitStrip runs on wordpress..
nice... the Feeds user's profile image is loaded with a protocol-relative URL
 
0
Q: Faster python recursive modified traveling salesman method

SimasI am writing modified traveling salesman problem recursively in Python 3.7. It has to find best path around breweries to find the most beers types and not to exceed the max_distance. The problem is the execution time. I left it run for 10 hours and it still didn't calculate final answer. When max...

0
Q: How to make code more readable?

nowakasdI've made simple app that is able to take screenshot each -t seconds and OCR it to -o file. It's also able to take -path and OCR all images to -o file. It works pretty well thanks to tesseract ocr. Unfortunately my code seems much more complicated than it really is. Can you tell me what I'm doin...

0
Q: How can I sign up user? Php

nyima kungaI can't figure out what I am doing wrong. I need suggestion or modification to my code. I can't sign the user up. When I press the signup button, it takes me to a blank page. Also nothing is registering inside the database. I just need some feedback for my codes.Thanks in advance <?php inclu...

0
Q: Entity Framework optimization when using transactions

mark02I want to save NUnit local tests in a mysql database hosted in Amazon RDS, and I'm wrapping up everything in a transaction like so : using (var context = new StDbContext()) { context.Database.Log = Console.Write; if (!context.Database.Connection.State.HasFlag(Co...

 
3:45 PM
This type of questions is meant for Code Review. — Mansoor 23 secs ago
 
4:22 PM
@CaptainObvious Broken code.
 
4:42 PM
-1
Q: jQuery get index of .active element, but with reference to its original siblings

Divyansh SinghI am toggling an active class to an object in jquery in a grid like so : $(".cinema-seats .seat").on("click", function () { $(this).toggleClass("active"); } Basically, if I have a 3x3 grid of boxes, and click on 2 boxes randomly, they will be assigned active classes. Now, I want to get the...

 
5:07 PM
@Zeta Need one more VTC.
@Mast What is an ode review?
@CaptainObvious No code.
 
5:29 PM
0
Q: Resource management classes in C++ game

wenoThis is a part of simple sfml C++ game, but I think neither the library nor the language is that much crucial here. I am mainly worried about the design. I have a class template ResourceHolder<Key, Resource> to hold one type of Resource such as texture or sound, inside a map. A key is usually an...

 
6:03 PM
@pacmaninbw A typo. There's a C missing.
 
6:38 PM
@Mast I thought maybe you were moving on to poetry, but then again code is poetry. :)
I mean good code.
 
7:04 PM
-2
Q: OpenGL 2 textures run slow / process killed

tadoI am attempting to learn OpenGL, more or less from scratch. I seem to run into an issue when I load two different textures, and use a different one depending on the y-position of the shape. It works, but it appears that computing each frame takes a lot longer than I'd hope for. My computer seems ...

 
 
2 hours later…
8:40 PM
1
Q: Transforming a vec of future to a future of vec in Rust (traverse function)

MolochdaaI'm pretty new to Rust and to it's async/await model, and I'm trying to do something that looks like a specialized Haskell's traverse function : Given a Vec<R> and a function R -> Future<Output = T> I want to get a Future<Output = Vec<T>>. At the moment, I have the following: use futures::{Fut...

0
Q: Double linked list API design in C

user692992I have created the following few functions for handling the use of doubly linked lists. list.c: #include "list.h" #include <string.h> #include <stdlib.h> #include <stdbool.h> /* all functions returning a pointer return NULL on failure * all functions returning an integer return != 0 on fai...

 
9:29 PM
0
Q: PyQt5 GroupBox Layouts Feedback

GokberkI will import given code for my main QMainWindow.(I only add import sys etc. to run it) Is there a more compact way to code this lines. Output is correct for my expectation. from PyQt5.QtWidgets import * import sys class ButtonWidget(QWidget): def __init__(self): super(ButtonWidge...

 
10:17 PM
0
Q: Implementing a Steepest Descent Algorithm

BlueI am teaching myself some coding, and as my first "big" project I tried implementing a Steepest Descent algorithm to minimize the Rosenbrock function f(x, y) = 100 * (y - x**2)**2 + (1 - x)**2. The algorithm goes like this: We start with an initial guess x_0 (vector). We update the guess using t...

 
10:38 PM
no a) they don't post here nor do they try to pass a code review in openjdk/openjfx b) that might be your custom formatting rules (don't say they are, but might) anyay, *of — kleopatra 41 secs ago
 
11:28 PM
I’m voting to close this question because it belongs on codereview.stackexchange.comZze 48 secs ago
 

« first day (2577 days earlier)      last day (1441 days later) »