Info
Welcome to the generated API reference. Get Postman Collection
general
_debugbar/open
Example request:
curl -X GET -G "http://localhost:8000/_debugbar/open"
const url = new URL("http://localhost:8000/_debugbar/open");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (404):
{
"message": ""
}
HTTP Request
GET _debugbar/open
Return Clockwork output
Example request:
curl -X GET -G "http://localhost:8000/_debugbar/clockwork/1"
const url = new URL("http://localhost:8000/_debugbar/clockwork/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (404):
{
"message": ""
}
HTTP Request
GET _debugbar/clockwork/{id}
_debugbar/telescope/{id}
Example request:
curl -X GET -G "http://localhost:8000/_debugbar/telescope/1"
const url = new URL("http://localhost:8000/_debugbar/telescope/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (404):
{
"message": ""
}
HTTP Request
GET _debugbar/telescope/{id}
Return the stylesheets for the Debugbar
Example request:
curl -X GET -G "http://localhost:8000/_debugbar/assets/stylesheets"
const url = new URL("http://localhost:8000/_debugbar/assets/stylesheets");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (404):
{
"message": ""
}
HTTP Request
GET _debugbar/assets/stylesheets
Return the javascript for the Debugbar
Example request:
curl -X GET -G "http://localhost:8000/_debugbar/assets/javascript"
const url = new URL("http://localhost:8000/_debugbar/assets/javascript");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (404):
{
"message": ""
}
HTTP Request
GET _debugbar/assets/javascript
Forget a cache key
Example request:
curl -X DELETE "http://localhost:8000/_debugbar/cache/1/1"
const url = new URL("http://localhost:8000/_debugbar/cache/1/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE _debugbar/cache/{key}/{tags?}
Get the key performance stats for the dashboard.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/stats"
const url = new URL("http://localhost:8000/horizon/api/stats");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/stats
Get the current queue workload for the application.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/workload"
const url = new URL("http://localhost:8000/horizon/api/workload");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/workload
Get all of the master supervisors and their underlying supervisors.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/masters"
const url = new URL("http://localhost:8000/horizon/api/masters");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/masters
Get all of the monitored tags and their job counts.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/monitoring"
const url = new URL("http://localhost:8000/horizon/api/monitoring");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/monitoring
Start monitoring the given tag.
Example request:
curl -X POST "http://localhost:8000/horizon/api/monitoring"
const url = new URL("http://localhost:8000/horizon/api/monitoring");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST horizon/api/monitoring
Paginate the jobs for a given tag.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/monitoring/1"
const url = new URL("http://localhost:8000/horizon/api/monitoring/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/monitoring/{tag}
Stop monitoring the given tag.
Example request:
curl -X DELETE "http://localhost:8000/horizon/api/monitoring/1"
const url = new URL("http://localhost:8000/horizon/api/monitoring/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE horizon/api/monitoring/{tag}
Get all of the measured jobs.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/metrics/jobs"
const url = new URL("http://localhost:8000/horizon/api/metrics/jobs");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/metrics/jobs
Get metrics for a given job.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/metrics/jobs/1"
const url = new URL("http://localhost:8000/horizon/api/metrics/jobs/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/metrics/jobs/{id}
Get all of the measured queues.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/metrics/queues"
const url = new URL("http://localhost:8000/horizon/api/metrics/queues");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/metrics/queues
Get metrics for a given queue.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/metrics/queues/1"
const url = new URL("http://localhost:8000/horizon/api/metrics/queues/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/metrics/queues/{id}
Get all of the recent jobs.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/jobs/recent"
const url = new URL("http://localhost:8000/horizon/api/jobs/recent");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/jobs/recent
Get all of the failed jobs.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/jobs/failed"
const url = new URL("http://localhost:8000/horizon/api/jobs/failed");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/jobs/failed
Get a failed job instance.
Example request:
curl -X GET -G "http://localhost:8000/horizon/api/jobs/failed/1"
const url = new URL("http://localhost:8000/horizon/api/jobs/failed/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET horizon/api/jobs/failed/{id}
Retry a failed job.
Example request:
curl -X POST "http://localhost:8000/horizon/api/jobs/retry/1"
const url = new URL("http://localhost:8000/horizon/api/jobs/retry/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST horizon/api/jobs/retry/{id}
Single page application catch-all route.
Example request:
curl -X GET -G "http://localhost:8000/horizon/1"
const url = new URL("http://localhost:8000/horizon/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
null
HTTP Request
GET horizon/{view?}
Authenticate the request for channel access.
Example request:
curl -X GET -G "http://localhost:8000/broadcasting/auth"
const url = new URL("http://localhost:8000/broadcasting/auth");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (403):
{
"message": ""
}
HTTP Request
GET broadcasting/auth
POST broadcasting/auth
Remove the specified resource from storage.
Example request:
curl -X DELETE "http://localhost:8000/api/v1/comments/1"
const url = new URL("http://localhost:8000/api/v1/comments/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/v1/comments/{comment}
Store a newly created resource in storage.
Example request:
curl -X POST "http://localhost:8000/api/v1/posts/1/comments"
const url = new URL("http://localhost:8000/api/v1/posts/1/comments");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/posts/{post}/comments
Store a newly created resource in storage.
Example request:
curl -X POST "http://localhost:8000/api/v1/posts"
const url = new URL("http://localhost:8000/api/v1/posts");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/posts
Update the specified resource in storage.
Example request:
curl -X PUT "http://localhost:8000/api/v1/posts/1"
const url = new URL("http://localhost:8000/api/v1/posts/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/v1/posts/{post}
PATCH api/v1/posts/{post}
Remove the specified resource from storage.
Example request:
curl -X DELETE "http://localhost:8000/api/v1/posts/1"
const url = new URL("http://localhost:8000/api/v1/posts/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/v1/posts/{post}
Store a newly created resource in storage.
Example request:
curl -X POST "http://localhost:8000/api/v1/posts/1/likes"
const url = new URL("http://localhost:8000/api/v1/posts/1/likes");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/posts/{post}/likes
Remove the specified resource from storage.
Example request:
curl -X DELETE "http://localhost:8000/api/v1/posts/1/likes"
const url = new URL("http://localhost:8000/api/v1/posts/1/likes");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/v1/posts/{post}/likes
Update the specified resource in storage.
Example request:
curl -X PUT "http://localhost:8000/api/v1/users/1"
const url = new URL("http://localhost:8000/api/v1/users/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT api/v1/users/{user}
PATCH api/v1/users/{user}
Store a newly created resource in storage.
Example request:
curl -X POST "http://localhost:8000/api/v1/media"
const url = new URL("http://localhost:8000/api/v1/media");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/media
Remove the specified resource from storage.
Example request:
curl -X DELETE "http://localhost:8000/api/v1/media/1"
const url = new URL("http://localhost:8000/api/v1/media/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE api/v1/media/{medium}
Return the user's access token.
Example request:
curl -X POST "http://localhost:8000/api/v1/authenticate"
const url = new URL("http://localhost:8000/api/v1/authenticate");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST api/v1/authenticate
Return the post's comments.
Example request:
curl -X GET -G "http://localhost:8000/api/v1/posts/1/comments"
const url = new URL("http://localhost:8000/api/v1/posts/1/comments");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 1,
"content": "Hey ! I'm a comment as example.",
"posted_at": "2019-09-29T21:10:30+02:00",
"humanized_posted_at": "29 September 2019, 21:10",
"author_id": 1,
"post_id": 1,
"author_name": "anakin",
"author_url": "http:\/\/localhost:8000\/users\/1",
"can_delete": false
}
],
"links": {
"first": "http:\/\/localhost\/api\/v1\/posts\/1\/comments?page=1",
"last": "http:\/\/localhost\/api\/v1\/posts\/1\/comments?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "http:\/\/localhost\/api\/v1\/posts\/1\/comments",
"per_page": 20,
"to": 1,
"total": 1
}
}
HTTP Request
GET api/v1/posts/{post}/comments
Return the user's comments.
Example request:
curl -X GET -G "http://localhost:8000/api/v1/users/1/comments"
const url = new URL("http://localhost:8000/api/v1/users/1/comments");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 1,
"content": "Hey ! I'm a comment as example.",
"posted_at": "2019-09-29T21:10:30+02:00",
"humanized_posted_at": "29 September 2019, 21:10",
"author_id": 1,
"post_id": 1,
"author_name": "anakin",
"author_url": "http:\/\/localhost:8000\/users\/1",
"can_delete": false
}
],
"links": {
"first": "http:\/\/localhost\/api\/v1\/users\/1\/comments?page=1",
"last": "http:\/\/localhost\/api\/v1\/users\/1\/comments?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "http:\/\/localhost\/api\/v1\/users\/1\/comments",
"per_page": 20,
"to": 1,
"total": 1
}
}
HTTP Request
GET api/v1/users/{user}/comments
Return the comments.
Example request:
curl -X GET -G "http://localhost:8000/api/v1/comments"
const url = new URL("http://localhost:8000/api/v1/comments");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 1,
"content": "Hey ! I'm a comment as example.",
"posted_at": "2019-09-29T21:10:30+02:00",
"humanized_posted_at": "29 September 2019, 21:10",
"author_id": 1,
"post_id": 1,
"author_name": "anakin",
"author_url": "http:\/\/localhost:8000\/users\/1",
"can_delete": false
}
],
"links": {
"first": "http:\/\/localhost\/api\/v1\/comments?page=1",
"last": "http:\/\/localhost\/api\/v1\/comments?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "http:\/\/localhost\/api\/v1\/comments",
"per_page": 20,
"to": 1,
"total": 1
}
}
HTTP Request
GET api/v1/comments
Return the specified resource.
Example request:
curl -X GET -G "http://localhost:8000/api/v1/comments/1"
const url = new URL("http://localhost:8000/api/v1/comments/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": {
"id": 1,
"content": "Hey ! I'm a comment as example.",
"posted_at": "2019-09-29T21:10:30+02:00",
"humanized_posted_at": "29 September 2019, 21:10",
"author_id": 1,
"post_id": 1,
"author_name": "anakin",
"author_url": "http:\/\/localhost:8000\/users\/1",
"can_delete": false
}
}
HTTP Request
GET api/v1/comments/{comment}
Return the posts.
Example request:
curl -X GET -G "http://localhost:8000/api/v1/posts"
const url = new URL("http://localhost:8000/api/v1/posts");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 1,
"title": "Hello World",
"slug": "hello-world",
"content": "\n Welcome to Laravel-blog !

\n Don't forget to read the README before starting.

\n Feel free to add a star on Laravel-blog on Github !

\n You can open an issue or (better) a PR if something went wrong.",
"posted_at": "2019-09-29T21:10:30+02:00",
"author_id": 1,
"comments_count": 1
}
],
"links": {
"first": "http:\/\/localhost\/api\/v1\/posts?page=1",
"last": "http:\/\/localhost\/api\/v1\/posts?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "http:\/\/localhost\/api\/v1\/posts",
"per_page": 20,
"to": 1,
"total": 1
}
}
HTTP Request
GET api/v1/posts
Return the specified resource.
Example request:
curl -X GET -G "http://localhost:8000/api/v1/posts/1"
const url = new URL("http://localhost:8000/api/v1/posts/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": {
"id": 1,
"title": "Hello World",
"slug": "hello-world",
"content": "\n Welcome to Laravel-blog !

\n Don't forget to read the README before starting.

\n Feel free to add a star on Laravel-blog on Github !

\n You can open an issue or (better) a PR if something went wrong.",
"posted_at": "2019-09-29T21:10:30+02:00",
"author_id": 1,
"comments_count": 1
}
}
HTTP Request
GET api/v1/posts/{post}
Return the user's posts.
Example request:
curl -X GET -G "http://localhost:8000/api/v1/users/1/posts"
const url = new URL("http://localhost:8000/api/v1/users/1/posts");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 1,
"title": "Hello World",
"slug": "hello-world",
"content": "\n Welcome to Laravel-blog !

\n Don't forget to read the README before starting.

\n Feel free to add a star on Laravel-blog on Github !

\n You can open an issue or (better) a PR if something went wrong.",
"posted_at": "2019-09-29T21:10:30+02:00",
"author_id": 1,
"comments_count": 1
}
],
"links": {
"first": "http:\/\/localhost\/api\/v1\/users\/1\/posts?page=1",
"last": "http:\/\/localhost\/api\/v1\/users\/1\/posts?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "http:\/\/localhost\/api\/v1\/users\/1\/posts",
"per_page": 20,
"to": 1,
"total": 1
}
}
HTTP Request
GET api/v1/users/{user}/posts
Return the users.
Example request:
curl -X GET -G "http://localhost:8000/api/v1/users"
const url = new URL("http://localhost:8000/api/v1/users");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [
{
"id": 1,
"name": "anakin",
"email"<EMAIL_ADDRESS>"provider": null,
"provider_id": null,
"registered_at": "2019-09-29T21:10:30+02:00",
"comments_count": 1,
"posts_count": 1,
"roles": [
{
"id": 2,
"name": "admin"
}
]
}
],
"links": {
"first": "http:\/\/localhost\/api\/v1\/users?page=1",
"last": "http:\/\/localhost\/api\/v1\/users?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"path": "http:\/\/localhost\/api\/v1\/users",
"per_page": 20,
"to": 1,
"total": 1
}
}
HTTP Request
GET api/v1/users
Return the specified resource.
Example request:
curl -X GET -G "http://localhost:8000/api/v1/users/1"
const url = new URL("http://localhost:8000/api/v1/users/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": {
"id": 1,
"name": "anakin",
"email"<EMAIL_ADDRESS>"provider": null,
"provider_id": null,
"registered_at": "2019-09-29T21:10:30+02:00",
"comments_count": 1,
"posts_count": 1,
"roles": [
{
"id": 2,
"name": "admin"
}
]
}
}
HTTP Request
GET api/v1/users/{user}
Return the comments.
Example request:
curl -X GET -G "http://localhost:8000/api/v1/media"
const url = new URL("http://localhost:8000/api/v1/media");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
{
"data": [],
"links": {
"first": "http:\/\/localhost\/api\/v1\/media?page=1",
"last": "http:\/\/localhost\/api\/v1\/media?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": null,
"last_page": 1,
"path": "http:\/\/localhost\/api\/v1\/media",
"per_page": 20,
"to": null,
"total": 0
}
}
HTTP Request
GET api/v1/media
Invoke the controller method.
Example request:
curl -X GET -G "http://localhost:8000/.well-known/change-password"
const url = new URL("http://localhost:8000/.well-known/change-password");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (302):
null
HTTP Request
GET .well-known/change-password
POST .well-known/change-password
PUT .well-known/change-password
PATCH .well-known/change-password
DELETE .well-known/change-password
OPTIONS .well-known/change-password
Show the application's login form.
Example request:
curl -X GET -G "http://localhost:8000/login"
const url = new URL("http://localhost:8000/login");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
null
HTTP Request
GET login
Handle a login request to the application.
Example request:
curl -X POST "http://localhost:8000/login"
const url = new URL("http://localhost:8000/login");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST login
Log the user out of the application.
Example request:
curl -X POST "http://localhost:8000/logout"
const url = new URL("http://localhost:8000/logout");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST logout
Show the application registration form.
Example request:
curl -X GET -G "http://localhost:8000/register"
const url = new URL("http://localhost:8000/register");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
null
HTTP Request
GET register
Handle a registration request for the application.
Example request:
curl -X POST "http://localhost:8000/register"
const url = new URL("http://localhost:8000/register");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST register
Display the form to request a password reset link.
Example request:
curl -X GET -G "http://localhost:8000/password/reset"
const url = new URL("http://localhost:8000/password/reset");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
null
HTTP Request
GET password/reset
Send a reset link to the given user.
Example request:
curl -X POST "http://localhost:8000/password/email"
const url = new URL("http://localhost:8000/password/email");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST password/email
Display the password reset view for the given token.
If no token is present, display the link request form.
Example request:
curl -X GET -G "http://localhost:8000/password/reset/1"
const url = new URL("http://localhost:8000/password/reset/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
null
HTTP Request
GET password/reset/{token}
Reset the given user's password.
Example request:
curl -X POST "http://localhost:8000/password/reset"
const url = new URL("http://localhost:8000/password/reset");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST password/reset
Show the email verification notice.
Example request:
curl -X GET -G "http://localhost:8000/email/verify"
const url = new URL("http://localhost:8000/email/verify");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET email/verify
Mark the authenticated user's email address as verified.
Example request:
curl -X GET -G "http://localhost:8000/email/verify/1/1"
const url = new URL("http://localhost:8000/email/verify/1/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET email/verify/{id}/{hash}
Resend the email verification notification.
Example request:
curl -X POST "http://localhost:8000/email/resend"
const url = new URL("http://localhost:8000/email/resend");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST email/resend
Redirect the user to the GitHub authentication page.
Example request:
curl -X GET -G "http://localhost:8000/auth/1"
const url = new URL("http://localhost:8000/auth/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET auth/{provider}
Obtain the user information from provider.
Example request:
curl -X GET -G "http://localhost:8000/auth/1/callback"
const url = new URL("http://localhost:8000/auth/1/callback");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (500):
{
"message": "Server Error"
}
HTTP Request
GET auth/{provider}/callback
Show the form for editing the specified resource.
Example request:
curl -X GET -G "http://localhost:8000/settings/account"
const url = new URL("http://localhost:8000/settings/account");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET settings/account
Update the specified resource in storage.
Example request:
curl -X PUT "http://localhost:8000/settings/account"
const url = new URL("http://localhost:8000/settings/account");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT settings/account
PATCH settings/account
Show the form for editing the specified resource.
Example request:
curl -X GET -G "http://localhost:8000/settings/password"
const url = new URL("http://localhost:8000/settings/password");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET settings/password
Update password for the specified resource in storage.
Example request:
curl -X PUT "http://localhost:8000/settings/password"
const url = new URL("http://localhost:8000/settings/password");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT settings/password
PATCH settings/password
Show the form for editing the specified resource.
Example request:
curl -X GET -G "http://localhost:8000/settings/token"
const url = new URL("http://localhost:8000/settings/token");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET settings/token
Generate a personnal access token for the specified resource in storage.
Example request:
curl -X PUT "http://localhost:8000/settings/token"
const url = new URL("http://localhost:8000/settings/token");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT settings/token
PATCH settings/token
Store a newly created resource in storage.
Example request:
curl -X POST "http://localhost:8000/newsletter-subscriptions"
const url = new URL("http://localhost:8000/newsletter-subscriptions");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST newsletter-subscriptions
Show the application dashboard.
Example request:
curl -X GET -G "http://localhost:8000/"
const url = new URL("http://localhost:8000/");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
null
HTTP Request
GET /
Show the rss feed of posts.
Example request:
curl -X GET -G "http://localhost:8000/posts/feed"
const url = new URL("http://localhost:8000/posts/feed");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
null
HTTP Request
GET posts/feed
Display the specified resource.
Example request:
curl -X GET -G "http://localhost:8000/posts/1"
const url = new URL("http://localhost:8000/posts/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
null
HTTP Request
GET posts/{post}
Display the specified resource.
Example request:
curl -X GET -G "http://localhost:8000/users/1"
const url = new URL("http://localhost:8000/users/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (200):
null
HTTP Request
GET users/{user}
Remove the specified resource from storage.
Example request:
curl -X GET -G "http://localhost:8000/newsletter-subscriptions/unsubscribe"
const url = new URL("http://localhost:8000/newsletter-subscriptions/unsubscribe");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (302):
null
HTTP Request
GET newsletter-subscriptions/unsubscribe
Show the application admin dashboard.
Example request:
curl -X GET -G "http://localhost:8000/admin/dashboard"
const url = new URL("http://localhost:8000/admin/dashboard");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET admin/dashboard
Show the application posts index.
Example request:
curl -X GET -G "http://localhost:8000/admin/posts"
const url = new URL("http://localhost:8000/admin/posts");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET admin/posts
Show the form for creating a new resource.
Example request:
curl -X GET -G "http://localhost:8000/admin/posts/create"
const url = new URL("http://localhost:8000/admin/posts/create");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET admin/posts/create
Store a newly created resource in storage.
Example request:
curl -X POST "http://localhost:8000/admin/posts"
const url = new URL("http://localhost:8000/admin/posts");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST admin/posts
Display the specified resource edit form.
Example request:
curl -X GET -G "http://localhost:8000/admin/posts/1/edit"
const url = new URL("http://localhost:8000/admin/posts/1/edit");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET admin/posts/{post}/edit
Update the specified resource in storage.
Example request:
curl -X PUT "http://localhost:8000/admin/posts/1"
const url = new URL("http://localhost:8000/admin/posts/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT admin/posts/{post}
PATCH admin/posts/{post}
Remove the specified resource from storage.
Example request:
curl -X DELETE "http://localhost:8000/admin/posts/1"
const url = new URL("http://localhost:8000/admin/posts/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE admin/posts/{post}
Unset the post's thumbnail.
Example request:
curl -X DELETE "http://localhost:8000/admin/posts/1/thumbnail"
const url = new URL("http://localhost:8000/admin/posts/1/thumbnail");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE admin/posts/{post}/thumbnail
Show the application users index.
Example request:
curl -X GET -G "http://localhost:8000/admin/users"
const url = new URL("http://localhost:8000/admin/users");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET admin/users
Display the specified resource edit form.
Example request:
curl -X GET -G "http://localhost:8000/admin/users/1/edit"
const url = new URL("http://localhost:8000/admin/users/1/edit");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET admin/users/{user}/edit
Update the specified resource in storage.
Example request:
curl -X PUT "http://localhost:8000/admin/users/1"
const url = new URL("http://localhost:8000/admin/users/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT admin/users/{user}
PATCH admin/users/{user}
Show the application comments index.
Example request:
curl -X GET -G "http://localhost:8000/admin/comments"
const url = new URL("http://localhost:8000/admin/comments");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET admin/comments
Display the specified resource edit form.
Example request:
curl -X GET -G "http://localhost:8000/admin/comments/1/edit"
const url = new URL("http://localhost:8000/admin/comments/1/edit");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET admin/comments/{comment}/edit
Update the specified resource in storage.
Example request:
curl -X PUT "http://localhost:8000/admin/comments/1"
const url = new URL("http://localhost:8000/admin/comments/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "PUT",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
PUT admin/comments/{comment}
PATCH admin/comments/{comment}
Remove the specified resource from storage.
Example request:
curl -X DELETE "http://localhost:8000/admin/comments/1"
const url = new URL("http://localhost:8000/admin/comments/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE admin/comments/{comment}
Return the media library.
Example request:
curl -X GET -G "http://localhost:8000/admin/media"
const url = new URL("http://localhost:8000/admin/media");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET admin/media
Show the form for creating a new resource.
Example request:
curl -X GET -G "http://localhost:8000/admin/media/create"
const url = new URL("http://localhost:8000/admin/media/create");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET admin/media/create
Store a newly created resource in storage.
Example request:
curl -X POST "http://localhost:8000/admin/media"
const url = new URL("http://localhost:8000/admin/media");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "POST",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
POST admin/media
Display the specified resource.
Example request:
curl -X GET -G "http://localhost:8000/admin/media/1"
const url = new URL("http://localhost:8000/admin/media/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
Example response (401):
{
"message": "Unauthenticated."
}
HTTP Request
GET admin/media/{medium}
Remove the specified resource from storage.
Example request:
curl -X DELETE "http://localhost:8000/admin/media/1"
const url = new URL("http://localhost:8000/admin/media/1");
let headers = {
"Accept": "application/json",
"Content-Type": "application/json",
}
fetch(url, {
method: "DELETE",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
HTTP Request
DELETE admin/media/{medium}


My Feed
My Achievements
My Timeline
About Me
Justin Ledinh
8th Grade
Mentor(s): Someguy
Interests: Ultimate Frisbee
Add Picture


what
a cabin-hack in the middle of Sweden
since 2014 a small self-organizing hack have taken place in Järvsö, groups of friends have meet to hack on hobby projects, socialize and eat well!
dates
2023-11-16
to
2023-11-19
google calendar | icallocation
cabins on the mountainside of järvsö
how
- gather your best hacker and designer friends
- book a cabin around alpstigen through jarvso.se
- book a minibus/train/car to Järvsö
- pack your stuff
- profit!
If you book a cabin, reach out to me on twitter.
info
- Most cabins have a power budget of 150W/person
- Most cabins have a wifi
- You can cook in the cabins or eat out in Järvsö
- Tip: You can have cleaning included in your booking


When starting my project I looked at what data was available on crime statistics in Ireland. From the Central Statistics Office website I found
datasets on the crimes rates from 2003 to 2016, according to the Garda stations they were reported to. However there was little in the way of
visualization of this data, i.e. graphs, charts, maps etc. I decided to fix this through the creation of this application.
The goal was to create an app that would let users make sense of this mountain of data available. Say if someone were writing a report
on fluctuations in the crime rates in the country. Or if someone were curious as to whether crime in their area is on a decline or incline.
Or for the Garda themselves to see areas that have been experiencing increases in certain types of crime in recent years


Click here for instructions on how to edit thresholds and create customized configuration files. There are two options (see below). For either option, save the customized configuration file in a folder that is easy to find so that you can reuse the file each time you QC data for that site. It is helpful to include the StationID and other relevant information in the file name (for example, if thresholds are customized for a particular season).
After you save the file, go to the ‘upload custom thresholds’ tab, browse to the custom thresholds file, upload the file and then, under ‘Main functions’, generate the QC reports. If you forget the upload step, the default QC thresholds will be used.
Configuration files can be downloaded here -
Default, with hydrologic parameters in feet
Hydrologic parameters in meters Navigate to the ‘QC tests and calculations’ section. Edit thresholds as desired. Save the file.
When you download the configuration file(s), you will see two types of files: an R file (.R) and a text (.txt) file for users who do not have R installed on their computer. You can download R from this website: https://cran.r-project.org. You may also want to download RStudio, which is a separate program but is a useful code editor and interface (IDE) for R. If you cannot install R on your computer, we recommend use Notepad or Notepad++ (some people prefer Notepad++ because it has color-coding).
Select a parameter using the drop-down menu
Edit thresholds using boxes below
Save changes (for each parameter)
Download custom thresholds file
If you do not want to use the default units, you will need to use Option 2.
Acknowledgment: Tim Martin (MN DNR) wrote the R code that we used for the interactive functions below.


KAVHOLM
Chair set
$19.99
Buy now
KAVHOLM
Your test payment was successful.
Complete the order by using the
payment_intent.succeeded webhook
.
Replay demo


Get data:
5-Year Heat Stress HospitalizationsCold Stress Deaths
Cold Stress Emergency Department Visits
Cold Stress Hospitalizations
Heat Events
Heat Stress Deaths
Heat Stress Emergency Department Visits
Heat Stress Hospitalizations
Heat Vulnerability Index by NTA
Data Stories
About Weather-Related Illness
Weather-Related Illness
About Climate, Weather, and Health
A region’s climate is characterized by its usual weather conditions, seasons, and patterns in extreme weather events such as heat waves, droughts, and hurricanes. New York City (NYC) faces public health risks from extreme weather events such as heat waves and coastal storms. With climate change, the severity of some of these risks will increase. A 2013 New York City Panel on Climate Change (NPCC) report predicts that by the 2020s, average summer temperatures in New York City will increase by 2.0°F to 3.0°F compared to a 1971-2000 baseline. Heat waves will become more frequent, intense, and longer in duration. Rainfall and precipitation are expected to increase, together with another 4-8 inches of sea level rise and increased probability of coastal storms with flooding (NPCC, Climate Risk Information, 2013).
Weather and Health
Even without long-term changes in climate, New Yorkers face weather-related risks today. Heat and humidity cause serious illness and death every summer. In fact, more Americans die from heat waves in a typical year than all other natural disasters combined, both in direct mortality from heat stress (hyperthermia, also known as heat stroke) and by way of increases in the rates of deaths from natural causes due to the exacerbation of other medical conditions. While far less common, coastal storms can also have serious consequences, including long-term mental health impacts. In 2012, Hurricane Sandy caused extensive flooding and damage in New York City, and resulted in at least 44 deaths.
Power outages can also occur during heat waves and coastal storms. Potential health impacts include gastrointestinal illness due to food spoilage, carbon monoxide poisoning from the use of generators, and illness and death among the medically frail due to mechanical equipment failure, and inability to obtain medical care, or extreme exertion (such as having to climb many flights of stairs in high-rise buildings due to elevator outages). Lack of air conditioning or home heat may also result in heat- and cold-related illnesses.
About the Data and Indicators
The Tracking Portal provides data on counts and rates of death, hospital admission, and treatment in an emergency department for heat stress. While these cases can be readily identified with hyperthermia listed as a diagnosis or cause of death, it is important to note that they reflect only a portion of the overall health impact of extreme heat. Increases in natural-cause hospitalization and death rates during heat waves (from cardiovascular disease, diabetes, and renal disease for example) may be estimated using statistical methods.
The Tracking Portal also provides counts and rates of hospital admission and treatment in an emergency department for cold stress. As with heat stress data, is important to note that cold stress data reflect only a portion of the overall health impact, and does not account for potential increases in hospital visits for other conditions that can be exacerbated by cold exposure (such as cardiovascular and respiratory disease for example).
Prevention
Air conditioning is the most important way to prevent heat stress and death on hot days.
- Those most vulnerable to heat stress include older adults and people with health conditions including cardiovascular disease, diabetes, mental illness, or cognitive impairments.
- Set air conditioners to 78°F or low-cool to provide comfort while not wasting energy.
- Check on family, friends, and neighbors at-risk and assist them in staying cool and well hydrated.
Living without heat or being outdoors in cold weather for a prolonged time can be dangerous.
- Stay indoors as much as possible. When outdoors, wear layers of warm clothing and cover exposed skin.
- If your home lacks heat, get to a warm place if you can and wear warm clothes. Report loss of heat or hot water to property managers immediately, and call 311.
- Seniors should take extra care outdoors to avoid slips and falls from icy conditions.
- Protect yourself and your family from carbon monoxide (CO) poisoning:
- Make sure your home has a working smoke alarm and CO detector.
- If a CO detector goes off in your home, immediately open a nearby window, go outside for fresh air and call 911.
- NEVER run a vehicle inside a garage or against a snowbank. Clear snow from your car’s tailpipe before running the engine.
- Check on neighbors, friends, and relatives.
For more information on preparing for weather hazards– including heat, cold, coastal storms and power outages – visit the DOHMH extreme weather website.
Key Messages
About 80% of heat stroke victims in New York City are overcome by excessively hot conditions in their own homes, as indoor temperatures in the urban environment may be even hotter than outdoor temperatures when an air conditioner is not available or not in use. Although heat-related mortality rates are lower than in historical periods before electricity and air conditioning, it is possible that rates may rise as a result of climate change, depending on the extent of adaptation. In 2011, a Health Department survey estimated that 25% of New York City adults still do not have or rarely use air conditioning during hot summer weather, many of whom may be at increased risk of heat stress due to age or poor health.
People most likely to be exposed to dangerous cold include those who lack shelter, work outdoors and/or live in homes with malfunctioning or inadequate heat. Seniors, infants, people with chronic cardiovascular or lung conditions, people using alcohol or drugs and people with cognitive impairments or mental health conditions are at increased risk.


{% extends 'index.html' %} {% block title %}Page Not Found{% endblock %} {% block content %}
Either URL does not exists or Feature extraction cannot be completed


| Methods |
public
|
__construct(Closure $driver, string $prefix = '')
Construct Database connection.
Construct Database connection.
|
#
|
abstract
protected
|
getExpressionLanguage(): Language
Boot driver specific expression language.
Boot driver specific expression language.
Implemented by
|
#
|
public
|
open(string|QueryBuilder $table, string|null $alias = null): QueryBuilder
Open a query to a specified table (short for query->table())
Open a query to a specified table (short for query->table())
Throws
Implements
|
#
|
public
|
query(): QueryBuilder
Return a new query builder.
Return a new query builder.
Implements
|
#
|
public
|
language(): Language
Return the drivers expression language.
Return the drivers expression language.
|
#
|
public
|
getPDO(): PDO
Get the PDO instance.
|
#
|
public
|
setPDO(PDO|null $pdo): $this
Set a PDO instance to the connection.
Set a PDO instance to the connection.
Implements
|
#
|
public
|
disconnect(): $this
Disconnect connection.
|
#
|
public
|
reconnect(): $this
Attempt to reconnect.
|
#
|
public
|
getDriver(): Closure|IDatabaseDriver
Get the Database connector driver.
Get the Database connector driver.
|
#
|
public
|
setDriver(Closure|IDatabaseDriver $driver): $this
Set the Database connector driver.
Set the Database connector driver.
|
#
|
public
|
setFetchMode(int $mode, string|object|null $class = null): $this
Set the fetch mode for PDO.
Set the fetch mode for PDO.
Implements
|
#
|
public
|
getFetchMode(): array
Get the PDO fetch mode.
|
#
|
protected
|
prependPrefixTo(Language $language): Language
Prepend the prefix to the expression language.
Prepend the prefix to the expression language.
|
#
|
protected
|
buildQueryDispatcher(): QueryDispatcher
Build the query dispatcher.
Build the query dispatcher.
|
#
|
protected
|
createQueryBuilder(): QueryBuilder
Attach the dispatcher and the expression factory to a new query builder.
Attach the dispatcher and the expression factory to a new query builder.
|
#
|
public
|
setEventDispatcher(EventHandler $event): Connection
Set the event dispatcher on the query dispatcher.
Set the event dispatcher on the query dispatcher.
|
#
|
public
|
getDispatcher(): QueryDispatcher
Get the query dispatcher.
Get the query dispatcher.
Implements
|
#
|
public
|
__call(string $method, array $parameters): mixed
Forward calls into the query dispatcher.
Forward calls into the query dispatcher.
|
#
|


| Superman and the Buildings of Dahaka |
NSU Cybernauts National Programming Contest 2019 |
Persistent Li Chao Segment Tree |
toph.co |
2 |
1 |
| Poga The War Stopper |
#StopTheWar Programming Contest |
Convex Hull Trick optimization of DP |
toph.co |
1 |
0 |
| Living on a Prayer |
LU CSE Carnival 2019 Inter University Programming Contest |
Palindromic Tree, Hashing |
toph.co |
5 |
4 |
| Admission Gift |
NSU Cybernauts National Programming Contest 2019 |
Interactive, Number Theory |
toph.co |
33 |
30 |
| Zer VS EEE |
National Girls' Programming Contest 2019 |
Max Flow with edge demands |
toph.co |
2 |
0 |
| Birthday of Aliens |
VU CSE Tech Fest 2019 Programming Contest |
Chinese Remainder Theorem, Segment Tree |
toph.co |
0 |
0 |
| Tree Business |
SCB-PA Inter School and College Programming Contest 2019 Preliminary |
Number Theory, Matrix Exponentiation |
toph.co |
28 |
0 |
| The Archipelago of Mirpur |
National Girls' Programming Contest 2019 Preliminary |
Disjoint Set Union, Offline Processing |
toph.co |
2 |
0 |
| I Am Good 2.0 |
Criterion 2020 Round 3 |
Number Theory, Divide And Conquer |
toph.co |
15 |
3 |
| I Am Good |
Criterion 2020 Round 1 |
Number Theory |
toph.co |
15 |
1 |
| Decimation Operation |
IIUCPC 2020 Selection Contest |
Trie |
toph.co |
1 |
0 |
| Zoba the Misleader |
#HelpFloodVictims Programming Contest 2019 |
Palindromic Tree, Aho-Corasick |
toph.co |
2 |
0 |
| Thor vs Superman vs Goku |
RUET জ্ঞানJam 2019 |
Matrix Exponentiation |
toph.co |
0 |
0 |
| La Casa De POI |
RUET জ্ঞানJam 2019 |
Ad Hoc |
toph.co |
72 |
35 |
| Trust me, this is stopper! |
RUET জ্ঞানJam 2019 |
Full Dynamic Connectivity of graph, Dynamic DSU |
toph.co |
2 |
0 |
| Shefin's Rose Tree |
February CodeBlast 2019 |
Mo on Tree |
HackerRank |
1 |
0 |
| Valentine List |
February CodeBlast 2019 |
Segment Tree, Basic Combinatorics |
HackerRank |
5 |
1 |
| TAMADOM - PKP Knows Nothing 2 |
Comilla University Beginner Contest - 2018 |
Combinatorics, Big Modular Multiplication |
SPOJ |
1 |
1 |
| Hasinur Is Giving Treat |
RUET CodeSmash 2018 |
Number Theory |
toph.co |
20 |
0 |
| A Session At UITS |
Ahmed Zobayer Programming Contest - 2018 |
SQRT Decomposition, Segment Tree |
HackerRank |
1 |
0 |
| PKP Knows Nothing |
RUET CodeSmash 2017 |
Ad Hoc, Binary Search |
HackerRank |
3 |
0 |
| Blackhole and Food |
A Tribute to Dennis Ritchie Contest |
Merge Sort Tree, Binary Search |
toph.co |
13 |
2 |
| Chocolate Merge |
National High School Programming Contest 2017 (Rajshahi Regional - Junior Division) |
Ad Hoc, Sorting |
HackerRank |
1 |
0 |


open fun deleteSubcommands(): Unit
Removes all subcommands associated to this command. This clears the subCommandMap map and subCommands set.


Success, your photo has been uploaded!
Return


A Civil Action
A Review
By Jeremiah Rickert
Starring: John Travolta, Robert Duvall, Kathleen Quinlan, William H. Macy, Tony Shaloub, John Lithgow.
Directed by: Steven Zaillian
Synopsis:
Successful and arrogant lawyer Jan Schlichtmann (John Travolta) seems poised to refuse to pursue the case of eight families, whose children died apparently as the result of pollution, only to discover that the culprits' companies are owned by a multi-million dollar conglomerate. Seeing dollar signs before his eyes, he puts himself and his law firm wholeheartedly into the task. He is so convinced he will win that he eventually bankrupts his firm, and his partners seeking a gigantic settlement. His motivations and ego are put to the test by a grizzled, but cunning lawyer played by five-time oscar-nominated actor Robert Duvall (Godfather, Deep Impact, The Apostle), and by the parents of the dead children, one of whom, played by Kathleen Quinlan (Apolla 13, Breakdown) only wants an apology.
Our first scene with Jan shows him representing the case of a man who will have to live his life in a wheelchair. One by one he helps the crippled man do all of the simple things that most people take for granted; drink some water, wipe his mouth, all in plain sight of the jury. This act convinces the defense team to settle for 25 million. When the judge in the latter case, played by John Lithgow (3rd Rock from the Sun, Buckaroo Banzai) grants the defense motion to keep the victims' parents from testifying, Schlichtmann's biggest weapon is taken away from him, he's forced to rely on facts, and thus begins his desperation to win this case.
The film would have you believe that Schlichtmann starts out as an ambulance chasing over-paid court-room pirate, and by the end, he is a humbled by his defeat and now understands the moral side of his job. However, I was not convinced that he goes through such a change. Perhaps it is just Travolta's natural aura, but I found myself unable to subscribe to his humility. In a way, he is becoming a sort of Kevin Costner-esque actor. No matter what part he is playing, you can't seem to ignore the fact that its Kevin Costner. Sometimes this is all right (Untouchables) and sometimes this is inane (Robin Hood: Prince of Thieves). Travolta as a drugged out hit man (Pulp Fiction) worked for me, Travolta as (take your pick) a super-cop (Face Off) and a Lawyer (A Civil Action) just doesn't allow him to quash the image that is naturally associated with the name John Travolta.
Robert Duvall plays Jerome Facher, the wizend lawyer who defends one of the MNC's. He is also a professor of law and there are snippets of him teaching his class all of the courtroom "don'ts" just as Jan is committing them. Duvall seems to fall into what amounts to a "Matlock" sort of crotchety-old-wisdom routine. His talents seemed a bit wasted. Having recently seen the Apostle, I kept waiting for him to show some of that intensity, but alas, it never came.
There is a top-notch supporting cast that doesn't have much to do other than to be a Greek chorus of warnings to Jan and his ego-crusade. William H. Macy (Fargo, Air Force One) and Tony Shaloub (Wings, The Siege) are Jan's partners and they incessantly remind him of the realities of what he is doing, but he thinks he is indestructable, and in that obvious hubris, he finds his downfall. The talented actors are as wasted here as Robert Duvall was.
Casting choices aside, the script doesn't do much to convince the viewer that Jan has gone through some change either. Adapted for the screen by director Steven Zaillian from the book by Johnathan Harr, it is quite ambiguous whether Jan's motivation is justice or the replenshing of his depleted bank accounts. Is he fighting for those grieving parents, or his he fighting for his survival as a lawyer? that question is never clearly answered.
The advertising associated with this film misleads you into thinking he goes through this change of heart, where dollar signs don't matter as much as redeemed lives, but when you see the clips from the trailer in context, that message simply isn't there.
Zaillian who also directed last year's Amistad, again crafts a film that wants to be about a larger issue, one that is settled finally in a courtroom, but doesn't take place exclusively as other films in the genre have. In this post-OJ trail culture, people aren't necessarily thrilled by courtroom antics anymore, especially ones that in the wake of the hours and hours of procedure, paperwork, cross-examination, and redirects of that trial, make the Hollywood version seem, well, glamorized, more like a gladiator fight than the esteemed pinnacle of culture that our system is.
This film avoids the courtroom for the most part, focusing on the whirlwind surrounding the trial. For that I believe that Zaillian deserves some kudos. The film is a little on the long side, in pace if not minutes, padded with far too many gratuitous shots of either running water or glasses of water, or people sipping water. I wanted to shout "all right we get the picture!" but managed to restrain myself.
The film has an epilogue of the now virtually penniless Jan Schlichtmann soliciting some mystery group to take up the case of the poisoned water and what seemed like five minutes of text on the screen telling us what all happened in the end, something I won't spoil here. Twice, however, just when you think the film is over, it keeps going and going, finally clocking in a just under 2hrs...but what long hours they seemed, and even a Hollywood ending would have been better than reading paragraphs of exposition.
Overall, I found the flim to underlit and overlong, with fairly weakly drawn characters and an overabundance of water metaphors. Of the $4 economy time that I paid for this film, it was worth $1.
(c) Jeremiah Rickert 1999
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


--- layout: page title: "About" description: "This is what I do." header-img: "img/about-bg.jpg" ---
In order to be irreplaceable one must always be different.
Few things are impossible in themselves; and it is often for want of will, rather than of means, that man fails to succeed.
To believe with certainty, we must begin with doubting.


To try a code, enter it into the field corresponding to your team
For the Cryusade:
For the Eristocracy:
For the Chronspiracy:


By Bill Cox<EMAIL_ADDRESS>Intuitively, a Time-Aliased-Hann window is a sound sample that starts playing in the middle, and slowly fades to zero, while at the same time we start playing samples from beginning and slowly fade in. It is a waveform that smoothly feeds into itself. If the signal is a single pitch period of a harmonic signal, like a voice or a single note of an instrument, then this signal can be played over and over, and will sound like the note has been extended indefinitely, without noticeable distortion. This exact algorithm is commonly used in time-domain techniques used in the TD-PSOLA class of algorithms. I wrote a Linux package called "sonic", which is used for speeding up speech, and which is particularly good at low distortion for speeds of 2X and up. It's basically PICOLA, but with a new algorithm that kicks in at 2X and above. Such an algorithm is needed for improving existing text-to-speech engines to provide very high speed speech for blind speed listeners. After trying various FFT and TD-PSOLA based methods, I found that PICOLA produces far less distortion in sped up speech, even compared to the popular WSOLA algorithm, and so I investigated why that is so. The answer seems to be that the pitch synchronous overlap-add step produces no spectral distortion of harmonics, and little distortion of everything else. So, I felt it might work well as a pre-process to an FFT, especially if the FFT frames are single pitch periods. I was amazed with the results.
DSP algorithms developers often use window functions such as the popular Hamming window to reduce spectral leakage in their FFTs.
So far as I know, none of this is new, with the possible exception of applying Time-Aliased-Hann pitch synchronously to speech. A response on comp.dsp was so informative, I think its worth reposting as-is here:
It's always nice to see someone new rediscover the advantages of the independence of window size from DFT size. The approach is not new. It can be found in a number of guises.
It has long been used as one form of FFT based polyphase filter. For examples: "polyphase DFT filterbank", "PolyDFT" and "PFT" as used in places such as: http://www.rfel.com/download/W03006-Comparison_of_FFT_and_PolyDFT_Transient= _Response.pdf
Fred Harris presents the concept in the 'Time Domain Signal Processing with the DFT' chapter in Doug Elliot=92s 1987 book Handbook of Digital Signal Processing. He considers the name "data-wrapping" but considers that too close to the context of "wrapping" in "phase unwrapping" and suggests "data folding" instead.
A couple more terms approaching yours are "weighted overlap-add structure" or "windowed-presum FFT" from "Understanding Digital Signal Processing, Second Edition" by Richard G. Lyons as explained in: http://www.eetimes.com/design/embedded/4007611/DSP-Tricks-Building-a-practi= cal-spectrum-analyzer
The most complete exposition on it that I have found comes in a 300+ page opus: TIME ALIASING METHODS OF SPECTRUM ESTIMATION by Jason F Dahl A dissertation submitted to the faculty of Brigham Young University, Dept. of Mechanical Engineering, April 2003. 305pp Available at: http://contentdm.lib.byu.edu/ETD/image/etd157.pdf
I personally prefer Dahl's "time aliasing" as having the least conflict with other uses of the component words.
This literature provides comparisons to other windows and window design methods.
Dale B. Dalrymple
Having now read these papers, and Jason Dahl's dissertation, I feel I have a much better understanding of time-aliased techniques and their applications. The pitch synchronous time-aliased FFT with a low leakage window like a Hanning window is excellent for speech analysis.
Applying a Time-Aliased-Hann window is done by first applying a Hann window to two adjacent FFT input frames, and then adding the first frame to the second. This second step is described in various "time aliasing" techniques for DFTs, and in general is not restricted to two frames, but can be any number of input frames. However, for pitch synchronous speech processing, exactly two pitch periods works quite well. More frames make the time resolution too poor. Given two frames worth of input samples, x(n), n = 0 .. 2*N - 1, we compute the windowed samples x'(n), n = 0 .. N - 1:
w(n) = (1 - cos(pi*n/N))/2, n = 0 .. 2*N - 1.
x'(n) = w(n)*x(n) + w(n + N)*x(n + N), n = 0 .. N - 1
Here is a plot of worst-case spectral noise for Hamming windows vs Time-Aliased-Hann windows, at about 1KHz:
This plot was created using time_aliased_hann.py and hamming_py. This plot basically shows that we should not use Hamming windows for speech spectrograms, as is commonly done. The spectral noise is too high for high dynamic range spectrograms like these. Hann windows work better. The Time-Aliased-Hann window is exactly the same as a normal FFT response of a Hann-windowed sample of 2 pitch periods, but we drop every other frequency bin, keeping only harmonics of the fundamental pitch.
Let's see an example. In this case, we're using a frame size of 500. The input signal is a worst case for Time-Aliased-Hann: 5.75 sine wave cycles per frame, neither harmonic, or anti-harmonic, but exactly in between. Here's two frames worth of input data:
We apply a Hann window function to two frames, or 1000 samples. Here's what a Hann function looks like:
We multiply the Hann function onto the input signal to get:
Finally, we take the first 500 samples and add them to the second 500 samples to get our 500 sample Time-Aliased-Hann result:
Highly harmonic signals like voiced speech have repeating wave forms that slowly evolve over time. By detecting two similar adjacent pitch periods, with an algorithm like AMDF, we can significantly reduce noise in the FFT. One property of Time-Aliased-Hann FFTs is that 100% of all harmonic energy goes to the correct FFT bin, with no leakage. This makes it especially good for analyzing speech, since voiced speech is highly harmonic.
Here is a spectrogram of the phrase With the pro golfer, generated with the voxin TTS engine:
Here is the same sound analyzed using Praat, with a short-time FFT using Hamming windows.
An important benefit of the pitch synchronous Time-Aliased-Hann technique is computational efficiency. The Praat spectrogram was made using 1000 500-sample FFTs. The Time-Aliased-Hann version was done with only 163 FFTs, of an average of 98 points each. Since frame size vary, and are short, result frames were scaled to 200 points using linear interpolation. This is roughly a 40X speed improvement, assuming FFTs are O(N*log2(N)). Also, the artifacts created by pitch periods entering and leaving the Hamming window are gone. Notice the vertical and horizontal lines in the spectrogram above. These are essentially noise that make it harder to match spectrograms for speech recognition. The better spectral resolution and low noise makes matching spectrograms a reasonable approach to speech recognition.
The Time-Aliased technique can be applied with any window function, not just Hann. However, I find window functions with the following property give better results:
w(n) + w(n + N) = constant, n = 0 .. N - 1
This is a bit more restrictive than the "weak COLA" constraint. This property insures that all pure harmonics of the fundamental pitch are exactly represented in the correct frequency bin with no leakage. Other window functions that have this property are Triangle and Blackman windows. Time-Aliased-Triangle has considerably more spectral noise, but still far less than traditional Triangle windows. Time-Aliased-Blackman windows have lower spectral leakage than Time-Aliased-Hann, with just a bit more complexity.
The same voxin sample above generates this spectrogram with Time-Aliased-Blackman. It seems about the same to me.
These three spectrograms are of a time-varying sine wave, showing spectral leakage for Time-Aliased-Triangle, Time-Aliased-Hann, and Time-Aliased-Blackman. They are generated with 100 point Time-Aliased-FFTs, and plotted with 70 DB dynamic range (0 is 70 DB below the peak value). As above, results are scaled to 200 points with linear interpolation. The frequency varies from 100 Hz to 4 KHz over a 2 second time frame.
Time-Aliased-Triangle
Time-Aliased-Hann
Time-Aliased-Blackman
Note that these signals are not harmonics of the frame rate. If they had been, there would be no leakage at all.
For comparison, here's the same signal analyzed the same way, but with a traditional rectangle window in the first image, a traditional Hann window in the second, and a traditional Hamming window in the third:
Traditional rectangle window
Traditional Hann window
Traditional Hamming window
For both speech synthesis and recognition, common practice is to use LPC (Linear Predictive Coding) based analysis rather than directly matching FFTs. LPC is essentially a model order reduction method, and is lossy. Popular TTS engines based on the MBROLA algorithm family all sound "tinny", though I have come to think of this distortion as "LPC-ish". Speech recognition algorithms often reduce a spectrogram to 25 "Mel scale" frequency bins, losing much of the clarity of the signal. In both cases, computational efficiency is a key driver. With the improved clarity and computational efficiency of Time-Aliased-Hann FFTs, it should be possible to significantly reduce distortion in TTS engines, while improving accuracy in speech recognition engines.
Let the input signal x be a sine wave defined as:
x(n) = cos(2*pi*f*n/fs + p), n = 0 .. 2*N - 1,
where f the frequency, fs is the sample rate, p is the phase, and and N is the window length. We're interested in harmonics, which occur at frequencies:
f = m*fs/N, m an integer >= 1
Rewriting x(n):
x(n) = cos(2*pi*(m*fs/N)*n/fs + p)
= cos(2*pi*m*n/N + p)
The windowed frame, x'(n), is:
w(n) = (1 - cos(pi*n/N))/2, n = 0 .. 2*N - 1.
x'(n) = (1 - cos(pi*n/N))*x(n)/2 + (1 - cos(pi*(n + N)/N))*x(n + N)/2
= (1 - cos(pi*n/N))*cos(2*pi*m*n/N + p)/2 +
(1 - cos(pi*(n + N)/N))*cos(2*pi*m*(n + N)/N + p)/2
= (cos(2*pi*m*n/N + p) + cos(2*pi*m*(n + N)/N + p))/2
- (cos(pi*n/N)*cos(2*pi*m*n/N + p) + cos(pi*(n + N)/N)*cos(2*pi*m*(n + N)/N + p))/2
= (cos(2*pi*m*n/N + p) + cos(2*pi*m*n/N + p + 2*pi*m))/2
- (cos(pi*n/N)*cos(2*pi*m*n/N + p) + cos(pi*(n + N)/N)*cos(2*pi*m*(n + N)/N + p))/2
Since cos(a)*cos(b) = cos(a + b)/2 + cos(a - b)/2,
x'(n) = (cos(2*pi*m*n/N + p) + cos(2*pi*m*n/N + p + 2*pi*m))/2
- (cos(2*pi*m*n/N + p + pi*n/N) + cos(2*pi*m*n/N + p - pi*n/N)
+ cos(2*pi*m*(n + N)/N + p + pi*(n + N)/N)
+ cos(2*pi*m*(n + N)/N + p - pi*(n + N)/N))/4
x'(n) = (cos(2*pi*m*n/N + p) + cos(2*pi*m*n/N + p + 2*pi*m))/2
- (cos((n/N)*(2*pi*m + pi) + p) + cos((n/N)*(2*pi*m - pi) + p)
+ cos((n/N)*(2*pi*m + pi) + p + 2*pi*m + pi)
+ cos((n/N)*(2*pi*m - pi) + p + 2*pi*m - pi))/4
Using cos(a +/- pi) = -cos(a):
x'(n) = (cos(2*pi*m*n/N + p) + cos(2*pi*m*n/N + p + 2*pi*m))/2
- (cos((n/N)*(2*pi*m + pi) + p) + cos((n/N)*(2*pi*m - pi) + p)
- cos((n/N)*(2*pi*m + pi) + p + 2*pi*m)
- cos((n/N)*(2*pi*m - pi) + p + 2*pi*m))/4
Now, assuming m is an integer >=1, then cos(a + 2pim) = cos(a):
x'(n) = (cos(2*pi*m*n/N + p) + cos(2*pi*m*n/N + p))/2
- (cos((n/N)*(2*pi*m + pi) + p) + cos((n/N)*(2*pi*m - pi) + p)
- cos((n/N)*(2*pi*m + pi) + p)
- cos((n/N)*(2*pi*m - pi) + p))/4
= cos(2*pi*m*n/N + p)
= x(n)
Thus, x'(n) = x(n), and as with a rectangle window, the FFT will have only one non-zero value, at m. So, harmonic energy does not leak at all.
For anti-harmonics, at frequencies where m is a positive integer + 1/2:
x'(n) = (cos(2*pi*m*n/N + p) + cos(2*pi*m*n/N + p + pi))/2
- (cos((n/N)*(2*pi*m + pi) + p) + cos((n/N)*(2*pi*m - pi) + p)
- cos((n/N)*(2*pi*m + pi) + p + pi)
- cos((n/N)*(2*pi*m - pi) + p + pi))/4
x'(n) = (cos(2*pi*m*n/N + p) - cos(2*pi*m*n/N + p))/2
- (cos((n/N)*(2*pi*m + pi) + p) + cos((n/N)*(2*pi*m - pi) + p)
+ cos((n/N)*(2*pi*m + pi) + p)
+ cos((n/N)*(2*pi*m - pi) + p))/4
x'(n) = - (cos((n/N)*(2*pi*m + pi) + p) + cos((n/N)*(2*pi*m - pi) + p)/2
This is 1/2 times a sine wave in the bin before f, plus 1/2 times a sine wave in the bin after f. Thus, anti-harmonics also have no leakage.


Reports using PsiElement.getText when comparing with a string and suggests replacing it with PsiElement.textMatches.
PsiElement.getText
PsiElement.textMatches
Example:
psiElement.getText == "null"
After the quick-fix is applied:
psiElement.textMatches("null")