Posts

Showing posts from June, 2012

google app engine - gcloud cloud functions deployment failure code 13 message=Failure in the execution environment" -

deploying cloud function gcloud failed below message, error: (gcloud.beta.functions.deploy) operationerror: code=13, message=failure in execution environment couldn`t find information error in cloud function logs. running deploy --verbose debug traces functions called in cloud sdk directory , ends displaying below error, functionserror: operationerror: code=13, message=failure in execution environment error: (gcloud.beta.functions.deploy) operationerror: code=13, message=failure in execution environment per google public issue tracker , error due large package.json file hitting internal restriction. possible workarounds: 1- installing dependencies locally (through 'npm install') , deploying --include-ignored-files flag. 2- reduce package.json less 4000 characters this ongoing issue , can follow discussion on thread related updates.

java - Android: GridView shows all but a few images -

i have 6 images downloaded as shown here , gridview in gallery displays 5 of images . i'm trying copy how instagram displays gallery, selected image taking 60% of screen , gallery images taking rest. fragment_gallery.xml <?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <relativelayout android:layout_width="match_parent" android:layout_height="wrap_content" android:id="@+id/rellayoutl"> <!--toolbar--> <include layout="@layout/snippet_top_gallerybar"/> </relativelayout> <linearlayout android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" an

javascript - JQuery .data() not fetching values after I change them -

i have data attribute called registeredteacherid. reason values aren't getting fetched correctly after update them. here general idea of i'm doing. var registeredteacherid = $(eventpanel).data('registeredteacherid'); // work...then $(eventpanel).data('registeredteacherid', response.teacherid); // @ point sets new value in ie debugger window // more work // fetch value again , still shows old value var registeredteacherid = $(eventpanel).data('registeredteacherid'); the data function not change value of data-* attribute, give access these values. you can change values , new data, , if want change content of data-* attribute can use attr function: console.log($('div').data('content')); console.log($('div').attr('data-content')); $('div').data('content', 'some new content'); console.log($('div').data('content')); console.log($('div').attr('data

windows - UWP image byte buffer RGBA to Xaml Control Image C++ -

i call upon great minds of fellow programmers answer question google not give me answer to. i trying display raw image buffer rgba8 using xaml.controls.image. solutions found far in c# doesn't work c++ because used functions not available in c++. c# , c++ inconsistent. i want use byte buffer because want manipulate image data pixel pixel. int x = 0; int y = 0; int channelspresent = 0; const int chanreq = 4; // raw byte buffer storing rgba pixel data. char* bytebuffimage = (char*)stbi_load("assets\\storelogo.png", &x, &y, &channelspresent, chanreq); //what steps in between. // type:(image) this? resulttexture->source = in c# seems easy: https://social.msdn.microsoft.com/forums/vstudio/en-us/a7623393-039d-4664-827a-9050d41d0ae3/uwpc-i-want-to-display-an-image-as-a-bitmapimage-that-i-received-in-a-byte-stream-in-response?forum=wpdevelop thank you.

ios - CloudKit: are reliable realtime updates possible? -

i have ckdatabasesubscription set up, shouldsendcontentavailable set true, , soundname set empty string. it works great - except when user has 'background app refresh' turned off on device - notifications not received, unless device charging. seems expected behaviour, given shouldsendcontentavailable flag. i don't mind background updates never come through, seems 2 devices side side, app in foreground, changes on 1 device not forwarded other when background app refresh disabled. that unfortunate, although seems edge case user have app open on both devices , setting disabled. still nice fix edge case though. i manually check changes every once in while, seems wasteful, since edge cases need this. has discovered way reliably receive these notifications while app in foreground, background app refresh disabled? or perhaps there other way send , receive real time updates isn't obvious?

node.js - Host React and Express on the same server? -

i working on react site has contact page. on contact page there text field enter message sent specific email address. right i'm trying set express react app, only thing need express 1 feature. in react app doing $.post('http://localhost:3030/api',{value:'hi'}, function(result) { console.log(result); }); and in express index.js file i'm doing app.get('/api', (request, response) => { console.log(request); }) just simple test see if things working properly. when run these both , attempt execute post function, no 'access-control-allow-origin' header present on requested resource. error, saying can't make request separate domain . issue here not error, fact running express server , react app on 2 different servers. is there way have them on same server? new back-end development, appreciated! yes, react runs on client , express node.js framework. there's pretty chance you're using express if you'

applescript - Copy files from one location to another: access not allowed error message -

i'm making script replace folder in containers folder in home user's library. far, code below works fine. nothing wrong it. issue is, because moves files rather copy them, can run once. however, if try , change move copy , following error: can’t set filepath replacing «class ects» of «class cfol» ((path me string) & "contents:resources:folder1"). access not allowed. can tell me why , how fix it? set filepath (get path home folder) & "library:containers:folder1" string tell application "finder" move entire contents of folder ((path me string) & "contents:resources:folder1") filepath replacing you cannot replace move copy , because finder's applescript dictionary says following copy command : copy v : (not available yet) copy selected items clipboard (the finder must front application) use duplicate command instead: duplicate  v : duplicate 1 or more object(s)      duplicate specifie

jsf 2.2 - The class 'org.javassist.tmp.java.lang.Object_$$_javassist_seam_2' does not have the property -

i learning seam framework , going through examples given seam package. trying declare property in seam component , refer in jsf. but, getting error saying class not have property. my seam component follows: register.java interface package org.jboss.seam.example.registration; import javax.ejb.local; @local public interface register { public string register(); } registeraction.java class @stateless @name("register") public class registeraction implements register { private string college; public string getcollege() { return college; } public void setcollege(string college) { this.college = college; } register.xhtml file <h:inputtext id="college" value="#{register.college}" required="true"/> while deploying application , accessing link: http://localhost:8080/seam-registration/register.seam i getting below error: context path:/seam-registration servlet path:/register.seam path info:null query string:n

Set Python Logging to overwrite log file when using dictConfig? -

i'm using dictconfig() configure logging. want process overwrite specified log file every time process run. how do this? i see filemode setting in basicconfig() can't figure out put in dictconfig() configuration. i've tried unexpected keyword argument 'filemode' error. i've tried in few other places too. python logging docs confusing hell! log_path = os.path.join(project_path,'logs') log_file_name = 'log.'+main.__file__+'.'+time.strftime("%y-%m-%d") log_file_path = os.path.join(log_path,log_file_name) logging_config = { 'version': 1, 'disable_existing_loggers': false, 'formatters': { 'standard': { 'format': '[%(levelname)s] %(message)s - [pid:%(process)d - %(asctime)s - %(name)s]', }, }, 'handlers': { 'console': { 'level': '

python - How to write JSON data to Dynamodb by ignoring empty elements in boto3 -

i write following data group dynamodb. there 100 data. since images not required, there mixture , without image_url element. (questionslist.json) { "q_id" : "001", "q_body" : "where capital of united states?", "q_answer" : "washington, d.c.", "image_url" : "/washington.jpg", "keywords" : [ "unitedstates", "washington" ] }, { "q_id" : "002", "q_body" : "where capital city of uk?", "q_answer" : "london", "image_url" : "", "keywords" : [ "uk", "london" ] }, since writing test phase, dynamodb write prepared in localhost:8000 using serverless-dynamodb-local plugin of serverless framework, not production environment. in order write above json data dynamodb, wrote following code in boto 3 (aws sdk python). from __future__

How do I update a nested json object in mysql relative to a value -

how update nested json object in mysql relative value. if have input , want output. input [{ "name": "logo", "settings": [] }, { "name": "other", "settings": [] }] output [{ "name": "logo", "settings": [{ "name": "purpose", "value": "logo" }] }, { "name": "other", "settings": [] }] i've been able if know index (0) of object want update. index change. select json_extract('[{"name": "logo","settings": []},{"name": "other","settings": []}]', '$[*].name'); select json_insert('[{"name": "logo","settings": []},{"name": "other","settings": []}]', '$[0].settings[1]', json_object("name", "

python - Reading incoming slack message -

an report posted every 5 hrs in slack channel need sort/filter information , put in file, there way read channel continuously or run command 5 min before time , capture report future processing. yes, possible. here basic outline of solution: create slack app based on script (e.g. in python) has access channel's history (e.g. has channels:history permission scope) use cron call script @ needed time the script reads channels history (e.g. channel.history public channels), filterers out needs , stores report file. another approach continuously read every new message channel, parse trigger (e.g. specific user sends or name of report) , filter , safe report when appears. if can identify reliable trigger in experience more stable solution, since scheduled reports can delayed. for approach use events api of slack instead of cron , subscribe receiving messages (e.g. message event public channels). slack automatically send each new message script posted. if new

r - Opposite of array_tree in purrr package? -

i wondering if there function opposite of array_tree function purrr package. specifically function (lets call list_untree -better suggestions welcome) following. if a multidimensional array , m vector specifying margins array_tree . l <- array_tree(a, margin=m) <- list_untree(l, margin=m) how can write efficiently if not exist. for more motivation: particularly interested in doing computations on l using map function , plugging result list_untree function.

Validating Android SDK files -

i have poor wifi connection @ work , while installing sdk, system image zip's fails extract (after sdk manager downloads them). retied on ethernet , installed successfully. wondering if there way validate each , every file present in android sdk installation location? your appreciated!

Notice: Array to string conversion in C:\xampp\htdocs\tes1.php on line 19 -

i'm sorry if question may similar others question. success make connection database. i'll try show databases have. when tried code, got error. <?php $servername = "localhost"; $username = "root"; $password = ""; // create connection $conn = new mysqli($servername, $username, $password); // check connection if ($conn->connect_error) { die("connection failed: " . $conn->connect_error); } echo "connected successfully"; $sql = mysqli_query($conn,'show databases;'); $names = array($sql); foreach ($names $key => $value) { $row = mysqli_fetch_array($value); echo $row.'<br />'; } ?> $sql = mysqli_query($conn,'show databases;'); $row = array(); while ($row[] = mysql_fetch_array($sql)) { print_r ($row) ; }

javascript - Array in React state won't map -

i have setting state: constructor() { super(); this.state = { isloggedin: false, loginshowing: false, user: null, programs: ['cool','guy','nice'] } } ... when try in render {this.state.programs.map(program => <h1>{program}</h1> )} nothing shows on page. if put asdf: '123' in state , print <h1> {this.state.asdf} </h1> , work. know why mapping array in state doesn't render? thanks. i'm running react on macos sierra 10.12.6, react ^15.6.1. edit: seems code causing it: componentdidmount() { if(localstorage.getitem('accountdata') != null) { this.authenticatetoken(localstorage.getitem('accountdata')); } } i don't know how affecting render is. i have tried code , worked me: class custominput extends react.component { constructor() { super(); this.state = { isloggedin: false, loginshowing: false, user: null, progr

c# - Position to center screen in triple monitor setup with extended view -

i have 3 monitors/screens of different sizes/resolutions setup extended view, wired same nvidia graphic card. , left right: screen#0 : 2400*1080 screen#1 : 1920x1080 screen#2 : 1920*1080 my application has 3 separate windows, respectively position each window corresponding monitor/screen following code window00.left = system.windows.forms.screen.allscreens[0].workingarea.left; window01.left = system.windows.forms.screen.allscreens[1].workingarea.left; window02.left = system.windows.forms.screen.allscreens[2].workingarea.left; window00.windowstate = system.windows.windowstate.maximized; window01.windowstate = system.windows.windowstate.maximized; window02.windowstate = system.windows.windowstate.maximized; i 3rd windows (window02) position right screen (screen#02), both 1st , 2nd windows (window00 & window01) stack , maximized first screen (screen#00), leaving middle screen#01 empty displaying background desktop environment, regardless if set windowsstate.maximized

Eclipse IDE could not find android.jar -

good day. did offline installation of android sdk , eclipse java ee developers. installed adt (offline also) eclipse , worked fine. when try setting sdk location via windows > preferences i error: could not find c:\users\ken\appdata\local\android\andoird-sdk\android.jar how fix this. in advance

sql - HQL one to many query -

i have carmodel , carmodelcolor domain relationship carmodel hasmany carmodelcolor carmodel{ string name static hasmany = [carmodelcolors: carmodelcolor] } carmodelcolor{ string color } now if pass 2 color red , black need models hai both color atleast. please note user can pass n number of color function , result need atleast n colors . can done follow using in query hql select model carmodel model join model.carmodelcolors modelcolors modelcolors.color in ? criteria carmodel.withcriteria { carmodelcolors { "in"("color", colorlist) } }

reactjs - What is the proper way to get the mouse position in a React Component? -

i have component renders canvas element. have onmousemove handler, when move mouse towards top of element event.clienty prints 86. why not 0? there synthetic event property give me point relative element's coordinate system , not windows? you can use targets offsettop relative position subtracting clienty like event.clienty - event.target.offsettop you can see example class app extends react.component{ render(){ return( <div> <div>top component</div> <div classname="main" onmousemove={(e) => console.log(e.clienty - e.target.offsettop)}>main component</div> </div> ) } } reactdom.render(<app/>, document.getelementbyid("root")); div{ min-height: 50px; } div.main{ background-color: blue; } <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"></script> <script src="https:

c# 5.0 - Combining two lists with different elements to one list with all elements and SAME index in c# -

i have 2 different lists geocode1 , geocode2 both of 5 rows of records. geocode1 has 4 columns namely address, city, zip , street. geocode2 has 4 columns namely latitute, longitude,status , county merging them using addrange below: geocode1.addrange.(geocode2) results in geocode1 8 columns( desire) of 10 rows, first 5 containing values in first list (geocode1) , last 5 values 2nd list (geocode2). (like outer join in sql) i desire have 8 columns 5 rows elements of both lists combined inner join in sql. can provide me solution? you need zip that: var result = geocode1.zip(geocode2, (c1, c2) => new modelname { address = c1.address, city = c1.city, zip = c1.zip street. c1.street, latitute = c2.latitude longitude = c2.longitude, status = c2.status, country = c2.country }).tolist(); make sure both list have same number of length since zip follow shortes

python - Running a large query in mysql -

i need grab rows in database contain item matches of 175,000 items , convert results csv file (which later parse , analyze python script). issues come mind are: [can u input large list of items workbench sql query (there not enough memory copy it)? network support such large data transfer? other things don't know?] smart way query , fetch large amount of data? using mysql workbench on windows windows server, open trying better interface option. simple (but not practical in case) query format: select * database date>='2017-06-01 00:00:00' , date<='2017-07-01 00:00:00' , instr in ('ab123', 'azx0456', 'rtpz888') *there should 10,000,000 records (or rows) between 2 specified dates. *the "instr in (...)" part require list of 175,000 unique items import instr filter separate table, example table xx, column name instr select * database date>='2017-06-01 00:00:00' , date<='2017-07-01 00:00:00

html5 - Anchors nor ID work to reference a specific section on a page -

i've been trying use anchor tags , id's reference specific sections within page reason blank page. no matter how many different configurations try, work 1 link, , second displays blank page. been trying <a href> , <a name> , using <div id=""> nothing seems work. ideas? here's link , section code: <li> <a href="servicios.html#distro">distribución del espacio</a> </li> <section id="distro" class="section-block replicable-content bkg-charcoal color-white no-padding-bottom"> <div class="row horizon" data-animate-in="preset:slideinrightshort;duration:1000ms;" data-threshold="0.3"> <div class="column width-5 offset-2"> <h2 class="mb-30"><a name="#distro">distribución del espacio</a></h2> </div> ... see website here check menu option under "servicios&qu

c++ - Defining a variadic template type with unknown argument list as std::map value type -

i not sure if possible @ trying achieve past 3 hours without sense-making approach. i have variadic template this: template<typename... ts> class xunit_test_item { public: template<typename f, typename... args> xunit_test_item(const std::string& name, f&& func, args&&... args) : m_name(name) , m_f(std::forward<f>(func)) , m_args(std::forward<args>(args)...) { } // ... private: const std::string m_name; std::function<void (ts...) > m_f; std::tuple<ts...> m_args; }; above template wraps test item holder of functor passed arguments along string name item. objects of type have stored std::map value type. handled in class contains std::map container member, registration method add xunit_test_item items , run method, iterates on map , executes stored xunit_test_item stored functions. the class looks this: class unit_test { // define map type of xunit_test_items temp

get nearest places first when search in google autocomplete places drop down in angular 2 -

i using google autocomplete locations in angular 2 project , filling locations in drop down. have new requirement.if user in place called abd , when doing search in drop down must shows abd first not abc,which means nearest places user must comes in drop down first. the autocomplete location code had written given below autocompletelocation() { this.mapsapiloader.load().then(() => { let autocomplete = new google.maps.places.autocomplete(this.searchelementref.nativeelement, { }); autocomplete.addlistener("place_changed", () => { this.ngzone.run(() => { //get place result let place: google.maps.places.placeresult = autocomplete.getplace(); //verify result if (place.geometry === undefined || place.geometry === null) { return; } //set latitude, longitude , zoom this.locinsertobj.prelocatio

regex - By using PHP preg_match, how to get specific substring from string -

Image
i substring: myphotoname from below string: path/myphotoname_20170818_111453.jpg using php preg_match function. please may me? thank you. preg_match / _. $str = "blur/blur/myphotoname_20170818_111453.jpg"; preg_match("/.*\/(.*?)_.*(\..*)/", $str, $match); echo $match[1] . $match[2]; i use .*? match between slash , underscore lazy make sure doesn't match way last underscore. edited make greedy match before / https://3v4l.org/9otuj performance of regex: since it's such simple pattern can use normal substr strrpos. edited use strrpos last / $str = "blur/blur/myphotoname_20170818_111453.jpg"; $pos = strrpos($str, "/")+1; // position of / $str = substr($str, $pos, strpos($str, "_")-$pos) . substr($str, strpos($str, ".")); // ^^ substring pos underscore , add extension echo $str; https://3v4l.org/d411c performnce of substring: my conclusion regex not suitable

Usage of apply plugin: 'application' tag in build.gradle file -

i starting explore gradle , question might naive. have noted gradle docs below plugin- apply plugin: 'application' application plugin facilitates creating executable jvm application. makes easy start application locally during development. applying application plugin implicitly applies java plugin. i want understand if below plugin entry mandatory have not seen in many projects. if used make jar runnable/creating executable jvm application. mean skipping not make application executable ? the 'application' plugin not mandatory when creating executable jvm application, facilitates creation of one. you can use other plugins create runnable jar, 1 of them shadow plugin if know how structure of runnable jar should like, can on own , pack needed libraries small apps or testing extending jar task java plugin. jar { archivename = 'name.jar' manifest { attributes 'main-class': 'main', 'class-path': config

bash - SQLITE3 Importing .csv Files with Different Number of Columns -

i have thousands of .csv files each row can contain either 18 or 23 columns. file contains rows 18 columns, , rows 23 columns. i'm using bash script run loop , import each file sqlite3 database running: sqlite3 options.db ".mode csv data" ".import '$f' data" and database schema has 23 columns. problem: when sqlite3 encounters row 18 columns, prints on terminal message saying expected 23 found 18 - filling rest null , , proceeds next row. rows saved, terminal has print message each row, , since there millions of rows, slows down importing process lot. question: how can suppress warning message sqlite3 ? if cannot suppress it, how can avoid in first place? thanks helping! :d

html - My nav bar collapses at 300px width. Elements inside nav bar collapse at 400px -

my code sloppy , don't know how use media queries. i've been feeling way around , have sloppy unresponsive nav bar. please me fix it. collapses @ 300px width , elements inside weird @ 400px. i'd know better way write media queries. whenever want change feel have add million of them though don't. .nav { width: 100%; height: 5%; border-bottom: 2px solid white; background-color: #333333; z-index: 98; text-align: center; position: fixed; padding: 1% 0; top: 0; } .nav ul li { display: inline-block; width: 20%; list-style-type: none; margin: 1% 0 0 0; z-index: 99; } .nav ul li { text-decoration: none; color: white; padding: 5px 20px; border: 2px solid #c6b99c; transition: background .5s; font-family: times; } .nav ul li a:hover { transition: background .5s; background-color: #c6b99c; } .nav ul li a:active { transition: background .5s;

python - matplot the plot is not showing the graph -

import csv import matplotlib.pyplot plt path="e:\google stock market data - google_stock_data.csv.csv" file=open(path) reader=csv.reader(file) a=[] b=[] header=next(reader) data=[] row in reader: data.append(row[:]) a=row[1] b=row[2] plt.plot(a,b) plt.show() i tried csv using script above, when try plot it, shows following error: file "c:\users\user\anaconda3\lib\site-packages\matplotlib\colors.py", line 204, in _to_rgba_no_colorcycle raise valueerror("rgba values should within 0-1 range") valueerror: rgba values should within 0-1 range <matplotlib.figure.figure @ 0x1b5e93b5ba8> what mean , how fix it? you loop has like: for row in reader: data.append(row[:]) a.append(row[1]) # add element list use append b.append(row[2]) plt.plot(a,b) plt.show() you have plot after filling lists a , b . i recommend plot stock data candlestick here: https://stackoverflow.com/a/33068041/2666859

Use the camera with android -

Image
i'm trying use camera app when push button application crashes , in android monitor appears following message: java.lang.securityexception: permission denial: starting intent { act=android.media.action.image_capture cmp=com.android.camera2/com.android.camera.captureactivity } processrecord{bd3e6b7 4753:com.demonsystem.trackingticket/u0a94} (pid=4753, uid=10094) revoked permission android.permission.camera this code in main activity: btncamara.setonclicklistener(new view.onclicklistener() { @override public void onclick(view view) { intent = new intent(mediastore.action_image_capture); startactivityforresult(i,0); <-- here shows error ocultar(); } }); and these permissions: private void checkcamerapermission() { int permissioncheck = contextcompat.checkselfpermission( this, manifest.permission.camera); if (permissioncheck != packagemanager.

javascript - Transform the input array to another array of the objects with the same structure -

hi have problem want input array , transform other array based on condition given below : you given input array of intervals on number axis. each interval, start point, end point , “value” known. write function in pure javascript, transform input array array of objects same structure. function should sum “values” of intersecting intervals , include in result intervals different sum of “values”. see examples of input , expected output. note start , end point coordinates may have fractional values. here input , desire output: var input1 = [ { start :1, end :2, value :1 }, { start :2, end :3, value :1 } ]; var output1 = [ { start :1, end : 3, value :1 } ]; var input2 = [ { start :1, end :3, value :1 }, { start :2, end :4, value :1 } ]; var output2 = [ { start :1, end :2, value :1 }, { start :2, end :3, value :2 }, { start :3, end :4, value :1 } ]; var input3 = [ { start :1, end :3, value :1 }, { start :2, end :4

change null value from database for one field using logstash and insert into Elasticsearch -

i replace value of field null other value. field obtained using logstash jdbc plugin database. here config file. input { jdbc { jdbc_connection_string => "url" jdbc_user => "user" jdbc_password => "pswd" jdbc_driver_library => "./ifxjdbc-3-50-jc7.jar" jdbc_driver_class => "com.informix.jdbc.ifxdriver" statement => ["select st1.name s_name, st1.typ, st2.name comp_name, zen.s_id, zen.comp_id, zen.conc_1, zen.conc_2 sub_zen zen join sub st1 on st1.id = zen.s_id join sub st2 on st2.id = zen.comp_id"]}} what here replace nil value (by default typ nil) p. tried far. filter{ mutate { gsub => [ "typ", "nil", "p" ] } } does not work. i tried throws error filter{ ruby { code => " if event.get('typ') == nil event.set('typ') == p end " } } can here. how can fix this. if field null / nil, might jdbc input not putting field

How to upload file and generate unique URL to display file in ASP.NET MVC -

i have working code upload csv-file view on same page. want view each file on unique url. so, this: user choses csv-file upload submits gets redirected unique url (e.g. /index/1234, 1234 unique id - each file get's uploaded has unique id let's unique id should "filename" or something) on unique url, content of file gets displayed i want list on index every file uploaded get's displayed, , user can choose file view. view @using read_csv_mvc.models @model ienumerable<customermodel> @{ layout = null; } <!doctype html> <html> <head> <meta name="viewport" content="width=device-width" /> <title>index</title> <style type="text/css"> body { font-family: arial;

html5 - header and footer elements must be inside the .container? -

keeping html 5 elements header , footer inside .container div of bootstrap practice? except setting padding externally when place out of .container, working both ways want know practice. good practice have <header> <main> <footer> as top-level elements inside <body> of html document. additionally, might want have <nav> (principal navigation) <aside> (sidebar) as top-level elements inside <body> of html document. of course, not practice - 1 example of practice.

json - how to write this code in swagger.io for schema -

code { "total": "string", "money": "string", "firsttype": "string", "secondtype": "string", "requestdate": "string", "firstparty": [ { "key": "string", "value": "string" } ], "secondparty": [ { "key": "string", "value": "string" } ] } yaml key value pair, format different. nested json identified indentation.

How to adress and change (to a sum) a bar in a Waterfall-Chart in Excel VBA? -

Image
i have waterfall-chart in excel. in picture, can see structure. first bar overall budget. second bar specific budget branche. following bars expenses or potential expenses number differ time time. last bar remaining budget. as can see in picture, when add expense, bar number 8, before remaining budget, stays bar defined "sum". need vba-code set second , last bar sum. i never worked charts in excel vba, , have no idea how solve problem, couldn't find on internet or @ stackoverflow waterfall charts. sub makro2() activesheet.shapes.range(array("chart 6")).select end sub when used macro recorder while changing bar 8 "no sum" , bar 9 "sum" selection recorded.

jsf - Changing first day of the week in PrimeFaces calendar -

hello using primefaces p:calendar component, question how set monday first day of week, not sunday (default)? code tag p:calendar : <p:calendar id="todate" label="#{msg.date_to_report}" value="#{dailycashierreport.todate}" showon="button" pattern="dd-mm-yyyy" /> reference image for changing first day of week, set locale="en_gb" p:calendar component as: <p:calendar id="todate" label="#{msg.date_to_report}" locale="en_gb" value="#{dailycashierreport.todate}" showon="button" pattern="dd-mm-yyyy" /> and define following javascript in template: <script> primefaces.locales['en_gb'] = { firstday : 1 }; </script> but, if want change language well, see reference link other available options. reference link