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 to Create and Use a Reference Table in Excel for Auto-Filling Customer Information

18 May 2024 @ 4:47 pm

I need assistance with Excel to improve the efficiency of recording my daily sales. Specifically, I want to create a system where certain customer information can be auto-filled to avoid repetitive data entry. Here are the details of what I'm trying to achieve: Daily Sales Table: This table will include columns such as Product Name, Amount, Name of Customer, Tax ID, Address, etc. Reference Table: This table will store all customer information, using the Tax ID as a unique key. It will include columns like Name of Customer, Tax ID, Address, etc. My idea is when I enter a Tax ID in the daily sales table, the corresponding customer information (Name of Customer, Address, etc.) should automatically populate based on the reference table. The reference table should be easily updateable to add new customers and modify existing entries. How can I set up the reference table in Excel to store customer information with Tax ID as a unique key? What methods or Excel function

Calculate graident of loss function

18 May 2024 @ 4:44 pm

Consider a neural network shown below. Consider we have a cross-entropy loss function for binary classification: Ref diagram L=−[𝑦 ln(𝑎)+(1−𝑦) ln(1−𝑎)], where 𝑎 is the probability out from the output layer activation function. We've built a computation graph of the network as shown below. The blue letters below are intermediate variable labels to help you understand the connection between the network architecture graph above and the computation graph. Diagram When 𝑦=1, what is the gradient of the loss function w.r.t. 𝑊11? Write your answer to three decimal places. Note: Please use the computation graph method. One can calculate the gradient directly using chain rules, but if the computation graph is not used at all, it will not score properly. Try to fill the red boxes above. Th

Downporting C++17 to C++14: Cannot call member function without object

18 May 2024 @ 4:43 pm

I need to convert a C++17 project down to C++14 because I'm targetting a platform whose gcc doesn't support anything newer than C++14. I was able to adapt 99% of the code so that it compiles in C++14 mode but there's one thing where I don't know how to adapt it for C++14. It's this code: sptr<Box> MatrixAtom::createBox(Env& env) { if (_matType == MatrixType::smallMatrix) { return env.withStyle(TexStyle::script, [this](auto& script) { return createBoxInner(script); }); } return createBoxInner(env); } (full code here) When compiling this as C++14, gcc returns the following error: lib/atom/atom_matrix.cpp: In instantiation of 'microtex::MatrixAtom::createBox(microtex::Env&)::<lambda(auto:1&)> [with auto:1 = microtex::Env]': lib/env/env.h:196

How to obtain an HBITMAP of the date and time displayed in the taskbar on Windows 11/10?

18 May 2024 @ 4:41 pm

I am attempting to retrieve an HBITMAP of the date and time displayed in the taskbar on Windows 11/10. Specifically, I need to access the container or window that contains this information programmatically. I tried accessing the TrayClockWClass, but it did not work as expected. I couldn't find relevant information on MSDN or other sources regarding this specific taskbar element. I expected to find a straightforward method or API to retrieve the HBITMAP or at least the name of the container/window where the date and time are displayed.

SyntaxError: The requested module '@muchobuenofestival/shared/types/User.ts' does not provide an export named 'greetUser'

18 May 2024 @ 4:39 pm

i'm starting a project with pnpm:9.1.1 for shared types and functions. AdonisJS 6 for my backend and ReactTS for frontend. Here's my folder my_project backend app controllers users_controllers.ts package.json (calling the shared type) frontend shared types User.ts package.json When I use my type only no problem, but when I want to use enum or functions exported, it is not working, maybe I'm missing something please help. Console [ info ] starting HTTP server... SyntaxError: The requested module '@muchobuenofestival/shared/types/User.ts' does not provide an export named 'greetUser' at (syntax error) app\controllers\users_controller.ts:2 1| import typ

Spring Cloud Gateway Custom Filter Handle Error Response

18 May 2024 @ 4:39 pm

I have a customer filter in my spring cloud gateway and I am making a request with WebClient to validate authentication. If the response is 200 I want to continue with the execution/chain and if they response is not 200, I want to return the code I get back. My issue is I can't find a way to return the code if I can a non 200 response. Here is my code @Override public GatewayFilter apply(Config config) { return (exchange, chain) -> { WebClient webClient = WebClient.create("http://" + authServiceHost + ":" + authServicePort + "/api/v1/"); return webClient.post().uri("auth/validate-session") .exchangeToMono(clientResponse -> { if (!clientResponse.statusCode().is2xxSuccessful()) { // HOW DO I STOP EXECUTION HERE AND RETURN clientResponse.statusCode() // STOP the execution of exchange here // below do

