Wednesday, July 28, 2010

Prostata Powert Point

User Agent Working with different

C
on the expansion of new technologies and new dispositions that are able to connect to the Internet, more and more different types of browsers through the Internet is accessed , and each with its own characteristics.
order to develop a website that fits any browser, we see that suits them. As would be impractical to test each and every one of the browsers available on the market, chrispederick.com developers have created add-ons

firefox that allows us, from the same browser, the user agent to simulate any another. This plugin is called User Agent Switcher .


If you want to have all the available User Agent

can copy the following xml file and import
the add you have just installed.

Tuesday, July 27, 2010

Foreclosure Against A Trust

Apache does not recognize \u0026lt;? = $ variable ">


A nte all we must clarify that

\u0026lt;? = $ Variable ">
is the same as making \u0026lt;? Php echo $ variable;?> If our server does not recognize the short form is that the option of "short tags " is not activated.

If we have control over the Apache server will not only enable short_open_tag option in the php.ini file , that is, indicate the line:


short_open_tag = On

As we see, to use this format must have the certainty that this mode is enabled on the server or have control over it, making it preferable to always use the long form, ie

\u0026lt;? = $ variable ">



Wednesday, July 21, 2010

Mix Unisom With Alcohol

Separate words in a text field with a character in php


S
i need to separate the characters in a variable for a field Specifically we use the function str_replace (). Is an example: We
and finally we want the words are separated by hyphens, ie $ result = "Degree-of-the-expression" .
The expression used is:


$ result = str_replace ("","-",$ title)


Wednesday, June 30, 2010

Progressivism Essentialism

VIM commands to manage security settings


S i and we're using Linux edit any file from the command line, you can use multiple editors. In this case we will learn to manage

VIM, as it is the most powerful of which has the OS • When editing a file editor is opened in normal mode from which we can make shortcuts for operations. It is a way of viewing the content and not editing, that is, not allow us to make changes. • To start editing, and thus enter the edit mode, you type in the sequence

i or press the insert

.

Once we are in the editor so we can check that shows the words / characters in different colors. This is because it automatically detects, by type of content, language is written in the file.

If our vim not have this aspect, you may be overlooking that is installed a basic version of the editor. This is solved by installing the full version with the command: aptitude install

vim-common and typing in the normal way vim: syntax on


At this point it is interesting to know some of the most frequently used commands :


• Text Options (normal mode) or

May + v == Select text or


dd Delete current line ==

or

or undo the last change ==


or CTRL + R

== Redo the last change or


== guu Make current line to lowercase

or GUU

= = Convert to uppercase the current line or


gg ==

position at the beginning of the file or


== G

Positioning at end of file or


:

num == num placed on line

or ga

== Displays ASCII code, hexadecimal and octal current character


• Save and exit (normal) or


:

== q Quit the editor without saving or


: q!

== Exit the editor without saving or prompting

or
: wq

== Save and Exit the editor or


: w file.txt ==

Save in a file called file.txt

or
: e file.txt ==

Closes the current file and open the file.txt


• Useful commands (normal mode)


or delete character x

==

or
:% s/texto_1/texto_2 / ==

replace text or
/ texto_a_buscar /

== Search text (if you click "No" to seek the next match)


• Preferences default (normal mode)

or
: set ts

= num num == set tabulated in

spaces or
: set sw = num ==

set num adding spaces or


: set number / nonumber

== numbered files or


: September backup / nobackup

Automatic Backup ==

or
: set directory = dir == Folder

copies


or: syntax on / off syntax highlighting

==

or
: {color evening / darkblue / desert / elflord / Koehler / morning} == Recolor

or
: set cindent

Auto Indent ==

or
: set mouse = a / mouse = mouse

== Use

or
: set paste / nopaste

paste text mode ==

or
:

== Spell Corrector

spelling or
: setlocal spell spelllang = == Change language is

or
: set spellfile = ~ /. vimdic ==

Dictionary of unknown words


• More commands

or
:! command Run a command ==

or
: Pause == shell

edition (to return to the editor type exit) or


: set number

== Displays the numbered lines

sure many of you know more commands, so I encourage you to share your knowledge with us.