jueves, 16 de abril de 2020

Incremento de numeros con repetición SublimeText

Para auto-incrementar una selección con numeros, teniendo un numero inicial y deseando que se repita este numero hasta n veces...
Se necesita instalar https://github.com/duydao/Text-Pastry en Sublime Text.
Despues, seleccionar los elementos que se desean incrementar, para luego realizar lo siguiente:

Ctrl+shift+N

En el cuadro de commando escribir:

    1 1 each=3

Donde el primer 1 es el valor inicial, luego el incremento ( de cuantos en cuantos se incrementará ) y despues las veces que se debe repetir el valor en el each.

martes, 24 de noviembre de 2015

Rendering Drupal 7 fields

https://www.computerminds.co.uk/articles/rendering-drupal-7-fields-right-way

jueves, 5 de noviembre de 2015

Agregar un "Caption" a un Views Slideshow ( Drupal )

Write a caption over your Views Slideshow Posted on October 17, 2012 Drupal I don’t know if you already know about the Views Slideshow, probably you do. And you may also know that you can add different JQuery libraries to create various transition effects between your View items. But what you maybe don’t know is how to add a caption on top of your slides in case you want to create an image slideshow. It is quite simple really, all you need to do is follow a few simple steps: Create your View of the format: Slideshow and that displays your desired content. Make sure that the content type you choose has at least an image field and a text field which will represent the caption. Then add you fields to the View, image and text field. Make sure that when you configure each of these fields you Exclude from display all the fields apart from the last. Now, you have to rewrite the last field in the list. After checking the box Rewrite the output of this field, add the following code into the text box:
[replacement-pattern-for-image]
[replacement-pattern-for-caption]
You will see below the replacement patterns. Make sure you use your replacement patterns for your fields. Then you can save your View. Of course you can go back to it anytime and improve it more to your liking as now it is quite basic. Finally, to the CSS. Add the following css lines to your stylesheet: .slideshow-image { position:relative; } .slideshow-caption { position:absolute; bottom:50px; } What this does is two simple things: Makes the position of the image in the slideshow relative so that other elements can come on top and puts the caption text 50px higher. In effect, this makes the caption appear over the text. Here of course you should position your caption how you want, change color, background etc. Hope this helps. Fuente: https://www.gaslampmedia.com/undoing-drupal-bootstrap-themes-rewriting-buttons/

lunes, 10 de junio de 2013

Renombrar por Extensión de Archivo Recursivamente en Linux

find . -name "*.EXT" -exec rename .EXT .ext {} \;

viernes, 15 de marzo de 2013

HOWTO : otf Fonts in IIS

http://stackoverflow.com/questions/2714429/font-face-not-working-on-a-client-site

sábado, 9 de febrero de 2013

HOWTO : Instalar LAMP compilando en Linux

http://www.bin-co.com/blog/2008/09/compile-install-lamp-linux-apache-mysql-php-server-from-source/ http://www.lamphowto.com/

lunes, 28 de enero de 2013

HOWTO: Correr un programa CGI sobre IIS 7 o superior

http://blogs.iis.net/thomad/archive/2010/04/04/how-to-run-a-cgi-program-under-iis-7-0-or-iis-7-5.aspx
Visitas