Thursday, December 12, 2013

TAX STRUCTURE IN INDIA

TAX STRUCTURE IN INDIA


☑ 1) What r u doing?

Ans. : Business

Tax : PAY: PROFESSIONAL TAX!


☑ 2) What r u doing in Business?

Ans. : Selling the Goods.

Tax : PAY SALES TAX!!


☑3) From where r u getting Goods?

Ans. : From other Area/State/Abroad

Tax : PAY CENTRAL SALES TAX, CUSTOM DUTY & OCTROI! AND NOW LBT & LPT.


☑ 4) What r u getting in Selling Goods?

Ans. : Profit

Tax : PAY INCOME TAX!


How do you distribute profit ?

Ans : By way of dividend

Tax : Pay DIVIDEND DISTRIBUTION TAX.


☑ 5) Where u Manufacturing the Goods?

Ans. : Factory

Tax : PAY EXCISE DUTY!


☑ 6) Do u have Office / Warehouse/ Factory?

Ans. : Yes

Tax : PAY MUNICIPAL & FIRE TAX!


☑7) Do you have Staff?

Ans. : Yes

Tax : PAY STAFF’S PROFESSIONAL TAX!


☑ Doing business in Millions?

Ans. : Yes

Tax : PAY TURNOVER TAX!

Ans : No

Tax : Then pay Minimum Alternate Tax (MAT).


☑ 9) r u taking out over 25,000 Cash from Bank?

Ans. : Yes, for Salary.

Tax : PAY CASH HANDLING TAX!


☑ 10) Where r u taking your client for Lunch & Dinner?

Ans. : Hotel

Tax : PAY FOOD & ENTERTAINMENT TAX!


☑11) r u going Out of Station for Business?

Ans. : Yes

Tax : PAY FRINGE BENEFIT TAX!


☑12) Hav u taken or given any Service/s?

Ans. : Yes

Tax : PAY SERVICE TAX!


☑ 13) How come u got such a Big Amount?

Ans. : Gift on birthday

Tax : PAY GIFT TAX!


☑ 14) Do u have any Wealth?

Ans. : Yes

Tax : PAY WEALTH TAX!


☑ 15) To reduce Tension, for entertainment, where are you going?

Ans. : Cinema or Resort

Tax : PAY ENTERTAINMENT TAX!


☑ 16) Hav u purchased House?

Ans. : Yes

Tax : PAY STAMP DUTY & REGISTRATION FEE !


☑17) How u Travel?

Ans. : Bus

Tax : PAY SURCHARGE!


☑18) Any Additional Tax?

Ans. : Yes

Tax : PAY EDUCATIONAL, ADDITIONAL EDUCATIONAL & SURCHARGE ON ALL THE CENTRAL GOVT.’s TAX !!!


☑ 19) Delayed any time Paying Any Tax?

Ans. : Yes

Tax : PAY INTEREST & PENALTY!


☑20) Do you want growth of india.?

Ans: offcource Yes .


Pay electricity tax,water tax, education tax, & other tax ,which is used by defulter people.


☑21) INDIAN :: can i die now??

Ans :: wait we are about to launch the FUNERAL TAX….!!!!!!

Jago indian jago….

varna yaha saans lene par bhi tax lagega



TAX STRUCTURE IN INDIA

Horoscope 2013 - Funny one

Horoscope 2013


SCARILY TRUE!!!




AN ACCURATE HOROSCOPE FOR THE WHOLE YEAR 2013!


This is the real deal. Try ignoring it, and the first thing you’ll notice is having a horrible day starting tomorrow morning, and it only gets worse from there.


ARIES – The Aggressive (March 21 to April 19)

Outgoing. Lovable. Spontaneous. Not one to mess with. Funny… Excellent kisser. EXTREMELY adorable. Loves relationships, and family is very important to an Aries. Aries are known for being generous and giving. Addictive. Loud. Always has the need to be ‘Right’. Aries will argue to prove their point for hours and hours. Aries are some of the most wonderful people in the world. 16 years of bad luck if you do not share this post


TAURUS – The Tramp (April 20 to May 20)

