Page 2 of 18

Half-Life: Alyx – Console Commands and Cheats

Half-Life: Alyx – Console Commands and Cheats
7

As most of you know, I do not regularly post articles that are related to specific games.
However, Half-Life: Alyx most certainly is an exception for many reasons.

Having played and loved all Half-Life games, growing up with them, and having an interest in VR games, “Half-Life: Alyx” was simply a MUST HAVE.
After playing the game from beginning to end, more than once, I can only say that this is the new gold standard for VR gaming.

Spoiler alert!
Before you start reading this:
I HIGHLY recommend you finish the game first!

Really, it is so worth it, and you would not want to spoil the game with some lame cheats.
Don’t get me wrong; Cheats can be fun after you finished the game and you’re ready to mess around in the game.

So be warned as this description may contain spoilers.

Bluetooth XBox One controller on a Mac

Bluetooth XBox One controller on a Mac
5

With the arrival of support for third party game controllers in macOS Catalina (10.15), we can now connect most certain game controllers to our Mac. In this article we look at Bluetooth enabled XBox One controller.

Once such a controller is paired with your Mac, you can use it with games that support controllers, like certain games on Steam, nVidia Geforce Now, Apple Arcade and potentially many more.

Note: Some of you may have read my older article on how to connect a XBox 350 controller to you Mac (2015). This method, and the XBox 360 controllers, are still working of course, but it is time for an update now that Catalina offers native support for certain controllers. Personally I like the newer XBox One controllers better anyway (especially the Elite models, even though these are not exactly cheap).

Delphi – Retrieve Corrupted Data from DBF Databases

Delphi – Retrieve Corrupted Data from DBF Databases
0

dBase files, and several “clones” of this format, have been used for decades, and this format is no stranger to developers who use environments like Delphi and Lazarus Pascal.

Sometimes however, we run into the issue that we cannot access our data and in this article, sponsored by Devart, show how you may recover your data with one of their great tools: UniDAC.

On that note: I have used their MyDAC (database access for MySQL) in the past to develop a full fledged LIMS and can only say that Devart delivers one of the best and most reliable database access components you can find.

Keep in mind that these components are commercial products.
However, almost all of them have full-featured Trial versions and free Express versions with limited functionality available for commercial development. I highly recommend them. Also note that quite a few Devart products are suitable for application development for other platforms, for example macOS.

Standard Resistor Values

Standard Resistor Values
0

In this article you’ll find an interactive table in which you can find the standard resistor values, as used in electronics, and defined by the IEC.
You’ll find the values for the E6, E12, E24, E48, E96 and E192 Series (or “preferred resistor values”) in this table.

This can be useful when trying to find a matching resistor value when having done some [electronics] calculations and you’re looking for a particular value.

Lazarus Pascal – Move Items to Trash for Windows, Linux and macOS

Lazarus Pascal – Move Items to Trash for Windows, Linux and macOS
4

In this short article I’ll show how I implemented a cross platform (Windows, Linux, macOS) function for Lazarus Pascal to move files or directories to the TrashCan or Recycle Bin.

Since it took me some figuring out, I figured; why not write it down so others may benefit from this as well.
For your convenience: You can also download the Lazarus Pascal unit here, which holds the function for macOS, Linux and macOS.

ConnectMeNow v3 – Mount Network Shares Quick and Easy on a Mac

ConnectMeNow v3 – Mount Network Shares Quick and Easy on a Mac
372

macOS is great – I really like it a lot – but one thing it doesn’t handle all that great is … network shares.

In this day and age a little weird to still see this, especially from a company like Apple. We are more network connected than ever before – at home, in school and at work. We have network shares on our computers, want to access company network shares, or have a dedicated file server or NAS (Network Attached Storage) to store our information or make our backups.

Unfortunately, it is still cumbersome under macOS X to connect to those “shares” (also known as mounted network “Volumes“).

In Finder, a server doesn’t always appear right away, we need to go through a list of shares on a given “server”, get confused if we need SMBCIFSFTPSSHWebDAVNFS or AFP, and I’m not even mentioning the need to enter a username and password on protected shares.

For this reason I created ConnectMeNow – initially just for personal use.
But the arrival of the 64 bit requirement, mandatory signed applications, and notarization requirements, and Catalina issues, my original old version was simply outdated.

So after months of work, I’d like to present ConnectMeNow v3, which hopefully makes working with shares easier for you as well.

SSH Login without a Password

SSH Login without a Password
7

In this article, I’ll show you how you can login to SSH (Secure Shell) more secure, without not using a password, by using SSH-keys.

SSH allows several types of services to connect securely (encrypted and such) to be used, but the most common one is Shell (command line) access.
It is mostly used as a much more secure replacement for Telnet, rlogin, rsh etc.

Quite often, when starting to use SSH, most users will use a username and password to get SSH access, but this not the most secure method.
More secure, and easier to use, is by using so called SSH-keys, and in this article I’ll try to explain as simple as possible how this works and how to get started with this.

