October 25, 2024
Chicago 12, Melborne City, USA
java

Question About How to Write about Prgramming

I’m currently in the process of writing a book and one of my main characters is a video game designer. I’m at a pretty pivotal point in the story where the designer realizes he created a sentient character and is going back to try and find where it/the sentience began. Problem is I don’t know

Read More
python

Using for loop reading with multiprocessing missing iterables

Sorry if I’m wording this wrong, below is my script, I’m trying to figure out why when I review the archive file (that I created) I only see 9874 lines when the file to open/read has 10000. I guess I’m trying to uderstand why some iterations are missing. I’ve tried it a few times and

Read More
GPL

Free GPL Responsive Timetable for WordPress

Responsive Timetable for WordPress Our timetable is fully responsive and features a clean and modern flat interface. Create timetables with events in 3 different scales using a live editor in the backend. Color events individually, per column or per timetable. Click on events to open a custom link, or a responsive event popupusing a nice

Read More
javascript

How do I return the response from an asynchronous call?

I’m trying to convert a small (single page) PHP app to Javascript but having trouble accessing the contents of the JSON file. I think it’s down to how I’ve written the JS, but as an example: async function fetchLocalFile(filePath) { try { const response = await fetch(filePath); if (!response.ok) { throw new Error(`HTTP error! status:

Read More
SQL

how to create a variable list for WHERE/IN function?

I have a huge list of IDs I’m searching through from a large data set. When I try to search for the IDs using IN, it says I’ve gone beyond character limits so won’t run. If I’m to split these into manageable size (see below) it’d take me really long time due to the size.

Read More
CSS

CSS textarea Increased Line Height for newlines

When the user inputs a textarea, a line break due to wrapping looks the same as a line break due to the user entering a newline. I want the first line after a newline character to be spaced a bit further down than wrapped lines are spaced. The idea is that the user is typing

Read More
HTML

How do I apply Tailwind CSS to a specific div block and Bootstrap for the rest?

Currently, I only want to apply Tailwind CSS and React to a the "First Impressions" section. This is a div block I added recently (through the help of ChatGPT) and when I loaded the page, I noticed that the Bootstrap CSS styling was overridden by Tailwind. Removing the Tailwind CDN link allows the rest of

Read More
Android

On Android, you have to specify the current Activity from which the browser pop-up will be displayed using the WithParentActivityOrWindow method

I’m implementing Azure AD B2C authentication in my .NET MAUI app using MSAL.NET. My .NET MAUI app targets .NET 8 and I’m using Microsoft.Identity.Client.Extensions.Msal version 4.66.0. My app uses the AppShell and upon start, it hits the InitializeAsync() method of my StartupPage.cs. The first thing I do in InitializeAsync() is to make the following call:

Read More
PHP

Why I get fatal error when trying to run composer update in empty laravel project?

I am created new laravel project, ran composer update and get this error: > @php artisan package:discover Fatal error: Uncaught Error: Call to undefined method Composer\Repository\PlatformRepository::isPlatformPackage() in /var/www/app/vendor/composer/composer/src/Composer/Json/JsonManipulator.php:139 Stack trace: #0 /var/www/app/vendor/composer/composer/src/Composer/Json/JsonManipulator.php(163): Composer\Json\JsonManipulator->Composer\Json\{closure}('php') #1 [internal function]: Composer\Json\JsonManipulator->Composer\Json\{closure}('php', 'matviib/telegra...') #2 /var/www/app/vendor/composer/composer/src/Composer/Json/JsonManipulator.php(164): uksort(Array, Object(Closure)) #3 /var/www/app/vendor/composer/composer/src/Composer/Json/JsonManipulator.php(119): Composer\Json\JsonManipulator->sortPackages(Array) #4 /var/www/app/vendor/php-http/discovery/src/Composer/Plugin.php(445): Composer\Json\JsonManipulator->addLink('require', 'php-http/messag...', '*', true) #5 /var/www/app/vendor/php-http/discovery/src/Composer/Plugin.php(176): Http\Discovery\Composer\Plugin->updateComposerJson(Array, true)

Read More
C#

Need to have a working menu but it won't run

I have a previous code similar to this project that has run before. However, now I can’t get this to run. Yahtzee.c #include "Yahtzee.h" int main(void) { int input = 0; do { input = option_choice(options()); } while (input != 3); return 0; } Function.c #include "Yahtzee.h" int options(void) { int options = 0; do

Read More