64,152 Solved Topics
Remove Filter ![]() | |
I'm trying to represent my data using a bar graph, the data being displayed is goodVotes, neutralVotes and badVotes on the x-axis for each of my pieces of data (records in an sqlite3 database). I wish the "bookName" of each record to be displayed on the x axis of the … | |
I am getting output as json string with the following code. But I require it as JSON dict without leading and trailing quotes. How can I do that? It seems to work if I uncomment line4 but not with raw input. def main(args): f = open(args[1], 'w') inp = raw_input("Enter … | |
I'm new to this topic..!! Please help me out.. I have learned about Visual Basic during my High school but now there is a new topic which i'm interested & that is VB.net..!! Could you please tell me that is there any difference between them or are these two languages … | |
Hi All, I have been using a latest version of wamp daily for the last month on this PC and suddenly over the weekend it has stopped working. I have tried the following: I have restarted all services a number of times. Restored back to earlier point on Friday when … | |
I am trying to add the History page in my application which will work like as i shown below: 1st Column: (Date); 2nd column: (Login Time); 3rd Column: (Logout Time) I added the following code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load … | |
Am new to python and i need help dealing so i would go ahead and post the question and my little solution so far. **Question:** a Procedure which takes four parameters as follows; Dictionary File- the file name of a text file containing four letter words Start Word- a four … | |
i want to show the favorite news base on calculation coment in comment table.. so ? what should i do? | |
int menu(c){ int choose; do{ printf("*MENU\n"); printf("*Press 2 to move down\n"); printf("*Press 4 to move left\n"); printf("*Press 6 to move right\n"); printf("*Press 8 to move up\n"); printf("*Press 5 to switch\n"); printf("*Press 0 to quit\n"); printf("Please enter your choose: "); scanf("%i",&choose); if(choose==2){ }else if(choose==4){ }else if(choose==6){ }else if(choose==8){ }else if(choose==5){ }else … | |
I have 5 select tags in a page (user can select number max 10 only). I want to fill this select boxes with dynamic data. I wrote a function for this. This function called on a radio button clicked. Data send to a PHP page and return back result to … | |
#include <iostream> #include <conio.h> using namespace std; void TOH(int d, char tower1, char tower2, char tower3) { if(d==1) //base case { cout<<"\nShift top disk from tower"<<tower1<<"to tower"<<tower2; return; } TOH(d-1,tower1,tower3,tower2); //recursive function call cout<<"\nShift top disk from tower"<<tower1<<"to tower"<<tower2; TOH(d-1,tower3,tower2,tower1); //recursive function call } int main() { int disk; cout<<"Enter … | |
Hi everyone I'd like to know how I can fill a matrix [n] [m] from a vector of size n * m Thank you very much every one | |
Hello All, Is there any way to add a text file while creating an executable jar file in eclipse? Regards | |
I would like to make clearly that i do not ask somebody to write the code for me. This is useless for me and also annoying for you: I have to do the following task. Create a Java Frame for some functions in my java project. So here is the … | |
I am in introduction to c++ and I have a homework problem that I am trying to do. The problem states display the average high temperature and average low temperature. The program should also display the highest temperature stored in the first column in the array and the lowest temperature … | |
Hello, I am following this tutorial: http://www.codefactorycr.com/login-with-codeigniter-php.html It works when I copy it exactly as it is. Now, I only wonder why eventhough I try to imitate it and modify it a little bit to match my system, I wonder why it still does not work ? views/admin/login_view.php <!DOCTYPE html … | |
I have to validate a textbox having postal code.The postal code can be two formats as possible xxxxxxxxx or xxxxx-xxxx. My question is can I use two javascript regex for validating a textbox? | |
so i have 2 lists i need to compare $list = array("Apple", "Orange", "Lemon", "Candy"); and $db = $r_bio['other']; $db2 = explode(":", $db); i want to compare the two and if i find the same i want to echo a checked checkbox if not an unchecked checkbox if($db2 == $list) … | |
Need help understanding this error, and how to eliminate it. Using Python 3.3. I'm trying to define a function that takes two arguments and then constructs the proper arguments for a call to the ftblib.storbinary method. Here's my code: from ftplib import FTP_TLS ftps = FTP_TLS('xxxxxx', user='xxxx', passwd='xxxx') ftps.prot_p() ftps.set_pasv(False) … | |
Ok, before everyone gets mad at me for not looking around the board for these topics, I have, but they weren't my problem. My problem I am having is calling the Polynomial class. I know how to call classes in a different class, but this is a bit different. I … | |
Hi! Can anyone know the result of this query: SELECT COALESCE(MAX(ID),0) + 1 FROM Table123 | |
Target is null or not an object how to fix ie browser. It works good in firefox. Please help how to fix the challenging script error. | |
Hi I need better way to my checkboxes in form.php here is code <h3>Which programming languages should you learn first?</h3> HTML <input type="checkbox" name="cb_html" value="HTML"><br> PHP <input type="checkbox" name="cb_php" value="PHP"><br> Perl <input type="checkbox" name="cb_perl" value="Perl"><br> Python <input type="checkbox" name="cb_python" value="Python"><br> And my form.php code is #checkboxes if (isset($_POST["cb_html"])) { echo … | |
i have a file that list all the names and destinations to move the file. so for example a file that looks like this def.txt /names/new/ person.obj /media/people/ panel.jpg /random/pictures/ so as you can see here there are three files that need to be moved in a specific destination. How … | |
I'm writing a script to automatically up load a file from Server A to FTP server B. I'm getting stuck at the connecting part. I can connect with a python script using regular FTP, and have done so, but when trying to implement a SSL connection, I keep getting a … | |
Hi all, I have a hidden division that is supposed to appear when the button, as shown below, is clicked by the user. The division is hidden on page load, and does actually appear when the button is clicked, but nothing happens on the first click. To clarify, you have … | |
Hi all, just wondering if someone could help me out with a small loop question. If I had an input field in a GUI which writes to variable "counter" (a numerical value), how would I be able to use this value to control the amount of times a loop is … | |
Hi How can I pass value of my radio buttons to my form.php code? I will be very thankfull for your answer. <form action="form1.php" method="post"> First name: <input type="text" name="fname"><br><br> Last name: <input type="text" name="lname"><br><br> <h3>What is the best programming language to learn for hacking</h3> Python <input type="radio" name="rb_python" value="Python"><br> … | |
 public static void Print(string ElementID, string SecondElementID) { Page page = HttpContext.Current.CurrentHandler as Page; StringBuilder sb = new StringBuilder(); sb.Append("<script type = 'text/javascript'>"); sb.Append("var divID_1 = document.getElementById('" + ElementID + "');"); sb.Append("var divID_2 = document.getElementById('" + SecondElementID + "');"); sb.Append("divID_1.border = 0;"); sb.Append("divID_2.border = 0;"); sb.Append("var prtwin = … | |
So i have a table and a calculate button. the calculate button is responsible to selecting data from specific tables and then the selected data will be displayed and added together along with the calculation. but something is wrong with the process because it is not calculating correctly. table & … | |
My form has a 'save' button and 'select from previous month' button. what 'save' button does is insert all the values into my database. save button code: if(isset($_POST['jansave'])) { $basic = $_POST['basic']; $allowance = $_POST['allowance']; if($basic&&$allowance) { require "connect.php"; $total=($basic + $allowance); $query=("INSERT INTO january (basic,allowance) VALUES ('$basic','$allowance')"); $janresult=mysql_query($query); } … | |
hey guys, so im trying to display data from my database into a table but i got this error : Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\CashFlow\balance_report.php on line 45 code: <?php require "connect.php"; if($_SESSION['name']) { $name = $_SESSION['name']; $query=("SELECT * FROM asset WHERE name … | |
I'm playing around on how to get last name in the string. Below is my current code and it is working. I want to know if there is another way to do it. strMsg = "John Doe" length = Len(strMsg) For i = 0 To length char = Right(strMsg, i … | |
for example I don't know what this is called » `[('cat', 'meow'), ('dog', 'ruff')]` if I try `for l in [('cat', 'meow'), ('dog', 'ruff')]: print l` I am using l for lady luck lucy not I for I or the number 1 + maybe even | pipe for smoking it … | |
hi I am trying to save multiple images into one ID and I am getting no where ...I am posting the code so for storing and retrieving image (one image)...but need to store more than one ....need some help here ... using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using … | |
Hi Everyone, I need help with my assignment but i only require assistance to give me some guidance on the issue. I need to write code in c linux programming, that can change directory [CD]. when you open the command prompt in the linux machine, you type cd .. or … | |
Hi can i run a program on windows compiled under ubuntu... simply..the program was wrotten on c++ under ubuntu os thanks ![]() | |
Hi, Im having a hard time figuring this maybe a simple query. This is my first time to use sql compact edition. How can I query a select statement inside a select statement which tables are not related at all. What i need to accomplish is to insert a logo … | |
I remember doing a class to handle rational numbers in one of my classes way back when. I decided to do it again. What I'm having trouble understanding right now is why do I even create a class when my overloaded functions are all friend functions? As I understand it, … | |
Hi Everyone, Thank you for the time you spend to look at the post. I am required to retrieve report based on a date field in the table. the date field filtering must be from the previous month of the 6th till this month of the 5th. For example, today … | |
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 … | |
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 … | |
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 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 … | |
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 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 … |
The End.