« first day (2453 days earlier)      last day (1547 days later) » 

12:00 AM
RELOAD! There are 6380 unanswered questions (90.0581% answered)
 
12:14 AM
0
Q: Find the missing element in vector

BlascoI'm solving this simple challenge: Given a vector A with N unique elements greater than 0 and lower than N+1, find the missing element. Example: A = [1,3,2,5] -> missing number 4 A = [1,3,5,4] -> missing number 2 I've come to the following solution. I'm interested in thoughts and ideas on how ...

 
 
1 hour later…
1:21 AM
since this code is working and you just really want more speed, maybe you can also post on Code Review. Maybe somebody there can take a crack at improving the speed. — Scott Holtzman 49 secs ago
 
2:16 AM
0
Q: Overlap the intervals using mysql

Kishorekumar Yakkala +------+------------+------------+ | id | start_date | end_date | +------+------------+------------+ | 1 | 2019-01-01 | 2019-01-12 | | 1 | 2019-01-10 | 2019-01-27 | | 1 | 2019-01-13 | 2019-01-15 | | 1 | 2019-01-18 | 2019-01-25 | | 1 | 2019-02-10 ...

 
 
2 hours later…
3:50 AM
possible answer invalidation by Jamal on question by Shinigami: codereview.stackexchange.com/posts/235778/revisions
 
 
1 hour later…
5:04 AM
Monking
 
5:22 AM
As an aside: your code looks more complex than it needs to be, with all these try-catches, and your own wrapper methods and classes around everything. If you ask for help on Code Review Stack Exchance or on the rdf4j-users list we'll be happy to help you get more familiar with the API. — Jeen Broekstra 47 secs ago
 
5:46 AM
Ben Popper on January 21, 2020

This week we chat with our CEO, Prashanth Chandrasekar, about the milestones our community achieved in 2019 and what we have planned for 2020.

Three months ago, we interviewed Prashanth during his first week on the job. Now, with a full quarter of work under his belt, our new CEO reflects on what we accomplished over the last decade and lays out his vision for where Stack Overflow, as a company and community, will be heading over the next year and beyond.

Paul explains why engineers prefer to give blunt feedback, even in a public setting, and why that approach makes sense for someone working on mission critical software systems. …

 
6:29 AM
@pacmaninbw I completely agree he should've, but that makes it a lousy question, not necessarily off-topic.
Monking all
Should we do anything with this answer on meta?
0
A: Code Review is getting boring

Jianmin ChenI understand the argument about codereview questions are boring, poor quality, too forgiving. I asked more than 35 questions from Nov. 2016 to August 2018. Starting from August 2018, I chose to be a writer on Leetcode discuss and shared over 200 algorithms solutions. The writing over there is f...

I think half of it is unrelated noise, but part of it could be considered an answer.
It's definitely not worth any upvotes at the moment, but it might be if the noise is cut. But that would be a bit drastic.
@SimonForsberg Y'all missed how he was looking for a discussion instead of a review, didn't you?
 
0
Q: Finding all alphanumerical words in a text line using std::string

LRDPRDXPreliminaries I am working on a software that controls CAEN digitizer. The current step is to provide an ability to save/load configuration to/from an external source (hereafter - "config file"). I decided config file to be a simple text file and consisting of lines like this one: PARAMETER VAL...

 
7:01 AM
On another note, this just changed to :
6
Q: Chat room "write access" option does not work

ashleedawgIt was nice to discover the option for a room owner to add any user to a room, even if their rep is too low. ...so I notified the user in question, and as instructed on the next screen, I had them got to chat.stackoverflow.com so that I'd be able to add them. ...but when they did their par...

 
This is an interesting problem. If the code is working as expected and all you want to do is improve performance, you might get faster and better responses by posting your issue on SE Code Review. Just a suggestion. As far as I understand the problem, this might be a candidate for parallelization: Have you considered using the multiprocessing package, dividing your list of rows into sublists of rows and threading the work on them? Just another suggestion. — magnus 56 secs ago
 
7:15 AM
possible answer invalidation by greybeard on question by Madhuraank B: codereview.stackexchange.com/posts/235918/revisions
 
@Duga Fine
OHAI @Phrancis
 
7:43 AM
-1
Q: How to count number of characters in word documents

Intelicle LtdWhen i am working on page and want to count the characters in the word file then you can go in review tab by selecting area of counting. for more info about it you can visit us here def word_count(str): counts = dict() words = str.split() for word in words: if word in counts: ...

 
8:03 AM
I'm voting to close this question as off-topic because this question belongs to Code ReviewChris 38 secs ago
 
@CaptainObvious how long does it take for community user to delete?
 
8:24 AM
2
Q: Getting rid of slow for-loops in Python

Pavlos PanteliadisI have made a small python script that will generate some test sets for my project. The script generates 2 datasets with the same dimensions n*m. One contains binary values 0,1 and the other contains floats. # Probabilities must sum to 1 AMOUNT1 = {0.6 : get_10_20, 0.4 : get_20_30} ...

 
8:39 AM
@Mast A discussion about review topics. It's literally "does this violate best practices, such as <pick one OOP, FP, WET, DRY>"
Which is on-topic cause it's asking for a review.
 
0
Q: Extracting Datetime from DB and Optimization of a For loop

CesarI am learning python and looking for ways to make my code look more pythonic. My first issue is the converting a DateTime returned from a database. try: print("Getting most recent record from database") get_max_date=fixfile.conn.execute('SELECT max(date) from sharehistory').fetc...

 
8:57 AM
@Peilonrayz That's one interpretation, we don't know if that's what he means until he asks the question. Basically we can't say if it's on topic with the information provided.
@Heslacher In this case, half an hour.
 
@Mast Fair enough
 
@Peilonrayz I wonder if we should be migrating that question to meta.CR.
Probably not worth it, but still.
Feels a bit odd, closing the question knowing that OP can't ask the question on the relevant meta because of lack of reputation.
 
We can try, but ultimately if I were the OP I'd be like why do I want -8 on Meta, to be migrated and then told "post a question". Not really the best PR.
 
Indeed.
 
One thing I do like about CR is we don't nuke innocents like this. Or at least I've not seen it.
 
9:21 AM
Not to -7 without good reason, no.
And we leave helpful comments.
Usually.
 
 
2 hours later…
11:06 AM
1
Q: File classifier based on extension and date modified

MastNote: this code will be run using portable WinPython (Python 3.7.6.0, package list here) on Win10x64. Installing new packages or upgrading the Python version are not an option for this project. Disclosure: this code is heavily inspired by Janos' excellent answer here. I've written a piece of ...

 
@CaptainObvious I like how that text cuts-out.
 
@CaptainObvious @Mast Python doesn't use 4 dot version specifiers. I assume you mean just 3.7.6 or 3.7.6b1 - if it's a beta. You can check with sys.version or sys.version_info.
 
@Peilonrayz Heh, good catch. That's actually the version of WinPython, not of Python itself.
Drop the 0 and you got the actual Python version, 3.7.6.
 
Sweet, you're using a newer version than myself so I should be able to answer fine, :)
 
Fixed.
@Peilonrayz I'm using a newer version than you? Never thought that would happen.
 
11:16 AM
I have Python 2.7 and 3.3 - 3.7 all installed. So I can test version incompatibilities. And keeping them installed properly - which I some how haven't - never mined up-to-date is a pain in the ass. I hate updates >:(
 
Ain't that the truth.
At home I usually whip-up a VM if I need a specific version without messing-up my 'normal' installation.
 
Unfortunately that doesn't seem like an option with test runners like tox or nox.
 
Post your code at Code Review site : codereview.stackexchange.comMichał Turczyn 48 secs ago
 
@Mast I can't be sure of that until I see the question.
@Mast ... or so we think...
 
@HimBromBeere I would guess the OPs intent is to have a good solution in their environment, which they described in the body and in the tags as ASP.NET Core. And a good solution is not to reinvent the wheel, no matter how great that new wheel may follow certain principles. The best solution is to use the existing wheel that is already following certain patterns. The accepted solution through the lens of ASP.NET Core to me looks like there is something hidden. There must be some reason why the existing system was not used. In a code review I would certainly question that choice. — nvoigt 57 secs ago
codereview.stackexchange.com works for small code changes. I suggest reading Martin Fowler’s refactor and uncle bob’s clean code. Learn SOLID pattern. Then RGB TDD. Then DRY/kiss. The idea is to learn code craftsman skills. Then learn how to get things done. TDD valuable for prototyping and testing. But not day-to-day unless people’s safety or lives may be effected by your code. Book on Domain driven design is the next step. What your program hopes to solve should be a big influence to how you code it. — TamusJRoyce 15 secs ago
 
11:47 AM
0
Q: How could I minimize multiple catch block to include Exception filters - c#

rokie12234Here's my code which uses multiple catch blocks, and I would like to get rid of that because I think it's possible to write it all in one catch block. But I'm not sure how since I'm pretty new in a C#: public async Task<ProductMessage> CreateProduct(PostProductRequest request) { try { ...

 
possible answer invalidation by Pavlos Panteliadis on question by Pavlos Panteliadis: codereview.stackexchange.com/posts/235942/revisions
 
@Duga Odd
@SimonForsberg Yes, hard to say.
@SimonForsberg Always room for improvement.
 
12:07 PM
0
Q: Python database powered by SSTable

nz_21I've written up a key-value store that runs on SSTables in python. import json import tempfile import time import uuid from contextlib import contextmanager import attr from sortedcontainers import SortedDict TOMBSTONE = str(uuid.uuid5(uuid.NAMESPACE_OID, 'TOMBSTONE')).encode('ascii') def m...

 
12:28 PM
0
Q: Tkinter setup wizard-like application with threading

Daniel ZaksevskiThis is a big script with a GUI basically. I have 4 page classes, that are children of the main Wizard class. I do most of the threading in Step3 and the scripts are simple - creating a new user, editing reg files and installing chrome. Everything works perfectly here, until the main window is dr...

 
possible answer invalidation by Joni on question by Joni: codereview.stackexchange.com/posts/235923/revisions
 
12:42 PM
I'm voting to close this question as off-topic because these question should posed on codereview.stackexchange.comAdobels 22 secs ago
 
1:11 PM
@Mast That question confuses me.
@Duga @Mast'd
 
@SimonForsberg Yes.
And the edit, and the remark.
 
@Adobels: As I understand it from the final remarks, the code is not working correctly in all cases. That makes it off-topic on Code Review. — Martin R 53 secs ago
 
1:29 PM
0
Q: Crypto createCipheriv and createDecipheriv for authentication

RTWI'm not an expert in authentication, so i want to make sure i do everything right. I want to use crypto createCipheriv and createDecipheriv for authentication. I will store key in database, iv and encrypted data in cookies. On request i will try to decrypt encrypted data from cookies using iv f...

 
1:39 PM
@Duga I confess I did ask for that info. And then deleted my comment cause it's not really needed.
 
@Peilonrayz Thanks for the answer, it's going to take a bit to take that all in.
 
@Mast No problem ^^
 
1:57 PM
@Peilonrayz The DEFAULT = 0 in the BaseClassifier, this doesn't have to be self.DEFAULT = 0? It's automagically selfed?
 
@Mast welp ... that's some semi-thinly veiled attempt at self promotion there
 
@Mast Oh no, it's a class variable. Which means it's defined on type(self) not self. So yeah it doesn't require self.
 
And does anyone know why rev 4 wasn't caught as invalidation here?
It's autoflagged for re-opening now, with 2 answers already on it. Bit of a mess @Vogel
 
@Mast possibly because the question was closed at the time?
 
@Vogel612 I'm fine with re-opening that question, but that would mean nuking 2 answers that shouldn't be there in the first place.
 
2:05 PM
Interestingly, at least to me, classes are just another scope so you can do things like:
>>> class Foo:
    	def bar(self):
    		pass
    	print('hello', bar)


hello <function Foo.bar at 0x000002226C669158>
 