Aggressive. Loves being in long relationships. Likes to give a good fight. Fight for what they want. Can be annoying at times, but for the love of attention. Extremely outgoing. Loves to help people in times of need. Good kisser. Good personality. Stubborn. A caring person. They can be self-centered and if they want something they will do anything to get it. They love to sleep and can be lazy. One of a kind. Not one to mess with. Are the most attractive people on earth! 15 years of bad luck if you do not share this post.


GEMINI – The Twin (May 21 to June 20)

Nice. Love is one of a kind. Great listeners. Very good at confusing people. Lover not a fighter, but will still knock you out. Geminis will not take any crap from anyone. Geminis like to tell people what they should do and get offended easily. They are great at losing things and are forgetful. Geminis can be very sarcastic and childish at times and are very nosy. Trustworthy. Always happy. VERY Loud. Talkative. Outgoing. VERY FORGIVING. Loves to make out. Has a beautiful smile. Generous. Strong. THE MOST IRRESISTIBLE. 9 years of bad luck if you do not share this post.


CANCER – The Beauty (June 21 to July 22)

MOST AMAZING KISSER. Very high appeal. A Cancer’s love is one of a kind… Very romantic. Most caring person you will ever meet in your life. Entirely creative person, most are artists and insane, respectfully speaking. They perfected sex and do it often. Extremely random. An ultimate freak. Extremely funny and is usually the life of the party. Most Cancers will take you under their wing and into their hearts where you will remain forever. Cancers make love with a passion beyond compare. Spontaneous. Not a fighter, but will kick your ass good if it comes down to it. Someone you should hold on to! 12 years of bad luck if you do not share this post.


LEO – The Lion (July 23 to August 22)

Great talker. Attractive and passionate. Laid back. Usually happy but when unhappy tend to be grouchy and childish. A Leo’s problem becomes everyone’s problem. Most Leos are very predictable and tend to be monotonous. Knows how to have fun. Is really good at almost anything. Great kisser. Very predictable. Outgoing. Down to earth. Addictive. Attractive. Loud. Loves being in long relationships. Talkative. Not one to mess with. Rare to find. Good when found. 7 years of bad luck if you do not share this post


VIRGO – The One that Waits (August 23 to September 22)

Dominant in relationships. Someone loves them right now. Always wants the last word. Caring. Smart. Loud. Loyal. Easy to talk to. Everything you ever wanted. Easy to please. A pushover. Loves to gamble and take chances. Needs to have the last say in everything. They think they know everything and usually do. Respectful to others but you will quickly lose their respect if you do something untrustworthy towards them and never regain respect. They do not forgive and never forget. The one and only. 7 years of bad luck if you do not share this post.


LIBRA – The Lame One (September 23 to October 22)

Nice to everyone they meet. Their love is one of a kind. Silly, funny and sweet. Have own unique appeal. Most caring person you will ever meet! However, not the kind of person you want to mess with… you might end up crying. Libras can cause as much havoc as they can prevent. Faithful friends to the end. Can hold a grudge for years. Libras are someone you want on your side. Usually great at sports and are extreme sports fanatics. Very creative. A hopeless romantic. 9 years of bad luck if you do not share this post.


SCORPIO – The Addict (October 23 to November 21)

EXTREMELY adorable. Loves to joke. Very good sense of humor. Will try almost anything once. Loves to be pampered. Energetic. Predictable. GREAT kisser. Always get what they want. Attractive. Loves being in long relationships. Talkative. Loves to party but at times to the extreme. Loves the smell and feel of money and is good at making it but just as good at spending it! Very protective over loved ones. HARD workers. Can be a good friend but if is disrespected by a friend, the friendship will end. Romantic. Caring. 4 years of bad

Luck if you do not share this post.


SAGITTARIUS – The Promiscuous One (November 22 to December 21)

Spontaneous. High appeal. Rare to find. Great when found. Loves being in long relationships. So much love to give. A loner most of the time. Loses patience easily and will not take crap. If in a bad mood stay FAR away. Gets offended easily and remembers the offense forever. Loves deeply but at times will not show it, feels it is a sign of weakness. Has many fears but will not show it. VERY private person. Defends loved ones with all their abilities. Can be childish often. Not one to mess with. Very pretty. Very romantic. Nice to everyone they meet. Their Love is one of a kind. Silly, fun and sweet. Have own unique appeal. Most caring person you will ever meet! Amazing in bed!!! Not the kind of person you want to mess with- you might end up crying. 4 years of bad luck if you do not share this post.


CAPRICORN – The Passionate Lover (December 22 to January 19)

Love to bust. Nice. Sassy. Intelligent. Sexy. Grouchy at times and annoying to some. Lazy and love to take it easy, but when they find a job or something they like to do they put their all into it. Proud, understanding and sweet. Irresistible. Loves being in long relationships. Great talker. Always gets what he or she wants. Cool. Loves to win against other signs in sports, especially Gemini’s. Likes to cook but would rather go out

To eat at good restaurants. Extremely fun. Loves to joke. Smart. 24 years of bad luck if you do not share this post.


AQUARIUS – Does It in the Water (January 20 to February 18)

Trustworthy. Attractive. Great kisser. One of a kind. Loves being in long-term relationships. Tries hard. Will take on any project. Proud of themselves in whatever they do. Messy and unorganized. Procrastinators. Great lovers, when they’re not sleeping. Extreme thinkers. Loves their pets usually more than their family. Can be VERY irritating to others when they try to explain or tell a story. Unpredictable. Will exceed your expectations. Not a fighter, but will knock your lights out. 2 years of bad luck if you do not share this post.


PISCES – The Partner for Life (February 19 to March 20)

Caring and kind. Smart. Likes to be the center of attention. Very organized. High appeal to opposite sex. Likes to have the last word. Good to find, but hard to keep. Passionate, wonderful lovers. Fun to be around. Too trusting at times and gets hurt easily. VERY caring. They always try to do the right thing and sometimes get the short end of the stick. They sometimes get used by others and get hurt because of their trusting. Extremely weird but in a good way. Good sense of humor!! Thoughtful. Loves to joke. Very popular. Silly, fun and sweet. Good friend to others but needs to be choosy on who they allow their friends to be. 5 years of bad luck if you do not share this post.


THANK YOU TO “TRUE PEOPLE R TRUE LOVER” FOR THIS POST!!!



Horoscope 2013 - Funny one

Learn HTML 5 - Structure Part 2 First HTML5 Webpage

Learn HTML 5 - Structure Part 2 First HTML5 Webpage


Learn HTML 5 – Structure Part 2 First HTML5 Webpage


Here is an example of one of the simplest HTML5 documents you can create. It starts with the HTML5 doctype, followed by a page title and then followed by some content, in this case a single paragraph.


<!DOCTYPE html>
<html>
<body>

<h1>My First Heading</h1>

<p>My first paragraph.</p>

</body>
</html>

Explanation


  • The DOCTYPE declaration defines the document type

  • The text between <html> and </html> describes the web page

  • The text between <body> and </body> is the visible page content

  • The text between <h1> and </h1> is displayed as a heading

  • The text between <p> and </p> is displayed as a paragraph

Result would be like below :


HTML5 First Demo


HTML Tags


HTML markup tags are usually called HTML tags


  • HTML tags are keywords (tag names) surrounded by angle brackets like <html>

  • HTML tags normally come in pairs like <b> and </b>

  • The first tag in a pair is the start tag, the second tag is the end tag

  • The end tag is written like the start tag, with a forward slash before the tag name

  • Start and end tags are also called opening tags and closing tags


<tagname>content</tagname>

What is the DOCTYPE for?


But why is there a doctype at all? All browsers have two different ways of reading your document – standard mode and quirks mode. If you don’t tell them what kind of document they are handling, the will go into quirks mode. Think of this as the old way of reading your document – there might be some flaws and you can be sure that not all browsers read your document the same way. Declaring a doctype forces the browsers to go into standard mode – the “new” way of reading your document. Using standard mode, most browsers will read your document the same way and they will actually understand what you are writing.


To make the HTML5 document easier for yourself to understand, you would want to use the two section-elements <head> and <body>. Using these sections you clearly separate the information about your page (the head) from the actual content (body)


HTML Page Structure


Below is a visualization of an HTML page structure:
HTML Page Structure


HTML Versions


Since the early days of the web, there have been many versions of HTML:




















VersionYear
HTML1991
HTML+1993
HTML 2.01995
HTML 3.21997
HTML 4.011999
XHTML 1.02000
HTML52012
XHTML52013

Learn HTML 5 - Structure Part 2 First HTML5 Webpage

Learn HTML 5 - Structure of HTML

Learn HTML 5 - Structure of HTML


Learn HTML 5 – Structure of HTML


Before starting to use HTML it is important that you understand the structure of HTML. As HTML is a markup language, you use it to mark up different parts of your content – kind of like when you are using a highlighter.


HTML Elements


HTML is constructed of elements and it is these elements you use to do your markup. Below is an example of how you could mark up a regular text-paragraph.


<p>This paragraph is part of my content</p>

What we have here is a sentence (”This paragraph is part of my content”) which have been placed between <p> and </p>. The <p> and the </p> is called tags. Every tag consists of a <, an abbreviation, and a >. In this case, p is an abbreviation for paragraph. Combined, the <p> and the </p> tags create an element. Every HTML-element starts with an opening tag (in this case, that is <p>) and most have a closing tag (that is </p>). Inside the opening and the closing tag of your element is the actual content.


Empty Elements


Most HTML-elements looks like the <p></p> element, but some are what we call empty elements. The line-break element is such one and looks like this:


<br />

As you can see, there is no closing tag and the element do not contain any content, therefore it is called an empty element. Because this is an empty element it is closed at the end of the tag – that’s the /. You don’t have to use the ”/” at the end of an empty element, but it is considered good practice, so you might as well get used to it.


When the browsers read your HTML5 document they don’t care whether or not you write your tags in uppercase or lower case. But other developers do! Even though you could write the same linebreak-tag in a lot of different ways


It is considered good practice to write all your tags in lowercase – in increases readability, and it is just considered good craftsmanship to write your tags this way.


What you have learned so far:


  • An HTML element starts with a opening tag

  • An HTML element ends with a closing tag

  • A HTML tag starts with a < and ends with a >

  • The letters between the < and > are abbreviations

  • The element content is everything between the start tag and the end tag

  • Some HTML elements are empty

  • Empty elements are closed in the start tag

  • Make it a habbit to type all your tags in lowercase – it is considered good practice


Learn HTML 5 - Structure of HTML

Learn HTML5 - Introduction

Learn HTML 5 - Introduction


Learn HTML 5 – Introduction


Before Knowing HTML 5 Lets see what HTML is.


What is HTML?


HTML is a markup language used to describing the simplest form of webpages. It is the main markup language for webpages. HTML is an abbreviation and stand for HyperText Markup Language. When a webbrowser such as Internet Explorer, FireFox or Chrome displays a webpage, what it is actually doing is reading and interpreting a HTML document. This document could be as short as 10 lines or as long as several hundred, the browser does not care – all it does is read your document.


And this is the main purpose of the HTML – to make the content of the HTML-document accessible to the webbrowsers. Aside from making your content accessible to the webbrowser, HTML also add semantics to you content – this means that the webbrowsers and search engines knows what type of content you’ve put up on your webpage and hereby they know how to handle the content.


Basically, the purpose of HTML is to add meaning to you webpages (some believe that HTML is supposed to affect the look of you webpage, but that is mostly a question of religion and we will look into it later on) so that the browser can show it.


Now What is HTML 5 ?


Then what is the difference between regular HTML and HTML5? We will look into this question throughout the tutorial, but one thing that is important to note is, that anything you might have learned about HTML is still valid when it comes to HTML5 – you don’t have to throw anything away.


HTML5 consists of a whole lot of new features and we will look into the individual features along the way. But actually, HTML5 is not the just the fifth version of HTML – HTML5 was originally created by a group of people who was not in charge of the official HTML standard. To understand the coverage of HTML5 is no easy job – the real problem is, that a lot of people use the term HTML5 when what they actually are referring to is ”HTML5 and all its related standards, such as CSS3”.


In this tutorial the focus will be on the core HTML5 features and who you use them and where they differ from ”the old” HTML.


When using HTML5 you need to know that not all the new features are supported by all browsers –Different browsers support different features and therefore you will have to do some tricks to make some of the elements of HTML5 work correctly.


