Friday, December 27, 2019

Hash libraries for C Programmers

This page lists a collection of libraries that will help you in programming in C. Libraries here are open source and used to help you store data, without having to roll your own linked list etc data structures. uthash Developed by Troy D. Hanson, any C structure can be stored in a hash table using uthash. Just include #include uthash.h then add a UT_hash_handle to the structure and choose one or more fields in your structure to act as the key. Then use HASH_ADD_INT, HASH_FIND_INT and macros to store, retrieve or delete items from the hash table. It uses int, string and binary keys. Judy Judy is a C library that implements a sparse dynamic array. Judy arrays are declared simply with a null pointer and consume  memory only when populated. They can grow to use all available memory if desired. Judys key benefits are scalability, high performance, and memory efficiency. It can be used for dynamically sized arrays, associative arrays or a simple-to-use interface that requires no rework for expansion or contraction and can replace many common data structures, such as arrays, sparse arrays, hash tables, B-trees, binary trees, linear lists, skiplists, other sort and search algorithms, and counting functions. SGLIB SGLIB is short for  Simple Generic Library and consists of a single header file sglib.h that provides generic implementation of most common algorithms for arrays, lists, sorted lists and red-black trees. The library is generic and it does not define its own data structures. Rather it acts on existing user-defined data structures via a generic interface. It also does not allocate or deallocate any memory and does not depend on any particular memory management. All algorithms are implemented in form of macros parametrized by the type of data structure and comparator function (or comparator macro). Several further generic parameters such as the name of next field for linked lists may be required for some algorithms and data structures.

Thursday, December 19, 2019

The Different Branches of Yoga Essay - 750 Words

