Quantcast
Browsing latest articles
Browse All 60 View Live

Image may be NSFW.
Clik here to view.

Importing Database in MySQL from a sql dump file

First create a dump or .sql file of the database you want to take back up of. Then transfer it to the computer on which you want to import the data (if the file is not on that computer). Now follow...

View Article


Image may be NSFW.
Clik here to view.

* { Box-sizing: Border-box } FTW

One of least favorite parts about layout with CSS is the relationship of width and padding. You’re busy defining widths to match your grid or general column proportions, then down the line you start to...

View Article


Image may be NSFW.
Clik here to view.

Why a BorderContainer may not be displaying

The most common culprit when your suhas/layout/BorderContainer doesn’t display at all is forgetting to set the width and height of the html and body elements. Somewhat counter-intuitively, these...

View Article

Image may be NSFW.
Clik here to view.

Is PHP the New Java?

A look at this increasingly popular coding language and whether small businesses should be using it for Web development. Fast and cheap, the programming language PHP has won small business converts in...

View Article

Image may be NSFW.
Clik here to view.

WP – I’ve been hacked. What do I do now?

The Exploit Scanner plugin can help detect damage so that it can be cleaned up. Other things you should do: Change passwords for all users, especially Administrators and Editors. If you upload files to...

View Article


Image may be NSFW.
Clik here to view.

How do you get cruft free URIs for search results?

