Thursday, October 10, 2019

Beginners Guide for Zend Framework 2.0

Beginners Guide for Zend Framework 2. 0 When it comes to open source software and applications, Zend Framework is one of the most preferred platforms for web applications. Zend Framework 2. 0 has been released to overcome the common issues of the previous version and provide an advanced framework for the development of web applications. You can expect a lot of new features including cloud computing, superior event management, and advanced features for event tracking. The Beginners Guide for Zend Framework 2. is a series which will help you in getting started with Zend Framework 2. 0. We are going to discuss each and every aspect of ZF2. 0 with practical example. What’s new in Zend Framework 2. 0 Before starting with ZF2. 0, let us find out what’s new in this version †¢ †¢ †¢ †¢ †¢ †¢ †¢ †¢ New and refactored Autoloaders Improved Exception System Advance and refactored View Component New Cloud Infrastructure component New and advan ced Event Manager component New Plugin Broker Strategy Rewritten Session Component New Dependency Injection ComponentPost 1 of series ——————————————————————————————————– How to setup Zend Framework 2. 0 Zend Framework 2. 0 is a whole new outfit for Zend Framework and you will find new components, renamed and changed components, and addition of advanced services for better web applications. You would be amazed with the bug fixes and error controlling components available with ZF2. 0. So you need a lot of modifications for this latest version and let us find out how to start working with ZF2. 0. Installing Zend framework 2. First of all you need to download the setup of ZF2. 0 and the best option is to download Zend Framework Minimal Package fo r Windows including PHP 5. 3 in it. Save the file in the library folder as library/zend. There are different methods for installing ZF2. 0 on your machine: †¢ †¢ †¢ Installation Using Pear Installation Using Subversion (svn) Using Git Installation with Pear For the users having Pear enabled on their system, the best method of installing ZF 2. 0 is by using Pear and following two simple command as: pear channel-discover pear. zfcampus. org pear install zfcampus/zfInstallation with Subversion (svn) Users having Subversion running on their system can download the software from public repository and you are not required to download the whole version, you can simply upgrade the frame work with new releases. Installing with Git Many programmers prefer Git for downloading the latest software upgrades and you can use Git for the latest version of ZF 2. 0. Getting ready for your first ZF Project Zend Framework has some specific system requirements like adding frame work in inc lude_path and access to scripts located outside the document.You need to have a proper directory structure before starting with the project and let us find out the best directory structure for your first ZF project 1. docroot/ 2. index. php 3. application/ 4. 5. 6. 7. 8. 9. default/ controllers/ IndexController. php FooController. php models/ views/ 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. scripts/ index/ foo/ helpers/ filters/ blog/ controllers/ IndexController. php models/ views/ scripts/ index/ helpers/ filters/ news/ controllers/ IndexController. php ListController. hp models/ views/ scripts/ index/ list/ helpers/ Filters/ Each of the directories has a specific role and use, let us find out the importance of each of these directories Application: Application directory is meant for all the codes used for the application. Configs: This directory is responsible for the overall application. Modules: Modules are required for at different stages of development so make sure to create a directory for modules for any future requirements of the project. Data: Data directory is responsible for holding volatile and temporary data including sessions, logs, cache, and even the upload data.This directory will act as an easy to find data block for your application. Library: This directory is used for storing different libraries that are throughout the application. Add this directory in include_path for any reference and requirement. Scripts: Script directory is used for maintaining all the scripts including patches, command line, and cron scripts used in the application. Docs: This directory is created for storing data generated in the application and data directly used in the application. Setting Up bootstrapBootstrap is the entry and exit point for all the command in any given applications including requests, response, route, and even dispatch commands. For setting up your Bootstrap, create index. php file and a dd the following code in your application. Background Process: First of all, you need to define all the main directories as contants for easy access and then initiate Zend/Application/Application for starting the application. The command bootstrap() is used for booting the application and then transfer the control to the original bootstrap of the application.For higher security, make sure to mention minimum details in index. php and try to keep all the logic in the bootstrap class created in your application directory. The next step in setting up ZF 2. 0 is to create the . htaccess file for handling and redirecting all the requests to bootstrap. Create . htaccess file for your project The main function of . htaccess file is redirect all the requests made in the project to the public bootstrap file. Before creating the file, you need to mention its global configuration like rewriting writes and similar permissions.You can do it by following method. Create a directive in your vhost fi le and provide permission for . htaccess to be parsed. allow override all none Now create public/. htaccess file with following code: Once you have created the . htaccess file for your application, you are ready to start with the project. Although there are some simple steps left in the process including setting up the application. ini file and then you can start with creating your first controller, how to input data from user, filter the data, validating data, and a lot of different things.Conclusion: ZF 2. 0 has a lot of quality upgrades as compared to the earlier version and the best way to use all of these features is to follow this guide step by step. There are many new features added in ZF 2. 0 which makes it a really powerful tool for developing impressive web applications. One of the most important additions is the advanced Event Manager and Cloud Infrastructure tool provided in ZF 2. 0. There is a lot to learn in this new feature packed Framework. Next Post Contents: †¢ †¢ Displaying information to user How to link pages together

