199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Johnny Blaz

num = int(input("Enter a number: ")) if num==0 or num<0: continue else: if num > 1: if (num % i) == 0: print(num,"is not a prime number") print(i,"times",num//i,"is",num) break else: print(num,"is a prime number")

Member Avatar for sneekula
0
182
Member Avatar for ram_10

I've to write a function that takes a list of English words and returns a list of Swedish words. For example, {"merry":"god", "christmas":"jul", "and":"och", "happy":gott", "new":"nytt", "year":"år"} used to translate English into Swedish. def translate(a): a = {"merry":"god", "christmas":"jul", "and":"och", "happy":"gott", "new":"nytt", "year":"år"} for k, v in a.iteritems(): print k,v …

Member Avatar for snippsat
0
440
Member Avatar for ehpratah

Hi can anyone help me find what am i doing wrong. i have an xml request that check data on db and return the result. and base on that result it will clear or highlight a textbox. its working fine using the original function but when i add another xml …

Member Avatar for pzuurveen
0
215
Member Avatar for matrixdevuk

I'm a beginner to Python and I decided to make a permutation finder program. Have fun and don't question the name. :)

Member Avatar for matrixdevuk
0
187
Member Avatar for SalmiSoft

I am working on a web scraping project and I have to work through a series of log-in pages before I can get to the data I want. My app is basically duplicating the HTTPS requests that are sent by a browser when I use the site conventionally. To help …

Member Avatar for SalmiSoft
0
205
Member Avatar for zebnoon1

Dear friends, I want to transfer data from one page to other via SESSION variables my code of session1.php page is below <!DOCTYPE html> <html> <head> <title>Hello!</title> </head> <body> <form action="session2.php" method="post"> <input type="text" name="text" /> <input type="submit" name="submit" /> </form> <?php session_start(); $text=$_POST['text']; $_SESSION['stext']=$text; echo("session is set"); ?> </body> …

Member Avatar for cereal
0
217
Member Avatar for monaya.ash

hey , i'm having a problem with a LINK error i keep getting the same error although deleted the line with the flushall_ also i copyed the code in a new project but it still gives me the same error the error : Error 1 error LNK2019: unresolved external symbol …

Member Avatar for rubberman
0
238
Member Avatar for Violet_82

Hi guys, does anybody have any experience with Azure at all? I finally deployed a test site I built http://web-dev.azurewebsites.net/About.aspx and unfortunately there seems to be a problem when you submit the form (obviously I tested the form many times before deploying the site and it was definitely working in …

Member Avatar for Violet_82
0
290
Member Avatar for Pyler
Member Avatar for deceptikon
0
228
Member Avatar for rtipton

I am trying to make a graph from data that i have in my sql database. Below is the exmaple of the data that i am pulling from my data base. Region LC_count MC_count NC_count B_count LL_count EL_count LR_count CR_count MOUNTAIN 0 722 542 0 7155 0 0 1444 NO.CAL/NEVADA …

Member Avatar for rtipton
0
181
Member Avatar for accra