But one thing is for sure – HTML5 is the future, that how webpages are going to be build, Apple and Google support a great deal of HTML5 features already, The World Wide Web Consortium has given up their own work of the next generation of xHTML to support HTML5, so let’s get started!


Next –> Structure of HTML



Learn HTML5 - Introduction

Threading in C# Part -6

Threading in C# Part -6


Threading in C# Part -6


This is in the continuation of previous five Posts:
Threading in C# Part -1
Threading in C# Part -2
Threading in C# Part -3
Threading in C# Part -4
Threading in C# Part -5


Synchronization


So far, we have described how to start a task on a thread, configure a thread, and pass data in both directions. We have also described how local variables are private to a thread and how references can be shared among threads, allowing them to communicate via common fields.


The next step is synchronization: coordinating the actions of threads for a predictable outcome. Synchronization is particularly important when threads access the same data; it’s surprisingly easy to run aground in this area.


Synchronization constructs can be divided into four categories:


Simple blocking methods

These wait for another thread to finish or for a period of time to elapse. Sleep, Join, and Task.Wait are simple blocking methods.


Locking constructs

These limit the number of threads that can perform some activity or execute a section of code at a time. Exclusive locking constructs are most common — these allow just one thread in at a time, and allow competing threads to access common data without interfering with each other. The standard exclusive locking constructs are lock (Monitor.Enter/Monitor.Exit), Mutex, and SpinLock. The nonexclusive locking constructs are Semaphore, SemaphoreSlim, and the reader/writer locks.


Signaling constructs

These allow a thread to pause until receiving a notification from another, avoiding the need for inefficient polling. There are two commonly used signaling devices: event wait handles and Monitor’s Wait/Pulse methods. Framework 4.0 introduces the CountdownEvent and Barrier classes.


Nonblocking synchronization constructs

These protect access to a common field by calling upon processor primitives. The CLR and C# provide the following nonblocking constructs: Thread.MemoryBarrier, Thread.VolatileRead, Thread.VolatileWrite, the volatile keyword, and the Interlocked class.

Blocking is essential to all but the last category


Blocking


A thread is deemed blocked when its execution is paused for some reason, such as when Sleeping or waiting for another to end via Join or EndInvoke. A blocked thread immediately yields its processor time slice, and from then on consumes no processor time until its blocking condition is satisfied. You can test for a thread being blocked via its ThreadState property:


bool blocked = (someThread.ThreadState & ThreadState.WaitSleepJoin) != 0;

When a thread blocks or unblocks, the operating system performs a context switch. This incurs an overhead of a few microseconds.


Unblocking happens in one of four ways (the computer’s power button doesn’t count!):


  • by the blocking condition being satisfied

  • by the operation timing out (if a timeout is specified)

  • by being interrupted via Thread.Interrupt

  • by being aborted via Thread.Abort

A thread is not deemed blocked if its execution is paused via the (deprecated) Suspend method.


Blocking Versus Spinning


Sometimes a thread must pause until a certain condition is met. Signaling and locking constructs achieve this efficiently by blocking until a condition is satisfied. However, there is a simpler alternative: a thread can await a condition by spinning in a polling loop. For example:


while (!proceed);

or:


while (DateTime.Now < nextStartTime);


In general, this is very wasteful on processor time: as far as the CLR and operating system are concerned, the thread is performing an important calculation, and so gets allocated resources accordingly!


Sometimes a hybrid between blocking and spinning is used:


while (!proceed) Thread.Sleep (10);

Although inelegant, this is (in general) far more efficient than outright spinning. Problems can arise, though, due to concurrency issues on the proceed flag. Proper use of locking and signaling avoids this.


ThreadState


You can query a thread’s execution status via its ThreadState property. This returns a flags enum of type ThreadState, which combines three “layers” of data in a bitwise fashion. Most values, however, are redundant, unused, or deprecated. The following diagram shows one “layer”:
ThreadState

The following code strips a ThreadState to one of the four most useful values: Unstarted, Running, WaitSleepJoin, and Stopped:


public static ThreadState SimpleThreadState (ThreadState ts)

ThreadState.WaitSleepJoin

The ThreadState property is useful for diagnostic purposes, but unsuitable for synchronization, because a thread’s state may change in between testing ThreadState and acting on that information.


