Jun 08

Need advice for a new lens ?

DSC_5472-600A friend of mine just presented me this really crazy lenses tests and reports made by Ken Rockwell.
A particular section is about Cheapskate Lenses and of course if you read it, you will get one of them 😛

Mar 20

Unreal 4.7.3 - C++ Tutorial

Since the the release of Unreal 4.7 and above, a few modification need to be done to reproduce the 3rd Person Power-Up Game with C++.

You can get the c++ files corrected withinh this zip Unreal_4_7_3_C++_tutorialSource.

Jan 20

How to build Ceres under windows...

Note: All this junk is not required anymore :P, ceres has been patched.

 

 Ceres Solver [1] is an open source C++ library for modeling and solving large, complicated optimization problems. It is a feature rich, mature and performant library which has been used in production at Google since 2010. Ceres Solver can solve two kinds of problems.
  1. Non-linear Least Squares problems with bounds constraints.
  2. General unconstrained optimization problems.

Hopefully, it becomes easier to compile under windows than it used to be..

Start the fun to build it under windows: P

  1. Download CERES ^^, ceres-solver-1.10.0
  2. Download Eigen , Current Release 3.2.4
  3. Download Glog, glog-0.3.3
    1. Compil will fail: error C2039 std:min not member of std…
    2. => In logging.cc, #include <algorithm>
    3. In logging.cc, replace //_asm int 3 with   __debugbreak();

 

  1. Compilation should be successful in Debug and Release now, (tested with VS2013-VS2012 in X64)

 

  1. Download Gflags, use CMake, it compiles…don’t forget to run install and update Install_prefix_path, such as E:\Dev\LIB\Gflags\gflags-2.1.2\X64Release
  2. Download Suitesparse-metis-for-windows,
    1. Go there https://github.com/jlblancoc/suitesparse-metis-for-windows/releases
    2. Get the latest Release : For me it was v1.2.3, https://github.com/jlblancoc/suitesparse-metis-for-windows/archive/v1.2.3.zip
    3. SET, SUITESPARSE_INSTALL_PREFIX
    4. Configure and build

 

  1. Finally, Use Cmake on Ceres folder
    1. You can have to add missing entry like for GFlags, GFLAGS_NAMESPACE
    2. Fill all field according to the following screenshot, I did not try to configure the project by using the METIS LIBRARY
    3. ceres_a ceres_b ceres_c ceres_d

 

  1. All example projects and CERES should build then , but as mentioned some example projects required the need to add shlwapi.lib to handle this annoying error LNK2019 __imp_PathMatchSpecA
  2. => you can fix this also if you need the example by adding shlwapi.lib in the CMAKE_CXX_STANDARD_LIBRAIRIES of CERES

~GLHF

Feb 04

Whisky Analysis by .drbunsen

All websites need to start with a post... so I copy/paste this really nice study from: http://www.drbunsen.org/whisky-analysis/ , optimize your whisky bottles can also help to solve non linear problem.


 

Winter officially arrived last week when the temperature dropped to 5°F. To help fend off the cold, I started looking for a new bottle of single malt to add to my collection and provide some much needed warmth. Buying whisky is tricky business. There is tremendous variability in taste ratings, price, quality, and availability. Instead of casually browsing reviews, this year I decided to take a more systematic approach and analyze some whisky data to make an informed buying decision.

The two best single malt data sets I know of are the Malt Maniacs Matrix and the LAWhisky Society Whiskey Ratings. For my analysis, I decided to use the LA Whiskey Society ratings because they frequently do blind tasting sessions with a variety of tasters, so their data has the least bias. After cleaning up the data, I analyzed over 6000 single malt ratings from greater than 100 distilleries.

To get a sense of the data, I first generated a boxplot1 with ggplot2. The LA Whisky Society uses a grading system to rate whisky from A+ through F, which I transformed to a numerical scale to facilitate plotting. Below is the boxplot depicting score distributions for each whisky grouped by distillery. The plot is ordered by median score of each distillery.

 

distillery boxplot

distillery boxplot

I was initially surprised to see Yamazaki and Ardmore Distilleries at the top of the list. On closer inspection, the sample size for these distilleries is quite small and the whisky reviews are limited to old vintages of high quality—hence the high score bias and small interquartile ranges. Other legendary distilleries at the top of the plot such as the legendary St. Magdalene and Port Ellen were of no surprise, since they are well known to have produced some of the best single malts on the planet from the early to mid 20th century.

For my buying decision, I decided to limit my whisky purchase to bottles only from distilleries with a median score above 9. This reduced my list to possible malts to 38 distilleries and, in theory, reduced the chance of purchasing a bad whisky. I next plotted malt scores or age as a function of price to see the relationships between these variables:

correlation_whisky1

correlation_whiskyjpg

Interestingly, the relationships between age ~ price and score ~ price are definitely different.2 A linear model regressing price on age could explain about 60% of the data, while a 3rd order polynomial fit roughly the same percentage of the score ~ price data. The data indicated that as price increases, there is an approximately linear increase with age, which is correlated with a cubic increase in score.

I next further refined the malt list by examining only malts that were less than $100 and with scores greater than 9 (pink square above). This list had a large number of bottles from independent bottlers like Douglas Laing, so I further filtered the list by only examining official bottles released from actual distilleries. Malts from independent bottlers are difficult to find in the US and I prefer drinking whisky released as it was intended directly from the distillery. After filtering potential bottles with these criteria, I found 16 malts that fit my constraints:

Distillery Vintage Age Price
BenRiach 1994 12 yo $54
Bowmore 1989-1991 16 yo $80
Glendronach N/A 15 yo $75
Glenfarclas N/A 15 yo $65
Glengoyne  N/A 17 yo $70
Highland Park  N/A 18 yo $80
Highland Park N/A 21 yo $99
Lagavulin  1996 16 yo $80
Lagavulin 1995 12 yo $90
Laphroaig  1995 10 yo $45
Longrow 1995 10 yo $80
Longrow N/A 14 yo $73
Oban 1992 14 yo $76
Old Pulteney 1990 16 yo $95
Talisker N/A 18 yo $80
Talisker 1992-1993 12-13 yo DE $70

I was happy to see that four of these bottles were already in my collection (indicated by ) and that these malts are among some of my all-time favorites. Of the remaining bottles, I decided to purchase the Talisker 18 because it won the Best Single Malt Whisky In The World in 2007.

Here are my tasting notes after the first sample:

  1. Nose: Fragrant but clean; apples with subtle wafts of peat and burning leaves.
  2. Palate: Thick and oily with initial notes of apples and orange rind changing to sweet toffee and creme bruelle, ending salty with traces of iodine, cough medicine, old books, and leather.
  3. Finish: Rather long, peppery.

Rating 8.5/10 — a phenomenal dram!