199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for bluehangook629

Hello, I have created a report using SAP Crystal Report on Visual Studio 2010. As datasource, a interal dataset is used to populate the report which is included in my project. Everything seems to work fine until during runtime when I load the report onto the report viewer, it keep …

Member Avatar for bluehangook629
0
747
Member Avatar for geoamins2

Dear friends i have developed a report using php/html/css. i have included @media print css style using div tag for page break because i want to print on different pages. each and everyting is working fine but only problem is delaying during printing..the printer print one page and sleep for …

Member Avatar for diafol
0
481
Member Avatar for alek.mieczkowski

Hi All, Im working on a project for work, and part of this project is getting the IP from a host and translating it into Lattitude and Longitude(code for this is below). The problem I am facing currently is that when I try to get the IP, I get "::1" …

Member Avatar for JorgeM
0
146
Member Avatar for rhodoscoder

<?php // post_add.php if( isset ($_POST['title']) && ($_POST['body']) && !empty($_POST) ){ require 'connection.php'; $stmt = $conn->prepare('INSERT INTO posts (title,body) VALUES (:title, :body)'); $stmt->bindValue(':title', $_POST['title']); $stmt->bindValue(':body', $_POST['body']); $stmt->execute(); echo 'Entry posted. <a href="post_view.php?id='.$conn->lastInsertId().'">View</a>'; }else if(empty($_POST['title']) || empty($_POST['body']) ){ echo "no values entered"; } ?> As my code is , empty fields …

Member Avatar for Eagle.Avik
0
179
Member Avatar for GilbertB

Hi I have this list: 532790M 47448M 378267M 467981M 53661M 583783M 524687M 390963M 493436M 185366M 150370M 497092M 3660G 568961M 152693M 254278M 353173M I am running an Access Query and I am trying to figure out what criteria do I need to insert for just showing only two digits before "M" …

Member Avatar for urtrivedi
0
90
Member Avatar for sciprog22

Hello, I am testing the following applet on my webpage: import javax.swing.*; public class Hello extends JApplet { public void init() { JOptionPane.showMessageDialog (null, "Hello World"); } } My Hello.html file from BlueJ: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <!-- This file automatically generated by BlueJ Java …

Member Avatar for sciprog22
0
142
Member Avatar for jalmeida

Im puzzled, the thing is, i have a software that was running ok, with a connection of to access 2010 db. A rotine to add a customer, to the database that was already coded, started to fail. saing that the insert method of the tableadapter was not avalaible. the tableadapter …

Member Avatar for G_Waddell
0
200
Member Avatar for skyyadav

This is my output { { d: { a e } } { e: { b c d } } { b: { a e } } { c: { a e } } { a: { b c d } } } I used this to_string to print this …

Member Avatar for JamesCherrill
0
92
Member Avatar for Nebil

I wanted to multiply two values from two different tables. I have a quantity filed stored in one table and a unit/rate field in another. How can i write the sql statement based on a condition and store that multiplied result for further actions.

Member Avatar for G_Waddell
0
234
Member Avatar for ddanbe

Greetings. Is there an easy way for an app to find out at runtime, if it is a console app or a form app? Any answer would be greatly appreciated.

Member Avatar for ddanbe
0
229
Member Avatar for bertha

