« first day (2187 days earlier)      last day (1823 days later) » 

12:00 AM
RELOAD! There are 6007 unanswered questions (89.8659% answered)
 
12:56 AM
0
Q: Python password manager

David CulbrethI am writing a python password manager, and I know there's a lot of scrutiny that goes into storing passwords (don't worry, mine aren't plaintext). I was hoping that this community could help me improve style, use of libraries, or anything else. Any and all pointers are gladly accepted. There we...

 
1:07 AM
Are there any existing libraries that can calculate percentile as shown above (or similar)? this is off-topic. Try Software Recommendations. If not how can I make the above code faster? try Code Reviewphuclv 27 secs ago
 
1:55 AM
@KenWhite: technically that was an obscenity, not a profanity. (This is the kind of obsessive mentality that code review always seems to get me into.) — Beta 54 secs ago
 
2:33 AM
0
Q: Having trouble placing object files in a new directory

bitmeddlerI am very new at make. Thus far I've managed to create the following using some of GNU manual and tutorials found online. I'd like for make to place all of the created object files into the directory 'obj.' I've been able to successfully create this directory, but I cannot figure out how to place...

 
3:11 AM
Maybe asking this question on another stackexchange site will be helpful — vasily.sib 50 secs ago
 
3:27 AM
You should probably post this on codereview.stackexchange.com - it's not exactly a question you have here. On a quick glance your spider looks fine though your rule should have follow=True as you want to follow and parse every page. And you might want to use Counter() object instead of defaultdict as it's more pythonic but not much different. — Granitosaurus 23 secs ago
 
-1
Q: Update Simple MVC framework DB from JSON

MauI am new to MVC and I inherited a framework from a previous developer, I would like to know how to update the DB using an external JSON. Here's the composer info for the framework: { "name": "simple-mvc-framework/framework", "type": "project", "description": "Framework for PHP 5.5+",...

 
4:10 AM
@CaptainObvious The poster is not the author of the code.
 
 
1 hour later…
5:13 AM
Monking
@pacmaninbw That's not necessarily a requirement.
If they're tasked with maintaining it, it's now theirs.
The real problem is it's a feature request, or at least reads like one.
 
possible answer invalidation by Kiran Desai on question by styx: codereview.stackexchange.com/posts/216838/revisions
Maybe this is better placed here : codereview.stackexchange.comPaxz 29 secs ago
 
5:31 AM
0
Q: Infragistics UltraChart Y-Axis formatting "days : hours : minutes : seconds"

Kiran DesaiI'm using Infragistic UltraChart control for showing graphs in C# windows application. The line chart is as below picture. Here Y-axis is noting but milliseconds(turn around time), I want to display it like "days:hh:mm:ss" format. Is it possible to display Y- axis lables in this format? The d...

 
@Duga Fine.
 
6:24 AM
@DaveCross Of course, but this is not Code Review. ;-) — ceving 5 secs ago
 
7:08 AM
0
Q: Code for checking several conditions for the below json transformation

