惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
Y
Y Combinator Blog
宝玉的分享
宝玉的分享
S
Secure Thoughts
The Cloudflare Blog
P
Proofpoint News Feed
腾讯CDC
Latest news
Latest news
AWS News Blog
AWS News Blog
The Hacker News
The Hacker News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
IT之家
IT之家
T
The Exploit Database - CXSecurity.com
T
Threat Research - Cisco Blogs
C
Cybersecurity and Infrastructure Security Agency CISA
V
Vulnerabilities – Threatpost
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
小众软件
小众软件
L
Lohrmann on Cybersecurity
Apple Machine Learning Research
Apple Machine Learning Research
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
L
LINUX DO - 热门话题
博客园_首页
Hacker News - Newest:
Hacker News - Newest: "LLM"
Google Online Security Blog
Google Online Security Blog
T
Threatpost
Project Zero
Project Zero
Cyberwarzone
Cyberwarzone
月光博客
月光博客
G
GRAHAM CLULEY
P
Palo Alto Networks Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Help Net Security
Help Net Security
K
Kaspersky official blog
A
Arctic Wolf
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cyber Attacks, Cyber Crime and Cyber Security
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Troy Hunt's Blog
Webroot Blog
Webroot Blog
SecWiki News
SecWiki News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
H
Heimdal Security Blog
N
News | PayPal Newsroom
C
Cisco Blogs
博客园 - 叶小钗
C
CXSECURITY Database RSS Feed - CXSecurity.com
WordPress大学
WordPress大学
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed

博客园 - FredGrit

WPF ContentControl Template WPF DatagridTemplate Binding DataTemplate WPF TreeView explicitly given key name to HierarchicalDataTemplate WPF, parse XMlDocument as List WPF two separated datagrid scroll synchronously both in horizontal and vertical via behavior WPF ContentControl Template is ControlTemplate, ContentTemplate is DataTemplate and must assign value to Content explicitly WPF TreeView show WCF config file WPF itemscontrol loaded downloaded data from WCF via httpclient WPF TreeView HierarchicalDataTemplate DataTemplate, Enum get enum name WPF consume xml generated by WCF , C# deserialize xml to List WPF implemented ICommand and IDisposable WPF ContextMenu,MenuItem command can binding to datacontext's command directly WPF usercontrol pass contextmenu command via implemented Freezable class which does not attach on Visual tree, then invoked in caller MVVM WPF consume data generate by WCF and save via ContextMenu Command in MVVM C# export List<T> to excel file via EPPlus WPF ContextMenu does not rely on host visual tree, the Freezable can exist independently, convey dependency property in usercontrol to caller C# JsonConvert DeserializeObject MissingMemberHandling.Ignore when the source model is completed and the required is partial Freezable objects do not require attachment to the WPF visual tree, maintain a persistent lifetime, and serve as a reliable binding relay between a detached ContextMenu and its parent host control. C# run httplistener to act as service application asynchronously in console, semaphoreslim allow the max concurrent number WPF Microsoft.Xaml.Behaviors.WPF, EventTrigger EventName="PreviewMouseDown" the tunnel event, while the MouseDown can't trigger the command because it was swallowed WPF customize command implemented ICommand, volatile read method is thread safe, preventing cpu and comipler reorder and optimization. WPF ItemsControl load huge 50M+ data WPF consume data generated by WCF periodically in json format WPF customize command based on ICommand and manually trigger WPF consume data generated by grpc services C# produce and consume data via Google.Protobuf WCF produce message and WPF consume periodically via DispatcherTimer WCF deconstruct WebConfig includes bindings, behaviors, service, endpoint ,serviceHostingEnvironment C# insert data into SQLite in batch periodically WPF SQLite SQLiteStudio WPF customize MultiSelectComboBox based on combobox WPF DataGrid Context menu binding command and commandparameter to datacontext WCF set fixed port as http://localhost:8888/ via Project /Properties/web/project url to create virtual directory WPF customize datagrid behavior based on behavior&lt;datagrid&gt; with command and command parameter WPF Microsoft Visual Studio XAML designer is busy WCF WebHttpBinding support both http and https WCF support basicHttpBinding and webHttpBinding - FredGrit WCF TestClient set fixed configuration file WPF consume http json and update periodically via DispatcherTimer WPF Prism.Core version 9.0.537 implemented navigation register singleton with splash screen, pass global variable via RegisterSingleton method WPF render periodically via DispatcherTimer, customize behavior - FredGrit Python cosume WCF service via requests in json format WPF call webHttpBinding from WCF WCF binding webHttpBinding is used to web browser in json format both in request and response WPF invoke WCF dll periodically via DispatcherTimer WCF webHttpBinding is open for web browser and wpf WPF DataTemplateSelector WPF DataGrid customize behavior with multiple commands and command parameters then invoke in mvvm WPF DataGrid behavior customize command and command parameter then invoke and implemented in MVVM WPF ItemsControl customize behavior and save all items WCF service can be accessed by browser WPF WCF produce data as service and WPF consume data as client periodically WPF GRPC and Probuf generated data as service then consume by wpf periodically WPF customize behavior based on Microsoft.Xaml.Behaviors.Wpf with command and commandparameter WPF call data from CPP wrapper dll via CLI\CLR - FredGrit WPF customize behavior WPF get gpu information via System.Management WPF ItemsControl IsItemsHost=True WPF Customize behavior and dependency property command C# Serilog, Serilog.Sinks.Console, Serilog.Sinks.File C# Serilog both in file and console Windows powershell view huge file via command C# serialize huge data more than 100M via splitting into batch and concatenating as one big json file WPF WeakReference C# serialize datetime then deserialize, print lose precision. resolve by ToString(&quot;o&quot;) C# produce data and send via WebSocket as service, Python,Flask,HTML as consumer invoke periodically C# write generated data service and sent via websocket, then consume by python periodically C# WebSocket console as service provide data, another console as client,send request periodically C# WebAPI [HttpGet(&quot;{cnt}&quot;] pass argument WPF implement ICommand with async execute WPF ListBox control virtualization in mvvm WPF Data Source invoke from web api C# WebAPI
C# DateTime print precision to microseconds
FredGrit · 2026-03-18 · via 博客园 - FredGrit
namespace ConsoleApp9
{
    internal class Program
    {
        static async Task Main(string[] args)
        {
            await PeriodicalTimerDemo();
        }

