ArchiveApril 2013

Common Language Runtime in C#

C

The Common Language Runtime (CLR) is the virtual machine component of Microsoft’s .NET framework and is responsible for managing the execution of .NET programs. In a process known as Just-in-time compilation, the compiled code is converted into machine instructions  that, in turn, are executed by the computer’s CPU. The CLR provides additional services including memory management...

Transfer objects, classes, pages from one org to another org in Salesforce

T

Hi, Here are the steps to transfer the Objects(Standard/Custom), Classes, Pages, Tabs, etc from one Salesforce organization to another with having different users. 1. Open Force.com IDE and create a new Project from source org. 2. While creating project select the components you want to transfer manually. 3. After completion, select either one object/Class/Page or as many you want ; 4. Then right...

Android EditText TextWatcher

A

Android EditText TextWatcher Example TextWatcher This methods  will be called when the text is changed. Text Watcher Having Three Events. 1.beforeTextChanged 2.onTextChanged 3.afterTextChanged beforeTextChanged This means that the characters are about to be replaced with some new text. The text is  uneditable.   Use: when you need to take a look at the old text which is about to change...

Android ViewFlipper

A

Simple ViewAnimator that will animate between two or more views that have been added to it. Only one child is shown at a time. If requested, can automatically flip between each child at a regular interval. Activity Code : import android.app.Activity; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import android.view.ViewGroup; import android.view...

A PHP example of when to use rawurlencode instead of urlencode

A

In the computer world, it’s a method for defining interoptibility. RAWURLENCODE follows RFC 3986 This is general syntax of a URI URLENCODE follows RFC 1738 This is general syntax of a URL The main difference between the two is the encoding of a [SPACE] URLENCODE – encodes a space as a plus sign ‘+‘ RAWURLENCODE – encodes a space as ‘%20’ Example...

HTML5 – The Technology Changing the Web

H

HTML5 – it is the next revitalized version of HTML 4.01 that was being developed for the core markup language of the World Wide Web. It is becoming a powerful tool in building a website as itworks on “Write-Once-Run-Anywhere” methodology with high end flexibility, mobility and security. Key Factors of HTML5 – Improved Error Handling – Scripting is replaced by mark up texts...

Date Format.

D

One must be careful that, if his/her app uses system date then make sure it is having a predefined format also. Since Apple devices have individual default date formats and they are different for two different devices even if the device belongs to same category(i.e. iPhone 5, iPhone 4S, iPad and etc.) Predefining the date format will fetch the date in the defined form independent of what the...

Social Media Posts from the app.

S

Apple has introduced a very interesting and easy to use UIActivityViewController class in iOS 6.0 and above versions which allows us to directly post something using the already configured Social media ( Facebook and Twitter) Accounts in the Apple device(iPhone or iPad). Below code will help you know the concept better. NSURL * url = [NSURL URLWithString:@”;];   NSString * postText =...

Code to update an Excel using DataSet and the OleDbDataAdapter in C#

C

using System; using System.Collections.Generic; using System.Text; using System.Data.OleDb; using System.Data; namespace ExcelDataAdapter { class Program {     static void Main(string[] args)     {         string xlsFile = @"C:\Temp\AdapterTest.xls";         string xlsSheet = @"Sheet1$";         // HDR=Yes means that the first row in the range is the header row (or field names) by default...

Facebook Style Slide Menu In Android

F

Create a new android project in eclipse(Minimum Required Android SKD 2.2 ). Download slider.jar file from . Place slider.jar in lib folder in project Now our basic project structure is ready and its time to focus on layouts, replace main.xml code from given one Create two Android XML Files one for left menu and other for right menu say “left_menu.xml” and “right_menu.xml”...

Category