News

How to Expand Ubuntu Drive

How to Expand Ubuntu Drive

When you are using vmware to create Ubuntu Server VM, it will only use half of the assigned hard drive storage if you are not changing it in the installation process. Here is how to resize it. root@util:~# vgdisplay <snip> root@util:~# lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv <snip> root@util:~# resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv <snip> Enter fullscreen mode Exit fullscreen mode This method still works in Ubuntu 24.04 as of today (2024-07-04) Reference: Source link lol
Read More
Samsung Galaxy Z Flip 6 and Z Fold 6 product pages have been leaked

Samsung Galaxy Z Flip 6 and Z Fold 6 product pages have been leaked

The Samsung Galaxy Z Flip 6 will come with a 50-megapixel rear camera for the first time, a bigger battery than any of its predecessors and a bunch of AI features, according to the product pages leaked by Evan Blass on Substack. Also known as @evleaks on X/Twitter and other avenues, Blass is known to have a good track record for leaking accurate information about unreleased devices. This time, evleaks has obtained and released copies of product pages for the Galaxy Z Fold 6 and Galaxy Z Flip 6 ahead of an Unpacked event happening on July 10, though the…
Read More
Amazon pulls the plug on the business version of its Astro robot

Amazon pulls the plug on the business version of its Astro robot

After less than eight months, Amazon has discontinued the business version of its Astro security robot. GeekWire reported on Wednesday that despite being “fully committed” to its home robotics division, the company has discontinued the higher-end model that doubled as a security guard for spaces as large as 5,000 square feet.Amazon launched Astro for Business in November 2023, pitching it as a workplace security robot. The $2,350 screen-on-wheels had an HD periscope and a tangled web of subscription types and tiers, including Ring Protect Pro, Astro Security and Virtual Security Guard memberships. Suddenly, only lasting about eight months doesn’t sound…
Read More
Developers Listen: If You Don’t Have a Rich Domain Model, You Don’t Leverage OOP

Developers Listen: If You Don’t Have a Rich Domain Model, You Don’t Leverage OOP

In the world of software development, Object-Oriented Programming (OOP) and SOLID principles are often touted as best practices for creating maintainable, extensible, and robust systems. However, a crucial aspect that's frequently overlooked is the context in which these principles truly shine: a rich domain model. Let's delve into why a rich domain model is essential for leveraging the full power of OOP and SOLID principles, and what we miss out on when we settle for an anemic domain model. The Rich Domain Model: A Fertile Ground for OOP and SOLID A rich domain model is characterized by entities that encapsulate…
Read More
Japan’s government says goodbye to floppy disks

Japan’s government says goodbye to floppy disks

Floppy disks may seem like a relic from an ancient time of computers but there are still places and even governments in the world that still use them to run its most basic functions. Japan is no longer one of those countries.Japan’s Digital Agency announced on Wednesday it has rid its use of outdated floppy disks to operate its government computer systems. The only system still in place that requires the use of floppy disks is an environmental system that monitors vehicle recycling, according to Reuters.Digital Minister Taro Kono declared in a statement to the news agency, “We have won…
Read More
Your next webcam could be a Game Boy Camera

Your next webcam could be a Game Boy Camera

Forget your phone cameras and laptop built-ins; your next webcam could be your old Game Boy Camera. The team (sort of) bringing this peripheral into the modern age is Epilogue. The company makes the GB Operator, which lets people play original Game Boy, Game Boy Advance and Game Boy Color cartridges on a current PC or a Steam Deck.Today, Epilogue announced that it is working on an update that will make the Game Boy Camera into a webcam, but one that's a fuzzy, lo-fi, 16 kilopixel experience. The magic happens through the Playback emulator app that powers the GB Operator."We…
Read More
Como reutilizar sua UI

Como reutilizar sua UI

Basicamente todo mundo que conheço acaba criando componentes reutilizáveis para reaproveitar o trabalho feito. Essa é uma abstração enganosamente simples: é fácil criar um Button, mas é surpreendentemente difícil conseguir reutilizar ele em todos os casos de uso em um projeto. Eu aprendi algumas coisas com o passar dos anos, e vejo que várias pessoas acabam metendo o pé na jaca sem perceber. Quero compartilhar algumas dicas para evitar que algumas jacas sejam pisadas. Tenho um viés de React mas tudo pode ser aplicado em outros contextos, desde que tenha componentização da UI. 1) Evitar margens Colocar margens no seu…
Read More
Cloudflare is taking a stand against AI website scrapers

Cloudflare is taking a stand against AI website scrapers

Cloudflare has released a new free tool that prevents AI companies' bots from scraping its clients' websites for content to train large language models. The cloud service provider is making this tool available to its entire customer base, including those on free plans. "This feature will automatically be updated over time as we see new fingerprints of offending bots we identify as widely scraping the web for model training," the company said.In announcing this update, Cloudflare's team also shared some data about how its clients are responding to the boom of bots that scrape content to train generative AI models.…
Read More
How to mock a hidden dependency

How to mock a hidden dependency

Working with legacy code is difficult. When working with legacy code, you can run into a number of challenges, like for instance : how to write a unit test for a method that contains a hidden, private dependency. Let me show you an example of such code : public class NotificationService { private void sendSMSNotification(User user, Event event, boolean isUrgent) throws NotificationException { try { String messageContent = buildSMSMessageContent(user, event, isUrgent); String phoneNumber = user.getPhoneNumber(); if (phoneNumber == null || phoneNumber.isEmpty()) { throw new NotificationException("User's phone number is not available."); } // Get SmsService bean from ApplicationContext **SmsService smsService =…
Read More
No widgets found. Go to Widget page and add the widget in Offcanvas Sidebar Widget Area.