Archive for the ‘Development’ Category
Posted by jpluimers on 2022/10/25
With the rise of *nix tools and infrastructure on Windows (including, but certainly not limited to Visual Studio Code and Windows Subsystem for Linux), I need to get acquainted to the new ways these interface to the Windows Console.
Since Windows Console is from the (now obsolete) UCS-2 days, so it is not even fully Unicode aware, and has trouble with UTF-8, UTF-16.
So here are some links for my reading list:
–jeroen
Read the rest of this entry »
Posted in *nix, *nix-tools, CommandLine, ConPTY, Console (command prompt window), Development, Linux, Power User, Software Development, Windows, Windows 10, Windows 11, Windows Development, Windows Terminal, WSL Windows Subsystem for Linux | Leave a Comment »
Posted by jpluimers on 2022/10/20
Last week I found out that I had some Windows ATOM issues before, but this beats them easily was still a draft in stead if in the blog queue.
I got reminded to it by someone asking on Telegram about
“Do I need to use GarbageCollectAtoms in Delphi? I used it in delphi 7, but I dont know what is benefit. 😐”.
The short answer is: yes, if your Delphi application does terminate in a way that the Controls unit cannot cleanly unload (and cannot free the Windows atoms) or leaks Windows atoms in a different way. I have been in that situation and that’s why I wrote the above blog post that got published in 2016.
The longer answer is likely no, both the Windows atom and registered Windows message table share a heap and that registered VCL Windows message leaking bug got fixed some 10 years ago in Delphi XE2, see:
Read the rest of this entry »
Posted in Conference Topics, Conferences, Delphi, Development, Event, Power User, Software Development, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1, Windows NT, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Vista, Windows XP | Leave a Comment »
Posted by jpluimers on 2022/10/19
Posted in Development, FortiGate/FortiClient, Hardware, Network-and-equipment, Power User, Security, Software Development, VPN, Windows, Windows 10, Windows 7, Windows 8, Windows 8.1, Windows 9, Windows Development, Windows Server 2000, Windows Server 2003, Windows Server 2003 R2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server 2016, Windows Vista, Windows XP | Leave a Comment »
Posted by jpluimers on 2022/10/12
I’ll be following this guideline (or maybe by now already have):
Zelfbouw meetstation voor meten vlieghinder.pdf (Google Drive)
This is what I needed:
If you do not have a Raspberry Pi, then you can get it from them as a package for EUR 115 (including case, preinstalled microSD-card, charger and WiFi adapter):[
Wayback/
Archive.is]
Raspberry Pi Zusatzkit zum Komplettpaket Lärm (with configuration manual at [
Wayback]
Anleitung Raspberry.pdf)

