« first day (2896 days earlier)      last day (1123 days later) » 

12:01 AM
RELOAD! There are 7479 unanswered questions (89.5005% answered)
 
0
Q: DataGridView Undo/Redo Manager in C#

JimmyHuWhile answering this code review question, I proposed a solution with List<DataTable>. I am trying to encapsulate this data structure into a "DataGridView Undo/Redo Manager" class DataGridViewManager and there are several build-in methods including IsUndoable, IsRedoable, Push, Redo, Undo, etc. T...

 
 
2 hours later…
2:04 AM
0
Q: Instagram Basic Display API Full Example PHP

tonyHere's a example script I wrote for Instagram (Facebook)'s Basic Display API. I did this for myself because I haven't used Instagram's API since their Legacy API was disabled, and I needed to familiarize myself for upcoming projects. It's super easy to understand and is meant for learning purpose...

 
2:20 AM
 
 
1 hour later…
3:43 AM
Monking
 
4:23 AM
This site is for fixing broken code, but there is a sister site for improving working code that may be more excited about this question. — Daniel Wagner 21 secs ago
 
5:17 AM
0
Q: This is a Seat Reservation System. How can this program be able to print tickets of more than 1 customer and the ticket should be "Name, Seat No."?

Agustin Familyavailable_seats = ['1A', '1B', '2A', '2B', '3A', '3B', '4A', '4B', '5A', '5B', '6A', '6B', '7A', '7B', '8A', '8B', '9A', '9B', '10A', '10B' ] user_tickets = {} def print_tickets(): """Print the tickets of the user.""" for user_name, seats in user_tickets.items(): print(f"\nCustomer, {user_name.ti...

 
5:53 AM
@RMunroe @Donald.McLean maybe you already saw that but in case not... well, its kinda your domain...
 
6:19 AM
Monking
 
0
Q: Unique elements, long runtime Haskell

Yuki1112I have two function, both have to have unique elements, one with Integers and the other a String who return a list of Char. My runtime is currently quite high and I'm not allowed to use imports, but I was wondering how to improve them: uniqueInt:: [Int] -> [Int] uniqueInt[] = [] uniqueInt xs = [x...

 
6:49 AM
@CaptainObvious ಠ_ಠ should the tag be applied? And is there enough context for review there?
 
7:03 AM
TLE has a very specific usage. More UWYA I think.
 
s/context/details
I guess I should make an appointment with my pillow
TTGTB
 
7:23 AM
Might be fixable with better phrasing.
 
I should have mentioned that "How can I optimise my code?" isn't an acceptable question for Stack Overflow (you should probably take the tour and read How to Ask). You might find more luck at Code ReviewDavid Buck 51 secs ago
 
I'm 12 reviews short of a Steward badge in the Suggested edits queue. 12. Would be my 5th Steward badge.
 
7:40 AM
There does not seem to be a practical programming problem to solve here. The question is primarily opinion based. This seems more appropriate for either codereview.stackexchange.com (if you can provide a complete, self-contained example as required for that site) or softwareengineering.stackexchange.com (where broader, open-ended software engineering topics are tolerated better). — Peter Duniho 22 secs ago
 
8:03 AM
@PeterDuniho Code Review won't take this. If the question is "wondering whether this algorithm is corectly converted", the first reply you get is "If you don't know, how should we?". Code on Code Review should work and be correct. — Mast 51 secs ago
@Mast: ah, good point. The fact does remain, Stack Overflow has the opposite approach, i.e. we help fix code that's broken or otherwise solve problems. If there's no known problem, there's nothing to answer. This site isn't for having other people try to figure out whether code is correct or not either, any more than Code Review is. — Peter Duniho 36 secs ago
 
9:05 AM
I will also advice for a bit a complexity on your repro structure and preparation from your side. I will always migrate few submission to the public branch. As I believe that you learn to write from reading. Reading good and bad codes will help improve. And bim you also introduce code review. — Drag and Drop 50 secs ago
 
9:18 AM
0
Q: A simple function that returns an array that returns current year quarters as strings

Andrea CiufoI build this simple function, trying to use PEP 8 Style, something that I discovered recently thanks to this previous question. The function works, but I was wondering if: There is a better way to do it Description and other stuff are correct import datetime def quarter_values_builder(): """...

 
9:41 AM
"every level has many items" - that's what you could use a loop for. Please share what you've tried so far. Also, if the existing attempt is working and not throwing any error, you might better post this on codereview.stackexchange.com — Nico Haase 21 secs ago
@NicoHaase my solution is just three loops, codereview.stackexchange.com -thx, didn't know about it — V-K 54 secs ago
 
> The function works
No, it doesn't.
Borked by invoking wrong variable.
 
 
1 hour later…
11:01 AM
@CaptainObvious Fixed now. Answered even.
 
possible answer invalidation by Mast on question by Andrea Ciufo: codereview.stackexchange.com/posts/259231/revisions
 
O RLY?
 
possible answer invalidation by Mast on question by Andrea Ciufo: codereview.stackexchange.com/posts/259231/revisions
 
11:29 AM
codereview.stackexchange.com would be more appropriate for question of this nature. — CBroe 34 secs ago
 
Hey everyone, @Mast finally answered a question!
 
Working solutions that need refactoring would be a better fit for Code review. — El_Vanja 1 min ago
 
@Duga Mast wrote the answer, I doubt he invalidated it.
 
0
Q: Security of the login code on the website

testI wrote the code to log in php to the admin panel. Everything works as it should. But I am not sure if it is well written code and if it is safe. I care about security. I have read a lot about it but I am still not sure. Please, help me. <form method="post"> <input type="email" name="email" pl...

 
11:44 AM
@pacmaninbw Still in need of a better title. If you happen to have a good idea, feel free to edit it in.
 
11:57 AM
 
12:28 PM
I dont get it. If I post question without code, everyone complains: "Show us some code, what have your already tried?" But when I post question with code example I get another reaction: "It is not code review platform!". — vytaute 11 secs ago
 
0
Q: List when sent as a pamaeter to an object is getting replaced by the latest one in loop

user62720Problem statement: To make a student and a register class to take and print the data... the code followed by inputs and outputs: class Student: def __init__(self,i,n,s,su,m): self.id=i self.name=n self.standard=s self.subjects=su ...

 
12:56 PM
0
Q: Combining arrays based on the intersection for subarrays. Optimization

nilecrocodileI have an array of such entries: [ 'id_list' => [ 1, 2, 3 ], 'groups' => [ [1, 2], [3], ], ], for ex.: [ [ 'id_list' => [ 1, 2, 3 ], 'groups' => [ [1, 2], [3], ], ], [ 'id_list' => [ 4 ], 'groups' => [ [5, 8, 1], ...

 
1:08 PM
You're negating the benefits of pdo because you can't (I believe) bind a table name so you have run the risk of injection. 'what do you think...' questions would be better on a code review forum rather than here. For what it's worth I once went down this path and gave it up as its complicated and full of edge cases - you're better using a specific orm or builder that already exists - or building daos which can manage table names internally - but you risk ending up with lots of duplication or very similar dao methods — imposterSyndrome 46 secs ago
 
1:20 PM
0
Q: Changing an element in a list when a predicate holds

The Coding WombatMy current project is a Settlers of Catan server in Haskell. I often manage to achieve my goals within Haskell, but the code is getting messier as the project grows. My question is about the placeBuilding :: Board -> Building -> VertexCoordinate -> Board function that places a building on the boa...

0
Q: Verify application configuration from JSON file with matching type using TypeScript in an Angular project

lampshadeTo bootstrap our application we have a configuration stored in a JSON file. This config holds different settings, like definition of endpoints (e. g. an API or SMS gateway etc.) or some default values for login. endpoint.ts export const isEndpoint = (candidate: any): candidate is Endpoint => { ...

 
1:32 PM
0
Q: Should we have a "clone" or "deep copy" tag?

konijnI was going to tag this question with either "clone" or "deep copy" or "deep clone" but it appears we have no such tag. If as a community we feel this tag is worth creating, then I would go ahead with that.

 
1:45 PM
0
Q: Expose progress/lifecycle hooks of async function idiomatically

Dimitry KI love using async-promise-returning functions like this: // async style await copyDirectory(`~/myfiles`,`~/copy-of-myfiles`) // or even old-skool copyDirectory(`~/myfiles`,`~/copy-of-my-files`) .then(console.log) .catch(console.error); However sometimes when performing async operations I want ...

 
2:09 PM
0
Q: Index Value Converter Optimisation

J.DhaikI've created an IValue Converter in order to Bind to the index value of a Collection. However it seems to be rather slow/infefficient and I wonder if there is a better/different way to do this. public class IndexValueConverter : IValueConverter { public object Convert(object v...

 
2:26 PM
Questions seeking to optimize working code might be a better fit for Code Review. Remember to check their on-topic first though! — Pranav Hosangadi 24 secs ago
@ClMend There is no issue with his code nor is it a general question so it is not considered a good question according to SO (as far as I know) it more fits Code Review — Matiiss 41 secs ago
 
3:19 PM
With all that refactoring, this could have been a candidate for codereview.SX :D — ojdo 22 secs ago
 
0
Q: Python text based game room to room movement

newcoderI'm new to coding and working on a text based game moving from room to room. The code works in pycharm but according to an instant feedback program I entered it into, it gave some tips on it and I am not exactly sure how how to improve upon it. Here is what it gave me: The Great Hall string is a...

0
Q: Create a dictionary from a list of key and multi list of values in Python

ScorpiscesI have a list of key: list_date = ["MON", "TUE", "WED", "THU","FRI"] I have many lists of values that created by codes below: list_value = list() for i in list(range(5, 70, 14)): list_value.append(list(range(i, i+10, 3))) Rules created that: first number is 5, a list contains 4 items has v...

0
Q: How can I refactor for handling multiple proto generated service clients?

Fred HorsI'm building for the first time a new app in Typescript designing it with Proto files. I'm having doubts about which is the best strategy to manage the many service clients in this web app. "Best" in terms of a good compromise between user's device RAM and Javascript execution speed (main thread ...

 
@Donald.McLean Interesting read.
 
3:35 PM
@Donald.McLean Space pirates huh? That would be a great answer to the need for space shanties.
Perhaps it will be guarded by space marines.
Although I don't know if there's a black market specialising in telescopes that size, I imagine the materials in it alone would be worth a bit, not to mention the possibilities for ransom.
 
@Mast Gold plated mirrors.
 
Yea, apparently it has 18 gold-plated mirrors.
 
4:04 PM
Zonking
 
the plating is probably not that much value
the cost is probably in the tolerances involved
 
0
Q: Improving constexpr invoke function C++17, alternative to std::invoke

Steve ZhangI've learned that in C++17, std::invoke isn't constexpr. To make a constexpr version, I could copy the implementation provided here: https://en.cppreference.com/w/cpp/utility/functional/invoke , OR I can complicate things by making my own version that relies on SFINAE, which may potentially be sl...

 
4:53 PM
@Vogel612 Hence the idea of ransoming the telescope.
Manufacturing something so smooth, tight and complex takes a lot of hours.
 
and a lot of failed attempts, if only in institutionalized knowledge
 
A lot of cost in the learning curve.
 
5:48 PM
This is more of a code review question. — M-Chen-3 17 secs ago
 
6:11 PM
0
Q: Frame Pacing and Animation in Python/tkinter

codingCatThe goal of each frame of the animation to be the same length as the one before it, regardless of the amount of processing that takes place as the frame is being built. This is a little animation demo that I wrote to show off the basics of a game loop in Python. With a newbies eyes in mind I have...

0
Q: text-messaging app using twilio

Pierre-AlexandreI build a small web-app using flask for my parents to text their customers about promotions. I am using Twilio API. I just finished the myapp.com/new-campaign page and I would like to have some suggestions as it's my first full stack applicaton as I just added a new feature: estimated cost of the...

 
6:30 PM
Although a few people have responded, this post might be a better fit for codereview.stackexchange.com, whereas Stack Overflow is better suited for questions that have right/wrong answers — sfuqua just now
possible answer invalidation by DBJDBJ on question by DBJDBJ: codereview.stackexchange.com/posts/258964/revisions
 
@Duga @pacmaninbw Can I have your opinion on this mess?
 
6:46 PM
possible answer invalidation by DBJDBJ on question by DBJDBJ: codereview.stackexchange.com/posts/258964/revisions
This question is better suited for the code review stackoverflow. — Richard Barker 11 secs ago
possible answer invalidation by DBJDBJ on question by DBJDBJ: codereview.stackexchange.com/posts/258964/revisions
 
7:10 PM
@Mast I've added a comment that they should not change the question after someone answers. We may need to have a moderator lock it for as long as they can. They are definitely invalidating the answer.
 
@pacmaninbw I've rolled back to rev 12.
If they don't accept the rollback, a moderator will have to get involved.
 
Good.
@Mast They are going to accept the roll back and write their own answer.
 
That's probably the best approach.
If they write the answer better than the updates.
But we can always polish it up a bit.
 
LOL Or the original question.
 
7:41 PM
Hello
 
0
Q: Multiple functions connected to SQL

ProtractorNewbieI have created a thread before Previous code review and I have leanred quite alot and got back to situation where I feel like there should be a possiblity to eventually refactor the code even more. However I have followed the thread answer and improved my code. I hope there could be a way to even...

 
Just use one of the definitions in the Code Review question. — Barmar 54 secs ago
Your code is the second answer at the linked CodeReview question. — Barmar 22 secs ago
 
7:56 PM
are answers such as this one still encouraged I posted almost 2 years ago still encouraged? codereview.stackexchange.com/questions/219137/…
What I meant to say is
Are answers such as this one I posted almost 2 years ago still encouraged? codereview.stackexchange.com/questions/219137/…
 
I guess great minds think alike, @Barmar. I wrote this answer without reference to the CodeReview Q&A, but it does seem like the obvious way to do the job. — John Bollinger 44 secs ago
 
8:16 PM
I guess I'll just see how it goes
 
8:38 PM
If you want help improving working code, you should post this on CodeReview.SE. If you do decide to do so, please delete the question here. — NathanOliver 26 secs ago
 
9:01 PM
0
Q: SQL JOIN QUERY with more than one items in common: Find the franchise pairs that operate together in more than one location

anonWith this R script, I have a table called dfmt that lists the location, revenue and franchise. I want to find the franchise pairs that operate together in more than one location. set.seed(43) f<-c( 'hilton', 'marriot', 'redroofinn', 'motel 6', 'holiday inn', ...

 
9:15 PM
If the code works and you're looking for advice on improving it, Code Review is the appropriate place. But see codereview.meta.stackexchange.com/questions/5777/… first. — Barmar 29 secs ago
 
I was mainly thinking of answering stuff
 
@HereToRelax All answers are encouraged, so long as they meet the requirements of the original code.
 
great thanks!
 
And if you're trying to change the requirements of the original code, be very specific about why and what the value-add is.
 
9:34 PM
I think I'll stick to the basics for now
 
10:01 PM
possible answer invalidation by JensB on question by JensB: codereview.stackexchange.com/posts/259201/revisions
possible answer invalidation by JensB on question by JensB: codereview.stackexchange.com/posts/259201/revisions
 
10:46 PM
This may be a good question for Code Review if you expand to show your current solution and some sample data. That site exists to help optimize working code — G. Anderson 27 secs ago
 
 
1 hour later…
11:50 PM
0
Q: how to use a second <ul> tag for my website

kongiponki kongiponkii am buildung a website. right now i want to create a unordered list for some examples. but at the beginning of the html code i already did use the "ul" tag. how i am supposed to re use it. i did read something about giving an id but it doesnt work. enter code here <!DOCTYPE HTML> <html> <head> ...

 

« first day (2896 days earlier)      last day (1123 days later) »