199,124 Archived Topics
Remove Filter ![]() | |
dear all, I will stuck with one problem.I have one java program in which frame will be there. I am fetching some data from database and i am selecting background image from dialogbox. Now i have used BuffereImage class, i want to print that image with text through the printer. … | |
I have an issue and I would like to know how I should go about this. I have two tables. Athlete and EachAth_Games create table Athlete ( AthleteID INTEGER NOT NULL, Firstname varchar(10) NOT NULL, Surname varchar(10), Position varchar(1), TeamID INTEGER NOT NULL, CONSTRAINT pk_Athlete primary key(AthleteID, Firstname), CONSTRAINT Player_FOREIGN_KEY … | |
How to make an application to prevent itself from launching from the command line? I have a binary which should be launched by a daemon; but when somebody tries to launch the binary from command line, I should error out stating "cannot be launched from command line". Tried googling but … | |
I want to compare between nodes in BST to find the highest salary and im using recursion function in implementing my BST. Below is the question: A company needs to keep all records of its employees. Employee record should contain employee id(4 digit integer numbers), name, department, salary and an … | |
<?php include "dbConfig.php"; $sql_query = mysql_query("SELECT SubjectID, SubjectDesc, FROM tbl_subject"); ?> <select name="X" value="X"> <option value="Choose">Choose</option> <?php while($fetch = mysql_fetch_array($sql_query)) { ; ?> <option value="<?php $fetch['SubjectID'];?>" selected="selected"><?php echo $fetch['SubjectID']; ?></option> <?php } ?> </select> INSERT code <?php include "dbConfig.php"; $Y = $_POST["Y"]; $query="INSERT into tbl_subjectsenrolled(SubjectID) values('".mysql_real_escape_string($Y)."')"; ?> But I cannot … | |
How do I delay an animation in jquery? I have a <p> in to the page as soon as the page loads. I have another <p> that I want to slide in only after the first <p> finishes coming in, and then I want an image to move when that … | |
Hy every body, i am a new people in here, so i am need all of your help, please.. i have the script ajax like this, <script type="text/javascript"> jQ(document).ready(function() { jQ().ajaxStart(function() { jQ('#loading').show(); jQ('#result').hide(); }).ajaxStop(function() { jQ('#loading').hide(); jQ('#result').fadeIn('slow'); }); jQ('#frm').submit(function() { var formData = new FormData($(this)[0]); jQ.ajax({ type: 'POST', url: … | |
I'm new to MVC4 programming. I want to populate a **DropDownList** from a table's field but don't know how to, although I searched for relevant material from Internet but couldn't get some workable info. There are 2 tables **Software** and **Category** (showing the type of S/w e.g. Anti-Virus or Graphics … ![]() | |
from __future__ import print_function, division #requested per VPython import time from visual import * #make sure this is asterisk char, copy/paste no go ## constants mzofp = 1e-7 L = 2.5 q = 2*1.6e-19 scalefactor = 7e-9 deltat = 9e-20 #objects & initial conditions particle = sphere(pos=vector(0,0,-4e-10), radius=1e-11, color=color.red) velocity … | |
I'm converting a Java/J2EE app over to Ruby/Rails. I need a solution for the CORBA calls. I see that Ruby has its own distributed API (DRb) and there are a few 3rd party CORBA tools, but nothing seems viable for actually doing CORBA in Ruby. What are you guys using … ![]() | |
I am using this [application example][1] and try to model it to fit my needs. I am modelling your index.html.erb to fit my needs. I want to get rid of "start" button in order to prevent single-file upload (I dont want it), but it seems that "start upload"(multiple upload)-button is … ![]() | |
Greetings As the titles says I wanna know what are versions of C++ other than Standard C++ and what are the differents between those version if any! Second question what is contained in the .exe file I'm using Microsoft compiler "Visual Studio 2010 IDE"? Is it contains the assembly instructions? … | |
Hi Friends, Currently, i'm working on sms processing. I need to create an application to receive and store the sms in database. I have tried this with vb.But i didn't work perfectly.Could anybody help me on how to receive sms and store in php without using any third-party software? Since … | |
hi can anyone please help me with this problem arranging given input that is alphanumeric in ascending and descending order using turbo c *note the given info are char only example output: info to be arranged: blk4 lot 32 ascending order: bkllot234 descending order:tollkb432 | |
Hello, I am working on a project where someone will install my code on their server and it will collect certain information held in their database and then report that information back to me. I am trying to figure out the best way to go about this using php to … | |
HI i have a form that contains checkboxes i put a variable as array and i test the values in this array switch($pulse) { case $pulse[0]==1 && $pulse[1]==2: include('onetwonet.php'); twonet($date,$date2,$report,$netw,$auto,$pulse,$client); break; case $pulse[0]==1 && $pulse[1]==3 : include('onethreenet.php'); threenet($date,$date2,$report,$netw,$auto,$pulse,$client); break; case $pulse[0]==1 && $pulse[1]==4: include('onefournet.php'); fournet($date,$date2,$report,$netw,$auto,$pulse,$client); break; case $pulse[0]==2 && $pulse[1]==3: … | |
i run the below script to get the left and right as per the binary i did and it is ok Script select a.ID,a.Node,a.direction, a.Reference_ID, a.Recommended_By from members a JOIN members b ON a.Node LIKE CONCAT('%(',b.ID,')%') Where b.ID = 2 order by b.id,a.Recommended_By' Result **ID** **Node** **Direction** **Reference** **Recommended_By** 4 … ![]() | |
Hi again! So, I have an object that gets appended to a linked list now. Now I need to have all of that item's data output in a formatted manner - something similar to this: CD Artist CD Title CD Length Track Name Track Length Arist name here Title here … | |
Basically, I'm getting an error when I try to append a CD object to my linked list. What error? This one: > First-chance exception at 0x550257aa (msvcr100d.dll) in Programming 3 Course Project.exe: 0xC0000005: Access violation reading location 0xfeeefee2. > Unhandled exception at 0x550257aa (msvcr100d.dll) in Programming 3 Course Project.exe: 0xC0000005: … | |
hi i am adjusting a socket program code to make it able to read and write on files and send and recieve packets but i am stuck it only performs the first while loop and doesn't go to the next lines to execute them ! i dont usually program using … | |
I am only asking How do I display the first frame of a video in a small box near the videos name onto my browse webpage? | |
Hello all, Im looking for a tool that allows me to visualise a single entry in a database, so i can see that entry, and all entries that have a foreign key to it, and foreign keys to those etc. Im not talking about an ERD, but more like a … | |
Hi, Doing a bit of research at the moment on how to structure my web App. So far I've decided on using PhoneGap with jQueryMobile client-side, which will request and update information in a database hosted on a remote server running php and mysql. From the tutorials I've seen online, … ![]() | |
I need function to serving different data depend on browser type, mobile or desktop.. I need something like this <?php if browser_resolution_small { // one type of data } else { // another type of data for big resolution } ?> so I need to pull different data but I … | |
Hi.. My java desktop application runs every time the computer starts up and runs as long as computer is ON. It monitors all the activities and interacts with database more often and will tell me some updates by looking on the internet at regular intervals etc..etc.. So what I usuallly … | |
I have a class called Control. All other "controls" inherit from this class. Some controls need a default constructor so that I can assign or construct them later. The classes look like: class Control { private: //All Members Here.. void Swap(Control &C); public: Control(DWORD dwExStyle, std::string Class, std::string Title, ....); … | |
Hi guys. I am a student who really needs some assistance with creating a recursive function in C that changes multiple consecutive white spaces (blanks) from an array of characters into a single blank. For instance: char c [10]; // let ␢= blank symbol where the contents are :␢␢␢␢INT␢␢␢ the … | |
I need to read this into a arrays. 123455 45 67 87 69 98 3456787 67 98 34 54 67 456778 87 76 89 76 34 344568 65 78 76 45 98 56789 98 76 45 34 54 Here is the code I have void getGrades(double exam[], int studentId[]) { … | |
With the checklist script below, how do I make the letters dim to gray while making the strikethrough a bright red? I know it has something to do with placing one class that holds the text within another that holds the strikethrough and the text, but I just can't get … | |
I am having a hard time applying Little's Law to two subsystems. A system is comprised of 100 smaller systems. 50 of these have a customer arrival rate of 10 per second and a expected delay time of 5 seconds. The other 50 have a customer arrival rate of 20 … | |
I don't what's wrong with this simple piece of code I wrote. It keeps crashing. Output Screenshots: http://i.imgur.com/8xwet8m.png http://i.imgur.com/FXBa8YM.png #include <iostream> #include <stdlib.h> #include <conio.h> using namespace std; int main() { char *strg; cin>>strg; cout << "Hello world!"<< strg<<endl; getch(); return 0; } | |
Hello, I'm having an issue with set and get method. When i clicked on a button, i set index as 1 however when i use the get method to get the index, the index is returned as 0. I want to call a method if the index is 1. here … | |
i have a problem regarding classes . i have been given two files vector.h and set.h the vector.h file is : #ifndef VECTOR_H #define VECTOR_H class vector{ private: int *array; int max_size; //max size of vector int elements; //total element in vector public: //initializes everything to zero/null DefaultVector(); //initializes the … | |
This code creates XML File Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim connetionString As String Dim connection As SqlConnection Dim adapter As SqlDataAdapter Dim ds As New DataSet Dim sql As String connetionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\Danial\documents\visual studio 2010\Projects\ESI_PF_Payroll_V1\ESI_PF_Payroll_V1\Pay.mdf;Integrated Security=True;Connect Timeout=30;User Instance=True" connection = New … | |
I've written this code to <?php $getnamequery = "SELECT cat_title FROM store_categories WHERE id = '$catid'";?> <?php $cat_name = mysql_query($getnamequery) or die(mysql_error());?> What would happen is the variable `$catid` would be filled in with a number, for instance 1. The table store_categories looks like this id cat_title 1 Humor 2 … | |
Ok, it's a pretty dumb title but represents well what I need to know. I'm pretty much a noob in programming and I found a problem about finding the first 3 perfect numbers. I got it solved, but I wanted to see how far I could go. My computer can … | |
i have to create a queue where the dequeue operations will be random. that is , a random location will be chosen, and deleted after returning the data stored at that location. i was going through the two underlying datastructures that im allowed to use **:** linked list , and … | |
Hi, I was trying to browse through the contents of an SD card containing the FAT16 filesystems using a HEX editor. I was looking up a person's program to navigate through the filesystem i.e. reading the master boot record, boot sector etc and he has used a "long" for fields … | |
hey guys does any one has idea how to write a program which calculates all the characters in a sentence | |
Hi, I've been trying to send a `BufferedImage` through a socket. I can get it to work once, but when I try to get another screenshot, it fails. The server usually gives me a `java.lang.IndexOutOfBoundsException` at `ImageIO.write(capture, "png", client.getOutputStream());` Server Code: //already told server i'm expecting an image try { … | |
I want to implement simple file upload with progress I like the services provides by [jQuery-File-Upload](https://github.com/blueimp/jQuery-File-Upload) I tested the example provided with script <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>jQuery File Upload Example</title> <style> .bar { height: 18px; background-image: url('img/progressbar.gif'); } </style> </head> <body> <input type="text" name="textfield" /> title <input … | |
whenever i click on a radio button the value that comes out is NaN how to make it an integer function MenuChange(){ newValue = parseInt(document.formcheck.Menu.value.asInt); document.formcheck.Price.value = newValue; } <tr> <th>Menu </th><td>270/Head <input type="radio" name="Menu" onChange="MenuChange()" value='270'></td> <td> </td> <td>300/Head <input type="radio" name="Menu" onChange="MenuChange()" value='300'></td><td> </td> </tr> | |
Please visit http://www.cuteework.com/members.php Login button not work. here is members.php file details. <?php session_start(); session_register("id_session"); session_register("password_session"); include "header.php"; include "config.php"; $a=""; $b=""; if ($_POST) { $a=trim($_POST["id"]); $b=trim($_POST["password"]); $a=str_replace("'","",$a); $b=str_replace("'","",$b); $a=str_replace("\"","",$a); $b=str_replace("\"","",$b); } if ($a=="" || $b=="") { if ($_SESSION["id_session"]=="" || $_SESSION["password_session"]=="") { ?> <form action=members.php method=post> <br><br><Center><table><tr><td colspan=2 align=center><h3>Members Login … | |
![]() | i added libmysql.dll as resource to my project ID_LIBMYSQL RT_RCDATA "LIBMYSQL.DLL" Image view :: http://s18.postimage.org/bcpf2s9jt/Untitled.png now when i try to find it using findresource function , i get error code : 1812 mean resource not found HMODULE hMod = GetModuleHandle(_T("libmysql.dll")); HRSRC hRes = FindResource (NULL, "ID_LIBMYSQL", RT_RCDATA); // RT_RCDATA application … ![]() |
hi recently i have installed oracle 11g and i try to work through oracle enterprise manager browser to start up the local host there i found "Host Credentials" i have not set any user name and password for my os while installing i am using windows 7 what will be … | |
Hi I have a scenario that i need to implement. the scenario is below. I have a class handler and a class Healthmonitor. every 10 seconds i have to send a msg to HealthMonitor to update a variable. in one point if it didnt send a msg in a multiple … | |
I must write Analysis, IPOChart, Hierarchy Chart, Flowchart, GUI Design, Pseudocode, and Test Cases for an office supply inventory tracking program Here is the Pseudocode that i have so far: Main Module 1 Declare PensAmount As float 2 Declare PaperAmount As float 3 Declare MarkerAmount As float 4 Declare PaperclipAmount … | |
![]() | Assuming that my DB looks similar to the following: User UserId ... PhoneNumber PhoneNumberId ... UserPhoneNumber UserId PhoneNumberId When I use EF and insert a record into User (that also has PhoneNumbers attached to it), it auto inserts into PhoneNumber and UserPhoneNumber. I can also update User and update PhoneNumber. … ![]() |
Hi I have a php code that uploads a file to mysql db then I detrmine the id of the last inserted file and download the file .e user is asked if he wants to save the file and then asked for te file name. I want te php to … | |
This is my SQL statement.. SQL Statement: SELECT tbl_subjectsenrolled.SubjectID, tbl_subject.SubjectDesc, studentsubjectgrade.Finals FROM tbl_subject INNER JOIN tbl_subjectsenrolled ON tbl_subject.SubjectID=tbl_subjectsenrolled.SubjectID INNER JOIN studentsubjectgrade ON tbl_subjectsenrolled.SubjectID=studentsubjectgrade.subjectID WHERE studentsubjectgrade.StudentID='04-0044' But the OUTPUT is this: SubjectID1 SubjectDesc1 Finals1 SubjectID1 SubjectDesc1 Finals1 SubjectID2 SubjectDesc2 Finals2 SubjectID2 SubjectDesc2 Finals2 Instead of this: SubjectID1 SubjectDesc1 Finals1 SubjectID2 SubjectDesc2 … |
The End.