Profile

Cover photo
Fabrice Mongkhoune
Worked at Appturbo
Attended Université Pierre et Marie Curie
92,158 views
AboutPostsCollectionsPhotos

Stream

Fabrice Mongkhoune

Shared publicly  - 
 
+Mark Seemann Hello! I have read your interesting post about passive attributes in ASP.NET : http://blog.ploeh.dk/2014/06/13/passive-attributes/

I have a question, while it works well, I wonder about the testability of this solution. I am struggling a bit, the problem is simulating/stubbing the result of the actionContext.ActionDescriptor.GetCustomAttributes<T> method to simulate and choose if an action is decorated with the attribute or not.

I wondered if you have an opinion on that.

1
Add a comment...
 
Hello guys! Is there any good constraint programming library for Ruby?

I wanted to do some AI related stuff as I used to do in University but it seems that the only one I can find is Gecode/R and is pretty old and only support ruby up to 1.8.

There are pretty solid CSP libraries in Java and Python I've already tested but I wanted to give a try with Ruby as it's a language I discovered last year and is currently one of my favourite.
2
Add a comment...

Fabrice Mongkhoune

Shared publicly  - 
 
 
If you are using the RecyclerView 23.2.0 pay attention to the layout parameters of your item views.
The previously ignored layout parameters (such as MATCH_PARENT in the scroll direction) will now be fully respected.

A little example to explain what can happen.

The last week was published the last support libraries v23.2.0. Pay attention to the news about the RecyclerView
View original post
1
Add a comment...

Fabrice Mongkhoune

Shared publicly  - 
 
https://dblog.laulkar.com/http2-protocol-for-apns.html

Finally a new APNS workflow! Oh god I remember how it was annoying as hell to work with that service years ago...
New saner APNS protocol for sending push notifications
1
Add a comment...

Fabrice Mongkhoune

Shared publicly  - 
 
 
Just published: Part I of an overview of the old android webview architecture, mostly describing the move from software rendering to the hardware accelerated pipeline.

#Android #AndroidDev

The Old Android Browser Graphics Architecture
1 comment on original post
1
Add a comment...

Fabrice Mongkhoune

Shared publicly  - 
 
A very nice repository with a lot of Proguard configurations files examples for various Libraries
android-proguard-snippets - Proguard configurations for common Android libraries
1
Add a comment...

Fabrice Mongkhoune

Shared publicly  - 
 
 
Get an up close and personal look at the new #Android 6.0 Marshmallow. android.com/marshmallow
86 comments on original post
1
Add a comment...

Fabrice Mongkhoune

Shared publicly  - 
 
So true! 
 
#pixelpushing #firstworldwins

Not forgetting to call show() on a Toast on the very first try be all like...
6 comments on original post
1
Add a comment...

Fabrice Mongkhoune

Shared publicly  - 
1
Add a comment...

Fabrice Mongkhoune

Shared publicly  - 
 
So many cool new stuff in this release! Vectors for everyone is the best
 
Android Support Library 23.2 now available!

Check out the blog post: http://goo.gl/b7x1aA
What does the 23.2 version mean? It means it is still based on API 23 (Marshmallow), but includes a large number of features over the previous 23.1.X releases:
- New support-vector-drawable and support-animated-vector-drawable Support Libraries
- A new Theme.AppCompat.DayNight as the base for a single theme that supports both a light and dark (night) theme
- BottomSheetBehavior, BottomSheetDialog, and BottomSheetDialogFragment have been added to the Design Library
- MediaBrowserServiceCompat backports API 21+ APIs back to the Support v4 library, bringing an easy way to connect and browse your media service as well as integrate with Android Auto and Android Wear
- RecyclerView adds support for auto-measurement, resizing itself based on its contents
- Custom Tabs adds a bottom bar for additional actions
- Leanback for Android TV has significant improvements to the GuidedStepFragment

Check out the blog (http://goo.gl/b7x1aA) for all the details and download the Android Support Library from your SDK Manager!
70 comments on original post
1
Add a comment...

Fabrice Mongkhoune

Shared publicly  - 
 
 
Use a fixed aspect ratio with the Percent Support Library 23.1
Pro-tip by +Ian Lake

The Percent Support Library (https://goo.gl/KbnO7W) makes it easy to set dimensions and margins in terms of a percentage of the overall space. In the 23.1 release (http://goo.gl/Ohd5Sy), it also gained the ability to set a custom aspect ratio via app:layout_aspectRatio.

This allows you to set only a single dimension, such as only the width, and the height will be automatically determined based on the aspect ratio you’ve defined, whether it is 4:3 or 16:9 or even a square 1:1 aspect ratio.

So building a navigation drawer header with a 16:9 background image would look like:
<android.support.percent.PercentRelativeLayout 
  android:layout_width="match_parent"
  android:layout_height="wrap_content">
  <ImageView
    app:layout_widthPercent="100%"
    app:layout_aspectRatio="178%"
    android:scaleType="centerCrop"
    android:src="@drawable/header_background"/>
  <!-- The rest of your layout -->
</android.support.percent.PercentRelativeLayout>

You’ll note we use layout_widthPercent instead of layout_width - this ensures that the height is not erroneously set to 0dp before the first layout pass is done and ensures the aspect ratio is always correctly computed based on the current width.

So how did a 16:9 aspect ratio turn into 178%? Our target 16:9 aspect ratio can also be expressed as a 1.78:1 ratio or equivalently, a width 178% of the height. This is the format the layout_aspectRatio expects.

Of course, you can also define the aspect ratio in separate XML files with code such as:

<item name="header_aspectRatio" type="fraction">178%</item>

This makes it possible to change or reuse them across different form factors or layouts.

Material design designates a number of ratio keylines (http://goo.gl/OHeq6x) which you can use in your app, but you could also consider using this for list items (where you may be using ?android:attr/listPreferredItemHeight) with items such as a profile image or video thumbnail for a fixed aspect ratio.

You’ll be able to use this with PercentFrameLayout, PercentRelativeLayout, or through any custom ViewGroup using PercentLayoutHelper (http://goo.gl/BBxu6p).
17 comments on original post
1
Add a comment...

Fabrice Mongkhoune

Shared publicly  - 
 
 
Android Studio 1.4 is ready to download in the stable channel. It includes new & updated tools for app design.

Read more about it on our blog: http://goo.gl/m07Ywx
52 comments on original post
1
Add a comment...
Fabrice's Collections
Work
Occupation
Mobile/Web Developer
Skills
Android development, web development (PHP and Ruby), Artificial Intelligence (Problem Solving, NLP)
Employment
  • Appturbo
    CTO/Lead Developer, 2012 - 2015
  • ILobjects
    Developer, 2010 - 2012
Basic Information
Gender
Male
Story
Introduction
French IT Engineer currently living in Japan.

I'm passionate about Android and Ruby Web Developpment.

I also like photography and drawing.
Bragging rights
I have worked as a CTO in a 5 people start-up which 3 years later is now a 50+ people company with millions of iOS and Android users
Education
  • Université Pierre et Marie Curie
    Master Informatique en Intelligence Artificielle, 2004 - 2009