Install Solr 5 and Zookeeper in a production environment | Andrew Rowland



Install Solr 5 and Zookeeper in a production environment | Andrew Rowland

Recently I had to set up three Solr servers in an AWS environment. I couldn't find anything specific to help me, so had to locate all the information separately. Hopefully the following may be of use to anyone who has to go through the same. In my situation, I have 3 servers that will sit behind a load balancer. The following describes how I set up each server.


Read full article from Install Solr 5 and Zookeeper in a production environment | Andrew Rowland


[Kafka-users] How to create the initial zookeeper chroot path for zk.connect? - Grokbase



[Kafka-users] How to create the initial zookeeper chroot path for zk.connect? - Grokbase

1. Install a single node Kafka, three nodes zookeeper instances

     kafka1
     zookeeper1
     zookeeper2
     zookeeper3

2. Using a simple Kafka config, able to start without error in the log

     brokerid=1
     log.dir=/data/kafka
     zk.connect=zookeeper1:2181,zookeeper2:2181,zookeeper3:2181

3. Now, create a path in zookeeper1

     zkCli.sh -server zookeeper1:2181

         ls /
         [consumers, brokers, zookeeper]
         create /testkafka ''
         ls /
         [testkafka, consumers, brokers, zookeeper]

Quit & Done.

4. Verify from zookeeper2

     zkCli.sh -server zookeeper2:2181
         ls /
         [testkafka, consumers, brokers, zookeeper]

Seems ok

4. Update kafka config and restart


zk.connect=zookeeper1:2181/testkafka,zookeeper2:2181/testkafka,zookeeper3:2181/testkafka

Restart and have the error

[2013-04-19 05:35:14,846] FATAL Fatal error during KafkaServerStable
startup. Prepare to shutdown (kafka.server.KafkaServerStartable)
java.lang.IllegalArgumentException: Path length must be > 0
at org.apache.zookeeper.common.PathUtils.validatePath(PathUtils.java:48)
at org.apache.zookeeper.common.PathUtils.validatePath(PathUtils.java:35)
..

Read full article from [Kafka-users] How to create the initial zookeeper chroot path for zk.connect? - Grokbase


Software Engineering Daily



Software Engineering Daily

http://traffic.libsyn.com/sedaily/brendan-eich_edited.mp3Podcast: Play in new window | Download   Brendan Eich created the first version of JavaScript in 10 days. Since then JavaScript has evolved, and Brendan has watched the growth of the web give rise to new and unexpected use cases. Today Brendan Eich is still pushing the web forward across the technology stack with his involvement in the WebAssembly specification and the Brave browser. For all of its progress,


Read full article from Software Engineering Daily


Mike Pence Asks Waiter To Remove Mrs. Butterworth From Table Until Wife Arrives - The Onion - America's Finest News Source



Mike Pence Asks Waiter To Remove Mrs. Butterworth From Table Until Wife Arrives - The Onion - America's Finest News Source

Popular LONDON—After Prime Minister Theresa May initiated official proceedings for Great Britain's exit from the European Union, sources confirmed Thursday that Queen Elizabeth II has been frantically trying to preserve the nation's European alliances by arranging the marriages of her great-grandchildren. RICHMOND, VA—Sighing loudly and expressing a deep regret regarding the naïve and starry-eyed assumptions he had made about a recent supermarket purchase, local 32-year-old Noah Willson lamented to reporters Thursday that he had been duped by the glamorized manner in which a can of beans had been portrayed in a television commercial. JACKSON, MI—Citing a wish to maintain the quality of life for residents across the state, the Mississippi Senate on Thursday passed a bill outlawing the sale of soft drinks in containers smaller than 20 ounces. WASHINGTON—Fully mindful of the privilege he enjoyed,

Read full article from Mike Pence Asks Waiter To Remove Mrs. Butterworth From Table Until Wife Arrives - The Onion - America's Finest News Source


Spring Data Cassandra and Map of Maps - Stack Overflow



Spring Data Cassandra and Map of Maps - Stack Overflow

OK, what @phact said is not the answer is was looking for, but it did set me on the path to figuring things out.

As per my own comment on my original post, it appeared that this was a datastax driver issue, not a spring-data-cassandra issue. And that was borne out when I wrote a small test harness to try and query the problem table w/just the datastax client. I picked v2.1.7.1 of cassandra-driver-core and was able to query the table w/the map of maps fine.

Looking at the version of the driver that v1.3.0 of spring-data-cassandra brings in it's older, v2.0.4. A bit of maven dependency malarkey and I had my spring-data-cassandra project using a newer datastax driver and everything works fine.


Read full article from Spring Data Cassandra and Map of Maps - Stack Overflow


Getting UnixHTTPConnectionPool read timeout · Issue #4486 · docker/compose · GitHub



Getting UnixHTTPConnectionPool read timeout · Issue #4486 · docker/compose · GitHub

Compose, like the Docker CLI, connects to the docker daemon using a unix socket. It's highly possible that at high load, the engine takes an overly long time to respond to requests, causing this error to appear. As the error message suggests, try playing around with the COMPOSE_HTTP_TIMEOUT value and see whether stability improves as a result.


Read full article from Getting UnixHTTPConnectionPool read timeout · Issue #4486 · docker/compose · GitHub


How to stop a non-responsive running container | Carina by Rackspace



How to stop a non-responsive running container | Carina by Rackspace

If you launch a container without the --detach (-d) flag, that container runs in the foreground of the terminal. Usually, you can stop the running container by using Ctrl-C or Ctrl-D. Sometimes, however, the process doesn't respond to Ctrl-C or Ctrl-D, and the container continues running without responding to any input.

Read full article from How to stop a non-responsive running container | Carina by Rackspace


Document how to connect to Docker host from container · Issue #1143 · docker/docker



Document how to connect to Docker host from container · Issue #1143 · docker/docker

I had some trouble figuring out how to connect the docker host from the container. Couldn't find documentation, but did find irc logs saying something about using 172.16.42.1, which works.

It'd be nice if this behavior and how it's related to docker0 was documented.


Read full article from Document how to connect to Docker host from container · Issue #1143 · docker/docker


how to connect to Docker host from container · Issue #8395 · docker/docker



how to connect to Docker host from container · Issue #8395 · docker/docker

#1143 is closed but not resolved.
I do not know how to reopen it, so I created this issue.

Summary: I need a reliable way to access a service running on the host from a docker container.
Therefore I need the IP address of the host that is reachable from the container

Scenario: I have a configuration DB that runs on the host and the docker container should get its configuration (and perhaps even some updates) from the DB.


Read full article from how to connect to Docker host from container · Issue #8395 · docker/docker


An Engineer’s Retrospective | Project Samman



An Engineer's Retrospective | Project Samman

Approaching the one-year mark of my involvement with Project Sammaan, I've spent a good deal of time lately reflecting on not only this initiative but the sanitation situation in India as a whole as well.

Being a part of this project is in and of itself something I take a lot of pride from. As it's my first professional venture and one that involves working on a just cause (i.e., to address the serious and severe shortfall of sanitation facilities for urban communities, which, till date, is most neglected in India), my one true hope is that I can do my bit and contribute in a positive manner. It's been a wonderful experience in meeting amazing people from different domains and backgrounds. As a Civil Engineer, I've gained a working, professional knowledge of pre-construction activities like making land approval documents, liaising with Govt. Officials, and official procedures needed for getting administrative approval and technical sanctions for a project. For this I would really, from bottom of my heart, acknowledge Mr Kevin Shane, Project Manager and Mr Ayush Chauhan, Project Director for having faith and confidence in me.


Read full article from An Engineer's Retrospective | Project Samman


Up command hangs at Attaching to... · Issue #3396 · docker/compose · GitHub



Up command hangs at Attaching to... · Issue #3396 · docker/compose · GitHub

This is the expected behaviour. After attaching it goes to print logs, but if there are no logs then it just waits.

If you want up to exit use up -d.


Read full article from Up command hangs at Attaching to... · Issue #3396 · docker/compose · GitHub


self referencing docker-compose results in infinite loop (eventual timeout) · Issue #3474 · docker/compose · GitHub



self referencing docker-compose results in infinite loop (eventual timeout) · Issue #3474 · docker/compose · GitHub

A docker-compose.yml file that references itself in the external_links section will result in an infinite loop/eventual timeout and also seems to take down docker ( docker ps works before, docker ps doesnt after) . A confounding factor maybe that I'm running via dinghy.

docker-compose.yml:

myservice:    image: alpine:latest    command: tail /dev/urandom    external_links:      - myservice_myservice_1:myservice

Read full article from self referencing docker-compose results in infinite loop (eventual timeout) · Issue #3474 · docker/compose · GitHub


Judge criticizes Uber’s secrecy in lawsuit with Waymo | TechCrunch



Judge criticizes Uber's secrecy in lawsuit with Waymo | TechCrunch

Hi! You are about to activate our Facebook Messenger news bot. Once subscribed, the bot will send you a digest of trending stories once a day. You can also customize the types of stories it sends you. Click on the button below to subscribe and wait for a new Facebook message from the TC Messenger news bot. Thanks, TC Team Posted Google's side of the story in its patent and trade secret case against Uber is pretty damning — Google alleges that a former employee of its self-driving car unit, Anthony Levandowski, stole thousands of sensitive documents on his way out the door to lead Uber's self-driving efforts. But, as an attorney for Uber told reporters last week , Uber would very much like all of this to be resolved in arbitration between Google's Waymo and Levandowski rather than in open court. That desire for secrecy is on full display in a new, heavily redacted motion Uber filed in the case today,

Read full article from Judge criticizes Uber's secrecy in lawsuit with Waymo | TechCrunch


docker-compose up - Docker Documentation



docker-compose up - Docker Documentation

Usage: up [options] [SERVICE...] Options: -d Detached mode: Run containers in the background, print new container names. Incompatible with --abort-on-container-exit. --no-color Produce monochrome output. --no-deps Don't start linked services. --force-recreate Recreate containers even if their configuration and image haven't changed. Incompatible with --no-recreate. --no-recreate If containers already exist, don't recreate them. Incompatible with --force-recreate. --no-build Don't build an image, even if it's missing. --build Build images before starting containers. --abort-on-container-exit Stops all containers if any container was stopped. Incompatible with -d. -t, --timeout TIMEOUT Use this timeout in seconds for container shutdown when attached or when containers are already running. (default: 10) --remove-orphans Remove containers for services not defined in the Compose file

Read full article from docker-compose up - Docker Documentation


The Michael Flynn Scandal Just Got A Lot Worse | Fortune.com



The Michael Flynn Scandal Just Got A Lot Worse | Fortune.com

Search Search Mar 27, 2017 The Wall Street Journal recently reported stunning new information about retired U.S Army Gen. Michael Flynn, who was briefly the National Security Adviser to President Donald Trump before being fired for lying about his troubling contacts with the Russian ambassador to Washington. Because of those communications and other contacts with the Putin government, Flynn is already at the center of the storm of the Russia-Trump investigations being conducted by Congress and the FBI. But now it is not just Russia ties that are dogging Flynn and, by extension, his former boss, the President. Flynn's work for the government of Turkey is now also a serious issue. It has been known for months that Flynn did some consulting work for a Turkish company with links to the Turkish government, while also serving as one of the most important members of Trump's campaign team. But the nature and extent of this work was not publicly known. But now, according to The Journal,

Read full article from The Michael Flynn Scandal Just Got A Lot Worse | Fortune.com


The Amazon 5% Cash Back Card is Here | Frugal Travel Guy



The Amazon 5% Cash Back Card is Here | Frugal Travel Guy

How do you get the card? Log into your Amazon Prime account, select "account" and then "payment options" to access your Amazon Rewards Visa Signature Card. Under it there should be a link that allows you to activate the 5% cash back. Enter your card number, and you will see the 5% cash back confirmation.


Read full article from The Amazon 5% Cash Back Card is Here | Frugal Travel Guy


What do Hiring Managers Look For in a Data Scientist’s CV? | Ben Dias | Pulse | LinkedIn



What do Hiring Managers Look For in a Data Scientist's CV? | Ben Dias | Pulse | LinkedIn

I've just completed my first round of recruitment since joining Royal Mail as their first Head of Data Science, with some successful candidates joining my team. But having been involved in hiring Data Scientists for many years now, at the initial shortlisting stage of the process, I still find myself wishing too often that the information I'm looking for was in the CV in front of me. It just seems like Data Scientists in general don't know what they should put in their CVs as they don't know what hiring managers are looking for. And this leaves hiring managers like me with the dilemma of either rejecting most of the CVs (and taking the large risk of dismissing some potentially very good candidates) or having to employ an additional telephone screening stage to find out the information I need from the potentially good candidates.


Read full article from What do Hiring Managers Look For in a Data Scientist's CV? | Ben Dias | Pulse | LinkedIn


[LUCENE-7674] java.lang.IllegalStateException: Child query must not match same docs with parent filter. Combine them as must clauses (+) to find a problem doc. docId=2147483647, class org.apache.lucen



[LUCENE-7674] java.lang.IllegalStateException: Child query must not match same docs with parent filter. Combine them as must clauses (+) to find a problem doc. docId=2147483647, class org.apache.lucen

I agree with Adrien. The current block join support in Solr is a desaster, because it was released to early. Just nuke the broken APIs and create a new one, so Solr internally knows from schema/mapping how to block join and also prevent misformed updates. This is also worth a backwards compatibility break! Doing expensive runtime checks on every query just to keep a broken API/implementation is not a good idea. Break hard and come with a better API, the users will still be more happy, trust me. I know so many users who f*ck up the block joins, as Solr does not enforce it correctly. Do the following:

  • remove Solr ID fields from child documents (why do we have them? This also makes updates to child documents impossible)
  • always hide child documents on "normal" queries and return them only with the parent document (like Elasticsearch does)
  • automatically add block join queries if fields of the child documents are part of the query
  • add some extra queries to specifically search on childs and return childs only (hiding parents, of course)
  • if somebody updates a parent document, delete also all childs and create a new block
  • hide the block join filter. Solr should have an internal marker field to support block join, which is never exposed

Read full article from [LUCENE-7674] java.lang.IllegalStateException: Child query must not match same docs with parent filter. Combine them as must clauses (+) to find a problem doc. docId=2147483647, class org.apache.lucen


[SOLR-10144] redesign block-join support - ASF JIRA



[SOLR-10144] redesign block-join support - ASF JIRA

