Profile

Cover photo
Jeffery yuan
Works at Sony
Attended Tongji University
Lives in San Francisco
2,729 followers|997,531 views
AboutPostsCollectionsPhotosVideos+1'sReviews

Stream

Jeffery yuan
owner

Big Data/ML/Search/Distributed System  - 
 
Writing and Debugging GO - using VS Code
X. Install Visual Studio Code

X.Install Go extension
https://marketplace.visualstudio.com/items?itemName=lukehoban.Go (cmd-shift-p) select Install Extension and choose Go

To debug go:
Install https://github.com/derekparker/delve/blob/master/Documentation/installation/osx/install.md
— kind of complex, but it’s worth

Optional: Debugging
Add debug args:
"args": ["args here”]

Optional:
Install go-plus Atom plugin
Which can do-
go format
etc..


1
Add a comment...

Jeffery yuan
owner

Feature Requests/Random Thoughts  - 
 
Spring Security - Build Multi-Tenant Application
http://lifelongprogrammer.blogspot.com/2016/06/spring-security-build-multi-tenant.html

Spring Security: Integrate In-Memory Authentication for Test Automation
http://lifelongprogrammer.blogspot.com/2016/04/spring-security-integrate-in-memory.html
Use Case To automate test of our web services apis, we need add test users in test environments. The Solution We configure Spring Security AuthenticationManager: first add in-memory DaoAuthenticationProvider in test enviro...
1
Add a comment...

Jeffery yuan

Shared publicly  - 
 
Tell your friends about Google Express. They'll get $15 to spend on their first order. You'll get a $15 credit for each valid referral.*
https://google.com/express/invite/FDKGLE39K

1
Dan Faerch's profile photoIrreverent Monk's profile photo
5 comments
 
I got a blank page in Safari on iOS and Mac. When I go to the express page directly, that's when I see what you see
Add a comment...

Jeffery yuan

Shared publicly  - 
 
How the Uber Map Services Team thought about building our most advanced Routing Engine to date, improving ETAs and powering products like uberPOOL.
1
Add a comment...

Jeffery yuan
owner

IDE/Programming Tools  - 
 
Spell Check in Eclipse
http://lifelongprogrammer.blogspot.com/2016/02/eclipse-tips-trick-2016.html
Eclipse default spell checker can detect spelling error in java doc, and plain text file.
Go to Window > Preferences > General > Editors > Text Editors > Spelling, to enable/disable or change the settings.
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Freference%2Fref-36.htm

To detect spelling error in names of interfaces, classes, methods, constants, use jdt-spelling
http://marketplace.eclipse.org/content/jdt-spelling
https://github.com/stuarthendren/jdt.spelling

We can use quick fix(cmd+1) to fix spelling error or add word to dictionary.



Quick Access -- For example, to change a string to upper case or lower case, and you don't know the short cuts, then just select the text, type "upper" or "lower" in quick access text box. -- Open specific view, preference, ...
1
Add a comment...

Jeffery yuan
owner

J2SE/J2EE/Scala  - 
What strategies are people using to UnitTest code that is non-deterministic? MockRandomizer -- Trick your random number generator into generating predictable numbers (such as 0,1,2,3...) DontChangeTheCodeTest -- If you absolutely can't solve the problem, there's always this resort.
1
Add a comment...

Jeffery yuan
owner

Feature Requests/Random Thoughts  - 
 
Postman Post/Put/Delete doesn't work - 403 forbidden
https://github.com/postmanlabs/postman-app-support/issues/2126
Thanks for building this useful tool. Found today that Post/Put/Delete doesn't work - it returns 403 forbidden. This problem happens in multiple setup - mine, and 3 other coworkers. Postman doe...
1
Add a comment...

Jeffery yuan
owner

IDE/Programming Tools  - 
 
Bug 496140 - Change "skip all breakpoints" command to "toggle all breakpoints"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=496140
Some people like to use shortcuts(keyboard) instead of finding command in menu or toolbar. Eclipse define one command "skip all breakpoints", but no "enable all breakpoints". We can just change "skip all breakpoints" command to "toggle all breakpoints". Now we can map "toggle all breakpoints" to ...
1
Add a comment...

Jeffery yuan
owner

Big Data/ML/Search/Distributed System  - 
 
Solr - Create custom data transformer to remove fields
Create custom data transformer to remove fields and remove field from json data in Solr.
http://lifelongprogrammer.blogspot.com/2016/06/solr-create-custom-data-transformer-to-remove-fields.html
Overview Create custom data transformer to remove fields and remove field from json data in Solr. The Problem We store campaign message in Solr. One type of campaign is voucher. We return this user's voucher and other data ...
1
Add a comment...

Jeffery yuan
owner

Linux/Mac/ChromeOS/Security  - 
 
Linux I/O Redirection
exec 6<&0 # Link file descriptor #6 with stdin.
# Saves stdin.
exec < data-file # stdin replaced by file "data-file"

read a1 # Reads first line of file "data-file".
read a2 # Reads second line of file "data-file."

echo "Following lines read from file."
echo $a1
echo $a2

exec 0<&6 6<&-
# Now restore stdin from fd #6, where it had been saved,
#+ and close fd #6 ( 6<&- ) to free it for other processes to use.
# <&6 6<&- also works.
http://www.tldp.org/LDP/abs/html/io-redirection.html
There are always three default files [1] open, stdin (the keyboard), stdout (the screen), and stderr (error messages output to the screen). These, and any other open files, can be redirected. Redirection simply means capturing output from a file, command, program, script, or even code block ...
1
Add a comment...

Jeffery yuan
owner

Feature Requests/Random Thoughts  - 
 
Building Chrome Extension to Find All On Sale Products in Google Express
http://lifelongprogrammer.blogspot.com/2016/05/building-chrome-extension-to-find-on-sale-products.html
The Problem Google express does have a page to show on-sale products from one store, like this one https://www.google.com/express/u/0/search?oc=on_sale&m=9090995, but for unknown reason, it only lists a very small part of all...
1
Add a comment...

Jeffery yuan
owner

J2SE/J2EE/Scala  - 
What's wrong in following code? The following code tries to submit all query task to threadpool, but it fails to do that - It only reads part of data. private List<Future<List<T>>> findAllAsyncImpl(final SolrParams params, fi...
1
Add a comment...
Jeffery's Collections
People
Have him in circles
2,729 people
James Francis Cray's profile photo
Jon Owings's profile photo
lauren kriewaldt's profile photo
Toure Dunnon's profile photo
WomELLE Corp's profile photo
Katie Cunningham's profile photo
The Roslan's profile photo
Jason Rundell's profile photo
Roxanne Wei's profile photo
Work
Occupation
Software Engineer
Skills
Java, Linux, Web Development(Jquery, Bootstrap, Javascript, CSS), Solr/Lucene/Nutch, Hadoop, Python, C#, Shell(Bash and bat), Google App Engine, Android, Eclipse(RCP, Plugin Development), Database(MySQL)
Employment
  • Sony
    Senior Software Engineer, 2015 - present
    Bug Data: Spark/Cassandra/Lucene/Solr
  • CommVault Systems
    Senior Software Engineer, 2012 - 2015
    Using/Extending Solr/Lucene for enterprise search. Using/Extending Nutch2/Solr for website crawle and search.
  • EMC Corporation
    Senior Software Engineer, 2011 - 2012
    Java Web Services and CMS
  • IBM
    Software Engineer, 2008 - 2011
    Storage, J2SE, Python
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
San Francisco
Previously
New Jersey
Story
Tagline
Senior Developer, Tech passionate, Geek, Dreamer, I am nobody famous nor rich, just like coding and yearn for freedom
Introduction
I am interested in Linux, Java, Solr, Search, Algorithm, am contributing to 
Bragging rights
I consider myself well versed in these skills: Java, Web development, Linux, MySQL, interested in algorithm, high-level design.
Collections Jeffery is following
View all
Education
  • Tongji University
    Software Engineering, 2005 - 2008
Basic Information
Gender
Male
Looking for
Friends, Networking
Relationship
Married
Jeffery yuan's +1's are the things they like, agree with, or want to recommend.
YouTube Loop
googlesystem.blogspot.com

Back in 2014, I found a way to loop YouTube videos using a feature of the HTML5 player. It looks like YouTube added "loop" as a standard fea

List of Known Scalable Architecture Templates
srinathsview.blogspot.com

For most Architects, "Scale" is the most illusive aspect of software architectures. Not surprisingly, it is also one of the most sort-out go

java.util.Random and java.util.concurrent.ThreadLocalRandom in multithre...
java-performance.info

This article describes performance of Java Random and ThreadLocalRandom in single and multithreaded environments.

InfoQ Videos (Beta) - Android Apps on Google Play
market.android.com

Software is changing the world and InfoQ's mission is to facilitate the spread of knowledge and innovation in professional software developm

Find the element that appears once others appears THRICE.
javabypatel.blogspot.in

Given an array of integers. All numbers occur thrice except one number which occurs once. Find the number in O(n) time &amp; constant extra spac

LeetCode – Shortest Palindrome (Java)
www.programcreek.com

Given a string S, you are allowed to convert it to a palindrome by adding characters in front of it. Find and return the shortest palindrome

Find three closest elements from given three sorted arrays - GeeksforGeeks
www.geeksforgeeks.org

Given three sorted arrays A[], B[] and C[], find 3 elements i, j and k from A, B and C respectively such that max(abs(A[i] – B[j]), abs(B[j]

Find the longest path in a matrix with given constraints - GeeksforGeeks
www.geeksforgeeks.org

Given a n*n matrix where numbers all numbers are distinct and are distributed from range 1 to n2, find the maximum length path (starting fro

Algo#1: Inorder Predecessor in Binary Tree
algorithmsgeek.blogspot.com

Inorder Predecessor value for any node X means value of node Y that comes just before node X while doing Inorder traversal. For given tree i

Algo#2: Inorder Successor in Binary Tree
algorithmsgeek.blogspot.com

Inorder Successor value for any node X means value of node Y that comes just after node X while doing Inorder traversal. For given tree in f

Lazy Propagation in Segment Tree - GeeksforGeeks
www.geeksforgeeks.org

Segment tree is introduced in previous post with an example of range sum problem. We have used the same “Sum of given Range” problem to expl

Introduction
www.software-architect.net

This article shows how to configure a Java JRE to use unrestricted cryptographic algorithms.

Find maximum value of Sum( i*arr[i]) with only rotations on given array ...
www.geeksforgeeks.org

Given an array, only rotation operation is allowed on array. We can rotate the array as many times as we want. Return the maximum possbile o

Exception Wrapping |
tutorials.jenkov.com

This tutorial explains what exception wrapping is in Java, and why you would use it.

Validation - Throw Exception or Return False?
tutorials.jenkov.com

This tutorial discusses whether you should throw an exception or return false (or a similar error code) when a method receives invalid metho

Logging Exceptions: Where to Log Exceptions? |
tutorials.jenkov.com

This tutorial discusses where to log an exception in your Java applications.

Pluggable Exception Handlers |
tutorials.jenkov.com

Pluggable exception handlers allow the user of an API to plugin an exception handler which converts exceptions thrown in the API to somethin

Food: GoodDecor: GoodService: Good
Public - 3 years ago
reviewed 3 years ago
nice place.
Public - 3 years ago
reviewed 3 years ago
2 reviews
Map
Map
Map