nitin1 15 Master Poster

You can have a Bootable CD/DVD/pendrive for fedora and put it in the device while booting up. After that, it will instruct you to have the partition and will ask you where you want to put this in your system. It would be just simple UI. It will prepare desktop for you and at the end you can restart and enjoy the beautiful fedora. Hope this helps.

nitin1 15 Master Poster

I am using namespaces from a long time now. But, I don't know why we need them at the end? Why do I need to write

using namespace std;

OR

std::string

Why do we have to do this? Why have they made it this way? Can you elabroate this thing? Thanks.

nitin1 15 Master Poster

@rubberman Why will I need to update each and every source file? Can you please elaborate little bit? Please explain more. thanks.

nitin1 15 Master Poster

I was just thinking that why I need headers at all? In headers, most oftenly we have the declarations only. In .cpp we have the definitons of that .h file. But, why can't we write all the functions directly in .h file and include it in my project files? Why are we dividing the functions declarations and functions definitions? In header file, we have header guard which prevent to have the definitions again and again. So, there is no point to say that translation unit size would be increased. So, what is the exact reason? Please clarify. Thanks.

nitin1 15 Master Poster

What, and where is the problem in the code? Mention the problem you facing so that we can help you to solve the issue.

nitin1 15 Master Poster

There are many ways to do it. You can use the XOR operations as ruberman has done it.

You can try one more method using addition and substraction:

void swap(int a,int b)
{
      a = a + b;
      b = a - b;
      a = a - b;
}

It will also work as it is without third variable. Hope this helps.

nitin1 15 Master Poster

It is quite simple if you know the maths behind this.

All these are just bases in which you can write your any number. For example, n = 9 can be written as 1001 in base 2(binary) and it is 9 in base 10(decimal).

How am I writing 9 as 1001 in base 2?

Start with 9 and divide it it with 2. Take Quotient and remainder. Here, Quotient = 4 and remainder = 1. Now, Save this remainder anywhere. Now take quotient = 4 and again divide it by 2. Again, Quotient is 2 and remainder =0. Add this remainder where you have stored initial remainder. Repeat this until you get remainder 1 or 0. Note: Save the last remainder also. Still, you didn't get the answer.

Your answer is: If you read all the remainders from the last remainder to first remainder, that's your answer.

Here is code snippet for binary.

Void convertTOBinary(int n)
{
       while(n>0)
       {
             //save this remainder
             int remainder = n%2;
             n/=2;
       }
}

So, How to do for Hexadecimal. Can you relate now? When base was2, I was diving by 2, but in your case base is 16. So you will divide by 16 here as per the case. Difference is that in base 2, you can have only 2 remainders, but in Hexa, you can have 16 remainders. Remainders between 0-9 will be as it is, but after 9 it will be like this:

10 = A
11 = B …
nitin1 15 Master Poster

If you are in hurry, at least pay some time to explain the problem. We will help you if you can explain what is wrong with the code. And don't be in urgency, here things will go in their normal pace.

Arjun_4 commented: Mate i need to know how to Balance a Binary Tree in C , Thats about it :) +0
nitin1 15 Master Poster

@deceptikon Mike has explained it really well and I am reading it completely now not only the section. Can you give me more inforamtion about dlls? I mean some good links after giving me some brief introduction from your side. It would be helpful. {P.S Interacting with you after so long time :) }

@mike thanks for the link. It helped me a lot as that post has many things which were not in my knowledge earlier.

nitin1 15 Master Poster

I am using Dev Cpp/ eclipse as the IDE. I am using windows/linux. I just want to learn how these things work. May be any platform, any compiler, I just want to do the complete procedure myself. From creating library with few files and adding it to my project and finally use the library functions in my programs. What documentation are you talking about? Thanks for your reply.

nitin1 15 Master Poster

I am curious to know how I can make my own library and use it for my C/C++ programs? I mean I want to make a library say "maths_example" which will have 2-3 files having some basic functions of maths. Then, I want to use that library for my programs which I will write after writing

#include "addition.h" 
#include "substraction.h"

So that now, I can use my functions written in my own library. I just want to learn the things how we make library, how we compile all files in library simultaneously, how we use our own written functions in our written codes as we do for "printf()", "sqrt()" etc. Can anyone help me how to start with this? Can you give me links from where I should read about this and start learning this?
If you can give me some example, then it would be beneficial. Any help would be appreciated.

nitin1 15 Master Poster

I am using C/C++. I am using geany for editing my codes. I want to use beecrypt in my programs. But ofcourse, it is not included by defualt. I have downloaded beecrypt library already but don't know how to use it with my programs. I have put my program in the folder where all .h files are there and included

