Microsoft has released April Patch Tuesday, security updates with a total of 108 vulnerabilities in the family of Windows operating systems and related products. In the release by Microsoft, 19 were rated as Critical and 89 as Important. Six Chromium Edge vulnerabilities released earlier this month have not been included in these numbers.
اشتراکها
مجموعه JavaScript Idiosyncrasies
اشتراکها
کتابخانه dropzone
Dropzone.js is a light weight JavaScript library that turns an HTML element into a dropzone. This means that a user can drag and drop a file onto it, and the file gets uploaded to the server via AJAX. Demo
اشتراکها
هزینه جاوا اسکریپت
Building interactive sites can involve sending JavaScript to your users. Often, too much of it.
Byte-for-byte, JavaScript is still the most expensive resource we send to mobile phones, because it can delay interactivity in large ways.
اشتراکها
2.Visual Studio 2017 15.6 منتشر شد
These are the customer-reported issues addressed in this release:
- "Specified argument out of the range of valid values, parameter name: count"
git
tags. - Cannot open git commit details.
- VS2017 Installer crashes on Modify when SyncFusion WPF Templates are installed.
- Test Explorer loses position when tests are run.
- Test explorer test hierarchy constantly jumps to top.
- XAML editor always crashes when a change is made to the XAML file.
- Test Explorer keeps scrolling to the top when a new test starts.
- Viewing Git History shows: specified argument was out of range of values.
- Alt+Up/Down does not reposition file in .NET Framework projects.
- VS 15.6 deadlocks on solution load for .NET Core SDK project when a 'None Include' is added to file list.
- 15.6 preview 6 discovers test adapter, but fails to run tests.
- Test Explorer keeps scrolling to the top when a new test starts.
- Microsoft Security Advisories for .NET Core updates.
Microsoft Security Advisories for .NET Core
CVE-2018-0875: Microsoft is aware of a security vulnerability in the public versions of .NET Core where a malicious file or web request could cause a denial of service (DoS) attack.
- System administrators are advised to update their .NET Core runtimes to versions 1.0.10, 1.1.7 or 2.0.6. Developers are advised to update their .NET Core SDK to versions 1.1.8 or 2.1.101.
حجم تقریبی بروزرسانی از نسخه 15.6.1 به 15.6.2 برابر 1.2GB میباشد
Things I Wished More Developers Knew About Databases
- You are lucky if 99.999% of the time network is not a problem.
- ACID has many meanings.
- Each database has different consistency and isolation capabilities.
- Optimistic locking is an option when you can’t hold a lock.
- There are anomalies other than dirty reads and data loss.
- My database and I don’t always agree on ordering.
- Application-level sharding can live outside the application.
- AUTOINCREMENT’ing can be harmful.
- Stale data can be useful and lock-free.
- Clock skews happen between any clock sources.
- Latency has many meanings.
- Evaluate performance requirements per transaction.
- Nested transactions can be harmful.
- Transactions shouldn’t maintain application state.
- Query planners can tell a lot about databases.
- Online migrations are complex but possible.
- Significant database growth introduces unpredictability.
نظرات مطالب
بهبود SEO در ASP.NET MVC
- روش دوم اجبار به www با استفاده از ماژول rewrite در IISهای جدید
- روش دوم تولید Urlهای lower case
ماخذ: IIS Server through the eyes of an SEO
خلاصه آن:
<system.webServer> <rewrite> <rules> <rule name="Enforce WWW" stopProcessing="true"> <match url=".*" /> <conditions> <add input="{CACHE_URL}" pattern="^(.+)://(?!www)(.*)" /> </conditions> <action type="Redirect" url="{C:1}://www.{C:2}" redirectType="Permanent" /> </rule> </rules> </rewrite> </system.webServer>
<system.webServer> <rewrite> <rules> <rule name="SEO - Lower case" stopProcessing="false"> <match url="(.*)" ignoreCase="false" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_METHOD}" pattern="GET" /> <add input="{R:1}" pattern="[A-Z]" ignoreCase="false" /> </conditions> <action type="Rewrite" url="_{ToLower:{R:1}}" /> </rule> </rules> </rewrite> </system.webServer>
خلاصه آن:
<!-- SEO rules (from: http://www.seomoz.org/blog/what-every-seo-should-know-about-iis#chaining) --> <!-- SEO | Section 1 | Whitelist --> <rule name="Whitelist - Resources" stopProcessing="true"> <match url="^(?:css/|scripts/|images/|install/|config/|umbraco/|umbraco_client/|base/|webresource\.axd|scriptresource\.axd|__browserLink|[^/]*/arterySignalR/.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false" /> <action type="None" /> </rule> <!-- SEO | Section 2 | Rewrites (chaining) --> <rule name="SEO - Remove default.aspx" stopProcessing="false"> <match url="(.*?)/?default\.aspx$" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_METHOD}" pattern="GET" /> </conditions> <action type="Rewrite" url="_{R:1}" /> </rule> <rule name="SEO - Remove trailing slash" stopProcessing="false"> <match url="(.+)/$" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_METHOD}" pattern="GET" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> </conditions> <action type="Rewrite" url="_{R:1}" /> </rule> <rule name="SEO - Lower case" stopProcessing="false"> <match url="(.*)" ignoreCase="false" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_METHOD}" pattern="GET" /> <add input="{R:1}" pattern="[A-Z]" ignoreCase="false" /> </conditions> <action type="Rewrite" url="_{ToLower:{R:1}}" /> </rule> <!-- SEO | Section 3 | Redirecting --> <rule name="SEO - HTTP canonical redirect" stopProcessing="true"> <match url="^(_*)(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="true"> <add input="{HTTP_HOST}" pattern="^www\.(.*)" /> <add input="{HTTP_METHOD}" pattern="GET" /> <add input="{SERVER_PORT}" pattern="80" /> </conditions> <action type="Redirect" url="http://{C:1}/{R:2}" /> </rule> <rule name="SEO - HTTPS canonical redirect" stopProcessing="true"> <match url="^(_*)(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="true"> <add input="{HTTP_HOST}" pattern="^www\.(.*)" /> <add input="{HTTP_METHOD}" pattern="GET" /> <add input="{SERVER_PORT}" pattern="443" /> </conditions> <action type="Redirect" url="http://{C:1}/{R:2}" /> </rule> <rule name="SEO - Non-canonical redirect" stopProcessing="true"> <match url="^(_+)(.*)" /> <conditions logicalGrouping="MatchAll" trackAllCaptures="false"> <add input="{HTTP_METHOD}" pattern="GET" /> </conditions> <action type="Redirect" url="{R:2}" /> </rule> <!-- // SEO rules -->
This lets you do things that you can’t do in WebAPI’s default binder, specifically:
- ModelBinds everything, including the body. Assumes the body is FormUrl encoded
- This means you can do MVC scenarios where a complex type is bound with one field from the query string and one field from the form data in the body.
- Allows multiple parameters to be bound from the body.
اشتراکها