199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for foxwizzy

so i have 2 lists i need to compare $list = array("Apple", "Orange", "Lemon", "Candy"); and $db = $r_bio['other']; $db2 = explode(":", $db); i want to compare the two and if i find the same i want to echo a checked checkbox if not an unchecked checkbox if($db2 == $list) …

Member Avatar for foxwizzy
0
117
Member Avatar for chophouse

Need help understanding this error, and how to eliminate it. Using Python 3.3. I'm trying to define a function that takes two arguments and then constructs the proper arguments for a call to the ftblib.storbinary method. Here's my code: from ftplib import FTP_TLS ftps = FTP_TLS('xxxxxx', user='xxxx', passwd='xxxx') ftps.prot_p() ftps.set_pasv(False) …

Member Avatar for chophouse
0
9K
Member Avatar for Hanyouslayer

Ok, before everyone gets mad at me for not looking around the board for these topics, I have, but they weren't my problem. My problem I am having is calling the Polynomial class. I know how to call classes in a different class, but this is a bit different. I …

Member Avatar for JamesCherrill
0
1K
Member Avatar for AmrMohammed

Greetings, I urgently need a book/books for digital image processing can any ne help with books names or books URLs.

Member Avatar for AmrMohammed
0
84
Member Avatar for daino

As naive as this is going to sound, I have to ask it. I have a stream compressed in LZW encoding. I can decompress a stream provided it is in a numerical format. The below I have extracted from a pdf file stream compressed in LZW. I'm assuming the below …

Member Avatar for daino
0
196
Member Avatar for Builder_1
Member Avatar for malkani.ji.73

