- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 23
- Posts with Upvotes
- 20
- Upvoting Members
- 18
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
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
67 Posted Topics
Re: 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 … | |
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 … | |
Re: 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, … | |
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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: Why doesn't the user have the option of deleting his own post?? ![]() | |
Re: 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:]) | |
Re: 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, … | |
Re: Try Placing it inside a form. And post a screenshot if not solved even after this. | |
Re: 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. … | |
Re: Nothing is clear from your post - what is the script, how are you executing it?? | |
Re: 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; } | |
Re: 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) | |
Re: 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 … | |
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 … | |
Re: 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(); | |
| |
Re: You need to describe the whole situation man, what is in the map, the data types of key and value, etc. Be clear! | |
Re: You can send the data using a query string: `url: 'DelEvent.php?var1='+var1+'&var2='+ var2;` and so on ![]() | |
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 … | |
Re: 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 … | |
Re: Define static data members outside the class if you are not using c++11 like this: `<datatype> <classname>::<varname> = value` <> indicate placeholders. | |
Re: 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) | |
Re: 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. | |
Re: 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 … | |
![]() | Re: 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 … |
Re: Give id loginboxdiv to the loginbox div. in myFunction the code should be: `document.getElementById('loginboxdiv').style.display='none';` | |
Re: 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 … ![]() | |
Re: 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 … ![]() | |
Re: 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, … | |
Re: 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 … | |
| |
Re: 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 … | |
Re: Use AJAX and onclick event handler on image tag. | |
Re: 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) | |
Re: 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 … | |
Re: And when can one get the skill endorsements?? | |
Re: 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. | |
Re: 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. | |
Re: I think you are closing the file too early. | |
Re: [Refer this link.](http://stackoverflow.com/questions/37823/good-reasons-not-to-use-a-relational-database) | |
Re: 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 … | |
Re: <?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. | |
Re: 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: … | |
Re: 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. | |
![]() | Re: 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 … |
Re: 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 … |
The End.