Monday, 29 January 2018

5 Essential JavaScript Functions for website development

JavaScript is a programming language that helps you to implement complex things

on web pages.




JavaScript provides basic features, like addEventListener and attachEvent And the Followings are 5 important JavaScript Functions


 1) Debounce:- The debounce function can be a think of changer when it comes to event-fueled performance.  If you are not using a debouncing function with a scroll, resize, key-event, Here is a debounce function to keep your code efficient-
 function debounce(func, wait, immediate)
{
var timeout;
return function()
{
var context = this, args = arguments;
var later = function() {
timeout = null;
if (!immediate) func.apply(context, args);
};
var callNow = immediate && !timeout;
clearTimeout(timeout);
timeout = setTimeout(later, wait);
if (callNow) func.apply(context, args);
};
};
// Usage
var myEfficientFn = debounce(function()
// All the taxing stuff you do
}, 250);
window.addEventListener('resize', myEfficientFn);

2) Poll:-  As we mentioned with the debounce function, sometimes you do not get to plug into an event to signify the desired stat. if the event doesn't exist so you need to check for your desired state at intervals-


// The polling function
function poll(fn, timeout, interval) {
var endTime = Number(new Date()) + (timeout || 2000);
interval = interval || 100;
var checkCondition = function(resolve, reject) {
// If the condition is met, we're done!
var result = fn();
if(result) {
resolve(result);
}
// If the condition isn't met but the timeout hasn't elapsed, go again
else if (Number(new Date()) < endTime) {
setTimeout(checkCondition, interval, resolve, reject);
}
// Didn't match and too much time, reject!
else {
reject(new Error('timed out for ' + fn + ': ' + arguments));
}
};
return new Promise(checkCondition);
}
// Usage:  ensure element is visible
poll(function() 
{
return document.getElementById('lightbox').offsetWidth > 0;
}, 2000, 150).then(function() 
{
// Polling done, now do something else!
}).catch(function() 
{
// Polling timed out, handle the error!
});

3) Once:- There are times when you prefer a given functionality only happen once similar to the way you did use an onload event.  This code provides you said functionality-


function once(fn, context) {
var result;
return function() {
if(fn) {
result = fn.apply(context || this, arguments);
fn = null;
}
return result;
};
}
// Usage
var canOnlyFireOnce = once(function() {
console.log('Fired!');
});
canOnlyFireOnce(); // "Fired!"
canOnlyFireOnce(); // nada

4) getAbsoluteUrl:- Getting an absolute URL from a variable string is not as easy.  There is the URLconstructor but it can act up if you do not provide the required arguments (which sometimes). Here is code that helps you-


var getAbsoluteUrl = (function() {
var a;
return function(url) {
if(!a) a = document.createElement('a');
a.href = url;
return a.href;
};
})();
// Usage
getAbsoluteUrl('/something');

5) isNative:- Knowing if a given function is native or not can signal if your willing to override it.

 

