64,152 Solved Topics
Remove Filter ![]() | |
is this "process" or "processor scheduling?(what is the reason for your answer) This is done by OS or processor? also what is context switching? thanks | |
This question seems to always have 2 sides to it. If I make a [COLOR="Red"]register.php[/COLOR] with the registration form, should I have it submit to [COLOR="green"]processreg.php[/COLOR] or should it just process all on the same page? Same thing for login. I have read that it may e more secure to … | |
Hello Is there a specific tag in html so as to make a field behave as a date picker in a form? | |
how can i crop an image based on the size of my picturebox? my picturebox's size mode is normal, i want to have for example, a 100 x 100 image using a 100 x 100 picture box, also i can drag the the image inside the picturebox so that i … | |
POSTBACK.php [CODE=PHP] <?php $q=$_GET['q']; $words=explode(' ',$q); //$words2 = "'%".implode("%','%",$words)."%'"; //echo $words2; $con = mysql_connect('localhost', 'root', '')or die('Could not connect: ' . mysql_error()); mysql_select_db("ajax_demo", $con)or die('cannot connect'); //$sql = 'SELECT * FROM `ajax_demo_table` WHERE `FirstName` LIKE CONVERT(_utf8 '%'.$q.'%' USING latin1) COLLATE latin1_swedish_ci OR `LastName` LIKE CONVERT(_utf8 '%'.$q.'%' USING latin1) COLLATE latin1_swedish_ci'; … | |
I'm Editing little PHP and SQL script so if the code in the db is [CODE]`crystals` int(11) NOT NULL default '0',[/CODE] and in the php script is [CODE]$_POST['crystals']=(int) $_POST['crystals'];[/CODE] and other code in db is [CODE] `class` enum('Knight','Archer') NOT NULL default 'Knight',[/CODE] What the php script will be (in the … | |
Hi everyone, I am new to java enterprise edition and used Eclipse previously. I need to integrate apache maven with my eclipse. I saw a few tutorials like the one [url]http://www.eclipse.org/m2e/[/url] , and i tried to follow it but i could find the other option in the import dialogue. I … | |
Hi I'm trying to practise with this form, which will eventually be part of a much larger form. What I'm trying to do is to validate my reg_agent field in which a user can choose whether they are an agent or private. The validation is supposed to say that when … | |
Hello I want to convert the date formate from Wed Jun 15 2011 00:00:00 GMT 0530 (India Standard Time) to 06/06/2011 I have done something like this [CODE] $chkdt = "Wed Jun 15 2011 00:00:00 GMT 0530 (India Standard Time)"; $month = substr($chkdt,4,3); if($month == 'Jan') $month = '01'; else … | |
hello all, i m trying to edit the values in database through textbox in ASP. first i retrived the values from database and set those values to the value property of textboxes on the form so that user can see the old values. now, i want him to enter new … | |
hey there, I have this java 3D home assignment I need help with. I would greatly appreciate it if someone could direct me to a solution. I need to build create a 3 D digital clock and add some key navigation to it. I managed to add the key navigation … | |
I have the following code. It's a memcmp implementation for the Renesas R5F Embedded Chip family and I'm trying to test it. [code] #include <stdio.h> #include <time.h> #include <stdlib.h> #include <math.h> #include <stdbool.h> #include <stdlib.h> #include <assert.h> typedef char SInt8; typedef unsigned char UInt8; SInt8 one_net_memcmp(const void *vp1, const void … | |
Hi this is my first post so hello everybody, I've recently been exploring the uses of linq to use for comparisons,but really need a bit of a kickstart. Say for instance i have a listview populated with numbered names and I want to put up a message box if certain … ![]() | |
Hello, i tried to hack my USB MODEM so that i have unlimited INTERNET connection but i failed, any one having an idea on how to do it? | |
I am working with existing VB.NET code for a Windows Application that uses StreamWriter and Serializer to output an XML document of transaction data. Code below. [COLOR="Green"] [CODE]Private TransactionFile As ProjectSchema.TransactionFile Dim Serializer As New Xml.Serialization.XmlSerializer(GetType(ProjectSchema.TransactionFile)) Dim Writer As TextWriter Dim FilePath As String Writer = New StreamWriter(FilePath) Serializer.Serialize(Writer, TransactionFile) … | |
Ok i want freedomain to test on so i dont care if its domainname.blabla.com i just need some good domain to test on , i was testing on freehostia but they dont allow crons i want some one have php,sql (at least one free server allowed)and crons aaaaan no ads … | |
I have a Plain Text matrix file (called q.txt): [CODE]1 0 0 0 2 0 0 1 1 0 0 1 1 1 1[/CODE] which I would like to read into a matrix, which is a vector containing vectors (which contain doubles). My current codes yields the error "newReader.cpp:22: error: … | |
[code] #include <stdio.h> #if 1 //! Set Pin string const char* const ONCLI_SET_PIN_CMD_STR = "set pin"; #endif const char* const SINGLE_APP_STRINGS[] = { ONCLI_SET_PIN_CMD_STR }; int main() { printf("%s\n", SINGLE_APP_STRINGS[0]); getchar(); // pause return 0; } [/code] Line 12 Error message... [code=text] 12|error: initializer element is not constant 12|error: (near … | |
I recently moved a script I created for Google Maps over from my development site and I changed the information in the mysqli line and now I'm recieving an error mesage -- any idea what's going on here? Here's the error message: [CODE]Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user … ![]() | |
hello ! i have a program id like to code , and it uses from 3 upto 15 members of a structure , id like to ask , [COLOR="red"][I]1,[/I][/COLOR] is there a way to not define all members of a structure at the start but add members as needed ? … | |
WELL GUYS,I HAVE A NAVIGATION IN MY WEBSITE WHICH IS SIMPLY A <UL> LIST. ALMOST EVERYTHING WORKS WELL,EXCEPT WHEN I WANT TO SHOW THE CURRENT PAGE WHICH IS BEING VIEWED,...I HAVE SUCCESSFULLY IMPEMENTED THE FUNCTIONALITY IN PHP WHICH CAN DETECTED THE PAGE BEING VIEWED BUT THE PROBLEM IS CSS WHERE … ![]() | |
hello, I'm currently writing a program to write a website easier, but i don't know, how output " to a file? thank you very much for help | |
Urg, I will so happy when I'm finished this project, I feel like I'm spamming you guys every couple of days. So I have a couple date values in my tables. And I'm trying to do some calculations with them. Which are working fine. But I'm retuning the number of … | |
Hi, i have a login section made through layers and tables within dreamweaver. At the same place i have a login button (i have coded it and it works all right) but at the moment i have an issue, because when i sign in the login section which says enter … | |
HI all, I have a small problem regarding my php project. There is a page called [B]open_account.php[/B]. It contains all customer data such as NIC, full_name, date of birth, gender etc. When a user fills all the fields in that form it redirects to another page called [B]new_account.php[/B]. There are … | |
Hello im makin a program in C tht will query my database when i use the following code i get an error "segmentation fault" [code] //retreive configuration items from the mysql database mysql_query(conn, "SELECT callcost FROM imds.testset Where callcost BeTWEEN 900 and 1000;"); results = mysql_store_result(conn);[/code] even when i use … | |
Hello everyone Can anyone help me with codes to calculate sum of numbers in the diagonal of a 2 dimensional matrix array. Please help. (a b c d e f g h i j j k l m n o p q r s) | |
Is there a more efficient way to do this? [CODE] vector<int> myvec; vector<int>::iterator it; /////// // Count # of iterations int i = 0; while ( it != myvec.end() ) { ++it; ++i; } [/CODE] Just seems expensive to me. | |
[code] using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace FileApp { class Program { static void Main(string[] args) { Console.WriteLine("***** Simple IO with the File Type ******"); string[] myTasks = { "asdf", "qwerty", "awdx", "1234" }; // Write out all data to file on C drive. File.WriteAllLines(@"C:\tasks.txt", … | |
hi all, I have this minor problem which is making me go cranky at the mo.. Can't think straight, need some insights to what I can do... Below is the code which I am working on which takes the test sample values stored in my test 2D array subtracts the … | |
Hi.... I am a C# language beginner.Could someone explain me about CLS(Common Language Specification or Common Language Subset). I would like to know about CLS is used in which conditions and what is the job of CLS. Please help me... Thanks | |
when i run my project in java. i keep getting this stuff. No Console ..... I dont know how to get console in eclipse. here is my code. [code] import java.io.*; public class WordGame { public WordGame() { } public static void main (String args[]) { String WordGuess; WordJudge gm … | |
Hi all, i have different modules developed so far, and a main script needs to call the modules based on user's choice. will doing like this work?? using raw_input(), i wait for user choice, and once a choice is made, corresponding module is called. if main.py, does an 'import xxx.py' … | |
Guys, Have a look... [CODE] File.Delete("C:\\hi.txt");[/CODE] This function is used for deleting a specific file right? But I m unable to delete it? Is there my little mistake? | |
I don't have any syntax error with this code on my PHP file.. I have only a problem when it comes to output of the search query error messaging... here's the code postback.php [CODE=php]<?php $q=$_GET['q']; $words=explode(' ',$q); $con = mysql_connect('localhost', 'root', '')or die('Could not connect: ' . mysql_error()); mysql_select_db("ajax_demo", $con)or … | |
Hello Are there any tools which can be used specifically to design html forms and generate the codes, which can then be copied to an html page, more like drag and drop, and the codes and validations made available to copy elsewhere? | |
The code given below is showing error: Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'group,type) SELECT ex_tax.username,ex_tax.exp_id,exp' at line 1 [CODE]$sql="INSERT INTO ex_cat (username,exp_id,used_category,group,type) SELECT ex_tax.username,ex_tax.exp_id,ex_tax.category,ex_tax.group,ex_tax.type FROM ex_tax WHERE ex_tax.username='$uname' AND … | |
Hi I am new to python programming,please explain me how to install external modules written by other python users,please mention names of such modules.. Thanks Mukthyar | |
hi all, In my page i need to get the system ip address. i used this code. [CODE] string myHost = System.Net.Dns.GetHostName(); string myIP = System.Net.Dns.GetHostByName(myHost).AddressList[0].ToString();[/CODE] this is working fine when i run application in local system. Now i hosted that application in server say(10.20.7.63). so now when i access … | |
when i run this code an icon for the image is created but when clicked it says that no preview is availeble any help would be grately apretiated. heres the code. [CODE]from Image import * import ImageDraw z=1 win=new('RGB', (400,400), 'rgb(255,255,255)') win.save('c:\\Documents and Settings\\bradley\\desktop\\python programs\\frac.png') while z < 100000: x=(z**+1) … | |
Hi ,programmers! Please tell me why it's possible to use such condition - [CODE][U]if (!fork ( ))[/U] return 1;[/CODE] as I know the fork() returns pid_t-type but at the same time "if" needs boolean.. big thanks in advance) | |
![]() | Hi I have a problem with a code I made, some save editor for some game. The code suppose to write 2 bytes to a specific offset in some file. The file's short integers are saved as little endian. everything works fine, but when one of the integers equal 10, … ![]() |
Hi, i have a login page which i designed in dreamweaver. When i connect my php to the dreamweaver everything is ok. Here i need help when i press on my login button, currently when i click it, it takes me to another blank page and says login successful. But … | |
Hi.. I have a query regarding accessibility of top level class from member inner class. I have just read the reason why local or anonymous inner classes can access only final variables.The reason being JVM handles these two classes as entirely different classes and so, if value of variable in … | |
[CODE]class A{ void method(){ System.out.println("Hello world"); } } class B{ void myMethod(){ A.method(); } }[/CODE] Can anyone tell me why I am getting this error.( non-static method method() cannot be referenced from a static context).Reffering context is not static.:?: | |
I have been assigned a task to develop an online store.I am facing a problem at the time of insertion of records into SQL Database. I am using Type4 driver. The name of the DNS is SQL. here is my servlet code [CODE] protected void doPost(HttpServletRequest request, HttpServletResponse response) throws … | |
Here is the project link: [url]http://d-h-enterprise.com/zshop/[/url] user:admin pass:123456 After login I am getting errors those below here Warning: Cannot modify header information - headers already sent by (output started at /home/dhenter/public_html/zshop/menubar.php:4) in /home/dhenter/public_html/zshop/login_c.php on line 26 Warning: Cannot modify header information - headers already sent by (output started at /home/dhenter/public_html/zshop/menubar.php:4) … | |
Alright, So I am making a website that will have groups of pages, on those pages it will have the ability for a user to paste a Facebook page URL. How would I go about using their API to retrieve that pages news feed? It baffles me that Facebook expects … | |
Alright, so I am embarking on a fairly large project that is complete with user profiles. My question is, what's the fastest, most efficient way to store user meta like books, movies, etc. I was planning: metaid | userid | firstname | lastname | movies | books | biography | … | |
Hi Am new to this and was wondering if anyone knew a solution to this problem. I am wanting to get information from a text file into different arrays. My current text file has a new line for each driver but I would like it to look something like this: … |
The End.