среда, 31 октября 2012 г.

Kindle Fire HD 8.9" Эмулятор УЖЕ ДОСТУПНЫЙ!

The Kindle Fire HD 8.9" emulator is now available

This emulator will enable you to test and debug your apps in anticipation of the launch of the Kindle Fire HD 8.9" next month. We've also updated the emulators for the Kindle Fire HD 7" and the Kindle Fire (2nd Generation) to reflect the software in the latest over-the-air software update. To learn more about setting up your development environment with Kindle Fire emulators, click here.

The emulator for the Kindle Fire HD 8.9" is currently available as a beta. Be aware that the user interface and functionality of the beta emulator may not match the experience available in the Kindle Fire HD 8.9" when it is released later this year. 

We've also posted technical specifications and best practices on developing for Kindle Fire tablets, including the Kindle Fire HD 8.9".

воскресенье, 30 сентября 2012 г.

Помощник в бизнесе


Сегодняшний рынок технологий вышел далеко вперед, и информации в интернете столько, что просто голова кругом идет.  А бизнесменов, которые хотят продвинуть свой бизнес, или получить юридическую или финансовою консультацию тоже хоть отбавляй. Они то, появляются то исчезают все потому что у ни нет надежного помощника. Но решение всегда можно найти,  компания NETOKRAT24, может помочь с решением любых проблем связанных с тем, что бы найти хороших разработчиков ПО  и потребителей   IT- продуктов. NETOKRAT24 сотрудничает со странами СНГ, Европы и Америки и помогает своим клиентам продвигать бизнес на всех этапах.

понедельник, 18 июня 2012 г.

Как получить ID добавленных записей в базу данных MS SQL

Или ответ на ошибку:
com.microsoft.sqlserver.jdbc.SQLServerException: Инструкция не вернула результирующий набор.


Пример:
public static void executeInsertWithKeys(Connection con) {
  try {
      String SQL = "INSERT INTO TestTable (Col2, Col3) VALUES ('S', 50)";
      Statement stmt = con.createStatement();

// внимательно executeUpdate, а не exequteQuery !
      int count = stmt.executeUpdate(SQL, Statement.RETURN_GENERATED_KEYS);
      ResultSet rs = stmt.getGeneratedKeys();

      ResultSetMetaData rsmd = rs.getMetaData();
      int columnCount = rsmd.getColumnCount();
      if (rs.next()) {
        do {
            for (int i=1; i<=columnCount; i++) {
              String key = rs.getString(i);
              System.out.println("KEY " + i + " = " + key);
            }
        } while(rs.next());
      }
      else {
        System.out.println("NO KEYS WERE GENERATED.");
      }
      rs.close();
      stmt.close();
  }
  catch (Exception e) {
      e.printStackTrace();
  }
}