Milk & Food Coloring Lab Report (Importance of Surfactant)

Importance of Surfactant Introduction Surfactant is an essential component for the respiratory system to function properly. Knowing the physiology of surfactant in the alveoli is important to know when learning the structure of the air sacs and how they work. This experiment is designed to make the understanding of surfactant in the alveolar film easier to learn, because it's not very simple. Surfactant is a detergent-like substance produced by the Type II alveolar cells in the walls of the alveoli. Surfactant is produced to reduce the surface tension of the water molecules that primarily compose the walls of the alveoli.For this experiment, we will be using milk and food coloring to represent the water (milk) and gas (food coloring) in the respiratory system, as seen in the liquid-gas boundary of the alveolar wall (water) and its volume (gas). We will place the milk in a shallow dish so that it completely covers the bottom of the dish. Drops of food coloring are going to be added in to the milk at the center of the dish, and then observed. Drops of liquid dishwashing soap, representing surfactant, are then added to the center as well. Once the soap drops are added we will observe what changes happen to the food coloring and milk.Because I know milk is non-polar and food coloring is polar, my hypothesis predicts the two will not mix voluntarily at first, but the soap acting as a surfactant, when added, will help the two liquids mix together. Materials and Methods For this experiment, I used a 16oz milk, 4 different color food coloring bottles, liquid hand soap, and a small clear dish with approximately 5 inches in diameter. I placed the dish in a flat steady surface. I then poured the milk making sure the whole bottom of the dish is covered and still remained shallow.Next, I added about four drops of food coloring to the milk at the center of the dish. Lastly, I added about four drops of the liquid hand soap in the same exact place where I had added the food col oring. Results When the food coloring was added into the milk, there was no reaction. The food coloring did not mix into the milk, it just sat there clumped together like oil in a lava lamp. After adding the drops of liquid soap, the food coloring droplets rapidly mixed into the milk by running in every direction. It looked like an explosion of color.The color streaks continuously span slowly in the milk. Discussion As my hypothesis stated, the milk and food coloring did not mix voluntarily because of their polarity. Non-polar molecules want to bond with other non-polar molecules (London dispersion forces) and polar molecules bond with the polar molecules (Dipole-Dipole forces). Think of all the milk molecules acting as very powerful magnets between each other, and the same with the water molecules. In this case, the soap –acting as the surfactant- broke the surface tension between the two liquids allowing them to mix together.In other words, it reduced the magnetic attractio n between them. As we stated, the milk molecules are non-polar and the food coloring molecules are polar. Soap is one of the awesome liquids that is both polar and non-polar. Its molecules have a polar head, which attracts other polar molecules, and a non-polar body, which attracts other non-polar molecules. When the liquid soap molecules were added to the solution, they attracted both the milk and food coloring molecules causing them to mix like they did.In the alveoli, the gas is non-polar and the water in the walls of the alveoli is polar. Surface tension in the alveoli is very high because of the liquid/gas boundary. This surface tension draws the liquid molecules closer together and reduces their contact with the gas molecules; this way the alveoli do not collapse. The water in the walls of the alveoli help the alveolar walls come together during exhalation (when the oxygen leaves the alveoli), so that they stick together and allow the alveoli to reach their smallest size.The s urfactant that is secreted aids the walls to be able to come together, but not with the attraction of their potential because it’s too strong. If they came together with their normal attraction, the walls would stick together and their strong surface tension would not allow them to unstick. A collapsed alveola will have to be completely re-inflated during each inspiration, which takes a lot of energy to do. With the surfactant, during inhalation the incoming gas is able to split the walls open because their attraction is not as strong.This way, the walls are able to come apart easier and make more space for the oxygen that fills up the alveoli. If our alveolar cells did not produce surfactant whatsoever, breathing would be very hard. Each inhalation would not have the easy flow it has now; it would take a lot of energy and not to mention be tougher. Conclusion Just like the water and gas in our lungs, the milk and food coloring would not have been able to mix. Both the liquid soap and the surfactant reduce the magnetic force that unites liquid molecules- in this case allowing milk and food coloring to mix.Without this experiment, we’d be overlooking one of the many underrated ways our bodies get away with remedies for making our daily routines easier. This experiment helps us understand the importance of surfactant in the respiratory system. Liquid molecules have a very high surface tension that is not easy to get rid of. But, as we observed, savvy Mother Nature blessed us with surfactant and soap that can easily break bonds. Literature Cited Marieb, Elaine N. , and Katja Hoehn. Human Anatomy ; Physiology. 9th ed. Pearson, 2012. Print.