The Different Branches of Yoga In ancient times yoga reffered to as a tree, a living thing with roots, a trunk, branches, blossoms, and fruit. Hatha yoga is one of six branches; the others include raja, karma, bhakti, jnana, and tantra yoga. Each branch have its own characteristics and function represents a particular approach to life. Some people may find one particular branch more better than another. However, it is important to note that involvement in one of these paths don’t preclude activity in any of the others, and in fact you’ll find many paths naturally overlapping. Raja yoga means royal yoga, raja means royal and meditation if the focal point of this branch of yoga. This approach†¦show more content†¦The path of bhakti provide us with an opportunity to cultivate acceptance and tolerance for everyone we come into contact with. Jnana yoga, if we take bhakti yoga as heart than jnana yoga is yoga of mind. The approach for this yoga is most difficult but its most direct. It requires serious study with in the context of our western religious traditions, kabalistic scholars, Jesuit priests, and Benedictine monks epitomize jnana yogis. Tantra yoga is probably the most misunderstood yoga. This is the sixth branch of yoga which includes consecrated sexuality. You may already involve in one or more of these branches. Or maybe already a hatha yogi or yogini practicing posture with a teacher or by yourself. For example if u r helping volunteer for aids patient u r already in karma yoga. So these were the different branches of yoga so now I will go ahead and explain different types of yoga which as follows: One who follows the path of yoga is yogi or yogin. There are many different types of yoga. Ananda yoga, anusara, ashtanqa yoga, buckram yoga, integral yoga, Iyengar yoga, Kripalu yoga, Kundalini yoga, power yoga Sivananda yoga, viniyoga. Iyengar yoga is the mostly common yoga, was created by B.K.S. Iyengar, this yoga sometimes called furniture yoga because it take can take place on cusions, benches, wood blocks, straps andShow MoreRelatedThe Brahma Kumaris Meditation Center963 Words   |  4 PagesHindu religion. In class we I learned about the different types of yoga that is practiced in Hinduism. Jhana yoga, Bhakti yoga, Karma yoga, and Raja yoga are the different types of yoga practiced and I had some sort of understanding on what I would possibly see in the meditation session. I did some research on what the Brahma Kumaris meditation center was about and their main goal. In the Brahma Kumaris meditation center they focus on specifically raja yoga and focusing on self reflection and positivityRead MoreHinduism : An Influential Aspect Of Lifestyle1049 Words   |  5 Pagesthat shaped it in one way or another. Hinduism is what it is due to the reforms such as the British colonization, the diaspora of Hindu com munities, and historical context. The evolution of Hinduism has occurred many times that it emerged countless branches that each holds it’s own interpretation to what is crucial. This change lead to the creations of organizations each promoting its biased ways. Hatcher’s edited volume, Hinduism in the Modern World, illustrates the alterations in the religion dueRead MoreEssay on The Benefits of Yoga Meditation1570 Words   |  7 PagesThe Benefits of Yoga and Meditation In today’s environment, many people are suffering with the stress and anxiety of day to day living and are finding themselves unable to cope with life’s little emergencies. Prescription drugs are on the rise due to the increasing need for people to deal with their stress and anxiety. However, many people are searching for ways to be less stressed and live a happy and healthy life without drugs. If stress and anxiety are getting the best of you, then think aboutRead MoreThe Benefits of Yoga Essay894 Words   |  4 PagesYoga has been around for centuries, but it has recently increased in popularity. Yoga originated in India and refers to traditional physical and mental disciplines. There are 5 major branches of yoga in the Hindu philosophy, they include: Raja yoga, Karma yoga, Jnana yoga, Bhakti yoga, and Hatha yoga (Yoga). Yoga goals vary and range from improving health to achieving Moksha (Yoga). â€Å"In the state of Moksha lies the ultimate peace, ultimate kno wledge, and ultimate enlightenment. Paradise is believedRead MoreEssay about Medicinal Value of Yoga2978 Words   |  12 PagesMedicinal Value of Yoga What most Westerners picture when you say Yoga, is an Indian guru in cloth shorts or a long flowing robe, twisted up in a some sort of a pretzel pose. You may picture the Yoga practitioner in peak physical shape, as well as, being a very peaceful human being. It is attaining this goal that is the aim of Yoga, but what most of people dont realize, is exactly how much goes into achieving this state. Yoga time honored teaching on how to achieve physical health, psychologicalRead MoreJohn Lewis customer service case study1710 Words   |  7 Pagesï » ¿Table of Contents INTRODUCTION 1 1. The success of John Lewis in keeping customer satisfaction 2 2. California Fitness Yoga Centers Vietnam - A real example of bad practice of customer service 3 2.1. About California Fitness Yoga Centers Vietnam 3 2.2. California Fitness Yoga Centers Vietnam’s customer service problems 3 2.3. Causes of bad customer service 4 2.4. Recommendations 5 3. Conclusion 5 4. References 6 INTRODUCTION Customer service is the provision of service to customersRead MoreHinduism and Budhism: Two of the World ´s Largest Religions1201 Words   |  5 PagesAsian belief systems are very different from traditional western belief systems in ways of their origins, practices and philosophy.(Chen) What is it that makes these Asian religions different from western religions? What is similar and different in Buddhism and Hinduism, and what makes them so unique in history and practice? Hinduism and Buddhism share very similar base belief systems. They both have the same basic foundations of Reincarnation, Karma, meditation, yoga and a focus on the soul.(Chen)Read MoreStephen Prothero s God Is Not One Essay1589 Words   |  7 PagesStephen Prothero’s â€Å"God Is Not One† is a survey of world religions, comprising vital information on a vast array of different sets of belief. As someone who has never studied religion before, nor belongs to a particular faith, the variability within these religions is staggering. One might be satisfied to define religion as â€Å"how a person goes about believing in God,† but soon finds that even that definition has its holes. Thankfully, â€Å"God Is Not One† does an amazing job of cluing its reader intoRead MoreEssay On Self Reflection958 Words   |  4 Pagesthe theme of self-image. Throughout the process of experimenting with different types of paint, I decided to work closely with watercolour as it was a media that I found enjoyable. I aimed for an experience where I developed the knowledge of working with watercolour, which became more realistic through researching the artists, John Lovett, Roisin Cure and David Stickel. Through investigating, it was explored how the use of different techniques such as; using bright colours, can cause the viewer to haveRead MoreThe Origins Of Yoga, And Yogic Practices1957 Words   |  8 PagesYoga has influenced the entire range of Indian culture and is considered an all- pervading as well. When learning about yoga, one may ask what exactly is Yoga and where does it come from? It is a very difficult question to ask considering it has several spectrums you can touch upon to expand and summarize. You have Yoga’s many branches that are scattered amongst India that include the spirituality, religious and physical aspects. To grasp Yoga’s wide range that it has to offer it is best to break

