The Aztecs were guided to settle on an island in a lake after seeing an eagle perched on a cactus, fulfilling a prophecy. They built their city of Tenochtitlan there, which now lies at the center of Mexico City. The Aztecs had several creation myths, including one where the current world survived destruction due to a god's sacrifice, and another where the earth was created by the twin gods Tezcatlipoca and Quetzalcoatl. After the Spanish conquest, Cortes initially maintained Aztec rule under Spanish leadership, but the system soon became one of oppression, with natives exploited as forced labor in mines and on large estates granted to the conquistadors. Aztec
The Aztecs were guided to settle on an island in a lake after seeing an eagle perched on a cactus, fulfilling a prophecy. They built their city of Tenochtitlan there, which now lies at the center of Mexico City. The Aztecs had several creation myths to explain the origins of the world and humanity. After the Spanish conquest, Cortes initially maintained Aztec rule but replaced the nobility with Spanish landowners, establishing an oppressive system of forced native labor on silver mines that contributed greatly to Spain's wealth for hundreds of years. The Aztec education system was abolished and aspects of their culture were forbidden, contributing to the civilization's decline under Spanish rule.
Negative contribution of automatic postural controlRajul Vasa
油
1) Following a stroke, the brain's automatic control of center of mass (COM) negatively impacts recovery by switching control to the good side of the body for safety.
2) This causes the paretic side to become disused and develop contractures as it is towed by the good side, preventing reloading of the paretic limbs.
3) Over time, a vicious cycle develops as abnormal movements and stiffness in the paretic side worsen due to loss of independent control of COM.
Doctrine ORM for PHP is an object-relational mapper (ORM) for PHP applications. It provides transparent persistence for PHP objects and works with many databases including MySQL, PostgreSQL, and SQLite. The guide covers installing and configuring Doctrine, defining models and relationships, querying data with DQL, and additional features like validation, inheritance, behaviors and searching.
VASA CONCEPT - To Expand The Boundaries of Centre of Mass [COM] Rajul Vasa
油
The VASA concept aims to expand the boundaries of the center of mass (COM) for patients who have had a stroke. For stroke patients, their good side is used for all actions while their weak side is compromised and unable to control the COM. This arrests the COM in a safe territory controlled by the good side. The VASA concept introduces control of posture using the affected limbs to expand the boundaries of the COM towards the weak side. This allows the affected limbs to begin controlling posture and restoring the COM to safety, so the COM is no longer prisoner to just the good side. Basic exercises for applying the VASA concept will be shown in a separate video link.
This document presents lesson activities to help students develop strategies for solving equations represented by objects like candy, shapes, or fruit. The activities include hands-on lessons using candy plates where students determine values based on the total shown. Online games and worksheets also present equation solving scenarios using weighing blocks, shapes, and fruit plates. The goal is for students to understand variables, equality, and develop strategies like division, subtraction, and substitution to solve for unknown values.
Created by: Alex Slinko, Senior Ruby on Rails Developer.
Summary:
In a nutshell about one of the most object-oriented programming languages
An alternative viewpoint on development process, testing and deployment
About Ruby in the Web in whole and Rails in particular
Other Ruby interpreters
For more than 2 years we were using dry-rb libraries (and a bit of Trailblazer) in production.
I have about 10 years of Ruby on Rails experience and within all this time nothing changed in "official" ROR approach of managing and organising codebase. We still have fat models, somebody even have business logic in them.
In my speech I tried to show when this approach does not work, how we came to this, how we managed to implement dry-rb in existing projects and how it finally helps us
13. 亟亳
https://gist.github.com/949049#鍖le_book.rb
https://github.com/collectiveidea/acts_as_audited
acts_as_audited :except => [:name, :file_name]
https://gist.github.com/949049#鍖le_production.rake
desc "Loads files into Production line"
task :process_batch => :environment do
Audit.as_user("rake:process_batch") do
Book.getFromBatch unless running?("process_batch")
end
end
https://gist.github.com/949049#鍖le_books_controller.rb
def restart
if @book.restartable?
Audit.as_user current_user do
@book.restart_production!
end
flash[:notice] = '弍舒弍仂从舒 仗亠亠亰舒仗亠仆舒.'
else
flash[:error] = '亠亠亰舒仗从 仆亠于仂亰仄仂亢亠仆.'
end
redirect_to request.referer
end
15. namespace :munin do
task :config do
puts <<-CONFIG
graph_title Produced pages in last 5 minutes
graph_args -l 0
graph_vlabel pages amount
graph_category App
graph_info This graph shows amount of pages produced
texts.label Text files
docs.label Doc files
views.label View files
quotes.label Quote files
CONFIG
exit 0
end
task :run => :environment do
res = ActiveRecord::Base.connection.execute("select count(nullif(text_ready_time>(now()-'5
minutes'::interval),false)) as c0,count(nullif(doc_ready_time>(now()-'5 minutes'::interval),false)) as
c1,count(nullif(view_ready_time>(now()-'5 minutes'::interval),false)) as
c2,count(nullif(quote_ready_time>(now()-'5 minutes'::interval),false)) as c3 from pages where updated_at >
(now()-'5 minutes'::interval);")
if res
puts "texts.value #{res[0]['c0']}"
puts "docs.value #{res[0]['c1']}"
puts "views.value #{res[0]['c2']}"
puts "quotes.value #{res[0]['c3']}"
end
exit 0
end
end https://gist.github.com/949049#鍖le_munin.rake
16. http://www.nagios.org/
namespace :nagios do
task :abbyy_activity, [:warn, :crit] => :environment do |t, args|
if args.warn and args.crit
states_list = ["loaded", "in_abbyy", "p2f_queue"]
warn_level = args.warn.to_i
crit_level = args.crit.to_i
warn_events = Audit.find(:all, :conditions=>["auditable_type = 'Book' and (username is null or username
ilike 'rake:%') and action = 'update' and created_at > ?", warn_level.minutes.ago])
crit_events = Audit.find(:all, :conditions=>["auditable_type = 'Book' and (username is null or username
ilike 'rake:%') and action = 'update' and created_at > ?", crit_level.minutes.ago])
if (crit_count = crit_events.select{|a| a['changes']['state'] and (a['changes']['state'] &
states_list).size > 1 }).empty?
puts "CRITICAL No state changes at abbyy for #{crit_level} minutes"
exit 2
end
if (warn_count = warn_events.select{|a| a['changes']['state'] and (a['changes']['state'] &
states_list).size > 1 }).empty?
puts "WARNING No state changes at abbyy for #{warn_level} minutes"
exit 1
end
puts "OK Abbyy: state changes #{warn_count.size} for #{warn_level} minutes; state changes
#{crit_count.size} for #{crit_level} minutes."
exit 0
else
exit 3
end
end
https://gist.github.com/949049#鍖le_nagios.rake