Wednesday, 24 June 2015

Install Qt 5.4 in Ubuntu 14.04



First you need to download according to your OS version(32 bit or  64-bit). 

Download link is below..



For 32bit

1)    wget http://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-linux-x86-5.4.0.run

2)    chmod +x qt-opensource-linux-x86-5.4.0.run

3)    ./qt-opensource-linux-x86-5.4.0.run


For 64bit

1)    wget http://download.qt-project.org/official_releases/qt/5.4/5.4.0/qt-opensource-linux-x64-5.4.0.run

2)    chmod +x qt-opensource-linux-x64-5.4.0.run

3)    ./qt-opensource-linux-x64-5.4.0.run
After this command  User Interface window will open then press next according to instruction. 


Note: Same way you can download any version just change 5.X according to version you want to install.


Wednesday, 10 June 2015

Apple's iOS 9 Features

1. Siri goes proactive

One of the major overhauls in iOS 9 can be found with Siri. The digital voice assistant has received a colourful facelift, but it's what's going on behind the scenes that is more interesting.

The new interface displays content in a better way, and Siri can now understand a wider range of requests on top of what was on offer in iOS 8. We were shown a number of examples during the keynote, including "show me my photos from Utah last August", "remind me to grab my coffee off the roof when I get in my car" and "play the top songs from 1982" via Apple Music.

Siri has been, until now, a reactive service, but that's changed in iOS 9. It's now Apple's answer to Google Now, with context sensitive information based on time, date and location. It can, for example, intelligently recognize when you get to the gym and plug in your headphones you'll want your workout mix, and display it on your lock screen.

2. Battery performance

In iOS 8, there is no clear battery saving mode. You're left to your own devices to turn off data, Wi-Fi, Bluetooth etc to try and conserve power.

That changes in iOS 9 with the introduction of a "low power mode," which Apple claims will provide you with three additional hours of typical usage.

iOS 9 apparently improves general performance too, with Apple saying it gives you an extra one hour of full usage over devices running iOS 8.

3. Multitasking on iPads

There are a few iPad-only new features incorporated into iOS 9. First up is the QuickType Keyboard, which adds handy copy, cut, paste tools to the suggestion bar, along with access to the camera, attachments and formatting.

Use two fingers on the keyboard and it becomes a track pad, allowing you to easily select the text you want -- something which is a little tricky in iOS 8.

There's also 'Slide Over', 'Split View' and 'Picture in Picture', which provide a range of multi-tasking options. The first two see two apps share the screen, the former just for a brief moment while the latter sees tho apps sit side by side permanently.

If you're familiar with Samsung's top end smartphones you'll recognize picture-in-picture, which allows you to pop out a video into a floating window.

4. App switching

Apple added contact shortcuts to the multi-tasking pane in iOS 8, but the large app previews means it's difficult to see just how many apps you have running.

This has been improved in iOS 9, with app previews now appearing as stacked cards, allowing you to flip through open applications far more easily and quickly, while getting a better overview on just how many you have open.

5. Spotlight Search

Apple has launched a search API for iOS 9, offering a huge improvement to the search feature. It will allow developers to index and link out their apps, making it easier to discover their content through the native search experience on iOS 9. Basically, users will be able to search not only apps or content from web, but also data within apps. This doesnt come as a surprise, considering recently Google started showing results from Android apps that users didn’t have installed on their phones.

6. Apple Pay

Unsurprisingly Apple Pay has been given a boost with iOS 9, but a word of warning -- it's still only supported on the iPhone 6 and 6 Plus (and Apple Watch).

Apple Pay on iOS 8 is compatible with a handful of US bank cards, but that support gets extended with iOS 9 to more providers including Discover, plus the service rolls out to users in the UK too.

With iOS 9 you can also add store credit and debit cards, plus loyalty and reward cards too. These are stored in "Wallet", the new name for "Passbook" in iOS 9.

7. Apple Maps gets transit data

Apple is regularly improving its once-disastrous mapping effort and with each update it becomes ever more useful, but it's still not quite a match for Google Maps.

One major improvement which was actually rumoured for iOS 8 but didn't arrive was public transport directions, which would add bus, train and subway routes, making it easier to get around.
Why it was a no show isn't clear but we're hoping it's a feature that will be picked up for iOS 9 if not before.
More ambitiously, we've also heard rumours that Apple is working on an augmented reality view that uses your camera to highlight points of interest on your screen. We never expected that to make it into iOS 8, but fingers crossed for iOS 9.

8. Support for older devices

Usually with a new iOS release older Apple devices are cast out into the cold with no update in sight, so it wasn't looking good for the iPad 2 and iPhone 4S.

That's not the case with iOS 9 however, as it will be coming to all the iPhones, iPads and iPods which received iOS 8. Therefore, iPhone 4S and above, iPad 2 and above, all iPad mini models, and iPod touch fifth-generation will get the latest software.

9. More free space

There's good news when it comes to downloading and installing iOS 9, as Apple has reduced its size.

The iOS 8 over-the-air (OTA) update was a hefty 4.6GB download, which caused many users issues with space on their devices. Last year, Apple had received a lot of flak from all quarters for the iOS 8 update taking up too much space for the install files.

The iOS 9 download is just 1.3GB -- which should be much more manageable.

10. Availability

As with iOS 8 last year, you'll be getting the iOS 9 update this "fall" (probably September) for free, but for the first time Apple will be launching a public beta this July -- allowing anyone to sign up and try the latest software before its official launch.


REFERENCES

1) http://timesofindia.indiatimes.com/tech/slideshow/apples-ios-9-vs-ios-8-ten-new-features/itslideshowviewall/47595112.cms

2)http://tech.firstpost.com/news-analysis/apple-ios-9-seven-major-highlights-of-the-new-mobile-os-at-wwdc-270040.html


Saturday, 30 May 2015

Android 6.0 (Marshmallow) features


After months of waiting, Google has finally announced that the next version of its mobile OS Android will be called Marshmallow. Also, it the next update of the OS will be numbered Android 6.0, instead of Android 5.2 as previously speculated.


Announced at Google I/O 2015, Android Marshmallow brings with it a number of new features to spruce up your smartphones and tablets (provided they get the update). Here we take a look at 10 of the features you can look look forward to with the next build of Android…

Native fingerprint support

We've seen some smartphone manufacturers already include fingerprint scanners in their devices, but with Android M, Google is looking to make the support standardized across the whole platform. To confirm rumors, native fingerprint support is coming to Android M using a standard API. That will mean that devices with a fingerprint scanner, like the Samsung Galaxy S6, can offer the same range of features.

The new feature will make it easy for Android phones with fingerprint readers to support mobile payments. You can authorize Android Pay transactions, and support can be integrated into other apps, so anyone will be able to use it.

With a partnership with Google on Lollipop, Samsung delivered important bits of code to the Android operating system with its SELinux security reinforcements.

The new fingerprint scanner support to stock Android will now benefit the entire Android ecosystem. This would effectively restrict the access of Android phones to their owners, something which is so far only possible on some of the high-end flagships from a select few manufacturers.

Web experience

Google has been exploring trends in the way web content is consumed to provide a better user-experience when interacting with websites and apps. "Chrome Custom Tabs is a new feature that gives developers a way to harness all of Chrome's capabilities, while still keeping control of the look and feel of the experience," said Burke.
Chrome Custom Tabs will allow apps to open a customized Chrome window on top of the active app, instead of launching the Chrome app separately. This will provide a faster and more intuitive user-experience when navigating between apps and the web. 
Chrome Custom Tabs supports automatic sign-in, saved passwords, autofill, and multi-process security to assist the integration of the app and web experience. So, for example, a Pinterest custom tab will have a Pinterest share button embedded in it, can include custom overflow menu options and doesn't require the Pinterest developers to build their own web browser.


Android Pay

Left off on Lollipop, one of the big introductions of Android M is Android Pay. It will be pre-installed on Android 4.4+ devices and will be supported on devices with NFC running Android KitKat and above without opening any app. Android Pay is secure because a virtual card number is created when you register a payment card, rather than an actual card number.

Using an open API, Android Pay will be available through Android's own app, or integrated into other bank apps. It will be available in the US, compatible with existing contactless payment locations, such as those that currently accept Apple Pay (a must to compete with Apple Pay's distribution) both at stores and in apps using their fingerprint.

It also means that app developers will be able to use a user's fingerprint for verification. Android Pay launch will be with Android M later in the year.


Improved battery life

One of the biggest announcements pertaining to Android M is a feature called Doze, and it has everything to do with saving precious juice on those baby batteries. Battery life has been something of concern for Android users since the beginning, and it looks like Google is taking measures to improve it.

Doze is a system state that will idle your device and background apps to a near-off state when you haven't used it for a while, a tactic that can make your phone last twice as long as it would if your Lollipop phone were on standby with Project Volta. With an OS like Android which supports multitasking, there's always a delicate balance between managing power and keeping applications running in the background updated.

Project Volta was supposed to change the fact that Android wasn't battery efficient. Like many other occasions where Google failed to deliver with Lollipop, the company is working hard to finally push through its vision of improving the way it collects location data and other information.

The search giant says it grabbed two Nexus 9 tablets, one running Lollipop and the other Android M, loaded the same apps and settings on both and then tested the standby power drain on the two. Apparently the Nexus 9 running Android M lasted up to two times longer than its Lollipop counterpart. It sounds impressive and we're hoping it translates to noticeably better battery life on our devices.

Your device will use motion detection to realize when it hasn't moved for an extended period of time and switches to a deeper sleep which consumes much less power. And, luckily, your device won't be completely useless in this mode, as Doze still allows alarms and key notifications to come through.

This comes with one sacrifice: apps don't stay as "fresh," meaning they won't be fully up-to-date with the latest information while your phone is dozing. That's a small price to pay for double the battery life, though.

Charging

Besides making our batteries last longer, Android M is also bringing faster charging with USB-C support, which is a new type of USB connector which, like Apple's Lightning connector, can be plugged in either way round and allows for faster and easier charging. It also lets users charge other devices with their Android phone, which isn't something any of us have asked for, but it's there.

Burke said on stage that it would be "coming to a device near you soon" -- that's the biggest hint at the next Nexus yet. Also, because USB Type-C works both ways, you'll get options for what you want to do when you connect a device. No more fumbling in the dark trying to plug in your charging cable the right way round.

Google claims devices with USB-C connectors will charge three- to five-times faster than the current microUSB offerings on the market.

Apps permissions

One of the big parts of Android M is a redesigned apps permissions system. Users will be able to approve or deny security permissions, such as camera or location access, on a case-by-case basis.

Currently, when you install an Android app, you agree to a range of permissions, such as what the app has access to. In Android M, you don't have to agree to things you don't want agree to. Instead, apps will ask permissions when you use a feature, rather than at installation.

This means that a user can grant applications some permissions but not others, and they can manage permissions access after the fact. It also makes it more clear to the user what an application is asking to do.

There are only eight categories of permissions available to apps now, and the apps will ask for them as they're needed. That's different from how Android currently works: Users are asked to approve all permissions at once when the app is installed. You'll be able to update the permissions at times other than installation, too, so if you don't want microphone permission, for example, you can cancel it.

More Android M features

Other improvements include changes to how text selection works, and further changes to the not-very-popular alterations to volume controls that were made in Android Lollipop. Google has simplified volume controls once again with the Android M update, with more granular control over the various audio settings on your device from ringtones and alarms to music playback and voice calls.

For Android M, Google is also revamping the web browsing experience with its Chrome browser. A new feature called Chrome Custom Tabs lets developers insert webviews directly in their apps, giving them the full power of Chrome without having to force the user to switch apps.

Essentially this feature allows applications to have the Chrome browser run atop their app whenever the user clicks on a link. This means that all of a user's autofill data, passwords, and cache are available when they open links within an application.

Android's built-in app linking system (also known as intents) is getting an upgrade, allowing apps to open content directly instead of stopping users with a dialogue box everytime.

With Android M, app developers can now have the operating system verify that certain types of links are meant to be opened with their app by checking with the web server what those links point to and verifying that it's meant to be opened with that app.

This year's release is accompanied by a preview for developers so they can test their apps and give Google feedback on the changes that they are making to Android. The Android M developer preview will be available today for the Nexus 5, Nexus 6, Nexus 9 and Nexus Player. The public will get its hands on it in Q3 2015.

Google Now 

Google Now has been improved upon once again in Android M. Focusing on three key ares: being aware of different contexts, providing answers and helping you take action, Google Now is now smarter than ever.

Google Now's context awareness understand over 100 million different places, so when you ask ''How far is it to there?'' Google Now know exactly which ''there'' you're referring to. This awareness is compounded by Google's Knowledge Graph, which understands one billion different entities, from sports teams to gas stations, TV shows to recipes.


Google Now is also rolling out a pilot program called ''Now on Tap'' with 100 popular apps. Now on Tap provides Google Now-like content right where you are, without having to leave the app you're in. So if you're in Spotify and say ''Ok Google, what is his real name?'' Now on Tap will know you're talking about the musician you're listening to and provide search results right there an then.

The same goes for content in emails. If someone asks you a question about a restaurant and to not forget something on your way home, Now on Tap can automatically pop up a restaurant card with Maps info, Yelp, OpenTable and the dialer, as well as offer to set a reminder for whatever it was you were supposed to not forget.


Google Chrome 
Chrome is also leaner and faster than ever before. Initially revamped with Android One devices in mind, where stable and speedy internet connections are not always possible, Chrome's new optimizations are set to arrive for everyone.

Chrome is now aware of network strength and can modify what you see as a result. For example, if your connection is bad, you might see colored squares rather than preview images in Search results. Optimized web pages will load four times faster and use 80 percent fewer bytes. You'll also see a memory usage reduction of up to 80 MB. Chrome will also support offline mode.

Google Photos 

As expected, Google pulled the wraps off its new Google Photos service. Previously a part of Google+, Google Photos is now standalone photo and video storage and sharing service that provides unlimited free storage for up to 16 MP photos and 1080p video. That is seriously impressive.

The Google Photos service stores high-quality compressed versions of your photos and movies but doesn't store anything on your device, so you can search through thousands of photos at high speed and without bogging your device down with gigabytes of photos.  


Popular features like Auto-Awesome and Stories are a key highlight, accessible through a new Assistant feature, which will automatically suggest creative uses of your images and footage. Through simple pinch gestures you can see tiled images for particular days, weeks, months or even years and then zoom right back in at any point you like.

Google Photos is also powerful for search, as you'd expect. You can search by People, Places, Things and Types, which are all automatically created, and you can drill down in each of those categories to see, for example, every picture you have of a particular person, all without ever tagging them. 

Sharing is also a breeze. You don't even need you contacts to have the Google Photos app. You can simply share a link that they can view in Chrome. If they are logged in they can easily download an entire album in seconds.




Saturday, 2 May 2015

verilog code for mejority detector

MEJORITY DETECTOR

module majority
(input v1,v2,v3,
output reg m);
always@(v1 or v2 or v3)
begin
            if((v1&&v2)|(v2&&v3)|(v3&&v1))
            m=1;
            else
            m=0;
end
endmodule

TESTBENCH

module majority_tb;
reg v1,v2,v3;
wire m;
majority m1(v1,v2,v3,m);
initial
begin
v1=0;v2=0;v3=0;
$monitor($time, ,,v1,v2,v3,,"m=%d",m);
#2 v1=0;v2=0;v3=0;
#2 v1=0;v2=0;v3=1;
#2 v1=0;v2=1;v3=1;
#2 v1=1;v2=0;v3=0;
#2 v1=1;v2=0;v3=1;
#2 v1=1;v2=1;v3=0;
#2 v1=1;v2=1;v3=1;
end
endmodule

You can also check more verilog code on

http://kaneriadhaval.blogspot.in/2013/11/all-besic-verilog-code.html

verilog code for counter

COUNTER INCREMENT BY 2

module counter2(r,clk,y);
input r,clk;
output [3:0]y;
reg [3:0]y;
always@(posedge clk or posedge r)
begin
if (r)
y <= 4'b0000;
else
y <= y + 2;
end
endmodule

TESTBENCH

module counter3_tb;
reg r,clk;
wire [3:0]y;
counter2 m1(r,clk,y);
initial
begin
clk=0;
r=0;
$monitor($time, ,,"c=%b",clk,,"r=%b",r,,"y=%b",y);
#5 r=1;
#15 r=0;
#50 $finish;
end
always
begin
#5 clk=~clk;
end
endmodule

