Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
49% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
4
Posts with Downvotes
3
Downvoting Members
2
1 Commented Post
~16.4K People Reached
Favorite Tags
c x 37
php x 21
c++ x 15
email x 11
Member Avatar for swissknife007

I am looking for a new laptop.My budget is around 700 $.I require the laptop for programming mainly.I would like to have i5 processor with 4gb + ram. I would like to save as much money as possible without compromising on these requirements and quality .I don't care for looks …

Member Avatar for akshay326893
-1
2K
Member Avatar for swissknife007

I am planning to buy a new laptop within a budget of 700 $. I am going to use it for mainly programming purposes so I don't really care for graphic card etc. I am looking for the following features:- i5 processor 200 GB + HD 4GB + RAM I …

Member Avatar for sheikhali449
0
353
Member Avatar for swissknife007

<?php mysql_pconnect("localhost","root",""); mysql_select_db("AppDevelopMenu") or die( '1'); $sql1=mysql_query("select Question from questions where QId ='1'"); if(!$sql1) echo '2'; else{ $question=mysql_fetch_assoc($sql1) ; $outputq[]=$question; $sql=mysql_query("select OptionId,OptionContent from options where QId ='1'"); if(!$sql) { echo '3'; } else { while($row=mysql_fetch_assoc($sql)) $outputq[]=$row; print(json_encode($outputq)); } } mysql_close(); ?> i have to modify this code to read json …

Member Avatar for diafol
0
97
Member Avatar for swissknife007
Member Avatar for Gribouillis
0
146
Member Avatar for swissknife007

I am designing my own algorithm to check if 2 codes are similar or identical? How do pre-exsting softwares do this? What logic do they use? Are there different levels of testing for this? please give detailed answers

Member Avatar for ravenous
0
242
Member Avatar for swissknife007

I am designing my own algorithm to check if 2 codes are similar or identical? How do pre-exsting softwares do this? What logic do they use? Are there different levels of testing for this? please give detailed answers **CLOSED DUE TO DOUBLE POST, SEE** http://www.daniweb.com/software-development/cpp/threads/420816/how-to-check-2-codes-are-similar-or-identical

Member Avatar for L7Sqr
0
239
Member Avatar for swissknife007

I am working on a project with my friend where we have to update existing version of a game which uses SDL 1.2 to use SDL 2.0 header files and functions. I would like to know what is the standard procedure we follow while updating already existing source code to …

Member Avatar for Ancient Dragon
0
160
Member Avatar for swissknife007

Question statement Now we represent a natural number N by the maximum numbers that are less than or equal to N in Fibonacci sequence: N = b1*A1 + b2*A2 + … Hence N can be represented as: bnbn-1…b1. For eg, 1 = 1f, 2 = 10f, etc. On writing all …

Member Avatar for Adak
0
99
Member Avatar for swissknife007

I am making a program to store all the powers of 2(1,2,4,8...) till 2 ^50000. Although I am getting the answer,I am not getting my answer in the required time limit. Any suggestions? How should I store the numbers? Here is my stupid code as of now [CODE] #include<stdio.h> #include<math.h> …

Member Avatar for histrungalot
0
201
Member Avatar for swissknife007

I am trying to implement a program for finding the remainder on division of 2 numbers n2/n1 such that n1 is of the order of 2^32(having a few digits) and n2 is the order of 2^65536(having about 20000 digits) So far I have stored them in an array digit by …

Member Avatar for Banfa
0
143
Member Avatar for swissknife007

[CODE]There is a single ring road that runs over the circumference of this circle and connects all the boarding points. There are also N - 1 different shuttle agencies available in Bhiwani. For every different boarding points A and B there is exactly one shuttle that connects these points and …

0
94
Member Avatar for swissknife007

x*y = a + b*lcm(x,y) + c*gcd(x,y) I have to solve this eqaution.How to make a solution for it. here a,b,c<=10^6 Any suggestions

Member Avatar for StuXYZ
0
106
Member Avatar for swissknife007

[CODE] #include <iostream> #include<stdio.h> #include<string.h> using namespace std; int main() { // cout << "Hello world!" << endl; int t,i,j,a,flag; char str[1000001]; cin>>t; while(t--) { a=1; scanf("%s",str); for(i=0;i<=strlen(str);i++) {flag=0; if(!isdigit(str[i])) {flag=0; for(j=i-1;isdigit(str[j]);j--) { if(str[j]!='0') { flag++; a*=str[j]-'0'; //cout<<"flag"<<flag<<" "<<a<<"A"<<endl; break; } } if(flag==0) { a=0;break; } } while(a>9) { if((a%10)!=0) …

