« first day (1016 days earlier)      last day (3018 days later) » 

12:00 AM
RELOAD! There are 1837 unanswered questions (94.1569% answered)
 
I've seen that video before.
 
@Hosch250 She's done that for a while, but she only listens to my commands :)
 
Oh, OK.
 
With the refactorings I've made recently though, it will be significantly easier to test her. I will be able to test her more without actually having her connected to the Stack Exchange chat.
 
12:04 AM
> I am a unicorn.
 
12:29 AM
0
Q: How do I increase responsiveness of this code on an Arduino?

Mesha Atkinson #include <LiquidCrystal.h> #include <AFMotor.h> //Adafruit motor #include <SoftwareSerial.h> //Serial Communication #include <Keypad.h> //Keypad //Setup pins; SoftwareSerial lcd(16, 17); int RelayPin = 38; const int CurrentPin = 39; //Keypad Setup const byte numRows= 4; //number of rows ...

0
Q: Simple Blackjack/21 Game in console

Greg MI made a simple Blackjack/21 game in C++. It does not use any fancy graphics, just the console output. It is as simple as it can get. #include <iostream> #include <cstdlib> #include <ctime> #include <algorithm> void printData(int pTotal, int dCard) { std::cout << "\nYour total is " << pTot...

 
Greetings all.
@Quill Great link, I often echo the same and appreciate the share!
 
12:53 AM
@SimonForsberg how do you feel about bots with commands in chat here? I know the stance on toys & usefulness & _skynet spam_ming the room
 
@Quill In The 2nd Monitor? Very restrictive.
So far I have not really seen a useful bot that listens to commands.
 
One of the bots in the SO chatroom has good use there
moves and kicks users who post unformatted code for vampiring
I can't imagine that having much of a good use here though
 
Just thinking out loud, but would it serve any purpose if Duga or Captain Obvious self removed stuff which was closed or deleted, if we responded something special?
 
well, no
I mean, you may still want to read stuff to see if it was closed wrongfully or whatever
deleted stuff doesn't show up
 
Well... There are some which fly by, which are closed before captain obvious reports them, which we possibly could get him to remove notification off...
But then again, I'm not overly distracted by these, but justing thinking a little out of the box, when you brought it up...
 
1:12 AM
@Quill that doesn't sound very interactive though.
@holroy No. I want the history to be there.
@holroy Captain Obvious is a feed, we can't change that behavior on him unless we replace him by a bot.
 
@SimonForsberg My bad... Forgot he is a feed... But I have clicked on some of his reports, and found them missing, and found that a little disturbing.
I foresee that the history could be present still, as you'd have the response for Duga still present. But then again, then you would see a response to something Duga has deleted... Not good...
/me retracts thoughts... :-)
 
yeah, overall it's just not worth it, even if it would provide any value (which I think most people don't think it would)
 
hmm, I had a feeling that would be the case
 
1:59 AM
in VBA Rubberducking, 3 mins ago, by Duga
[rubberduck-vba/Rubberduck] build for commit 34afc01e on next: AppVeyor build succeeded
570 passing tests.
That is after the old setting tests are deleted.
 
2:32 AM
@holroy the biggest problem I see with this is that you loose the "paper-trail" we get in here
then again sometimes the volume is a little high
I know that smokey and the CV-Req-Bot remove their messages, but they regularly link to spam posts and SO Garbage
 
I do believe there is a lot more garbage on SO, to me there are almost too much traffic in general over at SO...
 
3:20 AM
0
Q: Iterative Calculation - Google Sheets

Chris MMgrThis Google Sheets script performs an iterative (circular) calculation to find values based on a gross percentage of project cost. Range names are used so that users can add/delete rows/columns and not have to reset the code. The ranges included in copyTo() are part of the total sum of project co...

 
3:45 AM
0
Q: asynchronous web crawler python

Gia Phat HaI am writing a small crawler using python3.5. The first version I wrote worked fine but it was too slow (single thread). I googled and found some ways of speeding up things. I tried implementing asyncio into my code but it doesn't seem to work. After hours of looking through the docs I still don'...

 
4:18 AM
0
Q: Josephus problem / 100 chairs in a circle problem solving with Angular.js and visualization

