199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Goldfinch

Hi, I am building this script to display a daily comic, I am trying to get every day after the start date and up to the present date to turn into a link on the calendar but only those days. The script is more than one file but I believe …

Member Avatar for Goldfinch
0
316
Member Avatar for tibormarias

Dear Sirs! I have this php syntax in my <head>. <?php // MySQL mysql_connect("localhost", "fundis_petrol", "petrol123") or die(mysql_error()); mysql_select_db("fundis_petrol") or die(mysql_error()); // Table $result = mysql_query("SELECT * FROM `fillingstations` LIMIT 0 , 30") or die(mysql_error()); // Print while($row = mysql_fetch_array($result)){ echo $row[2]; } ?> And I also have this JS …

Member Avatar for tibormarias
0
274
Member Avatar for drichird

#module nametest def showName(): print("__name__ is: " + str(__name__)) If I import nametest into another module or into the shell interpreter and call nametest.showName() I find that name = "nametest", in other words __name__ gets the module name it is a built-in member of? The only exception I know of …

Member Avatar for drichird
0
250
Member Avatar for hwoarang69

me and my frieds are going to be buillding a website which uses php,html,css,sql,jquery. over project will be really big and snice its more than one person. we cant work on 1 computer. also its going to be hard to keep trak of all files on every different computers. is …

Member Avatar for EvolutionFallen
0
97
Member Avatar for blahblah1234las

New concepts to be applied for this assignment Lists File input and output Exceptions Generating random numbers Debugging flags/messages (Note: style requirements from previous assignments e.g., functional decomposition must also be applied). Introduction Write a fitness simulation whereby a single runner is traveling a fixed distance. The runner only has …

Member Avatar for HiHe
0
127
Member Avatar for ogrishmania

I'm sort of a begginer in classes. I must implement a simple problem: chosing a phone. I thought that I should make a program in which a user can select some conditions, like must have wifi or not, android or other, etc. and return a list with the phones that …

Member Avatar for mrnutty
0
286
Member Avatar for aaron.jensen.923

Write a Python program which will read data for several students from a text file and create a list of lists to store that data. The data must be read from a text file named “Lab11.txt”. Each line in the text file contains the first name, last name, techid, number …

Member Avatar for HiHe
0
311
Member Avatar for bvrameshbabu

I came across a weird requirement from my client. Format an integer with leading zeros with out changing its type like below 1 = 01 and not "01" 2 = 02 and not "02" I have searched whole google. But didn't found any way to achieve it. It seems to …

Member Avatar for DavidB
0
153
Member Avatar for fdama

Hi, I am working on an exercise in a book and have difficulty with it. I have completed the first part of the exercise which was to create a guessing game where the the player attempts to guess a secret number randomly generated. Suggestions such as to guess Lower and …

Member Avatar for woooee
0
269
Member Avatar for Matigo

Hello everyone In my app i'm using the counter and timer, But im stuck with resetting the counter My code is: If Timer2.Enabled = True Then counter = counter + 1 Label1.Text = counter If Label1.Text = "180" Then Timer2.Enabled = false Timer3.Enabled = true End If End If End …

Member Avatar for Matigo
0
793
Member Avatar for ppotter3

Hello! How is everyone? I know this program is somewhat simple, but I am working on learning classes, and I am trying to implement this in my code. I pretty sure my mathematics done in the program are correct, or at least on the write track. Here's what I am …

Member Avatar for magadascar
0
2K
Member Avatar for thechetantalwar

I have a created a small user interface in C++ using Graphics. Now i want to extend it. Such as i want to make it bootable, or how can it act as an Operating System?

Member Avatar for thechetantalwar
0
354
Member Avatar for hwoarang69

<?php //if user hit sumbit //check if field are not empty if(isset($_POST["username"]) && isset($_POST["password"])) { $manager = preg_replace(#[^A-Za-z0-9#i',",$_SESSION["username"]]); $password = preg_replace(#[^A-Za-z0-9#i',",$_SESSION["password"]]); include "../storescript/connect_to_mysql.php"; $sql = mysql_query("SELECT id FROM admin WHERE username='$manger' AND password='$password' LIMIT 1"); //make sure person exists in database--- $existCount = mysql_num_rows($sql); //count the row num if($existCount == …

