199,114 Archived Topics
Remove Filter ![]() | |
Hello I have a code and on page load it gets clicked, I see by alert for example. The problem is it send not needed ajax request. Its hard to find origin clicker by hand. Is there a way programically detetc who clicked the class? //Delete all event from betting … | |
Hey guys, I have a midterm coming up and I am confused on this one question. Any help would be greatly appreciated. Two processes (P0, P1) are running at the same time. We want to preserve the critical section with two semaphores (S, Q) with initial value 1. P1 P2 … | |
Hi all. I've taken a long break from my C++ studies but I'm now being shoved into finding an internship for school so I figured I'd play around and brush up on my coding. I've written this simple tabata countdown timer and I would like opinions on how it could … | |
Hi everyone, i want to set input verifier for a jspinner when the user click a value and if the value is out of range (0 to 10) it must display a message like "Please enter a value between 0 to 10" and it must validate until the correct value … | |
hi I need some help in the subject of compiler.Please suggest me some links to develop a compiler using lex and yacc.The input should be a simple C or C++ program and the output should be all the 7 stages of the complier(lexical analysis,synatx analysis,sementic analysis,intermediate code generation,machine independent code … | |
Hello, I am going to build a program using one data structure, I am trying to figure out what are the advantages of using a sorted array over using a hashtable with chaining? Thanks | |
Hi , I have a form having some text fileds and submit button. One more input box and submit button . If a value is entered in input box and button pressed then that will search data from database and displayed in text boxes ,is done . Now I want … | |
Good day, I was stock in the middle of developing a simple application. All i want is to bind the data into gridview, everything is fine when i binding into a single table. i need to bind my gridview using two table. my stored procedure is wroking correctly. here is … | |
L1.ListItems.Clear Dim li1 As ListItem Set li1 = LV1.ListItems.Add() While Not (rs.EOF) li1.Text = rs(0) rs.MoveNext Wend rs.Close | |
Hi Everyone, How can I add a + sign to the following string.... for some reason I just can not figure it out I have tried ".+ and ".+." and sign quotes - both options but it just doesnt seem to work for me.... $number = $Code."".substr( $mobnum, 0 ); … ![]() | |
Greetings I have a USB RFID scanner. While I have this form1 up, I want to send any keyboard input and put it in a textbox which is in another form(say form2). I tried using this code but to no avail. The first form is named "MainMenu". Every time of … | |
I am using Visual studio 2005(.NET framework 2.0) .My project is window application and using c# language. We are having word templates created in office 2003, 2007 and 2010. I want to search text (string) in word template (.dot/.doc/.docx).This text is exist in two places in word doc : 1) … | |
Hello, I am trying to build a Football Scoreboard and I have performed alot of editing but I am getting hung up on this error Error 1 Variable 'strScore' hides a variable in an enclosing block. C:\Users\Michael\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb 41 17 WindowsApplication1 it keeps referring to this line of code -Dim … | |
Hello, I'm looking for a CSV parser and I found this example.... package com.ibm.ccd.api.samplecode.parser; import java.io.BufferedReader; import java.io.StringReader; import java.util.ArrayList; public class CSVParser { String oneRes; private String line = ""; private int nbLines = 0; private BufferedReader reader; public CSVParser(BufferedReader reader) { this.reader = reader; } public String[] splitLine() … | |
I have an ASP page written in JavaScript that writes a CSV file into a database table. while (!oFile.AtEndOfStream) { var s = oFile.ReadLine(); var sArr = s.split(","); var sPostcode = String(sArr[0]).replace(re, ""); var sSuburb = String(sArr[1]).replace(re, ""); ...stored procedure to write into database... } It works fine for smaller … | |
I have this function which fades in a main menu when scrolled more than 100px. $(document).ready(function() { $(window).scroll(function () { if ($(this).scrollTop() > 100) { $('#main_nav_fixed').fadeIn(500); } else { $('#main_nav_fixed').fadeOut(500); } }); }); It works fine, but if the user scrolls fast up and down lets say 10 times, and … | |
Hey guys. I was wondering if u could help me with some code i was working on. im making a program like notepad called wonder notes. so far its goin pretty good but i was wonder if u could help me with some code. i want the program to load … | |
am using jquery.min.js to insert a form data into myqsl db.I just added a captcha script i got online,but i keep geting an [ Notice: Undefined index: secretNumber in D:\xampp\htdocs\mim\insert.php on line 25 ].I tryed all i know ,nwwd your help. javascript code: <script type="text/javascript"> > > $(document).ready(function(){ > //Get … ![]() | |
Hi all, This is going to be difficult for me to describe but I'm going to give it a go! I have tables called tblCPI, tblCPI_Staging, & tblVSeriesList. Please see the diagram.  Right now I am using SSIS 2008 to get data from Statistics Canada and load the … | |
Hi,Im converting VB6 code to VB.net..i got following code from converter In vb6 myForm.show vbModal method is triggering Got_Focus event. But in the foll code,showDialog() method is triggering Load event.I need Enter evwent to be triggered which is equivalent to Got_Focus. Is it possible to do so?? pls help me. … | |
Hello, I'm just having a heck of a time trying to figure our the answer(s) to the following questions: 1. Declare a struct type, Time, that represents an amount of time consisting of minutes and seconds. 2. Write statements that assign the time 6 minutes and 54 seconds to a … | |
Excel cell(1,2) has data with blank lines as: " vb is hard language. test data. test vb. " I want to change to without blank lines as " "vb is hard language. test data test vb" Below code is not working. Please please help. ---------- Set ExcelApp = createobject("Excel.Application") ExcelApp.Visible … | |
Hi everyone. I am having a hard time modifying this code, I'm really new to python and I am trying to find the closest pair among the 10 input integers from a user. Here's my code so far and there is a syntax error... a = [0,1,2,3,4,5,6,7,8,9] a[0]=input() a[1]=input() a[2]=input() … | |
Using an onclick event I'm checking some radio buttons to make sure the correct one is pressed. That part works OK and generates an alert if the correct button isn't pressed. The problem is that the form is still processed even when I return false from the javascript function. I've … | |
I need help with creating a program that produces a daily report for a store. I'm really bad at computer science so I'm not even sure where to start on this! Here are the instructions: Write a Python program to accomplish the following. Use modular design. Include at least 3 … | |
I need graph coloring code in C# using four color mapping can any one help me? | |
Heyall. I'm trying to use the sqlite3_exec function and am having trouble with the callback feature. I've placed my code below. I realise the callback function provides and argument void *data and the sqlite3_exec function provides a const char *data variable. That is where I'm getting the error. I've searched … | |
i am trying to save value inside input files. code below works fine when i use input field <input type="text" name="price" value="<?php if(isset($_POST['price'])){echo htmlentities($_POST['price']);}?>" /> but when i do same thing inside testarea it dooesnt safe the value. any idea why its dont safe it? <textarea type="text" name="description" value="<?php if(isset($_POST['description'])){echo … ![]() | |
Hi guys. im writing a program to check an input string (a password) for its level of security (strong, medium, weak). here is my code for the method: public static int passwordType(String password) { //0weak, 1medium, 2strong int hasSix = 0; int upper = 0; int lower = 0; int … | |
I noticed something today about Arrays in JavaScript that struck me as a bit odd. I imagine there is an easy explanation that will make perfect sense when I hear it, but until then I thought I would ask the community. If I use an Array as the sole component … | |
hi, im using microsoft visual studio to make a game the game consists of a random number generator which ive completed and is working fine, when it generates a 7 a message tells you that you have a lucky seven, you get five goes at this then a message tells … | |
It seems I don't understand completely reading from and into files, line by line. Here is my code that is supposed to read lines of two file, into string variables, I assume, and then write them into third file: *line of first file line of second file .... so on … | |
hey all i am new to all this languages and Computer sciences so if you help me i am trying to write a code and its constantly giving me errors here is the code at line 10 , 102 , 115 tell me how to fix it.. waiting... #include<iostream.h> void … | |
Hi All, I am sed and awk illiterate and needed some assistance. I would like to write a script that will have sed replace all spaces with \space. For example. Program Files would be... Program\ Files I can figure out how to replace the space with a backslash, however, when … | |
I am trying to create a function which adds an array to another array and replaces the data in the 1st array with the new data. For example, A=A+B. However, when I write my code as below, I get the error C2676:binary '[' : 'const Matrix' does not define this … | |
H friends i need your help again I have shooing site where user can pay through credit card . There are a general form where user submit primary data then he redirect to payment getaway provider page to give his credit card info please check the demo url [url]http://hostingcare.co.in/payment/testpage1.php[/url] now … | |
Hi Guys, I'm stressing out over this project. The majority is done. I keep getting an buffer errors. I'm stuck and can't figure it out. I did call stack and it took me to the last parenthesis in main. The closing parenthesis. Also I can't figure out why my card … | |
hey this sounds like a really simple question to me but I can't seem to figure out how to do it! My code so far is public class numbers { public static void main(String[] args) { final int N = (args.length); for (int i = 0; i < N; i++) … | |
I keep getting errors and I don't know why.. #include <iostream> using namespace std; class IceCream{ private: int flavor[3]={0,0,0}, topping[3]={1,2,3}, scoops[3]={4,5,6}; public: int getFlavor(int); int getTopping(int); int getScoops(int); void setFlavor(int); void setTopping(int); void setScoops(int); }flavorX, toppingX, scoopsX; int IceCream::getFlavor(int choice){return flavor[choice];}; int main() { cout << flavorX.getFlavor(1); system("PAUSE"); } | |
Hello, I am hoping to get some help on a view which needs to be pivoted, I am not sure though. View is in following format: Case CASE_ORDER MANAGER CURRENT_MONTH_CASES FISCAL_YEAR_CASES ------------------------------------------------------------------------------- case_1 1 John 15 84 case_1 1 Jeff 10 80 case_2 2 John 20 90 case_2 2 Jeff … | |
When tracking links, do i need to put this code at the end? return _gaLink(this,'#'); What exactly does it do? My understanding of this is not clear. Here is the full code: <a href="#" onclick="_gaq.push(['_trackEvent', 'Email Link Clicked', 'exampleurl.org/';, '#']); return _gaLink(this,'#'); ">exampleurl.org</a> Thanks | |
Is it possible to have a piece of C++ code display a picture and how? I want to display something for my Uncle's employees at a conference were holding with them and I don't know how to display pictures, if there is a way. | |
ok i dont quite know why i keep getting these error in my program.. here is the program: #include<stdlib.h> #include<stdio.h> #include<math.h> Void open(void); int read(float*); float average(float*); void write(float*,float); void close(void); FILE *fptrin,*fptrout; main() { float number[10],non,ave; open(); read(number); non=read(number); ave=average(number,non); write(number,ave,non); close(); return(0); } void open(void) { fptrin=fopen("avg.dat""r"); if(fptrin==0) … | |
Hi, Have a csv-file with time as heading for each column and first column with depth and temperature inbetween. n*m table, or plot. I'm having problems reading the csv file: fname = r'C:\Users\Desktop\Temperature.csv' T1 = '15.08.2012 16:09:10' T2 = '15.08.2012 19:22:57' initial = time.mktime(time.strptime(T1, "%d.%m.%Y %H:%M:%S")) final = time.mktime(time.strptime(T2, "%d.%m.%Y … | |
I wrote a C# code called parent. When i run the program and try to add parent details to the database( microsoft access 2010), it gives me this error: Exception in DBHandlerSystem.Data.OleDb.OleDbException (0x80040E14): Syntax error in INSERT INTO statement. at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) … | |
So I was given the assignment that asks user to enter file name, then the program will read all integers from the file (unknown number of integers) to an array, and display highest, lowest number, average and number of integers read. The only problem that I have with this is … | |
A program that will create scrambled words by circularly rotating the middle characters of each word by 1 character. Place the scrambled words, 1 per line in an output file. Example: hamster becomes hmstear Sample input file: 4 dog pepper marker teapot Sample output file: dog pppeer mrkear tapoet | |
My program compiles but when I fun it I cannot get the city from the JComboBox to show in my JOptionPane. It shows up as "null" and when I click the clear button, nothing happens. I'm not sure how to fix these two problems. Here is my code: import java.io.*; … | |
I was created a table with <table> tag and id is 'calendarid'. In this each td contains a textbox and an image. Some textboxes contain value and some are empty. I want to hide the image where textbox contains no value(or empty).I have used following java script code to do … | |
actually, i have given a task of a fb development. woek is that when ever any one allow the app, then that app will scan the posts and likes of that person. and that app will have database which will check that words (in posts and likes) with its database … |
The End.