tag:blogger.com,1999:blog-12438997148055933852024-03-14T00:10:33.047-07:00Geek FunAnonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.comBlogger17125tag:blogger.com,1999:blog-1243899714805593385.post-16183022024733921502017-08-10T20:26:00.001-07:002017-08-10T20:26:29.457-07:00Euclid’s theorem: Proof of Infinitely many primes<div dir="ltr" style="text-align: left;" trbidi="on">
<div style="-en-clipboard: true; -evernote-webclip: true;">
<br /></div>
<div style="-en-clipboard: true; -evernote-webclip: true;">
<!--?xml version="1.0" encoding="UTF-8"?-->
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
<span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">Also known as the Euclid’s theorem, the theorem of infinitely many primes is one of the most elegant ones around. I came across it while brushing up on discrete math and had to blog about it.</span></div>
<div>
<span style="font-family: Georgia; font-size: 14px;"><br /></span></div>
<div>
<span style="font-family: Georgia; font-size: 14px;">Let's try to explain a proof of this theorem.</span></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div>
<span style="font-family: Georgia; font-size: 14px;">Before we begin, lets revisit the following things:</span></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<ol start="1">
<li><span style="font-family: Georgia; font-size: 14px;">Any number can be written as a product of prime numbers as stated in the fundamental theorem of arithmetic.</span></li>
<li><!--?xml version="1.0" encoding="UTF-8"?-->
<span style="font-family: Georgia;"><span style="font-size: 14px;">The number sets<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-Z-RTvYoO1kY/WY0h3WlqeHI/AAAAAAAADfE/3ANktxAUNP8EXEyn3K1pl725d8V9pSMYACLcBGAs/s1600/numberSets.jpeg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="1132" data-original-width="1600" height="282" src="https://2.bp.blogspot.com/-Z-RTvYoO1kY/WY0h3WlqeHI/AAAAAAAADfE/3ANktxAUNP8EXEyn3K1pl725d8V9pSMYACLcBGAs/s400/numberSets.jpeg" width="400" /></a></div>
</span></span> </li>
</ol>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
Here we go!</div>
<div>
<br /></div>
<div>
<!--?xml version="1.0" encoding="UTF-8"?-->
<div>
<span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px; font-weight: bold;">To prove:</span> <span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">There are infinite prime numbers</span>
</div>
<div>
<br /></div>
<div>
<span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">Let’s dispute that claim for a second and assume that we know all the prime numbers.</span></div>
<div>
<span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">Let’s write these as follows:</span></div>
<div>
<span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">P</span><span style="-evernote-webclip: true; font-family: Georgia; font-size: smaller; font-size: smaller; vertical-align: sub;">1</span> <span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">P</span><span style="-evernote-webclip: true; font-family: Georgia; font-size: smaller; font-size: smaller; vertical-align: sub;">2</span> <span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">P</span><span style="-evernote-webclip: true; font-family: Georgia; font-size: smaller; font-size: smaller; vertical-align: sub;">3</span><span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">….P</span><span style="-evernote-webclip: true; font-family: Georgia; font-size: smaller; font-size: smaller; vertical-align: sub;">n</span>
</div>
<div>
<br /></div>
<div>
<span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">Lets try to form a new number Q the following way:</span></div>
<div>
<span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">Q = P</span><span style="-evernote-webclip: true; font-family: Georgia; font-size: smaller; font-size: smaller; vertical-align: sub;">1</span> <span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">x P</span><span style="-evernote-webclip: true; font-family: Georgia; font-size: smaller; font-size: smaller; vertical-align: sub;">2</span> <span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">x P</span><span style="-evernote-webclip: true; font-family: Georgia; font-size: smaller; font-size: smaller; vertical-align: sub;">3</span> <span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">x</span><span style="-evernote-webclip: true; font-family: Georgia; font-size: smaller; font-size: smaller; vertical-align: sub;"> </span><span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">….P</span><span style="-evernote-webclip: true; font-family: Georgia; font-size: smaller; font-size: smaller; vertical-align: sub;">n</span> <span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">+ 1</span><br />
</div>
<div>
<br /></div>
<div>
<span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">Now, Q can either be:</span></div>
<ol start="1">
<li><span style="font-family: Georgia; font-size: 14px;">Prime</span></li>
<li><span style="font-family: Georgia; font-size: 14px;">Non prime</span></li>
</ol>
<div>
<span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">Why? Because any natural number > 1 has to be either prime or non prime.</span></div>
<div>
<br /></div>
<div>
<span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">If its:</span></div>
<ol start="1">
<li><span style="font-family: Georgia; font-size: 14px;">Prime, our list was incomplete as there is at least one more prime number and more prime numbers can be generated in a similar way. Contradiction!</span></li>
<li><span style="font-family: Georgia; font-size: 14px;">Non prime, we should still be able to write it in prime factorization form, i.e. Q should be a multiple of primes raised to some powers. But, as we can see, Q is not divisible by any of the primes in our list ( P</span><span style="font-family: Georgia; font-size: smaller; font-size: smaller; vertical-align: sub;">1</span> <span style="font-family: Georgia; font-size: 14px;">to P</span><span style="font-family: Georgia; font-size: smaller; font-size: smaller; vertical-align: sub;">n</span> <span style="font-family: Georgia; font-size: 14px;">) as, upon division, 1 will always be left over. This in turn means, that all of the prime factors of Q are not in the list, meaning our list is incomplete. Contradiction!</span></li>
</ol>
<div>
<br /></div>
<div>
<span style="-evernote-webclip: true; font-family: Georgia; font-size: 14px;">Hence, we can generalize that there are infinite many primes.</span></div>
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com1tag:blogger.com,1999:blog-1243899714805593385.post-66897568574849182662016-01-21T05:41:00.001-08:002016-08-29T06:52:15.306-07:00Dynamic Programming Example<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-9441189765572186",
enable_page_level_ads: true
});
</script>
<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<br />
Dynamic programming problem explained and solved using C++.<br />
<br />
I like programming in general, but the paradigm which appeals to me most is Dynamic programming. Back in 2013, during my college days, I used to hone my skills by solving problems on CodeChef. But then I got a job and it does not involve a lot of DP.<br />
<br />
Recently I've realized that I have become clumsy, and too used to the "safe life", hence I've decided to solve DP problems on HackerEarth, the purpose of this blog is to keep me motivated :p<br />
<br />
<br />
<b>Samu and Shopping</b><br />
<b><br /></b>
<br />
<pre style="background-color: #e6f1f6; box-sizing: border-box; color: #596063; font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13px; font-stretch: normal; line-height: 1.45; margin-top: 10px; max-width: 100%; overflow: visible; white-space: pre-wrap; word-wrap: break-word;">Samu is in super market and in a mood to do a lot of shopping. She needs to buy shirts, pants and shoes for herself and her family. There are N different shops. Each shop contains all these three items but at different prices. Now Samu has a strategy that she won't buy the same item from the current shop if she had already bought that item from the shop adjacent to the current shop.
Now Samu is confused, because although she want to follow her strategy strictly but at the same time she want to minimize the total money she spends on shopping. Being a good programmer, she asks for your help.
You are provided description about all N shops i.e costs of all three items in each shop. You need to help Samu find minimum money that she needs to spend such that she buys exactly one item from every shop.
Input Format:
First line contain number of test cases T. Each test case in its first line contain N denoting the number of shops in Super Market. Then each of next N lines contains three space separated integers denoting cost of shirts, pants and shoes in that particular shop.
Output Format:
For each test case, output the minimum cost of shopping taking the mentioned conditions into account in a separate line.
Constraints :
1 ≤ T ≤ 10
1 ≤ N ≤ 105
Cost of each item (shirt/pant/shoe) does not exceed 104
Sample Input(Plaintext Link)
1
3
1 50 50
50 50 50
1 50 50
Sample Output(Plaintext Link)
52
Explanation
There are two ways, each one gives 52 as minimum cost. One way is buy shirt from first shop, pant from second shop and shirt from third shop or she can buy shirt from first shop, shoe from second shop and shirt from third shop.
Both ways , cost comes up to 1 + 50 + 1 = 52
Time Limit: 2 sec(s) for each input file.
Memory Limit: 256 MB
Source Limit: 1024 KB
Marking Scheme: Marks are awarded if any testcase passes.
Allowed languages: C, CPP, CLOJURE, CSHARP, GO, HASKELL, JAVA, JAVASCRIPT, JAVASCRIPT_NODE, LISP, OBJECTIVEC, PASCAL, PERL, PHP, PYTHON, RUBY, R, RUST, SCALA</pre>
<br />
Okay, so we have prices of 3 items from n shops. This is best represented as a 2D array/vector with three columns and n rows.<br />
<br />
shirt pant shoes<br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableGrid" style="border-collapse: collapse; border: none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184;">
<tbody>
<tr style="height: 15.65pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td style="border: solid windowtext 1.0pt; height: 15.65pt; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;" valign="top" width="36"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1</div>
</td>
<td style="border-left: none; border: solid windowtext 1.0pt; height: 15.65pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;" valign="top" width="36"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
50</div>
</td>
<td style="border-left: none; border: solid windowtext 1.0pt; height: 15.65pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;" valign="top" width="36"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
50</div>
</td>
</tr>
<tr style="height: 15.65pt; mso-yfti-irow: 1;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 15.65pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;" valign="top" width="36"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
50</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.65pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;" valign="top" width="36"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
50</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.65pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;" valign="top" width="36"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
50</div>
</td>
</tr>
<tr style="height: 15.65pt; mso-yfti-irow: 2; mso-yfti-lastrow: yes;">
<td style="border-top: none; border: solid windowtext 1.0pt; height: 15.65pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;" valign="top" width="36"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
1</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.65pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;" valign="top" width="36"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
50</div>
</td>
<td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 15.65pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 27.0pt;" valign="top" width="36"><div class="MsoNormal" style="margin-bottom: 0.0001pt;">
50</div>
</td>
</tr>
</tbody></table>
<div>
We need to calculate the minimum money required to purchase <b>atleast</b> one item from each shop, so if we buy the cheapest item from each shop we should be fine, <b>BUT</b> we cannot buy the same item from adjacent shops(I wonder why :D). So if we buy shirt from the first shop we have to buy either pant or shoes from the adjacent shop and so on,</div>
<div>
<br /></div>
<div>
Hmm.. looks like a binary tree to me, lets try and represent it as one.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://1.bp.blogspot.com/-zDbOBrZH--4/VqDaROn-vjI/AAAAAAAAC8E/UBKB2TRfUA8/s1600/Capture.PNG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="362" src="https://1.bp.blogspot.com/-zDbOBrZH--4/VqDaROn-vjI/AAAAAAAAC8E/UBKB2TRfUA8/s640/Capture.PNG" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
The number<b>(i,j)</b> here denote the indices of the price matrix, where denotes the shop<b> </b>and <b>j </b> is the item.</div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
We start with -1,-1 as the starting point, because we want the minimum of all the possible selections(Just a way to represent, feel free to change this).</div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
So, if I start with the first item from the first shop, it would be equivalent to choosing the 0th item from the 0th shop in the matrix(think in terms of array indexes), after which I can choose either the Pant(index 1) from the second shop(index 1) OR I could choose shoes(item index 2) from the second shop(index 1), and so on.</div>
<div class="separator" style="clear: both; text-align: justify;">
These are a lot of combinations, so we will follow a greedy approach. At each node consider that child, which has the least cost. If we follow this approach bottom up,we will arrive at our answer.</div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
If each node(i,j) in the tree represents the cost of buying an item(j) from a shop(i), then it is clear that a lot of things are being recalculated, for ex the nodes(1,0) and (1,2). If we can avoid these recalculation, by remembering the previously calculated values, we can achieve better performance when we have a lot of data, and this is nothing but dynamic programming.</div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
In the code below, we use an array <b>cache[][] </b>to store previously calculated results. We calculate the cost at each node <b>only </b>if it has not been calculated earlier, and store it in the cache for later use.</div>
<div class="separator" style="clear: both; text-align: justify;">
<br /></div>
<div class="separator" style="clear: both; text-align: justify;">
Here is the code: </div>
<br />
<script src="https://gist.github.com/vaibhav-walia/5032873837b3eb500bb0.js"></script><br /></div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0Bengaluru, Karnataka 560001, India12.9715987 77.59456269999998312.4764182 76.949115699999979 13.4667792 78.240009699999987tag:blogger.com,1999:blog-1243899714805593385.post-89458031283441091172014-09-09T21:17:00.000-07:002014-09-09T21:18:50.030-07:00SAP Labs India Interview Experience<div dir="ltr" style="text-align: left;" trbidi="on">
This is regarding the selection process of SAP labs for the 2014 batch.<br />
<br />
The process was divided into two main parts<br />
1: Online Test<br />
2: Interviews<br />
<br />
<br />
<br />
<b>Online Test</b><br />
<br />
It had the following sections:<br />
<br />
<br />
<ul style="text-align: left;">
<li>Quantitative Aptitude </li>
<li>Basic Programming knowledge ( O.O concepts, Output prediction etc )</li>
<li>English</li>
<li>Code ( Candidates had to write code for a problem statement )</li>
</ul>
Most candidates faced problems in the code section so I advice students to Practice writing code, preferably on Online code editors.<br />
<br />
<br />
<b>Interviews</b><br />
<br />
Students who cleared the written round were called for Interviews.<br />
There were 4 interviews in total<br />
Two technical one Managerial and one Hr.<br />
<br />
<b>The First Interview</b><br />
The first interviews is to check the basic knowledge of almost all core subjects such as Data Structures,Operating Systems, DBMS etc.<br />
<br />
<ul style="text-align: left;">
<li>O.O Concepts are of particular Importance</li>
<li>Questions will be asked on the basics of programming language(s) Of candidate's choice,the candidates are also expected to write code on paper for the Interviewer's problems</li>
<li>Two logical reasoning puzzles are also asked( The trick to solving these is to take your time and keep trying )</li>
<li>Also general questions such as, what is memory leak, segmentation fault, virtual functions, double pointer, Diamond problem etc can be expected.</li>
</ul>
<br />
<br />
<br />
<b>The second Interview </b><br />
This interview is more In depth.<br />
<br />
<br />
<ul style="text-align: left;">
<li>Initially a detailed problem statement is given and candidates have to write code for it on paper, Emphasis is on the Logic and thought process, not the syntax.</li>
<li>Puzzles can be expected ( depends on the interviewer )</li>
<li>Questions about Database Design and Normalization can be expected</li>
</ul>
<br />
<br />
<b>The third Interview ( Managerial )</b><br />
This interview is taken by a senior manager<br />
<br />
Question asked were:<br />
<br />
<ul style="text-align: left;">
<li>What was the toughest question asked till now and why</li>
<li>What are your passions ( answer these wisely, later in the interview you would be asked to justify them)</li>
<li>Why should I select you etc</li>
</ul>
<br />
<br />
<b>Final Interview ( H.R )</b><br />
This interview is taken by a Senior H.R member<br />
<br />
Questions asked were:<br />
<br />
<br />
<ul style="text-align: left;">
<li>list your strengths and weaknesses </li>
<li>justify them with real life examples</li>
<li>What are your hobbies</li>
<li>A situation based puzzle can be asked </li>
</ul>
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com1India20.593684 78.962880000000041-8.580994 37.654286000000042 49.768361999999996 120.27147400000004tag:blogger.com,1999:blog-1243899714805593385.post-55436757114576717342014-04-27T22:13:00.004-07:002014-04-27T22:13:59.715-07:00<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 class="title" style="background-color: white; font-family: georgia, times, verdana; font-size: 18pt; margin: 10px 0px 5px;">
littleBits Goes a Long Way</h1>
<br />
<img align="left" alt="littleBits Goes a Long Way" class="story-image" src="http://www.technewsworld.com/images/rw48820/nasa-exploration.jpg" height="124" style="background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; margin-right: 10px;" width="172" /><br />
<div class="story-summary" style="background-color: white; color: #555555; font-family: verdana, arial, helvetica; font-size: 14px; font-weight: bold; line-height: 18.899999618530273px; margin-top: -2px;">
"The goal -- and challenge -- in this project was to create highly respectful, scientifically accurate projects that replicate NASA's groundbreaking work, while also making them modern, engaging and fun for nonscientists," said littleBits Product Designer Krystal Persaud. "We think this will empower people who were previously uninterested in STEM to get excited and get involved."</div>
<div class="story-intro-stop" style="background-color: white; clear: both; font-family: verdana, arial, helvetica; font-size: 13px;">
</div>
<div id="story-body" style="background-color: white; font-family: verdana, arial, helvetica; font-size: 13px; height: 1620px; line-height: 1.5em; margin-top: 10px;">
<div class="story-body">
Space fans the world over long have dreamed of exploring the universe for themselves, but a new, 12-module kit from NASA and <a href="http://littlebits.cc/" style="color: #154296; text-decoration: none;" target="_blank">littleBits</a> aims to give enthusiasts a way to bring the thrill of space exploration closer to home.</div>
The new littleBits Space Kit, launched on Thursday, includes an assortment of electronic modules and NASA-designed projects and activities designed to allow anyone to observe and measure the universe, build and remotely control a model Mars Rover, or wirelessly send music to a model of the International Space Station.<br />
<div style="text-align: center;">
<br /></div>
"In 2012, NASA approached us with a big challenge that they were facing: 'How can we make space education more interesting and engaging?'" littleBits Product Designer Krystal Persaud told TechNewsWorld. "We then worked very closely with NASA scientists and engineers for 18 months to bring the Space Kit to life."<br />
Now available for US$189, the Space Kit features 12 modules, five NASA lesson plans, and 10 activities related to STEM -- that is, science, technology, engineering and math.<br />
<div class="story-advertisement" style="float: left; margin-right: 5px; margin-top: 10px;">
</div>
<br />
<h2 class="subhead" style="font-size: 10pt; margin: 17px 0px;">
'Scientifically Accurate Projects'</h2>
Targeting users 14 and up, the littleBits Space Kit offers activities focusing on the fundamentals of energy, robotics, wireless data transmission, physics and astronomy, among other topics. Users can gain insight for themselves into how scientists communicate with spacecraft billions of kilometers away, how electromagnetic energy is transmitted, and how the AURA satellite senses gases in our atmosphere, for example.<br />
"The goal -- and challenge -- in this project was to create highly respectful, scientifically accurate projects that replicate NASA's groundbreaking work, while also making them modern, engaging and fun for nonscientists," Persaud explained. "We think this will empower people who were previously uninterested in STEM to get excited and get involved."<br />
Recent events such as the discovery of Earth-like planet Kepler-186f, <a class="story-keyword-offsite" href="http://www.spacex.com/" style="color: #154296; text-decoration: none;">SpaceX's</a> successful docking at the International Space Station, new evidence of the Big Bang, and the introduction of Neil deGrasse Tyson's new <em>Cosmos</em> documentary mean that "space is more than ever at the center of the cultural conversation," noted Ayah Bdeir, littleBits founder and CEO.<br />
Indeed, planetariums have even reported <a href="http://articles.sun-sentinel.com/2013-10-09/news/fl-space-interest-20131009_1_south-floridians-national-astronomy-day-local-observatories" style="color: #154296; text-decoration: none;" target="_blank">increased traffic</a> just in the wake of the popularity of the recent movie <em>Gravity</em>.<br />
"We aim to bring space closer by putting the building blocks to invent, learn and explore directly into the hands of educators, students, NASA enthusiasts and builders of all ages," Bdeir added.<br />
<h2 class="subhead" style="font-size: 10pt; margin: 17px 0px;">
An Open Source Library</h2>
The Space Kit is part of a larger open source library from littleBits that seeks to break electronics down into simple but powerful modules.<br />
"LittleBits products are a teaching tool: Sharing our designs allows for the possibility of teaching how these circuit designs work down to a circuit level," Persaud explained. "This means that anyone can use littleBits products and then come back to them later on in their education for a deeper understanding of electronics."<br />
Also launching on Thursday were three new littleBits modules -- dubbed "IR LED," "Number" and "Remote Trigger" -- that can be used with any of the modules in the extended LittleBits library to create trillions of circuit combinations.<br />
<h2 class="subhead" style="font-size: 10pt; margin: 17px 0px;">
'One of the Most Inspiring Disciplines'</h2>
"Progress and creativity are driven by curiosity," Mario Livio, astrophysicist with the Space Telescope Science Institute and author of <a href="http://www.amazon.com/Brilliant-Blunders-Einstein-Scientists-Understanding/dp/1439192367" style="color: #154296; text-decoration: none;" target="_blank"><em>Brilliant Blunders</em></a>, told TechNewsWorld.<br />
"As long as people, young and old, are curious, we can be sure that we'll see advances in both the sciences and the arts," Livio added.<br />
"Space science is one of the most inspiring disciplines in this respect, since on one hand it addresses our cosmic origins, and on the other it introduces us to fascinating technologies," he concluded. "All endeavors that can engage the public in these directions are welcome." <img border="0" src="http://www.ectnews.com/images/end-enn.gif" height="10" width="21" /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-90013389291857959892014-01-16T07:19:00.000-08:002014-01-16T07:42:07.175-08:00Gmail - Undo Send<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;"><br /></span>
<span style="background-color: white; font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;"><br /></span>
<span style="background-color: white; font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;"><br /></span>
<span style="background-color: white; font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;">You clicked send. Oh crap.</span><br />
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
<br /></div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
When you send a no-take-backs email — maybe an official email, or accidental reply-all — there's an instant pang of regret. It feels like there's no going back.</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
Meet Gmail's Undo Send feature, a lifesaving little hack buried in the Gmail Labs settings. It gives you a 30-second window to "undo" sending an outgoing email.</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
You just have to enable it first.</div>
<h3 style="font-family: FaktConPro-SemiBold, Helvetica, Arial, sans-serif; font-size: 24.5px; font-weight: normal; line-height: 1.3em; margin: 10px 0px; text-rendering: optimizelegibility;">
Here's how it works:</h3>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
<strong>1. Click the gear icon in the top-right corner of your Gmail window and select Settings from the dropdown menu.</strong></div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
</div>
<div class="KonaFilter image-container" style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;">
<div class="image">
<img alt="gmail undo send" border="0" src="http://static2.businessinsider.com/image/529e77ad6da811247fdfbb9c-1122-158/screen%20shot%202013-12-03%20at%206.56.49%20pm.png" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle;" width="600" /><br />
<div class="source" style="font-family: helvetica, arial, sans-serif; font-size: 10px; font-style: italic; text-align: right;">
<span style="font-family: Helvetica, Arial, sans-serif;">Gmail screenshot</span></div>
</div>
<div style="margin-bottom: 10px;">
</div>
</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
<strong>2. Select Labs from the row of tabs.</strong></div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
</div>
<div class="KonaFilter image-container" style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;">
<div class="image">
<img alt="gmail sent send undo" border="0" src="http://static4.businessinsider.com/image/529e78fbecad04674edfbba6-937-233/screen%20shot%202013-12-03%20at%207.35.43%20pm.png" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle;" width="600" /><br />
<div class="source" style="font-family: helvetica, arial, sans-serif; font-size: 10px; font-style: italic; text-align: right;">
<span style="font-family: Helvetica, Arial, sans-serif;">Gmail screenshot</span></div>
</div>
<div style="margin-bottom: 10px;">
</div>
</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
<strong>3. Scroll all the way to the bottom where you see Undo Send and click Enable.</strong></div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
</div>
<div class="KonaFilter image-container" style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;">
<div class="image">
<img alt="gmail send sent undo" border="0" src="http://static1.businessinsider.com/image/529e77e8eab8eac328dfbb9c-663-489/screen%20shot%202013-12-03%20at%207.29.43%20pm.png" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle;" width="600" /><br />
<div class="source" style="font-family: helvetica, arial, sans-serif; font-size: 10px; font-style: italic; text-align: right;">
<span style="font-family: Helvetica, Arial, sans-serif;">Gmail screenshot</span></div>
</div>
<div style="margin-bottom: 10px;">
</div>
</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
<strong>4. Hit Save Changes at the bottom.</strong></div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
<strong>5. Breathe easy.</strong></div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
Now when you send an email, the yellow dialogue that displays "Your message has been sent" will also give you the option to Undo. Click it, and the email will reopen, un-sent, in the composition window.</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
</div>
<div class="KonaFilter image-container" style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;">
<div class="image">
<img alt="gmail undo sent send" border="0" src="http://static1.businessinsider.com/image/529e7b3d6bb3f7c737dfbba0-659-163/screen%20shot%202013-12-03%20at%207.45.20%20pm.png" style="border: 0px; height: auto; max-width: 100%; vertical-align: middle;" width="600" /><br />
<div class="source" style="font-family: helvetica, arial, sans-serif; font-size: 10px; font-style: italic; text-align: right;">
<span style="font-family: Helvetica, Arial, sans-serif;">Gmail screenshot</span></div>
</div>
<div style="margin-bottom: 10px;">
</div>
</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
</div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
<span style="line-height: 1.5em;">It defaults so that you have 10 seconds to click before the Undo button disappears, but you can adjust that window of opportunity. Go to Settings > General > Undo Send, and select a cancellation period up to 30 seconds.</span></div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
<br />
Note, features in Gmail Labs are experimental and may change, break, or disappear at any time. </div>
<div style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px; margin-bottom: 10px;">
Y<span style="line-height: 1.5em;">ou've been warned.</span></div>
<div class="clearfix clear-both" id="see-also-links" style="clear: both; font-family: Helvetica, Arial, sans-serif; font-size: 15px; font-weight: bold; line-height: 20px;">
<div style="margin-bottom: 10px;">
</div>
</div>
<span style="font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 20px;"><br /></span></div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-55920503106535010732013-09-03T23:56:00.000-07:002013-09-03T23:56:52.162-07:00Google says next version of Android will be called KitKat<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="arttle" style="position: relative;"></span><br />
<h1>
Google says next version of Android will be called KitKat</h1>
<h1>
<span style="font-weight: normal;"><span style="font-size: small;"><span id="advenueINTEXT" name="advenueINTEXT" style="float: left;"><div class="Normal showpage1" id="artext1">
<div class="Normal">
NEW
DELHI: Sundar Pichai, head of Android division at Google, on Tuesday
revealed on Twitter that the next version of the company's <a href="http://timesofindia.indiatimes.com/topic/mobile-operating-system">mobile operating system</a> (OS) will be called Android KitKat.<br />
<br />
"We now have over 1 billion Android activations and hope this guy in
front of the building keeps that momentum going," Pichai tweeted as well
as posted an image of a giant Android mascot built like KitKat
chocolate.<br />
<br />
Earlier, there were rumours that the next version of the OS would be called Android Key Lime Pie.<br />
<br />
Since Android 1.5, <a href="http://timesofindia.indiatimes.com/topic/Google">Google</a>
has named each version of the OS after a sweet. Android 1.5 was
Cupcake. Android 1.6 was Donut. Android 2.0 was Eclair. Android 2.2 was
Froyo. Android 2.3 was Gingerbread. Android 3.0 was Honeycomb. Android
4.0 was Ice Cream Sandwich. And Android 4.1, 4.2 and 4.3 have been
called Jelly Bean.<br />
<br />
"Android is the operating system that powers
over 1 billion smartphones and tablets. Since these devices make our
lives so sweet, each Android version is named after a dessert... As
everybody finds it difficult to stay away from chocolate we decided to
name the next version of Android after one of our favorite chocolate
treats, Kitkat," Google said.<br />
<br />
The KitKat will be Android 4.4.
So far there is no word on when Google will release this OS but it is
likely to debut in the market with the new Nexus phone in the coming
months.<br />
<br />
Google announced the new version of Android just
minutes after Apple sent out invites for an event on September 10 where
it is likely to launch the next version of iPhone.<br />
<br />
For KitKat name Google has tied up with Nestle, which makes KitKat chocolates.<br />
<br />
"We couldn't imagine a better name for our Android K release than the
tasty chocolate that's been a favourite among the team since the early
days of Android," said Marc Vanlerberghe, director of Android marketing.<br />
<br />
Nestle said that to mark the release of <a href="http://timesofindia.indiatimes.com/topic/Android-KitKat">Android KitKat</a>,
more than 50 million specially branded KitKat bars will be available in
19 countries including Australia, Brazil, Germany, India, Japan, Dubai,
Russia, the United Kingdom and the United States.<br />
<br />
The packs
will lead consumers to the website www.android.com/kitkat where they
will have the opportunity to win prizes including a limited number of
Google Nexus 7 tablets, and credits to spend in Google Play.<br />
<br />
A small number of Android robot-shaped KitKat bars will be offered as prizes in selected markets. </div>
</div>
<span id="storyendpath"></span></span> </span></span></h1>
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-23924883302562547032013-09-03T23:47:00.001-07:002013-09-03T23:48:33.733-07:00MICROSOFT NOKIA DEAL<div dir="ltr" style="text-align: left;" trbidi="on">
<span class="arttle" style="position: relative;"></span><br />
<h1>
Microsoft's Nokia deal: Layoffs look inevitable<span style="font-size: xx-small;"> </span></h1>
<h1>
<span style="font-size: xx-small;">(<a href="http://timesofindia.indiatimes.com/tech/careers/job-trends/Microsofts-Nokia-deal-Layoffs-look-inevitable/articleshow/22276817.cms" rel="nofollow" target="_blank">read original</a>)</span></h1>
<h1>
<span style="font-size: small;"><span id="advenueINTEXT" name="advenueINTEXT" style="float: left;"><div class="Normal showpage1" id="artext1">
<div class="Normal">
BANGALORE: <span style="font-weight: normal;"><a href="http://timesofindia.indiatimes.com/topic/Microsoft">Microsoft</a> and <a href="http://timesofindia.indiatimes.com/topic/Nokia%27s-India-operations">Nokia's India operations</a>
are among the biggest outside their home countries, and it looks like a
certain number of redundancies and consequent layoffs are inevitable.
Microsoft CEO Steve Ballmer's email to Microsoft employees on the <a href="http://timesofindia.indiatimes.com/topic/Nokia">Nokia</a>
deal said the companies would integrate all global marketing and have a
unified brand and advertising strategy. It said that finance, legal,
HR, communications, evangelism, customer care and business development
would integrate functionally at Microsoft. ICM/IT will also integrate
functionally for traditional IT roles, it said.<br /> <br /> Such
integration in most cases implies redundancies. Nokia has 9,000
employees in India, almost a tenth of its global workforce. Microsoft
has 6,000 employees here, out of its global strength of 97,000. It's
unlikely that there will be much overlap at the engineering, support and
R&D levels, because Nokia is a devices company, and Microsoft
largely a software company.<br /> <br /> But in all of the divisions that
Ballmer's mail mentions as being integrated, layoffs are likely. Anshul
Gupta, principal research analyst in Gartner, said there could be
redundancies. </span></div>
</div>
<span style="font-weight: normal;"><span id="storyendpath"></span></span></span><span style="font-weight: normal;"> </span></span></h1>
<h1>
<span style="font-weight: normal;"><span style="font-size: small;"><span class="arttle" style="position: relative;"></span> </span></span></h1>
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-27425324136841654972013-08-16T09:59:00.001-07:002013-08-16T09:59:33.708-07:00Why Russian Tech Entrepreneurs Are Willing to Risk Backing Navalny<div dir="ltr" style="text-align: left;" trbidi="on">
<div id="story_body" style="border: 0px; color: #444444; font-family: Georgia, serif; font-size: 13px; line-height: 16px; margin: 0px 10px 10px; padding: 0px; vertical-align: baseline;">
<div class="paginated_content clearfix" style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; zoom: 1;">
<div class="page current" id="_page1" style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">
<h3 style="border: 0px; color: #ed1c24; font-family: sans-serif; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">
<br /></h3>
<h3 style="border: 0px; color: #ed1c24; font-family: sans-serif; font-size: 13px; margin: 0px; padding: 0px; vertical-align: baseline;">
Russia</h3>
<h1 id="article_headline" style="border: 0px; color: black; font-family: BWHaasHead, helvetica, arial, sans-serif; font-size: 24px; font-weight: normal; margin: 0px; padding: 0px; vertical-align: baseline;">
Why Russian Tech Entrepreneurs Are Willing to Risk Backing Navalny</h1>
<div>
<a href="http://www.businessweek.com/articles/2013-08-08/why-russian-tech-entrepreneurs-are-willing-to-risk-backing-navalny" target="_blank">(original document)</a></div>
<div class="" style="border: 0px; color: #222222; font-size: 1.2em; line-height: 1.5em; margin-bottom: 1.5em; padding: 0px; vertical-align: baseline;">
<br /></div>
<div class="" style="border: 0px; color: #222222; font-size: 1.2em; line-height: 1.5em; margin-bottom: 1.5em; padding: 0px; vertical-align: baseline;">
A group of Russian Internet entrepreneurs has taken the unusual and potentially risky step of speaking out publicly in support of Kremlin critic Alexei Navalny.</div>
<div style="border: 0px; color: #222222; font-size: 1.2em; line-height: 1.5em; margin-bottom: 1.5em; padding: 0px; vertical-align: baseline;">
In an open letter distributed on Aug. 7 to local media outlets, 37 leaders of Russian Web startups said they were backing Navalny’s campaign for mayor of Moscow, as a protest against corruption and other official abuses. They said they were speaking as individuals, rather than as representatives of their businesses.</div>
<div style="border: 0px; color: #222222; font-size: 1.2em; line-height: 1.5em; margin-bottom: 1.5em; padding: 0px; vertical-align: baseline;">
“The situation in Russia is deteriorating beyond reasonable limits,” Kamil Kurmakayev, a Web entrepreneur who organized the effort, tells <em style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Bloomberg Businessweek</em> in an interview. He says the government’s treatment of Navalny, who is running for mayor while appealing a recent conviction on theft charges, mirrors the experience of business people who see that “in Russia, the government can do anything. There is nobody who is protected against anything.” The government has not yet responded to the letter. The letter in Russian, is available<a href="http://www.vedomosti.ru/politics/news/14976201/35-druzej-navalnogo" style="-webkit-tap-highlight-color: rgb(255, 102, 0); color: #007cd5; text-decoration: none;">here.</a></div>
<div style="border: 0px; color: #222222; font-size: 1.2em; line-height: 1.5em; margin-bottom: 1.5em; padding: 0px; vertical-align: baseline;">
Kurmakayev, 33, a Stanford Business School graduate who co-founded an online marketplace, Wikimart, says that companies like his are finding it “harder and harder to attract foreign investment,” as potential investors worry about the lack of protection for property rights. And, he says, “our employees are thinking more and more about moving to other places, like Silicon Valley.”</div>
<div style="border: 0px; color: #222222; font-size: 1.2em; line-height: 1.5em; margin-bottom: 1.5em; padding: 0px; vertical-align: baseline;">
It’s rare for Russian business people to criticize the government openly, and some who have done so—such as former oil company chief Mikhail Khodorkovsky—have landed in jail. More recently, the founder of social-media site VKontakte, who had clashed with the Kremlin, dropped out of sight after being charged with a traffic violation under <a href="http://www.businessweek.com/articles/2013-08-01/is-pavel-durov-russias-zuckerberg-a-kremlin-target" style="-webkit-tap-highlight-color: rgb(255, 102, 0); color: #007cd5; text-decoration: none;">murky circumstances.</a></div>
<div style="border: 0px; color: #222222; font-size: 1.2em; line-height: 1.5em; margin-bottom: 1.5em; padding: 0px; vertical-align: baseline;">
Kurmakayev, though, says that entrepreneurs are becoming more willing to speak out. “It’s not normal that in private conversations people say one thing, and in public say another.” Representatives of Russia’s biggest Internet companies, such as VKontakte and search engine Yandex, aren’t among the signers of the letter. “These are big companies, they have to be more careful,” Kurmakayev says, “although we know from private conversations that the general sentiment is positive.”</div>
<div style="border: 0px; color: #222222; font-size: 1.2em; line-height: 1.5em; margin-bottom: 1.5em; padding: 0px; vertical-align: baseline;">
The entrepreneurs’ letter underscores a sharp deterioration in relations between the Kremlin and the country’s high-technology industry since Vladimir Putin replaced Dmitry Medvedev as president last year. The Skolkovo technology hub, promoted by Medvedev as Russia’s Silicon Valley, has <a href="http://www.businessweek.com/articles/2013-07-18/kremlin-intrigue-threatens-russias-silicon-valley" style="-webkit-tap-highlight-color: rgb(255, 102, 0); color: #007cd5; text-decoration: none;">run afoul of government authorities.</a></div>
<div style="border: 0px; color: #222222; font-size: 1.2em; line-height: 1.5em; margin-bottom: 1.5em; padding: 0px; vertical-align: baseline;">
Russia’s parliament has recently passed laws to tighten controls on the Internet. And after VKontakte founder Pavel Durov resisted government efforts to shut down opposition groups’ pages on the site, an investment fund with close ties to Putin took a 48 percent stake in the company, in what was widely seen as a government-sanctioned raid.</div>
<div style="border: 0px; color: #222222; font-size: 1.2em; line-height: 1.5em; margin-bottom: 1.5em; padding: 0px; vertical-align: baseline;">
In yet another setback for entrepreneurs, Sergei Guriev, a former Medvedev economic adviser who was an advocate for business, <a href="http://www.bloomberg.com/news/2013-05-29/medvedev-associate-said-to-flee-russia-as-prosecutors-build-case.html" style="-webkit-tap-highlight-color: rgb(255, 102, 0); color: #007cd5; text-decoration: none;">recently fled the country</a> to avoid possible prosecution. “People like [Guriev] command huge respect,” Kurmakayev says. “In our company we have employees who studied with him” at the New Economic School in Moscow, where Guriev was rector.</div>
<div style="border: 0px; color: #222222; font-size: 1.2em; line-height: 1.5em; margin-bottom: 1.5em; padding: 0px; vertical-align: baseline;">
Signers of the open letter included founders of websites ranging from e-commerce to sports news and an online taxi-reservation service. “We are aware of thousands of entrepreneurs whom the courts have put in jail on fabricated charges,” they wrote. “The rule of law, an independent judiciary, and free elections—for us, these are not abstract ideas. Without them we cannot run a modern, sustainable business.”</div>
</div>
</div>
</div>
<div class="author_short_bio" style="border: 0px; color: #444444; font-family: Georgia, serif; font-size: 12px; margin: 0px 10px 10px; padding: 0px 0px 10px; vertical-align: baseline;">
<a href="mailto:cmatlack@bloomberg.net" style="-webkit-tap-highlight-color: rgb(255, 102, 0); color: #555555; text-decoration: none;">Matlack</a> is a Paris correspondent for <cite style="border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;">Bloomberg Businessweek</cite>.</div>
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-16817770513958704802013-08-15T04:11:00.001-07:002013-08-16T10:00:34.671-07:00Cisco to lay off 4,000 employees<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #333333; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 30px;">Cisco to lay off 4,000 employees</span><br />
<span style="color: #333333; font-family: Georgia, Times New Roman, Times, serif; font-size: x-small;"> source: <a href="http://timesofindia.indiatimes.com/tech/careers/job-trends/Cisco-to-lay-off-4000-employees/articleshow/21841194.cms" target="_blank">TOI</a></span><br />
<br />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">NEW YORK: Cisco's earnings and revenue grew in the latest quarter as demand for its computer networking equipment increased. But CEO John Chambers called the global economy "challenging and inconsistent" and the company said it is cutting about 4,000 jobs, or about 5% of its work force.</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<a href="http://timesofindia.indiatimes.com/topic/Cisco's-revenue-guidance" style="background-color: white; border: 0px; color: #024d99; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;">Cisco's revenue guidance</a><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;"> for the current quarter was weaker than Wall Street expected, and shares fell sharply in extended trading.</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">The company's stock fell $2.51, or 9.5%, to $23.87 in extended trading after the results were released. The stock closed up 6 cents at $26.38 in the day's regular trading session.</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<a href="http://timesofindia.indiatimes.com/topic/Cisco-Systems" style="background-color: white; border: 0px; color: #024d99; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;">Cisco Systems</a><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;"> earned $2.27 billion, or 42 cents per share, in the three months that ended on July 27. That's up from $1.92 billion, or 36 cents per share, a year earlier.</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">Adjusted earnings were 52 cents per share in the latest quarter, squeaking past Wall Street's expectations by a penny. This figure excludes charges stemming from a patent settlement with TiVo and other one-time items.</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">Revenue rose 6% to $12.42 billion from $11.69 billion.</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">Analysts, on average, had expected revenue of $12.41 billion, according to a poll by FactSet.</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">Cisco's performance is widely regarded as a bellwether for the technology industry. That's because the San Jose, California, company cuts a broad swath, selling routers, switches, software and services to corporate customers and government agencies. Cisco's fiscal quarters end a month later than most other major technology companies, giving it additional time to assess economic conditions.</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">Cisco's product orders grew 4% year-over-year, the same as in the third quarter of this year. Orders in the Americas region grew 5%, while Asia declined 3% due to economic challenges in the region, Chambers said. Europe, the Middle East, Africa and Russia increased 6%. On its own, Europe was up 9%.</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">Chambers said that economic conditions in Europe still "vary significantly" by region, with the north and the UK showing "very positive progress."</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">"We remain cautious, however, given the instability of the southern region," he added.</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">The caution is evident in Cisco's guidance. For the current quarter, the company said that said it expects revenue to grow 3% to 5% year-over-year. Analysts are expecting $12.72 billion, a 7% increase from last year's $11.9 billion.</span><br />
<br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">Over the long term, Chambers said that the company still expects revenue to grow 5% to 7%, and added that Cisco is in a "better position in the market today than ever before."</span></div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-60184184313796917682013-08-15T04:09:00.001-07:002013-08-15T04:09:04.820-07:00Microsoft to launch Windows 8.1 on October 18<div dir="ltr" style="text-align: left;" trbidi="on">
<span style="background-color: white; color: #333333; font-family: Georgia, 'Times New Roman', Times, serif; font-size: 30px;">Microsoft to launch Windows 8.1 on October 18</span><br />
<span style="color: #333333; font-family: Georgia, Times New Roman, Times, serif; font-size: x-small;">source: <a href="http://timesofindia.indiatimes.com/tech/tech-news/software-services/Microsoft-to-launch-Windows-8-1-on-October-18/articleshow/21826214.cms" target="_blank">TOI</a></span><br />
<br />
<br />
<span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">SAN FRANCISCO: A tweaked version of Microsoft's Windows operating system which restores the "Start" button missed by users and updates other features will be available on October 18, the company said. </span><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><a href="http://timesofindia.indiatimes.com/topic/Windows-8.1" style="background-color: white; border: 0px; color: #024d99; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;">Windows 8.1</a><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;"> will be offered as a free download to those already using Windows 8, and comes in response to a lukewarm reception to the operating system introduced last year aimed at serving both mobile devices and PCs. </span><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">A full retail version of Windows 8.1 will also be available on the same date. </span><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">"I know a lot of folks are eager to find out when they will be able to get Windows 8.1," said a blog posting from Microsoft's Brandon LeBlanc. </span><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">LeBlanc said it would roll out worldwide starting in New Zealand just after midnight. </span><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">"Windows 8.1 brings many improvements in areas like personalization, Internet Explorer 11, search which is powered by Bing, built-in apps including a few new ones, an improved Windows Store experience, and cloud connectivity with SkyDrive (and much more) that people will enjoy," LeBlack said. </span><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">A public preview of Windows 8.1 was made available June 26. </span><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">At the time, </span><a href="http://timesofindia.indiatimes.com/topic/Microsoft" style="background-color: white; border: 0px; color: #024d99; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;">Microsoft</a><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;"> said it had sold more than 100 million licenses for </span><a href="http://timesofindia.indiatimes.com/topic/Windows-8" style="background-color: white; border: 0px; color: #024d99; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none;">Windows 8</a><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;"> but that the update was planned after listening to customers. </span><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">Some analysts say Microsoft was forced to act because of slow adoption of Windows 8, which made some radical changes to the design of the desktop. </span><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">With Windows 8, Microsoft was trying to create a system that could be used on mobile touch screen devices while also serving the users of traditional PCs. </span><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><br style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px; margin: 0px; padding: 0px;" /><span style="background-color: white; color: #3f3f3f; font-family: georgia; font-size: 15px; line-height: 20px;">Microsoft launched Windows 8 last October, revamping its flagship system in an effort to make inroads in the fast-growing mobile segment. At the same time, it launched its Surface tablet computer. </span></div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-57011470619459587282013-08-12T10:13:00.000-07:002013-08-12T10:13:03.518-07:00BSNL to set up defence telecom network by July 2015<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 style="background-color: white; color: #191919; font-family: Georgia, Arial, Helvetica, sans-serif; font-size: 28px; font-weight: normal; line-height: 30px; margin: 0px 0px 8px;">
<br /></h1>
<h1 style="background-color: white; color: #191919; font-family: Georgia, Arial, Helvetica, sans-serif; font-size: 28px; font-weight: normal; line-height: 30px; margin: 0px 0px 8px;">
BSNL to set up defence telecom network by July 2015</h1>
<div>
<br /></div>
<div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 16px; text-align: justify;">
State-run telecom operator Bharat Sanchar Nigam Limited (<a href="http://www%2Cthinkdigit.com/latest/BSNL.html" style="color: #0072c2; line-height: 14px; text-align: left;" target="_blank">BSNL</a>) is reportedly working to set up an alternative communication network for exclusive use by the Indian defence sector. BSNL is supposed to hand over the network by July 2015. After setting up of the new network, the defence sector is likely to release the 150 MHz of spectrum in frequency range of 1700 MHz to 2000 MHz. .</div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;">
</div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 16px; text-align: justify;">
According to BSNL Chairman and Managing Director RK Upadhyay, the new network uses optical fibre and satellite links and is "is targeted to be completed in three years from Cabinet approval and this works out to July 2015. It's a tight schedule, but BSNL is making all efforts to meet it."</div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 16px; text-align: justify;">
BSNL is likely to begin rolling out the optical fibre cable network across 57,000 kilometres by January 2014. The telco has issued tenders for a 3,000 kilometre OFC network for the navy, which is likely to be ready by the end of next year. The telco plans to issue tenders for satellite network, transmission, microwave radio and networking equipment.</div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 16px; text-align: justify;">
The The Cabinet Committee on Infrastructure had given its nod to Rs 13,334 crore for the defence network project in July 2012. A Times of India report points out the actual valuation of the defence spectrum may differ from the estimate worth of Rs 3.6 lakh crore, based on the market dynamics and government policy.</div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 16px; text-align: justify;">
The recent <a href="http://www.thinkdigit.com/Mobiles-PDAs/Government-approves-30-percent-cut-in-unsold_11758.html" style="color: #0072c2; line-height: 14px; text-align: left;" target="_blank">2G spectrum auction in 1800 MHz band</a> saw the final price of 5MHz for pan-India was at around Rs. 12,000 crore. Going by this benchmark, the value of 150 Mhz of defence spectrum is estimated at about Rs 3.6 lakh crore.</div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 16px; text-align: justify;">
Source: <a href="http://articles.timesofindia.indiatimes.com/2013-08-10/telecom/41266012_1_defence-spectrum-mhz-lakh-crore" style="color: #0072c2; line-height: 14px; text-align: left;" target="_blank">TOI</a></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-54468967058428934722013-08-12T10:07:00.004-07:002013-08-15T04:30:26.949-07:00 Optimizing land use classification using decision tree approaches<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="MsoNormal">
<b> </b><br />
<b><br /></b>
<b><br /></b>
<b><br /></b>
<br />
<div style="text-align: center;">
<b> Optimizing
land use classification using decision tree approaches<o:p></o:p></b></div>
</div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<span style="font-size: 9.0pt;">Vaibhav
Walia<sup>+</sup> under guidance of DR. Sameer Saran<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<span style="font-size: 9.0pt;"> Indian Institute of remote sensing (NRSA),
Dehradun (UA)-248 001<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<sup><span style="font-size: 9.0pt;">+ </span></sup><span style="font-size: 9.0pt;">Manipal institute of technology, Manipal (KA)<o:p></o:p></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<span style="font-size: 9.0pt;">E-mail: </span><a href="mailto:walia.vaibhav@yahoo.com"><span style="font-size: 9.0pt;">walia.vaibhav@yahoo.com</span></a><span class="MsoHyperlink"><span style="font-size: 9.0pt;"><o:p></o:p></span></span></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<br /></div>
<div align="center" class="MsoNormal" style="margin-bottom: 0.0001pt; text-align: center;">
<br /></div>
<div class="MsoNormal" style="margin-bottom: 0.0001pt;">
<b><span style="font-size: 9.0pt;">Abstract:</span></b><span style="font-size: 9.0pt;"> Supervised classification is one of the important
tasks in remote sensing image interpretation, in which the image pixels are
classified to various predefined land use/land cover classes based on the
spectral reflectance values in different bands. In reality some classes may
have very close spectral reflectance values that overlap in feature space. This
produces spectral confusion among the classes and results in inaccurate
classified images. To remove such spectral confusion one requires extra
spectral and spatial knowledge. This report presents a decision tree classifier
approach to extract knowledge from spatial data in form of classification rules
using Gini Index and Shannon Entropy (Shannon and Weaver, 1949) to evaluate
splits. This report also features calculation of optimal dataset size required
for rule generation, in order to avoid redundant Input/output and processing.<o:p></o:p></span></div>
<div class="MsoNormal">
<br /></div>
<div class="MsoNormal">
<b><span style="font-size: 9.0pt; line-height: 115%;">*Challenges:</span></b><o:p></o:p></div>
<div class="MsoNormal">
<b><span style="font-size: 9.0pt; line-height: 115%;"><br /></span></b></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l1 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="font-size: 9.0pt; line-height: 115%;">Improving
land use classification methods to achieve better classification</span><span style="font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="mso-list: l1 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="font-size: 9.0pt; line-height: 115%;">Optimising
the size of training dataset needed to generate classification rules </span><span style="font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoListParagraphCxSpLast" style="mso-list: l1 level1 lfo1; text-indent: -18.0pt;">
<!--[if !supportLists]--><span style="font-family: Symbol; font-size: 10.0pt; line-height: 115%; mso-bidi-font-family: Symbol; mso-fareast-font-family: Symbol;">·<span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="font-size: 9.0pt; line-height: 115%;">Developing
an application to generate classification rules, given a particular dataset and
information about the attributes</span><span style="font-size: 10.0pt; line-height: 115%;"><o:p></o:p></span></div>
<div class="MsoNormal">
<b><span style="font-size: 9.0pt; line-height: 115%;"><br /></span></b></div>
<div class="MsoNormal">
<b><span style="font-size: 9.0pt; line-height: 115%;"><br /></span></b></div>
<div class="MsoNormal">
<b><span style="font-size: 9.0pt; line-height: 115%;">*Solutions:<o:p></o:p></span></b></div>
<div class="MsoNormal">
<b><span style="font-size: 9.0pt; line-height: 115%;"><br /></span></b></div>
<div class="MsoListParagraphCxSpFirst" style="mso-list: l2 level1 lfo2; text-indent: -18.0pt;">
</div>
<ul style="text-align: left;">
<li><span style="font-family: Symbol; font-size: 9pt; line-height: 115%; text-indent: -18pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt; line-height: normal;"> </span></span><span style="font-size: 9pt; line-height: 115%; text-indent: -18pt;">Better
classification was achieved by :</span></li>
</ul>
<!--[if !supportLists]--><br />
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 68.2pt; mso-add-space: auto; mso-list: l0 level1 lfo3; mso-text-indent-alt: -18.0pt; text-indent: -68.2pt;">
<!--[if !supportLists]--><span style="font-size: 9.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: 7pt; line-height: normal;">
</span>I.<span style="font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="font-size: 9.0pt; line-height: 115%;">using
Decision tree algorithm instead of classical approaches such as MLC<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-left: 68.2pt; mso-add-space: auto; mso-list: l0 level1 lfo3; mso-text-indent-alt: -18.0pt; text-indent: -68.2pt;">
<!--[if !supportLists]--><span style="font-size: 9.0pt; line-height: 115%; mso-bidi-font-family: Calibri; mso-bidi-theme-font: minor-latin;"><span style="font-size: 7pt; line-height: normal;">
</span>II.<span style="font-size: 7pt; line-height: normal;">
</span></span><!--[endif]--><span style="font-size: 9.0pt; line-height: 115%;">using
“Gini Index” as the attribute selection criteria when “Information gain” fails <o:p></o:p></span></div>
<div class="MsoListParagraphCxSpMiddle">
<br /></div>
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; text-align: justify; text-indent: -18pt;">
</div>
<ul>
<li><span style="font-family: Symbol; font-size: 9pt; text-indent: -18pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span style="font-size: 9pt; text-indent: -18pt;">Optimum dataset
size was found by extracting and comparing decision rules for increasing
dataset sizes of the same dataset.</span></li>
</ul>
<!--[if !supportLists]--><br />
<div class="MsoListParagraphCxSpMiddle" style="margin-bottom: 0.0001pt; text-align: justify;">
<span style="font-size: 9.0pt;"> Example: ‘<i>X’</i>
tuples are read and converted to rules in the first pass, similarly ‘<i>X + jump’</i> tuples are read and converted
to rules in the second pass, the resulting rules are compared and the procedure
is repeated for at least another ‘<i>width</i>’
tuples, where ‘<i>jump</i>’ and ‘<i>width</i>’ are user defined variables. If
the resulting rules are same throughout the ‘<i>width</i>’ then ‘<i>no of tuples
read minus width</i>’ is the optimum dataset size required for rule generation.<o:p></o:p></span></div>
<div class="MsoListParagraphCxSpLast" style="margin-bottom: 0.0001pt; text-align: justify;">
<br /></div>
<br />
<ul style="text-align: left;">
<li><span style="font-family: Calibri, sans-serif; font-size: 9pt; line-height: 115%;">The decision tree algorithm was implemented
using C++, Nokia/trolltech‘s Qt framework for the gui and “qcoustomplot” an
open source library, which was used for plotting graphs</span></li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://2.bp.blogspot.com/-bWY76etX6JM/UgkWS7umyeI/AAAAAAAAABM/T4FW7k0IDJw/s1600/datamining+app.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="172" src="http://2.bp.blogspot.com/-bWY76etX6JM/UgkWS7umyeI/AAAAAAAAABM/T4FW7k0IDJw/s640/datamining+app.png" width="640" /></a></div>
<div>
<span style="font-family: Calibri, sans-serif;"><span style="font-size: 12px; line-height: 13px;"><br /></span></span></div>
<div>
<span style="font-family: Calibri, sans-serif;"><span style="font-size: 12px; line-height: 13px;"><br /></span></span></div>
<!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75"
o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter"/>
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0"/>
<v:f eqn="sum @0 1 0"/>
<v:f eqn="sum 0 0 @1"/>
<v:f eqn="prod @2 1 2"/>
<v:f eqn="prod @3 21600 pixelWidth"/>
<v:f eqn="prod @3 21600 pixelHeight"/>
<v:f eqn="sum @0 0 1"/>
<v:f eqn="prod @6 1 2"/>
<v:f eqn="prod @7 21600 pixelWidth"/>
<v:f eqn="sum @8 21600 0"/>
<v:f eqn="prod @7 21600 pixelHeight"/>
<v:f eqn="sum @10 21600 0"/>
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect"/>
<o:lock v:ext="edit" aspectratio="t"/>
</v:shapetype><v:shape id="Picture_x0020_8" o:spid="_x0000_s1026" type="#_x0000_t75"
alt="Description: C:\Users\vaibhav\AppData\Local\Microsoft\Windows\Temporary Internet Files\Content.Word\sd8.png"
style='position:absolute;margin-left:-10pt;margin-top:36.65pt;width:450.5pt;
height:153.95pt;z-index:251660288;visibility:visible;mso-wrap-style:square;
mso-width-percent:0;mso-height-percent:0;mso-wrap-distance-left:9pt;
mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;
mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;
mso-position-horizontal-relative:text;mso-position-vertical:absolute;
mso-position-vertical-relative:text;mso-width-percent:0;mso-height-percent:0;
mso-width-relative:page;mso-height-relative:page'>
<v:imagedata src="file:///C:\Users\vaibhav\AppData\Local\Temp\msohtmlclip1\01\clip_image001.png"
o:title="sd8"/>
<w:wrap type="square"/>
</v:shape><![endif]--><!--[if !vml]--><!--[endif]--></div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-77653005239882383402013-08-12T09:56:00.000-07:002013-08-12T09:56:38.712-07:00Microsoft ditching points for Xbox Live with next system update<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 style="background-color: white; color: #191919; font-family: Georgia, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 30px; margin: 0px 0px 8px;">
<span style="font-size: 28px;"><br /></span></h1>
<h1 style="background-color: white; color: #191919; font-family: Georgia, Arial, Helvetica, sans-serif; font-weight: normal; line-height: 30px; margin: 0px 0px 8px;">
<span style="font-size: 28px;">Microsoft ditching points for Xbox Live with next system update </span><span style="font-size: xx-small;">(</span><span style="font-size: x-small;"><a href="http://www.thinkdigit.com/Gaming/Microsoft-ditching-points-for-Xbox-Live-with_17157.html" target="_blank">original article</a></span><span style="font-size: xx-small;">)</span></h1>
<div>
<span style="font-size: xx-small;"><br /></span></div>
<div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 16px; text-align: justify;">
Earlier this year, Microsoft had made its intentions of <a href="http://www.thinkdigit.com/Gaming/Microsoft-could-ditch-Xbox-Points-in-favour_14672.html" style="color: #0072c2; line-height: 14px; text-align: left;" target="_blank">phasing out the wretched Points system</a> on Xbox Live rather clear, but what it didn’t outline was the timeline. Larry Hryb, Director of Programming for Xbox Live, has just announced that come the next system update, the MS Points will be eliminated.</div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;">
</div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 16px; text-align: justify;">
Microsoft had said earlier this year during the <a href="http://www.thinkdigit.com/Gaming/Xbox-One-All-you-need-to-know_14742.html" style="color: #0072c2; line-height: 14px; text-align: left;" target="_blank">announcement of the Xbox One</a> that the company will also be doing away with the wretched MS Points system, which had become the cause of frustration for many gamers. The issue was not just with the arbitrary conversion of real money to Points, but also when translating different currencies into Points. Since Points could only be bought in USD equivalents, international customers ended up paying more for their Points than the US counterparts due to various currency conversion factors.</div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 16px; text-align: justify;">
Microsoft plans on implementing with the next system update for the Xbox 360 will be a local currency purchase system, where you will be able to purchase content in your local currency, hence saving the cost of currency conversion and various taxes associated with it. It would seem that the new purchase system has been in testing with the current Xbox Live Beta Dashboard and if the program completes successfully, the ability to purchase content in local currencies will also make it to your console.</div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 16px; text-align: justify;">
However, if you’re one of those who has a lot of points accrued, or own those Microsoft Points gift card, the Redmond Giant isn’t willing to hang you out to dry. Here’s what Major Nelson had to say about the matter:</div>
<div style="background-color: white; color: #191919; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-bottom: 16px; text-align: justify;">
<i>“Don’t worry about your Microsoft Points Cards either. We’ll continue to accept purchased Microsoft Points Cards and codes until further notice, and we’ll add to your account an amount of local currency equal to or greater than the Marketplace value of those points. In addition, we know you’ve worked hard on your Microsoft Points earned through Xbox Live Rewards. These will remain in your Xbox Live account and transition to local currency with the rest of your Microsoft Points.”</i></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-79354682979738520752013-08-12T01:41:00.000-07:002013-08-12T01:41:04.080-07:00The week in Tech: 5 must-know things<div dir="ltr" style="text-align: left;" trbidi="on">
<h1 itemprop="headline" style="color: #333333; font-family: helvetica, arial, sans-serif; font-size: 32px; line-height: 34px; margin: 0px; padding: 20px 0px 0px 70px;">
The week in Tech: 5 must-know things</h1>
<div>
<br /></div>
<div>
<div class="article-body" itemprop="articleBody" role="main">
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
<span style="font-weight: 700;"><a href="http://www.usatoday.com/story/tech/2013/08/06/yahoo-is-getting-a-new-logo/2617033/" style="color: #1990e5; text-decoration: none;" title="http://www.usatoday.com/story/tech/2013/08/06/yahoo-is-getting-a-new-logo/2617033/">1) Yahoo is getting a new logo — in a month</a></span></div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
Out with the old, in with the new. Yahoo is changing its logo for the first time in its 18-year history next month. A company executive told USA TODAY's Jon Swartz that Yahoo may change its typeface, its trademark color (purple) and its exclamation point in the rebranding process. But Yahoo commercials will still have the company's distinctive yodel.</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
Yahoo will keep things interesting by unveiling a new logo every day, for 30 days, until the real logo is introduced on Sept. 4.</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
<span style="font-weight: 700;"><a href="http://www.usatoday.com/story/tech/columnist/baig/2013/08/06/motorola-moto-x-review/2622975/" style="color: #1990e5; text-decoration: none;" title="http://www.usatoday.com/story/tech/columnist/baig/2013/08/06/motorola-moto-x-review/2622975/">2) Review: Design it yourself Moto X a solid phone for consumers</a></span></div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
Last week we told you all about Motorola's new Moto X smartphone and its cool new features. But how does it stack up against its other smartphone competitors?</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
USA TODAY's Ed Baig took the Moto X out for a test run earlier this week and gave us a first look at the pros and cons of the new phone:</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
<i>Good: </i>Driving Mode for voice-controlled texts and calls is "maybe the coolest feature." Another "headline feature," Touchless Control, lets you use your voice to make calls, set alarms and more.</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
<i>Not so good: </i>The phone has "rather middling specs" and a 4.7-inch screen that's "not the sharpest screen out there."</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
<i>Should you get it? </i>Baig says the Moto X is "a solid phone that I can absolutely recommend."</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
<span style="font-weight: 700;"><a href="http://www.usatoday.com/story/tech/columnist/baig/2013/08/07/lg-g2-smartphone/2628281/" style="color: #1990e5; text-decoration: none;" title="http://www.usatoday.com/story/tech/columnist/baig/2013/08/07/lg-g2-smartphone/2628281/">3) LG unveils G2 smartphone</a></span></div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
Don't let your clumsy fingers drop another call. LG unveiled a new smartphone this week that changes the way you grab your phone to answer calls.</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
The G2 comes with volume and power controls on the back of the device, not on the side or the top where these smartphone buttons usually reside.</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
Another new feature on the G2 is somewhat of a throwback: Users can pick up the phone to answer incoming calls, much as they would on a corded landline telephone.</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
LG's new smartphone will be available sometime this fall, but the company has yet to release pricing or carrier information.</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
<span style="font-weight: 700;"><a href="http://www.usatoday.com/story/tech/columnist/baig/2013/08/08/sony-ht-st7-soundbar-premium-sound-high-price/2631817/" style="color: #1990e5; text-decoration: none;" title="http://www.usatoday.com/story/tech/columnist/baig/2013/08/08/sony-ht-st7-soundbar-premium-sound-high-price/2631817/">4) Review: New Sony sound bar provides premium audio at high price</a></span></div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
If you're the average person, you can't afford a movie theater in your home. But why not try to get theater-quality sound for your TV?</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
Sony gave Ed Baig a sneak peek of the new HT-ST7 sound bar earlier this week in New York. The bar delivers surround sound "far superior to the sound that typically emerges from HDTV speakers" in a compact unit that you can position in front of your flat-panel TV. The bar has nine independent speakers, seven amplifiers and seven inputs for connecting the device to your TV.</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
But theater-quality sound doesn't come cheap. Sony's starting price for the sound bar is $1,299.</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
<span style="font-weight: 700;"><a href="http://www.usatoday.com/story/tech/sciencefair/2013/08/07/maya-frieze-holmul/2625201/" style="color: #1990e5; text-decoration: none;" title="http://www.usatoday.com/story/tech/sciencefair/2013/08/07/maya-frieze-holmul/2625201/">5) Stunning Maya sculpture unearthed from buried pyramid</a></span></div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
Well-preserved ruins are a rare, but welcome, find for archaeologists. An international team announced earlier this week that they have discovered a "stunning" 30-foot-long stucco wall in Guatemala beneath a Maya pyramid.</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
The frieze depicts three men crowning a new ruler at the Maya site Holmul around the year 590. The sculpture is painted in bright colors of red, blue, yellow and green.</div>
<div style="color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px;">
Make sure you check out the pictures at the <a href="http://news.nationalgeographic.com/news/2013/08/pictures/130807-maya-frieze-discovered-holmul-guatemala-archaeology/" style="color: #1990e5; text-decoration: none;" title="http://news.nationalgeographic.com/news/2013/08/pictures/130807-maya-frieze-discovered-holmul-guatemala-archaeology/">National Geographic website</a>.</div>
</div>
<div class="inline-share-tools asset-inline-share-tools asset-inline-share-tools-bottom" style="clear: both; color: #333333; font-family: arial, sans-serif; font-size: 14px; line-height: 22px; margin-bottom: 15px; margin-left: 60px; padding-top: 10px; white-space: nowrap;">
<br /></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-25345530652592168252013-08-11T18:42:00.001-07:002013-08-12T06:43:07.236-07:00Former Microsoft VP thought dead<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<h1 style="background-color: white; border: 0px; clear: both; color: #39434c; font-family: franklin-gothic-urw-cond, 'Helvetica Condensed Bold', Helvetica, Arial, sans-serif; font-size: 50px; line-height: 50px; margin: 5px 0px 7px; outline: 0px; padding: 0px; vertical-align: baseline;">
Former Microsoft VP thought dead after his plane crashes into Connecticut homes</h1>
<div id="introP" style="-webkit-font-smoothing: subpixel-antialiased; background-color: white; border: 0px; color: #768696; font-family: Helvetica, Arial, sans-serif; font-size: 1.333em; line-height: 1.22em !important; margin-bottom: 17px; outline: 0px; padding: 0px; vertical-align: baseline;">
Bill Henningsgaard, a former sales VP at the computing giant, is presumed dead, along with his 17-year-old son and two younger children, after his plane crashes into two homes while approaching an airport.(<a href="http://news.cnet.com/8301-10805_3-57597974-75/former-microsoft-vp-thought-dead-after-his-plane-crashes-into-connecticut-homes/" target="_blank">Read the original post here</a>)</div>
<div id="introP" style="-webkit-font-smoothing: subpixel-antialiased; background-color: white; border: 0px; color: #768696; font-family: Helvetica, Arial, sans-serif; font-size: 1.333em; line-height: 1.22em !important; margin-bottom: 17px; outline: 0px; padding: 0px; vertical-align: baseline;">
<br /></div>
<div style="-webkit-font-smoothing: subpixel-antialiased; background-color: white; border: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px; margin-top: 10px; outline: 0px; padding: 0px; vertical-align: baseline;">
A former Microsoft executive, along with his 17-year-old son and two younger children, are presumed dead after the man's small plane crashed into two Connecticut homes Friday.</div>
<div style="-webkit-font-smoothing: subpixel-antialiased; background-color: white; border: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px; margin-top: 10px; outline: 0px; padding: 0px; vertical-align: baseline;">
Bill Henningsgaard, 54, held various marketing and sales positions at the computing giant -- including vice president of sales for the western United States, Australia, and New Zealand -- before leaving in the early 2000s to focus on philanthropy. He was on a trip to explore college options with his son when his plane went down while approaching Connecticut's Tweed New Haven airport. The cause of the crash has not yet been determined.</div>
<div style="-webkit-font-smoothing: subpixel-antialiased; background-color: white; border: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px; margin-top: 10px; outline: 0px; padding: 0px; vertical-align: baseline;">
An East Haven Fire Department official <a href="http://www.washingtonpost.com/national/ntsb-likely-4-to-6-people-dead-after-small-plane-crashes-in-conn-residential-neighborhood/2013/08/09/bf3ec140-0156-11e3-8294-0ee5075b840d_story.html" style="border: 0px; color: #2964bf; cursor: pointer; font-family: inherit; font-size: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;">told</a> the Associated Press that four bodies -- two from the plane and two from one of the houses -- had been recovered. The bodies have yet to be identified by the medical examiner, but two children -- a 1-year-old and a 13-year-old -- have been missing since the plane crash.</div>
<div style="-webkit-font-smoothing: subpixel-antialiased; background-color: white; border: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px; margin-top: 10px; outline: 0px; padding: 0px; vertical-align: baseline;">
Henningsgaard's brother <a href="http://www.cnn.com/2013/08/09/us/connecticut-plane-crash/index.html?hpt=us_c2" style="border: 0px; color: #2964bf; cursor: pointer; font-family: inherit; font-size: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;">told</a> CNN there was no reason to think anyone other than Henningsgaard and his son were aboard the plane, and <a href="http://www.svpseattle.org/who-we-are/network-of-partners" style="border: 0px; color: #2964bf; cursor: pointer; font-family: inherit; font-size: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;">Social Venture Partners</a>, a philanthropic organization that Henningsgaard worked with as a board member, <a href="http://www.svpseattle.org/blog/remembering-bill-henningsgaard" style="border: 0px; color: #2964bf; cursor: pointer; font-family: inherit; font-size: inherit; font-style: inherit; margin: 0px; outline: none; padding: 0px; text-decoration: none; vertical-align: baseline;">posted</a> an item on its blog Friday evening lamenting over Henningsgaard's death.</div>
<div style="-webkit-font-smoothing: subpixel-antialiased; background-color: white; border: 0px; font-family: Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.984375px; margin-top: 10px; outline: 0px; padding: 0px; vertical-align: baseline;">
"Many of you know first-hand how the extraordinary and visionary leadership of Bill Henningsgaard was visible all over this community," reads the item from SVP, a group of partners who pool their money to have greater charitable impact on local nonprofits. "He worked tirelessly to build partnerships and facilitate efforts that put us on the path of engaging the community to actively support every child, step by step, from cradle to career. Bill walked the talk to make our community stronger."</div>
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0tag:blogger.com,1999:blog-1243899714805593385.post-51524142633530982882013-08-10T02:09:00.000-07:002013-08-12T01:33:32.924-07:00JAVA Chat App - OKok<div dir="ltr" style="text-align: left;" trbidi="on">
<h2 style="text-align: left;">
<span style="font-size: large;"><b>OKok chat</b></span></h2>
<div>
<span style="font-size: large;"><br /></span></div>
<div>
<span style="font-size: large;">OKok chat is a simple <b>chat application</b> developed using java,</span></div>
<div>
<span style="font-size: large;">it is meant for "one on one" chat between two people only,</span><span style="font-size: large;">It uses java's "<b>java.net</b>" for communicating through sockets.</span></div>
<div>
<span style="font-size: large;"><br /></span></div>
<div>
<span style="font-size: large;">In this post i'll be posting both the code and HOW TO'S of running the application</span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-large;"><br /></span></div>
<h2 style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-large;"><b>PART 1( The application)</b></span></h2>
<h2 style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-large;">#Step 1:</span></h2>
<div>
<b><span style="font-size: large;">Download the application </span></b></div>
<div>
<div>
</div>
<div>
<div>
<span style="font-size: large;"><b>Note</b>: </span></div>
<div>
<ul style="text-align: left;">
<li><span style="font-size: large;">If two people (ONE and TWO) want to chat with each other then ONE should download Server.jar and TWO should download Client.jar(or vice versa). </span></li>
<li><span style="font-size: large;">In short if person 1 has <b>server.jar</b> then person 2 should have <b>client.jar </b></span></li>
<li><span style="font-size: large;">Also <b>BOTH</b> need to download "<b>jarfix.exe</b>"</span></li>
</ul>
</div>
</div>
<div>
<span style="font-size: large;"><br /></span></div>
<div>
<span style="font-size: large;">You can download the respective file here</span></div>
<div>
<span style="font-size: large;"><br /></span></div>
<div>
<span style="font-size: large;"> 1: <a href="http://ubuntuone.com/6OhxSv6xbl5j4mscmMX2xz" rel="nofollow">Server.jar</a> ( 7.1 KB )</span></div>
<div>
<span style="font-size: large;"> 2: <a href="http://ubuntuone.com/5mYjLxVEgNI0jB0yUkpdxV" rel="nofollow">Client.jar</a> (7 KB)</span></div>
<div>
<span style="font-size: large;"> 3: <a href="http://ubuntuone.com/56XgUhltuK72LseTlriZRW" rel="nofollow">jarfix.exe</a> (63.8 KB)</span></div>
<div>
<span style="font-size: large;"><br /></span></div>
<div>
<span style="font-size: large;"><br /></span></div>
</div>
<div>
<span style="font-size: large;"><b>Things you need to know</b>:</span></div>
<div>
<ul style="text-align: left;">
<li><span style="font-size: large;"> "<b>IP Address</b>" of the person having Server.jar (<a href="http://whatismyipaddress.com/" rel="nofollow" target="_blank">click here to find your ip</a>)</span></li>
<li><span style="font-size: large;"> <b>Port no of Server.jar</b>,person having Server.jar needs to choose a port no (any number greater than 1024 and less than 65535, for example: 9090) </span></li>
<li><span style="font-size: large;"> The person having the client.jar should be told the IP Address and port explicitly</span></li>
</ul>
<div>
<span style="font-size: large;"><br /></span></div>
</div>
<div>
<span style="font-size: large;"><br /></span></div>
<div>
<h2 style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-large;">#Step 2:</span></h2>
</div>
<div>
<span style="font-size: large;"> </span><b style="font-size: x-large;">Note</b><span style="font-size: large;">: By now the person having "client.jar" should know IP Address and port of server</span></div>
<div>
<span style="font-size: large;"><br /></span></div>
<div style="text-align: left;">
<span style="font-size: large;"> 1: Double click on jarfix.exe (<a href="http://johann.loefflmann.net/en/software/jarfix/index.html" rel="nofollow" target="_blank">why ? what is this ?</a>) and follow instructions.<br /> </span></div>
<div style="text-align: left;">
<span style="font-size: large;"> 2: The individual having Server.jar should double click it, something like the image shown below will appear <br /><br /><a href="http://1.bp.blogspot.com/-SI5pM5CHZb8/UgXxiyrGFgI/AAAAAAAAAAc/xJ4nwzh2Gng/s1600/SNAP1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img alt="chat application" border="0" src="http://1.bp.blogspot.com/-SI5pM5CHZb8/UgXxiyrGFgI/AAAAAAAAAAc/xJ4nwzh2Gng/s1600/SNAP1.png" title="java chat application" /></a><br /><br /><br />3: Enter a port no (any number greater than 1024 and less than 65535, for example: 9090) and <b>remember</b> it<br /> also the other person or client should be told this number</span></div>
<div style="text-align: left;">
<span style="font-size: large;">4: Click ok ,something like the image shown below appears<br /><br /><a href="http://4.bp.blogspot.com/-shHf9CeYQ6w/UgX2Xy5b3II/AAAAAAAAAAs/NwUTc_QwFU0/s1600/snap2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img alt="chat application" border="0" height="289" src="http://4.bp.blogspot.com/-shHf9CeYQ6w/UgX2Xy5b3II/AAAAAAAAAAs/NwUTc_QwFU0/s320/snap2.png" title="java chat application" width="320" /></a><br /><br />5: Now the person having client.jar should double click it, something like the image shown below will appear</span></div>
<div style="text-align: left;">
<span style="font-size: large;"><br /><a href="http://1.bp.blogspot.com/-6rId3UozlhI/UgX4vBrG_PI/AAAAAAAAAA8/iHzzOMT-90U/s1600/sanp3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em; text-align: center;"><img alt="chat application client" border="0" src="http://1.bp.blogspot.com/-6rId3UozlhI/UgX4vBrG_PI/AAAAAAAAAA8/iHzzOMT-90U/s1600/sanp3.png" title="java chat application" /></a><br /><br />6: Now the client has to enter the IP Address of server in the "server name" field and server's port in the port field<br /><br />And voila! the client and server can chat now !!</span></div>
<div style="text-align: left;">
<span style="font-size: large;"><br /></span></div>
<h2 style="text-align: left;">
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-large;">PART 2(The code)</span></h2>
<div>
<span style="font-family: Arial, Helvetica, sans-serif; font-size: x-large;">server.java</span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<div style="font-size: xx-large;">
<span style="font-family: Arial, Helvetica, sans-serif;"><br /></span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
</span>
<br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">import java.awt.*;</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
</span>
<br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">import java.awt.event.ActionEvent;</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
</span>
<br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">import java.awt.event.ActionListener;</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
</span>
<br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">import java.awt.event.KeyEvent;</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
</span>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">import java.awt.event.KeyListener;</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
<div>
import java.awt.event.MouseEvent;</div>
<div>
import java.awt.event.MouseListener;</div>
<div>
import java.io.*;</div>
<div>
import java.net.*;</div>
<div>
import javax.swing.*;</div>
<div>
<br /></div>
<div>
public class server</div>
<div>
{ </div>
<div>
<br /></div>
<div>
public static void main(String[] args)throws IOException</div>
<div>
{</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> Ehandler obj1=new Ehandler(0);//make an object of the class ehandler which implements ActionListener,MouseListener,Runnable and KeyListener</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> obj1.first(); </div>
<div>
<br /></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div>
}</div>
<div>
<br /></div>
<div>
<br /></div>
<div>
class Ehandler implements ActionListener,MouseListener,Runnable,KeyListener</div>
<div>
{</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> String str="chat started";</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> String temp="";</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>JFrame mainFrame,popup;<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>TextArea ta1;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>TextField tf1,tf_port;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>Button bt_ok;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>private ServerSocket ss;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>boolean flag=false;</div>
<div>
boolean proceed=false;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> int port;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> public Ehandler(int p)</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> try</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> popup=new JFrame("Enter port");//whenever an object of type Ehandler is created ask for port //number</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> ta1=new TextArea(str,20,60);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> tf1=new TextField("type your message here..",60);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> proceed=false;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> popup=new JFrame("Enter server name and port");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>JLabel l_port=new JLabel("Port:");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>tf_port=new TextField(10);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>bt_ok =new Button("ok");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>bt_ok.addActionListener(this);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>popup.setLayout(new FlowLayout());</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>popup.add(l_port);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>popup.add(tf_port);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>popup.add(bt_ok);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>popup.setSize(200, 200);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>popup.setLocation(500, 500);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>popup.setVisible(true);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>while(!proceed);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> popup.setVisible(false);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> ss=new ServerSocket(port);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> catch(IOException e)</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span>e.printStackTrace();</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> mainFrame=new JFrame("OKok : vaibhav's chat :)");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
public void first()</div>
<div>
{</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> Thread t=new Thread(this);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> t.start();</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> tf1.addMouseListener(this);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> tf1.addKeyListener(this);</div>
<div>
Button b1=new Button("send");</div>
<div>
b1.addActionListener(this);</div>
<div>
</div>
<div>
mainFrame.setLayout(new FlowLayout());</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> mainFrame.getContentPane().add(ta1);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> mainFrame.getContentPane().add(tf1);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> mainFrame.getContentPane().add(b1);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> mainFrame.setSize(500,450);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> mainFrame.setLocation(500,200 );</div>
<div>
mainFrame.setVisible(true);</div>
<div>
}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> boolean wait=true;</div>
<div>
String cm,m;</div>
<div>
public void run()</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>{ </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> try</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.println("waiting for client on port "+ss.getLocalPort());</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> Socket s=ss.accept();</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.println("critical");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.println("just connected to "+s.getRemoteSocketAddress());</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> DataInputStream in=new DataInputStream(s.getInputStream());</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> DataOutputStream out=new DataOutputStream(s.getOutputStream());</div>
<div>
</div>
<div>
</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> while(!flag)</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> cm=in.readUTF();<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> str=str+"\nclient:"+cm;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> ta1.setText(str);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> tf1.setText("enter message..");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> wait=true;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> while(wait);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.println(m);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> out.writeUTF(m);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> if((cm.compareTo("bye")==0)||(m.compareTo("bye")==0))</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {flag=true;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> <span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> s.close(); </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> catch(IOException e)</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.println("exception in run");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
public void actionPerformed(ActionEvent e)</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>{</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> if(e.getActionCommand()=="send")</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> sendto();</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> if(e.getActionCommand()=="ok")</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> port=Integer.parseInt(tf_port.getText());</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> proceed=true;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>public void sendto()</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>{</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.println("send clicked");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> String x=tf1.getText();</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> str=str+ "\nme:"+x;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> ta1.setText(str);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> tf1.setText("waiting for reply...do not send right now");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> m=""+x;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> wait=false;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>public void mouseClicked(MouseEvent e) </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>{</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> if(e.getSource()==tf1)</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> tf1.setText("");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>public void mouseEntered(MouseEvent e) {}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>public void mouseExited(MouseEvent e) {}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>public void mousePressed(MouseEvent e) {}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>public void mouseReleased(MouseEvent e) {}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>public void keyPressed(KeyEvent arg0){}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>public void keyReleased(KeyEvent arg0) {}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>public void keyTyped(KeyEvent arg0) {</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>if(arg0.getKeyChar()=='\n')</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>{</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>System.out.println("enter pressed");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>sendto();</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div>
}</div>
<div style="font-size: xx-large;">
<br /></div>
<div style="font-size: xx-large;">
Client.java</div>
<div>
<br /></div>
</span></div>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"></span><br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">import java.io.*;</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
</span>
<br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">import java.net.*;</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
</span>
<br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">public class client</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
</span>
<br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">{</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
</span>
<br />
<div>
<span style="font-family: Arial, Helvetica, sans-serif;">static boolean flag=false;</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
</span>
<div>
<span style="font-family: Arial, Helvetica, sans-serif;"><span class="Apple-tab-span" style="white-space: pre;"> </span>public static void main(String args[])throws IOException</span></div>
<span style="font-family: Arial, Helvetica, sans-serif;">
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>{</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>BufferedReader br=new BufferedReader(new InputStreamReader(System.in));</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>System.out.print("enter server name:");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>String sname=br.readLine();</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.println(sname);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.print("enter port no:");</div>
<div>
int port=Integer.parseInt(br.readLine());</div>
<div>
try</div>
<div>
{</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.println("connecting to "+sname+" at port "+port+"..." );</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> Socket c=new Socket(sname,port);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.println("connected to "+c.getRemoteSocketAddress());</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> OutputStream o=c.getOutputStream();</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> DataOutputStream out =new DataOutputStream(o);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>String sm;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>String message;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>while(!flag)</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.print("enter your message:");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> message=br.readLine();</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> out.writeUTF(message);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> if(message.compareTo("bye")==0)</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {flag=true;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> InputStream i=c.getInputStream();</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> DataInputStream in=new DataInputStream(i);</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> sm=in.readUTF();</div>
<div>
System.out.println("server says:"+sm);</div>
<div>
if(sm.compareTo("bye")==0)</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> {flag=true;</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }//while </div>
<div>
c.close();<span class="Apple-tab-span" style="white-space: pre;"> </span> </div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
catch(IOException e)</div>
<div>
{</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> System.out.println("exception occoured !");</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span> }</div>
<div>
<br /></div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span>}</div>
<div>
<span class="Apple-tab-span" style="white-space: pre;"> </span></div>
<div>
}</div>
<div>
<br /></div>
</span></div>
<div>
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0Manipal, Karnataka, India13.3464069 74.78857599999992113.2846074 74.707894999999922 13.4082064 74.869256999999919tag:blogger.com,1999:blog-1243899714805593385.post-71784980436321205512013-08-09T23:36:00.001-07:002013-08-10T02:27:34.108-07:00About me <div dir="ltr" style="text-align: left;" trbidi="on">
<span style="font-size: large;"><b>Hi there ! </b> </span><br />
<span style="font-size: large;"><br /></span>
<span style="font-size: large;">If you have reached this blog I assume that you are someone like me,a tech enthusiast/addict and your favorite time pass = (you+ your_pc +code); </span><br />
<span style="font-size: large;">In short, you are a geek looking for some "Geek Fun" !! </span><br />
<span style="font-size: large;"><br /></span>
<span style="font-size: large;">My name is Vaibhav, and I'm an undergrad from Manipal Institute of Technolog and blah blah.., the real reason i've started this blog is to stay updated on the latest Tech( I'm gonna keep an eye out for the latest tech news etc), share my work(which i know is not perfect and any help is welcome) and to connect with people who share the same interests as me :)</span><br />
<br />
<br />
</div>
Anonymoushttp://www.blogger.com/profile/16009051507667654517noreply@blogger.com0