199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nats01282

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 …

Member Avatar for nats01282
0
238
Member Avatar for eburlea

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' …

Member Avatar for eburlea
0
211
Member Avatar for trexsteve

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 …

Member Avatar for trexsteve
0
147
Member Avatar for tony75

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 …

Member Avatar for tony75
0
7K
Member Avatar for fenri90

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; } …

Member Avatar for Schol-R-LEA
0
851
Member Avatar for legendaddybok

<%@ 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; …

Member Avatar for legendaddybok
0
200
Member Avatar for godzab

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 …

Member Avatar for JamesCherrill
0
3K
Member Avatar for Jenniferting

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 …

Member Avatar for sepp2k
0
253
Member Avatar for jeffadrian

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 …

Member Avatar for jeffadrian
0
11K
Member Avatar for me.sapna
Member Avatar for sparkthesunoff

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 …

Member Avatar for sepp2k
0
303
Member Avatar for wolwayne

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 …

Member Avatar for mKorbel
0
425
Member Avatar for nitin1

#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 …

Member Avatar for sepp2k
0
189
Member Avatar for showman13

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 …

Member Avatar for iamthwee
0
131
Member Avatar for Clanstrom

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 …

Member Avatar for vijayan121
0
4K
Member Avatar for Dani

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 | …

Member Avatar for veedeoo
0
507
Member Avatar for ronaldpaul

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 …

Member Avatar for rubberman
0
312
Member Avatar for markyjj

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 …

Member Avatar for markyjj
0
205
Member Avatar for Timaa

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) { …

Member Avatar for lolafuertes
0
147
Member Avatar for G_S

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 …

Member Avatar for G_S
0
307
Member Avatar for incxx

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 …

Member Avatar for JamesCherrill
0
211
Member Avatar for Djmann1013

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; …

Member Avatar for peter_budo
0
319
Member Avatar for squeak24

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) …

Member Avatar for squeak24
0
606
Member Avatar for code_rum

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 …

Member Avatar for code_rum
0
312
Member Avatar for degarb

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 …

Member Avatar for bumsfeld
0
256
Member Avatar for LaRosa

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 …

Member Avatar for rubberman
0
933
Member Avatar for ChargrO

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 :) …

Member Avatar for tinstaafl
0
215
Member Avatar for manpreetchaney

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

Member Avatar for manpreetchaney
0
178
Member Avatar for Hanshinie

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......

Member Avatar for phorce
0
63
Member Avatar for Kumar9885035454

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 …

Member Avatar for kevinvwallace
0
76
Member Avatar for Aadhya169

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.. :)

Member Avatar for diafol
0
223
Member Avatar for rook0316

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 …

Member Avatar for pankaj12290
0
8K
Member Avatar for vishal.du123

<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"> …

Member Avatar for radhakrishna.p
0
173
Member Avatar for m_ishwar

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 …

0
395
Member Avatar for vivosmith

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 …

Member Avatar for stultuske
0
247
Member Avatar for sathish_nadu

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.

Member Avatar for pritaeas
0
114
Member Avatar for shweta.trivedi

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?

Member Avatar for shweta.trivedi
0
162
Member Avatar for Afi83

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 …

Member Avatar for JamesCherrill
0
148
Member Avatar for knutsford-soft

$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"; …

Member Avatar for knutsford-soft
0
173
Member Avatar for jellybeannn

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" …

Member Avatar for Hamza Bukhari
0
2K
Member Avatar for farhan mallick

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 …

Member Avatar for Momerath
0
106
Member Avatar for winbala5

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.

Member Avatar for winbala5
0
228
Member Avatar for Dani

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?

Member Avatar for LastMitch
0
105
Member Avatar for gmwass

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 …

Member Avatar for tinstaafl
0
150
Member Avatar for Nathyjoy

i need free online training on php, or any available book that can help anybody can help

Member Avatar for jalpesh_007
0
293
Member Avatar for mesbahuk

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 …

Member Avatar for mesbahuk
0
665
Member Avatar for kazekagerandy

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 …

Member Avatar for Eternal Newbie
0
301
Member Avatar for Papa_Don

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 …

Member Avatar for nashy13
0
12K
Member Avatar for mr.unknown

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 …

Member Avatar for rubberman
0
415
Member Avatar for simbarashe.tandi

I need to knw hw I can make a gui for aa prograaaam written in C++ ,m using the codeblocks IDE

Member Avatar for rubberman
0
98

The End.