Responsive Ad Slot

.

Religion

Coding

Global

Tech

Prayer for Children: Obligatory or Compulsion?

Posted on Friday 21 August 2015 with No comments

Friday 21 August 2015


The Muslim prayer, also called Salat or Namaz, is obligatory in Islam. Muslims pray five times in a day, which has been made irremissible and unpardonable. 

Pillar of Islam: 

Salat is one of the main "five pillars" of Islam. While Muslims are to be awarded for offering prayers, missing prayer would lead to incur God's wrath upon them, and the punishment is emplacement in Hell. In my childhood, I was always stories about severe punishments for abandoning or neglecting the 'prayer'. :Like, someone who misses the Asr (Third Prayer of the day) is as if he has been robbed of his family and his wealth. There are several stories associated with leaving prayers and are meant to inflict pain onto the mind. 

Prayer for Children



Children in the Islamic Communities are told and taught to offer prayer, and this act is encouraged by narrating stories of hell-fire in case they'd miss prayer and other shuddery bullshit: Allah, the sadist God, pours fire with embers upon the ones who leave prayer; children are no exception.

Indoctrination: 

From the time children are very young, Islam like all other religions is instilled in the young, tender minds of children. It is the result of this indoctrination that children are not able to scrutinize and think objectively when they grow up; rather, they become extremists who seek to defend their religion and faith by cursing. swearing and threat-calling the ones who expose religion rationally.
The worst case scenario is they join Terrorist organizations that train them to annihilate people who oppose their ideas - the iconoclasts, atheists, agnostics and the like have no place in the world in their unsightly view of the world. Their perspectives have no shred of humanity for people holding opposing views. 

Islam urges parents to teach the young children its Prayer (The Salat) when the child is seven of age. At age ten, the Islamic Law constitutes physically forcing, even beating the child to offer prayer. 
In other words, parents may legally resort to hit their children in aspects related to prayer. 
Islam, as reported by Muslims themselves, offers freedom of volition, discretion and freewill. In the case of Prayer, all that becomes invalid and nullifies the freedom of actions, and free discretion becomes violable, causing to incur Allah's rage which would inflict punishment on the Muslims for having disobeyed his commandments.

I have a problem with the whole case of prayer. Salat demands subjugation of freewill and prostration to the supposedly Almighty God, and it represents subservience of a person to Allah. Where the heck is freewill in that? If a person is supposed to prostrate and lay down/bow down before him without considering his own willingness, as it is made obligatory by the religion, the person has no say in the matter at all. He is just doing the bidding of his God, which is subjugation, and not discretion. 
Children have young, immature minds and do what they're told, believe what they're taught. If children were taught to reason, the world would be better and there would be more intelligent people rather than belligerent assholes.

The not-so-free-to-act religion Islam offers no freedom of will; it is just delusional to think it does. And the obligatory prayer is a compulsion on children. A child will learn what he is taught; he will learn to offer prayer, not because he has freewill in choosing to offer prayer, but only because the religion demands prayer offering unquestionably and uncritically. 
It's high time people realized that prayer is a compulsion, a forceful obligation and there is a story of eternal punishment in hell associated to instruct people better. People lose the ability to think clearly in the face of fear, and thus, they "choose" to be suppressed rather than coming out in the open and facing truth.

Children should be taught to reason first, before holding any faiths or convictions. They should have freewill to choose for themselves. The world would progress faster if people just realize the importance of freewill and coexistence.
READ MORE

Quote of the Day: Losing Loved Ones

Posted on Tuesday 4 August 2015 with No comments

Tuesday 4 August 2015


How many of us have lost dear ones, the people we wished never died and lived with us longer? Everyone has someone important in their life, someone dear to them: their beloved ones - they may be a parent, a friend, lover, teacher or anyone we share a 'bond' with. A relationship that binds people together. Accepting death as a reality may be difficult, but losing someone we wish to protect or watching them die is even harder. We never want to see others in such pain; only sadists would love that kind of thing.
We forget the deceased ones, but it's seemingly impossible and hard to forget them. Their presence lingers in our hearts, minds and souls through their memories. We recall the "memories" we shared with them, and it is through this reminiscence that we stop evanescence of their memory and presence. They are always in our hearts.
Remember this beautiful quote by Mitch Albom that might make you nostalgic about your loved ones.
"Sharing tales of those we've lost is how we keep from losing them."
READ MORE

Initialization of variables

Posted on Monday 3 August 2015 with No comments

Monday 3 August 2015



When declaring a regular local variable, its value is by default undetermined. But you may want a variable to store a concrete value at the same moment that it is declared. In order to do that, you can initialize the variable. There are two ways to do this in C++:
The first one, known as c-like, is done by appending an equal sign followed by the value to which the variable will be initialized:
type identifier = initial_value ;
For example, if we want to declare an int variable called a initialized with a value of 0 at the moment in which it is declared, we could write:
int a = 0;
The other way to initialize variables, known as constructor initialization, is done by enclosing the initial value between parentheses (()):
type identifier (initial_value) ;
For example:
int a (0);
Both ways of initializing variables are valid and equivalent in C++.

// initialization of variables
#include <iostream>
using namespace std;
int main ()
{
int a=5; // initial value = 5
int b(2); // initial value = 2
int result; // initial value
undetermined
a = a + 3;
result = a - b;
cout << result;
return 0;
}
READ MORE

Why call him God?

Posted on Sunday 2 August 2015 with No comments

Sunday 2 August 2015

Epicurus was an ancient Greek philosopher who founded the school of philosophy, "Epicureanism". 
He was a great thinker, and audacious to question the stereotypes and dogmas of his time. He even questioned God in a quaint manner.  
Theists and believers of God proudly claim that God is omnipresent, omnipotent, and omniscient. 
Epicurus posed mind-boggling questions about omnipotency of God.

Is God willing to prevent evil, but not able?

If God exists, and is willing to prevent evil, then what is stopping the omnipotent deity from exacting his duty on lowly humans. Does God require means to destroy evil; but that would be self-contradictory. Is God powerless or unable to purge evil from this world? If that is the case, God is certainly not omnipotent.

Is God able, but not willing? 

Granted God is omnipotent, and rules over everything under the sun - being the Creator, Designer and all, could it be He is not willing to prevent if not eradicate evil? If God himself isn't willing to pulverize evil, then He truly is menacing and malevolent. Anyone who has power and wants to do something, can easily do the part. When you see something bad, you must do something: this is common intuition. An adult cannot stand by watching a child being slaughtered, unless he is a maniac.
What God who calls himself merciful would want to see his creation in tatters? Only a sadist would enjoy the unsightly sight.

Is God both able, and willing?

Wait, then why isn't there any action? Could it be our sadist God loves delirious sabotage? Given that God can and wants to dispose of evil and malign in this world, then why is there so much evil in the world? If a supreme deity, that is God, controls the worldly affairs from his all-high Throne, why don't we see any observable or empirical results of his divine power? Simply, because God does not exist and all claims to his existence are groundless fairy tales - a load of crap.

Is God neither able, nor willing?

This one is pretty self-explanatory. If God has no divine power, nor does He want to obliterate evil, there is ultimately no reason to call such useless deity a God. 
READ MORE

Live-action Naruto movie announced!!!! Bad idea

Posted on Saturday 1 August 2015 with No comments

Saturday 1 August 2015

Lionsgate has announced that it’s making a live-action movie based on the popular anime and manga Naruto. Michael Gracey will be the visual effects supervisor.  
It goes without saying some if not a lot are not happy with this news mostly because of goiw well the previous manga to movie adaptions played out:
And this :
Not only have the production qualities be by far inferior but the script writers have up till date completely deviated from the source. Much to our dismay the Naruto live action movie might also share the same faith as its predecessors. One would think after so many mistakes one would realize his mistake but that obviously isn't the case here .

Not to mention even though being an american production the great train wreck:

The production quality might have been top notch but the casting and story was probably written by someone who hasn't even touched the source material. 
we at ratinaljunkies will continue to cover this pleas tell us your thoughts on the matter in the comments.
READ MORE

Scope of variables

Posted on with No comments

All the variables that we intend to use in a program must have been declared with its type specifier in an earlier point in the code, like we did in the previous code at the beginning of the body of the function main when we declared that a, b, and result were of type int.

A variable can be either of global or local scope. A global variable is a variable declared in the main body of the source code, outside all functions, while a local variable is one declared within the body of a function or a block.


Global variables can be referred from anywhere in the code, even inside functions, whenever it is after its declaration.

The scope of local variables is limited to the block enclosed in braces ({}) where they are declared. For example, if they are declared at the beginning of the body of a function (like in function main) their scope is between its declaration point and the end of that function. In the example above, this means that if another function existed in addition to main, the local variables declared in main could not be accessed from the other function and vice versa.
READ MORE

Declaration of variables

Posted on Friday 31 July 2015 with No comments

Friday 31 July 2015


Today we're gonna learn how to declare variables. In order to use a variable in C++, we must first declare it specifying which data type we want it to be. The syntax to declare a new variable is to write the specifier of the desired data type (like int, bool, float...) followed by a valid variable identifier. For example:
int a;
float mynumber;

These are two valid declarations of variables. The first one declares a variable of type int with the identifier a. The second one declares a variable of type float with the identifier mynumber. Once declared, the variables a and mynumber can be used within the rest of their scope in the program.

If you are going to declare more than one variable of the same type, you can declare all of them in a single statement by separating their identifiers with commas. For example
int a, b, c;

