Hugues Fontenelle

Oslo, Norway

Age: 35

Jul
14
accepted VS2010 Debug attach to process / cannot find or open the PDB file
Jul
14
awarded Custodian
Jul
14
reviewed Reviewed automate mouse up event in vbscript
Jul
14
comment Volume of convex hull with QHull from SciPy
The hard way is to implement it: wiki.scipy.org/Cookbook/Finding_Convex_Hull
Jul
14
comment Volume of convex hull with QHull from SciPy
My wild guess is that SciPy does not wrap that particular option flag.
Jul
14
comment Volume of convex hull with QHull from SciPy
Try to update your question with a real question (not "here's what I get").. It took me a while to figure out that nowhere the total area and volume can be found, despite the fact that you supplied the proper option.
Jul
14
answered Conversion from Popular Visualisation Pseudo Mercator to spherical (WGS84) coordinates in Matlab
Jul
14
awarded Organizer
Jul
14
revised Office 365- Accessing lists refers wrong URL (URL/App name)
added useful tags
Jul
11
comment How to implement a strategy pattern with runtime selection of a method?
Thanks for the suggestions, the code and the last edit :)
Jul
11
accepted How to implement a strategy pattern with runtime selection of a method?
Jul
11
comment How to implement a strategy pattern with runtime selection of a method?
For method2, I edited the ScoreAlgo.score with return 42. Same issue it doesn't return anything.
Jul
11
comment How to implement a strategy pattern with runtime selection of a method?
Not clear to me what I have to replace the ... with in def score(self, *args): self._algo(...) I do s = Strategy(), s.set_strategy("one"), s.score() and it returns None.
Jul
11
comment How to implement a strategy pattern with runtime selection of a method?
Thank you. 1. That creates this error instead: NameError: global name 'algo_one' is not defined 2. a) Because I want algo_one to use some common methods and variables in my_strategy. b) ok thanks I could use a base class c) well you cannot know that, but the length of this file will soon get out of control (not with my simple example obviously).
Jul
11
comment How to implement a strategy pattern with runtime selection of a method?
Beautiful. Thank you. Of course the ComplicatedStrategy class will not see any method or variable of the Scorer class. So I got the former to inherit from the later (class ComplicatedStrategy( Scorer ):) and this answers my needs perfectly.
Jul
11
asked How to implement a strategy pattern with runtime selection of a method?
Jul
9
comment Ubuntu : how to install matplotlib with python3.2 (freetype issue)
Consider installing your packages using pip, homebrew or conda.
Jul
9
comment Ubuntu : how to install matplotlib with python3.2 (freetype issue)
@Vince: superuser is another StackExchange site; SO is StackOverflow, this site
Jul
8
comment find nearest value in numpy array
So, it does not work for higher dimensions, and the answer should be deleted (or modified to reflect this)
Jul
2
awarded Curious
1 2 3 4 5