Feed aggregator
DHS Says China, Russia, Iran, and Israel Are Spying on People in US with SS7
Read more of this story at Slashdot.
A Third Person Has Received a Transplant of a Genetically Engineered Pig Kidney
Read more of this story at Slashdot.
Chinese Hacker Singlehandedly Responsible For Exploiting 81,000 Sophos Firewalls, DOJ Says
Read more of this story at Slashdot.
Seagate's Breakthrough 32TB HAMR Hard Drives Are Finally Here
Read more of this story at Slashdot.
The Slow Death of Neon
Read more of this story at Slashdot.
Nvidia Launches Entry-Level AI Computer for Small Developers
Read more of this story at Slashdot.
Framework Unveils $39 Storage Expansion Module
Read more of this story at Slashdot.
FTC Orders Ticket Sellers, Hotels To Show 'All-in' Prices Upfront
Read more of this story at Slashdot.
Meta Fined $263 Million Over 2018 Security Breach That Affected 3 Million EU Users
Read more of this story at Slashdot.
TikTok Asks Supreme Court To Block Law Banning Its US Operations
Read more of this story at Slashdot.
Waymo Robotaxis Are Coming To Tokyo In 2025
Read more of this story at Slashdot.
Huge Math Error Corrected In Black Plastic Study
Read more of this story at Slashdot.
CodeSOD: One Month
Joseph sends us a tried and true classic: bad date handling code, in JavaScript. We've all seen so much bad date handling code that it takes something special to make me do the "confused dog" head tilt.
var months=new Array(13); months[1]='January'; months[2]='February'; months[3]='March'; months[4]='April'; months[5]='May'; months[6]='June'; months[7]='July'; months[8]='August'; months[9]='September'; months[10]='October'; months[11]='November'; months[12]='December'; var time=new Date(); var lmonth=months[time.getMonth() + 1]; var date=time.getDate(); var year=time.getFullYear(); document.write(lmonth + ' '); document.write(date + ', ' + year);We create a 13 element array to hold our twelve months, because we can't handle it being zero indexed. This array is going to be our lookup table for month names, so I almost forgive making it one-indexed- January is month 1, normally.
Almost. Because not only is that stupid, the getMonth() function on a date returns the month as a zero-indexed number. January is month 0. So they need to add one to the result of getMonth for their lookup table to work, and it's just so dumb.
Then of course, be output this all using document.write, so we just know it's terrible JavaScript, all the way around.
[Advertisement] ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.Infosys Founder Calls For 70-Hour Work Week, Again
Read more of this story at Slashdot.
Uber Will Need To Fingerprint Drivers In California To Transport Teens
Read more of this story at Slashdot.
YouTube Is Letting Creators Opt Into Third-Party AI Training
Read more of this story at Slashdot.
Hackers Hit Rhode Island Benefits System In Major Cyberattack
Read more of this story at Slashdot.
Cloudflare 2024: Global Traffic Up, Google Still King, US Churning Out Bots
Read more of this story at Slashdot.
Most iPhone Owners See Little To No Value In Apple Intelligence
Read more of this story at Slashdot.
More Than a Million Vapes a Day in UK Thrown Away, Says Research
Read more of this story at Slashdot.