기본 콘텐츠로 건너뛰기

12월, 2013의 게시물 표시

Nissan Leaf - 3 months of experience, tips, etc.

I leased 2013 Nissan Leaf S trim ( quick charger package installed, which has DC charge port and backup camera) almost three months ago and spent some time before I picked the car to get info, so I’d like to share some.
Tax/benefit/Deal 1. You can’t get full federal $7,500 tax credit with purchase if you have nothing to pay more tax for 2013. To maximize this benefit, you have to lease with more than 36+ months period, which is what I dd.

2. Why Lease? Not purchase?
Nissan and other automaker is trying to increase their battery capacity and range to double until 2015 or something, so EV purchasing now wasn’t an option to me. ( also to maximize $7,500 federal tax benefit )

3. CA benefit will takes up to 60 days once you apply for it. There are limited amount of funds for this benefit. CA still have some, but it will be gone soon, so you need to hurry.

4. There are another “free charging station(level2)” promotion by CA. They put certain amount of free EV charger at the first Tuesday(o…

How to block spamming IP coming to your environment in Tomcat?

There is a case that ton of requests are rushing into your Tomcat webapps, mostly because your service becomes rock star, the bug of your new implementation cause user's "refresh", or maybe something else.
For non-heavy requests which hits cached data most of the time would be fine for those cases, but other types of requests like new login account creation, real-time status query like server status, place order, etc are highly related to database call, and mostly will not be cached. Those calls can exhaust your Tomcat webapps JDBC connection pool too fast and make the service unrecoverable.
Implementing throttling in app would be definitely helpful in this case, but even the solution might need some time to coding. There are other ways you can filter spamming IP in OS level using iptables things or Apache mod_xxx plugin, etc, but probably the easiest and fastest way to block those spamming(well, at least to you) IP would be adding following "Valve" configurat…