« first day (2325 days earlier)      last day (1685 days later) » 

12:00 AM
RELOAD! There are 6161 unanswered questions (90.0542% answered)
 
@Vogel612 ok, if I migrate it, are you happy to edit the title
 
sure can do
 
12:53 AM
0
Q: Function to determine state of Christmas tree lights?

justinMy friend and I are trying to automate some Christmas tree lights that I got on sale last year. I will be able to measure the output of the voltage, and there are 4 functions: steady on, blinky on, slow fade up/down, and off. I don't even want to post my code, because it's probably such a wrong...

 
 
1 hour later…
1:53 AM
1
Q: Modelling a Call Center in Java (Multi - Thread Approach)

Koray TugayI wanted to give a shot to Modelling a Call Center from Cracking the Coding Interview. The problem statement is as follows: You have a call center with three levels of employees: Respondent, Manager, Director. An incoming phone call must be allocated to a respondent who is free. If the respon...

 
 
3 hours later…
4:37 AM
0
Q: Processing language to draw scatter plot

BarsalI am trying to plot the following data using the columns, ID, ACT_m and GPA into the scatter plot, but I don't see any data in my plot. Thank you so much for your time. ID Gender ACT_m ACT_c GPA 6001 Female 25 24 4.062 6010 Male 24 ...

 
5:30 AM
This question may be a better fit for Code Review (though read their rules first). — Slaw 53 secs ago
 
0
Q: Is this how professionals code?

Hoonias a self-taught programmer I have no idea what is going on in the real, professional world of Android development (and I am sure there are tons of other people here, too). I have just created the basis for my first non-tutorial app and was just wondering if I am going in the right direction, es...

 
5:55 AM
If you are looking for Fixed-Time Iterations, you might find timer struct for fixed timestep iterations in C (gcc) useful. — David C. Rankin 45 secs ago
 
 
2 hours later…
8:17 AM
I'm voting to close this question as off-topic because it should be posted on codereview.stackexchange.comProgman 12 secs ago
 
8:58 AM
-2
Q: Recursion to dynamic programming

Himanshu RayI was trying to solve a problem on de-arrangements (Number of partial derangement such that exactly prime number discs are found away from their natural positions? (Any number of non-prime K disks may also be found in or out of their natural positions)). Somehow solved it using recursion but m...

0
Q: Batch rename files recursively, and number the directory index

dengST30When dealing with iOS app bundle, It is not convenient to get the file by its path, but loading it by its name. Need to batch rename images recursively, with Mac Bash. And to make the name unique, the directory index should be numbered. To rename files ,turn Root----A----0.png | ...

 
9:19 AM
1
Q: Edit file name method - run time complexity

Shir Zabolotny KleinI wrote a function in Java that edit file name, and replace each space char into dash char. Currently I iterate all the files in a specific directory, iterate in each file name, creating a new file name, and replace the file in the directory. I guess that the current complexity is \$O(N*M)\$ ...

 
9:59 AM
-1
Q: Project Euler #22 Java - Names scores

Omar Ahmed Using names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the alphabetical value for each name, multiply this value by its alphabetical position in the list to obt...

 
 
2 hours later…
12:20 PM
0
Q: SwiftUI draw a spark line