Wednesday, October 9, 2019

Financial accounting Essay Example | Topics and Well Written Essays - 1000 words - 4

Financial accounting - Essay Example Return kind of ratios represents the ability of a company to measure its overall efficiency more so in generating the returns to the shareholders. On the other hand, ratios that indicate margin illustrate the ability of the company to translate its sales dollars into profits. This therefore implies that the main purpose of profitability ratios is to measure the ability of a company to generate its earnings relative to assets, equity and sales. Liquidity ratios indicates the ability of a company to meet or pay off its short term debt obligations or short term liabilities as they fall due. It indicates the company’s low default risk in case the ratios are more than one. The company’s current ratio is increasing over time indicating that the company’s ability is increasing as well. This means that the company is able to meet its short term liabilities with ease hence it is having a high performance. The company’s quick ratio is less than one implying that its most liquid assets are not enough to meet its short term obligations. This means that the company is over-leveraged, collecting its receivables slowly, paying its bills too quickly or struggling to grow or maintain sales. However, the trend indicates an increase in the company’s most liquid assets evidenced by increase in quick ratio. Efficiency ratio assist the company to measure how effectively it is utilizing its assets and or how well its liabilities are managed. These ratios show how efficient the assets of a business are working to generate sales. They therefore assist a business manager conduct business better. They show how quickly a company’s money from credit sales is collected or the number of times a company’s inventory turns over. Their main purpose is therefore to show how effective the management of the company is. The company has a high turnover ratios meaning that it is using few assets to generate more revenue hence it is very efficient in its

Tuesday, October 8, 2019

Project as an Intern at a Design Film Essay Example | Topics and Well Written Essays - 2500 words

