Posts

devops - What Commitizen type should I use for a change that is an improvemant for an existing feature? -

Image
here commitizen types: what commitizen type should use a change improvement existing feature ? cz resources : http://commitizen.github.io/cz-cli/ https://github.com/commitizen/cz-cli

android - How do you get data from a Bluetooth LE device -

i have bluetooth barcode scanner supports bluetooth le , trying barcode information when 1 scanned. i can connect fine onservicesdiscovered gets called in bluetoothgattcallback not sure there. with classic bluetooth connection inputstream bluetoothsocket , wait read() give data not sure how works bluetooth le. tried looping through bluetoothgattcharacteristic 's checking property , if read property call gatt.readcharacteristic(characteristic); gives me useless information , that's before attempt scan something. so how barcode data scanner? this scanner have https://www.zebra.com/us/en/support-downloads/scanners/ultra-rugged-scanners/li3608-li3678.html the data provided ble devices called characteristics . these data packages specially formed, tightly packed byte arrays encode specific values specific services . can check out services @ official bluetooth website. here you'll find defined (authoritative) gatt services , belonging characteristics....

css - Bootstrap3 navbar-fixed-top height -

i'm using bootstrap3 navbar-fixed-top in project. in mentioned navbar, there div height 700px , makes entire navbar stretch 700px , covers content (i'm not able click inside inputs of main container). can set overflow parameter properly, element inside navbar doesn't stretch entire navbar, stays "outside" of it? <nav class="navbar navbar-default navbar-fixed-top"> ... <my-custom-widget></my-custom-widget> <!-- widget height of 700px --> ... </nav> thanks. g. if creating custom widget can set widget's position attribute absolute or fixed , if want prevent oversized can use overflow property of css checkout pen example my-custom-widget{ position: absolute; top: 0; right: 0; } https://codepen.io/anon/pen/xaeznr

node.js - path.join does not work? -

i want read path , wrote 2 different codes.the first code not work second code works perfectly. not understand differences. can explain me going on? thanks. file stored in /modules/config/ first code: var tmpmodulepath = path.join('./modules/',"config/"); var moduleconfiginfo = require(tmpmodulepath + "_test.js"); second code: var tmpmodulepath = path.join('./modules/',"config/"); var moduleconfiginfo = require("./" + tmpmodulepath + "_test.js"); from first code, error: can not find module ..._tset.csv if console.log generated path results: first code block: "modules/config/_test.js" second code block: "./modules/config/_test.js" in second case, have relative path starting current directory ( ./ ). require modules folder starting current directory. in first case, path absolute, meaning require modules folder starting root path of filesystem. i hope understand d...

python - Pocketsphinx new_Decoder runtime error -

i'm facing error in pocketsphinx code. have both pocketsphinx , sphinxbase installed. , have built both of these packages visual studio. here code: #!/usr/bin/python os import environ, path pocketsphinx.pocketsphinx import * sphinxbase.sphinxbase import * modeldir = "../../../model" datadir = "../../../test/data" config = decoder.default_config() config.set_string('-hmm', path.join(modeldir, 'en-us/en-us')) config.set_string('-lm', path.join(modeldir, 'en-us/en-us.lm.bin')) config.set_string('-dict', path.join(modeldir, 'en-us/cmudict-en-us.dict')) config.set_string('-logfn', '/dev/null') decoder = decoder(config) stream = open(path.join(datadir, 'goforward.raw'), 'rb') #stream = open('10001-90210-01803.wav', 'rb') in_speech_bf = false decoder.start_utt() while true: buf = stream.read(1024) if buf: decoder.process_raw(buf, false, false) ...

demo - No member named error - cgal -

i configure aabb_tree demo of cgal cmake use make command got error: in file included /home/pc/projects/cgal/aabb_tree/demo/aabb_tree/aabb_demo.cpp:68:0: /home/pc/projects/cgal/aabb_tree/demo/aabb_tree/mainwindow.cpp: in member function ‘void mainwindow::on_actioncopy_snapshot_triggered()’: /home/pc/projects/cgal/aabb_tree/demo/aabb_tree/mainwindow.cpp:427:32: error: ‘class viewer’ has no member named ‘grabframebuffer’ qimage snapshot = m_pviewer->grabframebuffer(true); ^ cmakefiles/aabb_demo.dir/build.make:87: recipe target 'cmakefiles/aabb_demo.dir/aabb_demo.cpp.o' failed make[2]: *** [cmakefiles/aabb_demo.dir/aabb_demo.cpp.o] error 1 cmakefiles/makefile2:67: recipe target 'cmakefiles/aabb_demo.dir/all' failed make[1]: *** [cmakefiles/aabb_demo.dir/all] error 2 makefile:83: recipe target 'all' failed make: *** [all] error 2 how can solve it?

Running Java batch deployed in Liberty profile on z/OS -

is approach of running java batch programs in liberty profile (supporting jsr352 specification) on z/os relatively new market or been long time ? the reason behind question because, hearing relatively new attempt ibm , there not of live systems in market running in approach. true ? note : understand jsr352 has been there quite sometime but, question specific support liberty profile in z/os (mainframe) support jsr-352 showed in websphere liberty part of java ee7 support delivered in 8.5.5.6 in june of 2015. supported on z/os , other platforms supported liberty. there features supported on z/os (i.e. smf recording, z/os-specific command line interface). support in websphere traditional ibm's proprietary java batch product (websphere compute grid) goes @ least decade (on z/os , distributed platforms). there's lot of information liberty jsr-352 support (especially on z/os) starting here: http://www-03.ibm.com/support/techdocs/atsmastr.nsf/webindex/wp102544...