To return clean URIs for search results in WordPress from the search form (www.example.com/search/searchterms instead of http://www.example.com/?s=searchterms) First create a file called search.php...

View Article

Image may be NSFW.
Clik here to view.

Append content outside of loops – jQuery

//BAD $.each(myArray, function(index, item) { var newTweet = '<li>' + item + '</li>'; $('#statuses').append(newTweet); }); //GOOD var newTweet = ''; $.each(myArray, function(index, item) {...

View Article

Image may be NSFW.
Clik here to view.

Best Practices: Avoid Anonymous Functions

Anonymous functions are often used when binding event handlers. However, anonymous functions are difficult to debug, maintain, test, or reuse. It’s better to use object literals: //BAD...

View Article


Image may be NSFW.
Clik here to view.

Best Practices: Optimizing Selectors

Here are some tips to keep in mind when using selectors: Id selections are really fast. They are handled by document.getElementById() // This is fast $('#statuses .status'); //This is faster...

View Article


Image may be NSFW.
Clik here to view.

How to Protect a Website From Malware

Owning and designing websites is an exciting experience. The technology allows web designers to create interesting and dynamic websites. However, every website owner knows that security of her website...

View Article

Image may be NSFW.
Clik here to view.

JavaScript Closures

What is a closure? A closure is an inner function that has access to the outer (enclosing) function’s variables—scope chain. The closure has three scope chains: it has access to its own scope...

View Article

Image may be NSFW.
Clik here to view.

Basic PHP File Handling

Create a File $my_file = 'file.txt'; $handle = fopen($my_file, 'w') or die('Cannot open file: '.$my_file); //implicitly creates file Open a File $my_file = 'file.txt'; $handle = fopen($my_file, 'w') or...

View Article

Image may be NSFW.
Clik here to view.

Get Last four week (start and end date)

get current date $custom_date = strtotime( date('Y-m-d') ); Last week date on Monday and Sunday. $week_start1 = date('Ymd', strtotime('last week last monday', $custom_date)); $week_end1 = date('Ymd',...

View Article


Image may be NSFW.
Clik here to view.

File/folder Permission

Note that mode is not automatically assumed to be an octal value, so strings (such as “g+w”) will not work properly. To ensure the expected operation, you need to prefix mode with a zero (0):...

View Article

Image may be NSFW.
Clik here to view.

INSERT … ON DUPLICATE KEY UPDATE Syntax

If you specify ON DUPLICATE KEY UPDATE, and a row is inserted that would cause a duplicate value in a UNIQUE index or PRIMARY KEY, an UPDATE of the old row is performed. For example, if column a is...

View Article


Image may be NSFW.
Clik here to view.

How can I execute PHP code on my existing myfile.html page?

When a web page is accessed, the server checks the extension to know how to handle the page. Generally speaking if it sees a .htm or .html file, it sends it right to the browser because it doesn’t have...

View Article

Image may be NSFW.
Clik here to view.

Writing Your Own jQuery Plugins

jQuery is great. It’s cross-browser, easy to learn, and makes adding interactivity to your website a breeze. It also comes with plenty of plugins to do almost whatever you need it to do. But what if...

View Article


Image may be NSFW.
Clik here to view.

How browsers work

The browser main functionality is to present the web resource you choose, by requesting it from the server and displaying it on the browser window. The resource format is usually HTML but also PDF,...

View Article

Image may be NSFW.
Clik here to view.

WordPress – custom form submission redirect to 404 page.

I found many people having this problem in WP. The problem was caused by the “global” parameter. Obviously, WP has something important internal reserved for that parameter. Global variable Global...

View Article

Image may be NSFW.
Clik here to view.

Making a simple math captcha using jquery

I wanted to write a simple Captcha that I could easily integrate into my own scripts that would work with or without Javascript. My first approach was to find open-source that I could pretty much just...

View Article

Image may be NSFW.
Clik here to view.

How To Speed Up WordPress

As a side note, these are not ordered by importance or any criteria, I’ve just gathered everything I’ve learned about speeding up page loads on WordPress and compiled them here. I guarantee that using...

View Article


Image may be NSFW.
Clik here to view.

Using Bitly URLs in WordPress and use them with Twitter and GooglePlus Scripts

Step 1 Preparing The Code Login to your bitly account. If you don’t have one, it takes only a minute to setup your account. After logging into your account, go to the settings page, scroll down almost...

View Article


Image may be NSFW.
Clik here to view.

Difference between 2 dates in days, minutes and seconds

function dateDifference($date1, $date2) { $date1=strtotime($date1); $date2=strtotime($date2); $diff = abs($date1 – $date2); $day = $diff/(60*60*24); // in day $dayFix = floor($day); $dayPen = $day –...

View Article

Image may be NSFW.
Clik here to view.

PHP date formats

DAYS d – day of the month 2 digits (01-31) j – day of the month (1-31) D – 3 letter day (Mon – Sun) l – full name of day (Monday – Sunday) N – 1=Monday, 2=Tuesday, etc (1-7) S – suffix for date (st,...

View Article

Image may be NSFW.
Clik here to view.

Six things that dissenters don’t know about WordPress

Here are the six things that dissenters don’t know about WordPress: 1. WordPress is Incredibly Scaleable There is a misconception that WordPress can only handle small sites because it was built as a...

View Article


Image may be NSFW.
Clik here to view.

Learn SEO basics

Search engine optimization (SEO) is the process of improving the volume and quality of traffic to a web site from search engines via “natural” (“organic” or “algorithmic”) search results for targeted...

View Article

Image may be NSFW.
Clik here to view.

PHP Shorthand If/Else Using Ternary Operators (?:)

n essential part of programming is evaluating conditions using if/else and switch/case statements. If / Else statements are easy to code and global to all languages. If / Else statements are great but...

View Article

Image may be NSFW.
Clik here to view.

WordPress Interview Questions and Answers.

Reblogged from LD Opensource: Why “WP to Twitter” plugin fail to submit an update to Twitter in WordPress? When creating your application, do not click the “create your access token” until you first...

View Article

Image may be NSFW.
Clik here to view.

The Best WordPress Plugins

On this page you will find the best WordPress plugins, ever. These are essential installations – but remember, Worpdress runs faster with fewer plugins, so don’t be tempted to install them all! Backup...

View Article



Image may be NSFW.
Clik here to view.

Learn Ruby in 15 min

Spend 15 min to learn Ruby on http://tryruby.org/ Spend some more time here https://www.codeschool.com/paths/rubyFiled under: Wordpress

View Article

Image may be NSFW.
Clik here to view.

Upload Multiple Image

This plugin adds a meta box for multiple images for all posts and pages. Download Plugin == Installation == 1. Upload plugin to the `/wp-content/plugins/` directory 2. Activate the plugin through the...

View Article

Image may be NSFW.
Clik here to view.

What is Cloud computing?

Cloud computing is a general term for the delivery of hosted services over the Internet. Cloud computing enables companies to consume compute resources as a utility — just like electricity — rather...

View Article

Image may be NSFW.
Clik here to view.

List of some CRM Software’s

List Of CRMFiled under: Salesforce

View Article


Image may be NSFW.
Clik here to view.

Salesforce app builder certification questions

Salesforce app builder certification questions Q1. Sam is trying to convert a master detail relationship into a look up relationship, however is not able to do so. What could be the reason? Choose 1...

View Article

Image may be NSFW.
Clik here to view.

PMD for Salesforce Code Check

PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth. It supports Java, JavaScript, Salesforce.com Apex...

View Article

What is Aura Method

Use aura:method to define a method as part of a component’s API. This enables you to directly call a method in a component’s client-side controller instead of firing and handling a component event....

View Article


Lightning Data Service

force:recordData Using this component, we can load, create, edit, or delete a record in your component without requiring Apex code. Lightning Data Service handles sharing rules and field-level security...

View Article


What is Lightning Locker?

Lightning Locker is a powerful security architecture for Lightning components. Lightning Locker enhances security by isolating Lightning components that belong to one namespace from components in a...

View Article

Bound and Unbound in Salesforce lightning

Bound Expression: Bound Expression is represented as {!v.messageText}. Whenever the value of the string is changed, this expression will reflect the change and also affect the components where it is...

View Article

Dynamically Creating Components

The $A.createComponent() and $A.createComponents() methods support both client-side (synchronous) and server-side (asynchronous) component creation. For performance and other reasons, client-side...

View Article

What is the lightning guided engagement

Lightning Guided Engagement empowers agents to select the right processes for every customer / beneficiary interaction. It can guide agents step-by-step through service processes to resolve issues with...

View Article


What are design attributes?

In a nutshell, they’re config options for lightning components. If you add design attributes to you component bundle then they can be configured via the Lightning Page Builder. create design file from...

View Article

Salesforce order of execution

System Validation The original record is loaded or a new record is initialized Fields values are loaded into SObjects System validations rules are executed: Before triggers are executed System...

View Article


Queueable Apex

Take control of your asynchronous Apex processes by using the Queueable interface. This interface enables you to add jobs to the queue and monitor them, which is an enhanced way of running your...

View Article

Future Methods

A future method runs in the background, asynchronously. You can call a future method for executing long-running operations, such as callouts to external Web services or any operation you’d like to run...

View Article


Batch Apex

To use batch Apex, write an Apex class that implements the Salesforce-provided interface Database.Batchable Batch Apex is asynchronous execution of Apex code, specially designed for processing a large...

View Article

How to use custom iterator

An iterator traverses through every item in a collection. For example, in a while loop in Apex, you define a condition for exiting the loop, and you must provide some means of traversing the...

View Article

How to make HTTP callout from lightning component

REST callouts are based on HTTP. To understand how callouts work, it’s helpful to understand a few things about HTTP. Each callout request is associated with an HTTP method and an endpoint. The HTTP...

View Article

Continuation Apex Class

Use the Continuation class to make callouts asynchronously to a SOAP or REST Web service. The timeout maximum is 120 seconds.If the continuationMethod property is not set for a Continuation, the same...

View Article


Introducing the Salesforce GraphQL API

GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives...

View Article

Browsing latest articles
Browse All 60 View Live