« first day (1991 days earlier)      last day (2020 days later) » 

12:00 AM
RELOAD! There are 5732 unanswered questions (89.7476% answered)
 
0
Q: Pyton - How to change a date(str) in a lists of lists with multiple functions

Oxynor There are 3 functions involved : Obtain_events() obtain_date(date) obtain_day_year(month, day) [['Musique', 'Shawn Phillips', '2018-08-24', '2018-08-24'], ['Musique', "L'avenue Royale fête l'été!", '2018-08-25', '2018-08-25'], ['Musique', 'Perséides musicales', '2018-08-03', '2018-08-03'], ['...

 
monking....
 
12:41 AM
You need to post the code, but this might actually be a better candidate for Code Review. — Barmar 26 secs ago
 
1:40 AM
Please use the code review site, codereview.stackexchange.comLex Li 23 secs ago
 
2:10 AM
0
Q: Given two integers x and y, the following recursive definition determines the greatest common divisor (gcd) of x and y, gcd(x, y):

AGIquestion : { x if y = 0 gcd(x, y) = { gcd(y, x % y) if y ≠ 0 Write the program to test this fuction. What is the value of: a. gcd(54, 24) b. gcd(5, 38)

0
Q: Is there a better way to make this algorithm work? Java

Alexander Ramirez BlonskiThe algorithm bellow is meant to allow a user to roll a die as many times as he would like, then print how many times each side was rolled and how many rolls there were total. import java.util.Random; import java.util.Scanner; public class DieRoll { public static void main(String[] ar...

 
 
2 hours later…
4:17 AM
0
Q: JavaScript Snake: First app

SeanI posted this in StackOverflow and got a little dressing down for being off topic among other things. But they did point me here so hopefully this is ok. I just finished my first full app in javascript and I'm hoping to get some feedback. I guess I'm looking for overall design advice, use of cla...

 
Have a look at Bryan Oakleys answer to this question. — figbeam 1 min ago
 
4:54 AM
If your code is already working, then this question might fit better on our sister site, Code Review Stack Exchange. — Tim Biegeleisen 49 secs ago
 
5:52 AM
0
Q: Integer to Roman Numerals (1 - 2999)

Henry SoThis is a homework assignment. Convert an integer (1 - 2999) to roman numerals. I was wondering if I could make my code more efficient. The way I have it set up is that I take the digits of the input (the thousands, hundreds, tens, ones) and have cases for each of them. However, the approach I to...

 
6:07 AM
0
Q: Flatten a Dictionary C#

GiladThis is a question from pramp: A dictionary is a type of data structure that is supported natively in all major interpreted languages such as JavaScript, Python, Ruby and PHP, where it’s known as an Object, Dictionary, Hash and Array, respectively. In simple terms, a dictionary is a col...

 
6:39 AM
0
Q: Export data stored in GG Bigquery into GZ file

Han Van PhamI used this code to export data into a csv file and it works: project_id = 'project_id' client = bigquery.Client() dataset_id = 'dataset_id' bucket_name = 'bucket_name' table_id = 'table_id' destination_uri = 'gs://{}/{}'.format(bucket_name, 'file.csv') dataset_ref = client.dataset(dataset_id, ...

 
7:26 AM
0
Q: Any tips for optimize this inner-loops performance?

markzzzI'm within an Audio application, that send variable buffer length to my DLL, which will process at higher speed (48000 samples per sec, but can also be higher). Here's the code I've written: while (remainingSamples > 0) { int blockSize = remainingSamples; if (blockSize > PLUG_MAX_PROCES...

 
7:42 AM
0
Q: bash cgi for htpasswd registration

IiridaynI decided to go with a very simple CGI user registration program to pair with Apache's mod_auth_form wrapper around a private site. It was only just after I finished writing that I realized I'd written security-sensitive code in a language I'm not my best at. Is this code secure from parameter i...

 
7:58 AM
-5
Q: http://www.ukfitnesscenter.com/anamax-male-enhancement-reviews/

Hiwxvss's CubeAnamax Male Enhancement Guarding is the individual subconsciously keeping a higher-than-natural muscle contraction, day and night time. this text introduces you to the relationship among your fingers and the man or woman's unconscious awareness. Massaging muscular tissues of their shortened posit...

 
8:14 AM
0
Q: Bubble and Cocktail sort performance

Oscar GuillamonLately, I've been developing sorting algorithms as a kind of exercise to make better code and I've come accross something curious, even though bubble and cocktail sort are known to perform horribly, I think I might be doing something wrong since it takes a larger amount of time than selection, in...

 
8:30 AM
0
Q: Python Class conversion

SharonaI am to encapsulate the GUI part of the code below into a Class. from tkinter import * from tkinter.ttk import * def plus_one(): """Increments counter by 1 """ global click_counter, counter_label click_counter += 1 counter_label["text"] = str(click_counter) def minus_one(): ...

 
8:46 AM
0
Q: Creating text game with JavaFX Interface

Martin GontšarovIt's only my third day with Java and I already got a recommendation to check out JavaFX and build a simple text game. I do like text games, but I had no idea how to implement the features that I wanted. Anyway, I'll post only the mechanics inside UI Controller class, so you can tell if it's effic...

 
It depends heavily on what the functions are doing. This is more a question fitted for code review, and you should provide the complete code (with an example that can be run) if you want help on code optimization. — Mathieu 31 secs ago
 
0
Q: Why these 2 Go codes act differently?

philipjkimI have 2 Redis servers (data are diveded to 2 servers) and I should run GET operation to both servers for a given key. The 1st version of my code: package main import ( "fmt" "github.com/garyburd/redigo/redis" ) var pools []*redis.Pool func main() { readServers := []string{ ...

 
9:17 AM
0
Q: Pythonic quick sort

KKPI'm new to the world of python, and wrote this quick sort implementation which was taught to us in an algorithms class. I would like to learn to write code less like C++ and more pythonic. Could you review my code to make it more pythonic and less buggy? (I'm sure a class implementation is better...

0
Q: N-puzzle solver using A* with Manhattan + Linear Conflict

abyssmuI've been working on this project for a couple days not. This version anyway. It's been like a total of like a year and a half of working on it off and on trying to get it to work. Finally managed to get it to work and I got it to where it solves about half of the time. The other half goes for so...

 
9:35 AM
Nearly forgot - if the code's working the question is better suited to Code Review than here. — Darren Bartrup-Cook 28 secs ago
 
9:49 AM
0
Q: Calculate things on the fly or at the end

KonradLet's say we're making a shopping cart. A shopping cart will have a total amount of money you've got to pay for the products you've selected. I'd like to approach the problem using both OOP (encapsulating it) and more anaemically or functionally (without encapsulation). Let's start with the sim...

0
Q: Read file csv and export to array nodejs

phuong vuong nguyen var fs = require('fs'); var csv = require('fast-csv'); var list = []; const data = ""; var read = fs.createReadStream('my.csv') .pipe(csv()) .on('data',function(data){ // I already tried to get out data in here but data don't get out the function console.log(data); }) .on('end', func...

 
 
1 hour later…
10:52 AM
0
Q: Inserting nodes to the end of a linked list by function

stackmodernI am trying to insert nodes to the end of a linked list by function. This is the insertNode function: void insertNode(complexNode *x) { int number; cout << "Please enter the element you want to add: "; cin >> number; complexNode *temp = new complexNode; temp->num = number; temp->nexts[0] = n...

 
11:11 AM
For future reference, this sort of question is more suited for codereview.stackexchange.comDan 29 secs ago
 
11:24 AM
-1
Q: Spread the word of Codechef

Jon BI am Solving a codechef problem but experiencing 'Segmentation Fault'(Runtime Error - SIG SEGV). However I am not able to find for what input its giving error. The question is : There are N people numbered 1 through N. Initially, only person 1 knows about Snackdown. On each day, everyone who...

 
11:40 AM
2
Q: K&R Exercise 1-13. Printing histogram of word lengths (horizontal variant)

div0manI'm going through the K&R book and want to get the most from it. How does the following solution look to you? Note that, for the sake of exercise, I don't want to use techniques not introduced yet in the book. Also, I'm trying to reuse whatever code/philosophy already presented in the book. /* E...

0
Q: Interest of this idiom used in PriorityBlockingQueue

spiwith colleagues, we were discussing the following idiom found in the code of PriorityBlockingQueue (Oracle JDK 8, v1.8.0_131). At almost every use of the field private final ReentrantLock lock, the developer has chosen to first store it in a local variable (defined as final too). The pattern look...

 
11:55 AM
0
Q: WA in "Spread the Word"

Meet JoshiProblem Link https://www.codechef.com/SNCKQL19/problems/SPREAD2/ Link to the solution https://ideone.com/JAO5lX I am getting Wrong Answer. Where am I going wrong?

 
12:30 PM
2
Q: Does [ascii-art] mean only ASCII?

Toby SpeightI'm looking at the ascii-art except, which says ASCII Art is a graphic design technique that uses 93 of the 128 printable ACSII characters to create images. Whilst this is almost true (it uses the 93 printable/space characters of the 128-character ASCII set), I believe the term is also used...

 
0
Q: Shell POSIX OpenSSL file decryption script follow-up #3 (final)

VlastimilFrom original very simplistic code: Shell POSIX OpenSSL file decryption script I learned a lot both from the first follow-up review, and the second one as well, many thanks! I just need one final review round, so that I can feel confident, there are no more blind spots. I promise it is the l...

 
1:28 PM
Greetings, Programs.
 
0
Q: Eassily create a logger in python for many modules with loglevel set according to command line arguments

Doron BeharI'm trying to learn writing python programs in a modular way as much as possible. One of the issues I've had difficulty to solve is parsing command line arguments (with argparse) and having a logger object in all my modules which it's name will be the __name__ of the module and it's log level ide...

 
1:46 PM
0
Q: Collect members from custom tree nodes

ThaodenIn my program, I have a tree of Group nodes, each identified by their ImportId. Each group has zero or more members, that I want to collect. Each group has zero or more child groups, referenced by their importId, whose members should be added to the collection. Each group has zero or more Rule...

0
Q: i need to know how can my following pearson correlation finding code be better to select features(attributes) in dataset

Haseeb Hassan Asif My question lies in the better use of array... i can understand the working of most of the code however there is so much room for improvement... because i came from a java,c++ working environment to python and i don't understand the variable types that i am using so even my question can be impr...

 
2:00 PM
may be better for code review SE - may also be worth adding a TL;DR segment at the top that clearly summaries the issue — ThisGuyHasTwoThumbs 20 secs ago
are you asking us how to fix the error, or are you asking us to provide a new uploader class? Or are you asking us if this is a "good" class? Your post is unfocused and a bit unclear - too many questions in one (some of which are off-topic). Please focus on a specific issue. The error/bug is the one we'll deal with here. The other questions are probably more suited to other SE sites (e.g. code review or recommendations) — ADyson 54 secs ago
 
2:34 PM
-1
Q: switch case inside for loop cant work c

ronaldI'm Trying to use switch case inside for loop but apparently it wont work #include <stdio.h> int main() { int a,b; char x,y,z; scanf("%d",&a); for(b=l;b<=a;b++) { scanf("%c %c %c",&x,&y,&z); switch (x) { case '!...

 
3:05 PM
0
Q: Determine list indexes for start and end indexes for multiple variable Strings [Java]

nathan3882I was wondering whether people could recommend some modifications they would make to this code if it were theirs, thankyou :) Note that this was done in a quick testing environment so various pieces of code such as the list of subject names in the loop are hard coded The output for this code is...

 
3:24 PM
Questions that ask for refinements to code that is already working are better suited for Code Review Stack Exchange. — laptou 51 secs ago
 
3:37 PM
0
Q: PHP Login Checker Stage

Have a LaughI have been working on my script which allows people to signup and login to my website, I was wondering if someone could review my login checker page, it works but I can't help but feel it could be optimized, <?php if (isset($_SESSION['access_level']) && $_SESSION['access_level']=="admin") { ...

 
4:05 PM
Monking
 
4:17 PM
Updated comparison of performance can be found here: codereview.stackexchange.com/questions/205694/…. TLDR; they are about the same in performance, but member functions can be slower — James A Mohler 40 secs ago
 
0
Q: Comparing 100,000 strings

James A MohlerI recently compared various comparison operators in ColdFusion 2016 <cfscript> StringPairs = []; i = 0; for(i = 1; i <= 100000; i++) { StringPairs.append([CreateUUID(), CreateUUID()]); } startTimer = GetTickCount(); for (StringPair in StringPairs) {...

 
This would also be good to ask over in the code review side: codereview.stackexchange.comjustDan 26 secs ago
 
4:54 PM
 
0
Q: How to determine if there in the list 2 elements with provided sum?

gstackoverflowOn interview I was asked to write method with following contract: boolean checkList(List<Long> list, long sum){...} for example it has to return true for arguments: ({1,2,3,4,5,6}, 9) because 4+5 = 9 and it have to return false for arguments: ({0,10,30}, 11) because there are no combina...

 
5:28 PM
-1
Q: I have a Python Program which gets Candidate data and tells the user whether or not each person could run for president

John RumrillI have my program task and a picture of the code I’m working on. This is super beginner stuff and I’m kinda having trouble. Please let me know what I should change. Thanks!!.

 
5:59 PM
0
Q: Class simulates a flag register C++

HermanTheGermanHesseIn order to learn C++ I decided to code a Chip8 emulator following a tutorial. When I came across the idea of a flag register and decided it would be fun to implement in order to get familiar with bitwise operations. I'd like this review to center on what can be improved from the point of view of...

 
6:19 PM
Yeah, the code is working. Just not effective. I think it is a Code Review code... — danieltakeshi just now
 
6:31 PM
-1
Q: Failed iOS interview homework assignment

Andrew LeI recently received a homework assignment from a Vietnamese company. A few days after finishing it, they gave me a rejection. Can someone please tell me what I did wrong? Here is the assignment: Develop demo application as below: The app has two screens: Home Screen: Make request api to fe...

 
6:47 PM
0
Q: Continuous Shuffler with "linked loop"

RoadieRichAs an academic exercise, I decided to implement a continuous shuffler, as seen on casino blackjack tables. It operates by storing a "linked loop" (a linked list with the last element linked to the first) and walking a random number of steps around the loop when an item is removed. public abstra...

 
7:19 PM
0
Q: Binary heap implementation in C#

JADThis is my attempt at implementing a Binary heap. I made an abstract base class Heap with an abstract property controlling whether it is a min-heap or a max-heap. One thing I've been struggling with was which collections.generic interfaces to apply to the class. Enumerating the heap only makes ...

 
7:29 PM
This will give you a good starting place, but as it stands, this is much too broad to be considered on topic here. — Comintern 37 secs ago
 
0
Q: Very basic C++ HTTP Parser

shmoo6000I was bored, so I decided to write a very basic HTTP Request/Response parser in C++. Some Notes: This isn't meant to be a complete implementation of the HTTP protocol This isn't meant to be the fastest/smallest/best library out there for this kind of thing. It's a lot of code, I don't expect a...

 
7:56 PM
also, a best suited website for reviews is codereview — Jean-François Fabre 53 secs ago
 
8:06 PM
-1
Q: condition and recursion

g1342783Seen a lot of people doing this if(!equipWeapon(4151){ equipWeapon(4151) } instead of just equipWeapon(4151) and this allows it to run twice, so that in-case something went wrong the first time. However, I still don't get when to use it cause if so, why most people don't? What are the pr...

 
8:40 PM
possible answer invalidation by netcat on question by netcat: codereview.stackexchange.com/posts/204891/revisions
 
8:56 PM
Folks, the close vote queue is at 11 items. Go do some reviews :)
2
 
9:16 PM
Read the books. Then implement something. If you need help getting it working ask here. When it works, ask for advice on codereview.stackexchange.com — Jerry Jeremiah 52 secs ago
 
10:07 PM
I am using the ConcurrentHashMap ;) This came up in a code review. The only change was to switch HashMap -> ConcurrentHashMap. The thought was that change made it thread safe. I am posting this as an educational question to examine the precise low level reason why the code is not thread safe. — bradforj287 26 secs ago
 
10:28 PM
0
Q: Refreshable JSON settings file accessible for HttpClient provided by IHttpClientFactory

PrologI'm trying to achieve the functionality of automatically reloaded JSON settings file and at the same time maintaining all the benefits of using IHttpClientFactory (see ASP.NET Core Docs), which ASP.NET Core 2.1 provides. I will show you whole chain of related code samples, so you could grasp my w...

 
10:41 PM
stack overflow isn't for code reviews or stylistic concerns. Please ask a specific technical question. — xaxxon 47 secs ago
 
11:16 PM
Code review clap clapGrant Garrison 9 secs ago
 

« first day (1991 days earlier)      last day (2020 days later) »