Thursday, August 10, 2017

Add colors to terminal and vi in MACos

http://tiriboy.blogspot.in/2015/01/syntax-highlighting-bash-terminal-and.html

Monday, June 26, 2017

MAPAPP



https://www.liquidweb.com/kb/how-to-install-cassandra-on-centos-6/

Option -O (upper-case O) is important. Without this, curl will start dumping the downloaded file on the stdout. Using -O, it downloads the files in the same name as the remote server. In the above example, we are downloading strx25-0.9.2.1.tar.bz2, so the downloaded file will also be the same name.

yum update
yum search any-package

yum info any-package

yum install any-package
yum list something

yum list recent

yum list installed
yum list available

yum list all

lsof -i :port
lsof -i :80
https://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/#
https://www.cyberciti.biz/faq/yum-install-wget-redhat-cetos-rhel-7/
https://tecadmin.net/install-apache-maven-on-centos/
CREATE KEYSPACE “KeySpace Name”
WITH replication = {'class': ‘Strategy name’, 'replication_factor' : ‘No.Of  replicas’}


https://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/#

Sunday, May 28, 2017

Songs

http://www.mensxp.com/culture/music/34152-20-songs-that-will-give-you-all-the-feels-like-no-other-song.html?utm_source=FB&utm_medium=Paid

Friday, December 30, 2016

Saturday, December 10, 2016

Date Time in Java 8

package com.ldap;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;

public class DateTimeTest {
private static final String DATE_FORMAT = "dd-M-yyyy hh:mm:ss a";
public static void main(String[] args) {
datetime();
}

private static void datetime() {
String dateInString = "22-1-2015 10:15:55 AM";
        LocalDateTime ldt = LocalDateTime.parse(dateInString, DateTimeFormatter.ofPattern(DATE_FORMAT));

        ZoneId singaporeZoneId = ZoneId.of("Asia/Singapore");
        System.out.println("TimeZone : " + singaporeZoneId);

        //LocalDateTime + ZoneId = ZonedDateTime
        ZonedDateTime asiaZonedDateTime = ldt.atZone(singaporeZoneId);
        System.out.println("Date (Singapore) : " + asiaZonedDateTime);

        ZoneId newYokZoneId = ZoneId.of("America/New_York");
        System.out.println("TimeZone : " + newYokZoneId);
        
        
    LocalDateTime localdate = LocalDateTime.now(newYokZoneId);
    LocalDateTime localdate2 = LocalDateTime.now();
    DateTimeFormatter fmt = DateTimeFormatter.ISO_DATE_TIME;
System.out.println("---> "+localdate.format(fmt));
System.out.println("---> "+localdate2.format(fmt));
        ZonedDateTime nyDateTime = asiaZonedDateTime.withZoneSameInstant(newYokZoneId);
        System.out.println("Date (New York) : " + nyDateTime);

        DateTimeFormatter format = DateTimeFormatter.ofPattern(DATE_FORMAT);
        System.out.println("\n---DateTimeFormatter---");
        System.out.println("Date (Singapore) : " + format.format(asiaZonedDateTime));
        System.out.println("Date (New York) : " + format.format(nyDateTime));
}

}

Tuesday, December 6, 2016

TO READ UP

7th Dec 2016
http://nixmash.com/java/know-your-spring-boot-embedded-servlet-container/
http://www.adam-bien.com/roller/abien/entry/java_8_completablefuture_example
https://spring.io/blog/2016/10/31/webinar-replay-consumer-driven-contracts-and-your-microservice-architecture
https://spring.io/blog/2016/10/27/spring-tips-circuit-breakers
https://www.sitepoint.com/javaone-2016-nucleus/
https://blogs.oracle.com/java/collections-refueled
https://www.infoq.com/articles/Testing-RxJava
http://www.nurkiewicz.com/2016/10/small-scale-stream-processing-kata-part_13.html
http://www.java-allandsundry.com/2016/09/spring-reactive-samples-mono-and-single.html
https://intelligentjava.wordpress.com/2016/10/22/memory-efficient-hashset-implementation-for-java/
http://www.adam-bien.com/roller/abien/entry/high_performance_java_ee_from
https://www.symphonious.net/2016/10/25/testinglmax-screenshots-with-selenium/
http://blog.takipi.com/google-guava-5-things-you-never-knew-it-can-do/
https://blog.codecentric.de/en/2016/09/scrum-unfinished-user-stories/
https://www.infoq.com/presentations/java9-reactive-programming
https://www.infoq.com/articles/rxjava-by-example
https://knes1.github.io/blog/2015/2015-10-19-streaming-mysql-results-using-java8-streams-and-spring-data.html
https://www.infoq.com/articles/Wiremock-testing-mocking-over-wire-stubs
http://www.java-allandsundry.com/2016/11/parallelizing-hystrix-calls.html
http://www.nurkiewicz.com/2016/10/reactive-programming-with-rxjava-book.html
https://vanwilgenburg.wordpress.com/2016/09/19/getting-started-with-akka-stream-kafka/
https://www.infoq.com/news/2016/09/JavaOne-2016-parallel-streams
http://www.adam-bien.com/roller/abien/entry/building_a_react_application_with

Thursday, November 24, 2016

Cassandra

To create a keyspace with Simple strategy 

CREATE KEYSPACE "Excalibur"

  WITH REPLICATION = {'class' : 'SimpleStrategy''replication_factor' : 1 };

https://docs.datastax.com/en/cql/3.1/cql/cql_reference/create_keyspace_r.html


Memory efficient collections framework

https://www.eclipse.org/collections/

Friday, November 4, 2016

Eventstream


http://www.nurkiewicz.com/2015/07/server-sent-events-with-rxjava-and.html
http://docs.spring.io/spring/docs/4.2.0.RC2/spring-framework-reference/htmlsingle/#mvc-ann-async-http-streaming

http://www.nurkiewicz.com/2015/07/server-sent-events-with-rxjava-and.html
https://infinitescript.com/2015/06/use-server-sent-event-in-spring-4-2/


https://github.com/cer/event-sourcing-examples

https://jersey.java.net/documentation/latest/sse.html

https://www.html5rocks.com/en/tutorials/eventsource/basics/#toc-reconnection-timeout

http://www.nurkiewicz.com/2014/11/converting-between-completablefuture.html

http://www.cs-repository.info/2016/08/server-sent-events.html

Sunday, October 2, 2016

Autowiring into filter in Spring application

If you are facing problems autowiring dependencies in your filter class in Spring application Use the following trick.




@Override
public void doFilter(ServletRequest request, ServletResponse response, FilterChain filter)
throws IOException, ServletException {
SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
...
...
...
...
...
}

$ ( Currency Sign ) Missing in Excel POI

If you are writing to a cell and find that currency sign is missing this could be because of the following reason.

Setting cell style is not enough

CellStyle dollarStyle=workbook.createCellStyle();
DataFormat df = workbook.createDataFormat();

dollarStyle.setDataFormat((short)8);


You also need to set the cell style to NUMERIC

cell.setCellType(Cell.CELL_TYPE_NUMERIC);


Sunday, August 21, 2016

App Ideas

list news paper stands nearby
Any electrical / cooker repair shops nearby  repair shops
Any small vendor like samosa , gol gappa , momo stand nearby
any place nearby to get some attestation done
price of newspaper in bangalore
price of liquor in bangalore ( brand wise)

Amazon groups : we can add amazon users to groups such as family , friends and share wallet etc.
Reporting of expenditure if amazon api is available.

Takecarefamily

cross marketplace integration.


all the above information though required is not available on google.