StackOverflow.com

VN:F [1.9.22_1171]
Rating: 9.4/10 (10 votes cast)

Random snippets of all sorts of code, mixed with a selection of help and advice.

How do I add Icon Composer glass app icons to my existing pre-iOS 26 app (and support alternate glass icons)?

1 July 2025 @ 11:57 pm

I have an existing iOS app that supports from iOS 15 to iOS 18 at the moment. My app has its main app icon plus several alternate app icons. All of my existing app icons are in an image asset. The app icon assets are named AppIcon, AppIcon2, AppIcon3, etc. That all works just fine. I can call UIApplication setAlternateIconName with the different names and the different icons are applied. Using Xcode 26 I'm trying to add new "glass" app icons made with Icon Composer. My goal is to have the old style icons be used when run on devices with iOS 15 - 18 and to have the new glass icons be used when run on devices with iOS 26+. I used the new Icon Composer tool to create a new glass app icon. I saved the new icon file as AppIconGlass.icon and then added that file to my project. On the target's General tab I went to the "App Icons and Launch Screen" section and changed "App Icon" to "AppIconGlass". I also enabled the "I

How to block advertisements in TCP video streams

1 July 2025 @ 11:53 pm

How to block advertisements in TCP video streams Problem I installed an app on my Xiaomi 4C TV to search for movies, but I found that a video advertisement for gambling in Macau would appear a few minutes after the movie was played. I want to block it This is how I check I used a TV to connect to the computer network, and Wireshark on the computer captured data packets. I found that the videos and advertisements were both TCP, and the access website was vvv2.hdzyk-dns.com What to do How can I distinguish which ones are advertisements from these TCP flows and block them? The attachment contains two intercepted data packets Link: https://pan.baidu.com/s/1i39sNINC0COTzlyIRUKQng Extraction code: yj9e

PYPDF Form Filling: Checkboxes and Text Not Displaying Correctly in all PDF Viewers

1 July 2025 @ 11:53 pm

I am trying to fill a PDF with text fields and checkboxes using Python. While the text fields and checkboxes are correctly filled and appear in the printed version of the PDF, these modifications do not display in PDF viewers such as Acrobat or online viewers. The checkboxes are particularly complex, and despite manipulating the correct data, the appearance of these fields is not maintained. This is my code: from pypdf import PdfReader, PdfWriter from pypdf.generic import NameObject, TextStringObject, BooleanObject, IndirectObject import os # Dummy data simulating Excel input for text fields field_values = { "id": "TEST #1", "name_rep": "TEST #2", "name_aff": "TEST #3", "1007_1": "614", } # Dictionary for checkbox states checkbox_states = { "checkbox_2_614": "On", } def set_need_appearances_writer(wr

Spring boot JPA findall() method fails in oracle for pagination and sorting

1 July 2025 @ 11:49 pm

