Posts

Digital Marketing

Dual share classes

Tax Efficiency: ETF share classes use in-kind transactions, which often avoid triggering capital gains taxes. Mutual fund investors could benefit from this structure without selling assets. Lower Costs: ETFs typically trade commission-free at most brokers, unlike many mutual funds that may have transaction fees or front-end loads. Intraday Trading: Investors would gain the ability to trade ETF shares throughout the day, unlike mutual funds which only settle at the end of the trading day. Flexibility: DFA’s proposal allows shareholders to convert mutual fund shares into ETF shares without tax penalties or fees. ⚠️ Potential Risks and Limitations Tax Efficiency Could Be Compromised: If mutual fund redemptions force asset sales, it could trigger capital gains affecting both mutual fund and ETF shareholders. Price Deviations: ETF shares may trade at prices above or below their net asset value (NAV), especially in less liquid markets. Capacity Constraints: Mutual funds can close to new inve...

VR headset for PC

For an immersive VR experience on PC, consider headsets like the Meta Quest 3, Pimax Crystal, and Valve Index, which offer high performance and advanced features. Recommended VR Headsets for PC Meta Quest 3: Type: Standalone and PC-compatible. Resolution: 2064 x 2208 per eye. Refresh Rate: Up to 120Hz. Features: Offers a portable form factor, a robust game library, and excellent mixed reality capabilities. It is powered by Qualcomm's Snapdragon XR2 Gen 2 platform, providing enhanced graphical performance.  Pimax Crystal: Type: PC-tethered. Resolution: 2880 x 2880 pixels per eye. Features: Known for its high resolution and wide field of view, it includes eye-tracking and foveated rendering. It is priced at around $1,599, making it a premium option for serious gamers.  Valve Index: Type: PC-tethered. Resolution: 1440 x 1600 per eye. Refresh Rate: Up to 144Hz. Features: Offers excellent tracking and a high refresh rate, making it ideal for fast-paced gaming. However, it requires ...

Remote work is evolving into a hybrid model, driven by technological advancements, employee preferences for flexibility, and a focus on productivity and collaboration.

Key Trends Shaping Remote Work Hybrid Work Models Become Standard: The hybrid work model, which combines remote and in-office work, is expected to dominate. This approach allows organizations to balance flexibility with the benefits of in-person collaboration. Many companies are refining their hybrid strategies to ensure sustainability and productivity.  Increased Investment in AI and Automation: Businesses are investing in AI-driven tools to optimize remote work processes, enhance productivity, and streamline communication. AI will assist in scheduling, data analysis, and even basic decision-making, allowing employees to focus on higher-value tasks.  Emphasis on Cybersecurity: As remote work becomes more prevalent, companies are prioritizing cybersecurity. Investments in secure remote access technologies, data encryption, and employee training on cybersecurity practices are expected to rise significantly.  Advancements in Collaboration Technologies: The future of remote ...

Get all running EC2 instances in your AWS account

aws ec2 describe-instances --filters Name=instance-state-code,Values=16 --query "Reservations[*].Instances[*].InstanceId" --output text

Lombok is an annotation-based Java library that helps in reducing the boilerplate code

Project Lombok is a Java library that automatically plugs into your editor and builds tools, spicing up your Java To use Lombok annotations in the project we need to add the following Maven dependency: <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok --> <dependency>     <groupId>org.projectlombok</groupId>     <artifactId>lombok</artifactId>     <version>1.18.32</version>     <scope>provided</scope> </dependency>

The 2024 top-ranked universities in Canada

According to CWUR, the 2024 top-ranked universities in Canada are: University of Toronto Global Rank: 24 McGill University Global Rank: 28 University of British Columbia Global Rank: 49 University of Alberta Global Rank: 77 University of Montreal Global Rank: 117 McMaster University Global Rank: 172 Western University Global Rank: 189 University of Calgary Global Rank: 192 University of Waterloo Global Rank: 204 University of Ottawa Global Rank: 213 University of Manitoba Global Rank: 283 Laval University Global Rank: 297 Queen's University Global Rank: 320 Dalhousie University Global Rank: 341 Simon Fraser University Global Rank: 354 University of Victoria Global Rank: 397 University of Saskatchewan Global Rank: 414 York University Global Rank: 433 University of Guelph Global Rank: 479 Carleton University Global Rank: 534 University of Sherbrooke Global Rank: 583 Concordia University Global Rank: 613 University of Québec at Montreal Global Rank: 634 Memorial University of Newfound...

HTTP/2 offers several improvements over the earlier version, HTTP/1.1

Prioritization: Developers have detailed control over the order in which content loads. This maximizes page load speed across different browsers. Certain resources (render-blocking resources) no longer block the rest of the page from loading.

Python Testing Frameworks

Python offers several testing frameworks. Here are three common ones: unittest: A built-in framework inspired by Java’s JUnit. It provides test discovery, fixtures, and assertions. Pytest: A popular third-party framework known for its simplicity, powerful features, and concise syntax. Pytest automatically discovers and runs tests. doctest: A lightweight framework that extracts test cases from docstrings. It’s useful for testing examples in documentation

