199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zarulhamdi

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

Member Avatar for zarulhamdi
0
2K
Member Avatar for onus

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 …

Member Avatar for sree_ec
0
605
Member Avatar for the_mia_team

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

Member Avatar for cossay
0
155
Member Avatar for kelechi96

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

Member Avatar for kelechi96
0
133
Member Avatar for Dersev

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 …

Member Avatar for Dersev
0
155
Member Avatar for jems5

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 …

Member Avatar for jems5
0
465
Member Avatar for procomp65

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 …

Member Avatar for procomp65
0
113
Member Avatar for Andrew Davis 64

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 …

Member Avatar for Andrew Davis 64
0
210
Member Avatar for Mellopv13

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]

Member Avatar for mlesniak
0
87
Member Avatar for keltik

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 …

Member Avatar for keltik
0
175
Member Avatar for Emmitt310

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 …

Member Avatar for musawir
0
904
Member Avatar for Rizzuti

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 …

Member Avatar for Rizzuti
0
305
Member Avatar for Alkaline8214

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 …

Member Avatar for Alkaline8214
0
220
Member Avatar for detelli

[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']; } // …

Member Avatar for detelli
0
139
Member Avatar for bigman91

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 …

Member Avatar for Purrenhage
0
1K
Member Avatar for abelingaw

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

Member Avatar for abelingaw
0
106
Member Avatar for "ICode"

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 …

Member Avatar for "ICode"
0
129
Member Avatar for Stefano Mtangoo

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

Member Avatar for hielo
0
226
Member Avatar for "ICode"

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 …

Member Avatar for "ICode"
0
145
Member Avatar for maverick405

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

Member Avatar for Rootz
0
154
Member Avatar for mynameisshafiq

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?

Member Avatar for wvusaf
0
999
Member Avatar for BimBam

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

Member Avatar for alwaysLearning0
0
219
Member Avatar for nitins60

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 …

Member Avatar for nitins60
0
10K
Member Avatar for SVSU_Student

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 …

Member Avatar for jonsca
0
223
Member Avatar for omaiaa0p

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 …

Member Avatar for scrappedcola
0
137
Member Avatar for shinsengumi

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 …

Member Avatar for Nick Evan
0
548
Member Avatar for knan

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

Member Avatar for knan
0
202
Member Avatar for Goyle

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 …

Member Avatar for apines
0
139
Member Avatar for daudiam

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 …

Member Avatar for daudiam
0
137
Member Avatar for daudiam

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 …

Member Avatar for daudiam
0
250
Member Avatar for HoneyBadger

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 …

Member Avatar for richieking
0
101
Member Avatar for oneplace

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 …

Member Avatar for oneplace
0
80
Member Avatar for hannon565

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 …

Member Avatar for quuba
0
204
Member Avatar for Ole Raptor

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 …

Member Avatar for Ole Raptor
0
93
Member Avatar for sharkpit

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 …

Member Avatar for Mitja Bonca
0
125
Member Avatar for TheBrenda

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 …

Member Avatar for iceandrews
0
334
Member Avatar for Jarrhed

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 …

Member Avatar for Mitja Bonca
0
5K
Member Avatar for niki_97

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 …

Member Avatar for iceandrews
0
705
Member Avatar for sagarkalokhe09

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 …

Member Avatar for sagarkalokhe09
0
116
Member Avatar for DioRani

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 …

Member Avatar for Mitja Bonca
0
170
Member Avatar for lttleastig

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 …

Member Avatar for lttleastig
0
4K
Member Avatar for subrat_p

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

Member Avatar for javaAddict
0
324
Member Avatar for hazeeel

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 …

Member Avatar for hazeeel
0
4K
Member Avatar for eikal

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 …

Member Avatar for Luc001
0
102
Member Avatar for mementomori

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 …

Member Avatar for ~s.o.s~
0
286
Member Avatar for DARK_BYTE

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 …

Member Avatar for DARK_BYTE
0
228
Member Avatar for subrat_p

Hello friends, I have a problem about JLabel I want to insert a data from database into my JLebel.setText() method.Please help me

Member Avatar for javaAddict
0
67
Member Avatar for Yutxz

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 …

Member Avatar for apines
0
252
Member Avatar for fyezool
Member Avatar for manish250

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 …

Member Avatar for manish250
0
265

The End.