199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Trevor_5

trying to get the maximum location in my matrix of 4 columns and 3 rows. can anyone help point me in the right direction import java.util.*; public class Program3{ public static void main(String[] args){ double [][] m = createArray(); double [] colsum= new double [m[0].length]; for(int i=0;i<m[0].length;i++) colsum[i]= sum(m,i); printResult(m, …

Member Avatar for stultuske
0
204
Member Avatar for Soujanya_2

My servlet is not working even though the code seems to be correct. where have I gone wrong? First.java import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; public class First extends HttpServlet { protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType("text/html;charset=UTF-8"); try (PrintWriter …

Member Avatar for milil
0
19K
Member Avatar for Huseyin_1

Hi programmers, i need to have a code to produce a round robin algorithm. Can you help me?? The requirements are that it must have: A menu system with the options (1 input data manually-if option 1 is selected a)to read data from file, b)to enter data by hand, 2-automatic …

Member Avatar for somjit{}
0
282
Member Avatar for Jazmine_1

Please help me I'm getting frustrated. #include <iostream> #include "unorderedArrayListType.h" using namespace std; int main() { int intList = new intList(8); int number; cout << "Enter 8 Integers: "; for (int count = 0; count < 8; count++) { cin >> number; intList.insertEnd(number); } cout << endl; cout << "Int …

Member Avatar for tinstaafl
0
202
Member Avatar for divyakrishnan

Hi, I want to get current position of cursor in a text box using asp.net. Its very urgent for me. any one can help me?

Member Avatar for Amita Negi
0
164
Member Avatar for nightcrew

[QUOTE]Assume you have a int variable n that has already been declared and initialized. Its value is the number of integers that need to be read in from standard input and printed out in sorted (ascending) order, each on a line by itself. Furthermore, there are no duplicates in the …

Member Avatar for omgerg
0
3K
Member Avatar for Mahbeezzy

How do i write a program that computes the sum of all even numbers in a range forexample between 1 and 100

Member Avatar for TObannion
0
192
Member Avatar for showman13

Can someone tell me how to extract a fully qualified URL from a form input <input type="file" name="datafile"> When I use this in a form and navigate to a picture like domainname.com/images/banners/banner1.jpg The only thing I get back is banner1.jpg Am I missing something (besides the file path). thanks in …

Member Avatar for showman13
0
253
Member Avatar for Mushfik

Hello. Please look at the code below and tell me the correct code for it please. here is the message i get.."Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given" <?php include("function.php"); ?> <?php include("header.php"); ?> <?php include("headscript.php"); ?> <script type="text/javascript"> function noAcc(){ $.fallr('show', { icon : 'error', content …

Member Avatar for Mushfik
0
473
Member Avatar for ZZMike

I'm new to Python, but have a long background in Perl, Ksh &c, C, and others. """One of the different things about Python is the import statement. How do you tell where a function or class name should be imported from? Some are obvious, like sys and math, but others …

Member Avatar for ZZMike
0
154
Member Avatar for romiaujla

A method in the **controller.php** file public function invoke() { if (isset($_GET['book'])) { // show the requested book $book = $this->model->getBook($_GET['book']); include 'view/viewbook.php'; } else if(isset($_GET['add_book_form'])) { $action = $_GET['add_book_form']; include 'view/add_book.php'; } else if(isset($_GET['add_book'])) { $title = $_POST['title']; $author = $_POST['author']; $description = $_POST['description']; $this->model->addBook($title, $author, $description); include("view/add_book.php"); } …

Member Avatar for charlie_3
0
603
Member Avatar for Andrae

I'm working on a program to log the work i do as well as email the monthly log. The problem i'm having is that every time i try to test out the smtp i get an error ` Traceback (most recent call last): File "C:/Users/palmer_a/Documents/App/testy.py", line 5, in <module> import …

Member Avatar for Andrae
0
261
Member Avatar for Niloofar24

Hello. I have a list: mylist = [2,4,4] How can i take number 244 out from the list? Something like: number = 244 Here 244 is integer.

Member Avatar for vegaseat
0
299
Member Avatar for UK-1991

Hello, I Have created an admin page to view user account information on monthly bassis but the values to me are not showing up here is the code <?php $record_campaign = mysql_query("SELECT campaign FROM dailyreport where uid='" . intval($_POST['select3']) . "'"); $record6 = mysql_fetch_array($record_campaign); $campaign = $record6['campaign']; $date_table = "Date"; …

Member Avatar for UK-1991
0
186
Member Avatar for ruwanaru

what i want to do is find a word from a text file and delete that word using php plzzzzzzzzz help me......... i can find the word using this codes [CODE] $handle = file_get_contents("files.txtl",NULL); $a="first"; $a=substr_replace($a, '0', 0); $a=explode(" ",$a); $c=0; foreach($a as $y){ if (stristr($handle,"$a[$c]")) $b[]= 'yes'; else $b[]='no'; …

Member Avatar for diafol
0
200
Member Avatar for Tinnin

Hi All, I'm trying to remove the <head> tag and contents from some html but I'm having no luck. The <head> portion of the html is: <head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style><![endif]--><title>Resume (Origin design)</title><style><!-- /* Font Definitions …

Member Avatar for diafol
0
267
Member Avatar for rpv_sen

Hi Friend. i want to add a tr in an table using php only. please help me how to create it. i dont want jquery or javascript.

Member Avatar for diafol
0
261
Member Avatar for coder91

For the system I am creating which is a report generator, there is a form which is created based on the parameters required for a stored procedure, the code for this is: for (int i = 0; i < datatable.Rows.Count; i++) { string label = datatable.Rows[i]["label"].ToString(); Label mylabel = new …

Member Avatar for djjeavons
0
182
Member Avatar for Joemeister

Hi all, I'm trying to access a list in a class made in another class and display it in a listbox but its not working. I most probably have to make a small change to be able to get it to work. So please check in the code if you …

Member Avatar for djjeavons
0
5K
Member Avatar for LakiCG

I have tried to write basic calculator code which also calculate surface area of the circle. I created classes needed for this task but struggle with Main method defining. Can someone help me to complete this coding? class Calculator { private Double _num1; private Double _num2; public Double PI { …

Member Avatar for djjeavons
0
391
Member Avatar for ramsiva

This code is not working INSERT INTO student_profile set student_id =MAX(student_id )+1; any body help me, my table student_id is abc0001, while inserting another student details it will be abc0002 but not working.

Member Avatar for ramsiva
0
134
Member Avatar for Joemeister

Hi everyone, I want to know if its possible to do the following: I have 2 users and 2 forms. When user A (Admin) logs in on the Log In form, the Main Form appears with ALL its buttons enabled (For editing purposes). BUT when user B (Normal user) logs …

Member Avatar for Joemeister
0
180
Member Avatar for Amenda.St

I'm new with java programming so I'm sorry if my question is a lazy one. I'm working on a project that consists on collecting job offers from the web. So as a first step, I want to extract data (job offer data) from a specific webpage. So I want to …

Member Avatar for peter_budo
0
255
Member Avatar for MustafaScript

I started to learn python today by myself using this course: https://www.youtube.com/watch?v=bX3jvD7XFPs&list=PLB2BE3D6CA77BB8F7 Is that a good start? which book for beginners do you recommend ? *the problem with that course is that i found a lots of things in that code i do not understand i need a book which …

Member Avatar for fonzali
0
417
Member Avatar for VengefulToast

Hi fellow members, I have wrote two abstract classes, with the second inheriting from the first. However, I receive this error when I try to compile: "error C2143: syntax error : missing ',' before '<'." Will somebody help me out? Thanks! template <class DataType> class AbstactArrayClass { friend ostream& operator …

Member Avatar for mike_2000_17
0
291
Member Avatar for PulsarScript

Hi this is my program,supposed to output all methods ,based on "square" input and based on"circle" output case circle.But in any of the scenario only one function gets executed,What did i missed? using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; delegate int OperationDelegate(int a); namespace DelegationLAB { public …

Member Avatar for tinstaafl
0
152
Member Avatar for Tom_11

I am working on a small project, creating a calendar based booking system which includes the following features: 1) A color coded key for Booked days, Available, Partly Booked, Off Days 2) Clickable days which open up a form with available time slots 3) When time slots selected another form …

Member Avatar for suresh43
0
183
Member Avatar for OrangeNaa

[B]I'm totally stuck on this problem for homework::[/B] *** [I]Write pseudocode to represent the logic of a program that allows the user to enter values that represent the radius of a Circle. The Program calculates the Diameter (by multiplying the Radius by 2) and then calculates the Circumference (by multiplying …

Member Avatar for channasrey7
0
1K
Member Avatar for Niloofar24

Hello again. How can i limit my list indexes? I want my list to take only 3 indexes for example.

Member Avatar for Niloofar24
0
624
Member Avatar for Niloofar24

Hi, me again :) Look at this error please: File "./kivycal-1", line 103, in number_two self.check() TypeError: check() takes exactly 2 arguments (1 given) The error is pointing to here: def number_two(self, event): global numbers numbers.append(2) print numbers self.check() This is a part of a class in a .py file. …

Member Avatar for Niloofar24
0
312
Member Avatar for TObannion

Here is my encryption program. The decryption program is what is giving me some trouble. Here is the description of the first part: # encrypt.py - ENCODE MESSAGE AND WRITE TO FILE # # initialize a cipher list to store the numeric value of each character # input a string …

Member Avatar for TObannion
0
377
Member Avatar for edbr

very embarassing but i just got hacked by the folloeing, any advise truly welcome Hacked By : Mr.HaurgeulisX196 TypingText = function(element, interval, cursor, finishedCallback) { if((typeof document.getElementById == "undefined") || (typeof element.innerHTML == "undefined")) { this.running = true; return; } this.element = element; this.finishedCallback = (finishedCallback ? finishedCallback : function() …

Member Avatar for edbr
0
371
Member Avatar for fastina hasini

How do i change images every 5 seconds on my web page? I have tried something but the first image is getting displayed but the rest of the images r not and i have used update panel and timer

Member Avatar for fastina hasini
0
175
Member Avatar for Niloofar24

Hello. mylist = [6, '/', 3, '+', 9, '+', 8, '+', 1, '/', 2] How can i delete that list indexes? I tried: def clear(self, event): global numbers for i in numbers: print i del numbers[i] But it didn't work: File "./kivycal", line 83, in clear del numbers[i] TypeError: list …

Member Avatar for Niloofar24
0
276
Member Avatar for mattyd

I am beginning what appears to be the daunting task of securing all of my code from injections, XSS, etc. I have been reading about some of it and it is a bit overwhelming. I just wanted to come here and ask for experts' advice on the main things I …

Member Avatar for mattyd
0
456
Member Avatar for MAtkins

I've got 4 tables: divisions (ID, Division) teams (ID, Team) scores(ID, RelationID, Score) relatives (ID, RelationID, FieldID, ValID) The relatives table is to 'link' divisions and teams by RelationID The FieldID defines the table (1=divisions; 2=teams) The ValID = the ID of the given table. So, my fk is a …

Member Avatar for MAtkins
0
371
Member Avatar for Niloofar24

Hello. I have a list like this: mylist = [7, "+", 2, "+", 1] I want to take them out of the list inorder to run the operation and get the real result; something like this: result = 7 + 2 + 1 So the result variable will be set …

Member Avatar for Niloofar24
0
334
Member Avatar for SoftBa

Hi, I have part of code to read file and show content inside list box. I wonder if someone could help me to store data to access instead list box. I'm writing now on my cellphone and don't have source code right now, but just to see is there anyone …

Member Avatar for djjeavons
0
381
Member Avatar for kevwood

hi all, i had this code working yesterday (to an extent any way lol). the first part of the code seems to be working correctly an tells me i am connected to the db. but then i am getting a an error saying no db selected. here is the code …

Member Avatar for kevwood
0
200
Member Avatar for Chris920

I am running a unmanaged VPS - CentOS 6, 1gig of ram, 60gig storage, 256mb Vswap my.conf file: [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock user=mysql symbolic-links=0 max_connections=100 max_user_connections=30 max_allowed_packet=64M wait_timeout=30 interactive_timeout=50 query_cache_type=1 query_cache_size=4M query_cache_limit=1M long_query_time=5 thread_cache_size=4 key_buffer_size=16M table_open_cache=80 log-queries-not-using-indexes log-slow-queries=/var/log/mysql/log-slow-queries.log #innodb_use_native_aio = 0 innodb_file_per_table [mysqld_safe] log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid MySql tuning logs: ![myturner.png](/attachments/large/4/1956cd6cace6d0b9912f6a38d4d3f912.png "align-center") ![myturnprimer.png](/attachments/large/4/5860e0cc711113ecbe783cad32fdaa7b.png …

Member Avatar for Chris920
0
380
Member Avatar for chrisschristou

hello dear friend. on my page i have a form with data with submit bouton when user click on insert data insert into a table all work fine i would like to redirect user to other page after insert into the i use this code $insertGoTo = 'order-line.php'; if (isset($_SERVER['QUERY_STRING'])) …

Member Avatar for shitanshu_1
0
3K
Member Avatar for Borzoi

I think I am missing something obvious here but I can't see what. I am pulling information from another file using `file();` which works as expected - putting each line in to an array. The file contains some HTML tags but is just a text file (not a full web …

Member Avatar for Borzoi
0
447
Member Avatar for PhilipRaj

Hi Gentlemen Please help the following code shoots error, my purpose is to view the table value for checking purpose, but it fires error, <?php include ('main_config.php'); //get all web settings $web_settings = array(); try { $db = new PDO($mysql_host_db, $mysql_user, $mysql_pass); $query = "SELECT * FROM t_lfs_web_settings"; //$result = …

Member Avatar for ezekel
0
184
Member Avatar for mryjyc

where sending data to the client but we cant receive the data why? code for client from Tkinter import * import random import tkSimpleDialog import socket import threading class Client(threading.Thread): def __init__(self): threading.Thread.__init__(self) self.root = Tk() self.root.geometry('700x350') self.txtName = Entry(self.root) self.txtName.pack() self.txtPass = Entry(self.root) self.txtPass.pack() self.btnReg = Button(self.root, command = …

Member Avatar for iamthwee
0
186
Member Avatar for lithium112

Hello, I am trying to query an xml table. Here's the basic structure: <Table> <GroupPermissions> <Group GroupName="Name"> <ModuleRestricitons> <Module1> <Button1 value="False" /> </Module1> </ModuleRestrictions> </Group> </GroupPermissions> </Table> The logic I am tyring to perform is this: Where GroupName="Name" set button 1 value="True". There are many other groups, so I need …

Member Avatar for lithium112
0
449
Member Avatar for Shane-dev

Can anyone help me? I have created a dictionary with the contents of a plist(data.plist) file but now I cannot figure out how to search and display the contents. I have searched online for days and cannot get a resolution. Most tutorials show a pre-defined array being used but if …

Member Avatar for Shane-dev
0
395
Member Avatar for dandrews517

Hi all, I'm beginner developer and I want to develop a software telephone in .NET. I prefer C#. After some googling, I started to code in C# using the prewritten VoIP components of [Ozeki's VoIP SIP SDK](http://www.voip-sip-sdk.com). Now I have a simple softphone that is able to make and receive …

Member Avatar for theophil1901
0
672
Member Avatar for DS9596

Max and min come out wrong, they go to 0's when it outputs ? How do I fix, any solutions?? #include <iostream> #include <iomanip> #include <string> using namespace std; int main() { int x, y, z; int total; float average; //Read data into x, y, z void ReadData(int & x, …

Member Avatar for necrovore
0
1K
Member Avatar for OMER AHMED

Dear all is thr any code or any way to connect my vb.net project's textbox with my website textbox. something like if me.textbox1.text=www.mywebsite.com.textbox1.text then bla bla bla end if

Member Avatar for djjeavons
0
154
Member Avatar for Nilesh_3

The End.