text
stringlengths
1
1.04M
language
stringclasses
25 values
{"type":"Feature","id":"node/2510324286","properties":{"addr:city":"Göllnitz","addr:country":"DE","addr:housenumber":"1","addr:postcode":"04626","addr:street":"Im Rittergut","addr:suburb":"Schwanditz","contact:email":"<EMAIL>","contact:facebook":"https://www.facebook.com/pages/Rittergut-Schwanditz","contact:fax":"+49 3447 315311","contact:mobile":"+49 172 9005150","contact:phone":"+49 3447 315311","contact:website":"http://www.rittergut-schwanditz.de/hofladen","name":"<NAME>","opening_hours":"Mo-We,Fr 15:00-18:00; Sa 09:00-12:00; Th,Su,PH off","operator":"<NAME>","shop":"farm","wheelchair":"no","id":"node/2510324286"},"geometry":{"type":"Point","coordinates":[12.3380188,50.9543673]}}
json
<gh_stars>0 # Databricks notebook source # MAGIC %md-sandbox # MAGIC # MAGIC <div style="text-align: center; line-height: 0; padding-top: 9px;"> # MAGIC <img src="https://databricks.com/wp-content/uploads/2018/03/db-academy-rgb-1200px.png" alt="Databricks Learning" style="width: 600px"> # MAGIC </div> # COMMAND ---------- # MAGIC %md # Databricks Best Practices # MAGIC # MAGIC In this notebook, we will explore a wide array of best practices for working with Databricks. # MAGIC # MAGIC ## ![Spark Logo Tiny](https://files.training.databricks.com/images/105/logo_spark_tiny.png) In this lesson you:<br> # MAGIC - Explore a general framework for debugging slow running jobs # MAGIC - Identify the security implications of various data access paradigms # MAGIC - Determine various cluster configuration issues including machine types, libraries, and jobs # MAGIC - Integrate Databricks notebooks and jobs with version control and the CLI # COMMAND ---------- # MAGIC %md ## Slow Running Jobs # MAGIC # MAGIC The most common issues with slow running jobs are:<br><br> # MAGIC # MAGIC - **`Spill`**: Data is exhausting the cluster's memory and is spilling onto disk. Resolution: a cluster with more memory resources # MAGIC - **`Shuffle`**: Large amounts of data are being transferred across the cluster. Resolution: optimize joins or refactor code to avoid shuffles # MAGIC - **`Skew/Stragglers`**: Partitioned data (in files or in memory) is skewed causing the "curse of the last reducer" where some partitions take longer to run. Resolution: repartition to a multiple of the available cores or use skew hints # MAGIC - **`Small/Large Files`**: Too many small files are exhausting cluster resources since each file read needs its own thread or few large files are causing unused threads. Resolution: rewrite data in a more optimized way or perform Delta file compaction # MAGIC # MAGIC Your debugging toolkit:<br><br> # MAGIC # MAGIC - Ganglia for CPU, network, and memory resources at a cluster or node level # MAGIC - Spark UI for most everything else (especially the storage and executor tabs) # MAGIC - Driver or worker logs for errors (especially with background processes) # MAGIC - Notebook tab of the clusters section to see if the intern is hogging your cluster again # COMMAND ---------- # MAGIC %md ## Data Access and Security # MAGIC # MAGIC A few notes on data access:<br><br> # MAGIC # MAGIC * <a href="https://docs.databricks.com/data/databricks-file-system.html#mount-storage" target="_blank">Mount data for easy access</a> # MAGIC * <a href="https://docs.databricks.com/dev-tools/cli/secrets-cli.html#secrets-cli" target="_blank">Use secrets to secure credentials</a> (this keeps credentials out of the code) # MAGIC * Credential passthrough works in <a href="https://docs.databricks.com/dev-tools/cli/secrets-cli.html#secrets-cli" target="_blank">AWS</a> and <a href="https://docs.microsoft.com/en-us/azure/databricks/security/credential-passthrough/adls-passthrough" target="_blank">Azure</a> # COMMAND ---------- # MAGIC %md ## Cluster Configuration, Libraries, and Jobs # MAGIC # MAGIC Cluster types are:<br><br> # MAGIC # MAGIC - Memory optimized (with or without <a href="https://docs.databricks.com/delta/optimizations/delta-cache.html" target="_blank">Delta Cache Acceleration</a> # MAGIC - Compute optimized # MAGIC - Storage optimized # MAGIC - GPU accelerated # MAGIC - General Purpose # MAGIC # MAGIC General rules of thumb:<br><br> # MAGIC # MAGIC - Smaller clusters of larger machine types for machine learning # MAGIC - One cluster per production workload # MAGIC - Don't share clusters for ML training (even in development) # MAGIC - <a href="https://docs.databricks.com/clusters/configure.html" target="_blank">See the docs for more specifics</a> # COMMAND ---------- # MAGIC %md Library installation best practices:<br><br> # MAGIC # MAGIC - <a href="https://docs.databricks.com/libraries/notebooks-python-libraries.html" target="_blank">Notebook-scoped Python libraries</a> ensure users on same cluster can have different libraries. Also good for saving notebooks with their library dependencies # MAGIC - <a href="https://docs.databricks.com/clusters/init-scripts.html" target="_blank">Init scripts</a> ensure that code is ran before the JVM starts (good for certain libraries or environment configuration) # MAGIC - Some configuration variables need to be set on cluster start # COMMAND ---------- # MAGIC %md Jobs best practices:<br><br> # MAGIC # MAGIC - Use <a href="https://docs.databricks.com/notebooks/notebook-workflows.html" target="_blank">notebook workflows</a> # MAGIC - <a href="https://docs.databricks.com/notebooks/widgets.html" target="_blank">Widgets</a> work for parameter passing # MAGIC - You can also run jars and wheels # MAGIC - Use the CLI for orchestration tools (e.g. Airflow) # MAGIC - <a href="https://docs.databricks.com/jobs.html" target="_blank">See the docs for more specifics</a> # MAGIC - Always specify a timeout interval to prevent infinitely running jobs # COMMAND ---------- # MAGIC %md ## CLI and Version Control # MAGIC # MAGIC The <a href="https://github.com/databricks/databricks-cli" target="_blank">Databricks CLI</a>:<br><br> # MAGIC # MAGIC * Programmatically export out all your notebooks to check into github # MAGIC * Can also import/export data, execute jobs, create clusters, and perform most other Workspace tasks # MAGIC # MAGIC Git integration can be accomplished in a few ways:<br><br> # MAGIC # MAGIC * Use the CLI to import/export notebooks and check into git manually # MAGIC * <a href="https://docs.databricks.com/notebooks/github-version-control.html" target="_blank">Use the built-in git integration</a> # MAGIC * <a href="https://www.youtube.com/watch?v=HsfMmBfQtvI" target="_blank">Use the next generation workspace for alternative project integration</a> # COMMAND ---------- # MAGIC %md Time permitting: exploring the <a href="https://docs.databricks.com/administration-guide/index.html" target="_blank">admin console!</a> # COMMAND ---------- # MAGIC %md-sandbox # MAGIC &copy; 2022 Databricks, Inc. All rights reserved.<br/> # MAGIC Apache, Apache Spark, Spark and the Spark logo are trademarks of the <a href="https://www.apache.org/">Apache Software Foundation</a>.<br/> # MAGIC <br/> # MAGIC <a href="https://databricks.com/privacy-policy">Privacy Policy</a> | <a href="https://databricks.com/terms-of-use">Terms of Use</a> | <a href="https://help.databricks.com/">Support</a>
python
/** * @file shape变换相关命令 * @author mengke01(<EMAIL>) */ define( function (require) { var pathsUtil = require('graphics/pathsUtil'); /** * 旋转图形 * * @param {Array} shapes 图形集合 * @param {number} angle 弧度 * @return {boolean} `false`或者`undefined` */ function rotate(shapes, angle) { if (!angle) { return false; } var paths = shapes.map(function (shape) { return shape.points; }); pathsUtil.rotate(paths, angle); } var support = { /** * 회전하기 (angle 만큼) * * @param {Array} shapes 图形集合 * @param {number} angle 弧度 * @return {boolean} `false`或者`undefined` */ rotate: function (shapes, angle) { if (!shapes || !shapes.length) { return false; } var ret = rotate(shapes, angle); if (false !== ret) { this.fontLayer.refresh(); this.refreshSelected(shapes); } return ret; }, /** * 왼쪽으로 회전 (90도) * * @param {Array} shapes 图形集合 * @return {boolean} `false`或者`undefined` */ rotateleft: function (shapes) { shapes = shapes || (this.currentGroup && this.currentGroup.shapes); return support.rotate.call(this, shapes, -Math.PI / 2); }, /** * 오른쪽으로 회전 (90도) * * @param {Array} shapes 图形集合 * @return {boolean} `false`或者`undefined` */ rotateright: function (shapes) { shapes = shapes || (this.currentGroup && this.currentGroup.shapes); return support.rotate.call(this, shapes, Math.PI / 2); }, /** * 세로 대칭 이동 * * @param {Array} shapes 图形集合 * @return {boolean} `false`或者`undefined` */ flipshapes: function (shapes) { shapes = shapes || (this.currentGroup && this.currentGroup.shapes); if (!shapes || !shapes.length) { return false; } pathsUtil.flip(shapes.map(function (shape) { return shape.points; })); this.fontLayer.refresh(); this.refreshSelected(shapes); }, /** * 가로 대칭 이동 * * @param {Array} shapes 图形集合 * @return {boolean} `false`或者`undefined` */ mirrorshapes: function (shapes) { shapes = shapes || (this.currentGroup && this.currentGroup.shapes); if (!shapes || !shapes.length) { return false; } pathsUtil.mirror(shapes.map(function (shape) { return shape.points; })); this.fontLayer.refresh(); this.refreshSelected(shapes); } }; return support; } );
javascript
The Telangana Pradesh Congress Committee(TPCC) chief process, which went through several twists and turns, ended in the favour of firebrand leader Malkajgiri Lok Sabha member Revanth Reddy. The Congress high command had appointed Revanth Reddy as the TPCC chief. This made the other aspirants of the post furious at Revanth Reddy and the Congress leadership. Stressing that Revanth Reddy is a newcomer compared to the senior Congress leaders and he was a TDP member, the other aspirants expressed their dissatisfaction over the decision. Bhongir Lok Sabha member Komatireddy Venkat Reddy even pledged that he will not enter the Gandhi Bhavan, the headquarters of the Congress party for the Telangana wing. He even alleged that Revanth Reddy had bought the position for money. CLP leader Mallu Bhatti Vikramarka, a strong contender for the post had also vented his anger against the Congress leadership opting for Revanth Reddy as the new TPCC chief. This raised doubt of whether Mallu Bhatti Vikramarka will travel with the new Telangana Congress boss to bring the lost glory to the party or not. Amid this, the duo met today. Revanth Reddy met CLP leader Mallu Bhatti Vikramarka at his residence today. Bhatti welcomed the new TPCC boss and felicitated him with a shawl and presented him with a Bouquet. This is cheer-worthy news for the Telangana party for sure. It is said that Revanth Reddy met the Congress legislative party (CLP) leader to pacify him. During the meeting, Revanth reportedly asked him to come for his oath-taking ceremony and he agreed. After being elevated as the new boss for the Telangana Congress, Revanth Reddy has been meeting the senior leaders and other aspirants of the post to pacify them. Revanth Reddy met V. Hanumantha Rao at the hospital earlier. Earlier today, Revanth Reddy met Ramoji Group Chairman Ramoji Rao. Veteran media entrepreneur Ramoji Rao conveyed his best wishes for getting appointed as the TPCC chief. Taking to Twitter, the TPCC chief Revanth Reddy shared the news that he met Ramoji Rao. "Formally met Ramoji group of companies chairman Sri Ramoji Rao garu. . . Thank you for your best wishes," Revanth Reddy tweeted.
english
{ "tags": [ "demo", "default", "geo" ], "name": "Coffee Company", "description": "Coffeehouse chain with addresses and sales (US location)", "tables": [ { "path": "demo/geo/us_locations_with_sales.csv" } ] }
json
{"URL": "https://www.wired.com/1999/11/rants-and-raves-15", "heading": "rants and raves", "subheading": "date: thu, 18 nov 1999 08:22:38 -0500 from: \u201cbradley, dave\u201d (<EMAIL>) to: <EMAIL> subject: aclu to spy on echelon according to your article, \u201caclu to spy on echelon \u201d [17.nov.1999]: \u201cthe latest in a trickle of what are often merely suggestions ofechelon-like operations is a patent issued by the us patent and trademark office to [\u2026]", "author": "wired blogs", "category": "not found", "type": "article", "timestamp": "11.19.1999 02:00 PM", "text": "date: thu, 18 nov 1999 08:22:38 -0500 from: \"<NAME>\" (<EMAIL>)to: <EMAIL>subject: aclu to spy on echelonaccording to your article, \"aclu to spy on echelon \" [17.nov.1999]:\"the latest in a trickle of what are often merely suggestions ofechelon-like operations is a patent issued by the us patent and trademark office to the us national security agency inaugust for voice-recognition technology. steinhardt pointed out that thetechnology is designed to summarize voice communications for further examination.\"i found the above rather interesting. any software created by thegovernment, to my understanding, is in the public domain. for example, whennih created a number of libraries in c++, they were freely available. therewas some debate over this, but it was determined that such software createdwith public money would be publicly available. i don't see how or why anygovernment agency could or would apply for a patent.maybe i'm missingsomething here. if the nsa wanted to keep this a secret, a patent isn't theway to go. something just doesn't add up."}
json
#include "pseudo_random_coin.h" #include <ctime> #include <iostream> PseudoRandomCoin::PseudoRandomCoin() : engine(clock() * time(nullptr)), random(true) {} PseudoRandomCoin::PseudoRandomCoin(bool random_) : engine(), random(random_) { } bool PseudoRandomCoin::flip() { if (!random) return true; uint64_t number = engine(); return number % 2; }
cpp
<reponame>tarimaha/qpay-rest-service # qpay-rest-service A flask restful API to process transactions and authenticate sale using facial recognition
markdown
Hrithik Roshan’s former wife Sussanne Khan’s sister, jewellery designer Farah Khan Ali has confirmed her divorce from ex-husband DJ Aqeel. Farah took to her Instagram handle and announced the news by posting happy pictures with Aqeel. Bollywood celebrities like Twinkle Khanna, Dia Mirza and Bhavana Pandey among others dropped red heart emoticons in the comment section. Aqeel only reposted Farah’s post without any reactions. Earlier in 2021, the couple announced their separation and had said that there was no third person involved. Farah had said, “Sometimes two people grow apart. Sometimes they outgrow each other. It has been 9 years since my relationship with my husband Aqeel changed its status as a couple to just friends and to term it simply would be to state that we are “Happily Separated”. Farah and Aqeel tied the knot on February 20, 1999, and they have two kids–Azaan and Fizaa together. Click for more updates and latest Bollywood news along with Entertainment updates. Also get latest news and top headlines from India and around the world at The Indian Express.
english
<reponame>enthought/supplement import logging from types import FunctionType, ClassType, ModuleType, BuiltinFunctionType from inspect import getargspec, getdoc from .tree import CtxNodeProvider from .common import Object, GetObjectDelegate, MethodObject, UnknownObject def dir_top(obj): try: return obj.__dict__ except AttributeError: pass try: return obj.__members__ except AttributeError: pass return [] def get_attr(obj, name): try: return obj.__dict__[name] except AttributeError: pass return getattr(obj, name) class LocationObject(Object): def __init__(self, node): self.node = node def get_location(self): return self.node[-1].lineno, self.filename class ImportedObject(GetObjectDelegate): def __init__(self, node): self.node = node def get_object(self): name, mname = self.node[1:3] module = self.project.get_module(mname, self.filename) return module[name] class FunctionObject(LocationObject): def __init__(self, node, func): LocationObject.__init__(self, node) self.func = func def __repr__(self): return '<FunctionObject %s %s>' % (self.func.__name__, getattr(self, 'filename', 'No file')) def get_scope(self): module = getattr(self, 'declared_in', None) if not module: module_name = getattr(self.func, '__module__', None) if module_name: module = self.project.get_module(module_name) if module: code = getattr(self.func, '__code__', None) if code: return module.get_scope_at(code.co_firstlineno) return None def op_call(self, args): scope = self.get_scope() if scope: return scope.function.op_call(args) else: return UnknownObject() def as_method_for(self, obj): return MethodObject(obj, self) def get_signature(self): try: return (self.func.__name__,) + getargspec(self.func) except TypeError: return None def get_docstring(self): return getdoc(self.func) class DescriptorObject(GetObjectDelegate): def __init__(self, owner, obj): self.owner = owner self.object = obj def get_object(self): if isinstance(self.owner, ClassObject): return create_object(self.owner, self.object.obj.__get__(None, self.owner.cls)) return self.object class ClassObject(LocationObject): def __init__(self, node, cls): LocationObject.__init__(self, node) self.cls = cls self._attrs = {} self.node_provider = CtxNodeProvider(self, self.node[-1]) def get_bases(self): try: return self._bases except AttributeError: pass self._bases = [] for cls in self.cls.__bases__: module = self.project.get_module(cls.__module__) try: clsobj = module[cls.__name__] except KeyError: clsobj = create_object(self, cls) self._bases.append(clsobj) return self._bases def get_names(self): try: self._names except AttributeError: self._names = set() for k in self.cls.__dict__: self._names.add(k) names = set() names.update(self._names) for cls in self.get_bases(): names.update(cls.get_names()) return names def op_call(self, args): return FakeInstanceObject(self) def __getitem__(self, name): obj = None try: obj = self._attrs[name] except KeyError: try: attr = self.cls.__dict__[name] except KeyError: for cls in self.get_bases(): try: obj = cls[name] except KeyError: pass else: break else: raise KeyError(name) else: obj = self._attrs[name] = create_object(self, attr, self.node_provider[name]) if obj: return wrap_in_descriptor(self, obj) raise KeyError(name) def get_assigned_attributes(self): try: self._assigned_attributes except AttributeError: self._assigned_attributes = {} self.get_names() for name in self._names: obj = self[name] if type(obj) == FunctionObject: scope = obj.get_scope() if not scope: continue scope.get_names() if not scope.args: continue slf = scope.get_name(scope.args[0]) self._assigned_attributes.update(slf.find_attr_assignments()) result = self._assigned_attributes.copy() for cls in self.get_bases(): for attr, value in cls.get_assigned_attributes().iteritems(): if attr not in result: result[attr] = value return result def get_signature(self): sig = self['__init__'].get_signature() if sig: name, args, vararg, kwarg, defaults = sig return name, args[1:], vararg, kwarg, defaults else: return None class FakeInstanceObject(Object): def __init__(self, class_obj): self._class = class_obj def get_names(self): return set(self._class.get_names()).union(set(self._class.get_assigned_attributes())) def __getitem__(self, name): attrs = self._class.get_assigned_attributes() if name in attrs: return wrap_in_method(self, attrs[name].get_object()) if name in self._class.get_names(): return wrap_in_method(self, self._class[name]) raise KeyError(name) class InstanceObject(LocationObject): def __init__(self, node, obj): LocationObject.__init__(self, node) self.obj = obj self._attrs = {} self.node_provider = CtxNodeProvider(self, self.node[-1]) def get_class(self): try: return self._class except AttributeError: pass cls = self.obj.__class__ module = self.project.get_module(cls.__module__) try: self._class = module[cls.__name__] except KeyError: self._class = create_object(module, cls) return self._class def get_names(self): all_names = set(self.get_class().get_names()) try: names = self._names except AttributeError: names = self._names = set() for k in dir_top(self.obj): self._names.add(k) all_names.update(names) return all_names def __getitem__(self, name): try: return self._attrs[name] except KeyError: pass if name in self.get_names() and name in self._names: obj = self._attrs[name] = create_object(self, get_attr(self.obj, name), self.node_provider[name]) return obj else: return wrap_in_method(self, self.get_class()[name]) def op_getitem(self, idx): try: idx = idx.get_value() except AttributeError: pass else: try: value = self.obj[idx] except Exception, e: logging.getLogger(__name__).error(e) else: return create_object(self, value) return UnknownObject() def get_value(self): return self.obj def is_descriptor(self): try: self.obj.__get__ return True except AttributeError: return False def wrap_in_method(obj, attr): try: return attr.as_method_for(obj) except AttributeError: return attr def wrap_in_descriptor(obj, attr): if isinstance(attr, DescriptorObject): attr.owner = obj elif not getattr(attr, 'as_method_for', None) and attr.is_descriptor(): return DescriptorObject(obj, attr) return attr MethodDescriptor = type(list.__dict__['append']) def create_object(owner, obj, node=None): node = node or ('undefined', None) obj_type = type(obj) if node[0] == 'imported': newobj = ImportedObject(node) elif obj_type == ModuleType: return owner.project.get_module(obj.__name__) elif obj_type == ClassType or issubclass(obj_type, type): newobj = ClassObject(node, obj) elif obj_type == FunctionType or obj_type == BuiltinFunctionType or obj_type == MethodDescriptor: newobj = FunctionObject(node, obj) else: newobj = InstanceObject(node, obj) newobj.project = owner.project newobj.filename = owner.filename return newobj
python
<filename>battlecode/java/bc/TurnApplication.java /* ---------------------------------------------------------------------------- * This file was automatically generated by SWIG (http://www.swig.org). * Version 3.0.8 * * Do not make changes to this file unless you know what you are doing--modify * the SWIG interface file instead. * ----------------------------------------------------------------------------- */ package bc; public class TurnApplication { private transient long swigCPtr; protected transient boolean swigCMemOwn; protected TurnApplication(long cPtr, boolean cMemoryOwn) { swigCMemOwn = cMemoryOwn; swigCPtr = cPtr; } protected static long getCPtr(TurnApplication obj) { return (obj == null) ? 0 : obj.swigCPtr; } protected void finalize() { delete(); } public synchronized void delete() { if (swigCPtr != 0) { if (swigCMemOwn) { swigCMemOwn = false; bcJNI.delete_TurnApplication(swigCPtr); } swigCPtr = 0; } } public TurnApplication() { this(bcJNI.new_TurnApplication(), true); } public void setStart_turn(StartTurnMessage value) { bcJNI.TurnApplication_start_turn_set(swigCPtr, this, StartTurnMessage.getCPtr(value), value); } public StartTurnMessage getStart_turn() { long cPtr = bcJNI.TurnApplication_start_turn_get(swigCPtr, this); return (cPtr == 0) ? null : new StartTurnMessage(cPtr, false); } public void setStart_turn_error(int value) { bcJNI.TurnApplication_start_turn_error_set(swigCPtr, this, value); } public int getStart_turn_error() { return bcJNI.TurnApplication_start_turn_error_get(swigCPtr, this); } public void setViewer(ViewerMessage value) { bcJNI.TurnApplication_viewer_set(swigCPtr, this, ViewerMessage.getCPtr(value), value); } public ViewerMessage getViewer() { long cPtr = bcJNI.TurnApplication_viewer_get(swigCPtr, this); return (cPtr == 0) ? null : new ViewerMessage(cPtr, false); } }
java
<gh_stars>1-10 import { Controller } from '@nestjs/common'; import { ApiTags } from '@nestjs/swagger'; import { ActiveService } from './active.service'; @ApiTags('ActiveController') @Controller('active') export class ActiveController { constructor(private readonly activeService: ActiveService) {} }
typescript
<reponame>shanepoland-wf/wGulp var fs = require('fs'); var path = require('path'); var gulp = require('gulp'); var chai = require('chai'); var expect = chai.expect; var join = path.join; var integration = require('../integration'); describe("vanilla mode integration tests", function() { it("should execute all vanilla tasks and generate correct output", function(done) { var helper = new Integration(gulp, "vanilla", ['copy:js']); gulp.task('example', ['build'], function() { if (fs.existsSync(join(__dirname, './modes/vanilla/build/src/Person.d.ts'))) { throw new Error("Person.d.ts was incorrectly found"); } if (fs.existsSync(join(__dirname, './modes/vanilla/build/src/Person.js'))) { throw new Error("Person.js was incorrectly found"); } var build = "./modes/vanilla/build/src/"; var fixtures = "./modes/vanilla/fixtures/"; var actualFile = fs.readFileSync(join(__dirname, build + "pie.js"), 'utf8'); var expectedFile = fs.readFileSync(join(__dirname, fixtures + "pie.js"), 'utf8'); expect(actualFile).to.equal(expectedFile); done(); }); gulp.start(['example']); }); });
javascript
// Code generated by go-swagger; DO NOT EDIT. package dynatrace // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "github.com/go-openapi/errors" strfmt "github.com/go-openapi/strfmt" "github.com/go-openapi/swag" ) // SymbolFile symbol file // swagger:model SymbolFile type SymbolFile struct { // The appId, the app version and the bundle id which uniquely identify the app AppID *AppIdentifier `json:"appId,omitempty"` // The name of the application this file belongs to ApplicationName string `json:"applicationName,omitempty"` // Is the file pinned and therefore cannot be deleted. Pinned bool `json:"pinned,omitempty"` // The size of the file in KB Size int32 `json:"size,omitempty"` // The timestamp of the upload time of the file, in UTC milliseconds UploadTimestamp int64 `json:"uploadTimestamp,omitempty"` } // Validate validates this symbol file func (m *SymbolFile) Validate(formats strfmt.Registry) error { var res []error if err := m.validateAppID(formats); err != nil { res = append(res, err) } if len(res) > 0 { return errors.CompositeValidationError(res...) } return nil } func (m *SymbolFile) validateAppID(formats strfmt.Registry) error { if swag.IsZero(m.AppID) { // not required return nil } if m.AppID != nil { if err := m.AppID.Validate(formats); err != nil { if ve, ok := err.(*errors.Validation); ok { return ve.ValidateName("appId") } return err } } return nil } // MarshalBinary interface implementation func (m *SymbolFile) MarshalBinary() ([]byte, error) { if m == nil { return nil, nil } return swag.WriteJSON(m) } // UnmarshalBinary interface implementation func (m *SymbolFile) UnmarshalBinary(b []byte) error { var res SymbolFile if err := swag.ReadJSON(b, &res); err != nil { return err } *m = res return nil }
go
package net.es.oscars.pss.beans; public class UrnMappingException extends Exception { public UrnMappingException(String msg) { super(msg); } }
java
/* * Copyright 2017 Red Hat, Inc. and/or its affiliates. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.kie.workbench.common.stunner.core.graph.util; import java.util.Optional; import java.util.function.BiFunction; import java.util.function.BiPredicate; import java.util.function.Predicate; import org.kie.workbench.common.stunner.core.api.DefinitionManager; import org.kie.workbench.common.stunner.core.graph.Edge; import org.kie.workbench.common.stunner.core.graph.Element; import org.kie.workbench.common.stunner.core.graph.Node; import org.kie.workbench.common.stunner.core.graph.content.definition.Definition; import org.kie.workbench.common.stunner.core.graph.content.view.View; /** * A predicate that checks if two nodes are using sharing the same parent * for a given type of Definition. It also filters a given node and * used the given parent as a candidate for it, instead of * processing the graph structure. */ public class FilteredParentsTypeMatcher implements BiPredicate<Node<? extends View<?>, ? extends Edge>, Node<? extends View<?>, ? extends Edge>> { private final ParentsTypeMatchPredicate parentsTypeMatchPredicate; private final Optional<Element<? extends Definition<?>>> candidateParent; private final Optional<Node<? extends Definition<?>, ? extends Edge>> candidateNode; public FilteredParentsTypeMatcher(final DefinitionManager definitionManager, final Element<? extends Definition<?>> candidateParent, final Node<? extends Definition<?>, ? extends Edge> candidateNode) { this.candidateParent = Optional.ofNullable(candidateParent); this.candidateNode = Optional.ofNullable(candidateNode); this.parentsTypeMatchPredicate = new ParentsTypeMatchPredicate(new FilteredParentByDefinitionIdProvider(definitionManager), new FilteredHasParentPredicate()); } public FilteredParentsTypeMatcher forParentType(final Class<?> parentType) { this.parentsTypeMatchPredicate.forParentType(parentType); return this; } @Override public boolean test(final Node<? extends View<?>, ? extends Edge> node, final Node<? extends View<?>, ? extends Edge> node2) { return parentsTypeMatchPredicate.test(node, node2); } private class FilteredHasParentPredicate implements BiPredicate<Node<?, ? extends Edge>, Element<?>> { private final GraphUtils.HasParentPredicate hasParentPredicate; private FilteredHasParentPredicate() { this.hasParentPredicate = new GraphUtils.HasParentPredicate(); } @Override public boolean test(final Node<?, ? extends Edge> node, final Element<?> parent) { return isCandidate.test(node) ? candidateParent .filter(parent::equals) .isPresent() : hasParentPredicate.test(node, parent); } } private class FilteredParentByDefinitionIdProvider implements BiFunction<Node<? extends View<?>, ? extends Edge>, Class<?>, Optional<Element<?>>> { private final ParentsTypeMatcher.ParentByDefinitionIdProvider provider; private FilteredParentByDefinitionIdProvider(final DefinitionManager definitionManager) { this.provider = new ParentsTypeMatcher.ParentByDefinitionIdProvider(definitionManager); } @Override public Optional<Element<?>> apply(final Node<? extends View<?>, ? extends Edge> node, final Class<?> parentType) { return getParent(node, parentType); } private Optional<Element<?>> getParent(final Node<? extends View<?>, ? extends Edge> node, final Class<?> parentType) { return isCandidate.test(node) ? getCandidateParentInstance(parentType) : provider.apply(node, parentType); } @SuppressWarnings("unchecked") private Optional<Element<?>> getCandidateParentInstance(final Class<?> parentType) { return candidateParent.isPresent() ? (ParentsTypeMatcher.ParentByDefinitionIdProvider.getDefinitionIdByTpe(parentType) .equals(getCandidateParentId().get()) ? Optional.of(candidateParent.get()) : getParent((Node<? extends View<?>, ? extends Edge>) candidateParent.get(), parentType)) : Optional.empty(); } private Optional<String> getCandidateParentId() { return candidateParent.isPresent() ? Optional.ofNullable(provider.definitionManager.adapters() .forDefinition() .getId(candidateParent.get().getContent().getDefinition())) : Optional.empty(); } } private Predicate<Node<?, ? extends Edge>> isCandidate = new Predicate<Node<?, ? extends Edge>>() { @Override public boolean test(final Node<?, ? extends Edge> node) { return candidateNode .filter(node::equals) .isPresent(); } }; }
java
The Indian Football Association slapped a three-year suspension on Mohammedan Sporting ground secretary Iqbal Ahmed, barring him from entering the technical area as well as the ground fencing area during IFA matches. Announcing its decision on the heckling of its secretary, Subrata Dutta, the IFA disciplinary committee also warned the club that if any such incident occurs in future, action would be contemplated against it also. The nine-member committee, however, gave a clean chit to club coach Subhas Bhowmick, who was also present during the incident, on August 3, in front of the Mohammedan Sporting tent at the Maidan in Kolkata. Irate Mohammedan Sporting supporters had pushed and shoved Dutta, alleging that he was partial to East Bengal during the recent inter-club transfers. Reacting to the suspension of Iqbal Ahmed, club secretary and elder brother Sultan Ahmed said, "This is a one-sided decision." The club, he said, would move the All India Football Federation, Asian Football Confederation and FIFA against the verdict. He also threatened to go to court against the suspension. Sultan Ahmed dared the IFA to take any action against the club, saying "If they (IFA) have guts, we welcome action against our club." Dutta, who had gone to the Mohammedan Sporting tent along with All India Football Federation secretary Alberto Colaco, was heckled by a group of club supporters who also shouted slogans against him and held a black flag demonstration. As Sporting coach Subhas Bhowmick and other officials threw a protective ring around Dutta and took him inside, the disgruntled fans vent their anger on Dutta's car, smashing its windscreen and window panes. The agitators temporarily dispersed when Bhowmick appealed to them to maintain calm to save the prestige of the club. When Dutta came out after a meeting with club officials, the agitators again barracked him and some of them pushed and shoved him. Policemen managed to rescue Dutta and put him in his car, which immediately sped off. The Sporting supporters were annoyed with Dutta after two of their club recruits Chandan Das and Rahim Nabi went back to their old club, East Bengal. Sporting's appeal to the IFA did not yield any positive result, leading to claims from its supporters that Dutta had sided with East Bengal.
english
Goa's Kadamba Transport Corporation (KTCL) on Saturday received the second lot of electric buses fitted with features like electronically controlled air suspension, CCTV cameras, and the emergency button to ensure the safety of commuters. Goa Chief Minister Pramod Sawant flagged off these buses during a round table to promote an electric mobility event organised by the Union Ministry of Heavy Industries. These buses were supplied by the electric bus operator, Evey Trans Private Limited (EVEY). A company spokesman said EVEY had received the order for electric buses from KTCL in December 2020 for the supply, operation and maintenance of 50, 12-metre electric buses based on a Gross Cost Contract (GCC) / OPEX model for 10 years. Evey Trans general manager Sandeep Raizada said, “We are happy to announce that we have completed the second lot of inspection and delivered the 12-meter electric buses to the Kadamba Transport Corporation Limited (KTCL). Evey Trans is already operating 30 buses in Goa. These buses will protect the rich ecology of Goa." The company spokesman said these air-conditioned buses will have a seating capacity of 48 plus the driver. “The electronically-controlled air suspension ensures passengers a comfortable ride. The buses are equipped with CCTV cameras, an emergency button to ensure the safety of the commuters and USB Sockets for mobile charging," he said. Unlock a world of Benefits! From insightful newsletters to real-time stock tracking, breaking news and a personalized newsfeed – it's all here, just a click away! Login Now! This story has been published from a wire agency feed without modifications to the text. Only the headline has been changed.
english
import { Component} from '@angular/core'; import { environment } from 'src/environments/environment'; @Component({ templateUrl: './home.page.html', styleUrls: ['./home.page.scss'] }) export class HomePage { public appName = environment.appName; constructor() { } }
typescript
#!/usr/bin/env python # -*- coding: utf-8 -*- from github import Github from time import sleep import configparser import codecs import csv from datetime import datetime import os import argparse # import ipdb as pdb def parse_args(): """ Parse script input arguments. Returns the parsed args, having validated that the input file can be read, and that there is a valid Username. """ parser = get_parser() args = parser.parse_args() # pdb.set_trace() if os.path.isfile(args.input): args.input_filename = args.input else: return None args.csv_filename = args.output return args def get_parser(): """ Return the parser used to interpret the script arguments.""" usage = ( "Script to send an HTML file as an HTML email." "\nExamples:" "\n1. Send the contents of test_file.html to fred" "\n$ send_html_email.py test_file.html" "\n" ) epilog = "NB This script requires a Gmail account." formatter_class = argparse.RawDescriptionHelpFormatter parser = argparse.ArgumentParser(description=usage, epilog=epilog, formatter_class=formatter_class ) parser.add_argument('-i', '--input', help=('The test email subject line (defaults to "Test' 'email")' ) ) parser.add_argument('-o', '--output', help=('The test email subject line (defaults to "Test' 'email")' ), default="get_contribuitor_data.csv" ) return parser def print_message(message): """Exibe uma mensagem de forma personalizada :message: A messagem a ser escrita :returns: None """ str_date = datetime.strftime(datetime.now(), '%d-%m-%Y %H:%M:%S') print(('[{0}] {1}'.format(str_date, message))) try: # pdb.set_trace() config = configparser.ConfigParser() config.read_file(open(('./conf/get_contribuitor_data.ini'))) api_token = config.get('API_TOKEN', 'token') git_api = Github(login_or_token=api_token) contrib_counter = 0 email_counter = 0 seconds_to_wait = 2 args = parse_args() csv_file_name = args.csv_filename repositories_file = args.input_filename with codecs.open(csv_file_name, 'w') as f: writer_csv = csv.writer(f, delimiter=';', quotechar='"', quoting=csv.QUOTE_NONNUMERIC ) # Escrevendo o cabeçaho do arquivo CSV writer_csv.writerow(('#', 'repositorio', 'nome_contribuidor', 'email_contribuidor' ) ) with codecs.open(repositories_file, 'r') as repo_file: # pdb.set_trace() for repo in repo_file: repo = repo.replace('\n', '') user_message = 'Analisando o repositório {0}.'.format(repo) print_message(user_message) repo_git = git_api.get_repo(repo) for contrib in repo_git.get_contributors(): contrib_counter = contrib_counter + 1 if contrib.email is not None: email_counter = email_counter + 1 writer_csv.writerow((email_counter, repo, contrib.name, contrib.email) ) user_message = ('Esperando {0} segundos para uma nova ' 'consulta!' ).format(seconds_to_wait) print_message(user_message) sleep(seconds_to_wait) user_message = ('Fim da análise do projeto {0}.' 'Total de contribuidores: {1}. ' 'Total com e-mail {2}').format(repo, contrib_counter, email_counter) print_message(user_message) except Exception as e: print_message(e)
python
Sangeeta Sornalingam is the wife of leading actor Thalapathy Vijay and the daughter of Tamil Industrialist from Srilanka. Her family was settled in the UK. After seeing Vijay’s film Poove Unakkaga released during the year 1996 she was very impressed and became his fan. One day during shooting Sangeeta came to see Vijay and he greeted her personally. they chatted for a while about various things. Let’s find out Sangeeta Personal details, Sangeeta-Vijay Marriage, Past Love, and other details. Sangeeta Sornalingam is the real name of Sangeeta who is also called as Sangeeta Vijay in her family and by close friends. She is basically an Industrialist by Profession and belongs to Hindu Origin. She hails from Srilanka and settled in the UK. She completed her graduation and currently lives in Chennai. She has two children’s. Jason Vijay, her younger son and Divya Sasha, her daughter. Sangeeta was very much impressed by Vijay’s role in the film Poovae Unakkaga. So she personally came to praise him for his acting in the film during one of his film shooting in Chennai. Vijay greeted her pleasantly and they chatted for a while. Since then she made visits to Chennai numerous times to see Vijay for praising his work. Her gesture made Vijay make her visit his home and asked her about the same. She was very happy and gladly accepted to visit his home the next time to spend some time with his parents. Her first meeting with his parents left a strong impression on them about her. She stayed back in Chennai for some time and Vijay started liking her presence which he never expressed. Vijay again invited Sangeeta to his home and this time his parents have found the daughter-in-law and a perfect girl for their son. Shoba Chandrasekhar, Vijay’s mother directly asked Sangeeta whether she would like to marry her son. She gladly agreed to the marriage. Later Vijay’s parents visited London to speak about Sangeeta-Vijay marriage with her parents for which they accepted happily and the marriage is fixed. they both tied the knot on 25 August 1999 as per both Hindu as well as Christian tradition. Past Love of Sangeeta: As per reports, Sangeeta had affair with Jai Akash, her ex-boyfriend. - During 1998, her ex-boyfriend Jai Akash attacked Vijay in London. - She is an active user of social media especially Facebook. - She is very close to actress Shalini Ajith. - Sangeeta attends all the function of her husband Vijay. - Her first son Sanjay born in 2000 in London and her daughter Divya born in 2005 in Chennai. - Before marriage, she actually fell in love with Vijay. - Vijay calls her sweetly as Geeta. - Sangeeta is two years elder to her husband Vijay. - She attends all the functions of the film industry like movie launches, audio releases and family functions. - Before marriage, she spends some quality time with Vijay during the film shoot.
english
Suriya, Mohanlal, Amitabh Bachchan, Mahesh Babu and Rakshit Shetty will launch the teaser of Ponniyin Selvan today, July 8, in multiple languages. The film is directed by Mani Ratnam. - The teaser of Ponniyin Selvan will be launched on July 8. - Suriya, Mohanlal, Amitabh Bachchan, Mahesh Babu and Rakshit Shetty will share the teasers. - The first part of Ponniyin Selvan will be released on September 30. By Janani K: Director Mani Ratnam is thrilled about the release of his pet project, Ponniyin Selvan. Today (July 8), the teaser of the film will be launched in multiple languages. Suriya, Amitabh Bachchan, Mohanlal, Mahesh Babu and Rakshit Shetty will unveil the teasers in Tamil, Hindi, Malayalam, Telugu and Kannada, respectively. As reported earlier, Ponniyin Selvan will be released in two parts. The first part of Ponniyin Selvan will hit the theatres on September 30 in five languages. The film is currently in the post-production phase. The makers of Ponniyin Selvan will unveil the teaser with a special event in Chennai. In addition to that, the Tamil, Telugu, Malayalam, Kannada and Hindi versions of the teaser will be launched on YouTube by Suriya, Mahesh Babu, Mohanlal, Rakshit Shetty and Amitabh Bachchan, respectively, at 6 pm. Here are the posters: Ahead of the grand release of Ponniyin Selvan, the makers have been introducing new characters every day. So far, Chiyaan Vikram, Aishwarya Rai Bachchan, Karthi,Trisha and Jayam Ravi's posters have been launched. They play the roles of Aditya Karikalan, Nandini, Vanthiyathevan, Kundavai and Arulmozhi Varman, respectively. Ponniyin Selvan will trace the story of Nandini and how she plots the downfall of the Chola dynasty. Whether she succeeds in it or not will form the plot.
english
<filename>docs/index.html <!DOCTYPE html><html><head> <script async="" src="https://www.googletagmanager.com/gtag/js?id=UA-10196481-9"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'UA-10196481-9'); </script> <meta charset="utf-8"/> <meta http-equiv="x-ua-compatible" content="ie=edge"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <title>Gotenberg · A Docker-powered stateless API for converting HTML, Markdown and Office documents to PDF.</title> <link rel="apple-touch-icon-precomposed" sizes="57x57" href="theme/gotenberg/img/apple-touch-icon-57x57.png"/> <link rel="apple-touch-icon-precomposed" sizes="114x114" href="theme/gotenberg/img/apple-touch-icon-114x114.png"/> <link rel="apple-touch-icon-precomposed" sizes="72x72" href="theme/gotenberg/img/apple-touch-icon-72x72.png"/> <link rel="apple-touch-icon-precomposed" sizes="144x144" href="theme/gotenberg/img/apple-touch-icon-144x144.png"/> <link rel="apple-touch-icon-precomposed" sizes="60x60" href="theme/gotenberg/img/apple-touch-icon-60x60.png"/> <link rel="apple-touch-icon-precomposed" sizes="120x120" href="theme/gotenberg/img/apple-touch-icon-120x120.png"/> <link rel="apple-touch-icon-precomposed" sizes="76x76" href="theme/gotenberg/img/apple-touch-icon-76x76.png"/> <link rel="apple-touch-icon-precomposed" sizes="152x152" href="theme/gotenberg/img/apple-touch-icon-152x152.png"/> <link rel="icon" type="image/png" href="theme/gotenberg/img/favicon-196x196.png" sizes="196x196"/> <link rel="icon" type="image/png" href="theme/gotenberg/img/favicon-96x96.png" sizes="96x96"/> <link rel="icon" type="image/png" href="theme/gotenberg/img/favicon-32x32.png" sizes="32x32"/> <link rel="icon" type="image/png" href="theme/gotenberg/img/favicon-16x16.png" sizes="16x16"/> <link rel="icon" type="image/png" href="theme/gotenberg/img/favicon-128.png" sizes="128x128"/> <link rel="stylesheet" href="theme/gotenberg/css/index.css"/> </head> <body> <div class="Wrapper"> <div class="Container"> <div class="Header"> <div class="Title center"> <img src="https://user-images.githubusercontent.com/8983173/69229423-ac731300-0b85-11ea-8c2e-2cc00ecdb269.PNG" alt="Gotenberg logo" width="250" height="250"/> <span class="text">Gotenberg</span> <span class="subtext">A Docker-powered stateless API for converting HTML, Markdown and Office documents to PDF.</span> </div> </div> <div class="Content-wrapper"> <div class="Sidebar"> <div class="Menu"> <div class="item"> <a href="#introduction">Introduction</a> </div> <div class="item"> <a href="#install">Install</a> </div> <div class="item"> <a href="#clients">Clients</a> </div> <div class="item"> <a href="#environment_variables">Environment variables</a> </div> <div class="item"> <a href="#html">HTML</a> </div> <div class="item"> <a href="#url">URL</a> </div> <div class="item"> <a href="#markdown">Markdown</a> </div> <div class="item"> <a href="#office">Office</a> </div> <div class="item"> <a href="#merge">Merge</a> </div> <div class="item"> <a href="#timeout">Timeout</a> </div> <div class="item"> <a href="#webhook">Webhook</a> </div> <div class="item"> <a href="#result_filename">Result filename</a> </div> <div class="item"> <a href="#scalability">Scalability</a> </div> <div class="item"> <a href="#ping">Ping</a> </div> <div class="item"> <a href="#fonts">Fonts</a> </div> <div class="item"> <a href="#links">Links</a> </div> </div> </div> <div class="Content"> <div class="Page" id="introduction"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="introduction" href="#introduction"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Introduction</h1> <p><a href="https://github.com/thecodingmachine/gotenberg/">Gotenberg</a> is a Docker-powered stateless API for converting HTML, Markdown and Office documents to PDF.</p> <ul> <li>HTML and Markdown conversions using Google Chrome headless</li> <li>Office conversions (.txt, .rtf, .docx, .doc, .odt, .pptx, .ppt, .odp and so on) using <a href="https://github.com/dagwieers/unoconv">unoconv</a></li> <li>Assets: send your header, footer, images, fonts, stylesheets and so on for converting your HTML and Markdown to beaufitul PDFs!</li> <li>Easily interact with the API using our <a href="https://github.com/thecodingmachine/gotenberg-go-client">Go</a> and <a href="https://github.com/thecodingmachine/gotenberg-php-client">PHP</a> libraries</li> </ul> </div> <div class="Page" id="install"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="install" href="#install"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Install</h1> <p>Gotenberg is shipped within a Docker image.</p> <p><strong><a href="https://blazej-adamczyk.medium.com/0-day-bug-breaks-multi-million-dollar-system-38c9e31b27e9">Gotenberg should ONLY be used in a trusted network by trusted applications. Do NOT expose Gotenberg to the external world.</a></strong></p> <p>You may start it with:</p> <pre class="chroma">$ docker run --rm -p 3000:3000 thecodingmachine/gotenberg:6 </pre> <blockquote> <p>The API will be available at <a href="http://localhost:3000">http://localhost:3000</a>.</p> </blockquote> <p>The image uses a dedicated non-root user called <code>gotenberg</code> with uid and gid <code>1001</code>.</p> <p>If you wish to change those uid and gid, you will have to:</p> <ul> <li>clone the project</li> <li>re-build the image</li> <li>publish the image in your own Docker registry</li> </ul> <p>For instance:</p> <pre class="chroma">$ git clone https://github.com/thecodingmachine/gotenberg.git $ make publish <span class="nv">GOTENBERG_USER_GID</span><span class="o">=</span>your_custom_gid <span class="nv">GOTENBERG_USER_UID</span><span class="o">=</span>your_custom_uid <span class="nv">DOCKER_REGISTRY</span><span class="o">=</span>your_registry <span class="nv">DOCKER_USER</span><span class="o">=</span>registry_user <span class="nv">DOCKER_PASSWORD</span><span class="o">=</span>registry_password <span class="nv">VERSION</span><span class="o">=</span>version </pre> <blockquote> <p><code>master</code> branch is always up-to-date with the latest version of the API.</p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="install.docker_compose" href="#install.docker_compose"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Docker Compose</h2> <p>You may also add it in your Docker Compose stack:</p> <pre class="chroma"><span class="nt">version</span><span class="p">:</span><span class="w"> </span><span class="s1">&#39;3&#39;</span><span class="w"> </span><span class="w"> </span><span class="w"></span><span class="nt">services</span><span class="p">:</span><span class="w"> </span><span class="w"> </span><span class="w"> </span><span class="c"># your other services</span><span class="w"> </span><span class="w"> </span><span class="w"> </span><span class="nt">gotenberg</span><span class="p">:</span><span class="w"> </span><span class="w"> </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l">thecodingmachine/gotenberg:6</span><span class="w"> </span></pre> <blockquote> <p>The API will be available under <code>gotenberg:3000</code> in your Docker Compose network.</p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="install.kubernetes" href="#install.kubernetes"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Kubernetes</h2> <p>It may also be deployed with Kubernetes.</p> <p>Make sure to provide enough memory and CPU requests (for instance <code>512Mi</code> and <code>0.2</code> CPU).</p> <blockquote> <p>The more resources are granted, the quicker will be the conversions.</p> </blockquote> <p>In the deployment specification of the pod, also specify the uid of the user <code>gotenberg</code>:</p> <pre class="chroma">securityContext: privileged: false runAsUser: 1001 </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="install.cloud_run_google_cloud" href="#install.cloud_run_google_cloud"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Cloud Run (Google Cloud)</h2> <p>If you’re looking for cost savings, you might be interested by <a href="https://cloud.google.com/run">Cloud Run</a>. However, according to some users, doing asynchronous conversion (with a webhook) might not working.</p> <p>In the following examples, we will assume your Gotenberg API is available at <a href="http://localhost:3000">http://localhost:3000</a>.</p> </div> <div class="Page" id="clients"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="clients" href="#clients"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Clients</h1> <p>We provide clients in various languages for easing the interactions with the API.</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="clients.go_client" href="#clients.go_client"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go client</h2> <pre class="chroma">$ go get -u github.com/thecodingmachine/gotenberg-go-client/v7 </pre> <p>See also the example from the <a href="https://github.com/thecodingmachine/gotenberg-go-client/blob/master/README.md">README</a>.</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="clients.php_client" href="#clients.php_client"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP client</h2> <p>Unless your project already has a PSR7 <code>HttpClient</code>, install <code>php-http/guzzle6-adapter</code>:</p> <pre class="chroma">$ composer require php-http/guzzle6-adapter </pre> <p>Then the <a href="https://github.com/thecodingmachine/gotenberg-php-client">PHP client</a>:</p> <pre class="chroma">$ composer require thecodingmachine/gotenberg-php-client </pre> <p>See also the example from the <a href="https://github.com/thecodingmachine/gotenberg-php-client/blob/master/README.md">README</a>.</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="clients.community_clients" href="#clients.community_clients"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Community clients</h2> <ul> <li><a href="https://github.com/yumauri/gotenberg-js-client">JavaScript/TypeScript client</a> by <a href="https://github.com/yumauri">yumauri</a></li> <li><a href="https://github.com/ChangemakerStudios/GotenbergSharpApiClient">C# client</a> by <a href="https://github.com/ChangemakerStudios">ChangemakerStudios</a></li> </ul> </div> <div class="Page" id="environment_variables"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables" href="#environment_variables"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Environment variables</h1> <p>You may customize the API behaviour thanks to environment variables.</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.log_level" href="#environment_variables.log_level"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Log level</h2> <p>The API provides structured logging allowing you to have relevant information about what’s going on.</p> <blockquote> <p>If a TTY is attached, the log entries are displayed in text format with colors, otherwise in JSON format.</p> </blockquote> <p>You may customize the severity of the log entries thanks to the environment variable <code>LOG_LEVEL</code>.</p> <p>It accepts one of the following severities: <code>&#34;DEBUG&#34;</code>, <code>&#34;INFO&#34;</code> (default) and <code>&#34;ERROR&#34;</code>.</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.default_listen_port" href="#environment_variables.default_listen_port"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Default listen port</h2> <p>By default, the API will listen on port <code>3000</code>.</p> <p>You may customize this value with the environment variable <code>DEFAULT_LISTEN_PORT</code>.</p> <p>This environment variable accepts any string that can be turned into a port number.</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.root_path" href="#environment_variables.root_path"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Root path</h2> <p>By default, the API root path is <code>/</code>.</p> <p>You may customize this value with the environment variable <code>ROOT_PATH</code>.</p> <p>This environment variable accepts a string starting and ending with <code>/</code>.</p> <p>For instance, <code>/gotenberg/</code> is a valid value while <code>gotenberg</code> is not.</p> <blockquote> <p>This is useful if you wish to do service discovery via URL paths.</p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.disable_google_chrome" href="#environment_variables.disable_google_chrome"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Disable Google Chrome</h2> <p>In order to save some resources, the Gotenberg image accepts the environment variable <code>DISABLE_GOOGLE_CHROME</code> for disabling Google Chrome.</p> <p>It takes the strings <code>&#34;0&#34;</code> or <code>&#34;1&#34;</code> as value where <code>1</code> means <code>true</code></p> <blockquote> <p>If Google Chrome is disabled, the following conversions will <strong>not</strong> be available anymore: <a href="#html">HTML</a>, <a href="#url">URL</a> and <a href="#markdown">Markdown</a></p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.default_google_chrome_rpcc_buffer_size" href="#environment_variables.default_google_chrome_rpcc_buffer_size"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Default Google Chrome rpcc buffer size</h2> <p>When performing a <a href="#html">HTML</a>, <a href="#url">URL</a> or <a href="#markdown">Markdown</a> conversion, the API might return a <code>400</code> HTTP code with the message <code>increase the Google Chrome rpcc buffer size</code>.</p> <p>If so, you may increase this buffer size with the environment variable <code>DEFAULT_GOOGLE_CHROME_RPCC_BUFFER_SIZE</code>.</p> <p>It takes a string representation of an int as value (e.g. <code>&#34;1048576&#34;</code> for 1 MB). The hard limit is 100 MB and is defined by Google Chrome itself.</p> <blockquote> <p>The default Google Chrome rpcc buffer size may also be overridden per request thanks to the form field <code>googleChromeRpccBufferSize</code>. See the <a href="#html.rpcc_buffer_size">rpcc buffer size section</a>.</p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.google_chrome_ignore_certificate_errors" href="#environment_variables.google_chrome_ignore_certificate_errors"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Google Chrome ignore certificate errors</h2> <p>When performing a <a href="#url">URL</a> conversion, Google Chrome will not accept certificate errors.</p> <p>You may allow insecure connections by setting the <code>GOOGLE_CHROME_IGNORE_CERTIFICATE_ERRORS</code> environment variable to <code>&#34;1&#34;</code>.</p> <p><strong>You should be careful with this feature and only enable it in your development environment.</strong></p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.disable_libre_office_unoconv" href="#environment_variables.disable_libre_office_unoconv"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Disable LibreOffice (unoconv)</h2> <p>You may also disable LibreOffice (unoconv) with <code>DISABLE_UNOCONV</code>.</p> <blockquote> <p>If LibreOffice (unoconv) is disabled, the following conversion will <strong>not</strong> be available anymore: <a href="#office">Office</a></p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.default_wait_timeout" href="#environment_variables.default_wait_timeout"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Default wait timeout</h2> <p>By default, the API will wait 10 seconds before it considers the conversion to be unsuccessful. If unsucessful, it returns a <code>504</code> HTTP code.</p> <p>You may customize this timeout thanks to the environment variable <code>DEFAULT_WAIT_TIMEOUT</code>.</p> <p>It takes a string representation of a float as value (e.g <code>&#34;2.5&#34;</code> for 2.5 seconds).</p> <blockquote> <p>The default timeout may also be overridden per request thanks to the form field <code>waitTimeout</code>. See the <a href="#timeout">timeout section</a>.</p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.maximum_wait_timeout" href="#environment_variables.maximum_wait_timeout"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Maximum wait timeout</h2> <p>By default, the value of the form field <code>waitTimeout</code> cannot be more than 30 seconds.</p> <p>You may increase or decrease this limit thanks to the environment variable <code>MAXIMUM_WAIT_TIMEOUT</code>.</p> <p>It takes a string representation of a float as value (e.g <code>&#34;2.5&#34;</code> for 2.5 seconds).</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.default_webhook_url_timeout" href="#environment_variables.default_webhook_url_timeout"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Default webhook URL timeout</h2> <p>By default, the API will wait 10 seconds before it considers the sending of the resulting PDF to be unsuccessful.</p> <blockquote> <p>See the <a href="#webhook">webhook section</a>.</p> </blockquote> <p>You may customize this timeout thanks to the environment variable <code>DEFAULT_WEBHOOK_URL_TIMEOUT</code>.</p> <p>It takes a string representation of a float as value (e.g <code>&#34;2.5&#34;</code> for 2.5 seconds).</p> <blockquote> <p>The default timeout may also be overridden per request thanks to the form field <code>webhookURLTimeout</code>. See the <a href="#webhook.timeout">webhook timeout section</a>.</p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.maximum_webhook_url_timeout" href="#environment_variables.maximum_webhook_url_timeout"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Maximum webhook URL timeout</h2> <p>By default, the value of the form field <code>webhookURLTimeout</code> cannot be more than 30 seconds.</p> <p>You may increase or decrease this limit thanks to the environment variable <code>MAXIMUM_WEBHOOK_URL_TIMEOUT</code>.</p> <p>It takes a string representation of a float as value (e.g <code>&#34;2.5&#34;</code> for 2.5 seconds).</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.maximum_wait_delay" href="#environment_variables.maximum_wait_delay"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Maximum wait delay</h2> <p>By default, the value of the form field <code>waitDelay</code> cannot be more than 10 seconds.</p> <blockquote> <p>See the <a href="#html.wait_delay">wait delay section</a>.</p> </blockquote> <p>You may increase or decrease this limit thanks to the environment variable <code>MAXIMUM_WAIT_DELAY</code>.</p> <p>It takes a string representation of a float as value (e.g <code>&#34;2.5&#34;</code> for 2.5 seconds).</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.request_id_header" href="#environment_variables.request_id_header"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>RequestID Header</h2> <p>By default, the API will use <code>X-REQUEST-ID</code> as the header to use when searching for a client correlation id.</p> <p>You may customize this value with the environment variable <code>REQUEST_ID_HEADER</code> and set it to any valid HTTP header.</p> <blockquote> <p>This is useful if you wish to do service to service log correlation for request logging.</p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="environment_variables.request_id_key" href="#environment_variables.request_id_key"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>RequestID Key</h2> <p>By default, the API will use <code>trace</code> as the log field key when logging a correlation id.</p> <p>You may customize this value with the environment variable <code>REQUEST_ID_KEY</code> and set it to any valid string.</p> <blockquote> <p>This is useful if you already have a common field name used in your logging setup.</p> </blockquote> </div> <div class="Page" id="html"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="html" href="#html"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>HTML</h1> <p>Gotenberg provides the endpoint <code>/convert/html</code> for HTML conversions.</p> <p>It accepts <code>POST</code> requests with a <code>multipart/form-data</code> Content-Type.</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="html.basic" href="#html.basic"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Basic</h2> <p>The only requirement is to send a file named <code>index.html</code>: it is the file which will be converted to PDF.</p> <p>For instance:</p> <pre class="chroma"><span class="cp">&lt;!doctype html&gt;</span> <span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>My PDF<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">h1</span><span class="p">&gt;</span>Hello world!<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.basic.c_url" href="#html.basic.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.basic.go" href="#html.basic.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.basic.php" href="#html.basic.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="html.header_and_footer" href="#html.header_and_footer"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Header and footer</h2> <p>You may also add a header and/or a footer in the resulting PDF. Respectively, a file named <code>header.html</code> and <code>footer.html</code>.</p> <p>Each of them <strong>has to be a complete HTML document</strong>:</p> <pre class="chroma"><span class="p">&lt;</span><span class="nt">html</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">style</span><span class="p">&gt;</span> <span class="nt">body</span> <span class="p">{</span> <span class="k">font-size</span><span class="p">:</span> <span class="mi">8</span><span class="kt">rem</span><span class="p">;</span> <span class="k">margin</span><span class="p">:</span> <span class="mi">4</span><span class="kt">rem</span> <span class="kc">auto</span><span class="p">;</span> <span class="p">}</span> <span class="p">&lt;/</span><span class="nt">style</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">p</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">span</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;pageNumber&#34;</span><span class="p">&gt;&lt;/</span><span class="nt">span</span><span class="p">&gt;</span> of <span class="p">&lt;</span><span class="nt">span</span> <span class="na">class</span><span class="o">=</span><span class="s">&#34;totalPages&#34;</span><span class="p">&gt;&lt;/</span><span class="nt">span</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">p</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span> </pre> <p>The following classes allow you to inject printing values:</p> <ul> <li><code>date</code>: formatted print date</li> <li><code>title</code>: document title</li> <li><code>pageNumber</code>: current page number</li> <li><code>totalPage</code>: total pages in the document</li> </ul> <p>There are some limitations:</p> <ul> <li>JavaScript is not executed</li> <li>external resources are not loaded</li> <li>the CSS properties are independant of the ones used in the <code>index.html</code> file</li> <li><code>footer.html</code> CSS properties override the ones from <code>header.html</code></li> <li>only fonts installed in the Docker image are loaded (see the <a href="#fonts">fonts section</a>)</li> <li>images only work using a <code>base64</code> encoded source (<code>&lt;img src=&#34;data:image/png;base64, iVBORw0K... /&gt;</code>)</li> <li><code>background-color</code> and <code>color</code> CSS properties require an additional <code>-webkit-print-color-adjust: exact</code> CSS property in order to work</li> </ul> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.header_and_footer.c_url" href="#html.header_and_footer.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@header.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@footer.html <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.header_and_footer.go" href="#html.header_and_footer.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">header</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;header.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">footer</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;footer.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">Header</span><span class="p">(</span><span class="nx">header</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">Footer</span><span class="p">(</span><span class="nx">footer</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.header_and_footer.php" href="#html.header_and_footer.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$header</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;header.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$footer</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;footer.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setHeader</span><span class="p">(</span><span class="nv">$header</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setFooter</span><span class="p">(</span><span class="nv">$footer</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="html.assets" href="#html.assets"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Assets</h2> <p>You may also send additional files. For instance: images, fonts, stylesheets and so on.</p> <p>The only requirement is to make sure that their paths are on the same level as the <code>index.html</code> file.</p> <p>In other words, this will work:</p> <pre class="chroma"><span class="cp">&lt;!doctype html&gt;</span> <span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>My PDF<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">h1</span><span class="p">&gt;</span>Hello world!<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&#34;img.png&#34;</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span> </pre> <p>But this won’t:</p> <pre class="chroma"><span class="cp">&lt;!doctype html&gt;</span> <span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>My PDF<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">h1</span><span class="p">&gt;</span>Hello world!<span class="p">&lt;/</span><span class="nt">h1</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">img</span> <span class="na">src</span><span class="o">=</span><span class="s">&#34;/foo/img.png&#34;</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span> </pre> <p>You may also use <em>remote</em> paths for Google fonts, images and so on.</p> <blockquote> <p>If you want to install fonts directly in the Gotenberg Docker image, see to the <a href="#fonts">fonts section</a>.</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.assets.c_url" href="#html.assets.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@style.css <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@img.png <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@font.woff <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.assets.go" href="#html.assets.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">style</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;style.css&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">img</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;img.png&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">font</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;font.woff&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">Assets</span><span class="p">(</span><span class="nx">style</span><span class="p">,</span> <span class="nx">img</span><span class="p">,</span> <span class="nx">font</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.assets.php" href="#html.assets.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$assets</span> <span class="o">=</span> <span class="p">[</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;style.css&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">),</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;img.png&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">),</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;font.woff&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">),</span> <span class="p">];</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setAssets</span><span class="p">(</span><span class="nv">$assets</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="html.paper_size_margins_orientation_scaling" href="#html.paper_size_margins_orientation_scaling"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Paper size, margins, orientation, scaling</h2> <p>You may also customize the resulting PDF format.</p> <p>By default, it will be rendered with <code>A4</code> size, <code>1 inch</code> margins and <code>portrait</code> orientation and 100% (<code>1.0</code>) page scale.</p> <blockquote> <p>Paper size and margins have to be provided in <code>inches</code>. Same for margins.</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.paper_size_margins_orientation_scaling.c_url" href="#html.paper_size_margins_orientation_scaling.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">paperWidth</span><span class="o">=</span>8.27 <span class="se">\ </span><span class="se"></span> --form <span class="nv">paperHeight</span><span class="o">=</span>11.69 <span class="se">\ </span><span class="se"></span> --form <span class="nv">marginTop</span><span class="o">=</span><span class="m">0</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">marginBottom</span><span class="o">=</span><span class="m">0</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">marginLeft</span><span class="o">=</span><span class="m">0</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">marginRight</span><span class="o">=</span><span class="m">0</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">landscape</span><span class="o">=</span><span class="nb">true</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">scale</span><span class="o">=</span>0.75 <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.paper_size_margins_orientation_scaling.go" href="#html.paper_size_margins_orientation_scaling.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">PaperSize</span><span class="p">(</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">A4</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">Margins</span><span class="p">(</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">NoMargins</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">Landscape</span><span class="p">(</span><span class="kc">true</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">Scale</span><span class="p">(</span><span class="mf">0.75</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.paper_size_margins_orientation_scaling.php" href="#html.paper_size_margins_orientation_scaling.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Request</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setPaperSize</span><span class="p">(</span><span class="nx">Request</span><span class="o">::</span><span class="na">A4</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setMargins</span><span class="p">(</span><span class="nx">Request</span><span class="o">::</span><span class="na">NO_MARGINS</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setLandscape</span><span class="p">(</span><span class="k">true</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setScale</span><span class="p">(</span><span class="mf">0.75</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="html.page_ranges" href="#html.page_ranges"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Page ranges</h2> <p>You may specify the page ranges to convert.</p> <p>The format is the same as the one from the print options of Google Chrome, e.g. <code>1-5,8,11-13</code>.</p> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.page_ranges.c_url" href="#html.page_ranges.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">pageRanges</span><span class="o">=</span><span class="s1">&#39;1-3,5&#39;</span> <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.page_ranges.go" href="#html.page_ranges.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">PageRanges</span><span class="p">(</span><span class="s">&#34;1-3,5&#34;</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.page_ranges.php" href="#html.page_ranges.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Request</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setPageRanges</span><span class="p">(</span><span class="s1">&#39;1-3,5&#39;</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="html.wait_delay" href="#html.wait_delay"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Wait delay</h2> <p>In some cases, you may want to wait a certain amount of time to make sure the page you’re trying to generate is fully rendered. For instance, if your page relies a lot on JavaScript for rendering.</p> <blockquote> <p>The wait delay is a duration in <strong>seconds</strong> (e.g <code>2.5</code> for 2.5 seconds).</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.wait_delay.c_url" href="#html.wait_delay.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">waitDelay</span><span class="o">=</span>5.5 <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.wait_delay.go" href="#html.wait_delay.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">WaitDelay</span><span class="p">(</span><span class="mf">5.5</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.wait_delay.php" href="#html.wait_delay.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Request</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setWaitDelay</span><span class="p">(</span><span class="mf">5.5</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="html.rpcc_buffer_size" href="#html.rpcc_buffer_size"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Rpcc buffer size</h2> <p>The API might return a <code>400</code> HTTP code with the message <code>increase the Google Chrome rpcc buffer size</code>.</p> <p>If so, you may increase this buffer size with a form field named <code>googleChromeRpccBufferSize</code>.</p> <p>It takes an int as value (e.g. <code>1048576</code> for 1 MB). The hard limit is 100 MB and is defined by Google Chrome itself.</p> <blockquote> <p>You may also define this value globally: see the <a href="#environment_variables.default_google_chrome_rpcc_buffer_size">environment variables</a> section.</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.rpcc_buffer_size.c_url" href="#html.rpcc_buffer_size.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">googleChromeRpccBufferSize</span><span class="o">=</span><span class="m">1048576</span> <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.rpcc_buffer_size.go" href="#html.rpcc_buffer_size.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">GoogleChromeRpccBufferSize</span><span class="p">(</span><span class="mi">1048576</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="html.rpcc_buffer_size.php" href="#html.rpcc_buffer_size.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Request</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setGoogleChromeRpccBufferSize</span><span class="p">(</span><span class="mi">1048576</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> </div> <div class="Page" id="url"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="url" href="#url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>URL</h1> <p>Gotenberg provides the endpoint <code>/convert/url</code> for remote URL conversions.</p> <p>It accepts <code>POST</code> requests with a <code>multipart/form-data</code> Content-Type.</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="url.basic" href="#url.basic"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Basic</h2> <p>This endpoint does not accept an <code>index.html</code> file nor assets files but a form field named <code>remoteURL</code> instead. Otherwise, URL conversions work the same as HTML conversions.</p> <blockquote> <p><strong>Attention:</strong> when converting a website to PDF, you should remove all margins. If not, some of the content of the page might be hidden.</p> <p><strong>Attention:</strong> if you try to convert a URL from a Docker Compose service named <code>app</code> (i.e. <code>removeURL</code> = <code>http://app/an/entrypoint</code>), the resulting PDF will be blank. Make sure to rename your service to avoid this issue.</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="url.basic.c_url" href="#url.basic.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/url <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">remoteURL</span><span class="o">=</span>https://google.com <span class="se">\ </span><span class="se"></span> --form <span class="nv">marginTop</span><span class="o">=</span><span class="m">0</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">marginBottom</span><span class="o">=</span><span class="m">0</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">marginLeft</span><span class="o">=</span><span class="m">0</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">marginRight</span><span class="o">=</span><span class="m">0</span> <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="url.basic.go" href="#url.basic.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewURLRequest</span><span class="p">(</span><span class="s">&#34;https://google.com&#34;</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">Margins</span><span class="p">(</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">NoMargins</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="url.basic.php" href="#url.basic.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\URLRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">URLRequest</span><span class="p">(</span><span class="s1">&#39;https://google.com&#39;</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setMargins</span><span class="p">(</span><span class="nx">Request</span><span class="o">::</span><span class="na">NO_MARGINS</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="url.custom_http_headers" href="#url.custom_http_headers"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Custom HTTP headers</h2> <p>You may send your own HTTP headers to the <code>remoteURL</code>.</p> <p>For instance, by adding the HTTP header <code>Gotenberg-Remoteurl-Your-Header</code> to your request, the API will send a request to the <code>remoteURL</code> with the HTTP header <code>Your-Header</code>.</p> <blockquote> <p><strong>Attention:</strong> the API uses a canonical format for the HTTP headers: it transforms the first letter and any letter following a hyphen to upper case; the rest are converted to lowercase. For example, the canonical key for <code>accept-encoding</code> is <code>Accept-Encoding</code>.</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="url.custom_http_headers.c_url" href="#url.custom_http_headers.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/url <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Gotenberg-Remoteurl-Your-Header: Foo&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">remoteURL</span><span class="o">=</span>https://google.com <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="url.custom_http_headers.go" href="#url.custom_http_headers.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewURLRequest</span><span class="p">(</span><span class="s">&#34;https://google.com&#34;</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">AddRemoteURLHTTPHeader</span><span class="p">(</span><span class="s">&#34;Your-Header&#34;</span><span class="p">,</span> <span class="s">&#34;Foo&#34;</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="url.custom_http_headers.php" href="#url.custom_http_headers.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\URLRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">URLRequest</span><span class="p">(</span><span class="s1">&#39;https://google.com&#39;</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">addRemoteURLHTTPHeader</span><span class="p">(</span><span class="s1">&#39;Your-Header&#39;</span><span class="p">,</span> <span class="s1">&#39;Foo&#39;</span><span class="p">)</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> </div> <div class="Page" id="markdown"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="markdown" href="#markdown"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Markdown</h1> <p>Gotenberg provides the endpoint <code>/convert/markdown</code> for Markdown conversions.</p> <p>It accepts <code>POST</code> requests with a <code>multipart/form-data</code> Content-Type.</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="markdown.basic" href="#markdown.basic"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Basic</h2> <p>Markdown conversions work the same as HTML conversions.</p> <p>Only difference is that you have access to the Go template function <code>toHTML</code> in the file <code>index.html</code>. This function will convert a given markdown file to HTML.</p> <p>For instance:</p> <pre class="chroma"><span class="cp">&lt;!doctype html&gt;</span> <span class="p">&lt;</span><span class="nt">html</span> <span class="na">lang</span><span class="o">=</span><span class="s">&#34;en&#34;</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">head</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">meta</span> <span class="na">charset</span><span class="o">=</span><span class="s">&#34;utf-8&#34;</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">title</span><span class="p">&gt;</span>My PDF<span class="p">&lt;/</span><span class="nt">title</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">head</span><span class="p">&gt;</span> <span class="p">&lt;</span><span class="nt">body</span><span class="p">&gt;</span> {{ toHTML .DirPath &#34;file.md&#34; }} <span class="p">&lt;/</span><span class="nt">body</span><span class="p">&gt;</span> <span class="p">&lt;/</span><span class="nt">html</span><span class="p">&gt;</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="markdown.basic.c_url" href="#markdown.basic.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/markdown <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@file.md <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="markdown.basic.go" href="#markdown.basic.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">markdown</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;file.md&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewMarkdownRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">,</span> <span class="nx">markdown</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="markdown.basic.php" href="#markdown.basic.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\MarkdownRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$markdowns</span> <span class="o">=</span> <span class="p">[</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;file.md&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">),</span> <span class="p">];</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">MarkdownRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">,</span> <span class="nv">$markdowns</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> </div> <div class="Page" id="office"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="office" href="#office"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Office</h1> <p>Gotenberg provides the endpoint <code>/convert/office</code> for Office document conversions.</p> <p>It accepts <code>POST</code> requests with a <code>multipart/form-data</code> Content-Type.</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="office.basic" href="#office.basic"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Basic</h2> <p>You may send one or more Office documents. Following file extensions are accepted:</p> <ul> <li><code>.txt</code></li> <li><code>.rtf</code></li> <li><code>.fodt</code></li> <li><code>.doc</code></li> <li><code>.docx</code></li> <li><code>.odt</code></li> <li><code>.xls</code></li> <li><code>.xlsx</code></li> <li><code>.ods</code></li> <li><code>.ppt</code></li> <li><code>.pptx</code></li> <li><code>.odp</code></li> </ul> <p>All files will be merged into a single resulting PDF.</p> <blockquote> <p><strong>Attention:</strong> Gotenberg merges the PDF files alphabetically.</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="office.basic.c_url" href="#office.basic.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/office <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@document.docx <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@document2.docx <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="office.basic.go" href="#office.basic.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">doc</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;document.docx&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">doc2</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;document2.docx&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewOfficeRequest</span><span class="p">(</span><span class="nx">doc</span><span class="p">,</span> <span class="nx">doc2</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="office.basic.php" href="#office.basic.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\OfficeRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$files</span> <span class="o">=</span> <span class="p">[</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;document.docx&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">),</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;document2.docx&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">),</span> <span class="p">];</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">OfficeRequest</span><span class="p">(</span><span class="nv">$files</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="office.orientation" href="#office.orientation"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Orientation</h2> <p>You may also customize the resulting PDF format.</p> <p>By default, it will be rendered with <code>portrait</code> orientation.</p> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="office.orientation.c_url" href="#office.orientation.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/office <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@document.docx <span class="se">\ </span><span class="se"></span> --form <span class="nv">landscape</span><span class="o">=</span><span class="nb">true</span> <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="office.orientation.go" href="#office.orientation.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">doc</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;document.docx&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewOfficeRequest</span><span class="p">(</span><span class="nx">doc</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">Landscape</span><span class="p">(</span><span class="kc">true</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="office.orientation.php" href="#office.orientation.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\OfficeRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$files</span> <span class="o">=</span> <span class="p">[</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;document.docx&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">),</span> <span class="p">];</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">OfficeRequest</span><span class="p">(</span><span class="nv">$files</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setLandscape</span><span class="p">(</span><span class="k">true</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="office.page_ranges" href="#office.page_ranges"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Page ranges</h2> <p>You may specify the page ranges to convert.</p> <p>The format is the same as the one from the print options of LibreOffice, e.g. <code>1-1</code> or <code>1-4</code>.</p> <blockquote> <p><strong>Attention:</strong> if more than one document, the page ranges will be applied for each document.</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="office.page_ranges.c_url" href="#office.page_ranges.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/office <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@document.docx <span class="se">\ </span><span class="se"></span> --form <span class="nv">pageRanges</span><span class="o">=</span><span class="s1">&#39;1-3&#39;</span> <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="office.page_ranges.go" href="#office.page_ranges.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">doc</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;document.docx&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewOfficeRequest</span><span class="p">(</span><span class="nx">doc</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">PageRanges</span><span class="p">(</span><span class="s">&#34;1-3&#34;</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="office.page_ranges.php" href="#office.page_ranges.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\OfficeRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$files</span> <span class="o">=</span> <span class="p">[</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;document.docx&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">),</span> <span class="p">];</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">OfficeRequest</span><span class="p">(</span><span class="nv">$files</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setPageRanges</span><span class="p">(</span><span class="s1">&#39;1-3&#39;</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> </div> <div class="Page" id="merge"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="merge" href="#merge"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Merge</h1> <p>Gotenberg provides the endpoint <code>/merge</code> for merging PDFs.</p> <p>It accepts <code>POST</code> requests with a <code>multipart/form-data</code> Content-Type.</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="merge.basic" href="#merge.basic"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Basic</h2> <p>Nothing fancy here: you may send one or more PDF files and the API will merge them and return the resulting PDF file.</p> <blockquote> <p><strong>Attention:</strong> Gotenberg merges the PDF files alphabetically.</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="merge.basic.c_url" href="#merge.basic.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/merge <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@file.pdf <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@file2.pdf <span class="se">\ </span><span class="se"></span> -o result.pdf </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="merge.basic.go" href="#merge.basic.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">pdf</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;file.pdf&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">pdf2</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;file2.pdf&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewMergeRequest</span><span class="p">(</span><span class="nx">pdf</span><span class="p">,</span> <span class="nx">pdf2</span><span class="p">)</span> <span class="nx">dest</span> <span class="o">:=</span> <span class="s">&#34;result.pdf&#34;</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Store</span><span class="p">(</span><span class="nx">req</span><span class="p">,</span> <span class="nx">dest</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="merge.basic.php" href="#merge.basic.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\MergeRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$files</span> <span class="o">=</span> <span class="p">[</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;file.pdf&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">),</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;file2.pdf&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">),</span> <span class="p">];</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">MergeRequest</span><span class="p">(</span><span class="nv">$files</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> </div> <div class="Page" id="timeout"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="timeout" href="#timeout"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Timeout</h1> <p>All endpoints accept a form field named <code>waitTimeout</code>.</p> <p>The API will wait the given <strong>seconds</strong> before it considers the conversion to be unsucessful. If unsucessful, it returns a <code>504</code> HTTP code.</p> <p>It takes a float as value (e.g <code>2.5</code> for 2.5 seconds).</p> <blockquote> <p>You may also define this value globally: see the <a href="#environment_variables.default_wait_timeout">environment variables</a> section.</p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="timeout.examples" href="#timeout.examples"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Examples</h2> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="timeout.examples.c_url" href="#timeout.examples.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">waitTimeout</span><span class="o">=</span>2.5 </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="timeout.examples.go" href="#timeout.examples.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">WaitTimeout</span><span class="p">(</span><span class="mf">2.5</span><span class="p">)</span> <span class="nx">resp</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Post</span><span class="p">(</span><span class="nx">req</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="timeout.examples.php" href="#timeout.examples.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Request</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setWaitTimeout</span><span class="p">(</span><span class="mf">2.5</span><span class="p">);</span> <span class="nv">$dest</span> <span class="o">=</span> <span class="s1">&#39;result.pdf&#39;</span><span class="p">;</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">store</span><span class="p">(</span><span class="nv">$request</span><span class="p">,</span> <span class="nv">$dest</span><span class="p">);</span> </pre> </div> <div class="Page" id="webhook"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook" href="#webhook"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Webhook</h1> <p>All endpoints accept a form field named <code>webhookURL</code>.</p> <p>If provided, the API will send the resulting PDF file in a <code>POST</code> request with the <code>application/pdf</code> Content-Type to given URL.</p> <p>By doing so, your requests to the API will be over before the conversions are actually done!</p> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.examples" href="#webhook.examples"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Examples</h2> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.examples.c_url" href="#webhook.examples.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">webhookURL</span><span class="o">=</span><span class="s1">&#39;http://myapp.com/webhook/&#39;</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.examples.go" href="#webhook.examples.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">WebhookURL</span><span class="p">(</span><span class="s">&#34;http://myapp.com/webhook/&#34;</span><span class="p">)</span> <span class="nx">resp</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Post</span><span class="p">(</span><span class="nx">req</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.examples.php" href="#webhook.examples.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setWebhookURL</span><span class="p">(</span><span class="s1">&#39;http://myapp.com/webhook/&#39;</span><span class="p">);</span> <span class="nv">$resp</span> <span class="o">=</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">post</span><span class="p">(</span><span class="nv">$request</span><span class="p">);</span> </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.timeout" href="#webhook.timeout"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Timeout</h2> <p>If a <code>webhookURL</code> is provided, you may also send a form field named <code>webhookURLTimeout</code>.</p> <p>The API will wait the given <strong>seconds</strong> before it considers the sending of the resulting PDF to be unsucessful.</p> <p>It takes a float as value (e.g <code>2.5</code> for 2.5 seconds).</p> <blockquote> <p>You may also define this value globally: see the <a href="#environment_variables.default_webhook_url_timeout">environment variables</a> section.</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.timeout.c_url" href="#webhook.timeout.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">webhookURL</span><span class="o">=</span><span class="s1">&#39;http://myapp.com/webhook/&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">webhookURLTimeout</span><span class="o">=</span>2.5 </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.timeout.go" href="#webhook.timeout.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">WebhookURL</span><span class="p">(</span><span class="s">&#34;http://myapp.com/webhook/&#34;</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">WebhookURLTimeout</span><span class="p">(</span><span class="mf">2.5</span><span class="p">)</span> <span class="nx">resp</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Post</span><span class="p">(</span><span class="nx">req</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.timeout.php" href="#webhook.timeout.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setWebhookURL</span><span class="p">(</span><span class="s1">&#39;http://myapp.com/webhook/&#39;</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setWebhookURLTimeout</span><span class="p">(</span><span class="mf">2.5</span><span class="p">);</span> <span class="nv">$resp</span> <span class="o">=</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">post</span><span class="p">(</span><span class="nv">$request</span><span class="p">);</span> </pre> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.custom_http_headers" href="#webhook.custom_http_headers"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Custom HTTP headers</h2> <p>You may send your own HTTP headers to the <code>webhookURL</code>.</p> <p>For instance, by adding the HTTP header <code>Gotenberg-Webhookurl-Your-Header</code> to your request, the API will send a request to the <code>webhookURL</code> with the HTTP header <code>Your-Header</code>.</p> <blockquote> <p><strong>Attention:</strong> the API uses a canonical format for the HTTP headers: it transforms the first letter and any letter following a hyphen to upper case; the rest are converted to lowercase. For example, the canonical key for <code>accept-encoding</code> is <code>Accept-Encoding</code>.</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.custom_http_headers.c_url" href="#webhook.custom_http_headers.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Gotenberg-Webhookurl-Your-Header: Foo&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">webhookURL</span><span class="o">=</span><span class="s1">&#39;http://myapp.com/webhook/&#39;</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.custom_http_headers.go" href="#webhook.custom_http_headers.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">WebhookURL</span><span class="p">(</span><span class="s">&#34;http://myapp.com/webhook/&#34;</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">AddWebhookURLHTTPHeader</span><span class="p">(</span><span class="s">&#34;Your-Header&#34;</span><span class="p">,</span> <span class="s">&#34;Foo&#34;</span><span class="p">)</span> <span class="nx">resp</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Post</span><span class="p">(</span><span class="nx">req</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="webhook.custom_http_headers.php" href="#webhook.custom_http_headers.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setWebhookURL</span><span class="p">(</span><span class="s1">&#39;http://myapp.com/webhook/&#39;</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">addWebhookURLHTTPHeader</span><span class="p">(</span><span class="s1">&#39;Your-Header&#39;</span><span class="p">,</span> <span class="s1">&#39;Foo&#39;</span><span class="p">);</span> <span class="nv">$resp</span> <span class="o">=</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">post</span><span class="p">(</span><span class="nv">$request</span><span class="p">);</span> </pre> </div> <div class="Page" id="result_filename"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="result_filename" href="#result_filename"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Result filename</h1> <p>All endpoints accept a form field named <code>resultFilename</code>.</p> <p>If provided, the API will return the resulting PDF file with the given filename. Otherwise a random filename is used.</p> <blockquote> <p><strong>Attention:</strong> this feature does not work if the form field <code>webhookURL</code> is given.</p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="result_filename.examples" href="#result_filename.examples"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Examples</h2> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="result_filename.examples.c_url" href="#result_filename.examples.c_url"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>cURL</h3> <pre class="chroma">$ curl --request POST <span class="se">\ </span><span class="se"></span> --url http://localhost:3000/convert/html <span class="se">\ </span><span class="se"></span> --header <span class="s1">&#39;Content-Type: multipart/form-data&#39;</span> <span class="se">\ </span><span class="se"></span> --form <span class="nv">files</span><span class="o">=</span>@index.html <span class="se">\ </span><span class="se"></span> --form <span class="nv">resultFilename</span><span class="o">=</span><span class="s1">&#39;foo.pdf&#39;</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="result_filename.examples.go" href="#result_filename.examples.go"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Go</h3> <pre class="chroma"><span class="kn">import</span> <span class="s">&#34;github.com/thecodingmachine/gotenberg-go-client/v7&#34;</span> <span class="nx">c</span> <span class="o">:=</span> <span class="o">&amp;</span><span class="nx">gotenberg</span><span class="p">.</span><span class="nx">Client</span><span class="p">{</span><span class="nx">Hostname</span><span class="p">:</span> <span class="s">&#34;http://localhost:3000&#34;</span><span class="p">}</span> <span class="nx">index</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewDocumentFromPath</span><span class="p">(</span><span class="s">&#34;index.html&#34;</span><span class="p">,</span> <span class="s">&#34;/path/to/file&#34;</span><span class="p">)</span> <span class="nx">req</span> <span class="o">:=</span> <span class="nx">gotenberg</span><span class="p">.</span><span class="nf">NewHTMLRequest</span><span class="p">(</span><span class="nx">index</span><span class="p">)</span> <span class="nx">req</span><span class="p">.</span><span class="nf">ResultFilename</span><span class="p">(</span><span class="s">&#34;foo.pdf&#34;</span><span class="p">)</span> <span class="nx">resp</span><span class="p">,</span> <span class="nx">_</span> <span class="o">:=</span> <span class="nx">c</span><span class="p">.</span><span class="nf">Post</span><span class="p">(</span><span class="nx">req</span><span class="p">)</span> </pre> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="result_filename.examples.php" href="#result_filename.examples.php"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>PHP</h3> <pre class="chroma"><span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Client</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\DocumentFactory</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\HTMLRequest</span><span class="p">;</span> <span class="k">use</span> <span class="nx">TheCodingMachine\Gotenberg\Request</span><span class="p">;</span> <span class="nv">$client</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">Client</span><span class="p">(</span><span class="s1">&#39;http://localhost:3000&#39;</span><span class="p">,</span> <span class="k">new</span> <span class="nx">\Http\Adapter\Guzzle6\Client</span><span class="p">());</span> <span class="nv">$index</span> <span class="o">=</span> <span class="nx">DocumentFactory</span><span class="o">::</span><span class="na">makeFromPath</span><span class="p">(</span><span class="s1">&#39;index.html&#39;</span><span class="p">,</span> <span class="s1">&#39;/path/to/file&#39;</span><span class="p">);</span> <span class="nv">$request</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">HTMLRequest</span><span class="p">(</span><span class="nv">$index</span><span class="p">);</span> <span class="nv">$request</span><span class="o">-&gt;</span><span class="na">setResultFilename</span><span class="p">(</span><span class="s1">&#39;foo.pdf&#39;</span><span class="p">);</span> <span class="nv">$resp</span> <span class="o">=</span> <span class="nv">$client</span><span class="o">-&gt;</span><span class="na">post</span><span class="p">(</span><span class="nv">$request</span><span class="p">);</span> </pre> </div> <div class="Page" id="scalability"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="scalability" href="#scalability"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Scalability</h1> <p>The API uses under the hood intricate programs.</p> <p>Gotenberg tries to abstract as much complexity as possible but it can only do it to a certain extent.</p> <p>For instance, <a href="#office">Office</a> and <a href="#merge">Merge</a> endpoints will start respectively as many LibreOffice (unoconv) and PDTk instances as there are requests. The limitation here is the available memory and CPU usage.</p> <p>On another hand, for the <a href="#html">HTML</a>, <a href="#url">URL</a> and <a href="#markdown">Markdown</a> endpoints, the API does only 6 conversions in parallel. Indeed, Google Chrome misbehaves if there are too many concurrent conversions.</p> <p><strong>The more concurrent requests, the more <code>504</code> HTTP codes the API will return.</strong></p> <blockquote> <p>See our <a href="https://github.com/thecodingmachine/gotenberg/tree/master/loadtesting">load testing use case</a> for more details about the API behaviour under heavy load.</p> </blockquote> <h2 class="Heading"><a class="Anchor" aria-hidden="true" id="scalability.strategies" href="#scalability.strategies"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Strategies</h2> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="scalability.strategies.increase_timeout" href="#scalability.strategies.increase_timeout"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Increase timeout</h3> <p>You may increase the conversion timeout. In other words, you accept that a conversion takes more time if the API is under heavy load.</p> <blockquote> <p>See <a href="#timeout">timeout section</a>.</p> </blockquote> <h3 class="Heading"><a class="Anchor" aria-hidden="true" id="scalability.strategies.scaling" href="#scalability.strategies.scaling"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Scaling</h3> <p>The API being stateless, you may scale it as much as you want.</p> <p>For instance, using the following Docker Compose file:</p> <pre class="chroma"><span class="nt">version</span><span class="p">:</span><span class="w"> </span><span class="s1">&#39;3&#39;</span><span class="w"> </span><span class="w"> </span><span class="w"></span><span class="nt">services</span><span class="p">:</span><span class="w"> </span><span class="w"> </span><span class="w"> </span><span class="c"># your other services</span><span class="w"> </span><span class="w"> </span><span class="w"> </span><span class="nt">gotenberg</span><span class="p">:</span><span class="w"> </span><span class="w"> </span><span class="nt">image</span><span class="p">:</span><span class="w"> </span><span class="l">thecodingmachine/gotenberg:6</span><span class="w"> </span></pre> <p>You may now launch your services using:</p> <pre class="chroma">$ docker-compose up --scale <span class="nv">gotenberg</span><span class="o">=</span>your_number_of_instances </pre> <p>When requesting the Gotenberg service with your client(s), Docker will automatically redirect a request to a Gotenberg container according to the round-robin strategy.</p> </div> <div class="Page" id="ping"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="ping" href="#ping"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Ping</h1> <p>Gotenberg provides the endpoint <code>/ping</code> for checking the API availability with a simple <code>GET</code> request.</p> <p>Currently this endpoint does nothing special. A better way to monitor Gotenberg would be by checking the memory usage.</p> <p>Also, as the API uses under the hood intricate programs, you should restart your Gotenberg instances from time to time to ensure a nominal behaviour.</p> </div> <div class="Page" id="fonts"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="fonts" href="#fonts"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Fonts</h1> <p>By default, a handful of fonts are installed. Asian characters are also supported out of the box.</p> <p>If you wish to use more fonts, you will have to create your own image:</p> <pre class="chroma"><span class="k">FROM</span><span class="s"> thecodingmachine/gotenberg:6</span><span class="err"> </span><span class="err"> </span><span class="err"></span><span class="k">USER</span><span class="s"> root</span><span class="err"> </span><span class="err"> </span><span class="err"></span><span class="k">RUN</span> apt-get -y install yourfonts<span class="err"> </span><span class="err"> </span><span class="err"></span><span class="k">USER</span><span class="s"> gotenberg</span><span class="err"> </span></pre> </div> <div class="Page" id="links"> <h1 class="Heading"><a class="Anchor" aria-hidden="true" id="links" href="#links"> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-link"><path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path><path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path></svg> </a>Links</h1> <p align="center"> <img src="https://user-images.githubusercontent.com/8983173/50009948-84b01e00-ffb8-11e8-850b-fc240382c626.png" alt="Gotenberg logo" width="150" height="150"/> </p> <ul> <li>Follow the progress on the <a href="https://github.com/thecodingmachine/gotenberg">GitHub repository</a></li> <li>Follow <a href="https://twitter.com/gulnap">@gulnap</a> on Twitter</li> <li>Thanks to <a href="https://github.com/mafredri">@mafredri</a> for his help and his wonderful <a href="https://github.com/mafredri/cdp">cdp</a> library</li> <li>OpenAPI documentation for the API can be found <a href="https://github.com/thecodingmachine/gotenberg/blob/master/docs/openapi.yaml">on GitHub</a></li> </ul> </div> <div class="Footer"> </div> <script src="theme/gotenberg/js/index.js"></script> </div> </div> </div> </div></body></html>
html
import React from "react" import styled from "@emotion/styled" import { keyframes } from "@emotion/core" import it from "param.macro" import { Shape } from "../svg" import { navigate } from "gatsby" import { Card, CardContainer } from "./card" import { interactive, whileMouseHover, getStyle, afterMouseHover, whileTap, afterTap, } from "styled-benefits" import { Link } from "../link" const decorationAnimation = keyframes` from { transform: rotate(0deg) scale(1); } to { transform: rotate(50deg) scale(23); } 20% { transform: rotate(50deg); } 100% { transform: scale(23) } ` const rAnimation = keyframes` from { transform: rotate(0deg) scale(1); } to { transform: rotate(50deg) scale(23); } 50% { transform: rotate(100deg); } 100% { transform: scale(23) } ` const CardFill = interactive(styled.a` ${getStyle(Card)}; height: 100%; text-decoration: none; transition: 0.1s color, 0.5s transform; #cardDecoration { position: relative; margin-left: 1.3rem; transition: 0.5s transform; } ${whileMouseHover}, ${whileTap} { color: ${it.theme?.colors.primaryText}; transform: scale(0.98); #cardDecoration { animation: ${decorationAnimation} 0.5s forwards; } } ${afterMouseHover(0.3)}, ${afterTap(0.3)} { #cardDecoration { animation: ${rAnimation} 0.3s forwards reverse; } } `) const CardContent = styled.div` position: relative; z-index: 1; ` export const DecoratedCard = ({ children, decoration, linkTo }) => { return ( <CardContainer> <Link to={linkTo}> <CardFill> <CardContent>{children}</CardContent> <Shape id="cardDecoration" type={decoration} /> </CardFill> </Link> </CardContainer> ) }
javascript
Dr. K. Meer Mustafa Hussain, M.D.(Paed), D.C.H., Ph.D. (Neonatology), F.R.C.P.(Glasg.) |Dr. K. Meer Mustafa Hussain, M.D.(Paed), D.C.H., Ph.D. (Neonatology), F.R.C.P.(Glasg.) |No. 5 Yemi Street, |This email address is being protected from spambots. You need JavaScript enabled to view it. |M.D. (Ped.), D.C.H., Ph.D. (Neonatology), F.R.C.P. (Glasgow), - 1974-MBBS (Madurai Medical College) - 1983-DCH (Tirunelveli Medical College) - 1986-MD (Paediatrics) (Madras Medical College) - Active Paediatrician Award by the Indian Academy of Paediatrics – Tamil nadu State Chapter. - Awarded Ph.D. Degree by the Tamilnadu Dr. M.G.R. Medical University, Chennai for the thesis "Group B Beta Hemolytic Steptococcus Infection in New Born". - First prize award winner on the subjects "(1) Arterio Venous Communications and(2) Postural Mechanisms in Human beings for two years subsequently from Anatomists Association of Tamil nadu. - Conferred with the “Life Time Achievement Award” by the Scientific Committee of WHO Collaborating Centre in India for Research, Education and Training in Diabetes (jointly with the M.V.Hospital for Diabetes) in the field of Medical Education. - Conferred with the prestigious “Dr.B.C.Roy National Award” by the Medical Council of India for the year 2007, considering his dedicated contribution as 'Eminent Medical Teacher' - Addl. Professor of Paediatrics / Neonatologist H.O.D. Division of Neonatology and Child Development Clinic Institute of Child Health & Hospital for Children, Egmore, Chennai – 600 008. - Life Member Ped, Pulmonology chapter of IAP. - Life Member Ped. Gastro – Enterology Chapter of IAP. - Life Member Breast Feeding Network of India (BPNI) - Submitted recommendation to the Government of Tamil nadu to include Heptatitis – B Immunization in the regular vaccine schedule for all children. - Resource person in ‘Council of Child Welfare’, Shenoy Nagar, Chennai and gave Lectures to VHNs attending at that center at regular intervals. - Co-ordinated Intensified National Pulse Polio Immunization Campaign, till date. - Member, INDIACLEN (A Research Organisation) - Member, State supervisory Board on Prohibition of Sex Selection, Govt. of Tamil nadu. - Life member Indian Medical Association Chennai. - Recipient of Active IAP Member award. - Life member, IAP Disaster Management Group. - Life member, IAP-Ped. Derm Group. - Tamil nadu Hon. State Secretary of IAP – (2years) 1989 – 1999. - Organising Secretary – Chen Pedicon 1999 – Tamil nadu State IAP Conference held at Hotel Savera, at Chennai. - Chairman, Banquet and cultural Committee for Pedicon 2004 – National Conference at Chennai. - Organising secretary for the celebration of “World Breast Feeding Week” at Institute of Child Health & Hospital for Children, Egmore, Chennai – 600 008, in the year 1994, 1995 and in 1996, 1999, 2000, 2001, 2002 and 2003, 2004 & 2005. - Resource person for Lactation management workshop and contributed article in Tamil regarding the Problems and its Solutions for lactation failure mothers. - Midterm conference of IAP at Tirunelveli conducted as early as in 1982. - Seven Tamil nadu State Chapter IAP Conference. - National Pediatric Conference held at Adyar Park Hotel Chennai. - Attended workshop on Pediatric HIV – growing challenge at Chennai. - Resource person for IEC (Interventional Education Communication). - Resource person for RCH Programme for Medical Officers and Staff Nurses. - Resource person for Parental Education Cell. - Organized Mega Pediatric Health Camp at Valluvarkottam, during August 2005. - Joint Coordinator – IAP Tamil nadu State Immunization Cell. - Organiser – Hepatitis B Vaccination Mass Camps for Children on a Competitive price through Chennai city Pediatricians in their clinics. - Organised various CME Programmes and raised adequate funds for IAP – TNSC during my tenure as Office Bearer.Conducted our-reach programme and in Hill stations (JAVAPU HILLS) for Tribal Poor Children. - Conducted National Neonatology Forum – Quiz Programmes at District and divisional levels for Post Graduates. - Zonal Coordinator for IAP – under graduate National Quiz program. - Now functioning as Nodal Officer for Integrated Skilled Training for Staff Nurses in Essential New Born Care under RCH Programmes (Reproductive and Child Health). - Facilitator in IMNCI (Integrated Management of Neonatal and Childhood Illnesses) Programme sponsored by UNICEF. - Coordinator for Regional Workshop on Practical Pediatric Nutrition by IAP-TNSC and Nutrition Society of Indian, Chennai Chapter on 12.12.1999. - Conducted first CME Programme on Pediatric Neurosciences on 24 & 25 – January 1998 at Childs Trust Hospital under the IAP – TNSC Banner. - On 21.03.1998 at Hotel Savera organized a CME Programme on ‘Pediatric Dermatology’ with the Co-ordination of the Renowned Dermatologists. - Submitted Project Summary for conducting Satellite Workshops on Pediatric AIDS Control at all District level to the AIDS Control Society of Tamil nadu. - Life Associate representing IAP – TNSC and participating in various activities of TN – FORCES (Forum for Creche and Child Care Services in Tamil nadu) based in Loyola College, Chennai. - Awarded Ph.D., Degree by the Tamilnadu Dr. M.G.R. Medical University, Chennai for “Group – B Beta Hemolytic Streptococcus Infection in New Born”. - First Prize Award Winner for subsequent Two Years from Anatomists Association of Tamil nadu on the subjects. - Arterio – Venous Communications. - Postural Mechanisms in Human beings. - Presented Scientific Papers in State and National Conferences of IAP. - Published articles in “Indian Journal of Practical Pediatrics”. - Performed Research work on the pattern of Neonatal Sepsis in out Born Nursery. - Pattern of Dermatological manifestation in newborns. - Pattern of Neonatal Sepsis of ICH and HC, Egmore, Chennai. - Effect of Maternal Nutrition Status who had delivered LBW Babies. - Perspectives of Nutritional status of Pre- School children with supplementation of diet and vitamin A solution. - Rapid Diagnosis of Pyogenic meningitis in Children by Co-agglutination Technique. - Management of Lactation Failure. - Obstructive Uropathies in Neonates - An Antenatal Ultrasonogram study. - Article on ‘ Hyper insulinemic hypoglycemic infant’ published in IJPP. - Comparison of Maternal Nutrition Status in Mothers Who had delivered low Birth Weight Babies versus Mothers who had Delivered Normal Birth Weight babies in a Tertiary Referral center. - EXAMINER for Final MBBS Students and for Paediatrics Post Graduate in various Govt. Medical Colleges of Tamil nadu and neighbouring States. - At present functioning as Vigilance Officer for Institute of Child Health and Hospital for Children, Egmore, Chennai. - Senior Warden – for Post-Graduate Hostel for men at Institute of Child Health and Hospital for Children, Egmore, Chennai – 8. - Member – State Supervisor Board – Pre-Conception and Pre-Natal Diagnostic Techniques (Prohibition of Sex Selection). - Joined Service in 1976. - Medical Officer in-charge in the following PHCs. - Reddiar Patti, Tirunelveli Dist. - Vasudevanallur, Tirunelveli Dist. - As Tutor in Anatomy, Biochemistry and Medicine – Tirunelveli Medical College. - As Casualty Medical Officer – Tirunelveli Medical College Hospital. - As Casualty Medical Officer – KMC Hospital, Chennai. - Asst. Prof. of Pediatrics & Medical Registrar – in ICH & HC, Egmore, Chennai. - ICDS – Medical Officer – Chennai. - HOD / UNIT – CHIEF, Division of Neonatology & Child Development Clinic of Institute of Child Health & Hospital for Children, Egmore, Chennai. - Former member Executive Committee Editorial Board of Indian Journal of Practical Pediatrics. - Secretary Tirunelveli District during 1982. - Vice – President (State Rep), TNGDA, for two terms at Chennai. - Delivered Lectures on Various IMA Forum for Practitioners at Chennai. - Served in ARMY MEDICAL CORPS in 454 Medical Battalion at Hyderabad. - Interview was given on various Child Health Problems in Major Private T.V. Channels and Chennai Doordarshan on different Occasions. - Number of Books on Child Health & Breast Feeding in Tamil. "Preservation of Welfare of the Children" - "Safe Motherhood" - "Preserve the Welfare of the Children's Skin" - "DEW" - "Composition of New Poems" - "Mother's Milk - A Unique Feeding" - "Welfare of children - A Note" - Published in the Government of Tamilnadu monthly magazine "Muttram" - Editor of City Pediatric Forum - Chennai.
english
Apple CEO Steve Jobs loves to take potshots at Microsoft. So it was merely par for the course when Jobs' keynote speech at Apple's Worldwide Developer Conference (WWDC) in San Francisco kicked off with an appearance from the two actors from Apple's Mac v. PC advertising campaign. The 'PC guy' - actor John Hodgman - was pretending to be Jobs. He mockingly talked about shutting down Apple after the runaway success of Vista - "which has sold tens of dozens of copies!" This is standard fare for Apple's annual get-together with its developers. However no-one was expecting the real swipe at Microsoft that was about to follow. As expected, the bulk of Job's speech concentrated on Leopard - the next major upgrade for Apple's Mac OS X operating system, and its response to Microsoft's Windows Vista. But it was relatively underwhelming. He began by demonstrating the redesigned Finder - the main desktop interface that you use to control the Mac. It includes a more 3D, transparent Dock and a Quick Look feature. This allows you to preview text, graphics and other types of document without having to open them in an application first. Mocking Microsoft over the pricing structure for the various versions of Vista, Jobs said: "We've got a basic version, which is going to cost $129. We've got a Premium version, which is gonna cost $129. We've got a business version, $129.... And we've got the ultimate version - it's $129." Jokes aside, Jobs also mentioned a couple of moves that are clearly designed to lure PC users into the Apple camp. The first is the inclusion within Leopard of Boot Camp. This is the software Apple developed that allows Intel-based Macs to boot into Windows as well as the Mac OS. He also confirmed that Apple is working closely with Parallels and VMware . These are two companies that are developing 'virtualisation' software that allows Macs to run both OS X and Windows side by side. Apple hopes that many PC users will now be tempted to try out a Mac for the first time, safe in the knowledge that they can still run all their old Windows software if they need to. However, the most audacious move was Jobs announcement that Apple will be releasing a Windows version of the Safari web browser that Apple includes on all Macs. Jobs said that Safari currently has about a 5 per cent share of the browser market. But Apple wants to increase that figure - "and in order to do that we have to create a version of Safari for Windows". Jobs also claimed that Safari running on Windows was almost 50 per cent faster than Microsoft's own Internet Explorer for certain types of tasks. What Jobs didn't explain was how releasing Safari for Windows would help Apple. Perhaps seeing the Apple logo on a few million Windows PCs is simply Jobs' latest wheeze for needling Microsoft. Get the hottest deals available in your inbox plus news, reviews, opinion, analysis, deals and more from the TechRadar team. Dan (Twitter, Google+) is TechRadar's Former Deputy Editor and is now in charge at our sister site T3.com. Covering all things computing, internet and mobile he's a seasoned regular at major tech shows such as CES, IFA and Mobile World Congress. Dan has also been a tech expert for many outlets including BBC Radio 4, 5Live and the World Service, The Sun and ITV News.
english
<gh_stars>10-100 /** * jQuery Plugin: Sticky Tabs * * @author <NAME> <<EMAIL>> * @version 1.2.0 */ (function ( $ ) { $.fn.stickyTabs = function( options ) { var context = this var settings = $.extend({ getHashCallback: function(hash, btn) { return hash } }, options ); // Show the tab corresponding with the hash in the URL, or the first tab. var showTabFromHash = function() { var hash = window.location.hash; var selector = hash ? 'a[href="' + hash + '"]' : 'li.active > a'; $(selector, context).tab('show'); } // We use pushState if it's available so the page won't jump, otherwise a shim. var changeHash = function(hash) { if (history && history.pushState) { history.pushState(null, null, '#' + hash); } else { scrollV = document.body.scrollTop; scrollH = document.body.scrollLeft; window.location.hash = hash; document.body.scrollTop = scrollV; document.body.scrollLeft = scrollH; } } // Set the correct tab when the page loads showTabFromHash(context) // Set the correct tab when a user uses their back/forward button $(window).on('hashchange', showTabFromHash); // Change the URL when tabs are clicked $('a', context).on('click', function(e) { var hash = this.href.split('#')[1]; var adjustedhash = settings.getHashCallback(hash, this); changeHash(adjustedhash); }); return this; }; }( jQuery )); attributes = {}; var root = '/api/apps/'; function load(app_version) { $('.nav-tabs').stickyTabs(); $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { grid.fixStyle() }) attributes= app_version; attributes.files = $.extend(true, [{name:'Main',content:'', disabled: true}],attributes.files) attributes.functions = $.extend(true, [{name:'Constructor',content:'', disabled: true}],attributes.functions) $('.navbar-header .nav a h4').html('API - '+api.name); $('#version').html((attributes.summary || 'Working Version')); new gform({ name: 'resources', data:attributes, actions:[], fields:[ // {type:'output',name:'test',format:{value:'<div></div>'},label:false}, { "name":"resources", "array":true, "type":"fieldset", "fields": [ // "database": {} // {label: false, name:'database',type:'select', required: true,choices:'/api/proxy/databases',label_key:'name',value_key:'id'} {label: "Name", name:'name', required: false, columns:6}, // {label: 'Type', name:'type', type:'select',options:[ // {label: 'MySQL Database',value: 'mysql'}, // {label: 'Oracle Database', value:'oracle'}, // {label: 'Value', value:'value'}, // {label: 'Secret Value (Encrypted at Rest)', value:'secret'} // ], columns:6} ] } ] },'.resources') var options = { data: attributes.routes, el: '.routes', schema:[ {label: 'Description',name: 'description'}, {label: 'Path', name:'path',required:true, validate:[{type:'custom',test:e =>{ if (!/^[\/][a-zA-Z0-9_\/-]*[a-zA-Z0-9]$/.test(e.value)) { return 'Must be a valid url path begining with a / and ending in a number or letter. Please see examples in help text'; } }}], help:'i.e. /example/route or /my-example_2'}, {label: 'Function Name', name:'function_name', required:true, validate:[{type:'custom',test:e =>{ if(!/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/.test(e.value)) { return 'API name must be a valid php function name'; } }}]}, {label: 'Verb',name:'verb',type:'select',options:["ALL", "GET", "POST", "PUT", "DELETE"], required:true}, { "show":false, "name": "parameters", "label": "Parameters", "template":'{{#attributes.required}}<b>{{name}}</b><br> {{/attributes.required}}{{#attributes.optional}}{{#name}}{{name}}<br>{{/name}} {{/attributes.optional}}', } ], actions:[ {name:"create"},'|', {name:"edit"},{'name': 'required', 'label': '<i class="fa fa-lock"></i> Required Parameters',min:1,max:1},{'name': 'optional', 'label': '<i class="fa fa-info"></i> Optional Parameters',min:1,max:1},'|', {name:"delete"} ] }; if(typeof grid !== 'undefined'){ grid.destroy(); } grid = new GrapheneDataGrid(options) grid.on('model:required',function(e){ new gform({ data:e.model.attributes, legend:'Required Parameters', name:'required', "fields": [ { "name":"required", "label": false, "array":{min:1,max:100}, "type":"fieldset", fields:[ {'name':'name','label':'Name',"inline":true,columns:6}, {'name':'example','label':'Example',"inline":true, columns:6}, {'name':'description','label':'Description','type':'textarea',"inline":true} // {'name':'required','label':'Required?','type':'checkbox',falsestate:0,"inline":true,columns:4}, ] } ] }).on('save',function(e){ this.update(e.form.get()); e.form.dispatch('close') }.bind(e.model)).on('cancel',function(e){e.form.dispatch('close')}).modal() }) grid.on('model:optional',function(e){ new gform({ data:e.model.attributes, legend:'Optional Parameters', name:'optional', "fields": [ { "name":"optional", "label": false, "array":{min:1,max:100}, "type":"fieldset", fields:[ {'name':'name','label':'Name',"inline":true,columns:6}, {'name':'example','label':'Example',"inline":true, columns:6}, {'name':'description','label':'Description','type':'textarea',"inline":true} // {'name':'required','label':'Required?','type':'checkbox',falsestate:0,"inline":true,columns:4}, ] } ] }).on('save',function(e){ this.update(e.form.get()); e.form.dispatch('close') }.bind(e.model)).on('cancel',function(e){e.form.dispatch('close')}).modal() }) //adjust ace height to fill page $('body').append('<style>.ace_editor { height: '+($(window).height() - $('.nav-tabs').offset().top -77)+'px; }</style>') //add file managers here filepage = new fileManager('.files',{name:'scripts', items:attributes.files, mode:'ace/mode/php', label:'File'}); functionpage = new fileManager('.functions',{name:'functions', items:attributes.functions, mode:'ace/mode/php', label:'Function', inlinemode:true}); } load(loaded); orig = $.extend({},loaded); $(document).keydown(function(e) { if ((e.which == '115' || e.which == '83' ) && (e.ctrlKey || e.metaKey)) { e.preventDefault(); $('#save').click() } return true; }); $('#save').on('click',function() { script_errors =filepage.errors(); script_errors +=functionpage.errors(); var data = attributes; data.routes = grid.toJSON(); data.resources = gform.instances.resources.get().resources; var errorCount = script_errors.length;//+ css_errors.length if(!errorCount){ data.files = filepage.toJSON(); data.functions = functionpage.toJSON(); data.updated_at = attributes.updated_at; toastr.info('', 'Saving...') $.ajax({ url: '/api/proxy/'+slug+'/apis/'+attributes.api_id+'/code', method: 'PUT', data: data, success:function(e) { if(typeof e.updated_at !== 'undefined'){ attributes.updated_at = e.updated_at; } toastr.clear() toastr.success('', 'Successfully Saved') }, error:function(e) { toastr.error(e.statusText, 'ERROR'); }, // statusCode: { // 404: function() { // toastr.error('You are no longer logged in', 'Logged Out') // }, // 409: function(error) { // test = JSON.parse(JSON.parse(error.responseText).error.message); // toastr.warning('conflict detected:'+error.statusText, 'NOT SAVED') // conflictResults = {}; // conflictResults.sources = (JSON.stringify(test.sources) !== JSON.stringify(this.model.sources)); // conflictResults.css = (JSON.stringify(test.css) !== JSON.stringify(this.model.css)); // conflictResults.options = (JSON.stringify(test.options) !== JSON.stringify(this.model.options)); // conflictResults.scripts = (JSON.stringify(test.script) !== JSON.stringify(this.model.script)); // conflictResults.template = (JSON.stringify(test.template) !== JSON.stringify(this.model.template)); // modal({headerClass:'bg-danger' ,title: 'Conflict(s) detected', content: render('conflict', conflictResults)})//, footer:'<div class="btn btn-danger">Force Save</div>'}) // }.bind(this), // 401: function() { // toastr.error('You are not authorized to perform this action', 'Not Authorized') // } // } }) }else{ toastr.error('Please correct the compile/syntax errors ('+ errorCount +')', 'Errors Found') modal({headerClass:'danger' ,title: 'Syntax Error(s)', content: render('error', {count:errorCount, temp: template_errors, script: script_errors/*, css: css_errors*/})})//, footer:'<div class="btn btn-danger">Force Save</div>'}) } }) $('#import').on('click', function() { new gform({ name: 'update', legend: '<i class="fa fa-cube"></i> Update API', fields: [ {label: 'Descriptor', type: 'textarea'} ] }).on('save', e => { $.ajax({ url: '/api/proxy/'+slug+'/apis/'+attributes.api_id+'/code', method: 'PUT', data: {force: true, updated_at:'', ...JSON.parse(e.form.get('descriptor'))}, success: () => { e.form.trigger('close'); window.location.reload() }, error: e =>{ toastr.error(e.statusText, 'ERROR'); } }) }).on('cancel',function(e){e.form.dispatch('close')}).modal(); }); $('#publish').on('click', function() { new gform({ name: 'publish', legend: '<i class="fa fa-cube"></i> Publish API', fields: [ {label: 'Summary', required: true}, {label: 'Description', type: 'textarea'} ]}).on('save', e => { if(e.form.validate()){ $.ajax({ url: '/api/proxy/'+slug+'/apis/'+attributes.api_id+'/publish', data: e.form.get(), method: 'PUT', success: () => { e.form.trigger('close'); toastr.success('', 'Successfully Published') }, error: e =>{ toastr.error(e.responseJSON.message, 'ERROR'); } }) } }).on('cancel',function(e){e.form.dispatch('close')}).modal(); }); $('#instances').on('click', function() { viewTemplate = Hogan.compile('<div class="list-group">{{#items}}<div class="list-group-item"><a href="https://{{environment.domain}}/{{slug}}" target="_blank">{{name}} ({{environment.name}})</a><a class="btn btn-warning" style="position: absolute;top: 3px;right: 3px;" href="/admin/apiserver/'+slug+'/api_instance/{{id}}" target="_blank"><i class="fa fa-pencil"></i></a></div>{{/items}}</div>'); $.get('/api/proxy/'+slug+'/api_instances', function(data) { data = _.where(data, {api_id:api.id}) if(data.length > 0){ modal({title: 'This API has the following instances', content: viewTemplate.render({items: data})}); }else{ modal({title: 'No instances Found', content: 'This App not currently instantiated.'}); } }) }); $('#versions').on('click', function() { $.ajax({ url: "/api/proxy/"+slug+"/apis/"+api.id+"/versions", success: function(data) { console.log(data); data = _.where(data,{stable:1}) if(!orig.stable) { data.unshift({id:orig.id,summary:'Working Version'}) } new gform({ actions:[{type:'cancel'},{type:'save',label: 'Switch'}], name:'modal', data:{api_version_id:loaded.id}, legend:'Select Version', fields:[ { label: 'Version', name:'api_version_id', options:data, type:'select', format:{ label:"{{summary}}", value:versions=>versions.id } }, ]}).on('save', e => { // switch version e.form.trigger('close'); $.ajax({ url: '/api/proxy/'+slug+'/api_versions/'+e.form.get('api_version_id'), method: 'get', success:function(data) { loaded = data; load(loaded); } }) }) .on('cancel', e => { e.form.trigger('close'); }).modal() } }) })
javascript
<filename>app/routes/index.js import React from 'react'; import { Route, Switch, Redirect } from 'react-router'; import PrivateRoute from "../privateRoute" // ----------- Pages Imports --------------- import Analytics from './Dashboards/Analytics'; import ProjectsDashboard from './Dashboards/Projects'; import System from './Dashboards/System'; import Monitor from './Dashboards/Monitor'; import Financial from './Dashboards/Financial'; import Stock from './Dashboards/Stock'; import Reports from './Dashboards/Reports'; import Widgets from './Widgets'; import Cards from './Cards/Cards'; import CardsHeaders from './Cards/CardsHeaders'; import NavbarOnly from './Layouts/NavbarOnly'; import SidebarDefault from './Layouts/SidebarDefault'; import SidebarA from './Layouts/SidebarA'; import DragAndDropLayout from './Layouts/DragAndDropLayout'; import SidebarWithNavbar from './Layouts/SidebarWithNavbar'; import Accordions from './Interface/Accordions'; import Alerts from './Interface/Alerts'; import Avatars from './Interface/Avatars'; import BadgesLabels from './Interface/BadgesLabels'; import Breadcrumbs from './Interface/Breadcrumbs'; import Buttons from './Interface/Buttons'; import Colors from './Interface/Colors'; import Dropdowns from './Interface/Dropdowns'; import Images from './Interface/Images'; import ListGroups from './Interface/ListGroups'; import MediaObjects from './Interface/MediaObjects'; import Modals from './Interface/Modals'; import Navbars from './Interface/Navbars'; import Paginations from './Interface/Paginations'; import ProgressBars from './Interface/ProgressBars'; import TabsPills from './Interface/TabsPills'; import TooltipPopovers from './Interface/TooltipsPopovers'; import Typography from './Interface/Typography'; import Notifications from './Interface/Notifications'; import CropImage from './Interface/CropImage'; import DragAndDropElements from './Interface/DragAndDropElements'; import Calendar from './Interface/Calendar'; import ReCharts from './Graphs/ReCharts'; import Forms from './Forms/Forms'; import FormsLayouts from './Forms/FormsLayouts'; import InputGroups from './Forms/InputGroups'; import Wizard from './Forms/Wizard'; import TextMask from './Forms/TextMask'; //import Typeahead from './Forms/Typeahead'; import Toggles from './Forms/Toggles'; import Editor from './Forms/Editor'; import DatePicker from './Forms/DatePicker'; import Dropzone from './Forms/Dropzone'; import Sliders from './Forms/Sliders'; import Tables from './Tables/Tables'; import ExtendedTable from './Tables/ExtendedTable'; import AgGrid from './Tables/AgGrid'; import AccountEdit from './Apps/AccountEdit'; import BillingEdit from './Apps/BillingEdit'; import Chat from './Apps/Chat'; import Clients from './Apps/Clients'; import EmailDetails from './Apps/EmailDetails'; import Files from './Apps/Files'; import GalleryGrid from './Apps/GalleryGrid'; import GalleryTable from './Apps/GalleryTable'; import ImagesResults from './Apps/ImagesResults'; import Inbox from './Apps/Inbox'; import NewEmail from './Apps/NewEmail'; import ProfileDetails from './Apps/ProfileDetails'; import ProfileEdit from './Apps/ProfileEdit'; import Projects from './Apps/Projects'; import SearchResults from './Apps/SearchResults'; import SessionsEdit from './Apps/SessionsEdit'; import SettingsEdit from './Apps/SettingsEdit'; import Tasks from './Apps/Tasks'; import TasksDetails from './Apps/TasksDetails'; import TasksKanban from './Apps/TasksKanban'; import Users from './Apps/Users'; import UsersResults from './Apps/UsersResults'; import VideosResults from './Apps/VideosResults'; import ComingSoon from './Pages/ComingSoon'; import Confirmation from './Pages/Confirmation'; import Danger from './Pages/Danger'; import Error404 from './Pages/Error404'; import ForgotPassword from './Pages/ForgotPassword'; import LockScreen from './Pages/LockScreen'; import Login from './Pages/Login'; import Register from './Pages/Register'; import Success from './Pages/Success'; import Timeline from './Pages/Timeline'; // ----------- Firewall --------------- import FirewallRules from './Firewall/Rules/FirewallRules' import FirewallAlias from './Firewall/Alias/firewallAlias'; import Icons from './Icons'; // ----------- Layout Imports --------------- import { DefaultNavbar } from './../layout/components/DefaultNavbar'; import { DefaultSidebar } from './../layout/components/DefaultSidebar'; import { SidebarANavbar } from './../layout/components/SidebarANavbar'; import { SidebarASidebar } from './../layout/components/SidebarASidebar'; //------ Route Definitions -------- // eslint-disable-next-line no-unused-vars export const RoutedContent = () => { return ( <Switch> <Redirect from="/" to="/dashboards/system" exact /> <PrivateRoute path="/dashboards/analytics" exact component={Analytics} /> <PrivateRoute path="/dashboards/projects" exact component={ProjectsDashboard} /> <PrivateRoute exact path="/dashboards/system" component={System} /> <PrivateRoute path="/dashboards/monitor" exact component={Monitor} /> <PrivateRoute path="/dashboards/financial" exact component={Financial} /> <PrivateRoute path="/dashboards/stock" exact component={Stock} /> <PrivateRoute path="/dashboards/reports" exact component={Reports} /> <PrivateRoute path="/firewall/rules" exact component={FirewallRules} /> <PrivateRoute path="/firewall/alias" exact component={FirewallAlias} /> <PrivateRoute path='/widgets' exact component={Widgets} /> { /* Cards Routes */ } <PrivateRoute path='/cards/cards' exact component={Cards} /> <PrivateRoute path='/cards/cardsheaders' exact component={CardsHeaders} /> { /* Layouts */ } <PrivateRoute path='/layouts/navbar' component={NavbarOnly} /> <PrivateRoute path='/layouts/sidebar' component={SidebarDefault} /> <PrivateRoute path='/layouts/sidebar-a' component={SidebarA} /> <PrivateRoute path="/layouts/sidebar-with-navbar" component={SidebarWithNavbar} /> <PrivateRoute path='/layouts/dnd-layout' component={DragAndDropLayout} /> { /* Interface Routes */ } <PrivateRoute component={ Accordions } path="/interface/accordions" /> <PrivateRoute component={ Alerts } path="/interface/alerts" /> <PrivateRoute component={ Avatars } path="/interface/avatars" /> <PrivateRoute component={ BadgesLabels } path="/interface/badges-and-labels" /> <PrivateRoute component={ Breadcrumbs } path="/interface/breadcrumbs" /> <PrivateRoute component={ Buttons } path="/interface/buttons" /> <PrivateRoute component={ Colors } path="/interface/colors" /> <PrivateRoute component={ Dropdowns } path="/interface/dropdowns" /> <PrivateRoute component={ Images } path="/interface/images" /> <PrivateRoute component={ ListGroups } path="/interface/list-groups" /> <PrivateRoute component={ MediaObjects } path="/interface/media-objects" /> <PrivateRoute component={ Modals } path="/interface/modals" /> <PrivateRoute component={ Navbars } path="/interface/navbars" /> <PrivateRoute component={ Paginations } path="/interface/paginations" /> <PrivateRoute component={ ProgressBars } path="/interface/progress-bars" /> <PrivateRoute component={ TabsPills } path="/interface/tabs-pills" /> <PrivateRoute component={ TooltipPopovers } path="/interface/tooltips-and-popovers" /> <PrivateRoute component={ Typography } path="/interface/typography" /> <PrivateRoute component={ Notifications } path="/interface/notifications" /> <PrivateRoute component={ CropImage } path="/interface/crop-image" /> <PrivateRoute component={ DragAndDropElements } path="/interface/drag-and-drop-elements" /> <PrivateRoute component={ Calendar } path="/interface/calendar" /> { /* Forms Routes */ } <PrivateRoute component={ Forms } path="/forms/forms" /> <PrivateRoute component={ FormsLayouts } path="/forms/forms-layouts" /> <PrivateRoute component={ InputGroups } path="/forms/input-groups" /> <PrivateRoute component={ Wizard } path="/forms/wizard" /> <PrivateRoute component={ TextMask } path="/forms/text-mask" /> {/*<Route component={ Typeahead } path="/forms/typeahead" />*/} <PrivateRoute component={ Toggles } path="/forms/toggles" /> <PrivateRoute component={ Editor } path="/forms/editor" /> <PrivateRoute component={ DatePicker } path="/forms/date-picker" /> <PrivateRoute component={ Dropzone } path="/forms/dropzone" /> <PrivateRoute component={ Sliders } path="/forms/sliders" /> { /* Graphs Routes */ } <PrivateRoute component={ ReCharts } path="/graphs/re-charts" /> { /* Tables Routes */ } <PrivateRoute component={ Tables } path="/tables/tables" /> <PrivateRoute component={ ExtendedTable } path="/tables/extended-table" /> <PrivateRoute component={ AgGrid } path="/tables/ag-grid" /> { /* Apps Routes */ } <PrivateRoute component={ AccountEdit } path="/apps/account-edit" /> <PrivateRoute component={ BillingEdit } path="/apps/billing-edit" /> <PrivateRoute component={ Chat } path="/apps/chat" /> <PrivateRoute component={ Clients } path="/apps/clients" /> <PrivateRoute component={ EmailDetails } path="/apps/email-details" /> <PrivateRoute component={ Files } path="/apps/files/:type"/> <PrivateRoute component={ GalleryGrid } path="/apps/gallery-grid" /> <PrivateRoute component={ GalleryTable } path="/apps/gallery-table" /> <PrivateRoute component={ ImagesResults } path="/apps/images-results" /> <PrivateRoute component={ Inbox } path="/apps/inbox" /> <PrivateRoute component={ NewEmail } path="/apps/new-email" /> <PrivateRoute component={ ProfileDetails } path="/apps/profile-details" /> <PrivateRoute component={ ProfileEdit } path="/apps/profile-edit" /> <PrivateRoute component={ Projects } path="/apps/projects/:type" /> <PrivateRoute component={ SearchResults } path="/apps/search-results" /> <PrivateRoute component={ SessionsEdit } path="/apps/sessions-edit" /> <PrivateRoute component={ SettingsEdit } path="/apps/settings-edit" /> <PrivateRoute component={ Tasks } path="/apps/tasks/:type" /> <PrivateRoute component={ TasksDetails } path="/apps/task-details" /> <PrivateRoute component={ TasksKanban } path="/apps/tasks-kanban" /> <PrivateRoute component={ Users } path="/apps/users/:type" /> <PrivateRoute component={ UsersResults } path="/apps/users-results" /> <PrivateRoute component={ VideosResults } path="/apps/videos-results" /> { /* Pages Routes */ } <PrivateRoute component={ ComingSoon } path="/pages/coming-soon" /> <PrivateRoute component={ Confirmation } path="/pages/confirmation" /> <PrivateRoute component={ Danger } path="/pages/danger" /> <PrivateRoute component={ Error404 } path="/pages/error-404" /> <PrivateRoute component={ ForgotPassword } path="/pages/forgot-password" /> <PrivateRoute component={ LockScreen } path="/pages/lock-screen" /> <Route component={ Login } path="/pages/login" /> <PrivateRoute component={ Register } path="/pages/register" /> <PrivateRoute component={ Success } path="/pages/success" /> <PrivateRoute component={ Timeline } path="/pages/timeline" /> <PrivateRoute path='/icons' exact component={Icons} /> { /* 404 */ } <Redirect to="/pages/error-404" /> </Switch> ); }; //------ Custom Layout Parts -------- export const RoutedNavbars = () => ( <Switch> { /* Other Navbars: */} <PrivateRoute component={ SidebarANavbar } path="/layouts/sidebar-a" /> <PrivateRoute component={ NavbarOnly.Navbar } path="/layouts/navbar" /> <PrivateRoute component={ SidebarWithNavbar.Navbar } path="/layouts/sidebar-with-navbar" /> { /* Default Navbar: */} <PrivateRoute component={ DefaultNavbar } /> </Switch> ); export const RoutedSidebars = () => ( <Switch> { /* Other Sidebars: */} <PrivateRoute component={ SidebarASidebar } path="/layouts/sidebar-a" /> <PrivateRoute component={ SidebarWithNavbar.Sidebar } path="/layouts/sidebar-with-navbar" /> { /* Default Sidebar: */} <PrivateRoute component={ DefaultSidebar } /> </Switch> );
javascript
/* * This file is part of the ZombieBox package. * * Copyright © 2015-2021, Interfaced * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import AbstractInfo from 'zb/device/abstract-info'; import {Resolution, findLargest} from 'zb/device/resolutions'; import UnsupportedFeature from 'zb/device/errors/unsupported-feature'; import Rect from 'zb/geometry/rect'; /** */ export default class Info extends AbstractInfo { /** * @override */ type() { return 'pc'; } /** * @override */ version() { return navigator.appVersion; } /** * @override */ manufacturer() { return navigator.vendor; } /** * @override */ model() { return navigator.product; } /** * @override */ serialNumber() { throw new UnsupportedFeature('Serial number getting'); } /** * @override */ softwareVersion() { return navigator.appVersion; } /** * @override */ hardwareVersion() { return navigator.platform; } /** * @override */ getPanelResolution() { return this.getOSDResolution(); } /** * @override */ getOSDResolution() { return findLargest(new Rect({ x0: 0, y0: 0, x1: window.innerWidth, y1: window.innerHeight })) || Resolution.HD; } /** * @override */ _getLocale() { return navigator.language; } }
javascript
In today’s ever-evolving business landscape, emerging trends and Technologies have been instrumental in shaping the way Businesses operate. From automation and artificial intelligence to blockchain and the Internet of Things (IoT), these technologies have disrupted traditional business models and paved the way for new possibilities. Here, we’ll explore some of the emerging trends and technologies that are having a significant impact on the business landscape. 1. Automation and Artificial Intelligence (AI) The use of automation and AI technologies has been growing at an exponential rate. These technologies can help businesses automate their processes, reducing manual intervention and improving efficiency. AI algorithms can also be used to analyze data and provide insights that businesses can use to make informed decisions. Blockchain is a distributed ledger Technology that allows for secure and transparent transactions without the need for intermediaries. It has the potential to revolutionize the way businesses handle transactions and data. Blockchain can be used for supply chain management, digital identity verification, and smart contracts. 3. Internet of Things (IoT) The IoT refers to the connection of everyday devices to the internet, allowing them to communicate with each other and with people. This technology has significant potential for businesses, as it can be used to optimize processes and improve efficiency. For example, businesses can use IoT sensors to monitor production processes, track inventory, and manage logistics. Cloud computing has become increasingly popular among businesses due to its scalability, flexibility, and cost-effectiveness. With cloud computing, businesses can access software, storage, and processing power on demand. This technology has helped businesses reduce costs, improve collaboration, and increase efficiency. 5. Augmented Reality (AR) AR is a technology that overlays digital information onto the physical world. This technology has the potential to revolutionize the way businesses interact with customers. For example, businesses can use AR to create interactive product demos, virtual showrooms, and immersive training programs. The proliferation of data has created a significant challenge for businesses. Big data and analytics technologies can help businesses make sense of the vast amounts of data they collect, providing insights that can be used to make informed decisions. These technologies can also be used to identify patterns, optimize processes, and forecast trends. With the rise of cyber threats, businesses must take cybersecurity seriously. Cybersecurity technologies, such as firewalls, antivirus software, and intrusion detection systems, can help businesses protect their data and networks from cyber threats. 5G technology promises to provide faster and more reliable connectivity, enabling businesses to implement new technologies such as IoT, AR, and AI. This technology has the potential to revolutionize the way businesses operate, providing greater speed, reliability, and bandwidth for data-intensive applications. Quantum computing is a technology that uses quantum mechanics to process information. It has the potential to revolutionize the way businesses handle complex computations and data analysis. This technology can be used for applications such as drug discovery, financial modeling, and climate modeling. 10. Virtual Reality (VR) VR is a technology that allows users to immerse themselves in a digital environment. This technology has significant potential for businesses, as it can be used for applications such as virtual training, product demos, and immersive customer experiences. Emerging trends and technologies have significant potential to impact the business landscape. By embracing these technologies, businesses can improve efficiency, reduce costs, and gain a competitive advantage. However, businesses must also be mindful of the risks associated with these technologies, such as cybersecurity threats and privacy concerns. As such, it is essential for businesses to adopt a holistic approach to technology adoption and implementation. The post Emerging Trends and Technologies Impacting the Business Landscape appeared first on Valon Consulting Group.
english
What does EFF mean? The above is one of EFF meanings. You can download the image below to print or share it with your friends through Twitter, Facebook, Google or Pinterest. If you are a webmaster or blogger, feel free to post the image on your website. The EFF may have other definitions. Please scroll down to see its definitions in English, and other five meanings in your language. Meaning of EFFThe following image presents one of the definitions of EFF in English language. You can download the image file in PNG format for offline use or send image of EFF definition to your friends by email.
english
{"css/styleguide.css":"<KEY>,"css/styleguide.min.css":"<KEY>}
json
Hombale Films’ Salaar Part 1: Ceasefire is one of the most-awaited films of the year. The film, headlined by Prabhas and directed by Prashanth Neel, is carrying a sky-high buzz among the fans and audiences. While the excitement for the trailer is at full-time high, it seems like Prashanth Neel has roped in Kannada star Yash for a cameo, with whom he has done KGF: Chapter I and II. Child singer Theertha Subhash recently confirmed the cameo of Yash in Prabhas starrer. In a recent media interaction, while talking about the superstars as ‘Yash uncle’, ‘Prabhas uncle’ and ‘Prithviraj uncle’, Theertha accidentally confirmed the news. A post shared by Theertha Subhash official ???? (@_theerthasubhash) The actioner has a duration of 2 hours and 55 minutes and is given an 'A' certificate by the censor board. The movie has several bloody combat scenes, violence, and battle scenes. Salaar: Part 1: Ceasefire will star Prabhas along with Prithviraj Sukumaran, Shruti Haasan, and Jagapathi Babu. Made under the direction of Prashanth Neel, the film is produced by Vijay Kiragandur. The film will be released in theaters on December 22, 2023. Catch us for latest Bollywood News, New Bollywood Movies update, Box office collection, New Movies Release , Bollywood News Hindi, Entertainment News, Bollywood Live News Today & Upcoming Movies 2024 and stay updated with latest hindi movies only on Bollywood Hungama.
english
<filename>app/app.css /* app css stylesheet */ /* Flexbox setup, taken from https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Using_CSS_flexible_boxes#Holy_Grail_Layout_example For flexbox practice, see: https://demo.agektmr.com/flexbox/ http://the-echoplex.net/flexyboxes/ http://codepen.io/justd/pen/yydezN ******* http://flexboxfroggy.com/ ******** v interesting http://learnlayout.com/flexbox.html */ .view-main { min-height: 80vh; margin: 0px; padding: 0px; display: flex; flex-flow: row; } .view-main > article { margin: .25em; padding: .25em; border: 3px solid blue; border-radius: 7pt; background: #dddd88; flex: 3 1 60%; order: 2; } .view-main > nav { margin: .25em; padding: .25em; border: 1px solid #8888bb; border-radius: 7pt; background: #ccccff; flex: 1 6 20%; order: 1; } .view-main > aside { margin: .25em; padding: .25em; border: 1px solid #8888bb; border-radius: 7pt; background: #ccccff; flex: 1 6 20%; order: 3; } header, footer { display: block; margin: .25em; padding: .25em; min-height: 10vh; border: 1px solid #eebb55; border-radius: 7pt; background: #ffeebb; } /* if too narrow to support three columns */ @media all and (max-width: 640px) { .view-main, #page { flex-direction: column; } .view-main > article, .view-main > nav, .view-main > aside { /* return them to document order */ order: 0; } .view-main > nav, .view-main > aside, header, footer { min-height: 50px; max-height: 50px; } } /*END flexbox holy grail*/ .menu { list-style: none; border-bottom: 0.1em solid black; margin-bottom: 2em; padding: 0 0 0.5em; } .menu:before { content: "["; } .menu:after { content: "]"; } .menu > li { display: inline; } .menu > li + li:before { content: "|"; padding-right: 0.3em; }
css
<reponame>imbhargav5/new-website {"jquery.marquee.js":"<KEY>,"jquery.marquee.min.js":"<KEY>}
json
<gh_stars>1000+ { "name": "<NAME>", "type": "BEP20", "symbol": "HIP", "decimals": 18, "website": "https://hippo.cycan.network/", "description": "Hippo (HIP) is a visionary decentralized community initiative, created by the Cycan community. Our vision is to build a Decentralized Autonomous Organization(DAO) driven and governed entirely by the community.", "explorer": "https://bscscan.com/token/0xE6FFa2e574a8BBEb5243D2109b6B11D4a459F88B", "status": "active", "id": "0xE6FFa2e574a8BBEb5243D2109b6B11D4a459F88B" }
json
An essential component of any dialogue system is understanding the language which is known as spoken language understanding (SLU). Dialogue act classification (DAC), intent detection (ID) and slot filling (SF) are significant aspects of every dialogue system. In this paper, we propose a deep learning-based multi-task model that can perform DAC, ID and SF tasks together. We use a deep bi-directional recurrent neural network (RNN) with long short-term memory (LSTM) and gated recurrent unit (GRU) as the frameworks in our multi-task model. We use attention on the LSTM/GRU output for DAC and ID. The attention outputs are fed to individual task-specific dense layers for DAC and ID. The output of LSTM/GRU is fed to softmax layer for slot filling as well. Experiments on three datasets, i.e. ATIS, TRAINS and FRAMES, show that our proposed multi-task model performs better than the individual models as well as all the pipeline models. The experimental results prove that our attention-based multitask model outperforms the state-of-the-art approaches for the SLU tasks. For DAC, in relation to the individual model, we achieve an improvement of more than 2% for all the datasets. Similarly, for ID, we get an improvement of 1% on the ATIS dataset, while for TRAINS and FRAMES dataset, there is a significant improvement of more than 3% compared to individual models. We also get a 0.8% enhancement for ATIS and a 4% enhancement for TRAINS and FRAMES dataset for SF with respect to individual models. Results obtained clearly show that our approach is better than existing methods. The validation of the obtained results is also demonstrated using statistical significance t tests.
english
<filename>static/data/ocr/d976/45.json { "id": "d976-45", "text": "3\nPlease send all information and material that should\nbe included to <NAME>, JWT-New York, 420 Lexington\nAvenue, N.Y., N.Y. 10017.\n<NAME>" }
json
{ "value": [ "related:are_meet:systems-on-a-chip-revolutionize:by-P", "documents.standard_organization-of:technologies_to-a-", "OASIS_and.wireless:support_EXiST:DOM:will_systems-the", "and-Naval_is.cost-these:and.Only-EXiST-success:will_d", "technology.build:computing:is_compatibility-Standards", "as-The.using-services.for_with-in.to.ensure.of:the.kn", "used:define:Computing_information_unbiased_Nations-pu", "effort:operating-the_for_access_Subcommittee.these:XS", "involved_health_performance_of.these:and-results.and_", "of:ITL.which-in-Control_collaborate_component:better." ] }
json
<!doctype html> <html> <!-- !!! WARNING !!! This file was auto-generated from readme/spec/plugins.md and any manual change made to it will be overwritten. To make a change to this file please modify the source Markdown file: https://github.com/laurent22/joplin/blob/dev/readme/spec/plugins.md --> <head> <title>Plugin system architecture | Joplin</title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://joplinapp.org/css/bootstrap.min.css"> <link rel="shortcut icon" type="image/x-icon" href="https://joplinapp.org/favicon.ico"> <!-- <link rel="stylesheet" href="https://joplinapp.org/css/fontawesome-all.min.css"> --> <link rel="stylesheet" href="https://joplinapp.org/css/fork-awesome.min.css"> <script src="https://joplinapp.org/js/jquery-3.2.1.slim.min.js"></script> <style> body { background-color: #F1F1F1; color: #333333; } .root { overflow: hidden; } a[href^="mailto:"] { word-break: break-all; } table { margin-bottom: 1em; } td, th { padding: .8em; border: 1px solid #ccc; } .page-markdown table pre, .page-markdown table blockquote { margin-bottom: 0; } .page-markdown table pre, .page-markdown table blockquote { margin-bottom: 0; } .page-markdown table pre { background-color: rgba(0,0,0,0); border: none; margin: 0; padding: 0; } h1, h2 { border-bottom: 1px solid #eaecef; padding-bottom: 0.3em; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-weight: 600; font-size: 2em; margin-bottom: 16px; } h2 { font-size: 1.6em; } h3 { font-size: 1.3em; } code { color: black; background-color: #eee; border: 1px solid #ccc; font-size: .85em; /* word-break: break-all; */ } pre code { border: none; } pre { font-size: .85em; } blockquote { font-size: 1em; color: #555; }; #toc ul { margin-bottom: 10px; } #toc > ul > li { margin-bottom: 10px; } #toc { padding-bottom: 1em; } .title { display: flex; align-items: center; } .title-icon { display: flex; height: 1em; } .title-text { display: flex; font-weight: normal; margin-bottom: .2em; margin-left: .5em; } .sub-title { font-weight: normal; } .container { background-color: white; padding: 0; box-shadow: 0 10px 20px #888888; } table.screenshots { margin-top: 2em; margin-bottom: 2em; } table.screenshots th { height: 3em; text-align: center; } table.screenshots th, table.screenshots td { border: 1px solid #C2C2C2; } img[align="left"] { margin-right: 10px; margin-bottom: 10px; } .mobile-screenshot { height: 40em; padding: 1em; } .cli-screenshot-wrapper { background-color: black; vertical-align: top; padding: 1em 2em 1em 1em; } .cli-screenshot { font-family: "Monaco", "Inconsolata", "CONSOLAS", "Deja Vu Sans Mono", "Droid Sans Mono", "Andale Mono", monospace; background-color: black; color: white; border: none; } .cli-screenshot .prompt { color: #48C2F0; } .top-screenshot { margin-top: 2em; text-align: center; } .header { position: relative; padding-left: 2em; padding-right: 2em; padding-top: 1em; padding-bottom: 1em; color: white; background-color: #2B2B3D; } .header a h1 { color: white; } .header a:hover { text-decoration: none; } .content { padding-left: 2em; padding-right: 2em; padding-bottom: 2em; padding-top: 2em; } .forkme { position: absolute; right: 0; top:0; } .nav-wrapper { position: relative; width: inherit; } .nav { background-color: black; display: flex; flex-direction: row; align-items: center; } .nav.sticky { position:fixed; top: 0; width: inherit; box-shadow: 0 0 10px #000000; } .nav a { color: white; display: inline-block; padding: .6em .9em .6em .9em; } .nav ul { padding-left: 2em; margin-bottom: 0; display: table-cell; display: flex; width: 100%; } .nav ul li { display: inline-block; padding: 0; } .nav li.selected { background-color: #222; font-weight: bold; } .nav-right { display: flex; text-align: right; vertical-align: middle; line-height: 0; margin-right: 10px; } .nav-right .share-btn { display: none; } .nav-right .small-share-btn { display: none; } .footer { padding: 2em; border-top: 1px solid #d4d4d4; margin-top: 2em; color: gray; font-size: .9em; } a.heading-anchor { display: inline-block; opacity: 0; width: 1.3em; font-size: 0.7em; margin-left: 0.4em; line-height: 1em; text-decoration: none; transition: opacity 0.3s; } a.heading-anchor:hover, h1:hover a.heading-anchor, h2:hover a.heading-anchor, h3:hover a.heading-anchor, h4:hover a.heading-anchor, h5:hover a.heading-anchor, h6:hover a.heading-anchor { opacity: 1; } @media (min-width: 992px) { .content{ display: flex; } #toc{ display: block!important; align-self: flex-start; width: 300px; position: sticky; top: 20px; left: 0; } .main{ width: calc(100% - 300px); } } .bottom-links { display: flex; justify-content: center; border-top: 1px solid #d4d4d4; margin-top: 30px; padding-top: 25px; } @media all and (min-width: 400px) { .nav-right .share-btn { display: inline-block; } .nav-right .small-share-btn { display: none; } } </style> </head> <body> <div class="container root page-plugins"> <div class="header"> <a class="forkme" href="https://github.com/laurent22/joplin"><img src="https://joplinapp.org/images/ForkMe.png"/></a> <a href="https://joplinapp.org"><h1 class="title"><img class="title-icon" src="https://joplinapp.org/images/Icon512.png"><span class="title-text">Joplin</span></h1></a> <p class="sub-title">An open source note taking and to-do application with synchronisation capabilities</p> </div> <div class="nav-wrapper"> <div class="nav"> <ul> <li class=""><a href="https:&#x2F;&#x2F;joplinapp.org/" title="Home"><i class="fa fa-home"></i></a></li> <li><a href="https://discourse.joplinapp.org" title="Forum">Forum</a></li> <li><a class="help" href="#" title="Menu">Menu</a></li> <!-- <li><a class="gsod" href="https://joplinapp.org/gsod2020/" title="Google Season of Docs 2020">GSoD 2020</a></li> --> </ul> <div class="nav-right"> <!-- <iframe class="share-btn" src="https://www.facebook.com/plugins/share_button.php?href=http%3A%2F%2Fjoplinapp.org&layout=button&size=small&mobile_iframe=true&width=60&height=20&appId" width="60" height="20" style="border:none;overflow:hidden" scrolling="no" frameborder="0" allowTransparency="true"></iframe> <iframe class="share-btn" src="https://platform.twitter.com/widgets/tweet_button.html?url=http%3A%2F%2Fjoplinapp.org" width="62" height="20" title="Tweet" style="border: 0; overflow: hidden;"></iframe> --> <iframe class="share-btn share-btn-github" src="https://ghbtns.com/github-btn.html?user=laurent22&repo=joplin&type=star&count=true" frameborder="0" scrolling="0" width="100px" height="20px"></iframe> </div> </div> </div> <div class="content"> <div id="toc"><ul> <li> <p>Applications</p> <ul> <li><a href="https://joplinapp.org/desktop/">Desktop application</a></li> <li><a href="https://joplinapp.org/mobile/">Mobile applications</a></li> <li><a href="https://joplinapp.org/terminal/">Terminal application</a></li> <li><a href="https://joplinapp.org/clipper/">Web Clipper</a></li> </ul> </li> <li> <p>Support</p> <ul> <li><a href="https://discourse.joplinapp.org">Joplin Forum</a></li> <li><a href="https://joplinapp.org/markdown/">Markdown Guide</a></li> <li><a href="https://joplinapp.org/e2ee/">How to enable end-to-end encryption</a></li> <li><a href="https://joplinapp.org/conflict/">What is a conflict?</a></li> <li><a href="https://joplinapp.org/debugging/">How to enable debug mode</a></li> <li><a href="https://joplinapp.org/rich_text_editor/">About the Rich Text editor limitations</a></li> <li><a href="https://joplinapp.org/faq/">FAQ</a></li> </ul> </li> <li> <p>Joplin API - Get Started</p> <ul> <li><a href="https://joplinapp.org/api/overview/">Joplin API Overview</a></li> <li><a href="https://joplinapp.org/api/get_started/plugins/">Plugin development</a></li> <li><a href="https://joplinapp.org/api/tutorials/toc_plugin/">Plugin tutorial</a></li> </ul> </li> <li> <p>Joplin API - References</p> <ul> <li><a href="https://joplinapp.org/api/references/plugin_api/classes/joplin.html">Plugin API</a></li> <li><a href="https://joplinapp.org/api/references/rest_api/">Data API</a></li> <li><a href="https://joplinapp.org/api/references/plugin_manifest/">Plugin manifest</a></li> <li><a href="https://joplinapp.org/api/references/plugin_loading_rules/">Plugin loading rules</a></li> </ul> </li> <li> <p>Development</p> <ul> <li><a href="https://github.com/laurent22/joplin/blob/dev/BUILD.md">How to build the apps</a></li> <li><a href="https://joplinapp.org/spec/e2ee/">End-to-end encryption spec</a></li> <li><a href="https://joplinapp.org/spec/history/">Note History spec</a></li> <li><a href="https://joplinapp.org/spec/sync_lock/">Sync Lock spec</a></li> <li><a href="https://joplinapp.org/spec/plugins/">Plugin Architecture spec</a></li> <li><a href="https://joplinapp.org/spec/search_sorting/">Search Sorting spec</a></li> <li><a href="https://joplinapp.org/spec/server_file_url_format/">Server: File URL Format</a></li> <li><a href="https://joplinapp.org/spec/server_delta_sync/">Server: Delta Sync</a></li> <li><a href="https://joplinapp.org/spec/server_sharing/">Server: Sharing</a></li> </ul> </li> <li> <p>Google Summer of Code 2020</p> <ul> <li><a href="https://joplinapp.org/gsoc2020/index/">Google Summer of Code 2020</a></li> <li><a href="https://joplinapp.org/gsoc2020/ideas/">Project Ideas</a></li> </ul> </li> <li> <p>About</p> <ul> <li><a href="https://joplinapp.org/changelog/">Changelog (Desktop App)</a></li> <li><a href="https://joplinapp.org/changelog_cli/">Changelog (CLI App)</a></li> <li><a href="https://joplinapp.org/changelog_server/">Changelog (Server)</a></li> <li><a href="https://joplinapp.org/stats/">Stats</a></li> <li><a href="https://joplinapp.org/donate/">Donate</a></li> </ul> </li> </ul> </div> <div class="main"> <h1>Plugin system architecture<a name="plugin-system-architecture" href="#plugin-system-architecture" class="heading-anchor">🔗</a></h1> <p>The plugin system assumes a multi-process architecture, which is safer and easier to manage. For example if a plugin freezes or crashes, it doesn't bring down the app with it. It also makes it easier to find the source of problem when there is one - eg. we know that process X has crashed so the problem is with the plugin running inside. The alternative, to run everything within the same process, would make it very hard to make such a diagnostic. Once a plugin call is frozen in an infinite loop or crashes the app, we can't know anything.</p> <h2>Main architecture elements<a name="main-architecture-elements" href="#main-architecture-elements" class="heading-anchor">🔗</a></h2> <h3>Plugin script<a name="plugin-script" href="#plugin-script" class="heading-anchor">🔗</a></h3> <p>Written by the user and loaded by Joplin, it's a simple JavaScript file that makes calls to the plugin API. It is loaded in a separate process.</p> <h3>Sandbox proxy<a name="sandbox-proxy" href="#sandbox-proxy" class="heading-anchor">🔗</a></h3> <p>It is loaded in the same process as the plugin script. Whenever the plugin script calls a plugin API function (eg. joplin.commands.execute) it goes through this proxy. The proxy then converts the call to a plain string and use IPC to send the call to the plugin host. The plugin host executes the function on the plugin API then sends back the result by IPC call again.</p> <h3>Plugin host<a name="plugin-host" href="#plugin-host" class="heading-anchor">🔗</a></h3> <p>The plugin host is simply the main application. Its role is to start and initialise the plugin service and to load plugins from the provided script files.</p> <h3>Plugin service<a name="plugin-service" href="#plugin-service" class="heading-anchor">🔗</a></h3> <p>It is used to load and run plugins. Running plugins is platform-specific, thus this part is injected into the service via a platform-specific Plugin Runner.</p> <h3>Plugin runner<a name="plugin-runner" href="#plugin-runner" class="heading-anchor">🔗</a></h3> <p>This is the platform-specfic way to load and run a plugin. For example, on desktop, it creates a new BrowserWindow (which is a new process), then load the script inside. On Cli, for now the &quot;vm&quot; package is used, so the plugin actually runs within the same process.</p> <p>The plugin runner also initialises the sandbox proxy and injects it into the plugin code.</p> <h3>Plugin API<a name="plugin-api" href="#plugin-api" class="heading-anchor">🔗</a></h3> <p>The plugin API is a light wrapper over Joplin's internal functions and services. All the platforms share some of the plugin API but there can also be some differences. For example, the desktop app exposes the text editor component commands, and so this part of the plugin API is available only on desktop. The difference between platforms is implemented using the PlatformImplementation class, which is injected in the plugin service on startup.</p> <h2>Handling events between the plugin and the host<a name="handling-events-between-the-plugin-and-the-host" href="#handling-events-between-the-plugin-and-the-host" class="heading-anchor">🔗</a></h2> <p>Handling events in plugins is relatively complicated due to the need to send IPC messages and the limitations of the IPC protocol, which in particular cannot transfer functions.</p> <p>For example, let's say we define a command in the plugin:</p> <pre><code class="language-typescript">joplin.commands.register({ name: 'testCommand1', label: 'My Test Command 1', }, { onExecute: (args:any) =&gt; { alert('Testing plugin command 1'); }, }); </code></pre> <p>The &quot;onExecute&quot; event handler needs to be called whenever, for example, a toolbar button associated with this command is clicked. The problem is that it is not possible to send a function via IPC (which can only transfer plain objects), so there has to be a translation layer in between.</p> <p>The way it is done in Joplin is like so:</p> <p>In the <strong>sandbox proxy</strong>, the event handlers are converted to string event IDs and the original event handler is stored in a map before being sent to host via IPC. So in the example above, the command would be converted to this plain object:</p> <pre><code class="language-typescript">{ name: 'testCommand1', label: 'My Test Command 1', }, { onExecute: '___event_handler_123', } </code></pre> <p>Then, still in the sandbox proxy, we'll have a map called something like <code>eventHandlers</code>, which now will have this content:</p> <pre><code class="language-typescript">eventHandlers['___event_handler_123'] = (args:any) =&gt; { alert('Testing plugin command 1'); } </code></pre> <p>In the <strong>plugin runner</strong> (Host side), all the event IDs are converted to functions again, but instead of performing the action directly, it posts an IPC message back to the sandbox proxy using the provided event ID.</p> <p>So in the host, the command will now look like this:</p> <pre><code class="language-typescript">{ name: 'testCommand1', label: 'My Test Command 1', }, { onExecute: (args:any) =&gt; { postMessage('pluginMessage', { eventId: '___event_handler_123', args: args }); }; } </code></pre> <p>At this point, any code in the Joplin application can call the <code>onExecute</code> function as normal without having to know about the IPC translation layer.</p> <p>When the function onExecute is eventually called, the IPC message is sent back to the sandbox proxy, which will decode it and execute it.</p> <p>So on the <strong>sandbox proxy</strong>, we'll have something like this:</p> <pre><code class="language-typescript">window.addEventListener('message', ((event) =&gt; { const eventId = getEventId(event); // Get back the event ID (implementation might be different) const eventArgs = getEventArgs(event); // Get back the args (implementation might be different) if (eventId) { // And call the event handler eventHandlers[eventId](...eventArgs); } })); </code></pre> <div class="bottom-links"> <a href="https://github.com/laurent22/joplin/blob/dev/readme/spec/plugins.md"> <i class="fa fa-github"></i> Improve this doc </a> </div> <script> function stickyHeader() { return; // Disabled if ($(window).scrollTop() > 179) { $('.nav').addClass('sticky'); } else { $('.nav').removeClass('sticky'); } } $('#toc').hide(); $('.help').click(function(event) { event.preventDefault(); $('#toc').show(); }); $(window).scroll(function() { stickyHeader(); }); (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-103586105-1', 'auto'); ga('send', 'pageview'); </script> </div></div> <div class="footer"> Copyright (C) 2016-2021 <NAME> </div> </body> </html>
html
Kuwait: Roshan Martis was elected as the President of Kuwait Pangla Association (KPA), during the annual meeting, held recently at Avanti Palace, Salmiya, Kuwait. The meeting began with an invocation. Joslin D’Souza welcomed the gathering. KPA General Secretary Maxim Noronha read out the annual report and Treasurer Manoj Rego presented the accounts statement. President Naveen Monis expressed his heartfelt gratitude to his committee and KPA members for their whole-hearted support during his tenure as president and assured all support for the new committee. Jerald Quadras conducted the procedure for electing the new committee for the year 2022 / 2023. All the positions were chosen unanimously. Core Committee: Roshan Quadras, Jerald Quadras, Joslin D’Souza, Newly elected President, Roshan Martis expressed his happiness for being chosen to lead KPA and requested everyone to continue their support to take the KPA forward. The event witnessed many members taking part in the AGM as it was also an opportunity to meet everyone after the Pandemic lockdown. General Secretary Maxim Noronha, who is leaving Kuwait for good, was felicitated on the occasion. He has served KPA as President, General Secretary and in various other positions in the committee for almost two decades. The event also had lots of entertainment and games. Joslin D’Souza compered the programme.
english
# RTTOV-WRF Simulate SEVIRI satellite channels from WRF output - Input: wrfout file (NetCDF format) written by WRF - Output: brightness temperatures or reflectances ### NetCDF output with path to wrfout file as argument Usage: `python rttov_wrf.py /path/to/wrfout (VIS|IR|both)` E.g.: `python rttov_wrf.py /home/wrfout_d01_2008-07-30_12:00:00 both` creates `/path/to//RT_wrfout_d01_2008-07-30_12:00:00.nc` Option: Use `VIS` to get VIS 6 µm reflectance, `IR` to get WV 7.3 µm & IR 10.8 µm brightness temperature or `both` to get all channels. ### xarray output ```python from rttov_wrf import call_pyrttov #config = setup_IR() config = setup_VIS() ds = xr.open_dataset(wrfout_path) times = ds.Time for t in times: rad = call_pyrttov(ds.sel(Time=t), config) ``` ### Install 1) download and compile RTTOV from [nwpsaf.eu](https://www.nwpsaf.eu/site/software/rttov/). 2) get the `pysolar` module 3) configure the python script `rttov_wrf.py`, it sets all the assumptions for radiative transfer. ### Note: The python version calling `rttov_wrf.py` must be the same as the one used for compiling RTTOV.
markdown
Elephants guard their herd very aggressively, especially the calves. They are well known for their close family bonds and the affection they show among their herd. Unfortunately, a one-month-old elephant baby wandered away from its group and was discovered alone in the fields of Jashpur, Chhattisgarh. A video that has been circulating online shows Chhattisgarh forest officers assisting the small elephant calf that has become separated from its herd. Before assisting the infant in locating its herd, forest workers rescued it and performed a preliminary health examination. On social media, the incident's video has gained a lot of attention. "We received information that a month-old elephant cub got separated from the herd. We reached the cub's location in 15 minutes to rescue him. A health checkup was done and the cub was then reunited with the herd," Jashpur Divisional Forest Officer Jitendra Upadhyay told ANI. The officials can be seen in the video coming to the scene and examining the calf for any wounds or illnesses. Then, the authorities assisted the baby in finding its family. Here is a link to the video: "This is so good to know. Kudos to everyone for helping reunite the little one with its herd," commented a Twitter user. Elephant herds often have 8 to 100 members, depending on the terrain and the size of families. If A calf is born then the entire matriarchal herd raises and guards it. Elephants are very intelligent creatures with extraordinary memories, and the matriarchal leaders rely on these traits to survive during dry seasons when they must lead their herds over impossibly long distances to drinking spots they can recall from the past. Elephants have also been observed showing unmistakable symptoms of joy, happiness, rage, and playfulness.
english
It appears that the ropeway project at Nandi Hills — that had remained on paper for decades — is inching closer to reality. The officials of the Tourism Department said that Chief Minister Basavaraj Bommai would be laying the foundation stone for the project at the popular tourist destination tentatively in the last week of February or the first week of March. This comes in the backdrop of the Department of Tourism signing a concession agreement for developing a passenger ropeway with Dyanamicx Ropeway Private Limited. The ropeway will benefit around 30,000-50,000 people who visit the hills daily, with the numbers peaking around the weekend and holidays. “The Tourism Department will provide the land needed and take care of various clearances required for the project, including safety and security. While the project will begin on the department land for now, there will also be an option to change the alignment to reduce the impact on the forest land,” said V. Ram Prasath Manohar, Director, Tourism Department. He added that the project would put the area on the international tourism map. “This project will bring jobs and income to the locals, as well as bring in some revenue for the government. In addition, it will also help to reduce pollution in the hills and assist us in our mission to promote sustainable tourism,” he said. The department also plans to develop certain revenue-generating and non-revenue-generating facilities at the upper and lower landing stations. “These facilities would also cater to tourists staying at hotels and accommodation facilities around the location. Parking facilities for two-wheelers, four-wheelers, rental vehicles, and ATMs have been planned at the foothills,” said a press release from the department. The project, with an alignment of around 2. 93 km, is being developed at a cost of ₹93. 4 crore on a PPP basis. The company will provide the Design, Build, Finance, Operate & Transfer (DBFOT) framework with a concession period of 30 years.
english
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;700&display=swap'); /*VARIABLES*/ :root{ /*COLORES*/ --green_color: #7ACC2D; --dark-green-color: #579021; --white-color: white; --black-color: #313337; /*TIPPOGRAFIA*/ --normal: 16px; /*ESPACIADO*/ --space: 10px; /*BOX SHADOW*/ --box:0 0 3px #D2C8C6; } html, body{ padding: 0px; margin: 0px; font-size: 16px; font-family: 'Open Sans', sans-serif; } p, label{ font-size: var(--normal); } /*---------------------------------------------------------nav*/ nav{ background-color: var(--green_color); padding: var(--space); color: var(--black-color); display: flex; justify-content: space-between; align-items: center; } nav img{ width: 50%; } nav ul { display: flex; } nav li{ padding-left: 20px; list-style: none; } nav li a{ color: var(--black-color); text-decoration: none; } nav li a:hover{ color: var(--white-color); } /*-----------------------------------------------------Main Section*/ .main_section{ padding: 15%; text-align: center; } .products{ background-image: url("../img/Grupo 4.png"); max-height: 50px; background-size: cover; background-position: center top; padding: 23%; display: flex; } .product{ padding: var(--space); margin-top: -10rem; } .product .content{ padding: var(--space); background-color: var(--white-color); box-shadow: var(--box); border-radius: 2px; } .img_content{ text-align: center; } .img_content img{ width: 100%; border-radius: 2px; } .main_button{ background-color: var(--green_color); width: 100%; padding: var(--space); font-size: 17px; color: white; border:0; border-radius: 2px; } .main_button:hover{ background-color: var(--dark-green-color); cursor: pointer; } /*-------------------------------------------------DESCRIPCION DEL PRODUCTO*/ .descripciones{ display: flex; padding: 10%; text-align: center; justify-content: space-around; } .descripcion{ padding: var(--space); } .descripcion img{ width: 50%; } .descripcion p{ padding-left: 30px; padding-right: 30px; text-align: justify; } /*-------------------------------------------------MENCIONES*/ .menciones h1{ text-align: center; } .menciones-content{ display: flex; padding: 5%; box-sizing: border-box; } .mencion{ margin: 5px; box-shadow: var(--box); } .mencion img{ width: 100%; } .mencion h3{ margin: 0px; padding: 0 5px; } .mencion p{ padding: 0 5px; } /*-----------------------------------------------VENTA*/ .modulo_pago{ background-color: var(--white-color); box-shadow: var(--box); padding: var(--space); } .modulo_pago_images{ max-width: 200px; margin: auto; } .data{ margin: 10px 0; width: 100%; height: 35px; border-radius: 4px; border: 1px solid var(--black-color); box-sizing: border-box; } /*-----------------------------------------------FOOTER*/ .footer{ background-color: #313337; display: flex; justify-content: space-between; color: white; padding-left: var(--space); padding-right: var(--space); } .footer p a{ color: var(--green_color); }
css
<gh_stars>0 import { QuestionId } from '../../../shared/domain/value-object/identifier/question-id'; import { QuestionContent } from './question-content'; import { AggregateRoot } from '../../../shared/domain/aggregate-root'; import { AssessmentId } from '../../../shared/domain/value-object/identifier/assessment-id'; import { AnswerId } from '../../../shared/domain/value-object/identifier/answer-id'; export class Question extends AggregateRoot { constructor( private id: QuestionId, private content: QuestionContent, private assessmentId: AssessmentId, private correctAnswerId?: AnswerId, ) { super(); } static fromPrimitives( id: string, content: string, assessmentId: string, correctAnswerId: string, ) { return new Question( new QuestionId(id), new QuestionContent(content), new AssessmentId(assessmentId), new AnswerId(correctAnswerId), ); } toPrimitives() { return { id: this.id.value, content: this.content.value, assessmentId: this.assessmentId.value, correctAnswerId: this.correctAnswerId.value, }; } }
typescript
Every once in a while, cricket proves why it's the ‘Gentleman’s Game’. Some moments transcend victory and defeat, capturing the essence of sport. One such moment is from about 20 years ago. The 1999 Chennai Test between arch-rivals India and Pakistan was a classic. It was Pakistan's first tour of India in almost 12 years. It lived up to the occasion and also established Chennai’s reputation for being a sporting crowd. Those who first played the game would maybe have had such moments in mind when they wondered about the future of the sport. It was a chilly Sunday afternoon. The power was out and we had be content with listening to the radio commentary. The streets wore a deserted look. On the field, it was Sachin Tendulkar standing tall against arguably the world's best bowling attack then, led by the trio of Wasim Akram, Waqar Younis and Saqlain Mushtaq at the peak of their prowess. It seemed Tendulkar, with a bat in his hand, was ready. It wasn’t a promising start to Pakistan’s first innings as they collapsed to 91/5. Mohammad Yousuf (53) and Moin Khan (60) managed to stablise the innings and guided Pakistan to 238. Akram made a useful 38 as well. India started well, getting to a quick 48 for no loss by the end of the first day’s play. However, India's batting line-up, with the exception of Sourav Ganguly (54), succumbed to the accuracy and guile of the Pakistani bowlers. India folded for 254, gaining only a slender lead of 26 runs. In the second innings, Pakistan rode on Afridi’s 141 - a blinder of an innings - to set India a challenging target of 271 runs. The chase couldn’t have started off worse. India lost both their openers to Waqar with just six runs on the board. But then, on a rapidly deteriorating pitch and with the Pakistani bowlers breathing fire, came in Tendulkar looking to make amends for his first innings. He took charge, but kept losing partners at regular intervals and India were left teetering at 82 for 5. He was then joined by Nayan Mongia at the crease. The duo stuck together for a 136-run partnership and guided India to a relatively comfortable position. But Mongia threw his wicket away with 53 runs needed to win. Tendulkar battled on but had to deal with his aching back as well. Despite the pain, he executed his shots with precision while painkillers and ice provided him interim relief. With pain threatening to get the better of his patience, Tendulkar decided attack was the only option left and started taking calculated risks. And then came heartbreak. In 92nd over of the innings, he misread a 'doosra' from Saqlain and lofted a miscued shot to Akram. When Sachin was dismissed, India needed only 16 runs more with three wickets left. The team only managed four more before being bowled out. It was a masterclass of skill, technique, physical endurance and strategy – everything a cricket fan would want. His innings lasted close to 7 hours. Saqlain once even said in an interview that Sachin’s wicket in the 1999 Chennai Test was his my most prized possession. Though it was Pakistan who won, post-match scenes at the Chepauk did not indicate this. The crowd, instead of heading home, stayed and cheered the winning Pakistani team as they took a lap of honour. They had come in numbers to support the home team but were still gracious enough to acknowledge that the opponents were better on the day. It was an unforgettable moment. When the crowd gave a standing ovation to the players of an 'enemy nation', it was proof sport can act as a tool to bridge the gap between two warring nations. Shaharyar Khan, former PCB Chief and then the Pakistan team manager, wrote in his book 'A Bridge of Peace' that "the positive goodwill that the Chennai crowd emitted surpassed anything that had happened at the popular level in 50 years of Indo-Pak relations”. It was a victory for sport.
english
Terdapat beberapa sebab yang berbeza sekiranya berlaku kelewatan dalam pengeluaran atau pendepositan. Walau bagaimanapun, senario ini selalunya disebabkan oleh beberapa faktor luaran dan bukannya kesalahan syarikat. Antara beberapa sebab yang paling biasa untuk kelewatan ialah: - mencari laman sistem pembayaran di mana pengeluaran berlaku di bawah serangan DDoS; - menunjukkan butiran maklumat pengeluaran tidak sah. Adalah juga harus diingatkan bahawa mana-mana kaedah pembayaran mungkin mempunyai isu teknikal asas yang tidak diketahui oleh syarikat. Sekiranya terdapat sebarang masalah di pihak InstaForex, kami segera memaklumkan pelanggan kami mengenainya dalam berita atau di forum. Untuk situasi sedemikian, sedikit kekangan dan langkah berjaga-jaga masih diperlukan, yang mana, pihak kami menghubungi pelanggan terlebih dahulu. Apa jua kesukaran yang dihadapi oleh pelanggan, sama ada mengeluarkan atau menambah dana, dia harus sentiasa ingat bahawa dananya tidak akan hilang di mana-mana, dan kandungan maklumat terperinci anda semasa menghubungi sokongan boleh membantu mempercepatkan proses menyelesaikan masalah.
english
Iran has recovered nearly 13% of the total gas reserves in its side of the world’s largest gas field in the Persian Gulf, says its top oil and gas development company, as the country boasts of a major success at a time of brutal US sanctions on its oil and gas industry. According to Press TV, a Sunday statement by Petropars said natural gas recovery from the South Pars Gas Filed had reached a total of 1. 8 trillion cubic meters since production started in the field in 2002. The company said the field had also been responsible for 2. 2 billion barrels of Iran's output of condensates, a light form of crude, over the past 19 years. It said the value of the natural gas and condensates produced in South Pars would equal to $335 billion based on gas prices in 2017 (1 cm=$0. 18). That comes against an investment of around $80 billion Iran has carried out over the years to develop all but one of the 28 phases of the South Pars. Shared between Iran and Qatar, the South Pars-North Dome Gas-Condensate Field is by the far the largest natural gas filed in the world. The Iranian side of the reserve contains an estimated 14 tcm of gas and 18 billion barrels of condensates. It spreads across an area of 3,700 square kilometers in the Persian Gulf which accounts for nearly a third of the entire structure both in terms of size and the recoverable content. Iran accelerated development works in South Pars in 2013, hoping that it could tap foreign expertise and investment in anticipation of a major international deal on its nuclear program that could lead to the lifting of international sanctions on the country. However, the nuclear deal signed between Iran and world powers in 2015 crumbled in 2018 after the United States pulled out of the agreement and reimposed unilateral sanctions on Tehran. Major oil and gas companies like France’s Total and China’s CNPC left South Pars under pressure from the US, leaving Iran on its own to develop major phases of the field.
english
<gh_stars>100-1000 {"nom":"Plouédern","circ":"5ème circonscription","dpt":"Finistère","inscrits":2125,"abs":1074,"votants":1051,"blancs":67,"nuls":16,"exp":968,"res":[{"nuance":"DVD","nom":"<NAME>","voix":556},{"nuance":"REM","nom":"<NAME>","voix":412}]}
json
use bevy::{ prelude::{Plugin as PluginTrait, *}, window::WindowMode, }; pub struct Plugin; // TODO: Maybe move all of this into a serializable file or // into a resource so it can be changed at runtime? const GAME_TITLE: &str = "Bevy Jam"; const GAME_WIDTH: f32 = 1024.0; const GAME_HEIGHT: f32 = 768.0; const WINDOW_VSYNC: bool = false; const WINDOW_RESIZABLE: bool = true; const WINDOW_MODE: WindowMode = WindowMode::Windowed; impl PluginTrait for Plugin { fn build(&self, app: &mut App) { app.insert_resource(WindowDescriptor { title: GAME_TITLE.to_string(), width: GAME_WIDTH, height: GAME_HEIGHT, resizable: WINDOW_RESIZABLE, mode: WINDOW_MODE, vsync: WINDOW_VSYNC, ..Default::default() }); } }
rust
In a joint legal brief, the company and the DOJ say half of 30,000 comments are against the settlement, 7,500 are in favor of the deal, and 7,000 express no sentiment either way. In the brief filed with U.S. District Judge Colleen Kollar-Kotelly, the Justice Department said it had received 30,000 responses, 1,250 unrelated to the case. Roughly half the comments were against the settlement, 7,500 were in favor of the deal, and 7,000 expressed no sentiment either way. Microsoft, the Justice Department and nine states agreed to the settlement in early November, with nine other states and the District of Columbia choosing to continue with litigation. Last week, Kollar-Kotelly ordered the two parties to file the joint status report, also asking if they planned to make changes to the settlement based on public response. Sixty days of public comment concluded on Jan. 28 as mandated by the Tunney Act, a Nixon-era law that requires antitrust settlements be in the public interest. "There's nothing routine about this case," said Rich Gray, a Silicon Valley-based lawyer closely following the trial. "She basically put them on notice last week that she expects them to take into account the public comment." The settling parties are scheduled to appear before Kollar-Kotelly on Friday in a meeting that could signal how she regards the settlement proposal. The judge has the option of accepting, accepting with conditions, modifying, or rejecting the proposed deal. But that decision is not expected for at least a month or more. "That's assuming the judge gives any clear signals," Gray said. "She may not." What impact the largely negative public comments will have is uncertain, but the settling parties are considering modifying the proposed deal. "The United States and Microsoft are considering whether, in response to the public comments, to submit to the Court proposed modifications" to the settlement proposal, the brief states. In the 13-page filing, the Justice Department and Microsoft said they would notify the court of any changes, if any, on or before Feb. 27. The settling parties also said they would be open to a limited hearing on the settlement, spanning a day, but discouraged Kollar-Kotelly from turning it into a free-for-all. The Justice Department and Microsoft asked the judge to limit to a small number the third parties making presentations to the court, and that "the greatest portion of the hearing be allocated to the United States, the Settling States and defendant Microsoft." The legal brief emphasized that "the parties believe that the Court should not conduct an evidentiary hearing in this case." Antitrust experts warn that Kollar-Kotelly has a treacherous path ahead of her, perhaps more daunting than the trails Olympic skiers will challenge at the winter games that start Friday. "She has been put in an awkward position, because not everyone is a party to the settlement," said Emmett Stanton, an antitrust lawyer with Fenwick & West in Palo Alto, Calif. He said this was different from traditional federal government settlement cases, "with the state attorneys general, being non-parties, just yapping about it being inadequate." Kollar-Kotelly must carefully deal with two different cases starting on parallel paths but winding toward different destinations. The settlement, which would span five years, calls for some restrictions on Microsoft's business practices under the review of a three-member oversight committee. But the proposed deal puts little restriction on Microsoft software development and deployment, areas the litigating states contend require stiff oversight. They argue that a unanimous, seven-judge appeals court ruling, which last year upheld eight separate antitrust violations against Microsoft, demands tougher sanctions. In a December remedy proposal, the litigating states asked for broad changes to or restrictions on Microsoft software, such as opening up the source code to Internet Explorer or compelling the company to carry Sun Microsystems' Java in Windows for 10 years. Throughout their courses, the two cases crossed paths at several points that could bring them together. Among Kollar-Kotelly's concerns: that the course of one case could affect the other. "It's very awkward if she approves this settlement and goes forward with a further trial for the remaining parts of the state (attorneys general's) claims," Stanton said. "It's just not very tidy. If she were to approve the settlement, some people would criticize her for prejudging the states' case." Both Gray and Stanton are convinced Kollar-Kotelly will hold off ruling on the settlement until after she concludes the remedy hearing in ongoing litigation. Microsoft and the non-settling states go back to court March 11 for a hearing, from which the judge will craft a remedy. But given the number of witnesses scheduled to appear, that proceeding could wind on for a month or more. At the same time, Kollar-Kotelly could convene separate hearings on the settlement, which Microsoft and the Justice Department would like restricted to a single day. "She could then take the matter under submission and say that she will rule later and let the state process go forward for some period of time," Stanton said. This strategy makes even more sense in light of Netscape's lawsuit filed late last month. The AOL Time Warner subsidiary sued Microsoft for damages based on the software giant's anti-competitive activity during the so-called browser wars. "This judge is fully aware both of the position of the dissenting states and the Netscape lawsuit," Gray said. "She is going to move forward very carefully on this pending settlement in light of those two matters." A number of legal experts said they believe the judge would be more inclined to reject the settlement as not being in the public interest, particularly in light of the public comment. But in that instance, both Microsoft and the Justice Department could appeal her decision, for which there is precedent. In 1994, the Justice Department and Microsoft hammered out a settlement in an earlier case. U.S. District Judge Stanley Sporkin rejected the agreement and refused to sign the document even after the U.S. District Court of Appeals for the District of Columbia Circuit instructed him to do so. "Judge Sporkin said, 'I'm not signing this. You can assign someone else to do that,'" Stanton said. The court later assigned the case to U.S. District Judge Thomas Penfield Jackson, Kollar-Kotelly's predecessor. Jackson signed the settlement. Gray sees another scenario unfolding, in which Kollar-Kotelly would use the settlement as a minimum restraint on Microsoft's behavior, even though the company said it would comply with the agreement regardless of the outcome. "The judge could say that on a clean slate, if this was the only remedy against Microsoft, that it's not enough," he said. "She could reason: 'But I know there is going to be another remedy imposed on Microsoft, either the one I order now or the one I order after appellate review. So it is in the public interest to put this minimum set of requirements while the other works its way through the system.'" If Kollar-Kotelly does, in fact, decide the settlement is inadequate, she must contend with the reality that Microsoft will almost certainly appeal the remedy she later imposes, further delaying any restrictions on Microsoft's behavior. Although Jackson ruled in April 2000 that Microsoft violated two sections of the 1890 Sherman Antitrust Act, no action has been taken against the company during the appeals process. "This is sort of an unprecedented situation, where she essentially has two bites of the apple," Gray said. "She could say that if she had one shot at this it isn't enough, but since she's got two shots at this, she could put one in place while the other one works its way through the system."
english
Odell Beckham Jr. had two separate messages pertaining to the recent shooting by a lone gunman at Robb Elementary School in Uvalde, Texas, that left 19 children and two adults dead. One was of unconditional love, and the other was about advocating for change. OBJ's first message read: "Give extra love to the ones we love today. Life's just so damn short! Prayers up for the families suffering in these times. Truly heartbreaking. " The free-agent wideout was far more confrontational in his second message advocating for gun law changes: "Reading the details of what went on, just makes me sick to my stomach! How do we get things changed, how many voices have to be heard to get **** changed! " The Los Angeles Rams have gone in a direction that is different than many would have expected from the defending Super Bowl Champions. L. A. traded Robert Woods to accomodate the Allen Robinson contract, and Odell Beckham Jr. remains unsigned. OBJ remaining on the free-agent market up to this point in the NFL offseason is a result of the ACL tear he suffered during Super Bowl LVI, but he could apparently have a surprising dark horse landing spot waiting for him in the AFC. The Buffalo News' Jay Skurski listed Beckham as one of his 10 remaining free agents who may be of interest to GM Brandon Beane: "Beckham likely won’t be able to play at the start of the 2022 season after he suffered a torn ACL in the Super Bowl for the Rams. Still, adding him to the Bills’ roster, even if only for the second half of the regular season and playoffs, would be an absolute embarrassment of riches for a loaded Buffalo offense. " As Skurski notes, OBJ could follow the path of Von Miller this offseason: "The Bills already lured Von Miller away from the Rams this offseason, and while it seems unlikely Beckham would leave Los Angeles, we said the same thing about Miller. " Beckham Jr. is no longer the star option he was for the New York Giants, but he should still be able to provide value for a contender in need of a steady pair of veteran hands. Alongside Stefon Diggs, OBJ could, once again, be a late-season addition to a championship contender. 5 Times Steph Curry Was HUMILIATED On And Off The Court! Poll : Should the Bills sign Odell Beckham Jr. ?
english
<filename>src/datastruct/bs_treenode.rs use std::rc::Rc; use std::cell::RefCell; use std::cmp::max; /// 二分搜索树节点&结构定义, 搜索(search), 插入(insert), 删除(delete) 算法 /// /// 二分搜索树定义为每个节点都是可以比较大小,并且`左子树 < 根 < 右子树`。 /// 二分搜索树的节点和普通树节点稍有不同。普通树节点的数据域可以是任何类型。 /// 二分搜索的数据域实际上是一对`(key,val)`的元组。 /// 其中`key`用来比较排序,`val`才是实际的数据域需要存储的值。 /// 因此二分搜索树可以用来实现类似**字典**这样的结构,所以`key`不能是重复元素。 /// 由于二分搜索树的算法的 查找,插入,删除 都与`key`有关,为了阐述算法,下面的实现忽略了数据域`val`。 /// /// 树节点(BSTreeNode)的定义。三个字段 /// * 键值 `key`: i32类型 用于比较 /// * 左子树 `left`:Option<Rc<RefCell<BSTreeNode>>> 类型,递归定义 /// * 右子树 `right`: Option<Rc<RefCell<BSTreeNode>>> /// #[derive(Debug, PartialEq, Eq)] pub struct BSTreeNode { pub key: i32, pub left: Option<Rc<RefCell<BSTreeNode>>>, pub right: Option<Rc<RefCell<BSTreeNode>>>, } impl BSTreeNode { /// `new`方法为`BSTreeNode`的构造方法。 /// 入参是用于比较的`key`。返回`BSTreeNode` 实例 /// ### Example /// /// ```rust /// use leetcode_in_rust::datastruct::bs_treenode::BSTreeNode; /// let root = BSTreeNode::new(0); /// assert_eq!(root.key, 0); /// ``` #[inline] pub fn new(key: i32) -> Self { BSTreeNode { key, left: None, right: None, } } /// `is_bst`: 验证`node`为根的二叉树是否是二分搜索树 /// /// leetcode [98. 验证二分搜索树](https:leetcode-cn.com/problems/validate-binary-search-tree) /// pub fn is_bst(node: Option<Rc<RefCell<BSTreeNode>>>) -> bool { fn _dfs(node: &Option<Rc<RefCell<BSTreeNode>>>, lval: i64, rval: i64) -> bool { match node { None => true, Some(x) => { let val = x.borrow().key as i64; if lval < val && val < rval { _dfs(&x.borrow().left, lval, val) && _dfs(&x.borrow().right, val, rval) } else { false } } } } _dfs(&node, i64::MIN, i64::MAX) } /// `search_dfs` 是二分搜索树的查找算法。 /// 即以`node`为根的树种查找`key`的节点,如果查找不到放回`None`。 /// 使用了 DFS 方式递归查找,实现原理是二分搜索算法。 /// `key` 比 `node` 节点的值小,递归查询左子树`node.left`,`key` 比 `node`节点的值大,递归查询右子树`node.right` /// 一旦命中目标,随即返回 /// /// ### Example /// ```rust /// use leetcode_in_rust::datastruct::bs_treenode::BSTreeNode; /// use std::rc::Rc; /// use std::cell::RefCell; /// let root = BSTreeNode::new(0); /// let root = Some(Rc::new(RefCell::new(root))); /// let ans = BSTreeNode::search_dfs(root.clone(), 0); /// assert_eq!(ans.unwrap().borrow().key, 0); /// let ans = BSTreeNode::search_dfs(root.clone(), 1); /// assert!(ans.is_none()); /// ``` pub fn search_dfs(node: Option<Rc<RefCell<BSTreeNode>>>, key: i32) -> Option<Rc<RefCell<BSTreeNode>>> { match node { None => None, Some(x) => { if key < x.borrow().key { BSTreeNode::search_dfs(x.borrow().left.clone(), key) } else if x.borrow().key < key { BSTreeNode::search_dfs(x.borrow().right.clone(), key) } else { // x.borrow().key == key Some(x) } } } } /// 二分搜索树节点高度算法,与二叉树的实现一致。`node.height = 1 + max(node.left.height + node.right.height)` pub fn get_height(node: Option<Rc<RefCell<BSTreeNode>>>) -> i32 { match node { None => 0, Some(x) => { 1 + max(BSTreeNode::get_height(x.borrow().left.clone()), BSTreeNode::get_height(x.borrow().right.clone())) } } } /// `insert_dfs`:以`node`为根的二分搜索树插入方法。leetcode [701.二叉搜索树插入](https://leetcode-cn.com/problems/insert-into-a-binary-search-tree/) /// /// 以`node`为根的二分搜索树插入`key`。如果`key`已存在,则什么也不做(如果设计了val字段,此时可以更新val字段). /// 该方法使用DFS递归实现,与`search_dfs`方法类似。比较`key`和当前`node.key`, 再分别递归左右子树进行插入操作。 /// 该方法返回插入节点后的子树的根,因此返回上次递归调用的时候,上层的`node`节点需要拼接递归调用返回的子树的根节点。 /// ```test /// /// fn insert(node, key): /// if key < node.key: /// node.key = insert(node.left, key) /// ``` /// ### Example /// ```rust /// use leetcode_in_rust::datastruct::bs_treenode::{BSTreeNode, is_bst_valid}; /// use std::rc::Rc; /// use std::cell::RefCell; /// let nums = vec![5, 2, 3, 7, 8, 9, 1]; /// let mut root = Some(Rc::new(RefCell::new(BSTreeNode::new(5)))); /// for i in nums { /// root = BSTreeNode::insert_dfs(root, i); /// } /// assert!(is_bst_valid(&root)); /// ``` pub fn insert_dfs(node: Option<Rc<RefCell<BSTreeNode>>>, key: i32) -> Option<Rc<RefCell<BSTreeNode>>> { match node { // 当前节点为空,即所需要新增的节点,返回上次递归调用 None => Some(Rc::new(RefCell::new(BSTreeNode::new(key)))), Some(x) => { // 比较当前node的key // 递归遍历左子树,拼接左子树插入返回的新的子树的根 if key < x.borrow().key { let lnode = BSTreeNode::insert_dfs(x.borrow().left.clone(), key); x.borrow_mut().left = lnode; } else if x.borrow().key < key { // 递归遍历右子树,拼接右子树插入返回的新的子树的根 let rnode = BSTreeNode::insert_dfs(x.borrow().right.clone(), key); x.borrow_mut().right = rnode; } // 当前节点作为新的子树的根返回更上层的递归调用 Some(x) } } } /// `minimum_dfs`方法用于查找二分搜索树的最小值。 /// 即以`node`为根的二分搜索树,查找其最小值。 /// 因为二分搜索中序遍历是从小到大,最小值即为最左边的节点(未必是叶子节点) /// 使用`DFS`递归求解最小值,该方法可以辅助删除二分搜索树节点算法。 pub fn minimum_dfs(node: Option<Rc<RefCell<BSTreeNode>>>) -> Option<Rc<RefCell<BSTreeNode>>> { match node { None => None, Some(x) => { if x.borrow().left.is_none() { return Some(x); } BSTreeNode::minimum_dfs(x.borrow().left.to_owned()) } } } /// `delete_dfs`:以`node`为根的二叉搜索树删除节点算法。Leetcode [450. 二叉搜索树删除节点](https://leetcode-cn.com/problems/delete-node-in-a-bst/) /// /// 即以`node`为根的二分搜索树删除`key`节点。 /// 该方法同样适用`DFS`递归实现。 /// 被删除的`key`节点有三种情况: /// /// * 叶子节点:直接返回`None`给上层调用即可。 /// * 只有一个子树的节点:节点只有一个子树,当前节点从树摘除之后,返回其有值的子树即可。 /// * 左右子树都存在的节点:需要从当前节点的右子树为根的子树中,找到最小值。然后把最小值和当前节点替换(此时依然符合二分搜索的性质)。然后再删除替换后右子树的`key`,即转换成第二种问题。 /// /// 由于递归调用传入的`node`是通过`RC::clone`传入的,因此`node`只增加了引用计数,没有拷贝堆内存。在递归函数中,返回了新的树根。 /// 那么传入的`node`随着函数调用完毕离开作用域,会自动减少引用计数。 /// 当上层函数拼接子函数调用返回的树根的时候,因为重新赋值。`node`会被`rust`的所有权机制自动`drop`。不需要手动释放删除节点的内存。 /// /// ### Example /// /// ```rust /// use leetcode_in_rust::datastruct::bs_treenode::{BSTreeNode, is_bst_valid}; /// use std::cell::RefCell; /// use std::rc::Rc; /// /// let nums = vec![2, 1, 3]; /// let mut root = Some(Rc::new(RefCell::new(BSTreeNode::new(4)))); /// for i in nums { /// root = BSTreeNode::insert_dfs(root, i) /// } /// /// root = BSTreeNode::delete_dfs(root, 4); /// assert!(is_bst_valid(&root)); /// ``` pub fn delete_dfs(node: Option<Rc<RefCell<BSTreeNode>>>, key: i32) -> Option<Rc<RefCell<BSTreeNode>>> { let root = match node { None => None, Some(x) => { if key < x.borrow().key { let lnode = BSTreeNode::delete_dfs(x.borrow().left.clone(), key); x.borrow_mut().left = lnode; Some(x) } else if x.borrow().key < key { let rnode = BSTreeNode::delete_dfs(x.borrow().right.clone(), key); x.borrow_mut().right = rnode; Some(x) } else { if x.borrow().left.is_some() && x.borrow().right.is_some() { let successor = BSTreeNode::minimum_dfs(x.borrow().right.clone()); let successor = successor.unwrap(); let rnode = BSTreeNode::delete_dfs(x.borrow().right.clone(), successor.borrow().key); successor.borrow_mut().right = rnode; successor.borrow_mut().left = x.borrow().left.to_owned(); Some(successor) } else if x.borrow().left.is_some() { x.borrow().left.clone() } else if x.borrow().right.is_some() { x.borrow().right.clone() } else { None } } } }; root } } fn print_tree(root: Option<Rc<RefCell<BSTreeNode>>>) -> String { let height = BSTreeNode::get_height(root.clone()); let width = (1 << height) - 1; let mut ans = vec![vec![" ".to_string(); width as usize]; height as usize]; fn dfs(ans: &mut Vec<Vec<String>>, node: &Option<Rc<RefCell<BSTreeNode>>>, deep: usize, lo: usize, hi: usize) { if let Some(x) = node { let node = x.borrow(); let mid = lo + (hi - lo) / 2; ans[deep][mid] = x.borrow().key.to_string(); dfs(ans, &node.left, deep + 1, lo, mid); dfs(ans, &node.right, deep + 1, mid + 1, hi); } } dfs(&mut ans, &root.clone(), 0usize, 0usize, width as usize); ans.iter().map(|x| x.concat()).collect::<Vec<_>>().join("\n") } #[cfg(test)] mod tests { use super::*; #[test] fn test_insert() { println!("{}", "=".repeat(20)); let nums = vec![5, 2, 3, 7, 8, 9, 1]; let mut root = Some(Rc::new(RefCell::new(BSTreeNode::new(5)))); for i in nums { root = BSTreeNode::insert_dfs(root, i); } assert!(BSTreeNode::is_bst(root.clone())); println!("{}", print_tree(root)); println!("{}", "=".repeat(20)); } #[test] fn test_search() { let nums = vec![5, 2, 3, 7, 8, 9, 1]; let mut root = Some(Rc::new(RefCell::new(BSTreeNode::new(5)))); for i in nums.clone() { root = BSTreeNode::insert_dfs(root, i); } for i in nums { let node5 = BSTreeNode::search_dfs(root.clone(), i); assert_eq!(node5.unwrap().borrow().key, i); } for i in 10..20 { assert!(BSTreeNode::search_dfs(root.clone(), i).is_none()); } } #[test] fn test_delete_leaf() { println!("{}", "=".repeat(20)); println!("test_delete_leaf"); let nums = vec![2, 1, 3]; let mut root = Some(Rc::new(RefCell::new(BSTreeNode::new(4)))); for i in nums { root = BSTreeNode::insert_dfs(root, i) } println!("{}", print_tree(root.clone())); println!("delete 1"); root = BSTreeNode::delete_dfs(root, 1); assert!(BSTreeNode::is_bst(root.clone())); println!("{}", print_tree(root)); println!("{}", "=".repeat(20)); } #[test] fn test_delete_left_child() { println!("{}", "=".repeat(20)); println!("test_delete_left_child"); let nums = vec![2, 1, 3]; let mut root = Some(Rc::new(RefCell::new(BSTreeNode::new(4)))); for i in nums { root = BSTreeNode::insert_dfs(root, i) } println!("{}", print_tree(root.clone())); println!("delete 4"); root = BSTreeNode::delete_dfs(root, 4); assert!(BSTreeNode::is_bst(root.clone())); println!("{}", print_tree(root)); println!("{}", "=".repeat(20)); } #[test] fn test_delete_right_child() { println!("{}", "=".repeat(20)); println!("test_delete_right_child"); let nums = vec![2, 3]; let mut root = Some(Rc::new(RefCell::new(BSTreeNode::new(4)))); for i in nums { root = BSTreeNode::insert_dfs(root, i) } println!("{}", print_tree(root.clone())); println!("delete 2"); root = BSTreeNode::delete_dfs(root, 2); assert!(BSTreeNode::is_bst(root.clone())); println!("{}", print_tree(root)); println!("{}", "=".repeat(20)); } }
rust
/* * Copyright 2015-2017 GenerallyCloud.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.generallycloud.baseio.container.rtp.server; import com.generallycloud.baseio.component.SocketSession; import com.generallycloud.baseio.component.SocketSessionEventListenerAdapter; import com.generallycloud.baseio.container.rtp.RTPContext; public class RTPSessionEventListener extends SocketSessionEventListenerAdapter { @Override public void sessionOpened(SocketSession session) { RTPContext context = RTPContext.getInstance(); RTPSessionAttachment attachment = context.getSessionAttachment(session); if (attachment == null) { attachment = new RTPSessionAttachment(context); session.setAttribute(context.getPluginKey(), attachment); } } @Override public void sessionClosed(SocketSession session) { RTPContext context = RTPContext.getInstance(); RTPSessionAttachment attachment = context.getSessionAttachment(session); if (attachment == null) { return; } RTPRoom room = attachment.getRtpRoom(); if (room == null) { return; } // room.leave(session.getDatagramChannel()); //FIXME udp } }
java
/** * * On a web form, * users are asked to enter dates which come in as strings. * Before storing them to the database * they need to be converted to a standard date format * Write a function to convert the dates as database, * they need to be converted to a standard date format. * Write a function to convert the dates as described. * * * Given a date string in the format Day Month Year, where: * Day a string in the form "1st", "2nd", "3rd", "21st", "22nd", "23rd", "31st" * and all others are the number + "th", e.g. "4th" or "12th". * * Month is the first three letters of the English language months, * like "Jan" for January through "Dec" for December. * * Year is 4 digits ranging from 1900 to 2100 * * Convert the date string "Day Month Year" to the date string "YYYY-MM-DD" * in the format "4 digit year - 2 digit month - 2 digit day". * * Example * 1st Mar 1974 → 1974-03-01 * 22nd Jan 2013 → 2013-01-22 * 7th Apr 1904 → 1904-04-07 * * * Function Description * Complete the function preprocessDate in the editor below. * preprocessDate has the following parameter(s): * string dates[n]: an array of date strings in the format Day Month Year * Returns: * string[n]: array of converted date strings * * Constraints * > The values of Day, Month, and Year are restricted to the value ranges specified above. * > The given dates are guaranteed to be valid, so no error handling is necessary. * > 1 ≤ n ≤ 10^4 */ /** * Validation is a custom type of error... */ class ValidationError extends Error { constructor(msg: string) { super(msg) this.name = 'Validation Error' } } interface IMonthLookup { "Jan": string "Feb": string "Mar": string "Apr": string "May": string "Jun": string "Jul": string "Aug": string "Sep": string "Oct": string "Nov": string "Dec": string } /** * A type that is a string abbreviation for the Months of the year */ type Months = keyof IMonthLookup interface IDateSolverActions { preprocessDates(dates: Array<string>): Array<string> } export class DateSolver implements IDateSolverActions { // Access Members private readonly _delimitor: string // Constructor constructor(delim: string) { this._delimitor = delim } private static readonly MonthsDictionary: IMonthLookup = { "Jan": "01", "Feb": "02", "Mar": "03", "Apr": "04", "May": "05", "Jun": "06", "Jul": "07", "Aug": "08", "Sep": "09", "Oct": "10", "Nov": "11", "Dec": "12" } private static readonly MonthsSet = new Set<Months>([ "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec" ]) private static readonly constraint = { small: 1, large: Math.pow(10,4) } private _validateDay = (dayString: string) => { // checks if day string passed ends with st, nd, rd, or th const dayRegex = /(st|nd|rd|th)$/gm const isValid = dayRegex.test(dayString.trim()) if(!isValid) throw new ValidationError("invalid day input") return isValid } private _betweenContraintRange(n: number) { const _inRange = n >= DateSolver.constraint.small && n <= DateSolver.constraint.large if(!_inRange) throw new ValidationError('number does not fall in between range!') return _inRange } private _toMonth(month: string): string { const m = month as Months if(!DateSolver.MonthsSet.has(m)) throw new ValidationError("error - unable to cast month to number.") return DateSolver.MonthsDictionary[m] } /** * function will take in int and will add 0 if number is less than or equal to 9 as string, will return number as string if not. * @param numberDate number value passed in as value */ private toDateNumber = (numberDate: number):string => numberDate <= 9 ? `0${numberDate.toString()}` : numberDate.toString() /** * function will transform a single date * @param date Date String will be used in casting... */ private _preprocessDate = (date: string) : string => { try { if(typeof date === 'string' && date.length > 0) { // splits the string to 3 strings in a perfect world... // where first string is represented by the Day // where seconds string is the Month // where the third string is the Year const dateSplit = date.split(' ') if(Array.isArray(dateSplit) && dateSplit.length === 3) { const [Day, Month, Year] = dateSplit // gives me back a string between 01 - 12 based on Month Abbreviation Passed const monthNumber = this._toMonth(Month) let dayNumber = 'dd' let D = parseInt(Day) if(this._betweenContraintRange(D) && this._validateDay(Day)) dayNumber = this.toDateNumber(D) this._betweenContraintRange(parseInt(Year)) return Year + this._delimitor + monthNumber + this._delimitor + dayNumber } } else throw new ValidationError("date is not valid string"); } catch (thrownError) { console.error(thrownError.message) } // should be impossible to get to this... return '' } /** * Complete the function preprocessDate in the editor below. * preprocessDate has the following parameter(s): * string dates[n]: an array of date strings in the format Day Month Year * Returns: * string[n]: array of converted date strings * @param dates as the Array of strings in format of 1st Mar 1974 */ public preprocessDates = (dates: Array<string>): Array<string> => { let outCollection: Array<string> = []; if(Array.isArray(dates) && Array.length > 0) outCollection = dates.map(this._preprocessDate) return outCollection } }
typescript
<filename>README.md # Aritra855.github.io
markdown
<gh_stars>1-10 { "uuid": "cryptocoin@guantanamoe", "name": "Cryptocoin", "description": "Monitor current price and trends of cryptocurrencies", "version": 1.1 }
json
<reponame>tobx/sweet-potator<filename>src/error.rs use std::{io, path::PathBuf}; use crate::recipe::errors::ParseError; pub type Result<T> = std::result::Result<T, Error>; #[derive(thiserror::Error, Debug)] pub enum Error { #[error("a recipe title must contain non-whitespace characters")] EmptyRecipeTitle, #[error("invalid image file extension: '{0}'")] InvalidImageFileExt(PathBuf), #[error("invalid language file format: {0}")] InvalidLanguageFileFormat(#[from] toml::de::Error), #[error(transparent)] Io(#[from] io::Error), #[error(transparent)] Parse(#[from] ParseError), #[error("missing image file extension in path: '{0}'")] MissingImageFileExt(PathBuf), #[error("missing template file: '{0}'")] MissingTemplateFile(String), #[error(transparent)] Tera(#[from] tera::Error), }
rust
""" AtomicGraphs ------------ This is a python library to split an RDF Graph into atomic graphs. With this library using atomic graphs we want to make RDF Graphs containing blanknodes comparable. This package implements a colouring algorithm. """ from setuptools import setup setup( name='atomicgraphs', use_scm_version={ "root": ".", "version_scheme": "guess-next-dev", "write_to": "version.txt", 'write_to_template': '__version__ = "{version}"', 'tag_regex': r'^(?P<prefix>v)?(?P<version>[^\+]+)(?P<suffix>.*)?$' }, setup_requires=['setuptools_scm'], description=("This is a library to split an RDF Graph into atomic graphs."), long_description=__doc__, author='Simaris', # author_email='<EMAIL>', packages=['atomicgraphs'], install_requires=['rdflib', 'sortedcontainers'] )
python
<filename>fabfile/validation.py<gh_stars>0 # to run the metadata validation process via some ec2 and an rds connection
python
package com.github.nhojpatrick.hamcrest.testing.tests; import com.github.nhojpatrick.hamcrest.testing.MatcherObjectTester; import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Nested; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.function.Executable; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.core.Is.is; import static org.hamcrest.core.IsEqual.equalTo; import static org.hamcrest.core.IsNull.nullValue; import static org.junit.jupiter.api.Assertions.assertAll; import static org.junit.jupiter.api.Assertions.assertThrows; public class MatcherObjectTesterTest { private static final MatcherObjectTester<String> TESTER = new MatcherObjectTester<>(); private static final String EMPTY_STRING = ""; private static final String QWERTY = "Qwerty"; private static final String POIUYT = "Poiuyt"; @Nested @DisplayName("MatcherObjectTester assertFails tests") class assertFails { @Test public void matcherNull() { final Executable testMethod = () -> TESTER.assertFails(EMPTY_STRING, null, null); final IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, testMethod); assertAll( () -> assertThat(thrown.getMessage(), is(equalTo("Null Matcher"))), () -> assertThat(thrown.getCause(), is(nullValue())) ); } @Test public void success() { TESTER.assertFails(QWERTY, is(equalTo(POIUYT)), String.format("\nExpected: is \"%s\"\n but: was \"%s\"", POIUYT, QWERTY)); } } @Nested @DisplayName("MatcherObjectTester assertValid tests") class assertValid { @Test public void matcherNull() { final Executable testMethod = () -> TESTER.assertValid(EMPTY_STRING, null); final IllegalArgumentException thrown = assertThrows(IllegalArgumentException.class, testMethod); assertAll( () -> assertThat(thrown.getMessage(), is(equalTo("Null Matcher"))), () -> assertThat(thrown.getCause(), is(nullValue())) ); } @Test public void success() { TESTER.assertValid(QWERTY, is(equalTo(QWERTY))); } } }
java
package org.twak.siteplan.campskeleton; import java.awt.BasicStroke; import java.awt.Graphics2D; import java.awt.Point; import java.awt.event.MouseEvent; import javax.vecmath.Point2d; import org.twak.camp.ui.Bar; import org.twak.camp.ui.PointEditor; import org.twak.siteplan.junk.ForcedStep; import org.twak.utils.LContext; import org.twak.utils.collections.Loop; /** * UI for an-almost-plan. A step edge adjustment. First and last points are fixed. * @author twak */ public class ForcedUI extends PlanUI { ForcedStep step; public ForcedUI( ForcedStep forcedStep, PointEditor.BarSelected es ) { super (Siteplan.instance.plan, forcedStep.shape , es); this.step = forcedStep; } @Override public void movePoint( LContext<Bar> ctx, Point2d pt,javax.vecmath.Point2d location,MouseEvent evt) { if ( isFixedPoint( ctx, pt )) return; // can't move start or end super.movePoint( ctx, pt, location, null); } @Override protected boolean allowRemove( LContext<Bar> ctx, Point2d corner ) { if ( ctx.hook == null ) // it's an edge! return false; if ( isFixedPoint( ctx, corner )) return false; // don't remove the first or last points return super.allowRemove( ctx, corner ); } private boolean isFixedPoint( LContext<Bar> ctx, Point2d corner) { return ctx.loop == step.shape.get( 0) && (ctx.loop.start.get().start == corner || ctx.loop.start.getPrev().get().end == corner); } @Override public void paintPointEditor( Graphics2D g2 ) { for ( Loop<Bar> e2 : edges ) for ( Bar e : e2 ) { g2.setStroke( new BasicStroke( currentBar == null ? 2f : currentBar.get() == e ? 4f : 2f ) ); g2.setColor( plan.profiles.get( e ).color ); g2.drawLine( ma.toX( e.start.x ), ma.toY ( e.start.y ), ma.toX( e.end.x ), ma.toY( e.end.y ) ); } g2.setColor( grass.darker().darker() ); // first loop is inserted into existing loop, everything else comes outside boolean firstLoop = true; for ( Loop<Bar> e2 : edges ) { for ( Bar e : e2 ) if ( !firstLoop || e != e2.getFirst() ) drawPixel( g2, e.start ); firstLoop = false; } drawMarkers( g2 ); Loop<Bar> first = step.shape.get( 0 ); drawSpecialMarker( g2, first.start.get().start ); drawSpecialMarker( g2, first.start.getPrev().get().end ); somethingChanged( null ); } }
java
<reponame>XjjJerry/SimpleNote const m_fs = require("fs"); const m_util = require('util'); const m_http = require("http"); let file = {}; file.readDir = m_util.promisify(m_fs.readdir); file.readFile = m_util.promisify(m_fs.readFile); file.writeFile = m_util.promisify(m_fs.writeFile); file.rename = m_util.promisify(m_fs.rename); file.stat = m_util.promisify(m_fs.stat); file.exists = m_util.promisify(m_fs.exists); file.deleteFile = m_util.promisify(m_fs.unlink); file.createDir = m_util.promisify(m_fs.mkdir); file.httpReadFile = (url) => { return new Promise((resolve, reject) => { m_http.get(url, (res) => { let chunks = []; let size = 0; res.on('data', function (chunk) { chunks.push(chunk); size += chunk.length; //累加缓冲数据的长度 }); res.on('end', function (err) { if (err) { reject(err); } else { let data = Buffer.concat(chunks, size); resolve(data); } }); }); }); }; module.exports = file;
javascript
package main import ( "encoding/json" "fmt" "strconv" "time" ) type MetricsCollector struct { AccessToken string `json:"access_token"` OpsManCertificateListUrl string Certificates []struct { Configurable bool `json:"configurable"` IsCa bool `json:"is_ca"` PropertyReference string `json:"property_reference"` PropertyType string `json:"property_type"` ProductGUID string `json:"product_guid"` Location string `json:"location"` VariablePath string `json:"variable_path"` Issuer string `json:"issuer"` ValidFrom time.Time `json:"valid_from"` ValidUntil time.Time `json:"valid_until"` } `json:"certificates"` } // When you encounter error, increment the counter and display the error on stdout func IncrementErrorCounter(error string) error { Errorf(error) ErrorTotal.WithLabelValues(cmdOptions.Environment).Inc() return fmt.Errorf(error) } // func (m *MetricsCollector) collector() { // Authenticate the request err := m.authenticate() if err != nil { return } // Get the data of list of certs m.OpsManCertificateListUrl = fmt.Sprintf("https://%s/api/v0/deployed/certificates", cmdOptions.OpsManHostname) c, err := m.opsmanRequestHandler() if err != nil { IncrementErrorCounter(fmt.Sprintf("error during extraction of certs from opsman: %v", err)) return } // Load the information to the cert struct err = json.Unmarshal(c, &m) if err != nil { IncrementErrorCounter(fmt.Sprintf("error in unmarshal of certificates: %v", err)) return } // Convert to Prometheus metrics m.metric() } func (m *MetricsCollector) metric() { for _, c := range m.Certificates { CertExpirySeconds.WithLabelValues( cmdOptions.Environment, strconv.FormatBool(c.IsCa), strconv.FormatBool(c.Configurable), c.PropertyReference, c.ProductGUID, c.Location, c.VariablePath, c.Issuer, fmt.Sprintf("%v", c.ValidFrom), fmt.Sprintf("%v", c.ValidUntil)).Set(time.Until(c.ValidUntil).Seconds()) CertExpiryUnixTimestamp.WithLabelValues( cmdOptions.Environment, strconv.FormatBool(c.IsCa), strconv.FormatBool(c.Configurable), c.PropertyReference, c.ProductGUID, c.Location, c.VariablePath, c.Issuer, fmt.Sprintf("%v", c.ValidFrom), fmt.Sprintf("%v", c.ValidUntil)).Set(float64(c.ValidUntil.Unix())) } }
go
/// <reference path='../_all.ts' /> module todos { 'use strict'; export interface ITodoStorage { get (): TodoItem[]; put(todos: TodoItem[]); } }
typescript
<filename>result/caleg/caleg_kabupaten_5436_4.json [{"namaKab":"K<NAME>","originalFilename":"foto 4x6.jpg","namaPartai":"Partai Golongan Karya","id":137470,"noUrut":1,"nama":"<NAME>, SH","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"foto 4x6.jpg","namaPartai":"Partai Golongan Karya","id":138010,"noUrut":2,"nama":"HJ. <NAME>, S.Pd","stringJenisKelamin":"Perempuan"},{"namaKab":"<NAME>","originalFilename":"photo 4x6.jpg","namaPartai":"Partai Golongan Karya","id":138623,"noUrut":3,"nama":"HERISTADY","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"foto 4x6.jpg","namaPartai":"Partai Golongan Karya","id":76131,"noUrut":4,"nama":"HJ. <NAME>, SE","stringJenisKelamin":"Perempuan"},{"namaKab":"<NAME>","originalFilename":"photo 4x6.jpg","namaPartai":"Partai Golongan Karya","id":145970,"noUrut":5,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"photo 4x6.jpg","namaPartai":"Partai Golongan Karya","id":199261,"noUrut":6,"nama":"<NAME>","stringJenisKelamin":"Perempuan"},{"namaKab":"BARRU","originalFilename":"ishak photo 4x6.jpg","namaPartai":"Partai Golongan Karya","id":199731,"noUrut":7,"nama":"<NAME>, SE","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"photo 4x6.jpg","namaPartai":"Partai Golongan Karya","id":160279,"noUrut":8,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"photo 4x6.jpg","namaPartai":"Partai Golongan Karya","id":146430,"noUrut":9,"nama":"RUSLAN","stringJenisKelamin":"Laki-Laki"},{"namaKab":"<NAME>","originalFilename":"foto 4x6.jpg","namaPartai":"Partai Golongan Karya","id":84357,"noUrut":10,"nama":"<NAME>","stringJenisKelamin":"Laki-Laki"}]
json
Sara Ali Khan who is considered as the bubbly girl in B- town, reveals what she does in her 15 min free time. She took to instagram and shared a short clipping with the caption: “When I have 15 minutes of time to kill, it’s mask on, book in hand, just me by the window sill. Clearly it‘a not a compulsion to stay put or stay still”. Sara said that the she feel relaxed and reinvigorated with positive feeling after the serum fills in face by giving a glowy look to her skin. In a short video, the actress is seen using garnier products to apply the face mask. Later in a fast forwarded clip, she is seen lifting the dumbbells to rev up the physical fitness, followed by reading a book and later relaxing in a yoga pose until she peeled off the face mask. Well that’s a pretty simple and wise idea to do some calculated multitasking while masking! . Recently Sara Ali Khan sent a loving hug from her mother, Amrita Singh, to Taapsee Pannu. To the unversed, Taapsee posted about her mother on Instagram, who was a coactor in her film and commended her during their shoot of film ‘Badla’.
english
from compas.geometry import Frame from compas_fab.backends import RosClient from compas_fab.robots import Configuration import math group = "robot11_eaXYZ" frame_WCF = Frame([19.823254, 6.008556, 0.922020], [-1.0, 0.0, 0.0], [0.0, 1.0, 0.0]) frame_WCF_mm = Frame([19823.254, 6008.556, 922.020], [-1.0, 0.0, 0.0], [0.0, 1.0, 0.0]) start_configuration = Configuration( values = ( 18.700, 0, -4.900, 0, 0, 0, 0, 0, 0, -11.000, -4.900, 0, 0, 0, 0, 0, 0, 35.000, 0, -4.900, 0, 0, 0, 0, 0, 0, -11.000, -4.900, 0, 0, 0, 0, 0, 0 ), types = ( 2, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0 ), joint_names = ( 'bridge1_joint_EA_X', 'robot11_joint_EA_Y', 'robot11_joint_EA_Z', 'robot11_joint_1', 'robot11_joint_2', 'robot11_joint_3', 'robot11_joint_4', 'robot11_joint_5', 'robot11_joint_6', 'robot12_joint_EA_Y', 'robot12_joint_EA_Z', 'robot12_joint_1', 'robot12_joint_2', 'robot12_joint_3', 'robot12_joint_4', 'robot12_joint_5', 'robot12_joint_6', 'bridge2_joint_EA_X', 'robot21_joint_EA_Y', 'robot21_joint_EA_Z', 'robot21_joint_1', 'robot21_joint_2', 'robot21_joint_3', 'robot21_joint_4', 'robot21_joint_5', 'robot21_joint_6', 'robot22_joint_EA_Y', 'robot22_joint_EA_Z', 'robot22_joint_1', 'robot22_joint_2', 'robot22_joint_3', 'robot22_joint_4', 'robot22_joint_5', 'robot22_joint_6' ) ) start_configuration_mm = Configuration( values = ( 18700, 0, -4900, 0, 0, 0, 0, 0, 0, -11000, -4900, 0, 0, 0, 0, 0, 0, 35000, 0, -4900, 0, 0, 0, 0, 0, 0, -11000, -4900, 0, 0, 0, 0, 0, 0 ), types = ( 2, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 0, 0, 0 ), joint_names = ( 'bridge1_joint_EA_X', 'robot11_joint_EA_Y', 'robot11_joint_EA_Z', 'robot11_joint_1', 'robot11_joint_2', 'robot11_joint_3', 'robot11_joint_4', 'robot11_joint_5', 'robot11_joint_6', 'robot12_joint_EA_Y', 'robot12_joint_EA_Z', 'robot12_joint_1', 'robot12_joint_2', 'robot12_joint_3', 'robot12_joint_4', 'robot12_joint_5', 'robot12_joint_6', 'bridge2_joint_EA_X', 'robot21_joint_EA_Y', 'robot21_joint_EA_Z', 'robot21_joint_1', 'robot21_joint_2', 'robot21_joint_3', 'robot21_joint_4', 'robot21_joint_5', 'robot21_joint_6', 'robot22_joint_EA_Y', 'robot22_joint_EA_Z', 'robot22_joint_1', 'robot22_joint_2', 'robot22_joint_3', 'robot22_joint_4', 'robot22_joint_5', 'robot22_joint_6' ) ) # goal_constraints parameters tolerance_position = 0.001 tolerance_xaxis_deg, tolerance_yaxis_deg, tolerance_zaxis_deg = (1, 1, 1) tolerances_axes = [math.radians(tolerance_xaxis_deg), math.radians(tolerance_yaxis_deg), math.radians(tolerance_zaxis_deg)] path_constraints = [] # Plan with Meters with RosClient('192.168.183.129') as client: robot = client.load_robot(load_geometry=False, urdf_param_name='/robot_description', srdf_param_name='/robot_description_semantic', precision=None, local_cache_directory=None) # goal_constraints goal_constraints = robot.constraints_from_frame(frame_WCF, tolerance_position, tolerances_axes, group) try: trajectory = robot.plan_motion(goal_constraints, start_configuration, group, allowed_planning_time=2.0, planner_id="RRT", path_constraints=path_constraints) print("Computed kinematic path with %d configurations." % len(trajectory.points)) print("Executing this path at full speed would take approx. %.3f seconds." % trajectory.time_from_start) except Exception as e: print("robot.plan_motion error:" , e) # Plan with Millimeters with RosClient('192.168.183.129') as client: robot = client.load_robot(load_geometry=False, urdf_param_name='/robot_description', srdf_param_name='/robot_description_semantic', precision=None, local_cache_directory=None) robot.scale(1000) # goal_constraints goal_constraints = robot.constraints_from_frame(frame_WCF_mm, tolerance_position, tolerances_axes, group) try: trajectory = robot.plan_motion(goal_constraints, start_configuration_mm, group, allowed_planning_time=2.0, planner_id="RRT", path_constraints=path_constraints) print("Computed kinematic path with %d configurations." % len(trajectory.points)) print("Executing this path at full speed would take approx. %.3f seconds." % trajectory.time_from_start) except Exception as e: print("robot.plan_motion error:" , e)
python
<!DOCTYPE html> <html class="writer-html5" lang="en" > <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>HPX V1.2.0 (Nov 12, 2018) &mdash; HPX release documentation</title> <link rel="stylesheet" href="../_static/css/theme.css" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../_static/css/theme_overrides.css" type="text/css" /> <!--[if lt IE 9]> <script src="../_static/js/html5shiv.min.js"></script> <![endif]--> <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> <script src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/theme.js"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="next" title="HPX V1.1.0 (Mar 24, 2018)" href="whats_new_1_1_0.html" /> <link rel="prev" title="HPX V1.2.1 (Feb 19, 2019)" href="whats_new_1_2_1.html" /> </head> <body class="wy-body-for-nav"> <div class="wy-grid-for-nav"> <nav data-toggle="wy-nav-shift" class="wy-nav-side"> <div class="wy-side-scroll"> <div class="wy-side-nav-search" > <a href="../index.html" class="icon icon-home"> HPX <img src="../_static/HPX_STELLAR.png" class="logo" alt="Logo"/> </a> <div class="version"> release </div> <div role="search"> <form id="rtd-search-form" class="wy-form" action="../search.html" method="get"> <input type="text" name="q" placeholder="Search docs" /> <input type="hidden" name="check_keywords" value="yes" /> <input type="hidden" name="area" value="default" /> </form> </div> </div> <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation"> <p class="caption"><span class="caption-text">User documentation</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../why_hpx.html">Why <em>HPX</em>?</a></li> <li class="toctree-l1"><a class="reference internal" href="../quickstart.html">Quick start</a></li> <li class="toctree-l1"><a class="reference internal" href="../terminology.html">Terminology</a></li> <li class="toctree-l1"><a class="reference internal" href="../examples.html">Examples</a></li> <li class="toctree-l1"><a class="reference internal" href="../manual.html">Manual</a></li> <li class="toctree-l1"><a class="reference internal" href="../additional_material.html">Additional material</a></li> </ul> <p class="caption"><span class="caption-text">Modules</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../libs/overview.html">Overview</a></li> </ul> <p class="caption"><span class="caption-text">Reference</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../api.html">API reference</a></li> </ul> <p class="caption"><span class="caption-text">Developer documentation</span></p> <ul> <li class="toctree-l1"><a class="reference internal" href="../contributing.html">Contributing to <em>HPX</em></a></li> </ul> <p class="caption"><span class="caption-text">Other</span></p> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal" href="../releases.html">Releases</a><ul class="current"> <li class="toctree-l2"><a class="reference internal" href="whats_new_1_7_0.html"><em>HPX</em> V1.7.0 (Jul 14, 2021)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_1_6_0.html"><em>HPX</em> V1.6.0 (Feb 17, 2021)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_1_5_1.html"><em>HPX</em> V1.5.1 (Sep 30, 2020)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_1_5_0.html"><em>HPX</em> V1.5.0 (Sep 02, 2020)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_1_4_1.html"><em>HPX</em> V1.4.1 (Feb 12, 2020)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_1_4_0.html"><em>HPX</em> V1.4.0 (January 15, 2020)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_1_3_0.html"><em>HPX</em> V1.3.0 (May 23, 2019)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_1_2_1.html"><em>HPX</em> V1.2.1 (Feb 19, 2019)</a></li> <li class="toctree-l2 current"><a class="current reference internal" href="#"><em>HPX</em> V1.2.0 (Nov 12, 2018)</a><ul> <li class="toctree-l3"><a class="reference internal" href="#general-changes">General changes</a></li> <li class="toctree-l3"><a class="reference internal" href="#breaking-changes">Breaking changes</a></li> <li class="toctree-l3"><a class="reference internal" href="#closed-issues">Closed issues</a></li> <li class="toctree-l3"><a class="reference internal" href="#closed-pull-requests">Closed pull requests</a></li> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="whats_new_1_1_0.html"><em>HPX</em> V1.1.0 (Mar 24, 2018)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_1_0_0.html"><em>HPX</em> V1.0.0 (Apr 24, 2017)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_9_99.html"><em>HPX</em> V0.9.99 (Jul 15, 2016)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_9_11.html"><em>HPX</em> V0.9.11 (Nov 11, 2015)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_9_10.html"><em>HPX</em> V0.9.10 (Mar 24, 2015)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_9_9.html"><em>HPX</em> V0.9.9 (Oct 31, 2014, codename Spooky)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_9_8.html"><em>HPX</em> V0.9.8 (Mar 24, 2014)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_9_7.html"><em>HPX</em> V0.9.7 (Nov 13, 2013)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_9_6.html"><em>HPX</em> V0.9.6 (Jul 30, 2013)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_9_5.html"><em>HPX</em> V0.9.5 (Jan 16, 2013)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_9_0.html"><em>HPX</em> V0.9.0 (Jul 5, 2012)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_8_1.html"><em>HPX</em> V0.8.1 (Apr 21, 2012)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_8_0.html"><em>HPX</em> V0.8.0 (Mar 23, 2012)</a></li> <li class="toctree-l2"><a class="reference internal" href="whats_new_0_7_0.html"><em>HPX</em> V0.7.0 (Dec 12, 2011)</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../citing.html">Citing <em>HPX</em></a></li> <li class="toctree-l1"><a class="reference internal" href="../users.html"><em>HPX</em> users</a></li> <li class="toctree-l1"><a class="reference internal" href="../about_hpx.html">About <em>HPX</em></a></li> </ul> </div> </div> </nav> <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"> <nav class="wy-nav-top" aria-label="top navigation"> <i data-toggle="wy-nav-top" class="fa fa-bars"></i> <a href="../index.html">HPX</a> </nav> <div class="wy-nav-content"> <div class="rst-content"> <div role="navigation" aria-label="breadcrumbs navigation"> <ul class="wy-breadcrumbs"> <li><a href="../index.html" class="icon icon-home"></a> &raquo;</li> <li><a href="../releases.html">Releases</a> &raquo;</li> <li><em>HPX</em> V1.2.0 (Nov 12, 2018)</li> <li class="wy-breadcrumbs-aside"> <a href="https://github.com/STEllAR-GROUP/hpx/blob/master/docs/sphinx/releases/whats_new_1_2_0.rst" class="fa fa-github"> Edit on GitHub</a> </li> </ul> <hr/> </div> <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article"> <div itemprop="articleBody"> <div class="section" id="hpx-v1-2-0-nov-12-2018"> <span id="hpx-1-2-0"></span><h1><em>HPX</em> V1.2.0 (Nov 12, 2018)<a class="headerlink" href="#hpx-v1-2-0-nov-12-2018" title="Permalink to this headline">¶</a></h1> <div class="section" id="general-changes"> <h2>General changes<a class="headerlink" href="#general-changes" title="Permalink to this headline">¶</a></h2> <p>Here are some of the main highlights and changes for this release:</p> <ul class="simple"> <li><p>Thanks to the work of our Google Summer of Code student, <NAME>, we now have a new implementation of <code class="docutils literal notranslate"><span class="pre">hpx_main.hpp</span></code> on supported platforms (Linux, BSD and MacOS). This is intended to be a less fragile drop-in replacement for the old implementation relying on preprocessor macros. The new implementation does not require changes if you are using the <a class="reference external" href="https://www.cmake.org">CMake</a> or pkg-config. The old behaviour can be restored by setting <code class="docutils literal notranslate"><span class="pre">HPX_WITH_DYNAMIC_HPX_MAIN=OFF</span></code> during <a class="reference external" href="https://www.cmake.org">CMake</a> configuration. The implementation on Windows is unchanged.</p></li> <li><p>We have added functionality to allow passing scheduling hints to our schedulers. These will allow us to create executors that for example target a specific NUMA domain or allow for <em>HPX</em> threads to be pinned to a particular worker thread.</p></li> <li><p>We have significantly improved the performance of our futures implementation by making the shared state atomic.</p></li> <li><p>We have replaced Boostbook by Sphinx for our documentation. This means the documentation is easier to navigate with built-in search and table of contents. We have also added a quick start section and restructured the documentation to be easier to follow for new users.</p></li> <li><p>We have added a new option to the <a class="reference internal" href="../manual/launching_and_configuring_hpx_applications.html#cmdoption-hpx-threads"><code class="xref std std-option docutils literal notranslate"><span class="pre">--hpx:threads</span></code></a> command line option. It is now possible to use <code class="docutils literal notranslate"><span class="pre">cores</span></code> to tell <em>HPX</em> to only use one worker thread per core, unlike the existing option <code class="docutils literal notranslate"><span class="pre">all</span></code> which uses one worker thread per processing unit (processing unit can be a hyperthread if hyperthreads are available). The default value of <a class="reference internal" href="../manual/launching_and_configuring_hpx_applications.html#cmdoption-hpx-threads"><code class="xref std std-option docutils literal notranslate"><span class="pre">--hpx:threads</span></code></a> has also been changed to <code class="docutils literal notranslate"><span class="pre">cores</span></code> as this leads to better performance in most cases.</p></li> <li><p>All command line options can now be passed alongside configuration options when initializing <em>HPX</em>. This means that some options that were previously only available on the command line can now be set as configuration options.</p></li> <li><p>HPXMP is a portable, scalable, and flexible application programming interface using the OpenMP specification that supports multi-platform shared memory multiprocessing programming in C and C++. HPXMP can be enabled within <em>HPX</em> by setting <code class="docutils literal notranslate"><span class="pre">DHPX_WITH_HPXMP=ON</span></code> during <a class="reference external" href="https://www.cmake.org">CMake</a> configuration.</p></li> <li><p>Two new performance counters were added for measuring the time spent doing background work. <code class="docutils literal notranslate"><span class="pre">/threads/time/background-work-duration</span></code> returns the time spent doing background on a given thread or locality, while <code class="docutils literal notranslate"><span class="pre">/threads/time/background-overhead</span></code> returns the fraction of time spent doing background work with respect to the overall time spent running the scheduler. The new performance counters are disabled by default and can be turned on by setting <code class="docutils literal notranslate"><span class="pre">HPX_WITH_BACKGROUND_THREAD_COUNTERS=ON</span></code> during <a class="reference external" href="https://www.cmake.org">CMake</a> configuration.</p></li> <li><p>The idling behaviour of <em>HPX</em> has been tweaked to allow for faster idling. This is useful in interactive applications where the <em>HPX</em> worker threads may not have work all the time. This behaviour can be tweaked and turned off as before with <code class="docutils literal notranslate"><span class="pre">HPX_WITH_THREAD_MANAGER_IDLE_BACKOFF=OFF</span></code> during <a class="reference external" href="https://www.cmake.org">CMake</a> configuration.</p></li> <li><p>It is now possible to register callback functions for <em>HPX</em> worker thread events. Callbacks can be registered for starting and stopping worker threads, and for when errors occur.</p></li> </ul> </div> <div class="section" id="breaking-changes"> <h2>Breaking changes<a class="headerlink" href="#breaking-changes" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p>The implementation of <code class="docutils literal notranslate"><span class="pre">hpx_main.hpp</span></code> has changed. If you are using custom Makefiles you will need to make changes. Please see the documentation on <a class="reference internal" href="../manual/creating_hpx_projects.html#makefile"><span class="std std-ref">using Makefiles</span></a> for more details.</p></li> <li><p>The default value of <a class="reference internal" href="../manual/launching_and_configuring_hpx_applications.html#cmdoption-hpx-threads"><code class="xref std std-option docutils literal notranslate"><span class="pre">--hpx:threads</span></code></a> has changed from <code class="docutils literal notranslate"><span class="pre">all</span></code> to <code class="docutils literal notranslate"><span class="pre">cores</span></code>. The new option <code class="docutils literal notranslate"><span class="pre">cores</span></code> only starts one worker thread per core.</p></li> <li><p>We have dropped support for Boost 1.56 and 1.57. The minimal version of Boost we now test is 1.58.</p></li> <li><p>Our <code class="docutils literal notranslate"><span class="pre">boost::format</span></code>-based formatting implementation has been revised and replaced with a custom implementation. This changes the formatting syntax and requires changes if you are relying on <a class="reference internal" href="../libs/core/format/api.html#_CPPv4IDpEN3hpx4util6formatENSt6stringEN5boost10string_refEDpRK4Args" title="hpx::util::format"><code class="xref cpp cpp-func docutils literal notranslate"><span class="pre">hpx::util::format</span></code></a> or <a class="reference internal" href="../libs/core/format/api.html#_CPPv4IDpEN3hpx4util9format_toERNSt7ostreamERNSt7ostreamEN5boost10string_refEDpRK4Args" title="hpx::util::format_to"><code class="xref cpp cpp-func docutils literal notranslate"><span class="pre">hpx::util::format_to</span></code></a>. The pull request for this change contains more information: <a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3266">PR #3266</a>.</p></li> <li><p>The following deprecated options have now been completely removed: <code class="docutils literal notranslate"><span class="pre">HPX_WITH_ASYNC_FUNCTION_COMPATIBILITY</span></code>, <code class="docutils literal notranslate"><span class="pre">HPX_WITH_LOCAL_DATAFLOW</span></code>, <code class="docutils literal notranslate"><span class="pre">HPX_WITH_GENERIC_EXECUTION_POLICY</span></code>, <code class="docutils literal notranslate"><span class="pre">HPX_WITH_BOOST_CHRONO_COMPATIBILITY</span></code>, <code class="docutils literal notranslate"><span class="pre">HPX_WITH_EXECUTOR_COMPATIBILITY</span></code>, <code class="docutils literal notranslate"><span class="pre">HPX_WITH_EXECUTION_POLICY_COMPATIBILITY</span></code>, and <code class="docutils literal notranslate"><span class="pre">HPX_WITH_TRANSFORM_REDUCE_COMPATIBILITY</span></code>.</p></li> </ul> </div> <div class="section" id="closed-issues"> <h2>Closed issues<a class="headerlink" href="#closed-issues" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3538">Issue #3538</a> - numa handling incorrect for hwloc 2</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3533">Issue #3533</a> - Cmake version 3.5.1does not work (git ff26b35 2018-11-06)</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3526">Issue #3526</a> - Failed building hpx-1.2.0-rc1 on Ubuntu16.04 x86-64 Virtualbox VM</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3512">Issue #3512</a> - Build on aarch64 fails</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3475">Issue #3475</a> - HPX fails to link if the MPI parcelport is enabled</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3462">Issue #3462</a> - CMake configuration shows a minor and inconsequential failure to create a symlink</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3461">Issue #3461</a> - Compilation Problems with the most recent Clang</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3460">Issue #3460</a> - Deadlock when create_partitioner fails (assertion fails) in debug mode</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3455">Issue #3455</a> - HPX build failing with HWLOC errors on POWER8 with hwloc 1.8</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3438">Issue #3438</a> - HPX no longer builds on IBM POWER8</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3426">Issue #3426</a> - hpx build failed on MacOS</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3424">Issue #3424</a> - CircleCI builds broken for forked repositories</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3422">Issue #3422</a> - Benchmarks in tests.performance.local are not run nightly</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3408">Issue #3408</a> - CMake Targets for HPX</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3399">Issue #3399</a> - processing unit out of bounds</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3395">Issue #3395</a> - Floating point bug in hpx/runtime/threads/policies/scheduler_base.hpp</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3378">Issue #3378</a> - compile error with lcos::communicator</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3376">Issue #3376</a> - Failed to build HPX with APEX using clang</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3366">Issue #3366</a> - Adapted Safe_Object example fails for –hpx:threads &gt; 1</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3360">Issue #3360</a> - Segmentation fault when passing component id as parameter</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3358">Issue #3358</a> - HPX runtime hangs after multiple (~thousands) start-stop sequences</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3352">Issue #3352</a> - Support TCP provider in libfabric ParcelPort</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3342">Issue #3342</a> - undefined reference to __atomic_load_16</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3339">Issue #3339</a> - setting command line options/flags from init cfg is not obvious</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3325">Issue #3325</a> - AGAS migrates components prematurely</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3321">Issue #3321</a> - hpx bad_parameter handling is awful</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3318">Issue #3318</a> - Benchmarks fail to build with C++11</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3304">Issue #3304</a> - hpx::threads::run_as_hpx_thread does not properly handle exceptions</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3300">Issue #3300</a> - Setting pu step or offset results in no threads in default pool</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3297">Issue #3297</a> - Crash with APEX when running Phylanx lra_csv with &gt; 1 thread</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3296">Issue #3296</a> - Building HPX with APEX configuration gives compiler warnings</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3290">Issue #3290</a> - make tests failing at hello_world_component</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3285">Issue #3285</a> - possible compilation error when “using namespace std;” is defined before including “hpx” headers files</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3280">Issue #3280</a> - HPX fails on OSX</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3272">Issue #3272</a> - CircleCI does not upload generated docker image any more</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3270">Issue #3270</a> - Error when compiling CUDA examples</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3267">Issue #3267</a> - <code class="docutils literal notranslate"><span class="pre">tests.unit.host_.block_allocator</span></code> fails occasionally</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3264">Issue #3264</a> - Possible move to Sphinx for documentation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3263">Issue #3263</a> - Documentation improvements</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3259">Issue #3259</a> - <code class="docutils literal notranslate"><span class="pre">set_parcel_write_handler</span></code> test fails occasionally</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3258">Issue #3258</a> - Links to source code in documentation are broken</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3247">Issue #3247</a> - Rare <code class="docutils literal notranslate"><span class="pre">tests.unit.host_.block_allocator</span></code> test failure on 1.1.0-rc1</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3244">Issue #3244</a> - Slowing down and speeding up an interval_timer</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3215">Issue #3215</a> - Cannot build both tests and examples on MSVC with pseudo-dependencies enabled</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3195">Issue #3195</a> - Unnecessary customization point route causing performance penalty</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/3088">Issue #3088</a> - A strange thing in parallel::sort.</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/2650">Issue #2650</a> - libfabric support for passive endpoints</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/issues/1205">Issue #1205</a> - TSS is broken</p></li> </ul> </div> <div class="section" id="closed-pull-requests"> <h2>Closed pull requests<a class="headerlink" href="#closed-pull-requests" title="Permalink to this headline">¶</a></h2> <ul class="simple"> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3542">PR #3542</a> - Fix numa lookup from pu when using hwloc 2.x</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3541">PR #3541</a> - Fixing the build system of the MPI parcelport</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3540">PR #3540</a> - Updating HPX people section</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3539">PR #3539</a> - Splitting test to avoid OOM on CircleCI</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3537">PR #3537</a> - Fix guided exec</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3536">PR #3536</a> - Updating grants which support the LSU team</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3535">PR #3535</a> - Fix hiding of docker credentials</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3534">PR #3534</a> - Fixing #3533</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3532">PR #3532</a> - fixing minor doc typo –hpx:print-counter-at arg</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3530">PR #3530</a> - Changing APEX default tag to v2.1.0</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3529">PR #3529</a> - Remove leftover security options and documentation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3528">PR #3528</a> - Fix hwloc version check</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3524">PR #3524</a> - Do not build guided pool examples with older GCC compilers</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3523">PR #3523</a> - Fix logging regression</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3522">PR #3522</a> - Fix more warnings</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3521">PR #3521</a> - Fixing argument handling in induction and reduction clauses for parallel::for_loop</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3520">PR #3520</a> - Remove docs symlink and versioned docs folders</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3519">PR #3519</a> - hpxMP release</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3518">PR #3518</a> - Change all steps to use new docker image on CircleCI</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3516">PR #3516</a> - Drop usage of deprecated facilities removed in C++17</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3515">PR #3515</a> - Remove remaining uses of Boost.TypeTraits</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3513">PR #3513</a> - Fixing a CMake problem when trying to use libfabric</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3508">PR #3508</a> - Remove memory_block component</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3507">PR #3507</a> - Propagating the MPI compile definitions to all relevant targets</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3503">PR #3503</a> - Update documentation colors and logo</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3502">PR #3502</a> - Fix bogus `throws` bindings in scheduled_thread_pool_impl</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3501">PR #3501</a> - Split parallel::remove_if tests to avoid OOM on CircleCI</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3500">PR #3500</a> - Support NONAMEPREFIX in add_hpx_library()</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3497">PR #3497</a> - Note that cuda support requires cmake 3.9</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3495">PR #3495</a> - Fixing dataflow</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3493">PR #3493</a> - Remove deprecated options for 1.2.0 part 2</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3492">PR #3492</a> - Add CUDA_LINK_LIBRARIES_KEYWORD to allow PRIVATE keyword in linkage t…</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3491">PR #3491</a> - Changing Base docker image</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3490">PR #3490</a> - Don’t create tasks immediately with hpx::apply</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3489">PR #3489</a> - Remove deprecated options for 1.2.0</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3488">PR #3488</a> - Revert “Use BUILD_INTERFACE generator expression to fix cmake flag exports”</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3487">PR #3487</a> - Revert “Fixing type attribute warning for transfer_action”</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3485">PR #3485</a> - Use BUILD_INTERFACE generator expression to fix cmake flag exports</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3483">PR #3483</a> - Fixing type attribute warning for transfer_action</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3481">PR #3481</a> - Remove unused variables</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3480">PR #3480</a> - Towards a more lightweight transfer action</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3479">PR #3479</a> - Fix FLAGS - Use correct version of target_compile_options</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3478">PR #3478</a> - Making sure the application’s exit code is properly propagated back to the OS</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3476">PR #3476</a> - Don’t print docker credentials as part of the environment.</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3473">PR #3473</a> - Fixing invalid cmake code if no jemalloc prefix was given</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3472">PR #3472</a> - Attempting to work around recent clang test compilation failures</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3471">PR #3471</a> - Enable jemalloc on windows</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3470">PR #3470</a> - Updates readme</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3468">PR #3468</a> - Avoid hang if there is an exception thrown during startup</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3467">PR #3467</a> - Add compiler specific fallthrough attributes if C++17 attribute is not available</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3466">PR #3466</a> - - bugfix : fix compilation with llvm-7.0</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3465">PR #3465</a> - This patch adds various optimizations extracted from the thread_local_allocator work</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3464">PR #3464</a> - Check for forked repos in CircleCI docker push step</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3463">PR #3463</a> - - cmake : create the parent directory before symlinking</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3459">PR #3459</a> - Remove unused/incomplete functionality from util/logging</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3458">PR #3458</a> - Fix a problem with scope of CMAKE_CXX_FLAGS and hpx_add_compile_flag</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3457">PR #3457</a> - Fixing more size_t -&gt; int16_t (and similar) warnings</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3456">PR #3456</a> - Add #ifdefs to topology.cpp to support old hwloc versions again</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3454">PR #3454</a> - Fixing warnings related to silent conversion of size_t –&gt; int16_t</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3451">PR #3451</a> - Add examples as unit tests</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3450">PR #3450</a> - Constexpr-fying bind and other functional facilities</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3446">PR #3446</a> - Fix some thread suspension timeouts</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3445">PR #3445</a> - Fix various warnings</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3443">PR #3443</a> - Only enable service pool config options if pools are enabled</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3441">PR #3441</a> - Fix missing closing brackets in documentation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3439">PR #3439</a> - Use correct MPI CXX libraries for MPI parcelport</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3436">PR #3436</a> - Add projection function to find_* (and fix very bad bug)</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3435">PR #3435</a> - Fixing 1205</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3434">PR #3434</a> - Fix threads cores</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3433">PR #3433</a> - Add Heise Online to release announcement list</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3432">PR #3432</a> - Don’t track task dependencies for distributed runs</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3431">PR #3431</a> - Circle CI setting changes for hpxMP</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3430">PR #3430</a> - Fix unused params warning</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3429">PR #3429</a> - One thread per core</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3428">PR #3428</a> - This suppresses a deprecation warning that is being issued by MSVC 19.15.26726</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3427">PR #3427</a> - Fixes #3426</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3425">PR #3425</a> - Use source cache and workspace between job steps on CircleCI</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3421">PR #3421</a> - Add CDash timing output to future overhead test (for graphs)</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3420">PR #3420</a> - Add guided_pool_executor</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3419">PR #3419</a> - Fix typo in CircleCI config</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3418">PR #3418</a> - Add sphinx documentation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3415">PR #3415</a> - Scheduler NUMA hint and shared priority scheduler</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3414">PR #3414</a> - Adding step to synchronize the APEX release</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3413">PR #3413</a> - Fixing multiple defines of APEX_HAVE_HPX</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3412">PR #3412</a> - Fixes linking with libhpx_wrap error with BSD and Windows based systems</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3410">PR #3410</a> - Fix typo in CMakeLists.txt</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3409">PR #3409</a> - Fix brackets and indentation in existing_performance_counters.qbk</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3407">PR #3407</a> - Fix unused param and extra ; warnings emitted by gcc 8.x</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3406">PR #3406</a> - Adding thread local allocator and use it for future shared states</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3405">PR #3405</a> - Adding DHPX_HAVE_THREAD_LOCAL_STORAGE=ON to builds</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3404">PR #3404</a> - fixing multiple definition of main() in linux</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3402">PR #3402</a> - Allow debug option to be enabled only for Linux systems with dynamic main on</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3401">PR #3401</a> - Fix cuda_future_helper.h when compiling with C++11</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3400">PR #3400</a> - Fix floating point exception scheduler_base idle backoff</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3398">PR #3398</a> - Atomic future state</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3397">PR #3397</a> - Fixing code for older gcc versions</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3396">PR #3396</a> - Allowing to register thread event functions (start/stop/error)</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3394">PR #3394</a> - Fix small mistake in primary_namespace_server.cpp</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3393">PR #3393</a> - Explicitly instantiate configured schedulers</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3392">PR #3392</a> - Add performance counters background overhead and background work duration</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3391">PR #3391</a> - Adapt integration of HPXMP to latest build system changes</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3390">PR #3390</a> - Make AGAS measurements optional</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3389">PR #3389</a> - Fix deadlock during shutdown</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3388">PR #3388</a> - Add several functionalities allowing to optimize synchronous action invocation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3387">PR #3387</a> - Add cmake option to opt out of fail-compile tests</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3386">PR #3386</a> - Adding support for boost::container::small_vector to dataflow</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3385">PR #3385</a> - Adds Debug option for hpx initializing from main</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3384">PR #3384</a> - This hopefully fixes two tests that occasionally fail</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3383">PR #3383</a> - Making sure thread local storage is enable for hpxMP</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3382">PR #3382</a> - Fix usage of HPX_CAPTURE together with default value capture [=]</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3381">PR #3381</a> - Replace undefined instantiations of uniform_int_distribution</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3380">PR #3380</a> - Add missing semicolons to uses of HPX_COMPILER_FENCE</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3379">PR #3379</a> - Fixing #3378</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3377">PR #3377</a> - Adding build system support to integrate hpxmp into hpx at the user’s machine</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3375">PR #3375</a> - Replacing wrapper for __libc_start_main with main</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3374">PR #3374</a> - Adds hpx_wrap to HPX_LINK_LIBRARIES which links only when specified.</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3373">PR #3373</a> - Forcing cache settings in HPXConfig.cmake to guarantee updated values</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3372">PR #3372</a> - Fix some more c++11 build problems</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3371">PR #3371</a> - Adds HPX_LINKER_FLAGS to HPX applications without editing their source codes</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3370">PR #3370</a> - util::format: add type_specifier&lt;&gt; specializations for %!s(MISSING) and %!l(MISSING)s</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3369">PR #3369</a> - Adding configuration option to allow explicit disable of the new hpx_main feature on Linux</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3368">PR #3368</a> - Updates doc with recent hpx_wrap implementation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3367">PR #3367</a> - Adds Mac OS implementation to hpx_main.hpp</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3365">PR #3365</a> - Fix order of hpx libs in HPX_CONF_LIBRARIES.</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3363">PR #3363</a> - Apex fixing null wrapper</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3361">PR #3361</a> - Making sure all parcels get destroyed on an HPX thread (TCP pp)</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3359">PR #3359</a> - Feature/improveerrorforcompiler</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3357">PR #3357</a> - Static/dynamic executable implementation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3355">PR #3355</a> - Reverting changes introduced by #3283 as those make applications hang</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3354">PR #3354</a> - Add external dependencies to HPX_LIBRARY_DIR</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3353">PR #3353</a> - Fix libfabric tcp</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3351">PR #3351</a> - Move obsolete header to tests directory.</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3350">PR #3350</a> - Renaming two functions to avoid problem described in #3285</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3349">PR #3349</a> - Make idle backoff exponential with maximum sleep time</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3347">PR #3347</a> - Replace <cite>simple_component*</cite> with <cite>component*</cite> in the Documentation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3346">PR #3346</a> - Fix CMakeLists.txt example in quick start</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3345">PR #3345</a> - Fix automatic setting of HPX_MORE_THAN_64_THREADS</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3344">PR #3344</a> - Reduce amount of information printed for unknown command line options</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3343">PR #3343</a> - Safeguard HPX against destruction in global contexts</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3341">PR #3341</a> - Allowing for all command line options to be used as configuration settings</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3340">PR #3340</a> - Always convert inspect results to JUnit XML</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3336">PR #3336</a> - Only run docker push on master on CircleCI</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3335">PR #3335</a> - Update description of hpx.os_threads config parameter.</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3334">PR #3334</a> - Making sure early logging settings don’t get mixed with others</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3333">PR #3333</a> - Update CMake links and versions in documentation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3332">PR #3332</a> - Add notes on target suffixes to CMake documentation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3331">PR #3331</a> - Add quickstart section to documentation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3330">PR #3330</a> - Rename resource_partitioner test to avoid conflicts with pseudodependencies</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3328">PR #3328</a> - Making sure object is pinned while executing actions, even if action returns a future</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3327">PR #3327</a> - Add missing std::forward to tuple.hpp</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3326">PR #3326</a> - Make sure logging is up and running while modules are being discovered.</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3324">PR #3324</a> - Replace C++14 overload of std::equal with C++11 code.</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3323">PR #3323</a> - Fix a missing apex thread data (wrapper) initialization</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3320">PR #3320</a> - Adding support for -std=c++2a (define <cite>HPX_WITH_CXX2A=On</cite>)</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3319">PR #3319</a> - Replacing C++14 feature with equivalent C++11 code</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3317">PR #3317</a> - Fix compilation with VS 15.7.1 and /std:c++latest</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3316">PR #3316</a> - Fix includes for 1d_stencil_*_omp examples</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3314">PR #3314</a> - Remove some unused parameter warnings</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3313">PR #3313</a> - Fix pu-step and pu-offset command line options</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3312">PR #3312</a> - Add conversion of inspect reports to JUnit XML</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3311">PR #3311</a> - Fix escaping of closing braces in format specification syntax</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3310">PR #3310</a> - Don’t overwrite user settings with defaults in registration database</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3309">PR #3309</a> - Fixing potential stack overflow for dataflow</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3308">PR #3308</a> - This updates the .clang-format configuration file to utilize newer features</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3306">PR #3306</a> - Marking migratable objects in their gid to allow not handling migration in AGAS</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3305">PR #3305</a> - Add proper exception handling to run_as_hpx_thread</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3303">PR #3303</a> - Changed std::rand to a better inbuilt PRNG Generator</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3302">PR #3302</a> - All non-migratable (simple) components now encode their lva and component type in their gid</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3301">PR #3301</a> - Add nullptr_t overloads to resource partitioner</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3298">PR #3298</a> - Apex task wrapper memory bug</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3295">PR #3295</a> - Fix mistakes after merge of CircleCI config</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3294">PR #3294</a> - Fix partitioned vector include in partitioned_vector_find tests</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3293">PR #3293</a> - Adding emplace support to promise and make_ready_future</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3292">PR #3292</a> - Add new cuda kernel synchronization with hpx::future demo</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3291">PR #3291</a> - Fixes #3290</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3289">PR #3289</a> - Fixing Docker image creation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3288">PR #3288</a> - Avoid allocating shared state for wait_all</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3287">PR #3287</a> - Fixing /scheduler/utilization/instantaneous performance counter</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3286">PR #3286</a> - dataflow() and future::then() use sync policy where possible</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3284">PR #3284</a> - Background thread can use relaxed atomics to manipulate thread state</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3283">PR #3283</a> - Do not unwrap ready future</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3282">PR #3282</a> - Fix virtual method override warnings in static schedulers</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3281">PR #3281</a> - Disable set_area_membind_nodeset for OSX</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3279">PR #3279</a> - Add two variations to the future_overhead benchmark</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3278">PR #3278</a> - Fix circleci workspace</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3277">PR #3277</a> - Support external plugins</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3276">PR #3276</a> - Fix missing parenthesis in hello_compute.cu.</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3274">PR #3274</a> - Reinit counters synchronously in reinit_counters test</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3273">PR #3273</a> - Splitting tests to avoid compiler OOM</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3271">PR #3271</a> - Remove leftover code from context_generic_context.hpp</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3269">PR #3269</a> - Fix bulk_construct with count = 0</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3268">PR #3268</a> - Replace constexpr with HPX_CXX14_CONSTEXPR and HPX_CONSTEXPR</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3266">PR #3266</a> - Replace boost::format with custom sprintf-based implementation</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3265">PR #3265</a> - Split parallel tests on CircleCI</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3262">PR #3262</a> - Making sure documentation correctly links to source files</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3261">PR #3261</a> - Apex refactoring fix rebind</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3260">PR #3260</a> - Isolate performance counter parser into a separate TU</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3256">PR #3256</a> - Post 1.1.0 version bumps</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3254">PR #3254</a> - Adding trait for actions allowing to make runtime decision on whether to execute it directly</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3253">PR #3253</a> - Bump minimal supported Boost to 1.58.0</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3251">PR #3251</a> - Adds new feature: changing interval used in interval_timer (issue 3244)</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3239">PR #3239</a> - Changing std::rand() to a better inbuilt PRNG generator.</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3234">PR #3234</a> - Disable background thread when networking is off</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3232">PR #3232</a> - Clean up suspension tests</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3230">PR #3230</a> - Add optional scheduler mode parameter to create_thread_pool function</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3228">PR #3228</a> - Allow suspension also on static schedulers</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3163">PR #3163</a> - libfabric parcelport w/o HPX_PARCELPORT_LIBFABRIC_ENDPOINT_RDM</p></li> <li><p><a class="reference external" href="https://github.com/STEllAR-GROUP/hpx/pull/3036">PR #3036</a> - Switching to CircleCI 2.0</p></li> </ul> </div> </div> </div> </div> <!-- Copyright (c) 2018 <NAME> Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) --> <!-- Make HPX inspect tool happy: hpxinspect:nounlinked --> <footer> <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation"> <a href="whats_new_1_1_0.html" class="btn btn-neutral float-right" title="HPX V1.1.0 (Mar 24, 2018)" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a> <a href="whats_new_1_2_1.html" class="btn btn-neutral float-left" title="HPX V1.2.1 (Feb 19, 2019)" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a> </div> <hr/> <div role="contentinfo"> <p> &#169; Copyright 2008-2020, The STE||AR Group. <span class="commit"> Revision <code>4225f1d</code>. </span> <span class="lastupdated"> Last updated on Jul 14, 2021. </span> </p> </div> Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>. SPDX-License-Identifier: BSL-1.0 Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</a>) </footer> </div> </div> </section> </div> <script type="text/javascript"> jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); </script> </body> </html>
html
<reponame>souzafcharles/Programming-for-the-Web-III package org.souza.charles.activity07.domain; import javax.persistence.Column; import javax.persistence.EnumType; import javax.persistence.Enumerated; public class Address { @Column(nullable = false) private String street; @Column(nullable = false) private String district; @Column(nullable = false) private String city; @Column(nullable = false, length = 2) @Enumerated(EnumType.STRING) private UF uf; @Column(nullable = false, length = 9) private String zipcode; @Column(nullable = false, length = 5) private Integer number; private String complement; public String getStreet() { return street; } public void setStreet(String street) { this.street = street; } public String getDistrict() { return district; } public void setDistrict(String district) { this.district = district; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public UF getUf() { return uf; } public void setUf(UF uf) { this.uf = uf; } public String getZipcode() { return zipcode; } public void setZipcode(String zipcode) { this.zipcode = zipcode; } public Integer getNumber() { return number; } public void setNumber(Integer number) { this.number = number; } public String getComplement() { return complement; } public void setComplement(String complement) { this.complement = complement; } }
java
<gh_stars>1-10 CKEDITOR.plugins.setLang( 'tablesort', 'nl', { 'tablesort' : { 'alphanumeric' : 'Alfanumeriek', 'asc' : 'Oplopend', 'body' : 'Sorteer de BODY van de tabel', 'by' : 'Sorteren naar', 'column' : 'Kolom', 'date' : 'Datum', 'desc' : 'Aflopend', 'foot' : 'Sorteer de FOOT van de tabel', 'head' : 'Sorteer de HEAD van de tabel', 'menu' : 'Sorteer tabel', 'numeric' : 'Numeriek', 'order' : 'Volgorde', 'title' : 'Sorteer tabel', 'type' : 'Gesorteerd naar' } });
javascript
discharged after recovery, the health department said. Over 1. 62 lakh people were home quarantined in the last one week, the bulletin said. A total of 47. 18 lakh samples were tested so far, out of which 25,171 were Rapid Antigen tests, it said.
english
The pancreas plays a vital role in your physical well-being. Sitting between the small intestine and the stomach, the pancreas helps with digestion, as well as the regulation of energy throughout your body. However, this organ can suffer damage through Alcohol abuse. In Western Europe, 70% to 80% of chronic Pancreatitis is caused by heavy drinking. Excessive consumption of alcohol is a contributing factor in 17% to 25% of all worldwide pancreatitis cases. Habitually drinking 4-5 units of alcohol a day over 5 years greatly enhances your chance of contracting pancreatitis. Though it’s not fully understood how alcohol affects the pancreas (one theory is that molecules from alcohol interfere with the pancreatic cells), studies have shown a clear link between alcohol consumption and acute pancreatitis. If heavy drinking occurs over a long period, the individual is susceptible to developing Chronic Pancreatitis. For people who regularly abuse alcohol, there can be a recurrence of pancreatitis after recovering from this medical issue. The pain experienced by both acute and chronic pancreatitis occurs in the same region: your abdomen and back. Acute pancreatitis causes this dull pain that can be cyclical, recurring regularly over several minutes to a few hours. Chronic pancreatitis is the result of an inflamed pancreas. The pain from this level of the illness can be severe and may last for many years. Males (especially those who have abused alcohol) are more prone to getting chronic pancreatitis over females. People who have a genetic predisposition to pancreatitis may find they develop this health issue at an earlier stage of their life. Here we list the symptoms of both forms of pancreatitis (these are in addition to the pain mentioned above). This allows you to self-diagnose so that you can seek professional medical help. Signs that you may have acute pancreatitis are: - Your stomach is swollen or is tender when touched. The symptoms of chronic pancreatitis are similar to those of the acute form. However, there can be some additional indications that you are suffering from this: - Jaundice (the skin and eyes take on a yellow hue) - Diabetic-like symptoms (excessive thirst, frequent urination, fatigue) Chronic pancreatitis usually occurs after an individual has had one or more cases of the acute variation. The pain may be experienced directly after having a meal, as the pancreas is an organ involved in the digestion process. If you are experiencing the onset of acute pancreatitis, you need to take immediate action to mitigate the situation. Stop drinking alcohol and switch to a low-fat diet. Seek professional medical help. Continuing to consume alcohol will only exacerbate the issue and lead to the development of chronic pancreatitis. As we have mentioned, heavy drinking can be a major factor in a person developing acute pancreatitis. Ongoing alcohol abuse can result in the sickness becoming more severe. Maybe you or someone you know doesn’t realize they have an issue with alcohol. Warning signs that one may have alcohol dependency problems are: - Mood swings are stabilized through alcohol. Though one symptom isn’t enough to indicate one is on the path to becoming an alcoholic, several signs co-occurring should raise red flags. Seek out professional psychological and medical support if you, a family member, or a friend show signs of alcohol abuse. Heavy drinking can have a myriad of adverse health effects. One of these is the development of acute and chronic pancreatitis. Though the symptoms of this illness are the same for both varieties, the difference lies in the degree of pain experienced. Chronic pancreatitis pain is severe and can reoccur over several years. To prevent the progression of this sickness from its acute form, alcohol issues need to be addressed. Reach out for help regarding your alcohol dependency. There are plenty addiction treatment centers that can effectively treat alcohol addiction. They can also get you the medical help necessary to treat alcohol-induced pancreatitis. The post Signs and Symptoms of Alcohol-Induced Pancreatitis appeared first on Detox To Rehab.
english
<filename>simple/simple-transport/src/main/java/org/simpleframework/transport/TransportSocketProcessor.java /* * TransportSocketProcessor.java February 2007 * * Copyright (C) 2007, <NAME> <<EMAIL>> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or * implied. See the License for the specific language governing * permissions and limitations under the License. */ package org.simpleframework.transport; import java.io.IOException; import org.simpleframework.common.thread.ConcurrentExecutor; import org.simpleframework.common.thread.Daemon; import org.simpleframework.transport.reactor.ExecutorReactor; import org.simpleframework.transport.reactor.Operation; import org.simpleframework.transport.reactor.Reactor; /** * The <code>TransportSocketProcessor</code> is used to convert sockets * to transports. This acts as an adapter to a transport processor * which converts a connected socket to a <code>Transport</code> that * can be used to read and write data. Depending on whether there is * an <code>SSLEngine</code> associated with the socket or not, there * could be an SSL handshake performed. * * @author <NAME> */ public class TransportSocketProcessor implements SocketProcessor { /** * This is the executor used to execute the I/O operations. */ private final ConcurrentExecutor executor; /** * This is the factory used to create the required operations. */ private final OperationFactory factory; /** * This is the processor used to process transport objects. */ private final Reactor reactor; /** * This is used to clean the internals of the processor. */ private final Daemon cleaner; /** * Constructor for the <code>TransportSocketProcessor</code> object. * The transport processor is used to process plain connections * and wrap those connections in a <code>Transport</code> that * can be used to send and receive data to and from. * * @param processor this is used to process transports */ public TransportSocketProcessor(TransportProcessor processor) throws IOException { this(processor, 8); } /** * Constructor for the <code>TransportSocketProcessor</code> object. * The transport processor is used to process plain connections * and wrap those connections in a <code>Transport</code> that * can be used to send and receive data to and from. * * @param processor this is used to process transports * @param threads this is the number of threads this will use */ public TransportSocketProcessor(TransportProcessor processor, int threads) throws IOException { this(processor, threads, 4096); } /** * Constructor for the <code>TransportSocketProcessor</code> object. * The transport processor is used to process plain connections * and wrap those connections in a <code>Transport</code> that * can be used to send and receive data to and from. * * @param processor this is used to process transports * @param threads this is the number of threads this will use * @param buffer this is the initial size of the output buffer */ public TransportSocketProcessor(TransportProcessor processor, int threads, int buffer) throws IOException { this(processor, threads, buffer, 20480); } /** * Constructor for the <code>TransportSocketProcessor</code> object. * The transport processor is used to process plain connections * and wrap those connections in a <code>Transport</code> that * can be used to send and receive data to and from. * * @param processor this is used to process transports * @param threads this is the number of threads this will use * @param buffer this is the initial size of the output buffer * @param threshold this is the maximum size of the output buffer */ public TransportSocketProcessor(TransportProcessor processor, int threads, int buffer, int threshold) throws IOException { this(processor, threads, buffer, threshold, false); } /** * Constructor for the <code>TransportSocketProcessor</code> object. * The transport processor is used to process plain connections * and wrap those connections in a <code>Transport</code> that * can be used to send and receive data to and from. * * @param processor this is used to process transports * @param threads this is the number of threads this will use * @param buffer this is the initial size of the output buffer * @param threshold this is the maximum size of the output buffer * @param client determines if the SSL handshake is for a client */ public TransportSocketProcessor(TransportProcessor processor, int threads, int buffer, int threshold, boolean client) throws IOException { this.executor = new ConcurrentExecutor(Operation.class, threads); this.reactor = new ExecutorReactor(executor); this.factory = new OperationFactory(processor, reactor, buffer, threshold, client); this.cleaner = new ServerCleaner(processor, executor, reactor); } /** * Used to connect the <code>Socket</code> which is a full duplex * TCP connection to a higher layer the application. It is this * layer that is responsible for interpreting a protocol or handling * messages in some manner. In the case of HTTP this will initiate * the consumption of a HTTP request after any SSL handshake is * finished if the connection is secure. * * @param socket this is the connected HTTP pipeline to process */ public void process(Socket socket) throws IOException { Operation task = factory.getInstance(socket); if(task != null) { reactor.process(task); } } /** * This is implemented to shut down the server asynchronously. It * will start a process to perform the shutdown. Asynchronous * shutdown allows a server resource executed via a HTTP request * can stop the server without any danger of killing itself or * even worse causing a deadlock. */ public void stop() throws IOException { cleaner.start(); executor.stop(); } }
java
<reponame>bundestag/dip21-daten<filename>18/Schriftliche Frage/18-64969.json<gh_stars>10-100 { "vorgangId": "64969", "VORGANG": { "WAHLPERIODE": "18", "VORGANGSTYP": "Schriftliche Frage", "TITEL": "Dubiose Firmenübernahmen in der Ukraine und Rolle des Oligarchen <NAME>", "AKTUELLER_STAND": "Beantwortet", "SIGNATUR": "", "GESTA_ORDNUNGSNUMMER": "", "WICHTIGE_DRUCKSACHE": { "DRS_HERAUSGEBER": "BT", "DRS_NUMMER": "18/3711", "DRS_TYP": "Schriftliche Fragen", "DRS_LINK": "http://dipbt.bundestag.de:80/dip21/btd/18/037/1803711.pdf" }, "EU_DOK_NR": "", "SCHLAGWORT": [ { "_fundstelle": "true", "__cdata": "Ukraine" }, "Unternehmensübernahme" ], "ABSTRAKT": " Originaltext der Frage(n): \r\n\r\n Inwieweit kann die Bundesregierung bestätigen, dass die Ukraine derzeit eine ganze Kette höchst dubioser Firmenübernahmen erlebt, die ohne Korruption kaum möglich wären, bei denen jetzt auch die Privatbataillone der Oligarchen zum Einsatz kommen, um verkaufsunwillige Unternehmer zu drangsalieren, bei denen immer wieder der Name des Dnjepopetrowsker Oligarchen <NAME> auftaucht, der Hauptfinanzier des Kriegs im Osten (unter dem Freiwilligenbataillon \"Dnepr-1\") und wichtigster Verbündeter der Umsturz- und auch der jetzigen Regierung außerhalb Kiews ist (www.tagesschau.de/ausland/ukraine-unterkleptokratie-verdacht-101.html) und von dem die Bundesregierung nicht bestätigen kann, dass sein finanzieller Einfluss es ihm erlauben würde, der neuen Führung des Landes seine Spielregeln zu diktieren (Plenarprotokoll 18/53, Antwort der Staatsministerin im Auswärtigen Amt, Dr. <NAME>, auf meine Mündliche Frage 10), und inwieweit kann die Bundesregierung bestätigen, dass Reformen gerade dort nicht stattfinden, wo sie die Oligarchen betreffen, im Bereich Energie und bei den Steuern, wobei die großen Konzerne keine zahlen (www.tagesschau.de/ausland/ukraineunter-kleptokratie-verdacht-101.html)? \r\n" }, "VORGANGSABLAUF": { "VORGANGSPOSITION": { "ZUORDNUNG": "BT", "URHEBER": "Schriftliche Frage/Schriftliche Antwort ", "FUNDSTELLE": "09.01.2015 - BT-Drucksache 18/3711, Nr. 17", "FUNDSTELLE_LINK": "http://dipbt.bundestag.de:80/dip21/btd/18/037/1803711.pdf", "PERSOENLICHER_URHEBER": [ { "VORNAME": "Sevim", "NACHNAME": "Dagdelen", "FUNKTION": "MdB", "FRAKTION": "DIE LINKE", "AKTIVITAETSART": "Frage" }, { "VORNAME": "Stephan", "NACHNAME": "Steinlein", "FUNKTION": "Staatssekr.", "RESSORT": "Auswärtiges Amt", "AKTIVITAETSART": "Antwort" } ] } } }
json
<reponame>yotto4/SpotifyBpm<gh_stars>1-10 * { box-sizing: border-box; } body { background-color: black; color: white; } #beat { position: fixed; z-index: -1; top: 0; left: -50px; width: 100px; height: 100%; border-radius: 50%; background-color: blue; } #trackName, #trackArtists, #tempo { height: 1em; } #trackArtists { opacity: 0.5; } #position { margin: 0; width: 100%; } #tempo::after { content: ' BPM'; }
css
{"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"new","expression":{"__symbol":1,"members":[]}}}},{"symbol":{"__symbol":2,"members":[]},"metadata":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"new","expression":{"__symbol":1,"members":[]},"arguments":["."]}}},{"symbol":{"__symbol":3,"members":[]},"metadata":{"provide":{"__symbol":4,"members":[]},"useValue":"/"}},{"symbol":{"__symbol":1,"members":[]},"metadata":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbol":5,"members":[]},"arguments":[{"__symbol":4,"members":[]}]}]],"parameters":[null]}],"resolve":[{"__symbolic":"method"}]}}},{"symbol":{"__symbol":6,"members":[]},"metadata":{"__symbolic":"function"}}],"symbols":[{"__symbol":0,"name":"createUrlResolverWithoutPackagePrefix","filePath":"D:/epsebrou/node_modules/@angular/compiler/src/url_resolver.d.ts"},{"__symbol":1,"name":"UrlResolver","filePath":"D:/epsebrou/node_modules/@angular/compiler/src/url_resolver.d.ts"},{"__symbol":2,"name":"createOfflineCompileUrlResolver","filePath":"D:/epsebrou/node_modules/@angular/compiler/src/url_resolver.d.ts"},{"__symbol":3,"name":"DEFAULT_PACKAGE_URL_PROVIDER","filePath":"D:/epsebrou/node_modules/@angular/compiler/src/url_resolver.d.ts"},{"__symbol":4,"name":"PACKAGE_ROOT_URL","filePath":"D:/epsebrou/node_modules/@angular/core/core.d.ts"},{"__symbol":5,"name":"Inject","filePath":"D:/epsebrou/node_modules/@angular/core/core.d.ts"},{"__symbol":6,"name":"getUrlScheme","filePath":"D:/epsebrou/node_modules/@angular/compiler/src/url_resolver.d.ts"}]}
json
/* cyrillic-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWyV9hmIqOjjg.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWyV9hvIqOjjg.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWyV9hnIqOjjg.woff2) format('woff2'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWyV9hoIqOjjg.woff2) format('woff2'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWyV9hkIqOjjg.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWyV9hlIqOjjg.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWyV9hrIqM.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem6YaGs126MiZpBA-UFUK0Udc1UAw.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem6YaGs126MiZpBA-UFUK0ddc1UAw.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem6YaGs126MiZpBA-UFUK0Vdc1UAw.woff2) format('woff2'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem6YaGs126MiZpBA-UFUK0adc1UAw.woff2) format('woff2'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem6YaGs126MiZpBA-UFUK0Wdc1UAw.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem6YaGs126MiZpBA-UFUK0Xdc1UAw.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem6YaGs126MiZpBA-UFUK0Zdc0.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKXGUdhvIqOjjg.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKXGUdhnIqOjjg.woff2) format('woff2'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKXGUdhoIqOjjg.woff2) format('woff2'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKXGUdhkIqOjjg.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKXGUdhlIqOjjg.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKXGUdhrIqM.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWiUNhmIqOjjg.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWiUNhvIqOjjg.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWiUNhnIqOjjg.woff2) format('woff2'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWiUNhoIqOjjg.woff2) format('woff2'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWiUNhkIqOjjg.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWiUNhlIqOjjg.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/memnYaGs126MiZpBA-UFUKWiUNhrIqM.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN_r8OX-hpOqc.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN_r8OVuhpOqc.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN_r8OXuhpOqc.woff2) format('woff2'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN_r8OUehpOqc.woff2) format('woff2'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN_r8OXehpOqc.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN_r8OXOhpOqc.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN_r8OUuhp.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWJ0bbck.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFUZ0bbck.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWZ0bbck.woff2) format('woff2'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVp0bbck.woff2) format('woff2'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWp0bbck.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFW50bbck.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVZ0b.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UNirkOX-hpOqc.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UNirkOVuhpOqc.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UNirkOXuhpOqc.woff2) format('woff2'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UNirkOUehpOqc.woff2) format('woff2'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UNirkOXehpOqc.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UNirkOXOhpOqc.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UNirkOUuhp.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN7rgOX-hpOqc.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN7rgOVuhpOqc.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* greek-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN7rgOXuhpOqc.woff2) format('woff2'); unicode-range: U+1F00-1FFF; } /* greek */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN7rgOUehpOqc.woff2) format('woff2'); unicode-range: U+0370-03FF; } /* vietnamese */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN7rgOXehpOqc.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN7rgOXOhpOqc.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/opensans/v20/mem5YaGs126MiZpBA-UN7rgOUuhp.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLm21lVFteOcEg.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLm21lVGdeOcEg.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLm21lVF9eO.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiGyp8kv8JHgFVrJJLucXtAKPY.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiGyp8kv8JHgFVrJJLufntAKPY.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiGyp8kv8JHgFVrJJLucHtA.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 500; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLmg1hVFteOcEg.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 500; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLmg1hVGdeOcEg.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 500; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLmg1hVF9eO.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLmr19VFteOcEg.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLmr19VGdeOcEg.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLmr19VF9eO.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLmy15VFteOcEg.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLmy15VGdeOcEg.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiDyp8kv8JHgFVrJJLmy15VF9eO.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLDz8Z11lFc-K.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLDz8Z1JlFc-K.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiEyp8kv8JHgFVrJJbecmNE.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLGT9Z11lFc-K.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z11lFc-K.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* devanagari */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLCz7Z11lFc-K.woff2) format('woff2'); unicode-range: U+0900-097F, U+1CD0-1CF6, U+1CF8-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FB; } /* latin-ext */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/poppins/v15/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4QIFqPfE.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4SYFqPfE.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* vietnamese */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4QoFqPfE.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4Q4FqPfE.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 300; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4TYFq.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4QIFqPfE.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4SYFqPfE.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* vietnamese */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4QoFqPfE.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4Q4FqPfE.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 400; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4TYFq.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 500; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4QIFqPfE.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 500; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4SYFqPfE.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* vietnamese */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 500; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4QoFqPfE.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 500; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4Q4FqPfE.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 500; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4TYFq.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4QIFqPfE.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4SYFqPfE.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* vietnamese */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4QoFqPfE.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4Q4FqPfE.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 600; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4TYFq.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4QIFqPfE.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4SYFqPfE.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* vietnamese */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4QoFqPfE.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4Q4FqPfE.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Raleway'; font-style: italic; font-weight: 700; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptsg8zYS_SKggPNyCg4TYFq.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCAIT5lu.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCkIT5lu.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* vietnamese */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCIIT5lu.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 300; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCAIT5lu.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCkIT5lu.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* vietnamese */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCIIT5lu.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 400; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 500; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCAIT5lu.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 500; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCkIT5lu.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* vietnamese */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 500; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCIIT5lu.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 500; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 500; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCAIT5lu.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCkIT5lu.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* vietnamese */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCIIT5lu.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 600; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } /* cyrillic-ext */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCAIT5lu.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; } /* cyrillic */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCkIT5lu.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; } /* vietnamese */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCIIT5lu.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; } /* latin-ext */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyCMIT5lu.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; } /* latin */ @font-face { font-family: 'Raleway'; font-style: normal; font-weight: 700; src: url(https://fonts.gstatic.com/s/raleway/v22/1Ptug8zYS_SKggPNyC0ITw.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
css
MANGALDAI: The State Legal Service Authority (SLSA) Assam in a very praiseworthy initiative to take the legal service related matters to the people living in the rural areas and to make them aware of the scopes and measures offered by the SLSA for the common people particularly the weaker section and the women on Sunday organized a mega legal aid camp at Mahaliapara village in Darrang district. Justice Manash Ranjan Pathak of Guwahati High Court graced the day-long legal aid camp as the chief guest. The SLSA organized the function in collaboration with District Legal Service Authority (DLSA) and district administration. A total of 35 stalls of the State government departments of the district including Health, Agriculture, Transport, Legal Service, Handloom and Textile, Fishery, Legal Metrology, District Child Protection Unit took part in the camp and displayed important information regarding their respective public welfare and amenity services. Several nongovernment organizations including Crystal Vision of Mangaldai which has been running a government recognized Specialized Adoption Agency (SAA) has also displayed relevant information in respect of the proper care and the protection of orphan, abandoned and surrendered children.
english
<gh_stars>1-10 { "_comment": "Resolved Pipeline Template Preset JSON format (shorthand)", "pipelineId": "pbsmrtpipe.pipelines.sa3_fetch", "presetId": "pbsmrtpipe.pipeline_preset.settings_02", "name": "Pipeline Template Preset Name", "description": "Description of preset is required", "options": { "pbsmrtpipe.options.max_nchunks": 10, "pbsmrtpipe.options.chunk_mode": true }, "taskOptions": { "pbsmrtpipe.task_options.alpha": "Hello world", "pbsmrtpipe.task_options.beta": false, "pbsmrtpipe.task_options.gamma": 987654, "pbsmrtpipe.task_options.delta": 3.14, "pbsmrtpipe.task_options.a": "C", "pbsmrtpipe.task_options.b": 1, "pbsmrtpipe.task_options.c": 0.01 } }
json
import vueSupply from './vue-supply'; import request from './request'; function getLocation (type, key) { try { var path = window.location[type].slice(1); } catch (e) { return false }; if(!path) { path = []; } else { path = path.split("&"); }; var pathObj = {}; path.forEach(function (item) { var value = item.split("=")[1]; value = /%u/.test(value) ? unescape(value) : /%E/.test(value) ? decodeURI(value) : value; var key = item.split("=")[0]; if(/\[\]/.test(key)) { var arrName = key.replace('[]', ''); pathObj[arrName] = pathObj[arrName] ? pathObj[arrName] : []; pathObj[arrName].push(value); } else { pathObj[item.split("=")[0]] = value; } }); if (!!key) return pathObj[key]; else return pathObj; }; /** * 设置storage基方法 * @param {string} type sessionStorage或localStorage * @param {string} key 要取的key * @return {string|Object} 对应存储的数据 */ function getStorage(type, key) { var res = !!key ? window[type][key] ? ((/{|}|%7B|%7D|\[|\]|%5B|%5D/.test(window[type][key]) ? JSON.parse(unescape(window[type][key])) : unescape(window[type][key]))) : undefined : window[type]; return res || false; } /** * 获取storage基方法 * @param {string} type sessionStorage或localStorage * @param {string|object} key 要设置的key或整个对象 * @param {Object} value 已设置的结果 */ function setStorage(type, key, value) { if (typeof key === 'string') { window[type][key] = (typeof value === 'object') ? escape(JSON.stringify(value)) : escape(value); } else if (typeof key === 'object') { Object.keys(key).forEach(function (item) { window[type][item] = (typeof value === 'object') ? escape(JSON.stringify(key[item])) : escape(key[item]); }); }; return window[type]; } var app = { /******** 接收地址栏参数 key:参数名称 **********/ getSearch (key) { return getLocation('search', key); }, /** * 将对象转化成search字符串 * @param {Object} obj 对象或数组 * @param {boolean} flag 是否携带'?' * @return {string} 返回的格式化后字符串 */ toSearch (obj, flag) { var res = '?' if (typeof obj == 'object' && Array.isArray(obj)) { obj.forEach(function (item, index) { res += ('[' + index + ']=' + toSearch(item, true) + '&'); }); } else if (typeof obj == 'object') { Object.keys(obj).forEach(function (key) { if (typeof obj[key] == 'object' && Array.isArray(obj[key])) { obj[key].forEach(function (item, index) { res += (key + '[]=' + toSearch(item, true) + '&') }); } else if (typeof obj[key] == 'object' && obj[key] != null) { res += (toSearch(obj[key], true) + '&'); } else { var item = /[\u3220-\uFA29]/.test(obj[key]) ? escape(obj[key]) : obj[key]; res += (key + '=' + (item || '') + '&'); } }); } else { return obj; } return !!flag ? res.slice(1, -1) : res.slice(0, -1); }, /** * 生成hash值并放置如window.location.href * @param {string} key 键 * @param {string} value 值 * @param {Function} callback 回调函数 * @return {null} 返回值 */ setHash (key, value, callback) { var hashObj = getHash(); if (typeof key === 'string') { callback = callback || function () {}; hashObj[key] = value; } else if (typeof key === 'object') { callback = value || function () {}; Object.keys(key).forEach(function (item) { hashObj[item] = key[item] }) } var hashStr = '#'; for (tkey in hashObj) { hashStr += (tkey + '=' + hashObj[tkey] + '&'); }; if (!!window.location.hash) { window.location.replace(window.location.href.replace(window.location.hash, hashStr.slice(0, -1))); } else { window.location.replace(window.location.href + hashStr.slice(0, -1)) } callback(); }, /** * 获取window.location.hash中特定值 * @param {string} key 待获取的key * @return {string} 获取到的值 */ getHash (key) { return getLocation('hash', key); }, /** * 获取localStorage里的数据 * @param {string} key 待获取的key * @return {string|Object} 取回的值 */ getLocal (key) { return getStorage('localStorage', key); }, /** * 将值存入localStorage * @param {string|Object} key 待存值的key或json对象 * @param {string|object} value 待存值的value * @return {object} 存入后localStorage对象 */ setLocal (key, value) { return setStorage('localStorage', key, value); }, /** * 获取sessionStorage里的数据 * @param {string} key 待获取的key * @return {string|Object} 取回的值 */ getSession (key) { return getStorage('sessionStorage', key); }, /** * 将值存入sessionStorage * @param {string|Object} key 待存值的key或json对象 * @param {string|object} value 待存值的value * @return {object} 存入后sessionStorage对象 */ setSession (key, value) { return setStorage('sessionStorage', key, value); }, /** * 遍历型对象混入,将obj混入target * @param {Object} obj 待混入的对象 * @param {Object} target 混入目标对象 * @param {Boolean} state 是否覆盖混入 * @return {object} 混入后的对象 */ mixin (obj, target, state) { Object.keys(obj).forEach(function (key) { if (state) { target[key] = obj[key]; } else { if (!target[key]) target[key] = obj[key]; } }); return target; } } app.mixin(vueSupply, app); app.mixin(request, app); export default app;
javascript
NASA‘s mini helicopter on Mars completed its third flight on Mars successfully on Sunday. Ingenuity moved faster and farther than any of its previous flights and reached a peak speed of 6. 6 feet per second. The helicopter on this third flight covered 64 feet (50 meters) of distance, reaching the speed of 6. 6 feet per second (two meters per second), or four miles per hour in this latest flight. In its first two initial flights, the craft flew and hovered above Mars’ surface. “Today’s flight was what we planned for, and yet it was nothing short of amazing,” said Dave Lavery, the Ingenuity project’s program executive, reported AFP. The Perseverance rover, which carried the four-pound (1. 8 kilograms) rotorcraft to Mars, filmed the 80-second third flight. NASA said Sunday that video clips would be sent to Earth in the coming days. The lateral flight was a test for the helicopter’s autonomous navigation system, which completes the route according to information received beforehand. “If Ingenuity flies too fast, the flight algorithm can’t track surface features,” NASA explained in a statement about the flight. Ingenuity’s flights are challenging because of conditions vastly different from Earth’s — foremost among them a rarefied atmosphere that has less than one percent the density of our own. This means that Ingenuity’s rotors, which span four feet, have to spin at 2,400 revolutions per minute to achieve lift — about five times more than a helicopter on Earth. NASA announced it is now preparing for a fourth flight. Each flight is planned to be of increasing difficulty in order to push Ingenuity to its limits. The mini-helicopter Ingenuity’s experiment will last for a month after which the Perseverance rover will return to its primary task of searching for signs of past microbial life on the red planet.
english
<reponame>valtech-nyc/unit-testing-playground<filename>package.json { "name": "unit-testing-playground", "version": "0.0.1", "description": "unit testing playground", "main": "index.js", "scripts": { "test": "wdio wdio.conf.js" }, "repository": { "type": "git", "url": "git+https://github.com/valtech-nyc/unit-testing-playground.git" }, "keywords": [ "unit", "testin", "playground" ], "author": "", "license": "MIT", "bugs": { "url": "https://github.com/valtech-nyc/unit-testing-playground/issues" }, "homepage": "https://github.com/valtech-nyc/unit-testing-playground#readme", "devDependencies": { "selenium-standalone": "^6.0.1", "wdio-mocha-framework": "^0.5.8", "wdio-selenium-standalone-service": "0.0.7", "wdio-webpack-service": "^1.0.1", "webdriverio": "^4.6.2", "webpack": "^2.2.1" } }
json
Where Is Prabhas’ Director? Rebel star Prabhas has been redefining the concept of hero and heroism in Tollywood with his choice of roles. The consecutive success of 'Baahubali' franchise as well as the recognition these films have fetched him, proves to be a multi-talented actor that he can rub off any role easily. His last film 'Saaho' was released with amidst expectations and had the widest release in different languages. Prabhas doing an experiment on the different genre is interesting but content of the movie should impress the audiences to recognise his acting skills. Are you thinking who is Prabhas director who was missing from work a while. It is not Rajamouli or Koratala Siva but director Sujeet who helmed 'Saaho'. Post 'Saaho' failure, Prabhas and Sujeeth are taking long time to commit themselves for other projects. A line of Telugu filmmakers are in queue to work with Prabhas. However, Tollywood actors are rejecting to work with Sujeeth because of 'Saaho's debacle. As per the sources, Sujeeth is planning to work with small-scale actors and apparently, his next film is with Sharwanand. Also Read:Bigg Boss Telugu Season 4 Details About Host and Launch Date! Currently, Sharwanand is busy with '96' which is a remake of Tamil film. Sujeeth and Sharwanand delivered a blockbuster hit 'Run Raja Run. Now,the biggest question doing the rounds that whether Sharwanand agrees to work with Sujeeth or will he shut the door like others is left to need to be seen.
english
<filename>frontend-app/src/component/Header/Header.css .header_container { background-color: brown; width: 100vw; height: 60px; } .link_container { display: flex; align-items: center; justify-content: space-between; width: 80%; height: 100%; } a { padding-left: 35px; text-decoration: none; color: palegreen; font-size: 18px; font-weight: bold; }
css
<filename>packages/import-server/test/alice-model-converter.ts import { expect } from 'chai'; import 'mocha'; import { convertAliceModel } from '../src/alice-model-converter'; import { CharacterParser } from '../src/character-parser'; import { testCharData01 } from './test-char1'; import { testCharData02 } from './test-char2'; import { metadata } from './test-metadata'; describe('Model Creation testchar01', () => { const character = new CharacterParser(testCharData01, metadata); const { model, account, problems } = convertAliceModel(character); it('no conversion error', () => { expect(problems, `Has conversion problems: ${problems.join(', ')}`).to.be.empty; }); it('model._id', () => { expect(model._id).is.equal('20118'); }); it('account._id', () => { expect(account._id).is.equal('20118'); }); it('account.login', () => { expect(account.login).is.equal('opalblack'); }); it('profileType', () => { expect(model.profileType).is.equal('human'); }); it('Systems', () => { expect(model.systems).is.not.null; expect(model.systems.length).is.equal(7); }); it('Managers should have company bonus', () => { expect(account.jobs.companyBonus).to.contain('gd'); }); }); describe('Model Creation testchar02', () => { const character = new CharacterParser(testCharData02, metadata); const { model, account, problems } = convertAliceModel(character); it('no conversion error', () => { expect(problems, `Has conversion problems: ${problems.join(', ')}`).to.be.empty; }); it('model._id', () => { expect(model._id).is.equal('22718'); }); it('account._id', () => { expect(account._id).is.equal('22718'); }); it('account.login', () => { expect(account.login).is.equal('omicron'); }); it('profileType', () => { expect(model.profileType).is.equal('human'); }); it('Systems', () => { expect(model.systems).is.not.null; expect(model.systems.length).is.equal(7); }); it('Specialists should not have company bonus', () => { expect(account.jobs.companyBonus).to.be.empty; }); });
typescript
<reponame>dyarleniber/typescript-ddd-forum import { PostSlug } from "./postSlug"; import { Result } from "../../../shared/core/Result"; import { PostTitle } from "./postTitle"; let postSlug: PostSlug; let postSlugOrError: Result<PostSlug>; let postTitle: PostTitle; let postTitleOrError: Result<PostTitle>; test("Should be able to create a post slug", () => { postTitleOrError = PostTitle.create({ value: "HTML Developers" }); expect(postTitleOrError.isSuccess).toBe(true); postTitle = postTitleOrError.getValue(); postSlugOrError = PostSlug.create(postTitle); expect(postSlugOrError.isSuccess).toBe(true); postSlug = postSlugOrError.getValue(); expect(postSlug.value).toContain("html-developers"); }); test("Should be able to parse out any bad characters not suitable for a slug", () => { postTitleOrError = PostTitle.create({ value: "K^ha^l#il^^#'s Job" }); expect(postTitleOrError.isSuccess).toBe(true); postTitle = postTitleOrError.getValue(); postSlugOrError = PostSlug.create(postTitle); expect(postSlugOrError.isSuccess).toBe(true); postSlug = postSlugOrError.getValue(); expect(postSlug.value).toContain("khalils-job"); });
typescript
package com.hackatum.bookit.ui.register; import androidx.annotation.Nullable; import androidx.annotation.StringRes; import androidx.appcompat.app.AppCompatActivity; import androidx.lifecycle.Observer; import androidx.lifecycle.ViewModelProviders; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.text.Editable; import android.text.TextWatcher; import android.view.KeyEvent; import android.view.View; import android.view.inputmethod.EditorInfo; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import com.hackatum.bookit.MainActivity; import com.hackatum.bookit.R; import com.hackatum.bookit.data.model.DBHandler; public class ProviderRegistrationActivity extends AppCompatActivity { private RegistrationViewModel registrationViewModel; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_provider_registration); registrationViewModel = ViewModelProviders.of(this, new RegistrationViewModelFactory()) .get(RegistrationViewModel.class); final Button finishButton = findViewById(R.id.finish); final EditText nameEditText = findViewById(R.id.fullname); final EditText lastnameEditText = findViewById(R.id.lastName); final EditText usernameEditText = findViewById(R.id.email); final EditText phoneEditText = findViewById(R.id.phone); final EditText passwordEditText = findViewById(R.id.password); registrationViewModel.getRegistrationResult().observe(this, new Observer<RegistrationResult>() { @Override public void onChanged(@Nullable RegistrationResult registrationResult) { if (registrationResult == null) { return; } if (registrationResult.getError() != null) { showRegisterFailed(registrationResult.getError()); } if (registrationResult.getSuccess() != null) { updateUiWithUser(registrationResult.getSuccess()); } setResult(Activity.RESULT_OK); //Complete and destroy login activity once successful //finish(); // TODO: go to profile. Current: go to main screen Intent intent = new Intent(ProviderRegistrationActivity.this, MainActivity.class); startActivity(intent); } }); TextWatcher afterTextChangedListener = new TextWatcher() { @Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { // ignore } @Override public void onTextChanged(CharSequence s, int start, int before, int count) { // ignore } @Override public void afterTextChanged(Editable s) { registrationViewModel.registrationDataChanged(usernameEditText.getText().toString(), passwordEditText.getText().toString()); } }; usernameEditText.addTextChangedListener(afterTextChangedListener); passwordEditText.addTextChangedListener(afterTextChangedListener); passwordEditText.setOnEditorActionListener(new TextView.OnEditorActionListener() { @Override public boolean onEditorAction(TextView v, int actionId, KeyEvent event) { if (actionId == EditorInfo.IME_ACTION_DONE) { registrationViewModel.register(usernameEditText.getText().toString(), passwordEditText.getText().toString(), nameEditText.getText().toString(), lastnameEditText.getText().toString(), phoneEditText.getText().toString(), DBHandler.PROVIDER_TABLE); } return false; } }); finishButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { registrationViewModel.register(usernameEditText.getText().toString(), passwordEditText.getText().toString(), nameEditText.getText().toString(), lastnameEditText.getText().toString(), phoneEditText.getText().toString(), DBHandler.PROVIDER_TABLE); } }); } private void updateUiWithUser(RegisteredUserView model) { String welcome = getString(R.string.welcome) + model.getDisplayName() + "!"; // TODO : initiate successful logged in experience Toast.makeText(getApplicationContext(), welcome, Toast.LENGTH_LONG).show(); } private void showRegisterFailed(@StringRes Integer errorString) { Toast.makeText(getApplicationContext(), errorString, Toast.LENGTH_SHORT).show(); } }
java
Tuesday October 25, 2016, Just in the morning, I came across a news in Economic Times that reports Ola’s aggressive market plans to grow their Share and Shuttle services. Previously, Ola Share was available in 10 metropolitan but this month they expanded the business to five more cities - Guwahati, Bhubaneswar, Kochi, Coimbatore and Ludhiana. What Ola is up to? Is share and shuttle service of Ola going to make a big win? Who’s going to capture the $10 billion ridesharing app market Ola Share or uberPOOL? A senior company executive also shares about focusing on the promotion of share and shuttle services of Ola in the next few quarters, much aggressively to capture the large portion of the market share. And its true, Ola has been dynamic in the last quarter of 2016. It’s quite visible with the recent expansion of the share and shuttle services of Ola to five cities, and offering up to 45 percent discount across 7 cities on the Ola Share (rates coming down to around Rs 3 per km). Is rival Uber keeping a tab on all these? Definitely they are. uberPOOL launched on September, last year is competing Ola Share and Shuttle with their low cost “Go”. Ola people know how to give Uber a tough compete when it comes upon reaching out to Indian audience. They have not just curbed the price on the Ola Share, but also concerned about the far reaching benefits like reduced pollution and congestion-free roads. They are moving forward to constantly upgrade the experience of the users as well as the Ola drivers along with the environment. Ola has not disclosed the number of rides taken through Ola Share, but claims to save 48 lakh kilograms of carbon emission with over 20 lakhs of fuel in the last 8-10 months. The taxi booking app platform on which Ola is built, uses the technology to optimize the same route sharing that ensures majority of the rides are occupied and time for on-route deviations are minimal. The cost and the concern of the Ola team is churning more customers in new as well as old cities where they run the service. With the rise in demand for the service and an improved matching rate Ola looks to shape the future of transportation in India. Moreover the undertake of surge pricing by Ola is also a showcase of the availability of cars for everyone. Though they are promoting all segments include new ‘Luxury’ cabs category partnering with BMW, but will go heavy on Ola Share. Now that Uber has exited China, India is one of the most important market for Uber outside the US. India will be crucial for Uber both in terms of demonstrating success in the international markets and for long-term growth. "India is a strategic priority," said Amit Jain, running operations for Uber India. "India accounts for 12 percent of all rides on our platform globally and there remains tremendous potential. " In such a great tension, Uber is looking ahead for heavy promotion which they had already begun. They are gearing up an epic battle against homegrown Ola. And as a basic step they announced about the recruitment of a million driver by 2018 in India. But will Ola be able to give Uber a tough compete like Didi Chuxing did in China? Ola do not have the funding like Didi who afforded to heavily spend on the recruitment of drivers and customers, creating painful losses for Uber. But the recent curb in price and vigorous expansion of Ola is a clear sign that are gearing up to ousted their big daddy, Uber.
english
<reponame>Lab-Work/IDOT-SmartWorkzone import math import numpy as np __author__ = '<NAME>' """ this is an implementation (capable of on-line) of the filtered inverse-speed based algorithm used for speed map reconstruction methods: get_w(t,x): this function estimates the inverse speed at location (t,x) set_fisb_data(speed_data): this function saves the speed data required for all estimations """ class FISB: def __init__(self, omg_c, omg_f, sigma_fac, tau_fac, v_crit, delta_v, lag, time_diff_cutoff, sensors_space_grid): """ constructor :param omg_c: wave propagation speed in congestion [km/h] :param omg_f: wave propagation speed in free flow [km/h] :param sigma_fac: factor of sensor spacing for smoothing band [] :param tau_fac: factor of sensor time aggregation for smoothing band [] :param v_crit: critical speed for traffic state shift [km/h] :param delta_v: width of the traffic state shift smoothing band [km/h] :param lag: allowed time lag for inverse speed estimation [s] (this is 0 for on-line implementation) :param time_diff_cutoff: time difference cutoff after which the sensor reading and the point being estimated are too far apart in time to be considered for the inverse speed estimation [s] :param sensors_space_grid: space grid containing the sensors locations :return: """ # store constructor input in class with required unit conversions self.__omg_c = omg_c*1000/3600 # conversion factor to [m/s] self.__omg_f = omg_f*1000/3600 # conversion factor to [m/s] self.__sigma_fac = sigma_fac self.__tau_fac = tau_fac self.__v_crit = v_crit*1000/3600 # conversion factor to [m/s] self.__delta_v = delta_v*1000/3600 # conversion factor to [m/s] self.__lag = lag self.__time_diff_cutoff = time_diff_cutoff self.__sensors_space_grid = sensors_space_grid self.__num_sensors = len(self.__sensors_space_grid) self.__sigma = None self.__tau = None self.__sensors_time_grid = None self.__sensors_speed_data = None def set_fisb_data(self, speed_data): """ this function saves the speed data in the FISB class :param speed_data: dictionary holding speed data :return: """ self.__sensors_time_grid = np.array(speed_data['time']) self.__sigma = self.__sigma_fac*(self.__sensors_space_grid[-1] - self.__sensors_space_grid[-2]) self.__tau = self.__tau_fac*(self.__sensors_time_grid[-1] - self.__sensors_time_grid[-2]) self.__sensors_speed_data = np.array(speed_data['data']) def get_w(self, t, x): """ this function returns the inverse speed estimate at location (t,x) by weighting the estimates in the congested and free flow states :param t: temporal location of the inverse speed estimate point :param x: spatial location of the inverse speed estimate point :param sigma: width for spatial smoothing [m] :return: """ # set sigma based on the current configuration w_c = self.__get_w(t, x, 'cong') w_f = self.__get_w(t, x, 'free') gamma = 0.5*(1 + math.tanh((self.__v_crit - min(1/w_c, 1/w_f))/self.__delta_v)) # set sigma back to None for the next configuration return gamma*w_c + (1-gamma)*w_f def __get_w(self, t, x, state): """ this function returns the inverse speed estimate at location (t,x) given a state ('cong' for congestion, 'free' for free flow) :param t: temporal location for the inverse speed estimate point :param x: spatial location for the inverse speed estimate point :param state: state of traffic, 'cong' for congested, 'free' for free-flowing :return w: inverse speed estimate at location (t,x) given traffic state """ # w = self.__get_exponential_weighted_avg(t, x, omg) if state == 'cong': return self.__get_exponential_weighted_avg(t, x, self.__omg_c) elif state == 'free': return self.__get_exponential_weighted_avg(t, x, self.__omg_f) else: raise Exception('Error: Wrong traffic state...') def __get_exponential_weighted_avg(self, t, x, omg): """ this function computes the exponential weighted average of the inverse speeds at the considered sensor locations in time and spate to estimate the inverse speed at location (t,x) given a wave propagation speed omg :param t: temporal location for inverse speed estimate point :param x: spatial location for inverse speed estimate point :param omg: wave propagation speed :return w: inverse speed estimate from weighted average """ # truncate time and speed data for the ones that are of relevance time_idxs = np.intersect1d(np.where(self.__sensors_time_grid >= t - self.__time_diff_cutoff), np.where(self.__sensors_time_grid <= t + self.__lag)) # set lists that will hold the weights and speed of each point used exponential_weights = [] speeds = [] # set weights and speeds for t_idx in time_idxs: for x_idx in range(0, self.__num_sensors): delta_t = self.__sensors_time_grid[t_idx] - t delta_x = self.__sensors_space_grid[x_idx] - x # add to lists only if there is available speed data if (not math.isinf(self.__sensors_speed_data[x_idx, t_idx]) and not math.isnan(self.__sensors_speed_data[x_idx, t_idx])): exponential_weights.append( math.e**(-(abs(delta_x)/self.__sigma) - (abs(delta_t - delta_x/omg)/self.__tau))) speeds.append(self.__sensors_speed_data[x_idx, t_idx]) if not exponential_weights: return float('nan') else: # compute weighted exponential average exponential_weights = np.array(exponential_weights) return np.sum(np.true_divide(exponential_weights, np.array(speeds)))/np.sum(exponential_weights)
python
import logging import queue import threading import time from pytest import fixture from loggingex.context import LoggingContextFilter, context from .helpers import InitializedContextBase class SimpleLoggingTests(InitializedContextBase): @fixture(autouse=True) def logging_context_of_the_test(self, request, initialized_context): with context(test=request.node.name): yield @fixture() def logging_context_filter(self, initialized_context): return LoggingContextFilter() @fixture() def logger_name(self, request): return "test.%s" % request.node.name @fixture(autouse=True) def logger(self, caplog, logging_context_filter, logger_name): logger = logging.getLogger(logger_name) logger.addFilter(logging_context_filter) with caplog.at_level(logging.DEBUG, logger_name): yield logger logger.removeFilter(logging_context_filter) def log_some_messages(self, logger_name): logger = logging.getLogger(logger_name) logger.info("outside message #%d", 1) with context(scope="outer"): logger.info("message in outer scope #%d", 1) for i in range(1, 3): with context(scope="inner", num=i): logger.info("message in inner scope #%d", i) logger.info("message in outer scope #%d", 2) logger.info("outside message #%d", 2) expected_output = [ ("outside message #1", {}), ("message in outer scope #1", {"scope": "outer"}), ("message in inner scope #1", {"scope": "inner", "num": 1}), ("message in inner scope #2", {"scope": "inner", "num": 2}), ("message in outer scope #2", {"scope": "outer"}), ("outside message #2", {}), ] return expected_output def test_correct_context_is_added_to_log_records(self, caplog, logger_name): expected = self.log_some_messages(logger_name) records = caplog.records assert len(records) == len(expected) for record, (message, extras) in zip(records, expected): assert record.name == logger_name assert record.message == message for k, v in extras.items(): assert getattr(record, k, "undefined") == v class MultiThreadedLoggingTests(InitializedContextBase): @fixture(autouse=True) def logging_context_of_the_test(self, request, initialized_context): with context(test=request.node.name): yield @fixture() def logging_context_filter(self, initialized_context): return LoggingContextFilter() @fixture() def logger_name(self, request): return "test.%s" % request.node.name @fixture(autouse=True) def logger(self, caplog, logging_context_filter, logger_name): logger = logging.getLogger(logger_name) logger.addFilter(logging_context_filter) with caplog.at_level(logging.DEBUG, logger_name): yield logger logger.removeFilter(logging_context_filter) def log_some_messages(self, logger_name, q): thread = threading.get_ident() logger = logging.getLogger(logger_name) with context(thread=thread): logger.info("[thread=%r] outside message #%d", thread, 1) q.put( ("[thread=%r] outside message #1" % thread, {"thread": thread}) ) time.sleep(0.1) for i in range(1, 3): with context(scope="inner", num=i): logger.info( "[thread=%r] message in inner scope #%d", thread, i ) q.put( ( "[thread=%r] message in inner scope #%d" % (thread, i), {"thread": thread, "scope": "inner", "num": i}, ) ) time.sleep(0.1) logger.info("[thread=%r] outside message #%d", thread, 2) q.put( ("[thread=%r] outside message #2" % thread, {"thread": thread}) ) def create_threads(self, logger_name, q, num=2): threads = [] for i in range(num): thread = threading.Thread( target=self.log_some_messages, args=(logger_name, q), name="t_%d" % (i + 1), ) threads.append(thread) return threads def run_threads_to_completion(self, threads): # start all threads for t in threads: t.start() # wait for all threads to complete for t in threads: t.join() def get_expected_messages(self, q): # put a dummy end mark in the queue q.put(None) # retrieve expected messages from queue expected_messages = [] msg = q.get() while msg is not None: expected_messages.append(msg) msg = q.get() return expected_messages def test_threads_do_not_mix_their_contexts(self, caplog, logger_name): q = queue.Queue(maxsize=1000) threads = self.create_threads(logger_name, q) self.run_threads_to_completion(threads) expected = self.get_expected_messages(q) records = caplog.records assert len(records) == len(expected) # note: we can not reliably guess the message order, but we know that # thread id is part of the message, so this should be good enough expected = sorted(expected, key=lambda o: o[0]) records = sorted(records, key=lambda o: o.message) for record, (message, extras) in zip(records, expected): assert record.name == logger_name assert record.message == message for k, v in extras.items(): assert getattr(record, k, "undefined") == v
python
<filename>examples/classifier_compression/main.py<gh_stars>0 '''Train CIFAR10 with PyTorch.''' import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F import torch.backends.cudnn as cudnn from torch.autograd import Variable import torchvision import torchvision.transforms as transforms import sys import os import argparse import numpy as np from tifffile import imsave from skimage import io from utils import progress_bar from distiller.models.cifar10.resnet_cifar import * from torchviz import * os.environ["PATH"] += os.pathsep + 'D:/2) install/graphviz-2.38/release/bin/' parser = argparse.ArgumentParser(description='PyTorch CIFAR10 Training') parser.add_argument('--net', '-n', help='NN model name', default='resnet10', dest='net') parser.add_argument('--output', '-o', help='output file name', default='checkpoint', dest='output_file_name') parser.add_argument('--lr', default=0.1, type=float, help='learning rate') parser.add_argument('--ch', default=None, type=int, help='slicing input channels') parser.add_argument('--epoch', '-e', default=1, type=int, help='training epoches') parser.add_argument('--resume', '-r', action='store_true', help='resume from checkpoint') parser.add_argument('--test', '-t', action='store_true', help='execute testing flow') parser.add_argument('--fuse', '-f', action='store_true', help='fuse conv and bn') parser.add_argument('--draw', '-d', action='store_true', help='draw the model graph') parser.add_argument('--dump_act', '-dpa', default=None, type=int, help='dump img activation value') parser.add_argument('--dump_img', '-dpi', action='store_true', help='dump resized image') args = parser.parse_args() device = 'cuda' if torch.cuda.is_available() else 'cpu' best_acc = 0 # best test accuracy start_epoch = 0 # start from epoch 0 or last checkpoint epoch def _mul(x): return x*255 def _sub(x): return x-128 def _round(x): return torch.round(x) # Data print('==> Preparing data..') inputSize = 200 transform_train = transforms.Compose([ transforms.RandomCrop(32, padding=4), transforms.Resize(inputSize), # 224 -> 220 -> 200 transforms.RandomHorizontalFlip(), # transforms.RandomRotation(90), transforms.ToTensor(), transforms.Lambda(_mul), transforms.Lambda(_round), transforms.Lambda(_sub), ]) transform_test = transforms.Compose([ transforms.RandomCrop(32, padding=0), transforms.Resize(inputSize), # 224 -> 220 -> 200 transforms.ToTensor(), transforms.Lambda(_mul), transforms.Lambda(_round), transforms.Lambda(_sub), ]) if args.dump_img: transform_train_image = transforms.Compose([ transforms.RandomCrop(32, padding=4), \ transforms.Resize(224), \ transforms.RandomHorizontalFlip(), ]) transform_test_image = transforms.Compose([ transforms.RandomCrop(32, padding=0), \ transforms.Resize(224), ]) train_image_set = torchvision.datasets.CIFAR10(root='../datasets/cifar10_resize_226x226', train=True, download=True, transform=transform_train_image) train_image_loader = torch.utils.data.DataLoader(train_image_set, batch_size=1, shuffle=True, num_workers=2) test_image_set = torchvision.datasets.CIFAR10(root='../datasets/cifar10_resize_226x226', train=False, download=True, transform=transform_test_image) test_image_loader = torch.utils.data.DataLoader(test_image_set, batch_size=1, shuffle=False, num_workers=2) filePath = os.path.join('D:', os.sep, 'playground', 'MyDistiller', 'examples', 'datasets', 'cifar10_img_train_224x224') f = open(os.path.join(filePath, 'cifar10_train.txt'), 'w') for i, (img, label) in enumerate(train_image_set): img_path = os.path.join(filePath, str(i)+'.jpg') img = np.asanyarray(img) io.imsave(img_path, img) f.write(str(i)+'.jpg' + ' ' + str(label) + '\n') f.close() sys.exit() if not args.test: trainset = torchvision.datasets.CIFAR10(root='../datasets/cifar10_resize_226x226', train=True, download=True, transform=transform_train) trainloader = torch.utils.data.DataLoader(trainset, batch_size=200, shuffle=True, num_workers=2) testset = torchvision.datasets.CIFAR10(root='../datasets/cifar10_resize_226x226', train=False, download=True, transform=transform_test) testloader = torch.utils.data.DataLoader(testset, batch_size=100, shuffle=False, num_workers=2) classes = ('plane', 'car', 'bird', 'cat', 'deer', 'dog', 'frog', 'horse', 'ship', 'truck') # Model print('==> Building model..') if args.fuse: fusion = True else: fusion = False if args.net == 'resnet10': if args.resume: net = resnet10_cifar(True, ch_group=args.ch, fusion=fusion) else: net = resnet10_cifar(False, ch_group=args.ch, fusion=fusion) elif(args.net == 'resnet5'): net = Res5() else: print('Error: unsupported net {0}'.format(args.net)) net = net.to(device) if device == 'cuda': net = torch.nn.DataParallel(net) cudnn.benchmark = True # print(net) # sys.exit() criterion = nn.CrossEntropyLoss() # optimizer = optim.SGD(net.parameters(), lr=0.00001, momentum=0.9, weight_decay=5e-4) optimizer = optim.Adam(net.parameters(), lr=0.002, betas=(0.8, 0.999), eps=1e-08, weight_decay=0, amsgrad=False) accRecord = [] def dump_NCHW(file, input): for n in range(0, input.size(0), 1): for c in range(0, input.size(1), 1): for h in range(0, input.size(2), 1): for w in range(0, input.size(3), 1): file.write('{0}\t'.format(input[n][c][h][w])) file.write('\n') file.write('\n') file.write('\n') # Training def train(epoch): global input_train print('\nEpoch: %d' % epoch) net.train() train_loss = 0 correct = 0 total = 0 for batch_idx, (inputs, targets) in enumerate(trainloader): inputs, targets = inputs.to(device), targets.to(device) # if (batch_idx == 0): # input_train = inputs optimizer.zero_grad() outputs = net(inputs, None) loss = criterion(outputs, targets) loss.backward() optimizer.step() train_loss += loss.item() _, predicted = outputs.max(1) total += targets.size(0) correct += predicted.eq(targets).sum().item() progress_bar(batch_idx, len(trainloader), 'Loss: %.3f | Acc: %.3f%% (%d/%d)' % (train_loss/(batch_idx+1), 100.*correct/total, correct, total)) def test(epoch, dump_act=None): global best_acc net.eval() test_loss = 0 correct = 0 total = 0 with torch.no_grad(): for batch_idx, (inputs, targets) in enumerate(testloader): if(dump_act == None or (dump_act != None and batch_idx == dump_act)): inputs, targets = inputs.to(device), targets.to(device) outputs = net(inputs, dump_act) loss = criterion(outputs, targets) test_loss += loss.item() _, predicted = outputs.max(1) total += targets.size(0) correct += predicted.eq(targets).sum().item() progress_bar(batch_idx, len(testloader), 'Loss: %.3f | Acc: %.3f%% (%d/%d)' % (test_loss/(batch_idx+1), 100.*correct/total, correct, total)) # print(input_dump.size(0), input_dump.size(1), input_dump.size(2), input_dump.size(3)) # Save checkpoint. acc = 100.*correct/total accRecord[epoch] = acc if not args.test or (args.test and fusion): if not os.path.isdir('checkpoint'): os.mkdir('checkpoint') innerFolder = '20191107_resnet10_fp32_200x' if not os.path.isdir('checkpoint/'+str(innerFolder)): os.makedirs('checkpoint/'+str(innerFolder)) if (acc > best_acc): best_acc = acc outputName = str(args.output_file_name)+'_'+str(inputSize)+'x_'+'ch'+str(args.ch)+'_'+str(int(best_acc))+'.pth' print('Saving to ' + str(outputName)) torch.save(net.state_dict(), './checkpoint/' + str(innerFolder)+'/'+outputName) torch.save(net.state_dict(), './checkpoint/'+str(innerFolder)+'/'+str(args.output_file_name)+'_'+str(inputSize)+'x'+'.pth') # with open('./checkpoint/dump_train_input.txt', "w") as text_file0: # dump_NCHW(text_file0, input_train) # text_file0.close() # with open('./checkpoint/dump_test_input.txt', "w") as text_file1: # dump_NCHW(text_file1, input_test) # text_file1.close() if __name__ == '__main__': if args.draw: dummy_inputs = torch.randn(1, 3, 224, 224) y = net(Variable(dummy_inputs), fusion) graph = make_dot(y, net.state_dict()) graph.view() sys.exit() if args.test and not args.resume: print('Warning: no pretrained model is loaded, testing random data') times = 1 elif args.test and args.resume: times = 1 else: times = args.epoch if not args.test and args.dump_act != None: print('Error: cant dump img {0} activation values during training'.format(str(args.dump_act))) sys.exit() for epoch in range(start_epoch, start_epoch+times): accRecord.append(0.0) if not args.test: train(epoch) if (epoch == times-1): test(epoch, args.dump_act) else: test(epoch, args.dump_act) print('best_acc: {0}'.format(best_acc)) for i in range(0, times): print(accRecord[i])
python
<gh_stars>0 import React, { Fragment, useState, useContext } from 'react'; import { Table, Row, Col, Button, Modal } from 'antd'; import { Link } from 'react-router-dom'; import Moment from 'react-moment'; import EditBook from './EditBook'; import DeleteBook from './DeleteBook'; import BookContext from '../../contexts/book/bookContext'; const TableBooks = ({ dataSource }) => { const { setBook } = useContext(BookContext); const [visible, setVisible] = useState(false); const columns = [ { title: 'Cover', key: 'cover', render: (book) => { return ( <img style={{ width: '50px' }} src={book.coverUrl} alt='cover' /> ); }, }, { title: 'Title', dataIndex: 'title', key: 'title', render: (title) => ( <> <p style={{ maxWidth: '300px' }}>{title}</p> </> ), }, { title: 'Create Date', dataIndex: 'date', key: 'date', render: (date) => { return <>{<Moment format='DD-MM-YYYY HH:mm'>{date}</Moment>}</>; }, }, { title: 'Action', key: 'action', render: (book) => ( <Row size='middle'> <Col flex='30%' style={{ marginBottom: '5px', marginRight: '5px' }}> <Button type='primary'> <Link to={`/books/${book._id}`}>View</Link> </Button> </Col> <Col flex='30%' style={{ marginBottom: '5px', marginRight: '5px' }}> <Button type='primary' onClick={() => { setBook(book); setVisible(true); }} > Edit </Button> </Col> <Col flex='30%'> <DeleteBook id={book._id} /> </Col> </Row> ), }, ]; return ( <Fragment> <Table columns={columns} dataSource={dataSource} pagination={false} />{' '} {visible && ( <Modal title='Edit Book' visible={visible} onCancel={() => setVisible(false)} footer={null} > <EditBook setVisible={setVisible} /> </Modal> )} </Fragment> ); }; export default TableBooks;
javascript
<reponame>lickorice/archive-shalltear { "0": { "name": "VIP Badge", "img-url": "assets/badges/00000.png", "description": "This member is proudly part of the exclusive VIP group of the server.", "for_sale": true }, "1": { "name": "<NAME>", "img-url": "assets/badges/00001.png", "description": "This member is he<NAME>.", "for_sale": true }, "2": { "name": "<NAME>", "img-url": "assets/badges/00002.png", "description": "This member has done something that has positively affected the server in a significant way. Lickorice holds this member in high regards.", "for_sale": false }, "3": { "name": "<NAME>", "img-url": "assets/badges/00003.png", "description": "This member is a part of the development team for Shalltear!.", "for_sale": false }, "4": { "name": "Russian Communist", "img-url": "assets/badges/00004.png", "description": "Seize the means of production!", "for_sale": true }, "5": { "name": "American Capitalist", "img-url": "assets/badges/00005.png", "description": "The only good communist is a dead communist.", "for_sale": true }, "6": { "name": "Chinese Socialist", "img-url": "assets/badges/00006.png", "description": "You have accepted the state as your lord and savior.", "for_sale": true }, "7": { "name": "Neet", "img-url": "assets/badges/00007.png", "description": "You don't even care anymore. Gives you a chance to add your own background (non-nsfw).", "for_sale": true }, "8": { "name": "Twitter", "img-url": "assets/badges/00008.png", "description": "You follow Lickorice on Twitter! (@cgpanganiban)", "for_sale": false } }
json
How many times have we been told to stop worrying? That things tend to naturally fall into place when we just focus on the here and the now? And yet, we worry. We still find ourselves to be the victim of circumstances. We struggle and wrestle with life, hoping against hope that a solution will miraculously appear. But, life does not work that way. In this YoursWisely video, spiritual facilitator and storyteller Nithya Shanti tells the story of a pregnant deer, who found herself at a crossroad, surrounded by danger, but focused on the birth of her fawn instead. When she did, every trouble that had, until seconds ago, ambushed her, began to magically disappear. ALSO READ | Do you know the difference between humility and arrogance? “What got us entangled in the first place, it is the responsibility of that very force of nature to take us out of it… to be in the moment, and to give our full attention to what’s in front of us; the rest of our life will take care of itself. Things will naturally fall into place,” he says. So, the next time you find yourself in a tricky situation, tell yourself it is the duty of the universe to pull you out of this mess. All you should do, is focus on the task at hand, and give your best.
english
From a long time, director Ram Gopal Varma is looking forward to score at least one hit. Though he announced "Vangaveeti" as his last film, he has one more Telugu film to be released. That's none other than Manchu Manoj's "Attack". Today the makers have conveyed that "Attack" will hit cinemas on April 1st. Well, that's not a joke. "Why I've chosen Manchu Manoj for this film is, his eyes are magnetic. He has that intensity in his eyes. So, I've decided to take him in and he has done a fantastic job", said RGV. From long time, both Varma and Manoj are in dire need of a hit. Will "Attack" fulfils their dream? Will Manoj's magnetic eyes help? Hang on.
english
<reponame>upenn-acg/barracuda #pragma once static const int WARP_SIZE = 32; enum PROTO_OP { OP_UNKNOWN = 0, OP_READ = 1, OP_WRITE = 2, OP_ATOMIC_WRITE = 3, OP_ATOMIC_READWRITE = 4, OP_SYNCTHREADS = 5, PROTO_OP_MAX }; struct PCRecord { unsigned short warp_id; unsigned short block_id; unsigned short stream_id; unsigned short op; unsigned int active; void *address[WARP_SIZE]; }; struct PCHeader { unsigned int read_head; unsigned int write_head; unsigned int tail; };
cpp
England manager Steve McClaren has diligently re-written history, now telling us that he initially dropped Beckham to stimulate him into a return to form; after that truly disastrous World Cup. David Beckham; from scapegoat to saviour. From busted flush to new Messiah. Suddenly, after the 1-1 draw at Wembley with Brazil and the 3-0 win in Tallinn against weak, and weakened — two key men missing — Estonia, euphoria is in the air; especially induced by the resurrection of Beckham. Suddenly the hapless Steve McClaren is, so to speak, amnestied, temporarily at least reprieved; though who knows for how long? He has diligently re-written history, now telling us that he initially dropped Beckham to stimulate him into a return to form; after that truly disastrous World Cup. So what has happened to turn Beckham from sinner into saint and saviour? At the very time when he has mortgaged his future by accepting a hugely lucrative contract to immure himself in the backwoods of the so-called Major League soccer in Los Angeles with a team which has begun its season with one win in seven games. McClaren, who assured us of the "importance" of the match in Tallinn clearly has no sense of irony. It was important only because he had made such a dog's dinner of the previous European fixtures. A pitiful draw at home to Macedonia, a dismal defeat in Croatia where his half-backed, untried 3-5-2 system predictably floundered, a wretched goalless draw in Israel, followed by a hard won victory against tiny Andorra in Barcelona, where he was crudely insulted by a thuggish bunch of England's hooligan fans. McClaren, even, amazingly, has the fervent support of one of England's finest players, Steven Gerrard, who has eulogised him after the triumph of Tallinn. Those of us who deplored the misuse of this powerfully influential figure on the flanks rather than in central midfield were amazed to hear such enthusiasm from Gerrard, who even assured us that when playing on the flanks, he was encouraged to move into the middle. But then players do that, don't they? That is to say, applaud the managers who pick them when thing go well only — as in the case of Michael Owen, to denigrate them when they depart. Owen strongly supported Sven-Goran Eriksson before the last World Cup, but was highly critical with justice but some inconsistency, once it was so dismally over. And in Owen's case, even if he did score a goal in Tallinn and have a crisp header just over the bar against Brazil, he is still, alas, after his shocking succession of injuries and long absence from the field, very far off the swift, sharp Owen whom we once so admired. And Beckham? When he took the field at Wembley against Brazil, the reception was ecstatic; as indeed was the applause when he left it, near the end. But, what, in the meantime, had he done? What had he essentially contributed — or not contributed — that he hadn't in Germany last year? Against a Brazilian team lacking Lucio in central defence and Fred in attack — where Wagner Love was a lonely and lightweight spearhead — he indeed made England's goal with one of his superbly calibrated free kicks, expertly and enterprisingly headed in by John Terry. There were several well struck crossfield passes, but his repertoire has been familiar to us all for a very long time. As a supposed outside-right, he doesn't sprint, he doesn't beat his man, he never gets to the by-line to pull the ball back as the true winger will. And that once great winger Tom Finney, famous for all these things, was regretting the lack of players who can do it before the Brazilian game. Amidst all the acclaim for Beckham at Wembley, one could not but remember the repugnant scenes when he came off the field after an England match in the 2000 European finals, when a vicious bunch of so-called supporters insulted not only him but his wife and child. The relic of his expulsion — after kicking out at Diego Simeone — in England's World Cup match in Saint Etienne in 1998. Fickle is, you might say, as fickle does. In Germany, a doggedly mediocre England team were deplorably reliant on Beckham's remarkable dead ball kicks to score. One of them provoked the own goal which gave them a lucky win in their opening game against Paraguay. Another, supremely insidious, won the game against Ecuador in the second round. But as against that, Eriksson's obsession with Beckham ("We are not a marriage") largely kept out the bright young Spurs winger Aaron Lennon, who when he did get his chance showed those very qualities of pace and elusiveness denied to Beckham and thus by extension to the team. Lennon was injured and unavailable for Tallinn, where Beckham's immaculate long crosses from afar, against a defence which obligingly stood off him, led to two of the three English goals. But when it comes next season to the two games against Russia, the home game against Croatia, can we honestly expect the opposition to give him such space? Nor has McClaren yet resolved the duplication of Gerrard and Frank Lampard; unfairly booed at Wembley. But his inclusion in central midfield, where Owen Hargreaves will now be fit, inhibits Gerrard from breaking forward. Against Andorra, Lampard was left out for what seemed a minor wrist injury; but he was back again in Tallinn. The misuse of the resilient Garragher in defence, out of the middle, is another of McLaren's errors. But he may comfort himself that come the autumn, at least the incomparable Wayne Rooney will be back. In better form, surely, that he so sadly showed in Tel Aviv. On song, he can win any match and not with a dead ball kick from afar.
english
I have always been sad that I never got to see the beginning of humanity's ultimate journey—and even sadder to realize that in 1972 we abandoned a path that could have possibly gotten us to other planets by now. On December 5, 2014, we opened the gate to that path again. We should rejoice—we are going back to the stars. In the 60s we swam in the sea of space for the first time. It was exciting. It lead to countless discoveries and technologies that made possible the world we have today. We swam into the cosmos but then we ran back to the shacks of that comfy beach we call Earth, scared, content to only dip our toes in the safe waters of Low Earth Orbit. 1972 marked humanity's last mission to the Moon and with it, all the optimism of the space era died. But on the brink of nuclear annihilation, with the war in Vietnam raging on, our journey to the Moon saved the world's collective mind. As television reporter David Brinkley said during Apollo 8's live Christmas Eve television special, broadcasted from the lunar orbit: The human race, without many victories lately, had one today. Thank you Apollo 8. You saved 1968. Apollo 8 also brought us this photo. It had huge repercussions in humanity's common psyche, starting the environmental movement and the idea that we should collectively work to establish peace on Earth. After this photo—and the Blue Marble—humans realized, at last, that we needed to work together. Slowly, things began to change. They didn't change fast enough. We are still working on that. And thanks to miserable politics and our inability to deal with long term plans, we abandoned the natural path that the 1960s space program opened. It was perhaps too early, like Carl Sagan said in his 1994 book The Pale Blue Dot, in beautiful words magnificently illustrated by this extraordinary short film by Erik Wernquist: For all its material advantages, the sedentary life has left us edgy, unfulfilled. Even after 400 generations in villages and cities, we haven't forgotten. The open road still softly calls, like a nearly forgotten song of childhood. We invest far-off places with a certain romance. This appeal, I suspect, has been meticulously crafted by natural selection as an essential element in our survival. Long summers, mild winters, rich harvests, plentiful game—none of them lasts forever. It is beyond our powers to predict the future. Catastrophic events have a way of sneaking up on us, of catching us unaware. Your own life, or your band's, or even your species' might be owed to a restless few—drawn, by a craving they can hardly articulate or understand, to undiscovered lands and new worlds. Herman Melville, in Moby Dick, spoke for wanderers in all epochs and meridians: "I am tormented with an everlasting itch for things remote. I love to sail forbidden seas..." Maybe it's a little early. Maybe the time is not quite yet. But those other worlds— promising untold opportunities—beckon. Silently, they orbit the Sun, waiting. 20 years later after those words, it feels like the time has come. We sent an amazing rover to Mars in a seemingly impossible mission that had the entire world watching with bated breath. A group of crazy individuals led by a tycoon who wants to die on Mars are frantically working on new cool spaceships. China is actively working on going back to the Moon. NASA advanced technology group is working on new propulsion technologies and even dreaming about warp drives. A few weeks ago, we landed on a comet. This week, we sent another spaceship to return material from an asteroid. Today we launched the spaceship that will take humans back to the Moon, asteroids, Phobos, and Mars. I look at Orion rising against the deep blue, I hear the cheers coming out of my mouth and countless others, I see the millions of people watching this apparently insignificant event—just an empty spacecraft that is going up and splashing on the Pacific Ocean—and it feels like the 60s all over again. Even if it got cancelled down the line, there are already many others moving forward. The path is open again, a sunbeam illuminating its gates, now clean of the vines that had grown through all these years of abandonment. Today is the day. Today we are starting to get back to the stars. And this time there's no way back.
english