Member Avatar for StuXYZ
0
514
Member Avatar for swissknife007

Given an array A of length N, my task is to find the element which repeats in A maximum number of times as well as the corresponding count. In case of ties,I choose the smaller element first. Input First line of input contains an integer T, denoting the number of …

Member Avatar for VernonDozier
0
885
Member Avatar for swissknife007

I am implementing a program where I want to store only certain part of the input string. for eg if the input string is 0123456789 I want to discard 4 AND 7 and store 01235689 Please my program requires an input string of 10000 characters so running time is very …

Member Avatar for mhd_arif123
0
198
Member Avatar for swissknife007

I am about to place my order for the Dell Inspiron 14-R.[CODE] Processor 2nd generation Intel® Core™ i5-2450M processor 2.50 GHz with Turbo Boost up to 3.10 GHz Operating System Genuine Windows® 7 Home Basic SP1 64bit (English) Display 14.0" HD WLED True-Life Display (1366x768) with LCD Bezel Memory3 4GB4 …

Member Avatar for rubberman
0
240
Member Avatar for swissknife007

I am planning to purchase a laptop.I am basically want to use it for programming so I don't want a fancy graphic card or any other such extra feature. I live in India where a laptop that sells for 700 $ in US is sold for 1000 $.I want to …

Member Avatar for caperjack
0
291
Member Avatar for swissknife007

Is this Toshiba Qosmio T851/D8CR laptop good? I am planning to purchase a laptop.I am basically want to use it for programming so I don't want a fancy graphic card or any other such extra feature. I live in India where a laptop that sells for 700 $ in US …

-2
145
Member Avatar for swissknife007

[CODE] #include<stdlib.h> #include<conio.h> #include<stdio.h> #include<iostream.h> struct pro { int no; int btime; int atime; int stime; int etime; int wtime; int ttime; int rtime; }proc[100],junk; void sort(int n) { pro temp; for(int i=0;i<n;i++) for(int j=0;j<n;j++) { if(proc[j].atime>proc[j+1].atime) { temp=proc[j]; proc[j]=proc[j+1]; proc[j+1]=temp; } } } pro min(int n,int & t) { …

Member Avatar for swissknife007
0
3K
Member Avatar for swissknife007

I am a beginner to computer graphics and I have to add animations to the image of my national flag which look like this. I have designed the flag alright.But I don't know what kinds of animations are possible and how. Could someone please guide me how to add animations …

Member Avatar for DeanMSands3
0
829
Member Avatar for swissknife007

I am a beginner to computer graphics and I have to add animations to the image of my national flag which look like [URL="http://4.bp.blogspot.com/_R_714JbVSys/SbJm90IMkpI/AAAAAAAAAEo/IQQ_YyvV2_M/s320/indian+national+flag.jpg"]this[/URL]. I have designed the flag alright.But I don't know what kinds of animations are possible and how. Could someone please guide me how to add animations …

Member Avatar for peter_budo
0
644
Member Avatar for gourav1

[CODE]#include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include<dos.h> #include<math.h> void midline(int,int,int,int); void main(void) { int gdriver = DETECT, gmode, errorcode; int xmax, ymax; initgraph(&gdriver, &gmode, ""); errorcode = graphresult(); if (errorcode != grOk) { printf("Graphics error: %s\n", grapherrormsg(errorcode)); printf("Press any key to halt:"); getch(); exit(1); } setcolor(getmaxcolor()); int x1,y1,x2,y2; …

Member Avatar for swissknife007
0
146
Member Avatar for swissknife007

