Somewhat like dotenv but for PHP.
The goals is to remove all config scattered about in files and have one authoritative source for that config info.
Somewhat like dotenv but for PHP.
The goals is to remove all config scattered about in files and have one authoritative source for that config info.
Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.
Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.
# | |
# Example from code built on the Flask web framework (and Werkzeug) | |
# Accepts uploading a photo file in the 'photo' form member, then | |
# copies it into a memory byte array and converts it to a numpy array | |
# which in turn can be decoded by OpenCV. | |
# | |
# Beware that this increases the memory pressure and you should | |
# configure a max request size before doing so. | |
# | |
# It saves a round-trip to a temporary file, though. |
No, seriously, don't. You're probably reading this because you've asked what VPN service to use, and this is the answer.
Note: The content in this post does not apply to using VPN for their intended purpose; that is, as a virtual private (internal) network. It only applies to using it as a glorified proxy, which is what every third-party "VPN provider" does.
MSYS2 is a minimalist linux/unix shell environment for Windows.
Quote: "A modern replacement for MSYS bringing recent versions of the GNU toolchains, Git and other common Unix command line tools to the Windows platform"
Do all the steps listed here: http://msys2.github.io/
(troubleshooting guide here: https://github.com/msys2/msys2/wiki/MSYS2-installation )
<?php | |
function getCotizaciones($monedas = true) | |
{ | |
$url = 'http://www.bcu.gub.uy/_layouts/BCU.Cotizaciones/handler/CotizacionesHandler.ashx?op=getcotizaciones'; | |
$data = ""; | |
$last_date_found = false; | |
$diff = 1; | |
$cotizaciones = array(); | |
$codigosAceptados = array("USD", "EURO", "CHF", "GBP", "ARS", "BRL", "JPY", "U.I."); |
# This is a note of https://blog.pjsen.eu/?p=440 | |
I did a little research and have found that GIT Bash uses MINGW compilation of GNU tools. | |
It uses only selected ones. | |
You can install the whole distribution of the tools from https://www.msys2.org/ | |
and run a command to install Tmux. And then copy some files to installation folder of Git. | |
This is what you do: | |
Install before-mentioned msys2 package and run bash shell | |
Install tmux using the following command: pacman -S tmux |
#!/bin/bash | |
### steps #### | |
# Verify the system has a cuda-capable gpu | |
# Download and install the nvidia cuda toolkit and cudnn | |
# Setup environmental variables | |
# Verify the installation | |
### | |
### to verify your gpu is cuda enable check |