Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
q9
- Page 1
Retrieval Augmented Generation with Hugging Face Models in LangChain
Programming
Computer Science
6 Days Ago
by usmanmalik57
In my [previous articles](https://www.daniweb.com/programming/computer-science/tutorials/541732/paris-olympics-ticket-information-chatbot-with-memory-using-langchain), I explained how to develop customized chatbots using Retrieval Augmented Generation (RAG) approach in [LangChain](https://www.langchain.com/). However, I used proprietary models such…
Re: how to create a simple elevator simulation?
Programming
Software Development
3 Days Ago
by trueframe
To make a basic elevator simulation, first, identify the floors and the elevator's capacity. Then, use loops and conditionals in programming to mimic its movement. Include buttons for users to call the elevator and select floors. Test thoroughly for accuracy.
Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace
Programming
Computer Science
1 Month Ago
by usmanmalik57
In a previous article, I explained [how to fine-tune Google's Gemma model for text classification](https://www.daniweb.com/programming/computer-science/tutorials/541544/fine-tuning-google-gemma-model-for-text-classification-in-python). In this article, I will explain how you can improve performance of a pretrained large language model (LLM) using …
Fine Tuning Google Gemma Model for Text Classification in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
On February 21, 2024, Google released [Gemma](https://ai.google.dev/gemma), a family of state-of-the-art open-source large language models (LLMs). As per initial results, its 7b (seven billion parameter) version is known to perform better than Meta's [Llama 2](https://llama.meta.com/), the previous state-of-the-art open-source LLM. As always, my…
7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM
Programming
Computer Science
1 Month Ago
by usmanmalik57
In the rapidly evolving field of Natural Language Processing (NLP), open-source large language models (LLMs) are becoming increasingly popular as they are free to use. Among these, the [Mistral](https://docs.mistral.ai/models/) family of models stands out as a state-of-the-art model that is freely accessible to the public. Comparable in …
Re: How to get organic traffic in a website?
Digital Media
Digital Marketing
Search Engine Strategies
2 Months Ago
by brandlyglobal
While off-page SEO and SMM are crucial, your decreasing organic traffic suggests a deeper issue. Consider these essential areas for attention: **Content Audit:** Analyze your existing content. Is it high-quality, relevant, and optimized for current search trends? Refresh outdated content, target long-tail keywords, and consider user intent. …
Re: Online subission forms not sending emails of submitted info
Programming
Web Development
1 Month Ago
by Dani
I wonder if the problem is that your php mail() function is configured to use SMTP in your php.ini file. A lot of SMTP servers switched over the past year or so to using XOAuth2 for authentication. A username + password in your config settings will no longer suffice to establish a connection. You can see me complaining about it [here](https://www.…
Re: Getting Started With C# - The List
Programming
Software Development
1 Month Ago
by Shahzad111
C-Sharp Tutorial is for student and prefessional who want to learn C# programming from basic to advance. We have discussed every topic of C# alonge with examples in this tutorial guide. https://c-sharptutorial.com/
Q. Java + Lotus Notes = RTFM?
Digital Media
UI / UX Design
17 Years Ago
by EY1
Q. Trying to embed a java application within a lotus notes e-mail. The obvious ... create java applet ... locate .class ... etc. is fine. But I think we're falling down when it comes to trying to feed in the HTML attributes and parameters (possibly!). Have you done this before, or know where to find a readme?
Q.No2 Write a C++ program which ❼ take two 4 × 4 matrices and add them ❼ a
Programming
Software Development
2 Years Ago
by Sardar_6
Q.No2 Write a C++ program which ❼ take two 4 × 4 matrices and add them ❼ aske user whether to add or subtract or exit ❼ do as directed Note: The program must keep on running unless the user chose exit option.
Q&A
Programming
Databases
14 Years Ago
by romi65
As a volunteer for a non-profit organization, I've been asked to delve into a database which would allow us to transfer data from our old Q&A program (the floppies are really floppies) to one that will be compatible with OS post Win XP. Apparently Q & A will not operate on Vista or Win 7. Since Q&A not only holds our membership & …
Q*: What is OpenAI Hiding?
Community Center
4 Months Ago
by Johannes C.
In the whirlwind of recent events at OpenAI, a host of unanswered questions has arisen, particularly surrounding the mysterious Q\* project. What secrets are hidden beneath the surface of the latest drama in the world of AI, and which unspoken discoveries might OpenAI have in stock? ![openai-q.jpg](https://static.daniweb.com/attachments/4/…
Re: q is undefined - php javascript
Programming
Web Development
11 Years Ago
by veedeoo
Hi, Try adding... if(isset($_GET['q'])){ ## codes for the script response when GET is triggered $q=$_GET["q"]; } else{ $q = ''; } Alternatively, I keep on seeing this type of approach by other developers of which I have not tested or ever tried, but I think it is worth teting …
Re: q is undefined - php javascript
Programming
Web Development
11 Years Ago
by adam.adamski.96155
**@xbat**, from what I can see, `'q'` is not defined in your JS code, it is not even referenced, so it can't be JS that's giving the error. The only way I can understand this undefined error regarding 'q' is the processing page, testwopart1.php. The beginning of the script (testwopart1.php), references `$_GET['q']` and if this variable is not …
q is undefined - php javascript
Programming
Web Development
11 Years Ago
by xbat
Getting a q is undefined.. I took <option="1">1</option> etc.. and now I'm pulling with ajax from datasrc.. I can't quite figure out how to define my database value.. The one uses query which pulls from the auto start typing.. then it submits to the other page through q - Once you click the item box where the part number is…
Re: q is undefined - php javascript
Programming
Web Development
11 Years Ago
by xbat
Sorry... heres the testwopart1.php `<?php $q=$_GET["q"]; $con = mysql_connect('localhost', 'yaaaaaaaa', 'passomass'); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("something", $con); $sql="SELECT * FROM inventoryjazz WHERE …
q to quit code
Programming
Software Development
13 Years Ago
by harpay
This is my code for my program, it seems to work fine but the problem is i think roll has to be a char in order for q to quit to work when i implement the code in there. but when i use char, when i input the number i want it to randomize, its obviously not the numbers i entered in the selection. how can i get a simple q to quit to work, please help…
Re: q to quit code
Programming
Software Development
13 Years Ago
by gerard4143
If roll is an int then you can set it to 'q' by simply doing this [code] roll = 'q'; [/code] but having one variable for two independent uses can lead to confusing code.
Re: q to quit code
Programming
Software Development
13 Years Ago
by emilo35
Well, I really see no point in why you need the option to quit using 'q' in this case. Just let the user enter the number 2 or whatever. I ran some tests with your code, and if you enter a char from within the for-loop you enter an infinite loop. I think that is because cin only reads integers from the buffer, leaving all chars (including the '\n…
Re: q is undefined - php javascript
Programming
Web Development
11 Years Ago
by xbat
Hello, Sorry no I didn't get it to work... Its with firebug and i believe the java that is causing the error. I believe the javascript still thinks its pulling from <option="value <<<< and im trying to get it to pull from q thats where its causing an error i believe
Re: q is undefined - php javascript
Programming
Web Development
11 Years Ago
by xbat
I changed the this.value, as for if(isset($_GET['q'])) and veedeoo I tried that and am I still getting the same error
Re: q is undefined - php javascript
Programming
Web Development
11 Years Ago
by xbat
Heres the error I am getting with firebug.. It works fine on query but doesn't work with q [Click Here](http://www.photocow.net/image/656.jpeg) ![query1](/attachments/small/3/query1.jpg "align-right")
Re: q is undefined - php javascript
Programming
Web Development
11 Years Ago
by adam.adamski.96155
It's this line: `xmlhttp.open("GET","testtwopart1.php?q="+str,true);` str is undefined. utrivedi suggested changing line 35: `<select name="users" onchange="showUser(this.value)"` I agree with him. You could alert the value of str before you send the ajax request, to make sure it is formed properly.
Re: q is undefined - php javascript
Programming
Web Development
11 Years Ago
by xbat
eve after changing this.form to this.value I still get the same error.. with q
Re: q is undefined - php javascript
Programming
Web Development
11 Years Ago
by adam.adamski.96155
If I could see how the options are formed, I could be certain how to proceed, but without seeing I can still make a guess. change your select declaration to this: `<select name="users" onchange="showUser(this)"` ...then add this line: `q_str = str.options[str.selectedIndex].value;` ...above the line: `xmlhttp.open("…
Re: q is undefined - php javascript
Programming
Web Development
11 Years Ago
by adam.adamski.96155_1
I never used 'datasrc=""' before, I have searched and found this page: http://msdn.microsoft.com/en-us/library/ms531385(v=vs.85).aspx7 In the example of a select element bound to a datasrc you can still view the options in the source of the page. q will remain undefined until you can get the selected option. Can I see the page?
Q&A VB.NET and Truncated Email - 2 Examples
Programming
Software Development
17 Years Ago
by rickvidallon
[B]Q&A VB.NET and Truncated Email - 2 Examples [/B] [URL]http://65.36.227.70/actmailer/[/URL] We have a scheduled task which runs every 5mins and sends pending email campaign. The script has been written in VB.NET and following is the code which actually sends the mail: set mailer = createobject("cdo.message") mailer.subject = …
Q & A: SpringSource CEO Rod Johnson
Programming
Web Development
15 Years Ago
by EddieC
Research released this week by Evans Data showed that 73 percent of the market currently use or plan to adopt the [url=http://en.wikipedia.org/wiki/Spring_framework]Spring application framework for Java[/url] within the next two years. More remarkable is that 83 percent of companies with 500 or more developers use Spring, according to the study[/…
Q&A with Microsoft about Windows Vista
Hardware and Software
Microsoft Windows
17 Years Ago
by c.handy
Just got back from a weekend visit to the Microsoft campus up in Redmond, Washington where I got the chance to hear about Windows Vista and other new MS creations, like the Xbox 360 and Zune music player. There were ’softies from all different parts of the enormous company presenting at different times and quite a few questions to be asked, so I’m…
q basic programming
Programming
Software Development
9 Years Ago
by Dom_1
write a program in Q basic programming language that will produce and calculate the average of five numbers.
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
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
© 2024 DaniWeb® LLC