Blog | falk-m.de
Like other developers, I read articles, test new features, analyze code from others and so on.
Also, I have some interesting code snippets used in projects, if I need them, I always search in old projects.
This blog is my central place now, to collect interesting code snippets, features, etc. |
RSS Feed
summarize git commits
from falk-m.de
· 2024-10-23
git
In some cases there is a feature branch with many commits and you want to replace all this small commits with one big commit.
1. check if everithing is committed.
You have to have no local changes....
Git Flow
from falk-m.de
· 2024-10-22
git
One of my topics today was git workflows.
I read something about git flow and the github flow.
In the past I always work with a develop and a master brunch.
After I read about github flow, I was wo...
Links and stuff of the week
from falk-m.de
· 2024-10-18
CSS
Links
quilljs WYSIWYG Editor
cally calendar and date picking component
inline-flex
I read in another blog display: inline-flex and never heard about it before.
This codepen discripe the differenc...
font with integrated syntax highlighting
from falk-m.de
· 2024-10-18
CSS
With modern font techniques, I don't know how it works (font colors and so on),
it is possible to highlight the syntax or source code.
html, js, css.
I don't read something amount PHP support:/
But...
smart country conference Berlin
from falk-m.de
· 2024-10-17
Other
This year, I visited the smart country conference in Berlin.
It's a fair, where the main topic is the digitalization of the German government.
My focus was the usage of open source and web tech...
responsive font-size
from falk-m.de
· 2024-04-02
CSS
Here are three simple lines of code to smooth sizing the root font size depends on the screen size.
:root {
font-size: calc(1rem + 0.25vw);
}
You can also use 'clamp' to use the smooth sizing o...
anonymous classes in php
from falk-m.de
· 2024-04-02
PHP
Since PHP Version 5.3., PHP supports anonymous functions and classes.
Here is an example for an anonymous function:
$add = function(int $a, int $b){
return $a + $b;
}
If you want to use a varia...
Broadcast challen api
from falk-m.de
· 2024-02-26
JS
In a post from 2024-02-08, I describe a way to send messages between the scripts in different browser windows with a storage event.
Now I have found a smarter solution for this problem:
The [Broadc...
svg xss attack
from falk-m.de
· 2024-02-17
SECURITY
In my last post about htaccess configuration, I found these lines of code in another project:
<IfModule mod_headers.c>
<FilesMatch "\.(?i:svg)$">
Header set Content-Security...
htaccess best practices
from falk-m.de
· 2024-02-16
PHPSECURITY
SEO and performance
set expiration header
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 week"
ExpiresByType text/html "access plus 600 seconds"
Expir...
Become a PHP professional developer | Part 1
from falk-m.de
· 2024-02-16
PHP
I want to ride a series to become a professional skill set in web development with PHP.
First, I check online applications searching a senior PHP developers.
Here is a list of required skills.
requ...
session management with tokens
from falk-m.de
· 2024-02-13
SECURITY
This Post is not about OAuth.
The inspected use case is the session management for an API after the authentication (after login).
It is not about the authentication process, code flow, and so on.
I...
Post messages to Slack Channel
from falk-m.de
· 2024-02-08
PHP
find the channel id
There are many ways to find the channel id.
The simplest is, to use the Slack browser application and copy the channel id from the URL after you enter the channel.
The URL looks...
Messages between browser tabs
from falk-m.de
· 2024-02-08
JS
In some cases, it is necessary to sync browser tabs or send a message to another tab.
For example: In one tab is a voice recorder and in the other is a list of recordings. When the record is finish...
Server side events with php
from falk-m.de
· 2024-02-06
PHPJS
There are different ways for near real-time browser updates by a server message.
With a PHP website on the server side, you are very restricted, because in normal case you can't run a web socket pr...