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.

Kafka doesn't throw exception when authentication fails

12 May 2025 @ 5:16 am

I am using some C# code that can pull data from a Kafka connection if I provide the right credentials. However, if I provide incorrect credentials, I can see the error messages in the console, but the code does not throw an exception, so I have no way of handling the case where bad credentials have been provided. here is the code: using Confluent.Kafka; namespace KafkaTest { internal class Program { static void Main(string[] args) { var conf = new ConsumerConfig { GroupId = "mygroupid", BootstrapServers = "myserver:9092", SecurityProtocol = SecurityProtocol.SaslSsl, SaslMechanism = SaslMechanism.Plain, SaslUsername = "myusername", SaslPassword = "wrongpassword", AutoOffsetReset = AutoOffsetReset.Earliest, }; using (var c = new ConsumerBuil

How to resolve 'grad strides mismatching' warning in custom Kronecker Linear layer using torch.einsum?

12 May 2025 @ 5:12 am

I'm implementing a more efficient version of lokr.Linear from the LoKr module in PEFT. The current implementation uses torch.kron to construct the delta_weight before applying rank dropout, but this approach does not leverage the potential efficiency of mixed Kronecker matrix-vector products if rank dropout is ignored in several circumstances. Specifically, LoKr currently materializes the full Kronecker product, leading to unnecessary memory and compute overhead. Instead, I’m attempting to implement the computation using torch.einsum to directly evaluate the mixed Kroneck

Accessing disabled fields in Datadog synthetic testing

12 May 2025 @ 5:12 am

Problem: I'm currently creating my first synthetic tests in datadog. I'm encountering some difficulty testing whether a form field is disabled or not. I can't select disabled elements for assertions. This is the element I'm trying to select: <input type="text" name="phoneNumber" id="phoneNumber" placeholder="" class="..." disabled="" inputmode="numeric" value="410 111 1111"> Form fields that are not disabled like this are selectable: <input type="text" name="ssnLastFour" id="ssnLastFour" placeholder="" class="" inputmode="numeric" value=""> What I've tried: When I click on the element in datadog's GUI after clicking on add an assertion, the pink outline appears around both of the above text fields (as in the image), but I can

clojure.lang.ExceptionInfo: Error on key :app.migrations/migrations when building system (core.cljc:410)

12 May 2025 @ 5:05 am

I am trying to deploy penpot on a local minikube cluster using the following yaml file: apiVersion: v1 kind: Namespace metadata: name: penpot --- apiVersion: v1 kind: Service metadata: name: postgres namespace: penpot spec: ports: - port: 5432 selector: app: postgres --- apiVersion: apps/v1 kind: Deployment metadata: name: postgres namespace: penpot spec: replicas: 1 selector: matchLabels: app: postgres template: metadata: labels: app: postgres spec: containers: - name: postgres image: postgres:latest env: - name: POSTGRES_DB value: penpot - name: POSTGRES_USER value: penpot - name: POSTGRES_PASSWORD value: penpot ports: - containerPort: 5432 volumeMounts: - mountPath: /var/lib/postgresql/data name: post

Javascript TypeError undefined on for loop only [duplicate]

12 May 2025 @ 5:04 am

I have a function that gets called when you click a button. I'm checking to see if the clicked item has the class "itm-active". If it does, don't do anything. Else check for elements that have it and remve the class from them. Also change the text of the button one the class has been removed. The issue comes in when I'm trying to change the text of the button. If I hardcode an item, in this case items[0], I am able to change the text of the button. If I try to do the same thing within the for loop, I'm getting the error "Uncaught TypeError: items[i] is undefined" NOTE: If I comment out the line items[i].innerHTML = "test";. The line above it doesn't give any error. I left comments on the lines in question to make it easy to see. function activeStatus (event) { let activeItem = event.srcElement.classList.contains("itm-active"); if (activeItem) {

PostgreSQL table size

12 May 2025 @ 5:04 am

I created a table using the like option (like prod_events including all ) No records were inserted. The table prod_events does have indexes and a JSONB column. When I executed the query - select schemaname as table_schema, relname as table_name, pg_size_pretty(pg_total_relation_size(relid)) as total_size, pg_relation_size(relid) as data_size, pg_size_pretty(pg_total_relation_size(relid) - pg_relation_size(relid)) as external_size from pg_catalog.pg_statio_user_tables order by pg_total_relation_size(relid) desc, pg_relation_size(relid) desc limit 10; The newly created table has data_size of 0, but total_size/external_size of 32 KB. What would explain that? PostgreSQL Version is 13.15

