Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
91% Quality Score
Upvotes Received
23
Posts with Upvotes
20
Upvoting Members
18
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
2 Commented Posts
~27.0K People Reached
About Me

A Person Interested in Computers Big Time!! Here is the link to my blog: http://www.ktreat.com/

Interests
Programming, Web Designing, DataBase, anything related to computers..
PC Specs
1 TB HDD, 4 GB RAM, Intel Core i5 Processor with clock speed upto 3GHz, 1 GB Video Card, 15.6 Screen
Favorite Tags

67 Posted Topics

Member Avatar for markii.borabon

Well the first thing that comes up when developing a website is the languages that u will use. So be clear on that. PHP for server-side, javascript/jQuery for client-side, HTML and CSS are enough. If you really want to launch the website online then you may also want to know …

Member Avatar for bsabev
0
318
Member Avatar for tapananand

Hello all. So, I'm in my final year of my B.Tech. in computer science programme and I have to do a project for my final year. The thing is I want the project to be unique/innovative. I brainstormed a few things: 1. An online music player that can store your …

Member Avatar for q-_-p
0
522
Member Avatar for gyno

Well according to me Ubuntu is the Best Linux distro. Not far from it is Fedora. But if you are a beginner i'll suggest to go with Ubuntu. But if you want to become very good at it, you should later on work on a non GUI version as well, …

Member Avatar for XP78USER
0
391
Member Avatar for tapananand

Whenever we talk about open source we only talk about big coding projects with contributions from aound the world. An openly available source code and all. I was wondering going with the spirit or the philosophy of open source aren't freely available books also part of open source. I also …

Member Avatar for mike_2000_17
0
194
Member Avatar for morfious90

When you set on a path to become an ethical Hacker, you need to know everything about computers, specially Open Source and Linux/Unix. But its not that necessary to do RHCE before CEH. But one day or the other you will either need to do RHCE or somehow know a …

Member Avatar for mailman_2097
0
1K
Member Avatar for hydra.p

There is no real trick to mastering Data Structures that we can tell you here. It's more about practice and experience. Data Structures is not just about knowing about a lot of data structures and being able to code them. It is more about being able to apply them to …

Member Avatar for Rashakil Fol
0
304
Member Avatar for Yahia Farghaly

No, both are not array of characters. Only the second one is. The first one is simply a pointer to a character which happens to be the first character 'm' of "myname". Also note that you can change characters in the second one while not in the first one as …

Member Avatar for Yahia Farghaly
0
340
Member Avatar for BingityBongity
Member Avatar for diafol
0
252
Member Avatar for VKG147

The unpacking operation can only be done on tuples, and the command line arguments are stored in a list/array. So do something like this: script, first, second, third = tuple(argv[0:])

Member Avatar for Schol-R-LEA
0
742
Member Avatar for Chem_1

An IDE and virtual machine are not related at all so i don't know why you are confused. An IDE just gives you the capabilities of editing, creating, compiling, debugging, etc in a single application Virtual Machine is used to run another OS(guest OS) in your main OS(host OS). So, …

Member Avatar for rubberman
0
333
Member Avatar for murali2489
Member Avatar for Joemeister

First of all this code is wrong. But before that let me describe how one expects this to work. The find function in string class returns the index where the substring starts in the original string. The finding starts from the index starting at the second argument which is optional. …

Member Avatar for Joemeister
0
2K
Member Avatar for rohan1111

Nothing is clear from your post - what is the script, how are you executing it??

Member Avatar for rohan1111
0
189
Member Avatar for kukkumahi

int main(void) { printf("Menu\n"); printf("1. Dance.\n2. Sing.\n3. Sleep.\n4. Exit.\nWhat do you want??: "); int ch; scanf("%d", &ch); switch(ch) { case 1: printf("Dance.\n"); break; case 2: printf("Sing.\n"); break; case 3: printf("Sleep.\n"); break; case 4: return 0; default: printf("Wrong Choice.\n"); } return 0; }

Member Avatar for tapananand
0
95
Member Avatar for vishal sata
Re: cms