This declares three variables (a, b and c), all of them of type int, and has exactly the same meaning as:
int a;
int b;

int c;

The integer data types char, short, long and int can be either signed or unsigned depending on the range of numbers needed to be represented. Signed types can represent both positive and negative values, whereas unsigned types can only represent positive values (and zero). This can be specified by using either the specifier signed or the specifier unsigned before the type name. For example:
unsigned short int NumberOfSisters;
signed int MyAccountBalance;

By default, if we do not specify either signed or unsigned most compiler settings will assume the type to be
signed, therefore instead of the second declaration above we could have written:

int MyAccountBalance;
with exactly the same meaning (with or without the keyword signed)

An exception to this general rule is the char type, which exists by itself and is considered a different fundamental data type from signed char and unsigned char, thought to store characters. You should use either signed or unsigned if you intend to store numerical values in a char-sized variable.

short and long can be used alone as type specifiers. In this case, they refer to their respective integer
fundamental types: short is equivalent to short int and long is equivalent to long int. The following two variable declarations are equivalent:
short Year;
short int Year;

Finally, signed and unsigned may also be used as standalone type specifiers, meaning the same as signed int and unsigned int respectively. The following two declarations are equivalent:
unsigned NextYear;
unsigned int NextYear;

To see what variable declarations look like in action within a program here is an example:
The blue section is input the grey section is output
Do not worry if something else than the variable declarations themselves looks a bit strange to you. You will see the rest in detail in coming posts.
READ MORE

Islam has nothing to do with REAL Islam!

Posted on with No comments

When Muslims are posed questions and asked to give rational answers, they start rambling and justify by saying 'it has nothing to do with real Islam.  
Observations from Muslims' ideas and beliefs show that:
  • Muslim actions and practices have nothing to do with real Islam
  • Terrorists have nothing to do with real Islam
  • Daesh (Muslim Terrorist Organization) have nothing to do with real Islam
  • Taliban have nothing to do with real Islam
  • The traditions and narrations mentioned in the Ahadith(احادیث - sayings of Muhammad) have nothing to do with real Islam
  • History of Islam has nothing to do with real Islam
  • Books of Biography (Islamic) have nothing to do with real Islam
  • Tafasir (Interpretations of Quran by Islamic Scholars) have nothing to do with real Islam
  • Muslim countries have nothing to do with real Islam
  • Fiqh has nothing to do with real Islam
  • Maulvis have nothing to do with real Islam
  • Sunnis have nothing to do with real Islam
  • Wahabis have nothing to do with real Islam
  • Shias have nothing to do with real Islam
  • Quranists have nothing to do with real Islam
  • Rejectors of Ahadith (people who deny Ahadith) have nothing to do with real Islam
[Note: Sunni, Wahabi, and Shia are sects of Islam and Muslim community worldwide; Maulvis are Muslim leaders i.e. clergymen of Islam. Fiqh is Islamic jurisprudence. For more info, you may visit Wikipedia]

It seems Islam itself has got nothing to do with REAL Islam! Splendid!
READ MORE

Islam is in Danger

Posted on with No comments

Islam is a pestering religion and behaves like a cranky cat. 
Everything is a danger to Islam. Muslims had better do something about it, or the ship of Islam will certainly drown into the deepest of seas. Let's hope Islam plunges into eternal darkness without any mote of hope for its convalescence, may it fall into a murky abyss. 

Islam is in Danger


  • Islam is in danger from Jews
  • Islam is in danger from Christians
  • Islam is in danger from Hindus
  • Islam is in danger from Magi
  • Islam is in danger from Atheists
  • Islam is in danger from Ahadith(sayings of Muhammad) [احادیث]
  • Islam is in danger from History
  • Islam is in danger from Biography
  • Islam is in danger from America
  • Islam is in danger from Europe
  • Islam is in danger from India
  • Islam is in danger from Secularism
  • Islam is in danger from Democracy
  • Islam is in danger from Facebook
  • Islam is in danger from Muslims
  • Islam is in danger from Disbelievers
  • Islam is in danger from Satan
  • Islam is in danger from Vampires
  • Islam is in danger from Styx and Griffins 
  • Islam is in danger from Headless Horsemen and every other supernatural creature
  • Islam is in danger from other religions
  • Islam is in danger from Forums and Groups
  • Islam is in danger from Debates
  • Islam is in danger from Freethinkers
It would appear Islam is in danger from Islam itself
Everything (that is not a part of Islam) is a danger to Islam. Curse this gruesome religion which is danger from literally everything under the sun. 




READ MORE

Game of thrones to end after season 8 and YES JOHN SNOW IS DEAD !!!!

Posted on with No comments

The end is closer then you think, HBO's president of programming, Michael Lombardo, revealed on Thursday, July 30, that show has only 3 more seasons left.