OUTPUT



·         COUNTER INCREMENT BY 3

module counter2(r,clk,y);
input r,clk;
output [3:0]y;
reg [3:0]y;
always@(posedge clk or posedge r)
begin
if (r)
y <= 4'b0000;
else
y <= y + 3;
end
endmodule

TESTBENCH

module counter3_tb;
reg r,clk;
wire [3:0]y;
counter2 m1(r,clk,y);
initial
begin
clk=0;
r=0;
$monitor($time, ,,"c=%b",clk,,"r=%b",r,,"y=%b",y);
#5 r=1;
#15 r=0;
#50 $finish;
end
always
begin
#5 clk=~clk;
end
endmodule

verilog code for berral shifter

BERRAL SHIFTER



module bshift
(
input [7:0]a,
input [2:0]sh,
input left,right,
output reg [7:0] b);

always@(a,sh)
begin

if(left)
begin
case(sh)
3'b000: b = a;
3'b001: b = a<<1;
3'b010: b = a<<2;
3'b011: b = a<<3;
3'b100: b = a<<4;
3'b101: b = a<<5;
3'b110: b = a<<6;
3'b111: b = a<<7;
endcase
end

if(right)
begin
case(sh)
3'b000: b = a;
3'b001: b = a>>1;
3'b010: b = a>>2;
3'b011: b = a>>3;
3'b100: b = a>>4;
3'b101: b = a>>5;
3'b110: b = a>>6;
3'b111: b = a>>7;
endcase
end

end
endmodule

TESTBENCH

module bshift_tb;
reg [7:0] a;
reg [2:0] sh,left,right;
wire [7:0] b;

bshift bs(a,sh,left,right,b);

initial
begin
sh=3'b000;a=8'b11111111;left=1'b1;right=1'b0;
$monitor($time, ,"lef","ft=",left, ,"rig","ht=",right, ,"shi","ft", ,"%b",sh,  ,"inp","ut", ,"%b",a,   ,"out","put", ,"%b",b);
end

always
#1 sh=sh+1;

initial
#9 left=1'b0;
initial
#10 right=1'b1;

initial
#18 $stop;

endmodule


You can also check more verilog code on

http://kaneriadhaval.blogspot.in/2013/11/all-besic-verilog-code.html

verilog code for 16x2 mux using 2x1

16x2 MUX USING 2X1 MUX USING STRUCTRAL MODELING

module mux16to1
(
input [15:0]w,
input [3:0]s,
output wire [15:0]m,
output f);

mux2to1 mu1(m[0],w[1:0],s[0]);
mux2to1 mu2(m[1],w[3:2],s[0]);
mux2to1 mu3(m[2],w[5:4],s[0]);
mux2to1 mu4(m[3],w[7:6],s[0]);
mux2to1 mu5(m[4],w[9:8],s[0]);
mux2to1 mu6(m[5],w[11:10],s[0]);
mux2to1 mu7(m[6],w[13:12],s[0]);
mux2to1 mu8(m[7],w[15:14],s[0]);
mux2to1 mu9(m[8],m[1:0],s[1]);
mux2to1 mu10(m[9],m[3:2],s[1]);
mux2to1 mu11(m[10],m[5:4],s[1]);
mux2to1 mu12(m[11],m[7:6],s[1]);
mux2to1 mu13(m[12],m[9:8],s[2]);
mux2to1 mu14(m[13],m[11:10],s[2]);
mux2to1 mu15(f,m[13:12],s[3]);

endmodule

module mux2to1
(
output f,
input [1:0]w,sel
);
and m1(x,w[0],~sel);
and m2(y,w[1],sel);
or m3(f,x,y);
endmodule

TESTBENCH

module mux16to1_tb;

reg [15:0]w;
reg [3:0]s;
wire [15:0]m;
wire f;

mux16to1 m16to1(w,s,m,f);

initial
begin
w=16'b1010101010101010;
s=4'b0000;
$monitor($time, ,"inp",   ,"%b",w,  ,"sel", ,"%b",s,  ,"out", ,f);

end
always
#1 s=s+1;

initial
#16 $stop;
endmodule




You can also check more verilog code on

http://kaneriadhaval.blogspot.in/2013/11/all-besic-verilog-code.html