Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 169

Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 117

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 169

Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 117

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 169

Warning: mktime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 117

Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/edifast0/public_html/corp/libraries/joomla/utilities/date.php on line 169
Dicas Drupal Corp.eng.br - Site pessoal compartilhado para diversos assuntos: linux, fotos, arquivos, dicas, etc... http://corp.eng.br/index.php?option=com_content&view=section&id=13&Itemid=136 Sat, 23 Sep 2017 18:08:41 +0000 Joomla! 1.5 - Open Source Content Management pt-br Dynamic Display Block http://corp.eng.br/index.php?option=com_content&view=article&id=222:dynamic-display-block&catid=146:blocks&Itemid=136 http://corp.eng.br/index.php?option=com_content&view=article&id=222:dynamic-display-block&catid=146:blocks&Itemid=136 Link: http://drupal.org/node/294595

Installation

The dynamic display block module depends on the jQuery update module so we have to install this module and the dynamic display block module.

Note: Drupal 6.4 already has the jQuery 1.2.6., but still we prefer to install jQuery update module for future versions of jQuery.

3. Extract the jquery_update folder and the ddblock folder and drop them into the /sites/all/modules/ folder.
4. Navigate to Administer > Site building > Modules and enable the jQuery Update module and the dynamic display block module by selecting the check boxes next to "JQuery Update" and “Dynamic display block”.
5. Click the save configuration button.

Optional:

COLLABORATION WITH OTHER MODULES

The dynamic display block module can work together with all modules that provide blocks. The content of the block can be displayed dynamically (one by one width transition effects) if the content consist of e.g. Images, A list of listitems, A table with tablerows, etc.

Example modules and blocks you can use

Moduleblocks
ForumActive forum topics
ForumNew forum topics
Viewsblocks with images, lists, tables
WorldclockWorld clock
etc.
2. Copy jquery.easing.1.1.1.js to sites/all/modules/ddblock.
3. Copy the following template files to the theme directory of the theme you are using.
• ddblock-block-content.tpl.php
• dblock-block-images.tpl.php

to the three template files, just below the line

Quick configuration in 10 steps

Path to configuration page.

Add, configure and enable a dynamic display block.

1. Type a unique block title in the block title field of the Add dynamic display block fieldset at the bottom of the screen.
2. Click the Add block button.
3. Click the Configure block link in the "Dynamic display block" fieldset of the dynamic display block you just made.
4. Set the image folder to images/ddblock
5. Click Save Block at the bottom of the page.
6. Make the folder images/ddblock relatitive the Drupal file path. The Drupal file path is set at Administer > Site configuration > File system
7. Add some pictures in this folder.
9. Find your block in the Disabled section near the bottom of the page. Select a region (e.g. Right sidebar) in the drop down box next to your block. This will move the block you just created to this region.
10. Click the Save Blocks button.
11. After these 10 steps you should see your added dynamic display block.

]]>
aarvati@corp.eng.br (Ademar Arvati Filho) Blocks Tue, 02 Jun 2009 14:12:08 +0000
Displaying mathematics with TeX http://corp.eng.br/index.php?option=com_content&view=article&id=221:displaying-mathematics-with-tex&catid=141:filtros-html&Itemid=136 http://corp.eng.br/index.php?option=com_content&view=article&id=221:displaying-mathematics-with-tex&catid=141:filtros-html&Itemid=136 Link: http://drupal.org/node/159031

The standard syntax that mathematicians use to type mathematical expressions is TeX and its extensions LaTeX and AMSLaTeX. Almost all mathematical research is written in TeX. It is not surprising therefore that TeX has also become the de-facto standard for writing mathematics online. While TeX syntax is a convenient way of entering mathematics, when you look at the mathematics you don't want to have to read the TeX syntax but want the mathematics to appear nicely typeset. Drupal has several modules that achieve this. These are compared briefly below so that you can judge which one will be the most appropriate for your installation. The choice will depend on the complexity and amount of mathematics that you are planning to display on your site and also on whether you are willing and able to install additional software on your server.

