Create a group:
sudo groupadd mygroup
Add user to group:
usermod -a -G mygroup user
JSC is the JavaScript engine from Apple's JavaScriptCore (WebKit) as a console application that you can use to run script in the terminal.
For more info visit the JSC's webkit wiki page.
Using jsc is simple, the one issue is that Apple keeps changing the location for jsc. To deal with this issue I just create a symbolic link to the binary:
line 1
line 2
quote 1
line 3
quoute 2.1 quoute 2.2 line 4
<?php | |
/** | |
* Tile utility class | |
* | |
* Handles converting slippy map tile numbers to lat/lon values | |
* Ported from: | |
* http://svn.openstreetmap.org/applications/routing/pyroute/tilenames.py | |
* http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Java | |
*/ | |
class Util_Tile { |
We use an integer variable to store options using its bits.
A mask is an integer with one or more bits set to 1. Each bit represents a particular option or state.
An integer in C holds at least 16 bits (4 bytes);
int maskOptionIsReadable = 0x80; //1000 0000
If data is send with a traditional multipart/form-data
or application/x-www-form-urlencoded
JSON data in FORM values will be automatically be converted and available in its corresponding $_POST
, $_REQUEST
or $_GET
global.
This scenario is handle fairly simple with:
<?
$data = @json_decode($_POST['json_field']);