        static async Task PeriodicalTimerDemo()
        {
            long idx = 0;
            var periodic = new PeriodicTimer(TimeSpan.FromSeconds(1));
            while (await periodic.WaitForNextTickAsync())
            {                
                var dt = DateTime.Now;
#if NET7_0_OR_GREATER
                Console.WriteLine($"Idx:{Interlocked.Increment(ref idx)},{dt:yyyyMMddHHmmss},{dt.Millisecond:D3},{dt.Microsecond:D3}");
#else
                int microseconds=(int)(dt.Ticks%10000L)*100;
                Console.WriteLine($"Idx:{Interlocked.Increment(ref idx)},{dt:yyyyMMddHHmmss},{dt.Millisecond:D3},{microseconds:D3}");
#endif
            }
        }
    }
}
Idx:1,20260318225823,078,550
Idx:2,20260318225824,083,852
Idx:3,20260318225825,081,992
Idx:4,20260318225826,078,806
Idx:5,20260318225827,089,330
Idx:6,20260318225828,078,888
Idx:7,20260318225829,081,529
Idx:8,20260318225830,077,461
Idx:9,20260318225831,078,272
Idx:10,20260318225832,089,761
Idx:11,20260318225833,082,224
Idx:12,20260318225834,089,935
Idx:13,20260318225835,082,938
Idx:14,20260318225836,077,718
Idx:15,20260318225837,089,501
Idx:16,20260318225838,085,553
Idx:17,20260318225839,083,220
Idx:18,20260318225840,080,461
Idx:19,20260318225841,080,148
Idx:20,20260318225842,091,826
Idx:21,20260318225843,077,704
Idx:22,20260318225844,075,862
Idx:23,20260318225845,089,458
Idx:24,20260318225846,083,781
Idx:25,20260318225847,085,645
Idx:26,20260318225848,080,265
Idx:27,20260318225849,089,843
Idx:28,20260318225850,084,761
Idx:29,20260318225851,081,516
Idx:30,20260318225852,085,121
Idx:31,20260318225853,084,545
Idx:32,20260318225854,081,478
Idx:33,20260318225855,088,859
Idx:34,20260318225856,088,164
Idx:35,20260318225857,083,039
Idx:36,20260318225858,074,867
Idx:37,20260318225859,086,694
Idx:38,20260318225900,083,387
Idx:39,20260318225901,076,941
Idx:40,20260318225902,086,705
Idx:41,20260318225903,077,369
Idx:42,20260318225904,089,102
Idx:43,20260318225905,087,997
Idx:44,20260318225906,079,256
Idx:45,20260318225907,089,105
Idx:46,20260318225908,079,654
Idx:47,20260318225909,075,703
Idx:48,20260318225910,078,652
Idx:49,20260318225911,089,136
Idx:50,20260318225912,085,375
Idx:51,20260318225913,081,687
Idx:52,20260318225914,076,458
Idx:53,20260318225915,087,823
Idx:54,20260318225916,077,432
Idx:55,20260318225917,082,028
Idx:56,20260318225918,081,955
Idx:57,20260318225919,089,518
Idx:58,20260318225920,082,625
Idx:59,20260318225921,080,940
Idx:60,20260318225922,079,523
Idx:61,20260318225923,077,341
Idx:62,20260318225924,078,989
Idx:63,20260318225925,089,940
Idx:64,20260318225926,085,318
Idx:65,20260318225927,082,639
Idx:66,20260318225928,087,783
Idx:67,20260318225929,080,447
Idx:68,20260318225930,075,693
Idx:69,20260318225931,085,554
Idx:70,20260318225932,081,865
Idx:71,20260318225933,080,118
Idx:72,20260318225934,081,262
Idx:73,20260318225935,077,701
Idx:74,20260318225936,088,787
Idx:75,20260318225937,085,029
Idx:76,20260318225938,075,424
Idx:77,20260318225939,078,488
Idx:78,20260318225940,079,745
Idx:79,20260318225941,074,703
Idx:80,20260318225942,080,667
Idx:81,20260318225943,076,907
Idx:82,20260318225944,089,796
Idx:83,20260318225945,079,277
Idx:84,20260318225946,080,296
Idx:85,20260318225947,078,775
Idx:86,20260318225948,086,470
Idx:87,20260318225949,084,613
Idx:88,20260318225950,082,455
Idx:89,20260318225951,082,900
Idx:90,20260318225952,079,693
Idx:91,20260318225953,089,305
Idx:92,20260318225954,087,777
Idx:93,20260318225955,082,283
Idx:94,20260318225956,079,219
Idx:95,20260318225957,075,031
Idx:96,20260318225958,075,499
Idx:97,20260318225959,083,137
Idx:98,20260318230000,075,244
Idx:99,20260318230001,078,233
Idx:100,20260318230002,087,550
Idx:101,20260318230003,075,410
Idx:102,20260318230004,074,935
Idx:103,20260318230005,089,576
Idx:104,20260318230006,087,642
Idx:105,20260318230007,078,785
Idx:106,20260318230008,089,547
Idx:107,20260318230009,075,658
Idx:108,20260318230010,079,254
Idx:109,20260318230011,077,778
Idx:110,20260318230012,087,055
Idx:111,20260318230013,084,283
Idx:112,20260318230014,081,222
Idx:113,20260318230015,084,055
Idx:114,20260318230016,078,983
Idx:115,20260318230017,077,694