Занятие №8 в рамках Курсов программирования Ruby on Rails.
Группа курсов «ВКонтакте»: http://vk.com/ruby_school
Организатор — Агентство интернет-маркетинга Мэйк makeagency.ru. Курсы проводятся на базе Кузбасского государственного технического университета, кафедры «Информационные и автоматизированные производственные системы».
01 - Web-технологии. Архитектура Web приложенийRoman Brovko
1. Понятие URL и документа
2. Виды документов: HTML, CSS, JS, JSON.
3. Абсолютные и относительные URL
4. Правила разрешения URL-ов
5. Гиперссылки
6. Клиент-серверная архитектура
Занятие №8 в рамках Курсов программирования Ruby on Rails.
Группа курсов «ВКонтакте»: http://vk.com/ruby_school
Организатор — Агентство интернет-маркетинга Мэйк makeagency.ru. Курсы проводятся на базе Кузбасского государственного технического университета, кафедры «Информационные и автоматизированные производственные системы».
01 - Web-технологии. Архитектура Web приложенийRoman Brovko
1. Понятие URL и документа
2. Виды документов: HTML, CSS, JS, JSON.
3. Абсолютные и относительные URL
4. Правила разрешения URL-ов
5. Гиперссылки
6. Клиент-серверная архитектура
Family farming, one of the oldest human occupations, is facing new challenges including food, fuel and financial crises as well as climate change and advancing technology. Family farms, where family members work the land themselves, still survive globally but family farmers are often neglected. The document calls for policies that ensure family farmers' access to and control over natural resources like land, water and seeds. It also promotes preserving sustainable agricultural practices used by family farmers and ensuring youth and women's roles in farming are recognized. The overall goal is a hunger-free world by 2025.
Steve Jobs' company was profiled in a CNN Tech article and mentioned in an NBC evening news segment. The company focuses on increasing engagement, distributing content more widely, and providing analytics on interactions across social media platforms. An executive from the company was active on Twitter under the handle @cristinacordova and can be emailed at cc@alphonsolabs.com.
This document summarizes ten important hand mudras and their health benefits. Each mudra is described with its method of formation, specialty, time duration, and associated benefits. Some key mudras discussed include Jnana Mudra for enhancing knowledge, Varuna Mudra for balancing water content in the body, Vayu Mudra for preventing diseases caused by air imbalance, and Prana Mudra for improving life force and immunity. Regular practice of these mudras is suggested to gain optimal health benefits.
This document outlines a lesson plan for teaching students the steps of the scientific method through conducting an experiment on pendulums. The lesson introduces pendulums and their motion, then guides students through identifying a question, forming hypotheses, planning an experiment, collecting and analyzing data, drawing conclusions, and reporting findings. Students work in groups to test how the period of a pendulum's swing is affected by its mass, string length, and angle of release. Through observation and measurement, they determine that only the string length affects period.
Introducing Mobile Learning in Kindergartens in SenegalSenMobile
This document summarizes a project introducing mobile learning apps in kindergartens in Senegal. It describes how a series of apps were developed and piloted in 3 schools, observing that students were able to use the apps independently and were motivated by mobile phones. Teachers found it helped fight digital divide and saved time for assessment. The plan is to work with more schools, sell the apps with online/SMS extensions, and establish phone borrowing with support from manufacturers and operators to scale the project.
Moodle с точки зрения пользователя и программистаIgor Sazonov
Описание обычных действий администратора Moodle и то что происходит со стороны программиста: обзор полезных функций, контекст в Moodle, система ролей, работа с MySQL и Postgresql
Family farming, one of the oldest human occupations, is facing new challenges including food, fuel and financial crises as well as climate change and advancing technology. Family farms, where family members work the land themselves, still survive globally but family farmers are often neglected. The document calls for policies that ensure family farmers' access to and control over natural resources like land, water and seeds. It also promotes preserving sustainable agricultural practices used by family farmers and ensuring youth and women's roles in farming are recognized. The overall goal is a hunger-free world by 2025.
Steve Jobs' company was profiled in a CNN Tech article and mentioned in an NBC evening news segment. The company focuses on increasing engagement, distributing content more widely, and providing analytics on interactions across social media platforms. An executive from the company was active on Twitter under the handle @cristinacordova and can be emailed at cc@alphonsolabs.com.
This document summarizes ten important hand mudras and their health benefits. Each mudra is described with its method of formation, specialty, time duration, and associated benefits. Some key mudras discussed include Jnana Mudra for enhancing knowledge, Varuna Mudra for balancing water content in the body, Vayu Mudra for preventing diseases caused by air imbalance, and Prana Mudra for improving life force and immunity. Regular practice of these mudras is suggested to gain optimal health benefits.
This document outlines a lesson plan for teaching students the steps of the scientific method through conducting an experiment on pendulums. The lesson introduces pendulums and their motion, then guides students through identifying a question, forming hypotheses, planning an experiment, collecting and analyzing data, drawing conclusions, and reporting findings. Students work in groups to test how the period of a pendulum's swing is affected by its mass, string length, and angle of release. Through observation and measurement, they determine that only the string length affects period.
Introducing Mobile Learning in Kindergartens in SenegalSenMobile
This document summarizes a project introducing mobile learning apps in kindergartens in Senegal. It describes how a series of apps were developed and piloted in 3 schools, observing that students were able to use the apps independently and were motivated by mobile phones. Teachers found it helped fight digital divide and saved time for assessment. The plan is to work with more schools, sell the apps with online/SMS extensions, and establish phone borrowing with support from manufacturers and operators to scale the project.
Moodle с точки зрения пользователя и программистаIgor Sazonov
Описание обычных действий администратора Moodle и то что происходит со стороны программиста: обзор полезных функций, контекст в Moodle, система ролей, работа с MySQL и Postgresql
This document discusses using Drupal with ASP.NET and the .NET framework. It mentions that ASP.NET was originally designed for VB programmers and explores options like Phalanger for running Drupal on .NET but notes it is outdated. It suggests that Drupal could become integrated well with .NET by being a "first-class .NET citizen". It provides references and contact information for Taras Strypko who focuses on .NET and open source web development.
This document summarizes some of the key differences in Drupal 7 development compared to earlier versions, including changes to hook implementations, the introduction of a registry database, an object-oriented approach to database queries, and recommendations for best practices when working with Drupal 7.
The document discusses the theming of a website using a Zen-based theme. It includes the CSS stylesheet definitions and HTML markup for elements like the header, navigation menu, main content area, and footer. Code snippets show how to output dynamic content and links using PHP.
46. Использование разных баз данных (1) Подключение к базе обычно задаётся в файле settings.php так: $db_url = 'mysqli://user:password@localhost/site1'; $db_prefix = '';
47. Использование разных баз данных (2) Вместо префикса указываем имя базы данных: $db_url = 'mysqli://user:password@localhost/site1'; $db_prefix = array( 'default' => '', 'authmap' => 'shared.', // Перечислить все общие таблицы... 'users' => 'shared.', );
Что такое мультисайтинг и зачем он нужен. Друпал не проектировался для мультисайтинга с общими пользователями и/или контентом — причины и последствия использования мультисайтинга.
filters и filter_formats — форматы ввода. Можно делать общими. Если на одном из сайтов будет использоваться специфичный формат ввода, которого не должно быть на других сайтах - не делать общими. locales_* — переводы. Таблицы обычно имеют большой размер. Делать общими можно при условии, что для всех сайтов используется одинаковый перевод. role — роли на сайте (анонимный, зарегистрированный, модератор, админ). Можно делать общими. permission — права ролей на хуки, предоставляемые модулями. Можно делать общими. users — пользователи сайта. users_roles — роли пользователей сайта.
access — блокировка по IP, имени пользователя, e-mail. Если блокировка не используется, то можно смело делать общей. Для крупных сайтов можно разделить. authmap — таблица для внешних аутентификаций (LDAP, OpenID). Если не используется внешняя аутентификация — можно смело делать общей (пустая таблица). Если же используется, то делать общими если нужно сделать объединение пользователей. flood — таблица используется для ограничения количества запусков определеных участков кода в основном для предотврацения спама - N запусков в час. Используется для этих целей многими модулями, которые, например, которые делают рассылку (email, feedback, ass_contact, forward), а также модулем Contact. system — инфа о установленных модулях и темах. Объединяю, предварительно закинув нужные файлы в /sites/all/modules и /sites/all/themes. sessions — сеансы пользователей.Делать общими нужно, чтобы пользователи могли быть залогинеными на нескольких сайтах одновременно. См. Общая база пользователей в мультисайтинге In my opinion, the 'sessions' table should not be shared! Otherwise users logged in at one site are shown at all sites as logged in. Moreover, a certain user logged in at two sites is shown twice at all sites. Keeping the sessions table individual prevents this. Are there other arguments to share the table?
comments — комментарии. files и file_revisions — файлы. node и node_* — контент сайта. term_* — термины таксономии. view_* — виды. vocabulary и vocabulary_node_types — словари таксономии.
blocks — таблица блоков у сайта. Название блока, где отображается, вес, и т.п. blocks_roles — доступ ролей к блокам. boxes — текст (код) самого блока. cache и cache_* — кэши. history — используется для форумов, последние непрочитанные сообщения. Если на сайтах не будет форумов — можно объединить. См. Общий контент в мультисайтинге. menu — меню сайта. sequences — информация о количестве нод, комментариев, пользователей. В Drupal 6 отсутствует, так как в таблицах введен автоинкремент для id. См. Общий контент в мультисайтинге и Общая база пользователей в мультисайтинге. Лучше разделить. url_alias и url_alias_extra — алиасы, ЧПУ, чистые ссылки. См. Общий контент в мультисайтинге и Общая база пользователей в мультисайтинге. Для себя выбрал вариант — не совмещать. variable — переменные сайта. Из-за присутствия специфичных переменных, вроде site_name (имя сайта), site_slogan, theme_default, pathauto_* совместить не получится. watchdog — журнал ошибок сайта. Совместить можно, но крайне нежелательно, ибо при большом количестве сайтов в админке сложно смотреть такие журналы — всё валится в одну кучу. В PhpMyAdmin можно будет задать фильтр по столбцу location, но это не удобно.
blocks — таблица блоков у сайта. Название блока, где отображается, вес, и т.п. blocks_roles — доступ ролей к блокам. boxes — текст (код) самого блока. cache и cache_* — кэши. history — используется для форумов, последние непрочитанные сообщения. Если на сайтах не будет форумов — можно объединить. См. Общий контент в мультисайтинге. menu — меню сайта. sequences — информация о количестве нод, комментариев, пользователей. В Drupal 6 отсутствует, так как в таблицах введен автоинкремент для id. См. Общий контент в мультисайтинге и Общая база пользователей в мультисайтинге. Лучше разделить. url_alias и url_alias_extra — алиасы, ЧПУ, чистые ссылки. См. Общий контент в мультисайтинге и Общая база пользователей в мультисайтинге. Для себя выбрал вариант — не совмещать. variable — переменные сайта. Из-за присутствия специфичных переменных, вроде site_name (имя сайта), site_slogan, theme_default, pathauto_* совместить не получится. watchdog — журнал ошибок сайта. Совместить можно, но крайне нежелательно, ибо при большом количестве сайтов в админке сложно смотреть такие журналы — всё валится в одну кучу. В PhpMyAdmin можно будет задать фильтр по столбцу location, но это не удобно.
При объединении пользователей и сеансов блок "Сейчас на сайте" будет показывать одного и того же пользователя на всех сайтах мультисайтинга, поэтому использовать его будет нельзя.
При объединении пользователей и сеансов блок "Сейчас на сайте" будет показывать одного и того же пользователя на всех сайтах мультисайтинга, поэтому использовать его будет нельзя.
Модуль Shared Sign-On не обновлялся уже почти год и в данный момент считается заброшенным: http://drupal.org/node/463408 «Mark singlesignon as abandoned».
Обратите внимание: если делать контент общим и показывать его на всех сайтах, то будет дублированный контент на разных сайтах. Это не любят ни люди, ни поисковики. Решение проблемы дублированного контента при общем контенте в мультисайтинге: Разделить контент по типам материалов и на каждом сайте выводить определенный тип материала модулем Views или сниппетом.
http://drupal.org/node/132361#comment-222070 «Pretty much what you had» - комментарий Cloudy о том, какие таблицы нужно делать общими для общей базы пользователей.