;(function() {
// Used to resolve the internal `[[Class]]` of values
var toString = Object.prototype.toString;
// Used to resolve the decompiled source of functions
var fnToString = Function.prototype.toString;
// Used to detect host constructors (Safari > 4; really typed array specific)
var reHostCtor = /^\[object .+?Constructor\]$/;
// Compile a regexp using a common native method as a template.
// We chose `Object#toString` because there's a good chance it is not being mucked with.
var reNative = RegExp('^' +
// Coerce `Object#toString` to a string
String(toString)
// Escape any special regexp characters
.replace(/[.*+?^${}()|[\]\/\\]/g, '\\$&')
// Replace mentions of `toString` with `.*?` to keep the template generic.
 // Replace thing like `for ...` to support environments like Rhino which add extra info
// such as method arity.
.replace(/toString|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$'
);
function isNative(value) {
var type = typeof value;
return type == 'function'
// Use `Function#toString` to bypass the value's own `toString` method
// and avoid being faked out.
? reNative.test(fnToString.call(value))
// Fallback to a host object check because some environments will represent
// things like typed arrays as DOM methods which may not conform to the
// normal native pattern.
: (value && type == 'object' && reHostCtor.test(toString.call(value))) || false;
}
// export however you want
module.exports = isNative;
}());
// Usage
isNative(alert); // true
isNative(myCustomFunction); // false

Thursday, 5 October 2017

Difference between Photoshop and illustrator


By
Pranita,

Photoshop and Illustrator are two of Adobe's popular graphics tools. If you're working on a new project, you might have a hard time figuring out which of the two programs will work best for you, since on the surface they seem so similar. We've jot down some of the main differences between Photoshop and Illustrator.



Photoshop :-
Adobe Photoshop is a great program for modifying already created images or graphics, like photos, and is Adobe's most popular program. Raster or bitmap graphics are created in Photoshop. These graphics can sometimes look a little rough since raster images are made up of individual colored squares, known as pixels. Everything in Photoshop is just a series of pixels, so if you're scaling something up or down, it can lose its quality very quickly. Photoshop is a best option for web graphics, photo editing and designs since those projects will stay at a fixed size. Editing photos is awesome in Photoshop, because it includes a lot of unique filters, special effects and tools. Another advantage of Photoshop is that you can have complete control of your projects, since you can edit your graphic pixel-by-pixel.

Illustrator :-
Adobe Illustrator is advanced vector-based software. So, unlike Photoshop's pixel-based format, it uses mathematical constructs to create vector graphics. In Illustrator, a line is composed of two points connected by a computer algorithm, instead of just a line of pixels. Because of this, Illustrator is used often to create logos or anything that may need to be printed or displayed at different sizes. Illustrator will also give you a better print output since it's not relying on resolution. A drawback of Illustrator is that it can't be used easily to modify images that are already created, since there are limited filters and image editing tools available to you.

Conclusion:-

You'll come to find that some people just prefer to use one software over another, but sometimes it's best to use Photoshop and Illustrator parallelly. For example, you may need to add some text to an image you need to edit. Maybe you need to add a watermark to a photo for your blog or over an image for your portfolio. It's best not to add any text to an image in Photoshop since it can distort, so transferring the edited photo to Illustrator and then adding the text there will give you the best result. One is definitely not better than the other, they're just different. Analyzing the basic differences between Photoshop and Illustrator will help you make the closure about which software is best for your next project.

Tuesday, 12 September 2017

Digital Marketing can Boost your Business

By
Sujata,

The digital marketing is the best way to share our ideas
 using the Digital marketing  we can easily reach to the people.
Social media is the online communications channels dedicated to community-based input, interaction, content-sharing and collaboration.



Social media marketing (SMM) taken advantage of social networking to help the company to increase  brand The goal is create content  that users will share it on  social network
 social media makes it easy to tell a company and everyone else about their experiences with that company whether those experiences is good or bad.  Internally social media apps can help more to employees for accessing and easy to get information and resources witch they want they need to work together effectively and solve business problems according to the client requirement .

 Brand Recognition:-
Your social media networks are just new channels for your brand’s and content. this is the important because it is makes you easier to use and comfortable for any new customers, and makes you more familiar for  the  customers. For example, a frequent Twitter user could hear about your company for the first time only after stumbling upon it in a newsfeed.

brand loyalty:-
As per the report which is  published by  Texas Tech University, brands who is on social media channels enjoy loyalty from their customers. The report conclusion   “Companies should have to take more advantage from  the tools social media gives them when it comes to connecting with their audience. The most of the  Americans who follow brands in social are more loyal to those brands.

 Opportunities :- Every post you make on a social media it is good  platform or an  opportunity for customers to convert. When you build a following, you will simultaneously have to  access all type of customers new customers, recent customers, and old customers, and you will be able to interact similarly with all of the customer Every blog post, images, videos, or comments you share is a chance for someone to react, and every reaction could lead to a site visit, and eventually a conversion.  

 Marketing Costs:-
According to  the Hub spot, 84% of marketers required at least six hours of effort per week was enough to generate and  increased traffic . If you can spend just one hour a day to developing your content and syndication strategy, you could start seeing the results of your efforts. Even advertising through the Facebook and Twitter is relatively cheap (depending on your goals, of course). Start small and you will never have to worry about going over budget once you get a better feel for what to expect, you can increase your budget and increase your conversions as per your need.
Social media is an opportunity to publicly demonstrate your customer service level and  relationship with your customers on social media.
Social media is all about relationship building, and it going  to grow  as your followers tell their friends, and their friends tell their friends, and so on. The as possible as soon you start, it will be able to start growing that audience.

Tuesday, 8 August 2017

Effective ways to Communicate with Business Prospects

By
Chaitali,

One of the most critical parts of closing a sales deal is how you communicate with your prospect. We’ve seen situations where we (Ziuby) have competed against some of the top companies and won the project simply through the power of effective communication. What’s our little secret to effective communication? Well, read on as we spill the beans and help you explore some ways to communicate effectively that every company should keep in mind while dealing with a client.



Introduce: We’ve heard many amateur sales people start off a telephonic conversation with ‘‘Hi! My name is Mr. X and I work at Blah Blah Company. My colleague told me you need help with so and so services, so tell me how can I help you?” We Ziuby hate it when someone talks to a prospect like this. So letting go of one of our well kept secrets, let us help you, the star salesmen of tomorrow, learn the art of introducing yourself. When you get on to a call with a prospect, take some time to introduce yourself and your company before you proceed to the next stage. Let them know that they are talking to a sane human and not some brainless zombie who is only concerned about sealing the deal and achieve his sales target.

Understand what they do and what they want: You have talked enough about yourself. Now is the time to understand who your clients are, what they do and what they want? It’s really important to understand your customers’ needs at the beginning of the project so that you both are on the same page. Besides, understanding their business from them would help you understand their needs better and deliver as per their expectations.

Listen: And we don’t just mean listening from the ears but also from your mind. Give your prospects the room to talk and express themselves and do not interrupt. Listening to your prospect’s needs would:

-  Give you a clear picture of his needs

- Help you decide whether his requirements compliment your business’ strategic goals

- Allow you to promise only what you can deliver

Make him comfortable: It is very important for your prospect to feel comfortable while speaking with you. One of the most important traits of a great sales person is to have the ability to easily break the ice with a prospect. Master this and you will substantially increase the probability of earning a project.
Think of this like starting a relationship. When you approach a girl and want to ask her out, you just don’t go to her and tell her so. You start by breaking the ice and take your time to make her comfortable so that she can trust you. A prospect is very similar to that girl; you can’t keep peeping into his pocket all the time. Treat a prospect with respect, take it slow, earn his trust and you have laid the foundation for a long-lasting relationship.

Avoid Jargons: Always remember that you are not talking to your colleague but with someone who may be completely unaware of your industry. Avoid jargons and talk in plain English (or whatever language your prospect speaks) to make your prospect feel comfortable.

Take notes: No use of talking to a prospect/client if you can’t remember a darn thing after two days. Make it a habit to write the important things down while you talk, so you can recollect everything that was said and the promises you made (using this technique with your wife can be pretty effective as well!). Also, try not to take notes on your computer; it could produce an annoying keyboard-hitting sound. Always keep a notepad and pen handy to jot down the important points.

Probe, probe, and probe – Many a times we hesitate to ask questions because we think that might make us look like an idiot. Our advice: It’s better to ask a dumb question than to correct a dumb mistake. By not asking questions and assuming things you may create a situation in the future where your assumptions (those you made by not asking questions) differ from your client’s expectations. Problems are sure to arise if the two of you are not on the same page.





Thursday, 3 August 2017

6 Guidelines to choose a great domain name


By
Shital,

Stick with .Com’s : Companies targeting specific geographical regions may prefer to register a local domain name (.co.in, .it, .cn) while organizations might want to register a .org domain. However, if you don’t fall in either of the two categories, a .com domain should always be your first choice since most of the people make an assumption that the website would be a .com.

KISS (Keep it simple silly) : Keep the domain name simple and easy to remember. Do keep in mind the following while selecting a name for your site:
  - Avoiding Hyphens, underscores, numbers, short forms or any such thing that can possibly confuse your target audience.

Easy to remember : www.ohwowican’trememberyourdomainname.com – Do not buy a domain name that gets people to scratch their head. Your business can lose so many visitors just because of a complex domain name. For example onli9marketing.com may look cool but it’s a really complex domain name which may confuse people and send them to your competitor’s website because they are simply tired trying to remember the exact domain name.

Ahh, that sounds familiar : Buying a domain name which sounds familiar to an existing domain, or which can be replicated easily by rearranging few letters, is a recipe for disaster. Just imagine, you work day-in-day-out to build a really successful business with a domain name ‘www.startupnews.com’ and one fine day, one of your competitors starts the same business with a domain name ‘www.startupnewz.com’. What happens then? Well, that newbie in the business steals a lot of worthy traffic from your website because you left a gap open.

Word of Advice : If you really like a domain name which can be replicated by slightly twisting the alphabets then it’s better to buy the closest variations as well. This way you can make sure that your competitors don’t steal your site traffic even if your target audience mistypes the domain name (In the above case one should buy ‘startupnews.com’ and ‘startupnewz.com’, just to avoid the confusion).
 
Avoid Copyright Infringement : Businesses usually do not make this mistake, but it’s better to be safe when buying a domain name. Copyright infringement can literally kill a great domain name and your business too. Visit copyright.gov to ensure that you are not infringing anyone’s copyright.

No Spammy domain names : Domain name should be such that helps you build your brand. For example, a domain name like ‘seo-expert-london.com’ can help your website a little to rank on the first page of Google for keywords like ‘SEO expert in London’, ‘ SEO expert London’ but seriously guys is it the kind of name that you want to live with? Not only do these kinds of brand names look spammy but they also have little or negligible branding value.

These were a few rules you must keep in mind to launch a great business website. So, start brainstorming the keywords for your website right away! You can visit www.godaddy.com to quickly check out the availability of a particular domain name and buy it. Isn’t it simple?












 



Saturday, 29 July 2017

The art of getting what you want

By,
Neha





The art of getting what you want in life. The main question arises is that How do we get what we want in life and in work? This question carry many of our behaviors and habits. There is always a high level of awareness to which you are unfamiliar. At this level all your wishes can be fulfilled.

The Following points are to get Help to what you want from our Life-
1) Find What we Want – The First step to getting the things you want out of life is this Decide what you want. It is not want something it is about our Goals, Aims and our Feelings to stay Happy always i.e. What we want from inside. The problem is we don’t know that what we want from life because we do not think on that approach so think on everything’s that you want. Everyone is having some goals about what we want in life but we have to stay focused on that things.

