Posts

Configure Apache and php

#Config httpd.conf
ServerRoot "D:/webserver/apache"
Listen 81 // incase unable to bind to 80
LoadModule rewrite_module modules/mod_rewrite.so // Uncomment
ServerName localhost:81
DocumentRoot "D:/webserver/www/"
<Directory "D:/webserver/www">
AllowOverride All

DirectoryIndex index.html index.php

#In the end put these config for php
#Configuration of php for apache

LoadModule php7_module "D:/webserver/php/php7apache2_4.dll"
ScriptAlias /php/ "D:/webserver/php/"
AddType application/x-httpd-php .php .php5 .html
Action application/x-httpd-php "/php/php-cgi.exe"
SetEnv PHPRC "D:/webserver/php"
PHPIniDir "D:/webserver/php/"


//now configure php.ini

rename php.ini-production to php.ini
#inside php.ini

doc_root = "D:/webserver/www"
extension_dir = "D:/webserver/php/ext"
upload_tmp_dir = "D:/webserver/apache/temp/upload"
session.save_path = "D:/webserver/apache/temp/session&…

For .NET Developers

A must know points For .NET Developers

- Build dynamic applications in an agile environment

- Must have strong C# programming experience.

- Web API / Azure API development experience.

- Experience with the Agile methodology and Test Driven Development.

- .Net Core development experience.

- PowerShell scripting experience

- Team Foundation Server / Visual Studio Team Services

- Build and Release Management.

- Automated DevOps with Microsoft Azure Resource Manager.

- Architecture and development experience in enterprise applications

- An understanding and knowledge of .Net, Web Services, WPF, WCF, MVC, Patterns/OO Design, and Web Frameworks

- VB.NET

- Visual Studio

- .NET Framework 3.5 and/or 4.0, XML, AJAX

- ASP.NET

- Agile Design Patterns

- HTML / CSS / Javascript

- MS SQL Server

Get Computer description

Get Computer description For Windows Operating System using C#
using System.Win32;
string key = @"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters";
string computerDescription = (string)Registry.GetValue(key, "srvcomment", null);

Remove Diacritics Using C#

Remove Diacritics Using C#


public static string NormalizeString(string text)
{
    string normalStr = text.Normalize(NormalizationForm.FormD);
    var stringBuilder = new StringBuilder();

     foreach (var c in normalStr)
     {
          var unicodeCategory = CharUnicodeInfo.GetUnicodeCategory(c);
          if (unicodeCategory != UnicodeCategory.NonSpacingMark)
          {
             if (char.IsWhiteSpace(c))
                 stringBuilder.Append((char)32); // Removed &nbsp;(160) &#32
             else
                 stringBuilder.Append(c);
           }
      }
            return stringBuilder.ToString().Normalize(NormalizationForm.FormC);
}

IT Propessional should have these things

#topic_titlte# Must have things for IT professionals #title#
#topic_para# A domain name #para#
#topic_para# A cool website #para#
#topic_para# A portfolio portal #para#
 #topic_para# Updated Resume on your website #para#
 #topic_para#  Blog writing on current treand and technologies. #para

Certificate Pinning in Windows 10 UWP app

Certificate Pinning in Windows 10 UWP app To add certificate pinning in windows 10 UWP apps 1. Go to package-appxmanifest 2. Select Declaration tab. 3. Select Certificate and add it from available declarations drop down menu. 4. Copy your .cer file and paste it to project folder. 5. Select the file and change its build action to Content from properties. 6. Select exlusive trust and auto select option from declaration tab. 7. Provide store name for selected certificate.( If certificate type is root then Store Name would be "Root", if it is "Intermediate" Store Name would be "CA" and if it is other then store name would be "TrustedPeople"). 8. Browse certificate file or give path for .cer.
Now try to run execute your scenario. Hope this will be helpful.