Saturday, January 25, 2020

Online Shop Web Design

Online Shop Web Design Shop Online Web Application system, allows the customer to shop online for their required items, and also represents an associated window for the orders selected by the customer. Each Customer will be having their desired page when they login or signup into the Shop Online Web Application. The Customer can select the required items into the cart without logging into their account. But the purchase of the items in the cart has to be done using their registered account in the System using either credit or debit card, they can also cancel the payment or return the items purchased only after a detailed specification of the reason for it. The Logged In customers will be having a wish-list function so that they can put the items they wanted to buy in the wish-list and can buy later. There is one more function price checker, which intimates the customer regarding the item selected by them whenever there is a cut-off in the price of that item, but only for a few selected items. There is also a desired page for the history of items bought by the customers.   The customer can maintain their account and address details. The customer also can reset their password if forgotten by getting a link to reset password to their concerned web mail. Requirements for the system are we will be using Ruby On Rails for the development, and for the web design HTML, Javascript and CSS. The Backend is managed by MySQL. The Database for the System consists of shop online development database which consist of tables for categories, products, product images, users. The Columns for the categories are id, title, weight, products_counter, created_at, updated_at, ancestry. The Columns for products are id, category_id, titile, status, amount, uuid, msrp, price, description, created_at, updated_at, lprice. The Columns for the product images are id, product_id, weight, image_file_name, image_content_type, image_file_sizee, image_updated_at, created_at, updated_at. The Columns for the users are id, email, crypted_password, created_at, updated_at,activation_state, activation_token, activation_token_expires_at, remember_me_token, remember_me_token_expires_at, reset_password_token, reset_password_token_expires_at, reset_password_email_sent_at. Entity Relationship Diagram: FIG. 1 (Relationship between the tables) In ruby on rails the web application code is divided into model, view, controller. Model represents the database access, View represents the html pages before and after access of the database, and controller represents the action to be done once the we get a request from the Web Application. Model Code: (Category) class Category < ApplicationRecord    validates :title, presence: { message: Empty name! }    validates :title, uniqueness: { message: Repeated name! }    has_ancestry orphan_strategy: :destroy    has_many :products, dependent: :destroy    before_validation :correct_ancestry    def self.grouped_data   Ã‚  Ã‚   self.roots.order(weight desc).inject([]) do |result, parent|   Ã‚  Ã‚  Ã‚  Ã‚   row = []   Ã‚  Ã‚  Ã‚  Ã‚   row { where(status: Status::On) }    module Status   Ã‚  Ã‚   On = on   Ã‚  Ã‚   Off = off    end    private    def set_default_attrs   Ã‚  Ã‚   self.uuid = RandomCode.generate_product_uuid    end end (product image): class ProductImage < ApplicationRecord    belongs_to :product    has_attached_file :image, styles: {   Ã‚  Ã‚  Ã‚  Ã‚   small: 60^x60,   Ã‚  Ã‚  Ã‚  Ã‚   middle: 200^x200,   Ã‚  Ã‚  Ã‚  Ã‚   big: 960x    }    validates_attachment_content_type :image, content_type: /Aimage/.*Z/    validates_attachment_size :image, in: 0..5.megabytes end (User): class User < ApplicationRecord    authenticates_with_sorcery!    attr_accessor :password, :password_confirmation    validates_presence_of :email, message: Email cannot be empty!    validates_format_of :email,message: Email format mistake!,   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   with: /w+([-+.]w+)*@w+([-.]w+)*.w+([-.]w+)*/,   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   if: proc { |user| !user.email.blank? }    validates :email, uniqueness: true    validates_presence_of :password, message: Password cannot be empty!,   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   if: :need_validate_password    validates_presence_of :password_confirmation, message: Password confirm cannot be empty!,   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   if: :need_validate_password    validates_confirmation_of :password,message: Password not right ,   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   if: :need_validate_password    validates_length_of :password, message: Password at least 6 digits, minimum: 6,   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   if: :need_validate_password    def username   Ã‚  Ã‚   self.email.split(@).first    end    private    def need_validate_password   Ã‚  Ã‚  Ã‚   self.new_record? || (!self.password.nil?||!self.password_confirmation.nil?)    end end Controller Code: (Category) class CategoriesController < ApplicationController    def show   Ã‚  Ã‚   @categories = Category.grouped_data   Ã‚  Ã‚   @category = Category.find(params[:id])   Ã‚  Ã‚   @products = @category.products.onshelf.page(params[:page] || 1).per_page(params[:per_page] || 12)   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   .order(id desc).includes(:main_product_image)    end end (Product): class ProductsController < ApplicationController    def show   Ã‚  Ã‚   @categories = Category.grouped_data   Ã‚  Ã‚   @product = Product.find(params[:id])    end end (Session): class SessionsController < ApplicationController    def new    end    def create   Ã‚  Ã‚   if user= login(params[:email],params[:password])#loginsorcery   Ã‚  Ã‚  Ã‚  Ã‚   flash[:notice]=You have logged in!   Ã‚  Ã‚  Ã‚  Ã‚   redirect_to root_path   Ã‚  Ã‚   else   Ã‚  Ã‚  Ã‚  Ã‚   flash[:notice]=Emails or Password mistake   Ã‚  Ã‚  Ã‚  Ã‚   redirect_to new_session_path   Ã‚  Ã‚   end    end    def destroy   Ã‚  Ã‚   logout   Ã‚  Ã‚   flash[:notice]=You already logged out!   Ã‚  Ã‚   redirect_to root_path    end end (User): class UsersController < ApplicationController    def new   Ã‚  Ã‚   @user = User.new    end    def create   Ã‚  Ã‚   @user= User.new(params.require(:user).permit(:email,:password,:password_confirmation))   Ã‚  Ã‚   if @user.save   Ã‚  Ã‚  Ã‚  Ã‚   flash[:notice] = sign up successfully! Please log in   Ã‚  Ã‚  Ã‚  Ã‚   redirect_to new_session_path   Ã‚  Ã‚   else   Ã‚  Ã‚  Ã‚  Ã‚   render action: :new   Ã‚  Ã‚   end    end end (Welcome): class WelcomeController < ApplicationController    def index   Ã‚  Ã‚   @categories = Category.grouped_data   Ã‚  Ã‚   @products = Product.onshelf.page(params[:page] || 1).per_page(params[:per_page] || 12)   Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚  Ã‚   .order(id desc).includes(:main_product_image)    end end

