Thursday, January 30, 2014

The Science Behind Why Small Teams Work More Productively: Jeff Bezos’ 2 Pizza Rule

http://blog.bufferapp.com/small-teams-why-startups-often-win-against-google-and-facebook-the-science-behind-why-smaller-teams-get-more-done?fb_action_ids=633422390027265&fb_action_types=readabilityapp%3Abookmark&fb_source=other_multiline&action_object_map=[397861940320260]&action_type_map=[%22readabilityapp%3Abookmark%22]&action_ref_map=[]

Monday, January 13, 2014

Get the view size and position on ViewTreeObserver

If you have to get view's position coordinates, size and etc do it using ViewTreeObserver class.

Read this article:
http://stackoverflow.com/questions/7733813/how-can-you-tell-when-a-layout-has-been-drawn

How to update your Android apps

In one sentance:
Open on your mobile Play Store app, find out the app you want to update among the installed apps and run update process.

Read more about it here:
http://www.pcadvisor.co.uk/how-to/google-android/3435989/how-update-android-apps/

Be strong

http://www.lubyanchenko.ru/wp-content/uploads/2012/04/turnik30.png

Saturday, January 11, 2014

Getting View's coordinates relative to the root layout

If you get only ZERO's by view.getLeft()... try to use
view.getLocationOnScreen() and/or getLocationInWindow().

Here is the link of this issue:
http://stackoverflow.com/questions/2224844/how-to-get-the-absolute-coordinates-of-a-view

Friday, December 27, 2013

Friday, December 13, 2013

Fix Maven Error: JAVA_HOME is not defined correctly on Mac OSX 10.9 Mavericks

If your JAVA_HOME env.variable is set correctly then 100500% 
you have to hardcode the $M2_HOME/bin/mvn script!


Ok. Here is the error massege itself:
Error: JAVA_HOME is not defined correctly. We cannot execute /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Home/bin/java

Now Edit mvn script (it could be line 61):
Change the path of JAVA_HOME that starts with /System/... on your e.g. /Library/...
Change above the value of variable JAVA_VERSION on that you have e.g. jdk1.7_...

Why this issue took place is beacouse the path of JAVA_HOME in OSX 10.9 Maericks is different then it was in previous versions of OS. Before it was installed in /System... now it is in /Library.... BUT the maven script still sets the path of JAVA_HOME that starts in /System... Maybe in next version of Maven this will be changed. 

That's all.

Tuesday, December 10, 2013

UIBinder example

<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
             xmlns:g='urn:import:com.google.gwt.user.client.ui'
             xmlns:b="urn:import:com.github.gwtbootstrap.client.ui"
             xmlns:tabs="urn:import:com.db.syndicate.html.common.gxtcomponents.tabs">
    <ui:style>
        .header{
            text-align: center;
            background-color: bisque;
            width: 100%;
        }
    </ui:style>
    <g:FlowPanel>
        <b:FluidContainer>
            <b:FluidRow width="100%">
                <b:Column size="12">
                    <!--<g:HTMLPanel addStyleNames="{style.header}">Header</g:HTMLPanel>-->
                    <g:FlowPanel ui:field="headerPanel"/>
                </b:Column>
            </b:FluidRow>
            <b:FluidRow>
                <b:Column size="3">
                    <b:FluidRow>
                        <b:Column size="12">
                            <!--menu-->
                            <g:FlowPanel width="100%" ui:field="menuPanel"/>
                        </b:Column>
                    </b:FluidRow>
                    <b:FluidRow>
                        <b:Column width="100%" size="12">
                            <!--filter-->
                            <g:FlowPanel ui:field="filterPanel"/>
                        </b:Column>
                    </b:FluidRow>
                </b:Column>
                <b:Column size="9">
                    <!--content-->
                    <g:FlowPanel width="100%" ui:field="contentPanel">
                        <tabs:TabBar header="true" ui:field="tabBar"/>
                    </g:FlowPanel>
                </b:Column>
            </b:FluidRow>
            <b:FluidRow>
                <!--Footer-->
            </b:FluidRow>
        </b:FluidContainer>
    </g:FlowPanel>
</ui:UiBinder>

Consider Errai Framework