This series introduces students to ruby on rails 3 through the book "Agile Web Development with Rails" with accompanying lecture videos found at http://www.thinkbohemian.com/tag/rails-summer-of-code/
This document summarizes content from Week 6 of the Rails Summer of Code. It discusses email in Rails, including how email works, content types, and using ActionMailer. It also covers background tasks in Rails using rake tasks, cron jobs, Monit, and God. Modules and mixins in Ruby are explained. Callbacks and observers in Rails are described as ways to trigger behavior during an object's lifecycle. Internationalization and localization in Rails are covered, including using the I18n module and creating language-specific YAML files.
This is the 5th of 8 presentations given at University of Texas during my Beginner to Builder Rails 3 Class. For more info and the whole series including video presentations at my blog:
http://schneems.com/tagged/Rails-3-beginner-to-builder-2011
This is the first of 8 presentations given at University of Texas during my Beginner to Builder Rails 3 Class. For more info and the whole series including video presentations at my blog:
http://schneems.tumblr.com/tagged/Rails-3-beginner-to-builder-2011
The document provides an introduction to theming in Drupal 7. It covers prerequisites for theming including HTML, CSS, and basics of Drupal and PHP. It then discusses theming concepts such as theme components, templates, overriding functions, and tools for theming. The document provides examples of how to create templates, add variables, and override functions to customize a Drupal theme.
Grok Drupal (7) Theming - 2011 Feb updateLaura Scott
These are slides from my presentation at Drupal Design Camp Los Angeles, February 2011. Video with rather low resolution version of the slides (we inadvertently recorded my presentation notes screen rather than the projector screen) can be viewed on blip:
http://ladrupal.blip.tv/file/4731722/
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)Laura Scott
This is now DEPRECATED. Please see Grok Drupal (7) Theming, February 11 Update
These are slides for my presentation at DrupalCon San Francisco, April 2010.
There is <a>audio/video of the presentation at the DCSF website</a>.
My apologies for the extraneous slides -- that's how Slideshare converted my Keynote file.
Drupal themes are created by using template files (.tpl.php) and style sheets (.css) that define the presentation layer of a Drupal site. A theme is a collection of these files that control how content is displayed. Template files can overwrite each other based on a hierarchy, with more specific templates taking precedence over more general ones. Style sheets also overwrite each other based on this hierarchy. Themes provide the final presentation definition by overwriting templates and styles from Drupal core and other modules.
The document summarizes Drupal's theme system. It discusses creating a theme from scratch including creating a .info file and adding stylesheets, scripts, regions, and settings. It covers overriding and creating template files, template functions, preprocess functions, and defining custom templates. It also briefly mentions subthemes and distributing content.
This document summarizes content from Week 6 of the Rails Summer of Code. It discusses email in Rails, including how email works, content types, and using ActionMailer. It also covers background tasks in Rails using rake tasks, cron jobs, Monit, and God. Modules and mixins in Ruby are explained. Callbacks and observers in Rails are described as ways to trigger behavior during an object's lifecycle. Internationalization and localization in Rails are covered, including using the I18n module and creating language-specific YAML files.
This is the 5th of 8 presentations given at University of Texas during my Beginner to Builder Rails 3 Class. For more info and the whole series including video presentations at my blog:
http://schneems.com/tagged/Rails-3-beginner-to-builder-2011
This is the first of 8 presentations given at University of Texas during my Beginner to Builder Rails 3 Class. For more info and the whole series including video presentations at my blog:
http://schneems.tumblr.com/tagged/Rails-3-beginner-to-builder-2011
The document provides an introduction to theming in Drupal 7. It covers prerequisites for theming including HTML, CSS, and basics of Drupal and PHP. It then discusses theming concepts such as theme components, templates, overriding functions, and tools for theming. The document provides examples of how to create templates, add variables, and override functions to customize a Drupal theme.
Grok Drupal (7) Theming - 2011 Feb updateLaura Scott
These are slides from my presentation at Drupal Design Camp Los Angeles, February 2011. Video with rather low resolution version of the slides (we inadvertently recorded my presentation notes screen rather than the projector screen) can be viewed on blip:
http://ladrupal.blip.tv/file/4731722/
Grok Drupal (7) Theming (presented at DrupalCon San Francisco)Laura Scott
This is now DEPRECATED. Please see Grok Drupal (7) Theming, February 11 Update
These are slides for my presentation at DrupalCon San Francisco, April 2010.
There is <a>audio/video of the presentation at the DCSF website</a>.
My apologies for the extraneous slides -- that's how Slideshare converted my Keynote file.
Drupal themes are created by using template files (.tpl.php) and style sheets (.css) that define the presentation layer of a Drupal site. A theme is a collection of these files that control how content is displayed. Template files can overwrite each other based on a hierarchy, with more specific templates taking precedence over more general ones. Style sheets also overwrite each other based on this hierarchy. Themes provide the final presentation definition by overwriting templates and styles from Drupal core and other modules.
The document summarizes Drupal's theme system. It discusses creating a theme from scratch including creating a .info file and adding stylesheets, scripts, regions, and settings. It covers overriding and creating template files, template functions, preprocess functions, and defining custom templates. It also briefly mentions subthemes and distributing content.
This series introduces students to ruby on rails 3 through the book "Agile Web Development with Rails" with accompanying lecture videos found at http://www.thinkbohemian.com/tag/rails-summer-of-code/
This document discusses strategies for integrating the delivery of the Software Design and Development (SDD) and Information Systems Design and Development (ISDD) units for Higher Computing Science. It proposes using a server-side scripting language like PHP to increase teaching time and reduce assessment time. It provides information on tools and technologies like Apache/MySQL/PHP/JavaScript and describes approaches like agile methodologies, functions, methods, data types, file handling, algorithms, and integrating databases with web pages using PHP and MySQL. Assessment would cover the relevant SDD and ISDD outcomes.
Rails 4.0 introduced the following changes:
1. Thread safety is enabled by default.
2. Strong Parameters were added for mass assignment protection.
3. Turbolinks was added to speed up page loads by preventing full page reloads.
4. Russian Doll Caching was introduced to maximize cache hits by nesting fragment caches.
Some features were extracted to gems including Action and Page Caching, Active Resource, and AR Observer. The deprecation policy removes deprecated features in future versions. Strong Parameters replace attr_accessible. Turbolinks improves performance. Russian Doll Caching optimizes caching.
This document discusses Rails form helpers and generating forms in Rails. It covers the form_tag helper which generates form tags, and the form_for helper which binds forms to model objects. It also discusses generating individual form fields like text fields, text areas, checkboxes and radio buttons. Additionally, it covers options for selecting values from a collection and working with nested attributes using fields_for.
This document provides an overview of learning to code for a startup minimum viable product (MVP) using Ruby on Rails. It discusses setting up a development environment, using Git version control, the Ruby programming language basics, Rails models and object-relational mapping, authentication with Devise, Rails controllers and routing, and using scaffolding to build out a sample Mini Twitter app with Posts and Users models. The goal is to provide attendees with the necessary skills to build a basic MVP for a startup.
The document discusses stored procedures in C# and ADO.NET. It defines stored procedures as pre-compiled SQL statements that improve performance by avoiding repeated parsing and optimization. It provides examples of creating stored procedures to insert, update, and delete student records from a database. It also shows how to call stored procedures from C# code using ADO.NET, including how to define parameters and return values.
The document provides an introduction to Active Server Pages (ASP) and covers several key concepts:
- ASP allows for server-side scripting using VBScript or JScript to dynamically generate web pages. Scripting code is placed between <% and %> tags.
- Basic programming constructs like variables, if/else statements, loops, and functions can be used to add logic and dynamically output content.
- Forms allow collecting user input which is submitted to an ASP processing page via the POST or GET methods.
- Server-side includes and built-in objects like Request, Response, and Session provide functionality to include pages, access submitted data, send output, and maintain state across pages.
Advanced guide to develop ajax applications using dojoFu Cheng
The document discusses developing Ajax applications using Dojo. It provides a brief history of web applications and introduces rich internet applications and Ajax. It then covers why Ajax is used, different Ajax application types, how Ajax changes web applications, and the anatomy of Ajax applications. The document also discusses semantic HTML, best practices for CSS, JavaScript concepts, DOM querying and manipulation using Dojo, efficient DOM techniques, events, and event propagation.
form_for binds a form to an Active Record object. It generates the proper form markup including the correct POST path and hidden authenticity token field.
The document discusses tips for getting the most out of the Radiant content management system. It provides 5 free tips learned from experience, including using nested layouts and part inheriting, keeping Radius tags away from clients, using fragment caching for performance, keeping Radius code tidy, and allowing snippets to "yield" content. It also outlines upcoming changes to Radiant like gems, internationalization, and potential integration with Rails engines.
Building Better Applications with Data::ManagerJay Shirley
The document discusses tools for managing form data and validation. It introduces Data::Manager, which provides a way to manage incoming data and validation rules across multiple scopes or sections. Data::Manager uses Data::Verifier under the hood to validate data according to defined rules. It provides methods to verify data, check for errors, and retrieve validation results. The document emphasizes usability, reliability, and hiding complexity through a clean API.
Roundup of what is on the web at regarding Rails 3 as of Easter 2010.
Includes outline of significant changes to Rais in Rails 3 plus how you might set about upgrading an existing app.
Acknowledges and links to to some amazing resources already elsewhere on the web.
Stop Reinventing The Wheel - The Ruby Standard LibraryBrian Hogan
My talk from Ruby Hoedown MMX. We talked about the Ruby standard library and how sometimes we reinvent things when we have perfectly good tools waiting for us to use them.
The document provides an overview of PowerShell basics including cmdlets, parameters, piping, variables, loops, operators and the ISE tool. It demonstrates getting information from SharePoint using PowerShell cmdlets and iterating through sites and lists to update icons, create/remove sites, and retrieve list items and properties. It also shows retrieving farm account information and takes questions at the end.
devise tutorial - 2011 rubyconf taiwanTse-Ching Ho
This document provides an overview and instructions for building an authentication system using the Devise gem in Rails. It discusses Devise's features like authentication modules, filters, helpers and extensions. It also outlines setting up Devise by generating models, configuring routes and customizing views. The document demonstrates deploying a sample Devise app to Heroku and adding manager authentication with custom routes.
Rails Antipatterns | Open Session with Chad Pytel Engine Yard
As developers worldwide have adopted the Ruby on Rails web framework, many have fallen victim to common mistakes that reduce code quality, performance, reliability, stability, scalability, and maintainability. Even experienced developers will find that they can reevaluate the work they've done and make it better.
In this session, Chad Pytel will provide an overview of some of these common mistakes as well as take questions from the audience and provide real-world advice. Bring your issues and get expert advice on how to bring your code in line with today's best practices.
This series introduces students to ruby on rails 3 through the book "Agile Web Development with Rails" with accompanying lecture videos found at http://www.thinkbohemian.com/tag/rails-summer-of-code/
Imagine you’re a new engineer at a workplace who has to learn a new unfamiliar codebase. After you acquire a copy of the repo, what is your next step? How do you dissect a new unfamiliar codebase to understand its inner workings? Come see a guided walkthrough of reading the widely used python-requests project, which gets over 18,000 downloads per day and powers many of the world’s REST-based APIs.
This was a talk given at PyCon 2016.
This document discusses quality assurance (QA) for PHP projects. It introduces various QA tools and techniques including syntax checking, documentation, testing, version control and code coverage. Screenshots are provided to illustrate concepts like detecting bugs early, observing behavior and preventing mistakes. The document also includes exercises for attendees to practice setting up version control with Git, running syntax checks with PHP Lint, generating documentation with phpDocumentor, and testing models with PHPUnit.
This is an introduction to relational and non-relational databases and how their performance affects scaling a web application.
This is a recording of a guest Lecture I gave at the University of Texas school of Information.
In this talk I address the technologies and tools Gowalla (gowalla.com) uses including memcache, redis and cassandra.
Find more on my blog:
http://schneems.com
This is the last of 8 presentations given at University of Texas during my Beginner to Builder Rails 3 Class. For more info and the whole series including video presentations at my blog:
http://schneems.com/tagged/Rails-3-beginner-to-builder-2011
This series introduces students to ruby on rails 3 through the book "Agile Web Development with Rails" with accompanying lecture videos found at http://www.thinkbohemian.com/tag/rails-summer-of-code/
This document discusses strategies for integrating the delivery of the Software Design and Development (SDD) and Information Systems Design and Development (ISDD) units for Higher Computing Science. It proposes using a server-side scripting language like PHP to increase teaching time and reduce assessment time. It provides information on tools and technologies like Apache/MySQL/PHP/JavaScript and describes approaches like agile methodologies, functions, methods, data types, file handling, algorithms, and integrating databases with web pages using PHP and MySQL. Assessment would cover the relevant SDD and ISDD outcomes.
Rails 4.0 introduced the following changes:
1. Thread safety is enabled by default.
2. Strong Parameters were added for mass assignment protection.
3. Turbolinks was added to speed up page loads by preventing full page reloads.
4. Russian Doll Caching was introduced to maximize cache hits by nesting fragment caches.
Some features were extracted to gems including Action and Page Caching, Active Resource, and AR Observer. The deprecation policy removes deprecated features in future versions. Strong Parameters replace attr_accessible. Turbolinks improves performance. Russian Doll Caching optimizes caching.
This document discusses Rails form helpers and generating forms in Rails. It covers the form_tag helper which generates form tags, and the form_for helper which binds forms to model objects. It also discusses generating individual form fields like text fields, text areas, checkboxes and radio buttons. Additionally, it covers options for selecting values from a collection and working with nested attributes using fields_for.
This document provides an overview of learning to code for a startup minimum viable product (MVP) using Ruby on Rails. It discusses setting up a development environment, using Git version control, the Ruby programming language basics, Rails models and object-relational mapping, authentication with Devise, Rails controllers and routing, and using scaffolding to build out a sample Mini Twitter app with Posts and Users models. The goal is to provide attendees with the necessary skills to build a basic MVP for a startup.
The document discusses stored procedures in C# and ADO.NET. It defines stored procedures as pre-compiled SQL statements that improve performance by avoiding repeated parsing and optimization. It provides examples of creating stored procedures to insert, update, and delete student records from a database. It also shows how to call stored procedures from C# code using ADO.NET, including how to define parameters and return values.
The document provides an introduction to Active Server Pages (ASP) and covers several key concepts:
- ASP allows for server-side scripting using VBScript or JScript to dynamically generate web pages. Scripting code is placed between <% and %> tags.
- Basic programming constructs like variables, if/else statements, loops, and functions can be used to add logic and dynamically output content.
- Forms allow collecting user input which is submitted to an ASP processing page via the POST or GET methods.
- Server-side includes and built-in objects like Request, Response, and Session provide functionality to include pages, access submitted data, send output, and maintain state across pages.
Advanced guide to develop ajax applications using dojoFu Cheng
The document discusses developing Ajax applications using Dojo. It provides a brief history of web applications and introduces rich internet applications and Ajax. It then covers why Ajax is used, different Ajax application types, how Ajax changes web applications, and the anatomy of Ajax applications. The document also discusses semantic HTML, best practices for CSS, JavaScript concepts, DOM querying and manipulation using Dojo, efficient DOM techniques, events, and event propagation.
form_for binds a form to an Active Record object. It generates the proper form markup including the correct POST path and hidden authenticity token field.
The document discusses tips for getting the most out of the Radiant content management system. It provides 5 free tips learned from experience, including using nested layouts and part inheriting, keeping Radius tags away from clients, using fragment caching for performance, keeping Radius code tidy, and allowing snippets to "yield" content. It also outlines upcoming changes to Radiant like gems, internationalization, and potential integration with Rails engines.
Building Better Applications with Data::ManagerJay Shirley
The document discusses tools for managing form data and validation. It introduces Data::Manager, which provides a way to manage incoming data and validation rules across multiple scopes or sections. Data::Manager uses Data::Verifier under the hood to validate data according to defined rules. It provides methods to verify data, check for errors, and retrieve validation results. The document emphasizes usability, reliability, and hiding complexity through a clean API.
Roundup of what is on the web at regarding Rails 3 as of Easter 2010.
Includes outline of significant changes to Rais in Rails 3 plus how you might set about upgrading an existing app.
Acknowledges and links to to some amazing resources already elsewhere on the web.
Stop Reinventing The Wheel - The Ruby Standard LibraryBrian Hogan
My talk from Ruby Hoedown MMX. We talked about the Ruby standard library and how sometimes we reinvent things when we have perfectly good tools waiting for us to use them.
The document provides an overview of PowerShell basics including cmdlets, parameters, piping, variables, loops, operators and the ISE tool. It demonstrates getting information from SharePoint using PowerShell cmdlets and iterating through sites and lists to update icons, create/remove sites, and retrieve list items and properties. It also shows retrieving farm account information and takes questions at the end.
devise tutorial - 2011 rubyconf taiwanTse-Ching Ho
This document provides an overview and instructions for building an authentication system using the Devise gem in Rails. It discusses Devise's features like authentication modules, filters, helpers and extensions. It also outlines setting up Devise by generating models, configuring routes and customizing views. The document demonstrates deploying a sample Devise app to Heroku and adding manager authentication with custom routes.
Rails Antipatterns | Open Session with Chad Pytel Engine Yard
As developers worldwide have adopted the Ruby on Rails web framework, many have fallen victim to common mistakes that reduce code quality, performance, reliability, stability, scalability, and maintainability. Even experienced developers will find that they can reevaluate the work they've done and make it better.
In this session, Chad Pytel will provide an overview of some of these common mistakes as well as take questions from the audience and provide real-world advice. Bring your issues and get expert advice on how to bring your code in line with today's best practices.
This series introduces students to ruby on rails 3 through the book "Agile Web Development with Rails" with accompanying lecture videos found at http://www.thinkbohemian.com/tag/rails-summer-of-code/
Imagine you’re a new engineer at a workplace who has to learn a new unfamiliar codebase. After you acquire a copy of the repo, what is your next step? How do you dissect a new unfamiliar codebase to understand its inner workings? Come see a guided walkthrough of reading the widely used python-requests project, which gets over 18,000 downloads per day and powers many of the world’s REST-based APIs.
This was a talk given at PyCon 2016.
This document discusses quality assurance (QA) for PHP projects. It introduces various QA tools and techniques including syntax checking, documentation, testing, version control and code coverage. Screenshots are provided to illustrate concepts like detecting bugs early, observing behavior and preventing mistakes. The document also includes exercises for attendees to practice setting up version control with Git, running syntax checks with PHP Lint, generating documentation with phpDocumentor, and testing models with PHPUnit.
Semelhante a Rails3 Summer of Code 2010- Week 5 (20)
This is an introduction to relational and non-relational databases and how their performance affects scaling a web application.
This is a recording of a guest Lecture I gave at the University of Texas school of Information.
In this talk I address the technologies and tools Gowalla (gowalla.com) uses including memcache, redis and cassandra.
Find more on my blog:
http://schneems.com
This is the last of 8 presentations given at University of Texas during my Beginner to Builder Rails 3 Class. For more info and the whole series including video presentations at my blog:
http://schneems.com/tagged/Rails-3-beginner-to-builder-2011
This is the 6th of 8 presentations given at University of Texas during my Beginner to Builder Rails 3 Class. For more info and the whole series including video presentations at my blog:
http://schneems.com/tagged/Rails-3-beginner-to-builder-2011
This is the 4th of 8 presentations given at University of Texas during my Beginner to Builder Rails 3 Class. For more info and the whole series including video presentations at my blog:
http://schneems.com/tagged/Rails-3-beginner-to-builder-2011
This document contains notes from a Rails training session. It discusses variables in Ruby and Rails, controllers, testing controllers, associations between database tables, and many-to-many relationships. Key topics covered include using instance variables to share data between models and views, testing controller actions, the params hash, and setting up belongs_to, has_many, has_many :through, and HABTM associations.
This is the 2nd of 8 presentations given at University of Texas during my Beginner to Builder Rails 3 Class. For more info and the whole series including video presentations at my blog:
http://schneems.tumblr.com/tagged/Rails-3-beginner-to-builder-2011
This series introduces students to ruby on rails 3 through the book "Agile Web Development with Rails" with accompanying lecture videos found at http://www.thinkbohemian.com/tag/rails-summer-of-code/
Reimagining Your Library Space: How to Increase the Vibes in Your Library No ...Diana Rendina
Librarians are leading the way in creating future-ready citizens – now we need to update our spaces to match. In this session, attendees will get inspiration for transforming their library spaces. You’ll learn how to survey students and patrons, create a focus group, and use design thinking to brainstorm ideas for your space. We’ll discuss budget friendly ways to change your space as well as how to find funding. No matter where you’re at, you’ll find ideas for reimagining your space in this session.
This presentation was provided by Steph Pollock of The American Psychological Association’s Journals Program, and Damita Snow, of The American Society of Civil Engineers (ASCE), for the initial session of NISO's 2024 Training Series "DEIA in the Scholarly Landscape." Session One: 'Setting Expectations: a DEIA Primer,' was held June 6, 2024.
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...PECB
Denis is a dynamic and results-driven Chief Information Officer (CIO) with a distinguished career spanning information systems analysis and technical project management. With a proven track record of spearheading the design and delivery of cutting-edge Information Management solutions, he has consistently elevated business operations, streamlined reporting functions, and maximized process efficiency.
Certified as an ISO/IEC 27001: Information Security Management Systems (ISMS) Lead Implementer, Data Protection Officer, and Cyber Risks Analyst, Denis brings a heightened focus on data security, privacy, and cyber resilience to every endeavor.
His expertise extends across a diverse spectrum of reporting, database, and web development applications, underpinned by an exceptional grasp of data storage and virtualization technologies. His proficiency in application testing, database administration, and data cleansing ensures seamless execution of complex projects.
What sets Denis apart is his comprehensive understanding of Business and Systems Analysis technologies, honed through involvement in all phases of the Software Development Lifecycle (SDLC). From meticulous requirements gathering to precise analysis, innovative design, rigorous development, thorough testing, and successful implementation, he has consistently delivered exceptional results.
Throughout his career, he has taken on multifaceted roles, from leading technical project management teams to owning solutions that drive operational excellence. His conscientious and proactive approach is unwavering, whether he is working independently or collaboratively within a team. His ability to connect with colleagues on a personal level underscores his commitment to fostering a harmonious and productive workplace environment.
Date: May 29, 2024
Tags: Information Security, ISO/IEC 27001, ISO/IEC 42001, Artificial Intelligence, GDPR
-------------------------------------------------------------------------------
Find out more about ISO training and certification services
Training: ISO/IEC 27001 Information Security Management System - EN | PECB
ISO/IEC 42001 Artificial Intelligence Management System - EN | PECB
General Data Protection Regulation (GDPR) - Training Courses - EN | PECB
Webinars: https://pecb.com/webinars
Article: https://pecb.com/article
-------------------------------------------------------------------------------
For more information about PECB:
Website: https://pecb.com/
LinkedIn: https://www.linkedin.com/company/pecb/
Facebook: https://www.facebook.com/PECBInternational/
Slideshare: http://www.slideshare.net/PECBCERTIFICATION
Strategies for Effective Upskilling is a presentation by Chinwendu Peace in a Your Skill Boost Masterclass organisation by the Excellence Foundation for South Sudan on 08th and 09th June 2024 from 1 PM to 3 PM on each day.
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxEduSkills OECD
Iván Bornacelly, Policy Analyst at the OECD Centre for Skills, OECD, presents at the webinar 'Tackling job market gaps with a skills-first approach' on 12 June 2024
How to Manage Your Lost Opportunities in Odoo 17 CRMCeline George
Odoo 17 CRM allows us to track why we lose sales opportunities with "Lost Reasons." This helps analyze our sales process and identify areas for improvement. Here's how to configure lost reasons in Odoo 17 CRM
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPRAHUL
This Dissertation explores the particular circumstances of Mirzapur, a region located in the
core of India. Mirzapur, with its varied terrains and abundant biodiversity, offers an optimal
environment for investigating the changes in vegetation cover dynamics. Our study utilizes
advanced technologies such as GIS (Geographic Information Systems) and Remote sensing to
analyze the transformations that have taken place over the course of a decade.
The complex relationship between human activities and the environment has been the focus
of extensive research and worry. As the global community grapples with swift urbanization,
population expansion, and economic progress, the effects on natural ecosystems are becoming
more evident. A crucial element of this impact is the alteration of vegetation cover, which plays a
significant role in maintaining the ecological equilibrium of our planet.Land serves as the foundation for all human activities and provides the necessary materials for
these activities. As the most crucial natural resource, its utilization by humans results in different
'Land uses,' which are determined by both human activities and the physical characteristics of the
land.
The utilization of land is impacted by human needs and environmental factors. In countries
like India, rapid population growth and the emphasis on extensive resource exploitation can lead
to significant land degradation, adversely affecting the region's land cover.
Therefore, human intervention has significantly influenced land use patterns over many
centuries, evolving its structure over time and space. In the present era, these changes have
accelerated due to factors such as agriculture and urbanization. Information regarding land use and
cover is essential for various planning and management tasks related to the Earth's surface,
providing crucial environmental data for scientific, resource management, policy purposes, and
diverse human activities.
Accurate understanding of land use and cover is imperative for the development planning
of any area. Consequently, a wide range of professionals, including earth system scientists, land
and water managers, and urban planners, are interested in obtaining data on land use and cover
changes, conversion trends, and other related patterns. The spatial dimensions of land use and
cover support policymakers and scientists in making well-informed decisions, as alterations in
these patterns indicate shifts in economic and social conditions. Monitoring such changes with the
help of Advanced technologies like Remote Sensing and Geographic Information Systems is
crucial for coordinated efforts across different administrative levels. Advanced technologies like
Remote Sensing and Geographic Information Systems
9
Changes in vegetation cover refer to variations in the distribution, composition, and overall
structure of plant communities across different temporal and spatial scales. These changes can
occur natural.
This document provides an overview of wound healing, its functions, stages, mechanisms, factors affecting it, and complications.
A wound is a break in the integrity of the skin or tissues, which may be associated with disruption of the structure and function.
Healing is the body’s response to injury in an attempt to restore normal structure and functions.
Healing can occur in two ways: Regeneration and Repair
There are 4 phases of wound healing: hemostasis, inflammation, proliferation, and remodeling. This document also describes the mechanism of wound healing. Factors that affect healing include infection, uncontrolled diabetes, poor nutrition, age, anemia, the presence of foreign bodies, etc.
Complications of wound healing like infection, hyperpigmentation of scar, contractures, and keloid formation.
This presentation includes basic of PCOS their pathology and treatment and also Ayurveda correlation of PCOS and Ayurvedic line of treatment mentioned in classics.
বাংলাদেশের অর্থনৈতিক সমীক্ষা ২০২৪ [Bangladesh Economic Review 2024 Bangla.pdf] কম্পিউটার , ট্যাব ও স্মার্ট ফোন ভার্সন সহ সম্পূর্ণ বাংলা ই-বুক বা pdf বই " সুচিপত্র ...বুকমার্ক মেনু 🔖 ও হাইপার লিংক মেনু 📝👆 যুক্ত ..
আমাদের সবার জন্য খুব খুব গুরুত্বপূর্ণ একটি বই ..বিসিএস, ব্যাংক, ইউনিভার্সিটি ভর্তি ও যে কোন প্রতিযোগিতা মূলক পরীক্ষার জন্য এর খুব ইম্পরট্যান্ট একটি বিষয় ...তাছাড়া বাংলাদেশের সাম্প্রতিক যে কোন ডাটা বা তথ্য এই বইতে পাবেন ...
তাই একজন নাগরিক হিসাবে এই তথ্য গুলো আপনার জানা প্রয়োজন ...।
বিসিএস ও ব্যাংক এর লিখিত পরীক্ষা ...+এছাড়া মাধ্যমিক ও উচ্চমাধ্যমিকের স্টুডেন্টদের জন্য অনেক কাজে আসবে ...
This slide is special for master students (MIBS & MIFB) in UUM. Also useful for readers who are interested in the topic of contemporary Islamic banking.
1. Rails Summer of Code
Week 5
Richard Schneeman - @ThinkBohemian
2. Rails - Week 5
• Data Flow
• View to Controller
• Routes
• Params
• Authenticating Users
• Cryptographic Hashes (cool huh)
• Authlogic
Richard Schneeman - @ThinkBohemian
3. Data Flow
• How do I get data from Server?
• Controller to View
• Instance Variables - @dog
• How do I get data from browser to server?
• View to Controller
• forms, links, buttons
Richard Schneeman - @ThinkBohemian
4. Data Flow
• Controller to View
• Controller Gets Object saves it in @variable
• View gets @variable renders webpage
Richard Schneeman - @ThinkBohemian
5. Data Flow
• View to Controller (modify @variable)
• View has @variable which has ID and attributes
• Pass @variable.id and new attributes to controller
• Controller finds object by the ID
• modifys attributes and saves data
Richard Schneeman - @ThinkBohemian
6. Data Flow
• How do I get data from browser to server?
• Forms
• form_for
• form_tag
• Links
• Buttons
Richard Schneeman - @ThinkBohemian
7. form_for
• form_for - view_helper
• generates form for object
Controller View
@dog = Dog.new <%= form_for(@dog) do |f| %>
<div class="field">
@dog.fur_color <%= f.label :fur_color %><br />
<%= f.text_field :fur_color %>
</div>
...
<div class="actions">
<%= f.submit %>
</div>
<% end %>
Richard Schneeman - @ThinkBohemian
8. form_for
• form_for - view_helper
• Uses object’s current state for submit
path
Controller View
@dog = Dog.new <%= form_for(@dog) do |f| %>
<div class="field">
@dog.fur_color <%= f.label :fur_color %><br />
<%= f.text_field :fur_color %>
</div>
...
<div class="actions">
@dog is a new Dog, so the form <%= f.submit %>
will default to calling the create </div>
action <% end %>
Richard Schneeman - @ThinkBohemian
9. form_tag
• form_tag - view_helper
• generates form with no object
Routes View
match '/spot/show/' => 'spots#show', :as => :search <% form_tag search_path do %>
Username:
<%= text_field_tag 'username' %>
<%= submit_tag 'Submit'%>
• needs a path <% end %>
• Path is set in routes.rb
Richard Schneeman - @ThinkBohemian
10. form_tag
• Side note - Shorthand Notation
• ClassName#MethodName
class Dogs
def show
...
end
end
• Dogs#show
• Easier than writing “the show method in the dog class”
Richard Schneeman - @ThinkBohemian
11. Routes
• Routes
• Connect controller actions to URLs
• Example: /dogs/show/2
• Will call DogsController#show
• Pass params[:id] = 2
routes.rb
resources :dogs
resources sets up {index, new, create, destroy, edit, update} routes
Richard Schneeman - @ThinkBohemian
12. Urls and Routes
• Pass extra info in url with GET method manually
• /dogs/show/color=brown&name=bob
• params = {:color=> “brown”, :name => “bob”}
• POST methods show no data in the URL
• POST is used for sensitive data
• Password, username, etc.
Richard Schneeman - @ThinkBohemian
14. Routes
• routes.rb
• Specify resources
• forget a route?
routes.rb
• run rake routes
resources :dogs Verb Action, Controller
GET {:action=>"index", :controller=>"dogs"}
dogs POST {:action=>"create", :controller=>"dogs"}
new_dog GET {:action=>"new", :controller=>"dogs"}
GET {:action=>"show", :controller=>"dogs"}
PUT {:action=>"update", :controller=>"dogs"}
dog DELETE {:action=>"destroy", :controller=>"dogs"}
edit_dog GET {:action=>"edit", :controller=>"dogs"}
Richard Schneeman - @ThinkBohemian
15. Routes
• Name that Action
• dog_path(@dog) (PUT)
1.Find the Verb
• dogs_path (GET) 2.Plural or Singular?
• dog_path(@dog) (GET) 3.object.id or no args?
• dog_path(@dog) (DELETE)
• dogs_path (POST)
Richard Schneeman - @ThinkBohemian
16. Routes
• Name that Action
• dog_path(@dog) (PUT) Update
• dogs_path (GET) Index
• dog_path(@dog) (GET) Show
• dog_path(@dog) (DELETE) Destroy
• dogs_path (POST) Create
Richard Schneeman - @ThinkBohemian
17. Controller Methods
• Why create & new?
• New then Create
dogs_controller.rb app/views/dogs/new.html.erb
def new <%= form_for(@dog) do |f| %>
@dog = Dog.new ...
end
dogs_controller.rb app/views/dogs/create.html.erb
def create <%= @dog.name %>
@dog = Dog.create(params[... ...
end
Richard Schneeman - @ThinkBohemian
18. Controller Methods
• What if I want extra actions?
• Use Index for other stuff ( like search)
• Create your own if you have to
def my_crazy_custom_method
puts “This is OK, but not desirable”
end
index, new, create, destroy, edit, & update not enough?
Richard Schneeman - @ThinkBohemian
19. Controller Methods
• What if I run out of methods
• Already used index, new, create, destroy, edit, & update
• Create a new controller !
• DogRacesController
• DogGroomerController
• etc.
multiple controllers per heavily used models is normal
Richard Schneeman - @ThinkBohemian
20. Routes
• Cool - What about that search_path stuff?
• when resources don’t do enough use “match”
• Define custom routes using :as =>
match '/dog/show/' => 'dogs#show', :as => :search
• Use route in view as search_path
Richard Schneeman - @ThinkBohemian
21. Routes
• How do I define http://localhost:3000/ ?
• Root of your application
root :to => "dogs#index"
Richard Schneeman - @ThinkBohemian
22. link_to
• Send data using links
@dog = Dog.find(:id => 2)
<%= link_to 'Some Action', @dog %>
• link_to generates a link
• Calls a Method
• Passes data
Richard Schneeman - @ThinkBohemian
23. link_to
• What Path/Method is called by link_to ?
@dog = Dog.find(:id => 2)
<%= link_to 'Some Action', @dog %>
• Default method is GET
• @dog is a singular dog
Richard Schneeman - @ThinkBohemian
24. link_to
• link_to can take a path directly
@dog = Dog.find(:id => 2)
<%= link_to 'Some Action', @dog %>
• So can form_for, form_tag, button_to ...
Richard Schneeman - @ThinkBohemian
25. link_to
• What data does the controller see ?
@dog = Dog.find(:id => 2)
<%= link_to 'Some Action', @dog %>
def show
• dog_id = params[:id]
Dog.where(:id => dog_id)
...
end
• params returns a hash passed via http
request
• :id is the key passed from @dogs
Richard Schneeman - @ThinkBohemian
26. link_to
• Why only pass ID?
def show
dog_id = params[:id]
Dog.where(:id => dog_id)
•Iend
...
• minimize data sent to and from server
• decouple data sent from object
• security & continuity
• http methods don’t natively accept ruby
objects
Richard Schneeman - @ThinkBohemian
27. link_to
• Can I send other stuff besides ID?
• You betcha!
<%= link_to "Link Text", search_path(:foo => {:bar => 42} )%>
meaning_of_life = params[:foo][:bar]
• pass additional info into view_helper
arguments
• all data is stored in params
Richard Schneeman - @ThinkBohemian
28. button_to
• like link_to except renders as a button
• default HTTP for buttons method is
POST
<%= button_to "button Text", search_path(:foo => {:bar => 42} )
Richard Schneeman - @ThinkBohemian
29. Recap
• This example should make (more) sense now
• Connect controller actions to URLs
• Example: /dogs/show/2
• Will call DogsController#show
• Pass params[:id] = 2
routes.rb
resources :dogs
Richard Schneeman - @ThinkBohemian
30. Recap
• Lots of view helpers take data from view to controller
• Pick the one that best suits your needs
• Run out of Routes to use?
• generate a new controller
• Forget a route
• Run: rake routes
Richard Schneeman - @ThinkBohemian
32. Crypto Hashes
• A function that takes any input and returns a
fixed length string
Passwo
• function is not reversible
• minor changes in input
rds
• major changes in output a12n2
91234
8...
• Examples: MD5, SHA1, SHA256
Richard Schneeman - @ThinkBohemian
33. Crypto Hashes
• Different input
• Different output
Pass
myPass
iff
myD
A12D
P29...
34U...
!= BG123
Richard Schneeman - @ThinkBohemian
34. Crypto Hashes
• Same input
• Same output
ass
myPass
myP
A12D 4U...
34U...
!= A12D3
Richard Schneeman - @ThinkBohemian
35. Crypto Hashes
• How does this help with user authentication?
• passwords shouldn’t be stored in a database
• store crypto-hash instead
• The same input produce the same output
• Compare hashed password to stored hash
Richard Schneeman - @ThinkBohemian
36. Crypto Hashes
• Good for more than just users!
• Comparing large datasets for equality
• Authenticate downloaded files,
•
Richard Schneeman - @ThinkBohemian
37. Crypto Hashes
• Considerations
• Collisions - happen
• Rainbow tables - exist
• Timing Attacks - are not impossible
• Don’t use MD5
• Helpful techniques
• “salt” your hashed data
• hash your Hash
Richard Schneeman - @ThinkBohemian
38. Crypto Hashes
• Are Awesome
• Are Useful
•
Richard Schneeman - @ThinkBohemian
39. Authlogic
• Authentication Gem
• Don’t write your own authentication
• Good for learning, but in production use a library
sudo gem install authlogic
Richard Schneeman - @ThinkBohemian
40. Authlogic
class User < ActiveRecord::Base
acts_as_authentic
end
class UserSession < Authlogic::Session::Base
end
• Very flexible, lightweight, and modular
• Doesn’t generate code, examples are online
Richard Schneeman - @ThinkBohemian
41. Questions?
http://guides.rubyonrails.org
http://stackoverflow.com
http://peepcode.com
Richard Schneeman - @ThinkBohemian