#include<beecrypt.h>

also but still it is saying this file is not present. Please help. Any help will be appreciated. How to use all the functions which are written in this library as I do with iostream,string, ctype etc. I just write preprocessor statement and I use them without any problem. How to do this with beecrypt library?

nitin1 15 Master Poster

What would have happened if I didn't involve function.h? I think function.h is not doing anything in this example. Explain this thing.

nitin1 15 Master Poster

Main.cpp

#include <iostream.h>
#include "functions.h"

int main(){
    print_hello();
    cout << endl;
    cout << "The factorial of 5 is " << factorial(5) << endl;
    return 0;
}

hello.cpp

#include <iostream.h>
#include "functions.h"

void print_hello(){
   cout << "Hello World!";
}

factorial.cpp

#include "functions.h"

int factorial(int n){
    if(n!=1){
    return(n * factorial(n-1));
    }
    else return 1;
}

function.h

void print_hello();
int factorial(int n);

When I compile them simultaneously, then it worls fine. But can you please explain how linking occurs in this example? what is purpose of functions.h and how other files are getting the definitons of the 2 functions (factorial and other)? Can you explain what is happening when I compile them together and what will be the content of .o file. Explain the flow. Any help will be appreciated. Thanks in advance.

nitin1 15 Master Poster

@mike Don't you think 1st is better? It has only 500GB hard disk difference with option 2. Because Ubuntu is free and I will install on first day only. So in cost of 4.5k I am getting Win8 and 1 GB graphic ard. People say you will have problem if you will use AUTOCAD, MAYA like software without grapic card.

Secondly, you can't upgrade grahic card once you purchased a laptop as it is a chip on board. If you will need graphic card in future, you can't put that at any time. I am not a gamer at all.

Thirdly, is there any option to switch off graphic card?

Please answer them.

nitin1 15 Master Poster

I have considered 3 laptops till now:

first is: i5 4th gen/ 4GB RAM/ 500GB hard disk/ 1 GB graphic /Windows 8/ 45k INR
Second: i5 4th gen/ 4GB RAM/ 1TB hard disk/ no dedicated graphic/Ubuntu/ 41k INR
Third is: i5 4th gen/ 6GB RAM/ 1TB hard disk/ 2 GB graphic /Windows 8/ 49.5k INR

I am confused between 1st and 2nd. They are giving me 500 GB storage extra but they are not giving me graphic card. But in 1st, they are giving me graphic card at the cost of storage.

I also want to ask what is the use of dedicated graphic card? I am not a gamer and I just listen to music, code in different languages and use software like Visual Studio etc.

Please tell me both the things. Which laptop shoudl I buy and graphic card thing? Thanks.

nitin1 15 Master Poster

So, Should I go for ASUS now? But, In India, I didn't see much ASU laptop with my friends, relatives and all. What can be the reason behind this? I have majorly seen Dell & Sony around me. Thanks.

nitin1 15 Master Poster

@mike And what about Mac book versions? What's your take?

nitin1 15 Master Poster

1,00,000 is too much for Indians. And your configeration is too much for me. Too many people have Dell around me. What are you talking about in "Quality"?

nitin1 15 Master Poster

I want to buy a laptop with the following requirements:

  1. Daily use
  2. 1 TB Hard-disk
  3. 4-6 GB RAM
  4. i5(4th gen) processor
  5. 1GB graphic card
  6. Windows 7 Basic
  7. <= 50,000 INR

Which company laptop should I buy? Lenovo, HP, SONY, DELL or what? and Why? Ask me further information if you need to suggest me something good. I want your help. Thanks in advance. Any help would be appreciated.

nitin1 15 Master Poster

I am new to parsers. I want to extract/parse the HTML documents. I have heard of this HTML DOM using PHP. Can ypu tell me some links or some basic introduction to start with? How can I use it to extract info from HTML document? Thanks in advance.

nitin1 15 Master Poster

Actually, I am working on a project. I want to extract all the reviews from a website which has reviews related to movies, for example. I want to make an automated system which can extract the content of the website and save it to a file. That will be my data-set for the project on which I am working. For example, take imdb. I want to make an automated system which I will run and that will extract the content(reviews by many people) of the website and save it to the file for further processing. I hope I am clear what I am asking. I just want the point from where I should start. What should I read and how to start? No codes or code snippets I am asking. Thanks in advance.

nitin1 15 Master Poster