Member Avatar for hwoarang69
0
112
Member Avatar for Viped

Hi, I was creating clone of breakout and got the game working correctly. But after setting up menu my keyboard doesnt respond anymore. But if I launch game directly without Menu class keys are working perfectly. Where the problem might be? Here is the full source code. VBreakOut.java package net.viped; …

Member Avatar for NormR1
0
409
Member Avatar for hwoarang69

<?php session_start(); //if user is not loged in if(!isset($_SESSION["manager"])) { header("location: admin_login.php"); exit(); } //check if user exists in database $managerID = preg_replace('#[^0-9#]i','',$_SESSION["id"]); //decype the id $manager = preg_replace('#[^A-Za-z0-9]#i','',$_SESSION["manager"]); $password = preg_replace('#[^A-Za-z0-9]#i','',$_SESSION["password"]); include "../storescripts/connect_to_mysql.php"; $sql = mysql_query("SELECT * FROM admin WHERE id='$managerID' AND username='$manager' AND password='$password' LIMIT 1"); //make sure …

Member Avatar for hwoarang69
0
269
Member Avatar for mukiibi

The code below compares three numbers and it prints out the Maximum and Minimum value, let me hope it will rescue somebody :) import java.util.Scanner; public class MaxMin { public static void main(String args[]) { int w,x, y; System.out.println("\n\nTHE PROGRAM BELOW CALCULATES AND OUT PUTS THE MAXIMUM AND MINIMUM OF …

Member Avatar for bibiki
0
225
Member Avatar for DyO1

Hello, I need a code that will check if a certain text exist. This is how it's now: If TextBox2.Text = ".sys\clock" Then TextBox1.Text = TextBox1.Text + Environment.NewLine + ("It's") + DateTime.Now End If and I want to make something like this If TextBox2.Text = ".sys\clock" Then TextBox1.Text = TextBox1.Text …

Member Avatar for Reverend Jim
0
223
Member Avatar for thompsonSensibl

Hello, I'm in a pickle. (Please observe the code) In the actionPerformed method, I don't know how I can get the value of the variable 'minutes'. I can get 'hours' by e.getActionCommand(), but can't do minutes that way. I need to get both 'hours' and 'minutes' at the same action. …

Member Avatar for thompsonSensibl
0
243
Member Avatar for bsewell

Hi, I've written some code in PHP, which I have tried converting to ASP.NET after looking at some examples. I'm stuck on a form processor, where I'm trying to check if some values have been filled in or not. Basicly I had a few issets() to do this in the …

Member Avatar for bsewell
0
183
Member Avatar for sania khan

Can we convert the record displayed on the web page to pdf doc ? if possible then how we can achieve this?

Member Avatar for SautinSoft
0
985
Member Avatar for sh2012.aps

i am using the url = "https://prd.aps.net/cm/json/login.json?username=aps@aps.com&pass=ca4433$$&apikey=1dd80ss107s3ad9593c857cc6d14d3a3" Note:: if iam using the http as a protocol it just grab the values in a few seconds(3 to 4) but using https its a big issue around 40 sec it takes when i am calling curl_easy_perform(curl) why so? please take a part …

0
170
Member Avatar for joshl_1995

Hello Community, I was wondering if there is a way to make a program that will copy text from an excel spreatsheet and place it in another using visualbasic.net not vba? Please Help

Member Avatar for Reverend Jim
0
278
Member Avatar for maclam13

I am trying to read data from a file in a loop. The file looks like this: X Joe Scholtz 437-4798 A Tim Wade 768-7658 X Sara Jobs 326-7857 ! Jaynce Bee 354-8678 (The X in front is for preferred or not preferred.) I am getting the first and last …

Member Avatar for Ancient Dragon
0
207
Member Avatar for timon.bijl

Hello , i was kinda getting interested in a keylogger so can anyone maybe copy paste a keylogger code just an easy 1 . If you type something it just has to appear in a textbox if you can help me , please do it! thx

Member Avatar for pritaeas
0
113
Member Avatar for alaa sam

Hi everyone I'm using stat() function to get the file's attributes , but I don't know how to get the permission of it . So can anyone tell me how to find the permission of the file?? Thanks in advance

Member Avatar for alaa sam
0
840
Member Avatar for sundar.mjk

hi it 's working but the Grid view not disp.lay the details Dim cn As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0;" & "Data Source=D:\Task_one_one\TaskNew\TaskNew\App_Data\db1.mdb") cn.Open() Try Dim myTable As DataTable = New DataTable("MyTable") 'Dim ds As DataSet = New DataSet myTable.Columns.Add(New DataColumn("Emp Id")) myTable.Columns.Add(New DataColumn("Start Time")) myTable.Columns.Add(New DataColumn("End Time")) myTable.Columns.Add(New DataColumn("Hours")) myTable.Columns.Add(New …

Member Avatar for G_Waddell
0
174
Member Avatar for william.bishop.7169

Consider the following: for (int counter = 1; counter < 1; counter -) How many times will the loop execute?

Member Avatar for rohit.deshmukh2009
0
128
Member Avatar for krystosan

I want to move/ delete not os.remove files or folder recycle bin on windows or trash in other OSes using standard lib available in python .. is it possible ?

Member Avatar for krystosan
0
124
Member Avatar for germainelol1

I have a Java class called Term holding polynomials like below public Term(int c, int e) throws NegativeExponent { if (e < 0) throw new NegativeExponent(); coef = c; expo = (coef == 0) ? 1 : e; } I also have an equals method in the same class like …

Member Avatar for JamesCherrill
0
504
Member Avatar for doha786

in my home.php file i hv defined one path as javascript variable like below: <?php $path= "http://localhost/tiffany/" ?> <script type="text/javascript" src="<?php echo $path; ?>js/manuals.js"></script> <script type="text/javascript" > var templateUrl = '<?php echo $path; ?>'; </script> & in my 'manuals.js' file i have included someother js files adding with that variable: …

Member Avatar for doha786
0
268
Member Avatar for Jwerb86

Hey all! I'm trying to write a program that simulates a student database. From the user, it takes the number of students there are, their names, student ID's, and majors. I'm having a runtime problem with the code I have and was curious to know if anyone can help. It …

Member Avatar for Jwerb86
0
208
Member Avatar for Goldfinch

Hi, I'm having some trouble writing a method to sort a LinkedQueue ADT. I find it difficult to keep track of the order things when sorting is concerned (ha ha ha). I'm trying to pull the values out of a Queue which store objects of type PrinterItem. Those objects in …

Member Avatar for Goldfinch
0
160
Member Avatar for solomon_13000

There are 5 columns in my table structure and they are: 1) Id - PK 2) Name 3) IdentityNo1 4) IdentityNo2 5) PassportNo Since duplicate records are inserted into the table I am attempting to remove the duplicate records. What makes the records unique is the IdentityNo1, IdentityNo2 and Passport …

Member Avatar for buddylee17
0
157
Member Avatar for parth27987

> The game of Rush Hour is played in a 6x6 grid. The goal is to drive your vehicle out of the maze as quickly as possible. You may move each vehicle one square at a time, but only in the direction (up-down or left-right) that is oriented. You may …

Member Avatar for parth27987
0
506
Member Avatar for Vish0203

How to manipulate .doc files using c++ ??? I'm working on a project which needs this manipulation.. But, I feel that it is not possible to manipulate .doc files :/ can anyone help me out here??

Member Avatar for Vish0203
0
277
Member Avatar for natehome

so im trying to make a very basic multiplayer game that gets a players x y from a server then displays the player. the script works fine when there is only one user in the database but when more users are added the script wont display the right player. i …

Member Avatar for christopher.j.burnham
0
605
Member Avatar for sultankhan

i have the follwing table name email pass name1 email1 pass1 name2 eamil2 pass2 how can i cahnge name1 from my admin page please any one help me

Member Avatar for tscina
0
264
Member Avatar for ratanji

hi i 've to store the images in folder and retrive them, so how can i ? can anyone help me ?

Member Avatar for ratanji
0
109
Member Avatar for ranam

Error 4 error C2504: 'CYodaGeneralAuditListCtrl' : base class undefined c:\teamyoda\mainline\yoda\accounting\yodaaccountingauditlistctrl.h 15 i am recieving this erro can any one help me in solving it

Member Avatar for ranam
0
115
Member Avatar for dr.syroj
Member Avatar for Archaismic

Here's what I'm working with. #include <windows.h> #include "iostream" void SendText(char* message, int size) { int lc=0; do{ keybd_event(VkKeyScan(message[lc]),0,KEYEVENTF_EXTENDEDKEY,0); keybd_event(VkKeyScan(message[lc]),0,KEYEVENTF_KEYUP,0); lc=lc+1; } while(lc<size); keybd_event(VK_RETURN,0,KEYEVENTF_EXTENDEDKEY,0); //Presses Return keybd_event(VK_RETURN,0,KEYEVENTF_KEYUP,0); //Presses Return } int main() { Sleep(5000); char a=98; SendText("a", strlen("a")); } I think this is a noobish question but, how would I …

Member Avatar for Archaismic
0
209
Member Avatar for tboctavan

Ok, the code button is not working for me today, so I'kk be brief. This is homework, but it's been turned in and graded (A). My question is how do I make it so pressing enter clicks my button? for example: private void computeButton_Click(object sender, EventArgs e) { double hoursWorked …

Member Avatar for tboctavan
0
210
Member Avatar for tenorjazz

Hi, I'm trying to make a template page for my web site. The main template will include a header section, a main body section and a footer section (not included in sample code). I want to make the header and footer sections separate html pages so I only need to …

Member Avatar for code739
0
220
Member Avatar for HelloJarvis

I can't select elements within my popover for the Bootstrap framework. I've tried: $("#button").popover({content:"<span id="test">Test</span>", html:true, placement:"bottom"}); And tried selecting the inner span with: $("#test").html("foo"); This doesn't seem to work. Help!

Member Avatar for AleMonteiro
0
3K
Member Avatar for Jenniferting

Credit card numbers follow certain patterns. A credit card number must have between 13 and 19 digits. It must start with for example: 4 for Visa cards 5 for Master cards 37 for American Express cards 6 for Discover cards So, this here is the code thats identify either a …

Member Avatar for Ancient Dragon
0
252
Member Avatar for taylor.mitchell.353

I am making a project using hashtables. I have to use a linked list to handle duplicate hashcodes. The Objects that I am turning into hash tables are State objects with just a String name. I have debugged and tested my entire project and cannot figure out why it is …

Member Avatar for taylor.mitchell.353
0
706
Member Avatar for Pervex

HI, Am trying for onload page content from backend(perl) using Ajax .When Tried with simple CGIHTTPServer then, the pages is getting load as required . But as same page i moved to Apache Server , the content are not getting load .Am not getting any error also..:( how to debug …

Member Avatar for code739
0
199
Member Avatar for diluadamu
Member Avatar for adrian.mcguinness

I cannot work out how to get an integer value from a textbox from inside a datalist for a variable to insert into SQL. Here is my code. int qty = int.parse(dlProducts.Controls[0].FindControl("txtProductQty")); and this variable will be put into an insert Query. into a textbox inside a datalist id="dlProducts" <asp:TextBox …

Member Avatar for JorgeM
0
561
Member Avatar for ilian.bonov

#include "stdafx.h" #include <stdio.h> #include <math.h> #include <iostream> using namespace std; int main() { int a; int b; int c; double X1; double X2; double D; cout<<"a="; cin>>a>>endl; cout<<"b="; cin>>b>>endl; cout<<"c="; cin>>c>>endl; X1 = (-b+sqrt((b*b)-(4*a*c)))/(2(a)); X2 = (-b-sqrt((b*b)-(4*a*c)))/(2(a)); D =(b*b)-(4*a*c)); if (D >= 0) { cout<<"..."<<X1<<X2<<endl; } if (D < …

Member Avatar for ilian.bonov
0
132

The End.