Hi my friends! Here is a wrong code, Wrong and I don't know why. My purpose is to make a **sieve of Erasthotene**. I make an unique function with many inner loops. But the execution **don't go cross the lines** I illustrate this with the help of printing the different steps of the script. If someone can poiint out some **error** or lack of understanding, he is welcome an I am grateful! HERE IS THE CODE: from math import sqrt def holeofStrainer(): bigList = [False, False] + [True]*100 print("line 4 - bigList : ", bigList) for num in range(2, 101): …

Member Avatar
+0 forum 0

i want to add another function for level of access in this code. admin=3 artist=2 client=1. like that. but need some help to to that :( thankyou in advance (: <?php include('password.php'); class User extends Password{ private $_db; function __construct($db){ parent::__construct(); $this->_db = $db; } private function get_user_hash($username){ try { $stmt = $this->_db->prepare('SELECT password FROM members WHERE username = :username AND active="Yes" '); $stmt->execute(array('username' => $username)); $row = $stmt->fetch(); return $row['password']; } catch(PDOException $e) { echo '<p class="bg-danger">'.$e->getMessage().'</p>'; } } public function login($username,$password){ $hashed = $this->get_user_hash($username); if($this->password_verify($password,$hashed) == 1){ $_SESSION['loggedin'] = true; return true; } } public function logout(){ session_destroy(); …

Member Avatar
Member Avatar
-1 forum 3

Hello I'm new to programming and I'm trying to make a java application that will "hear" (not record necessarily) the sound and display how loud is.I'm thinking of converting the sound recordings to numbers,so I can see the difference on the sound levels.I got this code and I added the "getLevel()" method,which returns the amplitude of the current recording,but it's returning -1 everytime.I guess I'm not using it properly. Any ideas how I must call this method?I have to deliver my project in a week,so any help will be much appreciated! public class Capture extends JFrame { protected boolean running; …

Member Avatar
Member Avatar
+0 forum 7

Hello all, So I have been scouring the internet trying to find an answer to my question. I usually never have to post a question because someone somewhere has asked it, but I guess there is a first for everything. I am a VERY intro level, brand spankin new 'programmer' (can't even call me that yet). I have 0 hours of college, just high school diploma, but I read a lot. I have been learning Java programming for about 3 months now and am trying to get an idea of where I am and if I am learning at a …

Member Avatar
Member Avatar
+0 forum 8

Hello Community, I was wondering if there is a way to set a multiple level subdomain? eg. sub.sub.domain.com FYI: my web host is with GoDaddy.

Member Avatar
Member Avatar
+0 forum 2

Hi! Just wondering on how to know your level as a programmer. I'm having trouble selecting this while filling up online resume. I am using VB.net as a college student for almost 3 years now. Any idea guys?

Member Avatar
Member Avatar
+0 forum 1

I want to include a .php file, containing a menu bar, in all my pages. Thing is, some of these pages are at different levels: for example, on might be in the root directory, another might be in root/news, another in root/news/2012, and so on. What can I do to make this include always link back to the menu bar file, which is located in my root directory?

Member Avatar
Member Avatar
+0 forum 9

i graduated from Old Dominion University in may of 2011 with a BS degree in computer science and can not find a job. not because they don t exist, but because i dont have experience, which is what they all have told me, even the entry level positions i found i lost because i did not have experience. so what i want to know is how am i supposed to get experience if no one will hire me because i dont have experience? and i am not the only one either who cant get a job because i dont have …

Member Avatar
Member Avatar
+0 forum 2

HI TO ALL, In purchase order level we can generate barcode for those purchases automatically. Please suggest code or any software to overcome this problem. THANKS IN ADVANCE...

Member Avatar
Member Avatar
+0 forum 1

good day. i have a problem with my login from. i have my table under SQL server 2008. which is tbl_user,with a field of userid,username,password and category i created a simple login form but that's fine and working as a simple login.. my problem is that i want to add user level for the program. if the category is user he/she will be restricted for some form, but if the user category admin then he/she will access to all form on the system.. here my code [CODE] private sub btnOK_Click () Dim con As New SqlClient.SqlConnection("Data Source=BRMS-SERVER;Initial Catalog=CavsuDB;Integrated Security=True") Dim …

Member Avatar
Member Avatar
+0 forum 16

Hey guys, I've been doing python programming as basically my sole programming language for about a year and have learned a lot (obviously still learning more everyday). I do a lot of computational work so I'm forced to do a lot of bash scripting as well, although I have made it a personal goal to try to figure out a way to use python to take care of everything. To the point: I was wanting to learn a lower level language simply for a better understanding of coding. I hope this isn't taken as one of the completely annoying questions …

Member Avatar
Member Avatar
+0 forum 6

I am trying to implement process pairs redundancy (process level redundancy) in c/c++. basically there is a active core process 1 running on one system and its standby copy, process 2, is running on other system. When ever the active one goes down the standby becomes active and executes the rest of the processing.Mean while the process 1 which went down rebootes and it now behaves as the standby process. Now there is another process 3 on another system which is sending some (TCP) messages to the active process (may be process 1 or 2 depending which is currently the …

Member Avatar
Member Avatar
+0 forum 3

I'm working in the confines of a binary search tree and an AVL tree, doing some operations to find different statistics for these trees when given large random values. For instance some of my functions include finding the average leaf node depth, find the shallowest leaf node, etc. My question is what is the best way to go through these trees and calculate such values, noting which level things are found, etc. I was considering a level order traversal but I'm not sure the implementation. Any hints or advice will help, Thanks! Edit: Any tips about keeping a height variable …

Member Avatar
Member Avatar
+0 forum 1

Hey :D , take a look [url]http://www.dalilack.com/marketList.php[/url] click edit on the orange button EX : [url]http://www.dalilack.com/marketFormUpdate.php?Id=11[/url] the id of that user is 11, you can use 'hoho33' as a user name & 'shityshit' as a pass now you notice there's info for each member , and in order when that user want to edit and change his info it directed to log in page after write the field then he can change his own info. now the problem is that he can use his user name and password in order to change any of others users info and their details!!!! …

Member Avatar
Member Avatar
+0 forum 12

I have installed latest version of wamp server in my local, I have the following version for Apache - 2.2.17 PHP - 5.3.5 mysql - 5.5.8 I am recursively calling a function inside a class, It has end point after 1300 iterations. But I don't know in my new wamp server installation I am getting the following error [B]Fatal error: Maximum function nesting level of '100' reached, aborting! in D:\wamp\www\[/B] Did any faced this kind of issue, please give me solution...

Member Avatar
Member Avatar
+0 forum 2

The End.