• jsMath is a piece of javascript that renders the TeX on the client's browser. This means that you do not have to install any TeX rendering software on your server and the processing of TeX does not increase the load on your server. The downside of course is that the user's browser has to work harder and the display of the mathematics takes a bit longer. With the default setting jsMath will display the page to the browser initially with all the TeX syntax still in place and will then start converting this into typeset mathematics. So the user can already start reading the page while jsMath is still converting the TeX. You can get an impression of how well this works by looking at examples. If you do not want to shift the work of processing the TeX to your user's browser then you should go with one of the next two modules.
• Mathematics Filter uses MimeTeX to convert the TeX to images that are then included in the webpage. This requires you to install the mimeTeX executables on your server. MimeTeX does not use the standard TeX engine but renders directly to images. This makes it very fast. It does however mean that, like jsMath, it can render only a subset of the complete TeX syntax. For most applications this will not be a problem. But if it is the you should go with the DruTeX module instead.
• DruTeX uses the full LaTeX engine to convert the TeX to dvi and then uses ImageMagic and dvipng to convert the dvi to images. This means that unlike the other solutions DruTeX can handle the entire TeX syntax. The drawback however is that you need to install several software packages on your server before DruTeX will work. Also the processing of the TeX will put extra load on your server. DruTeX is quite an impressive module with its own plugin architecture. It has its own discussion group.
• TeXfilter is similar to DruTeX in that it requires a LaTeX installation on your server and therefore brings similar advantages and disadvantages. It is a simpler module than DruTeX but

For websites doing non-heavy mathematics

If you're website is doing only few lines of mathematics equations, you can use my server to run the Latex code. This offer is not for websites doing heavy mathematics, I will ban any site that may significantly eat-up my bandwidth.

To post math equation in your page, simply type the following code:

Replace your latex code with the actual latex code. The http://www.mathalino.com/cgi-bin/mimetex.cgi? must be written to call my server and for my server to generate the image and send it to your page.

Try to copy the code below into your page and see it in action.

$intfrac{du}{sqrt{a^2-u^2}}=arcsinfrac{u}{a}+C$
]]>
aarvati@corp.eng.br (Ademar Arvati Filho) Filtros HTML Tue, 02 Jun 2009 13:53:46 +0000
List of tokens http://corp.eng.br/index.php?option=com_content&view=article&id=220:list-of-tokens&catid=140:token&Itemid=136 http://corp.eng.br/index.php?option=com_content&view=article&id=220:list-of-tokens&catid=140:token&Itemid=136 List of tokens

Comment tokens

[comment-cid] Comment ID
[comment-nid] Comment's node ID
[comment-title] Comment title
[comment-title-raw] Comment title. WARNING - raw user input
[comment-body] Comment body
[comment-body-raw] Comment body. WARNING - raw user input
[comment-author-uid] Comment author's user id
[comment-author-name] Comment author's user name
[comment-author-name-raw] Comment author's user name. WARNING - raw user input
[comment-yyyy] Comment creation year (four digit)
[comment-yy] Comment creation year (two digit)
[comment-month] Comment creation month (full word)
[comment-mon] Comment creation month (abbreviated)
[comment-mm] Comment creation month (two digit, zero padded)
[comment-m] Comment creation month (one or two digit)
[comment-ww] Comment creation week (two digit)
[comment-date] Comment creation date (day of month)
[comment-day] Comment creation day (full word)
[comment-ddd] Comment creation day (abbreviation)
[comment-dd] Comment creation day (two digit, zero-padded)
[comment-d] Comment creation day (one or two digit)

Node tokens