"[Showrunners David Benioff and D.B. Weiss] are probably feeling there are two more years after [Season 6]," he shared at the Television Critics Association summer press tour in Beverly Hills when a reporter asked whether the show would end after Season 7. "Seven seasons and out has never been the conversation. The question is how many beyond the seventh season we're gonna do."

Luckily there's still talk about a prequel to the current series that would probably depict the rebellion against the mad king and hopefully the return of the long dead Ned Stark. When asked by the reporter Michael replied "It really depends fully for us on what [the showrunners] want to do."

Is John Snow really dead ????

This should clear up any and all questions regarding his death. When Michael was asked about John Snows condition, this is what he replied:
"Dead is dead is dead. He be dead," Lombardo said, bluntly. "Everything I've seen, heard, and read, Jon Snow is dead."
AND THERE YOU HAVE IT JOHN SNOW HAS OFFICIALLY JOINED THE ARMY OF THE DEAD !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
READ MORE

In 24-hours over 14 million devices upgraded to windows 10

Posted on with No comments

After 24 hours of releases over 14 million  OS have upgraded to windows 10. To keep up with the massive amount of people downloading the upgrade Microsoft is doing a phase rollout of the windows over the few days. For those who reserved an update of windows 10 they will receive a notification in the system tray to ask about weather to download and install windows 10 or not.
READ MORE

Fundamental data types

Posted on Thursday 30 July 2015 with No comments

Thursday 30 July 2015

When programming, we store the variables in our computer's memory, but the computer has to know what kind of data we want to store in them, since it is not going to occupy the same amount of memory to store a simple number than to store a single letter or a large number, and they are not going to be interpreted the same way.

The memory in our computers is organized in bytes. A byte is the minimum amount of memory that we can manage in C++. A byte can store a relatively small amount of data: one single character or a small integer (generally an integer between 0 and 255). In addition, the computer can manipulate more complex data types that come from grouping several bytes, such as long numbers or non-integer numbers.

Next you have a summary of the basic fundamental data types in C++, as well as the range of values that can be represented with each one:
* The values of the columns Size and Range depend on the system the program is compiled for. The values shown above are those found on most 32-bit systems. But for other systems, the general specification is that int has the natural size suggested by the system architecture (one "word") and the four integer types char, short, int and long must each one be at least as large as the one preceding it, with char being always 1 byte in size.

The same applies to the floating point types float, double and long double, where each one must provide at least as much precision as the preceding one. Next we shall learn about declaration of variables.
READ MORE

What is a Dilemma?

Posted on with No comments
 

So what is a Dilemma?
A dilemma is a difficult situation in which you have to choose. However, there is a catch: you don't select your choices; the choices are already given. You are supposed only to choose among the choices given already. It is a very difficult choice to make.

It may be analogous to a situation where you must choose between plunging into an abyss or jumping into a well of water. 

You are going to face something horrible, or gruesome; but you have to choose.
You win or you die. It would seem as if you're going to lose something really important.
We all have something important, something we hold dear - we want to protect that. But we must do our duty when honor calls it. It's not an easy choice. Yet, sooner or later, every man has to choose. What should he do? What can he do?

A choice between:
  • honor and family
  • happiness and sorrow
  • love and life
  • regret and mission
The choices may be different, the reasons may be different for all people. Yet, the action of choice is common between all of them. 
There are many forms of dilemma: moral, ethical, freedom, empowerment, performance, development. time spending and so on.
Are you facing a dilemma? Is it hard for you to choose? Decide what you truly want and what is important to you, then protect that. 
READ MORE

Atheism

Posted on Wednesday 29 July 2015 with No comments

Wednesday 29 July 2015


Many people seem to act as if they knew everything about atheism, many others call it a 'religion'. While there is an incremental multitude of people who have their own opinions about atheism, it is a fallacy to associate atheism with any religion or faith.

Misconceptions about Atheism

Some common misconceptions about atheism are given below, and these are a result of either ignorance or lack of knowledge:
1. Atheism is a religion.
2. Atheism has no morals or ethics
3. Atheists don't think properly. (Well at least they don't think the way people, mostly theists, want them to)
4. Atheists don't use brains.
5. Atheists are confused/need guidance.
This is a never ending list of misconceptions sprouting from carelessness and cognitive dishonesty. There is a handful of hard-headed people who refuse to admit when they are wrong. When free thinkers (including atheists) ask simple questions about their respective religion, they show abrupt belligerence or start refuting facts. There is also another approach the moderate ones use: justifying everything. This justification is nothing but a failed attempt of factual subterfuge.

What is Atheism?

Atheism is simply a lack of belief. It is lack of faith in existence of Gods. Atheists don't believe in existence of any God - they deny God's existence. 
The word 'Atheism' consists of two parts
  1. "a-"
  2. "theos"
