199,114 Archived Topics
Remove Filter ![]() | |
hi..is it possible to run SQL query periodically in vb.net? my system should update database B if there is an anamolly happen in database A i just wanna run UPDATE query periodically every 5-10 minutes plz help me | |
I am trying to understand usage of keyword __attribute in C I have checked following two pages [url]http://unixwiz.net/techtips/gnu-c-attributes.html[/url] and this page also [url]http://gcc.gnu.org/onlinedocs/gcc-4.0.0/gcc/Function-Attributes.html[/url] but still I could not understand where do I declare them and how I can use __attribute in my program. To test this I wrote a C … | |
anyone here good with php coding and linking databases with mysql through coding itself? If someone can provide me help and fast I can paypal some money. Shoot me a message or reply, thank you | |
I don't understand why my code crashes when the variable "dicerolls" exceeds 15 [CODE]#include <iostream> #include <fstream> #include <string> #include <stdlib.h> #include <iomanip> using namespace std; int main() { string a_or_b; string aorbreverse; unsigned short int dicerolls; string y_or_n; double ab = 0.5; double aa = 0.5; double ba = … | |
Hello I have small problem with my lists where I am storing url links. I add my links via textbox and button which shows on listbox but here small problem. My link shows as "Collection" not as [url]http://blablabla.com[/url] I know that I make a mistake here. [CODE]urls.Add(AddLinksField.Text); listBox1.Items.Add(urls); [/CODE] But … | |
Not so new anymore more with Java but as it gets more advanced (for me that at least) the tricks evade me. I would like to output sorted values into my GUI but two things are not happening. 1. Cannot get values to print in GUI but prints on screen … | |
Hi I have written a windows forms application that connects tosql server compact3.5 database. I store my usernames and passwords in the database. If I delete a username in the database via the application it does delete it, but I have to close the application and restart it, otherwise you … | |
When I compile this program it says "cannot find symbol class Method Master", but when I run it, everything is fine. [CODE] /* *Andrew Davis *Nov. 19, 2010 */ import java.util.Scanner; public class Calculator { public static void main (String [] args) { Scanner keyboard = new Scanner(System.in); MethodMaster method … | |
Given positive intergers a and b, find their greatest common divisor, their least common multiple and intergers s and t such that sa + tb = gcd(a,b)[CODE][/CODE] | |
Hello, First of all: I'm more used to java, but at university we need to code something in python. I'm having serious problems filling a python-list with values. [CODE] for i in range(self.num_of_players) : self.player_hands[i]=["Testcard"] [/CODE] I want to fill the i-th player_hands-list with a String! Yes i declared a … | |
Hello, my name is Jonathan and I am a beginner programmer in my first year of studies. I am using a Turbo C++ editor and I'm trying to set up graphics. The problem is I'm not sure how. Here's how i was taught to set up graphics: #include <graphics.h> int … | |
Hello I'm trying to display images from my database using blob but the browser diplays them in a unusual way. This is what I get!!! <82<.231 1!!11111111111111111111111111111111111111111111111111������������� ������� ���}�!1AQa"q2���#B��R��$3br� What is it that i'm doing wrong? I tried adding a header(contect-type:image.jpeg) but is not working for me :( Here … | |
In class my teacher ran a program similar to this one. When I attempt to run this from home I get a message saying "No main classes found". I know there should be a main in the program but he ran a similar program without it. Just trying to get … | |
[CODE]<? include_once('config.php'); ?> <? //----------------------------------------------- //PAGING STARTS FROM HERE //----------------------------------------------- // how many rows to show per page $rowsPerPage = 12; $productsPerRow = 1; // by default we show first page $pageNum = 1; // if $_GET['page'] defined, use it as page number if(isset($_GET['page'])) { $pageNum = $_GET['page']; } // … | |
I'm new to programming (only 4th week) and i am supposed to try and create a program that will... well ill just post what it wants as its alot. I'm just not sure how to get started on this as im drawing a blank on what to do. it is … | |
[CODE] <html> <head> <title>Records</title> </head> <body> <?php $fname=$_POST['fname']; $age=$_POST['age']; $birthday=$_POST['birthday']; $con = mysql_connect('localhost', 'root' , ''); if (! $con) { die(mysql_error()); mysql_select_db("database" , $con) or die("Select Error: ".mysql_error()); } $result=mysql_query("INSERT INTO Record (Name, Age, Birthday) VALUES ( '$fname', '$age', '$birthday')") or die("Insert Error: ".mysql_error()); mysql_close($link); print "Record added"; ?> <form … | |
hi, im creating an ASP.NET page using C# and want it to send messages to certain people. i looked at some websites, like clickatell.com and intellisoftware.com but they don't met the requirements. clickatell block my country, and intellisoftware don't cover all the networks. so is there some other web services … | |
I was finding Database schema for CMS that are already there (Drupal, Joomla et al) but not yet succeeded. I would be happy if anybody points me to it. I want to adopt for my uses, droping this and adding that! Thanks | |
hi, im creating an ASP.NET page using C# and want it to send messages to certain people. i looked at some websites, like clickatell.com and intellisoftware.com but they don't met the requirements. clickatell block my country, and intellisoftware don't cover all the networks. so is there some other web services … | |
Hi, I wounder if anyone can help me start a program which takes "USER INPUT" for any 10 numbers and then print them in reverse order using arrays what should I need to do to get started with this. Please help. Thanks, Maverick | |
i have already completed my projects by using visual basic 2008 express but i want to know is it possible for me to add a video in splash screen..after the 10 seconds video finish, i want the want the main form to be appear.. how? | |
Hi guys :) I'm stuck with same compiler messages since yesterday, and thought it might be helpful to aks for help :) The prog I'm developing is relatively big, so I'll post just snippets in order to describe what I'm doing. So, I have a class with a few subclasses. … | |
hello people... simple doubt [CODE] class test { public static long testApp(long number) { return number; } }[/CODE] when i pass "45638" it returns perfectly but when i pass "23837472"; it's returning not in the range. what's the issue as long has very big value/range.. and how do i pass … | |
I have read a file to an array successfully. However, when I attempt to pass the array to the function calcAvg(calculate average) and return the average, I get a zero. //Function prototype double calcAvg(double [], int); //Function call calcAvg(score,SIZE); I set a variable called score_length (in main) to get the … | |
Hello everyone, I am really struggling with ajax and was wondering if someone could help me send a string as data by jquery's post method to my servlet. My post does not work, and when I try to receive it from my servlet, the whole thing blows up :( In … | |
Hi everyone! I just want to ask, how do I use socket programming in C to open/go to web sites? I want to create a program that should look like this: the program asks for an integer input from the user and depending on the input number, the program invokes … | |
We know that 0.1 + 0.1 + 0.1 - 0.3 = 0.0 But in python 0.1 + 0.1 + 0.1 - 0.3 = 5.5511151231257827e-017 Is there any way I can get 0.0...?? | |
Hello, im having some trouble with my java assignment. The Q: [I]Write a program which will test that a dice is random, i.e. that it is equally likely that any number will appear. E.G The program simulates throwing the dice 6,000 times. The one appears 1003 times, the two, 996 … | |
gedit uses UTF encoding. Therefore, if we store binary data in the file (like through DataOutputStream's writeInt() or writeByte(), etc.), gedit would rightly complain, but if we write something through the writeUTF() function, then gedit should be able to open it as the data is written is UTF which it … | |
Using a BufferedInputStream is useful because it cuts down on read system calls. But the same effect can be produced, say in reading a file, if we use FileInputStream's read method that takes a byte array as input. A lot of bytes are read in a single call. Am I … | |
Guys I wrote a program that creates 23 random numbers(birthdays) and the counts how many duplicates are there. How come [B][U]sometimes[/U][/B] when I run this it returns "None"? Here is the code: [CODE]import random #Checks for duplicates. def has_duplicates(userstring): userlist = list(userstring) list_len = len(userlist) len_no_duplicates = len(set(userlist)) if list_len … | |
I am not sure if anyone from here can help me with Oscommerce, I have tried at the forum on Oscommerce but have not got any answers as yet. What I want find out how I can do the following.: When you click on one of the categories, it displays … | |
Am having bit of writiers block about how to fix this error. Its a assignment for college so am really just looking for tip or pointer in right direction. Its a simple card game similar to poker. Card.java [CODE] package pokerpkg; public class Card { //Codes for the suits public … | |
Hello, I am having an issue with a data filled combo box. I can not put my finger on why it is giving me the "run-time error 424 object required" error. The code is simple and the data is there. [code] Dim sSql As String Set rsMfg = New ADODB.Recordset … | |
this is the summary of program and i only include the addition of matrices my problem would be the variables in Addition class cannot read variables from the other class i need to know how to fix that the error would be : The name 'a' does not exist in … | |
What to create XPath(s) that I can can use in a FOR loop to retrieve each of the <app> and <coapp> fname & mname. Want my result to be "1 - Danny L", "2 - Wendy R", "3 - Brenda", "4 - Tim G". I have played with this XPath … | |
I'm having a whole lot of difficulty attempting to add data to a multi-column ListView Here's the code for the ListView [CODE]ListView Height="263" Margin="12,29,12,0" Name="Tasks_ListView" VerticalAlignment="Top" ItemsSource="{Binding Source=}"> <ListView.View> <GridView> <GridViewColumn Width="91" DisplayMemberBinding="{Binding CourseName}" Header="Class Name" /> <GridViewColumn Width="275" Header="Assignment Name" DisplayMemberBinding="{Binding AssignmentName}"/> <GridViewColumn Width="110" Header="Due Date" DisplayMemberBinding="{Binding Path=Due_Date}"/> <GridViewColumn … | |
Hi all, I've been trying to use a lookup table in order to find a text prompt according to the key(@name) that is retrieved from the source xml. Here follows snippets of my xml and xsl. It all looks to be correct, but it's not displaying the prompt text... I … | |
i hava put a requirefield validator control on a page and also assign its control to validate property but when i try to move from that page to another page without saving the record .due to validation control the navigation does not happen & after filling the value in textbox … | |
Hey guys, I want to ask whether in C# I can take a values from a textbox words like in C++ console.readline.. Example : user : What is Apple application will take the last word of it which is apple. and will reply apps: Apple is a fruit is it … | |
I want to send some packets they are in hex format 01 00 00 00 AA 00 00 00 01 because how winsock works i first need to convert it to ascii right? how could i do that every time i try it looses the NULLS - 00 help would … | |
[CODE]public class examination extends javax.swing.JFrame { public Connection con; public Statement stmt; public ResultSet rs; public String sname,sid,sub; /** Creates new form examination */ public examination() { welcome wl=new welcome(); String stname=wl.regdno.getSelectedText(); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:exam"); Statement stmt=con.createStatement(); ResultSet rs=stmt.executeQuery("SELECT * FROM student where sno='"+stname+"'"); while(rs.next()) { sid=rs.getString(1); sname=rs.getString(2); } … | |
Hi guys! I need help here, When ever I write onto my text file, i get null and then the value.Please help me! I don't want the "null"! Here is how it looks like in Notepad++: null1: 0.22056311934213296 2: 3.017771771149946 null3: 1.508399104807777 4: 0.07575171145562612 null5: 5.187081012091999 6: 2.049001095182013 null null … | |
Hi i thought of an idea, making a program that me and my friends could use as an instant messaging thing. Like the user types what they want to say and they send it, then that goes to a server that i would create and the server would send it … | |
Hi all I'm new to JMS, im setting up a pilot project, and I'm making use of this tutorial - [url]http://javadude.wordpress.com/2009/01/03/tutorial-starting-with-glassfish-and-jms/[/url] The tutorial is for Glassfish version 2 and JEE version 5, but im using Glassfish version 3, and JEE version 6 now when i try to deploy the project … | |
HI I am working on a project to animate user-defined algos. I am still at the very beginning but I am practicing code in swing and here is an Array class that the user can use in his user defined algo: [CODE] import java.awt.*; import javax.swing.*; public class Array1 extends … | |
Hello friends, I have a problem about JLabel I want to insert a data from database into my JLebel.setText() method.Please help me | |
Hello! I'm trying to solve this problem and I've been at it for hours. [I]Write a method called handScore that takes an array of cards as an argument and that adds up (and returns) the total score. You should assume that the ranks of the cards are encoded according to … | |
need help on single and multidimensional array... | |
hello all i hv a jsp code in which there is a link to another file successLogs.jsp as follows <td align=center><a href="successLogs.jsp?strHour=<%=strDate+strHour%>&strcli=<%=strcli%>"><u><%=totSuccCount%></u></td> in successLogs.jsp there is call to a linux script which is fetching a file from the logs. The problem is that when i click on the link in … |
The End.