You can follow this: [Installing Wordpress.](http://codex.wordpress.org/Installing_WordPress) After install you can follow the tutorials here: [Getting Started with Wordpress.](http://codex.wordpress.org/Getting_Started_with_WordPress)

Member Avatar for tapananand
0
94
Member Avatar for Jjajangmyeon

1. Dynamically allocated memory is allocated in Heap and not in stack, so when the function returns, the memory in heap is still in tact and must be freed manually to prevent memory leaks. 2. According to me, freeing it in the function itself is a better practice as it …

Member Avatar for David W
0
194
Member Avatar for tapananand

Consider the following code: #include<stdio.h> #define msizeof(type) ((char*)(&type) - (char*)(&type - 1)) int main() { int x; printf("%u %u\n", msizeof(x), sizeof(x)); return 0; } The Above code when compiled with g++ compiles just fine and works well without any wanrings, while in gcc it gives the following warning: `integer overflow …

Member Avatar for vijayan121
0
838
Member Avatar for dhani09

The line: `$_SESSION['book'] = array();` is truncating the array to size zero every time this code runs so you will have only one element each time. Instead, do something like this: if(!isset($_SESSION['book'])) $_SESSION['book'] = array();

Member Avatar for dhani09
0
163
Member Avatar for rjusman90
Member Avatar for akhilckz
Member Avatar for can-mohan

You need to describe the whole situation man, what is in the map, the data types of key and value, etc. Be clear!

Member Avatar for tinstaafl
0
302
Member Avatar for nadiam

You can send the data using a query string: `url: 'DelEvent.php?var1='+var1+'&var2='+ var2;` and so on

Member Avatar for diafol
0
466
Member Avatar for tapananand

I guess most of you would have seen the algorithm for the following problem: **Input:** Set of intervals(time) **Output:** Partion of intervals into minimum subsets such that no interval in a subset overlaps. **The Algorithm:** Sort intervals by start times and look them in this order, put each interval in …

Member Avatar for tapananand
0
308
Member Avatar for yaldoo

The line counter++ should come after this line: `cout << setw(3) << oneDimArray[counter];` else one array space is wasted. Plus you have inserted the values inside the code, which is bad. Your task is to linearize any 2-D array and not just the one given in example. So you should …

Member Avatar for NathanOliver
0
2K
Member Avatar for imlearning

Define static data members outside the class if you are not using c++11 like this: `<datatype> <classname>::<varname> = value` <> indicate placeholders.

Member Avatar for Hiroshe
0
112
Member Avatar for redalert8
Re: .DLL

You can download missing DLLs from here: [http://www.dll-files.com/](http://www.dll-files.com/) or here: [http://www.dlldll.com](http://dlldll.com)

Member Avatar for tapananand
0
99
Member Avatar for lloydsbackyard

You should give a value to option : `<option value=\"$record['company']\">$record['company']</option>` notice the closing option tag - in your code / is missing. Plus what is the problem you are facing, you should post that after making the above changes.

Member Avatar for lloydsbackyard
0
278
Member Avatar for Saboor880

Well your program has a lot of errors: 1. When defining member functions, return type comes before the class name, so `date:: int setday(int day)` should be `int date::setday(int day)`. You have done this mistake everywhere, so correct that. Also these functions are declared void in class and int in …

Member Avatar for tapananand
-1
394
Member Avatar for [NOPE]FOREVER

Well, as deceptikon answered, you need to set all the standards first, decide on whether the language is procedural or object-oriented, the keywords and other "atomic"(indivisible) entities. Using these atomic entities a grammar is built, e.g. [Backus-Naur Form(BNF)](http://en.wikipedia.org/wiki/Backus%E2%80%93Naur_Form). Also [See this.](http://stackoverflow.com/questions/2320402/how-to-define-a-grammar-for-a-programming-language) This grammar can be used to design and code …

Member Avatar for tapananand
-1
149
Member Avatar for davy_yg

Give id loginboxdiv to the loginbox div. in myFunction the code should be: `document.getElementById('loginboxdiv').style.display='none';`

Member Avatar for davy_yg
0
300
Member Avatar for davecoventry

Try these minor changes: 1. Change your span to a div. 2. Add `<br class="clear"/>` after your two divs inside(just to clear floats). 3. Add these lines to your CSS: .center{ width: 500px; margin-left: auto; margin-right: auto; } div.center div { float:left; } .clear { clear:both; } The 500 width …

Member Avatar for diafol
0
197
Member Avatar for vizz

When deciding colors for things you need to do a lot of trials. Plus having a few color addons helps. You can look at the color combinations that other good sites use and then to get the color they use you can use a very good addon for firefox called …

Member Avatar for diafol
0
147
Member Avatar for anitg

Well as you may know, HTML5 is still in progress and is not fully supported by by all the browsers. The same goes for the video tag and the formats of videos. For Example: FF >= 9, only WeBM and OGG are supported. while, Chrome >=17 supports Almost all formats(OGG, …

Member Avatar for veedeoo
0
984
Member Avatar for vishnu balan

Here is how you make a singleton class in C++: class singleton { static singleton* objRef; //will store reference to the only object. singleton() { cout<<"Private Constructor"<<endl; } public: singleton* getObject() //used to get reference to the only object. { if(objRef == NULL) objRef = new singleton(); // can call …

Member Avatar for tapananand
0
451
Member Avatar for eantz
Member Avatar for vizz

First of all you need all same size images. Now inside the div have 5 img tags each of width 25px; Set the Background of each to say img1.jpg. Now adjust background position property of each. 1st img tag left value = 0, for second = -25 so that the …

Member Avatar for vizz
0
174
Member Avatar for arslan.khalid.57
Member Avatar for nadiam

The DATE() function is a MYSQL function PHP has date(); Why don't you use substr function? or you can try this: `$dstarting = date('d-m-Y', strtotime($dstart));` Refer this for more possible formats to print date: [Click Here](http://www.php.net//manual/en/function.date.php)

Member Avatar for nadiam
0
2K
Member Avatar for BogdanCov

You do not need to use seive algo here at all. Prime factors of a number can be found in sqrt(n) without the seive. You can store the count of each prime factor in an array. Initialize the HCF with the first number. Then if count of any of the …

Member Avatar for tapananand
0
233
Member Avatar for Mya:)
Member Avatar for filipgothic

Man this is what you are expected to write: `$pregled = mysql_query("select * from koncerti where grupa_id = ".$grupa_id['id']."") or die(myslq_error());` mysql_query takes only one argument. I mean I can't even understand how can you post such a thing here.

Member Avatar for filipgothic
0
228
Member Avatar for aseel_1

Select F.name from Fathers F, Sons S where F.id = S.fatherid and S.name='bill' and S.fatherid in (select S2.fatherid from Sons S2 group by S2.fatherid having count(*) >= 2) and S.fatherid not in (Select S.fatherid from Sons S where S.name='suzy'); I guess this will do.

Member Avatar for filipgothic
0
217
Member Avatar for berserk
Member Avatar for yavindu

[Refer this link.](http://stackoverflow.com/questions/37823/good-reasons-not-to-use-a-relational-database)

Member Avatar for tapananand
0
109
Member Avatar for sami9356

The C++ default constructor has no argument at all. So if you don't define a constructor at all, that and the default copy constructor are the only constructors in the class. In that case: Myclass a[10]; //Valid. Myclass b[2] = {0, 1}; //Error. But If you define only a constructor …

Member Avatar for tapananand
0
709
Member Avatar for jKidz

<?php session_start(); if(!isset($_SESSION['username'])) { echo "<script type=\"text/javascript\">window.location.href='login.php';</script>" ; } ?> Write this at the very top of your page.

Member Avatar for tapananand
0
247
Member Avatar for Bsc148

If you are a beginner to databses, I'd suggest a few things: 1. Learn how to design databases, i.e how to convert your data into logical units that can be put into a "Database Management System" - you might wanna google this. Plus a link to study about it briefly: …

Member Avatar for mark.giles.14
0
177
Member Avatar for junaid_5

You need to hide these two and on selecting the option in first drop down menu call a handler which uses Ajax to change the options of 2nd and 3rd drop down.

Member Avatar for tapananand
0
548
Member Avatar for iamthwee

As soon as the button is clicked, disable the button in the function that uses AJAX. The sendmail script should echo a status 0/1 so that you can know if mail was successfully sent or not. You can check if it was sent or not from the response text in …

Member Avatar for Topnews
0
124
Member Avatar for aseel_1

Ya your desgin could have been better. In fact @hericles desgin is quite perfect. I assume that X and Y are deptid's. With that design, the query should be: Select e.id, e.name from emp e where e.id in (Select empid from deptid where deptid=X) and e.id not in (Select empid …

Member Avatar for aseel_1
0
175

The End.