ArchiveDecember 2014

UIAlertView Deprecated in Xcode6.0

U

Hi All, Everybody is curious about changes made by Apple in Xcode 6 and newly added functionalities, here is the one noticeable change which is nothing but UIAlertView and UIActionsheet is deprecated. Now Apple has introduced a new class for replacement of those – UIAlertController. Let see how it can be used for displaying alertview : UIAlertController *alertController = [UIAlertController...

How to use PDO database connection in PHP

H

<?php $string = ‘Test’; # user submitted data try { #connection $conn = new PDO(‘mysql:host=localhost;dbname=myDB’, $db_username, $db_password); $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $data = $conn->query(‘SELECT * FROM myTable WHERE name = ‘ . $conn->quote($string)); // $conn->quote used to protect SQL injection...

Closures in c#

C

What are closures? To put it very simply, closures allow you to encapsulate some behaviour, pass it around like any other object, and still have access to the context in which they were first declared. This allows you to separate out control structures, logical operators etc from the details of how they’re going to be used. The ability to access the original context is what separates...

How to Fetch records from Web Services and put it into salesforce object.

H

Hi All, We can fetch  records or values from  Web Services and can save the value into our Salesforce Object.The responce we are getting it is in JSON formate.Please follow the steps below: Step 1.If you have already created the object, then make sure that all Fields are avaliable in that. Step 2.Make a Visualforce Page which will contain a button. By pressing the button, response will fetch from...

Use of basic Authentication for post URL

U

To mark all url in application authenticate, use of basic authentication could good option. In Below example I used Username and Password to generate Authentication header .   String authentication = editusername.getText().toString().trim()+”:”+editpassword.getText().toString().trim(); String authHeader =Base64.encodeToString(authentication.getBytes(), Base64.NO_WRAP);   Use...

How to make Salesforce compatible CSV file from an Excel spreadsheet.

H

While Data Migration from external system to salesforce many of us face this issue. Just follow these steps and create salesforce compatible CSV files in minutes. Open spreadsheet in Microsoft Excel. Click on Save As which will open a dialog box. In Save as type dropdown select CSV(Comma delimited). Click on Tools button on same dialog box and select web options. In newly opened dialog box select...

Laravel introduction

L

What is Laravel ? Laravel is a free, open source PHP web application framework, designed for the development of model–view–controller (MVC) web applications. Laravel is released under the MIT license, with its source code hosted on GitHub. Tutorial Details Name : Laravel – PHP Framework Type : PHP Framewrok Language : PHP Level : Beginner Estimated Time : 40 Minuets Comments : Next generation PHP...

How to create form in Laravel

H

Form is a most expected elements in website as well as web based application. Each and every interactive web apps must have a form option to communicate between users and administrator. Whatever you want to write in website, there is not alternative about form. It could be in chat, message, as well as comments. In laravel 4, you have huge flexibility to create HTML form easily. Today I will gonna...

Category