OpenAI o3 vs Anthropic Claude 4 for Text Classification & Summarization Programming Computer Science by usmanmalik57 [OpenAI](https://openai.com/) and [Anthropic](https://www.anthropic.com/) are two AI giants delivering state-of-the-art large language models for various tasks. In a [previous article](https://www.daniweb.com/programming/computer-science/tutorials/542132/comparing-gpt-4o-vs-claude-3-5-sonnet-for-zero-shot-text-classification), I compared OpenAI GPT… Re: Error LNK1104 when debugging Programming Software Development by rproffitt I'm checking page 57 of https://www.cencenelec.eu/media/CEN-CENELEC/AreasOfWork/CEN%20sectors/Digital%20Society/CWA%20Download%20Area/XFS/16926-1.pdf Your next tasks are to verify each of the passed parameters are valid. Re: Android Native - How To Request Notification Permissions Programming Mobile Development by Inamullah_1 Great tutorial—thanks for sharing! Just a few quick additions: Starting with Android 13 (API 33), apps must request permission for POST_NOTIFICATIONS at runtime, while older versions allow notifications by default. It’s best to check the Android version before requesting this permission to avoid unnecessary prompts. Also, remember to handle the … Do you fear that Google "AI Mode" will be the default option in Google ? Digital Media Digital Marketing by jkon Even with the current state of Google search, finding the first truly organic web page result (excluding sponsored links and promotions) often requires significant scrolling, especially when searching for products. The introduction of "AI Overviews" exacerbated this situation, though small and medium-sized businesses still had a … Re: How to show visa info based on country selection in a travel form? Programming Web Development by Biiim I felt like some fun, so I just put together an example for you using CDN's and bootstrap 5. From what you are talking about you probably want to put some of that logic into the Javascript and not need to send a server request for each one, I usually do this kind of thing with javascript objects/arrays (eg `settings['GB']['visa_req'] = false;… Re: Error LNK1104 when debugging Programming Software Development by Dani Can you please save the log as a text file and attach it as an attached file here? Much thanks! :) Re: Digital Marketing Digital Media Digital Marketing by G Tech The text highlights innovativ tools like Surfer SEO, SEMrush, and AI content creators that boost website visibility and drive business growth. It also notes that building high-quality backlinks and optimising content are the most effective activities to improve SERP rankings. If you need any help just let me know Re: Do you fear that Google "AI Mode" will be the default option in Google ? Digital Media Digital Marketing by Reverend Jim I have no problem with the AI summary I get from Google after a search as long as I can scroll past it to get to the meat. Sometimes the summary is the answer I wanted. Interestingly enough, you can ask a question two ways. One gets the AI summary and the other does not. 1. why does my doctor check my peripheral vision 2. Why does my f***ing … Re: Do you fear that Google "AI Mode" will be the default option in Google ? Digital Media Digital Marketing by jkon Great Reverend Jim , but I am not talking about "AI Overviews" that is an issue but small compared to "AI Mode" which is a new option rolled in US for now that lets AI search for you and reference a few (usually three) or none real links . Lets have Google Gemini summarize what "AI mode" is '''Google "AI Mode&… Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks Programming Computer Science by usmanmalik57 On April 14, 2025, OpenAI released [GPT-4.1](https://openai.com/index/gpt-4-1/) — a model touted as the new state-of-the-art, outperforming GPT-4o on all major benchmarks. As always, I like to evaluate new LLMs on simple tasks like text classification and summarization to see how they compare with current leading models. In this article, I will… How do I remove the last character without breaking the string? Programming Web Development by Montasser_1 I try to remove the last character from a string with Japanese text and emojis using this code: <?php $text = "私の名前はダバーです👩‍🚀"; $new_text = substr($text, 0, strlen($text) - 1); echo $new_text; The output breaks the characters and shows garbage. How do I fix this? Re: How do I remove the last character without breaking the string? Programming Web Development by MAY_261 Use mb_substr() instead of substr(). It handles multibyte characters and emojis correctly. Here is the correct code: $text = "私の名前はダバーです👩‍🚀"; $length = mb_strlen($text, 'UTF-8'); $new_text = mb_substr($text, 0, $length - 1, 'UTF-8'); echo $new_text; https://flatcoding.com/tutorials/php/php-remove-last-… Re: How do I remove the last character without breaking the string? Programming Web Development by Montasser_1 > Use mb_substr() instead of substr(). It handles multibyte characters and emojis correctly. > > Here is the correct code: > > > > $text = "私の名前はダバーです👩‍🚀"; > $length = mb_strlen($text, 'UTF-8'); > $new_text = mb_substr($text, 0, $length - 1, 'UTF-8'); > echo $new_text; > … Integrating OpenAI Web Search API in LangGraph Programming Computer Science by usmanmalik57 Large language models are trained on a fixed corpus, and their knowledge is often limited by the documents they are trained on. Techniques like retrieval augmented generation, continuous pre-training, and fine-tuning enhance an LLM's default knowledge. However, these techniques can still not enable an LLM to answer queries that require web … Re: Need Coding Help With A Project Programming Software Development by Enzo_3 I was working on a similar assignment where I had to compute the average of numbers from a text file using higher-order functions like map() and reduce(). I was really stuck on how to incorporate them meaningfully, but I finally figured it out. Here's how I approached it using Python: from functools import reduce with open('… Re: How much anonymity does a VPN really provide? Hardware and Software Information Security by TurisVPN A VPN helps hide your IP and encrypt your internet, so others (like your ISP) can’t see what you do online. But it doesn’t make you totally anonymous. The VPN company can still see your traffic (if they keep logs). Websites can track you with cookies, and if you log in with your real info, they know who you are. So, a VPN is good for privacy … Re: How much anonymity does a VPN really provide? Hardware and Software Information Security by Liam91 A VPN is a tool that keeps your internet connection safe and private. It stops others from seeing what you do online. But a VPN doesn’t make you completely anonymous. To pick a good VPN, check: -How you pay (Bitcoin is more private than a credit card) -If they keep records of your activity (best if they don’t) -If they share IP addresses … Re: Cannot run exe from asp.net Programming Web Development by lennyli > Why your approach isn’t working > What you're trying to do is mostly blocked by modern security rules — for good reasons. Here's the breakdown: > > Running a .exe on the server > You can technically make the server launch an .exe file like Notepad, but: > > It will run in the background on the server, not visibly on… Re: The Impact of User Research on UX Design Digital Media UI / UX Design by john_111 I once visited a website where there were 20 rows, each composed of 20 identical small white squares (about the size of this --> HH ), with a tiny arrow in the bottom quarter corner to indicate they were links. But no text anywhere. Can you imagine how hard it would be to remember which button took you to which page, several days later? This… Re: Cannot run exe from asp.net Programming Web Development by lennyli > > When I run the command "python server.py" on the server pc, it held for a second, then released back to the command prompt. > > So did it even give you `print("Waiting for a connection...")` ? > > Consider making your server main like this. > > if __name__ == "__main__": >… Re: How do you do keyword research for SEO? Digital Media Digital Marketing Search Engine Strategies by Dani I don't. All of the content on DaniWeb is user-generated, so I have very little control over the words that appear on each page. Years and years and years ago, back when backlinks weren't banned by Google, I used to be a little intentional when it came to keywords in anchor text, but we're talking over 2 decades ago. Re: How do you do keyword research for SEO? Digital Media Digital Marketing Search Engine Strategies by Dani Building backlinks is an important part of any SEO strategy, but Google has banned the buying/selling/trading of backlinks. Back in the before-times, you could purchase backlinks and be very strategic about the keywords used in doing so and exactly how that link looked, since it was essentially a paid advertising campaign. Nowadays, building … Re: Justice Department Offers Grants Against Internet Predators Digital Media Digital Marketing by JackRyan248 > Despite a study earlier this year[/URL] that the fears of Internet predation against kids were overblown, the U.S. Department of Justice is $50 million through the American Recovery and Reinvestment Act of 2009, commonly known as the stimulus program, for Internet Crimes Against Children (ICAC) program initiatives. > > The programs … Re: Android Native - How To Request Notification Permissions Programming Mobile Development by Erussuhsh Hi I'm new android app development can you teach me Re: Need Coding Help With A Project Programming Software Development by Reverend Jim I don't know why you would use `reduce` and `lambda` when you could just do sum(numbers) And the directive >You should make use of two higher-order functions (i.e., map and reduce, or something else) to simplify the design. is self-contradictory as using `map` and `reduce` instead of `sum` does not simplify the design. It … Re: Need Coding Help With A Project Programming Software Development by Reverend Jim >Why put them down? Please explain to me how anything I said was a put down. If someone told me their methof of counting cows was "count the number of legs and divide by four", I would point out that it would be simpler just to count the number of cows. If I said "That's stupid, just count the cows", then that would be a … Re: Need Coding Help With A Project Programming Software Development by Dani First of all, let me be blunt. I believe that Enzo only resurrected a 12 year old thread with the intent of spamming. You and I know that because, as moderators, we see in his profile his spamming attempts and his infractions. However, no one else coming across this thread sees that or knows that, so the other 2000 people reading this thread may … Re: Question/Answering over SQL Data Using LangGraph Framework Programming Computer Science by Pelorus_1 Through its combination of natural language processing and structured query generation, LangGraph makes interfacing with databases and extracting insights over SQL data easier than ever. Re: Theory on the VPN Programming Mobile Development by Liam91 Sounds like you're diving deep into how tunneling apps work! These apps often use VPN-like methods to route traffic through servers, sometimes exploiting free access points. Configs like .hat may include encryption keys or payload setups. Keep exploring... lots to learn! Re: Edit/replace PDF text Programming Web Development by namiamy Hi, you may know that PDF is un-editable unless you have adobe acrobat or Foxit Editor. Though you can edit PDF text or replace some words using Acorbat, it is expensive and not easy to use. You can find this resouce on Adobe Website. For me, I would like to edit PDF in Word, because I think edit contents in Word Process is more convenient than …