« first day (3689 days earlier)      last day (321 days later) » 

12:10 AM
REFRESH! There are 7306 unanswered questions (90.5181 answered)
 
 
5 hours later…
4:55 AM
0
Q: Naming of api calling methods to get an object by two different properties

monamonaI have the situation, where I have to methods in my api calling class that do basically the same thing. I have a profile that contains multiple account objects. These objects have their own UUID as a string and the profile has a unique Integer value as an identifier. I want to get the object once...

0
Q: Printing a number in binary in C

user16217248I wrote a short function whose purpose is simple: Print the binary representation of number to the console. I also aim to be as portable as possible, hence my use of CHAR_BIT and + instead of | in case the character encoding for '0' happens to be odd. Is my code as good and portable as I intended...

 
 
2 hours later…
6:32 AM
possible answer invalidation by monamona on question by monamona: codereview.stackexchange.com/posts/285441/revisions
possible answer invalidation by monamona on question by monamona: codereview.stackexchange.com/posts/285441/revisions
possible answer invalidation by monamona on question by monamona: codereview.stackexchange.com/posts/285441/revisions
 
7:30 AM
0
Q: How to disable row shifting when column is sorting in datatable?

Mansour DalirWhen it is sorted, when I give a value to the cell, the row moves. I don't want this to happen. I work with DataGridView and DataTable .thank Dim MyDataTable As New DataTable MyDataTable.Columns.AddRang("id","f1","f2","f3") MyDataTab.Rows.Add("1","a1","b1","c1") MyDataTab.Rows.Add("2","a2","b2","c2"

 
@Duga Rollbacked
 
No @Luuk , broken code is not ready for review until it's fixed. — Toby Speight 48 secs ago
 
 
2 hours later…
10:05 AM
0
Q: Security in a small web app using nodejs express and sqlite3 with user accounts

mintbitThe app is foundation for a forum. For now it allows to create account and change user data. Sessions and users are stored in sqlite database. The database has 2 tables: user (id INTEGER PRIMARY KEY AUTOINCREMENT, username text unique NOT NULL, passhash text NOT NULL, bio text); usersession (id I...

 
10:31 AM
0
Q: Exercise: Write the String.contains(substring)-method yourself

michael.zechThe task is to write the String.contains()-method oneself. The method has to ignore cases. Here is my implementation: extension String { func fuzzyContains(_ substr: String) -> Bool { var i = 0 var curr = substr[substr.index(substr.startIndex, offsetBy: i)] for char in...

 
Monking
 
11:02 AM
Mr.FaneDuru , your answer works perfectly with me, I am just curious is the same result could be achieved without using a helper column by using your splendid way (Dictionary+Arrays)? if the answer is yes kindly advice me to ask a new question here or on Code Review ? — Waleed just now
 
 
2 hours later…
1:06 PM
0
Q: A test class for a REST application

SergeyHere's a suite of integration tests for my REST controller. Among other thing, it reflects my efforts to reduce code duplication. First, I introduced some class fields. token was initially a class field initialized in the constructor too (the fact that you see an explicit no-args is a relic of th...

0
Q: Optimizing char array iteration in C for intel processors

HeapUnderStopThis function may compute the amount of unequal elements of two char-arrays of the length n: size_t difference(size_t n, const char a[n], const char b[n]) { size_t res = 0; for (size_t i = 0; i < n; i++) res += a[i] != b[i]; return res; } How can I make the iteration faster r...

 
1:25 PM
@CaptainObvious Missing review content.
 
 
1 hour later…
2:39 PM
Monking
 
Monking
 
3:11 PM
Opinion based. More appropriate on codereview.stackexchange.commatt 44 secs ago
 
3:38 PM
Monking
 
 
3 hours later…
6:17 PM
0
Q: Implementing PLU Decomposition in Rust

RainbI am using abstalg, because I wanted to learn more about how to do this with generic fields, (So you can implement LU decomposition not just for floats). I used Matrix2D to wrap my behaviour and data (essentially like a view of the vector, the reason it is used is because MatrixRing from abstalg ...

 
7:08 PM
0
Q: Simple Kotlin Bingo Class

Aaron LiuThis is a simple class in Kotlin that handles three basic Bingo-related functionalities: Specifying the numbers, generating a card, and calling one random element. Additionally, it should support an empty constructor, and support Discord Emoji output, in which there should be no spaces between an...

0
Q: A file renamer in Perl that gets rid of spaces, commas, dots, and dashes

badukerI often find myself working with files I get from other users that mostly work on Windows machines (I, myself, am on a macOS) and they tend to name their files in all sorts of (weird & difficult to handle) ways. For example, the files I get may contain any or all of the following: a space a dash...

 
7:34 PM
This question seems more fit for Code Review, but for a start I would look into handling wrong input. You can check if an item exists in a store, e.g. if item in all_stores, so you don't raise a KeyError when checking out an invalid item. — B Remmelzwaal 37 secs ago
 
 
2 hours later…
9:18 PM
0
Q: Movie genre classification using machine learning

Thirupathi Thangavelcould you review my below code to train a machine learning model to classify movie genres? I've used the data from Kaggle #!/usr/bin/env python # coding: utf-8 import pandas as pd import numpy as np import ast import joblib from collections import Counter from sklearn.model_selection import tra...

 

« first day (3689 days earlier)      last day (321 days later) »