Saturday, 9 February 2019

running zookeeper on windows

1. download zk (zookeeper )

2. Extract and put it in some place like : C:\zookeeper-3.4.10\

3. Add to path : C:\zookeeper-3.4.10\bin

4. Change configuration in C:\zookeeper-3.4.10\conf\zoo_sample.cfg to zoo.cfg
this configuration is nothing to do except renaming

5. Now run the server all the command are available in C:\zookeeper-3.4.10\bin  folder

C:\Users\ycs-gbs>zkServer

6. you can run other commands
C:\Users\ycs-gbs>zkCli


good ref: https://medium.com/@shaaslam/installing-apache-zookeeper-on-windows-45eda303e835

https://zookeeper.apache.org/doc/r3.3.3/zookeeperStarted.html#sc_RunningReplicatedZooKeeper

https://curator.apache.org/curator-framework/index.html

http://highscalability.com/blog/2008/7/15/zookeeper-a-reliable-scalable-distributed-coordination-syste.html

Monday, 4 February 2019

cannot find symbol [ERROR] symbol: class slf4j

Compilation failure
[ERROR] /E:/me/me/src/main/java/com/me/me/DemoApplication.java:[13,2] cannot find symbol
[ERROR]   symbol: class slf4j

add this import and its dependency


import lombok.extern.slf4j.Slf4j;

Saturday, 26 January 2019

value == null || items.where((DropdownMenuItem item) => item.value == value).length == 1

I/flutter (23889): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
I/flutter (23889): The following assertion was thrown building DropdownButtonFormField<dynamic>(dirty, state:
I/flutter (23889): _DropdownButtonFormFieldState<dynamic>#94f46):
I/flutter (23889): 'package:flutter/src/material/dropdown.dart': Failed assertion: line 514 pos 15: 'items == null ||
I/flutter (23889): value == null || items.where((DropdownMenuItem<T> item) => item.value == value).length == 1': is not
I/flutter (23889): true.


........................'

use init state to initialize value part in

buildDropdownButtonFormField


void initState() {
String x = controller.text; //on update initial value

x = x.trim();
if (x != "" && x != null) {
selectBoxvalue = x;
}

super.initState();
}





buildDropdownButtonFormField(BuildContext context) {
return DropdownButtonFormField(
items: dropDownList.toList(),
decoration: InputDecoration(
labelText: Translations.of(context).text(label),
),
onChanged: (value) {
setState(() {
selectBoxvalue = value;
});

if (controller != null) {
controller.text = value;
}

if (onChangeSelectMap != null) {
onChangeSelectMap(value);
}
},
value: selectBoxvalue ?? null,
);
}

select box flutter

FormField(
        initialValue: initialValue,
        builder: (FormFieldState state) {
          return InputDecorator(
            decoration: InputDecoration(
              labelText: Translations.of(context).text(label),
            ),
            child: DropdownButtonHideUnderline(
              child: DropdownButton(
                value: selectBoxvalue ?? null,
                items: dropDownList.toList(),
                onChanged: (value) {
                  setState(() {
                    selectBoxvalue = value;
                  });

                  if (controller != null) {
                    controller.text = value;
                  }

                  if (onChangeSelectMap != null) {
                    onChangeSelectMap(value);
                  }
                },
              ),
            ),
          );
        });


///////////////////////////

map.forEach((k, v) {
      dropDownList.add(DropdownMenuItem(
        value: k,
        child: new Text(v),
      ));
    });
////////////////////////////////

Friday, 22 September 2017

Al6Fe xrd teo theta values

11.856899488926743 15.332197614991486 23.91822827938671 40.2725724020443 http://arohatgi.info/WebPlotDigitizer/app/ https://astamuse.com/ja/drawing/JP/2014/224/290/A/000006.png Al6Fe 27.191642594278026 29.240235843456922 31.638241462546 34.152981678603936 35.83237703296268 http://www.scielo.br/img/revistas/mr/v18s2//1516-1439-mr-1516-1439346114-gf07.jpg

Tuesday, 20 June 2017

XRD 2theta for Mg2Si

XRD 2theta for Mg2Si 28, 8.376068376068133 47.39999999999999, 25.418803418803464 58, 49.40170940170924 72.8, 50.666666666666515 86.6, 21.076923076922867 100.60000000000001, 37.65811965811963 ref: https://www.researchgate.net/profile/Hamid_Reza_Jafari_Nodooshan/publication/236221017/figure/fig5/AS:393476387688454@1470823489516/Fig-7-XRD-pattern-of-the-Al-15Mg-2-Si-composite-with-10-wtY-addition.png

Saturday, 11 February 2017

XRD 2theta for ω-Al7Cu2Fe

Digitized 2theta value for ω-Al7Cu2Fe 22.82442748091603, 23.282442748091604, 24.045801526717558, 30.763358778625957, 36.56488549618321, 42.213740458015266, 45.725190839694655, 49.083969465648856, 66.03053435114505, 74.73282442748092 REf: http://www.medc.dicp.ac.cn/conference/lacame2012/volume/HI224/Preprint%20Hyperfine%20Interactions%20224%20(2014)%20083-088.pdf DOI 10.1007/s10751-013-0868-8