« first day (2520 days earlier)      last day (1488 days later) » 

12:00 AM
RELOAD! There are 6440 unanswered questions (90.1402% answered)
 
12:27 AM
0
Q: Join ArcGIS tables in Python of plant greenness in response to prior month's rainfall

user5858I am using Python 3.8 with ArcGIS Pro 2.5. This code creates a joined table where I match values for plant greenness in the current month with rainfall X number of months into the past. Each loop iterates through about 600 files (the number of files in ws1 and ws2). The code works perfectly but s...

 
"Are they're other ways to make it run faster" is very vague. Probably yes but there could be a million ways and SO is not for code review — TheGoldKnight23 17 secs ago
 
1:00 AM
possible answer invalidation by Clarinetist on question by Clarinetist: codereview.stackexchange.com/posts/239504/revisions
possible answer invalidation by German on question by German: codereview.stackexchange.com/posts/239527/revisions
 
1:20 AM
possible answer invalidation by German on question by German: codereview.stackexchange.com/posts/239527/revisions
possible answer invalidation by Clarinetist on question by Clarinetist: codereview.stackexchange.com/posts/239504/revisions
 
1:43 AM
0
Q: Instagram Scraping Using Selenium

AlexDotisPython script that can download images and videos of the user, like Gallery with photos or videos. It saves the data in the folder. How it works: Log in in instragram using selenium and navigate to the profile Check the availability of Instagram profile if it's private or existing Gathering ur...

 
 
4 hours later…
5:31 AM
0
Q: javascript-Location access in a web page

TheGuardenerI am creating web page in which I get user location and store it in an input field of a form using javascript. But perfomance is slow.Review my code and provide a better way. var LocArrayForPerfomance = []; LocArrayForPerfomance["longitude"]=document.getElementById("longitude"); LocArr...

 
 
2 hours later…
7:15 AM
possible answer invalidation by LinuxSecurityFreak on question by LinuxSecurityFreak: codereview.stackexchange.com/posts/239490/revisions
 
 
2 hours later…
9:07 AM
thanks! I didn't know about Code Review! — Dani6540 42 secs ago
 
9:36 AM
-1
Q: Getting data from the angular router

RMoI am updating my page title and an the text in a html element ( with the pageTitle variable ) in angular 9. ActivatedRoute is being used here to get a snapshot. I was wondering if I could extract the same data from the Router's event I subscribed to and if I am using the correct RouterEvent. Not ...

 
10:32 AM
0
Q: My Django custom user model

Saad SawashI followed a video on YouTube to create a custom user model, this is my attempt: # Django Imports from django.contrib.auth.models import AbstractBaseUser, BaseUserManager from django.db import models # The Custom (UserManager) Class class UserManager(BaseUserManager): # Defining A Function ...

 
11:02 AM
If the code works, I think this is could be asked in codereview. — Dani Mesejo 29 secs ago
 
 
1 hour later…
12:05 PM
@Duga Handled
@Duga Seems fine, idk
@Duga Can someone check this. I'm fairly incapable of understanding C++
 
12:30 PM
possible answer invalidation by Peilonrayz on question by pablowolf96: codereview.stackexchange.com/posts/239524/revisions
 
0
Q: Can we remove the need for titles to be unique

PeilonrayzI came across the following title on the HNQ list. I made a Guess the number game in Python This is a pretty poor title, but the OP isn't to blame for this. As you can see the title almost definitely started off without the "I made a" section as "Guess" starts with a capital "G". When I tr...

 
Moning
 
0
Q: My first code - looking for feedback on best practices and things I should avoid doing in the future

Dani6540After just learning a bit of Python I tried coding something myself. I attempted to do a game of Blackjack, which is far from perfect, and still doesn't have some rules a real game has (in my game an ace is always 11 points, whereas in reality it can also be counted as 1 point). There is howeve...

 
 
1 hour later…
1:59 PM
0
Q: Controllers are getting big

AdmiralThrawnI have a PHP CodeIgniter website that collects volunteer registrations. One thing I have noticed is that the controllers are getting really big. The controllers have many methods, and each method is fairly long. I believe this could be a code smell, and I would like some help and advice on how to...

 
2:28 PM
Why is code review site in read only mode?
@Peilonrayz Needs rollback, but code review is frozen.
 
Huh, how do you one box twitter posts... :/
 
