Posts

angular - Angular2 Custom Component - mark as pristine and untouched -

i have template driven form in angular 2.1 containing many standard controls ( <input>, <select> etc) , custom control contains multiple input elements. i've implemented controlvalueaccessor on custom control , propagating it's changed/touched/valid values correctly parent form. however .. on parent form have save button, on after saving want clear dirty/touched state (as affects css applied) this: save(myform: ngform) { myform.form.markaspristine(); myform.form.markasuntouched(); } this working ok elements in top level parent form , custom control but <input> fields within custom control still marked touched/dirty (and receiving pre-saved styling). is there way custom control can notified when it's dirty/touched state changed can clear it's child <input> elements match? seems if <input> elements within custom control don't updated calls markaspristine/untouched on parent form. thanks! try add con...

css - GtkStyleProvider - providing own implementation -

i trying provide own implementation of gtkstyleprovider , since "normal" css provider lot of work , processing use in case. i want able provide widget styling based on internal state, , in css, i'd have write out huge string of css (translating things pango.fontdescription s css-style declarations) based on change in state, , feed gktcssprovider process back gtk-land. compare custom provider, signal (somehow) client widgets should ask style , hand out new styling based directly on state. it seems gtkstyleprovider way achieve - can make provider returns styling based on state, , add style provider relevant gtkstylecontext . (c) interface is // deprecated - return null in new code gtkiconfactory * gtk_style_provider_get_icon_factory ( gtkstyleprovider *provider, gtkwidgetpath *path);) // deprecated - return null in new code gtkstyleproperties * gtk_style_provider_get_style ( ...

xml - XSD : Unordered list of element that contains xs:any -

Image
i have unordered list of elements contains xs:any , multiple combinations of choice , sequence tried , violate "unique particle attribution" . xml following : <mall id="andaal"> <eff>effrecorder</eff> <morr>id</morr> <todd>toddcurrenttype == toddidoldtype</todd> <mall id="donallid"> <morr>id</morr> <eff>effrecorder</eff> <other>quickcode</other> <mall id="mall2id"> <eff>tickerchaineff</eff> <morr>sourceid</morr> <other>tickercode</other> </mall> </mall> <mall id="mall2sourceid"> <eff>listing2sourceeff</eff> <morr>id</morr> <other>other2price</other> <other>expirydate</other> </mall> </mall> the ...

visual studio 2015 different theme for same user account -

is there way change theme visual studio 2015 without changing other people using same account? at work use same account , every time change theme dark changes else in office (although there 3 of , other guy not effected somehow). try uncheck environment - synchronized settings - synchronize settings across devices when signed visual studio option. see synchronized settings in visual studio more details.

powershell - Can Invoke-Command be used to call Invoke-Command on a third system? -

i've got segmented active directory network multiple vlan's can talk local ad server, ad servers can talk each other. i'd have script can proxy through each ad server run command on each system per vlan. however, code doesn't appear run commands. function runremote { param([string]$scriptblock,[string]$server,[string]$dc) $icm = '[scriptblock]$sb=[scriptblock]::create(' + $scriptblock + ');icm -cn ' + $server + ' -scriptblock $sb' icm -cn $dc -scriptblock { $icm } } $scriptblock = "date" $server = "comp01" $dc= "dc01" runremote $scriptblock $server i'm not receiving errors, none of commands sent being run on remote servers. if make interactive session ad server, invoke command works expected each vlan. i think have dubble hop problem. you're credentials aren't passed next hop. can send you're credentials first invoke parameters , in second invoke use p...

android - Strange const definition with asm -

i trying build ne10 library android, cmake reports: -- target architecture: armv7 -- building type: release -- loaded toolchain: ../android/sdk/ndk-bundle//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc ../android/sdk/ndk-bundle//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-g++ ../android/sdk/ndk-bundle//toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-as -- cmake_c_flags: -std=c11 -fno-strict-aliasing -o2 -dndebug --sysroot=/home/gica/android/sdk/ndk-bundle//platforms/android-21/arch-arm/ -pie -mthumb-interwork -mthumb -march=armv7-a -mfloat-abi=hard -mfpu=vfp3 -wl,--no-warn-mismatch but compiler reports error: in file included ...ne10/common/ne10_mask_table.c:32:0: ..ne10/common/ne10_mask_table.h:41:65: error: expected '=', ',', ';', 'asm' or ' attribute ' before 'asm...

php - Wordpress: Space between the slugs -

i have code display slugs of post: <?php $terms = get_the_terms( $post->id, 'project-category' ); foreach($terms $term){ echo $term->slug; } ?> but sticky each other like: cateogry-01cateogry-02 how can make like: cateogry-01 cateogry-02 change: echo $term->slug; to: echo $term->slug . ' ';