Why am I getting an HTTP error 404 with pywikigraph?

18 May 2024 @ 4:31 pm

I'm trying to make code that finds the shortest possible path between two Wikipedia articles. When I run it, the following error is returned: Downloading index.pkl... (may take several minutes as it is 1 GB) Traceback (most recent call last): File "c:\Users\thomp\wikispeedrunning.py", line 6, in <module> wikirace = WikiGraph().get_shortest_paths_info(startpoint, endpoint) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\thomp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pywikigraph\wikigraph.py", line 211, in get_shortest_paths_info if not self._exists(topic=source, verbose=verbose): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\thomp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.12_qbz5n2kfra8p0\LocalCache\local-packages\Python312\site-packages\pywikigraph\wikigraph.py&quo

How to write sql query to filter for ids where its other column values are the same?

18 May 2024 @ 4:24 pm

I have the following SQL table: id fid val 200 995 XXLL 200 996 XXLL 201 995 OOOP 201 996 OOOS 202 995 OKIL 202 996 OKIL 203 995 LLLL 203 996 CCCC What I am trying to do is to get all of the ids where the value of 995 and 996 are the same. So in the above example, I would like the output of the sql query to be just 200, 202, because 201 and 203's 995 and 996 values are different! I hope the above makes sense, and any help is much appreciated!

CTest: Test not available without configuration

18 May 2024 @ 4:15 pm

I realize this is a very basic question, but I was unable to fix my problem despite even after reading multiple tutorials, including the official tutorial and the Professional Cmake book. I am simply trying to add unit tests to my C++ project with CMake 3.28 on Visual Studio 2022. However, when I run CTest, I get the following error: Test not available without configuration. (Missing "-C <config>"?) 1/1 Test #1: cpp_test .........................***Not Run 0.00 sec The "Test not available without configuration" message seems to indicate the configuration is missing. I did however defined the test in my CMakeLists.txt. I recreated the problem with minimal code. main.ccp int main() { return 0; } cpp_test.cpp int main() { return 0; } CMakeLists.txt cmake_minimum_require

Flutter handle play video

18 May 2024 @ 4:03 pm

If you're having trouble watching movies, the general overview is that after receiving data transmitted from the "link_embed" api, video_player or webview_flutter will be used to handle video playback. However, now after successfully receiving the data, I am unable to play the video and only display a black screen. Hope everyone can help me, thank youenter image description here,API here, SRC,SRC,

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…

Unlock Innovative Problem-Solving Skills with Creative Computation

15 May 2024 @ 3:07 pm

As computers continue to perform an increasing number of tasks for us, it’s never been more important to learn how to use computers in creative ways. Creative computing, an interdisciplinary subject combining coding with artistic expression, allows us to blend technology with human experiences. Learning to create in this way can help you unlock your […]

Marking a Milestone: Four Years of Daily Study Groups

8 May 2024 @ 8:49 pm

Four years ago, as the COVID pandemic wreaked havoc to class and event schedules, instructors and organizations were scrambling to create meaningful learning opportunities for students. In April 2020, Stephen Wolfram challenged the Wolfram U team to establish a unique online program for building computational skills with Daily Study Groups. The program was enthusiastically received […]

From Data to Discovery: Studying Computational Biology with Wolfram

29 April 2024 @ 2:03 pm

As computational science progresses, we are seeing leaps and bounds in what can be realized for helping the world. The technological advancements in biology have paved the way to better study medicine and the patterns of the environment in order to help the sick and optimize resources. Whether you’re classifying an animal for the first […]

Navigating Quantum Computing: Accelerating Next-Generation Innovation

12 April 2024 @ 3:23 pm

It’s no secret: quantum computing has been poised to be “the next big thing” for years. But recent developments in the quantum ecosystem, including major investments by companies such as IBM, Google, Microsoft and others, are the best indicators that now is the time to begin preparing for potentially viable quantum applications—and to identify where […]

Food and Sun: Wolfram Language Recipe Graphs for the Solar Eclipse

2 April 2024 @ 9:15 pm

At Wolfram Research, we are excited for the April 8 total solar eclipse and plan to observe this extraordinary event in several ways. Read about the science and math of this rare phenomenon in Stephen Wolfram’s new book, Predicting the Eclipse: A Multimillennium Tale of Computation, and then find eclipse specifics for your location with […]

