Ir al contenido principal

Entradas

Mostrando entradas de julio, 2019

Python + Flask + Deploy Apache

Deploy on Apache https://www.storehubs.com/Blog/deploy-python-flask-application-apache-windows-server/ Install Apach on C:\Apache24 Download from  https://www.apachelounge.com/download/ Install  Microsoft Build Tools for Visual Studio 2019 . Install mod_wsgi pip install mod_wsgi mod_wsgi-express module-config Copy mod_wsgi-py34-VC10.so to C:\Apache24\modules On Apache edit  http.conf copy the previous result after section of LoadModule LoadFile "c:/users/erodvel/appdata/local/programs/python/python37/python37.dll" LoadModule wsgi_module "c:/users/erodvel/appdata/local/programs/python/python37/lib/site-packages/mod_wsgi/server/mod_wsgi.cp37-win_amd64.pyd" WSGIPythonHome "c:/users/erodvel/appdata/local/programs/python/python37" Add after <Directory "${SRVROOT}/htdocs">  <Directory "c:/Apache24/htdocs">    Options Indexes FollowSymLinks ExecCGI    AllowOverride None    Require al...

jQuery VI (Functions: map, typeof, Modernizr, callbacks, noConflict)

Functions Create an array previous manipulation .map() Filter an array $.grep( array, function(item){    return item.property > 1; }) Describe the type as null, error, array, date, regexp typeof  variable === "function" Detect browser by feature detection Modernizr.load({  test: Modernizr. inputtypes.date,  nope : [       ".ext/datepicker.css"       , "ext/bootstrap-datepicker.js"   ],  complete : function (){       if( ! Modernizr. inputtypes.date ) {            $("input[type=date]").datepicker();      }      } }); Callbacks var c = $.CallBacks("unique stropOnFalse memory");   // Unique: one function per name,   // stopOnFalse // memory c.add( your_function ); c.fire("parameter_your_function") $.noConflict(); Release the...