Running Python Scripts

To create and run Python scripts: Download Python (it’s free!). Create a script file with the extension .py. Add your Python code to the file. Open your terminal or command prompt. Type python followed by the path to your script file. Execute the script by pressing Enter

Python for Automation

Python is a popular programming language for task automation due to several factors: Simplicity and Intuitiveness: Python’s syntax is easy to read and comprehend, making it accessible even for beginners. Data Structures Support: Python offers various data structures (such as lists and dictionaries) and allows users to create custom data structures, facilitating data management. Extensive Libraries: Python comes with a vast set of libraries that enable automation across various domains, including machine learning and operating system management. Its large support network ensures answers to most automation questions are readily available online

Never underestimate the power of dreams and the influence of the human spirit.

Never underestimate the power of dreams and the influence of the human spirit. Wilma Rudolph American sprinter and Olympic medalist

Symmetric Encryption and Decryption with a key file

Generate a random 256-bit key To generate a random 256-bit key using /dev/urandom, you can directly extract the random data without the need for additional hashing. Here’s how you can do it: $ dd if=/dev/urandom of=/path/to/your/keyfile bs=1 count=32 In this command: if=/dev/urandom specifies the input source as /dev/urandom. of=/path/to/your/keyfile specifies the output file where your key will be saved. bs=1 sets the block size to 1 byte. count=32 specifies that we want 32 bytes (256 bits) of random data. Example: $ dd if=/dev/urandom of=symmetric_keyfile.key bs=1 count=32 Encryption We can use this command to encrypt the sample.txt file: $ openssl enc -in sample.txt -out sample.txt.enc -e -aes256 -pbkdf2 -kfile symmetric_keyfile.key Decryption $ openssl enc -in sample.txt.enc -out sample_decrypted.txt -d -aes256 -pbkdf2  -kfile symmetric_keyfile.key

gdebi-core is a simple tool to install deb packages on Ubuntu and Debian systems.

gdebi-core can resolve and install the dependencies of local deb packages, as well as the build-depends of local debian/control files. It is a command-line utility that can be used with the gdebi command. Some of the advantages of using gdebi-core are: It can handle multiple deb packages at once, unlike dpkg. It can automatically download and install the required dependencies from the official repositories, unlike dpkg. It can check the compatibility and integrity of the deb packages before installing them, unlike dpkg. It can also install the recommended and suggested packages, if desired, unlike apt. Some of the disadvantages of using gdebi-core are: It can only install local deb packages, not remote ones, unlike apt. It can only install deb packages that are compatible with the current system, not older or newer ones, unlike dpkg. It can only install deb packages that are available in the official repositories, not third-party ones, unless the corresponding sources are added, unlike...

how to install mycli on Amazon Linux 2023

sudo dnf install pip sudo pip install mycli

Install MySQL on Amazon Linux 2023

Update the packages of your Amazon Linux 2023 by running the following command in your terminal: $ sudo dnf update. Download the MySQL Yum repository from the Oracle website using the following command: $ sudo wget https://dev.mysql.com/get/mysql80-community-release-el9-5.noarch.rpm. Install the MySQL community server and client on your system by running the following command: $ sudo dnf install mysql-community-server. Start the MySQL service and enable it to activate automatically with the system boot or crash by running the following command: $ sudo systemctl start mysqld and $ sudo systemctl enable mysqld. Secure your MySQL installation by setting a root password, removing anonymous users, disabling remote root login, and more. You can find the default password set by MySQL for the root user by running the following command: $ sudo grep 'temporary password' /var/log/mysqld.log. After that, run the following command and follow the prompts: $ sudo mysql_secure_installation. ...

Monotonic timers relative to different starting points

Settings and their starting points Setting Meaning OnActiveSec= Defines a timer relative to the moment the timer unit itself is activated. OnBootSec= Defines a timer relative to when the machine was booted up. In containers, for the system manager instance, this is mapped to  OnStartupSec= , making both equivalent. OnStartupSec= Defines a timer relative to when the service manager was first started. For system timer units this is very similar to  OnBootSec=  as the system service manager is generally started very early at boot. It's primarily useful when configured in units running in the per-user service manager, as the user service manager is generally started on first login only, not already during boot. OnUnitActiveSec= Defines a timer relative to when the unit the timer unit is activating was last activated. OnUnitInactiveSec= Defines a timer relative to when the unit the timer unit is activating was last deactivated.

Let ssh client to always add the key to a running ssh-agent

Add the following configuration setting to your local ssh config file ~/.ssh/config (this works since SSH 7.2): AddKeysToAgent  yes There's no need to ssh-add it beforehand.

UDP and TCP syslog reception provided by rsyslog

Inside /etc/rsyslog.conf # Provides UDP syslog reception #$ModLoad imudp #$UDPServerRun 514 # Provides TCP syslog reception $ModLoad imtcp $InputTCPServerRun 514

Common pattern to visually hide text for only screen readers to read

<script src="https://gist.github.com/goyuninfo/a3a4e912765d1b6afffd7ceba972d693.js"></script>

Use a
element to mark up a photo in a document, and a
element to define a caption for the photo