Feed aggregator
CrowdStrike Hopes Legal Threats Will Fade As Time Passes
Read more of this story at Slashdot.
James Earl Jones, Beloved Actor and Voice of Darth Vader, Dies
Read more of this story at Slashdot.
US Prepares To Challenge Google's Online Ad Dominance
Read more of this story at Slashdot.
AirPods Pro 2 Adds 'Clinical Grade' Hearing Aid Feature
Read more of this story at Slashdot.
The NSA Has a Podcast
Read more of this story at Slashdot.
It Sure Looks Like FineWoven is Dead
Read more of this story at Slashdot.
Apple Will Release iOS 18, macOS 15, iPadOS 18, Other Updates on September 16
Read more of this story at Slashdot.
Apple Unveils iPhone 16 Pro Featuring Bigger Screen, New Chip And Pro Recording Options
Read more of this story at Slashdot.
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.