Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJComments has a deprecated constructor in /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php on line 25 Call Stack: 0.0001 360784 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0505 1209496 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0505 1209496 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1235 4096768 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1249 4124464 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1257 4142176 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1257 4159184 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1264 4166920 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1264 4166920 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.1755 4814440 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.1779 4899672 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.1785 4920600 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.1895 5031768 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.1896 5032024 14. Joomla\CMS\Plugin\PluginHelper::import() /var/www/astarmathsandphysics/libraries/src/Plugin/PluginHelper.php:182 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; JCommentsACL has a deprecated constructor in /var/www/astarmathsandphysics/components/com_jcomments/classes/acl.php on line 17 Call Stack: 0.0001 360784 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.0505 1209496 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.0505 1209496 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1235 4096768 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1249 4124464 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1257 4142176 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1257 4159184 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1264 4166920 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1264 4166920 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.1755 4814440 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.1779 4899672 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.1785 4920600 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.3265 12883328 13. JEventDispatcher->trigger() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:199 0.3268 12883728 14. plgContentJComments->update() /var/www/astarmathsandphysics/libraries/joomla/event/dispatcher.php:160 0.3268 12883728 15. plgContentJComments->onContentAfterDisplay() /var/www/astarmathsandphysics/libraries/joomla/event/event.php:70 0.3270 12891976 16. plgContentJComments->onAfterDisplayContent() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:339 0.3316 13272248 17. JComments::show() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:282 0.3322 13305296 18. JCommentsFactory::getACL() /var/www/astarmathsandphysics/components/com_jcomments/jcomments.php:188 0.3323 13305320 19. spl_autoload_call() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274 0.3324 13305400 20. JLoader::load() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274

Storing Digital Information

Information is stored digitally on a computer hard disk as a sequence of 0's and 1's. The sequence may encode a piture, sound, text or some other kind of information.

Suppose a sound recording to sampled into 8 bits at 1000, 2000, 3000, 4000, 5000 and 6000 Hz for 30 minutes.

This mean thatbits is written per second. There are 1800 seconds in 30 minutes sobits are written altogether.

There are 8 bits in a byte sobytes.

There are 1024 bytes in a kilobyte sokb.

There are 1,024 kb in a megabyte (MB) soMB.

Suppose a book has 500 pages, each page with 40 lines, each line with 50 characters.

Each character needs 8 bits to be encoded as binary code so the book will need altogetherbits to be written to disk.

Using the conversion factors above, 1 MBbytes, soMB.

Suppose a 10 cm by 20 cm picture is made up of pixels 0.1 mm across. It is to be stored as a colour image using three channel (red, green and blue), each with 256 shades.

There arepixels.

Sinceeach shade requires 8 bits and there are three channels so each pixel requires bits to encode and the picture requiresbits to encode.

HenceMB of disk space is required.

Add comment

Security code
Refresh