If this is your only life then why are not you doing everything you want to do?

2) Develop A plan – First we have to Write down our goals on a paper. And Follow the plan regularly. As you develop a plan, you determine which goals ae most important and which ones deserve th most time and energy. Writing down what you want to achieve Everyday is one of the most Life-Changing Activities you can do.

3) Implement the Plan – Everyone having dreams in our life. It is very relaxing when we sit down and think about what we want in life. But important is we have to take action on it no matter what we want in life but action is needed. Take small action towards your plan.

4) Stay Focused On your Plan – Stay focused, go after our dreams and keep moving toward your goals. We need to stay true to our Goals we will definitely get what you want. The best way to motivate yourself to achieve your goals is to focus deeply everyday on the many benefits of achieving them.

5) Notice Your Achievement – Notices your plan and You can see the result what you achieve in your life and your progress to your Goals. After that you need to focus on your Gains. Knowing what you want to achieve is the first and most important step in setting your goals. Have a vision for your life and All great Achievement’s required time and Strong Plan.

Tuesday, 11 July 2017

Planning of Goods and Services Tax-2017


By,
Chaitanya

                 



Since last few months the GST Bill is a topic of discussion. Mainly due to its power to revolutionize the entire tax system and also its ability to make life a lot simpler for taxpayers. But what exactly does this Bill talk about and what are its features? 

On 29 March, 2017 India came a little closer to this sales tax regime. The Lok Sabha agreed to pass four important GST Bills for goods and services. The GST bill has the implementation of this wide-ranging tax development by the 1st of July, 2017. GST is accordingly doing changes to entire landscape of tax payment and charges in the country. 

The four GST Bills that were passed are Central Goods and Services Tax Bill or CGST Bill, Compensation GST Bill, Integrated GST Bill and Union Territory GST Bill. 

What? 

The plan behind the implementation of the GST Bill is to merge taxes that we pay on goods and services into one single entity. Goods and services are originally every product that is used by individuals and with the current tax system. Citizens are paying not just one type of tax for a product but many type of taxes for just one product or service. The main reason of this bill is to streamline these multiple taxes into one single system. 

Central Excise Duty, Special Additional Duty of Customs, Additional Duties of Excise and Customs, Service Tax and other surcharges would all be replaced by Central Taxes GST. Similarly VAT Entry Tax, Purchase Tax, Entertainment Tax, taxes on betting, lotteries, state surcharges would be replaced by State Taxes GST. 

Why? 

According to Arun Jaitley, the Finance Minister of India, GST will have a significant impact in curbing excessive inflation. Services and products such as beauty, electronics attract different types of taxes depending on the state that the consumer is staying in, but the implementation of this bill will remove ambiguity. Second reason of this GST Bill is to remove the possibility of excessive taxation on individuals. 

