« first day (2012 days earlier)      last day (2016 days later) » 

12:00 AM
RELOAD! There are 5783 unanswered questions (89.7250% answered)
 
12:28 AM
@SᴀᴍOnᴇᴌᴀ Yes, that's the one.
 
12:39 AM
I dropped a semi-official comment on that, but I don't have the time (or physical energy) to flesh it out into a full answer now... Happy for anyone to use the links I provided to put something together there :)
And with that I'm off to bed. Sleep well y'all
 
@Vogel612 gute nacht
11
A: How do we deal with copyrighted material on our site?

MysticialAs per our discussion in chat: Here and here The official response from SE is: Our usual policy is that moderators are not lawyers and are not responsible for enforcing any laws. This includes copyright. If there is a legal problem, it will be brought to us. Then we'll handle it if it...

 
12:55 AM
possible answer invalidation by Laurent on question by Laurent: codereview.stackexchange.com/posts/206983/revisions
 
1:46 AM
0
Q: Mixed Duo String Generator Part 2

LaurentMixed Duo String Generator Hello again; Previously my code was critique and I applied this feedback to form my new revised code for the Mixed Duo String Generator. In the code below I revised it to the best of my ability. I removed un-needed comments, keep variables in as small a scope as I coul...

 
 
2 hours later…
3:46 AM
If you have a solution share it, and we'll see / If looking for better solution SO is not the good place, you should take a look to codereview.stackexchange.comazro 49 secs ago
 
4:16 AM
0
Q: Simple Python Neural Network

hlapointeI'm trying to implement a simple neural network with one hidden layer in python. To test my implementation, I use the class digits dataset. I don't know why, but I'm able to get better result than 40% of accuracy. Can you suggest any changes? #!/usr/bin/python import os import numpy as np ...

 
5:11 AM
possible answer invalidation by WizardCovfefe on question by WizardCovfefe: codereview.stackexchange.com/posts/206751/revisions
possible answer invalidation by Yogesh Raut on question by Yogesh Raut: codereview.stackexchange.com/posts/206880/revisions
 
@Duga on hold anyway hence its ok
@Duga @Vogel612 @SimonForsberg @rolfl can you fix this ?
meaning using your admin powers to make the user understand that a edit war doesn't help
 
 
1 hour later…
6:30 AM
0
Q: Integrate Google Map in Swift

jkgfjmI'm trying to integrate Google Map in swift, I've used following code for integration and result is shown in the screenshot. I've already installed the Cocoapods for google map, I've followed this below link... still not getting the result.. what I'm actually trying to do is creating multiple sta...

 
6:52 AM
Monking
 
7:15 AM
0
Q: Django template - DRY

Jon ProgrammerI have the following code in my Django template. It's a bit repetitive. I wonder if that's good the way I wrote it, or if you would combine these two 'if'-statements into one somehow? {% elif discount.no_more_left %} <div class="modal fade" id="no-more-left-modal" tabindex="-1" role="dialog" a...

 
7:30 AM
0
Q: Elegantly exclude part of an operation from the last iteration in a loop

