Shared info of IoT & Cloud, Banking, Angular Wicket, Spring Microservices, BigData, flutter, E-comm, Java Telecomm and More

Showing posts with label java_code_library. Show all posts
Showing posts with label java_code_library. Show all posts

Tuesday, August 1, 2017

Wednesday, July 26, 2017

Wednesday, July 5, 2017

How to parse JSON (infotable) element names via JavaScript

To pull the object names out of a JSON object, iterate through the JSON object and display the value at each index location Example: var myJson = { "element1": "hello", "element2": 12, "element3": true, "element4": { "subelement1": "one", "sebelement2": 2 }}; for (var el in myJson) { console.log("Element name: " + el + ", element value:" + myJson[el] + ", element type: " + typeof(myJson[el])); } JSON...

Sunday, July 2, 2017

Error - Could not resolve matching constructor (hint: specify index/type/name arguments for simple parameters to avoid type ambiguities)

Error: Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.repository.repositories.UserRepository com.service.UserService.repository; nested exception is org.springframework.beans.factory.BeanCreationException:...

Friday, June 23, 2017

Java DateTimeFormatter

ThingWorx: Datetime format to be used in JavaScript with parseDate The format strings used by the parseDate function are based on Java's DateTimeFormatter class.  See https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html for more information about format strings. Format strings used by parseDate are case sensitive. Some of the common placeholders...

Thursday, February 23, 2017

JavaScript căn bản - part 2

1. JavaScript Array splice() Method Definition and Usage The splice() method adds/removes items to/from an array, and returns the removed item(s). Note: This method changes the original array. Syntax array.splice(index, howmany, item1, ....., itemX) Parameter Values ParameterDescription indexRequired. An integer that specifies at what position to add/remove...

Wednesday, February 22, 2017

Closures & callback function javascript & jQuery

What is a closure? A closure is an inner function that has access to the outer (enclosing) function’s variables—scope chain. The closure has three scope chains: it has access to its own scope (variables defined between its curly brackets), it has access to the outer function’s variables, and it has access to the global variables. The inner function has access not only to the outer function’s variables,...

Wednesday, December 7, 2016

JavaScript căn bản - part 1

1. Javascript là gì? Javascript là ngôn ngữ lập trình của HTML và Web  chạy trên browser dưới dạng các script. Every web page resides inside a browser window which can be considered as an object. A Document object represents the HTML document that is displayed in that window. The Document...

Tuesday, November 29, 2016

JavaDB Connection pool

From Wikipedia, the free encyclopedia In software engineering, a connection pool is a cache of database connections maintained so that the connections can be reused when future requests to the database are required.[citation needed] Connection pools are used to enhance the performance of executing commands on a database. Opening and maintaining a database...

Popular Posts

Blog Archive