vendredi 9 août 2013

Learning c++ Step by Step : Variables

This is the second tutorial I made about c++ , The last one   teach you how to code your first program generally called " Hello world program "
Now that We learn the structure of c++ and how a program will look like now we will study variables, how to declare them and how to use them.

First, you will need to know the rules of naming your variable which you can find here
Now that you know how to name your variable  let's talk about variables.


We use variable to stock information that we will use later in our program, let's say that our program is calculator and we want to calculate the addition of two numbers but how do my computer can remember the first number after I write the second one ?

This is where variable are for, you can stock first number in a variable and then use it to calculate the addition..

How to declare a variable ? 
In order to use a variable in C++, you must first declare it specifying which  type you want it to be. The syntax to declare a new variable is to write the specifier of the desired  type (like int, float...) followed by a valid variable identifier. For example:

int  age ;
Bool  Answer ;
long int    Numb

Now for example if we have 4 variable with same type how can we declare them ?

int age,Numb ; 

Global Variable or local variable 
when you declare a variable as a global one all program functions can use it anytime with declaring it since it's already declared but if it's local variable then only the function where it have been declared can use it.




Watch this YouTube video to understand all what you have to know about variables :

jeudi 8 août 2013

Learn Html serie - Text and paragraphs

After making first tutorial Structure of HTML  it reach more than 35 views in less than one hour, So I thought releasing the second tutorial will be a great move.
In the Last Tutorial  I explain the general structure of HTML and how to Install and Setup Notepad ++ in this tutorial we will discuss texts and paragraphs..


Let's start, each web page contain a lot of paragraphs and texts, all of them are done into <body> tag 
You can choice type or color of the paragraph in HTML.


Focus on this example code : 

<html>
<head>
<title> Text and paragraph </title>
</head>
<body>

<center>
<font size="8" color="red" face="arial"> 
This is my first web page 
</font>
</center>
<hr color="yellow" width="40" size="5">
<p align="center">
<b>HTML language </b>
<i> Javascript language </i>
<u> Php language</u></p>
 </p>
</body>
</html>
 

Let's explain this code,  <ceneter> tag mean your text will be located in the center of the page, <font> tag define how your text will look like including color, face and size witch you can change for your own modification.

" This is my first web page " will be in the center of the page with size 8 and red color as shown in the picture


The <hr> tag is for separating line color define the color of the line and width define the width of it, if you want it to be in all the page instead of 40 write 100% and it will be in all of the page as shown  in the picture bellow :





The <p> tag should be opened each time you will write a paragraph align mean where you paragraph will be whether in the middle, left or right.
The <b> tag to make a paragraph in " Gras "
The <i> tag to make a paragraph in " italics "
The <U> tag to make a paragraph   " underlined "


Aaaah Almost forget, You can choice the size of a line or paragraph by using this tags
<h1> : most bigger size
<h2> : second most bigger size
<h3> : less size than H2
<h4> : more less
<h5> : more more less
<h6> : the smallest size 






Well I guess I explain everything related to paragraph and texts..

YouTube video will be added soon within one hour


Thanks for reading
Copyright 2013-2014

Learning Html Serie - Structure of HTML

I released a  Post   a while ago saying that I will be teaching HTML in my blog the next days from now starting with tomorrow but It looks like I have enough time to start right now so this is our first tutorial HTML.
In this tutorial I will explain to your guys the structure of HTML and witch Text editor we will be using in all our tutorials.


1-Structure of HTML
Each HTML code should be started with the tag <html> and ended with </html> tag. 
Some browser may read and interpret it correctly even if you don't include  </html>  but we will not forget it in our tutorial.
This is general how your code will look like in each tutorial


<html>
<head>
<title> Your page title</title>
</head>
<body>
Your body of the page here 
</body>
</html>

  
-  The tag <head> is generally for including Javascript code to your page, it can be ended before </body> or </html> tag
-  The tag <title> used to indicate the page title, most time  <title> tag can be found between <head> and </head>
- The tag <body> is for the body of the  page, all what you will write there will show up in your page body 

Note : Sometimes Head tag isn't necessary as title tag too 

2- Editor of HTML code 
We will be using Notepad ++ in all our tutorials so make sure you follow this video about how to setup and install Notepad ++ for windows.
This code will also explain First part of this tutorial ( Structure of HTML )

YouTube video will be included soon within 1 hour or less ether.




  

Let's Learn Html

What's HTML?
HTML is the main markup language for creating web pages and other information that can be displayed in a web browser.
HTML stands for Hyper Text Markup Language, it is used to creating static web sites that have no data base related to it, totally different from Php
HTML isn't a programming language, in fact it's a simple opening and closing codes that written into text editor to show up something really simple, to be more specific it's a number of tags ( opening and closing )

After saving the code into txt file it will be opened by a browser witch reads the tags and interpret them into pages ( pictures , texts, tables etc..)
HTML elements form the building blocks of all websites. HTML allows images to be embedded and can be used to create interactive backgrounds or forms. It can embed scripts written in languages such as Javascript which affect the behavior of HTML web pages.

