You want your online appearance appealing, we are here to make it live.
Welcome to KIAGS MEDIA
{ }

Difference in Javascript and Java

graphic.java.javascript

Java and JavaScript are both coding languages, but if you think that they are the same, then it’s time to clear that misconception. Newbie web programming students often get confused and think that these two offer the same features.
JavaScript and Java.
Let’s find out the differences.

Java is an object oriented programming language that was developed by Sun Microsystems. It lets you create applications that can work across a majority of operating systems. It does not use any operating system’s native code; instead its unique codes get executed on a virtual machine that decodes it into the counterpart’s default code.
On the other hand, JavaScript is a scripting language and it was developed by Netscape. You can’t create an application using it and it mainly works inside a browser. It lets you add interactive elements in web pages. You can also use it with Ajax to enhance the quality of interactive elements. A JavaScript powered browser reads the script and performs the instructions written in it. The biggest benefit of this scripting language is that it can also work together with elements that are not within its code. This can’t be done in Java.

These two coding languages are completely different from each other. If you install Java in your computer that does not mean it will be able to run JavaScript apps and vice versa.

Web programming is a vast field and to be a better coder, you must have very clear fundamental ideas. Once you know what you can and can’t do with a language, you can take faster decision and develop flawless websites and applications.

E-commerce development tips

A website with a perfect designing and programming can surely prove fruitful to the business.There is no doubt that the world of e commerce is growing and all the industries and business are shifting there online dealing.

Below are some of the E-commerce development tips for the developer.

1 Use SSL only within your cart. There’s a hell of a lot of debate around this. But one fact is clear: SSL page requests require more server cycles than non-SSL page requests. If your site gets tens of thousands of page and file requests per day, it adds up. Plus, if your whole site’s in SSL, things like Google Webmaster Tools won’t work. So only use SSL for pages that need it: Your checkout process, and any other pages where a customer has to enter confidential information.

2 Don’t use SSIDs in your page URLs. Ever. EVER. SSIDs are ugly things like ?sid=asdfweroi120398123582745 that end up on the end of URLs on some sites. They’re used to uniquely identify a user session, for purposes of tracking stuff like your cart contents. They’re also unnecessary until you put something in your cart. So don’t use them, at all, on the site unless someone’s added something to their shopping cart.

3 Use good validation. When the designer asks you to check if someone forgot to type in their address, don’t make some smartass remark about how you don’t want them as a customer anyway. Practice good defensive design: Regardless of what someone does wrong, be sure you give them clear guidance to correct it. Forgot to fill out a field? Reload the page with a note indicating the problem. Someone used a weird escape character? Fix it for them.
Use friendly validation. When you reload a page because someone screwed up and left a field empty, reload it with all their information included. Please. Read Defensive Design for the Web for tons of great tips.

4 Cache everything you can. Cache pages. Cache images. Cache shopping cart data. If you can’t cache a whole page, cache regions of the page. Cache in memory and on disk. Cache, cache, cache. Otherwise great success will mean a lot of late nights and angry calls from your CEO demanding a faster-running site. Do it now, and save the pain later.

5 Give your database and your website separate homes. Put your database on one server and your website on another.

Life Cycle of AJAX


A Typical Life Cycle or Process of AJAX

Life cycle of AJAX is more similar to a traditional GUI than a traditional web application. It has DOM objects who acts like GUI widgets. The used script has capacity to register even listeners on DOM objects and respond accordingly after manipulating DOM.
There is an important part of the event-processing cycle in server is evoked sometimes. As the server calls are asynchronous, the even listening and event responding are done separately.

The normal AJAX life cycle consists of following stages:
1. The webpage is visited by internet users simply by clicking the targetted link or searching an URL. Thereafter the page gets initialised and loaded. In order to handle the user input callbacks are present in the system which acts after this.
2. When a key is pressed it’s called an event which is a query or click in common words. On such events browser sends the information request to the server which in turn responds to give back required information as bites.
3. The response of the server is translated through callback process to made viewable to the user.
4. The callback function then updates the DOM objects and javascript variables if present.
5. Generally the process of requesting information and giving callbacks are free to server to increase convenience and speed.
6. Some AJAX applications are short term and terminated once the request is completed.

Tips and Tricks for Jquery

Technology usage has a tendency to ebb and flow. Popular technology considered ubiquitous at one point in time may fall from lofty heights, to be replaced by younger, fitter rivals. Time will tell how jQuery fares in the years ahead, but it’s currently enjoying massive success, having emerged as the clear winner in the battle for favour among JavaScript libraries.

Following are few very useful jQuery Tips and Tricks for all jQuery developers.

1. Optimize performance of complex selectors
Query a subset of the DOM when using complex selectors drastically improves performance:
var subset = $(“”);
$(“input[value^=”]”, subset);

2. Set Context and improve the performance
On the core jQuery function, specify the context parameter when. Specifying the context parameter allows jQuery to start from a deeper branch in the DOM, rather than from the DOM root. Given a large enough DOM, specifying the context parameter should translate to performance gains.
$(“input:radio”, document.forms[0]);

3. Live Event Handlers
Set an event handler for any element that matches a selector, even if it gets added to the DOM after the initial page load:
$(‘button.someClass’).live(‘click’, someFunction);
This allows you to load content via ajax, or add them via javascript and have the event handlers get set up properly for those elements automatically.
Likewise, to stop the live event handling:
$(‘button.someClass’).die(‘click’, someFunction);
These live event handlers have a few limitations compared to regular events, but they work great for the majority of cases. Live event will work starting from jQuery 1.3

