CSS attr() for integers: What is a good way to solve this?
PHP Template: <div class="el"data-spacetop="<?php echo $spacetop; ?>"data-spaceleft="<?php echo $spaceleft; ?>"data-spacetopmobile="<?php echo $spacetopmobile;...
View ArticleHow to install packages from Docker compose?
Hi there I am new to Docker. I have an docker-compose.yml which looks like this:version: "3"services: lmm-website: image: lmm/lamp:php${PHP_VERSION:-71} container_name: ${CONTAINER_NAME:-lmm-website}...
View ArticleMore important than !important (a higher level !important)?
Is there a CSS keyword which overrides !important at one higher level or is there some feature like this planned in any newer CSS spec?The strongest style in CSS I can think of is an inline style with...
View ArticleRESTful API Design: PUT or POST for creating many-to-many relationships?
For designing and creating a RESTful API the following question occurs:The API supports GET (for queries), POST (for creating), PUT (for updates) and DELETE (for deleting).Lets assume in the database...
View ArticleComment by Blackbam on CSS attr() for integers: What is a good way to solve...
That would be new - have to check!
View ArticleComment by Blackbam on How can I retrieve the HTTP response code without...
@MichalHynčica That is a special use case. I understand if you label this as not good practice. But is it really such an exotic requirement to simply get the HTTP response code? If there is no solution...
View ArticleFinal abstract class in PHP?
What I want to achieve:abstract final class NoticeTypes { const ERROR = "error"; const WARNING = "warning"; const INFO = "info"; const SUCCESS = "success"; static function getAll() { $oClass = new...
View ArticleWhy does PHP throw fatal errors and break with HTTP 500 although using...
In my AWS logs, I have entries like this:[Wed Feb 06 10:12:22.306730 2019] [php7:error] [pid 28445] [client172.31.10.7:55646] PHP Fatal error: Uncaught Error: Class 'comet_cache' not found...
View ArticleMore important than !important (a higher level !important)?
The title says most of it. Is there a CSS keyword which overrides !important at one higher level or is there some feature like this planned in any newer CSS spec?Of course, I know that !important is a...
View ArticleComment by Blackbam on How can I move back to old intellij idea UI?
@Guilherme Absolutely.
View ArticleHow to implement a JSON column correctly?
Being fairly new to MySQL JSON columns, I can not get this working:class MyEntity { #[ORM\Column(name: "additional_names", type: Types::JSON, unique: false, nullable: true)] private ?array...
View ArticleComment by Blackbam on Detecting that the browser has no mouse and is touch-only
@matteo Did you add a .matches after the bracket? It could be a bug or bad implementation otherwise but I doubt it ;)
View Articlegit stash drop: How can I delete older stashed states without dropping the...
What I already have discoverd:git stash list... for listing all my stashes.git stash show -p stash@{0} --name-onlyTo list all files within that stash (here the latest stash at position 0).Now I have a...
View ArticleDart null / false / empty checking: How to write this shorter?
This is my code for true on everything but empty string, null and false:if (routeinfo["no_route"] == "" || routeinfo["no_route"] == null || routeinfo["no_route"] == false) { // do sth ...}This is my...
View ArticleAnswer by Blackbam for WordPress: $wpdb->get_results(); returns wrong results...
First of all the following line is definitely wrong:$name_exists = $wpdb->get_results("SELECT * FROM quotation_diensten WHERE dienstNaam='$text'", ARRAY_A);Why? Because a variable name within single...
View ArticleIs it possible to select all elements with an attribute value greater than a...
I wonder if the following is possible with CSS:HTML-Code:<span class="funny-elem" data-mystate="127">Hello World</span><span class="funny-elem" data-mystate="69">Hello...
View ArticleAnswer by Blackbam for Enable event tracking for Google Translator...
Found the solution here: https://support.google.com/analytics/answer/12270356?hl=enGo to Admin -> [Your Property] -> Data StreamsCopy the "Measurement ID" (not the stream ID) which looks like...
View ArticleEnable event tracking for Google Translator (TranslateElement) with Google...
Migration from Google Analytics 3 to 4 I wonder how to replace the following Google Translator script:function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en',...
View ArticleIntelliJ plugins lost (after upgrade to 2023.2.1): How to find out previous...
After upgrading to IntelliJ 2023.2.1 all my plugins, extensions and settings have been lost. As this version caused other problems (like constant scanning and indexing) I downgraded to 2023.1.5 but...
View ArticleAnswer by Blackbam for How to build unhashed files in a 'dist/' folder with...
In my opinion this can be solved incredibly easily - just do not put your entry files into subdirectoriesparcel build src/index.scss src/index.js --no-content-hash --out-dir ../public/buildThere you...
View Article