- 7 Posts
- 17 Comments
tomatolung@sopuli.xyzto
World News@lemmy.world•China launches advanced aircraft carrier the Fujian in naval race with the USEnglish
2·15 days agoPresident Donald Trump says he plans to sign an executive order that would compel the U.S. Navy to use steam-powered catapults and hydraulic elevators on new aircraft carriers. Trump has railed against the Electromagnetic Aircraft Launch System (EMALS) catapults and Advanced Weapons Elevators (AWE) on the USS Gerald R. Ford, the Navy’s newest supercarrier, for years now. Ford‘s catapults and elevators have faced reliability and maintenance issues, but swapping out these features, even just for future ships in the class, would involve an extremely costly and time-consuming redesign that would further delay new carriers entering service.
Trump announced his intention to issue an executive order regarding carrier catapults and weapons elevators during often free-wheeling remarks to servicemembers aboard the Nimitz class carrier USS George Washington earlier today. The George Washington is currently in port in Yokosuka, Japan, where it is forward deployed. The President is in Japan as part of a larger tour of Asia.
…
tomatolung@sopuli.xyzto
Global News@lemmy.zip•China's new aircraft carrier enters service in key move to modernise fleetEnglish
2·15 days agohttps://www.twz.com/air/chinas-aircraft-carrier-capability-just-made-a-stunning-leap-forward
The Chinese People’s Liberation Army Navy (PLAN) has demonstrated its ability to launch and recover aircraft from its first catapult-equipped aircraft carrier, the Fujian. Official imagery released by the PLAN today confirms that the new J-35 naval stealth fighters and KJ-600 airborne early warning and control aircraft are carrying out carrier trials, something that had not been seen until now. Meanwhile, we’ve also got a much better view of the J-15T single-seat carrier-based fighter launching and recovering aboard Fujian, having previously seen it in position for a catapult launch with its afterburners engaged. The sudden appearance of video of all three aircraft operating from the ship for the first time is something of a stunning revelation, one of many that has come this year from China’s air power portfolio. …
tomatolung@sopuli.xyzto
News@lemmy.world•Jury acquits D.C. 'sandwich guy' charged with chucking a sub at a federal agent
41·16 days agoJurors showed no appetite for the Justice Department’s case against “sandwich guy,” the D.C. resident who chucked a Subway sandwich at the chest of a federal officer, finding him not guilty Thursday after several hours of deliberations.
The jury — which feasted on sandwiches for lunch Thursday, according to a person familiar with jury lunches — deliberated the charges for several hours Wednesday and Thursday before delivering the verdict.
Someone is feeling cute. And rightful so. When you lie about a sandwich exploding on you, and it can still be seen in the package after… Not to mention trying to take a hamfisted hogie slap to federal court, you deserve the pickling.
tomatolung@sopuli.xyzto
Technology@lemmy.world•Death of beloved neighborhood cat sparks outrage against robotaxis in San FranciscoEnglish
11·17 days agoGood call out of the identifiable victim effect and the affect heuristic, where decisions are driven by emotional responses rather than objective analysis of risks or benefits.
tomatolung@sopuli.xyzto
World News@lemmy.world•YouTube Quietly Erased More Than 700 Videos Documenting Israeli Human Rights ViolationsEnglish
4·17 days agoThat was my first thought. Some variation of https://peertube.tv/
tomatolung@sopuli.xyzto
Technology@lemmy.world•[Technology Connections] I was right about dishwasher pods, and now I can prove it [41:26]English
2·18 days agoI feel like you watched the video differently than I did because his whole point was about the prewash and the wash. The fact that the main washes where the pod gets dumped in, not during the pre wash for the for 15 minutes, which is his trying to be using powdered soap.
Or at least that was the first half of the video. The second half was about heat and wash cycles.
tomatolung@sopuli.xyzto
Technology@lemmy.world•[Technology Connections] I was right about dishwasher pods, and now I can prove it [41:26]English
9·18 days agoA dishwasher has two major cycles that are relevant to dish soap. One is the I’ll show about 15 minutes. And the there is the main wash, which is like an hour plus depending. If you don’t use powdered dish soap and split it up then you’re missing the advantage of the prewash.
Second half is focused on the effect of heat and why you should drain your water line of cold water through your faucet before you start your dishwasher. By doing that, you increase the heat and you increase the longevity of that heat on is that are in your dishwasher. It’s worth noting that heat is good for dishwashing liquid both because it helps the enzyme break down and also probably breaks down with the food material at some cases.
Beyond that, he was very enthusiastic about his new soap, which he helped create, and rightfully so. Double blind test, it came out very well against premium pods, and he was able to prove his whole point about pods not being useful in a prewash.
Try this Python script:
from PIL import Image, ImageDraw, ImageFont import os from pathlib import Path def watermark_from_filename(input_dir, output_dir=None, position='bottom-right', font_size=36, color='white', opacity=200): """ Add watermark to images using their filename (without extension) Args: input_dir: Directory containing images output_dir: Output directory (if None, creates 'watermarked' subfolder) position: 'bottom-right', 'bottom-left', 'top-right', 'top-left', 'center' font_size: Size of the watermark text color: Color of the text ('white', 'black', or RGB tuple) opacity: Transparency (0-255, 255 is fully opaque) """ # Setup directories input_path = Path(input_dir) if output_dir is None: output_path = input_path / 'watermarked' else: output_path = Path(output_dir) output_path.mkdir(exist_ok=True) # Supported image formats supported_formats = {'.jpg', '.jpeg', '.png', '.tiff', '.bmp'} # Process each image for img_file in input_path.iterdir(): if img_file.suffix.lower() not in supported_formats: continue print(f"Processing: {img_file.name}") # Open image img = Image.open(img_file) # Convert to RGBA if needed (for transparency support) if img.mode != 'RGBA': img = img.convert('RGBA') # Create transparent overlay txt_layer = Image.new('RGBA', img.size, (255, 255, 255, 0)) draw = ImageDraw.Draw(txt_layer) # Get filename without extension watermark_text = img_file.stem # Try to load a nice font, fall back to default if not available try: font = ImageFont.truetype("arial.ttf", font_size) except: try: font = ImageFont.truetype("/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf", font_size) except: font = ImageFont.load_default() # Get text size using textbbox bbox = draw.textbbox((0, 0), watermark_text, font=font) text_width = bbox[2] - bbox[0] text_height = bbox[3] - bbox[1] # Calculate position margin = 20 if position == 'bottom-right': x = img.width - text_width - margin y = img.height - text_height - margin elif position == 'bottom-left': x = margin y = img.height - text_height - margin elif position == 'top-right': x = img.width - text_width - margin y = margin elif position == 'top-left': x = margin y = margin elif position == 'center': x = (img.width - text_width) // 2 y = (img.height - text_height) // 2 else: x = img.width - text_width - margin y = img.height - text_height - margin # Convert color name to RGB if needed if color == 'white': rgb_color = (255, 255, 255, opacity) elif color == 'black': rgb_color = (0, 0, 0, opacity) else: rgb_color = (*color, opacity) if isinstance(color, tuple) else (255, 255, 255, opacity) # Draw text draw.text((x, y), watermark_text, font=font, fill=rgb_color) # Composite the watermark onto the image watermarked = Image.alpha_composite(img, txt_layer) # Convert back to RGB for JPEG if img_file.suffix.lower() in {'.jpg', '.jpeg'}: watermarked = watermarked.convert('RGB') # Save output_file = output_path / img_file.name watermarked.save(output_file, quality=95) print(f"Saved: {output_file.name}") print(f"\nDone! Watermarked images saved to: {output_path}") # Example usage: if __name__ == "__main__": # Watermark all images in current directory watermark_from_filename( input_dir=".", position='bottom-right', font_size=48, color='white', opacity=200 )To use this script:
-
Install Pillow:
pip install Pillow -
Save the script as
watermark_dates.py -
Run it in your image directory:
python watermark_dates.py
Customization options:
position: Choose where the watermark appearsfont_size: Adjust text sizecolor: ‘white’, ‘black’, or RGB tuple like(255, 0, 0)for redopacity: 0-255 (lower = more transparent)
-
tomatolung@sopuli.xyztoShare Funny Videos, Images, Memes, Quotes and more @lemmy.ml•Dogs In Chornobyl are Mysteriously Turning Blue, But Radiation Is Not to Blame
4·21 days agoWhile the team working with Dogs of Chernobyl was investigating the blue dogs, they came upon an old portable toilet, or porta-potty.
“We are suspecting that this substance was from an old portable toilet that was in the same location as the dogs; however, we were unable to positively confirm our suspicions,” says Betz.
Thanks to the photos of the blue dogs that have a geotag, the team accurately pinpointed the location of the dogs in conjunction with the portable toilet.
Many portable toilets contain a blue liquid that serves as a deodorizer, and they suggest the dogs may have rolled in it. However, until the team can catch and analyze one of the blue Chornobyl dogs, they won’t know for sure what caused the blue fur.
tomatolung@sopuli.xyzto
Good News@lemmy.ml•Germany decides against supporting chat control
4·2 months agoIn a major breakthrough for the digital rights movement, the German government has refused to back the EU’s controversial Chat Control regulation yesterday after facing massive public pressure. The government did not take a position on the proposal. This blocks the required majority in the EU Council, derailing the plan to pass the surveillance law next week. Jens Spahn, Chairman of the conservative CDU/CSU parliamentary group in the Bundestag, said in a public statement: “We, the CDU/CSU parliamentary group in the Bundestag, are opposed to the unwarranted monitoring of chats. That would be like opening all letters as a precautionary measure to see if there is anything illegal in them. That is not acceptable, and we will not allow it.”
…
tomatolung@sopuli.xyzto
Ukraine@sopuli.xyz•Amid war, Russia shuts down gasoline exports — producers hit for the first time
4·4 months agoThe Russia bans gasoline exports measure will start on 29 July and, for the first time, apply to fuel producers as well. Interfax reports that the Kremlin announced the full restriction to stabilize the domestic fuel market amid peak summer demand. Liga notes that the ban could also be prolonged into September if the situation does not improve.
Sanctions on Russian oil and refined products have cut export revenues and reduced access to parts and buyers. At the same time, the war drives enormous military fuel consumption, while Ukrainian attacks on fuel facilities and transport routes disrupt production and logistics. These pressures collide with seasonal demand peaks from farming during summer, creating domestic shortages. To keep enough fuel for internal needs, Moscow has turned to export bans as a stopgap measure.
tomatolung@sopuli.xyzto
Ukraine@sopuli.xyz•Meet the Ukrainian volunteers shooting down Russian drones
2·4 months agoEveryone doing all they can to stop the scourge… Even with 100 year old water cooled machine guns.
tomatolung@sopuli.xyzto
Uplifting News@lemmy.world•Oregon launches statewide recycling systemEnglish
6·5 months ago…
Local and out-of-state businesses with global revenues of $5 million or more will need to pay those producer fees to help pay for recycling services, like helping local hauling companies purchase new trucks and recycling bins. Funds will also help local governments administer the program and educate ratepayers about what is or isn’t recyclable.
This new recycling system came out of legislation passed in 2021. That law was a response to a global recycling disruption that began in 2017, when China — the world’s largest importer of recyclables — stopped accepting several types of waste due to high levels of contamination.
Since then, more domestic companies have cropped up to fulfill the nation’s demand for a place to recycle their trash, particularly plastics — according to Kim Holmes, executive director of Circular Action Alliance, the nonprofit charged with collecting and administering producer fees.
“There is no struggle in finding end markets,” Holmes said. “We have homes for all of the materials we currently have.”
The law requires recyclables to go to “responsible end markets” — that is, businesses that recycle materials in a way that doesn’t have major environmental or public health consequences. The statewide recycling list is based on materials that have such end markets.
Alternative link: https://archive.md/fHWe3
tomatolung@sopuli.xyztoUnited States | News & Politics@midwest.social•Silicon Valley Executives Join the Army as Officers. The men will get to skip the usual process of taking a Direct Commissioning Course and won’t need to complete the Army Fitness Test.
11·5 months agoFor those who have read the Galaxy’s Edge series, I can only think of the appointees (aka 'Points). Political appointed officer who often end up getting the legionaries killed and lack the combat prowess/skill to be in the officer position they exercise.
Realistically we have many other direct commission officers such as the medical, engineers, legal, etc. What’s really different here is they are not requiring the full 5 week Direct commission officer basic course .
tomatolung@sopuli.xyzto
Global News@lemmy.zip•Trump says US 'could get involved' in Iran-Israel conflict
1·5 months agoThe Republican president, according to ABC News, also said talks over Iran’s nuclear program were continuing and that Tehran would “like to make a deal,” perhaps more quickly now that the Islamic republic is trading massive strikes with Israel.
“It’s possible we could get involved” in the ongoing battle between the Middle East arch-foes, Trump said in an off-camera interview with ABC News senior political correspondent Rachel Scott that was not previously publicized.
Hey stressed that the United States is “not at this moment” involved in the military action.
So I read, “I as the deal maker can fix this.” Show of hand, who believes the TACO can make a meaningful impact?
(Also clickbait headlines as I read this as meaning he’s thinking about a military option. Thankfully not.)

484cdf74-bf59-4bc6-92bf-80fda450f3bd.jpg?sfvrsn=1edd4d89_3)







Let’s not count our chickens before they hatch. Politics is tricky.