Wednesday, December 11, 2019

Motor and Controls free essay sample

Once the proper motor is selected, understanding the many various control devices available and their uses and limitations becomes an important part related to reliable operation and protection of the motor and the personnel using the motor. Motor Control Topics There are four major motor control topics or categories to consider. Each of these has several subcategories and sometimes the subcategories overlap to some extent. Certain pieces of motor control equipment can accomplish multiple functions from each of the topics or categories. The four categories include: 1) Starting the Motor Disconnecting Means Across the Line Starting Reduced Voltage Starting 2) Motor Protection Overcurrent Protection Overload Protection Other Protection (voltage, phase, etc) Environment 3) Stopping the Motor Coasting Electrical Braking Mechanical Braking 4) Motor Operational Control Speed Control Reversing Jogging Sequence Control †¢ An understanding of each of these areas is necessary to effectively apply motor control principles and equipment to effectively operate and protect a motor. We will write a custom essay sample on Motor and Controls or any similar topic specifically for you Do Not WasteYour Time HIRE WRITER Only 13.90 / page All motors must have a control device to start and stop the motor called a â€Å"motor controller†. Motor Controller A motor controller is the actual device that energizes and de-energizes the circuit to the motor so that it can start and stop. †¢ Motor controllers may include some or all of the following motor control functions: S S starting, stopping, over-current protection, overload protection, reversing, speed changing, jogging, plugging, sequence control, and pilot light indication. Controllers range from simple to complex and can provide control for one motor, groups of motors, or auxiliary equipment such as brakes, clutches, solenoids, heaters, or other signals. Motor Starter The starting mechanism that energizes the circuit to an induction motor is called the â€Å"starter† and must supply the motor with sufficient current to provide adequate starting torque under worst case line voltage and load conditions when the motor is energized. †¢ There are several different types of equipment suitable for use as â€Å"motor starters† but only two types of starting methods for induction motors. Across the Line Starting Reduced Voltage Starting Across the Line Starting of Motors Across the Line starting connects the motor windings/terminals directly to the circuit voltage â€Å"across the line† for a â€Å"full voltage start†. †¢ †¢ This is the simplest method of starting a motor. (And usually the least expensive). Motors connected across the line are capable of drawing full in-rush current and developing maximum starting torque to accelerate the load to speed in the shortest possible time. All NEMA induction motors up to 200 horsepower, and many larger ones, can withstand full voltage starts. The electric distribution system or processing operation may not though, even if the motor will). †¢ Across the Line Starters 2 There are two different types of common â€Å"across the line† starters including 1. Manual Motor Starters 2. Magnetic Motor Starters Manual Motor Starters A manual motor starter is package consisting of a horsepower rated switch with one set of contacts for each phase and corresponding thermal overload devices to provide motor overload protection. †¢ †¢ †¢ The main advantage of a manual motor starter is lower cost than a magnetic motor starter with equivalent motor protection but less motor control capability. Manual motor starters are often used for smaller motors typically fractional horsepower motors but the National Electrical Code allows their use up to 10 Horsepower. Since the switch contacts remain closed if power is removed from the circuit without operating the switch, the motor restarts when power is reapplied which can be a safety concern. They do not allow the use of remote control or auxiliary control equipment like a magnetic starter does. †¢ Figure 26. Manual Starter Magnetic Motor Starters A magnetic motor starter is a package consisting of a contactor capable of opening and closing a set 3  of contacts that energize and de-energize the circuit to the motor along with additional motor overload protection equipment. C †¢ Magnetic starters are used with larger motors (required above 10 horsepower) or where greater motor control is desired. The main element of the magnetic motor starter is the contactor, a set of contacts operated by an electromagnetic coil. S S E nergizing the coil causes the contacts (A) to close allowing large currents to be initiated and interrupted by a smaller voltage control signal. The control voltage need not be the same as the motor supply voltage and is often low voltage allowing start/stop controls to be located remotely from the power circuit. Figure 27. Magnetic Starter †¢ Closing the Start button contact energizes the contactor coil. An auxiliary contact on the contactor is wired to seal in the coil circuit. The contactor de-energizes if the control circuit is interrupted, the Stop button is operated, or if power is lost. The overload contacts are arranged so an overload trip on any phase will cause the contactor to open and de-energize all phases. †¢ Reduced Voltage Starting of Motors Reduced Voltage Starting connects the motor windings/terminals at lower than normal line voltage during the initial starting period to reduce the inrush current when the motor starts. 4 †¢ Reduced voltage starting may be required when: S S The current in-rush form the motor starting adversely affects the voltage drop on the electrical system. needed to reduce the mechanical â€Å"starting shock† on drive-lines and equipment when the motor starts. †¢ †¢ Reducing the voltage reduces the current in-rush to the motor and also reduces the starting torque available when the motor starts.