Please help to create a driver file of the given code becoz i dont know what should i do to create a driver file. import javax.swing.*; class Product{ private String PId; private String PName; private String PPrice; private String Pcategory; private String PQuantity; private String PDescription; public Product(){ PId=null; PName=null; …

0
213
Member Avatar for isaac.iji.5

hello guys am creating site were all users can post for there friends to see ans coment just like facebook where am having problem is how to make sure only a users friends can see there post not the whole site members i have table in my database called post …

Member Avatar for isaac.iji.5
0
273
Member Avatar for daProgramma

Hello, I need to export some functions in my C++ dll to a client that can dynamically load dlls. That all works, but I am not able to stop the name mangling.I have extern "C" __declspec(dllexport) int __stdcall add( int a, int b ); but the dll exports _add@8 - …

Member Avatar for daProgramma
0
342
Member Avatar for iv_jo

Hi! Can anyone know the result of this query: SELECT COALESCE(MAX(ID),0) + 1 FROM Table123

Member Avatar for pritaeas
0
221
Member Avatar for prikshit.choudhary.12

#include <iostream> #include <cmath> using namespace std; int main() { char flag; float emp_no,basic,da ,hra,pf,tax,net_salary,total_salary; cout<<"enter the basic salary & employee no."; cin>>basic>>emp_no; if(basic<=5000) flag=0; else if(basic>5000&&basic<=15000) flag=1; else if(basic>1500 && basic<=25000) flag=2; switch(flag) { case '0': tax=0; da=(25/100)*basic; hra=(20/100)*basic; pf=(5/100)*basic; break; case '1': tax=(10/100)*basic; da=(25/100)*basic; hra=(20/100)*basic; pf=(10/100)*basic; break; case …

Member Avatar for Moschops
0
133
Member Avatar for vijayakumarmp

Target is null or not an object how to fix ie browser. It works good in firefox. Please help how to fix the challenging script error.

Member Avatar for pritaeas
0
114
Member Avatar for andika.kurniawan.121

for($i=1; $i<=($jumlah_row_tabel_atas+1); $i++) { $satuan = $_POST['PP_row_'.$i.'_satuan']; $word_2[$i]="SELECT id_unit FROM manage_unit WHERE name_unit = '$satuan'"; $q[$i] = mysql_query($word_2[$i]); $data_X = mysql_fetch_array($q[$i]); $id_unit = $data_X['id_unit']; $harga_1 = $_POST['PP_row_'.$i.'_harga_1']; $harga_2 = $_POST['PP_row_'.$i.'_harga_2']; $harga_3 = $_POST['PP_row_'.$i.'_harga_3']; $id_drug = $_POST['id_drug']; $value = $value_array[$i]; $word="INSERT INTO relation_mu_and_unit (id_drug, id_unit, priority, value, harga1, harga2, harga3, last_edit) …

Member Avatar for urtrivedi
0
161
Member Avatar for nathaniel23456

Here is my code import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { String[] name= new String[10]; int[] mark=new int[10]; int n=0; System.out.print("#Number of students: "); try{ BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in)); n = Integer.parseInt(bufferRead.readLine()); } catch(IOException e) { e.printStackTrace(); } for(int …

Member Avatar for stultuske
0
219
Member Avatar for enakta13

Hello, I am currently struck! I need a way to stop an already ongoing process by a button, using another button. Explanation:- 1st Button Action private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { . . some actions which is a ongoing running (for ex: timer countdown) . . } 2nd Button Action private …

Member Avatar for stultuske
0
383
Member Avatar for nasaha

please help me as i m new to java i want to write a java code for Caesar cipher. the instuctions Cryptic This class h0as only class methods that encrypt and decrypt a String with a Key. The encryption and decrypting is done by using the encode and decode method …

Member Avatar for stultuske
0
144
Member Avatar for prettyknitty

I have been working on this for awhile, but I was hoping to get input from someone with more experience. I have to stick with the structure and enum format for the assignment, but I was wondering if anyone had any opinions on the way the high/low temperature sections should …

Member Avatar for kal_crazy
0
749
Member Avatar for moh2013

Hi im creating a linked list with these data types etc int account_number char firstName[10] char lastName[10] float total_Balance would anyone give a simple instruction to input/output these. i have tried everything but still doesnt work so far i have done this. #include<iostream> using namespace std; struct account_query { int …

Member Avatar for saeidzamani
0
135
Member Avatar for vampersie

Now, i input 1.5, obviously, it will show 1. But how can the program check that i just input 1.5 so that it will show an error for non integer input? #include<iostream> using namespace std; int main(){ int k; cout<<"Input: "; cin>>k; cout<< k ; }

Member Avatar for saeidzamani
0
151
Member Avatar for Ahsanali1603

how I can modify the ofile object of fstream library, and the remaining data remain save as it was. e.g ofile: hello world name class this is the data ofile have and in modification i want to replace the name with "roll number". after modification ofile became ofile: hello world …

Member Avatar for Ahsanali1603
0
129
Member Avatar for daniel1977

I have uninstalled and reinstalled Microsoft Visual about 3 times. I am unable to link or locate the folder #include. This is preventing me from utilizing Visual because it keeps giving me errors and doesn't let me execute the program. I have researched online for various solutions and have re-downloaded …

Member Avatar for mike_2000_17
0
153
Member Avatar for tony75

Hi I need better way to my checkboxes in form.php here is code <h3>Which programming languages should you learn first?</h3> HTML <input type="checkbox" name="cb_html" value="HTML"><br> PHP <input type="checkbox" name="cb_php" value="PHP"><br> Perl <input type="checkbox" name="cb_perl" value="Perl"><br> Python <input type="checkbox" name="cb_python" value="Python"><br> And my form.php code is #checkboxes if (isset($_POST["cb_html"])) { echo …

Member Avatar for tony75
0
1K
Member Avatar for kruschev

#include <iostream> using namespace std; int f(int i) { if(i == 1) { return (1); } else { return 2*f(i-1); } } int main() { cout << f(5) << endl; //<--- I don't understand why this is 16. return 0; } I am having trouble understanding why f(5) = 16 …

Member Avatar for kruschev
0
216
Member Avatar for inspire_all

I know that NP problems can't be solved in polynomial time.But what do NP complete and NP hard problems mean?

Member Avatar for amina.bm
0
242
Member Avatar for ranar

i have a file that list all the names and destinations to move the file. so for example a file that looks like this def.txt /names/new/ person.obj /media/people/ panel.jpg /random/pictures/ so as you can see here there are three files that need to be moved in a specific destination. How …

Member Avatar for ranar
0
390
Member Avatar for lewashby

(Linux) `output = os.listdir()` In the above line of code I'm getting the name of the file(s) in a given directory, but how can I also get the permissions? This is what I want to see. -rwxr-xr-x 1 garrett garrett 158 Nov 23 10:49 dirlist.py drwxr-xr-x 2 garrett garrett 4096 …

Member Avatar for lewashby
0
149
Member Avatar for COKEDUDE

I am trying to print a char array on separate line for each element. This is what I have tried and neither way is working. I would like the output to look something like. The array length is c c The array length is o o The array length is …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for Estevan_Musgo

Hi guys, Im a uni student who's just getting started on PHP + i've hit a brick wall already. One of my tasks is to use PHP to show the song lyrics of "10 green bottles" (standing on a wall) using loops and if statements. I was thinking of having …

Member Avatar for Estevan_Musgo
0
103
Member Avatar for chophouse

I'm writing a script to automatically up load a file from Server A to FTP server B. I'm getting stuck at the connecting part. I can connect with a python script using regular FTP, and have done so, but when trying to implement a SSL connection, I keep getting a …

Member Avatar for chophouse
0
3K
Member Avatar for mmcdonald

Hi all, I have a hidden division that is supposed to appear when the button, as shown below, is clicked by the user. The division is hidden on page load, and does actually appear when the button is clicked, but nothing happens on the first click. To clarify, you have …

Member Avatar for JorgeM
0
13K
Member Avatar for Learner010

i write code for something , now i want to have a printed copy of the softcopy output.How can i get hardcopy output using c++. i think i have to use to include some libraries to the program but i don't know where to get these library or if there …

Member Avatar for Ancient Dragon
0
229
Member Avatar for weeraa

I have datatable and it has two columns named "RegNo", "Name" RegNo is a string field. This is an example "RegNo" "Name" ====== ===== 55 name1 10 name2 5555 name3 75 name4 10A name5 i used this code for sort datatable.DefaultView.Sort = "RegNo ASC" But after sort the RegNo column …

Member Avatar for Ancient Dragon
0
441
Member Avatar for Crazyscript77

Hi all, just wondering if someone could help me out with a small loop question. If I had an input field in a GUI which writes to variable "counter" (a numerical value), how would I be able to use this value to control the amount of times a loop is …

Member Avatar for Crazyscript77
0
187
Member Avatar for Nastik

Hi. I want to develop a software to automatically send congratulatory messages to people on their birthday. I don't know how to go about it. Please, I need your advice. Thank you.

Member Avatar for meziamus
0
129
Member Avatar for Frank_5

//Description: Binary Search Tree with array implementation, it has inorder, postorder and pre order traversals. //Note: it is not advisable to use array in binary search tree because it consumes a lot of memory in the long run // instead use linked list this is just a reference to understand …

Member Avatar for surajsokasane
0
10K
Member Avatar for tony75

Hi How can I pass value of my radio buttons to my form.php code? I will be very thankfull for your answer. <form action="form1.php" method="post"> First name: <input type="text" name="fname"><br><br> Last name: <input type="text" name="lname"><br><br> <h3>What is the best programming language to learn for hacking</h3> Python <input type="radio" name="rb_python" value="Python"><br> …

Member Avatar for tony75
0
343
Member Avatar for kelley82879

I have a searchable database.. I would like to change the style of how the table is displayed... I have a css file of how I would like the table displayed.. Can that be done? If so..How?

Member Avatar for kelley82879
0
301
Member Avatar for new_developer

Hi there, I know this question is very common but I still didn't understand that why we can't check if array is not initialized. Isn't there a way to check an array is initialzed by any values(int, double). I am working on array based program, in which I have to …

Member Avatar for deceptikon
0
1K
Member Avatar for Indians

<?php include("config.php"); if (isset($_POST['submit_val'])) { $cmeal = mysql_real_escape_string($_POST['meal']); $meal = "INSERT INTO ebmealplans( MealPlanName, CreatedOn ) VALUES ( '{$cmeal}', NOW() )"; if(!mysql_query($meal, $link)) { die("Error : " .mysql_error()); } $croom = mysql_real_escape_string($_POST['room']); $ref_key = mysql_insert_id(); $room = "INSERT INTO ebroomtypes( RoomTypeName, CreatedOn ) VALUES ( '{$croom}', NOW() )"; if(!mysql_query($room, $link)) …

Member Avatar for diafol
0
8K
Member Avatar for Layki

Hello everyone , I'm trying to update an existing Excel file(.xls) and add some rows in it . I already can open an xls and display it in a jTable, but i want to add rows to a specific sheet that i choose in a combobox . My xls have …

Member Avatar for JamesCherrill
0
344
Member Avatar for hhenali

#include<iostream.h> #include<conio.h> #include<string.h> #include<stdlib.h> // define maximum number of patients in a queue #define MAXPATIENTS 100 // define structure for patient data struct patient { char FirstName[50]; char LastName[50]; char ID[20]; }; // define class for queue class queue { public: queue (void); int AddPatientAtEnd (patient p); int AddPatientAtBeginning (patient …

Member Avatar for kal_crazy
0
1K
Member Avatar for ghfeyn

Hi everyone, I am having trouble with getting output from the console onto a file, for example a .TXT. I suspect that I have to make use of the System.out function, but I can't quite figure out how I might use it. Thanks for the help

Member Avatar for JamesCherrill
0
6K
Member Avatar for OWSOME.GUY

.model large .stack 100h .DATA STR1 DB "ENTER YOUR NAME HERE : $" STR2 DB "JABBAR$" INSTR1 DB 20 DUP("$") INSTR2 DB 20 DUP("$") N DB ? S DB ? NEWLINE DB 10,13,"$" MSG1 DB "HAPPY BIRTHDAY BRO MAY BLESSINGS OF ALLAH BE UPON YOU (^_^)$" MSG2 DB "SORRY It'S …

Member Avatar for OWSOME.GUY
0
232
Member Avatar for gategold

public Matran Hieu2MT(Matran a, Matran b) { Matran c = new Matran(this.So_Hang, this.So_Cot); if (a.So_Hang == b.So_Hang && a.So_Cot == b.So_Cot) { for (int i = 0; i < this.So_Hang; i++) { for (int j = 0; j < this.So_Cot; j++) c.MT[i, j] = a.MT[i, j] - b.MT[i, j]; } …

Member Avatar for ddanbe
0
129
Member Avatar for gahhon

![170635e49469dbb4197a0bcddafc866d](/attachments/large/3/170635e49469dbb4197a0bcddafc866d.jpg "170635e49469dbb4197a0bcddafc866d") public static void Print(string ElementID, string SecondElementID) { Page page = HttpContext.Current.CurrentHandler as Page; StringBuilder sb = new StringBuilder(); sb.Append("<script type = 'text/javascript'>"); sb.Append("var divID_1 = document.getElementById('" + ElementID + "');"); sb.Append("var divID_2 = document.getElementById('" + SecondElementID + "');"); sb.Append("divID_1.border = 0;"); sb.Append("divID_2.border = 0;"); sb.Append("var prtwin = …

Member Avatar for gahhon
0
134
Member Avatar for laleh.97

 We estimate pi.  We assume as in Figure 10 is a side of the square.  The first type, which defines a function IsInCircle Quadrant is the point or not.  intIsInCircle (floatx, floaty);  The number of random points that are inside the square, the Number of …

Member Avatar for rubberman
0
228
Member Avatar for natekelsey

I'm coming up with this error: Unhandled exception at 0x013c4218 in Hash_Table.exe: 0xC0000005: Access violation reading location 0x0000001c. Here's my driver: #pragma once #include <cctype> // Provides toupper #include <cstdlib> // Provides EXIT_SUCCESS #include <cstring> // Provides strchr #include <fstream> #include <iostream> #include <string> #include <sstream> // Operate on strings …

Member Avatar for natekelsey
0
217
Member Avatar for Py New BB

Hello all, by using Python, i want to pickup the news titles on http://www.boston.com/yourtown/ and save them into a .txt file. i have 2 questions: 1. how can i have the codes run every 2 hours? 2. how can i have the outputs write into a .txt file? thanks. from …

Member Avatar for snippsat
0
165
Member Avatar for carbonfinger

// A program to use a run-time loaded DLL.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <Windows.h> #include <iostream> using namespace std; //Creates a new type of variable which is a function pounter called, cryptFunPointer. typedef void (*cryptFunPointer) (int key , char inString, char …

Member Avatar for mike_2000_17
0
298
Member Avatar for VUEKID

This function reads a text file and shows how many times a words appears in the text file, how do I save it to a different text file after running this function? std::ifstream f("test.txt"); std::istream_iterator<std::string> eof; std::multiset<std::string> words( std::istream_iterator<std::string>(f) , eof); for( std::multiset<std::string>::iterator i = words.begin(); i!=words.end(); i = words.upper_bound(*i) …

Member Avatar for VUEKID
0
421

The End.