The Hawaii of Israel: How Trump legitimised a longstanding Israeli vision
Israel has long envisoned the transfer of Gaza’s Palestinians. Now this dangerous idea has gained legitimacy.Trude Strand (Al Jazeera)
Israel has long envisoned the transfer of Gaza’s Palestinians. Now this dangerous idea has gained legitimacy.Trude Strand (Al Jazeera)
Pope Francis has died
Link: bbc.co.uk/news/live/crknlnzlrz…
Discussion: news.ycombinator.com/item?id=4…
The Pope died on Easter Monday morning, the Vatican says, as a top cardinal pays tribute to "his example as a true disciple of the Lord Jesus".BBC News
How Thai authorities use online doxxing to suppress dissent
Link: citizenlab.ca/2025/04/how-thai…
Discussion: news.ycombinator.com/item?id=4…
A sustained, coordinated social media harassment and doxxing campaign – which we codenamed JUICYJAM – targeting the pro-democracy movement in Thailand has run uninterrupted, and unchallenged, since at least August 2020.M. Scott (The Citizen Lab)
How encryption for Cinema Movies works
Link: serverless.industries/2024/05/…
Discussion: news.ycombinator.com/item?id=4…
The Cinema Industry is using its own standards for creating and distributing movies in a secure way. The DCI (Digital Cinema Initiatives) specification defines everything from file formats and encryption to the projection systems itself.Serverless Industries
Reverse engineering the obfuscated TikTok VM
Link: github.com/LukasOgunfeitimi/Ti…
Discussion: news.ycombinator.com/item?id=4…
Contribute to LukasOgunfeitimi/TikTok-ReverseEngineering development by creating an account on GitHub.GitHub
Hitze kann Spaß machen, aber auch gefährlich sein. Warum schattige Plätze wichtig sind und wie die Hitze auch jungen Menschen schadet, zeigt eine neue Studie.
Gesundheit und Klimakrise: Extreme Hitze lässt Menschen schneller altern
N. E. Felibata 👽 reshared this.
Kinder reicher Eltern bekommen vom Staat mehr Geld als Kinder von Normalverdienern. Und zwar viel mehr. Geht das gerechter? Unser Autor hat da eine Idee.
Ungerechtes Kindergeld: Kinder reicher Eltern bekommen mehr Geld vom Staat
N. E. Felibata 👽 reshared this.
Signal Carnival
Link: quiss.org/signal_carnival/
Discussion: news.ycombinator.com/item?id=4…
The Effect of Deactivating Facebook and Instagram on Users' Emotional State
Link: nber.org/papers/w33697
Discussion: news.ycombinator.com/item?id=4…
Founded in 1920, the NBER is a private, non-profit, non-partisan organization dedicated to conducting economic research and to disseminating research findings among academics, public policy makers, and business professionals.NBER
I thought I bought a camera, but no DJI sold me a LICENSE to use their camera
[video]Link: youtube.com/watch?v=aUOnQ_boqC…
Discussion: news.ycombinator.com/item?id=4…
Inside ArXiv
Link: wired.com/story/inside-arxiv-m…
Discussion: news.ycombinator.com/item?id=4…
Crows can recognize geometric regularity
Link: phys.org/news/2025-04-crows-ge…
Discussion: news.ycombinator.com/item?id=4…
A trio of animal physiologists at the University of Tübingen, in Germany, has found that at least one species of crow has the ability to recognize geometric regularity.Bob Yirka (Phys.org)
Find the Odd Disk
Link: colors2.alessandroroussel.com/
Discussion: news.ycombinator.com/item?id=4…
Turing-Drawings
Link: github.com/maximecb/Turing-Dra…
Discussion: news.ycombinator.com/item?id=4…
Randomly generated Turing machines draw images and animations on a 2D canvas. - maximecb/Turing-DrawingsGitHub
A 1980s toy robot arm inspired modern robotics
Link: technologyreview.com/2025/04/1…
Discussion: news.ycombinator.com/item?id=4…
The tasks taken on by the Armatron aren’t so different from the ones AI is tackling today.Jon Keegan (MIT Technology Review)
The Joy of Linux Theming in the Age of Bootable Containers
Link: blues.win/posts/joy-of-linux-t…
Discussion: news.ycombinator.com/item?id=4…
Having spent a couple of decades in the Linux world, I have always had an interest in Linux desktop environments and how they are themed.Winblues
Show HN: JuryNow – Get an anonymous instant verdict from 12 real people
Link: jurynow.app/
Discussion: news.ycombinator.com/item?id=4…
Bubble introduces a new way to build a web application. It’s a no-code point-and-click programming tool. Bubble hosts all applications on its cloud platform.JuryNow
First hormone-free male birth control pill enters human trials
Link: scitechdaily.com/99-effective-…
Discussion: news.ycombinator.com/item?id=4…
YCT-529, a hormone-free male birth control pill, has shown high effectiveness in animals and is now in human trials, marking a breakthrough in male contraception.Colin Collins (SciTechDaily)
o3, Gemini 2.5, and everything after
Link: oneusefulthing.org/p/on-jagged…
Discussion: news.ycombinator.com/item?id=4…
New models and new thresholdsEthan Mollick (One Useful Thing)
U.S. citizen in Arizona detained by immigration officials for 10 days
Link: news.azpm.org/p/news-articles/…
Discussion: news.ycombinator.com/item?id=4…
Immigration officials in Tucson arrested the 19-year-old man from Albuquerque on April 8, saying he had entered the country illegally, before a judge dismissed his case on April 17.news.azpm.org
The Movie Mistake Mystery from "Revenge of the Sith"
Link: fxrant.blogspot.com/2025/04/th…
Discussion: news.ycombinator.com/item?id=4…
Movies are handmade, and just like any other art form, sometimes the seams that hold movies together become visible to the audience. For mov...fxrant.blogspot.com
The skill of the future is not 'AI', but 'Focus'
Link: carette.xyz/posts/focus_will_b…
Discussion: news.ycombinator.com/item?id=4…
Don't let AI erode your focus.Journey into a wild pointer
Things Zig comptime won't do
Link: matklad.github.io/2025/04/19/t…
Discussion: news.ycombinator.com/item?id=4…
Es el disco de Odín. Tiene un solo lado. En la tierra no hay otra cosa que tenga un solo lado.matklad.github.io
Healthy soil is the hidden ingredient
Link: nature.com/articles/d41586-025…
Discussion: news.ycombinator.com/item?id=4…
Around 60% of the European Union’s soils are considered unhealthy, but geographer Jesús Rodrigo Comino is determined to help change that in his native Spain.Forrester, Nikki
Why on Earth is OpenAI buying Windsurf?
Link: theahura.substack.com/p/tech-t…
Discussion: news.ycombinator.com/item?id=4…
$3 billion seems high to me. Google is on a warpath. And Apple shoots itself in the foot, twice.theahura (12 Grams of Carbon)
React's component architecture is powerful, but passing data through multiple levels of components can quickly become cumbersome. This is where the Context API and the useContext hook come in - they provide an elegant solution to share data across your component tree without the hassle of prop drilling. In this blog post, we'll explore what Context API is, why you should use it, and how to implement it effectively in your React applications.
The React Context API is a built-in feature that allows you to share data (state, functions, values) across your component tree without having to manually pass props through every level. It effectively solves the "prop drilling" problem, where you need to pass data through many layers of components that don't actually need the data themselves but simply pass it down to lower components.
Think of Context as a direct communication channel between a provider (a parent component that supplies the data) and consumers (any descendant components that need access to that data).
Passing props through multiple component layers creates unnecessary coupling and makes your code harder to maintain. Context lets you make data directly available to any component that needs it.
Unlike external libraries such as Redux, the Context API is built into React and requires minimal setup. No need for actions, reducers, or managing a separate store—just create a context and a provider.
By centralizing shared state and avoiding unnecessary prop chains, your component hierarchy becomes cleaner and more understandable, making your application easier to debug and maintain.
Being part of React itself means you don't need additional dependencies, keeping your bundle size smaller compared to external state management solutions.
Context API is perfect for:
However, it's not meant to replace all prop passing or state management. Use it for data that is truly global or needs to be accessed by many components at different levels.
Let's walk through the implementation of Context API with a simple example for managing user authentication:
First, we create a context object:
// UserContext.js
import React, { createContext } from 'react';
const UserContext = createContext();
export default UserContext;
Next, we create a provider component that will manage the state:
// UserProvider.js
import React, { useState } from 'react';
import UserContext from './UserContext';
const UserProvider = ({ children }) => {
const [user, setUser] = useState(null);
// Login function to update user state
const login = (userData) => {
setUser(userData);
};
// Logout function to clear user state
const logout = () => {
setUser(null);
};
// Memoize the context value to prevent unnecessary re-renders
const value = React.useMemo(() => ({
user,
login,
logout
}), [user]);
return (
<UserContext.Provider value={value}>
{children}
</UserContext.Provider>
);
};
export default UserProvider;
In your main file (e.g., index.js or App.js):
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import UserProvider from './context/UserProvider';
ReactDOM.render(
<UserProvider>
<App />
</UserProvider>,
document.getElementById('root')
);
Now, any component in your app can access the user data and functions:
// Profile.js
import React, { useContext } from 'react';
import UserContext from '../context/UserContext';
const Profile = () => {
const { user, logout } = useContext(UserContext);
return (
<div>
{user ? (
<>
<h2>Welcome, {user.name}</h2>
<button onClick={logout}>Logout</button>
</>
) : (
<p>Please log in to view your profile</p>
)}
</div>
);
};
export default Profile;
To ensure optimal performance when working with Context, follow these best practices:
Always use useMemo to memoize your context values to prevent unnecessary re-renders:
const value = useMemo(() => ({ user, setUser }), [user]);
Instead of a single mega-context, create multiple contexts for different concerns (e.g., separate contexts for theme, authentication, app settings):
// ThemeContext.js
const ThemeContext = createContext();
// UserContext.js
const UserContext = createContext();
// In your app:
<ThemeProvider>
<UserProvider>
<App />
</UserProvider>
</ThemeProvider>
Keep state update logic in the provider and pass update functions down through context:
const UserProvider = ({ children }) => {
const [user, setUser] = useState(null);
const updateUserProfile = (updates) => {
setUser(prev => ({ ...prev, ...updates }));
};
// Pass the update function in context
const value = useMemo(() => ({
user,
updateUserProfile
}), [user]);
return (
<UserContext.Provider value={value}>
{children}
</UserContext.Provider>
);
};
Not all state needs to be in context. Keep temporary or component-specific state local:
const ProfileForm = () => {
const { user, updateUserProfile } = useContext(UserContext);
const [formData, setFormData] = useState(user);
const handleSubmit = (e) => {
e.preventDefault();
updateUserProfile(formData); // Only update context when form is submitted
};
// ...rest of component
};
| Feature | Context API | Redux |
|---|---|---|
| Setup Complexity | Simple, minimal boilerplate | More complex, requires actions/reducers |
| Built-in | Yes | No (external library) |
| Performance | Good for small/medium apps | Better for large/complex apps |
| Code Readability | High | Can become verbose |
| Debugging | Limited tools | Excellent dev tools |
| Learning Curve | Low | Moderate to high |
The Context API is ideal for:
Redux might be better for:
The Context API and useContext hook provide a powerful, built-in solution for state management in React applications. By eliminating prop drilling and centralizing your shared state, you can write cleaner, more maintainable code with minimal setup.
While it's not a replacement for all state management solutions, Context API is perfect for handling global data like user authentication, themes, and application settings. When used following the best practices outlined above, it can significantly simplify your React application's architecture while maintaining good performance.
Start implementing Context in your React applications today, and experience the benefits of streamlined state management!#webdev #javascript #react #frontend #software #coding #development #engineering #inclusive #community
Understanding React's Context API React's component architecture is powerful, but passing...Bholu Tiwari (DEV Community)
You Commit Three Felonies a Day (2013) - kottke.org/13/06/you-commit-th…
In a book called Three Felonies A Day, Boston civil rights lawyer Harvey Silverglate says that everyone in the US commits felonieskottke.org
A 1980s toy robot arm inspired modern robotics - technologyreview.com/2025/04/1…
The tasks taken on by the Armatron aren’t so different from the ones AI is tackling today.Jon Keegan (MIT Technology Review)
Layered Design in Go
Link: jerf.org/iri/post/2025/go_laye…
Discussion: news.ycombinator.com/item?id=4…
Gemma 3 QAT Models: Bringing AI to Consumer GPUs
Link: developers.googleblog.com/en/g…
Discussion: news.ycombinator.com/item?id=4…
The release of int4 quantized versions of Gemma 3 models, optimized with Quantization Aware Training (QAT) brings significantly reduced memory requirements, allowing users to run powerful models like Gemma 3 27B on consumer-grade GPUs such as the NVI…Edouard YVINEC (developers.googleblog.com)
Pretty State Machine Patterns in Rust (2016)
Link: hoverbear.org/blog/rust-state-…
Discussion: news.ycombinator.com/item?id=4…
A computer scientist working in open source towards a more hopeful future.hoverbear.org
Novel color via stimulation of individual photoreceptors at population scale
Link: science.org/doi/10.1126/sciadv…
Discussion: news.ycombinator.com/item?id=4…
The Icelandic Voting System (2024)
Link: smarimccarthy.is/posts/2024-11…
Discussion: news.ycombinator.com/item?id=4…
It’s election season here in Iceland! The election is on Saturday, 30th of November, so next Saturday from when this is written.Smári McCarthy
Electromagnetism as a Purely Geometric Theory
Link: iopscience.iop.org/article/10.…
Discussion: news.ycombinator.com/item?id=4…
100 Years to Solve an Integral (2020)
Link: liorsinai.github.io/mathematic…
Discussion: news.ycombinator.com/item?id=4…
The integral of sec(x) is well known to any beginners calculus student. Yet this integral was once a major outstanding maths problem. It was first introduced...liorsinai.github.io
Die Sozialbeiträge könnten immer weiter steigen. Das ist auch ein Problem für die Wirtschaftsleistung, sagen Experten. Kritik gibt es dabei vor allem am Koalitionsvertrag.
Sozialbeiträge: Experten erwarten steigende Belastung
N. E. Felibata 👽 reshared this.
Which year: guess which year each photo was taken
Link: whichyr.com/
Discussion: news.ycombinator.com/item?id=4…
Guess the year real-world photos were taken. Test your history knowledge with a daily challenge featuring a new set of photos each day.Which Year
Everyone knows your location, Part 2: try it yourself and share the results
Link: timsh.org/everyone-knows-your-…
Discussion: news.ycombinator.com/item?id=4…
It's been more than 2 months now since my first post on the topic of location data sharing between various 3rd parties came out – in case you haven't seen it, you should definitely start from there: Everyone knows your locationHow I tracke…tim (tim.sh)
Wie ungesund ist Zucker wirklich? Ein Blick auf den Stand der Forschung, widersprüchliche Aussagen - und was das für unsere Ernährung bedeutet.
Widersprüchliche Aussagen über Zucker gehen auf ungeklärte Fragen in der Forschung zurück. Doch die Schlussfolgerungen für unseren Alltag sind eindeutiger, als es den Anschein hat.
Zucker: Was die Wissenschaft (noch) nicht weiß | Terra-X-Kolumne
N. E. Felibata 👽 reshared this.
The Art of Assembly Language (2010)
Link: plantation-productions.com/Web…
Discussion: news.ycombinator.com/item?id=4…
An image of the Australian desert illuminates satellite pollution
Link: thisiscolossal.com/2025/04/a-s…
Discussion: news.ycombinator.com/item?id=4…
Stitching together 343 distinct photos, Joshua Rozells illuminates a growing problem of satellites polluting the night sky.Grace Ebert (Colossal)
Frankreichs Hauptstadt will weg vom Auto und gilt weltweit als Vorbild für ambitionierte Verkehrspolitik. Klappt das? Rauf aufs Rad, ab durch Paris.
Verkehrswende: Auf den Straßen von Paris
Birne Helene reshared this.
A unique sound alleviates motion sickness
Link: nagoya-u.ac.jp/researchinfo/re…
Discussion: news.ycombinator.com/item?id=4…
A research group led by Takumi Kagawa and Masashi Kato at Nagoya University Graduate School of Medicine has discovered t...NU Research Information
Don't force your kids to do math
Link: blog.avocados.ovh/posts/how-to…
Discussion: news.ycombinator.com/item?id=4…
Spoiler: you probably shouldn’t. A personal reflection on playful math, shifting passions, and nurturing curiosity.blog.avocados.ovh
Show HN: I built an AI that turns GitHub codebases into easy tutorials
Link: github.com/The-Pocket/Tutorial…
Discussion: news.ycombinator.com/item?id=4…
Turns Codebase into Easy Tutorial with AI. Contribute to The-Pocket/Tutorial-Codebase-Knowledge development by creating an account on GitHub.GitHub
How to Write a Fast Matrix Multiplication from Scratch with Tensor Cores (2024)
Link: alexarmbr.github.io/2024/08/10…
Discussion: news.ycombinator.com/item?id=4…
Vibe Coding is not an excuse for low-quality work
Link: addyo.substack.com/p/vibe-codi…
Discussion: news.ycombinator.com/item?id=4…
A field guide to responsible AI-assisted developmentAddy Osmani (Elevate)
Ssl.com: DCV bypass and issue fake certificates for any MX hostname
Link: bugzilla.mozilla.org/show_bug.…
Discussion: news.ycombinator.com/item?id=4…
UNCONFIRMED (nobody) in CA Program - CA Certificate Compliance. Last updated 2025-04-19.bugzilla.mozilla.org
For the first time in many years, education in Gaza is only accessible to the well-to-do.Refaat Ibrahim (Al Jazeera)
The Web Is Broken – Botnet Part 2
Link: jan.wildeboer.net/2025/04/Web-…
Discussion: news.ycombinator.com/item?id=4…
I guess you have all heard about the growing problem of AI companies trying to aggressively collect whatever data they can get their hands on to train their models.Jan Wildeboer (Jan Wildeboer's Blog)
Raspberry Pi Lidar Scanner
Link: github.com/PiLiDAR/PiLiDAR
Discussion: news.ycombinator.com/item?id=4…
Contribute to PiLiDAR/PiLiDAR development by creating an account on GitHub.GitHub
First baby born in UK to woman with transplanted womb
Link: bbc.com/news/articles/c78jd517…
Discussion: news.ycombinator.com/item?id=4…
Grace Davidson gave birth to a baby girl two years after her sister's womb was transplanted into her body.Fergus Walsh (BBC News)
Silicon Valley crosswalk buttons apparently hacked to imitate Musk, Zuck voices
Link: paloaltoonline.com/technology/…
Discussion: news.ycombinator.com/item?id=4…
Crosswalk buttons along the mid-Peninsula appear to have been hacked, so that when pressed, voices professing to be Mark Zuckerberg or Elon Musk begin speaking.Zoe Morgan (Palo Alto Online)
Source: libsoftiktok
🚨BREAKING: Active shooter reported at Florida State University. Suspect now in custody
At least four people have been injured and hospitalized
Prayers for the victims and their families! 🙏🏻
[Video embedded in original tweet]
Original tweet : xcancel.com/libsoftiktok/statu…
Source: libsoftiktok
ICE New York arrests 206 criminal illegal aliens in ONE WEEK, including 121 with prior convictions such as murder, sex crimes, and drug crimes, as well as FUGITIVES wanted in their home countries.
How long till Democrats demand their release??
[Video embedded in original tweet]
Original tweet : xcancel.com/libsoftiktok/statu…
High time to tackle drug-resistant fungal infections
Link: nature.com/articles/d41586-025…
Discussion: news.ycombinator.com/item?id=4…
To combat long-overlooked fungal pathogens, researchers and regulators must embrace innovative science and policy.www.nature.com
Claude Code Best Practices
Link: anthropic.com/engineering/clau…
Discussion: news.ycombinator.com/item?id=4…
Peru's ancient irrigation systems turned deserts into farms because of culture
Link: theconversation.com/perus-anci…
Discussion: news.ycombinator.com/item?id=4…
Ancient practices hold important lessons for farmers facing drying lands, but they were often more complex than modern societies realize. Glacier loss adds to the challenge today.The Conversation
Source: libsoftiktok
DEMONIC. Sisters of Perpetual Indulgence, an "order of queer and trans nuns" are hosting a transgender Easter event at a public park in San Francisco this weekend which includes a "Hunky Jesus & Foxy Mary" drag contest and events for children.
They literally say that their show is inappropriate for children while still encouraging children to attend.
Make it make sense
Original tweet : xcancel.com/libsoftiktok/statu…
Source: libsoftiktok
HORRIFIC. An elderly veteran was brutally assaulted on a city bus in North Carolina, resulting in him becoming completely paralyzed from the shoulders down.
No one on the bus attempted to help the man or stop the attacker.
[Video embedded in original tweet]
Original tweet : xcancel.com/libsoftiktok/statu…
Packing Input Frame Context in Next-Frame Prediction Models for Video Generation
Link: lllyasviel.github.io/frame_pac…
Discussion: news.ycombinator.com/item?id=4…
Source: libsoftiktok
BREAKING: Colorado Democrats are pushing a new bill that would grant $4 million in taxpayer dollars to Governor Jared Polis in order to wage legal warfare against the Trump administration.
Original tweet : xcancel.com/libsoftiktok/statu…
Librarians Are Dangerous
Link: bradmontague.substack.com/p/li…
Discussion: news.ycombinator.com/item?id=4…
A public service announcementBrad Montague (The Enthusiast by Brad Montague)
Restoring the Galaxian3 Theatre 6, 1992 six player arcade machine
Link: philwip.com/2025/04/14/galaxia…
Discussion: news.ycombinator.com/item?id=4…
Introduction During the late 1980s, Namco set out to create the world’s largest arcade game. The result was Galaxian3: Project Dragoon; a 28 player behemoth that debuted in April 1990 at the …PhilWIP
Android phones will soon reboot themselves after sitting unused for three days
Link: arstechnica.com/gadgets/2025/0…
Discussion: news.ycombinator.com/item?id=4…
The latest Google update will make your phone more secure if you don’t touch it…Ryan Whitwam (Ars Technica)
Birne Helene reshared this.
Show HN: Undercutf1 – F1 Live Timing TUI with Driver Tracker, Variable Delay
Link: github.com/JustAman62/undercut…
Discussion: news.ycombinator.com/item?id=4…
F1 Live Timing TUI for all F1 sessions with variable delay to sync to your TV. Supports replaying previously recorded sessions. - JustAman62/undercut-f1GitHub
A Map of British Dialects
Link: starkeycomics.com/2023/11/07/m…
Discussion: news.ycombinator.com/item?id=4…
This map took me a long time to make, and is very detailed, but will always be incomplete and inaccurate due to the nature of language. Why this map is so detailed The diversity of English dialects in the United Kingdom is enormous.Ryan Starkey (Starkey Comics)
UML diagram for the DDD example in Evans' book
Link: github.com/takaakit/uml-diagra…
Discussion: news.ycombinator.com/item?id=4…
UML diagram for the DDD example—a cargo shipping system—from Eric Evans' book - takaakit/uml-diagram-for-ddd-example-in-evans-bookGitHub
JavaScript Views, the Hard Way – A Pattern for Writing UI
Link: github.com/matthewp/views-the-…
Discussion: news.ycombinator.com/item?id=4…
JavaScript views; done as painfully as possible. Contribute to matthewp/views-the-hard-way development by creating an account on GitHub.GitHub
Show HN: New world record – verified Goldbach Conjecture up to 4*10^18+7*10^13
Link: medium.com/@jay_gridbach/grid-…
Discussion: news.ycombinator.com/item?id=4…
I’ve achieved a new world record in verifying the Goldbach Conjecture, a famous unsolved problem in mathematics, by extending the verification up to 4 quintillion (4×10¹⁸) + 70 trillion (7×10¹³)…Hiroaki Jay Nakata (Medium)
There's Life Inside Earth's Crust
Link: noemamag.com/theres-life-insid…
Discussion: news.ycombinator.com/item?id=4…
Revelations about microbes living deep inside Earth’s crust are challenging scientists’ conceptions of life and how it evolves.NOEMA
Hands-On Large Language Models
Link: github.com/HandsOnLLM/Hands-On…
Discussion: news.ycombinator.com/item?id=4…
Official code repo for the O'Reilly Book - "Hands-On Large Language Models" - HandsOnLLM/Hands-On-Large-Language-ModelsGitHub
Birne Helene reshared this.
Hypertext TV
Link: hypertext.tv/
Discussion: news.ycombinator.com/item?id=4…
Most of you will know how to navigate directories using the cd command and how to create a directory with mkdir. You will also be familiar with the mv command. The mv command is not just for moving files from one directory to another; it can also be used to rename files like this.
mv oldfilename.txt newfilename.txt
In order to list files and directories in the current folder you are in, you may use the ls command.
You can also list files and folders not in your current working directory by providing the directory path with commands like this.
ls /home/John
# to list with more details of files
ls -l /home/John
# to list all files, including hidden files
ls -la /home/John
If you look up the ls command using man ls, you will see that you can pass a lot of options. One of the useful ones is the -t option to sort the files in ascending order of time. For example, if you want to see the latest modified file at the top of the list, use the command below.
ls -t
The ls command sometimes lists a long list of files and directories, but what if you want to filter out files based on the name, time, or some other criteria ? To search through files, one can use the find command.
# finds files in the specified folder with extension .txt and which are newer than the date 2025-01-01
find /home/John -type f -name *.txt -newermt 2025-01-01
There is also an option to execute commands on results using -exec.
Use man find to see the full list of options.
A quick way to find the path of a file or directory is by using the locate command.
locate *.txt
Exploring the manual pages with man can reveal additional options for each command. Familiarizing these tools will enable you to navigate your operating system effectively.#linux #shell #bash #htb #software #coding #development #engineering #inclusive #community
Most of you will know how to navigate directories using the cd command and how to create a directory...Mariam Reba Alexander (DEV Community)
Cozy video games can quell stress and anxiety
Link: reuters.com/business/retail-co…
Discussion: news.ycombinator.com/item?id=4…
I passionately hate hype, especially the AI hype
Link: unixdigest.com/articles/i-pass…
Discussion: news.ycombinator.com/item?id=4…
Understanding the Origins and the Evolution of Vi and Vim
Link: pikuma.com/blog/origins-of-vim…
Discussion: news.ycombinator.com/item?id=4…
The history of Vi & Vim goes hand in hand with the history of open-source software. This article looks at the historical events that shaped the evolution of these text editors.pikuma.com
Cyberpunk 1958: The Early Days of the Polish IT Industry
Link: culture.pl/en/article/cyberpun…
Discussion: news.ycombinator.com/item?id=4…
Long before The Witcher 3 and Cyberpunk 2077 made Poland's tech industry famous, Polish computer scientists and engineers had ambitions to make the country an IT superpower.Culture.pl
Full Text Search of US Court records
Link: judyrecords.com/
Discussion: news.ycombinator.com/item?id=4…
Instantly search 740 million+ United States court cases.www.judyrecords.com
Source: libsoftiktok
OMG. In 2022, the FBI reportedly told Texas Highway Patrol to release Kilmar Abrego Garcia after he was allegedly transporting someone on the terrorist watchlist during a traffic stop.
Kilmar was reportedly transporting 7 unknown individuals from Texas to Maryland without a valid driver's license, which is a Class B misdemeanor.
This is the "Maryland Man" the Democrats defend.
Original tweet : xcancel.com/libsoftiktok/statu…
The most famous carbon dioxide absorber
Link: howequipmentworks.com/apollo_1…
Discussion: news.ycombinator.com/item?id=4…
The Apollo 13 astronauts were stranded in space. Their survival depended on if they could make a carbon dioxide absorber inside the spacecraft.How Equipment Works
Source: libsoftiktok
Kristi Noem threatens to revoke Harvard's ability to enroll foreign students if the university refuses to share information on visa holders who engaged in violent protests.
“It’s a privilege to have foreign students attend Harvard, not a guarantee”
[Video embedded in original tweet]
Original tweet : xcancel.com/libsoftiktok/statu…
Source: libsoftiktok
New CNN poll shows that a majority of Americans SUPPORT deporting ALL illegal aliens.
Don't let any Democrat tell you this isn't what the people want.
[Video embedded in original tweet]
Original tweet : xcancel.com/libsoftiktok/statu…
15,000 lines of verified cryptography now in Python
Link: jonathan.protzenko.fr/2025/04/…
Discussion: news.ycombinator.com/item?id=4…
In November 2022, I opened issue 99108 on Python’s GitHub repository, arguing that after a recent CVE in its implementation of SHA3, Python should embrace verified code for all of its hash-related infrastructure.Jonathan Protzenko
Berlin: 100 Strafverfahren nach Hörsaalbesetzung. Journalistische Berichterstattung behindert.Ada B. (junge Welt)
Four Years of Jai (2024)
Link: smarimccarthy.is/posts/2024-12…
Discussion: news.ycombinator.com/item?id=4…
I’ve been programming for long enough to be righteously cantankerous about a lot of things. The list of languages, frameworks and libraries I’ve worked with professionally or on personal projects is too long to list – but it includes everything from …Smári McCarthy
Judge Rules Blanket Search of Cell Tower Data Unconstitutional
Link: 404media.co/judge-rules-blanke…
Discussion: news.ycombinator.com/item?id=4…
Judge says tower dumps violate the 4th amendment, but will let the cops do it this one time, as a treat.Matthew Gault (404 Media)
How a yacht works: sailboat physics and design
Link: onemetre.net/Design/Design.htm
Discussion: news.ycombinator.com/item?id=4…
A New ASN.1 API for Python
Link: blog.trailofbits.com/2025/04/1…
Discussion: news.ycombinator.com/item?id=4…
We’re working on integrating an ASN.1 API into PyCA Cryptography, built on top of the same Rust ASN.1 implementation already used by Cryptography’s X.509 APIs.The Trail of Bits Blog
Show HN: I made a Doom-like game fit inside a QR code
Link: github.com/Kuberwastaken/backd…
Discussion: news.ycombinator.com/item?id=4…
A self-contained game that fits inside a QR code inspired by DOOM 1993 and The Backrooms - Kuberwastaken/backdoomsGitHub
Walled Gardens Can Kill
Link: aneesiqbal.ai/2025-04-18-walle…
Discussion: news.ycombinator.com/item?id=4…
I'm an Apple ecosystem user, owning an iPhone ever since a past employer got it for me to test our company app some 8 years ago. Over time, as I've upgraded, I'aneesiqbal.ai
A Math Lesson From Hitler’s Germany (2017)
Link: undark.org/2017/02/01/math-les…
Discussion: news.ycombinator.com/item?id=4…
In the 1930s, prejudice and anti-science ideology destroyed the world’s leading math department, at Göttingen. It couldn't happen here, could it?Evelyn Lamb (Undark Magazine)
AMP and why emails are not (and should never be) interactive
Link: buttondown.com/blog/whatever-h…
Discussion: news.ycombinator.com/item?id=4…
Google tried to reinvent email. Everyone said no.Buttondown
Less Slow C++
Link: github.com/ashvardanian/less_s…
Discussion: news.ycombinator.com/item?id=4…
Learning how to write "Less Slow" code in C++ 20, C 99, CUDA, PTX, & Assembly, from numerics & SIMD to coroutines, ranges, exception handling, networking and user-space IO - ashva...GitHub
IBM orders US sales to locate near customers, RTO for cloud staff, DEI purge
Link: theregister.com/2025/04/18/ibm…
Discussion: news.ycombinator.com/item?id=4…
Exclusive: 'Return to client' push coincides with RTO for cloud staff, DEI purgeThomas Claburn (The Register)
Is it possible to write plain C iOS app in 2025?
Discussion: news.ycombinator.com/item?id=4…
Defold: cross-platform game engine
Link: defold.com
Discussion: news.ycombinator.com/item?id=4…
Defold is a free and open game engine used for development of console, desktop, mobile and web games.Defold Foundation