Friday, January 17, 2020

Luck has nothing to do with success Essay

At universities and colleges, sports and social activities are just as important as classes and libraries and should receive equal financial support. With the progress of the times and society. It has become increasingly fast pace of life. We are anxious and hoped that people acquire knowledge by simply learning. Thus we ignoring its importance. In fact, this is wrong. I think it is just as important in college, sports and social activities as well as classes and libraries, and should receive the same financial support. Firstly, sports and social activities can teach us social skills and team spirit. In contemporary society, we need people who can able to unite others and have high emotional intelligence rather than those who can only read books. More and more businesses require people who are not only specialists in their fields, but also skilled in social interaction. What’s more social skills and team spirit are necessary qualities for any students. Obviously, when students participate in sports activities or social practices at the university, they can have a perfect social learning opportunity, such as, sports and charity events. Students can develop a experienced team spirit and collaboration capabilities. Aside from fostering social skills and team spirit, sports and social activities can greatly improve students’ learning ability.These activities can change students’ mood and attention. Indeed, for some students, playing sports and joining in social activities are good stress reducers. Even the most enthusiastic people feel tired if they concentrate on one thing for too long.Frustrated and tired people can do nothing well if they do not recover from their bad situations. Students who have been frustrated in their academic work would be well-advised to play some sports or join in social activities. However, I know that academic learning is the most important task of students in college.But I think it can not bring students communication and physical fitness never be a university recognized by most people school. Such schools are not conformed with the current wave of social development and age. In  fact, almost all famous universities have plenty of sports teams and social groups, and universities provide adequate financial support with these events. None of these universities have weakened their academic standards because of social movements or sports. In summary, I agree with that universities and colleges should spend enough money on academic education and amateur events to help students for their future development.

