199,114 Archived Topics
Remove Filter ![]() | |
Hi, I get an error when i try to echo my cookie. [inlinecode]Notice: unserialize() [function.unserialize]: Error at offset 0 of 12 bytes in...[/inlinecode] I cannot find a solution. Help please. Thanks [code] class MyCookie { public function __construct($cookieName, $sessionId) { if(! isset($_COOKIE[$cookieName])) { $cookieValue["SESSION"] = $sessionId; setcookie($cookieName, $cookieValue, time()+60*60*24*7); } … | |
I have php 4.4 version i am getting a strange error here. [CODE] echo strtotime("2009-04-24T20:00:05.000Z"); [/CODE] It is giving result as -1 What is the problem and how to overcome this. I dont have an option for php upgradation. | |
Hey, Im trying to get the user to type in a file name, and then the program will copy the file to some where else like C:\ or USB or something. So far this is what I've come up with: [CODE] #include <iostream> #include <windows.h> #include <stdlib.h> #include <conio.h> #include … | |
Does anyone have any ideas on how to change how submit buttons can be changed from the default? I think it is a real shortcoming of HTML that onmouseup and onmousedown etc are not permitted with <input type='submit'.... I just feel there must be some clever way using javascript or … | |
hi i have a problem with my java program.i can compile and run the java program if i keep them in jdk\bin folder, but i can only compile and can not run if i kept the java program in any other location. can anyone tell me where i'm doing wrong. … | |
First I created a Login to SQL Server using a T-SQL command from within C#. This is the query I used. [code] CREATE LOGIN NT AUTHORITY\NETWORK SERVICE FROM WINDOWS WITH DEFAULT_DATABASE="MyDB"; [/code] Here, NT AUTHORITY\NETWORK SERVICE is the name of the Login I created and MyDB is the DataBase I … | |
i want code for the follwing series 1 1 2 1 2 3 1 2 3 4 1 2 3 4 ..................n when we n as 2 it should display 1 1 2 when we gave n as 4 it should dispaly 1 1 2 1 2 3 1 2 … | |
This is chatting program using etherframe packet. I finished crc, gui , making packet and sending packet. but I can't implement stop and wait timeout resend... I can't implement it.. can anybody help me? import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.border.*; import java.io.*; import java.net.*; public class ChatJin implements … | |
Hi, I'm currently doing on a project, frankly speaking i'm new in javascript only know the basics. I'm not even sure whether this thread is suppose to be here or under html.. I'm suppose to create some codes that enable a html page to load to the next html page … | |
please help me solving this i want to show the composition,aggregation,simple association between the classes see attatched gif image plz help me i shall be very thank full to all | |
Write a Java application that creates an array of int initialised with the following numbers: 1 4 9 16 17 21 25 33 37 40 and reverses the contents of the array such that the value in the first element is the value that was at the last element and … | |
Hello, I seem to have encountered a problem with this code. [code=java] try { String changeC1 = JOptionPane.showInputDialog (null, "Change the dimensions of silo 1? (y/n)"); } catch (NullPointerException e) { String changeC1 = "n"; // probably also be a good idea to log the fact an exception occured. } … | |
Anybody ever use InkX or RichInk from OpenNETCF? Im having difficulties adding it on my windows mobile form, building the application is no problem, but when deploying it, a strange error pop up, saying something like missing Assembly. Btw, Im using Visual Studio 2008 as my editor. | |
Hello, I received a question whereby I had to convert to fractional decimals to binary. 0.28125 and 0,65625 Using the methods taught me to convert them to fractional binary I got .01001 and .10101 respectively. Next we were required to add the two binary fractions, which my answer was: .11110 … | |
This is something I just can't figure out, I want to disable another applications window. I'm wanting to achieve the same effect as this.Enable = False; Can c# achieve this or will I have to look into doing it in c? | |
Hi, i made a calendar program but now i need to import- export my events with iCal/vCal, any ideas on how to go about. I cant find any tutorial or documentation on it | |
Hi, I am student doing my final term project. For my project, I am suppose to create a webpage that controls the a robot, the webpage will send out commands to allow the robot to program routines. The command will be send through serial port via the webpage. I have … | |
Can anyone tell me why i am getting The requestedmember of the Collection Does not exist.Runtime error '5941'.Any help would be Greately appreciated.Cursor go on the bold line. [code] Sub CreateMaterialsTable() ActiveDocument.Tables.Add Range:=Selection.Range, Numrows:=3, NumColumns:= _ 4, defaulttablebehavior:=wdWord9TableBehavior, AutoFitBehavior:= _ wdAutoFitFixed [COLOR="Red"]ActiveDocument.Tables(3).Select[/COLOR] 'selection is Application.selection object With ActiveDocument.Tables(3) If .Style … | |
The problem isn't with learning it, it's with finding out which one to learn. Assembly differs according to your CPU architecture, all right. Most PC CPUs are built with the x86 architecture? Fine. From my understanding, there's still a multitude of different versions. NASM? MASM? What's the difference between these? … | |
I have a backgroundworker that is running. The problems comes when you press the closebutton on the form in the upper right corner. This makes the form stuck completely. The problem is that the Worker doesn´t get a chance to finish and return the backgroundWorker1_RunWorkerCompleted event. How can I come … | |
I am doing a game and I need to reset the graphics back to its original picture once a new game begins, however when I click the new game button, everything else resets but the graphics do not even though I called repaint. I have included the code for my … | |
Hey need lots of help on arrays! this is the exercise... 1. Write a Java application that creates an array of int initialised with the following numbers: 1 4 9 16 17 21 25 33 37 40 and reverses the contents of the array such that the value in the … | |
hey, we r asked to do a student data base using c++ and I'm having problem in appending in the file without redundancy in my code i'm dealing with strings is it possible to append on the string without creating a new one or i should chose another data type … | |
I dont actaully know where to post my question below, so this looked like the best place next to a "generel web discussion" forum but none found. OK, basically i need some advice from you guys on excately what steps i should follow on how to create a browser based … | |
If you are trying to do a page, or section of news that only shows a certain length of characters, and then has a link for Read Full Story, or more..., etc the following code is just what you need: [php] $longtext = "Full text string to be manipulated"; // … | |
hi! i have written a program that takes a random number from 0-999, 10000 times. I have the program calculating how many times each number comes up randomly, and finds the mode. But my program doesn't include how to find multiple largest numbers, ex. 2 and 4 each come up … | |
Hi, As you can probably tell by now my knoweldge of MySQL is not very good. I basically have two tables. One called [B]userinformation[/B] and another called [B]profiles[/B] My userinformation table is like this: [CODE]CREATE TABLE `userinformation` ( `id` int(11) NOT NULL auto_increment, `status` varchar(20) NOT NULL, `username` varchar(20) NOT … | |
In this work you will materialise a algorithm that solves the problem of Stable Marriage. In this problem we aim at "n" men and "n" women and our goal is the contracting of constant marriages between men and women. Obviously each man can be wedded only one woman and one … | |
hi I would like to make a code where I can move items from listbox1 to other listbox2 using the button1(as moving the item to listbox2) and button2(as moving the item to listbox1). I would like that before I click on the items in my listbox1, the button1 will be … | |
hi everyone , Im having problems in saving values in the static variables. Here it is how it goes i have 3 projects in a solution. Lets say A , B and C. I have added the references of C in A and B A calls C and saves a … | |
[code] #include <iostream> using namespace std; class person { private: string name; int age; public: person(const string &getname): name(getname), age(0){ } void addAge(const string &getname) { age++; } void getAge(void) { cout << endl; cout << name << " now " << age << " years old"; } }; int … | |
hi! i have to write a gui window, which draws sierpinskys triangle recursively, i have one main class: [CODE]package triangleMod; import java.awt.Dimension; import java.awt.Frame; import java.awt.Point; import javax.swing.JFrame; public class Main extends Frame{ static Point a; static Point b; static Point c; static Triangle tryAngle; static JFrame frame; private static … | |
to connect/close connection my dbs i use the below include files [B]config.php[/B] [CODE]<?php // Admin Database Properties $admindbhost = 'localhost'; $admindbuser = 'user_default'; $admindbpass = '************'; $admindbname = 'db_admin'; // Default Database Properties $defaultdbhost = 'localhost'; $defaultdbuser = 'user_default'; $defaultdbpass = '************'; $defaultdbname = 'db_default'; ?>[/CODE] [B]opendb.php[/B] [CODE]<?php // Admin … | |
I have the following CSV file ['ID', 'ABD', 'ABD', 'ABD', 'ABD', 'ABD', 'PC'] ['1', 'N400', '', '', '', '', 'P1000'] ['2', '', 'N401', 'N402', '', '', 'P1001'] ['3', '', '', '', 'N500', '', 'P1002'] The data is not stored in an ideal format. The first row has some pretty useless … | |
Hi friends I have written my first code using dynamic SQL which is as follows [code=sql]CREATE OR REPLACE PROCEDURE Insrt_Chld_Dtl AS CURSOR_ID INTEGER; V_FORMAT_ID NUMBER(20):=1; COL_NM VARCHAR2(50); VLS VARCHAR2(50); V_COL_NO VARCHAR2(20); SEARCH_STRING VARCHAR2(20); --ID VARCHAR2(100); PRNT_VL VARCHAR2(100); COL_CNT INTEGER; V_SQL VARCHAR2(200); CURSOR FETCH_MST_DTLS(V_FORMAT_ID VARCHAR2,V_COL VARCHAR2) IS SELECT WHETHER_COMBO, ABV, DESCRIPTION, … | |
Well i was looking in the paper the other day and they have this Word puzzle with a bunch of letters used to figure out what the quote of some famous guy was. Basically they take every letter of the alphabet and just change them and print it out and … | |
Hi all, I am a Python Newbie and started learning it with this book "Programming in Python 3", which has a lot of sample codes. So I am using Python 3 and got stuck while trying this program.The program is to swap the elements in the Tuple and how to … | |
Hey guys! i need help on reversing numbers in descending order. public class ArrayExercise1 { public static void main(String[] args) { int[] values = new int[10]; values[ 0 ] = 1; values[ 1 ] = 4; values[ 2 ] = 9; values[ 3 ] = 16; values[ 4 ] = … | |
dear all, I would like to know how to structure and SQL query to query between months ranges Something along the lines of: SELECT * FROM table WHERE datetime BETWEEN xx/xx/xx AND xx/xx/xx I have a table with the following date field entry named datetime: 07-05-2009 Which I am assuming … | |
I have the following problem is that regardless of the error it only seens to return the value of $error==4?? there are multiple files being uploaded but i only want to retrn 1 message error 4 if no files have been uploaded and error 2 if a file is more … | |
how i use apache server, php, and MySql .Tell me the procedure for installation of Apache server, PHP, and MySql | |
I have been working on this lab for a couple of days. I need to write a program (using a 'for loop') that approximates pi using the following series: pi = sqrt(6* (1/(1)2 + 1/(2)2 + 1/(3)2+ 1/(4)2 + 1/(5)2 +...... + 1/(n)2)) where n is the number of terms. … | |
Hi, I am writing some code to model the neighborhood of an element in an 2D mathematic matrix(using 2D vector) ,e.g. to an element indexed by vec_2d[x][y], I want to present its neighborhood in form of a vector which is composed of vec_2d[x][y-1],vec_2d[x-1][y-1],vec_2d[x-1][y] and vec_2d[x-1][y+1]. And following my code is … | |
Hello everyone, i am having problems in passing arguments to the event handler which i am trying from the past 2 days and not able to solve it. my code looks like this below. I try to Create a button for the tabpages dynamically.Lets say we have 4 tabpages and … | |
Hi, Can anyone tell me how can we know if any updation is done in table such as insertion | Deletion | Modification of record in one or more table without peeping inside the table... say, finding the history records that are updated... To be more clear; say I have … | |
Have written an unscrambler in java. This takes in a scrambled word for input and returns the unscrambled word. The way it works is that it creates all permutations of the provided word (I have borrowed the permutation generating code from daniweb i guess) and compares each word to an … ![]() | |
i had to make the car racing game in c++ by using classes but can't understand it, the requirement of the game r it contain speed o meter, fuel and gear system and move in all four direction plz help me.... no graphic r required just simple car game on … | |
Hello, I am using visual web developer 2008 I am trying to display an image in a table with a master page. But my image is being displayed during designtime but not displayed during run time. I used the coding below. [CODE] <form id="form1" runat="server"> <div> <table style="width: 100%; height: … | |
I guess I should be embarrassed to ask this, but Help seems to be misleading to me, so it's not my fault. ;) I'd like to enter a series of binary numbers in a component I am working on. Delphi's Help (see below) says all I need to do is … |
The End.