Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
main
- Page 1
Re: Coin Flip (Python Newbie)
Programming
Software Development
5 Days Ago
by jassonadder
… almost there, just a couple of small fixes needed. The
main
issue is that you're using the variable timesflipped in…
Re: Java Coin Flip Program
Programming
Software Development
5 Days Ago
by jassonadder
…:", self.heads) print("Total Tails:", self.tails) #
Main
program try: flips = int(input("How many times would…
Evaluating OpenAI GPT 4.1 for Text Summarization and Classification Tasks
Programming
Computer Science
2 Weeks Ago
by usmanmalik57
… the [News Article Summary](https://github.com/reddzzz/DataScience_FP/blob/
main
/dataset.xlsx) dataset. The following script imports the dataset into… first five rows. ```python # https://github.com/reddzzz/DataScience_FP/blob/
main
/dataset.xlsx dataset = pd.read_excel(r"/content/summary_dataset.xlsx…
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by lennyli
… control. ```python # server.py import socket import pyautogui def
main
(): server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_socket.bind… the other one. ```python # client.py import socket def
main
(): client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) client_socket.connect…
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by Salem
…("Waiting for a connection...")` ? Consider making your server
main
like this. if __name__ == "__main__": print('Server Begin…('Server End') You can add more prints in the `
main
()` function itself to try and diagnose the point of failure. …
Re: Cannot run exe from asp.net
Programming
Web Development
2 Weeks Ago
by lennyli
…connection...")` ? > > Consider making your server
main
like this. > > if __name__ == "…__main__": > print('Server Begin') >
main
() > print('Server End') > > You can… add more prints in the `
main
()` function itself to try and diagnose the point …
Text Classification and Summarization with DeepSeek R1 Distill Llama 70B
Programming
Computer Science
2 Months Ago
by usmanmalik57
… the [News Article Dataset](https://github.com/reddzzz/DataScience_FP/blob/
main
/dataset.xlsx). The following script imports the dataset. ```python # Kaggle… dataset download link # https://github.com/reddzzz/DataScience_FP/blob/
main
/dataset.xlsx dataset = pd.read_excel(r"/content/dataset.xlsx…
DeepSeek R1 vs Llama 3.1-405b for Text Classification and Summarization
Programming
Computer Science
2 Months Ago
by usmanmalik57
… the [News Articles Dataset](https://github.com/reddzzz/DataScience_FP/blob/
main
/dataset.xlsx) to summarise text using the `DeepSeek R1` and… # Kaggle dataset download link # https://github.com/reddzzz/DataScience_FP/blob/
main
/dataset.xlsx dataset = pd.read_excel(r"/content/dataset.xlsx…
ArkTS - McCharts
Programming
Software Development
1 Month Ago
by 杨_659
…. It’s been a while since my last update. The
main
reason is my busy schedule with my full-time job…
Null Pointer Exception in Java Application – Need Fixing
Programming
Software Development
1 Month Ago
by YashSmith
…'s the problematic code: public class Test { public static void
main
(String[] args) { String text = null; System.out.println(text.length…
Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
1 Month Ago
by YashSmith
… my code: #include <iostream> using namespace std; int
main
() { int arr[5]; cout << arr[10]; // Accessing out…
Re: How to Implement Lazy Loading for Faster Web Portals
Programming
Web Development
2 Months Ago
by jkon
… browser loads many images at once on page entry, the
main
thread is busy, which delays above-the-fold content. Those… takes more time for the ATF content to stabilize (busy
main
thread) or even affect the total "Speed Index."…
Re: Show computer name on a label
Programming
Software Development
1 Month Ago
by toneewa
…> #include "mr_m.h" [STAThread] void
Main
() { Application::EnableVisualStyles(); Application::SetCompatibleTextRenderingDefault(false); Application::Run(gcnew Mr_M…Properties->Linker->Advanced->Entry Point->
Main
Edit project file mr_m.vcxproj, under <ItemGroup…
Re: How does Microsoft defender operate?
Hardware and Software
Information Security
2 Months Ago
by Heatman
The same way AVAST works is the same way Microsoft Windows Defender works. It's the
main
security guard that protects your system against any foreign attacks especially against virus. It's what I've always been using for my laptop.
Re: How to Implement Lazy Loading for Faster Web Portals
Programming
Web Development
2 Months Ago
by jkon
… the first user interaction (click or mouse move) when the
main
thread is not busy.
Re: Show computer name on a label
Programming
Software Development
1 Month Ago
by toneewa
… Name: " << ComputerName << std::endl; } } } int
main
() { DisplayComputerName(); String^ managedString = gcnew String(L"Hello DaniWeb from…
Re: Text Classification and Summarization with DeepSeek R1 Distill Llama 70B
Programming
Computer Science
2 Months Ago
by rproffitt
"Wiz Research Uncovers Exposed DeepSeek Database Leaking Sensitive Information" "Security researchers tested 50 well-known jailbreaks against DeepSeek’s popular new AI chatbot. It didn’t stop a single one." It only seems to get worse the more you look at DeepSeek. And I must note how it is known to not want to talk about …
Re: Text Classification and Summarization with DeepSeek R1 Distill Llama 70B
Programming
Computer Science
2 Months Ago
by policenbicleara
Llama-70B struggles with sentiment analysis (69% accuracy) vs. Qwen-32B (87%). Summarization performance is weaker, with lower ROUGE scores. Qwen-32B is the better choice—smaller, faster, and more accurate.
Re: Text Classification and Summarization with DeepSeek R1 Distill Llama 70B
Programming
Computer Science
2 Months Ago
by Pelorus_1
Great breakdown of DeepSeek R1 Distill LLaMA 70B! The explanation of text classification and summarization is clear and insightful. Appreciate the practical examples—makes implementation much easier. Thanks for sharing!
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
1 Month Ago
by Reverend Jim
Don't try to access past the end of the array.
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
1 Month Ago
by rproffitt
Thanks for the MVE (minimum viable example). But it's just bad code. c, c++ and a lot of language won't stop you from going out of bounds.
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
1 Month Ago
by Dani
You’re creating an array of 5 integers and then trying to access the 11th integer in the array (assuming the indexes start at 0). You’re getting an out of bounds error because you’re trying to access an array element that doesn’t exist. You can access arr[0] up through arr[4].
Re: Segmentation Fault in C++ Program – Need Debugging
Programming
Software Development
1 Month Ago
by Salem
It should be obvious by now from their posting history that the OP is a troll.
Main Page Description Change, how often does Google update its search engine.
Digital Media
Digital Marketing
Search Engine Strategies
18 Years Ago
by cmelb
Main
Page Description Change, how often does Google update its search engine. I just changed the
Main
Page Description of my website and I'm wondering how long until I see the change when I search in Google. The name change was from jewellery to jewelry.
Re: main()
Programming
Software Development
18 Years Ago
by sneekula
…to write cleaner code. Here is my argument, with no
main
() you create automatically global variables: [code]def show_x(): &…() show_x() # 6 [/code]Wrapping the last few lines into
main
() makes x now local: [code]def show_x(x): "&… x = 3 x = double_x(x) show_x(x) # 6
main
() [/code]It also organizes your code a little, so you…
Re: Main()
Programming
Software Development
12 Years Ago
by Ancient Dragon
… most likely named "
main
" because it is the first function that you write … is executed first, then when it's done it calls
main
(). If
main
() were not a required function then the startup code…
Main()
Programming
Software Development
12 Years Ago
by mallikaalokam
**I Know
Main
is a primary funtcion in C...But Is there other reason ..like why they named it as
main
only and not other??? ..and why we have to write
main
() compulsory in prgoram...Any histroy behind it??** Help ME Please.......
Re: Main()
Programming
Software Development
12 Years Ago
by deceptikon
> like why they named it as
main
only and not other??? That's an easy one. C … point from B. > and why we have to write
main
() compulsory in prgoram A program must have a starting point…
main()
Programming
Software Development
18 Years Ago
by Mouche
I searched the forum and couldn't find anything on this, so I guses I'll give this tiny topic its own thread. What's the point of creating a
main
() function and calling it at the end of your program? Are there advantages to this method in comparison to just writing the code straight out in no function?
Re: main()
Programming
Software Development
18 Years Ago
by vegaseat
Something like
main
() makes for cleaner code, a little extra work. I should use it more often.
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
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC