Pages

Monday, December 29, 2014

“Smart” Software Can Be Tricked into Seeing What Isn’t There


A technique called deep learning has enabled Google and other companies to make breakthroughs  in getting computers to understand the content of photos. Now researchers at Cornell University and the University of Wyoming have shown how to make images that fool such software into seeing things that aren’t there.The researchers can create images that appear to a human as scrambled nonsense or simple geometric patterns, but are identified by the software as an everyday object such as a school bus. The trick images offer new insight into the differences between how real brains and the simple simulated neurons used in deep learning process images.Researchers typically train deep learning software to recognize something of interest—say, a guitar—by showing it millions of pictures of guitars, each time telling the computer “This is a guitar.” After a while, the software can identify guitars in images it has never seen before, assigning its answer a confidence rating. It might give a guitar displayed alone on a white background a high confidence rating, and a guitar seen in the background of a grainy cluttered picture a lower confidence rating  (see “10 Breakthrough Technologies 2013: Deep Learning”).That approach has valuable applications such as facial recognition, or using software to process security or traffic camera footage, for example to measure traffic flows or spot suspicious activity.But although the mathematical functions used to create an artificial neural network are understood individually, how they work together to decipher images is unknown. “We understand that they work, just not how they work,” says Jeff Clune, an assistant professor of computer science at the University of Wyoming. “They can learn to do things that we can’t even learn to do ourselves.”To shed new light on how these networks operate, Clune’s group used a neural network called AlexNet that has achieved impressive results in image recognition. They operated it in reverse, asking a version of the software with no knowledge of guitars to create a picture of one, by generating random pixels across an image.The researchers asked a second version of the network that had been trained to spot guitars to rate the images made by the first network. That confidence rating was used by the first network to refine its next attempt to create a guitar image. After thousands of rounds of this between the two pieces of software, the first network could make an image that the second network recognized as a guitar with 99 percent confidence.However, to a human, those “guitar” images looked like colored TV static or simple patterns. Clune says this shows that the software is not interested in piecing together structural details like strings or a fretboard, as a human trying to identify something might be. Instead, the software seems to be looking at specific distance or color relationships between pixels, or overall color and texture.Ryan Adams, an assistant computer science professor at Harvard, says the results aren’t  completely surprising. The fact that large areas of the trick images look like seas of static probably stems from the way networks are fed training images. The object of interest is usually only a small part of the photo, and the rest is unimportant.Adams also points out that Clune’s research shows humans and artificial neural networks do have some things in common. Humans have been thinking they see everyday objects in random patterns—such as the stars—for millennia.

Friday, December 26, 2014

How to Create Text Boxes Dynamically


Output Screenshot:



int cleft=1; //for the position of TextBoxes .

we need to create a button handler to create textboxes because we are creating a function AddNewTextBox from class TextBox.

private void createButton_Click(object sender, EventArgs e)
{
AddNewTextBox();
}

public TextBox AddNewTextbox()
{
TextBox txt=new TextBox();
this.Controls.Add(txt);
txt.Top=cleft*25;
txt.Left=100;
txt.Text="TextBox" + this.cleft.ToString();
cleft=cleft+1;
return txt;

}

Saturday, October 18, 2014

Announcing Windows 10



It’s a humbling and amazing thing to work on Windows, which is used by over 1.5 billion people in every country of the world. From kids playing with computers for the first time, to writers and journalists, to engineers, to gamers, to CEOs, at some point Windows has empowered all of us.
In the Windows team, we’re proud of this – but we also know that the world today is very different from the one in which Windows grew up. Today, devices outnumber people. Connectivity is like oxygen. The tension between the desire for agility versus stability poses a huge challenge for IT Pros. Experiences – no matter what device you’re on – just need to work. The only thing that hasn’t really changed is the situation for developers – still too much to do, and not enough time.
One way to look at it is that Windows is at a threshold :-). It’s time for a new Windows. This new Windows must be built from the ground-up for a mobile-first, cloud-first world. This new Windows must help our customers be productive in both their digital work and their digital life. This new Windows must empower people and organizations to do great things.
That new Windows is Windows 10.
Windows 10 represents the first step of a whole new generation of Windows. Windows 10 unlocks new experiences for customers to work, play and connect. Windows 10 embodies what our customers (both consumers and enterprises) demand and what we will deliver.
Windows 10 will run across an incredibly broad set of devices – from the Internet of Things, to servers in enterprise data centers worldwide. Some of these devices have 4 inch screens – some have 80 inch screens – and some don’t have screens at all. Some of these devices you hold in your hand, others are ten feet away. Some of these devices you primarily use touch/pen, others mouse/keyboard, others controller/gesture – and some devices can switch between input types.
And across this breadth of devices, we are delivering one application platform for our developers. Whether you’re building a game or a line of business application, there will be one way to write a universal app that targets the entire family. There will be one store, one way for applications to be discovered, purchased and updated across all of these devices.Windows 10 will deliver the right experience on the right device at the right time. It will be our most comprehensive platform ever.
Now, during the design of a new Windows, we spend time with many diverse customers. One of the most important of these customers is the enterprise. In the past year I’ve talked to dozens of enterprise customers and listened to how they are using and deploying Windows, and what they need from us.
These customers are betting their businesses on Windows – in the first half of this year, shipments of enterprise PCs grew 14%. In that same time period, shipments of Windows enterprise tablets grew 33%.
These customers have a need to evaluate Windows early, so we are starting our dialog with them today. For more details about what Windows 10 will have for these customers, 
Tomorrow, we are excited to announce the Windows Insider Program, where PC experts and IT Pros can get access to a technical preview of Windows 10 for desktops and laptops. Soon after, we’ll also be releasing technical previews of Windows Server and our management tools.
With the Insider program, we’re inviting our most enthusiastic Windows customers to shape Windows 10 with us. We know they’re a vocal bunch – and we’re looking forward to hearing from them.
Today was an important beginning for our customers and partners as we embark on the Windows 10 journey together. I encourage everyone reading this to sign up for the Windows Insider Program, download the technical preview, and let us know what you think. Check here tomorrow for specific details – but in the meantime, here’s a peek at some of the new features you can test drive once you become an Insider:


Start menu: The familiar Start menu is back, but it brings with it a new customizable space for your favorite apps and Live Tiles.
 Everything runs in a window: Apps from the Windows Store now open in the same format that desktop apps do and can be resized and moved around, and have title bars at the top allowing for maximize, minimize, and close with a click.
 Snap enhancements: You can now have four apps snapped on the same screen with a new quadrant layout. Windows will also show other apps and programs running for additional snapping and even make smart suggestions on filling available screen space with other open apps.


Everything runs in a window: Apps from the Windows Store now open in the same format that desktop apps do and can be resized and moved around, and have title bars at the top allowing for maximize, minimize, and close with a click.

Snap enhancements: You can now have four apps snapped on the same screen with a new quadrant layout. Windows will also show other apps and programs running for additional snapping and even make smart suggestions on filling available screen space with other open apps.



Multiple desktops: Create desktops for different purposes and projects and switch between these desktops easily and pick up where you left off on each desktop.

Find files faster: File Explorer now displays your recent files and frequently visited folders making for finding files you’ve worked on is easier.
Watch the below video from Joe Belfiore to see many of these features in action. Immediately you’ll see how Windows 10 carries forward a sense of familiarity, while providing new capabilities to help you way the work you want to and be more productive.

Sunday, October 5, 2014

I OS 8 , The Best You Can Get


iOS 8 is the 8th major release of the iOS mobile operating system designed by Apple Inc , as the successor to iOS 7.Interactive notifications let the user respond to texts without leaving the app they are currently using. Five days after release, iOS 8 had been installed on 46% of compatible Apple devices.

  • Huge for developers , Massive for everyone else.

i OS 8 is the biggest i OS release ever  for developers and everyone else , But that wasn't the goal. We simply set out to create the most natural, most useful experience  one that is pleasantly surprising at first and becomes utterly indispensable before you know it.

  • Photos , Be the master of your photo collection.

Quickly find and edit the photos you take. Add your voice right in a text message. Let your health and fitness apps communicate with each other, with your trainer, and even with your doctor. We have also provided developers with deeper access and more tools. You’ll have new keyboard options and even more ways to share your content. And you’ll be able to use i Cloud and Touch ID in ways you never have before. Here are some of the things i OS 8 can do for you so you can do more than ever.

  • i OS smartest keyboard ever:

i OS 8 makes typing easier by suggesting contextually appropriate words to complete your sentences. It even recognizes to whom you’re typing and whether you’re in Mail or Messages. Because your tone in an email may be different from your tone in a message.


  • Compatible Devices:

i Phone 4 s and above
i Pad 2 and above 
i pod 5th Generation
 

Saturday, October 4, 2014

Record Sales Of IPhone 6



"Sales for iPhone 6 and iPhone 6 Plus exceeded our expectations for the launch weekend, and we couldn't be happier," said Apple Chief Executive Tim Cook. "We would like to thank all of our customers for making this our best launch ever, shattering all previous sell-through records by a large margin. While our team managed the manufacturing ramp better than ever before, we could have sold many more iPhones with greater supply and we are working hard to fill orders as quickly as possible."
Apple announces record sales of 10 million iPhone 6 and 6 plus units in first 3 days. Also the launch weekend for Apple's new iPhone 6 and 6 plus was the strongest start yet for the company's smartphone lineup, reaching 10 million units sold in the first 3 days of availability, and topping last year's previous best of 9 million

For Technical Specifications of iPhone 6 please visit iPhone Technical Specifications

Sunday, September 7, 2014

Codes on requests


CODE TO FIND THE DIRECTION AND MAGNITUDE OF A VECTOR USING CLASS
 category: OOP c++
IDe used : MS visual studio 2010
#include<iostream>
#include<conio.h>
#include<math.h>
using namespace std;

class vector
{
private:
     int a,b,c,d;
public:
 vector()
     {
           int a=0;
           int b=0;
           int c=0;
           int d=0;
     }
vector(int q,int w,int e,int r)
     {
           a=q;
           b=w;
           c=e;
           d=r;
     }
     void setx(int q)
     {
           a=q;
     }
     void sety(int w)
     {
           b=w;
     }
     void setz(int e)
     {
        c=e;
     }
     void setp(int r)
     {
           d=r;
     }
     int getx()
     {
           return a;
     }
     int gety()
     {
           return b;
     }
     int getz()
     {
           return c;
     }
     int getp()
     {
           return d;
     }
     float magnitude()
     {
           float u,i;
           u =c-a;
           i =d-b;
           u =u*u;
           i =i*i;
           return sqrt((u+i));
     }
     float direction()
     {
           float o,m;
           o=(d-b);
           m=(c-a);
           float n=o/m;n=atan(n);
           int j=(180/3.1412)*n;
return j;

     }
     };

void main()
{

     int q,w,e,r;
     cout<<"enter the value of a""\n";
     cin >> q;
     cout<<"enter the value of b""\n";
     cin >> w;
     cout<<"enter the value of c""\n";
     cin >> e;
     cout<<"enter the value of d""\n";
     cin >> r;

     vector v(q,w,e,r);
     cout<<"your direction is""\n";
     cout << v.direction()<<"\n";
     cout<<"your magnitude is""\n";
     cout << v.magnitude();

     getch();

}

 category DSA c++

 searching in a tree

#include<iostream>
#include<conio.h>
using namespace std;
class tree

private:
int data,elem;
tree* lchild;
tree* rchild;
public:

tree*insert(tree*temp,int elem)
{
if(temp==NULL)
{
temp=new tree;
temp->rchild=NULL;
temp->lchild=NULL;
temp->data=elem;
cout<<temp->data;
return temp;
}
else if(elem>=temp->data)
{
temp->rchild=insert(temp->rchild,elem);

}
else if(elem<temp->data)
{
temp->lchild=insert(temp->lchild,elem);

}
return temp;
}
void preorder(tree* t)
{
if(t!=NULL)
{
cout<<t->data;
preorder(t->lchild);
preorder(t->rchild);
}
}
void posorder(tree* t)
{
if(t!=NULL)

posorder(t->lchild);
posorder(t->rchild);
cout<<t->data;
}
}
int search(tree * t, int elem)
{    
if (t!=NULL)
{
if(t->data==elem)
{
cout<<"ELEMENT FOUND :  ";
return elem;
}
else if(elem>=t->data)
{
search(t->lchild,elem);
}
else if(elem<t->data)
{
search(t->rchild,elem);
} }
else
{
cout<<"ELEMENT NOT FOUND";
}
}

};
tree*root=NULL;
tree*temp=NULL;
void main()
{
int e;
tree t;
cout<<"DATA PRESENT IN TREE IS"<<endl;
root=t.insert(NULL,9);
t.insert(root,6);
t.insert(root,11);
t.insert(root,5);
t.insert(root,2);

cout<<"\npre Order :  ";
t.preorder(root);
cout<<endl;
cout<<"Post order :  ";
t.posorder(root);
cout<<"enter the element you want to search";
cin>>e;

t.search(root,e);

getch();

}

 feel free to ask any question on our fb page :)



Thursday, August 14, 2014

First Post

Welcome to the newly published blog .
this is to introduce you to the blog and define the purpose of this blog
our moto is "Quench Your Programming thirst" .
you can post any question on our facebook page or at the the blog's ask a question option.
your questions will be answered as soon as possible.( max 24 hrs)

and obviously there is always a room for improvement so your suggestions are welcomed :)