Profile cover photo
Profile photo
Manoj Mokashi
19 followers
19 followers
About
Posts

Post has attachment

Post has attachment


Processing lines in a file using streams :

https://www.mkyong.com/java8/java-8-stream-read-a-file-line-by-line/

Stream<String> stream = Files.lines(Paths.get(fileName))) {

//1. filter line 3
//2. convert all content to upper case
//3. convert it into a List
list = stream
.filter(line -> !line.startsWith("line3"))
.map(String::toUpperCase)
.collect(Collectors.toList());

list.forEach(System.out::println);
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Add a comment...

Post has attachment

Post has attachment
RESTED is a postman like extension for firefox, to test REST APIs : https://addons.mozilla.org/en-US/firefox/addon/rested/
Add a comment...

Post has attachment

Post has attachment
We can use/write plugins in mysql to provide extra functionality.For e.g the https://code.google.com/archive/p/common-schema/ plugin can be used to parse json in a query like

WHERE common_schema.extract_json_value(json_data,'title')
LIKE "%CPU%"

Of course, this can also be done with a user-defined function
It would be more interesting if we can create indexes on json elements
Add a comment...

Post has attachment
Wait while more posts are being loaded