While pagination works perfectly in generating the correct query for oracle using the findAll method. It does not generate the correct query for sorting using the same findAll method. Here is the Java Code for pagination Page<Tutorial> pageTuts; if (keyword == null) { System.out.println("in keyword is null"); Pageable FirstNextPage = PageRequest.of((page-1), size); --> for pagination //Pageable FirstNextPage = PageRequest.of((page-1), size,--> for pagination & sorting Sort.by(Sort.Direction.DESC, "tutorial_id")); pageTuts = tutorialRepository.findAll(FirstNextPage); System.out.println("after firstpage1 tutorial.size :"+pageTuts.getSize()); System.out.println("Hibernate Version :"+org.hibernate.Version.getVersionString()); } else { pageTuts = tutorialRepository.findByTitleContainingIgnoreCase(keyword,

GRUB error "you need to load the kernel first" when booting custom ISO with Multiboot2 kernel

1 July 2025 @ 11:40 pm

I'm building a custom bare-metal ISO for my AI-powered OS project (AIOS). The ISO contains a Rust-compiled kernel that includes a Multiboot2 header, along with other binaries and model data. I'm using grub-mkrescue to generate the ISO, and the bootloader is configured to load the kernel via the Multiboot2 spec. However, when I boot the ISO (via QEMU or bare metal), I get the following GRUB error: error: no server is specified. error: you need to load the kernel first. Press any key to continue... ISO Creation Script Here's a relevant excerpt from my build-iso.sh script: cat > "$ISO_ROOT/boot/grub/grub.cfg" <<EOF set timeout=5 set default=0 menuentry "AIOS - Bare Metal AI-Powered Operating System" { insmod part_msdos insmod ext2 insmod multiboot multiboot /aios/aios-kernel module /aios/aishell module /aios/llama-cli module /aios/llama-2-7b-chat.Q4_K_M.gguf set root=(

Html CSS override changing page font-size and family

1 July 2025 @ 11:32 pm

I have a css file override that includes some properties for a nav menu used by a BookReader It has the following lines: html { /** This must be set because the nav menu uses rem and sets the fonts really big? */ font-size: 47%; font-family: sans-serif; as this has html is overriding the overall font size and family of the page. I’m very new to CSS but for what I’ve read I should try to add more specificity to that html tag. The object where the nav menu exists is <div id="BookReader"> I’ve tried to change it to only apply to that with things like html div.BookReader .BookReader .BookReader html but can’t seem to get it to work, I can set it to font-size 3px or 47% for the controls to be visible but that would mess with the whole layout of the page. I need to find a way to apply those changes without overriding the

Dispatching static methods on generic types

1 July 2025 @ 11:18 pm

I want to achieve something like this: interface Parent { static int hi() { return 1; } } class Child implements Parent { static int hi() { return 0; } } class Child2 implements Parent { static int hi() { return 3; } } class Connector<T extends Parent> { int getHi() { return T.hi(); } } class Main { public static void main(String[] args) { Connector<Child> c = new Connector(); System.out.println(c.getHi()); // want it to print 0, but prints 1 Connector<Child2> c2 = new Connector(); System.out.println(c2.getHi()); // want it to print 3, but prints 1 } } where the type could be inferred by Java's type system and as a result call the correct getHi() method. Currently, the way I work around this is by handling it in the runtime by doing: interface Parent {}

How to properly show all elements inside two overlapping sticky divs

1 July 2025 @ 11:11 pm

I have a topnav (a sticky, full-width div) in my website with two a links positioned to the right of the screen. These links have z-index: 2. The topnav has z-index:0. Then a second topnav with the same styling but with buttons centered in the middle temporarily comes into view as the user scrolls through a div. I want both topnav's buttons to show as the user scrolls through this div, such that their buttons are visible and clickable. My logic is that the first topnav's links with z-index:2 will overlay the second topnav. However, the second topnav completely covers the first topnav's links when scroling through. html <div id="topnav" class="topnav"> <!-- Right-aligned links --> <div class="topnav-right"> <a href="/">Home</a> <a href="/about">About

Get the first Item from a "group by" without CTE or Temp Table

1 July 2025 @ 11:07 pm

Say I have a list of orders that looks like this: OrderId CustomerId ItemOrdered OrderedWhen 1 1 Orange 2024-08-01 16:33:00 2 1 Apple 2022-01-28 01:00:00 3 1 Peach 2025-06-10 03:39:00 4 1 Banana 2022-01-28 01:00:00 5 2 Kiwi 2021-12-21 11:31:00 6 2 Apple 2025-02-08 01:00:00 7 3 Strawberry 2024-05-16 01:30:00 8 3 Banana 2025-02-01 05:29:00 Here is an insert script for this: DECLARE @Orders TABLE (OrderId BIGINT NOT NULL IDENTITY(1,1), CustomerId BIGINT

Stop an Agent That's Moving in a MoveTo Block and Then Resume in AnyLogic

1 July 2025 @ 10:25 pm

I have an agent moving in a MoveTo block (in GIS space), I need to stop it from another block when a certain condition is met and then resume the movement after a timeout. I tried this in the "On enter" action of the other block: if(moveToBlock.size()>0){ for( Agent tr : moveToBlock.agents()){ tr.setSpeed(0); timeOutEvent.restart(); }; } And this in the timeOutEvent to resume the movement: for( Agent tr : moveToBlock.agents()){ tr.setSpeed(800); }; But the agent keeps moving. How can I achieve this?

wolframalpha.com

VN:F [1.9.22_1171]
Rating: 9.4/10 (5 votes cast)

Access to the world’s facts and data and calculates answers across a range of topics, including science, nutrition, history, geography, engineering, mathematics, linguistics, sports, finance, music…

Analyzing Semaglutide’s Biochemistry with Wolfram Language

22 May 2025 @ 2:01 pm

Semaglutide is the active ingredient in a couple of popular anti-obesity medications. It is a glucagon-like peptide-1 (GLP-1) receptor agonist that mimics the action of our naturally occurring GLP-1 hormone. Semaglutide is 94% similar in structure to our natural GLP-1 hormone, and it works similarly to lower blood glucose and regulate appetite.

Wolfram|Alpha, 이제 한국어로 사용하세요!

23 April 2025 @ 2:01 pm

Wolfram|Alpha를 이제 한국어로 편하게 사용하실 수 있습니다! 간체 중국어, 일본어, 스페인어, 영어에 이어 이번에 추가된 한국어 지원은 전 세계 누구나 체계적인 지식을 즉시 계산하고 활용할 수 있도록 돕는 Wolfram|Alpha의 비전을 한 단계 더 확장하는 중요한 이정표입니다. 앞으로도 더 많은 언어로 서비스를 확장해 나가며, 더 많은 사용자에게 지식의 힘을 제공할 수 있도록 노력하겠습니다.

Wolfram|Alpha 简体中文版, 现已上线

23 April 2025 @ 2:01 pm

我们很高兴地宣布,Wolfram|Alpha 简体中文版现已正式推出!这是继韩语、日语、西班牙语和英语之后,我们语言家族的又一重要成员,进一步实现了我们的长期愿景⸺让所有系统性知识变得即时可计算,并让全球每一个人都能轻松获取。

Wolfram|Alpha, Now in Simplified Chinese and Korean!

23 April 2025 @ 2:01 pm

We are excited to announce that Wolfram|Alpha is now available in simplified Chinese and Korean! This adds to our growing list of languages, including Japanese, Spanish and English, allowing us to continue to support our long-term goal of making all systematic knowledge immediately computable and accessible to everyone.

Diving into the Wolfram High School Summer Research Program

18 April 2025 @ 4:08 pm

As the Precollege Educational Programs Manager at Wolfram, I have the privilege of working with hundreds of bright, passionate students from middle school to college. In this post, we’ll be exploring the Wolfram High School Summer Research Program, Wolfram’s flagship program for younger students. I’ve been the Program Director since 2019, and it’s been a joy to expand and extend the Wolfram education ecosystem over that time. We have worked hard to create enrichment programs for talented students, and we now have a rich ecosystem of opportunities for students of all ages.

Wolfram Middle School Summer Camp: A Virtual Learning Experience

18 April 2025 @ 4:08 pm

This summer marks the fifth annual Wolfram Middle School Summer Camp. Students at the camp learn the basics of Wolfram Language and make connections with other young STEM enthusiasts from around the world. Our goal with this fully virtual camp is to offer an on-ramp into other Wolfram programs for girls and gender non-conforming students with diverse academic backgrounds.

Wolfram Education Programs for Middle School, High School and Beyond

18 April 2025 @ 4:08 pm

The precollege education team at Wolfram runs a wide range of programs and experiences for students from middle school and up. Many of our students start out with asynchronous online programs to get a feel for computational thinking and coding before moving on to our synchronous online programs or in-person programs.

What’s Up with Daylight Saving Time? A Brief History and Analysis with Wolfram Language

5 March 2025 @ 5:12 pm

In the next few days, most people in the United States, Canada, Cuba, Haiti and some parts of Mexico will be transitioning from “standard” (or winter) time to “daylight” (or summer) time. This semiannual tradition has been the source of desynchronized alarm clocks, missed appointments and headaches for parents trying to get kids to bed at the right time since 1908, but why exactly do we fiddle with the clocks two times a year?

A Whole New Ball Game: Game Theory in Wolfram Language 14.2

25 February 2025 @ 6:17 pm

Do you want to make optimal decisions against competition? Do you want to analyze competitive contexts and predict outcomes of competitive events? Do you need to elaborate strategies and plans against adversity and test the effectiveness of those strategies? Or are you simply an undergraduate student struggling to cope with a required course on game […]

Itchy Boots

VN:F [1.9.22_1171]
Rating: 9.0/10 (5 votes cast)

Motorcycle adventures from a single perspective.

Red Letter Media

VN:F [1.9.22_1171]
Rating: 9.0/10 (4 votes cast)

Movie reviews from VCR repair men.
Continue reading

44Teeth

VN:F [1.9.22_1171]
Rating: 9.0/10 (3 votes cast)

Motorcycle vblog and chat with challenges.
Continue reading

WHF Entertainment

VN:F [1.9.22_1171]
Rating: 9.0/10 (2 votes cast)

A look into the crazy world with Whats her face.

joeybtoonz

VN:F [1.9.22_1171]
Rating: 9.0/10 (1 vote cast)

One man’s look at clown world (tiktok/narcissistic culture).

Fashion and #IDIOCRACY 3

19 June 2025 @ 11:11 pm

Wackjobs and #PROTESTS 4

12 June 2025 @ 7:21 pm

Why Is She Like This!? 5

25 May 2025 @ 4:19 pm

This Is Why I Stay Home 14

4 May 2025 @ 1:52 pm

TikTok and #IDIOCRACY 17

19 April 2025 @ 2:40 pm

My Advice to Justin Bieber

7 April 2025 @ 2:49 pm

This Is Why I Stay Home 13

2 April 2025 @ 5:51 pm

kubuntu.org

VN:F [1.9.22_1171]
Rating: 9.0/10 (1 vote cast)

Kubuntu is a free, complete, and open-source alternative to Microsoft Windows and Mac OS X which contains everything you need to work, play, or share.

Plasma 6.4 Beta1 available for testing

18 May 2025 @ 8:25 am

Are you using Kubuntu 25.04 Plucky Puffin, our current stable release? Or are you already running our development builds of the upcoming 25.10 (Questing Quokka)? We currently have Plasma 6.3.90 (Plasma 6.4 Beta1) available in our Beta PPA for Kubuntu 25.04 and for the 25.10 development series. However this is...

Plasma 6.3.5 update for Kubuntu 25.04 available via PPA

8 May 2025 @ 6:28 pm

We are pleased to announce that the Plasma 6.3.5 bugfix update is now available for Kubuntu 25.04 Plucky Puffin in our backports PPA. As usual with our PPAs, there is the caveat that the PPA may receive additional updates and new releases of KDE Plasma, Gear (Apps), and Frameworks, plus...

Kubuntu 25.04 Plucky Puffin released

17 April 2025 @ 4:18 pm

The Kubuntu Team is happy to announce that Kubuntu 25.04 has been released. Codenamed “Plucky Puffin”, Kubuntu 25.04 continues our tradition of giving you Friendly Computing by integrating the latest and greatest open source technologies into a high-quality, easy-to-use Linux distribution. The release features the latest KDE Plasma 6.3 desktop,...

Kubuntu Plucky Puffin (25.04) Beta released

27 March 2025 @ 6:30 pm

The beta of Kubuntu Plucky Puffin (to become 25.04 in April) has now been released, and is available for download. This milestone features images for Kubuntu and other Ubuntu flavours. Pre-releases of Kubuntu Plucky Puffin are not recommended for: Anyone needing a stable system Regular users who are not aware...

Kubuntu 24.10 Oracular Oriole Released

10 October 2024 @ 3:05 pm

The Kubuntu Team is happy to announce that Kubuntu 24.10 has been released, featuring the new and beautiful KDE Plasma 6.1 simple by default, powerful when needed. Codenamed “Oracular Oriole”, Kubuntu 24.10 continues our tradition of giving you Friendly Computing by integrating the latest and greatest open source technologies into...

Kubuntu Oracular Oriole (24.10) Beta released

21 September 2024 @ 10:38 pm

The beta of Kubuntu Oracular Oriole (to become 24.10 in October) has now been released, and is available for download. This milestone features images for Kubuntu and other Ubuntu flavours. Pre-releases of Kubuntu Mantic Minotaur are not recommended for: Anyone needing a stable system Regular users who are not aware...

Introducing the Enhanced KubuQA: Revolutionising ISO Testing Across Ubuntu Flavors

12 May 2024 @ 9:28 pm

The Kubuntu Team are thrilled to announce significant updates to KubuQA, our streamlined ISO testing tool that has now expanded its capabilities beyond Kubuntu to support Ubuntu and all its other flavors. With these enhancements, KubuQA becomes a versatile resource that ensures a smoother, more intuitive testing process for upcoming...

Kubuntu 24.04 LTS Noble Numbat Released

25 April 2024 @ 4:16 pm

The Kubuntu Team is happy to announce that Kubuntu 24.04 has been released, featuring the ‘beautiful’ KDE Plasma 5.27 simple by default, powerful when needed. Codenamed “Noble Numbat”, Kubuntu 24.04 continues our tradition of giving you Friendly Computing by integrating the latest and greatest open source technologies into a high-quality,...

Kubuntu 24.04 Beta Released

12 April 2024 @ 6:33 pm

Join the Excitement: Test Kubuntu 24.04 Beta and Experience Innovation with KubuQA! We’re thrilled to announce the availability of the Kubuntu 24.04 Beta! This release is packed with new features and enhancements, and we’re inviting you, our valued community, to join us in fine-tuning this exciting new version. Whether you’re...

Celebrating Creativity: Announcing the Winners of the Kubuntu Contests!

9 April 2024 @ 8:38 pm

We are thrilled to announce the winners of the Kubuntu Brand Graphic Design contest and the Wallpaper Contest! These competitions brought out the best in creativity, innovation, and passion from the Kubuntu community, and we couldn’t be more pleased with the results. Kubuntu Brand Graphic Design Contest Winners The Kubuntu...

Ultra Harmonics

VN:F [1.9.22_1171]
Rating: 8.8/10 (4 votes cast)

Cool vibes and ultra Harmonics, instrumental in it’s finest.
Continue reading

The Late Brake Show

VN:F [1.9.22_1171]
Rating: 8.7/10 (3 votes cast)

Car caves, reviews and insights via Jonny Smith (that bloke from Fifth Gear).