Hi Guys i am working on quiz test,but i have stuck on next flag question button ,my code is not working at all.Can any body assist me please private void btnNextFlagQuestion_Click(object sender, EventArgs e) { i=0; for(i = 0; i<10;i++) if(i<10) MessageBox.Show ("messagebox you have finished" ); } if (User_Answer[] …

Member Avatar for Ketsuekiame
0
131
Member Avatar for lillorme

<?php require_once('connections/careergroup.php'); ?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . …

Member Avatar for phaneendrahari
0
280
Member Avatar for HunainHafeez

Like i heard that string is immutable mean cannot be changed once created so i tried: String name = "Hunain"; Console.Write("String_replaced="+ name.Replace('i', 'y') + "\n"); according to someone, string.Replace('','') throws a new object and doesn't modify existing string but it did like in above example, neither i stored it in …

Member Avatar for Nguyễn Đình Đại
0
210
Member Avatar for Nebil

H guys, I just faced a probelm with my code.It raises an exception.This is the code. conn = oSubPayItemDescription.GetDbConnection() cmd = New OleDbCommand("SELECT [sub_pay_item_quantity].[quantity],[sub_pay_item_unit_rate].[rate] FROM " & "[sub_pay_item_quantity],[sub_pay_item_unit_rate] WHERE [sub_pay_item_quantity].[sub item]=[sub_pay_item_unit_rate].[sub item] AND " & "[sub_pay_item_quantity].[sub item]='" & subItem & "' AND [sub_pay_item_quantity].[bridge type]='" & bridgeType & "' " & …

Member Avatar for G_Waddell
0
211
Member Avatar for MasterHacker110

I am trying to let my website create a cookie on the user's system so that it will know if the user is logged in or out. But it doesnt seem to work. Here is my javascript cookie code: function createCookies() { // Creates a cookie on the user's computer …

Member Avatar for MasterHacker110
0
266
Member Avatar for tqmd1

Dear Sir, Please help me to locate errors in following coedes <html> <head> <title>PHP</title> </head> <body> <?php echo "Your name is:"." $_GET['text1'] </br>; echo "Your city is:"." $_GET['text2'];</br> echo Your mobile is:"." $_GET['text3']; ?> </body> </html>

Member Avatar for tqmd1
0
64
Member Avatar for Asif Naveed

hi i am new in the development field i want a little guide line about the WYSIWYG editor i have website and i want to integrate a wix html 5 type http://www.wix.com/ editor in it i try to edit the tinymce editor but i does not found it flexible as …

Member Avatar for diafol
0
414
Member Avatar for Judson

Hello I am working on this code for a hotel reservation. so far I am stuck on the part which requests that fridays and saturdays be charged 150 instead of the 120 usual cost per night. I have dateTime variables for the arrival date and departure date and a timeSpan …

Member Avatar for Judson
0
1K
Member Avatar for fasanay

Hi Guys / Gals - Is there any way to track your AxWindowsMediaPlayer1 when it reaches the end of the Playlist, I am doing a Play / Pause Button but it goes on looping the playlist endlessly, so I was just hoping if I can know it has reached the …

Member Avatar for Gé48
0
690
Member Avatar for Swirly

I am trying to create Dijkstra's algorithm for a weighted graph, and have a flaw, I believe, in the implementation of the basic algorithm. It only visits the nearest nodes, checks the edges, but nothing else. Right now, I'm afraid I'm too close to this to see what's going on. …

Member Avatar for kal_crazy
0
282
Member Avatar for hema_24

Hi Experts, i have file called condition_file and the data in this file looks like.... condition_file * K 01 * J 02 * H 03 * I 04 I am using below code to read the file condition_file and place the values into an hash open F, "$condition_file" or die …

Member Avatar for 2teez
0
212
Member Avatar for TheNewKid

Hey everyone, I am working on a win32 project right now and I have a few buttons that I wanted to change how they look so I gave them the BS_OWNERDRAW property and drew them myself. Now sense I am using ownerdraw there is no visual indication of when someoone …

Member Avatar for tinstaafl
0
291
Member Avatar for joester007

I'm having trouble with this part.My professor wants us to do this, when each button is clicked it 'gathers' the input and calls a sub named Result. I'm guessing we're suppose to use a Sub names Result that will call the other sub procedures. this is what I have so …

Member Avatar for tinstaafl
0
188
Member Avatar for 9tontruck

/php/FrontController.php namespace FrontController; class FrontController { public static function add($a, $b) { return $a+$b; } } /project/index.php use FrontController; echo FrontController::add(4,5); error message: Warning: The use statement with non-compound name 'FrontController' has no effect in C:\wamp\www\project\index.php Fatal error: Class 'FrontController' not found in C:\wamp\www\project\index.php I want to use namesapces instead …

Member Avatar for 9tontruck
0
146
Member Avatar for ramy84

hi , i am trying to write code to remove specific word from the text entered by the user do do { Console.WriteLine("enter your text"); input = Console.ReadLine(); text = input.ToLower(); result = text.Replace("remove", ""); Console.WriteLine("Edited text:" +result); } while(text == null); { Console.WriteLine("enter your text"); input = Console.ReadLine(); text …

Member Avatar for Fenrir()
0
376
Member Avatar for kcrazy

Ive been coding in PHP for over a year now. I was thinking to learn a PHP Framework. After googling around, i found few top frameworks such as Zend, CakePHP, CodeIgniter and Symfony. Still, im not able to choose between these. Can anyone please suggest me the best one ? …

Member Avatar for jkon
0
443
Member Avatar for Shari_1

Hello. I'm trying to print out some information using JSon. However, I'm not getting the numbers I expect. Can anyone see what I'm doing wrong? Let me tell you about my code. Price is supposed to hold the price for a product. Variable out is my output. The function getBill …

Member Avatar for Shari_1
0
218
Member Avatar for jonsan32

I'm trying to get this script to work. I want an image displayed based on the current holidays throughout the year. Any help would be great. Thanks a ton! <script type="text/javascript"> function H(){ var s=new Date(); var isHalloween= (s.getMonth()==9 && s.getDate()>26) || (s.getMonth()==10 && s.getDate()<3); var isXmas= (s.getMonth()==9 && s.getDate()>26) …

Member Avatar for jonsan32
0
285
Member Avatar for Denmbithi

hi everyone i need your help, i ave a project where by i have to create a simple mortgage calculator. the problem is that i have to create a login frame where it will redirect me to the main frame which is the calculator.Could someone show me how to switch …

Member Avatar for Seldar
0
243
Member Avatar for HunainHafeez

connection pooling in asp.net 8 minutes ago|LINK i searched and read many posts on google about CONNECTION POOLING, it says that it's an temporary memory to keep all then database connections and are used when requests are made to use it but i couldn't figure out its exact meaning like …

Member Avatar for HunainHafeez
0
376
Member Avatar for tinku.cater

write a program that asks the user to enter five test scores. the pogram should display a letter grade for each score and the average test score. write the following function in the program. calc_average-this function should accept five test scores as a argument and return the average of the …

Member Avatar for vegaseat
0
335
Member Avatar for james.lu.75491856

import os import web import traceback import datetime from functools import wraps ### Url mappings urls = [ '/', 'index', ] def addfolderhandler(f,root): u = os.path.join(root,f) u=u.strip("/").strip("\\") ident=u.lstrip("C:/Users/James/Desktop/it").replace("/","SLASH").replace("\\","SLASH").replace(".","DOT").strip() #replace invalid python expressions with valid ones globals()[ident] = "<h1>Directory listing for:%s</h1><hr>"%u+''.join(["<a href="+i+">"+i.lstrip(root)+"</a><br/>" for i in os.listdir(u)])+"<i>Python Server</i>" if ident=="": return try: …

Member Avatar for vegaseat
0
261
Member Avatar for Vinolia

As you know the inventor of the game chess was quite a clever fellow. As the story goes the inventor presented the game to the king and the king was quite pleased. The king asked what the inventor wanted as paym ent. He asked for a grain of cereal for …

Member Avatar for vegaseat
0
416
Member Avatar for Badgeking

I am working on a school project to create a basic, educational game. I started with the amazing code written by cactusbin and revised by Gareth Ress found [Here](http://codereview.stackexchange.com/questions/15873/a-small-bejeweled-like-game-in-pygame/15895#15895) for the basics of a bejeweled style game. The game objective is to match letters of DNA to make correct pairs …

Member Avatar for vegaseat
0
525
Member Avatar for XTMercenary

OK my original idea was to create a revision application for android using flashcards that a user could create. the application would provide statistics for how well the person was doing with their revision eg. no of cards correct/incorrect etc. I was then hoping to have an online database where …

Member Avatar for JamesCherrill
0
146
Member Avatar for gahhon

<system.web> <customErrors mode="On" defaultRedirect="/ErrorPages/404.aspx" redirectMode="ResponseRedirect"> <error statusCode="404" redirect="/ErrorPages/404.aspx"/> <error statusCode="401" redirect="/ErrorPages/401.aspx"/> </customErrors> </system.web> Inside my web.config i have thise configuration, but will them redirect to specifiy statusCode rather than doing in code behind. Let's said the user is not allowed to go into the Manager side, will this automatically redirect …

Member Avatar for JorgeM
0
154
Member Avatar for castajiz_2

Hi guys. for several weeks i can t make my mind whether to go and learn php or should i stick with my C# knowledge and learn ASP.net. I ve started to programming in C# 2 years ago, learned sql and databases and learned html css when i was still …

Member Avatar for JorgeM
0
136
Member Avatar for Pyler

import java.util.NoSuchElementException; import java.util.Stack; public class StackList<T> implements SomeList<E>{ /* Comments * only use offer(), poll()/remove, isEmpty(), and size() methods*/ private Stack<T> stack=new Stack<T>(); public StackList(){ Stack<T> stack=new Stack<T>(); stack=stack1; } public void push(T thing){ stack1.push(thing); } @Override public T pop(){ if(this.isEmpty()){throw new StackOverflowError();} return stack1.pop(); } @Override public void …

Member Avatar for JamesCherrill
0
229
Member Avatar for mherz

Hi! I need some help on this. I have the checkbox name chkitems: here's the data: <asp:CheckBoxList runat="server" ID="chkitems" Font-Names="Tahoma" Font-Size="Smaller" RepeatColumns="3" RepeatDirection="Horizontal"> <asp:ListItem Value="1">Item 1</asp:ListItem> <asp:ListItem Value="2">Item 2</asp:ListItem> <asp:ListItem Value="3">Item 3</asp:ListItem> <asp:ListItem Value="4">Item 4</asp:ListItem> <asp:ListItem Value="5">Item 5</asp:ListItem> </asp:CheckBoxList> Below on this script is the button name "cmdSelectedItems". What I …

Member Avatar for gahhon
0
211
Member Avatar for jalmeida

Hi, i need some help if possible. I designed a software on vb 2012 with a local access 2010 database, it runs ok,it add's delete and changes record's. However when i start the software it deletes the added records on the previous session. the software is designed with the dataset's. …

Member Avatar for G_Waddell
0
135
Member Avatar for cambalinho

i have 1 class Multithread, but seems that i have some errors:( #include <process.h> #include <string> using namespace std; class MultiThread { private: void * b; public: void ParameterList(void *c) { b=c; } void Thread(unsigned (__stdcall*) (void *) ) { _beginthreadex(NULL, 0, (__stdcall*) (void *) , b, 0, NULL); } …

Member Avatar for cambalinho
0
466
Member Avatar for chdboy

I am trying to update with this code Result.updateInt("bank_ac_no",Integer.parseInt(acnotxtfield.getText().trim())); //this is the line I'm getting error. Here is the Trace java.lang.NumberFormatException: For input string: "2737383928291819" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:495) at java.lang.Integer.parseInt(Integer.java:527) What's wrong?

Member Avatar for chdboy
0
2K
Member Avatar for DawnofanewEra

Why are some algorithm to solve TSP using dynamic programming can solve up to 10 cities while some can go beyond that...i.e. 10, 100 or more..!! What is the factor that determines the capability of the algortihm to solve more than 10 or less..??

Member Avatar for tinstaafl
0
1K
Member Avatar for BlackPhoenix

Hi everybody, I'm interested in creating a web crawler, but can't really settle on what I'd like the program to do. It's more of an exercise in the technology, and expanding it to achieve new, great things. I am proficient in Python, so I will naturally be using that language, …

Member Avatar for vegaseat
0
235
Member Avatar for priyanka.choudhary.90038

Hi, I do have doubt regarding const declaration in copy constructor. Can anyone let me know why do we need const reference in copy constructor, as we already know reference itself is const pointer.So why we should use const as a prefix in copy constructor. Regards, Mohan

Member Avatar for deceptikon
0
1K
Member Avatar for MasterHacker110

I am making a website that will keep online records of the users gaming data. But my problem comes in here: The user can create an account, if they dont have one, or login to an existing one. <a href="login.aspx">Login</a>&nbsp;&nbsp;&nbsp;<a href="" id="loginstate"></a> Now my link tag with the id "loginstate" …

Member Avatar for JorgeM
0
253
Member Avatar for Yorkiebar14

Hello! I am editing my website to make it more updated and have created a new couple of pages which use my Database. I created the script and the databases (and tables) and everything was working OK... until somehow the tables have got partially deleted. I say partially because if …

Member Avatar for Reverend Jim
0
343
Member Avatar for krystosan

How should I make an entry appended to existing entries instead of overwriting the whole file ? class ReadWriteCustomPathsToDisk(object): """docstring for ReadWriteCustomPathsToDisk""" def __init__(self, modulePath): super(ReadWriteCustomPathsToDisk, self).__init__() self.modulePath = modulePath def _xmlFileLocation(self): xmlFileLocation = os.path.join(os.path.expanduser("~"), "Documents","searchMethod","modules.xml") return xmlFileLocation if os.path.exists(xmlFileLocation): return xmlFileLocation def readXml(self): xmlFile = self._xmlFileLocation() root = etree.parse(xmlFile).getroot() …

0
113
Member Avatar for bobgodwin

I've been looking for the answer to this problem for a while. I'm using nyroModal in gallery to show php pages. but the popup doesn't resize the first time it loads. I use this link: <a href="galtest.php" class="nyroModal cursor" rel="gal"><img src="img/gallery/thumbs/OldMiami.jpg" class="Tips1" title="In the Backyard Of The Old Miami (Detroit, …

Member Avatar for JavaScprit
0
548
Member Avatar for pheonixkid

Hi i'm trying to study for c programming course midterm and there are few questions i have no idea why the answer is. could anyone describe why the answer comes out like these? #include <stdio.h> int main(){ int i = 3; if (((i+=3)&&(i++>6))||((++i>8)&&(i+=3))) printf("Yes. i is %d",i); else printf("No. i …

Member Avatar for deceptikon
0
121

The End.