199,114 Archived Topics
Remove Filter ![]() | |
I am using variables for my numbers. I require the smallest number and so I use `min()` to achieve that but if I have multiple values it will only take them in chronological order. var a = 98 ; var b = 82 ; var c = 61 ; var … | |
Hi, What is the default value of float and double datatype in Java? Its my interview question anyone know the correct answer? anyone.. | |
Hi All, I am trying to scrape a piece of HTML similar to the below where I want beautiful soup to return something like: List Price, £28,410 Body Style, Open Car etc etc. I thought if I did this: soup = BeautifulSoup(html_doc) tag = soup.find_all('tr') tag_td = tag[0].find('td') tag_b = … | |
i have created a page which has a table that enables user to delete a record via a delete button but somehow the queary isnt working. php coding <?php include("dbase.php"); $idURL = $_GET['id']; // Connect to database server mysql_connect("localhost", "root", "") or die (mysql_error ()); // Select database mysql_select_db("studiobooking") or … ![]() | |
Trying to return Multiple Card objects from a hashmap Currently using the following code private HashMAp<Integer,Card> allCards = new HashMap<Integer,Card>(); public Card getAllCards() { Collection col = allCards.values(); for(Card c: col) { return c; } } This works but only returns 1 Card object from many. How can I change … | |
Hello all, So here is my problem: I have 2 functions that one uses the other's calculations and result: int functionA(int a, int b) { int x = a+b; return x; } int functionB(int a, int b, int c) { int xx = x(a,b); int f = xx * c; … | |
I have six number sets. Each have two digit number which range between 01 to 49. How to create all possible combinations? And how to calculate total number of possible combinations? e.g 1. Number set:- **A B C D E F** 2. Lower Limit:- **01 01 01 01 01 01** … ![]() | |
hey guys, so im trying to auto calculate two textfields. like for example i have textfield A and textfield B and also a <span> tag. the span tag is default zero. when user inputs A as 5 the <span> tag becomes 5. then when user inputs B as 2, A … | |
I have been asked to count the overal time of an album. The user enters minutes and seconds in the formmat of mm.ss. I have wrote the folowing code but I don't get the result I supposed to get. I.E : 1st:3.55, 2nd 3.55 I got 7.1 instead of 7.50. … | |
The company I am working for is trying to rebuild a simple program that views and/or modifies tables using sql. We want this to be a web app. We already have a working desktop app built in Visual Basic 6. Now we are copying the code over to Xojo. The … | |
Hello guys, i already have my databases and scripts working, and i was implementing a small webserver under windows 7 with xampp. But after configuring all needed in apache, i can see the pages in the server but non of the clients can see the pages. No error is displayed, … | |
hi need a very big help..and im a newbie in this field im keep getting the same error "Parse error: syntax error, unexpected 'button' (T_STRING), expecting ',' or ';' " here the code : <!--FORM--> <form method="POST" action="BookingnDisplay_Process.php"><!--link to DB--> <br> <h1><center>TALENT STUDIO Booking form</center></h1> <u><strong>Please read carefully.</strong></u></p> <p><strong>1. If … | |
i want to create a comment box like this website for my forum can any one help me to solv tis code thnx.. | |
Hello, I have read numerous forums on this issue and is seems each case/resolution is specific to the persons file. I have the same error, but can't find where it is coming from. This is from a wordpress site I did not create - this just appeared out of nowhere … | |
I am new to using datagridviews and wanted to know how to populate certain fields. I have created a form and added a datagridview (named GridSellProducts) with Visual Studio designer and added 8 columns with the first named Item. I have also changed the column type for Item to DataGridViewComboBoxColumn … | |
I am new to programming and I am having a problem grasping the concept of looping an array. How do I go about doing this? | |
Hello guys, now that i have all my scripts up and running i need some help configuring virtualhosts on Apache/Xampp/Win7 The Httpd-vhosts.conf like this: <VirtualHost *:80> ServerAdmin joao.dias@centralcervejas.pt DocumentRoot "C:/xampp/htdocs" ServerName kadar ServerAlias www.kadar <Directory "C:/xampp/htdocs/" > Options Indexes FollowSymLinks ExecCGI Includes Order allow,deny Allow from all </Directory> </VirtualHost> The … | |
I wrote a few applications using Visual Studio 2010 and i was saving them in different folders but all of them are saved on my desktop and now i want to combine them and i'm failing..please can you help me or give me instructions on how to do it. Thank … | |
Table1 ID Name City ContactNo GK12-350 - Peter - Munich - 8997557906 EG24-812 - Colling - London - 8726 6000 RU38-915 - Brezhnev - Moscow - 4958721273 Table2 ID OderFrom OrderDate AprovedBy EG24-812 - City Saloon - 23-03-2012 - Thomas RU38-915 - General Merchants - 01-07-2011 - Rumpe EG24-812 - … | |
I have a query that starts like this... SELECT COUNT(A.FISH), COUNT(B.MEAT), COUNT(C.FRUIT).... now my problem is this, how could I count when I need to consider an expiration date for each column,...and the expiration dates varies for each column... Can I do this in one query? Or is there any … | |
I have this problem, I have a SQL code working perfectly on SQL Query windows... SELECT ID_no, nom_navire, date_mes, date_sav, description, nom_fourn, no_facture, date_facture, accept, decline FROM DB_FACTURE WHERE( ID_no = 39) Answer perfect On my code Is ... SELECT devise FROM FOURNISSEURS WHERE nom_fourn = '" + Nom_FournPass + … | |
Hello, I wanted to ask. If I define `typedef float mymat3[3];` and then I have a function: void myfunc(float *One_mat_, .... and inside function I do: mymat3 * One_mat=(mymat3 *)One_mat_; while(i<numPoints) { One_mat[i][0] = (One_mat_[++c1]); Does this mean , that I am copying One_mat_ (which I am casting it as … | |
Hi every boddy Big problem here. I don't know if from access or vb.net I program in Visual Basic inside Visual Studio 2010 I have Access 2002 dbase with the first field caled ID_no : autonumber and primarykey and it is a "LONG INTEGER" I can not change because it … | |
Sir, I have following codes <?php $country=""; $capital=""; if (isset($_POST['submit'])) { $country=$_POST['text1']; $capital=$_POST['text2']; echo '<script type="text/javascript">alert("The capital of " .$country. "is " . $capital)</script>'; } if (isset($_POST['clear'])) { $country=""; $capital=""; } ?> <html> <head><title>Result on same page</title> </head> <body> <center> <form name="form1" action="same_browser.php" method="post"> Country<input type="text" name="text1" value="<?php echo $country;?>"><br> … | |
Hi htaccess is not working in godaddy hosting. but it is working in other servers. Please help me to solve this. Thank you | |
hi, i want permutation for all alphabets with word length is 8.but i get only permutation for 4.pls help me to debug this issue code: <?PHP FUNCTION permutations($letters,$num){ $last = STR_REPEAT($letters{0},$num); $result = ARRAY(); WHILE($last != STR_REPEAT(lastchar($letters),$num)){ echo "$last"; $result[] = $last; $last = char_add($letters,$last,$num-1); } $result[] = $last; RETURN … | |
I'm curious.. is it possible to extend the context of the word "monstrous" in concordance so we have: >>> text1.concordance("monstrous") Building index... Displaying 11 of 11 matches: ong the former , one was of a most monstrous size . ... This came towards us , ON OF THE PSALMS . … | |
I can't figure out how to add a loop to allow the user only three attempts to enter in a valid password. Any hlp would be appreciated it . #include <iostream> // cin and cout #include <cstring> // for string #include <conio.h> // for getch #include <cctype> // conversion using … | |
I'm working on a insert form for my movie database and I have some code working and will be adding more to it, but I wanted to know if there was a better way to go about doing some of this or if I have made a huge coding error. … ![]() | |
Hello All, i want to embed a vimeo video on my site. how can i do it? any code or reference links will be appreciated.. thanks, kk | |
Hello I want to solve it randomly reads the lines. I found a source code, but it will crash the program. This is source code: DWORD cFindEvent::GetRandomPosition() { //--------------------------------------------------------------------------------------- FILE * garew = fopen (MobCoords,"r"); //--------------------------------------------------------------------------------------- char temp[1024]; int i = 0; int j = 0; int licz = rand() … | |
creating a simple news feed just like facebook is not the problem but instead of posting text i want users to post videos and audios also so other users can watch the videos and play the audio files | |
Hello, I am very new C#. I am trying to log into [url]http://mls.momls.com/SERetsMonmouth/Login.aspx[/url] with the following code and I am getting a 401 error. My user name and password are correct. I can manually log in through the browser. But I am not sure about the code I wrote. It … | |
We only talk about DTD and XML in class for 2 days and i have this assignment not sure if im doing it right or did everything that has been asked. Atleast i try, any help will be appreciated!! Assignment You have been asked to represent airport data where an … | |
hi, i want to display output line by line using jquery.i tried many times but it not works..pls help me.. Html Code: <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function(){ $('#sub').click(function(){ $('#msg').html("<center><img src='http://46.16.168.75/saranya/images/9%20(1).gif' alt='LOADING...' width='20' height='20'/>Loading........</center>"); $.ajax({ type: "POST", url: "ping1.php", data: $("#form1").serialize(), success: function(data) { $('#msg').html(data); alert(data); } }); return false; … | |
![]() | I'm trying to use sessionStorage to pass information from a merchandise page to shopping cart page, which displays what items were purchased, how many items were purchased, cost of item, cost of subtotal, cost of total before taxes, the tax amount and after taxes. It displays the monetary value of … |
![]() | I have a simple Windows Forms Application that I published to a network share and manually installed on a handful of users computers from the network share. I had to make a change to the software and had to manually uninstall and reinstall the new version of the form on … |
Hello, I was just wondering if it is possible to create a data struct in assembly 8086. For example, creating a struct that holds a student's name and ID number. | |
I'm trying to modify a Bibblesort code I'm writing that will count the number of instances and print out a seperate line for each instance and how many occurances it had. def BubbleSortList(MyList): ComparisonCounter = 0 for j in range ( len(MyList)): for i in range ( len(MyList)-1-j ): if … | |
My code is not reading my data file well. The code is supposed to read fractions from decending order, but it does not work half way through. please help! #include <iostream> #include <fstream> using namespace std; void read_data(int nums[],int den[],int size); void clean(int Cnum[],int nums[],int den[],int Cden[],int size); void low(int … | |
i wanna ahelp please hospital project i have made aclass room composed of 4(class bed) i wana to initalization all rooms ids and all beds id once time not every time i run the programmme example room 1 ---->bed1,bed2,bed3 // bed class <<--- class bed{ int id; bool empty; public: … | |
using (StreamReader readFile = new StreamReader(filepath)) { string line; while ((line = readFile.ReadLine()) != null) { textBox1.Text = textBox1.Text + line + Environment.NewLine; } } This is what I have so far. I have tried using .Split to try to seperate them but do not know much about it. So … | |
Hi anyone here know some good companies that can help with developing my program | |
I am trying to calculate the overall time of an album. The user enters the track length (double) in format mm.ss . Then convert this in a String so I can calculate min and sec separately. public void overallRunningTime() { int min = 0; int sec = 0; for(int i … | |
Hi everyone! I have in my GUI and two radio button **choco** and **gecode** and under each button (choco or gecode)I have 2 radio buttons *solution optimal* and *Feasible solution*: my problem lies in the selection buttons. Let me explain: when I click the radio button **choco**, I … | |
I'm changing some things around on my webapp and one of the major changes is assets are now stored in S3 (via filepicker.io) rather than locally. Here is some code I have to generate a zip file from an array of files //example values //loc could be uploads/1/7878837474test.jpg //name coule … | |
//write void write() { setlocale(LC_ALL, "en_US.UTF-8"); cout <<""; } template <typename A, typename ...B> void write(string argHead, B... argTail) { setlocale(LC_ALL, "en_US.UTF-8"); if (blnBlink==true) { CONSOLE_SCREEN_BUFFER_INFO csbi; GetConsoleScreenBufferInfo(GetStdHandle(STD_OUTPUT_HANDLE), &csbi); string a; a=argHead; TextBlink(a, csbi.dwCursorPosition.X, csbi.dwCursorPosition.Y,csbi.wAttributes); COORD Position; Position.X=csbi.dwCursorPosition.X+strlen(a.c_str()); Position.Y=csbi.dwCursorPosition.Y; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),Position); } else cout << argHead; write(argTail...); } template <typename A, … | |
Hi, I'm trying to teach myself the Python language with the Google Python class ([url]http://code.google.com/edu/languages/google-python-class/set-up.html[/url]). With the exercise 'wordcount' I get a Traceback error (with the main function and sys.exit(1) function). Even with the solution script (as displayed here). Does anyone recognize this problem and can some one tell me … | |
am doing my project phase 1 its about hospital : i have made a person class--patient inherite from it i wanna afunction to----add,alter,delete patient---------------- in text file the output 1--> add patient 2-->alter patient data 3-->delete a patient class person{ int id; string fname; string lname; string gender; int age; … | |
protected void Page_Load(object sender, EventArgs e) { if (CookieWrapper.Username != null && CookieWrapper.Role == "Member") { hlUsername.Text = CookieWrapper.Username; showProfilePicture(); } else Response.Redirect("~/ErrorPages/401.aspx"); } In this master page Page_Load event i will check whether the cookies values, if false will redirect to the error page. So another words, my child … |
The End.