- 0
[C#] Updating a label in real-time without deadlocking form
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By David Uzondu · Posted
YouTube adds AI summaries to search results and expands conversational AI testing by David Uzondu Today, YouTube announced it is adding two new AI features, and one is sort of like AI overviews for its search results. The platform is also expanding access to its conversational AI tool that can answer questions about the video you are currently watching. The primary update is a new AI-powered search results carousel. For now, this is exclusively for YouTube Premium members located in the United States. When you search for something like "best beaches in Hawaii," YouTube might generate a special carousel with short video clips and brief AI-written topic descriptions. It's interesting to see YouTube try this, especially since Google's own AI Overviews had some dangerous hallucination issues at launch, like that infamous suggestion to add non-toxic glue to pizza. The other update involves its conversational AI tool, which it introduced back in 2023. YouTube is now starting to test this with some non-Premium users in the US as well. If you are part of the test, you will see a new button labeled "Ask" positioned near the like and share buttons below a video. Tapping it lets you directly ask questions about the content. For instance, if you are watching a tutorial, you could ask for a summary or even for a quiz on the main points. It feels like every company is desperately shoving a chatbot into its products now. For creators, the AI-generated search carousel might turn into a serious problem. If people are getting everything they need from a summary without ever clicking through, there's not much reason to watch the actual video. That means fewer views, less watch time, and less money. Bad news if YouTube is your job. YouTube says the AI pulls from creator videos to make these summaries, but a quiet nod isn't the same as sending real traffic. And it's still unclear if any of that credit actually helps creators in a meaningful way. -
By ad47uk · Posted
Oh for crying out loud, more AI rubbish. It gets everywhere, well almost. i use Numbers on the Mac, which does what I need, at the moment I can turn any AI off, but maybe i should go back to LibreOffice. -
By Usama Jawad96 · Posted
Google Sheets gets exciting Gemini feature that is still missing in Excel by Usama Jawad We recently learned that Copilot in Microsoft Excel got a big upgrade in the form of context awareness, which is in addition to the formula generation capabilities that were made available earlier. However, no firm has really won the AI race yet, and Google has now edged ahead in at least one domain today, by adding Gemini text generation capabilities in Google Sheets. In a blog post, Google has announced that while you can already leverage Gemini in Sheets to generate charts and insights, you can now generate text using its new AI function too. This function can utilize a natural language prompt and an optional context window to summarize and generate text, categorize information, and perform sentiment analysis. The syntax for the AI function is fairly straightforward: AI("prompt",[optional range]) So you can invoke the Gemini function as follows: =AI("Perform sentiment analysis on the emails sent by the customers to the barbershop.", C2) Or: =AI("Create an email to the reviewer addressing specific items in their reviews.", A2:G2) It is very interesting to note that a similar capability is not offered by Copilot in Excel yet. In my testing, I did get Copilot to generate charts, formulas, and do some text formatting, it simply doesn't seem to have the ability to actually generate textual data directly in a workbook just yet. While an input range isn't mandatory, Google recommends using it for the best results. Just like any cell using a formula, you can refresh the AI cell, and get an indicator about its sync state. That said, a limitation that is present with regards to the AI function is that it only works for the first 200 selected cells in your range. Once that generation completes, you can select more cells and repeat the process, which is a slightly cumbersome experience. The rollout for this capability has begun across Business, Enterprise, Education, Education Premium, AI Pro, and Ultra plans, so it should be available to everyone sooner rather than later. In the meantime, you can view details about the AI function here. -
By LoneWolfSL · Posted
Space Marine 2 gains a horde mode and DLSS 4 with new Siege update by Pulasthi Ariyasinghe Warhammer 40,000: Space Marine 2 just received its next major update. Dubbed the Siege update, it is finally bringing the long-promised horde mode for the third-person action game, as well as new tech for PC gamers. The Siege mode takes place on a fortified Imperial stronghold on Kadaku that is enduring endless attacks by Tyranids and Thousand Sons. There are three sections in total that players will defend in order before circling back to the original position, fighting away thousands of enemies in five waves before swapping locations. To give players a small break, there's a one-minute gap between each wave to resupply and purchase perks from the points they collect while in battle. Players can call in AI-controlled specialized soldiers, Space Marines, or even a Dreadnought to help out if the waves get a little too tough. To cap it all off, every fifth wave a boss encounter kicks off. There are 15 waves to go through in a single session, but parties can also kick off an endless mode at the end of these to see how far they can get. "Siege Mode expands on our PVE operations, emphasizing endless enemy waves that challenge even the strongest teams," says Focus Entertainment, describing the new mode. "When overwhelmed, players may call reinforcements for assistance. Engage in intense battles across three distinctive sectors, each requiring strategic adaptation. Side objectives emerge during combat, providing essential resources used to summon elite Space Marines or a formidable Dreadnought, drastically shifting battlefield dynamics. Over on PC, the studio has added two new options. One is RTAO (Ray-Traced Ambient Occlusion), though this is currently listed as an experimental feature. Next, Nvidia 5000 series graphics card owners can now enable DLSS 4 for better upscaling tech as well as multi-frame generation. The complete patch notes for Patch 8, which includes details on the balance changes, can be found here. The Warhammer 40,000: Space Marine 2 Siege update is now available on PC, Xbox Series X|S, and PlayStation 5. -
By CHUNWEI · Posted
Dell Pro Max Premium Ultra
-
-
Recent Achievements
-
Kavin25 earned a badge
Conversation Starter
-
Leonard grant earned a badge
One Month Later
-
pcdoctorsnet earned a badge
Week One Done
-
Phillip0web went up a rank
Rising Star
-
Epaminombas earned a badge
One Month Later
-
-
Popular Contributors
-
Tell a friend
Question
rpgfan
I have a while loop that updates the form, while the actual information for the form is updated in a separate thread. The problem is, it is designed like this currently:
while (!quit) { this.SuspendLayout(); this.BeginInvoke(new InvokeDelegate(UpdateForm)); System.Threading.Thread.Sleep(1000); this.Update(); this.ResumeLayout(true); }
UpdateForm just updates the Text properties of 2 labels and exits. I've tried a lot in the past few hours, but this while loop thing has got me... How do I prevent such a deadlock? I've tried various combinations of Threads, Invoke, BeginInvoke, and the like, and nothing has worked. I've went through several tutorials on the topics (all of which dealt with the console), and understood how things worked. I even created my own console app based on what I learned. Windows Forms is a completely different animal from console apps though... Can anybody help or provide suggestions? Note that this isn't homework (I can't imagine doing this for homework...); it is just being done in the pursuit of knowledge! :)
Link to comment
https://www.neowin.net/forum/topic/611209-c-updating-a-label-in-real-time-without-deadlocking-form/Share on other sites
4 answers to this question
Recommended Posts