zone

EXCEPTION: Error: Uncaught (in promise): Expected 'styles' to be an array of strings

落爺英雄遲暮 提交于 2019-12-12 14:09:22
问题 I'm working on angular2 "2.0.0-rc.1" But zoneJS is giving following error Error: Uncaught (in promise): Expected 'styles' to be an array of strings. at resolvePromise (zone.js:538) at zone.js:515 at ZoneDelegate.invoke (zone.js:323) at Object.NgZoneImpl.inner.inner.fork.onInvoke (eval at <anonymous> (vendor.js:335), <anonymous>:45:41) at ZoneDelegate.invoke (zone.js:322) at Zone.run (zone.js:216) at zone.js:571 at ZoneDelegate.invokeTask (zone.js:356) at Object.NgZoneImpl.inner.inner.fork

How to change time zone settings using windows api

限于喜欢 提交于 2019-12-05 18:58:49
I need to change DST and time zone via API in my application. I modified & copied example of "SetTimeZoneInformation" usage by the end of the following link and have run it: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724944(v=vs.85).aspx I am assuming that my time settings should reflect on my time settings in tray or control panel. But nothing happens. Following thing also should be noticed. This code modifies "HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation" key content. And there are no changes in "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\my time

Conditional background color in line charts

半腔热情 提交于 2019-12-04 01:28:26
问题 I am currently trying to convert our charts over from PQ Systems Chartrunner to SSRS 2008 charts. I am currently working with a line chart in SSRS 2008 and am trying to get the background color to change for the different sigmas. I am able to calculate and chart the standard deviation sigma lines, but I have not been able to change the color of the background between the lines. What I have so far in SSRS: In the Chartrunner chart, the Red/Yellow/Green zones: Is there a way to do this in SSRS

Angular 4 put a global constant available to zone.js

。_饼干妹妹 提交于 2019-12-03 13:04:39
问题 i am using Angular (4 i think) with typescript and zone.js (0.8.4). I import zone.js via the "polyfills.ts" file. When I look inside the source code of zone.js, there is code like this: var isDisableIECheck = _global['__Zone_disable_IE_check'] || false; My question is, how can I set this variable in _globals ? Thanks 回答1: global is window object in a browser as can be seen here: (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory() : typeof

Angular 2 : what make a service to be “Outside” angular zone?

主宰稳场 提交于 2019-12-02 16:45:26
问题 After having same issues as many people on StackOverflow i didn't manage to understand what is an "Outside angular zone" Service ? I've checks all existing questions around this subject, and it's exactly why i needer to ask this one : https://github.com/angular/angular/issues/5150 Angular2: view is not updated from inside a subscription https://blog.thoughtram.io/angular/2016/02/22/angular-2-change-detection-explained.html http://blog.assaf.co/angular-2-change-detection-zones-and-an-example/

Angular 2 : what make a service to be “Outside” angular zone?

风格不统一 提交于 2019-12-02 10:20:17
After having same issues as many people on StackOverflow i didn't manage to understand what is an "Outside angular zone" Service ? I've checks all existing questions around this subject, and it's exactly why i needer to ask this one : https://github.com/angular/angular/issues/5150 Angular2: view is not updated from inside a subscription https://blog.thoughtram.io/angular/2016/02/22/angular-2-change-detection-explained.html http://blog.assaf.co/angular-2-change-detection-zones-and-an-example/ Code Example in any component with default ChangeDetectionStrategy : (considering this.value referenced

Getting Windows Time Zone Information (C++/MFC)

你。 提交于 2019-11-30 15:20:55
I’m trying to: Get a list of the time zone names as they appear in when the user selects a time zone from the Windows Control Panel (e.g., “(UTC-08:00) Pacific Time (US & Canada)”). I’m doing that by reading “CurrentVersion\Time Zones” section of the registry which works well. Get the currently selected time zone as a string. I can get the current time zone using GetTimeZoneInformation(), but the names don’t match the list of time zones retrieved from “CurrentVersion\Time Zones” section of the registry. For example, Pacific time appears as “(UTC-08:00) Pacific Time (US & Canada)” in the list

How do I modify my settings to allow VS2010 to load 3rd party XSD files from the “Unauthorized Zone”?

孤街醉人 提交于 2019-11-30 06:02:18
I have opened a 3rd party XSD file in Visual Studio 2010 that imports namespaces from other schema files from the same 3rd party. In the XML editor view of the schema file, the xs:import element is underlined with the following error: Request for the permission of type 'System.Security.Permissions.FileIOPermission', mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. I read the following blog post: http://blogs.msdn.com/b/xmlteam/archive/2009/06/04/understanding-xml-schema-sets-in-the-xsd-designer.aspx which states that it's a security zone violation and Visual

Getting Windows Time Zone Information (C++/MFC)

白昼怎懂夜的黑 提交于 2019-11-29 22:38:03
问题 I’m trying to: Get a list of the time zone names as they appear in when the user selects a time zone from the Windows Control Panel (e.g., “(UTC-08:00) Pacific Time (US & Canada)”). I’m doing that by reading “CurrentVersion\Time Zones” section of the registry which works well. Get the currently selected time zone as a string. I can get the current time zone using GetTimeZoneInformation(), but the names don’t match the list of time zones retrieved from “CurrentVersion\Time Zones” section of

How do I modify my settings to allow VS2010 to load 3rd party XSD files from the “Unauthorized Zone”?

坚强是说给别人听的谎言 提交于 2019-11-29 05:26:33
问题 I have opened a 3rd party XSD file in Visual Studio 2010 that imports namespaces from other schema files from the same 3rd party. In the XML editor view of the schema file, the xs:import element is underlined with the following error: Request for the permission of type 'System.Security.Permissions.FileIOPermission', mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed. I read the following blog post: http://blogs.msdn.com/b/xmlteam/archive/2009/06/04