64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Chuckleluck

Hello, I'm fairly new to programming, and I'm not exactly sure how to do line-rect collision detection. If it helps, I'm using SFML 2. Can someone explain to me how I would go about coding line-rect collision detection? Thanks in advance.

Member Avatar for adityatandon
0
234
Member Avatar for xiiopao

Good day guys., im new with vb .net and im currently developing a simple information system for an agency .. im almost done with it but there seem to be a problem with my update statement for the change password code here's my code.., Imports System.Data.OleDb Friend Class login Public …

Member Avatar for xiiopao
0
245
Member Avatar for bilal_fazlani

I using listview on an asp.net form.. It has item template and edit template... I want to add ajax slider in both the templates.. I just used on script manager as suggested my many people,, but for reason i can only see one single slider in the top row.. and …

Member Avatar for bilal_fazlani
0
332
Member Avatar for KushMishra

Hello everyone, I am developing a WPF application in which there is a **header (user control)** with some buttons as "Home", "Upload", "Log Off" etc. What I want is to add this header user control in a page and when I **click the "Upload" button** of this header user control, …

Member Avatar for KushMishra
1
2K
Member Avatar for themaj

I have a Function for checking the input in a textbox and only allowing Numeric & Backspace; everything works fine so far. My form is for financials and it has about 20 textboxes; they all receive Numeric only data; there is NO alpha data on the entire form required. Note …

Member Avatar for themaj
0
156
Member Avatar for soUPERMan

I have two tables namely student and subject joined by a table called student_subject. With the following structure student: +----------------+--------------+------+-----+---------+----------------+ | Field | Type | Null | Key | Default | Extra | +----------------+--------------+------+-----+---------+----------------+ | student_ID | int(11) | NO | PRI | NULL | auto_increment | | studentCode | …

Member Avatar for soUPERMan
0
123
Member Avatar for triumphost

Currently I use: DWORD ThreadProc(LPVOID lpParameter) { void (* function)() = (void (*)())lpParameter; function(); return 0; } void Threading(HANDLE &hThread, DWORD &ThreadID, void* FunctionToPass) { hThread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)ThreadProc, (void*)FunctionToPass, 0, &ThreadID); } And I want to call it like: Handle hThread; DWORD ThreadID; Threading(hThread, ThreadID, AnyFunctionHere); That way …

Member Avatar for mike_2000_17
0
456
Member Avatar for hwoarang69

sorry, i forgot to put php code. Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login_test\register.php on line 152 line 152 is the last lne </form> <?php include("connect.php"); //grab submitted data if(isset($_POST['submit'])) { //grab submitted data $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $username = $_POST['username']; $password = $_POST['password']; $confirm_password = $_POST['confirm_password']; …

Member Avatar for hwoarang69
0
404
Member Avatar for Gus_19

I'm trying to figure out/learn how to overwrite previously saved data. Right now when I save data to my excel form and then reopen it, to edit, a duplicate row with the edited data is shown along with the previously saved data as well.

Member Avatar for Gus_19
0
201
Member Avatar for Awah Mohamed

hi guys, well i am using .htaccess in my website to make SEO friendly urls.. the urls are supposed to look like this: http://localhost/home or http://locahost/singup it is working nicely.. the problem is when i came to makin forms.. how should i submit my forms?? the .htaccess takes all the …

Member Avatar for Awah Mohamed
0
167
Member Avatar for hwoarang69

Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login_test\register.php on last line 2nd question. what is different between name, class, and id? if i just use id will it make difference? <form action="register.php" method="post"> <p id = "reg_error"></p> Firstname: <input class = "text" type="text" name="firstname"><br> Lastname: <input class = "text" type="text" …

Member Avatar for diafol
0
201
Member Avatar for dark_sider_1

Hi there, I installed Qt on my Windows 7 machine and I tried to configure CMake but ran into this error: CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91 (MESSAGE): Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_INCLUDE_DIR QT_QTCORE_LIBRARY QT_QTGUI_INCLUDE_DIR QT_QTGUI_LIBRARY QT_QTOPENGL_INCLUDE_DIR QT_QTOPENGL_LIBRARY QT_UIC_EXECUTABLE) Call Stack (most recent call …

Member Avatar for dark_sider_1
0
599
Member Avatar for Baduizm

I need a simple script to echo current date 600 times once every second redirect it to a text file and follow the file as it grows using a tail command.

Member Avatar for JeoSaurus
0
174
Member Avatar for GeekTool

double population = 7000000000; long population2 = 7000000000; > > I have to write down world population, so i used both double and long primitive types. However, both of them says that this number is out of range. What can i do with this? i made a google search but …

Member Avatar for sabbib
0
155
Member Avatar for zachattack05

Is there a way to set the default properties for a control? Specifically labels so that the margins are all 3 like text boxes? Any ideas?

Member Avatar for zachattack05
0
95
Member Avatar for crazymidget01

The method I am trying to write is by passing two arrays, one an array of integers and boolean array, then find the smallest, then next smallest, then next next smallest, etc values in the array "a". Outside of this method, the boolean at the corresponding index to smallest value …

Member Avatar for crazymidget01
0
245
Member Avatar for Lucaci Andrew

I have this function: void read(){ int id; string desc; string title, type; cout<<"Movie's id: "; cin>>id; cout<<"Movie's title: "; cin>>title; cout<<"Movie's description: "; getline(cin, desc, '\n'); cout<<"Movie's type: "; cin>>type; cout<<"You have typed in: " <<id <<" " <<title <<" " <<desc <<" " <<type <<".\n"; } and my …

Member Avatar for Lucaci Andrew
0
281
Member Avatar for MasterHacker110

I wrote my first C# program bur now i cant find the .cs file or the .exe program any where. where is it and how can i setup my compiler to make those files on my desktop. I am using Microsoft Visual Studio C# Express 2012 Thanks....

Member Avatar for thines01
0
121
Member Avatar for rogelioz

Hi, I've tried several combinations of commands like the following to finish a session: [code] Request.Cookies.Remove("cookie1"); Request.Cookies.Remove("cookie2"); Request.Cookies.Clear(); Response.Cookies.Remove("cookie1"); Response.Cookies.Remove("cooke2"); Response.Cookies.Clear(); [/code] But after that I go to another page that checks for the existence of the cookies, and it still finds them. Any ideas? Thanks in advance.

Member Avatar for sandybarasker
0
146
Member Avatar for lewashby

I'M trying to compile a very small cout<< console application in MSC C++ but the program flashes up and goes away so quick that I can't see anything that's going on. Below are my headings, what's missing? Thanks. #include <Stdafx.h> #include <iostream> using namespace std;

Member Avatar for Nick Evan
0
248
Member Avatar for Kewne

well I have this code, at first it was working perfectly....then a little modification just caused an error. I want to know what are the possible causes of this error Notice: Undefined index: CSM_blackmere_portside2_1 in C:\xampp\htdocs\PMS\F51-AI_insert.php on line 16 aside from, of course being defined .. i'm thinking of something …

Member Avatar for Kewne
0
131
Member Avatar for prem2

Hi , I have implemented the Hashtable and enumeration concepts in java.The program is executed fine but i have a doubt.When i try to print the keys and elements in the Hashtable by using enumeration ,it start prints from the second key and second element. Did any one know why …

Member Avatar for JamesCherrill
0
173
Member Avatar for mariaceline_21

Notice: Undefined index: HTTP_REFERER in C:\xampp\htdocs\cart\order.php on line <?php define('INCLUDE_CHECK',1); require "connect.php"; if(!$_POST) { if($_SERVER['HTTP_REFERER']) header('Location : '.$_SERVER['HTTP_REFERER']); exit; } ?>

Member Avatar for mariaceline_21
0
231
Member Avatar for doodalf

Hi, I'm wondering if someone can help me with a problem I've been trying to solve for almost a week now which concerns shared ranking (i.e. whilst I am trying to rank things in order of one field, if two or more entries share the same value then they receive …

Member Avatar for smantscheff
0
174
Member Avatar for mariaceline_21

Notice: Undefined variable: _SESSION in C:\xampp\htdocs\dl\index.php on line 117 here;s the code: <?php if ($_SESSION['username']) echo "Hello ".$_SESSION['username']." â™”<a href='logout.php'> Logout </a> "; ?>

Member Avatar for vibhaJ
0
102
Member Avatar for mariaceline_21

Strict Standards: Only variables should be passed by reference in C:\xampp\htdocs\cart\ajax\tips.php on line 8

Member Avatar for mariaceline_21
0
241
Member Avatar for MasterHacker110

I am wondering that if you can make a C# program that is like C++. My meaning with that is that it doesnt require a "Runtime" to work. I ask this becuase i want to write a operating system completely in C# (yes with very few assembly involved).

Member Avatar for Godfear1
0
203
Member Avatar for iismitch55

I have been researching ways to make a DOS window disappear when starting a program. I have solved this, by using getconsolewindow() and setwindow(). The thing is, I still get a blip where the DOS appears for a couple miliseconds. Is there a way to fix that? Clip of code: …

Member Avatar for iismitch55
0
930
Member Avatar for klevasseur

I have some text files (actually csv) that have the extension .ROS stored on a server and I can't seem to open them in Python. If I change the extension to .txt or .csv, I can open them fine either as text or csv, but I'd rather keep the .ROS …

Member Avatar for vegaseat
0
136
Member Avatar for jateshs1007

Guys i am niew for the .net site development. I have a small question. I have my personal login page created in jquery. I am not using login form of ASP.net. Now the question is how to create a session for the user. I have 4 web pages (Below are …

Member Avatar for hericles
0
167
Member Avatar for hwoarang69

in my index.php there is a <p> tag in form. i want to print errors there from login.php file. in login.php iam checking for 3 errors. is there a way i can print them in index.php in <p> tag? i was thinking may be i use an array in login.php? …

Member Avatar for diafol
0
643
Member Avatar for rahim_fayaz

Hi I am getting this error when running a very similar code like the below. I have memory problem,but i dont know how can solve it. please help. Thanks in advance. /////////////////////////////////////////// ~~~~~~~ERROR~~~~~~~~ terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Aborted /////////////////////////////////////////// ~~~~~~~~Code~~~~~~~~~ int main(){ /** Declare …

Member Avatar for rahim_fayaz
0
141
Member Avatar for abulut

Hİ; I want you guys to prepare a script. I will attach output.txt file. ıt should check BSC and BCF name which are in INPUT.txt and SITE.txt. After comparing , ıt should come out a SITE column in the OUTPUT.txt and there will be site names under of that column. …

Member Avatar for abulut
0
133
Member Avatar for showman13

Good Morning... I was just wondering if it is possible to do a query based on the status of a record, and if one is found with the status of 'E'arned, then to return the relevant fields from that record while at the same time changing the status to 'P'laced... …

Member Avatar for diafol
0
174
Member Avatar for programing

here code for make new file .. how i can make it to insert data to file and open it /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package files; import java.io.*; import java.util.Scanner; public class Files{ public static …

Member Avatar for NormR1
0
792
Member Avatar for GeekTool

import java.util.Scanner; public class Interest { public void determineInterest(){ Scanner input = new Scanner(System.in); double amount; double rate1 = 0.05; double rate2 = 0.06; double rate3 = 0.07; double rate4 = 0.08; double year; double principal = 1000; System.out.println("Please choose your bank below:\na)Ziraat Bankasi\nb)Halk Bankasi\nc)Is bankasi\nd)City Bank"); String bankname = …

Member Avatar for NormR1
0
264
Member Avatar for Despairy

I have read a file with around 120k words so i try to do it fast. have seen the: int x = setvbuf(fp, (char *)NULL, _IOFBF, BSZ); assert( x == 0 && fp != NULL ); option but it takes more than a second ( 1 mb file) so now …

Member Avatar for Despairy
0
296
Member Avatar for hwoarang69

so i have a database set up. it has 3 fields. 1 is id, 2nd is uername, and 3rd is password. i already create a one username and password. in index.php for some reason it always goes inside else statment. and it skips the if part. -------------------- index.php -------------- <?php …

Member Avatar for phorce
0
462
Member Avatar for kelvinejimogu

Hi guys, **I have this error :** Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most …

Member Avatar for kelvinejimogu
0
182
Member Avatar for drichird

In Python: #python class myClass: istat = 111 #exists as soon as import class def __init__(self): print("in ctor") self.iauto = 222 #does not exist until instance created ..... mc1 = myClass() mc2 = myClass() In C++: //C++ class myClass { public: static int istat; int iauto; }; ..... //main myClass …

Member Avatar for Gribouillis
0
808
Member Avatar for Farhad.idrees

i have this code...i m retreiveing did from selected name........ i want to assign this to varible because i want to use this variable to another place... i hope i will get help here.. [code] MyDataAdapter = new SqlDataAdapter("select D_Id from tblDepart where D_Name = '" + D_Name + "'", …

Member Avatar for vpsingh136
0
172
Member Avatar for ilovejava

i have to do a pyramid with a pattern like this [iCODE] 1 1 2 1 1 2 4 2 1 1 2 4 16 4 2 1[/iCODE] i just realized dani web didnt take my center pyrmaid thing it moved to the side no matter what spacing i did …

Member Avatar for JamesCherrill
0
323
Member Avatar for Kewne

ammm...I have this code <table border="1" name="myTable" id="myTable"> <?php $nRow = $_GET['rowLength']; $nColumn = 7; for($i=0;$i<$nRow;$i++){ echo "<TR>"; for($i=0;$i<$nColumn;$i++){ echo "<TD><INPUT TYPE='text' NAME='' VALUE=''/></TD>"; } echo "</TR>"; }?> </table> now, I'm trying to pass js variable to php variable on the same page.... but I'm having this error: Undefined index: …

Member Avatar for Kewne
0
212
Member Avatar for hwoarang69

hi, iam new at php and iam doing a tutorial from youtube. I am keep getting 2 errors 1st error is "Column count doesn't match value count at row 1" 2nd error is nothing shows up when i do <?php echo $error_message; ?> full code of registration file <?php /* …

Member Avatar for pritaeas
0
236
Member Avatar for khuzdaar

I am familiar with loops, functions, recursions, (though I have praticed some questions, it is troubling to get the hang of it completely), passing by value, reference and ofcourse pointers. I can work with arrays and 2d arrays. This is my second project. My first project was hangman. My sir …

Member Avatar for khuzdaar
0
517
Member Avatar for Mike Bishop

I have a string 17:55:88 I want to split this up into the three sections and store them in varibles. IE I would like to have the 88 stored in a varible the 55 in a varible and the 17 in a varible. the following code does what i want, …

Member Avatar for Reverend Jim
0
128
Member Avatar for triumphost

I want to start developing an IDE or at least a Syntax highlighter into my program. Atm it's a simple text editor with basic copy paste functions. How does Notepad++ do it? Is there a way I can integrate that into my own program? If not then I'll write it …

Member Avatar for mike_2000_17
0
1K
Member Avatar for erezz

Hi, I have four files named: AS1.txt AS2.txt AS3.txt AS4.txt The files contain the following text: Example: AS_CLI/ASDiagnostic/Diag> 7 phone 0773008619 AS_CLI/ASDiagnostic/Diag> 7 phone 033008775 AS_CLI/ASDiagnostic/Diag> 7 phone 087300936 AS_CLI/ASDiagnostic/Diag> 7 phone 0773009111 AS_CLI/ASDiagnostic/Diag> 7 phone 0773009701 Status = FAILED AS_CLI/ASDiagnostic/Diag> 7 phone 0773011572 AS_CLI/ASDiagnostic/Diag> 7 phone 0773012844 AS_CLI/ASDiagnostic/Diag> 7 …

Member Avatar for erezz
0
213
Member Avatar for Maha Sh.

Hi all, I'm trying to get some values from my database using data reader. Its my first time in using dataReader and I have this error "Value of type 'System.Data.SqlClient.SqlDataReader' cannot be converted to 'String'." My code Public Sub LogIn(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Dim …

Member Avatar for Maha Sh.
0
234
Member Avatar for aot

As a psychologist, it's useful to be able to time people's reactions in milliseconds. What kind of accuracy could I expect to get in this regard from Python? From what I've read so far, it doesn't look like I can hope to get precise enough timing to get reliable results, …

Member Avatar for BBTK
0
9K

The End.