199,114 Archived Topics
Remove Filter ![]() | |
I have a online photo gallery and when you hover over a image an edit button appears that opens up a jquery prompt box in which you enter the caption after this has been entered i have the following code var caption=prompt("Please enter new caption"," "); if (caption!=null) { var … | |
Hi, all. I have a login form with a checkbox that needs to create cookies if checked. How is it possible to check after the form has been submitted if the checkbox has been checked? I have the following code in 'application/forms/Login.php': $remember = new Zend_Form_Element_Checkbox("remember", array('disableLoadDefaultDecorators' => true, 'required' … | |
Hi i am new to ms access databases, really struggling with my tables relationships my database has more than one many-to-many relationships, for example one instructor can have many classes, one class can have different instructors, one client could have different instuctors, one instructor could have many clients and all … | |
Hi How to get the path of home directory in windows? I have the script that write log.txt in my windows 7 Desktop. How can I change path in python to write log.txt in homedir directory? Is there any way to do it? I tried with those 2 methods But … | |
I code this exercise in c++ with title: "count number of occurrences of a character in a string" who can help me? thanks very much My code in c++: #include "stdafx.h" #include <iostream> using namespace std; unsigned count_check(char str[],char a) { unsigned d=0,lenght=strlen(str); for(int i=0;i<lenght;i++) if(str[i]==a) d++; return d; } … | |
<%@ page import = "java.util.*"%> <%@ page import = "java.lang.*"%> <%@ page import="java.sql.*" %> <%@ page language="java" import="java.sql.*" errorPage="" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> </head> <body> <% String ans=" "; if(request.getParameter("correctAns")!=null) { ans=request.getParameter("correctAns").toString(); } Connection conn = null; … | |
Hello, I am trying to encrypt a String using Symmetric Key Cryptography. When I try to encrypt the string, on runtime it gives me this error: input text: Hello World Exception in thread "main" javax.crypto.IllegalBlockSizeException: data not block size aligned at org.bouncycastle.jcajce.provider.symmetric.util.BaseBlockCipher.engineDoFinal(Unknown Source) at javax.crypto.Cipher.doFinal(DashoA13*..) at SimpleSymmetricExample.main(SimpleSymmetricExample.java:25) I know it … | |
![]() | Hi guys, im currently doing Conway's game of life and i'm almost there. The variable and all is in German since im studying here in Germany but i think one can still understand the code. There's one thing I need help with, which is with the Glider (Gleiter). When i … |
I am using phpmyadmin on my computer and while I tried to update my data, the following happens " Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0 ". I tried to search " php.ini " on my computer, but I can't … | |
plz provide me design n source code in C# with asp.net | |
I have two containers with the type of *A* A<string, double> s1; A<string, bool> s2; So I wrote the *A* class with the necessary functions and I used a template<class T, class E> for it. It has a function that returns a value of *E*, in my case, it returns … | |
I have one tab by default (tab1) New tabs are generated , equal to 'No of rooms'. The dynamically generated tabs have same structure as of the default tab. I don't know the name of textfields of newly generated tabs. How can I find the name of jtexfields generated on … | |
#include<stdio.h> void f(int n) { char pp[n]; printf("%d\n",sizeof(pp)); } int main() { int n; scanf("%d",&n); f(n); } In this program the size of array is defined at runtime,and sizeof operator is printing correct size after runtime initialisation in gcc 4.4. Can anybody explain? we say that sizeof is compile time … | |
I have a strange occurence in a display and I'm wondering if it could have something to do with the formation of the query I have a table that contains shopping cart line items (called dealer_item), stored as the dealer adds them to the cart. This table currently holds 2 … ![]() | |
Hi All. I am new to C++, infact I started watching tutorials just about an hour ago. But, I had some experiece of Javascript, PHP, so It is fine. Now, my question is that, I am untimately, learning C++ to be able to manipulate a .wav files, just to write … | |
CodeIgniter error logging set to 1: /* |-------------------------------------------------------------------------- | Error Logging Threshold |-------------------------------------------------------------------------- | | If you have enabled error logging, you can set an error threshold to | determine what gets logged. Threshold options are: | You can enable error logging by setting a threshold over zero. The | … | |
Hi, I work in PHP language for the past 2.5 yrs. I'm interested in making a career shift from PHP to Java/EE. So, I would like to start contributing to some open source software developed using Java EE, Spring, Hibernate. By that way I would like to develop my skills … | |
I need help on a program I am currently creating as I am trying to use a foreach statement on a DataGridView & loop through the rows & cells. I have tried the dataview but this doesn’t seem to have the properties to count through cells. I have therefore tried … | |
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { sqlcon.Open(); sqlcmd = new SqlCommand("select * from category" , sqlcon); da = new SqlDataAdapter(sqlcmd); da.Fill(dt); if (dt.Rows.Count > 0) { TextBox4.Text = dt.Rows[0][7].ToString(); TextBox2.Text = dt.Rows[0][8].ToString(); TextBox3.Text = dt.Rows[0][9].ToString(); } sqlcon.Close(); } } protected void Button1_Click(object sender, EventArgs e) { … | |
Hello everybody. Lately, I'm having a problem with PyDev which is driving me crazy: It is failing to connect to the Python console, therefore, many built-ins appear as errors (None, __name__, the os modules, etc.). I have tried downgrading PyDev, I have tried disabling IPv6, I have tried disabling my … | |
My program is a math game which consists of different levels and different math operations. I'm not completely finished yet but I would like to know if there is a way to put the code for each of the four operators into their own method, and just have the main … | |
Hi, my app that I am making is not working. Here is the code: package com.awsomechat; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; import org.apache.http.HttpEntity; import org.apache.http.HttpResponse; import org.apache.http.NameValuePair; import org.apache.http.client.HttpClient; import org.apache.http.client.entity.UrlEncodedFormEntity; import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.DefaultHttpClient; import org.apache.http.message.BasicNameValuePair; import org.json.JSONObject; import android.os.Bundle; import android.app.Activity; import android.content.SharedPreferences; … | |
Hey, I hope all is good in your World, and thank you for reading this. I am having a couple of issues with a bit of script, I struggling to see what is wrong. The script in question is: function date_diff($str_start, $str_end) { $defdate = $str_start ; $str_start = strtotime($str_start) … | |
Hi, I have imported a csv file but for some reason in some values the data after . is missing for e.g. If my value in csv is 0.5 it displays 0. and 5 went missing but in my csv file i have value as 0.5 I don't what step … | |
I tried to install python on xp, however pythonw.exe would not initialize. I think there is a registry setting conflict with either, lua or mediamall (which uses lua heavily). Possibly, it could be another issue. It also makes me wonder if Python could be a security risk. I have always … | |
I need help writing in IPO Chart and pseudocode for an assignment asking to "Write a program that prompts the user to input a positive integer. He should then output a message indicating whether the number is a prime number." This is what I came up with for the IPO … | |
![]() | Hi all I've been editing some code I found on here from a while back and am up to trying to print out the data I store in an array. I've been trying for a bit and just don't understand it very well. Could someone give me a hand :) … |
i have a problem in logic of swapping in java. That is how to swap no. of buttons with mouse click i am not getting the proper code for that..,please, can anybody there 2 help me out..! thnks | |
I wanna write a C++ program using arrays to construct a table which allows me to input the names and marks of 4 subjects of 40 students.Pls someone help me...... | |
Hi All, I am interested in developing a desktop application which takes a mobile number as an input and able to find out the current exact location where the device is. I am java developer and having little idea in Android. Note : No specific tracking apps are installed in … | |
Hello Friends... How are you all ??? I need your help... I want to learn PHP so will you please tell me the best book to learn PHP from the beginning... Thank you in advance.. :) ![]() | |
I have tried many different scripts I have found but cannot find one that does exactly what I am looking for. I have a table that has parts with multiple characteristics. Part Number, Height, Width, Capacity, Price, Etc. I would like to have a drop downs for all of these … | |
<html> <head> <script type="text/javascript" src="js/jquery-1.4.3.min.js"></script> <script>$('.countryclassinfolink').click(function(event) { event.preventDefault(); var detailinfo = $(this).parent().next().html(); $('#country_details').html(detailinfo); $('.countryclassinfolink2').click(function(event) { event.preventDefault(); $('#country_details').html(''); $('#country_details').hide(); $('#country_seminars').fadeIn(); }); $('#country_seminars').hide(); $('#country_details').fadeIn(); }); </script> </head><body> <div class="section seminars"> <h2><span>USA Seminars</span></h2> <div id="country_seminars" class="body"> <table> <tbody> <tr> <td class="practioners"><p> <span class="date">06/10/2013</span> Niskayuna, NY<br> <a class="countryclassinfolink" href="#">Advanced DNA</a> </p> <div style="display:none;" id="classdetails26436"> … | |
Here is a code snippet that calculates the probability of the outcome of a two sided game based on the capability of each side. I used it in my football league simulator program Could be used in any number of simulators which involve two parties. For equally strong parties, the … | |
Hey there, I am getting used to Java, but here is something that is stumping me: // Fig. 3.10: GradeBook.java // GradeBook class with a constructor to initialize the course name. public class GradeBook { private String courseName; // course name for this GradeBook // constructor initializes courseName with String … | |
I have the following simple table: CustomerID CustomerName NumOfOrders 1 Joe 15 2 Jane 20 7 Clara 1 I want to find the customer with maximum number of orders. Seems trivial enough but I can,t seem to find a solution. | |
How can i use voice inputing in php or HTML for all browser? i have used HTML 5 Speech Input,but it only supports Google Chrome browser.i want this functinality for all browse.is any one have solution for this? | |
Hello all, I have defined 3 classes with their attributes including their unique ID. The relationship between these objcts are hirarchical. For example, I have school, class, and students. At the begining of the simulation I create the school and number of classes and put students in the classes and … | |
$header = "From: $From_Email\n"; $header .= "MIME-Version: 1.0\n"; $header .= "Content-Type: multipart/mixed; "; $header .= "boundary=$num\n"; $header .= "--$num\n"; # Define the message section $header .= "Content-Type: text/html\n"; $header .= "Content-Transfer-Encoding:8bit\n\n"; $header .= "$strMail\n"; $header .= "--$num\n"; # Define the attachment section $header .= "Content-Type: image/jpg; "; $header .= "name=\"Photo.jpg\"\n"; … | |
Can someone please help me with why this button is not working, I've tried putting it in <for id="" runat="server">, but then I get the error: A page can have only one server-side Form tag. When the button is clicked nothing happens. [code] <%@ Page Language="C#" MasterPageFile="~/train.master" AutoEventWireup="true" validateRequest="false" CodeFile="TrainStationTutorial.aspx.cs" … | |
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Data.Sql; using System.Data.SqlClient; using System.Data; using System.Web.UI.WebControls; public partial class Buyer_BuyerCreateUserWizard : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void btn_CreatingUserAccount_Click(object sender, EventArgs e) { InsertInfo(); } private void InsertInfo() { SqlConnection conn = new … | |
Hi all, I want to share one link to tumblr and also i want to calculte the number of views, likes, posts, shares, followers. How i need to get this all give me any reference or possible ways tel to me. | |
When testing a CAPTCHA, is it recommended to test that the IP address used to request the CAPTCHA is the same as that used to answer the CAPTCHA?? Is it a concern for people that have dynamic IP addresses that potentially could change pageview-to-pageview? ![]() | |
hi guys am a kenyan and i just got started learning the c++. its awesome. i have a question i wuld like to ask for answers soon. help me in making a program that will allow the computer to choose any number between one and a hundred then the user … | |
i need free online training on php, or any available book that can help anybody can help | |
In the conversion process of a java to c# project, i have come to java's ***indexOf()*** function in ***string.java*** class, which takes in two integers (int ch, int fromIndex) and return some integer value for a char (i'm guessing its an ASCII value). I need to know if there is … | |
i am working on a room locator program, the feature includes the room location and the path that the searchee can take to locate the room. is there a way to move a control in a vb application just like what we see in flash applications? thanks for the ideas … | |
Group, I've found code that will format a number found in a TextBox to display it with two decimal places. It looks like this: Private Sub txbStateTaxPcnt_Leave(sender As System.Object, e As System.EventArgs) Handles txbStateTaxPcnt.Leave stateSlsTax = Convert.ToInt32(txbStateTaxPcnt.Text) txbStateTaxPcnt.Text = stateSlsTax.ToString("n2") End Sub This works great when a whole number is … | |
i want an output and i have tried but can't get this... #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main(int argc, char *argv[]) { int r,c,s; for(s=15,r=6;r>=1;r--,s++) { cout<<setw(s); for(c=1;c<=r;c++) cout<<"X"<<endl; } system("PAUSE"); return EXIT_SUCCESS; } OUTPUT: X X X X X X X X X X … | |
The End.