اشتراکها
کدوم قسمتش مشکل دسترسی داشت؟ چه خطایی گرفتید دقیقا؟ چه trust ایی رو اضافه کردید؟ (در هاستی که بتونید trust level رو تغییر بدید، یعنی عملا از لحاظ امنیتی درست تنظیم نشده و مداخل رو قفل نکرده)
نظرات مطالب
متدی برای بررسی صحت کد ملی وارد شده
با سلام
اینم واسه شناسه ملی اشخاص حقوقی منیع
اینم واسه شناسه ملی اشخاص حقوقی منیع
public bool IsValidIranianLegalCode(string input) { //input has 11 digits that all of them are not equal if (!Regex.IsMatch(input, @"^(?!(\d)\1{10})\d{11}$")) return false; var check = Convert.ToInt32(input.Substring(10, 1)); int dec = Convert.ToInt32(input.Substring(9, 1)) + 2; int[] Coef = new int[10] { 29, 27, 23, 19, 17, 29, 27, 23, 19, 17 }; var sum = Enumerable.Range(0, 10) .Select(x => (Convert.ToInt32(input.Substring(x, 1)) + dec) * Coef[x]) .Sum() % 11; return sum == check; }
// <Name>Aggregate Type Complexity</Name> from t in Application.Types let aggregateTypeCC = t.MethodsAndContructors.Sum(m => m.CyclomaticComplexity / 10) let rawCC = t.MethodsAndContructors.Sum(m => m.CyclomaticComplexity) // optional optimization if not comparing rawCC // where aggregateCC >= 10 orderby aggregateTypeCC descending select new { t, aggregateTypeCC, rawCC }
نظرات مطالب
ارسال مستقیم یک فایل PDF به چاپگر
با مقدار Timeout مشکل دارم، مثلا مقدار 10 که میدم در یک سیستم قدیمی چاپ انجام نمیشه و برای اطمینان از چاپ 50 که میدم ، چون دو برگه برای چاپ دارم یکی برای مشتری یکی برای مغازه دار دو دقیقه طول میکشه.
از خدا برای شما بهترین ها را آرزو میکنم.امشب مشکل من را حل کردید.امیدوارم که ثمره آن را در زندگی تان ببینی.اگر روزی بدانم میتوانم برایتان کاری انجام بدم و در توانم باشد دریغ نخواهم کرد.همیشه پیروز باشید.
2011/10/21 Disqus <>
2011/10/21 Disqus <>
اشتراکها
2.Visual Studio 2017 15.8 منتشر شد
These are the customer-reported issues addressed in 15.8.2:
- Publish single file context menu item missing.
- Git network operations not working: Cannot spawn git-askpass.exe.
- "Visual C++ Resource Editor Package" load failed.
- Preview Transform gives error.
- Cannot type close brace.
- Object reference not set to an instance of an object when deploying Service Fabric project after update 15.8.0.
- "The given path's format is not supported" installation error.
- Task ExpandPriContent failed. Illegal characters in path.
- "Could not create instance of type System.Collections.Genertic.Iset'1[Signer]" installer error.
- Service fabric deployment fails in 15.8.0.
- Cannot create app package for Windows store.
- Incorrect code generation for strongly-typed resources.
- Keyboard binding for Italian layout.
- IntelliSense broken #9999.
- When working on a Unity project and Unity rewrites multiple project files, the Visual Studio Tools for Unity will now automatically reload the solution.
- The customer will now get a dialog to close Office applications if they are blocking the Visual Studio install and causing a failure of 1303.
اشتراکها
NET 9 Release Candidate 2. منتشر شد
.NET 9 Release Candidate 2 is now available!
As we prepare the general availability (GA) release of .NET 9 in November we are adding our final touches around performance, stability, and any additional optimizations to make it the best release of .NET 9. Today, we are excited to announce the release of .NET 9 Release Candidate 2. As with Release Candidate 1, this release is covered by a go-live license so you can receive support when using it in your production applications. We encourage developers today to try out this latest release and give the teams feedback on anything that you find in your development so we can incorporate any additional enhancements into the final release.
اشتراکها
5 آنتی ویروس رایگان برای ویندوز
Hackers are smart and users are not being able to cope with their pace of evolution. The result is malware outbreaks we get to know about frequently. Windows is the most widely used OS on Pcs. That makes it the most widely targeted OS too. What is an average user’s (by average I mean not too technical) defense in such case? The anti malware programs. Of course, you have to pay a decent price for your PC to be secured from latest malware derivatives, but what’s better than to get the security for no cost?