Tuesday, September 19, 2017

6 Days of Allah ?



Allah said in Quran that HE create this univers in 6 days and earth in 2 days.


Here is proof:


Quranic Age of Universe and Earth:
Universe Age : 6 days
Earth Age: 2 days
2/6 = 1/3 = 0.33

Scientific Age of Universe and Earth:
Universe Age : 13.7 billion years
Earth Age: 4.57 billion years
4.57 / 13.7   = 1 / 3 = 0.33 

Allah 1 day is not same as Earth 1 day:

Theory of Relative by Albert Einstien
If the object is bigger, then time pass slowly like if you are near pyramids the time will pass slowly than some far from pyramids.
or
If you are near very big object like black hole and spend 5 years then come back to earth you will find 10 years are passed on earth.


Allah is the Greatest of everything ( Allahu Akbar  الله أكبر ) in this Universe so time near Allah is very slowly passed than Earth time so  by the scientific query we can easily find the time of Allah one day which can be or cannot be exact.  ( Allah knows best  الله اعلم)

13.7 billion years of earth = 6 days of Allah

13.7 / 6 = 2.28 billion years of earth = 1 day of Allah. (May be or may not be ) 



Monday, September 18, 2017

How to Run Powershell Script using C#?






Step1: Add System.Management.Automation.dll to project.

this is normaly not available so download it.

public string RunPowerShell()

{



Runspace runspace = RunspaceFactory.CreateRunspace();


//Opening Powershell RunSpace
runspace.Open();

//Opening pipeline to pass the powershell script
Pipeline pipeline = runspace.CreatePipeline();

//sending commands 
pipeline.Commands.AddScript(@"Get-ADUser  -Filter * -Properties displayName,mail,samaccountname,title,department,company,l,co,mobile,facsimileTelephoneNumber,manager,extensionAttribute2,extensionAttribute4,EmployeeType,canonicalName,enabled | select displayName,mail,samaccountname,title,department,company,l ,co,mobile,facsimileTelephoneNumber,manager,extensionAttribute2,extensionAttribute4,EmployeeType,canonicalName,enabled ");

//ending the script
pipeline.Commands.Add("Out-String");

//Creating PoweShell Object for result
Collection<PSObject> results = pipeline.Invoke();

//Closing Powershell RunSpace
runspace.Close();

StringBuilder stringBuilder = new StringBuilder();
foreach (PSObject obj in results)
  {
    stringBuilder.AppendLine(obj.ToString());
  }
return stringBuilder.ToString();

}

Secure you Asp .NET by Web.config & Global.ascx?

Add to Global.ascx protected void Application_BeginRequest(object sender,EventArgs e)     {         //to remove x frame         Resp...