Both these words root from Greek: "a" meaning "without" and theos meaning "God"
God may include a deity from the Abrahamic God, Roman Gods, Flying Spaghetti Monster (FSM), or any other deity from both monotheistic and polytheistic religions and cults. 

Atheism is complete denial in belief 


Atheists do not follow any religion or sect, let alone other faiths. Associating atheism with belief is just a fallacious misconception. 
"There is no God" is the final verdict of atheists, simple as that. 
There is either the existence of one thing, or no existence which makes it an 'absence'.  
Some people have faith, they have religion: existence of belief.
Atheists don't particularly have any faith in supernatural deities and beings: absence of belief 
There is light, or no light. Dark is just the absence of light. Similarly, atheism is 'lack of belief in God'. This is not to construe atheism as being dark, religion being the light, or vice versa. This was a simple analogy to help understand, while theists always use this analogy with a bigger form to prove God's existence. That other matter will be discussed in other posts.

Atheism is not a religion

As I've just explained, Atheism is no religion, it is far from being a religion. Some people are in a fix while trying to understand atheism. So they end up deeming it a religion. Religion requires one to have unshakeable, unwavering faith/conviction/belief (whatever you name it). On the contrary, Atheism requires nothing of you. Atheism is not a belief system, but only a lack of that belief system; people who share this thought are termed as atheists. This does not make it any religion.

Atheism and Thought

Rational thought is the basis of atheism. Atheists think harder and harder to seek out the truth. Atheists are certainly not gullible to have delusional beliefs. They do their homework before refutation and research with facts in mind. The research method is the same scientific method based on "doubt". This doubt leads to thinking, observation and collection of facts while making hypotheses and speculations. Atheism requires careful contemplation and critical scrutiny to analyze facts with rationality. This immensity of thought is what unravels the most astonishing and unexpected discovery of facts(they may be wrong, they may be right), We are seekers of the truth, truth as it reveals itself. We reach out to receive our understanding of that 'reality' and truth. Atheists use their thoughts to pursue that truth, they are rich in imagination and also skeptical. Skepticism is what we all need to find out truth. Atheists and rational thinkers are never afraid to ponder and speculate, but they are very careful when it comes to distinguishing speculation from fact. 

Accepting Facts and Atheism

Atheists are never too afraid to say NO when they are wrong, or too flustered to admit they are wrong. They are skeptical about the very nature of their own facts, so precaution and carefulness is not crucial, it is indispensable. 
When facts are provided with proper evidence, atheists are convinced. But when justifications are provided in the stead, they have no choice but to refute. 
When you are supposed to say NO, you must. There is no maybe
Evidence and logical explanation would suffice when claiming something. The burden of proof lies on the one making the claim. Objectivity is a must. 
I tried to cover many aspects of atheism in a single post, but there is room for more and I consider it inappropriate to include them in this post. You are invited to ask as many questions as you like. We'll have more discussions on important subject matters. 

READ MORE

Variables. Data Types.

Posted on Monday 27 July 2015 with No comments

Monday 27 July 2015


The usefulness of the "Hello World" programs shown in the previous section is quite questionable. We had to write several lines of code, compile them, and then execute the resulting program just to obtain a simple sentence written on the screen as result. It certainly would have been much faster to type the output sentence by ourselves.

However, programming is not limited only to printing simple texts on the screen. In order to go a little further on and to become able to write programs that perform useful tasks that really save us work we need to introduce the concept of variable.

Let us think that I ask you to retain the number 5 in your mental memory, and then I ask you to memorize also the number 2 at the same time. You have just stored two different values in your memory. Now, if I ask you to add 1 to the first number I said, you should be retaining the numbers 6 (that is 5+1) and 2 in your memory. Values that we could now for example subtract and obtain 4 as result. The whole process that you have just done with your mental memory is a simile of what a computer can do with two variables. The same process can be expressed in C++ with the following instruction set:
a = 5;
b = 2;
a = a + 1;
result = a - b;

Obviously, this is a very simple example since we have only used two small integer values, but consider that your computer can store millions of numbers like these at the same time and conduct sophisticated mathematical operations with them.

Therefore, we can define a variable as a portion of memory to store a determined value.

Each variable needs an identifier that distinguishes it from the others, for example, in the previous code the variable identifiers were a, b and result, but we could have called the variables any names we wanted to invent,as long as they were valid identifiers.

Identifiers

A valid identifier is a sequence of one or more letters, digits or underscore characters (_). Neither spaces nor punctuation marks or symbols can be part of an identifier. Only letters, digits and single underscore characters are valid. In addition, variable identifiers always have to begin with a letter. They can also begin with an underline character (_ ), but in some cases these may be reserved for compiler specific keywords or external identifiers, as well as identifiers containing two successive underscore characters anywhere. In no case they can begin with a digit.

