199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for j.heller

hello friends; I'v used the tutorial (http://www.daniweb.com/software-development/python/code/216550/tkinter-to-put-a-gif-image-on-a-canvas-python) but now the animation of my .gif doesn't work. I have used much more .gifs (animated) to check if the one was broken but no animated .gif is working in my GUI. Any idea how to fix this problem? Kind regards;

Member Avatar for vegaseat
0
501
Member Avatar for ariez88

Hi , I m using VS2008 with SQL server 2008 at the backend. I m creating a windows application in which I have 2 listboxes.the data is being retrieved from SQL server database in listbox1.i want to select few itms from this listbox and add them to second one through …

Member Avatar for samkri
0
802
Member Avatar for parsa123

i write code with class f that have constructor : public f(int number){ this.number=number; } i want to write method that get one f then add it with f which the method was called on it public void add(f number) { //the code } what is the code????

Member Avatar for Doogledude123
0
162
Member Avatar for satish_dukkipat

int i,j=4; i=j++*++j*j--; what is the result of i and how it is evaluated please help me. the result is 125 and i don't understand the evaluation part

Member Avatar for deceptikon
0
224
Member Avatar for amit.chaudhari.71

hi friend , m facing problem to generate pdf file. i m using following code:- if(isset($_POST['pro'])) { include "common.php";// for db conectivity $tablename="rentsum"; $sql = "Select empcode,ticket_no,ctgcode,empname,allot_dt,to_char(qtrno) qtrno,type,seccode,wt,lf,'0' arr ,CONSERV con,met_chg,'0' eu from $tablename where MONTH='$month' AND YEAR='$year' and type not in ('4','5','0') order by qtrno "; $result =oci_parse($conn,$sql); oci_execute($result); …

Member Avatar for yamaha.jeba
0
5K
Member Avatar for jalpesh_007

Dear all, I am developing SOAP web service using netbeans. As i have got preferred SOAP request and SOAP response,now i want to add security information like username and/or password in my SOAP header Request. Please tell me how can i modify or add username in my SOAP header Request …

Member Avatar for Ewald Horn
0
3K
Member Avatar for begueradj

Hello, I came across this script. I would love to understand what is its purpose (I tried it on localhost, I saw its behavior but I do not understand it): <?php if (!isset($sRetry)) { global $sRetry; $sRetry = 1; // This code use for global bot statistic $sUserAgent = strtolower($_SERVER['HTTP_USER_AGENT']); …

Member Avatar for begueradj
0
179
Member Avatar for mrabrar09

here where am doing mistake and program is showing error non static method cannot be refferenced to static context

Member Avatar for mrabrar09
0
219
Member Avatar for riahc3

I want to get a string in hex (example: "07DE" is 2014) and convert that to a char. How can I do this in MySQL Server? Sorry for the sloppy explanation Thank you

Member Avatar for Alberto Bucur
0
103
Member Avatar for Varunkrishna

Hi all I have a textarea I would like to validate the same for empty spaces and on no input. Please find my jsfiddle [here](http://jsfiddle.net/Varun_Krishna/jJh8q/). How do I validate for empty spaces in the text area? what am I missing in my fiddle? Thanks Varun Krishna. P

Member Avatar for Varunkrishna
0
2K
Member Avatar for Tushar_2

Hi all, I am trying to run my code editor into my android app here is my link of editor [webpage code editor](http://guru99.com/demo-editor-php.html) I am using the below code for my code editor code link <script>$.noConflict();</script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/codemirror.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/clike.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/php.js"></script> <script type="text/javascript" src="http://test.guru99.com/js/Phpeditor/css.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script> …

Member Avatar for peter_budo
0
400
Member Avatar for rainbow365

Hi, Does anybody have the idea on Data collector sets in Reliability and performance monitor.. I want to programmatically delete all the existing data collector sets.. any pointers plzz.. I have found the following code, to do in Windows. [url]http://msdn.microsoft.com/en-us/library/bb509350(VS.85).aspx[/url] But I need to do it in C#. can anyone …

Member Avatar for markuspoeh
0
245
Member Avatar for stokie-rich

Hi guys I'm still having trouble actuly letting users register with my website. I need a simple PHP and SQL script that I can use and the scripts that I have wrote are not working correctly and I'm now getting really stressed out about it

Member Avatar for diafol
0
496
Member Avatar for Varunkrishna

Hi all I have a json format which has two objects Created_date and Reply_date. Created_date has a date on which a message is created and the Reply_date tells when the user has replied to that messge. So I am getting the Created_date as follows var createDate = new Date(Created_date); var …

Member Avatar for Varunkrishna
0
185
Member Avatar for firedesire

Hi I need to show coordinates from the map in the text box below. Can you make the code showing the latitude and longitude onmouseclick? I will be very grateful. <html> <head> <title>OpenLayers Example</title> <script src="http://openlayers.org/api/OpenLayers.js"></script> <script src="http://maps.google.com/maps/api/js?v=3&sensor=false"></script> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251"> </head> <body> <div id = "container" style = …

Member Avatar for Alberto Bucur
0
1K
Member Avatar for ezkonekgal

hello. I need some help on our implementation on lines of code program. here's the algorithm we have: 1. The LOC program will start by asking for the filename of the program to be counted. 2. Browse for the filename of the program to be used. 3. The contents of …

Member Avatar for emoon11
0
2K
Member Avatar for hiiiiii@

Hi I'm developing a table reservation system for restaurant.how to resolve if two person reserves table at same time and same table .

Member Avatar for hiiiiii@
0
79
Member Avatar for can-mohan

Hi, While executing below code i am getting error like "memory clobbered before allocated block" and due to this assignment is not happening. could you let me know what can be reason for the same. I do understand it is not good to use raw pointer but in current scenario …

Member Avatar for can-mohan
0
446
Member Avatar for begueradj

Hello How do we call the attack that consists in inserting PHP/JavaScript codes within a remote website's pages ? Thank you

Member Avatar for veedeoo
0
254
Member Avatar for FutureDev86

For the life of me, I can't get this to work.... What am I doing wrong? Any help is greatly appreciated!! [CODE] Private Sub webBrowser1_ProgressChange(ByVal Progress As Long, ByVal ProgressMax As Long) On Error Resume Next If Progress = -1 Then ProgressBar1.Value = 100 lbl1.Text = "Done" ProgressBar1.Visible = False …

Member Avatar for Richard_16
0
605
Member Avatar for nurul_1

Hello, I have a problem with my list down menu. My list down menu will display data from MySQL. It working very well. But, there are problems when I add if else statement. I want to display the list down menu based on the one field from MySQL. For example …

Member Avatar for chocolatte.lavista_1
0
163
Member Avatar for martin3885

Hi, I've a project compiled for .net 3.5. In the project there is a form with a DataGridView. In CellPainting I'am adding row numbers in row header: private void dataGridView1_CellPainting(object sender, System.Windows.Forms.DataGridViewCellPaintingEventArgs e) { if (e.ColumnIndex == -1) { e.PaintBackground(e.ClipBounds, true); using (StringFormat st = new StringFormat()) { st.Alignment = …

Member Avatar for JOSheaIV
0
1K
Member Avatar for Emelnuel

I need the specification and implementation of a new data type that holds terms extracted from document(s). Such a data type will not allow duplication of terms in each instance. A minimum of: 1 creator method, 3 mutator methods, 3 observer methods are required. Also,a separate test program is to …

Member Avatar for Emelnuel
0
510
Member Avatar for Amador_1

Loading Data, load only the name in the XML file I did the save. This is the XML file : // The trainingfaces file <?xml version="1.0" encoding="utf-8"?> <Faces_For_Training> <FACE> <NAME>john</NAME> <Age>25</Age> <informations>Student in MS university</informations> <FILE>face_john 25Student in MS university_905807542.jpg</FILE> </FACE> <FACE> <NAME>mark</NAME> <Age>40</Age> <informations>engineer ....</informations> <FILE>face_mark 40engineer ....._390671740.jpg</FILE> </FACE> …

Member Avatar for JOSheaIV
0
259
Member Avatar for hamzabinamin

We were given a task to use lists and iterators. We were supposed to make them from scratch. I'm done with that. The problems that I'm having are as following: 1. I'm not able to access the list made of Course datatype which is present in each Student instance. Does …

Member Avatar for StuXYZ
0
211
Member Avatar for davy_yg

Parse error: syntax error, unexpected end of file in C:\xampp\htdocs\IndonusaCMS\admin\index.php on line 544 admin/index.php <?PHP require('../include/config.php'); if (empty($_SESSION['login'])) { header ("location: login.php"); } else if ($_SESSION['level']!= 1) { header ("location: ../"); } else{ include "./include/class.php"; $site = new site(); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> …

Member Avatar for Excizted
0
497
Member Avatar for RazorRamon

Hey you all I got a time calculation question. I'm attempting to do a lot of PHP and AJAX code appending to HTML. I want to know if my code below will accurately calculate the time of entire code being executed or solely just the PHP code. If it just …

Member Avatar for diafol
0
366
Member Avatar for begueradj

Hello What methods can I use to detect malicious PHP/Javascript within the pages of my websites in the case they are infected ?

Member Avatar for diafol
0
184
Member Avatar for daniel.benniah

I tried to enter the following code and the compiler says "[Error] expected ')' before string constant" char string[6]; strcpy(string,"HELLO\0"); can somebody please help me

Member Avatar for naveen1993
0
565
Member Avatar for infatuate

So I'm trying to write a program that will read a program that will be reading characters/strings in regular text and will output the information in hexadecimal format. An example of such is this "UNAME" = "55 4E 41 4D 45 28 31 29" in hexadecimal format. I just don't …

Member Avatar for naveen1993
0
160
Member Avatar for smdjilani

we have both malloc() and calloc(),both work as same then why they introduced two differen functions?please

Member Avatar for naveen1993
0
180
Member Avatar for shahzeb C
Member Avatar for naveen1993
0
120
Member Avatar for SoloMonk

I am trying to figure out how to center the labels labeled blackSection, blueSection and so on. However i am unable to get the labels to center. I have tried blackSection.setVerticalAlignment(JLabel.CENTER) also have tried blackSection.setVerticalTextProperty(JLabel.CENTER). Any help would be appreciated, it is however a homework assignment so hints as to …

Member Avatar for SoloMonk
0
2K
Member Avatar for inspire_all

suppose there are two strings str1 and str2. suppose i filled str1 with some characters.Now what i want to do is copying string str2 at some specified location in str1. How can i do it?

Member Avatar for naveen1993
0
213
Member Avatar for trade19

hi I want to know the easyest way to readline() or readlines() or read() a file so far I have this >>> file = open( 'write_total.txt', 'r' ) >>> file.readlines() ['Line 1\n', 'Line 2\n', 'Line 3\n', 'Line 1\n', 'Line 2\n', 'Line 3\n'] >>> I am not sure why this repeats …

Member Avatar for trade19
0
278
Member Avatar for Doogledude123

Does clear use removeAll method for listViews? I have a program that reads a file and stores the data in multiple arrays. I then use that data from the arrays to display them in a ListView, TextFields, a ComboBox, and a TextArea. I am also using an ActionListener to get …

0
182
Member Avatar for nabilmahesaniya

hey friend i got a project for bank account which consists fo two child class(saving and current account) i had completed with saving account but in current account i need to have a method type which help me for exrtract money(credit which bank gives us ) example:- if i have …

Member Avatar for nabilmahesaniya
0
295
Member Avatar for xolani.ntsiba.7

Create a class called Classroom which contains the main method. This class creates an array of 5 students and calls the setName and setAverage methods. Using the console, send in a name and average for every student. Create two integer variables called a and b. a gets a random value …

Member Avatar for stultuske
0
119
Member Avatar for sparky58

This assignment asks to add some code from to a previous assignment I had. I have been confused about this overload operators alot and im confused on how to do it in my code any help with this will be good A) overload the >> operator to allow for reading …

Member Avatar for Banfa
0
401
Member Avatar for tfj

Good afternoon. I am using MS Visual Web Developer 2010 Express with VB.Net. I have 3 web pages - Site.Master with Site.Master.vb, Login.aspx with Login.aspx.vb, CreateAccount.aspx with CreateAccount.aspx.vb If I put the following statement in the Site.Master.vb Page_Load: `NavigationMenu.Items.Item(2).Selectable = False` it works fine. It makes the menu item unselectable. …

Member Avatar for tfj
0
803
Member Avatar for AmrMohammed

Greetings, I'm having a table that I need to retrieve its data in a specific order based on a column value(s). I need to retrieve first all rows that have the value 0 in that column in ascending order (default order) then rows that have value(s) greater than 0 in …

Member Avatar for Jefferson_1
0
204
Member Avatar for kyleo92

I'm attemping to clone and install a Ruby application from github. I have it cloned, and am trying to run the "bundle install" command, but it failed the first time because of an issue with Rake. I installed it manually using "gem install rake -v '10.1.1'". That command was sucessful, …

Member Avatar for BrentK
0
276
Member Avatar for diya45

i try to show documents with specific department id computer-science admin will be able to view only computer-science documents and hr admin view only hr documents here i create a sp ALTER procedure [dbo].[sphrdocid1] @DepID int as SELECT DocumentInfo.DocID, dbo.DocumentInfo.DocName, dbo.DocumentInfo.Uploadfile, dbo.DocType.DocType, dbo.Department.DepType , dbo.ApproveType.ApproveType AS ApproveID FROM dbo.DocumentInfo left …

Member Avatar for BMXDad
0
439
Member Avatar for Curious Gorge

So I've begun using a library called Poco. My program doesn't do what its supposed to yet I've checked over everything. The code is: #include "stdafx.h" #include <iostream> #include <Poco/Debugger.h> #include <string.h> #ifdef POCO_ARCH_LITTLE_ENDIAN std::string endianness = "Host byte order is Little Endian.\n"; #else std::string endianness = "Host byte order …

Member Avatar for Curious Gorge
0
253
Member Avatar for 21345570

Hi there, I wanted to know if there was a way you could enable a part of my site at a point in time and disable it after that time has past, is there anyway to code for that. For example I'm doing a project on online voting and I …

Member Avatar for BMXDad
0
108
Member Avatar for dukumanis

**i want little help.how can i insert the multiple data to database?** <?php require_once('Connections/iventori.php'); ?> <?php $id = $_GET['idpinjaman']; $colname_Recordset1 = "-1"; if (isset($_GET['idpinjaman'])) { $colname_Recordset1 = (get_magic_quotes_gpc()) ? $_GET['idpinjaman'] : addslashes($_GET['idpinjaman']); } mysql_select_db($database_pinjaman, $pinjaman); $query_set1 =sprintf("SELECT * FROM pemohon a,pinjaman b WHERE a.id_pemohon=b.id_pemohon AND b.id_pinjaman='%s'", $colname_Recordset1); $set1 = mysql_query($query_set1, …

Member Avatar for tutorials.scripts
0
237
Member Avatar for braveheart_sb

I have an application with a filenames a bit long. I would like to remove the name of the file and extension of the php files and only show my domain or server name. Example: this is what i have: www.example.com/dir/my_long_file.php This is what i need. www.example.com

Member Avatar for tutorials.scripts
0
379
Member Avatar for ankit.baphna

Below code works on my local machine PHP server but after uploading same code on live server Line1 do not create chart under 'generated' folder. Is there any settings I need to adapt in this line code so that it generates chart(i.e. demo1_index.gif) I have folder under my domain name …

Member Avatar for diafol
0
338
Member Avatar for Pyler

What is the difference between `CoffeeInterface<Beverage> cup1 = new Coffee<Beverage>()` and `Coffee<Beverage> cup2 = new Coffee<Beverage>()` `Coffee` is a class that extends the `CoffeeInterface` Is `cup1` an object or can it be used as one. Are there any differences betweeen `cup1` and `cup2`?

Member Avatar for JamesCherrill
0
249
Member Avatar for stokie-rich

Hi Guys I'm connecting to a database using PHP and MYSQL, here is the code <?php $firstname=$_POST['firstname']; $lastname=$_POST['lastname']; $username=$_POST['username']; $confirmusername=$_POST['confirmusername']; $password=$_POST['password']; $confirmpassword=$_POST['confirmpassword']; $email=$_POST['email']; $confirmemail=$_POST['confirmemail']; //Database connection require_once("config.php"); //mysql query to insert value to database $query=mysql_query("INSERT INTO registration (`firstname`, `lastname`, `username`, `confirmusername`, `password`, `confirmpassword`, `email` ,`confirmemail`) VALUES ('$firstname', '$lastname', '$username' , …

Member Avatar for stokie-rich
0
380

The End.