« first day (3175 days earlier)      last day (836 days later) » 

12:00 AM
REFRESH! There are 8002 unanswered questions (89.2357 answered)
 
@Duga Good work, people! It's going back up!
 
12:35 AM
@SᴀᴍOnᴇᴌᴀ Definite trend, yesterday it was up as well.
 
1:24 AM
0
Q: Kotlin AsyncPriorityQueue

Caleb MooreUnbounded threadsafe suspending priority queue Items are ordered by an integer priority value passed into the enqueue() method dequeue() retrieves and removes the head of the queue or suspends until an item is available enqueue(item, priority) inserts an item into the queue. suspends while aquir...

 
1:49 AM
0
Q: Simple IP subnet calculator

KermitTheFrogHello everyone In this task I had to create simple IP / subnet calculator in Python. I'm just wondering how you see this problem. There is my code: def toBinary(integer): binary = ['{0:0>8}'.format(bin(int(x))[2:]) for x in integer.split(".")] return binary def ip_information(ip, mask): ...

 
 
2 hours later…
3:56 AM
0
Q: Hanged game in Python

Lucio MazziniI'm relatively new to Python, I've been using the language for about a month and I set out to do the hangman game. I would like to know if there are things to improve in the code of the program I made. This is the code: import random HANGMAN_PICS = (''' +---+ | | | | | ...

 
 
2 hours later…
6:05 AM
Monking
 
 
2 hours later…
7:45 AM
0
Q: How to write the copy constructor correctly for class that has collection of class with custom copy constructor?

bokaI have class CollectA which stores collection of class A. Both classes have pointers as there member variable so I had to write copy constructors for them. Do you think my current copy constructor for these classes are correct? I am just hesitant seeing all these new all over the place and wanted...

 
 
1 hour later…
9:02 AM
0
Q: TString - An implementation of std::string

Random_Pythoneer59I wanted to make a feature rich string in C++. Similar to one in python. I am using C++14. I have not added much yet, I just want to get my code reviewed to ensure I am going the right way. Questions Am I using new and delete properly? Is my class structure correct? Is my TString optimized well?...

 
 
3 hours later…
11:36 AM
0
Q: Slicing multi index DataFrame into JSON object

Jason LeaverI have a MultiIndex pd.DataFrame that I generated from a .txt that is forecast model data. DataFrame 0 1 2 3 4 5 ... 139 140 141 142 143 144 lvl props ...

 
12:02 PM
0
Q: Conditionally drop rows in grouped data.frame using dplyr in R

saQuistI have a data frame with columns for three predictors that try to predict the target variable 'change' with values 'yes' and 'no'. The data frame is grouped by id, and for every id, I have 4 years. Per id number, I want to summarize the combination of the predictors and the change-variable accord...

 
 
2 hours later…
1:45 PM
0
Q: Azure DevOps Code Quality

Simon PriceIm not sure if this is the right place in the Stack Exchange group of sites and if this could be asked elsewhere I ask that you direct me to the better place. I am working in a company where the code is shocking, and we are looking at introducing quality gates into the build process so that if th...

 
1:57 PM
Monking
 
2:18 PM
Monking
 
2:37 PM
0
Q: Readable? - meal calculator in Python

DexterDevOpsJust looking for a little feedback on the below tip calculator I've coded rounding the output to nearest 2 decimal places. Just wondered if it was readable and code friendly? Thanks bill = float(input("What was the total bill? $")) tip = float(input("How much tip would you like to give? 10, 12, o...

 
3:03 PM
0
Q: Python: generates Rolling date in reverse manner up to N number

Tony MontanaThis is my below code which accepts the date in specific format and generates the N number of rolling date which consists the first and last date of each month in reverse manner. import calendar from datetime import datetime, date def generate_rolling_date(input_date, number_of_dates): """ ...

 
3:38 PM
0
Q: 2021: a year in moderation

JNat As we say goodbye to the old year and welcome the new one, we have a tradition of sharing moderation stats for the preceding calendar year. As most of you here are aware, sites on the Stack Exchange network are moderated somewhat differently to other sites on the web: We designed the Stack Exch...

 
4:11 PM
Monking
 
0
Q: Error with a alphabet creator, unexpected value

Klayser#include <iostream> #include <fstream> #include <string> #include <map> #include <math.h> using namespace std; map<char, int> alfabeto = { { 'a', 1 }, { 'b', 2 }, { 'c', 3 }, { 'd', 4 }, { 'e', 5 }, { 'f', 6 }, { 'g', 7 }, { 'h', 8 }, { 'i', 9 }, { 'j', 1...

 
4:47 PM
Monking
 
5:38 PM
0
Q: Multistage Dockerfile to build a C project and copy things over to second stage

Node.JSI wrote this Dockerfile (multi-stage) where the first stage builds the project and in the second stage we just copy the stuff over. I am wondering can I please get some feedback? more specifically the use of apk add --no-cache --virtual= and how I install packages and whether I am following the b...

 
6:22 PM
 
0
Q: Syntax correctness of a windows batch script that reads key-value pair from a file

cbinderThis batch script is about setting the flag 'FIPS140_MODE_FLAG' to TRUE based on the contents of a file which contains lines of format X=Y (key-value pair). FIPS_HOME and ST_HOME are environment variables which will have the folder path where the file 'fips.txt' is located. If either of the envir...

 
 
2 hours later…
8:46 PM
Why is no one telling me that @Duga is not running?
 
hm
 
Also, why is my Jenkins not starting so that I can start @Duga?
Ok, nevermind. Running jenkins restart helped, but jenkins start did nothing. Weird.
2
 
9:14 PM
Maybe you should post your fiddle to the CodeReview site and ask for feedback. There are quite a few unusual things about that implementation. If you're using the aggregate root pattern, why does a country need the name of the planet it belongs to? Why does setCountryName require a country as a parameter, when it is an instance method? — Andrew Williamson 53 secs ago
 
9:57 PM
0
Q: is it a good approach to set state then execute instead of just tell to an object what to do?

J.J. BeamIs it a good approach or antipattern? proc=... proc.setPerformActions(performActions); proc.execute(); At first glance this is a strategy pattern, and then execute. But isn't this ugly?

 
@SimonForsberg you were sent an email about a 502 message ~19 hours ago... did you see it?
 
@SᴀᴍOnᴇᴌᴀ I did but I didn't pay too much attention to it, because those messages come every now and then when there's short outages 😅
 
@SimonForsberg a short outage typically would be indicated by the subsequent 200 response, right?
.... i.e. within 1-2 minutes*
 
@SᴀᴍOnᴇᴌᴀ Don't you better than to try to use logic?
 
@SᴀᴍOnᴇᴌᴀ Yup, but it seems I've gotten so used to them that I just assumed that there was a 200 response as well :(
 

« first day (3175 days earlier)      last day (836 days later) »