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

Search In

Scopes in rails

A unanimous definition of  a scope in rails can be termed as a succinct way of creating database queries. We define a scope in a Model class in the purview of MVC architecture. It's syntax goes like: scope(name, body, &block) . To give

Ruby Constructors and Setter and Getter

Ruby Constructors  1. Ruby supports constructors.  2. They are declared with the method initialize.  3. Initialize method is called automatically when the object is created. Example: class Cons def initialize(name,email,pa

Storage Classes

Storage classes are used to check the visibility and scope of the variables. There are 5 types of storage classes. auto storage class->   the auto storage class is a default storage class and it  is for all local variables. Its sc

Steps to describe how to create product and assign to category

1. In admin panel click on Catalog->Manage Products. 2. Click on Add Product button. 3. Select Attribute Set and Product Type.(Default & Simple Product) 4. In General tab fill the mendatory details like Name, Description, Short Description,

How to create an attribute and apply it to magento products?

Hello Readers, In this tutorial, I am going to show you how to create an attribute" and apply it to Magento products. 1. Go to Catalog -> Attributes -> Manage Attributes 2. click on “Add New Attribute button in the top right”

How to Print Floyd's Triangle in php ?

Hello readers, today I have taken example of Floyds triangle. Floyd's  triangle is a right-angled triangle of  array having natural numbers. The  natural numbers are printed in such a manner , that it will look like right angle tri

TextToSpeech API provided by Apple

Apple has provided a powerful api to play audio from text and here are the steps to achieve:   1-  Import AVFoundation framework   2- Initialise AVSpeechSynthesizer(as below) let synthesizer = AVSpeechSynthesizer()   3- Cre

How to change voice using AVSpeechSynthesis in swift

This blog includes the use of - AVSpeechSynthesisVoice  If we want to change the default voice i.e system voice then we need to use speechVoices{} array which contains the name of persons and locations. iOS has a nice method for setting the v

How to get height and width of a html element?

Hello Reader's If you are dealing with JQuery in your website and want to get the height and width of any html element then this blog will very helpful to you.  So lets get started working of getting the height and width of a div . First yo

How to create and delete zip folders using PHP

Hello Reader's, If you want to make folder zip functionality through website then PHP give you to do this. PHP uses  ZipArchive() to create the zip files from the destination path provided. So lets get started working creating a zip folder.

1 35 76
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: