Showing posts with label what. Show all posts
Showing posts with label what. Show all posts
Tuesday, March 3, 2015
What Did They Say! Wednesday! A Linky Party!
I think I could write a novel with all of the funny things my kids say each week! But... since I dont know a publisher Ill do another linky party instead!

This is possibly a story that only tech geeks will appreciate, so it obviously made my day!!
In class we were reviewing words with "w" at the beginning and one student said "windows." Another student excitedly calls out: "I have Windows 7!"
I wanted to reply with "I do too and I love it so much more than I liked Vista!" I honestly dont think he would have understood that response though!
Now... its time to share your cute kids story from this week!
Rules for the Linky Party:
);
Read more »

<div align="center"><a href="http://aturntolearn.blogspot.com/" title="What Did They Say!?"><img src="http://4.bp.blogspot.com/-OIhmtxluCS0/ULwEfazkl1I/AAAAAAAADpM/MMMzxm23B0Y/s320/What+Did+They+Say+Wednesday.png" alt="What Did They Say!?" style="border:none;" /></a></div>
This is possibly a story that only tech geeks will appreciate, so it obviously made my day!!
In class we were reviewing words with "w" at the beginning and one student said "windows." Another student excitedly calls out: "I have Windows 7!"
I wanted to reply with "I do too and I love it so much more than I liked Vista!" I honestly dont think he would have understood that response though!
Now... its time to share your cute kids story from this week!
Rules for the Linky Party:
- Share a story that one of your kids said on your blog! If you dont have a blog, leave a comment with your story!
- Use the HTML code at the top of this post to link back to the post!
- Comment on the two blog posts before yours!
);
Monday, March 2, 2015
What Did They Say Wednesday! Linky Party!
Reason #5,765,432,765 why I love teaching: kids say the funniest and cutest things! I thought it would be so much fun to read all of the things that kids all over the world are saying... so I decided to start a weekly linky party "What Did They Say? Wednesday!"

Here is my "What Did They Say?" story for this week:
In my class this week, one of my little Kindergarten students says in his most serious voice, "Ms. Jessica, theres a problem with one the books Im taking home today." Im fully expecting for one of the books to have a tear in it, yet he pulls a brand new book out of his bag... a book about bats.
I couldnt find a picture of the real book online, but the cover had a picture of a bat on it, like this:

He then says to me, while pointing to the words, "The words of my book go this way," Then, he flips the book upside down and says, "But the bat goes this way. The picture is upside down!" He was pretty convinced that he found a publishing error! I obviously explained to him that bats like to hang upside down... but it was hard to convince him that the book was printed correctly!
Rules for the Linky Party:
);
This linky party will be posted through 11:59pm on Tuesday. On Wednesday, a new linky will be started. I decided to host this as a weekly collection so that we can share numerous stories from our students!
Read more »

<div align="center"><a href="http://aturntolearn.blogspot.com/2012/12/what-did-they-say-wednesday-linky-party.html" title="What Did They Say!?"><img src="http://4.bp.blogspot.com/-OIhmtxluCS0/ULwEfazkl1I/AAAAAAAADpM/MMMzxm23B0Y/s320/What+Did+They+Say+Wednesday.png" alt="What Did They Say!?" style="border:none;" /></a></div>
Here is my "What Did They Say?" story for this week:
In my class this week, one of my little Kindergarten students says in his most serious voice, "Ms. Jessica, theres a problem with one the books Im taking home today." Im fully expecting for one of the books to have a tear in it, yet he pulls a brand new book out of his bag... a book about bats.
I couldnt find a picture of the real book online, but the cover had a picture of a bat on it, like this:

He then says to me, while pointing to the words, "The words of my book go this way," Then, he flips the book upside down and says, "But the bat goes this way. The picture is upside down!" He was pretty convinced that he found a publishing error! I obviously explained to him that bats like to hang upside down... but it was hard to convince him that the book was printed correctly!
Now... its time to share your cute kids story from this week!
Rules for the Linky Party:
- Share a story that one of your kids said on your blog! If you dont have a blog, leave a comment with your story!
- Use the HTML code at the top of this post to link back to the post!
- Comment on the two blog posts before yours!
);
This linky party will be posted through 11:59pm on Tuesday. On Wednesday, a new linky will be started. I decided to host this as a weekly collection so that we can share numerous stories from our students!
Wednesday, February 25, 2015
What Did They Say Wednesday! A Linky Party!
Dont kids say the most hysterical things! Im a little be late in posting this, but Im looking forward to reading everyones stories nonetheless! I cant wait to hear your funny kid story this week!

This weeks story comes from a little kid that cant make the "l" sound... so half of these ws are actually ls.
Student: "My dad is awways being mean to me"
Me: "Why?"
Student: "Hes awways cawwing (always calling) me a swowpoke (slowpoke)"
Me: "Well, do you walk slow sometimes?"
Student: "Yes! But I have wittle wegs! (little legs!)"
I wish I had an audio recording so you could hear how cute she was when she said it!
Rules for the Linky Party:
);
This linky party will be posted through 11:59pm on Tuesday. On Wednesday, a new linky will be started. I decided to host this as a weekly collection so that we can share numerous stories from our students! Im looking forward to reading everyone elses stories!
Read more »

<div align="center"><a href="http://aturntolearn.blogspot.com/2012/12/whatdidtheysay12-26.html" title="What Did They Say!?"><img src="http://4.bp.blogspot.com/-OIhmtxluCS0/ULwEfazkl1I/AAAAAAAADpM/MMMzxm23B0Y/s320/What+Did+They+Say+Wednesday.png" alt="What Did They Say!?" style="border:none;" /></a></div>
This weeks story comes from a little kid that cant make the "l" sound... so half of these ws are actually ls.
Student: "My dad is awways being mean to me"
Me: "Why?"
Student: "Hes awways cawwing (always calling) me a swowpoke (slowpoke)"
Me: "Well, do you walk slow sometimes?"
Student: "Yes! But I have wittle wegs! (little legs!)"
I wish I had an audio recording so you could hear how cute she was when she said it!
Now... its time to share your cute kids story from this week!
Rules for the Linky Party:
- Share a story that one of your kids said on your blog! If you dont have a blog, leave a comment with your story!
- Use the HTML code at the top of this post to link back to the post!
- Comment on the two blog posts before yours!
);
This linky party will be posted through 11:59pm on Tuesday. On Wednesday, a new linky will be started. I decided to host this as a weekly collection so that we can share numerous stories from our students! Im looking forward to reading everyone elses stories!
Tuesday, February 17, 2015
What is Exception Handling in C

While doing programming we come many across errors. Most commonly there are two types of errors, logical errors and syntactical errors. The logical errors occur due to the poor understanding of problem and on the other hand syntactical errors arise due to poor understanding of language.
Many times we face some strange or odd problems other than these two types of errors, these are known as exceptions. Exceptions are the run time unusual conditions that a program may encounter while execution. It might include conditions such as division by zero, out-of-range index, running out of memory, etc.
Also Read: What is Virtual Base Class in C++?
Also Read: C++ Templates: Program to Swap Two Numbers Using Function Template
So we can say that the process of handling these types of exceptional conditions is known as exception handling. This is a new feature added to ANSI C++. Today, almost all compilers support this feature.
The exception handling process includes the following four steps:
1. Find the problem (Hit the exception)
2. Inform that an error has occurred (Throw the exception)
3. Receive the error information (Catch the exception)
4. Take corrective actions (Handle the exception)
Exception Handling Mechanism
C++ exception handling mechanism consists of three keywords, try, throw and catch.
try: The keyword try is used to define a block of statements which may produce exceptions and this block is known as try block.
throw: When an exception is detected, it is thrown using a throw statement in the try block.
catch: This block catches the exception thrown by throw statement in the try block and handles it appropriately. The catch block that catches an exception must immediately come after the try block that throws the exception.
The structure of these two blocks is shown below:
. . . . . .
. . . . . .
try
{
. . . . . .
throw exception //Block of statements which detects and throws an exception
. . . . . .
. . . . . .
}
catch(type arg)
{
. . . . . . //Block of statements that handles the exception
. . . . . .
}
. . . . . .
. . . . . .
When the try block throws an exception, the program control leaves the try block and enters the catch statement of the catch block. Here exception is nothing but an object used to transmit the information about a problem. If the type of object thrown matches the arg type of the catch statement then catch block is executed for handling the exception. If they do not match, the program is aborted with the help of abort() function which is invoked by default. When no exception is detected and thrown, the control goes to the statement immediately after the catch block or we can say catch block is skipped.
Also Read: Java Program to Make a Simple Calculator Using AWT
Also Read: Menu Driven C Program to Perform Insert, Display and Delete Operations on a Singly Linked List (SLL)
A program is given below that will explain you that how actually exception handling is done in C++.
#include<iostream>
using namespace std;
int main()
{
int x,y,z;
cout<<"Enter the values of x and y:";
cin>>x>>y;
z=x-y;
try
{
if(z!=0)
{
cout<<"Result(x/z)="<<x/z;
}
else //division by zero exception
{
throw(z); //throws int object
}
}
catch(int) //catches the exception
{
cout<<"Exception caught: z="<<z;
}
return 0;
}
Outputs of the above program is shown below:
For First Run

