199,114 Archived Topics
Remove Filter ![]() | |
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") | |
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 … | |
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 … | |
I'm a beginner to Python and I decided to make a permutation finder program. Have fun and don't question the name. :) | |
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 … | |
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> … | |
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 … | |
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 … | |
Is there are an easier way of serializing a vector attribute of an object in c++ using sqlite3? | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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.   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 … | |
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 … | |
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 | |
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 … | |
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"; | |
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). … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
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 … | |
<?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 ? :( | |
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: … | |
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 … | |
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? | |
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 … ![]() | |
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. | |
which version of crystal report will support for vb6 in win 7? will cr Xi r2 applicable with vb6 in win 7 32 bit. | |
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 | |
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). | |
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 … | |
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. … ![]() | |
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 … |
The End.