« first day (3300 days earlier)      last day (711 days later) » 

12:01 AM
REFRESH! There are 8077 unanswered questions (89.3013 answered)
 
12:29 AM
If you have working code and you'd like to have it reviewed for potential improvement, please use Code Review which is uniquely specialized in handling your question. Please take their tour and read their How to Ask pages before posting your question there. — mickmackusa 41 secs ago
 
 
3 hours later…
3:15 AM
possible answer invalidation by 200_success on question by Sp3kTr0: codereview.stackexchange.com/posts/276610/revisions
Cross-posted to Code Review. Voting to close on Stack Overflow as it does not contain the shortest relevant code. — 200_success 42 secs ago
 
 
2 hours later…
5:15 AM
0
Q: How do I increase the memory efficiency of this longest substring implementation? (C++)

MrSynAckSterI'm practicing my coding on leetcode. I implemented the following algorithm to solve the longest substring problem: class Solution { public: int lengthOfLongestSubstring(string s) { int max = 0; int start = 0; int rec = 0; int curs = 0; ch...

0
Q: How do I reduce the cyclomatic complexity in this code?

stromboliI added the getCValue method to reduce the cyclomatic complexity, but the cyclomatic complexity still persists, how can I reduce it? Can I change this code using Regex, if I can how? Please help me. public final class UnicodeEscapeUtil { public static String unic...

 
5:29 AM
Monking
 
5:41 AM
@Duga that's okay - trailing code fence
and 200 supplied answer anyway
 
6:31 AM
0
Q: Performance with large data sets in pandas

DamianI'm a bit new in python and I'm trying to achieve what I can't with VBA, get things faster. I have large datasets like this in the source(just a sample): This is done also by python and it's a CSV file. What my code has to do with this is: Drop every column except: Location Name, Date and either...

 
6:44 AM
Welcome to stack overflow. Here we can help you will specific coding problems. However, we are not a code review site, nor will we debug your code. — JHBonarius just now
 
6:56 AM
0
Q: Improving runtime / readability with conditional addition of columns to pandas dataframe in Python

Dorky-LeverI have this clunky comparison that basically adds columns to a pandas dataframe based on certain conditions. Is there a way to write this for better perfomance? Maybe list comprehension? if 'mut_treat' in label_organ_vol.line: df.loc[label, 'mean_vol_ratio'] = int_ovs.mean() / non_int_ovs.mea...

 
 
1 hour later…
8:03 AM
Monking
 
8:23 AM
@Volker My question is why does this happen while scrapping parallelly and how can I solve it (how can I scrape all the data even when scrapping parallelly ). I made an edit to the question as well. A code review will be really helpful. Thanks :) — Adnan 14 secs ago
 
8:37 AM
0
Q: How to properly pass inputs into the state machine?

SteveI have been implementing a finite state machine in the C++. My state machine basically produces a set of logic signals at its output based on a set of input logic signals. My idea how to implement the state machine is following class StateMachine { public: StateMachine(); void update(); voi...

 
8:59 AM
If your code works, consider posting on Code Review instead (following the guidelines in their Help Center). — 41686d6564 stands w. Palestine 51 secs ago
 
0
Q: Collect the SKETCH NAME in the array and hunt for matching CUSTOME PROPERTY NAME and apply TOLERANCE (Bilateral or Symmetric)

Deshpande5507Could you please review my code? "I want to apply tolerance value to my sketch using the custom property and the input for the custom property will be fed by JSON" Here I tried to collect the sketch name from the specific feature (i.e ISO Standard Feature) from the Solidworks feature tree. Once ...

 
9:53 AM
0
Q: Could Laravel's JsonResources be a leaky abstraction and should I worry about it?

Alex l.The task is simple - get data, apply transformations and send it to client. It gets difficult because required data consists of a lot of relations and a lot of constraints are applied. I'm getting the data with Eloquent ORM... public function getVerySpecificOrders() { return OrderResource::co...

 
 
2 hours later…
11:59 AM
0
Q: Filter by all properties in an IEnumerable<object> using LINQ

davidsi02I've made this code to be able to filter an IEnumerable for every object property but I want to know if there is any way to improve this code. foreach (var prop in MyEnumerable.First().GetType().GetProperties()) { if (prop.PropertyType.Name != nameof(String)) return; ...

 
12:40 PM
Was not expecting my question to go HNQ.
 
0
Q: Count SemiPrimes task from Codility

Karol BorkowskiI'm trying to solve the following exercise from codility: A prime is a positive integer X that has exactly two distinct divisors: 1 and X. The first few prime integers are 2, 3, 5, 7, 11 and 13. A semiprime is a natural number that is the product of two (not necessarily distinct) prime numbers. ...

 
1:07 PM
@pacmaninbw No one ever does
 
For code review you can post your question here at code review siteAnoop Rana 19 secs ago
 
1:25 PM
@DerKommissar Now if I can only get another Nice Question badge. :)
A good question badge would be better.
 
