News

Creating a Smooth Transitioning Dialog Component in React: My Journey

Creating a Smooth Transitioning Dialog Component in React: My Journey

I've been working on a project to create a smooth transitioning dialog component in React, and I want to share my journey through the process, highlighting key steps and challenges encountered along the way. Part 1: Setting the Foundation In the first part of the series, I laid the groundwork by setting up the component structure. I created a context to manage the state and developed the main dialog component with its header, body, footer, and container. My primary goal was to ensure that the dialog could support minimisation and expansion while being adaptable to content changes. This foundation was…
Read More
Google confirms the Pixel 9 Pro Fold with a teaser video

Google confirms the Pixel 9 Pro Fold with a teaser video

Google has confirmed in a teaser video that its upcoming line of smartphones includes a new foldable model. The company called the Pixel 9 Pro Fold a "foldable phone built for the Gemini era" in its promo tweet, and it even focused on its gen AI chatbot in the video. Similar to the non-foldable Pixel 9 Pro, this model also has a prominent camera bump. Its lenses are arranged vertically near one side of the phone, so the camera bump is mostly there and doesn't take up the whole width of the folded device.While Google has yet to formally unveil…
Read More
#29 — Group an Excel table and Store It as Multiple Files According to Part of The Values of Specified Cells

#29 — Group an Excel table and Store It as Multiple Files According to Part of The Values of Specified Cells

Problem description & analysis:The Excel table below is ordered by column A, whose values are strings separated by “-”. The first part of column A represents the category. Task: Store the table as multiple tab-separated txt files according to different categories. The file name format is Group_Category.txt.Group_AA.txt Group_BB.txt Group_CC.txt Solution:Use SPL IDE to execute the code: =T@b("data.xlsx").group(#1.split("-")(1);~).(T@b("Group_" / #1 / ".txt": #2)) Enter fullscreen mode Exit fullscreen mode Explanation:The T()function reads files as a table and writes a table to files; @ b means that column names are not included. group() function groups rows according to the specified rule and…
Read More
Stay Compliant, Mitigate Risks: Understanding AML/KYC as a technologist

Stay Compliant, Mitigate Risks: Understanding AML/KYC as a technologist

Effective Anti-Money Laundering (AML) and Know Your Customer (KYC) strategies and processes are essential for financial institutions and other regulated entities. The regulatory landscape is rich with laws and enforcing agencies and organizations. As a software engineer, understanding these laws and requirements is crucial for implementing effectively compliant systems, safeguarding your organization from excessive regulatory auditing and penalization (including potentially steep fines). Key Activities Customer Due Diligence Intended to verify customer identities and assess their risk profiles, Customer Due Diligence (CDD) is critical to effective AML strategies. CDD employs systems and software providing for (1) identity verification and (2) risk…
Read More
Creating Python Generators

Creating Python Generators

Introduction:Python generators are a type of function that allows us to create iterators. They are similar to regular functions in structure, but with a few key differences. Generators are useful for creating efficient and memory-friendly code, especially for working with large datasets or performing tasks repeatedly. In this article, we will explore the advantages, disadvantages, and features of creating python generators. Advantages of Python Generators: Memory Efficiency: Generators are memory-efficient as they do not store the entire sequence of values in memory, but rather generate and yield them one at a time. This is particularly useful when working with large…
Read More
The live-action Halo show has been canceled at Paramount+

The live-action Halo show has been canceled at Paramount+

Many moons ago, back in 2013, we that Hollywood royalty Steven Spielberg had teamed up with Microsoft to create a live-action Halo television series. It took about ten years for the vision to finally come to fruition, but the show has now been canceled by the Paramount+ streaming service after a mere seventeen episodes. The first season in 2022 and the second earlier this year. We had about the show's debut, but it's still a sad conclusion for the big-budget project.According to an unnamed source, the show creators plan to shop the project around and search for a new home…
Read More
Getting the height of Android device independent of pixel densities

Getting the height of Android device independent of pixel densities

Table of contents TLDR (too long didn't read) Why does this matter? Resources My app on the Google play store My app's GitHub code TLDR (too long didn't read) When trying to get the height of a Android device, make sure you do it in an pixel density independent way: correct way to get height: val displayMetrics = Resources.getSystem().displayMetrics val heightPixels = displayMetrics.heightPixels //exact physical pixel amount(different on certain devices) val density = displayMetrics.density //density multiplier val pixelDensityIndependentHeight =heightPixels / density Enter fullscreen mode Exit fullscreen mode val height = Resources.getSystem().displayMetrics.heightPixels //as previously mentioned, this height will change depending on…
Read More
Blizzard reveals gameplay for the new Diablo IV class, Spiritborn

Blizzard reveals gameplay for the new Diablo IV class, Spiritborn

After a at last year's BlizzCon, Blizzard today more details about the new character class that will be coming to Diablo IV this fall. The Spiritborn looks like a fun, powerful mix of several characters from past Diablo entries. Imagine the martial arts combat of the Diablo 3 Monk paired with the animal abilities of the same game’s Witch Doctor plus the aesthetics of the Amazon in Diablo 2. This sounds like a pretty darn tasty recipe to me.The Spiritborn is a dexterity-driven class with four Spirit Guardians whose powers you can draw on in combat. The jaguar grants fire…
Read More
Why is unserializing an object in PHP a bad idea?

Why is unserializing an object in PHP a bad idea?

Serializing in PHP is a way of converting a PHP object into a string. This string can be used in various ways, such as storing it in a database or passing it to another function. The PHP documentation says this is handy when passing PHP values around without losing their type and structure. But I have never had that problem before. Maybe I’m not seeing it. <?php $test = new User(); $test->name = "Denzyl"; echo serialize($test); /// Output: O:4:"User":1:{s:4:"name";s:6:"Denzyl";} Enter fullscreen mode Exit fullscreen mode So, let's digest the string. The o stands for Object, and the following number is…
Read More
Nintendo finally made a first-party Joy-Con charging station

Nintendo finally made a first-party Joy-Con charging station

Nintendo just announced its own first-party Joy-Con controller charging station, which releases on October 17. This is an obvious boon for couch co-op addicts, as you can have two Joy-Cons charging on the dock and another two charging via the console at the same time. Nintendo’s charging station also integrates with the company’s retro wireless NES gamepads, which are primarily used with Nintendo Switch Online games.The Joy-Con Charging Stand (Two-Way) accessory draws power from the Switch’s dock, via the USB-C port, or any other power adapter. The vertical support can also be removed to make it more portable, another bonus…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.