Categories
Database Development

Effectively saving a graph (terabytes) in a database

I’m new here so I’m not entirely sure what tags to use so please notify/edit if this should be changed, thanks! Background I have a graph with ~4 billion nodes and ~1 trillion edges that I want to store in a database (like sqlite) as in this way data can be inserted on the hard […]

Categories
CMS Drupal Mastering Development

How to automatically flag an entity when the form is submitted?

I created a small custom module in Drupal 8 to moderate new entities and update entities. The module is simple. It marks with the help of the flag module, the entities created or updated automatically. Here is my module : <?php /** * @file * Holds hook implementation for the Admin Task Notify module. */ […]

Categories
Ask Geographic Information System (GIS)

Suggested web stack for a Trails based website and CMS system [duplicate]

I am currently looking into what would be the right technologies or services to use to make a trails website and CMS. The goal is to have a public website with a map viewer showing a lat/lng point for all trails available in the area to the user, and when viewing the trail page outputting […]

Categories
Ask Geographic Information System (GIS)

Suggested web stack for a Trails based website and CMS system [duplicate]

I am currently looking into what would be the right technologies or services to use to make a trails website and CMS. The goal is to have a public website with a map viewer showing a lat/lng point for all trails available in the area to the user, and when viewing the trail page outputting […]

Categories
Mastering Development

Issue with recursively displaying set of questions and subquestions with Vue

I have a set of data structured like this: [{ question: true, title: ‘Some question text’, node: [{ answer: true, title: ‘Yes’, node: [] }, { answer: true, title: ‘No’, node: [{ subquestion: true, title: ‘Some subquestion text’, node: [] }] }, { answer: true, title: ‘Maybe’, node: [] }] }, {}] I have managed […]

Categories
CMS Drupal Mastering Development

How do I run a BrowserTestBase functional test with blocks?

I have a module that defines a custom block and places it using a block.block.block_name.yml file that I generated by exporting the placement of the block on a dev site. I’ve unit-tested the block code, but now I want a functional test that will tell me whether the block is correctly placed and rendering to […]

Categories
CMS Drupal Mastering Development

How to automatically flag entities once (without PHP error)?

I created a custom module to automatically flag new entities and update entities. It works 🙂 Here is the problem : If I update a neud it is flagged. Perfect that’s what I want to do, but if I update the node again, I get a PHP error. This is normal because the custom module […]

Categories
CMS Drupal Mastering Development

How do I flag new user accounts or updated accounts?

I created a custom module to automatically flag new user accounts and updated accounts. When I create a new user or update an existing account, it is not automatically flagged and there is no error message in the log. How do I flag new user accounts or updated accounts? This is the code I am […]

Categories
CMS Drupal Mastering Development

How do you shoot a specific type of content?

I have the content type (node), article, page, recipe. The code above can be used to flag any type of content. How do you shoot a specific type of content ? For example I only want to flag the article and recipe content type. <?php /** * @file * Holds hook implementation for the Admin […]

Categories
Mastering Development Software

What would be the downsides of distributing a desktop application with an embedded web server?

This is an architectural question pertaining to distributing desktop applications on Windows, Mac and/or Linux – not looking for software/framework recommendations. Much has been written on the various advantages/disadvantages of Single Page Applications (SPA – React, Vue, Svelte, etc…) vs Server Side Rendering (SSR – Ruby on Rails with TurboLinks, Django, Node, Elixir/Phoenix etc…) approaches. […]