AnilmA json i have provided which is actually i am getting by hitting a Rest Service. To keep it simple I have provided that directly inside the method. A modal with textarea and accepr/Reject button has been given. Input Json:{ "Reference No":"101", "Date Of Reporting":"2019/04/29", "Status":"...

-1
Q: giving unexpected result in mysql query

Divyang patelmy query is:- SELECT * FROM (SELECT 'attendence' AS 'type',userAS 'username', STR_TO_DATE(in_time, '%d-%m-%Y %H:%i:%s') AS 'time_in', 'in_address' AS 'address_in', STR_TO_DATE(out_time, '%d-%m-%Y %H:%i:%s') AS 'time_out', 'out_address' AS 'address_out' FROM attendence UNION ALL SELECT 'visit', u...

 
7:27 AM
0
Q: Setting alternative records true if its even count else leave last record

Avinash ReddyI have an attendance list like this. problem: I need to set In and Out alternatively. but if I have only 3 records then I need to set 0 record In true. 1 record out is true. and 3 record has is both In Out is false. I tried like this its working fine. but I was checking is there any better way ...

 
Maybe this question would be a better fit over at code-reviewLino 31 secs ago
 
7:42 AM
For code review, have a look here. — JvdV 27 secs ago
I think your question is better suited for Code Review. — Jerry 38 secs ago
 
8:18 AM
I don't understand all the downvotes. This is a clear question. Yes, there are lots of problems with the code itself, but that's not a reason to downvote it. Perhap this question is better suited for Code Review, but please first follow the advice of Qirel. — KIKO Software 43 secs ago
@KIKOSoftware I'd say it's off-topic (hence my downvote). I feel like this question would be indeed better for code review. — treyBake 35 secs ago
 
8:45 AM
0
Q: Leeetcode - Best time to buy and sell stock to get maximum profit

Mosbius8Question Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (i.e., buy one and sell one share of the stock), design an algorithm to find the maximum profit. Note that you cannot...

0
Q: Group list into elements with same value

dafieThis is my Result class: public class Result { public DateTime Checked { get; set; } public bool IsWorking { get; set; } } Let's say I have theese results in list: Date: ..., IsWorking = true; Date: ..., IsWorking = true; Date: ..., IsWorking = false; Date: ..., IsWorking = false; Dat...

 
You might also want to try posting in code-review to get feedback on optimization — cripcate 1 min ago
 
9:04 AM
Your Question is more suitable for Code Review Stack ExchangeAkshayNevrekar 18 secs ago
 
9:36 AM
the for loop should only contain the xfconf-query -c -p -s and sleep. Make an array of your images and iterate over it with a modulo. BTW the question might be better received on the CodeReview SEAaron 56 secs ago
 
10:02 AM
0
Q: Read and output a json object with the least server processing expenditure possible

Emanuel GrafOn my server I have a large json that is accessed by several applications. One application only needs a certain part of the json, so presenting the whole json to the application is an unnecessary increase of bandwith. (Original JSON: about 40 KB, Optimized JSON: about 500 b) What I came up with ...

0
Q: Convert nested array of values to a JSON object

SarcomaI have a nested array that represents a parent child relationship, that I need to convert to a JSON object. Example nested array list = [ ['lvl-1 item-1', 'lvl-2 item-1'], ['lvl-1 item-1', 'lvl-2 item-1', 'lvl-3 item-1'], ['lvl-1 item-1', 'lvl-2 item-1', 'lvl-3 item-2']...

 
Most likely I cannot seriously help with those layers. I have not actually programmed with podofo, the answer above merely was based on source code review. For helping with those layers, though, some hands-on work most likely is necessary. — mkl 49 secs ago
 
10:41 AM
-2
Q: What's the best way to index a list of items?

DauntlessRobObviously, lists automatically create their own index. So basically I wouldn't need this function at all. But I figured it was safer in case my list index ever changed (e.g. adding a new item at the beginning of the list, would shift the index numbers for all the other list items). public Em...

 
@Mast Monking. It's academic now because it's RBA, but I thought the real problem was that they were asking us to explain the code to them.
 
11:01 AM
Hello, any apache gurus?
 
11:21 AM
@OHGODSPIDERS - unfortunately the question as it is would be off-topic for Code Review too. — BackSlash 59 secs ago
 
12:18 PM
0
Q: Should my Json storage handle exceptions?

GlitchI made a class to conviniently serialize/deserialize data. Now I'm stuck with the following question. Should I handle exceptions (use try-catch) inside JsonStorage or inside ConfigManager and other classes that might use JsonStorage in the future? public class JsonStorage : IDataStorage { pr...

 
12:38 PM
0
Q: Pygame : processing speed independant image loop displayer

EildosaI made this in order to teach myself pygame. This displays an images loop at the same speed on any computer (It will lag on a slow computer). Is my time management good or do my datetime call could be optimized to loose less time while doing computation? Any other remarks are welcolmed. #!/usr...

0
Q: Parsing comma-separated flags in Java

SamI'm working on parsing a particular flag into my CLI in Java. The flag is a "stream" flag, and is denoted by --stN=, where N represents a number, from 1 to 10000. The arguments after the = are comma-separated, and denote different things - usually a command on how to run a certain operation wit...

-1
Q: Python: How can the following codes be converted into a more generalized form?

JunkratI have a df as follows: ContextID EscAct_Curr_A StepID 7289973 0.122100122 1 7289973 0 2 7289973 0 2 7289973 0.122100122 2 7289973 0.122100122 2 7289973 0.122100122 2 7289973 0.122100122 2 7289999 0.244...

 
 
1:36 PM
-2
Q: Witch of these two query are correct?

IngusI just moved to MySQLi Prepared Statements and could not fount how is correct? Maybe both are correct? I could not find such an example.. This: $stmt = $conn->prepare("INSERT INTO table (a, b, c, d, e, f) VALUES (?, ?, ?, ?, 'x', 'y')"); $stmt->bind_param("sssi", $a, $b, $c, $d); $...

 
1:55 PM
-1
Q: big-o performance for these two methods

SteveI am almost completing my BlackJack in Javascript. But, I realize that there must be better way to improve the performance for these two methods. Any pointers? const hasAceInHand = (cardsOnHand) => { for (let key in cardsOnHand) { let arr = cardsOnHand[key]; for (let i = 0; i <...

 
2:05 PM
Chance Heath on April 30, 2019

Single Sign On (SSO)

Invoice or Credit Card

Analytics dashboard

Priority Customer Support

Stayed tuned! We’re working on lots more features geared to Business users

 
0
Q: timetable generator

user199767i am working on a timetable generating system using c# and now i want to check if there is a clash or not private void btnAdd_Click(object sender, EventArgs e) { bool isClashing = CheckClash(); if (isClashing == false) { saveTimetable(); } ...

 
2:50 PM
@cripcate, have you actually looked at numpy questions on code review? Questions like this are routine on SO. — hpaulj 23 secs ago
 
0
Q: Idiom: replacing a slice with a suffix of that slice (write_all loop)

zwolAs you probably already know, the Unix I/O primitive write is not guaranteed to write out all of the data in the buffer you give it; you may be obliged to loop calling it on successive suffixes of the buffer until it's all gone. I'm trying to work out the cleanest way to write that loop in Rust....

 
3:13 PM
0
Q: CS50 - Bleep suggestions

Snoop2001I finished CS50's Bleep.py from pset6. I was hoping to get some feedback on my code (e.g., redundant code, bad practice, etc...). Program function load in a dictionary of banned words accept a message from the user if words in the message appear in the banned list, censor the word with * fro...

 
3:25 PM
Are you saying that the code presented works as desired, but you are looking for suggestions for improvement? Such requests belong on Code Review. — John Bollinger 36 secs ago
 
Nibjbg
wow I got that without even trying! That is a first :)
 
Should be migrated to CodeReview. — user1803551 31 secs ago
 
3:52 PM
-1
Q: Simple java gameloop

marciopolI've recently had to make a simple 'game' for my assignment, where there would be baloons constantly spawning at the bottom of the screen and then floating up. I have received quite a low mark for it and couldn't get a specific feedback on what's wrong due to lack of time, so I am asking here - i...

 
This is more a case for codereview IMHO — Cubic 16 secs ago
 
4:21 PM
@pacmaninbw Oh, it definitely wasn't a good question. But that specific close reason didn't apply IMO.
 
-1
Q: RDS(Random Drug Screen) Random Name Picker (C++)

Patrick Michael DavisSo I was asked at work if I could come up with a way to pick a random name from a list for Random Screening at where I work. The guidelines are like this. The names are in a text file, so Names.txt, I figured this can be a console application with the txt file beside it in a folder. I figured I...

0
Q: Re-designing PHP functions to optimize page load speed

StenbergI've creating a working subscription workflow for my webpage, which heavily utilizes a set of functions I've created for this purpose. However, after doing some testing(functionality works fine), I've discovered the way I've designed my system is taking a heavy toll on the web-page load speed. M...

0
Q: ReactiveUI share view model with ApiController

hofmeisterI'm working on a desktop application which uses ReactiveUI. This application should provide REST services to 3rd party developers with API tokens. Some of those services should be able to access ReactiveUI view models to change properties, such as a search term. So far, I use MessageBus.Current....

 
4:50 PM
1
Q: RC4 in Sinclair BASIC; Working around one-indexed arrays

speccyloverThis is a program written in Sinclair BASIC (48 BASIC) for the Sinclair ZX Spectrum. It uses a hardcoded key (null right now) as seen in the bottom and outputs a stream of integers generated with RC4. Is there any way I can improve this particularly to get around 48 BASIC using one-indexed arrays...

2
Q: Converting an object to querystring

FelipeI have a custom object that is built based on the following models: public class Filter<T> where T : new() { public T Object { get; set; } public int Page { get; set; } public int ItemsPerPage { get; set; } } public class TransactionFilter<T> : Filter<T> where T : new() { public...

0
Q: Combinable filters for Python Pandas dataframe structure

KubiK888This is an extension of my other question here. I have applied suggestions from 200_success in real-life problem at hand that deals with modelling extensible and combinable filter on Python Pandas dataframe structure. Is this a reasonable and robust approach using functional programming (which I ...

 
5:17 PM
Monking
 
5:29 PM
0
Q: Map of Map iteration in java 8

user10186524I want to iterate a map of map in a java 8 way and get the entry which contains 40 in the value in the inner map. I have tried the following code in order to do that. But I still don't understand whether there is a better way to do this. import java.util.Collections; import java.util.HashMap; i...

 
6:09 PM
-1
Q: Python code for Magic 8-ball

bounty_diver123Below is my code for simulating the Magic 8 Ball in Python 3: # Import the modules import sys import random ans = True while ans: question = input("Ask the magic 8 ball a question: (press enter to quit) ") answers = random.randint(1, 8) if question == "": sys.exit() ...

 
7:07 PM
0
Q: Is there a more efficient way to initialize the various commands for the SqlDataAdapter object?

Asel SThis is my code for my SqlDataAdapter which is similar to the code example given in the docs: public static int CommitBirdData(DataSet pDataSet) { int rowsAffected = 0; using (SqlConnection conn = new SqlConnection(connString)) using (SqlDataAdapter birdDataAdapter =...

0
Q: How can I streamline this code?

CorbinI was wondering how I could streamline the following code. This was the project assigned to us: The Canadian Forest Service wants to do a simple simulation of the growth and pruning of forests. Each forest has a name and exactly 10 trees. The trees are planted when they are 1' to 5' tall, and e...

-1
Q: Python general unit converter

bounty_diver123I would like to create a command line general unit converter. The converter will accept a sentence from the user and output the result. For example: >> 2 celsius to kelvin 275.15 My implementation is not yet complete, as I need to fill in more units. Below is my implementation: sentence_to_c...

 
possible answer invalidation by David Culbreth on question by David Culbreth: codereview.stackexchange.com/posts/219400/revisions
 
@Duga rolled back
 
7:28 PM
Maybe this question would be more fit for Code Review ? — ielyamani 9 secs ago
 
7:46 PM
0
Q: Python snippet for finding word in string

AbraI want to write simple function that finds a word in a string, without using the re module. My function looks like this: def find_in_string(string, word): Indices = () wordlength = len(word) for i in range(0, len(string)): if string[i:i + wordlength] == word: Ind...

 
8:25 PM
-1
Q: Aurora Sensor Project

TopcodersuxWe are working on a project in which we implement a sensor library of aurora events. Here is a part of our code written in Python 3. We would like to get a review of the two classes below. class AuroraSensor(BinarySensorDevice): #Implementation of an aurora sensor. def __init__(self, D...

 
8:46 PM
@mazen Yes, because each time you delete an item, all the other items have to be shifted. The complexity of your algorithm is then O(n!). Creating the contents array is also expensive. As I've said before If you migrate your question to Code Review, you may get more insights into what's not working and possibly get alternative implementations. — ielyamani 37 secs ago
 
8:57 PM
@ielyamani i honestly didn't think about removeFirst too much , i was thinking that all the time just for the looping in array ,Thank you so much , And i will ask this question in Code Reviewmazen 29 secs ago
 
9:43 PM
0
Q: Arguments to class to simulate internal classes

PhinetI'm writing a class in javascript that takes a function as an argument to use internally. The class maintains its own state and occasionally call this function argument to manipulate data. I would like to specify some useful default configurations that are initialized similarly to initializing a ...

 
10:10 PM
Why is someone trying to close a question that was asked 3 years ago? codereview.stackexchange.com/review/close/115792
 
10:22 PM
0
Q: Simplify Overload Methods

stack247I have a class with 2 overload methods. But I feel like they are redundant because the method is performing the same thing on different type. Any way to simplify this? public class User { public User FromOtherUser(User user, Dictionary<string, int> attributes) { return user ...

 
11:01 PM
0
Q: Splitting a String into words and add to an array, Only using StringBuffer and String Array

Zap-BranniganApologies if this is is the wrong place. I've been doing a Java for beginners course for a few weeks(2 hours a week), we had an exam question. Take a sentence as an input from a user for twitter. Using only String Arrays and String Buffers (do not use split() or any other methods not covered in ...

 

« first day (2187 days earlier)      last day (1823 days later) »