Thursday, January 9, 2020

The Affirmative Of Affirmative Action Essay - 1389 Words

Many affirmative action efforts have been made since the end of the Civil War in order to remedy the results of hundreds of years of slavery, segregation and denial of opportunity for groups that face discrimination. Many African Americans such as President Barack Obama, Senator Cory Booker, the writer Toni Morrison, the literary scholar Henry Louis Gates, media star Oprah Winfrey, and rap star Jay-Z have achieved positions of power and influence in the wider society (Giddens, Duneier, Appelbaum, Carr). However, today blacks and other minorities are still more likely to live in poverty, be killed by the police, attend poor schools, and have unequal economic opportunities. This object of this paper is to understand why affirmative action is still needed in the United State by discussing the differences between whites’ and racial/ethnic minorities’ access to education and employment. Racial Inequality in Educational Attainment in America Historically, African-American, Latino and Native American students were educated in wholly segregated schools whose funding rates were several times lower than schools made up of all white students. These minority students were also being excluded from many higher institutions (Darling-Hammond). This happened until legal segregation came to an end in the 1960s and many efforts were made to equalize school funding. These efforts have made a substantial difference for student achievement and significantly narrowed minority and whiteShow MoreRelatedAffirmative Action And Its Effects On Affirmative1263 Words   |  6 PagesThroughout America there are many different views on the effects of affirmative action. Many see it as a negative policy which gives an unnecessary advantage to minorities in America. In a 2009 Pew Poll, â€Å"58% of African Americans agree† and only â€Å"22% whites agree† that there should be â₠¬Å"preferential treatment to improve the position of blacks and other minorities† (Public Backs Affirmative Action†). Today affirmative action and other racial injustices tend to be in the spotlight quite often, suchRead MoreAffirmative Action1559 Words   |  7 PagesRESEARCH PAPER AFFIRMATIVE ACTION INTRODUCTION Affirmative Action is an employment legislation protection system that is intended to address the systemized discrimination faced by women and minorities. It achieves this by enforcing diversity through operational intrusions into recruitment, selection, and other personnel functions and practices in America. Originally, Affirmative Action arose because of President Lyndon B. Johnson’s desire to integrate society on educationalRead MoreAffirmative Action719 Words   |  3 PagesAffirmative Action Generations of families have suffered due unequal laws or prejudices set in place to prevent minorities from growing. Slavery, segregation, separate but equal laws, the trail of tears, failing ESOL classes, unequal pay and so much more effect todays youth and causing history to change slowly if at all. Affirmative action has good intentions and is very much needed in todays world however it sometimes fails doing what it was created to do. The extra points given to theRead MoreAffirmative Action1160 Words   |  5 PagesAffirmative Action Marlene S. Smith MGT/434 October 28, 2013 Thomas Affirmative Action Affirmative action is an action that was purposefully designed to provide full and equal opportunities for employment and education for women, minorities, and other individuals belonging to disadvantaged groups. This paper will assess the rudiments of Affirmative Action as it applies to public and private sector employers. The paper will also evaluate what employers are subject to affirmative actionRead MoreAffirmative Action1571 Words   |  7 PagesName Professor Name Management 11th November 2011 Affirmative Action Thesis: Affirmative Action has helped many women and minorities in entering the job market. Although there has been a lot of hue and cry regarding the benefits of the affirmative action and the suitability of candidates selected thorough affirmative action; research has shown that affirmative action is beneficial and the candidates of affirmative action perform as well as those who are selected through theRead MoreAffirmative Actions1078 Words   |  5 PagesRunning Head: AFFERMATIVE ACTION Affirmative Actions Affirmative action is an action taken by an organization to select on the basis of race, gender, or ethnicity by giving due preferences to minorities like women and races being not adequately represented under the existing employment. To make the presentation of all these compositions almost equal in proportion to do away the injustice done in the past. The Supreme Company need to design an affirmative action program in the light ofRead MoreAffirmative Action1759 Words   |  8 PagesAffirmative Action Right? Affirmative action has been around for decades. Some believe it isn’t fair but others do. Those who believe and agree with affirmative action tend to say, â€Å"The principle of affirmative action is to promote societal equality through the preferential treatment of socioeconomically disadvantaged people† (Bidmead, Andrew pg 3). Others that disagree with it and find it unfair simply see it as another form of discrimination, giving one group extra advantages based upon nothingRead MoreAffirmative Action1075 Words   |  5 PagesAffirmative Action Sharon Huntington University of Phoenix MGT 434 Teresa Knox September 13, 2010 Affirmative Action According to the Stanford Encyclopedia of Philosophy, â€Å"affirmative action means positive steps taken to increase the representation of women and minorities in areas of employment, education, and business from which they have been historically excluded† (Fullinwider, 2009). The following paragraphs will discuss whatRead Moreaffirmative action1695 Words   |  7 Pagesï » ¿ Abstract What is affirmative action? Affirmative action is an action or policy favoring those who tend to suffer from discrimination, esp. in relation to employment or education; positive discrimination. In the 1940s: President Roosevelt signed an order making discrimination illegal in defense contracting. 1954: The U.S. Supreme Court ruled in Brown v. Board of Education that separate but equal facilities on the basis of race were unconstitutionally discriminatory. The Act of 1964: CongressRead MoreAffirmative Action774 Words   |  4 PagesAffirmative action is a practice that is intended to promote opportunities for the â€Å"protected class† which includes minorities, woman, and people with disabilities or any disadvantaged group for that matter. With affirmative action in place people of this protected class are given an even playing field in terms of hiring, promotion, as well as compensation. Historically, affirmative action is only known to have protected African Americans and woman; however that is not the case. Affirmative action

