199,114 Archived Topics
Remove Filter ![]() | |
Hi ! I am writing simple email client that uses TCP/IP sockets to interact with an SMTP server to send email messages. this is my code import java.io.*; import java.net.*; import java.util.*; import java.text.*; public class TestSendMail { public static void main(String args[]) throws IOException { Socket socket; DataInputStream dataInput; … | |
Hi there guys, I seem to be having a silly issue and I cant figure out why, my code is working fine for uploading and storing the image name in the datebase, but my issue come about when the form gets sumitted with no file selected I do want this … | |
I creating a small program which basically reads Electronic identity cards and stores the information in a SQL database. There is more to the program of course, but this is where i need help with. The EID has a picture from the person also. I decided not to save the … | |
Hello all, I'm hoping you can help me with my first search engine/join query. I have 3 tables with differing numbers of coulumns - clients, projects and tasks. Table "clients" with the columns "cid", "client" and "date" Table "projects" with the columns "pid", "cid", "projects" and "date" Table "tasks" with … | |
Hi, Currently I am building a html page that has some fields to search items into database. For the moment I am using 2 files index.html and search.php, in the page index.html I can input the word that I want to search in the database and I send the inputs … | |
Hi guys, I have found interesting code.. Unfortunatelly I dont know how to use it :/ [CODE]public void Delete(string ouPath, string groupPath) { if (DirectoryEntry.Exists("LDAP://" + groupPath)) { try { DirectoryEntry entry = new DirectoryEntry("LDAP://" + ouPath); DirectoryEntry group = new DirectoryEntry("LDAP://" + groupPath); entry.Children.Remove(group); group.CommitChanges(); } catch (Exception e) … | |
Well, I have managed to create controls during runtime. Dim Rbut As New Button() Dim Lbut As New Button() With Rbut .Location = New Point(590, y + 15) .Text = "Remove" .Name = FontName(ListBoxCount) End With With Lbut .Location = New Point(590, y + 45) .Text = "Lock" .Name = … | |
The code below gives me a Narrowing conversion from int to uint32_t: typedef union RGB { uint32_t Color; struct { unsigned char B, G, R, A; }; } *PRGB; inline RGB Rgb(int R, int G, int B) {RGB Result = {((R & 255) << 16) | ((G & 255) << … | |
Hi, when a user login, i want yo use his session username to query a secific database. I am trying to use the code below but it is not working. $username=$_SESSION['username']; can someone help me. | |
I'm trying to write a transform to parse an html document and create another html document but I can't seem to use the html tags in the xslt. My html source that I want to apply the transform on looks like this: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title></title> </head> <body class="3-column"> <div … | |
Hi, I have a checkbox in my form and want to see the changes to it in next page but the problem is if I un-check a checkbox then the $_POST variable will not include it in next page so I won't be able to the changes. Any idea for … | |
Situation: need to read a CSV (txt) file that has no header and has 4 fields (all numeric), the number of lines will vary. Sample data: 160827,00003,000000075,0000025 84144,00001,000000050,0000050 161060,00002,000000050,0000025 40015,00002,000000100,0000050 61955,00002,000000100,0000050 etc etc I want to read this file into a DataGridView for proofing and later insert all these lines … | |
I have a task to create an app that scans a 2D code (DataMatrix) with a usb scanner (set to work as a serial port), then creat a zip file from the inputstream, unzip it and get an xml. i have managed to scan the code, get the inputstream but … | |
// The Physics Game.cpp : Defines the entry point for the console application. //Rodney Jenkins #include "stdafx.h" #include <iostream> #include <cstdlib> #include <ctime> #include <cmath> using namespace std; double eqOne_vf(double Vi , double a , double t) { return ( Vi + (a * t) ); } double eqTwo_x(double Vf … | |
A Ternary Tree (T) is a tree in which every non terminal node has at most 3 children. We will use T to simulate the following activity: A set of P candidates must pass a set of exams ordered in an array of N exam codes (an exam code is … | |
Hi, This is pankaj, I am currently working on the printing project. Here I have creating a custom paper(height = 1000mm and width = 800mm) on the printer via code and then trying to print the text on a specific location (for example. top = 1cm and left = 1cm). … | |
Hi, Im new to SDL, when i compile this example program i got these linker errors first defined here .drectve `/manifestdependency:"type='win32' name='Microsoft.VC90.CRT' version='9.0.21022.8' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b'" /DEFAULTLIB:"MSVCRT" /DEFAULTLIB:"OLDNAMES" ' unrecognized [Linker error] undefined reference to `__security_cookie' [Linker error] undefined reference to `_alloca_probe_16' [Linker error] undefined reference to `@__security_check_cookie@4' [Linker error] undefined … | |
![]() | So I'm making a Program to Start/Restart/Stop and running commands from the Console for my Server. Now when someone uses the console, I want to be alerted of it on my Mail. I am using Visual Studio 2010. This is my Code: Dim mail As New MailMessage Dim smtp As … |
![]() | **Synopsis:** I have a report generated from the report wizard in VB that works, but I only want to load data from the same department as the current user. **Details:** The application connects to MySQL using the MySQL Connector/Net. I have a users table in the database, one of the … |
Im having a issue with comparing dates below is the code. it shows all rows even dates that have passed todays date. The Date field is set as date in sql. <?php $con = mysql_connect("localhost","myusername","mypassword"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mydatabase", $con); $todays_date = date("Y-m-d"); … ![]() | |
G'day folks, My sql server 2012 database is plodding along happily with its custom online store. Yesterday it's primary key incremental column jumped from 60681 to 61678 then resumed incrementing by 1. It is now up to 61686 and chugging along again. No apparent harm done but very strange behaviour. … | |
Oky i have a big problem that needs help fixing Here's my code : Private Sub FullLoginTimer_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles FullLoginTimer.Tick Try If MbFacebookBrowser.Document.Url.AbsoluteUri = "http://www.facebook.com/login.php" Then MbFacebookBrowser.Document.GetElementById("email").SetAttribute("value", Emailtxt.Text) MbFacebookBrowser.Document.GetElementById("pass").SetAttribute("value", Passwordtxt.Text) MbFacebookBrowser.Document.GetElementById("Login").InvokeMember("click") End If Catch skipErrors As Exception Try If MbFacebookBrowser.Document.Url.AbsoluteUri = "http://www.facebook.com/login.php" Then MbFacebookBrowser.Document.GetElementById("pass").SetAttribute("value", … ![]() | |
plsss I need help!! I have problem with my insert data into database this is my code Public Sub doSave() Dim con As New OleDb.OleDbConnection(My.Settings.SystemDataConnectionString) Dim cmd As New OleDb.OleDbCommand Dim adap As New OleDb.OleDbDataAdapter Dim ds As New DataSet Dim dr As OleDb.OleDbDataReader con = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\D_S_S - … | |
guys help me with the code for adding items in the combo box but without duplicates. i have an assignment which is a simple web browser. the combo box will be the address bar. and everytime i input an address, it will be added in combo box and should not … | |
hi all this is the code in question namespace std { typedef std::basic_string<wchar_t> wstring; }; #endif #if defined(__HAIKU__) namespace std { class wstring : public std::basic_string<char> { public: wstring(const char *t) : std::basic_string<char>(t) { } wstring() { } wstring(const wstring &that) : std::basic_string<char>(that.c_str()) { } wstring(const std::basic_string<char> &that) : std::basic_string<char>(that) … | |
I've got a program I'm writing that A. runs as a service B. grabs a screenshot of a specific window every X number of seconds C. prints it to the default printer. A and B are more or less done. C is confusing me. I'm looking for a way to … | |
I declared one variable in one type (say char x ) and allocated. But i'm assigning integer or some other type value to it. Below is the code snippet which i'm facing problem, char *tempstr = (char*)calloc(1,4); // declaring with char variable tempstr[0] = '2'; // trying to assign 5 … | |
I am trying to retrieve Mysql data, populate a form, user amend/delete fields, UPDATE and return data to database. It is the last stage that does not happen. I press UPDATE RECORD and screen returns to ID input. Where have I gone wrong, please ? <?php // require_once 'dbconnect.php'; if … | |
I new with database and java.I want to show result of the table WHERE USER = USER LOGIN NAME private void query() { try { Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@andy-lcoyx7gfw:1521:orcl", "andy", "andy"); String sql = "select * from schedules where (userName = @User) "; //'{$_SESSION['username']}' Statement stmt = con.createStatement(); ResultSet … | |
Hi, I just to know what code should I use to terminate the program when the user input the character n. Here is the code I have so far | |
![]() | Hi I'm getting **mysql_fetch_array() expects parameter 1 to be resource, boolean**, I check the white space and maybe some can tell me what I did so I can corrrect the mistake. Thanks <?php session_start(); header("Cache-control: private"); require_once ('../include/init.php'); include_once("../ckeditor/ckeditor.php");?> $page = $_GET['page']; $sqlcats="SELECT * FROM pages WHERE pagename = '".$page."'"; … ![]() |
Hi All I have a unbound datagridview which i use to enter data. I would like to make calculations using individual cell data as follows:- Datagridview1.rows(0).cells(1).value = datagridview1.rows(1).cells(1).value + datagridview1.rows(1).cells(2).value This works fine but if im using lots of cells it can be quite confusing .I was wondering if there … | |
I have this drop down menu but I want to select its value and run a SQL-query with php. How do I do that? <select name="SelectMake"> <option value="make">Make</option> <option value="toyota">Toyota</option> <option value="honda">Honda</option> </select> | |
I have written many FORTRAN codes, but am new to Java, which I find much more powerful and more difficult. I have a program that was written several years ago in MS Access. The program consists of a main window with buttons that take you to other windows where you … | |
How would I go about importing several CSV files into a single table? Any advice is greatly appreciated! | |
Hi all, I am trying to write a code for logout, and I want to clear session My code Protected Sub Button2_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button2.Click Session.Abandon() Response.Cookies.Add(New HttpCookie("ASP.NET_SessionId", "logAccount")) Response.Redirect("WebForm5.aspx") End Sub and i want to disabling browser's to go back please hellp !!!! | |
i am getting "Unhandled Null referenceException "--object reference not set to an instance of an object at below mentioned code in bracket (return System.Configuration.ConfigurationManager.ConnectionStrings["unitmoduleconnectionstring"].ConnectionString) and below is the total code help me to get out of this bug.... namespace TIMS { public partial class Form1: Form { public Form1() { … ![]() | |
Hi, I have graph in C. I enter vertexes and edges with price. Now I would like add path, where I visit only few of the vertexes and then I would like to print this path. I don't know how to do it, so I am asking you here.... | |
To be specific I'm trying to implement this into a small game. What I'm thinking of is having a base/default class for derived objects such as player, enemies, tiles and so on and later the derived classes would inherit this base class and add whatever is needed depending on the … | |
Hello All! I was just wondering if C++ classes could internally be represented in the following way: #include <stdio.h> struct A { int a; void (*ptr) (A *); }; void display(A *ptr) { ptr->a = 2; printf("ptr->a = %d", ptr->a); } int main() { A obj; obj.ptr = display; obj.ptr(&obj); … | |
Hi, I'm quite new to Web Development. I'm creating a web site and it has a Registration Page where I managed to create the form. But when the user clicks on the 'CreateUser' button, how do I display a message on the form to show that the User is created. … | |
Hey Guys, I'm playing with android webview.. and I would like to have it running background whenever I press home button... Please let me know if this is possible... Here are the codes, maybe I need to tweak anything .. package trektrak.GeoWebView; import android.app.Activity; import android.os.Bundle; import android.webkit.GeolocationPermissions; import android.webkit.WebChromeClient; … | |
I am going to redo the interior of my truck (a 1998 Chevy K1500 Pickup) and want to mount a Android tablet in the dashboard to replace all my stereo and environment control (maybe vehicle lights too). My plan is to write an Android app to do this, but I'm … | |
Hello again! I am trying to make a little game in pascal and I'm using graph. And it changes the background but when i'm trying to draw a black line it doesn't work. I don't know why. uses graph; var grDriver,grMode,ErrCode: Integer; procedure initg; begin grDriver := Detect; InitGraph(grDriver, grMode,'e:/bp/bgi'); … | |
I'm at the moment sure that I want to be a Computer Sciencetist. Now, what I would like to do in the field is unkown to me. I have tried making games ( Which I never finish), and physics simulation using graphics which I enjoy. I have also done Desktop … | |
I intend to write a GUI java program which convert a decimal(base 10) to hexadecimal(base 16). Floating point decimals are also valid input. the code of my program private void myEnterButtonActionPerformed(java.awt.event.ActionEvent evt) { float mynum; mynum = Float.parseFloat(this.myNumberField.getText()); Float floatObject = Float.valueOf(mynum); myResultField.setText(Float.toHexString(mynum)); } but when I run the program, … | |
I'm trying to make a search by different option say A, B . what i need is if user provide value of A only then it does the searching using parameter A only , if user provide A and B then it needs to do searching using condition A=value1 AND … | |
I'm extending a website built in ASP.NET to display Spiceworks reports - basic SQL queries. The easist way (with my knowledge) is to connect to the Spiceworks db through both Management Studio and Visual Studio. I have therefore followed this '[how to](http://community.spiceworks.com/how_to/show/2271http://www.)' in this forum, plus a few others, to … | |
Hi I'm writting this code to prepare electricity for as many users as there are input. I don't got when I compile it always shows something where the "if" start. I need a fresh look please. Thanks [code] import java.text.*; // format output import java.util.*; // Scanner class public class … | |
Hi, I have want to build a database with car parts. The problem is that the car part can fit the car but from year 2000-2004 and not only just one year like 2001. For example: Make Model Part Year Toyota Camry Mirror 2000-2004 The thing is that the mirror … |
The End.