Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks Programming Computer Science by usmanmalik57 …-text-classification-and-summarization) ). ## Multi-Label Zero-Shot Text Classification with GPT-4.1….png) Since we are performing multi-label classification, we will only use research …client, LLM model ID, and dataset and performs multi-label classification. ```python def find_research_category(client, model, dataset): … Re: Show computer name on a label Programming Software Development by toneewa …"; this->Size = System::Drawing::Size(350, 350); Label^ label9 = gcnew Label(); label9->Location = System::Drawing::Point(50, 50); label9… Show computer name on a label Programming Software Development by Mr.M Display computer name to a label Re: Show computer name on a label Programming Software Development by Mr.M Error can't convert char to Text when I output ComputerName to label Cannot convert parameter 1 from char[16] to system::String ^ Re: Show computer name on a label Programming Software Development by Mr.M [Here is my code](Post in thread 'get computer name' https://www.tek-tips.com/threads/get-computer-name.1229373/post-4473307) Re: Show computer name on a label Programming Software Development by Mr.M My browser keep crashing Re: Show computer name on a label Programming Software Development by Mr.M I'm using windows Re: Show computer name on a label Programming Software Development by Reverend Jim Still waiting for a question. Re: Show computer name on a label Programming Software Development by Mr.M I don't know why DaniWeb keep on crashing whenever I try to write Re: Show computer name on a label Programming Software Development by Mr.M See ![Screenshot_20250312_122133_com.android.chrome.jpg](https://static.daniweb.com/attachments/4/6421f2ce80316b65f09dc1ce01ed173c.jpg) Re: Show computer name on a label Programming Software Development by Reverend Jim How about posting some code? <edit> Sorry. I didn't scroll back far enough to see the link. Re: Show computer name on a label Programming Software Development by Salem > Cannot convert parameter 1 from char[16] to system::String ^ You need to convert your char array to a CLI string in the first instance, before trying to pass it onto some other function expecting a CLI string. https://learn.microsoft.com/en-us/cpp/extensions/string-cpp-component-extensions?view=msvc-170 > I don't know why DaniWeb … Re: Show computer name on a label Programming Software Development by Mr.M I tried that but I get this error Error 14 error C2440: 'initializing' : cannot convert from 'char [16]' to 'System::String ^' Regarding browser crashing, only with Dani its crashes on the other sites it doesn't crash Re: Show computer name on a label Programming Software Development by Salem > I tried that but I get this error Prove it - post some code. You won't believe how many times people claim "I've done X" only to find out many posts later that they haven't done X at all, or they managed to fumble it and do "Y" instead. Re: Show computer name on a label Programming Software Development by Mr.M char ComputerName [MAX_COMPUTERNAME_LENGTH + 1]; DWORD cbComputerName = sizeof (ComputerName); if(GetComputerName (ComputerName, &cbComputerName)){ String^ pcname(ComputerName); label9->Text = pcname; } Re: Show computer name on a label Programming Software Development by Salem Back to the guessing games.... https://learn.microsoft.com/en-us/cpp/extensions/string-cpp-component-extensions?view=msvc-170 Lists 3 different namespaces where things called 'String' are present. using namespace Platform; using namespace default; using namespace System; Or maybe you have your own `String` implementation, … Re: Show computer name on a label Programming Software Development by Mr.M I'm using Microsoft Visual Studio 2010 (Visual C++ Windows Form Project). Regarding the test yes it doe compile/build/run with no error. Here are the includes #include "stdafx.h" #include <iostream> #include <fstream> #include <sstream> #include <string> #include <Windows.h>… Re: Show computer name on a label Programming Software Development by Dani Eek! I’m so sorry. We upgraded our editor last week and I suppose it’s possible a bug was introduced in my code? Can you please start a new thread in the Meta DaniWeb forum explaining exactly what you were clicking on, etc. just before it crashes, along with your browser and operating system. I don’t really want to conflate this thread with … Re: Show computer name on a label Programming Software Development by Mr.M @Dani this happens when I type a longer message than it froze and crash. I just tried testing using a different browser and it seems ok with Tor browser, the crashing happens on Chrome browser on my Android phone. I guess the issue is only picked up by Chrome. I know chrome does give issues, I saw while I was developing a browser extension, … Re: Show computer name on a label Programming Software Development by Dani Please reply here: https://www.daniweb.com/community-center/meta-daniweb/threads/543158/editor-crashes-browser Re: Show computer name on a label Programming Software Development by Mr.M I've managed to find a solution on my own and it was something so simple, I'm not sure why C++ programmers were unable to pick this up. Basically I need to output `ComputerName` using `gcnew String()` so it be `label9->Text = gcnew String(ComputerName);` Thanks to everyone who tried hepling. I will try to find out what does this means and … Re: Show computer name on a label Programming Software Development by toneewa For VS2010 project support in VS2022, to compile your example I did the following: Created header stdafx.h: #pragma once #include <iostream> #include <fstream> #include <sstream> #include <string> #include <Windows.h> #include <WinSock.h> #include <msclr/… McCharts - ArkTS Programming Software Development by 杨_659 …, if the maximum width corresponding to the text label is not obtained at the beginning, then the…maximum value each time } }) } ``` 2. Draw the text label. We can see from the figure that the x-coordinate…i++){ const item = this.options.data[i] // Drawing text label ctx.fillText(text, this.options.cSpace, cSpiltVal * (this.data… Implementing a Dynamic Filter Option in a Web Application Programming Software Development by YashSmith …quot; value={filters.minValue} onChange={handleChange} /> <label>Max Value:</label> <input type="number" name…quot; value={filters.maxValue} onChange={handleChange} /> <label>Category:</label> <select name="category" value={filters… send checkbox to email using phpmailer Programming Web Development by ianhaneybs …['oneway']:''; ?>"> <label class="form-check-label" for="oneway">…['return']:''; ?>"> <label class="form-check-label" for="return"> Return… Editor crashes browser Community Center Meta DaniWeb by Dani …/programming/software-development/threads/543151/show-computer-name-on-a-label) it seems as if Mr.M has been having trouble… Re: send checkbox to email using phpmailer Programming Web Development by Dani I would begin by making sure that you sanitize input passed in via $_POST. This ensures that someone doesn't pass in something like `$POST['oneway'] = '</p>Foo!<strong>Blah</strong>` and completely screw up your HTML, or, worse yet, inject Javascript into your HTML. <p><b>One Way:</b> ' . … Re: How do I establish an open connection to an open web browser in C#? Programming Software Development by xivlauncher You can also use SHDocVw or System.Diagnostics name spaces from C# to interact with an open web browser, or connect programmatically to an existing browser window using the UI Automation API. Of course, for deeper control over Chrome, you may need the Chrome DevTools Protocol. Re: Editor crashes browser Community Center Meta DaniWeb by Mr.M Hi Dani, I'm trying to reply with Chrome to test what I've noticed regarding the crash. I've attached relevant screenshots for 3 questions. I'm not using any plug-in ![Screenshot_20250313_051351_com.android.settings.jpg](https://static.daniweb.com/attachments/4/34cf3590e688c7994630462272a9cc21.jpg) ![Screenshot_20250313_051213_com.… Re: Editor crashes browser Community Center Meta DaniWeb by Mr.M What I've noticed is that it seems to be clutching with keyboard auto-correct/auto-complete. If I type a full word without pressing it from my keyboard suggestion options that shows while typing it doesn't seem to crash, but once I choose or select one auto-complete and proceed typing it freezes and crash.