News updates
E-bike or electric scooter: Which is right for you?
Jul 08 2020

As personal electric vehicles become more powerful and affordable, e-bikes and standing electric scooters have become increasingly practical alternatives to traditional transportation methods for many people, especially those in crowded cities. But when it comes down to spending your hard-earned money, you might be asking yourself which form of electrified two-wheel transport is best for you. I’m lucky enough to have been able to try a variety of these electric vehicles, constantly weighing the pros and cons of each, so I’m here to help. Why should I buy a personal electric vehicle? Let’s face it: getting around most cities is…

This story continues at The Next Web

Read full atricle by Napier Lopez
This AI system locates drone pilots flying too close to airports
Jul 08 2020

Scientists have built an AI tool that finds drone pilots flying dangerously close to airports or protected airspace. The system aims to reduce the risks drones pose to aircraft. Not only can they collide with planes, but they can also interfere with radio signals, causing a pilot to lose control of the aircraft. These risks have already caused chaos at a number of airports. Most notoriously, London’s Gatwick airport was forced to shut down in December 2018 after drones were spotted near the runway. The incident affected around 1,000 flights and 140,000 passengers. The cops never found the culprits. The…

This story continues at The Next Web

Read full atricle by Thomas Macaulay
Twitter’s new secret project is a subscription platform
Jul 08 2020

Twitter is cooking up some kind of subscription service for its platform, and it’s recruiting engineers to work on it. We don’t know anything about it thus far, but the potential of it is pretty staggering. A job listing on Twitter‘s site for a senior full-stack software engineer said the job was for “a new team, codenamed Gryphon.” The listing describes the team’s project thus: “We are building a subscription platform, one that can be reused by other teams in the future. This is a first for Twitter!” The engineer will work with the Twitter.com and Payments team. Note that this…

This story continues at The Next Web

Or just read more coverage about: Twitter

Read full atricle by Rachel Kaser
This Chrome extension lets you share your Netflix and Spotify accounts with friends
Jul 08 2020

There’s very little chance that in your lifetime, you’ve not used someone else’s password to login to a service. And if you’ve shared your Netflix password, you might lose track at one point as to how many people are using it. Keyring is launching its Chrome extension that helps you let share subscriptions, such as Netflix, Spotify, Hulu, the New York Times, and the Wall Street Journal, with friends. You can share six subscriptions with three people for free or pay $5 a month to share an unlimited number of subscriptions with five folks. If you think you’ve heard about…

This story continues at The Next Web

Or just read more coverage about: Netflix,Spotify

Read full atricle by Ivan Mehta
The Yamaha Civante is the company’s first 28mph e-bike in the US
Jul 08 2020

Yamaha might be best known for its instruments and motorcycles, but it was also the first company to introduce modern e-bikes, way back in 1993. While it may not be as big in the modern e-bike world as the likes of Bosch or Bafang, the company’s motors have made their name with brands such as Giant and Haibike, and the company has recently been expanding its own first-party line-up too. Today, the company is taking a big step forward in the e-bike world by announcing its first 28mph (Class 3) e-bike to available in the US market, the Yamaha Civante.…

This story continues at The Next Web

Read full atricle by Napier Lopez

Call the stored procedures and functions using CallableStatement

private EntityManager entityManager;

Connection cc = ((SessionImpl) em.getDelegate()).connection();

CallableStatement callableStatement;

//Stored Procedures
try {  
  callableStatement = cc.prepareCall("{call stored_proc(?,?,?,?,?)}");

  callableStatement.setString(1, "1");//Parameter #1
  callableStatement.setString(2, "ET");////Parameter #2
  callableStatement.setString(3, "|s|");// //Parameter #3
  callableStatement.registerOutParameter(4, Types.INTEGER); //Output # 1
  callableStatement.registerOutParameter(5, Types.VARCHAR); //Output # 2

  Integer outputValue = callableStatement.getInt(4);
  String outputValue1 = callableStatement.getString(5);
CallableStatement stmt=con.prepareCall("{?= call sum4(?,?)}");  
on Mar 02 2020