Another rule that you have to consider when inventing your own identifiers is that they cannot match any keyword of the C++ language nor your compiler's specific ones, which are reserved keywords. The standard reserved keywords are:
asm, auto, bool, break, case, catch, char, class, const, const_cast, continue, default, delete,
do, double, dynamic_cast, else, enum, explicit, export, extern, false, float, for, friend, goto,
if, inline, int, long, mutable, namespace, new, operator, private, protected, public, register,
reinterpret_cast, return, short, signed, sizeof, static, static_cast, struct, switch, template,
this, throw, true, try, typedef, typeid, typename, union, unsigned, using, virtual, void,
volatile, wchar_t, while

Additionally, alternative representations for some operators cannot be used as identifiers since they are reserved words under some circumstances:
and, and_eq, bitand, bitor, compl, not, not_eq, or, or_eq, xor, xor_eq

Your compiler may also include some additional specific reserved keywords.

Very important: The C++ language is a "case sensitive" language. That means that an identifier written in capital letters is not equivalent to another one with the same name but written in small letters. Thus, for example, the RESULT variable is not the same as the result variable or the Result variable. These are three different variable identifiers.

READ MORE

Lesson 2 : Structure of a program (Part II)

Posted on with No comments
In C++, the separation between statements is specified with an ending semicolon (;) at the end of each one, so the separation in different code lines does not matter at all for this purpose. We can write many statements per line or write a single statement that takes many code lines. The division of code in different lines serves only to make it more legible and schematic for the humans that may read it. Let us add an additional instruction to our first program.

This is input:                                                                      This is output:

// my second program in C++
#include <iostream>                                                           Hello World! I'm a C++ program
using namespace std;
int main ()
{
cout << "Hello World! ";
cout << "I'm a C++ program";
return 0;
}

 In this case, we performed two insertions into cout in two different statements. Once again, the separation in different lines of code has been done just to give greater readability to the program, since main could have been perfectly valid defined this way 
EXAMPLE:
int main () { cout << " Hello World! "; cout << " I'm a C++ program "; return 0; }