[CODE]<?php require('class.phpmailer.php'); $mail=new PHPMailer(); $mail->isSMTP(); $mail->SMTPDebug=1; $mail->SMTPAuth=true; $mail->Port=465; $mail->Host="ssl//smtp.gmail.com"; $mail->Host = "ssl://smtp.gmail.com"; $i=0; if(isset($_POST['submit'])) { $mail->Username=check($_POST['UserName'],"user id required"); if(filter_var($_POST['UserName'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $mail->Username=$_POST['UserName']; $mail->Password=check($_POST['pass'],"password required"); $con=check($_POST['conpass'],"confirm password required"); if($con!=$mail->Password) show_error("Passwords do not match"); $mail->FromName=check($_POST['name']); $_POST['rec']=check($_POST['rec'],"recipient required"); if(filter_var($_POST['rec'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $_POST['recn']=check($_POST['recn']); $mail->AddAddress($_POST['rec'],$_POST['recn']); $mail->Subject=$_POST['sub']; $mail->Body =$_POST['body'];$i=0; if …

Member Avatar for cereal
0
125
Member Avatar for swissknife007

[CODE] <?php require('class.phpmailer.php'); $mail=new PHPMailer(); $mail->isSMTP(); $mail->SMTPDebug=1; $mail->SMTPAuth=true; $mail->Port=465; $mail->Host="ssl//smtp.gmail.com"; $mail->Host = "ssl://smtp.gmail.com"; if(isset($_GET['submit'])) { $mail->Username=check($_GET['UserName'],"user id required"); if(filter_var($_GET['UserName'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $mail->Username=$_GET['UserName']; $mail->Password=check($_GET['pass'],"password required"); $con=check($_GET['conpass'],"confirm password required"); if($con!=$mail->Password) show_error("Passwords do not match"); $mail->FromName=check($_GET['name']); $_GET['rec']=check($_GET['rec'],"recipient required"); if(filter_var($_GET['rec'],FILTER_VALIDATE_EMAIL)==false) { show_error("Invalid email address"); } $_GET['recn']=check($_GET['recn']); $mail->AddAddress($_GET['rec'],$_GET['recn']); $mail->Subject=$_GET['sub']; $mail->Body =$_GET['body']; if …

Member Avatar for diafol
0
340
Member Avatar for swissknife007

[CODE][ {"source": "app/assistants/stage-assistant.js"}, { "scenes": "first" , "source": "app/assistants/first-assistant.js" } ][/CODE] [20111217-21:54:46.317499] info: =========> Calling palmInitFramework506, /usr/palm/frameworks/mojo/mojo.js:142 [20111217-21:54:46.638557] info: Requested submission : 506 [20111217-21:54:46.640486] info: Current locale is en_us [20111217-21:54:46.892087] info: sending event 'mojo-event-activate' targeting element 'undefined#<no id>' [20111217-21:54:46.893487] info: sending event 'mojo-window-activate' targeting element 'undefined#<no id>' [20111217-21:54:46.936206] error: Uncaught …

0
74
Member Avatar for swissknife007

I am completely new to PHP. I would like to know which are the good online resources where I can learn PHP. What are the basic things in PHP one needs to know?

Member Avatar for rotten69
0
408
Member Avatar for swissknife007

[CODE] <?php //email(to,subject,message,headers,parameters) $to="swissknife@gmail.com>"; $subject="Hi"; $message="Hello my friend"; $from="swissknife007@gmail.com"; $headers="from:".$from; mail($to,$subject,$message,$headers); echo" mail sent"; ?>[/CODE] This is a very simple php script to send an email. However ,it is not working for me and I am getting the error. [CODE] Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" …

Member Avatar for pro_learner
0
247
Member Avatar for swissknife007

I have been trying to send email for 2 days. using php I have tried different methods but to no avail . I am sure I am making some small mistake. Please can someone give step by step procedure of sending mail using Xampp?

Member Avatar for pritaeas
0
221
Member Avatar for swissknife007

[CODE]<?php $time1=time(); $time2=$time1+5; echo $time2-time()."Current time<br>"; setcookie("user","Abhi",$time2); // ECHO "<html> // <body> // <form action='cookie2.php' method='get'> // <input type='Submit'> sybmit // </form> // </body> // </html> // "; ?> <?php while(isset($_COOKIE["user"])) { echo "hi ".$_COOKIE["user"]; echo time()."Current time if<br>"; } if(!isset($_COOKIE["user"])) { echo "hello"; echo time()."Current time else<br>"; } ?>[/CODE] …

Member Avatar for diafol
0
177
Member Avatar for swissknife007

HTML FILE IS: [CODE] <html> <body bgcolor="yellow" text="red" > <form method="get" action="cookie6.php"> <p>Which car you want to buy?<P> <TABLE border=2> <TR><TD><input type="checkbox" value ="15" name="text[]"><TD>Ferrari<TD bgcolor="blue" width="15px"> 15million</td></TR> <TR><TD><input type="checkbox" value ="35" name="text[]"><TD>Mercedes<TD bgcolor="red"width="15px"> 35million</td></TR> <TR><TD><input type="checkbox" value ="50" name="text[]"><TD>Bugatti<TD bgcolor="yellow"width="15px">50million</td></TR> </TABLE> <input type="hidden" value="1" name="check" > <p> <input type="submit" …

Member Avatar for cereal
0
2K