Wednesday, December 4, 2019

Success key of Walmart free essay sample

The goal of Walmart is to provide customers with high-quality goods at low everyday pricing. To achieving this goal, Walmart adopted several strategies. Walmart’s winning strategy is based on low cost, which relies on a logistics technique known as cross docking. Using cross docking, Walmart is able to received goods on one side while simultaneously filling orders on the other. This strategy reduced Walmart’s costs significantly since it reduces inventory holding costs through reduced storage times and potentially eliminating the need to retain safety stock. Eventually, they passed those savings on to their customers with highly competitive pricing. The second strategy adopted by Walmart is to avoid being dependent on any one supplier, which decreases its exposure to many risks and guarantees abundant sources of products. Having single suppliers brings a lot of disadvantages. Firstly, you will have lesser negotiating leverage if you become dependent on a single supplier who supplies your needs. We will write a custom essay sample on Success key of Walmart or any similar topic specifically for you Do Not WasteYour Time HIRE WRITER Only 13.90 / page And then there is the issue of complacency, the supplier may become complacent because they know that you cannot find a better supplier than them. Walmart builds strong and collaborative relationship with nearly 3000 goods suppliers, including Johnson Johnson and ProctorGamble. These suppliers provide Walmart with high-quality products. Electronic â€Å"hook ups† and latest supply chain technology like RFID improve supply chain efficiency. The third strategy is to take up large market share in the world. By 2005, it held an 8. 9% retail store market share in the United States, 3700 stores in the United States and more than 1600 units in other countries of the world. In some degree, market share drives market perception of one’s business, and market perception is the prerequisites for growth of a business. A low or falling market share leads potential customers or employees to believe that there is something wrong with the business. On the contrary, a high or growing market share lead people to believe that the business is good and they are likely to become parts of it. Walmart encourages managers to work effectively and efficiently. It required managers to fill out â€Å"best yesterday† legers, which are forms tracking daily sales performance to ensure operational efficiency. It gives managers incentive to be accountable and creative by offering profit sharing, incentive bonus, a discount stock purchase plan, pay raise based on performance and other benefit plans. Finally, it has good communication among all stores around the world. A satellite network system allows information to be shared among these stores and suppliers. Data from over 5,300 individual stores on items are collected, analyze, and transmitted electronically on a real-time basis. This information helps company to reduce the likelihood of stock-outs, maximize inventory turnover and improve operational efficiency.