Profile

Cover photo
Yan-Fa Li
Lives in Northern California
306 followers|393,514 views
AboutPostsReviews

Stream

Yan-Fa Li

Shared publicly  - 
 
Very disappointed in HP shopping. Very deceptive online practices. They sold me a 27" monitor 2 weeks ago claiming delivery in 3 weeks.

Today I got an an email that it would likely be another month. They charged me the day of order rather than on the day it shipped. Who does that? Crappy companies with bad practices, that's who. They made 2 weeks of cash flow on my money and then wanted another 4 weeks interest free without ever shipping. What a shitty customer experience and deceptive practice.

Do not buy directly from HP. Go through Amazon or someone legitimate as they won't charge a penny until they ship. This is why they fail and continue to do so, they treat their customers like shit and wonder why no one wants their gear...
1
Add a comment...

Yan-Fa Li

Shared publicly  - 
1
Add a comment...

Yan-Fa Li

Shared publicly  - 
 
My copy of ST:NG arrived in the mail today. Well I know what I'm going to be doing for the next few months. Watched some of the first episode and it's delightfully cheesy. The restoration work is really good though. I have brexit to thank for the excellent deal from amazon.co.uk. <wink>
1
Yan-Fa Li's profile photoMax Kaehn's profile photo
4 comments
 
Thanks, but I have waaaaayyy too much to watch and read right now... maybe if I run a Star Trek campaign...
Add a comment...

Yan-Fa Li

Shared publicly  - 
 
So dorky, but I had to have a set. The fit almost perfectly into an 8x6 float frame and will go very well with my Doctor Who set :)
1
Add a comment...

Yan-Fa Li

Shared publicly  - 
 
Started playing dark souls again. The first time was confusing and difficult. But I figured out what made it tick and really enjoyed it. Restarted with a Knight this time and made it 11 levels in a couple of hours.

Knowing how things worked this time around definitely made it much more enjoyable. Also visiting the areas I was familiar with was made them less puzzle like and more about execution.

Last time I played this is was using a Radeon 4870 and it felt a lot choppier and more stilted. Now I have a 1070 and it's butter smooth and feels like putting on an old glove. All mistakes are now mine and I feel like I have more options. Let's see how far I make it this time.
1
Add a comment...

Yan-Fa Li

Shared publicly  - 
 
Musings on Go Context

As of golang v1.7 google has integrated Context deeply into it's standard library APIs. Context is a deceptively simple but sophisticated idea. For any type of long running action, you can attach a timeout/deadline and/or values that are to be transmitted across logical boundaries in a portable manner.

For example, every HTTP Request or Response now has a default Context. This can be used to configure a timeout and automatically cancel the request or response if they take too long freeing up resources.

This is so useful, it's been wired into all of go's built in network APIs and their command execution library, making it the default way to write code which can be cancelled. This is normally a genuinely hard problem in many languages/runtimes.

That's not all, you can also stash values in one method and retrieve them later in an arbitrary later method that is invoked subsequently. For example, in HTTP servers, it's common to structure the code as a series of middleware components that decorate the HTTP request and add cross cutting concerns like user identities after authentication. This is now very easy to do with a Context. In your authentication middleware, you can validate the credential and then add a user object to the request which can then be read by later middleware or the destination handler in a loosely coupled way.

At work, I maintain a loose collection of libraries and glue code which in composite represent our REST APIs. Previously we'd been using gorilla/context; a solid pre-1.7 way to pass values between different middleware handlers in a HTTP server. As an intellectual exercise I thought I'd try and see how hard it would be to remove gorilla/context and replace it with google Context.

As it turned out it was beautifully easy. Google Context is very pleasant to use and while it wasn't quite a drop-in replacement, it was quite close. I'm also pleased how much cleaner the new solution feels. The go team always strikes me as thoughtful and pragmatic, one of the reasons I really love go, and this is just more evidence of that careful and well considered approach to software engineering.
2
Add a comment...

Yan-Fa Li

Shared publicly  - 
 
Switching to golang 1.7 was a bit awkward for me for two reasons. 1 I was using context which has now been promoted to stdlib. 2. I was using vendoring via govendor and at first it didn't seem like it would work.

To prevent other issues, I had disabled go1.7 support in govendor, so to make it work I had to:

1. remove the go1.7 flag from ignore
2. remove and re-add the context and net/http2 libraries

Then I was back in business. Much easier than I had expected. Good job, though I wish there had been better instructions on how to do this transition, so I'm sharing what I learned here.
1
Add a comment...

Yan-Fa Li

Shared publicly  - 
 
My massdrop PBT keycaps arrived last night. This is how they look installed. This is my first PBT double injection set.

Install went very smoothly on my KUL 87 and they definitely feel different. Going to give them a test drive for a week and see how I feel after.
1
Add a comment...