BCNF decomposition - am I right?

12 May 2025 @ 5:03 am

Consider the relation R(A, B, C, D, E, F) with the following set F of functional dependencies: {AD → B, A → E, C → E, DEF → A, F → D}. Statement: the BCNF decomposition of R is ABD, ADEF, DF, CE and CF My opinion: this is not in BCNF because of ADEF will include F.D A->E (A is not a super key), but in answers it is given that it is in indeed in BCNF, please let me know if I am making any mistake anywhere.

Flutter iOS simulator launch error: arm64 not compatible with x86_64 + slow startup

12 May 2025 @ 4:58 am

I’m facing delays launching my Flutter app on the iOS simulator. Here's the key error: Error creating LLDB target... target architecture: arm64: not compatible with x86_64-apple-ios12.0.0-simulator... Using an empty LLDB target instead but this can cause slow memory reads. Also getting: [FirebaseCore][I-COR000012] Could not locate configuration file: 'GoogleService-Info.plist'. Details: macOS (M2), Dart Version: 3.7.2 Flutter Version: 3.29.2, Xcode Version 16.3 (16E140) iOS simulator (x86_64) vs app built for arm64 Tried: flutter clean, rebuilt Removed DerivedData Added GoogleService-Info.plist (still warning) Questions: How to fix arm64 vs x86_64 mismatch? Is LLDB target issue slowing down launch? Can I ignore the Firebase config warning?

UI Widget Flutter - page layout appears messy

12 May 2025 @ 4:56 am

enter image description here After the app is built into an APK, sometimes the page layout appears messy like this. It doesn’t happen often, but it’s quite annoying because I have to refresh the page. This usually happens when I go back by pressing the button in the middle of the phone screen Please help me. I'm not sure how to check this because I've never encountered this issue before

Interpolation x and y values with n time duration

12 May 2025 @ 4:54 am

if x values change from 3 to 9 over a 60 seconds duration , and y values change from 4 to 6 in the same duration time (60 seconds ). what time n will make x = y ? I tried , X3 = X1 + ((Y3 - Y1) * ((X2 - X1) / (Y2 - Y1)) , but where the time n first in the formula ? I FOUND THAT AFTER 15 seconds Both X and Y will equal 4.5, but how to get that time using code or formula ?

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…

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 […]

Nobel Prize–Inspired de novo Protein Design with Wolfram Language

20 February 2025 @ 3:02 pm

When I read a recent New York Times article on AI, I didn’t think I would be following the footsteps of a Nobel laureate, but I soon discovered that I could do just that with Wolfram Language. The Nobel Prize in Chemistry for 2024 was awarded for computational protein design and protein structure prediction, which […]

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.

The media is LYING TO YOU!

29 April 2025 @ 10:02 pm

I FOUND the news FAKING a story!

26 April 2025 @ 10:03 pm

Surveillance State

18 April 2025 @ 10:03 pm

BATTLE of the SEXES!

11 April 2025 @ 10:02 pm

THE GREAT RESET comes to CANADA

28 March 2025 @ 9:35 pm

We WERE Canadian!

21 March 2025 @ 6:01 pm

EVERYONE still has AIDS!

14 March 2025 @ 9:05 pm

YouTube HATES me!

9 March 2025 @ 11:43 pm

joeybtoonz

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

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

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

Why Are They Like This!? 4

19 March 2025 @ 10:31 pm

Degenerates and #OSCARS

5 March 2025 @ 10:58 pm

The Most Disrespectful Woman in America

26 February 2025 @ 3:21 pm

Narcissists and #GRAMMYS 2

19 February 2025 @ 9:28 pm

This Is Why I Stay Home 12

2 February 2025 @ 9:16 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.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...

Kubuntu Brand Graphic Design Contest Deadline Extended!

3 April 2024 @ 5:28 am

We’re thrilled to announce that due to the incredible engagement and enthusiasm from our community, the Kubuntu Council has decided to extend the submission deadline for the Kubuntu Brand Graphic Design Contest! Originally set to close at 23:59 on March 31, 2024, we’re giving you more time to unleash your...

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).