@Peilonrayz Right, it exists over all instances.
The amount of times I use that is just about never, I think.
@Peilonrayz Interesting.
@Vogel612 Absolutely.
And promoting all the wrong things.
 
@Mast Pretty much yeah.
 
@Mast afaict none of the answers have actually been invalidated by the edit
and if you say it should be reopened after the edit, I'm very much okay with that
I assume you did verify that the code does now pass the test cases on hackerearth?
 
@Vogel612 Perhaps first paragraph by Ray.
 
> for two inputs it shows wrong
I'm not sure it's working
These are different to TLE which they are also getting.
 
2:15 PM
@Vogel612 It works for the example input/output, don't have the means to verify it against other values.
 
yea, I tried to check against the site, but the signup there was being annoying so I didn't
 
Wait, perhaps I can do this...
 
I've confirmed it's still broken, according to the site.
 
Eh, nvm.
If it were up to me, we'd completely outlaw TLE and the likes. But, you know...
I mean, if you can't complete the bloody challenge, what are you doing here?
 
It's not a TLE problem. It's just a flat out wrong answer.
They have 2 wrong answers and 7 TLEs - which probably are wrong too
 
2:18 PM
sigh
Why did we even try to salvage this again?
And how did it get +4/-3?
 
because invalidated answers, I guess
 
@Vogel612 I understand the downvotes, surprised it got 4 upvotes as well.
Perhaps by people who are as bad at reading as I am today.
 
probably HNQ
 
@Mast I'd bet on traffic from HNQ
 
0
Q: What is the fastest way to determine if a table spans two pages?

