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

Search In

How to create a custom UITableViewCell separator in iOS

In UITableView every UITableViewCell contains a separator line by default. If you need to create your own custom separator line then use below code inside cellForRowAtIndexPath method. UIView* separatorLineView = [[UIView alloc] initWithFrame:CGRect

How to add watermark in image using PHP script.

Hi guys ,it really helps to add watermark on images . In this code you will see that we get the position of watermark .png image where you want to place then copy to the watermark image on the main images. /* * PHP GD * adding watermark to an image

fibonaci series using arrays in Ruby

It is a series of Whole number where we have to find sum of the two preceding numbers. It Begins with 0 and 1, the sequence goes like this 0,1,1, 2, 3, 5, 8, 13, 21, 34, etc. using the formula n = n(-1) + n(-2), where the n(-1) is the the last

How to import customize module in openERP?

If you want to import customize module in OpenERP(Odoo) follow the below mentioned code and paste it in your (Python).py file: → import decimal_precision as dp from osv import fields, osv, orm from tools.translate import _ import one2many_sorted cl

How to Compute the quantity invoiced If case of a refund in openerp(odoo)-9

To Compute the quantity invoiced If case of a refund in openerp to Compute the quantity invoiced. If case of a refund, the quantity invoiced is decreased. Note that this is the case only if the refund is generated from and function given below to us

Instantiating Prefabs at runtime

From my previous blog,we all know that what prefabs are. Now,I want to explain how we instantiate prefabs and what are its advantages. public class preafabDemo : MonoBehaviour { var ball:GameObject; // Use this for initializati

How to print an NSImage

The following code prints an image stored in a file: -(void)print:(id)sender { NSImage *image = [[NSImage alloc]initWithContentsOfFile:[imageEdWindowController getImageLocation]]; [image scalesWhenResized]; NSImageView *_imageVie

Convert a Drawable into Bitmap

Following method tells how to convert a drawable into bitmap // method to convert a drawable into Bitmap public static Bitmap drawableToBitmap (Drawable drawable) { // check if drawable is the instance of BitmapDrawable if (drawable inst

Custom right bar button in UINavigationBar

Hello friends,This code is to make custom right bar button in UINavigation bar. it helped me to make custom right bar button in UINavigation bar, Hope this will help you too. UIButton *homeButton = [UIButton buttonWithType:UIButtonTypeCustom];

Mongodb Error Could not connect to a primary node for replica

Could not connect to a primary node for replica set <Moped::Cluster nodes=[<Moped::Node resolved_address="127.0.0.1:27017">] If you found above error then first check sudo service mongodb status If yes, then run following command's: 1.

1 17 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: