This assumes you are now connected to the server via SSH.
sudo -s
Enter root mode for admin accessgroupadd devgroup
Create new group to be later granted access to /var/www/html
useradd -G root,devgroup masterdev
Create new root user. Also add to the devgrouppasswd masterdev
Change password for the new root user- At this point, you'll need to input your new root user's new password
Issues with latex math in markdown files, for display on Github Pages (using jekyll)
Our solution: use kramdown parser, with GFM option (Github flavored Markdown). In the .Rmd, use $$
for display math and $
for inline math. then have a script which turns the inline math demarkation in the .md file from $
into $$
when appropriate (avoiding data frame usage), before uploading the .md to Github. This way, RStudio preview looks the same as the Github Pages version.
- doesn't respect
$
or$$
(will parse characters within these, such as_
), but has workarounds: - has a useful option,
no_intra_emphasis
, so underscores between ascii characters are not converted to<em>
tags, so$x_1$
is fine - need to escape underscores after non-ascii characters, for example
$\mathbf{x}\_1$
- need to double escape curly bracket:
\\{
[ | |
{ | |
"city": "New York", | |
"growth_from_2000_to_2013": "4.8%", | |
"latitude": 40.7127837, | |
"longitude": -74.0059413, | |
"population": "8405837", | |
"rank": "1", | |
"state": "New York" | |
}, |
Picking the right architecture = Picking the right battles + Managing trade-offs
- Clarify and agree on the scope of the system
- User cases (description of sequences of events that, taken together, lead to a system doing something useful)
- Who is going to use it?
- How are they going to use it?
FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.
- By Edmond Lau
- Highly Recommended 👍
- http://www.theeffectiveengineer.com/
import picamera, json, requests, os, random | |
from time import sleep | |
from PIL import Image, ImageDraw | |
#capture an image | |
camera = picamera.PiCamera() | |
camera.capture('image1.jpg') | |
print('caputred image') | |
#make a prediction on the image |