One day @SimonAndréForsberg will log on as @Duga and the SE server will blow up with an OverflowException trying to compute the notifications count to be displayed in the top bar...
I wonder if they thought an Int32 was large enough...
I am maintaining an old codebase of one of our legacy .Net applications which has a component that encrypts and decrypts user passwords using symmetric key cryptography. Since cryptography is not my domain, I need help figuring out whether this existing code needs to be fixed or not. I have a hun...
I created a side bar of buttons for my game, the idea being that if you click on the "main" button of the group, the rest of the buttons in the group would pop out from the side of the screen.
Later, I wanted to make it so that if you open one of the side menus the other ones would close. I tho...
I could of course have @Duga login on the main site as well, but that would require some more code, and if I'm coding anything, it has to be a little bit more useful than that
Your last sentence does not sufficiently clarify the expected output. Anyway, we're getting into code-review territory here (since you already have an answer to your question), but I might update my answer anyways. I'd have no objection if you wanted to delete your question. You know about codereview.stackexchange.com , right? — Frank18 secs ago
@Mast @EBrown Detecting what is a good and what is a bad question is quite tricky business. There is a filter that is used to detect what comments should go to the Programmers.SE chat or not, which I have had to rework many many times.
I believe there are so many grey areas of Code Review that it's just not worth it to create a bot that detects what is a good and what is a bad question, and that functionality would probably not work very well at all times which makes it a quite bad idea to make it automatically post a comment.
Below is an implementation of two graph traversals. Graph constructor creates a random graph with a fixed number of edges (fixed as a proportion of the maximum number of vertices, number_nodes-1).
Any comments welcome, but especially data structure and algorithm comments. Tests are not implement...
I'm trying to implement a banking management system including just customers, accounts and branches.
IDs make customers, accounts and branches unique.
Customers can have multiple accounts.(also in a branch)
Methods are deleteAccount, deleteCustomer(delete customer and all his accounts), delete...
I'm working on projecteuler.net problems, and I made this for problem #3:
array = []; // use this to save the prime factors
function factor(number, start){ //begin of the function
prime=true;
for(i = start; i < number+1; i++){ //begin of the first loop
if(number % i == 0){ //is it a divi...
@qujck This question isn't really a good fit for CodeReview.SE as it is asking for a fix to an existing functional deficit. Once the issue has been fixed, then the OP can move the code (which works as intended) over to CR for review. — EBrown38 secs ago
No more re-typing the same comments over and over!
This script adds a little 'auto' link next to all comments boxes. When you click the link, you see a popup with 6 configurable auto-comments (canned responses), which you can easily click to insert.
This script was inspired by answers to thi...
About Me: I am a frontend developer, so my background is primarily in HTML/CSS and some jQuery. I am attempting to become more proficient in web development, so this project is my first attempt at building a complete application using PHP and AJAX.
The Project: By utilizing an existing php encr...
Be aware though what mySQL does when it encounters bad information for an enum field. @200_success shared a link sometime that mentioned several bad parts about MySQL and enums.
@Mat'sMug And then convince the sender and receiver to switch to it? Good luck. If it were that easy I would propose a new protocol to replace HTTP and it's archaic ideals.
But, if I became popular enough, or convinced Outlook/Gmail to do this, then the rest would probably follow - except the ones you shouldn't be using anyway.