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

Search In

How to convert Javascript object into array

Let's see the example below:- We have a numb as JS object var numb = { 1: [22, 33, 44], 2: [11, 99, 66] }; var DefineArray = $.map(numb, function(value, index) { return [value]; }); console.log(DefineArray); Output: [[22, 33, 44],

Convert UIImage to NSData or NSData to UIImage

Hi all , To convert UIImage to NSData Objective C NSData *data = UIImagePNGRepresentation(self.MyImageView.image); Swift let imageData: NSData = UIImagePNGRepresentation(self.MyImageView.image) To convert NSData to UIImage Objective C UIImag

How to select random record in MySQL?

To randomly select any single record in MySQL you need to execute the following MySQL statement: select * from tablename order by rand() limit 1 The above statement returns a single record randomly. For multiple records you need to execute the

How to extract website tittle using the given URL

Hello Reader's! If you having a set of given url's you need just the title of them, then you can use the PHP code below to extract title <?php function TitleURL($YourURL){ $str = file_get_contents($YourURL); if(strlen($str)>0){ $str

Could not execute command 'lessc' in odoo-9

If "Could not execute command 'lessc'" Error ocour while installing odoo-9 and the login page will not show clearly. Then use this six command in terminal and run it one by one 1- sudo apt-get install nodejs 2- sudo apt-get install npm 3- sudo np

How to make a cookie with no expire lifetime

Hello Reader's If you have writing the code that makes the cookies for valid lifetime then you just need to set big number for it's validity. As the example below PHP code:- Maximum value: 2147483647 setcookie("CookieName", "CookieValue", 21474836

How to Build an Odoo module

If you want to build an Odoo module in OpenERP(Odoo) follow the below mentioned step. For creation of any module in Odoo you have to make four files,given below- 1-__init__.py // its indicate the  import instructions for various Python files in

Generic DropdownList in MVC

Hi All, We in most of our projects in MVC come across creating dropdown list, that can be tricky sometimes. In this blog you all will get a preview of creating a generic function for creating dropdown for any list. The first thing we need to do is

Global filtering - how to use global scope in Laravel Eloquent

I have a situation which will help us to understand the use of Global Filtering. Situation: I have a published filter that I use for my articles. Guests can only view published articles, logged in users can view and apply filter (?published=0/1):

Non-Semantic Elements and Semantic Elements in HTML5

Non Semantic Elements:- Traditionally, developers have implemented non-semantic elements with a class attribute to define the structure and express the meaning of content. It tells nothing about its content. The element has no special meaning at all.

1 240 949
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: