[WayBack] The Delphi Open Tools API Book 1.1 – Dave’s Development Blog
- Where is available open tools api book for download?
A:David Hoyle has a great website and book. https://www.davidghoyle.co.uk/WordPress/?page_id=1110
–jeroen
Posted by jpluimers on 2021/10/07
[WayBack] The Delphi Open Tools API Book 1.1 – Dave’s Development Blog
–jeroen
Posted in Delphi, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2021/10/07
What do we want?
Now!
When do we want it?
No more race conditions!
What do we want?
To procrastinate less!
When do we want it?
Tomorrow!
–jeroen
Posted in Development, Fun, LifeHacker, Power User, Quotes, Software Development, T-Shirt quotes | Leave a Comment »
Posted by jpluimers on 2021/10/07
TL;DR: Empty files are indeed of size zero, but there is some disk space involved for their meta-data (like name, permission, timestamps)
Some links (via [WayBack] create zero sized file – Google Search):
Filesystems store a lot of information about a file such as file name, file size, creation time, access time, modified time, created user, user and group permissions, fragments, pointer to clusters that store the file, hard/soft links, attributes… Those are called file metadata. Why do you count those metadata into file size when users do not (need to) care about them and don’t know about them? They only really care about the file content
Moreover each filesystem stores different types of metadata which take different amounts of space on disk. For example POSIX permissions are very different from NTFS permission, and there are also
inodenumbers in POSIX which do not exist on Windows. Even POSIX filesystems vary a lot, like ext3 with 32-bit block address, ext4 with 48-bit, Btrfs with 64-bit and ZFS with 128-bit address. So how will you count those metadata into file size?Take another example with a 100-byte file whose metadata consumes 56 bytes on the current filesystem. We copy the file to another filesystem and now it takes 128 bytes of metadata. However the file contents are exactly the same, the number of bytes in the files are also the same. So displaying file size as 156 bytes on a system but 228 bytes on another is very confusing and counter-intuitive.
touchwill create an inode, andls -iorstatwill show info about the inode:$ touch test $ ls -i test 28971114 test $ stat test File: ‘test’ Size: 0 Blocks: 0 IO Block: 4096 regular empty file Device: fc01h/64513d Inode: 28971114 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/1000) Gid: ( 1000/1000) Access: 2017-03-28 17:38:07.221131925 +0200 Modify: 2017-03-28 17:38:07.221131925 +0200 Change: 2017-03-28 17:38:07.221131925 +0200 Birth: -Notice that
testuses 0 blocks. To store the data displayed, the inode uses some bytes. Those bytes are stored in the inode table. Look at the ext2 page for an example of an inode structure [WayBack].
Oh and a nice NTFS thing (thanks [WayBack] Paweł Bulwan):
and in case of NTFS, the size of file reported by Windows and most tools is actually the size of the main stream of the file, which we perceive as the content of the file. The file stored on NTFS partition can additionaly have some data stored in alternative data streams, and still have the reported size of 0. It’s a nice filesystem feature to know if you want to have the full picture :)
Related: my really old post command line – create empty text file from a batch file (via: Stack Overflow)
–jeroen
Posted in *nix, btrfs, Development, File-Systems, NTFS, Power User, Software Development, Windows | Leave a Comment »
Posted by jpluimers on 2021/10/06
I learned a few new things a while ago, but still have a hard time to get the association between colours and meanings right.
Colours:
Based on these tweets and links:
In United States war-gaming simulations, the U.S. force is always the Blue Team and the opposing force is always the Red Team.
–jeroen
Posted in Development, LifeHacker, Power User, Security, Software Development | Leave a Comment »
Posted by jpluimers on 2021/10/06
All my IPv4 addresses seem to be blocked with messages like this (note the odd, but allowed, leading zero in the IPv4 address [WayBack]):
Error
A quick [WayBack] “This IP was identified as infiltrated and is being used by sci-hub as a proxy.” – Google Search shows they also block the Google Bot.
I am not not even going to bother with companies that have bad infiltration detection.
Of course I ensured the paper has been archived:
[WayBack/Archive.is] Highly esteemed science: An analysis of attitudes towards and perceived attributes of science in letters to the editor in two Dutch newspapers – Stefan P.L. de Jong, Elena Ketting, Leonie van Drooge, 2020.
Note I do not run sci-hub, though it tempts me doing so. For more info: [WayBack] Sci-Hub – Wikipedia
I checked the router and web-proxy for any suspicious activity. There is none.
I do run the ArchiveBot by the ArchiveTeam to support the WayBackMachine of the InternetArchive and the great team Mark Graham has there providing some bandwidth and CPU/memory resources helping them archive public internet content for posterity.
It that triggers SAGE, too bad for them.
–jeroen
Posted in Development, Internet, InternetArchive, LifeHacker, Power User, Software Development, WayBack machine, Web Development | Leave a Comment »
Posted by jpluimers on 2021/10/05
googlechrome: scheme to force Chrome as browser on it a while agoexample: scheme to an application)microsoft-edge: scheme even more than Windows 10 to force URIs to open in Edge, and some browsers are now working around thisVia:
- Implement
microsoft-edge:protocol handler, issue #1726697, , Masatoshi Kimura, Firefox project, Bugzilla, Mozilla- When Brave handles
microsoft-edge:protocol searches use user’s default search instead of Bing, issue #17684, , Brian Clifton, Brave browser project, Brave Software, GitHub- Allow Brave to Handle Searches from Windows Shell and Cortana, issue #13875, , Brave browser project, Brave Software, GitHub
microsoft_edge_protocol_util.cc, commit a80e1ea7b6, , Simon Hong, Brave Core project, Brave Software, GitHub- Mozilla has defeated Microsoft’s default browser protections in Windows, , Tom Warren, The Verge, Vox Media
- Microsoft is making it harder to switch default browsers in Windows 11, , Tom Warren, The Verge, Vox Media
- Opening links in Chrome for iOS, , Mobile Chrome, Documentation, Chrome Developers, Google
Posted in Awareness, Development, HTTP, Internet protocol suite, Software Development, TCP, TLS, URI, Web Development | Leave a Comment »
Posted by jpluimers on 2021/10/05
This is from almost 2 years back, so I wonder if the physical and virtual Google Maps spoofing still works.
Via:
Google Maps Hacks
Performance & Installation, 2020
” 99 second hand smartphones are transported in a handcart to generate virtual traffic jam in Google Maps.Through this activity, it is possible to turn a green street red which has an impact in the physical world by navigating cars on another route to avoid being stuck in traffic. ” #googlemapshacks
–jeroen
Posted in Android, Development, Google, GoogleMaps, Mobile Development, Power User, Software Development | Leave a Comment »
Posted by jpluimers on 2021/10/05
The CSS from [WayBack/Archive.is] Naughty naughty no alt that shows the below red moving rendering of images that do not have an alt-text is simple:
Posted in Bookmarklet, CSS, Development, HTML, HTML5, Power User, Software Development, Web Browsers, Web Development | Leave a Comment »
Posted by jpluimers on 2021/10/04
I wanted to setup a UniFi USG (Ubiquiti Unifi Security Gateway) with round robin multi-WAN and incoming port forwarding on both WAN connections.
Quite a few links were the result:
Adoption was another headache. Some links on that too:
If you end up in a cannot adopt state, then a reset is the only practical way to go:
–jeroen
Posted in Network-and-equipment, Power User, Unifi-Ubiquiti, USG Ubiquiti Unifi Security Gateway | Leave a Comment »