I'm sure it'll happen
 
@DerKommissar Well over 6 years, 1 Notable Question, 3 Nice Questions. The notable question was also an HNQ.
 
Idk what I have, I don't honestly worry about it anymore
 
:)
Yeah, I understand, I have 8 gold badges, no real need to worry about badges any more.
 
I honestly don't worry about my SE stats at all anymore lmao
 
1:39 PM
Still haven't gotten to 20,000 Rep, but not worried about that much either. That I will do at some point.
 
Periodically I log in and see a +20 or so
 
Good answers take a long time to accumulate rep points. Mostly every answer is an asset.
 
Yep, exactly
Plus since SE retired the Jobs product I lost interest in boosting my rep
I got 2 jobs through the SO Jobs product, super disappointed it's gone now
 
I am too.
 
"It wasn't making money!!11!1!" well fix it, it was a good concept it just needed some fine-tuning
When the going gets hard though, apparently they just ditch it
 
1:43 PM
Doesn't fit with their SO Teams model as well.
 
Nothing fits with SO Teams
It's trash
 
That one is a garbage product
 
Company wikis are probably a better idea. Define the processes and procedures and have a FAQ to augment it.
 
1:45 PM
Not a big fan of share point, but that can also be used.
 
We use MediaWiki for ours lmao
 
@DerKommissar What do you use for a document repository?
 
What do you mean?
MediaWiki is what we use, HR has a WordPress site as well
Those are it
 
A place to store requirements and design documents.
 
Ah, LucidChart
Or LucidSpark
 
1:49 PM
Didn't here of them till now, just checked their website.
 
They're solid tools
Not "great" but acceptable
 
I can see the value of an online whiteboard.
If it stores audio as well as video, that is even better. Save the chalk talks.
 
Idk if it does, but it does work fairly well as a group whiteboard
 
2:46 PM
Asking for opinions is usually off-topic on stackoverflow, this question will likely be closed. However this would fit probably well on Code ReviewApolo 41 secs ago
 
2:57 PM
0
Q: Best practices: Functions return's value as value?

filoscoderI've been always trying to write readable code which leads me to make the next affirmation: Avoid the pattern: function return's value as value" Keep in mind that affirmation and let's say you are on a PR review then check the following snippet: // rest... // itemIds: Array<string>; // root: ...

 
 
1 hour later…
4:12 PM
0
Q: C++17 view over the Ith elements of tuples in containers of tuples

