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

Search In

Check for the iPhone Models

To know On which hardware iOS is ruining like iPhone4 , iPhone5 etc below is the code for that #import <sys/utsname.h> -(NSString*) deviceName { struct utsname systemInfo; uname(&systemInfo); return [NSStr

Variable Number of Parameters

If you declare a method that takes two parameters, on This method call , you need to pass two parameters along with it. But, Ruby facilitates to declare methods that can work with a variable number of parameters. Example def evon (*t) puts "

What are the best practices and best places for laravel 4 helpers or basic functions?

Many user will make a helper in app folder but if you want to use helper the best practice and best place to use Laravel 4.x helper in app/libraries folder. So all the basic function and helper we should define in app/libraries. Advantage of librar

Laravel, get last insert id using Eloquent

Laravel 4.x we have a facility to get last inserted id easily. By showing one of my code you will get easily understanding. Example: $karmaNote = new Karmanote; $karmaNote ->reqid = $meetingId; $karmaNote ->connectionidgGi

Retrieving GET and POST data inside controller in Laravel 4

Retrieving GET and POST data inside controller in the basic requirement which should know everyone when we are working in any framework. In Laravel 4.x It is very easy to get "Get & Post" data. Examples: The Example for Get data is $currentTab

How to set a default attribute value for a Laravel / Eloquent model?

Laravel 4.x provide n number of services to solve basic issues. By using Laravel 4.x we will easily set a default attribute for a Laravel/Eloquent model. To achieve this we have to define value like below example: Example: protected $defaults = ar

'Failed to open stream: Permission denied' error - Laravel

Some time when we want to access our public folder then we get the error "Failed to open stream: Permission denie' error - Laravel" . So when we get this error .Do not think much we have to clear our cache and just give permission to our folder and w

Crop Images without degrading their quality (Using CGContextRef)

Often the images cropped from other images in iPhone SDK are degraded in quality. This is because we take a snapshot of the original image (of the desired area). But the below mentioned code prevents from happening the above mentioned issue. The belo

UITableView extra spacing(padding) on the top in IOS7

When using xcode4.5 or 4.6(i.e ios6) UITableView added to xib files appears as it is. But when it comes to IOS7(i.e When you are using xcode5) along with adding the UITableView to xib you also need to add a small code which will remove that padding.

Basic HTML Document

HTML stands for HyperText Markup Language. It’s a type of text document, where text is ‘marked up’ by using special tags that inform a program that reads the text in how to render the text. Typically that program is a Web Browser such as Internet Exp

1 … 36 … 557
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: