SShortSingh.
0
ProgrammingDEV Community ·

Developer Builds Role-Based React Task Dashboard Using Context API and localStorage

A developer built EMS, an admin and employee task management app, to practice React state management without a backend. Persistence is handled entirely by localStorage, with no Express server or database involved. A single AuthProvider manages login state, user role, and task data, and admin and employee dashboards are rendered as separate component trees. The author isolated storage behind a utility module so the backend could be swapped later without changing the dashboards, and noted the approach isn't suited to multi-user or multi-device use. They invited feedback on whether the Context setup would hold up if a third role were added.

0
ProgrammingHacker News ·

Thinking Machines Releases Inkling 2 Small Model

Thinking Machines has announced Inkling 2 Small, a new model release detailed on the company's news page. The source material is a Hacker News link post that circulated with 38 points and 13 comments. The available information does not describe the model's architecture, capabilities, or benchmark results. Further details would need to be found in the company's original announcement.

0
ProgrammingDEV Community ·

YouTube Shorts pipeline's first five outcome verdicts all came back unjudgeable

A developer's automated YouTube Shorts pipeline produced its first five outcome verdicts, and all five were labeled unjudgeable. Four videos had no prediction on record, while the fifth had a prediction that missed actual views by roughly tenfold but still lacked the baseline file needed for judgment. The developer had made predictions mandatory only for one channel from October 25, leaving the other channels without that requirement. The core problem was that the input the pipeline required differed from what the verdict actually needed, including a same-window baseline. Fixes include a prediction gate on that channel, a daily sweep that labels outcomes, and a planned manual baseline re-measurement.

0
ProgrammingDEV Community ·

Honestbee Recruiter's Take-Home Test Shows Hiring Process at a $1B Singapore Startup

In 2018, Honestbee, a Southeast Asian grocery delivery startup valued near $1 billion, was actively recruiting talent worldwide. A candidate based in Italy described being contacted by its Talent Acquisition Partner and passing an initial recruiter screen, where his familiarity with Singapore was viewed favourably. He recounted an icebreaker moment in which he named Pepper Lunch's beef pepper rice as his favourite Singaporean dish, a choice the recruiter found amusing since the chain is Japanese. The candidate then received a take-home programming assignment and a senior data engineering job description that listed demanding technologies such as Kafka, Kubernetes, and Airflow. The test required building Python web APIs using public Dota 2 data to produce player leaderboards, player comparisons, and hero recommendations, with the company emphasizing elegant and original code.

0
ProgrammingDEV Community ·

FBI and Europol Dismantle Major Trojan-Based Malware Networks by Uninstalling Infected Machines

Trojans are malware disguised as legitimate files or software, relying on users to run them rather than exploiting technical flaws. Early examples like Zeus stole banking credentials and built botnets, while Emotet later evolved into a loader that rented access to other criminals, including ransomware gangs. In January 2021, Europol and Eurojust took control of Emotet's infrastructure and pushed an update that disconnected infected machines. In August 2023, the FBI's Operation Duck Hunt redirected Qakbot-infected computers and removed the malware from more than 700,000 machines, seizing about $8.6 million in cryptocurrency. Security experts advise avoiding enabling macros in unexpected documents, downloading software only from official sources, and running untrusted code in isolated environments.

0
ProgrammingDEV Community ·

AIClaw 3.7.42 Prepares Its macOS Desktop Helper at Startup

AIClaw 3.7.42 begins synchronizing its bundled Computer Use helper into a stable, user-owned folder on every macOS startup, rather than waiting for the first desktop tool call. The process runs in the background and does not block the app from opening, with success or failure recorded in the application log. The installer checks ownership and permissions, uses a lock to prevent conflicting copies, and compares a SHA-256 identity built from the executable and signed resource manifest so unchanged copies are not recopied. If a background attempt fails, a later desktop tool call can retry the installation. The helper still uses an ad-hoc signature, so users may need to re-grant Accessibility and Screen Recording permissions after an upgrade.

0
ProgrammingDEV Community ·

Storing user avatar uploads: database blob, local disk, or object storage

The article argues that avatar images are best kept in object storage, with only an object key and validation metadata saved in the database, and local disk treated as disposable. This separation keeps image reads away from transactional database connections and lets images have their own retention policy. The author starts design reviews from failure tolerance rather than storage cost, noting that an avatar failing should not block authentication or initials rendering. Local disk breaks when instances are replaced, while database blobs compete with profile writes for capacity and backup throughput. Object storage, with signed read URLs and direct client uploads, gives independent scaling and recovery, though it introduces permission and routing risks.

0
ProgrammingDEV Community ·

Voice AI Aims to Make Websites More Accessible to Users Who Rely on Audio

The article argues that web accessibility efforts often focus on visual and motor impairments, overlooking the many people who depend on audio interfaces. It presents text-to-speech and voice cloning as tools that can turn static text into natural-sounding speech tailored to different users and languages. Beyond meeting WCAG 2.1 guidelines, the author suggests spoken output benefits a wider audience, including commuters and people with dyslexia. The piece walks through implementing this with the ElevenLabs API, including custom voice creation from a short audio sample. It also outlines a basic accessibility flow in which user preferences trigger backend-generated audio played in the browser.

0
ProgrammingDEV Community ·

Free embeddable widgets built with iframes and an honest credit line

The author describes the design of small embeddable widgets, such as club availability views, court-cost calculators, and data charts, that third-party sites can place on their pages. A loader script finds placeholder elements and creates iframes pointing to dedicated embed routes, with configuration options taken from data attributes that are validated both in the loader and on the server. Framing is relaxed only for the embed routes, using header rules that exclude them from the site-wide X-Frame-Options and frame-ancestors policy, which is considered acceptable because the public, read-only content holds nothing worth clickjacking. Iframe height is adjusted automatically via postMessage with origin and source checks and clamped bounds, avoiding hand-tuned heights. The post concludes with the principle that an embed providing value to its host can reasonably request attribution, with a visible credit line.

0
ProgrammingDEV Community ·

Five checks to reduce WordPress attack surface: admins, file editing, permissions, wp-config.php, uploads

The article argues that reducing the number of entry points on a WordPress site lowers both the chance of compromise and the damage it can cause, though it does not eliminate vulnerabilities. It recommends reviewing five areas: administrator accounts, dashboard file editing, file permissions, the handling of wp-config.php, and PHP execution within uploads. Administrator accounts should be limited to current managers, with smaller roles given to others and every admin account accounted for. Disabling dashboard file editing through a wp-config.php constant removes a route for rewriting server-side code, while noting that a related constant also blocks plugin and theme installs. The author cautions against overly open permissions like 777 and suggests recording the current state before making changes.

0
ProgrammingDEV Community ·

How a rotation algorithm lets every padel americana player partner everyone

An americana is a social padel format in which partners change each round so players meet as many others as possible. Scheduling this becomes tricky with an odd number of players and limited courts, as with seven players on two courts. The author's TypeScript approach borrows the round-robin circle method, rotating players so that over a full cycle every player partners every other player exactly once. An extra placeholder slot handles odd player counts, and placing it in the pinned position ensures each real player sits out in turn. Because the rotation's length depends on the number of players, the schedule repeats after that many rounds, and resting pairs are balanced to spread byes fairly.

0
IndiaIndian Express ·

Nepal PM Balendra Shah to make first bilateral visit to India from November 22

Nepal's Prime Minister Balendra Shah is scheduled to travel to India from November 22 for his first bilateral visit since taking office. The trip marks his initial official engagement abroad in a bilateral capacity. The article provided does not include further details on the agenda, meetings, or outcomes expected from the visit. Coverage of the trip originates from the Indian Express report on the announcement.

0
IndiaNDTV ·

Delhi Air Rated 'Very Poor' as DDA Discourages Events at Its Open Spaces

Air quality in Delhi has been classified as 'very poor', prompting the Delhi Development Authority to discourage event bookings at its open spaces. The authority is also expanding its anti-pollution misting infrastructure in Dwarka. The misting network there now stretches 11.8 km. A new 3-km section with 66 poles has been installed in Sector 8 and linked to the existing system along major roads.

0
TechnologyThe Verge ·

New York Times Company in Talks to Acquire Film Social Network Letterboxd

The New York Times Company is reportedly in exclusive negotiations to buy Letterboxd, a social network for film enthusiasts, for roughly $330 million. Sony Pictures Entertainment and A24 were previously rumored to be interested in the platform as well. Under the discussed terms, Letterboxd's co-founders could remain in charge but would report to a Times Company executive. According to the Times, Letterboxd would likely continue operating as a standalone service for the foreseeable future, while integrating the Times Company's advertising technology.

0
TechnologyNYT Technology ·

House GOP Leaders Invite Nvidia's Huang to Closed-Door Briefing

House Republican leaders have asked Nvidia CEO Jensen Huang to address a closed-door briefing. The request follows a New York Times report from last week about Huang's close relationship with an executive. According to that report, U.S. officials concluded the executive was passing information to Chinese intelligence. The article does not detail the briefing's exact date or agenda. The report and the briefing request together have drawn attention to Nvidia's ties to the executive.

0
WorldBBC World ·

Democratic socialist unseats incumbent Karen Bass in Los Angeles mayoral race

A democratic socialist candidate has defeated sitting Los Angeles Mayor Karen Bass in the mayoral contest. The outcome means the country's two largest cities, New York and Los Angeles, will both be led by democratic socialists. The article provides limited further detail beyond this result. The report frames the win as a notable shift in the leadership of major American cities.

← NewerPage 565 of 7358Older →