search all keys of an associative array (containing key => value, instead of [0],[1],[2]) for a substring, return value associated with that key/property. /* returns the $value of the element, * if $search_for_this_string is found in one of the keys […]
the developer can name this file ./EXAMPLES/ARRAY/find.php please note the strpos or stripos !== false without it, if a substring is found within a string at position 0 for if 0 equals false <?php $mystring = ‘abc’; $findme = ‘a’; […]
usage: $devices_array_sorted = ArrayOfArraysSort($devices_array, “AverageWatts”,SORT_ASC); the function: /* sort array that contains a lot of arrays by key */ function ArrayOfArraysSort($array,$key,$mode) { // sort by age $sort = array(); foreach($array as $k=>$v) { $sort[$key][$k] = $v[$key]; } # sort by […]
/* search $array of strings for $search_for_this * (case-in-sensitive and will also find “this” “in-a-longer-ThIs-string”) * remove element if found */ function ArraySearchDelete($array, $search_for_this) { $result = array(); foreach($array as $element) { if(!stristr($element, $search_for_this)) { array_push($result,$element); } } return $result; […]
here is hugo https://gohugo.io/ recommended by a user, so have to look at it installing it for GNU Linux Debian users is as easy as: (no need for snap or brew) lsb_release -d; # tested on Description: Debian GNU/Linux 11 […]
What is interesting, that 33% of all website creators, decide to not use any CMS at all (static HTML/manually editing it). there is even a trend of creating cms inside wordperss, “cms inside the cms” so to speak, with plugins […]
automatic (daily, hourly?) updates of everything internet-reachable is important. of course developers need to provide timely updates for possible cybersec problems users/admins need working update methods that work with minimum downtime the wordpress “automatic core and plugin auto-updates” feature, has […]
Updates are sometimes welcome, sometimes hated. This is how the slogan: “never touch a running/working system” originated. But in the times of the wild west internet, all directly or indirectly internet connected devices need to stay as up to date […]
here is a demo video: the possibility to step (!) debug requests, as they appear on the server is a neat feature, xdebug + eclipse are a great team, when the setup is complete. installed GNU Linux Debian 11 […]
php8 delivers up to +25% better speed than php7, which is remarkable. follow this excellent guide, and how to upgrade apache2 based webservers from php7 to php8.1, simply replace php8.0 with php8.1 in this excellent guide guide: in short: su […]
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0 Hello Dear Mozilla / Dear Firefox management & DevTeam, using this rss app to stay up to date with various open source related blogs & sites., what cought the user’s eye […]
the task at hand ought to be a simple one… the user has a data table of some sort (a Excel sheet). and wants only unique data sets (no duplicates) in a certain column theoretically Libre Calc can do that, […]
“floating point arithmetic is considered an esoteric subject by many people” (src: What Every Computer Scientist Should Know About Floating Point Arithmetic – David Goldberg 1991.pdf) some even do “transcendental calculations” (src) make no mistake: computer make mistakes too! not […]
setup LAMP GNU-Linux Apache2 MariaDB PHP7.3 su – root; # become root apt update; # update system to latest apt upgrade; # database first apt install mariadb-server mariadb-client # set root pwd for database (can be root on dev test […]
git was initially written by Linus Torvalds on the idea: how to create source code management system that does not suck. source code management is very useful when the developer team is x > 1 developer. it allows fast syncing […]
All users are strongly encouraged to upgrade to the latest versions of PHP 7.3.11 and PHP 7.2.24. Vulnerability in PHP7 exposes sites to remote hacking risk The problem only applies to NGINX servers with PHP-FPM enabled. image A dangerous vulnerability […]
list of RSS feeds that might be interesting 😀 RSS-Feeds are files.xml, which are auto-generated by CMS like WordPress. It can be subscribed to with an RSS-Client Software. Thunderbird (the Mail program) for example (tested on version 60.6.4 and above) […]
2020-12: another reason why JavaScript SUCKS badly and websites NEED TO WORK without JS: it might “destroy” NAT security: NAT Slipstreaming allows an attacker to remotely access any TCP/UDP service bound to a victim machine, bypassing the victim’s NAT/firewall (arbitrary […]
By the amount of commentary SPAM i get on WordPress using Google’s ReCaptcha… it wonder if i shut just disable comments all together (kind of what Anti Spam Bee did… it was impossible for me to comment on my own […]
Update: 2020.03 “The newly developed Rowhammer- attack TRRespass can crack the RAM-a security mechanism by many DDR4-DRAM-modules as well as LPDDR4 Chips. Until now, these were considered to be almost immune to Rowhammer attacks.” https://www.com-magazin.de/news/sicherheit/software-hammer-ram-schutz-attackiert-2515621.html Update: 2019.10 Zombieload is back. […]
add value. creating a better world by free software + develop some degree of consciousness = adds value for all life on the planet. this is what software development is all about. whatever makes reaching this goal easier/better is welcome. […]
i did just some basic testing… and managed to compile the php7.3 binary – but the make install failed. it would help to have multiple cores… hostnamectl; # tested with Static hostname: CentosSlave Icon name: computer-vm Chassis: vm Operating […]
i tried to compile under debian…. but it’s way more compli cated. also: you probably do not need all the packages stated here… but i did not have the time to sort those out sorry for that. feel free to […]
install firefox app and test it for free here: https://appr.tc/ When Browsers start to talk to each other – Open Source HTML5 based Web Video Audio Conferencing WebCam ScreenSharing – Collaboration over internet WebRTC (“Web Real-Time Communication“) enables applications such […]
a classic example of the exaggerated use of javascript. which is an slow and unreliable language and i really wonder how people manage to build larger applications with it. result was… “no there is no faster internet from us for […]
this guide is abit outdated… If you need XDebug + Eclipse look here (allows step-debugging of your php code very very nice 🙂 . (slightly more complicated setup) lighttpd is “just as good” as apache2 – except – it does […]
“The Unix Philosophy in One Lesson” “All the philosophy really boils down to one iron law, the hallowed ‘KISS principle’ of master engineers everywhere:” “Keep It Simple, Stupid” or “Keep It Super Simple” (less offensive) The Unix philosophy emphasizes building […]
ich wollte mal wissen, wie steht es eigentlich um die Security auf Technologie / Programmiersprachen-Ebene? D.h. welche Programmiersprachen machen es einem schwer vs. einfach sichere Software zu schreiben? Natürlich kann man in jeder Programmiersprache angreifbare Projekte entwickeln… das ist kein […]
https://sourceforge.net/projects/wincachegrind/
this applies to : Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux) cat /etc/debian_version 8.6 PHP Version 5.6.28-0+deb8u1 Linux debian home tmp sess can accumulate a lot of files… they stem from mysql but also from php sessions. the […]