199,114 Archived Topics
Remove Filter ![]() | |
Using php mail function allows a user of a wesbite to send email without opening up ther mail client, information such as subject message reply-to email address can be included. With this could I also add fileds to send things such as booking time date, telephone number etc? Can this … | |
Hi, why isn't this code is copying the file a.txt correctly? [CODE]int main() { ifstream input("C://Users//Me//Desktop//a.txt"); input.seekg (0, ios::end); int length = input.tellg(); input.seekg (0, ios::beg); while(true) { char* buffer = new char[length]; input.read(buffer, length); ofstream output("C://Users//Me//Desktop//b.txt"); output.write(buffer, length); break; } return 0; }[/CODE] I attached a.txt and b.txt in … | |
I'm just starting out with PHP so I thought I'd do something simple. I modified an existing bit of code but it doesn't seem to work: [code] <?php $url = $_GET['DLURL']; // Fetch page $string = FetchPage($url); // Regex that extracts the urls from links $links_regex = '/<a[^/>]*'. 'href=["|']([^javascript:].*)["|']/Ui'; preg_match_all($links_regex, … | |
I've been able to get the iFrame to resize to the content - see this link - it's pretty simple. My only problem, is if the user clicks a link so that another page is displayed, the iFrame doesn't resize. It will only resize when the parent page is reloaded. … | |
Hi all, Although I have experience in other areas of IT and development, I'm very new to programming, so please excuse my obvious ignorance... I need to allow the user to send an active form (entire filled in form with fields, not just the data) the user will access from … | |
Hello, i want to start free lancing in PHP, please suggest me some platform(marketplac) except w w w . R e n t a c o d e r . c o m | |
I am a student and am having trouble getting my for statement to work with an array. This is my first time here. Here is what have so far. Any tips would be greatly appreciated. [code=cpluslus] using namespace std; void main() {#include <iostream> // Emp is number of employees needed … | |
Hi I'm just starting out with OOPin JAVA and thought i was getting the hang of it but i've been given an assignment and it's got me stumped. here is the code i have been given [code=java] public class FrogCalculator { private Frog operand1Frog; private Frog operand2Frog; private Frog unitsFrog; … | |
hello (im using c#, visual studio 2008) I am trying to get Input/Output from a command prompt like process "scrds.exe". If i try to start the process with standardInput = true, standardOutput = true, or standardError = true. The program cannot start. after research the "scrds.exe" cant start due to … | |
Hello.I'm working on a d20 based game system and I'm pretty new to python.What I've done so far is: create 6 random rolls with values 3-18 rollOne rollTwo rollThree etc. There are 6 stats that need theese rolls assigned statOne statTwo etc. I've done the part on how to assign … | |
hi i need help with my grading program i need to do something so the menu comes up and make it work property i have no idea on my switch statement and how to delete student from list please help me [code] #include <stdio.h> void main() { int ssn[1000]; int … | |
Hi, i have manage to add up the points from different checkboxes but load in form. but how do i make everything to work in tab instead of working in form? below is the codes but works in form. Public Class Trial Private GCS_Value As Integer = 0 Private Sub … | |
I am designing a website for someone at the moment and they want a preview of thier wordpress blog on thier home page(not blog home page) Is there a good way to do this automatically so that it updates itself whenever a new blog is posted or will it be … | |
Hi, Is there a possibility of creating fixed length file in C and when the file is filled up with the contents to the limit of it's size then it should wrap up to include the new contents? Thanks. | |
I can make you one heck of an HTML, I can even put a beautiful contact form and picture uploader in the file, but when it comes to the challenge of adding the php script to make this file upload the file to my server I am not very good. … | |
Hi there, I'm having a problem with the code below: [CODE]#include <iostream> #include <cstdlib> #include <ctime> using namespace std; void setArray( float [], const int Size ); void displayArray( const float * ); int main() { const int arraySize = 20; float array[ arraySize ]; // Initialise the array: setArray( … | |
I don't use XSLT very much, but need to modify our current file. Right now, we have the following statement: [CODE] <business_use> <xsl:value-of select="if (*:PersDriverInfo/*:kait_BusinessUseInd = '1') ))then 'Y' else 'N'"/> </business_use> [/CODE] I am trying to modify it to look at an additional node like this: [CODE] <business_use> <xsl:value-of … | |
If You Want Something To Do, Try This Exercise... Define a human struct that has 3 fields: char name[50]; char gender[10]; int age; Try and use typedef in your program for your struct. Write a program that reads in a text file containing names, ages and gender of cartoon characters, … | |
HI How I generate Meassage once my array is full? Thanks Tank50 | |
[code=cplusplus] #include<iostream.h> #include<stdlib.h> int main(void) { char a,q; cout<<"Enter a char\n"; cin>>a; q=a; cout<<atoi(&a)<<","; cout<<atoi(&q); return 0; } [/code] ************************************* output for this code for input of (2 ,3,5): 2,22 3,33 5,55 **************************************... I think answers should be: 2,2 3,3 5,5 | |
I am designing a Library website, and I have two table Libarian and Student table so when the Libarian login should have access to all the database(Adding new record, updating and all) but when the student login should only view the database without changing anything, so What I want to … | |
Hi all, Sorry if its a newbie post, but I'm currently trying to finish a program that sorts a binary search tree using the quicksort method. It seems like it should work, but whenever I run it, the program stops at a certain part in the program and encounters a … | |
Hi All, I have created a program for calculating average of 4 numbers, however, Im getting an error as "Run Time Error 13 Type Mismatch" on the Click event of "Calculate Average" command button. The code written for the Click Event of "Calculate Average" command button goes as : Private … | |
Somebody please help me... I printed first report properly, while printing second report (for eg sales bill) compiler shows an error message, "The process cannot access the file because it is being used by another process". The code is given below where the IOException was shown. [code=csharp] // Routine to … | |
I'm rather uncertain as to how you go from making programs which churn values on the Dos screen to actual graphics. I'm not asking for a lesson on this, but I am confused as to how a c++ program creates/manipulates graphics. Is it all done through widgets or is there … | |
Hello, The situation here is I have a file and each line has a 8 digit number in it (aorkey) the file is called target.lst In another file (file.lst) there are tons of paths in each path there is an aorkey (somewhere its not always in the same place and … | |
[code=C] int main() { char *p = "hello all "; printf(p); } [/code] I thought the above code should ve showed a compile time error. but it din , any reason how it worked? | |
Hi everyone, i have been struggling with passing multiple url parameters for quite some time and would be extremely grateful to receive some advice and guidance! What i ultimately would like to achieve is to pass two parameters in the url, one being the name of a table from a … | |
hello, im a beginner programmer in java (J2ME), is there a way on how to unobfuscate a java? and how to obfuscate it?? (J2ME) | |
Hi, I am very new to Perl and have no knowledge to initiate this through programming view. I am in need of help with adding a new user in UNIX using Perl programming . If you know my problem could you please assist me and share your knowledge for doing … | |
Hi, im writting a remote host program for a school project and i keep getting Run-time error '40006': Wrong protocol or connection state for the requested transaction or request here's the code for the client: [code]Private Sub cmdConnect_Click() IpAddy = txtIP.Text Win.Close Win.RemotePort = 455 Win.RemoteHost = IpAddy Win.LocalPort = … | |
Hi Friends, I am writing a monte carlo program. I have made a structure which had different 20 objects like ALA[5], CYS[5], PRO[5], ARG[34] , MET[15]....and so on. [code=cplusplus] //this is defined in a global.cpp file// typedef struct libaa{ int num; char amino[4]; float chi1,chi2,chi3,chi4,phi,psi,omega; }; libaa ALA[1],CYS[4],ASP[8],GLU[15],GLN[15],PHE[5],GLY[2],HIS[8],HIE[8],ILE[7],LYS[27],LEU[5],MET[13],ASN[9],PRO[3],ARG[34],SER[3],THR[3],VAL[3],TRP[7],TYR[5]; //in my … | |
Hi all, I am having a problem with the synchronizing the threads in the classic produce consume thread example. Below is my code for it. [CODE]public class Magpie extends Thread { private TreeHole treehole; private int number; public Magpie(TreeHole t, int number) { treehole = t; this.number = number; } … | |
I've tried several times now to write my own neural network class and I think this is the closest I've gotten, the network seems to run properly but it doesn't seem to learn correctly. I'm trying to make it approximate exclusive or but it seems to be only capable of … | |
as we go inside a category the link shoul apear on the view page any one help.... i have done this much so far [code=php]<?php include("connectivity.php"); $parentid=$_REQUEST['parentid']; if(!$parentid) { $parentid=0; } $a=$_REQUEST['a']; if(!$a) { $a=0; } $qry=mysql_query("select * from category where iparentid='$parentid' limit $a,4"); $qrynum=mysql_query("select * from category where iparentid='$parentid'"); … | |
I have a task where I'm transforming a response like this: [code] <Names> <Name> <First></First> <Last></Last> <Middle></Middle> </Name> <Name> <First></First> <Last></Last> <Middle></Middle> </Name> </Names> [/code] But I have to format it into nodes like this: [code] <name_first_1></name_first_1> <name_last_1></name_last_1> <name_middle_1></name_middle_1> <name_first_2></name_first_2> <name_last_2></name_last_2> <name_middle_2></name_middle_2> [/code] So I wanted to use position() to … | |
Hi, I have a table like this: [code] name +------------------------------------+ | name | +------------------------------------+ | This is an rna-binding protein. The data which is useful is available from the desired location. | +------------------------------------+ 1 row in set (0.00 sec) [/code] I want to remove extra space i.e in between binding … | |
I'm trying to declare a structure definition in a header file so I can use the structure in other files, however I get the error: error C2011: 'Points' : 'struct' type redefinition from the file where the structure definition is declared. The structure is only defined in that header file. … | |
hey, i created a menu bar containing three items in it. i just want the coding in vb in such a way that if i click the first one it should be directed to one form, second is directed to the other form and third in the same way................................................................................... i'm … | |
Hi All, I am having problem regarding recordset. I am working in MS Access and VBA. I want to display records from the table(specific fields) depending upon the condition. I am very new to this and never used recordset because i am a database programmer now i have to develop. … | |
hi guys, i want to read windows mobile registry from windows application, the device is connected via activesync. any ideas? | |
I assuming it is unefficent to upload and stream a video with php. So this is a 2 part question (1. using php to upload the contents, 2. using php? flash? etc? to convert and play the video file). 1. How would I upload a video file? - Like a … | |
0AFE:02B0 00 00 00 00 00 2C 44 63-71 1F 71 1F 00 00 80 01 .....,Dcq.q..... 0AFE:02C0 01 00 07 FE FF FF 3F 00-00 00 EC ED E1 04 00 FE ......?......... 0AFE:02D0 FF FF 0F FE FF FF 2B EE-E1 04 96 9C BF 0D 00 00 … | |
Hi, Im pulling out what little hair i have left, and am beginning to remember why i did not become a developer professionally. but you guys rock. I have a website i'm working on example: [url]http://www.example.com[/url], I have a go daddy turbo SSL certificate installed and it is working properly … | |
Hey, I'm currently working on an ASP.net page using C#. I am looking forward to embedding videos in my .aspx pages using silverlight, but am totally illiterate towards Silverlight. Can anyone tell me how it would be possible for me to play videos using Silverlight? Also, the other possibility that … | |
My method is not working for some reason, even though i have done in exactly the same way the books showed. Could you please take a look at it and let me know what went wrong? Thank you P.S. I tried to use DEBUG technique and it seems that the … | |
Hi, how many 64 bit registers can I use inside intel i7 cpu for storage purposes to feed them later into XMM registers? I currently use XMM0-15, MM0-8, R8-15 only. I know i can use RAX,RBX,RCX, RDX and eight registers inside the FPU (ST0-ST8), but what others can I use? … | |
I am importing three diff jsp files through foreach looping inside the parent jsp file. Three files are x.jsp, y.jsp, z.jsp for example. I want to extract the last file z.jsp from this loop and I need to put in to one seperate DIV element. How can I do this … | |
Hi , I am using <logic:iterate> tag to iterate through a list of contents. When the List size is 1222, all the Contents in the List are displaying properly. When the size execdes 1223, the JSP is not displaying properly. I am not getting any exception also. I have added … | |
Hi could someone tell me how to pass a dynamic matrix to a function? Or where I have gone wrong? Thanks for the help! for example: [CODE]void main() { int R,C; /* r=rows, c=columns/* double *A; /* A is the matrix/* /* I dynamically allocate my matrix (not too sure … |
The End.