Process Spring Boot externalized property values - Stack Overflow



Process Spring Boot externalized property values - Stack Overflow

I have the task of obfuscating passwords in our configuration files. While I don't think this is the right approach, managers disagree...

So the project I am working on is based on Spring Boot and we are using YAML configuration files. Currently the passwords are in plain text:


Read full article from Process Spring Boot externalized property values - Stack Overflow


Provide a callback to decrypt DB passwords · Issue #1312 · spring-projects/spring-boot



Provide a callback to decrypt DB passwords · Issue #1312 · spring-projects/spring-boot

Common requirement is to encrypt your db password and put it in your props file. It'd be nice for Boot to provide some kind of callback so that I can provide decryption logic. Perhaps consider making it flexible so we can use it for more than just the DB passwords. My initial thought was to register a custom spel function and create a property like
spring.datasource=#{decrypt('someCrazyEncryptedPassword')}


Read full article from Provide a callback to decrypt DB passwords · Issue #1312 · spring-projects/spring-boot


java - Why does the TRACE level exist, and when should I use it rather than DEBUG? - Software Engineering Stack Exchange



java - Why does the TRACE level exist, and when should I use it rather than DEBUG? - Software Engineering Stack Exchange

What are example of information that should be logged with TRACE and not with DEBUG?

If I have an algorithm that goes through a bunch of steps, trace level will print info about each of those steps at the finest level. Things like the literal inputs and outputs of every step.

In general, trace will include all debug (just like debug includes all warnings and errors).

What specific problem do I solve by logging that information?

You need to debug something that outputs way too much data to log outside of a specific build when you're targeting that particular thing and do not care about errors or other logging info (since the volume of trace info will obscure them). In some loggers, you will turn a certain module up to trace level only.

In those examples, what are the properties of the logged information that clearly discriminate between logging at the TRACE level rather than the DEBUG level?

In general, trace level logging cannot be on for sustained periods because it degrades the performance of the application greatly, and/or creates an abundance of log data that is unsustainable due to disk/bandwidth constraints.

Debug level logging can usually be on for a longer period without making the app unusable.


Read full article from java - Why does the TRACE level exist, and when should I use it rather than DEBUG? - Software Engineering Stack Exchange


Let's Talk About Uber for a Sec | Eileen Scully | Pulse | LinkedIn



Let's Talk About Uber for a Sec | Eileen Scully | Pulse | LinkedIn

A bunch of years ago, I ducked out during the workday. On my way back to the office, my car was hit, and the police officer was kind enough to drive me back to work. I thanked him as I climbed out of the back of his squad car, and walked into the building. 

One of the male VPs saw this, and as I entered the building, I heard him yell out from a conference room full of other male VPs: 


Read full article from Let's Talk About Uber for a Sec | Eileen Scully | Pulse | LinkedIn


Interpreter Pattern - Spring Framework Guru



Interpreter Pattern - Spring Framework Guru

Interpreter pattern is part of the Behavioral pattern family of the Gang of Four design patterns. Behavioral patterns address responsibilities of objects in an application and how they communicate between them. We have already learned about the Command, Chain of Responsibility, Iterator, Mediator, and Memento Behavioral patterns. In this post we'll learn about the Interpreter Pattern in the Java programming language.


Read full article from Interpreter Pattern - Spring Framework Guru


Spring mvc的参数究竟是如何绑定的 - Dreamlu的个人空间



Spring mvc的参数究竟是如何绑定的 - Dreamlu的个人空间

在使用Spring mvc的时候我们会被他优雅的参数绑定所吸引,再也不用写那么多getParameter也不用像struts2中写一堆get、set给开发者带来了很大的便利。


Read full article from Spring mvc的参数究竟是如何绑定的 - Dreamlu的个人空间


Ukrainian lawmaker Andrey Artemenko says plan was delivered to Flynn - Business Insider



Ukrainian lawmaker Andrey Artemenko says plan was delivered to Flynn - Business Insider

× Lawmaker: 'I got confirmation' my Russia-Ukraine plan was delivered to White House, despite what Trump lawyer says Ukrainian lawmaker Andrey Artemenko during an interview with Reuters at his office in Kiev, Ukraine, on Tuesday. REUTERS/Valentyn Ogirenko The Ukrainian lawmaker who met with President Donald Trump's personal lawyer, Michael Cohen, and the businessman Felix Sater in New York last month to discuss a controversial peace plan for Ukraine "got confirmation" from Sater that his plan was delivered to the White House, he told Business Insider. Andrey Artemenko, a member of Ukraine's parliament who used to be part of the country's far-right Radical Party, said he met with Cohen and Sater at the Loews Regency New York on January 27 to discuss Artemenko's proposal for solving the Russia-Ukraine conflict. The meeting was organized by Sater, who knew Cohen through his work with the Trump Organization and was introduced to Artemenko by a mutual friend named Yan Aronov,

Read full article from Ukrainian lawmaker Andrey Artemenko says plan was delivered to Flynn - Business Insider


Uber’s SVP of engineering is out after he did not disclose he left Google in a dispute over a sexual harassment allegation - Recode



Uber's SVP of engineering is out after he did not disclose he left Google in a dispute over a sexual harassment allegation - Recode

Uber's SVP of engineering is out after he did not disclose he left Google in a dispute over a sexual harassment allegation Amit Singhal, a highly regarded engineer in Silicon Valley, denied the claims after top execs at the search giant presented them to him. Asa Mathat / Recode Amit Singhal has left his job at Uber as its SVP of engineering because he did not disclose to the car-hailing company that he left Google a year earlier after top executives there informed him of an allegation of sexual harassment from an employee that an internal investigation had found "credible." Singhal was asked to resign by Uber CEO Travis Kalanick this morning. Uber execs found out about the situation after Recode informed them of the chain of events between Singhal and the search giant this week. Sources at Uber said that the company did extensive background checks of Singhal and that it did not uncover any hint of the circumstances of his departure from Google.

Read full article from Uber's SVP of engineering is out after he did not disclose he left Google in a dispute over a sexual harassment allegation - Recode


Academy Awards politics: Kimmel roasts Trump - POLITICO



Academy Awards politics: Kimmel roasts Trump - POLITICO

Kimmel roasts Trump at mixed-up Academy Awards He also paid tribute to the 'overrated' Meryl Streep in a ceremony that ended with the wrong film being named best picture. Academy Awards host Jimmy Kimmel told a worldwide audience Sunday night he was awaiting President Donald Trump's tweets in response to the Oscar ceremony — after calling the president racist in his opening monologue and implying that hundreds of countries "now hate us." The high-energy ceremony ended, oddly enough, with Warren Beatty and Faye Dunaway reading the wrong film's name for the winner for Best Picture. As the cast and crew of "La La Land" was basking in the glow of victory, the mistake was corrected and the award was then correctly presented to "Moonlight," sparking a rapid-fire run of Twitter jokes about one of the president's favorite phrases: "fake news." Story Continued Below Kimmel had joked earlier: "We have no tolerance for fake news. Fake tans we love, but fake news?

Read full article from Academy Awards politics: Kimmel roasts Trump - POLITICO


Cassandra in Practice



Cassandra in Practice

Another Big Data Technology event as part of the series - the Dublin Cassandra Users group will run an event on July 10th - There will be a couple of DataStax's Senior Architects in town. These guys work on the largest Cassandra deployments in the world. They will be presenting on working with Cassandra at massive scale.


Read full article from Cassandra in Practice


Nation briefs: Sanders calls Trump a fraud after undoing financial regulations | Pittsburgh Post-Gazette



Nation briefs: Sanders calls Trump a fraud after undoing financial regulations | Pittsburgh Post-Gazette

Nation briefs: Sanders calls Trump a fraud after undoing financial regulations February 26, 2017 12:00 AM Compiled from news services Former presidential candidate Sen. Bernie Sanders today cast President Donald Trump's moves this week to undo financial regulations enacted following the 2008 financial crisis as a betrayal of his campaign promises to stand up against Wall Street. "This guy is a fraud," Mr. Sanders, I-Vt., said on CNN's "State of the Union." "This guy ran for president of the United States saying, 'I, Donald Trump, I'm going to take on Wall Street. These guys are getting away with murder.' Then suddenly he appoints all these billionaires, his major financial adviser comes from Goldman Sachs, and now he's going to dismantle legislation that protects consumers." Mr. Trump on Friday signed an executive order ordering a review of U.S. financial regulatory laws and regulations,

Read full article from Nation briefs: Sanders calls Trump a fraud after undoing financial regulations | Pittsburgh Post-Gazette


Trump order drops protection for families of deployed military - The San Diego Union-Tribune



Trump order drops protection for families of deployed military - The San Diego Union-Tribune

Trump administration's new immigration enforcement policy eviscerated "Parole in Place" protections, which prevented the deportation of spouses, parents and children of active-duty service members. Trump administration's new immigration enforcement policy eviscerated "Parole in Place" protections, which prevented the deportation of spouses, parents and children of active-duty service members. Nathan Fletcher Imagine you are a member of the United States military deployed on the front lines confronting ISIS or other terrorist threats. Suddenly you get a desperate phone call from home — Immigration and Customs Enforcement has arrested your family and they're facing deportation. Think it can't happen? Think again. Think Trump. The Trump administration's draconian and hastily drafted immigration orders rescind a key protection for military families so that now even military spouses and children can be rounded up and deported. This will weaken our armed forces.

Read full article from Trump order drops protection for families of deployed military - The San Diego Union-Tribune


Costco: Awesome Buys On Allergy Meds, Sun-Chips, Protein Powder & MUCH More – Hip2Save



Costco: Awesome Buys On Allergy Meds, Sun-Chips, Protein Powder & MUCH More – Hip2Save

Popular Stores: Latest Freebies: Latest Rewards: Feb 25, 2017 @ 12:30 PM MST The links in the post below may be affiliate links. Read the full disclosure . Through March 12th, Costco is offering up a whopping $1,500 worth of instant savings coupons in the coupon booklet found here – note that all discounts will automatically deduct at checkout! These instant savings coupons are valid to use both in-store and online (for most items)! Check out a few of the best deals you can score… Women's Vitafusion Gummy Vitamins 220 Count $11.99 Get instant savings of $3 Final cost $8.99! Final cost $7.49! Get instant savings of $3 – limit 15 Final cost $10.99! Get instant savings of $6 – limit 15 Final cost $27.99!* Get instant savings of $10 – limit 10 Final cost $29.99!* Get instant savings of $2.50 – limit 2 Final cost $5.29! Get instant savings of $6 – limit 5 Final cost $36.99 (only 51¢ per K-cup)! Chobani Greek Yogurt 5.3 oz. 20-Count $14.99 Get instant savings of $4 – limit 8 Final cost $10.

Read full article from Costco: Awesome Buys On Allergy Meds, Sun-Chips, Protein Powder & MUCH More – Hip2Save


♥ Java Iterable Vs Iterator differences and know how | Java-Success.com



♥ Java Iterable Vs Iterator differences and know how | Java-Success.com

A1. The "Iterable" was introduced to be able to use in the "foreach" loop. A class implementing the Iterable interface can be iterated over. For example,


Read full article from ♥ Java Iterable Vs Iterator differences and know how | Java-Success.com


La Cocina Launches Restaurant Week to Coincide With International Women’s Day - Eater SF



La Cocina Launches Restaurant Week to Coincide With International Women's Day - Eater SF

The delicious week runs March 6-12 For the first time, restaurant incubator La Cocina is wading into the restaurant week game, with a series of dinners featuring some of its successful entrepreneurs. The non-profit has helped launch over 20 small businesses in the Bay Area, 97 percent of which are female-operated. Restaurant weeks, designated time periods when restaurants offer discounted prix fixe menus, can be a great way for diners to connect with places they might not normally patronize. La Cocina's week aims to accomplish similar goals. "There's still a gap of percept in quality [with our businesses]," La Cocina executive director Caleb Zigas told Eater SF. "When people talk about the 'best of,' we want to make sure our people are recognized in a meaningful way." Zigas also said that although many people are very supportive of La Cocina, they don't realize that there are around 25 brick-and-mortar businesses available for them to visit throughout the Bay Area.

Read full article from La Cocina Launches Restaurant Week to Coincide With International Women's Day - Eater SF


SF man offers free rides to passengers who #DeleteUber - San Francisco Chronicle



SF man offers free rides to passengers who #DeleteUber - San Francisco Chronicle

February 24, 2017 Updated: February 24, 2017 4:40pm Photo: Natasha Dangond, The Chronicle Ka-Ping Yee (left) and Michael Morgenstern offer free rides to passengers who delete their Uber app as part of a protest for women's and workers' rights that they hope other drivers will pick up on. Ka-Ping Yee (left) and Michael Morgenstern offer free rides to... Michael Morgenstern set out with a mission: To persuade strangers to take a ride in his car. But he wasn't doing it for money. Morgenstern, a filmmaker, was interested in a different kind of compensation — a quid pro quo. The rules were simple: To get a free ride, all someone had to do was delete their Uber account. "I've always had my reservations about Uber," he said. "So, after I deleted my own Uber app, I felt like I wanted to do more. … People sometimes need a push to do the right thing. So we were going to give them that push.

Read full article from SF man offers free rides to passengers who #DeleteUber - San Francisco Chronicle


java - How to make autowire object initialized in ApplicationListener? - Stack Overflow



java - How to make autowire object initialized in ApplicationListener? - Stack Overflow

First you are using the singleton pattern which I would say is an anti-pattern especially when combined with auto wiring.

Second in your getInstance() method you are creating a new instance of AppContext yourself. This instance isn't managed by Spring so @Autowired is pretty much useless here, Spring is only able to inject dependencies into beans it knows about.

Instead make your AppContext a component (or service what ever you like). Remove the getInstance method and use constructor injection instead.


Read full article from java - How to make autowire object initialized in ApplicationListener? - Stack Overflow


change cache from iterator to list by yyuan · Pull Request #782 · SNEI/kamaji-cobra-services



change cache from iterator to list by yyuan · Pull Request #782 · SNEI/kamaji-cobra-services

Looks like you're already verified. If you still have trouble signing in, you probably need a new confirmation link email. {* resendLink *} Please resend verification. You're now logged in. Are you already a home delivery subscriber for PalmBeachPost.com? Your password has been changed Password has been successfully updated. We have sent you an email with a link to change your password. Create a new password We didn't recognize that password reset code. Enter your email address to get a new one. {* #forgotPasswordForm *} {* forgotPassword_emailAddress *} {* forgotPassword_sendButton *} {* /forgotPasswordForm *} Create a new password We've sent an email with instructions to create a new password. Your existing password has not been changed.

Read full article from change cache from iterator to list by yyuan · Pull Request #782 · SNEI/kamaji-cobra-services


Nordstrom Co-President: Business Impact Of Trump's Tweet Was 'Negligible' | The Huffington Post



Nordstrom Co-President: Business Impact Of Trump's Tweet Was 'Negligible' | The Huffington Post

Nordstrom Co-President: Business Impact Of Trump's Tweet Was 'Negligible' Looks like his social media efforts weren't so powerful after all. 1.7k 31 It seems President Trump's Twitter rants aren't quite as powerful as he thinks they are.  Earlier this month, after  Nordstrom announced it was dropping Ivanka Trump's line because of poor sales , President Trump  attacked the retail chain  on Twitter for treating his daughter "unfairly." My daughter Ivanka has been treated so unfairly by @Nordstrom . She is a great person -- always pushing me to do the right thing! Terrible! It appears the company escaped the political controversy relatively unscathed, according to a call Nordstrom co-president Peter Nordstrom had with analysts and investors on Thursday. When an analyst asked whether the president's tweet had an impact on the company's business, Peter said the effect was "negligible" and "not really discernible one way or the other," according to CNBC. Despite the lack of impact,

Read full article from Nordstrom Co-President: Business Impact Of Trump's Tweet Was 'Negligible' | The Huffington Post


Jeff Sessions Reverses Obama-Era Policy That Curtailed DOJ's Private Prison Use | The Huffington Post



Jeff Sessions Reverses Obama-Era Policy That Curtailed DOJ's Private Prison Use | The Huffington Post

