Tuesday, 3 December 2013

Big Data Tech Conclave 2013 Bangalore

Register via:

http://bigdataconclave.com/register.php

email: in@asiaknow.com

About:

The Big Data Tech Conclave Winter Edition will be an ideal forum to discuss the way forward in addressing the key issues, and we look forward to see you on board an actively share, benchmark and discuss the emerging technologies, tools and challenges and identify the immense opportunities available in Big Data for you and your organization.

The winter edition will feature presentations, workshops, case studies and key insights into Algorithms and Machine Learning, Analytic Insights, Architectural Patterns, Data Management, Design/Interface and Visualization, Enterprise IT, Testing, Privacy, Compliance and Governance.

Key emphasis will be provided in areas such as parallel computing innovations in Big Data, Harnessing and inferencing the Semantic Web, SQL on Haddoop and blending the traditional RDBMS and NOSQL databases with a special focus on workshops around some key tools / technologies in this space such as Impala, Parallel Computing with R, Stinger, Spark/Shark, Gehi, Drill, Apache Mahout and SparQL.

We would like to take this opportunity to thank all our Speakers, Sponsors and Delegates who made the spring edition of the Big Data Tech conclave 2013, which was held on 26 & 27 April 2013 at The Marriott Whitefield Bangalore, a thumping success.

Big Data Tech Conclave 2013 saw over 300 delegates participate from enterprise, Technology, ITES, Big Data Start ups, venture capitals and Data centers, reiterating that India is the place to be, if you want to take Big Data to the next level.

We thank all our esteemed participants for the valuable feedback and suggestions that we have received in helping us design the winter edition of the Big Data Tech Conclave 2013 to be held on the 6th to the 7th of December 2013.

During the spring edition, few companies were keen to use the platform to post jobs for talent acquisition in Big Data. For the winter edition we would be creating a job posting link on the bigdataconclave.com website.

Friday, 29 November 2013

Displaying Messages in Alert using LWUIT

Displaying Messages in Alert using LWUIT for Nokia

Displaying Alert in LWUIT for Nokia

asha mobile application

When using LWUIT we should first add and initialise LWUIT in our project.If you want to know how to add LWUIT and Initialise LWUIT please read our previous post NOKIA MOBILE APPLICATION DEVELOPMENT STAGE 3 first then only you can use the following tutorial.

Alert in LWUIT is somewhat different from Alert in LCUDI.We have Alert class in LCUDI which can be directly used in our project instead of that we have to Dialog Class in LWUIT

To create an Alert in LWUIT:

Dialog alert=new Dialog();
alert.setTitle("Alert Message");

You can also set timeout for each alert message in LWUIT like in LCUDI but the time must in Microsecond format.

To set timeOut for Alert in LWUIT: 

alert.setTimeout(2000);

To display the alert in screen you can use two different ways one is using show() method another one is to use showDialog() method.

show() method:

show(int,int,int,int,boolean) is the syntax for show method in which you have to mention the position of the Alert message and final argument boolean is used to mention whether to include the Title for Alert or not (True for showing Title and False for not showing)

e.g

alert.Show(90,90,10,10,true);

showDialog() method:

ShowDialog() doesn't accept any parameters but when you use the showDialog() method your  alert message will be in centre of screen by default.

e.g

alert.showDialog();

SAMPLE CODE:

import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

import com.sun.lwuit.Button;
import com.sun.lwuit.Dialog;
import com.sun.lwuit.Display;
import com.sun.lwuit.Form;
import com.sun.lwuit.events.ActionEvent;
import com.sun.lwuit.events.ActionListener;


public class TestClass extends MIDlet {

Form f1;
Button b1;
Dialog alert;

public TestClass() {
// TODO Auto-generated constructor stub
}

protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub

}

protected void pauseApp() {
// TODO Auto-generated method stub

}

protected void startApp() throws MIDletStateChangeException {
// TODO Auto-generated method stub
Display.init(this);
 f1=new Form("LWUIT Alert");
 b1=new Button("Show Alert");
 b1.addActionListener(new ActionListener()
 {
 public void actionPerformed(ActionEvent ae)
 {
 alert=new Dialog();
 alert.setTitle("I am a Alert");
 alert.setTimeout(2000);
 alert.showDialog();
 }
 });
 f1.addComponent(b1);
 f1.show();

}


}


The output will resemble the one given below


asha mobile application
 asha mobile application

Windows phone application development for beginner

Windows Phone for Absoulte Beginners part 4

Working with CheckBox:

windows phone 7


The specialty of check box is that we can choose multiple choices from the given also we can able to select nothing from the list. Check boxes are normally have two states such as checked and unchecked if checked means its Boolean equivalent is true, if unchecked means its Boolean equivalent is false.

Using Check box in Windows phone:

To use Check box in Windows Phone use the following code given below.

<CheckBox Content="Cricket"  Height="72" HorizontalAlignment="Left"Margin="124,133,0,0" Name="checkBox1" VerticalAlignment="Top"Width="144" />

To access the state of Checkbox in c# code use as following
checkBox1.IsChecked
This will return the state of checkbox whether it is checked or not in bool? type
To make Checkbox to be enable by default use the following code
<CheckBox Content="Volley Ball" Height="72" HorizontalAlignment="Left"Margin="124,211,0,0" Name="checkBox4" VerticalAlignment="Top"Width="170" Grid.Row="1" IsChecked="True" />

So the code is actually IsChecked=”True”.

Here we developed a simple application where we have four checkboxes and we show the number of checkboxes in checkboxes checked in run time in a textbox below.

Sample Application:


MainPage.xaml


<phone:PhoneApplicationPage
    x:Class="TextBox.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="PortraitOrLandscape" Orientation="Portrait"
    shell:SystemTray.IsVisible="True">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <CheckBox Content="Cricket" Grid.Row="1" Height="72"HorizontalAlignment="Left" Margin="124,133,0,0" Name="checkBox1"VerticalAlignment="Top" Width="144" />
        <CheckBox Content="Basket Ball" Height="72"HorizontalAlignment="Left" Margin="124,367,0,0" Name="checkBox2"VerticalAlignment="Top" Width="184" Grid.Row="1" />
        <CheckBox Content="Tennis" Height="72"HorizontalAlignment="Left" Margin="124,289,0,0" Name="checkBox3"VerticalAlignment="Top" Width="144" Grid.Row="1" />
        <CheckBox Content="Volley Ball" Height="72"HorizontalAlignment="Left" Margin="124,211,0,0" Name="checkBox4"VerticalAlignment="Top" Width="170" Grid.Row="1" IsChecked="False" />
        <TextBlock Grid.Row="1" Height="47" HorizontalAlignment="Left"Margin="28,94,0,0" Name="textBlock1" Text="Intrested in:"VerticalAlignment="Top" FontSize="32" Width="204" />
        <TextBox Grid.Row="1" Height="72" HorizontalAlignment="Left"Margin="161,617,0,0" Name="textBox1" Text="" VerticalAlignment="Top"Width="147" />
        <TextBlock Grid.Row="1" Height="30" HorizontalAlignment="Left"Margin="124,563,0,0" Name="textBlock2" Text="Number of boxes checked"VerticalAlignment="Top" />
        <!--ContentPanel - place additional content here-->
    </Grid>

</phone:PhoneApplicationPage>

Here we generated two methods checked and unchecked where checked will work whenever the checkbox is checked and whenever checkbox is unchecked uncheck method will work. We provided screen shots of how to generate the Check and Unchecked methods here


windows phone properties
windows phone properties


 

 

 

 

 

 

 

MainPage.xaml.cs

using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace TextBox
{
    public partial class MainPage : PhoneApplicationPage
    {
        int count = 0;
        // Constructor
        public MainPage()
        {
            InitializeComponent();
        }

     private void checkBox1_Checked(object sender, RoutedEventArgs e)
        {
            count++;
            textBox1.Text = Convert.ToString(count);
        }

    private void checkBox1_Unchecked(object sender, RoutedEventArgs e)
        {
            count--;
            textBox1.Text = Convert.ToString(count);
        }

      private void checkBox4_Checked(object sender, RoutedEventArgs e)
        {
            count++;
            textBox1.Text = Convert.ToString(count);
        }

    private void checkBox4_Unchecked(object sender, RoutedEventArgs e)
        {
            count--;
            textBox1.Text = Convert.ToString(count);
        }

    private void checkBox3_Unchecked(object sender, RoutedEventArgs e)
        {
            count--;
            textBox1.Text = Convert.ToString(count);
        }

      private void checkBox3_Checked(object sender, RoutedEventArgs e)
        {
            count++;
            textBox1.Text = Convert.ToString(count);
        }

      private void checkBox2_Checked(object sender, RoutedEventArgs e)
        {
            count++;
            textBox1.Text = Convert.ToString(count);
        }

    private void checkBox2_Unchecked(object sender, RoutedEventArgs e)
        {
            count--;
            textBox1.Text = Convert.ToString(count);
        }
      
    }
}


Output will be resemble like the one given below

windows phone

Nokia Application Development

You can develop for Nokia using two ways 
  • Using Web tools  
  • Using Java tools
Here is the link for downloading tools to start developing Nokia apps.

Nokia Web App Tools:

Nokia Asha Web App Tools 3.0 beta

To develop,test,pack and deploy of Nokia Asha web apps. Download from here.

Nokia Asha Web Tools 2.3

To develop,test,pack and deploy of Nokia S40 apps .Download from here

Nokia Java App Tools:

Nokia Asha SDK 1.0 beta

To develop app for comprehensive java platform for Nokia Asha Phones especially for Nokia Asha 501 Download from here

Nokia Asha SDK 2.0

To develop s40 apps download this tool from here

If you have any clarification needed about Nokia SDKs then read the post in the following link given