Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

How to secure your joomla admin url

First you need to create a new folder directory inside root folder and create index.php where you need to create cookie. $mysecurecookie="123456"; setcookie("admincookie",$mysecurecookie,0,"/"); header("Location: /administrator/index.php"...

Interesting read from Coding Horror

Welcome to The Internet of Compromised Things This post is a bit of a public service announcement, so I'll get right to the point: Every time you use WiFi, ask yourself: could I be connecting to the Internet through a compromised router wit...

How to get specific part of a URL

Hi Readers! If you having a useful URL and want to extract the specific part from it you learn the logic below Lets have a example $yoururl = "http://www.abc.com/usefulinfo/"; Here I'm getting only the /usefulinfo/ word. For getting th...

How to get WP menu in array form

Hello readers, today we will discuss about WP menu. If you want to get WP menu in array form , you can use below code and will get your menu in array. <?php /** Get the nav menu based on $menu_name (same as 'theme_location' or 'menu' ar...

How to create custom setting in wordpress

Hello readers today we will discuss "How to create custom setting in wordpress admin dashboard". Open your function.php file and write the below code:- /** * Sound promo code */ add_action( 'admin_menu', 'showMenu' ); function showMe...

Jomsocial Modules

Modules are the type of joomla extension which is used for page rendering. These are the small sections in joomla. These are totally depend upon the positions in joomla. Some of the jomsocial plugins are: mod_activegroups: Displays the list of...

How to Redirect a Website using HTML Code

Hi Friends, After my previous blog post on How to Optimize Image for Website, today we will discuss about some best programming ways to Redirect a website. I am covering this topic as point of SEO Expert. Some points of this topic I have alr...

How to disable Apache gzip compression for some media files in .htaccess file

This tutorial will help user learn how to disable the compression of files.This can be done by disabling apache gzip. For example let us say that we want to disable compression for mp3 files, which a client get as a response by hitting a particul...

Restrict access to directories through ip address on Apache

Apache web server allows access based upon different conditions. For example we can restrict access to url http://firstexample.com/ (mapped to /var/www/public/images directory) from 192.165.1.0/24 network. Apache provides access based on diffe...

Setting Content Type of a azure blob

When we upload a file on azure blob in byte array format or in any other format then by default it is uploaded as a content type of stream. As a result of it, when we try to get that file from a browser it always starts downloading the file. It ...

Jomsocial Plugins

Jomsocial provides various plugins. Plugins is a joomla extension which provides functionality related with trigger events. Some of jomsocial plugins are: Jomsocial Apps- Community Plugins JS Events:This plugins provides list of events us...

node is not recognized as an internal or external command in appium

I tried to run the Appium server from the command prompt but I got the error that "node is not recognized as an internal or external command". I executed the following command on the command prompt: node appium Solution: To start the App...

Moving objects by changing its Transform

Transform are used for storing and manipulating objects Position , Rotation and Scale or Size . In this blog we will use transform to move an object.Moving an object by changing its transform does not require a Rigidbody, that way its hard to...

Deleting Elements using Javascript

In Javascript , you can't delete the element directy if you want to delete the element , then first you have to find its parent element and delete it using remove() method .Because DOM ( Document Object Model ) doesn't support removing an eleme...

Setting up a GCM Client App on iOS

Google cloud messaging services is now available for ios developer, Previously For push in IPhone We have to use APN. and For push in Android we have to use GCM. I think it is very difficult to implement both APN and GCM at SERVER level...

How to add/call plugin method from javascript

Use the following code to make plugin javascript Here connectwebsocketserver is the function which called by javascript (index.js). If your plugin javascript file name is test then by following lin you can call this function test.connectw...

Using Parcelable in Android

In simple words , Send the complete object to other views like (switching b/w different Activity). What if you need to send 50 value to other Activity, Don't write 50 putExtra to your code as it will increase the size of code ,just use Parcel...

How to create Cordova plugin directory structure

Hi, Here is the steps to create cordova plugin directory structure : Install Yeoman by this command $ npm install -g generator-cordova-plugin then go to folder where you want that directory structure and run this command $ yo cordo...

Using splice() to Remove Elements in Javascript

Basically splice() method is used to change the content of an array by removing existing element and add new elements . It contain three parameter start , deletecount and ItemN. start ->It is the position where to start the selection .And i...

Restart your schedule with AlarmManager after phone reboot

When you create a schedule using AlarmManager and you found that it stops working after phone reboot. So to avoid this problem we need to add Broadcast receiver that should receive "BOOT_COMPLETED" broadcast. For this you need to register your...

Event Booking Extension

Events Booking is a Joomla Events Registration extension which is a very powerful, rich featured and easy to use. You can create both free and paid events and registrants can register themselves to the event either as a group or individual via o...

Difference between 'null' and 'undefined'

The difference between undefined and null is as follows, 1-When we declare any variable and we do not give it a value then it will have the value undefined.Undefined is a type all to itself 2- We can declare a variable and can set it to n...

Javascript math.min() and math.max() function

JavaScript min() Method This method returns number with lowest value Here is the example of math.min() <p>Click the button to return the lowest number of 5, 10,2,0.</p> <button onclick="myFunction()">re...

Deep Linking for App content Android

Deep Linking enable user to enter into app from Search. For enable Deep Linking we must add intent filters for the relevant activities in application manifest. These intent filters allow deep linking to the content in any activity of applicat...

How to use Google Search

In this 21st century, Search Engines are the backbone of every internet user. Here are some of the hidden Tips & Tricks which will help you in improving your search on Google:-   Quotation Marks() - Use ...

Local JavaScript Variables

Local JavaScript Variables A variable declared inside a function has the scope only in that function, thus the variable is the local variable. The variable doesn't have any recognition out side the function definition. Local variables sco...

Jomsocial

Jomsocial is a powerful component which is used for creating social networking sites in Joomla. It provides various facilities to the developer such as: allow you to create your own social network. Sharing photos, videos. Managing events. ...

Operator in Javascript

There are following types of operators in JavaScript. 1- Arithmetic Operators ( +,-,*,/,%,++,-- ) <script> var a= 1; var b = 2; var c = a + b; document.getElementById("demo").innerHTML = c; </script> 2- Comparison (Rel...

Javascript Undefined Values

Javascript Undefined Values In a program the variables declared gets the value at the time of the variable declaration or get assigned after some calculation or received by the user input, but the variables which are not assigned any value at ...

JavaScript objects

A javaScript object is an entity having state and behavior. For example: car, pen, bike, chair, glass, keyboard, monitor etc. Objects are real world entity. JavaScript is an object-based language. Everything is an object in JavaScript. Ther...

JavaScript Assignment Operators

JavaScript Assignment Operators The Assignment Operator is used to assign the value of the right operand to the left operand. The key rule for this operator is that it always assign value from right to left. The Assignment operator (=) work...

Javascript () Operator Invokes the Function

Javascript () Operator Invokes the Function During the call of the function the code of the function gets executed. the call to the function can be made by the name of the function followed by the parentheses (). example: func(1,2); ...

Slicing an Array

Basically slice() method is used to extract some particular elements from an original array (suppose i need to show only selected elements from original array). It contain two parameter start/begin and end. begin ->It is the position where t...

Javascript length property

Javascript length property is used to find out the length of characters or it may returns number of elements in an array Every Character gets counted in this property. JavaScript Array length Property The length property returns the number ...

JavaScript Function Syntax

JavaScript Function A function is a separate part of the program that performs a particular task. The code of the function can be reused by calling the same function wherever it is required to perform the same task. A function syntax is a...

While-loop in Javascript

The JavaScript while loop iterates the elements for the infinite number of times. It should be used if number of iteration is not known. The syntax of while loop is given below- while (condition) { code to be executed } Below i...

Sorting array in Javascript

Sorting is the process of arranging elements systematically either ascending or descending order. The main purpose of sorting information is to optimise its usefulness for specific tasks. Sorting arranges data in a sequence by which searching b...

Mysql and Sql injections

SQL Injection: If we are trying to save data into the database from webpage inputs than we have forget wide open security issue is known as SQL injection. Now the Question is how to prevent it and help to secure your script and MYSQL statement. ...

HTML5 Geolocation API

HTML5 Geolocation API The Geolocation API specifies a general putting into effect for the objects, properties, and methods to unite with the Geolocation interface. One object holds the whole implementation of the W3C Geolocation APIthe Geolo...

Media types

Media type Media types, by default the value for the media attribute is all. Without the attribute in the link element, the user agent will apply the CSS rules in the stylesheet to 'all' media. all - Suitable for all devices braille - ...

How to declare an Array in Swift

Hi Readers! There are different ways to declare Array in Swift. I will write few examples below: Example 1: let a : Array? = ["hello","hi"] Now in above example this is a constant array. You cannot add/append an element in it. E...

Display array inside a paragarph tag

using javascript

Java Script arrays are used to store more than one values in a single variable. In the below given example we will use script to display array (var= names) data inside a <p> (paragraph) tag of HTML with id="display". <!DOCTYPE html>...

JavaScript else if Statements

In JavaScript , the correct syntax for elseif is "else if" not "elseif". else if statement is used where we have to check multiple statement. Example : var eating; if(eating < 8){ document.write("Time to take brunch"); } else if(gre...

Javascript Loops

The JavaScript loops are used to iterate the piece of code.We have for, while, do while loops. It makes the code compact. Looping is what makes computer programming worthwhile. There are three types of loops in JavaScript. 1)for loop 2)w...

Javascript Shifting Elements

The shift() method is used to remove the first element of an array from the zero index and shift to the consecutive index and this is also used to change the length of an array . syntax : array.shift(); Example : var arr = ['Mukesh', 'Ayu...

Javascript getDay() method

JavaScript getDay() Method Return the day of the week: var d = new Date(); var n = d.getDay(); This method is used for getting the days of week from 0-6 for the date specified. in this 0 stand for sunday and 1 stand for monday. Synt...

Javascript and If Else statement

If else statement like any other computer language are used for condition. If the condition satisfies it goes for first statement and if it does not than it goes for the second statement. 1.if is use to run a code if a condition is true. 2.el...

How to define global variable in JavaScript ?

Hi friends, As we know that if we declared a variable outside the function of javascript, then it is said to be global variable. But this is not a correct way to declare global variable. Correct way to declare global variable in JavaScript is-...

Javascript Datatype

Javascript data type can hold may data type like number string arrays object and other. To declare a variable we use var keyword example var length = 16; // Number var lastName = "Johnson"; ...

how to merge objc and Swift code in same project

To use swift code in Objective-c project -> 1. Go to your objective-c project -> create a new file -> source -> Cocoa Touch Class -> change language to Swift -> create. 2. Now a alert will pop-up Would you like to configur...
1 200 269
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: