Funny conversation about Bitcoin

During a normal day, just reading and sharing info about Bitcoin:

– Did you know about it? http://en.wikipedia.org/wiki/Bitcoin

– I know about bit coin, it is also used by people behind dangerous viruses…not possible to find them at all

(True and demonstrable conversation)

(I could write infinite smiles, but the servers of this platform will not have enough space in their hard disks)

Anuncios
Publicado en Otros | Deja un comentario

Git: Getting the commit number & removing files after add -A

Getting the commit number:

git rev-parse –short HEAD

git reset

Removing files after add -A

git reset <namefile>

(I know that this is easy for you, but I needed to write it here. My notebook is not accessible from Internet)

Publicado en GIT | Deja un comentario

Git: Saving your changes when a push is not possible and a pull is required

In the case:

git add -A

git commit

git push origin master

git reset –soft HEAD^ (Deleting commit)

git stash (Saving our changes in a stack)

git pull origin master

git stash pop (recovering the changes from the stack)

git commit

git push origin master

Success!

Publicado en GIT | Deja un comentario

Httrack agressive download, o como descargar una web completamente

httrack http://www.url.com -c128 -%c20 -R40 -H0 -t -s0 -B

enjoy!

Publicado en Otros | Deja un comentario

Search string into all files into a folder recursively with python – Buscar una cadena dentro de todos los archivos de un directorio con python

¿Quieres buscar una cadena o string dentro de todos los archivos de tu directorio de forma recursiva con python? Esto te puede interesar:

 

(Cuidado con las identaciones, tienes que añadirlas)

(Be carefull with identatons, you have to add them.)

 

#!/usr/bin/python
import os, fnmatch
def find_files(directory, pattern):
for root, dirs, files in os.walk(directory):
for basename in files:
if fnmatch.fnmatch(basename, pattern):
filename = os.path.join(root, basename)
yield filename
for filename in find_files(‘.’, ‘*.*’):

infile = open(filename,”r”)
text = infile.read()
infile.close()
search = “MiCadena”
index = text.find(search)
if index != -1:
print filename

Publicado en python | Deja un comentario

Blueprint – Framework css

Me lo apunto para el próximo desarrollo…que buena pinta! 🙂

Publicado en Otros | Deja un comentario

¿Quieres empezar a programar con Django?

* Tutoriales:

Principal: https://docs.djangoproject.com/en/1.5/

Getting started: https://docs.djangoproject.com/en/1.5/intro/ el apartado Advanced tutorial: How to write reusable apps the lo puedes saltar

Models: https://docs.djangoproject.com/en/1.5/topics/db/models/

QuerySets: https://docs.djangoproject.com/en/1.5/topics/db/queries/
Related objects: https://docs.djangoproject.com/en/1.5/ref/models/relations/

URLs: https://docs.djangoproject.com/en/1.5/topics/http/urls/

Class-Based views: https://docs.djangoproject.com/en/1.5/topics/class-based-views/
Function views: https://docs.djangoproject.com/en/1.5/topics/http/views/

Forms: https://docs.djangoproject.com/en/1.5/topics/forms/
Forms and models: https://docs.djangoproject.com/en/1.5/topics/forms/modelforms/

Templates overview: https://docs.djangoproject.com/en/1.5/topics/templates/

i18n: https://docs.djangoproject.com/en/1.5/topics/i18n/

* Referencia:

Models: https://docs.djangoproject.com/en/1.5/ref/models/instances/
Model fields: https://docs.djangoproject.com/en/1.5/ref/models/fields/
Managers: https://docs.djangoproject.com/en/1.5/topics/db/managers/

QuerySets: https://docs.djangoproject.com/en/1.5/ref/models/querysets/

Built-in template tags and filters: https://docs.djangoproject.com/en/1.5/topics/class-based-views/generic-display/

Shorcuts: https://docs.djangoproject.com/en/1.5/topics/http/shortcuts/

Decorators: https://docs.djangoproject.com/en/1.5/topics/http/decorators/

Publicado en Backend | Deja un comentario