« first day (2630 days earlier)      last day (24 days later) » 

12:00 AM
RELOAD! There are 6831 unanswered questions (89.8557% answered)
 
12:47 AM
@Mast @SᴀᴍOnᴇᴌᴀ This is normally good enough, but with the variance in the graph you should repeat that a couple times (say 5 / 10) an take the lowest. It should make the graph smoother. If you're noticing spikes it could be due to the GC or something. I normally repeat 'all the timings' rather than 'each timing' (if that makes sense) to fix this. (unfortunately it's normally not an insignificant amount of work :/)
 
1:40 AM
1
Q: Java - Is using an interface as a wrapper a good idea?

xilpexIn my code, I have to wrap some classes so that I can store them under one type (Normally I would use interfaces/inheritance, but I can't in this case). Here is the code for that: public interface Wrapper<T> { default T getWrapped() { return (T) this; } } Using this, I can wrap a...

 
2:20 AM
If your code isn't working then ask a question about that specific thing. If it is working and you're looking for a review then this isn't the right place to ask. Try codereview.stackexchange.com but make sure to read their help to make sure you make your question on-topic. You should also choose one language tag as C and C++ are not the same. — Retired Ninja 5 secs ago
 
2:53 AM
0
Q: Improving for() loop with other options

naru sinI have the following code: void record_preferences(int ranks[]){ // Update preferences given one voter's ranks for(int i = 0; i < candidate_count; i++){ //Cycle through candidates for(int j = 0; j < candidate_count; j++){ ...

 
3:12 AM
Question is more suitable for Code Reviewkaylum 11 secs ago
 
 
1 hour later…
4:16 AM
Monking
 
4:51 AM
Why are you yelling??
 
5:45 AM
1
Q: My approach on nested properties that bind to XAML

zadaneHere is my simple model. public class Product { public String Name { get; set; } public int Price { get; set; } public String Info { get; set; } } When I use this in viewmodel as following: public MainViewModel() { Item = new Product() { Name = "Coffee", Price = 4, In...

 
6:10 AM
@54958838 oh apparently somebody is “hard of hearing”....
 
6:33 AM
0
Q: Supplement list of results with additional data

BunnynutI have two sets of results that I want to combine. The structure of the set looks like this: public class ResultSet { public IList<ResultItem> Results { get; set; } } public class ResultItem { public Guid Id { get; set; } public string UniqueValue { get; set; } public string Othe...

 
Monking
@SᴀᴍOnᴇᴌᴀ And why has someone upvoted that...
 
belongs on codereview.stackexchange.com — d4rk4ng31 19 secs ago
possible answer invalidation by Mast on question by naru sin: codereview.stackexchange.com/posts/245540/revisions
Consider posting this on Code Review for more general feedback. — VLAZ 24 secs ago
 
6:51 AM
@Duga Ssssht
 
@d4rk4ng31 No, it doesn't. If the test cases are failing, it's not working as intended and thus not ready for review. Please take a look at their help center. — Mast 35 secs ago
 
@Duga How refreshing, a recommendation that's actually correct.
Flagged for migration, seems perfectly suitable indeed. Proper description, tests, all good.
 
0
Q: Finding a pair in a queue

CelluloseI am trying to find if a pair exist in a queue. However, my program cannot run. Here is my code: #include<iostream> #include<iomanip> #include<cstdlib> #include<vector> #include<queue> #include<algorithm> #include<deque> using namespace std; int main(){ queue < pair <int, int> > q; q.pu...

 
 
2 hours later…
8:35 AM
-1
Q: How to find the closest date in past from today in javascript?

Jovi BonThis is the response i get: [{... pen_feeding_scheduler_list: [{…}] evening_feeding: false, evening_feeding_time: "19:00", feeding_frequency_rule: "FREQ=DAILY;INTERVAL=1", id: 997, morning_feeding: true, morning_feeding_time: "04:00", noon_feeding: false, noon_feeding_time: "12:00", pen_id: 337, ...

 
8:48 AM
I’m voting to close this question because it belongs to codereview.stackexchange.com — Anmol Singh Jaggi 53 secs ago
It seems that your code currently works, and you are looking to improve it. Generally these questions are too opinionated for this site, but you might find better luck at CodeReview.SE. Remember to read their requirements as they are a bit more strict than this site. — Tschallacka 20 secs ago
 
9:19 AM
It seems that your code currently works, and you are looking to improve it. Generally these questions are too opinionated for this site, but you might find better luck at CodeReview.SE. Remember to read their requirements as they are a bit more strict than this site. — Tschallacka 54 secs ago
 
0
Q: Best practice for URL's architectural Design in Django

Whale 52HzI have been designing websites with Django for a while and I have also designed various sites. But here is a question that comes to mind at the beginning of any new project: What is the best a URLs architectural Design that creates both logical and meaningful URLs path as well as plugable apps? I...

0
Q: Creating a new tag for another language

Peter KriensI would like to use this site to review Alloy code. However, I do not have enough reputation on this site to create a tag. However, without a tag I cannot post code ... This seems a chicken and egg problem? Line 1 Line 2 Line 3

 
@CaptainObvious done
 
9:48 AM
0
Q: incompatible types when returning... C - code

Thomas HansenI have the code below: float H (double t, int Hm[36][36], int Hp[36][36], int Hu[36][36], int t0, int a){ int i,j; double A=E/w*cos(w*(t-mu))*pow(cos(w*(t-mu)/(2*M)),2); float H[36][36]; for(i=0;i<36;i++){ for(j=0;j<36;j++){ H[i][j]=Hu[i][j]+t0*(cos(-a*A)+I*si...

 
@CaptainObvious broken
 
 
1 hour later…
 
11:20 AM
@CaptainObvious That's why you try to write readable code: so you can spot the error in that.
@Duga Now available (and answered) here.
Interesting use of code snippets in the answer.
 
11:42 AM
You may try migrating this question to codereview.stackexchange.com though. — user28434 6 secs ago
@user28434 It's not welcome on Code Review as currently posted since the code is obfuscated beyond reviewability by our scope. — Mast 21 secs ago
If your code works and you don't have a precise question about it, shouldn't it fit better in SE Code Review? — Kaddath 57 secs ago
This might be a question for codereview.stackexchange.comkai 6 secs ago
 
12:22 PM
You might also be interested in codereview.stackexchange.com - your question appears to be more suitable there! — OMGtechy 7 secs ago
 
@Heslacher Closed
 
nice
 
12:39 PM
0
Q: Can you rate my generic solution to Hibernate's CriteriaQuery and how safe is it?

stefan.georgiev.uzunovI've created a little class which helps me to generalize many query cases. I have a DbService and couple methods in it. Can you please take a look at it and share some criticism. The usage of that tool is really easy to me and I do wanna know how to make it more safe and optimize. public class D...

 
12:52 PM
@CaptainObvious Does anyone understand that?
 
@Mast I certainly don't but then I don't know Java. I skipped it in the First Post Queue. I was going to VTC based on the user of 2 classes that weren't defined, but then googled the 2 classes and found they belong in a Java API.
 
0
Q: SQL execution time takes too long, how to optimize the SQL?

slideshowp2For some reason, I can't change the schema of the tables. So I can only optimize by optimizing SQL statements. SQL: EXPLAIN ANALYZE select "INVOICE_LINE_ITEM"."state_id" as "state_id", "INVOICE_DESC_CATEGORIZATION"."invoice_desc_categorization_id" as "invoice_desc_categorization_id", date_part...

 
@Heslacher This question looks fixed.
 
1:12 PM
0
Q: Creating a new tag for another language

Peter KriensI would like to use this site to review Alloy code. However, I do not have enough reputation on this site to create a tag. However, without a tag I cannot post code ... This seems a chicken and egg problem? Line 1 Line 2 Line 3

 
@Mast nope. The method doesn't make any sense because it doesn't return anything where the signature says it should.
 
@Heslacher Thanks.
 
no problem
 
1:35 PM
@CaptainObvious RBA
 
2:01 PM
I need to build a new dev-specific computer
Getting tired of having to switch my gaming rig between configs and turn services on and off all the time
 
2:44 PM
This may be a better fit for Code Review since it's code that's working with no errors. "How do I improve this" questions are a bit broad/opinion-based when they're so open-ended. — TylerH 29 secs ago
A question like this should be asked on SE Code Review or SE Software EngineeringNifim 32 secs ago
I’m voting to close this question because it belongs to codereview.stackexchange.comdevserkan 54 secs ago
It seems fine and cDU is the right place to make a side effect like this. Unfortunately, the question seems to belong to codereview but there isn't so much to say :) Maybe instead of doing all the stuff in cDU, it can be a separate function and you can call it in cDU. — devserkan 20 secs ago
 
3:09 PM
Yes, 4 upvotes because the full code there, but now I dont see any answer coming, I think the original question was actually better :/
Also, hey guys ;)
 
3:28 PM
@DerKommissar I use VM for that
 
-1
Q: How can I make Tkinter less repetitive by refactoring with Class or for-loop(s)?

Wes TomerI created a Tkinter app for user-input, and the same types of widgets are repeated on each row. A single row is similar to a slide in PowerPoint because it has an image, numbers, and input text. Since each row is a repeat of the one above it, I know I could somehow create a "row-object" using a c...

 
@CaptainObvious That looks oddly familiar
 
3:50 PM
Monking
 
0
Q: JSON Template to webpage

Neslihan BozerI am looking for an approach regarding one of my projects. I have a JSON file that includes a template for a survey. I am planning to usşng Spring Boot and H2 for the backend side. But I am new in frontend. I need a quick solution to convert the JSON data template to an HTML page. Data provided i...

 
@Nifim it looks a bit too hypothetical/context-lacking for CR. See "Which Site?" and "Code Review or not?"Sᴀᴍ Onᴇᴌᴀ 21 secs ago
@devserkan While this may be on-topic on CR, in the future, please don't use the existence of the Code Review site as a reason to close a question. Evaluate the request and use a reason like needs focus, 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 Does being on-topic at another Stack Exchange site automatically make a question off-topic for Stack Overflow?Sᴀᴍ Onᴇᴌᴀ 35 secs ago
 
4:09 PM
@Mast Yes it does, I think about a week ago.
 
0
Q: First-time F#: A simple Rock Paper Scissors

cimnineThis is my first F# program. It's a simple Rock-Paper-Scissors implementation. I am looking for feedback of all sorts, e.g. the choice of types (e.g. List vs Array), whether there are parts that could be solved more elegantly / idiomatic, formatting, etc. open System let allowedActions = [ "r"; "p"

 
Honestly I don't find that much easier to read, although it's a good starting point for refactoring. I followed roughly the same process, but pulled out most of the internals. Ended up with three external functions, three locals in the map function, and pretty clean HTML. But since I don't answer OT questions (if anything this belongs on code review) I'll just keep it in my editor and write a blog post or sthng ;) — Dave Newton 30 secs ago
 
4:43 PM
-1
Q: how to use the filter and sort in header with same variable

DILEEP THOMASI have build a custom table component, but here i am not using a common state for doing the actions. So i am just listing the issues here where i need guidance how to achieve it. I Search for do in name column, only one results comes up, but if i click on sort, it will sort the entire data, so h...

0
Q: LeetCode 913: Cat and Mouse

EmmaI'm posting my code for a LeetCode problem. If you'd like to review, please do so. Thank you for your time! Problem A game on an undirected graph is played by two players, Mouse and Cat, who alternate turns. The graph is given as follows: graph[a] is a list of all nodes b such that ab is an edge...

 
@Mast I use a different keyboard and mouse for gaming and dev work though
 
@Peilonrayz thanks - I changed it to a bar chart - is this any better?
 
That looks terrible lol
No offense meant
But I know that sounded offensive
 
hehe.... "better than more terrible" :)
 
I guess if the options are "bad" and "awful" then you did pick "bad" which is the better option lmao
 
5:02 PM
@SᴀᴍOnᴇᴌᴀ I think so, can you get the timings back as floats?
Timings as in y axis (Time (ms))
 
will check
 
@DerKommissar I bought the same mouse I use at home for work. Because I got fed-up with changing twice a day.
@pacmaninbw That sounds about right, yes.
@SᴀᴍOnᴇᴌᴀ Is your browser that slow or is this very CPU-heavy?
 
Perhaps better on the Code Review Stack. — Solar Mike 47 secs ago
 
5:41 PM
@Mast I've been using Brave after Malachai suggested it, which uses webkit - so I see similar results in Chrome.... I did notice lower times in FF
 
@CaptainObvious He thought there were not enough comments.
Napalmd the crap out of it.
@SᴀᴍOnᴇᴌᴀ Just that it runs 3x as fast over here, in FF.
Welcome to CR, this is a site to review working code, which this question does not have. It will get closed in the near future. As it has no code at all, it is not even a good fit for stackoverflow. — konijn 2 hours ago
@konjin I know. I am using this platform for code review. You can look at to my profile but in this case, I need some information to find my way before starting coding because I am new in frontend development. — Neslihan Bozer 2 hours ago
Sir, you're not allowed to do that. - I know, but can you help me anyway?
2 more VTC please.
 
5:57 PM
This is why I need 32 GB RAM
Though I'll give up on the Notepad++ instance lol
 
@skiwi WHAT in the world are you editing in that Notepad instance?
wow
 
@Vogel612 I was trying to load the city I live in
 
@Mast you voted to Leave Open on this yet appear to have voted to close before or after that.... did you pick LO since you had already voted on it? should it be reopened or wait until OP answers questions in comments?
 
They released 3D data on all of The Netherlands, my city is like 1.225 GB worth of JSON
 
@SᴀᴍOnᴇᴌᴀ " pick LO since you had already voted" yes
I usually open a question in a 2nd window while reviewing.
Sometimes I forget in which window I am when voting.
Which disallows me to hit the correct button in review.
 
6:04 PM
been there, done that
 
Oh, I do it at least once a week.
@Vogel612 His tabs.
@skiwi Yea, it's 210 MB per smallest block. I imagine your area is a couple of blocks.
 
possible answer invalidation by elauser on question by elauser: codereview.stackexchange.com/posts/244868/revisions
 
5 by the looks of it.
 
@Mast I wonder how long it takes to load in Blender :P
 
@Duga Thank you for making it easy.
 
6:06 PM
I think you are updating it wrong but I can't help you much further as you said your tried setstste and streams and futures, I think you are using them wrong, but I can't be sure as I don't have access to the full code, and honestly I don't have the time to do a full code review — mFeinstein 52 secs ago
 
@skiwi Considering your RAM is used to taking a beating, probably not that long.
 
@Mast Lol :P
 
Comments asking for clarification were posted, no response. Question is from February.
Shame though, really could've been something had it been edited.
 
@Mast one to go.
 
@pacmaninbw Thank you.
Any takers?
 
6:15 PM
@Mast I'm pretty tired rn, why's it MRC?
 
@Peilonrayz The bottom comment requests test cases.
 
@Peilonrayz Code itself is suspect, may not run. Could've been remedied by providing a usage example, but user hasn't logged in since May. Both objective and usage are unclear.
Both UWYA and MRC fit.
At least.
 
> File "main.py", line 9
logger.debug(f'Assigned value to lexer object {self.lexer}')
^
SyntaxError: invalid syntax
 
@SᴀᴍOnᴇᴌᴀ Can you run a python -V for me?
Cause that's valid in 3.8+
@Mast Hmm, that doesn't sit right with me. (gut feeling only) and I'm too tired right now to properly thing about it. I'll look into it tomorrow if it doesn't get closed
 
0
Q: Improving my Tic Tac Toe Solution in Scala

elauserI'm relatively new to Scala and made a small TicTacToe in a functional Style. Any improvement options would be highly appreciated. There are some things which I am unsure of if they are made in an optimal way. Error Handling in the readMove Function If i should incorporate types like (type Playe...

 
6:20 PM
@Peilonrayz 3.4.3 (on onlinegdb.com)
 
@SᴀᴍOnᴇᴌᴀ Yea, that's way out-of-date.
If you share your testcode I can whip something up on 3.8.4 @Sᴀᴍ
 
@Mast I pasted in the code from "that zombie"
 
@SᴀᴍOnᴇᴌᴀ That's just a class definition. It shouldn't run anything yet.
 
I'm a bit hesitant to try and guess its usage. It clearly expects arguments, but I don't know with which the OP tested it.
@Peilonrayz Take your time. It's a zombie and you have 13 days before the votes start expiring :-)
@Vogel612 When will you know the result?
 
6:29 PM
I actually need to print and send it in before it can be corrected
and corona makes that ... annoying
 
@Vogel612 When does it have to be in their inbox?
Because I'll whip it over the industrial printer I have at work and bring the darn thing to you by car if that's what it takes.
 
nah, I need to have it bound with a specific binding mechanism and some given covers
 
Ah. And all the local shops capable of that are closed?
 
nah, I just need to get my backside to the shop at the uni
 
Ah
@Vogel612 So, before the weekend it's all done?
 
6:35 PM
I'd have to have been at the shop today because the required binding for the thesis needs a day to set
 
I’m voting to close this question because it is about review of running code and should be asked at Code ReviewJens 30 secs ago
 
@Vogel612 Pages in the chapters bound with thread and the chapters glued to the backside? Or more creative?
 
I don't know how to translate "Kaltleimbindung"
 
@Vogel612 "Cold glue binding"?
 
yea.
not sure whether that's making sense though
 
6:41 PM
like .... perhaps the opposite of hot glue...
 
6:53 PM
@Peilonrayz my initial findings are that Date differences in JS only return milliseconds as integers...
so I don't believe I can get them as floats... I might look at a benchmark tool like benchmarkJS , or take you suggestion and average out multiple iterations/runs
 
7:11 PM
@Vogel612 It does.
 
@SᴀᴍOnᴇᴌᴀ Yeah, that's making the graph much worse than it otherwise could look. That library that you linked look like it has 'times' and 'cycles' which should work reasonably but it has an API I'm not a fan of
 
That's PVA binding.
Roughly what I had in mind, yes.
@CaptainObvious RBA
 
7:26 PM
I want more efficient way for example in for loop I'm voting to close the question because it belongs on Code ReviewTrenton McKinney 14 secs ago
In addition to @FranzGleichmann comment - since you have not clarify what you expected we can't say whether those tests achieve your goal or not. We could discuss style/possible additional tests but that is off-topic for SO as mostly opinion based. If you are satisfied with behavior of your code and need code review - Code Review could be good place to ask for one. If you want something from SO please edit to clarify what you expect/ have problem to achieve. — Alexei Levenkov 19 secs ago
I’m voting to close this question because it belongs to CodeReview. — MrBean Bremen 29 secs ago
If you don't have a concrete issue you need help with, then I think that codereview.stackexchange.com will be more appropriate for this post. — Mark Loyman 31 secs ago
 
7:56 PM
FYI there is also a code review stack exchange. Since this is a general coding question and somewhat opinion-based, it may be better to ask there. codereview.stackexchange.com. But you aren't wrong to ask it here :). — Garrett Motzner 11 secs ago
@GarrettMotzner FYI the question as stated is unacceptable at Code Review since it does not tell us anything about the context in which the code is used. This would be considered a snippet, thus explicitly outlawed. — Mast 36 secs ago
 
8:12 PM
@Mast Hm, good to know. Although the link you posted isn't clear on that... — Garrett Motzner 14 mins ago
I understand that can be unclear... that is why I like to link to the help center directly instead of Meta for some things
 
0
Q: Simple Password Generator Feedback

Dalton EdmsitenThis is my first major project in F#, looking for any critique on how I can make it more standard or more concise. Some things I feel like I could have done better are the command flag parsing and the actual crypto random generation itself. I do know that crypto generators are slower than pseudo ...

 
 
2 hours later…
10:00 PM
0
Q: Handling default value for int64_t representing an edge in an adjacency matrix

Miguel AvilaI'm writing an adjacency matrix, in this moment I'm trying to figure out how to indicate a default numeric value for an unassigned edge. There is the macro _I64_MAX but it is said that it's a bad practice to use macros. I wish to know if there's other way to assign such value (as a keyword as in ...

 
11:12 PM
> It's important to keep in mind that to mitigate potential security threats such as Spectre
Nothing is ever easy with Browsers XD
 
11:38 PM
0
Q: C# - name separation & last name in upper to Camel

newbieI had an xls file with lots of full names in the following form at work: +----------------------------+--------------+-----+-----+ | [Full name] | [More data] |[...]|[...]| +----------------------------|--------------------------+ | Cristiano RONALDO | ... | ... ...

 

« first day (2630 days earlier)      last day (24 days later) »