2:57 PM
-1
Q: count Length of each sequence of chars according to start and end characters

farhad-taranI am trying to work through this interview question but however I look at the problem statement and the examples provided I cant help but come to the conclusion that the "example 3" and "test case 2" are wrong. problem statement: You are working on developing a movie with Amazon Video that co...

0
Q: Checksum a Game Boy cartridge

S.S. AnneI wrote a program to insert a checksum into a Game Boy cartridge. Here is a spec of the cartridge header, but I'll include the relevant information here, as well. The header checksum is defined as the sum of the bitwise-NOT of the 52nd through the 76th bytes of the file, inclusive. The global c...

 
3:19 PM
I think this question may be more likely to get help on Code Review, since your code works as expected but you're looking for improvements for efficiency: codereview.stackexchange.comdspencer 47 secs ago
 
3:55 PM
0
Q: Group chars in an array if they have the same start and end elements

xerxesI am trying to work through this challenge, I have come up with a solution but however I look at the problem statement and the examples provided I cant help but come to the conclusion that the "example 3" and "test case 2" as explained in the problem statement are wrong. I would appreciate it if...

0
Q: create vscode tree item extesion

Jenny MI use the following code to add tree item to vscode extension, Im geeting the data and build the tree according to the entries I got, the code works. As I new to typescript I appreciate your feedback export class TaskTreeDataProvider implements vscode.TreeDataProvider<TreeItem> { private _on...

 
4:25 PM
@pacmaninbw Sure? There's an answer posted after the edit. Makes things complicated.
 
@Mast I think there was only one answer when I looked at it.
 
@pacmaninbw Not anymore :-)
 
possible answer invalidation by S.S. Anne on question by S.S. Anne: codereview.stackexchange.com/posts/239560/revisions
 
-1
Q: Data management for buses and and employees

FrenchieI am relatively new so any help would in improving this and future codes. The code involves basic file management for two different files, one for buses and another for the employees and I am not very experienced with file managing so expect some problems #include<stdio.h> #include<stdlib.h> #in...

 
4:35 PM
@Duga Race condition.
@Feeds I'm quite torn on that one.
 
@Mast It is not really a violation, they left the original code and added the full code below. Leave it as it is.
@Mast Understood.
 
4:51 PM
-1
Q: Grouping people (that live close together) in a group using pandas dataframe

PParkerNote: the following code is kind of working, but it's not really doing what I want it to do. I hope this is okay and doesn't violate this community guidelines!!! If so, please apologies! I hope you can give me some advice about how to solve my problem. Maybe you have a much better / simpler idea....

0
Q: Speeding up code check where a permutation with one fixed point can be rotated into one with two fixed points

Viktor GlombikA friend gave me the following riddle: Given n people with n distinct names, you place n names tags on a round table. If the n people now sit at at the table randomly such that exactly one person sits correctly, can we rotate the table such that (at least) two people sit correctly? For odd ...

 
5:18 PM
(4) Because this question is very much opinion-based, a far more suitable place for this is Code Review SE, with a bit of rewording, of course. You may get more useful ideas there. Otherwise, the only straight answer you can get is "it depends on what you are trying to do" (regarding interface design). — Vector Sigma 19 secs ago
 
5:29 PM
0
Q: Make querySelector in kotlin-js more convenient and type-safe

K.H.I'd like you to take a look at those extension functions, I made in kotlinjs: inline fun <reified E : Element> Element.queryHtmlSelectorOrNull(selectors: String): E? { return this.querySelector(selectors = selectors) as E? } inline fun <reified E : Element> Element.queryHtmlSelector(selecto...

 
5:48 PM
0
Q: Arduino Conways Game of Life using FastLED

HSchmaleSo I attempted to write Conway's game of life on an Arduino and display using the FastLED library. I use a custom bitset class to manage the game board state. I'm looking for feedback on performance, and general code style towards embedded systems. I should note that my led strip is a little bit...

0
Q: increase speed & lower memory consumption of text normalization function

Des GrieuxI'm trying to preprocess a large text document. I've written a text normalization function which takes a disproprtionate amount of time and memory. How can I format the function to lower these two? The time result below was for this example. t = "Lorem ipsum dolor sit amet, consectetur adipisci...

 
6:07 PM
0
Q: Inserting values to google sheet cells

