199,114 Archived Topics
Remove Filter ![]() | |
Hello, I have a php page (category.php) that loads its content from the database when a link is clicked from another page. For example a a link that looks like this `<a href = "category.php?category=cars">Cars</a>` when clicked will pull all the items from the database under the cars category and … | |
Hi Team, I'm stuck with my code and I found out this snippet to save(Export) an Excel file to **D:**. However, I would like to give a User an option to save it according to his/her necessity. Please find the Code Snippet below: Private Sub Button1_Click(sender As Object, e As … | |
I have to create a program that will calculate the the average miles per tank and the cost to fill tank of a car. The inputs are tank capacity, miles per gallon, and price per gallon, the outputs are average miles per tank and cost to fill tank. I have … | |
hi so this code here as i test it on paper provides paranthesis on every leaf node, disregarding priority (operator precedence) how can i make it add those paranthesis based on precedence of operators? void printInfix(Node n) { if (n == null) { if (n.isLeaf())//if n is a leaf, therefore … | |
I am trying to add a coloumn from database into a listbox in VB6. The following code works. The selected item from this listbox is used to find and add records to the ListBox2. Using Oracle 11g Express Edition and Visual Basic 6. Working code: (Displays the artist column from … | |
I have a code foreach(Control grpbox in this.Controls) { if (tb is CheckedListBox) { tb.CheckedItems... } } and I need to use tb.CheckedItems as above...but somehow CheckedItems is not visible there... I can see other things related to "Control" but not related to "checklistbox" how to fix that? | |
![]() | Hey guys, here I am starting my journey into javascript, when this stupid bug is annoying me. Following is my piece of code: <html> <head> <title> Using 'this' in Javascript.</title> </head> <body> <script type="text/javascript"> var name={ firstName:"Foo", lastName:"Bar", showName:function(){ console.log(this.firstName +" "+this.lastName); } }; name.showName(); alert(name.lastName); </script> </body> </html> Problems: … ![]() |
Can you make me a program that does this: Amount of numbers:5 // any number 123 // arrays 343 424 34234 344 // random numbers output mean: //calculates the mean standard deviation: //calculates the standard deviation | |
I have the following code: import java.util.Scanner; public class WhileLoop { public static void main(String[] args) { int number; int maxValue = Integer.MAX_VALUE; int minValue = Integer.MIN_VALUE; Scanner input = new Scanner (System.in); System.out.println("Enter the length of numbers"); int loop = input.nextInt(); for(int i=1; i<=loop; i++){ System.out.println("Enter a number: "); … | |
hello i have a problem with Priority when I set priority of any thread then I get wrong output my code is below class Run implements Runnable{ private String st; public Run(String s){ st=s; } public void run(){ for(int i=1 ; i<=10 ; i++){ System.out.println(st+"="+i); } } } class PriorityCheck{ … | |
When i click hlink in index.jsp , showing null.. and so the output shd be helloworld. i use netbeans 6.9. initservlet.java: public class initservlet extends HttpServlet implements ServletContextListener { public void contextInitialized(ServletContextEvent sce) { ServletContext con=sce.getServletContext(); try{ System.out.println("Hello world"); con.setAttribute("p",con.getInitParameter("print"));// setting context attribute here... }catch(Exception e) { con.log("Error occured",e);}// throw … | |
Dim FrenchMark As Integer = 0 Dim GermanMark As Integer = 0 Dim SpanishMark As Integer = 0 Dim PercentageMark As Integer Private Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click EnterMarks() End Sub Private Sub EnterMarks() Try FrenchMark = InputBox("Please enter a whole number between 1 … | |
Hi expert, Just want ot ask the correct code format for moving message to a new location. MsgBox "Do you want to save?", vbYesNo, 10, 10 Thanks | |
![]() | Hello, I’m trying to bind Dictionary<string, object> parameters with my combo box, but I don’t know how to do that. This is my code: [CODE=C#] Dictionary<string, object> parameters = new Dictionary<string, object>(); parameters.Add("option1",parameters); parameters.Add("option2", parameters); parameters.Add("Option3", parameters); [/CODE] I would like to get option1, option2 and option3 in combobox on … |
All, I'm trying to obtain the values from an external JavaScript using PHP - In my index.php page I'm trying to obtain the value being passed in as such: `<input type="hidden" name="imgSrcOrig" id="imgSrcOrig" value="<?php echo $_REQUEST['remote_sill']; ?>"/>`` However - in the JavaScript I need to pass into the hidden field … | |
Hello, So I basically loaded to 2 keys and I want to verify them after I've signed something with one of them, but I a having difficulties. I am getting verified: false at the end without any error. Can someone please point out the flaw? package fliesigning; import static fliesigning.FlieSigning.verifySig; … | |
Hello. I'm a newby in web development and I wanted to know if you guys knew any good books our websites to go to to learn Jquery for my new website. I've only used some css and a little bit of javascript but I wanted something better. I don't think … | |
Sir I get the following problem in my code that is-- The method getPart(String) is undefined for the type HttpServletRequest my servlet code is: package Servlet; import java.io.IOException; import java.io.InputStream; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import javax.servlet.ServletException; import javax.servlet.annotation.MultipartConfig; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; … | |
Using an array write a program that asks for 10 numbers of type int stores it in an array and traversing each item counting the number of items that are greater than 5. | |
I want to use Python to make something similar to the fc command found in MS-DOS and Windows. How would I handle opening 2+ files and reading them a byte at a time for comparing? | |
Greetings, I need help with basic cloak, which counts how many times will small and big pointer on the cloak cover each other, with first one starting at 12 cloak. I have idea of how to do it, but I can not realize it, so if you guys have some … | |
I'm using the following swap function to swap two elements of an array. The element pointed to by 'x' and 'y' and the one right below it, to be particular (then i want x and y to point to the second of the swapped elements, hence i use auto increment). … | |
Hi guys!, I have a code here having a problem about double and I'm kinda lost so I don't know what to do. btw thanks for reading my thread, I would greatly appreciate if you can help me fix this thing. #include <stdio.h> #include <conio.h> #include <string.h> #include <stdbool.h> #define … | |
Hi guys.. I have a page where I can add values and upload file. Example. I can add name age and upload a pdf file with it. After addingi can view in a table as a row where I can delete or edit the record. The uploaded file gets saved … | |
I redirected to download page (I used window.location() or window.location.href() or replace()), but after download happens it should again come back to same page. I tried using setTimeout, but in vain. Another thing I dont have a chance to write redirect in download.php. Is there any solution for this requirement. … | |
/ I want to debug this code but I can't? How can I debug it in console application using System; using System.Collections.Generic; using System.Text; namespace BucketSort { class BucketSort { public static void Sort(int[] integers) { //Verify input if (integers == null || integers.Length <= 1) return; //Find the maximum … | |
<?php echo "<table border='1' style='border-collapse: collapse;border-color: silver;'>"; echo "<td width='100' align='center'>date in</td><td width='100' align='center'>date out</td> <td width='100' align='center'>model</td> "; echo "</tr>"; include("proses/dbcon.php"); $date_in = $_POST['date_in']; $date_out = $_POST['date_out']; if(isset($submit)) { $sql = "select * from inventory where createdate >= '$date_in' and createdate <= '$date_out' "; } $result= mysql_query($sql); while($row=mysql_fetch_array($result)) { … | |
hello I have an inquiry about reading from a file. so if i have a file and if it opens (meaning it is there) how do i check if there is data? ifstream file("example.txt"); if (file.good()) { //file.open("example.txt"); // is this necessary again???????? i read that the ".good" provide checking … | |
Can you test google analytics even when im just running the website Im doing in localhost? (Mysql)..if so, how should I do it or( give me the link to its tutorial)? | |
good day! I just want to ask if is it possible to have count on dinstint? I have a query below but it produces error in the expression. Im pulling data in MSAccess using ADODB. SQL = "SELECT" & _ " (SELECT COUNT(DISTINCT DateOInvoice) FROM InvoiceMain AS A WHERE (DateOInvoice>=DateValue('" … | |
SO I found a javascript I want to use: <script type="text/javascript"> function FindNext () { var str = document.getElementById ("findInput").value; if (str == "") { alert ("Please enter some text to search!"); return; } if (window.find) { // Firefox, Google Chrome, Safari var found = window.find (str); if (!found) { … | |
I have been working on this for some time now and i cant get it to work, idk if im missing something small which im sure is the case, but the strange part is it works on an older installation of apache, so maybe im using code thats no longer … | |
I did some don't know how to read into the vector, need help on this assignment: Rich Software Inc. has hired you for an internship position to create new payroll software for their employees. Your goal is to create a program that reads the newdata.txt file with their salaries. After … | |
Hi I have tried to implement Linked-List data structure and i was folowing a guide but i have an `error` in line 12 in `contactlist.h` I have included `contact.h` properly but still not working :-/ contact.h #ifndef CONTACT_H #define CONTACT_H #include <iostream> #include <string> #include "contactlist.h" class Contact { private: … | |
Hi there! I have a problem and i want you guys to help me. I have 1 table which has many fields. (mysql and im connected from microsoft visual studio..runs very well so there no problem with this). lets forget the fields that we dont want now.. i have 4 … | |
Hi all; I’m a newbie here and it looks as if I might be able to get a bit of advice on what I think should be a fairly simple project that would actually have some value in my real world if I managed to get it working. I have … | |
Hi how do I use jQuery to show a Jquery mutliselect based on a checkbox option, here is my codes //html <input type="checkbox" value= "checkbox1" name="checkbox1"> <select id="dropdown" name="dropdown" multiple="multiple"> <option id="item"></option> </select> //jQuery $("#checkbox").change(function(){ $('#dropdown').multipleSelect(); | |
Why this question arised?? I have used jquery Tabs in my application. On controller I have opened First tab with employee's names. Clicking on employee name opens another tab by just "add" facility of `$j("#teamtab").tabs("add",<data like ID>)` on opening multiple tabs , if I reload the page then it closes … | |
Hiya guys i have an assignment based on authentication mechanisms as follows. Just want to be pointed in the right direction to get it started. Description: The purpose of this assignment is to exercise your skills in networking infrastructure, authentication mechanisms and the use of role management. Your task in … ![]() | |
Hi, I'm facing some problem while returning string. I want to return final string value and print it. Below is the code that i tried, int main() { int Input = 0; //Tried using tmpstr also //char *tmpStr = NULL; scanf_s("%d", &Input); //Tried as below also but it was crashing … | |
Hi! Few days ago, I had learned C language. It took me almost 8 to 10 months to learn the whole language. Now I wanna want to make real world applications using it. I'm an Ubuntu user or more generally a Linux user. The point to ponder is that I … | |
Greetings Sirs. Can somebody help me with this problem i'm stuck here on this problem for about 4 days no. What i wanted to do is this.. Add a device named "Project C" And Add a Location "000-0001" Add another Location "Jake" First Input: Assign the device to Location "000-0001" … | |
im new in objective c.i have come out with the getter and setter but not sure is correct or not. .h #import <UIKit/UIKit.h> @interface ViewController : UIViewController @property(nonatomic, retain) NSString *myText; @property(nonatomic, copy) NSNumber *opacity; @property(nonatomic, assign) id delegate; @end .m #import "ViewController.h" @interface ViewController () @end @implementation ViewController @synthesize … | |
I have done almost complete html5,css3 and little bit javascript, jquery ,mysql, php...But problem is with me that i also learnt wordpress for making websites,,,,now i want to make a website for myself but can i make a website as i wanted by using wordpress because i know i can … | |
I write this post to ask where I can make bulk purchase of computer science e-books (say, 1000 books on a CD). | |
Hello, I got terrible need :) I have this: $profile_data = file_get_contents("http://tyxo.bg/d/148025/daily"); $sep1 = explode('<table id="general-table">', $profile_data); $set2 = explode("</table>", $sep1[1]); echo $set2[0]; which output this: http://i.imgur.com/2THUUve.png I need to export only this values without anything else: http://i.imgur.com/IQG708Q.png You can test by your self the code i give - he … ![]() | |
Just a quick question. can you activate a browsers ctrl+F functionality using php?Like click the button and ctrl+f activates | |
i continue with problems for use a callback function in a class member :( class Timer { private: typedef std::function<void(void)> timerprocedure; timerprocedure tmrprocedure;//can't be static int MilliSecondsTimer; bool blnDestroyed; UINT TimerId; HANDLE Timer1; static void CALLBACK MyTimerProc( HWND hwnd, UINT message, UINT idTimer, DWORD dwTime) { tmrprocedure();//call the lambda timer … | |
how would i make a program that outputs this: amount of vairiables: 3 3123 1412 2412 mean: 1414 standard viariance: 4344 |
The End.