199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for klemme

Hi all, I have been asked to create an API for a website, which I would like to do, but havent done before. Does anyone have a good tutorial on using procedural style php, integrated with REST to make an API work? I have read that REST is really good …

Member Avatar for forkmartin
0
246
Member Avatar for 4cpukid

Hi; I have a mobile script from detectmobilebrowsers.com that will redirect the user to my mobile site however I also wish that when the URL "http://mysite.com/?mobile=no" is entered a session will be created that won't redirect the user on every page of my site... [code=php] $mobile=$_GET['mobile']; if(isset($_SESSION['mobile'])){ if($_SESSION['mobile']==="no"){ complete(); } …

Member Avatar for forkmartin
0
193
Member Avatar for shann1718

im working on vb 2010 and ms access db.. just want to ask if a textbox with databinding can be used to search or filter data and display it to other textboxes with databinding on the same form? thank you..

Member Avatar for shann1718
0
123
Member Avatar for kyriacos1986

When I run the following lines of code the following erroe from the compiler is displayed [CODE]cannot find symbol - method start()[/CODE] CODE: [CODE]import java.lang.Thread; import java.util.concurrent.*; public class MyThread { public static final int MAX = 15; private String message; /** * Constructor with parameters * * @param message …

Member Avatar for forkmartin
0
138
Member Avatar for Bladtman242

Obviously I have some wrong assumptions, because this prints "strsize = 8" no matter what. I realize my use of system() might be misguided, so if you have comments on that don't hold back, just please help out with the string-thing aswell : ) BTW it's a 'wrapper' for shell …

Member Avatar for Bladtman242
0
180
Member Avatar for tomtetlaw

I'm using VC++ 2010 and Window 7 64-bit. In my project, I have 2 DLLs and one EXE (all being build 32-bit). They're all using the same runtime library (Multi-Threaded Debug) and I have checked that nothing is being deleted twice. I'm fairly sure that nothing is being allocated in …

Member Avatar for daniel.bonetti
0
3K
Member Avatar for oksam

I am trying to give each MOVIE there own url name, for example, [url]www.helloworld.com/BATMAN[/url]. I have been using mod_rewrite to create such url. I have been using following htaccess code to achieve such result. RewriteEngine ON RewriteCond %(REQUEST_FILENAME) !-d RewriteCond %(REQUEST_FILENAME) !-f RewriteCond %(REQUEST_FILENAME) !-l RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] The …

Member Avatar for oksam
0
303
Member Avatar for thanatos1

Hey guys, i've been spending some time writing a pokemon clone game in java and was wondering if anyone would like to help me out, it's quite a big project since i'm planning on making it much more than a simple clone, but if you'd like to perhaps help out …

0
118
Member Avatar for shalini shekhar
Member Avatar for WaltP
0
175
Member Avatar for Candace Parker

Sudoku in C++. The program works but how do I check the minisquares? Please gimme a function. :( Pretty please? [code] #include <iostream> #include <iomanip> using namespace std; const int rowSize=9; const int columnSize=9; const int arraySize=9; int a[arraySize]; int print_values[rowSize][columnSize]={9,4,2,5,1,8,3,7,6, 7,1,6,4,2,3,5,8,9, 3,8,5,7,6,9,4,2,1, 1,6,3,8,4,2,7,9,5, 4,2,7,1,9,5,6,3,8, 8,5,9,6,3,7,2,1,4, 6,3,8,9,7,4,1,5,2, 5,7,4,2,8,1,9,6,3, 2,9,1,3,5,6,8,4,7}; bool …

Member Avatar for WaltP
0
397
Member Avatar for enterpise

i have programming assignment which is to make UDP and TCP client now i already finished UDP ,TCP client and GUI now i want to make the command line class So the assignment tell me that "CLIENT: The client should read input from the command line: • -x <number>, where …

Member Avatar for enterpise
0
204
Member Avatar for ThaiAmL

Hello! I'm studying right now as an exchange student in Germany and taking my first programming course in Java, and in the last week, things have just started to go over my head and I'm kind of drowning while trying to get all the homework done! The assignment was supposed …

Member Avatar for ThaiAmL
0
1K
Member Avatar for sudheer2250

Hi Experts, I am getting an exception "Attempted to read or write protected memory. This is often an indication that other memory is corrupt." This exception is occuring in VS2010 and method is [B]Marshal.Copy(address, code, 0, 32);[/B] Can you any one help in this regard. Thanks

Member Avatar for skatamatic
0
150
Member Avatar for joy39

if we have to insert records into a mysql database using c api then the general code is this [CODE]if (mysql_query(conn, "insert into empinfo values ('saikat banerjee')")) { printf("4Error %u: %s\n", mysql_errno(conn), mysql_error(conn)); exit(1); } [/CODE] but, here we have to enter the record from the code itself . but, …

Member Avatar for fobos
0
150
Member Avatar for lawphotog

Hi All, Hope u guys are doing well. I am a beginner developer working on my first project at my first job. I am developing a reporting system which includes searching report and filtering them depending on some criterias. I currently have 8 categories returned by a Stored Procedure develped …

Member Avatar for sufyan2011
0
405
Member Avatar for VinC

I'm been working through my textbook and just can't seem to understand the section on covariant return types. ie) what are covariant return types, what they are used for, etc. The definition in the book is as follows. [QUOTE]An overridden method in a derived class can return a type derived …

Member Avatar for DavidKroukamp
0
158
Member Avatar for nokomoli

Hi Guys , i have faced a sql command problem. That is currently i have 2 different table [ICODE]a) Select ID, Name from Table1 where ID >=1 and ID ID <=3 ID | Name 1 | Alan 2 | Amy 3 | Andrew [/ICODE] [ICODE]b) Select ID,Sum(Points) as [Total] from …

Member Avatar for gennesis
0
205
Member Avatar for freedomflyer

I am trying to pass some url information into tokenize_urls from process_and_display_information. To get things up and running, I am simply trying to return and retain some array data from tokenize_urls into process_and_display information. However, I am running into an issue where the variables are created and sent back from …

Member Avatar for Ancient Dragon
0
183
Member Avatar for Alex_2011

Hi, I am having a problem with the if statement that I created in my code. The condition should be: - Select Both Comboboxes (1&2) to print out a text in TextBox1 - If only One Combobox or No Combobox was selected, an error message appears and Nothing is printed …

Member Avatar for Alex_2011
0
3K
Member Avatar for sandeepau

Hello, Can someone tell me the equivalent perl script/command for following unix command: sort -t"|" -k1,1 -T '/temp' input.txt > output.txt Here, I want mention different physical directory for temprary sort file storage. like - T in unix shell command. In other word, How to mention different workspace directory in …

Member Avatar for voidyman
0
407
Member Avatar for emannoor455

[B]Hi, can anyone help plz? I want to fetch data from database and show in multiple check box value e.g Registration Num of student in 5 checkboxes with different values but really dont get how to do this :( plz anyone provide me easy code in php i will be …

Member Avatar for pzuurveen
0
931
Member Avatar for connect2abhi

Hi Can any one tell me how to call a subclass method from a superclass? For example: I have a class A,B and C. Now B and C extends A. So is there any way that we can call a method of B in A? Thanks Abhishek

Member Avatar for DavidKroukamp
0
13K
Member Avatar for chandrag

Hi all. Can i open the web page through perl? I get URL as a result in my perl code. but, ofcourse, it is displayed in command prompt as i'm using windows. I need that web page to be displayed directly. can i do it? i hope somebody can help …

Member Avatar for creativesuri
0
714
Member Avatar for LukaHorvatic

I need to store data to isolated storage with simple entry form,currently using class to load data but what i need to insert data and load it after emulator is restarted.I'v seen you can use sql ce database and xml file to store data,but which method will be best?Tried to …

Member Avatar for LukaHorvatic
0
121
Member Avatar for riahc3

My index.html is: [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> </head> <body> <form action="index.php" method="post" name="uandp"> <input type="text" name="user"><br > <input type="password" name="password"> <input type="submit" value="Go"> </form> </body> </html> [/code] My index.php is: [code] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <?php session_start(); ?> …

Member Avatar for riahc3
0
135
Member Avatar for evangelion89

Hi, I am currently learning Google Maps API V3. I want to display an infowindow for each marker on a map and I have written two codes snippets doing the same thing, yet producing completely different results. Version A: Successfully displays an infowindow for each marker. I tried to do …

Member Avatar for Airshow
0
244
Member Avatar for navdeep4887

hii friends i am trying to create a drop down menus in which my 2nd menu will depend on 1st one ...and 3rd on 2nd and so on til 5 dropdown menus. for eg if my 1st menu contain India US Canada and then suppose i select Canada then my …

Member Avatar for navdeep4887
0
447
Member Avatar for Atmos1234

Hello all, Im new to VB so go easy on me :-D Im trying to autofill a html form and all textboxes and textarea is working ok.. I now have a problem with a combobox1. I added the items below to the combobox1. So whenever i choose one of those …

Member Avatar for AndreRet
0
345
Member Avatar for wenothat

I Have Decode File That I need I Found It Ofbuscated I Have The Codes I Want To Anyone Help Me With That [CODE]$xBhtml = _obfuscate_DQc7KjMhKzgCMSwmATFbKjM2OSMkFyIÛ’ ( "table.tpl", $ccthemes ); [/CODE] In Function php [CODE] $khtml = _obfuscate_DQc7KjMhKzgCMSwmATFbKjM2OSMkFyIÛ’( "main.tpl", $gthemes ); [/CODE]

Member Avatar for pritaeas
0
106
Member Avatar for huntaz556

I am trying to make a php login script and right now i am trying to make it so that if someone enters the wrong login info it will echo "Wrong username or password please try again" But no matter what i dosent print anything on the screen if i …

Member Avatar for broj1
0
1K
Member Avatar for enterpise

now i'm try to make the delete and successor method for BST in java[CODE]public void delete(BinarySearchTree<V> pointer) { // 1. The node is a leaf. // 2. The node has no left child. // 3. The node has no right child. // 4. The node has two children. BinarySearchTree<V> current …

Member Avatar for enterpise
0
156
Member Avatar for srm2010

Hi I have a datagridview in my winform application and I have 2events related to it. one is [COLOR="red"]Cellformatting[/COLOR] which is formatting a row in datagridview as per different values. and another is [COLOR="red"]UserdeletedRow[/COLOR] event which allows to delete a particular row. but there is a conflict as I have …

Member Avatar for srm2010
0
188
Member Avatar for SyncMaster170

I am trying to publish this program. I rebuilt it, then hit publish. It starts, then at the end its throwing up 18 errors and they all look similar to the error below. About 15 of the other errors end in .dll.deploy. Ive never seen this type of error before …

Member Avatar for AndreRet
0
138
Member Avatar for MaxRevenge

[COLOR="Green"]yo evryone. class 11 kids submit a comp project as olevels paper 2. im a few years away from 11 but iwud love to make a project write noe n get an idea n so make an awsum one in 11 after this experience. buti dont hav any idea. i …

Member Avatar for AndreRet
0
630
Member Avatar for samidha

[code] #include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> #define M 20 #define hr printf("\n----------------------------"); #define br printf("\n"); int mptr=0,pptr=0,sptr=0; struct input_code { char lbl[M]; char instr[M]; char op1[M]; char op2[M]; }input[M]; struct opcode_table { int num; char name[M]; int code; struct opcode_table *chain; }mot[26],pot[26]; struct symbol_table { int num; char sym[M]; int addr; …

0
149
Member Avatar for juce

Matrix given in memory to print the spiral in opposite direction from clockwise (left column down the right lower range, right up column, a series of upper left, etc. until you get to the middle) I'm new here, I have to write code for the task above in assembly,could someone …

Member Avatar for Hugo123007
0
2K
Member Avatar for pwolf

Create a function generateNumbers(num) that takes in a positive number as argument and returns a list of number from 0 to that number inclusive. Note: The function range(5) will return a list of number [0, 1, 2, 3, 4]. Examples [CODE] >>> generateNumber(1) [0, 1] >>> generateNumber(10) [0, 1, 2, …

Member Avatar for TrustyTony
0
2K
Member Avatar for pwolf

the objective is to create a function to determine, from the three sides of a triangle, whether it is isosceles or not. I wrote the following code, yet its not very efficient, how could i have done this better? and is there anything wrong with this code? i tested it …

Member Avatar for TrustyTony
0
3K
Member Avatar for Joelx

I need to copy a certain line from a text document, this I have done by using a "key-word" in the document. My problem now is that I also want to copy the entire line below this specific line. Help is much appreciated as I am new with programming FILE …

Member Avatar for Joelx
0
181
Member Avatar for davy_yg

Hi, I am attaching a side banner image. I would like that image able to switch it's text automatically or whenever the user press the small white button. Anyone has any idea how to do so ? or any recommended tutorial to create such things ? Thanks.

Member Avatar for davy_yg
0
99
Member Avatar for raj236712

i want to create shapes like circles,rectangles and others with the help of c language programming.basically i want to make the sign of matrix in my program.how can i do this?

Member Avatar for WaltP
0
585
Member Avatar for essential

It performs the toggle function to change the class of the paragraph tags and reverts back to the default class name when user rollout of it. You can embed the CSS style code inside the Head section of your page using HTML style tag. Code is as follows :

Member Avatar for tekagami
0
255
Member Avatar for sharathg.satya

hi all i am facing a problem with the below code i used keylistener so that when i click letter 'v' the program has to exit. But the following code is not working. Help me please.. i think we should add listener to the code but how to add listener …

Member Avatar for stultuske
0
187
Member Avatar for moone009

Im trying to move all files from "C:\SSIS\Test1\" that are new than 2 days old to the C:\SSIS\Test\" but for some reason it keeps skipping over the if statement marked in red. Any help please. Very amateur programmer here! [CODE] Sub Text() Dim sDay As DateTime sDay = DateAdd(DateInterval.Day, -2, …

Member Avatar for Teme64
0
200
Member Avatar for HadoukenGr

[CODE]#include<stdio.h> #include<string.h> void FindWord (char used[30] , char string[30] , int wordsize); char* CleanString (char string[30], int wordsize); int main (void) { FILE *fp; char letters[30]; char words[30]; char used[30]; char *string; int wordsize; int input_size; input_size = wordsize = 0; fp = fopen("dictionary.txt","r");/*contains a list of words in the …

Member Avatar for HadoukenGr
0
152
Member Avatar for Rizvi404

Am trying to BACKUP database in .bak format and when i compile it am getting [B]-2147221504 source file doesnt exist error [/B] can anybody please HELP.. Thanks in advance

Member Avatar for Rizvi404
0
297
Member Avatar for cyberdaemon

i want to create a stored procedure that can return the initial character of two string inside the description field. ex. Computer Security -> in one data only if i use this statement select left(description) from table1 i want to return only CS when i run my script. is there …

Member Avatar for cyberdaemon
0
127
Member Avatar for jbutardo

I have this OLEDB connection string connectionstring as string = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ data.toString & ";Extended Properties=""Excel 8.0;HDR=Yes;IMEX=2 I just want to know what is the meaning of HDR and IMEX, and what are their purpose on the connection string Thanks..

Member Avatar for jbutardo
0
1K
Member Avatar for prathapsv3

Hi all, Check this code and please tell me a solution.I have 2 buttons (Pizza & pepsi),the price should display in textbox8 when i click on button, here the price had shown in Textbox8,but it is not getting added with next price when i click second button. [CODE] Private Sub …

Member Avatar for lolafuertes
0
183
Member Avatar for newbie26

'why is that when i change something on one form, when i ran the program,the changes i made don't seem to take effect? example, i set a button's visibility to false, when i ran that form, the button still appears. even if i already saved it before running i already …

Member Avatar for newbie26
0
176

The End.