« first day (1836 days earlier)      last day (2182 days later) » 

12:00 AM
RELOAD! There are 5277 unanswered questions (90.0234% answered)
 
 
1 hour later…
1:01 AM
Probably more suited for codereview — CertainPerformance 13 secs ago
 
1:31 AM
0
Q: Playing Checkers

Dain Ironfoot IIIContinuing with my web-based checkers game, this question is about the actual playing system. I'll ask for a review on my UI system in the next post. First, my BoardController.cs. Note that I have references to a ComponentGenerator class here and in other files. I consider this part of the UI, a...

 
1:41 AM
@CaptainObvious Yeah! Another web-based game for me to play!
I played 200's asteroid game so many times :) It's fun.
10
A: Asteroids game clone

200_successWhen using HTML local storage, you should always check for the possibility of failure. Some possible failure modes are: Local storage is not supported by the browser Local storage is prohibited for that domain by policy The storage quota has been exceeded Therefore, instead of checking if(ty...

 
 
1 hour later…
2:58 AM
0
Q: Two versions of PDF-Selector

bryan konI have basically ended up with 2 versions of a PDF-Selector. Both versions do the same thing. I'm not sure which solution is better. Maybe someone could give me a code review. I use: PDFSharp-Nuget-Package, Visual Studio community 2017, Resharper My program takes 4 inputs: source path destina...

-3
Q: Java - Sine law, calculating side b using two angles and one side

Michael I Don't understand why it doesn't calculate bSide properly. Maybe I'm not using the Math.sin properly. Please help. import java.lang.Math; import java.util.Scanner; public class LabOne{ public static void main(String [] args){ Scanner input = new Scanner(System.in); System.out.prin...

0
Q: Type conversion between Node, Const_node, and their views

R zuEach node is a location within a layer. A Location may be a pointer or an index. A Layer is a container. There are 4 types of node per Layer and Location types: Node: Can change content of layer. Not a view of another node. Const_node: Cannot change content of layer. Not a view of another node...

 
3:49 AM
0
Q: Safely setting object properties with dot notation strings in JavaScript

DelightedD0DWhat my function does: Safely sets object properties with dot notation strings in JavaScript. That is to say, it allows setting a nested property on an object using a string such as "a.b.c". For example: set(obj, "a.b.c", value) would be equivalent to a.b.c = value Some notes on intended beh...

 
4:18 AM
Monking
 
Monking
 
4:34 AM
I'd love to do a review of this on Code Review if you provide more context. This isn't really appropriate for Stack Overflow though. — Carcigenicate 39 secs ago
 
5:19 AM
0
Q: Flashcard CLI app in Golang

45d7This is a simple flashcard app. With flags to control the sides of the flashcards (random by default; thanks to the default random iteration order of maps) and the number of flashcards in the session. All the flashcards without any input at the prompt, are deleted from the map. And ones with an ...

 
5:35 AM
0
Q: How to display the value of custom form in Django admin?

Hedayat HoshmandERRORS: in my terminal ERRORS: <class 'astana.admin.CustomUserAdmin'>: (admin.E108) The value of 'list_display[3]' refers to 'phone_number', which is not a call able, an attribute of 'CustomUserAdmin', or an attribute or method on 'auth.User'. Here is the custom model for students reg...

 
So your second piece of code already works? consider posting to Code Review, but remember to read their help center before asking. — user202729 54 secs ago
 
5:51 AM
0
Q: Laravel UserController Design

garjoka madafa<?php namespace App\Http\Controllers; use Illuminate\Http\Request; use App\User; use Auth; class ProfileController extends Controller { public function __construct() { $this->middleware('auth'); } public function index($id) { $user = User::find($id); ...

 
6:08 AM
0
Q: Protocol Oriented Design Pattern for Objective-C (MAVIC)

COOKIESHowdy my fellow Stack'ers, I've spent the last couple of weeks reiterating my design pattern concept and I'd love for some honest feedback. In short, it's an addition to the existing MVC pattern by simply isolating heavy operations in its own interactor class. Please feel free to check it out ...

 
7:00 AM
Monking
 
@user1762507 Could you post this on codereview.stackexchange.com ? — Gordon Gustafson just now
 
7:20 AM
If this code works, perhaps you might post this at CodeReview and ask for performance improvement suggestions. — mickmackusa 9 secs ago
@Buster Sorry for the mess in my answer, I wrote "yes" for "is this the smartest way to create a chart like that?", because in my mind I read "is there a smarter way...". So, the answer is no! Feel free to ask about this at Code Review, but please read their instructions first. — Gerardo Furtado 5 secs ago
 
0
Q: Best approach to open and parse a file from an FTP (Rails, Sidekiq, SFTP)?

user984621We have a shared FTP with our business partner. The partner sends there text files containing information about orders. On our side, we run every hour (CRON) a rake task that will connect to the FTP (we're using SFTP), then in a loop we list all the files, open one after another one, extract th...

 
Monking
 
7:35 AM
Monking.
@DainIronfootIII I'm still getting a 502.5
 
@mickmackusa added to codereview too — OzZie 55 secs ago
 
0
Q: Custom PHP platform PRODUCT FILTERS

OzZieI've got a situation where, on a custom php online shop, i need to create color and size filters. So i've made em like: if($filtreGrupCulori) { $filtreGrupCuloriPREPARE = array(); foreach ($filtreGrupCulori as $value) { ...

 
7:58 AM
Monking
 
Monking!
 
@CaptainObvious Should we change the tags to instead of ?
 
8:33 AM
@CaptainObvious def tempurature(self):?
Tempura (天ぷらor天麩羅, tenpura, [tẽ̞mpɯᵝra]) is Japanese dish usually consisting of seafood or vegetables that have been battered and deep fried. The dish was influenced by fritter-cooking techniques introduced by Portuguese residing in Nagasaki in the 16th century, and the name "tempura" relates to that origin. == Preparation == === Batter === A light batter is made of cold water (sometimes sparkling water is used to keep the batter light) and soft wheat flour (cake, pastry or all-purpose flour). Eggs, baking soda or baking powder, starch, oil, and/or spices may also be added. Tempura batt...
I’m confused
 
0
Q: An input field with two select boxes to filter a list using JavaScript

Usman AliI need some help to remove a glitch from my code. So, I have this webpage on with there is a list which actually represents publications. So far, I have created a working input field for searching the list and the two select boxes too. But, there was a problem, each element had its own function ...

 
@MathiasEttinger Either Python-3 or web-scraping as it has beautifulsoup... hard call I guess
 
@Peilonrayz Yes maybe I should left a comment instead.
 
8:49 AM
I'm confused, I don't see an edit or a comment. What do you mean?
 
That I’m trying to word my thoughts, back it up with links and post a comment in the near future so the OP will take the decision themselves.
 
That makes sense, is better than what I'd do too
 
9:09 AM
0
Q: How to install Intraweb in Delphi Intraweb Component from Atozed

Munkhdelger TumenbayarI have no clue about how to install ssl in intraweb. So far i downloaded openSSL for use maybe. Is here anyone know about how to install SSL in Intraweb

 
@CaptainObvious Please, burn
 
 
1 hour later…
10:15 AM
0
Q: Is it fine to use my domain model as DTO (Entity Framework Core)?

KonradI was reading about anemic data models and rich domain models in DDD. I don't want to follow DDD completely but take rather pragmatic approach and just take some concepts out of it because clean ddd seems like an overkill. What I'm building is Web API (using ASP.NET Core and Entity Framework Core...

0
Q: Announcement Manager

DecoI'm looking to create a class that will display a template pop-up to the user to alert them to new features/updates and when their calendar isn't synchronised correctly. I'd like to do this in a manner that makes this reusable for other projects, and fully testable. This is the code so far: /...

 
 
1 hour later…
11:19 AM
Any opinions on the latest edit (revision #4) at codereview.stackexchange.com/posts/169841/revisions? In addition to grammar fixes, Toby removed the TeX markup, apparently because it is not rendered in his browser (Iceweasel).
Perhaps somebody can help him with that problem, I do not have any experience with Iceweasel.
 
Iceweasel is not supported.
SE explicitly only supports the topX browsers by visitors to the site
176
Q: Which browsers are officially supported, and what else do I need?

EarlzWhich browsers are officially supported by Stack Exchange? Also, what else is needed in order to use every feature of the site? Return to FAQ index

If TeX is not displayed in Iceweasel that's (harshly speaking) Toby's problem..
 
And should the changes be reverted? (I do not want to start an edit war :)
 
I'd revert the TeX removal, but keep the grammar fixes ...
 
Also the TeX markup was not present in the original question but added later, so I wonder if it is worth changing it again.
 
TeX usually is at least useful to properly render maths.
Though stuff like <= should be replaced by the more appropriate ` \leq`
 
11:24 AM
0
Q: Range selection according to variable

OXXOIs it possible to update the code to get the desired output files from the input list. I called variable to the first column. Code awk ' function printrange() { print start (start == last ? "" : "-" last) } NR == 1 {start=last=$1; next} $1 == last+1 {last=$1; next} {printrange...

 
@Vogel612 Indeed. – Thanks for your response. I'll wait a bit if more feedback comes in, and do the changes later.
 
hmm ... I've just gone through and fixed them.
 
Even better :)
 
possible answer invalidation by Konrad on question by Konrad: codereview.stackexchange.com/posts/194354/revisions
 
11:41 AM
Please paste your view / html code and be more specific in asking your query. Please go through the following :- stackoverflow.com/questions/22714286/… and codereview.stackexchange.com/questions/59670/…Mayank Parnami 1 min ago
 
12:00 PM
possible answer invalidation by Konrad on question by Konrad: codereview.stackexchange.com/posts/194354/revisions
 
@Duga no invalidation, luckily
 
12:20 PM
possible answer invalidation by Konrad on question by Konrad: codereview.stackexchange.com/posts/194354/revisions
 
12:55 PM
monking!
 
1:10 PM
I'm voting to close this question as off-topic because I'm going to move it. To. Code review stack exchange — user1762507 just now
 
0
Q: Panda dataframe: efficiently compute conditionnal median

RomainI am new to Python/Pandas. Consider the following code: import pandas as pd import numpy as np df = pd.DataFrame({'Time': [0.0, 1.0, 2.0, 0.0, 1.0, 2.0, 0.0, 2.0, 0.0, 1.0, 2.0], 'Id': [1, 1, 1, 2, 2, 2, 3, 3, 4, 4, 4], 'A': [10, 15, np.NaN, 11, 16, 25, 10,...

 
1:36 PM
 
1:58 PM
You should post this on Code Review SE. Avoid cross posting and broad introduction. — Ron 21 secs ago
I'm voting to close this question as off-topic because it should be asked over at CodeReview.SE. — hlt 1 min ago
@konrad Yes a hybrid approach is fine too and I vaguely mention this within the code. But create a convention on when to use DTO and when a domain model with your team so everyone follows the same approach. Do code reviews to ensure everyone adheres to the design. To your next comment, if they look identical, then it means the code which belongs in ViewModel or domain model is written somewhere else. It is a big flag and requires your attention. — CodingYoshi 1 min ago
 
2:52 PM
Monking
 
Greetings, Programs.
 
Greetings, User
 
0
Q: Python 3 adventure game in modules

phrazzledI have been learning Python 3 for about a year now. I have been looking for a project to do instead of just going through tutorials and completing some Code Wars challenges. One website suggested that a text game would be something good to work on. So, I tried to come up with a story line and did...

 
3:29 PM
0
Q: Some guidance on C++ Development

ProfounDisputesI am trying to gain experience to land a Software Engineering position. I had to take a test recently after a job interview and some of the questions pertained to program development. At this point I realized that I don't have any real understanding of the process of software development, I just ...

 
@Mast You are a masochist.
 
@Mast me neither; the photo of the bike associated with the urban bicycles is my city
 
3:46 PM
0
Q: Luhn Algorithm generating check digit Openedge / Progress

GGooseI have the following procedure for generating a card check digit based on the Luhn Algorithm. However it seems to be generating the wrong check digit, possibly not doubling the alternate values as required. Can anyone advise the correct code. PROCEDURE pr-check-digit: DEF INPUT PARAMETER ip...

0
Q: Jquery simplify form validation with function

John BeasleyI wasn't sure if I should ask this question on StackOverflow or CodeReview. In Jquery, I have been reluctant to create a better form validation, and I feel the time has come for me to do so. With that said, I have been using this particular type of form validation below, and I would like to si...

 
who created that translator, was that you @202_accepted?
oh sure, I found it. nevermind
 
Yeah
 
I finally found it after I post that in chat....lol
I am in a Spanish chatroom and was thinking it would be nice to be able to translate what I can't remember....lol
 
4:01 PM
Heh, that's what it's for. :)
 
0
Q: Determine file provider based on column headers, replace columns and process data

chris dornI am using Python 3.6 on Windows. Each day I receive files from different customers relaying the same information, but the customers use proprietary formats. For example, Customer1Data = {'User':['BobJones','BobJones','BobJones'], 'UserSong':['Song1','Song2','Song3'], 'UserSplit':[0.50,0.25,0.5...

 
4:16 PM
Monking
 
1
Q: Basic C++ IOT Weather Station

XanderI am making an IOT weather station based on a particle photon that sends data via webhook to one of my other projects. I am very new to c++ and programming in general. What can I do better with my code? What can be optimised? And what are industry best practices that I can put into place? Her...

0
Q: Pascal's Triangle - Remove hack

CarcigenicateI had a thought last night on how I could easily write a Pascal's Triangle generator basically just using partition and map. I tried writing it this morning, and it got slightly more complicated than I originally thought it would, although it's still pretty nice. My main concern is the wrap "hac...

0
Q: numbers to words 99999 JAVA

mazhie//i need to make it up to 99999 ninety nine thousand nine hundred ninety nine package javaapplication31; import java.util.Scanner; public class JavaApplication31 { public static void main(String[] args) { int number = 0; Scanner scanner = new Scanner(System.in); System.out...

 
4:34 PM
@178865 It would cause confusion if it did exist, so let's not invent it. — Nigel J yesterday
Discussing inventing words in English.SE.
 
0
Q: Listview problem ,Need help from thailand

Galahadfirst thank you for reading this, my problems is my autonumber in textbox(txt_sdnumber) it doesn't change or update after i click add button( btn_add) on screen but it work find when i click save button (btn_save) it generate autonumber into sql server and update the max value number on text...

0
Q: 3D 1st Person Snake Game #2

FreezePhoenixThis is an iterative review of this question: 3D 1st Person Snake Game Here is a snippet of the code: <html> <style> canvas{ position:fixed; left:0; top:0; width:99%; height:99%; } * { padding:0px; margin:0px } #score,#speed,#h...

 
@CaptainObvious JAVA!!!!
 
4:53 PM
You may have better luck on CodeReview instead of here. — Patrick Mevzek 31 secs ago
Probably better suited for codereview.stackexchange.com . — Andrey Tyukin 21 secs ago
 
0
Q: Find the missing number and repeated number

Latika AgarwalI am practising interview questions from here. Problem : You are given a read only array of n integers from 1 to n. Each integer appears exactly once except A which appears twice and B which is missing. Return A and B such that output A should precede B. My approach : Sum(Natural numbe...

-1
Q: What are your favourite programming puns?

THEGreatGatsbyI need more for my repertoire. Any computer,programming tech pins will be accepted. #titanic { float: none;

0
Q: JSON username and password validation

EloteI am new to HTML/Javascript and am trying to create a very basic (not secure) username and password verifier for a project. Here: https://api.myjson.com/bins/myl0u is the JSON file I am extracting the data from and here is the code I have: $http({ method: "GET", url: $scope.userDataURL }...

 
This question belongs on another site in the Stack Exchange network ( codereview.stackexchange.com ). — Andrey Tyukin 17 secs ago
I'm voting to close this question as off-topic because this question is a better fit for Code Review SE! — Am_I_Helpful 12 secs ago
@Am_I_Helpful It is okay 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 usersSam Onela 40 secs ago
Maybe post the code and put this problem on code review? No optimization can be done without seeing the problem first. — Sean just now
 
 
1 hour later…
6:04 PM
0
Q: C++ console calculator.Takes a string as input( like: 2+3*4-1+3) and outputs the result

sneakysnakeI am a beginner programmer(solo learning). I know the basics of c/c++, but I would not consider myself too experienced. Recently I decided to make this calculator which takes an array of characters as input and then decodes the operations. I would like to know if I can improve it in any way and a...

0
Q: Hex string to byte array in the defined order

PeterJ_01Here is the function to convert hex string to byte array in the defined order. Any improvements? #define CHECKINVALID 0 size_t FromHex(const char *dump, void *buff, int order) // order: 1 - normal, -1 reverse { uint8_t *cpos; char *digit; int cnibble; size_t len = 0; #if (CHECKI...

 
6:22 PM
-1
Q: Could such broadcast be faster?

YuanI have a lot of loops. In the deepest loop, there are some broadcast of an array to the other: ij_k1[0:N_k,0:N_k,0:N_k] = ij_k[0:N_k,0:N_k,0:N_k] How to optimize this to make it efficient since N_k would be up to 50?

 
7:00 PM
0
Q: Refactoring .NET Data Access Object

Ctznkane525I have a class that has two methods that expose public Oracle Managed references. Understanding that's not good, I want to undo that for existing applications, but that's not easy to do. Public DatabaseConnection As OracleConnection Public DatabaseTransaction As OracleTransaction Some informa...

 
@CaptainObvious lolwat
 
7:16 PM
0
Q: Weighted Probability in Go

TurtleI was recently tasked a programming assignment with a prospective company, unfortunately I didn't pass the assignment and didn't receive any feedback on what I could have done better. I would appreciate any and all feedback on how I could make the program below better. Task: Write a class or mo...

 
@Phrancis I know... I kinda wanted to see what responses would come, but then I realized I could just search the web
 
Monking
 
@Heslacher Monking!
 
7:39 PM
@CaptainObvious one more vtc
hey @DainIronfootIII
 
Good that at least you kept your avatar ;-)
 
Changed it back last night :)
Just waiting to reclaim my name.
 
If need be I think a moderator can bypass the wait period
 
Is it that important?
 
7:48 PM
In the future, however, please consider taking a look at codereview.stackexchange.com for any questions regarding code quality. They're far more geared toward the open-ended discussions of code structure and best practices and are more dedicated to questions like this one :) — B. Fleming 54 secs ago
 
8:03 PM
Code review String.valueOf() is unnecessary if there is "," already... — Xenolion 34 secs ago
 
1
Q: Coin Change Algorithm - coding challenge

ShivamRecently I came across a coding problem where I have to find the least positive value which is not possible to make using the coins present in the coin denomination array(array values can be used only once). suppose that if the input is 3 5 7, the answer is 1 if the input is 1 2 4, the answer i...

The code in this question has been updated and does now work correctly, as far as I can see. One vote is missing to reopen the question.
 
@MartinR done
 
8:22 PM
@SamOnela Thank you.
 
0
Q: PHP Iterate over Child's Child Efficiently

user3783243I have this code: foreach($list as $id => $item_array) { if (($item_array['approved'] == 1) || $is_admin) { include('item.php'); } $temp = $item_array; while(!empty($temp['child'])) { foreach($temp['child'] as $id => $item_array) { if (($item_array['ap...

 
8:39 PM
@MartinR Nice answer on there :)
 
@Phrancis Thank you. – I had prepared the review earlier, hoping that the (simple) error in the code would be fixed eventually. I did not write that answer within 3 minutes after the question was reopened :)
 
9:03 PM
This is a better question for codereview.stackexchange.comPygasm 52 secs ago
 
9:19 PM
0
Q: Synchronously waiting for asynchronous method

alexhuangFirst let me prefix that I understand that blocking on async code is not ideal. I have a legacy project that I inherited so I am trying to avoid major code refactors. Each method I list below perform additional operations that I cut out for brevity, but those additional operations are the reaso...

 
9:41 PM
@MartinR Voted to reopen, but also downvoted the question. It looks like it's an ongoing interview screening test, which makes it morally questionable.
 
@MartinR if that complexity claim is correct I'm rather astonished they managed to do that...
 
@CaptainObvious only code fragments which look like example code
 
-1
Q: Arduino Tutorials and books

WhiperCan anybody tell me the site where I can get the best pdf tutorials for arduino? I have tried my best but I can't see them.

-1
Q: Checking if a number is a power of 2 without loops

sneakysnakeI made a short program which checks if a number is a power of 2 without using any loops. The idea: A number which is a power of 2 must have only one bit "1" ( ex: 8= 1000, 4=100 and so on). Suppose we have a power of 2:nr = 10...000 (in binary), if we subtract 1 we will get something like this:n...

 
9:58 PM
TTGTB
 
10:11 PM
1
Q: Implementing parser combinators in a functional manner

user1762507I am just starting on my journey of learning clojure(I have just read to the end of chapter 3 in clojure for the brave and true). So for practice, I wrote some parser combinator functions. I am quite familiar with several imperative and object oriented languages, but this is my first time using a...

 
10:45 PM
0
Q: A program that spells a given number [1-999999999999]

Aditya GargThis program created by me spells a number in the standard notation. (Billions, Millions etc). I was wondering if there is a better way to do the same thing, or if I have been a victim of some of the bad practices in this language. I am fairly new to python and have only been learning it for th...

 
11:12 PM
@CaptainObvious That's some ugly Lisp right there
; parser that applys a function to the result of another parser
(defn func [p0 f]
  (fn [stream]
    ((fn [res]
       (list (f (nth res 0)) (nth res 1))
       ) (p0 stream))
    )
  )
dat indentation...
 
11:53 PM
0
Q: 3D 1st Person Snake Game #3

FreezePhoenixFinal iteration of an iterative review. The previous iteration is here: 3D 1st Person Snake Game #2 Here is the snippet: <html> <head> <style> canvas{ position:fixed; left:0; top:0; width:99%; height:99%; } * { padding:0...

 

« first day (1836 days earlier)      last day (2182 days later) »