Hopefully one of these works:
- [WayBack] How to create a bootable installer for macOS – Apple Support
- [WayBack] macOS Mojave Direct Download from Apple Server
- [WayBack] How to Download a Full Size MacOS Mojave Installer
–jeroen
Posted by jpluimers on 2021/09/24
Hopefully one of these works:
–jeroen
Posted in Apple, Mac OS X / OS X / MacOS, Power User | Leave a Comment »
Posted by jpluimers on 2021/09/23
From a long time ago, but got a request for it a while ago is [WayBack/Archive.is] Howto create C-Header for Delphi/Free Pascal/Lazarus DLL – data types – Stack Overflow:
I have used the below construct to generate header files compatible with the C-mode compiler of Visual C++ 6 from Delphi 5 code when Delphi had the -JPH switch (see notes below).Note that I have not used this since Delphi 5, but the switch has since then been expanded:Somewhere along the line, the [WayBack] JPHNE switch has been added to thedcc32command-line compiler:-JPHNE = Generate C++ .obj file, .hpp file, in namespace, export allRudy Velthuis has a [WayBack] nice article using the JPHNE switch.It certainly does not handle all types, and you will need quite a bit of [Archive.is] HPPEMIT and [Archive.is] EXTERNALSYM directives.I uploaded my [Archive.is] Delphi 5 to Visual C++ 6 HPP conversion from back then to BitBucket.It generates the .hpp files to import the DLL that was written in Delphi.Notes from the Delphi 5 era:{ Visual C++ 6 does not like nested structs/unions the way that BC++ can handle them. Visual C++ 6 requires the "typedef" to be present AND the typename AFTER the struct definition. You will see this when defining TConversationId, TReturnKey and other types that depend on nested structs/unions The trick is to perform these steps each and every time this unit changes: - Generate this unit once with all the EXTERNALSYM disabled. - Then the DCC32 -JPH will generate the basic structs for them. - Copy all the nested struct and union definitions to this file - Embed the definitions with (*$HPPEMIT '' *) - Append the typename at the end of the struct definition - Enable all the EXTERNALSYM again - Regenerate the HPP files by using DCC32 -JPH To make this process easier, we have introduced two new conditional defines: - BCB - disable EXTERNALSYM, disable HPPEMIT - VC6 - enable EXTERNALSYM, enable HPPEMIT A similar thing is with these constructions that VC6 does not like those either: - short strings (BCB defines them as "SmallString<##>" which VC6 does not like). - short integers (BCB defines them as "Shortint" so we have included an HPPEMIT for that) } {$ifdef win32} { important! Makes sure that the all enumerated types fit in exactly one byte each! } {$Z1} { force the C/C++ HPP header files to have the C/C++ compiler pack structure elements on byte boundaries } {$ifdef BCB} {$HPPEMIT '#pragma option push -a1' } {$endif BCB} {$endif win32}
And the download (hopefully I have converted it to git by then):
The link to the converter is now [Archive.is] bitbucket.org/jeroenp/wiert.me/src/default/Native/… – Delphi Coder
–jeroen
Posted in Delphi, Delphi 5, Development, Software Development | Leave a Comment »
Posted by jpluimers on 2021/09/23
For my future self.
Due to an issue with choco-cleaner versions [WayBack] 0.0.6 and [WayBack] 0.0.7, I needed to ensure it was installed as version [WayBack] 0.0.5.2 and keep it that version.
Not sure if this is the canonical way, but this worked:
choco uninstall --yes choco-cleaner choco install --yes choco-cleaner --version 0.0.5.2 choco pin add --name=choco-cleaner --version 0.0.5.2 choco pin list
This worked to revert:
choco pin remove --name=choco-cleaner choco pin list choco upgrade --yes choco-cleaner
Aftere this upgrade, choco-cleaner version 0.0.7.1 shows a nice error message when the environment variable %ChocolateyToolsLocation% fails to exist.
In that case calling RefreshEnv.cmd will create that environment variable.
Related:
Default
%ChocolateyToolsLocation%location is%systemdrive%\toolsaccording to [WayBack] https://github.com/chocolatey/choco/blob/master/src/chocolatey.resources/helpers/functions/Get-ToolsLocation.ps1#L61
The readme.md on GitHub is out of sync… a bunch of stuff is that I need to get to eventually.
The new package page on chocolatey.org should be current and has this:
Release Notes
INSTRUCTIONS:
Edit C:\tools\BCURRAN3\choco-package-list-backup.config to customize your backup(s). It’s easy, there are comments.
From PowerShell or the Command Prompt, type CHOCO-PACKAGE-LIST-BACKUP to backup your Chocolatey packages list.
From Windows, click Chocolatey Package List Backup in the Windows Start Menu or Package List Backup inside the Chocolatey folder if Chocolatey Shortcuts is installed.
CHANGELOG:
2019.08.27 – can now put title and summary info into the packages.config file, new -EditConfig parameter to edit the config file, Now works from Command Prompt as well as PowerShell, script installation endpoint changed, config file renamed from .xml to .config
–jeroen
Posted in .NET, Chocolatey, CommandLine, Development, Power User, PowerShell, PowerShell, Scripting, Software Development, Windows | Leave a Comment »
Posted by jpluimers on 2021/09/23
I bumped in the error [WayBack] “The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.” when using [WayBack] Write-Output where [WayBack] Select-Object worked just fine.
This happened when playing around with detecting empty Chocolatey .nupkg package files.
$LibPath = Join-Path $env:ChocolateyInstall 'lib' $NupkgFilter = '*.nupkg' Get-ChildItem -Path $LibPath -Recurse -Filter $NupkgFilter | Where-Object {($_.Length -eq 0) -and ($_.BaseName -eq "hg")} | Sort-Object LastWriteTime | Select-Object BaseName <# Get-ChildItem -Path $LibPath -Recurse -Filter $NupkgFilter | Where-Object {($_.Length -eq 0) -and ($_.BaseName -eq "hg")} | Sort-Object LastWriteTime | Write-Output BaseName ## Write-Output : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input. #> Get-ChildItem -Path $LibPath -Recurse -Filter $NupkgFilter | Where-Object {($_.Length -eq 0) -and ($_.BaseName -eq "hg")} | Sort-Object LastWriteTime | ForEach-Object { Write-Output $_.BaseName }
The output is also slightly different, hinting on the root cause:
BaseName -------- hg hg
The above shows that Select-Object selects a list of BaseName properties (italic part), whereas Write-Output shows a single BaseName property content (bold part).
Posted in .NET, CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2021/09/22
For my link archive: [WayBack] GitHub – metasfresh/metasfresh: We do Open Source ERP – Fast, Flexible & Free Software to scale your Business.
It’s mainly written in JavaScript and Java with a PostgreSQL database and elasticsearch search.
There is plenty of [WayBack] metasfresh documentation (for users, administrators and developers), all with markdown source.
The developer documentation starts with a nice diagram of the [WayBack] metasfresh Architecture:
Markdown source of the architecture page: [WayBack] metasfresh-documentation/metasfresh_architecture.md at gh-pages · metasfresh/metasfresh-documentation · GitHub: Docs and Manuals for Devs, Users, Admins.
Via:
–jeroen
Posted in Development, Java, Java Platform, JavaScript/ECMAScript, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2021/09/22
[WayBack] Thread by @0xdade: Today I learned that you can put zero width spaces in file names on Linux. Have fun. I’m playing with this because punycode/IDN is fascinati…
I’m playing with this because punycode/IDN is fascinating, and I wanted to know what happened when I started shoving unicode in the path portion of the url, which isn’t part of how browsers try to protect URLs, as far as I can tell
Not related to the terminal fun, but related to zero width characters:
You can:
– Break url previews https://0xda.de
– @0xdade without tagging
– Make a word like systemd not searchable twitter.com/search?q=from%…Putting a link to this tweet here so that I don’t lose it again in the future.
My god, it is beautiful. I mean except all the whitespace I can’t get rid of before the command lmao.
Oh man can you imagine how annoying it would be to try to find these in your siem? N[zws]m[zws]a[zws]p[zws] isn’t likely to show up if you search for “nmap”But on the other hand if you just have a search for the zws, then whatever you find is probably worth investigating.I guess I’ll start the hashtag before @QW5kcmV3 does for #irresponsibleutf8 🤭😏😂
And these tweets:
xsel for linux). zws () { echo -n '\u200D' | pbcopy }… “000. If you cat it, there were \b chars to hide the flag. Super tedious.… “Variation Selectors (U+FE00..U+FE0F) are zero-width invisible modifiers with the ID_Continue property, so can be used inside variable names in languages like Python or C#. And since they’re modifiers, the cursor doesn’t stop when it passes them.… “\a in C) is printed by the program, it will cause the terminal to ring its bell.… “[WayBack] Acme::Bleach – For really clean programs – metacpan.org
https://0xda.de – @0xdade without tagging – Make a word like systemd not searchable “
[WayBack] Thread by @Plazmaz: @0xdade Was doing some real fucking around with urls recently: gist.github.com/Plazmaz/565a5c… (was gonna flesh it out more but didn’t find…:
Was doing some real fucking around with urls recently:(was gonna flesh it out more but didn’t find the time)
This one is my fave:
‘⁄’ (\u2044)
or
‘∕’ (\u2215)
Allow for this:
google.com⁄search⁄query⁄.example.com
google.com⁄search⁄query⁄@example.com[WayBack] url-screwiness.md · GitHub:
This is a list of methods for messing with urls. These are often useful for bypassing filters, SSRF, or creating convincing links that are difficult to differentiate from legitimate urls.
And a bit of documentation links:
–jeroen
Posted in *nix, .NET, C#, Development, NTFS, Power User, Python, Scripting, Software Development, Windows | Leave a Comment »
Posted by jpluimers on 2021/09/22
Since I switch a lot between languages, I tend to forget what indentation, spacing and termination to use.
So from the Indentation/Length/Spacing/Termination sections in [WayBack] Code Layout and Formatting · PowerShell Practice and Style:
Posted in .NET, CommandLine, Development, PowerShell, PowerShell, Scripting, Software Development | Leave a Comment »
Posted by jpluimers on 2021/09/21
A while ago, This does not compute had a few nice videos on a Mac SE/30 and it’s repair, including the recap process of replacing the electrolytic capacitors (or condensators in some other languages), and cleaning the board (some wash it with hot water and soap, others with isopropyl-alcohol, often called rubbing alcohol).
Note the simasimac can have many causes: bad capacitors in main board are the most common, but it can also be bad memory.
White lithium grease can make the floppy work again (see also [WayBack] Lithium soap – Wikipedia and [WayBack] Grease (lubricant) – Wikipedia).
He also added some links to which I added some quotes and WayBack links:
Bringing a Zebra Stripe SE/30 Back to Life, Paul Brierley, The ‘Book Beat, 2009.02.19. The Japanese call it Simasimac, the horizontal striped pattern that indicates your Mac is terminal.
Macintosh SE/30 – IIcx (without NuBus)
- [WayBack] Page 1-> 68030, 68881/882, PDS
- [WayBack] Page 2-> ROM Simm, RAM Adr. Mux.
- [WayBack] Page 3-> GLUE Chip, RAM Simm
- [WayBack] Page 4-> VIA1, VIA2, RTC, ADB
- [WayBack] Page 5-> Video Interface
- [WayBack] Page 6-> SCSI, SWIM
- [WayBack] Page 6a-> SCSI, SWIM Page 2
- [WayBack] Page 7-> RS422, ASC, SONY Snd
- [WayBack] Page 8-> Power Conn.,
The Mac ROM-inator II replaces the stock Macintosh ROM SIMM with a custom flash memory module. Add a bootable ROM disk, make your system 32-bit clean, gain HD20 hard disk support, and more. The Mac ROM-inator II supports the Macintosh SE/30, IIx, IIcx, IIci, IIfx, and IIsi.
The Mac ROM-inator II is fully assembled and ready to use. Just plug it in and go.Mac ROM-inator II Atom, $42
2 MB SIMM pre-programmed with ROM Disk with System 7.1, HDSC Setup, ResEdit, and SCSI Probe. Compatible with Mac SE/30, IIx, IIcx, IIci, IIfx, IIsi. More InfoThe Mac ROM-inator II is great for breathing new life into your old SE/30 or II-series Macintosh. The ROM disk provides fast and convenient boot-ups and a collection of disk utility programs, and customized startup sounds and icons add a touch of fun. The ROM SIMM comes pre-programmed with a BMOW-made custom ROM containing the following changes:
- ROM disk provides a diskless booting option
- HD20 hard disk support built-in
- 32-bit clean – allows use of System 7.6+ and more than 8MB RAM
- Memory test is disabled for faster booting on 16MB+ systems
- Customized startup chime – major 9th arpeggio
- Happy Mac icon is replaced by a color smiling “pirate” Mac
- New startup menu screen displays installed RAM, addressing mode, and ROM disk details
The ROM-inator II is based on Doug Brown’s earlier [WayBack] Mac ROM SIMM design, used with permission.
The SE/30 is probably the most popular candidate for recapping. Unfortunately, it’s also one of the more difficult to revive as the leaked electrolyte easily damages traces and vias on these boards. Be sure to wash these boards very well and inspect closely for broken or rotten traces.
Capacitor List:
10 – 47µf – 16V – SMT
1 – 220µf – 16V – Axial
1 – 470µf – 16V – Axial
1 – 1µf – 50V – SMT
Click on the photo for a larger view
Desolder can be tricky, especially for surface mount. This helps:
Choosing capacitors:
Soldering: always add some fresh solder on the pads before soldering surface mount (SMD) capacitors.
–jeroen
Posted in 68k, Apple, Classic Macintosh, Development, Hardware Development, History, Macintosh SE/30, Power User, Soldering | Leave a Comment »
Posted by jpluimers on 2021/09/21
Lots of interesting tidbits on unix and NTFS file systems.
If you want to blow up your tooling, try creating a recursive hardlink…, which is likely one of the reasons that nx file systems do not support them.
Covered and related topics:
Posted in *nix, Development, File-Systems, History, NTFS, Power User, Software Development, Windows, Windows Development | Leave a Comment »
Posted by jpluimers on 2021/09/21
“Spooky dev environment hack: add 127.0.0.1 xn--9q8h to /etc/hosts and then all your dev servers can be accessed at http://👻 It’s localghost!”
Via:
–jeroen
Posted in Communications Development, Development, HTTP, Internet protocol suite, Power User, Software Development, TCP | Leave a Comment »