« first day (2274 days earlier)      last day (2041 days later) » 

00:00
RELOAD! There are 6289 unanswered questions (89.7010% answered)
 
2 hours later…
02:20
possible answer invalidation by Ahmed AU on question by Ahmed AU: codereview.stackexchange.com/posts/224874/revisions
 
1 hour later…
03:36
0
Q: Algorithm for Late and Overtime in PHP

RubicsHello guys can somebody help me refractor my code? I don't have any idea on how to use Object oriented. This is part of Link. $punch_in = "2019-07-01 07:16:00"; $punch_out = "2019-07-01 18:00:00"; $in_threshold = "2019-07-01 08:15:00"; $out_threshold = "2019-07-01 17:15:00"; $exact_in_thresho...

0
Q: Is it possible to choose video URL from internet or local file and play it on another page that already opened?

Sena DwijaI have case that I want in the first page I can choose the video URL or source from the local file by using form, and after I submit the form, it will pass the variable that contain URL or Source and call the function on another page so the video will playing on the second page. I've tried pass v...

03:50
possible answer invalidation by user82039 on question by user82039: codereview.stackexchange.com/posts/224385/revisions
04:17
0
Q: For loop improvement in image interpolation

LinI have written a bilinear interpolant, is working moderately well except that is painfuly slow. How can rewrite the code to make it faster (using opencv directly isn't a valid answer). The snippet is below: import numpy as np import numpy.linalg as la import matplotlib import matplotlib.pyplot a...

04:37
1
Q: GLSL Shader that displays a Rotating Rainbow Ring

RoyI'm learning GLSL shaders on Book of Shaders and I decided to mess around with one of the examples. I wanted to see, whats a more efficient way to calculate to mask out the color? #ifdef GL_ES precision mediump float; #endif #define TWO_PI 6.28318530718 uniform vec2 u_resolution; uniform float...

1
Q: Quaternion and Vector3 transfomation Math

FlamesWillBursthi I have made and AI for my enemies which works perfectly but a particular section of code is repetitive and I feel that it can be optimised void ChangeDirection() { if (movement == Vector3.left) transformModel.rotation = Quaternion.Euler(0, 270, 0); else if (mov...

Monking
@Duga rolled back
 
1 hour later…
06:09
Monking
Beyond that, since your code works, this might be a better fit for codereview.stackexchange.com. See codereview.stackexchange.com/help/on-topic: If you have a working piece of code from your project and are looking for open-ended feedback in the following areas: ... Performance … then you are in the right place!dbc 59 secs ago
I'm voting to close this question as off-topic because this question fits best on codereview.stackexchange.com, since the code currently already works correctly. — dbc 37 secs ago
0
Q: Student Attendance in PHP

RubicsHello guys can somebody help me refractor my code? I don't have any idea on how to use Object oriented. $punch_in = "2019-07-01 07:16:00"; $punch_out = "2019-07-01 18:00:00"; $in_threshold = "2019-07-01 08:15:00"; $out_threshold = "2019-07-01 17:15:00"; $exact_in_threshold = "2019-07-01 08:00:...

06:56
0
Q: Functional / Declarative FizzBuzz

Andre OI spent some time today trying to write FizzBuzz in a functional/declarative style. I thought it would be a good chance to get some feedback on it since I've been doing functional programming for about a year now. (I know there are some similar questions asked here before, but their approach to ...

This question belongs to Code review — Mikku 18 secs ago
07:36
0
Q: Macro for transforming 2 way matrix into 1 way matrix

AlbertI have written some code that transforms 2 way matrices into 1 way matrices. Although it's comfortable to use, it's very sluggish and slow in execution. Does anyone have any idea how to improve the performance? I'm aware that the same transformation can be done with standard formulas, but solely ...

08:16
0
Q: Wiki Link Mapper- A webcrawler which crawls links recursively and prints them into a graph

Hardik Mehtahttps://github.com/HardikM1999/WikiLinkMapper I would like some suggestions on how to make it better and also if any features that i should add to this Script. I am using beautifulsoup,requests for scraping and networkx for plotting the graph. import requests from bs4 import BeautifulSoup impo...

08:55
0
Q: How can I refactor my Angular component so that I am using switchMap instead of chaining multiple subscriptions?

Jake12342134I'm making use of RxJS and observables within my Angular application to process the results of API calls and process data. I've written the component and it works without any issues. However after further research into RxJS and observables I've became aware that the way in which I am using subscr...

09:15
0
Q: Check differences between dates

Bas Veldenthe website I'm developing allows customers to book an appointment. They can also cancel their appointment with the following rules: if the appointment is cancelled between 48 hours and 1 hour in advance, the customer has to pay 50%. if the appointment is cancelled below 1 hour in advance, the ...

Need to know which Rule Engine I should go for may have something for you. There are also questions on Rule Engine Pattern over at Code Review. — Filburt 58 secs ago
10:25
possible answer invalidation by SCool on question by SCool: codereview.stackexchange.com/posts/224900/revisions
10:44
@Duga Rolled back
10:55
-1
Q: Java program error

Vaibhav BishtHey am a noob and am trying to solve a problem at hackerEarth now in testcases inputs are big enough like num = 100000 and query = 10000 https://www.hackerearth.com/practice/data-structures/arrays/1-d/practice-problems/algorithm/range-query-2/ please check this link if you don't understand my...

0
Q: Efficient matching and branching structure for url routing

HelloWorldThe idea is not match for /orders and then match again for /products and vice versa. if(request.getPathInfo().matches("/users/(.*)")) { Matcher matcher = Pattern.compile("/users/(.*)").matcher(request.getPathInfo()); if (matcher.find()) { System.out.println(matcher.group(1)); ...

@CaptainObvious broken
11:35
@Heslacher now I'm really confused; that link in my answer doesn't say much about zombies, but the Meta post actually about zombies appeared after my answer... either I've forgotten how time works, or... I don't know, but it's mildly disturbing. I do at least understand your comment now, so that's progress of sorts.
11:54
1
Q: Print sums of all subsets

Gaurav SinghPrint sums of all subsets of a given set Problem summary : Print all subset sums of a given set of integers My approach is to store previous results and use them to calculate new (similar idea as DP). SubsetSum.cpp #include<iostream> #include<vector> //using namespace std; bool isPowerOf2 ...

12:13
Hi there Eva. This kind of question I think would be better asked on Code Review. This appears to be a question about code quality and not about a specific problem. — Mike - SMT 59 secs ago
12:29
@YvetteColomb @RobertHarvey Also a good migration candidate: stackoverflow.com/q/57219363/1310566
@Duga ^^
12:46
Zombie down:
3
5
A: Markdown Display in WPF

Peter Taylor <RichTextBox x:Class="MarkdownViewer.MarkdownBox" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x...

@23fc9a62-56de-47fb-97b4-737890 what a name-change
We were discussing unique identifiers and SSNs in the Rubberduck room.
I said nobody wanted to memorize a guid, and changed my name to prove it :D
Reminds me of a Stack Exchange april fool's joke a couple of years back. All the names appeared different.
there was something like that?
I only remember the bug with android app site joining pushing your user-account into a limbo with a GUID as display name
13:06
Eva, I have an answer for you if you would ask this question on Code Review. — Mike - SMT 42 secs ago
@Vogel612 Apparently everyone was Rebecca Chernoff once:
48
Q: We're all Rebecca Chernoff \o/

Yi JiangOn this frabjous day, our community manager Rebecca Chernoff has graciously allowed all of us *1 to be her for one day, and one day only. And so, ladies and gentlemen, let me present to you: We're all Rebecca Chernoff \o/ A userscript dedicated to making all of you Rebecca Chernoffs. Reall...

oooohhh cool :)
0
Q: Symmetries of Triangle Python Turtle

RobinI made a program to explore the symmetries of an equilateral triangle using Python and Turtle Graphics. It's formatted using Black Playground. As usual, my goal is to be writing "code that doesn't suck." What do I need to to to achieve that goal is this instance please? I'm guessing some repeti...

That's not what I'm thinking of though, maybe it was something related to the unicoins meta.stackexchange.com/questions/tagged/unicoins , or it was just some bug that appeared some time
Greetings, Programs.
14:13
You ar ebeing watched, @Donald.McLean ...
This is off-topic here I'm afraid, for specific cases (as opposed to whole-application) questions see codereview.stackexchange.com/help/on-topicAlex K. 29 secs ago
@rolfl Oh, those were the days...
... the days of Summer?
I'm still watching some episodes every now and then, most recently watched some from Season 2
Oct 3 '14 at 22:29, by rolfl
@Simon - POI, worth it?
yeah, we binge watched ... it's the sort of show I should go back to ...
14:24
Speaking of binge watching... have you seen Chernobyl? If not, watch it. Only 5 episodes, takes ~5 hours.
Out of interest, civilian life working out for you? I am sure if you asked we could restore the diamond ;-)
@rolfl I've been going back to POI multiple times. Watching an episode every now and then, re-watched everything a few times too.
@rolfl Yeah it's working well, it feels good to not have the diamond actually :)
Well, I have time for slacking today, because there's no slacking:
I might want the diamond back in a few years, but not now
@rolfl #WorksOnMyMachine
Very useful message:
Some people may be having an issue with Slack. We’re currently investigating and will have more information shortly. Thank you for your patience.

Jul 26, 10:07 AM EDT
14:34
This question is more relevant for this community: codereview.stackexchange.combgura 25 secs ago
@SimonForsberg it does change your mindset, doesn't it? :)
This has nothing related to code review, in fact there is no code here !! — JavaHead 40 secs ago
@Vogel612 It's suddenly so much more fun to flag things :P
5
But I'll probably not be this active all the time.
15:26
If you believe that the code works correctly, consider presenting your work (with its unit tests) in a more-complete fashion over at Code Review. You'll likely get some suggestions on making it more efficient, easier to read, and better tested. Before you do that, make sure to read A guide to Code Review for Stack Overflow users first, as some things are done differently over there - e.g. question titles should simply say what the code does, as the question is always, "How can I improve this?". — Toby Speight 48 secs ago
15:53
-1
Q: Design Parking Lot - Working Code Python

pratikjain227Please review the Python Code for Parking Lot. The requirements are basic like for a usual Parking Lot. Kindly check the code quality on various measures. Also, check from the functionality perspective and if something could have been done better. Thanks. from datetime import datetime import t...

Monking
16:18
@SimonForsberg yep, Robert migreated it
16:50
-1
Q: Seeking peer advice on large VBA Program

Chris LafkyGood morning all - I have written a fairly large VBA program for work and I am looking for a few experienced vba coders who would be willing to take 30 minutes to an hour out of their day to look through the entire file and give me some pointers on the things I would like to do going forward, as ...

17:12
0
Q: (General) Finds the pipe fittings needed for a specified input angle

SlamJammingtonI'm new to PHP, and I wrote this script as a bit of practice. It's a tool for engineers to find out what fittings are needed to reach a certain angle of a turn, provided they have access to 8°, 11.25°, 22.5°, 45°, and 90° fittings. To prevent problems with null inputs, "pipemain.php" is ran first...

17:52
0
Q: Quadtree implementation in Rust

Sergo LongidTo teach myself Rust, i implemented simple Quadtree over 2d Point with insert, delete, contain function. So.. my code seems to me not "idiomatic rust code" also i think it not so fast. Help me write more elegant and fast version! P.S I'm add 2 test: 1.simple test for check code work test t...

18:23
This is what Code Review does, Stack Overflow is better suited for specific Q&A. If you do post on CR, please note the title of the post should summarize the purpose of the code, and the body of the post should describe what's going on and why. — Mathieu Guindon 16 secs ago
18:49
If you post on Code Review, please indicate where FORMATSHEETS comes from, too. That's a mystery in the code posted. — FreeMan 38 secs ago
0
Q: Implement The Singleton Pattern Swift

NinjaDeveloperI am creating an iOS app and I want to implement Singleton Pattern. I have created "Singleton" LibraryAPI to act as an entry point UserManager object to get data from web API. after that I used a facade Pattern "method" to call UserManager implementation. final class LibraryAPI { static let...

19:11
-1
Q: Best C# implementation of IndexOfAny(string, params string[])

NetMage.Net provides String.IndexOfAny(string, char[]) but not String.IndexOfAny(string, string[]). The simplest implementation (using LINQ) isn't particularly efficient: public static int IndexOfAny1(this string s, params string[] targets) => targets.Select(t => s.IndexOf(t)).Where(p => p >= 0).D...

19:31
0
Q: Algorithm X implementation for Minimum Dominating Set

alemst11As as final project for a MOOC I wanted to write a program that finds the exact cover set/minimum dominating set from the given social network data. So I did end up with writing this. I kinda followed this algorithm.(https://www.geeksforgeeks.org/exact-cover-problem-algorithm-x-set-1/) I did tes...

19:51
0
Q: Collecting data into objects and POSTing to 3rd Party API

booI have a semi-working project currently and am wondering if I am doing this the wrong way or if there is a more efficient. I will try to be as general as possible as to keep the point concise. Any tips, suggestions, articles, ideas, etc. that you have will help me greatly. I am a one man show ...

0
Q: Move last element of the Linked List to Front

Dheeraj MahraHelp I have written a function which moves the last element of the linked list to front and returns the linked list. Suppose, Linked List : 3 -> 2 -> 1 -> x Output after executing change_order function: 1 - > 3 -> 2 -> x But my output is 3 -> 2 -> x Note: If I make change_orde...

20:11
0
Q: Bulk File Rename

Tony JA function that funnels all filenames into a file and opens that file in vim. The user then changes the names, saves, and quits. Finally the function renames the files in the folder with the new names provided in the file. bulkrename() { mkdir -p ~/.temp ls > ~/.temp/newfilenames && nvi...

20:52
0
Q: F# async and coding style

Ehouarn PerretI am working on an iban api which is about saving the iban of some members after(iban validation) in a database. The code is split between Domain (entities, behaviour for iban validation), Database and its access (new member, retrieval, etc.). I am looking for feedbacks about the async code and ...

0
Q: Python Assignment : Investment

python_2I recently started coding in Python and it is bit difficult. For my assignment I have to calculate how many years the user will reach a million dollars. The user input how much they want to invest each year, and their interest rate. This is the code I have so far.... invest = int(input("How much...

21:24
Afternoon
0
Q: Rules-based tuple-rewriting language, with example IF game

user11536834I've been working on a minimalist DSL for authoring interactive fiction, and would love to get it reviewed. I'm more interested in getting feedback on the language itself, and any ideas for improving it, but of course feedback on the implementation is also welcome. The project is tentatively ent...

@RMunroe Inbox zero is a ridiculous idea.
21:48
Duga is offline. I have no internet connection
22:12
The magic of the internet.... you can post to the internet when you have no internet ;-)
I was reading a time travel story and the main character complained about being in the era of dial-up internet.

« first day (2274 days earlier)      last day (2041 days later) »