I have a gps sending data to mysql db, but am having hard time ploting the values on google map. My javascript skills are not very good, pls help... javascript code <?php $server = "localhost"; $username = "root"; $database = ""; $password = ""; $conn = mysql_connect($server,$username,$password); mysql_select_db($database) or die("Unable …

Member Avatar for Masterblank
0
2K
Member Avatar for GoneGirl

Hi, If you look trough my code you can see that i have tried to print out some values (the mean value) with a scanner from a csv file with the help of an enhanced for loop (the absolut last loop) and it gives me NaN (not a number). And …

Member Avatar for GoneGirl
0
622
Member Avatar for soomro_moon

hello, everyone im working on my masters thesis, i need little help. if anyone can help me with cookies methods. i want to implement cookies in my website through PHP, im nt that much expert in php.how can i do that ??? please

Member Avatar for soomro_moon
0
340
Member Avatar for ChungHao

My project is to create a webpage to search mobile gadgets on a website(www.mudah.my), and I want the result to be shown on my own webpage, but NOT redirecting me to www.mudah.my. May I know is that possible to do that? I've ask around and people told me that I …

Member Avatar for Masterblank
0
206
Member Avatar for olawole.famakin

Hello i am trying to echo a listview using php, i have made an ajax request to display the list view in my html page using div. but the list view never comes out properly, which leaves me with only one thing, that the css and javascript for this listview …

0
104
Member Avatar for Roger_2

I have tried with the algorithm below but it does not generate the results i am looking for and i am a bit stumped. I have tried swapping the elements in the array, unless you know there is a less trouble sum alternative example: 1,2,3,4,5 becomes 5,4,3,2,1. i have searched …

Member Avatar for nullptr
0
1K
Member Avatar for ram_10

Hello, I'm trying to define a function that takes an integer 'n' and a character and returns a string, 'n' characters long. I'm totally lost and I've nothing. I read in a forum "".join might help. But that too is beyond perceivable for me at this moment. I do have …

Member Avatar for ram_10
0
426
Member Avatar for OMER AHMED

i write this code in my program to encrypt my files but it showing me warning Warning 1 Variable 'csCryptoStream' is used before it has been assigned a value. A null reference exception could result at runtime please guide me. when i run the software it work fine but i …

Member Avatar for OMER AHMED
0
174
Member Avatar for EarhawkPH

Hi! Newbie Java Programmer here! I've done a cash register program. this error's pretty unusual to me. i dont know how to fix this. import java.text.*; import javax.swing.*; import java.awt.*; public class CashRegisterV1 { public static void main (String[] args) { DecimalFormat fix = new DecimalFormat("0.00"); //QUANTITIES int Nido = …

Member Avatar for JamesCherrill
0
241
Member Avatar for itslucky

Hi, Dear Friends im new with Crystal Report, i have created the crystal report by using the step by step procedure from the following link: [URL="http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-stepbystep.htm"]http://csharp.net-informations.com/crystal-reports/csharp-crystal-reports-stepbystep.htm[/URL] Now When i run it it always asking me the username and Password, i am using MS ACCESS Database, and i didn't set any …

Member Avatar for S.L.KEER
0
2K
Member Avatar for ram_10

Hello, I've been trying to write a function that takes a value (i.e. a number, string, etc) x and a list of values a, and returns True if x is a member of a, False otherwise. This is the script I could think of. I'm not even sure what might …

Member Avatar for Gribouillis
0
823
Member Avatar for ikocrush

I have two GridView(SalesGView and ProdGView). SalesGView contains dropdowlist and textboxes.ProdGView is wrapped with ModalPopup and is populated by dropdownlist selection from ProdGView. The issue is when i click button select on ProdGView, the dropdownlist in the SalesGView resets to default value (Electronics) instead of selected value. ![8be5f775389c07cf2e69523f9a9acc02](/attachments/large/4/8be5f775389c07cf2e69523f9a9acc02.gif "8be5f775389c07cf2e69523f9a9acc02") ![e18fcc134ee66aba638d8b21471b6a61](/attachments/large/4/e18fcc134ee66aba638d8b21471b6a61.gif …

Member Avatar for Richard Mon
0
524
Member Avatar for Xiao_1

If String.IsNullOrWhiteSpace(txtadmno.Text) Or String.IsNullOrWhiteSpace(txtcard.Text) Then MessageBox.Show("Please complete the on the box.", "Authentication Error", MessageBoxButtons.OK, MessageBoxIcon.Error) Exit Sub End If Using conn As New System.Data.OleDb.OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\temp\Database1.accdb") Dim Result As Integer ** Dim sql As String = "INSERT [Date Select] From tbl_studentadm values (@DateSelect) "*****in here shold i key in the admin …

Member Avatar for Xiao_1
0
124
Member Avatar for Ian_5

I'm trying to Write a Console application that will read in an unknown number of integers (up to 100) from data.txt, a comma-delimited text file in the current directory. The program should show the numbers as they are given in the file, and it should also show the numbers in …

Member Avatar for Reverend Jim
0
181
Member Avatar for pabzzmike

Hello, I would like to enhance a website in that a user may send an SMS from it for free. Is this possible via a PHP script? regards, Pabzzmike

Member Avatar for matrixdevuk
0
538
Member Avatar for hwoarang69

I am trying to add banner ads(admob.com) on my libgdx android app. but I am getting an following error: "Common_google_play_services_notification_ticker" is not translated in "be" (Belarusian)(11 iteams)... This error was in "common_string.xml" file in my "google-play-services_lib" folder <?xml version="1.0" encoding="utf-8"?> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> <!-- Title for notification shown when GooglePlayServices is …

0
101
Member Avatar for Himesh_1

cannot update the db with below query. little help will be much aprreicated. Thanks in advacne $order_number=$_GET['order_number']; $invoice_id=$_GET['invoice_id']; $credit_card_processed=$_GET['credit_card_processed']; $total=$_GET['total']; $key=$_GET['key']; $email=$_GET['email']; $query = "UPDATE register_users SET order_number=$order_number, invoice_id=$invoice_id, credit_card_processed=$credit_card_processed, total=$total, key=$key WHERE email=$email";

Member Avatar for Riteman
0
214
Member Avatar for ritania

Hello, I am doing this image processing programming for pseudocoloring. aFile = File.new("mix.lut","w+") for i in 0...256 red = i*i/255 green = Math.sqrt(i). to_i blue = i aFile.puts "#{red} #{green} #{blue}" end aFile.close I made this simple color LUT, and i want to apply it to an image (RGB image). …

Member Avatar for Taywin
0
266
Member Avatar for itsthewendigo1111

I"ve been working on this dice game for the past few days. I made sure the game itself worked properly then I added a draw dice function that would show you the dice that were rolled on the canvas. I needed a continue button to make the rest of the …

Member Avatar for itsthewendigo1111
0
263
Member Avatar for stephen.hare.7503

so i need help on Modifying the source code to sort on the Title (in ascending order) and display the book title, comma space, author’s first name, comma space, author’s last name. Ensure all your variable names are appropriately named. and i also need help Modifying the source code to …

Member Avatar for stultuske
0
130
Member Avatar for premkiran

Hi all, I'm new in PERL, and trying to set up code that will allow me to create a new Table (Table 2) from Table 1: Table 1 No. Time Person 1 9:42 AM A 2 9:42 AM B 3 9:42 AM A 4 9:42 AM C 5 9:42 AM …

Member Avatar for 2teez
0
1K
Member Avatar for Roger_2

Generally, my professor's assignments are vague with limited constraints. while this allows the opportunity to become resourceful and creative, there are some like i who are blindly lost without a push in the right direction, this is my assignment please any insight is much appreciated. We are going to work …

Member Avatar for sbesch
0
1K
Member Avatar for solomon_13000

I would like to enquire further details about the terms of using php for commercial application development. The scenario is that I have built an application using PHP and intend to host it with a 3rd party hosting company. I am renting the server at the hosting company and the …

Member Avatar for lorenzoDAlipio
0
215
Member Avatar for nibbler

Hi, I wonder if anyone can help me with a basic MySQL/PHP output problem please. I have a table called 'Recommendations' which has a small number of fields (id, recom_date, recom_name, recom_status and recom_size). I want to be able to show the 'recom_status' field as a heading with the other …

Member Avatar for gabrielcastillo
0
379
Member Avatar for Suzie999

Although I've been programming as a hobby for a while, most of it has been procedural and I've done very little OOP, and not very competent with the inheritance hierarchy of classes, which is the reason for my post here, to get a bit of advice as to whether im …

Member Avatar for Suzie999
0
257
Member Avatar for Florin_1

Here is what I have so far: #include <iostream> using namespace std; int main() { int i; for (i = 1; i <= 12; i++) { cout << i << endl; } if (i = 4) cout << "My lovely month in which I've been born! \n"; system("pause"); return 0; …

Member Avatar for Maritimo
0
189
Member Avatar for Violet_82

Hi guys, I was thinking to work on a new interactive project but I might need some advice before I start. So, essentially, I want an interactive map and I want to give users (they will have to have login details of course) the possibility to add as many markers …

Member Avatar for Masterblank
0
351
Member Avatar for dimitris.dimitri.73

Dear forum, i have created an application for speech to text using windows speech recognition. My question is regarding custom grammar and training the words since it is in my native language and are not supported at first place. I came up with a solution to dock windows speech recognition …

Member Avatar for Begginnerdev
0
262
Member Avatar for Hijran

<?php session_start(); $user=$_POST['uname']; $_SESSION['username']=$user; $con=mysql_connect("localhost","root",""); mysql_select_db("airline")or die("Db error"); $username=$_POST['uname']; $password=$_POST['ptxt']; $username = stripslashes($username); $password = stripslashes($password); $username = mysql_real_escape_string($username); $password = mysql_real_escape_string($password); $query = mysql_query("select * from user where password='$password' AND name='$username'"); if( $username == 1 && $password == 1); header("Location:/user.php"); ?> plz help me ? :(

Member Avatar for Hijran
0
154
Member Avatar for Roger_2

please help me, i need to print my array in nasm. this is what i have so far, section .bss section .data array dd 1,2,3,4,5 arraylen equ $ - array section .text global _start: _start: mov edx, arraylen mov ecx, array mov ebx, 1 mov eax, 4 int 80h exit: …

Member Avatar for Roger_2
0
14K
Member Avatar for thrillride01

Hi, I own a business and through the business, I have amassed a large collection of training information and other things in the form of cds. For ease of access, I have ripped all my cds to mp3 format and stored them on my computer. This is not illegal and …

Member Avatar for deceptikon
0
195
Member Avatar for Zorrro

Let's say I registered a domain and entered four nameservers, out of which two were wrong. Will 50% of my connections face problems in connecting to my website?

Member Avatar for JorgeM
0
95
Member Avatar for jonlloydd

I want a certain portion of code to be inserted into a text area depending on which option is clicked in a dropdown box. Where it says you selected header. I want it to display about 10 lines of code for each option. Can I store the lines of code …

Member Avatar for diafol
0
171
Member Avatar for samisallaj

I'm trying to use this code, but it will only display the image in jtextpane and it does not display the text. JLabel label = new JLabel("<html>some text here<img src='http://www.yoursie.com/image.jpg'></html>"); then using this label in JTextPane.

Member Avatar for samisallaj
0
292
Member Avatar for Kamrun

which version of crystal report will support for vb6 in win 7? will cr Xi r2 applicable with vb6 in win 7 32 bit.

Member Avatar for Behnam_1
0
103
Member Avatar for Akhila_1

Hi, I wantd to know how to adjust my form size such that, when i run my code in a different monitor with different screen resoultions my program should not look small or large. Please help me with code for the same. thanks akhila

Member Avatar for Minimalist
0
2K
Member Avatar for rakibtg

in java jframe swing how i can use system default scrollbar style? eg. the default style looks like [this](http://i.imgur.com/3wrBufN.png).

Member Avatar for JamesCherrill
0
167
Member Avatar for ogsirus

I have written a program which allows the user to see specific SVN revision of a directory. It consists of an advanced TreeView and a ListView. The Treview is populated by the directory the user has specified and the ListView is populated when the user enters a revision number in …

Member Avatar for ogsirus
0
163
Member Avatar for JasonWung

Currently I have form with couple of fields and field for image. I have done with the part of field storing but don't know exactly how to store image path with PDO and can't find good tutorial. All I found was how to store image into DB instead of path. …

Member Avatar for diafol
0
975
Member Avatar for rayan22

double sum = 0; double d; for (d = 0; d < 10; d = d + 0.1 ) { sum = sum + d; } The program has a syntax error because the semicolons in the for loop are in the wrong place. The program has a syntax error …

Member Avatar for Priyanka_9
0
233

The End.