IT Questions and Answers :)

Saturday, February 22, 2020

On an Apache webserver, what is the name of the file used to configure access to the web site?

On an Apache webserver, what is the name of the file used to configure access to the web site?

  • .htaccess
  • htaccess.txt
  • htaccess.cfg
  • htaccess
On an Apache webserver, what is the name of the file used to configure access to the web site?

EXPLANATION

An .htaccess file also known as an hypertext access file is a directory-level configuration file supported by several web servers, used for configuration of site-access issues, such as URL redirection, URL shortening and Access-security control.
An .htaccess file provides various options for website owners to control the server environment variables and other parameters to enhance functionality of their websites. It is placed in the directories and sub-directories of the Apache document root. When you place an .htaccess file in the apache document root, the .htaccess file is detected and executed by the Apache Web Server.
These .htaccess files can be used to alter the configuration of the Apache Web Server to enable and disable additional functionality and features that the Apache Web Server software has to offer. When you are developing a PHP website and working with PHP and Apache, then you can use an .htaccess file for directory level configuration of Apache web server.
You should only use .htaccess files when you don't have root access to the main Apache server configuration file. An .htaccess file provides many features Some of these features include basic redirects, locking outside access to particular files, or more advanced functions such as content password protection or preventing image hotlinking.
However, use of .htaccess files should be avoided when possible. There are two main reasons to avoid the use of .htaccess files.
The first of these is server performance. When AllowOverride is set to allow the use of .htaccess files, httpd will look in every directory for .htaccess files. Thus, permitting .htaccess files causes a performance issue, whether or not you actually even use them! Also, the .htaccess file is loaded every time a document is requested.
Share:

Modern ethernet protocol relies on CSMA/CD to provide reliable communications. Does 802.11 WLANs also use CSMA/CD?

Modern ethernet protocol relies on CSMA/CD to provide reliable communications. Does 802.11 WLANs also use CSMA/CD?

  • Yes - CSMA/CD will set proper throughput
  • No - CSMA/CD is never used in wi-fi WLANs
  • No - CSMA/CD is never used in modern networks
  • Yes - CSMA/CD will setup channel number 
Modern ethernet protocol relies on CSMA/CD to provide reliable communications. Does 802.11 WLANs also use CSMA/CD?

EXPLANATION

CSMA/CD isn't ever used for Wifi LANs but the question specifically uses the word "modern" and MODERN wired LANs don't use it either. Modern wired networks rely on collision detection being performed by the switch - and the explanation offered even says:
CSMA/CD - Carrier sense multiple access with collision detection - is a media access control method used most notably in early Ethernet technology for local area ..
Note: "... used most notably in EARLY Ethernet technology ..."
Refer: https://en.wikipedia.org/wiki/Carrier_sense_multiple_access_with_collision_detection

 

Share:

Which Exchange cmdlet shows who has access to a particular user's mailbox and what type of access they have?

Which Exchange cmdlet shows who has access to a particular user's mailbox and what type of access they have?

  • Look-MailboxPermission -Identity username
  • Open-MailboxPermission -Identity username
  • Get-MailboxPermission -Identity username
  • View-MailboxPermission -Identity username 
Which Exchange cmdlet shows who has access to a particular user's mailbox and what type of access they have?

EXPLANATION

​This question seems to get asked a lot, and people are unaware how easy the answer really is. Here it is:
  • List all mailboxes to which a particular user has Full Access permissions:










PS C:\> Get-Mailbox | Get-MailboxPermission -User vasil
Identity             User                 AccessRights
--------             ----                 ------------
HuKu                 Vasil Michev         {FullAccess}
retail               Vasil Michev         {FullAccess}
sharednew            Vasil Michev         {FullAccess}
testplan2            Vasil Michev         {FullAccess}
WC                   Vasil Michev         {FullAccess}
  • List all shared/user/room/whatever mailboxes to which particular user has Full Access permissions:









PS C:\> Get-Mailbox -RecipientTypeDetails UserMailbox,SharedMailbox -ResultSize Unlimited | Get-MailboxPermission -User vasil
Identity             User                 AccessRights
--------             ----                 ------------
HuKu                 Vasil Michev         {FullAccess}
retail               Vasil Michev         {FullAccess}
sharednew            Vasil Michev         {FullAccess}testplan2            Vasil Michev         {FullAccess}
  • List all mailboxes to which members of a particular security group have access:





PS C:\> Get-Mailbox | Get-MailboxPermission -User secgrp
Identity             User                 AccessRights
--------             ----                 ------------
Bathroom             secgrp               {FullAccess}
  • List all mailboxes to which a user has Send As permissions:





PS C:\> Get-Mailbox | Get-RecipientPermission -Trustee vasil
Identity                            Trustee                             AccessControlType                   AccessRights
--------                            -------                             -----------------                   ------------
sharednew                           Vasil Michev                        Allow                               {SendAs}
  • List all user mailboxes to which members of a particular security group have Send As access:





PS C:\> Get-Mailbox -RecipientTypeDetails UserMailbox -ResultSize Unlimited | Get-RecipientPermission -Trustee secgrp
Identity                            Trustee                             AccessControlType                   AccessRights
--------                            -------                             -----------------                   ------------
HuKu                                secgrp                              Allow                               {SendAs}
  • List all mailboxes to which a particular security principal has Send on behalf of permissions:






PS C:\> Get-Mailbox | ? {$_.GrantSendOnBehalfTo -match "vasil"}
Name                      Alias                ServerName       ProhibitSendQuota
----                      -----                ----------       -----------------
Bathroom                  bathroom             amspr03mb084     49.5 GB (53,150,220,288 bytes)
WC                        WC                   dbxpr03mb096     9.5 GB (10,200,547,328 bytes)
Share:

What was the first version of Windows to incorporate the Aero Glass theme?

What was the first version of Windows to incorporate the Aero Glass theme?

  • Windows Vista
  • Windows 8
  • Windows XP
  • Windows 7 

EXPLANATION

Windows Aero (a backronym for Authentic, Energetic, Reflective, and Open)[1] is a design language introduced in the Windows Vista operating system. The changes made in the Aero interface affected many elements of the Windows interface, including the incorporation of a new look, along with changes in interface guidelines reflecting appearance, layout, and the phrasing and tone of instructions and other text in applications.
Windows Aero was in force during the development of Windows Vista and Windows 7. In 2012, with the development of Windows 8 and Windows Server 2012, Microsoft moved on to a design language codenamed "Metro".

On Windows Vista and Windows 7 computers that meet certain hardware and software requirements, the Aero Glass theme is used by default, primarily incorporating various animation and transparency effects into the desktop using hardware acceleration and the Desktop Window Manager (DWM). In the "Personalize" section added to Control Panel of Windows Vista, users can customize the "glass" effects to either be opaque or transparent, and change the color it is tinted. Enabling Aero Glass also enables other new features, including an enhanced Alt-Tab menu and taskbar thumbnails with live previews of windows, and "Flip 3D", a window switching mechanism which cascades windows with a 3D effect.
Windows 7 features refinements in Aero Glass, including larger window buttons by default (minimize, maximize, close and query), revised taskbar thumbnails, the ability to manipulate windows by dragging them to the top or sides of the screen (to the side to make it fill half the screen, and to the top to maximize), the ability to hide all windows by hovering the Show Desktop button on the taskbar, and the ability to minimize all other windows by shaking one.
Use of DWM, and by extension the Aero Glass theme, requires a video card with 128 MB of graphics memory (or at least 64 MB of video RAM and 1 GB of system RAM for on-board graphics) supporting pixel shader 2.0, and with WDDM-compatible drivers. Aero Glass is also not available in Windows 7 Starter, only available to a limited extent on Windows Vista Home Basic, and is automatically disabled if a user is detected to be running a non-genuine copy of Windows.[16][17] Windows Server 2008 and Windows Server 2008 R2 also support Aero Glass as part of the "Desktop Experience" component, which is disabled by default.[18]


Share:

Friday, February 21, 2020

In Microsoft Azure, What server size/series uses credits and slows down if the credits run out?

In Microsoft Azure, What server size/series uses credits and slows down if the credits run out?

  • F series
  • D series
  • B series
  • A series 
In Microsoft Azure, What server size/series uses credits and slows down if the credits run out?

EXPLANATION

The B-series VMs are ideal for workloads that do not need the full performance of the CPU continuously, like web servers, proof of concepts, small databases and development build environments. These workloads typically have burstable performance requirements. The B-series provides you with the ability to purchase a VM size with baseline performance and the VM instance builds up credits when it is using less than its baseline.
When the VM has accumulated credit, the VM can burst above the baseline using up to 100% of the vCPU when your application requires higher CPU performance. If the CPU usage goes above 25% it will start to consume credit. WHen the credits run out the server will run at baseline rate.

SOURCE

https://docs.microsoft.com/en-us/azure/virtual-machines/windows/b-series-burstable
Share:

Popular Posts