« first day (3173 days earlier)      last day (860 days later) » 

12:00 AM
REFRESH! There are 8004 unanswered questions (89.2302 answered)
REFRESH! There are 8004 unanswered questions (89.2302 answered)
 
0
Q: Numerical solution to the Lane-Emden equation

DilaI am new to Julia programming, but for fun and practice, I wrote a program that numerically solves the Lane-Emden equation. I even wrote an interactive version that changes the values of n and log_delta_xi with sliders from PlutoUI (not included here). I will leave the program here and encourage ...

 
 
1 hour later…
1:24 AM
0
Q: Practicing to learn java through the ecommerce pack app

Asok MMain File import java.util.Scanner; public class packApp extends items { public static void main(String[] args) { while (itemEnter.nextOrder==0) { //while loop for continuing with new order items.show(); // function displays and generates list and number of ite...

 
2:14 AM
0
Q: I want to create a function that takes the input from the user and prints the output with the help of a pointer

Aayush YashHere is the code #include<stdio.h> void pointer(); void main() { pointer(); } void pointer() { int *ptr; printf("Enter a number = "); scanf("%d",ptr); printf("The number you have entered = %d",*ptr); } My problem, after entering the input, the program directly ends it...

0
Q: Implementing a correct `let rec in` interpreter in Haskell with `eval` and `sub` semantics

twituI'm implementing the toy fb-lang from the principles of programming language book. It's a small interpreted language that uses eval(uate) expression function and sub(stitute) variable with value function to process expressions. The most challenging construct is the let rec in construct which make...

 
@CaptainObvious interesting- one user answered as well as suggested two approved edits to another answer
Maybe that deserves a badge
 
 
1 hour later…
3:30 AM
0
Q: sql statement as config file

MD128I have to complete a javaSE program that I need to read the data from the config file. The required data is extracted from an unknown table and unknown fields - unknown to the program-.I also have a condition as input data. My solution for writing the program was to ask the user SQL SELECT string...

 
 
3 hours later…
6:18 AM
Monking
 
 
2 hours later…
8:08 AM
0
Q: Implementing a efficient Infix to Postfix using Shunting-yard algorithm

WhoEvenCares ToSeeTheNameI was trying to implement an efficient (in terms of size of code and time and memory-efficient) of Infix to Postfix in python without the use of any modules and with only necessary parts (such as without class). Currently, my code looks like the following operators={"+":1,"-":1,"*":2,"/":2,"^":3,"**

 
 
2 hours later…
9:46 AM
Monking
 
 
2 hours later…
11:27 AM
@SᴀᴍOnᴇᴌᴀ huh didn't realize dabeaz has a couple of books... his slides on generators and coroutines were really insightful. Also posting someone else's code is a no-no... and what's left is not much.
 
 
2 hours later…
1:10 PM
Is it my imagination or has it been slow for the last 3 days. Are we in the eye of the hurricane?
 
@pacmaninbw It was the weekend. Also still holiday for many educational establishments.
 
Ah
So we are in the eye of the hurricane.
 
I don't think we're about to die out through lack of interest....
 
I'm not worried about that.
@Vogel612 Monking
 
Monking :D
 
1:47 PM
0
Q: Binary Search of Array in C#

aniruddhI am an algo-newbie and this is my first attempt at writing binary search and it worked on the first try. But something about it tells me that its far from perfect. Please tell me how I can improve. using System; class Program { public static void Main() { int[] arr = { 40, 67, 3...

 
@CaptainObvious captain being a slowpoke again...
 
2:40 PM
0
Q: Embedded Timer Explorer

ReinderienThis is a toy design analysis utility meant to support decisions around configuring a timer on a microcontroller. The initial configuration is an example meant to partially represent the possible configuration space for timer 0 on a PIC18F66K40. Features Architecture- and device-agnostic Selecti...

0
Q: Rust: Read Kindle device on Linux

Saeed M.I made a small project, where it supposes to connect to the Kindle, and read the notes (my clippings.txt). I wanted it to wait for the Kindle to connect if it's not connected yet, and do the thing I wanted to do (e.g. parse the clippings.txt) as soon as the device get connected, but I'm not sure ...

 
Eira May on January 10, 2022
Nearly two years into the pandemic, many Americans are reevaluating their relationship with work.
 
 
1 hour later…
4:10 PM
Monking
 
4:52 PM
Monking
@pacmaninbw I expect things to pick up in the next week or so.
 
Meanwhile, it's a good opportunity to slay some zombies!
4
 
@TobySpeight yes -last week I took out this toddler VueJS zombie which essentially has an infinite loop with API calls in it
 
5:09 PM
Monking
 
5:45 PM
1
Q: C# library for working with Linux evdev

afshin-parsaProject: https://github.com/afshin-parsa/evdev-sharp Language: C# 10 Framework: .NET 6.0 I was looking for a way to control my BeagleBone Blue robot with an XBox One S controller. so I searched around and found out that there are two ways to accomplish this in Linux. First is to read the /dev/inp...

 
6:38 PM
0
Q: Best practices for binding properties to a callback in kivy

ApuCoderAs a self learner I've found the kivy binding action (mainly in python) a bit confusing. I've seen in many source code (of kivy/ kivymd) and/or examples in kivy that some of the properties are bounded to a callback in the constructor, while others are not (though used in those callback). My queri...

 
7:05 PM
0
Q: Better way to create a contingency table with pandas for film genres from a Film DataFrame

Andrea CiufoFrom a public dataset available on film rating I created a contingency table as follow. Honestly I don't like all these "for-loops" I think the quality of the code can be definitely improved in a more pythonic way. import pandas as pd import numpy as np movies_df = pd.read_csv("https://raw.githu...

 
7:31 PM
0
Q: IPAddress Range access

JeffersonI want to make this code better. It works now but I think it can be better. When there is an Inbound request I check to see if that accessKey is setup for IP address Range that will return a bool flag. If its true I then need to get the IPAddress and IPEndAddress. With that data and the inbound A...

 
7:58 PM
0
Q: for loop Optimization

devPieI have a sample Json as mentioned below [{ "Name": "Kim", "Details": { "Age": 43, "Gender": "Male", "Education": [{ "Primary": "Xavier", "Percentage": 90, "subject": [{ "sub": "Math", ...

 
 
2 hours later…
10:02 PM
 

« first day (3173 days earlier)      last day (860 days later) »