199,114 Archived Topics
Remove Filter ![]() | |
I have this script which can calculate the total of numbers given in a string total = 0 for c in '0123456789': total += int(c) print total How should I modify this script to find the total of if the numbers given in the string form have decimal places? That … | |
Dear friends, I developin a webside in php where clients can send their enquiry of material.I have text boxs which clients will fill when click add button this enquiry will goto down table on a same page.. Please give me idea.?? | |
A company has 100 employees who receive a monthly salary ranged from 1000QR to 50000QR. We can represent the employee by an array of 100 elements as follows: double MonthS[100]; Q1: Write a for loop to fill-in the array with data. Q2: Calculate the average salary of employees. Q3: Find … | |
Hi, I need to read text from file and then as outcome show separate words, but shuffled. I tried few codes but non of these works for me. I'm getting output, but it do not shows words, but some signs only. I'm posting both codes.. #include<stdio.h> #include<string.h> #include <stdlib.h> #include … | |
Does anyone know how to install a new locale on Apache that comes with Xampp for Windows? I'm trying to find an answer with Google but it only shows results for "local" instead of "locale" -_-. (I want to install a Dutch locale. It might even be in there already … | |
On my Raspberry Pi computer I did a search for PIL and matplotlib with apt-cache search python but could not find anything close in the list. Is PIL/Pillow and matplotlib available for Linux and what is it called? The Raspberry Pi has Python27 and Python32 installed. | |
Hi, I've developed VB.NET Application successfully and its working completely.. This aplication for my personal purpose. Now i need to take backup copy of databases into Online Storage... is there any methods to store at online. I'm using Ms-Access Database.Please Help me... | |
hi, I've developed a VB6.0 Application and i created Package. now i need to set Productkey or some systems which are allowed by me only can install my application... is there any techniques to do like this.. some of my friend told that we can do this using MAC address … | |
My project is finished but lecturer demands everything in one file i created multiple to help ease everything and now cant combine them | |
Dear fellow programmers, I have tweaked this code for some time, and again failed. I want the user to select a client in the combobox and its text, with date range (two datetimepickers) the results will show in a click of a button. CODE for DataGridView search results: Dim ConnectionString … | |
Hey guys, I am making a small script here and I got stuck on it a bit ... perhaps one of you could help me out The idea is to send an email that has attached zip file to it. My script is import smtplib import zipfile import time from … | |
We add a Default Tweet Button API on my site. it's work perfect and load new window and send the tweet. but i want to get the value of the tweet count id. or if anybody click on the tweet button and submit a tweet . then my page show … | |
I am damn confused between these two terms. Can anyone explain this using some example? Thanks in advance. | |
what's the wrong with this code ?? ..it doesn't make the prossecc just typing the marks then nothing !! //program to get degrees of ten students in exam and compute the average exam degree of them #include<iostream> using namespace std; int main() { int mark,i; int average,sum=0; cout<<"enter 10 marks … | |
Hi! I am trying to do this project for my Comp Prog class. The Project assignment is "Create an application that prompts the user to enter his/her and last name in a single text box. The program returns the user initials in uppercase". This is what i have. I am … | |
hi everyone, how can i retrieve the data from sql serve2008 and put it in array using vb.net2010. Can anyone help me with this? | |
I'm working on a server and client program. Data will be exchanged between the server and client. This data will be encrypted. The server will always generate the salt and the IV. The client will receive the salt and IV and use it to encrypt / decrypt the data that … | |
hello. i have a div and a list of images. these images are cloned into the div by clicking on a button using `.append()`. the issue is that the elements gets cloned outside the div when it reaches the bottom of the div. and i dont want to have to … | |
I have the following javascript code var list = [ { Date : '00/00/0000', DateStart: '00/00/0000', Name: 'string', ... ... }, { Date : '00/00/0000', DateStart: '00/00/0000', Name: 'string', ... ... } ]; var column = list.?; What can I do to the `column` variable has the Date value, for … | |
I have the following javascript code var list = [ { Date : '2014-12-31 12:23:43', DateStart: '1980-12-30 23:43:42', Name: 'Kate', ... ... }, { Date : '1978-05-21 23:43:65', DateStart: '1973-04-06 12:34:09', Name: 'John', ... ... } ]; And the following code to verify for regex pattern: for (var i in … | |
Hello, I had a working ASP.Net (VB.Net) website which utilized a javascript routine during StartUp. It would do a document.getElementsByTagName("input"); to find all of the Input objects and then selectively work on their style values as initialization processing. It all worked fine. var elemInputs = document.getElementsByTagName("input"); for(var i = 0; … | |
Write a C++ program that will print the pattern as shown below: Output: * *** ***** ******* ********* ********* ******* ***** *** * | |
Dear fellow programmers, I have a problem. I want to debug my application but WHENEVER I debug it shows the following error in the error list: Error 1 Unable to read manifest 'My Project\app.manifest'. Could not find file 'C:\Users\david\AppData\Local\Temp\cl1aygzo.dll'. Golden Dragon Billing System I just click 'No' whenever that popup … | |
In the following code : what's the difference between int and int& ? and what does it mean ?? i got something that n2 and n3 are changed only but not n1 and n4 !! is that related to (int& ) ?? #include <iostream> using namespace std; void change(int,int&,int&,int) int … | |
For one order XYZ can be a buyer and for different order XYZ will be a seller. how to assign buyer and seller responsibilities to users per order basis. give me some example of table structure. thanks in advance | |
Can you please help me do a asterisks of pyramid using the drawbar function, im new to c++ please help. Thank you in advance this is the drawbar function: the output should look like: * *** ***** ******* /*Overloaded drawbar() program.*/ #include<iostream.h> void DrawBar(int Length) /*Diplays a bar of asterisks … | |
private void Login_page() { var i = 0; while (i < 5) { if (textBox1.Text.Equals("admin")) { if (textBox2.Text.Equals("parth")) { } else { textBox1.ResetText(); MessageBox.Show("passwod is wrong try agine"); i++; } } else { textBox2.ResetText(); MessageBox.Show("username and password is wrong"); i++; } } if (i == 5) { MessageBox.Show("you tried max … | |
I have a custom php function for my multiple upload function. I cannot figure out how to make it so when I insert the file name to the database that it matches the row id, of that insert. How can I make it so. When I create a new banner … | |
I want to output the annual salary for each employee individually but I'm not sure how. The way it is now it just pops up as one large box. Any help is much appreciated :) public static void main(String[] args) { // TODO code application logic here String increase, Salary, … | |
I am using a JTabbedPane with three buttons. The program is running fine except that the buttons remains small even if you resize the window. Is there a way of setPrefferedSize for them? here is the code if it helps: public final class JTabbedPaneDemo { JFrame frame; JTabbedPane pane; JPanel … | |
So I have a website and it looks completetely normal in Google Chrome. When I open it up in Mozilla Firefox, there is 1 heading that won't word-wrap unless I make the font 1px bigger. So instead of looking like this: Welcome To Weblup! It just looks like this on … | |
Hi, I need to change the nice value of a process, but not sure how to do it. My process has a priority of 0 when it is launched , i need to decrease it to some +ve value. I know we use os.system("renice -n value -p pidof process"). to … | |
Hi Everyone, I am trying to generate an error message in php. I have two drop down boxes on a website I am helping with, One for product, One for Size. Product is either shoes or hand bags. Size is a drop down that has different shoe and handbag sizes, … | |
hya i have purchased a script package for my site and im having problems with the photos upload page i can upload a photo but when i go to save it im told to make a selection i cant make the selection as there is nothing to select and ive … | |
Hi I am having issues with a function that I created, I execute the below function on load on another page. I would like it to enable all the inputs if a check box is selected or disable all inputes if it is not. This works but it only works … | |
Hey guys, I am a bit confused here ... making a script to brute force through a dictanary the password of a zip file and it seems to work fine except that it won't stop when the password is found. And when it prints the password it just prints the … | |
Hey guys, I am making a script here to read from windows registry. The problem that I am facing is that at a certain point I start getting an error that the file does not exist. First Here is what I am doing `net = r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkList\Signatures\Unmanaged"` `key = OpenKey(HKEY_LOCAL_MACHINE, … | |
Hello All; What i need to do is to display 1000 logs coming from the server into 20 rows continuously.Does anyone have any idea?? I am storing the data strings coming from the server into the vector container. And that i have to display continuously from 0th Row row to … | |
Hi i have created a events script for my members to post there planned event all is working there but i want it where all members will see the events that other members have submitted in a list style like My list of events : Type: Meet at your place … | |
Hi everybody I wanna know there is way to separate fonts by type for example : i wanna load all arabic fonts to a combobox only Thank you | |
Can anyone tell me what im doing wrong here ? I just want to detect the last word of the sentence and if not found to show "Not found." here is the code: String[] items = { "Iphone", "Computer", "Car" }; String field = Field.getText(); String text = "I want … | |
How can I convert html to image? | |
Hello i have a problem with my website. It is running slow. I asked the my server provider why is that, and they replied its because the webiste uses many embedded urls like youtube, vimeo, dailymotion and so on. And so i have to cache these embedded urls. I tried … | |
Hello guys, I create a software in vb.net to consulte my database (mysql) with table adapter and connections string, normal and simple application. Now I need to make a publishing, but when I install the aplication in another intranet pc, this pc cant connect my database. I know i need … | |
This problem is troubling me from so long time. There are N scientists, K black holes, and any scientist can query about radius, size and temperature of any blackhole. You have to answer three kinds of query basically: 1)Given Scientist queried for which blackholes,Given scientist queried for which attributes 2) … | |
Yo whats up. I need help building a chat bot in python. I put together a 'special engine' (terms I found while searching the web- special and matrix engine(they translate user input)) basicly the special engine is a bunch of sentences that each have a few responses attached to them. … | |
I improved my AES encryption code, I now generate a key from a password of any length. But now I dont know if I'm generating a 128, 192 or 256 bit AES key. Here is my code: import javax.crypto.spec.PBEKeySpec; import javax.crypto.spec.PBEParameterSpec; import javax.crypto.SecretKey; import javax.crypto.SecretKeyFactory; import javax.crypto.Cipher; public class AESCipher … | |
what are the disadvantage of multiple inheritance? |
The End.