submitted by JoMiran to books 21 points | 6 comments For those that like the phone sized e-reader format. I am in no way affiliated to Boox, I just like the idea of a phone sized E-Ink PDA/Reader/Walkman (did I age myself enough?)
In C you can do: int main (void) { int M[100][100] = { /*...*/ }; int * A = M; // Work with A as if it's 100*100=10000 element 1D array... } Allowing to change value M from a different view, which is probably UB. On flat memory it should work, so what are more portable alternatives in Ada? Use Unchecked_Conversion, which already implies a copy. Declare a variable with needed array type (possibly with aliased component type) and use for-clause to set its address to the target (here) matrix variable. Use access types and their conversions (seemingly the same approach as in the C snippet). Doing
After upgrading to macOS Golden Gate 27.0.1, my Jekyll-based website stopped working because Bundler cannot find several required gems. Ruby and Bundler versions ruby 4.0.9 (2026-10-23 revision 3e93b23afc) +PRISM [arm64-darwin27] Bundler version 4.0.11 Missing gems Running bundle list reports: Could not find eventmachine-1.2.7, http_parser.rb-0.8.1, bigdecimal-4.1.2 in locally installed gems. Running bundle install fails when attempting to build native extensions. For example, the build of bigdecimal produces the following error: Gem::Ext::BuildError: ERROR: Failed to build gem native extensio
Planet Gastronorm is the prime eating place in the universe, and every starliner wants to dock there, offering a few weeks or months to eat out in all the restaurants run by the Gastronoms (yes, no R in the people, but in the Planet, it's a pun!). And usually, the kitchens are well equipped to handle everything, because a Gastronom that can't provide what a patron wants, closes the doors to their restaurant forever and goes to the vats in shame, akin to Louis XIV's Majordomo of François Vatel. However, a new planet was just admitted to become stellar citizen, and they have become a pest on Gas
submitted by AFKBRBChocolate to books 11 points | 0 comments cross-posted from: lemmy.ca/post/72797259 The story takes place some years in the aftermath of a war that ended with a reunited Korea, in a future where robots are ubiquitous. Ruijie is a disabled young girl who walks with the aid of automated braces. While exploring a scrap yard she finds a damaged but charming robot in the shape of a boy. Jun and Morgan are estranged brother and sister, each with emotional scars from the disappearance of their older brother, a lifelike robot created by their visionary roboticist father. Jun, now a
I know that genetics for hair color aren't actually as simple as a Punnett square can show. But say that the possible hair colors for a species are red, orange, yellow, green, blue, indigo, and violet. How would genetics work for that species? What's dominant and what's recessive? Would there be codominance? Which color would be the most dominant in the species? To be clear, this is for a humanoid species.
How can I check whether my projects are affected by the PHP2Shell vulnerabilities listed in CVE-2026-109618 and CVE-2026-109619, and how can I mitigate them?
I'm writing a modern-day science fiction story in which the protagonist has telekinesis. The protagonist is a young Guatemalan woman who can exert up to 400 newtons of force on any object within a 1-kilometer radius. Because of the kinetic energy formula, E = ½mv², moving a small object very quickly can deliver more energy, and therefore more destructive impact, than moving a heavy object slowly. Due to the nature of her telekinesis, the Guatemalan woman can effectively exert the full 400 newtons of force on even a tiny object, as long as she can perceive it. However, very small objects can al
For one of the games I was working on, I wrote a script that works universally across all my projects and functions as a selector/selection menu. My issue, is that I wanted to display a neat little title bar that would be the same length as the text (output example): ================== ## EXAMPLE TEXT ## ================== But most importantly, I wanted to make sure that whatever text I substituted in would always be the same length as whatever variable I set it to. set "exampleVariable=this would be the variable content" ::Line example echo ======================= echo ## %exampleVariable% ##
I am trying to create a property on a class that is protected. This property is also defined by an interface that the class implements. public interface IStat<T> { public T Offset { get; protected set; } } public class Stat : IStat<float> { public float Offset { get; protected set; } = 0.0f; } However, this causes an error: 'Stat' does not implement interface member 'IStat.Offset.set'. 'Stat.Offset.set' is not public. CS0277 Removing the access modifier from the class property fixes the error Removing the access modifier from the interface property changes nothing Removing the access modifier
there! I come back after a few years. I want to make a mod for Minecraft 1.8 in Eclipse but I have an error. When try to create the workspace in the cmd prompt I still get this. How can I fix it ? Thanks for the help. Microsoft Windows [Versión 10.0.26100.1742] (c) Microsoft Corporation. Todos los derechos reservados. C:\Users\PC>D: D:\>cd Minecraft\Mods\1.8\MineHack 1.0\MineHack D:\Minecraft\Mods\1.8\MineHack 1.0\MineHack>gradlew setupRecompWorkSpace eclipse --refresh-dependencies WARNING: A restricted method in java.lang.System has been called WARNING: java.lang.System::load has been called
Suppose I have a long URL in a C or C++ source comment, exceeding the line length imposed by a coding standard, like the following: // Coding standard: line limited to 80 chars //--.----1----.----2----.----3----.----4----.----5----.----6----.----7----.---- // https://en.wikipedia.org/wiki/Savitzky%E2%80%93Golay_filter#Algebraic_expressions Now, many editors/pagers/shells can help with hyperlinks, and mouse-clicking them opens the browser. But if I break it, well, it's only partially valid. What are the possible approaches to this? URL shorteners are a no-no for some uses (due to privacy, durat
I show a PDF from my backend in an <iframe> using Chrome's built-in PDF viewer. The endpoint requires a bearer token, so Angular fetches the PDF as a Blob and gives the iframe a blob: URL. The PDF displays correctly, but the viewer's own download icon (and "Save as...") saves it with the blob's UUID, for example cda675a6-10af-42f3-aa68-8795aa8c377d.pdf, instead of the custom name my backend sends. How can the download button of the native PDF viewer produce the custom file name? A custom download button (<a download>) is not an acceptable fix, because the viewer's own button stays visible and
I am collecting all sound sources into an array so that I can stop them later. However, when I iterate through the array and call stop(), the sounds keep playing instead of stopping. Yet, if I call stop() on an individual source directly within the playSound() functions, they stop without any issues. I cannot figure out what the problem is. I am also aware that I could simply turn down the volume, but that doesn't seem like a proper solution to the problem. function audioContextCheck() { if(typeof AudioContext !== "undefined") { return new AudioContext(); } else if(typeof webkitAudioContext !=
I'm working on a WordPress website that uses WooCommerce, and I need to load a custom JavaScript file only on individual product pages. Currently, I'm using wp_enqueue_script() to load the file, but I want to make sure it doesn't load on the shop page, product categories, or other parts of the website. Here is what I'm trying: function custom_product_script() { if ( is_product() ) { wp_enqueue_script( 'custom-product-script', get_stylesheet_directory_uri() . '/js/product.js', array( 'jquery' ), '1.0.0', true ); } } add_action( 'wp_enqueue_scripts', 'custom_product_script' ); Is using is_produc
To test imports on my laravel application I have written a bunch of tests. These tests worked fine in the past. I had to update one file import and now some of my tests are flaky. One of these tests: public function testUserCanImportStudentPropertiesWithErrorSuccess():void { $file = new UploadedFile(base_path('tests/files/vakkenpakket leerlingen per leerjaar met fouten.xlsx'), 'vakkenpakket leerlingen per leerjaar met fouten.xlsx', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', null, true ); $user = User::role('globale admin')->first(); $request = [ 'csv'=> $file ]; $resp
I'm using code-graph to figure out what might break when I change a method. It works fine for direct calls, but I keep missing callers that go through a base class. Here's a stripped-down example: class Shape: def area(self) -> float: raise NotImplementedError class Circle(Shape): def __init__(self, r: float): self.r = r def area(self) -> float: return 3.14 * self.r ** 2 def total_area(shapes: list[Shape]) -> float: return sum(s.area() for s in shapes) def print_report(shapes: list[Shape]) -> None: print(total_area(shapes)) After indexing, total_area has a CALLS edge to Shape.area, and Circle.
I am using Cloud Run Admin API v2 projects.locations.services.patch with validateOnly=true, allowMissing=false and forceNewRevision=true. The request returned HTTP 200. The response had the following structure; identifiers are replaced with placeholders and most metadata is omitted: { "name": "projects/PROJECT/locations/REGION/operations/OPERATION_ID", "metadata": { "@type": "type.googleapis.com/google.cloud.run.v2.Service", "name": "projects/PROJECT/locations/REGION/services/SERVICE" } } The metadata contained the proposed Service configuration. The top-level done, response and error fields w
How can I test with RSpec I'm using rate_limit method on my Rails 8 app? class SessionsController < ApplicationController rate_limit to: 10, within: 3.minutes, only: :create end
When assigning properties to a HTMLElement directly (so [Element].someProperty), it looks like anything goes. You would expect that invalid properties either throw some error or are weeded out silently on assigning them. This seems to be not the case. In the snippet is a minimal example, where after appending an element with a property that is function, that property can be referenced (and even invoked). Retrieving the value of it using getAttribute null is returned. Retrieving it directly however returns the property value (a function). I can't get my head around that. Will this constitute a
I've written a web page in php that sets up a database locally for my site to pull from while I'm working on it, and I'm struggling to find a generally accepted standard for this sort of thing. It's my first time messing with this sort of thing, and I would like to check if I've done it the 'right' way and not a really messy roundabout way that adds 70% more lines of code to the page. I'm using mysql and php to do all this. Here is the code: <?php $host = "localhost"; $user = "root"; $password = ""; // Connect to MySQL server $conn = new mysqli($host, $user, $password); if ($conn->connect_erro
When writing rust programs with Visual Studio 2026 I have the problem that the console immediately closes after program exit (all different modes: debugging, release, test - with and without Debugging) . I use the "Rust Development Pack" Extension (based on rust-analyzer.vs). It does not work based on solution but on "open folder" mode - so there is no project settings to edit. The Debug-Setting "Auto close Console window" is already switched off. I first used another rust-extension (SourceGear Rust) and there it worked, but it has other issues that make it unusable for me. How to force VS to
I have a very long non-paginated (deliberate) tabulator table designed to create a quotation price list. I don't want a scrollbar inside the table, so I have set the height to 100%. The main table holds the categories and under each category is a nested table using a custom rowformatter that holds the items and their pricing details. On each row of the main table i have a button that adds a new row to its related sub-table. When you click add on a row part way down the page, it automatically scrolls back to the top of the page, as opposed to keeping the new row in view. If i set the table to a
For some reason, FB Page Plugin has stopped working today: See all errors here: WHTZSNYgAZx.js:84 ErrorUtils caught an error: Could not find element "u_1_u_If" [Caught in: Module "_elem_a588f507_1_0+J"] Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs. Object errorListener @ WHTZSNYgAZx.js:84 WHTZSNYgAZx.js:84 ErrorUtils caught an error: DataStore.get: namespace is required, got undefined Subsequent non-fatal errors won't be logged; see https://fburl.com/debugjs. Object errorListener @ WHTZSNYgAZx.js:84 WHTZSNYgAZx.js:84 ErrorUtils caught an error: Could not find elem
I'm sending push notifications via the Firebase Admin SDK (Python) to a registered, valid iOS device token, and every single send fails with "Invalid APNs credential." This happens 100% of the time, across multiple distinct device tokens, over several days — including after completely replacing the APNs Authentication Key. Setup: Spark plan, iOS, sent via Firebase Admin SDK (Python). Send code: message = messaging.Message( notification=messaging.Notification(title=title, body=body), data={k: str(v) for k, v in data.items()}, token=token, apns=messaging.APNSConfig( payload=messaging.APNSPayload
I’m an Indian passport holder planning to travel from Mumbai to Nassau, Bahamas, and I currently hold a valid Bahamas work permit/entry authorisation. I’m trying to understand Panama’s transit requirements under Resolution No. 24430 dated 9 August 2023, particularly the provision concerning travellers transiting to a country where they hold a valid visa or residence permit. My main concerns are: If I arrive at Panama City (Tocumen Airport) with one airline and depart with a different airline within 12 hours, would I need a Panama transit visa? If I have separate tickets and need to collect my
I work on python with polars. I have: A dataframe df with columns mc1 and mc2 and A dictionary dico. I would like to filter on df to keep only the rows for which mc1 is an existing key of dico and dico[mc1] == mc2. Is it possible? I firstly tried something like this: import polars as pl import numpy as np df = pl.DataFrame({'mc1':[1,2,3,4], 'mc2':[5,6,7,8]}) dico = {1:5,2:2,4:8} df.filter(pl.col('mc1').is_in(dico.keys()) & (dico[pl.col('mc1')] == pl.col('mc2'))) But it didn't work. I also tried to produce a list of booleans indicating which row to keep, like it would work using pandas, doing t