« first day (1814 days earlier)      last day (2202 days later) » 

12:00 AM
RELOAD! There are 5242 unanswered questions (90.0120% answered)
 
12:40 AM
NVM, creative use of the glyphicons library helped.
You'd never think to use "retweet" as a "flip orientation", would you?
Or to use "share-alt" with a CSS transformation as "undo".
 
1:12 AM
0
Q: My implementation of repository pattern in Laravel 5.6

Latheesan<?php namespace App\Repositories; use App\Contracts\{ CompanyInterface, ImageUploaderInterface }; use App\Models\Company; use Illuminate\Support\Facades\Auth; class CompanyRepository implements CompanyInterface { protected $imageUploaderRepository; public function __construct(...

 
1:48 AM
 
2:24 AM
0
Q: Solving Sierpinski Triangle in Haskell

dhuI am a Haskell beginner with a background in C++ and Python. I have been teaching myself Haskell for about half a year on and off and recently I started doing Hackerrank problems to improve my Haskell muscle. Sometimes I found myself struggling with problems that would be solved fairly easily wit...

 
3:14 AM
So, does the code work? Your question is unclear. If your code has a problem, you need to detail the problem. If it works fine as is, you might be looking for Code Review SE. You seem to be ignoring numbers, which you should mention in your input — Tas 53 secs ago
 
3:30 AM
0
Q: Can you show me how to apply a specific strategy to my working code to improve it

RaystafarianAs brought up here, I'm not sure when the last time we (as a site) discussed how to determine if questions are on- or off- topic. A lot of questions currently fails the "any or all facets of the code" and yet are not closed. How does this question differ from "How can I make this code mor...

 
3:45 AM
0
Q: Chutes and Ladders using Python

Kirstin MinerI need to create a modified version of the game "Snakes and Ladders". It is supposed to be a text-based game only. I find this concept overwhelming and am unsure where to begin. More specifically, how to track where a person is in the game using the number on the dice and where they currently are...

 
3:57 AM
If you are looking of for a code review of your program I don't think this is the right forum for you. If you have a specific question please change your post accordingly. — Nikhil 7 secs ago
Goto CodeReviews.StackExchange.com, closing this. — Jeremy Thompson just now
Need option to move questions to CodeReview — Jeremy Thompson 27 secs ago
 
4:23 AM
thanks guys, appologies for posting this in the wrong area. will move to CodeReviews.StackExchange.com — Dylan James 8 secs ago
 
0
Q: Convert a List to nested List

osman RahimiI have this model: public class ConversationDto { public int WorkOrderId { get; set; } public int NotificationId { get; set; } public string NotificationTitle { get; set; } public int SenderId { get; set; } public int RecipientId { get; set; } public string MessageId ...

 
5:01 AM
0
Q: C# unit handler

Dylan JamesI am a self taught programmer and i'm looking to improve my style. I've been writing programs using the Autodesk Revit API and i've descided to take it a step further and started writing windows forms applications to help with my day-to day tasks. The Program is written in C#. See here for my G...

 
5:22 AM
0
Q: Add objects list using arraylist

MVBIs there an efficient way to add all the Event objects in single add statement, instead of separate add statement for each object added? public class Solution { public static void main(String[] args) { ArrayList<Event> eventList = new ArrayList<Event>(); eventList.add(new Event("Staff...

 
Should be moved to code review. Flagged as such. — Cheers and hth. - Alf 30 secs ago
@StephenNewell: code review is only for code that works. — Mat 29 secs ago
 
5:56 AM
0
Q: Call a method from all GameObjects implementing a specific interface in Unity

Question3rmy player has a gun with 3 bullets. If he runs out of ammo the scene should reset itself. I don't want to load the scene again, some components should reset themselves by using an interface. So my observer class keeps track of the bullets and when there is nothing "active" anymore it should rese...

 
6:13 AM
0
Q: pancake sort interview with python

NinjaGI got asked this question during my interview. You can find information about this question here: https://en.wikipedia.org/wiki/Pancake_sorting Pancake Sort Given an array of integers arr: Write a function flip(arr, k) that reverses the order of the first k elements in the array arr. Write a f...

 
6:54 AM
@CaptainObvious findMaxUpTo is copied from a gist, the previous question was a blatant copy of the same gist.
 
I'm voting to close this question as off-topic because questions seeking for better options are too broad and opinion-based. You may be able to get help on Code Review. — xskxzr 18 secs ago
 
7:14 AM
To anyone voting to re-open this question: don't. It has been duplicated here, one of both should be closed as a duplicate. — Mast 15 secs ago
Which should go, the original that's currently closed or the new one about to get closed?
Or both...
 
We should ask the garbage collector.
2
To be honest, OP should cut losses and delete the -5 question.
 
7:30 AM
-1
Q: Sum of Array Performace

Sandeep ThakerThere is an integer array defined. To get the sum of all elements we used to iterate through an array and get the sum. int arr[] = {5,2,6,3,7,9,12}; int sum=0; for(int i=0;i<arr.length;i++){ sum+=arr[i]; } Is there any alternative in java 7 to get the sum without iterating each elements of...

-1
Q: Abridgment VB.NET Code

Jada Developeri would like to know if someone could do an Abridgment for this code : This is the output results : Moneyresultsell.text = 98524232 SellCopper = 32 -- last 2 numbers SellSilver = 42 -- numbers after the 2 last numbers SellGold = 9852 -- other numbers after 4 last numbers My Code works good ...

 
@Zeta Yup.
Just nuke the old one.
Does anyone know how to get the ball rolling on an investigation on a user for poor reviews? Is that moderator territory or community moderator territory?
Somebody should explain to the chap how this site works since he's been polluting the site for a while now IMO.
 
7:46 AM
@Mast For poor reviews? Or poor questions? Poor post quality triggers an automatic mute after a while.
 
I wonder is it possible to report rude people here .. you could just say Try Code Review instead of been a rude person maybe ? or thinking yourself that you're smart enough to act like kids ? i hope there is moderators here that could stop this rude attitude to new members — Jada Developer 59 secs ago
 
@Zeta Poor reviews. Almost like robo-reviewing. The system won't notice.
Not sure whether it's malice, stupidity or misunderstanding, but it's above my paygrade anyway.
Still, somebody should try and fix it or simply kick him from the queues I suppose.
We don't do audits like SO.
 
Oh, CR review queue reviews.
 
8:05 AM
Which queue, though?
 
0
Q: Time travelling through state history with persistent consequences

Sean DawsonI am working on a game written in Kotlin that has a state management system similar to Redux. The state of the game is kept in a single place and is represented as immutable data classes (no logic). State is mutated by executing "commands" which are functions that perform a discrete transform of ...

 
@BOi This isn't really a code review site though, and this answer doesn't work - I don't see the value in it. Anyhow with Python having an infinite two's complement representation I doubt you're going to get this to work without separating the positive and negative cases entirely. — miradulo 16 secs ago
This kind of questions is suited for CodeReview not StackOverflow. Try posting it there. — ibrahim mahrir 36 secs ago
@ibrahimmahrir The question as is lacks a lot of context and would be off-topic in its current form on Code Review. See A guide to Code Review for Stack Overflow users for more information. — Zeta 38 secs ago
 
@Zeta Multiple.
@Malachi You don't happen to know the procedure for dealing with suspected review crooks, do you? Is that mod territory or CM territory? From here on down. I have specifics, but won't share those in a public place for obvious reasons.
 
8:41 AM
-1
Q: System.Windows.Automation cache request for optimal speed

Rachel 674I'm using the System.Windows.Automation namespace and setting up cache request for retrieving the bounding rectangle element details for all of these widgets (hyperlink, image, radiobutton, combobox, checkbox) with Internet Explorer. I am using the code below but not convinced I have set the cach...

 
9:06 AM
@Aiden that would be the whole code review and we are not allowed to do this here and if you want you can take your code to code review. If you want to benefit from std::vector your project you need to learn more about it but I think this question is answered and more update would not be appropriate. At the end, please consider marking it as answer if it helped you. — Hamed 11 secs ago
 
9:37 AM
-1
Q: C++ Error from loop

AidenI want to input alphabet to binary code, and output the alphabet from generated binary code. Example 1 --> a 01 --> b 001 --> c 0001 --> d 00001 --> e 000001 --> f a => 1 b => 01 c => 001 d => 0001 e => 00001 -------------Encode.cpp-------------------- #include "Encode.h" En...

 
@Hosch250 Nope, no apples here
 
 
1 hour later…
11:07 AM
@Mast Mod territorry
we can escalate to CMs if necessary
see also here
@Zeta if you find blatant copies, do flag them. If you make mods aware through such channels at least one of us definitely sees them
@Mast You're highly welcome to flag any post with a custom flag if you want us to look at something, even if not related to the post specifically..
 
11:26 AM
@Vogel612 I only found that after the question got deleted. I'm not sure about the rest of the code, though, but I have to admit that I always check that user's code for plagiarism.
 
 
1 hour later…
12:44 PM
-3
Q: Unit testing Mock Request object in MVC .net (VB)

JuliaUnit testing on MVC vb.net project. One of the action method in my controller, I was getting an error on Request.Params["FieldName"] In this case, how to mock: Request.Params["FieldName"] in unit test method?

 
1:14 PM
Monking
 
0
Q: Reduce the complexity of following code - is it possible?

SMAI've a LineDetails class containing slope and y-intercept of a line. private static class LineDetails { int yIntercept;//y-intercept of a line represented as a c in equation int slope;//slope of a line represented as m in equation //constructor, equals, hashcode } //read yAxis int c...

 
1:30 PM
If you were willing to show your code, this question would be perfect for codereview.stackexchange.comMad Physicist 50 secs ago
This may be suitable for Code review. Why are you assigning $sum in each condition if it's the same value? — Mehdi 7 secs ago
Good advice - I got some valuable feedback from my last project. No code yet, I'm still trying to get my head around how to wrangle the snake. When I get it together it will be going to code review with my other effort. — flywire 22 secs ago
 
1:56 PM
@CaptainObvious closed -> RBA within 120 seconds...
 
0
Q: Throttle submissions to ExecutorService

Stefan van den AkkerTo prevent an XY problem, I'll first explain the problem I am trying to solve: Problem I am trying to solve I want to send the contents of a MongoDB collection with a size of around 3 million records to a queuing service, so that other services might read from that queue at their convenience. T...

 
2:15 PM
1
Q: Media player subtitles in WPF - Part 1 Processing and storing

DenisI'm writing a media player in WPF and since movies are playable, subtitles are a must. I feel like asking 1 big question wont be as beneficial as breaking it down into 3 questions, where each one covers a specific aspect of the system. This specific one is the most fundamental - reading and stor...

 
2:33 PM
0
Q: Separating integers substrings from those with alphabetical letters

Anthony PhamThe goal of my code is given a string, to separate the integer substrings from those containing solely alphabetical letters, with the individual substrings in a list. For example: Input: 1h15min Output: ["1", "h", "15", "min"] Here is the code: def separate_text(input_text): if not input...

 
2:59 PM
@Vogel612 Thank you.
 
3:09 PM
0
Q: Media player subtitles in WPF - Part 2 Handlers and notifications

DenisThis is a continuation of Part 1. In this question I will present you with a single class which is the most crucial component of the whole system, it's responsible for firing notifications whenever a subtitle must be shown or hidden. The notifications are later consumed by a ViewModel which than...

 
3:28 PM
0
Q: Code cleen up and reviev

shivetayI'm looking for some hints and list of what can be done different for my code. This is still all brend new thing for me, so that why I'm looking for any help from people who are doing this longer than me :) <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta http-equiv="X-U...

 
3:46 PM
0
Q: Menu Driven Program to Store Data for a Book Collection

DomenicI'm currently writing a menu driven program to store the data for a collection of books. So far the program displays a menu, allows the user to add a book, view the list of books, and exit the program. Note that the program allows the user to cancel a book entry by pressing a lower case 'c' and...

 
4:44 PM
-1
Q: HTML and CSS scroll animation to top without javascript?

jblflipFirstly, I am pretty new to this type of coding, though I have done a course on it without any hands on practice. I am trying to have a scroll animation when someone clicks the "Back to top" button. The code I am currently using just jumps to the top instantly. Is there any way to do this without...

 
5:02 PM
0
Q: Graph Implementation in Java using adjacency list - v2

kal212Updated version from Graph Implementation in Java using adjacency list public class MyGraph { // add vertex name as key, and neighbors as values in set HashMap<String, HashSet<String>> adjList = new HashMap<>(); public void addVertex(String name) { if (adjList.containsKey(na...

 
5:18 PM
0
Q: Generic data access repository and business layer layout

StudentOfLifeTMistakeTResultWas hard to create name of the topic however hope should be fine. Presently i am building design architecture of my application. I've created generic data acesss layer for repositories, besides i have project to qury diffrent databases. I am not sure how to put all together to have proper layout....

 
5:44 PM
0
Q: Array partition 1 to group the array into pairs and make sum of minimum of pairs as maximum

Anirudh ThatipelliGiven an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as possible. Example 1: Input: [1,4,3,2] Output: 4 Explanation: n is 2, and the maximum sum of pairs ...

 
6:18 PM
0
Q: config.php coding help, stuck at finding the database

MarcI have 2 files config.php and search.php The code was written with some MySql language in there, but I needed to change some of it to add an "i" at the end of MySql to get it to connect and log in, etc... however, now I'm stuck when it tries to select the database. The database was created the ...

 
 
2 hours later…
8:06 PM
0
Q: Knight's Travails - Clojure

Vasco FerreiraI'm trying to implement a solution to the Knight's Travails Problem in Clojure (Functional Programming) based on this answer at Odins Project: solution. I would like to know your opinion to what should I change to make the code clearer and how should I document it. Note: Instead of using a vect...

 
8:43 PM
0
Q: python selenium click link, deal with things that can happen

A A RonThis block is nested inside a for loop of links to pdfs on a site. It works great. How can this be better? What it does: clicks the link which starts the download, waits till it's in path, checks if it's taking too long or if the file downloaded is corrupt(0 bytes), breaks if it did take too lo...

0
Q: How would i use python generator to have cleaner code

BARNOWLI'm trying to figure out a way to run this same exact script with less line of code, as you can see i have multiple functions that are quite identical, but it is necessary for the logic. What should i do to make it look more cleaner ? this is what i have so far spider.py search_item = input(...

 
9:38 PM
0
Q: Find perfect squares in range

antonroI've just taken the codility test on finding perfect squares in a range. I thought it was pretty straightforward, but on submitting, I got that a 50% on correctness and 66% on performance. The spec also mentioned that range will be between [-2147483648 ... 2147483647], expected worst-case time c...

 

« first day (1814 days earlier)      last day (2202 days later) »