« first day (2960 days earlier)      last day (1354 days later) » 

00:02
RELOAD! There are 7632 unanswered questions (89.4148% answered)
 
2 hours later…
01:49
0
Q: jQuery: Scrolling down into a content

OmarI got tasked to develop an accordion-like function for a webpage. The header will always be visible, while the main content (and footer) be styled as display: none; At the end of the header, there's a button. Clicking on it will trigger my jQuery code. The code should set <main> as display: bloc...

0
Q: Why wont this code work?

user243599Im taking a php programming course and we're on the final. The guy teaching is splitting the header, footer, and nav into separate php files and then the nav items into their own arrays.php file to be called in nav.php with a foreach loop. I wrote it how I thought and got and error, tried fixing ...

0
Q: Fuzzy Search Table Widget in FLTK-Rs

ANimator120I'm building a fuzzy search table widget in FLTK-RS. On my pretty decently spec'd machine I'm getting pretty laggy performance, does anyone have any thoughts on ways to improve this? If you'd like to clone it from a repo, here's a link to a repo: https://github.com/wyhinton/search_table_testing f...

02:13
0
Q: Node.js Service Registry

Sayaman register(name, version, ip, port) { this.cleanup(); const key = name + version + ip + port; if (!this.services[key]) { this.services[key] = {}; this.services[key].timestamp = Math.floor(new Date() / 1000); this.services[key].ip = ip; this.services[key].port ...

 
1 hour later…
03:41
Monking
1
Q: Scala Parentheses Balancing in Functional Programming

Julian EspinelI was working on the problem to check if the parenthesis are balanced using Scala. Examples: balance("(Hello (my) name is (StackOverflow))") -> True balance("(Hello (my) name is StackOverflow))(((((((") -> False The following implementation is working, however I'm wondering: What would you sugg...

04:39
0
Q: Best practice to denote circular references in typescript classes and objects

Seth LutskeSetup I am writing a class based, object oriented algorithm in typescript. In many cases, a class will create another child class, passing itself as an argument to the child class. For example: interface RoomDetails { name: string; items: string[]; } class House { rooms: Room[]; const...

05:03
0
Q: input month name correspond to the number and dectect if it correct or not

Truong TakaI want my program result to be like this Month 9: July wrong where 9 is the random number using random and July is the input using scanner I did something wrong and my code does not funtion, please help me solve it Here is my code import java.util.Random; import java.util.Scanner; public class ch...

05:26
@CaptainObvious broken
 
1 hour later…
06:39
0
Q: Passing queue handles between worker processes, preferably so that only involved workers have access

Andreas SchuldeiI am planning to use mptools in a project. This is the architecture of the processes and queues as I envision them right now: This is a little similar to what Pamela (who wrote mptools) implemented in her example in the mptools Github project and explains in her talk at python conference 2019. I...

07:04
Monking
@CaptainObvious Closed
 
1 hour later…
08:12
Monking
09:05
0
Q: Implementation of queue Message class, so both small text messages and big binary messages can be passed

Andreas SchuldeiI want to use mptools in a project. In my code, I need to pass both big Numpy arrays and short text messages between projects. It would be nice if both kinds of messages could go over the same type of queue. Currently, the messages are implemented very nicely like this (in line 75): # -- Standard...

 
2 hours later…
11:23
Welcome to SO! Is there any problem with this code? If not, then you'll benefit posting the question on Code Review. — rawrex 13 secs ago
0
Q: A simple clusterness measure of data in one dimension using Java - follow-up 2

coderodde(See the previous version here.) This time, I have encorporated all the suggestions made by Marc. Also, I changed the type of points from double to Number. My newest version follows: com.github.coderodde.codereview.notepad.ClusternessMeasure package com.github.coderodde.codereview.notepad; impor...

11:56
0
Q: Converting a string to an array of integers

J86I am dealing with a string draw_result that can be in one of the following formats: "03-23-27-34-37, Mega Ball: 13" "01-12 + 08-20" "04-15-17-25-41" I always start with draw_result where the value is one from the above values. I want to get to: [3, 23, 27, 34, 37] [1, 12, 8, 20] [4, 15, 17, 25, ...

12:44
And second, on the rewriting shared history stuff, it sounds as if you're saying that if I try to rebase and force push my branch after I create the PR, then: (i) I push those changes, (ii) another developer could merge them into develop by mistake while the PR is still awaiting review, (iii) the code review takes place and minor changes are requested, (iv) I make those changes in my branch and I rebase before pushing them, (v) since develop now mistakingly has my previous commits in it, the rebase is now replaying my prior commits over my own branch which can cause problems... — hotmeatballsoup 23 secs ago
...Is this the problem you're talking about? If so, I would think the solution is to just prevent developers from bypassing PRs and pulling feature branches into develop before they pass code review, right? — hotmeatballsoup 29 secs ago
13:15
This site isn't the best place to ask such questions. I was going to send you over to Code Review instead, however the specifically recommend that you ask over at Software Engineering. — Chris Haas 56 secs ago
13:58
1
Q: Generalization of memcpy

tommschI have to deal with raw memory manipulation. For that I wrote me a function which stores data one after another, and another function which reads this data and stores it into variables. More precisely: /** * - `void * pack( dest, src1, ..., srcn )` * `void * pack( void * dest, src1, ..., srcn...

14:42
Maybe more appropriate for codereview.stackexchange.comMark 42 secs ago
14:55
Monking
 
1 hour later…
15:59
0
Q: Installing packages if they don't exist in Bash

T145This simply installs chosen packages if they're not present on a Linux system using the apt package manager. Notes on improvements from any aspect are welcome! setup_env.sh #!/usr/bin/env bash set -euo pipefail install_if_not_exist() { if dpkg -s "$1" &>/dev/null; then PKG_EXIST=$(dpkg -s "$1

16:13
Monkinh
0
Q: C# Debiasing from Good PRNG

pepoluanI am in need of a "debiased" clamp function, to generate a uniformly-distributed random number from a good PRNG. Let's assume that RNG in the below code is a field containing an instance of a good (or good enough) PRNG such as PCG, Xoshiro, or MT, which produced a reasonably-uniform distribution ...

17:12
0
Q: How to do cURL query instead of webscraping?

guialmachado(please dont downvote, comment where I should ask this) I am trying to learn / understand how to do cURL query using python. The website I am trying to get infos from is https://sale.kaddex.com/stats What I am currently doing is to scrap the table from the website, but I want to be able to reques...

18:01
0
Q: Computing the angle between two vectors (vectorized) for small angles and with few copies

FirefoxMetzgerI am implementing a function that computes the angle between two vectors when given two n-dimensional arrays and an axis along which to operate. I want to do this with as few copies as possible, and as numerically stable as possible. (The latter gets problematic for small angles (see here)). What...

18:19
Two of the given examples fail, so it's a bit early for code review: 192.168.0.1 is reported as invalid, because the sum of the ASCII values of 192's digit exceeds 156 -- what is that test about? 280.100.92.101 is reported as valid, because checking whether the first of three digits is 3 or more is not enough to catch all numbers greater than 255. — M Oehm 39 secs ago
0
Q: C# A function to make custom requests

SharkiThis method is supposed to make a custom requests and then get its response. Sometimes, the response is a string, and most the time the response is in JSON format. As far as I know I can't have a function which returns either a string or a json format. So because of that I have the same method tw...

18:49
0
Q: Function to check whether a given string can be a valid IP address or not

josh_3501Honestly, I think the code which I've written is trash and I don't think it's the best way to solve the problem. I need a few suggestions or improvements to solve this problem. I'm still new to coding. Appreciate it if you can give some tips on how to work with strings and various string function...

0
Q: I m getting a error for this code. Two test cases are giving a TLE. Why?

AnveKThis code is working well for majority of test cases, but there's one case where the input vector is only containing zeroes, for which it is not working out, I dry runned the code and it seemed to work. I couldn't figure out why it is not working? [Problem]https://leetcode.com/problems/3sum/ clas...

 
1 hour later…
20:09
Asking for feedback or reviews of working code is off-topic here on SO. Try codereview instead. — super 16 secs ago
So apparently I'm 20k rep now
@DerKommissar Congratulations on reaching 20k rep!
Thanks I suppose
Not sure how I feel, because I haven't actually posted on the site in months
You're also 16 votes away from Electorate, it seems.
So I'll have that in 2 months lol
20:16
@DerKommissar I understand, but you have so many posts that you'll be gaining a few hundred reputation a year at least even if you stop contributing altogether.
Rep != activity.
Fair, still feels weird
I guess I can feel glad that my answers and questions are "high enough quality" to generate ~50 rep a month
scoff It's not even about quality.
I have a very poor SO question that still generates reputation every so often.
It's popular, not good.
I only have about 275 total questions and answers
I'm at 157.
This is my top SO answer
42
A: Why the "View Heap" result does not match with 'Process Memory Usage' in Visual Studio

Der KommissarWhy does the View Heap size not match the memory chart size? There are dozens of potential reasons for this, including JITter, Debug Tools, Debug Symbols, Just My Code, Garbage Collection et al. We'll go through two of the big ones. Just My Code The Just My Code feature of Visual Studio tends ...

20:20
If your posts are good and of value, great! I know at least some of them are.
I've been getting 1-2 upvotes a month it seems
Mostly random questions
@DerKommissar hey, that's a lot better than my 33 scored "Hey if you want to access an array index you might want to use an indexer"
@Vogel612 LMao
I had a question like that on Server Fault
0
Q: Rate Limit Xen DomU Network Traffic

Der KommissarIs there a solid way to rate limit Xen DomU Network I/O Traffic? I found an answer on here using tc but I get this error: Object "qdisk" is unknown, try "tc help". I guess a solution to either of these problems would be excellent.

Read the answer
It's glorious
On SO I'd close that as being caused by a typographical error
lol
20:23
And damn that was so long ago
@SᴀᴍOnᴇᴌᴀ I think the Server Fault guidance is the same, not that it's enforced very strictly.
> "the code is more what you'd call "guidelines" than actual rules."

-Barbossa
Anyway "I can't spell for $#!" is the theme for my life
@SᴀᴍOnᴇᴌᴀ That is factual
I'm scoring top 20% this quarter on SO...
@DerKommissar I've actually thought that about CR lately too
Nice!
20:26
Most of that is from this piece of garbage.
18
Q: What are our answer editing guidelines?

amonOn this site, we have a well-known policy on editing code in questions: Don't. After all, that code is up for review, in all its glorious ugliness and buginess. But clearly, such reasoning cannot apply equally to code in answers. I was therefore surprised to find that a nice edit on one of my an...

@Mast That's not garbage
That's a good question
You present the exact problem case, and there's no room for misinterpretation.
The fact that the answer is "you can't, not directly" isn't your fault
@DerKommissar Thanks, that makes sense.
@SᴀᴍOnᴇᴌᴀ Pirates of the Caribbean quote?
@Peilonrayz yes - by Barbossa
20:34
Nice
Trivia, but searching for that quote makes you end up in odd places like here and here.
21:32
No, sorry - it still doesn't make much sense. You seem to be asking for advice on how many/what test cases you need to write (or how better to write them) to meet some unknown requirements. Without more details on the functionality you are exercising I don't think we can help you. It also sounds like this is more of a question for the code review site, not stack overflow? — JohnXF 54 secs ago
 
1 hour later…
22:55
0
Q: Representing Tic-Tac-Toe using a binary BitBoard

N3buchadnezzarSo I have been learning more about binary numbers lately, particularly in related to describing a gamestate. While perhaps chess is the most natural candidate I wanted to start of with something simpler. So I choose tic tac toe. For reference I used the following source, bit it not required to un...

This question has no concrete answer and is opinion based. Perhaps try code review stack exchange. — Nikki9696 32 secs ago
23:26
@Nikki9696 Code review is specifically for finished working code (which this is not). Please do not suggest users post on another SE site unless you're very familiar with that site and what types of questions it considers acceptable. — Servy 30 secs ago

« first day (2960 days earlier)      last day (1354 days later) »