ApplePi-Baker v2.2.0 release for Catalina

ApplePi-Baker v2.2.0 release for Catalina
6

We have just released ApplePi-Baker v2.2.0.
This version was released with macOS Catalina in mind.

The first release of macOS Catalina (10.15) came with some serious problems for applications like ApplePi-Baker and the likes (Etcher etc).
The “Full Disk Access” security setting seemed to have a bug, preventing reliable access to external disks.

After Apple released its first update (10.15.1) this bug seems to be resolved in a way.
Accessing external disks still comes with a few challenges, so when a disk is being selected, ApplePi-Baker will verify  if “Full Disk Access” works.
If not, a notification and explanation will be shown how to enable “Full Disk Access” for ApplePi-Baker.

Additionally, a small bug (leaving a temp file behind after a backup or restore in ~/tmp) has been resolved.
If partition resizing was used when restoring an image, the resized IMG will still remain, saving you the time to restore the same image again.

For downloads and comments:
Please go to the original article: ApplePi-Baker v2 – Backup & Restore SD cards, USB drives, etc. or look at the Downloads page.

MacOS – How to create bootable macOS install media

MacOS – How to create bootable macOS install media
2

In this article, I’ll show you the steps to create macOS install Media …

As most Mac users will know; each new macOS version comes with a few challenges. For some it’s nothing, for other it’s a disaster.

Catalina is one of the latter, a disaster for quite few amongst us, due to changed security rules and the lack of support of 32 bit applications.
Some of my favorite tools simply no longer work, and as a developer this makes me nervous when considering switching to the latest and greatest.

For this purpose I always create a virtual machine in VMWare Fusion, running the macOS version that I ran before the update.
This comes with challenges though, since Apple, in their infinite wisdom, does not simply provide macOS install media (eg. a DMG or ISO file) so you can install another version of macOS. We have to create our own.

Note: Here I describe how to create macOS install media, either as a bootable USB stick to do a fully clean macOS install for your Mac, or a DMG file, for example to setup a virtual machine.

WordPress – An easy to understand Ajax Example

WordPress – An easy to understand Ajax Example
13

Since one of my WordPress plugins seems to have been ghosted by it’s developer, I had to develop my own plugin. Not a big deal, just a lot of work.

For this I wanted to use Ajax calls to retrieve data.
Reading up on WordPress and using Ajax, I found it difficult to find a complete and working example.
Even the WordPress Codex example produced a “400 (Bad Request)” (you can see this in the console of your webbrowser).

So, once I figured it all out, and got it to work, I decided to dedicate a short article on a quick and easy working example on how to get started with Ajax in WordPress by using PHP, JavaScript and jQuery.

I hope others benefit from this, potentially saving you a lot of time to get started.

MacOS – ToggleTheme – Single click Toggle Theme

MacOS – ToggleTheme – Single click Toggle Theme
2

As a hobby developer, when testing dark theme vs light theme under MacOS X, I have those moments where I have to switch back and forth between both themes quite often.
Going into the System Preferences to toggle theme, choosing the Appearance option, and then selecting the desired theme, does indeed work, but I wanted just a “one click” theme toggle.

To help myself with that, I created a small application that does exactly this: it toggles to “the other” theme, with just a simple click.
So when Dark Theme is active, it switches to the Light (Aqua) Theme. If however the Light Theme is active, it switches to Dark Theme.

The application is super simple, and has no interface. Just start the App and it changes theme and then closes itself.
Normally, this App would just sit in your Applications directory, with the optional shortcut in your Dock or even on the Touch Bar (if your Mac has one).

ApplePi-Baker 2.1.6 Update – Bug fix release

ApplePi-Baker 2.1.6 Update – Bug fix release
4

ApplePi-Baker is build specifically for MacOS, to make backups or restore images (IMG).
Initially intended for Raspberry Pi users, this tool can be used for plenty other applications as well.
For example flashing LibreElec or disk for ODroid, making backups of photography SD cards, etc.
All this is done in the same format as used by the command line tool “dd”.

ApplePi-Baker supports a nice list of compression formats.
For making backups: 7Zip, tbz, tgz, tlz, txz and Zip.
For doing restores: 7Zip, bzip, gzip, ISO, Jar, lzip, rar, tar, tbz, tgz, tlz, txz,xz and Zip.

Besides supporting compression, ApplePi-Baker can also resize a Linux partition to make it fit on your target disk (depending on the amount of used data in the partition of course) or minimize your backup to what is really used on the disk.
Note: Resizing only works for regular MBR disks with a standard partition table.

After some major changes in ApplePi-Baker 2.1.x, I’ve released version 2.1.6 today which fixes some minor issues.

To list a few:

  • Access Violation error when showing advanced view when there were no supported drives available
  • During resize (shrink or expand partition), ApplePi-Baker couldn’t find the temporary file on occasion (thanks Loe and Wolfgang!)
  • ODroid resize issue resolved (thanks Götz!)
  • Improved stability for partition resize (shrink/expand)