For Second Run

If you have any doubts then feel free to ask by commenting below. Please do share if you liked the article.
Source: E Balagurusamy
What is Fake Search Results Virus and How to Fix It
+and+How+to+Fix+It.png)
Unless you’re completely new to the internet, youve had to deal with plenty of annoying spam. These days, spam takes the form of just about anything. It can be in email, social networks, instant messaging, blog comments, QR codes, and just about everything else you can think of. It can be pesky to individuals, and costly to large organizations that need to spend thousands on equipment and software to prevent it.
Recently there’s been a new threat in the world of spam. This time it happens when you click your back button and a page of fake search results shows up. We did some research to get to the bottom of it.
Also Read: Google Gravity: How to Hack Google Homepage (Funny Trick)
Also Read: How to Bypass Cyberoam by using Wayback Machine to Access Blocked Sites on Wi-Fi [100% Working]
What is it?
“Fake search results” is a slightly misleading name for this new kind of spam. When you search Google, there’s nothing fake about what you see. The problem comes after that. Let’s say you visit a page and then try to use the back button to go back to your original search results. When you click the back button, you’ll be directed to a new page that looks quite a bit like search results. However, every link is just an advertisement, usually for the same place. Spammers have found a way to insert pages youve never gone ton into your browsing history.
Why should you care?
If you’re a casual internet browser then you probably already know spam when you see it. You’re not going to respond to an email in broken English telling you an ancestor from a foreign land has left a large sum of money for you that can be transferred once you respond with your bank account number. These fake search results are meant to trick you and can show up when you least expect it.
If you’re a business owner, you want to be even more aware of this spam. Let your employees know what to look for and advise them to never click on anything fishy. The last thing you want is for an employee to click a link with a virus. A quick meeting to explain the risks of spam could save you a lot of money and hassle in the long run.
Also Read: The 12 Best Tools To Protect Your Password
Also Read: How to format an unformatable Pendrive
What can you do if it happens?
Whatever you do, don’t click on the links. Your best bet is to just close the window and start over. It will seem annoying, but it only takes a few seconds. You could try a different browser, but that won’t always work. Plus, if a site is spamming you, you probably don’t want to go back to it. If it upsets you enough, you can report the site to Google.
What is Google going to do?
At this point, we’re not really sure. It looks like they’re not really sure, either. They state on their blog that they may take action on such sites. The key word there is “may.” Notice they’re not promising anything. It could be that they’ll work on a plan to crack down on these sites and completely shut them down. Only time will tell. In the meantime, be smart while you browse the web and be on the lookout for fake search results. Hopefully you won’t see them much longer.
About Author:
Courtney Gordner loves blogging about what is going on with the technology and Freight Broker world.
Image Source: http://www.seoconsultantchennai.co.in/wp-content/uploads/2013/07/fake-search-results.png
Friday, February 13, 2015
What is Slack Byte in Structure
Computer stores structures using the concept of "word boundary". The Size of a word boundary is machine dependent. In computer with two bytes word boundary, the members of a structure are stores left aligned on the word boundary, as shown below. A character data takes one byte and an integer takes two bytes. One byte between them is left unoccupied. This unoccupied byte is known as the slack byte.
Also Read: What is Exception Handling in C++?
Also Read: What is Virtual Base Class in C++?

When we declare structure variables, each one of them may contain slack bytes and the values stored in such slack bytes are undefined. Due to this, even if the members of two variables are equal, their structure do not necessarily compare equal. C, therefore, does not permit compassion of structure. However, we can design our own function that could compare individual members to decide whether the structures are equal or not.
Observe the below program and try to run it.
#include<stdio.h>
struct demo
{
char ch;
float f;
};
void main()
{
struct demo d;
printf("Size=%d",sizeof(d));
}

If we assume size of char and float be 1 byte and 4 bytes respectively. Then according to this the size of structure variable d should be 5 (1+4) bytes. But as you can see in above image the output is 8 bytes. This shows that there are three bytes between them is left unoccupied which is known as slack bytes.
One thing we have to keep in mind that it is not always necessary that a structure variable contains slack bytes.
It may be possible that I have missed something in above tutorial, so let me know about it by commenting below. If you liked above article then don’t forget to comment and share!!
Subscribe to:
Posts (Atom)