Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
text_file
- Page 1
Re: Error LNK1104 when debugging
Programming
Software Development
20 Hours Ago
by rproffitt
Again, while the SYNTAX may appear correct I find myself in Visual Studio setting a debgu break on the LOC and examining the variables. OR printing the variables to a debug output. You might be trying to avoid checking that. WHY IT MATTERS. Because during execution some of the variables are results from prior calls. If a prior call returned …
OpenAI o3 vs Anthropic Claude 4 for Text Classification & Summarization
Programming
Computer Science
6 Days Ago
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
3 Days Ago
by rproffitt
Remember I can't check that your declarations are correct for the variables you are passing. -> File a ticket to their support.
Re: Android Native - How To Request Notification Permissions
Programming
Mobile Development
1 Day Ago
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 …
Re: Safely upload a file
Programming
Web Development
2 Weeks Ago
by Dani
I realize I could have done better when coming up with a safe name. As it stands, a file uploaded that has a file name in non-Latin characters will just end up with a bunch of underscores. I’m not even sure if that suffices as a file name, but for sure there will be collisions as multiple files are attempting to be saved with the same _ name.
Safely upload a file
Programming
Web Development
2 Weeks Ago
by Dani
Here's a quick bit of code to upload a file in PHP.
Re: Safely upload a file
Programming
Web Development
1 Week Ago
by john_111
You should display a message acknowledging the upload was successful or that it failed (and why it failed), and perhaps it's new name.
Re: Safely upload a file
Programming
Web Development
1 Week Ago
by Dani
I feel like that's part of the UI that would be very different depending upon the context. For example, what would the message look like? This is meant to just be a backend utility function.
Re: Error LNK1104 when debugging
Programming
Software Development
3 Weeks Ago
by Dani
Can you please save the log as a text file and attach it as an attached file here? Much thanks! :)
Re: How to show visa info based on country selection in a travel form?
Programming
Web Development
2 Weeks Ago
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;…
Do you fear that Google "AI Mode" will be the default option in Google ?
Digital Media
Digital Marketing
2 Weeks Ago
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
3 Weeks Ago
by groverharleen
Hello, please use developer tool while working on HTML/PHP with AJAX. in the console you can easily track what was the POST/GET request made to PHP file and what is the responses shared by PHP file. try debugging response accordingly or if still you face any trouble, please do share screen shot of Header / Request / Response Tabs. i'll …
How to show visa info based on country selection in a travel form?
Programming
Web Development
4 Weeks Ago
by eservices
I’m working on a travel planning form that adjusts based on the selected nationality. For example, if someone picks a country like India, the form should display whether they need an electronic visa for places like Sri Lanka, and maybe show a short message or guide link. I’m using JavaScript to detect changes in a <select> dropdown and …
Re: Error LNK1104 when debugging
Programming
Software Development
3 Weeks Ago
by toneewa
I like the challenge, but hate when errors like these occur. Check for a syntax error on line 2 in starter.h starter.h(2): warning C4067: unexpected tokens following preprocessor directive - expected a newline Hard to say without seeing code. Some cases m_hservice may require you to use the .lib file Advapi32.lib it if it isn't automatically…
Re: Web Services using ASP.NET
Programming
Web Development
2 Weeks Ago
by rajshah85412
Here is the detailed answer : You want to: Register new users to your website. Validate (log in) existing users using a web service. You will achieve this by: Creating a SQL database to store user information. Developing a web service in ASP.NET to handle registration and login. Connecting the web service to your database. …
Re: Digital Marketing
Digital Media
Digital Marketing
1 Week Ago
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: What are "Other agent type" Googlebot types in GSC crawl stats?
Digital Media
Digital Marketing
Search Engine Strategies
3 Weeks Ago
by bijutoha
> No manual actions or security issues. Okay, Dani, that's genuinely good news about no manual actions or security issues, at least that rules out the scariest stuff! But it makes the 80% deindexing even more puzzling. Since it's not a penalty, my mind immediately jumps to some kind of technical configuration problem that might have …
Re: Error LNK1104 when debugging
Programming
Software Development
3 Weeks Ago
by toneewa
I've seen this happen from Windows Defender nuking Visual Studio's compile process. Make sure the PC is set to Developer Mode. Whitelist the directories involved in Windows Defender. This could happen after a Windows Update. Check the "defender" log and see if there is any file(s) to restore. Restarting the PC will resolve any hung…
Re: Error LNK1104 when debugging
Programming
Software Development
3 Weeks Ago
by Salem
> 1>C:\Users\mypcname\Documents\Visual Studio 2010\Projects\myprojectname\Debug\myprojectname.exe : fatal error LNK1120: 16 unresolved externals This is why you don't have an executable file. Example: 1>myprojectname.obj : error LNK2020: unresolved token (0A0000DF) "unsigned short MyProjectName::m_hservice" (?…
Re: Error LNK1104 when debugging
Programming
Software Development
3 Weeks Ago
by wwwalker
When compiling no relevant libraries have been included for linker to link so the executable won't run as it can't be compiled with missing libraries. In C and C++ code, the library header includes are at the top of the page. E.g.: #include <iostream> Go through each error where code requires a library to be linked and add those …
Re: Error LNK1104 when debugging
Programming
Software Development
2 Weeks Ago
by Mr.M
Thanks, I've never used Git before. I've commented out all the code but still. What I think might be producing this problem is the resources. I added a new item then changed the default to a new icon. But I did run the project successfully that time. This is the only thing I suspect might be a result of this problem. How can I clean the …
Re: Error LNK1104 when debugging
Programming
Software Development
2 Weeks Ago
by toneewa
I've seen this problem before with the .rc and resource.h files, when changing icons. Backup what you have. I remember I had to remove the resource files from the project, and the additional resource (e.g., resource1.h, resource2.h) generated headers from the project folder, when adding a new icon to replace the default. It's probably easier…
Re: Do you fear that Google "AI Mode" will be the default option in Google ?
Digital Media
Digital Marketing
2 Weeks Ago
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
2 Weeks Ago
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&…
Re: How to show visa info based on country selection in a travel form?
Programming
Web Development
4 Weeks Ago
by Dani
I have moved your post into the web development forum instead of the advertising/marketing forum where it was and tagged it appropriately. Can you please provide the Javascript code as well as PHP code that is buggy so that we can help diagnose this for you. For example, if the JSON response is empty, it is most likely because of a bug in the …
Re: Need Coding Help With A Project
Programming
Software Development
1 Month Ago
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('…
Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks
Programming
Computer Science
2 Months Ago
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
1 Month Ago
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
1 Month Ago
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
1 Month Ago
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; > …
1
2
3
17
Next
Last
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
Backlink Auditor
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC