199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for roshanchugh

How Do i execute a jsp file placed on another machine on LAN.I have written my code in netBeans using Glassfish server..It will be helpful if i get a reply

Member Avatar for peter_budo
0
112
Member Avatar for JordanHam

[CODE]#define _LL_BUFFSIZE_ 2048 string lastLine; lastLine.clear(); // regardless, zero out our return string char buff[_LL_BUFFSIZE_]; // our temporary input buffer data_filet.seekg (0, ios::end); // go to end of file int length = data_filet.tellg(); // find out how large it is data_filet.seekg(length-min(length,_LL_BUFFSIZE_),ios::beg); // seek back from end a short ways // …

Member Avatar for JordanHam
0
4K
Member Avatar for bklynman01

I have a section of code that builds a table as the user enters information. I'm having trouble figuring out how to navigate through this table. There is a NEXT button and a BACK button. When they hit NEXT, either the next row loads, or the textboxes are emptied out. …

Member Avatar for bklynman01
0
335
Member Avatar for flyboy567

Hey, Im having some trouble with my code, it doesn't seem to stop to wait for an answer to the question about modifying the phone list when i input values in above and press Ctrl Z enter, however the code works fine when i remove the code about inputting information. …

Member Avatar for Fbody
0
1K
Member Avatar for andrewliu

Hello I'm learning regexp and I'm trying to get contents in a div tag. [CODE]<div class='name'> <div class='contents'> contents </div> </div>[/CODE] my regexp is something like this [CODE] preg_match_all("/\<div class=\"name\"\>(.*?)\<\/div\>/is", $res, $matches ); foreach($matches[0] as $value) { echo $value; }[/CODE] I want to get everything in the div class='name' but …

Member Avatar for andrewliu
0
9K
Member Avatar for margeaux54

I have a problem that ı could not understand. [CODE]#include <cstdlib> #include <iostream> #include <stdio.h> using namespace std; struct record { char name [20]; double ave; }; int main(void) { int x,y; struct record array1[3]; struct record array2[3]; FILE *a; a=fopen("in.txt","r"); for (int i=0;i<3;i++) { fscanf(a," %d",&y); array1[i].ave=(x+y)/2.0; cout << …

Member Avatar for caut_baia
0
82
Member Avatar for arun_taurean

Hi cryptographers, I'm currently working on AES.I have got codes for Encryption and Decryption separeately.But my problem is that i want to use a single function that is able to do encryption and decryption.If any codes available,please send it.

Member Avatar for arun_taurean
0
466
Member Avatar for McLaren

Hi, has anyone tried it? [URL="http://www.scriptbolt.com/script/mbanner"]http://www.scriptbolt.com/script/mbanner[/URL] it is a banner rotator for image and flash files. Just one thing I want from it - for a flash embeding code add more parameters, actually this: [CODE]<param name="wmode" value="transparent" />[/CODE] Because I need to count clicks of the flash banner. I read …

0
77
Member Avatar for Silent-Regret

First off, I'm sorry if this is the wrong section, I've been visiting this site off and on for awhile now, but today is my first day joining. Second, I was wondering if there is a way to... auto load, I guess you could say, data from a mssql database, …

Member Avatar for Silent-Regret
0
155
Member Avatar for yuugib

Hi, I was wondering if you can help me figure how to go about this problem. This is what I have to do: Write a programme to generate an array of 100 random integers. [B]While the array is being filled incrementally, produce a sorted array by comparing the new element …

Member Avatar for yuugib
0
215
Member Avatar for BenWard

Hello, I'm having some trouble with SQL CE. The below code *should* insert a record into the 'maps' table. (table adapters all set up) sometimes it says cannot insert as breaching primary key constraint, which is fine, but it otherwise fails with cannot insert NULL into iMapId. I have checked …

Member Avatar for BenWard
0
129
Member Avatar for Usmaan

How to I check whether a given character is within a string, well that's easy: [CODE]if (myString.Contains(myChar)) { //TODO Logic }[/CODE] But, What I want is to get the index of the char |AND| get the index of the same char if it is in the word more than once. …

Member Avatar for ddanbe
0
514
Member Avatar for romy_fb

hi i wanaa ask what is $_SESSION['views']=1; mean ??? i think its like array but i don't know and what is "views" is it index ? can i change it ? if it is index why in each page i just write views i mean why i didn't change the …

Member Avatar for kekkaishi
0
117
Member Avatar for agr8lemon

Hello everyone! I'm trying to get a date from SQL without the year. Every code I've seen has included the year. Here is what I have now. [CODE]SELECT * , convert(CHAR, \"date\", 10) AS ndate from dbo.MYDB where 35 > DATEDIFF(d,\"date\", GETDATE())";[/CODE] I would like ndate to be show like …

Member Avatar for agr8lemon
0
168
Member Avatar for Nulty

Basically, I have a degree (2:1) in Software Engineering. I've worked in public sector for 2 years now which has ended up as a junior developer role for me towards the tail end of my contract (started off as data analyst, don't ask). Luckily I've now managed to land myself …

Member Avatar for KirstyHunter
0
122
Member Avatar for gunnarflax

Since no one answered to my previous thread about a similar issue I rephrase the problem and try my luck again :) I have rather recently started working with prepared MySQLi-statements in php. From what I've learned is it supposed to be much more effective and secure so I've tried …

0
159
Member Avatar for axman1000

I have a task. I will be receiving anywhere between 1 and 4 files daily from one single email id. I would like to extract these attachments, save it to my local drive, and then, extract the data from there into a database. I do not/will not be using Outlook …

0
107
Member Avatar for Hojjat.Mojallal

There are n persons numbered from 0 to n - 1 standing in a circle. The person number k, counting from the person number 0, is executed. After that the person number k of the remaining persons is executed, counting from the person after the last executed one. The process …

Member Avatar for Hojjat.Mojallal
0
378
Member Avatar for xxreenaxx1

I am stuck on inserting the data into mysql via php. Its a foreach method and I am just stuck [CODE=php]include '../Database/take_an_exam.php'; $intNum = 1; $intnumber = 1; while( $info = mysql_fetch_array( $sqll )){ echo "<input type='hidden' name=\"Que_ID\" value=\"{$info['Que_ID']}\" /> "; echo " $intNum, {$info['Que_Question']} <br />\n"; $intNum++; for ($i …

Member Avatar for petr.pavel
0
3K
Member Avatar for khan43

Hi I am trying to edit security into my website which I have created in visual studios 2008 using asp.net. If I copy the URL into a new tab within internet explorer, it does not seem to log me out. I would like it to log me out due to …

Member Avatar for khan43
0
108
Member Avatar for mayankdvd1

I am trying to read gridview column through the following code protected void gdOrderdetails_RowUpdating(object sender, GridViewUpdateEventArgs e) { string name1; GridViewRow name = gdOrderdetails.SelectedRow; name1 = name.Cells[1].Text.ToString(); Response.Write(name1); } It's giving error "Object reference not set to an instance of an object." Pls help me out Thanks in advance

Member Avatar for Munnazz
0
82
Member Avatar for denonth

How can i send Printdocument to richtextbox so i can write something above text and send it as email. here is code: [code] private void button3_Click(object sender, EventArgs e) { try { PrintDocument pd = new PrintDocument(); pd.PrintPage += new PrintPageEventHandler(this.PrintPageEventHandler); if (this.storedPageSettings != null) pd.DefaultPageSettings = this.storedPageSettings; PrintPreviewDialog dlg …

Member Avatar for denonth
0
124
Member Avatar for BroonoVilliam

Hi all, I am new in java. How can I sort a linked list on the basis of a particular string..? I have created a class with two elements, 1. Name 2. Address and I am reading these elements many times Now I want to sort this on the basis …

Member Avatar for Taywin
0
136
Member Avatar for ben25x

I have JUST started learning basic (as of TODAY, actually) and I get the "basic" gist of it ;) but i have looked everywhere and cannot find out how to make the program do something [I]without[/I] the user doing anything. i'm sure it's a simple [CODE]Private Sub 'something[/CODE], but i …

Member Avatar for AndreRet
0
734
Member Avatar for professor123

i am in the process of developing an online exam that is on a website[COLOR="Red"](which only has these links--[U]HOME, DOWNLOADS, E-LEARNING, ONLINE-EXAM, FORUM[/U])[/COLOR], now l am doing my system design and analysis stage. for my context diagram it only [COLOR="Red"][U][B]seems to me[/B][/U][/COLOR] as if it only includes the online exam …

Member Avatar for Stefano Mtangoo
0
123
Member Avatar for Mabyboi

So im working through this and im having troubles finishing it off. Essentially im reading a text file, and tokenizing the numbers in the file, but what needs to be done is for each line in the file to be store in its own Queue, and then the Queue's need …

Member Avatar for Taywin
0
1K
Member Avatar for Jessurider

hey can anyone help me........... the below code is for getting a jpeg image called rabbit which resides within the bin folder...... [CODE]Image img= getImage("rabit.jpg");[/CODE] instead of placing the image in the bin folder.........can we call a image by giving a path like [B]("D\:Images\rabbit.jpg")[/B] is there any method with which …

Member Avatar for sourabh17
0
423
Member Avatar for BobPawley

Hi I am attempting to employ the named pipe application “Using Pipes for Messages” which I found at [url]http://www.delphi3000.com/articles/article_2918.asp?SK=[/url] I am running Borland Studio 2006 on Win 7 and need named pipes to communicate to a C# app that I am also building. The example (bottom of page) is supposed …

Member Avatar for pritaeas
0
213
Member Avatar for bettybarnes

Hi guys,, im having problem with my stored procedure. i dont know how to make it show..when i click on a particular record on my datagridview it should display another form with its corresponding laboratory records, radiology records and so on.. here is my code [CODE]ALTER PROCEDURE dbo.ViewAllLabRecords ( @lab_Record_ID …

Member Avatar for bettybarnes
0
97
Member Avatar for CommDave

I've used this method to highlight the location page that the user is on. Below is a working example of how this functions. This works in div tags or in a tables and cross browsers. Below I've created a main Navigation and two sub navigation. Terminal Intensity, Surreal 1, & …

Member Avatar for Taywin
0
527
Member Avatar for kudenv

Hy all. I have some problem then tried employ action onMouseover and onMouseOut. I have further drop unordered menu [CODE] div#content{position: relative; padding:0 10px; border: solid 1px #6b6b6b; height: 100px;} ul li {list-style: none;} ul.menu {padding: 0; margin:0; display: block; height: 68px;} ul.menu > li {float: left; background: url("li.jpg") no-repeat …

Member Avatar for kudenv
0
198
Member Avatar for novice20

hi all.. I need to issue a 'ping' to an ip address via my script and check whether it is up? can I issue it using os.system? can I capture the output and analyze to see if the host is up??

Member Avatar for novice20
0
2K
Member Avatar for aparnesh

In my program, I need to have invoices printed from the program for the client's sales. The invoices are printed on pre-printed stationery whose top has the client's name, address, etc printed. The invoices are printed on a fan fold type paper on a dot-matrix printer (TVSE MSP 240 Classic). …

Member Avatar for aparnesh
0
240
Member Avatar for lielee

Hello. I'm doing project using richtextbox and want to save the contents in Access. But my contents is a list and when I saved it, the list become one line, with a square to space it. Can it actually be done? I set the column with memo type. Here's my …

Member Avatar for lielee
0
234
Member Avatar for gazzy1

i want to create a timer for my php page i created the page that only 20 second i want that the time should be as 00:00:20 (hh:mm:ss) plz help my scipt are.......................................................................................................... <tr> <!-- countdown script --> <td style="text-align:left;font-size:10pt;font-family:Verdana, Arial;">Time Left: <input type="text" name="seconds" size="3"> <script language="javascript" type="text/javascript"> var …

Member Avatar for peter_budo
0
162
Member Avatar for gazzy1

i want to create a timer for my php page i created the page that only 20 second i want that the time should be as 00:00:20 (hh:mm:ss) plz help my scipt are.......................................................................................................... <tr> <!-- countdown script --> <td style="text-align:left;font-size:10pt;font-family:Verdana, Arial;">Time Left: <input type="text" name="seconds" size="3"> <script language="javascript" type="text/javascript"> var …

Member Avatar for peter_budo
0
116
Member Avatar for axman1000

I have an SQL Server Query: select *from table1 where column in ('list of values') When I execute this, I get all the details, however, when I do this: select *from table1 where column in ('list of values') and date_of_req='2011-03-15' I get an empty table. All the column headings are …

Member Avatar for axman1000
0
181
Member Avatar for sneha mehta

I am trying to use below code for java to sqlserver connectivity.. [code] import java.sql.*; import java.util.*; import java.io.*; import java.lang.*; public class AuthorsInfo1 { public static void main(String args[]) { try { String str = "select * from authors where au_city like 's%'"; String str1 = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; Class.forName(str1); Connection …

Member Avatar for masijade
0
148
Member Avatar for Sonny101

I am making a calculator for a project,using Swing but I am finding one task particulary hard because it is something I have not yet learned. So for this calculator I need a rounding menu I have a list of menu items 0 through to 9 which stipulate the rounding …

Member Avatar for mKorbel
0
677
Member Avatar for wonder_laptop

can anybody give me a link to download Java 5.5 (jdk) ? i dont need any other version of java ! i need that one. i cant find it on the internet :s

Member Avatar for JamesCherrill
0
116
Member Avatar for firoz.raj

i installed Oracle 9i.when i go Start->Program->Oracle-oraHome90- i did not get Isql * plus.Kindly let me know the idea.Any help would be highly appreciated.Kindly find the attachment also.

Member Avatar for debasisdas
0
333
Member Avatar for muzikhera

Hi everyone! How to save image from picturebox to Datatable and display to crystal report. Any idea would help. Thanks and regards to all programmers!

Member Avatar for Knvn
0
116
Member Avatar for az_ez

Hi, I've been working on this code but recently there's been a problem with a section of my code, this being that there was a stack overload but now, the code just stays in a loop saying that there is an invald arguement. I don't know how to get it …

Member Avatar for az_ez
0
380
Member Avatar for Jaseem Ahmed

i have bundle of text boxes to get an input.. i have textboxes that some how work like data grid... i have 4 colums of textboxes and each colum have 30 textboxes as an array in picture box.. now i am facing a problem that, every time when i m …

Member Avatar for AndreRet
0
96
Member Avatar for m610

My first Java post, as I am finally trying to learn a little Java, and am doing it the hard way, which is by trying to read other people's code, using Google, and the ww3 web site. It's not that difficult to learn what individual commands and all do, but …

Member Avatar for masijade
0
380
Member Avatar for atfOnly

Dear All, I'm going to put some submenus into tabs and put its contents there. i want to fetch the name of the tab (menu) from the database. for this case, i must use looping 'while'. for example [CODE]<body> <?php $query=mysql_query("SELECT * FROM modul WHERE ket='submenu_mahasiswa'"); $result=mysql_fetch_array($query); ?> <div id="tabs"> …

Member Avatar for smantscheff
0
99
Member Avatar for dreamsky999

Hello guys. I would require a little help here in my codings. The program is basically calculating the parking fare for customers who park their cars in a parking lot. In function 'void calc_rate(int ,int, int , int ,int,int, int)' At line 95, it shows a function-definition is not allowed …

Member Avatar for charlybones
0
117
Member Avatar for KeerthigaN
Member Avatar for AndreRet
0
62
Member Avatar for orangepyth

This code changes anum but it should not?? What is going wrong? Many thanks >>> astr=['a','b','c','d'] >>> anum=[4,3,2,1] >>> anew=anum >>> for c,d in enumerate(anum): ... anew[c]=astr[c] ... print(anew,astr,anum) ... ['a', 3, 2, 1] ['a', 'b', 'c', 'd'] ['a', 3, 2, 1] ['a', 'b', 2, 1] ['a', 'b', 'c', 'd'] …

Member Avatar for orangepyth
0
117
Member Avatar for bkoper16

I am doing a project for school that requires me to make a program that asks the user to enter a date by selecting two options for the format 1.MM/DD/YY (in numbers) 2.Month ,DD, YY (with the name of the month entered) both options should then display the date in …

Member Avatar for thelamb
0
176

The End.