At this moment one bug remains open, and that is when there is not enough disk space on your Mac to do a backup and/or resize.

Download the latest version of ApplePi-Baker from the original article: ApplePi-Baker v2 – Backup & Restore SD cards, USB drives, etc.

If you run into any issues, bug, or errors using ApplePi-Baker, then please report these with the original article as well.

ApplePi-Baker v2.1 Update – Faster and Expand or Shrink IMG

ApplePi-Baker v2.1 Update – Faster and Expand or Shrink IMG
44

I’m very excited to announce that ApplePi-Baker now supports shrinking and expanding of Ext2, Ext3 or Ext4 Linux partitions on a Mac!!
This is something I wasn’t able to do before and is commonly seen as a challenge on a Mac (since MacOS does not support these Linux File Systems).

This update can only shrink or expand Linux partitions on a MBR partitioned disks (very common format used for the Raspberry Pi).

Keep in mind: I’ve done quite a lot of successful tests, but by lack of beta testers, I’m still marking it as experimental.

During backup, if the option has been enabled, ApplePi-Baker will locate a Linux partition and if found shrink it to it’s minimal size, and update the IMG file and it’s partition table (the source will not be affected). This will result in a much more compact IMG file, and offers a restore to a device of a different capacity.

On Restore, this same option will expand that Linux partition to the maximum available size on the target disk.
Obviously, the target device needs to be able to accommodate at least the minimum size of the IMG file.

Since quite a bit needs to be done (find partition, check file system integrity, resize partition, etc), this will naturally slow down the backup and restore process, but it will help restoring to different sized target disks/SD-card.

Not only that, version 2.1.0 is much faster than 2.0.0 – I’ve seen speed increases up to 300% during backup.

You can find the latest version of ApplePi-Baker in the original article (please place comments there).

 

ApplePi-Baker v2 – Backup & Restore SD cards, USB drives, etc.

ApplePi-Baker v2 – Backup & Restore SD cards, USB drives, etc.
632

ApplePi-Baker has become well known amongst Raspberry Pi users, with a Mac running macOS, to backup and restore SD-cards. Users do not just use ApplePi-Baker for this purpose anymore – I have seen users use it for backup and restore of pretty much anything not Raspberry Pi related.

Late 2013, I created ApplePi-Baker for my own use – I just got tired of looking up the proper command-line statements.
This way, ApplePi-Baker became my personal frontend for command-line tools like “dd“, “diskutil“, “mount” etc.

Over time, the use of command-line tools came with some problems; thanks Apple for changing command-line tool output with every new version of macOS. Besides that, having to enter your “sudo” password each time was a pain as well, and came with the occasional problems for a small group of users, so that had to go as well.

About 2 years ago I decided to rebuild ApplePi-Baker from scratch, no longer using any of the command-line tools. This came with quite a few challenges, especially since Apple increased security for macOS, not allowing me to do certain things straight from my program (see also SMJobBless: Elevated Privileges in Lazarus Pascal). I’m not even mentioning the drama when it comes to supporting the different compression formats, signing applications, and 64-bit requirements.

Almost 2 years later, I proudly present ApplePi-Baker v2. – special thanks to Jeff and Mark for testing!

UPDATE: ApplePi-Baker now also support shrinking and expanding of Linux partitions!

MacOS – SMJobBless: Elevated Privileges in Lazarus Pascal

MacOS – SMJobBless: Elevated Privileges in Lazarus Pascal
2

As some of you know, I created ApplePi-Baker a while ago, and with a new version I wanted to get away from using command-line tools like “dd” and “diskutil“. To do this the right way I needed to know how to use SMJobBless, in order to get root access, a.k.a. elevated privileges, privileged helper tool, etc.

Back in the day, we could do this pretty easy in our application, simply by using opening, reading and writing data from/to disks as “files”, with relatively simple code in our applications. These days seem to be gone …

With all kinds of malware trying to “hack” us, companies like Apple and Microsoft keep making it increasingly more difficult to actually get admin (root) access straight from our application (not to mention the seemingly cumbersome signing of applications). Which is all good, just too bad that the now majority of the time I spend on developing an application involves adapting to these limitations, instead of doing the creative thinking towards what the application really is for.

Apple has created a poorly documented mechanism for this, referred to as “SMJobBless” or “Privileged Helper“, and focusses heavily on Objective C and Swift – neither of these I like, let alone working with XCode (yuk!) – I really prefer working in Pascal, and specifically in an awesome IDE provided by Lazarus Pascal.

So in this article, I’m documenting my own findings to get this working with Lazarus Pascal – which took a lot of work and testing.

Keep in mind – I’m definitely not an expert on this topic, and I tried to include as much of what I found out as possible. It appears no-one has done this with Lazarus Pascal yet, so please bear with me, and definitely feel free to post improvements and/or suggestions. I’m sure there may be better ways and I’m always open to improving things, including myself.

1 2 3 ... 16 17 18