199,114 Archived Topics
Remove Filter ![]() | |
I'm revisiting an old IR tracking project, and want to use it in a blender game. I would like to know if anyone could help optimize the parsing algorithm or tell me an easier way to track multiple points with code. "im" is an instance of an image I captured … | |
Ok if anyone knows how to do python programming please help, this is my last assignment and i cant figure out how i should start this here are the directions... You are to write a Python program that randomly generates birthdays – considering only the month and day. For example, … | |
I'm designing a new database and I'm hoping for some advice or recommended reading...basically just where you think I should go from here. The database is for holding contact information. The contacts are of various sorts for our business: customers, friends, colleagues, contributors, etc. We want to use the database … | |
I have 2 files: master.php and test.php. master.php has a class in it that I would like to include in test.php. The only problem is that test.php is ignoring the class in master.php. Here is the code: Test.php: [code] include("http://".$_SERVER['HTTP_HOST']."/rebuild/scripts/php/master.php"); $loader = new modLoader(); $module[0] = 'm.class.templating.php'; $module[1] = 'm.class.userInfo.php'; … | |
Evening, I have built a program with full SQL functionality (from pulling to adding etc). I am using stored proceedures for the SQL queries. I seem to have a problem when adding / updating a SQL VARCHAR column when the item being added / updated has a space (ie 'Add … | |
i want the charcter i display in the grid to move upwards when i press 'w' & downwards when i press's' & right when in press'd' & left when i press 'a',,,,i have written a code that doesnt work can anyone help me to find out what is the wrong … | |
Hi,I want to know how canwe select a value from a datagrid and search for that value in another databse.Thanks | |
I am writing a program for connect four I have all the code written and all works fine i was wondering however if anyone could offer any advice on a function to determine if a player has 4 or more in a row cause i just cant seem to think … | |
is it possible to open and work in two files from same or different location simultaneously. How it is possible? Please suggest Thanks / Regards Mahesh | |
I have two questions one is kind of a newbie question and the other one is a little more advanced. I have been coding C++ off and on for the past couple of years as a hobby and a little for my EE classes. I usually in my class reference … | |
I have a timer that runs a SQL query every 30 seconds to retrieve updated information. Unfortunately every time the query runs the vertical scroll bar resets to the top most part of the form. I tried [CODE=c#] int scrollPosition = this.VerticalScroll.Value; [/CODE] at the beginning of the timer code … | |
Hi, I have a code snippet here as in the following: [CODE] if(preg_match("(Mon|Tue|Wed|Thu|Fri)/i", $keywords[$i])) { $day_query ="start_time.day='12345' AND end_time.day='12345'"; } if(preg_match("Sat/i", $keywords[$i])) { $day_query = "start_time.Sat_route != 'NULL' AND end_time.Sat_route != 'NULL'"; } else { echo $keywords[i] . " is not a term that exists in the database. Make sure … | |
Hi all, I declared a vector of pointers in a header file named "bug.h" [CODE]#ifndef BUG_H #define BUG_H #include <vector> #include "board.h" #include "prey.h" class Bug: public Prey{ public: Bug(Board& boa); Bug(int x,int y,Board& boa); void breed(Board& boa); int getx(); int gety(); }; typedef Bug* Bugpt; std::vector <Bugpt> Bugarr(6); void … | |
I have a table that looks like: [CODE] <table id="mytable" border="2" width="640px"> <tr> <td></td> <td><b>Col 1</b></td> <td><b>Col 2</b></td> <td><b>Col 3</b></td> <td><b>Col 4</b></td> <td><b>Col 5</b></td> <td><b>Col 6</b></td> <td><b>Col 7</b></td> </table> [/CODE] and a function to add a row and cells in the row that looks like: [CODE] function addRow() { //add … | |
This code is for a friend's WinMo application, but the problem is when he calls a method it resets all of the array's values to 0, but it isn't the code within the method that does it but the act of calling the method. double[] enPosX = { 0, 0, … | |
greetings.. i'm newbie on php and mysql.. i need help on how to create search form that return the results related to it? i'm using php mysql.. thus, i need help on how to make each result that'll be as a link to all data in it's row.. thank you! | |
[CODE] int i=5; i.ToString(); [/CODE] AND [CODE] int i=5; Object obj=i; obj.ToString(); [/CODE] I see this code in a c# book but i didnt understand this code, i got the meaning of boxing that mean Boxing allows value types to be implicitly treated like objects, plz explain those 2 code … | |
I don't recall ever having trouble using a similar procedure in the past but for some reason this one is giving me tons of trouble. Everytime it gets executed, it fires "Object doesn't support this property or method" error and I just can't understand why. Here is the snippet [CODE]SelectedEntry … | |
i am just learning C++ again after about 5 years of not learning it so i decided to use Visual C++ but learning is a bit hard at the moment, understanding everything and llearning to use everything anyway i need help or need to know why this code won't work … | |
hi guys i am trying to fill datagrid from database.I using the following code.Can anyone tell me what am i doing wrong. [code] public Form1() { InitializeComponent(); richTextBox1.Text = "Word: I \nDefinition:"; richTextBox3.Text = "Word: I \nDefinition:"; label2.Text = "Hindi"; dateTimePicker1.Visible = false; SqlDataAdapter dtadp = new SqlDataAdapter(); DataTable dtbl … | |
I have created a program, and wanted some critique on it. There is a website that I go to in order to download roms, and I do not like clicking a ton of links and waiting 15 seconds to download it, so I created a program to fetch it for … | |
Hi Guys, I need your help with calendar.I want to know how can i popup calendar when i hit a button(I am using visual studio with c#) and look up that dtae in database. Thanks | |
Can anyone please tell me why this returns records in Access SQL pane but not from VB6 using ADO? SELECT LCD.*, LCS.*, LS.*, LMM.*, LPS.si_ElementNumber FROM ((TableLOANContractualDynamic LCD INNER JOIN TableLOANLoanStatic LS ON (LCD.sv_LoanNumber = LS.sv_LoanNumber) AND (LCD.sv_CoNumber = LS.sv_CoNumber)) INNER JOIN TableLOANLoanContractualStatic LCS ON (LCD.sv_LoanNumber = LCS.sv_LoanNumber) AND (LCD.sv_CoNumber … | |
Hi, I try to develop Forms App which will count my working hours, taxes, expenses etc... At moment Iam working on calendar. On the first form I have combobox which sends the name of month into the ReturnNumberOfDaysInCurrentMonth(). The Class returns the number of month for DateTime.DaysInMonth(int,int), which returns the … | |
I have built a marquee of images that scrolls inside a cell of a table. The marquee width, of course, is dictated by the width of the cell. But I don't want the number of images that actually scroll inside the marquee to cut off based on the width of … | |
![]() | Data entered in textboxes is not getting updated in database. In debug mode I see that textbox1 and textbox2 in ItemUpdating event contain the same values as they had before calling ItemUpdating. Here's my listview control: [CODE]<asp:ListView ID="ListView1" runat="server" onitemediting="ListView1_ItemEditing" onitemupdating="ListView1_ItemUpdating" oniteminserting="ListView1_ItemInserting"> //LayoutTemplate removed <ItemTemplate> <asp:Label ID="Label2" runat="server" Text='<%#Eval("id")%>'></asp:Label> <asp:Label … |
This class when, it is not integrated with the main program, shows the following error....and I have no idea what it is trying to say.. :( :( [code] #include "character.h" Character::Character(DrawEngine *de, int s_index, float x, float y, int lives, char up_key, char down_key, char left_key, char right_key) : Sprite(de, … | |
i have a problem regarding light box focus.. i have a button that whenever i click the button it will call the light box.. there are 2 function . [CODE] function focus_on_lightbox(seconds) { var seconds_waited seconds_waited = seconds document.getElementById(EducationBox).focus(); seconds_waited += 100; if (document.getElementById(EducationBox) != document.activeElement && seconds_waited < 2000) … | |
Okay, I am writing a script that might be impossible to fully explain in words. Therefore, I am going to come up with an example that shows the same problem, so please do not tell me to simply combine the scripts or anything, as I am unable to. Anyways, I … | |
Hello all: I find that the tag "<error-page>" could not be executed in my struts project. It could not be forwarded to the "error.jsp" when I try to access a not exist page or a wrong url.Why? The web.xml is like this: [code] <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="[URL="http://java.sun.com/xml/ns/j2ee"]http://java.sun.com/xml/ns/j2ee[/URL]" xmlns:xsi="[URL="http://www.w3.org/2001/XMLSchema-instance"]http://www.w3.org/2001/XMLSchema-instance[/URL]" xsi:schemaLocation="[URL="http://java.sun.com/xml/ns/j2ee"]http://java.sun.com/xml/ns/j2ee[/URL] … | |
hi all, i had a page where there are three text boxes.username,password,allocatedmemory. Now when i placed an invalid number in allocated memory after submit button click it wil display a popup as invalid.so after clicking ok button,i need the value present in allocated memory to be cleared and cursor should … | |
hi all, i am having a doubt.How can i round off 005 to 5 and 000007 to 7 like this if the user enters in textbox. please help me.. ![]() | |
I'm trying to solve this problem -> [URL="http://www.hpcodewars.org/past/cw2/problems/PROB15.HTM"]http://www.hpcodewars.org/past/cw2/problems/PROB15.HTM[/URL]. Or should I say I'm completely unable to generate any ideas how to solve it, so I'd like to have some guidance on what to read or what kind of technique to use. I don't want a solution just some guidance. Thanks … | |
HI, I have a text file which is like this [QUOTE]29/8/2004 dsadsa dadsad [email]dasdsa@dasda.com[/email] tfdsfce m rfdsfson2l43 Hadfsdand Rd. Frdsfsin GN 50033 5545163111 3338544355 Anytime VG337612 TN476757 Vn5676982 0.067 6700 3.5 7222233339 [/QUOTE] I want to do pattern matching in this file and do some manipulations. For eg: I want … | |
Hi all. I had a software exam the other day and one of the questions was : Define a new data type called PC that contains data both about the computer and the monitor. The computer contains how much RAM (integer) and the processor speed (floating point number). The monitor … | |
Hi everyone, I'm trying to write some PHP code to update a user's password. It is not updating and I can't spot what's wrong with my query (I have echo'ed it to the screen). [CODE]$sql="UPDATE $tbl_name set 'password'='$new_password' WHERE 'user'=$user;"; $result=mysql_query($sql);[/CODE] SQL statement [QUOTE]UPDATE user set 'password'='2' WHERE 'user'=test;[/QUOTE] What's … | |
Hi frnds, I need to select some values in old table and send it into newtable. Here i placed my program. Anybody know say the corrections. <?php mysql_connect("localhost","root",""); mysql_select_db("menus") or die(mysql_error()); $idvalue=$_REQUEST['id']; //$iv=$_REQUEST['z']; $result=mysql_query("select * from smenu where id='$idvalue'"); while($row=mysql_fetch_array($result)) { $projectid=$row['id']; $projectname=$row['main']; $projectcat= $row['itemm']; $scope=$row['descrip']; $location=$row['Category']; $rate=$row['Rate']; } echo … | |
I have to create a registration form through which data will be entered into two tables one the profile table n other the address table. The problem is that i have to enter the address id of address table simultaneously into the profile table. now i dont know how to … | |
Hi, I'm trying to populate a tooltip with a list of users connected to a database when hovering over an row in a ListView. I'm using sysprocesses to show a list of databases and the connections, how do I tie this together? [CODE]select loginame, hostname, blocked, db_name(dbid) from master..sysprocesses where … | |
hi experts SELECT porh.segment1, CASE WHEN popr.action_code = 'APPROVE' AND prall.full_name <> 'Sudheer T. Paraputhra' AND grdpr.short_name < 'PS-10' THEN prall.full_name END directman_pr,[QUOTE]to get the dept.head[/QUOTE] porh.description, porl.line_num, CASE WHEN popr.action_code = 'APPROVE' AND prall.full_name <> 'Sudheer T. Paraputhra' AND grdpr.short_name < 'PS-10' AND poph.action_code = 'SUBMIT' THEN TO_NUMBER ( … | |
![]() | Hi, Let's say I have a csv file like such:- [b] part,text,true,quantity [/b] [code] [COLOR="Green"]371336959,-New DDM Part-,Y,1[/COLOR] 449127604,-New DDM Part-,Y,1 808635064,-New DDM Part-,Y,2 [COLOR="Red"]189657,-New DDM Part-,Y,2[/COLOR] 319330767,-New DDM Part-,Y,1 [COLOR="Green"]371336959,-New DDM Part-,Y,1[/COLOR] [COLOR="Red"]189657,-New DDM Part-,Y,1[/COLOR] [/code] Now I want to remove duplicate parts and add the quantities together whilst PRESERVING … ![]() |
Hi. I'm working on a binary tree home assignment and I have a problem. Initially my program used global variables. I decided to change that and declare variables inside functions (various reasons, you probably understand why). I want the program to run without using global variables. However, I can't figure … | |
Here I try to make a dynamic site, means the content only is displayed in a main part of website.Hmm, all related pages are called by the values that are passed by the URL. Here is my source Firstly, from the main.asp page I add page dynamic_site.asp to show other … | |
I have to develop a code editor as my internship project. But I could not find a head start in a brief search. Firstly what should I, in your opinion, develop? A desktop code editor or an online code editor? Currently I am inclined for an online code editor. However, … | |
i am using a new smartcard reader.Before i had used old one and the purchased company provided the concerned dll file and its functions and examples.but new company is asking charges to purchase the same.I need necessary idea by using vb6 to read and write textbox datas to and from … | |
Hi, I have a form application that has a number of pictureboxes. As the program runs it changes the pictures in the boxes depending on buttons pressed on the form via a function 'updateGUI'. The program runs for a limited period and eventually i get an error: An unhandled exception … | |
hello my dear brothers and sisters can you explain to me what is lvwTag , I am using it for finditem in my list view i dont know what is it means , it says Search for the String argument in the Tag property of the ListItems . | |
Hi all, Wondering if anyone can help me with this issue. I am using a SqlSiteMapProvider (inherits from SiteMapProvider) to build a menu on my site from an Oracle DB. This menu is built according to the user type, ie, user type A's menu is different from user type B. … | |
I have one problem with php and mysql. I have 3 tables (Users, User_status and Analysis) and want to display users and profit in a php table order by profit. So I wrote this code: [CODE]$tipster = mysql_query("SELECT Analysis.Profit, Users.Username, User_status.id FROM Analysis, Users INNER JOIN User.status ON Users.User_status_name=User_status.user_status WHERE … | |
This is first time to do the web program with vwd 2008 express, just tried to practice to add an Insert button on gridview, actually the insert button not working yet. MY QUESTION is when I connected the database with Access USING GRIDVIEW, if the Access table is empty, I … |
The End.