Kerndog73A well-formed comma-separated list has commas after all but the last element. This means that when dealing with these lists, the comma has to be dealt with on all but the last iteration. This is how I do things currently: for (auto e = vec.cbegin(); e != vec.cend(); ++e) { // code that has to ...

0
Q: process data with numpy seems rather slow than pure python?

user2458587In my opition, Vectorization operation with numpy should be much faster than use for in pure python. I write two function to get and process datas in a csv file, one in numpy and another in pure python, but numpy one takes nearly four times time of the other. Why? Wrong way of using numpy? Any su...

 
7:44 AM
2
Q: AI Seek and Avoid Obstacle

Will PierceThe AI I'm making is really simple however it might be a bit too inefficient for what it is doing. The chart below shows speed differences between various arithmetic and math operations. Sin, cos and especially atan are really inefficient. It's tested in C++ but should still hold true to JavaScri...

 
8:21 AM
I'm voting to close this question because it belongs on codereview.stackexchange.comPeter B 27 secs ago
 
8:59 AM
0
Q: Replacing if statements with some design pattern

DSFI have the following method, which I have just added a third if-statement to in order to invoke the "ThirdApi". I think there are two many if-statements in this method and therefore I want to refactor it. Initially I was thinking about using the strategy pattern but I couldn't really get this to ...

 
9:10 AM
@Heslacher The only thing I could do would be a lock, which would also prevent votes and answers - even votes on answers IIRC. I would like to avoid that.
 
Monking
 
9:43 AM
0
Q: Implement Rule of 5 for C++ Class

user1429322I was recently learning about rule of 5 for c++ classes and implemented them as exercise. Any suggestions/good practice are really welcome. class Test { private : int a; int b; public: Test(int v1, int v2): a(v1),b(v2){ cout << "Constructor Called \n"; } ...

 
10:06 AM
I have a feeling that your question might be better suited for codereview.stackexchange.comKuba 52 secs ago
"More elegant" is quite opinion-based, isn´t it? Voting to close. You should consider to post this question on codereview. — HimBromBeere 35 secs ago
 
10:21 AM
@SimonForsberg thanks
 
10:43 AM
0
Q: Compare quantity of two lists - with a given tolerance

Martin Hertig-> Already Asked at StackOverFlow, but was adviced to post question here! <- I want to compare two lists, which both can be null, both can contain 0 or more entries. If the amount matches, there should be some handling for that. If not, it should be checked if the difference of the amount is c...

 
10:58 AM
0
Q: Xamarin - Filter Data from realm database

Mina FawzyI have this method to filter data from Realm database here is the steps Step 1: Retrieve all data from Realm Step 2: Filter Against tail keywords its list comma separated Step 3 - Step 6: the same as Step 2 filter against a list of keywords Step 7: Filter against two dates values Step...

 
Hi, yes, i know. But i cannot give more code as this is a commercial project with a quite strong NDA. Unfortunately this is the maximum i can provide. — Martin Hertig 2 mins ago
How should we deal with this ?
 
11:18 AM
@Heslacher Isn't there a meta question for that already?
 
I am too old to remember every meta question ;-) there may be is one.
 
There is that
-2
Q: Asking for a suggestion: partially obscure the source code

ReviousWhen I have a short piece of code which doesn't contain any sensitive data and I strongly think that it could be published here I still often avoid unless it's a project of mine. (I'm not worried of being sued, but of being blamed or fired for doing something which everyone here is seeing as reas...

trying to find something more specific
 
thanks @MathiasEttinger
 
also this
8
A: The opportunity to post an anonymised code. To have no problems at the place where you work

AdamThis is already easily possible if you follow one simple guideline: Preserve meaning when making code anonymous. I don't see removing or changing details that could identify a company or individual as a problem. The real problem happens when people make code meaningless in a misguided attempt ...

 
Placed both into comments to the question. Thanks
 
11:27 AM
@MathiasEttinger I fixed my SO problem by using Protocols, you may be interested as I think you do a fair amount with typing. (It's available via typing-extensions)
 
11:50 AM
possible answer invalidation by Koray Tugay on question by Koray Tugay: codereview.stackexchange.com/posts/56951/revisions
 
12:10 PM
@Duga rolled back
 
12:57 PM
-1
Q: Alternative to Deactivated logging class for performance

Kaito KidI have create a small project containing a dozen classes. It is basically just a dll with only one public function, so only one entry point. During the development, I have created a logging class that gets initialized at the very beginning with a verbosity level. The log methods look like this: ...

 
possible answer invalidation by user2458587 on question by user2458587: codereview.stackexchange.com/posts/207036/revisions
 
@Duga Adding context information, this is fine.
 
0
Q: Should I use properties even though my methods do all the work

RumbleJungleI'm currently learning C# and I'm stuck with why I need to use properties it made sense when when I was doing a console app with no database and storing information in lists but since connecting to a SQL database I just pass information through the methods. My understanding of OOP is that abstr...

 
1:27 PM
0
Q: Bitmasking and searching

Raja BabuI have written a code to count the continuos 1's in an array or you can use binary string for convenience.Any solution using the binary string is acceptable. My Solution is>> #include<bits/stdc++.h> using namespace std; #define MAX 100000 int main() { int n,q,k,count; string str; cin>>n>>q>>...

 
This sounds more like a question for the Code Review forum. — boxdog 7 secs ago
When your code will work I advice you to put it on codereview.stackexchange.comOrace 14 secs ago
 
0
Q: Performance - Incrementing certain list values in Python

user3.1415927I completed a coding challenge recently in which my function was to be given two parameters: N, the number of counters to be used (numbered 1 through N) - and A, an array of integers. Iterating through the array A, when the index of a counter occurs, that counter is incremented by 1. When an inde...

0
Q: Python 3.4 Text RPG Adventure Game

Shun LushikoI am making a text-based RPG adventure game, I have a problem with the save/load function. I want to load the game where it saved, I am still on the process of completing the plot so there are only two different save points. Here is the complete code: (minus the unnecessary stuff) import random...

0
Q: NetworkInfo NullPointerException in ConnectivityManager

sindyokeI check whether user is online in this method: public static boolean isOnline(Context context) { ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE); return cm != null && cm.getActiveNetworkInfo() != null && cm.getActiveNetwo...

 
2:07 PM
It you want the code reviewed, it belongs on Code Review. Note though that they require full, working, runnable code. — Carcigenicate 38 secs ago
 
0
Q: Creating a spreadsheet viewport cursor cell in C

Wei JingI am asked to create a spreadsheet application using C programming language. I have a query on how to create a cursor cell that moves the cursor to the given cell under viewport control. Can anyone please help me on this? Totally stuck.

 
2:26 PM
0
Q: Make my ball move please Pong Game c#

Sachynamespace movingobject { public partial class FormView : Form { enum Paddle { Left, Right, Up, Down, Stop, Start } enum Ball { Move } private int _x; private int _y; private Paddle _objPosition; public static Rectangle Paddle2 = new Rectangle(15...

 
@Heslacher I see the following at the end of this page: Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count). Would you like to answer one of these unanswered questions instead?Koray Tugay 35 mins ago
@Vogel612 can you check this?
 
question was protected by jamal in '16
 
Sure but OP has more than 10 rep earned
 
yeap. that should work... might be a bug in the implementation there..
they've originally received the association bonus. Most of the rep they earned on site, they gave away in bounties
 
But earned is still earned isn't it
 
2:30 PM
over a thousand rep given away in bounties
@Heslacher exactly. But I assume the assoc bonus check is too naive and only checks something like (HasEarnedAssocBonus && Rep > 110) || (!HasEarnedAssocBonus && Rep > 10).
I'll see whether there's an old bugreport about this.
 
Well I thought that site has been made by experts.....
 
it's not called experts-exchange, you know :D
also that's a rather unfortunate edge-case
On that note: you should be able to lift the protection there
you got more than 20k rep
 
@Heslacher For some definitions of the word "expert"
 
;-)
 
44
Q: Stack Exchange doesn't allow me to answer protected questions because I gave away earned rep in bounties

nicaelI noticed that I can't answer protected questions. I don't want to actually, but it says: It was FAQ for Stack Exchange sites, but I also didn't have an ability to answer other protected questions. I earned 270 reputation points + 100 reputation point bonus. Then I offered 350 reputation ...

^^ known bug
 
2:34 PM
The friggin date on that FFS
I quit
 
Thanks. I have unprotected that question and will keep an eye on it to protect it again after OP has given his answer.
 
-1
Q: EOFError: Ran out of input, what does it mean?

Shun LushikoI am making a text adventure RPG, here is the traceback: Traceback (most recent call last): File "C:/Users/Alba/Documents/Codes/Saveandloadtest.py", line 824, in <module> main() File "C:/Users/Alba/Documents/Codes/Saveandloadtest.py", line 531, in main game_state = pickle.load(infile...

 
2:50 PM
possible answer invalidation by Calak on question by Raja Babu: codereview.stackexchange.com/posts/207063/revisions
 
3:21 PM
posted on November 06, 2018 by CommitStrip

 
-1
Q: Why do we index with 0 for arrays? (C)

Liam BradySo my question isn't really why do we index with zero but more so why does C allow arrays to break their own rules. Example: bool truthtable[10]; truthtable[1] = false; if(truthtable[7] == true) { printf("TRUE!\n"); } truthtable[10] = true; So my question is why is the last line, trutht...

 
@Heslacher your question was updated codereview.stackexchange.com/questions/56951/…
 
and I already protected it again, but thanks for the notice
 
3:41 PM
0
Q: Python3 number guessing game

Dom LHello I am working on learning binary searching. The program explains itself. I am confused on whether or not I should write a function to half the numbers. I am just confused on the logic of half a number in the loop. If you could help I would greatly appreciate it. list_of_numbers = [i for i i...

0
Q: Reading range sensor data from one Serial Port and writing output to another using C#

Thabiso MofokengI'm reading range/distance sensor data from one Serial Port, decoding it and then transmitting it to a secondary device in ASCII format. The sensor uses a 2-byte header with each byte containing the following hex values: 0x59 0x59. Additional data from the sensor is also sent in a 7-byte message,...

 
3:55 PM
0
Q: Refactoring Java mobile application: Note application

bts0i am new to java and i just developed a note application(in android studio) that works however i know it isn't developed to the correct standards of how clean code should look like. i am trying to refactor the code to make it look neater and extensible and would like some advice on possible chang...

 
The "OWASP Top 10 - 2017" pdf has the most common vulnerabilities... Maybe, i wasn't so clear in my explanation: For example, i want to test this topic: V9. Data Protection Verification Requirements: Verify the application has the ability to detect and alert on abnormal numbers of requests for data harvesting for an example screen scraping. There is some guide to fill this point? Maybe some tool we need to install to do this? Can only be performed through Code Review? Thanks. — azNNag 16 secs ago
 
4:10 PM
-1
Q: Java naming conventions for constant Suppliers / Functions / Consumers

MaydayI have found in several places naming conventions in java language. Probably, the main source of trust is from oracle. However, I have not found anywhere if declaring constant Suppliers / Functions / Consumers is considered effectively a constant and therefor, use CAPITALS_AND_UNDERSCORES. ie, s...

0
Q: How to get the print name of dividor?

Oscar Ubillúsi had this question: Every Number that divides by 15 cleanly -> Print "Divides 15" Every Number that divides by 21 cleanly -> Print "Divides 21" Every Number that divides by 3 cleanly -> Print "Divides 3" Any time that it divides any of the 2 numbers cleanly instead print "BLAM" given: 21 -> BL...

 
possible answer invalidation by user3.1415927 on question by user3.1415927: codereview.stackexchange.com/posts/207064/revisions
 
Monking
@Duga Toby commented about that...
Your edit invalidated an answer, which is against the question-and-answer nature of this site. See What should I do when someone answers my question?. — Toby Speight 4 mins ago
but then Toby made an edit, which didn't rollback said change...
 
4:31 PM
@PeterB Feel free to recommend the OP post on CR but in the future, please don't use Code Review as a reason to close a question. Evaluate the request and use a reason like too broad, primarily opinion-based, etc. Then you can mention to the OP that it can be posted on Code Review if it is on-topic. Please see the section What you should not do in this answer to A guide to Code Review for Stack Overflow usersSᴀᴍ Onᴇᴌᴀ 9 secs ago
This seems like it might be a better question for Code Review There's not really a specific programming question here. Otherwise be more specific about what exactly needs to change. What exactly are you trying to fix? — MrFlick 47 secs ago
 
@Feeds lookout- its: a wave of s
@CommitStrip holy shnikes!
 
1
Q: Hangman exercise from Althoff book

Vlad LevshaHere's my code. This is my very first exercise in python. I'd like to know how to make it look more professional. There is a solution in Althoff's book, but i wrote mine. print("Welcome to the hangman game! Let's start!\n") word = input("Enter the word to guess: ") print("Got it.") hanglist = [...

 
4:55 PM
-1
Q: determine how many years he has served the company so far?

jadeOmar works in a MAZ company. He started working with first base salary of 8000. Every year he gets an increase of the base salary with 15%. Currently, his salary now is 20000. Can you determine how many years he has served the company so far?

0
Q: Minimalistic, self-contained class for reading a sectionless INI file

SparklerWhen sections are ignored and no writing capability is needed, an INI reader becomes quite simple to implement. Here is my attempt at reading a sectionless INI file without any non-std dependencies. The general idea is to store all key-value pairs in a <string, string> map, and use getters to co...

 
5:12 PM
Monking
 
5:40 PM
-3
Q: Bluetooth button

محمد الفوازI have App with audio file I want to force my app to switch voice output by pressing button (Bluetooth button) .between mobile speaker & other device

0
Q: Greatest Common Divisor (GCD) in MIPS32 assembly code

Dio TsolakouI have written a quite simple code for finding the gcd of 2 integers on mips32 assembly code. However, QtSpim doesn't respond when I load the file. Is there something wrong in my code that prevents QtSpim from loading the file? # Description : This program reads two user inserted integers and as...

 
6:05 PM
This should be asked on codereviewKenneth K. 36 secs ago
 
6:25 PM
0
Q: Is there a clean looking and readable alternative to nested foreach loops?

SkyeBoniwellI have this code with nested foreach loops that is getting out of hand. Is there a better and/or cleaner way of doing this? Basically, what it's doing, is take the results from an API call, and then looping through each layer. I check to make sure that each layers Results.Length is greater tha...

 
7:10 PM
0
Q: Formatting a date

DrZooIn this small bit of JavaScript, a date is passed in as YYYY-MM-DD. It's formatted like this to be passed to the backend system. On the front end, we need to display it as MM/DD/YYYY. I split the string, and put the each array index in the correct position. However, I feel like there could be a...

 
7:40 PM
0
Q: Split CSV file by row into multiple TXT files using Python

Gerrrald1I have a CSV file that I would like to split up by row, do some process on the string data in each row of the document column, and then output the processed data into separate TXT files in a new directory using a python script. The thing is, I will be doing this on corpora of 3+ million documents...

 
7:50 PM
possible answer invalidation by Gerrrald1 on question by Gerrrald1: codereview.stackexchange.com/posts/207097/revisions
 
0
Q: SSMTP configuration in Ubuntu 18.04 with Bash

JohnDoeaThis is how I configure the utility SSMTP that allows me to send mail via smtp protocol through a Google-Gmail proxy instead I'll have to manually configure an "heavier" Postfix bi-directional email server on my environment. #!/bin/bash myHostName="$HOSTNAME" read -sp "Please paste your Gmail p...

 
8:38 PM
@SᴀᴍOnᴇᴌᴀ Sheesh. That user is getting a bit problematic. First an edit war, now this.
 
That's very disrespectful
 
@SᴀᴍOnᴇᴌᴀ Hmmm?
 
Thanks, @MrFlick. Actually, is not a programming question, but I question to help me to improve this code using tidyverse family if possible. I did not know about the Code Review section!!! I'll move this question to there ! — Luis 24 secs ago
 
8:54 PM
0
Q: Log displays not displaying correctly after merge sorting a double linked list

Ali KThis is the output which only displays 3 logs for the highest priority jobs, the lowest priority prints all the added logs. I don't understand why it is only printing 3 logs for the Highest priority? and anything else I could improve in my code :) DLL Class public void displayLogs(Node node) ...

0
Q: Best practice - naming multiple variables returned from a function

Erich PurpurI wrote a program which has a main() module. In that main module I call other functions, which return values. One function returns multiple values, as a tuple. I'm asking about best practices for naming these values in my main() funcion, because I use them in different places later. Below is my ...

 
9:44 PM
The site you're looking for is codereview.stackexchange.com. StackOverflow is more suited for concise answers to concrete questions. — Fang 27 secs ago
Just close this one and repost it on code review. — Fang 57 secs ago
Be sure to read the information on Code Review before posting anything there. — khelwood 1 min ago
 
-1
Q: HTML/CSS simple site

gjfgj12So this is a register tab website and I'm not sure if i'm using the form thingy correctly and im not even sure what it does because the guy in the tutorial didnt really say anything about it. im pretty sure its messing with my site, because when i tried to put "username:" before the username inpu...

-1
Q: Taking a single max value from a txt file

paweljvnI am coding my small scrabble game. What I have to do, is to print the highest score (only one) from a txt file. This is my code: letter_score = {'a' : 1, 'e' : 1, 'o' : 1, 'i' : 1, 'n' : 1, 'r' : 1, 'l' : 1, 't' : 1, 'l' : 1, 's' : 1, 'n' : 1, 'd' : 2, ...

 
</lurk>
Folks: small mod note here. Comments are not a chatroom. The sheer volume of comments suggests that we should discuss this answer somewhere that's more suited to discussion. Thanks! — Vogel612 ♦ 3 mins ago
 
10:09 PM
0
Q: document-root centralized phpmyadmin

JohnDoeaI love when phpmyadmin is under my document root (/var/www/html). I find it more convenient to work that way (I use the document root path time and again and do various actions on it like locking phpmyadmin by its permissions so I prefer to keep it there). This is my way to install it under the ...

 
10:19 PM
@Mast I meant that you might have typed something along those lines if you were online at that time (but then one could say D.R.Y. ;) )
> ... so if anyone could look up whats wrong that'd be great.
@Feeds stop being on- and off-topic...
 
10:45 PM
Hello @KarinHan; welcome to SO. I believe a more suitable place for your question is Code Review. Since SO is more concerned with solutions to a problem rather than enhancements. — Andrew Naguib just now
 
@Duga I commented that I VTC'd as it is too broad for SO
 
11:24 PM
-2
Q: rearranging words to create palindrome python

khaled siamRecall that a string is palindrome if it reads the same forward and backward. Given a string that contains only lower case English alphabets, you are required to create a new palindrome string from the given string following the rules gives b...

1
Q: ROS node to control Dynamixel servo motors

Ben HThis code is for a ROS (http://www.ros.org/) node that controls a pair of servo motors (referred to in the code as grippers) that can be controlled individually or together. When they are controlled together they move in opposite directions to create a gripping motion. Running this code requires...

 
11:38 PM
0
Q: JS buttonid is not changing <div> in html JS Script

Bevans Real-EstateMy buttonid function is working for button1 and button4 but not buttons 2 & 3. Is there anything obvious for why the div id=box is not changing for the two cited buttonids? <!DOCTYPE html> <html> <head> <title>Jiggle Into JavaScript</title> </head> <body> <p>Press the buttons to change the...

 
11:53 PM
0
Q: Swapping variable length strings asynchronously with connected microcontroller (Byte-banging)

MikeI have an AT89S52 and an AT89C4051 microcontroller (both in the 8052 family) in which the bit lines of the data bus, one control pin and one status pin are connected together. In code, the data bus is labelled "D", the status pin is labelled "ACK" and the control pin is labelled "ACT". The AT89S...

 
@Feeds BENICEPOLICY who let that through the first posts queue without VTC??
 

« first day (2012 days earlier)      last day (2016 days later) »