Documentation:
- [Wayback] Do it yourself
- Software versions:
- [Wayback/Archive.is] Low-Cost Technik
Betriebsspannung: 12V
Meßbereich: 30dB(A) … 100dB(A)
Ausgangsspannung: 0V … 2,5V
Der Micro-Controller muss innerhalb des Hauses montiert werden.
Er benötigt Strom (12V =, Stromversorgung im Lieferumfang enthalten).
Vom Micro-Controller aus geht es mit einem normalen seriellen Kabel zum PC/Raspberry.
- [Wayback/Archive.is] Anleitung zum Betrieb einer Fluglärm Messstation
- The above link has two expensive solutions (which are certified for official noise measurements in Germany), and this lower cost solution:
- [Wayback/Archive.is] AK Modul-Bus
- Materialkosten 185,00 € (Sensor und Micro-Controller mit Stromversorgung)
- Der Sensor muss außen am Haus angebracht werden, der Micro-Controller im Haus. Die max. Kabellänge beträgt 7m. Der Micro-Controller braucht eine externe Stromversorgung, d.h. es muss eine Steckdose in der Nähe sein.
- Sie brauchen einen alten PC oder einen Raspberry Pi.
Die Verbindung zwischen Micro-Controller und PC/Raspberry Pi besteht aus einem seriellen Verbindungskabel (max. Kabellänge 50m).
- Der PC/Raspberry Pi braucht einen Internetanschluss.
Je nachdem wie die Internet-Verbindung realisiert wird, muss in der Nähe des PC’s eine freie Netzwerkdose vorhanden sein.
- [Wayback/Archive.is] DFLD
Via:
Related:
–jeroen
Read the rest of this entry »
Posted in Development, Hardware Development, Hardware Interfacing, Raspberry Pi, USB | Leave a Comment »
Posted by jpluimers on 2022/10/06
An interesting thread by Kristian Köhntopp last year:
[Archive.is] Kristian Köhntopp on Twitter: “Python: >>> print(1+2+” = “+2+1) Traceback (most recent call last): File “”, line 1, in TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’ Java: System.out.println(1+2+” = “+1+2); 3=12”
The examples from him and others in the thread:
Python:
>>> print(1+2+" = "+2+1)
Traceback (most recent call last):
File "", line 1, in
TypeError: unsupported operand type(s) for +: 'int' and 'str'
Java:
System.out.println(1+2+" = "+1+2);
3=12
php8.1 -r 'print 1+2+" = "+2+1;'
PHP Fatal error: Uncaught TypeError: Unsupported operand types: int + string in Command line code:1
Stack trace:
#0 {main}
thrown in Command line code on line 1
php7.3 -r 'print 1+2+" = "+2+1;'
PHP Warning: A non-numeric value encountered in Command line code on line 1
Node?
Chrome & FF dev console:
window.alert(1+2+" = "+1+2)
3 = 12
Sind ja immerhin verschiedene Sprachen.
SELECT Wert1
FROM table1
WHERE Wert1 < AVG(Wert1);
DB2 vs. Oracle vs. MSSQL vs. ....
The joke is that Python actually does better than Java.
But in practice, this is a problem on many platforms, so it deserves constant attention, that’s why Kristian pointed to [Archive] Anna “Legacy Archaeologist” Filina on Twitter: “My annotated slides “Fantastic Bugs and How to Avoid Them” from @LonghornPHP: #LonghornPHP”
[Wayback/Archive] Fantastic Bugs and How to Avoid Them – Speaker Deck
I’ve expanded the examples from the thread below. The results are interesting and consistent over versions of the various languages.
–jeroen
Read the rest of this entry »
Posted in Development, Java, Java Platform, JavaScript/ECMAScript, Node.js, PHP, Python, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2022/10/04
On my list of Visual Studio Code extensions to try (after I change the shortcuts, as direct Alt shortcuts are not a good idea, luckily those are configurable)
[Wayback/Archive.is] HTML / XML / RSS link checker – Visual Studio Marketplace (partly paraphrased):
VSCode extension that checks for broken links in an HTML, XML, RSS, PHP, or Markdown file.
…
Checks currently open file:
- for broken links in anchor-href, link-href, img-src, and script-src tags in currently-open HTML or PHP file
- both clearnet and onion (Tor) links
- for badly-formatted mailto links, and duplicate local anchors (anchor-name, anchor-id)
- for working HTTPS equivalents of HTTP links
Optionally checks for invalid characters and common mistakes (missing tag content, empty attribute value, more).
Also checks for errors in a small subset of semantic HTML tags (in HTML and PHP files): checks that each page has header, main, footer; checks that each heading is inside a section, article, or aside; checks that each section/article/aside has exactly one heading in it; checks that heading values are nested properly.
…
To see/change settings for this extension, open Settings (Ctrl+,) / Extensions / “HTML / XML / RSS link checker”.
To change the key-combinations for this extension, open File / Preferences / Keyboard Shortcuts and search for Alt+H or Alt+T or Alt+M or Alt+L.
–jeroen
Posted in .NET, Development, HTML, Lightweight markup language, MarkDown, Power User, RSS, Software Development, vscode Visual Studio Code, Web Development, XML, XML/XSD | Leave a Comment »
Posted by jpluimers on 2022/10/03
I wrote about Visual Studio Code: blazingly fast text expansion with Emmet in september.
Another productivity extension that is on my list is [Wayback/Archive.is] Tabnine – Code Faster with the All-Language AI Assistant for Code Completion, autocomplete JavaScript, Python, TypeScript, PHP, Go, Java, node.js, Ruby, C/C++, HTML/CSS, C#, Rust, SQL, Bash, Kotlin, R – Visual Studio Marketplace.
The first thing I thought of when reading this is “oh, wasn’t this the GitHub open source AI code completion plugin controverse in mid 2021?”. It wasn’t. See links below.
Read the rest of this entry »
Posted in Development, Software Development, vscode Visual Studio Code | Leave a Comment »