Fix C & C General DirectX 8.1 Error + Screen Size
  • Solution 1 : 
    Go into the game root directory. (The folder that has your generals.exe) and delete the dbghelp.dll
  • Solution 2 : 
    Edit the options.ini file.
    I installed my game through Steam on Windows 11.
    Now it’s important to note that on the newer versions of windows.
    Some documents get uploaded automatically to a OneDrive folder.
    This caused a lot of confusion for me because my documents folder with the ini file was empty.
    • There are 2 directories you can check for the Options.ini folder.
      • 1 : C:\Users\User\OneDrive\Documents\Command and Conquer Generals Zero Hour Data
      • 2 : C:\Users\User\Documents\Command and Conquer Generals Zero Hour Data
        • Inside one of those directories. You should find an Options.ini file. 
          Inside the file update your resolution to 800 600
          You can adjust it once the game starts. But just to get the game started update it to 800 600

          AntiAliasing = 18
          CampaignDifficulty = 2
          GameSpyIPAddress = 0.0.0.0
          Gamma = 50
          IPAddress = 0.0.0.0
          IdealStaticGameLOD = High
          LanguageFilter = false
          MusicVolume = 55
          Resolution = 800 600
          Retaliation = yes
          SFX3DVolume = 79
          SFXVolume = 71
          ScrollFactor = 50
          SendDelay = no
          StaticGameLOD = High
          UseAlternateMouse = no
          UseDoubleClickAttackMove = no
          VoiceVolume = 70
  • Solution 3, Also I believe this was my fix for the screen size limitation : 
    Install the C&C GenTool_v8.8.exe
    I can’t remember exactly which site I installed this from. I found a link on Reddit.
    I do not take any credit for this tool. I found it online.
    I did not make it. But it did solve my issue. 
CSS Color (Colour) Concatenation

So I figured this out by mistake and had my mind blow when I saw it. Haha I have been programming with CSS for 7 years and I didn’t know this!

I was adjusting default bootstrap checkbox colours and I accidentally typed an additional colour without clearing and it ended up splitting the colours. Looks quite cool! Check how the border splits half half on each side with the colours.

.form-check-input:checked {
    background-color: #000;
    border-color: #000#FFF;
}
Powering IT with Virtualization and Storage Technologies

(VMware vSphere, Microsoft Hyper-V, Proxmox Virtual Environment (Proxmox VE), Oracle VirtualBox, Docker, Kubernetes, FreeNAS, OpenMediaVault, VMware Workstation/Fusion, Microsoft Azure, Amazon EC2, Amazon Web Services (AWS), Microsoft Azure, Google Cloud Platform (GCP), DigitalOcean, Synology DiskStation, QNAP NAS, Western Digital My Cloud)

Virtualization and Storage Technologies for Website Hosting, Website Containerization, Dedicated Storage, and VM Deployments:

  1. Virtualization Platforms:
  • VMware vSphere: Enterprise-level virtualization for server consolidation, high availability, and resource management.
  • Microsoft Hyper-V: Virtualization platform for running multiple VMs on Windows servers.
  • Proxmox Virtual Environment (Proxmox VE): Open-source virtualization with KVM and LXC support for data centers and cloud environments.
  • Oracle VirtualBox: General-purpose virtualization software for testing and development on desktops.
  1. Website Containerization:
  • Docker: Containerization platform for packaging applications and their dependencies for easy deployment and scalability.
  • Kubernetes: Container orchestration system for automating, scaling, and managing containerized applications.
  1. Dedicated Storage Operating Systems:
  • FreeNAS: Open-source NAS OS with support for SMB/CIFS, NFS, and iSCSI, offering data redundancy through ZFS.
  • OpenMediaVault: NAS OS with a web-based interface, supporting various file sharing protocols and plugins.
  1. Virtual Machine Deployment:
  • VMware Workstation/Fusion: Desktop virtualization for testing and development of VMs on personal computers.
  • Oracle VirtualBox: General-purpose virtualization software also used for testing and running VMs on desktops.
  • Microsoft Azure: Cloud platform offering VM deployment and management in the cloud.
  • Amazon EC2: Cloud-based VMs on Amazon Web Services (AWS) for scalable computing.
  1. Cloud Hosting Services:
  • Amazon Web Services (AWS): Cloud computing platform with various services, including EC2 for VMs and S3 for storage.
  • Microsoft Azure: Cloud platform offering VMs, databases, and other services for website hosting and application deployment.
  • Google Cloud Platform (GCP): Cloud services with Compute Engine for VMs and Cloud Storage for scalable storage.
  • DigitalOcean: Cloud provider with Droplets (VMs) and Spaces for object storage.
  1. Network-Attached Storage (NAS) Solutions:
  • Synology DiskStation: NAS solution with a user-friendly interface, supporting various services like file sharing, backups, and media streaming.
  • QNAP NAS: Network storage solutions with comprehensive applications and RAID configurations for data protection.
  • Western Digital My Cloud: Personal cloud storage for home users with remote access to files.

These are some of the popular virtualization and storage technologies used in the IT industry, each catering to specific use cases for website hosting, containerization, storage, and VM deployments.

Laravel Import Template with Error Handling and Try Catch for failures
public function import_data(Request $request)
{
    $success = true;

    try {
        DB::beginTransaction();

        foreach ($request->array_or_object as $item) {
            $record_payload = [
                "name" => $item->name,
                "surname" => $item->surname,
            ];

            $record_id = $item->id ?? null;
            $inserted_record = RecordModel::updateOrCreate(['id' => $record_id], $record_payload);

            if (!$inserted_record) {
                $success = false;
                break; // Stop further processing if any insert fails
            }
        }

        if ($success) {
            DB::commit();
            return ['status' => true, 'message' => 'Success, Your import has completed with no issues.'];
        } else {
            DB::rollBack();
            return ['status' => false, 'message' => 'Unsuccessful Transaction. Not an exception.'];
        }
    } catch (\Exception $e) {
        DB::rollBack();
        $i = count($e->errorInfo) - 1;
        return ['status' => false, 'message' => $e->errorInfo[$i]];
    }
}
Laravel Migration Error – SQLSTATE[HY000] [2002] php_network_getaddresses
SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql 
failed: Temporary failure in name resolution (SQL: select * from 
information_schema.tables where table_schema = laravel and 
table_name = migrations and table_type = 'BASE TABLE')

The issue has to do with the env variable DB_HOST
You need to change it. To what your localhost is configured for.
It can most likely be one of the following.

mysql
127.0.0.1
localhost

or alternatively check your docker container name for your mysql DB:
mysql_container_name

Search

Your Favourite Posts

  • Your favorites will be here.

Latest Content

© Garth Baker 2024 All rights reserved.

Pin It on Pinterest

Share This