Yan-Fa Li

Shared publicly  - 
 
You probably own a set, but...

Die Hard Metal Dice: I Love These Things
http://feedproxy.google.com/~r/SchlockRSS/~3/qhFpWub7Etw/
Related Features. — RSS Feed —. —Schlock via Email—. Writing Excuses with Brandon Sanderson, Dan Wells, Mary Robinette Kowal, and Howard Tayler. Ovalkwiki - The Official Schlock Mercenary Encyclopedia. One Cobble at a Time - the official site for Sandra Tayler's writings.
2
1
Max Kaehn's profile photo
 
My current favorite set of dice are a batch of dodecahedra that are mostly numbered 1-6 twice, some of them 1-4 thrice, so they roll more freely than cubes and tetrahedra. Now I need to find some icosahedra numbered 0-9 twice and 00-90 twice...
Add a comment...

Yan-Fa Li

Shared publicly  - 
 
My Asus N66 WiFi Router finally started showing it's age and has become less reliable of late. It's lasted almost 4 years with very little drama and has been an excellent device when running Tomato USB firmware.

I replaced another Asus in November of last year with a refurbished Ubiquiti AP-Pro and it's been a trouble free and reliable piece of gear. The management platform requires a system running Java; I run it in a VM and it has improved enormously with each release.

Since I'd had such a positive experience with the AP-Pro I decided to pick up one of the new AC-Pros. It was slightly cheaper, brand new, and it supports 802.11AC.

Adding it to my network was fairly easy, firstly I plugged it into the same network as the management platform so it could be discovered and adopted by the management software. Once you do this, you can move it to the network of your choice and it will reconnect to the management platform in another subnet automatically.

Upgrading the firmware was very easy from the UI; an excellent experience. It provisioned all my existing networks onto the device automatically and was up and running in a couple of minutes.

Because I operate a split WiFi Access Point (AP) architecture, I was able to the use the UI to disable SSIDs per device; I use specific SSIDs for different parts of my home and associate devices with specific SSIDs to ensure they connect to the optimal AP.

Overall the UI is excellent and lets you achieve some fairly sophisticated configurations in a friendly and attractive interface. Ubiquiti is considered a prosumer brand, so you do have to be a slightly more technically adept customer to install and provision it, but once it's up and running it has excellent management tools and in my experience is very easy to operate and maintain.
1
Add a comment...

Yan-Fa Li

Shared publicly  - 
 
Awesome deal on a headphone which is great for people with giant heads. You can easily convert this into a headset with a V-Moda mic for a super comfy fit with great sound quality.
1
Travis Hayes's profile photoYan-Fa Li's profile photo
3 comments
 
Haha glad you are enjoying them. That's probably the 3rd pair I've sold for Philips. 😆
Add a comment...

Yan-Fa Li

Shared publicly  - 
 
How to DDOS yourself. At work we have people looking at large PCAP files all the time, and the other day people started complaining that the network was unresponsive and services were randomly failing.

Turns out one of our research staff was inspecting PCAPs in wireshark. Wireshark for reasons unknown defaults to looking up every IP address in the file on DNS, and does not rate limit the lookups. This DDOS'd the DNS infrastructure bring the network to it's knees as random stuff started failing.

Today I installed an unbound DNS cache, had the researcher re-test and problem solved. unbound DNS is awesome!
1
Add a comment...
Story
Tagline
Pragmatic Programmer
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Northern California
Previously
U.K. - Deutschland
Links
YouTube
Contributor to
Work
Occupation
Web Developer
Skills
Swiss Army Knife
Basic Information
Gender
Male
Public - a year ago
reviewed a year ago
Very fast, in and out in half an hour, including a quick oil change, recommended because I'd already hit the maintenance indicator. 30 for the oil change, 40 for the smog. I would use him again.
Public - 3 years ago
reviewed 3 years ago
Food: Very GoodDecor: GoodService: Good
Public - 3 years ago
reviewed 3 years ago
Delicious Taiyaki
Appeal: ExcellentFacilities: ExcellentService: Excellent
Public - 3 years ago
reviewed 3 years ago
24 reviews
Map
Map
Map
Really great place. They are nice, friendly and obviously take a lot of pride in their work. Rosanna is an excellent stylist.
Public - 3 years ago
reviewed 3 years ago
Disappointing nabeyaki udon. All veggies, no egg, layered flavor or tempura. One note dish.
Food: Poor - FairDecor: Very GoodService: Good
Public - 3 years ago
reviewed 3 years ago
Delicious. I ordered the Falafel plate, Greek Salad and Hummus plate for 2 adults and a child. The food was fresh and very tasty. The Falafel are not a style I've every tried before, and are really tasty and different from other Mediterranean places. The hummus was creamy and really excellent. I will definitely eat here again.
Public - 4 years ago
reviewed 4 years ago