« first day (3052 days earlier)      last day (966 days later) » 

12:03 AM
REFRESH! There are 7812 unanswered questions (89.3122 answered)
 
0
Q: NIQE score and PIQE score calculation for batch of images in Matlab

JimmyHuThere are some image quality assessment methods for "no-reference" image quality analysis. Here, I am attempting to calculate the NIQE score and PIQE score for batch of images in Matlab. The file structure of test images and the experimental implementation are listed as below. File structure of ...

 
 
3 hours later…
3:08 AM
0
Q: Scrape E-Mails using IMAP without Exceeding Bandwidth

Dawson IrvineI have the following code which works great to do what it is meant to do. It scrapes bodys of all e-mails in the inbox at an e-mail address using IMAP and retrieves the unique code sent inside the body and stores it in a database with the amount paid. I'm hoping to make it so when a user purcha...

 
3:49 AM
 
4:24 AM
0
Q: FIFO array/queue

deutschistschwerI'm new to programming and was tasked with programming a generic circular FIFO queue, without using anything but an underlying array and self-programmed methods. I'm still pretty bad at programming and still don't know how to approach bigger projects like this yet. I managed to program something ...

 
4:49 AM
0
Q: Manual authenticated encryption on .NET Core

LésterI've been tasked with creating some way to encrypt arbitrary text for a .NET Core app, with the following requirements: Messages will be between 10 bytes and 1 kB. Boss doesn't want me to use AES-GCM (which I know would be the sensible option as it's already included in .NET Core and I've alread...

 
5:40 AM
1
Q: Number guessing game in Ruby

codescaptainI am a newbie in Ruby. I want to learn Ruby and I want to learn clear code in Ruby. I coded a number guessing game but my code is smelling bad. How I can do better code? class NumberGuess attr_accessor :num_of_guess, :random_num, :name def initialize(random_num, num_of_guess, name) @name...

 
 
2 hours later…
 
8:21 AM
Certainly not hopeless - however, I'm of limited ability to help right now as I'm on holidays and only have a phone on me. Some D3 regulars help(/have helped) on the code review site in the stack network, which might be a good place to try. Though if you were to remind me in four weeks when I'm back at home I could take a second look, though I realize that's a long time from now. — Andrew Reid 29 secs ago
 
9:01 AM
0
Q: I coded my version of Sieve OF Eratosthenes using Python

Aryanprint("Welcome to the Sieve of Eratosthenes, where you can generate prime numbers from 1 to n : ") n = int(input("Enter your n : ")) y = [y for y in range(1,n) if y*y < 100] primes = [p for p in range(1,n+1)] length = len(primes) print(primes) for p in range(2,len(y)+2): for i in ra...

 
 
1 hour later…
 
3 hours later…
0
Q: Changing the color of Some Pixels in an Image in Swift

Raja SaadMy code is working perfectly fine, except for one-thing. The Performance is not up-to the mark. What I am trying to achieve is I have an image with few circles(each circle has a border with different color than circle fill color), when user touches any circle, I want to change the border color of...

 
1:13 PM
0
Q: Want some java-specific advice on coding style on a variable length array

user16038533I just started learning java and wrote this variable length array as my first program. I wanted people's opinion on how "java" this code is. For example coding conventions, idioms that I could have used or any improvements that could be made. MyClass.java: package myproject; public class MyClass...

 
2:12 PM
Monking
 
2:41 PM
Yeah you covered a numbr of code review remarks I had, some of which I mentioned in my answer. Please do review that answer though, because you missed the most important cause of Undefined Behavioursehe 22 secs ago
 
3:13 PM
This might be a better fit for Code Review (codereview.stackexchange.com/questions/tagged/python) or Software Engineering (softwareengineering.stackexchange.com) — Alex Waygood 40 secs ago
 
-1
Q: Boyer–Moore vote algorithm returns wrong result

Neslihan BozerI needed to find the majority element in a list and came across Boyer–Moore algorithm, So I applied it as recommended, the thing is if the majority elements are consecutive it is returning correct result, but if not it returns the wrong one These are the results after I run for the same array in ...

 
4:12 PM
Monking
Sep 11 '18 at 18:00, by Mast
Finally got my 4th Yearling badge on CR, so at least that's something.
7th today.
 
 
1 hour later…
5:25 PM
0
Q: Juego "El Ahorcado"

Aníbal LemusEstoy haciendo el juego de ahorcado, el programa hace el reemplazo y el dibujo avanza a medida que el usuario se equivoque. Pero cuando quiero indicarle al usuario que ha ganado o perdido PYTHON manda el mensaje de que ha perdido sin tomar en cuenta el "if" de ganar. Ayuda por favor. from math im...

0
Q: how to plot random no in form of histogram , get array

user249172suppose I have random numbers in form of a gaussian distr. I want to plot a histogram for that I want to get x[] and y[] arrays,x[] contains information about bins, and y[] contains the data. how can I implement in c++ simple code in loops, I already use while,if-else I want to this in for loop p...

 
 
4 hours later…
9:22 PM
@Mast Howdy old timer.
 
10:03 PM
1
Q: Enabling bitset-like behavior for enum classes (C++20)

Frederic SchönbergerI want to enable bitmask-like behavior (ie. overloaded operator|, operator& and operator^) for some enum classes. This is what I came up with: #pragma once #include <type_traits> /// \brief Marks an enum class as enabled for bitmask behavior. /// \param type The name of the enum for which to ena...

0
Q: Feedback for general programming style (data analyses & visualisation in Matlab, for psychology experiments)

z8080I've been using Matlab for many years to analyse data from my (psychology and behavioural economics) experiments, on average 1-2 per year. I have a suspicion that every such project (processing the output files, doing the stats, all the way to producing the final results and plots that go into th...

 

« first day (3052 days earlier)      last day (966 days later) »