Project as an Intern at a Design Film - Essay Example This all depended on appropriate time scale, enough budget allocation and good client communication, since the work of a designer is turning a concept into reality. In the long run the design processes included experimental, routine and fashion designs. Another key is the assembly of the client team which gave an outline of factors to be considered when hiring personnel in the business, which resulted in overcoming the cultural and operational differences experienced. The last key is the briefing process, which defined the project objectives, specific business opportunities to be realized and the scope for creating opportunities for the firm. Shortlisting of qualified design consultants was paramount as their main function in the business was to provide professional design solutions so that the client needs are met. Appointed design consultants were to specifically give shape to responses made by the clients. They provided polished design criteria for projects which comprised of gene ral overview of the project, intellectual, functional, technical and accommodation design criteria’s. ... Introduction to Finance Every business is formed on a strong financial base for it to properly carry out its operations of making profits. Most of the spheres affected by the financial principles of the design firm were contract management, administration of contracts, resourcing, budget and cost planning. The module, introduction to finance introduced the basic corporate and personal finance concepts, the time value for money, financial markets, shares and bonds, financial risk and return, ways of raising money and elements of investment. In addition the major components of finance included institutions and markets under which there were banks and other financial institutions, and the Federal Reserve System fell (Melicher and Norton 115). Finally, financial management comprised of business organization, financial analysis and long term financial planning, managing working capital and capital budgeting analysis. These principles served as the foundation of finance relating to the des ign business during my internship. Through financial analysis: the differences between manager and stakeholders are identified, time value of money, and higher returns were realized by taking more risks as the diversification of interests reduced risks. The design business had a financial system where the financial capital flowed with the aid of markets, intermediaries and regulation from savings to investments in the economy (Melicher and Norton 328). Melicher and Norton (251) argue that money markets are where the debt securities maturing within one year or less are traded while the capital markets are debt securities that mature longer than one year are traded. The major types of financial

Sunday, October 6, 2019

Book Bunker Social Networking Essay Example | Topics and Well Written Essays - 1250 words

Book Bunker Social Networking - Essay Example The books that will be made available will be in categorical order ranging from fiction, non-fiction, hobbies, collections and classics among others. Besides, Book Bunker apart from providing a huge assortment of books will also entail provision for wide range of music collections. Being a start-up company, its prime goal is to attain a greater proportion of local market share. The provisions being included within this business set up include low price, differentiated services and a friendly comfortable environment. With these considerations, the key objective of this report is to outline a set of ideas along with strategies in order to create a social networking program for Book Bunker. In order to endure success and survival in the midst of competitive market scenario, it is necessary for a company to strategize its marketing and advertising plans or programs for increasing the customer base. Correspondingly, Book Bunker plans to endure a relaxed ‘reading room’ like ambience through its provided dà ©cor for the readers which can be a key differentiator for its sustained success. Furthermore, the company’s management also plans to provide an application for smartphones with the inclusion of fun activities and games for the children in order to attract them. In fact, it has been ascertained that planning involves provision of electronic books to the audiences. In the similar context, in order to increase the visibility option of the customers, the company plans to apply media bites on local news and billboards among others. These depict few strategies being undertaken by the company in order to stand in the midst of its competitors. In terms of setting target market, Book Bunker focuses to attract the entire book loving demographic segment comprised within geographical area being operated. However, the key focus will be on consumers desiring to purchase books/music at discount prices Furthermore, school children can be given priority by

Saturday, October 5, 2019

Rules versus discretion Essay Example | Topics and Well Written Essays - 750 words

Rules versus discretion - Essay Example It serves as a guideline that facilitates the decision making process of people especially those in authority. In other words, it makes the information extraction much more organized. A step by step procedure eliminates extensive discussion regarding the merits and repercussions of method thereby saving time which is very important in life threatening matters. Rules also serve as limiting factors due to the fact that it restricts individuals from resorting to methods and actions that would prove to be too excessive. By excessive, we mean life threatening. The formulation process of establishing rules necessitates an extensive study to determine the effects of the methods on the physical and mental condition of the suspect. This is because this move will be highly publicized and public reactions must be swayed to support the move. An established knowledge of effects prevents any untoward incident happening to the suspect. It also minimizes the responsibility and possible litigation of those in authority who were too eager to comply to their sworn duty. Since the probable effects have been understood, the public can also rest assure that the authorities know what they are doing (i.e. less negative public reception). However, rules may become too prohibitive as the methods that may be employed may be limited due to the fact that the public would not... Remember that authority only emanates from the support of the voting public. Once this disappears, he becomes a regular citizen prone to criticism, parodies and alienation. Thus, only certain measures are expected to be agreed upon. Assuring the public that the methods do not lead to another casualty defeats the purpose as those who endanger the life of others know that they will live through the ordeal. There is no need to divulge information. Ideally, the option of discretion provides an opportunity for the authorities to extract information faster than when rules are present. It operates on the idea that people will be inclined to self preservation and is therefore forced to divulge information. Discretion also allows for flexibility and a wider array of methods. It also eliminates the need for approval from the higher authorities. The downside is that the measure can be excessive leading to the death of the suspect. This leads to more negative public perception, more propaganda for those who terrorize other people and inability to extract the information desired. All in all, rules are more favorable precisely because the process is more controlled and less disagreeable than a process clouded with mystery. II. Opinion Piece Terrorism has indeed challenged us to the core of our being. It made us question the very values that we hold dear. It made us fear of what could happen leading us to resort to preemptive strikes such as the war in Iraq. Now, we are being challenged again. Our nation is currently in turmoil as the issue of rule over discretion regarding torture is being debated. Torture has existed since ancient times as it is used in making captives

Friday, October 4, 2019

Interpretive exercise Assignment Example | Topics and Well Written Essays - 1000 words - 1

Interpretive exercise - Assignment Example 2. Measure the width of the river to cross. What are the differences between the biblical audience and us? Bible has been segregated into two segments which are ‘Old Testament’ and ‘New Testament’. Old Testament describes the story of God’s treaty with Hebrew people. On the other hand, New Testament includes several versions of life, death and renaissance of Lord Jesus. ‘Measure the width of the river to cross’ is a New Testament passage relating to Bible. Here, river denotes something which can create differences in terms of diverse culture, customs, languages, time and power among others. Today, one obvious difference can be found between biblical audience and us. The difference is generational gap. Biblical audience was made up of first century and the present audience is made up of twenty first century who does not struggle with legalistic Judaism and traditional Gnosticism. The river which separates biblical audience and us is not wi de, but these differences should be addressed in order to cross the river1. 3. Cross the Principlizing Bridge. What are the theological principles in this text? Theological principles are generally intended for understanding the principles of God. The objective is to overwhelm the current gap between different religions and to demonstrate the mutual obligations of every religious discipline. In order to identify theological principles, one should recall the differences and similarities between present day’s audience and biblical audience. The theological principle of the text is that in order to be operative in serving God, people should employ their strength and bravery. The theological principles affirm that Christ provide the believers of God a kind of power in order to remain happy in variety of circumstances1. 4. Consult the biblical map. How does the theological principle fit with the rest of the Bible? The theological principles of the text are used by every Christian nowadays in terms of worship and divinity on Lord Jesus. The texts in Bible are precise, real and provide universal realities. In Bible, a particular passage can only be applied to certain circumstances. However, the theological principles revealed in the text are fit to each people who always have faith in God. Theological principles have certain definite meaning and application to the olden biblical audience and to the Christians in present days. As the theological principles possess explicit application and can be used by the audiences, it operates as a link for wrapping the river of differences2. 5. Grasp the text in our town. How should individual Christians today apply the theological principles? Individual Christians cannot apply the theological principles without knowing its significance. However, they can understand the main philosophy of Bible without implementing it in practical life. In order to apply the theological principles, initially there exists the need for observ ing the world, examining the cultural background of people and exploring the meaning of God’s word. There pertains huge dissimilarity between understanding the method of applying the theological principles and logically implementing them1. Assignment 17-1 The ‘Book of Revelation’ is the last volume of New Testament. Chapter 1 of the book defines John’s (one of the twelve supporters of Lord Jesus) explanations on seven stars of angels.