Categories
Social Media & Marketing

Post link with image preview to Facebook page

Facebook sometimes does this really neat thing where to show image preview of a link to in a status update. Its usually the website’s logo. Basically, Facebook grabs it’s thumbnails from the original website page. However, sometimes you may get an option which photo you will choose to show it in a post but sometimes […]

Categories
jQuery

jQuery one() Method

The jQuery one() Method attached a handler for the selected elements and executed at most once per element per event type. Using one() method, the event handler is only run ONCE for each element. Possible event values are: blur, load, focus, resize, unload, scroll, click etc. Syntax: This is the simple syntax for using this […]

Curriculum vitae

Curriculum vitae or CV (also called “vitas”) and resume both have similar purposes that provides key information about your skills, education, experiences and personal qualities which shows you as a ideal candidate. Curriculum vitae sometimes called a CV or vita which tends to be used more for scientific & teaching positions than a resume. So […]

Categories
MySQL

mysql_fetch_array() expects parameter 1 to be resource, boolean given

Trying to select data from a MySQL table, but getting the error messages: mysql_fetch_array() expects parameter 1 to be resource, boolean given? – This may happen for various reasons like both the mysql_* and the mysqli extension will return false from their query functions. – Using a die() you can get a little to much. […]

Categories
Css

Disable text selection highlighting using CSS rule

There is a CSS standard way by which you can disable the highlighting effect i.e. disable text selection when you select any text. This can be done using JavaScript but using CSS you can achieve this also. <style type=”text/css”> .disableselect { user-select: none; -ms-user-select: none; -moz-user-select: none; -khtml-user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; } </style> […]

Categories
Technology

The Software Engineer’s Online Handbook

Toptal has compiled the best free resources of Online Handbook for engineers in 2015. Engineers of all experience levels will find great tools for collaboration, open source projects, and free tutorials. Stay a step ahead with emerging industry trends and hiring forecasts, as well as the latest tools and technologies vetted by the elite Toptal team. […]

Categories
jQuery

jQuery serialize() function

jQuery serialize() method creates a URL encoded text string by serializing the form values. This values can be used in query string for making an AJAX request. jQuery serialize() can act on a jQuery object for selecting individual form controls like <input>, <textarea>, and <select> etc. Example of serialize: Suppose, you have a following HTML: […]

Categories
jQuery

jQuery serializeArray() key value pairs

jQuery serializeArray() creates an array of objects i.e. name and value pair by serializing one or more form elements or the form element itself. jQuery serializeArray() method can act on a jQuery object which has selected individual form controls like <input>, <textarea>, and <select> etc. Suppose, you have a following HTML: <form action=””> Name: <input […]

Categories
jQuery

Traversing Siblings

The jQuery  siblings() method returns all the sibling elements of the selected element. For example: $(“div”).siblings(); But if you want to filter the search for siblings then you can use an optional parameter. $(“div”).siblings(“p”); Read Also: Select an element with multiple classes in jQuery jQuery clone – create a deep copy of matched elements Suppose […]

Categories
jQuery

Difference between toArray and makeArray in jquery

jQuery toArray and makeArray both are the useful function to build with the transforming. The jQuery toArray() transforms jQuery element set to javaScript Array, jQuery.makeArray() transforms any array like object to JavaScript Array. Let’s see the difference between toArray and makeArray in jQuery. The jQuery toArray() method returns the elements contained in the jQuery selector […]