php -S localhost:8888 &
-
Draw the splash screen in
gimp
. For example, create a 1280 pixel x 720 pixel image with a pixel density of 240 ppi x 240 ppi (pixels per inch). -
Use the tool
/Android/Sdk/tools/draw9patch
which is part of Android SDK to mark regions which can be stretched. The overall image is 1282 x 722 pixels. Watch this video to see how to use the tool. -
Copy this image to
/res/screen/android
folder.
We should allow normal users (after authentication) on the host machine to use SVN. We should not give access to normal users to the SVN directory itself. Notes from here
In the following commands, #
=> as root, $
=> as user.
DEB files are ar
archives, which contain three files:
- debian-binary
- control.tar.gz
- data.tar.gz
Unpacking this file is a two step process.
ar vx mypackage.deb
tar -xzvf data.tar.gz
ps2epsi foo.ps
#ps2pdf14 -dEPSCrop -dAutoRotatePages=/None -dPDFSETTINGS=/prepress -dEmbedAllFonts=true foo.epsi foo.pdf
ps2pdf14 -dEPSCrop -dAutoRotatePages=/All -dPDFSETTINGS=/prepress -dEmbedAllFonts=true foo.epsi foo.pdf
A simple example of how to use PyTorch ATen directly using C++.
#!/usr/bin/env python | |
# python train.py -train_steps 1 -data data/demo -gpu_ranks 0 | |
import subprocess | |
from itertools import product | |
src_emb = [128, 1024] | |
dst_emb = [128, 1024] | |
hidden = [128, 1024] |
saved_model_cli show --dir resnet/1
saved_model_cli show --dir resnet/1 --tag_set serve
The .npz
file format is used to save several numpy arrays into a single zipped file.
Documentation.
import numpy as np
a = np.array([42])
b = np.array([2, 3, 5, 7, 9])
with open("foo.npz", "wb") as f: