اشتراک‌ها
انتشار Windows Forms Designer مخصوص NET Core.

We just released a GA version of .NET Core 3.0 that includes support for Windows Forms and WPF. And along with that release we’re happy to announce the first preview version of the Windows Forms Designer for .NET Core projects! 

انتشار Windows Forms Designer مخصوص NET Core.
نظرات مطالب
ارتقاء به ASP.NET Core 1.0 - قسمت 15 - بررسی تغییرات Caching
IIS و تمام مداخل آن، در اینجا هم معتبر هستند. کاری که مدخل static content انجام می‌دهد:
<staticContent>
   <clientCache httpExpires="Sun, 29 Mar 2020 00:00:00 GMT" cacheControlMode="UseExpires" />
</staticContent>
با نکته‌ی عنوان شده یکی هست (هر دو یک سری هدر را به Response نهایی اضافه می‌کنند).
اشتراک‌ها
مجموعه نکاتی از VS Code

In this article, I'm going to talk about some of my favorite tips and tricks about my favorite IDE, VS Code. Although I'm writing this on a Mac, many of these concepts will port to Windows, so you may have to replace COMMAND key, WIN key, etc.

مجموعه نکاتی از VS Code
اشتراک‌ها
دریافت نگارش نهایی Windows 10 Version 2004

شرکت مایکروسافت بالاخره دیروز به انتظارها پایان داد و نسخه جدید ویندوز 10 خودش یعنی نسخه 2004 (بخوانید بیست صفر چهار) را ارائه داد.... 

دریافت نگارش نهایی  Windows 10 Version 2004
نظرات مطالب
بومی سازی تاریخ و اعداد در جاوا اسکریپت در سال 2020
همان new Intl.RelativeTimeFormat مطلب فوق:
function timeDiff(current, prev) {
  const millisecond = current - prev;
  const second = millisecond / 1000;
  const minute = second / 60;
  const hour = minute / 60;
  const day = hour / 24;
  const week = day / 7;
  const month = week / 4.3;
  const year = month / 12;
  const quarter = year / 4;
  const unitValues = {
    millisecond,
    second,
    minute,
    hour,
    day,
    week,
    month,
    year,
    quarter
  };
  return function diffValueByUnit(unitKey) {
    return unitValues[unitKey];
  };
}


const from = new Date();
from.setDate(from.getDate() - 2);
console.log(from);
const to = new Date(Date.now());
console.log(to);
const diff = timeDiff(from, to);
const result = parseFloat(Math.round(diff("hour")));
console.log(result);
const rtf = new Intl.RelativeTimeFormat("fa");
console.log(rtf.format(result, "hour"));
با این خروجی:
> Wed Feb 19 2020 02:24:36 GMT+0330 (Iran Standard Time)
> Fri Feb 21 2020 02:24:36 GMT+0330 (Iran Standard Time)
> -48
> "۴۸ ساعت پیش"