199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Slavi

Hey guys, Just got a quick question ... I am implementing a client GUI, and part of the requirements are that the client is able to start, stop and restart the server. This got me a bit confused since the client connects after the server is running. What I am …

Member Avatar for Slavi
0
319
Member Avatar for Ravi_exact

How to replace only 1d values in 2d array after filter using numpy in python without loop i.e in pythonic way. I want to filter only t2 rows and replace values in second column ( middle column ). example: `>>> x = np.array([['t1',10,20],['t2',11,22],['t2',12,23], ['t3',21,32]])` >>> x array([['t1', '10', '20'], ['t2', …

Member Avatar for sneekula
0
4K
Member Avatar for LoveAntwinette

Can someone explain to me what I am doing wrong? I am trying to get a word to repeat the number of times as the number input. I tried a list box and a text box and I cant seem to figure it out. I am having trouble with a …

Member Avatar for Reverend Jim
0
415
Member Avatar for moaz.amin.37

if a gui have 2 text fields and there are 10 buttons(0-9) to input numbers in text fields then how it will choose that which field get input. this i problem in my gui i write 2 methods but not working my code is below public void actionPerformed(ActionEvent e){ if(e.getSource()==b1){ …

Member Avatar for moaz.amin.37
0
313
Member Avatar for haya_1

Hi, im having trouble to read from the keyboard the number of employees the user wants and in allowing the user to input up to 10 employees. package application; import dataStructures.*; import java.util.Scanner; /* this is the list of employees * */ private LinkedList<String> employeeList; /* constructor */ public TrainingCourses(){ …

Member Avatar for haya_1
0
132
Member Avatar for lester2020

Cannot seem to make the message box to not appear when I click cancel. Help please ! Private Sub btnEnter_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEnter.Click Dim input As String Dim total As Single Dim average As Single Dim count As Single Const msg1 As String = …

Member Avatar for Santanu.Das
0
174
Member Avatar for wbbb54

Write a program using user-defined methods. Write the following methods: 1. getPrice() which asks the user to input the original price of an item. 2. getDiscount() which asks the user to input the discount rate. The method should return the decimal version of the rate. For example, if the user …

Member Avatar for samson.dadson.3_1
0
318
Member Avatar for samuel1991

Hi all, my question is as follows: If I use the code as below: text = '中文' #Text is in Chinese, whereby text = 'chinese' with open('file.txt','w', encoding = 'UTF-8') as f: f.write(text) f.close() My file.txt on Windows notepad will show it as saved as UTF-8. However, if the text …

Member Avatar for samuel1991
0
660
Member Avatar for TheGuy831

Hi ive been trying hard to get a img url collection from a textbox.. or how to stop loop on 3rd img url please help me. Thank You.. Heres What ive Got.. URL: https://www.facebook.com/tony.trujillo.3517 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim PageElement As HtmlElementCollection = WebBrowser1.Document.GetElementsByTagName(TextBox1.Text) …

Member Avatar for tinstaafl
0
173
Member Avatar for abdul rahman 2
Member Avatar for J.C. SolvoTerra

I was just mucking around with a progress feature for some software, and thought I'd just put this wee demo up of a clocky type progress thing =0) Just Copy and paste the form code and watch it run. (p.s it's in degrees, note minutes and seconds) ![55f1addda67a729e91ae90c980c39deb](/attachments/small/4/55f1addda67a729e91ae90c980c39deb.png)

Member Avatar for J.C. SolvoTerra
0
255
Member Avatar for Adnan S.

I spent 4 hours trying to find out how I can add the digits of a number. Could you give me an idea?

Member Avatar for sneekula
0
960
Member Avatar for telmo96

Hey ya guys, it's my first topic on DaniWeb, sounds like a good place to find help with programming. :) Today I'm trying to compile a simple code made for PyQt4 using cx_Freeze, but I'm getting an error, I'll show you all the codes: [B]example.pyw[/B] [CODE]import sys from PyQt4 import …

Member Avatar for sneekula
0
3K
Member Avatar for COKEDUDE

Can anyone tell me why I have an infinite loop when reading from a pipe? i = 0; while(i < 10) { test_value = read(pipe3[READING], &message, sizeof(struct MESSAGE)); printf("test_value is %d \n", test_value); //printf("Entering infinite loop \n"); //printf("i is %d \n", i); //nbytes = read(pipe3[0], array, 45); //printf("nbytes is %d …

Member Avatar for COKEDUDE
0
595
Member Avatar for aluhnev

//why the getters declared twice,public,and than protected at the end of this code? And how to assign the copy constructor between this 2 classes? class Person { private: string name; string address; string city; string state; string zipCode; public: Person() {} Person(const string& aName, const string& anAddress, const string& aCity, …

Member Avatar for rubberman
0
157
Member Avatar for gcardonav

I have a step in my code where the application will check on the word entered by the user and compare it to the a word. My issue is that my original code was javascript and now I am not certain how to set it up for AngularJS. I had …

Member Avatar for gcardonav
0
324
Member Avatar for jordan.nunnery.75

create a program that will calculate the current grade in a classroom. The program should ask for 5 grades as well as the total point value per grade available

Member Avatar for samson.dadson.3_1
0
127
Member Avatar for silvercats

why do most people use brackets in this way when it comes to Java. Pospular IDEs also use this method by default class Test{ public void test(){ } } than this way class Test { public void test() { } } The second method is obviously easier to read.

Member Avatar for samson.dadson.3_1
0
507
Member Avatar for minhaajmuntasir.edoo

How do i access a masterpage hyperlink control from a content page in asp.net 4.0 using vb?

Member Avatar for JorgeM
0
88
Member Avatar for patk570

Hello, I have an array that returns city and state in this format: Detroit,MI I want it to be shown as Michigan/Detroit is there any way of doing this? Here is my foreach code: foreach ($i['popularCities'] as $a => $value) { echo '<li>' . $value . '</li>' . PHP_EOL; } …

Member Avatar for diafol
0
164
Member Avatar for xardoz

Here is a sample of the XML I need to get the <Order Header> Nodes, then loop through the <Order Detal> <Line> Nodes Using xml Reader "Using reader As XmlReader = XmlReader.Create(New StringReader(sFileContects))", i get all the header information, but cant properly parse the Line Iformation Using LINQ "Dim xd …

Member Avatar for xardoz
0
146
Member Avatar for entei

I'm fairly new to C++, I've only been learning it for 4 months now and I've been having problems with a template class file that i was creating for my project i kept getting the error [QUOTE] main.obj : error LNK2019: unresolved external symbol "public: __thiscall Intervals<float>::Intervals<float>(float,float)" (??0?$Intervals@M@@QAE@MM@Z) referenced in …

Member Avatar for Tarun_1
0
4K
Member Avatar for zebnoon1

Dear friends, I have an other problem in login form...my code is below.. //********************************connect to database and check**************************************************** $username = "root"; $password = ""; $database = "mydatabase"; $server = "127.0.0.1"; $conn= new mysqli($server,$username,$password,$database); // checkintin connection if($conn->connect_error){ die("connection failed:".$conn->connect_error); } //****************fetch the information from database for match username and password …

Member Avatar for zebnoon1
0
241
Member Avatar for RonKevinT.Manuela

I am able to delete the file from the database but not the file found on a folder associated with it...is there somethign wrong? <?php include("../includes/mysqliconnect.php"); include("../includes/config.php"); if(isset($_GET['delpost'])){ $delpho = $mysqli->query("SELECT * FROM photos where imageID=$imageID"); $run=mysqli_fetch_array($delpho); $imageName=$run['imageName']; $dir = '/uploads'; unlink($dir.'/'.$imageName); $stmt = $db->prepare('DELETE FROM photos WHERE imageID = …

Member Avatar for mark.suner
0
354
Member Avatar for fabregas42

<Aciklamalar> <Aciklama HaberKodu="20141101AW232013" ResimKodu="20141101AW232013_01"> <![CDATA[ YENİ MALATYASPOR MAÇINDA SAKATLANAN UMAR, KARŞIYAKA DEPLASMANINA GÖTÜRÜLMÜYOR. ]]> </Aciklama> <Aciklama HaberKodu="20141101AW232013" ResimKodu="20141101AW232013_02"> <![CDATA[ YENİ MALATYASPOR MAÇINDA SAKATLANAN UMAR, KARŞIYAKA DEPLASMANINA GÖTÜRÜLMÜYOR. ]]> </Aciklama> </Aciklamalar> Select HaberKodu text? Select <!CDATA text? Help.Thanks

Member Avatar for Santanu.Das
0
135
Member Avatar for dipakatcvrca

Hi All, While going through my project work, I just came across a situation, where I needed to alter my table. I needed to add a column at the beginning of the table, i.e. the first column of the table. We have syntax for appending a column to a table …

Member Avatar for faucon
0
5K
Member Avatar for Muzaffer_Ali

for(int i=0;I<20; i++) { `Inline Code Example Here` messagebox.show("the values is " '"+i+"'); } else { messageBox.show("ooops vlues is greater then 20"); }

0
59
Member Avatar for Gurjit_1

The code below is giving me the SIGSEGV error, segmentation fault at line number 66(found using debugger).According to me everything is fine but still don't know what is done wrong by me. Please someone help me out to sort the problem #include <iostream> #include <string> #include <fstream> #include <cstdlib> #include …

Member Avatar for Gurjit_1
0
2K
Member Avatar for Chtaylor5201

Can someone give me an idea on how to get started on this program? I have been having problems on this for a week and cannot get started. I understand this in visual logic but cannot get the total amound to print. Can anyone walk me through this or show …

Member Avatar for vegaseat
0
426
Member Avatar for juhitha

when i tried executing my java project i got the following errors Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: TRANSLUCENT translucency is not supported. import java.awt.Color; import java.awt.Dimension; import java.awt.GridLayout; import java.awt.Window; import java.awt.event.ActionEvent; import java.awt.event.KeyEvent; import java.awt.event.MouseAdapter; import java.awt.event.MouseEvent; import java.util.ArrayList; import javax.swing.AbstractAction; import javax.swing.JComponent; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; …

Member Avatar for JamesCherrill
0
530
Member Avatar for Dani

I keep seeing requests for browserconfig.xml in my server log. Rudimentary research shows that it is for IE browser settings?? I'm not sure I quite grasp the purpose. What are some use cases for this?

Member Avatar for cereal
0
165
Member Avatar for Nurul_2

Hello. I need some help to update two table.. This is my coding: $query = "UPDATE br.discharged_Date, b.book_Status SET br.patron_ID = b.patron_ID FROM borrow br INNER JOIN book b ON br.patron_ID = b.patron_ID WHERE b.patron_ID = '$patron_ID'";

Member Avatar for kamini_1
0
181
Member Avatar for sneekula

I have a tkinter program like the one below (for example) and want to create an executable file using module cx_freeze. I am using Python33 and Windows7. # Tk_circle2.py # draw a circle with given center (x,y) and radius # tkinter normally needs a specified square try: # Python2 import …

Member Avatar for vegaseat
0
2K
Member Avatar for cbutler7

hi, i am receieving a repsonse from googles json api that has the formatted_address but i want to extract the city and county from either the formatted_address which is displayed in a label (lblAddress.text) or the JSON file Google gave me. so for example: Palgrove Road, Pennywell, Sunderland, Tyne and …

Member Avatar for J.C. SolvoTerra
0
2K
Member Avatar for fonzali

hi , last night I downloaded pyzo package on my ubuntu 14.04 system , I just do not know how to get it working . any help is appreciated

Member Avatar for fonzali
0
346
Member Avatar for Inimitable

i using abstract method , and always prompt out wiv " not abstract and does not override abstract method " tis kind of error ublic abstract class Person { protected Name name; protected String address; protected String hp; protected String eadd; private static int counter; Person(Name name,String address,String hp,String eadd){ …

Member Avatar for Inimitable
0
246
Member Avatar for Simon180

Am trying to compile the following code in solaris 7 using sun workshop 5 below but I keep getting the following errors and have no idea how to fix it. ./timer.h, line 67: identifier redeclared: timer_create current : function() retruning pointer to void previous: function(int, pointer to struct sigevent {int …

Member Avatar for Banfa
0
203
Member Avatar for filipgothic

Hello, I have page with several sections, in each section form with submit button which will load table and execute mysql queries. I need help to make long tables in more pages, or at least make scroll so user don't have to take long time to go from part to …

Member Avatar for filipgothic
0
269
Member Avatar for destination0014

i have 5 rows and i want to store all row data into database but it is storing only last row data instead of all four

Member Avatar for gabrielcastillo
0
129
Member Avatar for Slavi

Hello everyone, I am getting NPE, and surprisingly I can't figure out why ... I am calling a method from a client using java rmi. The method on the server side is as follows : public List<String> getPrinters() throws RemoteException { List<String> listPrinters= new ArrayList<String>(); for(int i=0; i<printers.size();i++){ listPrinters.add(printers.get(i).getName()); } …

Member Avatar for Slavi
0
147
Member Avatar for Aws_1

hi guyz, currently i am using cortex m4, and i have to make a string reverse function that print the strings back ward. this is what i have done so far....* #include "derivative.h" #include <stdint.h> #include "clock.h" #include <stdio.h> #include"freedom.h" #include "uart.h" void stringreverse(char array[3]); int main(void) { clock_initialise(); char …

Member Avatar for Aws_1
0
230
Member Avatar for michaelg87

I have this code snippet: for (i=0; i<=100; i++) { a[i] = b[i] + C ; } I am trying to figure out what this would look like in MIPS assembly with these rules: > Assume that a and b are arrays of words and the base address of a …

Member Avatar for Schol-R-LEA
0
272
Member Avatar for chaitu11

Problem:On click logout it again shows the html page content which i dont want to show <?php session_start(); if(isset($_GET['action']) == 'logout'){ session_destroy(); unset($_SESSION['user']); unset($_SESSION['pass']); echo '<pre>'; print_r($_SESSION); //header('location:index.php/'); exit(); } if(isset($_SESSION['user'])== ' '){ header('location:index.php'); exit(); } if( !( isset($_SERVER['PHP_AUTH_USER']) && $_SERVER['PHP_AUTH_USER'] == "a" && $_SERVER['PHP_AUTH_PW'] == "a" ) ){ header('WWW-Authenticate: …

Member Avatar for minitauros
0
121
Member Avatar for munchlaxxx

If checkForm is false, I don't want the form to submit. And if checkForm is true, I would like the form to submit and the action=POST to work. I've seen several examples online where people have VERY similar code and theirs supposedly works. So what am I doing wrong? Is …

Member Avatar for minitauros
0
391
Member Avatar for Rahul47

Greetings, I am dabbling with my little code here. Problem is mouseout event handler is getting executed thrice instead of twice. var img=document.getElementById('newImg'); img.addEventListener('mouseover',function(e){ e.target.width+=200; console.log(e.target.width); img.addEventListener('mouseout',function(e){ e.target.width-=200; console.log(e.target.width); },false); console.log(e.target.width); },false); ![89e5b5d855500aa477198af64c4e1bb1](/attachments/large/4/89e5b5d855500aa477198af64c4e1bb1.jpg "89e5b5d855500aa477198af64c4e1bb1")

Member Avatar for minitauros
0
200
Member Avatar for MasterHacker110

I use Delphi 7 to develop programs, but the programs that I make, UI looks outdated. I was wondering if there is an option that I can adjust how to generated UI looks like? Thanks.

Member Avatar for Glenn9999
0
659
Member Avatar for moaz.amin.37

i read adapter classes everything is write but i am confuse about Listener Interfaces and Adapter classes concept priblem is that when java create adapter classes it implements corresponding interface and privide defination with empty bodies of all methods that are present in interface this is declaration public class WindowAdapter …

Member Avatar for moaz.amin.37
0
553
Member Avatar for LittleBiscuitz

Hi i am creating a lottery program and i have managed to get it so the user enters 6 numbers into the program then it will generate random numbers the problem is that the numbers the user enteres can be duplicate i need help trying to not make them duplicates.here …

Member Avatar for zolymo
0
1K
Member Avatar for dinhunzvi

i have the following code <?php require_once 'includes/initialize.php'; set_include_path( get_include_path() . PATH_SEPARATOR . CHARTS_PATH); require_once "class/pDraw.class.php"; require_once "class/pImage.class.php"; require_once "class/pData.class.php"; // create data set $myDataset = array(0, 1, 1, 2, 3, 5, 8, 13); $myData = new pData(); $myData->addPoints( $myDataset ); $myData->setAxisName( 0, "Numbers" ); // define image object $myImage …

Member Avatar for Mahesh_12
0
682

The End.