I am a Computer Science student. I have to select my final year project as soon as possible. I am confused how I should select my project. Can you help me by telling me the strategies for the same? I am interested in C++, Java, Web development, Recommender Systems. Actually, it is a research project. When I read a lot of work already done, I stuck at the moment when I need to think of something new which I can do in that area. How should I proceed? I am just asking for the proper methodology which I should follow. Any help will be appreciated. I have read one thing which inspired me a lot-- Magic happens only when you come out of your comfort zone. So, I am ready to learn something new if you have something in your mind. Any new technology which has many things to learn, explore? I want some project which have lots of practical work involved rather than lots of theory. You can also tell what you did at your time; this will also be quite helpful.

nitin1 15 Master Poster

I don't know what all you have started discussing! :p anyways, you may continue.

nitin1 15 Master Poster

I am a beginner. I don't understand these terms like neck , bridge. Can you elaborate more?

nitin1 15 Master Poster

I want to buy my first guitar and I don't want to spend much money in the very beginning as I don't know how to handle it and all those things. I want to buy an acoustic one. So, can you suggest me any good and cheap guitar on which I can start learning? I am a noob for a guitar, but I had played other instruments in the past. Thanks.

nitin1 15 Master Poster

Can you suggest me some good forums where i can post my doubts related to this and get feedback which Assembly guy has mentioned?

Can you suggest me 2-3 good grammer books which can make improve my vocab part and my grammer?

P.S I read newspaper daily and sometimes novel also.I just want to polish my skills, It's not like that I don't know anything about English. Some middle-level books, which are not written in the way e.e cummings write and not for the 10 years old student. Still, all suggestions are really great. thanks.

nitin1 15 Master Poster

what ? I think that book is for dummies as the name suggets. Am i right ?

nitin1 15 Master Poster

Yes sir. But still, I want to improve systematically. What is included in "practice"? Seriously, the day when I will be able to write in the way you write, that day will be the happiest day in my life. how should i do and what should I do ? some techniques which I can do on regular basis or something else in your mind ? Thanks.

nitin1 15 Master Poster

Although, My speaking skills are fine, but I make lot of grammtical errors while writing. Can you suggest some ways so that I cam improve my writing and speaking skills ? As many of you have English as your mother tongue language, but I don't have this thing with me.I have seen that prit and deceptikon English is really very good. As I am not American, could you please suggest me how can I improve my commuunication skills? Thanks.

Assembly Guy commented: From what I've seen, your English is some of the best I've seen on the forum from a non-native-speaker +0
nitin1 15 Master Poster

@James sir, Please , you should start a seprate thread or something seprate area so that we can learn these superb things from you.yeyy!! excited to know more alike these things. making each post as a thread will scatter everything. But if no other option, still this way is also best and best. ;) thanks a lot.

nitin1 15 Master Poster

how did you come across this thing? Did your code fail because of this ? Or have you read this somewhere ?

Secondly please explain this :

"The reason for this is that long and int can have the same range. strtol will return LONG_MIN or LONG_MAX if there's an overflow situation, at which point only the value of errno will help you diagnose an error versus a legitimate boundary value." thanks in advance.

P.S This is simply awesome. I never know this thing. Keep sharing these type of things.

nitin1 15 Master Poster

So, is it good to work for 30-40 years for a company and give your valuable input to that company so that it can earn from you for 30-40 years ?. I am not against this thing because we don't have any other option. I am just trying to discuss this thing. My point is that : if we can do so much hard work, we can give so much input to any company, then why can't we give that input and potential to our own business ?

Each year your salary will be increased by some 8-10% and we will be very happy and after 30 years of life, what exactly we have in our hand ? Bank balance and experience of work in that company? Right ? Again, I am not against working with companies, but asking you that can't we do something so that we can have something in our hand at the end and we can say that "Yes! this is something only because of my hard work". I know this seems to be easy, but it's task of many-many years. Make me correct if i am wrong at any point. Stress will be there as an employee also, and as an owner also. but difference is only of less and more. having responsibility of all good and bad and making your own business and set targets and surpass failures are characteristics of own business. I know it's not easy to have any business and making …

nitin1 15 Master Poster

How many of you are entrepreneur here? Can you explain your idea which you have thought and can you give some tips to others who are also seeking in this direction ? I know Dani is one of them. If she feels , she can also share her experience. This thread will be very very helpful to everyone as entrepreneurship helps everybody at some point of time. can anybody be entrepreneur if he is determined and passionate to do something ? If you are not entrepreneur , then try to add some points here to help people who want to do something on their own. thanks.

nitin1 15 Master Poster

