199,114 Archived Topics
Remove Filter ![]() | |
Recently I started using my first attempt at Python multithreading. The purpose of the code is to run multiple WHILE loops at the same time, one of which searches for the change of a variable to TRUE caused by input picked up by the other. However, when i ran the … Programming multithreading python | |
I'm trying to Add a method to create a random size and position rectangle and add it to the Python list created in my constructor, The colour of the rectangles are based on the rainbow colours (‘red’, ‘orange’ ‘yellow’ ‘green’, ‘blue’ and ‘purple’) this is the current code I have, … | |
/*CODING A PROGRAM FOR LOGIC GATES*// #include<stdio.h> #include<conio.h> [CODE] int x,y,z; //printf("Enter value of x"); scanf("x:",&x); //printf("Enter value of y"); scanf("y:",&y); And(int,int) if(x==1&&y==1) printf("z=1"); else printf("z=0"); Or if(x=0&&y==0) printf("z=0") else printf("z=1"); Not if(x==0) printf(z=1) else printf(z=0) [/CODE] | |
Hello. We're going into Constructora and super, using extends, subclasses etc. I have this code: class Student { private String name; private String matric_no; public Student(String n, String m) { name = n; matric_no = m; } } class UndergradStudent extends Student { private String programme; public UndergradStudent(String n, String … | |
Hello all hope all is well, Im new to c# and new to the site so bare with a noob :). any way I have an assignment and Im running in to a problem where I don't know how to have c# read a text file and turn the numbers … | |
Hi, I want to write a python program for connect to remote server (using ssh) and execute the command and return back with output. Here is my code: import sys import os from subprocess import Popen, PIPE, STDOUT from time import sleep from os import waitpid, execv, read, write #Ports … | |
how i create notification system in jsp Programming java-jsp | |
![]() | Hey everyone, I have a question. I created a page that pop-ups when a user clicks a link and that page displays a table of the information that it pulls from the database that I have created. I want to be able to have a user click an update button … ![]() |
Hi im doing a project for college and after finishing the majority of the code i hit a speedbump i need to register three types of users and one of them uses the department building nick as a basis for the password attribution i have an arraylist for each type, … Programming java | |
Hi Dw. I'm developing a Client Server application. At the moment I can connect the two and send data. The main aim is to make a server as a core control. The server only perform actions according to each client request, so the client can request to connect to let … | |
I am using Visual Studio 13 and programming in visual basic for a intro CSCi class. I need to write a program to calculate weekly pay using a textbox to enter the number of hours via click event, a listbox showing the hours entered, then a text box for hourly … | |
Write a program to generate a pair of private and public keys. You program should also be able to encrypt and decrypt messages using the public and private keys. here is my program: import java.io.*; import java.math.*; import java.security.*; import java.security.interfaces.*; class generateKeyPair { public static void main(String[] array){ if … | |
Assignment Overview1 This assignment focuses on the design, implementation and testing of a Python program which uses file processing, lists and strings to solve the problem described below. Program Specifications: The New York Times newspaper has published “best seller” lists since 1942. Book sales are tracked nationwide, leading to a … | |
Can someone check if I got these correct please?? I'm pretty sure I missed almost half of these so I really need help on these. If someone can explain how to get an answer, that would be great. a: 5 b: address of location of x (0x....) c: address of … | |
{ SumOddEven(A,n) //A is array and n is size of array { int count, sum; for(int i = 1; i<=n; i++) { sum_even=0; sum_odd=0; for(int j = i; j<=n; j++) { if (A[j] Mod 2 == 0) //check if number is even sum_even=sum_even+A[j] //Sum even numbers else sum_odd=sum_odd+A[j] //Sum odd … | |
Hi Dw. I'm trying to install MySQL and its my first time to install MySQL. I've downloaded the latest version which is version 5.7.12 and when I try to install its says "Beginning configuration step: Stopping Server [if necessary] Ended configuration step: Stopping Server [if necessary] Beginning configuration step: Writing … | |
A 24 hex byte message entries: xx xx xx xx xx xx xx xx xx xx xx xx I have a 24 hex byte message entry into a textbox with different byte segment entry requirements, how to code dynamically the range of hex value I require for each segment e.g. … | |
Greetings! I am the freelance web designer doing projects in EU. I’ve done a lot of them for Envato. But recently it turned out that I might be a subject to EU tax authorities’ investigation, as well as thousands of other Envato authors in EU. I’ve described my problem on … ![]() | |
Hi everyone! So we have a web application that some of our clients use to manage their account. Part of that means they can manage activities that their registered employees do. Right now we have a table that logs all of a customer's employees activities, even if they don't use … ![]() | |
Hi, I'm trying to install Grunt with Node.js using this command and this is my first time using Node or Grunt so take it slow :-) $ npm install -g grunt-cli Each time I try to run the above code I get this error; I've searched online for the answer … | |
Hi, I have many records in my table minimum 3000k records. When I select SMS Page , it has two ajax pages, for calculation, So, the SMS Page is taking so much time to complete the task. I want to reduce the time of this page without affecting anywhere. How … | |
Hi I am trying to do the same thing. I would like to save the Facebook user timeline details OR messages in MySQL database. Timeline details are visible in screen total posts are like this http://screenshot.co/#!/2dcbee03ff , if I want to see the 'messages' only I can see in the … | |
Hi I have a php application which runs on an IIS Server and I want to create/append a file on an other server or PC Can I do it if I use fopen and I create a folder on that other server or PC which I grant write access to … | |
For example, In VB 6.0 - Object Browser If we click on any Classes or Members down side it will show multi line text. How can i do that? Programming display visual-basic | |
It has been a long time since i do C++ programming and I am stuck on this question. I don't remember how to solve this kind of question. haha Part 1: Develop a C++ program which asks the user for the choice of either 3x3 or 4x4 2-dimensional array (use … Programming c++ | |
Hi, I am working with Winform Grid .As per my requirement , i need to use two control in single grid cell. please suggest how i can achive it. Thanks in advance. | |
Hi all, I have a text box. When users press enter, it triggers the submit function: commentContent.keydown(function(e){ if(commentContent.is(":focus") && (e.keyCode || e.which) == 13 && !e.shiftKey) { e.preventDefault(); commentForm.submit(); } }); This then prepends the content of the text box into the HTML. `commentsHere.prepend(commentData);` However, when I search for this … | |
Sorry i dont know how to explain this properly, but what i'm trying to get across is how do i get sql to select a data type (i dont think thats wording it properly, sorry) which only appears once? Thanks ;p | |
Sir I have follwing data var1= '5,487,256.36 ' var2= '245,868.48 ' How to get this sum with Js or with any other method. Basically I want to use it with PHP. var3= '5,733,124.84' Please | |
![]() | Hey everyone, I am trying to use JQuery to help me load a page on my page so that the user does not have to refresh or move to a new page. So far, I have the code so that the next page's contents will display, but the update button … |
I am trying to create a table in html/php that is dynamic sized but allows users to edit rows of the table, I have 99% of this done and the last piece is to send edited values VIA ajax to an edit page where I update to the database and … | |
![]() | Hi, i recently created a bit of script to pull images from a database and display them horizontally using a scroll bar. i have now decided to try and integrate it with jquery to give it a bit of life. At first, i use the jquery plugin to use 5 … |
Hi Everyone, I created a script where rows gets cloned, then I created a script to check if a specific code exists in the database. This all works fine. My problem is my status message when a code exist, it shows on the first row but not the rest. I … | |
I need to prevent this urls: index.php/test/ must be redirect to index.php index.php/test/test/ must be redirect to index.php I need this to be automatically, because i have multiple pages (index.php, team.php and etc...) Without bring the names of the pages in htaccess Important: i have this urls: index.php?page=5 (this need's … | |
I'm using the BullionVault API to view my orders. I use the requests from the official documentation https://www.bullionvault.com/help/xml_api.html and python language. My issue is **the request response is the HTML DOM of the BullionVault login page**. Here is my code: login_page_url = "https://or.bullionvault.fr/secure/login.do" login_page_url2 = "https://live.bullionvault.com/secure/j_security_check" payload2 = {'j_username': 'myusername', … | |
I need to write a program to create palindrome words by using the string entered by users. The program should have 2 strings: the first string is used to store input text from the user and the second string is to store the same input text from the user in … Programming c++ | |
form: <form> <table> <tr> <th>Subject</th> <th>Description</th> <th>Final Grade</th> <th>Remarks</th> </tr> <!-- You can loop this one, depends on the subjects. Subject must not be encoded. Baka lalagyan ng maling subject. I just base it to your design so naging ganito. --> <tr> <td><input type="text" name="grades[][subject]" id="grades[][subject]" value="" /></td> <td><input type="text" … | |
Hi, can anyone explain to make script `downstream kbps` and `upstream kbps` ? It's totally Different method from ubuntu, because my `Os System` still window 7. Every second `downstream` and `upstream` must change... Thanks Before... Noted: Python2.7 | |
I'm in a Java class we are using netbeans to create a program. I have the code in and it builds but it will not run. Can anyone assist | |
hi all, pls help... this is my code from where i can select multiple values and post... but it is not displaying the selected values in multiple dropdownlist... how can i solve this???? <?php $loc_con1 = array(1=>'ALL','Andaman and Nicobar Islands','Andhra Pradesh', 'Arunachal Pradesh','Assam', 'Bihar','Chandigarh','Chhattisgarh','Dadra and Nagar Haveli','Daman and Diu','Delhi','Goa','Gujarat','Himachal Pradesh','Jammu … | |
Hello every one. I have a form in VB.Net, as attached, I need to code the OK button. The Transfer From combobox and Transfer To combobox get all there values from the same table. The amount being transfered is keyed in via a textbox. Once the amount has been transferred, … | |
I need to read from a txt file and then pass that array into another function which prints the data in a neat organised manner depending which type pf book it is... So if its audiobook then the book is listed under audiobook, if ebook then under ebook etc... I … | |
Link is: `/example.php?id=1`, no space after `1`. if (isset($_GET["id"])) { $id = $_GET["id"]; echo !is_int($_GET["id"]); // yields "1" (true) !!! } Ask me whatever you need. I check to make sure that my system didn't go crazy `!is_int(1)` yields false. So... I don't know... Maybe `$_GET` passes `"1"` instead of … | |
I am currently working on using Javascript arrays to swap images for rollover buttons. This was working perfectly for one build about a week ago. That is, I am working on something else now and tried to use the same code that worked for this - it's broken now; -A … | |
I make a program to simulate the Shortest Job First algorithm in CPU scheduling .. this function will calculate the start , end, turn,and wait time for each proccess according to Non-preemptive way .. the 1st condition gonna check for the 1st arrival time or the smallest burst time .. … Programming c++ | |
Help me resolve that problem I want to edit all the records only that meets the condition. The problem I'm is that my codes bellow behaves as though there no condition hence it is editing all the records in the table. Dim a As Boolean rs.Open "SELECT* FROM pupils", con, … Programming visual-basic | |
Hi I have an app that I compleated about 2 years ago with vs2010 and all is working. Now I just oppened the app in vs to make some additions and the error 'Format' is a type and cannot be used as an expression is all over the entire app … | |
Hi All, i am use the follwing code work fine, how can i make id for each row in table or div id so only row show which i req. [CODE]<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type="text/javascript"> $(function() { $('#toggle3').click(function() { $('.toggle3').toggle('slow'); return false; }); }); </script> </head> <body> 1313 </body> </html> … | |
Hi All, Relatively new to JS, but something strange is happening. I have one function: var commentContent = $('textarea.comment-box#comment'); commentContent.keydown(function(e){ if((e.keyCode || e.which) == 13 && !e.shiftKey && commentContent.is(":focus")) { e.preventDefault(); commentForm.submit(); } }); Which works absolutely fine. If the object is focused and I press Enter, the submit function … | |
void PatratTexturat(PATRAT patrat, int numar) { switch(numar) { case 1: if(numar==1) glBindTexture(GL_TEXTURE_2D, id_textura[2]); else glBindTexture(GL_TEXTURE_2D,id_textura[3]); break; case 2: if(numar==2) glBindTexture(GL_TEXTURE_2D, id_textura[4]); else glBindTexture(GL_TEXTURE_2D, id_textura[5]); break; case 3: if(numar==3) glBindTexture(GL_TEXTURE_2D, id_textura[6]); else glBindTexture(GL_TEXTURE_2D, id_textura[7]); case 4: if(numar==4) { glBindTexture(GL_TEXTURE_2D, id_textura[8]); } else { glBindTexture(GL_TEXTURE_2D, id_textura[9]); } break; case 5: glBindTexture(GL_TEXTURE_2D,id_textura[10]); break; … |
The End.