[nid] Node ID
[type] Node type
[type-name] Node type (user-friendly version)
[language] Node language
[title] Node title
[title-raw] Unfiltered node title. WARNING - raw user input.
[author-uid] Node author's user id
[author-name] Node author's user name
[author-name-raw] Node author's user name. WARNING - raw user input.
[author-mail] Node author's e-mail.
[author-mail-raw] Node author's e-mail. WARNING - raw user input.
[term] Name of top taxonomy term
[term-raw] Unfiltered name of top taxonomy term. WARNING - raw user input.
[term-id] ID of top taxonomy term
[vocab] Name of top term's vocabulary
[vocab-raw] Unfiltered name of top term's vocabulary. WARNING - raw user input.
[vocab-id] ID of top term's vocabulary
[yyyy] Node creation year (four digit)
[yy] Node creation year (two digit)
[month] Node creation month (full word)
[mon] Node creation month (abbreviated)
[mm] Node creation month (two digit, zero padded)
[m] Node creation month (one or two digit)
[ww] Node creation week (two digit)
[date] Node creation date (day of month)
[day] Node creation day (full word)
[ddd] Node creation day (abbreviation)
[dd] Node creation day (two digit, zero-padded)
[d] Node creation day (one or two digit)
[mod-????] All tokens for node creation dates can also be used with with the "mod-" prefix; doing so will use the modification date rather than the creation date.
[menu-raw] The name of the menu the node belongs to. WARNING - raw user input.
[menupath-raw] The unfiltered menu path (as reflected in the breadcrumb), not including Home or [menu]. Separated by /. WARNING - raw user input.
[termpath] As [term], but including its supercategories separated by /.
[termpath-raw] As [term-raw], but including its supercategories separated by /. WARNING - raw user input.
[termalias] URL alias for the term.

Taxonomy tokens

[vid] The id number of the category's parent vocabulary.
[vocab] The vocabulary that the page's first category belongs to.
[cat] The name of the category.
[tid] The id number of the category.
[vocab-raw] The unfiltered vocabulary that the page's first category belongs to. WARNING - raw user input.
[cat-raw] The unfiltered name of the category. WARNING - raw user input.
[catpath] As [cat], but including its supercategories separated by /.
[catpath-raw] As [cat-raw], but including its supercategories separated by /. WARNING - raw user input.
[catalias] URL alias for the term.

User tokens

[user] User's name
[user-raw] User's unfiltered name. WARNING - raw user input.
[uid] User's ID
[reg-date] User's registration date
[reg-since] Days since the user registered
[log-since] Days since the user's last login
[date-in-tz] The current date in the user's timezone
[account-url] The URL of the user's profile page.
[account-edit] The URL the user's account editing page.

CCK text tokens

[field_scenario-raw] Raw, unfiltered text
[field_scenario-formatted] Formatted and filtered text
[field_example-raw] Raw, unfiltered text
[field_example-formatted] Formatted and filtered text

Node reference tokens

[nid] Referenced node ID
[title] Referenced node title
[title-raw] Referenced node unfiltered title. WARNING - raw user input.
[path] Relative path alias to the referenced node.
[url] Absolute path alias to the referenced node.

Text tokens

[raw] Raw, unfiltered text
[formatted] Formatted and filtered text

Date tokens

[value] The raw date value.
[view] The formatted date.
[timestamp] The raw date timestamp.
[yyyy] Date year (four digit)
[yy] Date year (two digit)
[month] Date month (full word)
[mon] Date month (abbreviated)
[mm] Date month (two digit, zero padded)
[m] Date month (one or two digit)
[ww] Date week (two digit)
[date] Date date (day of month)
[day] Date day (full word)
[ddd] Date day (abbreviation)
[dd] Date day (two digit, zero-padded)
[d] Date day (one or two digit)
[to-????] If the field has a to-date defined, the same tokens exist in the form: [to-????], where ???? is the normal token.

Global tokens

[user-name] The name of the currently logged in user.
[user-id] The user ID of the currently logged in user.
[user-mail] The email address of the currently logged in user.
[site-url] The url of the current Drupal website.
[site-name] The name of the current Drupal website.
[site-slogan] The slogan of the current Drupal website.
[site-mission] The mission of the current Drupal website.
[site-mail] The contact email address for the current Drupal website.
[site-date] The current date on the site's server.

caveat: This list of tokens was originally taken from a comment left the token.module documentation page. Some of the tokens may only be exposed after specific modules are installed. Some of the tokens may change over the life of this document. Feel free to edit as seen fit.

]]>
aarvati@corp.eng.br (Ademar Arvati Filho) Token Tue, 02 Jun 2009 13:35:58 +0000