Monday, 9 December 2013
Friday, 6 December 2013
Big on ergonomics, small on gimmick
At first glance, the Galaxy Round appears similar to the Galaxy Note 3 phone, which also has a big display measuring 5.7 inches diagonally. I could see the Round's left and right edges were raised slightly only when viewed from the top or from the bottom.
After handling the device for about 20 minutes, it became clear why Samsung shied away from putting a more dramatic curve in the display.
Reading news articles and Twitter messages made me feel light-headed after just a few minutes, especially with the phone in an upright position. Sentences weren't level and looked skewed, hampering my reading experience.
It's less of a problem, but still one, with the phone placed horizontally.
Perhaps this is an optical distortion that I'd get used to after a while. But given that computer screens, laptops and smartphones are mostly flat, I wouldn't want to constantly switch my eyes back and forth between a curved display and flat screens everywhere else.
Aside from the price tag of more than $1,000, the mobile reading experience was the chief problem I found during my brief hands-on. When watching videos or browsing pictures on the Round, I noticed little difference compared with flat displays.
According to Samsung, curved displays are a step toward mobile devices that are foldable like a map, which explains why the Round generated excitement in tech circles.
It says inflexible curved displays have benefits for users. None of them, however, seem transformative.
Samsung's promotions for the Round say the curve makes it easier to grip the giant phone. But when answering calls, I could barely notice a difference from a flat screen.
Two new features make use of the display's curve only when the Round in screen-off mode is placed on a flat surface, allowing it to be rocked like a cradle. Tilting the device to one side displays its battery status, time, missed calls and unread emails. But to check emails, I had to unlock the Round and go to the home screen.
The second feature is music playback. You can skip to the next song or go back one by tapping the right or left corners of the display. This feature is useless when listening to music on the move.
All this points to the Galaxy Round being an experiment for Samsung and not a product meant to be sold widely.
Like the first generation of the Galaxy Gear, the wristwatch released last month that works in conjunction with some Samsung smartphones to display emails and other information, the Galaxy Round appears built to test its potential.
Samsung can afford to do this because the roaring success of its smartphones has endowed it with cash to burn.
Besides being the world's largest seller of smartphones, Samsung has a business designing and making display screens. It has its own manufacturing plants and engineering staff. It doesn't need to pay another company or hire experts to turn a concept into a product.
For a company that wants to be seen as an innovator rather than a copycat, as Apple Inc. has alleged in multiple lawsuits over phone designs, the Round also sends a message that Samsung is trying to rethink how phones look and feel.
For consumers, there is little reason to pay 1.09 million won ($1,027) for the Galaxy Round. It's available only in South Korea through SK Telecom. The company gives a discounted monthly service rate when the Round is bought along with a two-year contract but it is still the most expensive smartphone in the market.
In South Korea, the same money can buy a Galaxy Note 3, which has similar features and a stylus for note taking on the screen. The Note 3 is just a hair thicker and a tad heavier than the Round, but it also has more battery life.
Samsung said the Round's overseas release schedule is still up in the air.
Courtsey : NDTV GADGETS
Thursday, 5 December 2013
Wednesday, 4 September 2013
Labels:
TIPS
Friday, 16 August 2013
In this example I am going to explain how a light box can be created without JQUERY or any other such extensions.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>LIGHT BOX</title>
<script type="text/javascript">
function test()
{
light.style.display ="inline-block";
}
function hide()
{
light.style.display="none";
}
</script>
</head>
<body>
<a onclick="test()"><img src="tulips.jpg" alt="image not found" width="146" height="118" align="middle" /></a>
<div id="light" onclick="hide()" style="display:none;background-color: #000000; opacity:.9;text-align: center; background-position: center; top: 0px; right: 0px; bottom: 0px; left: 0px; position: absolute; z-index: 2;">
<img src="tulips.jpg" />
</div>
</body>
</html>
Even though I use HTML here, you can covert it into any other programming language.
Tuesday, 13 August 2013
Labels:
TIPS
Monday, 12 August 2013
In the previous post it is mentioned how to enable drag and drop feature in a gridpanel without any additional DLLs.
So first add a grid panel with drag and drop facility in aspx page.
<ext:GridPanel
ID="GridPanel1"
runat="server"
StoreID="Store1"
Title="Drag and drop to adjust Timetable"
Collapsible="true"
Cls="x-grid-custom"
ForceFit="true">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ID="Column1" runat="server" Text="Monday" DataIndex="Monday" Width="75" />
<ext:Column ID="Column2" runat="server" Text="Tuesday" Width="75" DataIndex="Tuesday"/>
<ext:Column ID="Column3" runat="server" Text="Wednesday" Width="75" DataIndex="Wednesday" />
<ext:Column ID="Column4" runat="server" Text="Thursday" Width="75" DataIndex="Thursday" />
<ext:Column ID="Column5" runat="server" Text="Friday" Width="75" DataIndex="Friday" />
<ext:Column ID="Column6" runat="server" Text="Saturday" Width="75" DataIndex="Saturday" />
</Columns>
</ColumnModel>
<View>
<ext:GridView ID="GridView1" runat="server">
<Plugins>
<ext:CellDragDrop ID="CellDragDrop1" runat="server" ApplyEmptyText="false" EnforceType="true" />
</Plugins>
</ext:GridView>
</View>
</ext:GridPanel>
<ext:Label ID="Label1" runat="server" Hidden="true" /><br />
<ext:Label ID="Label2" runat="server" Hidden="true"/><br />
<ext:Label ID="Label3" runat="server" Hidden="true"/><br />
<ext:Label ID="Label4" runat="server" Hidden="true"/><br />
<ext:Label ID="Label5" runat="server" Hidden="true"/><br />
<ext:Label ID="Label6" runat="server" Hidden="true"/>
The labels are temporary storage locations and therefore you have to give the same number of Labels as that of the columns.Here I use 6 Labels since I had 6 columns.
Now at the code behind section give the following code.
protected void SubmitSelection(object sender, DirectEventArgs e)
{
string json = e.ExtraParams["Values"];
Dictionary<string, string>[] companies = JSON.Deserialize<Dictionary<string, string>[]>(json);
foreach (Dictionary<string, string> row in companies)
{
int i = 1;
StringBuilder sb = new StringBuilder();
StringBuilder sb1 = new StringBuilder();
StringBuilder sb2 = new StringBuilder();
StringBuilder sb3 = new StringBuilder();
StringBuilder sb4 = new StringBuilder();
StringBuilder sb5 = new StringBuilder();
foreach (KeyValuePair<string, string> keyValuePair in row)
{
if (i == 1)
{
sb.Append(keyValuePair.Value);
}
else if (i == 2)
sb1.Append(keyValuePair.Value);
else if (i == 3)
sb2.Append(keyValuePair.Value);
else if (i == 4)
sb3.Append(keyValuePair.Value);
else if (i == 5)
sb4.Append(keyValuePair.Value);
else if(i == 6)
sb5.Append(keyValuePair.Value);
i++;
}
this.Label1.Text = sb.ToString();
this.Label2.Text = sb1.ToString();
this.Label3.Text = sb2.ToString();
this.Label4.Text = sb3.ToString();
this.Label5.Text = sb4.ToString();
this.Label6.Text = sb5.ToString();
SqlConnection con = new SqlConnection("YOUR CONNECTIONSTRING");
string query = "insert into tablename 0values ('" + Label1.Text + "','" + Label2.Text + "','" + Label3.Text + "','" + Label4.Text + "','" + Label5.Text + "','" + Label6.Text + "')";
SqlCommand cmd = new SqlCommand(query, con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
In this the 'i' value represents the number of columns.
Add this simple code for enabling drag and drop feature on a GridPanel in EXT.NET.
<ext:GridPanel
ID="GridPanel1"
runat="server"
StoreID="Store1"
Title="Drag and drop to adjust Timetable"
Collapsible="true"
Cls="x-grid-custom"
ForceFit="true">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ID="Column1" runat="server" Text="Monday" DataIndex="Monday" Width="75" />
<ext:Column ID="Column2" runat="server" Text="Tuesday" Width="75" DataIndex="Tuesday"/>
<ext:Column ID="Column3" runat="server" Text="Wednesday" Width="75" DataIndex="Wednesday" />
<ext:Column ID="Column4" runat="server" Text="Thursday" Width="75" DataIndex="Thursday" />
<ext:Column ID="Column5" runat="server" Text="Friday" Width="75" DataIndex="Friday" />
<ext:Column ID="Column6" runat="server" Text="Saturday" Width="75" DataIndex="Saturday" />
</Columns>
</ColumnModel>
<View> <ext:GridView ID="GridView1" runat="server"> <Plugins> <ext:CellDragDrop ID="CellDragDrop1" runat="server" ApplyEmptyText="false" EnforceType="true" /> </Plugins> </ext:GridView> </View>
</ext:GridPanel>
For saving the GridPanel which is altered using Drag and Drop Feature,just go through the next post.....
Sunday, 11 August 2013
Given below is a simple code for adding on Click Event on a Label control.
First add a Label on aspx page like this.
<asp:label ID="Label1" runat="server" text="CLICKHERE"></asp:label>
Now at the Page Load Event on cs page give this code.
protected void Page_Load(object sender, EventArgs e)
{
Label1.Attributes.Add("onClick", "clickhere();");
}
Now you can define clickhere() function under script in aspx page like this.
<script type="text/javascript">
function clickhere()
{
alert("You Clicked on the LABEL");
}
</script>
Saturday, 10 August 2013
REALLY UNBELIEVABLE GUYS. MUST WATCH THIS.............................................
9:39:00 am by Unknown
Labels:
VIDEOS
The code given below is to perform Gridpanel insertion in EXT.NET.
First in the aspx page create a gridpanel like this.
<ext:GridPanel
ID="GridPanel1"
runat="server"
StoreID="Store1"
Collapsible="true"
Cls="x-grid-custom"
ForceFit="true">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ID="Column1" runat="server" Text="Monday" DataIndex="Monday" Width="75" />
<ext:Column ID="Column2" runat="server" Text="Tuesday" Width="75" DataIndex="Tuesday"/>
<ext:Column ID="Column3" runat="server" Text="Wednesday" Width="75" DataIndex="Wednesday" />
<ext:Column ID="Column4" runat="server" Text="Thursday" Width="75" DataIndex="Thursday" />
<ext:Column ID="Column5" runat="server" Text="Friday" Width="75" DataIndex="Friday" />
<ext:Column ID="Column6" runat="server" Text="Saturday" Width="75" DataIndex="Saturday" />
</Columns>
</ColumnModel>
<Buttons>
<ext:Button ID="Button1" runat="server" Text="Reset">
<DirectEvents>
<Click OnEvent="Reset">
</Click>
</DirectEvents>
</ext:Button>
<ext:Button ID="Button2" runat="server" Text="Submit">
<DirectEvents>
<Click OnEvent="SubmitSelection">
<ExtraParams>
<ext:Parameter Name="Values" Value="Ext.encode(#{GridPanel1}.getRowsValues({selectedOnly:true}))" Mode="Raw" />
</ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:GridPanel>
<ext:Label ID="Label1" runat="server" Hidden="true" /><br />
<ext:Label ID="Label2" runat="server" Hidden="true"/><br />
<ext:Label ID="Label3" runat="server" Hidden="true"/><br />
<ext:Label ID="Label4" runat="server" Hidden="true"/><br />
<ext:Label ID="Label5" runat="server" Hidden="true"/><br />
<ext:Label ID="Label6" runat="server" Hidden="true"/>
The labels are temporary storage locations and therefore you have to give the same number of Labels as that of the columns.Here I use 6 Labels since I had 6 columns.
Now at the code behind section give the following code.
protected void SubmitSelection(object sender, DirectEventArgs e)
{
string json = e.ExtraParams["Values"];
Dictionary<string, string>[] companies = JSON.Deserialize<Dictionary<string, string>[]>(json);
foreach (Dictionary<string, string> row in companies)
{
int i = 1;
StringBuilder sb = new StringBuilder();
StringBuilder sb1 = new StringBuilder();
StringBuilder sb2 = new StringBuilder();
StringBuilder sb3 = new StringBuilder();
StringBuilder sb4 = new StringBuilder();
StringBuilder sb5 = new StringBuilder();
foreach (KeyValuePair<string, string> keyValuePair in row)
{
if (i == 1)
{
sb.Append(keyValuePair.Value);
}
else if (i == 2)
sb1.Append(keyValuePair.Value);
else if (i == 3)
sb2.Append(keyValuePair.Value);
else if (i == 4)
sb3.Append(keyValuePair.Value);
else if (i == 5)
sb4.Append(keyValuePair.Value);
else if(i == 6)
sb5.Append(keyValuePair.Value);
i++;
}
this.Label1.Text = sb.ToString();
this.Label2.Text = sb1.ToString();
this.Label3.Text = sb2.ToString();
this.Label4.Text = sb3.ToString();
this.Label5.Text = sb4.ToString();
this.Label6.Text = sb5.ToString();
SqlConnection con = new SqlConnection("YOUR CONNECTIONSTRING");
string query = "insert into tablename 0values ('" + Label1.Text + "','" + Label2.Text + "','" + Label3.Text + "','" + Label4.Text + "','" + Label5.Text + "','" + Label6.Text + "')";
SqlCommand cmd = new SqlCommand(query, con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
In this the 'i' value represents the number of columns.
Friday, 9 August 2013
The code given below is to perform Gridpanel insertion in EXT.NET.
First in the aspx page create a gridpanel like this.
<ext:GridPanel
ID="GridPanel1"
runat="server"
StoreID="Store1"
Collapsible="true"
Cls="x-grid-custom"
ForceFit="true">
<ColumnModel ID="ColumnModel1" runat="server">
<Columns>
<ext:Column ID="Column1" runat="server" Text="Monday" DataIndex="Monday" Width="75" />
<ext:Column ID="Column2" runat="server" Text="Tuesday" Width="75" DataIndex="Tuesday"/>
<ext:Column ID="Column3" runat="server" Text="Wednesday" Width="75" DataIndex="Wednesday" />
<ext:Column ID="Column4" runat="server" Text="Thursday" Width="75" DataIndex="Thursday" />
<ext:Column ID="Column5" runat="server" Text="Friday" Width="75" DataIndex="Friday" />
<ext:Column ID="Column6" runat="server" Text="Saturday" Width="75" DataIndex="Saturday" />
</Columns>
</ColumnModel>
<Buttons>
<ext:Button ID="Button1" runat="server" Text="Reset">
<DirectEvents>
<Click OnEvent="Reset">
</Click>
</DirectEvents>
</ext:Button>
<ext:Button ID="Button2" runat="server" Text="Submit">
<DirectEvents>
<Click OnEvent="SubmitSelection">
<ExtraParams>
<ext:Parameter Name="Values" Value="Ext.encode(#{GridPanel1}.getRowsValues({selectedOnly:false}))" Mode="Raw" /> </ExtraParams>
</Click>
</DirectEvents>
</ext:Button>
</Buttons>
</ext:GridPanel>
<ext:Label ID="Label1" runat="server" Hidden="true" /><br />
<ext:Label ID="Label2" runat="server" Hidden="true"/><br />
<ext:Label ID="Label3" runat="server" Hidden="true"/><br />
<ext:Label ID="Label4" runat="server" Hidden="true"/><br />
<ext:Label ID="Label5" runat="server" Hidden="true"/><br />
<ext:Label ID="Label6" runat="server" Hidden="true"/>
The labels are temporary storage locations and therefore you have to give the same number of Labels as that of the columns.Here I use 6 Labels since I had 6 columns.
Now at the code behind section give the following code.
protected void SubmitSelection(object sender, DirectEventArgs e)
{
string json = e.ExtraParams["Values"];
Dictionary<string, string>[] companies = JSON.Deserialize<Dictionary<string, string>[]>(json);
foreach (Dictionary<string, string> row in companies)
{
int i = 1;
StringBuilder sb = new StringBuilder();
StringBuilder sb1 = new StringBuilder();
StringBuilder sb2 = new StringBuilder();
StringBuilder sb3 = new StringBuilder();
StringBuilder sb4 = new StringBuilder();
StringBuilder sb5 = new StringBuilder();
foreach (KeyValuePair<string, string> keyValuePair in row)
{
if (i == 1)
{
sb.Append(keyValuePair.Value);
}
else if (i == 2)
sb1.Append(keyValuePair.Value);
else if (i == 3)
sb2.Append(keyValuePair.Value);
else if (i == 4)
sb3.Append(keyValuePair.Value);
else if (i == 5)
sb4.Append(keyValuePair.Value);
else if(i == 6)
sb5.Append(keyValuePair.Value);
i++;
}
this.Label1.Text = sb.ToString();
this.Label2.Text = sb1.ToString();
this.Label3.Text = sb2.ToString();
this.Label4.Text = sb3.ToString();
this.Label5.Text = sb4.ToString();
this.Label6.Text = sb5.ToString();
SqlConnection con = new SqlConnection("YOUR CONNECTIONSTRING");
string query = "insert into tablename 0values ('" + Label1.Text + "','" + Label2.Text + "','" + Label3.Text + "','" + Label4.Text + "','" + Label5.Text + "','" + Label6.Text + "')";
SqlCommand cmd = new SqlCommand(query, con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
}
In this the 'i' value represents the number of columns.
Thursday, 8 August 2013
Under <head> add this Script
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js" type="text/javascript"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js" type="text/javascript"></script>
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="Stylesheet" type="text/css" />
<script type="text/javascript">
$(function () {
$("[id$=Date]").datepicker({
showOn: 'button',
buttonImageOnly: true,
buttonImage: 'calendaricon.jpg' });
});
</script>
You can download the JQUERY from the following link.
Now add this in gridview.
<asp:TemplateField HeaderText=" Date">
<ItemTemplate>
<asp:TextBox ID="Date" runat="server" ReadOnly = "true"></asp:TextBox>
</ItemTemplate>
</asp:TemplateField>
At CS page give this code.
string tempdate = Request.Form[thisGridViewRow.FindControl("Date").UniqueID];
SqlConnection con = new SqlConnection(connectionstring);
string query = "insert into table values('" +tempdate+ "')";
SqlCommand cmd = new SqlCommand(query, con);
con.Open();
cmd.ExecuteNonQuery();
con.Close();
Wednesday, 7 August 2013
Labels:
TIPS
Tuesday, 6 August 2013
Labels:
TIPS
Subscribe to:
Posts (Atom)