« first day (2326 days earlier)      last day (1674 days later) » 

12:00 AM
RELOAD! There are 6163 unanswered questions (90.0531% answered)
 
0
Q: Rollback reason

vnpQuite often I roll back the edit because the code was edited after the answer was posted. In such situation I feel obliged to post a comment why did I rolled it back. Not a biggie, but annoying. Can we address the situation? I can think of two ways: Lock the question as soon as it is answered. ...

 
12:44 AM
0
Q: scrape. look. laugh

exRecruiterWhere can I buy a fedora that is not too costly without the Scrapey Data Lookie Lou's in my department finding out where I got it? Actually it could be slightly costly, I digress, it will be a spite purchase. It needs to be fabulous enough that it feels bad to not have one, if only for that day.....

 
 
1 hour later…
1:44 AM
0
Q: Extract numbers from the head of a string in BASH script

Gypsy SpellweaverIn my current BASH script project I am processing a string, which cannot have spaces. At one point I get to where it is possible to have a series of digits. The series can be of any length, including zero, up to the abilities of the shell to handle command line arguments, and need not be a valid...

 
2:07 AM
"This question was removed from Code Review Stack Exchange for reasons of moderation." — kelvin 47 secs ago
 
3:05 AM
0
Q: Any better way to make UIImageView ExpressibleByStringLiteral?

black_pearlWant to reduce boiler-plate code ,and write like this, when developing iOS. let imgView: UIImageView = "share_fareware_text_bg" Here is implementation code: class ImageView: UIImageView, ExpressibleByStringLiteral{ public convenience required init(stringLiteral value: String) { se...

 
3:25 AM
0
Q: Calling function in class in hotel reservation system (python)

motatataI dont know how to use and call the def function under class. I am not sure how to use the input data for the class. There are two text files which will be used, about the rooms: room id and price of the rooms Here is some parts of the program: class Availability : def __init__(self, room_t...

 
3:35 AM
boo
 
@JonathanLeffler FWIW I was caught employing this same pointer subtraction UB as OP. I have since found a work-around (un-posted) that did not use subtraction. — chux 33 secs ago
 
4:41 AM
This seems like a better fit for Code Review, since your question would seem to match most of the criteria in the on-topic list. — Tieson T. 54 secs ago
 
4:52 AM
Monking
 
5:14 AM
This is the kind of thing that would get better results on codereview.stackexchange.comTrent Bartlem 55 secs ago
if your code is working then take a moment to review code review site guidelines as posting there may be a better fit for this. — QHarr 40 secs ago
 
 
2 hours later…
7:38 AM
I'm voting to close this question as off-topic because it best fits codereview.stackexchange.com. — acdcjunior 27 secs ago
 
Monking
@Malachi It's alive!
5
 
-2
Q: what is the benefit to give a common interface to access all methods through out the application?

Gowtham AlanI posted here that sample code snippet to know any benefits. Following design pattern has been used in my application :- public interface IEmailService { bool SendEmail(); } public interface IUserService { bool CheckIfUserExistOrNot(int userId); } public interf...

0
Q: Constructing constrained/validated objects

DrucklesI'm trying to do some rudimentary DDD in validating my objects to ensure they are of a particular type. I.e. an Email object would always look like "my@example.com" and a NaturalNumber is always greater than 0. However, I'm struggling to make it reusable. The closest I've got is a factory: open...

 
8:09 AM
Your question is more suitable for softwareengineering.stackexchange.com. If you have implemented your solution in code, then you can also try codereview.stackexchange.com Your question is probably not a good fit for stackoverflow.com because stackoverflow.com/help/dont-askAnthony Kong 12 secs ago
 
8:28 AM
0
Q: LeetCode: Time Based Key-Value Store C#

Giladhttps://leetcode.com/problems/time-based-key-value-store/ Create a timebased key-value store class TimeMap, that supports two operations. 1. set(string key, string value, int timestamp) Stores the key and value, along with the given timestamp. 2. get(string key, int timestamp) ...

0
Q: Effective fetching data algorithm

user2255716I'm fetching some data by using bs4, and want to know why access speed get slower as my program progresses. I'm using thread, and I know threading isn't so fast because of GIL. My problem is that my program gets slower gradually. However,when the number of word is over 300,it become much slower...

 
Primary opinion-based questions are off-topic. For code reviews you may try codereview.stackexchange.comTseng 55 secs ago
 
8:48 AM
1
Q: Faster way of Floyd-Warshall

Appan RakaraddiI've implemented the modified Floyd-Warshall method to determine all shortest paths between a pair of vertices (i.e., if there are multiple shortest paths between a vertex pair, then all of them are considered). def floyd_warshall(n, edge): rn = range(n) cost = [[inf] * n for i in rn] ...

 
9:43 AM
@CaptainObvious OP has provided some Python code, but seems to be asking for a C++ rewrite.
 
 
1 hour later…
10:49 AM
0
Q: Database Table/Column rules

user960567We are making a new database design where we are setting some rules upfront. I dunno how much it makes sense to have these rules in place, 1- Each table and column name should be meaningful. It should give information about the table or the column's purpose. 2- Table names should not exceed 27 ...

 
11:09 AM
1
Q: merge list of strings into one sorted string

nz_21So I was tasked the following: Given a list of strings, output a sorted string that consists of all lowercase characters (a-z) from each string in the list. Example [aba, xz] -> aabxz I tried this: from collections import Counter from string import ascii_lowercase def merge...

 
11:29 AM
0
Q: RSS Reader from Multiple sources

Shivang MIttalI am writing a RSS reader Library which should be able to read the data from different sources. I am very new to writing libraries and not sure if I am going right with it. These are my base interfaces with implementation public enum ProcessType { Syndicate, Atom, API...

 
12:13 PM
looks like something more for code reviewkemicofa 37 secs ago
 
12:57 PM
What doesn't work? If you're looking for code review, you're better off herexandermonkey 35 secs ago
 
1:10 PM
-1
Q: A Generic error occurred in GDI+ in Bitmap.Save method

Kyle EalesOn the save Rtn.Save() method is causing exception "A generic error occurred in GDI+.".. Any ideas where I am going wrong? var OriginalImageData = _photo.GetPersonImage(); if (OriginalImageData != null) { var OriginalImageStream = new System.IO.MemoryStream(OriginalImageData); var Orig...

 
1:25 PM
I really don’t understand why this was closed.
1
Q: Use math to project price rather than a loop

PPannI have to project the price for a publicly traded contract when the price should be approximately matching the targeted profit or loss. I have written the following code, runs under 0.02ms.. could be a faster and could be a bit more elegant as the code will get slower progressively depending on t...

@t3chb0t any insight?
 
1:37 PM
@RubberDuck I VTC'd because it seemed to be asking for a rewrite/redesign using a completely different technique, as opposed to asking for a review of the existing code.
 
@RubberDuck same as @VisualMelon; see also my comment that I have posted there: codereview.stackexchange.com/questions/229027/…
 
2:09 PM
@RubberDuck I see no reason to close, casting a VTR.
 
0
Q: Trading System with Akka

Karan KhannaRecently I did an exercise to understand Akka. I implemented a trading system with Akka to process orders with Actors. My code is like: Order: Immutable class with acts as the messages in the system. public final class Order { public enum OrderType { BUY, SELL }; ...

 
If this works, and you're just trying to make it more efficient, I suggest instead posting it over at CodeReviewBruceWayne 26 secs ago
 
2:50 PM
0
Q: First python mini-project feedback

TombaI've been learning Python for about 1 - 1 1/2 weeks now and just finished my first small project to help solidify what I've learnt. It's a very basic (bad) login / create account system that I run in Powershell but just wanted someone feedback and thoughts as to how I'm getting on in regards to ...

0
Q: Replace part of the string with n size with string of m size

DaniloI wanted to understand memory and pointers better before I endeavour into file path manipulations for larger project. This is simple replace part of the string test function that I need to rewrite into struct to call upon. I used scopes to test for memory leaking and changes, I work on Windows 7,...

 
3:05 PM
Pointing out a possible way to make the code better, but admitting to lacking the skill to do so doesn’t make a question unreviewable. Reviewers are free to ignore that request.
5
 
0
Q: A thread that can be interrupted before starting

JimAs per the Java documentation: Interrupting a thread that is not alive need not have any effect. Particularly, interrupting a thread between the call to start() and the invocation of run() has no effect. So I wrote a Thread which can be interrupted even before it started, so that the inter...

 
3:28 PM
 
If your code works but you need a faster solution, consider asking on CodeReviwe. — dymanoid just now
I'm voting to close this question as off-topic because better suited at codereviewstovfl 56 secs ago
 
3:47 PM
Monking
 
4:02 PM
Monking
 
better post it in stack code review here codereview.stackexchange.comMarcus.Aurelianus 17 secs ago
 
0
Q: Run the needle program for a query against the subject files and return the result

catufI have written the script to run locally the needle program for a query against the subject files. It returns the highest percentage result file as a string. In addition it also converts to html file (write_html function). Can you help me to improve the script? subject_path = settings.MEDIA_ROO...

0
Q: Automatic CRL files conventor

David MoslerIn my job we use our internal CA runs on a Windows server. When I want to use it’s crl on a linux machine I have to do these steps: download root CA and intermediate CAs covert them to x509 merge into one file (CRL.pem) For this I wrote the small script bellow, which I run autimatically by ti...

 
4:33 PM
@t3chb0t I firmly disagree that the reason you mentioned on it's own is enough to justify a VTC.
 
@DerKommissar it's your right to think that and you've voted to reopen it. Water under the bridge.
 
@t3chb0t It is what it is. I just think there needs to be something else to warrant a VTC.
 
@DerKommissar it was enough for me; if it was always binary then bots could take care of that alone
 
I don't disagree at all
Generally these things are pretty gray, there's always going to be opinions one way or another.
 
5:11 PM
This sounds like a question for codereview.stackexchange.comRufus L 6 secs ago
 
0
Q: Function to convert "path" into regular expression

Ismael MiguelThis function converts a string like: /{?lang(2-5):lowercase}/{page(2+):lowercase}/{article}-{id:integer}*.html* Into the following regular expression: @^(?J)/(?:(?P<lang>[a-z\d\-_\W]{2,5})/)?(?P<page>[a-z\d\-_\W]{2,})/(?P<article>[\w\W]*?)\-(?P<id>[1-9]*?).*?\.html.*?$@ Ready to be used somewher...

 
5:46 PM
Sorry, didn’t know about codereview. Thanks. — MiliAxe 36 secs ago
 
6:05 PM
I would agree with Stovfl. When you have code that works as entended and does not have a specific issue you need fixed then Code Review is likely where you want to ask your question. SO is mainly got specific code problems. — Mike - SMT 5 secs ago
 
6:20 PM
possible answer invalidation by catuf on question by catuf: codereview.stackexchange.com/posts/229121/revisions
 
@Duga rolled back
doh! un-rolled back ... apparently it was a copy paste issue
comments were on Reinderien's answer, not the question
 
possible answer invalidation by Mast on question by Tomba: codereview.stackexchange.com/posts/229116/revisions
 
@Duga Oh, stuff it.
 
@t3chb0t search on MSE for automatic flags :)
 
OHAI @Phrancis
 
6:52 PM
@Vogel612 found it! thx
 
7:26 PM
o_O
 
 
1 hour later…
8:45 PM
@Mast Can you delete my star on this? It would have been a much better star if it was Oh, Duga stuff it.
 
@pacmaninbw you should be able to un-star it by clicking on the star
 
0
Q: Desbordamiento java

Luis Fernando Mosquera Rivasimport java.util.Scanner; public class Main { public static void main(String[] args) { int giga=0,mega,kilo,b; Scanner sc = new Scanner(System.in); System.out.print("Ingrese el numero de gigas:"); giga = sc.nextInt(); mega = giga*1024; kilo = mega*1024; b= kilo*...

 
9:10 PM
@CaptainObvious it has been quite some time since I have seen any non-English posts...
 
if your code is working and you want to improve its readability/performance -- then there is a special place for this called codereview.stackexchange.com, but in either way you need to provide description of what your code does — Azat Ibrakov 27 secs ago
 
9:47 PM
I didn't down vote, but it looks like this question might belong in code review. From what I can tell, the code works, and you are looking for ways to improve on it more than for help with a specific issue. — ryan28561 54 secs ago
 
9:59 PM
@ryan28561. Thanks for comment. My code works but as I am complete beginner in reactjs, I am not sure that I use the right way to do it. But, I think code review is a good idea. — Stef1611 33 secs ago
 
0
Q: Leetcode 139. Wordbreak

neetmy solution class Solution: def wordBreak(self, s: str, wordDict: List[str]) -> bool: """ """ def prune(i): if i == len(s): return True elif i >len(s): return False else: for word ...

0
Q: Avoiding `@SuppressWarnings("unchecked")`

Archimedes TrajanoI have the following code but in the method I needed to put in @SuppressWarnings("unchecked") to suppress this warning Warning:(49, 45) Unchecked method 'greatest(Expression)' invocation class TemporalRepositoryImpl< S extends Serializable, T extends Temporal & Comparable<? super T>, ...

0
Q: Fully uncontrolled component with a key and parent state changes

Stef1611I am learning reactjs (almost beginner) and I am writing a hagman game. I have 3 child components (a canvas of the hangman, a keyboard to click on letter keys and a display of the word). When letter as been used, its color changes on the keyboard (red : not in the word, green : in the word and wh...

 
10:33 PM
-1
Q: c# - PropertyInfo set value List<object>

emadPropertyInfo set value List show error in convert list I tried to convert to json and I couldn't public class PurchaseBill { public DateTime Date { get; set; } public string Type { get; set; } public string BillType { get; set; } public List<PurchaseProduct> Listproduct { get;...

0
Q: Dynamically created table - Vanilla Javascript only - not displaying in browser

and1I have a function that goes through and sorts items and their quantity and is supposed to display them in a table. Nothing is appearing in the DOM or browser. Am I calling the function wrong or something? I have an index.html file linked to my index.js file using a script. There are no errors...

 
11:29 PM
This question appears to be off-topic because it is a code review request. This might be better suited to the Code Review Stack Exchange site. Before posting there be sure to read their FAQ to ensure that your question meets their guidelines. — John Conde 14 secs ago
 
11:59 PM
I will check out code review stack exchange thank you @AnthonyKong. — Peace 26 secs ago
 

« first day (2326 days earlier)      last day (1674 days later) »