Lombok - mandatory field in builder using builderMethodName

by GarciaPL on Saturday 24 August 2019

@Builder(builderMethodName = "mandatoryBuilder")
@ToString
public class MyClass {

    private String name;
    private String identifier;

    public String getName() {
        return name;
    }

    public String getIdentifier() {
        return identifier;
    }

    public static MyClassBuilder builder(String identifier) {
        return mandatoryBuilder().identifier(identifier);
    }

}

Tooltip does not show up for disabled button - ExtJS

by GarciaPL on Wednesday 26 June 2019

If you are going to define tooltip for component in ExtJS (especially within version 6.7 and higher as I had chance to work with it) which might be disabled, unfortunately you will not be able to see. This component needs to be enabled that you might see your tooltip. Hopefully there is a way to fix it.

Just enrich your component (button in this case) with pointerEvents: 'all'

var button = {
    xtype: 'button',
    tooltip: 'Your tooltip',
    text: 'Your Text',
    style: {
        pointerEvents: 'all'
    }
};

IntelliJ - Command line is too long

by GarciaPL on Monday 1 April 2019



Inside your .idea folder, change workspace.xml file add below property

<property name="dynamic.classpath" value="true" />

to

<component name="PropertiesComponent">

Conda - use python package from pypi

by GarciaPL on Friday 4 January 2019

Have you ever tried to install package available in pypi, but not in official anaconda repository? There is a way to install it using Anaconda terminal.

  1. conda skeleton pypi PACKAGE
  2. conda build PACKAGE