You are here
Technology
State of Maine says Workday has shown 'no accountability' for farcical $56.4m HR upgrade
Maine has accused Workday of showing "no accountability" for its part in a flawed process to replace the US state's HR system.…
Got $10k to burn? Ultra-rare Piet Mondrian-esque Apple laptop is up for grabs on eBay
Another piece of Apple history has been put on the block, this time it's the turn of a weird - and in some eyes, possibly wonderful - limited edition of the PowerBook 170.…
T-Mobile, Verizon, and AT&T Have Reportedly Killed Their RCS Joint Venture
Read more of this story at Slashdot.
Spy agency GCHQ told me Gmail's more secure than Microsoft 365, insists British MP as facepalming security bods tell him to zip it
Conservative MP Tom Tugendhat has publicly claimed GCHQ sources told him Gmail was more secure than Parliament’s own Microsoft Office 365 deployment – but both Parliament and a GCHQ offshoot have told him to stop being silly.…
Telecoms Diversification Task Force urges UK government to give smaller hardware vendors a bigger slice of the 5G pie
Smaller telco kit makers should provide 25 per cent of the equipment used in Britain's 5G networks following the removal of Huawei, according to the recently formed UK.gov-backed Telecoms Diversification Task Force.…
OVH services still not fully restored as boss rates ongoing recovery efforts a 'real nightmare'
OVH is yet to bring all customers affected by its Strasbourg data center fire back online – and the French cloud operator's CFO has described ongoing restoration efforts as a "real nightmare."…
Neural networks give astronomers huge boost in identifying galaxies: 27 million done, 600 million to come
A neural network has helped astronomers catalog a whopping 27 million galaxies collected from one of the largest astronomical surveys probing the mysterious nature of dark energy.…
Grab, the superapp that made Uber quit Southeast Asia, to go public through controversial 'SPAC'
Singaporean superapp Grab announced yesterday that it plans to go public in the United States – through a $39.6bn merger with a Special Purpose Acquisition Company (SPAC).…
FCC Urges Americans To Run Internet Speed App To Counter Broadband Data Fudging
Read more of this story at Slashdot.
CodeSOD: The Truth and the Truth
When Andy inherited some C# code from a contracting firm, he gave it a quick skim. He saw a bunch of methods with names like IsAvailable or CanPerform…, but he also saw that it was essentially random as to whether or not these methods returned bool or string.
That didn't seem like a good thing, so he started to take a deeper look, and that's when he found this.
public ActionResult EditGroup(Group group) { string fleetSuccess = string.Empty; bool success = false; if(action != null) { fleetSuccess = updateGroup(group); } else { fleetSuccess = Boolean.TrueString; } success = updateExternalGroup(group); fleetSuccess += "&&&" + success; if (fleetSuccess.ToLower().Equals("true&&&true")) { GetActivityDataFromService(group, false); } return Json(fleetSuccess, JsonRequestBehavior.AllowGet); }So, updateGroup returns a string containing a boolean (at least, we hope it contains a boolean). updateExternalGroup returns an actual boolean. If both of these things are true, than we want to invoke GetActivityDataFromService.
Clearly, the only way to do this comparison is to force everything into being a string, with a &&& jammed in the middle as a spacer. Uh, for readability, I guess? Maybe? I almost suspect someone thought they were inventing their own "and" operator and didn't want it to conflict with & or &&.
Or maybe, maybe their code was read aloud by Jeff Goldblum. "True, and-and-and true!" It's very clear they didn't think about whether or not they should do this.
hljs.initHighlightingOnLoad();
China requires ‘self-correction’ of monopolistic behaviour by 34 local web giants
China’s State Administration for Market Regulation has warned 34 local web “platforms” to make sure they comply with local laws, and take care not to adopt western startups' aggressive tactics, or they may suffer the same kind of smackdowns recently inflicted on Alibaba.…
Tata Consultancy Services added just 7 customers in FY21 ... and 40,000 staff as revenue, profit flattened
Tata Consultancy Services won just seven new customers in its fiscal 2021, and went backwards on revenue and profit.…
COVID-19 kicks 3 twice: Robs operator of roaming revenue, sends data use soaring
Hong Kong-based CK Hutchison, operator of the '3' mobile brand, has told investors that COVID-19 cut its revenues by eight per cent and profits by 21 per cent, but it also found bright spots of business around the world.…
Australia's NDIS Gets a Government App With Blockchain But No Ethics
Read more of this story at Slashdot.
FBI deletes web shells from hundreds of compromised Microsoft Exchange servers before alerting admins
The FBI deleted web shells installed by criminals on hundreds of Microsoft Exchange servers across the United States, it was revealed on Tuesday.…
Genetic Mistakes That Could Shape Our Species
Read more of this story at Slashdot.
Detroit Man Sues Police For Wrongfully Arresting Him Based On Facial Recognition
Read more of this story at Slashdot.
Google Sites blight: Over 100,000 web pages for business form searches overrun with backdoor RATs
More than 100,000 web pages hosted by Google Sites are being used to trick netizens into opening business documents booby-trapped with a remote-access trojan (RAT) that takes over victims' PCs and hands control to miscreants.…
NSA Helps Out Microsoft With Critical Exchange Server Vulnerability Disclosures
Read more of this story at Slashdot.
Inspur, China's Largest Cloud Hardware Vendor, Joins Open-Source Patent Consortium
Read more of this story at Slashdot.
Pages