JamikI have a function that updates some cells in a sheet, by inserting the values from another sheet: function updateOverviewSheet(dest_sheet_id, ref_sheet_id, FirstName, LastName, t_id, City, Position) { console.log('Entering updateOverviewSheet() >>>>>'); var destinationSheet = SpreadsheetApp....

 
6:26 PM
0
Q: Refactor nested 'if' statment

Ayoub kI have the following deeply nested if statement, is there any way to refactor it in a better way? if (child.isCriteria) { if (child.answer.mark && child.answer.mark != 0) { fields.markedCriteria++; if (child.answer.mark != -1) { fields.markTotal++; } }...

 
6:44 PM
0
Q: N-Queens Puzzle

Henrik HansenThe N-Queens puzzle can be solved in many ways. One is by a depth-first-search backtracking algorithm. Below is my generalized version using mutual recursion: let dfsBacktrack initialValue solved getNextItems = let rec procCurrent path = match solved path with | true -> So...

1
Q: log_e approximation

akuzminykhThe natural logarithm can be approximated by the following formula: $$ln(x) = 2\sum_{k = 0}^{\infty}\frac{(x-1)^{2k+1}}{(2k+1)(x+1)^{2k+1}}$$ I've implemented this formula using Java. Parameter n is the amount of iterations to approximate the natural logarithm. static double lnApproximatio...

 
@Mast Well give it 10 years and I'm sure we'll either see people complain that it should be change. Or we'll start getting even more garbage titles like "xXxGuessingGamexXx" or "Guessing game in Python3.8.9 (number 10010), let me post this without complaining that my title is taken"
 
7:22 PM
0
Q: Typescript QuadTree

12345654321everybody. It took a tree of squares for my web game. I wrote a preview using Typescript. I would like to hear from you tips on how to improve the code (I just started writing in Typescript). First of all, I would like to improve performance. I have a couple of ideas but I don't know how to impl...

 
8:00 PM
0
Q: Web Scraping with Python

Viktor StefanovMy target website is https://www.indeed.com/. I tried to implement the scraper such that it is convenient for the end user. I am introducing my code in the readme file on my github repo. I am somewhat a beginner in programming so I am looking for guidance on things such as if the libraries that ...

 
8:19 PM
-1
Q: Regex expression yielding only one result (expected more)

atavaSorry, the cause for this must be silly but I don't have much time to dig in. The simple regular expression shown below yields (as it should) two matches when tested online (at a testing service, Regex Storm), but in code I'm getting only one result, as can be seen from the Watch). Why is it so...

 
8:37 PM
0
Q: A register of government decrees, authenticated with blockchain and public key cryptography

Tom HoskerThe full repo is here, but I'll post the most important extracts below. Background I'm trying to get the hang of blockchain and public key cryptography, so I thought it would be fun to create a program for drawing up and promulgating government decrees - the government in question being one tha...

 
9:15 PM
-1
Q: setupUi() missing 1 required positional argument: ''

Younes Rahni Rahnihope you're good , so i'm very new in python and in programming in general , so i'm following youtube tutorials and courses , and for my first project i want to create a database management for my company , and i'm using pyqt5 for the GUI's ,and i want to create a login panel and when i click on ...

 
9:44 PM
No, never mind: this question would not fly on Code Review as it is totally off-topic there as well. — Hovercraft Full Of Eels 52 secs ago
 
-2
Q: SFSpeechRecognizer doesn't fire recognition closure

Alex HolxeyI have to use AudioToolbox instead AVAudioSession for providing stream to SFSpeechRecognizer. So I made an audio recording with AudioQueue for export to CMSampleBuffer to read it with recognizer. And while debugging I see that the buffer is added to SFSpeechAudioBufferRecognitionRequest, but the ...

 
10:49 PM
0
Q: Dictionary or Custom Collection

inikiI have a list of rule names coming from .xml file. These rule names needs to be validated against rule names in database(Validator.cs). If valid, then Id of these rule names are used to fetch user data from database(ExportService.cs). I am using a Dictionary object to save name, Id pair from ...

 
11:46 PM
0
Q: Group data based on dates to populate a Material Angular table with rowspans

joyBlanksI have this method that attaches the year and year's rowspan for a TD and Quarter and a Quarter's rowspan for the TD. Year and Quarter are 2 columns in an Angular Material Table which are calculated from an array of objects one of which property of the object is a date string. Here is a demo fo...

 

« first day (2520 days earlier)      last day (1488 days later) »