اشتراک‌ها
اضافه شدن SHA1 به SQLite 3.17.0

The new sha1(X) function computes the SHA1 hash of the input X, or NULL if X is NULL, while the sha1_query(Y) function evalutes all queries in the SQL statements of Y and returns a hash of their results. 

اضافه شدن SHA1 به SQLite 3.17.0
اشتراک‌ها
کتابخانه combodate

Dropdown date and time picker.  Demo
This plugin converts <input type="text"> into dropdown elements to pick day, month, year, hour, minutes and seconds.

  • support of date, time, datetime
  • 12h / 24h format
  • based on moment.js  
کتابخانه combodate
اشتراک‌ها
کتابخانه jquery-typeahead
The jQuery Typeahead plugin provides autocomplete preview on search inputs similar to google search with builtin options and deep customization. It is a simple clientside library that will improve the user experience on your website search input!  Demo
کتابخانه jquery-typeahead
اشتراک‌ها
معرفی Smart Unit Tests

 Smart Unit Tests tries to address these impediments. It discovers all code paths in your code, synthesizes precise test input values that exercise those code paths, and then records what the output from your code was for the said inputs

معرفی Smart Unit Tests
نظرات مطالب
نوشتن اعتبارسنج‌های سفارشی برای فرم‌های مبتنی بر قالب‌ها در Angular
به جای قطعه کد زیر:
export class EqualValidatorDirective implements Validator {
  constructor(@Attribute("compare-to") public compareToControl: string) {}
بنده به شکل زیر عمل کرده‌ام. شاید سینتکس این روش ساده‌تر باشد.
export class EqualValidatorDirective implements Validator {
  constructor() {}
  @Input('compare-to') compareToControl: string;
  ///...
}

نظرات مطالب
ارتقاء به ASP.NET Core 1.0 - قسمت 21 - بررسی تغییرات Bundling و Minification
{
    "outputFileName": "out.js",
    "inputFiles": [ "in.js" ],
    "minify": {
        "enabled": true,
        "preserveImportantComments": true
    }
}
برای فایل‌های css هم:
 {
    "outputFileName": "output/bundle.css",
    "inputFiles": [
      "css/lib/**/*.css", // globbing patterns are supported
      "css/input/site.css"
    ],
    "minify": {
        "enabled": true,
        "commentMode": "all"
    }
  },
این تنظیمات را باید از فایل‌های سورس آن استخراج کرد. در اینجا و اینجا.
نظرات مطالب
اعمال کلاس‌های ویژه اعتبارسنجی Twitter bootstrap به فرم‌های ASP.NET MVC
مشکل به صورت خیلی ساده حل شد.
یکی از مشکلاتی که وجود داشت این بود که تایع زیر اجرا نمیشد.
//تنظیمات ولیدیتور
errorPlacement: function (error, element) {
        window.console.log($(error).text());
        if (element.parent(".input-group").length) {
            error.insertAfter(element.parent());
        } else {
            error.insertAfter(element);
        }
    }
برای رفع مشکل فوق تنها کافیه که
@Html.ValidationMessageFor(model => model.Name)
</div>
</div>

به صورت زیر نوشته بشه

</div>
@Html.ValidationMessageFor(model => model.Name)
</div>
نظرات مطالب
Url Routing در ASP.Net WebForms
- این نوع تصاویر را بجای آدرس نسبی، با آدرس مطلق ذخیره کنید.
- از HTML Agility pack برای ویرایش و اصلاح src در حین رندر نهایی استفاده کنید.
- امکان خارج کردن منابع از سیستم URL rewrite وجود دارد:
<rule name="RewriteUserFriendlyURL1" stopProcessing="true">
  <match url="^([^/]+)/?$" />
  <conditions>
     <add input="{URL}" negate="true" pattern="\.png$" />
  </conditions>
</rule>