Wednesday, January 1, 2020

Nasa Code of Ethics Essay - 3848 Words

The NASW Code of Ethics maybe considered the most ambitious set of ethical guidelines in social work history. Ethical issues have always been a concern of the professional social worker. As early as 1919 there were attempts to draft professional codes of ethics (Reamer, 1998). There have been several social work organizations since, that have attempted to draft ethical codes, such as the American Association for Organizing Family Social Work and several chapters of the American Association of Social Workers. In 1960 NASW adopted its first code of ethics, five years after the association was formed. The first code consisted of only 14 proclamations, with another added in 1957. In 1979 a new code was adopted, this code was far more†¦show more content†¦The Code emphasizes that ethical decision making is a process (NASW) and supports the belief that the Code should be used as a primary source, but not the only source. The code includes suggestions of action to be taken when o ne needs additional guidance. Additionally the Code stresses that the code of ethics cannot guarantee ethical behavior. The core values recognized by the NASWs Code of Ethics are broad ethical principles set forth to which all persons in the social work profession should aspire to. These six values, on which the guiding principles and standards are based, are as follow service, social justice, dignity and worth of the person, importance of human relationship, integrity, and competence. Again these are in no exacting order. Service is to help people in need and address social problems above the workers self-interest. This would include both paid and volunteer time. An illustration of this would be to help train employees of, and work with these employees at, a crisis call line. Social justice, the next value, is challenging the inequalities that is seen daily both in a micro, mezzo and macro realm. An example of all three could be in looking at AIDs patients. If a worker was worki ng with a client who had the AIDsShow MoreRelatedEssay on Space Shuttle Ethics Case Study919 Words   |  4 Pagesof NASA management to launch the shuttlecraft (â€Å"Engineering Ethics,† n.d.). Alan McDonald, an employee of Morton-Thiokol and director of the project to build the solid rocket boosters, urged NASA management not to launch Challenger at the planned time after the company management wrote a recommendation to launch. In spite of his pleas, NASA made the decision to continue with the scheduled date, even though the predicted temperature was not within operational requirement (â€Å"Engineering Ethics,† nRead MoreThe American Society for Public Administrations Code of Ethics: A Case Study890 Words   |  4 Pagesworking as a public administrator makes it possible to understand that the woman in the video has no problems with exploiting her position, regardless of the fact that her behavior is unethical. The American Society for Public Administrations Code of Ethics has several points that denounce the presence of outside business in the case of public administrators and it is very likely that the person in the video was well-acquainted with these respecti ve points. 1. Advance the Public Interest. PromoteRead MoreEngineering Ethic of the Challenger Space Suttle754 Words   |  4 Pagesengineers because it is in their code and law of ethics and safety is the first Canon on the list, â€Å"Hold paramount the safety, health, and welfare of the public.† (NSPE, 2012). There are very bad consequences that happen when someone decides not to fallow the Code of Ethics for Engineers, for example the Space shuttle Challenger disaster that happened in January of 1986. There were issues with parts and conflicts with decision making that violated the Code of Ethics and 7 people died because of itRead MoreEssay on Challenger1108 Words   |  5 Pagessize after being compressed at low temperatures. Thiokol designed a set of billets that would hold the joint more firmly in place. These billets were not ready on the day of the Challenger disaster because they took too long to manufacture, and NASA did not want to delay the project. The next tests took place in June of 1985 at Morton-Thiokol in Utah. The primary seal on flight 51B which flew on April 29, 1985, was eroded; quot;eroded in 3 places over a 1.3 inch length up to a maximum depthRead MoreThe Space Shuttle Disaster And 121350 Words   |  6 PagesThe first space shuttle, Enterprise, launched in 1977. NASA couldn’t have been more proud of their accomplishments and looked forward to the years to come with many new ideas, experiments to try and space to explore. While this might have been the case for a few years following, NASA couldn’t have predicted what was to happen on the mornings of January 28, 1986 and February 1, 2003†¦ or could they? Disaster struck for both the Challenger and the Columbus space shuttles. Even though both scenariosRead MoreEngineering Ethical Responsibility And Environment Essay1401 Words   |  6 PagesName: Instructor: Course: Date: Engineering Ethical Responsibility to Environment Introduction â€Å"The rationale for teaching ethics to engineers seems fairly obvious. Their work has an enormous impact on the world.† Johnson. Discussion of an engineer’s inherent interaction with the environment and environmental needs leads to an engineer’s responsibility to the environment. Since Joseph R. Desjardins report on environmental responsibilities, engineers are supported to design their project in totalRead MoreThe Intellectual Virtues : Knowledge, Understanding And Wisdom935 Words   |  4 Pagessoftware code. Issues like high and complex coupling between the elements, global variables, too long control flows in the code, count of unmaintainable code count was over 100 etc. 2005 Camry L4 had 67 functions out of which more than 50 were non testable. In addition to all these issues they were very greedy about profit and they sold their recalled cars in auction which was not virtuous behavior. This case can be evaluated with the help of ethical toolkit: â€Å"Four approaches to ethics†. It talksRead MoreToyota Strategy After Recall1681 Words   |  7 Pagesacceleration. Others claimed that there was a problem with the accelerator itself. On February 8, 2011 the National Highway Traffic Safety Administration (NHTSA) in participation with NASA performed an investigation on the throttle system of the Toyota vehicles. The study lasted for 10 months and afterwards the scientist from NASA and NHTSA announced they found no defect. Sometimes mistakes like this can be crippling to a company’s reputation. In business it is important to have a plan for everything. AllRead MoreEven though a great deal of individuals believe that hacking into their personal computers or into700 Words   |  3 Pagesbelieved it to be Mitnick as the intrusion was complex and he did not think that Mitnick was smart enough. He began his investigation into the hacking by reconstructing the attack on his computer to identify the intruder. Shimomura had a strong code of ethics and believed that this hacker had to be stopped. Shimomura discovered by a call he received that the files that were taken from his computer had shown up on an established Bay area bulletin board known as the WELL. Shimomura began surveillanceRead MoreEngineering At Scientific Engineering Corporation1609 Words   |  7 Pagesmanager to fund the testing of JXB3 and coerce its application on the Shuttle Launch Booster, by leaving the prime contractor, Space Technology Industries (STI), no option but to accept the new material, in order to meet its delivery schedule with NASA. Unfortunately for Gary, his lack of project management and business process knowledge will result in numerous technical, contractual, ethical and legal issues throughout the term of the project. Technical and Contractual Issues When STI issued