This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo touch /var/log/mysqld.log | |
$ sudo touch /var/log/mysqld-slow-queries.log sudo | |
$ sudo chown mysql:mysql /var/log/mysqld.log | |
$ sudo chown mysql:mysql /var/log/mysqld-slow-queries.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
log.debug('Esto es un mensaje de depuración') | |
log.info('Esto es un mensaje de información') | |
log.error('Esto es un mensaje de error') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bundle = new PropertyResourceBundle(new InputStreamReader(stream, encoding)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pacman -S cmus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ node r.js -o build.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript"> | |
requirejs.config({ | |
shim: { | |
'underscore': { | |
exports: '_' | |
}, | |
'json2': { | |
exports: 'JSON' | |
}, | |
'backbone': { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package es.com.blogspot.elblogdepicodev.pattern.state.compraState; | |
import java.math.BigDecimal; | |
import java.text.MessageFormat; | |
import es.com.blogspot.elblogdepicodev.pattern.state.Compra; | |
import es.com.blogspot.elblogdepicodev.pattern.state.Compra.FormaEnvio; | |
import es.com.blogspot.elblogdepicodev.pattern.state.Compra.FormaPago; | |
public abstract class AbstractCompraState implements CompraState { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package es.com.blogspot.elblogdepicodev.hibernate; | |
import java.util.Date; | |
import javax.persistence.EntityManager; | |
import javax.persistence.EntityManagerFactory; | |
import javax.persistence.Persistence; | |
import org.junit.After; | |
import org.junit.AfterClass; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package es.com.blogspot.elblogdepicodev.hibernate.dao; | |
import java.util.List; | |
import javax.persistence.EntityManager; | |
import org.apache.lucene.search.Query; | |
import org.hibernate.search.jpa.FullTextEntityManager; | |
import org.hibernate.search.jpa.Search; | |
import org.hibernate.search.query.dsl.QueryBuilder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package es.com.blogspot.elblogdepicodev.hibernate; | |
import java.util.Date; | |
import java.util.List; | |
import javax.persistence.EntityManager; | |
import javax.persistence.EntityManagerFactory; | |
import javax.persistence.Persistence; | |
import es.com.blogspot.elblogdepicodev.hibernate.dao.GenericDAO; |