2022-02-19

Simple C program shows How Float is stored

This is a simple code to demonstrate how a double is stored in computer memory.

To understand the concept, please read the details in the API Floating Point Data Types link.

Click Here to view the source code.

Example Output:

[root@localhost ~]# gcc ShowDoubleConversion.c -lm
[root@localhost ~]# ./a.out

Please enter a double number: 7464.1648

Double: 7464.164800
RawDouble: 40BD282A30553261

Dec Form:
*****************
Sign: 0
Exponent: 1035
Fraction: 3703336361865825

Hex Form:
*****************
Sign: 0
Exponent: 40B
Fraction: D282A30553261

Conversion:
*****************
Sign: Positive
Exponent: 12
Binary Fraction: 1101001010000010101000110000010101010011001001100001
Decimal Fraction: 1.822306
Raw Double in Decimal Calculation: 7464.164800=1x1.822306x2^12

Double Check Answer: 7464.164800
[root@localhost ~]#
2021-10-20

DataCenter Design and Maintenance

Currently, we are running 3 DataCenters with more than 20 Server Nodes, 8 of which are currently imported to Pterodactyl. Each node utilizes Proxmox LXC + Docker to provide the Wings Backend, while the Front End is hosted in our main DataCenter. The remaining nodes are used to host various services or have been rented out for purposes such as WebHosting, Dedicated High-Performance Servers, MySQL/MariaDB, or Testing.

GUI
GUI
GUI

Network Isolation and Security

VLAN is implemented to isolate VM data and Host data, ensuring a secure environment. VMs are properly configured with network policies, limiting data exchange between VM networks. We utilize pfsense as an Intrusion Detection System (IDS) and Intrusion Prevention System (IPS). With the help of snort, we actively prevent DoS and DDoS attacks, as well as other potential threats and data leaks.

Backup and Recovery

A comprehensive backup plan and policies are in place to ensure that snapshots are generated periodically. This approach guarantees data recovery and disaster recovery capabilities, providing peace of mind and minimizing potential downtime.

High Availability and Storage

Ceph is employed for High Availability (HA) reasons, ensuring that services remain accessible even in the event of hardware failure. Additionally, NAS is utilized as expandable storage and central backup storage, offering flexibility and robust data protection.

By integrating these technologies and practices, we maintain a resilient and efficient DataCenter infrastructure, capable of meeting diverse needs and maintaining the highest standards of performance and security.

2021-07-25

CFP System with GUI

CFP System with GUI

A Swing program used to manage CFP database.

Components

  • CFP class: Responsible for information collection and conversion.
  • Cache class: Implemented using Singleton Design to store drafts, prevent mistakes, and avoid illegal inputs.
  • MysqlFuntion class: Provides the DB connection API, which is used by the swing GUI codes.
  • GUI_3421A3 class: Handles the Swing GUI and all button functions.

Source Code

All source code for this project is available on GitHub.

Feel free to explore and contribute!

GUI
GUI

2021-06-02

SpringBoot Backend MLS

A simple MLS system implemented by Java using Spring Framework - SpringBoot, comes with a demo Web GUI to demonstrate.
The source code on Github

Get In Touch

Feel free to reach out to me with any questions, feedback, or collaboration opportunities. I would love to hear from you!

  • Address

    Willowdale, Toronto
    Ontario, M2M 4H9
    Canada
  • Phone

    647-355-0239
  • Email

    ken.ren98@gmail.com