4. Checking the Index
jQuery has .index but it is a pain to use as you need the list of elements and pass in the element you want the index of
var index = e.g $(‘#ul>li’).index( liDomObject );
The following is easier:
if you want to know the index of an element within a set, e.g. list items within a unordered list:
$(“ul > li”).click(function ()
{
    var index = $(this).prevAll().length;
});

5. Use jQuery data method
jQuery’s data() method is useful and not well known. It allows you to bind data to DOM elements without modifying the DOM.

How to Create Secure Scripts with PHP Programming

imagesToday there is no such thing as a secure program or application, not even with all the firewalls and encryptions added in it.Disclosure are already present even when the program or application is still being coded by the programmer, and there is no way for a programmer to eliminate these disclosure . What he or she can do is to minimize the occurrences of these disclosure, which adds more security to the application or program. With programming scripts like PHP, you can also do other things that can enhance the security of both the program and its coding syntax.
Every programmer’s weapon

The most popular programming language used by almost every programmer is PHP. It is a mortal sin in the programming world if you do not know what PHP is, or even know the basics of it. PHP is commonly used for developing web applications, yet it is not without its own security holes. These holes can actually hinder any programmer from completing the program because they need to fill it out first before continuing. Below are some of the tips how to avoid common security pitfalls and glitches in PHP programming.

1.  Proper reporting is a must – when you’re developing something using PHP, application reporting is your best friend. These error reports are important, especially when it comes to detecting wrongly spelled variables and incorrect function usage amongst many others. However, it is important to disable or hide  application or error reporting once your site goes live because your users will know what’s wrong with your program instantly.

2.  Disable bad features – Most developers tried to include applications that made development a lot easier. These applications have unwanted consequences like creating data validation and allowing bugs to find their way into the script. Before your site goes live, make sure you disable any of the features that would create potential errors.

3.  Be vigilant of XSS attacks in user input – XSS or Cross Site Scripting is mostly seen on forums. When you are creating the option of writing input via HTML, you are allowing users to run JavaScript outside its intended purpose. When this happens, JS can create holes within your script, which will then turn off the security for the cookies. It’s like turning off the electricity in your electric fence. Once the cookies are exposed, real time data can be gathered by hackers and use this for malicious intent.

There’s no such thing as a perfect software, web application, or programming language, but you can always create something close to perfection.

Tips to Secure WordPress Website

 

wordpressA break-in of any of your online accounts is bound to be frightening, but a break-in of your WordPress site is especially alarming. One of the most basic ways to avoid break-ins and stay up on WordPress security is to constantly make sure that you are running on the most recent version of WordPress. WordPress developer must be updated with the latest security precautions and keep familiar with any new WordPress customization features.

Take the following factors into consideration when maximizing the security of your WordPress website:

  • Password. Don’t underestimate the importance of a good password. Avoid using one simple word as a password, and try to add special characters such as % and #. Changing your password regularly can help prevent unauthorized access to your WordPress site, and making your password longer than eight characters is important.
  • Good habits. Get into good habits regarding the use and upkeep of your WordPress page. Limit the number of plugins you use, and be sure to get rid of plugins you don’t use as soon as possible. Perform regular backups on the data in your WordPress account, and stay current on news regarding WordPress break-ins and new techniques established by the WordPress developer community.
  • Security plug-ins. There exists a plethora of WordPress security plugins that you can choose from to enhance the safety of your WordPress website. A WordPress developer would know best what particular plugins would be most successful with your page. Three great possibilities for WordPress customization with security in mind are Wordfence, Better WP Security, and BackWPUp. Wordfence is effective at blocking IP addresses from flooding your site, and Better WP Security increases security through several different methods. BackWPUp is a free plugin that will allow you to easily back up the files from your WordPress account.
  • CDNs. Content delivery networks can increase the security of the WordPress website by filtering the traffic that comes to your site and reducing the chances that your WordPress page will become a target. Two examples of CDNs that can be used free of charge are CloudFare and PageSpeed Service by Google.
  • .htaccess (Hypertext Access). This is an aspect of your WordPress website that might best be left in the hands of a knowledgeable expert in WordPress customization. However, properly configuring Hypertext Access can be highly effective at increasing the security of your WordPress page, and you could possibly rely on the WP .htaccess Control plugin for assistance with Hypertext Access.

 

 

 

Simple Ways to Speed Up Your Site

The load time of websites is one of the most important factors affecting its usability; many of the users just skip a site as it take couple of seconds to load. Below are some of the simple ways to “Speed Up Your Site” .

1. Optimize Images: always use the “Save for the web” feature included on image editing software. Images represent the heavier load on virtually any website so make sure you are optimizing them. Alternatively you can also turn to an online image optimizer.

2. Image Formats: apart from optimizing images it is important that you choose the right format. JPEG format is suitable for photographs or true-color images. The GIF format should be used with flat-color images like logos or buttons. PNG works very similar to GIF but it supports more colors.

3. Optimize Your CSS: most websites are designed with CSS now a days. Make sure to aggregate and clean your CSS. CleanCSS is an online tool that will merge similar selectors, remove useless properties and remove the whitespace from your code.

4. Use a Slash on Your Links: when a user opens a link on the form “http://www.domain.com/about” the server will need to figure what kind of file or page is contained on that address. If you include a slash (/) at the end of the link the server will already know that this is a directory page, reducing the load time of the site.

5. Use the Height and Width Tags: many people forget to add the Height and Width tags on image codes. Those tags will make sure that the browser knows the size of the image before loading it. The result is that it will reserve a spot for the images while loading the rest of the page, speeding up the whole process.

6. Reduce the HTTP Requests: when opening a web page every object (images, scripts and the line) will require a round trip to the server. This latency can add several seconds to the load time of your site. Make sure to reduce the number of objects and to combine CSS files and scripts together.

Simple Ways To Make Your Programming Better

1 Web development or programming is all about languages and their appropriate use and fusion.Learning new languages for web development programming like Haskel, Prolog, Lisp,Forth etc provide good educational experience and can then be used for committed projects too.

2  Websites like Github, Bitbucket, Sourceforge etc. provide opportunities to work on open source projects with other programmers or developers. The challenges that come along while working with different developer will make you learn, find solutions and hence enhance your web development knowledge, experience and confidence.

3 Reading good challenging programming/development will help your development IQ reach the next level.

4  Take up a development project. Write codes. Run it. Check for bugs Rewrite codes. Learn from your own codes to get perfect results.

5  Hit websites like Project Euler, codegolf.stackexchange.com and keep yourself entertained along with gaining fun experience and shortest ways of writing codes, all by yourself.

6  Be it from a senior’s project studying unfamiliar codes might be stressful and boring at  first but of course are knowledge enhancing and rewarding late.

7  Get to programming blogs written by, shared by good web developers. Write your own blog, participate in discussions and help others solve their programming queries.

8  Learn lower languages too and know about the parts and constituents of lower languages and machines to avoid yourself getting stuck at higher levels.

9  The more you do the more the development part of your web development programmer brain will work!! Try try again before hitting a direct solution aid somewhere

HAPPY WOMEN’S DAY TO ALL :)

womens-deyEven when the whole world is rushing, there are some who take time to mentor, encourage and inspire like YOU.  And I’m lucky to be working with you.

Merry Christmas

Christmas waves a magic wand over this world, and behold, everything is softer and more beautiful.