Purpose:
- allocate disk blocks for files, utilize space effectively
3 common way: contiguous, linked, indexed.
<?php | |
/* | |
The algorithm of injecting the payload into the JPG image, which will keep unchanged after transformations | |
caused by PHP functions imagecopyresized() and imagecopyresampled(). | |
It is necessary that the size and quality of the initial image are the same as those of the processed | |
image. | |
1) Upload an arbitrary image via secured files upload script | |
2) Save the processed image and launch: |
diff --git a/examples/01-cubes/cubes.cpp b/examples/01-cubes/cubes.cpp | |
index 0e96c370..131126a8 100644 | |
--- a/examples/01-cubes/cubes.cpp | |
+++ b/examples/01-cubes/cubes.cpp | |
@@ -148,7 +148,7 @@ public: | |
// Set view 0 clear state. | |
bgfx::setViewClear(0 | |
, BGFX_CLEAR_COLOR|BGFX_CLEAR_DEPTH | |
- , 0x303030ff | |
+ , 0x00000000 |
#!/usr/bin/env python3 | |
''' | |
MIT License | |
Copyright (c) 2018 Paul Melnikow | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
There are 3 primary ways to pass data into functions: move, copy, or borrow (aka a reference). Since mutability is inherently intertwined with data passing (this function can borrow my data, but only if they promise not to mess with it), we end up with 6 distinct combinations.
Every language has its own level of support and take on these semantics:
These are instructions for setting up git to authenticate with GitHub when you have 2-factor authentication set up. This authentication should be inherited by any GUI client you are using. These are intentionally brief instructions, with links to more detail in the appropriate places.
Download and install the git command-line client (if required).
Open the git bash window and introduce yourself to git (if required):
git config --global user.name 'Firstname Lastname'
git config --global user.email '[email protected]'
import javafx.application.*; | |
import javafx.geometry.Pos; | |
import javafx.scene.*; | |
import javafx.scene.control.Label; | |
import javafx.scene.layout.*; | |
import javafx.scene.paint.Color; | |
import javafx.stage.*; | |
import javax.imageio.ImageIO; | |
import java.io.IOException; |
php -v
config.sample.inc.php
> config.inc.php
$cfg['Servers'][$i]['host']
to the ip address of your mysql server (probably localhost or 127.0.0.1)php -S localhost:8080
A quick guide on how to setup Node.js development environment.
nvm allows installing several versions of Node.js to the same system. Sometimes applications require a certain versions of Node.js to work. Having the flexibility of using specific versions can help.
ffmpeg -i test.mov -vcodec libx264 -vf 'scale=640:trunc(ow/a/2)*2' -acodec aac -vb 1024k -minrate 1024k -maxrate 1024k -bufsize 1024k -ar 44100 -strict experimental -r 30 out.mp4 |