Alternate Row Color in Crystal Report


Most of the time while developing reports people wonder how to have alternating row colours in the report like below.

Customer Name Address City State Zip
Suparba panda 123 olive rd St Louis MO  54678
John Doe 456 Tree drive Raleigh NC 14676
Jane Doe 768 Hudson rd Atlanta GA 76555

There is a trick to it.

Go to the format section of the Details. Click the Colour Tab. Then click the button next to the Background Colour Check-box..
CR1

In the formula editor of background colour, type the following:
if RecordNumber mod 2 = 0 then crSilver else crNoColor

CR2

Save and close the editor.
And now when you run the report you will see alternate colours of silver and white in the details section.

How to root Samsung Galaxy Core 2 (SM-G355H)


samsung_galaxy_core_ii

Detailed steps:
1. Download the file attached in this post and copy it into your external SD card
2. Switch off your phone and boot into recovery by holding Volume Up + Power + Home buttons (Stock recovery is able to flash this file)
3. Navigate by pressing the Volume Up/Down button and choose "Apply update from external storage" by using the Power button.
4. Select the file UPDATE-Kinguser-3.4.0.zip
5. The phone will auto reboot and gives root access
6. To check root access download and install Root Checker from Google Play Store. 

Attached Files     File Type: zip UPDATE-Kinguser-3.4.0.zip 


Source: Internet

Track your lost Android device with Google’s Android Device Manager


Requirements:
  • Your device is connected with your Google account.
  • Your device has access to the internet.
  • Allowed Android Device Manager (ADM) to locate your device (turned on by default). This can changed in the Google Settings app.
  • Allowed ADM to lock your device and erase its data (turned off by default).
Android Device Manager is a Google’s official and easy-to-use tool to track your Android phone or tablet. The best thing about it is that you don’t need to install an app to be able to track your devices. The only requirement is that your device is connected to your Google account, turned on and connected to the internet. All you need to do is visit the Android Device Manager while being logged into your Google Account. Once the site is loaded it will automatically try to track down your phone. If you have several Android devices registered, make sure the right one is chosen in the dropdown menu.
In a recent update, Google implemented some of ADM’s features into their search results page. This means that you’re able to quickly locate any registered Android device right from the search results. By using the search phrase “where is my phone”, Google displays a little map above the search results in which it will try to find your phone. Once found, you can let it ring by clicking on “Ring” at the bottom left.
android-device-manager-search
Although this makes it more convenient to find your phone quickly, it won’t offer you all the options you get with the full version of Android Device Manager.
Using ADM, you are able to track your registered Android devices, let your phone ring and wipe your phone’s data (which has to be enabled manually). Besides that, ADM doesn’t offer more options to remote control your phone. I hope that Google keeps improving it and introduces more helpful features, such as  taking pictures in case it got stolen and you want to take a snapshot of the person who took it.
In case there’s no laptop around when you lose your device, you can also use someone else’s Android phone to track it. Instead of using the mobile browser, you can also use the Android Device Manager app. If you the other phone doesn’t have it, simply download it here. You can sign in using the guest mode and your Google account credentials. Now you should be able to track your lost device, let it ring or wipe its data.
Android-Device-Manager
Are you not able to locate your phone this way? This can happen for several reasons. The one you should hope for, is that your device is simply not connected to the internet or turned off. In that case, simply keep trying to track it until it (hopefully) connects to Google’s services again.
In case it got stolen, it’s possible that the thief has disconnected your device from your Google Account. If that happens, neither Android Device Manager nor any other tracking tool will be able to locate the device, since it’s necessary to be logged into your Google Account. This doesn’t apply to previously installed tracking apps but in this scenario there are none on the phone. However, there’s one last resort but more on that later.
Source: Internet

iRoot Guide – Rooting Guide for Any Android Device


Android is the most popular smartphone operating systems in the market till now. It offers a variety of apps and settings but, eventually reach their usage and customization limits at a certain point. Rooting your android device (smartphone or tablet) will offer you thousands of tweaks, skins and new apps that you should not miss out.
Root-Your-Device-Rooting-Guide-for-Any-Android-Device
In this Rooting guide, we’ll be using iRoot. iRoot is a rooting software that supports more than 150,000 devices from Android OS 2.2 to 4.4. This number is still growing though.
iRoot is also known as Root Master. It’s a Windows Application that helps you to root your android phone in a single click. Here, u can see ‘How to use iRoot to Root your Android Device?’.
Important points to remember:
  • Your Android Device’s data like contacts, pictures, videos, and music etc won’t be affected with this method.
  • Your Android Device’s warranty may be void after this process.
How to use iRoot? – iRoot Guide [Rooting Guide for any Android Device]
Done!
1. Enable USB Debugging in your phone from Developer options.
(To enable Developer options go to Settings >> About phone >> Tap 5 times on Build Number)
2. If you’ve not installed USB drivers for your device then wait for the device to automatically install them. If it doesn’t, then download them from web.
3. Download and install iRoot.
4. After successful installation, open it.
iRoot
5. Connect your Android device to the computer.
Connect-Device
Once your device is successfully connected to iRoot, it will automatically detect your device.
6. Now click on “Root” to start rooting process.
Rooting
WARNING: Don’t touch USB cable while rooting is being done as any interruptions may cause hard-brick (permanent device failure) to your device.
Once successful root, your phone will automatically reboot.
7. Now download and install SuperSU from Google Play store to control root permissions.
That’s all. Your device is now successfully rooted. To check whether your device is successfully rooted or not download Root Checker from Play Store.
Source: Internet

Calling ASP.Net WebMethod using jQuery AJAX


jQuery allows you to call Server Side ASP.net methods from client side without any PostBack. Actually it is an AJAX call to the server but it allows us to call the method or function defined server side.
Syntax
The following picture describes the syntax of the jQuery AJAX call.
WebMethod using jQuery AJAX
HTML Markup
The following HTML Markup consists of an ASP.Net TextBox and an HTML Button.
<div>
Your Name :
<asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
<input id="btnGetTime" type="button" value="Show Current Time"
    onclick = "ShowCurrentTime()" />
</div>
Client Side Script
When the Button is clicked the ShowCurrentTime JavaScript function is executed which makes an AJAX call to the GetCurrentTime WebMethod. The value of the TextBox is passed as parameter to the WebMethod.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript"></script>
<script type = "text/javascript">
function ShowCurrentTime() {
    $.ajax({
        type: "POST",
        url: "CS.aspx/GetCurrentTime",
        data: '{name: "' + $("#<%=txtUserName.ClientID%>")[0].value + '" }',
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        success: OnSuccess,
        failure: function(response) {
            alert(response.d);
        }
    });
}
function OnSuccess(response) {
    alert(response.d);
}
</script>
The WebMethod
The following WebMethod returns a greeting message to the user along with the current server time. An important thing to note is that the method is declared as static(C#) and Shared (VB.Net) and is decorated with WebMethod attribute, this is necessary otherwise the method will not be called from client side jQuery AJAX call.
C#
[System.Web.Services.WebMethod]
public static string GetCurrentTime(string name)
{
    return "Hello " + name + Environment.NewLine + "The Current Time is: "
        + DateTime.Now.ToString();
}
VB.Net
<System.Web.Services.WebMethod()> _
Public Shared Function GetCurrentTime(ByVal name As String) As String
   Return "Hello " & name & Environment.NewLine & "The Current Time is: " & _
            DateTime.Now.ToString()
End Function
Source: Internet