Jeff Sessions Reverses Obama-Era Policy That Curtailed DOJ's Private Prison Use For-profit prisons were found to be more dangerous, but the attorney general said they're needed to "meet the future needs of the federal correctional system." 3.1k 120 WASHINGTON ― Attorney General Jeff Sessions on Thursday withdrew an Obama-era Justice Department memo  that set a goal of reducing and ultimately ending the Justice Department's use of private prisons. In a one-page memo to the acting head of the Bureau of Prisons, Sessions wrote that the August 2016 memo by former Deputy Attorney General Sally Yates "changed long-standing policy and practice, and impaired the Bureau's ability to meet the future needs of the federal correctional system." A Justice Department spokesman said Sessions' memo "directs the Bureau of Prisons to return to its previous approach to the use of private prisons,

Read full article from Jeff Sessions Reverses Obama-Era Policy That Curtailed DOJ's Private Prison Use | The Huffington Post


City of Richmond calls on Trump to be impeached



City of Richmond calls on Trump to be impeached

City first in the country to call for ouster Share this: (Chris O'Meara/Associated Press) President Donald Trump gestures as he holds up a piece of paper during a campaign rally Saturday, Feb. 18, 2017, in Melbourne, Fla. | UPDATED: February 23, 2017 at 3:49 am RICHMOND — In an unanimous decision, the Richmond City Council passed a resolution asking the U.S. House of Representatives to investigate impeaching President Donald Trump for not selling off his business interests after assuming the nation's highest office. Related Articles A's Aussie immigrant on Trump's plan: 'Scary from any point of view' The resolution is the first such move by a city, according to the activists who spearheaded the effort. It's also symbolic in nature and unlikely to go anywhere. Still, backers say that it's an important step to voice their concerns about the new president's conflicts of interest and the direction he is taking the country. At issue is the "Emoluments Clause,

Read full article from City of Richmond calls on Trump to be impeached


Dynamic Programming for the confused : Rod cutting problem



Dynamic Programming for the confused : Rod cutting problem

What is the problem ? Rod cutting problem is very much related to any real-world problem we face. You have a rod of some size and you want to cut it into parts and sell in such a way that you get the maximum revenue out of it. Now, here is the catch, prices of different size of pieces are different and it is a possibility that a cutting into smaller pieces can fetch more revenue than selling a bigger piece, so a different strategy is needed. Before that, lets state the problem more formally, You are given a rod of size n >0, it can be cut into any number of pieces k (k ≤ n). Price for each piece of size i is represented as p(i) and maximum revenue from a rod of size i is r(i) (could be split into multiple pieces). Find r(n) for the rod of size n. The size vs price table Thought process One can see that the problem distills down to the fact : where the cuts will be ? Which one provides the maximum revenue r(4)?

Read full article from Dynamic Programming for the confused : Rod cutting problem


Amazon Promotes One-Day Only Coupon Code to Thank Customers | Fortune.com



Amazon Promotes One-Day Only Coupon Code to Thank Customers | Fortune.com

Feb 22, 2017 Here's something that doesn't happen often: Amazon is offering a coupon code to all of its customers. Celebrating its win and top spot placement on the annual Harris Corporate Reputation Poll, Amazon announced on Wednesday that it will be thanking customers in return by offering a $8.62 discount for one day only. (Amazon scored a "record-high" 86.27 on the poll.) The only catch is that customers must meet the minimum requirement of $50 per order. To take advantage of the deal, customers just need to input the coupon code "BIGTHANKS" at the digital checkout. As boasted by the Seattle-headquartered corporation itself, this is Amazon's second straight win and it has ranked in the top 10 for nine straight years. The survey, conducted by Harris Poll, surveys more than 23,000 people across the U.S. on six dimensions of corporate reputation: Emotional Appeal, Workplace Environment, Products & Services, Financial Performance, Vision & Leadership, and Social Responsibility.

Read full article from Amazon Promotes One-Day Only Coupon Code to Thank Customers | Fortune.com


Forbes Welcome



Forbes Welcome


Read full article from Forbes Welcome


Extinguishing Donald Trump’s Swedish Immigration 'Fire' | The Huffington Post



Extinguishing Donald Trump's Swedish Immigration 'Fire' | The Huffington Post

They have problems. But they also have solutions. 02/21/2017 09:23 am ET AFP via Getty Images Policemen and a group of migrants stand on the platform at the Swedish end of the bridge between Sweden and Denmark in Malmo, Sweden, on November 12, 2015. As a former intelligence officer, I am a major advocate of the maxim, "facts matter."  As such, I often find myself cringing when listening to President Trump wax philosophically – and creatively – on any number of issues.  The most recent example of this are the president's comments about Sweden, made during a rally before supporters held in Melbourne, Florida this pastSaturday.  "Here's the bottom line," the president said.  "We've got to keep our country safe.  You look at what's happening in Germany.  You look at what's happening last night in Sweden," Trump said. "Sweden. Who would believe this? Sweden. They took in large numbers. They're having problems like they never thought possible.  You look at what's happening in Brussels.

Read full article from Extinguishing Donald Trump's Swedish Immigration 'Fire' | The Huffington Post


Trump's Russia scandal takes an unexpected turn | MSNBC



Trump's Russia scandal takes an unexpected turn | MSNBC

Trump's Russia scandal takes an unexpected turn 02/20/17 01:02 PM On Friday afternoon, FBI Director James Comey delivered a classified, hour-long briefing to the Senate Intelligence Committee on the Russia scandal, and soon after, the Senate Intelligence Committee sent "formal requests to more than a dozen organizations, agencies and individuals, asking them to preserve all materials related to the committee's investigation" into the controversy. We don't know much about how the briefing went – committee members were tight-lipped following Comey's presentation – though Sen. Marco Rubio (R-Fla.) tweeted late Friday that he's "now very confident" that the committee will conduct "thorough bipartisan investigation" into Russia's "interference and influence." Reading between the lines, this makes it sound as if the Republican-led panel is trying to knock down the idea that a special select committee is necessary to investigate the scandal without political interference. A day later,

Read full article from Trump's Russia scandal takes an unexpected turn | MSNBC


Uber To Investigate Sexual Harassment Claim By Engineer « CBS San Francisco



Uber To Investigate Sexual Harassment Claim By Engineer « CBS San Francisco

Sponsored By Latest Headlines February 20, 2017 6:21 AM LONDON (AP) — Uber's chief executive ordered an urgent investigation Monday into a sexual harassment claim made by a female engineer who alleged her prospects at the company evaporated after she complained about advances from her boss. Travis Kalanick responded on Twitter to an open statement by Susan Fowler Rigetti about her year at the ride-hailing app. In a blog post titled "Reflecting On One Very, Very Strange Year At Uber," Rigetti says the company's human resources department ignored her complaints because her boss was a high performer. "What's described here is abhorrent & against everything we believe in," Kalanick tweeted Monday. "Anyone who behaves this way or thinks this is OK will be fired." In her blog, Rigetti said she joined Uber as a site reliability engineer in November 2015 in San Francisco. On her first official day with the company,

Read full article from Uber To Investigate Sexual Harassment Claim By Engineer « CBS San Francisco


Reflecting on one very, very strange year at Uber — Susan J. Fowler



Reflecting on one very, very strange year at Uber — Susan J. Fowler

Your Custom Text Here As most of you know, I left Uber in December and joined Stripe in January. I've gotten a lot of questions over the past couple of months about why I left and what my time at Uber was like. It's a strange, fascinating, and slightly horrifying story that deserves to be told while it is still fresh in my mind, so here we go.  I joined Uber as a site reliability engineer (SRE) back in November 2015, and it was a great time to join as an engineer. They were still wrangling microservices out of their monolithic API, and things were just chaotic enough that there was exciting reliability work to be done. The SRE team was still pretty new when I joined, and I had the rare opportunity to choose whichever team was working on something that I wanted to be part of.  After the first couple of weeks of training, I chose to join the team that worked on my area of expertise, and this is where things started getting weird. On my first official day rotating on the team,

Read full article from Reflecting on one very, very strange year at Uber — Susan J. Fowler


这个妹子准备撕Uber了!性骚扰大戏上演! | 美国留学就业规划|Warald咨询



这个妹子准备撕Uber了!性骚扰大戏上演! | 美国留学就业规划|Warald咨询


Read full article from 这个妹子准备撕Uber了!性骚扰大戏上演! | 美国留学就业规划|Warald咨询


Kellyanne Conway trashes graduates of her alma mater after school president calls her out for lying



Kellyanne Conway trashes graduates of her alma mater after school president calls her out for lying

Don't miss stories. Follow Raw Story! Counselor to the President Kellyanne Conway has taken heat from various quarters for everything from challenging reality with 'alternative facts," to hawking first daughter Ivanka Trump's clothing line on during a Fox News interview. Now she's under attack by the president of her alma mater, forcing her to lash out once again. Trinity Washington University President Patricia McGuire recently had some harsh words for Conway, calling her, "Part of a team that thinks nothing of shaping and spreading a skein of lies as a means to secure power." "We Americans study the history of tyranny and exclaim, "That's terrible, but it would not happen here!" as we congratulate ourselves on the robust state of our democracy.

Read full article from Kellyanne Conway trashes graduates of her alma mater after school president calls her out for lying


Alex Collins - Developing With Docker - Building Patterns



Alex Collins - Developing With Docker - Building Patterns

This is my 4th post on developing with Docker. In this post deals with some common ways you can build Docker images.

I'm going to assuming you've already packaged your application (e.g. into a JAR).

There are several choices: scratch + binary, language stack, and distro + package manager.

As usual, you can find the source code on Github.

Scratch + Binary

Scratch is the most basic base image, it does not contain any files or programs at all. You must build a standalone binary application if you are going to use this. Lets see an example.


Read full article from Alex Collins - Developing With Docker - Building Patterns


Alex Collins - 5 Tips for Unit Testing Threaded Code



Alex Collins - 5 Tips for Unit Testing Threaded Code

5 Tips for Unit Testing Threaded Code

Here's a few tips on how take make testing your code for logical correctness (as opposed to multi-threaded correctness).

I find that there are essentially two stereotypical patterns with threaded code:

  1. Task orientated - many, short running, homogeneous tasks, often run within the Java 5 executor framework,
  2. Process orientated - few, long running, heterogeneous tasks, often event based (waiting on notification), or polling (sleeping between cycles), often expressed using a thread or runnable.

Testing either type of code can be hard; the work is done in another thread, and therefore notification of completion can be opaque, or is hidden behind a level of abstraction.


Read full article from Alex Collins - 5 Tips for Unit Testing Threaded Code


Google Lists: More Data Collection From Maps Or Move Toward A Social Network? : All Tech Considered : NPR



Google Lists: More Data Collection From Maps Or Move Toward A Social Network? : All Tech Considered : NPR

The burger place downtown? Check. The Ethiopian restaurant we visited that one time? Check. The sports bar near school we've been meaning to try? Maybe tonight is the night.

To help users keep track of points of interest, Google Maps is rolling out a new feature — for both Android and iOS devices — to create lists of locations and share them with friends.

Google says that it added lists because it was one of the most requested features from users. But what the company tells advertisers could be a completely different story, says Marc Rotenberg, who runs the Electronic Privacy Information Center, an independent research center based in Washington, D.C.


Read full article from Google Lists: More Data Collection From Maps Or Move Toward A Social Network? : All Tech Considered : NPR


California lawmakers introduce single-payer health care plan today



California lawmakers introduce single-payer health care plan today

Share this: | UPDATED: February 18, 2017 at 3:00 am SACRAMENTO — In a surprise move made in response to President Donald Trump's push to repeal and replace the Affordable Care Act, two California lawmakers Friday introduced legislation to replace private medical insurance with a government health care system covering all 38 million Californians — including its undocumented residents. "We've reached this pivotal moment and I thought to myself: 'Look, now more than ever is the time to talk about universal health care,'" one of Senate Bill 562's authors, Sen. Ricardo Lara, D-Bell Gardens, said in an interview Friday. The Healthy California Act, co-authored by Sen. Toni Atkins, D-San Diego, was submitted just before the deadline for new legislation. It doesn't yet offer many specifics other than the lawmakers' intent: to create a so-called single-payer system that would pay for coverage for everyone.

Read full article from California lawmakers introduce single-payer health care plan today


半衰期 - 维基百科,自由的百科全书



半衰期 - 维基百科,自由的百科全书

半衰期是指某种特定物质的浓度经过某种反应降低到剩下初始时一半所消耗的时间,半衰期是研究反应动力学的一个容易测定的重要参数,数学上可以证明,只有一级反应的半衰期是恒定的数值,且知悉一个一级反应的半衰期便可以计算出该反应的所有动力学参数,所以人们通常只关心一级反应的半衰期。常见的一级反应有:放射性核素衰变、一级化学反应、药物在体内的吸收和代谢等。


Read full article from 半衰期 - 维基百科,自由的百科全书


Costco: Great Buys on Perdue Chicken Nuggets, POM Wonderful, Boom Chicka Pop & More – Hip2Save



Costco: Great Buys on Perdue Chicken Nuggets, POM Wonderful, Boom Chicka Pop & More – Hip2Save

Latest Deals: Popular Stores: Feb 17, 2017 @ 6:00 PM MST The links in the post below may be affiliate links. Read the full disclosure . Through March 12th, Costco is offering up a whopping $1,500 worth of instant savings coupons in the coupon booklet found here – note that all discounts will automatically deduct at checkout! These instant savings coupons are valid to use both in-store and online (for most items)! Check out a few of the best deals you can score… Angie's Boom Chicka Pop Kettle Corn $5.99 Get instant savings of $2.10 at checkout – limit 5 Final cost $3.89! Get instant savings of $5/1 at register – NO limit Final cost $6.89! Get instant savings of $2.70 at the register Final cost $5.99! Get instant savings of $4 at the register – limit 4 Final cost $8.59! Get instant savings of $4 at the register Final cost $9.99!* Get instant savings of $3.25 at the register – limit 2 Final cost $10.74!* Get instant savings of $6 at the register – limit 4 Final cost $10.59!

Read full article from Costco: Great Buys on Perdue Chicken Nuggets, POM Wonderful, Boom Chicka Pop & More – Hip2Save


Execute code on webapp startup and shutdown using ServletContextListener



Execute code on webapp startup and shutdown using ServletContextListener

Sometimes you are in need of invoking some code during startup and shutdown of your web application. There are several ways to achieve this, but in this post I'm going to take a look at the ServletContextListener.

How it works

ServletContextListener is an interface that gets notified about ServletContext lifecycle changes. It offers two methods.

  • contextInitialized - Is triggered when the web application is starting the initialization. This will be invoked before any of the filters and servlets are initialized.

  • contextDestroyed - Is triggered when the ServletContext is about to be destroyed. This will be invoked after all the servlets and filters have been destroyed.

Let's see how the ServletContextListener implementation could look.


Read full article from Execute code on webapp startup and shutdown using ServletContextListener


Complex JSON Transformation with Jolt - Hortonworks



Complex JSON Transformation with Jolt - Hortonworks

Today we don't have a good way to perform JSON manipulation in NiFi. The kind when the output is, again, a JSON. Typical transforms:

  • Field renaming
  • Enrichment, default fields for sparse incoming JSON
  • Transposing, map->list, list->map, etc.
  • Obfuscating sensitive fields

Some functionality can be achieved with a ReplaceText processor, but there are major issues:

  • It operates on a text string, not structured
  • Replace can backfire when there is a regex match in an unexpected location

Proposed Solution

Create a dedicated JSON Transform processor. While doing my research I locked in on Jolt: http://bazaarvoice.github.io/jolt/

  • Java-based implementation. There are myriads JSON transform libraries, but most of them are JavaScript or even browser-focused only
  • Alternatives like a JSON serializer for JDK's XSLT parsers might work, but are usually way too much trouble than they are worth. XSLT files aren't the most user friendly bits either
  • Jolt transform spec is, in turn, a JSON
  • Any complex transformation logic which can't be expressed in standard terms can be plugged in via a Java extension class with Jolt
  • There is an online interactive design tool, which helps with the 'no UI' aspect: http://jolt-demo.appspot.com/

Examples

Below is an example transformation I needed in one of the flows (would like to substitute a ReplaceText with this new transformer eventually). The use case - rename one of the fields in the incoming JSON to bring it to a common data format which streams into a central location. Much more complicated transformations are, of course, possible, and are listed in the Jolt online demo app (link above).


Read full article from Complex JSON Transformation with Jolt - Hortonworks


bazaarvoice/jolt: JSON to JSON transformation library written in Java.



bazaarvoice/jolt: JSON to JSON transformation library written in Java.

The primary goal of Jolt was to improve "developer speed" by providing the ability to have a declarative rather than imperative transforms. That said, Jolt should have a better runtime than the alternatives listed above.

Work has been done to make the stock Jolt transforms fast:

  1. Transforms can be initialized once with their spec, and re-used many times in a multi-threaded environment.
    • We reuse initialized Jolt transforms to service multiple web requests from a DropWizard service.
  2. "*" wildcard logic was redone to reduce the use of Regex in the common case, which was a dramatic speed improvement.
  3. The parallel tree walk performed by Shiftr was optimized.

Two things to be aware of :

  1. Jolt is not "stream" based, so if you have a very large Json document to transform you need to have enough memory to hold it.
  2. The transform process will create and discard a lot of objects, so the garbage collector will have work to do.


Read full article from bazaarvoice/jolt: JSON to JSON transformation library written in Java.


Zipkin-style shared span vs two spans per RPC · Issue #102 · opentracing/opentracing.io · GitHub



Zipkin-style shared span vs two spans per RPC · Issue #102 · opentracing/opentracing.io · GitHub

There are two popular ways of modelling RPC calls in tracing: Zipkin's
model, where both the client and the server share one span, and the
model in which a span is exclusive to a single tracer, causing client
and server to have two separate spans.

OpenTracing, as far as I can tell, has no opinion on which of the two
models should be used. However, OT's goal is to allow swapping out
OpenTracing implementations with a simple configuration change and to
have standardized instrumentation for popular libraries like gRPC. The
two models, however, require different use of the OT interfaces and
thus different instrumentation, which means that implementations
aren't truly interchangeable.

Has this topic come up before? Is this something that OT feels
responsible for and that should be addressed? This issue further
extends to things like logs, e.g. Zipkin's cs, cr, sr and sr, that
would need to be set for some tracers but not others.


Read full article from Zipkin-style shared span vs two spans per RPC · Issue #102 · opentracing/opentracing.io · GitHub


Issue 13207: os.path.expanduser breaks when using unicode character in the username - Python tracker



Issue 13207: os.path.expanduser breaks when using unicode character in the username - Python tracker

Python 2 uses byte strings. If characters are not encodable to the ANSI code page, Windows replaces them by question marks. See the issue #13247 for another example (in Python 3 when using explicitly the bytes API). To be able to support characters not encodable to the ANSI code page, you have to use Unicode *everywhere*.    Because Python 2 doesn't have access to the Unicode environment and uses bytes in most cases, I don't think that we can fix this issue in Python 2.    I close this issue because it would require too much work to fix this issue in Python 2, whereas it already works in Python 3.  Move to Python 3 is the best solution of this issue.

Read full article from Issue 13207: os.path.expanduser breaks when using unicode character in the username - Python tracker


In-depth: Rideshare drivers coming into San Francisco from all over California | KRON4.com



In-depth: Rideshare drivers coming into San Francisco from all over California | KRON4.com

Updated:   SAN FRANCISCO (KRON) — Some say rideshare companies like Uber and Lyft may soon make taxis in San Francisco extinct. But are they helping to alleviate congestion? Or are they making the problem worse? The jury on that is still out. What we do know is that thousands of rideshare drivers are coming into San Francisco every day to make a living. And as KRON4's Philippe Djegal shows us, they are actually coming from all over the state. Watch the above video to see Philippe's full report. Share this: Related Posts Leave a Reply Enter your comment here... Fill in your details below or click an icon to log in: Email (required) (Address never made public) Name (required) You are commenting using your WordPress.com account. (  Log Out  /  Change  ) You are commenting using your Twitter account. (  Log Out  /  Change  ) You are commenting using your Facebook account. (  Log Out  /  Change  ) You are commenting using your Google+ account.

Read full article from In-depth: Rideshare drivers coming into San Francisco from all over California | KRON4.com


Tony Blair says independence case is 'more credible' after Brexit - BBC News



Tony Blair says independence case is 'more credible' after Brexit - BBC News

17 February 2017 Close share panel Media captionTony Blair says the vote for Brexit has created a more credible context for Scottish independence Former Prime Minister Tony Blair has said the context for the pro-Scottish independence case is "much more credible" after the Brexit vote. During a speech he said the vote to leave the EU puts the break-up of the UK back on the table. The former Labour PM argued that people voted without knowing the terms of leaving and therefore have a right to change their minds. First Minister Nicola Sturgeon has said a second referendum is "very likely". She told BBC Scotland that Mr Blair was "stating the obvious", adding that she believes the case for independence is "even more compelling" now than it was at the time of the 2014 referendum. The SNP argues that since a majority in Scotland voted to Remain, this represents a material change in circumstances sufficient to make the case for a second independence vote. At the weekend,

Read full article from Tony Blair says independence case is 'more credible' after Brexit - BBC News


San Francisco panel member explains decision to resign from Trump Advisory Commission on Asian Americans and Pacific Islanders | abc7news.com



San Francisco panel member explains decision to resign from Trump Advisory Commission on Asian Americans and Pacific Islanders | abc7news.com

Personalize your weather by entering a location. Sorry, but the location you entered was not found. Please try again. There are only four members left on President Donald Trump's Advisory Commission on Asian Americans and Pacific Islanders as 16 of 20 total have resigned. (KGO-TV) KGO SAN FRANCISCO (KGO) -- There are only four members left on President Donald Trump's Advisory Commission on Asian Americans and Pacific Islanders. The commission is basically a liaison between the Asian American and Pacific Islander community and the government. The commissioners who remain say they want to see projects underway through to completion while those who have resigned way the lines of communication between them and the president are practically closed. Of 20 commissioners, 16 have resigned. Six of them left when Trump was elected.

Read full article from San Francisco panel member explains decision to resign from Trump Advisory Commission on Asian Americans and Pacific Islanders | abc7news.com


You should not be displaying relative dates • Aaron Parecki



You should not be displaying relative dates • Aaron Parecki

Every time I see a web app display a date as "30 minutes ago" I cringe a little. This was cute 10 years ago when rapid publishing on the web was new, but there are a number of problems with this.


Read full article from You should not be displaying relative dates • Aaron Parecki


Internet swooning over adorable red headed baby monkey at San Francisco Zoo | abc7news.com



Internet swooning over adorable red headed baby monkey at San Francisco Zoo | abc7news.com


Read full article from Internet swooning over adorable red headed baby monkey at San Francisco Zoo | abc7news.com


Matej Tymes's Weblog: Spring proxy - calling methods within the same service



Matej Tymes's Weblog: Spring proxy - calling methods within the same service

One of the bigest issues of spring aop is, that when you use its proxies for adding some aop functionality (like for example transactions or security), your calls to a method withing the same bean won't trigger the advised aop functionality.

So if you have a Service, that has two methods, where method A() HAS NO @Transactional annotation and method B() HAS a @Transactional annotation and non transactional method A() calls during its execution transactional method B() then spring won't start any transaction. This is because the spring proxy will redirect its call for A() to the service object but the call to B() won't be executed on the proxy (that knows how and when to start the transaction) but instead on the actual service object that has not functional code to start the transaction (only a @Transactional annotation on the method B()).

To overcome this problem I have implemented a simple solution that injects the proxy of current bean instance and then you execute advised methods calling this instance proxy variable. All you have use is a @ThisInstance annotation and register a custom BeanPostProcessor:

Read full article from Matej Tymes's Weblog: Spring proxy - calling methods within the same service


18 WTF Moments From Trump's Unhinged Press Conference - Rolling Stone



18 WTF Moments From Trump's Unhinged Press Conference - Rolling Stone

18 WTF Moments From Trump's Unhinged Press Conference "Russia is fake news," said the president of the United States, before musing about nuclear holocaust President Trump held a press conference Thursday afternoon. 18 WTF Moments From Trump's Unhinged Press Conference Related Trump's in violation of the lease for his posh new D.C. hotel – and the General Services Administration has yet to do anything about it The event was ostensibly meant to roll out his new labor secretary nominee, Alexander Acosta. (Previous pick Andy Puzder bowed out Wednesday after it became clear to Republican Senate leaders they did not have enough votes to confirm him.) But the event had little to do with Acosta, and quickly devolved into one of the most remarkably incoherent spectacles in recent memory. Here are some of the most noteworthy moments. That time he batted back reports of chaos in the West Wing "I turn on TV, open the newspapers and I see stories of chaos – chaos – yet it is the exact opposite.

Read full article from 18 WTF Moments From Trump's Unhinged Press Conference - Rolling Stone


$0.10 Bottled Water at Costco, Starting Today!



$0.10 Bottled Water at Costco, Starting Today!


Read full article from $0.10 Bottled Water at Costco, Starting Today!


Bay Area restaurants joining the #DayWithoutImmigrants protest [Updating] - Inside Scoop SF



Bay Area restaurants joining the #DayWithoutImmigrants protest [Updating] - Inside Scoop SF

By Paolo Lucchesi on February 16, 2017 at 7:39 AM Photo: Cosecha Cafe Today (Feb. 16) is a #DayWithoutImmigrants, a protest aimed at President Trump's policies surrounding immigration, walls and "extreme vetting." As the Washington Post put it , the strike "aims to show the president the effect immigrants have in the country on a daily basis." In the restaurant world, the protest has gained momentum in recent days as big-name chefs like Jose Andres in DC and Rick Bayless in Chicago have joined the cause. Here in the Bay Area, a number of local restaurants are making a statement, too. Below is a preliminary list of Bay Area participants; it will be updated throughout the day. Unless otherwise noted, the restaurants are closed today. Email the tipline ( insidescoopsf@sfgate.com ) for additions, and we'll add it to the list. Keyword search across all the entries in this blog. Browse previous blog posts by month and year of entry. You'll see all the posts for that time period.

Read full article from Bay Area restaurants joining the #DayWithoutImmigrants protest [Updating] - Inside Scoop SF


Project Loon, from Google parent company Alphabet, now delivers internet more effectively - Business Insider



Project Loon, from Google parent company Alphabet, now delivers internet more effectively - Business Insider

× X, the moonshot tech division of Google's parent company Alphabet, says it's getting closer to its dream of delivering the internet to rural areas from high-altitude balloons. X announced Thursday that Project Loon, its internet balloon project, has a new set of navigation algorithms that will allow the balloons to cluster together and beam the internet to a concentrated area in need. Before, the plan was to have Loon balloons spread across the globe, with one balloon replacing another that drifts off. But X now says it has implemented new algorithms powered by machine learning techniques to guide the balloons into clusters, taking advantage of wind pattern data and other factors. Project Loon balloons can now be sent to an area that needs internet access within weeks instead of months, X says. Here's how the Loon balloons used to navigate: X Now, they'll navigate in clusters, which is more efficient, according to X: X Despite the upgrade,

Read full article from Project Loon, from Google parent company Alphabet, now delivers internet more effectively - Business Insider


Performance Benchmarks :: HyperDex.org



Performance Benchmarks :: HyperDex.org

We use the `Yahoo! Cloud Serving Benchmark for these comparisons. This is a widely-used, long-established, open-source benchmark for NoSQL systems. It was developed by an independent party, Yahoo, and published in 2010, has over 70 citations, and has been used extensively for benchmarking. The HyperDex team has had no bearing on the development of this benchmark. It is the de facto, and to our knowledge, the only credible open-source benchmark of its kind. We benchmark HyperDex against MongoDB and Cassandra, two widely-known NoSQL systems. While our benchmarking setup is described in detail on the setup page, the key point is that, overall, the comparison platform provides a fair, apples-to-apples comparison. Specifically:


Read full article from Performance Benchmarks :: HyperDex.org


‘Day Without Immigrants’ protest closes many US restaurants - The Washington Post



'Day Without Immigrants' protest closes many US restaurants - The Washington Post

Expensive restaurants and fast-food joints alike closed across the country. Sushi bars, Brazilian steakhouses, Mexican eateries and Thai and Italian restaurants turned away lunchtime customers.

On Ninth Street in South Philadelphia's Italian Market, it was so quiet in the morning that Rani Vasudeva thought it might be Monday, when many of the businesses on the normally bustling stretch are closed.


Read full article from 'Day Without Immigrants' protest closes many US restaurants - The Washington Post


Crossing the Streams – Joins in Apache Kafka - codecentric AG Blog : codecentric AG Blog



Crossing the Streams – Joins in Apache Kafka - codecentric AG Blog : codecentric AG Blog

0 Posts Version 0.10.0 of the popular message broker Apache Kafka saw the introduction of Kafka Streams. In its initial release, the Streams-API enabled stateful and stateless Kafka-to-Kafka message processing using concepts such as map, flatMap, filter or groupBy that many developers are familiar with these days. In Kafka 0.10.1, it started to support "Interactive Queries", an API that allows querying stateful stream transformations without going through another Kafka topic. In this article, we will talk about a specific kind of streaming operation – the joining of streams. We will begin with a brief walkthrough of some core concepts. Then we will take a look at the kinds of joins that the Streams API permits. Following that, we'll walk through each possible join by looking at the output of an established example. At the end, you should be aware of what kinds of joins are possible in Kafka Streams and where the caveats lie.

Read full article from Crossing the Streams – Joins in Apache Kafka - codecentric AG Blog : codecentric AG Blog


All flights between UK and Europe may be suspended if UK opts for 'cliff-edge' Brexit - Ryanair boss - Independent.ie



All flights between UK and Europe may be suspended if UK opts for 'cliff-edge' Brexit - Ryanair boss - Independent.ie

Thursday 16 February 2017 All flights between UK and Europe may be suspended if UK opts for 'cliff-edge' Brexit - Ryanair boss Laura Paterson Share All flights between UK and Europe may be suspended if UK opts for 'cliff-edge' Brexit - Ryanair boss Independent.ie Ryanair boss Michael O'Leary has warned there is a remote chance of all flights between the UK and Europe being suspended in March 2019 if the UK Government opts for a "cliff-edge" Brexit. Ryanair boss Michael O'Leary Ryanair boss Michael O'Leary has warned there is a remote chance of all flights between the UK and Europe being suspended in March 2019 if the UK Government opts for a "cliff-edge" Brexit. Share All flights between UK and Europe may be suspended if UK opts for 'cliff-edge' Brexit - Ryanair boss Independent.ie Ryanair boss Michael O'Leary has warned there is a remote chance of all flights between the UK and Europe being suspended in March 2019 if the UK Government opts for a "cliff-edge" Brexit.

Read full article from All flights between UK and Europe may be suspended if UK opts for 'cliff-edge' Brexit - Ryanair boss - Independent.ie


Lawmaker Wants California To Allow Bars To Stay Open Until 4 A.M. « CBS San Francisco



Lawmaker Wants California To Allow Bars To Stay Open Until 4 A.M. « CBS San Francisco

Sponsored By Lawmaker Wants California To Allow Bars To Stay Open Until 4 A.M. February 15, 2017 2:07 PM Bar generic Adam Berry/Getty Images SAN FRANCISCO (CBS SF) — If State Senator Scott Wiener has his way San Francisco will soon join cities like New York, Chicago, Key West, Las Vegas and Miami that allow bars with special licenses to serve alcohol until 4 a.m. Under the current state law, bars in California must stop serving alcohol at 2 a.m. "California is a diverse state, with cities and neighborhoods that have different needs when it comes to nightlife," Wiener said in a statement. "By granting local control to our cities to extend their late night hours, we can support areas that benefit economically and culturally from a strong nightlife presence, while ensuring that other cities and neighborhoods retain their current rules," Wiener's legislation, known as the "LOCAL Act," or Let Our Communities Adjust Late Night,

Read full article from Lawmaker Wants California To Allow Bars To Stay Open Until 4 A.M. « CBS San Francisco


Report: Alarming number of SF dogs infected with rare, potentially deadly bacteria - SFGate



Report: Alarming number of SF dogs infected with rare, potentially deadly bacteria - SFGate

Michelle Robertson | on February 14, 2017 Veterinarians in San Francisco have a new warning for dog owners. They say there are now six confirmed cases of an infectious disease from bacteria that have sickened dogs and the recent rains has something to do with it. Media: Brandpoint A bacterial disease not typically found in the Bay Area infected at least five dogs in San Francisco and Pacifica. Leptospirosis, a disease common to regions with heavy rainfall, is being blamed for the death of at least one dog in the Bay Area, Hoodline reports. Since the disease is uncommon in the Bay, some pets have not received the vaccine. Many pet owners have never even heard of leptospirosis. According to ABC 7 , the VCA San Francisco Veterinary Specialists saw five cases of leptospirosis in the last two months, compared to one or two cases in a typical year. The disease is on the SF SPCA's list of vaccine recommendations,

Read full article from Report: Alarming number of SF dogs infected with rare, potentially deadly bacteria - SFGate


Amazon Prime vs. Costco: Who's cheaper? | Clark Howard



Amazon Prime vs. Costco: Who's cheaper? | Clark Howard

Theo Thimou Wednesday, February 15 th 2017 Image Credit: Business Insider Mirror, mirror, on the wall…who's the cheapest of them all? A recent head-to-head price comparison of Costco Wholesale and Amazon Prime finds the warehouse club is 19% cheaper than the e-commerce giant. The price research done by Business Insider shows that Costco beats Amazon in all but one product that was surveyed. How Costco's prices compare to Amazon's prices The comparison between Costco and Amazon Prime is an apt one. Both are membership-based services that aren't available to the general public, though the cost of entry is different for each. Costco charges $55 annually for a basic membership, while Amazon Prime charges you $99 a year. On the other hand, the comparison may not be totally fair because Amazon offers much that Costco does not — free two-day shipping, a movies/TV streaming service, ad-free music, unlimited photo storage, Kindle books and more. So by that standard,

Read full article from Amazon Prime vs. Costco: Who's cheaper? | Clark Howard


[JERSEY-2806] Jackson serialization exception is sent in response - Java.net JIRA



[JERSEY-2806] Jackson serialization exception is sent in response - Java.net JIRA

The JacksonFeature installs these:

            // add the default Jackson exception mappers              context.register(JsonParseExceptionMapper.class);              context.register(JsonMappingExceptionMapper.class);  

Those are the ones responsible for the rendered exception.

Based on their javadocs, I would say they are more made for handling JSON data coming on the request-side, rather than response:

Implementation of ExceptionMapper to send down a "400 Bad Request" in the event unparsable JSON is received.

It makes sense when incoming JSON cannot be mapped, but when outgoing JSON fails to render, I would say it's 500 Internal Server Error, rather than 400 Bad request.


Read full article from [JERSEY-2806] Jackson serialization exception is sent in response - Java.net JIRA


Reverse Pairs (Leetcode 493, Lintcode 532) - 简书



Reverse Pairs (Leetcode 493, Lintcode 532) - 简书

本周竞赛题,这道题与Lintcode上面的reverse pair大同小异。这类题求个数,思路就是用merge sort. 由于两边的Array部分都是已经sort好的了,当左边的left index满足条件时,左边left往后的所有element都会满足条件,此时的个数为mid - left + 1,


Read full article from Reverse Pairs (Leetcode 493, Lintcode 532) - 简书


Costco Canada East Secret Sale Items – Feb. 13, 2017 to Feb. 20, 2017 – Ontario, Quebec & Atlantic Canada - Costco East Fan Blog



Costco Canada East Secret Sale Items – Feb. 13, 2017 to Feb. 20, 2017 – Ontario, Quebec & Atlantic Canada - Costco East Fan Blog

Home   »   Uncategorized   »   Costco Canada East Secret Sale Items – Feb. 13, 2017 to Feb. 20, 2017 – Ontario, Quebec & Atlantic Canada Costco Canada East Secret Sale Items – Feb. 13, 2017 to Feb. 20, 2017 – Ontario, Quebec & Atlantic Canada We walk the whole store for you every Monday when Costco's Secret Sale items are released for the week, then post them here  and on our facebook page. Calling all chefs! Kitchenaid 6qt stand mixers are $80 off this week – you'll be rolling dough and still rolling in dough. Big discounts on TVs are also held over. This is a great time to stock up on basics with plenty of deals on cleaning supplies, pantry and bathroom staples. And with Valentine's Day on Tuesday you can rest assured that all manner of chocolate goodies are on special. First pic is the handout coupons for the week. NEVER MISS A POST! Join the Costco East Facebook group to get updated whenever there is a new post! https://www.facebook.

Read full article from Costco Canada East Secret Sale Items – Feb. 13, 2017 to Feb. 20, 2017 – Ontario, Quebec & Atlantic Canada - Costco East Fan Blog


Matt Lauer Tells Kellyanne Conway She 'Makes No Sense': Gothamist



Matt Lauer Tells Kellyanne Conway She 'Makes No Sense': Gothamist

View Matt Lauer Tells Kellyanne Conway She 'Makes No Sense' Yesterday, President Donald Trump's spokesperson Kellyanne Conway told MSNBC that despite what the dishonest fake news media said, her boss had "full confidence" in his national security adviser General Michael Flynn, who was under attack for lying about conversations he had with Russia's ambassador before Trump was inaugurated, as well as during the campaign . Hours after making those statements, however, White House press secretary Sean Spicer told reporters Trump was "evaluating the situation" with Flynn. Hours after that, Flynn resigned, writing: In the course of my duties as the Incoming National Security Advisor, I held numerous phone calls with foreign counterparts, ministers, and ambassadors. These calls were to facilitate a smooth transition and begin to build the necessary relationships between the President, his advisors and foreign leaders. Such calls are standard practice in any transition of this magnitude.

Read full article from Matt Lauer Tells Kellyanne Conway She 'Makes No Sense': Gothamist


What is electronic program guide (EPG)? - Definition from WhatIs.com



What is electronic program guide (EPG)? - Definition from WhatIs.com

An electronic program guide (EPG) is an application used with digital set-top boxes and newer television sets to list current and scheduled programs that are or will be available on each channel and a short summary or commentary for each program. EPG is the electronic equivalent of a printed television program guide.


Read full article from What is electronic program guide (EPG)? - Definition from WhatIs.com


SF educators still waiting for promised teacher housing - San Francisco Chronicle



SF educators still waiting for promised teacher housing - San Francisco Chronicle

February 14, 2017 Updated: February 14, 2017 10:53am Photo: Laura Morton, Special To The Chronicle Image 1of/2 Image 1 of 2 Hilary Elfman, a special education teacher at a city elementary school, sits for a portrait with her mom Holly Elfman and dad Rick Elfman (left to right) at her parent's apartment in San Francisco, Calif., on Friday, February 10, 2017. Photo: Laura Morton, Special To The Chronicle Image 2 of 2 Hilary Elfman, a special education teacher at a city elementary school, walks home after work from her job in Pacific Heights to her parent's apartment in the Marina District in San Francisco, Calif., on Friday, February 10, 2017. less Hilary Elfman, a special education teacher at a city elementary school, walks home after work from her job in Pacific Heights to her parent's apartment in the Marina District in San Francisco, Calif., on ... more Photo:

Read full article from SF educators still waiting for promised teacher housing - San Francisco Chronicle


Montana's senators take different positions on Warren's 'gaveling' | News | billingsgazette.com



Montana's senators take different positions on Warren's 'gaveling' | News | billingsgazette.com

× We hope you have enjoyed your complimentary access for the month. Already a subscriber? Click on the button below to set up your account or log in if you already have one. Want to become a subscriber? Purchase a digital-only subscription now for unlimited online access to local news and information. Digital-only Access My Account (59102) Today Sunny. High near 50F. Winds WSW at 10 to 20 mph.. Tonight Clear and windy. Low 36F. Winds WSW at 20 to 30 mph. Updated: February 14, 2017 @ 10:53 am LARRY MAYER, Gazette Staff A digital billboard at 4th Avenue North and Main Street admonishes Sen. Jon Tester to vote for President Donald Trump's nominee. Associated Press Sen. Jon Tester, D-Mont., left, and Sen. Heidi Heitkamp, D-N.D., center, listen as President Donald Trump speaks during a meeting with senators on Thursday. top story LARRY MAYER, Gazette Staff A digital billboard at 4th Avenue North and Main Street admonishes Sen. Jon Tester to vote for President Donald Trump's nominee.

Read full article from Montana's senators take different positions on Warren's 'gaveling' | News | billingsgazette.com


Mark Zuckerberg, Larry Page, and Jack Dorsey All Refuse to Use This Word | Inc.com



Mark Zuckerberg, Larry Page, and Jack Dorsey All Refuse to Use This Word | Inc.com

Or sign up using: Mark Zuckerberg, Larry Page, and Jack Dorsey All Refuse to Use This Word A startup veteran who's worked with Zuckerberg, Page, and Dorsey claims all three avoid this word. Advertisement Google boss Larry Page has partially paralyzed vocal cords , which forces him to speak in a near whisper. Twitter and Square co-founder Jack Dorsey once wore a nose ring and dreadlocks and favors a frenetic-sounding management approach to that seems to involve a lot of walking meetings . Ultra-focused Mark Zuckerberg , in contrast, wears the same T-shirt everyday has described himself as " the least cool person there is ." My point is this: these are three very different guys. Yes, they've all built massively successful tech companies, but when it comes to leadership (and personal) style their approaches are from from uniform. But according to one veteran engineer who has managed to work with all three during the course of his impressive career,

Read full article from Mark Zuckerberg, Larry Page, and Jack Dorsey All Refuse to Use This Word | Inc.com


2 More Wall Street Pros Check In on Costco Stock -- The Motley Fool



2 More Wall Street Pros Check In on Costco Stock -- The Motley Fool

2 More Wall Street Pros Check In on Costco Stock Bernstein and Susquehanna put out new notes on the country's leading warehouse club last week. Rick Munarriz Feb 13, 2017 at 9:17AM Shares of Costco ( NASDAQ:COST ) are looking to bounce back after a rare decline in 2016, and it's drawing some more attention on Wall Street. A pair of analysts initiated coverage of the leading warehouse-club operator last week, but no one said all of the interest was bullish. Bernstein analyst Brandon Fletcher initiated coverage of Costco on Tuesday with a "market perform" rating. He's not knocking the company, but given the slow growth at Costco, he thinks the stock is at the high end of its valuation range. Fletcher is establishing a price target of $170, just below Friday's close of $172. Susquehanna initiated coverage three days later, as analyst Bill Dreher tagged the stock with a "positive" rating and a $195 price target.

Read full article from 2 More Wall Street Pros Check In on Costco Stock -- The Motley Fool


Elizabeth Warren takes aim at Labor nominee Andrew Puzder



Elizabeth Warren takes aim at Labor nominee Andrew Puzder

By 8:04 AM WASHINGTON — The week after her high-profile showdown over President Trump's pick for attorney general, Elizabeth Warren is gearing up for another round — this time with her sights trained on fast food chief executive Andrew Puzder, the president's nominee to head the Department of Labor. Warren this morning fired off a 28-page letter with 83 questions for Puzder, the chief executive of CKE Restaurants, which runs fast food chains Hardee's and Carl's Jr., ahead of his Feb. 16 confirmation hearing before the Senate Health, Education, Labor, and Pensions Committee. But there's little chance his answers will sway Warren, who sits on that panel. "My staff's review of your 16-year tenure . . . reveals that you've made your fortune by squeezing the very workers you'd be charged with protecting as Labor Secretary out of wages and benefits," Warren writes in the opening paragraphs of the letter.

Read full article from Elizabeth Warren takes aim at Labor nominee Andrew Puzder


Thousands of protesters spell out 'RESIST!!' on San Francisco's Ocean Beach - SFGate



Thousands of protesters spell out 'RESIST!!' on San Francisco's Ocean Beach - SFGate

Alix Martichoux | on February 12, 2017 Thousands gathered on Ocean Beach in San Francisco to spell out "RESIST!!" on Feb. 11, 2017. Video courtesy: Stefan Ruenzel Media: MediaOS Video Thousands of protesters gathered on San Francisco's Ocean Beach on Saturday, using their bodies to send a political message.  To spectators on the beach, the purpose of the protest may have seemed unclear. But from the sky, there was no question. Thousands of people spelled out "RESIST!!" on the sand. Organizer Brad Newsham wrote on Facebook that "a close study of a high-resolution overhead shot shows between 4,600 and 5,600 participants." Newsham, a San Francisco taxi driver since 1985, says he has been organizing events like this since 2007, when he hosted his first aerial protest calling for the impeachment of President George W. Bush. Since then, he says he has hosted between 12 and 15 similar events. According to SFist ,

Read full article from Thousands of protesters spell out 'RESIST!!' on San Francisco's Ocean Beach - SFGate


Katy Perry shows solidarity with Elizabeth Warren in Grammys performance - The Boston Globe



Katy Perry shows solidarity with Elizabeth Warren in Grammys performance - The Boston Globe

Most popular on bostonglobe.com Based on what you've read recently, you might be interested in theses stories Digital Access Katy Perry shows solidarity with Elizabeth Warren in Grammys performance By Isaac Feldberg Globe Correspondent  February 13, 2017 Katy Perry showed some subtle support for Senator Elizabeth Warren during a Grammys performance of her new single "Chained to the Rhythm," proudly displaying a "Persist" armband atop her black-and-white pantsuit. The accessory, of course, is a reference to the liberal battle cry "Nevertheless, she persisted," popularized in the wake of Warren being barred from reading a 1986 letter by Coretta Scott King about Jeff Sessions during last week's debate over his nomination for attorney general. Senate Majority Leader Mitch McConnell inadvertently originated the phrase. "Senator Warren was giving a lengthy speech," he said, in silencing her. "She had appeared to violate the rule. She was warned. She was given an explanation. Nevertheless,

Read full article from Katy Perry shows solidarity with Elizabeth Warren in Grammys performance - The Boston Globe


Two Login Pages with Spring Security | Baeldung



Two Login Pages with Spring Security | Baeldung

Last modified: February 11, 2017 The Master Class of "Learn Spring Security" is out: 1. Introduction In this tutorial, we will see how we can configure Spring Security to work with two different login pages using two different Spring Security http elements in the configuration. 2. Configuring 2 Http Elements One of the situations in which we may need two login pages is when we have one page for administrators of an application and a different page for normal users. We will configure two http elements that will be differentiated by the URL pattern associated with each: /user* for pages that will need a normal user authentication to be accessed /admin* for pages that will be accessed by an administrator Each http element will have a different login page and a different login processing URL. In order to configure two different http elements, let's create two static classes annotated with @Configuration that extend the WebSecurityConfigurerAdapter.

Read full article from Two Login Pages with Spring Security | Baeldung


Labels

Algorithm (219) Lucene (130) LeetCode (97) Database (36) Data Structure (33) text mining (28) Solr (27) java (27) Mathematical Algorithm (26) Difficult Algorithm (25) Logic Thinking (23) Puzzles (23) Bit Algorithms (22) Math (21) List (20) Dynamic Programming (19) Linux (19) Tree (18) Machine Learning (15) EPI (11) Queue (11) Smart Algorithm (11) Operating System (9) Java Basic (8) Recursive Algorithm (8) Stack (8) Eclipse (7) Scala (7) Tika (7) J2EE (6) Monitoring (6) Trie (6) Concurrency (5) Geometry Algorithm (5) Greedy Algorithm (5) Mahout (5) MySQL (5) xpost (5) C (4) Interview (4) Vi (4) regular expression (4) to-do (4) C++ (3) Chrome (3) Divide and Conquer (3) Graph Algorithm (3) Permutation (3) Powershell (3) Random (3) Segment Tree (3) UIMA (3) Union-Find (3) Video (3) Virtualization (3) Windows (3) XML (3) Advanced Data Structure (2) Android (2) Bash (2) Classic Algorithm (2) Debugging (2) Design Pattern (2) Google (2) Hadoop (2) Java Collections (2) Markov Chains (2) Probabilities (2) Shell (2) Site (2) Web Development (2) Workplace (2) angularjs (2) .Net (1) Amazon Interview (1) Android Studio (1) Array (1) Boilerpipe (1) Book Notes (1) ChromeOS (1) Chromebook (1) Codility (1) Desgin (1) Design (1) Divide and Conqure (1) GAE (1) Google Interview (1) Great Stuff (1) Hash (1) High Tech Companies (1) Improving (1) LifeTips (1) Maven (1) Network (1) Performance (1) Programming (1) Resources (1) Sampling (1) Sed (1) Smart Thinking (1) Sort (1) Spark (1) Stanford NLP (1) System Design (1) Trove (1) VIP (1) tools (1)

Popular Posts