« first day (2206 days earlier)      last day (1816 days later) » 

12:00 AM
0
Q: Population dynamic simulation on biological information maintenance 2

benjaminaaron_mThis question is the follow-up to this previous question. Background Using this simulation I investigate a system in which enzymes proliferate in cells. During the replications of enzymes, parasites can come to be due to mutation. They can drive the system into extinction. I'm interested in whe...

 
RELOAD! There are 6049 unanswered questions (89.8580% answered)
 
12:57 AM
0
Q: Copies local files to remote IIS server

Rilcon42I have written a script that: connects to an IIS server stops a website copies its files to a backup folder (on the remote machine) copies files from my local machine to replace the ones on the remote IIS server then relaunches IIS. The script works, but I would love to make it cleaner (I p...

 
1:16 AM
0
Q: Alert about duplicates and remove them

KristenLSo I want ask if I'm doing it right way. Im still learning.. I want check textarea duplicates and alert if duplicate and remove it. $(document).ready(function(){ $('#lol').keypress(function(){ var data = $('#lol').val().split('\n'); var result = data.filter((word, i, arr) => arr.inde...

 
2:06 AM
Hi Lim. This question is ideal for the Stack Exchange - Code Review sister site. If you post your question there, please delete this question here. — Ian 1 min ago
 
2:34 AM
0
Q: Wait free triple buffer primitive

AlterionXI'm trying to write a triple buffer that's wait free for a update + render loop after being bitten by lock starvation one too many times (on a different project, using a library). For reference, a triple buffer is effectively a single producer, single consumer channel, that allows for the produc...

 
 
2 hours later…
4:34 AM
0
Q: Gram-Schmidt process in Java for computing independent bases in linear spaces

coderoddeGiven a set of \$k\$ \$n\$-vectors \$x_1, \dots, x_k\$, Gram-Schmidt proces computes a basis \$y_1, \dots, y_m\$ (\$m \leq k\$) the vectors of which span the same space as \$x_1, \dots, x_k\$ but are mutually orthogonal: \$(y_i, y_j) = 0\$ for all \$i \neq j\$, where the parentheses denote inner ...

 
 
2 hours later…
6:31 AM
0
Q: Near immutable, thread safe Builder

Viplav KumarI'm writing a torrent streaming client. The plan is to wrap WebTorrent-cli and provide a Java interface to observe download state, cancel or pause downloads etc. Anyways, I came up with the following DownloadManagerImpl. I want the instances to this class be immutable, strictly enough that they ...

 
6:44 AM
[container] to store sorted [integers] in a very RAM efficient manner If this is the main goal (and not the mechanics of handling the two-level design presented), thinking sparse set may help. (Data compression is not as likely to be helpful as there still is little re random access.) Try to code The Simplest Thing That Could Possibly Work (and some harness to show it at work): you can try to sort out issues you have with that approach on Code Review. — greybeard 18 secs ago
 
 
1 hour later…
7:48 AM
0
Q: Usage of TPL on file unpacking

NamelessK1NGi've been working on an implementation of a my own from scratch set of library Astron and I wanted to get my TPL usage reviewed because i'm not confident with this technology :/ My app is currently unpacking .d2p files, which is a custom file format from a french game called Dofus, it's simply a...

 
 
2 hours later…
10:04 AM
0
Q: Postfix calculator in Java

Lim HyungangThanks for your click. Before the question, I notify that It's my first time in 'stack exchange', so my question form may not fit your general rules. I'm sorry about that in advance. and my awkward English too :(.. Now, Here are my questions. I wanted to make postfix calculator in Java and m...

 
10:22 AM
I'm voting to close this question as off-topic because it is a question about code review an should be ask at Code ReviewJens 28 secs ago
@Jens ok, I didn't know that this kind of question should be ask at codereview.stackexchange.com. I will ask it there. Thanks. — Samet Baskıcı 1 min ago
 
10:43 AM
0
Q: How to permute two elements in Python?

Jianrong LiI am trying to write a function on Python to permute two elements in a list. But it has some errors and I could not figure out. def PermutationActionHalf(i, v1): v=[] for j in v1: v.append(j) print(v) v[i+1]=v1[i] v[i]=v1[i+1] return v I am new in Python. Maybe there are some obvious mis...

 
 
1 hour later…
12:00 PM
0
Q: Multi-dimensional utilities

L. F.I implemented some multi-dimensional utilities in C++17. Here's the header dimension.hpp: /** * @file dimension.hpp * Implements multi-dimensional utilities. */ #ifndef INC_DIMENSION_HPP_CAdUgZHijL #define INC_DIMENSION_HPP_CAdUgZHijL #include <array> #include <cstddef> #include <stdexcept>...

 
 
2 hours later…
1:56 PM
0
Q: Island Perimeter

thadeuszlayThe task is taken from leetcode You are given a map in form of a two-dimensional integer grid where 1 represents land and 0 represents water. Grid cells are connected horizontally/vertically (not diagonally). The grid is completely surrounded by water, and there is exactly one isla...

 
 
1 hour later…
3:14 PM
0
Q: Calculate function with optional operator argument

Dennis FinkI am currently learning javascript at university. We have an assignment where we shall write various functions for calculating values. In one case, we shall write a function which returns the sum of two values, if only those two values were passed as arguments. If there is the third optional argu...

 
3:26 PM
WTF SO, I'm asking a markdown/reST question, all the suggested questions are about Git and HTTP requests, and the suggested tag is Python... WTF
 
4:19 PM
Monking
 
4:32 PM
0
Q: Node.js DataBase class for adodb databases

MilesZewA while ago I was working on a multipurpose database class (an es6 javascript class) that works with any database supporting adodb. This class is a wrapper on the "node-adodb" npm library. This database class has four main methods, all of which process some options, passed in as parameters, into...

0
Q: Find All Numbers Disappeared in an Array

thadeuszlayThe task is taken from leetcode Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] inclusive that do not appear in this array. Could you do it without extra space and in O(n) runti...

 
5:30 PM
@Peilonrayz it's quite an imperfect system, yes.
 
 
1 hour later…
6:47 PM
1
Q: Dephi: faster way to convert a "dirty" string to a number

hikariHow can I make this code faster? the string can contain characters such as ", .?#" and possibly others. Const Nums = ['0'..'9']; function CleanNumber(s: String): Int64; Var z: Cardinal; begin for z := length(s) downto 1 do if not (s[z] in Nums) then Delete(s,z,1); if s = '' then Resu...

 
7:01 PM
I think you should try asking on code review instead codereview.stackexchange.comNanotage just now
 
7:26 PM
0
Q: Removing duplicate audio files with different UTC timestamps in filenames, using PowerShell 5

YosemiteI have a drive with many thousands of sound effects. The files have been stored on different operating systems and NAS devices over time and there are now duplicates of many files, but the filenames contain different UTC timestamps. For example: 1-14 Crowded Bowling Alley (2016_06_28 02_14_41 ...

 
7:41 PM
Perhaps a request for improvement should be on Code review. — Weather Vane 45 secs ago
 
8:23 PM
"haven't tried some improvements myself but failed" - so you failed while trying not to improve the code? If your code works, please ask on Code ReviewForceBru 41 secs ago
 
8:49 PM
You might need to ask more on this on a different stack-exchange-sites just to get more help with the reasoning. code-review, cross-validation and data-science are imo nice places to start. — SuperKogito 35 secs ago
 
9:23 PM
0
Q: chmod function is undefined in visual studio community 2017

user201057I just learned a little bit about c++ using visual studio in windows. And then when I want to use the chmod function, it said that chmod is undefined. Btw I use #include and #include and I'm not sure to which library its belonged. Can anyone please explain it to me what the problem is? Thank ...

0
Q: First Unique Character in a String

thadeuszlayThe task is taken from leetcode Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: s = "leetcode" return 0. s = "loveleetcode", return 2. Note: You may assume the string contain only low...

 
9:42 PM
0
Q: Could you tell me what's wrong with my Dijkstra's implementation?

PavelThe problem is from HackerRank. First I build a graph and return a source Node. The goal of it is to reduce complexity for further navigation between vertices as the usage of int[][] edges doesn't seem to me to be a clear way. After I think I follow Dijkstra's with PriorityQueue but it only work...

 
 
1 hour later…
11:00 PM
0
Q: Implementing custom observable classes

Adrian BrandI want to implement my own custom observable class so I can have a hierarchy of components and the closest defined configuration item bubbles to the front. <form controlClasses="formDefinedClass"> <group controlClasses="groupDefinedClass"> <control controlClasses="controlDefinedClass"></co...

 

« first day (2206 days earlier)      last day (1816 days later) »