As of now, the State and the Centre calculate and levy taxes based not on the original cost of the service or product but on the layers of tax that are already being levied on the same service or product. This will have an adverse effect on the GDP or Gross Domestic Product of the nation. Through this bill, tax evasion will also be checked and business operations will become simpler. Essential products and daily needs such as food grains and agricultural products are not to be taxed so as to keep an eye on inflation. 

GST Bill 2017 - Changes and Updates 

However, unlike how most would have expected, the current four bills that have been passed do not put forth a single uniform rate across all categories. Instead a multi-tier tax slab has been put forth with four different tax rates i.e., 5%, 12%, 18% and 28%. The main purpose behind this tax system is that luxury goods cannot be taxed at the same rate as daily necessities. Additionally, there would also be goods that are tax-exempted and zero-rated which implies that there are six categories of products and services under the bill. An additional cess on demerit goods such as aerated drinks, luxury cars and tobacco products would be levied. There will not be any tax on food products and petroleum products as of now. There has been no information as of yet regarding alcohol under GST. 

The CGST Bill will allow the Centre to establish and collect tax on intrastate supply for products and services. Collection of tax on supply that is inter-state will be taken care of by the Integrated Goods and Services Tax Bill 2017. Compensation to states due to loss of revenue that may be incurred as a result of GST implementation will be taken care of by the Compensation GST Bill while the Union Territory Goods and Services Tax will allow imposition and collection of tax on supply of products and services that are intrastate by Union Territories. Finance Minister Arun Jaitley has also said that additional tax will not be imposed in order to provide compensation to states and compensation will be paid to them within the existing framework. 

Impact on the general public 

According to this Bill, services will not be taxed over 18% and 5% tax will be levied on mass consumer products such as packaged salts and spices although food grains and other agricultural products are not going to be taxed. For most other products and services, the nearest tax slab will be applicable. Items generally used by the common man such as toothpaste, oil, soap and others will be taxed between 12% to 18% as opposed to the current rate which is over 20%. 

Other products such as washing machines, refrigerators, air conditioners will be taxed at 28% as against the current rate of 30%-31%, thus making them cheaper. Luxury products such as luxury cars, aerated drinks and tobacco products would also attract a tax slab of 28%. 

GST Bill would not be very helpful for individuals working in offices who receive subsidized products, services or eatables as more will have to be paid due to these items being placed under the tax net. This also includes membership at fitness clubs, taxi services or even health insurance. Small firms would also be hit as if a supplier of the company is not registered, then the purchaser will have bear the brunt of the GST on such a sale. 

The government also plans to set up an authority in order to see if there is any reduction in the rate of tax to the consumer by companies after GST has been passed. 

There are a number of pros and cons to this bill and a number of decisions yet to be made. However, it is suffice to say that the GST Bill would serve to simplify the somewhat complicated tax brackets that are currently in use in the country.