Volcanohong's Learning Notes

Enjoy everything in everyday


  • Home

  • Archives

  • Categories

  • Tags

  • About

  • Search
close

Java Concurrency Notes I

Posted on 2018-08-04   |   In Java
Deal with concurrency in a Java way
Read more »

SQL Pagination

Posted on 2018-08-03   |   In SQL
Implemented pagination in store procedure.
Read more »

Java Pagination

Posted on 2018-08-03   |   In Java
Implemented pagination in spring JPA.
Read more »

Spring-boot Notes I

Posted on 2018-08-02   |   In Spring
Spring-boot developer tools
Read more »

CORS Issue Cont.

Posted on 2018-08-01   |   In Java
A late solution for CORS issue in spring-boot?
Read more »

CORS Issue

Posted on 2017-04-10   |   In Java
How to deal with CORS issue?
Read more »

Angular2 Apps Script Error in Safari

Posted on 2017-03-12   |   In Angular
Non-Chrome browsers raised some errors about the API which is currently used in the Angular2 date and currency pipes.
Read more »

Chart.js in Angular 2

Posted on 2017-03-01   |   In Angular
Notes on Chart.js options such as ticks and tooltips configuration.
Read more »

Java Cookie

Posted on 2017-02-20   |   In Java
  • HTTP Only and Secure Flag

Set httpOnly and secure flags on session cookie.

  • JSESSIONID

For JSESSIONID, we can upgrade web servlet to version 3.0,
update web.xml as

<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">

Then, in web.xml, add <cookie-config> as

<session-config>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
</session-config>

Read more »

Angular2 Notes V

Posted on 2017-02-09   |   In Angular
  • Interval and Clock Ticker

Use IntervalObservable in rxjs to implement interval in angular 2. Create(period) is a static method, which creates an Observable that emits sequential numbers every specified interval of time.

import { IntervalObservable } from 'rxjs/observable/IntervalObservable';
@Component({
selector: 'demo',
templateUrl: '<div>{{time | date:'HH:mm:ss'}}</div>'
})
export class Demo implements OnInit{
time:number = Date.now();
ngOnInit() {
IntervalObservable.create(1000).subscribe(() => this.time = Date.now());
}
}
Read more »
12…4
Volcanohong

Volcanohong

Good things are coming, just KEEP GOING...

40 posts
12 categories
47 tags
RSS
GitHub
Creative Commons
Links
  • Google
  • Wiki
© 2016 - 2018 Volcanohong
Powered by Hexo
Theme - NexT.Mist