Computer
Sharks Deserting Coral Reefs as Oceans Heat Up, Study Shows
Read more of this story at Slashdot.
RTX's Long-Delayed $7 Billion GPS-Tracking Network Is Still Troubled, GAO Says
Read more of this story at Slashdot.
The Mosquito-Borne Disease 'Triple E' Is Spreading in the US as Temperatures Rise
Read more of this story at Slashdot.
The Less-Efficient Market Hypothesis
Read more of this story at Slashdot.
Bending Spoons Plans To Cut 75% of WeTransfer Staff After Acquisition
Read more of this story at Slashdot.
Cabernet is the Most Popular Red Wine in the US. Can It Endure Climate Change?
Read more of this story at Slashdot.
Audible To Start Generating AI Voice Replicas of Select Audiobook Narrators
Read more of this story at Slashdot.
'Great Pacific Garbage Patch' Can Be Cleaned Within 10 Years, Says Ocean Cleanup Project
Read more of this story at Slashdot.
US Government Asks 3D Printing Industry to Help Stop the Printing of Machine Gun Conversion Devices
Read more of this story at Slashdot.
CodeSOD: Take a Line Break
The number of web applications which need to generate PDFs is too damn high, in my experience. But it's a requirement which continues to exist for a variety of reasons, so we just have to accept it.
Derek was accepting of it, at least until he found this attempt to add ten lines of space between paragraphs.
var pgText2N2 = section.AddParagraph(); pgText2N2.Format.Alignment = ParagraphAlignment.Right; pgText2N2.Format.RightIndent = rightMargin; var pgText2N3 = section.AddParagraph(); pgText2N3.Format.Alignment = ParagraphAlignment.Right; pgText2N3.Format.RightIndent = rightMargin; var pgText2N4 = section.AddParagraph(); pgText2N4.Format.Alignment = ParagraphAlignment.Right; pgText2N4.Format.RightIndent = rightMargin; var pgText2N = section.AddParagraph(); pgText2N.Format.Alignment = ParagraphAlignment.Right; pgText2N.Format.RightIndent = rightMargin; var pgText3N = section.AddParagraph(); pgText3N.Format.Alignment = ParagraphAlignment.Right; pgText3N.Format.RightIndent = rightMargin; var pgText4N = section.AddParagraph(); pgText4N.Format.Alignment = ParagraphAlignment.Right; pgText4N.Format.RightIndent = rightMargin; var pgText5N = section.AddParagraph(); pgText5N.Format.Alignment = ParagraphAlignment.Right; pgText5N.Format.RightIndent = rightMargin; var pgText6N = section.AddParagraph(); pgText6N.Format.Alignment = ParagraphAlignment.Right; pgText6N.Format.RightIndent = rightMargin; var pgText7N = section.AddParagraph(); pgText7N.Format.Alignment = ParagraphAlignment.Right; pgText7N.Format.RightIndent = rightMargin; var pgText8N = section.AddParagraph(); pgText8N.Format.Alignment = ParagraphAlignment.Right; pgText8N.Format.RightIndent = rightMargin;This falls into the common WTF of "hey, have you ever heard of a loop? Or an array?".
These variables are never actually used or referenced anywhere, which arguably makes their cryptic, meaningless names better, but… does it? Also, given that this is ten blank lines, do we actually need to set the alignment and indent on them? Maybe- I don't know this PDF generating library, but if so, that's it's own WTF. And while we're at it, I'm no expert in PDFs, but there's gotta be some way to just include space without spamming a bunch of paragraphs in the document.
At this point, though, I'd just take a loop.
[Advertisement] ProGet’s got you covered with security and access controls on your NuGet feeds. Learn more.Four-Day Work Week Proposal by UK Government Raises Issues, Says Econ Professor
Read more of this story at Slashdot.
Elon Musk: Starships Launch for Mars in 2026. Crewed Flights Possible By 2028
Read more of this story at Slashdot.
How an Engineer Exposed an International Bike Theft Ring - By Its Facebook Friends
Read more of this story at Slashdot.
'AI May Not Steal Many Jobs After All'
Read more of this story at Slashdot.
Videogame Performers' Union Hails New 80-Game Agreement as Preserving Human Creativity
Read more of this story at Slashdot.
Solar Farms Look to Produce Something Apart From Power: Friendly Habitats for Wildlife
Read more of this story at Slashdot.
During Georgia School Shooting, Newly-Installed Tech Spread Warnings and Called Police
Read more of this story at Slashdot.
'Thousands" of Telegram Channels Sell Stolen Identities, Reports WSJ
Read more of this story at Slashdot.
KDE Developer: Why Plasma 6.2 Includes a Once-a-Year Popup for Donations
Read more of this story at Slashdot.
China To Launch Mars-Sampling Mission In 2028
Read more of this story at Slashdot.