History of HTML

Berners-Lee specified HTML and wrote the browser and server software in the last part of 1990. In that year, Berners-Lee and CERN data systems engineer robbert cailliau collaborated on a joint request for funding, but the project was not formally adopted by CERN. In his personal notes from 1990 he listed "some of the many areas in which hypertext is used" and put an encyclopedia first.

Why Creating this post ?
  I used to learn HTML, Javascript and php a long time ago and now that I reach a higher level in all of them I thought teaching you what I learn will be a great move.
I will create an average of 3 posts daily teaching HTML so that we learn the basics by the end of this week..
After learning HTML I will teach you how to learn Javascript and How to learn Php but untill that happen we will need to learn all basics of HTML.



When will you start teaching us HTML ?
Probably on 09/08/2013, tomorrow to be more specific..
The best Thing in this series of tutorials will be including a YouTube video with each lesson so make sure to read quietly the post and watch the YouTube video on our channel
Also our Facebook page will share more details about date and time of each tutorial.



Thanks for reading 
Subscribe to get all recent tutorials
Copyright 2013-2014



mardi 6 août 2013

Why YouTube video counts freeze at 301


 A lot of YouTube videos views freezes at the number 301, it may stay like that for more than one day and a half without any known reason. Many of you will ask the same question I already asked a few days ago Why YouTube video counts counts freezes at 301 views ?


Recently Ted Hamilton explain it a little bit in Brady Haran video, YouTube have been the most popular video site for years and for that many webmasters and bloggers turn their attention to YouTube since it's possible to monetize your YouTube channel and earn money, but you need a high number of views and subscribers in order to make money with your YouTube channel.

In order to get more views and comments people use some sites like Vagex to boost their YouTube views, this is the reason why YouTube views counter freeze at 301

When it freeze at 301 YouTube administration will verify number of views of that video and how it get that number to see if it's legal or no and after that it will continue counting or " Your channel have been deleted "

But why exactly 301 ?
As Ted Hamilton says, at the beginning the freeze number was 300 but it's up to programming logic, Still not clear ? 
I will explain it for you :
 It's all related to programming logic, let's say this is the program code :

If ( Video_Count <= 300 ) then 
Video_count:= Video_count + 1 
 Else 
 Exit program

 This is just an explaining example it have nothing to do with any programming language, so when your video reach 300 ( witch is number views where your video should freeze ) it will normally add 1 view than freeze because of the ( <= ) 
Programmers will understand it easily.


As shown in the picture Views counter is less than 300 than it will continue counting views..



 
 Now it reach 300 views ( views number YouTube decide ) but it won't freeze because the program says ( <= 300 ) so it will do another more instruction so that the variable Views_count underpass 300 and that time it will exit program (freeze counting for a while ) 

 

 Now that views counter freezes YouTube will check your views and verify them.

 Hey there ! my video freezes at 307 and other video freezes at 312 ? 
I got an explaining for that too, Let's say views counter reach 299 and still 2 more views to freeze but at the same moments 9 people viewed your video so it will freezes at 308 right ?
 If you don't get it this image will explain : 



Now that I explain to you why some YouTube video freezes at 301 you will have to make sure you use sites like Vagex with more caution..

Thanks for reading hope you like it 
 

 

How to add Similar posts widget to blogger 2013

Blogging nowadays becomes one of the most popular activity online, more than millions of bloggers everyday posting and improving their blogs so they reach a higher level of popularity.
If you want your blog to be active and more lovely than make sure you update it each time there is a new feature that can be useful for your visitors.







One of my favorite tips to improve your blog is to add " Similar posts widget " So that when a visitor is reading a post it appear to him some related posts to the one he is reading.

How to add a similar posts widget ?

Go to Linkwithin   you will see at the right this form :

- Add your email, You don't have to add a true email you can get simply one by looking for a random email site on google.
- Add your blog link right after your email
- Choice your platform, normally it's blogger 
- Choice width, I recommend 4 stories for more details 
- Click on get widget 

Now it will automatically lead you to another page like this one in the picture :





Now All you have to do is follow those easy steps in that page, 
 I recommend you to install the widget under posts widget ( in the middle of the page ) for more good looking of your blog.


Thanks for reading.
Please feel free to email me anytime  

No more Adfly

Hello all bloggers, first I want to thank those people who email me recently ( my email : rid47_dead@yahoo.fr ) and thank me for the effort am making here on "nouslesprogrammers.blogspot.com" but some of them says and I quote ' Your blog is perfect I like the way you write and I like some posts, But what I didn't like is that much of Adfly links in each post '.

I re-email him talking about that and well we came to a deal, NO MORE ADFLY LINKS, that will have some consequences  since Adfly is a source of revenue to this blog but it's okkay if my loyal fans will be more comfortable with that.


That will make me look for another source of revenue to continue working on this blog, anyway I want to thank all those people who are really loyal to our blog.

Please feel free to email me anytime I will answer you immediately

: Your username
: Your email
Your message