Scopes in schema.xml

  1. fields can be grouped with <scope name="parent" default="true">;
    1. such fields' scoping is not mandatory, postponable, might cause rbdbms illusion
  2. it can be any level deep, and fan out any subscopes (a scope name is necessary to distinguish between sons and daugthers subscopes);
  3. I'm not sure whether name is uniq globally or names in traverse path is unique. I'd like the former;
  4. btw, maybe type ;
  5. default attribute is necessary to map existing blocks, which has only one nesting dimension: childrenDocuments;
  6. fields beside of scopes (global) can appear on any scope. it should work with uniqueKey. What's semantic of uniqueKey across scopes One recently discussed case it searching for child scope documents, when children uniqKeys should not clash;
    1. root doc uniqueKey spans on whole block (it's necessary to be used as deleteTerm for block updates), but every doc is identified with own uniqueKey (otherwise it's not possible to find it with distributed search)
  7. coming to roots how many root scopes we can have? I think we can have a few ones that introducing notion of document types.

Updates

  1. All formats XML, JSON, JSONdoc, Javabin accept nesting in named scopes;
  2. Current format (unnamed nesting) is supported by default marked scope;
  3. field are accepted only if they are defined at the certain scope, beside of the global ones. (see consideration above)

Read full article from [SOLR-10144] redesign block-join support - ASF JIRA


Zipping and Unzipping in Java | Baeldung



Zipping and Unzipping in Java | Baeldung

In this quick tutorial we'll discuss how to zip a file into an archive and how to unzip the archive – all using core libraries provided by Java.


Read full article from Zipping and Unzipping in Java | Baeldung


java - Dozer copy Map to another Map - Stack Overflow



java - Dozer copy Map to another Map - Stack Overflow

I´ve been triyng to copy a Map(String,ProposalViewBean) to another Map(String,Proposal)


Read full article from java - Dozer copy Map to another Map - Stack Overflow


Why are Republicans so cruel to the poor? Paul Ryan’s profound hypocrisy stands for a deeper problem - Salon.com



Why are Republicans so cruel to the poor? Paul Ryan's profound hypocrisy stands for a deeper problem - Salon.com

Thursday, Mar 23, 2017 9:00 AM UTC Why are Republicans so cruel to the poor? Paul Ryan's profound hypocrisy stands for a deeper problem Paul Ryan has dreamed of slashing Medicaid since his keg-party days — and that blithe hostility is widespread Paul Ryan (Credit: AP/J. Scott Applewhite/Salon) Republican Paul Ryan, like most other members of the U.S. Congress, is a millionaire. Christa Patton is 68 years old. She is frail and no longer able to leave her home. She lives on a fixed income. Patton told Van Jones on a recent episode of his CNN show "The Messy Truth" that she would not be able to eat without the Meals on Wheels program. Paul Ryan is the speaker of the U.S. House of Representatives. By his own account, in college he used to hang out with his friends and drink beer while sharing his dreams of cutting Medicaid. When Ryan was 15 years old, his father died from a heart attack affected by alcoholism.

Read full article from Why are Republicans so cruel to the poor? Paul Ryan's profound hypocrisy stands for a deeper problem - Salon.com


11-Week-Old Died After His Daycare Put Him In A Car Seat To Sleep Unbuckled & Unattended For Two Hours - Goodfullness



11-Week-Old Died After His Daycare Put Him In A Car Seat To Sleep Unbuckled & Unattended For Two Hours - Goodfullness

Shepard Dodd was 11 weeks old when he died in his infant car seat. It's a risk that not many parents know about, but the accident happens more often than it should. Now Shepard's parents, Ali and Derek Dodd, are sharing their story so that this doesn't happen to another parent again! "Shepard was in the home of his licensed daycare provider. Shepard had a runny nose and a little congestion, so when it was time for his nap he was swaddled and placed in his car seat so he could sleep more upright. The straps were left completely unbuckled. While he was sleeping, Shepard's body shifted and his head fell down into a chin-to-chest position and because he was so young he couldn't pick his head up to open up his airway. No one noticed in time. He died of asphyxiation." writes The Car Seat Lady on Facebook . Car seats are made to protect children while traveling in a car, but they can pose a danger if infants are not properly strapped in and monitored.

Read full article from 11-Week-Old Died After His Daycare Put Him In A Car Seat To Sleep Unbuckled & Unattended For Two Hours - Goodfullness


Compression - Apache Kafka - Apache Software Foundation



Compression - Apache Kafka - Apache Software Foundation

This feature introduces the end-to-end block compression feature in Kafka. If enabled, data will be compressed by the producer, written in compressed format on the server and decompressed by the consumer. Compression will improve the consumer throughput for some decompression cost. This is especially useful when mirroring data across data centers.

Design

A set of messages can be compressed and represented as one compressed message. In that sense, a message is recursive by definition. A ByteBufferMessageSet could consist of both uncompressed as well as compressed data. Due to that, we need some way of identifying compressed messages from uncompressed ones. To identify a compressed message, we introduce a compression-attributes byte in the message header. This addition of a byte in the message header indicates change in the network byte format as well as the storage byte format. This new format is versioned as magic byte value of 1.


Read full article from Compression - Apache Kafka - Apache Software Foundation


Spark & Kafka - Achieving zero data-loss



Spark & Kafka - Achieving zero data-loss

Spark Streaming can connect to Kafka using two approaches described in the Kafka Integration Guide. The first approach, which uses a receiver, is less than ideal in terms of parallelism, forcing you to create multiple DStreams to increase the throughput. As a matter of fact, most people tend to depreciate it in favor of the Direct Stream approach that appeared in Spark 1.3 (see the blog post on Databricks' blog and a blog post of the main contributor).


Read full article from Spark & Kafka - Achieving zero data-loss


US Officials: Info suggests Trump associates may have coordinated with Russians - CNNPolitics.com



US Officials: Info suggests Trump associates may have coordinated with Russians - CNNPolitics.com

One law enforcement official said the information in hand suggests "people connected to the campaign were in contact and it appeared they were giving the thumbs up to release information when it was ready." But other U.S. officials who spoke to CNN say it's premature to draw that inference from the information gathered so far since it's largely circumstantial.

Read full article from US Officials: Info suggests Trump associates may have coordinated with Russians - CNNPolitics.com


Trump Nominee: Lax Deal for Billionaire Pedo Jeffrey Epstein Was ‘A Good Thing’ - The Daily Beast



Trump Nominee: Lax Deal for Billionaire Pedo Jeffrey Epstein Was 'A Good Thing' - The Daily Beast

Win McNamee SAY WHAT? Trump Nominee: Lax Deal for Billionaire Pedo Jeffrey Epstein Was 'A Good Thing' Trump's labor secretary nominee Alexander Acosta defended his record as a U.S. Attorney and his secret non-prosecution deal with perverted billionaire and Trump pal, Jeffrey Epstein. At his senate confirmation hearing Wednesday morning, labor secretary nominee Alexander Acosta generally described the secret non-prosecution deal he oversaw as U.S. Attorney with billionaire pedophile Jeffrey Epstein as "a good thing." According to law enforcement officials and alleged victims, between the years 1998 and 2007, financier and playboy Jeffrey Epstein— who socialized with the likes of Donald Trump and Bill Clinton —ran a kind of sexual pyramid scheme in Florida, New York, and on his private island in the U.S. Virgin Islands where he paid minors as young as 13 years old to perform sexual massages and recruit other girls for the same.

Read full article from Trump Nominee: Lax Deal for Billionaire Pedo Jeffrey Epstein Was 'A Good Thing' - The Daily Beast


java - Is DocumentBuilder thread safe? - Stack Overflow



java - Is DocumentBuilder thread safe? - Stack Overflow

See the comments section for other questions about the same matter. Short answer for your question: no, it's not ok to put these classes in a singleton. Neither DocumentBuilderFactory nor DocumentBuilder are guaranteed to be thread safe. If you have several threads parsing XML, make sure each thread has its own version of DoumentBuilder. You only need one of them per thread since you can reuse a DocumentBuilder after you reset it.

EDIT A small snippet to show that using same DocumentBuilder is bad. With java 1.6_u32 and 1.7_u05 this code fails with org.xml.sax.SAXException: FWK005 parse may not be called while parsing. Uncomment synchronization on builder, and it works fine:


Read full article from java - Is DocumentBuilder thread safe? - Stack Overflow


Consolidated Form 1099 - TurboTax Support



Consolidated Form 1099 - TurboTax Support

That will have sections for 1099-Int and 1099-Div and 1099B. You need to enter each section in the right place.  So read it carefully and look for headings…1099-Int for interest or 1099-Div for Dividends and 1099B for sales.


Read full article from Consolidated Form 1099 - TurboTax Support


What Is a 1099-G Tax Form? - TurboTax Tax Tips & Videos



What Is a 1099-G Tax Form? - TurboTax Tax Tips & Videos

When you receive a refund, offset, or credit of state or local income tax, that amount appears in box 2 of the 1099-G form. However, you don't necessarily have to report this amount on your federal tax return or pay additional taxes. You only need to report it if you took a deduction for paying those taxes in a prior year. Box 3 of the form will indicate the relevant tax year.


Read full article from What Is a 1099-G Tax Form? - TurboTax Tax Tips & Videos


How do I find my Employer Identification Number - TurboTax Support



How do I find my Employer Identification Number - TurboTax Support

Providing your Employer Identification Number (EIN) from your W-2 allows us to identify the easiest way for you to enter your W-2 form (you also need it to e-file).

The best place to look is in Box b of your W-2 form, located right above or below your employer's name and address.

Your EIN will be a 9-digit number with a dash after the second digit (example: 00-0000000). Keep in mind, an EIN is not the same thing as an Employer's State ID number or your Employee Number.


Read full article from How do I find my Employer Identification Number - TurboTax Support


SQL DELETE Statement



SQL DELETE Statement

It is possible to delete all rows in a table without deleting the table. This means that the table structure, attributes, and indexes will be intact:


Read full article from SQL DELETE Statement


What Log4j2 API features are not available in SLF4J? : java



What Log4j2 API features are not available in SLF4J? : java

We use many of these Log4j specific features; they have been essential in solving certain use cases. We use slf4j almost everywhere in our codebase except a half dozen places where we had to have these extra capabilities. I think it's the best approach you can take.


    Read full article from What Log4j2 API features are not available in SLF4J? : java


    Why can't I connect to Kafka/Zookeeper? (In a Docker) - Stack Overflow



    Why can't I connect to Kafka/Zookeeper? (In a Docker) - Stack Overflow

    In new kafka streams, the ip of producer must have been knowing by kafka (docker). Kafka send their uuid (you can show this in /etc/hosts inside kafka docker) and espect response from this.

    Summary:

    Map uuid kafka docker to docker-machine in /etc/host of mac OS.

    To help you, how to change etc/host file in mac:


    Read full article from Why can't I connect to Kafka/Zookeeper? (In a Docker) - Stack Overflow


    Kafka Docker - Can't produce or consume from outside of docker container - Stack Overflow



    Kafka Docker - Can't produce or consume from outside of docker container - Stack Overflow

    This worked for me: http://stackoverflow.com/a/37655203/1839580

    My summary: The ADVERTISED_HOST environment variable in the spotify/kafka container needs to change depending on whether your service is operating inside or outside the container. I an using Docker for Mac and I have my docker network set to bridged. Outside of Docker the ADVERTISED_HOST needed to be set to localhost, inside of docker, it was set to myproject_kafka_1 or whatever it ends up being on your system. To fix it, I added and entry in my MacOS host files that mapped 127.0.0.1 to myproject_kafka_1. I don't like messing with my host file, but it fixed this issue for me.

    127.0.0.1   localhost  127.0.0.1   myproject_kafka_1

    Read full article from Kafka Docker - Can't produce or consume from outside of docker container - Stack Overflow


    8 handy things to do with your new Google Assistant | PCWorld



    8 handy things to do with your new Google Assistant | PCWorld

        About | 8 handy things to do with your new Google Assistant From telling it what to call you to playing tic-tac-toe, here are some nifty ways to get started with your new Assistant. Email a friend From Sorry Credit: Ben Patterson More like this So your Marshmallow-or-better Android phone just got Google Assistant, and when you long-press the Home button for the first time after the update, your new digital helper asks, "Hi, how can I help?" Talk about an open-ended question. Read on for eight easy ways to get started with Google's chatty servant, from telling it what to call you, to making a shopping list, to turning on Bluetooth and even playing Solitaire. Give Assistant some familiar voice commands "Open the Kindle app," "make an appointment for noon today," "remind me to buy milk," and "play some jazz"—all familiar Android voice commands from way back when , and most of them will work just fine with Google Assistant.

    Read full article from 8 handy things to do with your new Google Assistant | PCWorld


    Linux : How to gzip a folder



    Linux : How to gzip a folder

    On Linux, gzip is unable to compress a folder, it used to compress a single file only. To compress a folder, you should use tar + gzip, which is tar -z.


    Read full article from Linux : How to gzip a folder


    Byte Buddy - runtime code generation for the Java virtual machine



    Byte Buddy - runtime code generation for the Java virtual machine

    Byte Buddy is a code generation and manipulation library for creating and modifying Java classes during the runtime of a Java application and without the help of a compiler. Other than the code generation utilities that ship with the Java Class Library, Byte Buddy allows the creation of arbitrary classes and is not limited to implementing interfaces for the creation of runtime proxies. Furthermore, Byte Buddy offers a convenient API for changing classes either manually, using a Java agent or during a build.


    Read full article from Byte Buddy - runtime code generation for the Java virtual machine


    FilteringOptions · jacoco/jacoco Wiki · GitHub



    FilteringOptions · jacoco/jacoco Wiki · GitHub

    The JaCoCo Analyzer should allow to hook-in filters, that filters synthetic compiler constructs or code, that should not be considered for code coverage. This page is a collection of filters that might be useful.


    Read full article from FilteringOptions · jacoco/jacoco Wiki · GitHub


    Sonar/Jacoco shows @EqualsAndHashCode as untested · Issue #624 · rzwitserloot/lombok · GitHub



    Sonar/Jacoco shows @EqualsAndHashCode as untested · Issue #624 · rzwitserloot/lombok · GitHub

    @gunjank no, and I think I agree with some of the comments it's more likely to be a JaCoCo issue (referenced above). This is real generated code that does not have coverage.


    Read full article from Sonar/Jacoco shows @EqualsAndHashCode as untested · Issue #624 · rzwitserloot/lombok · GitHub


    Investigate filtering with annotations · Issue #14 · jacoco/jacoco · GitHub



    Investigate filtering with annotations · Issue #14 · jacoco/jacoco · GitHub

    Seems it is a good approach for general method filtering. JaCoCo can provide a SPI for filtering and simply adding a implementation to the classpath should work for remove an entire method from report. (but unfortunately the ServiceLoaded is only available for Java >= 6)

    Now looks that filtering generated bytecode constructs within a method is much harder than simply filtering a entire method.


    Read full article from Investigate filtering with annotations · Issue #14 · jacoco/jacoco · GitHub


    PowerMock disables EclEmma code coverage · Issue #422 · powermock/powermock · GitHub



    PowerMock disables EclEmma code coverage · Issue #422 · powermock/powermock · GitHub

    as I mentioned in my answers above, PowerMock can work only with JaCoCo Offline instrumentation. PowerMock uses custom class loader and reads class from disk, so all agents changes are invisible for PowerMock.

    Read full article from PowerMock disables EclEmma code coverage · Issue #422 · powermock/powermock · GitHub


    DevInfo: How to make Jackson to avoid excaping backslash?



    DevInfo: How to make Jackson to avoid excaping backslash?

    private static final ObjectMapper mapper = new ObjectMapper(new ObjectMapper().getFactory().setCharacterEscapes(new CharacterEscapes() {
        @Override
        public int[] getEscapeCodesForAscii() {
          // add standard set of escaping characters
          int[] esc = CharacterEscapes.standardAsciiEscapesForJSON();
          // don't escape backslash (not to corrupt windows path)
          esc['\\'] = CharacterEscapes.ESCAPE_NONE;
          return esc;
        }

        @Override
        public SerializableString getEscapeSequence(int i) {
          // no further escaping (beyond ASCII chars) needed
          return null;
        }
      })).enable(INDENT_OUTPUT);

    Read full article from DevInfo: How to make Jackson to avoid excaping backslash?


    List all files changed in a pull request in Git/GitHub - Stack Overflow



    List all files changed in a pull request in Git/GitHub - Stack Overflow

    In general, you can list the files changed between any two commits with git diff --name-only :

    Show all changed files between two Git commits

    (Edited based on clarification.)

    The problem here seems to be determining the 'merge base'. If all branches originate with master, then you could do:

    git --no-pager diff --name-only FETCH_HEAD $(git merge-base FETCH_HEAD master)

    This will show you the changes between the point at which the FETCH_HEAD was branched from master to the current FETCH_HEAD. I tested this locally, and the PR branches are cut from master I believe it should work


    Read full article from List all files changed in a pull request in Git/GitHub - Stack Overflow


    Incompatibility with mockito 1.10.9 and 1.10.10 · Issue #544 · powermock/powermock · GitHub



    Incompatibility with mockito 1.10.9 and 1.10.10 · Issue #544 · powermock/powermock · GitHub

    powermock 1.6.2 with mockito 1.10.19 works for me, too.

    Read full article from Incompatibility with mockito 1.10.9 and 1.10.10 · Issue #544 · powermock/powermock · GitHub


    couchbase - PowerMockito not working : -java.lang.NoClassDefFoundError: org/mockito/internal/creation/CglibMockMaker - Stack Overflow



    couchbase - PowerMockito not working : -java.lang.NoClassDefFoundError: org/mockito/internal/creation/CglibMockMaker - Stack Overflow

    It turns out that PowerMockito 1.5.X version is broken when used with mockito 1.10.9

    Therefore changing the version to 1.6.X works for me. This link helped me.


    Read full article from couchbase - PowerMockito not working : -java.lang.NoClassDefFoundError: org/mockito/internal/creation/CglibMockMaker - Stack Overflow


    41. Testing



    41. Testing

    Spring Boot provides a number of utilities and annotations to help when testing your application. Test support is provided by two modules; spring-boot-test contains core items, and spring-boot-test-autoconfigure supports auto-configuration for tests.

    Most developers will just use the spring-boot-starter-test 'Starter' which imports both Spring Boot test modules as well has JUnit, AssertJ, Hamcrest and a number of other useful libraries.

    41.1 Test scope dependencies

    If you use the spring-boot-starter-test 'Starter' (in the test scope), you will find the following provided libraries:

    • JUnit — The de-facto standard for unit testing Java applications.
    • Spring Test & Spring Boot Test — Utilities and integration test support for Spring Boot applications.
    • AssertJ — A fluent assertion library.
    • Hamcrest — A library of matcher objects (also known as constraints or predicates).
    • Mockito — A Java mocking framework.
    • JSONassert — An assertion library for JSON.
    • JsonPath — XPath for JSON.

    Read full article from 41. Testing


    8 Awesome Google Assistant Tricks You Must Try (2017) - XiaomiToday



    8 Awesome Google Assistant Tricks You Must Try (2017) - XiaomiToday

      So, you've got Google Assistant on your phone. Now what? Google Assistant is a very powerful tool and now it is the new name for the personalized voice assistant. There are lots of awesome stuff which you can do without even touching your Android device, but not all uses are aware with true potential of google assistant and that's exactly what i am going to show you guy's. So today i am going to show you some really useful tricks and commands which will definitely improve your Android experience and make your life simpler. Excited? So let's get started Video Showing all the Tricks in Action (Recommended) Checkout My YouTube Channel For More Videos Like this 1- Say 'OK Google' to unlock device Now how we normally Unlock our android devices,hmm i guess you will say by using pin, pattern or finger print. But do you know with the help of google assistant you can now unlock your device without even touching it. By Just adding your voice to "Trusted voice" So now when you say "Ok Google,

    Read full article from 8 Awesome Google Assistant Tricks You Must Try (2017) - XiaomiToday


    Padcom's blog: Code coverage and Enum types



    Padcom's blog: Code coverage and Enum types

    I admit that the actual value of this test is minimum but the real reason to do that is to allow yourself the luxury to always react on the drop of coverage below 100% instead of manually checking every time if what's missing is really something we don't care about.

    Read full article from Padcom's blog: Code coverage and Enum types


    java - How to make Sonar ignore some classes for codeCoverage metric? - Stack Overflow



    java - How to make Sonar ignore some classes for codeCoverage metric? - Stack Overflow

    At the time of this writing (which is with SonarQube 4.5.1), the correct property to set is sonar.coverage.exclusions, e.g.:

    <properties>      <sonar.coverage.exclusions>foo/**/*,**/bar/*</sonar.coverage.exclusions>  </properties>

    This seems to be a change from just a few versions earlier. Note that this excludes the given classes from coverage calculation only. All other metrics and issues are calculated.

    In order to find the property name for your version of SonarQube, you can try going to the General Settings section of your SonarQube instance and look for the Code Coverage item (in SonarQube 4.5.x, that's General Settings → Exclusions → Code Coverage). Below the input field, it gives the property name mentioned above ("Key: sonar.coverage.exclusions").


    Read full article from java - How to make Sonar ignore some classes for codeCoverage metric? - Stack Overflow


    Filtering options for coverage analysis · Issue #15 · jacoco/jacoco · GitHub



    Filtering options for coverage analysis · Issue #15 · jacoco/jacoco · GitHub

    @t1 Except anylysis of the cases (see wiki) we're not working on this. Also

    I assume the main work would be to transport the config to the agent

    Actually filtering should happen at analysis time. Therefore the agent does not need any parameters for filtering.

    From my point of view the main work is to efficiently match bytecode patterns and design an API that allows to hook filters into the analysis process. Any clever idea is welcome here!


    Read full article from Filtering options for coverage analysis · Issue #15 · jacoco/jacoco · GitHub


    java - SonarQube does not recognize some Lombok annotations - Stack Overflow



    java - SonarQube does not recognize some Lombok annotations - Stack Overflow

    You can configure Lombok to generate @SuppressFBWarnings on generated code. Possible, you can configure JaCoCo to listen to that annotation. Unfortunately, @javax.annotation.Generatedhas retention source, so that's no use for you.


    Read full article from java - SonarQube does not recognize some Lombok annotations - Stack Overflow


    sonarqube - Sonar - Ignore Lombok code via custom annotation - Stack Overflow



    sonarqube - Sonar - Ignore Lombok code via custom annotation - Stack Overflow

    There is currently no easy way to exclude issues raised by the SonarQube rules from the SonarQube Java Analyzer, except from using approaches described in the "Narrowing the focus" documentation you quote.

    Now, we introduced recently the concept of issue filters in the SonarQube Java Analyzer. This mechanism is at the moment only used internally to exclude issues raised by rules at analysis time, based on specific criteria.

    We plan to extends this mechanism in order to allow users to implements their own custom issue filters, the same way custom rules can be implemented. This approach would cover your case and allow you to filter any rules on code annotated with your custom annotation. This new feature will be handled in the following JIRA ticket: SONARJAVA-1761


    Read full article from sonarqube - Sonar - Ignore Lombok code via custom annotation - Stack Overflow


    Pelosi: Trump budget a ‘slap in the face’ | TheHill



    Pelosi: Trump budget a 'slap in the face' | TheHill

    By Mike Lillis - 03/16/17 12:15 PM EDT 38   House Minority Leader Nancy Pelosi (D-Calif.) hammered the Trump administration's new budget proposal on Thursday, framing the president's federal spending blueprint as an immoral demolition of government that's doomed in Congress. "I don't see how this budget can survive the light of day," Pelosi said during a press briefing in the Capitol. "This budget is really a slap in the face of the future." Unveiled earlier in the day, Trump's 2018 budget outline attempts to make good on the president's campaign promise to boost the military and border security efforts while dramatically shrinking domestic programs across almost all other agencies. The proposed reductions include a 31 percent cut to the Environmental Protection Agency, 28 percent to the State Department, 18 percent to the Health and Human Services Department and 16 percent to the Army Corps of Engineers.

    Read full article from Pelosi: Trump budget a 'slap in the face' | TheHill


    Jackson Exceptions - Problems and Solutions | Baeldung



    Jackson Exceptions - Problems and Solutions | Baeldung

    In this tutorial, we'll go over the most common Jackson Exceptions – the JsonMappingException and UnrecognizedPropertyException.

    Finally – we'll briefly discuss Jackson no such method errors.


    Read full article from Jackson Exceptions - Problems and Solutions | Baeldung


    Avocado Con Heads to SF This Weekend, Makes Your Dreams Come True - 7x7 Bay Area



    Avocado Con Heads to SF This Weekend, Makes Your Dreams Come True - 7x7 Bay Area


    Read full article from Avocado Con Heads to SF This Weekend, Makes Your Dreams Come True - 7x7 Bay Area


    GitHub - linux-china/spring-boot-starter-httpclient: Spring Boot Starter for HttpClient



    GitHub - linux-china/spring-boot-starter-httpclient: Spring Boot Starter for HttpClient

  • HttpClient线程安全吗? HttpClient implementations are expected to be thread safe. It is recommended that the same instance of this class is reused for multiple request executions.

  • 我用Commons HttpClient 3.x挺好的,为何换到http components上? Http Components是 commons-httpclient的替代者,建议使用http components


  • Read full article from GitHub - linux-china/spring-boot-starter-httpclient: Spring Boot Starter for HttpClient


    EclEmma - Using the Coverage View



    EclEmma - Using the Coverage View

    The Coverage view automatically appears when a new coverage session is added or can manually opened from the Window → Show View menu in the Java category. It shows coverage summaries for the active session.


    Read full article from EclEmma - Using the Coverage View


    Collapse/Expand files in the Files Changed view of a Pull Request · Issue #514 · isaacs/github



    Collapse/Expand files in the Files Changed view of a Pull Request · Issue #514 · isaacs/github

    For userscript lovers (Greasemonkey or Tampermonkey users), my Github Notifications Dropdown script includes this feature as an extra.

    The feature only activates on a fresh page load, so you may need to reload the page if you navigated there from within the Github site.

    For non-userscript lovers, the Static Bookmarklet from here might let you load the feature when you need it.


    Read full article from Collapse/Expand files in the Files Changed view of a Pull Request · Issue #514 · isaacs/github


    Storing credentials failed in fetch using EGIT - Stack Overflow



    Storing credentials failed in fetch using EGIT - Stack Overflow

    I forced with this problem last 2 months, because accepted answer didn't worked for me.

    But chrismarx comment worked!

    Simply go : Preferences > General > Security > Secure Storage > Contents and delete everything.

    Worked for me:)


    Read full article from Storing credentials failed in fetch using EGIT - Stack Overflow


    Eclipse Community Forums: EGit / JGit » [Https] Can't save the password.



    Eclipse Community Forums: EGit / JGit » [Https] Can't save the password.

    hit the same problem and found that I had OS X Keystore Integration switched on in
    "Preferences > General > Security > Secure Storage". Switching off the OS X keystore
    integration fixed the problem. Also deleting the secure store and recreating a new one
    worked also when OS X keystore integration is switched on. Maybe there is a way to corrupt
    the secure store in terms of its integration to the operating system's keyring. It seems
    not using the native keyring integration or recreating a fresh new secure store can
    workaround this problem.

    Read full article from Eclipse Community Forums: EGit / JGit » [Https] Can't save the password.


    password protection - Eclipse secure storage - Stack Overflow



    password protection - Eclipse secure storage - Stack Overflow

    To disable the master password prompt you have to specifiy a file containing the password with -eclipse.password, see Eclipse SDK Help and Bug 241223.

    The complete procedure is as follows (this is on Linux, on Windows it should work as well if you change the paths):

    1. Exit Eclipse
    2. Delete the directory ~/.eclipse/org.eclipse.equinox.security
    3. Create a text file containing your master password, e.g. echo "secret" > ~/.eclipse/master
    4. Add to the very top of eclipse.ini, found in the Eclipse program directory (as two lines, don't combine into one)

      -eclipse.password  /home/user/.eclipse/master

    Read full article from password protection - Eclipse secure storage - Stack Overflow


    SonarSource Blog » Eating The Dog Food… In Public



    SonarSource Blog » Eating The Dog Food… In Public

    At SonarSource, we've always eaten our own dog food, but that hasn't always been visible outside the company. I talked about how dogfooding works at SonarSource a couple years ago. Today, the process is much the same, but the visibility is quite different.

    When I wrote about this in 2015, we used a private SonarQube server named "Dory" for dogfooding. Every project in the company was analyzed there, and it was Dory's standards we were held to. Today, that's still the case, but the server's no longer private, and it's no longer named "Dory".


    Read full article from SonarSource Blog » Eating The Dog Food… In Public


    java - Exclude methods from code coverage with Cobertura - Stack Overflow



    java - Exclude methods from code coverage with Cobertura - Stack Overflow

    You can exclude classes from instrumentation. Then they should not appear on reports. See exclude statements below.

    You can also ignore calls to some methods. See ignore statement below.

    If you are using maven, see maven plugin manual.

        <configuration>        <instrumentation>          <ignores>            <ignore>com.example.boringcode.*</ignore>          </ignores>          <excludes>            <exclude>com/example/dullcode/**/*.class</exclude>            <exclude>com/example/**/*Test.class</exclude>          </excludes>        </instrumentation>      </configuration>

    Read full article from java - Exclude methods from code coverage with Cobertura - Stack Overflow


    Narrowing the Focus - SonarQube Documentation - SonarQube



    Narrowing the Focus - SonarQube Documentation - SonarQube

    If SonarQube's results aren't relevant, developers will push back on using it. That's why configuring precisely what to analyze for each project is a very important step. Doing so allows you to remove noise, like the issues and duplications marked on generated code, or the issues from rules that aren't relevant for certain types of objects.

    SonarQube gives you several options for configuring exactly what will be analyzed. You can

    • completely ignore some files or directories
    • exclude files/directories from Issue detection (specific rules or all of them) but analyze all other aspects
    • exclude files/directories from Duplication detection but analyze all other aspects
    • exclude files/directories from Coverage calculations but analyze all other aspects

    You can make these changes globally or at a project level. At both levels, the navigation path is the same: Administration > General Settings > Analysis Scope.


    Read full article from Narrowing the Focus - SonarQube Documentation - SonarQube


    Tutorial: unit testing in Eclipse with moreUnit plugin | Gualtiero Testa



    Tutorial: unit testing in Eclipse with moreUnit plugin | Gualtiero Testa

    Eclipse Kepler, even in the Java EE Developers edition, does not include a good enough support for automatic tests development. Both NetBeans and IntelliJ have superior native support for testing. For example, if you rename one class, Eclipse does not rename its test class.


    Read full article from Tutorial: unit testing in Eclipse with moreUnit plugin | Gualtiero Testa


    subclass-and-override vs partial mocking vs refactoring | monkey island



    subclass-and-override vs partial mocking vs refactoring | monkey island

    Attention all noble mockers and evil partial mockers. Actually… both styles are evil :) Spy, don't mock… or better: do whatever you like just keep writing beautiful, clean and non-brittle tests.

    Let's get to the point: partial mocking smelled funny to me for a long time. I thought I didn't need because frankly, I haven't found a situation where I could use it.

    Until few days ago when I found a place for it. Did I just come to terms with partial mocks? Maybe. Interestingly, partial mock scenario seems to be related with working with code that we don't have full control of…

    I've been hacking a new feature for mockito, an experiment which suppose to enhance the feedback from a failing test. On the way, I encountered a spot where partial mocking appeared handy. I decided to code the problem in few different ways and convince myself that partial mocking is a true blessing.


    Read full article from subclass-and-override vs partial mocking vs refactoring | monkey island


    Target.com: DEEP Discounts on Graco Baby Swings, Car Seats & More – Hip2Save



    Target.com: DEEP Discounts on Graco Baby Swings, Car Seats & More – Hip2Save

    Latest Deals: Popular Stores: Mar 12, 2017 @ 1:50 PM MDT The links in the post below may be affiliate links. Read the full disclosure . Through March 18th, Target.com is offering up an extra 20% off select Graco items including Gear, Strollers, Car Seats and more – the price reflects the discount. Even sweeter, through March 18th, use code GRACO to score an additional 5% off select Graco purchases! Note that the prices on these items may vary depending on the color or style you choose. Be sure to select the colors or styles listed below to get the lowest price. Here are just a few of the deals you can score… Only $15.57 with code GRACO Only $44.84 with code GRACO Only $54.71 with code GRACO You may be able to opt for free in-store pickup (if available near you). Otherwise, shipping is free on orders of $25 or more. OR – if you're a Target REDcard holder , you'll get FREE shipping on ANY size order and an additional 5% off your purchases! Share Save Headed to Target?

    Read full article from Target.com: DEEP Discounts on Graco Baby Swings, Car Seats & More – Hip2Save


    JacksonFeatureBiDirReferences - FasterXML Wiki



    JacksonFeatureBiDirReferences - FasterXML Wiki

    Annotations are:

    • @JsonManagedReference is the "forward" part of reference: one that gets serialized normally, and handling of which triggers back-linkage for the other reference

      • Annotated property can be a bean, array, Collection (List, Set) or Map type, and it must be a bean property (handled by a property of type serialized using BeanSerializer

    • @JsonBackReference is the "back" part of reference: it will be omitted from serialization, and re-constructed during deserialization of forward reference.

      • Annotated property must be of bean type

    These annotations can be used for:

    * Methods (getters and setters) * Fields

    but not for types (classes) or constructor arguments.

    Annotations take optional "name" parameter; if omitted default name is used. Name is needed to allow multiple reference pairs for one bean type.


    Read full article from JacksonFeatureBiDirReferences - FasterXML Wiki


    Keenformatics: How To Solve JSON infinite recursion Stackoverflow (with Spring and Jackson annotations)



    Keenformatics: How To Solve JSON infinite recursion Stackoverflow (with Spring and Jackson annotations)

    Coding in Spring 3 with JPA and Jackson is supposed to semplify your life, sparing you from writing thousand lines of code. Sometimes, though, you'll notice that all these annotations hide the real core of your application, preventing you to really understand what your code is doing (and what it is supposed to do).
    This means that if you want to develop a good java application or website, you need to carefully read the docs or (more realistically) you need to understand how to read your error logs and combine them with a well-written search engine query.

    This is what I had to do when I first met the problem I'm about to write about.


    Read full article from Keenformatics: How To Solve JSON infinite recursion Stackoverflow (with Spring and Jackson annotations)


    Coming up in Cassandra 1.1: Row Level Isolation | DataStax



    Coming up in Cassandra 1.1: Row Level Isolation | DataStax

    While Apache Cassandra does not provide ACID properties (no complex transactions support), it still provides some useful atomicity guarantees.

    More precisely, Cassandra has always provided row-level atomicity of batch mutations. This means that multiple batched writes to the same row are applied by nodes atomically. When doing

        UPDATE Users
        SET login='eric22' AND password='f3g$dq!'
        WHERE key='550e8400-e29b-41d4-a716-446655440000'

    Cassandra guarantees that the changes to login and password are either both applied or none are.

    However, up to Cassandra 1.0, the isolation of such an update was not guaranteed. In other words, it is possible (during a very brief moment during the update) that a read like


    Read full article from Coming up in Cassandra 1.1: Row Level Isolation | DataStax


    California to give the green light to truly driverless cars | SavannahNow



    California to give the green light to truly driverless cars | SavannahNow

    Featured By California to give the green light to truly driverless cars FILE - In this May 13, 2015, file photo, Google's new self-driving prototype car is introduced at the Google campus in Mountain View, Calif. Cars with no steering wheel, no pedals and nobody at all inside could be driving themselves on California roads by the end of 2017, under proposed new rules that would give a powerful boost to the technology from the nation's most populous state. (AP Photo/Tony Avelar, File) FILE - This May 18, 2016, file photo shows a Google self-driving car on display at Google's I/O conference in Mountain View, Calif. Cars with no steering wheel, no pedals and nobody at all inside could be driving themselves on California roads by the end of 2017, under proposed new rules that would give a powerful boost to the technology from the nation's most populous state. (AP Photo/Eric Risberg, File) LOS ANGELES — Cars with no steering wheel,

    Read full article from California to give the green light to truly driverless cars | SavannahNow


    HURRY! Fisher-Price Thomas the Train Santa’s Workshop Wooden Railway $25.52 Shipped – Hip2Save



    HURRY! Fisher-Price Thomas the Train Santa's Workshop Wooden Railway $25.52 Shipped – Hip2Save

    Popular Stores: Latest Rewards: Mar 11, 2017 @ 8:15 AM MST Be quick… this won't last long! Hurry on over to Amazon.com where you can score this Thomas the Train Wooden Railway Santa's Workshop Express Set for ONLY $25.52 (regularly $108) when you clip the $20 off coupon! This is an AWESOME price and would be great to stow away for Christmas time! AND, you can also score this Fisher-Price Thomas & Friends Wooden Railway Christmas Crossings  for ONLY $9.88 (regularly $34.99) after you clip the $10 off coupon! Get free shipping on a $35 order, a $25 Book order OR snag free 2-day shipping on ANY size order with Amazon Prime (you can sign up for a FREE 30-day trial here ). OR, choose free no-rush shipping and get a $5.99 credit for Prime Pantry OR a $1 credit for eBooks & more – may vary by user. (Thanks, Aime!) Looking for Amazon deals? Megan says: I got one!!!! Thank you so much! This is going in the gift closet. Thank you ladies for all of your hard work!

    Read full article from HURRY! Fisher-Price Thomas the Train Santa's Workshop Wooden Railway $25.52 Shipped – Hip2Save


    Michael Flynn Apparently Paid Retired-FBI Agent Embroiled in Clinton Email Scandal | Law News



    Michael Flynn Apparently Paid Retired-FBI Agent Embroiled in Clinton Email Scandal | Law News

    by Alberto Luperon | 1:22 pm, March 11th, 2017   Michael Flynn appears to have paid consultancy fees to the same FBI agent who claimed the State Department tried to bury an email connected to Hillary Clinton and Benghazi. That became apparent in a March 7 filing with the Department of Justice: Flynn registered his firm, the Flynn Intel Group, as a foreign agent of Turkey—work he did during the presidential campaign. An Al-Monitor reporter highlighted that detail after a Daily Caller report from Thursday. according to his FARA filings, Flynn paid the ex FBI official Brian McCauley $28,000 btw Oct & Dec. 5 2016. https://t.co/V84H5RqHON 2/ Flynn paid McCauley $5k Oct.4, $3k Oct.13, $5k Nov.14, and $15k Dec.5, after he'd already been designated Trump NSA https://t.co/V84H5RqHON The agent, Brian McCauley, told The New York Times in October that a State Department official, Patrick Kennedy, asked him to classify an email connected to the 2012 attack on Benghazi, Libya.

    Read full article from Michael Flynn Apparently Paid Retired-FBI Agent Embroiled in Clinton Email Scandal | Law News


    S3ObjectInputStream skip is inefficient · Issue #797 · aws/aws-sdk-java



    S3ObjectInputStream skip is inefficient · Issue #797 · aws/aws-sdk-java

    I working on implementing S3 download framework with resume support. When using S3ObjectInputStream while downloading an object, I had to skip bytes in order to support resume of previously broken downloads. Calling skip() on S3ObjectInputStream takes forever (if the file is big) & it seems it is simply using the default skip() implementation. Here is what documentation says about default implementation:

    The skip method of this class creates a byte array and then repeatedly reads into it until n bytes have been read or the end of the stream has been reached. Subclasses are encouraged to provide a more efficient implementation of this method. For instance, the implementation may depend on the ability to seek.


    Read full article from S3ObjectInputStream skip is inefficient · Issue #797 · aws/aws-sdk-java


    s3 integrity exception when skipping content · Issue #232 · aws/aws-sdk-java



    s3 integrity exception when skipping content · Issue #232 · aws/aws-sdk-java

    Skipping from an inputstream from S3Object.getObjectContent() results in an AmazonClientException when reading the content.


    Read full article from s3 integrity exception when skipping content · Issue #232 · aws/aws-sdk-java


    com.amazonaws.AmazonClientException: Unable to verify integrity of data download · Issue #62 · awslabs/aws-sdk-android-samples



    com.amazonaws.AmazonClientException: Unable to verify integrity of data download · Issue #62 · awslabs/aws-sdk-android-samples

    • the ISP alters ETag header for some reason.
    • the SDK retries due to bad network connection and causes MD5 incorrectly computed. Is the network reliable?
    • when uploading the file, someone overwrites the ETag value. Unlikely though, otherwise downloading this file in any ISP would have the same issue.
    • some unknown bug in the SDK

    Would you please get the file from the device and compute its MD5? It should match the value in S3.


    Read full article from com.amazonaws.AmazonClientException: Unable to verify integrity of data download · Issue #62 · awslabs/aws-sdk-android-samples


    com.amazonaws.AmazonClientException: Unable to verify integrity of data download · Issue #62 · awslabs/aws-sdk-android-samples



    com.amazonaws.AmazonClientException: Unable to verify integrity of data download · Issue #62 · awslabs/aws-sdk-android-samples

    S3 client checks content MD5 against its source's eTag. If for some reason, this validation fails, the downloaded data may be bogus. To skip the MD5 check, you can set system property com.amazonaws.services.s3.disableGetObjectMD5Validation.

    Read full article from com.amazonaws.AmazonClientException: Unable to verify integrity of data download · Issue #62 · awslabs/aws-sdk-android-samples


    Petition · GitHub, Inc.: Add voting functionality for GitHub issues · Change.org



    Petition · GitHub, Inc.: Add voting functionality for GitHub issues · Change.org

    The absence of this crucial feature results in regular comment spam and has become a regular source of frustration for open source contributors and project admins. Every other major bug tracking and issue management system has voting functionality that helps users express their preferences and project admins manage development priorities -- in a simple, transparent and non-intrusive way.


    Read full article from Petition · GitHub, Inc.: Add voting functionality for GitHub issues · Change.org


    Add explicit `+1` feature for issues that isn't a comment · Issue #9 · isaacs/github



    Add explicit `+1` feature for issues that isn't a comment · Issue #9 · isaacs/github

    Often people post github issue comments like 👍 just so that they can get notified when there are updates, and to indicate that they are also interested in an issue.

    It'd be nice if they could just click a thing to do that, without posting a comment that emails everyone else uselessly. It could even put the 👍 comment on the page for cute factor if you feel that's important, but without emailing everyone.

    For bonus points, let the project maintainers sort the issues list by the number of votes.

    Then the 👍 behavior would be useful, rather than spammy.


    Read full article from Add explicit `+1` feature for issues that isn't a comment · Issue #9 · isaacs/github


    Think Twice Before Using Java 8 Parallel Streams - DZone Java



    Think Twice Before Using Java 8 Parallel Streams - DZone Java

    There are only two options how to make sure that such thing will never happen. The first is to ensure that all tasks submitted to the common fork-join pool will not get stuck and will finish in a reasonable time. But it's easier said than done, especially in complex applications. The other option is to not use parallel streams and wait until Oracle allows us to specify the thread pool to be used for parallel streams.


    Read full article from Think Twice Before Using Java 8 Parallel Streams - DZone Java


    Aspect-Oriented Programming in Spring Boot Part 3: Setting up AspectJ Load-Time Weaving - www.credera.com



    Aspect-Oriented Programming in Spring Boot Part 3: Setting up AspectJ Load-Time Weaving - www.credera.com

    This is the final part in a three-part series on aspect-oriented programming (AOP) with Spring Boot, which covers how to set up AspectJ load-time weaving (LTW). Part one covers how to make your own aspect, and part two details the differences between using Spring for AOP and using AspectJ.

    Getting AspectJ load-time weaving working in Spring Boot can be a tricky proposition. Unlike Spring proxies, which Spring Boot uses to support AOP out of the box using the spring-boot-starter-aop dependency (mvnrepository link), AspectJ requires additional configuration across several areas. There are four main components: adding AspectJ-specific configuration, configuring Spring Boot to recognize AspectJ, setting up dependencies, and passing the correct JVM arguments whenever the code executes.


    Read full article from Aspect-Oriented Programming in Spring Boot Part 3: Setting up AspectJ Load-Time Weaving - www.credera.com


    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