Joao TavoraFor mainly didactic reasons, I have designed my ElementsView<I, T> class template, which provides a view over the I th elements of each tuple contained by a given container T, provided that container supports operator[]. The entry point is the factory function template animal::util::elements<I>(...

 
Monking
 
 
1 hour later…
5:28 PM
0
Q: How to replace if-else construction in Python with get method

dokichanI have this function in python: def executecommand(call): if call.data == "/getpair": return getpaircmd(call.message) elif call.data == "/menu": return menucmd(call.message) elif call.data == "/setalarm": return setalarmcmd(call.message) And I was trying to re...

 
5:53 PM
0
Q: Understanding the output of enumerate function in python

Subhassh MahenthrenI am trying to understand the output of the enumerate function in the code below, a = (2, "this is a string", 4, 3.5, "another string") b = enumerate(a) print(b) for which the output is <enumerate object at 0x00000191D04F79C0> Process finished with exit code 0 Now, I know that as per documenta...

 
6:07 PM
Yes, because the code is already working then that's a better place. One example: codereview.stackexchange.com/questions/103941/…m4n0 23 secs ago
 
@Mast Thanks for the edit.
 
6:44 PM
0
Q: Chemfig: isomeri equilibrium

user3713179I spent a lot of time looking for the right coefficients of the two arrows, in order to align the three xylenes. There is probably a more elegant method. Could you suggest it to me? \documentclass{article} \usepackage[margin=1.5cm,top=1cm,headheight=16pt,headsep=0.1in,heightrounded]{geometry} \us...

 
7:09 PM
0
Q: Sidenav menu that appera when click on Button using Javascript

SnorlaxI have a side menu that appears when click on button, it works fine. But now I want to clean up my code, shorten it if possible. I was wondering if there is an easier and cleaner way to achieve the same result shown in the example below. I would like to reduce the css and delete the "setTimeout" ...

 
7:34 PM
0
Q: Created Simple Laravel Advert CRUD application, but i've got rejected. Job: Middle PHP Developer

БекзодI've made some test task for job applying: https://github.com/Bekzod101001/test.advertisements.backend.git And i've got rejected, employer said that it's not code, that Middle-leveled developer writes. I agree with him. What problems he detected in my code: No PSR array concatenation with "+" (w...

0
Q: another attempt to implement the tee command

MikeI implemented the tee command from linux. The program implementa the -a option Reads standard input until end-of-file, write a copy of the input to standard output and to the file named in argv[1]. This is another implementation of the tee command. I posted another code trying to implement the co...

 
7:59 PM
0
Q: Flatten an alternating series/parallel arbitrarily deeply nested array to a max-2 levels deep array

laggingreflexI have a "queue" like this: const input = [ 1, 2, [31, 32, 33], 4, [51, [521, [5221, 5222, 5223], 523], 53], 6, [ 71, [721, [7221, [72221, [722221, 722222, 722223], 72223], 7223], 723], 73, ], 8, 9, ]; It's an arbitrarily deeply nested array. Every alternating "d...

0
Q: Black jack game in C++

Andrei RostI developed a blackjack game. I am relatively new to c++ and OOP, so I am asking for feedback on what could be improved. This game features betting, taking a card, standing, and splitting a hand. Besides, it also has a dealer that takes when his hand is under 17 and stands when it is over. #include

 
8:14 PM
Codereview.stackexchange.com could be more suitable for this question — Your Common Sense 41 secs ago
 
8:25 PM
0
Q: How to avoid DRY in function PHP?

user258753I have some days in php practice. There is a following functon that groups data and returns: <?php function groupColumns($parsedColumns) { $groups = []; $response = []; foreach ($parsedColumns as $column) { if (!key_exists($column['group'], $groups)) { ...

 
8:40 PM
@CaptainObvious Answered.
 
 
1 hour later…
10:06 PM
0
Q: Python: Ensure an entry exists in only one document

JayCo741I have written a server-side app in Python that manages email by comparing senders against different lists and then dispositioning the messages according to which list the sender is on. As a side module, I wrote list_manager.py to ensure that a sender exists on only 1 list. It works, but it's a...

 
10:28 PM
@CaptainObvious Answered. Try the game, it can be fun.
@CaptainObvious Almost all the code to be reviewed is in a github repository and not in the question.
What happened to the graphs on the profiles?
The large version of the graph.
 
10:48 PM
@pacmaninbw do you mean the graphs under the Reputation tab?
 
10:59 PM
Yes
Thanks!!!
 
no problem
 
Sleep deprived today, brain dead.
Either that or I'm getting senile.
 

« first day (3300 days earlier)      last day (711 days later) »