Computational Astronomy: Exploring the Cosmos with Wolfram

25 March 2024 @ 2:11 pm

This year’s Global Astronomy Month is off to an exciting start for North America in anticipation of the total solar eclipse on April 8. In light of this momentous event, the following is a list of resources that bring Wolfram Language and astronomy together—including expert video guides, projects and books—for computational astronomers at every level. […]

Enhance Wind Turbine Design with the New Wolfram System Modeler Rotating Machinery Library

11 March 2024 @ 5:49 pm

Explore the contents of this article with a free Wolfram System Modeler trial. A wind turbine gearbox, susceptible to erratic wind loads, frequently fails well before its intended lifespan. Such failures, occurring globally, not only cause significant downtime but also lead to substantial economic losses. Can simulations help avoid this? The first animation delves into […]

How Many Days Would February Have if the Earth Rotated Backward? Exploring Leap Years with Wolfram Language

29 February 2024 @ 3:59 pm

Happy Leap Day 2024! A leap day is an extra day (February 29) that is added to the Gregorian calendar (the calendar most of us use day to day) in leap years. While leap years most commonly come in four-year intervals, they sometimes come every eight years. This is because a traditional leap day every […]

Your Invitation to Take a Quantum Leap in Education

27 February 2024 @ 11:02 pm

Learning quantum theory requires dedication and a willingness to challenge classical assumptions. Quantum interference, particularly for massive particles, is a pivotal example in this journey. The Schrödinger equation, inspired by de Broglie’s hypothesis, revolutionized our understanding by revealing the wavelike nature of even massive particles. This phenomenon not only deepens our grasp of nature but […]

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

Wackjobs and #PROTESTS 3

15 May 2024 @ 7:05 pm

Tourists and #IDIOCRACY 4

24 April 2024 @ 3:08 pm

This Is Why I Stay Home 4

18 April 2024 @ 4:03 pm

Fashion and #IDIOCRACY 2

24 March 2024 @ 4:24 pm

Narcissists and #SOCIALMEDIA 18

9 March 2024 @ 5:06 pm

TikTok and #IDIOCRACY 13

2 March 2024 @ 7:16 pm

Why Is This A Thing!? 2

15 February 2024 @ 11:15 pm

TikTok and #IDIOCRACY 12

28 January 2024 @ 7:49 pm

Tourists and #IDIOCRACY 3

12 January 2024 @ 11:28 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.

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

Kubuntu Wallpaper 24.04 – Call for Submissions

22 March 2024 @ 8:19 am

We are excited to announce a call for submissions for the official desktop wallpaper of Kubuntu 24.04! This is a fantastic opportunity for artists, designers, and Kubuntu enthusiasts to showcase their talent and contribute to the visual identity of the upcoming Kubuntu release. What We’re Looking For We are in...

Kubuntu Community Update – March 2024

8 March 2024 @ 4:53 pm

Greetings, Kubuntu enthusiasts! It’s time for our regular community update, and we’ve got plenty of exciting developments to share from the past month. Our team has been hard at work, balancing the demands of personal commitments with the passion we all share for Kubuntu. Here’s what we’ve been up to:...

Kubuntu Graphic Design Contest

20 February 2024 @ 9:21 pm

Announcing the Kubuntu Graphic Design Contest: Shape the Future of Kubuntu We’re thrilled to unveil an extraordinary opportunity for creatives and enthusiasts within and beyond the Kubuntu community The Kubuntu Graphic Design Contest. This competition invites talented designers to play a pivotal role in shaping the next generation of the...

Kubuntu Council Meeting – 30th January 2024

4 February 2024 @ 1:28 am

Greetings, Kubuntu Community! Today marked an important Kubuntu Council meeting, where we witnessed significant progress and collaboration among our esteemed council members – Darin Miller, Rik Mills, Valorie Zimmerman, Aaron Honeycutt, Jonathan Riddell (Kubuntu Treasurer), and Simon Quigley(Lubuntu). In this blog post, we’re excited to share the highlights and outcomes...

Plasma 5.27 LTS for Jammy 22.04 LTS available via PPA

18 October 2023 @ 3:28 pm

We have had many requests to make Plasma 5.27 available in our backports PPA for Jammy Jellyfish 22.04. However, for technical reasons this would have broken upgrades to Kinetic 22.10 while that upgrade path existed. Now that Kinetic is end of life, it is possible to allow opt in backports...

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