Rahul DesaiHere is the problem statement: Take a second to imagine that you are in a room with 100 chairs arranged in a circle. These chairs are numbered sequentially from One to One Hundred. At some point in time, the person in chair #1 will be told to leave the room. The person in chair #2 will be ski...

 
 
1 hour later…
5:35 AM
0
Q: Walking a directory in Haskell

chadI wrote a function that recursively walks a given directory. Here it is: module WalkDir (walkDir) where import System.Directory (doesDirectoryExist, getDirectoryContents) import System.FilePath ((</>)) walkDir :: FilePath -> IO [FilePath] walkDir r = do exists <- doesDirectoryExist r ...

0
Q: 0-1 Knapsack in java

DontForgetTheSemiColonLooking for advice on coding practices a=in general public class Knapsack { public static int getMaxBenefit(int[] weights, int[] benefits, int capacity) { int[][] maxbenefit = new int[weights.length + 1][capacity + 1]; for (int i = 0; i <= weights.length; i++) maxbenefit[i...

0
Q: self learning chatbot in python any idea

Kevin Georgethe title is my question help me out please cat dog t help me out here I will be so thank full help me out here I will help you to in you are thing also

 
@CaptainObvious challenge of the day: how to kill this in a "nice" way
4
> Please, see our help center. – Mat's Mug♦ just now
that'll do
 
@CaptainObvious cat dog?
 
IKR
 
I do like the show.
 
5:58 AM
0
Q: Project Euler 18/67 : Maximum Path using Memoization

Mayur KulkarniProblem statement of PE18 is : By starting at the top of the triangle below and moving to adjacent numbers on the row below, the maximum total from top to bottom is 23. 3 7 4 2 4 6 8 5 9 3 That is, 3 + 7 + 4 + 9 = 23. Find the maximum total from top to bottom of the triangle below: ...

0
Q: Python exception handler to recommend package

j0hConsider this python 3 snippet, where when an import exception is raised, a string 'e' is created that says: "No module named ' packageName'". The goal is to simply say on exit, that the import error can perhaps be solved by installing a package of the same name. I came up with this, and it work...

0
Q: Student data parsing application

Christine Simmons My application takes a .csv (comma separated values) file and serializes the data into a binary file. Then it converts the binary file back to to a .csv file (identical to the original file). For example, consider the following .csv file: John, Appleseed, 435, 89.2 Debbie, Downer, 924, 70....

 
6:58 AM
0
Q: Finding if the tree is balanced or not

Mosbius8Can someone please review my code and let me know, if there is some bug or the improvement scope. /** * Definition for a binary tree node. * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */ public class Soluti...

 
7:58 AM
You're the one who claimed that anyone who disagrees with you is weird, Dolda. Real world programmers regularly use && to work with boolean expressions, and & for bitwise operations, and using one where the other is normally used is misleading, and therefore a source of hard-to-find bugs. You are therefore encouraging a beginner to adopt a bad habit that will be rejected out-of-hand in most professional code reviews. The fact that nm17 feels the need to add a comment to explain using & over && to his tutor makes the content of that comment part of the "bandwidth". — Peter 32 secs ago
 
 
1 hour later…
9:00 AM
Naruto answer; accepted non-selfie answer with 0 score: Encapsulation of client side logic in web page
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Helper functions to extract SEDE query results into more user-friendly format
 
9:25 AM
0
Q: Reverse an Encrypted number

WXHXIXTEProblem: My code is supposed to have the user enter a 4 digit number(as one whole number). Then replace each individual digit in that number with the result of adding 7 and getting the remainder after dividing the new value by 10. Then swap the first digit with the third digit and swap the second...

 
9:57 AM
I thought we had this settled? — Gert Arnold 15 secs ago
 
10:41 AM
Gold C# badge on SO
My reign starts
6
 
0
Q: Reading images/lines from docx files and writing them into JPanel

NxSEssentially what i want to do is to read a whole word.docx file together with the text and images and format it into an JPanel which will later be part of a JFrame which contains multiple components, besides the docx i want to implement that is. My question is how ? Is it even possible to do some...

0
Q: Basic TicTacToe game in java

JacobI was assigned to create a simple Tic Tac Toe game in java for class, and here is what I got. I would like to know how the code could possibly be shortened without using really advanced topics since I haven't covered them yet. Here goes: import java.util.*; import javax.swing.JOptionPane; publ...

 
11:22 AM
Quiet in here
 
11:32 AM
0
Q: Script that checks if the text of a website has changed with email notification

questionanswerThe text of a website is checked in a given time period. If there are any changes a mail is sent. There is a option to show/mail the new parts in the website. #!/usr/bin/env python3 import urllib.request, hashlib, time, html2text, smtplib, datetime, argparse class urlchange: def __init__(se...

0
Q: Function that assigns names to a struct using strtok

user97629I worked around using strtok function so to assign first name and last name to a struct PERSONNE from a char *names[] array. It was not possible to directly modify the *names[] using strtok since it was throwing an exception. This code works fine but the last loop shows a lot of '\n' until it re...

 
export * from './reducer'
I wish I had found this syntax sooner, unfortunately it seems to shoot standard-loader in the head when I use it :(
 
11:51 AM
0
Q: Recurring tasks in ASP.NET MVC

sDimaI have 2 alternatives for executing recurring tasks in ASP.NET MVC. We just need to add some code in Global.asax First alternative: private static void ThreadSendNextMail() { while (true) { HostingEnvironment.QueueBackgroundWorkItem(async cancellationToken => { using (var db ...

 
12:26 PM
Code review/corrections are part of Code Review. So you might ask there... — albert 14 secs ago
@albert Code not working as expected is off-topic on codereview. — Mathias Ettinger 48 secs ago
 
1:06 PM
export function login(username, password) {
  return async dispatch => {
    dispatch(loggingIn())

    const response = await fetch('/api/tokens', { method: 'POST', payload: { username, password } })
    if (response.status === 200) {
      return dispatch(loginSuccess(null, null))
    }

    return dispatch(loginError())
  }
}
ES7 + ES6 = <3
 
@JaromandaX - please see this post this is checkAppPort codereview.stackexchange.com/questions/117054/…shopia T 24 secs ago
If you want help on how to optimize or refactor working code, you should ask on Code Review. SO is for code that doesn't work — Arc676 34 secs ago
 
ES7 is like a unicorn
@DanPantry those words look foreign to me ;-;
ES6 is just pure magic
 
export function login = exports.login = function login
async lets you use await, which awaits the result of a promise (think C#)_
 
Monking
 
1:23 PM
hey there skiwi
 
1:42 PM
@Microfed ONE THING ALSO: I did this kind of code because people of CodeReview or StackOverflow say to me make junk of code, sample: for(var i=0;...) instead of for(_Bs=... and put idiot extra spacebar. — Error ever 51 secs ago
@Microfed Disclaimer: I did this kind of code because people of CodeReview or StackOverflow say to me make ugly code, sample: for(var i=0;...) instead of for(_Bs=... and put uneeded extra spacebars. — Error ever 29 secs ago
 
lol
47
A: What is a data scientist?

Piotr MigdalPeople define Data Science differently, but I think that the common part is: practical knowledge how to deal with data, practical programming skills. Contrary to its name, it's rarely "science". That is, in data science the emphasis is on practical results (like in engineering), not proofs, m...

 
0
Q: Display Calendar using LOOP (The user picks what DAY to start)

Adrian Pete Regis LagareImage LINK: http://i.imgur.com/i4W9sHY.png http://i.imgur.com/aJLIx6L.png Can I get an shorter version of this code? Because I know there is. My instructor just wants me to figure it out my self :( I need your help guys :) #include <stdio.h> int main() { int month,week,day; printf("Enter mo...

 
@New-To-IT I'm not sure how yelling is ever appropriate in a professional setting, unless you're trying to stop someone from immediately doing something bad, like rm -rf / on the production server or something. — Wayne Werner yesterday
 
1:58 PM
Monking
 
2:11 PM
hey
 
2:29 PM
0
Q: Null Reference Exception was unhandled

Panos KikasSo, as a beginner in C# I started building the black jack game with code only. So after creating the deck class i tested my code to check if it works so far: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace BlackjackL...

 
possible answer invalidation by questionanswer on question by questionanswer: codereview.stackexchange.com/posts/119951/revisions
 
3:18 PM
0
Q: Generate Subsets Of K Elements From A Set Of Strings

DanI recently posted a non-topic for this site question( All Subsets Of A Given Set Of N Words C# ). Sorry, for that. I understood how to do that problem that I posted. I used a lot of code. Please help to make the program more effective. This is the task: Write a recursive program, which prints all...

 
possible answer invalidation by 200_success on question by Don Who: codereview.stackexchange.com/posts/119890/revisions
3
 
3:47 PM
Reasons why TypeScript sucks:
function login() {
  console.log('test')
}

function reduxActions(actions) {
  function WrappedReduxActionContainer() {}
  for(let actionName in actions) {
    WrappedReduxActionContainer.prototype[actionName] = actions[actionName];
  }
  return WrappedReduxActionContainer;
}

class MyController extends reduxActions({ login }) {

}


const myController = new MyController();
myController.login();
The above is valid JavaScript ,but not TypeScript.
@Quill
 
0
Q: Apache HttpClient for Web Application

HalleyI am trying to create a web application which will consume a lot of other RESTful apis. I am using Apache Http Components for consuming the apis. The plan is to have a Singleton class which will contain the method to consume the apis which will use a CloseableHttpClient. private static HttpCli...

0
Q: Permutation iterator in Java

coderoddeI have this class that iterates over all permutations of an input list: PermutationIterable.java: package net.coderodde.util; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; import java.util.List; import java.util.NoSuchElementException; /** * This class imple...

 
4:07 PM
0
Q: How to validate a model that requires database access

MikeyLet's say I have this User model. class User { public $id; public $email; public $password; public $errors; public function isValid() { if (strpos($this->email, '@') === false) { $this->errors['email'] = 'Please enter an email address'; } ...

 
I am not sure then root of problem in EF model. It's more about application pool fail. It's maybe some unhandled exception, stackoverflow exception, outOfMemory exception. It's hard to advise you, try to find more messages at Windows events and make a code review of changes from previous version of your programm — Ivan 40 secs ago
 
4:26 PM
0
Q: (C++) Display students of specific age using struct

kristaSo my task for uni is to create a program using structures. In this program I have to make an entry of students,their name,birth date and group(a random number); and I have to search the students according to the input age. Please note that I am still learning :) #include <iostream> #include <cs...

 
5:10 PM
0
Q: Partition iterator in Java

coderoddeGiven a list of \$n\$ objects and an integer \$k \in \{ 1, 2, \dots, n \}\$, this iterator generates all possible ways of partitioning the elements in the list into exactly \$k\$ disjoint, non-empty blocks (partitions). There is exactly \$S(n, k)\$ such partitions, see https://en.wikipedia.org...

0
Q: Longest Substring in Java

ZeusThis is my function for determining the Longest Substring between two strings in Java. public static String longestSubstringLength(String str1, String str2){ int row = str1.length(); int col = str2.length(); int[][] checker = new int[row][col]; int max = 0 ...

 
5:25 PM
possible answer invalidation by Lennox on question by Lennox: codereview.stackexchange.com/posts/119759/revisions
 
6:20 PM
0
Q: Feedback on a program that parse JSON data of upcomming fixtures of Chelsea FC

99everestThis program makes a call to API (http://api.football-data.org/) and obtains data for fixtures of Chelsea FC for next 100 days in JSON format. This program parse the JSON in to Java object and display match details in console. I am looking for any possible improvements I could make to this progra...

 
@corsiKa Please take this off-topic discussion to BuffaloOverflow.stackexchange.com. — David Richerby yesterday
 
6:39 PM
0
Q: Convert reader to list of class

Silly VolleyClass Student { Int studentId, List<ClassB> Books, Bool IsPassed } Class Book { Int bookId, List<int> pages } I am creating a list of students the way below static void Main(string[] args) { var students = GetStudents(); var result = students.GroupBy(r => ...

 
6:55 PM
0
Q: how to prevent numbers from showing up in scientific notations?

user1950349We have a StreamBuffer class which is not inherited from std::ios_base (or some of it's derivatives such as std::ostream) so that I can use std::fixed operations and I am trying to prevent number showing up in scientific notations. With my below code some numbers are getting shown in scientific n...

 
Code reviews, style guides, and more code reviews. Of course, explaining how "cheating the system" caused technical debt and software that is hard to maintain is clearly the main challenge here. — Mats Petersson 53 secs ago
 
7:19 PM
We are prepping the Stack Overflow maintenance window now - we'll notify when ready to take the brief outage.
We are failong over services now, Stack Overflow and the rest of the network will be offline for about a minute.
 
7:47 PM
shoopsies... read-only
 
@CaptainObvious cat dog
 
8:07 PM
0
Q: First time working with OOP and prepare statements

KieronI have included all of my core files below. Can you please review them, and leave feedback (eg - improvements, fixes, etc). Thanks. dbc class (Database connection, functions, etc): <?php /** * class dbc * @package Core * */ // Sanity check. Does this class already exist? if(!class_exists('dbc'...

0
Q: `atof` implementation

stackptrI have implemented the atof function. Here is my implementation double atof(const char *str) { double a; /* the a value in a*10^b */ double decplace; /* number to divide by if decimal point is seen */ double b; /* The b value (exponent) in a*10^b */ int si...

 
8:33 PM
-2
Q: how to get number with Scanner? (from 0-100)

reza hassanii know how we write Scanner code like this: Scanner s=new Scanner(System.in); but I don't know how I can get a number with Scanner.... thank you so much

 
8:49 PM
@CaptainObvious So you actually don't know anything? Great.
@DanPantry I think that might be generated with some kind of AI...
 
Hmm, I think you might get better answers from codereview.stackexchange.com or programmers.stackexchange.comcubrr 59 secs ago
 
@CaptainObvious Wow, that's very very basic.
Exactly 3,900 rep, time to get a hundred more.
 
Ripe zombie; open question with answers, at least one answer having score 0, no answer having score > 0: Drawing faster than SlimDX?
 
9:08 PM
@j0h no, doing sudo is not a "linux thing" at all. sudo is not to be taken lightly. It's not meant to run commands willy-nilly. — janos ♦ 7 hours ago
+100 on that one, sudo is not a magic trick to make your worries go away.
2
 
@CaptainObvious This is.... what??
I don't..
 
 
1 hour later…
10:26 PM
@SimonForsberg not sure if you are around, but you could have some real fun with this question to Duga if you want :-)
 
Lol. That would be fun.
 
11:05 PM
Who writes a pagination like that
That's borderline masochistic
 
Your question is off-topic for Stack Overflow because there is no specific problem to be solved. Please post it on Code Review and delete this question on Stack Overflow. — 200_success 59 secs ago
I'm voting to close this question as off-topic because it is asking for a review of working code. Such questions belong on the Code Review Stack Exchange — Colonel Thirty Two 46 secs ago
To make a good Code Review question you'll need to add a short description of what problem your code is solving. Other than that, @ColonelThirtyTwo is right. — Mat's Mug 28 secs ago
 
11:54 PM
0
Q: C++ Template Binary Search Tree

between_linesI've been trying to improve my C++ skills as well as work on some general coding techniques so I've attempted to build my first binary search tree in C++ using templates. I've mostly done Java programming but have worked on some smaller C/C++ projects. There are three things that I'm most concern...

0
Q: Serializing and deserializing byte (or char) array

Dzung NguyenI implemented a Vigenere encoding and decoding class. Ideally, the program should be able to take any abritrary file, read into an array of byte, and decode it. import java.io.*; class VigenereFilterReader extends FilterReader { private final char[] key; private int i = 0; Vigenere...

0
Q: Implementation of immutable Maybe<T> monad

Pieter GeerkensI have developed the following implementation of an immutable struct Maybe monad for use in my game project; as an practical exposition on monads to present to my local User Group; and an a demonstration of the use of Static Code Analysis for verification in conjunction with TDD. I am interested ...

 

« first day (1016 days earlier)      last day (3018 days later) »