cocoI am using a set of data points (currently randomly generated), and drawing a line graph inside a box: struct DrawLine: View { var body: some View { ZStack { Rectangle() .stroke(lineWidth: 1.0) .fill(Color.purple) .frame(wid...

1
Q: Reverse-TCP client & server in python

Ofer SadanI've written a small project, initially designed to help me remotely control my home PC from my office. I had to deal with an annoying firewall, so I've written it as a reverse TCP (meaning it's the client connecting to the server but the server is the one giving orders). Anyway, I've now attemp...

 
12:49 PM
@CaptainObvious Are there any guidelines about when to introduce new tags? This question is about SwiftUI, an Apple framework (introduced this year) for building user interfaces using a declarative syntax. There is a dedicated tag swiftui on Stack Overflow, but I am not familiar with the policy on this site.
 
1:06 PM
Monking
 
1:16 PM
@MartinR if it's useful and you got the tag creation privilege, err on the side of creating it
it can be removed pretty easily (and if it's used too little it will get automatically deleted)
 
-3
Q: trying to reduce time complexity

Aditya RoshanThe question states that we are given an empty list and 10^5 queries.For each query, we have two integers a and b.a can only be 1, 2 or 3. if a=1, then append element b in the list. if a=2, then add value b to every element of the list. if a=3, then we have to print the bth smallest element i...

 
1:40 PM
1
Q: Finding all simple (without internal cycles) paths in a directed graph with total >1.0 weight

Sereja BogolubovAssume directed graph with each edge being weighted by some positive float. Problem: find all simple paths (in other words, [0, 1, 2, 0] is simple while [0, 1, 0, 1, 2 0] is not due to internal [0, 1, 0] cycle) with length <= cutoff and "push" them using pusher callback. P.S. There ex...

 
@Vogel612 OK. I have created the tag and suggested an initial summary.
 
This site deals with specific answerable questions. "Can you provide some input on my code" isn't one. Perhaps Code Review would be a better fit. — n.m. 23 secs ago
 
2:20 PM
0
Q: MATLAB / vs Phyton np.linalg.solve, heat diffusion, Why Phyton is slow?

ErdemI am solving a simple 1D steady heat question using spectral method. I am a long time MATLAB and Mathematica user and trying to learn Phyton. I compare only linear solving times and Phyton is way slower than MATLAB which doesn't feel right. Can you please tell me my mistake? MATLAB code N=500...

0
Q: How to make my “custom integer type” perform better?

Zenit_sweDuring a project at my work I needed a convenient way to store values taking up the smallest amount of bits necessary, not in memory but later when they're serialized into an array of unsigned short ints. For instance, a value that could be between 0 and 7 was only supposed to be 3 bits long. I e...

 
 
1 hour later…
3:41 PM
0
Q: Tokenizer Class for handling .cvs files in c++17

davidbearI am a hobbyist computer programmer trying to learn modern C++ (in this case C++17). I thought it might be an interesting challenge to write a tokenizer class for breaking down microsoft (and other) .CSV files into tokens. My tokens are simply a std::variant<int, double, std::string>, and I wrote...

 
4:01 PM
0
Q: Script to download Annual Reports (~70,000 in total) from a Website

Ajwad JavedIt's only 38 lines of code and I haven't worked with web scraping that much before. How heavy would my code be on their server? It's for Deep Learning purposes and I haven't ran it yet but would it result in my IP getting banned a quarter way through once I start downloading the 70k ...

 
4:42 PM
This isn't an optimisation or code proof part of the website, for that you can see Code ReviewDanilo 34 secs ago
 
5:25 PM
possible answer invalidation by Zenit_swe on question by Zenit_swe: codereview.stackexchange.com/posts/229066/revisions
 
5:40 PM
possible answer invalidation by Zenit_swe on question by Zenit_swe: codereview.stackexchange.com/posts/229066/revisions
 
I really didn't mean to steal your checkmark here @pacmaninbw
@Duga Rolled back again. Next time gets a flag. Keep an eye out.
 
6:29 PM
@Mast I knew someone would give a better answer.
It never right to give a check mark on the first day.
 
2
Q: Pure python range implementation

sanyashI implemented class Range as an equivalent to Python built-in range for practicing purposes. No features were added. Hope it mimics all aspects of range behavior, but maybe you can point out something I forgot. Also I tried to make the code efficient, that's why Range doesn't inherit from collect...

 
6:52 PM
Please try [codereview.stackexchange.com](codereview.stackexchange.com)‌​. StackOverflow is for specific programming issues, not general reviewing. — David Culbreth 35 secs ago
Hello, this question seems like it would be a better for the CodeReview stack exchange site: codereview.stackexchange.comC_Z_ 32 secs ago
 
7:42 PM
-1
Q: What should I change in my currency converter?

Arian Chimensoneveryone! I wrote a simple currency converter in Python. I'll appreciate some tips about how I can improve my little script; what new features would be nice to add to my project? Right now, my currency converter converts using the last available rate or convert using a specific date. Many thank...

 
8:02 PM
0
Q: Elegant C++ Quicksort

Aaron FrankeI was looking at online implementations of Quicksort and was disappointed how many of them seemed to have a low amount of readability. I've written this Quicksort algorithm in C++ with the goal of being as elegant as possible, including full words for variable names. I'm looking for feedback on ...

 
 
1 hour later…
9:03 PM
0
Q: LeetCode: Top K Frequent Elements C#

Giladhttps://leetcode.com/explore/interview/card/top-interview-questions-medium/110/sorting-and-searching/799 Given a non-empty array of integers, return the k most frequent elements. Example 1: Input: nums = [1,1,1,2,2,3], k = 2 Output: [1,2] Example 2: Input: nums = [1]...

 
9:43 PM
0
Q: Promise-based AJAX calls base class

coolpastaI am more than willing to use both a Promise library and an AJAX calls one if the situation calls for it. This base class sits at the very bare bones of my system and it needs to be done right. My goal here was to create a bass class in JS that can be extended to help with AJAX calls using Promi...

 
10:03 PM
0
Q: Modifying to Get-MyBios

William StoreyTrying to remove the begin and end statements to modify the script to Get-MyBios on PowerShell ISE and I don't know where to remove from this code: Param ( #name of remote computer [ Alias("cn") ] [Parameter(ValueFromPipeline=$true, Position=0, Parameter...

 
 
2 hours later…
11:44 PM
0
Q: Dropdown menu that opens on click using plain Javascript

darkhorseThe title is fairly self-explanatory. I made a simple dropdown menu which opens when clicked, and closes when the user clicks anywhere outside the menu. The following is the codebase: function deactivateAllDropdownTriggers() { document.querySelectorAll('.dropdown-trigger.active').forEach(...

 

« first day (2325 days earlier)      last day (1685 days later) »