jclasleyThe initial problem that led me to learn VBA is as follows: You have a table that can be up to 10,000 rows (several hundred pages) long in a Word document. The table has a title in the form of a paragraph above the first row. This title is styled such that it links to a Table of Contents (Style ...

 
2:50 PM
-1
Q: Algorithm Design: Integer to English Words (Python)

iobtlI recently received a question with regards to algorithm design in an interview question. The challenge is as follows: Given a 6 or less digits positive integer (0 - 999999 inclusive), write a function englishify(number: int) that returns the full English equivalent of that number. Here are s...

 
3:02 PM
I had no idea that there is Code Review as well !! — IrateINWIT just now
 
@Mast First year students.
 
@pacmaninbw When I started programming, we didn't have internet. We had a second-hand book.
If there was a bug, you went looking for it. There was no such thing as untested code.
Good thing too, since I didn't have a debugger either.
 
@Mast True dat. I got my BS in computer science in 1985, no internet.
@Mast depending on test coverage there may have been untested code.
 
Every code was used. If it produced the correct result, it was tested, right?
Not necessarily well tested...
 
It was hard to tell if every path through the code was tested.
 
3:13 PM
Hence looking for the bugs.
 
Hence code reviews.
I had a teacher that ran the code and found lots of student bugs, I got an A in his class.
He taught me Unix, Operating systems and C.
My Operating systems code had one of the fewest bug counts.
@Mast You're right, all code presented on CR should be tested before it gets here.
 
@Mast I remember the first time I learnt about so many code review 'comments' first hand. Normally the price for the knowledge was a dead a project. :/
 
@Peilonrayz Heh, I remember setting a self-built motorcontroller on fire due to a minor bug I thought would never happen.
It did happen and the darn thing shorted out.
 
@Mast I have a very nice jacket from a company I worked for from 1984 to 1999. The back has a cartoon of people walking through a swamp with shot guns hunting giant bugs. The caption is the Great Bug Hunt of 99.
@Mast I saw 4 voltage supply boards go up in smoke for 85 to 99. Not my code.
Generally they were development boards under test.
One customer demo.
The customer demo was an error, the experimental boards were not swapped out before the demo.
 
3:29 PM
@Mast Damn. Always the way
 
0
Q: Twitter Character Count in java. How to implement a better code?

jdreamerI submitted the following coding challenge and even if It resolves the requirement, the coding style doesn't look great for a senior role (feedback received without additional explanation). Any additional coding review on this would be appreciated. public class TwitterCharacterCount { public ...

 
3:48 PM
Not sure I understand. When you create a shelfset, you can select which files they contain. Do you mean that you are having to make changes to the same source files for work item A and work item B? If so, you might need to make two branches for each work item, and then merge the changes back into the main branch after the code review is accepted. (And then delete the branch) — Matthew Watson just now
 
0
Q: sort a list with equivalence classes

jj_pI'm trying to optimize the following function f, written in python. It is a function of an integer k. First it calls another function G(k), which gives back a long list of certain objects. We want to manipulate this list as follows: two elements a,b are equivalent iff the function H (which is a g...

 
1
Q: Merging technical sites with Stack Overflow

Resistance Is FutileListening to the recent podcast A chat with our CEO about the future of our company and community it seems that merging other SE technical sites with Stack Overflow is imminent. That was also vaguely hinted in most recent Survey What does “Should we add technical Q&A sites like Server Fault, Sup...

3
 
@Mast I hope they're reading too much into that.
 
4:11 PM
0
Q: Android Studio Autocomplete that creates a new entry if no entry selected

ManuelarteI want to use the android component autocomplete: https://developer.android.com/reference/android/widget/AutoCompleteTextView There are some possible values the user can select, but I also want that, the user starts typing and, if there is no match with any of the "possible" optionsm, then, the...

 
@Mast I hope this doesn't affect CR.
 
Greetings, Programs.
 
4:32 PM
0
Q: Is this a good usage for the builder design pattern

Youssef13I've a C# WinForms application that relies heavily on sending HttpWebRequests. I've build an HttpWebRequestBuilder, and WebRequestBodyBuilder. public class HttpWebRequestBuilder { private HttpWebRequest _httpWebRequest; // The object that will be built. public HttpWebRequestBuilder(strin...

 
4:43 PM
Here is a generic implementation. — jrook 36 secs ago
 
4:57 PM
Prashanth Chandrasekar on January 21, 2020

As we enter a new decade, there are tremendous forces converging—cloud computing, big data, AI, ML, and an increasingly diverse group of young coders from around the world. Every day, millions of developers visit Stack Overflow to find information they need as they push these exciting new technologies forward. There has been a massive shift since my days as a computer engineering graduate. I was fascinated by the power of languages like Perl, but had only my teachers, classmates, and a few small web forums and mailing lists as a community to support my learning. The numbers below really put into perspective the impact that our community generates and the opportunities that lie ahead: …

 
If you're going to call getStructs many times, it makes sense to construct a map of inputs so that you can find things in O(1) rather than O(n). And I'm not sure how you plan to use those other arguments, but you should probably pass references to pointers, rather than references to objects. But this now looks like a question better suited to Code Review. — Beta 42 secs ago
 
Monking
 
@Tom Nowadays, SE is not the same you used to know. — Victor Stafusa 58 mins ago
And it's probably a storm in a glass water (again), but who knows.
 
@Feeds I bet Meta is going to have a field day with that. "defined the important functions that would be best served by more scalable solutions than Meta"
3
 
posted on January 21, 2020 by CommitStrip

 
5:09 PM
@Mast Indeed
 
> The key to Stack Overflow’s future and growth are the millions of developers from around the world who find the site useful, but who haven’t yet been welcomed into the community. We need to expand our reach and engagement to ensure these developers join the conversation and push their own learning to new heights.
sigh
@Peilonrayz You were saying?
10
Q: "Scripting the Future of Stack" blog post discussion on MSO

Juan MOur CEO just posted a blog post to kick off 2020 and reflect on his first 90 days. You can see his blog post here and his MSO post here. Please follow the second link to engage with him and the team about his post. That's where we'll be responding to your questions.

Welcome to Meta, new contributor — rene 28 mins ago
5
To the CEO. Bloody genius.
 
@Mast lol that's jokes
 
well, it was the first question, so the new contributor icon was still there, which makes it even cooler
haaaang on ... of course the post goes to MSO, not to MSE.
~sigh
Quick clarification @Pchandrasekar: I just edited the post most recently. Mad Scientist is the one with the question :) — scohe001 2 mins ago
@Mast apparently it's necessary ...
 
@Vogel612 I think I remember a post somewhere stating he's been active on SO since 2010. Wonder on which account, not this one.
 
@Mast Oh wow he's the CEO for only 90 days?
And the ship is already burning down
 
5:18 PM
and if he was active on SO since 10 years, why doesn't he understand one of the most basic concepts of post authorship?
 
Questions, questions.
Makes one wonder.
@skiwi Quite an accomplishment to keep so many dumpsterfires while sinking.
Along with data points mentioned in today's post, we also keep a close eye on question quality. The blog below was our most recent look at the topic, and we feel good about the direction things are heading. This post also includes a link for a deeper dive into how we define "question quality." stackoverflow.blog/2019/11/12/…Pchandrasekar ♦ 8 mins ago
 
@Mast Isn't fire extinguished when you're sunk?
 
@skiwi Not on this ship. This ship is special.
 
5:36 PM
@skiwi Inner compartments that still have air can still burn.
 
"Merge" was probably a poor word choice there. From my understanding, it's not a dump of all these scopes into Stack Overflow. It was meant to be something like showing other sites related to the topic in the sidebar similar to Teams, still independent with their own scopes, but much easier to navigate between and search content from one place. — animuson ♦ 1 hour ago
 
5:53 PM
0
Q: Spotting prime numbers with use of limited prime numbers

Progrmming is funIm looking for general feedback as how to improve this code. As I wrote the program it started out with no functions making it very difficult to adapt. When i separated the program into functions it became very repetitive. How to tackle this? Whole program, tips? """ A program for comparrison o...

 
6:08 PM
@Vogel612 I'd already responded to animuson. We'll see.
 
6:34 PM
-1
Q: Redirected page still running past redirect

Yaakov AinspanTL;DR Rows were being inserted into a database after the page was already redirected away. I'm making an admin page for a restaurant and I was working on adding options for menu items when I came across this. It isn't an issue anymore because I found the problem, but what happened when I was ha...

 
6:49 PM
I just created a new VM because Netflix refuses to run in Firefox' private mode.
Nail, meet impactdrill.
4
Also, my disk storage is getting low.
What a time to live in.
 
@Mast Wat. I know they hate VPNs but incognito just sounds like they're doing something dodgy with your information.
 
@Peilonrayz Something something HTML5 special delivery thing I don't understand.
But yea, sounds dodgy.
And I containerize everything dodgy nowadays, so, shrug.
 
Also, if your code works but you want help improving it, a better stack site might be Code ReviewG. Anderson 29 secs ago
 
My TV has its own e-mail address just to prevent crap from happening.
3
 
That sounds like some good plans you've got there. I should probably do something similar...
 
6:58 PM
My phone has its own e-mail address too.
Because Android doesn't function well without a Google account and you get one for free with a gmail account. So, 2 birds 1 stone.
 
Thanks. Will look into it. I have three new courses starting next week, so won't have much time to spend on this. But I think I may have a solution which ties in with your initial answer. Is it critical that I close this one or maybe just delete these chats? I would like to post what I have done if it works as I think it will, or create a new thread? Just have a lot on my plate at the moment. Where is Code Review? — Shaun 17 secs ago
 
@Peilonrayz Still ironing out the framerate drop it causes though.
 
7:14 PM
@Mast throwaway browser not good enough?
 
@Vogel612 Been a while since I screwed around with different profiles on the same browser.
But Edge may just be good for something now, yes.
Heb, good idea @Vogel
 
7:37 PM
Monking
Last night I had a dream where I got a revivalist badge and it showed some graphic of a figure reviving something...
 
I'm voting to close this question as off-topic because it belongs on codereview.stackexchange.com — Green Cloak Guy 41 secs ago
 
@SᴀᴍOnᴇᴌᴀ And when you woke up, did you have a lot of new badges?
 
@Mast not a lot of new badge, but one revivalist badge (Without the fancy graphic from the dream)
 
@SᴀᴍOnᴇᴌᴀ Nothing a little JS can't fix.
 
This sounds like a better fit for codereview.stackexchange.comDavid 9 secs ago
Make sure you read through Code Review's rules and expectations before posting. You may have to re-arrange/rewrite part of the question. — user4581301 49 secs ago
 
8:16 PM
0
Q: is this the correct and most intuitive approach for connecting and getting mysql connection object?

Ciasto piekarzI have written this code that connects to mysql databases, I have created a function that I expect to be able to use with context manager. It is working but I am not sure if this is the most correct and intuitive of of doing it ! conect.py import os import mysql.connector from mysql.connector i...

 
8:36 PM
0
Q: xamarin SegmentedControl

JeffersonI wanted to know is this the best way to handle a SegmentedControl using the e.NewValue? Base on the selected segment I hide and select different data? XAML <telerikInput:RadSegmentedControl.ItemsSource> <x:Array Type="{x:Type x:String}"> ...

 
8:56 PM
0
Q: Java basic Adjacency List

JamesI made a very basic social network Java program. I was wondering if my design could be improved. I have 2 classes (+ 1 driver) : Person and Graph. I would like now to add a new method hasAccount(Person person) in the Graph class to check if a Person is on the graph. However, so far I don't have a...

 
If you have working code and you want advice on how to improve it, Code Review is the place to post it. You'll need to post your full code, not just a description. — Barmar 25 secs ago
If you have working code and you're looking for improvements, a better place to ask might be codereview.stackexchange.comMike Scotty 44 secs ago
 
9:17 PM
0
Q: Terminal interface audio player based on VLC

Reticulated SplineI'm working on an audio player with a terminal interface. I'm designing it for eventual use on a Raspberry Pi with a 480x320px display. I've broken the code into three main files with the intention of keeping the business logic (player.py) and graphics (view.py) separated and connected only thr...

 
9:58 PM
0
Q: Creating a simple event system

ThatGuyAgainI am trying to make a very simple event system for learning purposes, after seeing some much more complicated code on the internet I was wondering if what I am doing is fine of if it has major issues. The code works but I am not sure if it is fast and safe. The part that worries me is that in m...

 
So it does not work? If it does, it would better fit on Code Reviewusr2564301 27 secs ago
 
10:18 PM
0
Q: I wrote a script that compresses large jpegs in a library, but the process takes a while. I'm looking to recode more efficiently to save time

cburchieI'm working with thousands of large image files in a regularly updated library. The following script does the job (on average reduces my file size ~95%) but costs me around 25 seconds to compress one image. Obviously, I can just let the script run overnight, but it would be cool if I can shave so...

0
Q: Base 10 to Base 2-36 converter

K00lmanAfter a conversation with my math teacher about a base algebra (base 43 using all the algebra symbols) and finding it more than the 30 min of work I was looking for, I decided to make this instead. import math letters = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O"...

0
Q: Performance of mask (1,2,4,8,16) convertor in python

user217016My mask translator is performing poorly in scenario where I have 30 masks and 10,000 ownerships. I though about creating a list with all combinations of masked values and names (1 - alex, 2 - ben, 3 - alex/ben, 4 - clark, 5,... sum from 1 to 30 = 465) and then doing a simple lookup rather than e...

 
 
1 hour later…
11:19 PM
0
Q: I wrote a Black Jack game in Python and would love some feedback -

PumpkinBreaththis is my first code review post :) So I wrote this Black Jack game as part of an online Python course and would love some feedback about my coding style and whether or not I have correctly used a 'Pythonic' style in terms of the OOP. Any general comments are also extremely welcome because I a...

0
Q: Reduce time complexity of nested loops

Smokey DawsonBasically I am trying to bring down the time complexity of a function that I have I have an array of objects that holds another array of objects and each object holds an array of tags like so const users = [ { id: 1, qualities: [ { id: 2 tags: [ 'smart'...

 
11:39 PM
0
Q: Need help getting the output of a for loop into Excel/CSV using OS.WALK

HK DKHow can I print the results list into a CSV/Excel file? import pandas as pd import os for root, dirs, files in os.walk("C:/"): for file in files: if file.endswith(".xlsx"): print(os.path.join(root, file)) #Need to print the results of this search into an excel/csv Fi...

 

« first day (2453 days earlier)      last day (1547 days later) »