I play paino. I once played in one party which was quite sucessful. But that was not me alone, it was a team work.

Currently, I am focussing on my high notes voice skills. ;)

nitin1 15 Master Poster

@phorce that's nice! I totally agree with you. So, can you recommend how can i start and any project which you can think of ? thanks in advance.

nitin1 15 Master Poster

yoyyy!! I really miss that series.

nitin1 15 Master Poster

are you talking about the book ? I haven't got any video tutorials on this site. is there any ? thanks.

nitin1 15 Master Poster

should i go for python learning then ? By taking any project thing or what ? You seems to be python expert and lover. :-)

nitin1 15 Master Poster

@phorce greatly said! it striked my mind. I spent 2-3 days on python till now. After spending some days, am not felling anything that i have done somethng good. your opinion is worthful. Here is the syllabus of the course from coursera.org which i am following :

This class is nine weeks long. For most weeks, you will watch two sets of videos (part a and part b) and then complete one quiz for each set. These quizzes have a soft deadline of Tuesday/Thursday, respectively, and a hard deadline of Saturday. The main task for each week is to complete a mini-project that is due on Saturday. You will then be asked to assess your peer's mini-projects on the following Sunday-Wednesday.

Week    Topics  Mini-project
0   Expressions, variables and assignments   "We want... a shrubbery!"
1   Functions, logic, conditionals  "Rock-Paper-Scissors-Lizard-Spock" game
2   Event-driven programming, local and global variables, buttons and input fields  "Guess the Number" game
3   The canvas, static drawing, timers, interactive drawing Stopwatch: The Game
4   Lists, keyboard input, motion, positional/velocity control  "Pong" game
5   Mouse input, more lists, dictionaries, images   "Memory" game
6   Classes, tiled images   "Blackjack" game
7   Acceleration and friction, spaceship class, sprite class, sound Spaceship from "RiceRocks" game
8   Sets, groups of sprites, collisions, sprite animation   Full "RiceRocks" game

so, this is the course which i am following on coursera.org. Please have a look and tell me if it is good to learn and spend time on this.

secondly, Which project should i take …

nitin1 15 Master Poster

so, is recommender systems course worthful to do ? AM i going right ? You all are great here so am asking you so that you can recommend me in the best possisble way. am i using my time in right way by learning python and by doing recommender systems course from coursera.org? thanks in advance.

nitin1 15 Master Poster

i have installed python 2.7.5. so what is the differece between 2.7.5 and 3.3.2 ? I have seen that they both are new on their website. what is this ? thanks in advance.

nitin1 15 Master Poster

so which version i should use ? please help as i am totally new to this. thanks to you.

nitin1 15 Master Poster

how to check this thing that which version i am using ?

I got this thing after writing sys.version :

2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)]

I am doing tutorials which is teaching me python2. thanks in advance.

nitin1 15 Master Poster

but it is not giving me error in line 16. why ?

nitin1 15 Master Poster
import sys

i=0;

def func1(i):
    print "i am in function func1"
    if i<5:
        i=i+1
        func1(i)
    else:
        return
    return


def main():
    print "beginnning the function\n"
    func1(i)
    print "hello Daniweb"
    s='aman'
    print "hahha"
main()

it is giving me syntax error in print "hahha" statement. WHat is that ? According to me, it is correct. can anyone help. thanks.

nitin1 15 Master Poster

hello, I have started learning python these days. Although i am following a course on coursera.org for learning it , but that course is going very very slow. Also, I don't know if that course contains all things which is need to build codes in python. I have very good hand in C and C++ . Can you suggest me some good sources to learn python ? video lectures will be more helpful because i feel comfortable with that. and which IDE i should use for compiling and running my codes ? thanks in advance.

nitin1 15 Master Poster

any one is there who has knowledge and interest in cross-domain recommender systems ? If yes, then reply so that I can discuss few points with you. thanks in advance.

nitin1 15 Master Poster

I don't want any certification and anything like that. I want knowledge in the particular domain. I was purely talking about the knowledge content. I want to explore the recommender systems field. If i dont get any certi even after completeting the course, I don't mind, But if i didn't get any knowledge after this, then i will regret that i have wasted my so much time in this course. Thanks.

nitin1 15 Master Poster

I have started two courses on :

  1. Intro to Recommender systems
  2. An Introduction to Interactive Programming in Python

From cousera.org these days. I am in week 1 of python and week 4 of recommender systems. So are these good courses which i am doing ? Or i can do something else ? You can assume that it is my free time which i am utilizing like this. any help will be appreciated. thanks in advance.