We were also free to divide the code into more lines if we considered it more convenient
EXAMPLE:
 int main ()
{
cout <<
"Hello World!";
cout
<< "I'm a C++ program";
return 0;
}
And the result would again have been exactly the same as in the previous examples.
Pre-processor directives (those that begin by #) are out of this general rule since they are not statements. They are lines read and processed by the pre-processor and do not produce any code by themselves. Pre-processor directives must be specified in their own line and do not have to end with a semicolon (;).

Comments

Comments are parts of the source code disregarded by the compiler. They simply do nothing. Their purpose is only
to allow the programmer to insert notes or descriptions embedded within the source code.
C++ supports two ways to insert comments.
Which are:
// line comment
/* block comment */

The first of them, known as line comment, discards everything from where the pair of slash signs (//) is found up
to the end of that same line. The second one, known as block comment, discards everything between the /*
characters and the first appearance of the */ characters, with the possibility of including more than one line.
We are going to add comments to our second program:

This is input:                                                                          This is output:

/* my second program in C++
with more comments */
#include <iostream>                                                                Hello World! I'm a C++ program
using namespace std;
int main ()
{
cout << "Hello World! "; // prints Hello
World!
cout << "I'm a C++ program"; // prints I'm a
C++ program
return 0;
}

If you include comments within the source code of your programs without using the comment characters combinations //, /* or */, the compiler will take them as if they were C++ expressions, most likely causing one or several error messages when you compile it.

Thats it for today we will start a new topic tomorrow anyone that wants to ask any questions or make recommendations please feel free to do so.
             
READ MORE

Rachel Mcadams confirms about Doctor Strange Talks In progress

Posted on Sunday 26 July 2015 with No comments

Sunday 26 July 2015


Rachel Mcadams says she's up for the part but is skeptical if she will get it or not :

"She is considering playing the female lead in Marvel's "Doctor Strange," which is set to star Benedict Cumberbatch, though she is careful to note, "it's still super-early days, and I don't know where that's gonna go, if it's gonna go anywhere at all." But she's not a "comic book snob."

Doctor Strange starts filming in the fall season. So expect the cast and story to be revealed at Disneys D23 expo.
"Doctor Strange" has a November 4, 2016 release directed by Scott Derrickson starring Benedict Cumberbatch as Stephen Strange and Tilda Swinton as the Ancient One."
READ MORE

Everything to know about Fallout 4

Posted on with No comments
Fallout 4 is one of the most anticipated games for Xbox one, PS4 and PC. So i decided to round up the things we know :

  1. Fallout 4 is set in the Massachusetts area of the East Coast
  2. The possible companion list is rather huge spawning over a dozen at the least including Dogmeat, Mr. Handy, Preston Garvey, and ‘Piper,’ a newly-revealed companion who you can meet in Diamond City.
  3. Mr.Handy is gonna be epic he can actually say your name no matter what it is (TROLLS ARE COMING). Be it anything . Mr.Handy is voiced by Stephen Russel who also voiced Garret in Thief.
  4. Yes you can have sex and make love. Don't even pretend that wasn't on your mind.
  5. There will a lot of creepy crawlies including mutants and robots.
  6. Companions can also be switched. You are only allowed to have companion at a time.
  7. Piper is a woman in Diamond City. Piper is a female depicted in a red leather coat and newsboy hat. There i already told you where you can go for *coughs* you get it right.
  8. Dogmeat the dog is based on a real dog. Yeah i can't get why but he is. You can read the tweet here.
  9. The leveling system has changed considerably. Whenever you level up you get to choose a new perk. The stats are dictated by these 7 attributes Strength, Perception, Endurance, Charisma, Intelligence, Agility, and Luck.
  10. The book and comic covers are much more detailed now. You can zoom on them and actually read them 
  11.  Here are a list of known enemies courtesy of ign:
             Yao Guai
  1. Sentry Bot
  2. Super Mutants
  3. Super Mutant Behemoth
  4. Mirelurk Queen
  5. Synthetics
  6. Radscorpion
  7. Deathclaw
  8. Protectron
  9. Ghouls
  10. Bloodbug
  11. Brotherhood of Steel   
  12. The things that are back again are bloody mess perk, Super Duper Mart, computer hacking, lockpicking, the Fat Man, and Behemoth mutants.
  13. Well have yoi ever hated when someone was being devoured by ghouls and you were having fun watching but the damn game wants you to save him? Well not anymore, Fallout 4 gives you the choice this time around. At least, that's what it looked like in the demo.
READ MORE

WordPress 4.2.3 Fixes Vulnerabilities, Bugs

Posted on Saturday 25 July 2015 with No comments

Saturday 25 July 2015


The developers of the WordPress content management system (CMS) announced on Thursday the availability of WordPress 4.2.3. This security and maintenance release fixes a couple of vulnerabilities, along with 20 bugs.

One of the security flaws patched with the release of WordPress 4.2.3 is a cross-site scripting (XSS) vulnerability that allows users with Contributor or Author roles to compromise a website. The issue, which affects WordPress 4.2.2 and earlier, was discovered by a member of the WordPress security team, and independently by Jouko Pynnönen of Klikki Oy, who identified several serious vulnerabilities in WordPress in the past. 

WordPress’ announcement doesn’t include any technical details on this vulnerability, but according to managed WordPress hosting provider WP Engine, the issue is related to how shortcodes are used in HTML attributes.
“Essentially, this security issue could enable specially crafted shortcodes to bypass kses protection by tricking it into thinking dangerous parts are part of valid HTML,” WP 

Engine’s Dustin Meza explained. “This vulnerability may allow users without the unfiltered_html capability, but with publishing rights, to run JavaScript code on the front end of the website. This security update ensures all shortcodes inside attributes are evaluated and then run both through kses separately and escaped for use in attributes.”

WordPress 4.2.3 also patches a vulnerability reported by Netanel Rubin of Check Point Software Technologies. The flaw can be exploited by a user with Subscriber permissions to create a draft through the Quick Draft feature.
Users whose installations are not updated automatically are advised to manually install the latest version.

It’s worth noting that WordPress 4.2.1 and WordPress 4.2.2 were released in late April, respectively early May, to address serious XSS vulnerabilities whose details had been made public before patches became available.

**Updated to say that Jouko Pynnönen of Klikki Oy was also credited for reporting the XSS flaw**
READ MORE

Lesson 1:Structure of a program

Posted on with No comments

The best way to start learning a programming language is probably by learning to write a program. Writing a program is the most basic and also crucial part of programming. Why don't we start by learning about the way a program works, it's structure and basics.
Therefore, here is our first program:

This will be the input                                        This will be output 

      #include <iostream>                                                   Hello World!
using namespace std;
int main ()
{
cout << "Hello World!";
return 0;
}

                                                                                     
The input is the very first program a programmer will ever see and same can be said for the output. Now lets start with the learning. 

#include <iostream>
The "#include" is a pre-processor function that tells the compiler to include the <iostream> library. They are no regular code lines. This specific file "iostream" includes the declarations of the basic standard input-output library in C++. Keep it in mind.

using namespace std;
All the elements of the standard C++ library are declared within what is called a namespace, the
namespace with the name std (standard) . So in order to access its functionality we declare with this expression that we will be using these entities (std) . This line is very frequent in C++ programs that use the standard library. Most programs do use the std library so it is an important point to remember.

int main ()
This line corresponds to the beginning of the definition of the main function. The main function is the point by where all C++ programs start their execution, independently of its location within the source code. It does not matter whether there are other functions with other names defined before or after it - the instructions contained within this function's definition will always be the first ones to be executed in any C++ program. For that same reason, it is essential that all C++ programs have a main function.

The word main is followed in the code by a pair of parentheses (()). That is because it is a function
declaration: In C++, what differentiates a function declaration from other types of expressions are these parentheses that follow its name. Optionally, these parentheses may enclose a list of parameters within them.

Right after these parentheses we can find the body of the main function enclosed in braces ({}). What is contained within these braces is what the function does when it is executed.

cout << "Hello World!";
This line is a C++ statement. A statement is a simple or compound expression that can actually produce some effect. In fact, this statement performs the only action that generates a visible effect in our first program.

cout represents the standard output stream in C++, and the meaning of the entire statement is to insert
a sequence of characters (in this case the Hello World sequence of characters) into the standard output stream (which usually is the screen).

cout is declared in the iostream standard file within the std namespace, so that's why we needed to
include that specific file and to declare that we were going to use this specific namespace earlier in our code.

Notice that the statement ends with a semicolon character (;). This character is used to mark the end of the statement and in fact it must be included at the end of all expression statements in all C++ programs (one of the most common syntax errors is indeed to forget to include some semicolon after a statement).

return 0;

The return statement causes the main function to finish. return may be followed by a return code (in our example is followed by the return code 0). A return code of 0 for the main function is generally interpreted as the program worked as expected without any errors during its execution. This is the most usual way to end a C++ console program.

                                            (FIN)

This code could also be written on a single line keep in mind like this :
int main () { cout << "Hello World!"; return 0; }

This would mean exactly the same as the above code and would have same meaning. 
See you on the next lesson and feel free to ask me any questions you might want.

READ MORE

WE START TODAY

Posted on with No comments

From today onwards we will be learning C++.  You may ask any questions regarding C++. We have just taken a start, so there is a lot to come. We are going to learn programming in C++ from scratch. We'll be covering the basics, provide summaries and help in any and every possible way. We hope you become a part of this experience.
READ MORE

Change yourself before changing the world!

Posted on with No comments


Many people want to change the world, don’t they? But, what exactly is the meaning of this word “change”?
Change means to make something different, to cause a transformation or to become different in essence. 
Change is also a process of growing up. 
You want to change the world, but have you ever thought about changing yourself? If not, then you must realise the importance of changing yourself. One must understand that before changing the world, one has to change himself first. 
Remember that “change” is a “process” and not an “event“.

Change is Natural

Change is a very natural process. Everything around us keeps changing. Things change from time to time. But, it doesn’t mean that “time changes everything”. It’s true that things change with time but time does not necessarily change things.

Change is Inevitable

The seasons come and go, so do day and night. Time changes too. Circumstances change. People change. It can’t be winter for an entire year, nor can it be summer for a whole year. It’s impossible. Time is always on the wing. It flies by unnoticed [It changes]. Our surroundings undergo the process of change continuously. Most importantly, we change. You might hear people talking and complaining about someone that changed. We often see such things in our life. “He has changed completely”, “His behavior has changed” etc, etc. It can’t be helped actually. Changing of people is very natural and normal; one cannot remain the same for his whole life. 
Sometimes people are afraid to change. They don’t want to change anything because they do not know how to deal with change. People find themselves in a state of dilemma when it comes to the process of “change”. When things change, they all want it to return to as it was before.
Paulo Coelho said:

“People want to change everything and, at the same time, want it all to remain the same.”

What he said is absolutely true. We want to change the things around us and the world. But sometimes the circumstances are unfavorable. When the circumstances are unfavorable, we need to change ourself.
Changing is not a bad thing. Change yourself, the way you think, the way to react to things. It can really help. But, change in a positive way. In other words, it is a process of improving yourself. Make a list of your bad habits, you flaws etc. Then take steps to rectify them. Know the reason why you want to change. 

Moral Story

Once upon a time there lived a king who ruled a prosperous country. One day, he decided to have a trip to some distant areas of his country. When he came back to his palace after visiting the places, he complained that his feet were throbbing due to pain, because it was the first time he went for such a long trip, and the road he went through was rough and stony. He then ordered his people to cover every road of the entire country with leather.
Definitely, this would need thousands of cows’ skin, and would cost a huge amount of money.
Then one of his wise servants dared himself to tell the king, “Why do you have to spend that unnecessary amount of money? Why don’t you just cut a little piece of leather to cover your feet?”
The king was surprised, but he later agreed to his suggestion, to make a “shoe” for himself.
There is actually a very valuable lesson of life in this moral story: to make this world a happy place to live, you better change yourself – your heart; and not necessarily the world.
READ MORE

Popular Posts