Locking


Exclusive locking is used to ensure that only one thread can enter particular sections of code at a time. The two main exclusive locking constructs are lock and Mutex. Of the two, the lock construct is faster and more convenient. Mutex, though, has a niche in that its lock can span applications in different processes on the computer.



In DotNetFramework 4.0, there is also the SpinLock struct for high-concurrency scenarios.

Let’s start with the following class:


class ThreadUnsafe

static int _val1 = 1, _val2 = 1;

static void Go()

if (_val2 != 0) Console.WriteLine (_val1 / _val2);
_val2 = 0;


This class is not thread-safe: if Go was called by two threads simultaneously, it would be possible to get a division-by-zero error, because _val2 could be set to zero in one thread right as the other thread was in between executing the if statement and Console.WriteLine.


Here’s how lock can fix the problem:


class ThreadSafe

static readonly object _locker = new object();
static int _val1, _val2;

static void Go()

lock (_locker)

if (_val2 != 0) Console.WriteLine (_val1 / _val2);
_val2 = 0;



Only one thread can lock the synchronizing object (in this case, _locker) at a time, and any contending threads are blocked until the lock is released. If more than one thread contends the lock, they are queued on a “ready queue” and granted the lock on a first-come, first-served basis (a caveat is that nuances in the behavior of Windows and the CLR mean that the fairness of the queue can sometimes be violated). Exclusive locks are sometimes said to enforce serialized access to whatever’s protected by the lock, because one thread’s access cannot overlap with that of another. In this case, we’re protecting the logic inside the Go method, as well as the fields _val1 and _val2.


A thread blocked while awaiting a contended lock has a ThreadState of WaitSleepJoin. In Interrupt and Abort, we describe how a blocked thread can be forcibly released via another thread. This is a fairly heavy-duty technique that might be used in ending a thread.





























A Comparison of Locking Constructs
ConstructPurposeCross-process?Overhead*
lock (Monitor.Enter /Monitor.Exit)Ensures just one thread can access a resource, or section of code at a time-20ns
MutexYes1000ns
SemaphoreSlim  (introduced in Framework 4.0)Ensures not more than a specified number of concurrent threads can access a resource, or section of code-200ns
SemaphoreYes1000ns
ReaderWriterLockSlim (introduced in Framework 3.5)Allows multiple readers to coexist with a single writer-40ns
ReaderWriterLock  (effectively deprecated)-100ns
*Time taken to lock and unlock the construct once on the same thread (assuming no blocking), as measured on an Intel Core i7 860.

Monitor.Enter and Monitor.Exit


C#’s lock statement is in fact a syntactic shortcut for a call to the methods Monitor.Enter and Monitor.Exit, with a try/finally block. Here’s (a simplified version of) what’s actually happening within the Go method of the preceding example:


Monitor.Enter (_locker);
try

if (_val2 != 0) Console.WriteLine (_val1 / _val2);
_val2 = 0;

finally Monitor.Exit (_locker);

Calling Monitor.Exit without first calling Monitor.Enter on the same object throws an exception.


The lockTaken overloads

The code that we just demonstrated is exactly what the C# 1.0, 2.0, and 3.0 compilers produce in translating a lock statement.


There’s a subtle vulnerability in this code, however. Consider the (unlikely) event of an exception being thrown within the implementation of Monitor.Enter, or between the call to Monitor.Enter and the try block (due, perhaps, to Abort being called on that thread — or an OutOfMemoryException being thrown). In such a scenario, the lock may or may not be taken. If the lock is taken, it won’t be released — because we’ll never enter the try/finally block. This will result in a leaked lock.


To avoid this danger, CLR 4.0’s designers added the following overload to Monitor.Enter:


public static void Enter (object obj, ref bool lockTaken);

lockTaken is false after this method if (and only if) the Enter method throws an exception and the lock was not taken.


Here’s the correct pattern of use (which is exactly how C# 4.0 translates a lock statement):


bool lockTaken = false;
try

Monitor.Enter (_locker, ref lockTaken);
// Do your stuff...

finally if (lockTaken) Monitor.Exit (_locker);


Threading in C# Part -6

Wednesday, December 11, 2013