Windows Subsystem for Linux 2 (WSL 2) is one of the most popular features for developers on Windows 10 and 11. It has recently been made available on Windows Server 2022. With this addition, you can now run Linux containers on WSL 2 on Windows Server 2022 for development and testing purposes.
آموزش عالی برای کسانی که میخواهند WPF و الگوی MVVM و CODE FIRST رو باهم یاد بگیرند :
At the core of developing a data-driven WPF application is a thorough knowledge of how to use the MVVM Pattern and Entity Framework. In this course, Building an Enterprise App with WPF, MVVM, and Entity Framework Code First, you will learn the skills you need to create high-quality enterprise applications with WPF. First, you'll learn about typical scenarios like communicating between different ViewModels, detecting model changes, and handling many-to-many relations. Next, you'll learn all about creating a tabbed user interface. Finally, you'll explore implementing optimistic concurrency and styling your application. When you're finished with this course, you will have a deep understanding of WPF, MVVM, and Entity Framework that will help you immensely as you move forward and create your own data-driven enterprise application
کار با Vim در Visual Studio Code
در این بین ... اتفاقی رخ نمیدهد و کاربر از پیشرفت عملیات آگاه نمیشود. در این مطلب قصد داریم این وضعیت را بهبود دهیم.
افزودن یک progress-bar به صفحهی آغازین برنامههای Blazor WASM
Blazor امکان دسترسی به چرخهی حیات ابتدایی آنرا نیز میسر کردهاست. برای اینکار ابتدا باید به آن گفت که دریافت خودکار تمام موارد مورد نیاز را انجام نده و ما اینکار را خودمان انجام خواهیم داد:
<script src="_framework/blazor.webassembly.js" autostart="false"></script>
الف) تغییر متن Loading پیشفرض جهت نمایش یک progress-bar
<body> <div id="app"> <div class="d-flex flex-column min-vh-100"> <div class="d-flex vh-100"> <div class="d-flex w-100 justify-content-center align-self-center"> <div class="d-flex flex-column w-25"> <div>Loading <label id="progressbarLabel"></label></div> <div class="progress mt-2" style="height: 2em;"> <div id="progressbar" class="progress-bar progress-bar-striped"></div> </div> </div> </div> </div> </div> </div>
ب) سپس فایل جدید js/blazorLoader.js را با محتوای زیر اضافه میکنیم. در ابتدای این فایل به المانهای progressbar و progressbarLabel طرح فوق اشاره میشود:
(function () { let resourceIndex = 0; const fetchResponsePromises = []; const progressbar = document.getElementById("progressbar"); const progressbarLabel = document.getElementById("progressbarLabel"); const loadStart = new Date().getTime(); if (!isAutostartDisabled()) { console.warn( "`blazor.webassembly.js` script tag doesn`t have the `autostart=false` attribute." ); return; } Blazor.start({ loadBootResource: function (type, filename, defaultUri, integrity) { if (type === "dotnetjs") { progressbarLabel.innerText = filename; return defaultUri; } const responsePromise = fetch(defaultUri, { cache: "no-cache", integrity: integrity, }); fetchResponsePromises.push(responsePromise); responsePromise.then((response) => { if (!progressbar) { console.warn("Couldn't find the progressbar element on the page."); return; } if (!progressbarLabel) { console.warn( "Couldn't find the progressbarLabel element on the page." ); return; } resourceIndex++; const totalResourceCount = fetchResponsePromises.length; const percentLoaded = Math.round( 100 * (resourceIndex / totalResourceCount) ); progressbar.style.width = `${percentLoaded}%`; progressbar.innerText = `${percentLoaded} % [${resourceIndex}/${totalResourceCount}]`; progressbarLabel.innerText = filename; if (percentLoaded >= 100) { var span = new Date().getTime() - loadStart; console.log(`All done in ${span} ms.`); } }); return responsePromise; }, }); function isAutostartDisabled() { var wasmScript = document.querySelector( 'script[src="_framework/blazor.webassembly.js"]' ); if (!wasmScript) { return false; } var autostart = wasmScript.attributes["autostart"]; return autostart && autostart.value === "false"; } })();
<script src="_framework/blazor.webassembly.js" autostart="false"></script> <script src="js/blazorLoader.js"></script> </body>
- محتوای blazorLoader.js، به صورت خود اجرا شونده تهیه شدهاست.
- متد Blazor.start، کار آغاز دستی Blazor WASM و دریافت فایلهای مورد نیاز آنرا انجام میدهد.
- خاصیت loadBootResource آن، به تابعی اشاره میکند که پیشنیازهای اجرایی Blazor WASM را دریافت میکند.
- در متد سفارشی loadBootResource که تهیه کردهایم، responsePromiseها را شمارش کرده و بر اساس تعداد کلی آنها و مواردی که دریافت آنها به پایان رسیدهاست، یک progress-bar را تشکیل و نمایش میدهیم.
- تابع isAutostartDisabled، بررسی میکند که آیا ویژگی autostart مساوی false، به تگ اسکریپت blazor.webassembly.js اضافه شدهاست یا خیر؟
کدهای کامل این مطلب را از اینجا میتوانید دریافت کنید: BlazorWasmLoadingBar.zip
Visual Studio 2019 RC منتشر شد
- Team Explorer - Changes: panel not sizing to the Team Explorer window.
- Visual Studio 2017 SQL Server Object Explorer server list not persisting .
- intellisense problems with linux-x64 mode.
- Index was out of range. Must be non-negative and less than the size of the collection.Parameter name: index.
- Visual Studio 2017 UNDO does not work/stops working (reported AGAIN!!!!).
- Intellisense not working for files created under WSL.
- Intellisense error: C++11 static constexpr member initialization causes "member may not be initialized".
- VS doesn't restore windows position when switching in/out of debug.
- Third party toolbox items are reloaded every time VS2019 Preview 2.2 is started.
- 'Set as StartUp Project' crashes the IDE after updating to VS2019 Preview Release 3.
- Visual Studio 2019 building Visual Studio 2017 C++ projects fail.
- Fixed Toolbox refresh issue.
- Toolbox controls are making vssettings file too big.
- SSDT: Fix for Login failed errors when performing a New Data comparison function .
- SSDT: Fix for Source is Unavailable error when performing Schema Compare .
- SSDT: Fix for Schema Compare Generate Script does not generate script .
- SSDT: Fix to improve performance of loading solutions with multiple projects.
- SSDT: Fix for SQL files not always being deleted when performing a Schema Compare between a database and a project and a delete table is executed subsequently.
- SSDT: Accessibility fixes to improve narration capabilities.
- SSDT: Replaced older sqlncli driver with new Microsoft ODBC Driver for SQL Server.
حسابداری برای توسعه دهندهها
Accounting For Software Engineers
The difference between accountants and software engineers, when it comes to accounting systems, is about what we primarily care about. Accountants care about meaning: is the quick ratio in good shape? Is income growing at an expected rate? How do we deal with an upcoming expense? Software engineers care about: will we properly move money around so that the balances are correct given certain latency, concurrency, etc.? Do we have the information required to generate the Income Statement? How do we represent a credit memo?
ادغام قالب admin در reactjs
Integrate Admin Template in ReactJS is today’s leading topic. If you are working on Web Application then admin panel template is neccessary for any application. You need to download the ADMINLTE template from its original website: AdminLTE
The Kubernetes project plans to deprecate Docker Engine support in the kubelet and support for dockershim will be removed in a future release, probably late next year.